diff --git a/Makefile b/Makefile index a59159efbb9..49cc08d0247 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ LINTIGNORESINGLEFIGHT='internal/sync/singleflight/singleflight.go:.+error should be the last type' UNIT_TEST_TAGS= -BUILD_TAGS=-tags "example,codegen,integration,ec2env" +BUILD_TAGS=-tags "example,codegen,integration,ec2env,perftest" SMITHY_GO_SRC ?= $(shell pwd)/../smithy-go diff --git a/codegen/protocol-test-codegen/build.gradle.kts b/codegen/protocol-test-codegen/build.gradle.kts index aead41e41dc..aadae34b939 100644 --- a/codegen/protocol-test-codegen/build.gradle.kts +++ b/codegen/protocol-test-codegen/build.gradle.kts @@ -20,7 +20,7 @@ plugins { } dependencies { - implementation("software.amazon.smithy:smithy-aws-protocol-tests:[1.1.0,2.0.0[") + implementation("software.amazon.smithy:smithy-aws-protocol-tests:[1.3.0,2.0.0[") compile(project(":smithy-aws-go-codegen")) } diff --git a/codegen/smithy-aws-go-codegen/build.gradle.kts b/codegen/smithy-aws-go-codegen/build.gradle.kts index 5d379b3e126..dd93de3d461 100644 --- a/codegen/smithy-aws-go-codegen/build.gradle.kts +++ b/codegen/smithy-aws-go-codegen/build.gradle.kts @@ -31,7 +31,7 @@ tasks.withType { } dependencies { - api("software.amazon.smithy:smithy-aws-traits:[1.1.0,2.0.0[") + api("software.amazon.smithy:smithy-aws-traits:[1.3.0,2.0.0[") api("software.amazon.smithy:smithy-go-codegen:0.1.0") testCompile("org.junit.jupiter:junit-jupiter-api:5.4.0") testRuntime("org.junit.jupiter:junit-jupiter-engine:5.4.0") diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsGoDependency.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsGoDependency.java index 7fd421775d0..57ad7fd8190 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsGoDependency.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsGoDependency.java @@ -82,6 +82,6 @@ protected static GoDependency module( } private static final class Versions { - private static final String AWS_SDK = "v0.29.1-0.20201112231636-9ae467d8157d"; + private static final String AWS_SDK = "v0.29.1-0.20201113222241-726e4a15683d"; } } diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsProtocolUtils.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsProtocolUtils.java index c2d8e4bfc62..5c1b428e0cf 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsProtocolUtils.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsProtocolUtils.java @@ -113,6 +113,24 @@ static void generateHttpProtocolTests(GenerationContext context) { .operation(ShapeId.from("aws.protocoltests.restjson#InlineDocumentAsPayload")) .build(), + // Null lists/maps without sparse tag + HttpProtocolUnitTestGenerator.SkipTest.builder() + .service(ShapeId.from("aws.protocoltests.restjson#RestJson")) + .operation(ShapeId.from("aws.protocoltests.restjson#JsonLists")) + .addTestName("RestJsonListsSerializeNull") + .build(), + HttpProtocolUnitTestGenerator.SkipTest.builder() + .service(ShapeId.from("aws.protocoltests.restjson#RestJson")) + .operation(ShapeId.from("aws.protocoltests.restjson#JsonMaps")) + .addTestName("RestJsonSerializesNullMapValues") + .build(), + HttpProtocolUnitTestGenerator.SkipTest.builder() + .service(ShapeId.from("aws.protocoltests.json#JsonProtocol")) + .operation(ShapeId.from("aws.protocoltests.json#NullOperation")) + .addTestName("AwsJson11MapsSerializeNullValues") + .addTestName("AwsJson11ListsSerializeNull") + .build(), + // JSON RPC Documents HttpProtocolUnitTestGenerator.SkipTest.builder() .service(ShapeId.from("aws.protocoltests.json#JsonProtocol")) @@ -125,7 +143,7 @@ static void generateHttpProtocolTests(GenerationContext context) { HttpProtocolUnitTestGenerator.SkipTest.builder() .service(ShapeId.from("aws.protocoltests.restxml#RestXml")) .operation(ShapeId.from("aws.protocoltests.restxml#HttpPrefixHeaders")) - .testName("HttpPrefixHeadersAreNotPresent") + .addTestName("HttpPrefixHeadersAreNotPresent") .build() )); diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/DocumentMemberSerVisitor.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/DocumentMemberSerVisitor.java index e69c0070dbb..57fdd1851b0 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/DocumentMemberSerVisitor.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/DocumentMemberSerVisitor.java @@ -22,6 +22,7 @@ import software.amazon.smithy.go.codegen.integration.ProtocolGenerator; import software.amazon.smithy.go.codegen.integration.ProtocolGenerator.GenerationContext; import software.amazon.smithy.go.codegen.integration.ProtocolUtils; +import software.amazon.smithy.go.codegen.knowledge.GoPointableIndex; import software.amazon.smithy.model.shapes.BigDecimalShape; import software.amazon.smithy.model.shapes.BigIntegerShape; import software.amazon.smithy.model.shapes.BlobShape; @@ -58,6 +59,7 @@ public class DocumentMemberSerVisitor implements ShapeVisitor { private final String dataDest; private final Format timestampFormat; private final MemberShape member; + private final GoPointableIndex pointableIndex; public DocumentMemberSerVisitor( GenerationContext context, @@ -71,67 +73,68 @@ public DocumentMemberSerVisitor( this.dataSource = dataSource; this.dataDest = dataDest; this.timestampFormat = timestampFormat; + this.pointableIndex = GoPointableIndex.of(context.getModel()); } @Override public Void blobShape(BlobShape shape) { - String source = conditionallyDereference(shape, dataSource); + String source = CodegenUtils.getAsValueIfDereferencable(pointableIndex, member, dataSource); context.getWriter().write("$L.Base64EncodeBytes($L)", dataDest, source); return null; } @Override public Void booleanShape(BooleanShape shape) { - String source = conditionallyDereference(shape, dataSource); + String source = CodegenUtils.getAsValueIfDereferencable(pointableIndex, member, dataSource); context.getWriter().write("$L.Boolean($L)", dataDest, source); return null; } @Override public Void byteShape(ByteShape shape) { - String source = conditionallyDereference(shape, dataSource); + String source = CodegenUtils.getAsValueIfDereferencable(pointableIndex, member, dataSource); context.getWriter().write("$L.Byte($L)", dataDest, source); return null; } @Override public Void shortShape(ShortShape shape) { - String source = conditionallyDereference(shape, dataSource); + String source = CodegenUtils.getAsValueIfDereferencable(pointableIndex, member, dataSource); context.getWriter().write("$L.Short($L)", dataDest, source); return null; } @Override public Void integerShape(IntegerShape shape) { - String source = conditionallyDereference(shape, dataSource); + String source = CodegenUtils.getAsValueIfDereferencable(pointableIndex, member, dataSource); context.getWriter().write("$L.Integer($L)", dataDest, source); return null; } @Override public Void longShape(LongShape shape) { - String source = conditionallyDereference(shape, dataSource); + String source = CodegenUtils.getAsValueIfDereferencable(pointableIndex, member, dataSource); context.getWriter().write("$L.Long($L)", dataDest, source); return null; } @Override public Void floatShape(FloatShape shape) { - String source = conditionallyDereference(shape, dataSource); + String source = CodegenUtils.getAsValueIfDereferencable(pointableIndex, member, dataSource); context.getWriter().write("$L.Float($L)", dataDest, source); return null; } @Override public Void doubleShape(DoubleShape shape) { - String source = conditionallyDereference(shape, dataSource); + String source = CodegenUtils.getAsValueIfDereferencable(pointableIndex, member, dataSource); context.getWriter().write("$L.Double($L)", dataDest, source); return null; } @Override public Void timestampShape(TimestampShape shape) { - String source = conditionallyDereference(shape, dataSource); + String source = CodegenUtils.getAsValueIfDereferencable(pointableIndex, member, dataSource); GoWriter writer = context.getWriter(); writer.addUseImports(SmithyGoDependency.SMITHY_TIME); @@ -153,7 +156,7 @@ public Void timestampShape(TimestampShape shape) { @Override public Void stringShape(StringShape shape) { - String source = conditionallyDereference(shape, dataSource); + String source = CodegenUtils.getAsValueIfDereferencable(pointableIndex, member, dataSource); if (shape.hasTrait(EnumTrait.class)) { source = String.format("string(%s)", source); } @@ -161,15 +164,6 @@ public Void stringShape(StringShape shape) { return null; } - private String conditionallyDereference(Shape shape, String dataSource) { - boolean shouldDereference = CodegenUtils.isShapePassByReference(shape); - if (context.getModel().expectShape(member.getContainer()).isUnionShape()) { - Shape target = context.getModel().expectShape(member.getTarget()); - shouldDereference &= ProtocolUtils.usesScalarWhenUnionValue(target); - } - return shouldDereference ? "*" + dataSource : dataSource; - } - @Override public Void bigIntegerShape(BigIntegerShape shape) { // Fail instead of losing precision through Number. @@ -184,7 +178,7 @@ public Void bigDecimalShape(BigDecimalShape shape) { return null; } - private String unsupportedShape(Shape shape) { + private void unsupportedShape(Shape shape) { throw new CodegenException(String.format("Cannot serialize shape type %s on protocol, shape: %s.", shape.getType(), shape.getId())); } @@ -248,8 +242,10 @@ public Void mapShape(MapShape shape) { private void writeDelegateFunction(Shape shape) { String serFunctionName = ProtocolGenerator.getDocumentSerializerFunctionName(shape, context.getProtocolName()); GoWriter writer = context.getWriter(); - writer.openBlock("if err := $L($L, $L); err != nil {", "}", serFunctionName, dataSource, dataDest, () -> { - writer.write("return err"); + + ProtocolUtils.writeSerDelegateFunction(context, writer, member, dataSource, (srcVar) -> { + writer.openBlock("if err := $L($L, $L); err != nil {", "}", serFunctionName, srcVar, dataDest, + () -> writer.write("return err")); }); } } diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonMemberDeserVisitor.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonMemberDeserVisitor.java index b287c9e0add..85eb018468e 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonMemberDeserVisitor.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonMemberDeserVisitor.java @@ -22,6 +22,8 @@ import software.amazon.smithy.go.codegen.SmithyGoDependency; import software.amazon.smithy.go.codegen.integration.ProtocolGenerator; import software.amazon.smithy.go.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.go.codegen.integration.ProtocolUtils; +import software.amazon.smithy.go.codegen.knowledge.GoPointableIndex; import software.amazon.smithy.model.shapes.BigDecimalShape; import software.amazon.smithy.model.shapes.BigIntegerShape; import software.amazon.smithy.model.shapes.BlobShape; @@ -55,13 +57,17 @@ */ public class JsonMemberDeserVisitor implements ShapeVisitor { private final GenerationContext context; + private final MemberShape member; private final String dataDest; private final Format timestampFormat; + private final GoPointableIndex pointableIndex; - public JsonMemberDeserVisitor(GenerationContext context, String dataDest, Format timestampFormat) { + public JsonMemberDeserVisitor(GenerationContext context, MemberShape member, String dataDest, Format timestampFormat) { this.context = context; + this.member = member; this.dataDest = dataDest; this.timestampFormat = timestampFormat; + this.pointableIndex = GoPointableIndex.of(context.getModel()); } @Override @@ -70,13 +76,20 @@ public Void blobShape(BlobShape shape) { writer.addUseImports(SmithyGoDependency.FMT); writer.addUseImports(SmithyGoDependency.BASE64); final String typeError = "return fmt.Errorf(\"expected $L to be []byte, got %T instead\", value)"; + writer.openBlock("if value != nil {", "}", () -> { writer.write("jtv, ok := value.(string)"); - writer.openBlock("if !ok {", "}", () -> writer.write(typeError, shape.getId().getName())); + writer.openBlock("if !ok {", "}", () -> { + writer.write(typeError, shape.getId().getName()); + }); + writer.write("dv, err := base64.StdEncoding.DecodeString(jtv)"); - writer.openBlock("if err != nil {", "}", () -> writer.write("return fmt.Errorf(\"failed to base64 decode " - + "$L, %w\", err)", shape.getId().getName())); - writer.write("$L = dv", dataDest); + writer.openBlock("if err != nil {", "}", () -> { + writer.write("return fmt.Errorf(\"failed to base64 decode $L, %w\", err)", shape.getId().getName()); + }); + + writer.write("$L = $L", dataDest, CodegenUtils.getAsPointerIfPointable(context.getModel(), + context.getWriter(), pointableIndex, member, "dv")); }); return null; } @@ -91,7 +104,8 @@ public Void booleanShape(BooleanShape shape) { writer.write("return fmt.Errorf(\"expected $L to be of type *bool, got %T instead\", value)", shape.getId().getName()); }); - writer.write("$L = &jtv", dataDest); + writer.write("$L = $L", dataDest, CodegenUtils.getAsPointerIfPointable(context.getModel(), + context.getWriter(), pointableIndex, member, "jtv")); }); return null; } @@ -100,27 +114,31 @@ public Void booleanShape(BooleanShape shape) { public Void byteShape(ByteShape shape) { GoWriter writer = context.getWriter(); // Smithy's byte shape represents a signed 8-bit int, which doesn't line up with Go's unsigned byte - handleInteger(shape, CodegenUtils.generatePointerValueIfPointable(writer, shape, "int8(i64)")); + handleInteger(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), writer, + pointableIndex, member, "int8(i64)")); return null; } @Override public Void shortShape(ShortShape shape) { GoWriter writer = context.getWriter(); - handleInteger(shape, CodegenUtils.generatePointerValueIfPointable(writer, shape, "int16(i64)")); + handleInteger(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), writer, + pointableIndex, member, "int16(i64)")); return null; } @Override public Void integerShape(IntegerShape shape) { GoWriter writer = context.getWriter(); - handleInteger(shape, CodegenUtils.generatePointerValueIfPointable(writer, shape, "int32(i64)")); + handleInteger(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), writer, + pointableIndex, member, "int32(i64)")); return null; } @Override public Void longShape(LongShape shape) { - handleInteger(shape, "&i64"); + handleInteger(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), context.getWriter(), + pointableIndex, member, "i64")); return null; } @@ -165,14 +183,15 @@ private void handleNumber(Shape shape, Runnable r) { @Override public Void floatShape(FloatShape shape) { - GoWriter writer = context.getWriter(); - handleFloat(shape, CodegenUtils.generatePointerValueIfPointable(writer, shape, "float32(f64)")); + handleFloat(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), context.getWriter(), + pointableIndex, member, "float32(f64)")); return null; } @Override public Void doubleShape(DoubleShape shape) { - handleFloat(shape, "&f64"); + handleFloat(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), context.getWriter(), + pointableIndex, member, "f64")); return null; } @@ -201,7 +220,8 @@ public Void stringShape(StringShape shape) { if (shape.hasTrait(EnumTrait.class)) { handleString(shape, () -> writer.write("$L = $P(jtv)", dataDest, symbol)); } else { - handleString(shape, () -> writer.write("$L = &jtv", dataDest)); + handleString(shape, () -> writer.write("$L = $L", dataDest, CodegenUtils.getAsPointerIfPointable( + context.getModel(), context.getWriter(), pointableIndex, member, "jtv"))); } return null; @@ -239,19 +259,22 @@ public Void timestampShape(TimestampShape shape) { handleString(shape, () -> { writer.write("t, err := smithytime.ParseDateTime(jtv)"); writer.write("if err != nil { return err }"); - writer.write("$L = &t", dataDest); + writer.write("$L = $L", dataDest, CodegenUtils.getAsPointerIfPointable(context.getModel(), + context.getWriter(), pointableIndex, member, "t")); }); break; case HTTP_DATE: handleString(shape, () -> { writer.write("t, err := smithytime.ParseHTTPDate(jtv)"); writer.write("if err != nil { return err }"); - writer.write("$L = &t", dataDest); + writer.write("$L = $L", dataDest, CodegenUtils.getAsPointerIfPointable(context.getModel(), + context.getWriter(), pointableIndex, member, "t")); }); break; case EPOCH_SECONDS: writer.addUseImports(SmithyGoDependency.SMITHY_PTR); - handleFloat(shape, "ptr.Time(smithytime.ParseEpochSeconds(f64))"); + handleFloat(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), context.getWriter(), + pointableIndex, member, "smithytime.ParseEpochSeconds(f64)")); break; default: throw new CodegenException(String.format("Unknown timestamp format %s", timestampFormat)); @@ -340,8 +363,11 @@ public Void mapShape(MapShape shape) { private void writeDelegateFunction(Shape shape) { String functionName = ProtocolGenerator.getDocumentDeserializerFunctionName(shape, context.getProtocolName()); GoWriter writer = context.getWriter(); - writer.openBlock("if err := $L(&$L, value); err != nil {", "}", functionName, dataDest, () -> { - writer.write("return err"); + + ProtocolUtils.writeDeserDelegateFunction(context, writer, member, dataDest, (destVar) -> { + writer.openBlock("if err := $L(&$L, value); err != nil {", "}", functionName, destVar, () -> { + writer.write("return err"); + }); }); } } diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonShapeDeserVisitor.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonShapeDeserVisitor.java index 5a219b66760..7f1f4d2c6e9 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonShapeDeserVisitor.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonShapeDeserVisitor.java @@ -31,7 +31,6 @@ import software.amazon.smithy.go.codegen.UnionGenerator; import software.amazon.smithy.go.codegen.integration.DocumentShapeDeserVisitor; import software.amazon.smithy.go.codegen.integration.ProtocolGenerator.GenerationContext; -import software.amazon.smithy.go.codegen.integration.ProtocolUtils; import software.amazon.smithy.model.shapes.CollectionShape; import software.amazon.smithy.model.shapes.DocumentShape; import software.amazon.smithy.model.shapes.MapShape; @@ -80,7 +79,7 @@ private JsonMemberDeserVisitor getMemberDeserVisitor(MemberShape member, String // Get the timestamp format to be used, defaulting to epoch seconds. Format format = member.getMemberTrait(getContext().getModel(), TimestampFormatTrait.class) .map(TimestampFormatTrait::getFormat).orElse(DEFAULT_TIMESTAMP_FORMAT); - return new JsonMemberDeserVisitor(getContext(), dataDest, format); + return new JsonMemberDeserVisitor(getContext(), member, dataDest, format); } @Override @@ -109,7 +108,7 @@ protected void deserializeCollection(GenerationContext context, CollectionShape writer.openBlock("for _, value := range shape {", "}", () -> { // We need to write out an intermediate variable to assign the value of the // member to so that we can use it in the append function later. - writer.write("var col $P", context.getSymbolProvider().toSymbol(target)); + writer.write("var col $P", context.getSymbolProvider().toSymbol(member)); target.accept(getMemberDeserVisitor(member, "col")); writer.write("cv = append(cv, col)"); writer.write(""); @@ -150,7 +149,7 @@ protected void deserializeMap(GenerationContext context, MapShape shape) { writer.openBlock("for key, value := range shape {", "}", () -> { // Deserialize the value. We need to write out an intermediate variable here // since we can't just pass in &mv[key] - writer.write("var parsedVal $P", targetSymbol); + writer.write("var parsedVal $P", context.getSymbolProvider().toSymbol(member)); context.getModel().expectShape(member.getTarget()).accept(getMemberDeserVisitor(member, "parsedVal")); writer.write("mv[key] = parsedVal"); writer.write(""); @@ -232,11 +231,8 @@ protected void deserializeUnion(GenerationContext context, UnionShape shape) { writer.write("var mv $P", targetSymbol); target.accept(getMemberDeserVisitor(member, "mv")); - if (!ProtocolUtils.usesScalarWhenUnionValue(target)) { - writer.write("uv = &$T{Value: *mv}", memberSymbol); - } else { - writer.write("uv = &$T{Value: mv}", memberSymbol); - } + // Union member types are never pointer types. + writer.write("uv = &$T{Value: mv}", memberSymbol); writer.write("break loop"); }); } diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonShapeSerVisitor.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonShapeSerVisitor.java index acbfa3f7bdb..7e957383e8d 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonShapeSerVisitor.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonShapeSerVisitor.java @@ -15,8 +15,6 @@ package software.amazon.smithy.aws.go.codegen; -import static software.amazon.smithy.go.codegen.integration.ProtocolUtils.writeSafeMemberAccessor; - import java.util.Collections; import java.util.Map; import java.util.Optional; @@ -26,12 +24,16 @@ import java.util.logging.Logger; import software.amazon.smithy.codegen.core.Symbol; import software.amazon.smithy.codegen.core.SymbolProvider; +import software.amazon.smithy.go.codegen.GoValueAccessUtils; import software.amazon.smithy.go.codegen.GoWriter; import software.amazon.smithy.go.codegen.SmithyGoDependency; import software.amazon.smithy.go.codegen.SymbolUtils; import software.amazon.smithy.go.codegen.integration.DocumentShapeSerVisitor; import software.amazon.smithy.go.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.go.codegen.integration.ProtocolUtils; +import software.amazon.smithy.go.codegen.knowledge.GoPointableIndex; import software.amazon.smithy.go.codegen.trait.NoSerializeTrait; +import software.amazon.smithy.model.knowledge.NullableIndex; import software.amazon.smithy.model.shapes.CollectionShape; import software.amazon.smithy.model.shapes.DocumentShape; import software.amazon.smithy.model.shapes.MapShape; @@ -59,6 +61,8 @@ final class JsonShapeSerVisitor extends DocumentShapeSerVisitor { private static final Logger LOGGER = Logger.getLogger(JsonShapeSerVisitor.class.getName()); private final Predicate memberFilter; + private final GoPointableIndex pointableIndex; + private final NullableIndex nullableIndex; /** * @param context The generation context. @@ -75,6 +79,8 @@ public JsonShapeSerVisitor(GenerationContext context) { public JsonShapeSerVisitor(GenerationContext context, Predicate memberFilter) { super(context); this.memberFilter = NoSerializeTrait.excludeNoSerializeMembers().and(memberFilter); + this.pointableIndex = GoPointableIndex.of(context.getModel()); + this.nullableIndex = NullableIndex.of(context.getModel()); } private DocumentMemberSerVisitor getMemberSerVisitor(MemberShape member, String source, String dest) { @@ -103,9 +109,11 @@ protected void serializeCollection(GenerationContext context, CollectionShape sh // Null values in lists should be serialized as such. Enums can't be null, so we don't bother // putting this in for their case. - if (!target.hasTrait(EnumTrait.class)) { + if (pointableIndex.isNillable(shape.getMember())) { writer.openBlock("if vv := v[i]; vv == nil {", "}", () -> { - writer.write("av.Null()"); + if (nullableIndex.isNullable(shape.getMember())) { + writer.write("av.Null()"); + } writer.write("continue"); }); } @@ -139,9 +147,11 @@ protected void serializeMap(GenerationContext context, MapShape shape) { // Null values in maps should be serialized as such. Enums can't be null, so we don't bother // putting this in for their case. - if (!target.hasTrait(EnumTrait.class)) { + if (pointableIndex.isNillable(shape.getValue())) { writer.openBlock("if vv := v[key]; vv == nil {", "}", () -> { - writer.write("om.Null()"); + if (nullableIndex.isNullable(shape.getValue())) { + writer.write("om.Null()"); + } writer.write("continue"); }); } @@ -169,7 +179,8 @@ protected void serializeStructure(GenerationContext context, StructureShape shap } Shape target = context.getModel().expectShape(member.getTarget()); String serializedMemberName = getSerializedMemberName(member); - writeSafeMemberAccessor(context, member, "v", (operand) -> { + + GoValueAccessUtils.writeIfNonZeroValueMember(context, writer, member, "v", (operand) -> { writer.write("ok := object.Key($S)", serializedMemberName); target.accept(getMemberSerVisitor(member, operand, "ok")); }); diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/QueryShapeSerVisitor.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/QueryShapeSerVisitor.java index 29903c35ed9..8db4635bcdd 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/QueryShapeSerVisitor.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/QueryShapeSerVisitor.java @@ -1,7 +1,5 @@ package software.amazon.smithy.aws.go.codegen; -import static software.amazon.smithy.go.codegen.integration.ProtocolUtils.writeSafeMemberAccessor; - import java.util.Collections; import java.util.Map; import java.util.Set; @@ -11,10 +9,13 @@ import software.amazon.smithy.codegen.core.Symbol; import software.amazon.smithy.codegen.core.SymbolProvider; import software.amazon.smithy.go.codegen.GoDependency; +import software.amazon.smithy.go.codegen.GoValueAccessUtils; import software.amazon.smithy.go.codegen.GoWriter; import software.amazon.smithy.go.codegen.SmithyGoDependency; import software.amazon.smithy.go.codegen.integration.DocumentShapeSerVisitor; import software.amazon.smithy.go.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.go.codegen.integration.ProtocolUtils; +import software.amazon.smithy.go.codegen.knowledge.GoPointableIndex; import software.amazon.smithy.go.codegen.trait.NoSerializeTrait; import software.amazon.smithy.model.shapes.CollectionShape; import software.amazon.smithy.model.shapes.DocumentShape; @@ -81,7 +82,7 @@ protected void serializeCollection(GenerationContext context, CollectionShape sh writer.openBlock("for i := range v {", "}", () -> { // Null values should be omitted for query. - if (!target.hasTrait(EnumTrait.class)) { + if (GoPointableIndex.of(context.getModel()).isNillable(shape.getMember())) { writer.openBlock("if vv := v[i]; vv == nil {", "}", () -> { writer.write("continue"); }); @@ -125,7 +126,7 @@ protected void serializeMap(GenerationContext context, MapShape shape) { writer.addUseImports(SmithyGoDependency.FMT); writer.openBlock("for _, key := range keys {", "}", () -> { // Null values should be omitted for query. - if (!target.hasTrait(EnumTrait.class)) { + if (GoPointableIndex.of(context.getModel()).isNillable(shape.getValue())) { writer.openBlock("if vv := v[key]; vv == nil {", "}", () -> { writer.write("continue"); }); @@ -152,7 +153,8 @@ protected void serializeStructure(GenerationContext context, StructureShape shap continue; } Shape target = context.getModel().expectShape(member.getTarget()); - writeSafeMemberAccessor(context, member, "v", (operand) -> { + + GoValueAccessUtils.writeIfNonZeroValueMember(context, writer, member, "v", (operand) -> { String locationName = getSerializedLocationName(member, member.getMemberName()); if (isFlattened(context, member)) { writer.write("objectKey := object.FlatKey($S)", locationName); diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestXmlProtocolGenerator.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestXmlProtocolGenerator.java index 8f7f9f6950a..c798a67378d 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestXmlProtocolGenerator.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/RestXmlProtocolGenerator.java @@ -12,7 +12,6 @@ import java.util.stream.Collectors; import java.util.TreeSet; import java.util.function.Predicate; -import software.amazon.smithy.aws.go.codegen.customization.AwsCustomGoDependency; import software.amazon.smithy.codegen.core.CodegenException; import software.amazon.smithy.codegen.core.Symbol; import software.amazon.smithy.codegen.core.SymbolProvider; @@ -27,13 +26,10 @@ import software.amazon.smithy.model.knowledge.HttpBindingIndex; import software.amazon.smithy.model.shapes.MemberShape; import software.amazon.smithy.model.shapes.OperationShape; -import software.amazon.smithy.model.shapes.ServiceShape; import software.amazon.smithy.model.shapes.Shape; -import software.amazon.smithy.model.shapes.ShapeId; import software.amazon.smithy.model.shapes.StructureShape; import software.amazon.smithy.model.traits.MediaTypeTrait; import software.amazon.smithy.model.traits.EnumTrait; -import software.amazon.smithy.model.traits.OptionalAuthTrait; import software.amazon.smithy.model.traits.StreamingTrait; import software.amazon.smithy.model.traits.TimestampFormatTrait; import software.amazon.smithy.model.traits.XmlAttributeTrait; diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlMemberDeserVisitor.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlMemberDeserVisitor.java index a1d41141916..1166895b2e2 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlMemberDeserVisitor.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlMemberDeserVisitor.java @@ -7,6 +7,8 @@ import software.amazon.smithy.go.codegen.SmithyGoDependency; import software.amazon.smithy.go.codegen.integration.ProtocolGenerator; import software.amazon.smithy.go.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.go.codegen.integration.ProtocolUtils; +import software.amazon.smithy.go.codegen.knowledge.GoPointableIndex; import software.amazon.smithy.model.shapes.BigDecimalShape; import software.amazon.smithy.model.shapes.BigIntegerShape; import software.amazon.smithy.model.shapes.BlobShape; @@ -34,28 +36,33 @@ import software.amazon.smithy.model.shapes.UnionShape; import software.amazon.smithy.model.traits.EnumTrait; import software.amazon.smithy.model.traits.TimestampFormatTrait.Format; +import software.amazon.smithy.model.traits.XmlFlattenedTrait; /** * Visitor to generate member values for aggregate types deserialized from documents. */ public class XmlMemberDeserVisitor implements ShapeVisitor { private final GenerationContext context; + private final MemberShape member; private final String dataDest; private final Format timestampFormat; + private final GoPointableIndex pointableIndex; // isXmlAttributeMember indicates if member is deserialized from the xml start elements attribute value. private final boolean isXmlAttributeMember; private final boolean isFlattened; public XmlMemberDeserVisitor( - GenerationContext context, String dataDest, Format timestampFormat, - boolean isXmlAttributeMember, boolean isFlattened + GenerationContext context, MemberShape member, String dataDest, Format timestampFormat, + boolean isXmlAttributeMember ) { this.context = context; + this.member = member; this.dataDest = dataDest; this.timestampFormat = timestampFormat; this.isXmlAttributeMember = isXmlAttributeMember; - this.isFlattened = isFlattened; + this.isFlattened = member.hasTrait(XmlFlattenedTrait.ID); + this.pointableIndex = GoPointableIndex.of(context.getModel()); } @Override @@ -83,7 +90,8 @@ public Void booleanShape(BooleanShape shape) { writer.write("return fmt.Errorf(\"expected $L to be of type *bool, got %T instead\", val)", shape.getId().getName()); }); - writer.write("$L = &xtv", dataDest); + writer.write("$L = $L", dataDest, CodegenUtils.getAsPointerIfPointable(context.getModel(), + context.getWriter(), pointableIndex, member, "xtv")); }); return null; } @@ -121,45 +129,52 @@ private void handleDone(Shape shape) { // empty values are handled for collection, map in their respective member deser func. // // Handle string shape zero value assignment - if ((shape.isStringShape() && !shape.hasTrait(EnumTrait.ID))) { - writer.addUseImports(SmithyGoDependency.SMITHY_PTR); - // assign empty string as zero value if val for string member is nil. - writer.write("if val == nil { $L = ptr.String(\"\")}", dataDest); - } + switch (shape.getType()) { + case STRING: + if (pointableIndex.isPointable(member)) { + // assign empty string as zero value if val for string member is nil. + writer.addUseImports(SmithyGoDependency.SMITHY_PTR); + writer.write("if val == nil { $L = ptr.String(\"\") }", dataDest); + } + break; + + case BLOB: + // assign empty byte slice as zero value if val for blob member is nil. + writer.addUseImports(SmithyGoDependency.SMITHY_PTR); + writer.write("if val == nil { $L = []byte{} }", dataDest); + break; - // Handle blob shape zero value assignment - if (shape.isBlobShape()) { - writer.addUseImports(SmithyGoDependency.SMITHY_PTR); - // assign empty byte slice as zero value if val for blob member is nil. - writer.write("if val == nil { $L = []byte{}}", dataDest); + default: + break; } } @Override public Void byteShape(ByteShape shape) { - GoWriter writer = context.getWriter(); // Smithy's byte shape represents a signed 8-bit int, which doesn't line up with Go's unsigned byte - handleInteger(shape, CodegenUtils.generatePointerValueIfPointable(writer, shape, "int8(i64)")); + handleInteger(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), context.getWriter(), + pointableIndex, member, "int8(i64)")); return null; } @Override public Void shortShape(ShortShape shape) { - GoWriter writer = context.getWriter(); - handleInteger(shape, CodegenUtils.generatePointerValueIfPointable(writer, shape, "int16(i64)")); + handleInteger(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), context.getWriter(), + pointableIndex, member, "int16(i64)")); return null; } @Override public Void integerShape(IntegerShape shape) { - GoWriter writer = context.getWriter(); - handleInteger(shape, CodegenUtils.generatePointerValueIfPointable(writer, shape, "int32(i64)")); + handleInteger(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), context.getWriter(), + pointableIndex, member, "int32(i64)")); return null; } @Override public Void longShape(LongShape shape) { - handleInteger(shape, "&i64"); + handleInteger(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), context.getWriter(), + pointableIndex, member, "i64")); return null; } @@ -200,14 +215,15 @@ private void handleNumber(Shape shape, Runnable r) { @Override public Void floatShape(FloatShape shape) { - GoWriter writer = context.getWriter(); - handleFloat(shape, CodegenUtils.generatePointerValueIfPointable(writer, shape, "float32(f64)")); + handleFloat(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), context.getWriter(), + pointableIndex, member, "float32(f64)")); return null; } @Override public Void doubleShape(DoubleShape shape) { - handleFloat(shape, "&f64"); + handleFloat(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), context.getWriter(), + pointableIndex, member, "f64")); return null; } @@ -235,7 +251,8 @@ public Void stringShape(StringShape shape) { if (shape.hasTrait(EnumTrait.class)) { handleString(shape, () -> writer.write("$L = $P(xtv)", dataDest, symbol)); } else { - handleString(shape, () -> writer.write("$L = &xtv", dataDest)); + handleString(shape, () -> writer.write("$L = $L", dataDest, CodegenUtils.getAsPointerIfPointable( + context.getModel(), context.getWriter(), pointableIndex, member, "xtv"))); } return null; @@ -269,19 +286,22 @@ public Void timestampShape(TimestampShape shape) { handleString(shape, () -> { writer.write("t, err := smithytime.ParseDateTime(xtv)"); writer.write("if err != nil { return err }"); - writer.write("$L = &t", dataDest); + writer.write("$L = $L", dataDest, CodegenUtils.getAsPointerIfPointable(context.getModel(), + context.getWriter(), pointableIndex, member, "t")); }); break; case HTTP_DATE: handleString(shape, () -> { writer.write("t, err := smithytime.ParseHTTPDate(xtv)"); writer.write("if err != nil { return err }"); - writer.write("$L = &t", dataDest); + writer.write("$L = $L", dataDest, CodegenUtils.getAsPointerIfPointable(context.getModel(), + context.getWriter(), pointableIndex, member, "t")); }); break; case EPOCH_SECONDS: writer.addUseImports(SmithyGoDependency.SMITHY_PTR); - handleFloat(shape, "ptr.Time(smithytime.ParseEpochSeconds(f64))"); + handleFloat(shape, CodegenUtils.getAsPointerIfPointable(context.getModel(), writer, + pointableIndex, member, "smithytime.ParseEpochSeconds(f64)")); break; default: throw new CodegenException(String.format("Unknown timestamp format %s", timestampFormat)); @@ -303,7 +323,7 @@ public Void bigDecimalShape(BigDecimalShape shape) { return null; } - private String unsupportedShape(Shape shape) { + private void unsupportedShape(Shape shape) { throw new CodegenException(String.format("Cannot deserialize shape type %s on protocol, shape: %s.", shape.getType(), shape.getId())); } @@ -379,8 +399,11 @@ private void writeDelegateFunction(Shape shape) { String functionName = ProtocolGenerator.getDocumentDeserializerFunctionName(shape, context.getProtocolName()); GoWriter writer = context.getWriter(); writer.write("nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)"); - writer.openBlock("if err := $L(&$L, nodeDecoder); err != nil {", "}", functionName, dataDest, () -> { - writer.write("return err"); + + ProtocolUtils.writeDeserDelegateFunction(context, writer, member, dataDest, (destVar) -> { + writer.openBlock("if err := $L(&$L, nodeDecoder); err != nil {", "}", functionName, destVar, () -> { + writer.write("return err"); + }); }); } @@ -389,11 +412,15 @@ private String getUnwrappedDelegateFunctionName(Shape shape) { } private void writeUnwrappedDelegateFunction(Shape shape) { - String functionName = getUnwrappedDelegateFunctionName(shape); - GoWriter writer = context.getWriter(); + final String functionName = getUnwrappedDelegateFunctionName(shape); + final GoWriter writer = context.getWriter(); + writer.write("nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)"); - writer.openBlock("if err := $L(&$L, nodeDecoder); err != nil {", "}", functionName, dataDest, () -> { - writer.write("return err"); + + ProtocolUtils.writeDeserDelegateFunction(context, writer, member, dataDest, (destVar) -> { + writer.openBlock("if err := $L(&$L, nodeDecoder); err != nil {", "}", functionName, destVar, () -> { + writer.write("return err"); + }); }); } } diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XMLProtocolUtils.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlProtocolUtils.java similarity index 92% rename from codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XMLProtocolUtils.java rename to codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlProtocolUtils.java index 1a8ecbe6580..0e037b0a164 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XMLProtocolUtils.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlProtocolUtils.java @@ -1,18 +1,19 @@ package software.amazon.smithy.aws.go.codegen; -import static software.amazon.smithy.go.codegen.integration.ProtocolUtils.writeSafeMemberAccessor; - import java.util.Optional; import software.amazon.smithy.aws.go.codegen.customization.AwsCustomGoDependency; import software.amazon.smithy.aws.traits.ServiceTrait; import software.amazon.smithy.codegen.core.CodegenException; import software.amazon.smithy.codegen.core.Symbol; import software.amazon.smithy.codegen.core.SymbolProvider; +import software.amazon.smithy.go.codegen.GoValueAccessUtils; import software.amazon.smithy.go.codegen.GoWriter; import software.amazon.smithy.go.codegen.SmithyGoDependency; import software.amazon.smithy.go.codegen.SymbolUtils; import software.amazon.smithy.go.codegen.SyntheticClone; import software.amazon.smithy.go.codegen.integration.ProtocolGenerator; +import software.amazon.smithy.go.codegen.integration.ProtocolUtils; +import software.amazon.smithy.go.codegen.knowledge.GoPointableIndex; import software.amazon.smithy.model.Model; import software.amazon.smithy.model.shapes.MemberShape; import software.amazon.smithy.model.shapes.ServiceShape; @@ -55,7 +56,7 @@ public static void generateXMLStartElement( // Traverse member shapes to get attributes shape.members().stream().forEach(memberShape -> { if (memberShape.hasTrait(XmlAttributeTrait.class)) { - writeSafeMemberAccessor(context, memberShape, inputSrc, (operand) -> { + GoValueAccessUtils.writeIfNonZeroValueMember(context, writer, memberShape, inputSrc, (operand) -> { // xml attributes should always be string String dest = "av"; formatXmlAttributeValueAsString(context, memberShape, operand, dest); @@ -85,8 +86,15 @@ private static void formatXmlAttributeValueAsString( // declare destination variable writer.write("var $L string", dest); + // Pointable value references need to be dereferenced before being used. + String derefSource = src; + if (GoPointableIndex.of(context.getModel()).isPointable(member)) { + derefSource = "*" + src; + } + if (target.isStringShape()) { - writer.write("$L = *$L", dest, src); + // create dereferenced copy of pointed to value. + writer.write("$L = $L", dest, derefSource); return; } @@ -96,15 +104,15 @@ private static void formatXmlAttributeValueAsString( writer.addUseImports(SmithyGoDependency.SMITHY_TIME); switch (format) { case DATE_TIME: - writer.write("$L = smithytime.FormatDateTime(*$L)", dest, src); + writer.write("$L = smithytime.FormatDateTime($L)", dest, derefSource); break; case HTTP_DATE: - writer.write("$L = smithytime.FormatHTTPDate(*$L)", dest, src); + writer.write("$L = smithytime.FormatHTTPDate($L)", dest, derefSource); break; case EPOCH_SECONDS: writer.addUseImports(SmithyGoDependency.STRCONV); - writer.write("$L = strconv.FormatFloat(smithytime.FormatEpochSeconds(*$L), 'f', -1, 64)", dest, - src); + writer.write("$L = strconv.FormatFloat(smithytime.FormatEpochSeconds($L), 'f', -1, 64)", + dest, derefSource); break; case UNKNOWN: throw new CodegenException("Unknown timestamp format"); @@ -114,25 +122,25 @@ private static void formatXmlAttributeValueAsString( if (target.isBooleanShape()) { writer.write(SmithyGoDependency.STRCONV); - writer.write("$L = strconv.FormatBool(*$L)", dest, src); + writer.write("$L = strconv.FormatBool($L)", dest, derefSource); return; } if (target.isByteShape() || target.isShortShape() || target.isIntegerShape() || target.isLongShape()) { writer.write(SmithyGoDependency.STRCONV); - writer.write("$L = strconv.FormatInt(int64(*$L), 10)", dest, src); + writer.write("$L = strconv.FormatInt(int64($L), 10)", dest, derefSource); return; } if (target.isFloatShape()) { writer.write(SmithyGoDependency.STRCONV); - writer.write("$L = strconv.FormatFloat(float64(*$L),'f', -1, 32)", dest, src); + writer.write("$L = strconv.FormatFloat(float64($L),'f', -1, 32)", dest, derefSource); return; } if (target.isDoubleShape()) { writer.write(SmithyGoDependency.STRCONV); - writer.write("$L = strconv.FormatFloat(*$L,'f', -1, 64)", dest, src); + writer.write("$L = strconv.FormatFloat($L,'f', -1, 64)", dest, derefSource); return; } diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlShapeDeserVisitor.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlShapeDeserVisitor.java index 760f1aa2e28..e83a4911ce0 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlShapeDeserVisitor.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlShapeDeserVisitor.java @@ -9,6 +9,7 @@ import java.util.logging.Logger; import software.amazon.smithy.codegen.core.Symbol; import software.amazon.smithy.codegen.core.SymbolProvider; +import software.amazon.smithy.go.codegen.CodegenUtils; import software.amazon.smithy.go.codegen.GoWriter; import software.amazon.smithy.go.codegen.SmithyGoDependency; import software.amazon.smithy.go.codegen.integration.DocumentShapeDeserVisitor; @@ -22,6 +23,7 @@ import software.amazon.smithy.model.shapes.MemberShape; import software.amazon.smithy.model.shapes.SetShape; import software.amazon.smithy.model.shapes.Shape; +import software.amazon.smithy.model.shapes.ShapeType; import software.amazon.smithy.model.shapes.SimpleShape; import software.amazon.smithy.model.shapes.StructureShape; import software.amazon.smithy.model.shapes.UnionShape; @@ -69,21 +71,21 @@ protected Map getAdditionalArguments() { return Collections.singletonMap("decoder", "smithyxml.NodeDecoder"); } - private XmlMemberDeserVisitor getMemberDeserVisitor(MemberShape member, String dataDest, boolean isXmlAttibuteMember) { + private XmlMemberDeserVisitor getMemberDeserVisitor(MemberShape member, String dataDest, boolean isXmlAttributeMember) { // Get the timestamp format to be used, defaulting to rfc 3339 date-time format. TimestampFormatTrait.Format format = member.getMemberTrait(getContext().getModel(), TimestampFormatTrait.class) .map(TimestampFormatTrait::getFormat).orElse(DEFAULT_TIMESTAMP_FORMAT); - // Check if FlattenedTrait is applied - boolean isFlattened = member.hasTrait(XmlFlattenedTrait.ID); - return new XmlMemberDeserVisitor(getContext(), dataDest, format, isXmlAttibuteMember, isFlattened); + return new XmlMemberDeserVisitor(getContext(), member, dataDest, format, isXmlAttributeMember); } // generates code to define and initialize output variable for an aggregate shape - private void generatesIntializerForOutputVariable(GenerationContext context, Shape shape) { + private void generatesInitializerForOutputVariable(GenerationContext context, Shape shape) { GoWriter writer = context.getWriter(); Symbol shapeSymbol = context.getSymbolProvider().toSymbol(shape); writer.write("var sv $P", shapeSymbol); + // TODO [denseListMap] need to reference if pointable type. Assumes containers are always double pointers. + // TODO this probably isn't true for union types. writer.openBlock("if *v == nil {", "", () -> { if (shape.isStructureShape()) { writer.write("sv = &$T{}", shapeSymbol); @@ -137,7 +139,7 @@ protected void deserializeCollection(GenerationContext context, CollectionShape GoWriter writer = context.getWriter(); // initialize the output member variable - generatesIntializerForOutputVariable(context, shape); + generatesInitializerForOutputVariable(context, shape); writer.write("originalDecoder := decoder"); // Iterate through the decoder. The member visitor will handle popping xml tokens @@ -161,7 +163,7 @@ protected void deserializeCollection(GenerationContext context, CollectionShape writer.openBlock("for {", "}", () -> { writer.addUseImports(SmithyGoDependency.STRINGS); writer.openBlock("if strings.EqualFold($S, t.Name.Local) {", "} else {", serializedMemberName, () -> { - writer.write("var col $P", context.getSymbolProvider().toSymbol(target)); + writer.write("var col $P", context.getSymbolProvider().toSymbol(member)); target.accept(getMemberDeserVisitor(member, "col", false)); writer.write("sv = append(sv, col)"); @@ -193,7 +195,7 @@ public void generateFlattenedCollectionDeserializer(GenerationContext context, C writer.openBlock("func $L(v *$P, decoder smithyxml.NodeDecoder) error {", "}", getUnwrappedMapDelegateFunctionName(context, shape), symbol, () -> { // initialize the output member variable - generatesIntializerForOutputVariable(context, shape); + generatesInitializerForOutputVariable(context, shape); writer.openBlock(" switch { default: ", "}", () -> { writer.write("var mv $P", memberSymbol); writer.write("t := decoder.StartEl"); @@ -212,7 +214,7 @@ protected void deserializeMap(GenerationContext context, MapShape shape) { GoWriter writer = context.getWriter(); // initialize the output member variable - generatesIntializerForOutputVariable(context, shape); + generatesInitializerForOutputVariable(context, shape); // Iterate through the decoder. The member visitor will handle popping xml tokens // enclosed within a xml start and end element. @@ -232,6 +234,7 @@ protected void deserializeMap(GenerationContext context, MapShape shape) { }); }); }); + writer.write("*v = sv"); writer.write("return nil"); } @@ -246,7 +249,7 @@ protected void generateFlattenedMapDeserializer(GenerationContext context, MapSh writer.openBlock("func $L(v *$P, decoder smithyxml.NodeDecoder) error {", "}", getUnwrappedMapDelegateFunctionName(context, shape), symbol, () -> { // initialize the output member variable - generatesIntializerForOutputVariable(context, shape); + generatesInitializerForOutputVariable(context, shape); MemberShape valueShape = shape.getValue(); MemberShape keyShape = shape.getKey(); @@ -269,7 +272,7 @@ protected void generateFlattenedMapDeserializer(GenerationContext context, MapSh if (keyShape.hasTrait(EnumTrait.class) || targetKey.hasTrait(EnumTrait.class)) { writer.write("sv[string(ek)] = ev"); } else { - writer.write("sv[*ek] = ev"); + writer.write("sv[ek] = ev"); } writer.write("break"); }); @@ -282,7 +285,6 @@ protected void generateFlattenedMapDeserializer(GenerationContext context, MapSh getMemberDeserVisitor(keyShape, dest, false)); }); -// MemberShape valueShape = shape.getValue(); writer.openBlock("case strings.EqualFold($S, t.Name.Local):", "", getSerializedMemberName(valueShape), () -> { String dest = "ev"; context.getModel().expectShape(valueShape.getTarget()).accept( @@ -310,7 +312,7 @@ protected void deserializeStructure(GenerationContext context, StructureShape sh Model model = context.getModel(); // initialize the output member variable - generatesIntializerForOutputVariable(context, shape); + generatesInitializerForOutputVariable(context, shape); // Deserialize member shapes modeled with xml attribute trait if (hasXmlAttributeTraitMember(shape)) { writer.openBlock("for _, attr := range decoder.StartEl.Attr {", "}", () -> { diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlShapeSerVisitor.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlShapeSerVisitor.java index 20e9d430e0a..c73d31e4241 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlShapeSerVisitor.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/XmlShapeSerVisitor.java @@ -1,7 +1,5 @@ package software.amazon.smithy.aws.go.codegen; -import static software.amazon.smithy.go.codegen.integration.ProtocolUtils.writeSafeMemberAccessor; - import java.util.Collections; import java.util.Map; import java.util.Set; @@ -10,6 +8,7 @@ import java.util.logging.Logger; import software.amazon.smithy.codegen.core.Symbol; import software.amazon.smithy.codegen.core.SymbolProvider; +import software.amazon.smithy.go.codegen.GoValueAccessUtils; import software.amazon.smithy.go.codegen.GoWriter; import software.amazon.smithy.go.codegen.SmithyGoDependency; import software.amazon.smithy.go.codegen.integration.DocumentShapeSerVisitor; @@ -22,7 +21,6 @@ import software.amazon.smithy.model.shapes.Shape; import software.amazon.smithy.model.shapes.StructureShape; import software.amazon.smithy.model.shapes.UnionShape; -import software.amazon.smithy.model.traits.EnumTrait; import software.amazon.smithy.model.traits.TimestampFormatTrait; import software.amazon.smithy.model.traits.XmlFlattenedTrait; import software.amazon.smithy.model.traits.XmlNameTrait; @@ -51,7 +49,6 @@ private DocumentMemberSerVisitor getMemberSerVisitor(MemberShape member, String return new DocumentMemberSerVisitor(getContext(), member, source, dest, format); } - @Override protected Map getAdditionalSerArguments() { return Collections.singletonMap("value", "smithyxml.Value"); @@ -76,14 +73,12 @@ protected void serializeCollection(GenerationContext context, CollectionShape sh writer.insertTrailingNewline(); writer.openBlock("for i := range v {", "}", () -> { - // Null values in lists should be serialized as such. Enums can't be null - if (!target.hasTrait(EnumTrait.class)) { - writer.openBlock("if vv := v[i]; vv == nil {", "}", () -> { - writer.write("am := array.Member()"); - writer.write("am.Close()"); - writer.write("continue"); - }); - } + // Serialize zero members as empty values. + GoValueAccessUtils.writeIfZeroValue(context, writer, member, "v[i]", () -> { + writer.write("am := array.Member()"); + writer.write("am.Close()"); + writer.write("continue"); + }); writer.write("am := array.Member()"); target.accept(getMemberSerVisitor(shape.getMember(), "v[i]", "am")); @@ -109,17 +104,15 @@ protected void serializeMap(GenerationContext context, MapShape shape) { writer.write("entry := m.Entry()"); writer.insertTrailingNewline(); - // Null values in maps should be serialized as such. Enums can't be null - if (!targetValue.hasTrait(EnumTrait.class)) { - writer.openBlock("if vv := v[key]; vv == nil {", "}", () -> { - writer.write("entry.Close()"); - writer.write("continue"); - }); - } + // Serialize zero values as empty values. + GoValueAccessUtils.writeIfZeroValue(context, writer, shape.getValue(), "v[i]", () -> { + writer.write("entry.Close()"); + writer.write("continue"); + }); // map entry key XmlProtocolUtils.generateXMLStartElement(context, shape.getKey(), "keyElement", "v"); - targetKey.accept(getMemberSerVisitor(shape.getKey(), "&key", "entry.MemberElement(keyElement)")); + targetKey.accept(getMemberSerVisitor(shape.getKey(), "key", "entry.MemberElement(keyElement)")); writer.insertTrailingNewline(); // map entry value @@ -155,7 +148,8 @@ protected void serializeStructure(GenerationContext context, StructureShape shap Shape target = context.getModel().expectShape(member.getTarget()); writer.addUseImports(SmithyGoDependency.SMITHY_XML); - writeSafeMemberAccessor(context, member, "v", (operand) -> { + + GoValueAccessUtils.writeIfNonZeroValueMember(context, writer, member, "v", (operand) -> { XmlProtocolUtils.generateXMLStartElement(context, member, "root", "v"); // check if member shape has flattened trait diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/AwsCustomGoDependency.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/AwsCustomGoDependency.java index ef98213ffd3..f5b8e3698ec 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/AwsCustomGoDependency.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/AwsCustomGoDependency.java @@ -48,8 +48,8 @@ private AwsCustomGoDependency() { } private static final class Versions { - private static final String INTERNAL_S3SHARED = "v0.3.1-0.20201112231636-9ae467d8157d"; + private static final String INTERNAL_S3SHARED = "v0.3.1-0.20201113222241-726e4a15683d"; private static final String INTERNAL_ACCEPTENCODING = "v0.3.0"; - private static final String INTERNAL_PRESIGNURL = "v0.1.1-0.20201112231636-9ae467d8157d"; + private static final String INTERNAL_PRESIGNURL = "v0.1.1-0.20201113222241-726e4a15683d"; } } diff --git a/config/go.mod b/config/go.mod index f4f4d430cd6..8352ef35d0d 100644 --- a/config/go.mod +++ b/config/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/config go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231730-2d786000ccee + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/aws/aws-sdk-go-v2/credentials v0.1.4 github.com/aws/aws-sdk-go-v2/ec2imds v0.1.4 github.com/aws/aws-sdk-go-v2/service/sts v0.29.0 diff --git a/credentials/go.mod b/credentials/go.mod index 79a135848ab..a617bcee609 100644 --- a/credentials/go.mod +++ b/credentials/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/credentials go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231730-2d786000ccee + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/aws/aws-sdk-go-v2/ec2imds v0.1.4 github.com/aws/aws-sdk-go-v2/service/sts v0.29.0 github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 diff --git a/credentials/stscreds/assume_role_provider.go b/credentials/stscreds/assume_role_provider.go index 5e49245922a..1e047093972 100644 --- a/credentials/stscreds/assume_role_provider.go +++ b/credentials/stscreds/assume_role_provider.go @@ -195,7 +195,7 @@ type AssumeRoleOptions struct { // those allowed by the identity-based policy of the role that is being assumed. // For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) // in the IAM User Guide. - PolicyARNs []*types.PolicyDescriptorType + PolicyARNs []types.PolicyDescriptorType // The identification number of the MFA device that is associated with the user // who is making the AssumeRole call. Specify this value if the trust policy diff --git a/credentials/stscreds/web_identity_provider.go b/credentials/stscreds/web_identity_provider.go index c44ecc43d23..9e3e5e8adce 100644 --- a/credentials/stscreds/web_identity_provider.go +++ b/credentials/stscreds/web_identity_provider.go @@ -57,9 +57,10 @@ type WebIdentityRoleOptions struct { // If ExpiryWindow is 0 or less it will be ignored. ExpiryWindow time.Duration - // The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as managed session policies. - // The policies must exist in the same account as the role. - PolicyARNs []*types.PolicyDescriptorType + // The Amazon Resource Names (ARNs) of the IAM managed policies that you + // want to use as managed session policies. The policies must exist in the + // same account as the role. + PolicyARNs []types.PolicyDescriptorType } // IdentityTokenRetriever is an interface for retrieving a JWT diff --git a/example/service/s3/listObjects/listObjects.go b/example/service/s3/listObjects/listObjects.go index 71ac8a49e7f..126d7dc4381 100644 --- a/example/service/s3/listObjects/listObjects.go +++ b/example/service/s3/listObjects/listObjects.go @@ -141,7 +141,7 @@ func (p *S3ListObjectsV2Paginator) NextPage(ctx context.Context) ( params := p.params if v := p.options.Limit; v != 0 { - params.MaxKeys = &v + params.MaxKeys = v } result, err := p.client.ListObjectsV2(ctx, ¶ms) if err != nil { @@ -149,7 +149,7 @@ func (p *S3ListObjectsV2Paginator) NextPage(ctx context.Context) ( } p.firstPage = false - if result.IsTruncated != nil && *result.IsTruncated == false { + if !result.IsTruncated { p.nextToken = nil } else { p.nextToken = result.NextContinuationToken diff --git a/feature/s3/manager/download.go b/feature/s3/manager/download.go index 6c1c2d1a944..c8b59c5673e 100644 --- a/feature/s3/manager/download.go +++ b/feature/s3/manager/download.go @@ -412,8 +412,8 @@ func (d *downloader) setTotalBytes(resp *s3.GetObjectOutput) { if resp.ContentRange == nil { // ContentRange is nil when the full file contents is provided, and // is not chunked. Use ContentLength instead. - if resp.ContentLength != nil { - d.totalBytes = *resp.ContentLength + if resp.ContentLength > 0 { + d.totalBytes = resp.ContentLength return } } else { diff --git a/feature/s3/manager/download_test.go b/feature/s3/manager/download_test.go index a0af81cf59d..089cbc746c9 100644 --- a/feature/s3/manager/download_test.go +++ b/feature/s3/manager/download_test.go @@ -70,7 +70,7 @@ func newDownloadRangeClient(data []byte) (*downloadCaptureClient, *int, *[]strin return &s3.GetObjectOutput{ Body: ioutil.NopCloser(bytes.NewReader(bodyBytes)), ContentRange: aws.String(fmt.Sprintf("bytes %d-%d/%d", start, fin-1, len(data))), - ContentLength: aws.Int64(int64(len(bodyBytes))), + ContentLength: int64(len(bodyBytes)), }, nil } @@ -83,7 +83,7 @@ func newDownloadNonRangeClient(data []byte) (*downloadCaptureClient, *int) { capture.GetObjectFn = func(_ context.Context, params *s3.GetObjectInput, _ ...func(*s3.Options)) (*s3.GetObjectOutput, error) { return &s3.GetObjectOutput{ Body: ioutil.NopCloser(bytes.NewReader(data[:])), - ContentLength: aws.Int64(int64(len(data))), + ContentLength: int64(len(data)), }, nil } @@ -139,7 +139,7 @@ func newDownloadWithErrReaderClient(cases []testErrReader) (*downloadCaptureClie out := &s3.GetObjectOutput{ Body: ioutil.NopCloser(&c), ContentRange: aws.String(fmt.Sprintf("bytes %d-%d/%d", 0, c.Len-1, c.Len)), - ContentLength: aws.Int64(c.Len), + ContentLength: c.Len, } index++ return out, nil @@ -542,7 +542,7 @@ func TestDownload_WithFailure(t *testing.T) { body := bytes.NewReader(make([]byte, manager.DefaultDownloadPartSize)) out = &s3.GetObjectOutput{ Body: ioutil.NopCloser(body), - ContentLength: aws.Int64(int64(body.Len())), + ContentLength: int64(body.Len()), ContentRange: aws.String(fmt.Sprintf("bytes %d-%d/%d", startingByte, body.Len()-1, body.Len()*10)), } diff --git a/feature/s3/manager/go.mod b/feature/s3/manager/go.mod index 1f3bbe8aeed..45c728cce68 100644 --- a/feature/s3/manager/go.mod +++ b/feature/s3/manager/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/feature/s3/manager go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231730-2d786000ccee + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/aws/aws-sdk-go-v2/config v0.2.2 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v0.3.1 // indirect github.com/aws/aws-sdk-go-v2/service/s3 v0.29.0 diff --git a/feature/s3/manager/integ_bucket_region_test.go b/feature/s3/manager/integ_bucket_region_test.go index d3f886619b7..3450bd18d24 100644 --- a/feature/s3/manager/integ_bucket_region_test.go +++ b/feature/s3/manager/integ_bucket_region_test.go @@ -11,7 +11,7 @@ import ( "github.com/aws/aws-sdk-go-v2/service/s3" ) -func TestGetBucketRegion(t *testing.T) { +func TestInteg_GetBucketRegion(t *testing.T) { expectRegion := integConfig.Region region, err := manager.GetBucketRegion(context.Background(), s3.NewFromConfig(integConfig), aws.ToString(bucketName)) diff --git a/feature/s3/manager/integ_upload_test.go b/feature/s3/manager/integ_upload_test.go index fb34c6021b9..477cc4a4524 100644 --- a/feature/s3/manager/integ_upload_test.go +++ b/feature/s3/manager/integ_upload_test.go @@ -11,7 +11,6 @@ import ( "regexp" "testing" - "github.com/aws/aws-sdk-go-v2/aws" v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/feature/s3/manager" "github.com/aws/aws-sdk-go-v2/service/s3" @@ -21,7 +20,7 @@ import ( var integBuf12MB = make([]byte, 1024*1024*12) var integMD512MB = fmt.Sprintf("%x", md5.Sum(integBuf12MB)) -func TestUploadConcurrently(t *testing.T) { +func TestInteg_UploadConcurrently(t *testing.T) { key := "12mb-1" mgr := manager.NewUploader(client) out, err := mgr.Upload(context.Background(), &s3.PutObjectInput{ @@ -58,14 +57,14 @@ func (b *invalidateHash) RegisterMiddleware(stack *middleware.Stack) error { func (b *invalidateHash) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { - if input, ok := in.Parameters.(*s3.UploadPartInput); ok && aws.ToInt32(input.PartNumber) == 2 { + if input, ok := in.Parameters.(*s3.UploadPartInput); ok && input.PartNumber == 2 { ctx = v4.SetPayloadHash(ctx, "000") } return next.HandleSerialize(ctx, in) } -func TestUploadFailCleanup(t *testing.T) { +func TestInteg_UploadFailCleanup(t *testing.T) { key := "12mb-leave" mgr := manager.NewUploader(client, func(u *manager.Uploader) { u.LeavePartsOnError = false diff --git a/feature/s3/manager/internal/integration/integration.go b/feature/s3/manager/internal/integration/integration.go index ded44f39ae2..828141cfedc 100644 --- a/feature/s3/manager/internal/integration/integration.go +++ b/feature/s3/manager/internal/integration/integration.go @@ -141,7 +141,7 @@ func CleanupBucket(client *s3.Client, bucketName string) error { var delete types.Delete for _, content := range listObjectsV2.Contents { obj := content - delete.Objects = append(delete.Objects, &types.ObjectIdentifier{Key: obj.Key}) + delete.Objects = append(delete.Objects, types.ObjectIdentifier{Key: obj.Key}) } deleteObjects, err := client.DeleteObjects(context.Background(), &s3.DeleteObjectsInput{ @@ -156,7 +156,7 @@ func CleanupBucket(client *s3.Client, bucketName string) error { errs = append(errs, fmt.Errorf("failed to delete %s, %s", aws.ToString(deleteError.Key), aws.ToString(deleteError.Message))) } - if aws.ToBool(listObjectsV2.IsTruncated) { + if listObjectsV2.IsTruncated { input.ContinuationToken = listObjectsV2.NextContinuationToken } else { break @@ -182,7 +182,7 @@ func CleanupBucket(client *s3.Client, bucketName string) error { }) } - if aws.ToBool(uploads.IsTruncated) { + if uploads.IsTruncated { input.KeyMarker = uploads.NextKeyMarker input.UploadIdMarker = uploads.NextUploadIdMarker } else { diff --git a/feature/s3/manager/upload.go b/feature/s3/manager/upload.go index 90aad5a9fd4..7eb477bb54c 100644 --- a/feature/s3/manager/upload.go +++ b/feature/s3/manager/upload.go @@ -467,11 +467,11 @@ type chunk struct { // completedParts is a wrapper to make parts sortable by their part number, // since S3 required this list to be sent in sorted order. -type completedParts []*types.CompletedPart +type completedParts []types.CompletedPart func (a completedParts) Len() int { return len(a) } func (a completedParts) Swap(i, j int) { a[i], a[j] = a[j], a[i] } -func (a completedParts) Less(i, j int) bool { return *a[i].PartNumber < *a[j].PartNumber } +func (a completedParts) Less(i, j int) bool { return a[i].PartNumber < a[j].PartNumber } // upload will perform a multipart upload using the firstBuf buffer containing // the first chunk of data. @@ -601,7 +601,7 @@ func (u *multiuploader) send(c chunk) error { UploadId: &u.uploadID, SSECustomerAlgorithm: u.in.SSECustomerAlgorithm, SSECustomerKey: u.in.SSECustomerKey, - PartNumber: &c.num, + PartNumber: c.num, } resp, err := u.cfg.S3.UploadPart(u.ctx, params, u.cfg.ClientOptions...) @@ -610,7 +610,7 @@ func (u *multiuploader) send(c chunk) error { } n := c.num - completed := &types.CompletedPart{ETag: resp.ETag, PartNumber: &n} + completed := types.CompletedPart{ETag: resp.ETag, PartNumber: n} u.m.Lock() u.parts = append(u.parts, completed) diff --git a/feature/s3/manager/upload_test.go b/feature/s3/manager/upload_test.go index d42bfa579f3..3c89b258f81 100644 --- a/feature/s3/manager/upload_test.go +++ b/feature/s3/manager/upload_test.go @@ -86,7 +86,7 @@ func TestUploadOrderMulti(t *testing.T) { parts := (*args)[4].(*s3.CompleteMultipartUploadInput).MultipartUpload.Parts for i := 0; i < 3; i++ { - num := aws.ToInt32(parts[i].PartNumber) + num := parts[i].PartNumber etag := aws.ToString(parts[i].ETag) if int32(i+1) != num { diff --git a/internal/protocoltest/awsrestjson/api_op_AllQueryStringTypes.go b/internal/protocoltest/awsrestjson/api_op_AllQueryStringTypes.go index 1747b77c2ba..ee36cf0bb6a 100644 --- a/internal/protocoltest/awsrestjson/api_op_AllQueryStringTypes.go +++ b/internal/protocoltest/awsrestjson/api_op_AllQueryStringTypes.go @@ -30,13 +30,13 @@ func (c *Client) AllQueryStringTypes(ctx context.Context, params *AllQueryString type AllQueryStringTypesInput struct { QueryBoolean *bool - QueryBooleanList []*bool + QueryBooleanList []bool QueryByte *int8 QueryDouble *float64 - QueryDoubleList []*float64 + QueryDoubleList []float64 QueryEnum types.FooEnum @@ -46,9 +46,9 @@ type AllQueryStringTypesInput struct { QueryInteger *int32 - QueryIntegerList []*int32 + QueryIntegerList []int32 - QueryIntegerSet []*int32 + QueryIntegerSet []int32 QueryLong *int64 @@ -56,13 +56,13 @@ type AllQueryStringTypesInput struct { QueryString *string - QueryStringList []*string + QueryStringList []string - QueryStringSet []*string + QueryStringSet []string QueryTimestamp *time.Time - QueryTimestampList []*time.Time + QueryTimestampList []time.Time } type AllQueryStringTypesOutput struct { diff --git a/internal/protocoltest/awsrestjson/api_op_AllQueryStringTypes_test.go b/internal/protocoltest/awsrestjson/api_op_AllQueryStringTypes_test.go index 8b7b87f04f4..ae2ff2641c9 100644 --- a/internal/protocoltest/awsrestjson/api_op_AllQueryStringTypes_test.go +++ b/internal/protocoltest/awsrestjson/api_op_AllQueryStringTypes_test.go @@ -40,48 +40,48 @@ func TestClient_AllQueryStringTypes_awsRestjson1Serialize(t *testing.T) { "RestJsonAllQueryStringTypes": { Params: &AllQueryStringTypesInput{ QueryString: ptr.String("Hello there"), - QueryStringList: []*string{ - ptr.String("a"), - ptr.String("b"), - ptr.String("c"), + QueryStringList: []string{ + "a", + "b", + "c", }, - QueryStringSet: []*string{ - ptr.String("a"), - ptr.String("b"), - ptr.String("c"), + QueryStringSet: []string{ + "a", + "b", + "c", }, QueryByte: ptr.Int8(1), QueryShort: ptr.Int16(2), QueryInteger: ptr.Int32(3), - QueryIntegerList: []*int32{ - ptr.Int32(1), - ptr.Int32(2), - ptr.Int32(3), + QueryIntegerList: []int32{ + 1, + 2, + 3, }, - QueryIntegerSet: []*int32{ - ptr.Int32(1), - ptr.Int32(2), - ptr.Int32(3), + QueryIntegerSet: []int32{ + 1, + 2, + 3, }, QueryLong: ptr.Int64(4), QueryFloat: ptr.Float32(1.1), QueryDouble: ptr.Float64(1.1), - QueryDoubleList: []*float64{ - ptr.Float64(1.1), - ptr.Float64(2.1), - ptr.Float64(3.1), + QueryDoubleList: []float64{ + 1.1, + 2.1, + 3.1, }, QueryBoolean: ptr.Bool(true), - QueryBooleanList: []*bool{ - ptr.Bool(true), - ptr.Bool(false), - ptr.Bool(true), + QueryBooleanList: []bool{ + true, + false, + true, }, QueryTimestamp: ptr.Time(smithytime.ParseEpochSeconds(1)), - QueryTimestampList: []*time.Time{ - ptr.Time(smithytime.ParseEpochSeconds(1)), - ptr.Time(smithytime.ParseEpochSeconds(2)), - ptr.Time(smithytime.ParseEpochSeconds(3)), + QueryTimestampList: []time.Time{ + smithytime.ParseEpochSeconds(1), + smithytime.ParseEpochSeconds(2), + smithytime.ParseEpochSeconds(3), }, QueryEnum: types.FooEnum("Foo"), QueryEnumList: []types.FooEnum{ diff --git a/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeaders.go b/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeaders.go index 153e84f78a2..4e4164fe6fa 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeaders.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeaders.go @@ -28,13 +28,13 @@ func (c *Client) HttpPrefixHeaders(ctx context.Context, params *HttpPrefixHeader type HttpPrefixHeadersInput struct { Foo *string - FooMap map[string]*string + FooMap map[string]string } type HttpPrefixHeadersOutput struct { Foo *string - FooMap map[string]*string + FooMap map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeadersResponse.go b/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeadersResponse.go index 43bb33ed1ad..85e47388ec7 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeadersResponse.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeadersResponse.go @@ -29,7 +29,7 @@ type HttpPrefixHeadersResponseInput struct { } type HttpPrefixHeadersResponseOutput struct { - PrefixHeaders map[string]*string + PrefixHeaders map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeadersResponse_test.go b/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeadersResponse_test.go index dd4c9812b21..9adadbbdc8f 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeadersResponse_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeadersResponse_test.go @@ -7,7 +7,6 @@ import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/awslabs/smithy-go/middleware" - "github.com/awslabs/smithy-go/ptr" smithyrand "github.com/awslabs/smithy-go/rand" smithytesting "github.com/awslabs/smithy-go/testing" smithyhttp "github.com/awslabs/smithy-go/transport/http" @@ -34,9 +33,9 @@ func TestClient_HttpPrefixHeadersResponse_awsRestjson1Deserialize(t *testing.T) }, Body: []byte(``), ExpectResult: &HttpPrefixHeadersResponseOutput{ - PrefixHeaders: map[string]*string{ - "X-Foo": ptr.String("Foo"), - "Hello": ptr.String("Hello"), + PrefixHeaders: map[string]string{ + "X-Foo": "Foo", + "Hello": "Hello", }, }, }, diff --git a/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeaders_test.go b/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeaders_test.go index e420510127e..ce793d52f14 100644 --- a/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeaders_test.go +++ b/internal/protocoltest/awsrestjson/api_op_HttpPrefixHeaders_test.go @@ -39,9 +39,9 @@ func TestClient_HttpPrefixHeaders_awsRestjson1Serialize(t *testing.T) { "RestJsonHttpPrefixHeadersArePresent": { Params: &HttpPrefixHeadersInput{ Foo: ptr.String("Foo"), - FooMap: map[string]*string{ - "Abc": ptr.String("Abc value"), - "Def": ptr.String("Def value"), + FooMap: map[string]string{ + "Abc": "Abc value", + "Def": "Def value", }, }, ExpectMethod: "GET", @@ -60,7 +60,7 @@ func TestClient_HttpPrefixHeaders_awsRestjson1Serialize(t *testing.T) { "RestJsonHttpPrefixHeadersAreNotPresent": { Params: &HttpPrefixHeadersInput{ Foo: ptr.String("Foo"), - FooMap: map[string]*string{}, + FooMap: map[string]string{}, }, ExpectMethod: "GET", ExpectURIPath: "/HttpPrefixHeaders", @@ -158,9 +158,9 @@ func TestClient_HttpPrefixHeaders_awsRestjson1Deserialize(t *testing.T) { Body: []byte(``), ExpectResult: &HttpPrefixHeadersOutput{ Foo: ptr.String("Foo"), - FooMap: map[string]*string{ - "Abc": ptr.String("Abc value"), - "Def": ptr.String("Def value"), + FooMap: map[string]string{ + "Abc": "Abc value", + "Def": "Def value", }, }, }, diff --git a/internal/protocoltest/awsrestjson/api_op_InputAndOutputWithHeaders.go b/internal/protocoltest/awsrestjson/api_op_InputAndOutputWithHeaders.go index cb1ce9dca18..1bf777cad6c 100644 --- a/internal/protocoltest/awsrestjson/api_op_InputAndOutputWithHeaders.go +++ b/internal/protocoltest/awsrestjson/api_op_InputAndOutputWithHeaders.go @@ -29,7 +29,7 @@ func (c *Client) InputAndOutputWithHeaders(ctx context.Context, params *InputAnd } type InputAndOutputWithHeadersInput struct { - HeaderBooleanList []*bool + HeaderBooleanList []bool HeaderByte *int8 @@ -45,7 +45,7 @@ type InputAndOutputWithHeadersInput struct { HeaderInteger *int32 - HeaderIntegerList []*int32 + HeaderIntegerList []int32 HeaderLong *int64 @@ -53,17 +53,17 @@ type InputAndOutputWithHeadersInput struct { HeaderString *string - HeaderStringList []*string + HeaderStringList []string - HeaderStringSet []*string + HeaderStringSet []string - HeaderTimestampList []*time.Time + HeaderTimestampList []time.Time HeaderTrueBool *bool } type InputAndOutputWithHeadersOutput struct { - HeaderBooleanList []*bool + HeaderBooleanList []bool HeaderByte *int8 @@ -79,7 +79,7 @@ type InputAndOutputWithHeadersOutput struct { HeaderInteger *int32 - HeaderIntegerList []*int32 + HeaderIntegerList []int32 HeaderLong *int64 @@ -87,11 +87,11 @@ type InputAndOutputWithHeadersOutput struct { HeaderString *string - HeaderStringList []*string + HeaderStringList []string - HeaderStringSet []*string + HeaderStringSet []string - HeaderTimestampList []*time.Time + HeaderTimestampList []time.Time HeaderTrueBool *bool diff --git a/internal/protocoltest/awsrestjson/api_op_InputAndOutputWithHeaders_test.go b/internal/protocoltest/awsrestjson/api_op_InputAndOutputWithHeaders_test.go index 874db87cbc6..0f4906250aa 100644 --- a/internal/protocoltest/awsrestjson/api_op_InputAndOutputWithHeaders_test.go +++ b/internal/protocoltest/awsrestjson/api_op_InputAndOutputWithHeaders_test.go @@ -42,15 +42,15 @@ func TestClient_InputAndOutputWithHeaders_awsRestjson1Serialize(t *testing.T) { "RestJsonInputAndOutputWithStringHeaders": { Params: &InputAndOutputWithHeadersInput{ HeaderString: ptr.String("Hello"), - HeaderStringList: []*string{ - ptr.String("a"), - ptr.String("b"), - ptr.String("c"), + HeaderStringList: []string{ + "a", + "b", + "c", }, - HeaderStringSet: []*string{ - ptr.String("a"), - ptr.String("b"), - ptr.String("c"), + HeaderStringSet: []string{ + "a", + "b", + "c", }, }, ExpectMethod: "POST", @@ -74,10 +74,10 @@ func TestClient_InputAndOutputWithHeaders_awsRestjson1Serialize(t *testing.T) { HeaderLong: ptr.Int64(123), HeaderFloat: ptr.Float32(1.1), HeaderDouble: ptr.Float64(1.1), - HeaderIntegerList: []*int32{ - ptr.Int32(1), - ptr.Int32(2), - ptr.Int32(3), + HeaderIntegerList: []int32{ + 1, + 2, + 3, }, }, ExpectMethod: "POST", @@ -101,10 +101,10 @@ func TestClient_InputAndOutputWithHeaders_awsRestjson1Serialize(t *testing.T) { Params: &InputAndOutputWithHeadersInput{ HeaderTrueBool: ptr.Bool(true), HeaderFalseBool: ptr.Bool(false), - HeaderBooleanList: []*bool{ - ptr.Bool(true), - ptr.Bool(false), - ptr.Bool(true), + HeaderBooleanList: []bool{ + true, + false, + true, }, }, ExpectMethod: "POST", @@ -122,9 +122,9 @@ func TestClient_InputAndOutputWithHeaders_awsRestjson1Serialize(t *testing.T) { // Tests requests with timestamp header bindings "RestJsonInputAndOutputWithTimestampHeaders": { Params: &InputAndOutputWithHeadersInput{ - HeaderTimestampList: []*time.Time{ - ptr.Time(smithytime.ParseEpochSeconds(1576540098)), - ptr.Time(smithytime.ParseEpochSeconds(1576540098)), + HeaderTimestampList: []time.Time{ + smithytime.ParseEpochSeconds(1576540098), + smithytime.ParseEpochSeconds(1576540098), }, }, ExpectMethod: "POST", @@ -244,15 +244,15 @@ func TestClient_InputAndOutputWithHeaders_awsRestjson1Deserialize(t *testing.T) Body: []byte(``), ExpectResult: &InputAndOutputWithHeadersOutput{ HeaderString: ptr.String("Hello"), - HeaderStringList: []*string{ - ptr.String("a"), - ptr.String("b"), - ptr.String("c"), + HeaderStringList: []string{ + "a", + "b", + "c", }, - HeaderStringSet: []*string{ - ptr.String("a"), - ptr.String("b"), - ptr.String("c"), + HeaderStringSet: []string{ + "a", + "b", + "c", }, }, }, @@ -276,10 +276,10 @@ func TestClient_InputAndOutputWithHeaders_awsRestjson1Deserialize(t *testing.T) HeaderLong: ptr.Int64(123), HeaderFloat: ptr.Float32(1.1), HeaderDouble: ptr.Float64(1.1), - HeaderIntegerList: []*int32{ - ptr.Int32(1), - ptr.Int32(2), - ptr.Int32(3), + HeaderIntegerList: []int32{ + 1, + 2, + 3, }, }, }, @@ -295,10 +295,10 @@ func TestClient_InputAndOutputWithHeaders_awsRestjson1Deserialize(t *testing.T) ExpectResult: &InputAndOutputWithHeadersOutput{ HeaderTrueBool: ptr.Bool(true), HeaderFalseBool: ptr.Bool(false), - HeaderBooleanList: []*bool{ - ptr.Bool(true), - ptr.Bool(false), - ptr.Bool(true), + HeaderBooleanList: []bool{ + true, + false, + true, }, }, }, @@ -310,9 +310,9 @@ func TestClient_InputAndOutputWithHeaders_awsRestjson1Deserialize(t *testing.T) }, Body: []byte(``), ExpectResult: &InputAndOutputWithHeadersOutput{ - HeaderTimestampList: []*time.Time{ - ptr.Time(smithytime.ParseEpochSeconds(1576540098)), - ptr.Time(smithytime.ParseEpochSeconds(1576540098)), + HeaderTimestampList: []time.Time{ + smithytime.ParseEpochSeconds(1576540098), + smithytime.ParseEpochSeconds(1576540098), }, }, }, diff --git a/internal/protocoltest/awsrestjson/api_op_JsonLists.go b/internal/protocoltest/awsrestjson/api_op_JsonLists.go index 81ac24cab0e..dbfc873a216 100644 --- a/internal/protocoltest/awsrestjson/api_op_JsonLists.go +++ b/internal/protocoltest/awsrestjson/api_op_JsonLists.go @@ -38,41 +38,41 @@ func (c *Client) JsonLists(ctx context.Context, params *JsonListsInput, optFns . } type JsonListsInput struct { - BooleanList []*bool + BooleanList []bool EnumList []types.FooEnum - IntegerList []*int32 + IntegerList []int32 // A list of lists of strings. - NestedStringList [][]*string + NestedStringList [][]string - StringList []*string + StringList []string - StringSet []*string + StringSet []string - StructureList []*types.StructureListMember + StructureList []types.StructureListMember - TimestampList []*time.Time + TimestampList []time.Time } type JsonListsOutput struct { - BooleanList []*bool + BooleanList []bool EnumList []types.FooEnum - IntegerList []*int32 + IntegerList []int32 // A list of lists of strings. - NestedStringList [][]*string + NestedStringList [][]string - StringList []*string + StringList []string - StringSet []*string + StringSet []string - StructureList []*types.StructureListMember + StructureList []types.StructureListMember - TimestampList []*time.Time + TimestampList []time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/awsrestjson/api_op_JsonLists_test.go b/internal/protocoltest/awsrestjson/api_op_JsonLists_test.go index 75f059bb89e..526d0daa40d 100644 --- a/internal/protocoltest/awsrestjson/api_op_JsonLists_test.go +++ b/internal/protocoltest/awsrestjson/api_op_JsonLists_test.go @@ -41,41 +41,41 @@ func TestClient_JsonLists_awsRestjson1Serialize(t *testing.T) { // Serializes JSON lists "RestJsonLists": { Params: &JsonListsInput{ - StringList: []*string{ - ptr.String("foo"), - ptr.String("bar"), + StringList: []string{ + "foo", + "bar", }, - StringSet: []*string{ - ptr.String("foo"), - ptr.String("bar"), + StringSet: []string{ + "foo", + "bar", }, - IntegerList: []*int32{ - ptr.Int32(1), - ptr.Int32(2), + IntegerList: []int32{ + 1, + 2, }, - BooleanList: []*bool{ - ptr.Bool(true), - ptr.Bool(false), + BooleanList: []bool{ + true, + false, }, - TimestampList: []*time.Time{ - ptr.Time(smithytime.ParseEpochSeconds(1398796238)), - ptr.Time(smithytime.ParseEpochSeconds(1398796238)), + TimestampList: []time.Time{ + smithytime.ParseEpochSeconds(1398796238), + smithytime.ParseEpochSeconds(1398796238), }, EnumList: []types.FooEnum{ types.FooEnum("Foo"), types.FooEnum("0"), }, - NestedStringList: [][]*string{ + NestedStringList: [][]string{ { - ptr.String("foo"), - ptr.String("bar"), + "foo", + "bar", }, { - ptr.String("baz"), - ptr.String("qux"), + "baz", + "qux", }, }, - StructureList: []*types.StructureListMember{ + StructureList: []types.StructureListMember{ { A: ptr.String("1"), B: ptr.String("2"), @@ -145,7 +145,7 @@ func TestClient_JsonLists_awsRestjson1Serialize(t *testing.T) { // Serializes empty JSON lists "RestJsonListsEmpty": { Params: &JsonListsInput{ - StringList: []*string{}, + StringList: []string{}, }, ExpectMethod: "PUT", ExpectURIPath: "/JsonLists", @@ -163,8 +163,8 @@ func TestClient_JsonLists_awsRestjson1Serialize(t *testing.T) { // Serializes null values in lists "RestJsonListsSerializeNull": { Params: &JsonListsInput{ - StringList: []*string{ - nil, + StringList: []string{ + func() (v string) { return v }(), }, }, ExpectMethod: "PUT", @@ -185,6 +185,10 @@ func TestClient_JsonLists_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { + if name == "RestJsonListsSerializeNull" { + t.Skip("disabled test aws.protocoltests.restjson#RestJson aws.protocoltests.restjson#JsonLists") + } + var actualReq *http.Request server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { actualReq = r.Clone(r.Context()) @@ -311,41 +315,41 @@ func TestClient_JsonLists_awsRestjson1Deserialize(t *testing.T) { ] }`), ExpectResult: &JsonListsOutput{ - StringList: []*string{ - ptr.String("foo"), - ptr.String("bar"), + StringList: []string{ + "foo", + "bar", }, - StringSet: []*string{ - ptr.String("foo"), - ptr.String("bar"), + StringSet: []string{ + "foo", + "bar", }, - IntegerList: []*int32{ - ptr.Int32(1), - ptr.Int32(2), + IntegerList: []int32{ + 1, + 2, }, - BooleanList: []*bool{ - ptr.Bool(true), - ptr.Bool(false), + BooleanList: []bool{ + true, + false, }, - TimestampList: []*time.Time{ - ptr.Time(smithytime.ParseEpochSeconds(1398796238)), - ptr.Time(smithytime.ParseEpochSeconds(1398796238)), + TimestampList: []time.Time{ + smithytime.ParseEpochSeconds(1398796238), + smithytime.ParseEpochSeconds(1398796238), }, EnumList: []types.FooEnum{ types.FooEnum("Foo"), types.FooEnum("0"), }, - NestedStringList: [][]*string{ + NestedStringList: [][]string{ { - ptr.String("foo"), - ptr.String("bar"), + "foo", + "bar", }, { - ptr.String("baz"), - ptr.String("qux"), + "baz", + "qux", }, }, - StructureList: []*types.StructureListMember{ + StructureList: []types.StructureListMember{ { A: ptr.String("1"), B: ptr.String("2"), @@ -368,7 +372,7 @@ func TestClient_JsonLists_awsRestjson1Deserialize(t *testing.T) { "stringList": [] }`), ExpectResult: &JsonListsOutput{ - StringList: []*string{}, + StringList: []string{}, }, }, // Serializes null values in lists @@ -384,8 +388,8 @@ func TestClient_JsonLists_awsRestjson1Deserialize(t *testing.T) { ] }`), ExpectResult: &JsonListsOutput{ - StringList: []*string{ - nil, + StringList: []string{ + func() (v string) { return v }(), }, }, }, diff --git a/internal/protocoltest/awsrestjson/api_op_JsonMaps.go b/internal/protocoltest/awsrestjson/api_op_JsonMaps.go index a9344a3c41f..db640bab3e1 100644 --- a/internal/protocoltest/awsrestjson/api_op_JsonMaps.go +++ b/internal/protocoltest/awsrestjson/api_op_JsonMaps.go @@ -27,11 +27,11 @@ func (c *Client) JsonMaps(ctx context.Context, params *JsonMapsInput, optFns ... } type JsonMapsInput struct { - MyMap map[string]*types.GreetingStruct + MyMap map[string]types.GreetingStruct } type JsonMapsOutput struct { - MyMap map[string]*types.GreetingStruct + MyMap map[string]types.GreetingStruct // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/awsrestjson/api_op_JsonMaps_test.go b/internal/protocoltest/awsrestjson/api_op_JsonMaps_test.go index f8102594661..864c66ab379 100644 --- a/internal/protocoltest/awsrestjson/api_op_JsonMaps_test.go +++ b/internal/protocoltest/awsrestjson/api_op_JsonMaps_test.go @@ -39,7 +39,7 @@ func TestClient_JsonMaps_awsRestjson1Serialize(t *testing.T) { // Serializes JSON maps "RestJsonJsonMaps": { Params: &JsonMapsInput{ - MyMap: map[string]*types.GreetingStruct{ + MyMap: map[string]types.GreetingStruct{ "foo": { Hi: ptr.String("there"), }, @@ -71,8 +71,8 @@ func TestClient_JsonMaps_awsRestjson1Serialize(t *testing.T) { // Serializes null JSON map values "RestJsonSerializesNullMapValues": { Params: &JsonMapsInput{ - MyMap: map[string]*types.GreetingStruct{ - "foo": nil, + MyMap: map[string]types.GreetingStruct{ + "foo": func() (v types.GreetingStruct) { return v }(), }, }, ExpectMethod: "POST", @@ -93,6 +93,10 @@ func TestClient_JsonMaps_awsRestjson1Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { + if name == "RestJsonSerializesNullMapValues" { + t.Skip("disabled test aws.protocoltests.restjson#RestJson aws.protocoltests.restjson#JsonMaps") + } + var actualReq *http.Request server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { actualReq = r.Clone(r.Context()) @@ -183,7 +187,7 @@ func TestClient_JsonMaps_awsRestjson1Deserialize(t *testing.T) { } }`), ExpectResult: &JsonMapsOutput{ - MyMap: map[string]*types.GreetingStruct{ + MyMap: map[string]types.GreetingStruct{ "foo": { Hi: ptr.String("there"), }, @@ -206,8 +210,8 @@ func TestClient_JsonMaps_awsRestjson1Deserialize(t *testing.T) { } }`), ExpectResult: &JsonMapsOutput{ - MyMap: map[string]*types.GreetingStruct{ - "foo": nil, + MyMap: map[string]types.GreetingStruct{ + "foo": func() (v types.GreetingStruct) { return v }(), }, }, }, diff --git a/internal/protocoltest/awsrestjson/api_op_JsonUnions_test.go b/internal/protocoltest/awsrestjson/api_op_JsonUnions_test.go index 3ff12262e44..c35948879b7 100644 --- a/internal/protocoltest/awsrestjson/api_op_JsonUnions_test.go +++ b/internal/protocoltest/awsrestjson/api_op_JsonUnions_test.go @@ -160,9 +160,9 @@ func TestClient_JsonUnions_awsRestjson1Serialize(t *testing.T) { // Serializes a list union value "RestJsonSerializeListUnionValue": { Params: &JsonUnionsInput{ - Contents: &types.MyUnionMemberListValue{Value: []*string{ - ptr.String("foo"), - ptr.String("bar"), + Contents: &types.MyUnionMemberListValue{Value: []string{ + "foo", + "bar", }}, }, ExpectMethod: "PUT", @@ -183,9 +183,9 @@ func TestClient_JsonUnions_awsRestjson1Serialize(t *testing.T) { // Serializes a map union value "RestJsonSerializeMapUnionValue": { Params: &JsonUnionsInput{ - Contents: &types.MyUnionMemberMapValue{Value: map[string]*string{ - "foo": ptr.String("bar"), - "spam": ptr.String("eggs"), + Contents: &types.MyUnionMemberMapValue{Value: map[string]string{ + "foo": "bar", + "spam": "eggs", }}, }, ExpectMethod: "PUT", @@ -209,7 +209,7 @@ func TestClient_JsonUnions_awsRestjson1Serialize(t *testing.T) { // Serializes a structure union value "RestJsonSerializeStructureUnionValue": { Params: &JsonUnionsInput{ - Contents: &types.MyUnionMemberStructureValue{Value: &types.GreetingStruct{ + Contents: &types.MyUnionMemberStructureValue{Value: types.GreetingStruct{ Hi: ptr.String("hello"), }}, }, @@ -414,9 +414,9 @@ func TestClient_JsonUnions_awsRestjson1Deserialize(t *testing.T) { } }`), ExpectResult: &JsonUnionsOutput{ - Contents: &types.MyUnionMemberListValue{Value: []*string{ - ptr.String("foo"), - ptr.String("bar"), + Contents: &types.MyUnionMemberListValue{Value: []string{ + "foo", + "bar", }}, }, }, @@ -436,9 +436,9 @@ func TestClient_JsonUnions_awsRestjson1Deserialize(t *testing.T) { } }`), ExpectResult: &JsonUnionsOutput{ - Contents: &types.MyUnionMemberMapValue{Value: map[string]*string{ - "foo": ptr.String("bar"), - "spam": ptr.String("eggs"), + Contents: &types.MyUnionMemberMapValue{Value: map[string]string{ + "foo": "bar", + "spam": "eggs", }}, }, }, @@ -457,7 +457,7 @@ func TestClient_JsonUnions_awsRestjson1Deserialize(t *testing.T) { } }`), ExpectResult: &JsonUnionsOutput{ - Contents: &types.MyUnionMemberStructureValue{Value: &types.GreetingStruct{ + Contents: &types.MyUnionMemberStructureValue{Value: types.GreetingStruct{ Hi: ptr.String("hello"), }}, }, diff --git a/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersClient.go b/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersClient.go index ec70cd619ff..2abdc1266f6 100644 --- a/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersClient.go +++ b/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersClient.go @@ -30,7 +30,7 @@ type NullAndEmptyHeadersClientInput struct { B *string - C []*string + C []string } type NullAndEmptyHeadersClientOutput struct { @@ -38,7 +38,7 @@ type NullAndEmptyHeadersClientOutput struct { B *string - C []*string + C []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersClient_test.go b/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersClient_test.go index 9e33e9bfe04..4a204abc3cc 100644 --- a/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersClient_test.go +++ b/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersClient_test.go @@ -38,7 +38,7 @@ func TestClient_NullAndEmptyHeadersClient_awsRestjson1Serialize(t *testing.T) { Params: &NullAndEmptyHeadersClientInput{ A: nil, B: ptr.String(""), - C: []*string{}, + C: []string{}, }, ExpectMethod: "GET", ExpectURIPath: "/NullAndEmptyHeadersClient", diff --git a/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersServer.go b/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersServer.go index da1fc5b6e7b..b8dcf8a010d 100644 --- a/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersServer.go +++ b/internal/protocoltest/awsrestjson/api_op_NullAndEmptyHeadersServer.go @@ -30,7 +30,7 @@ type NullAndEmptyHeadersServerInput struct { B *string - C []*string + C []string } type NullAndEmptyHeadersServerOutput struct { @@ -38,7 +38,7 @@ type NullAndEmptyHeadersServerOutput struct { B *string - C []*string + C []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/awsrestjson/deserializers.go b/internal/protocoltest/awsrestjson/deserializers.go index 2be2a30a1e0..7ad6f917f12 100644 --- a/internal/protocoltest/awsrestjson/deserializers.go +++ b/internal/protocoltest/awsrestjson/deserializers.go @@ -926,10 +926,10 @@ func awsRestjson1_deserializeOpHttpBindingsHttpPrefixHeadersOutput(v *HttpPrefix for headerKey, headerValues := range response.Header { if lenPrefix := len("X-Foo-"); len(headerKey) >= lenPrefix && strings.EqualFold(headerKey[:lenPrefix], "X-Foo-") { if v.FooMap == nil { - v.FooMap = map[string]*string{} + v.FooMap = map[string]string{} } headerValues[0] = strings.TrimSpace(headerValues[0]) - v.FooMap[headerKey[lenPrefix:]] = ptr.String(headerValues[0]) + v.FooMap[headerKey[lenPrefix:]] = headerValues[0] } } @@ -1029,10 +1029,10 @@ func awsRestjson1_deserializeOpHttpBindingsHttpPrefixHeadersResponseOutput(v *Ht for headerKey, headerValues := range response.Header { if lenPrefix := len(""); len(headerKey) >= lenPrefix && strings.EqualFold(headerKey[:lenPrefix], "") { if v.PrefixHeaders == nil { - v.PrefixHeaders = map[string]*string{} + v.PrefixHeaders = map[string]string{} } headerValues[0] = strings.TrimSpace(headerValues[0]) - v.PrefixHeaders[headerKey[lenPrefix:]] = ptr.String(headerValues[0]) + v.PrefixHeaders[headerKey[lenPrefix:]] = headerValues[0] } } @@ -1510,7 +1510,7 @@ func awsRestjson1_deserializeOpDocumentIgnoreQueryParamsInResponseOutput(v **Ign if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Baz = &jtv + sv.Baz = ptr.String(jtv) } default: @@ -1663,7 +1663,7 @@ func awsRestjson1_deserializeOpDocumentInlineDocumentOutput(v **InlineDocumentOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } default: @@ -1917,14 +1917,14 @@ func awsRestjson1_deserializeOpHttpBindingsInputAndOutputWithHeadersOutput(v *In return err } } - var list []*bool + var list []bool for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) vv, err := strconv.ParseBool(headerValuesVal) if err != nil { return err } - list = append(list, ptr.Bool(vv)) + list = append(list, vv) } v.HeaderBooleanList = list } @@ -2003,14 +2003,14 @@ func awsRestjson1_deserializeOpHttpBindingsInputAndOutputWithHeadersOutput(v *In return err } } - var list []*int32 + var list []int32 for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) vv, err := strconv.ParseInt(headerValuesVal, 0, 32) if err != nil { return err } - list = append(list, ptr.Int32(int32(vv))) + list = append(list, int32(vv)) } v.HeaderIntegerList = list } @@ -2046,10 +2046,10 @@ func awsRestjson1_deserializeOpHttpBindingsInputAndOutputWithHeadersOutput(v *In return err } } - var list []*string + var list []string for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) - list = append(list, ptr.String(headerValuesVal)) + list = append(list, headerValuesVal) } v.HeaderStringList = list } @@ -2062,10 +2062,10 @@ func awsRestjson1_deserializeOpHttpBindingsInputAndOutputWithHeadersOutput(v *In return err } } - var list []*string + var list []string for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) - list = append(list, ptr.String(headerValuesVal)) + list = append(list, headerValuesVal) } v.HeaderStringSet = list } @@ -2078,14 +2078,14 @@ func awsRestjson1_deserializeOpHttpBindingsInputAndOutputWithHeadersOutput(v *In return err } } - var list []*time.Time + var list []time.Time for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) t, err := smithytime.ParseHTTPDate(headerValuesVal) if err != nil { return err } - list = append(list, ptr.Time(t)) + list = append(list, t) } v.HeaderTimestampList = list } @@ -2898,7 +2898,7 @@ func awsRestjson1_deserializeOpDocumentJsonTimestampsOutput(v **JsonTimestampsOu if err != nil { return err } - sv.DateTime = &t + sv.DateTime = ptr.Time(t) } case "epochSeconds": @@ -2924,7 +2924,7 @@ func awsRestjson1_deserializeOpDocumentJsonTimestampsOutput(v **JsonTimestampsOu if err != nil { return err } - sv.HttpDate = &t + sv.HttpDate = ptr.Time(t) } case "normal": @@ -3463,10 +3463,10 @@ func awsRestjson1_deserializeOpHttpBindingsNullAndEmptyHeadersClientOutput(v *Nu return err } } - var list []*string + var list []string for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) - list = append(list, ptr.String(headerValuesVal)) + list = append(list, headerValuesVal) } v.C = list } @@ -3582,10 +3582,10 @@ func awsRestjson1_deserializeOpHttpBindingsNullAndEmptyHeadersServerOutput(v *Nu return err } } - var list []*string + var list []string for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) - list = append(list, ptr.String(headerValuesVal)) + list = append(list, headerValuesVal) } v.C = list } @@ -4067,7 +4067,7 @@ func awsRestjson1_deserializeOpDocumentSimpleScalarPropertiesOutput(v **SimpleSc if err != nil { return err } - sv.DoubleValue = &f64 + sv.DoubleValue = ptr.Float64(f64) } case "falseBooleanValue": @@ -4076,7 +4076,7 @@ func awsRestjson1_deserializeOpDocumentSimpleScalarPropertiesOutput(v **SimpleSc if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.FalseBooleanValue = &jtv + sv.FalseBooleanValue = ptr.Bool(jtv) } case "floatValue": @@ -4115,7 +4115,7 @@ func awsRestjson1_deserializeOpDocumentSimpleScalarPropertiesOutput(v **SimpleSc if err != nil { return err } - sv.LongValue = &i64 + sv.LongValue = ptr.Int64(i64) } case "shortValue": @@ -4137,7 +4137,7 @@ func awsRestjson1_deserializeOpDocumentSimpleScalarPropertiesOutput(v **SimpleSc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } case "trueBooleanValue": @@ -4146,7 +4146,7 @@ func awsRestjson1_deserializeOpDocumentSimpleScalarPropertiesOutput(v **SimpleSc if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.TrueBooleanValue = &jtv + sv.TrueBooleanValue = ptr.Bool(jtv) } default: @@ -4769,7 +4769,7 @@ func awsRestjson1_deserializeDocumentComplexError(v **types.ComplexError, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Header = &jtv + sv.Header = ptr.String(jtv) } case "Nested": @@ -4783,7 +4783,7 @@ func awsRestjson1_deserializeDocumentComplexError(v **types.ComplexError, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TopLevel = &jtv + sv.TopLevel = ptr.String(jtv) } default: @@ -4823,7 +4823,7 @@ func awsRestjson1_deserializeDocumentComplexNestedErrorData(v **types.ComplexNes if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Foo = &jtv + sv.Foo = ptr.String(jtv) } default: @@ -4902,7 +4902,7 @@ func awsRestjson1_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4914,7 +4914,7 @@ func awsRestjson1_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, return nil } -func awsRestjson1_deserializeDocumentJsonMapsInputOutputMap(v *map[string]*types.GreetingStruct, value interface{}) error { +func awsRestjson1_deserializeDocumentJsonMapsInputOutputMap(v *map[string]types.GreetingStruct, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4927,18 +4927,21 @@ func awsRestjson1_deserializeDocumentJsonMapsInputOutputMap(v *map[string]*types return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.GreetingStruct + var mv map[string]types.GreetingStruct if *v == nil { - mv = map[string]*types.GreetingStruct{} + mv = map[string]types.GreetingStruct{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.GreetingStruct - if err := awsRestjson1_deserializeDocumentGreetingStruct(&parsedVal, value); err != nil { + var parsedVal types.GreetingStruct + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentGreetingStruct(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -4980,15 +4983,15 @@ loop: break loop case "booleanValue": - var mv *bool + var mv bool if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.MyUnionMemberBooleanValue{Value: *mv} + uv = &types.MyUnionMemberBooleanValue{Value: mv} break loop case "enumValue": @@ -5004,7 +5007,7 @@ loop: break loop case "listValue": - var mv []*string + var mv []string if err := awsRestjson1_deserializeDocumentStringList(&mv, value); err != nil { return err } @@ -5012,7 +5015,7 @@ loop: break loop case "mapValue": - var mv map[string]*string + var mv map[string]string if err := awsRestjson1_deserializeDocumentStringMap(&mv, value); err != nil { return err } @@ -5020,7 +5023,7 @@ loop: break loop case "numberValue": - var mv *int32 + var mv int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -5030,33 +5033,35 @@ loop: if err != nil { return err } - mv = ptr.Int32(int32(i64)) + mv = int32(i64) } - uv = &types.MyUnionMemberNumberValue{Value: *mv} + uv = &types.MyUnionMemberNumberValue{Value: mv} break loop case "stringValue": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.MyUnionMemberStringValue{Value: *mv} + uv = &types.MyUnionMemberStringValue{Value: mv} break loop case "structureValue": - var mv *types.GreetingStruct - if err := awsRestjson1_deserializeDocumentGreetingStruct(&mv, value); err != nil { + var mv types.GreetingStruct + destAddr := &mv + if err := awsRestjson1_deserializeDocumentGreetingStruct(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.MyUnionMemberStructureValue{Value: mv} break loop case "timestampValue": - var mv *time.Time + var mv time.Time if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -5066,9 +5071,9 @@ loop: if err != nil { return err } - mv = ptr.Time(smithytime.ParseEpochSeconds(f64)) + mv = smithytime.ParseEpochSeconds(f64) } - uv = &types.MyUnionMemberTimestampValue{Value: *mv} + uv = &types.MyUnionMemberTimestampValue{Value: mv} break loop default: @@ -5111,7 +5116,7 @@ func awsRestjson1_deserializeDocumentNestedPayload(v **types.NestedPayload, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Greeting = &jtv + sv.Greeting = ptr.String(jtv) } case "name": @@ -5120,7 +5125,7 @@ func awsRestjson1_deserializeDocumentNestedPayload(v **types.NestedPayload, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5160,7 +5165,7 @@ func awsRestjson1_deserializeDocumentRecursiveShapesInputOutputNested1(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Foo = &jtv + sv.Foo = ptr.String(jtv) } case "nested": @@ -5205,7 +5210,7 @@ func awsRestjson1_deserializeDocumentRecursiveShapesInputOutputNested2(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Bar = &jtv + sv.Bar = ptr.String(jtv) } case "recursiveMember": @@ -5222,7 +5227,7 @@ func awsRestjson1_deserializeDocumentRecursiveShapesInputOutputNested2(v **types return nil } -func awsRestjson1_deserializeDocumentStructureList(v *[]*types.StructureListMember, value interface{}) error { +func awsRestjson1_deserializeDocumentStructureList(v *[]types.StructureListMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5235,18 +5240,20 @@ func awsRestjson1_deserializeDocumentStructureList(v *[]*types.StructureListMemb return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StructureListMember + var cv []types.StructureListMember if *v == nil { - cv = []*types.StructureListMember{} + cv = []types.StructureListMember{} } else { cv = *v } for _, value := range shape { - var col *types.StructureListMember - if err := awsRestjson1_deserializeDocumentStructureListMember(&col, value); err != nil { + var col types.StructureListMember + destAddr := &col + if err := awsRestjson1_deserializeDocumentStructureListMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5282,7 +5289,7 @@ func awsRestjson1_deserializeDocumentStructureListMember(v **types.StructureList if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.A = &jtv + sv.A = ptr.String(jtv) } case "other": @@ -5291,7 +5298,7 @@ func awsRestjson1_deserializeDocumentStructureListMember(v **types.StructureList if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.B = &jtv + sv.B = ptr.String(jtv) } default: @@ -5303,7 +5310,7 @@ func awsRestjson1_deserializeDocumentStructureListMember(v **types.StructureList return nil } -func awsRestjson1_deserializeDocumentBooleanList(v *[]*bool, value interface{}) error { +func awsRestjson1_deserializeDocumentBooleanList(v *[]bool, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5316,21 +5323,21 @@ func awsRestjson1_deserializeDocumentBooleanList(v *[]*bool, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*bool + var cv []bool if *v == nil { - cv = []*bool{} + cv = []bool{} } else { cv = *v } for _, value := range shape { - var col *bool + var col bool if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected PrimitiveBoolean to be of type *bool, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5475,7 +5482,7 @@ func awsRestjson1_deserializeDocumentGreetingStruct(v **types.GreetingStruct, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Hi = &jtv + sv.Hi = ptr.String(jtv) } default: @@ -5487,7 +5494,7 @@ func awsRestjson1_deserializeDocumentGreetingStruct(v **types.GreetingStruct, va return nil } -func awsRestjson1_deserializeDocumentIntegerList(v *[]*int32, value interface{}) error { +func awsRestjson1_deserializeDocumentIntegerList(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5500,15 +5507,15 @@ func awsRestjson1_deserializeDocumentIntegerList(v *[]*int32, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int32 + var cv []int32 if *v == nil { - cv = []*int32{} + cv = []int32{} } else { cv = *v } for _, value := range shape { - var col *int32 + var col int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -5518,7 +5525,7 @@ func awsRestjson1_deserializeDocumentIntegerList(v *[]*int32, value interface{}) if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } cv = append(cv, col) @@ -5527,7 +5534,7 @@ func awsRestjson1_deserializeDocumentIntegerList(v *[]*int32, value interface{}) return nil } -func awsRestjson1_deserializeDocumentNestedStringList(v *[][]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentNestedStringList(v *[][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5540,15 +5547,15 @@ func awsRestjson1_deserializeDocumentNestedStringList(v *[][]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv [][]*string + var cv [][]string if *v == nil { - cv = [][]*string{} + cv = [][]string{} } else { cv = *v } for _, value := range shape { - var col []*string + var col []string if err := awsRestjson1_deserializeDocumentStringList(&col, value); err != nil { return err } @@ -5559,7 +5566,7 @@ func awsRestjson1_deserializeDocumentNestedStringList(v *[][]*string, value inte return nil } -func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5572,21 +5579,21 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -5595,7 +5602,7 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentStringMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStringMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5608,21 +5615,21 @@ func awsRestjson1_deserializeDocumentStringMap(v *map[string]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -5631,7 +5638,7 @@ func awsRestjson1_deserializeDocumentStringMap(v *map[string]*string, value inte return nil } -func awsRestjson1_deserializeDocumentStringSet(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStringSet(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5644,21 +5651,21 @@ func awsRestjson1_deserializeDocumentStringSet(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -5667,7 +5674,7 @@ func awsRestjson1_deserializeDocumentStringSet(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentTimestampList(v *[]*time.Time, value interface{}) error { +func awsRestjson1_deserializeDocumentTimestampList(v *[]time.Time, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5680,15 +5687,15 @@ func awsRestjson1_deserializeDocumentTimestampList(v *[]*time.Time, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*time.Time + var cv []time.Time if *v == nil { - cv = []*time.Time{} + cv = []time.Time{} } else { cv = *v } for _, value := range shape { - var col *time.Time + var col time.Time if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -5698,7 +5705,7 @@ func awsRestjson1_deserializeDocumentTimestampList(v *[]*time.Time, value interf if err != nil { return err } - col = ptr.Time(smithytime.ParseEpochSeconds(f64)) + col = smithytime.ParseEpochSeconds(f64) } cv = append(cv, col) diff --git a/internal/protocoltest/awsrestjson/go.mod b/internal/protocoltest/awsrestjson/go.mod index 9cf3734358e..28b58164e5d 100644 --- a/internal/protocoltest/awsrestjson/go.mod +++ b/internal/protocoltest/awsrestjson/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 github.com/google/go-cmp v0.4.1 ) diff --git a/internal/protocoltest/awsrestjson/serializers.go b/internal/protocoltest/awsrestjson/serializers.go index 781e41efde6..d8a74579c1d 100644 --- a/internal/protocoltest/awsrestjson/serializers.go +++ b/internal/protocoltest/awsrestjson/serializers.go @@ -76,10 +76,7 @@ func awsRestjson1_serializeOpHttpBindingsAllQueryStringTypesInput(v *AllQueryStr if v.QueryBooleanList != nil { for i := range v.QueryBooleanList { - if v.QueryBooleanList[i] == nil { - continue - } - encoder.AddQuery("BooleanList").Boolean(*v.QueryBooleanList[i]) + encoder.AddQuery("BooleanList").Boolean(v.QueryBooleanList[i]) } } @@ -93,10 +90,7 @@ func awsRestjson1_serializeOpHttpBindingsAllQueryStringTypesInput(v *AllQueryStr if v.QueryDoubleList != nil { for i := range v.QueryDoubleList { - if v.QueryDoubleList[i] == nil { - continue - } - encoder.AddQuery("DoubleList").Double(*v.QueryDoubleList[i]) + encoder.AddQuery("DoubleList").Double(v.QueryDoubleList[i]) } } @@ -120,19 +114,13 @@ func awsRestjson1_serializeOpHttpBindingsAllQueryStringTypesInput(v *AllQueryStr if v.QueryIntegerList != nil { for i := range v.QueryIntegerList { - if v.QueryIntegerList[i] == nil { - continue - } - encoder.AddQuery("IntegerList").Integer(*v.QueryIntegerList[i]) + encoder.AddQuery("IntegerList").Integer(v.QueryIntegerList[i]) } } if v.QueryIntegerSet != nil { for i := range v.QueryIntegerSet { - if v.QueryIntegerSet[i] == nil { - continue - } - encoder.AddQuery("IntegerSet").Integer(*v.QueryIntegerSet[i]) + encoder.AddQuery("IntegerSet").Integer(v.QueryIntegerSet[i]) } } @@ -150,19 +138,13 @@ func awsRestjson1_serializeOpHttpBindingsAllQueryStringTypesInput(v *AllQueryStr if v.QueryStringList != nil { for i := range v.QueryStringList { - if v.QueryStringList[i] == nil { - continue - } - encoder.AddQuery("StringList").String(*v.QueryStringList[i]) + encoder.AddQuery("StringList").String(v.QueryStringList[i]) } } if v.QueryStringSet != nil { for i := range v.QueryStringSet { - if v.QueryStringSet[i] == nil { - continue - } - encoder.AddQuery("StringSet").String(*v.QueryStringSet[i]) + encoder.AddQuery("StringSet").String(v.QueryStringSet[i]) } } @@ -172,10 +154,7 @@ func awsRestjson1_serializeOpHttpBindingsAllQueryStringTypesInput(v *AllQueryStr if v.QueryTimestampList != nil { for i := range v.QueryTimestampList { - if v.QueryTimestampList[i] == nil { - continue - } - encoder.AddQuery("TimestampList").String(smithytime.FormatDateTime(*v.QueryTimestampList[i])) + encoder.AddQuery("TimestampList").String(smithytime.FormatDateTime(v.QueryTimestampList[i])) } } @@ -295,13 +274,10 @@ func awsRestjson1_serializeOpHttpBindingsConstantQueryStringInput(v *ConstantQue return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Hello == nil { + if v.Hello == nil || len(*v.Hello) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member hello must not be empty")} } if v.Hello != nil { - if len(*v.Hello) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member hello must not be empty")} - } if err := encoder.SetURI("hello").String(*v.Hello); err != nil { return err } @@ -472,11 +448,9 @@ func awsRestjson1_serializeOpHttpBindingsHttpPayloadTraitsInput(v *HttpPayloadTr return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Foo != nil { + if v.Foo != nil && len(*v.Foo) > 0 { locationName := "X-Foo" - if len(*v.Foo) > 0 { - encoder.SetHeader(locationName).String(*v.Foo) - } + encoder.SetHeader(locationName).String(*v.Foo) } return nil @@ -544,11 +518,9 @@ func awsRestjson1_serializeOpHttpBindingsHttpPayloadTraitsWithMediaTypeInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Foo != nil { + if v.Foo != nil && len(*v.Foo) > 0 { locationName := "X-Foo" - if len(*v.Foo) > 0 { - encoder.SetHeader(locationName).String(*v.Foo) - } + encoder.SetHeader(locationName).String(*v.Foo) } return nil @@ -670,18 +642,16 @@ func awsRestjson1_serializeOpHttpBindingsHttpPrefixHeadersInput(v *HttpPrefixHea return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Foo != nil { + if v.Foo != nil && len(*v.Foo) > 0 { locationName := "X-Foo" - if len(*v.Foo) > 0 { - encoder.SetHeader(locationName).String(*v.Foo) - } + encoder.SetHeader(locationName).String(*v.Foo) } if v.FooMap != nil { hv := encoder.Headers("X-Foo-") for mapKey, mapVal := range v.FooMap { - if len(*mapVal) > 0 { - hv.SetHeader(http.CanonicalHeaderKey(mapKey)).String(*mapVal) + if len(mapVal) > 0 { + hv.SetHeader(http.CanonicalHeaderKey(mapKey)).String(mapVal) } } } @@ -790,25 +760,19 @@ func awsRestjson1_serializeOpHttpBindingsHttpRequestWithGreedyLabelInPathInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Baz == nil { + if v.Baz == nil || len(*v.Baz) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member baz must not be empty")} } if v.Baz != nil { - if len(*v.Baz) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member baz must not be empty")} - } if err := encoder.SetURI("baz").String(*v.Baz); err != nil { return err } } - if v.Foo == nil { + if v.Foo == nil || len(*v.Foo) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member foo must not be empty")} } if v.Foo != nil { - if len(*v.Foo) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member foo must not be empty")} - } if err := encoder.SetURI("foo").String(*v.Foo); err != nil { return err } @@ -922,13 +886,10 @@ func awsRestjson1_serializeOpHttpBindingsHttpRequestWithLabelsInput(v *HttpReque } } - if v.String_ == nil { + if v.String_ == nil || len(*v.String_) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member string must not be empty")} } if v.String_ != nil { - if len(*v.String_) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member string must not be empty")} - } if err := encoder.SetURI("string").String(*v.String_); err != nil { return err } @@ -1362,8 +1323,8 @@ func awsRestjson1_serializeOpHttpBindingsInputAndOutputWithHeadersInput(v *Input if v.HeaderBooleanList != nil { locationName := "X-Booleanlist" for i := range v.HeaderBooleanList { - if v.HeaderBooleanList[i] != nil { - encoder.AddHeader(locationName).Boolean(*v.HeaderBooleanList[i]) + { + encoder.AddHeader(locationName).Boolean(v.HeaderBooleanList[i]) } } } @@ -1410,8 +1371,8 @@ func awsRestjson1_serializeOpHttpBindingsInputAndOutputWithHeadersInput(v *Input if v.HeaderIntegerList != nil { locationName := "X-Integerlist" for i := range v.HeaderIntegerList { - if v.HeaderIntegerList[i] != nil { - encoder.AddHeader(locationName).Integer(*v.HeaderIntegerList[i]) + { + encoder.AddHeader(locationName).Integer(v.HeaderIntegerList[i]) } } } @@ -1426,18 +1387,16 @@ func awsRestjson1_serializeOpHttpBindingsInputAndOutputWithHeadersInput(v *Input encoder.SetHeader(locationName).Short(*v.HeaderShort) } - if v.HeaderString != nil { + if v.HeaderString != nil && len(*v.HeaderString) > 0 { locationName := "X-String" - if len(*v.HeaderString) > 0 { - encoder.SetHeader(locationName).String(*v.HeaderString) - } + encoder.SetHeader(locationName).String(*v.HeaderString) } if v.HeaderStringList != nil { locationName := "X-Stringlist" for i := range v.HeaderStringList { - if v.HeaderStringList[i] != nil && len(*v.HeaderStringList[i]) > 0 { - encoder.AddHeader(locationName).String(*v.HeaderStringList[i]) + if len(v.HeaderStringList[i]) > 0 { + encoder.AddHeader(locationName).String(v.HeaderStringList[i]) } } } @@ -1445,8 +1404,8 @@ func awsRestjson1_serializeOpHttpBindingsInputAndOutputWithHeadersInput(v *Input if v.HeaderStringSet != nil { locationName := "X-Stringset" for i := range v.HeaderStringSet { - if v.HeaderStringSet[i] != nil && len(*v.HeaderStringSet[i]) > 0 { - encoder.AddHeader(locationName).String(*v.HeaderStringSet[i]) + if len(v.HeaderStringSet[i]) > 0 { + encoder.AddHeader(locationName).String(v.HeaderStringSet[i]) } } } @@ -1454,8 +1413,8 @@ func awsRestjson1_serializeOpHttpBindingsInputAndOutputWithHeadersInput(v *Input if v.HeaderTimestampList != nil { locationName := "X-Timestamplist" for i := range v.HeaderTimestampList { - if v.HeaderTimestampList[i] != nil { - encoder.AddHeader(locationName).String(smithytime.FormatHTTPDate(*v.HeaderTimestampList[i])) + { + encoder.AddHeader(locationName).String(smithytime.FormatHTTPDate(v.HeaderTimestampList[i])) } } } @@ -2058,12 +2017,10 @@ func awsRestjson1_serializeOpHttpBindingsMediaTypeHeaderInput(v *MediaTypeHeader return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Json != nil { + if v.Json != nil && len(*v.Json) > 0 { locationName := "X-Json" - if len(*v.Json) > 0 { - encoded := ptr.String(base64.StdEncoding.EncodeToString([]byte(*v.Json))) - encoder.SetHeader(locationName).String(*encoded) - } + encoded := ptr.String(base64.StdEncoding.EncodeToString([]byte(*v.Json))) + encoder.SetHeader(locationName).String(*encoded) } return nil @@ -2220,25 +2177,21 @@ func awsRestjson1_serializeOpHttpBindingsNullAndEmptyHeadersClientInput(v *NullA return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.A != nil { + if v.A != nil && len(*v.A) > 0 { locationName := "X-A" - if len(*v.A) > 0 { - encoder.SetHeader(locationName).String(*v.A) - } + encoder.SetHeader(locationName).String(*v.A) } - if v.B != nil { + if v.B != nil && len(*v.B) > 0 { locationName := "X-B" - if len(*v.B) > 0 { - encoder.SetHeader(locationName).String(*v.B) - } + encoder.SetHeader(locationName).String(*v.B) } if v.C != nil { locationName := "X-C" for i := range v.C { - if v.C[i] != nil && len(*v.C[i]) > 0 { - encoder.AddHeader(locationName).String(*v.C[i]) + if len(v.C[i]) > 0 { + encoder.AddHeader(locationName).String(v.C[i]) } } } @@ -2297,25 +2250,21 @@ func awsRestjson1_serializeOpHttpBindingsNullAndEmptyHeadersServerInput(v *NullA return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.A != nil { + if v.A != nil && len(*v.A) > 0 { locationName := "X-A" - if len(*v.A) > 0 { - encoder.SetHeader(locationName).String(*v.A) - } + encoder.SetHeader(locationName).String(*v.A) } - if v.B != nil { + if v.B != nil && len(*v.B) > 0 { locationName := "X-B" - if len(*v.B) > 0 { - encoder.SetHeader(locationName).String(*v.B) - } + encoder.SetHeader(locationName).String(*v.B) } if v.C != nil { locationName := "X-C" for i := range v.C { - if v.C[i] != nil && len(*v.C[i]) > 0 { - encoder.AddHeader(locationName).String(*v.C[i]) + if len(v.C[i]) > 0 { + encoder.AddHeader(locationName).String(v.C[i]) } } } @@ -2580,11 +2529,9 @@ func awsRestjson1_serializeOpHttpBindingsSimpleScalarPropertiesInput(v *SimpleSc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Foo != nil { + if v.Foo != nil && len(*v.Foo) > 0 { locationName := "X-Foo" - if len(*v.Foo) > 0 { - encoder.SetHeader(locationName).String(*v.Foo) - } + encoder.SetHeader(locationName).String(*v.Foo) } return nil @@ -2704,11 +2651,9 @@ func awsRestjson1_serializeOpHttpBindingsStreamingTraitsInput(v *StreamingTraits return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Foo != nil { + if v.Foo != nil && len(*v.Foo) > 0 { locationName := "X-Foo" - if len(*v.Foo) > 0 { - encoder.SetHeader(locationName).String(*v.Foo) - } + encoder.SetHeader(locationName).String(*v.Foo) } return nil @@ -2776,11 +2721,9 @@ func awsRestjson1_serializeOpHttpBindingsStreamingTraitsRequireLengthInput(v *St return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Foo != nil { + if v.Foo != nil && len(*v.Foo) > 0 { locationName := "X-Foo" - if len(*v.Foo) > 0 { - encoder.SetHeader(locationName).String(*v.Foo) - } + encoder.SetHeader(locationName).String(*v.Foo) } return nil @@ -2848,11 +2791,9 @@ func awsRestjson1_serializeOpHttpBindingsStreamingTraitsWithMediaTypeInput(v *St return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Foo != nil { + if v.Foo != nil && len(*v.Foo) > 0 { locationName := "X-Foo" - if len(*v.Foo) > 0 { - encoder.SetHeader(locationName).String(*v.Foo) - } + encoder.SetHeader(locationName).String(*v.Foo) } return nil @@ -2952,17 +2893,14 @@ func awsRestjson1_serializeDocumentDocument(v smithy.Document, value smithyjson. return nil } -func awsRestjson1_serializeDocumentJsonMapsInputOutputMap(v map[string]*types.GreetingStruct, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentJsonMapsInputOutputMap(v map[string]types.GreetingStruct, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentGreetingStruct(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentGreetingStruct(&mapVar, om); err != nil { return err } } @@ -3008,7 +2946,7 @@ func awsRestjson1_serializeDocumentMyUnion(v types.MyUnion, value smithyjson.Val case *types.MyUnionMemberStructureValue: av := object.Key("structureValue") - if err := awsRestjson1_serializeDocumentGreetingStruct(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentGreetingStruct(&uv.Value, av); err != nil { return err } @@ -3078,17 +3016,13 @@ func awsRestjson1_serializeDocumentRecursiveShapesInputOutputNested2(v *types.Re return nil } -func awsRestjson1_serializeDocumentStructureList(v []*types.StructureListMember, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStructureList(v []types.StructureListMember, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentStructureListMember(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentStructureListMember(&v[i], av); err != nil { return err } } @@ -3112,17 +3046,13 @@ func awsRestjson1_serializeDocumentStructureListMember(v *types.StructureListMem return nil } -func awsRestjson1_serializeDocumentBooleanList(v []*bool, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBooleanList(v []bool, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Boolean(*v[i]) + av.Boolean(v[i]) } return nil } @@ -3172,29 +3102,24 @@ func awsRestjson1_serializeDocumentGreetingStruct(v *types.GreetingStruct, value return nil } -func awsRestjson1_serializeDocumentIntegerList(v []*int32, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIntegerList(v []int32, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Integer(*v[i]) + av.Integer(v[i]) } return nil } -func awsRestjson1_serializeDocumentNestedStringList(v [][]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNestedStringList(v [][]string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsRestjson1_serializeDocumentStringList(v[i], av); err != nil { @@ -3204,62 +3129,46 @@ func awsRestjson1_serializeDocumentNestedStringList(v [][]*string, value smithyj return nil } -func awsRestjson1_serializeDocumentStringList(v []*string, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentStringMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStringMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentStringSet(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStringSet(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTimestampList(v []*time.Time, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTimestampList(v []time.Time, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Double(smithytime.FormatEpochSeconds(*v[i])) + av.Double(smithytime.FormatEpochSeconds(v[i])) } return nil } diff --git a/internal/protocoltest/awsrestjson/types/types.go b/internal/protocoltest/awsrestjson/types/types.go index 1a6ae466474..1bce5386794 100644 --- a/internal/protocoltest/awsrestjson/types/types.go +++ b/internal/protocoltest/awsrestjson/types/types.go @@ -52,19 +52,19 @@ type MyUnionMemberEnumValue struct { func (*MyUnionMemberEnumValue) isMyUnion() {} type MyUnionMemberListValue struct { - Value []*string + Value []string } func (*MyUnionMemberListValue) isMyUnion() {} type MyUnionMemberMapValue struct { - Value map[string]*string + Value map[string]string } func (*MyUnionMemberMapValue) isMyUnion() {} type MyUnionMemberStructureValue struct { - Value *GreetingStruct + Value GreetingStruct } func (*MyUnionMemberStructureValue) isMyUnion() {} diff --git a/internal/protocoltest/ec2query/api_op_QueryLists.go b/internal/protocoltest/ec2query/api_op_QueryLists.go index ead2ef09d72..bbf290fbd99 100644 --- a/internal/protocoltest/ec2query/api_op_QueryLists.go +++ b/internal/protocoltest/ec2query/api_op_QueryLists.go @@ -27,13 +27,13 @@ func (c *Client) QueryLists(ctx context.Context, params *QueryListsInput, optFns } type QueryListsInput struct { - ComplexListArg []*types.GreetingStruct + ComplexListArg []types.GreetingStruct - ListArg []*string + ListArg []string - ListArgWithXmlName []*string + ListArgWithXmlName []string - ListArgWithXmlNameMember []*string + ListArgWithXmlNameMember []string } type QueryListsOutput struct { diff --git a/internal/protocoltest/ec2query/api_op_QueryLists_test.go b/internal/protocoltest/ec2query/api_op_QueryLists_test.go index a414293d3ae..563638308dd 100644 --- a/internal/protocoltest/ec2query/api_op_QueryLists_test.go +++ b/internal/protocoltest/ec2query/api_op_QueryLists_test.go @@ -37,12 +37,12 @@ func TestClient_QueryLists_awsEc2querySerialize(t *testing.T) { // Serializes query lists. All EC2 lists are flattened. "Ec2Lists": { Params: &QueryListsInput{ - ListArg: []*string{ - ptr.String("foo"), - ptr.String("bar"), - ptr.String("baz"), + ListArg: []string{ + "foo", + "bar", + "baz", }, - ComplexListArg: []*types.GreetingStruct{ + ComplexListArg: []types.GreetingStruct{ { Hi: ptr.String("hello"), }, @@ -71,7 +71,7 @@ func TestClient_QueryLists_awsEc2querySerialize(t *testing.T) { // Does not serialize empty query lists "Ec2EmptyQueryLists": { Params: &QueryListsInput{ - ListArg: []*string{}, + ListArg: []string{}, }, ExpectMethod: "POST", ExpectURIPath: "/", @@ -89,9 +89,9 @@ func TestClient_QueryLists_awsEc2querySerialize(t *testing.T) { // serialization. "Ec2ListArgWithXmlNameMember": { Params: &QueryListsInput{ - ListArgWithXmlNameMember: []*string{ - ptr.String("A"), - ptr.String("B"), + ListArgWithXmlNameMember: []string{ + "A", + "B", }, }, ExpectMethod: "POST", @@ -111,9 +111,9 @@ func TestClient_QueryLists_awsEc2querySerialize(t *testing.T) { // Changes the name of the list using the xmlName trait "Ec2ListMemberWithXmlName": { Params: &QueryListsInput{ - ListArgWithXmlName: []*string{ - ptr.String("A"), - ptr.String("B"), + ListArgWithXmlName: []string{ + "A", + "B", }, }, ExpectMethod: "POST", diff --git a/internal/protocoltest/ec2query/api_op_XmlEmptyLists.go b/internal/protocoltest/ec2query/api_op_XmlEmptyLists.go index 31818cfb8ea..8a4af9d48d9 100644 --- a/internal/protocoltest/ec2query/api_op_XmlEmptyLists.go +++ b/internal/protocoltest/ec2query/api_op_XmlEmptyLists.go @@ -30,28 +30,28 @@ type XmlEmptyListsInput struct { } type XmlEmptyListsOutput struct { - BooleanList []*bool + BooleanList []bool EnumList []types.FooEnum - FlattenedList []*string + FlattenedList []string - FlattenedList2 []*string + FlattenedList2 []string - IntegerList []*int32 + IntegerList []int32 // A list of lists of strings. - NestedStringList [][]*string + NestedStringList [][]string - RenamedListMembers []*string + RenamedListMembers []string - StringList []*string + StringList []string - StringSet []*string + StringSet []string - StructureList []*types.StructureListMember + StructureList []types.StructureListMember - TimestampList []*time.Time + TimestampList []time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/ec2query/api_op_XmlEmptyLists_test.go b/internal/protocoltest/ec2query/api_op_XmlEmptyLists_test.go index 1865268ba07..e24af57225a 100644 --- a/internal/protocoltest/ec2query/api_op_XmlEmptyLists_test.go +++ b/internal/protocoltest/ec2query/api_op_XmlEmptyLists_test.go @@ -37,8 +37,8 @@ func TestClient_XmlEmptyLists_awsEc2queryDeserialize(t *testing.T) { `), ExpectResult: &XmlEmptyListsOutput{ - StringList: []*string{}, - StringSet: []*string{}, + StringList: []string{}, + StringSet: []string{}, }, }, } diff --git a/internal/protocoltest/ec2query/api_op_XmlLists.go b/internal/protocoltest/ec2query/api_op_XmlLists.go index 082ceeed3c3..08f6eec5724 100644 --- a/internal/protocoltest/ec2query/api_op_XmlLists.go +++ b/internal/protocoltest/ec2query/api_op_XmlLists.go @@ -48,28 +48,28 @@ type XmlListsInput struct { } type XmlListsOutput struct { - BooleanList []*bool + BooleanList []bool EnumList []types.FooEnum - FlattenedList []*string + FlattenedList []string - FlattenedList2 []*string + FlattenedList2 []string - IntegerList []*int32 + IntegerList []int32 // A list of lists of strings. - NestedStringList [][]*string + NestedStringList [][]string - RenamedListMembers []*string + RenamedListMembers []string - StringList []*string + StringList []string - StringSet []*string + StringSet []string - StructureList []*types.StructureListMember + StructureList []types.StructureListMember - TimestampList []*time.Time + TimestampList []time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/ec2query/api_op_XmlLists_test.go b/internal/protocoltest/ec2query/api_op_XmlLists_test.go index d87a80f7b6c..c410cc1f9d2 100644 --- a/internal/protocoltest/ec2query/api_op_XmlLists_test.go +++ b/internal/protocoltest/ec2query/api_op_XmlLists_test.go @@ -92,53 +92,53 @@ func TestClient_XmlLists_awsEc2queryDeserialize(t *testing.T) { `), ExpectResult: &XmlListsOutput{ - StringList: []*string{ - ptr.String("foo"), - ptr.String("bar"), + StringList: []string{ + "foo", + "bar", }, - StringSet: []*string{ - ptr.String("foo"), - ptr.String("bar"), + StringSet: []string{ + "foo", + "bar", }, - IntegerList: []*int32{ - ptr.Int32(1), - ptr.Int32(2), + IntegerList: []int32{ + 1, + 2, }, - BooleanList: []*bool{ - ptr.Bool(true), - ptr.Bool(false), + BooleanList: []bool{ + true, + false, }, - TimestampList: []*time.Time{ - ptr.Time(smithytime.ParseEpochSeconds(1398796238)), - ptr.Time(smithytime.ParseEpochSeconds(1398796238)), + TimestampList: []time.Time{ + smithytime.ParseEpochSeconds(1398796238), + smithytime.ParseEpochSeconds(1398796238), }, EnumList: []types.FooEnum{ types.FooEnum("Foo"), types.FooEnum("0"), }, - NestedStringList: [][]*string{ + NestedStringList: [][]string{ { - ptr.String("foo"), - ptr.String("bar"), + "foo", + "bar", }, { - ptr.String("baz"), - ptr.String("qux"), + "baz", + "qux", }, }, - RenamedListMembers: []*string{ - ptr.String("foo"), - ptr.String("bar"), + RenamedListMembers: []string{ + "foo", + "bar", }, - FlattenedList: []*string{ - ptr.String("hi"), - ptr.String("bye"), + FlattenedList: []string{ + "hi", + "bye", }, - FlattenedList2: []*string{ - ptr.String("yep"), - ptr.String("nope"), + FlattenedList2: []string{ + "yep", + "nope", }, - StructureList: []*types.StructureListMember{ + StructureList: []types.StructureListMember{ { A: ptr.String("1"), B: ptr.String("2"), diff --git a/internal/protocoltest/ec2query/api_op_XmlNamespaces_test.go b/internal/protocoltest/ec2query/api_op_XmlNamespaces_test.go index b1c2cc0911d..a357e50b0c0 100644 --- a/internal/protocoltest/ec2query/api_op_XmlNamespaces_test.go +++ b/internal/protocoltest/ec2query/api_op_XmlNamespaces_test.go @@ -47,9 +47,9 @@ func TestClient_XmlNamespaces_awsEc2queryDeserialize(t *testing.T) { ExpectResult: &XmlNamespacesOutput{ Nested: &types.XmlNamespaceNested{ Foo: ptr.String("Foo"), - Values: []*string{ - ptr.String("Bar"), - ptr.String("Baz"), + Values: []string{ + "Bar", + "Baz", }, }, }, diff --git a/internal/protocoltest/ec2query/deserializers.go b/internal/protocoltest/ec2query/deserializers.go index 162e6651123..7ec7ce04046 100644 --- a/internal/protocoltest/ec2query/deserializers.go +++ b/internal/protocoltest/ec2query/deserializers.go @@ -1775,7 +1775,7 @@ func awsEc2query_deserializeDocumentComplexError(v **types.ComplexError, decoder } if val != nil { xtv := string(val) - sv.TopLevel = &xtv + sv.TopLevel = ptr.String(xtv) } default: @@ -1823,7 +1823,7 @@ func awsEc2query_deserializeDocumentComplexNestedErrorData(v **types.ComplexNest } if val != nil { xtv := string(val) - sv.Foo = &xtv + sv.Foo = ptr.String(xtv) } default: @@ -1871,7 +1871,7 @@ func awsEc2query_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, d } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -1919,7 +1919,7 @@ func awsEc2query_deserializeDocumentRecursiveXmlShapesOutputNested1(v **types.Re } if val != nil { xtv := string(val) - sv.Foo = &xtv + sv.Foo = ptr.String(xtv) } case strings.EqualFold("nested", t.Name.Local): @@ -1973,7 +1973,7 @@ func awsEc2query_deserializeDocumentRecursiveXmlShapesOutputNested2(v **types.Re } if val != nil { xtv := string(val) - sv.Bar = &xtv + sv.Bar = ptr.String(xtv) } case strings.EqualFold("recursiveMember", t.Name.Local): @@ -1992,13 +1992,13 @@ func awsEc2query_deserializeDocumentRecursiveXmlShapesOutputNested2(v **types.Re return nil } -func awsEc2query_deserializeDocumentRenamedListMembers(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentRenamedListMembers(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -2016,20 +2016,17 @@ func awsEc2query_deserializeDocumentRenamedListMembers(v *[]*string, decoder smi decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -2042,17 +2039,17 @@ func awsEc2query_deserializeDocumentRenamedListMembers(v *[]*string, decoder smi return nil } -func awsEc2query_deserializeDocumentRenamedListMembersUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentRenamedListMembersUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -2060,27 +2057,24 @@ func awsEc2query_deserializeDocumentRenamedListMembersUnwrapped(v *[]*string, de return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentStructureList(v *[]*types.StructureListMember, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentStructureList(v *[]types.StructureListMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StructureListMember + var sv []types.StructureListMember if *v == nil { - sv = make([]*types.StructureListMember, 0) + sv = make([]types.StructureListMember, 0) } else { sv = *v } @@ -2096,11 +2090,13 @@ func awsEc2query_deserializeDocumentStructureList(v *[]*types.StructureListMembe } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.StructureListMember + var col types.StructureListMember nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStructureListMember(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentStructureListMember(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -2113,23 +2109,25 @@ func awsEc2query_deserializeDocumentStructureList(v *[]*types.StructureListMembe return nil } -func awsEc2query_deserializeDocumentStructureListUnwrapped(v *[]*types.StructureListMember, decoder smithyxml.NodeDecoder) error { - var sv []*types.StructureListMember +func awsEc2query_deserializeDocumentStructureListUnwrapped(v *[]types.StructureListMember, decoder smithyxml.NodeDecoder) error { + var sv []types.StructureListMember if *v == nil { - sv = make([]*types.StructureListMember, 0) + sv = make([]types.StructureListMember, 0) } else { sv = *v } switch { default: - var mv *types.StructureListMember + var mv types.StructureListMember t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStructureListMember(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentStructureListMember(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -2170,7 +2168,7 @@ func awsEc2query_deserializeDocumentStructureListMember(v **types.StructureListM } if val != nil { xtv := string(val) - sv.A = &xtv + sv.A = ptr.String(xtv) } case strings.EqualFold("other", t.Name.Local): @@ -2186,7 +2184,7 @@ func awsEc2query_deserializeDocumentStructureListMember(v **types.StructureListM } if val != nil { xtv := string(val) - sv.B = &xtv + sv.B = ptr.String(xtv) } default: @@ -2199,13 +2197,13 @@ func awsEc2query_deserializeDocumentStructureListMember(v **types.StructureListM return nil } -func awsEc2query_deserializeDocumentXmlNamespacedList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentXmlNamespacedList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -2223,20 +2221,17 @@ func awsEc2query_deserializeDocumentXmlNamespacedList(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -2249,17 +2244,17 @@ func awsEc2query_deserializeDocumentXmlNamespacedList(v *[]*string, decoder smit return nil } -func awsEc2query_deserializeDocumentXmlNamespacedListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentXmlNamespacedListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -2267,14 +2262,11 @@ func awsEc2query_deserializeDocumentXmlNamespacedListUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -2316,7 +2308,7 @@ func awsEc2query_deserializeDocumentXmlNamespaceNested(v **types.XmlNamespaceNes } if val != nil { xtv := string(val) - sv.Foo = &xtv + sv.Foo = ptr.String(xtv) } case strings.EqualFold("values", t.Name.Local): @@ -2335,13 +2327,13 @@ func awsEc2query_deserializeDocumentXmlNamespaceNested(v **types.XmlNamespaceNes return nil } -func awsEc2query_deserializeDocumentBooleanList(v *[]*bool, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentBooleanList(v *[]bool, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*bool + var sv []bool if *v == nil { - sv = make([]*bool, 0) + sv = make([]bool, 0) } else { sv = *v } @@ -2359,7 +2351,7 @@ func awsEc2query_deserializeDocumentBooleanList(v *[]*bool, decoder smithyxml.No decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *bool + var col bool val, done, err := decoder.Value() if err != nil { return err @@ -2372,7 +2364,7 @@ func awsEc2query_deserializeDocumentBooleanList(v *[]*bool, decoder smithyxml.No if err != nil { return fmt.Errorf("expected PrimitiveBoolean to be of type *bool, got %T instead", val) } - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -2385,17 +2377,17 @@ func awsEc2query_deserializeDocumentBooleanList(v *[]*bool, decoder smithyxml.No return nil } -func awsEc2query_deserializeDocumentBooleanListUnwrapped(v *[]*bool, decoder smithyxml.NodeDecoder) error { - var sv []*bool +func awsEc2query_deserializeDocumentBooleanListUnwrapped(v *[]bool, decoder smithyxml.NodeDecoder) error { + var sv []bool if *v == nil { - sv = make([]*bool, 0) + sv = make([]bool, 0) } else { sv = *v } switch { default: - var mv *bool + var mv bool t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -2410,7 +2402,7 @@ func awsEc2query_deserializeDocumentBooleanListUnwrapped(v *[]*bool, decoder smi if err != nil { return fmt.Errorf("expected PrimitiveBoolean to be of type *bool, got %T instead", val) } - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -2531,7 +2523,7 @@ func awsEc2query_deserializeDocumentFooEnumMapUnwrapped(v *map[string]types.FooE sv = *v } - var ek *string + var ek string var ev types.FooEnum for { t, done, err := decoder.Token() @@ -2539,7 +2531,7 @@ func awsEc2query_deserializeDocumentFooEnumMapUnwrapped(v *map[string]types.FooE return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -2549,14 +2541,11 @@ func awsEc2query_deserializeDocumentFooEnumMapUnwrapped(v *map[string]types.FooE return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): @@ -2656,13 +2645,13 @@ func awsEc2query_deserializeDocumentFooEnumSetUnwrapped(v *[]types.FooEnum, deco *v = sv return nil } -func awsEc2query_deserializeDocumentIntegerList(v *[]*int32, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIntegerList(v *[]int32, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*int32 + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } @@ -2680,7 +2669,7 @@ func awsEc2query_deserializeDocumentIntegerList(v *[]*int32, decoder smithyxml.N decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *int32 + var col int32 val, done, err := decoder.Value() if err != nil { return err @@ -2694,7 +2683,7 @@ func awsEc2query_deserializeDocumentIntegerList(v *[]*int32, decoder smithyxml.N if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } sv = append(sv, col) } else { @@ -2707,17 +2696,17 @@ func awsEc2query_deserializeDocumentIntegerList(v *[]*int32, decoder smithyxml.N return nil } -func awsEc2query_deserializeDocumentIntegerListUnwrapped(v *[]*int32, decoder smithyxml.NodeDecoder) error { - var sv []*int32 +func awsEc2query_deserializeDocumentIntegerListUnwrapped(v *[]int32, decoder smithyxml.NodeDecoder) error { + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } switch { default: - var mv *int32 + var mv int32 t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -2733,20 +2722,20 @@ func awsEc2query_deserializeDocumentIntegerListUnwrapped(v *[]*int32, decoder sm if err != nil { return err } - mv = ptr.Int32(int32(i64)) + mv = int32(i64) } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentNestedStringList(v *[][]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentNestedStringList(v *[][]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv [][]*string + var sv [][]string if *v == nil { - sv = make([][]*string, 0) + sv = make([][]string, 0) } else { sv = *v } @@ -2762,7 +2751,7 @@ func awsEc2query_deserializeDocumentNestedStringList(v *[][]*string, decoder smi } for { if strings.EqualFold("member", t.Name.Local) { - var col []*string + var col []string nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentStringList(&col, nodeDecoder); err != nil { return err @@ -2779,17 +2768,17 @@ func awsEc2query_deserializeDocumentNestedStringList(v *[][]*string, decoder smi return nil } -func awsEc2query_deserializeDocumentNestedStringListUnwrapped(v *[][]*string, decoder smithyxml.NodeDecoder) error { - var sv [][]*string +func awsEc2query_deserializeDocumentNestedStringListUnwrapped(v *[][]string, decoder smithyxml.NodeDecoder) error { + var sv [][]string if *v == nil { - sv = make([][]*string, 0) + sv = make([][]string, 0) } else { sv = *v } switch { default: - var mv []*string + var mv []string t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) @@ -2801,13 +2790,13 @@ func awsEc2query_deserializeDocumentNestedStringListUnwrapped(v *[][]*string, de *v = sv return nil } -func awsEc2query_deserializeDocumentStringList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentStringList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -2825,20 +2814,17 @@ func awsEc2query_deserializeDocumentStringList(v *[]*string, decoder smithyxml.N decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -2851,17 +2837,17 @@ func awsEc2query_deserializeDocumentStringList(v *[]*string, decoder smithyxml.N return nil } -func awsEc2query_deserializeDocumentStringListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -2869,27 +2855,24 @@ func awsEc2query_deserializeDocumentStringListUnwrapped(v *[]*string, decoder sm return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentStringSet(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentStringSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -2907,20 +2890,17 @@ func awsEc2query_deserializeDocumentStringSet(v *[]*string, decoder smithyxml.No decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -2933,17 +2913,17 @@ func awsEc2query_deserializeDocumentStringSet(v *[]*string, decoder smithyxml.No return nil } -func awsEc2query_deserializeDocumentStringSetUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentStringSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -2951,27 +2931,24 @@ func awsEc2query_deserializeDocumentStringSetUnwrapped(v *[]*string, decoder smi return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentTimestampList(v *[]*time.Time, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTimestampList(v *[]time.Time, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*time.Time + var sv []time.Time if *v == nil { - sv = make([]*time.Time, 0) + sv = make([]time.Time, 0) } else { sv = *v } @@ -2989,7 +2966,7 @@ func awsEc2query_deserializeDocumentTimestampList(v *[]*time.Time, decoder smith decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *time.Time + var col time.Time val, done, err := decoder.Value() if err != nil { return err @@ -3003,7 +2980,7 @@ func awsEc2query_deserializeDocumentTimestampList(v *[]*time.Time, decoder smith if err != nil { return err } - col = &t + col = t } sv = append(sv, col) } else { @@ -3016,17 +2993,17 @@ func awsEc2query_deserializeDocumentTimestampList(v *[]*time.Time, decoder smith return nil } -func awsEc2query_deserializeDocumentTimestampListUnwrapped(v *[]*time.Time, decoder smithyxml.NodeDecoder) error { - var sv []*time.Time +func awsEc2query_deserializeDocumentTimestampListUnwrapped(v *[]time.Time, decoder smithyxml.NodeDecoder) error { + var sv []time.Time if *v == nil { - sv = make([]*time.Time, 0) + sv = make([]time.Time, 0) } else { sv = *v } switch { default: - var mv *time.Time + var mv time.Time t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -3042,7 +3019,7 @@ func awsEc2query_deserializeDocumentTimestampListUnwrapped(v *[]*time.Time, deco if err != nil { return err } - mv = &t + mv = t } sv = append(sv, mv) } @@ -3116,7 +3093,7 @@ func awsEc2query_deserializeOpDocumentGreetingWithErrorsOutput(v **GreetingWithE } if val != nil { xtv := string(val) - sv.Greeting = &xtv + sv.Greeting = ptr.String(xtv) } default: @@ -3164,7 +3141,7 @@ func awsEc2query_deserializeOpDocumentIgnoresWrappingXmlNameOutput(v **IgnoresWr } if val != nil { xtv := string(val) - sv.Foo = &xtv + sv.Foo = ptr.String(xtv) } default: @@ -3460,7 +3437,7 @@ func awsEc2query_deserializeOpDocumentSimpleScalarXmlPropertiesOutput(v **Simple if err != nil { return err } - sv.DoubleValue = &f64 + sv.DoubleValue = ptr.Float64(f64) } case strings.EqualFold("emptyStringValue", t.Name.Local): @@ -3476,7 +3453,7 @@ func awsEc2query_deserializeOpDocumentSimpleScalarXmlPropertiesOutput(v **Simple } if val != nil { xtv := string(val) - sv.EmptyStringValue = &xtv + sv.EmptyStringValue = ptr.String(xtv) } case strings.EqualFold("falseBooleanValue", t.Name.Local): @@ -3492,7 +3469,7 @@ func awsEc2query_deserializeOpDocumentSimpleScalarXmlPropertiesOutput(v **Simple if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FalseBooleanValue = &xtv + sv.FalseBooleanValue = ptr.Bool(xtv) } case strings.EqualFold("floatValue", t.Name.Local): @@ -3543,7 +3520,7 @@ func awsEc2query_deserializeOpDocumentSimpleScalarXmlPropertiesOutput(v **Simple if err != nil { return err } - sv.LongValue = &i64 + sv.LongValue = ptr.Int64(i64) } case strings.EqualFold("shortValue", t.Name.Local): @@ -3576,7 +3553,7 @@ func awsEc2query_deserializeOpDocumentSimpleScalarXmlPropertiesOutput(v **Simple } if val != nil { xtv := string(val) - sv.StringValue = &xtv + sv.StringValue = ptr.String(xtv) } case strings.EqualFold("trueBooleanValue", t.Name.Local): @@ -3592,7 +3569,7 @@ func awsEc2query_deserializeOpDocumentSimpleScalarXmlPropertiesOutput(v **Simple if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.TrueBooleanValue = &xtv + sv.TrueBooleanValue = ptr.Bool(xtv) } default: @@ -4070,7 +4047,7 @@ func awsEc2query_deserializeOpDocumentXmlTimestampsOutput(v **XmlTimestampsOutpu if err != nil { return err } - sv.DateTime = &t + sv.DateTime = ptr.Time(t) } case strings.EqualFold("epochSeconds", t.Name.Local): @@ -4104,7 +4081,7 @@ func awsEc2query_deserializeOpDocumentXmlTimestampsOutput(v **XmlTimestampsOutpu if err != nil { return err } - sv.HttpDate = &t + sv.HttpDate = ptr.Time(t) } case strings.EqualFold("normal", t.Name.Local): @@ -4121,7 +4098,7 @@ func awsEc2query_deserializeOpDocumentXmlTimestampsOutput(v **XmlTimestampsOutpu if err != nil { return err } - sv.Normal = &t + sv.Normal = ptr.Time(t) } default: diff --git a/internal/protocoltest/ec2query/go.mod b/internal/protocoltest/ec2query/go.mod index 2699f96514d..6d13042981c 100644 --- a/internal/protocoltest/ec2query/go.mod +++ b/internal/protocoltest/ec2query/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/ec2query go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 github.com/google/go-cmp v0.4.1 ) diff --git a/internal/protocoltest/ec2query/serializers.go b/internal/protocoltest/ec2query/serializers.go index 014eedb58ea..e013668692b 100644 --- a/internal/protocoltest/ec2query/serializers.go +++ b/internal/protocoltest/ec2query/serializers.go @@ -978,18 +978,15 @@ func (m *awsEc2query_serializeOpXmlTimestamps) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsEc2query_serializeDocumentListWithXmlName(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentListWithXmlName(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1018,18 +1015,15 @@ func awsEc2query_serializeDocumentStructArg(v *types.StructArg, value query.Valu return nil } -func awsEc2query_serializeDocumentGreetingList(v []*types.GreetingStruct, value query.Value) error { +func awsEc2query_serializeDocumentGreetingList(v []types.GreetingStruct, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentGreetingStruct(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentGreetingStruct(&v[i], av); err != nil { return err } } @@ -1048,18 +1042,15 @@ func awsEc2query_serializeDocumentGreetingStruct(v *types.GreetingStruct, value return nil } -func awsEc2query_serializeDocumentStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/internal/protocoltest/ec2query/types/types.go b/internal/protocoltest/ec2query/types/types.go index 9f0b8aa8bec..93081a39542 100644 --- a/internal/protocoltest/ec2query/types/types.go +++ b/internal/protocoltest/ec2query/types/types.go @@ -35,7 +35,7 @@ type StructureListMember struct { type XmlNamespaceNested struct { Foo *string - Values []*string + Values []string } type GreetingStruct struct { diff --git a/internal/protocoltest/jsonrpc/api_op_JsonUnions_test.go b/internal/protocoltest/jsonrpc/api_op_JsonUnions_test.go index c14f861b737..3b0c0d423d7 100644 --- a/internal/protocoltest/jsonrpc/api_op_JsonUnions_test.go +++ b/internal/protocoltest/jsonrpc/api_op_JsonUnions_test.go @@ -165,9 +165,9 @@ func TestClient_JsonUnions_awsAwsjson11Serialize(t *testing.T) { // Serializes a list union value "AwsJson11SerializeListUnionValue": { Params: &JsonUnionsInput{ - Contents: &types.MyUnionMemberListValue{Value: []*string{ - ptr.String("foo"), - ptr.String("bar"), + Contents: &types.MyUnionMemberListValue{Value: []string{ + "foo", + "bar", }}, }, ExpectMethod: "POST", @@ -189,9 +189,9 @@ func TestClient_JsonUnions_awsAwsjson11Serialize(t *testing.T) { // Serializes a map union value "AwsJson11SerializeMapUnionValue": { Params: &JsonUnionsInput{ - Contents: &types.MyUnionMemberMapValue{Value: map[string]*string{ - "foo": ptr.String("bar"), - "spam": ptr.String("eggs"), + Contents: &types.MyUnionMemberMapValue{Value: map[string]string{ + "foo": "bar", + "spam": "eggs", }}, }, ExpectMethod: "POST", @@ -216,7 +216,7 @@ func TestClient_JsonUnions_awsAwsjson11Serialize(t *testing.T) { // Serializes a structure union value "AwsJson11SerializeStructureUnionValue": { Params: &JsonUnionsInput{ - Contents: &types.MyUnionMemberStructureValue{Value: &types.GreetingStruct{ + Contents: &types.MyUnionMemberStructureValue{Value: types.GreetingStruct{ Hi: ptr.String("hello"), }}, }, @@ -421,9 +421,9 @@ func TestClient_JsonUnions_awsAwsjson11Deserialize(t *testing.T) { } }`), ExpectResult: &JsonUnionsOutput{ - Contents: &types.MyUnionMemberListValue{Value: []*string{ - ptr.String("foo"), - ptr.String("bar"), + Contents: &types.MyUnionMemberListValue{Value: []string{ + "foo", + "bar", }}, }, }, @@ -443,9 +443,9 @@ func TestClient_JsonUnions_awsAwsjson11Deserialize(t *testing.T) { } }`), ExpectResult: &JsonUnionsOutput{ - Contents: &types.MyUnionMemberMapValue{Value: map[string]*string{ - "foo": ptr.String("bar"), - "spam": ptr.String("eggs"), + Contents: &types.MyUnionMemberMapValue{Value: map[string]string{ + "foo": "bar", + "spam": "eggs", }}, }, }, @@ -464,7 +464,7 @@ func TestClient_JsonUnions_awsAwsjson11Deserialize(t *testing.T) { } }`), ExpectResult: &JsonUnionsOutput{ - Contents: &types.MyUnionMemberStructureValue{Value: &types.GreetingStruct{ + Contents: &types.MyUnionMemberStructureValue{Value: types.GreetingStruct{ Hi: ptr.String("hello"), }}, }, diff --git a/internal/protocoltest/jsonrpc/api_op_KitchenSinkOperation.go b/internal/protocoltest/jsonrpc/api_op_KitchenSinkOperation.go index 208d29b6c82..d82af2b59a0 100644 --- a/internal/protocoltest/jsonrpc/api_op_KitchenSinkOperation.go +++ b/internal/protocoltest/jsonrpc/api_op_KitchenSinkOperation.go @@ -46,27 +46,27 @@ type KitchenSinkOperationInput struct { JsonValue *string - ListOfLists [][]*string + ListOfLists [][]string - ListOfMapsOfStrings []map[string]*string + ListOfMapsOfStrings []map[string]string - ListOfStrings []*string + ListOfStrings []string - ListOfStructs []*types.SimpleStruct + ListOfStructs []types.SimpleStruct Long *int64 - MapOfListsOfStrings map[string][]*string + MapOfListsOfStrings map[string][]string - MapOfMaps map[string]map[string]*string + MapOfMaps map[string]map[string]string - MapOfStrings map[string]*string + MapOfStrings map[string]string - MapOfStructs map[string]*types.SimpleStruct + MapOfStructs map[string]types.SimpleStruct - RecursiveList []*types.KitchenSink + RecursiveList []types.KitchenSink - RecursiveMap map[string]*types.KitchenSink + RecursiveMap map[string]types.KitchenSink RecursiveStruct *types.KitchenSink @@ -100,27 +100,27 @@ type KitchenSinkOperationOutput struct { JsonValue *string - ListOfLists [][]*string + ListOfLists [][]string - ListOfMapsOfStrings []map[string]*string + ListOfMapsOfStrings []map[string]string - ListOfStrings []*string + ListOfStrings []string - ListOfStructs []*types.SimpleStruct + ListOfStructs []types.SimpleStruct Long *int64 - MapOfListsOfStrings map[string][]*string + MapOfListsOfStrings map[string][]string - MapOfMaps map[string]map[string]*string + MapOfMaps map[string]map[string]string - MapOfStrings map[string]*string + MapOfStrings map[string]string - MapOfStructs map[string]*types.SimpleStruct + MapOfStructs map[string]types.SimpleStruct - RecursiveList []*types.KitchenSink + RecursiveList []types.KitchenSink - RecursiveMap map[string]*types.KitchenSink + RecursiveMap map[string]types.KitchenSink RecursiveStruct *types.KitchenSink diff --git a/internal/protocoltest/jsonrpc/api_op_KitchenSinkOperation_test.go b/internal/protocoltest/jsonrpc/api_op_KitchenSinkOperation_test.go index d7907e01ee6..3c31693593a 100644 --- a/internal/protocoltest/jsonrpc/api_op_KitchenSinkOperation_test.go +++ b/internal/protocoltest/jsonrpc/api_op_KitchenSinkOperation_test.go @@ -286,10 +286,10 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Serialize(t *testing.T) { // Serializes list shapes "serializes_list_shapes": { Params: &KitchenSinkOperationInput{ - ListOfStrings: []*string{ - ptr.String("abc"), - ptr.String("mno"), - ptr.String("xyz"), + ListOfStrings: []string{ + "abc", + "mno", + "xyz", }, }, ExpectMethod: "POST", @@ -309,7 +309,7 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Serialize(t *testing.T) { // Serializes empty list shapes "serializes_empty_list_shapes": { Params: &KitchenSinkOperationInput{ - ListOfStrings: []*string{}, + ListOfStrings: []string{}, }, ExpectMethod: "POST", ExpectURIPath: "/", @@ -328,15 +328,15 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Serialize(t *testing.T) { // Serializes list of map shapes "serializes_list_of_map_shapes": { Params: &KitchenSinkOperationInput{ - ListOfMapsOfStrings: []map[string]*string{ + ListOfMapsOfStrings: []map[string]string{ { - "foo": ptr.String("bar"), + "foo": "bar", }, { - "abc": ptr.String("xyz"), + "abc": "xyz", }, { - "red": ptr.String("blue"), + "red": "blue", }, }, }, @@ -357,7 +357,7 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Serialize(t *testing.T) { // Serializes list of structure shapes "serializes_list_of_structure_shapes": { Params: &KitchenSinkOperationInput{ - ListOfStructs: []*types.SimpleStruct{ + ListOfStructs: []types.SimpleStruct{ { Value: ptr.String("abc"), }, @@ -386,11 +386,11 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Serialize(t *testing.T) { // Serializes list of recursive structure shapes "serializes_list_of_recursive_structure_shapes": { Params: &KitchenSinkOperationInput{ - RecursiveList: []*types.KitchenSink{ + RecursiveList: []types.KitchenSink{ { - RecursiveList: []*types.KitchenSink{ + RecursiveList: []types.KitchenSink{ { - RecursiveList: []*types.KitchenSink{ + RecursiveList: []types.KitchenSink{ { Integer: ptr.Int32(123), }, @@ -417,9 +417,9 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Serialize(t *testing.T) { // Serializes map shapes "serializes_map_shapes": { Params: &KitchenSinkOperationInput{ - MapOfStrings: map[string]*string{ - "abc": ptr.String("xyz"), - "mno": ptr.String("hjk"), + MapOfStrings: map[string]string{ + "abc": "xyz", + "mno": "hjk", }, }, ExpectMethod: "POST", @@ -439,7 +439,7 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Serialize(t *testing.T) { // Serializes empty map shapes "serializes_empty_map_shapes": { Params: &KitchenSinkOperationInput{ - MapOfStrings: map[string]*string{}, + MapOfStrings: map[string]string{}, }, ExpectMethod: "POST", ExpectURIPath: "/", @@ -458,14 +458,14 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Serialize(t *testing.T) { // Serializes map of list shapes "serializes_map_of_list_shapes": { Params: &KitchenSinkOperationInput{ - MapOfListsOfStrings: map[string][]*string{ + MapOfListsOfStrings: map[string][]string{ "abc": { - ptr.String("abc"), - ptr.String("xyz"), + "abc", + "xyz", }, "mno": { - ptr.String("xyz"), - ptr.String("abc"), + "xyz", + "abc", }, }, }, @@ -486,7 +486,7 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Serialize(t *testing.T) { // Serializes map of structure shapes "serializes_map_of_structure_shapes": { Params: &KitchenSinkOperationInput{ - MapOfStructs: map[string]*types.SimpleStruct{ + MapOfStructs: map[string]types.SimpleStruct{ "key1": { Value: ptr.String("value-1"), }, @@ -512,11 +512,11 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Serialize(t *testing.T) { // Serializes map of recursive structure shapes "serializes_map_of_recursive_structure_shapes": { Params: &KitchenSinkOperationInput{ - RecursiveMap: map[string]*types.KitchenSink{ + RecursiveMap: map[string]types.KitchenSink{ "key1": { - RecursiveMap: map[string]*types.KitchenSink{ + RecursiveMap: map[string]types.KitchenSink{ "key2": { - RecursiveMap: map[string]*types.KitchenSink{ + RecursiveMap: map[string]types.KitchenSink{ "key3": { Boolean: ptr.Bool(false), }, @@ -628,15 +628,15 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Serialize(t *testing.T) { RecursiveStruct: &types.KitchenSink{ String_: ptr.String("nested-value"), Boolean: ptr.Bool(true), - RecursiveList: []*types.KitchenSink{ + RecursiveList: []types.KitchenSink{ { String_: ptr.String("string-only"), }, { RecursiveStruct: &types.KitchenSink{ - MapOfStrings: map[string]*string{ - "color": ptr.String("red"), - "size": ptr.String("large"), + MapOfStrings: map[string]string{ + "color": "red", + "size": "large", }, }, }, @@ -882,10 +882,10 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Deserialize(t *testing.T) { BodyMediaType: "application/json", Body: []byte(`{"ListOfStrings":["abc","mno","xyz"]}`), ExpectResult: &KitchenSinkOperationOutput{ - ListOfStrings: []*string{ - ptr.String("abc"), - ptr.String("mno"), - ptr.String("xyz"), + ListOfStrings: []string{ + "abc", + "mno", + "xyz", }, }, }, @@ -898,12 +898,12 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Deserialize(t *testing.T) { BodyMediaType: "application/json", Body: []byte(`{"ListOfMapsOfStrings":[{"size":"large"},{"color":"red"}]}`), ExpectResult: &KitchenSinkOperationOutput{ - ListOfMapsOfStrings: []map[string]*string{ + ListOfMapsOfStrings: []map[string]string{ { - "size": ptr.String("large"), + "size": "large", }, { - "color": ptr.String("red"), + "color": "red", }, }, }, @@ -917,16 +917,16 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Deserialize(t *testing.T) { BodyMediaType: "application/json", Body: []byte(`{"ListOfLists":[["abc","mno","xyz"],["hjk","qrs","tuv"]]}`), ExpectResult: &KitchenSinkOperationOutput{ - ListOfLists: [][]*string{ + ListOfLists: [][]string{ { - ptr.String("abc"), - ptr.String("mno"), - ptr.String("xyz"), + "abc", + "mno", + "xyz", }, { - ptr.String("hjk"), - ptr.String("qrs"), - ptr.String("tuv"), + "hjk", + "qrs", + "tuv", }, }, }, @@ -940,7 +940,7 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Deserialize(t *testing.T) { BodyMediaType: "application/json", Body: []byte(`{"ListOfStructs":[{"Value":"value-1"},{"Value":"value-2"}]}`), ExpectResult: &KitchenSinkOperationOutput{ - ListOfStructs: []*types.SimpleStruct{ + ListOfStructs: []types.SimpleStruct{ { Value: ptr.String("value-1"), }, @@ -959,11 +959,11 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Deserialize(t *testing.T) { BodyMediaType: "application/json", Body: []byte(`{"RecursiveList":[{"RecursiveList":[{"RecursiveList":[{"String":"value"}]}]}]}`), ExpectResult: &KitchenSinkOperationOutput{ - RecursiveList: []*types.KitchenSink{ + RecursiveList: []types.KitchenSink{ { - RecursiveList: []*types.KitchenSink{ + RecursiveList: []types.KitchenSink{ { - RecursiveList: []*types.KitchenSink{ + RecursiveList: []types.KitchenSink{ { String_: ptr.String("value"), }, @@ -983,9 +983,9 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Deserialize(t *testing.T) { BodyMediaType: "application/json", Body: []byte(`{"MapOfStrings":{"size":"large","color":"red"}}`), ExpectResult: &KitchenSinkOperationOutput{ - MapOfStrings: map[string]*string{ - "size": ptr.String("large"), - "color": ptr.String("red"), + MapOfStrings: map[string]string{ + "size": "large", + "color": "red", }, }, }, @@ -998,14 +998,14 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Deserialize(t *testing.T) { BodyMediaType: "application/json", Body: []byte(`{"MapOfListsOfStrings":{"sizes":["large","small"],"colors":["red","green"]}}`), ExpectResult: &KitchenSinkOperationOutput{ - MapOfListsOfStrings: map[string][]*string{ + MapOfListsOfStrings: map[string][]string{ "sizes": { - ptr.String("large"), - ptr.String("small"), + "large", + "small", }, "colors": { - ptr.String("red"), - ptr.String("green"), + "red", + "green", }, }, }, @@ -1019,14 +1019,14 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Deserialize(t *testing.T) { BodyMediaType: "application/json", Body: []byte(`{"MapOfMaps":{"sizes":{"large":"L","medium":"M"},"colors":{"red":"R","blue":"B"}}}`), ExpectResult: &KitchenSinkOperationOutput{ - MapOfMaps: map[string]map[string]*string{ + MapOfMaps: map[string]map[string]string{ "sizes": { - "large": ptr.String("L"), - "medium": ptr.String("M"), + "large": "L", + "medium": "M", }, "colors": { - "red": ptr.String("R"), - "blue": ptr.String("B"), + "red": "R", + "blue": "B", }, }, }, @@ -1040,7 +1040,7 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Deserialize(t *testing.T) { BodyMediaType: "application/json", Body: []byte(`{"MapOfStructs":{"size":{"Value":"small"},"color":{"Value":"red"}}}`), ExpectResult: &KitchenSinkOperationOutput{ - MapOfStructs: map[string]*types.SimpleStruct{ + MapOfStructs: map[string]types.SimpleStruct{ "size": { Value: ptr.String("small"), }, @@ -1059,11 +1059,11 @@ func TestClient_KitchenSinkOperation_awsAwsjson11Deserialize(t *testing.T) { BodyMediaType: "application/json", Body: []byte(`{"RecursiveMap":{"key-1":{"RecursiveMap":{"key-2":{"RecursiveMap":{"key-3":{"String":"value"}}}}}}}`), ExpectResult: &KitchenSinkOperationOutput{ - RecursiveMap: map[string]*types.KitchenSink{ + RecursiveMap: map[string]types.KitchenSink{ "key-1": { - RecursiveMap: map[string]*types.KitchenSink{ + RecursiveMap: map[string]types.KitchenSink{ "key-2": { - RecursiveMap: map[string]*types.KitchenSink{ + RecursiveMap: map[string]types.KitchenSink{ "key-3": { String_: ptr.String("value"), }, diff --git a/internal/protocoltest/jsonrpc/api_op_NullOperation.go b/internal/protocoltest/jsonrpc/api_op_NullOperation.go index 23bc08fbd20..bf109af3a38 100644 --- a/internal/protocoltest/jsonrpc/api_op_NullOperation.go +++ b/internal/protocoltest/jsonrpc/api_op_NullOperation.go @@ -26,17 +26,17 @@ func (c *Client) NullOperation(ctx context.Context, params *NullOperationInput, } type NullOperationInput struct { - StringList []*string + StringList []string - StringMap map[string]*string + StringMap map[string]string String_ *string } type NullOperationOutput struct { - StringList []*string + StringList []string - StringMap map[string]*string + StringMap map[string]string String_ *string diff --git a/internal/protocoltest/jsonrpc/api_op_NullOperation_test.go b/internal/protocoltest/jsonrpc/api_op_NullOperation_test.go index 75825e85188..ff8bc762eef 100644 --- a/internal/protocoltest/jsonrpc/api_op_NullOperation_test.go +++ b/internal/protocoltest/jsonrpc/api_op_NullOperation_test.go @@ -52,8 +52,8 @@ func TestClient_NullOperation_awsAwsjson11Serialize(t *testing.T) { // Serializes null values in maps "AwsJson11MapsSerializeNullValues": { Params: &NullOperationInput{ - StringMap: map[string]*string{ - "foo": nil, + StringMap: map[string]string{ + "foo": func() (v string) { return v }(), }, }, ExpectMethod: "POST", @@ -74,8 +74,8 @@ func TestClient_NullOperation_awsAwsjson11Serialize(t *testing.T) { // Serializes null values in lists "AwsJson11ListsSerializeNull": { Params: &NullOperationInput{ - StringList: []*string{ - nil, + StringList: []string{ + func() (v string) { return v }(), }, }, ExpectMethod: "POST", @@ -96,6 +96,14 @@ func TestClient_NullOperation_awsAwsjson11Serialize(t *testing.T) { } for name, c := range cases { t.Run(name, func(t *testing.T) { + if name == "AwsJson11MapsSerializeNullValues" { + t.Skip("disabled test aws.protocoltests.json#JsonProtocol aws.protocoltests.json#NullOperation") + } + + if name == "AwsJson11ListsSerializeNull" { + t.Skip("disabled test aws.protocoltests.json#JsonProtocol aws.protocoltests.json#NullOperation") + } + var actualReq *http.Request server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { actualReq = r.Clone(r.Context()) @@ -192,8 +200,8 @@ func TestClient_NullOperation_awsAwsjson11Deserialize(t *testing.T) { } }`), ExpectResult: &NullOperationOutput{ - StringMap: map[string]*string{ - "foo": nil, + StringMap: map[string]string{ + "foo": func() (v string) { return v }(), }, }, }, @@ -210,8 +218,8 @@ func TestClient_NullOperation_awsAwsjson11Deserialize(t *testing.T) { ] }`), ExpectResult: &NullOperationOutput{ - StringList: []*string{ - nil, + StringList: []string{ + func() (v string) { return v }(), }, }, }, diff --git a/internal/protocoltest/jsonrpc/deserializers.go b/internal/protocoltest/jsonrpc/deserializers.go index 98aa8d185d6..c626a47fc01 100644 --- a/internal/protocoltest/jsonrpc/deserializers.go +++ b/internal/protocoltest/jsonrpc/deserializers.go @@ -1108,7 +1108,7 @@ func awsAwsjson11_deserializeDocumentComplexError(v **types.ComplexError, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TopLevel = &jtv + sv.TopLevel = ptr.String(jtv) } default: @@ -1148,7 +1148,7 @@ func awsAwsjson11_deserializeDocumentComplexNestedErrorData(v **types.ComplexNes if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Foo = &jtv + sv.Foo = ptr.String(jtv) } default: @@ -1227,7 +1227,7 @@ func awsAwsjson11_deserializeDocumentErrorWithMembers(v **types.ErrorWithMembers if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "ComplexData": @@ -1264,7 +1264,7 @@ func awsAwsjson11_deserializeDocumentErrorWithMembers(v **types.ErrorWithMembers if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "StringField": @@ -1273,7 +1273,7 @@ func awsAwsjson11_deserializeDocumentErrorWithMembers(v **types.ErrorWithMembers if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StringField = &jtv + sv.StringField = ptr.String(jtv) } default: @@ -1375,7 +1375,7 @@ func awsAwsjson11_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1428,7 +1428,7 @@ func awsAwsjson11_deserializeDocumentKitchenSink(v **types.KitchenSink, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Boolean = &jtv + sv.Boolean = ptr.Bool(jtv) } case "Double": @@ -1441,7 +1441,7 @@ func awsAwsjson11_deserializeDocumentKitchenSink(v **types.KitchenSink, value in if err != nil { return err } - sv.Double = &f64 + sv.Double = ptr.Float64(f64) } case "EmptyStruct": @@ -1472,7 +1472,7 @@ func awsAwsjson11_deserializeDocumentKitchenSink(v **types.KitchenSink, value in if err != nil { return err } - sv.HttpdateTimestamp = &t + sv.HttpdateTimestamp = ptr.Time(t) } case "Integer": @@ -1498,7 +1498,7 @@ func awsAwsjson11_deserializeDocumentKitchenSink(v **types.KitchenSink, value in if err != nil { return err } - sv.Iso8601Timestamp = &t + sv.Iso8601Timestamp = ptr.Time(t) } case "JsonValue": @@ -1507,7 +1507,7 @@ func awsAwsjson11_deserializeDocumentKitchenSink(v **types.KitchenSink, value in if !ok { return fmt.Errorf("expected JsonValue to be of type string, got %T instead", value) } - sv.JsonValue = &jtv + sv.JsonValue = ptr.String(jtv) } case "ListOfLists": @@ -1540,7 +1540,7 @@ func awsAwsjson11_deserializeDocumentKitchenSink(v **types.KitchenSink, value in if err != nil { return err } - sv.Long = &i64 + sv.Long = ptr.Int64(i64) } case "MapOfListsOfStrings": @@ -1589,7 +1589,7 @@ func awsAwsjson11_deserializeDocumentKitchenSink(v **types.KitchenSink, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.String_ = &jtv + sv.String_ = ptr.String(jtv) } case "StructWithLocationName": @@ -1632,7 +1632,7 @@ func awsAwsjson11_deserializeDocumentKitchenSink(v **types.KitchenSink, value in return nil } -func awsAwsjson11_deserializeDocumentListOfKitchenSinks(v *[]*types.KitchenSink, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfKitchenSinks(v *[]types.KitchenSink, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1645,18 +1645,20 @@ func awsAwsjson11_deserializeDocumentListOfKitchenSinks(v *[]*types.KitchenSink, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KitchenSink + var cv []types.KitchenSink if *v == nil { - cv = []*types.KitchenSink{} + cv = []types.KitchenSink{} } else { cv = *v } for _, value := range shape { - var col *types.KitchenSink - if err := awsAwsjson11_deserializeDocumentKitchenSink(&col, value); err != nil { + var col types.KitchenSink + destAddr := &col + if err := awsAwsjson11_deserializeDocumentKitchenSink(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1664,7 +1666,7 @@ func awsAwsjson11_deserializeDocumentListOfKitchenSinks(v *[]*types.KitchenSink, return nil } -func awsAwsjson11_deserializeDocumentListOfListOfStrings(v *[][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfListOfStrings(v *[][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1677,15 +1679,15 @@ func awsAwsjson11_deserializeDocumentListOfListOfStrings(v *[][]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv [][]*string + var cv [][]string if *v == nil { - cv = [][]*string{} + cv = [][]string{} } else { cv = *v } for _, value := range shape { - var col []*string + var col []string if err := awsAwsjson11_deserializeDocumentListOfStrings(&col, value); err != nil { return err } @@ -1696,7 +1698,7 @@ func awsAwsjson11_deserializeDocumentListOfListOfStrings(v *[][]*string, value i return nil } -func awsAwsjson11_deserializeDocumentListOfMapsOfStrings(v *[]map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfMapsOfStrings(v *[]map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1709,15 +1711,15 @@ func awsAwsjson11_deserializeDocumentListOfMapsOfStrings(v *[]map[string]*string return fmt.Errorf("unexpected JSON type %v", value) } - var cv []map[string]*string + var cv []map[string]string if *v == nil { - cv = []map[string]*string{} + cv = []map[string]string{} } else { cv = *v } for _, value := range shape { - var col map[string]*string + var col map[string]string if err := awsAwsjson11_deserializeDocumentMapOfStrings(&col, value); err != nil { return err } @@ -1728,7 +1730,7 @@ func awsAwsjson11_deserializeDocumentListOfMapsOfStrings(v *[]map[string]*string return nil } -func awsAwsjson11_deserializeDocumentListOfStrings(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfStrings(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1741,21 +1743,21 @@ func awsAwsjson11_deserializeDocumentListOfStrings(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -1764,7 +1766,7 @@ func awsAwsjson11_deserializeDocumentListOfStrings(v *[]*string, value interface return nil } -func awsAwsjson11_deserializeDocumentListOfStructs(v *[]*types.SimpleStruct, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfStructs(v *[]types.SimpleStruct, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1777,18 +1779,20 @@ func awsAwsjson11_deserializeDocumentListOfStructs(v *[]*types.SimpleStruct, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SimpleStruct + var cv []types.SimpleStruct if *v == nil { - cv = []*types.SimpleStruct{} + cv = []types.SimpleStruct{} } else { cv = *v } for _, value := range shape { - var col *types.SimpleStruct - if err := awsAwsjson11_deserializeDocumentSimpleStruct(&col, value); err != nil { + var col types.SimpleStruct + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSimpleStruct(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1796,7 +1800,7 @@ func awsAwsjson11_deserializeDocumentListOfStructs(v *[]*types.SimpleStruct, val return nil } -func awsAwsjson11_deserializeDocumentMapOfKitchenSinks(v *map[string]*types.KitchenSink, value interface{}) error { +func awsAwsjson11_deserializeDocumentMapOfKitchenSinks(v *map[string]types.KitchenSink, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1809,18 +1813,21 @@ func awsAwsjson11_deserializeDocumentMapOfKitchenSinks(v *map[string]*types.Kitc return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.KitchenSink + var mv map[string]types.KitchenSink if *v == nil { - mv = map[string]*types.KitchenSink{} + mv = map[string]types.KitchenSink{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.KitchenSink - if err := awsAwsjson11_deserializeDocumentKitchenSink(&parsedVal, value); err != nil { + var parsedVal types.KitchenSink + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentKitchenSink(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -1828,7 +1835,7 @@ func awsAwsjson11_deserializeDocumentMapOfKitchenSinks(v *map[string]*types.Kitc return nil } -func awsAwsjson11_deserializeDocumentMapOfListsOfStrings(v *map[string][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentMapOfListsOfStrings(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1841,18 +1848,20 @@ func awsAwsjson11_deserializeDocumentMapOfListsOfStrings(v *map[string][]*string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsAwsjson11_deserializeDocumentListOfStrings(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentListOfStrings(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -1860,7 +1869,7 @@ func awsAwsjson11_deserializeDocumentMapOfListsOfStrings(v *map[string][]*string return nil } -func awsAwsjson11_deserializeDocumentMapOfMapOfStrings(v *map[string]map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentMapOfMapOfStrings(v *map[string]map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1873,18 +1882,20 @@ func awsAwsjson11_deserializeDocumentMapOfMapOfStrings(v *map[string]map[string] return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]map[string]*string + var mv map[string]map[string]string if *v == nil { - mv = map[string]map[string]*string{} + mv = map[string]map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal map[string]*string - if err := awsAwsjson11_deserializeDocumentMapOfStrings(&parsedVal, value); err != nil { + var parsedVal map[string]string + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentMapOfStrings(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -1892,7 +1903,7 @@ func awsAwsjson11_deserializeDocumentMapOfMapOfStrings(v *map[string]map[string] return nil } -func awsAwsjson11_deserializeDocumentMapOfStrings(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentMapOfStrings(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1905,21 +1916,21 @@ func awsAwsjson11_deserializeDocumentMapOfStrings(v *map[string]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -1928,7 +1939,7 @@ func awsAwsjson11_deserializeDocumentMapOfStrings(v *map[string]*string, value i return nil } -func awsAwsjson11_deserializeDocumentMapOfStructs(v *map[string]*types.SimpleStruct, value interface{}) error { +func awsAwsjson11_deserializeDocumentMapOfStructs(v *map[string]types.SimpleStruct, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1941,18 +1952,21 @@ func awsAwsjson11_deserializeDocumentMapOfStructs(v *map[string]*types.SimpleStr return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.SimpleStruct + var mv map[string]types.SimpleStruct if *v == nil { - mv = map[string]*types.SimpleStruct{} + mv = map[string]types.SimpleStruct{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.SimpleStruct - if err := awsAwsjson11_deserializeDocumentSimpleStruct(&parsedVal, value); err != nil { + var parsedVal types.SimpleStruct + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentSimpleStruct(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -1994,15 +2008,15 @@ loop: break loop case "booleanValue": - var mv *bool + var mv bool if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.MyUnionMemberBooleanValue{Value: *mv} + uv = &types.MyUnionMemberBooleanValue{Value: mv} break loop case "enumValue": @@ -2018,7 +2032,7 @@ loop: break loop case "listValue": - var mv []*string + var mv []string if err := awsAwsjson11_deserializeDocumentStringList(&mv, value); err != nil { return err } @@ -2026,7 +2040,7 @@ loop: break loop case "mapValue": - var mv map[string]*string + var mv map[string]string if err := awsAwsjson11_deserializeDocumentStringMap(&mv, value); err != nil { return err } @@ -2034,7 +2048,7 @@ loop: break loop case "numberValue": - var mv *int32 + var mv int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -2044,33 +2058,35 @@ loop: if err != nil { return err } - mv = ptr.Int32(int32(i64)) + mv = int32(i64) } - uv = &types.MyUnionMemberNumberValue{Value: *mv} + uv = &types.MyUnionMemberNumberValue{Value: mv} break loop case "stringValue": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.MyUnionMemberStringValue{Value: *mv} + uv = &types.MyUnionMemberStringValue{Value: mv} break loop case "structureValue": - var mv *types.GreetingStruct - if err := awsAwsjson11_deserializeDocumentGreetingStruct(&mv, value); err != nil { + var mv types.GreetingStruct + destAddr := &mv + if err := awsAwsjson11_deserializeDocumentGreetingStruct(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.MyUnionMemberStructureValue{Value: mv} break loop case "timestampValue": - var mv *time.Time + var mv time.Time if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -2080,9 +2096,9 @@ loop: if err != nil { return err } - mv = ptr.Time(smithytime.ParseEpochSeconds(f64)) + mv = smithytime.ParseEpochSeconds(f64) } - uv = &types.MyUnionMemberTimestampValue{Value: *mv} + uv = &types.MyUnionMemberTimestampValue{Value: mv} break loop default: @@ -2125,7 +2141,7 @@ func awsAwsjson11_deserializeDocumentSimpleStruct(v **types.SimpleStruct, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -2165,7 +2181,7 @@ func awsAwsjson11_deserializeDocumentStructWithLocationName(v **types.StructWith if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -2313,7 +2329,7 @@ func awsAwsjson11_deserializeDocumentGreetingStruct(v **types.GreetingStruct, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Hi = &jtv + sv.Hi = ptr.String(jtv) } default: @@ -2325,7 +2341,7 @@ func awsAwsjson11_deserializeDocumentGreetingStruct(v **types.GreetingStruct, va return nil } -func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2338,21 +2354,21 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -2361,7 +2377,7 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentStringMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2374,21 +2390,21 @@ func awsAwsjson11_deserializeDocumentStringMap(v *map[string]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -2456,7 +2472,7 @@ func awsAwsjson11_deserializeOpDocumentGreetingWithErrorsOutput(v **GreetingWith if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Greeting = &jtv + sv.Greeting = ptr.String(jtv) } default: @@ -2618,7 +2634,7 @@ func awsAwsjson11_deserializeOpDocumentKitchenSinkOperationOutput(v **KitchenSin if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Boolean = &jtv + sv.Boolean = ptr.Bool(jtv) } case "Double": @@ -2631,7 +2647,7 @@ func awsAwsjson11_deserializeOpDocumentKitchenSinkOperationOutput(v **KitchenSin if err != nil { return err } - sv.Double = &f64 + sv.Double = ptr.Float64(f64) } case "EmptyStruct": @@ -2662,7 +2678,7 @@ func awsAwsjson11_deserializeOpDocumentKitchenSinkOperationOutput(v **KitchenSin if err != nil { return err } - sv.HttpdateTimestamp = &t + sv.HttpdateTimestamp = ptr.Time(t) } case "Integer": @@ -2688,7 +2704,7 @@ func awsAwsjson11_deserializeOpDocumentKitchenSinkOperationOutput(v **KitchenSin if err != nil { return err } - sv.Iso8601Timestamp = &t + sv.Iso8601Timestamp = ptr.Time(t) } case "JsonValue": @@ -2697,7 +2713,7 @@ func awsAwsjson11_deserializeOpDocumentKitchenSinkOperationOutput(v **KitchenSin if !ok { return fmt.Errorf("expected JsonValue to be of type string, got %T instead", value) } - sv.JsonValue = &jtv + sv.JsonValue = ptr.String(jtv) } case "ListOfLists": @@ -2730,7 +2746,7 @@ func awsAwsjson11_deserializeOpDocumentKitchenSinkOperationOutput(v **KitchenSin if err != nil { return err } - sv.Long = &i64 + sv.Long = ptr.Int64(i64) } case "MapOfListsOfStrings": @@ -2779,7 +2795,7 @@ func awsAwsjson11_deserializeOpDocumentKitchenSinkOperationOutput(v **KitchenSin if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.String_ = &jtv + sv.String_ = ptr.String(jtv) } case "StructWithLocationName": @@ -2850,7 +2866,7 @@ func awsAwsjson11_deserializeOpDocumentNullOperationOutput(v **NullOperationOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.String_ = &jtv + sv.String_ = ptr.String(jtv) } case "stringList": @@ -2900,7 +2916,7 @@ func awsAwsjson11_deserializeOpDocumentOperationWithOptionalInputOutputOutput(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: diff --git a/internal/protocoltest/jsonrpc/go.mod b/internal/protocoltest/jsonrpc/go.mod index ad820374844..255c6cb3ce6 100644 --- a/internal/protocoltest/jsonrpc/go.mod +++ b/internal/protocoltest/jsonrpc/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 github.com/google/go-cmp v0.4.1 ) diff --git a/internal/protocoltest/jsonrpc/serializers.go b/internal/protocoltest/jsonrpc/serializers.go index 09a48e44073..987feba74b4 100644 --- a/internal/protocoltest/jsonrpc/serializers.go +++ b/internal/protocoltest/jsonrpc/serializers.go @@ -545,31 +545,26 @@ func awsAwsjson11_serializeDocumentKitchenSink(v *types.KitchenSink, value smith return nil } -func awsAwsjson11_serializeDocumentListOfKitchenSinks(v []*types.KitchenSink, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentListOfKitchenSinks(v []types.KitchenSink, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentKitchenSink(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentKitchenSink(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentListOfListOfStrings(v [][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentListOfListOfStrings(v [][]string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsAwsjson11_serializeDocumentListOfStrings(v[i], av); err != nil { @@ -579,14 +574,13 @@ func awsAwsjson11_serializeDocumentListOfListOfStrings(v [][]*string, value smit return nil } -func awsAwsjson11_serializeDocumentListOfMapsOfStrings(v []map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentListOfMapsOfStrings(v []map[string]string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsAwsjson11_serializeDocumentMapOfStrings(v[i], av); err != nil { @@ -596,63 +590,51 @@ func awsAwsjson11_serializeDocumentListOfMapsOfStrings(v []map[string]*string, v return nil } -func awsAwsjson11_serializeDocumentListOfStrings(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentListOfStrings(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentListOfStructs(v []*types.SimpleStruct, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentListOfStructs(v []types.SimpleStruct, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSimpleStruct(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSimpleStruct(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentMapOfKitchenSinks(v map[string]*types.KitchenSink, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMapOfKitchenSinks(v map[string]types.KitchenSink, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson11_serializeDocumentKitchenSink(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson11_serializeDocumentKitchenSink(&mapVar, om); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentMapOfListsOfStrings(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMapOfListsOfStrings(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentListOfStrings(v[key], om); err != nil { @@ -662,14 +644,13 @@ func awsAwsjson11_serializeDocumentMapOfListsOfStrings(v map[string][]*string, v return nil } -func awsAwsjson11_serializeDocumentMapOfMapOfStrings(v map[string]map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMapOfMapOfStrings(v map[string]map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentMapOfStrings(v[key], om); err != nil { @@ -679,32 +660,25 @@ func awsAwsjson11_serializeDocumentMapOfMapOfStrings(v map[string]map[string]*st return nil } -func awsAwsjson11_serializeDocumentMapOfStrings(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMapOfStrings(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentMapOfStructs(v map[string]*types.SimpleStruct, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMapOfStructs(v map[string]types.SimpleStruct, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSimpleStruct(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson11_serializeDocumentSimpleStruct(&mapVar, om); err != nil { return err } } @@ -750,7 +724,7 @@ func awsAwsjson11_serializeDocumentMyUnion(v types.MyUnion, value smithyjson.Val case *types.MyUnionMemberStructureValue: av := object.Key("structureValue") - if err := awsAwsjson11_serializeDocumentGreetingStruct(uv.Value, av); err != nil { + if err := awsAwsjson11_serializeDocumentGreetingStruct(&uv.Value, av); err != nil { return err } @@ -834,32 +808,24 @@ func awsAwsjson11_serializeDocumentGreetingStruct(v *types.GreetingStruct, value return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentStringMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/internal/protocoltest/jsonrpc/types/errors.go b/internal/protocoltest/jsonrpc/types/errors.go index 05c1f18c56c..7651e0ed3f6 100644 --- a/internal/protocoltest/jsonrpc/types/errors.go +++ b/internal/protocoltest/jsonrpc/types/errors.go @@ -33,8 +33,8 @@ type ErrorWithMembers struct { Code *string ComplexData *KitchenSink IntegerField *int32 - ListField []*string - MapField map[string]*string + ListField []string + MapField map[string]string StringField *string } diff --git a/internal/protocoltest/jsonrpc/types/types.go b/internal/protocoltest/jsonrpc/types/types.go index d576ed2f251..045ad1d22c6 100644 --- a/internal/protocoltest/jsonrpc/types/types.go +++ b/internal/protocoltest/jsonrpc/types/types.go @@ -32,27 +32,27 @@ type KitchenSink struct { JsonValue *string - ListOfLists [][]*string + ListOfLists [][]string - ListOfMapsOfStrings []map[string]*string + ListOfMapsOfStrings []map[string]string - ListOfStrings []*string + ListOfStrings []string - ListOfStructs []*SimpleStruct + ListOfStructs []SimpleStruct Long *int64 - MapOfListsOfStrings map[string][]*string + MapOfListsOfStrings map[string][]string - MapOfMaps map[string]map[string]*string + MapOfMaps map[string]map[string]string - MapOfStrings map[string]*string + MapOfStrings map[string]string - MapOfStructs map[string]*SimpleStruct + MapOfStructs map[string]SimpleStruct - RecursiveList []*KitchenSink + RecursiveList []KitchenSink - RecursiveMap map[string]*KitchenSink + RecursiveMap map[string]KitchenSink RecursiveStruct *KitchenSink @@ -109,19 +109,19 @@ type MyUnionMemberEnumValue struct { func (*MyUnionMemberEnumValue) isMyUnion() {} type MyUnionMemberListValue struct { - Value []*string + Value []string } func (*MyUnionMemberListValue) isMyUnion() {} type MyUnionMemberMapValue struct { - Value map[string]*string + Value map[string]string } func (*MyUnionMemberMapValue) isMyUnion() {} type MyUnionMemberStructureValue struct { - Value *GreetingStruct + Value GreetingStruct } func (*MyUnionMemberStructureValue) isMyUnion() {} diff --git a/internal/protocoltest/jsonrpc10/api_op_JsonUnions_test.go b/internal/protocoltest/jsonrpc10/api_op_JsonUnions_test.go index 4af60b069e8..f1e3cf09c69 100644 --- a/internal/protocoltest/jsonrpc10/api_op_JsonUnions_test.go +++ b/internal/protocoltest/jsonrpc10/api_op_JsonUnions_test.go @@ -165,9 +165,9 @@ func TestClient_JsonUnions_awsAwsjson10Serialize(t *testing.T) { // Serializes a list union value "AwsJson10SerializeListUnionValue": { Params: &JsonUnionsInput{ - Contents: &types.MyUnionMemberListValue{Value: []*string{ - ptr.String("foo"), - ptr.String("bar"), + Contents: &types.MyUnionMemberListValue{Value: []string{ + "foo", + "bar", }}, }, ExpectMethod: "POST", @@ -189,9 +189,9 @@ func TestClient_JsonUnions_awsAwsjson10Serialize(t *testing.T) { // Serializes a map union value "AwsJson10SerializeMapUnionValue": { Params: &JsonUnionsInput{ - Contents: &types.MyUnionMemberMapValue{Value: map[string]*string{ - "foo": ptr.String("bar"), - "spam": ptr.String("eggs"), + Contents: &types.MyUnionMemberMapValue{Value: map[string]string{ + "foo": "bar", + "spam": "eggs", }}, }, ExpectMethod: "POST", @@ -216,7 +216,7 @@ func TestClient_JsonUnions_awsAwsjson10Serialize(t *testing.T) { // Serializes a structure union value "AwsJson10SerializeStructureUnionValue": { Params: &JsonUnionsInput{ - Contents: &types.MyUnionMemberStructureValue{Value: &types.GreetingStruct{ + Contents: &types.MyUnionMemberStructureValue{Value: types.GreetingStruct{ Hi: ptr.String("hello"), }}, }, @@ -421,9 +421,9 @@ func TestClient_JsonUnions_awsAwsjson10Deserialize(t *testing.T) { } }`), ExpectResult: &JsonUnionsOutput{ - Contents: &types.MyUnionMemberListValue{Value: []*string{ - ptr.String("foo"), - ptr.String("bar"), + Contents: &types.MyUnionMemberListValue{Value: []string{ + "foo", + "bar", }}, }, }, @@ -443,9 +443,9 @@ func TestClient_JsonUnions_awsAwsjson10Deserialize(t *testing.T) { } }`), ExpectResult: &JsonUnionsOutput{ - Contents: &types.MyUnionMemberMapValue{Value: map[string]*string{ - "foo": ptr.String("bar"), - "spam": ptr.String("eggs"), + Contents: &types.MyUnionMemberMapValue{Value: map[string]string{ + "foo": "bar", + "spam": "eggs", }}, }, }, @@ -464,7 +464,7 @@ func TestClient_JsonUnions_awsAwsjson10Deserialize(t *testing.T) { } }`), ExpectResult: &JsonUnionsOutput{ - Contents: &types.MyUnionMemberStructureValue{Value: &types.GreetingStruct{ + Contents: &types.MyUnionMemberStructureValue{Value: types.GreetingStruct{ Hi: ptr.String("hello"), }}, }, diff --git a/internal/protocoltest/jsonrpc10/deserializers.go b/internal/protocoltest/jsonrpc10/deserializers.go index 76fd6b9c6d9..2150d3472ef 100644 --- a/internal/protocoltest/jsonrpc10/deserializers.go +++ b/internal/protocoltest/jsonrpc10/deserializers.go @@ -708,7 +708,7 @@ func awsAwsjson10_deserializeDocumentComplexError(v **types.ComplexError, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TopLevel = &jtv + sv.TopLevel = ptr.String(jtv) } default: @@ -748,7 +748,7 @@ func awsAwsjson10_deserializeDocumentComplexNestedErrorData(v **types.ComplexNes if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Foo = &jtv + sv.Foo = ptr.String(jtv) } default: @@ -819,7 +819,7 @@ func awsAwsjson10_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -865,15 +865,15 @@ loop: break loop case "booleanValue": - var mv *bool + var mv bool if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.MyUnionMemberBooleanValue{Value: *mv} + uv = &types.MyUnionMemberBooleanValue{Value: mv} break loop case "enumValue": @@ -889,7 +889,7 @@ loop: break loop case "listValue": - var mv []*string + var mv []string if err := awsAwsjson10_deserializeDocumentStringList(&mv, value); err != nil { return err } @@ -897,7 +897,7 @@ loop: break loop case "mapValue": - var mv map[string]*string + var mv map[string]string if err := awsAwsjson10_deserializeDocumentStringMap(&mv, value); err != nil { return err } @@ -905,7 +905,7 @@ loop: break loop case "numberValue": - var mv *int32 + var mv int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -915,33 +915,35 @@ loop: if err != nil { return err } - mv = ptr.Int32(int32(i64)) + mv = int32(i64) } - uv = &types.MyUnionMemberNumberValue{Value: *mv} + uv = &types.MyUnionMemberNumberValue{Value: mv} break loop case "stringValue": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.MyUnionMemberStringValue{Value: *mv} + uv = &types.MyUnionMemberStringValue{Value: mv} break loop case "structureValue": - var mv *types.GreetingStruct - if err := awsAwsjson10_deserializeDocumentGreetingStruct(&mv, value); err != nil { + var mv types.GreetingStruct + destAddr := &mv + if err := awsAwsjson10_deserializeDocumentGreetingStruct(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.MyUnionMemberStructureValue{Value: mv} break loop case "timestampValue": - var mv *time.Time + var mv time.Time if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -951,9 +953,9 @@ loop: if err != nil { return err } - mv = ptr.Time(smithytime.ParseEpochSeconds(f64)) + mv = smithytime.ParseEpochSeconds(f64) } - uv = &types.MyUnionMemberTimestampValue{Value: *mv} + uv = &types.MyUnionMemberTimestampValue{Value: mv} break loop default: @@ -996,7 +998,7 @@ func awsAwsjson10_deserializeDocumentGreetingStruct(v **types.GreetingStruct, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Hi = &jtv + sv.Hi = ptr.String(jtv) } default: @@ -1008,7 +1010,7 @@ func awsAwsjson10_deserializeDocumentGreetingStruct(v **types.GreetingStruct, va return nil } -func awsAwsjson10_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1021,21 +1023,21 @@ func awsAwsjson10_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -1044,7 +1046,7 @@ func awsAwsjson10_deserializeDocumentStringList(v *[]*string, value interface{}) return nil } -func awsAwsjson10_deserializeDocumentStringMap(v *map[string]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentStringMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1057,21 +1059,21 @@ func awsAwsjson10_deserializeDocumentStringMap(v *map[string]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -1139,7 +1141,7 @@ func awsAwsjson10_deserializeOpDocumentGreetingWithErrorsOutput(v **GreetingWith if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Greeting = &jtv + sv.Greeting = ptr.String(jtv) } default: diff --git a/internal/protocoltest/jsonrpc10/go.mod b/internal/protocoltest/jsonrpc10/go.mod index bac5612dbd7..1eec0e20d05 100644 --- a/internal/protocoltest/jsonrpc10/go.mod +++ b/internal/protocoltest/jsonrpc10/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc10 go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 github.com/google/go-cmp v0.4.1 ) diff --git a/internal/protocoltest/jsonrpc10/serializers.go b/internal/protocoltest/jsonrpc10/serializers.go index 7974005fbe6..91395fbbb79 100644 --- a/internal/protocoltest/jsonrpc10/serializers.go +++ b/internal/protocoltest/jsonrpc10/serializers.go @@ -255,7 +255,7 @@ func awsAwsjson10_serializeDocumentMyUnion(v types.MyUnion, value smithyjson.Val case *types.MyUnionMemberStructureValue: av := object.Key("structureValue") - if err := awsAwsjson10_serializeDocumentGreetingStruct(uv.Value, av); err != nil { + if err := awsAwsjson10_serializeDocumentGreetingStruct(&uv.Value, av); err != nil { return err } @@ -282,32 +282,24 @@ func awsAwsjson10_serializeDocumentGreetingStruct(v *types.GreetingStruct, value return nil } -func awsAwsjson10_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson10_serializeDocumentStringMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentStringMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/internal/protocoltest/jsonrpc10/types/types.go b/internal/protocoltest/jsonrpc10/types/types.go index c8d0ae65b55..f7ec6390704 100644 --- a/internal/protocoltest/jsonrpc10/types/types.go +++ b/internal/protocoltest/jsonrpc10/types/types.go @@ -52,19 +52,19 @@ type MyUnionMemberEnumValue struct { func (*MyUnionMemberEnumValue) isMyUnion() {} type MyUnionMemberListValue struct { - Value []*string + Value []string } func (*MyUnionMemberListValue) isMyUnion() {} type MyUnionMemberMapValue struct { - Value map[string]*string + Value map[string]string } func (*MyUnionMemberMapValue) isMyUnion() {} type MyUnionMemberStructureValue struct { - Value *GreetingStruct + Value GreetingStruct } func (*MyUnionMemberStructureValue) isMyUnion() {} diff --git a/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlName.go b/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlName.go index 9fcb2344af8..fa551714d68 100644 --- a/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlName.go +++ b/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlName.go @@ -29,7 +29,7 @@ type FlattenedXmlMapWithXmlNameInput struct { } type FlattenedXmlMapWithXmlNameOutput struct { - MyMap map[string]*string + MyMap map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlName_test.go b/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlName_test.go index caaa0df73ea..9eadae6992e 100644 --- a/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlName_test.go +++ b/internal/protocoltest/query/api_op_FlattenedXmlMapWithXmlName_test.go @@ -7,7 +7,6 @@ import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/awslabs/smithy-go/middleware" - "github.com/awslabs/smithy-go/ptr" smithyrand "github.com/awslabs/smithy-go/rand" smithytesting "github.com/awslabs/smithy-go/testing" smithyhttp "github.com/awslabs/smithy-go/transport/http" @@ -45,9 +44,9 @@ func TestClient_FlattenedXmlMapWithXmlName_awsAwsqueryDeserialize(t *testing.T) `), ExpectResult: &FlattenedXmlMapWithXmlNameOutput{ - MyMap: map[string]*string{ - "a": ptr.String("A"), - "b": ptr.String("B"), + MyMap: map[string]string{ + "a": "A", + "b": "B", }, }, }, diff --git a/internal/protocoltest/query/api_op_QueryLists.go b/internal/protocoltest/query/api_op_QueryLists.go index 7cdb5bbc135..9091a7dd3eb 100644 --- a/internal/protocoltest/query/api_op_QueryLists.go +++ b/internal/protocoltest/query/api_op_QueryLists.go @@ -27,15 +27,15 @@ func (c *Client) QueryLists(ctx context.Context, params *QueryListsInput, optFns } type QueryListsInput struct { - ComplexListArg []*types.GreetingStruct + ComplexListArg []types.GreetingStruct - FlattenedListArg []*string + FlattenedListArg []string - FlattenedListArgWithXmlName []*string + FlattenedListArgWithXmlName []string - ListArg []*string + ListArg []string - ListArgWithXmlNameMember []*string + ListArgWithXmlNameMember []string } type QueryListsOutput struct { diff --git a/internal/protocoltest/query/api_op_QueryLists_test.go b/internal/protocoltest/query/api_op_QueryLists_test.go index 19188056d1c..38386ee57ee 100644 --- a/internal/protocoltest/query/api_op_QueryLists_test.go +++ b/internal/protocoltest/query/api_op_QueryLists_test.go @@ -37,12 +37,12 @@ func TestClient_QueryLists_awsAwsquerySerialize(t *testing.T) { // Serializes query lists "QueryLists": { Params: &QueryListsInput{ - ListArg: []*string{ - ptr.String("foo"), - ptr.String("bar"), - ptr.String("baz"), + ListArg: []string{ + "foo", + "bar", + "baz", }, - ComplexListArg: []*types.GreetingStruct{ + ComplexListArg: []types.GreetingStruct{ { Hi: ptr.String("hello"), }, @@ -71,7 +71,7 @@ func TestClient_QueryLists_awsAwsquerySerialize(t *testing.T) { // Does not serialize empty query lists "EmptyQueryLists": { Params: &QueryListsInput{ - ListArg: []*string{}, + ListArg: []string{}, }, ExpectMethod: "POST", ExpectURIPath: "/", @@ -89,9 +89,9 @@ func TestClient_QueryLists_awsAwsquerySerialize(t *testing.T) { // element "FlattenedQueryLists": { Params: &QueryListsInput{ - FlattenedListArg: []*string{ - ptr.String("A"), - ptr.String("B"), + FlattenedListArg: []string{ + "A", + "B", }, }, ExpectMethod: "POST", @@ -111,9 +111,9 @@ func TestClient_QueryLists_awsAwsquerySerialize(t *testing.T) { // Changes the member of lists using xmlName trait "QueryListArgWithXmlNameMember": { Params: &QueryListsInput{ - ListArgWithXmlNameMember: []*string{ - ptr.String("A"), - ptr.String("B"), + ListArgWithXmlNameMember: []string{ + "A", + "B", }, }, ExpectMethod: "POST", @@ -133,9 +133,9 @@ func TestClient_QueryLists_awsAwsquerySerialize(t *testing.T) { // Changes the name of flattened lists using xmlName trait on the structure member "QueryFlattenedListArgWithXmlName": { Params: &QueryListsInput{ - FlattenedListArgWithXmlName: []*string{ - ptr.String("A"), - ptr.String("B"), + FlattenedListArgWithXmlName: []string{ + "A", + "B", }, }, ExpectMethod: "POST", diff --git a/internal/protocoltest/query/api_op_QueryMaps.go b/internal/protocoltest/query/api_op_QueryMaps.go index bc6f28105f0..af2e7c143e6 100644 --- a/internal/protocoltest/query/api_op_QueryMaps.go +++ b/internal/protocoltest/query/api_op_QueryMaps.go @@ -27,19 +27,19 @@ func (c *Client) QueryMaps(ctx context.Context, params *QueryMapsInput, optFns . } type QueryMapsInput struct { - ComplexMapArg map[string]*types.GreetingStruct + ComplexMapArg map[string]types.GreetingStruct - FlattenedMap map[string]*string + FlattenedMap map[string]string - FlattenedMapWithXmlName map[string]*string + FlattenedMapWithXmlName map[string]string - MapArg map[string]*string + MapArg map[string]string - MapOfLists map[string][]*string + MapOfLists map[string][]string - MapWithXmlMemberName map[string]*string + MapWithXmlMemberName map[string]string - RenamedMapArg map[string]*string + RenamedMapArg map[string]string } type QueryMapsOutput struct { diff --git a/internal/protocoltest/query/api_op_QueryMaps_test.go b/internal/protocoltest/query/api_op_QueryMaps_test.go index 010950e76f9..920688606ac 100644 --- a/internal/protocoltest/query/api_op_QueryMaps_test.go +++ b/internal/protocoltest/query/api_op_QueryMaps_test.go @@ -37,9 +37,9 @@ func TestClient_QueryMaps_awsAwsquerySerialize(t *testing.T) { // Serializes query maps "QuerySimpleQueryMaps": { Params: &QueryMapsInput{ - MapArg: map[string]*string{ - "bar": ptr.String("Bar"), - "foo": ptr.String("Foo"), + MapArg: map[string]string{ + "bar": "Bar", + "foo": "Foo", }, }, ExpectMethod: "POST", @@ -61,8 +61,8 @@ func TestClient_QueryMaps_awsAwsquerySerialize(t *testing.T) { // Serializes query maps and uses xmlName "QuerySimpleQueryMapsWithXmlName": { Params: &QueryMapsInput{ - RenamedMapArg: map[string]*string{ - "foo": ptr.String("Foo"), + RenamedMapArg: map[string]string{ + "foo": "Foo", }, }, ExpectMethod: "POST", @@ -82,7 +82,7 @@ func TestClient_QueryMaps_awsAwsquerySerialize(t *testing.T) { // Serializes complex query maps "QueryComplexQueryMaps": { Params: &QueryMapsInput{ - ComplexMapArg: map[string]*types.GreetingStruct{ + ComplexMapArg: map[string]types.GreetingStruct{ "bar": { Hi: ptr.String("Bar"), }, @@ -110,7 +110,7 @@ func TestClient_QueryMaps_awsAwsquerySerialize(t *testing.T) { // Does not serialize empty query maps "QueryEmptyQueryMaps": { Params: &QueryMapsInput{ - MapArg: map[string]*string{}, + MapArg: map[string]string{}, }, ExpectMethod: "POST", ExpectURIPath: "/", @@ -127,9 +127,9 @@ func TestClient_QueryMaps_awsAwsquerySerialize(t *testing.T) { // Serializes query maps where the member has an xmlName trait "QueryQueryMapWithMemberXmlName": { Params: &QueryMapsInput{ - MapWithXmlMemberName: map[string]*string{ - "bar": ptr.String("Bar"), - "foo": ptr.String("Foo"), + MapWithXmlMemberName: map[string]string{ + "bar": "Bar", + "foo": "Foo", }, }, ExpectMethod: "POST", @@ -151,9 +151,9 @@ func TestClient_QueryMaps_awsAwsquerySerialize(t *testing.T) { // Serializes flattened query maps "QueryFlattenedQueryMaps": { Params: &QueryMapsInput{ - FlattenedMap: map[string]*string{ - "bar": ptr.String("Bar"), - "foo": ptr.String("Foo"), + FlattenedMap: map[string]string{ + "bar": "Bar", + "foo": "Foo", }, }, ExpectMethod: "POST", @@ -175,9 +175,9 @@ func TestClient_QueryMaps_awsAwsquerySerialize(t *testing.T) { // Serializes flattened query maps that use an xmlName "QueryFlattenedQueryMapsWithXmlName": { Params: &QueryMapsInput{ - FlattenedMapWithXmlName: map[string]*string{ - "bar": ptr.String("Bar"), - "foo": ptr.String("Foo"), + FlattenedMapWithXmlName: map[string]string{ + "bar": "Bar", + "foo": "Foo", }, }, ExpectMethod: "POST", @@ -199,14 +199,14 @@ func TestClient_QueryMaps_awsAwsquerySerialize(t *testing.T) { // Serializes query map of lists "QueryQueryMapOfLists": { Params: &QueryMapsInput{ - MapOfLists: map[string][]*string{ + MapOfLists: map[string][]string{ "bar": { - ptr.String("C"), - ptr.String("D"), + "C", + "D", }, "foo": { - ptr.String("A"), - ptr.String("B"), + "A", + "B", }, }, }, diff --git a/internal/protocoltest/query/api_op_XmlEmptyLists.go b/internal/protocoltest/query/api_op_XmlEmptyLists.go index c6ecbaa6cfe..3411841bcce 100644 --- a/internal/protocoltest/query/api_op_XmlEmptyLists.go +++ b/internal/protocoltest/query/api_op_XmlEmptyLists.go @@ -30,28 +30,28 @@ type XmlEmptyListsInput struct { } type XmlEmptyListsOutput struct { - BooleanList []*bool + BooleanList []bool EnumList []types.FooEnum - FlattenedList []*string + FlattenedList []string - FlattenedList2 []*string + FlattenedList2 []string - IntegerList []*int32 + IntegerList []int32 // A list of lists of strings. - NestedStringList [][]*string + NestedStringList [][]string - RenamedListMembers []*string + RenamedListMembers []string - StringList []*string + StringList []string - StringSet []*string + StringSet []string - StructureList []*types.StructureListMember + StructureList []types.StructureListMember - TimestampList []*time.Time + TimestampList []time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/query/api_op_XmlEmptyLists_test.go b/internal/protocoltest/query/api_op_XmlEmptyLists_test.go index 772713918cd..dd740155bf4 100644 --- a/internal/protocoltest/query/api_op_XmlEmptyLists_test.go +++ b/internal/protocoltest/query/api_op_XmlEmptyLists_test.go @@ -39,8 +39,8 @@ func TestClient_XmlEmptyLists_awsAwsqueryDeserialize(t *testing.T) { `), ExpectResult: &XmlEmptyListsOutput{ - StringList: []*string{}, - StringSet: []*string{}, + StringList: []string{}, + StringSet: []string{}, }, }, } diff --git a/internal/protocoltest/query/api_op_XmlEmptyMaps.go b/internal/protocoltest/query/api_op_XmlEmptyMaps.go index e6da2c19a01..0ff92c1efea 100644 --- a/internal/protocoltest/query/api_op_XmlEmptyMaps.go +++ b/internal/protocoltest/query/api_op_XmlEmptyMaps.go @@ -29,7 +29,7 @@ type XmlEmptyMapsInput struct { } type XmlEmptyMapsOutput struct { - MyMap map[string]*types.GreetingStruct + MyMap map[string]types.GreetingStruct // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/query/api_op_XmlEmptyMaps_test.go b/internal/protocoltest/query/api_op_XmlEmptyMaps_test.go index 10fd70c6b28..aad513a1dab 100644 --- a/internal/protocoltest/query/api_op_XmlEmptyMaps_test.go +++ b/internal/protocoltest/query/api_op_XmlEmptyMaps_test.go @@ -40,7 +40,7 @@ func TestClient_XmlEmptyMaps_awsAwsqueryDeserialize(t *testing.T) { `), ExpectResult: &XmlEmptyMapsOutput{ - MyMap: map[string]*types.GreetingStruct{}, + MyMap: map[string]types.GreetingStruct{}, }, }, // Deserializes Self-Closed XML maps @@ -57,7 +57,7 @@ func TestClient_XmlEmptyMaps_awsAwsqueryDeserialize(t *testing.T) { `), ExpectResult: &XmlEmptyMapsOutput{ - MyMap: map[string]*types.GreetingStruct{}, + MyMap: map[string]types.GreetingStruct{}, }, }, } diff --git a/internal/protocoltest/query/api_op_XmlLists.go b/internal/protocoltest/query/api_op_XmlLists.go index b0cfa65a175..f64255cc830 100644 --- a/internal/protocoltest/query/api_op_XmlLists.go +++ b/internal/protocoltest/query/api_op_XmlLists.go @@ -48,28 +48,28 @@ type XmlListsInput struct { } type XmlListsOutput struct { - BooleanList []*bool + BooleanList []bool EnumList []types.FooEnum - FlattenedList []*string + FlattenedList []string - FlattenedList2 []*string + FlattenedList2 []string - IntegerList []*int32 + IntegerList []int32 // A list of lists of strings. - NestedStringList [][]*string + NestedStringList [][]string - RenamedListMembers []*string + RenamedListMembers []string - StringList []*string + StringList []string - StringSet []*string + StringSet []string - StructureList []*types.StructureListMember + StructureList []types.StructureListMember - TimestampList []*time.Time + TimestampList []time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/query/api_op_XmlLists_test.go b/internal/protocoltest/query/api_op_XmlLists_test.go index d4145d7e469..bd15562ac34 100644 --- a/internal/protocoltest/query/api_op_XmlLists_test.go +++ b/internal/protocoltest/query/api_op_XmlLists_test.go @@ -93,53 +93,53 @@ func TestClient_XmlLists_awsAwsqueryDeserialize(t *testing.T) { `), ExpectResult: &XmlListsOutput{ - StringList: []*string{ - ptr.String("foo"), - ptr.String("bar"), + StringList: []string{ + "foo", + "bar", }, - StringSet: []*string{ - ptr.String("foo"), - ptr.String("bar"), + StringSet: []string{ + "foo", + "bar", }, - IntegerList: []*int32{ - ptr.Int32(1), - ptr.Int32(2), + IntegerList: []int32{ + 1, + 2, }, - BooleanList: []*bool{ - ptr.Bool(true), - ptr.Bool(false), + BooleanList: []bool{ + true, + false, }, - TimestampList: []*time.Time{ - ptr.Time(smithytime.ParseEpochSeconds(1398796238)), - ptr.Time(smithytime.ParseEpochSeconds(1398796238)), + TimestampList: []time.Time{ + smithytime.ParseEpochSeconds(1398796238), + smithytime.ParseEpochSeconds(1398796238), }, EnumList: []types.FooEnum{ types.FooEnum("Foo"), types.FooEnum("0"), }, - NestedStringList: [][]*string{ + NestedStringList: [][]string{ { - ptr.String("foo"), - ptr.String("bar"), + "foo", + "bar", }, { - ptr.String("baz"), - ptr.String("qux"), + "baz", + "qux", }, }, - RenamedListMembers: []*string{ - ptr.String("foo"), - ptr.String("bar"), + RenamedListMembers: []string{ + "foo", + "bar", }, - FlattenedList: []*string{ - ptr.String("hi"), - ptr.String("bye"), + FlattenedList: []string{ + "hi", + "bye", }, - FlattenedList2: []*string{ - ptr.String("yep"), - ptr.String("nope"), + FlattenedList2: []string{ + "yep", + "nope", }, - StructureList: []*types.StructureListMember{ + StructureList: []types.StructureListMember{ { A: ptr.String("1"), B: ptr.String("2"), diff --git a/internal/protocoltest/query/api_op_XmlMaps.go b/internal/protocoltest/query/api_op_XmlMaps.go index f4c82255779..95b77cb81b5 100644 --- a/internal/protocoltest/query/api_op_XmlMaps.go +++ b/internal/protocoltest/query/api_op_XmlMaps.go @@ -30,7 +30,7 @@ type XmlMapsInput struct { } type XmlMapsOutput struct { - MyMap map[string]*types.GreetingStruct + MyMap map[string]types.GreetingStruct // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/query/api_op_XmlMapsXmlName.go b/internal/protocoltest/query/api_op_XmlMapsXmlName.go index cd24bb9d651..455fa7f42ff 100644 --- a/internal/protocoltest/query/api_op_XmlMapsXmlName.go +++ b/internal/protocoltest/query/api_op_XmlMapsXmlName.go @@ -29,7 +29,7 @@ type XmlMapsXmlNameInput struct { } type XmlMapsXmlNameOutput struct { - MyMap map[string]*types.GreetingStruct + MyMap map[string]types.GreetingStruct // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/query/api_op_XmlMapsXmlName_test.go b/internal/protocoltest/query/api_op_XmlMapsXmlName_test.go index b349bb3375f..04b901df602 100644 --- a/internal/protocoltest/query/api_op_XmlMapsXmlName_test.go +++ b/internal/protocoltest/query/api_op_XmlMapsXmlName_test.go @@ -53,7 +53,7 @@ func TestClient_XmlMapsXmlName_awsAwsqueryDeserialize(t *testing.T) { `), ExpectResult: &XmlMapsXmlNameOutput{ - MyMap: map[string]*types.GreetingStruct{ + MyMap: map[string]types.GreetingStruct{ "foo": { Hi: ptr.String("there"), }, diff --git a/internal/protocoltest/query/api_op_XmlMaps_test.go b/internal/protocoltest/query/api_op_XmlMaps_test.go index b72b250812c..592c144b17a 100644 --- a/internal/protocoltest/query/api_op_XmlMaps_test.go +++ b/internal/protocoltest/query/api_op_XmlMaps_test.go @@ -53,7 +53,7 @@ func TestClient_XmlMaps_awsAwsqueryDeserialize(t *testing.T) { `), ExpectResult: &XmlMapsOutput{ - MyMap: map[string]*types.GreetingStruct{ + MyMap: map[string]types.GreetingStruct{ "foo": { Hi: ptr.String("there"), }, diff --git a/internal/protocoltest/query/api_op_XmlNamespaces_test.go b/internal/protocoltest/query/api_op_XmlNamespaces_test.go index d8c3b2d4cee..9607b5c68f5 100644 --- a/internal/protocoltest/query/api_op_XmlNamespaces_test.go +++ b/internal/protocoltest/query/api_op_XmlNamespaces_test.go @@ -48,9 +48,9 @@ func TestClient_XmlNamespaces_awsAwsqueryDeserialize(t *testing.T) { ExpectResult: &XmlNamespacesOutput{ Nested: &types.XmlNamespaceNested{ Foo: ptr.String("Foo"), - Values: []*string{ - ptr.String("Bar"), - ptr.String("Baz"), + Values: []string{ + "Bar", + "Baz", }, }, }, diff --git a/internal/protocoltest/query/deserializers.go b/internal/protocoltest/query/deserializers.go index e94fae5e860..42f0a4edaa1 100644 --- a/internal/protocoltest/query/deserializers.go +++ b/internal/protocoltest/query/deserializers.go @@ -2462,7 +2462,7 @@ func awsAwsquery_deserializeDocumentComplexError(v **types.ComplexError, decoder } if val != nil { xtv := string(val) - sv.TopLevel = &xtv + sv.TopLevel = ptr.String(xtv) } default: @@ -2510,7 +2510,7 @@ func awsAwsquery_deserializeDocumentComplexNestedErrorData(v **types.ComplexNest } if val != nil { xtv := string(val) - sv.Foo = &xtv + sv.Foo = ptr.String(xtv) } default: @@ -2523,13 +2523,13 @@ func awsAwsquery_deserializeDocumentComplexNestedErrorData(v **types.ComplexNest return nil } -func awsAwsquery_deserializeDocumentFlattenedXmlMapWithXmlNameOutputMap(v *map[string]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentFlattenedXmlMapWithXmlNameOutputMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*string + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } @@ -2553,23 +2553,23 @@ func awsAwsquery_deserializeDocumentFlattenedXmlMapWithXmlNameOutputMap(v *map[s return nil } -func awsAwsquery_deserializeDocumentFlattenedXmlMapWithXmlNameOutputMapUnwrapped(v *map[string]*string, decoder smithyxml.NodeDecoder) error { - var sv map[string]*string +func awsAwsquery_deserializeDocumentFlattenedXmlMapWithXmlNameOutputMapUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } - var ek *string - var ev *string + var ek string + var ev string for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -2579,14 +2579,11 @@ func awsAwsquery_deserializeDocumentFlattenedXmlMapWithXmlNameOutputMapUnwrapped return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("V", t.Name.Local): @@ -2595,14 +2592,11 @@ func awsAwsquery_deserializeDocumentFlattenedXmlMapWithXmlNameOutputMapUnwrapped return err } if done { - if val == nil { - ev = ptr.String("") - } break } if val != nil { xtv := string(val) - ev = &xtv + ev = xtv } default: @@ -2648,7 +2642,7 @@ func awsAwsquery_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, d } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -2696,7 +2690,7 @@ func awsAwsquery_deserializeDocumentRecursiveXmlShapesOutputNested1(v **types.Re } if val != nil { xtv := string(val) - sv.Foo = &xtv + sv.Foo = ptr.String(xtv) } case strings.EqualFold("nested", t.Name.Local): @@ -2750,7 +2744,7 @@ func awsAwsquery_deserializeDocumentRecursiveXmlShapesOutputNested2(v **types.Re } if val != nil { xtv := string(val) - sv.Bar = &xtv + sv.Bar = ptr.String(xtv) } case strings.EqualFold("recursiveMember", t.Name.Local): @@ -2769,13 +2763,13 @@ func awsAwsquery_deserializeDocumentRecursiveXmlShapesOutputNested2(v **types.Re return nil } -func awsAwsquery_deserializeDocumentRenamedListMembers(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRenamedListMembers(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -2793,20 +2787,17 @@ func awsAwsquery_deserializeDocumentRenamedListMembers(v *[]*string, decoder smi decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -2819,17 +2810,17 @@ func awsAwsquery_deserializeDocumentRenamedListMembers(v *[]*string, decoder smi return nil } -func awsAwsquery_deserializeDocumentRenamedListMembersUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentRenamedListMembersUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -2837,27 +2828,24 @@ func awsAwsquery_deserializeDocumentRenamedListMembersUnwrapped(v *[]*string, de return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentStructureList(v *[]*types.StructureListMember, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStructureList(v *[]types.StructureListMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StructureListMember + var sv []types.StructureListMember if *v == nil { - sv = make([]*types.StructureListMember, 0) + sv = make([]types.StructureListMember, 0) } else { sv = *v } @@ -2873,11 +2861,13 @@ func awsAwsquery_deserializeDocumentStructureList(v *[]*types.StructureListMembe } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.StructureListMember + var col types.StructureListMember nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStructureListMember(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentStructureListMember(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -2890,23 +2880,25 @@ func awsAwsquery_deserializeDocumentStructureList(v *[]*types.StructureListMembe return nil } -func awsAwsquery_deserializeDocumentStructureListUnwrapped(v *[]*types.StructureListMember, decoder smithyxml.NodeDecoder) error { - var sv []*types.StructureListMember +func awsAwsquery_deserializeDocumentStructureListUnwrapped(v *[]types.StructureListMember, decoder smithyxml.NodeDecoder) error { + var sv []types.StructureListMember if *v == nil { - sv = make([]*types.StructureListMember, 0) + sv = make([]types.StructureListMember, 0) } else { sv = *v } switch { default: - var mv *types.StructureListMember + var mv types.StructureListMember t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStructureListMember(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentStructureListMember(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -2947,7 +2939,7 @@ func awsAwsquery_deserializeDocumentStructureListMember(v **types.StructureListM } if val != nil { xtv := string(val) - sv.A = &xtv + sv.A = ptr.String(xtv) } case strings.EqualFold("other", t.Name.Local): @@ -2963,7 +2955,7 @@ func awsAwsquery_deserializeDocumentStructureListMember(v **types.StructureListM } if val != nil { xtv := string(val) - sv.B = &xtv + sv.B = ptr.String(xtv) } default: @@ -2976,13 +2968,13 @@ func awsAwsquery_deserializeDocumentStructureListMember(v **types.StructureListM return nil } -func awsAwsquery_deserializeDocumentXmlMapsOutputMap(v *map[string]*types.GreetingStruct, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentXmlMapsOutputMap(v *map[string]types.GreetingStruct, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*types.GreetingStruct + var sv map[string]types.GreetingStruct if *v == nil { - sv = make(map[string]*types.GreetingStruct, 0) + sv = make(map[string]types.GreetingStruct, 0) } else { sv = *v } @@ -3006,23 +2998,23 @@ func awsAwsquery_deserializeDocumentXmlMapsOutputMap(v *map[string]*types.Greeti return nil } -func awsAwsquery_deserializeDocumentXmlMapsOutputMapUnwrapped(v *map[string]*types.GreetingStruct, decoder smithyxml.NodeDecoder) error { - var sv map[string]*types.GreetingStruct +func awsAwsquery_deserializeDocumentXmlMapsOutputMapUnwrapped(v *map[string]types.GreetingStruct, decoder smithyxml.NodeDecoder) error { + var sv map[string]types.GreetingStruct if *v == nil { - sv = make(map[string]*types.GreetingStruct, 0) + sv = make(map[string]types.GreetingStruct, 0) } else { sv = *v } - var ek *string - var ev *types.GreetingStruct + var ek string + var ev types.GreetingStruct for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -3032,21 +3024,21 @@ func awsAwsquery_deserializeDocumentXmlMapsOutputMapUnwrapped(v *map[string]*typ return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGreetingStruct(&ev, nodeDecoder); err != nil { + mapVar := ev + destAddr := &mapVar + if err := awsAwsquery_deserializeDocumentGreetingStruct(&destAddr, nodeDecoder); err != nil { return err } + ev = *destAddr default: // Do nothing and ignore the unexpected tag element @@ -3056,13 +3048,13 @@ func awsAwsquery_deserializeDocumentXmlMapsOutputMapUnwrapped(v *map[string]*typ *v = sv return nil } -func awsAwsquery_deserializeDocumentXmlMapsXmlNameOutputMap(v *map[string]*types.GreetingStruct, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentXmlMapsXmlNameOutputMap(v *map[string]types.GreetingStruct, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*types.GreetingStruct + var sv map[string]types.GreetingStruct if *v == nil { - sv = make(map[string]*types.GreetingStruct, 0) + sv = make(map[string]types.GreetingStruct, 0) } else { sv = *v } @@ -3086,23 +3078,23 @@ func awsAwsquery_deserializeDocumentXmlMapsXmlNameOutputMap(v *map[string]*types return nil } -func awsAwsquery_deserializeDocumentXmlMapsXmlNameOutputMapUnwrapped(v *map[string]*types.GreetingStruct, decoder smithyxml.NodeDecoder) error { - var sv map[string]*types.GreetingStruct +func awsAwsquery_deserializeDocumentXmlMapsXmlNameOutputMapUnwrapped(v *map[string]types.GreetingStruct, decoder smithyxml.NodeDecoder) error { + var sv map[string]types.GreetingStruct if *v == nil { - sv = make(map[string]*types.GreetingStruct, 0) + sv = make(map[string]types.GreetingStruct, 0) } else { sv = *v } - var ek *string - var ev *types.GreetingStruct + var ek string + var ev types.GreetingStruct for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -3112,21 +3104,21 @@ func awsAwsquery_deserializeDocumentXmlMapsXmlNameOutputMapUnwrapped(v *map[stri return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("Setting", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGreetingStruct(&ev, nodeDecoder); err != nil { + mapVar := ev + destAddr := &mapVar + if err := awsAwsquery_deserializeDocumentGreetingStruct(&destAddr, nodeDecoder); err != nil { return err } + ev = *destAddr default: // Do nothing and ignore the unexpected tag element @@ -3136,13 +3128,13 @@ func awsAwsquery_deserializeDocumentXmlMapsXmlNameOutputMapUnwrapped(v *map[stri *v = sv return nil } -func awsAwsquery_deserializeDocumentXmlNamespacedList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentXmlNamespacedList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -3160,20 +3152,17 @@ func awsAwsquery_deserializeDocumentXmlNamespacedList(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -3186,17 +3175,17 @@ func awsAwsquery_deserializeDocumentXmlNamespacedList(v *[]*string, decoder smit return nil } -func awsAwsquery_deserializeDocumentXmlNamespacedListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentXmlNamespacedListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -3204,14 +3193,11 @@ func awsAwsquery_deserializeDocumentXmlNamespacedListUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -3253,7 +3239,7 @@ func awsAwsquery_deserializeDocumentXmlNamespaceNested(v **types.XmlNamespaceNes } if val != nil { xtv := string(val) - sv.Foo = &xtv + sv.Foo = ptr.String(xtv) } case strings.EqualFold("values", t.Name.Local): @@ -3272,13 +3258,13 @@ func awsAwsquery_deserializeDocumentXmlNamespaceNested(v **types.XmlNamespaceNes return nil } -func awsAwsquery_deserializeDocumentBooleanList(v *[]*bool, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentBooleanList(v *[]bool, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*bool + var sv []bool if *v == nil { - sv = make([]*bool, 0) + sv = make([]bool, 0) } else { sv = *v } @@ -3296,7 +3282,7 @@ func awsAwsquery_deserializeDocumentBooleanList(v *[]*bool, decoder smithyxml.No decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *bool + var col bool val, done, err := decoder.Value() if err != nil { return err @@ -3309,7 +3295,7 @@ func awsAwsquery_deserializeDocumentBooleanList(v *[]*bool, decoder smithyxml.No if err != nil { return fmt.Errorf("expected PrimitiveBoolean to be of type *bool, got %T instead", val) } - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -3322,17 +3308,17 @@ func awsAwsquery_deserializeDocumentBooleanList(v *[]*bool, decoder smithyxml.No return nil } -func awsAwsquery_deserializeDocumentBooleanListUnwrapped(v *[]*bool, decoder smithyxml.NodeDecoder) error { - var sv []*bool +func awsAwsquery_deserializeDocumentBooleanListUnwrapped(v *[]bool, decoder smithyxml.NodeDecoder) error { + var sv []bool if *v == nil { - sv = make([]*bool, 0) + sv = make([]bool, 0) } else { sv = *v } switch { default: - var mv *bool + var mv bool t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -3347,7 +3333,7 @@ func awsAwsquery_deserializeDocumentBooleanListUnwrapped(v *[]*bool, decoder smi if err != nil { return fmt.Errorf("expected PrimitiveBoolean to be of type *bool, got %T instead", val) } - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -3468,7 +3454,7 @@ func awsAwsquery_deserializeDocumentFooEnumMapUnwrapped(v *map[string]types.FooE sv = *v } - var ek *string + var ek string var ev types.FooEnum for { t, done, err := decoder.Token() @@ -3476,7 +3462,7 @@ func awsAwsquery_deserializeDocumentFooEnumMapUnwrapped(v *map[string]types.FooE return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -3486,14 +3472,11 @@ func awsAwsquery_deserializeDocumentFooEnumMapUnwrapped(v *map[string]types.FooE return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): @@ -3628,7 +3611,7 @@ func awsAwsquery_deserializeDocumentGreetingStruct(v **types.GreetingStruct, dec } if val != nil { xtv := string(val) - sv.Hi = &xtv + sv.Hi = ptr.String(xtv) } default: @@ -3641,13 +3624,13 @@ func awsAwsquery_deserializeDocumentGreetingStruct(v **types.GreetingStruct, dec return nil } -func awsAwsquery_deserializeDocumentIntegerList(v *[]*int32, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentIntegerList(v *[]int32, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*int32 + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } @@ -3665,7 +3648,7 @@ func awsAwsquery_deserializeDocumentIntegerList(v *[]*int32, decoder smithyxml.N decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *int32 + var col int32 val, done, err := decoder.Value() if err != nil { return err @@ -3679,7 +3662,7 @@ func awsAwsquery_deserializeDocumentIntegerList(v *[]*int32, decoder smithyxml.N if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } sv = append(sv, col) } else { @@ -3692,17 +3675,17 @@ func awsAwsquery_deserializeDocumentIntegerList(v *[]*int32, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentIntegerListUnwrapped(v *[]*int32, decoder smithyxml.NodeDecoder) error { - var sv []*int32 +func awsAwsquery_deserializeDocumentIntegerListUnwrapped(v *[]int32, decoder smithyxml.NodeDecoder) error { + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } switch { default: - var mv *int32 + var mv int32 t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -3718,20 +3701,20 @@ func awsAwsquery_deserializeDocumentIntegerListUnwrapped(v *[]*int32, decoder sm if err != nil { return err } - mv = ptr.Int32(int32(i64)) + mv = int32(i64) } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentNestedStringList(v *[][]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNestedStringList(v *[][]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv [][]*string + var sv [][]string if *v == nil { - sv = make([][]*string, 0) + sv = make([][]string, 0) } else { sv = *v } @@ -3747,7 +3730,7 @@ func awsAwsquery_deserializeDocumentNestedStringList(v *[][]*string, decoder smi } for { if strings.EqualFold("member", t.Name.Local) { - var col []*string + var col []string nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsAwsquery_deserializeDocumentStringList(&col, nodeDecoder); err != nil { return err @@ -3764,17 +3747,17 @@ func awsAwsquery_deserializeDocumentNestedStringList(v *[][]*string, decoder smi return nil } -func awsAwsquery_deserializeDocumentNestedStringListUnwrapped(v *[][]*string, decoder smithyxml.NodeDecoder) error { - var sv [][]*string +func awsAwsquery_deserializeDocumentNestedStringListUnwrapped(v *[][]string, decoder smithyxml.NodeDecoder) error { + var sv [][]string if *v == nil { - sv = make([][]*string, 0) + sv = make([][]string, 0) } else { sv = *v } switch { default: - var mv []*string + var mv []string t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) @@ -3786,13 +3769,13 @@ func awsAwsquery_deserializeDocumentNestedStringListUnwrapped(v *[][]*string, de *v = sv return nil } -func awsAwsquery_deserializeDocumentStringList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStringList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -3810,20 +3793,17 @@ func awsAwsquery_deserializeDocumentStringList(v *[]*string, decoder smithyxml.N decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -3836,17 +3816,17 @@ func awsAwsquery_deserializeDocumentStringList(v *[]*string, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentStringListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -3854,27 +3834,24 @@ func awsAwsquery_deserializeDocumentStringListUnwrapped(v *[]*string, decoder sm return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentStringSet(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStringSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -3892,20 +3869,17 @@ func awsAwsquery_deserializeDocumentStringSet(v *[]*string, decoder smithyxml.No decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -3918,17 +3892,17 @@ func awsAwsquery_deserializeDocumentStringSet(v *[]*string, decoder smithyxml.No return nil } -func awsAwsquery_deserializeDocumentStringSetUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentStringSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -3936,27 +3910,24 @@ func awsAwsquery_deserializeDocumentStringSetUnwrapped(v *[]*string, decoder smi return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentTimestampList(v *[]*time.Time, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTimestampList(v *[]time.Time, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*time.Time + var sv []time.Time if *v == nil { - sv = make([]*time.Time, 0) + sv = make([]time.Time, 0) } else { sv = *v } @@ -3974,7 +3945,7 @@ func awsAwsquery_deserializeDocumentTimestampList(v *[]*time.Time, decoder smith decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *time.Time + var col time.Time val, done, err := decoder.Value() if err != nil { return err @@ -3988,7 +3959,7 @@ func awsAwsquery_deserializeDocumentTimestampList(v *[]*time.Time, decoder smith if err != nil { return err } - col = &t + col = t } sv = append(sv, col) } else { @@ -4001,17 +3972,17 @@ func awsAwsquery_deserializeDocumentTimestampList(v *[]*time.Time, decoder smith return nil } -func awsAwsquery_deserializeDocumentTimestampListUnwrapped(v *[]*time.Time, decoder smithyxml.NodeDecoder) error { - var sv []*time.Time +func awsAwsquery_deserializeDocumentTimestampListUnwrapped(v *[]time.Time, decoder smithyxml.NodeDecoder) error { + var sv []time.Time if *v == nil { - sv = make([]*time.Time, 0) + sv = make([]time.Time, 0) } else { sv = *v } switch { default: - var mv *time.Time + var mv time.Time t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -4027,7 +3998,7 @@ func awsAwsquery_deserializeDocumentTimestampListUnwrapped(v *[]*time.Time, deco if err != nil { return err } - mv = &t + mv = t } sv = append(sv, mv) } @@ -4177,7 +4148,7 @@ func awsAwsquery_deserializeOpDocumentGreetingWithErrorsOutput(v **GreetingWithE } if val != nil { xtv := string(val) - sv.Greeting = &xtv + sv.Greeting = ptr.String(xtv) } default: @@ -4225,7 +4196,7 @@ func awsAwsquery_deserializeOpDocumentIgnoresWrappingXmlNameOutput(v **IgnoresWr } if val != nil { xtv := string(val) - sv.Foo = &xtv + sv.Foo = ptr.String(xtv) } default: @@ -4585,7 +4556,7 @@ func awsAwsquery_deserializeOpDocumentSimpleScalarXmlPropertiesOutput(v **Simple if err != nil { return err } - sv.DoubleValue = &f64 + sv.DoubleValue = ptr.Float64(f64) } case strings.EqualFold("emptyStringValue", t.Name.Local): @@ -4601,7 +4572,7 @@ func awsAwsquery_deserializeOpDocumentSimpleScalarXmlPropertiesOutput(v **Simple } if val != nil { xtv := string(val) - sv.EmptyStringValue = &xtv + sv.EmptyStringValue = ptr.String(xtv) } case strings.EqualFold("falseBooleanValue", t.Name.Local): @@ -4617,7 +4588,7 @@ func awsAwsquery_deserializeOpDocumentSimpleScalarXmlPropertiesOutput(v **Simple if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FalseBooleanValue = &xtv + sv.FalseBooleanValue = ptr.Bool(xtv) } case strings.EqualFold("floatValue", t.Name.Local): @@ -4668,7 +4639,7 @@ func awsAwsquery_deserializeOpDocumentSimpleScalarXmlPropertiesOutput(v **Simple if err != nil { return err } - sv.LongValue = &i64 + sv.LongValue = ptr.Int64(i64) } case strings.EqualFold("shortValue", t.Name.Local): @@ -4701,7 +4672,7 @@ func awsAwsquery_deserializeOpDocumentSimpleScalarXmlPropertiesOutput(v **Simple } if val != nil { xtv := string(val) - sv.StringValue = &xtv + sv.StringValue = ptr.String(xtv) } case strings.EqualFold("trueBooleanValue", t.Name.Local): @@ -4717,7 +4688,7 @@ func awsAwsquery_deserializeOpDocumentSimpleScalarXmlPropertiesOutput(v **Simple if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.TrueBooleanValue = &xtv + sv.TrueBooleanValue = ptr.Bool(xtv) } default: @@ -5309,7 +5280,7 @@ func awsAwsquery_deserializeOpDocumentXmlTimestampsOutput(v **XmlTimestampsOutpu if err != nil { return err } - sv.DateTime = &t + sv.DateTime = ptr.Time(t) } case strings.EqualFold("epochSeconds", t.Name.Local): @@ -5343,7 +5314,7 @@ func awsAwsquery_deserializeOpDocumentXmlTimestampsOutput(v **XmlTimestampsOutpu if err != nil { return err } - sv.HttpDate = &t + sv.HttpDate = ptr.Time(t) } case strings.EqualFold("normal", t.Name.Local): @@ -5360,7 +5331,7 @@ func awsAwsquery_deserializeOpDocumentXmlTimestampsOutput(v **XmlTimestampsOutpu if err != nil { return err } - sv.Normal = &t + sv.Normal = ptr.Time(t) } default: diff --git a/internal/protocoltest/query/go.mod b/internal/protocoltest/query/go.mod index fa37a0368c3..21d807595ca 100644 --- a/internal/protocoltest/query/go.mod +++ b/internal/protocoltest/query/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/query go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 github.com/google/go-cmp v0.4.1 ) diff --git a/internal/protocoltest/query/serializers.go b/internal/protocoltest/query/serializers.go index 378ee8940b7..6012a0ede8b 100644 --- a/internal/protocoltest/query/serializers.go +++ b/internal/protocoltest/query/serializers.go @@ -1352,7 +1352,7 @@ func (m *awsAwsquery_serializeOpXmlTimestamps) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentComplexMap(v map[string]*types.GreetingStruct, value query.Value) error { +func awsAwsquery_serializeDocumentComplexMap(v map[string]types.GreetingStruct, value query.Value) error { if len(v) == 0 { return nil } @@ -1365,34 +1365,29 @@ func awsAwsquery_serializeDocumentComplexMap(v map[string]*types.GreetingStruct, sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - if err := awsAwsquery_serializeDocumentGreetingStruct(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsquery_serializeDocumentGreetingStruct(&mapVar, om); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentListWithXmlName(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentListWithXmlName(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentMapOfLists(v map[string][]*string, value query.Value) error { +func awsAwsquery_serializeDocumentMapOfLists(v map[string][]string, value query.Value) error { if len(v) == 0 { return nil } @@ -1416,7 +1411,7 @@ func awsAwsquery_serializeDocumentMapOfLists(v map[string][]*string, value query return nil } -func awsAwsquery_serializeDocumentMapWithXmlName(v map[string]*string, value query.Value) error { +func awsAwsquery_serializeDocumentMapWithXmlName(v map[string]string, value query.Value) error { if len(v) == 0 { return nil } @@ -1429,11 +1424,8 @@ func awsAwsquery_serializeDocumentMapWithXmlName(v map[string]*string, value que sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1462,18 +1454,15 @@ func awsAwsquery_serializeDocumentStructArg(v *types.StructArg, value query.Valu return nil } -func awsAwsquery_serializeDocumentGreetingList(v []*types.GreetingStruct, value query.Value) error { +func awsAwsquery_serializeDocumentGreetingList(v []types.GreetingStruct, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentGreetingStruct(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentGreetingStruct(&v[i], av); err != nil { return err } } @@ -1492,23 +1481,20 @@ func awsAwsquery_serializeDocumentGreetingStruct(v *types.GreetingStruct, value return nil } -func awsAwsquery_serializeDocumentStringList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentStringMap(v map[string]*string, value query.Value) error { +func awsAwsquery_serializeDocumentStringMap(v map[string]string, value query.Value) error { if len(v) == 0 { return nil } @@ -1521,11 +1507,8 @@ func awsAwsquery_serializeDocumentStringMap(v map[string]*string, value query.Va sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/internal/protocoltest/query/types/types.go b/internal/protocoltest/query/types/types.go index 9f0b8aa8bec..93081a39542 100644 --- a/internal/protocoltest/query/types/types.go +++ b/internal/protocoltest/query/types/types.go @@ -35,7 +35,7 @@ type StructureListMember struct { type XmlNamespaceNested struct { Foo *string - Values []*string + Values []string } type GreetingStruct struct { diff --git a/internal/protocoltest/restxml/api_op_AllQueryStringTypes.go b/internal/protocoltest/restxml/api_op_AllQueryStringTypes.go index 1b88da2d7d1..33e6527fbb9 100644 --- a/internal/protocoltest/restxml/api_op_AllQueryStringTypes.go +++ b/internal/protocoltest/restxml/api_op_AllQueryStringTypes.go @@ -30,13 +30,13 @@ func (c *Client) AllQueryStringTypes(ctx context.Context, params *AllQueryString type AllQueryStringTypesInput struct { QueryBoolean *bool - QueryBooleanList []*bool + QueryBooleanList []bool QueryByte *int8 QueryDouble *float64 - QueryDoubleList []*float64 + QueryDoubleList []float64 QueryEnum types.FooEnum @@ -46,9 +46,9 @@ type AllQueryStringTypesInput struct { QueryInteger *int32 - QueryIntegerList []*int32 + QueryIntegerList []int32 - QueryIntegerSet []*int32 + QueryIntegerSet []int32 QueryLong *int64 @@ -56,13 +56,13 @@ type AllQueryStringTypesInput struct { QueryString *string - QueryStringList []*string + QueryStringList []string - QueryStringSet []*string + QueryStringSet []string QueryTimestamp *time.Time - QueryTimestampList []*time.Time + QueryTimestampList []time.Time } type AllQueryStringTypesOutput struct { diff --git a/internal/protocoltest/restxml/api_op_AllQueryStringTypes_test.go b/internal/protocoltest/restxml/api_op_AllQueryStringTypes_test.go index 7f79d170764..e8a9c550d5e 100644 --- a/internal/protocoltest/restxml/api_op_AllQueryStringTypes_test.go +++ b/internal/protocoltest/restxml/api_op_AllQueryStringTypes_test.go @@ -40,48 +40,48 @@ func TestClient_AllQueryStringTypes_awsRestxmlSerialize(t *testing.T) { "AllQueryStringTypes": { Params: &AllQueryStringTypesInput{ QueryString: ptr.String("Hello there"), - QueryStringList: []*string{ - ptr.String("a"), - ptr.String("b"), - ptr.String("c"), + QueryStringList: []string{ + "a", + "b", + "c", }, - QueryStringSet: []*string{ - ptr.String("a"), - ptr.String("b"), - ptr.String("c"), + QueryStringSet: []string{ + "a", + "b", + "c", }, QueryByte: ptr.Int8(1), QueryShort: ptr.Int16(2), QueryInteger: ptr.Int32(3), - QueryIntegerList: []*int32{ - ptr.Int32(1), - ptr.Int32(2), - ptr.Int32(3), + QueryIntegerList: []int32{ + 1, + 2, + 3, }, - QueryIntegerSet: []*int32{ - ptr.Int32(1), - ptr.Int32(2), - ptr.Int32(3), + QueryIntegerSet: []int32{ + 1, + 2, + 3, }, QueryLong: ptr.Int64(4), QueryFloat: ptr.Float32(1.1), QueryDouble: ptr.Float64(1.1), - QueryDoubleList: []*float64{ - ptr.Float64(1.1), - ptr.Float64(2.1), - ptr.Float64(3.1), + QueryDoubleList: []float64{ + 1.1, + 2.1, + 3.1, }, QueryBoolean: ptr.Bool(true), - QueryBooleanList: []*bool{ - ptr.Bool(true), - ptr.Bool(false), - ptr.Bool(true), + QueryBooleanList: []bool{ + true, + false, + true, }, QueryTimestamp: ptr.Time(smithytime.ParseEpochSeconds(1)), - QueryTimestampList: []*time.Time{ - ptr.Time(smithytime.ParseEpochSeconds(1)), - ptr.Time(smithytime.ParseEpochSeconds(2)), - ptr.Time(smithytime.ParseEpochSeconds(3)), + QueryTimestampList: []time.Time{ + smithytime.ParseEpochSeconds(1), + smithytime.ParseEpochSeconds(2), + smithytime.ParseEpochSeconds(3), }, QueryEnum: types.FooEnum("Foo"), QueryEnumList: []types.FooEnum{ diff --git a/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlName.go b/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlName.go index 6a19730b417..76f79078d28 100644 --- a/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlName.go +++ b/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlName.go @@ -26,11 +26,11 @@ func (c *Client) FlattenedXmlMapWithXmlName(ctx context.Context, params *Flatten } type FlattenedXmlMapWithXmlNameInput struct { - MyMap map[string]*string + MyMap map[string]string } type FlattenedXmlMapWithXmlNameOutput struct { - MyMap map[string]*string + MyMap map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlName_test.go b/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlName_test.go index 51e6fa520cf..2c6615f106e 100644 --- a/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlName_test.go +++ b/internal/protocoltest/restxml/api_op_FlattenedXmlMapWithXmlName_test.go @@ -8,7 +8,6 @@ import ( "github.com/aws/aws-sdk-go-v2/aws" awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" "github.com/awslabs/smithy-go/middleware" - "github.com/awslabs/smithy-go/ptr" smithyrand "github.com/awslabs/smithy-go/rand" smithytesting "github.com/awslabs/smithy-go/testing" smithyhttp "github.com/awslabs/smithy-go/transport/http" @@ -38,9 +37,9 @@ func TestClient_FlattenedXmlMapWithXmlName_awsRestxmlSerialize(t *testing.T) { // Serializes flattened XML maps in requests that have xmlName on members "FlattenedXmlMapWithXmlName": { Params: &FlattenedXmlMapWithXmlNameInput{ - MyMap: map[string]*string{ - "a": ptr.String("A"), - "b": ptr.String("B"), + MyMap: map[string]string{ + "a": "A", + "b": "B", }, }, ExpectMethod: "POST", @@ -156,9 +155,9 @@ func TestClient_FlattenedXmlMapWithXmlName_awsRestxmlDeserialize(t *testing.T) { `), ExpectResult: &FlattenedXmlMapWithXmlNameOutput{ - MyMap: map[string]*string{ - "a": ptr.String("A"), - "b": ptr.String("B"), + MyMap: map[string]string{ + "a": "A", + "b": "B", }, }, }, diff --git a/internal/protocoltest/restxml/api_op_HttpPrefixHeaders.go b/internal/protocoltest/restxml/api_op_HttpPrefixHeaders.go index 10aa437295b..d29911e4181 100644 --- a/internal/protocoltest/restxml/api_op_HttpPrefixHeaders.go +++ b/internal/protocoltest/restxml/api_op_HttpPrefixHeaders.go @@ -28,13 +28,13 @@ func (c *Client) HttpPrefixHeaders(ctx context.Context, params *HttpPrefixHeader type HttpPrefixHeadersInput struct { Foo *string - FooMap map[string]*string + FooMap map[string]string } type HttpPrefixHeadersOutput struct { Foo *string - FooMap map[string]*string + FooMap map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/restxml/api_op_HttpPrefixHeaders_test.go b/internal/protocoltest/restxml/api_op_HttpPrefixHeaders_test.go index 68ec0ad59a2..de439d6d6a0 100644 --- a/internal/protocoltest/restxml/api_op_HttpPrefixHeaders_test.go +++ b/internal/protocoltest/restxml/api_op_HttpPrefixHeaders_test.go @@ -39,9 +39,9 @@ func TestClient_HttpPrefixHeaders_awsRestxmlSerialize(t *testing.T) { "HttpPrefixHeadersArePresent": { Params: &HttpPrefixHeadersInput{ Foo: ptr.String("Foo"), - FooMap: map[string]*string{ - "Abc": ptr.String("Abc value"), - "Def": ptr.String("Def value"), + FooMap: map[string]string{ + "Abc": "Abc value", + "Def": "Def value", }, }, ExpectMethod: "GET", @@ -60,7 +60,7 @@ func TestClient_HttpPrefixHeaders_awsRestxmlSerialize(t *testing.T) { "HttpPrefixHeadersAreNotPresent": { Params: &HttpPrefixHeadersInput{ Foo: ptr.String("Foo"), - FooMap: map[string]*string{}, + FooMap: map[string]string{}, }, ExpectMethod: "GET", ExpectURIPath: "/HttpPrefixHeaders", @@ -158,9 +158,9 @@ func TestClient_HttpPrefixHeaders_awsRestxmlDeserialize(t *testing.T) { Body: []byte(``), ExpectResult: &HttpPrefixHeadersOutput{ Foo: ptr.String("Foo"), - FooMap: map[string]*string{ - "Abc": ptr.String("Abc value"), - "Def": ptr.String("Def value"), + FooMap: map[string]string{ + "Abc": "Abc value", + "Def": "Def value", }, }, }, @@ -173,7 +173,7 @@ func TestClient_HttpPrefixHeaders_awsRestxmlDeserialize(t *testing.T) { Body: []byte(``), ExpectResult: &HttpPrefixHeadersOutput{ Foo: ptr.String("Foo"), - FooMap: map[string]*string{}, + FooMap: map[string]string{}, }, }, } diff --git a/internal/protocoltest/restxml/api_op_InputAndOutputWithHeaders.go b/internal/protocoltest/restxml/api_op_InputAndOutputWithHeaders.go index d2dd706f3d4..86d180467d1 100644 --- a/internal/protocoltest/restxml/api_op_InputAndOutputWithHeaders.go +++ b/internal/protocoltest/restxml/api_op_InputAndOutputWithHeaders.go @@ -29,7 +29,7 @@ func (c *Client) InputAndOutputWithHeaders(ctx context.Context, params *InputAnd } type InputAndOutputWithHeadersInput struct { - HeaderBooleanList []*bool + HeaderBooleanList []bool HeaderByte *int8 @@ -45,7 +45,7 @@ type InputAndOutputWithHeadersInput struct { HeaderInteger *int32 - HeaderIntegerList []*int32 + HeaderIntegerList []int32 HeaderLong *int64 @@ -53,17 +53,17 @@ type InputAndOutputWithHeadersInput struct { HeaderString *string - HeaderStringList []*string + HeaderStringList []string - HeaderStringSet []*string + HeaderStringSet []string - HeaderTimestampList []*time.Time + HeaderTimestampList []time.Time HeaderTrueBool *bool } type InputAndOutputWithHeadersOutput struct { - HeaderBooleanList []*bool + HeaderBooleanList []bool HeaderByte *int8 @@ -79,7 +79,7 @@ type InputAndOutputWithHeadersOutput struct { HeaderInteger *int32 - HeaderIntegerList []*int32 + HeaderIntegerList []int32 HeaderLong *int64 @@ -87,11 +87,11 @@ type InputAndOutputWithHeadersOutput struct { HeaderString *string - HeaderStringList []*string + HeaderStringList []string - HeaderStringSet []*string + HeaderStringSet []string - HeaderTimestampList []*time.Time + HeaderTimestampList []time.Time HeaderTrueBool *bool diff --git a/internal/protocoltest/restxml/api_op_InputAndOutputWithHeaders_test.go b/internal/protocoltest/restxml/api_op_InputAndOutputWithHeaders_test.go index 169faa16175..dd95e4c56d4 100644 --- a/internal/protocoltest/restxml/api_op_InputAndOutputWithHeaders_test.go +++ b/internal/protocoltest/restxml/api_op_InputAndOutputWithHeaders_test.go @@ -42,15 +42,15 @@ func TestClient_InputAndOutputWithHeaders_awsRestxmlSerialize(t *testing.T) { "InputAndOutputWithStringHeaders": { Params: &InputAndOutputWithHeadersInput{ HeaderString: ptr.String("Hello"), - HeaderStringList: []*string{ - ptr.String("a"), - ptr.String("b"), - ptr.String("c"), + HeaderStringList: []string{ + "a", + "b", + "c", }, - HeaderStringSet: []*string{ - ptr.String("a"), - ptr.String("b"), - ptr.String("c"), + HeaderStringSet: []string{ + "a", + "b", + "c", }, }, ExpectMethod: "POST", @@ -74,10 +74,10 @@ func TestClient_InputAndOutputWithHeaders_awsRestxmlSerialize(t *testing.T) { HeaderLong: ptr.Int64(123), HeaderFloat: ptr.Float32(1.1), HeaderDouble: ptr.Float64(1.1), - HeaderIntegerList: []*int32{ - ptr.Int32(1), - ptr.Int32(2), - ptr.Int32(3), + HeaderIntegerList: []int32{ + 1, + 2, + 3, }, }, ExpectMethod: "POST", @@ -101,10 +101,10 @@ func TestClient_InputAndOutputWithHeaders_awsRestxmlSerialize(t *testing.T) { Params: &InputAndOutputWithHeadersInput{ HeaderTrueBool: ptr.Bool(true), HeaderFalseBool: ptr.Bool(false), - HeaderBooleanList: []*bool{ - ptr.Bool(true), - ptr.Bool(false), - ptr.Bool(true), + HeaderBooleanList: []bool{ + true, + false, + true, }, }, ExpectMethod: "POST", @@ -122,9 +122,9 @@ func TestClient_InputAndOutputWithHeaders_awsRestxmlSerialize(t *testing.T) { // Tests requests with timestamp header bindings "InputAndOutputWithTimestampHeaders": { Params: &InputAndOutputWithHeadersInput{ - HeaderTimestampList: []*time.Time{ - ptr.Time(smithytime.ParseEpochSeconds(1576540098)), - ptr.Time(smithytime.ParseEpochSeconds(1576540098)), + HeaderTimestampList: []time.Time{ + smithytime.ParseEpochSeconds(1576540098), + smithytime.ParseEpochSeconds(1576540098), }, }, ExpectMethod: "POST", @@ -244,15 +244,15 @@ func TestClient_InputAndOutputWithHeaders_awsRestxmlDeserialize(t *testing.T) { Body: []byte(``), ExpectResult: &InputAndOutputWithHeadersOutput{ HeaderString: ptr.String("Hello"), - HeaderStringList: []*string{ - ptr.String("a"), - ptr.String("b"), - ptr.String("c"), + HeaderStringList: []string{ + "a", + "b", + "c", }, - HeaderStringSet: []*string{ - ptr.String("a"), - ptr.String("b"), - ptr.String("c"), + HeaderStringSet: []string{ + "a", + "b", + "c", }, }, }, @@ -276,10 +276,10 @@ func TestClient_InputAndOutputWithHeaders_awsRestxmlDeserialize(t *testing.T) { HeaderLong: ptr.Int64(123), HeaderFloat: ptr.Float32(1.1), HeaderDouble: ptr.Float64(1.1), - HeaderIntegerList: []*int32{ - ptr.Int32(1), - ptr.Int32(2), - ptr.Int32(3), + HeaderIntegerList: []int32{ + 1, + 2, + 3, }, }, }, @@ -295,10 +295,10 @@ func TestClient_InputAndOutputWithHeaders_awsRestxmlDeserialize(t *testing.T) { ExpectResult: &InputAndOutputWithHeadersOutput{ HeaderTrueBool: ptr.Bool(true), HeaderFalseBool: ptr.Bool(false), - HeaderBooleanList: []*bool{ - ptr.Bool(true), - ptr.Bool(false), - ptr.Bool(true), + HeaderBooleanList: []bool{ + true, + false, + true, }, }, }, @@ -310,9 +310,9 @@ func TestClient_InputAndOutputWithHeaders_awsRestxmlDeserialize(t *testing.T) { }, Body: []byte(``), ExpectResult: &InputAndOutputWithHeadersOutput{ - HeaderTimestampList: []*time.Time{ - ptr.Time(smithytime.ParseEpochSeconds(1576540098)), - ptr.Time(smithytime.ParseEpochSeconds(1576540098)), + HeaderTimestampList: []time.Time{ + smithytime.ParseEpochSeconds(1576540098), + smithytime.ParseEpochSeconds(1576540098), }, }, }, diff --git a/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersClient.go b/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersClient.go index 9e044c8b709..9a263cf58b0 100644 --- a/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersClient.go +++ b/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersClient.go @@ -30,7 +30,7 @@ type NullAndEmptyHeadersClientInput struct { B *string - C []*string + C []string } type NullAndEmptyHeadersClientOutput struct { @@ -38,7 +38,7 @@ type NullAndEmptyHeadersClientOutput struct { B *string - C []*string + C []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersClient_test.go b/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersClient_test.go index c69ebb4b037..d65076b5ee5 100644 --- a/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersClient_test.go +++ b/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersClient_test.go @@ -38,7 +38,7 @@ func TestClient_NullAndEmptyHeadersClient_awsRestxmlSerialize(t *testing.T) { Params: &NullAndEmptyHeadersClientInput{ A: nil, B: ptr.String(""), - C: []*string{}, + C: []string{}, }, ExpectMethod: "GET", ExpectURIPath: "/NullAndEmptyHeadersClient", diff --git a/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersServer.go b/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersServer.go index 1662c41e0f8..caa74aa7c77 100644 --- a/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersServer.go +++ b/internal/protocoltest/restxml/api_op_NullAndEmptyHeadersServer.go @@ -30,7 +30,7 @@ type NullAndEmptyHeadersServerInput struct { B *string - C []*string + C []string } type NullAndEmptyHeadersServerOutput struct { @@ -38,7 +38,7 @@ type NullAndEmptyHeadersServerOutput struct { B *string - C []*string + C []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/restxml/api_op_XmlEmptyLists.go b/internal/protocoltest/restxml/api_op_XmlEmptyLists.go index d89343a1f10..21508ad8390 100644 --- a/internal/protocoltest/restxml/api_op_XmlEmptyLists.go +++ b/internal/protocoltest/restxml/api_op_XmlEmptyLists.go @@ -27,53 +27,53 @@ func (c *Client) XmlEmptyLists(ctx context.Context, params *XmlEmptyListsInput, } type XmlEmptyListsInput struct { - BooleanList []*bool + BooleanList []bool EnumList []types.FooEnum - FlattenedList []*string + FlattenedList []string - FlattenedList2 []*string + FlattenedList2 []string - IntegerList []*int32 + IntegerList []int32 // A list of lists of strings. - NestedStringList [][]*string + NestedStringList [][]string - RenamedListMembers []*string + RenamedListMembers []string - StringList []*string + StringList []string - StringSet []*string + StringSet []string - StructureList []*types.StructureListMember + StructureList []types.StructureListMember - TimestampList []*time.Time + TimestampList []time.Time } type XmlEmptyListsOutput struct { - BooleanList []*bool + BooleanList []bool EnumList []types.FooEnum - FlattenedList []*string + FlattenedList []string - FlattenedList2 []*string + FlattenedList2 []string - IntegerList []*int32 + IntegerList []int32 // A list of lists of strings. - NestedStringList [][]*string + NestedStringList [][]string - RenamedListMembers []*string + RenamedListMembers []string - StringList []*string + StringList []string - StringSet []*string + StringSet []string - StructureList []*types.StructureListMember + StructureList []types.StructureListMember - TimestampList []*time.Time + TimestampList []time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/restxml/api_op_XmlEmptyLists_test.go b/internal/protocoltest/restxml/api_op_XmlEmptyLists_test.go index a29bc274547..8b671a08b49 100644 --- a/internal/protocoltest/restxml/api_op_XmlEmptyLists_test.go +++ b/internal/protocoltest/restxml/api_op_XmlEmptyLists_test.go @@ -37,8 +37,8 @@ func TestClient_XmlEmptyLists_awsRestxmlSerialize(t *testing.T) { // Serializes Empty XML lists "XmlEmptyLists": { Params: &XmlEmptyListsInput{ - StringList: []*string{}, - StringSet: []*string{}, + StringList: []string{}, + StringSet: []string{}, }, ExpectMethod: "PUT", ExpectURIPath: "/XmlEmptyLists", @@ -143,8 +143,8 @@ func TestClient_XmlEmptyLists_awsRestxmlDeserialize(t *testing.T) { `), ExpectResult: &XmlEmptyListsOutput{ - StringList: []*string{}, - StringSet: []*string{}, + StringList: []string{}, + StringSet: []string{}, }, }, } diff --git a/internal/protocoltest/restxml/api_op_XmlEmptyMaps.go b/internal/protocoltest/restxml/api_op_XmlEmptyMaps.go index 2c37d3d70be..e1982041d89 100644 --- a/internal/protocoltest/restxml/api_op_XmlEmptyMaps.go +++ b/internal/protocoltest/restxml/api_op_XmlEmptyMaps.go @@ -26,11 +26,11 @@ func (c *Client) XmlEmptyMaps(ctx context.Context, params *XmlEmptyMapsInput, op } type XmlEmptyMapsInput struct { - MyMap map[string]*types.GreetingStruct + MyMap map[string]types.GreetingStruct } type XmlEmptyMapsOutput struct { - MyMap map[string]*types.GreetingStruct + MyMap map[string]types.GreetingStruct // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/restxml/api_op_XmlEmptyMaps_test.go b/internal/protocoltest/restxml/api_op_XmlEmptyMaps_test.go index cc9133a5366..e7f8578931e 100644 --- a/internal/protocoltest/restxml/api_op_XmlEmptyMaps_test.go +++ b/internal/protocoltest/restxml/api_op_XmlEmptyMaps_test.go @@ -38,7 +38,7 @@ func TestClient_XmlEmptyMaps_awsRestxmlSerialize(t *testing.T) { // Serializes Empty XML maps "XmlEmptyMaps": { Params: &XmlEmptyMapsInput{ - MyMap: map[string]*types.GreetingStruct{}, + MyMap: map[string]types.GreetingStruct{}, }, ExpectMethod: "POST", ExpectURIPath: "/XmlEmptyMaps", @@ -141,7 +141,7 @@ func TestClient_XmlEmptyMaps_awsRestxmlDeserialize(t *testing.T) { `), ExpectResult: &XmlEmptyMapsOutput{ - MyMap: map[string]*types.GreetingStruct{}, + MyMap: map[string]types.GreetingStruct{}, }, }, // Deserializes Empty Self-closed XML maps @@ -156,7 +156,7 @@ func TestClient_XmlEmptyMaps_awsRestxmlDeserialize(t *testing.T) { `), ExpectResult: &XmlEmptyMapsOutput{ - MyMap: map[string]*types.GreetingStruct{}, + MyMap: map[string]types.GreetingStruct{}, }, }, } diff --git a/internal/protocoltest/restxml/api_op_XmlLists.go b/internal/protocoltest/restxml/api_op_XmlLists.go index ad020f610a4..49bc09fea0b 100644 --- a/internal/protocoltest/restxml/api_op_XmlLists.go +++ b/internal/protocoltest/restxml/api_op_XmlLists.go @@ -45,53 +45,53 @@ func (c *Client) XmlLists(ctx context.Context, params *XmlListsInput, optFns ... } type XmlListsInput struct { - BooleanList []*bool + BooleanList []bool EnumList []types.FooEnum - FlattenedList []*string + FlattenedList []string - FlattenedList2 []*string + FlattenedList2 []string - IntegerList []*int32 + IntegerList []int32 // A list of lists of strings. - NestedStringList [][]*string + NestedStringList [][]string - RenamedListMembers []*string + RenamedListMembers []string - StringList []*string + StringList []string - StringSet []*string + StringSet []string - StructureList []*types.StructureListMember + StructureList []types.StructureListMember - TimestampList []*time.Time + TimestampList []time.Time } type XmlListsOutput struct { - BooleanList []*bool + BooleanList []bool EnumList []types.FooEnum - FlattenedList []*string + FlattenedList []string - FlattenedList2 []*string + FlattenedList2 []string - IntegerList []*int32 + IntegerList []int32 // A list of lists of strings. - NestedStringList [][]*string + NestedStringList [][]string - RenamedListMembers []*string + RenamedListMembers []string - StringList []*string + StringList []string - StringSet []*string + StringSet []string - StructureList []*types.StructureListMember + StructureList []types.StructureListMember - TimestampList []*time.Time + TimestampList []time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/restxml/api_op_XmlLists_test.go b/internal/protocoltest/restxml/api_op_XmlLists_test.go index 948b3cbd69c..398c8677fa6 100644 --- a/internal/protocoltest/restxml/api_op_XmlLists_test.go +++ b/internal/protocoltest/restxml/api_op_XmlLists_test.go @@ -41,53 +41,53 @@ func TestClient_XmlLists_awsRestxmlSerialize(t *testing.T) { // Tests for XML list serialization "XmlLists": { Params: &XmlListsInput{ - StringList: []*string{ - ptr.String("foo"), - ptr.String("bar"), + StringList: []string{ + "foo", + "bar", }, - StringSet: []*string{ - ptr.String("foo"), - ptr.String("bar"), + StringSet: []string{ + "foo", + "bar", }, - IntegerList: []*int32{ - ptr.Int32(1), - ptr.Int32(2), + IntegerList: []int32{ + 1, + 2, }, - BooleanList: []*bool{ - ptr.Bool(true), - ptr.Bool(false), + BooleanList: []bool{ + true, + false, }, - TimestampList: []*time.Time{ - ptr.Time(smithytime.ParseEpochSeconds(1398796238)), - ptr.Time(smithytime.ParseEpochSeconds(1398796238)), + TimestampList: []time.Time{ + smithytime.ParseEpochSeconds(1398796238), + smithytime.ParseEpochSeconds(1398796238), }, EnumList: []types.FooEnum{ types.FooEnum("Foo"), types.FooEnum("0"), }, - NestedStringList: [][]*string{ + NestedStringList: [][]string{ { - ptr.String("foo"), - ptr.String("bar"), + "foo", + "bar", }, { - ptr.String("baz"), - ptr.String("qux"), + "baz", + "qux", }, }, - RenamedListMembers: []*string{ - ptr.String("foo"), - ptr.String("bar"), + RenamedListMembers: []string{ + "foo", + "bar", }, - FlattenedList: []*string{ - ptr.String("hi"), - ptr.String("bye"), + FlattenedList: []string{ + "hi", + "bye", }, - FlattenedList2: []*string{ - ptr.String("yep"), - ptr.String("nope"), + FlattenedList2: []string{ + "yep", + "nope", }, - StructureList: []*types.StructureListMember{ + StructureList: []types.StructureListMember{ { A: ptr.String("1"), B: ptr.String("2"), @@ -301,53 +301,53 @@ func TestClient_XmlLists_awsRestxmlDeserialize(t *testing.T) { `), ExpectResult: &XmlListsOutput{ - StringList: []*string{ - ptr.String("foo"), - ptr.String("bar"), + StringList: []string{ + "foo", + "bar", }, - StringSet: []*string{ - ptr.String("foo"), - ptr.String("bar"), + StringSet: []string{ + "foo", + "bar", }, - IntegerList: []*int32{ - ptr.Int32(1), - ptr.Int32(2), + IntegerList: []int32{ + 1, + 2, }, - BooleanList: []*bool{ - ptr.Bool(true), - ptr.Bool(false), + BooleanList: []bool{ + true, + false, }, - TimestampList: []*time.Time{ - ptr.Time(smithytime.ParseEpochSeconds(1398796238)), - ptr.Time(smithytime.ParseEpochSeconds(1398796238)), + TimestampList: []time.Time{ + smithytime.ParseEpochSeconds(1398796238), + smithytime.ParseEpochSeconds(1398796238), }, EnumList: []types.FooEnum{ types.FooEnum("Foo"), types.FooEnum("0"), }, - NestedStringList: [][]*string{ + NestedStringList: [][]string{ { - ptr.String("foo"), - ptr.String("bar"), + "foo", + "bar", }, { - ptr.String("baz"), - ptr.String("qux"), + "baz", + "qux", }, }, - RenamedListMembers: []*string{ - ptr.String("foo"), - ptr.String("bar"), + RenamedListMembers: []string{ + "foo", + "bar", }, - FlattenedList: []*string{ - ptr.String("hi"), - ptr.String("bye"), + FlattenedList: []string{ + "hi", + "bye", }, - FlattenedList2: []*string{ - ptr.String("yep"), - ptr.String("nope"), + FlattenedList2: []string{ + "yep", + "nope", }, - StructureList: []*types.StructureListMember{ + StructureList: []types.StructureListMember{ { A: ptr.String("1"), B: ptr.String("2"), diff --git a/internal/protocoltest/restxml/api_op_XmlMaps.go b/internal/protocoltest/restxml/api_op_XmlMaps.go index 71de5207aa6..300efdbc22a 100644 --- a/internal/protocoltest/restxml/api_op_XmlMaps.go +++ b/internal/protocoltest/restxml/api_op_XmlMaps.go @@ -27,11 +27,11 @@ func (c *Client) XmlMaps(ctx context.Context, params *XmlMapsInput, optFns ...fu } type XmlMapsInput struct { - MyMap map[string]*types.GreetingStruct + MyMap map[string]types.GreetingStruct } type XmlMapsOutput struct { - MyMap map[string]*types.GreetingStruct + MyMap map[string]types.GreetingStruct // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/restxml/api_op_XmlMapsXmlName.go b/internal/protocoltest/restxml/api_op_XmlMapsXmlName.go index 00213603b84..e867df5df53 100644 --- a/internal/protocoltest/restxml/api_op_XmlMapsXmlName.go +++ b/internal/protocoltest/restxml/api_op_XmlMapsXmlName.go @@ -26,11 +26,11 @@ func (c *Client) XmlMapsXmlName(ctx context.Context, params *XmlMapsXmlNameInput } type XmlMapsXmlNameInput struct { - MyMap map[string]*types.GreetingStruct + MyMap map[string]types.GreetingStruct } type XmlMapsXmlNameOutput struct { - MyMap map[string]*types.GreetingStruct + MyMap map[string]types.GreetingStruct // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/internal/protocoltest/restxml/api_op_XmlMapsXmlName_test.go b/internal/protocoltest/restxml/api_op_XmlMapsXmlName_test.go index d8ee0b00274..cdfbc47e4f3 100644 --- a/internal/protocoltest/restxml/api_op_XmlMapsXmlName_test.go +++ b/internal/protocoltest/restxml/api_op_XmlMapsXmlName_test.go @@ -39,7 +39,7 @@ func TestClient_XmlMapsXmlName_awsRestxmlSerialize(t *testing.T) { // Serializes XML maps that have xmlName on members "XmlMapsXmlName": { Params: &XmlMapsXmlNameInput{ - MyMap: map[string]*types.GreetingStruct{ + MyMap: map[string]types.GreetingStruct{ "foo": { Hi: ptr.String("there"), }, @@ -175,7 +175,7 @@ func TestClient_XmlMapsXmlName_awsRestxmlDeserialize(t *testing.T) { `), ExpectResult: &XmlMapsXmlNameOutput{ - MyMap: map[string]*types.GreetingStruct{ + MyMap: map[string]types.GreetingStruct{ "foo": { Hi: ptr.String("there"), }, diff --git a/internal/protocoltest/restxml/api_op_XmlMaps_test.go b/internal/protocoltest/restxml/api_op_XmlMaps_test.go index 1e7e2e36e2a..c1d79cced29 100644 --- a/internal/protocoltest/restxml/api_op_XmlMaps_test.go +++ b/internal/protocoltest/restxml/api_op_XmlMaps_test.go @@ -39,7 +39,7 @@ func TestClient_XmlMaps_awsRestxmlSerialize(t *testing.T) { // Tests for XML map serialization "XmlMaps": { Params: &XmlMapsInput{ - MyMap: map[string]*types.GreetingStruct{ + MyMap: map[string]types.GreetingStruct{ "foo": { Hi: ptr.String("there"), }, @@ -175,7 +175,7 @@ func TestClient_XmlMaps_awsRestxmlDeserialize(t *testing.T) { `), ExpectResult: &XmlMapsOutput{ - MyMap: map[string]*types.GreetingStruct{ + MyMap: map[string]types.GreetingStruct{ "foo": { Hi: ptr.String("there"), }, diff --git a/internal/protocoltest/restxml/api_op_XmlNamespaces_test.go b/internal/protocoltest/restxml/api_op_XmlNamespaces_test.go index 7fb7607d868..b0270e0d112 100644 --- a/internal/protocoltest/restxml/api_op_XmlNamespaces_test.go +++ b/internal/protocoltest/restxml/api_op_XmlNamespaces_test.go @@ -41,9 +41,9 @@ func TestClient_XmlNamespaces_awsRestxmlSerialize(t *testing.T) { Params: &XmlNamespacesInput{ Nested: &types.XmlNamespaceNested{ Foo: ptr.String("Foo"), - Values: []*string{ - ptr.String("Bar"), - ptr.String("Baz"), + Values: []string{ + "Bar", + "Baz", }, }, }, @@ -162,9 +162,9 @@ func TestClient_XmlNamespaces_awsRestxmlDeserialize(t *testing.T) { ExpectResult: &XmlNamespacesOutput{ Nested: &types.XmlNamespaceNested{ Foo: ptr.String("Foo"), - Values: []*string{ - ptr.String("Bar"), - ptr.String("Baz"), + Values: []string{ + "Bar", + "Baz", }, }, }, diff --git a/internal/protocoltest/restxml/deserializers.go b/internal/protocoltest/restxml/deserializers.go index be10eea6d1d..7874be4d268 100644 --- a/internal/protocoltest/restxml/deserializers.go +++ b/internal/protocoltest/restxml/deserializers.go @@ -1431,10 +1431,10 @@ func awsRestxml_deserializeOpHttpBindingsHttpPrefixHeadersOutput(v *HttpPrefixHe for headerKey, headerValues := range response.Header { if lenPrefix := len("X-Foo-"); len(headerKey) >= lenPrefix && strings.EqualFold(headerKey[:lenPrefix], "X-Foo-") { if v.FooMap == nil { - v.FooMap = map[string]*string{} + v.FooMap = map[string]string{} } headerValues[0] = strings.TrimSpace(headerValues[0]) - v.FooMap[headerKey[lenPrefix:]] = ptr.String(headerValues[0]) + v.FooMap[headerKey[lenPrefix:]] = headerValues[0] } } @@ -1839,7 +1839,7 @@ func awsRestxml_deserializeOpDocumentIgnoreQueryParamsInResponseOutput(v **Ignor } if val != nil { xtv := string(val) - sv.Baz = &xtv + sv.Baz = ptr.String(xtv) } default: @@ -1934,14 +1934,14 @@ func awsRestxml_deserializeOpHttpBindingsInputAndOutputWithHeadersOutput(v *Inpu return err } } - var list []*bool + var list []bool for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) vv, err := strconv.ParseBool(headerValuesVal) if err != nil { return err } - list = append(list, ptr.Bool(vv)) + list = append(list, vv) } v.HeaderBooleanList = list } @@ -2020,14 +2020,14 @@ func awsRestxml_deserializeOpHttpBindingsInputAndOutputWithHeadersOutput(v *Inpu return err } } - var list []*int32 + var list []int32 for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) vv, err := strconv.ParseInt(headerValuesVal, 0, 32) if err != nil { return err } - list = append(list, ptr.Int32(int32(vv))) + list = append(list, int32(vv)) } v.HeaderIntegerList = list } @@ -2063,10 +2063,10 @@ func awsRestxml_deserializeOpHttpBindingsInputAndOutputWithHeadersOutput(v *Inpu return err } } - var list []*string + var list []string for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) - list = append(list, ptr.String(headerValuesVal)) + list = append(list, headerValuesVal) } v.HeaderStringList = list } @@ -2079,10 +2079,10 @@ func awsRestxml_deserializeOpHttpBindingsInputAndOutputWithHeadersOutput(v *Inpu return err } } - var list []*string + var list []string for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) - list = append(list, ptr.String(headerValuesVal)) + list = append(list, headerValuesVal) } v.HeaderStringSet = list } @@ -2095,14 +2095,14 @@ func awsRestxml_deserializeOpHttpBindingsInputAndOutputWithHeadersOutput(v *Inpu return err } } - var list []*time.Time + var list []time.Time for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) t, err := smithytime.ParseHTTPDate(headerValuesVal) if err != nil { return err } - list = append(list, ptr.Time(t)) + list = append(list, t) } v.HeaderTimestampList = list } @@ -2339,10 +2339,10 @@ func awsRestxml_deserializeOpHttpBindingsNullAndEmptyHeadersClientOutput(v *Null return err } } - var list []*string + var list []string for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) - list = append(list, ptr.String(headerValuesVal)) + list = append(list, headerValuesVal) } v.C = list } @@ -2442,10 +2442,10 @@ func awsRestxml_deserializeOpHttpBindingsNullAndEmptyHeadersServerOutput(v *Null return err } } - var list []*string + var list []string for _, headerValuesVal := range headerValues { headerValuesVal = strings.TrimSpace(headerValuesVal) - list = append(list, ptr.String(headerValuesVal)) + list = append(list, headerValuesVal) } v.C = list } @@ -2873,7 +2873,7 @@ func awsRestxml_deserializeOpDocumentSimpleScalarPropertiesOutput(v **SimpleScal if err != nil { return err } - sv.DoubleValue = &f64 + sv.DoubleValue = ptr.Float64(f64) } case strings.EqualFold("falseBooleanValue", t.Name.Local): @@ -2889,7 +2889,7 @@ func awsRestxml_deserializeOpDocumentSimpleScalarPropertiesOutput(v **SimpleScal if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FalseBooleanValue = &xtv + sv.FalseBooleanValue = ptr.Bool(xtv) } case strings.EqualFold("floatValue", t.Name.Local): @@ -2940,7 +2940,7 @@ func awsRestxml_deserializeOpDocumentSimpleScalarPropertiesOutput(v **SimpleScal if err != nil { return err } - sv.LongValue = &i64 + sv.LongValue = ptr.Int64(i64) } case strings.EqualFold("shortValue", t.Name.Local): @@ -2973,7 +2973,7 @@ func awsRestxml_deserializeOpDocumentSimpleScalarPropertiesOutput(v **SimpleScal } if val != nil { xtv := string(val) - sv.StringValue = &xtv + sv.StringValue = ptr.String(xtv) } case strings.EqualFold("trueBooleanValue", t.Name.Local): @@ -2989,7 +2989,7 @@ func awsRestxml_deserializeOpDocumentSimpleScalarPropertiesOutput(v **SimpleScal if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.TrueBooleanValue = &xtv + sv.TrueBooleanValue = ptr.Bool(xtv) } default: @@ -3253,7 +3253,7 @@ func awsRestxml_deserializeOpDocumentXmlAttributesOutput(v **XmlAttributesOutput val := []byte(attr.Value) if val != nil { xtv := string(val) - sv.Attr = &xtv + sv.Attr = ptr.String(xtv) } } @@ -3282,7 +3282,7 @@ func awsRestxml_deserializeOpDocumentXmlAttributesOutput(v **XmlAttributesOutput } if val != nil { xtv := string(val) - sv.Foo = &xtv + sv.Foo = ptr.String(xtv) } default: @@ -4162,7 +4162,7 @@ func awsRestxml_deserializeOpDocumentXmlEmptyStringsOutput(v **XmlEmptyStringsOu } if val != nil { xtv := string(val) - sv.EmptyString = &xtv + sv.EmptyString = ptr.String(xtv) } default: @@ -5064,7 +5064,7 @@ func awsRestxml_deserializeOpDocumentXmlTimestampsOutput(v **XmlTimestampsOutput if err != nil { return err } - sv.DateTime = &t + sv.DateTime = ptr.Time(t) } case strings.EqualFold("epochSeconds", t.Name.Local): @@ -5098,7 +5098,7 @@ func awsRestxml_deserializeOpDocumentXmlTimestampsOutput(v **XmlTimestampsOutput if err != nil { return err } - sv.HttpDate = &t + sv.HttpDate = ptr.Time(t) } case strings.EqualFold("normal", t.Name.Local): @@ -5115,7 +5115,7 @@ func awsRestxml_deserializeOpDocumentXmlTimestampsOutput(v **XmlTimestampsOutput if err != nil { return err } - sv.Normal = &t + sv.Normal = ptr.Time(t) } default: @@ -5244,7 +5244,7 @@ func awsRestxml_deserializeDocumentComplexError(v **types.ComplexError, decoder } if val != nil { xtv := string(val) - sv.Header = &xtv + sv.Header = ptr.String(xtv) } case strings.EqualFold("Nested", t.Name.Local): @@ -5266,7 +5266,7 @@ func awsRestxml_deserializeDocumentComplexError(v **types.ComplexError, decoder } if val != nil { xtv := string(val) - sv.TopLevel = &xtv + sv.TopLevel = ptr.String(xtv) } default: @@ -5314,7 +5314,7 @@ func awsRestxml_deserializeDocumentComplexNestedErrorData(v **types.ComplexNeste } if val != nil { xtv := string(val) - sv.Foo = &xtv + sv.Foo = ptr.String(xtv) } default: @@ -5327,13 +5327,13 @@ func awsRestxml_deserializeDocumentComplexNestedErrorData(v **types.ComplexNeste return nil } -func awsRestxml_deserializeDocumentFlattenedXmlMapWithXmlNameInputOutputMap(v *map[string]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentFlattenedXmlMapWithXmlNameInputOutputMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*string + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } @@ -5357,23 +5357,23 @@ func awsRestxml_deserializeDocumentFlattenedXmlMapWithXmlNameInputOutputMap(v *m return nil } -func awsRestxml_deserializeDocumentFlattenedXmlMapWithXmlNameInputOutputMapUnwrapped(v *map[string]*string, decoder smithyxml.NodeDecoder) error { - var sv map[string]*string +func awsRestxml_deserializeDocumentFlattenedXmlMapWithXmlNameInputOutputMapUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } - var ek *string - var ev *string + var ek string + var ev string for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -5383,14 +5383,11 @@ func awsRestxml_deserializeDocumentFlattenedXmlMapWithXmlNameInputOutputMapUnwra return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("V", t.Name.Local): @@ -5399,14 +5396,11 @@ func awsRestxml_deserializeDocumentFlattenedXmlMapWithXmlNameInputOutputMapUnwra return err } if done { - if val == nil { - ev = ptr.String("") - } break } if val != nil { xtv := string(val) - ev = &xtv + ev = xtv } default: @@ -5452,7 +5446,7 @@ func awsRestxml_deserializeDocumentInvalidGreeting(v **types.InvalidGreeting, de } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5500,7 +5494,7 @@ func awsRestxml_deserializeDocumentNestedPayload(v **types.NestedPayload, decode } if val != nil { xtv := string(val) - sv.Greeting = &xtv + sv.Greeting = ptr.String(xtv) } case strings.EqualFold("name", t.Name.Local): @@ -5516,7 +5510,7 @@ func awsRestxml_deserializeDocumentNestedPayload(v **types.NestedPayload, decode } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -5564,7 +5558,7 @@ func awsRestxml_deserializeDocumentPayloadWithXmlName(v **types.PayloadWithXmlNa } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -5612,7 +5606,7 @@ func awsRestxml_deserializeDocumentPayloadWithXmlNamespace(v **types.PayloadWith } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -5660,7 +5654,7 @@ func awsRestxml_deserializeDocumentPayloadWithXmlNamespaceAndPrefix(v **types.Pa } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -5708,7 +5702,7 @@ func awsRestxml_deserializeDocumentRecursiveShapesInputOutputNested1(v **types.R } if val != nil { xtv := string(val) - sv.Foo = &xtv + sv.Foo = ptr.String(xtv) } case strings.EqualFold("nested", t.Name.Local): @@ -5762,7 +5756,7 @@ func awsRestxml_deserializeDocumentRecursiveShapesInputOutputNested2(v **types.R } if val != nil { xtv := string(val) - sv.Bar = &xtv + sv.Bar = ptr.String(xtv) } case strings.EqualFold("recursiveMember", t.Name.Local): @@ -5781,13 +5775,13 @@ func awsRestxml_deserializeDocumentRecursiveShapesInputOutputNested2(v **types.R return nil } -func awsRestxml_deserializeDocumentRenamedListMembers(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentRenamedListMembers(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -5805,20 +5799,17 @@ func awsRestxml_deserializeDocumentRenamedListMembers(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -5831,17 +5822,17 @@ func awsRestxml_deserializeDocumentRenamedListMembers(v *[]*string, decoder smit return nil } -func awsRestxml_deserializeDocumentRenamedListMembersUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentRenamedListMembersUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -5849,27 +5840,24 @@ func awsRestxml_deserializeDocumentRenamedListMembersUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentStructureList(v *[]*types.StructureListMember, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentStructureList(v *[]types.StructureListMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StructureListMember + var sv []types.StructureListMember if *v == nil { - sv = make([]*types.StructureListMember, 0) + sv = make([]types.StructureListMember, 0) } else { sv = *v } @@ -5885,11 +5873,13 @@ func awsRestxml_deserializeDocumentStructureList(v *[]*types.StructureListMember } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.StructureListMember + var col types.StructureListMember nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentStructureListMember(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentStructureListMember(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5902,23 +5892,25 @@ func awsRestxml_deserializeDocumentStructureList(v *[]*types.StructureListMember return nil } -func awsRestxml_deserializeDocumentStructureListUnwrapped(v *[]*types.StructureListMember, decoder smithyxml.NodeDecoder) error { - var sv []*types.StructureListMember +func awsRestxml_deserializeDocumentStructureListUnwrapped(v *[]types.StructureListMember, decoder smithyxml.NodeDecoder) error { + var sv []types.StructureListMember if *v == nil { - sv = make([]*types.StructureListMember, 0) + sv = make([]types.StructureListMember, 0) } else { sv = *v } switch { default: - var mv *types.StructureListMember + var mv types.StructureListMember t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentStructureListMember(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentStructureListMember(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5959,7 +5951,7 @@ func awsRestxml_deserializeDocumentStructureListMember(v **types.StructureListMe } if val != nil { xtv := string(val) - sv.A = &xtv + sv.A = ptr.String(xtv) } case strings.EqualFold("other", t.Name.Local): @@ -5975,7 +5967,7 @@ func awsRestxml_deserializeDocumentStructureListMember(v **types.StructureListMe } if val != nil { xtv := string(val) - sv.B = &xtv + sv.B = ptr.String(xtv) } default: @@ -6005,7 +5997,7 @@ func awsRestxml_deserializeDocumentXmlAttributesInputOutput(v **types.XmlAttribu val := []byte(attr.Value) if val != nil { xtv := string(val) - sv.Attr = &xtv + sv.Attr = ptr.String(xtv) } } @@ -6034,7 +6026,7 @@ func awsRestxml_deserializeDocumentXmlAttributesInputOutput(v **types.XmlAttribu } if val != nil { xtv := string(val) - sv.Foo = &xtv + sv.Foo = ptr.String(xtv) } default: @@ -6047,13 +6039,13 @@ func awsRestxml_deserializeDocumentXmlAttributesInputOutput(v **types.XmlAttribu return nil } -func awsRestxml_deserializeDocumentXmlMapsInputOutputMap(v *map[string]*types.GreetingStruct, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentXmlMapsInputOutputMap(v *map[string]types.GreetingStruct, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*types.GreetingStruct + var sv map[string]types.GreetingStruct if *v == nil { - sv = make(map[string]*types.GreetingStruct, 0) + sv = make(map[string]types.GreetingStruct, 0) } else { sv = *v } @@ -6077,23 +6069,23 @@ func awsRestxml_deserializeDocumentXmlMapsInputOutputMap(v *map[string]*types.Gr return nil } -func awsRestxml_deserializeDocumentXmlMapsInputOutputMapUnwrapped(v *map[string]*types.GreetingStruct, decoder smithyxml.NodeDecoder) error { - var sv map[string]*types.GreetingStruct +func awsRestxml_deserializeDocumentXmlMapsInputOutputMapUnwrapped(v *map[string]types.GreetingStruct, decoder smithyxml.NodeDecoder) error { + var sv map[string]types.GreetingStruct if *v == nil { - sv = make(map[string]*types.GreetingStruct, 0) + sv = make(map[string]types.GreetingStruct, 0) } else { sv = *v } - var ek *string - var ev *types.GreetingStruct + var ek string + var ev types.GreetingStruct for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -6103,21 +6095,21 @@ func awsRestxml_deserializeDocumentXmlMapsInputOutputMapUnwrapped(v *map[string] return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentGreetingStruct(&ev, nodeDecoder); err != nil { + mapVar := ev + destAddr := &mapVar + if err := awsRestxml_deserializeDocumentGreetingStruct(&destAddr, nodeDecoder); err != nil { return err } + ev = *destAddr default: // Do nothing and ignore the unexpected tag element @@ -6127,13 +6119,13 @@ func awsRestxml_deserializeDocumentXmlMapsInputOutputMapUnwrapped(v *map[string] *v = sv return nil } -func awsRestxml_deserializeDocumentXmlMapsXmlNameInputOutputMap(v *map[string]*types.GreetingStruct, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentXmlMapsXmlNameInputOutputMap(v *map[string]types.GreetingStruct, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*types.GreetingStruct + var sv map[string]types.GreetingStruct if *v == nil { - sv = make(map[string]*types.GreetingStruct, 0) + sv = make(map[string]types.GreetingStruct, 0) } else { sv = *v } @@ -6157,23 +6149,23 @@ func awsRestxml_deserializeDocumentXmlMapsXmlNameInputOutputMap(v *map[string]*t return nil } -func awsRestxml_deserializeDocumentXmlMapsXmlNameInputOutputMapUnwrapped(v *map[string]*types.GreetingStruct, decoder smithyxml.NodeDecoder) error { - var sv map[string]*types.GreetingStruct +func awsRestxml_deserializeDocumentXmlMapsXmlNameInputOutputMapUnwrapped(v *map[string]types.GreetingStruct, decoder smithyxml.NodeDecoder) error { + var sv map[string]types.GreetingStruct if *v == nil { - sv = make(map[string]*types.GreetingStruct, 0) + sv = make(map[string]types.GreetingStruct, 0) } else { sv = *v } - var ek *string - var ev *types.GreetingStruct + var ek string + var ev types.GreetingStruct for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -6183,21 +6175,21 @@ func awsRestxml_deserializeDocumentXmlMapsXmlNameInputOutputMapUnwrapped(v *map[ return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("Setting", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentGreetingStruct(&ev, nodeDecoder); err != nil { + mapVar := ev + destAddr := &mapVar + if err := awsRestxml_deserializeDocumentGreetingStruct(&destAddr, nodeDecoder); err != nil { return err } + ev = *destAddr default: // Do nothing and ignore the unexpected tag element @@ -6207,13 +6199,13 @@ func awsRestxml_deserializeDocumentXmlMapsXmlNameInputOutputMapUnwrapped(v *map[ *v = sv return nil } -func awsRestxml_deserializeDocumentXmlNamespacedList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentXmlNamespacedList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -6231,20 +6223,17 @@ func awsRestxml_deserializeDocumentXmlNamespacedList(v *[]*string, decoder smith decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -6257,17 +6246,17 @@ func awsRestxml_deserializeDocumentXmlNamespacedList(v *[]*string, decoder smith return nil } -func awsRestxml_deserializeDocumentXmlNamespacedListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentXmlNamespacedListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -6275,14 +6264,11 @@ func awsRestxml_deserializeDocumentXmlNamespacedListUnwrapped(v *[]*string, deco return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -6324,7 +6310,7 @@ func awsRestxml_deserializeDocumentXmlNamespaceNested(v **types.XmlNamespaceNest } if val != nil { xtv := string(val) - sv.Foo = &xtv + sv.Foo = ptr.String(xtv) } case strings.EqualFold("values", t.Name.Local): @@ -6343,13 +6329,13 @@ func awsRestxml_deserializeDocumentXmlNamespaceNested(v **types.XmlNamespaceNest return nil } -func awsRestxml_deserializeDocumentBooleanList(v *[]*bool, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentBooleanList(v *[]bool, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*bool + var sv []bool if *v == nil { - sv = make([]*bool, 0) + sv = make([]bool, 0) } else { sv = *v } @@ -6367,7 +6353,7 @@ func awsRestxml_deserializeDocumentBooleanList(v *[]*bool, decoder smithyxml.Nod decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *bool + var col bool val, done, err := decoder.Value() if err != nil { return err @@ -6380,7 +6366,7 @@ func awsRestxml_deserializeDocumentBooleanList(v *[]*bool, decoder smithyxml.Nod if err != nil { return fmt.Errorf("expected PrimitiveBoolean to be of type *bool, got %T instead", val) } - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -6393,17 +6379,17 @@ func awsRestxml_deserializeDocumentBooleanList(v *[]*bool, decoder smithyxml.Nod return nil } -func awsRestxml_deserializeDocumentBooleanListUnwrapped(v *[]*bool, decoder smithyxml.NodeDecoder) error { - var sv []*bool +func awsRestxml_deserializeDocumentBooleanListUnwrapped(v *[]bool, decoder smithyxml.NodeDecoder) error { + var sv []bool if *v == nil { - sv = make([]*bool, 0) + sv = make([]bool, 0) } else { sv = *v } switch { default: - var mv *bool + var mv bool t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -6418,7 +6404,7 @@ func awsRestxml_deserializeDocumentBooleanListUnwrapped(v *[]*bool, decoder smit if err != nil { return fmt.Errorf("expected PrimitiveBoolean to be of type *bool, got %T instead", val) } - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -6539,7 +6525,7 @@ func awsRestxml_deserializeDocumentFooEnumMapUnwrapped(v *map[string]types.FooEn sv = *v } - var ek *string + var ek string var ev types.FooEnum for { t, done, err := decoder.Token() @@ -6547,7 +6533,7 @@ func awsRestxml_deserializeDocumentFooEnumMapUnwrapped(v *map[string]types.FooEn return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -6557,14 +6543,11 @@ func awsRestxml_deserializeDocumentFooEnumMapUnwrapped(v *map[string]types.FooEn return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): @@ -6699,7 +6682,7 @@ func awsRestxml_deserializeDocumentGreetingStruct(v **types.GreetingStruct, deco } if val != nil { xtv := string(val) - sv.Hi = &xtv + sv.Hi = ptr.String(xtv) } default: @@ -6712,13 +6695,13 @@ func awsRestxml_deserializeDocumentGreetingStruct(v **types.GreetingStruct, deco return nil } -func awsRestxml_deserializeDocumentIntegerList(v *[]*int32, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentIntegerList(v *[]int32, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*int32 + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } @@ -6736,7 +6719,7 @@ func awsRestxml_deserializeDocumentIntegerList(v *[]*int32, decoder smithyxml.No decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *int32 + var col int32 val, done, err := decoder.Value() if err != nil { return err @@ -6750,7 +6733,7 @@ func awsRestxml_deserializeDocumentIntegerList(v *[]*int32, decoder smithyxml.No if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } sv = append(sv, col) } else { @@ -6763,17 +6746,17 @@ func awsRestxml_deserializeDocumentIntegerList(v *[]*int32, decoder smithyxml.No return nil } -func awsRestxml_deserializeDocumentIntegerListUnwrapped(v *[]*int32, decoder smithyxml.NodeDecoder) error { - var sv []*int32 +func awsRestxml_deserializeDocumentIntegerListUnwrapped(v *[]int32, decoder smithyxml.NodeDecoder) error { + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } switch { default: - var mv *int32 + var mv int32 t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -6789,20 +6772,20 @@ func awsRestxml_deserializeDocumentIntegerListUnwrapped(v *[]*int32, decoder smi if err != nil { return err } - mv = ptr.Int32(int32(i64)) + mv = int32(i64) } sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentNestedStringList(v *[][]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentNestedStringList(v *[][]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv [][]*string + var sv [][]string if *v == nil { - sv = make([][]*string, 0) + sv = make([][]string, 0) } else { sv = *v } @@ -6818,7 +6801,7 @@ func awsRestxml_deserializeDocumentNestedStringList(v *[][]*string, decoder smit } for { if strings.EqualFold("member", t.Name.Local) { - var col []*string + var col []string nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsRestxml_deserializeDocumentStringList(&col, nodeDecoder); err != nil { return err @@ -6835,17 +6818,17 @@ func awsRestxml_deserializeDocumentNestedStringList(v *[][]*string, decoder smit return nil } -func awsRestxml_deserializeDocumentNestedStringListUnwrapped(v *[][]*string, decoder smithyxml.NodeDecoder) error { - var sv [][]*string +func awsRestxml_deserializeDocumentNestedStringListUnwrapped(v *[][]string, decoder smithyxml.NodeDecoder) error { + var sv [][]string if *v == nil { - sv = make([][]*string, 0) + sv = make([][]string, 0) } else { sv = *v } switch { default: - var mv []*string + var mv []string t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) @@ -6857,13 +6840,13 @@ func awsRestxml_deserializeDocumentNestedStringListUnwrapped(v *[][]*string, dec *v = sv return nil } -func awsRestxml_deserializeDocumentStringList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentStringList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -6881,20 +6864,17 @@ func awsRestxml_deserializeDocumentStringList(v *[]*string, decoder smithyxml.No decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -6907,17 +6887,17 @@ func awsRestxml_deserializeDocumentStringList(v *[]*string, decoder smithyxml.No return nil } -func awsRestxml_deserializeDocumentStringListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -6925,27 +6905,24 @@ func awsRestxml_deserializeDocumentStringListUnwrapped(v *[]*string, decoder smi return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentStringSet(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentStringSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -6963,20 +6940,17 @@ func awsRestxml_deserializeDocumentStringSet(v *[]*string, decoder smithyxml.Nod decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -6989,17 +6963,17 @@ func awsRestxml_deserializeDocumentStringSet(v *[]*string, decoder smithyxml.Nod return nil } -func awsRestxml_deserializeDocumentStringSetUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentStringSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7007,27 +6981,24 @@ func awsRestxml_deserializeDocumentStringSetUnwrapped(v *[]*string, decoder smit return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentTimestampList(v *[]*time.Time, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTimestampList(v *[]time.Time, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*time.Time + var sv []time.Time if *v == nil { - sv = make([]*time.Time, 0) + sv = make([]time.Time, 0) } else { sv = *v } @@ -7045,7 +7016,7 @@ func awsRestxml_deserializeDocumentTimestampList(v *[]*time.Time, decoder smithy decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *time.Time + var col time.Time val, done, err := decoder.Value() if err != nil { return err @@ -7059,7 +7030,7 @@ func awsRestxml_deserializeDocumentTimestampList(v *[]*time.Time, decoder smithy if err != nil { return err } - col = &t + col = t } sv = append(sv, col) } else { @@ -7072,17 +7043,17 @@ func awsRestxml_deserializeDocumentTimestampList(v *[]*time.Time, decoder smithy return nil } -func awsRestxml_deserializeDocumentTimestampListUnwrapped(v *[]*time.Time, decoder smithyxml.NodeDecoder) error { - var sv []*time.Time +func awsRestxml_deserializeDocumentTimestampListUnwrapped(v *[]time.Time, decoder smithyxml.NodeDecoder) error { + var sv []time.Time if *v == nil { - sv = make([]*time.Time, 0) + sv = make([]time.Time, 0) } else { sv = *v } switch { default: - var mv *time.Time + var mv time.Time t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7098,7 +7069,7 @@ func awsRestxml_deserializeDocumentTimestampListUnwrapped(v *[]*time.Time, decod if err != nil { return err } - mv = &t + mv = t } sv = append(sv, mv) } diff --git a/internal/protocoltest/restxml/go.mod b/internal/protocoltest/restxml/go.mod index 3e709058949..b18c5c74105 100644 --- a/internal/protocoltest/restxml/go.mod +++ b/internal/protocoltest/restxml/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 github.com/google/go-cmp v0.4.1 ) diff --git a/internal/protocoltest/restxml/serializers.go b/internal/protocoltest/restxml/serializers.go index 44ee007f77f..93fd73bc23b 100644 --- a/internal/protocoltest/restxml/serializers.go +++ b/internal/protocoltest/restxml/serializers.go @@ -74,10 +74,7 @@ func awsRestxml_serializeOpHttpBindingsAllQueryStringTypesInput(v *AllQueryStrin if v.QueryBooleanList != nil { for i := range v.QueryBooleanList { - if v.QueryBooleanList[i] == nil { - continue - } - encoder.AddQuery("BooleanList").Boolean(*v.QueryBooleanList[i]) + encoder.AddQuery("BooleanList").Boolean(v.QueryBooleanList[i]) } } @@ -91,10 +88,7 @@ func awsRestxml_serializeOpHttpBindingsAllQueryStringTypesInput(v *AllQueryStrin if v.QueryDoubleList != nil { for i := range v.QueryDoubleList { - if v.QueryDoubleList[i] == nil { - continue - } - encoder.AddQuery("DoubleList").Double(*v.QueryDoubleList[i]) + encoder.AddQuery("DoubleList").Double(v.QueryDoubleList[i]) } } @@ -118,19 +112,13 @@ func awsRestxml_serializeOpHttpBindingsAllQueryStringTypesInput(v *AllQueryStrin if v.QueryIntegerList != nil { for i := range v.QueryIntegerList { - if v.QueryIntegerList[i] == nil { - continue - } - encoder.AddQuery("IntegerList").Integer(*v.QueryIntegerList[i]) + encoder.AddQuery("IntegerList").Integer(v.QueryIntegerList[i]) } } if v.QueryIntegerSet != nil { for i := range v.QueryIntegerSet { - if v.QueryIntegerSet[i] == nil { - continue - } - encoder.AddQuery("IntegerSet").Integer(*v.QueryIntegerSet[i]) + encoder.AddQuery("IntegerSet").Integer(v.QueryIntegerSet[i]) } } @@ -148,19 +136,13 @@ func awsRestxml_serializeOpHttpBindingsAllQueryStringTypesInput(v *AllQueryStrin if v.QueryStringList != nil { for i := range v.QueryStringList { - if v.QueryStringList[i] == nil { - continue - } - encoder.AddQuery("StringList").String(*v.QueryStringList[i]) + encoder.AddQuery("StringList").String(v.QueryStringList[i]) } } if v.QueryStringSet != nil { for i := range v.QueryStringSet { - if v.QueryStringSet[i] == nil { - continue - } - encoder.AddQuery("StringSet").String(*v.QueryStringSet[i]) + encoder.AddQuery("StringSet").String(v.QueryStringSet[i]) } } @@ -170,10 +152,7 @@ func awsRestxml_serializeOpHttpBindingsAllQueryStringTypesInput(v *AllQueryStrin if v.QueryTimestampList != nil { for i := range v.QueryTimestampList { - if v.QueryTimestampList[i] == nil { - continue - } - encoder.AddQuery("TimestampList").String(smithytime.FormatDateTime(*v.QueryTimestampList[i])) + encoder.AddQuery("TimestampList").String(smithytime.FormatDateTime(v.QueryTimestampList[i])) } } @@ -293,13 +272,10 @@ func awsRestxml_serializeOpHttpBindingsConstantQueryStringInput(v *ConstantQuery return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Hello == nil { + if v.Hello == nil || len(*v.Hello) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member hello must not be empty")} } if v.Hello != nil { - if len(*v.Hello) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member hello must not be empty")} - } if err := encoder.SetURI("hello").String(*v.Hello); err != nil { return err } @@ -640,11 +616,9 @@ func awsRestxml_serializeOpHttpBindingsHttpPayloadTraitsInput(v *HttpPayloadTrai return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Foo != nil { + if v.Foo != nil && len(*v.Foo) > 0 { locationName := "X-Foo" - if len(*v.Foo) > 0 { - encoder.SetHeader(locationName).String(*v.Foo) - } + encoder.SetHeader(locationName).String(*v.Foo) } return nil @@ -712,11 +686,9 @@ func awsRestxml_serializeOpHttpBindingsHttpPayloadTraitsWithMediaTypeInput(v *Ht return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Foo != nil { + if v.Foo != nil && len(*v.Foo) > 0 { locationName := "X-Foo" - if len(*v.Foo) > 0 { - encoder.SetHeader(locationName).String(*v.Foo) - } + encoder.SetHeader(locationName).String(*v.Foo) } return nil @@ -1063,18 +1035,16 @@ func awsRestxml_serializeOpHttpBindingsHttpPrefixHeadersInput(v *HttpPrefixHeade return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Foo != nil { + if v.Foo != nil && len(*v.Foo) > 0 { locationName := "X-Foo" - if len(*v.Foo) > 0 { - encoder.SetHeader(locationName).String(*v.Foo) - } + encoder.SetHeader(locationName).String(*v.Foo) } if v.FooMap != nil { hv := encoder.Headers("X-Foo-") for mapKey, mapVal := range v.FooMap { - if len(*mapVal) > 0 { - hv.SetHeader(http.CanonicalHeaderKey(mapKey)).String(*mapVal) + if len(mapVal) > 0 { + hv.SetHeader(http.CanonicalHeaderKey(mapKey)).String(mapVal) } } } @@ -1133,25 +1103,19 @@ func awsRestxml_serializeOpHttpBindingsHttpRequestWithGreedyLabelInPathInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Baz == nil { + if v.Baz == nil || len(*v.Baz) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member baz must not be empty")} } if v.Baz != nil { - if len(*v.Baz) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member baz must not be empty")} - } if err := encoder.SetURI("baz").String(*v.Baz); err != nil { return err } } - if v.Foo == nil { + if v.Foo == nil || len(*v.Foo) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member foo must not be empty")} } if v.Foo != nil { - if len(*v.Foo) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member foo must not be empty")} - } if err := encoder.SetURI("foo").String(*v.Foo); err != nil { return err } @@ -1265,13 +1229,10 @@ func awsRestxml_serializeOpHttpBindingsHttpRequestWithLabelsInput(v *HttpRequest } } - if v.String_ == nil { + if v.String_ == nil || len(*v.String_) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member string must not be empty")} } if v.String_ != nil { - if len(*v.String_) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member string must not be empty")} - } if err := encoder.SetURI("string").String(*v.String_); err != nil { return err } @@ -1560,8 +1521,8 @@ func awsRestxml_serializeOpHttpBindingsInputAndOutputWithHeadersInput(v *InputAn if v.HeaderBooleanList != nil { locationName := "X-Booleanlist" for i := range v.HeaderBooleanList { - if v.HeaderBooleanList[i] != nil { - encoder.AddHeader(locationName).Boolean(*v.HeaderBooleanList[i]) + { + encoder.AddHeader(locationName).Boolean(v.HeaderBooleanList[i]) } } } @@ -1608,8 +1569,8 @@ func awsRestxml_serializeOpHttpBindingsInputAndOutputWithHeadersInput(v *InputAn if v.HeaderIntegerList != nil { locationName := "X-Integerlist" for i := range v.HeaderIntegerList { - if v.HeaderIntegerList[i] != nil { - encoder.AddHeader(locationName).Integer(*v.HeaderIntegerList[i]) + { + encoder.AddHeader(locationName).Integer(v.HeaderIntegerList[i]) } } } @@ -1624,18 +1585,16 @@ func awsRestxml_serializeOpHttpBindingsInputAndOutputWithHeadersInput(v *InputAn encoder.SetHeader(locationName).Short(*v.HeaderShort) } - if v.HeaderString != nil { + if v.HeaderString != nil && len(*v.HeaderString) > 0 { locationName := "X-String" - if len(*v.HeaderString) > 0 { - encoder.SetHeader(locationName).String(*v.HeaderString) - } + encoder.SetHeader(locationName).String(*v.HeaderString) } if v.HeaderStringList != nil { locationName := "X-Stringlist" for i := range v.HeaderStringList { - if v.HeaderStringList[i] != nil && len(*v.HeaderStringList[i]) > 0 { - encoder.AddHeader(locationName).String(*v.HeaderStringList[i]) + if len(v.HeaderStringList[i]) > 0 { + encoder.AddHeader(locationName).String(v.HeaderStringList[i]) } } } @@ -1643,8 +1602,8 @@ func awsRestxml_serializeOpHttpBindingsInputAndOutputWithHeadersInput(v *InputAn if v.HeaderStringSet != nil { locationName := "X-Stringset" for i := range v.HeaderStringSet { - if v.HeaderStringSet[i] != nil && len(*v.HeaderStringSet[i]) > 0 { - encoder.AddHeader(locationName).String(*v.HeaderStringSet[i]) + if len(v.HeaderStringSet[i]) > 0 { + encoder.AddHeader(locationName).String(v.HeaderStringSet[i]) } } } @@ -1652,8 +1611,8 @@ func awsRestxml_serializeOpHttpBindingsInputAndOutputWithHeadersInput(v *InputAn if v.HeaderTimestampList != nil { locationName := "X-Timestamplist" for i := range v.HeaderTimestampList { - if v.HeaderTimestampList[i] != nil { - encoder.AddHeader(locationName).String(smithytime.FormatHTTPDate(*v.HeaderTimestampList[i])) + { + encoder.AddHeader(locationName).String(smithytime.FormatHTTPDate(v.HeaderTimestampList[i])) } } } @@ -1817,25 +1776,21 @@ func awsRestxml_serializeOpHttpBindingsNullAndEmptyHeadersClientInput(v *NullAnd return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.A != nil { + if v.A != nil && len(*v.A) > 0 { locationName := "X-A" - if len(*v.A) > 0 { - encoder.SetHeader(locationName).String(*v.A) - } + encoder.SetHeader(locationName).String(*v.A) } - if v.B != nil { + if v.B != nil && len(*v.B) > 0 { locationName := "X-B" - if len(*v.B) > 0 { - encoder.SetHeader(locationName).String(*v.B) - } + encoder.SetHeader(locationName).String(*v.B) } if v.C != nil { locationName := "X-C" for i := range v.C { - if v.C[i] != nil && len(*v.C[i]) > 0 { - encoder.AddHeader(locationName).String(*v.C[i]) + if len(v.C[i]) > 0 { + encoder.AddHeader(locationName).String(v.C[i]) } } } @@ -1894,25 +1849,21 @@ func awsRestxml_serializeOpHttpBindingsNullAndEmptyHeadersServerInput(v *NullAnd return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.A != nil { + if v.A != nil && len(*v.A) > 0 { locationName := "X-A" - if len(*v.A) > 0 { - encoder.SetHeader(locationName).String(*v.A) - } + encoder.SetHeader(locationName).String(*v.A) } - if v.B != nil { + if v.B != nil && len(*v.B) > 0 { locationName := "X-B" - if len(*v.B) > 0 { - encoder.SetHeader(locationName).String(*v.B) - } + encoder.SetHeader(locationName).String(*v.B) } if v.C != nil { locationName := "X-C" for i := range v.C { - if v.C[i] != nil && len(*v.C[i]) > 0 { - encoder.AddHeader(locationName).String(*v.C[i]) + if len(v.C[i]) > 0 { + encoder.AddHeader(locationName).String(v.C[i]) } } } @@ -2193,11 +2144,9 @@ func awsRestxml_serializeOpHttpBindingsSimpleScalarPropertiesInput(v *SimpleScal return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Foo != nil { + if v.Foo != nil && len(*v.Foo) > 0 { locationName := "X-Foo" - if len(*v.Foo) > 0 { - encoder.SetHeader(locationName).String(*v.Foo) - } + encoder.SetHeader(locationName).String(*v.Foo) } return nil @@ -3841,17 +3790,13 @@ func awsRestxml_serializeOpDocumentXmlTimestampsInput(v *XmlTimestampsInput, val return nil } -func awsRestxml_serializeDocumentFlattenedXmlMapWithXmlNameInputOutputMap(v map[string]*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentFlattenedXmlMapWithXmlNameInputOutputMap(v map[string]string, value smithyxml.Value) error { if !value.IsFlattened() { defer value.Close() } m := value.Map() for key := range v { entry := m.Entry() - if vv := v[key]; vv == nil { - entry.Close() - continue - } keyElementAttr := []smithyxml.Attr{} keyElement := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3859,7 +3804,7 @@ func awsRestxml_serializeDocumentFlattenedXmlMapWithXmlNameInputOutputMap(v map[ }, Attr: keyElementAttr, } - entry.MemberElement(keyElement).String(*&key) + entry.MemberElement(keyElement).String(key) valueElementAttr := []smithyxml.Attr{} valueElement := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3867,7 +3812,7 @@ func awsRestxml_serializeDocumentFlattenedXmlMapWithXmlNameInputOutputMap(v map[ }, Attr: valueElementAttr, } - entry.MemberElement(valueElement).String(*v[key]) + entry.MemberElement(valueElement).String(v[key]) entry.Close() } return nil @@ -4006,7 +3951,7 @@ func awsRestxml_serializeDocumentRecursiveShapesInputOutputNested2(v *types.Recu return nil } -func awsRestxml_serializeDocumentRenamedListMembers(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentRenamedListMembers(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -4020,18 +3965,13 @@ func awsRestxml_serializeDocumentRenamedListMembers(v []*string, value smithyxml } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } -func awsRestxml_serializeDocumentStructureList(v []*types.StructureListMember, value smithyxml.Value) error { +func awsRestxml_serializeDocumentStructureList(v []types.StructureListMember, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -4045,13 +3985,8 @@ func awsRestxml_serializeDocumentStructureList(v []*types.StructureListMember, v } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentStructureListMember(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentStructureListMember(&v[i], am); err != nil { return err } } @@ -4101,17 +4036,13 @@ func awsRestxml_serializeDocumentXmlAttributesInputOutput(v *types.XmlAttributes return nil } -func awsRestxml_serializeDocumentXmlMapsInputOutputMap(v map[string]*types.GreetingStruct, value smithyxml.Value) error { +func awsRestxml_serializeDocumentXmlMapsInputOutputMap(v map[string]types.GreetingStruct, value smithyxml.Value) error { if !value.IsFlattened() { defer value.Close() } m := value.Map() for key := range v { entry := m.Entry() - if vv := v[key]; vv == nil { - entry.Close() - continue - } keyElementAttr := []smithyxml.Attr{} keyElement := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -4119,7 +4050,7 @@ func awsRestxml_serializeDocumentXmlMapsInputOutputMap(v map[string]*types.Greet }, Attr: keyElementAttr, } - entry.MemberElement(keyElement).String(*&key) + entry.MemberElement(keyElement).String(key) valueElementAttr := []smithyxml.Attr{} valueElement := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -4127,7 +4058,8 @@ func awsRestxml_serializeDocumentXmlMapsInputOutputMap(v map[string]*types.Greet }, Attr: valueElementAttr, } - if err := awsRestxml_serializeDocumentGreetingStruct(v[key], entry.MemberElement(valueElement)); err != nil { + mapVar := v[key] + if err := awsRestxml_serializeDocumentGreetingStruct(&mapVar, entry.MemberElement(valueElement)); err != nil { return err } entry.Close() @@ -4135,17 +4067,13 @@ func awsRestxml_serializeDocumentXmlMapsInputOutputMap(v map[string]*types.Greet return nil } -func awsRestxml_serializeDocumentXmlMapsXmlNameInputOutputMap(v map[string]*types.GreetingStruct, value smithyxml.Value) error { +func awsRestxml_serializeDocumentXmlMapsXmlNameInputOutputMap(v map[string]types.GreetingStruct, value smithyxml.Value) error { if !value.IsFlattened() { defer value.Close() } m := value.Map() for key := range v { entry := m.Entry() - if vv := v[key]; vv == nil { - entry.Close() - continue - } keyElementAttr := []smithyxml.Attr{} keyElement := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -4153,7 +4081,7 @@ func awsRestxml_serializeDocumentXmlMapsXmlNameInputOutputMap(v map[string]*type }, Attr: keyElementAttr, } - entry.MemberElement(keyElement).String(*&key) + entry.MemberElement(keyElement).String(key) valueElementAttr := []smithyxml.Attr{} valueElement := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -4161,7 +4089,8 @@ func awsRestxml_serializeDocumentXmlMapsXmlNameInputOutputMap(v map[string]*type }, Attr: valueElementAttr, } - if err := awsRestxml_serializeDocumentGreetingStruct(v[key], entry.MemberElement(valueElement)); err != nil { + mapVar := v[key] + if err := awsRestxml_serializeDocumentGreetingStruct(&mapVar, entry.MemberElement(valueElement)); err != nil { return err } entry.Close() @@ -4169,7 +4098,7 @@ func awsRestxml_serializeDocumentXmlMapsXmlNameInputOutputMap(v map[string]*type return nil } -func awsRestxml_serializeDocumentXmlNamespacedList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentXmlNamespacedList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -4184,13 +4113,8 @@ func awsRestxml_serializeDocumentXmlNamespacedList(v []*string, value smithyxml. } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -4226,20 +4150,15 @@ func awsRestxml_serializeDocumentXmlNamespaceNested(v *types.XmlNamespaceNested, return nil } -func awsRestxml_serializeDocumentBooleanList(v []*bool, value smithyxml.Value) error { +func awsRestxml_serializeDocumentBooleanList(v []bool, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.Boolean(*v[i]) + am.Boolean(v[i]) } return nil } @@ -4271,7 +4190,7 @@ func awsRestxml_serializeDocumentFooEnumMap(v map[string]types.FooEnum, value sm }, Attr: keyElementAttr, } - entry.MemberElement(keyElement).String(*&key) + entry.MemberElement(keyElement).String(key) valueElementAttr := []smithyxml.Attr{} valueElement := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -4314,32 +4233,27 @@ func awsRestxml_serializeDocumentGreetingStruct(v *types.GreetingStruct, value s return nil } -func awsRestxml_serializeDocumentIntegerList(v []*int32, value smithyxml.Value) error { +func awsRestxml_serializeDocumentIntegerList(v []int32, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.Integer(*v[i]) + am.Integer(v[i]) } return nil } -func awsRestxml_serializeDocumentNestedStringList(v [][]*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentNestedStringList(v [][]string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { + if v[i] == nil { am := array.Member() am.Close() continue @@ -4352,56 +4266,41 @@ func awsRestxml_serializeDocumentNestedStringList(v [][]*string, value smithyxml return nil } -func awsRestxml_serializeDocumentStringList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentStringList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } -func awsRestxml_serializeDocumentStringSet(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentStringSet(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } -func awsRestxml_serializeDocumentTimestampList(v []*time.Time, value smithyxml.Value) error { +func awsRestxml_serializeDocumentTimestampList(v []time.Time, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(smithytime.FormatDateTime(*v[i])) + am.String(smithytime.FormatDateTime(v[i])) } return nil } diff --git a/internal/protocoltest/restxml/types/types.go b/internal/protocoltest/restxml/types/types.go index eda4c972736..c3a9371614c 100644 --- a/internal/protocoltest/restxml/types/types.go +++ b/internal/protocoltest/restxml/types/types.go @@ -51,7 +51,7 @@ type XmlAttributesInputOutput struct { type XmlNamespaceNested struct { Foo *string - Values []*string + Values []string } type GreetingStruct struct { diff --git a/service/accessanalyzer/api_op_CreateAnalyzer.go b/service/accessanalyzer/api_op_CreateAnalyzer.go index aa75658c12b..77a7a239fe4 100644 --- a/service/accessanalyzer/api_op_CreateAnalyzer.go +++ b/service/accessanalyzer/api_op_CreateAnalyzer.go @@ -43,13 +43,13 @@ type CreateAnalyzerInput struct { // Specifies the archive rules to add for the analyzer. Archive rules automatically // archive findings that meet the criteria you define for the rule. - ArchiveRules []*types.InlineArchiveRule + ArchiveRules []types.InlineArchiveRule // A client token. ClientToken *string // The tags to apply to the analyzer. - Tags map[string]*string + Tags map[string]string } // The response to the request to create an analyzer. diff --git a/service/accessanalyzer/api_op_CreateArchiveRule.go b/service/accessanalyzer/api_op_CreateArchiveRule.go index 6c00f970a69..9918e5e3123 100644 --- a/service/accessanalyzer/api_op_CreateArchiveRule.go +++ b/service/accessanalyzer/api_op_CreateArchiveRule.go @@ -39,7 +39,7 @@ type CreateArchiveRuleInput struct { // The criteria for the rule. // // This member is required. - Filter map[string]*types.Criterion + Filter map[string]types.Criterion // The name of the rule to create. // diff --git a/service/accessanalyzer/api_op_ListAnalyzedResources.go b/service/accessanalyzer/api_op_ListAnalyzedResources.go index ea116a50faf..25aaebe41ab 100644 --- a/service/accessanalyzer/api_op_ListAnalyzedResources.go +++ b/service/accessanalyzer/api_op_ListAnalyzedResources.go @@ -52,7 +52,7 @@ type ListAnalyzedResourcesOutput struct { // A list of resources that were analyzed. // // This member is required. - AnalyzedResources []*types.AnalyzedResourceSummary + AnalyzedResources []types.AnalyzedResourceSummary // A token used for pagination of results returned. NextToken *string diff --git a/service/accessanalyzer/api_op_ListAnalyzers.go b/service/accessanalyzer/api_op_ListAnalyzers.go index 56ef9875571..067448529e6 100644 --- a/service/accessanalyzer/api_op_ListAnalyzers.go +++ b/service/accessanalyzer/api_op_ListAnalyzers.go @@ -46,7 +46,7 @@ type ListAnalyzersOutput struct { // The analyzers retrieved. // // This member is required. - Analyzers []*types.AnalyzerSummary + Analyzers []types.AnalyzerSummary // A token used for pagination of results returned. NextToken *string diff --git a/service/accessanalyzer/api_op_ListArchiveRules.go b/service/accessanalyzer/api_op_ListArchiveRules.go index b8e1fd3ae70..9538c57050a 100644 --- a/service/accessanalyzer/api_op_ListArchiveRules.go +++ b/service/accessanalyzer/api_op_ListArchiveRules.go @@ -48,7 +48,7 @@ type ListArchiveRulesOutput struct { // A list of archive rules created for the specified analyzer. // // This member is required. - ArchiveRules []*types.ArchiveRuleSummary + ArchiveRules []types.ArchiveRuleSummary // A token used for pagination of results returned. NextToken *string diff --git a/service/accessanalyzer/api_op_ListFindings.go b/service/accessanalyzer/api_op_ListFindings.go index 2e4015495ec..fa7c106df92 100644 --- a/service/accessanalyzer/api_op_ListFindings.go +++ b/service/accessanalyzer/api_op_ListFindings.go @@ -36,7 +36,7 @@ type ListFindingsInput struct { AnalyzerArn *string // A filter to match for the findings to return. - Filter map[string]*types.Criterion + Filter map[string]types.Criterion // The maximum number of results to return in the response. MaxResults *int32 @@ -55,7 +55,7 @@ type ListFindingsOutput struct { // specified, if any. // // This member is required. - Findings []*types.FindingSummary + Findings []types.FindingSummary // A token used for pagination of results returned. NextToken *string diff --git a/service/accessanalyzer/api_op_ListTagsForResource.go b/service/accessanalyzer/api_op_ListTagsForResource.go index 932c0bb4f13..18c32b4ee46 100644 --- a/service/accessanalyzer/api_op_ListTagsForResource.go +++ b/service/accessanalyzer/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags that are applied to the specified resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/accessanalyzer/api_op_TagResource.go b/service/accessanalyzer/api_op_TagResource.go index 5cae5e1b74a..8525d5aef57 100644 --- a/service/accessanalyzer/api_op_TagResource.go +++ b/service/accessanalyzer/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // The tags to add to the resource. // // This member is required. - Tags map[string]*string + Tags map[string]string } // The response to the request. diff --git a/service/accessanalyzer/api_op_UntagResource.go b/service/accessanalyzer/api_op_UntagResource.go index 4303def0c7a..e1ae1d2a5d1 100644 --- a/service/accessanalyzer/api_op_UntagResource.go +++ b/service/accessanalyzer/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // The key for the tag to add. // // This member is required. - TagKeys []*string + TagKeys []string } // The response to the request. diff --git a/service/accessanalyzer/api_op_UpdateArchiveRule.go b/service/accessanalyzer/api_op_UpdateArchiveRule.go index 97e92081331..1ba8796f8c7 100644 --- a/service/accessanalyzer/api_op_UpdateArchiveRule.go +++ b/service/accessanalyzer/api_op_UpdateArchiveRule.go @@ -39,7 +39,7 @@ type UpdateArchiveRuleInput struct { // updated. // // This member is required. - Filter map[string]*types.Criterion + Filter map[string]types.Criterion // The name of the rule to update. // diff --git a/service/accessanalyzer/api_op_UpdateFindings.go b/service/accessanalyzer/api_op_UpdateFindings.go index a0d0ae26ca4..32c4a742758 100644 --- a/service/accessanalyzer/api_op_UpdateFindings.go +++ b/service/accessanalyzer/api_op_UpdateFindings.go @@ -47,7 +47,7 @@ type UpdateFindingsInput struct { ClientToken *string // The IDs of the findings to update. - Ids []*string + Ids []string // The ARN of the resource identified in the finding. ResourceArn *string diff --git a/service/accessanalyzer/deserializers.go b/service/accessanalyzer/deserializers.go index 4705e103ade..d7cbdff22c2 100644 --- a/service/accessanalyzer/deserializers.go +++ b/service/accessanalyzer/deserializers.go @@ -174,7 +174,7 @@ func awsRestjson1_deserializeOpDocumentCreateAnalyzerOutput(v **CreateAnalyzerOu if !ok { return fmt.Errorf("expected AnalyzerArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -1269,7 +1269,7 @@ func awsRestjson1_deserializeOpDocumentListAnalyzedResourcesOutput(v **ListAnaly if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1434,7 +1434,7 @@ func awsRestjson1_deserializeOpDocumentListAnalyzersOutput(v **ListAnalyzersOutp if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1599,7 +1599,7 @@ func awsRestjson1_deserializeOpDocumentListArchiveRulesOutput(v **ListArchiveRul if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1767,7 +1767,7 @@ func awsRestjson1_deserializeOpDocumentListFindingsOutput(v **ListFindingsOutput if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2733,7 +2733,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2745,7 +2745,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } -func awsRestjson1_deserializeDocumentActionList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentActionList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2758,21 +2758,21 @@ func awsRestjson1_deserializeDocumentActionList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -2818,7 +2818,7 @@ func awsRestjson1_deserializeDocumentAnalyzedResource(v **types.AnalyzedResource if err != nil { return err } - sv.AnalyzedAt = &t + sv.AnalyzedAt = ptr.Time(t) } case "createdAt": @@ -2831,7 +2831,7 @@ func awsRestjson1_deserializeDocumentAnalyzedResource(v **types.AnalyzedResource if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "error": @@ -2840,7 +2840,7 @@ func awsRestjson1_deserializeDocumentAnalyzedResource(v **types.AnalyzedResource if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } case "isPublic": @@ -2849,7 +2849,7 @@ func awsRestjson1_deserializeDocumentAnalyzedResource(v **types.AnalyzedResource if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsPublic = &jtv + sv.IsPublic = ptr.Bool(jtv) } case "resourceArn": @@ -2858,7 +2858,7 @@ func awsRestjson1_deserializeDocumentAnalyzedResource(v **types.AnalyzedResource if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "resourceOwnerAccount": @@ -2867,7 +2867,7 @@ func awsRestjson1_deserializeDocumentAnalyzedResource(v **types.AnalyzedResource if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceOwnerAccount = &jtv + sv.ResourceOwnerAccount = ptr.String(jtv) } case "resourceType": @@ -2903,7 +2903,7 @@ func awsRestjson1_deserializeDocumentAnalyzedResource(v **types.AnalyzedResource if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -2915,7 +2915,7 @@ func awsRestjson1_deserializeDocumentAnalyzedResource(v **types.AnalyzedResource return nil } -func awsRestjson1_deserializeDocumentAnalyzedResourcesList(v *[]*types.AnalyzedResourceSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentAnalyzedResourcesList(v *[]types.AnalyzedResourceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2928,18 +2928,20 @@ func awsRestjson1_deserializeDocumentAnalyzedResourcesList(v *[]*types.AnalyzedR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AnalyzedResourceSummary + var cv []types.AnalyzedResourceSummary if *v == nil { - cv = []*types.AnalyzedResourceSummary{} + cv = []types.AnalyzedResourceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.AnalyzedResourceSummary - if err := awsRestjson1_deserializeDocumentAnalyzedResourceSummary(&col, value); err != nil { + var col types.AnalyzedResourceSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAnalyzedResourceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2975,7 +2977,7 @@ func awsRestjson1_deserializeDocumentAnalyzedResourceSummary(v **types.AnalyzedR if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "resourceOwnerAccount": @@ -2984,7 +2986,7 @@ func awsRestjson1_deserializeDocumentAnalyzedResourceSummary(v **types.AnalyzedR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceOwnerAccount = &jtv + sv.ResourceOwnerAccount = ptr.String(jtv) } case "resourceType": @@ -3005,7 +3007,7 @@ func awsRestjson1_deserializeDocumentAnalyzedResourceSummary(v **types.AnalyzedR return nil } -func awsRestjson1_deserializeDocumentAnalyzersList(v *[]*types.AnalyzerSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentAnalyzersList(v *[]types.AnalyzerSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3018,18 +3020,20 @@ func awsRestjson1_deserializeDocumentAnalyzersList(v *[]*types.AnalyzerSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AnalyzerSummary + var cv []types.AnalyzerSummary if *v == nil { - cv = []*types.AnalyzerSummary{} + cv = []types.AnalyzerSummary{} } else { cv = *v } for _, value := range shape { - var col *types.AnalyzerSummary - if err := awsRestjson1_deserializeDocumentAnalyzerSummary(&col, value); err != nil { + var col types.AnalyzerSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAnalyzerSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3065,7 +3069,7 @@ func awsRestjson1_deserializeDocumentAnalyzerSummary(v **types.AnalyzerSummary, if !ok { return fmt.Errorf("expected AnalyzerArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -3078,7 +3082,7 @@ func awsRestjson1_deserializeDocumentAnalyzerSummary(v **types.AnalyzerSummary, if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "lastResourceAnalyzed": @@ -3087,7 +3091,7 @@ func awsRestjson1_deserializeDocumentAnalyzerSummary(v **types.AnalyzerSummary, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastResourceAnalyzed = &jtv + sv.LastResourceAnalyzed = ptr.String(jtv) } case "lastResourceAnalyzedAt": @@ -3100,7 +3104,7 @@ func awsRestjson1_deserializeDocumentAnalyzerSummary(v **types.AnalyzerSummary, if err != nil { return err } - sv.LastResourceAnalyzedAt = &t + sv.LastResourceAnalyzedAt = ptr.Time(t) } case "name": @@ -3109,7 +3113,7 @@ func awsRestjson1_deserializeDocumentAnalyzerSummary(v **types.AnalyzerSummary, if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -3149,7 +3153,7 @@ func awsRestjson1_deserializeDocumentAnalyzerSummary(v **types.AnalyzerSummary, return nil } -func awsRestjson1_deserializeDocumentArchiveRulesList(v *[]*types.ArchiveRuleSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentArchiveRulesList(v *[]types.ArchiveRuleSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3162,18 +3166,20 @@ func awsRestjson1_deserializeDocumentArchiveRulesList(v *[]*types.ArchiveRuleSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ArchiveRuleSummary + var cv []types.ArchiveRuleSummary if *v == nil { - cv = []*types.ArchiveRuleSummary{} + cv = []types.ArchiveRuleSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ArchiveRuleSummary - if err := awsRestjson1_deserializeDocumentArchiveRuleSummary(&col, value); err != nil { + var col types.ArchiveRuleSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentArchiveRuleSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3213,7 +3219,7 @@ func awsRestjson1_deserializeDocumentArchiveRuleSummary(v **types.ArchiveRuleSum if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "filter": @@ -3227,7 +3233,7 @@ func awsRestjson1_deserializeDocumentArchiveRuleSummary(v **types.ArchiveRuleSum if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.RuleName = &jtv + sv.RuleName = ptr.String(jtv) } case "updatedAt": @@ -3240,7 +3246,7 @@ func awsRestjson1_deserializeDocumentArchiveRuleSummary(v **types.ArchiveRuleSum if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -3252,7 +3258,7 @@ func awsRestjson1_deserializeDocumentArchiveRuleSummary(v **types.ArchiveRuleSum return nil } -func awsRestjson1_deserializeDocumentConditionKeyMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentConditionKeyMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3265,21 +3271,21 @@ func awsRestjson1_deserializeDocumentConditionKeyMap(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -3316,7 +3322,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceId": @@ -3325,7 +3331,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "resourceType": @@ -3334,7 +3340,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -3384,7 +3390,7 @@ func awsRestjson1_deserializeDocumentCriterion(v **types.Criterion, value interf if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Exists = &jtv + sv.Exists = ptr.Bool(jtv) } case "neq": @@ -3401,7 +3407,7 @@ func awsRestjson1_deserializeDocumentCriterion(v **types.Criterion, value interf return nil } -func awsRestjson1_deserializeDocumentFilterCriteriaMap(v *map[string]*types.Criterion, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterCriteriaMap(v *map[string]types.Criterion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3414,18 +3420,21 @@ func awsRestjson1_deserializeDocumentFilterCriteriaMap(v *map[string]*types.Crit return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.Criterion + var mv map[string]types.Criterion if *v == nil { - mv = map[string]*types.Criterion{} + mv = map[string]types.Criterion{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.Criterion - if err := awsRestjson1_deserializeDocumentCriterion(&parsedVal, value); err != nil { + var parsedVal types.Criterion + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentCriterion(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -3470,7 +3479,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if err != nil { return err } - sv.AnalyzedAt = &t + sv.AnalyzedAt = ptr.Time(t) } case "condition": @@ -3488,7 +3497,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "error": @@ -3497,7 +3506,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } case "id": @@ -3506,7 +3515,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected FindingId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "isPublic": @@ -3515,7 +3524,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsPublic = &jtv + sv.IsPublic = ptr.Bool(jtv) } case "principal": @@ -3529,7 +3538,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "resourceOwnerAccount": @@ -3538,7 +3547,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceOwnerAccount = &jtv + sv.ResourceOwnerAccount = ptr.String(jtv) } case "resourceType": @@ -3574,7 +3583,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -3586,7 +3595,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ return nil } -func awsRestjson1_deserializeDocumentFindingsList(v *[]*types.FindingSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentFindingsList(v *[]types.FindingSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3599,18 +3608,20 @@ func awsRestjson1_deserializeDocumentFindingsList(v *[]*types.FindingSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FindingSummary + var cv []types.FindingSummary if *v == nil { - cv = []*types.FindingSummary{} + cv = []types.FindingSummary{} } else { cv = *v } for _, value := range shape { - var col *types.FindingSummary - if err := awsRestjson1_deserializeDocumentFindingSummary(&col, value); err != nil { + var col types.FindingSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentFindingSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3691,7 +3702,7 @@ func awsRestjson1_deserializeDocumentFindingSourceDetail(v **types.FindingSource if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccessPointArn = &jtv + sv.AccessPointArn = ptr.String(jtv) } default: @@ -3703,7 +3714,7 @@ func awsRestjson1_deserializeDocumentFindingSourceDetail(v **types.FindingSource return nil } -func awsRestjson1_deserializeDocumentFindingSourceList(v *[]*types.FindingSource, value interface{}) error { +func awsRestjson1_deserializeDocumentFindingSourceList(v *[]types.FindingSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3716,18 +3727,20 @@ func awsRestjson1_deserializeDocumentFindingSourceList(v *[]*types.FindingSource return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FindingSource + var cv []types.FindingSource if *v == nil { - cv = []*types.FindingSource{} + cv = []types.FindingSource{} } else { cv = *v } for _, value := range shape { - var col *types.FindingSource - if err := awsRestjson1_deserializeDocumentFindingSource(&col, value); err != nil { + var col types.FindingSource + destAddr := &col + if err := awsRestjson1_deserializeDocumentFindingSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3772,7 +3785,7 @@ func awsRestjson1_deserializeDocumentFindingSummary(v **types.FindingSummary, va if err != nil { return err } - sv.AnalyzedAt = &t + sv.AnalyzedAt = ptr.Time(t) } case "condition": @@ -3790,7 +3803,7 @@ func awsRestjson1_deserializeDocumentFindingSummary(v **types.FindingSummary, va if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "error": @@ -3799,7 +3812,7 @@ func awsRestjson1_deserializeDocumentFindingSummary(v **types.FindingSummary, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } case "id": @@ -3808,7 +3821,7 @@ func awsRestjson1_deserializeDocumentFindingSummary(v **types.FindingSummary, va if !ok { return fmt.Errorf("expected FindingId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "isPublic": @@ -3817,7 +3830,7 @@ func awsRestjson1_deserializeDocumentFindingSummary(v **types.FindingSummary, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsPublic = &jtv + sv.IsPublic = ptr.Bool(jtv) } case "principal": @@ -3831,7 +3844,7 @@ func awsRestjson1_deserializeDocumentFindingSummary(v **types.FindingSummary, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "resourceOwnerAccount": @@ -3840,7 +3853,7 @@ func awsRestjson1_deserializeDocumentFindingSummary(v **types.FindingSummary, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceOwnerAccount = &jtv + sv.ResourceOwnerAccount = ptr.String(jtv) } case "resourceType": @@ -3876,7 +3889,7 @@ func awsRestjson1_deserializeDocumentFindingSummary(v **types.FindingSummary, va if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -3916,7 +3929,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryAfterSeconds": @@ -3941,7 +3954,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS return nil } -func awsRestjson1_deserializeDocumentPrincipalMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentPrincipalMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3954,21 +3967,21 @@ func awsRestjson1_deserializeDocumentPrincipalMap(v *map[string]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -4005,7 +4018,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceId": @@ -4014,7 +4027,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "resourceType": @@ -4023,7 +4036,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -4063,7 +4076,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceId": @@ -4072,7 +4085,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "resourceType": @@ -4081,7 +4094,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -4093,7 +4106,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser return nil } -func awsRestjson1_deserializeDocumentSharedViaList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSharedViaList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4106,21 +4119,21 @@ func awsRestjson1_deserializeDocumentSharedViaList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -4169,7 +4182,7 @@ func awsRestjson1_deserializeDocumentStatusReason(v **types.StatusReason, value return nil } -func awsRestjson1_deserializeDocumentTagsMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4182,21 +4195,21 @@ func awsRestjson1_deserializeDocumentTagsMap(v *map[string]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -4233,7 +4246,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryAfterSeconds": @@ -4291,7 +4304,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "reason": @@ -4340,7 +4353,7 @@ func awsRestjson1_deserializeDocumentValidationExceptionField(v **types.Validati if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "name": @@ -4349,7 +4362,7 @@ func awsRestjson1_deserializeDocumentValidationExceptionField(v **types.Validati if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -4361,7 +4374,7 @@ func awsRestjson1_deserializeDocumentValidationExceptionField(v **types.Validati return nil } -func awsRestjson1_deserializeDocumentValidationExceptionFieldList(v *[]*types.ValidationExceptionField, value interface{}) error { +func awsRestjson1_deserializeDocumentValidationExceptionFieldList(v *[]types.ValidationExceptionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4374,18 +4387,20 @@ func awsRestjson1_deserializeDocumentValidationExceptionFieldList(v *[]*types.Va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ValidationExceptionField + var cv []types.ValidationExceptionField if *v == nil { - cv = []*types.ValidationExceptionField{} + cv = []types.ValidationExceptionField{} } else { cv = *v } for _, value := range shape { - var col *types.ValidationExceptionField - if err := awsRestjson1_deserializeDocumentValidationExceptionField(&col, value); err != nil { + var col types.ValidationExceptionField + destAddr := &col + if err := awsRestjson1_deserializeDocumentValidationExceptionField(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4393,7 +4408,7 @@ func awsRestjson1_deserializeDocumentValidationExceptionFieldList(v *[]*types.Va return nil } -func awsRestjson1_deserializeDocumentValueList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4406,21 +4421,21 @@ func awsRestjson1_deserializeDocumentValueList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) diff --git a/service/accessanalyzer/go.mod b/service/accessanalyzer/go.mod index 592861b4919..67b556841c6 100644 --- a/service/accessanalyzer/go.mod +++ b/service/accessanalyzer/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/accessanalyzer go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/accessanalyzer/serializers.go b/service/accessanalyzer/serializers.go index 40bfda43fda..0159adfbc43 100644 --- a/service/accessanalyzer/serializers.go +++ b/service/accessanalyzer/serializers.go @@ -173,13 +173,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateArchiveRuleInput(v *CreateArchive return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalyzerName == nil { + if v.AnalyzerName == nil || len(*v.AnalyzerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} } if v.AnalyzerName != nil { - if len(*v.AnalyzerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} - } if err := encoder.SetURI("analyzerName").String(*v.AnalyzerName); err != nil { return err } @@ -263,13 +260,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAnalyzerInput(v *DeleteAnalyzerIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalyzerName == nil { + if v.AnalyzerName == nil || len(*v.AnalyzerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} } if v.AnalyzerName != nil { - if len(*v.AnalyzerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} - } if err := encoder.SetURI("analyzerName").String(*v.AnalyzerName); err != nil { return err } @@ -333,13 +327,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteArchiveRuleInput(v *DeleteArchive return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalyzerName == nil { + if v.AnalyzerName == nil || len(*v.AnalyzerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} } if v.AnalyzerName != nil { - if len(*v.AnalyzerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} - } if err := encoder.SetURI("analyzerName").String(*v.AnalyzerName); err != nil { return err } @@ -349,13 +340,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteArchiveRuleInput(v *DeleteArchive encoder.SetQuery("clientToken").String(*v.ClientToken) } - if v.RuleName == nil { + if v.RuleName == nil || len(*v.RuleName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} } if v.RuleName != nil { - if len(*v.RuleName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} - } if err := encoder.SetURI("ruleName").String(*v.RuleName); err != nil { return err } @@ -477,13 +465,10 @@ func awsRestjson1_serializeOpHttpBindingsGetAnalyzerInput(v *GetAnalyzerInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalyzerName == nil { + if v.AnalyzerName == nil || len(*v.AnalyzerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} } if v.AnalyzerName != nil { - if len(*v.AnalyzerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} - } if err := encoder.SetURI("analyzerName").String(*v.AnalyzerName); err != nil { return err } @@ -543,25 +528,19 @@ func awsRestjson1_serializeOpHttpBindingsGetArchiveRuleInput(v *GetArchiveRuleIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalyzerName == nil { + if v.AnalyzerName == nil || len(*v.AnalyzerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} } if v.AnalyzerName != nil { - if len(*v.AnalyzerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} - } if err := encoder.SetURI("analyzerName").String(*v.AnalyzerName); err != nil { return err } } - if v.RuleName == nil { + if v.RuleName == nil || len(*v.RuleName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} } if v.RuleName != nil { - if len(*v.RuleName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} - } if err := encoder.SetURI("ruleName").String(*v.RuleName); err != nil { return err } @@ -625,13 +604,10 @@ func awsRestjson1_serializeOpHttpBindingsGetFindingInput(v *GetFindingInput, enc encoder.SetQuery("analyzerArn").String(*v.AnalyzerArn) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} - } if err := encoder.SetURI("id").String(*v.Id); err != nil { return err } @@ -845,13 +821,10 @@ func awsRestjson1_serializeOpHttpBindingsListArchiveRulesInput(v *ListArchiveRul return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalyzerName == nil { + if v.AnalyzerName == nil || len(*v.AnalyzerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} } if v.AnalyzerName != nil { - if len(*v.AnalyzerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} - } if err := encoder.SetURI("analyzerName").String(*v.AnalyzerName); err != nil { return err } @@ -1016,13 +989,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1171,13 +1141,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1251,13 +1218,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1265,10 +1229,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1337,25 +1298,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateArchiveRuleInput(v *UpdateArchive return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalyzerName == nil { + if v.AnalyzerName == nil || len(*v.AnalyzerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} } if v.AnalyzerName != nil { - if len(*v.AnalyzerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member analyzerName must not be empty")} - } if err := encoder.SetURI("analyzerName").String(*v.AnalyzerName); err != nil { return err } } - if v.RuleName == nil { + if v.RuleName == nil || len(*v.RuleName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} } if v.RuleName != nil { - if len(*v.RuleName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} - } if err := encoder.SetURI("ruleName").String(*v.RuleName); err != nil { return err } @@ -1511,34 +1466,27 @@ func awsRestjson1_serializeDocumentCriterion(v *types.Criterion, value smithyjso return nil } -func awsRestjson1_serializeDocumentFilterCriteriaMap(v map[string]*types.Criterion, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterCriteriaMap(v map[string]types.Criterion, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentCriterion(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentCriterion(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentFindingIdList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFindingIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1562,17 +1510,13 @@ func awsRestjson1_serializeDocumentInlineArchiveRule(v *types.InlineArchiveRule, return nil } -func awsRestjson1_serializeDocumentInlineArchiveRulesList(v []*types.InlineArchiveRule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentInlineArchiveRulesList(v []types.InlineArchiveRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInlineArchiveRule(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInlineArchiveRule(&v[i], av); err != nil { return err } } @@ -1596,32 +1540,24 @@ func awsRestjson1_serializeDocumentSortCriteria(v *types.SortCriteria, value smi return nil } -func awsRestjson1_serializeDocumentTagsMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentValueList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/accessanalyzer/types/errors.go b/service/accessanalyzer/types/errors.go index 44e363a0416..817e389bdf1 100644 --- a/service/accessanalyzer/types/errors.go +++ b/service/accessanalyzer/types/errors.go @@ -127,7 +127,7 @@ type ValidationException struct { Message *string Reason ValidationExceptionReason - FieldList []*ValidationExceptionField + FieldList []ValidationExceptionField } func (e *ValidationException) Error() string { diff --git a/service/accessanalyzer/types/types.go b/service/accessanalyzer/types/types.go index cca85488d63..88128c3260a 100644 --- a/service/accessanalyzer/types/types.go +++ b/service/accessanalyzer/types/types.go @@ -47,14 +47,14 @@ type AnalyzedResource struct { // The actions that an external principal is granted permission to use by the // policy that generated the finding. - Actions []*string + Actions []string // An error message. Error *string // Indicates how the access that generated the finding is granted. This is // populated for Amazon S3 bucket findings. - SharedVia []*string + SharedVia []string // The current status of the finding generated from the analyzed resource. Status FindingStatus @@ -127,7 +127,7 @@ type AnalyzerSummary struct { StatusReason *StatusReason // The tags added to the analyzer. - Tags map[string]*string + Tags map[string]string } // Contains information about an archive rule. @@ -141,7 +141,7 @@ type ArchiveRuleSummary struct { // A filter used to define the archive rule. // // This member is required. - Filter map[string]*Criterion + Filter map[string]Criterion // The name of the archive rule. // @@ -158,16 +158,16 @@ type ArchiveRuleSummary struct { type Criterion struct { // A "contains" operator to match for the filter used to create the rule. - Contains []*string + Contains []string // An "equals" operator to match for the filter used to create the rule. - Eq []*string + Eq []string // An "exists" operator to match for the filter used to create the rule. Exists *bool // A "not equals" operator to match for the filter used to create the rule. - Neq []*string + Neq []string } // Contains information about a finding. @@ -181,7 +181,7 @@ type Finding struct { // The condition in the analyzed policy statement that resulted in a finding. // // This member is required. - Condition map[string]*string + Condition map[string]string // The time at which the finding was generated. // @@ -215,7 +215,7 @@ type Finding struct { // The action in the analyzed policy statement that an external principal has // permission to use. - Action []*string + Action []string // An error. Error *string @@ -225,14 +225,14 @@ type Finding struct { IsPublic *bool // The external principal that access to a resource within the zone of trust. - Principal map[string]*string + Principal map[string]string // The resource that an external principal has access to. Resource *string // The sources of the finding. This indicates how the access that generated the // finding is granted. It is populated for Amazon S3 bucket findings. - Sources []*FindingSource + Sources []FindingSource } // The source of the finding. This indicates how the access that generated the @@ -269,7 +269,7 @@ type FindingSummary struct { // The condition in the analyzed policy statement that resulted in a finding. // // This member is required. - Condition map[string]*string + Condition map[string]string // The time at which the finding was created. // @@ -303,7 +303,7 @@ type FindingSummary struct { // The action in the analyzed policy statement that an external principal has // permission to use. - Action []*string + Action []string // The error that resulted in an Error finding. Error *string @@ -313,14 +313,14 @@ type FindingSummary struct { IsPublic *bool // The external principal that has access to a resource within the zone of trust. - Principal map[string]*string + Principal map[string]string // The resource that the external principal has access to. Resource *string // The sources of the finding. This indicates how the access that generated the // finding is granted. It is populated for Amazon S3 bucket findings. - Sources []*FindingSource + Sources []FindingSource } // An criterion statement in an archive rule. Each archive rule may have multiple @@ -330,7 +330,7 @@ type InlineArchiveRule struct { // The condition and values for a criterion. // // This member is required. - Filter map[string]*Criterion + Filter map[string]Criterion // The name of the rule. // diff --git a/service/accessanalyzer/validators.go b/service/accessanalyzer/validators.go index 9fa3af602ad..f6923146bc0 100644 --- a/service/accessanalyzer/validators.go +++ b/service/accessanalyzer/validators.go @@ -436,13 +436,13 @@ func validateInlineArchiveRule(v *types.InlineArchiveRule) error { } } -func validateInlineArchiveRulesList(v []*types.InlineArchiveRule) error { +func validateInlineArchiveRulesList(v []types.InlineArchiveRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InlineArchiveRulesList"} for i := range v { - if err := validateInlineArchiveRule(v[i]); err != nil { + if err := validateInlineArchiveRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/acm/api_op_AddTagsToCertificate.go b/service/acm/api_op_AddTagsToCertificate.go index 1acd810e03e..a3de6477768 100644 --- a/service/acm/api_op_AddTagsToCertificate.go +++ b/service/acm/api_op_AddTagsToCertificate.go @@ -56,7 +56,7 @@ type AddTagsToCertificateInput struct { // The key-value pair that defines the tag. The tag value is optional. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type AddTagsToCertificateOutput struct { diff --git a/service/acm/api_op_ImportCertificate.go b/service/acm/api_op_ImportCertificate.go index 10d98edd378..e3a9c8372fd 100644 --- a/service/acm/api_op_ImportCertificate.go +++ b/service/acm/api_op_ImportCertificate.go @@ -111,7 +111,7 @@ type ImportCertificateInput struct { // One or more resource tags to associate with the imported certificate. Note: You // cannot apply tags when reimporting a certificate. - Tags []*types.Tag + Tags []types.Tag } type ImportCertificateOutput struct { diff --git a/service/acm/api_op_ListCertificates.go b/service/acm/api_op_ListCertificates.go index 5aa315aff9a..662db8986ed 100644 --- a/service/acm/api_op_ListCertificates.go +++ b/service/acm/api_op_ListCertificates.go @@ -53,7 +53,7 @@ type ListCertificatesInput struct { type ListCertificatesOutput struct { // A list of ACM certificates. - CertificateSummaryList []*types.CertificateSummary + CertificateSummaryList []types.CertificateSummary // When the list is truncated, this value is present and contains the value to use // for the NextToken parameter in a subsequent pagination request. diff --git a/service/acm/api_op_ListTagsForCertificate.go b/service/acm/api_op_ListTagsForCertificate.go index 703ef58f4c0..323da6552b2 100644 --- a/service/acm/api_op_ListTagsForCertificate.go +++ b/service/acm/api_op_ListTagsForCertificate.go @@ -46,7 +46,7 @@ type ListTagsForCertificateInput struct { type ListTagsForCertificateOutput struct { // The key-value pairs that define the applied tags. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/acm/api_op_RemoveTagsFromCertificate.go b/service/acm/api_op_RemoveTagsFromCertificate.go index e4a28baa87d..0c3fe4d84f1 100644 --- a/service/acm/api_op_RemoveTagsFromCertificate.go +++ b/service/acm/api_op_RemoveTagsFromCertificate.go @@ -48,7 +48,7 @@ type RemoveTagsFromCertificateInput struct { // The key-value pair that defines the tag to remove. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type RemoveTagsFromCertificateOutput struct { diff --git a/service/acm/api_op_RequestCertificate.go b/service/acm/api_op_RequestCertificate.go index 608738f49c2..a5680132dc2 100644 --- a/service/acm/api_op_RequestCertificate.go +++ b/service/acm/api_op_RequestCertificate.go @@ -63,7 +63,7 @@ type RequestCertificateInput struct { // The domain name that you want ACM to use to send you emails so that you can // validate domain ownership. - DomainValidationOptions []*types.DomainValidationOption + DomainValidationOptions []types.DomainValidationOption // Customer chosen string that can be used to distinguish between calls to // RequestCertificate. Idempotency tokens time out after one hour. Therefore, if @@ -104,10 +104,10 @@ type RequestCertificateInput struct { // * (63 octets).(63 octets).(63 octets).(62 octets) is // not legal because the total length of the DNS name (63+1+63+1+63+1+62) exceeds // 253 octets. - SubjectAlternativeNames []*string + SubjectAlternativeNames []string // One or more resource tags to associate with the certificate. - Tags []*types.Tag + Tags []types.Tag // The method you want to use if you are requesting a public certificate to // validate that you own or control domain. You can validate with DNS diff --git a/service/acm/deserializers.go b/service/acm/deserializers.go index 7e5d732564f..e35c1098961 100644 --- a/service/acm/deserializers.go +++ b/service/acm/deserializers.go @@ -2015,7 +2015,7 @@ func awsAwsjson11_deserializeDocumentCertificateDetail(v **types.CertificateDeta if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "CertificateAuthorityArn": @@ -2024,7 +2024,7 @@ func awsAwsjson11_deserializeDocumentCertificateDetail(v **types.CertificateDeta if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateAuthorityArn = &jtv + sv.CertificateAuthorityArn = ptr.String(jtv) } case "CreatedAt": @@ -2046,7 +2046,7 @@ func awsAwsjson11_deserializeDocumentCertificateDetail(v **types.CertificateDeta if !ok { return fmt.Errorf("expected DomainNameString to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "DomainValidationOptions": @@ -2105,7 +2105,7 @@ func awsAwsjson11_deserializeDocumentCertificateDetail(v **types.CertificateDeta if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Issuer = &jtv + sv.Issuer = ptr.String(jtv) } case "KeyAlgorithm": @@ -2195,7 +2195,7 @@ func awsAwsjson11_deserializeDocumentCertificateDetail(v **types.CertificateDeta if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Serial = &jtv + sv.Serial = ptr.String(jtv) } case "SignatureAlgorithm": @@ -2204,7 +2204,7 @@ func awsAwsjson11_deserializeDocumentCertificateDetail(v **types.CertificateDeta if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SignatureAlgorithm = &jtv + sv.SignatureAlgorithm = ptr.String(jtv) } case "Status": @@ -2222,7 +2222,7 @@ func awsAwsjson11_deserializeDocumentCertificateDetail(v **types.CertificateDeta if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Subject = &jtv + sv.Subject = ptr.String(jtv) } case "SubjectAlternativeNames": @@ -2316,7 +2316,7 @@ func awsAwsjson11_deserializeDocumentCertificateSummary(v **types.CertificateSum if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "DomainName": @@ -2325,7 +2325,7 @@ func awsAwsjson11_deserializeDocumentCertificateSummary(v **types.CertificateSum if !ok { return fmt.Errorf("expected DomainNameString to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } default: @@ -2337,7 +2337,7 @@ func awsAwsjson11_deserializeDocumentCertificateSummary(v **types.CertificateSum return nil } -func awsAwsjson11_deserializeDocumentCertificateSummaryList(v *[]*types.CertificateSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentCertificateSummaryList(v *[]types.CertificateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2350,18 +2350,20 @@ func awsAwsjson11_deserializeDocumentCertificateSummaryList(v *[]*types.Certific return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CertificateSummary + var cv []types.CertificateSummary if *v == nil { - cv = []*types.CertificateSummary{} + cv = []types.CertificateSummary{} } else { cv = *v } for _, value := range shape { - var col *types.CertificateSummary - if err := awsAwsjson11_deserializeDocumentCertificateSummary(&col, value); err != nil { + var col types.CertificateSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCertificateSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2369,7 +2371,7 @@ func awsAwsjson11_deserializeDocumentCertificateSummaryList(v *[]*types.Certific return nil } -func awsAwsjson11_deserializeDocumentDomainList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDomainList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2382,21 +2384,21 @@ func awsAwsjson11_deserializeDocumentDomainList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DomainNameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2433,7 +2435,7 @@ func awsAwsjson11_deserializeDocumentDomainValidation(v **types.DomainValidation if !ok { return fmt.Errorf("expected DomainNameString to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "ResourceRecord": @@ -2447,7 +2449,7 @@ func awsAwsjson11_deserializeDocumentDomainValidation(v **types.DomainValidation if !ok { return fmt.Errorf("expected DomainNameString to be of type string, got %T instead", value) } - sv.ValidationDomain = &jtv + sv.ValidationDomain = ptr.String(jtv) } case "ValidationEmails": @@ -2482,7 +2484,7 @@ func awsAwsjson11_deserializeDocumentDomainValidation(v **types.DomainValidation return nil } -func awsAwsjson11_deserializeDocumentDomainValidationList(v *[]*types.DomainValidation, value interface{}) error { +func awsAwsjson11_deserializeDocumentDomainValidationList(v *[]types.DomainValidation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2495,18 +2497,20 @@ func awsAwsjson11_deserializeDocumentDomainValidationList(v *[]*types.DomainVali return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainValidation + var cv []types.DomainValidation if *v == nil { - cv = []*types.DomainValidation{} + cv = []types.DomainValidation{} } else { cv = *v } for _, value := range shape { - var col *types.DomainValidation - if err := awsAwsjson11_deserializeDocumentDomainValidation(&col, value); err != nil { + var col types.DomainValidation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDomainValidation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2551,7 +2555,7 @@ func awsAwsjson11_deserializeDocumentExtendedKeyUsage(v **types.ExtendedKeyUsage if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OID = &jtv + sv.OID = ptr.String(jtv) } default: @@ -2563,7 +2567,7 @@ func awsAwsjson11_deserializeDocumentExtendedKeyUsage(v **types.ExtendedKeyUsage return nil } -func awsAwsjson11_deserializeDocumentExtendedKeyUsageList(v *[]*types.ExtendedKeyUsage, value interface{}) error { +func awsAwsjson11_deserializeDocumentExtendedKeyUsageList(v *[]types.ExtendedKeyUsage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2576,18 +2580,20 @@ func awsAwsjson11_deserializeDocumentExtendedKeyUsageList(v *[]*types.ExtendedKe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExtendedKeyUsage + var cv []types.ExtendedKeyUsage if *v == nil { - cv = []*types.ExtendedKeyUsage{} + cv = []types.ExtendedKeyUsage{} } else { cv = *v } for _, value := range shape { - var col *types.ExtendedKeyUsage - if err := awsAwsjson11_deserializeDocumentExtendedKeyUsage(&col, value); err != nil { + var col types.ExtendedKeyUsage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExtendedKeyUsage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2595,7 +2601,7 @@ func awsAwsjson11_deserializeDocumentExtendedKeyUsageList(v *[]*types.ExtendedKe return nil } -func awsAwsjson11_deserializeDocumentInUseList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentInUseList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2608,21 +2614,21 @@ func awsAwsjson11_deserializeDocumentInUseList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -2659,7 +2665,7 @@ func awsAwsjson11_deserializeDocumentInvalidArgsException(v **types.InvalidArgsE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2699,7 +2705,7 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2739,7 +2745,7 @@ func awsAwsjson11_deserializeDocumentInvalidDomainValidationOptionsException(v * if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2779,7 +2785,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2819,7 +2825,7 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2859,7 +2865,7 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2911,7 +2917,7 @@ func awsAwsjson11_deserializeDocumentKeyUsage(v **types.KeyUsage, value interfac return nil } -func awsAwsjson11_deserializeDocumentKeyUsageList(v *[]*types.KeyUsage, value interface{}) error { +func awsAwsjson11_deserializeDocumentKeyUsageList(v *[]types.KeyUsage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2924,18 +2930,20 @@ func awsAwsjson11_deserializeDocumentKeyUsageList(v *[]*types.KeyUsage, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyUsage + var cv []types.KeyUsage if *v == nil { - cv = []*types.KeyUsage{} + cv = []types.KeyUsage{} } else { cv = *v } for _, value := range shape { - var col *types.KeyUsage - if err := awsAwsjson11_deserializeDocumentKeyUsage(&col, value); err != nil { + var col types.KeyUsage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentKeyUsage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2971,7 +2979,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3078,7 +3086,7 @@ func awsAwsjson11_deserializeDocumentRequestInProgressException(v **types.Reques if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3118,7 +3126,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3158,7 +3166,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3198,7 +3206,7 @@ func awsAwsjson11_deserializeDocumentResourceRecord(v **types.ResourceRecord, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Type": @@ -3216,7 +3224,7 @@ func awsAwsjson11_deserializeDocumentResourceRecord(v **types.ResourceRecord, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -3256,7 +3264,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -3265,7 +3273,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -3277,7 +3285,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3290,18 +3298,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3337,7 +3347,7 @@ func awsAwsjson11_deserializeDocumentTagPolicyException(v **types.TagPolicyExcep if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3377,7 +3387,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3389,7 +3399,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE return nil } -func awsAwsjson11_deserializeDocumentValidationEmailList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentValidationEmailList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3402,21 +3412,21 @@ func awsAwsjson11_deserializeDocumentValidationEmailList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -3551,7 +3561,7 @@ func awsAwsjson11_deserializeOpDocumentExportCertificateOutput(v **ExportCertifi if !ok { return fmt.Errorf("expected CertificateBody to be of type string, got %T instead", value) } - sv.Certificate = &jtv + sv.Certificate = ptr.String(jtv) } case "CertificateChain": @@ -3560,7 +3570,7 @@ func awsAwsjson11_deserializeOpDocumentExportCertificateOutput(v **ExportCertifi if !ok { return fmt.Errorf("expected CertificateChain to be of type string, got %T instead", value) } - sv.CertificateChain = &jtv + sv.CertificateChain = ptr.String(jtv) } case "PrivateKey": @@ -3569,7 +3579,7 @@ func awsAwsjson11_deserializeOpDocumentExportCertificateOutput(v **ExportCertifi if !ok { return fmt.Errorf("expected PrivateKey to be of type string, got %T instead", value) } - sv.PrivateKey = &jtv + sv.PrivateKey = ptr.String(jtv) } default: @@ -3609,7 +3619,7 @@ func awsAwsjson11_deserializeOpDocumentGetCertificateOutput(v **GetCertificateOu if !ok { return fmt.Errorf("expected CertificateBody to be of type string, got %T instead", value) } - sv.Certificate = &jtv + sv.Certificate = ptr.String(jtv) } case "CertificateChain": @@ -3618,7 +3628,7 @@ func awsAwsjson11_deserializeOpDocumentGetCertificateOutput(v **GetCertificateOu if !ok { return fmt.Errorf("expected CertificateChain to be of type string, got %T instead", value) } - sv.CertificateChain = &jtv + sv.CertificateChain = ptr.String(jtv) } default: @@ -3658,7 +3668,7 @@ func awsAwsjson11_deserializeOpDocumentImportCertificateOutput(v **ImportCertifi if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } default: @@ -3703,7 +3713,7 @@ func awsAwsjson11_deserializeOpDocumentListCertificatesOutput(v **ListCertificat if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3841,7 +3851,7 @@ func awsAwsjson11_deserializeOpDocumentRequestCertificateOutput(v **RequestCerti if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } default: diff --git a/service/acm/go.mod b/service/acm/go.mod index 3f3100fd07c..2e03b8a47a9 100644 --- a/service/acm/go.mod +++ b/service/acm/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/acm go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/acm/serializers.go b/service/acm/serializers.go index 18c023ae3e5..83976808a80 100644 --- a/service/acm/serializers.go +++ b/service/acm/serializers.go @@ -634,17 +634,13 @@ func awsAwsjson11_serializeDocumentCertificateStatuses(v []types.CertificateStat return nil } -func awsAwsjson11_serializeDocumentDomainList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDomainList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -666,17 +662,13 @@ func awsAwsjson11_serializeDocumentDomainValidationOption(v *types.DomainValidat return nil } -func awsAwsjson11_serializeDocumentDomainValidationOptionList(v []*types.DomainValidationOption, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDomainValidationOptionList(v []types.DomainValidationOption, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDomainValidationOption(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDomainValidationOption(&v[i], av); err != nil { return err } } @@ -761,17 +753,13 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/acm/types/types.go b/service/acm/types/types.go index 4c57daccb30..f8009fd8c4d 100644 --- a/service/acm/types/types.go +++ b/service/acm/types/types.go @@ -32,12 +32,12 @@ type CertificateDetail struct { // Contains information about the initial validation of each domain name that // occurs as a result of the RequestCertificate request. This field exists only // when the certificate type is AMAZON_ISSUED. - DomainValidationOptions []*DomainValidation + DomainValidationOptions []DomainValidation // Contains a list of Extended Key Usage X.509 v3 extension objects. Each object // specifies a purpose for which the certificate public key can be used and // consists of a name and an object identifier (OID). - ExtendedKeyUsages []*ExtendedKeyUsage + ExtendedKeyUsages []ExtendedKeyUsage // The reason the certificate request failed. This value exists only when the // certificate status is FAILED. For more information, see Certificate Request @@ -52,7 +52,7 @@ type CertificateDetail struct { // A list of ARNs for the AWS resources that are using the certificate. A // certificate can be used by multiple AWS resources. - InUseBy []*string + InUseBy []string // The time at which the certificate was issued. This value exists only when the // certificate type is AMAZON_ISSUED. @@ -68,7 +68,7 @@ type CertificateDetail struct { // that identifies the purpose of the public key contained in the certificate. // Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, // NON_REPUDIATION, and more. - KeyUsages []*KeyUsage + KeyUsages []KeyUsage // The time after which the certificate is not valid. NotAfter *time.Time @@ -118,7 +118,7 @@ type CertificateDetail struct { // key that is contained in the certificate. The subject alternative names include // the canonical domain name (CN) of the certificate and additional domain names // that can be used to connect to the website. - SubjectAlternativeNames []*string + SubjectAlternativeNames []string // The source of the certificate. For certificates provided by ACM, this value is // AMAZON_ISSUED. For certificates that you imported with ImportCertificate, this @@ -185,7 +185,7 @@ type DomainValidation struct { ValidationDomain *string // A list of email addresses that ACM used to send domain validation emails. - ValidationEmails []*string + ValidationEmails []string // Specifies the domain validation method. ValidationMethod ValidationMethod @@ -309,7 +309,7 @@ type RenewalSummary struct { // AMAZON_ISSUED. // // This member is required. - DomainValidationOptions []*DomainValidation + DomainValidationOptions []DomainValidation // The status of ACM's managed renewal // (https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html) of the diff --git a/service/acm/validators.go b/service/acm/validators.go index 8334017c99a..a70eab2f168 100644 --- a/service/acm/validators.go +++ b/service/acm/validators.go @@ -316,13 +316,13 @@ func validateDomainValidationOption(v *types.DomainValidationOption) error { } } -func validateDomainValidationOptionList(v []*types.DomainValidationOption) error { +func validateDomainValidationOptionList(v []types.DomainValidationOption) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DomainValidationOptionList"} for i := range v { - if err := validateDomainValidationOption(v[i]); err != nil { + if err := validateDomainValidationOption(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -348,13 +348,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/acmpca/api_op_CreateCertificateAuthority.go b/service/acmpca/api_op_CreateCertificateAuthority.go index 7dc01ca1ee1..81f264c5156 100644 --- a/service/acmpca/api_op_CreateCertificateAuthority.go +++ b/service/acmpca/api_op_CreateCertificateAuthority.go @@ -78,7 +78,7 @@ type CreateCertificateAuthorityInput struct { // up to 50 tags with a private CA. For information using tags with IAM to manage // permissions, see Controlling Access Using IAM Tags // (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). - Tags []*types.Tag + Tags []types.Tag } type CreateCertificateAuthorityOutput struct { diff --git a/service/acmpca/api_op_ListCertificateAuthorities.go b/service/acmpca/api_op_ListCertificateAuthorities.go index af64f13bf08..79e81ae48e0 100644 --- a/service/acmpca/api_op_ListCertificateAuthorities.go +++ b/service/acmpca/api_op_ListCertificateAuthorities.go @@ -51,7 +51,7 @@ type ListCertificateAuthoritiesInput struct { type ListCertificateAuthoritiesOutput struct { // Summary information about each certificate authority you have created. - CertificateAuthorities []*types.CertificateAuthority + CertificateAuthorities []types.CertificateAuthority // When the list is truncated, this value is present and should be used for the // NextToken parameter in a subsequent pagination request. diff --git a/service/acmpca/api_op_ListPermissions.go b/service/acmpca/api_op_ListPermissions.go index 9e6fbae4418..e4f131c8f62 100644 --- a/service/acmpca/api_op_ListPermissions.go +++ b/service/acmpca/api_op_ListPermissions.go @@ -82,7 +82,7 @@ type ListPermissionsOutput struct { // Summary information about each permission assigned by the specified private CA, // including the action enabled, the policy provided, and the time of creation. - Permissions []*types.Permission + Permissions []types.Permission // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/acmpca/api_op_ListTags.go b/service/acmpca/api_op_ListTags.go index 9e04ca97d33..30f3e13adfc 100644 --- a/service/acmpca/api_op_ListTags.go +++ b/service/acmpca/api_op_ListTags.go @@ -64,7 +64,7 @@ type ListTagsOutput struct { NextToken *string // The tags associated with your private CA. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/acmpca/api_op_TagCertificateAuthority.go b/service/acmpca/api_op_TagCertificateAuthority.go index 19c929e139f..e696d8f3dc2 100644 --- a/service/acmpca/api_op_TagCertificateAuthority.go +++ b/service/acmpca/api_op_TagCertificateAuthority.go @@ -52,7 +52,7 @@ type TagCertificateAuthorityInput struct { // List of tags to be associated with the CA. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagCertificateAuthorityOutput struct { diff --git a/service/acmpca/api_op_UntagCertificateAuthority.go b/service/acmpca/api_op_UntagCertificateAuthority.go index e1bbffb73f4..f7aee322b5e 100644 --- a/service/acmpca/api_op_UntagCertificateAuthority.go +++ b/service/acmpca/api_op_UntagCertificateAuthority.go @@ -49,7 +49,7 @@ type UntagCertificateAuthorityInput struct { // List of tags to be removed from the CA. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type UntagCertificateAuthorityOutput struct { diff --git a/service/acmpca/deserializers.go b/service/acmpca/deserializers.go index 3c01ab0b8c3..6426ae6e0b4 100644 --- a/service/acmpca/deserializers.go +++ b/service/acmpca/deserializers.go @@ -3562,7 +3562,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected String64 to be of type string, got %T instead", value) } - sv.CommonName = &jtv + sv.CommonName = ptr.String(jtv) } case "Country": @@ -3571,7 +3571,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected CountryCodeString to be of type string, got %T instead", value) } - sv.Country = &jtv + sv.Country = ptr.String(jtv) } case "DistinguishedNameQualifier": @@ -3580,7 +3580,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected ASN1PrintableString64 to be of type string, got %T instead", value) } - sv.DistinguishedNameQualifier = &jtv + sv.DistinguishedNameQualifier = ptr.String(jtv) } case "GenerationQualifier": @@ -3589,7 +3589,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected String3 to be of type string, got %T instead", value) } - sv.GenerationQualifier = &jtv + sv.GenerationQualifier = ptr.String(jtv) } case "GivenName": @@ -3598,7 +3598,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected String16 to be of type string, got %T instead", value) } - sv.GivenName = &jtv + sv.GivenName = ptr.String(jtv) } case "Initials": @@ -3607,7 +3607,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected String5 to be of type string, got %T instead", value) } - sv.Initials = &jtv + sv.Initials = ptr.String(jtv) } case "Locality": @@ -3616,7 +3616,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected String128 to be of type string, got %T instead", value) } - sv.Locality = &jtv + sv.Locality = ptr.String(jtv) } case "Organization": @@ -3625,7 +3625,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected String64 to be of type string, got %T instead", value) } - sv.Organization = &jtv + sv.Organization = ptr.String(jtv) } case "OrganizationalUnit": @@ -3634,7 +3634,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected String64 to be of type string, got %T instead", value) } - sv.OrganizationalUnit = &jtv + sv.OrganizationalUnit = ptr.String(jtv) } case "Pseudonym": @@ -3643,7 +3643,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected String128 to be of type string, got %T instead", value) } - sv.Pseudonym = &jtv + sv.Pseudonym = ptr.String(jtv) } case "SerialNumber": @@ -3652,7 +3652,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected ASN1PrintableString64 to be of type string, got %T instead", value) } - sv.SerialNumber = &jtv + sv.SerialNumber = ptr.String(jtv) } case "State": @@ -3661,7 +3661,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected String128 to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } case "Surname": @@ -3670,7 +3670,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected String40 to be of type string, got %T instead", value) } - sv.Surname = &jtv + sv.Surname = ptr.String(jtv) } case "Title": @@ -3679,7 +3679,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in if !ok { return fmt.Errorf("expected String64 to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } default: @@ -3691,7 +3691,7 @@ func awsAwsjson11_deserializeDocumentASN1Subject(v **types.ASN1Subject, value in return nil } -func awsAwsjson11_deserializeDocumentCertificateAuthorities(v *[]*types.CertificateAuthority, value interface{}) error { +func awsAwsjson11_deserializeDocumentCertificateAuthorities(v *[]types.CertificateAuthority, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3704,18 +3704,20 @@ func awsAwsjson11_deserializeDocumentCertificateAuthorities(v *[]*types.Certific return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CertificateAuthority + var cv []types.CertificateAuthority if *v == nil { - cv = []*types.CertificateAuthority{} + cv = []types.CertificateAuthority{} } else { cv = *v } for _, value := range shape { - var col *types.CertificateAuthority - if err := awsAwsjson11_deserializeDocumentCertificateAuthority(&col, value); err != nil { + var col types.CertificateAuthority + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCertificateAuthority(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3751,7 +3753,7 @@ func awsAwsjson11_deserializeDocumentCertificateAuthority(v **types.CertificateA if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CertificateAuthorityConfiguration": @@ -3826,7 +3828,7 @@ func awsAwsjson11_deserializeDocumentCertificateAuthority(v **types.CertificateA if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "RestorableUntil": @@ -3853,7 +3855,7 @@ func awsAwsjson11_deserializeDocumentCertificateAuthority(v **types.CertificateA if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Serial = &jtv + sv.Serial = ptr.String(jtv) } case "Status": @@ -3965,7 +3967,7 @@ func awsAwsjson11_deserializeDocumentCertificateMismatchException(v **types.Cert if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4005,7 +4007,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4045,7 +4047,7 @@ func awsAwsjson11_deserializeDocumentCrlConfiguration(v **types.CrlConfiguration if !ok { return fmt.Errorf("expected String253 to be of type string, got %T instead", value) } - sv.CustomCname = &jtv + sv.CustomCname = ptr.String(jtv) } case "Enabled": @@ -4054,7 +4056,7 @@ func awsAwsjson11_deserializeDocumentCrlConfiguration(v **types.CrlConfiguration if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "ExpirationInDays": @@ -4076,7 +4078,7 @@ func awsAwsjson11_deserializeDocumentCrlConfiguration(v **types.CrlConfiguration if !ok { return fmt.Errorf("expected String3To255 to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } default: @@ -4116,7 +4118,7 @@ func awsAwsjson11_deserializeDocumentInvalidArgsException(v **types.InvalidArgsE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4156,7 +4158,7 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4196,7 +4198,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4236,7 +4238,7 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyException(v **types.InvalidPol if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4276,7 +4278,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4316,7 +4318,7 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4356,7 +4358,7 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4396,7 +4398,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4436,7 +4438,7 @@ func awsAwsjson11_deserializeDocumentLockoutPreventedException(v **types.Lockout if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4476,7 +4478,7 @@ func awsAwsjson11_deserializeDocumentMalformedCertificateException(v **types.Mal if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4516,7 +4518,7 @@ func awsAwsjson11_deserializeDocumentMalformedCSRException(v **types.MalformedCS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4561,7 +4563,7 @@ func awsAwsjson11_deserializeDocumentPermission(v **types.Permission, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateAuthorityArn = &jtv + sv.CertificateAuthorityArn = ptr.String(jtv) } case "CreatedAt": @@ -4583,7 +4585,7 @@ func awsAwsjson11_deserializeDocumentPermission(v **types.Permission, value inte if !ok { return fmt.Errorf("expected AWSPolicy to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "Principal": @@ -4592,7 +4594,7 @@ func awsAwsjson11_deserializeDocumentPermission(v **types.Permission, value inte if !ok { return fmt.Errorf("expected Principal to be of type string, got %T instead", value) } - sv.Principal = &jtv + sv.Principal = ptr.String(jtv) } case "SourceAccount": @@ -4601,7 +4603,7 @@ func awsAwsjson11_deserializeDocumentPermission(v **types.Permission, value inte if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.SourceAccount = &jtv + sv.SourceAccount = ptr.String(jtv) } default: @@ -4641,7 +4643,7 @@ func awsAwsjson11_deserializeDocumentPermissionAlreadyExistsException(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4653,7 +4655,7 @@ func awsAwsjson11_deserializeDocumentPermissionAlreadyExistsException(v **types. return nil } -func awsAwsjson11_deserializeDocumentPermissionList(v *[]*types.Permission, value interface{}) error { +func awsAwsjson11_deserializeDocumentPermissionList(v *[]types.Permission, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4666,18 +4668,20 @@ func awsAwsjson11_deserializeDocumentPermissionList(v *[]*types.Permission, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Permission + var cv []types.Permission if *v == nil { - cv = []*types.Permission{} + cv = []types.Permission{} } else { cv = *v } for _, value := range shape { - var col *types.Permission - if err := awsAwsjson11_deserializeDocumentPermission(&col, value); err != nil { + var col types.Permission + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPermission(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4713,7 +4717,7 @@ func awsAwsjson11_deserializeDocumentRequestAlreadyProcessedException(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4753,7 +4757,7 @@ func awsAwsjson11_deserializeDocumentRequestFailedException(v **types.RequestFai if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4793,7 +4797,7 @@ func awsAwsjson11_deserializeDocumentRequestInProgressException(v **types.Reques if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4833,7 +4837,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4909,7 +4913,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -4918,7 +4922,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4930,7 +4934,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4943,18 +4947,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4990,7 +4996,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5030,7 +5036,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCertificateAuthorityAuditReportOutp if !ok { return fmt.Errorf("expected AuditReportId to be of type string, got %T instead", value) } - sv.AuditReportId = &jtv + sv.AuditReportId = ptr.String(jtv) } case "S3Key": @@ -5039,7 +5045,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCertificateAuthorityAuditReportOutp if !ok { return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.S3Key = &jtv + sv.S3Key = ptr.String(jtv) } default: @@ -5079,7 +5085,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCertificateAuthorityOutput(v **Crea if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateAuthorityArn = &jtv + sv.CertificateAuthorityArn = ptr.String(jtv) } default: @@ -5265,7 +5271,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCertificateAuthorityAuditReportOu if !ok { return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "S3Key": @@ -5274,7 +5280,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCertificateAuthorityAuditReportOu if !ok { return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.S3Key = &jtv + sv.S3Key = ptr.String(jtv) } default: @@ -5350,7 +5356,7 @@ func awsAwsjson11_deserializeOpDocumentGetCertificateAuthorityCertificateOutput( if !ok { return fmt.Errorf("expected CertificateBody to be of type string, got %T instead", value) } - sv.Certificate = &jtv + sv.Certificate = ptr.String(jtv) } case "CertificateChain": @@ -5359,7 +5365,7 @@ func awsAwsjson11_deserializeOpDocumentGetCertificateAuthorityCertificateOutput( if !ok { return fmt.Errorf("expected CertificateChain to be of type string, got %T instead", value) } - sv.CertificateChain = &jtv + sv.CertificateChain = ptr.String(jtv) } default: @@ -5399,7 +5405,7 @@ func awsAwsjson11_deserializeOpDocumentGetCertificateAuthorityCsrOutput(v **GetC if !ok { return fmt.Errorf("expected CsrBody to be of type string, got %T instead", value) } - sv.Csr = &jtv + sv.Csr = ptr.String(jtv) } default: @@ -5439,7 +5445,7 @@ func awsAwsjson11_deserializeOpDocumentGetCertificateOutput(v **GetCertificateOu if !ok { return fmt.Errorf("expected CertificateBody to be of type string, got %T instead", value) } - sv.Certificate = &jtv + sv.Certificate = ptr.String(jtv) } case "CertificateChain": @@ -5448,7 +5454,7 @@ func awsAwsjson11_deserializeOpDocumentGetCertificateOutput(v **GetCertificateOu if !ok { return fmt.Errorf("expected CertificateChain to be of type string, got %T instead", value) } - sv.CertificateChain = &jtv + sv.CertificateChain = ptr.String(jtv) } default: @@ -5488,7 +5494,7 @@ func awsAwsjson11_deserializeOpDocumentGetPolicyOutput(v **GetPolicyOutput, valu if !ok { return fmt.Errorf("expected AWSPolicy to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -5559,7 +5565,7 @@ func awsAwsjson11_deserializeOpDocumentIssueCertificateOutput(v **IssueCertifica if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } default: @@ -5604,7 +5610,7 @@ func awsAwsjson11_deserializeOpDocumentListCertificateAuthoritiesOutput(v **List if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5644,7 +5650,7 @@ func awsAwsjson11_deserializeOpDocumentListPermissionsOutput(v **ListPermissions if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Permissions": @@ -5689,7 +5695,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsOutput(v **ListTagsOutput, value if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": diff --git a/service/acmpca/go.mod b/service/acmpca/go.mod index 19820c125ba..c5ed92ae298 100644 --- a/service/acmpca/go.mod +++ b/service/acmpca/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/acmpca go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/acmpca/serializers.go b/service/acmpca/serializers.go index 09f56e076cd..4b52c716b80 100644 --- a/service/acmpca/serializers.go +++ b/service/acmpca/serializers.go @@ -1192,9 +1192,9 @@ func awsAwsjson11_serializeDocumentCrlConfiguration(v *types.CrlConfiguration, v ok.String(*v.CustomCname) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.ExpirationInDays != nil { @@ -1241,17 +1241,13 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/acmpca/types/types.go b/service/acmpca/types/types.go index 41fc7676c69..baeefd4dfcc 100644 --- a/service/acmpca/types/types.go +++ b/service/acmpca/types/types.go @@ -239,7 +239,7 @@ type CrlConfiguration struct { // action. // // This member is required. - Enabled *bool + Enabled bool // Name inserted into the certificate CRL Distribution Points extension that // enables the use of an alias for the CRL distribution point. Use this value if diff --git a/service/acmpca/validators.go b/service/acmpca/validators.go index 04efa73602a..124e617acdc 100644 --- a/service/acmpca/validators.go +++ b/service/acmpca/validators.go @@ -564,9 +564,6 @@ func validateCrlConfiguration(v *types.CrlConfiguration) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CrlConfiguration"} - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -606,13 +603,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/alexaforbusiness/api_op_CreateBusinessReportSchedule.go b/service/alexaforbusiness/api_op_CreateBusinessReportSchedule.go index 05bc12ba39f..9bf7f6da1f8 100644 --- a/service/alexaforbusiness/api_op_CreateBusinessReportSchedule.go +++ b/service/alexaforbusiness/api_op_CreateBusinessReportSchedule.go @@ -60,7 +60,7 @@ type CreateBusinessReportScheduleInput struct { ScheduleName *string // The tags for the business report schedule. - Tags []*types.Tag + Tags []types.Tag } type CreateBusinessReportScheduleOutput struct { diff --git a/service/alexaforbusiness/api_op_CreateContact.go b/service/alexaforbusiness/api_op_CreateContact.go index fa9bdff5172..9974235c7ef 100644 --- a/service/alexaforbusiness/api_op_CreateContact.go +++ b/service/alexaforbusiness/api_op_CreateContact.go @@ -50,10 +50,10 @@ type CreateContactInput struct { PhoneNumber *string // The list of phone numbers for the contact. - PhoneNumbers []*types.PhoneNumber + PhoneNumbers []types.PhoneNumber // The list of SIP addresses for the contact. - SipAddresses []*types.SipAddress + SipAddresses []types.SipAddress } type CreateContactOutput struct { diff --git a/service/alexaforbusiness/api_op_CreateNetworkProfile.go b/service/alexaforbusiness/api_op_CreateNetworkProfile.go index 8ab62f4f9a8..68b6915c7f6 100644 --- a/service/alexaforbusiness/api_op_CreateNetworkProfile.go +++ b/service/alexaforbusiness/api_op_CreateNetworkProfile.go @@ -72,7 +72,7 @@ type CreateNetworkProfileInput struct { // The root certificates of your authentication server that is installed on your // devices and used to trust your authentication server during EAP negotiation. - TrustAnchors []*string + TrustAnchors []string } type CreateNetworkProfileOutput struct { diff --git a/service/alexaforbusiness/api_op_CreateProfile.go b/service/alexaforbusiness/api_op_CreateProfile.go index a20d4ea4535..adf073248f0 100644 --- a/service/alexaforbusiness/api_op_CreateProfile.go +++ b/service/alexaforbusiness/api_op_CreateProfile.go @@ -80,7 +80,7 @@ type CreateProfileInput struct { SetupModeDisabled *bool // The tags for the profile. - Tags []*types.Tag + Tags []types.Tag } type CreateProfileOutput struct { diff --git a/service/alexaforbusiness/api_op_CreateRoom.go b/service/alexaforbusiness/api_op_CreateRoom.go index 2486f3cdc09..4ed62d96b38 100644 --- a/service/alexaforbusiness/api_op_CreateRoom.go +++ b/service/alexaforbusiness/api_op_CreateRoom.go @@ -48,7 +48,7 @@ type CreateRoomInput struct { ProviderCalendarId *string // The tags for the room. - Tags []*types.Tag + Tags []types.Tag } type CreateRoomOutput struct { diff --git a/service/alexaforbusiness/api_op_CreateSkillGroup.go b/service/alexaforbusiness/api_op_CreateSkillGroup.go index f3dcec8a6ea..676d9d38e38 100644 --- a/service/alexaforbusiness/api_op_CreateSkillGroup.go +++ b/service/alexaforbusiness/api_op_CreateSkillGroup.go @@ -42,7 +42,7 @@ type CreateSkillGroupInput struct { Description *string // The tags for the skill group. - Tags []*types.Tag + Tags []types.Tag } type CreateSkillGroupOutput struct { diff --git a/service/alexaforbusiness/api_op_CreateUser.go b/service/alexaforbusiness/api_op_CreateUser.go index ba2eb5f6069..054d2865020 100644 --- a/service/alexaforbusiness/api_op_CreateUser.go +++ b/service/alexaforbusiness/api_op_CreateUser.go @@ -48,7 +48,7 @@ type CreateUserInput struct { LastName *string // The tags for the user. - Tags []*types.Tag + Tags []types.Tag } type CreateUserOutput struct { diff --git a/service/alexaforbusiness/api_op_GetInvitationConfiguration.go b/service/alexaforbusiness/api_op_GetInvitationConfiguration.go index 74d8945a4bb..4c0dad4b345 100644 --- a/service/alexaforbusiness/api_op_GetInvitationConfiguration.go +++ b/service/alexaforbusiness/api_op_GetInvitationConfiguration.go @@ -41,7 +41,7 @@ type GetInvitationConfigurationOutput struct { // The list of private skill IDs that you want to recommend to the user to enable // in the invitation. - PrivateSkillIds []*string + PrivateSkillIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/alexaforbusiness/api_op_ListBusinessReportSchedules.go b/service/alexaforbusiness/api_op_ListBusinessReportSchedules.go index 23db45c505c..38b5d1733a0 100644 --- a/service/alexaforbusiness/api_op_ListBusinessReportSchedules.go +++ b/service/alexaforbusiness/api_op_ListBusinessReportSchedules.go @@ -41,7 +41,7 @@ type ListBusinessReportSchedulesInput struct { type ListBusinessReportSchedulesOutput struct { // The schedule of the reports. - BusinessReportSchedules []*types.BusinessReportSchedule + BusinessReportSchedules []types.BusinessReportSchedule // The token used to list the remaining schedules from the previous API call. NextToken *string diff --git a/service/alexaforbusiness/api_op_ListConferenceProviders.go b/service/alexaforbusiness/api_op_ListConferenceProviders.go index cc64e5482f3..f561d0e9448 100644 --- a/service/alexaforbusiness/api_op_ListConferenceProviders.go +++ b/service/alexaforbusiness/api_op_ListConferenceProviders.go @@ -39,7 +39,7 @@ type ListConferenceProvidersInput struct { type ListConferenceProvidersOutput struct { // The conference providers. - ConferenceProviders []*types.ConferenceProvider + ConferenceProviders []types.ConferenceProvider // The tokens used for pagination. NextToken *string diff --git a/service/alexaforbusiness/api_op_ListDeviceEvents.go b/service/alexaforbusiness/api_op_ListDeviceEvents.go index d5ac4d02f40..263f28f0a2b 100644 --- a/service/alexaforbusiness/api_op_ListDeviceEvents.go +++ b/service/alexaforbusiness/api_op_ListDeviceEvents.go @@ -56,7 +56,7 @@ type ListDeviceEventsInput struct { type ListDeviceEventsOutput struct { // The device events requested for the device ARN. - DeviceEvents []*types.DeviceEvent + DeviceEvents []types.DeviceEvent // The token returned to indicate that there is more data available. NextToken *string diff --git a/service/alexaforbusiness/api_op_ListGatewayGroups.go b/service/alexaforbusiness/api_op_ListGatewayGroups.go index 86ff833fa28..1fcb7b87afb 100644 --- a/service/alexaforbusiness/api_op_ListGatewayGroups.go +++ b/service/alexaforbusiness/api_op_ListGatewayGroups.go @@ -40,7 +40,7 @@ type ListGatewayGroupsInput struct { type ListGatewayGroupsOutput struct { // The gateway groups in the list. - GatewayGroups []*types.GatewayGroupSummary + GatewayGroups []types.GatewayGroupSummary // The token used to paginate though multiple pages of gateway group summaries. NextToken *string diff --git a/service/alexaforbusiness/api_op_ListGateways.go b/service/alexaforbusiness/api_op_ListGateways.go index 9b5f66cefb0..0736128da8a 100644 --- a/service/alexaforbusiness/api_op_ListGateways.go +++ b/service/alexaforbusiness/api_op_ListGateways.go @@ -44,7 +44,7 @@ type ListGatewaysInput struct { type ListGatewaysOutput struct { // The gateways in the list. - Gateways []*types.GatewaySummary + Gateways []types.GatewaySummary // The token used to paginate though multiple pages of gateway summaries. NextToken *string diff --git a/service/alexaforbusiness/api_op_ListSkills.go b/service/alexaforbusiness/api_op_ListSkills.go index d8c76d33300..f5c6bada777 100644 --- a/service/alexaforbusiness/api_op_ListSkills.go +++ b/service/alexaforbusiness/api_op_ListSkills.go @@ -55,7 +55,7 @@ type ListSkillsOutput struct { NextToken *string // The list of enabled skills requested. Required. - SkillSummaries []*types.SkillSummary + SkillSummaries []types.SkillSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/alexaforbusiness/api_op_ListSkillsStoreCategories.go b/service/alexaforbusiness/api_op_ListSkillsStoreCategories.go index 16b3d235cb9..8d0e586be3c 100644 --- a/service/alexaforbusiness/api_op_ListSkillsStoreCategories.go +++ b/service/alexaforbusiness/api_op_ListSkillsStoreCategories.go @@ -39,7 +39,7 @@ type ListSkillsStoreCategoriesInput struct { type ListSkillsStoreCategoriesOutput struct { // The list of categories. - CategoryList []*types.Category + CategoryList []types.Category // The tokens used for pagination. NextToken *string diff --git a/service/alexaforbusiness/api_op_ListSkillsStoreSkillsByCategory.go b/service/alexaforbusiness/api_op_ListSkillsStoreSkillsByCategory.go index a17f7e794cb..acf4e5fedc3 100644 --- a/service/alexaforbusiness/api_op_ListSkillsStoreSkillsByCategory.go +++ b/service/alexaforbusiness/api_op_ListSkillsStoreSkillsByCategory.go @@ -47,7 +47,7 @@ type ListSkillsStoreSkillsByCategoryOutput struct { NextToken *string // The skill store skills. - SkillsStoreSkills []*types.SkillsStoreSkill + SkillsStoreSkills []types.SkillsStoreSkill // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/alexaforbusiness/api_op_ListSmartHomeAppliances.go b/service/alexaforbusiness/api_op_ListSmartHomeAppliances.go index b671e068bda..cd641b60f02 100644 --- a/service/alexaforbusiness/api_op_ListSmartHomeAppliances.go +++ b/service/alexaforbusiness/api_op_ListSmartHomeAppliances.go @@ -47,7 +47,7 @@ type ListSmartHomeAppliancesOutput struct { NextToken *string // The smart home appliances. - SmartHomeAppliances []*types.SmartHomeAppliance + SmartHomeAppliances []types.SmartHomeAppliance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/alexaforbusiness/api_op_ListTags.go b/service/alexaforbusiness/api_op_ListTags.go index f97a56483b7..0a58640df79 100644 --- a/service/alexaforbusiness/api_op_ListTags.go +++ b/service/alexaforbusiness/api_op_ListTags.go @@ -51,7 +51,7 @@ type ListTagsOutput struct { NextToken *string // The tags requested for the specified resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/alexaforbusiness/api_op_PutInvitationConfiguration.go b/service/alexaforbusiness/api_op_PutInvitationConfiguration.go index 294aee2d35f..a9381dd17b7 100644 --- a/service/alexaforbusiness/api_op_PutInvitationConfiguration.go +++ b/service/alexaforbusiness/api_op_PutInvitationConfiguration.go @@ -40,7 +40,7 @@ type PutInvitationConfigurationInput struct { // The list of private skill IDs that you want to recommend to the user to enable // in the invitation. - PrivateSkillIds []*string + PrivateSkillIds []string } type PutInvitationConfigurationOutput struct { diff --git a/service/alexaforbusiness/api_op_PutSkillAuthorization.go b/service/alexaforbusiness/api_op_PutSkillAuthorization.go index 5f6a48e3894..83468c40a31 100644 --- a/service/alexaforbusiness/api_op_PutSkillAuthorization.go +++ b/service/alexaforbusiness/api_op_PutSkillAuthorization.go @@ -34,7 +34,7 @@ type PutSkillAuthorizationInput struct { // populated in the AuthorizationResult map to establish the authorization. // // This member is required. - AuthorizationResult map[string]*string + AuthorizationResult map[string]string // The unique identifier of a skill. // diff --git a/service/alexaforbusiness/api_op_ResolveRoom.go b/service/alexaforbusiness/api_op_ResolveRoom.go index 01d83c7f209..e8f7ce14f77 100644 --- a/service/alexaforbusiness/api_op_ResolveRoom.go +++ b/service/alexaforbusiness/api_op_ResolveRoom.go @@ -50,7 +50,7 @@ type ResolveRoomOutput struct { RoomName *string // Response to get the room profile request. Required. - RoomSkillParameters []*types.RoomSkillParameter + RoomSkillParameters []types.RoomSkillParameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/alexaforbusiness/api_op_SearchAddressBooks.go b/service/alexaforbusiness/api_op_SearchAddressBooks.go index fb129471201..70a46b4b119 100644 --- a/service/alexaforbusiness/api_op_SearchAddressBooks.go +++ b/service/alexaforbusiness/api_op_SearchAddressBooks.go @@ -32,7 +32,7 @@ type SearchAddressBooksInput struct { // The filters to use to list a specified set of address books. The supported // filter key is AddressBookName. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to include in the response. If more results exist // than the specified MaxResults value, a token is included in the response so that @@ -46,13 +46,13 @@ type SearchAddressBooksInput struct { // The sort order to use in listing the specified set of address books. The // supported sort key is AddressBookName. - SortCriteria []*types.Sort + SortCriteria []types.Sort } type SearchAddressBooksOutput struct { // The address books that meet the specified set of filter criteria, in sort order. - AddressBooks []*types.AddressBookData + AddressBooks []types.AddressBookData // The token returned to indicate that there is more data available. NextToken *string diff --git a/service/alexaforbusiness/api_op_SearchContacts.go b/service/alexaforbusiness/api_op_SearchContacts.go index 3a65242d8e1..582d3da3c1d 100644 --- a/service/alexaforbusiness/api_op_SearchContacts.go +++ b/service/alexaforbusiness/api_op_SearchContacts.go @@ -32,7 +32,7 @@ type SearchContactsInput struct { // The filters to use to list a specified set of address books. The supported // filter keys are DisplayName, FirstName, LastName, and AddressBookArns. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to include in the response. If more results exist // than the specified MaxResults value, a token is included in the response so that @@ -46,13 +46,13 @@ type SearchContactsInput struct { // The sort order to use in listing the specified set of contacts. The supported // sort keys are DisplayName, FirstName, and LastName. - SortCriteria []*types.Sort + SortCriteria []types.Sort } type SearchContactsOutput struct { // The contacts that meet the specified set of filter criteria, in sort order. - Contacts []*types.ContactData + Contacts []types.ContactData // The token returned to indicate that there is more data available. NextToken *string diff --git a/service/alexaforbusiness/api_op_SearchDevices.go b/service/alexaforbusiness/api_op_SearchDevices.go index 3f2d5c22da0..a8e91acc7d1 100644 --- a/service/alexaforbusiness/api_op_SearchDevices.go +++ b/service/alexaforbusiness/api_op_SearchDevices.go @@ -33,7 +33,7 @@ type SearchDevicesInput struct { // DeviceName, DeviceStatus, DeviceStatusDetailCode, RoomName, DeviceType, // DeviceSerialNumber, UnassociatedOnly, ConnectionStatus (ONLINE and OFFLINE), // NetworkProfileName, NetworkProfileArn, Feature, and FailureCode. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to include in the response. If more results exist // than the specified MaxResults value, a token is included in the response so that @@ -49,13 +49,13 @@ type SearchDevicesInput struct { // keys are DeviceName, DeviceStatus, RoomName, DeviceType, DeviceSerialNumber, // ConnectionStatus, NetworkProfileName, NetworkProfileArn, Feature, and // FailureCode. - SortCriteria []*types.Sort + SortCriteria []types.Sort } type SearchDevicesOutput struct { // The devices that meet the specified set of filter criteria, in sort order. - Devices []*types.DeviceData + Devices []types.DeviceData // The token returned to indicate that there is more data available. NextToken *string diff --git a/service/alexaforbusiness/api_op_SearchNetworkProfiles.go b/service/alexaforbusiness/api_op_SearchNetworkProfiles.go index 35226f2962d..e8fc994012d 100644 --- a/service/alexaforbusiness/api_op_SearchNetworkProfiles.go +++ b/service/alexaforbusiness/api_op_SearchNetworkProfiles.go @@ -32,7 +32,7 @@ type SearchNetworkProfilesInput struct { // The filters to use to list a specified set of network profiles. Valid filters // are NetworkProfileName, Ssid, and SecurityType. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to include in the response. If more results exist // than the specified MaxResults value, a token is included in the response so that @@ -46,14 +46,14 @@ type SearchNetworkProfilesInput struct { // The sort order to use to list the specified set of network profiles. Valid sort // criteria includes NetworkProfileName, Ssid, and SecurityType. - SortCriteria []*types.Sort + SortCriteria []types.Sort } type SearchNetworkProfilesOutput struct { // The network profiles that meet the specified set of filter criteria, in sort // order. It is a list of NetworkProfileData objects. - NetworkProfiles []*types.NetworkProfileData + NetworkProfiles []types.NetworkProfileData // An optional token returned from a prior request. Use this token for pagination // of results from this action. If this parameter is specified, the response diff --git a/service/alexaforbusiness/api_op_SearchProfiles.go b/service/alexaforbusiness/api_op_SearchProfiles.go index 325828195ab..441b9c7bb60 100644 --- a/service/alexaforbusiness/api_op_SearchProfiles.go +++ b/service/alexaforbusiness/api_op_SearchProfiles.go @@ -31,7 +31,7 @@ type SearchProfilesInput struct { // The filters to use to list a specified set of room profiles. Supported filter // keys are ProfileName and Address. Required. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to include in the response. If more results exist // than the specified MaxResults value, a token is included in the response so that @@ -45,7 +45,7 @@ type SearchProfilesInput struct { // The sort order to use in listing the specified set of room profiles. Supported // sort keys are ProfileName and Address. - SortCriteria []*types.Sort + SortCriteria []types.Sort } type SearchProfilesOutput struct { @@ -54,7 +54,7 @@ type SearchProfilesOutput struct { NextToken *string // The profiles that meet the specified set of filter criteria, in sort order. - Profiles []*types.ProfileData + Profiles []types.ProfileData // The total number of room profiles returned. TotalCount *int32 diff --git a/service/alexaforbusiness/api_op_SearchRooms.go b/service/alexaforbusiness/api_op_SearchRooms.go index fc68c1a641d..f0d71387c26 100644 --- a/service/alexaforbusiness/api_op_SearchRooms.go +++ b/service/alexaforbusiness/api_op_SearchRooms.go @@ -31,7 +31,7 @@ type SearchRoomsInput struct { // The filters to use to list a specified set of rooms. The supported filter keys // are RoomName and ProfileName. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to include in the response. If more results exist // than the specified MaxResults value, a token is included in the response so that @@ -45,7 +45,7 @@ type SearchRoomsInput struct { // The sort order to use in listing the specified set of rooms. The supported sort // keys are RoomName and ProfileName. - SortCriteria []*types.Sort + SortCriteria []types.Sort } type SearchRoomsOutput struct { @@ -54,7 +54,7 @@ type SearchRoomsOutput struct { NextToken *string // The rooms that meet the specified set of filter criteria, in sort order. - Rooms []*types.RoomData + Rooms []types.RoomData // The total number of rooms returned. TotalCount *int32 diff --git a/service/alexaforbusiness/api_op_SearchSkillGroups.go b/service/alexaforbusiness/api_op_SearchSkillGroups.go index 97e6a538dd9..f55f1ce9094 100644 --- a/service/alexaforbusiness/api_op_SearchSkillGroups.go +++ b/service/alexaforbusiness/api_op_SearchSkillGroups.go @@ -32,7 +32,7 @@ type SearchSkillGroupsInput struct { // The filters to use to list a specified set of skill groups. The supported filter // key is SkillGroupName. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to include in the response. If more results exist // than the specified MaxResults value, a token is included in the response so that @@ -47,7 +47,7 @@ type SearchSkillGroupsInput struct { // The sort order to use in listing the specified set of skill groups. The // supported sort key is SkillGroupName. - SortCriteria []*types.Sort + SortCriteria []types.Sort } type SearchSkillGroupsOutput struct { @@ -56,7 +56,7 @@ type SearchSkillGroupsOutput struct { NextToken *string // The skill groups that meet the filter criteria, in sort order. - SkillGroups []*types.SkillGroupData + SkillGroups []types.SkillGroupData // The total number of skill groups returned. TotalCount *int32 diff --git a/service/alexaforbusiness/api_op_SearchUsers.go b/service/alexaforbusiness/api_op_SearchUsers.go index b63eb6d4139..0f07d06b223 100644 --- a/service/alexaforbusiness/api_op_SearchUsers.go +++ b/service/alexaforbusiness/api_op_SearchUsers.go @@ -31,7 +31,7 @@ type SearchUsersInput struct { // The filters to use for listing a specific set of users. Required. Supported // filter keys are UserId, FirstName, LastName, Email, and EnrollmentStatus. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to include in the response. If more results exist // than the specified MaxResults value, a token is included in the response so that @@ -46,7 +46,7 @@ type SearchUsersInput struct { // The sort order to use in listing the filtered set of users. Required. Supported // sort keys are UserId, FirstName, LastName, Email, and EnrollmentStatus. - SortCriteria []*types.Sort + SortCriteria []types.Sort } type SearchUsersOutput struct { @@ -58,7 +58,7 @@ type SearchUsersOutput struct { TotalCount *int32 // The users that meet the specified set of filter criteria, in sort order. - Users []*types.UserData + Users []types.UserData // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/alexaforbusiness/api_op_SendAnnouncement.go b/service/alexaforbusiness/api_op_SendAnnouncement.go index e03386da109..608db748fa3 100644 --- a/service/alexaforbusiness/api_op_SendAnnouncement.go +++ b/service/alexaforbusiness/api_op_SendAnnouncement.go @@ -47,7 +47,7 @@ type SendAnnouncementInput struct { // send to all rooms, specify an empty RoomFilters list. // // This member is required. - RoomFilters []*types.Filter + RoomFilters []types.Filter // The time to live for an announcement. Default is 300. If delivery doesn't occur // within this time, the announcement is not delivered. diff --git a/service/alexaforbusiness/api_op_TagResource.go b/service/alexaforbusiness/api_op_TagResource.go index 59db3613c1b..002f7d40a95 100644 --- a/service/alexaforbusiness/api_op_TagResource.go +++ b/service/alexaforbusiness/api_op_TagResource.go @@ -38,7 +38,7 @@ type TagResourceInput struct { // Required. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/alexaforbusiness/api_op_UntagResource.go b/service/alexaforbusiness/api_op_UntagResource.go index ed2a4f40ae1..cee43c84c0e 100644 --- a/service/alexaforbusiness/api_op_UntagResource.go +++ b/service/alexaforbusiness/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // Required. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/alexaforbusiness/api_op_UpdateContact.go b/service/alexaforbusiness/api_op_UpdateContact.go index dbd5c8e1955..018dc8aeed6 100644 --- a/service/alexaforbusiness/api_op_UpdateContact.go +++ b/service/alexaforbusiness/api_op_UpdateContact.go @@ -49,10 +49,10 @@ type UpdateContactInput struct { PhoneNumber *string // The list of phone numbers for the contact. - PhoneNumbers []*types.PhoneNumber + PhoneNumbers []types.PhoneNumber // The list of SIP addresses for the contact. - SipAddresses []*types.SipAddress + SipAddresses []types.SipAddress } type UpdateContactOutput struct { diff --git a/service/alexaforbusiness/api_op_UpdateNetworkProfile.go b/service/alexaforbusiness/api_op_UpdateNetworkProfile.go index 2a07ebdc081..9c62ee0181c 100644 --- a/service/alexaforbusiness/api_op_UpdateNetworkProfile.go +++ b/service/alexaforbusiness/api_op_UpdateNetworkProfile.go @@ -54,7 +54,7 @@ type UpdateNetworkProfileInput struct { // The root certificate(s) of your authentication server that will be installed on // your devices and used to trust your authentication server during EAP // negotiation. - TrustAnchors []*string + TrustAnchors []string } type UpdateNetworkProfileOutput struct { diff --git a/service/alexaforbusiness/deserializers.go b/service/alexaforbusiness/deserializers.go index 1a7ef77d1d9..01b72e72d67 100644 --- a/service/alexaforbusiness/deserializers.go +++ b/service/alexaforbusiness/deserializers.go @@ -11051,7 +11051,7 @@ func awsAwsjson11_deserializeDocumentAddressBook(v **types.AddressBook, value in if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AddressBookArn = &jtv + sv.AddressBookArn = ptr.String(jtv) } case "Description": @@ -11060,7 +11060,7 @@ func awsAwsjson11_deserializeDocumentAddressBook(v **types.AddressBook, value in if !ok { return fmt.Errorf("expected AddressBookDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -11069,7 +11069,7 @@ func awsAwsjson11_deserializeDocumentAddressBook(v **types.AddressBook, value in if !ok { return fmt.Errorf("expected AddressBookName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -11109,7 +11109,7 @@ func awsAwsjson11_deserializeDocumentAddressBookData(v **types.AddressBookData, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AddressBookArn = &jtv + sv.AddressBookArn = ptr.String(jtv) } case "Description": @@ -11118,7 +11118,7 @@ func awsAwsjson11_deserializeDocumentAddressBookData(v **types.AddressBookData, if !ok { return fmt.Errorf("expected AddressBookDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -11127,7 +11127,7 @@ func awsAwsjson11_deserializeDocumentAddressBookData(v **types.AddressBookData, if !ok { return fmt.Errorf("expected AddressBookName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -11139,7 +11139,7 @@ func awsAwsjson11_deserializeDocumentAddressBookData(v **types.AddressBookData, return nil } -func awsAwsjson11_deserializeDocumentAddressBookDataList(v *[]*types.AddressBookData, value interface{}) error { +func awsAwsjson11_deserializeDocumentAddressBookDataList(v *[]types.AddressBookData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11152,18 +11152,20 @@ func awsAwsjson11_deserializeDocumentAddressBookDataList(v *[]*types.AddressBook return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AddressBookData + var cv []types.AddressBookData if *v == nil { - cv = []*types.AddressBookData{} + cv = []types.AddressBookData{} } else { cv = *v } for _, value := range shape { - var col *types.AddressBookData - if err := awsAwsjson11_deserializeDocumentAddressBookData(&col, value); err != nil { + var col types.AddressBookData + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAddressBookData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11199,7 +11201,7 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11211,7 +11213,7 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi return nil } -func awsAwsjson11_deserializeDocumentBulletPoints(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentBulletPoints(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11224,21 +11226,21 @@ func awsAwsjson11_deserializeDocumentBulletPoints(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected BulletPoint to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11288,7 +11290,7 @@ func awsAwsjson11_deserializeDocumentBusinessReport(v **types.BusinessReport, va if !ok { return fmt.Errorf("expected BusinessReportDownloadUrl to be of type string, got %T instead", value) } - sv.DownloadUrl = &jtv + sv.DownloadUrl = ptr.String(jtv) } case "FailureCode": @@ -11391,7 +11393,7 @@ func awsAwsjson11_deserializeDocumentBusinessReportRecurrence(v **types.Business if !ok { return fmt.Errorf("expected Date to be of type string, got %T instead", value) } - sv.StartDate = &jtv + sv.StartDate = ptr.String(jtv) } default: @@ -11431,7 +11433,7 @@ func awsAwsjson11_deserializeDocumentBusinessReportS3Location(v **types.Business if !ok { return fmt.Errorf("expected CustomerS3BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "Path": @@ -11440,7 +11442,7 @@ func awsAwsjson11_deserializeDocumentBusinessReportS3Location(v **types.Business if !ok { return fmt.Errorf("expected BusinessReportS3Path to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } default: @@ -11504,7 +11506,7 @@ func awsAwsjson11_deserializeDocumentBusinessReportSchedule(v **types.BusinessRe if !ok { return fmt.Errorf("expected CustomerS3BucketName to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "S3KeyPrefix": @@ -11513,7 +11515,7 @@ func awsAwsjson11_deserializeDocumentBusinessReportSchedule(v **types.BusinessRe if !ok { return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) } - sv.S3KeyPrefix = &jtv + sv.S3KeyPrefix = ptr.String(jtv) } case "ScheduleArn": @@ -11522,7 +11524,7 @@ func awsAwsjson11_deserializeDocumentBusinessReportSchedule(v **types.BusinessRe if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ScheduleArn = &jtv + sv.ScheduleArn = ptr.String(jtv) } case "ScheduleName": @@ -11531,7 +11533,7 @@ func awsAwsjson11_deserializeDocumentBusinessReportSchedule(v **types.BusinessRe if !ok { return fmt.Errorf("expected BusinessReportScheduleName to be of type string, got %T instead", value) } - sv.ScheduleName = &jtv + sv.ScheduleName = ptr.String(jtv) } default: @@ -11543,7 +11545,7 @@ func awsAwsjson11_deserializeDocumentBusinessReportSchedule(v **types.BusinessRe return nil } -func awsAwsjson11_deserializeDocumentBusinessReportScheduleList(v *[]*types.BusinessReportSchedule, value interface{}) error { +func awsAwsjson11_deserializeDocumentBusinessReportScheduleList(v *[]types.BusinessReportSchedule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11556,18 +11558,20 @@ func awsAwsjson11_deserializeDocumentBusinessReportScheduleList(v *[]*types.Busi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BusinessReportSchedule + var cv []types.BusinessReportSchedule if *v == nil { - cv = []*types.BusinessReportSchedule{} + cv = []types.BusinessReportSchedule{} } else { cv = *v } for _, value := range shape { - var col *types.BusinessReportSchedule - if err := awsAwsjson11_deserializeDocumentBusinessReportSchedule(&col, value); err != nil { + var col types.BusinessReportSchedule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBusinessReportSchedule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11607,7 +11611,7 @@ func awsAwsjson11_deserializeDocumentCategory(v **types.Category, value interfac if err != nil { return err } - sv.CategoryId = &i64 + sv.CategoryId = ptr.Int64(i64) } case "CategoryName": @@ -11616,7 +11620,7 @@ func awsAwsjson11_deserializeDocumentCategory(v **types.Category, value interfac if !ok { return fmt.Errorf("expected CategoryName to be of type string, got %T instead", value) } - sv.CategoryName = &jtv + sv.CategoryName = ptr.String(jtv) } default: @@ -11628,7 +11632,7 @@ func awsAwsjson11_deserializeDocumentCategory(v **types.Category, value interfac return nil } -func awsAwsjson11_deserializeDocumentCategoryList(v *[]*types.Category, value interface{}) error { +func awsAwsjson11_deserializeDocumentCategoryList(v *[]types.Category, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11641,18 +11645,20 @@ func awsAwsjson11_deserializeDocumentCategoryList(v *[]*types.Category, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Category + var cv []types.Category if *v == nil { - cv = []*types.Category{} + cv = []types.Category{} } else { cv = *v } for _, value := range shape { - var col *types.Category - if err := awsAwsjson11_deserializeDocumentCategory(&col, value); err != nil { + var col types.Category + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCategory(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11688,7 +11694,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11728,7 +11734,7 @@ func awsAwsjson11_deserializeDocumentConferencePreference(v **types.ConferencePr if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DefaultConferenceProviderArn = &jtv + sv.DefaultConferenceProviderArn = ptr.String(jtv) } default: @@ -11768,7 +11774,7 @@ func awsAwsjson11_deserializeDocumentConferenceProvider(v **types.ConferenceProv if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "IPDialIn": @@ -11787,7 +11793,7 @@ func awsAwsjson11_deserializeDocumentConferenceProvider(v **types.ConferenceProv if !ok { return fmt.Errorf("expected ConferenceProviderName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PSTNDialIn": @@ -11813,7 +11819,7 @@ func awsAwsjson11_deserializeDocumentConferenceProvider(v **types.ConferenceProv return nil } -func awsAwsjson11_deserializeDocumentConferenceProvidersList(v *[]*types.ConferenceProvider, value interface{}) error { +func awsAwsjson11_deserializeDocumentConferenceProvidersList(v *[]types.ConferenceProvider, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11826,18 +11832,20 @@ func awsAwsjson11_deserializeDocumentConferenceProvidersList(v *[]*types.Confere return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConferenceProvider + var cv []types.ConferenceProvider if *v == nil { - cv = []*types.ConferenceProvider{} + cv = []types.ConferenceProvider{} } else { cv = *v } for _, value := range shape { - var col *types.ConferenceProvider - if err := awsAwsjson11_deserializeDocumentConferenceProvider(&col, value); err != nil { + var col types.ConferenceProvider + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConferenceProvider(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11873,7 +11881,7 @@ func awsAwsjson11_deserializeDocumentContact(v **types.Contact, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ContactArn = &jtv + sv.ContactArn = ptr.String(jtv) } case "DisplayName": @@ -11882,7 +11890,7 @@ func awsAwsjson11_deserializeDocumentContact(v **types.Contact, value interface{ if !ok { return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "FirstName": @@ -11891,7 +11899,7 @@ func awsAwsjson11_deserializeDocumentContact(v **types.Contact, value interface{ if !ok { return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) } - sv.FirstName = &jtv + sv.FirstName = ptr.String(jtv) } case "LastName": @@ -11900,7 +11908,7 @@ func awsAwsjson11_deserializeDocumentContact(v **types.Contact, value interface{ if !ok { return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) } - sv.LastName = &jtv + sv.LastName = ptr.String(jtv) } case "PhoneNumber": @@ -11909,7 +11917,7 @@ func awsAwsjson11_deserializeDocumentContact(v **types.Contact, value interface{ if !ok { return fmt.Errorf("expected RawPhoneNumber to be of type string, got %T instead", value) } - sv.PhoneNumber = &jtv + sv.PhoneNumber = ptr.String(jtv) } case "PhoneNumbers": @@ -11959,7 +11967,7 @@ func awsAwsjson11_deserializeDocumentContactData(v **types.ContactData, value in if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ContactArn = &jtv + sv.ContactArn = ptr.String(jtv) } case "DisplayName": @@ -11968,7 +11976,7 @@ func awsAwsjson11_deserializeDocumentContactData(v **types.ContactData, value in if !ok { return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "FirstName": @@ -11977,7 +11985,7 @@ func awsAwsjson11_deserializeDocumentContactData(v **types.ContactData, value in if !ok { return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) } - sv.FirstName = &jtv + sv.FirstName = ptr.String(jtv) } case "LastName": @@ -11986,7 +11994,7 @@ func awsAwsjson11_deserializeDocumentContactData(v **types.ContactData, value in if !ok { return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) } - sv.LastName = &jtv + sv.LastName = ptr.String(jtv) } case "PhoneNumber": @@ -11995,7 +12003,7 @@ func awsAwsjson11_deserializeDocumentContactData(v **types.ContactData, value in if !ok { return fmt.Errorf("expected RawPhoneNumber to be of type string, got %T instead", value) } - sv.PhoneNumber = &jtv + sv.PhoneNumber = ptr.String(jtv) } case "PhoneNumbers": @@ -12017,7 +12025,7 @@ func awsAwsjson11_deserializeDocumentContactData(v **types.ContactData, value in return nil } -func awsAwsjson11_deserializeDocumentContactDataList(v *[]*types.ContactData, value interface{}) error { +func awsAwsjson11_deserializeDocumentContactDataList(v *[]types.ContactData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12030,18 +12038,20 @@ func awsAwsjson11_deserializeDocumentContactDataList(v *[]*types.ContactData, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContactData + var cv []types.ContactData if *v == nil { - cv = []*types.ContactData{} + cv = []types.ContactData{} } else { cv = *v } for _, value := range shape { - var col *types.ContactData - if err := awsAwsjson11_deserializeDocumentContactData(&col, value); err != nil { + var col types.ContactData + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContactData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12077,7 +12087,7 @@ func awsAwsjson11_deserializeDocumentDeveloperInfo(v **types.DeveloperInfo, valu if !ok { return fmt.Errorf("expected DeveloperName to be of type string, got %T instead", value) } - sv.DeveloperName = &jtv + sv.DeveloperName = ptr.String(jtv) } case "Email": @@ -12086,7 +12096,7 @@ func awsAwsjson11_deserializeDocumentDeveloperInfo(v **types.DeveloperInfo, valu if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "PrivacyPolicy": @@ -12095,7 +12105,7 @@ func awsAwsjson11_deserializeDocumentDeveloperInfo(v **types.DeveloperInfo, valu if !ok { return fmt.Errorf("expected PrivacyPolicy to be of type string, got %T instead", value) } - sv.PrivacyPolicy = &jtv + sv.PrivacyPolicy = ptr.String(jtv) } case "Url": @@ -12104,7 +12114,7 @@ func awsAwsjson11_deserializeDocumentDeveloperInfo(v **types.DeveloperInfo, valu if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -12144,7 +12154,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DeviceArn = &jtv + sv.DeviceArn = ptr.String(jtv) } case "DeviceName": @@ -12153,7 +12163,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected DeviceName to be of type string, got %T instead", value) } - sv.DeviceName = &jtv + sv.DeviceName = ptr.String(jtv) } case "DeviceSerialNumber": @@ -12162,7 +12172,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected DeviceSerialNumber to be of type string, got %T instead", value) } - sv.DeviceSerialNumber = &jtv + sv.DeviceSerialNumber = ptr.String(jtv) } case "DeviceStatus": @@ -12185,7 +12195,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected DeviceType to be of type string, got %T instead", value) } - sv.DeviceType = &jtv + sv.DeviceType = ptr.String(jtv) } case "MacAddress": @@ -12194,7 +12204,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected MacAddress to be of type string, got %T instead", value) } - sv.MacAddress = &jtv + sv.MacAddress = ptr.String(jtv) } case "NetworkProfileInfo": @@ -12208,7 +12218,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoomArn = &jtv + sv.RoomArn = ptr.String(jtv) } case "SoftwareVersion": @@ -12217,7 +12227,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected SoftwareVersion to be of type string, got %T instead", value) } - sv.SoftwareVersion = &jtv + sv.SoftwareVersion = ptr.String(jtv) } default: @@ -12270,7 +12280,7 @@ func awsAwsjson11_deserializeDocumentDeviceData(v **types.DeviceData, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DeviceArn = &jtv + sv.DeviceArn = ptr.String(jtv) } case "DeviceName": @@ -12279,7 +12289,7 @@ func awsAwsjson11_deserializeDocumentDeviceData(v **types.DeviceData, value inte if !ok { return fmt.Errorf("expected DeviceName to be of type string, got %T instead", value) } - sv.DeviceName = &jtv + sv.DeviceName = ptr.String(jtv) } case "DeviceSerialNumber": @@ -12288,7 +12298,7 @@ func awsAwsjson11_deserializeDocumentDeviceData(v **types.DeviceData, value inte if !ok { return fmt.Errorf("expected DeviceSerialNumber to be of type string, got %T instead", value) } - sv.DeviceSerialNumber = &jtv + sv.DeviceSerialNumber = ptr.String(jtv) } case "DeviceStatus": @@ -12311,7 +12321,7 @@ func awsAwsjson11_deserializeDocumentDeviceData(v **types.DeviceData, value inte if !ok { return fmt.Errorf("expected DeviceType to be of type string, got %T instead", value) } - sv.DeviceType = &jtv + sv.DeviceType = ptr.String(jtv) } case "MacAddress": @@ -12320,7 +12330,7 @@ func awsAwsjson11_deserializeDocumentDeviceData(v **types.DeviceData, value inte if !ok { return fmt.Errorf("expected MacAddress to be of type string, got %T instead", value) } - sv.MacAddress = &jtv + sv.MacAddress = ptr.String(jtv) } case "NetworkProfileArn": @@ -12329,7 +12339,7 @@ func awsAwsjson11_deserializeDocumentDeviceData(v **types.DeviceData, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.NetworkProfileArn = &jtv + sv.NetworkProfileArn = ptr.String(jtv) } case "NetworkProfileName": @@ -12338,7 +12348,7 @@ func awsAwsjson11_deserializeDocumentDeviceData(v **types.DeviceData, value inte if !ok { return fmt.Errorf("expected NetworkProfileName to be of type string, got %T instead", value) } - sv.NetworkProfileName = &jtv + sv.NetworkProfileName = ptr.String(jtv) } case "RoomArn": @@ -12347,7 +12357,7 @@ func awsAwsjson11_deserializeDocumentDeviceData(v **types.DeviceData, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoomArn = &jtv + sv.RoomArn = ptr.String(jtv) } case "RoomName": @@ -12356,7 +12366,7 @@ func awsAwsjson11_deserializeDocumentDeviceData(v **types.DeviceData, value inte if !ok { return fmt.Errorf("expected DeviceRoomName to be of type string, got %T instead", value) } - sv.RoomName = &jtv + sv.RoomName = ptr.String(jtv) } case "SoftwareVersion": @@ -12365,7 +12375,7 @@ func awsAwsjson11_deserializeDocumentDeviceData(v **types.DeviceData, value inte if !ok { return fmt.Errorf("expected SoftwareVersion to be of type string, got %T instead", value) } - sv.SoftwareVersion = &jtv + sv.SoftwareVersion = ptr.String(jtv) } default: @@ -12377,7 +12387,7 @@ func awsAwsjson11_deserializeDocumentDeviceData(v **types.DeviceData, value inte return nil } -func awsAwsjson11_deserializeDocumentDeviceDataList(v *[]*types.DeviceData, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeviceDataList(v *[]types.DeviceData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12390,18 +12400,20 @@ func awsAwsjson11_deserializeDocumentDeviceDataList(v *[]*types.DeviceData, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeviceData + var cv []types.DeviceData if *v == nil { - cv = []*types.DeviceData{} + cv = []types.DeviceData{} } else { cv = *v } for _, value := range shape { - var col *types.DeviceData - if err := awsAwsjson11_deserializeDocumentDeviceData(&col, value); err != nil { + var col types.DeviceData + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeviceData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12459,7 +12471,7 @@ func awsAwsjson11_deserializeDocumentDeviceEvent(v **types.DeviceEvent, value in if !ok { return fmt.Errorf("expected DeviceEventValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -12471,7 +12483,7 @@ func awsAwsjson11_deserializeDocumentDeviceEvent(v **types.DeviceEvent, value in return nil } -func awsAwsjson11_deserializeDocumentDeviceEventList(v *[]*types.DeviceEvent, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeviceEventList(v *[]types.DeviceEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12484,18 +12496,20 @@ func awsAwsjson11_deserializeDocumentDeviceEventList(v *[]*types.DeviceEvent, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeviceEvent + var cv []types.DeviceEvent if *v == nil { - cv = []*types.DeviceEvent{} + cv = []types.DeviceEvent{} } else { cv = *v } for _, value := range shape { - var col *types.DeviceEvent - if err := awsAwsjson11_deserializeDocumentDeviceEvent(&col, value); err != nil { + var col types.DeviceEvent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeviceEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12531,7 +12545,7 @@ func awsAwsjson11_deserializeDocumentDeviceNetworkProfileInfo(v **types.DeviceNe if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "CertificateExpirationTime": @@ -12553,7 +12567,7 @@ func awsAwsjson11_deserializeDocumentDeviceNetworkProfileInfo(v **types.DeviceNe if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.NetworkProfileArn = &jtv + sv.NetworkProfileArn = ptr.String(jtv) } default: @@ -12593,7 +12607,7 @@ func awsAwsjson11_deserializeDocumentDeviceNotRegisteredException(v **types.Devi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12654,7 +12668,7 @@ func awsAwsjson11_deserializeDocumentDeviceStatusDetail(v **types.DeviceStatusDe return nil } -func awsAwsjson11_deserializeDocumentDeviceStatusDetails(v *[]*types.DeviceStatusDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeviceStatusDetails(v *[]types.DeviceStatusDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12667,18 +12681,20 @@ func awsAwsjson11_deserializeDocumentDeviceStatusDetails(v *[]*types.DeviceStatu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeviceStatusDetail + var cv []types.DeviceStatusDetail if *v == nil { - cv = []*types.DeviceStatusDetail{} + cv = []types.DeviceStatusDetail{} } else { cv = *v } for _, value := range shape { - var col *types.DeviceStatusDetail - if err := awsAwsjson11_deserializeDocumentDeviceStatusDetail(&col, value); err != nil { + var col types.DeviceStatusDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeviceStatusDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12772,7 +12788,7 @@ func awsAwsjson11_deserializeDocumentEndOfMeetingReminder(v **types.EndOfMeeting if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } case "ReminderAtMinutes": @@ -12798,7 +12814,7 @@ func awsAwsjson11_deserializeDocumentEndOfMeetingReminder(v **types.EndOfMeeting return nil } -func awsAwsjson11_deserializeDocumentEndOfMeetingReminderMinutesList(v *[]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentEndOfMeetingReminderMinutesList(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12811,15 +12827,15 @@ func awsAwsjson11_deserializeDocumentEndOfMeetingReminderMinutesList(v *[]*int32 return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int32 + var cv []int32 if *v == nil { - cv = []*int32{} + cv = []int32{} } else { cv = *v } for _, value := range shape { - var col *int32 + var col int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -12829,7 +12845,7 @@ func awsAwsjson11_deserializeDocumentEndOfMeetingReminderMinutesList(v *[]*int32 if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } cv = append(cv, col) @@ -12866,7 +12882,7 @@ func awsAwsjson11_deserializeDocumentGateway(v **types.Gateway, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Description": @@ -12875,7 +12891,7 @@ func awsAwsjson11_deserializeDocumentGateway(v **types.Gateway, value interface{ if !ok { return fmt.Errorf("expected GatewayDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "GatewayGroupArn": @@ -12884,7 +12900,7 @@ func awsAwsjson11_deserializeDocumentGateway(v **types.Gateway, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.GatewayGroupArn = &jtv + sv.GatewayGroupArn = ptr.String(jtv) } case "Name": @@ -12893,7 +12909,7 @@ func awsAwsjson11_deserializeDocumentGateway(v **types.Gateway, value interface{ if !ok { return fmt.Errorf("expected GatewayName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SoftwareVersion": @@ -12902,7 +12918,7 @@ func awsAwsjson11_deserializeDocumentGateway(v **types.Gateway, value interface{ if !ok { return fmt.Errorf("expected GatewayVersion to be of type string, got %T instead", value) } - sv.SoftwareVersion = &jtv + sv.SoftwareVersion = ptr.String(jtv) } default: @@ -12942,7 +12958,7 @@ func awsAwsjson11_deserializeDocumentGatewayGroup(v **types.GatewayGroup, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Description": @@ -12951,7 +12967,7 @@ func awsAwsjson11_deserializeDocumentGatewayGroup(v **types.GatewayGroup, value if !ok { return fmt.Errorf("expected GatewayGroupDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -12960,7 +12976,7 @@ func awsAwsjson11_deserializeDocumentGatewayGroup(v **types.GatewayGroup, value if !ok { return fmt.Errorf("expected GatewayGroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -12972,7 +12988,7 @@ func awsAwsjson11_deserializeDocumentGatewayGroup(v **types.GatewayGroup, value return nil } -func awsAwsjson11_deserializeDocumentGatewayGroupSummaries(v *[]*types.GatewayGroupSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentGatewayGroupSummaries(v *[]types.GatewayGroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12985,18 +13001,20 @@ func awsAwsjson11_deserializeDocumentGatewayGroupSummaries(v *[]*types.GatewayGr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GatewayGroupSummary + var cv []types.GatewayGroupSummary if *v == nil { - cv = []*types.GatewayGroupSummary{} + cv = []types.GatewayGroupSummary{} } else { cv = *v } for _, value := range shape { - var col *types.GatewayGroupSummary - if err := awsAwsjson11_deserializeDocumentGatewayGroupSummary(&col, value); err != nil { + var col types.GatewayGroupSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGatewayGroupSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13032,7 +13050,7 @@ func awsAwsjson11_deserializeDocumentGatewayGroupSummary(v **types.GatewayGroupS if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Description": @@ -13041,7 +13059,7 @@ func awsAwsjson11_deserializeDocumentGatewayGroupSummary(v **types.GatewayGroupS if !ok { return fmt.Errorf("expected GatewayGroupDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -13050,7 +13068,7 @@ func awsAwsjson11_deserializeDocumentGatewayGroupSummary(v **types.GatewayGroupS if !ok { return fmt.Errorf("expected GatewayGroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -13062,7 +13080,7 @@ func awsAwsjson11_deserializeDocumentGatewayGroupSummary(v **types.GatewayGroupS return nil } -func awsAwsjson11_deserializeDocumentGatewaySummaries(v *[]*types.GatewaySummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentGatewaySummaries(v *[]types.GatewaySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13075,18 +13093,20 @@ func awsAwsjson11_deserializeDocumentGatewaySummaries(v *[]*types.GatewaySummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GatewaySummary + var cv []types.GatewaySummary if *v == nil { - cv = []*types.GatewaySummary{} + cv = []types.GatewaySummary{} } else { cv = *v } for _, value := range shape { - var col *types.GatewaySummary - if err := awsAwsjson11_deserializeDocumentGatewaySummary(&col, value); err != nil { + var col types.GatewaySummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGatewaySummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13122,7 +13142,7 @@ func awsAwsjson11_deserializeDocumentGatewaySummary(v **types.GatewaySummary, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Description": @@ -13131,7 +13151,7 @@ func awsAwsjson11_deserializeDocumentGatewaySummary(v **types.GatewaySummary, va if !ok { return fmt.Errorf("expected GatewayDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "GatewayGroupArn": @@ -13140,7 +13160,7 @@ func awsAwsjson11_deserializeDocumentGatewaySummary(v **types.GatewaySummary, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.GatewayGroupArn = &jtv + sv.GatewayGroupArn = ptr.String(jtv) } case "Name": @@ -13149,7 +13169,7 @@ func awsAwsjson11_deserializeDocumentGatewaySummary(v **types.GatewaySummary, va if !ok { return fmt.Errorf("expected GatewayName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SoftwareVersion": @@ -13158,7 +13178,7 @@ func awsAwsjson11_deserializeDocumentGatewaySummary(v **types.GatewaySummary, va if !ok { return fmt.Errorf("expected GatewayVersion to be of type string, got %T instead", value) } - sv.SoftwareVersion = &jtv + sv.SoftwareVersion = ptr.String(jtv) } default: @@ -13170,7 +13190,7 @@ func awsAwsjson11_deserializeDocumentGatewaySummary(v **types.GatewaySummary, va return nil } -func awsAwsjson11_deserializeDocumentGenericKeywords(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentGenericKeywords(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13183,21 +13203,21 @@ func awsAwsjson11_deserializeDocumentGenericKeywords(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected GenericKeyword to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -13247,7 +13267,7 @@ func awsAwsjson11_deserializeDocumentInstantBooking(v **types.InstantBooking, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } default: @@ -13287,7 +13307,7 @@ func awsAwsjson11_deserializeDocumentInvalidCertificateAuthorityException(v **ty if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13327,7 +13347,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeviceException(v **types.InvalidDev if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13367,7 +13387,7 @@ func awsAwsjson11_deserializeDocumentInvalidSecretsManagerResourceException(v ** if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13407,7 +13427,7 @@ func awsAwsjson11_deserializeDocumentInvalidServiceLinkedRoleStateException(v ** if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13447,7 +13467,7 @@ func awsAwsjson11_deserializeDocumentInvalidUserStatusException(v **types.Invali if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13496,7 +13516,7 @@ func awsAwsjson11_deserializeDocumentIPDialIn(v **types.IPDialIn, value interfac if !ok { return fmt.Errorf("expected Endpoint to be of type string, got %T instead", value) } - sv.Endpoint = &jtv + sv.Endpoint = ptr.String(jtv) } default: @@ -13536,7 +13556,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13591,7 +13611,7 @@ func awsAwsjson11_deserializeDocumentMeetingRoomConfiguration(v **types.MeetingR if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RoomUtilizationMetricsEnabled = &jtv + sv.RoomUtilizationMetricsEnabled = ptr.Bool(jtv) } default: @@ -13671,7 +13691,7 @@ func awsAwsjson11_deserializeDocumentNameInUseException(v **types.NameInUseExcep if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13711,7 +13731,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateAuthorityArn = &jtv + sv.CertificateAuthorityArn = ptr.String(jtv) } case "CurrentPassword": @@ -13720,7 +13740,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if !ok { return fmt.Errorf("expected CurrentWiFiPassword to be of type string, got %T instead", value) } - sv.CurrentPassword = &jtv + sv.CurrentPassword = ptr.String(jtv) } case "Description": @@ -13729,7 +13749,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if !ok { return fmt.Errorf("expected NetworkProfileDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EapMethod": @@ -13747,7 +13767,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.NetworkProfileArn = &jtv + sv.NetworkProfileArn = ptr.String(jtv) } case "NetworkProfileName": @@ -13756,7 +13776,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if !ok { return fmt.Errorf("expected NetworkProfileName to be of type string, got %T instead", value) } - sv.NetworkProfileName = &jtv + sv.NetworkProfileName = ptr.String(jtv) } case "NextPassword": @@ -13765,7 +13785,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if !ok { return fmt.Errorf("expected NextWiFiPassword to be of type string, got %T instead", value) } - sv.NextPassword = &jtv + sv.NextPassword = ptr.String(jtv) } case "SecurityType": @@ -13783,7 +13803,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if !ok { return fmt.Errorf("expected NetworkSsid to be of type string, got %T instead", value) } - sv.Ssid = &jtv + sv.Ssid = ptr.String(jtv) } case "TrustAnchors": @@ -13828,7 +13848,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfileData(v **types.NetworkProfile if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateAuthorityArn = &jtv + sv.CertificateAuthorityArn = ptr.String(jtv) } case "Description": @@ -13837,7 +13857,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfileData(v **types.NetworkProfile if !ok { return fmt.Errorf("expected NetworkProfileDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EapMethod": @@ -13855,7 +13875,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfileData(v **types.NetworkProfile if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.NetworkProfileArn = &jtv + sv.NetworkProfileArn = ptr.String(jtv) } case "NetworkProfileName": @@ -13864,7 +13884,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfileData(v **types.NetworkProfile if !ok { return fmt.Errorf("expected NetworkProfileName to be of type string, got %T instead", value) } - sv.NetworkProfileName = &jtv + sv.NetworkProfileName = ptr.String(jtv) } case "SecurityType": @@ -13882,7 +13902,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfileData(v **types.NetworkProfile if !ok { return fmt.Errorf("expected NetworkSsid to be of type string, got %T instead", value) } - sv.Ssid = &jtv + sv.Ssid = ptr.String(jtv) } default: @@ -13894,7 +13914,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfileData(v **types.NetworkProfile return nil } -func awsAwsjson11_deserializeDocumentNetworkProfileDataList(v *[]*types.NetworkProfileData, value interface{}) error { +func awsAwsjson11_deserializeDocumentNetworkProfileDataList(v *[]types.NetworkProfileData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13907,18 +13927,20 @@ func awsAwsjson11_deserializeDocumentNetworkProfileDataList(v *[]*types.NetworkP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NetworkProfileData + var cv []types.NetworkProfileData if *v == nil { - cv = []*types.NetworkProfileData{} + cv = []types.NetworkProfileData{} } else { cv = *v } for _, value := range shape { - var col *types.NetworkProfileData - if err := awsAwsjson11_deserializeDocumentNetworkProfileData(&col, value); err != nil { + var col types.NetworkProfileData + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNetworkProfileData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13926,7 +13948,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfileDataList(v *[]*types.NetworkP return nil } -func awsAwsjson11_deserializeDocumentNewInThisVersionBulletPoints(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentNewInThisVersionBulletPoints(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13939,21 +13961,21 @@ func awsAwsjson11_deserializeDocumentNewInThisVersionBulletPoints(v *[]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected BulletPoint to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -13990,7 +14012,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14030,7 +14052,7 @@ func awsAwsjson11_deserializeDocumentPhoneNumber(v **types.PhoneNumber, value in if !ok { return fmt.Errorf("expected RawPhoneNumber to be of type string, got %T instead", value) } - sv.Number = &jtv + sv.Number = ptr.String(jtv) } case "Type": @@ -14051,7 +14073,7 @@ func awsAwsjson11_deserializeDocumentPhoneNumber(v **types.PhoneNumber, value in return nil } -func awsAwsjson11_deserializeDocumentPhoneNumberList(v *[]*types.PhoneNumber, value interface{}) error { +func awsAwsjson11_deserializeDocumentPhoneNumberList(v *[]types.PhoneNumber, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14064,18 +14086,20 @@ func awsAwsjson11_deserializeDocumentPhoneNumberList(v *[]*types.PhoneNumber, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PhoneNumber + var cv []types.PhoneNumber if *v == nil { - cv = []*types.PhoneNumber{} + cv = []types.PhoneNumber{} } else { cv = *v } for _, value := range shape { - var col *types.PhoneNumber - if err := awsAwsjson11_deserializeDocumentPhoneNumber(&col, value); err != nil { + var col types.PhoneNumber + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPhoneNumber(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14111,7 +14135,7 @@ func awsAwsjson11_deserializeDocumentProfile(v **types.Profile, value interface{ if !ok { return fmt.Errorf("expected Address to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "AddressBookArn": @@ -14120,7 +14144,7 @@ func awsAwsjson11_deserializeDocumentProfile(v **types.Profile, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AddressBookArn = &jtv + sv.AddressBookArn = ptr.String(jtv) } case "DistanceUnit": @@ -14138,7 +14162,7 @@ func awsAwsjson11_deserializeDocumentProfile(v **types.Profile, value interface{ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsDefault = &jtv + sv.IsDefault = ptr.Bool(jtv) } case "Locale": @@ -14147,7 +14171,7 @@ func awsAwsjson11_deserializeDocumentProfile(v **types.Profile, value interface{ if !ok { return fmt.Errorf("expected DeviceLocale to be of type string, got %T instead", value) } - sv.Locale = &jtv + sv.Locale = ptr.String(jtv) } case "MaxVolumeLimit": @@ -14174,7 +14198,7 @@ func awsAwsjson11_deserializeDocumentProfile(v **types.Profile, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ProfileArn = &jtv + sv.ProfileArn = ptr.String(jtv) } case "ProfileName": @@ -14183,7 +14207,7 @@ func awsAwsjson11_deserializeDocumentProfile(v **types.Profile, value interface{ if !ok { return fmt.Errorf("expected ProfileName to be of type string, got %T instead", value) } - sv.ProfileName = &jtv + sv.ProfileName = ptr.String(jtv) } case "PSTNEnabled": @@ -14192,7 +14216,7 @@ func awsAwsjson11_deserializeDocumentProfile(v **types.Profile, value interface{ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.PSTNEnabled = &jtv + sv.PSTNEnabled = ptr.Bool(jtv) } case "SetupModeDisabled": @@ -14201,7 +14225,7 @@ func awsAwsjson11_deserializeDocumentProfile(v **types.Profile, value interface{ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.SetupModeDisabled = &jtv + sv.SetupModeDisabled = ptr.Bool(jtv) } case "TemperatureUnit": @@ -14219,7 +14243,7 @@ func awsAwsjson11_deserializeDocumentProfile(v **types.Profile, value interface{ if !ok { return fmt.Errorf("expected Timezone to be of type string, got %T instead", value) } - sv.Timezone = &jtv + sv.Timezone = ptr.String(jtv) } case "WakeWord": @@ -14268,7 +14292,7 @@ func awsAwsjson11_deserializeDocumentProfileData(v **types.ProfileData, value in if !ok { return fmt.Errorf("expected Address to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "DistanceUnit": @@ -14286,7 +14310,7 @@ func awsAwsjson11_deserializeDocumentProfileData(v **types.ProfileData, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsDefault = &jtv + sv.IsDefault = ptr.Bool(jtv) } case "Locale": @@ -14295,7 +14319,7 @@ func awsAwsjson11_deserializeDocumentProfileData(v **types.ProfileData, value in if !ok { return fmt.Errorf("expected DeviceLocale to be of type string, got %T instead", value) } - sv.Locale = &jtv + sv.Locale = ptr.String(jtv) } case "ProfileArn": @@ -14304,7 +14328,7 @@ func awsAwsjson11_deserializeDocumentProfileData(v **types.ProfileData, value in if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ProfileArn = &jtv + sv.ProfileArn = ptr.String(jtv) } case "ProfileName": @@ -14313,7 +14337,7 @@ func awsAwsjson11_deserializeDocumentProfileData(v **types.ProfileData, value in if !ok { return fmt.Errorf("expected ProfileName to be of type string, got %T instead", value) } - sv.ProfileName = &jtv + sv.ProfileName = ptr.String(jtv) } case "TemperatureUnit": @@ -14331,7 +14355,7 @@ func awsAwsjson11_deserializeDocumentProfileData(v **types.ProfileData, value in if !ok { return fmt.Errorf("expected Timezone to be of type string, got %T instead", value) } - sv.Timezone = &jtv + sv.Timezone = ptr.String(jtv) } case "WakeWord": @@ -14352,7 +14376,7 @@ func awsAwsjson11_deserializeDocumentProfileData(v **types.ProfileData, value in return nil } -func awsAwsjson11_deserializeDocumentProfileDataList(v *[]*types.ProfileData, value interface{}) error { +func awsAwsjson11_deserializeDocumentProfileDataList(v *[]types.ProfileData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14365,18 +14389,20 @@ func awsAwsjson11_deserializeDocumentProfileDataList(v *[]*types.ProfileData, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProfileData + var cv []types.ProfileData if *v == nil { - cv = []*types.ProfileData{} + cv = []types.ProfileData{} } else { cv = *v } for _, value := range shape { - var col *types.ProfileData - if err := awsAwsjson11_deserializeDocumentProfileData(&col, value); err != nil { + var col types.ProfileData + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProfileData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14412,7 +14438,7 @@ func awsAwsjson11_deserializeDocumentPSTNDialIn(v **types.PSTNDialIn, value inte if !ok { return fmt.Errorf("expected CountryCode to be of type string, got %T instead", value) } - sv.CountryCode = &jtv + sv.CountryCode = ptr.String(jtv) } case "OneClickIdDelay": @@ -14421,7 +14447,7 @@ func awsAwsjson11_deserializeDocumentPSTNDialIn(v **types.PSTNDialIn, value inte if !ok { return fmt.Errorf("expected OneClickIdDelay to be of type string, got %T instead", value) } - sv.OneClickIdDelay = &jtv + sv.OneClickIdDelay = ptr.String(jtv) } case "OneClickPinDelay": @@ -14430,7 +14456,7 @@ func awsAwsjson11_deserializeDocumentPSTNDialIn(v **types.PSTNDialIn, value inte if !ok { return fmt.Errorf("expected OneClickPinDelay to be of type string, got %T instead", value) } - sv.OneClickPinDelay = &jtv + sv.OneClickPinDelay = ptr.String(jtv) } case "PhoneNumber": @@ -14439,7 +14465,7 @@ func awsAwsjson11_deserializeDocumentPSTNDialIn(v **types.PSTNDialIn, value inte if !ok { return fmt.Errorf("expected OutboundPhoneNumber to be of type string, got %T instead", value) } - sv.PhoneNumber = &jtv + sv.PhoneNumber = ptr.String(jtv) } default: @@ -14479,7 +14505,7 @@ func awsAwsjson11_deserializeDocumentRequireCheckIn(v **types.RequireCheckIn, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } case "ReleaseAfterMinutes": @@ -14532,7 +14558,7 @@ func awsAwsjson11_deserializeDocumentResourceAssociatedException(v **types.Resou if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14572,7 +14598,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "Message": @@ -14581,7 +14607,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14593,7 +14619,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn return nil } -func awsAwsjson11_deserializeDocumentReviews(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentReviews(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14606,21 +14632,21 @@ func awsAwsjson11_deserializeDocumentReviews(v *map[string]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ReviewValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -14657,7 +14683,7 @@ func awsAwsjson11_deserializeDocumentRoom(v **types.Room, value interface{}) err if !ok { return fmt.Errorf("expected RoomDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ProfileArn": @@ -14666,7 +14692,7 @@ func awsAwsjson11_deserializeDocumentRoom(v **types.Room, value interface{}) err if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ProfileArn = &jtv + sv.ProfileArn = ptr.String(jtv) } case "ProviderCalendarId": @@ -14675,7 +14701,7 @@ func awsAwsjson11_deserializeDocumentRoom(v **types.Room, value interface{}) err if !ok { return fmt.Errorf("expected ProviderCalendarId to be of type string, got %T instead", value) } - sv.ProviderCalendarId = &jtv + sv.ProviderCalendarId = ptr.String(jtv) } case "RoomArn": @@ -14684,7 +14710,7 @@ func awsAwsjson11_deserializeDocumentRoom(v **types.Room, value interface{}) err if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoomArn = &jtv + sv.RoomArn = ptr.String(jtv) } case "RoomName": @@ -14693,7 +14719,7 @@ func awsAwsjson11_deserializeDocumentRoom(v **types.Room, value interface{}) err if !ok { return fmt.Errorf("expected RoomName to be of type string, got %T instead", value) } - sv.RoomName = &jtv + sv.RoomName = ptr.String(jtv) } default: @@ -14733,7 +14759,7 @@ func awsAwsjson11_deserializeDocumentRoomData(v **types.RoomData, value interfac if !ok { return fmt.Errorf("expected RoomDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ProfileArn": @@ -14742,7 +14768,7 @@ func awsAwsjson11_deserializeDocumentRoomData(v **types.RoomData, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ProfileArn = &jtv + sv.ProfileArn = ptr.String(jtv) } case "ProfileName": @@ -14751,7 +14777,7 @@ func awsAwsjson11_deserializeDocumentRoomData(v **types.RoomData, value interfac if !ok { return fmt.Errorf("expected ProfileName to be of type string, got %T instead", value) } - sv.ProfileName = &jtv + sv.ProfileName = ptr.String(jtv) } case "ProviderCalendarId": @@ -14760,7 +14786,7 @@ func awsAwsjson11_deserializeDocumentRoomData(v **types.RoomData, value interfac if !ok { return fmt.Errorf("expected ProviderCalendarId to be of type string, got %T instead", value) } - sv.ProviderCalendarId = &jtv + sv.ProviderCalendarId = ptr.String(jtv) } case "RoomArn": @@ -14769,7 +14795,7 @@ func awsAwsjson11_deserializeDocumentRoomData(v **types.RoomData, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoomArn = &jtv + sv.RoomArn = ptr.String(jtv) } case "RoomName": @@ -14778,7 +14804,7 @@ func awsAwsjson11_deserializeDocumentRoomData(v **types.RoomData, value interfac if !ok { return fmt.Errorf("expected RoomName to be of type string, got %T instead", value) } - sv.RoomName = &jtv + sv.RoomName = ptr.String(jtv) } default: @@ -14790,7 +14816,7 @@ func awsAwsjson11_deserializeDocumentRoomData(v **types.RoomData, value interfac return nil } -func awsAwsjson11_deserializeDocumentRoomDataList(v *[]*types.RoomData, value interface{}) error { +func awsAwsjson11_deserializeDocumentRoomDataList(v *[]types.RoomData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14803,18 +14829,20 @@ func awsAwsjson11_deserializeDocumentRoomDataList(v *[]*types.RoomData, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RoomData + var cv []types.RoomData if *v == nil { - cv = []*types.RoomData{} + cv = []types.RoomData{} } else { cv = *v } for _, value := range shape { - var col *types.RoomData - if err := awsAwsjson11_deserializeDocumentRoomData(&col, value); err != nil { + var col types.RoomData + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRoomData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14850,7 +14878,7 @@ func awsAwsjson11_deserializeDocumentRoomSkillParameter(v **types.RoomSkillParam if !ok { return fmt.Errorf("expected RoomSkillParameterKey to be of type string, got %T instead", value) } - sv.ParameterKey = &jtv + sv.ParameterKey = ptr.String(jtv) } case "ParameterValue": @@ -14859,7 +14887,7 @@ func awsAwsjson11_deserializeDocumentRoomSkillParameter(v **types.RoomSkillParam if !ok { return fmt.Errorf("expected RoomSkillParameterValue to be of type string, got %T instead", value) } - sv.ParameterValue = &jtv + sv.ParameterValue = ptr.String(jtv) } default: @@ -14871,7 +14899,7 @@ func awsAwsjson11_deserializeDocumentRoomSkillParameter(v **types.RoomSkillParam return nil } -func awsAwsjson11_deserializeDocumentRoomSkillParameters(v *[]*types.RoomSkillParameter, value interface{}) error { +func awsAwsjson11_deserializeDocumentRoomSkillParameters(v *[]types.RoomSkillParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14884,18 +14912,20 @@ func awsAwsjson11_deserializeDocumentRoomSkillParameters(v *[]*types.RoomSkillPa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RoomSkillParameter + var cv []types.RoomSkillParameter if *v == nil { - cv = []*types.RoomSkillParameter{} + cv = []types.RoomSkillParameter{} } else { cv = *v } for _, value := range shape { - var col *types.RoomSkillParameter - if err := awsAwsjson11_deserializeDocumentRoomSkillParameter(&col, value); err != nil { + var col types.RoomSkillParameter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRoomSkillParameter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14903,7 +14933,7 @@ func awsAwsjson11_deserializeDocumentRoomSkillParameters(v *[]*types.RoomSkillPa return nil } -func awsAwsjson11_deserializeDocumentSampleUtterances(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSampleUtterances(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14916,21 +14946,21 @@ func awsAwsjson11_deserializeDocumentSampleUtterances(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Utterance to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14939,7 +14969,7 @@ func awsAwsjson11_deserializeDocumentSampleUtterances(v *[]*string, value interf return nil } -func awsAwsjson11_deserializeDocumentShortSkillIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentShortSkillIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14952,21 +14982,21 @@ func awsAwsjson11_deserializeDocumentShortSkillIdList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SkillId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -15012,7 +15042,7 @@ func awsAwsjson11_deserializeDocumentSipAddress(v **types.SipAddress, value inte if !ok { return fmt.Errorf("expected SipUri to be of type string, got %T instead", value) } - sv.Uri = &jtv + sv.Uri = ptr.String(jtv) } default: @@ -15024,7 +15054,7 @@ func awsAwsjson11_deserializeDocumentSipAddress(v **types.SipAddress, value inte return nil } -func awsAwsjson11_deserializeDocumentSipAddressList(v *[]*types.SipAddress, value interface{}) error { +func awsAwsjson11_deserializeDocumentSipAddressList(v *[]types.SipAddress, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15037,18 +15067,20 @@ func awsAwsjson11_deserializeDocumentSipAddressList(v *[]*types.SipAddress, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SipAddress + var cv []types.SipAddress if *v == nil { - cv = []*types.SipAddress{} + cv = []types.SipAddress{} } else { cv = *v } for _, value := range shape { - var col *types.SipAddress - if err := awsAwsjson11_deserializeDocumentSipAddress(&col, value); err != nil { + var col types.SipAddress + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSipAddress(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15094,7 +15126,7 @@ func awsAwsjson11_deserializeDocumentSkillDetails(v **types.SkillDetails, value if !ok { return fmt.Errorf("expected EndUserLicenseAgreement to be of type string, got %T instead", value) } - sv.EndUserLicenseAgreement = &jtv + sv.EndUserLicenseAgreement = ptr.String(jtv) } case "GenericKeywords": @@ -15108,7 +15140,7 @@ func awsAwsjson11_deserializeDocumentSkillDetails(v **types.SkillDetails, value if !ok { return fmt.Errorf("expected InvocationPhrase to be of type string, got %T instead", value) } - sv.InvocationPhrase = &jtv + sv.InvocationPhrase = ptr.String(jtv) } case "NewInThisVersionBulletPoints": @@ -15122,7 +15154,7 @@ func awsAwsjson11_deserializeDocumentSkillDetails(v **types.SkillDetails, value if !ok { return fmt.Errorf("expected ProductDescription to be of type string, got %T instead", value) } - sv.ProductDescription = &jtv + sv.ProductDescription = ptr.String(jtv) } case "ReleaseDate": @@ -15131,7 +15163,7 @@ func awsAwsjson11_deserializeDocumentSkillDetails(v **types.SkillDetails, value if !ok { return fmt.Errorf("expected ReleaseDate to be of type string, got %T instead", value) } - sv.ReleaseDate = &jtv + sv.ReleaseDate = ptr.String(jtv) } case "Reviews": @@ -15181,7 +15213,7 @@ func awsAwsjson11_deserializeDocumentSkillGroup(v **types.SkillGroup, value inte if !ok { return fmt.Errorf("expected SkillGroupDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "SkillGroupArn": @@ -15190,7 +15222,7 @@ func awsAwsjson11_deserializeDocumentSkillGroup(v **types.SkillGroup, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SkillGroupArn = &jtv + sv.SkillGroupArn = ptr.String(jtv) } case "SkillGroupName": @@ -15199,7 +15231,7 @@ func awsAwsjson11_deserializeDocumentSkillGroup(v **types.SkillGroup, value inte if !ok { return fmt.Errorf("expected SkillGroupName to be of type string, got %T instead", value) } - sv.SkillGroupName = &jtv + sv.SkillGroupName = ptr.String(jtv) } default: @@ -15239,7 +15271,7 @@ func awsAwsjson11_deserializeDocumentSkillGroupData(v **types.SkillGroupData, va if !ok { return fmt.Errorf("expected SkillGroupDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "SkillGroupArn": @@ -15248,7 +15280,7 @@ func awsAwsjson11_deserializeDocumentSkillGroupData(v **types.SkillGroupData, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SkillGroupArn = &jtv + sv.SkillGroupArn = ptr.String(jtv) } case "SkillGroupName": @@ -15257,7 +15289,7 @@ func awsAwsjson11_deserializeDocumentSkillGroupData(v **types.SkillGroupData, va if !ok { return fmt.Errorf("expected SkillGroupName to be of type string, got %T instead", value) } - sv.SkillGroupName = &jtv + sv.SkillGroupName = ptr.String(jtv) } default: @@ -15269,7 +15301,7 @@ func awsAwsjson11_deserializeDocumentSkillGroupData(v **types.SkillGroupData, va return nil } -func awsAwsjson11_deserializeDocumentSkillGroupDataList(v *[]*types.SkillGroupData, value interface{}) error { +func awsAwsjson11_deserializeDocumentSkillGroupDataList(v *[]types.SkillGroupData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15282,18 +15314,20 @@ func awsAwsjson11_deserializeDocumentSkillGroupDataList(v *[]*types.SkillGroupDa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SkillGroupData + var cv []types.SkillGroupData if *v == nil { - cv = []*types.SkillGroupData{} + cv = []types.SkillGroupData{} } else { cv = *v } for _, value := range shape { - var col *types.SkillGroupData - if err := awsAwsjson11_deserializeDocumentSkillGroupData(&col, value); err != nil { + var col types.SkillGroupData + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSkillGroupData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15329,7 +15363,7 @@ func awsAwsjson11_deserializeDocumentSkillNotLinkedException(v **types.SkillNotL if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15369,7 +15403,7 @@ func awsAwsjson11_deserializeDocumentSkillsStoreSkill(v **types.SkillsStoreSkill if !ok { return fmt.Errorf("expected IconUrl to be of type string, got %T instead", value) } - sv.IconUrl = &jtv + sv.IconUrl = ptr.String(jtv) } case "SampleUtterances": @@ -15383,7 +15417,7 @@ func awsAwsjson11_deserializeDocumentSkillsStoreSkill(v **types.SkillsStoreSkill if !ok { return fmt.Errorf("expected ShortDescription to be of type string, got %T instead", value) } - sv.ShortDescription = &jtv + sv.ShortDescription = ptr.String(jtv) } case "SkillDetails": @@ -15397,7 +15431,7 @@ func awsAwsjson11_deserializeDocumentSkillsStoreSkill(v **types.SkillsStoreSkill if !ok { return fmt.Errorf("expected SkillId to be of type string, got %T instead", value) } - sv.SkillId = &jtv + sv.SkillId = ptr.String(jtv) } case "SkillName": @@ -15406,7 +15440,7 @@ func awsAwsjson11_deserializeDocumentSkillsStoreSkill(v **types.SkillsStoreSkill if !ok { return fmt.Errorf("expected SkillName to be of type string, got %T instead", value) } - sv.SkillName = &jtv + sv.SkillName = ptr.String(jtv) } case "SupportsLinking": @@ -15415,7 +15449,7 @@ func awsAwsjson11_deserializeDocumentSkillsStoreSkill(v **types.SkillsStoreSkill if !ok { return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) } - sv.SupportsLinking = &jtv + sv.SupportsLinking = jtv } default: @@ -15427,7 +15461,7 @@ func awsAwsjson11_deserializeDocumentSkillsStoreSkill(v **types.SkillsStoreSkill return nil } -func awsAwsjson11_deserializeDocumentSkillsStoreSkillList(v *[]*types.SkillsStoreSkill, value interface{}) error { +func awsAwsjson11_deserializeDocumentSkillsStoreSkillList(v *[]types.SkillsStoreSkill, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15440,18 +15474,20 @@ func awsAwsjson11_deserializeDocumentSkillsStoreSkillList(v *[]*types.SkillsStor return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SkillsStoreSkill + var cv []types.SkillsStoreSkill if *v == nil { - cv = []*types.SkillsStoreSkill{} + cv = []types.SkillsStoreSkill{} } else { cv = *v } for _, value := range shape { - var col *types.SkillsStoreSkill - if err := awsAwsjson11_deserializeDocumentSkillsStoreSkill(&col, value); err != nil { + var col types.SkillsStoreSkill + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSkillsStoreSkill(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15496,7 +15532,7 @@ func awsAwsjson11_deserializeDocumentSkillSummary(v **types.SkillSummary, value if !ok { return fmt.Errorf("expected SkillId to be of type string, got %T instead", value) } - sv.SkillId = &jtv + sv.SkillId = ptr.String(jtv) } case "SkillName": @@ -15505,7 +15541,7 @@ func awsAwsjson11_deserializeDocumentSkillSummary(v **types.SkillSummary, value if !ok { return fmt.Errorf("expected SkillName to be of type string, got %T instead", value) } - sv.SkillName = &jtv + sv.SkillName = ptr.String(jtv) } case "SkillType": @@ -15523,7 +15559,7 @@ func awsAwsjson11_deserializeDocumentSkillSummary(v **types.SkillSummary, value if !ok { return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) } - sv.SupportsLinking = &jtv + sv.SupportsLinking = jtv } default: @@ -15535,7 +15571,7 @@ func awsAwsjson11_deserializeDocumentSkillSummary(v **types.SkillSummary, value return nil } -func awsAwsjson11_deserializeDocumentSkillSummaryList(v *[]*types.SkillSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSkillSummaryList(v *[]types.SkillSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15548,18 +15584,20 @@ func awsAwsjson11_deserializeDocumentSkillSummaryList(v *[]*types.SkillSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SkillSummary + var cv []types.SkillSummary if *v == nil { - cv = []*types.SkillSummary{} + cv = []types.SkillSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SkillSummary - if err := awsAwsjson11_deserializeDocumentSkillSummary(&col, value); err != nil { + var col types.SkillSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSkillSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15567,7 +15605,7 @@ func awsAwsjson11_deserializeDocumentSkillSummaryList(v *[]*types.SkillSummary, return nil } -func awsAwsjson11_deserializeDocumentSkillTypes(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSkillTypes(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15580,21 +15618,21 @@ func awsAwsjson11_deserializeDocumentSkillTypes(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SkillStoreType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -15631,7 +15669,7 @@ func awsAwsjson11_deserializeDocumentSmartHomeAppliance(v **types.SmartHomeAppli if !ok { return fmt.Errorf("expected ApplianceDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "FriendlyName": @@ -15640,7 +15678,7 @@ func awsAwsjson11_deserializeDocumentSmartHomeAppliance(v **types.SmartHomeAppli if !ok { return fmt.Errorf("expected ApplianceFriendlyName to be of type string, got %T instead", value) } - sv.FriendlyName = &jtv + sv.FriendlyName = ptr.String(jtv) } case "ManufacturerName": @@ -15649,7 +15687,7 @@ func awsAwsjson11_deserializeDocumentSmartHomeAppliance(v **types.SmartHomeAppli if !ok { return fmt.Errorf("expected ApplianceManufacturerName to be of type string, got %T instead", value) } - sv.ManufacturerName = &jtv + sv.ManufacturerName = ptr.String(jtv) } default: @@ -15661,7 +15699,7 @@ func awsAwsjson11_deserializeDocumentSmartHomeAppliance(v **types.SmartHomeAppli return nil } -func awsAwsjson11_deserializeDocumentSmartHomeApplianceList(v *[]*types.SmartHomeAppliance, value interface{}) error { +func awsAwsjson11_deserializeDocumentSmartHomeApplianceList(v *[]types.SmartHomeAppliance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15674,18 +15712,20 @@ func awsAwsjson11_deserializeDocumentSmartHomeApplianceList(v *[]*types.SmartHom return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SmartHomeAppliance + var cv []types.SmartHomeAppliance if *v == nil { - cv = []*types.SmartHomeAppliance{} + cv = []types.SmartHomeAppliance{} } else { cv = *v } for _, value := range shape { - var col *types.SmartHomeAppliance - if err := awsAwsjson11_deserializeDocumentSmartHomeAppliance(&col, value); err != nil { + var col types.SmartHomeAppliance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSmartHomeAppliance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15721,7 +15761,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -15730,7 +15770,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -15742,7 +15782,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15755,18 +15795,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15774,7 +15816,7 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentTrustAnchorList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrustAnchorList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15787,21 +15829,21 @@ func awsAwsjson11_deserializeDocumentTrustAnchorList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TrustAnchor to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -15838,7 +15880,7 @@ func awsAwsjson11_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15878,7 +15920,7 @@ func awsAwsjson11_deserializeDocumentUserData(v **types.UserData, value interfac if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "EnrollmentId": @@ -15887,7 +15929,7 @@ func awsAwsjson11_deserializeDocumentUserData(v **types.UserData, value interfac if !ok { return fmt.Errorf("expected EnrollmentId to be of type string, got %T instead", value) } - sv.EnrollmentId = &jtv + sv.EnrollmentId = ptr.String(jtv) } case "EnrollmentStatus": @@ -15905,7 +15947,7 @@ func awsAwsjson11_deserializeDocumentUserData(v **types.UserData, value interfac if !ok { return fmt.Errorf("expected user_FirstName to be of type string, got %T instead", value) } - sv.FirstName = &jtv + sv.FirstName = ptr.String(jtv) } case "LastName": @@ -15914,7 +15956,7 @@ func awsAwsjson11_deserializeDocumentUserData(v **types.UserData, value interfac if !ok { return fmt.Errorf("expected user_LastName to be of type string, got %T instead", value) } - sv.LastName = &jtv + sv.LastName = ptr.String(jtv) } case "UserArn": @@ -15923,7 +15965,7 @@ func awsAwsjson11_deserializeDocumentUserData(v **types.UserData, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } default: @@ -15935,7 +15977,7 @@ func awsAwsjson11_deserializeDocumentUserData(v **types.UserData, value interfac return nil } -func awsAwsjson11_deserializeDocumentUserDataList(v *[]*types.UserData, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserDataList(v *[]types.UserData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15948,18 +15990,20 @@ func awsAwsjson11_deserializeDocumentUserDataList(v *[]*types.UserData, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserData + var cv []types.UserData if *v == nil { - cv = []*types.UserData{} + cv = []types.UserData{} } else { cv = *v } for _, value := range shape { - var col *types.UserData - if err := awsAwsjson11_deserializeDocumentUserData(&col, value); err != nil { + var col types.UserData + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUserData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16212,7 +16256,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAddressBookOutput(v **CreateAddress if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AddressBookArn = &jtv + sv.AddressBookArn = ptr.String(jtv) } default: @@ -16252,7 +16296,7 @@ func awsAwsjson11_deserializeOpDocumentCreateBusinessReportScheduleOutput(v **Cr if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ScheduleArn = &jtv + sv.ScheduleArn = ptr.String(jtv) } default: @@ -16292,7 +16336,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConferenceProviderOutput(v **Create if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ConferenceProviderArn = &jtv + sv.ConferenceProviderArn = ptr.String(jtv) } default: @@ -16332,7 +16376,7 @@ func awsAwsjson11_deserializeOpDocumentCreateContactOutput(v **CreateContactOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ContactArn = &jtv + sv.ContactArn = ptr.String(jtv) } default: @@ -16372,7 +16416,7 @@ func awsAwsjson11_deserializeOpDocumentCreateGatewayGroupOutput(v **CreateGatewa if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.GatewayGroupArn = &jtv + sv.GatewayGroupArn = ptr.String(jtv) } default: @@ -16412,7 +16456,7 @@ func awsAwsjson11_deserializeOpDocumentCreateNetworkProfileOutput(v **CreateNetw if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.NetworkProfileArn = &jtv + sv.NetworkProfileArn = ptr.String(jtv) } default: @@ -16452,7 +16496,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProfileOutput(v **CreateProfileOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ProfileArn = &jtv + sv.ProfileArn = ptr.String(jtv) } default: @@ -16492,7 +16536,7 @@ func awsAwsjson11_deserializeOpDocumentCreateRoomOutput(v **CreateRoomOutput, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoomArn = &jtv + sv.RoomArn = ptr.String(jtv) } default: @@ -16532,7 +16576,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSkillGroupOutput(v **CreateSkillGro if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SkillGroupArn = &jtv + sv.SkillGroupArn = ptr.String(jtv) } default: @@ -16572,7 +16616,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUserOutput(v **CreateUserOutput, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } default: @@ -17484,7 +17528,7 @@ func awsAwsjson11_deserializeOpDocumentGetInvitationConfigurationOutput(v **GetI if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.ContactEmail = &jtv + sv.ContactEmail = ptr.String(jtv) } case "OrganizationName": @@ -17493,7 +17537,7 @@ func awsAwsjson11_deserializeOpDocumentGetInvitationConfigurationOutput(v **GetI if !ok { return fmt.Errorf("expected OrganizationName to be of type string, got %T instead", value) } - sv.OrganizationName = &jtv + sv.OrganizationName = ptr.String(jtv) } case "PrivateSkillIds": @@ -17723,7 +17767,7 @@ func awsAwsjson11_deserializeOpDocumentListBusinessReportSchedulesOutput(v **Lis if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -17768,7 +17812,7 @@ func awsAwsjson11_deserializeOpDocumentListConferenceProvidersOutput(v **ListCon if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -17813,7 +17857,7 @@ func awsAwsjson11_deserializeOpDocumentListDeviceEventsOutput(v **ListDeviceEven if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -17858,7 +17902,7 @@ func awsAwsjson11_deserializeOpDocumentListGatewayGroupsOutput(v **ListGatewayGr if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -17903,7 +17947,7 @@ func awsAwsjson11_deserializeOpDocumentListGatewaysOutput(v **ListGatewaysOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -17943,7 +17987,7 @@ func awsAwsjson11_deserializeOpDocumentListSkillsOutput(v **ListSkillsOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SkillSummaries": @@ -17993,7 +18037,7 @@ func awsAwsjson11_deserializeOpDocumentListSkillsStoreCategoriesOutput(v **ListS if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -18033,7 +18077,7 @@ func awsAwsjson11_deserializeOpDocumentListSkillsStoreSkillsByCategoryOutput(v * if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SkillsStoreSkills": @@ -18078,7 +18122,7 @@ func awsAwsjson11_deserializeOpDocumentListSmartHomeAppliancesOutput(v **ListSma if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SmartHomeAppliances": @@ -18123,7 +18167,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsOutput(v **ListTagsOutput, value if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -18292,7 +18336,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterAVSDeviceOutput(v **RegisterAVSDe if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DeviceArn = &jtv + sv.DeviceArn = ptr.String(jtv) } default: @@ -18363,7 +18407,7 @@ func awsAwsjson11_deserializeOpDocumentResolveRoomOutput(v **ResolveRoomOutput, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoomArn = &jtv + sv.RoomArn = ptr.String(jtv) } case "RoomName": @@ -18372,7 +18416,7 @@ func awsAwsjson11_deserializeOpDocumentResolveRoomOutput(v **ResolveRoomOutput, if !ok { return fmt.Errorf("expected RoomName to be of type string, got %T instead", value) } - sv.RoomName = &jtv + sv.RoomName = ptr.String(jtv) } case "RoomSkillParameters": @@ -18453,7 +18497,7 @@ func awsAwsjson11_deserializeOpDocumentSearchAddressBooksOutput(v **SearchAddres if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TotalCount": @@ -18511,7 +18555,7 @@ func awsAwsjson11_deserializeOpDocumentSearchContactsOutput(v **SearchContactsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TotalCount": @@ -18569,7 +18613,7 @@ func awsAwsjson11_deserializeOpDocumentSearchDevicesOutput(v **SearchDevicesOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TotalCount": @@ -18627,7 +18671,7 @@ func awsAwsjson11_deserializeOpDocumentSearchNetworkProfilesOutput(v **SearchNet if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TotalCount": @@ -18680,7 +18724,7 @@ func awsAwsjson11_deserializeOpDocumentSearchProfilesOutput(v **SearchProfilesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Profiles": @@ -18738,7 +18782,7 @@ func awsAwsjson11_deserializeOpDocumentSearchRoomsOutput(v **SearchRoomsOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Rooms": @@ -18796,7 +18840,7 @@ func awsAwsjson11_deserializeOpDocumentSearchSkillGroupsOutput(v **SearchSkillGr if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SkillGroups": @@ -18854,7 +18898,7 @@ func awsAwsjson11_deserializeOpDocumentSearchUsersOutput(v **SearchUsersOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TotalCount": @@ -18912,7 +18956,7 @@ func awsAwsjson11_deserializeOpDocumentSendAnnouncementOutput(v **SendAnnounceme if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AnnouncementArn = &jtv + sv.AnnouncementArn = ptr.String(jtv) } default: diff --git a/service/alexaforbusiness/go.mod b/service/alexaforbusiness/go.mod index ae6706dfda6..88a436d3e65 100644 --- a/service/alexaforbusiness/go.mod +++ b/service/alexaforbusiness/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/alexaforbusiness go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/alexaforbusiness/serializers.go b/service/alexaforbusiness/serializers.go index 59c73bd9b60..72b7ee88331 100644 --- a/service/alexaforbusiness/serializers.go +++ b/service/alexaforbusiness/serializers.go @@ -4294,34 +4294,26 @@ func awsAwsjson11_serializeDocumentAudio(v *types.Audio, value smithyjson.Value) return nil } -func awsAwsjson11_serializeDocumentAudioList(v []*types.Audio, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAudioList(v []types.Audio, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAudio(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAudio(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentAuthorizationResult(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAuthorizationResult(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -4481,17 +4473,13 @@ func awsAwsjson11_serializeDocumentCreateRequireCheckIn(v *types.CreateRequireCh return nil } -func awsAwsjson11_serializeDocumentEndOfMeetingReminderMinutesList(v []*int32, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEndOfMeetingReminderMinutesList(v []int32, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Integer(*v[i]) + av.Integer(v[i]) } return nil } @@ -4526,34 +4514,26 @@ func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentFilterList(v []*types.Filter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterList(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentFilterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4604,17 +4584,13 @@ func awsAwsjson11_serializeDocumentPhoneNumber(v *types.PhoneNumber, value smith return nil } -func awsAwsjson11_serializeDocumentPhoneNumberList(v []*types.PhoneNumber, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPhoneNumberList(v []types.PhoneNumber, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPhoneNumber(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPhoneNumber(&v[i], av); err != nil { return err } } @@ -4665,17 +4641,13 @@ func awsAwsjson11_serializeDocumentRoomSkillParameter(v *types.RoomSkillParamete return nil } -func awsAwsjson11_serializeDocumentShortSkillIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentShortSkillIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4697,17 +4669,13 @@ func awsAwsjson11_serializeDocumentSipAddress(v *types.SipAddress, value smithyj return nil } -func awsAwsjson11_serializeDocumentSipAddressList(v []*types.SipAddress, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSipAddressList(v []types.SipAddress, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSipAddress(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSipAddress(&v[i], av); err != nil { return err } } @@ -4731,17 +4699,13 @@ func awsAwsjson11_serializeDocumentSort(v *types.Sort, value smithyjson.Value) e return nil } -func awsAwsjson11_serializeDocumentSortList(v []*types.Sort, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSortList(v []types.Sort, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSort(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSort(&v[i], av); err != nil { return err } } @@ -4765,17 +4729,13 @@ func awsAwsjson11_serializeDocumentSsml(v *types.Ssml, value smithyjson.Value) e return nil } -func awsAwsjson11_serializeDocumentSsmlList(v []*types.Ssml, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSsmlList(v []types.Ssml, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSsml(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSsml(&v[i], av); err != nil { return err } } @@ -4799,32 +4759,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -4848,34 +4800,26 @@ func awsAwsjson11_serializeDocumentText(v *types.Text, value smithyjson.Value) e return nil } -func awsAwsjson11_serializeDocumentTextList(v []*types.Text, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTextList(v []types.Text, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentText(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentText(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTrustAnchorList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTrustAnchorList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/alexaforbusiness/types/types.go b/service/alexaforbusiness/types/types.go index d00f739455b..f6db57fa664 100644 --- a/service/alexaforbusiness/types/types.go +++ b/service/alexaforbusiness/types/types.go @@ -194,10 +194,10 @@ type Contact struct { PhoneNumber *string // The list of phone numbers for the contact. - PhoneNumbers []*PhoneNumber + PhoneNumbers []PhoneNumber // The list of SIP addresses for the contact. - SipAddresses []*SipAddress + SipAddresses []SipAddress } // Information related to a contact. @@ -221,10 +221,10 @@ type ContactData struct { PhoneNumber *string // The list of phone numbers for the contact. - PhoneNumbers []*PhoneNumber + PhoneNumbers []PhoneNumber // The list of SIP addresses for the contact. - SipAddresses []*SipAddress + SipAddresses []SipAddress } // The content definition. This can contain only one text, SSML, or audio list @@ -232,13 +232,13 @@ type ContactData struct { type Content struct { // The list of audio messages. - AudioList []*Audio + AudioList []Audio // The list of SSML messages. - SsmlList []*Ssml + SsmlList []Ssml // The list of text messages. - TextList []*Text + TextList []Text } // Creates settings for the end of meeting reminder feature that are applied to a @@ -254,7 +254,7 @@ type CreateEndOfMeetingReminder struct { // A range of 3 to 15 minutes that determines when the reminder begins. // // This member is required. - ReminderAtMinutes []*int32 + ReminderAtMinutes []int32 // The type of sound that users hear during the end of meeting reminder. // @@ -458,7 +458,7 @@ type DeviceStatusInfo struct { ConnectionStatusUpdatedTime *time.Time // One or more device status detail descriptions. - DeviceStatusDetails []*DeviceStatusDetail + DeviceStatusDetails []DeviceStatusDetail } // Settings for the end of meeting reminder feature that are applied to a room @@ -470,7 +470,7 @@ type EndOfMeetingReminder struct { Enabled *bool // A range of 3 to 15 minutes that determines when the reminder begins. - ReminderAtMinutes []*int32 + ReminderAtMinutes []int32 // The type of sound that users hear during the end of meeting reminder. ReminderType EndOfMeetingReminderType @@ -488,7 +488,7 @@ type Filter struct { // The values of a filter. // // This member is required. - Values []*string + Values []string } // The details of the gateway. @@ -662,7 +662,7 @@ type NetworkProfile struct { // The root certificates of your authentication server, which is installed on your // devices and used to trust your authentication server during EAP negotiation. - TrustAnchors []*string + TrustAnchors []string } // The data associated with a network profile. @@ -902,7 +902,7 @@ type SipAddress struct { type SkillDetails struct { // The details about what the skill supports organized as bullet points. - BulletPoints []*string + BulletPoints []string // The details about the developer that published the skill. DeveloperInfo *DeveloperInfo @@ -911,13 +911,13 @@ type SkillDetails struct { EndUserLicenseAgreement *string // The generic keywords associated with the skill that can be used to find a skill. - GenericKeywords []*string + GenericKeywords []string // The phrase used to trigger the skill. InvocationPhrase *string // The updates added in bullet points. - NewInThisVersionBulletPoints []*string + NewInThisVersionBulletPoints []string // The description of the product. ProductDescription *string @@ -927,10 +927,10 @@ type SkillDetails struct { // This member has been deprecated. The list of reviews for the skill, including // Key and Value pair. - Reviews map[string]*string + Reviews map[string]string // The types of skills. - SkillTypes []*string + SkillTypes []string } // A skill group with attributes. @@ -966,7 +966,7 @@ type SkillsStoreSkill struct { IconUrl *string // Sample utterances that interact with the skill. - SampleUtterances []*string + SampleUtterances []string // Short description about the skill. ShortDescription *string @@ -981,7 +981,7 @@ type SkillsStoreSkill struct { SkillName *string // Linking support for a skill. - SupportsLinking *bool + SupportsLinking bool } // The summary of skills. @@ -1001,7 +1001,7 @@ type SkillSummary struct { SkillType SkillType // Linking support for a skill. - SupportsLinking *bool + SupportsLinking bool } // A smart home appliance that can connect to a central system. Any domestic device @@ -1087,7 +1087,7 @@ type UpdateEndOfMeetingReminder struct { // Updates settings for the end of meeting reminder feature that are applied to a // room profile. The end of meeting reminder enables Alexa to remind users when a // meeting is ending. - ReminderAtMinutes []*int32 + ReminderAtMinutes []int32 // The type of sound that users hear during the end of meeting reminder. ReminderType EndOfMeetingReminderType diff --git a/service/alexaforbusiness/validators.go b/service/alexaforbusiness/validators.go index f0b4d235c8c..3b8021b4b2c 100644 --- a/service/alexaforbusiness/validators.go +++ b/service/alexaforbusiness/validators.go @@ -1660,13 +1660,13 @@ func validateAudio(v *types.Audio) error { } } -func validateAudioList(v []*types.Audio) error { +func validateAudioList(v []types.Audio) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AudioList"} for i := range v { - if err := validateAudio(v[i]); err != nil { + if err := validateAudio(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1821,13 +1821,13 @@ func validateFilter(v *types.Filter) error { } } -func validateFilterList(v []*types.Filter) error { +func validateFilterList(v []types.Filter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FilterList"} for i := range v { - if err := validateFilter(v[i]); err != nil { + if err := validateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1889,13 +1889,13 @@ func validatePhoneNumber(v *types.PhoneNumber) error { } } -func validatePhoneNumberList(v []*types.PhoneNumber) error { +func validatePhoneNumberList(v []types.PhoneNumber) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PhoneNumberList"} for i := range v { - if err := validatePhoneNumber(v[i]); err != nil { + if err := validatePhoneNumber(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1966,13 +1966,13 @@ func validateSipAddress(v *types.SipAddress) error { } } -func validateSipAddressList(v []*types.SipAddress) error { +func validateSipAddressList(v []types.SipAddress) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SipAddressList"} for i := range v { - if err := validateSipAddress(v[i]); err != nil { + if err := validateSipAddress(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2001,13 +2001,13 @@ func validateSort(v *types.Sort) error { } } -func validateSortList(v []*types.Sort) error { +func validateSortList(v []types.Sort) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SortList"} for i := range v { - if err := validateSort(v[i]); err != nil { + if err := validateSort(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2036,13 +2036,13 @@ func validateSsml(v *types.Ssml) error { } } -func validateSsmlList(v []*types.Ssml) error { +func validateSsmlList(v []types.Ssml) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SsmlList"} for i := range v { - if err := validateSsml(v[i]); err != nil { + if err := validateSsml(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2071,13 +2071,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2106,13 +2106,13 @@ func validateText(v *types.Text) error { } } -func validateTextList(v []*types.Text) error { +func validateTextList(v []types.Text) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TextList"} for i := range v { - if err := validateText(v[i]); err != nil { + if err := validateText(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/amplify/api_op_CreateApp.go b/service/amplify/api_op_CreateApp.go index 95868815de7..8138d0b5571 100644 --- a/service/amplify/api_op_CreateApp.go +++ b/service/amplify/api_op_CreateApp.go @@ -44,7 +44,7 @@ type CreateAppInput struct { AutoBranchCreationConfig *types.AutoBranchCreationConfig // The automated branch creation glob patterns for the Amplify app. - AutoBranchCreationPatterns []*string + AutoBranchCreationPatterns []string // The credentials for basic authorization for an Amplify app. BasicAuthCredentials *string @@ -53,7 +53,7 @@ type CreateAppInput struct { BuildSpec *string // The custom rewrite and redirect rules for an Amplify app. - CustomRules []*types.CustomRule + CustomRules []types.CustomRule // The description for an Amplify app. Description *string @@ -73,7 +73,7 @@ type CreateAppInput struct { EnableBranchAutoDeletion *bool // The environment variables map for an Amplify app. - EnvironmentVariables map[string]*string + EnvironmentVariables map[string]string // The AWS Identity and Access Management (IAM) service role for an Amplify app. IamServiceRoleArn *string @@ -90,7 +90,7 @@ type CreateAppInput struct { Repository *string // The tag for an Amplify app. - Tags map[string]*string + Tags map[string]string } type CreateAppOutput struct { diff --git a/service/amplify/api_op_CreateBranch.go b/service/amplify/api_op_CreateBranch.go index b60c66d0f6a..3eedb185abf 100644 --- a/service/amplify/api_op_CreateBranch.go +++ b/service/amplify/api_op_CreateBranch.go @@ -75,7 +75,7 @@ type CreateBranchInput struct { EnablePullRequestPreview *bool // The environment variables for the branch. - EnvironmentVariables map[string]*string + EnvironmentVariables map[string]string // The framework for the branch. Framework *string @@ -87,7 +87,7 @@ type CreateBranchInput struct { Stage types.Stage // The tag for the branch. - Tags map[string]*string + Tags map[string]string // The content Time To Live (TTL) for the website in seconds. Ttl *string diff --git a/service/amplify/api_op_CreateDeployment.go b/service/amplify/api_op_CreateDeployment.go index 7c131c8a320..0234c08aa09 100644 --- a/service/amplify/api_op_CreateDeployment.go +++ b/service/amplify/api_op_CreateDeployment.go @@ -44,7 +44,7 @@ type CreateDeploymentInput struct { // md5 hash as the value. If this argument is provided, the service will generate a // unique upload URL per file. Otherwise, the service will only generate a single // upload URL for the zipped files. - FileMap map[string]*string + FileMap map[string]string } // The result structure for the create a new deployment request. @@ -54,7 +54,7 @@ type CreateDeploymentOutput struct { // contain a map of file names to upload URLs. // // This member is required. - FileUploadUrls map[string]*string + FileUploadUrls map[string]string // When the fileMap argument is not provided in the request, this zipUploadUrl is // returned. diff --git a/service/amplify/api_op_CreateDomainAssociation.go b/service/amplify/api_op_CreateDomainAssociation.go index 985aaeacaf1..f2fa188a4c2 100644 --- a/service/amplify/api_op_CreateDomainAssociation.go +++ b/service/amplify/api_op_CreateDomainAssociation.go @@ -44,10 +44,10 @@ type CreateDomainAssociationInput struct { // The setting for the subdomain. // // This member is required. - SubDomainSettings []*types.SubDomainSetting + SubDomainSettings []types.SubDomainSetting // Sets the branch patterns for automatic subdomain creation. - AutoSubDomainCreationPatterns []*string + AutoSubDomainCreationPatterns []string // The required AWS Identity and Access Management (IAM) service role for the // Amazon Resource Name (ARN) for automatically creating subdomains. diff --git a/service/amplify/api_op_ListApps.go b/service/amplify/api_op_ListApps.go index 96ca7880b61..cd081ad8e56 100644 --- a/service/amplify/api_op_ListApps.go +++ b/service/amplify/api_op_ListApps.go @@ -31,7 +31,7 @@ func (c *Client) ListApps(ctx context.Context, params *ListAppsInput, optFns ... type ListAppsInput struct { // The maximum number of records to list in a single response. - MaxResults *int32 + MaxResults int32 // A pagination token. If non-null, the pagination token is returned in a result. // Pass its value in another request to retrieve more entries. @@ -44,7 +44,7 @@ type ListAppsOutput struct { // A list of Amplify apps. // // This member is required. - Apps []*types.App + Apps []types.App // A pagination token. Set to null to start listing apps from start. If non-null, // the pagination token is returned in a result. Pass its value in here to list diff --git a/service/amplify/api_op_ListArtifacts.go b/service/amplify/api_op_ListArtifacts.go index 22f595a7856..58f855e127b 100644 --- a/service/amplify/api_op_ListArtifacts.go +++ b/service/amplify/api_op_ListArtifacts.go @@ -46,7 +46,7 @@ type ListArtifactsInput struct { JobId *string // The maximum number of records to list in a single response. - MaxResults *int32 + MaxResults int32 // A pagination token. Set to null to start listing artifacts from start. If a // non-null pagination token is returned in a result, pass its value in here to @@ -60,7 +60,7 @@ type ListArtifactsOutput struct { // A list of artifacts. // // This member is required. - Artifacts []*types.Artifact + Artifacts []types.Artifact // A pagination token. If a non-null pagination token is returned in a result, pass // its value in another request to retrieve more entries. diff --git a/service/amplify/api_op_ListBackendEnvironments.go b/service/amplify/api_op_ListBackendEnvironments.go index c4fd740c77c..c72db8c8f2d 100644 --- a/service/amplify/api_op_ListBackendEnvironments.go +++ b/service/amplify/api_op_ListBackendEnvironments.go @@ -39,7 +39,7 @@ type ListBackendEnvironmentsInput struct { EnvironmentName *string // The maximum number of records to list in a single response. - MaxResults *int32 + MaxResults int32 // A pagination token. Set to null to start listing backend environments from the // start. If a non-null pagination token is returned in a result, pass its value in @@ -53,7 +53,7 @@ type ListBackendEnvironmentsOutput struct { // The list of backend environments for an Amplify app. // // This member is required. - BackendEnvironments []*types.BackendEnvironment + BackendEnvironments []types.BackendEnvironment // A pagination token. If a non-null pagination token is returned in a result, pass // its value in another request to retrieve more entries. diff --git a/service/amplify/api_op_ListBranches.go b/service/amplify/api_op_ListBranches.go index 3482fd1b783..7fb20d8f797 100644 --- a/service/amplify/api_op_ListBranches.go +++ b/service/amplify/api_op_ListBranches.go @@ -36,7 +36,7 @@ type ListBranchesInput struct { AppId *string // The maximum number of records to list in a single response. - MaxResults *int32 + MaxResults int32 // A pagination token. Set to null to start listing branches from the start. If a // non-null pagination token is returned in a result, pass its value in here to @@ -50,7 +50,7 @@ type ListBranchesOutput struct { // A list of branches for an Amplify app. // // This member is required. - Branches []*types.Branch + Branches []types.Branch // A pagination token. If a non-null pagination token is returned in a result, pass // its value in another request to retrieve more entries. diff --git a/service/amplify/api_op_ListDomainAssociations.go b/service/amplify/api_op_ListDomainAssociations.go index 290d7f8093f..92b8d1737a3 100644 --- a/service/amplify/api_op_ListDomainAssociations.go +++ b/service/amplify/api_op_ListDomainAssociations.go @@ -36,7 +36,7 @@ type ListDomainAssociationsInput struct { AppId *string // The maximum number of records to list in a single response. - MaxResults *int32 + MaxResults int32 // A pagination token. Set to null to start listing apps from the start. If // non-null, a pagination token is returned in a result. Pass its value in here to @@ -50,7 +50,7 @@ type ListDomainAssociationsOutput struct { // A list of domain associations. // // This member is required. - DomainAssociations []*types.DomainAssociation + DomainAssociations []types.DomainAssociation // A pagination token. If non-null, a pagination token is returned in a result. // Pass its value in another request to retrieve more entries. diff --git a/service/amplify/api_op_ListJobs.go b/service/amplify/api_op_ListJobs.go index 9e50b38e756..326c2e25a52 100644 --- a/service/amplify/api_op_ListJobs.go +++ b/service/amplify/api_op_ListJobs.go @@ -41,7 +41,7 @@ type ListJobsInput struct { BranchName *string // The maximum number of records to list in a single response. - MaxResults *int32 + MaxResults int32 // A pagination token. Set to null to start listing steps from the start. If a // non-null pagination token is returned in a result, pass its value in here to @@ -55,7 +55,7 @@ type ListJobsOutput struct { // The result structure for the list job result request. // // This member is required. - JobSummaries []*types.JobSummary + JobSummaries []types.JobSummary // A pagination token. If non-null the pagination token is returned in a result. // Pass its value in another request to retrieve more entries. diff --git a/service/amplify/api_op_ListTagsForResource.go b/service/amplify/api_op_ListTagsForResource.go index bbaa4fbeb73..352540a962c 100644 --- a/service/amplify/api_op_ListTagsForResource.go +++ b/service/amplify/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // A list of tags for the specified The Amazon Resource Name (ARN). - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/amplify/api_op_ListWebhooks.go b/service/amplify/api_op_ListWebhooks.go index edb2478fedd..d000ce37be4 100644 --- a/service/amplify/api_op_ListWebhooks.go +++ b/service/amplify/api_op_ListWebhooks.go @@ -36,7 +36,7 @@ type ListWebhooksInput struct { AppId *string // The maximum number of records to list in a single response. - MaxResults *int32 + MaxResults int32 // A pagination token. Set to null to start listing webhooks from the start. If // non-null,the pagination token is returned in a result. Pass its value in here to @@ -50,7 +50,7 @@ type ListWebhooksOutput struct { // A list of webhooks. // // This member is required. - Webhooks []*types.Webhook + Webhooks []types.Webhook // A pagination token. If non-null, the pagination token is returned in a result. // Pass its value in another request to retrieve more entries. diff --git a/service/amplify/api_op_TagResource.go b/service/amplify/api_op_TagResource.go index 885544c2532..7ba04d145e0 100644 --- a/service/amplify/api_op_TagResource.go +++ b/service/amplify/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // The tags used to tag the resource. // // This member is required. - Tags map[string]*string + Tags map[string]string } // The response for the tag resource request. diff --git a/service/amplify/api_op_UntagResource.go b/service/amplify/api_op_UntagResource.go index e4ac9718361..f284bb93c65 100644 --- a/service/amplify/api_op_UntagResource.go +++ b/service/amplify/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // The tag keys to use to untag a resource. // // This member is required. - TagKeys []*string + TagKeys []string } // The response for the untag resource request. diff --git a/service/amplify/api_op_UpdateApp.go b/service/amplify/api_op_UpdateApp.go index bced8d7fe64..55043d832eb 100644 --- a/service/amplify/api_op_UpdateApp.go +++ b/service/amplify/api_op_UpdateApp.go @@ -44,7 +44,7 @@ type UpdateAppInput struct { AutoBranchCreationConfig *types.AutoBranchCreationConfig // Describes the automated branch creation glob patterns for the Amplify app. - AutoBranchCreationPatterns []*string + AutoBranchCreationPatterns []string // The basic authorization credentials for an Amplify app. BasicAuthCredentials *string @@ -53,7 +53,7 @@ type UpdateAppInput struct { BuildSpec *string // The custom redirect and rewrite rules for an Amplify app. - CustomRules []*types.CustomRule + CustomRules []types.CustomRule // The description for an Amplify app. Description *string @@ -72,7 +72,7 @@ type UpdateAppInput struct { EnableBranchAutoDeletion *bool // The environment variables for an Amplify app. - EnvironmentVariables map[string]*string + EnvironmentVariables map[string]string // The AWS Identity and Access Management (IAM) service role for an Amplify app. IamServiceRoleArn *string diff --git a/service/amplify/api_op_UpdateBranch.go b/service/amplify/api_op_UpdateBranch.go index 8c59ec341c3..fb771836c25 100644 --- a/service/amplify/api_op_UpdateBranch.go +++ b/service/amplify/api_op_UpdateBranch.go @@ -75,7 +75,7 @@ type UpdateBranchInput struct { EnablePullRequestPreview *bool // The environment variables for the branch. - EnvironmentVariables map[string]*string + EnvironmentVariables map[string]string // The framework for the branch. Framework *string diff --git a/service/amplify/api_op_UpdateDomainAssociation.go b/service/amplify/api_op_UpdateDomainAssociation.go index 9caf3d43731..6b0dfd8e432 100644 --- a/service/amplify/api_op_UpdateDomainAssociation.go +++ b/service/amplify/api_op_UpdateDomainAssociation.go @@ -43,10 +43,10 @@ type UpdateDomainAssociationInput struct { // Describes the settings for the subdomain. // // This member is required. - SubDomainSettings []*types.SubDomainSetting + SubDomainSettings []types.SubDomainSetting // Sets the branch patterns for automatic subdomain creation. - AutoSubDomainCreationPatterns []*string + AutoSubDomainCreationPatterns []string // The required AWS Identity and Access Management (IAM) service role for the // Amazon Resource Name (ARN) for automatically creating subdomains. diff --git a/service/amplify/deserializers.go b/service/amplify/deserializers.go index 34fae0cea07..2a9f2594a7a 100644 --- a/service/amplify/deserializers.go +++ b/service/amplify/deserializers.go @@ -652,7 +652,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "zipUploadUrl": @@ -661,7 +661,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if !ok { return fmt.Errorf("expected UploadUrl to be of type string, got %T instead", value) } - sv.ZipUploadUrl = &jtv + sv.ZipUploadUrl = ptr.String(jtv) } default: @@ -2099,7 +2099,7 @@ func awsRestjson1_deserializeOpDocumentGenerateAccessLogsOutput(v **GenerateAcce if !ok { return fmt.Errorf("expected LogUrl to be of type string, got %T instead", value) } - sv.LogUrl = &jtv + sv.LogUrl = ptr.String(jtv) } default: @@ -2418,7 +2418,7 @@ func awsRestjson1_deserializeOpDocumentGetArtifactUrlOutput(v **GetArtifactUrlOu if !ok { return fmt.Errorf("expected ArtifactId to be of type string, got %T instead", value) } - sv.ArtifactId = &jtv + sv.ArtifactId = ptr.String(jtv) } case "artifactUrl": @@ -2427,7 +2427,7 @@ func awsRestjson1_deserializeOpDocumentGetArtifactUrlOutput(v **GetArtifactUrlOu if !ok { return fmt.Errorf("expected ArtifactUrl to be of type string, got %T instead", value) } - sv.ArtifactUrl = &jtv + sv.ArtifactUrl = ptr.String(jtv) } default: @@ -3375,7 +3375,7 @@ func awsRestjson1_deserializeOpDocumentListAppsOutput(v **ListAppsOutput, value if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3540,7 +3540,7 @@ func awsRestjson1_deserializeOpDocumentListArtifactsOutput(v **ListArtifactsOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3702,7 +3702,7 @@ func awsRestjson1_deserializeOpDocumentListBackendEnvironmentsOutput(v **ListBac if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3864,7 +3864,7 @@ func awsRestjson1_deserializeOpDocumentListBranchesOutput(v **ListBranchesOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4026,7 +4026,7 @@ func awsRestjson1_deserializeOpDocumentListDomainAssociationsOutput(v **ListDoma if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4191,7 +4191,7 @@ func awsRestjson1_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, value if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4504,7 +4504,7 @@ func awsRestjson1_deserializeOpDocumentListWebhooksOutput(v **ListWebhooksOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "webhooks": @@ -6089,7 +6089,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected AppArn to be of type string, got %T instead", value) } - sv.AppArn = &jtv + sv.AppArn = ptr.String(jtv) } case "appId": @@ -6098,7 +6098,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected AppId to be of type string, got %T instead", value) } - sv.AppId = &jtv + sv.AppId = ptr.String(jtv) } case "autoBranchCreationConfig": @@ -6117,7 +6117,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected BasicAuthCredentials to be of type string, got %T instead", value) } - sv.BasicAuthCredentials = &jtv + sv.BasicAuthCredentials = ptr.String(jtv) } case "buildSpec": @@ -6126,7 +6126,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected BuildSpec to be of type string, got %T instead", value) } - sv.BuildSpec = &jtv + sv.BuildSpec = ptr.String(jtv) } case "createTime": @@ -6153,7 +6153,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected DefaultDomain to be of type string, got %T instead", value) } - sv.DefaultDomain = &jtv + sv.DefaultDomain = ptr.String(jtv) } case "description": @@ -6162,7 +6162,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "enableAutoBranchCreation": @@ -6171,7 +6171,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected EnableAutoBranchCreation to be of type *bool, got %T instead", value) } - sv.EnableAutoBranchCreation = &jtv + sv.EnableAutoBranchCreation = ptr.Bool(jtv) } case "enableBasicAuth": @@ -6180,7 +6180,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected EnableBasicAuth to be of type *bool, got %T instead", value) } - sv.EnableBasicAuth = &jtv + sv.EnableBasicAuth = ptr.Bool(jtv) } case "enableBranchAutoBuild": @@ -6189,7 +6189,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected EnableBranchAutoBuild to be of type *bool, got %T instead", value) } - sv.EnableBranchAutoBuild = &jtv + sv.EnableBranchAutoBuild = ptr.Bool(jtv) } case "enableBranchAutoDeletion": @@ -6198,7 +6198,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected EnableBranchAutoDeletion to be of type *bool, got %T instead", value) } - sv.EnableBranchAutoDeletion = &jtv + sv.EnableBranchAutoDeletion = ptr.Bool(jtv) } case "environmentVariables": @@ -6212,7 +6212,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected ServiceRoleArn to be of type string, got %T instead", value) } - sv.IamServiceRoleArn = &jtv + sv.IamServiceRoleArn = ptr.String(jtv) } case "name": @@ -6221,7 +6221,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "platform": @@ -6244,7 +6244,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected Repository to be of type string, got %T instead", value) } - sv.Repository = &jtv + sv.Repository = ptr.String(jtv) } case "tags": @@ -6274,7 +6274,7 @@ func awsRestjson1_deserializeDocumentApp(v **types.App, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentApps(v *[]*types.App, value interface{}) error { +func awsRestjson1_deserializeDocumentApps(v *[]types.App, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6287,18 +6287,20 @@ func awsRestjson1_deserializeDocumentApps(v *[]*types.App, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.App + var cv []types.App if *v == nil { - cv = []*types.App{} + cv = []types.App{} } else { cv = *v } for _, value := range shape { - var col *types.App - if err := awsRestjson1_deserializeDocumentApp(&col, value); err != nil { + var col types.App + destAddr := &col + if err := awsRestjson1_deserializeDocumentApp(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6334,7 +6336,7 @@ func awsRestjson1_deserializeDocumentArtifact(v **types.Artifact, value interfac if !ok { return fmt.Errorf("expected ArtifactFileName to be of type string, got %T instead", value) } - sv.ArtifactFileName = &jtv + sv.ArtifactFileName = ptr.String(jtv) } case "artifactId": @@ -6343,7 +6345,7 @@ func awsRestjson1_deserializeDocumentArtifact(v **types.Artifact, value interfac if !ok { return fmt.Errorf("expected ArtifactId to be of type string, got %T instead", value) } - sv.ArtifactId = &jtv + sv.ArtifactId = ptr.String(jtv) } default: @@ -6355,7 +6357,7 @@ func awsRestjson1_deserializeDocumentArtifact(v **types.Artifact, value interfac return nil } -func awsRestjson1_deserializeDocumentArtifacts(v *[]*types.Artifact, value interface{}) error { +func awsRestjson1_deserializeDocumentArtifacts(v *[]types.Artifact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6368,18 +6370,20 @@ func awsRestjson1_deserializeDocumentArtifacts(v *[]*types.Artifact, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Artifact + var cv []types.Artifact if *v == nil { - cv = []*types.Artifact{} + cv = []types.Artifact{} } else { cv = *v } for _, value := range shape { - var col *types.Artifact - if err := awsRestjson1_deserializeDocumentArtifact(&col, value); err != nil { + var col types.Artifact + destAddr := &col + if err := awsRestjson1_deserializeDocumentArtifact(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6387,7 +6391,7 @@ func awsRestjson1_deserializeDocumentArtifacts(v *[]*types.Artifact, value inter return nil } -func awsRestjson1_deserializeDocumentAssociatedResources(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAssociatedResources(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6400,21 +6404,21 @@ func awsRestjson1_deserializeDocumentAssociatedResources(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AssociatedResource to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6451,7 +6455,7 @@ func awsRestjson1_deserializeDocumentAutoBranchCreationConfig(v **types.AutoBran if !ok { return fmt.Errorf("expected BasicAuthCredentials to be of type string, got %T instead", value) } - sv.BasicAuthCredentials = &jtv + sv.BasicAuthCredentials = ptr.String(jtv) } case "buildSpec": @@ -6460,7 +6464,7 @@ func awsRestjson1_deserializeDocumentAutoBranchCreationConfig(v **types.AutoBran if !ok { return fmt.Errorf("expected BuildSpec to be of type string, got %T instead", value) } - sv.BuildSpec = &jtv + sv.BuildSpec = ptr.String(jtv) } case "enableAutoBuild": @@ -6469,7 +6473,7 @@ func awsRestjson1_deserializeDocumentAutoBranchCreationConfig(v **types.AutoBran if !ok { return fmt.Errorf("expected EnableAutoBuild to be of type *bool, got %T instead", value) } - sv.EnableAutoBuild = &jtv + sv.EnableAutoBuild = ptr.Bool(jtv) } case "enableBasicAuth": @@ -6478,7 +6482,7 @@ func awsRestjson1_deserializeDocumentAutoBranchCreationConfig(v **types.AutoBran if !ok { return fmt.Errorf("expected EnableBasicAuth to be of type *bool, got %T instead", value) } - sv.EnableBasicAuth = &jtv + sv.EnableBasicAuth = ptr.Bool(jtv) } case "enablePerformanceMode": @@ -6487,7 +6491,7 @@ func awsRestjson1_deserializeDocumentAutoBranchCreationConfig(v **types.AutoBran if !ok { return fmt.Errorf("expected EnablePerformanceMode to be of type *bool, got %T instead", value) } - sv.EnablePerformanceMode = &jtv + sv.EnablePerformanceMode = ptr.Bool(jtv) } case "enablePullRequestPreview": @@ -6496,7 +6500,7 @@ func awsRestjson1_deserializeDocumentAutoBranchCreationConfig(v **types.AutoBran if !ok { return fmt.Errorf("expected EnablePullRequestPreview to be of type *bool, got %T instead", value) } - sv.EnablePullRequestPreview = &jtv + sv.EnablePullRequestPreview = ptr.Bool(jtv) } case "environmentVariables": @@ -6510,7 +6514,7 @@ func awsRestjson1_deserializeDocumentAutoBranchCreationConfig(v **types.AutoBran if !ok { return fmt.Errorf("expected Framework to be of type string, got %T instead", value) } - sv.Framework = &jtv + sv.Framework = ptr.String(jtv) } case "pullRequestEnvironmentName": @@ -6519,7 +6523,7 @@ func awsRestjson1_deserializeDocumentAutoBranchCreationConfig(v **types.AutoBran if !ok { return fmt.Errorf("expected PullRequestEnvironmentName to be of type string, got %T instead", value) } - sv.PullRequestEnvironmentName = &jtv + sv.PullRequestEnvironmentName = ptr.String(jtv) } case "stage": @@ -6540,7 +6544,7 @@ func awsRestjson1_deserializeDocumentAutoBranchCreationConfig(v **types.AutoBran return nil } -func awsRestjson1_deserializeDocumentAutoBranchCreationPatterns(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAutoBranchCreationPatterns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6553,21 +6557,21 @@ func awsRestjson1_deserializeDocumentAutoBranchCreationPatterns(v *[]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AutoBranchCreationPattern to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6576,7 +6580,7 @@ func awsRestjson1_deserializeDocumentAutoBranchCreationPatterns(v *[]*string, va return nil } -func awsRestjson1_deserializeDocumentAutoSubDomainCreationPatterns(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAutoSubDomainCreationPatterns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6589,21 +6593,21 @@ func awsRestjson1_deserializeDocumentAutoSubDomainCreationPatterns(v *[]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AutoSubDomainCreationPattern to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6640,7 +6644,7 @@ func awsRestjson1_deserializeDocumentBackendEnvironment(v **types.BackendEnviron if !ok { return fmt.Errorf("expected BackendEnvironmentArn to be of type string, got %T instead", value) } - sv.BackendEnvironmentArn = &jtv + sv.BackendEnvironmentArn = ptr.String(jtv) } case "createTime": @@ -6662,7 +6666,7 @@ func awsRestjson1_deserializeDocumentBackendEnvironment(v **types.BackendEnviron if !ok { return fmt.Errorf("expected DeploymentArtifacts to be of type string, got %T instead", value) } - sv.DeploymentArtifacts = &jtv + sv.DeploymentArtifacts = ptr.String(jtv) } case "environmentName": @@ -6671,7 +6675,7 @@ func awsRestjson1_deserializeDocumentBackendEnvironment(v **types.BackendEnviron if !ok { return fmt.Errorf("expected EnvironmentName to be of type string, got %T instead", value) } - sv.EnvironmentName = &jtv + sv.EnvironmentName = ptr.String(jtv) } case "stackName": @@ -6680,7 +6684,7 @@ func awsRestjson1_deserializeDocumentBackendEnvironment(v **types.BackendEnviron if !ok { return fmt.Errorf("expected StackName to be of type string, got %T instead", value) } - sv.StackName = &jtv + sv.StackName = ptr.String(jtv) } case "updateTime": @@ -6705,7 +6709,7 @@ func awsRestjson1_deserializeDocumentBackendEnvironment(v **types.BackendEnviron return nil } -func awsRestjson1_deserializeDocumentBackendEnvironments(v *[]*types.BackendEnvironment, value interface{}) error { +func awsRestjson1_deserializeDocumentBackendEnvironments(v *[]types.BackendEnvironment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6718,18 +6722,20 @@ func awsRestjson1_deserializeDocumentBackendEnvironments(v *[]*types.BackendEnvi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BackendEnvironment + var cv []types.BackendEnvironment if *v == nil { - cv = []*types.BackendEnvironment{} + cv = []types.BackendEnvironment{} } else { cv = *v } for _, value := range shape { - var col *types.BackendEnvironment - if err := awsRestjson1_deserializeDocumentBackendEnvironment(&col, value); err != nil { + var col types.BackendEnvironment + destAddr := &col + if err := awsRestjson1_deserializeDocumentBackendEnvironment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6765,7 +6771,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6805,7 +6811,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected ActiveJobId to be of type string, got %T instead", value) } - sv.ActiveJobId = &jtv + sv.ActiveJobId = ptr.String(jtv) } case "associatedResources": @@ -6819,7 +6825,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected BackendEnvironmentArn to be of type string, got %T instead", value) } - sv.BackendEnvironmentArn = &jtv + sv.BackendEnvironmentArn = ptr.String(jtv) } case "basicAuthCredentials": @@ -6828,7 +6834,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected BasicAuthCredentials to be of type string, got %T instead", value) } - sv.BasicAuthCredentials = &jtv + sv.BasicAuthCredentials = ptr.String(jtv) } case "branchArn": @@ -6837,7 +6843,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected BranchArn to be of type string, got %T instead", value) } - sv.BranchArn = &jtv + sv.BranchArn = ptr.String(jtv) } case "branchName": @@ -6846,7 +6852,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected BranchName to be of type string, got %T instead", value) } - sv.BranchName = &jtv + sv.BranchName = ptr.String(jtv) } case "buildSpec": @@ -6855,7 +6861,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected BuildSpec to be of type string, got %T instead", value) } - sv.BuildSpec = &jtv + sv.BuildSpec = ptr.String(jtv) } case "createTime": @@ -6882,7 +6888,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "destinationBranch": @@ -6891,7 +6897,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected BranchName to be of type string, got %T instead", value) } - sv.DestinationBranch = &jtv + sv.DestinationBranch = ptr.String(jtv) } case "displayName": @@ -6900,7 +6906,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "enableAutoBuild": @@ -6909,7 +6915,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected EnableAutoBuild to be of type *bool, got %T instead", value) } - sv.EnableAutoBuild = &jtv + sv.EnableAutoBuild = ptr.Bool(jtv) } case "enableBasicAuth": @@ -6918,7 +6924,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected EnableBasicAuth to be of type *bool, got %T instead", value) } - sv.EnableBasicAuth = &jtv + sv.EnableBasicAuth = ptr.Bool(jtv) } case "enableNotification": @@ -6927,7 +6933,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected EnableNotification to be of type *bool, got %T instead", value) } - sv.EnableNotification = &jtv + sv.EnableNotification = ptr.Bool(jtv) } case "enablePerformanceMode": @@ -6936,7 +6942,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected EnablePerformanceMode to be of type *bool, got %T instead", value) } - sv.EnablePerformanceMode = &jtv + sv.EnablePerformanceMode = ptr.Bool(jtv) } case "enablePullRequestPreview": @@ -6945,7 +6951,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected EnablePullRequestPreview to be of type *bool, got %T instead", value) } - sv.EnablePullRequestPreview = &jtv + sv.EnablePullRequestPreview = ptr.Bool(jtv) } case "environmentVariables": @@ -6959,7 +6965,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected Framework to be of type string, got %T instead", value) } - sv.Framework = &jtv + sv.Framework = ptr.String(jtv) } case "pullRequestEnvironmentName": @@ -6968,7 +6974,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected PullRequestEnvironmentName to be of type string, got %T instead", value) } - sv.PullRequestEnvironmentName = &jtv + sv.PullRequestEnvironmentName = ptr.String(jtv) } case "sourceBranch": @@ -6977,7 +6983,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected BranchName to be of type string, got %T instead", value) } - sv.SourceBranch = &jtv + sv.SourceBranch = ptr.String(jtv) } case "stage": @@ -7000,7 +7006,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected ThumbnailUrl to be of type string, got %T instead", value) } - sv.ThumbnailUrl = &jtv + sv.ThumbnailUrl = ptr.String(jtv) } case "totalNumberOfJobs": @@ -7009,7 +7015,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected TotalNumberOfJobs to be of type string, got %T instead", value) } - sv.TotalNumberOfJobs = &jtv + sv.TotalNumberOfJobs = ptr.String(jtv) } case "ttl": @@ -7018,7 +7024,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) if !ok { return fmt.Errorf("expected TTL to be of type string, got %T instead", value) } - sv.Ttl = &jtv + sv.Ttl = ptr.String(jtv) } case "updateTime": @@ -7043,7 +7049,7 @@ func awsRestjson1_deserializeDocumentBranch(v **types.Branch, value interface{}) return nil } -func awsRestjson1_deserializeDocumentBranches(v *[]*types.Branch, value interface{}) error { +func awsRestjson1_deserializeDocumentBranches(v *[]types.Branch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7056,18 +7062,20 @@ func awsRestjson1_deserializeDocumentBranches(v *[]*types.Branch, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Branch + var cv []types.Branch if *v == nil { - cv = []*types.Branch{} + cv = []types.Branch{} } else { cv = *v } for _, value := range shape { - var col *types.Branch - if err := awsRestjson1_deserializeDocumentBranch(&col, value); err != nil { + var col types.Branch + destAddr := &col + if err := awsRestjson1_deserializeDocumentBranch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7075,7 +7083,7 @@ func awsRestjson1_deserializeDocumentBranches(v *[]*types.Branch, value interfac return nil } -func awsRestjson1_deserializeDocumentCustomDomains(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomDomains(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7088,21 +7096,21 @@ func awsRestjson1_deserializeDocumentCustomDomains(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected CustomDomain to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7139,7 +7147,7 @@ func awsRestjson1_deserializeDocumentCustomRule(v **types.CustomRule, value inte if !ok { return fmt.Errorf("expected Condition to be of type string, got %T instead", value) } - sv.Condition = &jtv + sv.Condition = ptr.String(jtv) } case "source": @@ -7148,7 +7156,7 @@ func awsRestjson1_deserializeDocumentCustomRule(v **types.CustomRule, value inte if !ok { return fmt.Errorf("expected Source to be of type string, got %T instead", value) } - sv.Source = &jtv + sv.Source = ptr.String(jtv) } case "status": @@ -7157,7 +7165,7 @@ func awsRestjson1_deserializeDocumentCustomRule(v **types.CustomRule, value inte if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "target": @@ -7166,7 +7174,7 @@ func awsRestjson1_deserializeDocumentCustomRule(v **types.CustomRule, value inte if !ok { return fmt.Errorf("expected Target to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } default: @@ -7178,7 +7186,7 @@ func awsRestjson1_deserializeDocumentCustomRule(v **types.CustomRule, value inte return nil } -func awsRestjson1_deserializeDocumentCustomRules(v *[]*types.CustomRule, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomRules(v *[]types.CustomRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7191,18 +7199,20 @@ func awsRestjson1_deserializeDocumentCustomRules(v *[]*types.CustomRule, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CustomRule + var cv []types.CustomRule if *v == nil { - cv = []*types.CustomRule{} + cv = []types.CustomRule{} } else { cv = *v } for _, value := range shape { - var col *types.CustomRule - if err := awsRestjson1_deserializeDocumentCustomRule(&col, value); err != nil { + var col types.CustomRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentCustomRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7238,7 +7248,7 @@ func awsRestjson1_deserializeDocumentDependentServiceFailureException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7283,7 +7293,7 @@ func awsRestjson1_deserializeDocumentDomainAssociation(v **types.DomainAssociati if !ok { return fmt.Errorf("expected AutoSubDomainIAMRole to be of type string, got %T instead", value) } - sv.AutoSubDomainIAMRole = &jtv + sv.AutoSubDomainIAMRole = ptr.String(jtv) } case "certificateVerificationDNSRecord": @@ -7292,7 +7302,7 @@ func awsRestjson1_deserializeDocumentDomainAssociation(v **types.DomainAssociati if !ok { return fmt.Errorf("expected CertificateVerificationDNSRecord to be of type string, got %T instead", value) } - sv.CertificateVerificationDNSRecord = &jtv + sv.CertificateVerificationDNSRecord = ptr.String(jtv) } case "domainAssociationArn": @@ -7301,7 +7311,7 @@ func awsRestjson1_deserializeDocumentDomainAssociation(v **types.DomainAssociati if !ok { return fmt.Errorf("expected DomainAssociationArn to be of type string, got %T instead", value) } - sv.DomainAssociationArn = &jtv + sv.DomainAssociationArn = ptr.String(jtv) } case "domainName": @@ -7310,7 +7320,7 @@ func awsRestjson1_deserializeDocumentDomainAssociation(v **types.DomainAssociati if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainStatus": @@ -7328,7 +7338,7 @@ func awsRestjson1_deserializeDocumentDomainAssociation(v **types.DomainAssociati if !ok { return fmt.Errorf("expected EnableAutoSubDomain to be of type *bool, got %T instead", value) } - sv.EnableAutoSubDomain = &jtv + sv.EnableAutoSubDomain = ptr.Bool(jtv) } case "statusReason": @@ -7337,7 +7347,7 @@ func awsRestjson1_deserializeDocumentDomainAssociation(v **types.DomainAssociati if !ok { return fmt.Errorf("expected StatusReason to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } case "subDomains": @@ -7354,7 +7364,7 @@ func awsRestjson1_deserializeDocumentDomainAssociation(v **types.DomainAssociati return nil } -func awsRestjson1_deserializeDocumentDomainAssociations(v *[]*types.DomainAssociation, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainAssociations(v *[]types.DomainAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7367,18 +7377,20 @@ func awsRestjson1_deserializeDocumentDomainAssociations(v *[]*types.DomainAssoci return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainAssociation + var cv []types.DomainAssociation if *v == nil { - cv = []*types.DomainAssociation{} + cv = []types.DomainAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.DomainAssociation - if err := awsRestjson1_deserializeDocumentDomainAssociation(&col, value); err != nil { + var col types.DomainAssociation + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7386,7 +7398,7 @@ func awsRestjson1_deserializeDocumentDomainAssociations(v *[]*types.DomainAssoci return nil } -func awsRestjson1_deserializeDocumentEnvironmentVariables(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentEnvironmentVariables(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7399,21 +7411,21 @@ func awsRestjson1_deserializeDocumentEnvironmentVariables(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected EnvValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -7422,7 +7434,7 @@ func awsRestjson1_deserializeDocumentEnvironmentVariables(v *map[string]*string, return nil } -func awsRestjson1_deserializeDocumentFileUploadUrls(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentFileUploadUrls(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7435,21 +7447,21 @@ func awsRestjson1_deserializeDocumentFileUploadUrls(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected UploadUrl to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -7486,7 +7498,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7539,7 +7551,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentJobSummaries(v *[]*types.JobSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentJobSummaries(v *[]types.JobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7552,18 +7564,20 @@ func awsRestjson1_deserializeDocumentJobSummaries(v *[]*types.JobSummary, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobSummary + var cv []types.JobSummary if *v == nil { - cv = []*types.JobSummary{} + cv = []types.JobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.JobSummary - if err := awsRestjson1_deserializeDocumentJobSummary(&col, value); err != nil { + var col types.JobSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7599,7 +7613,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "commitMessage": @@ -7608,7 +7622,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if !ok { return fmt.Errorf("expected CommitMessage to be of type string, got %T instead", value) } - sv.CommitMessage = &jtv + sv.CommitMessage = ptr.String(jtv) } case "commitTime": @@ -7643,7 +7657,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if !ok { return fmt.Errorf("expected JobArn to be of type string, got %T instead", value) } - sv.JobArn = &jtv + sv.JobArn = ptr.String(jtv) } case "jobId": @@ -7652,7 +7666,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "jobType": @@ -7723,7 +7737,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7763,7 +7777,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7803,7 +7817,7 @@ func awsRestjson1_deserializeDocumentProductionBranch(v **types.ProductionBranch if !ok { return fmt.Errorf("expected BranchName to be of type string, got %T instead", value) } - sv.BranchName = &jtv + sv.BranchName = ptr.String(jtv) } case "lastDeployTime": @@ -7825,7 +7839,7 @@ func awsRestjson1_deserializeDocumentProductionBranch(v **types.ProductionBranch if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "thumbnailUrl": @@ -7834,7 +7848,7 @@ func awsRestjson1_deserializeDocumentProductionBranch(v **types.ProductionBranch if !ok { return fmt.Errorf("expected ThumbnailUrl to be of type string, got %T instead", value) } - sv.ThumbnailUrl = &jtv + sv.ThumbnailUrl = ptr.String(jtv) } default: @@ -7874,7 +7888,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected Code to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -7883,7 +7897,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7895,7 +7909,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentScreenshots(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentScreenshots(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7908,21 +7922,21 @@ func awsRestjson1_deserializeDocumentScreenshots(v *map[string]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ThumbnailUrl to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -7959,7 +7973,7 @@ func awsRestjson1_deserializeDocumentStep(v **types.Step, value interface{}) err if !ok { return fmt.Errorf("expected ArtifactsUrl to be of type string, got %T instead", value) } - sv.ArtifactsUrl = &jtv + sv.ArtifactsUrl = ptr.String(jtv) } case "context": @@ -7968,7 +7982,7 @@ func awsRestjson1_deserializeDocumentStep(v **types.Step, value interface{}) err if !ok { return fmt.Errorf("expected Context to be of type string, got %T instead", value) } - sv.Context = &jtv + sv.Context = ptr.String(jtv) } case "endTime": @@ -7990,7 +8004,7 @@ func awsRestjson1_deserializeDocumentStep(v **types.Step, value interface{}) err if !ok { return fmt.Errorf("expected LogUrl to be of type string, got %T instead", value) } - sv.LogUrl = &jtv + sv.LogUrl = ptr.String(jtv) } case "screenshots": @@ -8026,7 +8040,7 @@ func awsRestjson1_deserializeDocumentStep(v **types.Step, value interface{}) err if !ok { return fmt.Errorf("expected StatusReason to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } case "stepName": @@ -8035,7 +8049,7 @@ func awsRestjson1_deserializeDocumentStep(v **types.Step, value interface{}) err if !ok { return fmt.Errorf("expected StepName to be of type string, got %T instead", value) } - sv.StepName = &jtv + sv.StepName = ptr.String(jtv) } case "testArtifactsUrl": @@ -8044,7 +8058,7 @@ func awsRestjson1_deserializeDocumentStep(v **types.Step, value interface{}) err if !ok { return fmt.Errorf("expected TestArtifactsUrl to be of type string, got %T instead", value) } - sv.TestArtifactsUrl = &jtv + sv.TestArtifactsUrl = ptr.String(jtv) } case "testConfigUrl": @@ -8053,7 +8067,7 @@ func awsRestjson1_deserializeDocumentStep(v **types.Step, value interface{}) err if !ok { return fmt.Errorf("expected TestConfigUrl to be of type string, got %T instead", value) } - sv.TestConfigUrl = &jtv + sv.TestConfigUrl = ptr.String(jtv) } default: @@ -8065,7 +8079,7 @@ func awsRestjson1_deserializeDocumentStep(v **types.Step, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentSteps(v *[]*types.Step, value interface{}) error { +func awsRestjson1_deserializeDocumentSteps(v *[]types.Step, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8078,18 +8092,20 @@ func awsRestjson1_deserializeDocumentSteps(v *[]*types.Step, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Step + var cv []types.Step if *v == nil { - cv = []*types.Step{} + cv = []types.Step{} } else { cv = *v } for _, value := range shape { - var col *types.Step - if err := awsRestjson1_deserializeDocumentStep(&col, value); err != nil { + var col types.Step + destAddr := &col + if err := awsRestjson1_deserializeDocumentStep(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8125,7 +8141,7 @@ func awsRestjson1_deserializeDocumentSubDomain(v **types.SubDomain, value interf if !ok { return fmt.Errorf("expected DNSRecord to be of type string, got %T instead", value) } - sv.DnsRecord = &jtv + sv.DnsRecord = ptr.String(jtv) } case "subDomainSetting": @@ -8139,7 +8155,7 @@ func awsRestjson1_deserializeDocumentSubDomain(v **types.SubDomain, value interf if !ok { return fmt.Errorf("expected Verified to be of type *bool, got %T instead", value) } - sv.Verified = &jtv + sv.Verified = ptr.Bool(jtv) } default: @@ -8151,7 +8167,7 @@ func awsRestjson1_deserializeDocumentSubDomain(v **types.SubDomain, value interf return nil } -func awsRestjson1_deserializeDocumentSubDomains(v *[]*types.SubDomain, value interface{}) error { +func awsRestjson1_deserializeDocumentSubDomains(v *[]types.SubDomain, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8164,18 +8180,20 @@ func awsRestjson1_deserializeDocumentSubDomains(v *[]*types.SubDomain, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SubDomain + var cv []types.SubDomain if *v == nil { - cv = []*types.SubDomain{} + cv = []types.SubDomain{} } else { cv = *v } for _, value := range shape { - var col *types.SubDomain - if err := awsRestjson1_deserializeDocumentSubDomain(&col, value); err != nil { + var col types.SubDomain + destAddr := &col + if err := awsRestjson1_deserializeDocumentSubDomain(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8211,7 +8229,7 @@ func awsRestjson1_deserializeDocumentSubDomainSetting(v **types.SubDomainSetting if !ok { return fmt.Errorf("expected BranchName to be of type string, got %T instead", value) } - sv.BranchName = &jtv + sv.BranchName = ptr.String(jtv) } case "prefix": @@ -8220,7 +8238,7 @@ func awsRestjson1_deserializeDocumentSubDomainSetting(v **types.SubDomainSetting if !ok { return fmt.Errorf("expected DomainPrefix to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } default: @@ -8232,7 +8250,7 @@ func awsRestjson1_deserializeDocumentSubDomainSetting(v **types.SubDomainSetting return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8245,21 +8263,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -8296,7 +8314,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8336,7 +8354,7 @@ func awsRestjson1_deserializeDocumentWebhook(v **types.Webhook, value interface{ if !ok { return fmt.Errorf("expected BranchName to be of type string, got %T instead", value) } - sv.BranchName = &jtv + sv.BranchName = ptr.String(jtv) } case "createTime": @@ -8358,7 +8376,7 @@ func awsRestjson1_deserializeDocumentWebhook(v **types.Webhook, value interface{ if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "updateTime": @@ -8380,7 +8398,7 @@ func awsRestjson1_deserializeDocumentWebhook(v **types.Webhook, value interface{ if !ok { return fmt.Errorf("expected WebhookArn to be of type string, got %T instead", value) } - sv.WebhookArn = &jtv + sv.WebhookArn = ptr.String(jtv) } case "webhookId": @@ -8389,7 +8407,7 @@ func awsRestjson1_deserializeDocumentWebhook(v **types.Webhook, value interface{ if !ok { return fmt.Errorf("expected WebhookId to be of type string, got %T instead", value) } - sv.WebhookId = &jtv + sv.WebhookId = ptr.String(jtv) } case "webhookUrl": @@ -8398,7 +8416,7 @@ func awsRestjson1_deserializeDocumentWebhook(v **types.Webhook, value interface{ if !ok { return fmt.Errorf("expected WebhookUrl to be of type string, got %T instead", value) } - sv.WebhookUrl = &jtv + sv.WebhookUrl = ptr.String(jtv) } default: @@ -8410,7 +8428,7 @@ func awsRestjson1_deserializeDocumentWebhook(v **types.Webhook, value interface{ return nil } -func awsRestjson1_deserializeDocumentWebhooks(v *[]*types.Webhook, value interface{}) error { +func awsRestjson1_deserializeDocumentWebhooks(v *[]types.Webhook, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8423,18 +8441,20 @@ func awsRestjson1_deserializeDocumentWebhooks(v *[]*types.Webhook, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Webhook + var cv []types.Webhook if *v == nil { - cv = []*types.Webhook{} + cv = []types.Webhook{} } else { cv = *v } for _, value := range shape { - var col *types.Webhook - if err := awsRestjson1_deserializeDocumentWebhook(&col, value); err != nil { + var col types.Webhook + destAddr := &col + if err := awsRestjson1_deserializeDocumentWebhook(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/amplify/go.mod b/service/amplify/go.mod index 7c9074a0357..dfb16eecfb4 100644 --- a/service/amplify/go.mod +++ b/service/amplify/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/amplify go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/amplify/serializers.go b/service/amplify/serializers.go index 53906f4069b..c108c1130da 100644 --- a/service/amplify/serializers.go +++ b/service/amplify/serializers.go @@ -245,13 +245,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateBackendEnvironmentInput(v *Create return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } @@ -344,13 +341,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateBranchInput(v *CreateBranchInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } @@ -517,25 +511,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateDeploymentInput(v *CreateDeployme return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.BranchName == nil { + if v.BranchName == nil || len(*v.BranchName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} } if v.BranchName != nil { - if len(*v.BranchName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} - } if err := encoder.SetURI("branchName").String(*v.BranchName); err != nil { return err } @@ -620,13 +608,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateDomainAssociationInput(v *CreateD return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } @@ -733,13 +718,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateWebhookInput(v *CreateWebhookInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } @@ -816,13 +798,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAppInput(v *DeleteAppInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } @@ -882,25 +861,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBackendEnvironmentInput(v *Delete return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.EnvironmentName == nil { + if v.EnvironmentName == nil || len(*v.EnvironmentName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member environmentName must not be empty")} } if v.EnvironmentName != nil { - if len(*v.EnvironmentName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member environmentName must not be empty")} - } if err := encoder.SetURI("environmentName").String(*v.EnvironmentName); err != nil { return err } @@ -960,25 +933,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBranchInput(v *DeleteBranchInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.BranchName == nil { + if v.BranchName == nil || len(*v.BranchName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} } if v.BranchName != nil { - if len(*v.BranchName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} - } if err := encoder.SetURI("branchName").String(*v.BranchName); err != nil { return err } @@ -1038,25 +1005,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDomainAssociationInput(v *DeleteD return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainName must not be empty")} - } if err := encoder.SetURI("domainName").String(*v.DomainName); err != nil { return err } @@ -1116,37 +1077,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteJobInput(v *DeleteJobInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.BranchName == nil { + if v.BranchName == nil || len(*v.BranchName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} } if v.BranchName != nil { - if len(*v.BranchName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} - } if err := encoder.SetURI("branchName").String(*v.BranchName); err != nil { return err } } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -1206,13 +1158,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteWebhookInput(v *DeleteWebhookInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.WebhookId == nil { + if v.WebhookId == nil || len(*v.WebhookId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member webhookId must not be empty")} } if v.WebhookId != nil { - if len(*v.WebhookId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member webhookId must not be empty")} - } if err := encoder.SetURI("webhookId").String(*v.WebhookId); err != nil { return err } @@ -1283,13 +1232,10 @@ func awsRestjson1_serializeOpHttpBindingsGenerateAccessLogsInput(v *GenerateAcce return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } @@ -1371,13 +1317,10 @@ func awsRestjson1_serializeOpHttpBindingsGetAppInput(v *GetAppInput, encoder *ht return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } @@ -1437,13 +1380,10 @@ func awsRestjson1_serializeOpHttpBindingsGetArtifactUrlInput(v *GetArtifactUrlIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ArtifactId == nil { + if v.ArtifactId == nil || len(*v.ArtifactId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member artifactId must not be empty")} } if v.ArtifactId != nil { - if len(*v.ArtifactId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member artifactId must not be empty")} - } if err := encoder.SetURI("artifactId").String(*v.ArtifactId); err != nil { return err } @@ -1503,25 +1443,19 @@ func awsRestjson1_serializeOpHttpBindingsGetBackendEnvironmentInput(v *GetBacken return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.EnvironmentName == nil { + if v.EnvironmentName == nil || len(*v.EnvironmentName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member environmentName must not be empty")} } if v.EnvironmentName != nil { - if len(*v.EnvironmentName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member environmentName must not be empty")} - } if err := encoder.SetURI("environmentName").String(*v.EnvironmentName); err != nil { return err } @@ -1581,25 +1515,19 @@ func awsRestjson1_serializeOpHttpBindingsGetBranchInput(v *GetBranchInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.BranchName == nil { + if v.BranchName == nil || len(*v.BranchName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} } if v.BranchName != nil { - if len(*v.BranchName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} - } if err := encoder.SetURI("branchName").String(*v.BranchName); err != nil { return err } @@ -1659,25 +1587,19 @@ func awsRestjson1_serializeOpHttpBindingsGetDomainAssociationInput(v *GetDomainA return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainName must not be empty")} - } if err := encoder.SetURI("domainName").String(*v.DomainName); err != nil { return err } @@ -1737,37 +1659,28 @@ func awsRestjson1_serializeOpHttpBindingsGetJobInput(v *GetJobInput, encoder *ht return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.BranchName == nil { + if v.BranchName == nil || len(*v.BranchName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} } if v.BranchName != nil { - if len(*v.BranchName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} - } if err := encoder.SetURI("branchName").String(*v.BranchName); err != nil { return err } } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -1827,13 +1740,10 @@ func awsRestjson1_serializeOpHttpBindingsGetWebhookInput(v *GetWebhookInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.WebhookId == nil { + if v.WebhookId == nil || len(*v.WebhookId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member webhookId must not be empty")} } if v.WebhookId != nil { - if len(*v.WebhookId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member webhookId must not be empty")} - } if err := encoder.SetURI("webhookId").String(*v.WebhookId); err != nil { return err } @@ -1893,8 +1803,8 @@ func awsRestjson1_serializeOpHttpBindingsListAppsInput(v *ListAppsInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1955,44 +1865,35 @@ func awsRestjson1_serializeOpHttpBindingsListArtifactsInput(v *ListArtifactsInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.BranchName == nil { + if v.BranchName == nil || len(*v.BranchName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} } if v.BranchName != nil { - if len(*v.BranchName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} - } if err := encoder.SetURI("branchName").String(*v.BranchName); err != nil { return err } } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2053,13 +1954,10 @@ func awsRestjson1_serializeOpHttpBindingsListBackendEnvironmentsInput(v *ListBac return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } @@ -2069,8 +1967,8 @@ func awsRestjson1_serializeOpHttpBindingsListBackendEnvironmentsInput(v *ListBac encoder.SetQuery("environmentName").String(*v.EnvironmentName) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2131,20 +2029,17 @@ func awsRestjson1_serializeOpHttpBindingsListBranchesInput(v *ListBranchesInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2205,20 +2100,17 @@ func awsRestjson1_serializeOpHttpBindingsListDomainAssociationsInput(v *ListDoma return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2279,32 +2171,26 @@ func awsRestjson1_serializeOpHttpBindingsListJobsInput(v *ListJobsInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.BranchName == nil { + if v.BranchName == nil || len(*v.BranchName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} } if v.BranchName != nil { - if len(*v.BranchName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} - } if err := encoder.SetURI("branchName").String(*v.BranchName); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2365,13 +2251,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2431,20 +2314,17 @@ func awsRestjson1_serializeOpHttpBindingsListWebhooksInput(v *ListWebhooksInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2516,25 +2396,19 @@ func awsRestjson1_serializeOpHttpBindingsStartDeploymentInput(v *StartDeployment return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.BranchName == nil { + if v.BranchName == nil || len(*v.BranchName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} } if v.BranchName != nil { - if len(*v.BranchName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} - } if err := encoder.SetURI("branchName").String(*v.BranchName); err != nil { return err } @@ -2622,25 +2496,19 @@ func awsRestjson1_serializeOpHttpBindingsStartJobInput(v *StartJobInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.BranchName == nil { + if v.BranchName == nil || len(*v.BranchName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} } if v.BranchName != nil { - if len(*v.BranchName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} - } if err := encoder.SetURI("branchName").String(*v.BranchName); err != nil { return err } @@ -2737,37 +2605,28 @@ func awsRestjson1_serializeOpHttpBindingsStopJobInput(v *StopJobInput, encoder * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.BranchName == nil { + if v.BranchName == nil || len(*v.BranchName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} } if v.BranchName != nil { - if len(*v.BranchName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} - } if err := encoder.SetURI("branchName").String(*v.BranchName); err != nil { return err } } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -2838,13 +2697,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2918,13 +2774,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2932,10 +2785,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -3004,13 +2854,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAppInput(v *UpdateAppInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } @@ -3181,25 +3028,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateBranchInput(v *UpdateBranchInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.BranchName == nil { + if v.BranchName == nil || len(*v.BranchName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} } if v.BranchName != nil { - if len(*v.BranchName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member branchName must not be empty")} - } if err := encoder.SetURI("branchName").String(*v.BranchName); err != nil { return err } @@ -3354,25 +3195,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDomainAssociationInput(v *UpdateD return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainName must not be empty")} - } if err := encoder.SetURI("domainName").String(*v.DomainName); err != nil { return err } @@ -3474,13 +3309,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateWebhookInput(v *UpdateWebhookInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.WebhookId == nil { + if v.WebhookId == nil || len(*v.WebhookId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member webhookId must not be empty")} } if v.WebhookId != nil { - if len(*v.WebhookId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member webhookId must not be empty")} - } if err := encoder.SetURI("webhookId").String(*v.WebhookId); err != nil { return err } @@ -3565,32 +3397,24 @@ func awsRestjson1_serializeDocumentAutoBranchCreationConfig(v *types.AutoBranchC return nil } -func awsRestjson1_serializeDocumentAutoBranchCreationPatterns(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAutoBranchCreationPatterns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentAutoSubDomainCreationPatterns(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAutoSubDomainCreationPatterns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3622,49 +3446,37 @@ func awsRestjson1_serializeDocumentCustomRule(v *types.CustomRule, value smithyj return nil } -func awsRestjson1_serializeDocumentCustomRules(v []*types.CustomRule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCustomRules(v []types.CustomRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCustomRule(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCustomRule(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentEnvironmentVariables(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEnvironmentVariables(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentFileMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFileMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3686,34 +3498,26 @@ func awsRestjson1_serializeDocumentSubDomainSetting(v *types.SubDomainSetting, v return nil } -func awsRestjson1_serializeDocumentSubDomainSettings(v []*types.SubDomainSetting, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSubDomainSettings(v []types.SubDomainSetting, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSubDomainSetting(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSubDomainSetting(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/amplify/types/types.go b/service/amplify/types/types.go index aa8908e4dec..ef2d8a5baea 100644 --- a/service/amplify/types/types.go +++ b/service/amplify/types/types.go @@ -48,7 +48,7 @@ type App struct { // The environment variables for the Amplify app. // // This member is required. - EnvironmentVariables map[string]*string + EnvironmentVariables map[string]string // The name for the Amplify app. // @@ -74,7 +74,7 @@ type App struct { AutoBranchCreationConfig *AutoBranchCreationConfig // Describes the automated branch creation glob patterns for the Amplify app. - AutoBranchCreationPatterns []*string + AutoBranchCreationPatterns []string // The basic authorization credentials for branches for the Amplify app. BasicAuthCredentials *string @@ -84,7 +84,7 @@ type App struct { BuildSpec *string // Describes the custom redirect and rewrite rules for the Amplify app. - CustomRules []*CustomRule + CustomRules []CustomRule // Enables automated branch creation for the Amplify app. EnableAutoBranchCreation *bool @@ -101,7 +101,7 @@ type App struct { ProductionBranch *ProductionBranch // The tag for the Amplify app. - Tags map[string]*string + Tags map[string]string } // Describes an artifact. @@ -143,7 +143,7 @@ type AutoBranchCreationConfig struct { EnablePullRequestPreview *bool // The environment variables for the autocreated branch. - EnvironmentVariables map[string]*string + EnvironmentVariables map[string]string // The framework for the autocreated branch. Framework *string @@ -214,7 +214,7 @@ type Branch struct { // The custom domains for a branch of an Amplify app. // // This member is required. - CustomDomains []*string + CustomDomains []string // The description for the branch that is part of an Amplify app. // @@ -249,7 +249,7 @@ type Branch struct { // The environment variables specific to a branch of an Amplify app. // // This member is required. - EnvironmentVariables map[string]*string + EnvironmentVariables map[string]string // The framework for a branch of an Amplify app. // @@ -277,7 +277,7 @@ type Branch struct { UpdateTime *time.Time // A list of custom resources that are linked to this branch. - AssociatedResources []*string + AssociatedResources []string // The Amazon Resource Name (ARN) for a backend environment that is part of an // Amplify app. @@ -305,7 +305,7 @@ type Branch struct { SourceBranch *string // The tag for the branch of an Amplify app. - Tags map[string]*string + Tags map[string]string // The thumbnail URL for the branch of an Amplify app. ThumbnailUrl *string @@ -367,10 +367,10 @@ type DomainAssociation struct { // The subdomains for the domain association. // // This member is required. - SubDomains []*SubDomain + SubDomains []SubDomain // Sets branch patterns for automatic subdomain creation. - AutoSubDomainCreationPatterns []*string + AutoSubDomainCreationPatterns []string // The required AWS Identity and Access Management (IAM) service role for the // Amazon Resource Name (ARN) for automatically creating subdomains. @@ -386,7 +386,7 @@ type Job struct { // The execution steps for an execution job, for an Amplify app. // // This member is required. - Steps []*Step + Steps []Step // Describes the summary for an execution job for an Amplify app. // @@ -493,7 +493,7 @@ type Step struct { LogUrl *string // The list of screenshot URLs for the execution step, if relevant. - Screenshots map[string]*string + Screenshots map[string]string // The reason for the current step status. StatusReason *string diff --git a/service/amplify/validators.go b/service/amplify/validators.go index 16303b41642..489257b4fb2 100644 --- a/service/amplify/validators.go +++ b/service/amplify/validators.go @@ -892,13 +892,13 @@ func validateCustomRule(v *types.CustomRule) error { } } -func validateCustomRules(v []*types.CustomRule) error { +func validateCustomRules(v []types.CustomRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CustomRules"} for i := range v { - if err := validateCustomRule(v[i]); err != nil { + if err := validateCustomRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -927,13 +927,13 @@ func validateSubDomainSetting(v *types.SubDomainSetting) error { } } -func validateSubDomainSettings(v []*types.SubDomainSetting) error { +func validateSubDomainSettings(v []types.SubDomainSetting) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SubDomainSettings"} for i := range v { - if err := validateSubDomainSetting(v[i]); err != nil { + if err := validateSubDomainSetting(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/apigateway/api_op_CreateApiKey.go b/service/apigateway/api_op_CreateApiKey.go index ba2f2634da0..3e0ab5c1b75 100644 --- a/service/apigateway/api_op_CreateApiKey.go +++ b/service/apigateway/api_op_CreateApiKey.go @@ -40,19 +40,19 @@ type CreateApiKeyInput struct { Description *string // Specifies whether the ApiKey can be used by callers. - Enabled *bool + Enabled bool // Specifies whether (true) or not (false) the key identifier is distinct from the // created API key value. This parameter is deprecated and should not be used. - GenerateDistinctId *bool + GenerateDistinctId bool // DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key. - StageKeys []*types.StageKey + StageKeys []types.StageKey // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws:. The tag value // can be up to 256 characters. - Tags map[string]*string + Tags map[string]string // Specifies a value of the API key. Value *string @@ -76,7 +76,7 @@ type CreateApiKeyOutput struct { Description *string // Specifies whether the API Key can be used by callers. - Enabled *bool + Enabled bool // The identifier of the API Key. Id *string @@ -88,10 +88,10 @@ type CreateApiKeyOutput struct { Name *string // A list of Stage resources that are associated with the ApiKey resource. - StageKeys []*string + StageKeys []string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // The value of the API Key. Value *string diff --git a/service/apigateway/api_op_CreateAuthorizer.go b/service/apigateway/api_op_CreateAuthorizer.go index a9c18718f82..42f107e4e09 100644 --- a/service/apigateway/api_op_CreateAuthorizer.go +++ b/service/apigateway/api_op_CreateAuthorizer.go @@ -109,7 +109,7 @@ type CreateAuthorizerInput struct { // authorizer. Each element is of this format: // arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN // or REQUEST authorizer, this is not defined. - ProviderARNs []*string + ProviderARNs []string } // Represents an authorization layer for methods. If enabled on a method, API @@ -191,7 +191,7 @@ type CreateAuthorizerOutput struct { // authorizer. Each element is of this format: // arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN // or REQUEST authorizer, this is not defined. - ProviderARNs []*string + ProviderARNs []string // The authorizer type. Valid values are TOKEN for a Lambda function using a single // authorization token submitted in a custom header, REQUEST for a Lambda function diff --git a/service/apigateway/api_op_CreateDeployment.go b/service/apigateway/api_op_CreateDeployment.go index c911da8326d..e4b8bb621ca 100644 --- a/service/apigateway/api_op_CreateDeployment.go +++ b/service/apigateway/api_op_CreateDeployment.go @@ -63,7 +63,7 @@ type CreateDeploymentInput struct { // A map that defines the stage variables for the Stage resource that is associated // with the new deployment. Variable names can have alphanumeric and underscore // characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+. - Variables map[string]*string + Variables map[string]string } // An immutable representation of a RestApi resource that can be called by users @@ -79,7 +79,7 @@ type CreateDeploymentOutput struct { // A summary of the RestApi at the date and time that the deployment resource was // created. - ApiSummary map[string]map[string]*types.MethodSnapshot + ApiSummary map[string]map[string]types.MethodSnapshot // The date and time that the deployment resource was created. CreatedDate *time.Time diff --git a/service/apigateway/api_op_CreateDomainName.go b/service/apigateway/api_op_CreateDomainName.go index 12165c9e88b..0e283d52919 100644 --- a/service/apigateway/api_op_CreateDomainName.go +++ b/service/apigateway/api_op_CreateDomainName.go @@ -88,7 +88,7 @@ type CreateDomainNameInput struct { // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws:. The tag value // can be up to 256 characters. - Tags map[string]*string + Tags map[string]string } // Represents a custom domain name as a user-friendly host name of an API @@ -180,7 +180,7 @@ type CreateDomainNameOutput struct { SecurityPolicy types.SecurityPolicy // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_CreateRequestValidator.go b/service/apigateway/api_op_CreateRequestValidator.go index 05ac8b65f1e..fe8dac94cb3 100644 --- a/service/apigateway/api_op_CreateRequestValidator.go +++ b/service/apigateway/api_op_CreateRequestValidator.go @@ -36,11 +36,11 @@ type CreateRequestValidatorInput struct { // A Boolean flag to indicate whether to validate request body according to the // configured model schema for the method (true) or not (false). - ValidateRequestBody *bool + ValidateRequestBody bool // A Boolean flag to indicate whether to validate request parameters, true, or not // false. - ValidateRequestParameters *bool + ValidateRequestParameters bool } // A set of validation rules for incoming Method requests. In OpenAPI, a @@ -61,11 +61,11 @@ type CreateRequestValidatorOutput struct { // A Boolean flag to indicate whether to validate a request body according to the // configured Model schema. - ValidateRequestBody *bool + ValidateRequestBody bool // A Boolean flag to indicate whether to validate request parameters (true) or not // (false). - ValidateRequestParameters *bool + ValidateRequestParameters bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_CreateResource.go b/service/apigateway/api_op_CreateResource.go index 938ac4f646c..16a3a267d51 100644 --- a/service/apigateway/api_op_CreateResource.go +++ b/service/apigateway/api_op_CreateResource.go @@ -141,7 +141,7 @@ type CreateResourceOutput struct { // OPTIONS is enabled on the resource, you can follow the example here to get that // method. Just replace the GET of the last path segment in the request URL with // OPTIONS. - ResourceMethods map[string]*types.Method + ResourceMethods map[string]types.Method // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_CreateRestApi.go b/service/apigateway/api_op_CreateRestApi.go index c760cd3af03..07298be34cb 100644 --- a/service/apigateway/api_op_CreateRestApi.go +++ b/service/apigateway/api_op_CreateRestApi.go @@ -43,7 +43,7 @@ type CreateRestApiInput struct { // The list of binary media types supported by the RestApi. By default, the RestApi // supports only UTF-8-encoded text payloads. - BinaryMediaTypes []*string + BinaryMediaTypes []string // The ID of the RestApi that you want to clone from. CloneFrom *string @@ -56,7 +56,7 @@ type CreateRestApiInput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // The endpoint configuration of this RestApi showing the endpoint types of the // API. @@ -76,7 +76,7 @@ type CreateRestApiInput struct { // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws:. The tag value // can be up to 256 characters. - Tags map[string]*string + Tags map[string]string // A version identifier for the API. Version *string @@ -98,7 +98,7 @@ type CreateRestApiOutput struct { // The list of binary media types supported by the RestApi. By default, the RestApi // supports only UTF-8-encoded text payloads. - BinaryMediaTypes []*string + BinaryMediaTypes []string // The timestamp when the API was created. CreatedDate *time.Time @@ -111,7 +111,7 @@ type CreateRestApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // The endpoint configuration of this RestApi showing the endpoint types of the // API. @@ -136,14 +136,14 @@ type CreateRestApiOutput struct { Policy *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. - Warnings []*string + Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_CreateStage.go b/service/apigateway/api_op_CreateStage.go index 15ed7cde86d..e7d1f2dec46 100644 --- a/service/apigateway/api_op_CreateStage.go +++ b/service/apigateway/api_op_CreateStage.go @@ -50,7 +50,7 @@ type CreateStageInput struct { StageName *string // Whether cache clustering is enabled for the stage. - CacheClusterEnabled *bool + CacheClusterEnabled bool // The stage's cache cluster size. CacheClusterSize types.CacheClusterSize @@ -67,15 +67,15 @@ type CreateStageInput struct { // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws:. The tag value // can be up to 256 characters. - Tags map[string]*string + Tags map[string]string // Specifies whether active tracing with X-ray is enabled for the Stage. - TracingEnabled *bool + TracingEnabled bool // A map that defines the stage variables for the new Stage resource. Variable // names can have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+. - Variables map[string]*string + Variables map[string]string } // Represents a unique identifier for a version of a deployed RestApi that is @@ -87,7 +87,7 @@ type CreateStageOutput struct { AccessLogSettings *types.AccessLogSettings // Specifies whether a cache cluster is enabled for the stage. - CacheClusterEnabled *bool + CacheClusterEnabled bool // The size of the cache cluster for the stage, if enabled. CacheClusterSize types.CacheClusterSize @@ -120,7 +120,7 @@ type CreateStageOutput struct { // /{method_setting_key below) are method paths defined as // {resource_path}/{http_method} for an individual method override, or /\*/\* for // overriding all methods in the stage. - MethodSettings map[string]*types.MethodSetting + MethodSettings map[string]types.MethodSetting // The name of the stage is the first path segment in the Uniform Resource // Identifier (URI) of a call to API Gateway. Stage names can only contain @@ -129,15 +129,15 @@ type CreateStageOutput struct { StageName *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Specifies whether active tracing with X-ray is enabled for the Stage. - TracingEnabled *bool + TracingEnabled bool // A map that defines the stage variables for a Stage resource. Variable names can // have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+. - Variables map[string]*string + Variables map[string]string // The ARN of the WebAcl associated with the Stage. WebAclArn *string diff --git a/service/apigateway/api_op_CreateUsagePlan.go b/service/apigateway/api_op_CreateUsagePlan.go index 2d173bdec46..19feb08cb16 100644 --- a/service/apigateway/api_op_CreateUsagePlan.go +++ b/service/apigateway/api_op_CreateUsagePlan.go @@ -34,7 +34,7 @@ func (c *Client) CreateUsagePlan(ctx context.Context, params *CreateUsagePlanInp type CreateUsagePlanInput struct { // The associated API stages of the usage plan. - ApiStages []*types.ApiStage + ApiStages []types.ApiStage // The description of the usage plan. Description *string @@ -45,7 +45,7 @@ type CreateUsagePlanInput struct { // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws:. The tag value // can be up to 256 characters. - Tags map[string]*string + Tags map[string]string // The throttling limits of the usage plan. Throttle *types.ThrottleSettings @@ -59,7 +59,7 @@ type CreateUsagePlanInput struct { type CreateUsagePlanOutput struct { // The associated API stages of a usage plan. - ApiStages []*types.ApiStage + ApiStages []types.ApiStage // The description of a usage plan. Description *string @@ -78,7 +78,7 @@ type CreateUsagePlanOutput struct { Quota *types.QuotaSettings // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // The request throttle limits of a usage plan. Throttle *types.ThrottleSettings diff --git a/service/apigateway/api_op_CreateVpcLink.go b/service/apigateway/api_op_CreateVpcLink.go index 2ee24feb3f7..2534709d16a 100644 --- a/service/apigateway/api_op_CreateVpcLink.go +++ b/service/apigateway/api_op_CreateVpcLink.go @@ -41,7 +41,7 @@ type CreateVpcLinkInput struct { // owner. // // This member is required. - TargetArns []*string + TargetArns []string // The description of the VPC link. Description *string @@ -49,7 +49,7 @@ type CreateVpcLinkInput struct { // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws:. The tag value // can be up to 256 characters. - Tags map[string]*string + Tags map[string]string } // An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual @@ -81,11 +81,11 @@ type CreateVpcLinkOutput struct { StatusMessage *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // The ARN of the network load balancer of the VPC targeted by the VPC link. The // network load balancer must be owned by the same AWS account of the API owner. - TargetArns []*string + TargetArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_GenerateClientCertificate.go b/service/apigateway/api_op_GenerateClientCertificate.go index e8474fa48be..9887cf53747 100644 --- a/service/apigateway/api_op_GenerateClientCertificate.go +++ b/service/apigateway/api_op_GenerateClientCertificate.go @@ -36,7 +36,7 @@ type GenerateClientCertificateInput struct { // The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The // tag key can be up to 128 characters and must not start with aws:. The tag value // can be up to 256 characters. - Tags map[string]*string + Tags map[string]string } // Represents a client certificate used to configure client-side SSL authentication @@ -64,7 +64,7 @@ type GenerateClientCertificateOutput struct { PemEncodedCertificate *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_GetAccount.go b/service/apigateway/api_op_GetAccount.go index 8c5ee904b09..a60a2f806c6 100644 --- a/service/apigateway/api_op_GetAccount.go +++ b/service/apigateway/api_op_GetAccount.go @@ -87,7 +87,7 @@ type GetAccountOutput struct { // A list of features supported for the account. When usage plans are enabled, the // features list will include an entry of "UsagePlans". - Features []*string + Features []string // Specifies the API request limits configured for the current Account. ThrottleSettings *types.ThrottleSettings diff --git a/service/apigateway/api_op_GetApiKey.go b/service/apigateway/api_op_GetApiKey.go index 43502e1174a..0f2960fa1f4 100644 --- a/service/apigateway/api_op_GetApiKey.go +++ b/service/apigateway/api_op_GetApiKey.go @@ -58,7 +58,7 @@ type GetApiKeyOutput struct { Description *string // Specifies whether the API Key can be used by callers. - Enabled *bool + Enabled bool // The identifier of the API Key. Id *string @@ -70,10 +70,10 @@ type GetApiKeyOutput struct { Name *string // A list of Stage resources that are associated with the ApiKey resource. - StageKeys []*string + StageKeys []string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // The value of the API Key. Value *string diff --git a/service/apigateway/api_op_GetApiKeys.go b/service/apigateway/api_op_GetApiKeys.go index 2e72b5df267..6425db29e36 100644 --- a/service/apigateway/api_op_GetApiKeys.go +++ b/service/apigateway/api_op_GetApiKeys.go @@ -55,14 +55,14 @@ type GetApiKeysInput struct { type GetApiKeysOutput struct { // The current page of elements from this collection. - Items []*types.ApiKey + Items []types.ApiKey // The current pagination position in the paged result set. Position *string // A list of warning messages logged during the import of API keys when the // failOnWarnings option is set to true. - Warnings []*string + Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_GetAuthorizer.go b/service/apigateway/api_op_GetAuthorizer.go index f18ce5e19bd..a33818b656f 100644 --- a/service/apigateway/api_op_GetAuthorizer.go +++ b/service/apigateway/api_op_GetAuthorizer.go @@ -121,7 +121,7 @@ type GetAuthorizerOutput struct { // authorizer. Each element is of this format: // arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN // or REQUEST authorizer, this is not defined. - ProviderARNs []*string + ProviderARNs []string // The authorizer type. Valid values are TOKEN for a Lambda function using a single // authorization token submitted in a custom header, REQUEST for a Lambda function diff --git a/service/apigateway/api_op_GetAuthorizers.go b/service/apigateway/api_op_GetAuthorizers.go index f95d0b12c0b..2547361adbf 100644 --- a/service/apigateway/api_op_GetAuthorizers.go +++ b/service/apigateway/api_op_GetAuthorizers.go @@ -52,7 +52,7 @@ type GetAuthorizersInput struct { type GetAuthorizersOutput struct { // The current page of elements from this collection. - Items []*types.Authorizer + Items []types.Authorizer // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetBasePathMappings.go b/service/apigateway/api_op_GetBasePathMappings.go index ef0db2e91b9..0f393e69cf8 100644 --- a/service/apigateway/api_op_GetBasePathMappings.go +++ b/service/apigateway/api_op_GetBasePathMappings.go @@ -48,7 +48,7 @@ type GetBasePathMappingsInput struct { type GetBasePathMappingsOutput struct { // The current page of elements from this collection. - Items []*types.BasePathMapping + Items []types.BasePathMapping // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetClientCertificate.go b/service/apigateway/api_op_GetClientCertificate.go index d6122b74fdc..9731f2f13fa 100644 --- a/service/apigateway/api_op_GetClientCertificate.go +++ b/service/apigateway/api_op_GetClientCertificate.go @@ -61,7 +61,7 @@ type GetClientCertificateOutput struct { PemEncodedCertificate *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_GetClientCertificates.go b/service/apigateway/api_op_GetClientCertificates.go index 65303a74980..6f97712107e 100644 --- a/service/apigateway/api_op_GetClientCertificates.go +++ b/service/apigateway/api_op_GetClientCertificates.go @@ -44,7 +44,7 @@ type GetClientCertificatesInput struct { type GetClientCertificatesOutput struct { // The current page of elements from this collection. - Items []*types.ClientCertificate + Items []types.ClientCertificate // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetDeployment.go b/service/apigateway/api_op_GetDeployment.go index 61b90dd084f..3ddb4b2c6b8 100644 --- a/service/apigateway/api_op_GetDeployment.go +++ b/service/apigateway/api_op_GetDeployment.go @@ -50,7 +50,7 @@ type GetDeploymentInput struct { // way. Hence, the parameter value must be a single-valued list containing only the // "apisummary" string. For example, GET // /restapis/{restapi_id}/deployments/{deployment_id}?embed=apisummary. - Embed []*string + Embed []string } // An immutable representation of a RestApi resource that can be called by users @@ -66,7 +66,7 @@ type GetDeploymentOutput struct { // A summary of the RestApi at the date and time that the deployment resource was // created. - ApiSummary map[string]map[string]*types.MethodSnapshot + ApiSummary map[string]map[string]types.MethodSnapshot // The date and time that the deployment resource was created. CreatedDate *time.Time diff --git a/service/apigateway/api_op_GetDeployments.go b/service/apigateway/api_op_GetDeployments.go index 358acb2932a..16421939f1c 100644 --- a/service/apigateway/api_op_GetDeployments.go +++ b/service/apigateway/api_op_GetDeployments.go @@ -57,7 +57,7 @@ type GetDeploymentsInput struct { type GetDeploymentsOutput struct { // The current page of elements from this collection. - Items []*types.Deployment + Items []types.Deployment // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetDocumentationParts.go b/service/apigateway/api_op_GetDocumentationParts.go index 526ae7af9ee..150c668864f 100644 --- a/service/apigateway/api_op_GetDocumentationParts.go +++ b/service/apigateway/api_op_GetDocumentationParts.go @@ -63,7 +63,7 @@ type GetDocumentationPartsInput struct { type GetDocumentationPartsOutput struct { // The current page of elements from this collection. - Items []*types.DocumentationPart + Items []types.DocumentationPart // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetDocumentationVersions.go b/service/apigateway/api_op_GetDocumentationVersions.go index d5dff129191..a5cec294763 100644 --- a/service/apigateway/api_op_GetDocumentationVersions.go +++ b/service/apigateway/api_op_GetDocumentationVersions.go @@ -50,7 +50,7 @@ type GetDocumentationVersionsInput struct { type GetDocumentationVersionsOutput struct { // The current page of elements from this collection. - Items []*types.DocumentationVersion + Items []types.DocumentationVersion // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetDomainName.go b/service/apigateway/api_op_GetDomainName.go index 74145d5057d..b7b447a9284 100644 --- a/service/apigateway/api_op_GetDomainName.go +++ b/service/apigateway/api_op_GetDomainName.go @@ -127,7 +127,7 @@ type GetDomainNameOutput struct { SecurityPolicy types.SecurityPolicy // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_GetDomainNames.go b/service/apigateway/api_op_GetDomainNames.go index 03f1089fc93..c69db1dbe6b 100644 --- a/service/apigateway/api_op_GetDomainNames.go +++ b/service/apigateway/api_op_GetDomainNames.go @@ -43,7 +43,7 @@ type GetDomainNamesInput struct { type GetDomainNamesOutput struct { // The current page of elements from this collection. - Items []*types.DomainName + Items []types.DomainName // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetExport.go b/service/apigateway/api_op_GetExport.go index 4acfb3cfb5f..5cc9e49661a 100644 --- a/service/apigateway/api_op_GetExport.go +++ b/service/apigateway/api_op_GetExport.go @@ -57,7 +57,7 @@ type GetExportInput struct { // x-amazon-apigateway-integration extensions. extensions='authorizers' will export // the API with x-amazon-apigateway-authorizer extensions. postman will export the // API with Postman extensions, allowing for import to the Postman tool - Parameters map[string]*string + Parameters map[string]string } // The binary blob response to GetExport, which contains the generated SDK. diff --git a/service/apigateway/api_op_GetGatewayResponse.go b/service/apigateway/api_op_GetGatewayResponse.go index d06c0829781..755f4da9a9c 100644 --- a/service/apigateway/api_op_GetGatewayResponse.go +++ b/service/apigateway/api_op_GetGatewayResponse.go @@ -137,15 +137,15 @@ type GetGatewayResponseOutput struct { // A Boolean flag to indicate whether this GatewayResponse is the default gateway // response (true) or not (false). A default gateway response is one generated by // API Gateway without any customization by an API developer. - DefaultResponse *bool + DefaultResponse bool // Response parameters (paths, query strings and headers) of the GatewayResponse as // a string-to-string map of key-value pairs. - ResponseParameters map[string]*string + ResponseParameters map[string]string // Response templates of the GatewayResponse as a string-to-string map of key-value // pairs. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // The response type of the associated GatewayResponse. Valid values are // diff --git a/service/apigateway/api_op_GetGatewayResponses.go b/service/apigateway/api_op_GetGatewayResponses.go index 7412ab15582..ce61fbc9ce9 100644 --- a/service/apigateway/api_op_GetGatewayResponses.go +++ b/service/apigateway/api_op_GetGatewayResponses.go @@ -267,7 +267,7 @@ type GetGatewayResponsesInput struct { type GetGatewayResponsesOutput struct { // Returns the entire collection, because of no pagination support. - Items []*types.GatewayResponse + Items []types.GatewayResponse // The current pagination position in the paged result set. The GatewayResponse // collection does not support pagination and the position does not apply here. diff --git a/service/apigateway/api_op_GetIntegration.go b/service/apigateway/api_op_GetIntegration.go index 314a9fff404..3a448b7e034 100644 --- a/service/apigateway/api_op_GetIntegration.go +++ b/service/apigateway/api_op_GetIntegration.go @@ -55,7 +55,7 @@ type GetIntegrationOutput struct { // A list of request parameters whose values API Gateway caches. To be valid values // for cacheKeyParameters, these parameters must also be specified for // MethodrequestParameters. - CacheKeyParameters []*string + CacheKeyParameters []string // Specifies a group of related cached parameters. By default, API Gateway uses the // resource ID as the cacheNamespace. You can specify the same cacheNamespace @@ -133,7 +133,7 @@ type GetIntegrationOutput struct { // $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n" // }, "statusCode": "200" }Creating an API // (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) - IntegrationResponses map[string]*types.IntegrationResponse + IntegrationResponses map[string]types.IntegrationResponse // Specifies how the method request body of an unmapped content type will be passed // through the integration request to the back end without transformation. A @@ -167,16 +167,16 @@ type GetIntegrationOutput struct { // end. The method request parameter value must match the pattern of // method.request.{location}.{name}, where location is querystring, path, or header // and name must be a valid and unique method request parameter name. - RequestParameters map[string]*string + RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. - RequestTemplates map[string]*string + RequestTemplates map[string]string // Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 // milliseconds or 29 seconds. - TimeoutInMillis *int32 + TimeoutInMillis int32 // Specifies the TLS configuration for an integration. TlsConfig *types.TlsConfig diff --git a/service/apigateway/api_op_GetIntegrationResponse.go b/service/apigateway/api_op_GetIntegrationResponse.go index a4cec078f83..b0bdc613a84 100644 --- a/service/apigateway/api_op_GetIntegrationResponse.go +++ b/service/apigateway/api_op_GetIntegrationResponse.go @@ -83,12 +83,12 @@ type GetIntegrationResponseOutput struct { // integration.response.body.{JSON-expression}, where name is a valid and unique // response header name and JSON-expression is a valid JSON expression without the // $ prefix. - ResponseParameters map[string]*string + ResponseParameters map[string]string // Specifies the templates used to transform the integration response body. // Response templates are represented as a key/value map, with a content-type as // the key and a template as the value. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // Specifies the regular expression (regex) pattern used to choose an integration // response based on the response from the back end. For example, if the success diff --git a/service/apigateway/api_op_GetMethod.go b/service/apigateway/api_op_GetMethod.go index 52fd498ee7c..25366edcc3a 100644 --- a/service/apigateway/api_op_GetMethod.go +++ b/service/apigateway/api_op_GetMethod.go @@ -150,7 +150,7 @@ type GetMethodOutput struct { // invocation is not authorized. When the method scope is configured, the client // must provide an access token instead of an identity token for authorization // purposes. - AuthorizationScopes []*string + AuthorizationScopes []string // The method's authorization type. Valid values are NONE for open access, AWS_IAM // for using AWS IAM permissions, CUSTOM for using a custom authorizer, or @@ -252,7 +252,7 @@ type GetMethodOutput struct { // "method.response.header.operator": false, "method.response.header.operand_2": // false, "method.response.header.operand_1": false }, "statusCode": "200" }AWS CLI // (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-method-response.html) - MethodResponses map[string]*types.MethodResponse + MethodResponses map[string]types.MethodResponse // A human-friendly operation identifier for the method. For example, you can // assign the operationName of ListPets for the GET /pets method in the PetStore @@ -262,7 +262,7 @@ type GetMethodOutput struct { // A key-value map specifying data schemas, represented by Model resources, (as the // mapped value) of the request payloads of given content types (as the mapping // key). - RequestModels map[string]*string + RequestModels map[string]string // A key-value map defining required or optional method request parameters that can // be accepted by API Gateway. A key is a method request parameter name matching @@ -272,7 +272,7 @@ type GetMethodOutput struct { // required (true) or optional (false). The method request parameter names defined // here are available in Integration to be mapped to integration request parameters // or templates. - RequestParameters map[string]*bool + RequestParameters map[string]bool // The identifier of a RequestValidator for request validation. RequestValidatorId *string diff --git a/service/apigateway/api_op_GetMethodResponse.go b/service/apigateway/api_op_GetMethodResponse.go index 56fe921be40..1d5e93a93e1 100644 --- a/service/apigateway/api_op_GetMethodResponse.go +++ b/service/apigateway/api_op_GetMethodResponse.go @@ -86,7 +86,7 @@ type GetMethodResponseOutput struct { // Specifies the Model resources used for the response's content-type. Response // models are represented as a key/value map, with a content-type as the key and a // Model name as the value. - ResponseModels map[string]*string + ResponseModels map[string]string // A key-value map specifying required or optional response parameters that API // Gateway can send back to the caller. A key defines a method response header and @@ -101,7 +101,7 @@ type GetMethodResponseOutput struct { // or a JSON expression from the back-end response payload in the form of // integration.response.body.{JSON-expression}, where JSON-expression is a valid // JSON expression without the $ prefix.) - ResponseParameters map[string]*bool + ResponseParameters map[string]bool // The method response's status code. StatusCode *string diff --git a/service/apigateway/api_op_GetModel.go b/service/apigateway/api_op_GetModel.go index 58953dce023..d335de4f213 100644 --- a/service/apigateway/api_op_GetModel.go +++ b/service/apigateway/api_op_GetModel.go @@ -42,7 +42,7 @@ type GetModelInput struct { // A query parameter of a Boolean value to resolve (true) all external model // references and returns a flattened model schema or not (false) The default is // false. - Flatten *bool + Flatten bool } // Represents the data structure of a method's request or response payload. A diff --git a/service/apigateway/api_op_GetModels.go b/service/apigateway/api_op_GetModels.go index 270560d0f48..e901ed39c1b 100644 --- a/service/apigateway/api_op_GetModels.go +++ b/service/apigateway/api_op_GetModels.go @@ -49,7 +49,7 @@ type GetModelsInput struct { type GetModelsOutput struct { // The current page of elements from this collection. - Items []*types.Model + Items []types.Model // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetRequestValidator.go b/service/apigateway/api_op_GetRequestValidator.go index 12d3e979c32..4051f4edf07 100644 --- a/service/apigateway/api_op_GetRequestValidator.go +++ b/service/apigateway/api_op_GetRequestValidator.go @@ -58,11 +58,11 @@ type GetRequestValidatorOutput struct { // A Boolean flag to indicate whether to validate a request body according to the // configured Model schema. - ValidateRequestBody *bool + ValidateRequestBody bool // A Boolean flag to indicate whether to validate request parameters (true) or not // (false). - ValidateRequestParameters *bool + ValidateRequestParameters bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_GetRequestValidators.go b/service/apigateway/api_op_GetRequestValidators.go index a7c58d67d02..dca4188831c 100644 --- a/service/apigateway/api_op_GetRequestValidators.go +++ b/service/apigateway/api_op_GetRequestValidators.go @@ -52,7 +52,7 @@ type GetRequestValidatorsInput struct { type GetRequestValidatorsOutput struct { // The current page of elements from this collection. - Items []*types.RequestValidator + Items []types.RequestValidator // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetResource.go b/service/apigateway/api_op_GetResource.go index fae0dae9806..e33a8db3bc9 100644 --- a/service/apigateway/api_op_GetResource.go +++ b/service/apigateway/api_op_GetResource.go @@ -46,7 +46,7 @@ type GetResourceInput struct { // embedded Method resources this way. The query parameter value must be a // single-valued list and contain the "methods" string. For example, GET // /restapis/{restapi_id}/resources/{resource_id}?embed=methods. - Embed []*string + Embed []string } // Represents an API resource. Create an API @@ -144,7 +144,7 @@ type GetResourceOutput struct { // OPTIONS is enabled on the resource, you can follow the example here to get that // method. Just replace the GET of the last path segment in the request URL with // OPTIONS. - ResourceMethods map[string]*types.Method + ResourceMethods map[string]types.Method // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_GetResources.go b/service/apigateway/api_op_GetResources.go index a857d5f84bc..241683e69df 100644 --- a/service/apigateway/api_op_GetResources.go +++ b/service/apigateway/api_op_GetResources.go @@ -41,7 +41,7 @@ type GetResourcesInput struct { // of the embedded Method resources this way. The query parameter value must be a // single-valued list and contain the "methods" string. For example, GET // /restapis/{restapi_id}/resources?embed=methods. - Embed []*string + Embed []string // The maximum number of returned results per page. The default value is 25 and the // maximum value is 500. @@ -56,7 +56,7 @@ type GetResourcesInput struct { type GetResourcesOutput struct { // The current page of elements from this collection. - Items []*types.Resource + Items []types.Resource // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetRestApi.go b/service/apigateway/api_op_GetRestApi.go index 843c4187dd5..5b784555e2e 100644 --- a/service/apigateway/api_op_GetRestApi.go +++ b/service/apigateway/api_op_GetRestApi.go @@ -53,7 +53,7 @@ type GetRestApiOutput struct { // The list of binary media types supported by the RestApi. By default, the RestApi // supports only UTF-8-encoded text payloads. - BinaryMediaTypes []*string + BinaryMediaTypes []string // The timestamp when the API was created. CreatedDate *time.Time @@ -66,7 +66,7 @@ type GetRestApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // The endpoint configuration of this RestApi showing the endpoint types of the // API. @@ -91,14 +91,14 @@ type GetRestApiOutput struct { Policy *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. - Warnings []*string + Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_GetRestApis.go b/service/apigateway/api_op_GetRestApis.go index a34999ad27b..98ea66f5c8f 100644 --- a/service/apigateway/api_op_GetRestApis.go +++ b/service/apigateway/api_op_GetRestApis.go @@ -45,7 +45,7 @@ type GetRestApisInput struct { type GetRestApisOutput struct { // The current page of elements from this collection. - Items []*types.RestApi + Items []types.RestApi // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetSdk.go b/service/apigateway/api_op_GetSdk.go index 6461e816d86..9e3118453d0 100644 --- a/service/apigateway/api_op_GetSdk.go +++ b/service/apigateway/api_op_GetSdk.go @@ -50,7 +50,7 @@ type GetSdkInput struct { // classPrefix is required. For sdkType of android, parameters named groupId, // artifactId, artifactVersion, and invokerPackage are required. For sdkType of // java, parameters named serviceName and javaPackageName are required. - Parameters map[string]*string + Parameters map[string]string } // The binary blob response to GetSdk, which contains the generated SDK. diff --git a/service/apigateway/api_op_GetSdkType.go b/service/apigateway/api_op_GetSdkType.go index 281efd38c22..f7a8f2ada42 100644 --- a/service/apigateway/api_op_GetSdkType.go +++ b/service/apigateway/api_op_GetSdkType.go @@ -39,7 +39,7 @@ type GetSdkTypeInput struct { type GetSdkTypeOutput struct { // A list of configuration properties of an SdkType. - ConfigurationProperties []*types.SdkConfigurationProperty + ConfigurationProperties []types.SdkConfigurationProperty // The description of an SdkType. Description *string diff --git a/service/apigateway/api_op_GetSdkTypes.go b/service/apigateway/api_op_GetSdkTypes.go index 07b055e6c31..c1b8bfab45d 100644 --- a/service/apigateway/api_op_GetSdkTypes.go +++ b/service/apigateway/api_op_GetSdkTypes.go @@ -41,7 +41,7 @@ type GetSdkTypesInput struct { type GetSdkTypesOutput struct { // The current page of elements from this collection. - Items []*types.SdkType + Items []types.SdkType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_GetStage.go b/service/apigateway/api_op_GetStage.go index fcf97d6e735..9bb7b04c951 100644 --- a/service/apigateway/api_op_GetStage.go +++ b/service/apigateway/api_op_GetStage.go @@ -51,7 +51,7 @@ type GetStageOutput struct { AccessLogSettings *types.AccessLogSettings // Specifies whether a cache cluster is enabled for the stage. - CacheClusterEnabled *bool + CacheClusterEnabled bool // The size of the cache cluster for the stage, if enabled. CacheClusterSize types.CacheClusterSize @@ -84,7 +84,7 @@ type GetStageOutput struct { // /{method_setting_key below) are method paths defined as // {resource_path}/{http_method} for an individual method override, or /\*/\* for // overriding all methods in the stage. - MethodSettings map[string]*types.MethodSetting + MethodSettings map[string]types.MethodSetting // The name of the stage is the first path segment in the Uniform Resource // Identifier (URI) of a call to API Gateway. Stage names can only contain @@ -93,15 +93,15 @@ type GetStageOutput struct { StageName *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Specifies whether active tracing with X-ray is enabled for the Stage. - TracingEnabled *bool + TracingEnabled bool // A map that defines the stage variables for a Stage resource. Variable names can // have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+. - Variables map[string]*string + Variables map[string]string // The ARN of the WebAcl associated with the Stage. WebAclArn *string diff --git a/service/apigateway/api_op_GetStages.go b/service/apigateway/api_op_GetStages.go index 49c09b9eed9..480c362f5b3 100644 --- a/service/apigateway/api_op_GetStages.go +++ b/service/apigateway/api_op_GetStages.go @@ -45,7 +45,7 @@ type GetStagesInput struct { type GetStagesOutput struct { // The current page of elements from this collection. - Item []*types.Stage + Item []types.Stage // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_GetTags.go b/service/apigateway/api_op_GetTags.go index b1bb433f38b..d883d06ac76 100644 --- a/service/apigateway/api_op_GetTags.go +++ b/service/apigateway/api_op_GetTags.go @@ -47,7 +47,7 @@ type GetTagsInput struct { type GetTagsOutput struct { // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_GetUsage.go b/service/apigateway/api_op_GetUsage.go index dd78bc750f1..48550ed4dc8 100644 --- a/service/apigateway/api_op_GetUsage.go +++ b/service/apigateway/api_op_GetUsage.go @@ -70,7 +70,7 @@ type GetUsageOutput struct { // "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} // stands for an API key value and the daily log entry is of the format [used // quota, remaining quota]. - Items map[string][][]*int64 + Items map[string][][]int64 // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetUsagePlan.go b/service/apigateway/api_op_GetUsagePlan.go index 6d0763935fb..99a505c8a3c 100644 --- a/service/apigateway/api_op_GetUsagePlan.go +++ b/service/apigateway/api_op_GetUsagePlan.go @@ -44,7 +44,7 @@ type GetUsagePlanInput struct { type GetUsagePlanOutput struct { // The associated API stages of a usage plan. - ApiStages []*types.ApiStage + ApiStages []types.ApiStage // The description of a usage plan. Description *string @@ -63,7 +63,7 @@ type GetUsagePlanOutput struct { Quota *types.QuotaSettings // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // The request throttle limits of a usage plan. Throttle *types.ThrottleSettings diff --git a/service/apigateway/api_op_GetUsagePlanKeys.go b/service/apigateway/api_op_GetUsagePlanKeys.go index 678164be1e9..c2b4d6053f2 100644 --- a/service/apigateway/api_op_GetUsagePlanKeys.go +++ b/service/apigateway/api_op_GetUsagePlanKeys.go @@ -57,7 +57,7 @@ type GetUsagePlanKeysInput struct { type GetUsagePlanKeysOutput struct { // The current page of elements from this collection. - Items []*types.UsagePlanKey + Items []types.UsagePlanKey // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetUsagePlans.go b/service/apigateway/api_op_GetUsagePlans.go index 48bfa2a6461..14fc5339103 100644 --- a/service/apigateway/api_op_GetUsagePlans.go +++ b/service/apigateway/api_op_GetUsagePlans.go @@ -47,7 +47,7 @@ type GetUsagePlansInput struct { type GetUsagePlansOutput struct { // The current page of elements from this collection. - Items []*types.UsagePlan + Items []types.UsagePlan // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_GetVpcLink.go b/service/apigateway/api_op_GetVpcLink.go index 4b2626de666..809602fef07 100644 --- a/service/apigateway/api_op_GetVpcLink.go +++ b/service/apigateway/api_op_GetVpcLink.go @@ -66,11 +66,11 @@ type GetVpcLinkOutput struct { StatusMessage *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // The ARN of the network load balancer of the VPC targeted by the VPC link. The // network load balancer must be owned by the same AWS account of the API owner. - TargetArns []*string + TargetArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_GetVpcLinks.go b/service/apigateway/api_op_GetVpcLinks.go index 90858a7ef27..39f1193acf9 100644 --- a/service/apigateway/api_op_GetVpcLinks.go +++ b/service/apigateway/api_op_GetVpcLinks.go @@ -46,7 +46,7 @@ type GetVpcLinksInput struct { type GetVpcLinksOutput struct { // The current page of elements from this collection. - Items []*types.VpcLink + Items []types.VpcLink // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_ImportApiKeys.go b/service/apigateway/api_op_ImportApiKeys.go index 7bab17319e7..6efddfb4d69 100644 --- a/service/apigateway/api_op_ImportApiKeys.go +++ b/service/apigateway/api_op_ImportApiKeys.go @@ -39,17 +39,17 @@ type ImportApiKeysInput struct { // A query parameter to indicate whether to rollback ApiKey importation (true) or // not (false) when error is encountered. - FailOnWarnings *bool + FailOnWarnings bool } // The identifier of an ApiKey used in a UsagePlan. type ImportApiKeysOutput struct { // A list of all the ApiKey identifiers. - Ids []*string + Ids []string // A list of warning messages. - Warnings []*string + Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_ImportDocumentationParts.go b/service/apigateway/api_op_ImportDocumentationParts.go index 1ef17d39887..04395846a68 100644 --- a/service/apigateway/api_op_ImportDocumentationParts.go +++ b/service/apigateway/api_op_ImportDocumentationParts.go @@ -36,7 +36,7 @@ type ImportDocumentationPartsInput struct { // A query parameter to specify whether to rollback the documentation importation // (true) or not (false) when a warning is encountered. The default value is false. - FailOnWarnings *bool + FailOnWarnings bool // A query parameter to indicate whether to overwrite (OVERWRITE) any existing // DocumentationParts definition or to merge (MERGE) the new definition into the @@ -54,10 +54,10 @@ type ImportDocumentationPartsInput struct { type ImportDocumentationPartsOutput struct { // A list of the returned documentation part identifiers. - Ids []*string + Ids []string // A list of warning messages reported during import of documentation parts. - Warnings []*string + Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_ImportRestApi.go b/service/apigateway/api_op_ImportRestApi.go index 17aba6d6eb2..bff9125ff5e 100644 --- a/service/apigateway/api_op_ImportRestApi.go +++ b/service/apigateway/api_op_ImportRestApi.go @@ -35,7 +35,7 @@ type ImportRestApiInput struct { // A query parameter to indicate whether to rollback the API creation (true) or not // (false) when a warning is encountered. The default value is false. - FailOnWarnings *bool + FailOnWarnings bool // A key-value map of context-specific query string parameters specifying the // behavior of different API importing operations. The following shows @@ -51,7 +51,7 @@ type ImportRestApiInput struct { // endpoint on the imported API is: aws apigateway import-rest-api --parameters // endpointConfigurationTypes=REGIONAL --body // 'file:///path/to/imported-api-body.json' - Parameters map[string]*string + Parameters map[string]string } // Represents a REST API. Create an API @@ -70,7 +70,7 @@ type ImportRestApiOutput struct { // The list of binary media types supported by the RestApi. By default, the RestApi // supports only UTF-8-encoded text payloads. - BinaryMediaTypes []*string + BinaryMediaTypes []string // The timestamp when the API was created. CreatedDate *time.Time @@ -83,7 +83,7 @@ type ImportRestApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // The endpoint configuration of this RestApi showing the endpoint types of the // API. @@ -108,14 +108,14 @@ type ImportRestApiOutput struct { Policy *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. - Warnings []*string + Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_PutGatewayResponse.go b/service/apigateway/api_op_PutGatewayResponse.go index d3fa846802c..8afb0bb1633 100644 --- a/service/apigateway/api_op_PutGatewayResponse.go +++ b/service/apigateway/api_op_PutGatewayResponse.go @@ -90,11 +90,11 @@ type PutGatewayResponseInput struct { // Response parameters (paths, query strings and headers) of the GatewayResponse as // a string-to-string map of key-value pairs. - ResponseParameters map[string]*string + ResponseParameters map[string]string // Response templates of the GatewayResponse as a string-to-string map of key-value // pairs. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // The HTTP status code of the GatewayResponse. StatusCode *string @@ -150,15 +150,15 @@ type PutGatewayResponseOutput struct { // A Boolean flag to indicate whether this GatewayResponse is the default gateway // response (true) or not (false). A default gateway response is one generated by // API Gateway without any customization by an API developer. - DefaultResponse *bool + DefaultResponse bool // Response parameters (paths, query strings and headers) of the GatewayResponse as // a string-to-string map of key-value pairs. - ResponseParameters map[string]*string + ResponseParameters map[string]string // Response templates of the GatewayResponse as a string-to-string map of key-value // pairs. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // The response type of the associated GatewayResponse. Valid values are // diff --git a/service/apigateway/api_op_PutIntegration.go b/service/apigateway/api_op_PutIntegration.go index 1260212d4be..ee2305995da 100644 --- a/service/apigateway/api_op_PutIntegration.go +++ b/service/apigateway/api_op_PutIntegration.go @@ -53,7 +53,7 @@ type PutIntegrationInput struct { // A list of request parameters whose values API Gateway caches. To be valid values // for cacheKeyParameters, these parameters must also be specified for // MethodrequestParameters. - CacheKeyParameters []*string + CacheKeyParameters []string // Specifies a group of related cached parameters. By default, API Gateway uses the // resource ID as the cacheNamespace. You can specify the same cacheNamespace @@ -121,12 +121,12 @@ type PutIntegrationInput struct { // end. The method request parameter value must match the pattern of // method.request.{location}.{name}, where location is querystring, path, or header // and name must be a valid and unique method request parameter name. - RequestParameters map[string]*string + RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. - RequestTemplates map[string]*string + RequestTemplates map[string]string // Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 // milliseconds or 29 seconds. @@ -172,7 +172,7 @@ type PutIntegrationOutput struct { // A list of request parameters whose values API Gateway caches. To be valid values // for cacheKeyParameters, these parameters must also be specified for // MethodrequestParameters. - CacheKeyParameters []*string + CacheKeyParameters []string // Specifies a group of related cached parameters. By default, API Gateway uses the // resource ID as the cacheNamespace. You can specify the same cacheNamespace @@ -250,7 +250,7 @@ type PutIntegrationOutput struct { // $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n" // }, "statusCode": "200" }Creating an API // (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) - IntegrationResponses map[string]*types.IntegrationResponse + IntegrationResponses map[string]types.IntegrationResponse // Specifies how the method request body of an unmapped content type will be passed // through the integration request to the back end without transformation. A @@ -284,16 +284,16 @@ type PutIntegrationOutput struct { // end. The method request parameter value must match the pattern of // method.request.{location}.{name}, where location is querystring, path, or header // and name must be a valid and unique method request parameter name. - RequestParameters map[string]*string + RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. - RequestTemplates map[string]*string + RequestTemplates map[string]string // Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 // milliseconds or 29 seconds. - TimeoutInMillis *int32 + TimeoutInMillis int32 // Specifies the TLS configuration for an integration. TlsConfig *types.TlsConfig diff --git a/service/apigateway/api_op_PutIntegrationResponse.go b/service/apigateway/api_op_PutIntegrationResponse.go index 8fd81ed0f7d..2775b43f002 100644 --- a/service/apigateway/api_op_PutIntegrationResponse.go +++ b/service/apigateway/api_op_PutIntegrationResponse.go @@ -77,10 +77,10 @@ type PutIntegrationResponseInput struct { // integration.response.body.{JSON-expression}, where name must be a valid and // unique response header name and JSON-expression a valid JSON expression without // the $ prefix. - ResponseParameters map[string]*string + ResponseParameters map[string]string // Specifies a put integration response's templates. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // Specifies the selection pattern of a put integration response. SelectionPattern *string @@ -118,12 +118,12 @@ type PutIntegrationResponseOutput struct { // integration.response.body.{JSON-expression}, where name is a valid and unique // response header name and JSON-expression is a valid JSON expression without the // $ prefix. - ResponseParameters map[string]*string + ResponseParameters map[string]string // Specifies the templates used to transform the integration response body. // Response templates are represented as a key/value map, with a content-type as // the key and a template as the value. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // Specifies the regular expression (regex) pattern used to choose an integration // response based on the response from the back end. For example, if the success diff --git a/service/apigateway/api_op_PutMethod.go b/service/apigateway/api_op_PutMethod.go index d8e7f67e17e..aba1398bc3f 100644 --- a/service/apigateway/api_op_PutMethod.go +++ b/service/apigateway/api_op_PutMethod.go @@ -53,7 +53,7 @@ type PutMethodInput struct { RestApiId *string // Specifies whether the method required a valid ApiKey. - ApiKeyRequired *bool + ApiKeyRequired bool // A list of authorization scopes configured on the method. The scopes are used // with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The @@ -63,7 +63,7 @@ type PutMethodInput struct { // invocation is not authorized. When the method scope is configured, the client // must provide an access token instead of an identity token for authorization // purposes. - AuthorizationScopes []*string + AuthorizationScopes []string // Specifies the identifier of an Authorizer to use on this Method, if the type is // CUSTOM or COGNITO_USER_POOLS. The authorizer identifier is generated by API @@ -78,7 +78,7 @@ type PutMethodInput struct { // Specifies the Model resources used for the request's content type. Request // models are represented as a key/value map, with a content type as the key and a // Model name as the value. - RequestModels map[string]*string + RequestModels map[string]string // A key-value map defining required or optional method request parameters that can // be accepted by API Gateway. A key defines a method request parameter name @@ -88,7 +88,7 @@ type PutMethodInput struct { // is required (true) or optional (false). The method request parameter names // defined here are available in Integration to be mapped to integration request // parameters or body-mapping templates. - RequestParameters map[string]*bool + RequestParameters map[string]bool // The identifier of a RequestValidator for validating the method request. RequestValidatorId *string @@ -198,7 +198,7 @@ type PutMethodOutput struct { // invocation is not authorized. When the method scope is configured, the client // must provide an access token instead of an identity token for authorization // purposes. - AuthorizationScopes []*string + AuthorizationScopes []string // The method's authorization type. Valid values are NONE for open access, AWS_IAM // for using AWS IAM permissions, CUSTOM for using a custom authorizer, or @@ -300,7 +300,7 @@ type PutMethodOutput struct { // "method.response.header.operator": false, "method.response.header.operand_2": // false, "method.response.header.operand_1": false }, "statusCode": "200" }AWS CLI // (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-method-response.html) - MethodResponses map[string]*types.MethodResponse + MethodResponses map[string]types.MethodResponse // A human-friendly operation identifier for the method. For example, you can // assign the operationName of ListPets for the GET /pets method in the PetStore @@ -310,7 +310,7 @@ type PutMethodOutput struct { // A key-value map specifying data schemas, represented by Model resources, (as the // mapped value) of the request payloads of given content types (as the mapping // key). - RequestModels map[string]*string + RequestModels map[string]string // A key-value map defining required or optional method request parameters that can // be accepted by API Gateway. A key is a method request parameter name matching @@ -320,7 +320,7 @@ type PutMethodOutput struct { // required (true) or optional (false). The method request parameter names defined // here are available in Integration to be mapped to integration request parameters // or templates. - RequestParameters map[string]*bool + RequestParameters map[string]bool // The identifier of a RequestValidator for request validation. RequestValidatorId *string diff --git a/service/apigateway/api_op_PutMethodResponse.go b/service/apigateway/api_op_PutMethodResponse.go index 75e9daea72e..301dc0a3b68 100644 --- a/service/apigateway/api_op_PutMethodResponse.go +++ b/service/apigateway/api_op_PutMethodResponse.go @@ -52,7 +52,7 @@ type PutMethodResponseInput struct { // Specifies the Model resources used for the response's content type. Response // models are represented as a key/value map, with a content type as the key and a // Model name as the value. - ResponseModels map[string]*string + ResponseModels map[string]string // A key-value map specifying required or optional response parameters that API // Gateway can send back to the caller. A key defines a method response header name @@ -66,7 +66,7 @@ type PutMethodResponseInput struct { // the back-end response payload in the form of // integration.response.body.{JSON-expression}, where JSON-expression is a valid // JSON expression without the $ prefix.) - ResponseParameters map[string]*bool + ResponseParameters map[string]bool } // Represents a method response of a given HTTP status code returned to the client. @@ -105,7 +105,7 @@ type PutMethodResponseOutput struct { // Specifies the Model resources used for the response's content-type. Response // models are represented as a key/value map, with a content-type as the key and a // Model name as the value. - ResponseModels map[string]*string + ResponseModels map[string]string // A key-value map specifying required or optional response parameters that API // Gateway can send back to the caller. A key defines a method response header and @@ -120,7 +120,7 @@ type PutMethodResponseOutput struct { // or a JSON expression from the back-end response payload in the form of // integration.response.body.{JSON-expression}, where JSON-expression is a valid // JSON expression without the $ prefix.) - ResponseParameters map[string]*bool + ResponseParameters map[string]bool // The method response's status code. StatusCode *string diff --git a/service/apigateway/api_op_PutRestApi.go b/service/apigateway/api_op_PutRestApi.go index fab9722dbfb..e9c12c8363f 100644 --- a/service/apigateway/api_op_PutRestApi.go +++ b/service/apigateway/api_op_PutRestApi.go @@ -41,7 +41,7 @@ type PutRestApiInput struct { // A query parameter to indicate whether to rollback the API update (true) or not // (false) when a warning is encountered. The default value is false. - FailOnWarnings *bool + FailOnWarnings bool // The mode query parameter to specify the update mode. Valid values are "merge" // and "overwrite". By default, the update mode is "merge". @@ -52,7 +52,7 @@ type PutRestApiInput struct { // parameters value, as in the AWS CLI command of aws apigateway import-rest-api // --parameters ignore=documentation --body // 'file:///path/to/imported-api-body.json'. - Parameters map[string]*string + Parameters map[string]string } // Represents a REST API. Create an API @@ -71,7 +71,7 @@ type PutRestApiOutput struct { // The list of binary media types supported by the RestApi. By default, the RestApi // supports only UTF-8-encoded text payloads. - BinaryMediaTypes []*string + BinaryMediaTypes []string // The timestamp when the API was created. CreatedDate *time.Time @@ -84,7 +84,7 @@ type PutRestApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // The endpoint configuration of this RestApi showing the endpoint types of the // API. @@ -109,14 +109,14 @@ type PutRestApiOutput struct { Policy *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. - Warnings []*string + Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_TagResource.go b/service/apigateway/api_op_TagResource.go index b6bdc217c0c..d0f056ce321 100644 --- a/service/apigateway/api_op_TagResource.go +++ b/service/apigateway/api_op_TagResource.go @@ -39,7 +39,7 @@ type TagResourceInput struct { // aws:. The tag value can be up to 256 characters. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/apigateway/api_op_TestInvokeAuthorizer.go b/service/apigateway/api_op_TestInvokeAuthorizer.go index a529dd50f93..fb92032db5d 100644 --- a/service/apigateway/api_op_TestInvokeAuthorizer.go +++ b/service/apigateway/api_op_TestInvokeAuthorizer.go @@ -44,7 +44,7 @@ type TestInvokeAuthorizerInput struct { RestApiId *string // [Optional] A key-value map of additional context variables. - AdditionalContext map[string]*string + AdditionalContext map[string]string // [Optional] The simulated request body of an incoming invocation request. Body *string @@ -52,12 +52,12 @@ type TestInvokeAuthorizerInput struct { // [Required] A key-value map of headers to simulate an incoming invocation // request. This is where the incoming authorization token, or identity source, // should be specified. - Headers map[string]*string + Headers map[string]string // [Optional] The headers as a map from string to list of values to simulate an // incoming invocation request. This is where the incoming authorization token, or // identity source, may be specified. - MultiValueHeaders map[string][]*string + MultiValueHeaders map[string][]string // [Optional] The URI path, including query string, of the simulated invocation // request. Use this to specify path parameters and query string parameters. @@ -65,25 +65,25 @@ type TestInvokeAuthorizerInput struct { // A key-value map of stage variables to simulate an invocation on a deployed // Stage. - StageVariables map[string]*string + StageVariables map[string]string } // Represents the response of the test invoke request for a custom Authorizer type TestInvokeAuthorizerOutput struct { - Authorization map[string][]*string + Authorization map[string][]string // The open identity claims // (https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims), with any // supported custom attributes, returned from the Cognito Your User Pool configured // for the API. - Claims map[string]*string + Claims map[string]string // The HTTP status code that the client would have received. Value is 0 if the // authorizer succeeded. - ClientStatus *int32 + ClientStatus int32 // The execution latency of the test authorizer request. - Latency *int64 + Latency int64 // The API Gateway execution log for the test authorizer request. Log *string diff --git a/service/apigateway/api_op_TestInvokeMethod.go b/service/apigateway/api_op_TestInvokeMethod.go index 482a41a7492..1f28c89a1d0 100644 --- a/service/apigateway/api_op_TestInvokeMethod.go +++ b/service/apigateway/api_op_TestInvokeMethod.go @@ -54,11 +54,11 @@ type TestInvokeMethodInput struct { ClientCertificateId *string // A key-value map of headers to simulate an incoming invocation request. - Headers map[string]*string + Headers map[string]string // The headers as a map from string to list of values to simulate an incoming // invocation request. - MultiValueHeaders map[string][]*string + MultiValueHeaders map[string][]string // The URI path, including query string, of the simulated invocation request. Use // this to specify path parameters and query string parameters. @@ -66,7 +66,7 @@ type TestInvokeMethodInput struct { // A key-value map of stage variables to simulate an invocation on a deployed // Stage. - StageVariables map[string]*string + StageVariables map[string]string } // Represents the response of the test invoke request in the HTTP method. Test API @@ -78,19 +78,19 @@ type TestInvokeMethodOutput struct { Body *string // The headers of the HTTP response. - Headers map[string]*string + Headers map[string]string // The execution latency of the test invoke request. - Latency *int64 + Latency int64 // The API Gateway execution log for the test invoke request. Log *string // The headers of the HTTP response as a map from string to list of values. - MultiValueHeaders map[string][]*string + MultiValueHeaders map[string][]string // The HTTP status code. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_UntagResource.go b/service/apigateway/api_op_UntagResource.go index c351d824dd7..8f646987fa1 100644 --- a/service/apigateway/api_op_UntagResource.go +++ b/service/apigateway/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // [Required] The Tag keys to delete. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/apigateway/api_op_UpdateAccount.go b/service/apigateway/api_op_UpdateAccount.go index 704e102131f..3d92bef0d92 100644 --- a/service/apigateway/api_op_UpdateAccount.go +++ b/service/apigateway/api_op_UpdateAccount.go @@ -32,7 +32,7 @@ type UpdateAccountInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents an AWS account that is associated with API Gateway. To view the @@ -91,7 +91,7 @@ type UpdateAccountOutput struct { // A list of features supported for the account. When usage plans are enabled, the // features list will include an entry of "UsagePlans". - Features []*string + Features []string // Specifies the API request limits configured for the current Account. ThrottleSettings *types.ThrottleSettings diff --git a/service/apigateway/api_op_UpdateApiKey.go b/service/apigateway/api_op_UpdateApiKey.go index 5cdb11f4fed..4536dcdb4ba 100644 --- a/service/apigateway/api_op_UpdateApiKey.go +++ b/service/apigateway/api_op_UpdateApiKey.go @@ -38,7 +38,7 @@ type UpdateApiKeyInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // A resource that can be distributed to callers for executing Method resources @@ -59,7 +59,7 @@ type UpdateApiKeyOutput struct { Description *string // Specifies whether the API Key can be used by callers. - Enabled *bool + Enabled bool // The identifier of the API Key. Id *string @@ -71,10 +71,10 @@ type UpdateApiKeyOutput struct { Name *string // A list of Stage resources that are associated with the ApiKey resource. - StageKeys []*string + StageKeys []string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // The value of the API Key. Value *string diff --git a/service/apigateway/api_op_UpdateAuthorizer.go b/service/apigateway/api_op_UpdateAuthorizer.go index 95f87e2e95f..c10c4269104 100644 --- a/service/apigateway/api_op_UpdateAuthorizer.go +++ b/service/apigateway/api_op_UpdateAuthorizer.go @@ -43,7 +43,7 @@ type UpdateAuthorizerInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents an authorization layer for methods. If enabled on a method, API @@ -125,7 +125,7 @@ type UpdateAuthorizerOutput struct { // authorizer. Each element is of this format: // arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN // or REQUEST authorizer, this is not defined. - ProviderARNs []*string + ProviderARNs []string // The authorizer type. Valid values are TOKEN for a Lambda function using a single // authorization token submitted in a custom header, REQUEST for a Lambda function diff --git a/service/apigateway/api_op_UpdateBasePathMapping.go b/service/apigateway/api_op_UpdateBasePathMapping.go index df99a6da91b..6af682f9833 100644 --- a/service/apigateway/api_op_UpdateBasePathMapping.go +++ b/service/apigateway/api_op_UpdateBasePathMapping.go @@ -43,7 +43,7 @@ type UpdateBasePathMappingInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents the base path that callers of the API must provide as part of the URL diff --git a/service/apigateway/api_op_UpdateClientCertificate.go b/service/apigateway/api_op_UpdateClientCertificate.go index 3efd63ac0bd..f42443487d1 100644 --- a/service/apigateway/api_op_UpdateClientCertificate.go +++ b/service/apigateway/api_op_UpdateClientCertificate.go @@ -38,7 +38,7 @@ type UpdateClientCertificateInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents a client certificate used to configure client-side SSL authentication @@ -66,7 +66,7 @@ type UpdateClientCertificateOutput struct { PemEncodedCertificate *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_UpdateDeployment.go b/service/apigateway/api_op_UpdateDeployment.go index ffc438d26e0..aec7d96bae1 100644 --- a/service/apigateway/api_op_UpdateDeployment.go +++ b/service/apigateway/api_op_UpdateDeployment.go @@ -44,7 +44,7 @@ type UpdateDeploymentInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // An immutable representation of a RestApi resource that can be called by users @@ -60,7 +60,7 @@ type UpdateDeploymentOutput struct { // A summary of the RestApi at the date and time that the deployment resource was // created. - ApiSummary map[string]map[string]*types.MethodSnapshot + ApiSummary map[string]map[string]types.MethodSnapshot // The date and time that the deployment resource was created. CreatedDate *time.Time diff --git a/service/apigateway/api_op_UpdateDocumentationPart.go b/service/apigateway/api_op_UpdateDocumentationPart.go index 7fa45a6ca3f..5170ac7c5b4 100644 --- a/service/apigateway/api_op_UpdateDocumentationPart.go +++ b/service/apigateway/api_op_UpdateDocumentationPart.go @@ -41,7 +41,7 @@ type UpdateDocumentationPartInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // A documentation part for a targeted API entity. A documentation part consists of diff --git a/service/apigateway/api_op_UpdateDocumentationVersion.go b/service/apigateway/api_op_UpdateDocumentationVersion.go index 298c5d8b5e2..03031b475c6 100644 --- a/service/apigateway/api_op_UpdateDocumentationVersion.go +++ b/service/apigateway/api_op_UpdateDocumentationVersion.go @@ -42,7 +42,7 @@ type UpdateDocumentationVersionInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // A snapshot of the documentation of an API. Publishing API documentation involves diff --git a/service/apigateway/api_op_UpdateDomainName.go b/service/apigateway/api_op_UpdateDomainName.go index 76e82323892..2929bcebb43 100644 --- a/service/apigateway/api_op_UpdateDomainName.go +++ b/service/apigateway/api_op_UpdateDomainName.go @@ -38,7 +38,7 @@ type UpdateDomainNameInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents a custom domain name as a user-friendly host name of an API @@ -130,7 +130,7 @@ type UpdateDomainNameOutput struct { SecurityPolicy types.SecurityPolicy // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_UpdateGatewayResponse.go b/service/apigateway/api_op_UpdateGatewayResponse.go index 420982e692b..c2991b9ec16 100644 --- a/service/apigateway/api_op_UpdateGatewayResponse.go +++ b/service/apigateway/api_op_UpdateGatewayResponse.go @@ -88,7 +88,7 @@ type UpdateGatewayResponseInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // A gateway response of a given response type and status code, with optional @@ -141,15 +141,15 @@ type UpdateGatewayResponseOutput struct { // A Boolean flag to indicate whether this GatewayResponse is the default gateway // response (true) or not (false). A default gateway response is one generated by // API Gateway without any customization by an API developer. - DefaultResponse *bool + DefaultResponse bool // Response parameters (paths, query strings and headers) of the GatewayResponse as // a string-to-string map of key-value pairs. - ResponseParameters map[string]*string + ResponseParameters map[string]string // Response templates of the GatewayResponse as a string-to-string map of key-value // pairs. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // The response type of the associated GatewayResponse. Valid values are // diff --git a/service/apigateway/api_op_UpdateIntegration.go b/service/apigateway/api_op_UpdateIntegration.go index 517bcdc0940..4d281e8a239 100644 --- a/service/apigateway/api_op_UpdateIntegration.go +++ b/service/apigateway/api_op_UpdateIntegration.go @@ -47,7 +47,7 @@ type UpdateIntegrationInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration. In the API @@ -59,7 +59,7 @@ type UpdateIntegrationOutput struct { // A list of request parameters whose values API Gateway caches. To be valid values // for cacheKeyParameters, these parameters must also be specified for // MethodrequestParameters. - CacheKeyParameters []*string + CacheKeyParameters []string // Specifies a group of related cached parameters. By default, API Gateway uses the // resource ID as the cacheNamespace. You can specify the same cacheNamespace @@ -137,7 +137,7 @@ type UpdateIntegrationOutput struct { // $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n" // }, "statusCode": "200" }Creating an API // (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) - IntegrationResponses map[string]*types.IntegrationResponse + IntegrationResponses map[string]types.IntegrationResponse // Specifies how the method request body of an unmapped content type will be passed // through the integration request to the back end without transformation. A @@ -171,16 +171,16 @@ type UpdateIntegrationOutput struct { // end. The method request parameter value must match the pattern of // method.request.{location}.{name}, where location is querystring, path, or header // and name must be a valid and unique method request parameter name. - RequestParameters map[string]*string + RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. - RequestTemplates map[string]*string + RequestTemplates map[string]string // Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 // milliseconds or 29 seconds. - TimeoutInMillis *int32 + TimeoutInMillis int32 // Specifies the TLS configuration for an integration. TlsConfig *types.TlsConfig diff --git a/service/apigateway/api_op_UpdateIntegrationResponse.go b/service/apigateway/api_op_UpdateIntegrationResponse.go index 33ffa48c57f..b23cc1bbcc0 100644 --- a/service/apigateway/api_op_UpdateIntegrationResponse.go +++ b/service/apigateway/api_op_UpdateIntegrationResponse.go @@ -53,7 +53,7 @@ type UpdateIntegrationResponseInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents an integration response. The status code must map to an existing @@ -88,12 +88,12 @@ type UpdateIntegrationResponseOutput struct { // integration.response.body.{JSON-expression}, where name is a valid and unique // response header name and JSON-expression is a valid JSON expression without the // $ prefix. - ResponseParameters map[string]*string + ResponseParameters map[string]string // Specifies the templates used to transform the integration response body. // Response templates are represented as a key/value map, with a content-type as // the key and a template as the value. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // Specifies the regular expression (regex) pattern used to choose an integration // response based on the response from the back end. For example, if the success diff --git a/service/apigateway/api_op_UpdateMethod.go b/service/apigateway/api_op_UpdateMethod.go index 46510ea74c3..530bbe1a780 100644 --- a/service/apigateway/api_op_UpdateMethod.go +++ b/service/apigateway/api_op_UpdateMethod.go @@ -47,7 +47,7 @@ type UpdateMethodInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents a client-facing interface by which the client calls the API to access @@ -154,7 +154,7 @@ type UpdateMethodOutput struct { // invocation is not authorized. When the method scope is configured, the client // must provide an access token instead of an identity token for authorization // purposes. - AuthorizationScopes []*string + AuthorizationScopes []string // The method's authorization type. Valid values are NONE for open access, AWS_IAM // for using AWS IAM permissions, CUSTOM for using a custom authorizer, or @@ -256,7 +256,7 @@ type UpdateMethodOutput struct { // "method.response.header.operator": false, "method.response.header.operand_2": // false, "method.response.header.operand_1": false }, "statusCode": "200" }AWS CLI // (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-method-response.html) - MethodResponses map[string]*types.MethodResponse + MethodResponses map[string]types.MethodResponse // A human-friendly operation identifier for the method. For example, you can // assign the operationName of ListPets for the GET /pets method in the PetStore @@ -266,7 +266,7 @@ type UpdateMethodOutput struct { // A key-value map specifying data schemas, represented by Model resources, (as the // mapped value) of the request payloads of given content types (as the mapping // key). - RequestModels map[string]*string + RequestModels map[string]string // A key-value map defining required or optional method request parameters that can // be accepted by API Gateway. A key is a method request parameter name matching @@ -276,7 +276,7 @@ type UpdateMethodOutput struct { // required (true) or optional (false). The method request parameter names defined // here are available in Integration to be mapped to integration request parameters // or templates. - RequestParameters map[string]*bool + RequestParameters map[string]bool // The identifier of a RequestValidator for request validation. RequestValidatorId *string diff --git a/service/apigateway/api_op_UpdateMethodResponse.go b/service/apigateway/api_op_UpdateMethodResponse.go index bd59e42d2c0..fcc605ddb4e 100644 --- a/service/apigateway/api_op_UpdateMethodResponse.go +++ b/service/apigateway/api_op_UpdateMethodResponse.go @@ -52,7 +52,7 @@ type UpdateMethodResponseInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents a method response of a given HTTP status code returned to the client. @@ -91,7 +91,7 @@ type UpdateMethodResponseOutput struct { // Specifies the Model resources used for the response's content-type. Response // models are represented as a key/value map, with a content-type as the key and a // Model name as the value. - ResponseModels map[string]*string + ResponseModels map[string]string // A key-value map specifying required or optional response parameters that API // Gateway can send back to the caller. A key defines a method response header and @@ -106,7 +106,7 @@ type UpdateMethodResponseOutput struct { // or a JSON expression from the back-end response payload in the form of // integration.response.body.{JSON-expression}, where JSON-expression is a valid // JSON expression without the $ prefix.) - ResponseParameters map[string]*bool + ResponseParameters map[string]bool // The method response's status code. StatusCode *string diff --git a/service/apigateway/api_op_UpdateModel.go b/service/apigateway/api_op_UpdateModel.go index 694093fb7c4..f7b9cbc2f06 100644 --- a/service/apigateway/api_op_UpdateModel.go +++ b/service/apigateway/api_op_UpdateModel.go @@ -42,7 +42,7 @@ type UpdateModelInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents the data structure of a method's request or response payload. A diff --git a/service/apigateway/api_op_UpdateRequestValidator.go b/service/apigateway/api_op_UpdateRequestValidator.go index 2284610b15c..4da335d4f38 100644 --- a/service/apigateway/api_op_UpdateRequestValidator.go +++ b/service/apigateway/api_op_UpdateRequestValidator.go @@ -42,7 +42,7 @@ type UpdateRequestValidatorInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // A set of validation rules for incoming Method requests. In OpenAPI, a @@ -63,11 +63,11 @@ type UpdateRequestValidatorOutput struct { // A Boolean flag to indicate whether to validate a request body according to the // configured Model schema. - ValidateRequestBody *bool + ValidateRequestBody bool // A Boolean flag to indicate whether to validate request parameters (true) or not // (false). - ValidateRequestParameters *bool + ValidateRequestParameters bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_UpdateResource.go b/service/apigateway/api_op_UpdateResource.go index 4fade20f56b..5dc48622b44 100644 --- a/service/apigateway/api_op_UpdateResource.go +++ b/service/apigateway/api_op_UpdateResource.go @@ -42,7 +42,7 @@ type UpdateResourceInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents an API resource. Create an API @@ -140,7 +140,7 @@ type UpdateResourceOutput struct { // OPTIONS is enabled on the resource, you can follow the example here to get that // method. Just replace the GET of the last path segment in the request URL with // OPTIONS. - ResourceMethods map[string]*types.Method + ResourceMethods map[string]types.Method // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_UpdateRestApi.go b/service/apigateway/api_op_UpdateRestApi.go index bc3ec8afaef..0762dd12b8f 100644 --- a/service/apigateway/api_op_UpdateRestApi.go +++ b/service/apigateway/api_op_UpdateRestApi.go @@ -38,7 +38,7 @@ type UpdateRestApiInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents a REST API. Create an API @@ -57,7 +57,7 @@ type UpdateRestApiOutput struct { // The list of binary media types supported by the RestApi. By default, the RestApi // supports only UTF-8-encoded text payloads. - BinaryMediaTypes []*string + BinaryMediaTypes []string // The timestamp when the API was created. CreatedDate *time.Time @@ -70,7 +70,7 @@ type UpdateRestApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // The endpoint configuration of this RestApi showing the endpoint types of the // API. @@ -95,14 +95,14 @@ type UpdateRestApiOutput struct { Policy *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. - Warnings []*string + Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/api_op_UpdateStage.go b/service/apigateway/api_op_UpdateStage.go index 2473d993979..4c03d8f4ffa 100644 --- a/service/apigateway/api_op_UpdateStage.go +++ b/service/apigateway/api_op_UpdateStage.go @@ -43,7 +43,7 @@ type UpdateStageInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents a unique identifier for a version of a deployed RestApi that is @@ -55,7 +55,7 @@ type UpdateStageOutput struct { AccessLogSettings *types.AccessLogSettings // Specifies whether a cache cluster is enabled for the stage. - CacheClusterEnabled *bool + CacheClusterEnabled bool // The size of the cache cluster for the stage, if enabled. CacheClusterSize types.CacheClusterSize @@ -88,7 +88,7 @@ type UpdateStageOutput struct { // /{method_setting_key below) are method paths defined as // {resource_path}/{http_method} for an individual method override, or /\*/\* for // overriding all methods in the stage. - MethodSettings map[string]*types.MethodSetting + MethodSettings map[string]types.MethodSetting // The name of the stage is the first path segment in the Uniform Resource // Identifier (URI) of a call to API Gateway. Stage names can only contain @@ -97,15 +97,15 @@ type UpdateStageOutput struct { StageName *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Specifies whether active tracing with X-ray is enabled for the Stage. - TracingEnabled *bool + TracingEnabled bool // A map that defines the stage variables for a Stage resource. Variable names can // have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+. - Variables map[string]*string + Variables map[string]string // The ARN of the WebAcl associated with the Stage. WebAclArn *string diff --git a/service/apigateway/api_op_UpdateUsage.go b/service/apigateway/api_op_UpdateUsage.go index 7c1ab2fe8d4..e810ad56581 100644 --- a/service/apigateway/api_op_UpdateUsage.go +++ b/service/apigateway/api_op_UpdateUsage.go @@ -45,7 +45,7 @@ type UpdateUsageInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents the usage data of a usage plan. Create and Use Usage Plans @@ -62,7 +62,7 @@ type UpdateUsageOutput struct { // "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} // stands for an API key value and the daily log entry is of the format [used // quota, remaining quota]. - Items map[string][][]*int64 + Items map[string][][]int64 // The current pagination position in the paged result set. Position *string diff --git a/service/apigateway/api_op_UpdateUsagePlan.go b/service/apigateway/api_op_UpdateUsagePlan.go index 5dd25e96f34..f3cca24e58b 100644 --- a/service/apigateway/api_op_UpdateUsagePlan.go +++ b/service/apigateway/api_op_UpdateUsagePlan.go @@ -37,7 +37,7 @@ type UpdateUsagePlanInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // Represents a usage plan than can specify who can assess associated API stages @@ -48,7 +48,7 @@ type UpdateUsagePlanInput struct { type UpdateUsagePlanOutput struct { // The associated API stages of a usage plan. - ApiStages []*types.ApiStage + ApiStages []types.ApiStage // The description of a usage plan. Description *string @@ -67,7 +67,7 @@ type UpdateUsagePlanOutput struct { Quota *types.QuotaSettings // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // The request throttle limits of a usage plan. Throttle *types.ThrottleSettings diff --git a/service/apigateway/api_op_UpdateVpcLink.go b/service/apigateway/api_op_UpdateVpcLink.go index b7ca07114cc..013a206b823 100644 --- a/service/apigateway/api_op_UpdateVpcLink.go +++ b/service/apigateway/api_op_UpdateVpcLink.go @@ -38,7 +38,7 @@ type UpdateVpcLinkInput struct { // A list of update operations to be applied to the specified resource and in the // order specified in this list. - PatchOperations []*types.PatchOperation + PatchOperations []types.PatchOperation } // An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual @@ -70,11 +70,11 @@ type UpdateVpcLinkOutput struct { StatusMessage *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // The ARN of the network load balancer of the VPC targeted by the VPC link. The // network load balancer must be owned by the same AWS account of the API owner. - TargetArns []*string + TargetArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigateway/deserializers.go b/service/apigateway/deserializers.go index 63b49371d25..d4ec85b957e 100644 --- a/service/apigateway/deserializers.go +++ b/service/apigateway/deserializers.go @@ -187,7 +187,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiKeyOutput(v **CreateApiKeyOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CustomerId = &jtv + sv.CustomerId = ptr.String(jtv) } case "description": @@ -196,7 +196,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiKeyOutput(v **CreateApiKeyOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "enabled": @@ -205,7 +205,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiKeyOutput(v **CreateApiKeyOutput if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "id": @@ -214,7 +214,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiKeyOutput(v **CreateApiKeyOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "lastUpdatedDate": @@ -236,7 +236,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiKeyOutput(v **CreateApiKeyOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "stageKeys": @@ -255,7 +255,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiKeyOutput(v **CreateApiKeyOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -418,7 +418,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizerCredentials = &jtv + sv.AuthorizerCredentials = ptr.String(jtv) } case "authorizerResultTtlInSeconds": @@ -440,7 +440,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizerUri = &jtv + sv.AuthorizerUri = ptr.String(jtv) } case "authType": @@ -449,7 +449,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthType = &jtv + sv.AuthType = ptr.String(jtv) } case "id": @@ -458,7 +458,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "identitySource": @@ -467,7 +467,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IdentitySource = &jtv + sv.IdentitySource = ptr.String(jtv) } case "identityValidationExpression": @@ -476,7 +476,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IdentityValidationExpression = &jtv + sv.IdentityValidationExpression = ptr.String(jtv) } case "name": @@ -485,7 +485,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "providerARNs": @@ -662,7 +662,7 @@ func awsRestjson1_deserializeOpDocumentCreateBasePathMappingOutput(v **CreateBas if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BasePath = &jtv + sv.BasePath = ptr.String(jtv) } case "restApiId": @@ -671,7 +671,7 @@ func awsRestjson1_deserializeOpDocumentCreateBasePathMappingOutput(v **CreateBas if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RestApiId = &jtv + sv.RestApiId = ptr.String(jtv) } case "stage": @@ -680,7 +680,7 @@ func awsRestjson1_deserializeOpDocumentCreateBasePathMappingOutput(v **CreateBas if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Stage = &jtv + sv.Stage = ptr.String(jtv) } default: @@ -867,7 +867,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -876,7 +876,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -1042,7 +1042,7 @@ func awsRestjson1_deserializeOpDocumentCreateDocumentationPartOutput(v **CreateD if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "location": @@ -1056,7 +1056,7 @@ func awsRestjson1_deserializeOpDocumentCreateDocumentationPartOutput(v **CreateD if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Properties = &jtv + sv.Properties = ptr.String(jtv) } default: @@ -1235,7 +1235,7 @@ func awsRestjson1_deserializeOpDocumentCreateDocumentationVersionOutput(v **Crea if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "version": @@ -1244,7 +1244,7 @@ func awsRestjson1_deserializeOpDocumentCreateDocumentationVersionOutput(v **Crea if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -1404,7 +1404,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainNameOutput(v **CreateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateName": @@ -1413,7 +1413,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainNameOutput(v **CreateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CertificateName = &jtv + sv.CertificateName = ptr.String(jtv) } case "certificateUploadDate": @@ -1435,7 +1435,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainNameOutput(v **CreateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DistributionDomainName = &jtv + sv.DistributionDomainName = ptr.String(jtv) } case "distributionHostedZoneId": @@ -1444,7 +1444,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainNameOutput(v **CreateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DistributionHostedZoneId = &jtv + sv.DistributionHostedZoneId = ptr.String(jtv) } case "domainName": @@ -1453,7 +1453,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainNameOutput(v **CreateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainNameStatus": @@ -1471,7 +1471,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainNameOutput(v **CreateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DomainNameStatusMessage = &jtv + sv.DomainNameStatusMessage = ptr.String(jtv) } case "endpointConfiguration": @@ -1490,7 +1490,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainNameOutput(v **CreateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalCertificateArn = &jtv + sv.RegionalCertificateArn = ptr.String(jtv) } case "regionalCertificateName": @@ -1499,7 +1499,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainNameOutput(v **CreateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalCertificateName = &jtv + sv.RegionalCertificateName = ptr.String(jtv) } case "regionalDomainName": @@ -1508,7 +1508,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainNameOutput(v **CreateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalDomainName = &jtv + sv.RegionalDomainName = ptr.String(jtv) } case "regionalHostedZoneId": @@ -1517,7 +1517,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainNameOutput(v **CreateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalHostedZoneId = &jtv + sv.RegionalHostedZoneId = ptr.String(jtv) } case "securityPolicy": @@ -1697,7 +1697,7 @@ func awsRestjson1_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "description": @@ -1706,7 +1706,7 @@ func awsRestjson1_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -1715,7 +1715,7 @@ func awsRestjson1_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -1724,7 +1724,7 @@ func awsRestjson1_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "schema": @@ -1733,7 +1733,7 @@ func awsRestjson1_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } default: @@ -1896,7 +1896,7 @@ func awsRestjson1_deserializeOpDocumentCreateRequestValidatorOutput(v **CreateRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -1905,7 +1905,7 @@ func awsRestjson1_deserializeOpDocumentCreateRequestValidatorOutput(v **CreateRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "validateRequestBody": @@ -1914,7 +1914,7 @@ func awsRestjson1_deserializeOpDocumentCreateRequestValidatorOutput(v **CreateRe if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ValidateRequestBody = &jtv + sv.ValidateRequestBody = jtv } case "validateRequestParameters": @@ -1923,7 +1923,7 @@ func awsRestjson1_deserializeOpDocumentCreateRequestValidatorOutput(v **CreateRe if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ValidateRequestParameters = &jtv + sv.ValidateRequestParameters = jtv } default: @@ -2089,7 +2089,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceOutput(v **CreateResourceOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "parentId": @@ -2098,7 +2098,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceOutput(v **CreateResourceOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParentId = &jtv + sv.ParentId = ptr.String(jtv) } case "path": @@ -2107,7 +2107,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceOutput(v **CreateResourceOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "pathPart": @@ -2116,7 +2116,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceOutput(v **CreateResourceOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PathPart = &jtv + sv.PathPart = ptr.String(jtv) } case "resourceMethods": @@ -2308,7 +2308,7 @@ func awsRestjson1_deserializeOpDocumentCreateRestApiOutput(v **CreateRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "disableExecuteApiEndpoint": @@ -2317,7 +2317,7 @@ func awsRestjson1_deserializeOpDocumentCreateRestApiOutput(v **CreateRestApiOutp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = &jtv + sv.DisableExecuteApiEndpoint = jtv } case "endpointConfiguration": @@ -2331,7 +2331,7 @@ func awsRestjson1_deserializeOpDocumentCreateRestApiOutput(v **CreateRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "minimumCompressionSize": @@ -2353,7 +2353,7 @@ func awsRestjson1_deserializeOpDocumentCreateRestApiOutput(v **CreateRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "policy": @@ -2362,7 +2362,7 @@ func awsRestjson1_deserializeOpDocumentCreateRestApiOutput(v **CreateRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "tags": @@ -2376,7 +2376,7 @@ func awsRestjson1_deserializeOpDocumentCreateRestApiOutput(v **CreateRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "warnings": @@ -2552,7 +2552,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CacheClusterEnabled = &jtv + sv.CacheClusterEnabled = jtv } case "cacheClusterSize": @@ -2584,7 +2584,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientCertificateId = &jtv + sv.ClientCertificateId = ptr.String(jtv) } case "createdDate": @@ -2606,7 +2606,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "description": @@ -2615,7 +2615,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "documentationVersion": @@ -2624,7 +2624,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DocumentationVersion = &jtv + sv.DocumentationVersion = ptr.String(jtv) } case "lastUpdatedDate": @@ -2651,7 +2651,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StageName = &jtv + sv.StageName = ptr.String(jtv) } case "tags": @@ -2665,7 +2665,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.TracingEnabled = &jtv + sv.TracingEnabled = jtv } case "variables": @@ -2679,7 +2679,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.WebAclArn = &jtv + sv.WebAclArn = ptr.String(jtv) } default: @@ -2850,7 +2850,7 @@ func awsRestjson1_deserializeOpDocumentCreateUsagePlanOutput(v **CreateUsagePlan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -2859,7 +2859,7 @@ func awsRestjson1_deserializeOpDocumentCreateUsagePlanOutput(v **CreateUsagePlan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -2868,7 +2868,7 @@ func awsRestjson1_deserializeOpDocumentCreateUsagePlanOutput(v **CreateUsagePlan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "productCode": @@ -2877,7 +2877,7 @@ func awsRestjson1_deserializeOpDocumentCreateUsagePlanOutput(v **CreateUsagePlan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ProductCode = &jtv + sv.ProductCode = ptr.String(jtv) } case "quota": @@ -3055,7 +3055,7 @@ func awsRestjson1_deserializeOpDocumentCreateUsagePlanKeyOutput(v **CreateUsageP if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -3064,7 +3064,7 @@ func awsRestjson1_deserializeOpDocumentCreateUsagePlanKeyOutput(v **CreateUsageP if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "type": @@ -3073,7 +3073,7 @@ func awsRestjson1_deserializeOpDocumentCreateUsagePlanKeyOutput(v **CreateUsageP if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "value": @@ -3082,7 +3082,7 @@ func awsRestjson1_deserializeOpDocumentCreateUsagePlanKeyOutput(v **CreateUsageP if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -3239,7 +3239,7 @@ func awsRestjson1_deserializeOpDocumentCreateVpcLinkOutput(v **CreateVpcLinkOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -3248,7 +3248,7 @@ func awsRestjson1_deserializeOpDocumentCreateVpcLinkOutput(v **CreateVpcLinkOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -3257,7 +3257,7 @@ func awsRestjson1_deserializeOpDocumentCreateVpcLinkOutput(v **CreateVpcLinkOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -3275,7 +3275,7 @@ func awsRestjson1_deserializeOpDocumentCreateVpcLinkOutput(v **CreateVpcLinkOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "tags": @@ -5588,7 +5588,7 @@ func awsRestjson1_deserializeOpDocumentGenerateClientCertificateOutput(v **Gener if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientCertificateId = &jtv + sv.ClientCertificateId = ptr.String(jtv) } case "createdDate": @@ -5610,7 +5610,7 @@ func awsRestjson1_deserializeOpDocumentGenerateClientCertificateOutput(v **Gener if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "expirationDate": @@ -5632,7 +5632,7 @@ func awsRestjson1_deserializeOpDocumentGenerateClientCertificateOutput(v **Gener if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PemEncodedCertificate = &jtv + sv.PemEncodedCertificate = ptr.String(jtv) } case "tags": @@ -5794,7 +5794,7 @@ func awsRestjson1_deserializeOpDocumentGetAccountOutput(v **GetAccountOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ApiKeyVersion = &jtv + sv.ApiKeyVersion = ptr.String(jtv) } case "cloudwatchRoleArn": @@ -5803,7 +5803,7 @@ func awsRestjson1_deserializeOpDocumentGetAccountOutput(v **GetAccountOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CloudwatchRoleArn = &jtv + sv.CloudwatchRoleArn = ptr.String(jtv) } case "features": @@ -5983,7 +5983,7 @@ func awsRestjson1_deserializeOpDocumentGetApiKeyOutput(v **GetApiKeyOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CustomerId = &jtv + sv.CustomerId = ptr.String(jtv) } case "description": @@ -5992,7 +5992,7 @@ func awsRestjson1_deserializeOpDocumentGetApiKeyOutput(v **GetApiKeyOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "enabled": @@ -6001,7 +6001,7 @@ func awsRestjson1_deserializeOpDocumentGetApiKeyOutput(v **GetApiKeyOutput, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "id": @@ -6010,7 +6010,7 @@ func awsRestjson1_deserializeOpDocumentGetApiKeyOutput(v **GetApiKeyOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "lastUpdatedDate": @@ -6032,7 +6032,7 @@ func awsRestjson1_deserializeOpDocumentGetApiKeyOutput(v **GetApiKeyOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "stageKeys": @@ -6051,7 +6051,7 @@ func awsRestjson1_deserializeOpDocumentGetApiKeyOutput(v **GetApiKeyOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6213,7 +6213,7 @@ func awsRestjson1_deserializeOpDocumentGetApiKeysOutput(v **GetApiKeysOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } case "warnings": @@ -6375,7 +6375,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizerCredentials = &jtv + sv.AuthorizerCredentials = ptr.String(jtv) } case "authorizerResultTtlInSeconds": @@ -6397,7 +6397,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizerUri = &jtv + sv.AuthorizerUri = ptr.String(jtv) } case "authType": @@ -6406,7 +6406,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthType = &jtv + sv.AuthType = ptr.String(jtv) } case "id": @@ -6415,7 +6415,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "identitySource": @@ -6424,7 +6424,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IdentitySource = &jtv + sv.IdentitySource = ptr.String(jtv) } case "identityValidationExpression": @@ -6433,7 +6433,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IdentityValidationExpression = &jtv + sv.IdentityValidationExpression = ptr.String(jtv) } case "name": @@ -6442,7 +6442,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "providerARNs": @@ -6621,7 +6621,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizersOutput(v **GetAuthorizersOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -6778,7 +6778,7 @@ func awsRestjson1_deserializeOpDocumentGetBasePathMappingOutput(v **GetBasePathM if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BasePath = &jtv + sv.BasePath = ptr.String(jtv) } case "restApiId": @@ -6787,7 +6787,7 @@ func awsRestjson1_deserializeOpDocumentGetBasePathMappingOutput(v **GetBasePathM if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RestApiId = &jtv + sv.RestApiId = ptr.String(jtv) } case "stage": @@ -6796,7 +6796,7 @@ func awsRestjson1_deserializeOpDocumentGetBasePathMappingOutput(v **GetBasePathM if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Stage = &jtv + sv.Stage = ptr.String(jtv) } default: @@ -6958,7 +6958,7 @@ func awsRestjson1_deserializeOpDocumentGetBasePathMappingsOutput(v **GetBasePath if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -7115,7 +7115,7 @@ func awsRestjson1_deserializeOpDocumentGetClientCertificateOutput(v **GetClientC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientCertificateId = &jtv + sv.ClientCertificateId = ptr.String(jtv) } case "createdDate": @@ -7137,7 +7137,7 @@ func awsRestjson1_deserializeOpDocumentGetClientCertificateOutput(v **GetClientC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "expirationDate": @@ -7159,7 +7159,7 @@ func awsRestjson1_deserializeOpDocumentGetClientCertificateOutput(v **GetClientC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PemEncodedCertificate = &jtv + sv.PemEncodedCertificate = ptr.String(jtv) } case "tags": @@ -7326,7 +7326,7 @@ func awsRestjson1_deserializeOpDocumentGetClientCertificatesOutput(v **GetClient if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -7504,7 +7504,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -7513,7 +7513,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -7681,7 +7681,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentsOutput(v **GetDeploymentsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -7838,7 +7838,7 @@ func awsRestjson1_deserializeOpDocumentGetDocumentationPartOutput(v **GetDocumen if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "location": @@ -7852,7 +7852,7 @@ func awsRestjson1_deserializeOpDocumentGetDocumentationPartOutput(v **GetDocumen if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Properties = &jtv + sv.Properties = ptr.String(jtv) } default: @@ -8017,7 +8017,7 @@ func awsRestjson1_deserializeOpDocumentGetDocumentationPartsOutput(v **GetDocume if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -8187,7 +8187,7 @@ func awsRestjson1_deserializeOpDocumentGetDocumentationVersionOutput(v **GetDocu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "version": @@ -8196,7 +8196,7 @@ func awsRestjson1_deserializeOpDocumentGetDocumentationVersionOutput(v **GetDocu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -8361,7 +8361,7 @@ func awsRestjson1_deserializeOpDocumentGetDocumentationVersionsOutput(v **GetDoc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -8521,7 +8521,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNameOutput(v **GetDomainNameOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateName": @@ -8530,7 +8530,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNameOutput(v **GetDomainNameOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CertificateName = &jtv + sv.CertificateName = ptr.String(jtv) } case "certificateUploadDate": @@ -8552,7 +8552,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNameOutput(v **GetDomainNameOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DistributionDomainName = &jtv + sv.DistributionDomainName = ptr.String(jtv) } case "distributionHostedZoneId": @@ -8561,7 +8561,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNameOutput(v **GetDomainNameOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DistributionHostedZoneId = &jtv + sv.DistributionHostedZoneId = ptr.String(jtv) } case "domainName": @@ -8570,7 +8570,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNameOutput(v **GetDomainNameOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainNameStatus": @@ -8588,7 +8588,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNameOutput(v **GetDomainNameOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DomainNameStatusMessage = &jtv + sv.DomainNameStatusMessage = ptr.String(jtv) } case "endpointConfiguration": @@ -8607,7 +8607,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNameOutput(v **GetDomainNameOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalCertificateArn = &jtv + sv.RegionalCertificateArn = ptr.String(jtv) } case "regionalCertificateName": @@ -8616,7 +8616,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNameOutput(v **GetDomainNameOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalCertificateName = &jtv + sv.RegionalCertificateName = ptr.String(jtv) } case "regionalDomainName": @@ -8625,7 +8625,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNameOutput(v **GetDomainNameOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalDomainName = &jtv + sv.RegionalDomainName = ptr.String(jtv) } case "regionalHostedZoneId": @@ -8634,7 +8634,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNameOutput(v **GetDomainNameOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalHostedZoneId = &jtv + sv.RegionalHostedZoneId = ptr.String(jtv) } case "securityPolicy": @@ -8810,7 +8810,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNamesOutput(v **GetDomainNamesOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -9104,7 +9104,7 @@ func awsRestjson1_deserializeOpDocumentGetGatewayResponseOutput(v **GetGatewayRe if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DefaultResponse = &jtv + sv.DefaultResponse = jtv } case "responseParameters": @@ -9132,7 +9132,7 @@ func awsRestjson1_deserializeOpDocumentGetGatewayResponseOutput(v **GetGatewayRe if !ok { return fmt.Errorf("expected StatusCode to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -9297,7 +9297,7 @@ func awsRestjson1_deserializeOpDocumentGetGatewayResponsesOutput(v **GetGatewayR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -9459,7 +9459,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CacheNamespace = &jtv + sv.CacheNamespace = ptr.String(jtv) } case "connectionId": @@ -9468,7 +9468,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionType": @@ -9495,7 +9495,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Credentials = &jtv + sv.Credentials = ptr.String(jtv) } case "httpMethod": @@ -9504,7 +9504,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HttpMethod = &jtv + sv.HttpMethod = ptr.String(jtv) } case "integrationResponses": @@ -9518,7 +9518,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PassthroughBehavior = &jtv + sv.PassthroughBehavior = ptr.String(jtv) } case "requestParameters": @@ -9541,7 +9541,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if err != nil { return err } - sv.TimeoutInMillis = ptr.Int32(int32(i64)) + sv.TimeoutInMillis = int32(i64) } case "tlsConfig": @@ -9564,7 +9564,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Uri = &jtv + sv.Uri = ptr.String(jtv) } default: @@ -9740,7 +9740,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationResponseOutput(v **GetInteg if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SelectionPattern = &jtv + sv.SelectionPattern = ptr.String(jtv) } case "statusCode": @@ -9749,7 +9749,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationResponseOutput(v **GetInteg if !ok { return fmt.Errorf("expected StatusCode to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -9906,7 +9906,7 @@ func awsRestjson1_deserializeOpDocumentGetMethodOutput(v **GetMethodOutput, valu if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.ApiKeyRequired = &jtv + sv.ApiKeyRequired = ptr.Bool(jtv) } case "authorizationScopes": @@ -9920,7 +9920,7 @@ func awsRestjson1_deserializeOpDocumentGetMethodOutput(v **GetMethodOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizationType = &jtv + sv.AuthorizationType = ptr.String(jtv) } case "authorizerId": @@ -9929,7 +9929,7 @@ func awsRestjson1_deserializeOpDocumentGetMethodOutput(v **GetMethodOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizerId = &jtv + sv.AuthorizerId = ptr.String(jtv) } case "httpMethod": @@ -9938,7 +9938,7 @@ func awsRestjson1_deserializeOpDocumentGetMethodOutput(v **GetMethodOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HttpMethod = &jtv + sv.HttpMethod = ptr.String(jtv) } case "methodIntegration": @@ -9957,7 +9957,7 @@ func awsRestjson1_deserializeOpDocumentGetMethodOutput(v **GetMethodOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OperationName = &jtv + sv.OperationName = ptr.String(jtv) } case "requestModels": @@ -9976,7 +9976,7 @@ func awsRestjson1_deserializeOpDocumentGetMethodOutput(v **GetMethodOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestValidatorId = &jtv + sv.RequestValidatorId = ptr.String(jtv) } default: @@ -10143,7 +10143,7 @@ func awsRestjson1_deserializeOpDocumentGetMethodResponseOutput(v **GetMethodResp if !ok { return fmt.Errorf("expected StatusCode to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -10300,7 +10300,7 @@ func awsRestjson1_deserializeOpDocumentGetModelOutput(v **GetModelOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "description": @@ -10309,7 +10309,7 @@ func awsRestjson1_deserializeOpDocumentGetModelOutput(v **GetModelOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -10318,7 +10318,7 @@ func awsRestjson1_deserializeOpDocumentGetModelOutput(v **GetModelOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -10327,7 +10327,7 @@ func awsRestjson1_deserializeOpDocumentGetModelOutput(v **GetModelOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "schema": @@ -10336,7 +10336,7 @@ func awsRestjson1_deserializeOpDocumentGetModelOutput(v **GetModelOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } default: @@ -10501,7 +10501,7 @@ func awsRestjson1_deserializeOpDocumentGetModelsOutput(v **GetModelsOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -10661,7 +10661,7 @@ func awsRestjson1_deserializeOpDocumentGetModelTemplateOutput(v **GetModelTempla if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -10818,7 +10818,7 @@ func awsRestjson1_deserializeOpDocumentGetRequestValidatorOutput(v **GetRequestV if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -10827,7 +10827,7 @@ func awsRestjson1_deserializeOpDocumentGetRequestValidatorOutput(v **GetRequestV if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "validateRequestBody": @@ -10836,7 +10836,7 @@ func awsRestjson1_deserializeOpDocumentGetRequestValidatorOutput(v **GetRequestV if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ValidateRequestBody = &jtv + sv.ValidateRequestBody = jtv } case "validateRequestParameters": @@ -10845,7 +10845,7 @@ func awsRestjson1_deserializeOpDocumentGetRequestValidatorOutput(v **GetRequestV if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ValidateRequestParameters = &jtv + sv.ValidateRequestParameters = jtv } default: @@ -11010,7 +11010,7 @@ func awsRestjson1_deserializeOpDocumentGetRequestValidatorsOutput(v **GetRequest if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -11167,7 +11167,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceOutput(v **GetResourceOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "parentId": @@ -11176,7 +11176,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceOutput(v **GetResourceOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParentId = &jtv + sv.ParentId = ptr.String(jtv) } case "path": @@ -11185,7 +11185,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceOutput(v **GetResourceOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "pathPart": @@ -11194,7 +11194,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceOutput(v **GetResourceOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PathPart = &jtv + sv.PathPart = ptr.String(jtv) } case "resourceMethods": @@ -11364,7 +11364,7 @@ func awsRestjson1_deserializeOpDocumentGetResourcesOutput(v **GetResourcesOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -11548,7 +11548,7 @@ func awsRestjson1_deserializeOpDocumentGetRestApiOutput(v **GetRestApiOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "disableExecuteApiEndpoint": @@ -11557,7 +11557,7 @@ func awsRestjson1_deserializeOpDocumentGetRestApiOutput(v **GetRestApiOutput, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = &jtv + sv.DisableExecuteApiEndpoint = jtv } case "endpointConfiguration": @@ -11571,7 +11571,7 @@ func awsRestjson1_deserializeOpDocumentGetRestApiOutput(v **GetRestApiOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "minimumCompressionSize": @@ -11593,7 +11593,7 @@ func awsRestjson1_deserializeOpDocumentGetRestApiOutput(v **GetRestApiOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "policy": @@ -11602,7 +11602,7 @@ func awsRestjson1_deserializeOpDocumentGetRestApiOutput(v **GetRestApiOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "tags": @@ -11616,7 +11616,7 @@ func awsRestjson1_deserializeOpDocumentGetRestApiOutput(v **GetRestApiOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "warnings": @@ -11783,7 +11783,7 @@ func awsRestjson1_deserializeOpDocumentGetRestApisOutput(v **GetRestApisOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -12082,7 +12082,7 @@ func awsRestjson1_deserializeOpDocumentGetSdkTypeOutput(v **GetSdkTypeOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "friendlyName": @@ -12091,7 +12091,7 @@ func awsRestjson1_deserializeOpDocumentGetSdkTypeOutput(v **GetSdkTypeOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FriendlyName = &jtv + sv.FriendlyName = ptr.String(jtv) } case "id": @@ -12100,7 +12100,7 @@ func awsRestjson1_deserializeOpDocumentGetSdkTypeOutput(v **GetSdkTypeOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -12412,7 +12412,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CacheClusterEnabled = &jtv + sv.CacheClusterEnabled = jtv } case "cacheClusterSize": @@ -12444,7 +12444,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientCertificateId = &jtv + sv.ClientCertificateId = ptr.String(jtv) } case "createdDate": @@ -12466,7 +12466,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "description": @@ -12475,7 +12475,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "documentationVersion": @@ -12484,7 +12484,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DocumentationVersion = &jtv + sv.DocumentationVersion = ptr.String(jtv) } case "lastUpdatedDate": @@ -12511,7 +12511,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StageName = &jtv + sv.StageName = ptr.String(jtv) } case "tags": @@ -12525,7 +12525,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.TracingEnabled = &jtv + sv.TracingEnabled = jtv } case "variables": @@ -12539,7 +12539,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.WebAclArn = &jtv + sv.WebAclArn = ptr.String(jtv) } default: @@ -13011,7 +13011,7 @@ func awsRestjson1_deserializeOpDocumentGetUsageOutput(v **GetUsageOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EndDate = &jtv + sv.EndDate = ptr.String(jtv) } case "values": @@ -13025,7 +13025,7 @@ func awsRestjson1_deserializeOpDocumentGetUsageOutput(v **GetUsageOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } case "startDate": @@ -13034,7 +13034,7 @@ func awsRestjson1_deserializeOpDocumentGetUsageOutput(v **GetUsageOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StartDate = &jtv + sv.StartDate = ptr.String(jtv) } case "usagePlanId": @@ -13043,7 +13043,7 @@ func awsRestjson1_deserializeOpDocumentGetUsageOutput(v **GetUsageOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UsagePlanId = &jtv + sv.UsagePlanId = ptr.String(jtv) } default: @@ -13208,7 +13208,7 @@ func awsRestjson1_deserializeOpDocumentGetUsagePlanOutput(v **GetUsagePlanOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -13217,7 +13217,7 @@ func awsRestjson1_deserializeOpDocumentGetUsagePlanOutput(v **GetUsagePlanOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -13226,7 +13226,7 @@ func awsRestjson1_deserializeOpDocumentGetUsagePlanOutput(v **GetUsagePlanOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "productCode": @@ -13235,7 +13235,7 @@ func awsRestjson1_deserializeOpDocumentGetUsagePlanOutput(v **GetUsagePlanOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ProductCode = &jtv + sv.ProductCode = ptr.String(jtv) } case "quota": @@ -13410,7 +13410,7 @@ func awsRestjson1_deserializeOpDocumentGetUsagePlanKeyOutput(v **GetUsagePlanKey if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -13419,7 +13419,7 @@ func awsRestjson1_deserializeOpDocumentGetUsagePlanKeyOutput(v **GetUsagePlanKey if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "type": @@ -13428,7 +13428,7 @@ func awsRestjson1_deserializeOpDocumentGetUsagePlanKeyOutput(v **GetUsagePlanKey if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "value": @@ -13437,7 +13437,7 @@ func awsRestjson1_deserializeOpDocumentGetUsagePlanKeyOutput(v **GetUsagePlanKey if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -13602,7 +13602,7 @@ func awsRestjson1_deserializeOpDocumentGetUsagePlanKeysOutput(v **GetUsagePlanKe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -13770,7 +13770,7 @@ func awsRestjson1_deserializeOpDocumentGetUsagePlansOutput(v **GetUsagePlansOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -13927,7 +13927,7 @@ func awsRestjson1_deserializeOpDocumentGetVpcLinkOutput(v **GetVpcLinkOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -13936,7 +13936,7 @@ func awsRestjson1_deserializeOpDocumentGetVpcLinkOutput(v **GetVpcLinkOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -13945,7 +13945,7 @@ func awsRestjson1_deserializeOpDocumentGetVpcLinkOutput(v **GetVpcLinkOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -13963,7 +13963,7 @@ func awsRestjson1_deserializeOpDocumentGetVpcLinkOutput(v **GetVpcLinkOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "tags": @@ -14135,7 +14135,7 @@ func awsRestjson1_deserializeOpDocumentGetVpcLinksOutput(v **GetVpcLinksOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } default: @@ -14656,7 +14656,7 @@ func awsRestjson1_deserializeOpDocumentImportRestApiOutput(v **ImportRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "disableExecuteApiEndpoint": @@ -14665,7 +14665,7 @@ func awsRestjson1_deserializeOpDocumentImportRestApiOutput(v **ImportRestApiOutp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = &jtv + sv.DisableExecuteApiEndpoint = jtv } case "endpointConfiguration": @@ -14679,7 +14679,7 @@ func awsRestjson1_deserializeOpDocumentImportRestApiOutput(v **ImportRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "minimumCompressionSize": @@ -14701,7 +14701,7 @@ func awsRestjson1_deserializeOpDocumentImportRestApiOutput(v **ImportRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "policy": @@ -14710,7 +14710,7 @@ func awsRestjson1_deserializeOpDocumentImportRestApiOutput(v **ImportRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "tags": @@ -14724,7 +14724,7 @@ func awsRestjson1_deserializeOpDocumentImportRestApiOutput(v **ImportRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "warnings": @@ -14892,7 +14892,7 @@ func awsRestjson1_deserializeOpDocumentPutGatewayResponseOutput(v **PutGatewayRe if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DefaultResponse = &jtv + sv.DefaultResponse = jtv } case "responseParameters": @@ -14920,7 +14920,7 @@ func awsRestjson1_deserializeOpDocumentPutGatewayResponseOutput(v **PutGatewayRe if !ok { return fmt.Errorf("expected StatusCode to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -15088,7 +15088,7 @@ func awsRestjson1_deserializeOpDocumentPutIntegrationOutput(v **PutIntegrationOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CacheNamespace = &jtv + sv.CacheNamespace = ptr.String(jtv) } case "connectionId": @@ -15097,7 +15097,7 @@ func awsRestjson1_deserializeOpDocumentPutIntegrationOutput(v **PutIntegrationOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionType": @@ -15124,7 +15124,7 @@ func awsRestjson1_deserializeOpDocumentPutIntegrationOutput(v **PutIntegrationOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Credentials = &jtv + sv.Credentials = ptr.String(jtv) } case "httpMethod": @@ -15133,7 +15133,7 @@ func awsRestjson1_deserializeOpDocumentPutIntegrationOutput(v **PutIntegrationOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HttpMethod = &jtv + sv.HttpMethod = ptr.String(jtv) } case "integrationResponses": @@ -15147,7 +15147,7 @@ func awsRestjson1_deserializeOpDocumentPutIntegrationOutput(v **PutIntegrationOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PassthroughBehavior = &jtv + sv.PassthroughBehavior = ptr.String(jtv) } case "requestParameters": @@ -15170,7 +15170,7 @@ func awsRestjson1_deserializeOpDocumentPutIntegrationOutput(v **PutIntegrationOu if err != nil { return err } - sv.TimeoutInMillis = ptr.Int32(int32(i64)) + sv.TimeoutInMillis = int32(i64) } case "tlsConfig": @@ -15193,7 +15193,7 @@ func awsRestjson1_deserializeOpDocumentPutIntegrationOutput(v **PutIntegrationOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Uri = &jtv + sv.Uri = ptr.String(jtv) } default: @@ -15378,7 +15378,7 @@ func awsRestjson1_deserializeOpDocumentPutIntegrationResponseOutput(v **PutInteg if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SelectionPattern = &jtv + sv.SelectionPattern = ptr.String(jtv) } case "statusCode": @@ -15387,7 +15387,7 @@ func awsRestjson1_deserializeOpDocumentPutIntegrationResponseOutput(v **PutInteg if !ok { return fmt.Errorf("expected StatusCode to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -15553,7 +15553,7 @@ func awsRestjson1_deserializeOpDocumentPutMethodOutput(v **PutMethodOutput, valu if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.ApiKeyRequired = &jtv + sv.ApiKeyRequired = ptr.Bool(jtv) } case "authorizationScopes": @@ -15567,7 +15567,7 @@ func awsRestjson1_deserializeOpDocumentPutMethodOutput(v **PutMethodOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizationType = &jtv + sv.AuthorizationType = ptr.String(jtv) } case "authorizerId": @@ -15576,7 +15576,7 @@ func awsRestjson1_deserializeOpDocumentPutMethodOutput(v **PutMethodOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizerId = &jtv + sv.AuthorizerId = ptr.String(jtv) } case "httpMethod": @@ -15585,7 +15585,7 @@ func awsRestjson1_deserializeOpDocumentPutMethodOutput(v **PutMethodOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HttpMethod = &jtv + sv.HttpMethod = ptr.String(jtv) } case "methodIntegration": @@ -15604,7 +15604,7 @@ func awsRestjson1_deserializeOpDocumentPutMethodOutput(v **PutMethodOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OperationName = &jtv + sv.OperationName = ptr.String(jtv) } case "requestModels": @@ -15623,7 +15623,7 @@ func awsRestjson1_deserializeOpDocumentPutMethodOutput(v **PutMethodOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestValidatorId = &jtv + sv.RequestValidatorId = ptr.String(jtv) } default: @@ -15799,7 +15799,7 @@ func awsRestjson1_deserializeOpDocumentPutMethodResponseOutput(v **PutMethodResp if !ok { return fmt.Errorf("expected StatusCode to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -15992,7 +15992,7 @@ func awsRestjson1_deserializeOpDocumentPutRestApiOutput(v **PutRestApiOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "disableExecuteApiEndpoint": @@ -16001,7 +16001,7 @@ func awsRestjson1_deserializeOpDocumentPutRestApiOutput(v **PutRestApiOutput, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = &jtv + sv.DisableExecuteApiEndpoint = jtv } case "endpointConfiguration": @@ -16015,7 +16015,7 @@ func awsRestjson1_deserializeOpDocumentPutRestApiOutput(v **PutRestApiOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "minimumCompressionSize": @@ -16037,7 +16037,7 @@ func awsRestjson1_deserializeOpDocumentPutRestApiOutput(v **PutRestApiOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "policy": @@ -16046,7 +16046,7 @@ func awsRestjson1_deserializeOpDocumentPutRestApiOutput(v **PutRestApiOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "tags": @@ -16060,7 +16060,7 @@ func awsRestjson1_deserializeOpDocumentPutRestApiOutput(v **PutRestApiOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "warnings": @@ -16337,7 +16337,7 @@ func awsRestjson1_deserializeOpDocumentTestInvokeAuthorizerOutput(v **TestInvoke if err != nil { return err } - sv.ClientStatus = ptr.Int32(int32(i64)) + sv.ClientStatus = int32(i64) } case "latency": @@ -16350,7 +16350,7 @@ func awsRestjson1_deserializeOpDocumentTestInvokeAuthorizerOutput(v **TestInvoke if err != nil { return err } - sv.Latency = &i64 + sv.Latency = i64 } case "log": @@ -16359,7 +16359,7 @@ func awsRestjson1_deserializeOpDocumentTestInvokeAuthorizerOutput(v **TestInvoke if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Log = &jtv + sv.Log = ptr.String(jtv) } case "policy": @@ -16368,7 +16368,7 @@ func awsRestjson1_deserializeOpDocumentTestInvokeAuthorizerOutput(v **TestInvoke if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "principalId": @@ -16377,7 +16377,7 @@ func awsRestjson1_deserializeOpDocumentTestInvokeAuthorizerOutput(v **TestInvoke if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } default: @@ -16537,7 +16537,7 @@ func awsRestjson1_deserializeOpDocumentTestInvokeMethodOutput(v **TestInvokeMeth if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Body = &jtv + sv.Body = ptr.String(jtv) } case "headers": @@ -16555,7 +16555,7 @@ func awsRestjson1_deserializeOpDocumentTestInvokeMethodOutput(v **TestInvokeMeth if err != nil { return err } - sv.Latency = &i64 + sv.Latency = i64 } case "log": @@ -16564,7 +16564,7 @@ func awsRestjson1_deserializeOpDocumentTestInvokeMethodOutput(v **TestInvokeMeth if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Log = &jtv + sv.Log = ptr.String(jtv) } case "multiValueHeaders": @@ -16582,7 +16582,7 @@ func awsRestjson1_deserializeOpDocumentTestInvokeMethodOutput(v **TestInvokeMeth if err != nil { return err } - sv.Status = ptr.Int32(int32(i64)) + sv.Status = int32(i64) } default: @@ -16837,7 +16837,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAccountOutput(v **UpdateAccountOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ApiKeyVersion = &jtv + sv.ApiKeyVersion = ptr.String(jtv) } case "cloudwatchRoleArn": @@ -16846,7 +16846,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAccountOutput(v **UpdateAccountOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CloudwatchRoleArn = &jtv + sv.CloudwatchRoleArn = ptr.String(jtv) } case "features": @@ -17032,7 +17032,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiKeyOutput(v **UpdateApiKeyOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CustomerId = &jtv + sv.CustomerId = ptr.String(jtv) } case "description": @@ -17041,7 +17041,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiKeyOutput(v **UpdateApiKeyOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "enabled": @@ -17050,7 +17050,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiKeyOutput(v **UpdateApiKeyOutput if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "id": @@ -17059,7 +17059,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiKeyOutput(v **UpdateApiKeyOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "lastUpdatedDate": @@ -17081,7 +17081,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiKeyOutput(v **UpdateApiKeyOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "stageKeys": @@ -17100,7 +17100,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiKeyOutput(v **UpdateApiKeyOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -17260,7 +17260,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizerCredentials = &jtv + sv.AuthorizerCredentials = ptr.String(jtv) } case "authorizerResultTtlInSeconds": @@ -17282,7 +17282,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizerUri = &jtv + sv.AuthorizerUri = ptr.String(jtv) } case "authType": @@ -17291,7 +17291,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthType = &jtv + sv.AuthType = ptr.String(jtv) } case "id": @@ -17300,7 +17300,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "identitySource": @@ -17309,7 +17309,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IdentitySource = &jtv + sv.IdentitySource = ptr.String(jtv) } case "identityValidationExpression": @@ -17318,7 +17318,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IdentityValidationExpression = &jtv + sv.IdentityValidationExpression = ptr.String(jtv) } case "name": @@ -17327,7 +17327,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "providerARNs": @@ -17504,7 +17504,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBasePathMappingOutput(v **UpdateBas if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BasePath = &jtv + sv.BasePath = ptr.String(jtv) } case "restApiId": @@ -17513,7 +17513,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBasePathMappingOutput(v **UpdateBas if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RestApiId = &jtv + sv.RestApiId = ptr.String(jtv) } case "stage": @@ -17522,7 +17522,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBasePathMappingOutput(v **UpdateBas if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Stage = &jtv + sv.Stage = ptr.String(jtv) } default: @@ -17682,7 +17682,7 @@ func awsRestjson1_deserializeOpDocumentUpdateClientCertificateOutput(v **UpdateC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientCertificateId = &jtv + sv.ClientCertificateId = ptr.String(jtv) } case "createdDate": @@ -17704,7 +17704,7 @@ func awsRestjson1_deserializeOpDocumentUpdateClientCertificateOutput(v **UpdateC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "expirationDate": @@ -17726,7 +17726,7 @@ func awsRestjson1_deserializeOpDocumentUpdateClientCertificateOutput(v **UpdateC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PemEncodedCertificate = &jtv + sv.PemEncodedCertificate = ptr.String(jtv) } case "tags": @@ -17912,7 +17912,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentOutput(v **UpdateDeployme if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -17921,7 +17921,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentOutput(v **UpdateDeployme if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -18087,7 +18087,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDocumentationPartOutput(v **UpdateD if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "location": @@ -18101,7 +18101,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDocumentationPartOutput(v **UpdateD if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Properties = &jtv + sv.Properties = ptr.String(jtv) } default: @@ -18277,7 +18277,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDocumentationVersionOutput(v **Upda if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "version": @@ -18286,7 +18286,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDocumentationVersionOutput(v **Upda if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -18449,7 +18449,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainNameOutput(v **UpdateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateName": @@ -18458,7 +18458,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainNameOutput(v **UpdateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CertificateName = &jtv + sv.CertificateName = ptr.String(jtv) } case "certificateUploadDate": @@ -18480,7 +18480,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainNameOutput(v **UpdateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DistributionDomainName = &jtv + sv.DistributionDomainName = ptr.String(jtv) } case "distributionHostedZoneId": @@ -18489,7 +18489,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainNameOutput(v **UpdateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DistributionHostedZoneId = &jtv + sv.DistributionHostedZoneId = ptr.String(jtv) } case "domainName": @@ -18498,7 +18498,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainNameOutput(v **UpdateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainNameStatus": @@ -18516,7 +18516,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainNameOutput(v **UpdateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DomainNameStatusMessage = &jtv + sv.DomainNameStatusMessage = ptr.String(jtv) } case "endpointConfiguration": @@ -18535,7 +18535,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainNameOutput(v **UpdateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalCertificateArn = &jtv + sv.RegionalCertificateArn = ptr.String(jtv) } case "regionalCertificateName": @@ -18544,7 +18544,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainNameOutput(v **UpdateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalCertificateName = &jtv + sv.RegionalCertificateName = ptr.String(jtv) } case "regionalDomainName": @@ -18553,7 +18553,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainNameOutput(v **UpdateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalDomainName = &jtv + sv.RegionalDomainName = ptr.String(jtv) } case "regionalHostedZoneId": @@ -18562,7 +18562,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainNameOutput(v **UpdateDomainNa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalHostedZoneId = &jtv + sv.RegionalHostedZoneId = ptr.String(jtv) } case "securityPolicy": @@ -18736,7 +18736,7 @@ func awsRestjson1_deserializeOpDocumentUpdateGatewayResponseOutput(v **UpdateGat if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DefaultResponse = &jtv + sv.DefaultResponse = jtv } case "responseParameters": @@ -18764,7 +18764,7 @@ func awsRestjson1_deserializeOpDocumentUpdateGatewayResponseOutput(v **UpdateGat if !ok { return fmt.Errorf("expected StatusCode to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -18932,7 +18932,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CacheNamespace = &jtv + sv.CacheNamespace = ptr.String(jtv) } case "connectionId": @@ -18941,7 +18941,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionType": @@ -18968,7 +18968,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Credentials = &jtv + sv.Credentials = ptr.String(jtv) } case "httpMethod": @@ -18977,7 +18977,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HttpMethod = &jtv + sv.HttpMethod = ptr.String(jtv) } case "integrationResponses": @@ -18991,7 +18991,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PassthroughBehavior = &jtv + sv.PassthroughBehavior = ptr.String(jtv) } case "requestParameters": @@ -19014,7 +19014,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if err != nil { return err } - sv.TimeoutInMillis = ptr.Int32(int32(i64)) + sv.TimeoutInMillis = int32(i64) } case "tlsConfig": @@ -19037,7 +19037,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Uri = &jtv + sv.Uri = ptr.String(jtv) } default: @@ -19219,7 +19219,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationResponseOutput(v **Updat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SelectionPattern = &jtv + sv.SelectionPattern = ptr.String(jtv) } case "statusCode": @@ -19228,7 +19228,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationResponseOutput(v **Updat if !ok { return fmt.Errorf("expected StatusCode to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -19391,7 +19391,7 @@ func awsRestjson1_deserializeOpDocumentUpdateMethodOutput(v **UpdateMethodOutput if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.ApiKeyRequired = &jtv + sv.ApiKeyRequired = ptr.Bool(jtv) } case "authorizationScopes": @@ -19405,7 +19405,7 @@ func awsRestjson1_deserializeOpDocumentUpdateMethodOutput(v **UpdateMethodOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizationType = &jtv + sv.AuthorizationType = ptr.String(jtv) } case "authorizerId": @@ -19414,7 +19414,7 @@ func awsRestjson1_deserializeOpDocumentUpdateMethodOutput(v **UpdateMethodOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizerId = &jtv + sv.AuthorizerId = ptr.String(jtv) } case "httpMethod": @@ -19423,7 +19423,7 @@ func awsRestjson1_deserializeOpDocumentUpdateMethodOutput(v **UpdateMethodOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HttpMethod = &jtv + sv.HttpMethod = ptr.String(jtv) } case "methodIntegration": @@ -19442,7 +19442,7 @@ func awsRestjson1_deserializeOpDocumentUpdateMethodOutput(v **UpdateMethodOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OperationName = &jtv + sv.OperationName = ptr.String(jtv) } case "requestModels": @@ -19461,7 +19461,7 @@ func awsRestjson1_deserializeOpDocumentUpdateMethodOutput(v **UpdateMethodOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestValidatorId = &jtv + sv.RequestValidatorId = ptr.String(jtv) } default: @@ -19637,7 +19637,7 @@ func awsRestjson1_deserializeOpDocumentUpdateMethodResponseOutput(v **UpdateMeth if !ok { return fmt.Errorf("expected StatusCode to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -19800,7 +19800,7 @@ func awsRestjson1_deserializeOpDocumentUpdateModelOutput(v **UpdateModelOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "description": @@ -19809,7 +19809,7 @@ func awsRestjson1_deserializeOpDocumentUpdateModelOutput(v **UpdateModelOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -19818,7 +19818,7 @@ func awsRestjson1_deserializeOpDocumentUpdateModelOutput(v **UpdateModelOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -19827,7 +19827,7 @@ func awsRestjson1_deserializeOpDocumentUpdateModelOutput(v **UpdateModelOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "schema": @@ -19836,7 +19836,7 @@ func awsRestjson1_deserializeOpDocumentUpdateModelOutput(v **UpdateModelOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } default: @@ -19996,7 +19996,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRequestValidatorOutput(v **UpdateRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -20005,7 +20005,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRequestValidatorOutput(v **UpdateRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "validateRequestBody": @@ -20014,7 +20014,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRequestValidatorOutput(v **UpdateRe if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ValidateRequestBody = &jtv + sv.ValidateRequestBody = jtv } case "validateRequestParameters": @@ -20023,7 +20023,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRequestValidatorOutput(v **UpdateRe if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ValidateRequestParameters = &jtv + sv.ValidateRequestParameters = jtv } default: @@ -20186,7 +20186,7 @@ func awsRestjson1_deserializeOpDocumentUpdateResourceOutput(v **UpdateResourceOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "parentId": @@ -20195,7 +20195,7 @@ func awsRestjson1_deserializeOpDocumentUpdateResourceOutput(v **UpdateResourceOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParentId = &jtv + sv.ParentId = ptr.String(jtv) } case "path": @@ -20204,7 +20204,7 @@ func awsRestjson1_deserializeOpDocumentUpdateResourceOutput(v **UpdateResourceOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "pathPart": @@ -20213,7 +20213,7 @@ func awsRestjson1_deserializeOpDocumentUpdateResourceOutput(v **UpdateResourceOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PathPart = &jtv + sv.PathPart = ptr.String(jtv) } case "resourceMethods": @@ -20408,7 +20408,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRestApiOutput(v **UpdateRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "disableExecuteApiEndpoint": @@ -20417,7 +20417,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRestApiOutput(v **UpdateRestApiOutp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = &jtv + sv.DisableExecuteApiEndpoint = jtv } case "endpointConfiguration": @@ -20431,7 +20431,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRestApiOutput(v **UpdateRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "minimumCompressionSize": @@ -20453,7 +20453,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRestApiOutput(v **UpdateRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "policy": @@ -20462,7 +20462,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRestApiOutput(v **UpdateRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "tags": @@ -20476,7 +20476,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRestApiOutput(v **UpdateRestApiOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "warnings": @@ -20649,7 +20649,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CacheClusterEnabled = &jtv + sv.CacheClusterEnabled = jtv } case "cacheClusterSize": @@ -20681,7 +20681,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientCertificateId = &jtv + sv.ClientCertificateId = ptr.String(jtv) } case "createdDate": @@ -20703,7 +20703,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "description": @@ -20712,7 +20712,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "documentationVersion": @@ -20721,7 +20721,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DocumentationVersion = &jtv + sv.DocumentationVersion = ptr.String(jtv) } case "lastUpdatedDate": @@ -20748,7 +20748,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StageName = &jtv + sv.StageName = ptr.String(jtv) } case "tags": @@ -20762,7 +20762,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.TracingEnabled = &jtv + sv.TracingEnabled = jtv } case "variables": @@ -20776,7 +20776,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.WebAclArn = &jtv + sv.WebAclArn = ptr.String(jtv) } default: @@ -20936,7 +20936,7 @@ func awsRestjson1_deserializeOpDocumentUpdateUsageOutput(v **UpdateUsageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EndDate = &jtv + sv.EndDate = ptr.String(jtv) } case "values": @@ -20950,7 +20950,7 @@ func awsRestjson1_deserializeOpDocumentUpdateUsageOutput(v **UpdateUsageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = &jtv + sv.Position = ptr.String(jtv) } case "startDate": @@ -20959,7 +20959,7 @@ func awsRestjson1_deserializeOpDocumentUpdateUsageOutput(v **UpdateUsageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StartDate = &jtv + sv.StartDate = ptr.String(jtv) } case "usagePlanId": @@ -20968,7 +20968,7 @@ func awsRestjson1_deserializeOpDocumentUpdateUsageOutput(v **UpdateUsageOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UsagePlanId = &jtv + sv.UsagePlanId = ptr.String(jtv) } default: @@ -21136,7 +21136,7 @@ func awsRestjson1_deserializeOpDocumentUpdateUsagePlanOutput(v **UpdateUsagePlan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -21145,7 +21145,7 @@ func awsRestjson1_deserializeOpDocumentUpdateUsagePlanOutput(v **UpdateUsagePlan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -21154,7 +21154,7 @@ func awsRestjson1_deserializeOpDocumentUpdateUsagePlanOutput(v **UpdateUsagePlan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "productCode": @@ -21163,7 +21163,7 @@ func awsRestjson1_deserializeOpDocumentUpdateUsagePlanOutput(v **UpdateUsagePlan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ProductCode = &jtv + sv.ProductCode = ptr.String(jtv) } case "quota": @@ -21341,7 +21341,7 @@ func awsRestjson1_deserializeOpDocumentUpdateVpcLinkOutput(v **UpdateVpcLinkOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -21350,7 +21350,7 @@ func awsRestjson1_deserializeOpDocumentUpdateVpcLinkOutput(v **UpdateVpcLinkOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -21359,7 +21359,7 @@ func awsRestjson1_deserializeOpDocumentUpdateVpcLinkOutput(v **UpdateVpcLinkOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -21377,7 +21377,7 @@ func awsRestjson1_deserializeOpDocumentUpdateVpcLinkOutput(v **UpdateVpcLinkOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "tags": @@ -21727,7 +21727,7 @@ func awsRestjson1_deserializeDocumentAccessLogSettings(v **types.AccessLogSettin if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DestinationArn = &jtv + sv.DestinationArn = ptr.String(jtv) } case "format": @@ -21736,7 +21736,7 @@ func awsRestjson1_deserializeDocumentAccessLogSettings(v **types.AccessLogSettin if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Format = &jtv + sv.Format = ptr.String(jtv) } default: @@ -21789,7 +21789,7 @@ func awsRestjson1_deserializeDocumentApiKey(v **types.ApiKey, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CustomerId = &jtv + sv.CustomerId = ptr.String(jtv) } case "description": @@ -21798,7 +21798,7 @@ func awsRestjson1_deserializeDocumentApiKey(v **types.ApiKey, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "enabled": @@ -21807,7 +21807,7 @@ func awsRestjson1_deserializeDocumentApiKey(v **types.ApiKey, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "id": @@ -21816,7 +21816,7 @@ func awsRestjson1_deserializeDocumentApiKey(v **types.ApiKey, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "lastUpdatedDate": @@ -21838,7 +21838,7 @@ func awsRestjson1_deserializeDocumentApiKey(v **types.ApiKey, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "stageKeys": @@ -21857,7 +21857,7 @@ func awsRestjson1_deserializeDocumentApiKey(v **types.ApiKey, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -21897,7 +21897,7 @@ func awsRestjson1_deserializeDocumentApiStage(v **types.ApiStage, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ApiId = &jtv + sv.ApiId = ptr.String(jtv) } case "stage": @@ -21906,7 +21906,7 @@ func awsRestjson1_deserializeDocumentApiStage(v **types.ApiStage, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Stage = &jtv + sv.Stage = ptr.String(jtv) } case "throttle": @@ -21951,7 +21951,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizerCredentials = &jtv + sv.AuthorizerCredentials = ptr.String(jtv) } case "authorizerResultTtlInSeconds": @@ -21973,7 +21973,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizerUri = &jtv + sv.AuthorizerUri = ptr.String(jtv) } case "authType": @@ -21982,7 +21982,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthType = &jtv + sv.AuthType = ptr.String(jtv) } case "id": @@ -21991,7 +21991,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "identitySource": @@ -22000,7 +22000,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IdentitySource = &jtv + sv.IdentitySource = ptr.String(jtv) } case "identityValidationExpression": @@ -22009,7 +22009,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IdentityValidationExpression = &jtv + sv.IdentityValidationExpression = ptr.String(jtv) } case "name": @@ -22018,7 +22018,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "providerARNs": @@ -22072,7 +22072,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22112,7 +22112,7 @@ func awsRestjson1_deserializeDocumentBasePathMapping(v **types.BasePathMapping, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BasePath = &jtv + sv.BasePath = ptr.String(jtv) } case "restApiId": @@ -22121,7 +22121,7 @@ func awsRestjson1_deserializeDocumentBasePathMapping(v **types.BasePathMapping, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RestApiId = &jtv + sv.RestApiId = ptr.String(jtv) } case "stage": @@ -22130,7 +22130,7 @@ func awsRestjson1_deserializeDocumentBasePathMapping(v **types.BasePathMapping, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Stage = &jtv + sv.Stage = ptr.String(jtv) } default: @@ -22170,7 +22170,7 @@ func awsRestjson1_deserializeDocumentCanarySettings(v **types.CanarySettings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "percentTraffic": @@ -22183,7 +22183,7 @@ func awsRestjson1_deserializeDocumentCanarySettings(v **types.CanarySettings, va if err != nil { return err } - sv.PercentTraffic = &f64 + sv.PercentTraffic = f64 } case "stageVariableOverrides": @@ -22197,7 +22197,7 @@ func awsRestjson1_deserializeDocumentCanarySettings(v **types.CanarySettings, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.UseStageCache = &jtv + sv.UseStageCache = jtv } default: @@ -22237,7 +22237,7 @@ func awsRestjson1_deserializeDocumentClientCertificate(v **types.ClientCertifica if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientCertificateId = &jtv + sv.ClientCertificateId = ptr.String(jtv) } case "createdDate": @@ -22259,7 +22259,7 @@ func awsRestjson1_deserializeDocumentClientCertificate(v **types.ClientCertifica if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "expirationDate": @@ -22281,7 +22281,7 @@ func awsRestjson1_deserializeDocumentClientCertificate(v **types.ClientCertifica if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PemEncodedCertificate = &jtv + sv.PemEncodedCertificate = ptr.String(jtv) } case "tags": @@ -22326,7 +22326,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22384,7 +22384,7 @@ func awsRestjson1_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -22393,7 +22393,7 @@ func awsRestjson1_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -22433,7 +22433,7 @@ func awsRestjson1_deserializeDocumentDocumentationPart(v **types.DocumentationPa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "location": @@ -22447,7 +22447,7 @@ func awsRestjson1_deserializeDocumentDocumentationPart(v **types.DocumentationPa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Properties = &jtv + sv.Properties = ptr.String(jtv) } default: @@ -22487,7 +22487,7 @@ func awsRestjson1_deserializeDocumentDocumentationPartLocation(v **types.Documen if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Method = &jtv + sv.Method = ptr.String(jtv) } case "name": @@ -22496,7 +22496,7 @@ func awsRestjson1_deserializeDocumentDocumentationPartLocation(v **types.Documen if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "path": @@ -22505,7 +22505,7 @@ func awsRestjson1_deserializeDocumentDocumentationPartLocation(v **types.Documen if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "statusCode": @@ -22514,7 +22514,7 @@ func awsRestjson1_deserializeDocumentDocumentationPartLocation(v **types.Documen if !ok { return fmt.Errorf("expected DocumentationPartLocationStatusCode to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } case "type": @@ -22576,7 +22576,7 @@ func awsRestjson1_deserializeDocumentDocumentationVersion(v **types.Documentatio if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "version": @@ -22585,7 +22585,7 @@ func awsRestjson1_deserializeDocumentDocumentationVersion(v **types.Documentatio if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -22625,7 +22625,7 @@ func awsRestjson1_deserializeDocumentDomainName(v **types.DomainName, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateName": @@ -22634,7 +22634,7 @@ func awsRestjson1_deserializeDocumentDomainName(v **types.DomainName, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CertificateName = &jtv + sv.CertificateName = ptr.String(jtv) } case "certificateUploadDate": @@ -22656,7 +22656,7 @@ func awsRestjson1_deserializeDocumentDomainName(v **types.DomainName, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DistributionDomainName = &jtv + sv.DistributionDomainName = ptr.String(jtv) } case "distributionHostedZoneId": @@ -22665,7 +22665,7 @@ func awsRestjson1_deserializeDocumentDomainName(v **types.DomainName, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DistributionHostedZoneId = &jtv + sv.DistributionHostedZoneId = ptr.String(jtv) } case "domainName": @@ -22674,7 +22674,7 @@ func awsRestjson1_deserializeDocumentDomainName(v **types.DomainName, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainNameStatus": @@ -22692,7 +22692,7 @@ func awsRestjson1_deserializeDocumentDomainName(v **types.DomainName, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DomainNameStatusMessage = &jtv + sv.DomainNameStatusMessage = ptr.String(jtv) } case "endpointConfiguration": @@ -22711,7 +22711,7 @@ func awsRestjson1_deserializeDocumentDomainName(v **types.DomainName, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalCertificateArn = &jtv + sv.RegionalCertificateArn = ptr.String(jtv) } case "regionalCertificateName": @@ -22720,7 +22720,7 @@ func awsRestjson1_deserializeDocumentDomainName(v **types.DomainName, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalCertificateName = &jtv + sv.RegionalCertificateName = ptr.String(jtv) } case "regionalDomainName": @@ -22729,7 +22729,7 @@ func awsRestjson1_deserializeDocumentDomainName(v **types.DomainName, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalDomainName = &jtv + sv.RegionalDomainName = ptr.String(jtv) } case "regionalHostedZoneId": @@ -22738,7 +22738,7 @@ func awsRestjson1_deserializeDocumentDomainName(v **types.DomainName, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegionalHostedZoneId = &jtv + sv.RegionalHostedZoneId = ptr.String(jtv) } case "securityPolicy": @@ -22833,7 +22833,7 @@ func awsRestjson1_deserializeDocumentGatewayResponse(v **types.GatewayResponse, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DefaultResponse = &jtv + sv.DefaultResponse = jtv } case "responseParameters": @@ -22861,7 +22861,7 @@ func awsRestjson1_deserializeDocumentGatewayResponse(v **types.GatewayResponse, if !ok { return fmt.Errorf("expected StatusCode to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -22906,7 +22906,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CacheNamespace = &jtv + sv.CacheNamespace = ptr.String(jtv) } case "connectionId": @@ -22915,7 +22915,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionType": @@ -22942,7 +22942,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Credentials = &jtv + sv.Credentials = ptr.String(jtv) } case "httpMethod": @@ -22951,7 +22951,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HttpMethod = &jtv + sv.HttpMethod = ptr.String(jtv) } case "integrationResponses": @@ -22965,7 +22965,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PassthroughBehavior = &jtv + sv.PassthroughBehavior = ptr.String(jtv) } case "requestParameters": @@ -22988,7 +22988,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if err != nil { return err } - sv.TimeoutInMillis = ptr.Int32(int32(i64)) + sv.TimeoutInMillis = int32(i64) } case "tlsConfig": @@ -23011,7 +23011,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Uri = &jtv + sv.Uri = ptr.String(jtv) } default: @@ -23070,7 +23070,7 @@ func awsRestjson1_deserializeDocumentIntegrationResponse(v **types.IntegrationRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SelectionPattern = &jtv + sv.SelectionPattern = ptr.String(jtv) } case "statusCode": @@ -23079,7 +23079,7 @@ func awsRestjson1_deserializeDocumentIntegrationResponse(v **types.IntegrationRe if !ok { return fmt.Errorf("expected StatusCode to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -23119,7 +23119,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryAfterSeconds": @@ -23128,7 +23128,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RetryAfterSeconds = &jtv + sv.RetryAfterSeconds = ptr.String(jtv) } default: @@ -23140,7 +23140,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsRestjson1_deserializeDocumentListOfApiKey(v *[]*types.ApiKey, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfApiKey(v *[]types.ApiKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23153,18 +23153,20 @@ func awsRestjson1_deserializeDocumentListOfApiKey(v *[]*types.ApiKey, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApiKey + var cv []types.ApiKey if *v == nil { - cv = []*types.ApiKey{} + cv = []types.ApiKey{} } else { cv = *v } for _, value := range shape { - var col *types.ApiKey - if err := awsRestjson1_deserializeDocumentApiKey(&col, value); err != nil { + var col types.ApiKey + destAddr := &col + if err := awsRestjson1_deserializeDocumentApiKey(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23172,7 +23174,7 @@ func awsRestjson1_deserializeDocumentListOfApiKey(v *[]*types.ApiKey, value inte return nil } -func awsRestjson1_deserializeDocumentListOfApiStage(v *[]*types.ApiStage, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfApiStage(v *[]types.ApiStage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23185,18 +23187,20 @@ func awsRestjson1_deserializeDocumentListOfApiStage(v *[]*types.ApiStage, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApiStage + var cv []types.ApiStage if *v == nil { - cv = []*types.ApiStage{} + cv = []types.ApiStage{} } else { cv = *v } for _, value := range shape { - var col *types.ApiStage - if err := awsRestjson1_deserializeDocumentApiStage(&col, value); err != nil { + var col types.ApiStage + destAddr := &col + if err := awsRestjson1_deserializeDocumentApiStage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23204,7 +23208,7 @@ func awsRestjson1_deserializeDocumentListOfApiStage(v *[]*types.ApiStage, value return nil } -func awsRestjson1_deserializeDocumentListOfARNs(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfARNs(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23217,21 +23221,21 @@ func awsRestjson1_deserializeDocumentListOfARNs(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ProviderARN to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -23240,7 +23244,7 @@ func awsRestjson1_deserializeDocumentListOfARNs(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentListOfAuthorizer(v *[]*types.Authorizer, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfAuthorizer(v *[]types.Authorizer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23253,18 +23257,20 @@ func awsRestjson1_deserializeDocumentListOfAuthorizer(v *[]*types.Authorizer, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Authorizer + var cv []types.Authorizer if *v == nil { - cv = []*types.Authorizer{} + cv = []types.Authorizer{} } else { cv = *v } for _, value := range shape { - var col *types.Authorizer - if err := awsRestjson1_deserializeDocumentAuthorizer(&col, value); err != nil { + var col types.Authorizer + destAddr := &col + if err := awsRestjson1_deserializeDocumentAuthorizer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23272,7 +23278,7 @@ func awsRestjson1_deserializeDocumentListOfAuthorizer(v *[]*types.Authorizer, va return nil } -func awsRestjson1_deserializeDocumentListOfBasePathMapping(v *[]*types.BasePathMapping, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfBasePathMapping(v *[]types.BasePathMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23285,18 +23291,20 @@ func awsRestjson1_deserializeDocumentListOfBasePathMapping(v *[]*types.BasePathM return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BasePathMapping + var cv []types.BasePathMapping if *v == nil { - cv = []*types.BasePathMapping{} + cv = []types.BasePathMapping{} } else { cv = *v } for _, value := range shape { - var col *types.BasePathMapping - if err := awsRestjson1_deserializeDocumentBasePathMapping(&col, value); err != nil { + var col types.BasePathMapping + destAddr := &col + if err := awsRestjson1_deserializeDocumentBasePathMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23304,7 +23312,7 @@ func awsRestjson1_deserializeDocumentListOfBasePathMapping(v *[]*types.BasePathM return nil } -func awsRestjson1_deserializeDocumentListOfClientCertificate(v *[]*types.ClientCertificate, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfClientCertificate(v *[]types.ClientCertificate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23317,18 +23325,20 @@ func awsRestjson1_deserializeDocumentListOfClientCertificate(v *[]*types.ClientC return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ClientCertificate + var cv []types.ClientCertificate if *v == nil { - cv = []*types.ClientCertificate{} + cv = []types.ClientCertificate{} } else { cv = *v } for _, value := range shape { - var col *types.ClientCertificate - if err := awsRestjson1_deserializeDocumentClientCertificate(&col, value); err != nil { + var col types.ClientCertificate + destAddr := &col + if err := awsRestjson1_deserializeDocumentClientCertificate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23336,7 +23346,7 @@ func awsRestjson1_deserializeDocumentListOfClientCertificate(v *[]*types.ClientC return nil } -func awsRestjson1_deserializeDocumentListOfDeployment(v *[]*types.Deployment, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfDeployment(v *[]types.Deployment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23349,18 +23359,20 @@ func awsRestjson1_deserializeDocumentListOfDeployment(v *[]*types.Deployment, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Deployment + var cv []types.Deployment if *v == nil { - cv = []*types.Deployment{} + cv = []types.Deployment{} } else { cv = *v } for _, value := range shape { - var col *types.Deployment - if err := awsRestjson1_deserializeDocumentDeployment(&col, value); err != nil { + var col types.Deployment + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeployment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23368,7 +23380,7 @@ func awsRestjson1_deserializeDocumentListOfDeployment(v *[]*types.Deployment, va return nil } -func awsRestjson1_deserializeDocumentListOfDocumentationPart(v *[]*types.DocumentationPart, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfDocumentationPart(v *[]types.DocumentationPart, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23381,18 +23393,20 @@ func awsRestjson1_deserializeDocumentListOfDocumentationPart(v *[]*types.Documen return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentationPart + var cv []types.DocumentationPart if *v == nil { - cv = []*types.DocumentationPart{} + cv = []types.DocumentationPart{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentationPart - if err := awsRestjson1_deserializeDocumentDocumentationPart(&col, value); err != nil { + var col types.DocumentationPart + destAddr := &col + if err := awsRestjson1_deserializeDocumentDocumentationPart(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23400,7 +23414,7 @@ func awsRestjson1_deserializeDocumentListOfDocumentationPart(v *[]*types.Documen return nil } -func awsRestjson1_deserializeDocumentListOfDocumentationVersion(v *[]*types.DocumentationVersion, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfDocumentationVersion(v *[]types.DocumentationVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23413,18 +23427,20 @@ func awsRestjson1_deserializeDocumentListOfDocumentationVersion(v *[]*types.Docu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentationVersion + var cv []types.DocumentationVersion if *v == nil { - cv = []*types.DocumentationVersion{} + cv = []types.DocumentationVersion{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentationVersion - if err := awsRestjson1_deserializeDocumentDocumentationVersion(&col, value); err != nil { + var col types.DocumentationVersion + destAddr := &col + if err := awsRestjson1_deserializeDocumentDocumentationVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23432,7 +23448,7 @@ func awsRestjson1_deserializeDocumentListOfDocumentationVersion(v *[]*types.Docu return nil } -func awsRestjson1_deserializeDocumentListOfDomainName(v *[]*types.DomainName, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfDomainName(v *[]types.DomainName, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23445,18 +23461,20 @@ func awsRestjson1_deserializeDocumentListOfDomainName(v *[]*types.DomainName, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainName + var cv []types.DomainName if *v == nil { - cv = []*types.DomainName{} + cv = []types.DomainName{} } else { cv = *v } for _, value := range shape { - var col *types.DomainName - if err := awsRestjson1_deserializeDocumentDomainName(&col, value); err != nil { + var col types.DomainName + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainName(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23500,7 +23518,7 @@ func awsRestjson1_deserializeDocumentListOfEndpointType(v *[]types.EndpointType, return nil } -func awsRestjson1_deserializeDocumentListOfGatewayResponse(v *[]*types.GatewayResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfGatewayResponse(v *[]types.GatewayResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23513,18 +23531,20 @@ func awsRestjson1_deserializeDocumentListOfGatewayResponse(v *[]*types.GatewayRe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GatewayResponse + var cv []types.GatewayResponse if *v == nil { - cv = []*types.GatewayResponse{} + cv = []types.GatewayResponse{} } else { cv = *v } for _, value := range shape { - var col *types.GatewayResponse - if err := awsRestjson1_deserializeDocumentGatewayResponse(&col, value); err != nil { + var col types.GatewayResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentGatewayResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23532,7 +23552,7 @@ func awsRestjson1_deserializeDocumentListOfGatewayResponse(v *[]*types.GatewayRe return nil } -func awsRestjson1_deserializeDocumentListOfLong(v *[]*int64, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfLong(v *[]int64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23545,15 +23565,15 @@ func awsRestjson1_deserializeDocumentListOfLong(v *[]*int64, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int64 + var cv []int64 if *v == nil { - cv = []*int64{} + cv = []int64{} } else { cv = *v } for _, value := range shape { - var col *int64 + var col int64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -23563,7 +23583,7 @@ func awsRestjson1_deserializeDocumentListOfLong(v *[]*int64, value interface{}) if err != nil { return err } - col = &i64 + col = i64 } cv = append(cv, col) @@ -23572,7 +23592,7 @@ func awsRestjson1_deserializeDocumentListOfLong(v *[]*int64, value interface{}) return nil } -func awsRestjson1_deserializeDocumentListOfModel(v *[]*types.Model, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfModel(v *[]types.Model, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23585,18 +23605,20 @@ func awsRestjson1_deserializeDocumentListOfModel(v *[]*types.Model, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Model + var cv []types.Model if *v == nil { - cv = []*types.Model{} + cv = []types.Model{} } else { cv = *v } for _, value := range shape { - var col *types.Model - if err := awsRestjson1_deserializeDocumentModel(&col, value); err != nil { + var col types.Model + destAddr := &col + if err := awsRestjson1_deserializeDocumentModel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23604,7 +23626,7 @@ func awsRestjson1_deserializeDocumentListOfModel(v *[]*types.Model, value interf return nil } -func awsRestjson1_deserializeDocumentListOfRequestValidator(v *[]*types.RequestValidator, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfRequestValidator(v *[]types.RequestValidator, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23617,18 +23639,20 @@ func awsRestjson1_deserializeDocumentListOfRequestValidator(v *[]*types.RequestV return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RequestValidator + var cv []types.RequestValidator if *v == nil { - cv = []*types.RequestValidator{} + cv = []types.RequestValidator{} } else { cv = *v } for _, value := range shape { - var col *types.RequestValidator - if err := awsRestjson1_deserializeDocumentRequestValidator(&col, value); err != nil { + var col types.RequestValidator + destAddr := &col + if err := awsRestjson1_deserializeDocumentRequestValidator(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23636,7 +23660,7 @@ func awsRestjson1_deserializeDocumentListOfRequestValidator(v *[]*types.RequestV return nil } -func awsRestjson1_deserializeDocumentListOfResource(v *[]*types.Resource, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfResource(v *[]types.Resource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23649,18 +23673,20 @@ func awsRestjson1_deserializeDocumentListOfResource(v *[]*types.Resource, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Resource + var cv []types.Resource if *v == nil { - cv = []*types.Resource{} + cv = []types.Resource{} } else { cv = *v } for _, value := range shape { - var col *types.Resource - if err := awsRestjson1_deserializeDocumentResource(&col, value); err != nil { + var col types.Resource + destAddr := &col + if err := awsRestjson1_deserializeDocumentResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23668,7 +23694,7 @@ func awsRestjson1_deserializeDocumentListOfResource(v *[]*types.Resource, value return nil } -func awsRestjson1_deserializeDocumentListOfRestApi(v *[]*types.RestApi, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfRestApi(v *[]types.RestApi, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23681,18 +23707,20 @@ func awsRestjson1_deserializeDocumentListOfRestApi(v *[]*types.RestApi, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RestApi + var cv []types.RestApi if *v == nil { - cv = []*types.RestApi{} + cv = []types.RestApi{} } else { cv = *v } for _, value := range shape { - var col *types.RestApi - if err := awsRestjson1_deserializeDocumentRestApi(&col, value); err != nil { + var col types.RestApi + destAddr := &col + if err := awsRestjson1_deserializeDocumentRestApi(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23700,7 +23728,7 @@ func awsRestjson1_deserializeDocumentListOfRestApi(v *[]*types.RestApi, value in return nil } -func awsRestjson1_deserializeDocumentListOfSdkConfigurationProperty(v *[]*types.SdkConfigurationProperty, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfSdkConfigurationProperty(v *[]types.SdkConfigurationProperty, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23713,18 +23741,20 @@ func awsRestjson1_deserializeDocumentListOfSdkConfigurationProperty(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SdkConfigurationProperty + var cv []types.SdkConfigurationProperty if *v == nil { - cv = []*types.SdkConfigurationProperty{} + cv = []types.SdkConfigurationProperty{} } else { cv = *v } for _, value := range shape { - var col *types.SdkConfigurationProperty - if err := awsRestjson1_deserializeDocumentSdkConfigurationProperty(&col, value); err != nil { + var col types.SdkConfigurationProperty + destAddr := &col + if err := awsRestjson1_deserializeDocumentSdkConfigurationProperty(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23732,7 +23762,7 @@ func awsRestjson1_deserializeDocumentListOfSdkConfigurationProperty(v *[]*types. return nil } -func awsRestjson1_deserializeDocumentListOfSdkType(v *[]*types.SdkType, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfSdkType(v *[]types.SdkType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23745,18 +23775,20 @@ func awsRestjson1_deserializeDocumentListOfSdkType(v *[]*types.SdkType, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SdkType + var cv []types.SdkType if *v == nil { - cv = []*types.SdkType{} + cv = []types.SdkType{} } else { cv = *v } for _, value := range shape { - var col *types.SdkType - if err := awsRestjson1_deserializeDocumentSdkType(&col, value); err != nil { + var col types.SdkType + destAddr := &col + if err := awsRestjson1_deserializeDocumentSdkType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23764,7 +23796,7 @@ func awsRestjson1_deserializeDocumentListOfSdkType(v *[]*types.SdkType, value in return nil } -func awsRestjson1_deserializeDocumentListOfStage(v *[]*types.Stage, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfStage(v *[]types.Stage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23777,18 +23809,20 @@ func awsRestjson1_deserializeDocumentListOfStage(v *[]*types.Stage, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Stage + var cv []types.Stage if *v == nil { - cv = []*types.Stage{} + cv = []types.Stage{} } else { cv = *v } for _, value := range shape { - var col *types.Stage - if err := awsRestjson1_deserializeDocumentStage(&col, value); err != nil { + var col types.Stage + destAddr := &col + if err := awsRestjson1_deserializeDocumentStage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23796,7 +23830,7 @@ func awsRestjson1_deserializeDocumentListOfStage(v *[]*types.Stage, value interf return nil } -func awsRestjson1_deserializeDocumentListOfString(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfString(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23809,21 +23843,21 @@ func awsRestjson1_deserializeDocumentListOfString(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -23832,7 +23866,7 @@ func awsRestjson1_deserializeDocumentListOfString(v *[]*string, value interface{ return nil } -func awsRestjson1_deserializeDocumentListOfUsage(v *[][]*int64, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfUsage(v *[][]int64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23845,15 +23879,15 @@ func awsRestjson1_deserializeDocumentListOfUsage(v *[][]*int64, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv [][]*int64 + var cv [][]int64 if *v == nil { - cv = [][]*int64{} + cv = [][]int64{} } else { cv = *v } for _, value := range shape { - var col []*int64 + var col []int64 if err := awsRestjson1_deserializeDocumentListOfLong(&col, value); err != nil { return err } @@ -23864,7 +23898,7 @@ func awsRestjson1_deserializeDocumentListOfUsage(v *[][]*int64, value interface{ return nil } -func awsRestjson1_deserializeDocumentListOfUsagePlan(v *[]*types.UsagePlan, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfUsagePlan(v *[]types.UsagePlan, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23877,18 +23911,20 @@ func awsRestjson1_deserializeDocumentListOfUsagePlan(v *[]*types.UsagePlan, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UsagePlan + var cv []types.UsagePlan if *v == nil { - cv = []*types.UsagePlan{} + cv = []types.UsagePlan{} } else { cv = *v } for _, value := range shape { - var col *types.UsagePlan - if err := awsRestjson1_deserializeDocumentUsagePlan(&col, value); err != nil { + var col types.UsagePlan + destAddr := &col + if err := awsRestjson1_deserializeDocumentUsagePlan(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23896,7 +23932,7 @@ func awsRestjson1_deserializeDocumentListOfUsagePlan(v *[]*types.UsagePlan, valu return nil } -func awsRestjson1_deserializeDocumentListOfUsagePlanKey(v *[]*types.UsagePlanKey, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfUsagePlanKey(v *[]types.UsagePlanKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23909,18 +23945,20 @@ func awsRestjson1_deserializeDocumentListOfUsagePlanKey(v *[]*types.UsagePlanKey return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UsagePlanKey + var cv []types.UsagePlanKey if *v == nil { - cv = []*types.UsagePlanKey{} + cv = []types.UsagePlanKey{} } else { cv = *v } for _, value := range shape { - var col *types.UsagePlanKey - if err := awsRestjson1_deserializeDocumentUsagePlanKey(&col, value); err != nil { + var col types.UsagePlanKey + destAddr := &col + if err := awsRestjson1_deserializeDocumentUsagePlanKey(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23928,7 +23966,7 @@ func awsRestjson1_deserializeDocumentListOfUsagePlanKey(v *[]*types.UsagePlanKey return nil } -func awsRestjson1_deserializeDocumentListOfVpcLink(v *[]*types.VpcLink, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfVpcLink(v *[]types.VpcLink, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23941,18 +23979,20 @@ func awsRestjson1_deserializeDocumentListOfVpcLink(v *[]*types.VpcLink, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VpcLink + var cv []types.VpcLink if *v == nil { - cv = []*types.VpcLink{} + cv = []types.VpcLink{} } else { cv = *v } for _, value := range shape { - var col *types.VpcLink - if err := awsRestjson1_deserializeDocumentVpcLink(&col, value); err != nil { + var col types.VpcLink + destAddr := &col + if err := awsRestjson1_deserializeDocumentVpcLink(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23960,7 +24000,7 @@ func awsRestjson1_deserializeDocumentListOfVpcLink(v *[]*types.VpcLink, value in return nil } -func awsRestjson1_deserializeDocumentMapOfApiStageThrottleSettings(v *map[string]*types.ThrottleSettings, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfApiStageThrottleSettings(v *map[string]types.ThrottleSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23973,18 +24013,21 @@ func awsRestjson1_deserializeDocumentMapOfApiStageThrottleSettings(v *map[string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.ThrottleSettings + var mv map[string]types.ThrottleSettings if *v == nil { - mv = map[string]*types.ThrottleSettings{} + mv = map[string]types.ThrottleSettings{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.ThrottleSettings - if err := awsRestjson1_deserializeDocumentThrottleSettings(&parsedVal, value); err != nil { + var parsedVal types.ThrottleSettings + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentThrottleSettings(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -23992,7 +24035,7 @@ func awsRestjson1_deserializeDocumentMapOfApiStageThrottleSettings(v *map[string return nil } -func awsRestjson1_deserializeDocumentMapOfIntegrationResponse(v *map[string]*types.IntegrationResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfIntegrationResponse(v *map[string]types.IntegrationResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24005,18 +24048,21 @@ func awsRestjson1_deserializeDocumentMapOfIntegrationResponse(v *map[string]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.IntegrationResponse + var mv map[string]types.IntegrationResponse if *v == nil { - mv = map[string]*types.IntegrationResponse{} + mv = map[string]types.IntegrationResponse{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.IntegrationResponse - if err := awsRestjson1_deserializeDocumentIntegrationResponse(&parsedVal, value); err != nil { + var parsedVal types.IntegrationResponse + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentIntegrationResponse(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -24024,7 +24070,7 @@ func awsRestjson1_deserializeDocumentMapOfIntegrationResponse(v *map[string]*typ return nil } -func awsRestjson1_deserializeDocumentMapOfKeyUsages(v *map[string][][]*int64, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfKeyUsages(v *map[string][][]int64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24037,18 +24083,20 @@ func awsRestjson1_deserializeDocumentMapOfKeyUsages(v *map[string][][]*int64, va return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][][]*int64 + var mv map[string][][]int64 if *v == nil { - mv = map[string][][]*int64{} + mv = map[string][][]int64{} } else { mv = *v } for key, value := range shape { - var parsedVal [][]*int64 - if err := awsRestjson1_deserializeDocumentListOfUsage(&parsedVal, value); err != nil { + var parsedVal [][]int64 + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentListOfUsage(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -24056,7 +24104,7 @@ func awsRestjson1_deserializeDocumentMapOfKeyUsages(v *map[string][][]*int64, va return nil } -func awsRestjson1_deserializeDocumentMapOfMethod(v *map[string]*types.Method, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfMethod(v *map[string]types.Method, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24069,18 +24117,21 @@ func awsRestjson1_deserializeDocumentMapOfMethod(v *map[string]*types.Method, va return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.Method + var mv map[string]types.Method if *v == nil { - mv = map[string]*types.Method{} + mv = map[string]types.Method{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.Method - if err := awsRestjson1_deserializeDocumentMethod(&parsedVal, value); err != nil { + var parsedVal types.Method + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentMethod(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -24088,7 +24139,7 @@ func awsRestjson1_deserializeDocumentMapOfMethod(v *map[string]*types.Method, va return nil } -func awsRestjson1_deserializeDocumentMapOfMethodResponse(v *map[string]*types.MethodResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfMethodResponse(v *map[string]types.MethodResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24101,18 +24152,21 @@ func awsRestjson1_deserializeDocumentMapOfMethodResponse(v *map[string]*types.Me return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.MethodResponse + var mv map[string]types.MethodResponse if *v == nil { - mv = map[string]*types.MethodResponse{} + mv = map[string]types.MethodResponse{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.MethodResponse - if err := awsRestjson1_deserializeDocumentMethodResponse(&parsedVal, value); err != nil { + var parsedVal types.MethodResponse + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentMethodResponse(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -24120,7 +24174,7 @@ func awsRestjson1_deserializeDocumentMapOfMethodResponse(v *map[string]*types.Me return nil } -func awsRestjson1_deserializeDocumentMapOfMethodSettings(v *map[string]*types.MethodSetting, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfMethodSettings(v *map[string]types.MethodSetting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24133,18 +24187,21 @@ func awsRestjson1_deserializeDocumentMapOfMethodSettings(v *map[string]*types.Me return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.MethodSetting + var mv map[string]types.MethodSetting if *v == nil { - mv = map[string]*types.MethodSetting{} + mv = map[string]types.MethodSetting{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.MethodSetting - if err := awsRestjson1_deserializeDocumentMethodSetting(&parsedVal, value); err != nil { + var parsedVal types.MethodSetting + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentMethodSetting(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -24152,7 +24209,7 @@ func awsRestjson1_deserializeDocumentMapOfMethodSettings(v *map[string]*types.Me return nil } -func awsRestjson1_deserializeDocumentMapOfMethodSnapshot(v *map[string]*types.MethodSnapshot, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfMethodSnapshot(v *map[string]types.MethodSnapshot, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24165,18 +24222,21 @@ func awsRestjson1_deserializeDocumentMapOfMethodSnapshot(v *map[string]*types.Me return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.MethodSnapshot + var mv map[string]types.MethodSnapshot if *v == nil { - mv = map[string]*types.MethodSnapshot{} + mv = map[string]types.MethodSnapshot{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.MethodSnapshot - if err := awsRestjson1_deserializeDocumentMethodSnapshot(&parsedVal, value); err != nil { + var parsedVal types.MethodSnapshot + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentMethodSnapshot(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -24184,7 +24244,7 @@ func awsRestjson1_deserializeDocumentMapOfMethodSnapshot(v *map[string]*types.Me return nil } -func awsRestjson1_deserializeDocumentMapOfStringToBoolean(v *map[string]*bool, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfStringToBoolean(v *map[string]bool, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24197,21 +24257,21 @@ func awsRestjson1_deserializeDocumentMapOfStringToBoolean(v *map[string]*bool, v return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*bool + var mv map[string]bool if *v == nil { - mv = map[string]*bool{} + mv = map[string]bool{} } else { mv = *v } for key, value := range shape { - var parsedVal *bool + var parsedVal bool if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -24220,7 +24280,7 @@ func awsRestjson1_deserializeDocumentMapOfStringToBoolean(v *map[string]*bool, v return nil } -func awsRestjson1_deserializeDocumentMapOfStringToList(v *map[string][]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfStringToList(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24233,18 +24293,20 @@ func awsRestjson1_deserializeDocumentMapOfStringToList(v *map[string][]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsRestjson1_deserializeDocumentListOfString(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentListOfString(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -24252,7 +24314,7 @@ func awsRestjson1_deserializeDocumentMapOfStringToList(v *map[string][]*string, return nil } -func awsRestjson1_deserializeDocumentMapOfStringToString(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfStringToString(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24265,21 +24327,21 @@ func awsRestjson1_deserializeDocumentMapOfStringToString(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -24316,7 +24378,7 @@ func awsRestjson1_deserializeDocumentMethod(v **types.Method, value interface{}) if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.ApiKeyRequired = &jtv + sv.ApiKeyRequired = ptr.Bool(jtv) } case "authorizationScopes": @@ -24330,7 +24392,7 @@ func awsRestjson1_deserializeDocumentMethod(v **types.Method, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizationType = &jtv + sv.AuthorizationType = ptr.String(jtv) } case "authorizerId": @@ -24339,7 +24401,7 @@ func awsRestjson1_deserializeDocumentMethod(v **types.Method, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizerId = &jtv + sv.AuthorizerId = ptr.String(jtv) } case "httpMethod": @@ -24348,7 +24410,7 @@ func awsRestjson1_deserializeDocumentMethod(v **types.Method, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HttpMethod = &jtv + sv.HttpMethod = ptr.String(jtv) } case "methodIntegration": @@ -24367,7 +24429,7 @@ func awsRestjson1_deserializeDocumentMethod(v **types.Method, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OperationName = &jtv + sv.OperationName = ptr.String(jtv) } case "requestModels": @@ -24386,7 +24448,7 @@ func awsRestjson1_deserializeDocumentMethod(v **types.Method, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestValidatorId = &jtv + sv.RequestValidatorId = ptr.String(jtv) } default: @@ -24436,7 +24498,7 @@ func awsRestjson1_deserializeDocumentMethodResponse(v **types.MethodResponse, va if !ok { return fmt.Errorf("expected StatusCode to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -24476,7 +24538,7 @@ func awsRestjson1_deserializeDocumentMethodSetting(v **types.MethodSetting, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CacheDataEncrypted = &jtv + sv.CacheDataEncrypted = jtv } case "cacheTtlInSeconds": @@ -24489,7 +24551,7 @@ func awsRestjson1_deserializeDocumentMethodSetting(v **types.MethodSetting, valu if err != nil { return err } - sv.CacheTtlInSeconds = ptr.Int32(int32(i64)) + sv.CacheTtlInSeconds = int32(i64) } case "cachingEnabled": @@ -24498,7 +24560,7 @@ func awsRestjson1_deserializeDocumentMethodSetting(v **types.MethodSetting, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CachingEnabled = &jtv + sv.CachingEnabled = jtv } case "dataTraceEnabled": @@ -24507,7 +24569,7 @@ func awsRestjson1_deserializeDocumentMethodSetting(v **types.MethodSetting, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DataTraceEnabled = &jtv + sv.DataTraceEnabled = jtv } case "loggingLevel": @@ -24516,7 +24578,7 @@ func awsRestjson1_deserializeDocumentMethodSetting(v **types.MethodSetting, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LoggingLevel = &jtv + sv.LoggingLevel = ptr.String(jtv) } case "metricsEnabled": @@ -24525,7 +24587,7 @@ func awsRestjson1_deserializeDocumentMethodSetting(v **types.MethodSetting, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.MetricsEnabled = &jtv + sv.MetricsEnabled = jtv } case "requireAuthorizationForCacheControl": @@ -24534,7 +24596,7 @@ func awsRestjson1_deserializeDocumentMethodSetting(v **types.MethodSetting, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RequireAuthorizationForCacheControl = &jtv + sv.RequireAuthorizationForCacheControl = jtv } case "throttlingBurstLimit": @@ -24547,7 +24609,7 @@ func awsRestjson1_deserializeDocumentMethodSetting(v **types.MethodSetting, valu if err != nil { return err } - sv.ThrottlingBurstLimit = ptr.Int32(int32(i64)) + sv.ThrottlingBurstLimit = int32(i64) } case "throttlingRateLimit": @@ -24560,7 +24622,7 @@ func awsRestjson1_deserializeDocumentMethodSetting(v **types.MethodSetting, valu if err != nil { return err } - sv.ThrottlingRateLimit = &f64 + sv.ThrottlingRateLimit = f64 } case "unauthorizedCacheControlHeaderStrategy": @@ -24609,7 +24671,7 @@ func awsRestjson1_deserializeDocumentMethodSnapshot(v **types.MethodSnapshot, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ApiKeyRequired = &jtv + sv.ApiKeyRequired = jtv } case "authorizationType": @@ -24618,7 +24680,7 @@ func awsRestjson1_deserializeDocumentMethodSnapshot(v **types.MethodSnapshot, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizationType = &jtv + sv.AuthorizationType = ptr.String(jtv) } default: @@ -24658,7 +24720,7 @@ func awsRestjson1_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "description": @@ -24667,7 +24729,7 @@ func awsRestjson1_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -24676,7 +24738,7 @@ func awsRestjson1_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -24685,7 +24747,7 @@ func awsRestjson1_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "schema": @@ -24694,7 +24756,7 @@ func awsRestjson1_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } default: @@ -24734,7 +24796,7 @@ func awsRestjson1_deserializeDocumentMutualTlsAuthentication(v **types.MutualTls if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TruststoreUri = &jtv + sv.TruststoreUri = ptr.String(jtv) } case "truststoreVersion": @@ -24743,7 +24805,7 @@ func awsRestjson1_deserializeDocumentMutualTlsAuthentication(v **types.MutualTls if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TruststoreVersion = &jtv + sv.TruststoreVersion = ptr.String(jtv) } case "truststoreWarnings": @@ -24788,7 +24850,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24800,7 +24862,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti return nil } -func awsRestjson1_deserializeDocumentPathToMapOfMethodSnapshot(v *map[string]map[string]*types.MethodSnapshot, value interface{}) error { +func awsRestjson1_deserializeDocumentPathToMapOfMethodSnapshot(v *map[string]map[string]types.MethodSnapshot, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24813,18 +24875,20 @@ func awsRestjson1_deserializeDocumentPathToMapOfMethodSnapshot(v *map[string]map return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]map[string]*types.MethodSnapshot + var mv map[string]map[string]types.MethodSnapshot if *v == nil { - mv = map[string]map[string]*types.MethodSnapshot{} + mv = map[string]map[string]types.MethodSnapshot{} } else { mv = *v } for key, value := range shape { - var parsedVal map[string]*types.MethodSnapshot - if err := awsRestjson1_deserializeDocumentMapOfMethodSnapshot(&parsedVal, value); err != nil { + var parsedVal map[string]types.MethodSnapshot + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentMapOfMethodSnapshot(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -24864,7 +24928,7 @@ func awsRestjson1_deserializeDocumentQuotaSettings(v **types.QuotaSettings, valu if err != nil { return err } - sv.Limit = ptr.Int32(int32(i64)) + sv.Limit = int32(i64) } case "offset": @@ -24877,7 +24941,7 @@ func awsRestjson1_deserializeDocumentQuotaSettings(v **types.QuotaSettings, valu if err != nil { return err } - sv.Offset = ptr.Int32(int32(i64)) + sv.Offset = int32(i64) } case "period": @@ -24926,7 +24990,7 @@ func awsRestjson1_deserializeDocumentRequestValidator(v **types.RequestValidator if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -24935,7 +24999,7 @@ func awsRestjson1_deserializeDocumentRequestValidator(v **types.RequestValidator if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "validateRequestBody": @@ -24944,7 +25008,7 @@ func awsRestjson1_deserializeDocumentRequestValidator(v **types.RequestValidator if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ValidateRequestBody = &jtv + sv.ValidateRequestBody = jtv } case "validateRequestParameters": @@ -24953,7 +25017,7 @@ func awsRestjson1_deserializeDocumentRequestValidator(v **types.RequestValidator if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ValidateRequestParameters = &jtv + sv.ValidateRequestParameters = jtv } default: @@ -24993,7 +25057,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "parentId": @@ -25002,7 +25066,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParentId = &jtv + sv.ParentId = ptr.String(jtv) } case "path": @@ -25011,7 +25075,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "pathPart": @@ -25020,7 +25084,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PathPart = &jtv + sv.PathPart = ptr.String(jtv) } case "resourceMethods": @@ -25092,7 +25156,7 @@ func awsRestjson1_deserializeDocumentRestApi(v **types.RestApi, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "disableExecuteApiEndpoint": @@ -25101,7 +25165,7 @@ func awsRestjson1_deserializeDocumentRestApi(v **types.RestApi, value interface{ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = &jtv + sv.DisableExecuteApiEndpoint = jtv } case "endpointConfiguration": @@ -25115,7 +25179,7 @@ func awsRestjson1_deserializeDocumentRestApi(v **types.RestApi, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "minimumCompressionSize": @@ -25137,7 +25201,7 @@ func awsRestjson1_deserializeDocumentRestApi(v **types.RestApi, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "policy": @@ -25146,7 +25210,7 @@ func awsRestjson1_deserializeDocumentRestApi(v **types.RestApi, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "tags": @@ -25160,7 +25224,7 @@ func awsRestjson1_deserializeDocumentRestApi(v **types.RestApi, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "warnings": @@ -25205,7 +25269,7 @@ func awsRestjson1_deserializeDocumentSdkConfigurationProperty(v **types.SdkConfi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DefaultValue = &jtv + sv.DefaultValue = ptr.String(jtv) } case "description": @@ -25214,7 +25278,7 @@ func awsRestjson1_deserializeDocumentSdkConfigurationProperty(v **types.SdkConfi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "friendlyName": @@ -25223,7 +25287,7 @@ func awsRestjson1_deserializeDocumentSdkConfigurationProperty(v **types.SdkConfi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FriendlyName = &jtv + sv.FriendlyName = ptr.String(jtv) } case "name": @@ -25232,7 +25296,7 @@ func awsRestjson1_deserializeDocumentSdkConfigurationProperty(v **types.SdkConfi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "required": @@ -25241,7 +25305,7 @@ func awsRestjson1_deserializeDocumentSdkConfigurationProperty(v **types.SdkConfi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Required = &jtv + sv.Required = jtv } default: @@ -25286,7 +25350,7 @@ func awsRestjson1_deserializeDocumentSdkType(v **types.SdkType, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "friendlyName": @@ -25295,7 +25359,7 @@ func awsRestjson1_deserializeDocumentSdkType(v **types.SdkType, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FriendlyName = &jtv + sv.FriendlyName = ptr.String(jtv) } case "id": @@ -25304,7 +25368,7 @@ func awsRestjson1_deserializeDocumentSdkType(v **types.SdkType, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -25344,7 +25408,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryAfterSeconds": @@ -25353,7 +25417,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RetryAfterSeconds = &jtv + sv.RetryAfterSeconds = ptr.String(jtv) } default: @@ -25398,7 +25462,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CacheClusterEnabled = &jtv + sv.CacheClusterEnabled = jtv } case "cacheClusterSize": @@ -25430,7 +25494,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientCertificateId = &jtv + sv.ClientCertificateId = ptr.String(jtv) } case "createdDate": @@ -25452,7 +25516,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "description": @@ -25461,7 +25525,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "documentationVersion": @@ -25470,7 +25534,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DocumentationVersion = &jtv + sv.DocumentationVersion = ptr.String(jtv) } case "lastUpdatedDate": @@ -25497,7 +25561,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StageName = &jtv + sv.StageName = ptr.String(jtv) } case "tags": @@ -25511,7 +25575,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.TracingEnabled = &jtv + sv.TracingEnabled = jtv } case "variables": @@ -25525,7 +25589,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.WebAclArn = &jtv + sv.WebAclArn = ptr.String(jtv) } default: @@ -25569,7 +25633,7 @@ func awsRestjson1_deserializeDocumentThrottleSettings(v **types.ThrottleSettings if err != nil { return err } - sv.BurstLimit = ptr.Int32(int32(i64)) + sv.BurstLimit = int32(i64) } case "rateLimit": @@ -25582,7 +25646,7 @@ func awsRestjson1_deserializeDocumentThrottleSettings(v **types.ThrottleSettings if err != nil { return err } - sv.RateLimit = &f64 + sv.RateLimit = f64 } default: @@ -25622,7 +25686,7 @@ func awsRestjson1_deserializeDocumentTlsConfig(v **types.TlsConfig, value interf if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.InsecureSkipVerification = &jtv + sv.InsecureSkipVerification = jtv } default: @@ -25662,7 +25726,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryAfterSeconds": @@ -25671,7 +25735,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RetryAfterSeconds = &jtv + sv.RetryAfterSeconds = ptr.String(jtv) } default: @@ -25711,7 +25775,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25756,7 +25820,7 @@ func awsRestjson1_deserializeDocumentUsagePlan(v **types.UsagePlan, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -25765,7 +25829,7 @@ func awsRestjson1_deserializeDocumentUsagePlan(v **types.UsagePlan, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -25774,7 +25838,7 @@ func awsRestjson1_deserializeDocumentUsagePlan(v **types.UsagePlan, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "productCode": @@ -25783,7 +25847,7 @@ func awsRestjson1_deserializeDocumentUsagePlan(v **types.UsagePlan, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ProductCode = &jtv + sv.ProductCode = ptr.String(jtv) } case "quota": @@ -25838,7 +25902,7 @@ func awsRestjson1_deserializeDocumentUsagePlanKey(v **types.UsagePlanKey, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -25847,7 +25911,7 @@ func awsRestjson1_deserializeDocumentUsagePlanKey(v **types.UsagePlanKey, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "type": @@ -25856,7 +25920,7 @@ func awsRestjson1_deserializeDocumentUsagePlanKey(v **types.UsagePlanKey, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "value": @@ -25865,7 +25929,7 @@ func awsRestjson1_deserializeDocumentUsagePlanKey(v **types.UsagePlanKey, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -25905,7 +25969,7 @@ func awsRestjson1_deserializeDocumentVpcLink(v **types.VpcLink, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -25914,7 +25978,7 @@ func awsRestjson1_deserializeDocumentVpcLink(v **types.VpcLink, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -25923,7 +25987,7 @@ func awsRestjson1_deserializeDocumentVpcLink(v **types.VpcLink, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -25941,7 +26005,7 @@ func awsRestjson1_deserializeDocumentVpcLink(v **types.VpcLink, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "tags": diff --git a/service/apigateway/go.mod b/service/apigateway/go.mod index 3fdb7e53c1a..82c27e51d08 100644 --- a/service/apigateway/go.mod +++ b/service/apigateway/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/apigateway go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/apigateway/serializers.go b/service/apigateway/serializers.go index 65de92049fd..fbc99ee3105 100644 --- a/service/apigateway/serializers.go +++ b/service/apigateway/serializers.go @@ -89,14 +89,14 @@ func awsRestjson1_serializeOpDocumentCreateApiKeyInput(v *CreateApiKeyInput, val ok.String(*v.Description) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } - if v.GenerateDistinctId != nil { + if v.GenerateDistinctId { ok := object.Key("generateDistinctId") - ok.Boolean(*v.GenerateDistinctId) + ok.Boolean(v.GenerateDistinctId) } if v.StageKeys != nil { @@ -183,13 +183,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateAuthorizerInput(v *CreateAuthoriz return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -309,13 +306,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateBasePathMappingInput(v *CreateBas return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainName must not be empty")} - } if err := encoder.SetURI("domainName").String(*v.DomainName); err != nil { return err } @@ -408,13 +402,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateDeploymentInput(v *CreateDeployme return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -536,13 +527,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateDocumentationPartInput(v *CreateD return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -632,13 +620,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateDocumentationVersionInput(v *Crea return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -865,13 +850,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateModelInput(v *CreateModelInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -964,13 +946,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateRequestValidatorInput(v *CreateRe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -983,14 +962,14 @@ func awsRestjson1_serializeOpDocumentCreateRequestValidatorInput(v *CreateReques object := value.Object() defer object.Close() - if v.ValidateRequestBody != nil { + if v.ValidateRequestBody { ok := object.Key("validateRequestBody") - ok.Boolean(*v.ValidateRequestBody) + ok.Boolean(v.ValidateRequestBody) } - if v.ValidateRequestParameters != nil { + if v.ValidateRequestParameters { ok := object.Key("validateRequestParameters") - ok.Boolean(*v.ValidateRequestParameters) + ok.Boolean(v.ValidateRequestParameters) } return nil @@ -1058,25 +1037,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateResourceInput(v *CreateResourceIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ParentId == nil { + if v.ParentId == nil || len(*v.ParentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member parentId must not be empty")} } if v.ParentId != nil { - if len(*v.ParentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member parentId must not be empty")} - } if err := encoder.SetURI("parentId").String(*v.ParentId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -1184,9 +1157,9 @@ func awsRestjson1_serializeOpDocumentCreateRestApiInput(v *CreateRestApiInput, v ok.String(*v.Description) } - if v.DisableExecuteApiEndpoint != nil { + if v.DisableExecuteApiEndpoint { ok := object.Key("disableExecuteApiEndpoint") - ok.Boolean(*v.DisableExecuteApiEndpoint) + ok.Boolean(v.DisableExecuteApiEndpoint) } if v.EndpointConfiguration != nil { @@ -1283,13 +1256,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateStageInput(v *CreateStageInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -1302,9 +1272,9 @@ func awsRestjson1_serializeOpDocumentCreateStageInput(v *CreateStageInput, value object := value.Object() defer object.Close() - if v.CacheClusterEnabled != nil { + if v.CacheClusterEnabled { ok := object.Key("cacheClusterEnabled") - ok.Boolean(*v.CacheClusterEnabled) + ok.Boolean(v.CacheClusterEnabled) } if len(v.CacheClusterSize) > 0 { @@ -1346,9 +1316,9 @@ func awsRestjson1_serializeOpDocumentCreateStageInput(v *CreateStageInput, value } } - if v.TracingEnabled != nil { + if v.TracingEnabled { ok := object.Key("tracingEnabled") - ok.Boolean(*v.TracingEnabled) + ok.Boolean(v.TracingEnabled) } if v.Variables != nil { @@ -1524,13 +1494,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateUsagePlanKeyInput(v *CreateUsageP return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.UsagePlanId == nil { + if v.UsagePlanId == nil || len(*v.UsagePlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} } if v.UsagePlanId != nil { - if len(*v.UsagePlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} - } if err := encoder.SetURI("usagePlanId").String(*v.UsagePlanId); err != nil { return err } @@ -1694,13 +1661,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteApiKeyInput(v *DeleteApiKeyInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiKey == nil { + if v.ApiKey == nil || len(*v.ApiKey) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiKey must not be empty")} } if v.ApiKey != nil { - if len(*v.ApiKey) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiKey must not be empty")} - } if err := encoder.SetURI("apiKey").String(*v.ApiKey); err != nil { return err } @@ -1760,25 +1724,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAuthorizerInput(v *DeleteAuthoriz return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthorizerId == nil { + if v.AuthorizerId == nil || len(*v.AuthorizerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerId must not be empty")} } if v.AuthorizerId != nil { - if len(*v.AuthorizerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerId must not be empty")} - } if err := encoder.SetURI("authorizerId").String(*v.AuthorizerId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -1838,25 +1796,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBasePathMappingInput(v *DeleteBas return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BasePath == nil { + if v.BasePath == nil || len(*v.BasePath) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member basePath must not be empty")} } if v.BasePath != nil { - if len(*v.BasePath) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member basePath must not be empty")} - } if err := encoder.SetURI("basePath").String(*v.BasePath); err != nil { return err } } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainName must not be empty")} - } if err := encoder.SetURI("domainName").String(*v.DomainName); err != nil { return err } @@ -1916,13 +1868,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteClientCertificateInput(v *DeleteC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClientCertificateId == nil { + if v.ClientCertificateId == nil || len(*v.ClientCertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member clientCertificateId must not be empty")} } if v.ClientCertificateId != nil { - if len(*v.ClientCertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member clientCertificateId must not be empty")} - } if err := encoder.SetURI("clientCertificateId").String(*v.ClientCertificateId); err != nil { return err } @@ -1982,25 +1931,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDeploymentInput(v *DeleteDeployme return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeploymentId == nil { + if v.DeploymentId == nil || len(*v.DeploymentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member deploymentId must not be empty")} } if v.DeploymentId != nil { - if len(*v.DeploymentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member deploymentId must not be empty")} - } if err := encoder.SetURI("deploymentId").String(*v.DeploymentId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -2060,25 +2003,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDocumentationPartInput(v *DeleteD return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DocumentationPartId == nil { + if v.DocumentationPartId == nil || len(*v.DocumentationPartId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member documentationPartId must not be empty")} } if v.DocumentationPartId != nil { - if len(*v.DocumentationPartId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member documentationPartId must not be empty")} - } if err := encoder.SetURI("documentationPartId").String(*v.DocumentationPartId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -2138,25 +2075,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDocumentationVersionInput(v *Dele return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DocumentationVersion == nil { + if v.DocumentationVersion == nil || len(*v.DocumentationVersion) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member documentationVersion must not be empty")} } if v.DocumentationVersion != nil { - if len(*v.DocumentationVersion) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member documentationVersion must not be empty")} - } if err := encoder.SetURI("documentationVersion").String(*v.DocumentationVersion); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -2216,13 +2147,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDomainNameInput(v *DeleteDomainNa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainName must not be empty")} - } if err := encoder.SetURI("domainName").String(*v.DomainName); err != nil { return err } @@ -2286,21 +2214,15 @@ func awsRestjson1_serializeOpHttpBindingsDeleteGatewayResponseInput(v *DeleteGat return &smithy.SerializationError{Err: fmt.Errorf("input member responseType must not be empty")} } if len(v.ResponseType) > 0 { - if len(string(v.ResponseType)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member responseType must not be empty")} - } if err := encoder.SetURI("responseType").String(string(v.ResponseType)); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -2360,37 +2282,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteIntegrationInput(v *DeleteIntegra return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -2450,49 +2363,37 @@ func awsRestjson1_serializeOpHttpBindingsDeleteIntegrationResponseInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StatusCode == nil { + if v.StatusCode == nil || len(*v.StatusCode) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} } if v.StatusCode != nil { - if len(*v.StatusCode) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} - } if err := encoder.SetURI("statusCode").String(*v.StatusCode); err != nil { return err } @@ -2552,37 +2453,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMethodInput(v *DeleteMethodInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -2642,49 +2534,37 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMethodResponseInput(v *DeleteMeth return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StatusCode == nil { + if v.StatusCode == nil || len(*v.StatusCode) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} } if v.StatusCode != nil { - if len(*v.StatusCode) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} - } if err := encoder.SetURI("statusCode").String(*v.StatusCode); err != nil { return err } @@ -2744,25 +2624,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteModelInput(v *DeleteModelInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ModelName == nil { + if v.ModelName == nil || len(*v.ModelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member modelName must not be empty")} } if v.ModelName != nil { - if len(*v.ModelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member modelName must not be empty")} - } if err := encoder.SetURI("modelName").String(*v.ModelName); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -2822,25 +2696,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRequestValidatorInput(v *DeleteRe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RequestValidatorId == nil { + if v.RequestValidatorId == nil || len(*v.RequestValidatorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member requestValidatorId must not be empty")} } if v.RequestValidatorId != nil { - if len(*v.RequestValidatorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member requestValidatorId must not be empty")} - } if err := encoder.SetURI("requestValidatorId").String(*v.RequestValidatorId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -2900,25 +2768,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteResourceInput(v *DeleteResourceIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -2978,13 +2840,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRestApiInput(v *DeleteRestApiInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -3044,25 +2903,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteStageInput(v *DeleteStageInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StageName == nil { + if v.StageName == nil || len(*v.StageName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} } if v.StageName != nil { - if len(*v.StageName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} - } if err := encoder.SetURI("stageName").String(*v.StageName); err != nil { return err } @@ -3122,13 +2975,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteUsagePlanInput(v *DeleteUsagePlan return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.UsagePlanId == nil { + if v.UsagePlanId == nil || len(*v.UsagePlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} } if v.UsagePlanId != nil { - if len(*v.UsagePlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} - } if err := encoder.SetURI("usagePlanId").String(*v.UsagePlanId); err != nil { return err } @@ -3188,25 +3038,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteUsagePlanKeyInput(v *DeleteUsageP return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.KeyId == nil { + if v.KeyId == nil || len(*v.KeyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member keyId must not be empty")} } if v.KeyId != nil { - if len(*v.KeyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member keyId must not be empty")} - } if err := encoder.SetURI("keyId").String(*v.KeyId); err != nil { return err } } - if v.UsagePlanId == nil { + if v.UsagePlanId == nil || len(*v.UsagePlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} } if v.UsagePlanId != nil { - if len(*v.UsagePlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} - } if err := encoder.SetURI("usagePlanId").String(*v.UsagePlanId); err != nil { return err } @@ -3266,13 +3110,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVpcLinkInput(v *DeleteVpcLinkInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VpcLinkId == nil { + if v.VpcLinkId == nil || len(*v.VpcLinkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vpcLinkId must not be empty")} } if v.VpcLinkId != nil { - if len(*v.VpcLinkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vpcLinkId must not be empty")} - } if err := encoder.SetURI("vpcLinkId").String(*v.VpcLinkId); err != nil { return err } @@ -3332,25 +3173,19 @@ func awsRestjson1_serializeOpHttpBindingsFlushStageAuthorizersCacheInput(v *Flus return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StageName == nil { + if v.StageName == nil || len(*v.StageName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} } if v.StageName != nil { - if len(*v.StageName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} - } if err := encoder.SetURI("stageName").String(*v.StageName); err != nil { return err } @@ -3410,25 +3245,19 @@ func awsRestjson1_serializeOpHttpBindingsFlushStageCacheInput(v *FlushStageCache return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StageName == nil { + if v.StageName == nil || len(*v.StageName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} } if v.StageName != nil { - if len(*v.StageName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} - } if err := encoder.SetURI("stageName").String(*v.StageName); err != nil { return err } @@ -3618,13 +3447,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApiKeyInput(v *GetApiKeyInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiKey == nil { + if v.ApiKey == nil || len(*v.ApiKey) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiKey must not be empty")} } if v.ApiKey != nil { - if len(*v.ApiKey) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiKey must not be empty")} - } if err := encoder.SetURI("apiKey").String(*v.ApiKey); err != nil { return err } @@ -3762,25 +3588,19 @@ func awsRestjson1_serializeOpHttpBindingsGetAuthorizerInput(v *GetAuthorizerInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthorizerId == nil { + if v.AuthorizerId == nil || len(*v.AuthorizerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerId must not be empty")} } if v.AuthorizerId != nil { - if len(*v.AuthorizerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerId must not be empty")} - } if err := encoder.SetURI("authorizerId").String(*v.AuthorizerId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -3848,13 +3668,10 @@ func awsRestjson1_serializeOpHttpBindingsGetAuthorizersInput(v *GetAuthorizersIn encoder.SetQuery("position").String(*v.Position) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -3914,25 +3731,19 @@ func awsRestjson1_serializeOpHttpBindingsGetBasePathMappingInput(v *GetBasePathM return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BasePath == nil { + if v.BasePath == nil || len(*v.BasePath) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member basePath must not be empty")} } if v.BasePath != nil { - if len(*v.BasePath) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member basePath must not be empty")} - } if err := encoder.SetURI("basePath").String(*v.BasePath); err != nil { return err } } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainName must not be empty")} - } if err := encoder.SetURI("domainName").String(*v.DomainName); err != nil { return err } @@ -3992,13 +3803,10 @@ func awsRestjson1_serializeOpHttpBindingsGetBasePathMappingsInput(v *GetBasePath return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainName must not be empty")} - } if err := encoder.SetURI("domainName").String(*v.DomainName); err != nil { return err } @@ -4066,13 +3874,10 @@ func awsRestjson1_serializeOpHttpBindingsGetClientCertificateInput(v *GetClientC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClientCertificateId == nil { + if v.ClientCertificateId == nil || len(*v.ClientCertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member clientCertificateId must not be empty")} } if v.ClientCertificateId != nil { - if len(*v.ClientCertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member clientCertificateId must not be empty")} - } if err := encoder.SetURI("clientCertificateId").String(*v.ClientCertificateId); err != nil { return err } @@ -4194,13 +3999,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDeploymentInput(v *GetDeploymentInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeploymentId == nil { + if v.DeploymentId == nil || len(*v.DeploymentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member deploymentId must not be empty")} } if v.DeploymentId != nil { - if len(*v.DeploymentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member deploymentId must not be empty")} - } if err := encoder.SetURI("deploymentId").String(*v.DeploymentId); err != nil { return err } @@ -4208,20 +4010,14 @@ func awsRestjson1_serializeOpHttpBindingsGetDeploymentInput(v *GetDeploymentInpu if v.Embed != nil { for i := range v.Embed { - if v.Embed[i] == nil { - continue - } - encoder.AddQuery("embed").String(*v.Embed[i]) + encoder.AddQuery("embed").String(v.Embed[i]) } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -4289,13 +4085,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDeploymentsInput(v *GetDeploymentsIn encoder.SetQuery("position").String(*v.Position) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -4355,25 +4148,19 @@ func awsRestjson1_serializeOpHttpBindingsGetDocumentationPartInput(v *GetDocumen return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DocumentationPartId == nil { + if v.DocumentationPartId == nil || len(*v.DocumentationPartId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member documentationPartId must not be empty")} } if v.DocumentationPartId != nil { - if len(*v.DocumentationPartId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member documentationPartId must not be empty")} - } if err := encoder.SetURI("documentationPartId").String(*v.DocumentationPartId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -4453,13 +4240,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDocumentationPartsInput(v *GetDocume encoder.SetQuery("position").String(*v.Position) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -4523,25 +4307,19 @@ func awsRestjson1_serializeOpHttpBindingsGetDocumentationVersionInput(v *GetDocu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DocumentationVersion == nil { + if v.DocumentationVersion == nil || len(*v.DocumentationVersion) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member documentationVersion must not be empty")} } if v.DocumentationVersion != nil { - if len(*v.DocumentationVersion) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member documentationVersion must not be empty")} - } if err := encoder.SetURI("documentationVersion").String(*v.DocumentationVersion); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -4609,13 +4387,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDocumentationVersionsInput(v *GetDoc encoder.SetQuery("position").String(*v.Position) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -4675,13 +4450,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDomainNameInput(v *GetDomainNameInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainName must not be empty")} - } if err := encoder.SetURI("domainName").String(*v.DomainName); err != nil { return err } @@ -4814,44 +4586,33 @@ func awsRestjson1_serializeOpHttpBindingsGetExportInput(v *GetExportInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Accepts != nil { + if v.Accepts != nil && len(*v.Accepts) > 0 { locationName := "Accept" - if len(*v.Accepts) > 0 { - encoder.SetHeader(locationName).String(*v.Accepts) - } + encoder.SetHeader(locationName).String(*v.Accepts) } - if v.ExportType == nil { + if v.ExportType == nil || len(*v.ExportType) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member exportType must not be empty")} } if v.ExportType != nil { - if len(*v.ExportType) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member exportType must not be empty")} - } if err := encoder.SetURI("exportType").String(*v.ExportType); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StageName == nil { + if v.StageName == nil || len(*v.StageName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} } if v.StageName != nil { - if len(*v.StageName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} - } if err := encoder.SetURI("stageName").String(*v.StageName); err != nil { return err } @@ -4929,21 +4690,15 @@ func awsRestjson1_serializeOpHttpBindingsGetGatewayResponseInput(v *GetGatewayRe return &smithy.SerializationError{Err: fmt.Errorf("input member responseType must not be empty")} } if len(v.ResponseType) > 0 { - if len(string(v.ResponseType)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member responseType must not be empty")} - } if err := encoder.SetURI("responseType").String(string(v.ResponseType)); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -5011,13 +4766,10 @@ func awsRestjson1_serializeOpHttpBindingsGetGatewayResponsesInput(v *GetGatewayR encoder.SetQuery("position").String(*v.Position) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -5077,37 +4829,28 @@ func awsRestjson1_serializeOpHttpBindingsGetIntegrationInput(v *GetIntegrationIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -5167,49 +4910,37 @@ func awsRestjson1_serializeOpHttpBindingsGetIntegrationResponseInput(v *GetInteg return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StatusCode == nil { + if v.StatusCode == nil || len(*v.StatusCode) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} } if v.StatusCode != nil { - if len(*v.StatusCode) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} - } if err := encoder.SetURI("statusCode").String(*v.StatusCode); err != nil { return err } @@ -5269,37 +5000,28 @@ func awsRestjson1_serializeOpHttpBindingsGetMethodInput(v *GetMethodInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -5359,49 +5081,37 @@ func awsRestjson1_serializeOpHttpBindingsGetMethodResponseInput(v *GetMethodResp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StatusCode == nil { + if v.StatusCode == nil || len(*v.StatusCode) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} } if v.StatusCode != nil { - if len(*v.StatusCode) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} - } if err := encoder.SetURI("statusCode").String(*v.StatusCode); err != nil { return err } @@ -5461,29 +5171,23 @@ func awsRestjson1_serializeOpHttpBindingsGetModelInput(v *GetModelInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Flatten != nil { - encoder.SetQuery("flatten").Boolean(*v.Flatten) + if v.Flatten { + encoder.SetQuery("flatten").Boolean(v.Flatten) } - if v.ModelName == nil { + if v.ModelName == nil || len(*v.ModelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member modelName must not be empty")} } if v.ModelName != nil { - if len(*v.ModelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member modelName must not be empty")} - } if err := encoder.SetURI("modelName").String(*v.ModelName); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -5551,13 +5255,10 @@ func awsRestjson1_serializeOpHttpBindingsGetModelsInput(v *GetModelsInput, encod encoder.SetQuery("position").String(*v.Position) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -5617,25 +5318,19 @@ func awsRestjson1_serializeOpHttpBindingsGetModelTemplateInput(v *GetModelTempla return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ModelName == nil { + if v.ModelName == nil || len(*v.ModelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member modelName must not be empty")} } if v.ModelName != nil { - if len(*v.ModelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member modelName must not be empty")} - } if err := encoder.SetURI("modelName").String(*v.ModelName); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -5695,25 +5390,19 @@ func awsRestjson1_serializeOpHttpBindingsGetRequestValidatorInput(v *GetRequestV return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RequestValidatorId == nil { + if v.RequestValidatorId == nil || len(*v.RequestValidatorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member requestValidatorId must not be empty")} } if v.RequestValidatorId != nil { - if len(*v.RequestValidatorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member requestValidatorId must not be empty")} - } if err := encoder.SetURI("requestValidatorId").String(*v.RequestValidatorId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -5781,13 +5470,10 @@ func awsRestjson1_serializeOpHttpBindingsGetRequestValidatorsInput(v *GetRequest encoder.SetQuery("position").String(*v.Position) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -5849,32 +5535,23 @@ func awsRestjson1_serializeOpHttpBindingsGetResourceInput(v *GetResourceInput, e if v.Embed != nil { for i := range v.Embed { - if v.Embed[i] == nil { - continue - } - encoder.AddQuery("embed").String(*v.Embed[i]) + encoder.AddQuery("embed").String(v.Embed[i]) } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -5936,10 +5613,7 @@ func awsRestjson1_serializeOpHttpBindingsGetResourcesInput(v *GetResourcesInput, if v.Embed != nil { for i := range v.Embed { - if v.Embed[i] == nil { - continue - } - encoder.AddQuery("embed").String(*v.Embed[i]) + encoder.AddQuery("embed").String(v.Embed[i]) } } @@ -5951,13 +5625,10 @@ func awsRestjson1_serializeOpHttpBindingsGetResourcesInput(v *GetResourcesInput, encoder.SetQuery("position").String(*v.Position) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -6017,13 +5688,10 @@ func awsRestjson1_serializeOpHttpBindingsGetRestApiInput(v *GetRestApiInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -6156,37 +5824,28 @@ func awsRestjson1_serializeOpHttpBindingsGetSdkInput(v *GetSdkInput, encoder *ht return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.SdkType == nil { + if v.SdkType == nil || len(*v.SdkType) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member sdkType must not be empty")} } if v.SdkType != nil { - if len(*v.SdkType) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member sdkType must not be empty")} - } if err := encoder.SetURI("sdkType").String(*v.SdkType); err != nil { return err } } - if v.StageName == nil { + if v.StageName == nil || len(*v.StageName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} } if v.StageName != nil { - if len(*v.StageName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} - } if err := encoder.SetURI("stageName").String(*v.StageName); err != nil { return err } @@ -6260,13 +5919,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSdkTypeInput(v *GetSdkTypeInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} - } if err := encoder.SetURI("id").String(*v.Id); err != nil { return err } @@ -6388,25 +6044,19 @@ func awsRestjson1_serializeOpHttpBindingsGetStageInput(v *GetStageInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StageName == nil { + if v.StageName == nil || len(*v.StageName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} } if v.StageName != nil { - if len(*v.StageName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} - } if err := encoder.SetURI("stageName").String(*v.StageName); err != nil { return err } @@ -6470,13 +6120,10 @@ func awsRestjson1_serializeOpHttpBindingsGetStagesInput(v *GetStagesInput, encod encoder.SetQuery("deploymentId").String(*v.DeploymentId) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -6544,13 +6191,10 @@ func awsRestjson1_serializeOpHttpBindingsGetTagsInput(v *GetTagsInput, encoder * encoder.SetQuery("position").String(*v.Position) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -6630,13 +6274,10 @@ func awsRestjson1_serializeOpHttpBindingsGetUsageInput(v *GetUsageInput, encoder encoder.SetQuery("startDate").String(*v.StartDate) } - if v.UsagePlanId == nil { + if v.UsagePlanId == nil || len(*v.UsagePlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} } if v.UsagePlanId != nil { - if len(*v.UsagePlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} - } if err := encoder.SetURI("usagePlanId").String(*v.UsagePlanId); err != nil { return err } @@ -6696,13 +6337,10 @@ func awsRestjson1_serializeOpHttpBindingsGetUsagePlanInput(v *GetUsagePlanInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.UsagePlanId == nil { + if v.UsagePlanId == nil || len(*v.UsagePlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} } if v.UsagePlanId != nil { - if len(*v.UsagePlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} - } if err := encoder.SetURI("usagePlanId").String(*v.UsagePlanId); err != nil { return err } @@ -6762,25 +6400,19 @@ func awsRestjson1_serializeOpHttpBindingsGetUsagePlanKeyInput(v *GetUsagePlanKey return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.KeyId == nil { + if v.KeyId == nil || len(*v.KeyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member keyId must not be empty")} } if v.KeyId != nil { - if len(*v.KeyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member keyId must not be empty")} - } if err := encoder.SetURI("keyId").String(*v.KeyId); err != nil { return err } } - if v.UsagePlanId == nil { + if v.UsagePlanId == nil || len(*v.UsagePlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} } if v.UsagePlanId != nil { - if len(*v.UsagePlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} - } if err := encoder.SetURI("usagePlanId").String(*v.UsagePlanId); err != nil { return err } @@ -6852,13 +6484,10 @@ func awsRestjson1_serializeOpHttpBindingsGetUsagePlanKeysInput(v *GetUsagePlanKe encoder.SetQuery("position").String(*v.Position) } - if v.UsagePlanId == nil { + if v.UsagePlanId == nil || len(*v.UsagePlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} } if v.UsagePlanId != nil { - if len(*v.UsagePlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} - } if err := encoder.SetURI("usagePlanId").String(*v.UsagePlanId); err != nil { return err } @@ -6984,13 +6613,10 @@ func awsRestjson1_serializeOpHttpBindingsGetVpcLinkInput(v *GetVpcLinkInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VpcLinkId == nil { + if v.VpcLinkId == nil || len(*v.VpcLinkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vpcLinkId must not be empty")} } if v.VpcLinkId != nil { - if len(*v.VpcLinkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vpcLinkId must not be empty")} - } if err := encoder.SetURI("vpcLinkId").String(*v.VpcLinkId); err != nil { return err } @@ -7112,8 +6738,8 @@ func awsRestjson1_serializeOpHttpBindingsImportApiKeysInput(v *ImportApiKeysInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FailOnWarnings != nil { - encoder.SetQuery("failonwarnings").Boolean(*v.FailOnWarnings) + if v.FailOnWarnings { + encoder.SetQuery("failonwarnings").Boolean(v.FailOnWarnings) } if len(v.Format) > 0 { @@ -7174,21 +6800,18 @@ func awsRestjson1_serializeOpHttpBindingsImportDocumentationPartsInput(v *Import return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FailOnWarnings != nil { - encoder.SetQuery("failonwarnings").Boolean(*v.FailOnWarnings) + if v.FailOnWarnings { + encoder.SetQuery("failonwarnings").Boolean(v.FailOnWarnings) } if len(v.Mode) > 0 { encoder.SetQuery("mode").String(string(v.Mode)) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -7259,8 +6882,8 @@ func awsRestjson1_serializeOpHttpBindingsImportRestApiInput(v *ImportRestApiInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FailOnWarnings != nil { - encoder.SetQuery("failonwarnings").Boolean(*v.FailOnWarnings) + if v.FailOnWarnings { + encoder.SetQuery("failonwarnings").Boolean(v.FailOnWarnings) } return nil @@ -7346,21 +6969,15 @@ func awsRestjson1_serializeOpHttpBindingsPutGatewayResponseInput(v *PutGatewayRe return &smithy.SerializationError{Err: fmt.Errorf("input member responseType must not be empty")} } if len(v.ResponseType) > 0 { - if len(string(v.ResponseType)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member responseType must not be empty")} - } if err := encoder.SetURI("responseType").String(string(v.ResponseType)); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -7457,37 +7074,28 @@ func awsRestjson1_serializeOpHttpBindingsPutIntegrationInput(v *PutIntegrationIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -7643,49 +7251,37 @@ func awsRestjson1_serializeOpHttpBindingsPutIntegrationResponseInput(v *PutInteg return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StatusCode == nil { + if v.StatusCode == nil || len(*v.StatusCode) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} } if v.StatusCode != nil { - if len(*v.StatusCode) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} - } if err := encoder.SetURI("statusCode").String(*v.StatusCode); err != nil { return err } @@ -7787,37 +7383,28 @@ func awsRestjson1_serializeOpHttpBindingsPutMethodInput(v *PutMethodInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -7830,9 +7417,9 @@ func awsRestjson1_serializeOpDocumentPutMethodInput(v *PutMethodInput, value smi object := value.Object() defer object.Close() - if v.ApiKeyRequired != nil { + if v.ApiKeyRequired { ok := object.Key("apiKeyRequired") - ok.Boolean(*v.ApiKeyRequired) + ok.Boolean(v.ApiKeyRequired) } if v.AuthorizationScopes != nil { @@ -7941,49 +7528,37 @@ func awsRestjson1_serializeOpHttpBindingsPutMethodResponseInput(v *PutMethodResp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StatusCode == nil { + if v.StatusCode == nil || len(*v.StatusCode) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} } if v.StatusCode != nil { - if len(*v.StatusCode) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} - } if err := encoder.SetURI("statusCode").String(*v.StatusCode); err != nil { return err } @@ -8075,21 +7650,18 @@ func awsRestjson1_serializeOpHttpBindingsPutRestApiInput(v *PutRestApiInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FailOnWarnings != nil { - encoder.SetQuery("failonwarnings").Boolean(*v.FailOnWarnings) + if v.FailOnWarnings { + encoder.SetQuery("failonwarnings").Boolean(v.FailOnWarnings) } if len(v.Mode) > 0 { encoder.SetQuery("mode").String(string(v.Mode)) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -8174,13 +7746,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -8265,25 +7834,19 @@ func awsRestjson1_serializeOpHttpBindingsTestInvokeAuthorizerInput(v *TestInvoke return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthorizerId == nil { + if v.AuthorizerId == nil || len(*v.AuthorizerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerId must not be empty")} } if v.AuthorizerId != nil { - if len(*v.AuthorizerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerId must not be empty")} - } if err := encoder.SetURI("authorizerId").String(*v.AuthorizerId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -8399,37 +7962,28 @@ func awsRestjson1_serializeOpHttpBindingsTestInvokeMethodInput(v *TestInvokeMeth return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -8532,13 +8086,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -8546,10 +8097,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -8693,13 +8241,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateApiKeyInput(v *UpdateApiKeyInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiKey == nil { + if v.ApiKey == nil || len(*v.ApiKey) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiKey must not be empty")} } if v.ApiKey != nil { - if len(*v.ApiKey) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiKey must not be empty")} - } if err := encoder.SetURI("apiKey").String(*v.ApiKey); err != nil { return err } @@ -8784,25 +8329,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAuthorizerInput(v *UpdateAuthoriz return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthorizerId == nil { + if v.AuthorizerId == nil || len(*v.AuthorizerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerId must not be empty")} } if v.AuthorizerId != nil { - if len(*v.AuthorizerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerId must not be empty")} - } if err := encoder.SetURI("authorizerId").String(*v.AuthorizerId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -8887,25 +8426,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateBasePathMappingInput(v *UpdateBas return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BasePath == nil { + if v.BasePath == nil || len(*v.BasePath) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member basePath must not be empty")} } if v.BasePath != nil { - if len(*v.BasePath) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member basePath must not be empty")} - } if err := encoder.SetURI("basePath").String(*v.BasePath); err != nil { return err } } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainName must not be empty")} - } if err := encoder.SetURI("domainName").String(*v.DomainName); err != nil { return err } @@ -8990,13 +8523,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateClientCertificateInput(v *UpdateC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClientCertificateId == nil { + if v.ClientCertificateId == nil || len(*v.ClientCertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member clientCertificateId must not be empty")} } if v.ClientCertificateId != nil { - if len(*v.ClientCertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member clientCertificateId must not be empty")} - } if err := encoder.SetURI("clientCertificateId").String(*v.ClientCertificateId); err != nil { return err } @@ -9081,25 +8611,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDeploymentInput(v *UpdateDeployme return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeploymentId == nil { + if v.DeploymentId == nil || len(*v.DeploymentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member deploymentId must not be empty")} } if v.DeploymentId != nil { - if len(*v.DeploymentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member deploymentId must not be empty")} - } if err := encoder.SetURI("deploymentId").String(*v.DeploymentId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -9184,25 +8708,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDocumentationPartInput(v *UpdateD return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DocumentationPartId == nil { + if v.DocumentationPartId == nil || len(*v.DocumentationPartId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member documentationPartId must not be empty")} } if v.DocumentationPartId != nil { - if len(*v.DocumentationPartId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member documentationPartId must not be empty")} - } if err := encoder.SetURI("documentationPartId").String(*v.DocumentationPartId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -9287,25 +8805,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDocumentationVersionInput(v *Upda return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DocumentationVersion == nil { + if v.DocumentationVersion == nil || len(*v.DocumentationVersion) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member documentationVersion must not be empty")} } if v.DocumentationVersion != nil { - if len(*v.DocumentationVersion) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member documentationVersion must not be empty")} - } if err := encoder.SetURI("documentationVersion").String(*v.DocumentationVersion); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -9390,13 +8902,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDomainNameInput(v *UpdateDomainNa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainName must not be empty")} - } if err := encoder.SetURI("domainName").String(*v.DomainName); err != nil { return err } @@ -9485,21 +8994,15 @@ func awsRestjson1_serializeOpHttpBindingsUpdateGatewayResponseInput(v *UpdateGat return &smithy.SerializationError{Err: fmt.Errorf("input member responseType must not be empty")} } if len(v.ResponseType) > 0 { - if len(string(v.ResponseType)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member responseType must not be empty")} - } if err := encoder.SetURI("responseType").String(string(v.ResponseType)); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -9584,37 +9087,28 @@ func awsRestjson1_serializeOpHttpBindingsUpdateIntegrationInput(v *UpdateIntegra return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -9699,49 +9193,37 @@ func awsRestjson1_serializeOpHttpBindingsUpdateIntegrationResponseInput(v *Updat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StatusCode == nil { + if v.StatusCode == nil || len(*v.StatusCode) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} } if v.StatusCode != nil { - if len(*v.StatusCode) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} - } if err := encoder.SetURI("statusCode").String(*v.StatusCode); err != nil { return err } @@ -9826,37 +9308,28 @@ func awsRestjson1_serializeOpHttpBindingsUpdateMethodInput(v *UpdateMethodInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -9941,49 +9414,37 @@ func awsRestjson1_serializeOpHttpBindingsUpdateMethodResponseInput(v *UpdateMeth return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HttpMethod == nil { + if v.HttpMethod == nil || len(*v.HttpMethod) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} } if v.HttpMethod != nil { - if len(*v.HttpMethod) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member httpMethod must not be empty")} - } if err := encoder.SetURI("httpMethod").String(*v.HttpMethod); err != nil { return err } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StatusCode == nil { + if v.StatusCode == nil || len(*v.StatusCode) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} } if v.StatusCode != nil { - if len(*v.StatusCode) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member statusCode must not be empty")} - } if err := encoder.SetURI("statusCode").String(*v.StatusCode); err != nil { return err } @@ -10068,25 +9529,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateModelInput(v *UpdateModelInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ModelName == nil { + if v.ModelName == nil || len(*v.ModelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member modelName must not be empty")} } if v.ModelName != nil { - if len(*v.ModelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member modelName must not be empty")} - } if err := encoder.SetURI("modelName").String(*v.ModelName); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -10171,25 +9626,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRequestValidatorInput(v *UpdateRe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RequestValidatorId == nil { + if v.RequestValidatorId == nil || len(*v.RequestValidatorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member requestValidatorId must not be empty")} } if v.RequestValidatorId != nil { - if len(*v.RequestValidatorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member requestValidatorId must not be empty")} - } if err := encoder.SetURI("requestValidatorId").String(*v.RequestValidatorId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -10274,25 +9723,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateResourceInput(v *UpdateResourceIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceId must not be empty")} - } if err := encoder.SetURI("resourceId").String(*v.ResourceId); err != nil { return err } } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -10377,13 +9820,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRestApiInput(v *UpdateRestApiInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } @@ -10468,25 +9908,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateStageInput(v *UpdateStageInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestApiId == nil { + if v.RestApiId == nil || len(*v.RestApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} } if v.RestApiId != nil { - if len(*v.RestApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member restApiId must not be empty")} - } if err := encoder.SetURI("restApiId").String(*v.RestApiId); err != nil { return err } } - if v.StageName == nil { + if v.StageName == nil || len(*v.StageName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} } if v.StageName != nil { - if len(*v.StageName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member stageName must not be empty")} - } if err := encoder.SetURI("stageName").String(*v.StageName); err != nil { return err } @@ -10571,25 +10005,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUsageInput(v *UpdateUsageInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.KeyId == nil { + if v.KeyId == nil || len(*v.KeyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member keyId must not be empty")} } if v.KeyId != nil { - if len(*v.KeyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member keyId must not be empty")} - } if err := encoder.SetURI("keyId").String(*v.KeyId); err != nil { return err } } - if v.UsagePlanId == nil { + if v.UsagePlanId == nil || len(*v.UsagePlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} } if v.UsagePlanId != nil { - if len(*v.UsagePlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} - } if err := encoder.SetURI("usagePlanId").String(*v.UsagePlanId); err != nil { return err } @@ -10674,13 +10102,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUsagePlanInput(v *UpdateUsagePlan return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.UsagePlanId == nil { + if v.UsagePlanId == nil || len(*v.UsagePlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} } if v.UsagePlanId != nil { - if len(*v.UsagePlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member usagePlanId must not be empty")} - } if err := encoder.SetURI("usagePlanId").String(*v.UsagePlanId); err != nil { return err } @@ -10765,13 +10190,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVpcLinkInput(v *UpdateVpcLinkInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VpcLinkId == nil { + if v.VpcLinkId == nil || len(*v.VpcLinkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vpcLinkId must not be empty")} } if v.VpcLinkId != nil { - if len(*v.VpcLinkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vpcLinkId must not be empty")} - } if err := encoder.SetURI("vpcLinkId").String(*v.VpcLinkId); err != nil { return err } @@ -10827,9 +10249,9 @@ func awsRestjson1_serializeDocumentCanarySettings(v *types.CanarySettings, value ok.String(*v.DeploymentId) } - if v.PercentTraffic != nil { + if v.PercentTraffic != 0 { ok := object.Key("percentTraffic") - ok.Double(*v.PercentTraffic) + ok.Double(v.PercentTraffic) } if v.StageVariableOverrides != nil { @@ -10839,9 +10261,9 @@ func awsRestjson1_serializeDocumentCanarySettings(v *types.CanarySettings, value } } - if v.UseStageCache != nil { + if v.UseStageCache { ok := object.Key("useStageCache") - ok.Boolean(*v.UseStageCache) + ok.Boolean(v.UseStageCache) } return nil @@ -10851,9 +10273,9 @@ func awsRestjson1_serializeDocumentDeploymentCanarySettings(v *types.DeploymentC object := value.Object() defer object.Close() - if v.PercentTraffic != nil { + if v.PercentTraffic != 0 { ok := object.Key("percentTraffic") - ok.Double(*v.PercentTraffic) + ok.Double(v.PercentTraffic) } if v.StageVariableOverrides != nil { @@ -10863,9 +10285,9 @@ func awsRestjson1_serializeDocumentDeploymentCanarySettings(v *types.DeploymentC } } - if v.UseStageCache != nil { + if v.UseStageCache { ok := object.Key("useStageCache") - ok.Boolean(*v.UseStageCache) + ok.Boolean(v.UseStageCache) } return nil @@ -10924,34 +10346,26 @@ func awsRestjson1_serializeDocumentEndpointConfiguration(v *types.EndpointConfig return nil } -func awsRestjson1_serializeDocumentListOfApiStage(v []*types.ApiStage, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfApiStage(v []types.ApiStage, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentApiStage(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentApiStage(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentListOfARNs(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfARNs(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -10967,95 +10381,75 @@ func awsRestjson1_serializeDocumentListOfEndpointType(v []types.EndpointType, va return nil } -func awsRestjson1_serializeDocumentListOfPatchOperation(v []*types.PatchOperation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfPatchOperation(v []types.PatchOperation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentPatchOperation(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentPatchOperation(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentListOfStageKeys(v []*types.StageKey, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfStageKeys(v []types.StageKey, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentStageKey(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentStageKey(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentListOfString(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfString(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentMapOfApiStageThrottleSettings(v map[string]*types.ThrottleSettings, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOfApiStageThrottleSettings(v map[string]types.ThrottleSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentThrottleSettings(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentThrottleSettings(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentMapOfStringToBoolean(v map[string]*bool, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOfStringToBoolean(v map[string]bool, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.Boolean(*v[key]) + om.Boolean(v[key]) } return nil } -func awsRestjson1_serializeDocumentMapOfStringToList(v map[string][]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOfStringToList(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsRestjson1_serializeDocumentListOfString(v[key], om); err != nil { @@ -11065,17 +10459,13 @@ func awsRestjson1_serializeDocumentMapOfStringToList(v map[string][]*string, val return nil } -func awsRestjson1_serializeDocumentMapOfStringToString(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOfStringToString(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -11128,14 +10518,14 @@ func awsRestjson1_serializeDocumentQuotaSettings(v *types.QuotaSettings, value s object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } - if v.Offset != nil { + if v.Offset != 0 { ok := object.Key("offset") - ok.Integer(*v.Offset) + ok.Integer(v.Offset) } if len(v.Period) > 0 { @@ -11167,14 +10557,14 @@ func awsRestjson1_serializeDocumentThrottleSettings(v *types.ThrottleSettings, v object := value.Object() defer object.Close() - if v.BurstLimit != nil { + if v.BurstLimit != 0 { ok := object.Key("burstLimit") - ok.Integer(*v.BurstLimit) + ok.Integer(v.BurstLimit) } - if v.RateLimit != nil { + if v.RateLimit != 0 { ok := object.Key("rateLimit") - ok.Double(*v.RateLimit) + ok.Double(v.RateLimit) } return nil @@ -11184,9 +10574,9 @@ func awsRestjson1_serializeDocumentTlsConfig(v *types.TlsConfig, value smithyjso object := value.Object() defer object.Close() - if v.InsecureSkipVerification != nil { + if v.InsecureSkipVerification { ok := object.Key("insecureSkipVerification") - ok.Boolean(*v.InsecureSkipVerification) + ok.Boolean(v.InsecureSkipVerification) } return nil diff --git a/service/apigateway/types/types.go b/service/apigateway/types/types.go index adf71497745..5875da0e3b4 100644 --- a/service/apigateway/types/types.go +++ b/service/apigateway/types/types.go @@ -40,7 +40,7 @@ type ApiKey struct { Description *string // Specifies whether the API Key can be used by callers. - Enabled *bool + Enabled bool // The identifier of the API Key. Id *string @@ -52,10 +52,10 @@ type ApiKey struct { Name *string // A list of Stage resources that are associated with the ApiKey resource. - StageKeys []*string + StageKeys []string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // The value of the API Key. Value *string @@ -72,7 +72,7 @@ type ApiStage struct { // Map containing method level throttling information for API stage in a usage // plan. - Throttle map[string]*ThrottleSettings + Throttle map[string]ThrottleSettings } // Represents an authorization layer for methods. If enabled on a method, API @@ -154,7 +154,7 @@ type Authorizer struct { // authorizer. Each element is of this format: // arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN // or REQUEST authorizer, this is not defined. - ProviderARNs []*string + ProviderARNs []string // The authorizer type. Valid values are TOKEN for a Lambda function using a single // authorization token submitted in a custom header, REQUEST for a Lambda function @@ -188,16 +188,16 @@ type CanarySettings struct { DeploymentId *string // The percent (0-100) of traffic diverted to a canary deployment. - PercentTraffic *float64 + PercentTraffic float64 // Stage variables overridden for a canary release deployment, including new stage // variables introduced in the canary. These stage variables are represented as a // string-to-string map between stage variable names and their values. - StageVariableOverrides map[string]*string + StageVariableOverrides map[string]string // A Boolean flag to indicate whether the canary deployment uses the stage cache or // not. - UseStageCache *bool + UseStageCache bool } // Represents a client certificate used to configure client-side SSL authentication @@ -225,7 +225,7 @@ type ClientCertificate struct { PemEncodedCertificate *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string } // An immutable representation of a RestApi resource that can be called by users @@ -241,7 +241,7 @@ type Deployment struct { // A summary of the RestApi at the date and time that the deployment resource was // created. - ApiSummary map[string]map[string]*MethodSnapshot + ApiSummary map[string]map[string]MethodSnapshot // The date and time that the deployment resource was created. CreatedDate *time.Time @@ -257,17 +257,17 @@ type Deployment struct { type DeploymentCanarySettings struct { // The percentage (0.0-100.0) of traffic routed to the canary deployment. - PercentTraffic *float64 + PercentTraffic float64 // A stage variable overrides used for the canary release deployment. They can // override existing stage variables or add new stage variables for the canary // release deployment. These stage variables are represented as a string-to-string // map between stage variable names and their values. - StageVariableOverrides map[string]*string + StageVariableOverrides map[string]string // A Boolean flag to indicate whether the canary release deployment uses the stage // cache or not. - UseStageCache *bool + UseStageCache bool } // A documentation part for a targeted API entity. A documentation part consists of @@ -454,7 +454,7 @@ type DomainName struct { SecurityPolicy SecurityPolicy // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string } // The endpoint configuration to indicate the types of endpoints an API (RestApi) @@ -469,7 +469,7 @@ type EndpointConfiguration struct { // A list of VpcEndpointIds of an API (RestApi) against which to create Route53 // ALIASes. It is only supported for PRIVATE endpoint type. - VpcEndpointIds []*string + VpcEndpointIds []string } // A gateway response of a given response type and status code, with optional @@ -522,15 +522,15 @@ type GatewayResponse struct { // A Boolean flag to indicate whether this GatewayResponse is the default gateway // response (true) or not (false). A default gateway response is one generated by // API Gateway without any customization by an API developer. - DefaultResponse *bool + DefaultResponse bool // Response parameters (paths, query strings and headers) of the GatewayResponse as // a string-to-string map of key-value pairs. - ResponseParameters map[string]*string + ResponseParameters map[string]string // Response templates of the GatewayResponse as a string-to-string map of key-value // pairs. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // The response type of the associated GatewayResponse. Valid values are // @@ -594,7 +594,7 @@ type Integration struct { // A list of request parameters whose values API Gateway caches. To be valid values // for cacheKeyParameters, these parameters must also be specified for // MethodrequestParameters. - CacheKeyParameters []*string + CacheKeyParameters []string // Specifies a group of related cached parameters. By default, API Gateway uses the // resource ID as the cacheNamespace. You can specify the same cacheNamespace @@ -672,7 +672,7 @@ type Integration struct { // $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n" // }, "statusCode": "200" }Creating an API // (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) - IntegrationResponses map[string]*IntegrationResponse + IntegrationResponses map[string]IntegrationResponse // Specifies how the method request body of an unmapped content type will be passed // through the integration request to the back end without transformation. A @@ -706,16 +706,16 @@ type Integration struct { // end. The method request parameter value must match the pattern of // method.request.{location}.{name}, where location is querystring, path, or header // and name must be a valid and unique method request parameter name. - RequestParameters map[string]*string + RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. - RequestTemplates map[string]*string + RequestTemplates map[string]string // Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 // milliseconds or 29 seconds. - TimeoutInMillis *int32 + TimeoutInMillis int32 // Specifies the TLS configuration for an integration. TlsConfig *TlsConfig @@ -815,12 +815,12 @@ type IntegrationResponse struct { // integration.response.body.{JSON-expression}, where name is a valid and unique // response header name and JSON-expression is a valid JSON expression without the // $ prefix. - ResponseParameters map[string]*string + ResponseParameters map[string]string // Specifies the templates used to transform the integration response body. // Response templates are represented as a key/value map, with a content-type as // the key and a template as the value. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // Specifies the regular expression (regex) pattern used to choose an integration // response based on the response from the back end. For example, if the success @@ -940,7 +940,7 @@ type Method struct { // invocation is not authorized. When the method scope is configured, the client // must provide an access token instead of an identity token for authorization // purposes. - AuthorizationScopes []*string + AuthorizationScopes []string // The method's authorization type. Valid values are NONE for open access, AWS_IAM // for using AWS IAM permissions, CUSTOM for using a custom authorizer, or @@ -1042,7 +1042,7 @@ type Method struct { // "method.response.header.operator": false, "method.response.header.operand_2": // false, "method.response.header.operand_1": false }, "statusCode": "200" }AWS CLI // (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-method-response.html) - MethodResponses map[string]*MethodResponse + MethodResponses map[string]MethodResponse // A human-friendly operation identifier for the method. For example, you can // assign the operationName of ListPets for the GET /pets method in the PetStore @@ -1052,7 +1052,7 @@ type Method struct { // A key-value map specifying data schemas, represented by Model resources, (as the // mapped value) of the request payloads of given content types (as the mapping // key). - RequestModels map[string]*string + RequestModels map[string]string // A key-value map defining required or optional method request parameters that can // be accepted by API Gateway. A key is a method request parameter name matching @@ -1062,7 +1062,7 @@ type Method struct { // required (true) or optional (false). The method request parameter names defined // here are available in Integration to be mapped to integration request parameters // or templates. - RequestParameters map[string]*bool + RequestParameters map[string]bool // The identifier of a RequestValidator for request validation. RequestValidatorId *string @@ -1104,7 +1104,7 @@ type MethodResponse struct { // Specifies the Model resources used for the response's content-type. Response // models are represented as a key/value map, with a content-type as the key and a // Model name as the value. - ResponseModels map[string]*string + ResponseModels map[string]string // A key-value map specifying required or optional response parameters that API // Gateway can send back to the caller. A key defines a method response header and @@ -1119,7 +1119,7 @@ type MethodResponse struct { // or a JSON expression from the back-end response payload in the form of // integration.response.body.{JSON-expression}, where JSON-expression is a valid // JSON expression without the $ prefix.) - ResponseParameters map[string]*bool + ResponseParameters map[string]bool // The method response's status code. StatusCode *string @@ -1131,23 +1131,23 @@ type MethodSetting struct { // Specifies whether the cached responses are encrypted. The PATCH path for this // setting is /{method_setting_key}/caching/dataEncrypted, and the value is a // Boolean. - CacheDataEncrypted *bool + CacheDataEncrypted bool // Specifies the time to live (TTL), in seconds, for cached responses. The higher // the TTL, the longer the response will be cached. The PATCH path for this setting // is /{method_setting_key}/caching/ttlInSeconds, and the value is an integer. - CacheTtlInSeconds *int32 + CacheTtlInSeconds int32 // Specifies whether responses should be cached and returned for requests. A cache // cluster must be enabled on the stage for responses to be cached. The PATCH path // for this setting is /{method_setting_key}/caching/enabled, and the value is a // Boolean. - CachingEnabled *bool + CachingEnabled bool // Specifies whether data trace logging is enabled for this method, which affects // the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this // setting is /{method_setting_key}/logging/dataTrace, and the value is a Boolean. - DataTraceEnabled *bool + DataTraceEnabled bool // Specifies the logging level for this method, which affects the log entries // pushed to Amazon CloudWatch Logs. The PATCH path for this setting is @@ -1159,21 +1159,21 @@ type MethodSetting struct { // Specifies whether Amazon CloudWatch metrics are enabled for this method. The // PATCH path for this setting is /{method_setting_key}/metrics/enabled, and the // value is a Boolean. - MetricsEnabled *bool + MetricsEnabled bool // Specifies whether authorization is required for a cache invalidation request. // The PATCH path for this setting is // /{method_setting_key}/caching/requireAuthorizationForCacheControl, and the value // is a Boolean. - RequireAuthorizationForCacheControl *bool + RequireAuthorizationForCacheControl bool // Specifies the throttling burst limit. The PATCH path for this setting is // /{method_setting_key}/throttling/burstLimit, and the value is an integer. - ThrottlingBurstLimit *int32 + ThrottlingBurstLimit int32 // Specifies the throttling rate limit. The PATCH path for this setting is // /{method_setting_key}/throttling/rateLimit, and the value is a double. - ThrottlingRateLimit *float64 + ThrottlingRateLimit float64 // Specifies how to handle unauthorized requests for cache invalidation. The PATCH // path for this setting is @@ -1187,7 +1187,7 @@ type MethodSetting struct { type MethodSnapshot struct { // Specifies whether the method requires a valid ApiKey. - ApiKeyRequired *bool + ApiKeyRequired bool // The method's authorization type. Valid values are NONE for open access, AWS_IAM // for using AWS IAM permissions, CUSTOM for using a custom authorizer, or @@ -1247,7 +1247,7 @@ type MutualTlsAuthentication struct { // Invalid certificates produce warnings. Mutual TLS is still enabled, but some // clients might not be able to access your API. To resolve warnings, upload a new // truststore to S3, and then update you domain name to use the new version. - TruststoreWarnings []*string + TruststoreWarnings []string } // If specified, API Gateway performs two-way authentication between the client and @@ -1311,11 +1311,11 @@ type PatchOperation struct { type QuotaSettings struct { // The maximum number of requests that can be made in a given time period. - Limit *int32 + Limit int32 // The number of requests subtracted from the given limit in the initial time // period. - Offset *int32 + Offset int32 // The time period in which the limit applies. Valid values are "DAY", "WEEK" or // "MONTH". @@ -1340,11 +1340,11 @@ type RequestValidator struct { // A Boolean flag to indicate whether to validate a request body according to the // configured Model schema. - ValidateRequestBody *bool + ValidateRequestBody bool // A Boolean flag to indicate whether to validate request parameters (true) or not // (false). - ValidateRequestParameters *bool + ValidateRequestParameters bool } // Represents an API resource. Create an API @@ -1442,7 +1442,7 @@ type Resource struct { // OPTIONS is enabled on the resource, you can follow the example here to get that // method. Just replace the GET of the last path segment in the request URL with // OPTIONS. - ResourceMethods map[string]*Method + ResourceMethods map[string]Method } // Represents a REST API. Create an API @@ -1461,7 +1461,7 @@ type RestApi struct { // The list of binary media types supported by the RestApi. By default, the RestApi // supports only UTF-8-encoded text payloads. - BinaryMediaTypes []*string + BinaryMediaTypes []string // The timestamp when the API was created. CreatedDate *time.Time @@ -1474,7 +1474,7 @@ type RestApi struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // The endpoint configuration of this RestApi showing the endpoint types of the // API. @@ -1499,14 +1499,14 @@ type RestApi struct { Policy *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. - Warnings []*string + Warnings []string } // A configuration property of an SDK type. @@ -1526,14 +1526,14 @@ type SdkConfigurationProperty struct { // A boolean flag of an SdkType configuration property to indicate if the // associated SDK configuration property is required (true) or not (false). - Required *bool + Required bool } // A type of SDK that API Gateway can generate. type SdkType struct { // A list of configuration properties of an SdkType. - ConfigurationProperties []*SdkConfigurationProperty + ConfigurationProperties []SdkConfigurationProperty // The description of an SdkType. Description *string @@ -1554,7 +1554,7 @@ type Stage struct { AccessLogSettings *AccessLogSettings // Specifies whether a cache cluster is enabled for the stage. - CacheClusterEnabled *bool + CacheClusterEnabled bool // The size of the cache cluster for the stage, if enabled. CacheClusterSize CacheClusterSize @@ -1587,7 +1587,7 @@ type Stage struct { // /{method_setting_key below) are method paths defined as // {resource_path}/{http_method} for an individual method override, or /\*/\* for // overriding all methods in the stage. - MethodSettings map[string]*MethodSetting + MethodSettings map[string]MethodSetting // The name of the stage is the first path segment in the Uniform Resource // Identifier (URI) of a call to API Gateway. Stage names can only contain @@ -1596,15 +1596,15 @@ type Stage struct { StageName *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Specifies whether active tracing with X-ray is enabled for the Stage. - TracingEnabled *bool + TracingEnabled bool // A map that defines the stage variables for a Stage resource. Variable names can // have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+. - Variables map[string]*string + Variables map[string]string // The ARN of the WebAcl associated with the Stage. WebAclArn *string @@ -1626,10 +1626,10 @@ type ThrottleSettings struct { // The API request burst limit, the maximum rate limit over a time ranging from one // to a few seconds, depending upon whether the underlying token bucket is at its // full capacity. - BurstLimit *int32 + BurstLimit int32 // The API request steady-state rate limit. - RateLimit *float64 + RateLimit float64 } type TlsConfig struct { @@ -1642,7 +1642,7 @@ type TlsConfig struct { // enabled, API Gateway still performs basic certificate validation, which includes // checking the certificate's expiration date, hostname, and presence of a root // certificate authority. Supported only for HTTP and HTTP_PROXY integrations. - InsecureSkipVerification *bool + InsecureSkipVerification bool } // Represents a usage plan than can specify who can assess associated API stages @@ -1653,7 +1653,7 @@ type TlsConfig struct { type UsagePlan struct { // The associated API stages of a usage plan. - ApiStages []*ApiStage + ApiStages []ApiStage // The description of a usage plan. Description *string @@ -1672,7 +1672,7 @@ type UsagePlan struct { Quota *QuotaSettings // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // The request throttle limits of a usage plan. Throttle *ThrottleSettings @@ -1726,9 +1726,9 @@ type VpcLink struct { StatusMessage *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // The ARN of the network load balancer of the VPC targeted by the VPC link. The // network load balancer must be owned by the same AWS account of the API owner. - TargetArns []*string + TargetArns []string } diff --git a/service/apigatewaymanagementapi/deserializers.go b/service/apigatewaymanagementapi/deserializers.go index 719373e2644..f4c958c01b9 100644 --- a/service/apigatewaymanagementapi/deserializers.go +++ b/service/apigatewaymanagementapi/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithytime "github.com/awslabs/smithy-go/time" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" @@ -256,7 +257,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectionOutput(v **GetConnectionOutp if err != nil { return err } - sv.ConnectedAt = &t + sv.ConnectedAt = ptr.Time(t) } case "identity": @@ -274,7 +275,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectionOutput(v **GetConnectionOutp if err != nil { return err } - sv.LastActiveAt = &t + sv.LastActiveAt = ptr.Time(t) } default: @@ -519,7 +520,7 @@ func awsRestjson1_deserializeDocumentIdentity(v **types.Identity, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceIp = &jtv + sv.SourceIp = ptr.String(jtv) } case "userAgent": @@ -528,7 +529,7 @@ func awsRestjson1_deserializeDocumentIdentity(v **types.Identity, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.UserAgent = &jtv + sv.UserAgent = ptr.String(jtv) } default: @@ -599,7 +600,7 @@ func awsRestjson1_deserializeDocumentPayloadTooLargeException(v **types.PayloadT if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/apigatewaymanagementapi/go.mod b/service/apigatewaymanagementapi/go.mod index 538c3ee53f4..4ea1edb0a20 100644 --- a/service/apigatewaymanagementapi/go.mod +++ b/service/apigatewaymanagementapi/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/apigatewaymanagementapi go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/apigatewaymanagementapi/serializers.go b/service/apigatewaymanagementapi/serializers.go index 28c54f7a280..12679ea6b37 100644 --- a/service/apigatewaymanagementapi/serializers.go +++ b/service/apigatewaymanagementapi/serializers.go @@ -63,13 +63,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteConnectionInput(v *DeleteConnecti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConnectionId == nil { + if v.ConnectionId == nil || len(*v.ConnectionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectionId must not be empty")} } if v.ConnectionId != nil { - if len(*v.ConnectionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectionId must not be empty")} - } if err := encoder.SetURI("ConnectionId").String(*v.ConnectionId); err != nil { return err } @@ -129,13 +126,10 @@ func awsRestjson1_serializeOpHttpBindingsGetConnectionInput(v *GetConnectionInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConnectionId == nil { + if v.ConnectionId == nil || len(*v.ConnectionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectionId must not be empty")} } if v.ConnectionId != nil { - if len(*v.ConnectionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectionId must not be empty")} - } if err := encoder.SetURI("ConnectionId").String(*v.ConnectionId); err != nil { return err } @@ -206,13 +200,10 @@ func awsRestjson1_serializeOpHttpBindingsPostToConnectionInput(v *PostToConnecti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConnectionId == nil { + if v.ConnectionId == nil || len(*v.ConnectionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectionId must not be empty")} } if v.ConnectionId != nil { - if len(*v.ConnectionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectionId must not be empty")} - } if err := encoder.SetURI("ConnectionId").String(*v.ConnectionId); err != nil { return err } diff --git a/service/apigatewayv2/api_op_CreateApi.go b/service/apigatewayv2/api_op_CreateApi.go index 0d00368b129..67c6054e222 100644 --- a/service/apigatewayv2/api_op_CreateApi.go +++ b/service/apigatewayv2/api_op_CreateApi.go @@ -68,11 +68,11 @@ type CreateApiInput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // Avoid validating models when creating a deployment. Supported only for WebSocket // APIs. - DisableSchemaValidation *bool + DisableSchemaValidation bool // This property is part of quick create. If you don't specify a routeKey, a // default route of $default is created. The $default route acts as a catch-all for @@ -88,7 +88,7 @@ type CreateApiInput struct { RouteSelectionExpression *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // This property is part of quick create. Quick create produces an API with an // integration, a default catch-all route, and a default stage which is configured @@ -112,7 +112,7 @@ type CreateApiOutput struct { // Specifies whether an API is managed by API Gateway. You can't update or delete a // managed API by using API Gateway. A managed API can be deleted only through the // tooling or service that created it. - ApiGatewayManaged *bool + ApiGatewayManaged bool // The API ID. ApiId *string @@ -136,16 +136,16 @@ type CreateApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // Avoid validating models when creating a deployment. Supported only for WebSocket // APIs. - DisableSchemaValidation *bool + DisableSchemaValidation bool // The validation information during API import. This may include particular // properties of your OpenAPI definition which are ignored during import. Supported // only for HTTP APIs. - ImportInfo []*string + ImportInfo []string // The name of the API. Name *string @@ -160,14 +160,14 @@ type CreateApiOutput struct { RouteSelectionExpression *string // A collection of tags associated with the API. - Tags map[string]*string + Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. - Warnings []*string + Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigatewayv2/api_op_CreateAuthorizer.go b/service/apigatewayv2/api_op_CreateAuthorizer.go index 700d55c276f..24b4b75088f 100644 --- a/service/apigatewayv2/api_op_CreateAuthorizer.go +++ b/service/apigatewayv2/api_op_CreateAuthorizer.go @@ -64,7 +64,7 @@ type CreateAuthorizerInput struct { // selections are supported, for example $request.header.Authorization. // // This member is required. - IdentitySource []*string + IdentitySource []string // The name of the authorizer. // @@ -87,7 +87,7 @@ type CreateAuthorizerInput struct { // 0, authorization caching is disabled. If it is greater than 0, API Gateway // caches authorizer responses. The maximum value is 3600, or 1 hour. Supported // only for HTTP API Lambda authorizers. - AuthorizerResultTtlInSeconds *int32 + AuthorizerResultTtlInSeconds int32 // The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, // this must be a well-formed Lambda function URI, for example, @@ -107,7 +107,7 @@ type CreateAuthorizerInput struct { // for HTTP APIs. To learn more, see Working with AWS Lambda authorizers for HTTP // APIs // (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html) - EnableSimpleResponses *bool + EnableSimpleResponses bool // This parameter is not used. IdentityValidationExpression *string @@ -138,7 +138,7 @@ type CreateAuthorizerOutput struct { // 0, authorization caching is disabled. If it is greater than 0, API Gateway // caches authorizer responses. The maximum value is 3600, or 1 hour. Supported // only for HTTP API Lambda authorizers. - AuthorizerResultTtlInSeconds *int32 + AuthorizerResultTtlInSeconds int32 // The authorizer type. Specify REQUEST for a Lambda function using incoming // request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP @@ -162,7 +162,7 @@ type CreateAuthorizerOutput struct { // policy. Supported only for HTTP APIs. To learn more, see Working with AWS Lambda // authorizers for HTTP APIs // (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html) - EnableSimpleResponses *bool + EnableSimpleResponses bool // The identity source for which authorization is requested. For a REQUEST // authorizer, this is optional. The value is a set of one or more mapping @@ -184,7 +184,7 @@ type CreateAuthorizerOutput struct { // For JWT, a single entry that specifies where to extract the JSON Web Token (JWT) // from inbound requests. Currently only header-based and query parameter-based // selections are supported, for example $request.header.Authorization. - IdentitySource []*string + IdentitySource []string // The validation expression does not apply to the REQUEST authorizer. IdentityValidationExpression *string diff --git a/service/apigatewayv2/api_op_CreateDeployment.go b/service/apigatewayv2/api_op_CreateDeployment.go index 5938484e52b..6af9daaedeb 100644 --- a/service/apigatewayv2/api_op_CreateDeployment.go +++ b/service/apigatewayv2/api_op_CreateDeployment.go @@ -46,7 +46,7 @@ type CreateDeploymentInput struct { type CreateDeploymentOutput struct { // Specifies whether a deployment was automatically released. - AutoDeployed *bool + AutoDeployed bool // The date and time when the Deployment resource was created. CreatedDate *time.Time diff --git a/service/apigatewayv2/api_op_CreateDomainName.go b/service/apigatewayv2/api_op_CreateDomainName.go index 79e0b6a7708..bff49a75423 100644 --- a/service/apigatewayv2/api_op_CreateDomainName.go +++ b/service/apigatewayv2/api_op_CreateDomainName.go @@ -36,13 +36,13 @@ type CreateDomainNameInput struct { DomainName *string // The domain name configurations. - DomainNameConfigurations []*types.DomainNameConfiguration + DomainNameConfigurations []types.DomainNameConfiguration // The mutual TLS authentication configuration for a custom domain name. MutualTlsAuthentication *types.MutualTlsAuthenticationInput // The collection of tags associated with a domain name. - Tags map[string]*string + Tags map[string]string } type CreateDomainNameOutput struct { @@ -54,13 +54,13 @@ type CreateDomainNameOutput struct { DomainName *string // The domain name configurations. - DomainNameConfigurations []*types.DomainNameConfiguration + DomainNameConfigurations []types.DomainNameConfiguration // The mutual TLS authentication configuration for a custom domain name. MutualTlsAuthentication *types.MutualTlsAuthentication // The collection of tags associated with a domain name. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigatewayv2/api_op_CreateIntegration.go b/service/apigatewayv2/api_op_CreateIntegration.go index e834c16033d..c54111ad36c 100644 --- a/service/apigatewayv2/api_op_CreateIntegration.go +++ b/service/apigatewayv2/api_op_CreateIntegration.go @@ -133,13 +133,13 @@ type CreateIntegrationInput struct { // variables, or context variables that are evaluated at runtime. To learn more, // see Working with AWS service integrations for HTTP APIs // (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services.html). - RequestParameters map[string]*string + RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. // Supported only for WebSocket APIs. - RequestTemplates map[string]*string + RequestTemplates map[string]string // The template selection expression for the integration. TemplateSelectionExpression *string @@ -147,7 +147,7 @@ type CreateIntegrationInput struct { // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between // 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for // WebSocket APIs and 30 seconds for HTTP APIs. - TimeoutInMillis *int32 + TimeoutInMillis int32 // The TLS configuration for a private integration. If you specify a TLS // configuration, private integration traffic uses the HTTPS protocol. Supported @@ -160,7 +160,7 @@ type CreateIntegrationOutput struct { // Specifies whether an integration is managed by API Gateway. If you created an // API using using quick create, the resulting integration is managed by API // Gateway. You can update a managed integration, but you can't delete it. - ApiGatewayManaged *bool + ApiGatewayManaged bool // The ID of the VPC link for a private integration. Supported only for HTTP APIs. ConnectionId *string @@ -265,13 +265,13 @@ type CreateIntegrationOutput struct { // variables, or context variables that are evaluated at runtime. To learn more, // see Working with AWS service integrations for HTTP APIs // (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services.html). - RequestParameters map[string]*string + RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. // Supported only for WebSocket APIs. - RequestTemplates map[string]*string + RequestTemplates map[string]string // The template selection expression for the integration. Supported only for // WebSocket APIs. @@ -280,7 +280,7 @@ type CreateIntegrationOutput struct { // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between // 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for // WebSocket APIs and 30 seconds for HTTP APIs. - TimeoutInMillis *int32 + TimeoutInMillis int32 // The TLS configuration for a private integration. If you specify a TLS // configuration, private integration traffic uses the HTTPS protocol. Supported diff --git a/service/apigatewayv2/api_op_CreateIntegrationResponse.go b/service/apigatewayv2/api_op_CreateIntegrationResponse.go index af14fb98e4e..7e5e5e405cf 100644 --- a/service/apigatewayv2/api_op_CreateIntegrationResponse.go +++ b/service/apigatewayv2/api_op_CreateIntegrationResponse.go @@ -65,12 +65,12 @@ type CreateIntegrationResponseInput struct { // integration.response.body.{JSON-expression}, where {name} is a valid and unique // response header name and {JSON-expression} is a valid JSON expression without // the $ prefix. - ResponseParameters map[string]*string + ResponseParameters map[string]string // The collection of response templates for the integration response as a // string-to-string map of key-value pairs. Response templates are represented as a // key/value map, with a content-type as the key and a template as the value. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // The template selection expression for the integration response. Supported only // for WebSocket APIs. @@ -106,12 +106,12 @@ type CreateIntegrationResponseOutput struct { // integration.response.body.{JSON-expression}, where name is a valid and unique // response header name and JSON-expression is a valid JSON expression without the // $ prefix. - ResponseParameters map[string]*string + ResponseParameters map[string]string // The collection of response templates for the integration response as a // string-to-string map of key-value pairs. Response templates are represented as a // key/value map, with a content-type as the key and a template as the value. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // The template selection expressions for the integration response. TemplateSelectionExpression *string diff --git a/service/apigatewayv2/api_op_CreateRoute.go b/service/apigatewayv2/api_op_CreateRoute.go index 08a3853bde7..942029ba6f3 100644 --- a/service/apigatewayv2/api_op_CreateRoute.go +++ b/service/apigatewayv2/api_op_CreateRoute.go @@ -42,10 +42,10 @@ type CreateRouteInput struct { // Specifies whether an API key is required for the route. Supported only for // WebSocket APIs. - ApiKeyRequired *bool + ApiKeyRequired bool // The authorization scopes supported by this route. - AuthorizationScopes []*string + AuthorizationScopes []string // The authorization type for the route. For WebSocket APIs, valid values are NONE // for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a @@ -66,10 +66,10 @@ type CreateRouteInput struct { OperationName *string // The request models for the route. Supported only for WebSocket APIs. - RequestModels map[string]*string + RequestModels map[string]string // The request parameters for the route. Supported only for WebSocket APIs. - RequestParameters map[string]*types.ParameterConstraints + RequestParameters map[string]types.ParameterConstraints // The route response selection expression for the route. Supported only for // WebSocket APIs. @@ -84,11 +84,11 @@ type CreateRouteOutput struct { // Specifies whether a route is managed by API Gateway. If you created an API using // quick create, the $default route is managed by API Gateway. You can't modify the // $default route key. - ApiGatewayManaged *bool + ApiGatewayManaged bool // Specifies whether an API key is required for this route. Supported only for // WebSocket APIs. - ApiKeyRequired *bool + ApiKeyRequired bool // A list of authorization scopes configured on a route. The scopes are used with a // JWT authorizer to authorize the method invocation. The authorization works by @@ -97,7 +97,7 @@ type CreateRouteOutput struct { // a claimed scope in the access token. Otherwise, the invocation is not // authorized. When the route scope is configured, the client must provide an // access token instead of an identity token for authorization purposes. - AuthorizationScopes []*string + AuthorizationScopes []string // The authorization type for the route. For WebSocket APIs, valid values are NONE // for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a @@ -118,10 +118,10 @@ type CreateRouteOutput struct { OperationName *string // The request models for the route. Supported only for WebSocket APIs. - RequestModels map[string]*string + RequestModels map[string]string // The request parameters for the route. Supported only for WebSocket APIs. - RequestParameters map[string]*types.ParameterConstraints + RequestParameters map[string]types.ParameterConstraints // The route ID. RouteId *string diff --git a/service/apigatewayv2/api_op_CreateRouteResponse.go b/service/apigatewayv2/api_op_CreateRouteResponse.go index 903ddee29f3..815bd388fc2 100644 --- a/service/apigatewayv2/api_op_CreateRouteResponse.go +++ b/service/apigatewayv2/api_op_CreateRouteResponse.go @@ -50,10 +50,10 @@ type CreateRouteResponseInput struct { ModelSelectionExpression *string // The response models for the route response. - ResponseModels map[string]*string + ResponseModels map[string]string // The route response parameters. - ResponseParameters map[string]*types.ParameterConstraints + ResponseParameters map[string]types.ParameterConstraints } type CreateRouteResponseOutput struct { @@ -63,10 +63,10 @@ type CreateRouteResponseOutput struct { ModelSelectionExpression *string // Represents the response models of a route response. - ResponseModels map[string]*string + ResponseModels map[string]string // Represents the response parameters of a route response. - ResponseParameters map[string]*types.ParameterConstraints + ResponseParameters map[string]types.ParameterConstraints // Represents the identifier of a route response. RouteResponseId *string diff --git a/service/apigatewayv2/api_op_CreateStage.go b/service/apigatewayv2/api_op_CreateStage.go index dba6ca0ec36..0ae4f7c7d89 100644 --- a/service/apigatewayv2/api_op_CreateStage.go +++ b/service/apigatewayv2/api_op_CreateStage.go @@ -46,7 +46,7 @@ type CreateStageInput struct { // Specifies whether updates to an API automatically trigger a new deployment. The // default value is false. - AutoDeploy *bool + AutoDeploy bool // The identifier of a client certificate for a Stage. Supported only for WebSocket // APIs. @@ -62,15 +62,15 @@ type CreateStageInput struct { Description *string // Route settings for the stage, by routeKey. - RouteSettings map[string]*types.RouteSettings + RouteSettings map[string]types.RouteSettings // A map that defines the stage variables for a Stage. Variable names can have // alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+. - StageVariables map[string]*string + StageVariables map[string]string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string } type CreateStageOutput struct { @@ -81,11 +81,11 @@ type CreateStageOutput struct { // Specifies whether a stage is managed by API Gateway. If you created an API using // quick create, the $default stage is managed by API Gateway. You can't modify the // $default stage. - ApiGatewayManaged *bool + ApiGatewayManaged bool // Specifies whether updates to an API automatically trigger a new deployment. The // default value is false. - AutoDeploy *bool + AutoDeploy bool // The identifier of a client certificate for a Stage. Supported only for WebSocket // APIs. @@ -112,7 +112,7 @@ type CreateStageOutput struct { LastUpdatedDate *time.Time // Route settings for the stage, by routeKey. - RouteSettings map[string]*types.RouteSettings + RouteSettings map[string]types.RouteSettings // The name of the stage. StageName *string @@ -120,10 +120,10 @@ type CreateStageOutput struct { // A map that defines the stage variables for a stage resource. Variable names can // have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+. - StageVariables map[string]*string + StageVariables map[string]string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigatewayv2/api_op_CreateVpcLink.go b/service/apigatewayv2/api_op_CreateVpcLink.go index 3f774cce226..73a4edee453 100644 --- a/service/apigatewayv2/api_op_CreateVpcLink.go +++ b/service/apigatewayv2/api_op_CreateVpcLink.go @@ -39,13 +39,13 @@ type CreateVpcLinkInput struct { // A list of subnet IDs to include in the VPC link. // // This member is required. - SubnetIds []*string + SubnetIds []string // A list of security group IDs for the VPC link. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of tags. - Tags map[string]*string + Tags map[string]string } type CreateVpcLinkOutput struct { @@ -57,13 +57,13 @@ type CreateVpcLinkOutput struct { Name *string // A list of security group IDs for the VPC link. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of subnet IDs to include in the VPC link. - SubnetIds []*string + SubnetIds []string // Tags for the VPC link. - Tags map[string]*string + Tags map[string]string // The ID of the VPC link. VpcLinkId *string diff --git a/service/apigatewayv2/api_op_ExportApi.go b/service/apigatewayv2/api_op_ExportApi.go index 9a4d22aa60f..92b596959de 100644 --- a/service/apigatewayv2/api_op_ExportApi.go +++ b/service/apigatewayv2/api_op_ExportApi.go @@ -50,7 +50,7 @@ type ExportApiInput struct { // Specifies whether to include API Gateway extensions // (https://docs.aws.amazon.com//apigateway/latest/developerguide/api-gateway-swagger-extensions.html) // in the exported API definition. API Gateway extensions are included by default. - IncludeExtensions *bool + IncludeExtensions bool // The name of the API stage to export. If you don't specify this property, a // representation of the latest API configuration is exported. diff --git a/service/apigatewayv2/api_op_GetApi.go b/service/apigatewayv2/api_op_GetApi.go index 762325def5e..83a1ee5bd3b 100644 --- a/service/apigatewayv2/api_op_GetApi.go +++ b/service/apigatewayv2/api_op_GetApi.go @@ -46,7 +46,7 @@ type GetApiOutput struct { // Specifies whether an API is managed by API Gateway. You can't update or delete a // managed API by using API Gateway. A managed API can be deleted only through the // tooling or service that created it. - ApiGatewayManaged *bool + ApiGatewayManaged bool // The API ID. ApiId *string @@ -70,16 +70,16 @@ type GetApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // Avoid validating models when creating a deployment. Supported only for WebSocket // APIs. - DisableSchemaValidation *bool + DisableSchemaValidation bool // The validation information during API import. This may include particular // properties of your OpenAPI definition which are ignored during import. Supported // only for HTTP APIs. - ImportInfo []*string + ImportInfo []string // The name of the API. Name *string @@ -94,14 +94,14 @@ type GetApiOutput struct { RouteSelectionExpression *string // A collection of tags associated with the API. - Tags map[string]*string + Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. - Warnings []*string + Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigatewayv2/api_op_GetApiMappings.go b/service/apigatewayv2/api_op_GetApiMappings.go index 5c8710dd798..613802f533e 100644 --- a/service/apigatewayv2/api_op_GetApiMappings.go +++ b/service/apigatewayv2/api_op_GetApiMappings.go @@ -45,7 +45,7 @@ type GetApiMappingsInput struct { type GetApiMappingsOutput struct { // The elements from this collection. - Items []*types.ApiMapping + Items []types.ApiMapping // The next page of elements from this collection. Not valid for the last element // of the collection. diff --git a/service/apigatewayv2/api_op_GetApis.go b/service/apigatewayv2/api_op_GetApis.go index ee46f503ecd..5041716e3a4 100644 --- a/service/apigatewayv2/api_op_GetApis.go +++ b/service/apigatewayv2/api_op_GetApis.go @@ -40,7 +40,7 @@ type GetApisInput struct { type GetApisOutput struct { // The elements from this collection. - Items []*types.Api + Items []types.Api // The next page of elements from this collection. Not valid for the last element // of the collection. diff --git a/service/apigatewayv2/api_op_GetAuthorizer.go b/service/apigatewayv2/api_op_GetAuthorizer.go index c65c9fcac2c..4d262e5a20c 100644 --- a/service/apigatewayv2/api_op_GetAuthorizer.go +++ b/service/apigatewayv2/api_op_GetAuthorizer.go @@ -61,7 +61,7 @@ type GetAuthorizerOutput struct { // 0, authorization caching is disabled. If it is greater than 0, API Gateway // caches authorizer responses. The maximum value is 3600, or 1 hour. Supported // only for HTTP API Lambda authorizers. - AuthorizerResultTtlInSeconds *int32 + AuthorizerResultTtlInSeconds int32 // The authorizer type. Specify REQUEST for a Lambda function using incoming // request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP @@ -85,7 +85,7 @@ type GetAuthorizerOutput struct { // policy. Supported only for HTTP APIs. To learn more, see Working with AWS Lambda // authorizers for HTTP APIs // (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html) - EnableSimpleResponses *bool + EnableSimpleResponses bool // The identity source for which authorization is requested. For a REQUEST // authorizer, this is optional. The value is a set of one or more mapping @@ -107,7 +107,7 @@ type GetAuthorizerOutput struct { // For JWT, a single entry that specifies where to extract the JSON Web Token (JWT) // from inbound requests. Currently only header-based and query parameter-based // selections are supported, for example $request.header.Authorization. - IdentitySource []*string + IdentitySource []string // The validation expression does not apply to the REQUEST authorizer. IdentityValidationExpression *string diff --git a/service/apigatewayv2/api_op_GetAuthorizers.go b/service/apigatewayv2/api_op_GetAuthorizers.go index 956a922a7b7..c9245038423 100644 --- a/service/apigatewayv2/api_op_GetAuthorizers.go +++ b/service/apigatewayv2/api_op_GetAuthorizers.go @@ -45,7 +45,7 @@ type GetAuthorizersInput struct { type GetAuthorizersOutput struct { // The elements from this collection. - Items []*types.Authorizer + Items []types.Authorizer // The next page of elements from this collection. Not valid for the last element // of the collection. diff --git a/service/apigatewayv2/api_op_GetDeployment.go b/service/apigatewayv2/api_op_GetDeployment.go index 8783e6a01bc..1ad9666865e 100644 --- a/service/apigatewayv2/api_op_GetDeployment.go +++ b/service/apigatewayv2/api_op_GetDeployment.go @@ -44,7 +44,7 @@ type GetDeploymentInput struct { type GetDeploymentOutput struct { // Specifies whether a deployment was automatically released. - AutoDeployed *bool + AutoDeployed bool // The date and time when the Deployment resource was created. CreatedDate *time.Time diff --git a/service/apigatewayv2/api_op_GetDeployments.go b/service/apigatewayv2/api_op_GetDeployments.go index 2575e217bc2..5e6815259aa 100644 --- a/service/apigatewayv2/api_op_GetDeployments.go +++ b/service/apigatewayv2/api_op_GetDeployments.go @@ -45,7 +45,7 @@ type GetDeploymentsInput struct { type GetDeploymentsOutput struct { // The elements from this collection. - Items []*types.Deployment + Items []types.Deployment // The next page of elements from this collection. Not valid for the last element // of the collection. diff --git a/service/apigatewayv2/api_op_GetDomainName.go b/service/apigatewayv2/api_op_GetDomainName.go index 2f5388b3bad..4518375fa4d 100644 --- a/service/apigatewayv2/api_op_GetDomainName.go +++ b/service/apigatewayv2/api_op_GetDomainName.go @@ -44,13 +44,13 @@ type GetDomainNameOutput struct { DomainName *string // The domain name configurations. - DomainNameConfigurations []*types.DomainNameConfiguration + DomainNameConfigurations []types.DomainNameConfiguration // The mutual TLS authentication configuration for a custom domain name. MutualTlsAuthentication *types.MutualTlsAuthentication // The collection of tags associated with a domain name. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigatewayv2/api_op_GetDomainNames.go b/service/apigatewayv2/api_op_GetDomainNames.go index fdacedfb635..cf7e7c8e434 100644 --- a/service/apigatewayv2/api_op_GetDomainNames.go +++ b/service/apigatewayv2/api_op_GetDomainNames.go @@ -40,7 +40,7 @@ type GetDomainNamesInput struct { type GetDomainNamesOutput struct { // The elements from this collection. - Items []*types.DomainName + Items []types.DomainName // The next page of elements from this collection. Not valid for the last element // of the collection. diff --git a/service/apigatewayv2/api_op_GetIntegration.go b/service/apigatewayv2/api_op_GetIntegration.go index 44839858647..0826075ed2a 100644 --- a/service/apigatewayv2/api_op_GetIntegration.go +++ b/service/apigatewayv2/api_op_GetIntegration.go @@ -45,7 +45,7 @@ type GetIntegrationOutput struct { // Specifies whether an integration is managed by API Gateway. If you created an // API using using quick create, the resulting integration is managed by API // Gateway. You can update a managed integration, but you can't delete it. - ApiGatewayManaged *bool + ApiGatewayManaged bool // The ID of the VPC link for a private integration. Supported only for HTTP APIs. ConnectionId *string @@ -150,13 +150,13 @@ type GetIntegrationOutput struct { // variables, or context variables that are evaluated at runtime. To learn more, // see Working with AWS service integrations for HTTP APIs // (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services.html). - RequestParameters map[string]*string + RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. // Supported only for WebSocket APIs. - RequestTemplates map[string]*string + RequestTemplates map[string]string // The template selection expression for the integration. Supported only for // WebSocket APIs. @@ -165,7 +165,7 @@ type GetIntegrationOutput struct { // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between // 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for // WebSocket APIs and 30 seconds for HTTP APIs. - TimeoutInMillis *int32 + TimeoutInMillis int32 // The TLS configuration for a private integration. If you specify a TLS // configuration, private integration traffic uses the HTTPS protocol. Supported diff --git a/service/apigatewayv2/api_op_GetIntegrationResponse.go b/service/apigatewayv2/api_op_GetIntegrationResponse.go index b0d12857cbc..e76b4d3aa8a 100644 --- a/service/apigatewayv2/api_op_GetIntegrationResponse.go +++ b/service/apigatewayv2/api_op_GetIntegrationResponse.go @@ -74,12 +74,12 @@ type GetIntegrationResponseOutput struct { // integration.response.body.{JSON-expression}, where name is a valid and unique // response header name and JSON-expression is a valid JSON expression without the // $ prefix. - ResponseParameters map[string]*string + ResponseParameters map[string]string // The collection of response templates for the integration response as a // string-to-string map of key-value pairs. Response templates are represented as a // key/value map, with a content-type as the key and a template as the value. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // The template selection expressions for the integration response. TemplateSelectionExpression *string diff --git a/service/apigatewayv2/api_op_GetIntegrationResponses.go b/service/apigatewayv2/api_op_GetIntegrationResponses.go index 59d4ac4f738..dac040488ea 100644 --- a/service/apigatewayv2/api_op_GetIntegrationResponses.go +++ b/service/apigatewayv2/api_op_GetIntegrationResponses.go @@ -50,7 +50,7 @@ type GetIntegrationResponsesInput struct { type GetIntegrationResponsesOutput struct { // The elements from this collection. - Items []*types.IntegrationResponse + Items []types.IntegrationResponse // The next page of elements from this collection. Not valid for the last element // of the collection. diff --git a/service/apigatewayv2/api_op_GetIntegrations.go b/service/apigatewayv2/api_op_GetIntegrations.go index 22b425828cc..bcbc79bab9e 100644 --- a/service/apigatewayv2/api_op_GetIntegrations.go +++ b/service/apigatewayv2/api_op_GetIntegrations.go @@ -45,7 +45,7 @@ type GetIntegrationsInput struct { type GetIntegrationsOutput struct { // The elements from this collection. - Items []*types.Integration + Items []types.Integration // The next page of elements from this collection. Not valid for the last element // of the collection. diff --git a/service/apigatewayv2/api_op_GetModels.go b/service/apigatewayv2/api_op_GetModels.go index a9cadf713d1..4dd6790a8d6 100644 --- a/service/apigatewayv2/api_op_GetModels.go +++ b/service/apigatewayv2/api_op_GetModels.go @@ -45,7 +45,7 @@ type GetModelsInput struct { type GetModelsOutput struct { // The elements from this collection. - Items []*types.Model + Items []types.Model // The next page of elements from this collection. Not valid for the last element // of the collection. diff --git a/service/apigatewayv2/api_op_GetRoute.go b/service/apigatewayv2/api_op_GetRoute.go index 39a468bb930..00336b93c3c 100644 --- a/service/apigatewayv2/api_op_GetRoute.go +++ b/service/apigatewayv2/api_op_GetRoute.go @@ -45,11 +45,11 @@ type GetRouteOutput struct { // Specifies whether a route is managed by API Gateway. If you created an API using // quick create, the $default route is managed by API Gateway. You can't modify the // $default route key. - ApiGatewayManaged *bool + ApiGatewayManaged bool // Specifies whether an API key is required for this route. Supported only for // WebSocket APIs. - ApiKeyRequired *bool + ApiKeyRequired bool // A list of authorization scopes configured on a route. The scopes are used with a // JWT authorizer to authorize the method invocation. The authorization works by @@ -58,7 +58,7 @@ type GetRouteOutput struct { // a claimed scope in the access token. Otherwise, the invocation is not // authorized. When the route scope is configured, the client must provide an // access token instead of an identity token for authorization purposes. - AuthorizationScopes []*string + AuthorizationScopes []string // The authorization type for the route. For WebSocket APIs, valid values are NONE // for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a @@ -79,10 +79,10 @@ type GetRouteOutput struct { OperationName *string // The request models for the route. Supported only for WebSocket APIs. - RequestModels map[string]*string + RequestModels map[string]string // The request parameters for the route. Supported only for WebSocket APIs. - RequestParameters map[string]*types.ParameterConstraints + RequestParameters map[string]types.ParameterConstraints // The route ID. RouteId *string diff --git a/service/apigatewayv2/api_op_GetRouteResponse.go b/service/apigatewayv2/api_op_GetRouteResponse.go index c2f5bb605f5..902967ae010 100644 --- a/service/apigatewayv2/api_op_GetRouteResponse.go +++ b/service/apigatewayv2/api_op_GetRouteResponse.go @@ -52,10 +52,10 @@ type GetRouteResponseOutput struct { ModelSelectionExpression *string // Represents the response models of a route response. - ResponseModels map[string]*string + ResponseModels map[string]string // Represents the response parameters of a route response. - ResponseParameters map[string]*types.ParameterConstraints + ResponseParameters map[string]types.ParameterConstraints // Represents the identifier of a route response. RouteResponseId *string diff --git a/service/apigatewayv2/api_op_GetRouteResponses.go b/service/apigatewayv2/api_op_GetRouteResponses.go index 6cccc75312a..f741bc609aa 100644 --- a/service/apigatewayv2/api_op_GetRouteResponses.go +++ b/service/apigatewayv2/api_op_GetRouteResponses.go @@ -50,7 +50,7 @@ type GetRouteResponsesInput struct { type GetRouteResponsesOutput struct { // The elements from this collection. - Items []*types.RouteResponse + Items []types.RouteResponse // The next page of elements from this collection. Not valid for the last element // of the collection. diff --git a/service/apigatewayv2/api_op_GetRoutes.go b/service/apigatewayv2/api_op_GetRoutes.go index da86e0fe95c..7d6ffb1c7e9 100644 --- a/service/apigatewayv2/api_op_GetRoutes.go +++ b/service/apigatewayv2/api_op_GetRoutes.go @@ -45,7 +45,7 @@ type GetRoutesInput struct { type GetRoutesOutput struct { // The elements from this collection. - Items []*types.Route + Items []types.Route // The next page of elements from this collection. Not valid for the last element // of the collection. diff --git a/service/apigatewayv2/api_op_GetStage.go b/service/apigatewayv2/api_op_GetStage.go index 61a21643562..3c1fcef6107 100644 --- a/service/apigatewayv2/api_op_GetStage.go +++ b/service/apigatewayv2/api_op_GetStage.go @@ -50,11 +50,11 @@ type GetStageOutput struct { // Specifies whether a stage is managed by API Gateway. If you created an API using // quick create, the $default stage is managed by API Gateway. You can't modify the // $default stage. - ApiGatewayManaged *bool + ApiGatewayManaged bool // Specifies whether updates to an API automatically trigger a new deployment. The // default value is false. - AutoDeploy *bool + AutoDeploy bool // The identifier of a client certificate for a Stage. Supported only for WebSocket // APIs. @@ -81,7 +81,7 @@ type GetStageOutput struct { LastUpdatedDate *time.Time // Route settings for the stage, by routeKey. - RouteSettings map[string]*types.RouteSettings + RouteSettings map[string]types.RouteSettings // The name of the stage. StageName *string @@ -89,10 +89,10 @@ type GetStageOutput struct { // A map that defines the stage variables for a stage resource. Variable names can // have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+. - StageVariables map[string]*string + StageVariables map[string]string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigatewayv2/api_op_GetStages.go b/service/apigatewayv2/api_op_GetStages.go index 610b156c46d..2a92354b672 100644 --- a/service/apigatewayv2/api_op_GetStages.go +++ b/service/apigatewayv2/api_op_GetStages.go @@ -45,7 +45,7 @@ type GetStagesInput struct { type GetStagesOutput struct { // The elements from this collection. - Items []*types.Stage + Items []types.Stage // The next page of elements from this collection. Not valid for the last element // of the collection. diff --git a/service/apigatewayv2/api_op_GetTags.go b/service/apigatewayv2/api_op_GetTags.go index 9b99c60e8f2..96df352a467 100644 --- a/service/apigatewayv2/api_op_GetTags.go +++ b/service/apigatewayv2/api_op_GetTags.go @@ -37,7 +37,7 @@ type GetTagsInput struct { type GetTagsOutput struct { // Represents a collection of tags associated with the resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigatewayv2/api_op_GetVpcLink.go b/service/apigatewayv2/api_op_GetVpcLink.go index 45dcaebb8b8..66dc89b998f 100644 --- a/service/apigatewayv2/api_op_GetVpcLink.go +++ b/service/apigatewayv2/api_op_GetVpcLink.go @@ -45,13 +45,13 @@ type GetVpcLinkOutput struct { Name *string // A list of security group IDs for the VPC link. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of subnet IDs to include in the VPC link. - SubnetIds []*string + SubnetIds []string // Tags for the VPC link. - Tags map[string]*string + Tags map[string]string // The ID of the VPC link. VpcLinkId *string diff --git a/service/apigatewayv2/api_op_GetVpcLinks.go b/service/apigatewayv2/api_op_GetVpcLinks.go index 6ffb6f33c2a..b32b1ec0342 100644 --- a/service/apigatewayv2/api_op_GetVpcLinks.go +++ b/service/apigatewayv2/api_op_GetVpcLinks.go @@ -40,7 +40,7 @@ type GetVpcLinksInput struct { type GetVpcLinksOutput struct { // A collection of VPC links. - Items []*types.VpcLink + Items []types.VpcLink // The next page of elements from this collection. Not valid for the last element // of the collection. diff --git a/service/apigatewayv2/api_op_ImportApi.go b/service/apigatewayv2/api_op_ImportApi.go index 3f297248ea2..2739e7e57d0 100644 --- a/service/apigatewayv2/api_op_ImportApi.go +++ b/service/apigatewayv2/api_op_ImportApi.go @@ -45,7 +45,7 @@ type ImportApiInput struct { // Specifies whether to rollback the API creation when a warning is encountered. By // default, API creation continues if a warning is encountered. - FailOnWarnings *bool + FailOnWarnings bool } type ImportApiOutput struct { @@ -58,7 +58,7 @@ type ImportApiOutput struct { // Specifies whether an API is managed by API Gateway. You can't update or delete a // managed API by using API Gateway. A managed API can be deleted only through the // tooling or service that created it. - ApiGatewayManaged *bool + ApiGatewayManaged bool // The API ID. ApiId *string @@ -82,16 +82,16 @@ type ImportApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // Avoid validating models when creating a deployment. Supported only for WebSocket // APIs. - DisableSchemaValidation *bool + DisableSchemaValidation bool // The validation information during API import. This may include particular // properties of your OpenAPI definition which are ignored during import. Supported // only for HTTP APIs. - ImportInfo []*string + ImportInfo []string // The name of the API. Name *string @@ -106,14 +106,14 @@ type ImportApiOutput struct { RouteSelectionExpression *string // A collection of tags associated with the API. - Tags map[string]*string + Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. - Warnings []*string + Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigatewayv2/api_op_ReimportApi.go b/service/apigatewayv2/api_op_ReimportApi.go index 9def68ed486..85d02c175c0 100644 --- a/service/apigatewayv2/api_op_ReimportApi.go +++ b/service/apigatewayv2/api_op_ReimportApi.go @@ -50,7 +50,7 @@ type ReimportApiInput struct { // Specifies whether to rollback the API creation when a warning is encountered. By // default, API creation continues if a warning is encountered. - FailOnWarnings *bool + FailOnWarnings bool } type ReimportApiOutput struct { @@ -63,7 +63,7 @@ type ReimportApiOutput struct { // Specifies whether an API is managed by API Gateway. You can't update or delete a // managed API by using API Gateway. A managed API can be deleted only through the // tooling or service that created it. - ApiGatewayManaged *bool + ApiGatewayManaged bool // The API ID. ApiId *string @@ -87,16 +87,16 @@ type ReimportApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // Avoid validating models when creating a deployment. Supported only for WebSocket // APIs. - DisableSchemaValidation *bool + DisableSchemaValidation bool // The validation information during API import. This may include particular // properties of your OpenAPI definition which are ignored during import. Supported // only for HTTP APIs. - ImportInfo []*string + ImportInfo []string // The name of the API. Name *string @@ -111,14 +111,14 @@ type ReimportApiOutput struct { RouteSelectionExpression *string // A collection of tags associated with the API. - Tags map[string]*string + Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. - Warnings []*string + Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigatewayv2/api_op_TagResource.go b/service/apigatewayv2/api_op_TagResource.go index 61565217441..b0940736786 100644 --- a/service/apigatewayv2/api_op_TagResource.go +++ b/service/apigatewayv2/api_op_TagResource.go @@ -35,7 +35,7 @@ type TagResourceInput struct { ResourceArn *string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/apigatewayv2/api_op_UntagResource.go b/service/apigatewayv2/api_op_UntagResource.go index c7119b0ec8b..ff210dd4cf2 100644 --- a/service/apigatewayv2/api_op_UntagResource.go +++ b/service/apigatewayv2/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The Tag keys to delete // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/apigatewayv2/api_op_UpdateApi.go b/service/apigatewayv2/api_op_UpdateApi.go index c7c6ff1b25b..a7380e831ba 100644 --- a/service/apigatewayv2/api_op_UpdateApi.go +++ b/service/apigatewayv2/api_op_UpdateApi.go @@ -62,11 +62,11 @@ type UpdateApiInput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // Avoid validating models when creating a deployment. Supported only for WebSocket // APIs. - DisableSchemaValidation *bool + DisableSchemaValidation bool // The name of the API. Name *string @@ -104,7 +104,7 @@ type UpdateApiOutput struct { // Specifies whether an API is managed by API Gateway. You can't update or delete a // managed API by using API Gateway. A managed API can be deleted only through the // tooling or service that created it. - ApiGatewayManaged *bool + ApiGatewayManaged bool // The API ID. ApiId *string @@ -128,16 +128,16 @@ type UpdateApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // Avoid validating models when creating a deployment. Supported only for WebSocket // APIs. - DisableSchemaValidation *bool + DisableSchemaValidation bool // The validation information during API import. This may include particular // properties of your OpenAPI definition which are ignored during import. Supported // only for HTTP APIs. - ImportInfo []*string + ImportInfo []string // The name of the API. Name *string @@ -152,14 +152,14 @@ type UpdateApiOutput struct { RouteSelectionExpression *string // A collection of tags associated with the API. - Tags map[string]*string + Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. - Warnings []*string + Warnings []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigatewayv2/api_op_UpdateAuthorizer.go b/service/apigatewayv2/api_op_UpdateAuthorizer.go index d38336d9de0..e2d41ff8586 100644 --- a/service/apigatewayv2/api_op_UpdateAuthorizer.go +++ b/service/apigatewayv2/api_op_UpdateAuthorizer.go @@ -56,7 +56,7 @@ type UpdateAuthorizerInput struct { // 0, authorization caching is disabled. If it is greater than 0, API Gateway // caches authorizer responses. The maximum value is 3600, or 1 hour. Supported // only for HTTP API Lambda authorizers. - AuthorizerResultTtlInSeconds *int32 + AuthorizerResultTtlInSeconds int32 // The authorizer type. Specify REQUEST for a Lambda function using incoming // request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP @@ -81,7 +81,7 @@ type UpdateAuthorizerInput struct { // for HTTP APIs. To learn more, see Working with AWS Lambda authorizers for HTTP // APIs // (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html) - EnableSimpleResponses *bool + EnableSimpleResponses bool // The identity source for which authorization is requested. For a REQUEST // authorizer, this is optional. The value is a set of one or more mapping @@ -103,7 +103,7 @@ type UpdateAuthorizerInput struct { // For JWT, a single entry that specifies where to extract the JSON Web Token (JWT) // from inbound requests. Currently only header-based and query parameter-based // selections are supported, for example $request.header.Authorization. - IdentitySource []*string + IdentitySource []string // This parameter is not used. IdentityValidationExpression *string @@ -137,7 +137,7 @@ type UpdateAuthorizerOutput struct { // 0, authorization caching is disabled. If it is greater than 0, API Gateway // caches authorizer responses. The maximum value is 3600, or 1 hour. Supported // only for HTTP API Lambda authorizers. - AuthorizerResultTtlInSeconds *int32 + AuthorizerResultTtlInSeconds int32 // The authorizer type. Specify REQUEST for a Lambda function using incoming // request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP @@ -161,7 +161,7 @@ type UpdateAuthorizerOutput struct { // policy. Supported only for HTTP APIs. To learn more, see Working with AWS Lambda // authorizers for HTTP APIs // (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html) - EnableSimpleResponses *bool + EnableSimpleResponses bool // The identity source for which authorization is requested. For a REQUEST // authorizer, this is optional. The value is a set of one or more mapping @@ -183,7 +183,7 @@ type UpdateAuthorizerOutput struct { // For JWT, a single entry that specifies where to extract the JSON Web Token (JWT) // from inbound requests. Currently only header-based and query parameter-based // selections are supported, for example $request.header.Authorization. - IdentitySource []*string + IdentitySource []string // The validation expression does not apply to the REQUEST authorizer. IdentityValidationExpression *string diff --git a/service/apigatewayv2/api_op_UpdateDeployment.go b/service/apigatewayv2/api_op_UpdateDeployment.go index 450691a40e2..3713354aec9 100644 --- a/service/apigatewayv2/api_op_UpdateDeployment.go +++ b/service/apigatewayv2/api_op_UpdateDeployment.go @@ -48,7 +48,7 @@ type UpdateDeploymentInput struct { type UpdateDeploymentOutput struct { // Specifies whether a deployment was automatically released. - AutoDeployed *bool + AutoDeployed bool // The date and time when the Deployment resource was created. CreatedDate *time.Time diff --git a/service/apigatewayv2/api_op_UpdateDomainName.go b/service/apigatewayv2/api_op_UpdateDomainName.go index 808fc7905ed..21795a6660a 100644 --- a/service/apigatewayv2/api_op_UpdateDomainName.go +++ b/service/apigatewayv2/api_op_UpdateDomainName.go @@ -36,7 +36,7 @@ type UpdateDomainNameInput struct { DomainName *string // The domain name configurations. - DomainNameConfigurations []*types.DomainNameConfiguration + DomainNameConfigurations []types.DomainNameConfiguration // The mutual TLS authentication configuration for a custom domain name. MutualTlsAuthentication *types.MutualTlsAuthenticationInput @@ -51,13 +51,13 @@ type UpdateDomainNameOutput struct { DomainName *string // The domain name configurations. - DomainNameConfigurations []*types.DomainNameConfiguration + DomainNameConfigurations []types.DomainNameConfiguration // The mutual TLS authentication configuration for a custom domain name. MutualTlsAuthentication *types.MutualTlsAuthentication // The collection of tags associated with a domain name. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigatewayv2/api_op_UpdateIntegration.go b/service/apigatewayv2/api_op_UpdateIntegration.go index 00463272386..374f7935ec2 100644 --- a/service/apigatewayv2/api_op_UpdateIntegration.go +++ b/service/apigatewayv2/api_op_UpdateIntegration.go @@ -136,13 +136,13 @@ type UpdateIntegrationInput struct { // variables, or context variables that are evaluated at runtime. To learn more, // see Working with AWS service integrations for HTTP APIs // (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services.html). - RequestParameters map[string]*string + RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. // Supported only for WebSocket APIs. - RequestTemplates map[string]*string + RequestTemplates map[string]string // The template selection expression for the integration. TemplateSelectionExpression *string @@ -150,7 +150,7 @@ type UpdateIntegrationInput struct { // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between // 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for // WebSocket APIs and 30 seconds for HTTP APIs. - TimeoutInMillis *int32 + TimeoutInMillis int32 // The TLS configuration for a private integration. If you specify a TLS // configuration, private integration traffic uses the HTTPS protocol. Supported @@ -163,7 +163,7 @@ type UpdateIntegrationOutput struct { // Specifies whether an integration is managed by API Gateway. If you created an // API using using quick create, the resulting integration is managed by API // Gateway. You can update a managed integration, but you can't delete it. - ApiGatewayManaged *bool + ApiGatewayManaged bool // The ID of the VPC link for a private integration. Supported only for HTTP APIs. ConnectionId *string @@ -268,13 +268,13 @@ type UpdateIntegrationOutput struct { // variables, or context variables that are evaluated at runtime. To learn more, // see Working with AWS service integrations for HTTP APIs // (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services.html). - RequestParameters map[string]*string + RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. // Supported only for WebSocket APIs. - RequestTemplates map[string]*string + RequestTemplates map[string]string // The template selection expression for the integration. Supported only for // WebSocket APIs. @@ -283,7 +283,7 @@ type UpdateIntegrationOutput struct { // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between // 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for // WebSocket APIs and 30 seconds for HTTP APIs. - TimeoutInMillis *int32 + TimeoutInMillis int32 // The TLS configuration for a private integration. If you specify a TLS // configuration, private integration traffic uses the HTTPS protocol. Supported diff --git a/service/apigatewayv2/api_op_UpdateIntegrationResponse.go b/service/apigatewayv2/api_op_UpdateIntegrationResponse.go index 5f35bf7aa24..b735d9be83a 100644 --- a/service/apigatewayv2/api_op_UpdateIntegrationResponse.go +++ b/service/apigatewayv2/api_op_UpdateIntegrationResponse.go @@ -69,12 +69,12 @@ type UpdateIntegrationResponseInput struct { // integration.response.body.{JSON-expression} , where {name} is a valid and unique // response header name and {JSON-expression} is a valid JSON expression without // the $ prefix. - ResponseParameters map[string]*string + ResponseParameters map[string]string // The collection of response templates for the integration response as a // string-to-string map of key-value pairs. Response templates are represented as a // key/value map, with a content-type as the key and a template as the value. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // The template selection expression for the integration response. Supported only // for WebSocket APIs. @@ -110,12 +110,12 @@ type UpdateIntegrationResponseOutput struct { // integration.response.body.{JSON-expression}, where name is a valid and unique // response header name and JSON-expression is a valid JSON expression without the // $ prefix. - ResponseParameters map[string]*string + ResponseParameters map[string]string // The collection of response templates for the integration response as a // string-to-string map of key-value pairs. Response templates are represented as a // key/value map, with a content-type as the key and a template as the value. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // The template selection expressions for the integration response. TemplateSelectionExpression *string diff --git a/service/apigatewayv2/api_op_UpdateRoute.go b/service/apigatewayv2/api_op_UpdateRoute.go index bba4804476a..215790a00f2 100644 --- a/service/apigatewayv2/api_op_UpdateRoute.go +++ b/service/apigatewayv2/api_op_UpdateRoute.go @@ -42,10 +42,10 @@ type UpdateRouteInput struct { // Specifies whether an API key is required for the route. Supported only for // WebSocket APIs. - ApiKeyRequired *bool + ApiKeyRequired bool // The authorization scopes supported by this route. - AuthorizationScopes []*string + AuthorizationScopes []string // The authorization type for the route. For WebSocket APIs, valid values are NONE // for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a @@ -66,10 +66,10 @@ type UpdateRouteInput struct { OperationName *string // The request models for the route. Supported only for WebSocket APIs. - RequestModels map[string]*string + RequestModels map[string]string // The request parameters for the route. Supported only for WebSocket APIs. - RequestParameters map[string]*types.ParameterConstraints + RequestParameters map[string]types.ParameterConstraints // The route key for the route. RouteKey *string @@ -87,11 +87,11 @@ type UpdateRouteOutput struct { // Specifies whether a route is managed by API Gateway. If you created an API using // quick create, the $default route is managed by API Gateway. You can't modify the // $default route key. - ApiGatewayManaged *bool + ApiGatewayManaged bool // Specifies whether an API key is required for this route. Supported only for // WebSocket APIs. - ApiKeyRequired *bool + ApiKeyRequired bool // A list of authorization scopes configured on a route. The scopes are used with a // JWT authorizer to authorize the method invocation. The authorization works by @@ -100,7 +100,7 @@ type UpdateRouteOutput struct { // a claimed scope in the access token. Otherwise, the invocation is not // authorized. When the route scope is configured, the client must provide an // access token instead of an identity token for authorization purposes. - AuthorizationScopes []*string + AuthorizationScopes []string // The authorization type for the route. For WebSocket APIs, valid values are NONE // for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a @@ -121,10 +121,10 @@ type UpdateRouteOutput struct { OperationName *string // The request models for the route. Supported only for WebSocket APIs. - RequestModels map[string]*string + RequestModels map[string]string // The request parameters for the route. Supported only for WebSocket APIs. - RequestParameters map[string]*types.ParameterConstraints + RequestParameters map[string]types.ParameterConstraints // The route ID. RouteId *string diff --git a/service/apigatewayv2/api_op_UpdateRouteResponse.go b/service/apigatewayv2/api_op_UpdateRouteResponse.go index 37448b429c0..b7d931dc2e3 100644 --- a/service/apigatewayv2/api_op_UpdateRouteResponse.go +++ b/service/apigatewayv2/api_op_UpdateRouteResponse.go @@ -50,10 +50,10 @@ type UpdateRouteResponseInput struct { ModelSelectionExpression *string // The response models for the route response. - ResponseModels map[string]*string + ResponseModels map[string]string // The route response parameters. - ResponseParameters map[string]*types.ParameterConstraints + ResponseParameters map[string]types.ParameterConstraints // The route response key. RouteResponseKey *string @@ -66,10 +66,10 @@ type UpdateRouteResponseOutput struct { ModelSelectionExpression *string // Represents the response models of a route response. - ResponseModels map[string]*string + ResponseModels map[string]string // Represents the response parameters of a route response. - ResponseParameters map[string]*types.ParameterConstraints + ResponseParameters map[string]types.ParameterConstraints // Represents the identifier of a route response. RouteResponseId *string diff --git a/service/apigatewayv2/api_op_UpdateStage.go b/service/apigatewayv2/api_op_UpdateStage.go index 0ef418a0c41..a919f86094c 100644 --- a/service/apigatewayv2/api_op_UpdateStage.go +++ b/service/apigatewayv2/api_op_UpdateStage.go @@ -47,7 +47,7 @@ type UpdateStageInput struct { // Specifies whether updates to an API automatically trigger a new deployment. The // default value is false. - AutoDeploy *bool + AutoDeploy bool // The identifier of a client certificate for a Stage. ClientCertificateId *string @@ -63,12 +63,12 @@ type UpdateStageInput struct { Description *string // Route settings for the stage. - RouteSettings map[string]*types.RouteSettings + RouteSettings map[string]types.RouteSettings // A map that defines the stage variables for a Stage. Variable names can have // alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+. - StageVariables map[string]*string + StageVariables map[string]string } type UpdateStageOutput struct { @@ -79,11 +79,11 @@ type UpdateStageOutput struct { // Specifies whether a stage is managed by API Gateway. If you created an API using // quick create, the $default stage is managed by API Gateway. You can't modify the // $default stage. - ApiGatewayManaged *bool + ApiGatewayManaged bool // Specifies whether updates to an API automatically trigger a new deployment. The // default value is false. - AutoDeploy *bool + AutoDeploy bool // The identifier of a client certificate for a Stage. Supported only for WebSocket // APIs. @@ -110,7 +110,7 @@ type UpdateStageOutput struct { LastUpdatedDate *time.Time // Route settings for the stage, by routeKey. - RouteSettings map[string]*types.RouteSettings + RouteSettings map[string]types.RouteSettings // The name of the stage. StageName *string @@ -118,10 +118,10 @@ type UpdateStageOutput struct { // A map that defines the stage variables for a stage resource. Variable names can // have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+. - StageVariables map[string]*string + StageVariables map[string]string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/apigatewayv2/api_op_UpdateVpcLink.go b/service/apigatewayv2/api_op_UpdateVpcLink.go index ec1cc8bc898..7b86ca76fec 100644 --- a/service/apigatewayv2/api_op_UpdateVpcLink.go +++ b/service/apigatewayv2/api_op_UpdateVpcLink.go @@ -49,13 +49,13 @@ type UpdateVpcLinkOutput struct { Name *string // A list of security group IDs for the VPC link. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of subnet IDs to include in the VPC link. - SubnetIds []*string + SubnetIds []string // Tags for the VPC link. - Tags map[string]*string + Tags map[string]string // The ID of the VPC link. VpcLinkId *string diff --git a/service/apigatewayv2/deserializers.go b/service/apigatewayv2/deserializers.go index 29e4b29ad72..d5047c6aa0b 100644 --- a/service/apigatewayv2/deserializers.go +++ b/service/apigatewayv2/deserializers.go @@ -168,7 +168,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApiEndpoint = &jtv + sv.ApiEndpoint = ptr.String(jtv) } case "apiGatewayManaged": @@ -177,7 +177,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "apiId": @@ -186,7 +186,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiId = &jtv + sv.ApiId = ptr.String(jtv) } case "apiKeySelectionExpression": @@ -195,7 +195,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ApiKeySelectionExpression = &jtv + sv.ApiKeySelectionExpression = ptr.String(jtv) } case "corsConfiguration": @@ -213,7 +213,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "description": @@ -222,7 +222,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "disableExecuteApiEndpoint": @@ -231,7 +231,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = &jtv + sv.DisableExecuteApiEndpoint = jtv } case "disableSchemaValidation": @@ -240,7 +240,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableSchemaValidation = &jtv + sv.DisableSchemaValidation = jtv } case "importInfo": @@ -254,7 +254,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "protocolType": @@ -272,7 +272,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.RouteSelectionExpression = &jtv + sv.RouteSelectionExpression = ptr.String(jtv) } case "tags": @@ -286,7 +286,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "warnings": @@ -451,7 +451,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiMappingOutput(v **CreateApiMappi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiId = &jtv + sv.ApiId = ptr.String(jtv) } case "apiMappingId": @@ -460,7 +460,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiMappingOutput(v **CreateApiMappi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiMappingId = &jtv + sv.ApiMappingId = ptr.String(jtv) } case "apiMappingKey": @@ -469,7 +469,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiMappingOutput(v **CreateApiMappi if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.ApiMappingKey = &jtv + sv.ApiMappingKey = ptr.String(jtv) } case "stage": @@ -478,7 +478,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiMappingOutput(v **CreateApiMappi if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Stage = &jtv + sv.Stage = ptr.String(jtv) } default: @@ -638,7 +638,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AuthorizerCredentialsArn = &jtv + sv.AuthorizerCredentialsArn = ptr.String(jtv) } case "authorizerId": @@ -647,7 +647,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.AuthorizerId = &jtv + sv.AuthorizerId = ptr.String(jtv) } case "authorizerPayloadFormatVersion": @@ -656,7 +656,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.AuthorizerPayloadFormatVersion = &jtv + sv.AuthorizerPayloadFormatVersion = ptr.String(jtv) } case "authorizerResultTtlInSeconds": @@ -669,7 +669,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if err != nil { return err } - sv.AuthorizerResultTtlInSeconds = ptr.Int32(int32(i64)) + sv.AuthorizerResultTtlInSeconds = int32(i64) } case "authorizerType": @@ -687,7 +687,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected UriWithLengthBetween1And2048 to be of type string, got %T instead", value) } - sv.AuthorizerUri = &jtv + sv.AuthorizerUri = ptr.String(jtv) } case "enableSimpleResponses": @@ -696,7 +696,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnableSimpleResponses = &jtv + sv.EnableSimpleResponses = jtv } case "identitySource": @@ -710,7 +710,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.IdentityValidationExpression = &jtv + sv.IdentityValidationExpression = ptr.String(jtv) } case "jwtConfiguration": @@ -724,7 +724,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -884,7 +884,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeployed = &jtv + sv.AutoDeployed = jtv } case "createdDate": @@ -897,7 +897,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "deploymentId": @@ -906,7 +906,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "deploymentStatus": @@ -924,7 +924,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentStatusMessage = &jtv + sv.DeploymentStatusMessage = ptr.String(jtv) } case "description": @@ -933,7 +933,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } default: @@ -1096,7 +1096,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainNameOutput(v **CreateDomainNa if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ApiMappingSelectionExpression = &jtv + sv.ApiMappingSelectionExpression = ptr.String(jtv) } case "domainName": @@ -1105,7 +1105,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainNameOutput(v **CreateDomainNa if !ok { return fmt.Errorf("expected StringWithLengthBetween1And512 to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainNameConfigurations": @@ -1280,7 +1280,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "connectionId": @@ -1289,7 +1289,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if !ok { return fmt.Errorf("expected StringWithLengthBetween1And1024 to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionType": @@ -1316,7 +1316,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CredentialsArn = &jtv + sv.CredentialsArn = ptr.String(jtv) } case "description": @@ -1325,7 +1325,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "integrationId": @@ -1334,7 +1334,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.IntegrationId = &jtv + sv.IntegrationId = ptr.String(jtv) } case "integrationMethod": @@ -1343,7 +1343,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.IntegrationMethod = &jtv + sv.IntegrationMethod = ptr.String(jtv) } case "integrationResponseSelectionExpression": @@ -1352,7 +1352,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.IntegrationResponseSelectionExpression = &jtv + sv.IntegrationResponseSelectionExpression = ptr.String(jtv) } case "integrationSubtype": @@ -1361,7 +1361,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.IntegrationSubtype = &jtv + sv.IntegrationSubtype = ptr.String(jtv) } case "integrationType": @@ -1379,7 +1379,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if !ok { return fmt.Errorf("expected UriWithLengthBetween1And2048 to be of type string, got %T instead", value) } - sv.IntegrationUri = &jtv + sv.IntegrationUri = ptr.String(jtv) } case "passthroughBehavior": @@ -1397,7 +1397,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.PayloadFormatVersion = &jtv + sv.PayloadFormatVersion = ptr.String(jtv) } case "requestParameters": @@ -1416,7 +1416,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.TemplateSelectionExpression = &jtv + sv.TemplateSelectionExpression = ptr.String(jtv) } case "timeoutInMillis": @@ -1429,7 +1429,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if err != nil { return err } - sv.TimeoutInMillis = ptr.Int32(int32(i64)) + sv.TimeoutInMillis = int32(i64) } case "tlsConfig": @@ -1603,7 +1603,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationResponseOutput(v **Creat if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.IntegrationResponseId = &jtv + sv.IntegrationResponseId = ptr.String(jtv) } case "integrationResponseKey": @@ -1612,7 +1612,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationResponseOutput(v **Creat if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.IntegrationResponseKey = &jtv + sv.IntegrationResponseKey = ptr.String(jtv) } case "responseParameters": @@ -1631,7 +1631,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationResponseOutput(v **Creat if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.TemplateSelectionExpression = &jtv + sv.TemplateSelectionExpression = ptr.String(jtv) } default: @@ -1791,7 +1791,7 @@ func awsRestjson1_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween1And256 to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "description": @@ -1800,7 +1800,7 @@ func awsRestjson1_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "modelId": @@ -1809,7 +1809,7 @@ func awsRestjson1_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ModelId = &jtv + sv.ModelId = ptr.String(jtv) } case "name": @@ -1818,7 +1818,7 @@ func awsRestjson1_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "schema": @@ -1827,7 +1827,7 @@ func awsRestjson1_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween0And32K to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } default: @@ -1987,7 +1987,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "apiKeyRequired": @@ -1996,7 +1996,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiKeyRequired = &jtv + sv.ApiKeyRequired = jtv } case "authorizationScopes": @@ -2019,7 +2019,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.AuthorizerId = &jtv + sv.AuthorizerId = ptr.String(jtv) } case "modelSelectionExpression": @@ -2028,7 +2028,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ModelSelectionExpression = &jtv + sv.ModelSelectionExpression = ptr.String(jtv) } case "operationName": @@ -2037,7 +2037,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.OperationName = &jtv + sv.OperationName = ptr.String(jtv) } case "requestModels": @@ -2056,7 +2056,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RouteId = &jtv + sv.RouteId = ptr.String(jtv) } case "routeKey": @@ -2065,7 +2065,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.RouteKey = &jtv + sv.RouteKey = ptr.String(jtv) } case "routeResponseSelectionExpression": @@ -2074,7 +2074,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.RouteResponseSelectionExpression = &jtv + sv.RouteResponseSelectionExpression = ptr.String(jtv) } case "target": @@ -2083,7 +2083,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } default: @@ -2243,7 +2243,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteResponseOutput(v **CreateRoute if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ModelSelectionExpression = &jtv + sv.ModelSelectionExpression = ptr.String(jtv) } case "responseModels": @@ -2262,7 +2262,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteResponseOutput(v **CreateRoute if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RouteResponseId = &jtv + sv.RouteResponseId = ptr.String(jtv) } case "routeResponseKey": @@ -2271,7 +2271,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteResponseOutput(v **CreateRoute if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.RouteResponseKey = &jtv + sv.RouteResponseKey = ptr.String(jtv) } default: @@ -2436,7 +2436,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "autoDeploy": @@ -2445,7 +2445,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeploy = &jtv + sv.AutoDeploy = jtv } case "clientCertificateId": @@ -2454,7 +2454,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ClientCertificateId = &jtv + sv.ClientCertificateId = ptr.String(jtv) } case "createdDate": @@ -2467,7 +2467,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "defaultRouteSettings": @@ -2481,7 +2481,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "description": @@ -2490,7 +2490,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastDeploymentStatusMessage": @@ -2499,7 +2499,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastDeploymentStatusMessage = &jtv + sv.LastDeploymentStatusMessage = ptr.String(jtv) } case "lastUpdatedDate": @@ -2512,7 +2512,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if err != nil { return err } - sv.LastUpdatedDate = &t + sv.LastUpdatedDate = ptr.Time(t) } case "routeSettings": @@ -2526,7 +2526,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.StageName = &jtv + sv.StageName = ptr.String(jtv) } case "stageVariables": @@ -2694,7 +2694,7 @@ func awsRestjson1_deserializeOpDocumentCreateVpcLinkOutput(v **CreateVpcLinkOutp if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "name": @@ -2703,7 +2703,7 @@ func awsRestjson1_deserializeOpDocumentCreateVpcLinkOutput(v **CreateVpcLinkOutp if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "securityGroupIds": @@ -2727,7 +2727,7 @@ func awsRestjson1_deserializeOpDocumentCreateVpcLinkOutput(v **CreateVpcLinkOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.VpcLinkId = &jtv + sv.VpcLinkId = ptr.String(jtv) } case "vpcLinkStatus": @@ -2745,7 +2745,7 @@ func awsRestjson1_deserializeOpDocumentCreateVpcLinkOutput(v **CreateVpcLinkOutp if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.VpcLinkStatusMessage = &jtv + sv.VpcLinkStatusMessage = ptr.String(jtv) } case "vpcLinkVersion": @@ -4396,7 +4396,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApiEndpoint = &jtv + sv.ApiEndpoint = ptr.String(jtv) } case "apiGatewayManaged": @@ -4405,7 +4405,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "apiId": @@ -4414,7 +4414,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiId = &jtv + sv.ApiId = ptr.String(jtv) } case "apiKeySelectionExpression": @@ -4423,7 +4423,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ApiKeySelectionExpression = &jtv + sv.ApiKeySelectionExpression = ptr.String(jtv) } case "corsConfiguration": @@ -4441,7 +4441,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "description": @@ -4450,7 +4450,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "disableExecuteApiEndpoint": @@ -4459,7 +4459,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = &jtv + sv.DisableExecuteApiEndpoint = jtv } case "disableSchemaValidation": @@ -4468,7 +4468,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableSchemaValidation = &jtv + sv.DisableSchemaValidation = jtv } case "importInfo": @@ -4482,7 +4482,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "protocolType": @@ -4500,7 +4500,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.RouteSelectionExpression = &jtv + sv.RouteSelectionExpression = ptr.String(jtv) } case "tags": @@ -4514,7 +4514,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "warnings": @@ -4676,7 +4676,7 @@ func awsRestjson1_deserializeOpDocumentGetApiMappingOutput(v **GetApiMappingOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiId = &jtv + sv.ApiId = ptr.String(jtv) } case "apiMappingId": @@ -4685,7 +4685,7 @@ func awsRestjson1_deserializeOpDocumentGetApiMappingOutput(v **GetApiMappingOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiMappingId = &jtv + sv.ApiMappingId = ptr.String(jtv) } case "apiMappingKey": @@ -4694,7 +4694,7 @@ func awsRestjson1_deserializeOpDocumentGetApiMappingOutput(v **GetApiMappingOutp if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.ApiMappingKey = &jtv + sv.ApiMappingKey = ptr.String(jtv) } case "stage": @@ -4703,7 +4703,7 @@ func awsRestjson1_deserializeOpDocumentGetApiMappingOutput(v **GetApiMappingOutp if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Stage = &jtv + sv.Stage = ptr.String(jtv) } default: @@ -4865,7 +4865,7 @@ func awsRestjson1_deserializeOpDocumentGetApiMappingsOutput(v **GetApiMappingsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5027,7 +5027,7 @@ func awsRestjson1_deserializeOpDocumentGetApisOutput(v **GetApisOutput, value in if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5181,7 +5181,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AuthorizerCredentialsArn = &jtv + sv.AuthorizerCredentialsArn = ptr.String(jtv) } case "authorizerId": @@ -5190,7 +5190,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.AuthorizerId = &jtv + sv.AuthorizerId = ptr.String(jtv) } case "authorizerPayloadFormatVersion": @@ -5199,7 +5199,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.AuthorizerPayloadFormatVersion = &jtv + sv.AuthorizerPayloadFormatVersion = ptr.String(jtv) } case "authorizerResultTtlInSeconds": @@ -5212,7 +5212,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if err != nil { return err } - sv.AuthorizerResultTtlInSeconds = ptr.Int32(int32(i64)) + sv.AuthorizerResultTtlInSeconds = int32(i64) } case "authorizerType": @@ -5230,7 +5230,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected UriWithLengthBetween1And2048 to be of type string, got %T instead", value) } - sv.AuthorizerUri = &jtv + sv.AuthorizerUri = ptr.String(jtv) } case "enableSimpleResponses": @@ -5239,7 +5239,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnableSimpleResponses = &jtv + sv.EnableSimpleResponses = jtv } case "identitySource": @@ -5253,7 +5253,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.IdentityValidationExpression = &jtv + sv.IdentityValidationExpression = ptr.String(jtv) } case "jwtConfiguration": @@ -5267,7 +5267,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5429,7 +5429,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizersOutput(v **GetAuthorizersOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5583,7 +5583,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeployed = &jtv + sv.AutoDeployed = jtv } case "createdDate": @@ -5596,7 +5596,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "deploymentId": @@ -5605,7 +5605,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "deploymentStatus": @@ -5623,7 +5623,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentStatusMessage = &jtv + sv.DeploymentStatusMessage = ptr.String(jtv) } case "description": @@ -5632,7 +5632,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } default: @@ -5794,7 +5794,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentsOutput(v **GetDeploymentsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5948,7 +5948,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNameOutput(v **GetDomainNameOutp if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ApiMappingSelectionExpression = &jtv + sv.ApiMappingSelectionExpression = ptr.String(jtv) } case "domainName": @@ -5957,7 +5957,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNameOutput(v **GetDomainNameOutp if !ok { return fmt.Errorf("expected StringWithLengthBetween1And512 to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainNameConfigurations": @@ -6134,7 +6134,7 @@ func awsRestjson1_deserializeOpDocumentGetDomainNamesOutput(v **GetDomainNamesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6288,7 +6288,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "connectionId": @@ -6297,7 +6297,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected StringWithLengthBetween1And1024 to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionType": @@ -6324,7 +6324,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CredentialsArn = &jtv + sv.CredentialsArn = ptr.String(jtv) } case "description": @@ -6333,7 +6333,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "integrationId": @@ -6342,7 +6342,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.IntegrationId = &jtv + sv.IntegrationId = ptr.String(jtv) } case "integrationMethod": @@ -6351,7 +6351,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.IntegrationMethod = &jtv + sv.IntegrationMethod = ptr.String(jtv) } case "integrationResponseSelectionExpression": @@ -6360,7 +6360,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.IntegrationResponseSelectionExpression = &jtv + sv.IntegrationResponseSelectionExpression = ptr.String(jtv) } case "integrationSubtype": @@ -6369,7 +6369,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.IntegrationSubtype = &jtv + sv.IntegrationSubtype = ptr.String(jtv) } case "integrationType": @@ -6387,7 +6387,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected UriWithLengthBetween1And2048 to be of type string, got %T instead", value) } - sv.IntegrationUri = &jtv + sv.IntegrationUri = ptr.String(jtv) } case "passthroughBehavior": @@ -6405,7 +6405,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.PayloadFormatVersion = &jtv + sv.PayloadFormatVersion = ptr.String(jtv) } case "requestParameters": @@ -6424,7 +6424,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.TemplateSelectionExpression = &jtv + sv.TemplateSelectionExpression = ptr.String(jtv) } case "timeoutInMillis": @@ -6437,7 +6437,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if err != nil { return err } - sv.TimeoutInMillis = ptr.Int32(int32(i64)) + sv.TimeoutInMillis = int32(i64) } case "tlsConfig": @@ -6605,7 +6605,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationResponseOutput(v **GetInteg if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.IntegrationResponseId = &jtv + sv.IntegrationResponseId = ptr.String(jtv) } case "integrationResponseKey": @@ -6614,7 +6614,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationResponseOutput(v **GetInteg if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.IntegrationResponseKey = &jtv + sv.IntegrationResponseKey = ptr.String(jtv) } case "responseParameters": @@ -6633,7 +6633,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationResponseOutput(v **GetInteg if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.TemplateSelectionExpression = &jtv + sv.TemplateSelectionExpression = ptr.String(jtv) } default: @@ -6795,7 +6795,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationResponsesOutput(v **GetInte if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6957,7 +6957,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationsOutput(v **GetIntegrations if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7111,7 +7111,7 @@ func awsRestjson1_deserializeOpDocumentGetModelOutput(v **GetModelOutput, value if !ok { return fmt.Errorf("expected StringWithLengthBetween1And256 to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "description": @@ -7120,7 +7120,7 @@ func awsRestjson1_deserializeOpDocumentGetModelOutput(v **GetModelOutput, value if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "modelId": @@ -7129,7 +7129,7 @@ func awsRestjson1_deserializeOpDocumentGetModelOutput(v **GetModelOutput, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ModelId = &jtv + sv.ModelId = ptr.String(jtv) } case "name": @@ -7138,7 +7138,7 @@ func awsRestjson1_deserializeOpDocumentGetModelOutput(v **GetModelOutput, value if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "schema": @@ -7147,7 +7147,7 @@ func awsRestjson1_deserializeOpDocumentGetModelOutput(v **GetModelOutput, value if !ok { return fmt.Errorf("expected StringWithLengthBetween0And32K to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } default: @@ -7309,7 +7309,7 @@ func awsRestjson1_deserializeOpDocumentGetModelsOutput(v **GetModelsOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7463,7 +7463,7 @@ func awsRestjson1_deserializeOpDocumentGetModelTemplateOutput(v **GetModelTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -7617,7 +7617,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteOutput(v **GetRouteOutput, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "apiKeyRequired": @@ -7626,7 +7626,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteOutput(v **GetRouteOutput, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiKeyRequired = &jtv + sv.ApiKeyRequired = jtv } case "authorizationScopes": @@ -7649,7 +7649,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteOutput(v **GetRouteOutput, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.AuthorizerId = &jtv + sv.AuthorizerId = ptr.String(jtv) } case "modelSelectionExpression": @@ -7658,7 +7658,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteOutput(v **GetRouteOutput, value if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ModelSelectionExpression = &jtv + sv.ModelSelectionExpression = ptr.String(jtv) } case "operationName": @@ -7667,7 +7667,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteOutput(v **GetRouteOutput, value if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.OperationName = &jtv + sv.OperationName = ptr.String(jtv) } case "requestModels": @@ -7686,7 +7686,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteOutput(v **GetRouteOutput, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RouteId = &jtv + sv.RouteId = ptr.String(jtv) } case "routeKey": @@ -7695,7 +7695,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteOutput(v **GetRouteOutput, value if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.RouteKey = &jtv + sv.RouteKey = ptr.String(jtv) } case "routeResponseSelectionExpression": @@ -7704,7 +7704,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteOutput(v **GetRouteOutput, value if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.RouteResponseSelectionExpression = &jtv + sv.RouteResponseSelectionExpression = ptr.String(jtv) } case "target": @@ -7713,7 +7713,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteOutput(v **GetRouteOutput, value if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } default: @@ -7867,7 +7867,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteResponseOutput(v **GetRouteRespon if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ModelSelectionExpression = &jtv + sv.ModelSelectionExpression = ptr.String(jtv) } case "responseModels": @@ -7886,7 +7886,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteResponseOutput(v **GetRouteRespon if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RouteResponseId = &jtv + sv.RouteResponseId = ptr.String(jtv) } case "routeResponseKey": @@ -7895,7 +7895,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteResponseOutput(v **GetRouteRespon if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.RouteResponseKey = &jtv + sv.RouteResponseKey = ptr.String(jtv) } default: @@ -8057,7 +8057,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteResponsesOutput(v **GetRouteRespo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8219,7 +8219,7 @@ func awsRestjson1_deserializeOpDocumentGetRoutesOutput(v **GetRoutesOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8378,7 +8378,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "autoDeploy": @@ -8387,7 +8387,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeploy = &jtv + sv.AutoDeploy = jtv } case "clientCertificateId": @@ -8396,7 +8396,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ClientCertificateId = &jtv + sv.ClientCertificateId = ptr.String(jtv) } case "createdDate": @@ -8409,7 +8409,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "defaultRouteSettings": @@ -8423,7 +8423,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "description": @@ -8432,7 +8432,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastDeploymentStatusMessage": @@ -8441,7 +8441,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastDeploymentStatusMessage = &jtv + sv.LastDeploymentStatusMessage = ptr.String(jtv) } case "lastUpdatedDate": @@ -8454,7 +8454,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if err != nil { return err } - sv.LastUpdatedDate = &t + sv.LastUpdatedDate = ptr.Time(t) } case "routeSettings": @@ -8468,7 +8468,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.StageName = &jtv + sv.StageName = ptr.String(jtv) } case "stageVariables": @@ -8640,7 +8640,7 @@ func awsRestjson1_deserializeOpDocumentGetStagesOutput(v **GetStagesOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8954,7 +8954,7 @@ func awsRestjson1_deserializeOpDocumentGetVpcLinkOutput(v **GetVpcLinkOutput, va if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "name": @@ -8963,7 +8963,7 @@ func awsRestjson1_deserializeOpDocumentGetVpcLinkOutput(v **GetVpcLinkOutput, va if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "securityGroupIds": @@ -8987,7 +8987,7 @@ func awsRestjson1_deserializeOpDocumentGetVpcLinkOutput(v **GetVpcLinkOutput, va if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.VpcLinkId = &jtv + sv.VpcLinkId = ptr.String(jtv) } case "vpcLinkStatus": @@ -9005,7 +9005,7 @@ func awsRestjson1_deserializeOpDocumentGetVpcLinkOutput(v **GetVpcLinkOutput, va if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.VpcLinkStatusMessage = &jtv + sv.VpcLinkStatusMessage = ptr.String(jtv) } case "vpcLinkVersion": @@ -9173,7 +9173,7 @@ func awsRestjson1_deserializeOpDocumentGetVpcLinksOutput(v **GetVpcLinksOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9333,7 +9333,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApiEndpoint = &jtv + sv.ApiEndpoint = ptr.String(jtv) } case "apiGatewayManaged": @@ -9342,7 +9342,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "apiId": @@ -9351,7 +9351,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiId = &jtv + sv.ApiId = ptr.String(jtv) } case "apiKeySelectionExpression": @@ -9360,7 +9360,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ApiKeySelectionExpression = &jtv + sv.ApiKeySelectionExpression = ptr.String(jtv) } case "corsConfiguration": @@ -9378,7 +9378,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "description": @@ -9387,7 +9387,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "disableExecuteApiEndpoint": @@ -9396,7 +9396,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = &jtv + sv.DisableExecuteApiEndpoint = jtv } case "disableSchemaValidation": @@ -9405,7 +9405,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableSchemaValidation = &jtv + sv.DisableSchemaValidation = jtv } case "importInfo": @@ -9419,7 +9419,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "protocolType": @@ -9437,7 +9437,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.RouteSelectionExpression = &jtv + sv.RouteSelectionExpression = ptr.String(jtv) } case "tags": @@ -9451,7 +9451,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "warnings": @@ -9616,7 +9616,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApiEndpoint = &jtv + sv.ApiEndpoint = ptr.String(jtv) } case "apiGatewayManaged": @@ -9625,7 +9625,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "apiId": @@ -9634,7 +9634,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiId = &jtv + sv.ApiId = ptr.String(jtv) } case "apiKeySelectionExpression": @@ -9643,7 +9643,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ApiKeySelectionExpression = &jtv + sv.ApiKeySelectionExpression = ptr.String(jtv) } case "corsConfiguration": @@ -9661,7 +9661,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "description": @@ -9670,7 +9670,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "disableExecuteApiEndpoint": @@ -9679,7 +9679,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = &jtv + sv.DisableExecuteApiEndpoint = jtv } case "disableSchemaValidation": @@ -9688,7 +9688,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableSchemaValidation = &jtv + sv.DisableSchemaValidation = jtv } case "importInfo": @@ -9702,7 +9702,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "protocolType": @@ -9720,7 +9720,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.RouteSelectionExpression = &jtv + sv.RouteSelectionExpression = ptr.String(jtv) } case "tags": @@ -9734,7 +9734,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "warnings": @@ -10169,7 +10169,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApiEndpoint = &jtv + sv.ApiEndpoint = ptr.String(jtv) } case "apiGatewayManaged": @@ -10178,7 +10178,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "apiId": @@ -10187,7 +10187,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiId = &jtv + sv.ApiId = ptr.String(jtv) } case "apiKeySelectionExpression": @@ -10196,7 +10196,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ApiKeySelectionExpression = &jtv + sv.ApiKeySelectionExpression = ptr.String(jtv) } case "corsConfiguration": @@ -10214,7 +10214,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "description": @@ -10223,7 +10223,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "disableExecuteApiEndpoint": @@ -10232,7 +10232,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = &jtv + sv.DisableExecuteApiEndpoint = jtv } case "disableSchemaValidation": @@ -10241,7 +10241,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableSchemaValidation = &jtv + sv.DisableSchemaValidation = jtv } case "importInfo": @@ -10255,7 +10255,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "protocolType": @@ -10273,7 +10273,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.RouteSelectionExpression = &jtv + sv.RouteSelectionExpression = ptr.String(jtv) } case "tags": @@ -10287,7 +10287,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "warnings": @@ -10452,7 +10452,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiMappingOutput(v **UpdateApiMappi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiId = &jtv + sv.ApiId = ptr.String(jtv) } case "apiMappingId": @@ -10461,7 +10461,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiMappingOutput(v **UpdateApiMappi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiMappingId = &jtv + sv.ApiMappingId = ptr.String(jtv) } case "apiMappingKey": @@ -10470,7 +10470,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiMappingOutput(v **UpdateApiMappi if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.ApiMappingKey = &jtv + sv.ApiMappingKey = ptr.String(jtv) } case "stage": @@ -10479,7 +10479,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiMappingOutput(v **UpdateApiMappi if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Stage = &jtv + sv.Stage = ptr.String(jtv) } default: @@ -10639,7 +10639,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AuthorizerCredentialsArn = &jtv + sv.AuthorizerCredentialsArn = ptr.String(jtv) } case "authorizerId": @@ -10648,7 +10648,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.AuthorizerId = &jtv + sv.AuthorizerId = ptr.String(jtv) } case "authorizerPayloadFormatVersion": @@ -10657,7 +10657,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.AuthorizerPayloadFormatVersion = &jtv + sv.AuthorizerPayloadFormatVersion = ptr.String(jtv) } case "authorizerResultTtlInSeconds": @@ -10670,7 +10670,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if err != nil { return err } - sv.AuthorizerResultTtlInSeconds = ptr.Int32(int32(i64)) + sv.AuthorizerResultTtlInSeconds = int32(i64) } case "authorizerType": @@ -10688,7 +10688,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected UriWithLengthBetween1And2048 to be of type string, got %T instead", value) } - sv.AuthorizerUri = &jtv + sv.AuthorizerUri = ptr.String(jtv) } case "enableSimpleResponses": @@ -10697,7 +10697,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnableSimpleResponses = &jtv + sv.EnableSimpleResponses = jtv } case "identitySource": @@ -10711,7 +10711,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.IdentityValidationExpression = &jtv + sv.IdentityValidationExpression = ptr.String(jtv) } case "jwtConfiguration": @@ -10725,7 +10725,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10885,7 +10885,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentOutput(v **UpdateDeployme if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeployed = &jtv + sv.AutoDeployed = jtv } case "createdDate": @@ -10898,7 +10898,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentOutput(v **UpdateDeployme if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "deploymentId": @@ -10907,7 +10907,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentOutput(v **UpdateDeployme if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "deploymentStatus": @@ -10925,7 +10925,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentOutput(v **UpdateDeployme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentStatusMessage = &jtv + sv.DeploymentStatusMessage = ptr.String(jtv) } case "description": @@ -10934,7 +10934,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentOutput(v **UpdateDeployme if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } default: @@ -11094,7 +11094,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainNameOutput(v **UpdateDomainNa if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ApiMappingSelectionExpression = &jtv + sv.ApiMappingSelectionExpression = ptr.String(jtv) } case "domainName": @@ -11103,7 +11103,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainNameOutput(v **UpdateDomainNa if !ok { return fmt.Errorf("expected StringWithLengthBetween1And512 to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainNameConfigurations": @@ -11278,7 +11278,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "connectionId": @@ -11287,7 +11287,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected StringWithLengthBetween1And1024 to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionType": @@ -11314,7 +11314,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CredentialsArn = &jtv + sv.CredentialsArn = ptr.String(jtv) } case "description": @@ -11323,7 +11323,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "integrationId": @@ -11332,7 +11332,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.IntegrationId = &jtv + sv.IntegrationId = ptr.String(jtv) } case "integrationMethod": @@ -11341,7 +11341,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.IntegrationMethod = &jtv + sv.IntegrationMethod = ptr.String(jtv) } case "integrationResponseSelectionExpression": @@ -11350,7 +11350,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.IntegrationResponseSelectionExpression = &jtv + sv.IntegrationResponseSelectionExpression = ptr.String(jtv) } case "integrationSubtype": @@ -11359,7 +11359,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.IntegrationSubtype = &jtv + sv.IntegrationSubtype = ptr.String(jtv) } case "integrationType": @@ -11377,7 +11377,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected UriWithLengthBetween1And2048 to be of type string, got %T instead", value) } - sv.IntegrationUri = &jtv + sv.IntegrationUri = ptr.String(jtv) } case "passthroughBehavior": @@ -11395,7 +11395,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.PayloadFormatVersion = &jtv + sv.PayloadFormatVersion = ptr.String(jtv) } case "requestParameters": @@ -11414,7 +11414,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.TemplateSelectionExpression = &jtv + sv.TemplateSelectionExpression = ptr.String(jtv) } case "timeoutInMillis": @@ -11427,7 +11427,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if err != nil { return err } - sv.TimeoutInMillis = ptr.Int32(int32(i64)) + sv.TimeoutInMillis = int32(i64) } case "tlsConfig": @@ -11601,7 +11601,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationResponseOutput(v **Updat if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.IntegrationResponseId = &jtv + sv.IntegrationResponseId = ptr.String(jtv) } case "integrationResponseKey": @@ -11610,7 +11610,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationResponseOutput(v **Updat if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.IntegrationResponseKey = &jtv + sv.IntegrationResponseKey = ptr.String(jtv) } case "responseParameters": @@ -11629,7 +11629,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationResponseOutput(v **Updat if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.TemplateSelectionExpression = &jtv + sv.TemplateSelectionExpression = ptr.String(jtv) } default: @@ -11789,7 +11789,7 @@ func awsRestjson1_deserializeOpDocumentUpdateModelOutput(v **UpdateModelOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween1And256 to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "description": @@ -11798,7 +11798,7 @@ func awsRestjson1_deserializeOpDocumentUpdateModelOutput(v **UpdateModelOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "modelId": @@ -11807,7 +11807,7 @@ func awsRestjson1_deserializeOpDocumentUpdateModelOutput(v **UpdateModelOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ModelId = &jtv + sv.ModelId = ptr.String(jtv) } case "name": @@ -11816,7 +11816,7 @@ func awsRestjson1_deserializeOpDocumentUpdateModelOutput(v **UpdateModelOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "schema": @@ -11825,7 +11825,7 @@ func awsRestjson1_deserializeOpDocumentUpdateModelOutput(v **UpdateModelOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween0And32K to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } default: @@ -11985,7 +11985,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteOutput(v **UpdateRouteOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "apiKeyRequired": @@ -11994,7 +11994,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteOutput(v **UpdateRouteOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiKeyRequired = &jtv + sv.ApiKeyRequired = jtv } case "authorizationScopes": @@ -12017,7 +12017,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteOutput(v **UpdateRouteOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.AuthorizerId = &jtv + sv.AuthorizerId = ptr.String(jtv) } case "modelSelectionExpression": @@ -12026,7 +12026,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteOutput(v **UpdateRouteOutput, if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ModelSelectionExpression = &jtv + sv.ModelSelectionExpression = ptr.String(jtv) } case "operationName": @@ -12035,7 +12035,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteOutput(v **UpdateRouteOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.OperationName = &jtv + sv.OperationName = ptr.String(jtv) } case "requestModels": @@ -12054,7 +12054,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteOutput(v **UpdateRouteOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RouteId = &jtv + sv.RouteId = ptr.String(jtv) } case "routeKey": @@ -12063,7 +12063,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteOutput(v **UpdateRouteOutput, if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.RouteKey = &jtv + sv.RouteKey = ptr.String(jtv) } case "routeResponseSelectionExpression": @@ -12072,7 +12072,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteOutput(v **UpdateRouteOutput, if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.RouteResponseSelectionExpression = &jtv + sv.RouteResponseSelectionExpression = ptr.String(jtv) } case "target": @@ -12081,7 +12081,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteOutput(v **UpdateRouteOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } default: @@ -12241,7 +12241,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteResponseOutput(v **UpdateRoute if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ModelSelectionExpression = &jtv + sv.ModelSelectionExpression = ptr.String(jtv) } case "responseModels": @@ -12260,7 +12260,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteResponseOutput(v **UpdateRoute if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RouteResponseId = &jtv + sv.RouteResponseId = ptr.String(jtv) } case "routeResponseKey": @@ -12269,7 +12269,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteResponseOutput(v **UpdateRoute if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.RouteResponseKey = &jtv + sv.RouteResponseKey = ptr.String(jtv) } default: @@ -12434,7 +12434,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "autoDeploy": @@ -12443,7 +12443,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeploy = &jtv + sv.AutoDeploy = jtv } case "clientCertificateId": @@ -12452,7 +12452,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ClientCertificateId = &jtv + sv.ClientCertificateId = ptr.String(jtv) } case "createdDate": @@ -12465,7 +12465,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "defaultRouteSettings": @@ -12479,7 +12479,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "description": @@ -12488,7 +12488,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastDeploymentStatusMessage": @@ -12497,7 +12497,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastDeploymentStatusMessage = &jtv + sv.LastDeploymentStatusMessage = ptr.String(jtv) } case "lastUpdatedDate": @@ -12510,7 +12510,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if err != nil { return err } - sv.LastUpdatedDate = &t + sv.LastUpdatedDate = ptr.Time(t) } case "routeSettings": @@ -12524,7 +12524,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.StageName = &jtv + sv.StageName = ptr.String(jtv) } case "stageVariables": @@ -12695,7 +12695,7 @@ func awsRestjson1_deserializeOpDocumentUpdateVpcLinkOutput(v **UpdateVpcLinkOutp if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "name": @@ -12704,7 +12704,7 @@ func awsRestjson1_deserializeOpDocumentUpdateVpcLinkOutput(v **UpdateVpcLinkOutp if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "securityGroupIds": @@ -12728,7 +12728,7 @@ func awsRestjson1_deserializeOpDocumentUpdateVpcLinkOutput(v **UpdateVpcLinkOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.VpcLinkId = &jtv + sv.VpcLinkId = ptr.String(jtv) } case "vpcLinkStatus": @@ -12746,7 +12746,7 @@ func awsRestjson1_deserializeOpDocumentUpdateVpcLinkOutput(v **UpdateVpcLinkOutp if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.VpcLinkStatusMessage = &jtv + sv.VpcLinkStatusMessage = ptr.String(jtv) } case "vpcLinkVersion": @@ -12947,7 +12947,7 @@ func awsRestjson1_deserializeErrorTooManyRequestsException(response *smithyhttp. return output } -func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12960,21 +12960,21 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -12983,7 +12983,7 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return nil } -func awsRestjson1_deserializeDocument__listOfApi(v *[]*types.Api, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfApi(v *[]types.Api, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12996,18 +12996,20 @@ func awsRestjson1_deserializeDocument__listOfApi(v *[]*types.Api, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Api + var cv []types.Api if *v == nil { - cv = []*types.Api{} + cv = []types.Api{} } else { cv = *v } for _, value := range shape { - var col *types.Api - if err := awsRestjson1_deserializeDocumentApi(&col, value); err != nil { + var col types.Api + destAddr := &col + if err := awsRestjson1_deserializeDocumentApi(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13015,7 +13017,7 @@ func awsRestjson1_deserializeDocument__listOfApi(v *[]*types.Api, value interfac return nil } -func awsRestjson1_deserializeDocument__listOfApiMapping(v *[]*types.ApiMapping, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfApiMapping(v *[]types.ApiMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13028,18 +13030,20 @@ func awsRestjson1_deserializeDocument__listOfApiMapping(v *[]*types.ApiMapping, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApiMapping + var cv []types.ApiMapping if *v == nil { - cv = []*types.ApiMapping{} + cv = []types.ApiMapping{} } else { cv = *v } for _, value := range shape { - var col *types.ApiMapping - if err := awsRestjson1_deserializeDocumentApiMapping(&col, value); err != nil { + var col types.ApiMapping + destAddr := &col + if err := awsRestjson1_deserializeDocumentApiMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13047,7 +13051,7 @@ func awsRestjson1_deserializeDocument__listOfApiMapping(v *[]*types.ApiMapping, return nil } -func awsRestjson1_deserializeDocument__listOfAuthorizer(v *[]*types.Authorizer, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfAuthorizer(v *[]types.Authorizer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13060,18 +13064,20 @@ func awsRestjson1_deserializeDocument__listOfAuthorizer(v *[]*types.Authorizer, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Authorizer + var cv []types.Authorizer if *v == nil { - cv = []*types.Authorizer{} + cv = []types.Authorizer{} } else { cv = *v } for _, value := range shape { - var col *types.Authorizer - if err := awsRestjson1_deserializeDocumentAuthorizer(&col, value); err != nil { + var col types.Authorizer + destAddr := &col + if err := awsRestjson1_deserializeDocumentAuthorizer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13079,7 +13085,7 @@ func awsRestjson1_deserializeDocument__listOfAuthorizer(v *[]*types.Authorizer, return nil } -func awsRestjson1_deserializeDocument__listOfDeployment(v *[]*types.Deployment, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfDeployment(v *[]types.Deployment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13092,18 +13098,20 @@ func awsRestjson1_deserializeDocument__listOfDeployment(v *[]*types.Deployment, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Deployment + var cv []types.Deployment if *v == nil { - cv = []*types.Deployment{} + cv = []types.Deployment{} } else { cv = *v } for _, value := range shape { - var col *types.Deployment - if err := awsRestjson1_deserializeDocumentDeployment(&col, value); err != nil { + var col types.Deployment + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeployment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13111,7 +13119,7 @@ func awsRestjson1_deserializeDocument__listOfDeployment(v *[]*types.Deployment, return nil } -func awsRestjson1_deserializeDocument__listOfDomainName(v *[]*types.DomainName, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfDomainName(v *[]types.DomainName, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13124,18 +13132,20 @@ func awsRestjson1_deserializeDocument__listOfDomainName(v *[]*types.DomainName, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainName + var cv []types.DomainName if *v == nil { - cv = []*types.DomainName{} + cv = []types.DomainName{} } else { cv = *v } for _, value := range shape { - var col *types.DomainName - if err := awsRestjson1_deserializeDocumentDomainName(&col, value); err != nil { + var col types.DomainName + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainName(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13143,7 +13153,7 @@ func awsRestjson1_deserializeDocument__listOfDomainName(v *[]*types.DomainName, return nil } -func awsRestjson1_deserializeDocument__listOfIntegration(v *[]*types.Integration, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfIntegration(v *[]types.Integration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13156,18 +13166,20 @@ func awsRestjson1_deserializeDocument__listOfIntegration(v *[]*types.Integration return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Integration + var cv []types.Integration if *v == nil { - cv = []*types.Integration{} + cv = []types.Integration{} } else { cv = *v } for _, value := range shape { - var col *types.Integration - if err := awsRestjson1_deserializeDocumentIntegration(&col, value); err != nil { + var col types.Integration + destAddr := &col + if err := awsRestjson1_deserializeDocumentIntegration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13175,7 +13187,7 @@ func awsRestjson1_deserializeDocument__listOfIntegration(v *[]*types.Integration return nil } -func awsRestjson1_deserializeDocument__listOfIntegrationResponse(v *[]*types.IntegrationResponse, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfIntegrationResponse(v *[]types.IntegrationResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13188,18 +13200,20 @@ func awsRestjson1_deserializeDocument__listOfIntegrationResponse(v *[]*types.Int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IntegrationResponse + var cv []types.IntegrationResponse if *v == nil { - cv = []*types.IntegrationResponse{} + cv = []types.IntegrationResponse{} } else { cv = *v } for _, value := range shape { - var col *types.IntegrationResponse - if err := awsRestjson1_deserializeDocumentIntegrationResponse(&col, value); err != nil { + var col types.IntegrationResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentIntegrationResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13207,7 +13221,7 @@ func awsRestjson1_deserializeDocument__listOfIntegrationResponse(v *[]*types.Int return nil } -func awsRestjson1_deserializeDocument__listOfModel(v *[]*types.Model, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfModel(v *[]types.Model, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13220,18 +13234,20 @@ func awsRestjson1_deserializeDocument__listOfModel(v *[]*types.Model, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Model + var cv []types.Model if *v == nil { - cv = []*types.Model{} + cv = []types.Model{} } else { cv = *v } for _, value := range shape { - var col *types.Model - if err := awsRestjson1_deserializeDocumentModel(&col, value); err != nil { + var col types.Model + destAddr := &col + if err := awsRestjson1_deserializeDocumentModel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13239,7 +13255,7 @@ func awsRestjson1_deserializeDocument__listOfModel(v *[]*types.Model, value inte return nil } -func awsRestjson1_deserializeDocument__listOfRoute(v *[]*types.Route, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfRoute(v *[]types.Route, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13252,18 +13268,20 @@ func awsRestjson1_deserializeDocument__listOfRoute(v *[]*types.Route, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Route + var cv []types.Route if *v == nil { - cv = []*types.Route{} + cv = []types.Route{} } else { cv = *v } for _, value := range shape { - var col *types.Route - if err := awsRestjson1_deserializeDocumentRoute(&col, value); err != nil { + var col types.Route + destAddr := &col + if err := awsRestjson1_deserializeDocumentRoute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13271,7 +13289,7 @@ func awsRestjson1_deserializeDocument__listOfRoute(v *[]*types.Route, value inte return nil } -func awsRestjson1_deserializeDocument__listOfRouteResponse(v *[]*types.RouteResponse, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfRouteResponse(v *[]types.RouteResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13284,18 +13302,20 @@ func awsRestjson1_deserializeDocument__listOfRouteResponse(v *[]*types.RouteResp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RouteResponse + var cv []types.RouteResponse if *v == nil { - cv = []*types.RouteResponse{} + cv = []types.RouteResponse{} } else { cv = *v } for _, value := range shape { - var col *types.RouteResponse - if err := awsRestjson1_deserializeDocumentRouteResponse(&col, value); err != nil { + var col types.RouteResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentRouteResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13303,7 +13323,7 @@ func awsRestjson1_deserializeDocument__listOfRouteResponse(v *[]*types.RouteResp return nil } -func awsRestjson1_deserializeDocument__listOfStage(v *[]*types.Stage, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfStage(v *[]types.Stage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13316,18 +13336,20 @@ func awsRestjson1_deserializeDocument__listOfStage(v *[]*types.Stage, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Stage + var cv []types.Stage if *v == nil { - cv = []*types.Stage{} + cv = []types.Stage{} } else { cv = *v } for _, value := range shape { - var col *types.Stage - if err := awsRestjson1_deserializeDocumentStage(&col, value); err != nil { + var col types.Stage + destAddr := &col + if err := awsRestjson1_deserializeDocumentStage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13335,7 +13357,7 @@ func awsRestjson1_deserializeDocument__listOfStage(v *[]*types.Stage, value inte return nil } -func awsRestjson1_deserializeDocument__listOfVpcLink(v *[]*types.VpcLink, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfVpcLink(v *[]types.VpcLink, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13348,18 +13370,20 @@ func awsRestjson1_deserializeDocument__listOfVpcLink(v *[]*types.VpcLink, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VpcLink + var cv []types.VpcLink if *v == nil { - cv = []*types.VpcLink{} + cv = []types.VpcLink{} } else { cv = *v } for _, value := range shape { - var col *types.VpcLink - if err := awsRestjson1_deserializeDocumentVpcLink(&col, value); err != nil { + var col types.VpcLink + destAddr := &col + if err := awsRestjson1_deserializeDocumentVpcLink(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13395,7 +13419,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13435,7 +13459,7 @@ func awsRestjson1_deserializeDocumentAccessLogSettings(v **types.AccessLogSettin if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DestinationArn = &jtv + sv.DestinationArn = ptr.String(jtv) } case "format": @@ -13444,7 +13468,7 @@ func awsRestjson1_deserializeDocumentAccessLogSettings(v **types.AccessLogSettin if !ok { return fmt.Errorf("expected StringWithLengthBetween1And1024 to be of type string, got %T instead", value) } - sv.Format = &jtv + sv.Format = ptr.String(jtv) } default: @@ -13484,7 +13508,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApiEndpoint = &jtv + sv.ApiEndpoint = ptr.String(jtv) } case "apiGatewayManaged": @@ -13493,7 +13517,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "apiId": @@ -13502,7 +13526,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiId = &jtv + sv.ApiId = ptr.String(jtv) } case "apiKeySelectionExpression": @@ -13511,7 +13535,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ApiKeySelectionExpression = &jtv + sv.ApiKeySelectionExpression = ptr.String(jtv) } case "corsConfiguration": @@ -13529,7 +13553,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "description": @@ -13538,7 +13562,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "disableExecuteApiEndpoint": @@ -13547,7 +13571,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = &jtv + sv.DisableExecuteApiEndpoint = jtv } case "disableSchemaValidation": @@ -13556,7 +13580,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableSchemaValidation = &jtv + sv.DisableSchemaValidation = jtv } case "importInfo": @@ -13570,7 +13594,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "protocolType": @@ -13588,7 +13612,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.RouteSelectionExpression = &jtv + sv.RouteSelectionExpression = ptr.String(jtv) } case "tags": @@ -13602,7 +13626,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "warnings": @@ -13647,7 +13671,7 @@ func awsRestjson1_deserializeDocumentApiMapping(v **types.ApiMapping, value inte if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiId = &jtv + sv.ApiId = ptr.String(jtv) } case "apiMappingId": @@ -13656,7 +13680,7 @@ func awsRestjson1_deserializeDocumentApiMapping(v **types.ApiMapping, value inte if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApiMappingId = &jtv + sv.ApiMappingId = ptr.String(jtv) } case "apiMappingKey": @@ -13665,7 +13689,7 @@ func awsRestjson1_deserializeDocumentApiMapping(v **types.ApiMapping, value inte if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.ApiMappingKey = &jtv + sv.ApiMappingKey = ptr.String(jtv) } case "stage": @@ -13674,7 +13698,7 @@ func awsRestjson1_deserializeDocumentApiMapping(v **types.ApiMapping, value inte if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Stage = &jtv + sv.Stage = ptr.String(jtv) } default: @@ -13686,7 +13710,7 @@ func awsRestjson1_deserializeDocumentApiMapping(v **types.ApiMapping, value inte return nil } -func awsRestjson1_deserializeDocumentAuthorizationScopes(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAuthorizationScopes(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13699,21 +13723,21 @@ func awsRestjson1_deserializeDocumentAuthorizationScopes(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -13750,7 +13774,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AuthorizerCredentialsArn = &jtv + sv.AuthorizerCredentialsArn = ptr.String(jtv) } case "authorizerId": @@ -13759,7 +13783,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.AuthorizerId = &jtv + sv.AuthorizerId = ptr.String(jtv) } case "authorizerPayloadFormatVersion": @@ -13768,7 +13792,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.AuthorizerPayloadFormatVersion = &jtv + sv.AuthorizerPayloadFormatVersion = ptr.String(jtv) } case "authorizerResultTtlInSeconds": @@ -13781,7 +13805,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if err != nil { return err } - sv.AuthorizerResultTtlInSeconds = ptr.Int32(int32(i64)) + sv.AuthorizerResultTtlInSeconds = int32(i64) } case "authorizerType": @@ -13799,7 +13823,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected UriWithLengthBetween1And2048 to be of type string, got %T instead", value) } - sv.AuthorizerUri = &jtv + sv.AuthorizerUri = ptr.String(jtv) } case "enableSimpleResponses": @@ -13808,7 +13832,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnableSimpleResponses = &jtv + sv.EnableSimpleResponses = jtv } case "identitySource": @@ -13822,7 +13846,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.IdentityValidationExpression = &jtv + sv.IdentityValidationExpression = ptr.String(jtv) } case "jwtConfiguration": @@ -13836,7 +13860,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -13876,7 +13900,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13916,7 +13940,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13956,7 +13980,7 @@ func awsRestjson1_deserializeDocumentCors(v **types.Cors, value interface{}) err if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AllowCredentials = &jtv + sv.AllowCredentials = jtv } case "allowHeaders": @@ -13989,7 +14013,7 @@ func awsRestjson1_deserializeDocumentCors(v **types.Cors, value interface{}) err if err != nil { return err } - sv.MaxAge = ptr.Int32(int32(i64)) + sv.MaxAge = int32(i64) } default: @@ -14001,7 +14025,7 @@ func awsRestjson1_deserializeDocumentCors(v **types.Cors, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentCorsHeaderList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentCorsHeaderList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14014,21 +14038,21 @@ func awsRestjson1_deserializeDocumentCorsHeaderList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -14037,7 +14061,7 @@ func awsRestjson1_deserializeDocumentCorsHeaderList(v *[]*string, value interfac return nil } -func awsRestjson1_deserializeDocumentCorsMethodList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentCorsMethodList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14050,21 +14074,21 @@ func awsRestjson1_deserializeDocumentCorsMethodList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14073,7 +14097,7 @@ func awsRestjson1_deserializeDocumentCorsMethodList(v *[]*string, value interfac return nil } -func awsRestjson1_deserializeDocumentCorsOriginList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentCorsOriginList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14086,21 +14110,21 @@ func awsRestjson1_deserializeDocumentCorsOriginList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -14137,7 +14161,7 @@ func awsRestjson1_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeployed = &jtv + sv.AutoDeployed = jtv } case "createdDate": @@ -14150,7 +14174,7 @@ func awsRestjson1_deserializeDocumentDeployment(v **types.Deployment, value inte if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "deploymentId": @@ -14159,7 +14183,7 @@ func awsRestjson1_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "deploymentStatus": @@ -14177,7 +14201,7 @@ func awsRestjson1_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentStatusMessage = &jtv + sv.DeploymentStatusMessage = ptr.String(jtv) } case "description": @@ -14186,7 +14210,7 @@ func awsRestjson1_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } default: @@ -14226,7 +14250,7 @@ func awsRestjson1_deserializeDocumentDomainName(v **types.DomainName, value inte if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ApiMappingSelectionExpression = &jtv + sv.ApiMappingSelectionExpression = ptr.String(jtv) } case "domainName": @@ -14235,7 +14259,7 @@ func awsRestjson1_deserializeDocumentDomainName(v **types.DomainName, value inte if !ok { return fmt.Errorf("expected StringWithLengthBetween1And512 to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainNameConfigurations": @@ -14290,7 +14314,7 @@ func awsRestjson1_deserializeDocumentDomainNameConfiguration(v **types.DomainNam if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApiGatewayDomainName = &jtv + sv.ApiGatewayDomainName = ptr.String(jtv) } case "certificateArn": @@ -14299,7 +14323,7 @@ func awsRestjson1_deserializeDocumentDomainNameConfiguration(v **types.DomainNam if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateName": @@ -14308,7 +14332,7 @@ func awsRestjson1_deserializeDocumentDomainNameConfiguration(v **types.DomainNam if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.CertificateName = &jtv + sv.CertificateName = ptr.String(jtv) } case "certificateUploadDate": @@ -14321,7 +14345,7 @@ func awsRestjson1_deserializeDocumentDomainNameConfiguration(v **types.DomainNam if err != nil { return err } - sv.CertificateUploadDate = &t + sv.CertificateUploadDate = ptr.Time(t) } case "domainNameStatus": @@ -14339,7 +14363,7 @@ func awsRestjson1_deserializeDocumentDomainNameConfiguration(v **types.DomainNam if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DomainNameStatusMessage = &jtv + sv.DomainNameStatusMessage = ptr.String(jtv) } case "endpointType": @@ -14357,7 +14381,7 @@ func awsRestjson1_deserializeDocumentDomainNameConfiguration(v **types.DomainNam if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.HostedZoneId = &jtv + sv.HostedZoneId = ptr.String(jtv) } case "securityPolicy": @@ -14378,7 +14402,7 @@ func awsRestjson1_deserializeDocumentDomainNameConfiguration(v **types.DomainNam return nil } -func awsRestjson1_deserializeDocumentDomainNameConfigurations(v *[]*types.DomainNameConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainNameConfigurations(v *[]types.DomainNameConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14391,18 +14415,20 @@ func awsRestjson1_deserializeDocumentDomainNameConfigurations(v *[]*types.Domain return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainNameConfiguration + var cv []types.DomainNameConfiguration if *v == nil { - cv = []*types.DomainNameConfiguration{} + cv = []types.DomainNameConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.DomainNameConfiguration - if err := awsRestjson1_deserializeDocumentDomainNameConfiguration(&col, value); err != nil { + var col types.DomainNameConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainNameConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14410,7 +14436,7 @@ func awsRestjson1_deserializeDocumentDomainNameConfigurations(v *[]*types.Domain return nil } -func awsRestjson1_deserializeDocumentIdentitySourceList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentIdentitySourceList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14423,21 +14449,21 @@ func awsRestjson1_deserializeDocumentIdentitySourceList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -14474,7 +14500,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "connectionId": @@ -14483,7 +14509,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected StringWithLengthBetween1And1024 to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionType": @@ -14510,7 +14536,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CredentialsArn = &jtv + sv.CredentialsArn = ptr.String(jtv) } case "description": @@ -14519,7 +14545,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "integrationId": @@ -14528,7 +14554,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.IntegrationId = &jtv + sv.IntegrationId = ptr.String(jtv) } case "integrationMethod": @@ -14537,7 +14563,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.IntegrationMethod = &jtv + sv.IntegrationMethod = ptr.String(jtv) } case "integrationResponseSelectionExpression": @@ -14546,7 +14572,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.IntegrationResponseSelectionExpression = &jtv + sv.IntegrationResponseSelectionExpression = ptr.String(jtv) } case "integrationSubtype": @@ -14555,7 +14581,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.IntegrationSubtype = &jtv + sv.IntegrationSubtype = ptr.String(jtv) } case "integrationType": @@ -14573,7 +14599,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected UriWithLengthBetween1And2048 to be of type string, got %T instead", value) } - sv.IntegrationUri = &jtv + sv.IntegrationUri = ptr.String(jtv) } case "passthroughBehavior": @@ -14591,7 +14617,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.PayloadFormatVersion = &jtv + sv.PayloadFormatVersion = ptr.String(jtv) } case "requestParameters": @@ -14610,7 +14636,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.TemplateSelectionExpression = &jtv + sv.TemplateSelectionExpression = ptr.String(jtv) } case "timeoutInMillis": @@ -14623,7 +14649,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if err != nil { return err } - sv.TimeoutInMillis = ptr.Int32(int32(i64)) + sv.TimeoutInMillis = int32(i64) } case "tlsConfig": @@ -14640,7 +14666,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in return nil } -func awsRestjson1_deserializeDocumentIntegrationParameters(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentIntegrationParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14653,21 +14679,21 @@ func awsRestjson1_deserializeDocumentIntegrationParameters(v *map[string]*string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringWithLengthBetween1And512 to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -14713,7 +14739,7 @@ func awsRestjson1_deserializeDocumentIntegrationResponse(v **types.IntegrationRe if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.IntegrationResponseId = &jtv + sv.IntegrationResponseId = ptr.String(jtv) } case "integrationResponseKey": @@ -14722,7 +14748,7 @@ func awsRestjson1_deserializeDocumentIntegrationResponse(v **types.IntegrationRe if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.IntegrationResponseKey = &jtv + sv.IntegrationResponseKey = ptr.String(jtv) } case "responseParameters": @@ -14741,7 +14767,7 @@ func awsRestjson1_deserializeDocumentIntegrationResponse(v **types.IntegrationRe if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.TemplateSelectionExpression = &jtv + sv.TemplateSelectionExpression = ptr.String(jtv) } default: @@ -14786,7 +14812,7 @@ func awsRestjson1_deserializeDocumentJWTConfiguration(v **types.JWTConfiguration if !ok { return fmt.Errorf("expected UriWithLengthBetween1And2048 to be of type string, got %T instead", value) } - sv.Issuer = &jtv + sv.Issuer = ptr.String(jtv) } default: @@ -14826,7 +14852,7 @@ func awsRestjson1_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected StringWithLengthBetween1And256 to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "description": @@ -14835,7 +14861,7 @@ func awsRestjson1_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "modelId": @@ -14844,7 +14870,7 @@ func awsRestjson1_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ModelId = &jtv + sv.ModelId = ptr.String(jtv) } case "name": @@ -14853,7 +14879,7 @@ func awsRestjson1_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "schema": @@ -14862,7 +14888,7 @@ func awsRestjson1_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected StringWithLengthBetween0And32K to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } default: @@ -14902,7 +14928,7 @@ func awsRestjson1_deserializeDocumentMutualTlsAuthentication(v **types.MutualTls if !ok { return fmt.Errorf("expected UriWithLengthBetween1And2048 to be of type string, got %T instead", value) } - sv.TruststoreUri = &jtv + sv.TruststoreUri = ptr.String(jtv) } case "truststoreVersion": @@ -14911,7 +14937,7 @@ func awsRestjson1_deserializeDocumentMutualTlsAuthentication(v **types.MutualTls if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.TruststoreVersion = &jtv + sv.TruststoreVersion = ptr.String(jtv) } case "truststoreWarnings": @@ -14956,7 +14982,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceType": @@ -14965,7 +14991,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -15005,7 +15031,7 @@ func awsRestjson1_deserializeDocumentParameterConstraints(v **types.ParameterCon if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Required = &jtv + sv.Required = jtv } default: @@ -15045,7 +15071,7 @@ func awsRestjson1_deserializeDocumentRoute(v **types.Route, value interface{}) e if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "apiKeyRequired": @@ -15054,7 +15080,7 @@ func awsRestjson1_deserializeDocumentRoute(v **types.Route, value interface{}) e if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiKeyRequired = &jtv + sv.ApiKeyRequired = jtv } case "authorizationScopes": @@ -15077,7 +15103,7 @@ func awsRestjson1_deserializeDocumentRoute(v **types.Route, value interface{}) e if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.AuthorizerId = &jtv + sv.AuthorizerId = ptr.String(jtv) } case "modelSelectionExpression": @@ -15086,7 +15112,7 @@ func awsRestjson1_deserializeDocumentRoute(v **types.Route, value interface{}) e if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ModelSelectionExpression = &jtv + sv.ModelSelectionExpression = ptr.String(jtv) } case "operationName": @@ -15095,7 +15121,7 @@ func awsRestjson1_deserializeDocumentRoute(v **types.Route, value interface{}) e if !ok { return fmt.Errorf("expected StringWithLengthBetween1And64 to be of type string, got %T instead", value) } - sv.OperationName = &jtv + sv.OperationName = ptr.String(jtv) } case "requestModels": @@ -15114,7 +15140,7 @@ func awsRestjson1_deserializeDocumentRoute(v **types.Route, value interface{}) e if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RouteId = &jtv + sv.RouteId = ptr.String(jtv) } case "routeKey": @@ -15123,7 +15149,7 @@ func awsRestjson1_deserializeDocumentRoute(v **types.Route, value interface{}) e if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.RouteKey = &jtv + sv.RouteKey = ptr.String(jtv) } case "routeResponseSelectionExpression": @@ -15132,7 +15158,7 @@ func awsRestjson1_deserializeDocumentRoute(v **types.Route, value interface{}) e if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.RouteResponseSelectionExpression = &jtv + sv.RouteResponseSelectionExpression = ptr.String(jtv) } case "target": @@ -15141,7 +15167,7 @@ func awsRestjson1_deserializeDocumentRoute(v **types.Route, value interface{}) e if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } default: @@ -15153,7 +15179,7 @@ func awsRestjson1_deserializeDocumentRoute(v **types.Route, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentRouteModels(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentRouteModels(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15166,21 +15192,21 @@ func awsRestjson1_deserializeDocumentRouteModels(v *map[string]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -15189,7 +15215,7 @@ func awsRestjson1_deserializeDocumentRouteModels(v *map[string]*string, value in return nil } -func awsRestjson1_deserializeDocumentRouteParameters(v *map[string]*types.ParameterConstraints, value interface{}) error { +func awsRestjson1_deserializeDocumentRouteParameters(v *map[string]types.ParameterConstraints, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15202,18 +15228,21 @@ func awsRestjson1_deserializeDocumentRouteParameters(v *map[string]*types.Parame return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.ParameterConstraints + var mv map[string]types.ParameterConstraints if *v == nil { - mv = map[string]*types.ParameterConstraints{} + mv = map[string]types.ParameterConstraints{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.ParameterConstraints - if err := awsRestjson1_deserializeDocumentParameterConstraints(&parsedVal, value); err != nil { + var parsedVal types.ParameterConstraints + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentParameterConstraints(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -15249,7 +15278,7 @@ func awsRestjson1_deserializeDocumentRouteResponse(v **types.RouteResponse, valu if !ok { return fmt.Errorf("expected SelectionExpression to be of type string, got %T instead", value) } - sv.ModelSelectionExpression = &jtv + sv.ModelSelectionExpression = ptr.String(jtv) } case "responseModels": @@ -15268,7 +15297,7 @@ func awsRestjson1_deserializeDocumentRouteResponse(v **types.RouteResponse, valu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RouteResponseId = &jtv + sv.RouteResponseId = ptr.String(jtv) } case "routeResponseKey": @@ -15277,7 +15306,7 @@ func awsRestjson1_deserializeDocumentRouteResponse(v **types.RouteResponse, valu if !ok { return fmt.Errorf("expected SelectionKey to be of type string, got %T instead", value) } - sv.RouteResponseKey = &jtv + sv.RouteResponseKey = ptr.String(jtv) } default: @@ -15317,7 +15346,7 @@ func awsRestjson1_deserializeDocumentRouteSettings(v **types.RouteSettings, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DataTraceEnabled = &jtv + sv.DataTraceEnabled = jtv } case "detailedMetricsEnabled": @@ -15326,7 +15355,7 @@ func awsRestjson1_deserializeDocumentRouteSettings(v **types.RouteSettings, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DetailedMetricsEnabled = &jtv + sv.DetailedMetricsEnabled = jtv } case "loggingLevel": @@ -15348,7 +15377,7 @@ func awsRestjson1_deserializeDocumentRouteSettings(v **types.RouteSettings, valu if err != nil { return err } - sv.ThrottlingBurstLimit = ptr.Int32(int32(i64)) + sv.ThrottlingBurstLimit = int32(i64) } case "throttlingRateLimit": @@ -15361,7 +15390,7 @@ func awsRestjson1_deserializeDocumentRouteSettings(v **types.RouteSettings, valu if err != nil { return err } - sv.ThrottlingRateLimit = &f64 + sv.ThrottlingRateLimit = f64 } default: @@ -15373,7 +15402,7 @@ func awsRestjson1_deserializeDocumentRouteSettings(v **types.RouteSettings, valu return nil } -func awsRestjson1_deserializeDocumentRouteSettingsMap(v *map[string]*types.RouteSettings, value interface{}) error { +func awsRestjson1_deserializeDocumentRouteSettingsMap(v *map[string]types.RouteSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15386,18 +15415,21 @@ func awsRestjson1_deserializeDocumentRouteSettingsMap(v *map[string]*types.Route return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.RouteSettings + var mv map[string]types.RouteSettings if *v == nil { - mv = map[string]*types.RouteSettings{} + mv = map[string]types.RouteSettings{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.RouteSettings - if err := awsRestjson1_deserializeDocumentRouteSettings(&parsedVal, value); err != nil { + var parsedVal types.RouteSettings + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentRouteSettings(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -15405,7 +15437,7 @@ func awsRestjson1_deserializeDocumentRouteSettingsMap(v *map[string]*types.Route return nil } -func awsRestjson1_deserializeDocumentSecurityGroupIdList(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) } @@ -15418,21 +15450,21 @@ func awsRestjson1_deserializeDocumentSecurityGroupIdList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -15474,7 +15506,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "autoDeploy": @@ -15483,7 +15515,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeploy = &jtv + sv.AutoDeploy = jtv } case "clientCertificateId": @@ -15492,7 +15524,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ClientCertificateId = &jtv + sv.ClientCertificateId = ptr.String(jtv) } case "createdDate": @@ -15505,7 +15537,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "defaultRouteSettings": @@ -15519,7 +15551,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "description": @@ -15528,7 +15560,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastDeploymentStatusMessage": @@ -15537,7 +15569,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastDeploymentStatusMessage = &jtv + sv.LastDeploymentStatusMessage = ptr.String(jtv) } case "lastUpdatedDate": @@ -15550,7 +15582,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if err != nil { return err } - sv.LastUpdatedDate = &t + sv.LastUpdatedDate = ptr.Time(t) } case "routeSettings": @@ -15564,7 +15596,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.StageName = &jtv + sv.StageName = ptr.String(jtv) } case "stageVariables": @@ -15586,7 +15618,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentStageVariablesMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStageVariablesMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15599,21 +15631,21 @@ func awsRestjson1_deserializeDocumentStageVariablesMap(v *map[string]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringWithLengthBetween0And2048 to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -15622,7 +15654,7 @@ func awsRestjson1_deserializeDocumentStageVariablesMap(v *map[string]*string, va return nil } -func awsRestjson1_deserializeDocumentSubnetIdList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSubnetIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15635,21 +15667,21 @@ func awsRestjson1_deserializeDocumentSubnetIdList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -15658,7 +15690,7 @@ func awsRestjson1_deserializeDocumentSubnetIdList(v *[]*string, value interface{ return nil } -func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15671,21 +15703,21 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringWithLengthBetween1And1600 to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -15694,7 +15726,7 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return nil } -func awsRestjson1_deserializeDocumentTemplateMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15707,21 +15739,21 @@ func awsRestjson1_deserializeDocumentTemplateMap(v *map[string]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringWithLengthBetween0And32K to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -15758,7 +15790,7 @@ func awsRestjson1_deserializeDocumentTlsConfig(v **types.TlsConfig, value interf if !ok { return fmt.Errorf("expected StringWithLengthBetween1And512 to be of type string, got %T instead", value) } - sv.ServerNameToVerify = &jtv + sv.ServerNameToVerify = ptr.String(jtv) } default: @@ -15798,7 +15830,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LimitType = &jtv + sv.LimitType = ptr.String(jtv) } case "message": @@ -15807,7 +15839,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15851,7 +15883,7 @@ func awsRestjson1_deserializeDocumentVpcLink(v **types.VpcLink, value interface{ if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "name": @@ -15860,7 +15892,7 @@ func awsRestjson1_deserializeDocumentVpcLink(v **types.VpcLink, value interface{ if !ok { return fmt.Errorf("expected StringWithLengthBetween1And128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "securityGroupIds": @@ -15884,7 +15916,7 @@ func awsRestjson1_deserializeDocumentVpcLink(v **types.VpcLink, value interface{ if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.VpcLinkId = &jtv + sv.VpcLinkId = ptr.String(jtv) } case "vpcLinkStatus": @@ -15902,7 +15934,7 @@ func awsRestjson1_deserializeDocumentVpcLink(v **types.VpcLink, value interface{ if !ok { return fmt.Errorf("expected StringWithLengthBetween0And1024 to be of type string, got %T instead", value) } - sv.VpcLinkStatusMessage = &jtv + sv.VpcLinkStatusMessage = ptr.String(jtv) } case "vpcLinkVersion": diff --git a/service/apigatewayv2/go.mod b/service/apigatewayv2/go.mod index 990a8be98cc..bb19719732b 100644 --- a/service/apigatewayv2/go.mod +++ b/service/apigatewayv2/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/apigatewayv2 go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/apigatewayv2/serializers.go b/service/apigatewayv2/serializers.go index 4526c0412b3..c78dbce5d28 100644 --- a/service/apigatewayv2/serializers.go +++ b/service/apigatewayv2/serializers.go @@ -102,14 +102,14 @@ func awsRestjson1_serializeOpDocumentCreateApiInput(v *CreateApiInput, value smi ok.String(*v.Description) } - if v.DisableExecuteApiEndpoint != nil { + if v.DisableExecuteApiEndpoint { ok := object.Key("disableExecuteApiEndpoint") - ok.Boolean(*v.DisableExecuteApiEndpoint) + ok.Boolean(v.DisableExecuteApiEndpoint) } - if v.DisableSchemaValidation != nil { + if v.DisableSchemaValidation { ok := object.Key("disableSchemaValidation") - ok.Boolean(*v.DisableSchemaValidation) + ok.Boolean(v.DisableSchemaValidation) } if v.Name != nil { @@ -214,13 +214,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateApiMappingInput(v *CreateApiMappi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } @@ -313,13 +310,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateAuthorizerInput(v *CreateAuthoriz return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -342,9 +336,9 @@ func awsRestjson1_serializeOpDocumentCreateAuthorizerInput(v *CreateAuthorizerIn ok.String(*v.AuthorizerPayloadFormatVersion) } - if v.AuthorizerResultTtlInSeconds != nil { + if v.AuthorizerResultTtlInSeconds != 0 { ok := object.Key("authorizerResultTtlInSeconds") - ok.Integer(*v.AuthorizerResultTtlInSeconds) + ok.Integer(v.AuthorizerResultTtlInSeconds) } if len(v.AuthorizerType) > 0 { @@ -357,9 +351,9 @@ func awsRestjson1_serializeOpDocumentCreateAuthorizerInput(v *CreateAuthorizerIn ok.String(*v.AuthorizerUri) } - if v.EnableSimpleResponses != nil { + if v.EnableSimpleResponses { ok := object.Key("enableSimpleResponses") - ok.Boolean(*v.EnableSimpleResponses) + ok.Boolean(v.EnableSimpleResponses) } if v.IdentitySource != nil { @@ -451,13 +445,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateDeploymentInput(v *CreateDeployme return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -639,13 +630,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateIntegrationInput(v *CreateIntegra return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -732,9 +720,9 @@ func awsRestjson1_serializeOpDocumentCreateIntegrationInput(v *CreateIntegration ok.String(*v.TemplateSelectionExpression) } - if v.TimeoutInMillis != nil { + if v.TimeoutInMillis != 0 { ok := object.Key("timeoutInMillis") - ok.Integer(*v.TimeoutInMillis) + ok.Integer(v.TimeoutInMillis) } if v.TlsConfig != nil { @@ -809,25 +797,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateIntegrationResponseInput(v *Creat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.IntegrationId == nil { + if v.IntegrationId == nil || len(*v.IntegrationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} } if v.IntegrationId != nil { - if len(*v.IntegrationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} - } if err := encoder.SetURI("IntegrationId").String(*v.IntegrationId); err != nil { return err } @@ -934,13 +916,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateModelInput(v *CreateModelInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -1038,13 +1017,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateRouteInput(v *CreateRouteInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -1057,9 +1033,9 @@ func awsRestjson1_serializeOpDocumentCreateRouteInput(v *CreateRouteInput, value object := value.Object() defer object.Close() - if v.ApiKeyRequired != nil { + if v.ApiKeyRequired { ok := object.Key("apiKeyRequired") - ok.Boolean(*v.ApiKeyRequired) + ok.Boolean(v.ApiKeyRequired) } if v.AuthorizationScopes != nil { @@ -1183,25 +1159,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateRouteResponseInput(v *CreateRoute return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.RouteId == nil { + if v.RouteId == nil || len(*v.RouteId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} } if v.RouteId != nil { - if len(*v.RouteId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} - } if err := encoder.SetURI("RouteId").String(*v.RouteId); err != nil { return err } @@ -1303,13 +1273,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateStageInput(v *CreateStageInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -1329,9 +1296,9 @@ func awsRestjson1_serializeOpDocumentCreateStageInput(v *CreateStageInput, value } } - if v.AutoDeploy != nil { + if v.AutoDeploy { ok := object.Key("autoDeploy") - ok.Boolean(*v.AutoDeploy) + ok.Boolean(v.AutoDeploy) } if v.ClientCertificateId != nil { @@ -1530,25 +1497,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAccessLogSettingsInput(v *DeleteA return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.StageName == nil { + if v.StageName == nil || len(*v.StageName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member StageName must not be empty")} } if v.StageName != nil { - if len(*v.StageName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member StageName must not be empty")} - } if err := encoder.SetURI("StageName").String(*v.StageName); err != nil { return err } @@ -1608,13 +1569,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteApiInput(v *DeleteApiInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -1674,25 +1632,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteApiMappingInput(v *DeleteApiMappi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiMappingId == nil { + if v.ApiMappingId == nil || len(*v.ApiMappingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiMappingId must not be empty")} } if v.ApiMappingId != nil { - if len(*v.ApiMappingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiMappingId must not be empty")} - } if err := encoder.SetURI("ApiMappingId").String(*v.ApiMappingId); err != nil { return err } } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } @@ -1752,25 +1704,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAuthorizerInput(v *DeleteAuthoriz return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.AuthorizerId == nil { + if v.AuthorizerId == nil || len(*v.AuthorizerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AuthorizerId must not be empty")} } if v.AuthorizerId != nil { - if len(*v.AuthorizerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AuthorizerId must not be empty")} - } if err := encoder.SetURI("AuthorizerId").String(*v.AuthorizerId); err != nil { return err } @@ -1830,13 +1776,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteCorsConfigurationInput(v *DeleteC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -1896,25 +1839,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDeploymentInput(v *DeleteDeployme return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.DeploymentId == nil { + if v.DeploymentId == nil || len(*v.DeploymentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentId must not be empty")} } if v.DeploymentId != nil { - if len(*v.DeploymentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentId must not be empty")} - } if err := encoder.SetURI("DeploymentId").String(*v.DeploymentId); err != nil { return err } @@ -1974,13 +1911,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDomainNameInput(v *DeleteDomainNa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } @@ -2040,25 +1974,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteIntegrationInput(v *DeleteIntegra return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.IntegrationId == nil { + if v.IntegrationId == nil || len(*v.IntegrationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} } if v.IntegrationId != nil { - if len(*v.IntegrationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} - } if err := encoder.SetURI("IntegrationId").String(*v.IntegrationId); err != nil { return err } @@ -2118,37 +2046,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteIntegrationResponseInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.IntegrationId == nil { + if v.IntegrationId == nil || len(*v.IntegrationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} } if v.IntegrationId != nil { - if len(*v.IntegrationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} - } if err := encoder.SetURI("IntegrationId").String(*v.IntegrationId); err != nil { return err } } - if v.IntegrationResponseId == nil { + if v.IntegrationResponseId == nil || len(*v.IntegrationResponseId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationResponseId must not be empty")} } if v.IntegrationResponseId != nil { - if len(*v.IntegrationResponseId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationResponseId must not be empty")} - } if err := encoder.SetURI("IntegrationResponseId").String(*v.IntegrationResponseId); err != nil { return err } @@ -2208,25 +2127,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteModelInput(v *DeleteModelInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.ModelId == nil { + if v.ModelId == nil || len(*v.ModelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ModelId must not be empty")} } if v.ModelId != nil { - if len(*v.ModelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ModelId must not be empty")} - } if err := encoder.SetURI("ModelId").String(*v.ModelId); err != nil { return err } @@ -2286,25 +2199,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRouteInput(v *DeleteRouteInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.RouteId == nil { + if v.RouteId == nil || len(*v.RouteId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} } if v.RouteId != nil { - if len(*v.RouteId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} - } if err := encoder.SetURI("RouteId").String(*v.RouteId); err != nil { return err } @@ -2364,37 +2271,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRouteRequestParameterInput(v *Del return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.RequestParameterKey == nil { + if v.RequestParameterKey == nil || len(*v.RequestParameterKey) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RequestParameterKey must not be empty")} } if v.RequestParameterKey != nil { - if len(*v.RequestParameterKey) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RequestParameterKey must not be empty")} - } if err := encoder.SetURI("RequestParameterKey").String(*v.RequestParameterKey); err != nil { return err } } - if v.RouteId == nil { + if v.RouteId == nil || len(*v.RouteId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} } if v.RouteId != nil { - if len(*v.RouteId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} - } if err := encoder.SetURI("RouteId").String(*v.RouteId); err != nil { return err } @@ -2454,37 +2352,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRouteResponseInput(v *DeleteRoute return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.RouteId == nil { + if v.RouteId == nil || len(*v.RouteId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} } if v.RouteId != nil { - if len(*v.RouteId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} - } if err := encoder.SetURI("RouteId").String(*v.RouteId); err != nil { return err } } - if v.RouteResponseId == nil { + if v.RouteResponseId == nil || len(*v.RouteResponseId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RouteResponseId must not be empty")} } if v.RouteResponseId != nil { - if len(*v.RouteResponseId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RouteResponseId must not be empty")} - } if err := encoder.SetURI("RouteResponseId").String(*v.RouteResponseId); err != nil { return err } @@ -2544,37 +2433,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRouteSettingsInput(v *DeleteRoute return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.RouteKey == nil { + if v.RouteKey == nil || len(*v.RouteKey) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RouteKey must not be empty")} } if v.RouteKey != nil { - if len(*v.RouteKey) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RouteKey must not be empty")} - } if err := encoder.SetURI("RouteKey").String(*v.RouteKey); err != nil { return err } } - if v.StageName == nil { + if v.StageName == nil || len(*v.StageName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member StageName must not be empty")} } if v.StageName != nil { - if len(*v.StageName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member StageName must not be empty")} - } if err := encoder.SetURI("StageName").String(*v.StageName); err != nil { return err } @@ -2634,25 +2514,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteStageInput(v *DeleteStageInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.StageName == nil { + if v.StageName == nil || len(*v.StageName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member StageName must not be empty")} } if v.StageName != nil { - if len(*v.StageName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member StageName must not be empty")} - } if err := encoder.SetURI("StageName").String(*v.StageName); err != nil { return err } @@ -2712,13 +2586,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVpcLinkInput(v *DeleteVpcLinkInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VpcLinkId == nil { + if v.VpcLinkId == nil || len(*v.VpcLinkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VpcLinkId must not be empty")} } if v.VpcLinkId != nil { - if len(*v.VpcLinkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VpcLinkId must not be empty")} - } if err := encoder.SetURI("VpcLinkId").String(*v.VpcLinkId); err != nil { return err } @@ -2778,13 +2649,10 @@ func awsRestjson1_serializeOpHttpBindingsExportApiInput(v *ExportApiInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -2794,21 +2662,18 @@ func awsRestjson1_serializeOpHttpBindingsExportApiInput(v *ExportApiInput, encod encoder.SetQuery("exportVersion").String(*v.ExportVersion) } - if v.IncludeExtensions != nil { - encoder.SetQuery("includeExtensions").Boolean(*v.IncludeExtensions) + if v.IncludeExtensions { + encoder.SetQuery("includeExtensions").Boolean(v.IncludeExtensions) } if v.OutputType != nil { encoder.SetQuery("outputType").String(*v.OutputType) } - if v.Specification == nil { + if v.Specification == nil || len(*v.Specification) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Specification must not be empty")} } if v.Specification != nil { - if len(*v.Specification) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Specification must not be empty")} - } if err := encoder.SetURI("Specification").String(*v.Specification); err != nil { return err } @@ -2872,13 +2737,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApiInput(v *GetApiInput, encoder *ht return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -2938,25 +2800,19 @@ func awsRestjson1_serializeOpHttpBindingsGetApiMappingInput(v *GetApiMappingInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiMappingId == nil { + if v.ApiMappingId == nil || len(*v.ApiMappingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiMappingId must not be empty")} } if v.ApiMappingId != nil { - if len(*v.ApiMappingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiMappingId must not be empty")} - } if err := encoder.SetURI("ApiMappingId").String(*v.ApiMappingId); err != nil { return err } } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } @@ -3016,13 +2872,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApiMappingsInput(v *GetApiMappingsIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } @@ -3152,25 +3005,19 @@ func awsRestjson1_serializeOpHttpBindingsGetAuthorizerInput(v *GetAuthorizerInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.AuthorizerId == nil { + if v.AuthorizerId == nil || len(*v.AuthorizerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AuthorizerId must not be empty")} } if v.AuthorizerId != nil { - if len(*v.AuthorizerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AuthorizerId must not be empty")} - } if err := encoder.SetURI("AuthorizerId").String(*v.AuthorizerId); err != nil { return err } @@ -3230,13 +3077,10 @@ func awsRestjson1_serializeOpHttpBindingsGetAuthorizersInput(v *GetAuthorizersIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -3304,25 +3148,19 @@ func awsRestjson1_serializeOpHttpBindingsGetDeploymentInput(v *GetDeploymentInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.DeploymentId == nil { + if v.DeploymentId == nil || len(*v.DeploymentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentId must not be empty")} } if v.DeploymentId != nil { - if len(*v.DeploymentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentId must not be empty")} - } if err := encoder.SetURI("DeploymentId").String(*v.DeploymentId); err != nil { return err } @@ -3382,13 +3220,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDeploymentsInput(v *GetDeploymentsIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -3456,13 +3291,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDomainNameInput(v *GetDomainNameInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } @@ -3584,25 +3416,19 @@ func awsRestjson1_serializeOpHttpBindingsGetIntegrationInput(v *GetIntegrationIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.IntegrationId == nil { + if v.IntegrationId == nil || len(*v.IntegrationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} } if v.IntegrationId != nil { - if len(*v.IntegrationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} - } if err := encoder.SetURI("IntegrationId").String(*v.IntegrationId); err != nil { return err } @@ -3662,37 +3488,28 @@ func awsRestjson1_serializeOpHttpBindingsGetIntegrationResponseInput(v *GetInteg return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.IntegrationId == nil { + if v.IntegrationId == nil || len(*v.IntegrationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} } if v.IntegrationId != nil { - if len(*v.IntegrationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} - } if err := encoder.SetURI("IntegrationId").String(*v.IntegrationId); err != nil { return err } } - if v.IntegrationResponseId == nil { + if v.IntegrationResponseId == nil || len(*v.IntegrationResponseId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationResponseId must not be empty")} } if v.IntegrationResponseId != nil { - if len(*v.IntegrationResponseId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationResponseId must not be empty")} - } if err := encoder.SetURI("IntegrationResponseId").String(*v.IntegrationResponseId); err != nil { return err } @@ -3752,25 +3569,19 @@ func awsRestjson1_serializeOpHttpBindingsGetIntegrationResponsesInput(v *GetInte return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.IntegrationId == nil { + if v.IntegrationId == nil || len(*v.IntegrationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} } if v.IntegrationId != nil { - if len(*v.IntegrationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} - } if err := encoder.SetURI("IntegrationId").String(*v.IntegrationId); err != nil { return err } @@ -3838,13 +3649,10 @@ func awsRestjson1_serializeOpHttpBindingsGetIntegrationsInput(v *GetIntegrations return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -3912,25 +3720,19 @@ func awsRestjson1_serializeOpHttpBindingsGetModelInput(v *GetModelInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.ModelId == nil { + if v.ModelId == nil || len(*v.ModelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ModelId must not be empty")} } if v.ModelId != nil { - if len(*v.ModelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ModelId must not be empty")} - } if err := encoder.SetURI("ModelId").String(*v.ModelId); err != nil { return err } @@ -3990,13 +3792,10 @@ func awsRestjson1_serializeOpHttpBindingsGetModelsInput(v *GetModelsInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -4064,25 +3863,19 @@ func awsRestjson1_serializeOpHttpBindingsGetModelTemplateInput(v *GetModelTempla return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.ModelId == nil { + if v.ModelId == nil || len(*v.ModelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ModelId must not be empty")} } if v.ModelId != nil { - if len(*v.ModelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ModelId must not be empty")} - } if err := encoder.SetURI("ModelId").String(*v.ModelId); err != nil { return err } @@ -4142,25 +3935,19 @@ func awsRestjson1_serializeOpHttpBindingsGetRouteInput(v *GetRouteInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.RouteId == nil { + if v.RouteId == nil || len(*v.RouteId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} } if v.RouteId != nil { - if len(*v.RouteId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} - } if err := encoder.SetURI("RouteId").String(*v.RouteId); err != nil { return err } @@ -4220,37 +4007,28 @@ func awsRestjson1_serializeOpHttpBindingsGetRouteResponseInput(v *GetRouteRespon return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.RouteId == nil { + if v.RouteId == nil || len(*v.RouteId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} } if v.RouteId != nil { - if len(*v.RouteId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} - } if err := encoder.SetURI("RouteId").String(*v.RouteId); err != nil { return err } } - if v.RouteResponseId == nil { + if v.RouteResponseId == nil || len(*v.RouteResponseId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RouteResponseId must not be empty")} } if v.RouteResponseId != nil { - if len(*v.RouteResponseId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RouteResponseId must not be empty")} - } if err := encoder.SetURI("RouteResponseId").String(*v.RouteResponseId); err != nil { return err } @@ -4310,13 +4088,10 @@ func awsRestjson1_serializeOpHttpBindingsGetRouteResponsesInput(v *GetRouteRespo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -4330,13 +4105,10 @@ func awsRestjson1_serializeOpHttpBindingsGetRouteResponsesInput(v *GetRouteRespo encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.RouteId == nil { + if v.RouteId == nil || len(*v.RouteId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} } if v.RouteId != nil { - if len(*v.RouteId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} - } if err := encoder.SetURI("RouteId").String(*v.RouteId); err != nil { return err } @@ -4396,13 +4168,10 @@ func awsRestjson1_serializeOpHttpBindingsGetRoutesInput(v *GetRoutesInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -4470,25 +4239,19 @@ func awsRestjson1_serializeOpHttpBindingsGetStageInput(v *GetStageInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.StageName == nil { + if v.StageName == nil || len(*v.StageName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member StageName must not be empty")} } if v.StageName != nil { - if len(*v.StageName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member StageName must not be empty")} - } if err := encoder.SetURI("StageName").String(*v.StageName); err != nil { return err } @@ -4548,13 +4311,10 @@ func awsRestjson1_serializeOpHttpBindingsGetStagesInput(v *GetStagesInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -4622,13 +4382,10 @@ func awsRestjson1_serializeOpHttpBindingsGetTagsInput(v *GetTagsInput, encoder * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -4688,13 +4445,10 @@ func awsRestjson1_serializeOpHttpBindingsGetVpcLinkInput(v *GetVpcLinkInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VpcLinkId == nil { + if v.VpcLinkId == nil || len(*v.VpcLinkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VpcLinkId must not be empty")} } if v.VpcLinkId != nil { - if len(*v.VpcLinkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VpcLinkId must not be empty")} - } if err := encoder.SetURI("VpcLinkId").String(*v.VpcLinkId); err != nil { return err } @@ -4831,8 +4585,8 @@ func awsRestjson1_serializeOpHttpBindingsImportApiInput(v *ImportApiInput, encod encoder.SetQuery("basepath").String(*v.Basepath) } - if v.FailOnWarnings != nil { - encoder.SetQuery("failOnWarnings").Boolean(*v.FailOnWarnings) + if v.FailOnWarnings { + encoder.SetQuery("failOnWarnings").Boolean(v.FailOnWarnings) } return nil @@ -4912,13 +4666,10 @@ func awsRestjson1_serializeOpHttpBindingsReimportApiInput(v *ReimportApiInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -4928,8 +4679,8 @@ func awsRestjson1_serializeOpHttpBindingsReimportApiInput(v *ReimportApiInput, e encoder.SetQuery("basepath").String(*v.Basepath) } - if v.FailOnWarnings != nil { - encoder.SetQuery("failOnWarnings").Boolean(*v.FailOnWarnings) + if v.FailOnWarnings { + encoder.SetQuery("failOnWarnings").Boolean(v.FailOnWarnings) } return nil @@ -4998,25 +4749,19 @@ func awsRestjson1_serializeOpHttpBindingsResetAuthorizersCacheInput(v *ResetAuth return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.StageName == nil { + if v.StageName == nil || len(*v.StageName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member StageName must not be empty")} } if v.StageName != nil { - if len(*v.StageName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member StageName must not be empty")} - } if err := encoder.SetURI("StageName").String(*v.StageName); err != nil { return err } @@ -5087,13 +4832,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -5167,13 +4909,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -5181,10 +4920,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -5253,13 +4989,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateApiInput(v *UpdateApiInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } @@ -5294,14 +5027,14 @@ func awsRestjson1_serializeOpDocumentUpdateApiInput(v *UpdateApiInput, value smi ok.String(*v.Description) } - if v.DisableExecuteApiEndpoint != nil { + if v.DisableExecuteApiEndpoint { ok := object.Key("disableExecuteApiEndpoint") - ok.Boolean(*v.DisableExecuteApiEndpoint) + ok.Boolean(v.DisableExecuteApiEndpoint) } - if v.DisableSchemaValidation != nil { + if v.DisableSchemaValidation { ok := object.Key("disableSchemaValidation") - ok.Boolean(*v.DisableSchemaValidation) + ok.Boolean(v.DisableSchemaValidation) } if v.Name != nil { @@ -5394,25 +5127,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateApiMappingInput(v *UpdateApiMappi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiMappingId == nil { + if v.ApiMappingId == nil || len(*v.ApiMappingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiMappingId must not be empty")} } if v.ApiMappingId != nil { - if len(*v.ApiMappingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiMappingId must not be empty")} - } if err := encoder.SetURI("ApiMappingId").String(*v.ApiMappingId); err != nil { return err } } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } @@ -5505,25 +5232,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAuthorizerInput(v *UpdateAuthoriz return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.AuthorizerId == nil { + if v.AuthorizerId == nil || len(*v.AuthorizerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AuthorizerId must not be empty")} } if v.AuthorizerId != nil { - if len(*v.AuthorizerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AuthorizerId must not be empty")} - } if err := encoder.SetURI("AuthorizerId").String(*v.AuthorizerId); err != nil { return err } @@ -5546,9 +5267,9 @@ func awsRestjson1_serializeOpDocumentUpdateAuthorizerInput(v *UpdateAuthorizerIn ok.String(*v.AuthorizerPayloadFormatVersion) } - if v.AuthorizerResultTtlInSeconds != nil { + if v.AuthorizerResultTtlInSeconds != 0 { ok := object.Key("authorizerResultTtlInSeconds") - ok.Integer(*v.AuthorizerResultTtlInSeconds) + ok.Integer(v.AuthorizerResultTtlInSeconds) } if len(v.AuthorizerType) > 0 { @@ -5561,9 +5282,9 @@ func awsRestjson1_serializeOpDocumentUpdateAuthorizerInput(v *UpdateAuthorizerIn ok.String(*v.AuthorizerUri) } - if v.EnableSimpleResponses != nil { + if v.EnableSimpleResponses { ok := object.Key("enableSimpleResponses") - ok.Boolean(*v.EnableSimpleResponses) + ok.Boolean(v.EnableSimpleResponses) } if v.IdentitySource != nil { @@ -5655,25 +5376,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDeploymentInput(v *UpdateDeployme return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.DeploymentId == nil { + if v.DeploymentId == nil || len(*v.DeploymentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentId must not be empty")} } if v.DeploymentId != nil { - if len(*v.DeploymentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentId must not be empty")} - } if err := encoder.SetURI("DeploymentId").String(*v.DeploymentId); err != nil { return err } @@ -5756,13 +5471,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDomainNameInput(v *UpdateDomainNa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } @@ -5854,25 +5566,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateIntegrationInput(v *UpdateIntegra return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.IntegrationId == nil { + if v.IntegrationId == nil || len(*v.IntegrationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} } if v.IntegrationId != nil { - if len(*v.IntegrationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} - } if err := encoder.SetURI("IntegrationId").String(*v.IntegrationId); err != nil { return err } @@ -5959,9 +5665,9 @@ func awsRestjson1_serializeOpDocumentUpdateIntegrationInput(v *UpdateIntegration ok.String(*v.TemplateSelectionExpression) } - if v.TimeoutInMillis != nil { + if v.TimeoutInMillis != 0 { ok := object.Key("timeoutInMillis") - ok.Integer(*v.TimeoutInMillis) + ok.Integer(v.TimeoutInMillis) } if v.TlsConfig != nil { @@ -6036,37 +5742,28 @@ func awsRestjson1_serializeOpHttpBindingsUpdateIntegrationResponseInput(v *Updat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.IntegrationId == nil { + if v.IntegrationId == nil || len(*v.IntegrationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} } if v.IntegrationId != nil { - if len(*v.IntegrationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationId must not be empty")} - } if err := encoder.SetURI("IntegrationId").String(*v.IntegrationId); err != nil { return err } } - if v.IntegrationResponseId == nil { + if v.IntegrationResponseId == nil || len(*v.IntegrationResponseId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationResponseId must not be empty")} } if v.IntegrationResponseId != nil { - if len(*v.IntegrationResponseId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IntegrationResponseId must not be empty")} - } if err := encoder.SetURI("IntegrationResponseId").String(*v.IntegrationResponseId); err != nil { return err } @@ -6173,25 +5870,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateModelInput(v *UpdateModelInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.ModelId == nil { + if v.ModelId == nil || len(*v.ModelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ModelId must not be empty")} } if v.ModelId != nil { - if len(*v.ModelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ModelId must not be empty")} - } if err := encoder.SetURI("ModelId").String(*v.ModelId); err != nil { return err } @@ -6289,25 +5980,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRouteInput(v *UpdateRouteInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.RouteId == nil { + if v.RouteId == nil || len(*v.RouteId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} } if v.RouteId != nil { - if len(*v.RouteId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} - } if err := encoder.SetURI("RouteId").String(*v.RouteId); err != nil { return err } @@ -6320,9 +6005,9 @@ func awsRestjson1_serializeOpDocumentUpdateRouteInput(v *UpdateRouteInput, value object := value.Object() defer object.Close() - if v.ApiKeyRequired != nil { + if v.ApiKeyRequired { ok := object.Key("apiKeyRequired") - ok.Boolean(*v.ApiKeyRequired) + ok.Boolean(v.ApiKeyRequired) } if v.AuthorizationScopes != nil { @@ -6446,37 +6131,28 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRouteResponseInput(v *UpdateRoute return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.RouteId == nil { + if v.RouteId == nil || len(*v.RouteId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} } if v.RouteId != nil { - if len(*v.RouteId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RouteId must not be empty")} - } if err := encoder.SetURI("RouteId").String(*v.RouteId); err != nil { return err } } - if v.RouteResponseId == nil { + if v.RouteResponseId == nil || len(*v.RouteResponseId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RouteResponseId must not be empty")} } if v.RouteResponseId != nil { - if len(*v.RouteResponseId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RouteResponseId must not be empty")} - } if err := encoder.SetURI("RouteResponseId").String(*v.RouteResponseId); err != nil { return err } @@ -6578,25 +6254,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateStageInput(v *UpdateStageInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApiId must not be empty")} - } if err := encoder.SetURI("ApiId").String(*v.ApiId); err != nil { return err } } - if v.StageName == nil { + if v.StageName == nil || len(*v.StageName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member StageName must not be empty")} } if v.StageName != nil { - if len(*v.StageName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member StageName must not be empty")} - } if err := encoder.SetURI("StageName").String(*v.StageName); err != nil { return err } @@ -6616,9 +6286,9 @@ func awsRestjson1_serializeOpDocumentUpdateStageInput(v *UpdateStageInput, value } } - if v.AutoDeploy != nil { + if v.AutoDeploy { ok := object.Key("autoDeploy") - ok.Boolean(*v.AutoDeploy) + ok.Boolean(v.AutoDeploy) } if v.ClientCertificateId != nil { @@ -6722,13 +6392,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVpcLinkInput(v *UpdateVpcLinkInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VpcLinkId == nil { + if v.VpcLinkId == nil || len(*v.VpcLinkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VpcLinkId must not be empty")} } if v.VpcLinkId != nil { - if len(*v.VpcLinkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VpcLinkId must not be empty")} - } if err := encoder.SetURI("VpcLinkId").String(*v.VpcLinkId); err != nil { return err } @@ -6749,17 +6416,13 @@ func awsRestjson1_serializeOpDocumentUpdateVpcLinkInput(v *UpdateVpcLinkInput, v return nil } -func awsRestjson1_serializeDocument__listOf__string(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6781,17 +6444,13 @@ func awsRestjson1_serializeDocumentAccessLogSettings(v *types.AccessLogSettings, return nil } -func awsRestjson1_serializeDocumentAuthorizationScopes(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAuthorizationScopes(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6800,9 +6459,9 @@ func awsRestjson1_serializeDocumentCors(v *types.Cors, value smithyjson.Value) e object := value.Object() defer object.Close() - if v.AllowCredentials != nil { + if v.AllowCredentials { ok := object.Key("allowCredentials") - ok.Boolean(*v.AllowCredentials) + ok.Boolean(v.AllowCredentials) } if v.AllowHeaders != nil { @@ -6833,55 +6492,43 @@ func awsRestjson1_serializeDocumentCors(v *types.Cors, value smithyjson.Value) e } } - if v.MaxAge != nil { + if v.MaxAge != 0 { ok := object.Key("maxAge") - ok.Integer(*v.MaxAge) + ok.Integer(v.MaxAge) } return nil } -func awsRestjson1_serializeDocumentCorsHeaderList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCorsHeaderList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentCorsMethodList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCorsMethodList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentCorsOriginList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCorsOriginList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6938,49 +6585,37 @@ func awsRestjson1_serializeDocumentDomainNameConfiguration(v *types.DomainNameCo return nil } -func awsRestjson1_serializeDocumentDomainNameConfigurations(v []*types.DomainNameConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDomainNameConfigurations(v []types.DomainNameConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDomainNameConfiguration(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDomainNameConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentIdentitySourceList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIdentitySourceList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentIntegrationParameters(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIntegrationParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -7025,40 +6660,33 @@ func awsRestjson1_serializeDocumentParameterConstraints(v *types.ParameterConstr object := value.Object() defer object.Close() - if v.Required != nil { + if v.Required { ok := object.Key("required") - ok.Boolean(*v.Required) + ok.Boolean(v.Required) } return nil } -func awsRestjson1_serializeDocumentRouteModels(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRouteModels(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentRouteParameters(v map[string]*types.ParameterConstraints, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRouteParameters(v map[string]types.ParameterConstraints, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentParameterConstraints(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentParameterConstraints(&mapVar, om); err != nil { return err } } @@ -7069,14 +6697,14 @@ func awsRestjson1_serializeDocumentRouteSettings(v *types.RouteSettings, value s object := value.Object() defer object.Close() - if v.DataTraceEnabled != nil { + if v.DataTraceEnabled { ok := object.Key("dataTraceEnabled") - ok.Boolean(*v.DataTraceEnabled) + ok.Boolean(v.DataTraceEnabled) } - if v.DetailedMetricsEnabled != nil { + if v.DetailedMetricsEnabled { ok := object.Key("detailedMetricsEnabled") - ok.Boolean(*v.DetailedMetricsEnabled) + ok.Boolean(v.DetailedMetricsEnabled) } if len(v.LoggingLevel) > 0 { @@ -7084,107 +6712,84 @@ func awsRestjson1_serializeDocumentRouteSettings(v *types.RouteSettings, value s ok.String(string(v.LoggingLevel)) } - if v.ThrottlingBurstLimit != nil { + if v.ThrottlingBurstLimit != 0 { ok := object.Key("throttlingBurstLimit") - ok.Integer(*v.ThrottlingBurstLimit) + ok.Integer(v.ThrottlingBurstLimit) } - if v.ThrottlingRateLimit != nil { + if v.ThrottlingRateLimit != 0 { ok := object.Key("throttlingRateLimit") - ok.Double(*v.ThrottlingRateLimit) + ok.Double(v.ThrottlingRateLimit) } return nil } -func awsRestjson1_serializeDocumentRouteSettingsMap(v map[string]*types.RouteSettings, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRouteSettingsMap(v map[string]types.RouteSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentRouteSettings(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentRouteSettings(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentSecurityGroupIdList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSecurityGroupIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentStageVariablesMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStageVariablesMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentSubnetIdList(v []*string, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentTemplateMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTemplateMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/apigatewayv2/types/types.go b/service/apigatewayv2/types/types.go index 5ce2faaf2b3..e8037692bc7 100644 --- a/service/apigatewayv2/types/types.go +++ b/service/apigatewayv2/types/types.go @@ -46,7 +46,7 @@ type Api struct { // Specifies whether an API is managed by API Gateway. You can't update or delete a // managed API by using API Gateway. A managed API can be deleted only through the // tooling or service that created it. - ApiGatewayManaged *bool + ApiGatewayManaged bool // The API ID. ApiId *string @@ -70,26 +70,26 @@ type Api struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint *bool + DisableExecuteApiEndpoint bool // Avoid validating models when creating a deployment. Supported only for WebSocket // APIs. - DisableSchemaValidation *bool + DisableSchemaValidation bool // The validation information during API import. This may include particular // properties of your OpenAPI definition which are ignored during import. Supported // only for HTTP APIs. - ImportInfo []*string + ImportInfo []string // A collection of tags associated with the API. - Tags map[string]*string + Tags map[string]string // A version identifier for the API. Version *string // The warning messages reported when failonwarnings is turned on during API // import. - Warnings []*string + Warnings []string } // Represents an API mapping. @@ -139,7 +139,7 @@ type Authorizer struct { // 0, authorization caching is disabled. If it is greater than 0, API Gateway // caches authorizer responses. The maximum value is 3600, or 1 hour. Supported // only for HTTP API Lambda authorizers. - AuthorizerResultTtlInSeconds *int32 + AuthorizerResultTtlInSeconds int32 // The authorizer type. Specify REQUEST for a Lambda function using incoming // request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP @@ -163,7 +163,7 @@ type Authorizer struct { // policy. Supported only for HTTP APIs. To learn more, see Working with AWS Lambda // authorizers for HTTP APIs // (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html) - EnableSimpleResponses *bool + EnableSimpleResponses bool // The identity source for which authorization is requested. For a REQUEST // authorizer, this is optional. The value is a set of one or more mapping @@ -185,7 +185,7 @@ type Authorizer struct { // For JWT, a single entry that specifies where to extract the JSON Web Token (JWT) // from inbound requests. Currently only header-based and query parameter-based // selections are supported, for example $request.header.Authorization. - IdentitySource []*string + IdentitySource []string // The validation expression does not apply to the REQUEST authorizer. IdentityValidationExpression *string @@ -203,23 +203,23 @@ type Cors struct { // Specifies whether credentials are included in the CORS request. Supported only // for HTTP APIs. - AllowCredentials *bool + AllowCredentials bool // Represents a collection of allowed headers. Supported only for HTTP APIs. - AllowHeaders []*string + AllowHeaders []string // Represents a collection of allowed HTTP methods. Supported only for HTTP APIs. - AllowMethods []*string + AllowMethods []string // Represents a collection of allowed origins. Supported only for HTTP APIs. - AllowOrigins []*string + AllowOrigins []string // Represents a collection of exposed headers. Supported only for HTTP APIs. - ExposeHeaders []*string + ExposeHeaders []string // The number of seconds that the browser should cache preflight request results. // Supported only for HTTP APIs. - MaxAge *int32 + MaxAge int32 } // An immutable representation of an API that can be called by users. A Deployment @@ -227,7 +227,7 @@ type Cors struct { type Deployment struct { // Specifies whether a deployment was automatically released. - AutoDeployed *bool + AutoDeployed bool // The date and time when the Deployment resource was created. CreatedDate *time.Time @@ -257,13 +257,13 @@ type DomainName struct { ApiMappingSelectionExpression *string // The domain name configurations. - DomainNameConfigurations []*DomainNameConfiguration + DomainNameConfigurations []DomainNameConfiguration // The mutual TLS authentication configuration for a custom domain name. MutualTlsAuthentication *MutualTlsAuthentication // The collection of tags associated with a domain name. - Tags map[string]*string + Tags map[string]string } // The domain name configuration. @@ -311,7 +311,7 @@ type Integration struct { // Specifies whether an integration is managed by API Gateway. If you created an // API using using quick create, the resulting integration is managed by API // Gateway. You can update a managed integration, but you can't delete it. - ApiGatewayManaged *bool + ApiGatewayManaged bool // The ID of the VPC link for a private integration. Supported only for HTTP APIs. ConnectionId *string @@ -416,13 +416,13 @@ type Integration struct { // variables, or context variables that are evaluated at runtime. To learn more, // see Working with AWS service integrations for HTTP APIs // (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services.html). - RequestParameters map[string]*string + RequestParameters map[string]string // Represents a map of Velocity templates that are applied on the request payload // based on the value of the Content-Type header sent by the client. The content // type value is the key in this map, and the template (as a String) is the value. // Supported only for WebSocket APIs. - RequestTemplates map[string]*string + RequestTemplates map[string]string // The template selection expression for the integration. Supported only for // WebSocket APIs. @@ -431,7 +431,7 @@ type Integration struct { // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between // 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for // WebSocket APIs and 30 seconds for HTTP APIs. - TimeoutInMillis *int32 + TimeoutInMillis int32 // The TLS configuration for a private integration. If you specify a TLS // configuration, private integration traffic uses the HTTPS protocol. Supported @@ -471,12 +471,12 @@ type IntegrationResponse struct { // integration.response.body.{JSON-expression}, where name is a valid and unique // response header name and JSON-expression is a valid JSON expression without the // $ prefix. - ResponseParameters map[string]*string + ResponseParameters map[string]string // The collection of response templates for the integration response as a // string-to-string map of key-value pairs. Response templates are represented as a // key/value map, with a content-type as the key and a template as the value. - ResponseTemplates map[string]*string + ResponseTemplates map[string]string // The template selection expressions for the integration response. TemplateSelectionExpression *string @@ -490,7 +490,7 @@ type JWTConfiguration struct { // that matches at least one entry in this list. See RFC 7519 // (https://tools.ietf.org/html/rfc7519#section-4.1.3). Supported only for HTTP // APIs. - Audience []*string + Audience []string // The base domain of the identity provider that issues JSON Web Tokens. For // example, an Amazon Cognito user pool has the following format: @@ -541,7 +541,7 @@ type MutualTlsAuthentication struct { // Invalid certificates produce warnings. Mutual TLS is still enabled, but some // clients might not be able to access your API. To resolve warnings, upload a new // truststore to S3, and then update you domain name to use the new version. - TruststoreWarnings []*string + TruststoreWarnings []string } type MutualTlsAuthenticationInput struct { @@ -564,7 +564,7 @@ type MutualTlsAuthenticationInput struct { type ParameterConstraints struct { // Whether or not the parameter is required. - Required *bool + Required bool } // Represents a route. @@ -578,11 +578,11 @@ type Route struct { // Specifies whether a route is managed by API Gateway. If you created an API using // quick create, the $default route is managed by API Gateway. You can't modify the // $default route key. - ApiGatewayManaged *bool + ApiGatewayManaged bool // Specifies whether an API key is required for this route. Supported only for // WebSocket APIs. - ApiKeyRequired *bool + ApiKeyRequired bool // A list of authorization scopes configured on a route. The scopes are used with a // JWT authorizer to authorize the method invocation. The authorization works by @@ -591,7 +591,7 @@ type Route struct { // a claimed scope in the access token. Otherwise, the invocation is not // authorized. When the route scope is configured, the client must provide an // access token instead of an identity token for authorization purposes. - AuthorizationScopes []*string + AuthorizationScopes []string // The authorization type for the route. For WebSocket APIs, valid values are NONE // for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a @@ -612,10 +612,10 @@ type Route struct { OperationName *string // The request models for the route. Supported only for WebSocket APIs. - RequestModels map[string]*string + RequestModels map[string]string // The request parameters for the route. Supported only for WebSocket APIs. - RequestParameters map[string]*ParameterConstraints + RequestParameters map[string]ParameterConstraints // The route ID. RouteId *string @@ -641,10 +641,10 @@ type RouteResponse struct { ModelSelectionExpression *string // Represents the response models of a route response. - ResponseModels map[string]*string + ResponseModels map[string]string // Represents the response parameters of a route response. - ResponseParameters map[string]*ParameterConstraints + ResponseParameters map[string]ParameterConstraints // Represents the identifier of a route response. RouteResponseId *string @@ -656,10 +656,10 @@ type RouteSettings struct { // Specifies whether (true) or not (false) data trace logging is enabled for this // route. This property affects the log entries pushed to Amazon CloudWatch Logs. // Supported only for WebSocket APIs. - DataTraceEnabled *bool + DataTraceEnabled bool // Specifies whether detailed metrics are enabled. - DetailedMetricsEnabled *bool + DetailedMetricsEnabled bool // Specifies the logging level for this route: INFO, ERROR, or OFF. This property // affects the log entries pushed to Amazon CloudWatch Logs. Supported only for @@ -667,10 +667,10 @@ type RouteSettings struct { LoggingLevel LoggingLevel // Specifies the throttling burst limit. - ThrottlingBurstLimit *int32 + ThrottlingBurstLimit int32 // Specifies the throttling rate limit. - ThrottlingRateLimit *float64 + ThrottlingRateLimit float64 } // Represents an API stage. @@ -687,11 +687,11 @@ type Stage struct { // Specifies whether a stage is managed by API Gateway. If you created an API using // quick create, the $default stage is managed by API Gateway. You can't modify the // $default stage. - ApiGatewayManaged *bool + ApiGatewayManaged bool // Specifies whether updates to an API automatically trigger a new deployment. The // default value is false. - AutoDeploy *bool + AutoDeploy bool // The identifier of a client certificate for a Stage. Supported only for WebSocket // APIs. @@ -718,15 +718,15 @@ type Stage struct { LastUpdatedDate *time.Time // Route settings for the stage, by routeKey. - RouteSettings map[string]*RouteSettings + RouteSettings map[string]RouteSettings // A map that defines the stage variables for a stage resource. Variable names can // have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+. - StageVariables map[string]*string + StageVariables map[string]string // The collection of tags. Each tag element is associated with a given resource. - Tags map[string]*string + Tags map[string]string } // The TLS configuration for a private integration. If you specify a TLS @@ -762,12 +762,12 @@ type VpcLink struct { // A list of security group IDs for the VPC link. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of subnet IDs to include in the VPC link. // // This member is required. - SubnetIds []*string + SubnetIds []string // The ID of the VPC link. // @@ -778,7 +778,7 @@ type VpcLink struct { CreatedDate *time.Time // Tags for the VPC link. - Tags map[string]*string + Tags map[string]string // The status of the VPC link. VpcLinkStatus VpcLinkStatus diff --git a/service/appconfig/api_op_CreateApplication.go b/service/appconfig/api_op_CreateApplication.go index aa4d458877d..6af60d2ffba 100644 --- a/service/appconfig/api_op_CreateApplication.go +++ b/service/appconfig/api_op_CreateApplication.go @@ -43,7 +43,7 @@ type CreateApplicationInput struct { // Metadata to assign to the application. Tags help organize and categorize your // AppConfig resources. Each tag consists of a key and an optional value, both of // which you define. - Tags map[string]*string + Tags map[string]string } type CreateApplicationOutput struct { diff --git a/service/appconfig/api_op_CreateConfigurationProfile.go b/service/appconfig/api_op_CreateConfigurationProfile.go index 8306f8f491f..368cd466e3b 100644 --- a/service/appconfig/api_op_CreateConfigurationProfile.go +++ b/service/appconfig/api_op_CreateConfigurationProfile.go @@ -77,10 +77,10 @@ type CreateConfigurationProfileInput struct { // Metadata to assign to the configuration profile. Tags help organize and // categorize your AppConfig resources. Each tag consists of a key and an optional // value, both of which you define. - Tags map[string]*string + Tags map[string]string // A list of methods for validating the configuration. - Validators []*types.Validator + Validators []types.Validator } type CreateConfigurationProfileOutput struct { @@ -105,7 +105,7 @@ type CreateConfigurationProfileOutput struct { RetrievalRoleArn *string // A list of methods for validating the configuration. - Validators []*types.Validator + Validators []types.Validator // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appconfig/api_op_CreateDeploymentStrategy.go b/service/appconfig/api_op_CreateDeploymentStrategy.go index a7e48559df0..90502289f71 100644 --- a/service/appconfig/api_op_CreateDeploymentStrategy.go +++ b/service/appconfig/api_op_CreateDeploymentStrategy.go @@ -36,13 +36,13 @@ type CreateDeploymentStrategyInput struct { // Total amount of time for a deployment to last. // // This member is required. - DeploymentDurationInMinutes *int32 + DeploymentDurationInMinutes int32 // The percentage of targets to receive a deployed configuration during each // interval. // // This member is required. - GrowthFactor *float32 + GrowthFactor float32 // A name for the deployment strategy. // @@ -59,7 +59,7 @@ type CreateDeploymentStrategyInput struct { // The amount of time AppConfig monitors for alarms before considering the // deployment to be complete and no longer eligible for automatic roll back. - FinalBakeTimeInMinutes *int32 + FinalBakeTimeInMinutes int32 // The algorithm used to define how percentage grows over time. AWS AppConfig // supports the following growth types: Linear: For this type, AppConfig processes @@ -84,24 +84,24 @@ type CreateDeploymentStrategyInput struct { // Metadata to assign to the deployment strategy. Tags help organize and categorize // your AppConfig resources. Each tag consists of a key and an optional value, both // of which you define. - Tags map[string]*string + Tags map[string]string } type CreateDeploymentStrategyOutput struct { // Total amount of time the deployment lasted. - DeploymentDurationInMinutes *int32 + DeploymentDurationInMinutes int32 // The description of the deployment strategy. Description *string // The amount of time AppConfig monitored for alarms before considering the // deployment to be complete and no longer eligible for automatic roll back. - FinalBakeTimeInMinutes *int32 + FinalBakeTimeInMinutes int32 // The percentage of targets that received a deployed configuration during each // interval. - GrowthFactor *float32 + GrowthFactor float32 // The algorithm used to define how percentage grew over time. GrowthType types.GrowthType diff --git a/service/appconfig/api_op_CreateEnvironment.go b/service/appconfig/api_op_CreateEnvironment.go index 2486fbf7146..830a35d248b 100644 --- a/service/appconfig/api_op_CreateEnvironment.go +++ b/service/appconfig/api_op_CreateEnvironment.go @@ -49,12 +49,12 @@ type CreateEnvironmentInput struct { Description *string // Amazon CloudWatch alarms to monitor during the deployment process. - Monitors []*types.Monitor + Monitors []types.Monitor // Metadata to assign to the environment. Tags help organize and categorize your // AppConfig resources. Each tag consists of a key and an optional value, both of // which you define. - Tags map[string]*string + Tags map[string]string } type CreateEnvironmentOutput struct { @@ -69,7 +69,7 @@ type CreateEnvironmentOutput struct { Id *string // Amazon CloudWatch alarms monitored during the deployment. - Monitors []*types.Monitor + Monitors []types.Monitor // The name of the environment. Name *string diff --git a/service/appconfig/api_op_CreateHostedConfigurationVersion.go b/service/appconfig/api_op_CreateHostedConfigurationVersion.go index 83c8a1d1e1e..43fbf9c96af 100644 --- a/service/appconfig/api_op_CreateHostedConfigurationVersion.go +++ b/service/appconfig/api_op_CreateHostedConfigurationVersion.go @@ -57,7 +57,7 @@ type CreateHostedConfigurationVersionInput struct { // configuration updates when creating a new version. To ensure your data is not // overwritten when creating multiple hosted configuration versions in rapid // succession, specify the version of the latest hosted configuration version. - LatestVersionNumber *int32 + LatestVersionNumber int32 } type CreateHostedConfigurationVersionOutput struct { @@ -80,7 +80,7 @@ type CreateHostedConfigurationVersionOutput struct { Description *string // The configuration version. - VersionNumber *int32 + VersionNumber int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appconfig/api_op_DeleteHostedConfigurationVersion.go b/service/appconfig/api_op_DeleteHostedConfigurationVersion.go index 6d54ef9c564..80239df94a2 100644 --- a/service/appconfig/api_op_DeleteHostedConfigurationVersion.go +++ b/service/appconfig/api_op_DeleteHostedConfigurationVersion.go @@ -41,7 +41,7 @@ type DeleteHostedConfigurationVersionInput struct { // The versions number to delete. // // This member is required. - VersionNumber *int32 + VersionNumber int32 } type DeleteHostedConfigurationVersionOutput struct { diff --git a/service/appconfig/api_op_GetConfigurationProfile.go b/service/appconfig/api_op_GetConfigurationProfile.go index 0c03e22d306..ad909185fe1 100644 --- a/service/appconfig/api_op_GetConfigurationProfile.go +++ b/service/appconfig/api_op_GetConfigurationProfile.go @@ -63,7 +63,7 @@ type GetConfigurationProfileOutput struct { RetrievalRoleArn *string // A list of methods for validating the configuration. - Validators []*types.Validator + Validators []types.Validator // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appconfig/api_op_GetDeployment.go b/service/appconfig/api_op_GetDeployment.go index 34d79478f8e..de0de4fc30e 100644 --- a/service/appconfig/api_op_GetDeployment.go +++ b/service/appconfig/api_op_GetDeployment.go @@ -38,7 +38,7 @@ type GetDeploymentInput struct { // The sequence number of the deployment. // // This member is required. - DeploymentNumber *int32 + DeploymentNumber int32 // The ID of the environment that includes the deployment you want to get. // @@ -67,10 +67,10 @@ type GetDeploymentOutput struct { ConfigurationVersion *string // Total amount of time the deployment lasted. - DeploymentDurationInMinutes *int32 + DeploymentDurationInMinutes int32 // The sequence number of the deployment. - DeploymentNumber *int32 + DeploymentNumber int32 // The ID of the deployment strategy that was deployed. DeploymentStrategyId *string @@ -83,21 +83,21 @@ type GetDeploymentOutput struct { // A list containing all events related to a deployment. The most recent events are // displayed first. - EventLog []*types.DeploymentEvent + EventLog []types.DeploymentEvent // The amount of time AppConfig monitored for alarms before considering the // deployment to be complete and no longer eligible for automatic roll back. - FinalBakeTimeInMinutes *int32 + FinalBakeTimeInMinutes int32 // The percentage of targets to receive a deployed configuration during each // interval. - GrowthFactor *float32 + GrowthFactor float32 // The algorithm used to define how percentage grew over time. GrowthType types.GrowthType // The percentage of targets for which the deployment is available. - PercentageComplete *float32 + PercentageComplete float32 // The time the deployment started. StartedAt *time.Time diff --git a/service/appconfig/api_op_GetDeploymentStrategy.go b/service/appconfig/api_op_GetDeploymentStrategy.go index 01faa8a9c99..715d1722f4d 100644 --- a/service/appconfig/api_op_GetDeploymentStrategy.go +++ b/service/appconfig/api_op_GetDeploymentStrategy.go @@ -42,18 +42,18 @@ type GetDeploymentStrategyInput struct { type GetDeploymentStrategyOutput struct { // Total amount of time the deployment lasted. - DeploymentDurationInMinutes *int32 + DeploymentDurationInMinutes int32 // The description of the deployment strategy. Description *string // The amount of time AppConfig monitored for alarms before considering the // deployment to be complete and no longer eligible for automatic roll back. - FinalBakeTimeInMinutes *int32 + FinalBakeTimeInMinutes int32 // The percentage of targets that received a deployed configuration during each // interval. - GrowthFactor *float32 + GrowthFactor float32 // The algorithm used to define how percentage grew over time. GrowthType types.GrowthType diff --git a/service/appconfig/api_op_GetEnvironment.go b/service/appconfig/api_op_GetEnvironment.go index 4da573e1dda..e16a84c1c76 100644 --- a/service/appconfig/api_op_GetEnvironment.go +++ b/service/appconfig/api_op_GetEnvironment.go @@ -57,7 +57,7 @@ type GetEnvironmentOutput struct { Id *string // Amazon CloudWatch alarms monitored during the deployment. - Monitors []*types.Monitor + Monitors []types.Monitor // The name of the environment. Name *string diff --git a/service/appconfig/api_op_GetHostedConfigurationVersion.go b/service/appconfig/api_op_GetHostedConfigurationVersion.go index cc240ed93d1..a9a6c08f9e4 100644 --- a/service/appconfig/api_op_GetHostedConfigurationVersion.go +++ b/service/appconfig/api_op_GetHostedConfigurationVersion.go @@ -41,7 +41,7 @@ type GetHostedConfigurationVersionInput struct { // The version. // // This member is required. - VersionNumber *int32 + VersionNumber int32 } type GetHostedConfigurationVersionOutput struct { @@ -64,7 +64,7 @@ type GetHostedConfigurationVersionOutput struct { Description *string // The configuration version. - VersionNumber *int32 + VersionNumber int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appconfig/api_op_ListApplications.go b/service/appconfig/api_op_ListApplications.go index 85965e8bb6e..0a9114177e5 100644 --- a/service/appconfig/api_op_ListApplications.go +++ b/service/appconfig/api_op_ListApplications.go @@ -31,7 +31,7 @@ type ListApplicationsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -40,7 +40,7 @@ type ListApplicationsInput struct { type ListApplicationsOutput struct { // The elements from this collection. - Items []*types.Application + Items []types.Application // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/appconfig/api_op_ListConfigurationProfiles.go b/service/appconfig/api_op_ListConfigurationProfiles.go index 53562a3fd4a..d5401678e0b 100644 --- a/service/appconfig/api_op_ListConfigurationProfiles.go +++ b/service/appconfig/api_op_ListConfigurationProfiles.go @@ -36,7 +36,7 @@ type ListConfigurationProfilesInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -45,7 +45,7 @@ type ListConfigurationProfilesInput struct { type ListConfigurationProfilesOutput struct { // The elements from this collection. - Items []*types.ConfigurationProfileSummary + Items []types.ConfigurationProfileSummary // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/appconfig/api_op_ListDeploymentStrategies.go b/service/appconfig/api_op_ListDeploymentStrategies.go index a69b9a2563a..49b55866316 100644 --- a/service/appconfig/api_op_ListDeploymentStrategies.go +++ b/service/appconfig/api_op_ListDeploymentStrategies.go @@ -31,7 +31,7 @@ type ListDeploymentStrategiesInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -40,7 +40,7 @@ type ListDeploymentStrategiesInput struct { type ListDeploymentStrategiesOutput struct { // The elements from this collection. - Items []*types.DeploymentStrategy + Items []types.DeploymentStrategy // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/appconfig/api_op_ListDeployments.go b/service/appconfig/api_op_ListDeployments.go index a6a5965c5e6..a9d6eb53599 100644 --- a/service/appconfig/api_op_ListDeployments.go +++ b/service/appconfig/api_op_ListDeployments.go @@ -41,7 +41,7 @@ type ListDeploymentsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -50,7 +50,7 @@ type ListDeploymentsInput struct { type ListDeploymentsOutput struct { // The elements from this collection. - Items []*types.DeploymentSummary + Items []types.DeploymentSummary // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/appconfig/api_op_ListEnvironments.go b/service/appconfig/api_op_ListEnvironments.go index df5d08530cf..01117a9e337 100644 --- a/service/appconfig/api_op_ListEnvironments.go +++ b/service/appconfig/api_op_ListEnvironments.go @@ -36,7 +36,7 @@ type ListEnvironmentsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -45,7 +45,7 @@ type ListEnvironmentsInput struct { type ListEnvironmentsOutput struct { // The elements from this collection. - Items []*types.Environment + Items []types.Environment // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/appconfig/api_op_ListHostedConfigurationVersions.go b/service/appconfig/api_op_ListHostedConfigurationVersions.go index a07b615a5e7..0dcc267fe6d 100644 --- a/service/appconfig/api_op_ListHostedConfigurationVersions.go +++ b/service/appconfig/api_op_ListHostedConfigurationVersions.go @@ -42,7 +42,7 @@ type ListHostedConfigurationVersionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -51,7 +51,7 @@ type ListHostedConfigurationVersionsInput struct { type ListHostedConfigurationVersionsOutput struct { // The elements from this collection. - Items []*types.HostedConfigurationVersionSummary + Items []types.HostedConfigurationVersionSummary // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/appconfig/api_op_ListTagsForResource.go b/service/appconfig/api_op_ListTagsForResource.go index 0915fbfa294..cafc8493c03 100644 --- a/service/appconfig/api_op_ListTagsForResource.go +++ b/service/appconfig/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceOutput struct { // Metadata to assign to AppConfig resources. Tags help organize and categorize // your AppConfig resources. Each tag consists of a key and an optional value, both // of which you define. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appconfig/api_op_StartDeployment.go b/service/appconfig/api_op_StartDeployment.go index f2077ab72aa..86f87676cab 100644 --- a/service/appconfig/api_op_StartDeployment.go +++ b/service/appconfig/api_op_StartDeployment.go @@ -61,7 +61,7 @@ type StartDeploymentInput struct { // Metadata to assign to the deployment. Tags help organize and categorize your // AppConfig resources. Each tag consists of a key and an optional value, both of // which you define. - Tags map[string]*string + Tags map[string]string } type StartDeploymentOutput struct { @@ -85,10 +85,10 @@ type StartDeploymentOutput struct { ConfigurationVersion *string // Total amount of time the deployment lasted. - DeploymentDurationInMinutes *int32 + DeploymentDurationInMinutes int32 // The sequence number of the deployment. - DeploymentNumber *int32 + DeploymentNumber int32 // The ID of the deployment strategy that was deployed. DeploymentStrategyId *string @@ -101,21 +101,21 @@ type StartDeploymentOutput struct { // A list containing all events related to a deployment. The most recent events are // displayed first. - EventLog []*types.DeploymentEvent + EventLog []types.DeploymentEvent // The amount of time AppConfig monitored for alarms before considering the // deployment to be complete and no longer eligible for automatic roll back. - FinalBakeTimeInMinutes *int32 + FinalBakeTimeInMinutes int32 // The percentage of targets to receive a deployed configuration during each // interval. - GrowthFactor *float32 + GrowthFactor float32 // The algorithm used to define how percentage grew over time. GrowthType types.GrowthType // The percentage of targets for which the deployment is available. - PercentageComplete *float32 + PercentageComplete float32 // The time the deployment started. StartedAt *time.Time diff --git a/service/appconfig/api_op_StopDeployment.go b/service/appconfig/api_op_StopDeployment.go index 5092e720abe..8d4bb533ff3 100644 --- a/service/appconfig/api_op_StopDeployment.go +++ b/service/appconfig/api_op_StopDeployment.go @@ -39,7 +39,7 @@ type StopDeploymentInput struct { // The sequence number of the deployment. // // This member is required. - DeploymentNumber *int32 + DeploymentNumber int32 // The environment ID. // @@ -68,10 +68,10 @@ type StopDeploymentOutput struct { ConfigurationVersion *string // Total amount of time the deployment lasted. - DeploymentDurationInMinutes *int32 + DeploymentDurationInMinutes int32 // The sequence number of the deployment. - DeploymentNumber *int32 + DeploymentNumber int32 // The ID of the deployment strategy that was deployed. DeploymentStrategyId *string @@ -84,21 +84,21 @@ type StopDeploymentOutput struct { // A list containing all events related to a deployment. The most recent events are // displayed first. - EventLog []*types.DeploymentEvent + EventLog []types.DeploymentEvent // The amount of time AppConfig monitored for alarms before considering the // deployment to be complete and no longer eligible for automatic roll back. - FinalBakeTimeInMinutes *int32 + FinalBakeTimeInMinutes int32 // The percentage of targets to receive a deployed configuration during each // interval. - GrowthFactor *float32 + GrowthFactor float32 // The algorithm used to define how percentage grew over time. GrowthType types.GrowthType // The percentage of targets for which the deployment is available. - PercentageComplete *float32 + PercentageComplete float32 // The time the deployment started. StartedAt *time.Time diff --git a/service/appconfig/api_op_TagResource.go b/service/appconfig/api_op_TagResource.go index 1c857196feb..8ea18b71039 100644 --- a/service/appconfig/api_op_TagResource.go +++ b/service/appconfig/api_op_TagResource.go @@ -40,7 +40,7 @@ type TagResourceInput struct { // be up to 256 characters. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/appconfig/api_op_UntagResource.go b/service/appconfig/api_op_UntagResource.go index 44ea8de78cc..9e2e2dcf726 100644 --- a/service/appconfig/api_op_UntagResource.go +++ b/service/appconfig/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The tag keys to delete. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/appconfig/api_op_UpdateConfigurationProfile.go b/service/appconfig/api_op_UpdateConfigurationProfile.go index a6c2af7470c..a3c92e260b4 100644 --- a/service/appconfig/api_op_UpdateConfigurationProfile.go +++ b/service/appconfig/api_op_UpdateConfigurationProfile.go @@ -50,7 +50,7 @@ type UpdateConfigurationProfileInput struct { RetrievalRoleArn *string // A list of methods for validating the configuration. - Validators []*types.Validator + Validators []types.Validator } type UpdateConfigurationProfileOutput struct { @@ -75,7 +75,7 @@ type UpdateConfigurationProfileOutput struct { RetrievalRoleArn *string // A list of methods for validating the configuration. - Validators []*types.Validator + Validators []types.Validator // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appconfig/api_op_UpdateDeploymentStrategy.go b/service/appconfig/api_op_UpdateDeploymentStrategy.go index f698a6480ac..0564a1e6bbb 100644 --- a/service/appconfig/api_op_UpdateDeploymentStrategy.go +++ b/service/appconfig/api_op_UpdateDeploymentStrategy.go @@ -35,18 +35,18 @@ type UpdateDeploymentStrategyInput struct { DeploymentStrategyId *string // Total amount of time for a deployment to last. - DeploymentDurationInMinutes *int32 + DeploymentDurationInMinutes int32 // A description of the deployment strategy. Description *string // The amount of time AppConfig monitors for alarms before considering the // deployment to be complete and no longer eligible for automatic roll back. - FinalBakeTimeInMinutes *int32 + FinalBakeTimeInMinutes int32 // The percentage of targets to receive a deployed configuration during each // interval. - GrowthFactor *float32 + GrowthFactor float32 // The algorithm used to define how percentage grows over time. AWS AppConfig // supports the following growth types: Linear: For this type, AppConfig processes @@ -72,18 +72,18 @@ type UpdateDeploymentStrategyInput struct { type UpdateDeploymentStrategyOutput struct { // Total amount of time the deployment lasted. - DeploymentDurationInMinutes *int32 + DeploymentDurationInMinutes int32 // The description of the deployment strategy. Description *string // The amount of time AppConfig monitored for alarms before considering the // deployment to be complete and no longer eligible for automatic roll back. - FinalBakeTimeInMinutes *int32 + FinalBakeTimeInMinutes int32 // The percentage of targets that received a deployed configuration during each // interval. - GrowthFactor *float32 + GrowthFactor float32 // The algorithm used to define how percentage grew over time. GrowthType types.GrowthType diff --git a/service/appconfig/api_op_UpdateEnvironment.go b/service/appconfig/api_op_UpdateEnvironment.go index 954f176e6a1..7a80bdd9ac1 100644 --- a/service/appconfig/api_op_UpdateEnvironment.go +++ b/service/appconfig/api_op_UpdateEnvironment.go @@ -43,7 +43,7 @@ type UpdateEnvironmentInput struct { Description *string // Amazon CloudWatch alarms to monitor during the deployment process. - Monitors []*types.Monitor + Monitors []types.Monitor // The name of the environment. Name *string @@ -61,7 +61,7 @@ type UpdateEnvironmentOutput struct { Id *string // Amazon CloudWatch alarms monitored during the deployment. - Monitors []*types.Monitor + Monitors []types.Monitor // The name of the environment. Name *string diff --git a/service/appconfig/deserializers.go b/service/appconfig/deserializers.go index d8ceecd8fff..444c3c28509 100644 --- a/service/appconfig/deserializers.go +++ b/service/appconfig/deserializers.go @@ -163,7 +163,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -172,7 +172,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -181,7 +181,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -338,7 +338,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationProfileOutput(v **Crea if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "Description": @@ -347,7 +347,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationProfileOutput(v **Crea if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -356,7 +356,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationProfileOutput(v **Crea if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LocationUri": @@ -365,7 +365,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationProfileOutput(v **Crea if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.LocationUri = &jtv + sv.LocationUri = ptr.String(jtv) } case "Name": @@ -374,7 +374,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationProfileOutput(v **Crea if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RetrievalRoleArn": @@ -383,7 +383,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationProfileOutput(v **Crea if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RetrievalRoleArn = &jtv + sv.RetrievalRoleArn = ptr.String(jtv) } case "Validators": @@ -546,7 +546,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentStrategyOutput(v **Create if err != nil { return err } - sv.DeploymentDurationInMinutes = ptr.Int32(int32(i64)) + sv.DeploymentDurationInMinutes = int32(i64) } case "Description": @@ -555,7 +555,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentStrategyOutput(v **Create if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "FinalBakeTimeInMinutes": @@ -568,7 +568,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentStrategyOutput(v **Create if err != nil { return err } - sv.FinalBakeTimeInMinutes = ptr.Int32(int32(i64)) + sv.FinalBakeTimeInMinutes = int32(i64) } case "GrowthFactor": @@ -581,7 +581,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentStrategyOutput(v **Create if err != nil { return err } - sv.GrowthFactor = ptr.Float32(float32(f64)) + sv.GrowthFactor = float32(f64) } case "GrowthType": @@ -599,7 +599,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentStrategyOutput(v **Create if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -608,7 +608,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentStrategyOutput(v **Create if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ReplicateTo": @@ -774,7 +774,7 @@ func awsRestjson1_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnviron if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "Description": @@ -783,7 +783,7 @@ func awsRestjson1_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnviron if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -792,7 +792,7 @@ func awsRestjson1_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnviron if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Monitors": @@ -806,7 +806,7 @@ func awsRestjson1_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnviron if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -966,7 +966,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateHostedConfigurationVersionOutpu if err != nil { return err } - v.VersionNumber = ptr.Int32(int32(vv)) + v.VersionNumber = int32(vv) } return nil @@ -1582,7 +1582,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -1591,7 +1591,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -1600,7 +1600,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -1888,7 +1888,7 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationProfileOutput(v **GetConf if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "Description": @@ -1897,7 +1897,7 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationProfileOutput(v **GetConf if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -1906,7 +1906,7 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationProfileOutput(v **GetConf if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LocationUri": @@ -1915,7 +1915,7 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationProfileOutput(v **GetConf if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.LocationUri = &jtv + sv.LocationUri = ptr.String(jtv) } case "Name": @@ -1924,7 +1924,7 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationProfileOutput(v **GetConf if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RetrievalRoleArn": @@ -1933,7 +1933,7 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationProfileOutput(v **GetConf if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RetrievalRoleArn = &jtv + sv.RetrievalRoleArn = ptr.String(jtv) } case "Validators": @@ -2095,7 +2095,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CompletedAt": @@ -2108,7 +2108,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if err != nil { return err } - sv.CompletedAt = &t + sv.CompletedAt = ptr.Time(t) } case "ConfigurationLocationUri": @@ -2117,7 +2117,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.ConfigurationLocationUri = &jtv + sv.ConfigurationLocationUri = ptr.String(jtv) } case "ConfigurationName": @@ -2126,7 +2126,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ConfigurationName = &jtv + sv.ConfigurationName = ptr.String(jtv) } case "ConfigurationProfileId": @@ -2135,7 +2135,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ConfigurationProfileId = &jtv + sv.ConfigurationProfileId = ptr.String(jtv) } case "ConfigurationVersion": @@ -2144,7 +2144,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.ConfigurationVersion = &jtv + sv.ConfigurationVersion = ptr.String(jtv) } case "DeploymentDurationInMinutes": @@ -2157,7 +2157,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if err != nil { return err } - sv.DeploymentDurationInMinutes = ptr.Int32(int32(i64)) + sv.DeploymentDurationInMinutes = int32(i64) } case "DeploymentNumber": @@ -2170,7 +2170,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if err != nil { return err } - sv.DeploymentNumber = ptr.Int32(int32(i64)) + sv.DeploymentNumber = int32(i64) } case "DeploymentStrategyId": @@ -2179,7 +2179,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DeploymentStrategyId = &jtv + sv.DeploymentStrategyId = ptr.String(jtv) } case "Description": @@ -2188,7 +2188,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EnvironmentId": @@ -2197,7 +2197,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.EnvironmentId = &jtv + sv.EnvironmentId = ptr.String(jtv) } case "EventLog": @@ -2215,7 +2215,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if err != nil { return err } - sv.FinalBakeTimeInMinutes = ptr.Int32(int32(i64)) + sv.FinalBakeTimeInMinutes = int32(i64) } case "GrowthFactor": @@ -2228,7 +2228,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if err != nil { return err } - sv.GrowthFactor = ptr.Float32(float32(f64)) + sv.GrowthFactor = float32(f64) } case "GrowthType": @@ -2250,7 +2250,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if err != nil { return err } - sv.PercentageComplete = ptr.Float32(float32(f64)) + sv.PercentageComplete = float32(f64) } case "StartedAt": @@ -2263,7 +2263,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if err != nil { return err } - sv.StartedAt = &t + sv.StartedAt = ptr.Time(t) } case "State": @@ -2433,7 +2433,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentStrategyOutput(v **GetDeploy if err != nil { return err } - sv.DeploymentDurationInMinutes = ptr.Int32(int32(i64)) + sv.DeploymentDurationInMinutes = int32(i64) } case "Description": @@ -2442,7 +2442,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentStrategyOutput(v **GetDeploy if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "FinalBakeTimeInMinutes": @@ -2455,7 +2455,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentStrategyOutput(v **GetDeploy if err != nil { return err } - sv.FinalBakeTimeInMinutes = ptr.Int32(int32(i64)) + sv.FinalBakeTimeInMinutes = int32(i64) } case "GrowthFactor": @@ -2468,7 +2468,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentStrategyOutput(v **GetDeploy if err != nil { return err } - sv.GrowthFactor = ptr.Float32(float32(f64)) + sv.GrowthFactor = float32(f64) } case "GrowthType": @@ -2486,7 +2486,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentStrategyOutput(v **GetDeploy if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -2495,7 +2495,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentStrategyOutput(v **GetDeploy if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ReplicateTo": @@ -2661,7 +2661,7 @@ func awsRestjson1_deserializeOpDocumentGetEnvironmentOutput(v **GetEnvironmentOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "Description": @@ -2670,7 +2670,7 @@ func awsRestjson1_deserializeOpDocumentGetEnvironmentOutput(v **GetEnvironmentOu if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -2679,7 +2679,7 @@ func awsRestjson1_deserializeOpDocumentGetEnvironmentOutput(v **GetEnvironmentOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Monitors": @@ -2693,7 +2693,7 @@ func awsRestjson1_deserializeOpDocumentGetEnvironmentOutput(v **GetEnvironmentOu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -2844,7 +2844,7 @@ func awsRestjson1_deserializeOpHttpBindingsGetHostedConfigurationVersionOutput(v if err != nil { return err } - v.VersionNumber = ptr.Int32(int32(vv)) + v.VersionNumber = int32(vv) } return nil @@ -3011,7 +3011,7 @@ func awsRestjson1_deserializeOpDocumentListApplicationsOutput(v **ListApplicatio if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3173,7 +3173,7 @@ func awsRestjson1_deserializeOpDocumentListConfigurationProfilesOutput(v **ListC if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3335,7 +3335,7 @@ func awsRestjson1_deserializeOpDocumentListDeploymentsOutput(v **ListDeployments if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3494,7 +3494,7 @@ func awsRestjson1_deserializeOpDocumentListDeploymentStrategiesOutput(v **ListDe if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3656,7 +3656,7 @@ func awsRestjson1_deserializeOpDocumentListEnvironmentsOutput(v **ListEnvironmen if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3818,7 +3818,7 @@ func awsRestjson1_deserializeOpDocumentListHostedConfigurationVersionsOutput(v * if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4131,7 +4131,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CompletedAt": @@ -4144,7 +4144,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if err != nil { return err } - sv.CompletedAt = &t + sv.CompletedAt = ptr.Time(t) } case "ConfigurationLocationUri": @@ -4153,7 +4153,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.ConfigurationLocationUri = &jtv + sv.ConfigurationLocationUri = ptr.String(jtv) } case "ConfigurationName": @@ -4162,7 +4162,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ConfigurationName = &jtv + sv.ConfigurationName = ptr.String(jtv) } case "ConfigurationProfileId": @@ -4171,7 +4171,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ConfigurationProfileId = &jtv + sv.ConfigurationProfileId = ptr.String(jtv) } case "ConfigurationVersion": @@ -4180,7 +4180,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.ConfigurationVersion = &jtv + sv.ConfigurationVersion = ptr.String(jtv) } case "DeploymentDurationInMinutes": @@ -4193,7 +4193,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if err != nil { return err } - sv.DeploymentDurationInMinutes = ptr.Int32(int32(i64)) + sv.DeploymentDurationInMinutes = int32(i64) } case "DeploymentNumber": @@ -4206,7 +4206,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if err != nil { return err } - sv.DeploymentNumber = ptr.Int32(int32(i64)) + sv.DeploymentNumber = int32(i64) } case "DeploymentStrategyId": @@ -4215,7 +4215,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DeploymentStrategyId = &jtv + sv.DeploymentStrategyId = ptr.String(jtv) } case "Description": @@ -4224,7 +4224,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EnvironmentId": @@ -4233,7 +4233,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.EnvironmentId = &jtv + sv.EnvironmentId = ptr.String(jtv) } case "EventLog": @@ -4251,7 +4251,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if err != nil { return err } - sv.FinalBakeTimeInMinutes = ptr.Int32(int32(i64)) + sv.FinalBakeTimeInMinutes = int32(i64) } case "GrowthFactor": @@ -4264,7 +4264,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if err != nil { return err } - sv.GrowthFactor = ptr.Float32(float32(f64)) + sv.GrowthFactor = float32(f64) } case "GrowthType": @@ -4286,7 +4286,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if err != nil { return err } - sv.PercentageComplete = ptr.Float32(float32(f64)) + sv.PercentageComplete = float32(f64) } case "StartedAt": @@ -4299,7 +4299,7 @@ func awsRestjson1_deserializeOpDocumentStartDeploymentOutput(v **StartDeployment if err != nil { return err } - sv.StartedAt = &t + sv.StartedAt = ptr.Time(t) } case "State": @@ -4465,7 +4465,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CompletedAt": @@ -4478,7 +4478,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if err != nil { return err } - sv.CompletedAt = &t + sv.CompletedAt = ptr.Time(t) } case "ConfigurationLocationUri": @@ -4487,7 +4487,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.ConfigurationLocationUri = &jtv + sv.ConfigurationLocationUri = ptr.String(jtv) } case "ConfigurationName": @@ -4496,7 +4496,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ConfigurationName = &jtv + sv.ConfigurationName = ptr.String(jtv) } case "ConfigurationProfileId": @@ -4505,7 +4505,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ConfigurationProfileId = &jtv + sv.ConfigurationProfileId = ptr.String(jtv) } case "ConfigurationVersion": @@ -4514,7 +4514,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.ConfigurationVersion = &jtv + sv.ConfigurationVersion = ptr.String(jtv) } case "DeploymentDurationInMinutes": @@ -4527,7 +4527,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if err != nil { return err } - sv.DeploymentDurationInMinutes = ptr.Int32(int32(i64)) + sv.DeploymentDurationInMinutes = int32(i64) } case "DeploymentNumber": @@ -4540,7 +4540,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if err != nil { return err } - sv.DeploymentNumber = ptr.Int32(int32(i64)) + sv.DeploymentNumber = int32(i64) } case "DeploymentStrategyId": @@ -4549,7 +4549,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DeploymentStrategyId = &jtv + sv.DeploymentStrategyId = ptr.String(jtv) } case "Description": @@ -4558,7 +4558,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EnvironmentId": @@ -4567,7 +4567,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.EnvironmentId = &jtv + sv.EnvironmentId = ptr.String(jtv) } case "EventLog": @@ -4585,7 +4585,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if err != nil { return err } - sv.FinalBakeTimeInMinutes = ptr.Int32(int32(i64)) + sv.FinalBakeTimeInMinutes = int32(i64) } case "GrowthFactor": @@ -4598,7 +4598,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if err != nil { return err } - sv.GrowthFactor = ptr.Float32(float32(f64)) + sv.GrowthFactor = float32(f64) } case "GrowthType": @@ -4620,7 +4620,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if err != nil { return err } - sv.PercentageComplete = ptr.Float32(float32(f64)) + sv.PercentageComplete = float32(f64) } case "StartedAt": @@ -4633,7 +4633,7 @@ func awsRestjson1_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if err != nil { return err } - sv.StartedAt = &t + sv.StartedAt = ptr.Time(t) } case "State": @@ -4977,7 +4977,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -4986,7 +4986,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -4995,7 +4995,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5152,7 +5152,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigurationProfileOutput(v **Upda if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "Description": @@ -5161,7 +5161,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigurationProfileOutput(v **Upda if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -5170,7 +5170,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigurationProfileOutput(v **Upda if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LocationUri": @@ -5179,7 +5179,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigurationProfileOutput(v **Upda if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.LocationUri = &jtv + sv.LocationUri = ptr.String(jtv) } case "Name": @@ -5188,7 +5188,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigurationProfileOutput(v **Upda if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RetrievalRoleArn": @@ -5197,7 +5197,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigurationProfileOutput(v **Upda if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RetrievalRoleArn = &jtv + sv.RetrievalRoleArn = ptr.String(jtv) } case "Validators": @@ -5363,7 +5363,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentStrategyOutput(v **Update if err != nil { return err } - sv.DeploymentDurationInMinutes = ptr.Int32(int32(i64)) + sv.DeploymentDurationInMinutes = int32(i64) } case "Description": @@ -5372,7 +5372,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentStrategyOutput(v **Update if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "FinalBakeTimeInMinutes": @@ -5385,7 +5385,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentStrategyOutput(v **Update if err != nil { return err } - sv.FinalBakeTimeInMinutes = ptr.Int32(int32(i64)) + sv.FinalBakeTimeInMinutes = int32(i64) } case "GrowthFactor": @@ -5398,7 +5398,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentStrategyOutput(v **Update if err != nil { return err } - sv.GrowthFactor = ptr.Float32(float32(f64)) + sv.GrowthFactor = float32(f64) } case "GrowthType": @@ -5416,7 +5416,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentStrategyOutput(v **Update if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -5425,7 +5425,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentStrategyOutput(v **Update if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ReplicateTo": @@ -5591,7 +5591,7 @@ func awsRestjson1_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnviron if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "Description": @@ -5600,7 +5600,7 @@ func awsRestjson1_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnviron if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -5609,7 +5609,7 @@ func awsRestjson1_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnviron if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Monitors": @@ -5623,7 +5623,7 @@ func awsRestjson1_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnviron if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -5977,7 +5977,7 @@ func awsRestjson1_deserializeDocumentApplication(v **types.Application, value in if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -5986,7 +5986,7 @@ func awsRestjson1_deserializeDocumentApplication(v **types.Application, value in if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -5995,7 +5995,7 @@ func awsRestjson1_deserializeDocumentApplication(v **types.Application, value in if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -6007,7 +6007,7 @@ func awsRestjson1_deserializeDocumentApplication(v **types.Application, value in return nil } -func awsRestjson1_deserializeDocumentApplicationList(v *[]*types.Application, value interface{}) error { +func awsRestjson1_deserializeDocumentApplicationList(v *[]types.Application, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6020,18 +6020,20 @@ func awsRestjson1_deserializeDocumentApplicationList(v *[]*types.Application, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Application + var cv []types.Application if *v == nil { - cv = []*types.Application{} + cv = []types.Application{} } else { cv = *v } for _, value := range shape { - var col *types.Application - if err := awsRestjson1_deserializeDocumentApplication(&col, value); err != nil { + var col types.Application + destAddr := &col + if err := awsRestjson1_deserializeDocumentApplication(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6067,7 +6069,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6107,7 +6109,7 @@ func awsRestjson1_deserializeDocumentConfigurationProfileSummary(v **types.Confi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "Id": @@ -6116,7 +6118,7 @@ func awsRestjson1_deserializeDocumentConfigurationProfileSummary(v **types.Confi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LocationUri": @@ -6125,7 +6127,7 @@ func awsRestjson1_deserializeDocumentConfigurationProfileSummary(v **types.Confi if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.LocationUri = &jtv + sv.LocationUri = ptr.String(jtv) } case "Name": @@ -6134,7 +6136,7 @@ func awsRestjson1_deserializeDocumentConfigurationProfileSummary(v **types.Confi if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ValidatorTypes": @@ -6151,7 +6153,7 @@ func awsRestjson1_deserializeDocumentConfigurationProfileSummary(v **types.Confi return nil } -func awsRestjson1_deserializeDocumentConfigurationProfileSummaryList(v *[]*types.ConfigurationProfileSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentConfigurationProfileSummaryList(v *[]types.ConfigurationProfileSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6164,18 +6166,20 @@ func awsRestjson1_deserializeDocumentConfigurationProfileSummaryList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfigurationProfileSummary + var cv []types.ConfigurationProfileSummary if *v == nil { - cv = []*types.ConfigurationProfileSummary{} + cv = []types.ConfigurationProfileSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ConfigurationProfileSummary - if err := awsRestjson1_deserializeDocumentConfigurationProfileSummary(&col, value); err != nil { + var col types.ConfigurationProfileSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentConfigurationProfileSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6211,7 +6215,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6251,7 +6255,7 @@ func awsRestjson1_deserializeDocumentDeploymentEvent(v **types.DeploymentEvent, if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EventType": @@ -6273,7 +6277,7 @@ func awsRestjson1_deserializeDocumentDeploymentEvent(v **types.DeploymentEvent, if err != nil { return err } - sv.OccurredAt = &t + sv.OccurredAt = ptr.Time(t) } case "TriggeredBy": @@ -6294,7 +6298,7 @@ func awsRestjson1_deserializeDocumentDeploymentEvent(v **types.DeploymentEvent, return nil } -func awsRestjson1_deserializeDocumentDeploymentEvents(v *[]*types.DeploymentEvent, value interface{}) error { +func awsRestjson1_deserializeDocumentDeploymentEvents(v *[]types.DeploymentEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6307,18 +6311,20 @@ func awsRestjson1_deserializeDocumentDeploymentEvents(v *[]*types.DeploymentEven return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeploymentEvent + var cv []types.DeploymentEvent if *v == nil { - cv = []*types.DeploymentEvent{} + cv = []types.DeploymentEvent{} } else { cv = *v } for _, value := range shape { - var col *types.DeploymentEvent - if err := awsRestjson1_deserializeDocumentDeploymentEvent(&col, value); err != nil { + var col types.DeploymentEvent + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeploymentEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6326,7 +6332,7 @@ func awsRestjson1_deserializeDocumentDeploymentEvents(v *[]*types.DeploymentEven return nil } -func awsRestjson1_deserializeDocumentDeploymentList(v *[]*types.DeploymentSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDeploymentList(v *[]types.DeploymentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6339,18 +6345,20 @@ func awsRestjson1_deserializeDocumentDeploymentList(v *[]*types.DeploymentSummar return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeploymentSummary + var cv []types.DeploymentSummary if *v == nil { - cv = []*types.DeploymentSummary{} + cv = []types.DeploymentSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DeploymentSummary - if err := awsRestjson1_deserializeDocumentDeploymentSummary(&col, value); err != nil { + var col types.DeploymentSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeploymentSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6390,7 +6398,7 @@ func awsRestjson1_deserializeDocumentDeploymentStrategy(v **types.DeploymentStra if err != nil { return err } - sv.DeploymentDurationInMinutes = ptr.Int32(int32(i64)) + sv.DeploymentDurationInMinutes = int32(i64) } case "Description": @@ -6399,7 +6407,7 @@ func awsRestjson1_deserializeDocumentDeploymentStrategy(v **types.DeploymentStra if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "FinalBakeTimeInMinutes": @@ -6412,7 +6420,7 @@ func awsRestjson1_deserializeDocumentDeploymentStrategy(v **types.DeploymentStra if err != nil { return err } - sv.FinalBakeTimeInMinutes = ptr.Int32(int32(i64)) + sv.FinalBakeTimeInMinutes = int32(i64) } case "GrowthFactor": @@ -6425,7 +6433,7 @@ func awsRestjson1_deserializeDocumentDeploymentStrategy(v **types.DeploymentStra if err != nil { return err } - sv.GrowthFactor = ptr.Float32(float32(f64)) + sv.GrowthFactor = float32(f64) } case "GrowthType": @@ -6443,7 +6451,7 @@ func awsRestjson1_deserializeDocumentDeploymentStrategy(v **types.DeploymentStra if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -6452,7 +6460,7 @@ func awsRestjson1_deserializeDocumentDeploymentStrategy(v **types.DeploymentStra if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ReplicateTo": @@ -6473,7 +6481,7 @@ func awsRestjson1_deserializeDocumentDeploymentStrategy(v **types.DeploymentStra return nil } -func awsRestjson1_deserializeDocumentDeploymentStrategyList(v *[]*types.DeploymentStrategy, value interface{}) error { +func awsRestjson1_deserializeDocumentDeploymentStrategyList(v *[]types.DeploymentStrategy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6486,18 +6494,20 @@ func awsRestjson1_deserializeDocumentDeploymentStrategyList(v *[]*types.Deployme return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeploymentStrategy + var cv []types.DeploymentStrategy if *v == nil { - cv = []*types.DeploymentStrategy{} + cv = []types.DeploymentStrategy{} } else { cv = *v } for _, value := range shape { - var col *types.DeploymentStrategy - if err := awsRestjson1_deserializeDocumentDeploymentStrategy(&col, value); err != nil { + var col types.DeploymentStrategy + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeploymentStrategy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6537,7 +6547,7 @@ func awsRestjson1_deserializeDocumentDeploymentSummary(v **types.DeploymentSumma if err != nil { return err } - sv.CompletedAt = &t + sv.CompletedAt = ptr.Time(t) } case "ConfigurationName": @@ -6546,7 +6556,7 @@ func awsRestjson1_deserializeDocumentDeploymentSummary(v **types.DeploymentSumma if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ConfigurationName = &jtv + sv.ConfigurationName = ptr.String(jtv) } case "ConfigurationVersion": @@ -6555,7 +6565,7 @@ func awsRestjson1_deserializeDocumentDeploymentSummary(v **types.DeploymentSumma if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.ConfigurationVersion = &jtv + sv.ConfigurationVersion = ptr.String(jtv) } case "DeploymentDurationInMinutes": @@ -6568,7 +6578,7 @@ func awsRestjson1_deserializeDocumentDeploymentSummary(v **types.DeploymentSumma if err != nil { return err } - sv.DeploymentDurationInMinutes = ptr.Int32(int32(i64)) + sv.DeploymentDurationInMinutes = int32(i64) } case "DeploymentNumber": @@ -6581,7 +6591,7 @@ func awsRestjson1_deserializeDocumentDeploymentSummary(v **types.DeploymentSumma if err != nil { return err } - sv.DeploymentNumber = ptr.Int32(int32(i64)) + sv.DeploymentNumber = int32(i64) } case "FinalBakeTimeInMinutes": @@ -6594,7 +6604,7 @@ func awsRestjson1_deserializeDocumentDeploymentSummary(v **types.DeploymentSumma if err != nil { return err } - sv.FinalBakeTimeInMinutes = ptr.Int32(int32(i64)) + sv.FinalBakeTimeInMinutes = int32(i64) } case "GrowthFactor": @@ -6607,7 +6617,7 @@ func awsRestjson1_deserializeDocumentDeploymentSummary(v **types.DeploymentSumma if err != nil { return err } - sv.GrowthFactor = ptr.Float32(float32(f64)) + sv.GrowthFactor = float32(f64) } case "GrowthType": @@ -6629,7 +6639,7 @@ func awsRestjson1_deserializeDocumentDeploymentSummary(v **types.DeploymentSumma if err != nil { return err } - sv.PercentageComplete = ptr.Float32(float32(f64)) + sv.PercentageComplete = float32(f64) } case "StartedAt": @@ -6642,7 +6652,7 @@ func awsRestjson1_deserializeDocumentDeploymentSummary(v **types.DeploymentSumma if err != nil { return err } - sv.StartedAt = &t + sv.StartedAt = ptr.Time(t) } case "State": @@ -6691,7 +6701,7 @@ func awsRestjson1_deserializeDocumentEnvironment(v **types.Environment, value in if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "Description": @@ -6700,7 +6710,7 @@ func awsRestjson1_deserializeDocumentEnvironment(v **types.Environment, value in if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -6709,7 +6719,7 @@ func awsRestjson1_deserializeDocumentEnvironment(v **types.Environment, value in if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Monitors": @@ -6723,7 +6733,7 @@ func awsRestjson1_deserializeDocumentEnvironment(v **types.Environment, value in if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -6744,7 +6754,7 @@ func awsRestjson1_deserializeDocumentEnvironment(v **types.Environment, value in return nil } -func awsRestjson1_deserializeDocumentEnvironmentList(v *[]*types.Environment, value interface{}) error { +func awsRestjson1_deserializeDocumentEnvironmentList(v *[]types.Environment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6757,18 +6767,20 @@ func awsRestjson1_deserializeDocumentEnvironmentList(v *[]*types.Environment, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Environment + var cv []types.Environment if *v == nil { - cv = []*types.Environment{} + cv = []types.Environment{} } else { cv = *v } for _, value := range shape { - var col *types.Environment - if err := awsRestjson1_deserializeDocumentEnvironment(&col, value); err != nil { + var col types.Environment + destAddr := &col + if err := awsRestjson1_deserializeDocumentEnvironment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6804,7 +6816,7 @@ func awsRestjson1_deserializeDocumentHostedConfigurationVersionSummary(v **types if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "ConfigurationProfileId": @@ -6813,7 +6825,7 @@ func awsRestjson1_deserializeDocumentHostedConfigurationVersionSummary(v **types if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ConfigurationProfileId = &jtv + sv.ConfigurationProfileId = ptr.String(jtv) } case "ContentType": @@ -6822,7 +6834,7 @@ func awsRestjson1_deserializeDocumentHostedConfigurationVersionSummary(v **types if !ok { return fmt.Errorf("expected StringWithLengthBetween1And255 to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "Description": @@ -6831,7 +6843,7 @@ func awsRestjson1_deserializeDocumentHostedConfigurationVersionSummary(v **types if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "VersionNumber": @@ -6844,7 +6856,7 @@ func awsRestjson1_deserializeDocumentHostedConfigurationVersionSummary(v **types if err != nil { return err } - sv.VersionNumber = ptr.Int32(int32(i64)) + sv.VersionNumber = int32(i64) } default: @@ -6856,7 +6868,7 @@ func awsRestjson1_deserializeDocumentHostedConfigurationVersionSummary(v **types return nil } -func awsRestjson1_deserializeDocumentHostedConfigurationVersionSummaryList(v *[]*types.HostedConfigurationVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentHostedConfigurationVersionSummaryList(v *[]types.HostedConfigurationVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6869,18 +6881,20 @@ func awsRestjson1_deserializeDocumentHostedConfigurationVersionSummaryList(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HostedConfigurationVersionSummary + var cv []types.HostedConfigurationVersionSummary if *v == nil { - cv = []*types.HostedConfigurationVersionSummary{} + cv = []types.HostedConfigurationVersionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.HostedConfigurationVersionSummary - if err := awsRestjson1_deserializeDocumentHostedConfigurationVersionSummary(&col, value); err != nil { + var col types.HostedConfigurationVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentHostedConfigurationVersionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6916,7 +6930,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6956,7 +6970,7 @@ func awsRestjson1_deserializeDocumentMonitor(v **types.Monitor, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AlarmArn = &jtv + sv.AlarmArn = ptr.String(jtv) } case "AlarmRoleArn": @@ -6965,7 +6979,7 @@ func awsRestjson1_deserializeDocumentMonitor(v **types.Monitor, value interface{ if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.AlarmRoleArn = &jtv + sv.AlarmRoleArn = ptr.String(jtv) } default: @@ -6977,7 +6991,7 @@ func awsRestjson1_deserializeDocumentMonitor(v **types.Monitor, value interface{ return nil } -func awsRestjson1_deserializeDocumentMonitorList(v *[]*types.Monitor, value interface{}) error { +func awsRestjson1_deserializeDocumentMonitorList(v *[]types.Monitor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6990,18 +7004,20 @@ func awsRestjson1_deserializeDocumentMonitorList(v *[]*types.Monitor, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Monitor + var cv []types.Monitor if *v == nil { - cv = []*types.Monitor{} + cv = []types.Monitor{} } else { cv = *v } for _, value := range shape { - var col *types.Monitor - if err := awsRestjson1_deserializeDocumentMonitor(&col, value); err != nil { + var col types.Monitor + destAddr := &col + if err := awsRestjson1_deserializeDocumentMonitor(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7041,7 +7057,7 @@ func awsRestjson1_deserializeDocumentPayloadTooLargeException(v **types.PayloadT if err != nil { return err } - sv.Limit = ptr.Float32(float32(f64)) + sv.Limit = float32(f64) } case "Measure": @@ -7059,7 +7075,7 @@ func awsRestjson1_deserializeDocumentPayloadTooLargeException(v **types.PayloadT if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Size": @@ -7072,7 +7088,7 @@ func awsRestjson1_deserializeDocumentPayloadTooLargeException(v **types.PayloadT if err != nil { return err } - sv.Size = ptr.Float32(float32(f64)) + sv.Size = float32(f64) } default: @@ -7112,7 +7128,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceName": @@ -7121,7 +7137,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } default: @@ -7161,7 +7177,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7173,7 +7189,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7186,21 +7202,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -7237,7 +7253,7 @@ func awsRestjson1_deserializeDocumentValidator(v **types.Validator, value interf if !ok { return fmt.Errorf("expected StringWithLengthBetween0And32768 to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "Type": @@ -7258,7 +7274,7 @@ func awsRestjson1_deserializeDocumentValidator(v **types.Validator, value interf return nil } -func awsRestjson1_deserializeDocumentValidatorList(v *[]*types.Validator, value interface{}) error { +func awsRestjson1_deserializeDocumentValidatorList(v *[]types.Validator, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7271,18 +7287,20 @@ func awsRestjson1_deserializeDocumentValidatorList(v *[]*types.Validator, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Validator + var cv []types.Validator if *v == nil { - cv = []*types.Validator{} + cv = []types.Validator{} } else { cv = *v } for _, value := range shape { - var col *types.Validator - if err := awsRestjson1_deserializeDocumentValidator(&col, value); err != nil { + var col types.Validator + destAddr := &col + if err := awsRestjson1_deserializeDocumentValidator(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/appconfig/go.mod b/service/appconfig/go.mod index 5295aa5fa3a..34c69490d49 100644 --- a/service/appconfig/go.mod +++ b/service/appconfig/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/appconfig go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/appconfig/serializers.go b/service/appconfig/serializers.go index 5334faf1e13..1bfb6ec27b5 100644 --- a/service/appconfig/serializers.go +++ b/service/appconfig/serializers.go @@ -161,13 +161,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateConfigurationProfileInput(v *Crea return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -282,9 +279,9 @@ func awsRestjson1_serializeOpDocumentCreateDeploymentStrategyInput(v *CreateDepl object := value.Object() defer object.Close() - if v.DeploymentDurationInMinutes != nil { + if v.DeploymentDurationInMinutes != 0 { ok := object.Key("DeploymentDurationInMinutes") - ok.Integer(*v.DeploymentDurationInMinutes) + ok.Integer(v.DeploymentDurationInMinutes) } if v.Description != nil { @@ -292,14 +289,14 @@ func awsRestjson1_serializeOpDocumentCreateDeploymentStrategyInput(v *CreateDepl ok.String(*v.Description) } - if v.FinalBakeTimeInMinutes != nil { + if v.FinalBakeTimeInMinutes != 0 { ok := object.Key("FinalBakeTimeInMinutes") - ok.Integer(*v.FinalBakeTimeInMinutes) + ok.Integer(v.FinalBakeTimeInMinutes) } - if v.GrowthFactor != nil { + if v.GrowthFactor != 0 { ok := object.Key("GrowthFactor") - ok.Float(*v.GrowthFactor) + ok.Float(v.GrowthFactor) } if len(v.GrowthType) > 0 { @@ -389,13 +386,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateEnvironmentInput(v *CreateEnviron return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -497,47 +491,37 @@ func awsRestjson1_serializeOpHttpBindingsCreateHostedConfigurationVersionInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.ConfigurationProfileId == nil { + if v.ConfigurationProfileId == nil || len(*v.ConfigurationProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} } if v.ConfigurationProfileId != nil { - if len(*v.ConfigurationProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} - } if err := encoder.SetURI("ConfigurationProfileId").String(*v.ConfigurationProfileId); err != nil { return err } } - if v.ContentType != nil { + if v.ContentType != nil && len(*v.ContentType) > 0 { locationName := "Content-Type" - if len(*v.ContentType) > 0 { - encoder.SetHeader(locationName).String(*v.ContentType) - } + encoder.SetHeader(locationName).String(*v.ContentType) } - if v.Description != nil { + if v.Description != nil && len(*v.Description) > 0 { locationName := "Description" - if len(*v.Description) > 0 { - encoder.SetHeader(locationName).String(*v.Description) - } + encoder.SetHeader(locationName).String(*v.Description) } - if v.LatestVersionNumber != nil { + if v.LatestVersionNumber != 0 { locationName := "Latest-Version-Number" - encoder.SetHeader(locationName).Integer(*v.LatestVersionNumber) + encoder.SetHeader(locationName).Integer(v.LatestVersionNumber) } return nil @@ -594,13 +578,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteApplicationInput(v *DeleteApplica return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -660,25 +641,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteConfigurationProfileInput(v *Dele return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.ConfigurationProfileId == nil { + if v.ConfigurationProfileId == nil || len(*v.ConfigurationProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} } if v.ConfigurationProfileId != nil { - if len(*v.ConfigurationProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} - } if err := encoder.SetURI("ConfigurationProfileId").String(*v.ConfigurationProfileId); err != nil { return err } @@ -738,13 +713,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDeploymentStrategyInput(v *Delete return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeploymentStrategyId == nil { + if v.DeploymentStrategyId == nil || len(*v.DeploymentStrategyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentStrategyId must not be empty")} } if v.DeploymentStrategyId != nil { - if len(*v.DeploymentStrategyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentStrategyId must not be empty")} - } if err := encoder.SetURI("DeploymentStrategyId").String(*v.DeploymentStrategyId); err != nil { return err } @@ -804,25 +776,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteEnvironmentInput(v *DeleteEnviron return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.EnvironmentId == nil { + if v.EnvironmentId == nil || len(*v.EnvironmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} } if v.EnvironmentId != nil { - if len(*v.EnvironmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} - } if err := encoder.SetURI("EnvironmentId").String(*v.EnvironmentId); err != nil { return err } @@ -882,35 +848,29 @@ func awsRestjson1_serializeOpHttpBindingsDeleteHostedConfigurationVersionInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.ConfigurationProfileId == nil { + if v.ConfigurationProfileId == nil || len(*v.ConfigurationProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} } if v.ConfigurationProfileId != nil { - if len(*v.ConfigurationProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} - } if err := encoder.SetURI("ConfigurationProfileId").String(*v.ConfigurationProfileId); err != nil { return err } } - if v.VersionNumber == nil { + if v.VersionNumber == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VersionNumber must not be empty")} } - if v.VersionNumber != nil { - if err := encoder.SetURI("VersionNumber").Integer(*v.VersionNumber); err != nil { + if v.VersionNumber != 0 { + if err := encoder.SetURI("VersionNumber").Integer(v.VersionNumber); err != nil { return err } } @@ -969,13 +929,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApplicationInput(v *GetApplicationIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -1035,13 +992,10 @@ func awsRestjson1_serializeOpHttpBindingsGetConfigurationInput(v *GetConfigurati return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Application == nil { + if v.Application == nil || len(*v.Application) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Application must not be empty")} } if v.Application != nil { - if len(*v.Application) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Application must not be empty")} - } if err := encoder.SetURI("Application").String(*v.Application); err != nil { return err } @@ -1055,25 +1009,19 @@ func awsRestjson1_serializeOpHttpBindingsGetConfigurationInput(v *GetConfigurati encoder.SetQuery("client_id").String(*v.ClientId) } - if v.Configuration == nil { + if v.Configuration == nil || len(*v.Configuration) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Configuration must not be empty")} } if v.Configuration != nil { - if len(*v.Configuration) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Configuration must not be empty")} - } if err := encoder.SetURI("Configuration").String(*v.Configuration); err != nil { return err } } - if v.Environment == nil { + if v.Environment == nil || len(*v.Environment) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Environment must not be empty")} } if v.Environment != nil { - if len(*v.Environment) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Environment must not be empty")} - } if err := encoder.SetURI("Environment").String(*v.Environment); err != nil { return err } @@ -1133,25 +1081,19 @@ func awsRestjson1_serializeOpHttpBindingsGetConfigurationProfileInput(v *GetConf return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.ConfigurationProfileId == nil { + if v.ConfigurationProfileId == nil || len(*v.ConfigurationProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} } if v.ConfigurationProfileId != nil { - if len(*v.ConfigurationProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} - } if err := encoder.SetURI("ConfigurationProfileId").String(*v.ConfigurationProfileId); err != nil { return err } @@ -1211,34 +1153,28 @@ func awsRestjson1_serializeOpHttpBindingsGetDeploymentInput(v *GetDeploymentInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.DeploymentNumber == nil { + if v.DeploymentNumber == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentNumber must not be empty")} } - if v.DeploymentNumber != nil { - if err := encoder.SetURI("DeploymentNumber").Integer(*v.DeploymentNumber); err != nil { + if v.DeploymentNumber != 0 { + if err := encoder.SetURI("DeploymentNumber").Integer(v.DeploymentNumber); err != nil { return err } } - if v.EnvironmentId == nil { + if v.EnvironmentId == nil || len(*v.EnvironmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} } if v.EnvironmentId != nil { - if len(*v.EnvironmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} - } if err := encoder.SetURI("EnvironmentId").String(*v.EnvironmentId); err != nil { return err } @@ -1298,13 +1234,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDeploymentStrategyInput(v *GetDeploy return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeploymentStrategyId == nil { + if v.DeploymentStrategyId == nil || len(*v.DeploymentStrategyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentStrategyId must not be empty")} } if v.DeploymentStrategyId != nil { - if len(*v.DeploymentStrategyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentStrategyId must not be empty")} - } if err := encoder.SetURI("DeploymentStrategyId").String(*v.DeploymentStrategyId); err != nil { return err } @@ -1364,25 +1297,19 @@ func awsRestjson1_serializeOpHttpBindingsGetEnvironmentInput(v *GetEnvironmentIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.EnvironmentId == nil { + if v.EnvironmentId == nil || len(*v.EnvironmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} } if v.EnvironmentId != nil { - if len(*v.EnvironmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} - } if err := encoder.SetURI("EnvironmentId").String(*v.EnvironmentId); err != nil { return err } @@ -1442,35 +1369,29 @@ func awsRestjson1_serializeOpHttpBindingsGetHostedConfigurationVersionInput(v *G return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.ConfigurationProfileId == nil { + if v.ConfigurationProfileId == nil || len(*v.ConfigurationProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} } if v.ConfigurationProfileId != nil { - if len(*v.ConfigurationProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} - } if err := encoder.SetURI("ConfigurationProfileId").String(*v.ConfigurationProfileId); err != nil { return err } } - if v.VersionNumber == nil { + if v.VersionNumber == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VersionNumber must not be empty")} } - if v.VersionNumber != nil { - if err := encoder.SetURI("VersionNumber").Integer(*v.VersionNumber); err != nil { + if v.VersionNumber != 0 { + if err := encoder.SetURI("VersionNumber").Integer(v.VersionNumber); err != nil { return err } } @@ -1529,8 +1450,8 @@ func awsRestjson1_serializeOpHttpBindingsListApplicationsInput(v *ListApplicatio return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("max_results").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("max_results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1591,20 +1512,17 @@ func awsRestjson1_serializeOpHttpBindingsListConfigurationProfilesInput(v *ListC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("max_results").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("max_results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1665,32 +1583,26 @@ func awsRestjson1_serializeOpHttpBindingsListDeploymentsInput(v *ListDeployments return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.EnvironmentId == nil { + if v.EnvironmentId == nil || len(*v.EnvironmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} } if v.EnvironmentId != nil { - if len(*v.EnvironmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} - } if err := encoder.SetURI("EnvironmentId").String(*v.EnvironmentId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("max_results").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("max_results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1751,8 +1663,8 @@ func awsRestjson1_serializeOpHttpBindingsListDeploymentStrategiesInput(v *ListDe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("max_results").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("max_results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1813,20 +1725,17 @@ func awsRestjson1_serializeOpHttpBindingsListEnvironmentsInput(v *ListEnvironmen return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("max_results").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("max_results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1887,32 +1796,26 @@ func awsRestjson1_serializeOpHttpBindingsListHostedConfigurationVersionsInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.ConfigurationProfileId == nil { + if v.ConfigurationProfileId == nil || len(*v.ConfigurationProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} } if v.ConfigurationProfileId != nil { - if len(*v.ConfigurationProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} - } if err := encoder.SetURI("ConfigurationProfileId").String(*v.ConfigurationProfileId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("max_results").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("max_results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1973,13 +1876,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2050,25 +1950,19 @@ func awsRestjson1_serializeOpHttpBindingsStartDeploymentInput(v *StartDeployment return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.EnvironmentId == nil { + if v.EnvironmentId == nil || len(*v.EnvironmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} } if v.EnvironmentId != nil { - if len(*v.EnvironmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} - } if err := encoder.SetURI("EnvironmentId").String(*v.EnvironmentId); err != nil { return err } @@ -2162,34 +2056,28 @@ func awsRestjson1_serializeOpHttpBindingsStopDeploymentInput(v *StopDeploymentIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.DeploymentNumber == nil { + if v.DeploymentNumber == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentNumber must not be empty")} } - if v.DeploymentNumber != nil { - if err := encoder.SetURI("DeploymentNumber").Integer(*v.DeploymentNumber); err != nil { + if v.DeploymentNumber != 0 { + if err := encoder.SetURI("DeploymentNumber").Integer(v.DeploymentNumber); err != nil { return err } } - if v.EnvironmentId == nil { + if v.EnvironmentId == nil || len(*v.EnvironmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} } if v.EnvironmentId != nil { - if len(*v.EnvironmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} - } if err := encoder.SetURI("EnvironmentId").String(*v.EnvironmentId); err != nil { return err } @@ -2260,13 +2148,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2340,13 +2225,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2354,10 +2236,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -2426,13 +2305,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateApplicationInput(v *UpdateApplica return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -2520,25 +2396,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateConfigurationProfileInput(v *Upda return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.ConfigurationProfileId == nil { + if v.ConfigurationProfileId == nil || len(*v.ConfigurationProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} } if v.ConfigurationProfileId != nil { - if len(*v.ConfigurationProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} - } if err := encoder.SetURI("ConfigurationProfileId").String(*v.ConfigurationProfileId); err != nil { return err } @@ -2638,13 +2508,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDeploymentStrategyInput(v *Update return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeploymentStrategyId == nil { + if v.DeploymentStrategyId == nil || len(*v.DeploymentStrategyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentStrategyId must not be empty")} } if v.DeploymentStrategyId != nil { - if len(*v.DeploymentStrategyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentStrategyId must not be empty")} - } if err := encoder.SetURI("DeploymentStrategyId").String(*v.DeploymentStrategyId); err != nil { return err } @@ -2657,9 +2524,9 @@ func awsRestjson1_serializeOpDocumentUpdateDeploymentStrategyInput(v *UpdateDepl object := value.Object() defer object.Close() - if v.DeploymentDurationInMinutes != nil { + if v.DeploymentDurationInMinutes != 0 { ok := object.Key("DeploymentDurationInMinutes") - ok.Integer(*v.DeploymentDurationInMinutes) + ok.Integer(v.DeploymentDurationInMinutes) } if v.Description != nil { @@ -2667,14 +2534,14 @@ func awsRestjson1_serializeOpDocumentUpdateDeploymentStrategyInput(v *UpdateDepl ok.String(*v.Description) } - if v.FinalBakeTimeInMinutes != nil { + if v.FinalBakeTimeInMinutes != 0 { ok := object.Key("FinalBakeTimeInMinutes") - ok.Integer(*v.FinalBakeTimeInMinutes) + ok.Integer(v.FinalBakeTimeInMinutes) } - if v.GrowthFactor != nil { + if v.GrowthFactor != 0 { ok := object.Key("GrowthFactor") - ok.Float(*v.GrowthFactor) + ok.Float(v.GrowthFactor) } if len(v.GrowthType) > 0 { @@ -2747,25 +2614,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateEnvironmentInput(v *UpdateEnviron return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.EnvironmentId == nil { + if v.EnvironmentId == nil || len(*v.EnvironmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} } if v.EnvironmentId != nil { - if len(*v.EnvironmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EnvironmentId must not be empty")} - } if err := encoder.SetURI("EnvironmentId").String(*v.EnvironmentId); err != nil { return err } @@ -2849,25 +2710,19 @@ func awsRestjson1_serializeOpHttpBindingsValidateConfigurationInput(v *ValidateC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.ConfigurationProfileId == nil { + if v.ConfigurationProfileId == nil || len(*v.ConfigurationProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} } if v.ConfigurationProfileId != nil { - if len(*v.ConfigurationProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationProfileId must not be empty")} - } if err := encoder.SetURI("ConfigurationProfileId").String(*v.ConfigurationProfileId); err != nil { return err } @@ -2897,34 +2752,26 @@ func awsRestjson1_serializeDocumentMonitor(v *types.Monitor, value smithyjson.Va return nil } -func awsRestjson1_serializeDocumentMonitorList(v []*types.Monitor, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMonitorList(v []types.Monitor, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMonitor(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMonitor(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2946,17 +2793,13 @@ func awsRestjson1_serializeDocumentValidator(v *types.Validator, value smithyjso return nil } -func awsRestjson1_serializeDocumentValidatorList(v []*types.Validator, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentValidatorList(v []types.Validator, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentValidator(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentValidator(&v[i], av); err != nil { return err } } diff --git a/service/appconfig/types/errors.go b/service/appconfig/types/errors.go index bd036a69bba..9f7d688ee9a 100644 --- a/service/appconfig/types/errors.go +++ b/service/appconfig/types/errors.go @@ -63,9 +63,9 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type PayloadTooLargeException struct { Message *string - Size *float32 + Size float32 Measure BytesMeasure - Limit *float32 + Limit float32 } func (e *PayloadTooLargeException) Error() string { diff --git a/service/appconfig/types/types.go b/service/appconfig/types/types.go index 73c354938d2..98b77cdf673 100644 --- a/service/appconfig/types/types.go +++ b/service/appconfig/types/types.go @@ -62,18 +62,18 @@ type DeploymentEvent struct { type DeploymentStrategy struct { // Total amount of time the deployment lasted. - DeploymentDurationInMinutes *int32 + DeploymentDurationInMinutes int32 // The description of the deployment strategy. Description *string // The amount of time AppConfig monitored for alarms before considering the // deployment to be complete and no longer eligible for automatic roll back. - FinalBakeTimeInMinutes *int32 + FinalBakeTimeInMinutes int32 // The percentage of targets that received a deployed configuration during each // interval. - GrowthFactor *float32 + GrowthFactor float32 // The algorithm used to define how percentage grew over time. GrowthType GrowthType @@ -101,24 +101,24 @@ type DeploymentSummary struct { ConfigurationVersion *string // Total amount of time the deployment lasted. - DeploymentDurationInMinutes *int32 + DeploymentDurationInMinutes int32 // The sequence number of the deployment. - DeploymentNumber *int32 + DeploymentNumber int32 // The amount of time AppConfig monitors for alarms before considering the // deployment to be complete and no longer eligible for automatic roll back. - FinalBakeTimeInMinutes *int32 + FinalBakeTimeInMinutes int32 // The percentage of targets to receive a deployed configuration during each // interval. - GrowthFactor *float32 + GrowthFactor float32 // The algorithm used to define how percentage grows over time. GrowthType GrowthType // The percentage of targets for which the deployment is available. - PercentageComplete *float32 + PercentageComplete float32 // Time the deployment started. StartedAt *time.Time @@ -139,7 +139,7 @@ type Environment struct { Id *string // Amazon CloudWatch alarms monitored during the deployment. - Monitors []*Monitor + Monitors []Monitor // The name of the environment. Name *string @@ -167,7 +167,7 @@ type HostedConfigurationVersionSummary struct { Description *string // The configuration version. - VersionNumber *int32 + VersionNumber int32 } // Amazon CloudWatch alarms to monitor during the deployment process. diff --git a/service/appconfig/validators.go b/service/appconfig/validators.go index d1933cb263b..2a8d780a27c 100644 --- a/service/appconfig/validators.go +++ b/service/appconfig/validators.go @@ -772,13 +772,13 @@ func validateValidator(v *types.Validator) error { } } -func validateValidatorList(v []*types.Validator) error { +func validateValidatorList(v []types.Validator) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ValidatorList"} for i := range v { - if err := validateValidator(v[i]); err != nil { + if err := validateValidator(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -835,18 +835,12 @@ func validateOpCreateDeploymentStrategyInput(v *CreateDeploymentStrategyInput) e return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateDeploymentStrategyInput"} - if v.GrowthFactor == nil { - invalidParams.Add(smithy.NewErrParamRequired("GrowthFactor")) - } if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if len(v.ReplicateTo) == 0 { invalidParams.Add(smithy.NewErrParamRequired("ReplicateTo")) } - if v.DeploymentDurationInMinutes == nil { - invalidParams.Add(smithy.NewErrParamRequired("DeploymentDurationInMinutes")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -970,9 +964,6 @@ func validateOpDeleteHostedConfigurationVersionInput(v *DeleteHostedConfiguratio if v.ConfigurationProfileId == nil { invalidParams.Add(smithy.NewErrParamRequired("ConfigurationProfileId")) } - if v.VersionNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("VersionNumber")) - } if v.ApplicationId == nil { invalidParams.Add(smithy.NewErrParamRequired("ApplicationId")) } @@ -1051,9 +1042,6 @@ func validateOpGetDeploymentInput(v *GetDeploymentInput) error { if v.ApplicationId == nil { invalidParams.Add(smithy.NewErrParamRequired("ApplicationId")) } - if v.DeploymentNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("DeploymentNumber")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1102,9 +1090,6 @@ func validateOpGetHostedConfigurationVersionInput(v *GetHostedConfigurationVersi if v.ConfigurationProfileId == nil { invalidParams.Add(smithy.NewErrParamRequired("ConfigurationProfileId")) } - if v.VersionNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("VersionNumber")) - } if v.ApplicationId == nil { invalidParams.Add(smithy.NewErrParamRequired("ApplicationId")) } @@ -1231,9 +1216,6 @@ func validateOpStopDeploymentInput(v *StopDeploymentInput) error { if v.EnvironmentId == nil { invalidParams.Add(smithy.NewErrParamRequired("EnvironmentId")) } - if v.DeploymentNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("DeploymentNumber")) - } if v.ApplicationId == nil { invalidParams.Add(smithy.NewErrParamRequired("ApplicationId")) } diff --git a/service/appflow/api_op_CreateFlow.go b/service/appflow/api_op_CreateFlow.go index e24ac9ee867..1ab38fd8720 100644 --- a/service/appflow/api_op_CreateFlow.go +++ b/service/appflow/api_op_CreateFlow.go @@ -37,7 +37,7 @@ type CreateFlowInput struct { // destination connector. // // This member is required. - DestinationFlowConfigList []*types.DestinationFlowConfig + DestinationFlowConfigList []types.DestinationFlowConfig // The specified name of the flow. Spaces are not allowed. Use underscores (_) or // hyphens (-) only. @@ -55,7 +55,7 @@ type CreateFlowInput struct { // flow run. // // This member is required. - Tasks []*types.Task + Tasks []types.Task // The trigger settings that determine how and when the flow runs. // @@ -72,7 +72,7 @@ type CreateFlowInput struct { KmsArn *string // The tags used to organize, track, or control access for your flow. - Tags map[string]*string + Tags map[string]string } type CreateFlowOutput struct { diff --git a/service/appflow/api_op_DeleteConnectorProfile.go b/service/appflow/api_op_DeleteConnectorProfile.go index 935f26a685a..385806d06b2 100644 --- a/service/appflow/api_op_DeleteConnectorProfile.go +++ b/service/appflow/api_op_DeleteConnectorProfile.go @@ -36,7 +36,7 @@ type DeleteConnectorProfileInput struct { // Indicates whether Amazon AppFlow should delete the profile, even if it is // currently in use in one or more flows. - ForceDelete *bool + ForceDelete bool } type DeleteConnectorProfileOutput struct { diff --git a/service/appflow/api_op_DeleteFlow.go b/service/appflow/api_op_DeleteFlow.go index b5577a879d0..807d42afd48 100644 --- a/service/appflow/api_op_DeleteFlow.go +++ b/service/appflow/api_op_DeleteFlow.go @@ -38,7 +38,7 @@ type DeleteFlowInput struct { // Indicates whether Amazon AppFlow should delete the flow, even if it is currently // in use. - ForceDelete *bool + ForceDelete bool } type DeleteFlowOutput struct { diff --git a/service/appflow/api_op_DescribeConnectorEntity.go b/service/appflow/api_op_DescribeConnectorEntity.go index c7111368da3..9c84c17ac87 100644 --- a/service/appflow/api_op_DescribeConnectorEntity.go +++ b/service/appflow/api_op_DescribeConnectorEntity.go @@ -49,7 +49,7 @@ type DescribeConnectorEntityOutput struct { // entity, the fields would be account name, account ID, and so on. // // This member is required. - ConnectorEntityFields []*types.ConnectorEntityField + ConnectorEntityFields []types.ConnectorEntityField // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appflow/api_op_DescribeConnectorProfiles.go b/service/appflow/api_op_DescribeConnectorProfiles.go index 9e039fb5c6c..3995b4f8fbf 100644 --- a/service/appflow/api_op_DescribeConnectorProfiles.go +++ b/service/appflow/api_op_DescribeConnectorProfiles.go @@ -35,7 +35,7 @@ type DescribeConnectorProfilesInput struct { // The name of the connector profile. The name is unique for each ConnectorProfile // in the AWS account. - ConnectorProfileNames []*string + ConnectorProfileNames []string // The type of connector, such as Salesforce, Amplitude, and so on. ConnectorType types.ConnectorType @@ -51,7 +51,7 @@ type DescribeConnectorProfilesInput struct { type DescribeConnectorProfilesOutput struct { // Returns information about the connector profiles associated with the flow. - ConnectorProfileDetails []*types.ConnectorProfile + ConnectorProfileDetails []types.ConnectorProfile // The pagination token for the next page of data. If nextToken=null, this means // that all records have been fetched. diff --git a/service/appflow/api_op_DescribeConnectors.go b/service/appflow/api_op_DescribeConnectors.go index fbe44775ee3..f18064d6b0b 100644 --- a/service/appflow/api_op_DescribeConnectors.go +++ b/service/appflow/api_op_DescribeConnectors.go @@ -43,7 +43,7 @@ type DescribeConnectorsInput struct { type DescribeConnectorsOutput struct { // The configuration that is applied to the connectors used in the flow. - ConnectorConfigurations map[string]*types.ConnectorConfiguration + ConnectorConfigurations map[string]types.ConnectorConfiguration // The pagination token for the next page of data. NextToken *string diff --git a/service/appflow/api_op_DescribeFlow.go b/service/appflow/api_op_DescribeFlow.go index ec860071185..5c1d50be71a 100644 --- a/service/appflow/api_op_DescribeFlow.go +++ b/service/appflow/api_op_DescribeFlow.go @@ -50,7 +50,7 @@ type DescribeFlowOutput struct { // The configuration that controls how Amazon AppFlow transfers data to the // destination connector. - DestinationFlowConfigList []*types.DestinationFlowConfig + DestinationFlowConfigList []types.DestinationFlowConfig // The flow's Amazon Resource Name (ARN). FlowArn *string @@ -86,11 +86,11 @@ type DescribeFlowOutput struct { SourceFlowConfig *types.SourceFlowConfig // The tags used to organize, track, or control access for your flow. - Tags map[string]*string + Tags map[string]string // A list of tasks that Amazon AppFlow performs while transferring the data in the // flow run. - Tasks []*types.Task + Tasks []types.Task // The trigger settings that determine how and when the flow runs. TriggerConfig *types.TriggerConfig diff --git a/service/appflow/api_op_DescribeFlowExecutionRecords.go b/service/appflow/api_op_DescribeFlowExecutionRecords.go index e77c52f68d1..03d34c5b5a8 100644 --- a/service/appflow/api_op_DescribeFlowExecutionRecords.go +++ b/service/appflow/api_op_DescribeFlowExecutionRecords.go @@ -46,7 +46,7 @@ type DescribeFlowExecutionRecordsInput struct { type DescribeFlowExecutionRecordsOutput struct { // Returns a list of all instances when this flow was run. - FlowExecutions []*types.ExecutionRecord + FlowExecutions []types.ExecutionRecord // The pagination token for the next page of data. NextToken *string diff --git a/service/appflow/api_op_ListConnectorEntities.go b/service/appflow/api_op_ListConnectorEntities.go index 717734135f4..8bbdb412c21 100644 --- a/service/appflow/api_op_ListConnectorEntities.go +++ b/service/appflow/api_op_ListConnectorEntities.go @@ -54,7 +54,7 @@ type ListConnectorEntitiesOutput struct { // belonging to that group. // // This member is required. - ConnectorEntityMap map[string][]*types.ConnectorEntity + ConnectorEntityMap map[string][]types.ConnectorEntity // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appflow/api_op_ListFlows.go b/service/appflow/api_op_ListFlows.go index 08a898e2179..15becc7bef5 100644 --- a/service/appflow/api_op_ListFlows.go +++ b/service/appflow/api_op_ListFlows.go @@ -39,7 +39,7 @@ type ListFlowsInput struct { type ListFlowsOutput struct { // The list of flows associated with your account. - Flows []*types.FlowDefinition + Flows []types.FlowDefinition // The pagination token for next page of data. NextToken *string diff --git a/service/appflow/api_op_ListTagsForResource.go b/service/appflow/api_op_ListTagsForResource.go index 5a73a659198..0b3c1bf70d8 100644 --- a/service/appflow/api_op_ListTagsForResource.go +++ b/service/appflow/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags used to organize, track, or control access for your flow. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appflow/api_op_TagResource.go b/service/appflow/api_op_TagResource.go index 5a213b39ffd..bbacc8d1444 100644 --- a/service/appflow/api_op_TagResource.go +++ b/service/appflow/api_op_TagResource.go @@ -36,7 +36,7 @@ type TagResourceInput struct { // The tags used to organize, track, or control access for your flow. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/appflow/api_op_UntagResource.go b/service/appflow/api_op_UntagResource.go index 316b6404e6e..96ffb50b775 100644 --- a/service/appflow/api_op_UntagResource.go +++ b/service/appflow/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The tag keys associated with the tag that you want to remove from your flow. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/appflow/api_op_UpdateFlow.go b/service/appflow/api_op_UpdateFlow.go index 6c290e8b7ff..aa8f3d87af4 100644 --- a/service/appflow/api_op_UpdateFlow.go +++ b/service/appflow/api_op_UpdateFlow.go @@ -33,7 +33,7 @@ type UpdateFlowInput struct { // destination connector. // // This member is required. - DestinationFlowConfigList []*types.DestinationFlowConfig + DestinationFlowConfigList []types.DestinationFlowConfig // The specified name of the flow. Spaces are not allowed. Use underscores (_) or // hyphens (-) only. @@ -45,7 +45,7 @@ type UpdateFlowInput struct { // flow run. // // This member is required. - Tasks []*types.Task + Tasks []types.Task // The trigger settings that determine how and when the flow runs. // diff --git a/service/appflow/deserializers.go b/service/appflow/deserializers.go index 3f031e74743..23d2075233f 100644 --- a/service/appflow/deserializers.go +++ b/service/appflow/deserializers.go @@ -170,7 +170,7 @@ func awsRestjson1_deserializeOpDocumentCreateConnectorProfileOutput(v **CreateCo if !ok { return fmt.Errorf("expected ConnectorProfileArn to be of type string, got %T instead", value) } - sv.ConnectorProfileArn = &jtv + sv.ConnectorProfileArn = ptr.String(jtv) } default: @@ -339,7 +339,7 @@ func awsRestjson1_deserializeOpDocumentCreateFlowOutput(v **CreateFlowOutput, va if !ok { return fmt.Errorf("expected FlowArn to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "flowStatus": @@ -844,7 +844,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConnectorProfilesOutput(v **Descr if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1003,7 +1003,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConnectorsOutput(v **DescribeConn if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1170,7 +1170,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFlowOutput(v **DescribeFlowOutput if !ok { return fmt.Errorf("expected CreatedBy to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "description": @@ -1179,7 +1179,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFlowOutput(v **DescribeFlowOutput if !ok { return fmt.Errorf("expected FlowDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "destinationFlowConfigList": @@ -1193,7 +1193,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFlowOutput(v **DescribeFlowOutput if !ok { return fmt.Errorf("expected FlowArn to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "flowName": @@ -1202,7 +1202,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFlowOutput(v **DescribeFlowOutput if !ok { return fmt.Errorf("expected FlowName to be of type string, got %T instead", value) } - sv.FlowName = &jtv + sv.FlowName = ptr.String(jtv) } case "flowStatus": @@ -1220,7 +1220,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFlowOutput(v **DescribeFlowOutput if !ok { return fmt.Errorf("expected FlowStatusMessage to be of type string, got %T instead", value) } - sv.FlowStatusMessage = &jtv + sv.FlowStatusMessage = ptr.String(jtv) } case "kmsArn": @@ -1229,7 +1229,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFlowOutput(v **DescribeFlowOutput if !ok { return fmt.Errorf("expected KMSArn to be of type string, got %T instead", value) } - sv.KmsArn = &jtv + sv.KmsArn = ptr.String(jtv) } case "lastRunExecutionDetails": @@ -1256,7 +1256,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFlowOutput(v **DescribeFlowOutput if !ok { return fmt.Errorf("expected UpdatedBy to be of type string, got %T instead", value) } - sv.LastUpdatedBy = &jtv + sv.LastUpdatedBy = ptr.String(jtv) } case "sourceFlowConfig": @@ -1438,7 +1438,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFlowExecutionRecordsOutput(v **De if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1756,7 +1756,7 @@ func awsRestjson1_deserializeOpDocumentListFlowsOutput(v **ListFlowsOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2069,7 +2069,7 @@ func awsRestjson1_deserializeOpDocumentStartFlowOutput(v **StartFlowOutput, valu if !ok { return fmt.Errorf("expected ExecutionId to be of type string, got %T instead", value) } - sv.ExecutionId = &jtv + sv.ExecutionId = ptr.String(jtv) } case "flowArn": @@ -2078,7 +2078,7 @@ func awsRestjson1_deserializeOpDocumentStartFlowOutput(v **StartFlowOutput, valu if !ok { return fmt.Errorf("expected FlowArn to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "flowStatus": @@ -2247,7 +2247,7 @@ func awsRestjson1_deserializeOpDocumentStopFlowOutput(v **StopFlowOutput, value if !ok { return fmt.Errorf("expected FlowArn to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "flowStatus": @@ -2597,7 +2597,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConnectorProfileOutput(v **UpdateCo if !ok { return fmt.Errorf("expected ConnectorProfileArn to be of type string, got %T instead", value) } - sv.ConnectorProfileArn = &jtv + sv.ConnectorProfileArn = ptr.String(jtv) } default: @@ -3196,7 +3196,7 @@ func awsRestjson1_deserializeDocumentAmplitudeSourceProperties(v **types.Amplitu if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -3236,7 +3236,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3276,7 +3276,7 @@ func awsRestjson1_deserializeDocumentConnectorAuthenticationException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3316,7 +3316,7 @@ func awsRestjson1_deserializeDocumentConnectorConfiguration(v **types.ConnectorC if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CanUseAsDestination = &jtv + sv.CanUseAsDestination = jtv } case "canUseAsSource": @@ -3325,7 +3325,7 @@ func awsRestjson1_deserializeDocumentConnectorConfiguration(v **types.ConnectorC if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CanUseAsSource = &jtv + sv.CanUseAsSource = jtv } case "connectorMetadata": @@ -3339,7 +3339,7 @@ func awsRestjson1_deserializeDocumentConnectorConfiguration(v **types.ConnectorC if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsPrivateLinkEnabled = &jtv + sv.IsPrivateLinkEnabled = jtv } case "isPrivateLinkEndpointUrlRequired": @@ -3348,7 +3348,7 @@ func awsRestjson1_deserializeDocumentConnectorConfiguration(v **types.ConnectorC if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsPrivateLinkEndpointUrlRequired = &jtv + sv.IsPrivateLinkEndpointUrlRequired = jtv } case "supportedDestinationConnectors": @@ -3375,7 +3375,7 @@ func awsRestjson1_deserializeDocumentConnectorConfiguration(v **types.ConnectorC return nil } -func awsRestjson1_deserializeDocumentConnectorConfigurationsMap(v *map[string]*types.ConnectorConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentConnectorConfigurationsMap(v *map[string]types.ConnectorConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3388,18 +3388,21 @@ func awsRestjson1_deserializeDocumentConnectorConfigurationsMap(v *map[string]*t return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.ConnectorConfiguration + var mv map[string]types.ConnectorConfiguration if *v == nil { - mv = map[string]*types.ConnectorConfiguration{} + mv = map[string]types.ConnectorConfiguration{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.ConnectorConfiguration - if err := awsRestjson1_deserializeDocumentConnectorConfiguration(&parsedVal, value); err != nil { + var parsedVal types.ConnectorConfiguration + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentConnectorConfiguration(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -3435,7 +3438,7 @@ func awsRestjson1_deserializeDocumentConnectorEntity(v **types.ConnectorEntity, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.HasNestedEntities = &jtv + sv.HasNestedEntities = jtv } case "label": @@ -3444,7 +3447,7 @@ func awsRestjson1_deserializeDocumentConnectorEntity(v **types.ConnectorEntity, if !ok { return fmt.Errorf("expected Label to be of type string, got %T instead", value) } - sv.Label = &jtv + sv.Label = ptr.String(jtv) } case "name": @@ -3453,7 +3456,7 @@ func awsRestjson1_deserializeDocumentConnectorEntity(v **types.ConnectorEntity, if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -3493,7 +3496,7 @@ func awsRestjson1_deserializeDocumentConnectorEntityField(v **types.ConnectorEnt if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "destinationProperties": @@ -3507,7 +3510,7 @@ func awsRestjson1_deserializeDocumentConnectorEntityField(v **types.ConnectorEnt if !ok { return fmt.Errorf("expected Identifier to be of type string, got %T instead", value) } - sv.Identifier = &jtv + sv.Identifier = ptr.String(jtv) } case "label": @@ -3516,7 +3519,7 @@ func awsRestjson1_deserializeDocumentConnectorEntityField(v **types.ConnectorEnt if !ok { return fmt.Errorf("expected Label to be of type string, got %T instead", value) } - sv.Label = &jtv + sv.Label = ptr.String(jtv) } case "sourceProperties": @@ -3538,7 +3541,7 @@ func awsRestjson1_deserializeDocumentConnectorEntityField(v **types.ConnectorEnt return nil } -func awsRestjson1_deserializeDocumentConnectorEntityFieldList(v *[]*types.ConnectorEntityField, value interface{}) error { +func awsRestjson1_deserializeDocumentConnectorEntityFieldList(v *[]types.ConnectorEntityField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3551,18 +3554,20 @@ func awsRestjson1_deserializeDocumentConnectorEntityFieldList(v *[]*types.Connec return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConnectorEntityField + var cv []types.ConnectorEntityField if *v == nil { - cv = []*types.ConnectorEntityField{} + cv = []types.ConnectorEntityField{} } else { cv = *v } for _, value := range shape { - var col *types.ConnectorEntityField - if err := awsRestjson1_deserializeDocumentConnectorEntityField(&col, value); err != nil { + var col types.ConnectorEntityField + destAddr := &col + if err := awsRestjson1_deserializeDocumentConnectorEntityField(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3570,7 +3575,7 @@ func awsRestjson1_deserializeDocumentConnectorEntityFieldList(v *[]*types.Connec return nil } -func awsRestjson1_deserializeDocumentConnectorEntityList(v *[]*types.ConnectorEntity, value interface{}) error { +func awsRestjson1_deserializeDocumentConnectorEntityList(v *[]types.ConnectorEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3583,18 +3588,20 @@ func awsRestjson1_deserializeDocumentConnectorEntityList(v *[]*types.ConnectorEn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConnectorEntity + var cv []types.ConnectorEntity if *v == nil { - cv = []*types.ConnectorEntity{} + cv = []types.ConnectorEntity{} } else { cv = *v } for _, value := range shape { - var col *types.ConnectorEntity - if err := awsRestjson1_deserializeDocumentConnectorEntity(&col, value); err != nil { + var col types.ConnectorEntity + destAddr := &col + if err := awsRestjson1_deserializeDocumentConnectorEntity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3602,7 +3609,7 @@ func awsRestjson1_deserializeDocumentConnectorEntityList(v *[]*types.ConnectorEn return nil } -func awsRestjson1_deserializeDocumentConnectorEntityMap(v *map[string][]*types.ConnectorEntity, value interface{}) error { +func awsRestjson1_deserializeDocumentConnectorEntityMap(v *map[string][]types.ConnectorEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3615,18 +3622,20 @@ func awsRestjson1_deserializeDocumentConnectorEntityMap(v *map[string][]*types.C return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*types.ConnectorEntity + var mv map[string][]types.ConnectorEntity if *v == nil { - mv = map[string][]*types.ConnectorEntity{} + mv = map[string][]types.ConnectorEntity{} } else { mv = *v } for key, value := range shape { - var parsedVal []*types.ConnectorEntity - if err := awsRestjson1_deserializeDocumentConnectorEntityList(&parsedVal, value); err != nil { + var parsedVal []types.ConnectorEntity + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentConnectorEntityList(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -3944,7 +3953,7 @@ func awsRestjson1_deserializeDocumentConnectorProfile(v **types.ConnectorProfile if !ok { return fmt.Errorf("expected ConnectorProfileArn to be of type string, got %T instead", value) } - sv.ConnectorProfileArn = &jtv + sv.ConnectorProfileArn = ptr.String(jtv) } case "connectorProfileName": @@ -3953,7 +3962,7 @@ func awsRestjson1_deserializeDocumentConnectorProfile(v **types.ConnectorProfile if !ok { return fmt.Errorf("expected ConnectorProfileName to be of type string, got %T instead", value) } - sv.ConnectorProfileName = &jtv + sv.ConnectorProfileName = ptr.String(jtv) } case "connectorProfileProperties": @@ -3989,7 +3998,7 @@ func awsRestjson1_deserializeDocumentConnectorProfile(v **types.ConnectorProfile if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.CredentialsArn = &jtv + sv.CredentialsArn = ptr.String(jtv) } case "lastUpdatedAt": @@ -4014,7 +4023,7 @@ func awsRestjson1_deserializeDocumentConnectorProfile(v **types.ConnectorProfile return nil } -func awsRestjson1_deserializeDocumentConnectorProfileDetailList(v *[]*types.ConnectorProfile, value interface{}) error { +func awsRestjson1_deserializeDocumentConnectorProfileDetailList(v *[]types.ConnectorProfile, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4027,18 +4036,20 @@ func awsRestjson1_deserializeDocumentConnectorProfileDetailList(v *[]*types.Conn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConnectorProfile + var cv []types.ConnectorProfile if *v == nil { - cv = []*types.ConnectorProfile{} + cv = []types.ConnectorProfile{} } else { cv = *v } for _, value := range shape { - var col *types.ConnectorProfile - if err := awsRestjson1_deserializeDocumentConnectorProfile(&col, value); err != nil { + var col types.ConnectorProfile + destAddr := &col + if err := awsRestjson1_deserializeDocumentConnectorProfile(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4180,7 +4191,7 @@ func awsRestjson1_deserializeDocumentConnectorServerException(v **types.Connecto if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4256,7 +4267,7 @@ func awsRestjson1_deserializeDocumentDatadogConnectorProfileProperties(v **types if !ok { return fmt.Errorf("expected InstanceUrl to be of type string, got %T instead", value) } - sv.InstanceUrl = &jtv + sv.InstanceUrl = ptr.String(jtv) } default: @@ -4327,7 +4338,7 @@ func awsRestjson1_deserializeDocumentDatadogSourceProperties(v **types.DatadogSo if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -4423,7 +4434,7 @@ func awsRestjson1_deserializeDocumentDestinationFieldProperties(v **types.Destin if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsCreatable = &jtv + sv.IsCreatable = jtv } case "isNullable": @@ -4432,7 +4443,7 @@ func awsRestjson1_deserializeDocumentDestinationFieldProperties(v **types.Destin if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsNullable = &jtv + sv.IsNullable = jtv } case "isUpdatable": @@ -4441,7 +4452,7 @@ func awsRestjson1_deserializeDocumentDestinationFieldProperties(v **types.Destin if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsUpdatable = &jtv + sv.IsUpdatable = jtv } case "isUpsertable": @@ -4450,7 +4461,7 @@ func awsRestjson1_deserializeDocumentDestinationFieldProperties(v **types.Destin if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsUpsertable = &jtv + sv.IsUpsertable = jtv } case "supportedWriteOperations": @@ -4495,7 +4506,7 @@ func awsRestjson1_deserializeDocumentDestinationFlowConfig(v **types.Destination if !ok { return fmt.Errorf("expected ConnectorProfileName to be of type string, got %T instead", value) } - sv.ConnectorProfileName = &jtv + sv.ConnectorProfileName = ptr.String(jtv) } case "connectorType": @@ -4521,7 +4532,7 @@ func awsRestjson1_deserializeDocumentDestinationFlowConfig(v **types.Destination return nil } -func awsRestjson1_deserializeDocumentDestinationFlowConfigList(v *[]*types.DestinationFlowConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentDestinationFlowConfigList(v *[]types.DestinationFlowConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4534,18 +4545,20 @@ func awsRestjson1_deserializeDocumentDestinationFlowConfigList(v *[]*types.Desti return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DestinationFlowConfig + var cv []types.DestinationFlowConfig if *v == nil { - cv = []*types.DestinationFlowConfig{} + cv = []types.DestinationFlowConfig{} } else { cv = *v } for _, value := range shape { - var col *types.DestinationFlowConfig - if err := awsRestjson1_deserializeDocumentDestinationFlowConfig(&col, value); err != nil { + var col types.DestinationFlowConfig + destAddr := &col + if err := awsRestjson1_deserializeDocumentDestinationFlowConfig(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4581,7 +4594,7 @@ func awsRestjson1_deserializeDocumentDynatraceConnectorProfileProperties(v **typ if !ok { return fmt.Errorf("expected InstanceUrl to be of type string, got %T instead", value) } - sv.InstanceUrl = &jtv + sv.InstanceUrl = ptr.String(jtv) } default: @@ -4652,7 +4665,7 @@ func awsRestjson1_deserializeDocumentDynatraceSourceProperties(v **types.Dynatra if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -4692,7 +4705,7 @@ func awsRestjson1_deserializeDocumentErrorHandlingConfig(v **types.ErrorHandling if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "bucketPrefix": @@ -4701,7 +4714,7 @@ func awsRestjson1_deserializeDocumentErrorHandlingConfig(v **types.ErrorHandling if !ok { return fmt.Errorf("expected BucketPrefix to be of type string, got %T instead", value) } - sv.BucketPrefix = &jtv + sv.BucketPrefix = ptr.String(jtv) } case "failOnFirstDestinationError": @@ -4710,7 +4723,7 @@ func awsRestjson1_deserializeDocumentErrorHandlingConfig(v **types.ErrorHandling if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.FailOnFirstDestinationError = &jtv + sv.FailOnFirstDestinationError = jtv } default: @@ -4750,7 +4763,7 @@ func awsRestjson1_deserializeDocumentErrorInfo(v **types.ErrorInfo, value interf if !ok { return fmt.Errorf("expected ExecutionMessage to be of type string, got %T instead", value) } - sv.ExecutionMessage = &jtv + sv.ExecutionMessage = ptr.String(jtv) } case "putFailuresCount": @@ -4763,7 +4776,7 @@ func awsRestjson1_deserializeDocumentErrorInfo(v **types.ErrorInfo, value interf if err != nil { return err } - sv.PutFailuresCount = &i64 + sv.PutFailuresCount = ptr.Int64(i64) } default: @@ -4808,7 +4821,7 @@ func awsRestjson1_deserializeDocumentEventBridgeDestinationProperties(v **types. if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -4879,7 +4892,7 @@ func awsRestjson1_deserializeDocumentExecutionDetails(v **types.ExecutionDetails if !ok { return fmt.Errorf("expected MostRecentExecutionMessage to be of type string, got %T instead", value) } - sv.MostRecentExecutionMessage = &jtv + sv.MostRecentExecutionMessage = ptr.String(jtv) } case "mostRecentExecutionStatus": @@ -4941,7 +4954,7 @@ func awsRestjson1_deserializeDocumentExecutionRecord(v **types.ExecutionRecord, if !ok { return fmt.Errorf("expected ExecutionId to be of type string, got %T instead", value) } - sv.ExecutionId = &jtv + sv.ExecutionId = ptr.String(jtv) } case "executionResult": @@ -5025,7 +5038,7 @@ func awsRestjson1_deserializeDocumentExecutionResult(v **types.ExecutionResult, if err != nil { return err } - sv.BytesProcessed = &i64 + sv.BytesProcessed = ptr.Int64(i64) } case "bytesWritten": @@ -5038,7 +5051,7 @@ func awsRestjson1_deserializeDocumentExecutionResult(v **types.ExecutionResult, if err != nil { return err } - sv.BytesWritten = &i64 + sv.BytesWritten = ptr.Int64(i64) } case "errorInfo": @@ -5056,7 +5069,7 @@ func awsRestjson1_deserializeDocumentExecutionResult(v **types.ExecutionResult, if err != nil { return err } - sv.RecordsProcessed = &i64 + sv.RecordsProcessed = ptr.Int64(i64) } default: @@ -5096,7 +5109,7 @@ func awsRestjson1_deserializeDocumentFieldTypeDetails(v **types.FieldTypeDetails if !ok { return fmt.Errorf("expected FieldType to be of type string, got %T instead", value) } - sv.FieldType = &jtv + sv.FieldType = ptr.String(jtv) } case "filterOperators": @@ -5195,7 +5208,7 @@ func awsRestjson1_deserializeDocumentFlowDefinition(v **types.FlowDefinition, va if !ok { return fmt.Errorf("expected CreatedBy to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "description": @@ -5204,7 +5217,7 @@ func awsRestjson1_deserializeDocumentFlowDefinition(v **types.FlowDefinition, va if !ok { return fmt.Errorf("expected FlowDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "destinationConnectorType": @@ -5222,7 +5235,7 @@ func awsRestjson1_deserializeDocumentFlowDefinition(v **types.FlowDefinition, va if !ok { return fmt.Errorf("expected FlowArn to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "flowName": @@ -5231,7 +5244,7 @@ func awsRestjson1_deserializeDocumentFlowDefinition(v **types.FlowDefinition, va if !ok { return fmt.Errorf("expected FlowName to be of type string, got %T instead", value) } - sv.FlowName = &jtv + sv.FlowName = ptr.String(jtv) } case "flowStatus": @@ -5267,7 +5280,7 @@ func awsRestjson1_deserializeDocumentFlowDefinition(v **types.FlowDefinition, va if !ok { return fmt.Errorf("expected UpdatedBy to be of type string, got %T instead", value) } - sv.LastUpdatedBy = &jtv + sv.LastUpdatedBy = ptr.String(jtv) } case "sourceConnectorType": @@ -5302,7 +5315,7 @@ func awsRestjson1_deserializeDocumentFlowDefinition(v **types.FlowDefinition, va return nil } -func awsRestjson1_deserializeDocumentFlowExecutionList(v *[]*types.ExecutionRecord, value interface{}) error { +func awsRestjson1_deserializeDocumentFlowExecutionList(v *[]types.ExecutionRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5315,18 +5328,20 @@ func awsRestjson1_deserializeDocumentFlowExecutionList(v *[]*types.ExecutionReco return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExecutionRecord + var cv []types.ExecutionRecord if *v == nil { - cv = []*types.ExecutionRecord{} + cv = []types.ExecutionRecord{} } else { cv = *v } for _, value := range shape { - var col *types.ExecutionRecord - if err := awsRestjson1_deserializeDocumentExecutionRecord(&col, value); err != nil { + var col types.ExecutionRecord + destAddr := &col + if err := awsRestjson1_deserializeDocumentExecutionRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5334,7 +5349,7 @@ func awsRestjson1_deserializeDocumentFlowExecutionList(v *[]*types.ExecutionReco return nil } -func awsRestjson1_deserializeDocumentFlowList(v *[]*types.FlowDefinition, value interface{}) error { +func awsRestjson1_deserializeDocumentFlowList(v *[]types.FlowDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5347,18 +5362,20 @@ func awsRestjson1_deserializeDocumentFlowList(v *[]*types.FlowDefinition, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FlowDefinition + var cv []types.FlowDefinition if *v == nil { - cv = []*types.FlowDefinition{} + cv = []types.FlowDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.FlowDefinition - if err := awsRestjson1_deserializeDocumentFlowDefinition(&col, value); err != nil { + var col types.FlowDefinition + destAddr := &col + if err := awsRestjson1_deserializeDocumentFlowDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5461,7 +5478,7 @@ func awsRestjson1_deserializeDocumentGoogleAnalyticsSourceProperties(v **types.G if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -5473,7 +5490,7 @@ func awsRestjson1_deserializeDocumentGoogleAnalyticsSourceProperties(v **types.G return nil } -func awsRestjson1_deserializeDocumentIdFieldNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentIdFieldNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5486,21 +5503,21 @@ func awsRestjson1_deserializeDocumentIdFieldNameList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5537,7 +5554,7 @@ func awsRestjson1_deserializeDocumentIncrementalPullConfig(v **types.Incremental if !ok { return fmt.Errorf("expected DatetimeTypeFieldName to be of type string, got %T instead", value) } - sv.DatetimeTypeFieldName = &jtv + sv.DatetimeTypeFieldName = ptr.String(jtv) } default: @@ -5577,7 +5594,7 @@ func awsRestjson1_deserializeDocumentInforNexusConnectorProfileProperties(v **ty if !ok { return fmt.Errorf("expected InstanceUrl to be of type string, got %T instead", value) } - sv.InstanceUrl = &jtv + sv.InstanceUrl = ptr.String(jtv) } default: @@ -5648,7 +5665,7 @@ func awsRestjson1_deserializeDocumentInforNexusSourceProperties(v **types.InforN if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -5688,7 +5705,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5728,7 +5745,7 @@ func awsRestjson1_deserializeDocumentMarketoConnectorProfileProperties(v **types if !ok { return fmt.Errorf("expected InstanceUrl to be of type string, got %T instead", value) } - sv.InstanceUrl = &jtv + sv.InstanceUrl = ptr.String(jtv) } default: @@ -5799,7 +5816,7 @@ func awsRestjson1_deserializeDocumentMarketoSourceProperties(v **types.MarketoSo if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -5811,7 +5828,7 @@ func awsRestjson1_deserializeDocumentMarketoSourceProperties(v **types.MarketoSo return nil } -func awsRestjson1_deserializeDocumentOAuthScopeList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentOAuthScopeList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5824,21 +5841,21 @@ func awsRestjson1_deserializeDocumentOAuthScopeList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected OAuthScope to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5924,7 +5941,7 @@ func awsRestjson1_deserializeDocumentRedshiftConnectorProfileProperties(v **type if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "bucketPrefix": @@ -5933,7 +5950,7 @@ func awsRestjson1_deserializeDocumentRedshiftConnectorProfileProperties(v **type if !ok { return fmt.Errorf("expected BucketPrefix to be of type string, got %T instead", value) } - sv.BucketPrefix = &jtv + sv.BucketPrefix = ptr.String(jtv) } case "databaseUrl": @@ -5942,7 +5959,7 @@ func awsRestjson1_deserializeDocumentRedshiftConnectorProfileProperties(v **type if !ok { return fmt.Errorf("expected DatabaseUrl to be of type string, got %T instead", value) } - sv.DatabaseUrl = &jtv + sv.DatabaseUrl = ptr.String(jtv) } case "roleArn": @@ -5951,7 +5968,7 @@ func awsRestjson1_deserializeDocumentRedshiftConnectorProfileProperties(v **type if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -5991,7 +6008,7 @@ func awsRestjson1_deserializeDocumentRedshiftDestinationProperties(v **types.Red if !ok { return fmt.Errorf("expected BucketPrefix to be of type string, got %T instead", value) } - sv.BucketPrefix = &jtv + sv.BucketPrefix = ptr.String(jtv) } case "errorHandlingConfig": @@ -6005,7 +6022,7 @@ func awsRestjson1_deserializeDocumentRedshiftDestinationProperties(v **types.Red if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.IntermediateBucketName = &jtv + sv.IntermediateBucketName = ptr.String(jtv) } case "object": @@ -6014,7 +6031,7 @@ func awsRestjson1_deserializeDocumentRedshiftDestinationProperties(v **types.Red if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -6057,7 +6074,7 @@ func awsRestjson1_deserializeDocumentRedshiftMetadata(v **types.RedshiftMetadata return nil } -func awsRestjson1_deserializeDocumentRegionList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentRegionList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6070,21 +6087,21 @@ func awsRestjson1_deserializeDocumentRegionList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6121,7 +6138,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6161,7 +6178,7 @@ func awsRestjson1_deserializeDocumentS3DestinationProperties(v **types.S3Destina if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "bucketPrefix": @@ -6170,7 +6187,7 @@ func awsRestjson1_deserializeDocumentS3DestinationProperties(v **types.S3Destina if !ok { return fmt.Errorf("expected BucketPrefix to be of type string, got %T instead", value) } - sv.BucketPrefix = &jtv + sv.BucketPrefix = ptr.String(jtv) } case "s3OutputFormatConfig": @@ -6296,7 +6313,7 @@ func awsRestjson1_deserializeDocumentS3SourceProperties(v **types.S3SourceProper if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "bucketPrefix": @@ -6305,7 +6322,7 @@ func awsRestjson1_deserializeDocumentS3SourceProperties(v **types.S3SourceProper if !ok { return fmt.Errorf("expected BucketPrefix to be of type string, got %T instead", value) } - sv.BucketPrefix = &jtv + sv.BucketPrefix = ptr.String(jtv) } default: @@ -6345,7 +6362,7 @@ func awsRestjson1_deserializeDocumentSalesforceConnectorProfileProperties(v **ty if !ok { return fmt.Errorf("expected InstanceUrl to be of type string, got %T instead", value) } - sv.InstanceUrl = &jtv + sv.InstanceUrl = ptr.String(jtv) } case "isSandboxEnvironment": @@ -6354,7 +6371,7 @@ func awsRestjson1_deserializeDocumentSalesforceConnectorProfileProperties(v **ty if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsSandboxEnvironment = &jtv + sv.IsSandboxEnvironment = jtv } default: @@ -6404,7 +6421,7 @@ func awsRestjson1_deserializeDocumentSalesforceDestinationProperties(v **types.S if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } case "writeOperationType": @@ -6489,7 +6506,7 @@ func awsRestjson1_deserializeDocumentSalesforceSourceProperties(v **types.Salesf if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableDynamicFieldUpdate = &jtv + sv.EnableDynamicFieldUpdate = jtv } case "includeDeletedRecords": @@ -6498,7 +6515,7 @@ func awsRestjson1_deserializeDocumentSalesforceSourceProperties(v **types.Salesf if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IncludeDeletedRecords = &jtv + sv.IncludeDeletedRecords = jtv } case "object": @@ -6507,7 +6524,7 @@ func awsRestjson1_deserializeDocumentSalesforceSourceProperties(v **types.Salesf if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -6569,7 +6586,7 @@ func awsRestjson1_deserializeDocumentScheduledTriggerProperties(v **types.Schedu if !ok { return fmt.Errorf("expected ScheduleExpression to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } case "scheduleStartTime": @@ -6591,7 +6608,7 @@ func awsRestjson1_deserializeDocumentScheduledTriggerProperties(v **types.Schedu if !ok { return fmt.Errorf("expected Timezone to be of type string, got %T instead", value) } - sv.Timezone = &jtv + sv.Timezone = ptr.String(jtv) } default: @@ -6667,7 +6684,7 @@ func awsRestjson1_deserializeDocumentServiceNowConnectorProfileProperties(v **ty if !ok { return fmt.Errorf("expected InstanceUrl to be of type string, got %T instead", value) } - sv.InstanceUrl = &jtv + sv.InstanceUrl = ptr.String(jtv) } default: @@ -6738,7 +6755,7 @@ func awsRestjson1_deserializeDocumentServiceNowSourceProperties(v **types.Servic if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -6778,7 +6795,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6880,7 +6897,7 @@ func awsRestjson1_deserializeDocumentSingularSourceProperties(v **types.Singular if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -6920,7 +6937,7 @@ func awsRestjson1_deserializeDocumentSlackConnectorProfileProperties(v **types.S if !ok { return fmt.Errorf("expected InstanceUrl to be of type string, got %T instead", value) } - sv.InstanceUrl = &jtv + sv.InstanceUrl = ptr.String(jtv) } default: @@ -6996,7 +7013,7 @@ func awsRestjson1_deserializeDocumentSlackSourceProperties(v **types.SlackSource if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -7036,7 +7053,7 @@ func awsRestjson1_deserializeDocumentSnowflakeConnectorProfileProperties(v **typ if !ok { return fmt.Errorf("expected AccountName to be of type string, got %T instead", value) } - sv.AccountName = &jtv + sv.AccountName = ptr.String(jtv) } case "bucketName": @@ -7045,7 +7062,7 @@ func awsRestjson1_deserializeDocumentSnowflakeConnectorProfileProperties(v **typ if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "bucketPrefix": @@ -7054,7 +7071,7 @@ func awsRestjson1_deserializeDocumentSnowflakeConnectorProfileProperties(v **typ if !ok { return fmt.Errorf("expected BucketPrefix to be of type string, got %T instead", value) } - sv.BucketPrefix = &jtv + sv.BucketPrefix = ptr.String(jtv) } case "privateLinkServiceName": @@ -7063,7 +7080,7 @@ func awsRestjson1_deserializeDocumentSnowflakeConnectorProfileProperties(v **typ if !ok { return fmt.Errorf("expected PrivateLinkServiceName to be of type string, got %T instead", value) } - sv.PrivateLinkServiceName = &jtv + sv.PrivateLinkServiceName = ptr.String(jtv) } case "region": @@ -7072,7 +7089,7 @@ func awsRestjson1_deserializeDocumentSnowflakeConnectorProfileProperties(v **typ if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "stage": @@ -7081,7 +7098,7 @@ func awsRestjson1_deserializeDocumentSnowflakeConnectorProfileProperties(v **typ if !ok { return fmt.Errorf("expected Stage to be of type string, got %T instead", value) } - sv.Stage = &jtv + sv.Stage = ptr.String(jtv) } case "warehouse": @@ -7090,7 +7107,7 @@ func awsRestjson1_deserializeDocumentSnowflakeConnectorProfileProperties(v **typ if !ok { return fmt.Errorf("expected Warehouse to be of type string, got %T instead", value) } - sv.Warehouse = &jtv + sv.Warehouse = ptr.String(jtv) } default: @@ -7130,7 +7147,7 @@ func awsRestjson1_deserializeDocumentSnowflakeDestinationProperties(v **types.Sn if !ok { return fmt.Errorf("expected BucketPrefix to be of type string, got %T instead", value) } - sv.BucketPrefix = &jtv + sv.BucketPrefix = ptr.String(jtv) } case "errorHandlingConfig": @@ -7144,7 +7161,7 @@ func awsRestjson1_deserializeDocumentSnowflakeDestinationProperties(v **types.Sn if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.IntermediateBucketName = &jtv + sv.IntermediateBucketName = ptr.String(jtv) } case "object": @@ -7153,7 +7170,7 @@ func awsRestjson1_deserializeDocumentSnowflakeDestinationProperties(v **types.Sn if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -7330,7 +7347,7 @@ func awsRestjson1_deserializeDocumentSourceFieldProperties(v **types.SourceField if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsQueryable = &jtv + sv.IsQueryable = jtv } case "isRetrievable": @@ -7339,7 +7356,7 @@ func awsRestjson1_deserializeDocumentSourceFieldProperties(v **types.SourceField if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsRetrievable = &jtv + sv.IsRetrievable = jtv } default: @@ -7351,7 +7368,7 @@ func awsRestjson1_deserializeDocumentSourceFieldProperties(v **types.SourceField return nil } -func awsRestjson1_deserializeDocumentSourceFields(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSourceFields(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7364,21 +7381,21 @@ func awsRestjson1_deserializeDocumentSourceFields(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -7415,7 +7432,7 @@ func awsRestjson1_deserializeDocumentSourceFlowConfig(v **types.SourceFlowConfig if !ok { return fmt.Errorf("expected ConnectorProfileName to be of type string, got %T instead", value) } - sv.ConnectorProfileName = &jtv + sv.ConnectorProfileName = ptr.String(jtv) } case "connectorType": @@ -7482,7 +7499,7 @@ func awsRestjson1_deserializeDocumentSupportedFieldTypeDetails(v **types.Support return nil } -func awsRestjson1_deserializeDocumentSupportedValueList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSupportedValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7495,21 +7512,21 @@ func awsRestjson1_deserializeDocumentSupportedValueList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7554,7 +7571,7 @@ func awsRestjson1_deserializeDocumentSupportedWriteOperationList(v *[]types.Writ return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7567,21 +7584,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -7623,7 +7640,7 @@ func awsRestjson1_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected DestinationField to be of type string, got %T instead", value) } - sv.DestinationField = &jtv + sv.DestinationField = ptr.String(jtv) } case "sourceFields": @@ -7654,7 +7671,7 @@ func awsRestjson1_deserializeDocumentTask(v **types.Task, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentTaskPropertiesMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTaskPropertiesMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7667,21 +7684,21 @@ func awsRestjson1_deserializeDocumentTaskPropertiesMap(v *map[string]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Property to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -7690,7 +7707,7 @@ func awsRestjson1_deserializeDocumentTaskPropertiesMap(v *map[string]*string, va return nil } -func awsRestjson1_deserializeDocumentTasks(v *[]*types.Task, value interface{}) error { +func awsRestjson1_deserializeDocumentTasks(v *[]types.Task, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7703,18 +7720,20 @@ func awsRestjson1_deserializeDocumentTasks(v *[]*types.Task, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Task + var cv []types.Task if *v == nil { - cv = []*types.Task{} + cv = []types.Task{} } else { cv = *v } for _, value := range shape { - var col *types.Task - if err := awsRestjson1_deserializeDocumentTask(&col, value); err != nil { + var col types.Task + destAddr := &col + if err := awsRestjson1_deserializeDocumentTask(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7812,7 +7831,7 @@ func awsRestjson1_deserializeDocumentTrendmicroSourceProperties(v **types.Trendm if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -7969,7 +7988,7 @@ func awsRestjson1_deserializeDocumentUnsupportedOperationException(v **types.Uns if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8009,7 +8028,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8049,7 +8068,7 @@ func awsRestjson1_deserializeDocumentVeevaConnectorProfileProperties(v **types.V if !ok { return fmt.Errorf("expected InstanceUrl to be of type string, got %T instead", value) } - sv.InstanceUrl = &jtv + sv.InstanceUrl = ptr.String(jtv) } default: @@ -8120,7 +8139,7 @@ func awsRestjson1_deserializeDocumentVeevaSourceProperties(v **types.VeevaSource if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: @@ -8160,7 +8179,7 @@ func awsRestjson1_deserializeDocumentZendeskConnectorProfileProperties(v **types if !ok { return fmt.Errorf("expected InstanceUrl to be of type string, got %T instead", value) } - sv.InstanceUrl = &jtv + sv.InstanceUrl = ptr.String(jtv) } default: @@ -8236,7 +8255,7 @@ func awsRestjson1_deserializeDocumentZendeskSourceProperties(v **types.ZendeskSo if !ok { return fmt.Errorf("expected Object to be of type string, got %T instead", value) } - sv.Object = &jtv + sv.Object = ptr.String(jtv) } default: diff --git a/service/appflow/go.mod b/service/appflow/go.mod index c4a80b93a7d..e36c6aeb9ec 100644 --- a/service/appflow/go.mod +++ b/service/appflow/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/appflow go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/appflow/serializers.go b/service/appflow/serializers.go index 04207e3d447..a0d7594d1a9 100644 --- a/service/appflow/serializers.go +++ b/service/appflow/serializers.go @@ -298,9 +298,9 @@ func awsRestjson1_serializeOpDocumentDeleteConnectorProfileInput(v *DeleteConnec ok.String(*v.ConnectorProfileName) } - if v.ForceDelete != nil { + if v.ForceDelete { ok := object.Key("forceDelete") - ok.Boolean(*v.ForceDelete) + ok.Boolean(v.ForceDelete) } return nil @@ -376,9 +376,9 @@ func awsRestjson1_serializeOpDocumentDeleteFlowInput(v *DeleteFlowInput, value s ok.String(*v.FlowName) } - if v.ForceDelete != nil { + if v.ForceDelete { ok := object.Key("forceDelete") - ok.Boolean(*v.ForceDelete) + ok.Boolean(v.ForceDelete) } return nil @@ -1005,13 +1005,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1228,13 +1225,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1308,13 +1302,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1322,10 +1313,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1798,17 +1786,13 @@ func awsRestjson1_serializeDocumentConnectorProfileCredentials(v *types.Connecto return nil } -func awsRestjson1_serializeDocumentConnectorProfileNameList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentConnectorProfileNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2043,17 +2027,13 @@ func awsRestjson1_serializeDocumentDestinationFlowConfig(v *types.DestinationFlo return nil } -func awsRestjson1_serializeDocumentDestinationFlowConfigList(v []*types.DestinationFlowConfig, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDestinationFlowConfigList(v []types.DestinationFlowConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDestinationFlowConfig(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDestinationFlowConfig(&v[i], av); err != nil { return err } } @@ -2110,9 +2090,9 @@ func awsRestjson1_serializeDocumentErrorHandlingConfig(v *types.ErrorHandlingCon ok.String(*v.BucketPrefix) } - if v.FailOnFirstDestinationError != nil { + if v.FailOnFirstDestinationError { ok := object.Key("failOnFirstDestinationError") - ok.Boolean(*v.FailOnFirstDestinationError) + ok.Boolean(v.FailOnFirstDestinationError) } return nil @@ -2190,17 +2170,13 @@ func awsRestjson1_serializeDocumentGoogleAnalyticsSourceProperties(v *types.Goog return nil } -func awsRestjson1_serializeDocumentIdFieldNameList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIdFieldNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2516,9 +2492,9 @@ func awsRestjson1_serializeDocumentSalesforceConnectorProfileProperties(v *types ok.String(*v.InstanceUrl) } - if v.IsSandboxEnvironment != nil { + if v.IsSandboxEnvironment { ok := object.Key("isSandboxEnvironment") - ok.Boolean(*v.IsSandboxEnvironment) + ok.Boolean(v.IsSandboxEnvironment) } return nil @@ -2559,14 +2535,14 @@ func awsRestjson1_serializeDocumentSalesforceSourceProperties(v *types.Salesforc object := value.Object() defer object.Close() - if v.EnableDynamicFieldUpdate != nil { + if v.EnableDynamicFieldUpdate { ok := object.Key("enableDynamicFieldUpdate") - ok.Boolean(*v.EnableDynamicFieldUpdate) + ok.Boolean(v.EnableDynamicFieldUpdate) } - if v.IncludeDeletedRecords != nil { + if v.IncludeDeletedRecords { ok := object.Key("includeDeletedRecords") - ok.Boolean(*v.IncludeDeletedRecords) + ok.Boolean(v.IncludeDeletedRecords) } if v.Object != nil { @@ -2927,17 +2903,13 @@ func awsRestjson1_serializeDocumentSourceConnectorProperties(v *types.SourceConn return nil } -func awsRestjson1_serializeDocumentSourceFields(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSourceFields(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2973,17 +2945,13 @@ func awsRestjson1_serializeDocumentSourceFlowConfig(v *types.SourceFlowConfig, v return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3026,32 +2994,24 @@ func awsRestjson1_serializeDocumentTask(v *types.Task, value smithyjson.Value) e return nil } -func awsRestjson1_serializeDocumentTaskPropertiesMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTaskPropertiesMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentTasks(v []*types.Task, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTasks(v []types.Task, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTask(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTask(&v[i], av); err != nil { return err } } diff --git a/service/appflow/types/types.go b/service/appflow/types/types.go index 1aff092f9f7..6111181413a 100644 --- a/service/appflow/types/types.go +++ b/service/appflow/types/types.go @@ -51,20 +51,20 @@ type AmplitudeSourceProperties struct { type ConnectorConfiguration struct { // Specifies whether the connector can be used as a destination. - CanUseAsDestination *bool + CanUseAsDestination bool // Specifies whether the connector can be used as a source. - CanUseAsSource *bool + CanUseAsSource bool // Specifies connector-specific metadata such as oAuthScopes, supportedRegions, // privateLinkServiceUrl, and so on. ConnectorMetadata *ConnectorMetadata // Specifies if PrivateLink is enabled for that connector. - IsPrivateLinkEnabled *bool + IsPrivateLinkEnabled bool // Specifies if a PrivateLink endpoint URL is required. - IsPrivateLinkEndpointUrlRequired *bool + IsPrivateLinkEndpointUrlRequired bool // Lists the connectors that are available for use as destinations. SupportedDestinationConnectors []ConnectorType @@ -91,7 +91,7 @@ type ConnectorEntity struct { // "the_current_entity_name_with_hasNestedEntities_true", then it returns the // nested entities underneath it. This provides a way to retrieve all supported // entities in a recursive fashion. - HasNestedEntities *bool + HasNestedEntities bool // The label applied to the connector entity. Label *string @@ -450,18 +450,18 @@ type DestinationConnectorProperties struct { type DestinationFieldProperties struct { // Specifies if the destination field can be created by the current user. - IsCreatable *bool + IsCreatable bool // Specifies if the destination field can have a null value. - IsNullable *bool + IsNullable bool // Specifies whether the field can be updated during an UPDATE or UPSERT write // operation. - IsUpdatable *bool + IsUpdatable bool // Specifies if the flow run can either insert new rows in the destination field if // they do not already exist, or update them if they do. - IsUpsertable *bool + IsUpsertable bool // A list of supported write operations. For each write operation listed, this // field can be used in idFieldNames when that write operation is present as a @@ -534,7 +534,7 @@ type ErrorHandlingConfig struct { // Specifies if the flow should fail after the first instance of a failure when // attempting to place data in the destination. - FailOnFirstDestinationError *bool + FailOnFirstDestinationError bool } // Provides details in the event of a failed flow, including the failure count and @@ -635,7 +635,7 @@ type FieldTypeDetails struct { // The list of values that a field can contain. For example, a Boolean fieldType // can have two values: "true" and "false". - SupportedValues []*string + SupportedValues []string } // The properties of the flow, such as its source, destination, trigger type, and @@ -679,7 +679,7 @@ type FlowDefinition struct { SourceConnectorType ConnectorType // The tags used to organize, track, or control access for your flow. - Tags map[string]*string + Tags map[string]string // Specifies the type of flow trigger. This can be OnDemand, Scheduled, or Event. TriggerType TriggerType @@ -719,7 +719,7 @@ type GoogleAnalyticsConnectorProfileProperties struct { type GoogleAnalyticsMetadata struct { // The desired authorization scope for the Google Analytics account. - OAuthScopes []*string + OAuthScopes []string } // The properties that are applied when Google Analytics is being used as a source. @@ -986,7 +986,7 @@ type SalesforceConnectorProfileProperties struct { // Indicates whether the connector profile applies to a sandbox or production // environment. - IsSandboxEnvironment *bool + IsSandboxEnvironment bool } // The properties that are applied when Salesforce is being used as a destination. @@ -1006,7 +1006,7 @@ type SalesforceDestinationProperties struct { // The name of the field that Amazon AppFlow uses as an ID when performing a write // operation such as update or delete. - IdFieldNames []*string + IdFieldNames []string // This specifies the type of write operation to be performed in Salesforce. When // the value is UPSERT, then idFieldNames is required. @@ -1017,7 +1017,7 @@ type SalesforceDestinationProperties struct { type SalesforceMetadata struct { // The desired authorization scope for the Salesforce account. - OAuthScopes []*string + OAuthScopes []string } // The properties that are applied when Salesforce is being used as a source. @@ -1030,10 +1030,10 @@ type SalesforceSourceProperties struct { // The flag that enables dynamic fetching of new (recently added) fields in the // Salesforce objects while running a flow. - EnableDynamicFieldUpdate *bool + EnableDynamicFieldUpdate bool // Indicates whether Amazon AppFlow includes deleted files in the flow run. - IncludeDeletedRecords *bool + IncludeDeletedRecords bool } // Specifies the configuration details of a schedule-triggered flow as defined by @@ -1158,7 +1158,7 @@ type SlackConnectorProfileProperties struct { type SlackMetadata struct { // The desired authorization scope for the Slack account. - OAuthScopes []*string + OAuthScopes []string } // The properties that are applied when Slack is being used as a source. @@ -1247,7 +1247,7 @@ type SnowflakeDestinationProperties struct { type SnowflakeMetadata struct { // Specifies the supported AWS Regions when using Snowflake. - SupportedRegions []*string + SupportedRegions []string } // Specifies the information that is required to query a particular connector. @@ -1301,10 +1301,10 @@ type SourceConnectorProperties struct { type SourceFieldProperties struct { // Indicates if the field can be queried. - IsQueryable *bool + IsQueryable bool // Indicates whether the field can be returned in a search result. - IsRetrievable *bool + IsRetrievable bool } // Contains information about the configuration of the source connector used in the @@ -1350,7 +1350,7 @@ type Task struct { // The source fields to which a particular task is applied. // // This member is required. - SourceFields []*string + SourceFields []string // Specifies the particular task implementation that Amazon AppFlow performs. // @@ -1366,7 +1366,7 @@ type Task struct { // A map used to store task-related information. The execution service looks for // particular information based on the TaskType. - TaskProperties map[string]*string + TaskProperties map[string]string } // The connector-specific profile credentials required when using Trend Micro. @@ -1489,7 +1489,7 @@ type ZendeskConnectorProfileProperties struct { type ZendeskMetadata struct { // The desired authorization scope for the Zendesk account. - OAuthScopes []*string + OAuthScopes []string } // The properties that are applied when using Zendesk as a flow source. diff --git a/service/appflow/validators.go b/service/appflow/validators.go index 25a4ca26fd9..d878672dfe7 100644 --- a/service/appflow/validators.go +++ b/service/appflow/validators.go @@ -656,13 +656,13 @@ func validateDestinationFlowConfig(v *types.DestinationFlowConfig) error { } } -func validateDestinationFlowConfigList(v []*types.DestinationFlowConfig) error { +func validateDestinationFlowConfigList(v []types.DestinationFlowConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DestinationFlowConfigList"} for i := range v { - if err := validateDestinationFlowConfig(v[i]); err != nil { + if err := validateDestinationFlowConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1305,13 +1305,13 @@ func validateTask(v *types.Task) error { } } -func validateTasks(v []*types.Task) error { +func validateTasks(v []types.Task) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tasks"} for i := range v { - if err := validateTask(v[i]); err != nil { + if err := validateTask(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/applicationautoscaling/api_op_DescribeScalableTargets.go b/service/applicationautoscaling/api_op_DescribeScalableTargets.go index 93ab1df7561..8b3145c6463 100644 --- a/service/applicationautoscaling/api_op_DescribeScalableTargets.go +++ b/service/applicationautoscaling/api_op_DescribeScalableTargets.go @@ -113,7 +113,7 @@ type DescribeScalableTargetsInput struct { // * Amazon MSK cluster - The resource type and // unique identifier are specified using the cluster ARN. Example: // arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5. - ResourceIds []*string + ResourceIds []string // The scalable dimension associated with the scalable target. This string consists // of the service namespace, resource type, and scaling property. If you specify a @@ -188,7 +188,7 @@ type DescribeScalableTargetsOutput struct { NextToken *string // The scalable targets that match the request parameters. - ScalableTargets []*types.ScalableTarget + ScalableTargets []types.ScalableTarget // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationautoscaling/api_op_DescribeScalingActivities.go b/service/applicationautoscaling/api_op_DescribeScalingActivities.go index 6f18c4f1d64..673cac01cdd 100644 --- a/service/applicationautoscaling/api_op_DescribeScalingActivities.go +++ b/service/applicationautoscaling/api_op_DescribeScalingActivities.go @@ -189,7 +189,7 @@ type DescribeScalingActivitiesOutput struct { NextToken *string // A list of scaling activity objects. - ScalingActivities []*types.ScalingActivity + ScalingActivities []types.ScalingActivity // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationautoscaling/api_op_DescribeScalingPolicies.go b/service/applicationautoscaling/api_op_DescribeScalingPolicies.go index 023c128a6c0..a3cfa43c341 100644 --- a/service/applicationautoscaling/api_op_DescribeScalingPolicies.go +++ b/service/applicationautoscaling/api_op_DescribeScalingPolicies.go @@ -54,7 +54,7 @@ type DescribeScalingPoliciesInput struct { NextToken *string // The names of the scaling policies to describe. - PolicyNames []*string + PolicyNames []string // The identifier of the resource associated with the scaling policy. This string // consists of the resource type and unique identifier. If you specify a scalable @@ -197,7 +197,7 @@ type DescribeScalingPoliciesOutput struct { NextToken *string // Information about the scaling policies. - ScalingPolicies []*types.ScalingPolicy + ScalingPolicies []types.ScalingPolicy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationautoscaling/api_op_DescribeScheduledActions.go b/service/applicationautoscaling/api_op_DescribeScheduledActions.go index 2e15b9184f8..23cc5f4d3ef 100644 --- a/service/applicationautoscaling/api_op_DescribeScheduledActions.go +++ b/service/applicationautoscaling/api_op_DescribeScheduledActions.go @@ -185,7 +185,7 @@ type DescribeScheduledActionsInput struct { ScalableDimension types.ScalableDimension // The names of the scheduled actions to describe. - ScheduledActionNames []*string + ScheduledActionNames []string } type DescribeScheduledActionsOutput struct { @@ -195,7 +195,7 @@ type DescribeScheduledActionsOutput struct { NextToken *string // Information about the scheduled actions. - ScheduledActions []*types.ScheduledAction + ScheduledActions []types.ScheduledAction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationautoscaling/api_op_PutScalingPolicy.go b/service/applicationautoscaling/api_op_PutScalingPolicy.go index 7ac7f3c3bb3..3999170093c 100644 --- a/service/applicationautoscaling/api_op_PutScalingPolicy.go +++ b/service/applicationautoscaling/api_op_PutScalingPolicy.go @@ -232,7 +232,7 @@ type PutScalingPolicyOutput struct { PolicyARN *string // The CloudWatch alarms created for the target tracking scaling policy. - Alarms []*types.Alarm + Alarms []types.Alarm // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationautoscaling/deserializers.go b/service/applicationautoscaling/deserializers.go index 2773b97fe43..d82165d1f46 100644 --- a/service/applicationautoscaling/deserializers.go +++ b/service/applicationautoscaling/deserializers.go @@ -1504,7 +1504,7 @@ func awsAwsjson11_deserializeDocumentAlarm(v **types.Alarm, value interface{}) e if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.AlarmARN = &jtv + sv.AlarmARN = ptr.String(jtv) } case "AlarmName": @@ -1513,7 +1513,7 @@ func awsAwsjson11_deserializeDocumentAlarm(v **types.Alarm, value interface{}) e if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.AlarmName = &jtv + sv.AlarmName = ptr.String(jtv) } default: @@ -1525,7 +1525,7 @@ func awsAwsjson11_deserializeDocumentAlarm(v **types.Alarm, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentAlarms(v *[]*types.Alarm, value interface{}) error { +func awsAwsjson11_deserializeDocumentAlarms(v *[]types.Alarm, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1538,18 +1538,20 @@ func awsAwsjson11_deserializeDocumentAlarms(v *[]*types.Alarm, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Alarm + var cv []types.Alarm if *v == nil { - cv = []*types.Alarm{} + cv = []types.Alarm{} } else { cv = *v } for _, value := range shape { - var col *types.Alarm - if err := awsAwsjson11_deserializeDocumentAlarm(&col, value); err != nil { + var col types.Alarm + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAlarm(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1585,7 +1587,7 @@ func awsAwsjson11_deserializeDocumentConcurrentUpdateException(v **types.Concurr if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1630,7 +1632,7 @@ func awsAwsjson11_deserializeDocumentCustomizedMetricSpecification(v **types.Cus if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Namespace": @@ -1639,7 +1641,7 @@ func awsAwsjson11_deserializeDocumentCustomizedMetricSpecification(v **types.Cus if !ok { return fmt.Errorf("expected MetricNamespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "Statistic": @@ -1657,7 +1659,7 @@ func awsAwsjson11_deserializeDocumentCustomizedMetricSpecification(v **types.Cus if !ok { return fmt.Errorf("expected MetricUnit to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } default: @@ -1697,7 +1699,7 @@ func awsAwsjson11_deserializeDocumentFailedResourceAccessException(v **types.Fai if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1737,7 +1739,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1777,7 +1779,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1817,7 +1819,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1857,7 +1859,7 @@ func awsAwsjson11_deserializeDocumentMetricDimension(v **types.MetricDimension, if !ok { return fmt.Errorf("expected MetricDimensionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Value": @@ -1866,7 +1868,7 @@ func awsAwsjson11_deserializeDocumentMetricDimension(v **types.MetricDimension, if !ok { return fmt.Errorf("expected MetricDimensionValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -1878,7 +1880,7 @@ func awsAwsjson11_deserializeDocumentMetricDimension(v **types.MetricDimension, return nil } -func awsAwsjson11_deserializeDocumentMetricDimensions(v *[]*types.MetricDimension, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricDimensions(v *[]types.MetricDimension, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1891,18 +1893,20 @@ func awsAwsjson11_deserializeDocumentMetricDimensions(v *[]*types.MetricDimensio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MetricDimension + var cv []types.MetricDimension if *v == nil { - cv = []*types.MetricDimension{} + cv = []types.MetricDimension{} } else { cv = *v } for _, value := range shape { - var col *types.MetricDimension - if err := awsAwsjson11_deserializeDocumentMetricDimension(&col, value); err != nil { + var col types.MetricDimension + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMetricDimension(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1938,7 +1942,7 @@ func awsAwsjson11_deserializeDocumentObjectNotFoundException(v **types.ObjectNot if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1987,7 +1991,7 @@ func awsAwsjson11_deserializeDocumentPredefinedMetricSpecification(v **types.Pre if !ok { return fmt.Errorf("expected ResourceLabel to be of type string, got %T instead", value) } - sv.ResourceLabel = &jtv + sv.ResourceLabel = ptr.String(jtv) } default: @@ -2066,7 +2070,7 @@ func awsAwsjson11_deserializeDocumentScalableTarget(v **types.ScalableTarget, va if !ok { return fmt.Errorf("expected ResourceIdMaxLen1600 to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "RoleARN": @@ -2075,7 +2079,7 @@ func awsAwsjson11_deserializeDocumentScalableTarget(v **types.ScalableTarget, va if !ok { return fmt.Errorf("expected ResourceIdMaxLen1600 to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } case "ScalableDimension": @@ -2167,7 +2171,7 @@ func awsAwsjson11_deserializeDocumentScalableTargetAction(v **types.ScalableTarg return nil } -func awsAwsjson11_deserializeDocumentScalableTargets(v *[]*types.ScalableTarget, value interface{}) error { +func awsAwsjson11_deserializeDocumentScalableTargets(v *[]types.ScalableTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2180,18 +2184,20 @@ func awsAwsjson11_deserializeDocumentScalableTargets(v *[]*types.ScalableTarget, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ScalableTarget + var cv []types.ScalableTarget if *v == nil { - cv = []*types.ScalableTarget{} + cv = []types.ScalableTarget{} } else { cv = *v } for _, value := range shape { - var col *types.ScalableTarget - if err := awsAwsjson11_deserializeDocumentScalableTarget(&col, value); err != nil { + var col types.ScalableTarget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentScalableTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2199,7 +2205,7 @@ func awsAwsjson11_deserializeDocumentScalableTargets(v *[]*types.ScalableTarget, return nil } -func awsAwsjson11_deserializeDocumentScalingActivities(v *[]*types.ScalingActivity, value interface{}) error { +func awsAwsjson11_deserializeDocumentScalingActivities(v *[]types.ScalingActivity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2212,18 +2218,20 @@ func awsAwsjson11_deserializeDocumentScalingActivities(v *[]*types.ScalingActivi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ScalingActivity + var cv []types.ScalingActivity if *v == nil { - cv = []*types.ScalingActivity{} + cv = []types.ScalingActivity{} } else { cv = *v } for _, value := range shape { - var col *types.ScalingActivity - if err := awsAwsjson11_deserializeDocumentScalingActivity(&col, value); err != nil { + var col types.ScalingActivity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentScalingActivity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2259,7 +2267,7 @@ func awsAwsjson11_deserializeDocumentScalingActivity(v **types.ScalingActivity, if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ActivityId = &jtv + sv.ActivityId = ptr.String(jtv) } case "Cause": @@ -2268,7 +2276,7 @@ func awsAwsjson11_deserializeDocumentScalingActivity(v **types.ScalingActivity, if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "Description": @@ -2277,7 +2285,7 @@ func awsAwsjson11_deserializeDocumentScalingActivity(v **types.ScalingActivity, if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Details": @@ -2286,7 +2294,7 @@ func awsAwsjson11_deserializeDocumentScalingActivity(v **types.ScalingActivity, if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "EndTime": @@ -2308,7 +2316,7 @@ func awsAwsjson11_deserializeDocumentScalingActivity(v **types.ScalingActivity, if !ok { return fmt.Errorf("expected ResourceIdMaxLen1600 to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ScalableDimension": @@ -2357,7 +2365,7 @@ func awsAwsjson11_deserializeDocumentScalingActivity(v **types.ScalingActivity, if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } default: @@ -2369,7 +2377,7 @@ func awsAwsjson11_deserializeDocumentScalingActivity(v **types.ScalingActivity, return nil } -func awsAwsjson11_deserializeDocumentScalingPolicies(v *[]*types.ScalingPolicy, value interface{}) error { +func awsAwsjson11_deserializeDocumentScalingPolicies(v *[]types.ScalingPolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2382,18 +2390,20 @@ func awsAwsjson11_deserializeDocumentScalingPolicies(v *[]*types.ScalingPolicy, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ScalingPolicy + var cv []types.ScalingPolicy if *v == nil { - cv = []*types.ScalingPolicy{} + cv = []types.ScalingPolicy{} } else { cv = *v } for _, value := range shape { - var col *types.ScalingPolicy - if err := awsAwsjson11_deserializeDocumentScalingPolicy(&col, value); err != nil { + var col types.ScalingPolicy + destAddr := &col + if err := awsAwsjson11_deserializeDocumentScalingPolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2447,7 +2457,7 @@ func awsAwsjson11_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, valu if !ok { return fmt.Errorf("expected ResourceIdMaxLen1600 to be of type string, got %T instead", value) } - sv.PolicyARN = &jtv + sv.PolicyARN = ptr.String(jtv) } case "PolicyName": @@ -2456,7 +2466,7 @@ func awsAwsjson11_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, valu if !ok { return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } case "PolicyType": @@ -2474,7 +2484,7 @@ func awsAwsjson11_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, valu if !ok { return fmt.Errorf("expected ResourceIdMaxLen1600 to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ScalableDimension": @@ -2568,7 +2578,7 @@ func awsAwsjson11_deserializeDocumentScheduledAction(v **types.ScheduledAction, if !ok { return fmt.Errorf("expected ResourceIdMaxLen1600 to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ScalableDimension": @@ -2591,7 +2601,7 @@ func awsAwsjson11_deserializeDocumentScheduledAction(v **types.ScheduledAction, if !ok { return fmt.Errorf("expected ResourceIdMaxLen1600 to be of type string, got %T instead", value) } - sv.Schedule = &jtv + sv.Schedule = ptr.String(jtv) } case "ScheduledActionARN": @@ -2600,7 +2610,7 @@ func awsAwsjson11_deserializeDocumentScheduledAction(v **types.ScheduledAction, if !ok { return fmt.Errorf("expected ResourceIdMaxLen1600 to be of type string, got %T instead", value) } - sv.ScheduledActionARN = &jtv + sv.ScheduledActionARN = ptr.String(jtv) } case "ScheduledActionName": @@ -2609,7 +2619,7 @@ func awsAwsjson11_deserializeDocumentScheduledAction(v **types.ScheduledAction, if !ok { return fmt.Errorf("expected ScheduledActionName to be of type string, got %T instead", value) } - sv.ScheduledActionName = &jtv + sv.ScheduledActionName = ptr.String(jtv) } case "ServiceNamespace": @@ -2643,7 +2653,7 @@ func awsAwsjson11_deserializeDocumentScheduledAction(v **types.ScheduledAction, return nil } -func awsAwsjson11_deserializeDocumentScheduledActions(v *[]*types.ScheduledAction, value interface{}) error { +func awsAwsjson11_deserializeDocumentScheduledActions(v *[]types.ScheduledAction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2656,18 +2666,20 @@ func awsAwsjson11_deserializeDocumentScheduledActions(v *[]*types.ScheduledActio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ScheduledAction + var cv []types.ScheduledAction if *v == nil { - cv = []*types.ScheduledAction{} + cv = []types.ScheduledAction{} } else { cv = *v } for _, value := range shape { - var col *types.ScheduledAction - if err := awsAwsjson11_deserializeDocumentScheduledAction(&col, value); err != nil { + var col types.ScheduledAction + destAddr := &col + if err := awsAwsjson11_deserializeDocumentScheduledAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2707,7 +2719,7 @@ func awsAwsjson11_deserializeDocumentStepAdjustment(v **types.StepAdjustment, va if err != nil { return err } - sv.MetricIntervalLowerBound = &f64 + sv.MetricIntervalLowerBound = ptr.Float64(f64) } case "MetricIntervalUpperBound": @@ -2720,7 +2732,7 @@ func awsAwsjson11_deserializeDocumentStepAdjustment(v **types.StepAdjustment, va if err != nil { return err } - sv.MetricIntervalUpperBound = &f64 + sv.MetricIntervalUpperBound = ptr.Float64(f64) } case "ScalingAdjustment": @@ -2745,7 +2757,7 @@ func awsAwsjson11_deserializeDocumentStepAdjustment(v **types.StepAdjustment, va return nil } -func awsAwsjson11_deserializeDocumentStepAdjustments(v *[]*types.StepAdjustment, value interface{}) error { +func awsAwsjson11_deserializeDocumentStepAdjustments(v *[]types.StepAdjustment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2758,18 +2770,20 @@ func awsAwsjson11_deserializeDocumentStepAdjustments(v *[]*types.StepAdjustment, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StepAdjustment + var cv []types.StepAdjustment if *v == nil { - cv = []*types.StepAdjustment{} + cv = []types.StepAdjustment{} } else { cv = *v } for _, value := range shape { - var col *types.StepAdjustment - if err := awsAwsjson11_deserializeDocumentStepAdjustment(&col, value); err != nil { + var col types.StepAdjustment + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStepAdjustment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2885,7 +2899,7 @@ func awsAwsjson11_deserializeDocumentSuspendedState(v **types.SuspendedState, va if !ok { return fmt.Errorf("expected ScalingSuspended to be of type *bool, got %T instead", value) } - sv.DynamicScalingInSuspended = &jtv + sv.DynamicScalingInSuspended = ptr.Bool(jtv) } case "DynamicScalingOutSuspended": @@ -2894,7 +2908,7 @@ func awsAwsjson11_deserializeDocumentSuspendedState(v **types.SuspendedState, va if !ok { return fmt.Errorf("expected ScalingSuspended to be of type *bool, got %T instead", value) } - sv.DynamicScalingOutSuspended = &jtv + sv.DynamicScalingOutSuspended = ptr.Bool(jtv) } case "ScheduledScalingSuspended": @@ -2903,7 +2917,7 @@ func awsAwsjson11_deserializeDocumentSuspendedState(v **types.SuspendedState, va if !ok { return fmt.Errorf("expected ScalingSuspended to be of type *bool, got %T instead", value) } - sv.ScheduledScalingSuspended = &jtv + sv.ScheduledScalingSuspended = ptr.Bool(jtv) } default: @@ -2948,7 +2962,7 @@ func awsAwsjson11_deserializeDocumentTargetTrackingScalingPolicyConfiguration(v if !ok { return fmt.Errorf("expected DisableScaleIn to be of type *bool, got %T instead", value) } - sv.DisableScaleIn = &jtv + sv.DisableScaleIn = ptr.Bool(jtv) } case "PredefinedMetricSpecification": @@ -2992,7 +3006,7 @@ func awsAwsjson11_deserializeDocumentTargetTrackingScalingPolicyConfiguration(v if err != nil { return err } - sv.TargetValue = &f64 + sv.TargetValue = ptr.Float64(f64) } default: @@ -3032,7 +3046,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3165,7 +3179,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeScalableTargetsOutput(v **Describ if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ScalableTargets": @@ -3210,7 +3224,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeScalingActivitiesOutput(v **Descr if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ScalingActivities": @@ -3255,7 +3269,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeScalingPoliciesOutput(v **Describ if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ScalingPolicies": @@ -3300,7 +3314,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeScheduledActionsOutput(v **Descri if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ScheduledActions": @@ -3350,7 +3364,7 @@ func awsAwsjson11_deserializeOpDocumentPutScalingPolicyOutput(v **PutScalingPoli if !ok { return fmt.Errorf("expected ResourceIdMaxLen1600 to be of type string, got %T instead", value) } - sv.PolicyARN = &jtv + sv.PolicyARN = ptr.String(jtv) } default: diff --git a/service/applicationautoscaling/go.mod b/service/applicationautoscaling/go.mod index 3c6bb88f252..b237b99cfaa 100644 --- a/service/applicationautoscaling/go.mod +++ b/service/applicationautoscaling/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/applicationautoscaling go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/applicationautoscaling/serializers.go b/service/applicationautoscaling/serializers.go index 9c37c1f0064..17f06d1a1a3 100644 --- a/service/applicationautoscaling/serializers.go +++ b/service/applicationautoscaling/serializers.go @@ -525,17 +525,13 @@ func awsAwsjson11_serializeDocumentMetricDimension(v *types.MetricDimension, val return nil } -func awsAwsjson11_serializeDocumentMetricDimensions(v []*types.MetricDimension, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMetricDimensions(v []types.MetricDimension, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMetricDimension(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMetricDimension(&v[i], av); err != nil { return err } } @@ -559,17 +555,13 @@ func awsAwsjson11_serializeDocumentPredefinedMetricSpecification(v *types.Predef return nil } -func awsAwsjson11_serializeDocumentResourceIdsMaxLen1600(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceIdsMaxLen1600(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -613,17 +605,13 @@ func awsAwsjson11_serializeDocumentStepAdjustment(v *types.StepAdjustment, value return nil } -func awsAwsjson11_serializeDocumentStepAdjustments(v []*types.StepAdjustment, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStepAdjustments(v []types.StepAdjustment, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentStepAdjustment(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentStepAdjustment(&v[i], av); err != nil { return err } } diff --git a/service/applicationautoscaling/types/types.go b/service/applicationautoscaling/types/types.go index f86a92d59cc..ca7e6ffdc05 100644 --- a/service/applicationautoscaling/types/types.go +++ b/service/applicationautoscaling/types/types.go @@ -62,7 +62,7 @@ type CustomizedMetricSpecification struct { // The dimensions of the metric. Conditional: If you published your metric with // dimensions, you must specify the same dimensions in your scaling policy. - Dimensions []*MetricDimension + Dimensions []MetricDimension // The unit of the metric. Unit *string @@ -662,7 +662,7 @@ type ScalingPolicy struct { ServiceNamespace ServiceNamespace // The CloudWatch alarms associated with the scaling policy. - Alarms []*Alarm + Alarms []Alarm // A step scaling policy. StepScalingPolicyConfiguration *StepScalingPolicyConfiguration @@ -1007,7 +1007,7 @@ type StepScalingPolicyConfiguration struct { // A set of adjustments that enable you to scale based on the size of the alarm // breach. At least one step adjustment is required if you are adding a new step // scaling policy configuration. - StepAdjustments []*StepAdjustment + StepAdjustments []StepAdjustment } // Specifies whether the scaling activities for a scalable target are in a diff --git a/service/applicationautoscaling/validators.go b/service/applicationautoscaling/validators.go index 3fb6cd0183c..3b2b3b9719b 100644 --- a/service/applicationautoscaling/validators.go +++ b/service/applicationautoscaling/validators.go @@ -294,13 +294,13 @@ func validateMetricDimension(v *types.MetricDimension) error { } } -func validateMetricDimensions(v []*types.MetricDimension) error { +func validateMetricDimensions(v []types.MetricDimension) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MetricDimensions"} for i := range v { - if err := validateMetricDimension(v[i]); err != nil { + if err := validateMetricDimension(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -341,13 +341,13 @@ func validateStepAdjustment(v *types.StepAdjustment) error { } } -func validateStepAdjustments(v []*types.StepAdjustment) error { +func validateStepAdjustments(v []types.StepAdjustment) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "StepAdjustments"} for i := range v { - if err := validateStepAdjustment(v[i]); err != nil { + if err := validateStepAdjustment(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/applicationdiscoveryservice/api_op_AssociateConfigurationItemsToApplication.go b/service/applicationdiscoveryservice/api_op_AssociateConfigurationItemsToApplication.go index b4804980852..ff3007c8b22 100644 --- a/service/applicationdiscoveryservice/api_op_AssociateConfigurationItemsToApplication.go +++ b/service/applicationdiscoveryservice/api_op_AssociateConfigurationItemsToApplication.go @@ -36,7 +36,7 @@ type AssociateConfigurationItemsToApplicationInput struct { // The ID of each configuration item to be associated with an application. // // This member is required. - ConfigurationIds []*string + ConfigurationIds []string } type AssociateConfigurationItemsToApplicationOutput struct { diff --git a/service/applicationdiscoveryservice/api_op_BatchDeleteImportData.go b/service/applicationdiscoveryservice/api_op_BatchDeleteImportData.go index 2376e1e5dbf..5a20b0849c0 100644 --- a/service/applicationdiscoveryservice/api_op_BatchDeleteImportData.go +++ b/service/applicationdiscoveryservice/api_op_BatchDeleteImportData.go @@ -39,14 +39,14 @@ type BatchDeleteImportDataInput struct { // The IDs for the import tasks that you want to delete. // // This member is required. - ImportTaskIds []*string + ImportTaskIds []string } type BatchDeleteImportDataOutput struct { // Error messages returned for each import task that you deleted as a response for // this command. - Errors []*types.BatchDeleteImportDataError + Errors []types.BatchDeleteImportDataError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationdiscoveryservice/api_op_CreateTags.go b/service/applicationdiscoveryservice/api_op_CreateTags.go index 4f3601a39bf..929e81d86cf 100644 --- a/service/applicationdiscoveryservice/api_op_CreateTags.go +++ b/service/applicationdiscoveryservice/api_op_CreateTags.go @@ -34,14 +34,14 @@ type CreateTagsInput struct { // A list of configuration items that you want to tag. // // This member is required. - ConfigurationIds []*string + ConfigurationIds []string // Tags that you want to associate with one or more configuration items. Specify // the tags that you want to create in a key-value format. For example: {"key": // "serverType", "value": "webServer"} // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type CreateTagsOutput struct { diff --git a/service/applicationdiscoveryservice/api_op_DeleteApplications.go b/service/applicationdiscoveryservice/api_op_DeleteApplications.go index e64d16098af..7d2c4cd5382 100644 --- a/service/applicationdiscoveryservice/api_op_DeleteApplications.go +++ b/service/applicationdiscoveryservice/api_op_DeleteApplications.go @@ -31,7 +31,7 @@ type DeleteApplicationsInput struct { // Configuration ID of an application to be deleted. // // This member is required. - ConfigurationIds []*string + ConfigurationIds []string } type DeleteApplicationsOutput struct { diff --git a/service/applicationdiscoveryservice/api_op_DeleteTags.go b/service/applicationdiscoveryservice/api_op_DeleteTags.go index 5bc6275c295..a9f3398b208 100644 --- a/service/applicationdiscoveryservice/api_op_DeleteTags.go +++ b/service/applicationdiscoveryservice/api_op_DeleteTags.go @@ -33,12 +33,12 @@ type DeleteTagsInput struct { // A list of configuration items with tags that you want to delete. // // This member is required. - ConfigurationIds []*string + ConfigurationIds []string // Tags that you want to delete from one or more configuration items. Specify the // tags that you want to delete in a key-value format. For example: {"key": // "serverType", "value": "webServer"} - Tags []*types.Tag + Tags []types.Tag } type DeleteTagsOutput struct { diff --git a/service/applicationdiscoveryservice/api_op_DescribeAgents.go b/service/applicationdiscoveryservice/api_op_DescribeAgents.go index 30ce3f0cbf0..0ac43ca13c6 100644 --- a/service/applicationdiscoveryservice/api_op_DescribeAgents.go +++ b/service/applicationdiscoveryservice/api_op_DescribeAgents.go @@ -34,15 +34,15 @@ type DescribeAgentsInput struct { // The agent or the Connector IDs for which you want information. If you specify no // IDs, the system returns information about all agents/Connectors associated with // your AWS user account. - AgentIds []*string + AgentIds []string // You can filter the request using various logical operators and a key-value // format. For example: {"key": "collectionStatus", "value": "STARTED"} - Filters []*types.Filter + Filters []types.Filter // The total number of agents/Connectors to return in a single page of output. The // maximum value is 100. - MaxResults *int32 + MaxResults int32 // Token to retrieve the next set of results. For example, if you previously // specified 100 IDs for DescribeAgentsRequest$agentIds but set @@ -58,7 +58,7 @@ type DescribeAgentsOutput struct { // includes agent/Connector IDs, IP addresses, media access control (MAC) // addresses, agent/Connector health, host name where the agent/Connector resides, // and the version number of each agent/Connector. - AgentsInfo []*types.AgentInfo + AgentsInfo []types.AgentInfo // Token to retrieve the next set of results. For example, if you specified 100 IDs // for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults to diff --git a/service/applicationdiscoveryservice/api_op_DescribeConfigurations.go b/service/applicationdiscoveryservice/api_op_DescribeConfigurations.go index 8efd8d59143..8337ef69820 100644 --- a/service/applicationdiscoveryservice/api_op_DescribeConfigurations.go +++ b/service/applicationdiscoveryservice/api_op_DescribeConfigurations.go @@ -49,13 +49,13 @@ type DescribeConfigurationsInput struct { // One or more configuration IDs. // // This member is required. - ConfigurationIds []*string + ConfigurationIds []string } type DescribeConfigurationsOutput struct { // A key in the response map. The value is an array of data. - Configurations []map[string]*string + Configurations []map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationdiscoveryservice/api_op_DescribeContinuousExports.go b/service/applicationdiscoveryservice/api_op_DescribeContinuousExports.go index 4b8d10af76a..3ee5c3b5684 100644 --- a/service/applicationdiscoveryservice/api_op_DescribeContinuousExports.go +++ b/service/applicationdiscoveryservice/api_op_DescribeContinuousExports.go @@ -32,7 +32,7 @@ func (c *Client) DescribeContinuousExports(ctx context.Context, params *Describe type DescribeContinuousExportsInput struct { // The unique IDs assigned to the exports. - ExportIds []*string + ExportIds []string // A number between 1 and 100 specifying the maximum number of continuous export // descriptions returned. @@ -45,7 +45,7 @@ type DescribeContinuousExportsInput struct { type DescribeContinuousExportsOutput struct { // A list of continuous export descriptions. - Descriptions []*types.ContinuousExportDescription + Descriptions []types.ContinuousExportDescription // The token from the previous call to DescribeExportTasks. NextToken *string diff --git a/service/applicationdiscoveryservice/api_op_DescribeExportConfigurations.go b/service/applicationdiscoveryservice/api_op_DescribeExportConfigurations.go index 6d9b3648af7..fcd674acdbb 100644 --- a/service/applicationdiscoveryservice/api_op_DescribeExportConfigurations.go +++ b/service/applicationdiscoveryservice/api_op_DescribeExportConfigurations.go @@ -32,11 +32,11 @@ func (c *Client) DescribeExportConfigurations(ctx context.Context, params *Descr type DescribeExportConfigurationsInput struct { // A list of continuous export IDs to search for. - ExportIds []*string + ExportIds []string // A number between 1 and 100 specifying the maximum number of continuous export // descriptions returned. - MaxResults *int32 + MaxResults int32 // The token from the previous call to describe-export-tasks. NextToken *string @@ -45,7 +45,7 @@ type DescribeExportConfigurationsInput struct { type DescribeExportConfigurationsOutput struct { // - ExportsInfo []*types.ExportInfo + ExportsInfo []types.ExportInfo // The token from the previous call to describe-export-tasks. NextToken *string diff --git a/service/applicationdiscoveryservice/api_op_DescribeExportTasks.go b/service/applicationdiscoveryservice/api_op_DescribeExportTasks.go index 684ca1f3e86..a8f20601e7f 100644 --- a/service/applicationdiscoveryservice/api_op_DescribeExportTasks.go +++ b/service/applicationdiscoveryservice/api_op_DescribeExportTasks.go @@ -31,18 +31,18 @@ func (c *Client) DescribeExportTasks(ctx context.Context, params *DescribeExport type DescribeExportTasksInput struct { // One or more unique identifiers used to query the status of an export request. - ExportIds []*string + ExportIds []string // One or more filters. // // * AgentId - ID of the agent whose collected data will be // exported - Filters []*types.ExportFilter + Filters []types.ExportFilter // The maximum number of volume results returned by DescribeExportTasks in // paginated output. When this parameter is used, DescribeExportTasks only returns // maxResults results in a single page along with a nextToken response element. - MaxResults *int32 + MaxResults int32 // The nextToken value returned from a previous paginated DescribeExportTasks // request where maxResults was used and the results exceeded the value of that @@ -57,7 +57,7 @@ type DescribeExportTasksOutput struct { // Contains one or more sets of export request details. When the status of a // request is SUCCEEDED, the response includes a URL for an Amazon S3 bucket where // you can view the data in a CSV file. - ExportsInfo []*types.ExportInfo + ExportsInfo []types.ExportInfo // The nextToken value to include in a future DescribeExportTasks request. When the // results of a DescribeExportTasks request exceed maxResults, this value can be diff --git a/service/applicationdiscoveryservice/api_op_DescribeImportTasks.go b/service/applicationdiscoveryservice/api_op_DescribeImportTasks.go index ec2534ae34d..94d5c62ded3 100644 --- a/service/applicationdiscoveryservice/api_op_DescribeImportTasks.go +++ b/service/applicationdiscoveryservice/api_op_DescribeImportTasks.go @@ -33,7 +33,7 @@ type DescribeImportTasksInput struct { // An array of name-value pairs that you provide to filter the results for the // DescribeImportTask request to a specific subset of results. Currently, wildcard // values aren't supported for filters. - Filters []*types.ImportTaskFilter + Filters []types.ImportTaskFilter // The maximum number of results that you want this request to return, up to 100. MaxResults *int32 @@ -49,7 +49,7 @@ type DescribeImportTasksOutput struct { // A returned array of import tasks that match any applied filters, up to the // specified number of maximum results. - Tasks []*types.ImportTask + Tasks []types.ImportTask // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationdiscoveryservice/api_op_DescribeTags.go b/service/applicationdiscoveryservice/api_op_DescribeTags.go index 0c7a37537a1..59018c989a2 100644 --- a/service/applicationdiscoveryservice/api_op_DescribeTags.go +++ b/service/applicationdiscoveryservice/api_op_DescribeTags.go @@ -45,11 +45,11 @@ type DescribeTagsInput struct { // You can filter the list using a key-value format. You can separate these items // by using logical operators. Allowed filters include tagKey, tagValue, and // configurationId. - Filters []*types.TagFilter + Filters []types.TagFilter // The total number of items to return in a single page of output. The maximum // value is 100. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -62,7 +62,7 @@ type DescribeTagsOutput struct { // Depending on the input, this is a list of configuration items tagged with a // specific tag, or a list of tags for a specific configuration item. - Tags []*types.ConfigurationTag + Tags []types.ConfigurationTag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationdiscoveryservice/api_op_DisassociateConfigurationItemsFromApplication.go b/service/applicationdiscoveryservice/api_op_DisassociateConfigurationItemsFromApplication.go index 1dd37d55655..cf184a308ff 100644 --- a/service/applicationdiscoveryservice/api_op_DisassociateConfigurationItemsFromApplication.go +++ b/service/applicationdiscoveryservice/api_op_DisassociateConfigurationItemsFromApplication.go @@ -36,7 +36,7 @@ type DisassociateConfigurationItemsFromApplicationInput struct { // Configuration ID of each item to be disassociated from an application. // // This member is required. - ConfigurationIds []*string + ConfigurationIds []string } type DisassociateConfigurationItemsFromApplicationOutput struct { diff --git a/service/applicationdiscoveryservice/api_op_GetDiscoverySummary.go b/service/applicationdiscoveryservice/api_op_GetDiscoverySummary.go index e4f44d37ab7..078c37d9c79 100644 --- a/service/applicationdiscoveryservice/api_op_GetDiscoverySummary.go +++ b/service/applicationdiscoveryservice/api_op_GetDiscoverySummary.go @@ -38,19 +38,19 @@ type GetDiscoverySummaryOutput struct { AgentSummary *types.CustomerAgentInfo // The number of applications discovered. - Applications *int64 + Applications int64 // Details about discovered connectors, including connector status and health. ConnectorSummary *types.CustomerConnectorInfo // The number of servers discovered. - Servers *int64 + Servers int64 // The number of servers mapped to applications. - ServersMappedToApplications *int64 + ServersMappedToApplications int64 // The number of servers mapped to tags. - ServersMappedtoTags *int64 + ServersMappedtoTags int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationdiscoveryservice/api_op_ListConfigurations.go b/service/applicationdiscoveryservice/api_op_ListConfigurations.go index c1fded0fba7..686f6394cb4 100644 --- a/service/applicationdiscoveryservice/api_op_ListConfigurations.go +++ b/service/applicationdiscoveryservice/api_op_ListConfigurations.go @@ -42,10 +42,10 @@ type ListConfigurationsInput struct { // the ListConfigurations Action // (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#ListConfigurations) // in the AWS Application Discovery Service User Guide. - Filters []*types.Filter + Filters []types.Filter // The total number of items to return. The maximum value is 100. - MaxResults *int32 + MaxResults int32 // Token to retrieve the next set of results. For example, if a previous call to // ListConfigurations returned 100 items, but you set @@ -58,14 +58,14 @@ type ListConfigurationsInput struct { // Using the ListConfigurations Action // (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#ListConfigurations) // in the AWS Application Discovery Service User Guide. - OrderBy []*types.OrderByElement + OrderBy []types.OrderByElement } type ListConfigurationsOutput struct { // Returns configuration details, including the configuration ID, attribute names, // and attribute values. - Configurations []map[string]*string + Configurations []map[string]string // Token to retrieve the next set of results. For example, if your call to // ListConfigurations returned 100 items, but you set diff --git a/service/applicationdiscoveryservice/api_op_ListServerNeighbors.go b/service/applicationdiscoveryservice/api_op_ListServerNeighbors.go index 211c1c6dee6..542b28e9f42 100644 --- a/service/applicationdiscoveryservice/api_op_ListServerNeighbors.go +++ b/service/applicationdiscoveryservice/api_op_ListServerNeighbors.go @@ -36,10 +36,10 @@ type ListServerNeighborsInput struct { ConfigurationId *string // Maximum number of results to return in a single page of output. - MaxResults *int32 + MaxResults int32 // List of configuration IDs to test for one-hop-away. - NeighborConfigurationIds []*string + NeighborConfigurationIds []string // Token to retrieve the next set of results. For example, if you previously // specified 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds but @@ -50,7 +50,7 @@ type ListServerNeighborsInput struct { // Flag to indicate if port and protocol information is needed as part of the // response. - PortInformationNeeded *bool + PortInformationNeeded bool } type ListServerNeighborsOutput struct { @@ -58,10 +58,10 @@ type ListServerNeighborsOutput struct { // List of distinct servers that are one hop away from the given server. // // This member is required. - Neighbors []*types.NeighborConnectionDetail + Neighbors []types.NeighborConnectionDetail // Count of distinct servers that are one hop away from the given server. - KnownDependencyCount *int64 + KnownDependencyCount int64 // Token to retrieve the next set of results. For example, if you specified 100 IDs // for ListServerNeighborsRequest$neighborConfigurationIds but set diff --git a/service/applicationdiscoveryservice/api_op_StartContinuousExport.go b/service/applicationdiscoveryservice/api_op_StartContinuousExport.go index a1e036d649a..0332e892be2 100644 --- a/service/applicationdiscoveryservice/api_op_StartContinuousExport.go +++ b/service/applicationdiscoveryservice/api_op_StartContinuousExport.go @@ -47,7 +47,7 @@ type StartContinuousExportOutput struct { // // * databaseName - the name // of the Glue database used to store the schema. - SchemaStorageConfig map[string]*string + SchemaStorageConfig map[string]string // The timestamp representing when the continuous export was started. StartTime *time.Time diff --git a/service/applicationdiscoveryservice/api_op_StartDataCollectionByAgentIds.go b/service/applicationdiscoveryservice/api_op_StartDataCollectionByAgentIds.go index d142e0e7165..1d0395e23af 100644 --- a/service/applicationdiscoveryservice/api_op_StartDataCollectionByAgentIds.go +++ b/service/applicationdiscoveryservice/api_op_StartDataCollectionByAgentIds.go @@ -38,7 +38,7 @@ type StartDataCollectionByAgentIdsInput struct { // system shows Failed in the Description field. // // This member is required. - AgentIds []*string + AgentIds []string } type StartDataCollectionByAgentIdsOutput struct { @@ -47,7 +47,7 @@ type StartDataCollectionByAgentIdsOutput struct { // collecting data. Information includes the agent/connector ID, a description of // the operation performed, and whether the agent/connector configuration was // updated. - AgentsConfigurationStatus []*types.AgentConfigurationStatus + AgentsConfigurationStatus []types.AgentConfigurationStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationdiscoveryservice/api_op_StartExportTask.go b/service/applicationdiscoveryservice/api_op_StartExportTask.go index 594fa792a06..da2ce8aed79 100644 --- a/service/applicationdiscoveryservice/api_op_StartExportTask.go +++ b/service/applicationdiscoveryservice/api_op_StartExportTask.go @@ -52,7 +52,7 @@ type StartExportTaskInput struct { // results of the DescribeAgents API or CLI. If no filter is present, startTime and // endTime are ignored and exported data includes both Agentless Discovery // Connector data and summary data from Application Discovery agents. - Filters []*types.ExportFilter + Filters []types.ExportFilter // The start timestamp for exported data from the single Application Discovery // Agent selected in the filters. If no value is specified, data is exported diff --git a/service/applicationdiscoveryservice/api_op_StopDataCollectionByAgentIds.go b/service/applicationdiscoveryservice/api_op_StopDataCollectionByAgentIds.go index cc0844515eb..36fddfd59ec 100644 --- a/service/applicationdiscoveryservice/api_op_StopDataCollectionByAgentIds.go +++ b/service/applicationdiscoveryservice/api_op_StopDataCollectionByAgentIds.go @@ -32,7 +32,7 @@ type StopDataCollectionByAgentIdsInput struct { // The IDs of the agents or connectors from which to stop collecting data. // // This member is required. - AgentIds []*string + AgentIds []string } type StopDataCollectionByAgentIdsOutput struct { @@ -41,7 +41,7 @@ type StopDataCollectionByAgentIdsOutput struct { // collecting data. Information includes the agent/connector ID, a description of // the operation performed, and whether the agent/connector configuration was // updated. - AgentsConfigurationStatus []*types.AgentConfigurationStatus + AgentsConfigurationStatus []types.AgentConfigurationStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationdiscoveryservice/deserializers.go b/service/applicationdiscoveryservice/deserializers.go index 9b6d9eb1982..dab7b94ea97 100644 --- a/service/applicationdiscoveryservice/deserializers.go +++ b/service/applicationdiscoveryservice/deserializers.go @@ -3485,7 +3485,7 @@ func awsAwsjson11_deserializeDocumentAgentConfigurationStatus(v **types.AgentCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AgentId = &jtv + sv.AgentId = ptr.String(jtv) } case "description": @@ -3494,7 +3494,7 @@ func awsAwsjson11_deserializeDocumentAgentConfigurationStatus(v **types.AgentCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "operationSucceeded": @@ -3503,7 +3503,7 @@ func awsAwsjson11_deserializeDocumentAgentConfigurationStatus(v **types.AgentCon if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.OperationSucceeded = &jtv + sv.OperationSucceeded = jtv } default: @@ -3515,7 +3515,7 @@ func awsAwsjson11_deserializeDocumentAgentConfigurationStatus(v **types.AgentCon return nil } -func awsAwsjson11_deserializeDocumentAgentConfigurationStatusList(v *[]*types.AgentConfigurationStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentAgentConfigurationStatusList(v *[]types.AgentConfigurationStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3528,18 +3528,20 @@ func awsAwsjson11_deserializeDocumentAgentConfigurationStatusList(v *[]*types.Ag return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AgentConfigurationStatus + var cv []types.AgentConfigurationStatus if *v == nil { - cv = []*types.AgentConfigurationStatus{} + cv = []types.AgentConfigurationStatus{} } else { cv = *v } for _, value := range shape { - var col *types.AgentConfigurationStatus - if err := awsAwsjson11_deserializeDocumentAgentConfigurationStatus(&col, value); err != nil { + var col types.AgentConfigurationStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAgentConfigurationStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3575,7 +3577,7 @@ func awsAwsjson11_deserializeDocumentAgentInfo(v **types.AgentInfo, value interf if !ok { return fmt.Errorf("expected AgentId to be of type string, got %T instead", value) } - sv.AgentId = &jtv + sv.AgentId = ptr.String(jtv) } case "agentNetworkInfoList": @@ -3589,7 +3591,7 @@ func awsAwsjson11_deserializeDocumentAgentInfo(v **types.AgentInfo, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AgentType = &jtv + sv.AgentType = ptr.String(jtv) } case "collectionStatus": @@ -3598,7 +3600,7 @@ func awsAwsjson11_deserializeDocumentAgentInfo(v **types.AgentInfo, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CollectionStatus = &jtv + sv.CollectionStatus = ptr.String(jtv) } case "connectorId": @@ -3607,7 +3609,7 @@ func awsAwsjson11_deserializeDocumentAgentInfo(v **types.AgentInfo, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConnectorId = &jtv + sv.ConnectorId = ptr.String(jtv) } case "health": @@ -3625,7 +3627,7 @@ func awsAwsjson11_deserializeDocumentAgentInfo(v **types.AgentInfo, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HostName = &jtv + sv.HostName = ptr.String(jtv) } case "lastHealthPingTime": @@ -3634,7 +3636,7 @@ func awsAwsjson11_deserializeDocumentAgentInfo(v **types.AgentInfo, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastHealthPingTime = &jtv + sv.LastHealthPingTime = ptr.String(jtv) } case "registeredTime": @@ -3643,7 +3645,7 @@ func awsAwsjson11_deserializeDocumentAgentInfo(v **types.AgentInfo, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegisteredTime = &jtv + sv.RegisteredTime = ptr.String(jtv) } case "version": @@ -3652,7 +3654,7 @@ func awsAwsjson11_deserializeDocumentAgentInfo(v **types.AgentInfo, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -3692,7 +3694,7 @@ func awsAwsjson11_deserializeDocumentAgentNetworkInfo(v **types.AgentNetworkInfo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "macAddress": @@ -3701,7 +3703,7 @@ func awsAwsjson11_deserializeDocumentAgentNetworkInfo(v **types.AgentNetworkInfo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MacAddress = &jtv + sv.MacAddress = ptr.String(jtv) } default: @@ -3713,7 +3715,7 @@ func awsAwsjson11_deserializeDocumentAgentNetworkInfo(v **types.AgentNetworkInfo return nil } -func awsAwsjson11_deserializeDocumentAgentNetworkInfoList(v *[]*types.AgentNetworkInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentAgentNetworkInfoList(v *[]types.AgentNetworkInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3726,18 +3728,20 @@ func awsAwsjson11_deserializeDocumentAgentNetworkInfoList(v *[]*types.AgentNetwo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AgentNetworkInfo + var cv []types.AgentNetworkInfo if *v == nil { - cv = []*types.AgentNetworkInfo{} + cv = []types.AgentNetworkInfo{} } else { cv = *v } for _, value := range shape { - var col *types.AgentNetworkInfo - if err := awsAwsjson11_deserializeDocumentAgentNetworkInfo(&col, value); err != nil { + var col types.AgentNetworkInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAgentNetworkInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3745,7 +3749,7 @@ func awsAwsjson11_deserializeDocumentAgentNetworkInfoList(v *[]*types.AgentNetwo return nil } -func awsAwsjson11_deserializeDocumentAgentsInfo(v *[]*types.AgentInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentAgentsInfo(v *[]types.AgentInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3758,18 +3762,20 @@ func awsAwsjson11_deserializeDocumentAgentsInfo(v *[]*types.AgentInfo, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AgentInfo + var cv []types.AgentInfo if *v == nil { - cv = []*types.AgentInfo{} + cv = []types.AgentInfo{} } else { cv = *v } for _, value := range shape { - var col *types.AgentInfo - if err := awsAwsjson11_deserializeDocumentAgentInfo(&col, value); err != nil { + var col types.AgentInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAgentInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3805,7 +3811,7 @@ func awsAwsjson11_deserializeDocumentAuthorizationErrorException(v **types.Autho if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3854,7 +3860,7 @@ func awsAwsjson11_deserializeDocumentBatchDeleteImportDataError(v **types.BatchD if !ok { return fmt.Errorf("expected BatchDeleteImportDataErrorDescription to be of type string, got %T instead", value) } - sv.ErrorDescription = &jtv + sv.ErrorDescription = ptr.String(jtv) } case "importTaskId": @@ -3863,7 +3869,7 @@ func awsAwsjson11_deserializeDocumentBatchDeleteImportDataError(v **types.BatchD if !ok { return fmt.Errorf("expected ImportTaskIdentifier to be of type string, got %T instead", value) } - sv.ImportTaskId = &jtv + sv.ImportTaskId = ptr.String(jtv) } default: @@ -3875,7 +3881,7 @@ func awsAwsjson11_deserializeDocumentBatchDeleteImportDataError(v **types.BatchD return nil } -func awsAwsjson11_deserializeDocumentBatchDeleteImportDataErrorList(v *[]*types.BatchDeleteImportDataError, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchDeleteImportDataErrorList(v *[]types.BatchDeleteImportDataError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3888,18 +3894,20 @@ func awsAwsjson11_deserializeDocumentBatchDeleteImportDataErrorList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchDeleteImportDataError + var cv []types.BatchDeleteImportDataError if *v == nil { - cv = []*types.BatchDeleteImportDataError{} + cv = []types.BatchDeleteImportDataError{} } else { cv = *v } for _, value := range shape { - var col *types.BatchDeleteImportDataError - if err := awsAwsjson11_deserializeDocumentBatchDeleteImportDataError(&col, value); err != nil { + var col types.BatchDeleteImportDataError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchDeleteImportDataError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3907,7 +3915,7 @@ func awsAwsjson11_deserializeDocumentBatchDeleteImportDataErrorList(v *[]*types. return nil } -func awsAwsjson11_deserializeDocumentConfiguration(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfiguration(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3920,21 +3928,21 @@ func awsAwsjson11_deserializeDocumentConfiguration(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -3943,7 +3951,7 @@ func awsAwsjson11_deserializeDocumentConfiguration(v *map[string]*string, value return nil } -func awsAwsjson11_deserializeDocumentConfigurations(v *[]map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfigurations(v *[]map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3956,15 +3964,15 @@ func awsAwsjson11_deserializeDocumentConfigurations(v *[]map[string]*string, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []map[string]*string + var cv []map[string]string if *v == nil { - cv = []map[string]*string{} + cv = []map[string]string{} } else { cv = *v } for _, value := range shape { - var col map[string]*string + var col map[string]string if err := awsAwsjson11_deserializeDocumentConfiguration(&col, value); err != nil { return err } @@ -4003,7 +4011,7 @@ func awsAwsjson11_deserializeDocumentConfigurationTag(v **types.ConfigurationTag if !ok { return fmt.Errorf("expected ConfigurationId to be of type string, got %T instead", value) } - sv.ConfigurationId = &jtv + sv.ConfigurationId = ptr.String(jtv) } case "configurationType": @@ -4021,7 +4029,7 @@ func awsAwsjson11_deserializeDocumentConfigurationTag(v **types.ConfigurationTag if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "timeOfCreation": @@ -4043,7 +4051,7 @@ func awsAwsjson11_deserializeDocumentConfigurationTag(v **types.ConfigurationTag if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4055,7 +4063,7 @@ func awsAwsjson11_deserializeDocumentConfigurationTag(v **types.ConfigurationTag return nil } -func awsAwsjson11_deserializeDocumentConfigurationTagSet(v *[]*types.ConfigurationTag, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfigurationTagSet(v *[]types.ConfigurationTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4068,18 +4076,20 @@ func awsAwsjson11_deserializeDocumentConfigurationTagSet(v *[]*types.Configurati return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfigurationTag + var cv []types.ConfigurationTag if *v == nil { - cv = []*types.ConfigurationTag{} + cv = []types.ConfigurationTag{} } else { cv = *v } for _, value := range shape { - var col *types.ConfigurationTag - if err := awsAwsjson11_deserializeDocumentConfigurationTag(&col, value); err != nil { + var col types.ConfigurationTag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfigurationTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4115,7 +4125,7 @@ func awsAwsjson11_deserializeDocumentConflictErrorException(v **types.ConflictEr if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4164,7 +4174,7 @@ func awsAwsjson11_deserializeDocumentContinuousExportDescription(v **types.Conti if !ok { return fmt.Errorf("expected ConfigurationsExportId to be of type string, got %T instead", value) } - sv.ExportId = &jtv + sv.ExportId = ptr.String(jtv) } case "s3Bucket": @@ -4173,7 +4183,7 @@ func awsAwsjson11_deserializeDocumentContinuousExportDescription(v **types.Conti if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.S3Bucket = &jtv + sv.S3Bucket = ptr.String(jtv) } case "schemaStorageConfig": @@ -4209,7 +4219,7 @@ func awsAwsjson11_deserializeDocumentContinuousExportDescription(v **types.Conti if !ok { return fmt.Errorf("expected StringMax255 to be of type string, got %T instead", value) } - sv.StatusDetail = &jtv + sv.StatusDetail = ptr.String(jtv) } case "stopTime": @@ -4234,7 +4244,7 @@ func awsAwsjson11_deserializeDocumentContinuousExportDescription(v **types.Conti return nil } -func awsAwsjson11_deserializeDocumentContinuousExportDescriptions(v *[]*types.ContinuousExportDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentContinuousExportDescriptions(v *[]types.ContinuousExportDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4247,18 +4257,20 @@ func awsAwsjson11_deserializeDocumentContinuousExportDescriptions(v *[]*types.Co return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContinuousExportDescription + var cv []types.ContinuousExportDescription if *v == nil { - cv = []*types.ContinuousExportDescription{} + cv = []types.ContinuousExportDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ContinuousExportDescription - if err := awsAwsjson11_deserializeDocumentContinuousExportDescription(&col, value); err != nil { + var col types.ContinuousExportDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContinuousExportDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4298,7 +4310,7 @@ func awsAwsjson11_deserializeDocumentCustomerAgentInfo(v **types.CustomerAgentIn if err != nil { return err } - sv.ActiveAgents = ptr.Int32(int32(i64)) + sv.ActiveAgents = int32(i64) } case "blackListedAgents": @@ -4311,7 +4323,7 @@ func awsAwsjson11_deserializeDocumentCustomerAgentInfo(v **types.CustomerAgentIn if err != nil { return err } - sv.BlackListedAgents = ptr.Int32(int32(i64)) + sv.BlackListedAgents = int32(i64) } case "healthyAgents": @@ -4324,7 +4336,7 @@ func awsAwsjson11_deserializeDocumentCustomerAgentInfo(v **types.CustomerAgentIn if err != nil { return err } - sv.HealthyAgents = ptr.Int32(int32(i64)) + sv.HealthyAgents = int32(i64) } case "shutdownAgents": @@ -4337,7 +4349,7 @@ func awsAwsjson11_deserializeDocumentCustomerAgentInfo(v **types.CustomerAgentIn if err != nil { return err } - sv.ShutdownAgents = ptr.Int32(int32(i64)) + sv.ShutdownAgents = int32(i64) } case "totalAgents": @@ -4350,7 +4362,7 @@ func awsAwsjson11_deserializeDocumentCustomerAgentInfo(v **types.CustomerAgentIn if err != nil { return err } - sv.TotalAgents = ptr.Int32(int32(i64)) + sv.TotalAgents = int32(i64) } case "unhealthyAgents": @@ -4363,7 +4375,7 @@ func awsAwsjson11_deserializeDocumentCustomerAgentInfo(v **types.CustomerAgentIn if err != nil { return err } - sv.UnhealthyAgents = ptr.Int32(int32(i64)) + sv.UnhealthyAgents = int32(i64) } case "unknownAgents": @@ -4376,7 +4388,7 @@ func awsAwsjson11_deserializeDocumentCustomerAgentInfo(v **types.CustomerAgentIn if err != nil { return err } - sv.UnknownAgents = ptr.Int32(int32(i64)) + sv.UnknownAgents = int32(i64) } default: @@ -4420,7 +4432,7 @@ func awsAwsjson11_deserializeDocumentCustomerConnectorInfo(v **types.CustomerCon if err != nil { return err } - sv.ActiveConnectors = ptr.Int32(int32(i64)) + sv.ActiveConnectors = int32(i64) } case "blackListedConnectors": @@ -4433,7 +4445,7 @@ func awsAwsjson11_deserializeDocumentCustomerConnectorInfo(v **types.CustomerCon if err != nil { return err } - sv.BlackListedConnectors = ptr.Int32(int32(i64)) + sv.BlackListedConnectors = int32(i64) } case "healthyConnectors": @@ -4446,7 +4458,7 @@ func awsAwsjson11_deserializeDocumentCustomerConnectorInfo(v **types.CustomerCon if err != nil { return err } - sv.HealthyConnectors = ptr.Int32(int32(i64)) + sv.HealthyConnectors = int32(i64) } case "shutdownConnectors": @@ -4459,7 +4471,7 @@ func awsAwsjson11_deserializeDocumentCustomerConnectorInfo(v **types.CustomerCon if err != nil { return err } - sv.ShutdownConnectors = ptr.Int32(int32(i64)) + sv.ShutdownConnectors = int32(i64) } case "totalConnectors": @@ -4472,7 +4484,7 @@ func awsAwsjson11_deserializeDocumentCustomerConnectorInfo(v **types.CustomerCon if err != nil { return err } - sv.TotalConnectors = ptr.Int32(int32(i64)) + sv.TotalConnectors = int32(i64) } case "unhealthyConnectors": @@ -4485,7 +4497,7 @@ func awsAwsjson11_deserializeDocumentCustomerConnectorInfo(v **types.CustomerCon if err != nil { return err } - sv.UnhealthyConnectors = ptr.Int32(int32(i64)) + sv.UnhealthyConnectors = int32(i64) } case "unknownConnectors": @@ -4498,7 +4510,7 @@ func awsAwsjson11_deserializeDocumentCustomerConnectorInfo(v **types.CustomerCon if err != nil { return err } - sv.UnknownConnectors = ptr.Int32(int32(i64)) + sv.UnknownConnectors = int32(i64) } default: @@ -4510,7 +4522,7 @@ func awsAwsjson11_deserializeDocumentCustomerConnectorInfo(v **types.CustomerCon return nil } -func awsAwsjson11_deserializeDocumentDescribeConfigurationsAttribute(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDescribeConfigurationsAttribute(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4523,21 +4535,21 @@ func awsAwsjson11_deserializeDocumentDescribeConfigurationsAttribute(v *map[stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -4546,7 +4558,7 @@ func awsAwsjson11_deserializeDocumentDescribeConfigurationsAttribute(v *map[stri return nil } -func awsAwsjson11_deserializeDocumentDescribeConfigurationsAttributes(v *[]map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDescribeConfigurationsAttributes(v *[]map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4559,15 +4571,15 @@ func awsAwsjson11_deserializeDocumentDescribeConfigurationsAttributes(v *[]map[s return fmt.Errorf("unexpected JSON type %v", value) } - var cv []map[string]*string + var cv []map[string]string if *v == nil { - cv = []map[string]*string{} + cv = []map[string]string{} } else { cv = *v } for _, value := range shape { - var col map[string]*string + var col map[string]string if err := awsAwsjson11_deserializeDocumentDescribeConfigurationsAttribute(&col, value); err != nil { return err } @@ -4606,7 +4618,7 @@ func awsAwsjson11_deserializeDocumentExportInfo(v **types.ExportInfo, value inte if !ok { return fmt.Errorf("expected ConfigurationsDownloadUrl to be of type string, got %T instead", value) } - sv.ConfigurationsDownloadUrl = &jtv + sv.ConfigurationsDownloadUrl = ptr.String(jtv) } case "exportId": @@ -4615,7 +4627,7 @@ func awsAwsjson11_deserializeDocumentExportInfo(v **types.ExportInfo, value inte if !ok { return fmt.Errorf("expected ConfigurationsExportId to be of type string, got %T instead", value) } - sv.ExportId = &jtv + sv.ExportId = ptr.String(jtv) } case "exportRequestTime": @@ -4646,7 +4658,7 @@ func awsAwsjson11_deserializeDocumentExportInfo(v **types.ExportInfo, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsTruncated = &jtv + sv.IsTruncated = jtv } case "requestedEndTime": @@ -4681,7 +4693,7 @@ func awsAwsjson11_deserializeDocumentExportInfo(v **types.ExportInfo, value inte if !ok { return fmt.Errorf("expected ExportStatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } default: @@ -4693,7 +4705,7 @@ func awsAwsjson11_deserializeDocumentExportInfo(v **types.ExportInfo, value inte return nil } -func awsAwsjson11_deserializeDocumentExportsInfo(v *[]*types.ExportInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentExportsInfo(v *[]types.ExportInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4706,18 +4718,20 @@ func awsAwsjson11_deserializeDocumentExportsInfo(v *[]*types.ExportInfo, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExportInfo + var cv []types.ExportInfo if *v == nil { - cv = []*types.ExportInfo{} + cv = []types.ExportInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ExportInfo - if err := awsAwsjson11_deserializeDocumentExportInfo(&col, value); err != nil { + var col types.ExportInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExportInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4753,7 +4767,7 @@ func awsAwsjson11_deserializeDocumentHomeRegionNotSetException(v **types.HomeReg if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4797,7 +4811,7 @@ func awsAwsjson11_deserializeDocumentImportTask(v **types.ImportTask, value inte if err != nil { return err } - sv.ApplicationImportFailure = ptr.Int32(int32(i64)) + sv.ApplicationImportFailure = int32(i64) } case "applicationImportSuccess": @@ -4810,7 +4824,7 @@ func awsAwsjson11_deserializeDocumentImportTask(v **types.ImportTask, value inte if err != nil { return err } - sv.ApplicationImportSuccess = ptr.Int32(int32(i64)) + sv.ApplicationImportSuccess = int32(i64) } case "clientRequestToken": @@ -4819,7 +4833,7 @@ func awsAwsjson11_deserializeDocumentImportTask(v **types.ImportTask, value inte if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "errorsAndFailedEntriesZip": @@ -4828,7 +4842,7 @@ func awsAwsjson11_deserializeDocumentImportTask(v **types.ImportTask, value inte if !ok { return fmt.Errorf("expected S3PresignedUrl to be of type string, got %T instead", value) } - sv.ErrorsAndFailedEntriesZip = &jtv + sv.ErrorsAndFailedEntriesZip = ptr.String(jtv) } case "importCompletionTime": @@ -4876,7 +4890,7 @@ func awsAwsjson11_deserializeDocumentImportTask(v **types.ImportTask, value inte if !ok { return fmt.Errorf("expected ImportTaskIdentifier to be of type string, got %T instead", value) } - sv.ImportTaskId = &jtv + sv.ImportTaskId = ptr.String(jtv) } case "importUrl": @@ -4885,7 +4899,7 @@ func awsAwsjson11_deserializeDocumentImportTask(v **types.ImportTask, value inte if !ok { return fmt.Errorf("expected ImportURL to be of type string, got %T instead", value) } - sv.ImportUrl = &jtv + sv.ImportUrl = ptr.String(jtv) } case "name": @@ -4894,7 +4908,7 @@ func awsAwsjson11_deserializeDocumentImportTask(v **types.ImportTask, value inte if !ok { return fmt.Errorf("expected ImportTaskName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "serverImportFailure": @@ -4907,7 +4921,7 @@ func awsAwsjson11_deserializeDocumentImportTask(v **types.ImportTask, value inte if err != nil { return err } - sv.ServerImportFailure = ptr.Int32(int32(i64)) + sv.ServerImportFailure = int32(i64) } case "serverImportSuccess": @@ -4920,7 +4934,7 @@ func awsAwsjson11_deserializeDocumentImportTask(v **types.ImportTask, value inte if err != nil { return err } - sv.ServerImportSuccess = ptr.Int32(int32(i64)) + sv.ServerImportSuccess = int32(i64) } case "status": @@ -4941,7 +4955,7 @@ func awsAwsjson11_deserializeDocumentImportTask(v **types.ImportTask, value inte return nil } -func awsAwsjson11_deserializeDocumentImportTaskList(v *[]*types.ImportTask, value interface{}) error { +func awsAwsjson11_deserializeDocumentImportTaskList(v *[]types.ImportTask, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4954,18 +4968,20 @@ func awsAwsjson11_deserializeDocumentImportTaskList(v *[]*types.ImportTask, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImportTask + var cv []types.ImportTask if *v == nil { - cv = []*types.ImportTask{} + cv = []types.ImportTask{} } else { cv = *v } for _, value := range shape { - var col *types.ImportTask - if err := awsAwsjson11_deserializeDocumentImportTask(&col, value); err != nil { + var col types.ImportTask + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImportTask(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5001,7 +5017,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5041,7 +5057,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5085,7 +5101,7 @@ func awsAwsjson11_deserializeDocumentNeighborConnectionDetail(v **types.Neighbor if err != nil { return err } - sv.ConnectionsCount = &i64 + sv.ConnectionsCount = i64 } case "destinationPort": @@ -5107,7 +5123,7 @@ func awsAwsjson11_deserializeDocumentNeighborConnectionDetail(v **types.Neighbor if !ok { return fmt.Errorf("expected ConfigurationId to be of type string, got %T instead", value) } - sv.DestinationServerId = &jtv + sv.DestinationServerId = ptr.String(jtv) } case "sourceServerId": @@ -5116,7 +5132,7 @@ func awsAwsjson11_deserializeDocumentNeighborConnectionDetail(v **types.Neighbor if !ok { return fmt.Errorf("expected ConfigurationId to be of type string, got %T instead", value) } - sv.SourceServerId = &jtv + sv.SourceServerId = ptr.String(jtv) } case "transportProtocol": @@ -5125,7 +5141,7 @@ func awsAwsjson11_deserializeDocumentNeighborConnectionDetail(v **types.Neighbor if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TransportProtocol = &jtv + sv.TransportProtocol = ptr.String(jtv) } default: @@ -5137,7 +5153,7 @@ func awsAwsjson11_deserializeDocumentNeighborConnectionDetail(v **types.Neighbor return nil } -func awsAwsjson11_deserializeDocumentNeighborDetailsList(v *[]*types.NeighborConnectionDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentNeighborDetailsList(v *[]types.NeighborConnectionDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5150,18 +5166,20 @@ func awsAwsjson11_deserializeDocumentNeighborDetailsList(v *[]*types.NeighborCon return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NeighborConnectionDetail + var cv []types.NeighborConnectionDetail if *v == nil { - cv = []*types.NeighborConnectionDetail{} + cv = []types.NeighborConnectionDetail{} } else { cv = *v } for _, value := range shape { - var col *types.NeighborConnectionDetail - if err := awsAwsjson11_deserializeDocumentNeighborConnectionDetail(&col, value); err != nil { + var col types.NeighborConnectionDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNeighborConnectionDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5197,7 +5215,7 @@ func awsAwsjson11_deserializeDocumentOperationNotPermittedException(v **types.Op if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5237,7 +5255,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5277,7 +5295,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5289,7 +5307,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsAwsjson11_deserializeDocumentSchemaStorageConfig(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSchemaStorageConfig(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5302,21 +5320,21 @@ func awsAwsjson11_deserializeDocumentSchemaStorageConfig(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -5353,7 +5371,7 @@ func awsAwsjson11_deserializeDocumentServerInternalErrorException(v **types.Serv if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5460,7 +5478,7 @@ func awsAwsjson11_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConfigurationId = &jtv + sv.ConfigurationId = ptr.String(jtv) } default: @@ -5598,7 +5616,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAgentsOutput(v **DescribeAgentsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5679,7 +5697,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeContinuousExportsOutput(v **Descr if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5724,7 +5742,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeExportConfigurationsOutput(v **De if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5769,7 +5787,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeExportTasksOutput(v **DescribeExp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5809,7 +5827,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImportTasksOutput(v **DescribeImp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tasks": @@ -5854,7 +5872,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tags": @@ -5930,7 +5948,7 @@ func awsAwsjson11_deserializeOpDocumentExportConfigurationsOutput(v **ExportConf if !ok { return fmt.Errorf("expected ConfigurationsExportId to be of type string, got %T instead", value) } - sv.ExportId = &jtv + sv.ExportId = ptr.String(jtv) } default: @@ -5979,7 +5997,7 @@ func awsAwsjson11_deserializeOpDocumentGetDiscoverySummaryOutput(v **GetDiscover if err != nil { return err } - sv.Applications = &i64 + sv.Applications = i64 } case "connectorSummary": @@ -5997,7 +6015,7 @@ func awsAwsjson11_deserializeOpDocumentGetDiscoverySummaryOutput(v **GetDiscover if err != nil { return err } - sv.Servers = &i64 + sv.Servers = i64 } case "serversMappedToApplications": @@ -6010,7 +6028,7 @@ func awsAwsjson11_deserializeOpDocumentGetDiscoverySummaryOutput(v **GetDiscover if err != nil { return err } - sv.ServersMappedToApplications = &i64 + sv.ServersMappedToApplications = i64 } case "serversMappedtoTags": @@ -6023,7 +6041,7 @@ func awsAwsjson11_deserializeOpDocumentGetDiscoverySummaryOutput(v **GetDiscover if err != nil { return err } - sv.ServersMappedtoTags = &i64 + sv.ServersMappedtoTags = i64 } default: @@ -6068,7 +6086,7 @@ func awsAwsjson11_deserializeOpDocumentListConfigurationsOutput(v **ListConfigur if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6112,7 +6130,7 @@ func awsAwsjson11_deserializeOpDocumentListServerNeighborsOutput(v **ListServerN if err != nil { return err } - sv.KnownDependencyCount = &i64 + sv.KnownDependencyCount = i64 } case "neighbors": @@ -6126,7 +6144,7 @@ func awsAwsjson11_deserializeOpDocumentListServerNeighborsOutput(v **ListServerN if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6175,7 +6193,7 @@ func awsAwsjson11_deserializeOpDocumentStartContinuousExportOutput(v **StartCont if !ok { return fmt.Errorf("expected ConfigurationsExportId to be of type string, got %T instead", value) } - sv.ExportId = &jtv + sv.ExportId = ptr.String(jtv) } case "s3Bucket": @@ -6184,7 +6202,7 @@ func awsAwsjson11_deserializeOpDocumentStartContinuousExportOutput(v **StartCont if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.S3Bucket = &jtv + sv.S3Bucket = ptr.String(jtv) } case "schemaStorageConfig": @@ -6278,7 +6296,7 @@ func awsAwsjson11_deserializeOpDocumentStartExportTaskOutput(v **StartExportTask if !ok { return fmt.Errorf("expected ConfigurationsExportId to be of type string, got %T instead", value) } - sv.ExportId = &jtv + sv.ExportId = ptr.String(jtv) } default: diff --git a/service/applicationdiscoveryservice/go.mod b/service/applicationdiscoveryservice/go.mod index c0ad3c99bc0..cae0b4e41eb 100644 --- a/service/applicationdiscoveryservice/go.mod +++ b/service/applicationdiscoveryservice/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/applicationdiscoveryservice go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/applicationdiscoveryservice/serializers.go b/service/applicationdiscoveryservice/serializers.go index 2038365d928..83570cbe7d9 100644 --- a/service/applicationdiscoveryservice/serializers.go +++ b/service/applicationdiscoveryservice/serializers.go @@ -1143,77 +1143,57 @@ func (m *awsAwsjson11_serializeOpUpdateApplication) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAgentIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAgentIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentApplicationIdsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentApplicationIdsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentConfigurationIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConfigurationIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentContinuousExportIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentContinuousExportIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentDescribeImportTasksFilterList(v []*types.ImportTaskFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDescribeImportTasksFilterList(v []types.ImportTaskFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentImportTaskFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentImportTaskFilter(&v[i], av); err != nil { return err } } @@ -1255,34 +1235,26 @@ func awsAwsjson11_serializeDocumentExportFilter(v *types.ExportFilter, value smi return nil } -func awsAwsjson11_serializeDocumentExportFilters(v []*types.ExportFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExportFilters(v []types.ExportFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentExportFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentExportFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentExportIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExportIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1311,34 +1283,26 @@ func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentFilters(v []*types.Filter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilters(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1362,17 +1326,13 @@ func awsAwsjson11_serializeDocumentImportTaskFilter(v *types.ImportTaskFilter, v return nil } -func awsAwsjson11_serializeDocumentImportTaskFilterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentImportTaskFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1394,17 +1354,13 @@ func awsAwsjson11_serializeDocumentOrderByElement(v *types.OrderByElement, value return nil } -func awsAwsjson11_serializeDocumentOrderByList(v []*types.OrderByElement, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOrderByList(v []types.OrderByElement, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOrderByElement(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentOrderByElement(&v[i], av); err != nil { return err } } @@ -1447,51 +1403,39 @@ func awsAwsjson11_serializeDocumentTagFilter(v *types.TagFilter, value smithyjso return nil } -func awsAwsjson11_serializeDocumentTagFilters(v []*types.TagFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagFilters(v []types.TagFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTagFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTagFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTagSet(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagSet(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentToDeleteIdentifierList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentToDeleteIdentifierList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1620,9 +1564,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAgentsInput(v *DescribeAgentsInput, } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1682,9 +1626,9 @@ func awsAwsjson11_serializeOpDocumentDescribeExportConfigurationsInput(v *Descri } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1713,9 +1657,9 @@ func awsAwsjson11_serializeOpDocumentDescribeExportTasksInput(v *DescribeExportT } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1761,9 +1705,9 @@ func awsAwsjson11_serializeOpDocumentDescribeTagsInput(v *DescribeTagsInput, val } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1823,9 +1767,9 @@ func awsAwsjson11_serializeOpDocumentListConfigurationsInput(v *ListConfiguratio } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1852,9 +1796,9 @@ func awsAwsjson11_serializeOpDocumentListServerNeighborsInput(v *ListServerNeigh ok.String(*v.ConfigurationId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NeighborConfigurationIds != nil { @@ -1869,9 +1813,9 @@ func awsAwsjson11_serializeOpDocumentListServerNeighborsInput(v *ListServerNeigh ok.String(*v.NextToken) } - if v.PortInformationNeeded != nil { + if v.PortInformationNeeded { ok := object.Key("portInformationNeeded") - ok.Boolean(*v.PortInformationNeeded) + ok.Boolean(v.PortInformationNeeded) } return nil diff --git a/service/applicationdiscoveryservice/types/types.go b/service/applicationdiscoveryservice/types/types.go index 36edd01a3c2..37d3b3cc89a 100644 --- a/service/applicationdiscoveryservice/types/types.go +++ b/service/applicationdiscoveryservice/types/types.go @@ -20,7 +20,7 @@ type AgentConfigurationStatus struct { // Information about the status of the StartDataCollection and StopDataCollection // operations. The system has recorded the data collection operation. The // agent/connector receives this command the next time it polls for a new command. - OperationSucceeded *bool + OperationSucceeded bool } // Information about agents or connectors associated with the user’s AWS account. @@ -33,7 +33,7 @@ type AgentInfo struct { AgentId *string // Network details about the host where the agent or connector resides. - AgentNetworkInfoList []*AgentNetworkInfo + AgentNetworkInfoList []AgentNetworkInfo // Type of agent. AgentType *string @@ -123,7 +123,7 @@ type ContinuousExportDescription struct { // // * databaseName - the name of // the Glue database used to store the schema. - SchemaStorageConfig map[string]*string + SchemaStorageConfig map[string]string // The timestamp representing when the continuous export was started. StartTime *time.Time @@ -210,37 +210,37 @@ type CustomerAgentInfo struct { // Number of active discovery agents. // // This member is required. - ActiveAgents *int32 + ActiveAgents int32 // Number of blacklisted discovery agents. // // This member is required. - BlackListedAgents *int32 + BlackListedAgents int32 // Number of healthy discovery agents // // This member is required. - HealthyAgents *int32 + HealthyAgents int32 // Number of discovery agents with status SHUTDOWN. // // This member is required. - ShutdownAgents *int32 + ShutdownAgents int32 // Total number of discovery agents. // // This member is required. - TotalAgents *int32 + TotalAgents int32 // Number of unhealthy discovery agents. // // This member is required. - UnhealthyAgents *int32 + UnhealthyAgents int32 // Number of unknown discovery agents. // // This member is required. - UnknownAgents *int32 + UnknownAgents int32 } // Inventory data for installed discovery connectors. @@ -249,37 +249,37 @@ type CustomerConnectorInfo struct { // Number of active discovery connectors. // // This member is required. - ActiveConnectors *int32 + ActiveConnectors int32 // Number of blacklisted discovery connectors. // // This member is required. - BlackListedConnectors *int32 + BlackListedConnectors int32 // Number of healthy discovery connectors. // // This member is required. - HealthyConnectors *int32 + HealthyConnectors int32 // Number of discovery connectors with status SHUTDOWN, // // This member is required. - ShutdownConnectors *int32 + ShutdownConnectors int32 // Total number of discovery connectors. // // This member is required. - TotalConnectors *int32 + TotalConnectors int32 // Number of unhealthy discovery connectors. // // This member is required. - UnhealthyConnectors *int32 + UnhealthyConnectors int32 // Number of unknown discovery connectors. // // This member is required. - UnknownConnectors *int32 + UnknownConnectors int32 } // Used to select which agent's data is to be exported. A single agent ID may be @@ -304,7 +304,7 @@ type ExportFilter struct { // action. Typically an ADS agentId is in the form o-0123456789abcdef0. // // This member is required. - Values []*string + Values []string } // Information regarding the export status of discovered data. The value is an @@ -339,7 +339,7 @@ type ExportInfo struct { // export and the exported data is incomplete for the requested time range. To // address this, select a smaller time range for the export by using startDate and // endDate. - IsTruncated *bool + IsTruncated bool // The endTime used in the StartExportTask request. If no endTime was requested, // this result does not appear in ExportInfo. @@ -375,7 +375,7 @@ type Filter struct { // destinationServer.osVersion filter name, you could specify Ubuntu for the value. // // This member is required. - Values []*string + Values []string } // An array of information related to the import task request that includes status @@ -384,11 +384,11 @@ type ImportTask struct { // The total number of application records in the import file that failed to be // imported. - ApplicationImportFailure *int32 + ApplicationImportFailure int32 // The total number of application records in the import file that were // successfully imported. - ApplicationImportSuccess *int32 + ApplicationImportSuccess int32 // A unique token used to prevent the same import request from occurring more than // once. If you didn't provide a token, a token was automatically generated when @@ -434,11 +434,11 @@ type ImportTask struct { // The total number of server records in the import file that failed to be // imported. - ServerImportFailure *int32 + ServerImportFailure int32 // The total number of server records in the import file that were successfully // imported. - ServerImportSuccess *int32 + ServerImportSuccess int32 // The status of the import task. An import can have the status of IMPORT_COMPLETE // and still have some records fail to import from the overall request. More @@ -457,7 +457,7 @@ type ImportTaskFilter struct { // An array of strings that you can provide to match against a specific name, // status, or import task ID to filter the results for your import task queries. - Values []*string + Values []string } // Details about neighboring servers. @@ -466,7 +466,7 @@ type NeighborConnectionDetail struct { // The number of open network connections with the neighboring server. // // This member is required. - ConnectionsCount *int64 + ConnectionsCount int64 // The ID of the server that accepted the network connection. // @@ -522,5 +522,5 @@ type TagFilter struct { // Values for the tag filter. // // This member is required. - Values []*string + Values []string } diff --git a/service/applicationdiscoveryservice/validators.go b/service/applicationdiscoveryservice/validators.go index c163ee2cef9..cd10f601252 100644 --- a/service/applicationdiscoveryservice/validators.go +++ b/service/applicationdiscoveryservice/validators.go @@ -487,13 +487,13 @@ func validateExportFilter(v *types.ExportFilter) error { } } -func validateExportFilters(v []*types.ExportFilter) error { +func validateExportFilters(v []types.ExportFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ExportFilters"} for i := range v { - if err := validateExportFilter(v[i]); err != nil { + if err := validateExportFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -525,13 +525,13 @@ func validateFilter(v *types.Filter) error { } } -func validateFilters(v []*types.Filter) error { +func validateFilters(v []types.Filter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Filters"} for i := range v { - if err := validateFilter(v[i]); err != nil { + if err := validateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -557,13 +557,13 @@ func validateOrderByElement(v *types.OrderByElement) error { } } -func validateOrderByList(v []*types.OrderByElement) error { +func validateOrderByList(v []types.OrderByElement) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OrderByList"} for i := range v { - if err := validateOrderByElement(v[i]); err != nil { + if err := validateOrderByElement(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -610,13 +610,13 @@ func validateTagFilter(v *types.TagFilter) error { } } -func validateTagFilters(v []*types.TagFilter) error { +func validateTagFilters(v []types.TagFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagFilters"} for i := range v { - if err := validateTagFilter(v[i]); err != nil { + if err := validateTagFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -627,13 +627,13 @@ func validateTagFilters(v []*types.TagFilter) error { } } -func validateTagSet(v []*types.Tag) error { +func validateTagSet(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagSet"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/applicationinsights/api_op_CreateApplication.go b/service/applicationinsights/api_op_CreateApplication.go index a8765a7be04..ad86401e495 100644 --- a/service/applicationinsights/api_op_CreateApplication.go +++ b/service/applicationinsights/api_op_CreateApplication.go @@ -49,7 +49,7 @@ type CreateApplicationInput struct { // List of tags to add to the application. tag key (Key) and an associated tag // value (Value). The maximum length of a tag key is 128 characters. The maximum // length of a tag value is 256 characters. - Tags []*types.Tag + Tags []types.Tag } type CreateApplicationOutput struct { diff --git a/service/applicationinsights/api_op_CreateComponent.go b/service/applicationinsights/api_op_CreateComponent.go index fcb5feddff9..02ad54f54d8 100644 --- a/service/applicationinsights/api_op_CreateComponent.go +++ b/service/applicationinsights/api_op_CreateComponent.go @@ -41,7 +41,7 @@ type CreateComponentInput struct { // The list of resource ARNs that belong to the component. // // This member is required. - ResourceList []*string + ResourceList []string } type CreateComponentOutput struct { diff --git a/service/applicationinsights/api_op_CreateLogPattern.go b/service/applicationinsights/api_op_CreateLogPattern.go index 189204341de..395037dbb5a 100644 --- a/service/applicationinsights/api_op_CreateLogPattern.go +++ b/service/applicationinsights/api_op_CreateLogPattern.go @@ -47,7 +47,7 @@ type CreateLogPatternInput struct { // Rank of the log pattern. // // This member is required. - Rank *int32 + Rank int32 // The name of the resource group. // diff --git a/service/applicationinsights/api_op_DescribeComponent.go b/service/applicationinsights/api_op_DescribeComponent.go index d5cce8990ea..234933b7650 100644 --- a/service/applicationinsights/api_op_DescribeComponent.go +++ b/service/applicationinsights/api_op_DescribeComponent.go @@ -48,7 +48,7 @@ type DescribeComponentOutput struct { ApplicationComponent *types.ApplicationComponent // The list of resource ARNs that belong to the component. - ResourceList []*string + ResourceList []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationinsights/api_op_ListApplications.go b/service/applicationinsights/api_op_ListApplications.go index cf2577e7971..e6a83533a35 100644 --- a/service/applicationinsights/api_op_ListApplications.go +++ b/service/applicationinsights/api_op_ListApplications.go @@ -40,7 +40,7 @@ type ListApplicationsInput struct { type ListApplicationsOutput struct { // The list of applications. - ApplicationInfoList []*types.ApplicationInfo + ApplicationInfoList []types.ApplicationInfo // The token used to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/applicationinsights/api_op_ListComponents.go b/service/applicationinsights/api_op_ListComponents.go index 6a8dc666980..5828696ade7 100644 --- a/service/applicationinsights/api_op_ListComponents.go +++ b/service/applicationinsights/api_op_ListComponents.go @@ -45,7 +45,7 @@ type ListComponentsInput struct { type ListComponentsOutput struct { // The list of application components. - ApplicationComponentList []*types.ApplicationComponent + ApplicationComponentList []types.ApplicationComponent // The token to request the next page of results. NextToken *string diff --git a/service/applicationinsights/api_op_ListConfigurationHistory.go b/service/applicationinsights/api_op_ListConfigurationHistory.go index b72f7f711ed..056e622f45e 100644 --- a/service/applicationinsights/api_op_ListConfigurationHistory.go +++ b/service/applicationinsights/api_op_ListConfigurationHistory.go @@ -72,7 +72,7 @@ type ListConfigurationHistoryInput struct { type ListConfigurationHistoryOutput struct { // The list of configuration events and their corresponding details. - EventList []*types.ConfigurationEvent + EventList []types.ConfigurationEvent // The NextToken value to include in a future ListConfigurationHistory request. // When the results of a ListConfigurationHistory request exceed MaxResults, this diff --git a/service/applicationinsights/api_op_ListLogPatternSets.go b/service/applicationinsights/api_op_ListLogPatternSets.go index ec4647c40f7..d33384e7d94 100644 --- a/service/applicationinsights/api_op_ListLogPatternSets.go +++ b/service/applicationinsights/api_op_ListLogPatternSets.go @@ -44,7 +44,7 @@ type ListLogPatternSetsInput struct { type ListLogPatternSetsOutput struct { // The list of log pattern sets. - LogPatternSets []*string + LogPatternSets []string // The token used to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/applicationinsights/api_op_ListLogPatterns.go b/service/applicationinsights/api_op_ListLogPatterns.go index ea9cc6edde9..495028ac6eb 100644 --- a/service/applicationinsights/api_op_ListLogPatterns.go +++ b/service/applicationinsights/api_op_ListLogPatterns.go @@ -48,7 +48,7 @@ type ListLogPatternsInput struct { type ListLogPatternsOutput struct { // The list of log patterns. - LogPatterns []*types.LogPattern + LogPatterns []types.LogPattern // The token used to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/applicationinsights/api_op_ListProblems.go b/service/applicationinsights/api_op_ListProblems.go index 9bc807cac4a..42a9ca5dd13 100644 --- a/service/applicationinsights/api_op_ListProblems.go +++ b/service/applicationinsights/api_op_ListProblems.go @@ -56,7 +56,7 @@ type ListProblemsOutput struct { NextToken *string // The list of problems. - ProblemList []*types.Problem + ProblemList []types.Problem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationinsights/api_op_ListTagsForResource.go b/service/applicationinsights/api_op_ListTagsForResource.go index 9ebdc00410d..90ce7dc47e5 100644 --- a/service/applicationinsights/api_op_ListTagsForResource.go +++ b/service/applicationinsights/api_op_ListTagsForResource.go @@ -44,7 +44,7 @@ type ListTagsForResourceOutput struct { // An array that lists all the tags that are associated with the application. Each // tag consists of a required tag key (Key) and an associated tag value (Value). - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/applicationinsights/api_op_TagResource.go b/service/applicationinsights/api_op_TagResource.go index baaff0b861a..8cd4f9b473f 100644 --- a/service/applicationinsights/api_op_TagResource.go +++ b/service/applicationinsights/api_op_TagResource.go @@ -46,7 +46,7 @@ type TagResourceInput struct { // is 128 characters. The maximum length of a tag value is 256 characters. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/applicationinsights/api_op_UntagResource.go b/service/applicationinsights/api_op_UntagResource.go index 2d0bf813f2a..d8399adb94f 100644 --- a/service/applicationinsights/api_op_UntagResource.go +++ b/service/applicationinsights/api_op_UntagResource.go @@ -40,7 +40,7 @@ type UntagResourceInput struct { // argument for each additional tag to remove, separated by an ampersand. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/applicationinsights/api_op_UpdateComponent.go b/service/applicationinsights/api_op_UpdateComponent.go index fa1d6022557..4d78965a7ba 100644 --- a/service/applicationinsights/api_op_UpdateComponent.go +++ b/service/applicationinsights/api_op_UpdateComponent.go @@ -43,7 +43,7 @@ type UpdateComponentInput struct { NewComponentName *string // The list of resource ARNs that belong to the component. - ResourceList []*string + ResourceList []string } type UpdateComponentOutput struct { diff --git a/service/applicationinsights/api_op_UpdateLogPattern.go b/service/applicationinsights/api_op_UpdateLogPattern.go index 5b86309c6cb..8b47cd56815 100644 --- a/service/applicationinsights/api_op_UpdateLogPattern.go +++ b/service/applicationinsights/api_op_UpdateLogPattern.go @@ -48,7 +48,7 @@ type UpdateLogPatternInput struct { Pattern *string // Rank of the log pattern. - Rank *int32 + Rank int32 } type UpdateLogPatternOutput struct { diff --git a/service/applicationinsights/deserializers.go b/service/applicationinsights/deserializers.go index ef2f497c74d..38713da16e1 100644 --- a/service/applicationinsights/deserializers.go +++ b/service/applicationinsights/deserializers.go @@ -3466,7 +3466,7 @@ func awsAwsjson11_deserializeDocumentApplicationComponent(v **types.ApplicationC if !ok { return fmt.Errorf("expected ComponentName to be of type string, got %T instead", value) } - sv.ComponentName = &jtv + sv.ComponentName = ptr.String(jtv) } case "Monitor": @@ -3475,7 +3475,7 @@ func awsAwsjson11_deserializeDocumentApplicationComponent(v **types.ApplicationC if !ok { return fmt.Errorf("expected Monitor to be of type *bool, got %T instead", value) } - sv.Monitor = &jtv + sv.Monitor = ptr.Bool(jtv) } case "ResourceType": @@ -3484,7 +3484,7 @@ func awsAwsjson11_deserializeDocumentApplicationComponent(v **types.ApplicationC if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "Tier": @@ -3505,7 +3505,7 @@ func awsAwsjson11_deserializeDocumentApplicationComponent(v **types.ApplicationC return nil } -func awsAwsjson11_deserializeDocumentApplicationComponentList(v *[]*types.ApplicationComponent, value interface{}) error { +func awsAwsjson11_deserializeDocumentApplicationComponentList(v *[]types.ApplicationComponent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3518,18 +3518,20 @@ func awsAwsjson11_deserializeDocumentApplicationComponentList(v *[]*types.Applic return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApplicationComponent + var cv []types.ApplicationComponent if *v == nil { - cv = []*types.ApplicationComponent{} + cv = []types.ApplicationComponent{} } else { cv = *v } for _, value := range shape { - var col *types.ApplicationComponent - if err := awsAwsjson11_deserializeDocumentApplicationComponent(&col, value); err != nil { + var col types.ApplicationComponent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentApplicationComponent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3565,7 +3567,7 @@ func awsAwsjson11_deserializeDocumentApplicationInfo(v **types.ApplicationInfo, if !ok { return fmt.Errorf("expected CWEMonitorEnabled to be of type *bool, got %T instead", value) } - sv.CWEMonitorEnabled = &jtv + sv.CWEMonitorEnabled = ptr.Bool(jtv) } case "LifeCycle": @@ -3574,7 +3576,7 @@ func awsAwsjson11_deserializeDocumentApplicationInfo(v **types.ApplicationInfo, if !ok { return fmt.Errorf("expected LifeCycle to be of type string, got %T instead", value) } - sv.LifeCycle = &jtv + sv.LifeCycle = ptr.String(jtv) } case "OpsCenterEnabled": @@ -3583,7 +3585,7 @@ func awsAwsjson11_deserializeDocumentApplicationInfo(v **types.ApplicationInfo, if !ok { return fmt.Errorf("expected OpsCenterEnabled to be of type *bool, got %T instead", value) } - sv.OpsCenterEnabled = &jtv + sv.OpsCenterEnabled = ptr.Bool(jtv) } case "OpsItemSNSTopicArn": @@ -3592,7 +3594,7 @@ func awsAwsjson11_deserializeDocumentApplicationInfo(v **types.ApplicationInfo, if !ok { return fmt.Errorf("expected OpsItemSNSTopicArn to be of type string, got %T instead", value) } - sv.OpsItemSNSTopicArn = &jtv + sv.OpsItemSNSTopicArn = ptr.String(jtv) } case "Remarks": @@ -3601,7 +3603,7 @@ func awsAwsjson11_deserializeDocumentApplicationInfo(v **types.ApplicationInfo, if !ok { return fmt.Errorf("expected Remarks to be of type string, got %T instead", value) } - sv.Remarks = &jtv + sv.Remarks = ptr.String(jtv) } case "ResourceGroupName": @@ -3610,7 +3612,7 @@ func awsAwsjson11_deserializeDocumentApplicationInfo(v **types.ApplicationInfo, if !ok { return fmt.Errorf("expected ResourceGroupName to be of type string, got %T instead", value) } - sv.ResourceGroupName = &jtv + sv.ResourceGroupName = ptr.String(jtv) } default: @@ -3622,7 +3624,7 @@ func awsAwsjson11_deserializeDocumentApplicationInfo(v **types.ApplicationInfo, return nil } -func awsAwsjson11_deserializeDocumentApplicationInfoList(v *[]*types.ApplicationInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentApplicationInfoList(v *[]types.ApplicationInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3635,18 +3637,20 @@ func awsAwsjson11_deserializeDocumentApplicationInfoList(v *[]*types.Application return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApplicationInfo + var cv []types.ApplicationInfo if *v == nil { - cv = []*types.ApplicationInfo{} + cv = []types.ApplicationInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ApplicationInfo - if err := awsAwsjson11_deserializeDocumentApplicationInfo(&col, value); err != nil { + var col types.ApplicationInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentApplicationInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3682,7 +3686,7 @@ func awsAwsjson11_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected ErrorMsg to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3722,7 +3726,7 @@ func awsAwsjson11_deserializeDocumentConfigurationEvent(v **types.ConfigurationE if !ok { return fmt.Errorf("expected ConfigurationEventDetail to be of type string, got %T instead", value) } - sv.EventDetail = &jtv + sv.EventDetail = ptr.String(jtv) } case "EventResourceName": @@ -3731,7 +3735,7 @@ func awsAwsjson11_deserializeDocumentConfigurationEvent(v **types.ConfigurationE if !ok { return fmt.Errorf("expected ConfigurationEventResourceName to be of type string, got %T instead", value) } - sv.EventResourceName = &jtv + sv.EventResourceName = ptr.String(jtv) } case "EventResourceType": @@ -3771,7 +3775,7 @@ func awsAwsjson11_deserializeDocumentConfigurationEvent(v **types.ConfigurationE if !ok { return fmt.Errorf("expected ConfigurationEventMonitoredResourceARN to be of type string, got %T instead", value) } - sv.MonitoredResourceARN = &jtv + sv.MonitoredResourceARN = ptr.String(jtv) } default: @@ -3783,7 +3787,7 @@ func awsAwsjson11_deserializeDocumentConfigurationEvent(v **types.ConfigurationE return nil } -func awsAwsjson11_deserializeDocumentConfigurationEventList(v *[]*types.ConfigurationEvent, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfigurationEventList(v *[]types.ConfigurationEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3796,18 +3800,20 @@ func awsAwsjson11_deserializeDocumentConfigurationEventList(v *[]*types.Configur return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfigurationEvent + var cv []types.ConfigurationEvent if *v == nil { - cv = []*types.ConfigurationEvent{} + cv = []types.ConfigurationEvent{} } else { cv = *v } for _, value := range shape { - var col *types.ConfigurationEvent - if err := awsAwsjson11_deserializeDocumentConfigurationEvent(&col, value); err != nil { + var col types.ConfigurationEvent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfigurationEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3879,7 +3885,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMsg to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3919,7 +3925,7 @@ func awsAwsjson11_deserializeDocumentLogPattern(v **types.LogPattern, value inte if !ok { return fmt.Errorf("expected LogPatternRegex to be of type string, got %T instead", value) } - sv.Pattern = &jtv + sv.Pattern = ptr.String(jtv) } case "PatternName": @@ -3928,7 +3934,7 @@ func awsAwsjson11_deserializeDocumentLogPattern(v **types.LogPattern, value inte if !ok { return fmt.Errorf("expected LogPatternName to be of type string, got %T instead", value) } - sv.PatternName = &jtv + sv.PatternName = ptr.String(jtv) } case "PatternSetName": @@ -3937,7 +3943,7 @@ func awsAwsjson11_deserializeDocumentLogPattern(v **types.LogPattern, value inte if !ok { return fmt.Errorf("expected LogPatternSetName to be of type string, got %T instead", value) } - sv.PatternSetName = &jtv + sv.PatternSetName = ptr.String(jtv) } case "Rank": @@ -3950,7 +3956,7 @@ func awsAwsjson11_deserializeDocumentLogPattern(v **types.LogPattern, value inte if err != nil { return err } - sv.Rank = ptr.Int32(int32(i64)) + sv.Rank = int32(i64) } default: @@ -3962,7 +3968,7 @@ func awsAwsjson11_deserializeDocumentLogPattern(v **types.LogPattern, value inte return nil } -func awsAwsjson11_deserializeDocumentLogPatternList(v *[]*types.LogPattern, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogPatternList(v *[]types.LogPattern, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3975,18 +3981,20 @@ func awsAwsjson11_deserializeDocumentLogPatternList(v *[]*types.LogPattern, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LogPattern + var cv []types.LogPattern if *v == nil { - cv = []*types.LogPattern{} + cv = []types.LogPattern{} } else { cv = *v } for _, value := range shape { - var col *types.LogPattern - if err := awsAwsjson11_deserializeDocumentLogPattern(&col, value); err != nil { + var col types.LogPattern + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLogPattern(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3994,7 +4002,7 @@ func awsAwsjson11_deserializeDocumentLogPatternList(v *[]*types.LogPattern, valu return nil } -func awsAwsjson11_deserializeDocumentLogPatternSetList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogPatternSetList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4007,21 +4015,21 @@ func awsAwsjson11_deserializeDocumentLogPatternSetList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected LogPatternSetName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4058,7 +4066,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected CloudWatchEventDetailType to be of type string, got %T instead", value) } - sv.CloudWatchEventDetailType = &jtv + sv.CloudWatchEventDetailType = ptr.String(jtv) } case "CloudWatchEventId": @@ -4067,7 +4075,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected CloudWatchEventId to be of type string, got %T instead", value) } - sv.CloudWatchEventId = &jtv + sv.CloudWatchEventId = ptr.String(jtv) } case "CloudWatchEventSource": @@ -4085,7 +4093,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected CodeDeployApplication to be of type string, got %T instead", value) } - sv.CodeDeployApplication = &jtv + sv.CodeDeployApplication = ptr.String(jtv) } case "CodeDeployDeploymentGroup": @@ -4094,7 +4102,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected CodeDeployDeploymentGroup to be of type string, got %T instead", value) } - sv.CodeDeployDeploymentGroup = &jtv + sv.CodeDeployDeploymentGroup = ptr.String(jtv) } case "CodeDeployDeploymentId": @@ -4103,7 +4111,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected CodeDeployDeploymentId to be of type string, got %T instead", value) } - sv.CodeDeployDeploymentId = &jtv + sv.CodeDeployDeploymentId = ptr.String(jtv) } case "CodeDeployInstanceGroupId": @@ -4112,7 +4120,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected CodeDeployInstanceGroupId to be of type string, got %T instead", value) } - sv.CodeDeployInstanceGroupId = &jtv + sv.CodeDeployInstanceGroupId = ptr.String(jtv) } case "CodeDeployState": @@ -4121,7 +4129,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected CodeDeployState to be of type string, got %T instead", value) } - sv.CodeDeployState = &jtv + sv.CodeDeployState = ptr.String(jtv) } case "Ec2State": @@ -4130,7 +4138,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected Ec2State to be of type string, got %T instead", value) } - sv.Ec2State = &jtv + sv.Ec2State = ptr.String(jtv) } case "EndTime": @@ -4152,7 +4160,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected HealthEventArn to be of type string, got %T instead", value) } - sv.HealthEventArn = &jtv + sv.HealthEventArn = ptr.String(jtv) } case "HealthEventDescription": @@ -4161,7 +4169,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected HealthEventDescription to be of type string, got %T instead", value) } - sv.HealthEventDescription = &jtv + sv.HealthEventDescription = ptr.String(jtv) } case "HealthEventTypeCategory": @@ -4170,7 +4178,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected HealthEventTypeCategory to be of type string, got %T instead", value) } - sv.HealthEventTypeCategory = &jtv + sv.HealthEventTypeCategory = ptr.String(jtv) } case "HealthEventTypeCode": @@ -4179,7 +4187,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected HealthEventTypeCode to be of type string, got %T instead", value) } - sv.HealthEventTypeCode = &jtv + sv.HealthEventTypeCode = ptr.String(jtv) } case "HealthService": @@ -4188,7 +4196,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected HealthService to be of type string, got %T instead", value) } - sv.HealthService = &jtv + sv.HealthService = ptr.String(jtv) } case "Id": @@ -4197,7 +4205,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected ObservationId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LineTime": @@ -4228,7 +4236,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected LogGroup to be of type string, got %T instead", value) } - sv.LogGroup = &jtv + sv.LogGroup = ptr.String(jtv) } case "LogText": @@ -4237,7 +4245,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected LogText to be of type string, got %T instead", value) } - sv.LogText = &jtv + sv.LogText = ptr.String(jtv) } case "MetricName": @@ -4246,7 +4254,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "MetricNamespace": @@ -4255,7 +4263,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected MetricNamespace to be of type string, got %T instead", value) } - sv.MetricNamespace = &jtv + sv.MetricNamespace = ptr.String(jtv) } case "SourceARN": @@ -4264,7 +4272,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected SourceARN to be of type string, got %T instead", value) } - sv.SourceARN = &jtv + sv.SourceARN = ptr.String(jtv) } case "SourceType": @@ -4273,7 +4281,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected SourceType to be of type string, got %T instead", value) } - sv.SourceType = &jtv + sv.SourceType = ptr.String(jtv) } case "StartTime": @@ -4295,7 +4303,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected Unit to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } case "Value": @@ -4308,7 +4316,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if err != nil { return err } - sv.Value = &f64 + sv.Value = ptr.Float64(f64) } case "XRayErrorPercent": @@ -4343,7 +4351,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected XRayNodeName to be of type string, got %T instead", value) } - sv.XRayNodeName = &jtv + sv.XRayNodeName = ptr.String(jtv) } case "XRayNodeType": @@ -4352,7 +4360,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if !ok { return fmt.Errorf("expected XRayNodeType to be of type string, got %T instead", value) } - sv.XRayNodeType = &jtv + sv.XRayNodeType = ptr.String(jtv) } case "XRayRequestAverageLatency": @@ -4365,7 +4373,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in if err != nil { return err } - sv.XRayRequestAverageLatency = &i64 + sv.XRayRequestAverageLatency = ptr.Int64(i64) } case "XRayRequestCount": @@ -4403,7 +4411,7 @@ func awsAwsjson11_deserializeDocumentObservation(v **types.Observation, value in return nil } -func awsAwsjson11_deserializeDocumentObservationList(v *[]*types.Observation, value interface{}) error { +func awsAwsjson11_deserializeDocumentObservationList(v *[]types.Observation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4416,18 +4424,20 @@ func awsAwsjson11_deserializeDocumentObservationList(v *[]*types.Observation, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Observation + var cv []types.Observation if *v == nil { - cv = []*types.Observation{} + cv = []types.Observation{} } else { cv = *v } for _, value := range shape { - var col *types.Observation - if err := awsAwsjson11_deserializeDocumentObservation(&col, value); err != nil { + var col types.Observation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentObservation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4463,7 +4473,7 @@ func awsAwsjson11_deserializeDocumentProblem(v **types.Problem, value interface{ if !ok { return fmt.Errorf("expected AffectedResource to be of type string, got %T instead", value) } - sv.AffectedResource = &jtv + sv.AffectedResource = ptr.String(jtv) } case "EndTime": @@ -4490,7 +4500,7 @@ func awsAwsjson11_deserializeDocumentProblem(v **types.Problem, value interface{ if !ok { return fmt.Errorf("expected ProblemId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Insights": @@ -4499,7 +4509,7 @@ func awsAwsjson11_deserializeDocumentProblem(v **types.Problem, value interface{ if !ok { return fmt.Errorf("expected Insights to be of type string, got %T instead", value) } - sv.Insights = &jtv + sv.Insights = ptr.String(jtv) } case "ResourceGroupName": @@ -4508,7 +4518,7 @@ func awsAwsjson11_deserializeDocumentProblem(v **types.Problem, value interface{ if !ok { return fmt.Errorf("expected ResourceGroupName to be of type string, got %T instead", value) } - sv.ResourceGroupName = &jtv + sv.ResourceGroupName = ptr.String(jtv) } case "SeverityLevel": @@ -4548,7 +4558,7 @@ func awsAwsjson11_deserializeDocumentProblem(v **types.Problem, value interface{ if !ok { return fmt.Errorf("expected Title to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } default: @@ -4560,7 +4570,7 @@ func awsAwsjson11_deserializeDocumentProblem(v **types.Problem, value interface{ return nil } -func awsAwsjson11_deserializeDocumentProblemList(v *[]*types.Problem, value interface{}) error { +func awsAwsjson11_deserializeDocumentProblemList(v *[]types.Problem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4573,18 +4583,20 @@ func awsAwsjson11_deserializeDocumentProblemList(v *[]*types.Problem, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Problem + var cv []types.Problem if *v == nil { - cv = []*types.Problem{} + cv = []types.Problem{} } else { cv = *v } for _, value := range shape { - var col *types.Problem - if err := awsAwsjson11_deserializeDocumentProblem(&col, value); err != nil { + var col types.Problem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProblem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4656,7 +4668,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMsg to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4668,7 +4680,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn return nil } -func awsAwsjson11_deserializeDocumentResourceList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4681,21 +4693,21 @@ func awsAwsjson11_deserializeDocumentResourceList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4732,7 +4744,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMsg to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4772,7 +4784,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -4781,7 +4793,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4793,7 +4805,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4806,18 +4818,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4853,7 +4867,7 @@ func awsAwsjson11_deserializeDocumentTagsAlreadyExistException(v **types.TagsAlr if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4893,7 +4907,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceName": @@ -4902,7 +4916,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } default: @@ -4942,7 +4956,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMsg to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5054,7 +5068,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLogPatternOutput(v **CreateLogPatte if !ok { return fmt.Errorf("expected ResourceGroupName to be of type string, got %T instead", value) } - sv.ResourceGroupName = &jtv + sv.ResourceGroupName = ptr.String(jtv) } default: @@ -5223,7 +5237,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeComponentConfigurationOutput(v ** if !ok { return fmt.Errorf("expected ComponentConfiguration to be of type string, got %T instead", value) } - sv.ComponentConfiguration = &jtv + sv.ComponentConfiguration = ptr.String(jtv) } case "Monitor": @@ -5232,7 +5246,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeComponentConfigurationOutput(v ** if !ok { return fmt.Errorf("expected Monitor to be of type *bool, got %T instead", value) } - sv.Monitor = &jtv + sv.Monitor = ptr.Bool(jtv) } case "Tier": @@ -5281,7 +5295,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeComponentConfigurationRecommendat if !ok { return fmt.Errorf("expected ComponentConfiguration to be of type string, got %T instead", value) } - sv.ComponentConfiguration = &jtv + sv.ComponentConfiguration = ptr.String(jtv) } default: @@ -5367,7 +5381,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLogPatternOutput(v **DescribeLogP if !ok { return fmt.Errorf("expected ResourceGroupName to be of type string, got %T instead", value) } - sv.ResourceGroupName = &jtv + sv.ResourceGroupName = ptr.String(jtv) } default: @@ -5520,7 +5534,7 @@ func awsAwsjson11_deserializeOpDocumentListApplicationsOutput(v **ListApplicatio if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5565,7 +5579,7 @@ func awsAwsjson11_deserializeOpDocumentListComponentsOutput(v **ListComponentsOu if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5610,7 +5624,7 @@ func awsAwsjson11_deserializeOpDocumentListConfigurationHistoryOutput(v **ListCo if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5655,7 +5669,7 @@ func awsAwsjson11_deserializeOpDocumentListLogPatternSetsOutput(v **ListLogPatte if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResourceGroupName": @@ -5664,7 +5678,7 @@ func awsAwsjson11_deserializeOpDocumentListLogPatternSetsOutput(v **ListLogPatte if !ok { return fmt.Errorf("expected ResourceGroupName to be of type string, got %T instead", value) } - sv.ResourceGroupName = &jtv + sv.ResourceGroupName = ptr.String(jtv) } default: @@ -5709,7 +5723,7 @@ func awsAwsjson11_deserializeOpDocumentListLogPatternsOutput(v **ListLogPatterns if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResourceGroupName": @@ -5718,7 +5732,7 @@ func awsAwsjson11_deserializeOpDocumentListLogPatternsOutput(v **ListLogPatterns if !ok { return fmt.Errorf("expected ResourceGroupName to be of type string, got %T instead", value) } - sv.ResourceGroupName = &jtv + sv.ResourceGroupName = ptr.String(jtv) } default: @@ -5758,7 +5772,7 @@ func awsAwsjson11_deserializeOpDocumentListProblemsOutput(v **ListProblemsOutput if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ProblemList": @@ -6004,7 +6018,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLogPatternOutput(v **UpdateLogPatte if !ok { return fmt.Errorf("expected ResourceGroupName to be of type string, got %T instead", value) } - sv.ResourceGroupName = &jtv + sv.ResourceGroupName = ptr.String(jtv) } default: diff --git a/service/applicationinsights/go.mod b/service/applicationinsights/go.mod index c0c935be068..30a14e7fc98 100644 --- a/service/applicationinsights/go.mod +++ b/service/applicationinsights/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/applicationinsights go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/applicationinsights/serializers.go b/service/applicationinsights/serializers.go index a09b2c0dc81..611e3fab7be 100644 --- a/service/applicationinsights/serializers.go +++ b/service/applicationinsights/serializers.go @@ -1256,17 +1256,13 @@ func (m *awsAwsjson11_serializeOpUpdateLogPattern) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentResourceList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1288,32 +1284,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -1397,9 +1385,9 @@ func awsAwsjson11_serializeOpDocumentCreateLogPatternInput(v *CreateLogPatternIn ok.String(*v.PatternSetName) } - if v.Rank != nil { + if v.Rank != 0 { ok := object.Key("Rank") - ok.Integer(*v.Rank) + ok.Integer(v.Rank) } if v.ResourceGroupName != nil { @@ -1906,9 +1894,9 @@ func awsAwsjson11_serializeOpDocumentUpdateLogPatternInput(v *UpdateLogPatternIn ok.String(*v.PatternSetName) } - if v.Rank != nil { + if v.Rank != 0 { ok := object.Key("Rank") - ok.Integer(*v.Rank) + ok.Integer(v.Rank) } if v.ResourceGroupName != nil { diff --git a/service/applicationinsights/types/types.go b/service/applicationinsights/types/types.go index 9b90a981bd5..c1e6253c823 100644 --- a/service/applicationinsights/types/types.go +++ b/service/applicationinsights/types/types.go @@ -99,7 +99,7 @@ type LogPattern struct { PatternSetName *string // Rank of the log pattern. - Rank *int32 + Rank int32 } // Describes an anomaly or error with the application. @@ -251,7 +251,7 @@ type Problem struct { type RelatedObservations struct { // The list of observations related to the problem. - ObservationList []*Observation + ObservationList []Observation } // An object that defines the tags associated with an application. A tag is a label diff --git a/service/applicationinsights/validators.go b/service/applicationinsights/validators.go index c4ee7cf1cf5..0b6dafbbd68 100644 --- a/service/applicationinsights/validators.go +++ b/service/applicationinsights/validators.go @@ -604,13 +604,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -673,9 +673,6 @@ func validateOpCreateLogPatternInput(v *CreateLogPatternInput) error { if v.PatternSetName == nil { invalidParams.Add(smithy.NewErrParamRequired("PatternSetName")) } - if v.Rank == nil { - invalidParams.Add(smithy.NewErrParamRequired("Rank")) - } if v.PatternName == nil { invalidParams.Add(smithy.NewErrParamRequired("PatternName")) } diff --git a/service/appmesh/api_op_CreateGatewayRoute.go b/service/appmesh/api_op_CreateGatewayRoute.go index c691c62324c..334a84a0852 100644 --- a/service/appmesh/api_op_CreateGatewayRoute.go +++ b/service/appmesh/api_op_CreateGatewayRoute.go @@ -70,7 +70,7 @@ type CreateGatewayRouteInput struct { // categorization and organization. Each tag consists of a key and an optional // value, both of which you define. Tag keys can have a maximum character length of // 128 characters, and tag values can have a maximum length of 256 characters. - Tags []*types.TagRef + Tags []types.TagRef } type CreateGatewayRouteOutput struct { diff --git a/service/appmesh/api_op_CreateMesh.go b/service/appmesh/api_op_CreateMesh.go index a256b90764d..7fa1b4332e1 100644 --- a/service/appmesh/api_op_CreateMesh.go +++ b/service/appmesh/api_op_CreateMesh.go @@ -51,7 +51,7 @@ type CreateMeshInput struct { // categorization and organization. Each tag consists of a key and an optional // value, both of which you define. Tag keys can have a maximum character length of // 128 characters, and tag values can have a maximum length of 256 characters. - Tags []*types.TagRef + Tags []types.TagRef } // diff --git a/service/appmesh/api_op_CreateRoute.go b/service/appmesh/api_op_CreateRoute.go index 4d6d3ac6e92..d34fef856eb 100644 --- a/service/appmesh/api_op_CreateRoute.go +++ b/service/appmesh/api_op_CreateRoute.go @@ -70,7 +70,7 @@ type CreateRouteInput struct { // and organization. Each tag consists of a key and an optional value, both of // which you define. Tag keys can have a maximum character length of 128 // characters, and tag values can have a maximum length of 256 characters. - Tags []*types.TagRef + Tags []types.TagRef } // diff --git a/service/appmesh/api_op_CreateVirtualGateway.go b/service/appmesh/api_op_CreateVirtualGateway.go index 860468fdee7..02e00dfa265 100644 --- a/service/appmesh/api_op_CreateVirtualGateway.go +++ b/service/appmesh/api_op_CreateVirtualGateway.go @@ -66,7 +66,7 @@ type CreateVirtualGatewayInput struct { // categorization and organization. Each tag consists of a key and an optional // value, both of which you define. Tag keys can have a maximum character length of // 128 characters, and tag values can have a maximum length of 256 characters. - Tags []*types.TagRef + Tags []types.TagRef } type CreateVirtualGatewayOutput struct { diff --git a/service/appmesh/api_op_CreateVirtualNode.go b/service/appmesh/api_op_CreateVirtualNode.go index 968ff4b8c23..baecf1701af 100644 --- a/service/appmesh/api_op_CreateVirtualNode.go +++ b/service/appmesh/api_op_CreateVirtualNode.go @@ -77,7 +77,7 @@ type CreateVirtualNodeInput struct { // categorization and organization. Each tag consists of a key and an optional // value, both of which you define. Tag keys can have a maximum character length of // 128 characters, and tag values can have a maximum length of 256 characters. - Tags []*types.TagRef + Tags []types.TagRef } // diff --git a/service/appmesh/api_op_CreateVirtualRouter.go b/service/appmesh/api_op_CreateVirtualRouter.go index 9b1e47720a8..d62f3c8dfe2 100644 --- a/service/appmesh/api_op_CreateVirtualRouter.go +++ b/service/appmesh/api_op_CreateVirtualRouter.go @@ -67,7 +67,7 @@ type CreateVirtualRouterInput struct { // categorization and organization. Each tag consists of a key and an optional // value, both of which you define. Tag keys can have a maximum character length of // 128 characters, and tag values can have a maximum length of 256 characters. - Tags []*types.TagRef + Tags []types.TagRef } // diff --git a/service/appmesh/api_op_CreateVirtualService.go b/service/appmesh/api_op_CreateVirtualService.go index 1b2a15102c3..71d42af948f 100644 --- a/service/appmesh/api_op_CreateVirtualService.go +++ b/service/appmesh/api_op_CreateVirtualService.go @@ -66,7 +66,7 @@ type CreateVirtualServiceInput struct { // categorization and organization. Each tag consists of a key and an optional // value, both of which you define. Tag keys can have a maximum character length of // 128 characters, and tag values can have a maximum length of 256 characters. - Tags []*types.TagRef + Tags []types.TagRef } // diff --git a/service/appmesh/api_op_ListGatewayRoutes.go b/service/appmesh/api_op_ListGatewayRoutes.go index 05ed0b06a60..6285f4ab439 100644 --- a/service/appmesh/api_op_ListGatewayRoutes.go +++ b/service/appmesh/api_op_ListGatewayRoutes.go @@ -68,7 +68,7 @@ type ListGatewayRoutesOutput struct { // gateway. // // This member is required. - GatewayRoutes []*types.GatewayRouteRef + GatewayRoutes []types.GatewayRouteRef // The nextToken value to include in a future ListGatewayRoutes request. When the // results of a ListGatewayRoutes request exceed limit, you can use this value to diff --git a/service/appmesh/api_op_ListMeshes.go b/service/appmesh/api_op_ListMeshes.go index d6c6658f33d..cb8461b8c2e 100644 --- a/service/appmesh/api_op_ListMeshes.go +++ b/service/appmesh/api_op_ListMeshes.go @@ -53,7 +53,7 @@ type ListMeshesOutput struct { // The list of existing service meshes. // // This member is required. - Meshes []*types.MeshRef + Meshes []types.MeshRef // The nextToken value to include in a future ListMeshes request. When the results // of a ListMeshes request exceed limit, you can use this value to retrieve the diff --git a/service/appmesh/api_op_ListRoutes.go b/service/appmesh/api_op_ListRoutes.go index fcc2ec4c43b..8be462bcbf1 100644 --- a/service/appmesh/api_op_ListRoutes.go +++ b/service/appmesh/api_op_ListRoutes.go @@ -68,7 +68,7 @@ type ListRoutesOutput struct { // The list of existing routes for the specified service mesh and virtual router. // // This member is required. - Routes []*types.RouteRef + Routes []types.RouteRef // The nextToken value to include in a future ListRoutes request. When the results // of a ListRoutes request exceed limit, you can use this value to retrieve the diff --git a/service/appmesh/api_op_ListTagsForResource.go b/service/appmesh/api_op_ListTagsForResource.go index 53646940f8b..44161be6a6a 100644 --- a/service/appmesh/api_op_ListTagsForResource.go +++ b/service/appmesh/api_op_ListTagsForResource.go @@ -58,7 +58,7 @@ type ListTagsForResourceOutput struct { // The tags for the resource. // // This member is required. - Tags []*types.TagRef + Tags []types.TagRef // The nextToken value to include in a future ListTagsForResource request. When the // results of a ListTagsForResource request exceed limit, you can use this value to diff --git a/service/appmesh/api_op_ListVirtualGateways.go b/service/appmesh/api_op_ListVirtualGateways.go index 673205574b1..5cf6a03532a 100644 --- a/service/appmesh/api_op_ListVirtualGateways.go +++ b/service/appmesh/api_op_ListVirtualGateways.go @@ -61,7 +61,7 @@ type ListVirtualGatewaysOutput struct { // The list of existing virtual gateways for the specified service mesh. // // This member is required. - VirtualGateways []*types.VirtualGatewayRef + VirtualGateways []types.VirtualGatewayRef // The nextToken value to include in a future ListVirtualGateways request. When the // results of a ListVirtualGateways request exceed limit, you can use this value to diff --git a/service/appmesh/api_op_ListVirtualNodes.go b/service/appmesh/api_op_ListVirtualNodes.go index c1747eb9f3c..3c27e6e5122 100644 --- a/service/appmesh/api_op_ListVirtualNodes.go +++ b/service/appmesh/api_op_ListVirtualNodes.go @@ -63,7 +63,7 @@ type ListVirtualNodesOutput struct { // The list of existing virtual nodes for the specified service mesh. // // This member is required. - VirtualNodes []*types.VirtualNodeRef + VirtualNodes []types.VirtualNodeRef // The nextToken value to include in a future ListVirtualNodes request. When the // results of a ListVirtualNodes request exceed limit, you can use this value to diff --git a/service/appmesh/api_op_ListVirtualRouters.go b/service/appmesh/api_op_ListVirtualRouters.go index 576c9d41536..58bcc0e3836 100644 --- a/service/appmesh/api_op_ListVirtualRouters.go +++ b/service/appmesh/api_op_ListVirtualRouters.go @@ -63,7 +63,7 @@ type ListVirtualRoutersOutput struct { // The list of existing virtual routers for the specified service mesh. // // This member is required. - VirtualRouters []*types.VirtualRouterRef + VirtualRouters []types.VirtualRouterRef // The nextToken value to include in a future ListVirtualRouters request. When the // results of a ListVirtualRouters request exceed limit, you can use this value to diff --git a/service/appmesh/api_op_ListVirtualServices.go b/service/appmesh/api_op_ListVirtualServices.go index f1afaaef860..8b74b0b6069 100644 --- a/service/appmesh/api_op_ListVirtualServices.go +++ b/service/appmesh/api_op_ListVirtualServices.go @@ -63,7 +63,7 @@ type ListVirtualServicesOutput struct { // The list of existing virtual services for the specified service mesh. // // This member is required. - VirtualServices []*types.VirtualServiceRef + VirtualServices []types.VirtualServiceRef // The nextToken value to include in a future ListVirtualServices request. When the // results of a ListVirtualServices request exceed limit, you can use this value to diff --git a/service/appmesh/api_op_TagResource.go b/service/appmesh/api_op_TagResource.go index 991136ef0b6..533d23cd26f 100644 --- a/service/appmesh/api_op_TagResource.go +++ b/service/appmesh/api_op_TagResource.go @@ -43,7 +43,7 @@ type TagResourceInput struct { // maximum length of 256 characters. // // This member is required. - Tags []*types.TagRef + Tags []types.TagRef } // diff --git a/service/appmesh/api_op_UntagResource.go b/service/appmesh/api_op_UntagResource.go index 739daa3247a..f360bbfa5c3 100644 --- a/service/appmesh/api_op_UntagResource.go +++ b/service/appmesh/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // The keys of the tags to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } // diff --git a/service/appmesh/deserializers.go b/service/appmesh/deserializers.go index 498697da6a8..7e98da5a0ee 100644 --- a/service/appmesh/deserializers.go +++ b/service/appmesh/deserializers.go @@ -3643,7 +3643,7 @@ func awsRestjson1_deserializeOpDocumentListGatewayRoutesOutput(v **ListGatewayRo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3814,7 +3814,7 @@ func awsRestjson1_deserializeOpDocumentListMeshesOutput(v **ListMeshesOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3980,7 +3980,7 @@ func awsRestjson1_deserializeOpDocumentListRoutesOutput(v **ListRoutesOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "routes": @@ -4151,7 +4151,7 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tags": @@ -4322,7 +4322,7 @@ func awsRestjson1_deserializeOpDocumentListVirtualGatewaysOutput(v **ListVirtual if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "virtualGateways": @@ -4493,7 +4493,7 @@ func awsRestjson1_deserializeOpDocumentListVirtualNodesOutput(v **ListVirtualNod if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "virtualNodes": @@ -4664,7 +4664,7 @@ func awsRestjson1_deserializeOpDocumentListVirtualRoutersOutput(v **ListVirtualR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "virtualRouters": @@ -4835,7 +4835,7 @@ func awsRestjson1_deserializeOpDocumentListVirtualServicesOutput(v **ListVirtual if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "virtualServices": @@ -6602,10 +6602,12 @@ loop: for key, value := range shape { switch key { case "file": - var mv *types.FileAccessLog - if err := awsRestjson1_deserializeDocumentFileAccessLog(&mv, value); err != nil { + var mv types.FileAccessLog + destAddr := &mv + if err := awsRestjson1_deserializeDocumentFileAccessLog(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.AccessLogMemberFile{Value: mv} break loop @@ -6649,7 +6651,7 @@ func awsRestjson1_deserializeDocumentAwsCloudMapInstanceAttribute(v **types.AwsC if !ok { return fmt.Errorf("expected AwsCloudMapInstanceAttributeKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -6658,7 +6660,7 @@ func awsRestjson1_deserializeDocumentAwsCloudMapInstanceAttribute(v **types.AwsC if !ok { return fmt.Errorf("expected AwsCloudMapInstanceAttributeValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6670,7 +6672,7 @@ func awsRestjson1_deserializeDocumentAwsCloudMapInstanceAttribute(v **types.AwsC return nil } -func awsRestjson1_deserializeDocumentAwsCloudMapInstanceAttributes(v *[]*types.AwsCloudMapInstanceAttribute, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsCloudMapInstanceAttributes(v *[]types.AwsCloudMapInstanceAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6683,18 +6685,20 @@ func awsRestjson1_deserializeDocumentAwsCloudMapInstanceAttributes(v *[]*types.A return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsCloudMapInstanceAttribute + var cv []types.AwsCloudMapInstanceAttribute if *v == nil { - cv = []*types.AwsCloudMapInstanceAttribute{} + cv = []types.AwsCloudMapInstanceAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.AwsCloudMapInstanceAttribute - if err := awsRestjson1_deserializeDocumentAwsCloudMapInstanceAttribute(&col, value); err != nil { + var col types.AwsCloudMapInstanceAttribute + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsCloudMapInstanceAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6735,7 +6739,7 @@ func awsRestjson1_deserializeDocumentAwsCloudMapServiceDiscovery(v **types.AwsCl if !ok { return fmt.Errorf("expected AwsCloudMapName to be of type string, got %T instead", value) } - sv.NamespaceName = &jtv + sv.NamespaceName = ptr.String(jtv) } case "serviceName": @@ -6744,7 +6748,7 @@ func awsRestjson1_deserializeDocumentAwsCloudMapServiceDiscovery(v **types.AwsCl if !ok { return fmt.Errorf("expected AwsCloudMapName to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } default: @@ -6774,10 +6778,12 @@ loop: for key, value := range shape { switch key { case "virtualService": - var mv *types.VirtualServiceBackend - if err := awsRestjson1_deserializeDocumentVirtualServiceBackend(&mv, value); err != nil { + var mv types.VirtualServiceBackend + destAddr := &mv + if err := awsRestjson1_deserializeDocumentVirtualServiceBackend(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.BackendMemberVirtualService{Value: mv} break loop @@ -6889,7 +6895,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6901,7 +6907,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc return nil } -func awsRestjson1_deserializeDocumentCertificateAuthorityArns(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentCertificateAuthorityArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6914,21 +6920,21 @@ func awsRestjson1_deserializeDocumentCertificateAuthorityArns(v *[]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -7001,7 +7007,7 @@ func awsRestjson1_deserializeDocumentClientPolicyTls(v **types.ClientPolicyTls, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enforce = &jtv + sv.Enforce = ptr.Bool(jtv) } case "ports": @@ -7051,7 +7057,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7091,7 +7097,7 @@ func awsRestjson1_deserializeDocumentDnsServiceDiscovery(v **types.DnsServiceDis if !ok { return fmt.Errorf("expected Hostname to be of type string, got %T instead", value) } - sv.Hostname = &jtv + sv.Hostname = ptr.String(jtv) } default: @@ -7144,7 +7150,7 @@ func awsRestjson1_deserializeDocumentDuration(v **types.Duration, value interfac if err != nil { return err } - sv.Value = &i64 + sv.Value = ptr.Int64(i64) } default: @@ -7224,7 +7230,7 @@ func awsRestjson1_deserializeDocumentFileAccessLog(v **types.FileAccessLog, valu if !ok { return fmt.Errorf("expected FilePath to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } default: @@ -7264,7 +7270,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7304,7 +7310,7 @@ func awsRestjson1_deserializeDocumentGatewayRouteData(v **types.GatewayRouteData if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.GatewayRouteName = &jtv + sv.GatewayRouteName = ptr.String(jtv) } case "meshName": @@ -7313,7 +7319,7 @@ func awsRestjson1_deserializeDocumentGatewayRouteData(v **types.GatewayRouteData if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "metadata": @@ -7337,7 +7343,7 @@ func awsRestjson1_deserializeDocumentGatewayRouteData(v **types.GatewayRouteData if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualGatewayName = &jtv + sv.VirtualGatewayName = ptr.String(jtv) } default: @@ -7349,7 +7355,7 @@ func awsRestjson1_deserializeDocumentGatewayRouteData(v **types.GatewayRouteData return nil } -func awsRestjson1_deserializeDocumentGatewayRouteList(v *[]*types.GatewayRouteRef, value interface{}) error { +func awsRestjson1_deserializeDocumentGatewayRouteList(v *[]types.GatewayRouteRef, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7362,18 +7368,20 @@ func awsRestjson1_deserializeDocumentGatewayRouteList(v *[]*types.GatewayRouteRe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GatewayRouteRef + var cv []types.GatewayRouteRef if *v == nil { - cv = []*types.GatewayRouteRef{} + cv = []types.GatewayRouteRef{} } else { cv = *v } for _, value := range shape { - var col *types.GatewayRouteRef - if err := awsRestjson1_deserializeDocumentGatewayRouteRef(&col, value); err != nil { + var col types.GatewayRouteRef + destAddr := &col + if err := awsRestjson1_deserializeDocumentGatewayRouteRef(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7409,7 +7417,7 @@ func awsRestjson1_deserializeDocumentGatewayRouteRef(v **types.GatewayRouteRef, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -7431,7 +7439,7 @@ func awsRestjson1_deserializeDocumentGatewayRouteRef(v **types.GatewayRouteRef, if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.GatewayRouteName = &jtv + sv.GatewayRouteName = ptr.String(jtv) } case "lastUpdatedAt": @@ -7453,7 +7461,7 @@ func awsRestjson1_deserializeDocumentGatewayRouteRef(v **types.GatewayRouteRef, if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "meshOwner": @@ -7462,7 +7470,7 @@ func awsRestjson1_deserializeDocumentGatewayRouteRef(v **types.GatewayRouteRef, if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.MeshOwner = &jtv + sv.MeshOwner = ptr.String(jtv) } case "resourceOwner": @@ -7471,7 +7479,7 @@ func awsRestjson1_deserializeDocumentGatewayRouteRef(v **types.GatewayRouteRef, if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.ResourceOwner = &jtv + sv.ResourceOwner = ptr.String(jtv) } case "version": @@ -7484,7 +7492,7 @@ func awsRestjson1_deserializeDocumentGatewayRouteRef(v **types.GatewayRouteRef, if err != nil { return err } - sv.Version = &i64 + sv.Version = ptr.Int64(i64) } case "virtualGatewayName": @@ -7493,7 +7501,7 @@ func awsRestjson1_deserializeDocumentGatewayRouteRef(v **types.GatewayRouteRef, if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualGatewayName = &jtv + sv.VirtualGatewayName = ptr.String(jtv) } default: @@ -7655,7 +7663,7 @@ func awsRestjson1_deserializeDocumentGatewayRouteVirtualService(v **types.Gatewa if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualServiceName = &jtv + sv.VirtualServiceName = ptr.String(jtv) } default: @@ -7772,7 +7780,7 @@ func awsRestjson1_deserializeDocumentGrpcGatewayRouteMatch(v **types.GrpcGateway if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } default: @@ -7826,7 +7834,7 @@ func awsRestjson1_deserializeDocumentGrpcRetryPolicy(v **types.GrpcRetryPolicy, if err != nil { return err } - sv.MaxRetries = &i64 + sv.MaxRetries = ptr.Int64(i64) } case "perRetryTimeout": @@ -8004,7 +8012,7 @@ func awsRestjson1_deserializeDocumentGrpcRouteMatch(v **types.GrpcRouteMatch, va if !ok { return fmt.Errorf("expected MethodName to be of type string, got %T instead", value) } - sv.MethodName = &jtv + sv.MethodName = ptr.String(jtv) } case "serviceName": @@ -8013,7 +8021,7 @@ func awsRestjson1_deserializeDocumentGrpcRouteMatch(v **types.GrpcRouteMatch, va if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } default: @@ -8053,7 +8061,7 @@ func awsRestjson1_deserializeDocumentGrpcRouteMetadata(v **types.GrpcRouteMetada if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Invert = &jtv + sv.Invert = ptr.Bool(jtv) } case "match": @@ -8067,7 +8075,7 @@ func awsRestjson1_deserializeDocumentGrpcRouteMetadata(v **types.GrpcRouteMetada if !ok { return fmt.Errorf("expected HeaderName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8079,7 +8087,7 @@ func awsRestjson1_deserializeDocumentGrpcRouteMetadata(v **types.GrpcRouteMetada return nil } -func awsRestjson1_deserializeDocumentGrpcRouteMetadataList(v *[]*types.GrpcRouteMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentGrpcRouteMetadataList(v *[]types.GrpcRouteMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8092,18 +8100,20 @@ func awsRestjson1_deserializeDocumentGrpcRouteMetadataList(v *[]*types.GrpcRoute return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GrpcRouteMetadata + var cv []types.GrpcRouteMetadata if *v == nil { - cv = []*types.GrpcRouteMetadata{} + cv = []types.GrpcRouteMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.GrpcRouteMetadata - if err := awsRestjson1_deserializeDocumentGrpcRouteMetadata(&col, value); err != nil { + var col types.GrpcRouteMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentGrpcRouteMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8129,59 +8139,61 @@ loop: for key, value := range shape { switch key { case "exact": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HeaderMatch to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.GrpcRouteMetadataMatchMethodMemberExact{Value: *mv} + uv = &types.GrpcRouteMetadataMatchMethodMemberExact{Value: mv} break loop case "prefix": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HeaderMatch to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.GrpcRouteMetadataMatchMethodMemberPrefix{Value: *mv} + uv = &types.GrpcRouteMetadataMatchMethodMemberPrefix{Value: mv} break loop case "range": - var mv *types.MatchRange - if err := awsRestjson1_deserializeDocumentMatchRange(&mv, value); err != nil { + var mv types.MatchRange + destAddr := &mv + if err := awsRestjson1_deserializeDocumentMatchRange(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.GrpcRouteMetadataMatchMethodMemberRange{Value: mv} break loop case "regex": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HeaderMatch to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.GrpcRouteMetadataMatchMethodMemberRegex{Value: *mv} + uv = &types.GrpcRouteMetadataMatchMethodMemberRegex{Value: mv} break loop case "suffix": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HeaderMatch to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.GrpcRouteMetadataMatchMethodMemberSuffix{Value: *mv} + uv = &types.GrpcRouteMetadataMatchMethodMemberSuffix{Value: mv} break loop default: @@ -8255,59 +8267,61 @@ loop: for key, value := range shape { switch key { case "exact": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HeaderMatch to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.HeaderMatchMethodMemberExact{Value: *mv} + uv = &types.HeaderMatchMethodMemberExact{Value: mv} break loop case "prefix": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HeaderMatch to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.HeaderMatchMethodMemberPrefix{Value: *mv} + uv = &types.HeaderMatchMethodMemberPrefix{Value: mv} break loop case "range": - var mv *types.MatchRange - if err := awsRestjson1_deserializeDocumentMatchRange(&mv, value); err != nil { + var mv types.MatchRange + destAddr := &mv + if err := awsRestjson1_deserializeDocumentMatchRange(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.HeaderMatchMethodMemberRange{Value: mv} break loop case "regex": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HeaderMatch to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.HeaderMatchMethodMemberRegex{Value: *mv} + uv = &types.HeaderMatchMethodMemberRegex{Value: mv} break loop case "suffix": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HeaderMatch to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.HeaderMatchMethodMemberSuffix{Value: *mv} + uv = &types.HeaderMatchMethodMemberSuffix{Value: mv} break loop default: @@ -8354,7 +8368,7 @@ func awsRestjson1_deserializeDocumentHealthCheckPolicy(v **types.HealthCheckPoli if err != nil { return err } - sv.HealthyThreshold = ptr.Int32(int32(i64)) + sv.HealthyThreshold = int32(i64) } case "intervalMillis": @@ -8367,7 +8381,7 @@ func awsRestjson1_deserializeDocumentHealthCheckPolicy(v **types.HealthCheckPoli if err != nil { return err } - sv.IntervalMillis = &i64 + sv.IntervalMillis = ptr.Int64(i64) } case "path": @@ -8376,7 +8390,7 @@ func awsRestjson1_deserializeDocumentHealthCheckPolicy(v **types.HealthCheckPoli if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "port": @@ -8389,7 +8403,7 @@ func awsRestjson1_deserializeDocumentHealthCheckPolicy(v **types.HealthCheckPoli if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case "protocol": @@ -8411,7 +8425,7 @@ func awsRestjson1_deserializeDocumentHealthCheckPolicy(v **types.HealthCheckPoli if err != nil { return err } - sv.TimeoutMillis = &i64 + sv.TimeoutMillis = ptr.Int64(i64) } case "unhealthyThreshold": @@ -8424,7 +8438,7 @@ func awsRestjson1_deserializeDocumentHealthCheckPolicy(v **types.HealthCheckPoli if err != nil { return err } - sv.UnhealthyThreshold = ptr.Int32(int32(i64)) + sv.UnhealthyThreshold = int32(i64) } default: @@ -8541,7 +8555,7 @@ func awsRestjson1_deserializeDocumentHttpGatewayRouteMatch(v **types.HttpGateway if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } default: @@ -8590,7 +8604,7 @@ func awsRestjson1_deserializeDocumentHttpRetryPolicy(v **types.HttpRetryPolicy, if err != nil { return err } - sv.MaxRetries = &i64 + sv.MaxRetries = ptr.Int64(i64) } case "perRetryTimeout": @@ -8612,7 +8626,7 @@ func awsRestjson1_deserializeDocumentHttpRetryPolicy(v **types.HttpRetryPolicy, return nil } -func awsRestjson1_deserializeDocumentHttpRetryPolicyEvents(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentHttpRetryPolicyEvents(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8625,21 +8639,21 @@ func awsRestjson1_deserializeDocumentHttpRetryPolicyEvents(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HttpRetryPolicyEvent to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8763,7 +8777,7 @@ func awsRestjson1_deserializeDocumentHttpRouteHeader(v **types.HttpRouteHeader, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Invert = &jtv + sv.Invert = ptr.Bool(jtv) } case "match": @@ -8777,7 +8791,7 @@ func awsRestjson1_deserializeDocumentHttpRouteHeader(v **types.HttpRouteHeader, if !ok { return fmt.Errorf("expected HeaderName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8789,7 +8803,7 @@ func awsRestjson1_deserializeDocumentHttpRouteHeader(v **types.HttpRouteHeader, return nil } -func awsRestjson1_deserializeDocumentHttpRouteHeaders(v *[]*types.HttpRouteHeader, value interface{}) error { +func awsRestjson1_deserializeDocumentHttpRouteHeaders(v *[]types.HttpRouteHeader, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8802,18 +8816,20 @@ func awsRestjson1_deserializeDocumentHttpRouteHeaders(v *[]*types.HttpRouteHeade return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HttpRouteHeader + var cv []types.HttpRouteHeader if *v == nil { - cv = []*types.HttpRouteHeader{} + cv = []types.HttpRouteHeader{} } else { cv = *v } for _, value := range shape { - var col *types.HttpRouteHeader - if err := awsRestjson1_deserializeDocumentHttpRouteHeader(&col, value); err != nil { + var col types.HttpRouteHeader + destAddr := &col + if err := awsRestjson1_deserializeDocumentHttpRouteHeader(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8863,7 +8879,7 @@ func awsRestjson1_deserializeDocumentHttpRouteMatch(v **types.HttpRouteMatch, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } case "scheme": @@ -8953,7 +8969,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8993,7 +9009,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9056,7 +9072,7 @@ func awsRestjson1_deserializeDocumentListener(v **types.Listener, value interfac return nil } -func awsRestjson1_deserializeDocumentListeners(v *[]*types.Listener, value interface{}) error { +func awsRestjson1_deserializeDocumentListeners(v *[]types.Listener, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9069,18 +9085,20 @@ func awsRestjson1_deserializeDocumentListeners(v *[]*types.Listener, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Listener + var cv []types.Listener if *v == nil { - cv = []*types.Listener{} + cv = []types.Listener{} } else { cv = *v } for _, value := range shape { - var col *types.Listener - if err := awsRestjson1_deserializeDocumentListener(&col, value); err != nil { + var col types.Listener + destAddr := &col + if err := awsRestjson1_deserializeDocumentListener(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9106,34 +9124,42 @@ loop: for key, value := range shape { switch key { case "grpc": - var mv *types.GrpcTimeout - if err := awsRestjson1_deserializeDocumentGrpcTimeout(&mv, value); err != nil { + var mv types.GrpcTimeout + destAddr := &mv + if err := awsRestjson1_deserializeDocumentGrpcTimeout(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ListenerTimeoutMemberGrpc{Value: mv} break loop case "http": - var mv *types.HttpTimeout - if err := awsRestjson1_deserializeDocumentHttpTimeout(&mv, value); err != nil { + var mv types.HttpTimeout + destAddr := &mv + if err := awsRestjson1_deserializeDocumentHttpTimeout(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ListenerTimeoutMemberHttp{Value: mv} break loop case "http2": - var mv *types.HttpTimeout - if err := awsRestjson1_deserializeDocumentHttpTimeout(&mv, value); err != nil { + var mv types.HttpTimeout + destAddr := &mv + if err := awsRestjson1_deserializeDocumentHttpTimeout(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ListenerTimeoutMemberHttp2{Value: mv} break loop case "tcp": - var mv *types.TcpTimeout - if err := awsRestjson1_deserializeDocumentTcpTimeout(&mv, value); err != nil { + var mv types.TcpTimeout + destAddr := &mv + if err := awsRestjson1_deserializeDocumentTcpTimeout(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ListenerTimeoutMemberTcp{Value: mv} break loop @@ -9222,7 +9248,7 @@ func awsRestjson1_deserializeDocumentListenerTlsAcmCertificate(v **types.Listene if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } default: @@ -9252,18 +9278,22 @@ loop: for key, value := range shape { switch key { case "acm": - var mv *types.ListenerTlsAcmCertificate - if err := awsRestjson1_deserializeDocumentListenerTlsAcmCertificate(&mv, value); err != nil { + var mv types.ListenerTlsAcmCertificate + destAddr := &mv + if err := awsRestjson1_deserializeDocumentListenerTlsAcmCertificate(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ListenerTlsCertificateMemberAcm{Value: mv} break loop case "file": - var mv *types.ListenerTlsFileCertificate - if err := awsRestjson1_deserializeDocumentListenerTlsFileCertificate(&mv, value); err != nil { + var mv types.ListenerTlsFileCertificate + destAddr := &mv + if err := awsRestjson1_deserializeDocumentListenerTlsFileCertificate(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ListenerTlsCertificateMemberFile{Value: mv} break loop @@ -9307,7 +9337,7 @@ func awsRestjson1_deserializeDocumentListenerTlsFileCertificate(v **types.Listen if !ok { return fmt.Errorf("expected FilePath to be of type string, got %T instead", value) } - sv.CertificateChain = &jtv + sv.CertificateChain = ptr.String(jtv) } case "privateKey": @@ -9316,7 +9346,7 @@ func awsRestjson1_deserializeDocumentListenerTlsFileCertificate(v **types.Listen if !ok { return fmt.Errorf("expected FilePath to be of type string, got %T instead", value) } - sv.PrivateKey = &jtv + sv.PrivateKey = ptr.String(jtv) } default: @@ -9396,7 +9426,7 @@ func awsRestjson1_deserializeDocumentMatchRange(v **types.MatchRange, value inte if err != nil { return err } - sv.End = &i64 + sv.End = ptr.Int64(i64) } case "start": @@ -9409,7 +9439,7 @@ func awsRestjson1_deserializeDocumentMatchRange(v **types.MatchRange, value inte if err != nil { return err } - sv.Start = &i64 + sv.Start = ptr.Int64(i64) } default: @@ -9449,7 +9479,7 @@ func awsRestjson1_deserializeDocumentMeshData(v **types.MeshData, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "metadata": @@ -9476,7 +9506,7 @@ func awsRestjson1_deserializeDocumentMeshData(v **types.MeshData, value interfac return nil } -func awsRestjson1_deserializeDocumentMeshList(v *[]*types.MeshRef, value interface{}) error { +func awsRestjson1_deserializeDocumentMeshList(v *[]types.MeshRef, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9489,18 +9519,20 @@ func awsRestjson1_deserializeDocumentMeshList(v *[]*types.MeshRef, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MeshRef + var cv []types.MeshRef if *v == nil { - cv = []*types.MeshRef{} + cv = []types.MeshRef{} } else { cv = *v } for _, value := range shape { - var col *types.MeshRef - if err := awsRestjson1_deserializeDocumentMeshRef(&col, value); err != nil { + var col types.MeshRef + destAddr := &col + if err := awsRestjson1_deserializeDocumentMeshRef(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9536,7 +9568,7 @@ func awsRestjson1_deserializeDocumentMeshRef(v **types.MeshRef, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -9571,7 +9603,7 @@ func awsRestjson1_deserializeDocumentMeshRef(v **types.MeshRef, value interface{ if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "meshOwner": @@ -9580,7 +9612,7 @@ func awsRestjson1_deserializeDocumentMeshRef(v **types.MeshRef, value interface{ if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.MeshOwner = &jtv + sv.MeshOwner = ptr.String(jtv) } case "resourceOwner": @@ -9589,7 +9621,7 @@ func awsRestjson1_deserializeDocumentMeshRef(v **types.MeshRef, value interface{ if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.ResourceOwner = &jtv + sv.ResourceOwner = ptr.String(jtv) } case "version": @@ -9602,7 +9634,7 @@ func awsRestjson1_deserializeDocumentMeshRef(v **types.MeshRef, value interface{ if err != nil { return err } - sv.Version = &i64 + sv.Version = ptr.Int64(i64) } default: @@ -9718,7 +9750,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9762,7 +9794,7 @@ func awsRestjson1_deserializeDocumentPortMapping(v **types.PortMapping, value in if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case "protocol": @@ -9783,7 +9815,7 @@ func awsRestjson1_deserializeDocumentPortMapping(v **types.PortMapping, value in return nil } -func awsRestjson1_deserializeDocumentPortSet(v *[]*int32, value interface{}) error { +func awsRestjson1_deserializeDocumentPortSet(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9796,15 +9828,15 @@ func awsRestjson1_deserializeDocumentPortSet(v *[]*int32, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int32 + var cv []int32 if *v == nil { - cv = []*int32{} + cv = []int32{} } else { cv = *v } for _, value := range shape { - var col *int32 + var col int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -9814,7 +9846,7 @@ func awsRestjson1_deserializeDocumentPortSet(v *[]*int32, value interface{}) err if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } cv = append(cv, col) @@ -9851,7 +9883,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9891,7 +9923,7 @@ func awsRestjson1_deserializeDocumentResourceMetadata(v **types.ResourceMetadata if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -9926,7 +9958,7 @@ func awsRestjson1_deserializeDocumentResourceMetadata(v **types.ResourceMetadata if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.MeshOwner = &jtv + sv.MeshOwner = ptr.String(jtv) } case "resourceOwner": @@ -9935,7 +9967,7 @@ func awsRestjson1_deserializeDocumentResourceMetadata(v **types.ResourceMetadata if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.ResourceOwner = &jtv + sv.ResourceOwner = ptr.String(jtv) } case "uid": @@ -9944,7 +9976,7 @@ func awsRestjson1_deserializeDocumentResourceMetadata(v **types.ResourceMetadata if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Uid = &jtv + sv.Uid = ptr.String(jtv) } case "version": @@ -9957,7 +9989,7 @@ func awsRestjson1_deserializeDocumentResourceMetadata(v **types.ResourceMetadata if err != nil { return err } - sv.Version = &i64 + sv.Version = ptr.Int64(i64) } default: @@ -9997,7 +10029,7 @@ func awsRestjson1_deserializeDocumentRouteData(v **types.RouteData, value interf if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "metadata": @@ -10011,7 +10043,7 @@ func awsRestjson1_deserializeDocumentRouteData(v **types.RouteData, value interf if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.RouteName = &jtv + sv.RouteName = ptr.String(jtv) } case "spec": @@ -10030,7 +10062,7 @@ func awsRestjson1_deserializeDocumentRouteData(v **types.RouteData, value interf if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualRouterName = &jtv + sv.VirtualRouterName = ptr.String(jtv) } default: @@ -10042,7 +10074,7 @@ func awsRestjson1_deserializeDocumentRouteData(v **types.RouteData, value interf return nil } -func awsRestjson1_deserializeDocumentRouteList(v *[]*types.RouteRef, value interface{}) error { +func awsRestjson1_deserializeDocumentRouteList(v *[]types.RouteRef, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10055,18 +10087,20 @@ func awsRestjson1_deserializeDocumentRouteList(v *[]*types.RouteRef, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RouteRef + var cv []types.RouteRef if *v == nil { - cv = []*types.RouteRef{} + cv = []types.RouteRef{} } else { cv = *v } for _, value := range shape { - var col *types.RouteRef - if err := awsRestjson1_deserializeDocumentRouteRef(&col, value); err != nil { + var col types.RouteRef + destAddr := &col + if err := awsRestjson1_deserializeDocumentRouteRef(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10102,7 +10136,7 @@ func awsRestjson1_deserializeDocumentRouteRef(v **types.RouteRef, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -10137,7 +10171,7 @@ func awsRestjson1_deserializeDocumentRouteRef(v **types.RouteRef, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "meshOwner": @@ -10146,7 +10180,7 @@ func awsRestjson1_deserializeDocumentRouteRef(v **types.RouteRef, value interfac if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.MeshOwner = &jtv + sv.MeshOwner = ptr.String(jtv) } case "resourceOwner": @@ -10155,7 +10189,7 @@ func awsRestjson1_deserializeDocumentRouteRef(v **types.RouteRef, value interfac if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.ResourceOwner = &jtv + sv.ResourceOwner = ptr.String(jtv) } case "routeName": @@ -10164,7 +10198,7 @@ func awsRestjson1_deserializeDocumentRouteRef(v **types.RouteRef, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.RouteName = &jtv + sv.RouteName = ptr.String(jtv) } case "version": @@ -10177,7 +10211,7 @@ func awsRestjson1_deserializeDocumentRouteRef(v **types.RouteRef, value interfac if err != nil { return err } - sv.Version = &i64 + sv.Version = ptr.Int64(i64) } case "virtualRouterName": @@ -10186,7 +10220,7 @@ func awsRestjson1_deserializeDocumentRouteRef(v **types.RouteRef, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualRouterName = &jtv + sv.VirtualRouterName = ptr.String(jtv) } default: @@ -10320,18 +10354,22 @@ loop: for key, value := range shape { switch key { case "awsCloudMap": - var mv *types.AwsCloudMapServiceDiscovery - if err := awsRestjson1_deserializeDocumentAwsCloudMapServiceDiscovery(&mv, value); err != nil { + var mv types.AwsCloudMapServiceDiscovery + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAwsCloudMapServiceDiscovery(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ServiceDiscoveryMemberAwsCloudMap{Value: mv} break loop case "dns": - var mv *types.DnsServiceDiscovery - if err := awsRestjson1_deserializeDocumentDnsServiceDiscovery(&mv, value); err != nil { + var mv types.DnsServiceDiscovery + destAddr := &mv + if err := awsRestjson1_deserializeDocumentDnsServiceDiscovery(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ServiceDiscoveryMemberDns{Value: mv} break loop @@ -10375,7 +10413,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10387,7 +10425,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.TagRef, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.TagRef, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10400,18 +10438,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.TagRef, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TagRef + var cv []types.TagRef if *v == nil { - cv = []*types.TagRef{} + cv = []types.TagRef{} } else { cv = *v } for _, value := range shape { - var col *types.TagRef - if err := awsRestjson1_deserializeDocumentTagRef(&col, value); err != nil { + var col types.TagRef + destAddr := &col + if err := awsRestjson1_deserializeDocumentTagRef(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10447,7 +10487,7 @@ func awsRestjson1_deserializeDocumentTagRef(v **types.TagRef, value interface{}) if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -10456,7 +10496,7 @@ func awsRestjson1_deserializeDocumentTagRef(v **types.TagRef, value interface{}) if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -10717,7 +10757,7 @@ func awsRestjson1_deserializeDocumentTlsValidationContextFileTrust(v **types.Tls if !ok { return fmt.Errorf("expected FilePath to be of type string, got %T instead", value) } - sv.CertificateChain = &jtv + sv.CertificateChain = ptr.String(jtv) } default: @@ -10747,18 +10787,22 @@ loop: for key, value := range shape { switch key { case "acm": - var mv *types.TlsValidationContextAcmTrust - if err := awsRestjson1_deserializeDocumentTlsValidationContextAcmTrust(&mv, value); err != nil { + var mv types.TlsValidationContextAcmTrust + destAddr := &mv + if err := awsRestjson1_deserializeDocumentTlsValidationContextAcmTrust(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.TlsValidationContextTrustMemberAcm{Value: mv} break loop case "file": - var mv *types.TlsValidationContextFileTrust - if err := awsRestjson1_deserializeDocumentTlsValidationContextFileTrust(&mv, value); err != nil { + var mv types.TlsValidationContextFileTrust + destAddr := &mv + if err := awsRestjson1_deserializeDocumentTlsValidationContextFileTrust(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.TlsValidationContextTrustMemberFile{Value: mv} break loop @@ -10802,7 +10846,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10842,7 +10886,7 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10872,10 +10916,12 @@ loop: for key, value := range shape { switch key { case "file": - var mv *types.VirtualGatewayFileAccessLog - if err := awsRestjson1_deserializeDocumentVirtualGatewayFileAccessLog(&mv, value); err != nil { + var mv types.VirtualGatewayFileAccessLog + destAddr := &mv + if err := awsRestjson1_deserializeDocumentVirtualGatewayFileAccessLog(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.VirtualGatewayAccessLogMemberFile{Value: mv} break loop @@ -10927,7 +10973,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayBackendDefaults(v **types.Vir return nil } -func awsRestjson1_deserializeDocumentVirtualGatewayCertificateAuthorityArns(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentVirtualGatewayCertificateAuthorityArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10940,21 +10986,21 @@ func awsRestjson1_deserializeDocumentVirtualGatewayCertificateAuthorityArns(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -11027,7 +11073,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayClientPolicyTls(v **types.Vir if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enforce = &jtv + sv.Enforce = ptr.Bool(jtv) } case "ports": @@ -11077,7 +11123,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayData(v **types.VirtualGateway if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "metadata": @@ -11101,7 +11147,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayData(v **types.VirtualGateway if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualGatewayName = &jtv + sv.VirtualGatewayName = ptr.String(jtv) } default: @@ -11141,7 +11187,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayFileAccessLog(v **types.Virtu if !ok { return fmt.Errorf("expected FilePath to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } default: @@ -11185,7 +11231,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayHealthCheckPolicy(v **types.V if err != nil { return err } - sv.HealthyThreshold = ptr.Int32(int32(i64)) + sv.HealthyThreshold = int32(i64) } case "intervalMillis": @@ -11198,7 +11244,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayHealthCheckPolicy(v **types.V if err != nil { return err } - sv.IntervalMillis = &i64 + sv.IntervalMillis = ptr.Int64(i64) } case "path": @@ -11207,7 +11253,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayHealthCheckPolicy(v **types.V if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "port": @@ -11220,7 +11266,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayHealthCheckPolicy(v **types.V if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case "protocol": @@ -11242,7 +11288,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayHealthCheckPolicy(v **types.V if err != nil { return err } - sv.TimeoutMillis = &i64 + sv.TimeoutMillis = ptr.Int64(i64) } case "unhealthyThreshold": @@ -11255,7 +11301,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayHealthCheckPolicy(v **types.V if err != nil { return err } - sv.UnhealthyThreshold = ptr.Int32(int32(i64)) + sv.UnhealthyThreshold = int32(i64) } default: @@ -11267,7 +11313,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayHealthCheckPolicy(v **types.V return nil } -func awsRestjson1_deserializeDocumentVirtualGatewayList(v *[]*types.VirtualGatewayRef, value interface{}) error { +func awsRestjson1_deserializeDocumentVirtualGatewayList(v *[]types.VirtualGatewayRef, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11280,18 +11326,20 @@ func awsRestjson1_deserializeDocumentVirtualGatewayList(v *[]*types.VirtualGatew return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VirtualGatewayRef + var cv []types.VirtualGatewayRef if *v == nil { - cv = []*types.VirtualGatewayRef{} + cv = []types.VirtualGatewayRef{} } else { cv = *v } for _, value := range shape { - var col *types.VirtualGatewayRef - if err := awsRestjson1_deserializeDocumentVirtualGatewayRef(&col, value); err != nil { + var col types.VirtualGatewayRef + destAddr := &col + if err := awsRestjson1_deserializeDocumentVirtualGatewayRef(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11345,7 +11393,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayListener(v **types.VirtualGat return nil } -func awsRestjson1_deserializeDocumentVirtualGatewayListeners(v *[]*types.VirtualGatewayListener, value interface{}) error { +func awsRestjson1_deserializeDocumentVirtualGatewayListeners(v *[]types.VirtualGatewayListener, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11358,18 +11406,20 @@ func awsRestjson1_deserializeDocumentVirtualGatewayListeners(v *[]*types.Virtual return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VirtualGatewayListener + var cv []types.VirtualGatewayListener if *v == nil { - cv = []*types.VirtualGatewayListener{} + cv = []types.VirtualGatewayListener{} } else { cv = *v } for _, value := range shape { - var col *types.VirtualGatewayListener - if err := awsRestjson1_deserializeDocumentVirtualGatewayListener(&col, value); err != nil { + var col types.VirtualGatewayListener + destAddr := &col + if err := awsRestjson1_deserializeDocumentVirtualGatewayListener(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11450,7 +11500,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayListenerTlsAcmCertificate(v * if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } default: @@ -11480,18 +11530,22 @@ loop: for key, value := range shape { switch key { case "acm": - var mv *types.VirtualGatewayListenerTlsAcmCertificate - if err := awsRestjson1_deserializeDocumentVirtualGatewayListenerTlsAcmCertificate(&mv, value); err != nil { + var mv types.VirtualGatewayListenerTlsAcmCertificate + destAddr := &mv + if err := awsRestjson1_deserializeDocumentVirtualGatewayListenerTlsAcmCertificate(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.VirtualGatewayListenerTlsCertificateMemberAcm{Value: mv} break loop case "file": - var mv *types.VirtualGatewayListenerTlsFileCertificate - if err := awsRestjson1_deserializeDocumentVirtualGatewayListenerTlsFileCertificate(&mv, value); err != nil { + var mv types.VirtualGatewayListenerTlsFileCertificate + destAddr := &mv + if err := awsRestjson1_deserializeDocumentVirtualGatewayListenerTlsFileCertificate(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.VirtualGatewayListenerTlsCertificateMemberFile{Value: mv} break loop @@ -11535,7 +11589,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayListenerTlsFileCertificate(v if !ok { return fmt.Errorf("expected FilePath to be of type string, got %T instead", value) } - sv.CertificateChain = &jtv + sv.CertificateChain = ptr.String(jtv) } case "privateKey": @@ -11544,7 +11598,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayListenerTlsFileCertificate(v if !ok { return fmt.Errorf("expected FilePath to be of type string, got %T instead", value) } - sv.PrivateKey = &jtv + sv.PrivateKey = ptr.String(jtv) } default: @@ -11624,7 +11678,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayPortMapping(v **types.Virtual if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case "protocol": @@ -11673,7 +11727,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayRef(v **types.VirtualGatewayR if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -11708,7 +11762,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayRef(v **types.VirtualGatewayR if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "meshOwner": @@ -11717,7 +11771,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayRef(v **types.VirtualGatewayR if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.MeshOwner = &jtv + sv.MeshOwner = ptr.String(jtv) } case "resourceOwner": @@ -11726,7 +11780,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayRef(v **types.VirtualGatewayR if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.ResourceOwner = &jtv + sv.ResourceOwner = ptr.String(jtv) } case "version": @@ -11739,7 +11793,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayRef(v **types.VirtualGatewayR if err != nil { return err } - sv.Version = &i64 + sv.Version = ptr.Int64(i64) } case "virtualGatewayName": @@ -11748,7 +11802,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayRef(v **types.VirtualGatewayR if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualGatewayName = &jtv + sv.VirtualGatewayName = ptr.String(jtv) } default: @@ -11946,7 +12000,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayTlsValidationContextFileTrust if !ok { return fmt.Errorf("expected FilePath to be of type string, got %T instead", value) } - sv.CertificateChain = &jtv + sv.CertificateChain = ptr.String(jtv) } default: @@ -11976,18 +12030,22 @@ loop: for key, value := range shape { switch key { case "acm": - var mv *types.VirtualGatewayTlsValidationContextAcmTrust - if err := awsRestjson1_deserializeDocumentVirtualGatewayTlsValidationContextAcmTrust(&mv, value); err != nil { + var mv types.VirtualGatewayTlsValidationContextAcmTrust + destAddr := &mv + if err := awsRestjson1_deserializeDocumentVirtualGatewayTlsValidationContextAcmTrust(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.VirtualGatewayTlsValidationContextTrustMemberAcm{Value: mv} break loop case "file": - var mv *types.VirtualGatewayTlsValidationContextFileTrust - if err := awsRestjson1_deserializeDocumentVirtualGatewayTlsValidationContextFileTrust(&mv, value); err != nil { + var mv types.VirtualGatewayTlsValidationContextFileTrust + destAddr := &mv + if err := awsRestjson1_deserializeDocumentVirtualGatewayTlsValidationContextFileTrust(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.VirtualGatewayTlsValidationContextTrustMemberFile{Value: mv} break loop @@ -12031,7 +12089,7 @@ func awsRestjson1_deserializeDocumentVirtualNodeData(v **types.VirtualNodeData, if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "metadata": @@ -12055,7 +12113,7 @@ func awsRestjson1_deserializeDocumentVirtualNodeData(v **types.VirtualNodeData, if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualNodeName = &jtv + sv.VirtualNodeName = ptr.String(jtv) } default: @@ -12067,7 +12125,7 @@ func awsRestjson1_deserializeDocumentVirtualNodeData(v **types.VirtualNodeData, return nil } -func awsRestjson1_deserializeDocumentVirtualNodeList(v *[]*types.VirtualNodeRef, value interface{}) error { +func awsRestjson1_deserializeDocumentVirtualNodeList(v *[]types.VirtualNodeRef, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12080,18 +12138,20 @@ func awsRestjson1_deserializeDocumentVirtualNodeList(v *[]*types.VirtualNodeRef, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VirtualNodeRef + var cv []types.VirtualNodeRef if *v == nil { - cv = []*types.VirtualNodeRef{} + cv = []types.VirtualNodeRef{} } else { cv = *v } for _, value := range shape { - var col *types.VirtualNodeRef - if err := awsRestjson1_deserializeDocumentVirtualNodeRef(&col, value); err != nil { + var col types.VirtualNodeRef + destAddr := &col + if err := awsRestjson1_deserializeDocumentVirtualNodeRef(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12127,7 +12187,7 @@ func awsRestjson1_deserializeDocumentVirtualNodeRef(v **types.VirtualNodeRef, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -12162,7 +12222,7 @@ func awsRestjson1_deserializeDocumentVirtualNodeRef(v **types.VirtualNodeRef, va if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "meshOwner": @@ -12171,7 +12231,7 @@ func awsRestjson1_deserializeDocumentVirtualNodeRef(v **types.VirtualNodeRef, va if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.MeshOwner = &jtv + sv.MeshOwner = ptr.String(jtv) } case "resourceOwner": @@ -12180,7 +12240,7 @@ func awsRestjson1_deserializeDocumentVirtualNodeRef(v **types.VirtualNodeRef, va if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.ResourceOwner = &jtv + sv.ResourceOwner = ptr.String(jtv) } case "version": @@ -12193,7 +12253,7 @@ func awsRestjson1_deserializeDocumentVirtualNodeRef(v **types.VirtualNodeRef, va if err != nil { return err } - sv.Version = &i64 + sv.Version = ptr.Int64(i64) } case "virtualNodeName": @@ -12202,7 +12262,7 @@ func awsRestjson1_deserializeDocumentVirtualNodeRef(v **types.VirtualNodeRef, va if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualNodeName = &jtv + sv.VirtualNodeName = ptr.String(jtv) } default: @@ -12242,7 +12302,7 @@ func awsRestjson1_deserializeDocumentVirtualNodeServiceProvider(v **types.Virtua if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualNodeName = &jtv + sv.VirtualNodeName = ptr.String(jtv) } default: @@ -12378,7 +12438,7 @@ func awsRestjson1_deserializeDocumentVirtualRouterData(v **types.VirtualRouterDa if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "metadata": @@ -12402,7 +12462,7 @@ func awsRestjson1_deserializeDocumentVirtualRouterData(v **types.VirtualRouterDa if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualRouterName = &jtv + sv.VirtualRouterName = ptr.String(jtv) } default: @@ -12414,7 +12474,7 @@ func awsRestjson1_deserializeDocumentVirtualRouterData(v **types.VirtualRouterDa return nil } -func awsRestjson1_deserializeDocumentVirtualRouterList(v *[]*types.VirtualRouterRef, value interface{}) error { +func awsRestjson1_deserializeDocumentVirtualRouterList(v *[]types.VirtualRouterRef, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12427,18 +12487,20 @@ func awsRestjson1_deserializeDocumentVirtualRouterList(v *[]*types.VirtualRouter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VirtualRouterRef + var cv []types.VirtualRouterRef if *v == nil { - cv = []*types.VirtualRouterRef{} + cv = []types.VirtualRouterRef{} } else { cv = *v } for _, value := range shape { - var col *types.VirtualRouterRef - if err := awsRestjson1_deserializeDocumentVirtualRouterRef(&col, value); err != nil { + var col types.VirtualRouterRef + destAddr := &col + if err := awsRestjson1_deserializeDocumentVirtualRouterRef(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12482,7 +12544,7 @@ func awsRestjson1_deserializeDocumentVirtualRouterListener(v **types.VirtualRout return nil } -func awsRestjson1_deserializeDocumentVirtualRouterListeners(v *[]*types.VirtualRouterListener, value interface{}) error { +func awsRestjson1_deserializeDocumentVirtualRouterListeners(v *[]types.VirtualRouterListener, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12495,18 +12557,20 @@ func awsRestjson1_deserializeDocumentVirtualRouterListeners(v *[]*types.VirtualR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VirtualRouterListener + var cv []types.VirtualRouterListener if *v == nil { - cv = []*types.VirtualRouterListener{} + cv = []types.VirtualRouterListener{} } else { cv = *v } for _, value := range shape { - var col *types.VirtualRouterListener - if err := awsRestjson1_deserializeDocumentVirtualRouterListener(&col, value); err != nil { + var col types.VirtualRouterListener + destAddr := &col + if err := awsRestjson1_deserializeDocumentVirtualRouterListener(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12542,7 +12606,7 @@ func awsRestjson1_deserializeDocumentVirtualRouterRef(v **types.VirtualRouterRef if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -12577,7 +12641,7 @@ func awsRestjson1_deserializeDocumentVirtualRouterRef(v **types.VirtualRouterRef if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "meshOwner": @@ -12586,7 +12650,7 @@ func awsRestjson1_deserializeDocumentVirtualRouterRef(v **types.VirtualRouterRef if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.MeshOwner = &jtv + sv.MeshOwner = ptr.String(jtv) } case "resourceOwner": @@ -12595,7 +12659,7 @@ func awsRestjson1_deserializeDocumentVirtualRouterRef(v **types.VirtualRouterRef if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.ResourceOwner = &jtv + sv.ResourceOwner = ptr.String(jtv) } case "version": @@ -12608,7 +12672,7 @@ func awsRestjson1_deserializeDocumentVirtualRouterRef(v **types.VirtualRouterRef if err != nil { return err } - sv.Version = &i64 + sv.Version = ptr.Int64(i64) } case "virtualRouterName": @@ -12617,7 +12681,7 @@ func awsRestjson1_deserializeDocumentVirtualRouterRef(v **types.VirtualRouterRef if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualRouterName = &jtv + sv.VirtualRouterName = ptr.String(jtv) } default: @@ -12657,7 +12721,7 @@ func awsRestjson1_deserializeDocumentVirtualRouterServiceProvider(v **types.Virt if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualRouterName = &jtv + sv.VirtualRouterName = ptr.String(jtv) } default: @@ -12778,7 +12842,7 @@ func awsRestjson1_deserializeDocumentVirtualServiceBackend(v **types.VirtualServ if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.VirtualServiceName = &jtv + sv.VirtualServiceName = ptr.String(jtv) } default: @@ -12818,7 +12882,7 @@ func awsRestjson1_deserializeDocumentVirtualServiceData(v **types.VirtualService if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "metadata": @@ -12842,7 +12906,7 @@ func awsRestjson1_deserializeDocumentVirtualServiceData(v **types.VirtualService if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.VirtualServiceName = &jtv + sv.VirtualServiceName = ptr.String(jtv) } default: @@ -12854,7 +12918,7 @@ func awsRestjson1_deserializeDocumentVirtualServiceData(v **types.VirtualService return nil } -func awsRestjson1_deserializeDocumentVirtualServiceList(v *[]*types.VirtualServiceRef, value interface{}) error { +func awsRestjson1_deserializeDocumentVirtualServiceList(v *[]types.VirtualServiceRef, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12867,18 +12931,20 @@ func awsRestjson1_deserializeDocumentVirtualServiceList(v *[]*types.VirtualServi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VirtualServiceRef + var cv []types.VirtualServiceRef if *v == nil { - cv = []*types.VirtualServiceRef{} + cv = []types.VirtualServiceRef{} } else { cv = *v } for _, value := range shape { - var col *types.VirtualServiceRef - if err := awsRestjson1_deserializeDocumentVirtualServiceRef(&col, value); err != nil { + var col types.VirtualServiceRef + destAddr := &col + if err := awsRestjson1_deserializeDocumentVirtualServiceRef(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12904,18 +12970,22 @@ loop: for key, value := range shape { switch key { case "virtualNode": - var mv *types.VirtualNodeServiceProvider - if err := awsRestjson1_deserializeDocumentVirtualNodeServiceProvider(&mv, value); err != nil { + var mv types.VirtualNodeServiceProvider + destAddr := &mv + if err := awsRestjson1_deserializeDocumentVirtualNodeServiceProvider(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.VirtualServiceProviderMemberVirtualNode{Value: mv} break loop case "virtualRouter": - var mv *types.VirtualRouterServiceProvider - if err := awsRestjson1_deserializeDocumentVirtualRouterServiceProvider(&mv, value); err != nil { + var mv types.VirtualRouterServiceProvider + destAddr := &mv + if err := awsRestjson1_deserializeDocumentVirtualRouterServiceProvider(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.VirtualServiceProviderMemberVirtualRouter{Value: mv} break loop @@ -12959,7 +13029,7 @@ func awsRestjson1_deserializeDocumentVirtualServiceRef(v **types.VirtualServiceR if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -12994,7 +13064,7 @@ func awsRestjson1_deserializeDocumentVirtualServiceRef(v **types.VirtualServiceR if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.MeshName = &jtv + sv.MeshName = ptr.String(jtv) } case "meshOwner": @@ -13003,7 +13073,7 @@ func awsRestjson1_deserializeDocumentVirtualServiceRef(v **types.VirtualServiceR if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.MeshOwner = &jtv + sv.MeshOwner = ptr.String(jtv) } case "resourceOwner": @@ -13012,7 +13082,7 @@ func awsRestjson1_deserializeDocumentVirtualServiceRef(v **types.VirtualServiceR if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.ResourceOwner = &jtv + sv.ResourceOwner = ptr.String(jtv) } case "version": @@ -13025,7 +13095,7 @@ func awsRestjson1_deserializeDocumentVirtualServiceRef(v **types.VirtualServiceR if err != nil { return err } - sv.Version = &i64 + sv.Version = ptr.Int64(i64) } case "virtualServiceName": @@ -13034,7 +13104,7 @@ func awsRestjson1_deserializeDocumentVirtualServiceRef(v **types.VirtualServiceR if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.VirtualServiceName = &jtv + sv.VirtualServiceName = ptr.String(jtv) } default: @@ -13150,7 +13220,7 @@ func awsRestjson1_deserializeDocumentWeightedTarget(v **types.WeightedTarget, va if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.VirtualNode = &jtv + sv.VirtualNode = ptr.String(jtv) } case "weight": @@ -13163,7 +13233,7 @@ func awsRestjson1_deserializeDocumentWeightedTarget(v **types.WeightedTarget, va if err != nil { return err } - sv.Weight = ptr.Int32(int32(i64)) + sv.Weight = int32(i64) } default: @@ -13175,7 +13245,7 @@ func awsRestjson1_deserializeDocumentWeightedTarget(v **types.WeightedTarget, va return nil } -func awsRestjson1_deserializeDocumentWeightedTargets(v *[]*types.WeightedTarget, value interface{}) error { +func awsRestjson1_deserializeDocumentWeightedTargets(v *[]types.WeightedTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13188,18 +13258,20 @@ func awsRestjson1_deserializeDocumentWeightedTargets(v *[]*types.WeightedTarget, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WeightedTarget + var cv []types.WeightedTarget if *v == nil { - cv = []*types.WeightedTarget{} + cv = []types.WeightedTarget{} } else { cv = *v } for _, value := range shape { - var col *types.WeightedTarget - if err := awsRestjson1_deserializeDocumentWeightedTarget(&col, value); err != nil { + var col types.WeightedTarget + destAddr := &col + if err := awsRestjson1_deserializeDocumentWeightedTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/appmesh/go.mod b/service/appmesh/go.mod index 46041c4c7e2..b0f068a82f8 100644 --- a/service/appmesh/go.mod +++ b/service/appmesh/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/appmesh go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/appmesh/serializers.go b/service/appmesh/serializers.go index 18f93c3ca34..e49df704a17 100644 --- a/service/appmesh/serializers.go +++ b/service/appmesh/serializers.go @@ -76,13 +76,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateGatewayRouteInput(v *CreateGatewa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -92,13 +89,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateGatewayRouteInput(v *CreateGatewa encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualGatewayName == nil { + if v.VirtualGatewayName == nil || len(*v.VirtualGatewayName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} } if v.VirtualGatewayName != nil { - if len(*v.VirtualGatewayName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} - } if err := encoder.SetURI("virtualGatewayName").String(*v.VirtualGatewayName); err != nil { return err } @@ -292,13 +286,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateRouteInput(v *CreateRouteInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -308,13 +299,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateRouteInput(v *CreateRouteInput, e encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualRouterName == nil { + if v.VirtualRouterName == nil || len(*v.VirtualRouterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} } if v.VirtualRouterName != nil { - if len(*v.VirtualRouterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} - } if err := encoder.SetURI("virtualRouterName").String(*v.VirtualRouterName); err != nil { return err } @@ -416,13 +404,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateVirtualGatewayInput(v *CreateVirt return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -528,13 +513,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateVirtualNodeInput(v *CreateVirtual return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -640,13 +622,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateVirtualRouterInput(v *CreateVirtu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -752,13 +731,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateVirtualServiceInput(v *CreateVirt return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -853,25 +829,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteGatewayRouteInput(v *DeleteGatewa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GatewayRouteName == nil { + if v.GatewayRouteName == nil || len(*v.GatewayRouteName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayRouteName must not be empty")} } if v.GatewayRouteName != nil { - if len(*v.GatewayRouteName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayRouteName must not be empty")} - } if err := encoder.SetURI("gatewayRouteName").String(*v.GatewayRouteName); err != nil { return err } } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -881,13 +851,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteGatewayRouteInput(v *DeleteGatewa encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualGatewayName == nil { + if v.VirtualGatewayName == nil || len(*v.VirtualGatewayName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} } if v.VirtualGatewayName != nil { - if len(*v.VirtualGatewayName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} - } if err := encoder.SetURI("virtualGatewayName").String(*v.VirtualGatewayName); err != nil { return err } @@ -947,13 +914,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMeshInput(v *DeleteMeshInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -1013,13 +977,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRouteInput(v *DeleteRouteInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -1029,25 +990,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRouteInput(v *DeleteRouteInput, e encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.RouteName == nil { + if v.RouteName == nil || len(*v.RouteName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member routeName must not be empty")} } if v.RouteName != nil { - if len(*v.RouteName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member routeName must not be empty")} - } if err := encoder.SetURI("routeName").String(*v.RouteName); err != nil { return err } } - if v.VirtualRouterName == nil { + if v.VirtualRouterName == nil || len(*v.VirtualRouterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} } if v.VirtualRouterName != nil { - if len(*v.VirtualRouterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} - } if err := encoder.SetURI("virtualRouterName").String(*v.VirtualRouterName); err != nil { return err } @@ -1107,13 +1062,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVirtualGatewayInput(v *DeleteVirt return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -1123,13 +1075,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVirtualGatewayInput(v *DeleteVirt encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualGatewayName == nil { + if v.VirtualGatewayName == nil || len(*v.VirtualGatewayName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} } if v.VirtualGatewayName != nil { - if len(*v.VirtualGatewayName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} - } if err := encoder.SetURI("virtualGatewayName").String(*v.VirtualGatewayName); err != nil { return err } @@ -1189,13 +1138,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVirtualNodeInput(v *DeleteVirtual return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -1205,13 +1151,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVirtualNodeInput(v *DeleteVirtual encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualNodeName == nil { + if v.VirtualNodeName == nil || len(*v.VirtualNodeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualNodeName must not be empty")} } if v.VirtualNodeName != nil { - if len(*v.VirtualNodeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualNodeName must not be empty")} - } if err := encoder.SetURI("virtualNodeName").String(*v.VirtualNodeName); err != nil { return err } @@ -1271,13 +1214,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVirtualRouterInput(v *DeleteVirtu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -1287,13 +1227,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVirtualRouterInput(v *DeleteVirtu encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualRouterName == nil { + if v.VirtualRouterName == nil || len(*v.VirtualRouterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} } if v.VirtualRouterName != nil { - if len(*v.VirtualRouterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} - } if err := encoder.SetURI("virtualRouterName").String(*v.VirtualRouterName); err != nil { return err } @@ -1353,13 +1290,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVirtualServiceInput(v *DeleteVirt return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -1369,13 +1303,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVirtualServiceInput(v *DeleteVirt encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualServiceName == nil { + if v.VirtualServiceName == nil || len(*v.VirtualServiceName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualServiceName must not be empty")} } if v.VirtualServiceName != nil { - if len(*v.VirtualServiceName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualServiceName must not be empty")} - } if err := encoder.SetURI("virtualServiceName").String(*v.VirtualServiceName); err != nil { return err } @@ -1435,25 +1366,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeGatewayRouteInput(v *DescribeGa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GatewayRouteName == nil { + if v.GatewayRouteName == nil || len(*v.GatewayRouteName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayRouteName must not be empty")} } if v.GatewayRouteName != nil { - if len(*v.GatewayRouteName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayRouteName must not be empty")} - } if err := encoder.SetURI("gatewayRouteName").String(*v.GatewayRouteName); err != nil { return err } } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -1463,13 +1388,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeGatewayRouteInput(v *DescribeGa encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualGatewayName == nil { + if v.VirtualGatewayName == nil || len(*v.VirtualGatewayName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} } if v.VirtualGatewayName != nil { - if len(*v.VirtualGatewayName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} - } if err := encoder.SetURI("virtualGatewayName").String(*v.VirtualGatewayName); err != nil { return err } @@ -1529,13 +1451,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeMeshInput(v *DescribeMeshInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -1599,13 +1518,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeRouteInput(v *DescribeRouteInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -1615,25 +1531,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeRouteInput(v *DescribeRouteInpu encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.RouteName == nil { + if v.RouteName == nil || len(*v.RouteName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member routeName must not be empty")} } if v.RouteName != nil { - if len(*v.RouteName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member routeName must not be empty")} - } if err := encoder.SetURI("routeName").String(*v.RouteName); err != nil { return err } } - if v.VirtualRouterName == nil { + if v.VirtualRouterName == nil || len(*v.VirtualRouterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} } if v.VirtualRouterName != nil { - if len(*v.VirtualRouterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} - } if err := encoder.SetURI("virtualRouterName").String(*v.VirtualRouterName); err != nil { return err } @@ -1693,13 +1603,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeVirtualGatewayInput(v *Describe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -1709,13 +1616,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeVirtualGatewayInput(v *Describe encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualGatewayName == nil { + if v.VirtualGatewayName == nil || len(*v.VirtualGatewayName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} } if v.VirtualGatewayName != nil { - if len(*v.VirtualGatewayName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} - } if err := encoder.SetURI("virtualGatewayName").String(*v.VirtualGatewayName); err != nil { return err } @@ -1775,13 +1679,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeVirtualNodeInput(v *DescribeVir return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -1791,13 +1692,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeVirtualNodeInput(v *DescribeVir encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualNodeName == nil { + if v.VirtualNodeName == nil || len(*v.VirtualNodeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualNodeName must not be empty")} } if v.VirtualNodeName != nil { - if len(*v.VirtualNodeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualNodeName must not be empty")} - } if err := encoder.SetURI("virtualNodeName").String(*v.VirtualNodeName); err != nil { return err } @@ -1857,13 +1755,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeVirtualRouterInput(v *DescribeV return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -1873,13 +1768,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeVirtualRouterInput(v *DescribeV encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualRouterName == nil { + if v.VirtualRouterName == nil || len(*v.VirtualRouterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} } if v.VirtualRouterName != nil { - if len(*v.VirtualRouterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} - } if err := encoder.SetURI("virtualRouterName").String(*v.VirtualRouterName); err != nil { return err } @@ -1939,13 +1831,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeVirtualServiceInput(v *Describe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -1955,13 +1844,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeVirtualServiceInput(v *Describe encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualServiceName == nil { + if v.VirtualServiceName == nil || len(*v.VirtualServiceName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualServiceName must not be empty")} } if v.VirtualServiceName != nil { - if len(*v.VirtualServiceName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualServiceName must not be empty")} - } if err := encoder.SetURI("virtualServiceName").String(*v.VirtualServiceName); err != nil { return err } @@ -2025,13 +1911,10 @@ func awsRestjson1_serializeOpHttpBindingsListGatewayRoutesInput(v *ListGatewayRo encoder.SetQuery("limit").Integer(*v.Limit) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -2045,13 +1928,10 @@ func awsRestjson1_serializeOpHttpBindingsListGatewayRoutesInput(v *ListGatewayRo encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.VirtualGatewayName == nil { + if v.VirtualGatewayName == nil || len(*v.VirtualGatewayName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} } if v.VirtualGatewayName != nil { - if len(*v.VirtualGatewayName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} - } if err := encoder.SetURI("virtualGatewayName").String(*v.VirtualGatewayName); err != nil { return err } @@ -2177,13 +2057,10 @@ func awsRestjson1_serializeOpHttpBindingsListRoutesInput(v *ListRoutesInput, enc encoder.SetQuery("limit").Integer(*v.Limit) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -2197,13 +2074,10 @@ func awsRestjson1_serializeOpHttpBindingsListRoutesInput(v *ListRoutesInput, enc encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.VirtualRouterName == nil { + if v.VirtualRouterName == nil || len(*v.VirtualRouterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} } if v.VirtualRouterName != nil { - if len(*v.VirtualRouterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} - } if err := encoder.SetURI("virtualRouterName").String(*v.VirtualRouterName); err != nil { return err } @@ -2333,13 +2207,10 @@ func awsRestjson1_serializeOpHttpBindingsListVirtualGatewaysInput(v *ListVirtual encoder.SetQuery("limit").Integer(*v.Limit) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -2411,13 +2282,10 @@ func awsRestjson1_serializeOpHttpBindingsListVirtualNodesInput(v *ListVirtualNod encoder.SetQuery("limit").Integer(*v.Limit) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -2489,13 +2357,10 @@ func awsRestjson1_serializeOpHttpBindingsListVirtualRoutersInput(v *ListVirtualR encoder.SetQuery("limit").Integer(*v.Limit) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -2567,13 +2432,10 @@ func awsRestjson1_serializeOpHttpBindingsListVirtualServicesInput(v *ListVirtual encoder.SetQuery("limit").Integer(*v.Limit) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -2818,25 +2680,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateGatewayRouteInput(v *UpdateGatewa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GatewayRouteName == nil { + if v.GatewayRouteName == nil || len(*v.GatewayRouteName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayRouteName must not be empty")} } if v.GatewayRouteName != nil { - if len(*v.GatewayRouteName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayRouteName must not be empty")} - } if err := encoder.SetURI("gatewayRouteName").String(*v.GatewayRouteName); err != nil { return err } } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -2846,13 +2702,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateGatewayRouteInput(v *UpdateGatewa encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualGatewayName == nil { + if v.VirtualGatewayName == nil || len(*v.VirtualGatewayName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} } if v.VirtualGatewayName != nil { - if len(*v.VirtualGatewayName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} - } if err := encoder.SetURI("virtualGatewayName").String(*v.VirtualGatewayName); err != nil { return err } @@ -2942,13 +2795,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateMeshInput(v *UpdateMeshInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -3038,13 +2888,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRouteInput(v *UpdateRouteInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -3054,25 +2901,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRouteInput(v *UpdateRouteInput, e encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.RouteName == nil { + if v.RouteName == nil || len(*v.RouteName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member routeName must not be empty")} } if v.RouteName != nil { - if len(*v.RouteName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member routeName must not be empty")} - } if err := encoder.SetURI("routeName").String(*v.RouteName); err != nil { return err } } - if v.VirtualRouterName == nil { + if v.VirtualRouterName == nil || len(*v.VirtualRouterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} } if v.VirtualRouterName != nil { - if len(*v.VirtualRouterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} - } if err := encoder.SetURI("virtualRouterName").String(*v.VirtualRouterName); err != nil { return err } @@ -3162,13 +3003,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVirtualGatewayInput(v *UpdateVirt return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -3178,13 +3016,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVirtualGatewayInput(v *UpdateVirt encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualGatewayName == nil { + if v.VirtualGatewayName == nil || len(*v.VirtualGatewayName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} } if v.VirtualGatewayName != nil { - if len(*v.VirtualGatewayName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualGatewayName must not be empty")} - } if err := encoder.SetURI("virtualGatewayName").String(*v.VirtualGatewayName); err != nil { return err } @@ -3274,13 +3109,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVirtualNodeInput(v *UpdateVirtual return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -3290,13 +3122,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVirtualNodeInput(v *UpdateVirtual encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualNodeName == nil { + if v.VirtualNodeName == nil || len(*v.VirtualNodeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualNodeName must not be empty")} } if v.VirtualNodeName != nil { - if len(*v.VirtualNodeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualNodeName must not be empty")} - } if err := encoder.SetURI("virtualNodeName").String(*v.VirtualNodeName); err != nil { return err } @@ -3386,13 +3215,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVirtualRouterInput(v *UpdateVirtu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -3402,13 +3228,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVirtualRouterInput(v *UpdateVirtu encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualRouterName == nil { + if v.VirtualRouterName == nil || len(*v.VirtualRouterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} } if v.VirtualRouterName != nil { - if len(*v.VirtualRouterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualRouterName must not be empty")} - } if err := encoder.SetURI("virtualRouterName").String(*v.VirtualRouterName); err != nil { return err } @@ -3498,13 +3321,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVirtualServiceInput(v *UpdateVirt return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeshName == nil { + if v.MeshName == nil || len(*v.MeshName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} } if v.MeshName != nil { - if len(*v.MeshName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member meshName must not be empty")} - } if err := encoder.SetURI("meshName").String(*v.MeshName); err != nil { return err } @@ -3514,13 +3334,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVirtualServiceInput(v *UpdateVirt encoder.SetQuery("meshOwner").String(*v.MeshOwner) } - if v.VirtualServiceName == nil { + if v.VirtualServiceName == nil || len(*v.VirtualServiceName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member virtualServiceName must not be empty")} } if v.VirtualServiceName != nil { - if len(*v.VirtualServiceName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member virtualServiceName must not be empty")} - } if err := encoder.SetURI("virtualServiceName").String(*v.VirtualServiceName); err != nil { return err } @@ -3555,7 +3372,7 @@ func awsRestjson1_serializeDocumentAccessLog(v types.AccessLog, value smithyjson switch uv := v.(type) { case *types.AccessLogMemberFile: av := object.Key("file") - if err := awsRestjson1_serializeDocumentFileAccessLog(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentFileAccessLog(&uv.Value, av); err != nil { return err } @@ -3583,17 +3400,13 @@ func awsRestjson1_serializeDocumentAwsCloudMapInstanceAttribute(v *types.AwsClou return nil } -func awsRestjson1_serializeDocumentAwsCloudMapInstanceAttributes(v []*types.AwsCloudMapInstanceAttribute, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsCloudMapInstanceAttributes(v []types.AwsCloudMapInstanceAttribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsCloudMapInstanceAttribute(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsCloudMapInstanceAttribute(&v[i], av); err != nil { return err } } @@ -3631,7 +3444,7 @@ func awsRestjson1_serializeDocumentBackend(v types.Backend, value smithyjson.Val switch uv := v.(type) { case *types.BackendMemberVirtualService: av := object.Key("virtualService") - if err := awsRestjson1_serializeDocumentVirtualServiceBackend(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentVirtualServiceBackend(&uv.Value, av); err != nil { return err } @@ -3663,7 +3476,6 @@ func awsRestjson1_serializeDocumentBackends(v []types.Backend, value smithyjson. for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsRestjson1_serializeDocumentBackend(v[i], av); err != nil { @@ -3673,17 +3485,13 @@ func awsRestjson1_serializeDocumentBackends(v []types.Backend, value smithyjson. return nil } -func awsRestjson1_serializeDocumentCertificateAuthorityArns(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCertificateAuthorityArns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4030,17 +3838,13 @@ func awsRestjson1_serializeDocumentGrpcRouteMetadata(v *types.GrpcRouteMetadata, return nil } -func awsRestjson1_serializeDocumentGrpcRouteMetadataList(v []*types.GrpcRouteMetadata, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGrpcRouteMetadataList(v []types.GrpcRouteMetadata, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentGrpcRouteMetadata(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentGrpcRouteMetadata(&v[i], av); err != nil { return err } } @@ -4062,7 +3866,7 @@ func awsRestjson1_serializeDocumentGrpcRouteMetadataMatchMethod(v types.GrpcRout case *types.GrpcRouteMetadataMatchMethodMemberRange: av := object.Key("range") - if err := awsRestjson1_serializeDocumentMatchRange(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentMatchRange(&uv.Value, av); err != nil { return err } @@ -4117,7 +3921,7 @@ func awsRestjson1_serializeDocumentHeaderMatchMethod(v types.HeaderMatchMethod, case *types.HeaderMatchMethodMemberRange: av := object.Key("range") - if err := awsRestjson1_serializeDocumentMatchRange(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentMatchRange(&uv.Value, av); err != nil { return err } @@ -4140,9 +3944,9 @@ func awsRestjson1_serializeDocumentHealthCheckPolicy(v *types.HealthCheckPolicy, object := value.Object() defer object.Close() - if v.HealthyThreshold != nil { + if v.HealthyThreshold != 0 { ok := object.Key("healthyThreshold") - ok.Integer(*v.HealthyThreshold) + ok.Integer(v.HealthyThreshold) } if v.IntervalMillis != nil { @@ -4155,9 +3959,9 @@ func awsRestjson1_serializeDocumentHealthCheckPolicy(v *types.HealthCheckPolicy, ok.String(*v.Path) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } if len(v.Protocol) > 0 { @@ -4170,9 +3974,9 @@ func awsRestjson1_serializeDocumentHealthCheckPolicy(v *types.HealthCheckPolicy, ok.Long(*v.TimeoutMillis) } - if v.UnhealthyThreshold != nil { + if v.UnhealthyThreshold != 0 { ok := object.Key("unhealthyThreshold") - ok.Integer(*v.UnhealthyThreshold) + ok.Integer(v.UnhealthyThreshold) } return nil @@ -4258,17 +4062,13 @@ func awsRestjson1_serializeDocumentHttpRetryPolicy(v *types.HttpRetryPolicy, val return nil } -func awsRestjson1_serializeDocumentHttpRetryPolicyEvents(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHttpRetryPolicyEvents(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4346,17 +4146,13 @@ func awsRestjson1_serializeDocumentHttpRouteHeader(v *types.HttpRouteHeader, val return nil } -func awsRestjson1_serializeDocumentHttpRouteHeaders(v []*types.HttpRouteHeader, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHttpRouteHeaders(v []types.HttpRouteHeader, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentHttpRouteHeader(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentHttpRouteHeader(&v[i], av); err != nil { return err } } @@ -4448,17 +4244,13 @@ func awsRestjson1_serializeDocumentListener(v *types.Listener, value smithyjson. return nil } -func awsRestjson1_serializeDocumentListeners(v []*types.Listener, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListeners(v []types.Listener, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentListener(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentListener(&v[i], av); err != nil { return err } } @@ -4472,25 +4264,25 @@ func awsRestjson1_serializeDocumentListenerTimeout(v types.ListenerTimeout, valu switch uv := v.(type) { case *types.ListenerTimeoutMemberGrpc: av := object.Key("grpc") - if err := awsRestjson1_serializeDocumentGrpcTimeout(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentGrpcTimeout(&uv.Value, av); err != nil { return err } case *types.ListenerTimeoutMemberHttp: av := object.Key("http") - if err := awsRestjson1_serializeDocumentHttpTimeout(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentHttpTimeout(&uv.Value, av); err != nil { return err } case *types.ListenerTimeoutMemberHttp2: av := object.Key("http2") - if err := awsRestjson1_serializeDocumentHttpTimeout(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentHttpTimeout(&uv.Value, av); err != nil { return err } case *types.ListenerTimeoutMemberTcp: av := object.Key("tcp") - if err := awsRestjson1_serializeDocumentTcpTimeout(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentTcpTimeout(&uv.Value, av); err != nil { return err } @@ -4539,13 +4331,13 @@ func awsRestjson1_serializeDocumentListenerTlsCertificate(v types.ListenerTlsCer switch uv := v.(type) { case *types.ListenerTlsCertificateMemberAcm: av := object.Key("acm") - if err := awsRestjson1_serializeDocumentListenerTlsAcmCertificate(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentListenerTlsAcmCertificate(&uv.Value, av); err != nil { return err } case *types.ListenerTlsCertificateMemberFile: av := object.Key("file") - if err := awsRestjson1_serializeDocumentListenerTlsFileCertificate(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentListenerTlsFileCertificate(&uv.Value, av); err != nil { return err } @@ -4622,9 +4414,9 @@ func awsRestjson1_serializeDocumentPortMapping(v *types.PortMapping, value smith object := value.Object() defer object.Close() - if v.Port != nil { + if v.Port != 0 { ok := object.Key("port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } if len(v.Protocol) > 0 { @@ -4635,17 +4427,13 @@ func awsRestjson1_serializeDocumentPortMapping(v *types.PortMapping, value smith return nil } -func awsRestjson1_serializeDocumentPortSet(v []*int32, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPortSet(v []int32, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Integer(*v[i]) + av.Integer(v[i]) } return nil } @@ -4697,13 +4485,13 @@ func awsRestjson1_serializeDocumentServiceDiscovery(v types.ServiceDiscovery, va switch uv := v.(type) { case *types.ServiceDiscoveryMemberAwsCloudMap: av := object.Key("awsCloudMap") - if err := awsRestjson1_serializeDocumentAwsCloudMapServiceDiscovery(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentAwsCloudMapServiceDiscovery(&uv.Value, av); err != nil { return err } case *types.ServiceDiscoveryMemberDns: av := object.Key("dns") - if err := awsRestjson1_serializeDocumentDnsServiceDiscovery(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentDnsServiceDiscovery(&uv.Value, av); err != nil { return err } @@ -4714,32 +4502,24 @@ func awsRestjson1_serializeDocumentServiceDiscovery(v types.ServiceDiscovery, va return nil } -func awsRestjson1_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.TagRef, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.TagRef, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTagRef(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTagRef(&v[i], av); err != nil { return err } } @@ -4870,13 +4650,13 @@ func awsRestjson1_serializeDocumentTlsValidationContextTrust(v types.TlsValidati switch uv := v.(type) { case *types.TlsValidationContextTrustMemberAcm: av := object.Key("acm") - if err := awsRestjson1_serializeDocumentTlsValidationContextAcmTrust(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentTlsValidationContextAcmTrust(&uv.Value, av); err != nil { return err } case *types.TlsValidationContextTrustMemberFile: av := object.Key("file") - if err := awsRestjson1_serializeDocumentTlsValidationContextFileTrust(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentTlsValidationContextFileTrust(&uv.Value, av); err != nil { return err } @@ -4894,7 +4674,7 @@ func awsRestjson1_serializeDocumentVirtualGatewayAccessLog(v types.VirtualGatewa switch uv := v.(type) { case *types.VirtualGatewayAccessLogMemberFile: av := object.Key("file") - if err := awsRestjson1_serializeDocumentVirtualGatewayFileAccessLog(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentVirtualGatewayFileAccessLog(&uv.Value, av); err != nil { return err } @@ -4919,17 +4699,13 @@ func awsRestjson1_serializeDocumentVirtualGatewayBackendDefaults(v *types.Virtua return nil } -func awsRestjson1_serializeDocumentVirtualGatewayCertificateAuthorityArns(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentVirtualGatewayCertificateAuthorityArns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4990,9 +4766,9 @@ func awsRestjson1_serializeDocumentVirtualGatewayHealthCheckPolicy(v *types.Virt object := value.Object() defer object.Close() - if v.HealthyThreshold != nil { + if v.HealthyThreshold != 0 { ok := object.Key("healthyThreshold") - ok.Integer(*v.HealthyThreshold) + ok.Integer(v.HealthyThreshold) } if v.IntervalMillis != nil { @@ -5005,9 +4781,9 @@ func awsRestjson1_serializeDocumentVirtualGatewayHealthCheckPolicy(v *types.Virt ok.String(*v.Path) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } if len(v.Protocol) > 0 { @@ -5020,9 +4796,9 @@ func awsRestjson1_serializeDocumentVirtualGatewayHealthCheckPolicy(v *types.Virt ok.Long(*v.TimeoutMillis) } - if v.UnhealthyThreshold != nil { + if v.UnhealthyThreshold != 0 { ok := object.Key("unhealthyThreshold") - ok.Integer(*v.UnhealthyThreshold) + ok.Integer(v.UnhealthyThreshold) } return nil @@ -5056,17 +4832,13 @@ func awsRestjson1_serializeDocumentVirtualGatewayListener(v *types.VirtualGatewa return nil } -func awsRestjson1_serializeDocumentVirtualGatewayListeners(v []*types.VirtualGatewayListener, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentVirtualGatewayListeners(v []types.VirtualGatewayListener, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentVirtualGatewayListener(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentVirtualGatewayListener(&v[i], av); err != nil { return err } } @@ -5111,13 +4883,13 @@ func awsRestjson1_serializeDocumentVirtualGatewayListenerTlsCertificate(v types. switch uv := v.(type) { case *types.VirtualGatewayListenerTlsCertificateMemberAcm: av := object.Key("acm") - if err := awsRestjson1_serializeDocumentVirtualGatewayListenerTlsAcmCertificate(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentVirtualGatewayListenerTlsAcmCertificate(&uv.Value, av); err != nil { return err } case *types.VirtualGatewayListenerTlsCertificateMemberFile: av := object.Key("file") - if err := awsRestjson1_serializeDocumentVirtualGatewayListenerTlsFileCertificate(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentVirtualGatewayListenerTlsFileCertificate(&uv.Value, av); err != nil { return err } @@ -5163,9 +4935,9 @@ func awsRestjson1_serializeDocumentVirtualGatewayPortMapping(v *types.VirtualGat object := value.Object() defer object.Close() - if v.Port != nil { + if v.Port != 0 { ok := object.Key("port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } if len(v.Protocol) > 0 { @@ -5251,13 +5023,13 @@ func awsRestjson1_serializeDocumentVirtualGatewayTlsValidationContextTrust(v typ switch uv := v.(type) { case *types.VirtualGatewayTlsValidationContextTrustMemberAcm: av := object.Key("acm") - if err := awsRestjson1_serializeDocumentVirtualGatewayTlsValidationContextAcmTrust(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentVirtualGatewayTlsValidationContextAcmTrust(&uv.Value, av); err != nil { return err } case *types.VirtualGatewayTlsValidationContextTrustMemberFile: av := object.Key("file") - if err := awsRestjson1_serializeDocumentVirtualGatewayTlsValidationContextFileTrust(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentVirtualGatewayTlsValidationContextFileTrust(&uv.Value, av); err != nil { return err } @@ -5336,17 +5108,13 @@ func awsRestjson1_serializeDocumentVirtualRouterListener(v *types.VirtualRouterL return nil } -func awsRestjson1_serializeDocumentVirtualRouterListeners(v []*types.VirtualRouterListener, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentVirtualRouterListeners(v []types.VirtualRouterListener, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentVirtualRouterListener(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentVirtualRouterListener(&v[i], av); err != nil { return err } } @@ -5405,13 +5173,13 @@ func awsRestjson1_serializeDocumentVirtualServiceProvider(v types.VirtualService switch uv := v.(type) { case *types.VirtualServiceProviderMemberVirtualNode: av := object.Key("virtualNode") - if err := awsRestjson1_serializeDocumentVirtualNodeServiceProvider(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentVirtualNodeServiceProvider(&uv.Value, av); err != nil { return err } case *types.VirtualServiceProviderMemberVirtualRouter: av := object.Key("virtualRouter") - if err := awsRestjson1_serializeDocumentVirtualRouterServiceProvider(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentVirtualRouterServiceProvider(&uv.Value, av); err != nil { return err } @@ -5445,25 +5213,21 @@ func awsRestjson1_serializeDocumentWeightedTarget(v *types.WeightedTarget, value ok.String(*v.VirtualNode) } - if v.Weight != nil { + if v.Weight != 0 { ok := object.Key("weight") - ok.Integer(*v.Weight) + ok.Integer(v.Weight) } return nil } -func awsRestjson1_serializeDocumentWeightedTargets(v []*types.WeightedTarget, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentWeightedTargets(v []types.WeightedTarget, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentWeightedTarget(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentWeightedTarget(&v[i], av); err != nil { return err } } diff --git a/service/appmesh/types/types.go b/service/appmesh/types/types.go index e026221dc24..a35c691cbbe 100644 --- a/service/appmesh/types/types.go +++ b/service/appmesh/types/types.go @@ -13,7 +13,7 @@ type AccessLog interface { // The file object to send virtual node access logs to. type AccessLogMemberFile struct { - Value *FileAccessLog + Value FileAccessLog } func (*AccessLogMemberFile) isAccessLog() {} @@ -53,7 +53,7 @@ type AwsCloudMapServiceDiscovery struct { // instances by any custom attribute that you specified when you registered the // instance. Only instances that match all of the specified key/value pairs will be // returned. - Attributes []*AwsCloudMapInstanceAttribute + Attributes []AwsCloudMapInstanceAttribute } // An object that represents the backends that a virtual node is expected to send @@ -64,7 +64,7 @@ type Backend interface { // Specifies a virtual service to use as a backend for a virtual node. type BackendMemberVirtualService struct { - Value *VirtualServiceBackend + Value VirtualServiceBackend } func (*BackendMemberVirtualService) isBackend() {} @@ -96,7 +96,7 @@ type ClientPolicyTls struct { Enforce *bool // One or more ports that the policy is enforced for. - Ports []*int32 + Ports []int32 } // An object that represents the DNS service discovery information for your virtual @@ -339,7 +339,7 @@ type GrpcRetryPolicy struct { // // * // stream-error – Retry on refused stream - HttpRetryEvents []*string + HttpRetryEvents []string // Specify a valid value. TcpRetryEvents []TcpRetryPolicyEvent @@ -372,14 +372,14 @@ type GrpcRouteAction struct { // matches the route. // // This member is required. - WeightedTargets []*WeightedTarget + WeightedTargets []WeightedTarget } // An object that represents the criteria for determining a request match. type GrpcRouteMatch struct { // An object that represents the data to match from the request. - Metadata []*GrpcRouteMetadata + Metadata []GrpcRouteMetadata // The method name to match from the request. If you specify a name, you must also // specify a serviceName. @@ -426,7 +426,7 @@ func (*GrpcRouteMetadataMatchMethodMemberRegex) isGrpcRouteMetadataMatchMethod() // An object that represents the range of values to match on. type GrpcRouteMetadataMatchMethodMemberRange struct { - Value *MatchRange + Value MatchRange } func (*GrpcRouteMetadataMatchMethodMemberRange) isGrpcRouteMetadataMatchMethod() {} @@ -483,7 +483,7 @@ func (*HeaderMatchMethodMemberRegex) isHeaderMatchMethod() {} // An object that represents the range of values to match on. type HeaderMatchMethodMemberRange struct { - Value *MatchRange + Value MatchRange } func (*HeaderMatchMethodMemberRange) isHeaderMatchMethod() {} @@ -509,7 +509,7 @@ type HealthCheckPolicy struct { // declaring listener healthy. // // This member is required. - HealthyThreshold *int32 + HealthyThreshold int32 // The time period in milliseconds between each health check execution. // @@ -533,7 +533,7 @@ type HealthCheckPolicy struct { // a virtual node unhealthy. // // This member is required. - UnhealthyThreshold *int32 + UnhealthyThreshold int32 // The destination path for the health check request. This value is only used if // the specified protocol is HTTP or HTTP/2. For any other protocol, this value is @@ -542,7 +542,7 @@ type HealthCheckPolicy struct { // The destination port for the health check request. This port must match the port // defined in the PortMapping for the listener. - Port *int32 + Port int32 } // An object that represents an HTTP gateway route. @@ -609,7 +609,7 @@ type HttpRetryPolicy struct { // // * // stream-error – Retry on refused stream - HttpRetryEvents []*string + HttpRetryEvents []string // Specify a valid value. TcpRetryEvents []TcpRetryPolicyEvent @@ -642,7 +642,7 @@ type HttpRouteAction struct { // matches the route. // // This member is required. - WeightedTargets []*WeightedTarget + WeightedTargets []WeightedTarget } // An object that represents the HTTP header in the request. @@ -675,7 +675,7 @@ type HttpRouteMatch struct { Prefix *string // An object that represents the client request headers to match on. - Headers []*HttpRouteHeader + Headers []HttpRouteHeader // The client request method to match on. Specify only one. Method HttpMethod @@ -720,28 +720,28 @@ type ListenerTimeout interface { // An object that represents types of timeouts. type ListenerTimeoutMemberTcp struct { - Value *TcpTimeout + Value TcpTimeout } func (*ListenerTimeoutMemberTcp) isListenerTimeout() {} // An object that represents types of timeouts. type ListenerTimeoutMemberHttp struct { - Value *HttpTimeout + Value HttpTimeout } func (*ListenerTimeoutMemberHttp) isListenerTimeout() {} // An object that represents types of timeouts. type ListenerTimeoutMemberHttp2 struct { - Value *HttpTimeout + Value HttpTimeout } func (*ListenerTimeoutMemberHttp2) isListenerTimeout() {} // An object that represents types of timeouts. type ListenerTimeoutMemberGrpc struct { - Value *GrpcTimeout + Value GrpcTimeout } func (*ListenerTimeoutMemberGrpc) isListenerTimeout() {} @@ -791,14 +791,14 @@ type ListenerTlsCertificate interface { // A reference to an object that represents an AWS Certicate Manager (ACM) // certificate. type ListenerTlsCertificateMemberAcm struct { - Value *ListenerTlsAcmCertificate + Value ListenerTlsAcmCertificate } func (*ListenerTlsCertificateMemberAcm) isListenerTlsCertificate() {} // A reference to an object that represents a local file certificate. type ListenerTlsCertificateMemberFile struct { - Value *ListenerTlsFileCertificate + Value ListenerTlsFileCertificate } func (*ListenerTlsCertificateMemberFile) isListenerTlsCertificate() {} @@ -934,7 +934,7 @@ type PortMapping struct { // The port used for the port mapping. // // This member is required. - Port *int32 + Port int32 // The protocol used for the port mapping. Specify one protocol. // @@ -1114,14 +1114,14 @@ type ServiceDiscovery interface { // Specifies the DNS information for the virtual node. type ServiceDiscoveryMemberDns struct { - Value *DnsServiceDiscovery + Value DnsServiceDiscovery } func (*ServiceDiscoveryMemberDns) isServiceDiscovery() {} // Specifies any AWS Cloud Map information for the virtual node. type ServiceDiscoveryMemberAwsCloudMap struct { - Value *AwsCloudMapServiceDiscovery + Value AwsCloudMapServiceDiscovery } func (*ServiceDiscoveryMemberAwsCloudMap) isServiceDiscovery() {} @@ -1162,7 +1162,7 @@ type TcpRouteAction struct { // matches the route. // // This member is required. - WeightedTargets []*WeightedTarget + WeightedTargets []WeightedTarget } // An object that represents types of timeouts. @@ -1188,7 +1188,7 @@ type TlsValidationContextAcmTrust struct { // One or more ACM Amazon Resource Name (ARN)s. // // This member is required. - CertificateAuthorityArns []*string + CertificateAuthorityArns []string } // An object that represents a Transport Layer Security (TLS) validation context @@ -1211,14 +1211,14 @@ type TlsValidationContextTrust interface { // A reference to an object that represents a TLS validation context trust for an // AWS Certicate Manager (ACM) certificate. type TlsValidationContextTrustMemberAcm struct { - Value *TlsValidationContextAcmTrust + Value TlsValidationContextAcmTrust } func (*TlsValidationContextTrustMemberAcm) isTlsValidationContextTrust() {} // An object that represents a TLS validation context trust for a local file. type TlsValidationContextTrustMemberFile struct { - Value *TlsValidationContextFileTrust + Value TlsValidationContextFileTrust } func (*TlsValidationContextTrustMemberFile) isTlsValidationContextTrust() {} @@ -1230,7 +1230,7 @@ type VirtualGatewayAccessLog interface { // The file object to send virtual gateway access logs to. type VirtualGatewayAccessLogMemberFile struct { - Value *VirtualGatewayFileAccessLog + Value VirtualGatewayFileAccessLog } func (*VirtualGatewayAccessLogMemberFile) isVirtualGatewayAccessLog() {} @@ -1262,7 +1262,7 @@ type VirtualGatewayClientPolicyTls struct { Enforce *bool // One or more ports that the policy is enforced for. - Ports []*int32 + Ports []int32 } // An object that represents a virtual gateway returned by a describe operation. @@ -1315,7 +1315,7 @@ type VirtualGatewayHealthCheckPolicy struct { // declaring the listener healthy. // // This member is required. - HealthyThreshold *int32 + HealthyThreshold int32 // The time period in milliseconds between each health check execution. // @@ -1339,7 +1339,7 @@ type VirtualGatewayHealthCheckPolicy struct { // a virtual gateway unhealthy. // // This member is required. - UnhealthyThreshold *int32 + UnhealthyThreshold int32 // The destination path for the health check request. This value is only used if // the specified protocol is HTTP or HTTP/2. For any other protocol, this value is @@ -1348,7 +1348,7 @@ type VirtualGatewayHealthCheckPolicy struct { // The destination port for the health check request. This port must match the port // defined in the PortMapping for the listener. - Port *int32 + Port int32 } // An object that represents a listener for a virtual gateway. @@ -1412,14 +1412,14 @@ type VirtualGatewayListenerTlsCertificate interface { // A reference to an object that represents an AWS Certicate Manager (ACM) // certificate. type VirtualGatewayListenerTlsCertificateMemberAcm struct { - Value *VirtualGatewayListenerTlsAcmCertificate + Value VirtualGatewayListenerTlsAcmCertificate } func (*VirtualGatewayListenerTlsCertificateMemberAcm) isVirtualGatewayListenerTlsCertificate() {} // A reference to an object that represents a local file certificate. type VirtualGatewayListenerTlsCertificateMemberFile struct { - Value *VirtualGatewayListenerTlsFileCertificate + Value VirtualGatewayListenerTlsFileCertificate } func (*VirtualGatewayListenerTlsCertificateMemberFile) isVirtualGatewayListenerTlsCertificate() {} @@ -1455,7 +1455,7 @@ type VirtualGatewayPortMapping struct { // The port used for the port mapping. Specify one protocol. // // This member is required. - Port *int32 + Port int32 // The protocol used for the port mapping. // @@ -1521,7 +1521,7 @@ type VirtualGatewaySpec struct { // from. You can specify one listener. // // This member is required. - Listeners []*VirtualGatewayListener + Listeners []VirtualGatewayListener // A reference to an object that represents the defaults for backends. BackendDefaults *VirtualGatewayBackendDefaults @@ -1555,7 +1555,7 @@ type VirtualGatewayTlsValidationContextAcmTrust struct { // One or more ACM Amazon Resource Name (ARN)s. // // This member is required. - CertificateAuthorityArns []*string + CertificateAuthorityArns []string } // An object that represents a Transport Layer Security (TLS) validation context @@ -1578,7 +1578,7 @@ type VirtualGatewayTlsValidationContextTrust interface { // A reference to an object that represents a TLS validation context trust for an // AWS Certicate Manager (ACM) certificate. type VirtualGatewayTlsValidationContextTrustMemberAcm struct { - Value *VirtualGatewayTlsValidationContextAcmTrust + Value VirtualGatewayTlsValidationContextAcmTrust } func (*VirtualGatewayTlsValidationContextTrustMemberAcm) isVirtualGatewayTlsValidationContextTrust() { @@ -1586,7 +1586,7 @@ func (*VirtualGatewayTlsValidationContextTrustMemberAcm) isVirtualGatewayTlsVali // An object that represents a TLS validation context trust for a local file. type VirtualGatewayTlsValidationContextTrustMemberFile struct { - Value *VirtualGatewayTlsValidationContextFileTrust + Value VirtualGatewayTlsValidationContextFileTrust } func (*VirtualGatewayTlsValidationContextTrustMemberFile) isVirtualGatewayTlsValidationContextTrust() { @@ -1692,7 +1692,7 @@ type VirtualNodeSpec struct { // The listener that the virtual node is expected to receive inbound traffic from. // You can specify one listener. - Listeners []*Listener + Listeners []Listener // The inbound and outbound access logging information for the virtual node. Logging *Logging @@ -1815,7 +1815,7 @@ type VirtualRouterSpec struct { // The listeners that the virtual router is expected to receive inbound traffic // from. You can specify one listener. - Listeners []*VirtualRouterListener + Listeners []VirtualRouterListener } // An object that represents the status of a virtual router. @@ -1875,14 +1875,14 @@ type VirtualServiceProvider interface { // The virtual node associated with a virtual service. type VirtualServiceProviderMemberVirtualNode struct { - Value *VirtualNodeServiceProvider + Value VirtualNodeServiceProvider } func (*VirtualServiceProviderMemberVirtualNode) isVirtualServiceProvider() {} // The virtual router associated with a virtual service. type VirtualServiceProviderMemberVirtualRouter struct { - Value *VirtualRouterServiceProvider + Value VirtualRouterServiceProvider } func (*VirtualServiceProviderMemberVirtualRouter) isVirtualServiceProvider() {} @@ -1970,7 +1970,7 @@ type WeightedTarget struct { // The relative weight of the weighted target. // // This member is required. - Weight *int32 + Weight int32 } // UnknownUnionMember is returned when a union member is returned over the wire, diff --git a/service/appmesh/validators.go b/service/appmesh/validators.go index 7c5f0c412eb..019710af1d8 100644 --- a/service/appmesh/validators.go +++ b/service/appmesh/validators.go @@ -1168,13 +1168,13 @@ func validateGrpcRouteMetadata(v *types.GrpcRouteMetadata) error { } } -func validateGrpcRouteMetadataList(v []*types.GrpcRouteMetadata) error { +func validateGrpcRouteMetadataList(v []types.GrpcRouteMetadata) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GrpcRouteMetadataList"} for i := range v { - if err := validateGrpcRouteMetadata(v[i]); err != nil { + if err := validateGrpcRouteMetadata(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1199,12 +1199,6 @@ func validateHealthCheckPolicy(v *types.HealthCheckPolicy) error { if len(v.Protocol) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Protocol")) } - if v.HealthyThreshold == nil { - invalidParams.Add(smithy.NewErrParamRequired("HealthyThreshold")) - } - if v.UnhealthyThreshold == nil { - invalidParams.Add(smithy.NewErrParamRequired("UnhealthyThreshold")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1355,13 +1349,13 @@ func validateHttpRouteHeader(v *types.HttpRouteHeader) error { } } -func validateHttpRouteHeaders(v []*types.HttpRouteHeader) error { +func validateHttpRouteHeaders(v []types.HttpRouteHeader) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "HttpRouteHeaders"} for i := range v { - if err := validateHttpRouteHeader(v[i]); err != nil { + if err := validateHttpRouteHeader(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1421,13 +1415,13 @@ func validateListener(v *types.Listener) error { } } -func validateListeners(v []*types.Listener) error { +func validateListeners(v []types.Listener) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Listeners"} for i := range v { - if err := validateListener(v[i]); err != nil { + if err := validateListener(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1478,9 +1472,6 @@ func validatePortMapping(v *types.PortMapping) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "PortMapping"} - if v.Port == nil { - invalidParams.Add(smithy.NewErrParamRequired("Port")) - } if len(v.Protocol) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Protocol")) } @@ -1523,13 +1514,13 @@ func validateRouteSpec(v *types.RouteSpec) error { } } -func validateTagList(v []*types.TagRef) error { +func validateTagList(v []types.TagRef) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTagRef(v[i]); err != nil { + if err := validateTagRef(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1675,12 +1666,6 @@ func validateVirtualGatewayHealthCheckPolicy(v *types.VirtualGatewayHealthCheckP if len(v.Protocol) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Protocol")) } - if v.HealthyThreshold == nil { - invalidParams.Add(smithy.NewErrParamRequired("HealthyThreshold")) - } - if v.UnhealthyThreshold == nil { - invalidParams.Add(smithy.NewErrParamRequired("UnhealthyThreshold")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1717,13 +1702,13 @@ func validateVirtualGatewayListener(v *types.VirtualGatewayListener) error { } } -func validateVirtualGatewayListeners(v []*types.VirtualGatewayListener) error { +func validateVirtualGatewayListeners(v []types.VirtualGatewayListener) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "VirtualGatewayListeners"} for i := range v { - if err := validateVirtualGatewayListener(v[i]); err != nil { + if err := validateVirtualGatewayListener(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1757,9 +1742,6 @@ func validateVirtualGatewayPortMapping(v *types.VirtualGatewayPortMapping) error return nil } invalidParams := smithy.InvalidParamsError{Context: "VirtualGatewayPortMapping"} - if v.Port == nil { - invalidParams.Add(smithy.NewErrParamRequired("Port")) - } if len(v.Protocol) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Protocol")) } @@ -1850,13 +1832,13 @@ func validateVirtualRouterListener(v *types.VirtualRouterListener) error { } } -func validateVirtualRouterListeners(v []*types.VirtualRouterListener) error { +func validateVirtualRouterListeners(v []types.VirtualRouterListener) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "VirtualRouterListeners"} for i := range v { - if err := validateVirtualRouterListener(v[i]); err != nil { + if err := validateVirtualRouterListener(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1892,9 +1874,6 @@ func validateWeightedTarget(v *types.WeightedTarget) error { if v.VirtualNode == nil { invalidParams.Add(smithy.NewErrParamRequired("VirtualNode")) } - if v.Weight == nil { - invalidParams.Add(smithy.NewErrParamRequired("Weight")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1902,13 +1881,13 @@ func validateWeightedTarget(v *types.WeightedTarget) error { } } -func validateWeightedTargets(v []*types.WeightedTarget) error { +func validateWeightedTargets(v []types.WeightedTarget) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "WeightedTargets"} for i := range v { - if err := validateWeightedTarget(v[i]); err != nil { + if err := validateWeightedTarget(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/appstream/api_op_BatchAssociateUserStack.go b/service/appstream/api_op_BatchAssociateUserStack.go index 205669a31d1..6b207d9d4ec 100644 --- a/service/appstream/api_op_BatchAssociateUserStack.go +++ b/service/appstream/api_op_BatchAssociateUserStack.go @@ -34,13 +34,13 @@ type BatchAssociateUserStackInput struct { // The list of UserStackAssociation objects. // // This member is required. - UserStackAssociations []*types.UserStackAssociation + UserStackAssociations []types.UserStackAssociation } type BatchAssociateUserStackOutput struct { // The list of UserStackAssociationError objects. - Errors []*types.UserStackAssociationError + Errors []types.UserStackAssociationError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appstream/api_op_BatchDisassociateUserStack.go b/service/appstream/api_op_BatchDisassociateUserStack.go index 19b2588c89a..20d942ee273 100644 --- a/service/appstream/api_op_BatchDisassociateUserStack.go +++ b/service/appstream/api_op_BatchDisassociateUserStack.go @@ -32,13 +32,13 @@ type BatchDisassociateUserStackInput struct { // The list of UserStackAssociation objects. // // This member is required. - UserStackAssociations []*types.UserStackAssociation + UserStackAssociations []types.UserStackAssociation } type BatchDisassociateUserStackOutput struct { // The list of UserStackAssociationError objects. - Errors []*types.UserStackAssociationError + Errors []types.UserStackAssociationError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appstream/api_op_CreateDirectoryConfig.go b/service/appstream/api_op_CreateDirectoryConfig.go index a6bd46ff9b6..1b6a120e9b2 100644 --- a/service/appstream/api_op_CreateDirectoryConfig.go +++ b/service/appstream/api_op_CreateDirectoryConfig.go @@ -39,7 +39,7 @@ type CreateDirectoryConfigInput struct { // The distinguished names of the organizational units for computer accounts. // // This member is required. - OrganizationalUnitDistinguishedNames []*string + OrganizationalUnitDistinguishedNames []string // The credentials for the service account used by the fleet or image builder to // connect to the directory. diff --git a/service/appstream/api_op_CreateFleet.go b/service/appstream/api_op_CreateFleet.go index f1194d9b80a..da5224d5889 100644 --- a/service/appstream/api_op_CreateFleet.go +++ b/service/appstream/api_op_CreateFleet.go @@ -210,7 +210,7 @@ type CreateFleetInput struct { // For more information, see Tagging Your Resources // (https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) // in the Amazon AppStream 2.0 Administration Guide. - Tags map[string]*string + Tags map[string]string // The VPC configuration for the fleet. VpcConfig *types.VpcConfig diff --git a/service/appstream/api_op_CreateImageBuilder.go b/service/appstream/api_op_CreateImageBuilder.go index c5a8c0f736b..8dec856946c 100644 --- a/service/appstream/api_op_CreateImageBuilder.go +++ b/service/appstream/api_op_CreateImageBuilder.go @@ -122,7 +122,7 @@ type CreateImageBuilderInput struct { // The list of interface VPC endpoint (interface endpoint) objects. Administrators // can connect to the image builder only through the specified endpoints. - AccessEndpoints []*types.AccessEndpoint + AccessEndpoints []types.AccessEndpoint // The version of the AppStream 2.0 agent to use for this image builder. To use the // latest version of the AppStream 2.0 agent, specify [LATEST]. @@ -167,7 +167,7 @@ type CreateImageBuilderInput struct { // information about tags, see Tagging Your Resources // (https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) // in the Amazon AppStream 2.0 Administration Guide. - Tags map[string]*string + Tags map[string]string // The VPC configuration for the image builder. You can specify only one subnet. VpcConfig *types.VpcConfig diff --git a/service/appstream/api_op_CreateStack.go b/service/appstream/api_op_CreateStack.go index 9d9ca8086c8..df8a00949d2 100644 --- a/service/appstream/api_op_CreateStack.go +++ b/service/appstream/api_op_CreateStack.go @@ -37,7 +37,7 @@ type CreateStackInput struct { // The list of interface VPC endpoint (interface endpoint) objects. Users of the // stack can connect to AppStream 2.0 only through the specified endpoints. - AccessEndpoints []*types.AccessEndpoint + AccessEndpoints []types.AccessEndpoint // The persistent application settings for users of a stack. When these settings // are enabled, changes that users make to applications and Windows settings are @@ -53,7 +53,7 @@ type CreateStackInput struct { // The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. // You must approve the domains that you want to host embedded AppStream 2.0 // streaming sessions. - EmbedHostDomains []*string + EmbedHostDomains []string // The URL that users are redirected to after they click the Send Feedback link. If // no URL is specified, no Send Feedback link is displayed. @@ -63,7 +63,7 @@ type CreateStackInput struct { RedirectURL *string // The storage connectors to enable. - StorageConnectors []*types.StorageConnector + StorageConnectors []types.StorageConnector // The tags to associate with the stack. A tag is a key-value pair, and the value // is optional. For example, Environment=Test. If you do not specify a value, @@ -73,11 +73,11 @@ type CreateStackInput struct { // For more information about tags, see Tagging Your Resources // (https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) // in the Amazon AppStream 2.0 Administration Guide. - Tags map[string]*string + Tags map[string]string // The actions that are enabled or disabled for users during their streaming // sessions. By default, these actions are enabled. - UserSettings []*types.UserSetting + UserSettings []types.UserSetting } type CreateStackOutput struct { diff --git a/service/appstream/api_op_DescribeDirectoryConfigs.go b/service/appstream/api_op_DescribeDirectoryConfigs.go index ec75cc6a624..eb11bbd8456 100644 --- a/service/appstream/api_op_DescribeDirectoryConfigs.go +++ b/service/appstream/api_op_DescribeDirectoryConfigs.go @@ -36,7 +36,7 @@ func (c *Client) DescribeDirectoryConfigs(ctx context.Context, params *DescribeD type DescribeDirectoryConfigsInput struct { // The directory names. - DirectoryNames []*string + DirectoryNames []string // The maximum size of each page of results. MaxResults *int32 @@ -51,7 +51,7 @@ type DescribeDirectoryConfigsOutput struct { // Information about the directory configurations. Note that although the response // syntax in this topic includes the account password, this password is not // returned in the actual response. - DirectoryConfigs []*types.DirectoryConfig + DirectoryConfigs []types.DirectoryConfig // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. diff --git a/service/appstream/api_op_DescribeFleets.go b/service/appstream/api_op_DescribeFleets.go index 14d82dbb0d9..7dca481cb6a 100644 --- a/service/appstream/api_op_DescribeFleets.go +++ b/service/appstream/api_op_DescribeFleets.go @@ -31,7 +31,7 @@ func (c *Client) DescribeFleets(ctx context.Context, params *DescribeFleetsInput type DescribeFleetsInput struct { // The names of the fleets to describe. - Names []*string + Names []string // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. @@ -41,7 +41,7 @@ type DescribeFleetsInput struct { type DescribeFleetsOutput struct { // Information about the fleets. - Fleets []*types.Fleet + Fleets []types.Fleet // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. diff --git a/service/appstream/api_op_DescribeImageBuilders.go b/service/appstream/api_op_DescribeImageBuilders.go index 96cb8be23fb..bd89d0d9895 100644 --- a/service/appstream/api_op_DescribeImageBuilders.go +++ b/service/appstream/api_op_DescribeImageBuilders.go @@ -35,7 +35,7 @@ type DescribeImageBuildersInput struct { MaxResults *int32 // The names of the image builders to describe. - Names []*string + Names []string // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. @@ -45,7 +45,7 @@ type DescribeImageBuildersInput struct { type DescribeImageBuildersOutput struct { // Information about the image builders. - ImageBuilders []*types.ImageBuilder + ImageBuilders []types.ImageBuilder // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. diff --git a/service/appstream/api_op_DescribeImagePermissions.go b/service/appstream/api_op_DescribeImagePermissions.go index b154f4e21a2..0839e37ddbd 100644 --- a/service/appstream/api_op_DescribeImagePermissions.go +++ b/service/appstream/api_op_DescribeImagePermissions.go @@ -45,7 +45,7 @@ type DescribeImagePermissionsInput struct { // The 12-digit identifier of one or more AWS accounts with which the image is // shared. - SharedAwsAccountIds []*string + SharedAwsAccountIds []string } type DescribeImagePermissionsOutput struct { @@ -58,7 +58,7 @@ type DescribeImagePermissionsOutput struct { NextToken *string // The permissions for a private image that you own. - SharedImagePermissionsList []*types.SharedImagePermissions + SharedImagePermissionsList []types.SharedImagePermissions // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appstream/api_op_DescribeImages.go b/service/appstream/api_op_DescribeImages.go index f75084dff55..fd283f2ca61 100644 --- a/service/appstream/api_op_DescribeImages.go +++ b/service/appstream/api_op_DescribeImages.go @@ -31,13 +31,13 @@ func (c *Client) DescribeImages(ctx context.Context, params *DescribeImagesInput type DescribeImagesInput struct { // The ARNs of the public, private, and shared images to describe. - Arns []*string + Arns []string // The maximum size of each page of results. MaxResults *int32 // The names of the public or private images to describe. - Names []*string + Names []string // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. @@ -50,7 +50,7 @@ type DescribeImagesInput struct { type DescribeImagesOutput struct { // Information about the images. - Images []*types.Image + Images []types.Image // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. diff --git a/service/appstream/api_op_DescribeSessions.go b/service/appstream/api_op_DescribeSessions.go index 0ac621b64f9..2b771d317ed 100644 --- a/service/appstream/api_op_DescribeSessions.go +++ b/service/appstream/api_op_DescribeSessions.go @@ -67,7 +67,7 @@ type DescribeSessionsOutput struct { NextToken *string // Information about the streaming sessions. - Sessions []*types.Session + Sessions []types.Session // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appstream/api_op_DescribeStacks.go b/service/appstream/api_op_DescribeStacks.go index ae4bebdcfa5..49a66a5833e 100644 --- a/service/appstream/api_op_DescribeStacks.go +++ b/service/appstream/api_op_DescribeStacks.go @@ -31,7 +31,7 @@ func (c *Client) DescribeStacks(ctx context.Context, params *DescribeStacksInput type DescribeStacksInput struct { // The names of the stacks to describe. - Names []*string + Names []string // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. @@ -45,7 +45,7 @@ type DescribeStacksOutput struct { NextToken *string // Information about the stacks. - Stacks []*types.Stack + Stacks []types.Stack // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appstream/api_op_DescribeUsageReportSubscriptions.go b/service/appstream/api_op_DescribeUsageReportSubscriptions.go index 4c56a86d45f..d0d92c7be06 100644 --- a/service/appstream/api_op_DescribeUsageReportSubscriptions.go +++ b/service/appstream/api_op_DescribeUsageReportSubscriptions.go @@ -44,7 +44,7 @@ type DescribeUsageReportSubscriptionsOutput struct { NextToken *string // Information about the usage report subscription. - UsageReportSubscriptions []*types.UsageReportSubscription + UsageReportSubscriptions []types.UsageReportSubscription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appstream/api_op_DescribeUserStackAssociations.go b/service/appstream/api_op_DescribeUserStackAssociations.go index f50f784115c..2e6c10e5267 100644 --- a/service/appstream/api_op_DescribeUserStackAssociations.go +++ b/service/appstream/api_op_DescribeUserStackAssociations.go @@ -62,7 +62,7 @@ type DescribeUserStackAssociationsOutput struct { NextToken *string // The UserStackAssociation objects. - UserStackAssociations []*types.UserStackAssociation + UserStackAssociations []types.UserStackAssociation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appstream/api_op_DescribeUsers.go b/service/appstream/api_op_DescribeUsers.go index 88f1dacefcd..a0718dcc39c 100644 --- a/service/appstream/api_op_DescribeUsers.go +++ b/service/appstream/api_op_DescribeUsers.go @@ -50,7 +50,7 @@ type DescribeUsersOutput struct { NextToken *string // Information about users in the user pool. - Users []*types.User + Users []types.User // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appstream/api_op_ListAssociatedFleets.go b/service/appstream/api_op_ListAssociatedFleets.go index 28ef8b9e562..0b3ef766e61 100644 --- a/service/appstream/api_op_ListAssociatedFleets.go +++ b/service/appstream/api_op_ListAssociatedFleets.go @@ -41,7 +41,7 @@ type ListAssociatedFleetsInput struct { type ListAssociatedFleetsOutput struct { // The name of the fleet. - Names []*string + Names []string // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. diff --git a/service/appstream/api_op_ListAssociatedStacks.go b/service/appstream/api_op_ListAssociatedStacks.go index f02f3e17030..4499003d5b8 100644 --- a/service/appstream/api_op_ListAssociatedStacks.go +++ b/service/appstream/api_op_ListAssociatedStacks.go @@ -41,7 +41,7 @@ type ListAssociatedStacksInput struct { type ListAssociatedStacksOutput struct { // The name of the stack. - Names []*string + Names []string // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. diff --git a/service/appstream/api_op_ListTagsForResource.go b/service/appstream/api_op_ListTagsForResource.go index bc7b4dbbe5d..296d30732dd 100644 --- a/service/appstream/api_op_ListTagsForResource.go +++ b/service/appstream/api_op_ListTagsForResource.go @@ -41,7 +41,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The information about the tags. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appstream/api_op_TagResource.go b/service/appstream/api_op_TagResource.go index c2d6f36166d..dfdb18b5b45 100644 --- a/service/appstream/api_op_TagResource.go +++ b/service/appstream/api_op_TagResource.go @@ -48,7 +48,7 @@ type TagResourceInput struct { // following special characters: _ . : / = + \ - @ // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/appstream/api_op_UntagResource.go b/service/appstream/api_op_UntagResource.go index 45ebf1a04e9..730e528f20b 100644 --- a/service/appstream/api_op_UntagResource.go +++ b/service/appstream/api_op_UntagResource.go @@ -40,7 +40,7 @@ type UntagResourceInput struct { // The tag keys for the tags to disassociate. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/appstream/api_op_UpdateDirectoryConfig.go b/service/appstream/api_op_UpdateDirectoryConfig.go index a94271ade6a..77b55aefae5 100644 --- a/service/appstream/api_op_UpdateDirectoryConfig.go +++ b/service/appstream/api_op_UpdateDirectoryConfig.go @@ -37,7 +37,7 @@ type UpdateDirectoryConfigInput struct { DirectoryName *string // The distinguished names of the organizational units for computer accounts. - OrganizationalUnitDistinguishedNames []*string + OrganizationalUnitDistinguishedNames []string // The credentials for the service account used by the fleet or image builder to // connect to the directory. diff --git a/service/appstream/api_op_UpdateFleet.go b/service/appstream/api_op_UpdateFleet.go index 4258ea83cdf..38386f5ce66 100644 --- a/service/appstream/api_op_UpdateFleet.go +++ b/service/appstream/api_op_UpdateFleet.go @@ -40,7 +40,7 @@ type UpdateFleetInput struct { ComputeCapacity *types.ComputeCapacity // Deletes the VPC association for the specified fleet. - DeleteVpcConfig *bool + DeleteVpcConfig bool // The description to display. Description *string diff --git a/service/appstream/api_op_UpdateStack.go b/service/appstream/api_op_UpdateStack.go index 2f3079955bf..2127b14aa02 100644 --- a/service/appstream/api_op_UpdateStack.go +++ b/service/appstream/api_op_UpdateStack.go @@ -36,7 +36,7 @@ type UpdateStackInput struct { // The list of interface VPC endpoint (interface endpoint) objects. Users of the // stack can connect to AppStream 2.0 only through the specified endpoints. - AccessEndpoints []*types.AccessEndpoint + AccessEndpoints []types.AccessEndpoint // The persistent application settings for users of a stack. When these settings // are enabled, changes that users make to applications and Windows settings are @@ -47,7 +47,7 @@ type UpdateStackInput struct { AttributesToDelete []types.StackAttribute // Deletes the storage connectors currently enabled for the stack. - DeleteStorageConnectors *bool + DeleteStorageConnectors bool // The description to display. Description *string @@ -58,7 +58,7 @@ type UpdateStackInput struct { // The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. // You must approve the domains that you want to host embedded AppStream 2.0 // streaming sessions. - EmbedHostDomains []*string + EmbedHostDomains []string // The URL that users are redirected to after they choose the Send Feedback link. // If no URL is specified, no Send Feedback link is displayed. @@ -68,11 +68,11 @@ type UpdateStackInput struct { RedirectURL *string // The storage connectors to enable. - StorageConnectors []*types.StorageConnector + StorageConnectors []types.StorageConnector // The actions that are enabled or disabled for users during their streaming // sessions. By default, these actions are enabled. - UserSettings []*types.UserSetting + UserSettings []types.UserSetting } type UpdateStackOutput struct { diff --git a/service/appstream/deserializers.go b/service/appstream/deserializers.go index 4c6dd0a8101..6c764be9b1b 100644 --- a/service/appstream/deserializers.go +++ b/service/appstream/deserializers.go @@ -6023,7 +6023,7 @@ func awsAwsjson11_deserializeDocumentAccessEndpoint(v **types.AccessEndpoint, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VpceId = &jtv + sv.VpceId = ptr.String(jtv) } default: @@ -6035,7 +6035,7 @@ func awsAwsjson11_deserializeDocumentAccessEndpoint(v **types.AccessEndpoint, va return nil } -func awsAwsjson11_deserializeDocumentAccessEndpointList(v *[]*types.AccessEndpoint, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccessEndpointList(v *[]types.AccessEndpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6048,18 +6048,20 @@ func awsAwsjson11_deserializeDocumentAccessEndpointList(v *[]*types.AccessEndpoi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AccessEndpoint + var cv []types.AccessEndpoint if *v == nil { - cv = []*types.AccessEndpoint{} + cv = []types.AccessEndpoint{} } else { cv = *v } for _, value := range shape { - var col *types.AccessEndpoint - if err := awsAwsjson11_deserializeDocumentAccessEndpoint(&col, value); err != nil { + var col types.AccessEndpoint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAccessEndpoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6095,7 +6097,7 @@ func awsAwsjson11_deserializeDocumentApplication(v **types.Application, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "Enabled": @@ -6104,7 +6106,7 @@ func awsAwsjson11_deserializeDocumentApplication(v **types.Application, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "IconURL": @@ -6113,7 +6115,7 @@ func awsAwsjson11_deserializeDocumentApplication(v **types.Application, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IconURL = &jtv + sv.IconURL = ptr.String(jtv) } case "LaunchParameters": @@ -6122,7 +6124,7 @@ func awsAwsjson11_deserializeDocumentApplication(v **types.Application, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LaunchParameters = &jtv + sv.LaunchParameters = ptr.String(jtv) } case "LaunchPath": @@ -6131,7 +6133,7 @@ func awsAwsjson11_deserializeDocumentApplication(v **types.Application, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LaunchPath = &jtv + sv.LaunchPath = ptr.String(jtv) } case "Metadata": @@ -6145,7 +6147,7 @@ func awsAwsjson11_deserializeDocumentApplication(v **types.Application, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -6157,7 +6159,7 @@ func awsAwsjson11_deserializeDocumentApplication(v **types.Application, value in return nil } -func awsAwsjson11_deserializeDocumentApplications(v *[]*types.Application, value interface{}) error { +func awsAwsjson11_deserializeDocumentApplications(v *[]types.Application, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6170,18 +6172,20 @@ func awsAwsjson11_deserializeDocumentApplications(v *[]*types.Application, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Application + var cv []types.Application if *v == nil { - cv = []*types.Application{} + cv = []types.Application{} } else { cv = *v } for _, value := range shape { - var col *types.Application - if err := awsAwsjson11_deserializeDocumentApplication(&col, value); err != nil { + var col types.Application + destAddr := &col + if err := awsAwsjson11_deserializeDocumentApplication(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6217,7 +6221,7 @@ func awsAwsjson11_deserializeDocumentApplicationSettingsResponse(v **types.Appli if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "S3BucketName": @@ -6226,7 +6230,7 @@ func awsAwsjson11_deserializeDocumentApplicationSettingsResponse(v **types.Appli if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "SettingsGroup": @@ -6235,7 +6239,7 @@ func awsAwsjson11_deserializeDocumentApplicationSettingsResponse(v **types.Appli if !ok { return fmt.Errorf("expected SettingsGroup to be of type string, got %T instead", value) } - sv.SettingsGroup = &jtv + sv.SettingsGroup = ptr.String(jtv) } default: @@ -6358,7 +6362,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6411,7 +6415,7 @@ func awsAwsjson11_deserializeDocumentDirectoryConfig(v **types.DirectoryConfig, if !ok { return fmt.Errorf("expected DirectoryName to be of type string, got %T instead", value) } - sv.DirectoryName = &jtv + sv.DirectoryName = ptr.String(jtv) } case "OrganizationalUnitDistinguishedNames": @@ -6433,7 +6437,7 @@ func awsAwsjson11_deserializeDocumentDirectoryConfig(v **types.DirectoryConfig, return nil } -func awsAwsjson11_deserializeDocumentDirectoryConfigList(v *[]*types.DirectoryConfig, value interface{}) error { +func awsAwsjson11_deserializeDocumentDirectoryConfigList(v *[]types.DirectoryConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6446,18 +6450,20 @@ func awsAwsjson11_deserializeDocumentDirectoryConfigList(v *[]*types.DirectoryCo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DirectoryConfig + var cv []types.DirectoryConfig if *v == nil { - cv = []*types.DirectoryConfig{} + cv = []types.DirectoryConfig{} } else { cv = *v } for _, value := range shape { - var col *types.DirectoryConfig - if err := awsAwsjson11_deserializeDocumentDirectoryConfig(&col, value); err != nil { + var col types.DirectoryConfig + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDirectoryConfig(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6493,7 +6499,7 @@ func awsAwsjson11_deserializeDocumentDomainJoinInfo(v **types.DomainJoinInfo, va if !ok { return fmt.Errorf("expected DirectoryName to be of type string, got %T instead", value) } - sv.DirectoryName = &jtv + sv.DirectoryName = ptr.String(jtv) } case "OrganizationalUnitDistinguishedName": @@ -6502,7 +6508,7 @@ func awsAwsjson11_deserializeDocumentDomainJoinInfo(v **types.DomainJoinInfo, va if !ok { return fmt.Errorf("expected OrganizationalUnitDistinguishedName to be of type string, got %T instead", value) } - sv.OrganizationalUnitDistinguishedName = &jtv + sv.OrganizationalUnitDistinguishedName = ptr.String(jtv) } default: @@ -6514,7 +6520,7 @@ func awsAwsjson11_deserializeDocumentDomainJoinInfo(v **types.DomainJoinInfo, va return nil } -func awsAwsjson11_deserializeDocumentDomainList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDomainList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6527,21 +6533,21 @@ func awsAwsjson11_deserializeDocumentDomainList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Domain to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6550,7 +6556,7 @@ func awsAwsjson11_deserializeDocumentDomainList(v *[]*string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentEmbedHostDomains(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentEmbedHostDomains(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6563,21 +6569,21 @@ func awsAwsjson11_deserializeDocumentEmbedHostDomains(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected EmbedHostDomain to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6614,7 +6620,7 @@ func awsAwsjson11_deserializeDocumentFleet(v **types.Fleet, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "ComputeCapacityStatus": @@ -6641,7 +6647,7 @@ func awsAwsjson11_deserializeDocumentFleet(v **types.Fleet, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DisconnectTimeoutInSeconds": @@ -6663,7 +6669,7 @@ func awsAwsjson11_deserializeDocumentFleet(v **types.Fleet, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "DomainJoinInfo": @@ -6677,7 +6683,7 @@ func awsAwsjson11_deserializeDocumentFleet(v **types.Fleet, value interface{}) e if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.EnableDefaultInternetAccess = &jtv + sv.EnableDefaultInternetAccess = ptr.Bool(jtv) } case "FleetErrors": @@ -6700,7 +6706,7 @@ func awsAwsjson11_deserializeDocumentFleet(v **types.Fleet, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "IdleDisconnectTimeoutInSeconds": @@ -6722,7 +6728,7 @@ func awsAwsjson11_deserializeDocumentFleet(v **types.Fleet, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ImageArn = &jtv + sv.ImageArn = ptr.String(jtv) } case "ImageName": @@ -6731,7 +6737,7 @@ func awsAwsjson11_deserializeDocumentFleet(v **types.Fleet, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ImageName = &jtv + sv.ImageName = ptr.String(jtv) } case "InstanceType": @@ -6740,7 +6746,7 @@ func awsAwsjson11_deserializeDocumentFleet(v **types.Fleet, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "MaxUserDurationInSeconds": @@ -6762,7 +6768,7 @@ func awsAwsjson11_deserializeDocumentFleet(v **types.Fleet, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -6834,7 +6840,7 @@ func awsAwsjson11_deserializeDocumentFleetError(v **types.FleetError, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -6846,7 +6852,7 @@ func awsAwsjson11_deserializeDocumentFleetError(v **types.FleetError, value inte return nil } -func awsAwsjson11_deserializeDocumentFleetErrors(v *[]*types.FleetError, value interface{}) error { +func awsAwsjson11_deserializeDocumentFleetErrors(v *[]types.FleetError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6859,18 +6865,20 @@ func awsAwsjson11_deserializeDocumentFleetErrors(v *[]*types.FleetError, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FleetError + var cv []types.FleetError if *v == nil { - cv = []*types.FleetError{} + cv = []types.FleetError{} } else { cv = *v } for _, value := range shape { - var col *types.FleetError - if err := awsAwsjson11_deserializeDocumentFleetError(&col, value); err != nil { + var col types.FleetError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFleetError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6878,7 +6886,7 @@ func awsAwsjson11_deserializeDocumentFleetErrors(v *[]*types.FleetError, value i return nil } -func awsAwsjson11_deserializeDocumentFleetList(v *[]*types.Fleet, value interface{}) error { +func awsAwsjson11_deserializeDocumentFleetList(v *[]types.Fleet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6891,18 +6899,20 @@ func awsAwsjson11_deserializeDocumentFleetList(v *[]*types.Fleet, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Fleet + var cv []types.Fleet if *v == nil { - cv = []*types.Fleet{} + cv = []types.Fleet{} } else { cv = *v } for _, value := range shape { - var col *types.Fleet - if err := awsAwsjson11_deserializeDocumentFleet(&col, value); err != nil { + var col types.Fleet + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFleet(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6943,7 +6953,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected AppstreamAgentVersion to be of type string, got %T instead", value) } - sv.AppstreamAgentVersion = &jtv + sv.AppstreamAgentVersion = ptr.String(jtv) } case "Arn": @@ -6952,7 +6962,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "BaseImageArn": @@ -6961,7 +6971,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.BaseImageArn = &jtv + sv.BaseImageArn = ptr.String(jtv) } case "CreatedTime": @@ -6983,7 +6993,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DisplayName": @@ -6992,7 +7002,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "ImageBuilderName": @@ -7001,7 +7011,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ImageBuilderName = &jtv + sv.ImageBuilderName = ptr.String(jtv) } case "ImageBuilderSupported": @@ -7010,7 +7020,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ImageBuilderSupported = &jtv + sv.ImageBuilderSupported = jtv } case "ImagePermissions": @@ -7024,7 +7034,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Platform": @@ -7114,7 +7124,7 @@ func awsAwsjson11_deserializeDocumentImageBuilder(v **types.ImageBuilder, value if !ok { return fmt.Errorf("expected AppstreamAgentVersion to be of type string, got %T instead", value) } - sv.AppstreamAgentVersion = &jtv + sv.AppstreamAgentVersion = ptr.String(jtv) } case "Arn": @@ -7123,7 +7133,7 @@ func awsAwsjson11_deserializeDocumentImageBuilder(v **types.ImageBuilder, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -7145,7 +7155,7 @@ func awsAwsjson11_deserializeDocumentImageBuilder(v **types.ImageBuilder, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DisplayName": @@ -7154,7 +7164,7 @@ func awsAwsjson11_deserializeDocumentImageBuilder(v **types.ImageBuilder, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "DomainJoinInfo": @@ -7168,7 +7178,7 @@ func awsAwsjson11_deserializeDocumentImageBuilder(v **types.ImageBuilder, value if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.EnableDefaultInternetAccess = &jtv + sv.EnableDefaultInternetAccess = ptr.Bool(jtv) } case "IamRoleArn": @@ -7177,7 +7187,7 @@ func awsAwsjson11_deserializeDocumentImageBuilder(v **types.ImageBuilder, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "ImageArn": @@ -7186,7 +7196,7 @@ func awsAwsjson11_deserializeDocumentImageBuilder(v **types.ImageBuilder, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ImageArn = &jtv + sv.ImageArn = ptr.String(jtv) } case "ImageBuilderErrors": @@ -7200,7 +7210,7 @@ func awsAwsjson11_deserializeDocumentImageBuilder(v **types.ImageBuilder, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "Name": @@ -7209,7 +7219,7 @@ func awsAwsjson11_deserializeDocumentImageBuilder(v **types.ImageBuilder, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NetworkAccessConfiguration": @@ -7254,7 +7264,7 @@ func awsAwsjson11_deserializeDocumentImageBuilder(v **types.ImageBuilder, value return nil } -func awsAwsjson11_deserializeDocumentImageBuilderList(v *[]*types.ImageBuilder, value interface{}) error { +func awsAwsjson11_deserializeDocumentImageBuilderList(v *[]types.ImageBuilder, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7267,18 +7277,20 @@ func awsAwsjson11_deserializeDocumentImageBuilderList(v *[]*types.ImageBuilder, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImageBuilder + var cv []types.ImageBuilder if *v == nil { - cv = []*types.ImageBuilder{} + cv = []types.ImageBuilder{} } else { cv = *v } for _, value := range shape { - var col *types.ImageBuilder - if err := awsAwsjson11_deserializeDocumentImageBuilder(&col, value); err != nil { + var col types.ImageBuilder + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImageBuilder(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7323,7 +7335,7 @@ func awsAwsjson11_deserializeDocumentImageBuilderStateChangeReason(v **types.Ima if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7335,7 +7347,7 @@ func awsAwsjson11_deserializeDocumentImageBuilderStateChangeReason(v **types.Ima return nil } -func awsAwsjson11_deserializeDocumentImageList(v *[]*types.Image, value interface{}) error { +func awsAwsjson11_deserializeDocumentImageList(v *[]types.Image, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7348,18 +7360,20 @@ func awsAwsjson11_deserializeDocumentImageList(v *[]*types.Image, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Image + var cv []types.Image if *v == nil { - cv = []*types.Image{} + cv = []types.Image{} } else { cv = *v } for _, value := range shape { - var col *types.Image - if err := awsAwsjson11_deserializeDocumentImage(&col, value); err != nil { + var col types.Image + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7395,7 +7409,7 @@ func awsAwsjson11_deserializeDocumentImagePermissions(v **types.ImagePermissions if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.AllowFleet = &jtv + sv.AllowFleet = ptr.Bool(jtv) } case "allowImageBuilder": @@ -7404,7 +7418,7 @@ func awsAwsjson11_deserializeDocumentImagePermissions(v **types.ImagePermissions if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.AllowImageBuilder = &jtv + sv.AllowImageBuilder = ptr.Bool(jtv) } default: @@ -7453,7 +7467,7 @@ func awsAwsjson11_deserializeDocumentImageStateChangeReason(v **types.ImageState if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7493,7 +7507,7 @@ func awsAwsjson11_deserializeDocumentIncompatibleImageException(v **types.Incomp if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7533,7 +7547,7 @@ func awsAwsjson11_deserializeDocumentInvalidAccountStatusException(v **types.Inv if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7573,7 +7587,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterCombinationException(v **ty if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7613,7 +7627,7 @@ func awsAwsjson11_deserializeDocumentInvalidRoleException(v **types.InvalidRoleE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7662,7 +7676,7 @@ func awsAwsjson11_deserializeDocumentLastReportGenerationExecutionError(v **type if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -7674,7 +7688,7 @@ func awsAwsjson11_deserializeDocumentLastReportGenerationExecutionError(v **type return nil } -func awsAwsjson11_deserializeDocumentLastReportGenerationExecutionErrors(v *[]*types.LastReportGenerationExecutionError, value interface{}) error { +func awsAwsjson11_deserializeDocumentLastReportGenerationExecutionErrors(v *[]types.LastReportGenerationExecutionError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7687,18 +7701,20 @@ func awsAwsjson11_deserializeDocumentLastReportGenerationExecutionErrors(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LastReportGenerationExecutionError + var cv []types.LastReportGenerationExecutionError if *v == nil { - cv = []*types.LastReportGenerationExecutionError{} + cv = []types.LastReportGenerationExecutionError{} } else { cv = *v } for _, value := range shape { - var col *types.LastReportGenerationExecutionError - if err := awsAwsjson11_deserializeDocumentLastReportGenerationExecutionError(&col, value); err != nil { + var col types.LastReportGenerationExecutionError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLastReportGenerationExecutionError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7734,7 +7750,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7746,7 +7762,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson11_deserializeDocumentMetadata(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetadata(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7759,21 +7775,21 @@ func awsAwsjson11_deserializeDocumentMetadata(v *map[string]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -7810,7 +7826,7 @@ func awsAwsjson11_deserializeDocumentNetworkAccessConfiguration(v **types.Networ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EniId = &jtv + sv.EniId = ptr.String(jtv) } case "EniPrivateIpAddress": @@ -7819,7 +7835,7 @@ func awsAwsjson11_deserializeDocumentNetworkAccessConfiguration(v **types.Networ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EniPrivateIpAddress = &jtv + sv.EniPrivateIpAddress = ptr.String(jtv) } default: @@ -7859,7 +7875,7 @@ func awsAwsjson11_deserializeDocumentOperationNotPermittedException(v **types.Op if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7871,7 +7887,7 @@ func awsAwsjson11_deserializeDocumentOperationNotPermittedException(v **types.Op return nil } -func awsAwsjson11_deserializeDocumentOrganizationalUnitDistinguishedNamesList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrganizationalUnitDistinguishedNamesList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7884,21 +7900,21 @@ func awsAwsjson11_deserializeDocumentOrganizationalUnitDistinguishedNamesList(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected OrganizationalUnitDistinguishedName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7935,7 +7951,7 @@ func awsAwsjson11_deserializeDocumentRequestLimitExceededException(v **types.Req if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7975,7 +7991,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8024,7 +8040,7 @@ func awsAwsjson11_deserializeDocumentResourceError(v **types.ResourceError, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "ErrorTimestamp": @@ -8049,7 +8065,7 @@ func awsAwsjson11_deserializeDocumentResourceError(v **types.ResourceError, valu return nil } -func awsAwsjson11_deserializeDocumentResourceErrors(v *[]*types.ResourceError, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceErrors(v *[]types.ResourceError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8062,18 +8078,20 @@ func awsAwsjson11_deserializeDocumentResourceErrors(v *[]*types.ResourceError, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceError + var cv []types.ResourceError if *v == nil { - cv = []*types.ResourceError{} + cv = []types.ResourceError{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceError - if err := awsAwsjson11_deserializeDocumentResourceError(&col, value); err != nil { + var col types.ResourceError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8109,7 +8127,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8149,7 +8167,7 @@ func awsAwsjson11_deserializeDocumentResourceNotAvailableException(v **types.Res if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8189,7 +8207,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8201,7 +8219,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsAwsjson11_deserializeDocumentSecurityGroupIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityGroupIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8214,21 +8232,21 @@ func awsAwsjson11_deserializeDocumentSecurityGroupIdList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -8265,7 +8283,7 @@ func awsAwsjson11_deserializeDocumentServiceAccountCredentials(v **types.Service if !ok { return fmt.Errorf("expected AccountName to be of type string, got %T instead", value) } - sv.AccountName = &jtv + sv.AccountName = ptr.String(jtv) } case "AccountPassword": @@ -8274,7 +8292,7 @@ func awsAwsjson11_deserializeDocumentServiceAccountCredentials(v **types.Service if !ok { return fmt.Errorf("expected AccountPassword to be of type string, got %T instead", value) } - sv.AccountPassword = &jtv + sv.AccountPassword = ptr.String(jtv) } default: @@ -8332,7 +8350,7 @@ func awsAwsjson11_deserializeDocumentSession(v **types.Session, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FleetName = &jtv + sv.FleetName = ptr.String(jtv) } case "Id": @@ -8341,7 +8359,7 @@ func awsAwsjson11_deserializeDocumentSession(v **types.Session, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "MaxExpirationTime": @@ -8368,7 +8386,7 @@ func awsAwsjson11_deserializeDocumentSession(v **types.Session, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackName = &jtv + sv.StackName = ptr.String(jtv) } case "StartTime": @@ -8399,7 +8417,7 @@ func awsAwsjson11_deserializeDocumentSession(v **types.Session, value interface{ if !ok { return fmt.Errorf("expected UserId to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } default: @@ -8411,7 +8429,7 @@ func awsAwsjson11_deserializeDocumentSession(v **types.Session, value interface{ return nil } -func awsAwsjson11_deserializeDocumentSessionList(v *[]*types.Session, value interface{}) error { +func awsAwsjson11_deserializeDocumentSessionList(v *[]types.Session, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8424,18 +8442,20 @@ func awsAwsjson11_deserializeDocumentSessionList(v *[]*types.Session, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Session + var cv []types.Session if *v == nil { - cv = []*types.Session{} + cv = []types.Session{} } else { cv = *v } for _, value := range shape { - var col *types.Session - if err := awsAwsjson11_deserializeDocumentSession(&col, value); err != nil { + var col types.Session + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSession(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8476,7 +8496,7 @@ func awsAwsjson11_deserializeDocumentSharedImagePermissions(v **types.SharedImag if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.SharedAccountId = &jtv + sv.SharedAccountId = ptr.String(jtv) } default: @@ -8488,7 +8508,7 @@ func awsAwsjson11_deserializeDocumentSharedImagePermissions(v **types.SharedImag return nil } -func awsAwsjson11_deserializeDocumentSharedImagePermissionsList(v *[]*types.SharedImagePermissions, value interface{}) error { +func awsAwsjson11_deserializeDocumentSharedImagePermissionsList(v *[]types.SharedImagePermissions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8501,18 +8521,20 @@ func awsAwsjson11_deserializeDocumentSharedImagePermissionsList(v *[]*types.Shar return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SharedImagePermissions + var cv []types.SharedImagePermissions if *v == nil { - cv = []*types.SharedImagePermissions{} + cv = []types.SharedImagePermissions{} } else { cv = *v } for _, value := range shape { - var col *types.SharedImagePermissions - if err := awsAwsjson11_deserializeDocumentSharedImagePermissions(&col, value); err != nil { + var col types.SharedImagePermissions + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSharedImagePermissions(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8558,7 +8580,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -8580,7 +8602,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DisplayName": @@ -8589,7 +8611,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "EmbedHostDomains": @@ -8603,7 +8625,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected FeedbackURL to be of type string, got %T instead", value) } - sv.FeedbackURL = &jtv + sv.FeedbackURL = ptr.String(jtv) } case "Name": @@ -8612,7 +8634,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RedirectURL": @@ -8621,7 +8643,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected RedirectURL to be of type string, got %T instead", value) } - sv.RedirectURL = &jtv + sv.RedirectURL = ptr.String(jtv) } case "StackErrors": @@ -8685,7 +8707,7 @@ func awsAwsjson11_deserializeDocumentStackError(v **types.StackError, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -8697,7 +8719,7 @@ func awsAwsjson11_deserializeDocumentStackError(v **types.StackError, value inte return nil } -func awsAwsjson11_deserializeDocumentStackErrors(v *[]*types.StackError, value interface{}) error { +func awsAwsjson11_deserializeDocumentStackErrors(v *[]types.StackError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8710,18 +8732,20 @@ func awsAwsjson11_deserializeDocumentStackErrors(v *[]*types.StackError, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StackError + var cv []types.StackError if *v == nil { - cv = []*types.StackError{} + cv = []types.StackError{} } else { cv = *v } for _, value := range shape { - var col *types.StackError - if err := awsAwsjson11_deserializeDocumentStackError(&col, value); err != nil { + var col types.StackError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStackError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8729,7 +8753,7 @@ func awsAwsjson11_deserializeDocumentStackErrors(v *[]*types.StackError, value i return nil } -func awsAwsjson11_deserializeDocumentStackList(v *[]*types.Stack, value interface{}) error { +func awsAwsjson11_deserializeDocumentStackList(v *[]types.Stack, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8742,18 +8766,20 @@ func awsAwsjson11_deserializeDocumentStackList(v *[]*types.Stack, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Stack + var cv []types.Stack if *v == nil { - cv = []*types.Stack{} + cv = []types.Stack{} } else { cv = *v } for _, value := range shape { - var col *types.Stack - if err := awsAwsjson11_deserializeDocumentStack(&col, value); err != nil { + var col types.Stack + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStack(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8803,7 +8829,7 @@ func awsAwsjson11_deserializeDocumentStorageConnector(v **types.StorageConnector if !ok { return fmt.Errorf("expected ResourceIdentifier to be of type string, got %T instead", value) } - sv.ResourceIdentifier = &jtv + sv.ResourceIdentifier = ptr.String(jtv) } default: @@ -8815,7 +8841,7 @@ func awsAwsjson11_deserializeDocumentStorageConnector(v **types.StorageConnector return nil } -func awsAwsjson11_deserializeDocumentStorageConnectorList(v *[]*types.StorageConnector, value interface{}) error { +func awsAwsjson11_deserializeDocumentStorageConnectorList(v *[]types.StorageConnector, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8828,18 +8854,20 @@ func awsAwsjson11_deserializeDocumentStorageConnectorList(v *[]*types.StorageCon return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StorageConnector + var cv []types.StorageConnector if *v == nil { - cv = []*types.StorageConnector{} + cv = []types.StorageConnector{} } else { cv = *v } for _, value := range shape { - var col *types.StorageConnector - if err := awsAwsjson11_deserializeDocumentStorageConnector(&col, value); err != nil { + var col types.StorageConnector + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStorageConnector(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8847,7 +8875,7 @@ func awsAwsjson11_deserializeDocumentStorageConnectorList(v *[]*types.StorageCon return nil } -func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8860,21 +8888,21 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -8883,7 +8911,7 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentSubnetIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnetIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8896,21 +8924,21 @@ func awsAwsjson11_deserializeDocumentSubnetIdList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -8919,7 +8947,7 @@ func awsAwsjson11_deserializeDocumentSubnetIdList(v *[]*string, value interface{ return nil } -func awsAwsjson11_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8932,21 +8960,21 @@ func awsAwsjson11_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -8996,7 +9024,7 @@ func awsAwsjson11_deserializeDocumentUsageReportSubscription(v **types.UsageRepo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "Schedule": @@ -9022,7 +9050,7 @@ func awsAwsjson11_deserializeDocumentUsageReportSubscription(v **types.UsageRepo return nil } -func awsAwsjson11_deserializeDocumentUsageReportSubscriptionList(v *[]*types.UsageReportSubscription, value interface{}) error { +func awsAwsjson11_deserializeDocumentUsageReportSubscriptionList(v *[]types.UsageReportSubscription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9035,18 +9063,20 @@ func awsAwsjson11_deserializeDocumentUsageReportSubscriptionList(v *[]*types.Usa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UsageReportSubscription + var cv []types.UsageReportSubscription if *v == nil { - cv = []*types.UsageReportSubscription{} + cv = []types.UsageReportSubscription{} } else { cv = *v } for _, value := range shape { - var col *types.UsageReportSubscription - if err := awsAwsjson11_deserializeDocumentUsageReportSubscription(&col, value); err != nil { + var col types.UsageReportSubscription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUsageReportSubscription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9082,7 +9112,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AuthenticationType": @@ -9113,7 +9143,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "FirstName": @@ -9122,7 +9152,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected UserAttributeValue to be of type string, got %T instead", value) } - sv.FirstName = &jtv + sv.FirstName = ptr.String(jtv) } case "LastName": @@ -9131,7 +9161,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected UserAttributeValue to be of type string, got %T instead", value) } - sv.LastName = &jtv + sv.LastName = ptr.String(jtv) } case "Status": @@ -9140,7 +9170,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "UserName": @@ -9149,7 +9179,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected Username to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -9161,7 +9191,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentUserList(v *[]*types.User, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserList(v *[]types.User, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9174,18 +9204,20 @@ func awsAwsjson11_deserializeDocumentUserList(v *[]*types.User, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.User + var cv []types.User if *v == nil { - cv = []*types.User{} + cv = []types.User{} } else { cv = *v } for _, value := range shape { - var col *types.User - if err := awsAwsjson11_deserializeDocumentUser(&col, value); err != nil { + var col types.User + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUser(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9242,7 +9274,7 @@ func awsAwsjson11_deserializeDocumentUserSetting(v **types.UserSetting, value in return nil } -func awsAwsjson11_deserializeDocumentUserSettingList(v *[]*types.UserSetting, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserSettingList(v *[]types.UserSetting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9255,18 +9287,20 @@ func awsAwsjson11_deserializeDocumentUserSettingList(v *[]*types.UserSetting, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserSetting + var cv []types.UserSetting if *v == nil { - cv = []*types.UserSetting{} + cv = []types.UserSetting{} } else { cv = *v } for _, value := range shape { - var col *types.UserSetting - if err := awsAwsjson11_deserializeDocumentUserSetting(&col, value); err != nil { + var col types.UserSetting + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUserSetting(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9311,7 +9345,7 @@ func awsAwsjson11_deserializeDocumentUserStackAssociation(v **types.UserStackAss if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.SendEmailNotification = &jtv + sv.SendEmailNotification = jtv } case "StackName": @@ -9320,7 +9354,7 @@ func awsAwsjson11_deserializeDocumentUserStackAssociation(v **types.UserStackAss if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackName = &jtv + sv.StackName = ptr.String(jtv) } case "UserName": @@ -9329,7 +9363,7 @@ func awsAwsjson11_deserializeDocumentUserStackAssociation(v **types.UserStackAss if !ok { return fmt.Errorf("expected Username to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -9378,7 +9412,7 @@ func awsAwsjson11_deserializeDocumentUserStackAssociationError(v **types.UserSta if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "UserStackAssociation": @@ -9395,7 +9429,7 @@ func awsAwsjson11_deserializeDocumentUserStackAssociationError(v **types.UserSta return nil } -func awsAwsjson11_deserializeDocumentUserStackAssociationErrorList(v *[]*types.UserStackAssociationError, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserStackAssociationErrorList(v *[]types.UserStackAssociationError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9408,18 +9442,20 @@ func awsAwsjson11_deserializeDocumentUserStackAssociationErrorList(v *[]*types.U return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserStackAssociationError + var cv []types.UserStackAssociationError if *v == nil { - cv = []*types.UserStackAssociationError{} + cv = []types.UserStackAssociationError{} } else { cv = *v } for _, value := range shape { - var col *types.UserStackAssociationError - if err := awsAwsjson11_deserializeDocumentUserStackAssociationError(&col, value); err != nil { + var col types.UserStackAssociationError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUserStackAssociationError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9427,7 +9463,7 @@ func awsAwsjson11_deserializeDocumentUserStackAssociationErrorList(v *[]*types.U return nil } -func awsAwsjson11_deserializeDocumentUserStackAssociationList(v *[]*types.UserStackAssociation, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserStackAssociationList(v *[]types.UserStackAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9440,18 +9476,20 @@ func awsAwsjson11_deserializeDocumentUserStackAssociationList(v *[]*types.UserSt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserStackAssociation + var cv []types.UserStackAssociation if *v == nil { - cv = []*types.UserStackAssociation{} + cv = []types.UserStackAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.UserStackAssociation - if err := awsAwsjson11_deserializeDocumentUserStackAssociation(&col, value); err != nil { + var col types.UserStackAssociation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUserStackAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9631,7 +9669,7 @@ func awsAwsjson11_deserializeOpDocumentCopyImageOutput(v **CopyImageOutput, valu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.DestinationImageName = &jtv + sv.DestinationImageName = ptr.String(jtv) } default: @@ -9792,7 +9830,7 @@ func awsAwsjson11_deserializeOpDocumentCreateImageBuilderStreamingURLOutput(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StreamingURL = &jtv + sv.StreamingURL = ptr.String(jtv) } default: @@ -9881,7 +9919,7 @@ func awsAwsjson11_deserializeOpDocumentCreateStreamingURLOutput(v **CreateStream if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StreamingURL = &jtv + sv.StreamingURL = ptr.String(jtv) } default: @@ -9921,7 +9959,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUsageReportSubscriptionOutput(v **C if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "Schedule": @@ -10264,7 +10302,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDirectoryConfigsOutput(v **Descri if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10309,7 +10347,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFleetsOutput(v **DescribeFleetsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10354,7 +10392,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageBuildersOutput(v **DescribeI if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10394,7 +10432,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImagePermissionsOutput(v **Descri if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NextToken": @@ -10403,7 +10441,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImagePermissionsOutput(v **Descri if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SharedImagePermissionsList": @@ -10453,7 +10491,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImagesOutput(v **DescribeImagesOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10493,7 +10531,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSessionsOutput(v **DescribeSessio if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Sessions": @@ -10538,7 +10576,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStacksOutput(v **DescribeStacksOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Stacks": @@ -10583,7 +10621,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUsageReportSubscriptionsOutput(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "UsageReportSubscriptions": @@ -10628,7 +10666,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUsersOutput(v **DescribeUsersOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Users": @@ -10673,7 +10711,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserStackAssociationsOutput(v **D if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "UserStackAssociations": @@ -10847,7 +10885,7 @@ func awsAwsjson11_deserializeOpDocumentListAssociatedFleetsOutput(v **ListAssoci if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10892,7 +10930,7 @@ func awsAwsjson11_deserializeOpDocumentListAssociatedStacksOutput(v **ListAssoci if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: diff --git a/service/appstream/go.mod b/service/appstream/go.mod index d8d22390e44..5164bd415c1 100644 --- a/service/appstream/go.mod +++ b/service/appstream/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/appstream go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/appstream/serializers.go b/service/appstream/serializers.go index 7394fe34b39..848587b9365 100644 --- a/service/appstream/serializers.go +++ b/service/appstream/serializers.go @@ -2178,17 +2178,13 @@ func awsAwsjson11_serializeDocumentAccessEndpoint(v *types.AccessEndpoint, value return nil } -func awsAwsjson11_serializeDocumentAccessEndpointList(v []*types.AccessEndpoint, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAccessEndpointList(v []types.AccessEndpoint, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAccessEndpoint(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAccessEndpoint(&v[i], av); err != nil { return err } } @@ -2199,9 +2195,9 @@ func awsAwsjson11_serializeDocumentApplicationSettings(v *types.ApplicationSetti object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.SettingsGroup != nil { @@ -2212,32 +2208,24 @@ func awsAwsjson11_serializeDocumentApplicationSettings(v *types.ApplicationSetti return nil } -func awsAwsjson11_serializeDocumentArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentAwsAccountIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAwsAccountIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2254,17 +2242,13 @@ func awsAwsjson11_serializeDocumentComputeCapacity(v *types.ComputeCapacity, val return nil } -func awsAwsjson11_serializeDocumentDirectoryNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDirectoryNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2286,32 +2270,24 @@ func awsAwsjson11_serializeDocumentDomainJoinInfo(v *types.DomainJoinInfo, value return nil } -func awsAwsjson11_serializeDocumentDomainList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDomainList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentEmbedHostDomains(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEmbedHostDomains(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2344,32 +2320,24 @@ func awsAwsjson11_serializeDocumentImagePermissions(v *types.ImagePermissions, v return nil } -func awsAwsjson11_serializeDocumentOrganizationalUnitDistinguishedNamesList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOrganizationalUnitDistinguishedNamesList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentSecurityGroupIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecurityGroupIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2426,79 +2394,59 @@ func awsAwsjson11_serializeDocumentStorageConnector(v *types.StorageConnector, v return nil } -func awsAwsjson11_serializeDocumentStorageConnectorList(v []*types.StorageConnector, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStorageConnectorList(v []types.StorageConnector, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentStorageConnector(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentStorageConnector(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentSubnetIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnetIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2520,17 +2468,13 @@ func awsAwsjson11_serializeDocumentUserSetting(v *types.UserSetting, value smith return nil } -func awsAwsjson11_serializeDocumentUserSettingList(v []*types.UserSetting, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentUserSettingList(v []types.UserSetting, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentUserSetting(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentUserSetting(&v[i], av); err != nil { return err } } @@ -2546,9 +2490,9 @@ func awsAwsjson11_serializeDocumentUserStackAssociation(v *types.UserStackAssoci ok.String(string(v.AuthenticationType)) } - if v.SendEmailNotification != nil { + if v.SendEmailNotification { ok := object.Key("SendEmailNotification") - ok.Boolean(*v.SendEmailNotification) + ok.Boolean(v.SendEmailNotification) } if v.StackName != nil { @@ -2564,17 +2508,13 @@ func awsAwsjson11_serializeDocumentUserStackAssociation(v *types.UserStackAssoci return nil } -func awsAwsjson11_serializeDocumentUserStackAssociationList(v []*types.UserStackAssociation, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentUserStackAssociationList(v []types.UserStackAssociation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentUserStackAssociation(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentUserStackAssociation(&v[i], av); err != nil { return err } } @@ -3651,9 +3591,9 @@ func awsAwsjson11_serializeOpDocumentUpdateFleetInput(v *UpdateFleetInput, value } } - if v.DeleteVpcConfig != nil { + if v.DeleteVpcConfig { ok := object.Key("DeleteVpcConfig") - ok.Boolean(*v.DeleteVpcConfig) + ok.Boolean(v.DeleteVpcConfig) } if v.Description != nil { @@ -3782,9 +3722,9 @@ func awsAwsjson11_serializeOpDocumentUpdateStackInput(v *UpdateStackInput, value } } - if v.DeleteStorageConnectors != nil { + if v.DeleteStorageConnectors { ok := object.Key("DeleteStorageConnectors") - ok.Boolean(*v.DeleteStorageConnectors) + ok.Boolean(v.DeleteStorageConnectors) } if v.Description != nil { diff --git a/service/appstream/types/types.go b/service/appstream/types/types.go index 1390017fe5e..93614a3cc7b 100644 --- a/service/appstream/types/types.go +++ b/service/appstream/types/types.go @@ -30,7 +30,7 @@ type Application struct { DisplayName *string // If there is a problem, the application can be disabled after image creation. - Enabled *bool + Enabled bool // The URL for the application icon. This URL might be time-limited. IconURL *string @@ -42,7 +42,7 @@ type Application struct { LaunchPath *string // Additional attributes that describe the application. - Metadata map[string]*string + Metadata map[string]string // The name of the application. Name *string @@ -55,7 +55,7 @@ type ApplicationSettings struct { // streaming sessions. // // This member is required. - Enabled *bool + Enabled bool // The path prefix for the S3 bucket where users’ persistent application settings // are stored. You can allow the same persistent application settings to be used @@ -68,7 +68,7 @@ type ApplicationSettingsResponse struct { // Specifies whether persistent application settings are enabled for users during // their streaming sessions. - Enabled *bool + Enabled bool // The S3 bucket where users’ persistent application settings are stored. When // persistent application settings are enabled for the first time for an account in @@ -121,7 +121,7 @@ type DirectoryConfig struct { CreatedTime *time.Time // The distinguished names of the organizational units for computer accounts. - OrganizationalUnitDistinguishedNames []*string + OrganizationalUnitDistinguishedNames []string // The credentials for the service account used by the fleet or image builder to // connect to the directory. @@ -269,7 +269,7 @@ type Fleet struct { EnableDefaultInternetAccess *bool // The fleet errors. - FleetErrors []*FleetError + FleetErrors []FleetError // The fleet type. ALWAYS_ON Provides users with instant-on access to their apps. // You are charged for all running instances in your fleet, even if no users are @@ -353,7 +353,7 @@ type Image struct { Name *string // The applications associated with the image. - Applications []*Application + Applications []Application // The version of the AppStream 2.0 agent to use for instances that are launched // from this image. @@ -379,7 +379,7 @@ type Image struct { ImageBuilderName *string // Indicates whether an image builder can be launched from this image. - ImageBuilderSupported *bool + ImageBuilderSupported bool // The permissions to provide to the destination AWS account for the specified // image. @@ -414,7 +414,7 @@ type ImageBuilder struct { // The list of virtual private cloud (VPC) interface endpoint objects. // Administrators can connect to the image builder only through the specified // endpoints. - AccessEndpoints []*AccessEndpoint + AccessEndpoints []AccessEndpoint // The version of the AppStream 2.0 agent that is currently being used by the image // builder. @@ -454,7 +454,7 @@ type ImageBuilder struct { ImageArn *string // The image builder errors. - ImageBuilderErrors []*ResourceError + ImageBuilderErrors []ResourceError // The instance type for the image builder. The following instance types are // available: @@ -714,7 +714,7 @@ type Stack struct { // The list of virtual private cloud (VPC) interface endpoint objects. Users of the // stack can connect to AppStream 2.0 only through the specified endpoints. - AccessEndpoints []*AccessEndpoint + AccessEndpoints []AccessEndpoint // The persistent application settings for users of the stack. ApplicationSettings *ApplicationSettingsResponse @@ -734,7 +734,7 @@ type Stack struct { // The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. // You must approve the domains that you want to host embedded AppStream 2.0 // streaming sessions. - EmbedHostDomains []*string + EmbedHostDomains []string // The URL that users are redirected to after they click the Send Feedback link. If // no URL is specified, no Send Feedback link is displayed. @@ -744,14 +744,14 @@ type Stack struct { RedirectURL *string // The errors for the stack. - StackErrors []*StackError + StackErrors []StackError // The storage connectors to enable. - StorageConnectors []*StorageConnector + StorageConnectors []StorageConnector // The actions that are enabled or disabled for users during their streaming // sessions. By default these actions are enabled. - UserSettings []*UserSetting + UserSettings []UserSetting } // Describes a stack error. @@ -773,7 +773,7 @@ type StorageConnector struct { ConnectorType StorageConnectorType // The names of the domains for the account. - Domains []*string + Domains []string // The ARN of the storage connector. ResourceIdentifier *string @@ -798,7 +798,7 @@ type UsageReportSubscription struct { Schedule UsageReportSchedule // The errors that were returned if usage reports couldn't be generated. - SubscriptionErrors []*LastReportGenerationExecutionError + SubscriptionErrors []LastReportGenerationExecutionError } // Describes a user in the user pool. @@ -816,7 +816,7 @@ type User struct { CreatedTime *time.Time // Specifies whether the user in the user pool is enabled. - Enabled *bool + Enabled bool // The first name, or given name, of the user. FirstName *string @@ -881,7 +881,7 @@ type UserStackAssociation struct { // Specifies whether a welcome email is sent to a user after the user is created in // the user pool. - SendEmailNotification *bool + SendEmailNotification bool } // Describes the error that is returned when a user can’t be associated with or @@ -904,10 +904,10 @@ type UserStackAssociationError struct { type VpcConfig struct { // The identifiers of the security groups for the fleet or image builder. - SecurityGroupIds []*string + SecurityGroupIds []string // The identifiers of the subnets to which a network interface is attached from the // fleet instance or image builder instance. Fleet instances use one or more // subnets. Image builder instances use one subnet. - SubnetIds []*string + SubnetIds []string } diff --git a/service/appstream/validators.go b/service/appstream/validators.go index 8786c7e6b12..db675ad49c0 100644 --- a/service/appstream/validators.go +++ b/service/appstream/validators.go @@ -937,13 +937,13 @@ func validateAccessEndpoint(v *types.AccessEndpoint) error { } } -func validateAccessEndpointList(v []*types.AccessEndpoint) error { +func validateAccessEndpointList(v []types.AccessEndpoint) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AccessEndpointList"} for i := range v { - if err := validateAccessEndpoint(v[i]); err != nil { + if err := validateAccessEndpoint(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -959,9 +959,6 @@ func validateApplicationSettings(v *types.ApplicationSettings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ApplicationSettings"} - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1017,13 +1014,13 @@ func validateStorageConnector(v *types.StorageConnector) error { } } -func validateStorageConnectorList(v []*types.StorageConnector) error { +func validateStorageConnectorList(v []types.StorageConnector) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "StorageConnectorList"} for i := range v { - if err := validateStorageConnector(v[i]); err != nil { + if err := validateStorageConnector(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1052,13 +1049,13 @@ func validateUserSetting(v *types.UserSetting) error { } } -func validateUserSettingList(v []*types.UserSetting) error { +func validateUserSettingList(v []types.UserSetting) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UserSettingList"} for i := range v { - if err := validateUserSetting(v[i]); err != nil { + if err := validateUserSetting(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1090,13 +1087,13 @@ func validateUserStackAssociation(v *types.UserStackAssociation) error { } } -func validateUserStackAssociationList(v []*types.UserStackAssociation) error { +func validateUserStackAssociationList(v []types.UserStackAssociation) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UserStackAssociationList"} for i := range v { - if err := validateUserStackAssociation(v[i]); err != nil { + if err := validateUserStackAssociation(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/appsync/api_op_CreateApiCache.go b/service/appsync/api_op_CreateApiCache.go index ae3e1e512d4..271b9d4b4f0 100644 --- a/service/appsync/api_op_CreateApiCache.go +++ b/service/appsync/api_op_CreateApiCache.go @@ -48,7 +48,7 @@ type CreateApiCacheInput struct { // TTL in seconds for cache entries. Valid values are between 1 and 3600 seconds. // // This member is required. - Ttl *int64 + Ttl int64 // The cache instance type. Valid values are // @@ -97,11 +97,11 @@ type CreateApiCacheInput struct { // At rest encryption flag for cache. This setting cannot be updated after // creation. - AtRestEncryptionEnabled *bool + AtRestEncryptionEnabled bool // Transit encryption flag when connecting to cache. This setting cannot be updated // after creation. - TransitEncryptionEnabled *bool + TransitEncryptionEnabled bool } // Represents the output of a CreateApiCache operation. diff --git a/service/appsync/api_op_CreateApiKey.go b/service/appsync/api_op_CreateApiKey.go index bd527ed7e2f..9a45cce2fad 100644 --- a/service/appsync/api_op_CreateApiKey.go +++ b/service/appsync/api_op_CreateApiKey.go @@ -42,7 +42,7 @@ type CreateApiKeyInput struct { // represented as seconds since the epoch, rounded down to the nearest hour. The // default value for this parameter is 7 days from creation time. For more // information, see . - Expires *int64 + Expires int64 } type CreateApiKeyOutput struct { diff --git a/service/appsync/api_op_CreateGraphqlApi.go b/service/appsync/api_op_CreateGraphqlApi.go index 5428f33fca1..97ea5eddb8f 100644 --- a/service/appsync/api_op_CreateGraphqlApi.go +++ b/service/appsync/api_op_CreateGraphqlApi.go @@ -40,7 +40,7 @@ type CreateGraphqlApiInput struct { Name *string // A list of additional authentication providers for the GraphqlApi API. - AdditionalAuthenticationProviders []*types.AdditionalAuthenticationProvider + AdditionalAuthenticationProviders []types.AdditionalAuthenticationProvider // The Amazon CloudWatch Logs configuration. LogConfig *types.LogConfig @@ -49,13 +49,13 @@ type CreateGraphqlApiInput struct { OpenIDConnectConfig *types.OpenIDConnectConfig // A TagMap object. - Tags map[string]*string + Tags map[string]string // The Amazon Cognito user pool configuration. UserPoolConfig *types.UserPoolConfig // A flag indicating whether to enable X-Ray tracing for the GraphqlApi. - XrayEnabled *bool + XrayEnabled bool } type CreateGraphqlApiOutput struct { diff --git a/service/appsync/api_op_ListApiKeys.go b/service/appsync/api_op_ListApiKeys.go index 3a1a0b7e466..a57a9411a2c 100644 --- a/service/appsync/api_op_ListApiKeys.go +++ b/service/appsync/api_op_ListApiKeys.go @@ -38,7 +38,7 @@ type ListApiKeysInput struct { ApiId *string // The maximum number of results you want the request to return. - MaxResults *int32 + MaxResults int32 // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. @@ -48,7 +48,7 @@ type ListApiKeysInput struct { type ListApiKeysOutput struct { // The ApiKey objects. - ApiKeys []*types.ApiKey + ApiKeys []types.ApiKey // An identifier to be passed in the next request to this operation to return the // next set of items in the list. diff --git a/service/appsync/api_op_ListDataSources.go b/service/appsync/api_op_ListDataSources.go index f8d1b9e1153..c5e689cccfe 100644 --- a/service/appsync/api_op_ListDataSources.go +++ b/service/appsync/api_op_ListDataSources.go @@ -35,7 +35,7 @@ type ListDataSourcesInput struct { ApiId *string // The maximum number of results you want the request to return. - MaxResults *int32 + MaxResults int32 // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. @@ -45,7 +45,7 @@ type ListDataSourcesInput struct { type ListDataSourcesOutput struct { // The DataSource objects. - DataSources []*types.DataSource + DataSources []types.DataSource // An identifier to be passed in the next request to this operation to return the // next set of items in the list. diff --git a/service/appsync/api_op_ListFunctions.go b/service/appsync/api_op_ListFunctions.go index 699ceb1693a..fb9ad4d8144 100644 --- a/service/appsync/api_op_ListFunctions.go +++ b/service/appsync/api_op_ListFunctions.go @@ -35,7 +35,7 @@ type ListFunctionsInput struct { ApiId *string // The maximum number of results you want the request to return. - MaxResults *int32 + MaxResults int32 // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. @@ -45,7 +45,7 @@ type ListFunctionsInput struct { type ListFunctionsOutput struct { // A list of Function objects. - Functions []*types.FunctionConfiguration + Functions []types.FunctionConfiguration // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. diff --git a/service/appsync/api_op_ListGraphqlApis.go b/service/appsync/api_op_ListGraphqlApis.go index eccefd8ebc5..ec71c9a51ce 100644 --- a/service/appsync/api_op_ListGraphqlApis.go +++ b/service/appsync/api_op_ListGraphqlApis.go @@ -30,7 +30,7 @@ func (c *Client) ListGraphqlApis(ctx context.Context, params *ListGraphqlApisInp type ListGraphqlApisInput struct { // The maximum number of results you want the request to return. - MaxResults *int32 + MaxResults int32 // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. @@ -40,7 +40,7 @@ type ListGraphqlApisInput struct { type ListGraphqlApisOutput struct { // The GraphqlApi objects. - GraphqlApis []*types.GraphqlApi + GraphqlApis []types.GraphqlApi // An identifier to be passed in the next request to this operation to return the // next set of items in the list. diff --git a/service/appsync/api_op_ListResolvers.go b/service/appsync/api_op_ListResolvers.go index 8819ce3a96f..18fe5ca2611 100644 --- a/service/appsync/api_op_ListResolvers.go +++ b/service/appsync/api_op_ListResolvers.go @@ -40,7 +40,7 @@ type ListResolversInput struct { TypeName *string // The maximum number of results you want the request to return. - MaxResults *int32 + MaxResults int32 // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. @@ -54,7 +54,7 @@ type ListResolversOutput struct { NextToken *string // The Resolver objects. - Resolvers []*types.Resolver + Resolvers []types.Resolver // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appsync/api_op_ListResolversByFunction.go b/service/appsync/api_op_ListResolversByFunction.go index ee971326dfd..779d30fac88 100644 --- a/service/appsync/api_op_ListResolversByFunction.go +++ b/service/appsync/api_op_ListResolversByFunction.go @@ -40,7 +40,7 @@ type ListResolversByFunctionInput struct { FunctionId *string // The maximum number of results you want the request to return. - MaxResults *int32 + MaxResults int32 // An identifier that was returned from the previous call to this operation, which // you can use to return the next set of items in the list. @@ -53,7 +53,7 @@ type ListResolversByFunctionOutput struct { NextToken *string // The list of resolvers. - Resolvers []*types.Resolver + Resolvers []types.Resolver // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appsync/api_op_ListTagsForResource.go b/service/appsync/api_op_ListTagsForResource.go index 2ee7ae21bec..1c0ac077ef8 100644 --- a/service/appsync/api_op_ListTagsForResource.go +++ b/service/appsync/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // A TagMap object. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appsync/api_op_ListTypes.go b/service/appsync/api_op_ListTypes.go index 626f0663a23..62cc19863a8 100644 --- a/service/appsync/api_op_ListTypes.go +++ b/service/appsync/api_op_ListTypes.go @@ -40,7 +40,7 @@ type ListTypesInput struct { Format types.TypeDefinitionFormat // The maximum number of results you want the request to return. - MaxResults *int32 + MaxResults int32 // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. @@ -54,7 +54,7 @@ type ListTypesOutput struct { NextToken *string // The Type objects. - Types []*types.Type + Types []types.Type // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/appsync/api_op_TagResource.go b/service/appsync/api_op_TagResource.go index 049e48c8808..b3343a6e871 100644 --- a/service/appsync/api_op_TagResource.go +++ b/service/appsync/api_op_TagResource.go @@ -36,7 +36,7 @@ type TagResourceInput struct { // A TagMap object. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/appsync/api_op_UntagResource.go b/service/appsync/api_op_UntagResource.go index 32da25eaf77..abcd53b9b69 100644 --- a/service/appsync/api_op_UntagResource.go +++ b/service/appsync/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // A list of TagKey objects. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/appsync/api_op_UpdateApiCache.go b/service/appsync/api_op_UpdateApiCache.go index e626940b92c..c7c5daf46ee 100644 --- a/service/appsync/api_op_UpdateApiCache.go +++ b/service/appsync/api_op_UpdateApiCache.go @@ -48,7 +48,7 @@ type UpdateApiCacheInput struct { // TTL in seconds for cache entries. Valid values are between 1 and 3600 seconds. // // This member is required. - Ttl *int64 + Ttl int64 // The cache instance type. Valid values are // diff --git a/service/appsync/api_op_UpdateApiKey.go b/service/appsync/api_op_UpdateApiKey.go index 4591ca0e0ac..f17481882e7 100644 --- a/service/appsync/api_op_UpdateApiKey.go +++ b/service/appsync/api_op_UpdateApiKey.go @@ -44,7 +44,7 @@ type UpdateApiKeyInput struct { // The time from update time after which the API key expires. The date is // represented as seconds since the epoch. For more information, see . - Expires *int64 + Expires int64 } type UpdateApiKeyOutput struct { diff --git a/service/appsync/api_op_UpdateGraphqlApi.go b/service/appsync/api_op_UpdateGraphqlApi.go index 0f1c1aa6121..3cb1fd70c0c 100644 --- a/service/appsync/api_op_UpdateGraphqlApi.go +++ b/service/appsync/api_op_UpdateGraphqlApi.go @@ -40,7 +40,7 @@ type UpdateGraphqlApiInput struct { Name *string // A list of additional authentication providers for the GraphqlApi API. - AdditionalAuthenticationProviders []*types.AdditionalAuthenticationProvider + AdditionalAuthenticationProviders []types.AdditionalAuthenticationProvider // The new authentication type for the GraphqlApi object. AuthenticationType types.AuthenticationType @@ -55,7 +55,7 @@ type UpdateGraphqlApiInput struct { UserPoolConfig *types.UserPoolConfig // A flag indicating whether to enable X-Ray tracing for the GraphqlApi. - XrayEnabled *bool + XrayEnabled bool } type UpdateGraphqlApiOutput struct { diff --git a/service/appsync/deserializers.go b/service/appsync/deserializers.go index 16205e4035e..9f2661f3134 100644 --- a/service/appsync/deserializers.go +++ b/service/appsync/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "io/ioutil" @@ -2931,7 +2932,7 @@ func awsRestjson1_deserializeOpDocumentGetSchemaCreationStatusOutput(v **GetSche if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "status": @@ -3264,7 +3265,7 @@ func awsRestjson1_deserializeOpDocumentListApiKeysOutput(v **ListApiKeysOutput, if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3429,7 +3430,7 @@ func awsRestjson1_deserializeOpDocumentListDataSourcesOutput(v **ListDataSources if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3594,7 +3595,7 @@ func awsRestjson1_deserializeOpDocumentListFunctionsOutput(v **ListFunctionsOutp if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3756,7 +3757,7 @@ func awsRestjson1_deserializeOpDocumentListGraphqlApisOutput(v **ListGraphqlApis if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3916,7 +3917,7 @@ func awsRestjson1_deserializeOpDocumentListResolversOutput(v **ListResolversOutp if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "resolvers": @@ -4081,7 +4082,7 @@ func awsRestjson1_deserializeOpDocumentListResolversByFunctionOutput(v **ListRes if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "resolvers": @@ -4411,7 +4412,7 @@ func awsRestjson1_deserializeOpDocumentListTypesOutput(v **ListTypesOutput, valu if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "types": @@ -6324,7 +6325,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6386,7 +6387,7 @@ func awsRestjson1_deserializeDocumentAdditionalAuthenticationProvider(v **types. return nil } -func awsRestjson1_deserializeDocumentAdditionalAuthenticationProviders(v *[]*types.AdditionalAuthenticationProvider, value interface{}) error { +func awsRestjson1_deserializeDocumentAdditionalAuthenticationProviders(v *[]types.AdditionalAuthenticationProvider, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6399,18 +6400,20 @@ func awsRestjson1_deserializeDocumentAdditionalAuthenticationProviders(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AdditionalAuthenticationProvider + var cv []types.AdditionalAuthenticationProvider if *v == nil { - cv = []*types.AdditionalAuthenticationProvider{} + cv = []types.AdditionalAuthenticationProvider{} } else { cv = *v } for _, value := range shape { - var col *types.AdditionalAuthenticationProvider - if err := awsRestjson1_deserializeDocumentAdditionalAuthenticationProvider(&col, value); err != nil { + var col types.AdditionalAuthenticationProvider + destAddr := &col + if err := awsRestjson1_deserializeDocumentAdditionalAuthenticationProvider(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6455,7 +6458,7 @@ func awsRestjson1_deserializeDocumentApiCache(v **types.ApiCache, value interfac if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AtRestEncryptionEnabled = &jtv + sv.AtRestEncryptionEnabled = jtv } case "status": @@ -6473,7 +6476,7 @@ func awsRestjson1_deserializeDocumentApiCache(v **types.ApiCache, value interfac if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.TransitEncryptionEnabled = &jtv + sv.TransitEncryptionEnabled = jtv } case "ttl": @@ -6486,7 +6489,7 @@ func awsRestjson1_deserializeDocumentApiCache(v **types.ApiCache, value interfac if err != nil { return err } - sv.Ttl = &i64 + sv.Ttl = i64 } case "type": @@ -6539,7 +6542,7 @@ func awsRestjson1_deserializeDocumentApiKey(v **types.ApiKey, value interface{}) if err != nil { return err } - sv.Deletes = &i64 + sv.Deletes = i64 } case "description": @@ -6548,7 +6551,7 @@ func awsRestjson1_deserializeDocumentApiKey(v **types.ApiKey, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "expires": @@ -6561,7 +6564,7 @@ func awsRestjson1_deserializeDocumentApiKey(v **types.ApiKey, value interface{}) if err != nil { return err } - sv.Expires = &i64 + sv.Expires = i64 } case "id": @@ -6570,7 +6573,7 @@ func awsRestjson1_deserializeDocumentApiKey(v **types.ApiKey, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -6610,7 +6613,7 @@ func awsRestjson1_deserializeDocumentApiKeyLimitExceededException(v **types.ApiK if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6622,7 +6625,7 @@ func awsRestjson1_deserializeDocumentApiKeyLimitExceededException(v **types.ApiK return nil } -func awsRestjson1_deserializeDocumentApiKeys(v *[]*types.ApiKey, value interface{}) error { +func awsRestjson1_deserializeDocumentApiKeys(v *[]types.ApiKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6635,18 +6638,20 @@ func awsRestjson1_deserializeDocumentApiKeys(v *[]*types.ApiKey, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApiKey + var cv []types.ApiKey if *v == nil { - cv = []*types.ApiKey{} + cv = []types.ApiKey{} } else { cv = *v } for _, value := range shape { - var col *types.ApiKey - if err := awsRestjson1_deserializeDocumentApiKey(&col, value); err != nil { + var col types.ApiKey + destAddr := &col + if err := awsRestjson1_deserializeDocumentApiKey(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6682,7 +6687,7 @@ func awsRestjson1_deserializeDocumentApiKeyValidityOutOfBoundsException(v **type if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6722,7 +6727,7 @@ func awsRestjson1_deserializeDocumentApiLimitExceededException(v **types.ApiLimi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6807,7 +6812,7 @@ func awsRestjson1_deserializeDocumentAwsIamConfig(v **types.AwsIamConfig, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SigningRegion = &jtv + sv.SigningRegion = ptr.String(jtv) } case "signingServiceName": @@ -6816,7 +6821,7 @@ func awsRestjson1_deserializeDocumentAwsIamConfig(v **types.AwsIamConfig, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SigningServiceName = &jtv + sv.SigningServiceName = ptr.String(jtv) } default: @@ -6856,7 +6861,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6905,7 +6910,7 @@ func awsRestjson1_deserializeDocumentCachingConfig(v **types.CachingConfig, valu if err != nil { return err } - sv.Ttl = &i64 + sv.Ttl = i64 } default: @@ -6917,7 +6922,7 @@ func awsRestjson1_deserializeDocumentCachingConfig(v **types.CachingConfig, valu return nil } -func awsRestjson1_deserializeDocumentCachingKeys(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentCachingKeys(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6930,21 +6935,21 @@ func awsRestjson1_deserializeDocumentCachingKeys(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -6981,7 +6986,7 @@ func awsRestjson1_deserializeDocumentCognitoUserPoolConfig(v **types.CognitoUser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AppIdClientRegex = &jtv + sv.AppIdClientRegex = ptr.String(jtv) } case "awsRegion": @@ -6990,7 +6995,7 @@ func awsRestjson1_deserializeDocumentCognitoUserPoolConfig(v **types.CognitoUser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AwsRegion = &jtv + sv.AwsRegion = ptr.String(jtv) } case "userPoolId": @@ -6999,7 +7004,7 @@ func awsRestjson1_deserializeDocumentCognitoUserPoolConfig(v **types.CognitoUser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserPoolId = &jtv + sv.UserPoolId = ptr.String(jtv) } default: @@ -7039,7 +7044,7 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7079,7 +7084,7 @@ func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataSourceArn = &jtv + sv.DataSourceArn = ptr.String(jtv) } case "description": @@ -7088,7 +7093,7 @@ func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "dynamodbConfig": @@ -7117,7 +7122,7 @@ func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "relationalDatabaseConfig": @@ -7131,7 +7136,7 @@ func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceRoleArn = &jtv + sv.ServiceRoleArn = ptr.String(jtv) } case "type": @@ -7152,7 +7157,7 @@ func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value inte return nil } -func awsRestjson1_deserializeDocumentDataSources(v *[]*types.DataSource, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSources(v *[]types.DataSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7165,18 +7170,20 @@ func awsRestjson1_deserializeDocumentDataSources(v *[]*types.DataSource, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataSource + var cv []types.DataSource if *v == nil { - cv = []*types.DataSource{} + cv = []types.DataSource{} } else { cv = *v } for _, value := range shape { - var col *types.DataSource - if err := awsRestjson1_deserializeDocumentDataSource(&col, value); err != nil { + var col types.DataSource + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7216,7 +7223,7 @@ func awsRestjson1_deserializeDocumentDeltaSyncConfig(v **types.DeltaSyncConfig, if err != nil { return err } - sv.BaseTableTTL = &i64 + sv.BaseTableTTL = i64 } case "deltaSyncTableName": @@ -7225,7 +7232,7 @@ func awsRestjson1_deserializeDocumentDeltaSyncConfig(v **types.DeltaSyncConfig, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeltaSyncTableName = &jtv + sv.DeltaSyncTableName = ptr.String(jtv) } case "deltaSyncTableTTL": @@ -7238,7 +7245,7 @@ func awsRestjson1_deserializeDocumentDeltaSyncConfig(v **types.DeltaSyncConfig, if err != nil { return err } - sv.DeltaSyncTableTTL = &i64 + sv.DeltaSyncTableTTL = i64 } default: @@ -7278,7 +7285,7 @@ func awsRestjson1_deserializeDocumentDynamodbDataSourceConfig(v **types.Dynamodb if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AwsRegion = &jtv + sv.AwsRegion = ptr.String(jtv) } case "deltaSyncConfig": @@ -7292,7 +7299,7 @@ func awsRestjson1_deserializeDocumentDynamodbDataSourceConfig(v **types.Dynamodb if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "useCallerCredentials": @@ -7301,7 +7308,7 @@ func awsRestjson1_deserializeDocumentDynamodbDataSourceConfig(v **types.Dynamodb if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.UseCallerCredentials = &jtv + sv.UseCallerCredentials = jtv } case "versioned": @@ -7310,7 +7317,7 @@ func awsRestjson1_deserializeDocumentDynamodbDataSourceConfig(v **types.Dynamodb if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Versioned = &jtv + sv.Versioned = jtv } default: @@ -7350,7 +7357,7 @@ func awsRestjson1_deserializeDocumentElasticsearchDataSourceConfig(v **types.Ela if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AwsRegion = &jtv + sv.AwsRegion = ptr.String(jtv) } case "endpoint": @@ -7359,7 +7366,7 @@ func awsRestjson1_deserializeDocumentElasticsearchDataSourceConfig(v **types.Ela if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Endpoint = &jtv + sv.Endpoint = ptr.String(jtv) } default: @@ -7399,7 +7406,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.DataSourceName = &jtv + sv.DataSourceName = ptr.String(jtv) } case "description": @@ -7408,7 +7415,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "functionArn": @@ -7417,7 +7424,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "functionId": @@ -7426,7 +7433,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FunctionId = &jtv + sv.FunctionId = ptr.String(jtv) } case "functionVersion": @@ -7435,7 +7442,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FunctionVersion = &jtv + sv.FunctionVersion = ptr.String(jtv) } case "name": @@ -7444,7 +7451,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "requestMappingTemplate": @@ -7453,7 +7460,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected MappingTemplate to be of type string, got %T instead", value) } - sv.RequestMappingTemplate = &jtv + sv.RequestMappingTemplate = ptr.String(jtv) } case "responseMappingTemplate": @@ -7462,7 +7469,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected MappingTemplate to be of type string, got %T instead", value) } - sv.ResponseMappingTemplate = &jtv + sv.ResponseMappingTemplate = ptr.String(jtv) } default: @@ -7474,7 +7481,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon return nil } -func awsRestjson1_deserializeDocumentFunctions(v *[]*types.FunctionConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFunctions(v *[]types.FunctionConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7487,18 +7494,20 @@ func awsRestjson1_deserializeDocumentFunctions(v *[]*types.FunctionConfiguration return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FunctionConfiguration + var cv []types.FunctionConfiguration if *v == nil { - cv = []*types.FunctionConfiguration{} + cv = []types.FunctionConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.FunctionConfiguration - if err := awsRestjson1_deserializeDocumentFunctionConfiguration(&col, value); err != nil { + var col types.FunctionConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentFunctionConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7506,7 +7515,7 @@ func awsRestjson1_deserializeDocumentFunctions(v *[]*types.FunctionConfiguration return nil } -func awsRestjson1_deserializeDocumentFunctionsIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentFunctionsIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7519,21 +7528,21 @@ func awsRestjson1_deserializeDocumentFunctionsIds(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -7575,7 +7584,7 @@ func awsRestjson1_deserializeDocumentGraphqlApi(v **types.GraphqlApi, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ApiId = &jtv + sv.ApiId = ptr.String(jtv) } case "arn": @@ -7584,7 +7593,7 @@ func awsRestjson1_deserializeDocumentGraphqlApi(v **types.GraphqlApi, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authenticationType": @@ -7607,7 +7616,7 @@ func awsRestjson1_deserializeDocumentGraphqlApi(v **types.GraphqlApi, value inte if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "openIDConnectConfig": @@ -7636,7 +7645,7 @@ func awsRestjson1_deserializeDocumentGraphqlApi(v **types.GraphqlApi, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.WafWebAclArn = &jtv + sv.WafWebAclArn = ptr.String(jtv) } case "xrayEnabled": @@ -7645,7 +7654,7 @@ func awsRestjson1_deserializeDocumentGraphqlApi(v **types.GraphqlApi, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.XrayEnabled = &jtv + sv.XrayEnabled = jtv } default: @@ -7657,7 +7666,7 @@ func awsRestjson1_deserializeDocumentGraphqlApi(v **types.GraphqlApi, value inte return nil } -func awsRestjson1_deserializeDocumentGraphqlApis(v *[]*types.GraphqlApi, value interface{}) error { +func awsRestjson1_deserializeDocumentGraphqlApis(v *[]types.GraphqlApi, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7670,18 +7679,20 @@ func awsRestjson1_deserializeDocumentGraphqlApis(v *[]*types.GraphqlApi, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GraphqlApi + var cv []types.GraphqlApi if *v == nil { - cv = []*types.GraphqlApi{} + cv = []types.GraphqlApi{} } else { cv = *v } for _, value := range shape { - var col *types.GraphqlApi - if err := awsRestjson1_deserializeDocumentGraphqlApi(&col, value); err != nil { + var col types.GraphqlApi + destAddr := &col + if err := awsRestjson1_deserializeDocumentGraphqlApi(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7717,7 +7728,7 @@ func awsRestjson1_deserializeDocumentGraphQLSchemaException(v **types.GraphQLSch if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7762,7 +7773,7 @@ func awsRestjson1_deserializeDocumentHttpDataSourceConfig(v **types.HttpDataSour if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Endpoint = &jtv + sv.Endpoint = ptr.String(jtv) } default: @@ -7802,7 +7813,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7842,7 +7853,7 @@ func awsRestjson1_deserializeDocumentLambdaConflictHandlerConfig(v **types.Lambd if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LambdaConflictHandlerArn = &jtv + sv.LambdaConflictHandlerArn = ptr.String(jtv) } default: @@ -7882,7 +7893,7 @@ func awsRestjson1_deserializeDocumentLambdaDataSourceConfig(v **types.LambdaData if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LambdaFunctionArn = &jtv + sv.LambdaFunctionArn = ptr.String(jtv) } default: @@ -7922,7 +7933,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7962,7 +7973,7 @@ func awsRestjson1_deserializeDocumentLogConfig(v **types.LogConfig, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CloudWatchLogsRoleArn = &jtv + sv.CloudWatchLogsRoleArn = ptr.String(jtv) } case "excludeVerboseContent": @@ -7971,7 +7982,7 @@ func awsRestjson1_deserializeDocumentLogConfig(v **types.LogConfig, value interf if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ExcludeVerboseContent = &jtv + sv.ExcludeVerboseContent = jtv } case "fieldLogLevel": @@ -7992,7 +8003,7 @@ func awsRestjson1_deserializeDocumentLogConfig(v **types.LogConfig, value interf return nil } -func awsRestjson1_deserializeDocumentMapOfStringToString(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfStringToString(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8005,21 +8016,21 @@ func awsRestjson1_deserializeDocumentMapOfStringToString(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -8056,7 +8067,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8100,7 +8111,7 @@ func awsRestjson1_deserializeDocumentOpenIDConnectConfig(v **types.OpenIDConnect if err != nil { return err } - sv.AuthTTL = &i64 + sv.AuthTTL = i64 } case "clientId": @@ -8109,7 +8120,7 @@ func awsRestjson1_deserializeDocumentOpenIDConnectConfig(v **types.OpenIDConnect if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientId = &jtv + sv.ClientId = ptr.String(jtv) } case "iatTTL": @@ -8122,7 +8133,7 @@ func awsRestjson1_deserializeDocumentOpenIDConnectConfig(v **types.OpenIDConnect if err != nil { return err } - sv.IatTTL = &i64 + sv.IatTTL = i64 } case "issuer": @@ -8131,7 +8142,7 @@ func awsRestjson1_deserializeDocumentOpenIDConnectConfig(v **types.OpenIDConnect if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Issuer = &jtv + sv.Issuer = ptr.String(jtv) } default: @@ -8207,7 +8218,7 @@ func awsRestjson1_deserializeDocumentRdsHttpEndpointConfig(v **types.RdsHttpEndp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AwsRegion = &jtv + sv.AwsRegion = ptr.String(jtv) } case "awsSecretStoreArn": @@ -8216,7 +8227,7 @@ func awsRestjson1_deserializeDocumentRdsHttpEndpointConfig(v **types.RdsHttpEndp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AwsSecretStoreArn = &jtv + sv.AwsSecretStoreArn = ptr.String(jtv) } case "databaseName": @@ -8225,7 +8236,7 @@ func awsRestjson1_deserializeDocumentRdsHttpEndpointConfig(v **types.RdsHttpEndp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "dbClusterIdentifier": @@ -8234,7 +8245,7 @@ func awsRestjson1_deserializeDocumentRdsHttpEndpointConfig(v **types.RdsHttpEndp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DbClusterIdentifier = &jtv + sv.DbClusterIdentifier = ptr.String(jtv) } case "schema": @@ -8243,7 +8254,7 @@ func awsRestjson1_deserializeDocumentRdsHttpEndpointConfig(v **types.RdsHttpEndp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } default: @@ -8333,7 +8344,7 @@ func awsRestjson1_deserializeDocumentResolver(v **types.Resolver, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.DataSourceName = &jtv + sv.DataSourceName = ptr.String(jtv) } case "fieldName": @@ -8342,7 +8353,7 @@ func awsRestjson1_deserializeDocumentResolver(v **types.Resolver, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.FieldName = &jtv + sv.FieldName = ptr.String(jtv) } case "kind": @@ -8365,7 +8376,7 @@ func awsRestjson1_deserializeDocumentResolver(v **types.Resolver, value interfac if !ok { return fmt.Errorf("expected MappingTemplate to be of type string, got %T instead", value) } - sv.RequestMappingTemplate = &jtv + sv.RequestMappingTemplate = ptr.String(jtv) } case "resolverArn": @@ -8374,7 +8385,7 @@ func awsRestjson1_deserializeDocumentResolver(v **types.Resolver, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResolverArn = &jtv + sv.ResolverArn = ptr.String(jtv) } case "responseMappingTemplate": @@ -8383,7 +8394,7 @@ func awsRestjson1_deserializeDocumentResolver(v **types.Resolver, value interfac if !ok { return fmt.Errorf("expected MappingTemplate to be of type string, got %T instead", value) } - sv.ResponseMappingTemplate = &jtv + sv.ResponseMappingTemplate = ptr.String(jtv) } case "syncConfig": @@ -8397,7 +8408,7 @@ func awsRestjson1_deserializeDocumentResolver(v **types.Resolver, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.TypeName = &jtv + sv.TypeName = ptr.String(jtv) } default: @@ -8409,7 +8420,7 @@ func awsRestjson1_deserializeDocumentResolver(v **types.Resolver, value interfac return nil } -func awsRestjson1_deserializeDocumentResolvers(v *[]*types.Resolver, value interface{}) error { +func awsRestjson1_deserializeDocumentResolvers(v *[]types.Resolver, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8422,18 +8433,20 @@ func awsRestjson1_deserializeDocumentResolvers(v *[]*types.Resolver, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Resolver + var cv []types.Resolver if *v == nil { - cv = []*types.Resolver{} + cv = []types.Resolver{} } else { cv = *v } for _, value := range shape { - var col *types.Resolver - if err := awsRestjson1_deserializeDocumentResolver(&col, value); err != nil { + var col types.Resolver + destAddr := &col + if err := awsRestjson1_deserializeDocumentResolver(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8495,7 +8508,7 @@ func awsRestjson1_deserializeDocumentSyncConfig(v **types.SyncConfig, value inte return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8508,21 +8521,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -8559,7 +8572,7 @@ func awsRestjson1_deserializeDocumentType(v **types.Type, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "definition": @@ -8568,7 +8581,7 @@ func awsRestjson1_deserializeDocumentType(v **types.Type, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Definition = &jtv + sv.Definition = ptr.String(jtv) } case "description": @@ -8577,7 +8590,7 @@ func awsRestjson1_deserializeDocumentType(v **types.Type, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "format": @@ -8595,7 +8608,7 @@ func awsRestjson1_deserializeDocumentType(v **types.Type, value interface{}) err if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8607,7 +8620,7 @@ func awsRestjson1_deserializeDocumentType(v **types.Type, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentTypeList(v *[]*types.Type, value interface{}) error { +func awsRestjson1_deserializeDocumentTypeList(v *[]types.Type, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8620,18 +8633,20 @@ func awsRestjson1_deserializeDocumentTypeList(v *[]*types.Type, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Type + var cv []types.Type if *v == nil { - cv = []*types.Type{} + cv = []types.Type{} } else { cv = *v } for _, value := range shape { - var col *types.Type - if err := awsRestjson1_deserializeDocumentType(&col, value); err != nil { + var col types.Type + destAddr := &col + if err := awsRestjson1_deserializeDocumentType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8667,7 +8682,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8707,7 +8722,7 @@ func awsRestjson1_deserializeDocumentUserPoolConfig(v **types.UserPoolConfig, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AppIdClientRegex = &jtv + sv.AppIdClientRegex = ptr.String(jtv) } case "awsRegion": @@ -8716,7 +8731,7 @@ func awsRestjson1_deserializeDocumentUserPoolConfig(v **types.UserPoolConfig, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AwsRegion = &jtv + sv.AwsRegion = ptr.String(jtv) } case "defaultAction": @@ -8734,7 +8749,7 @@ func awsRestjson1_deserializeDocumentUserPoolConfig(v **types.UserPoolConfig, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserPoolId = &jtv + sv.UserPoolId = ptr.String(jtv) } default: diff --git a/service/appsync/go.mod b/service/appsync/go.mod index 62e2cd3695d..7306afc27ad 100644 --- a/service/appsync/go.mod +++ b/service/appsync/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/appsync go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/appsync/serializers.go b/service/appsync/serializers.go index 039b86f5308..3603259a282 100644 --- a/service/appsync/serializers.go +++ b/service/appsync/serializers.go @@ -76,13 +76,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateApiCacheInput(v *CreateApiCacheIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -100,19 +97,19 @@ func awsRestjson1_serializeOpDocumentCreateApiCacheInput(v *CreateApiCacheInput, ok.String(string(v.ApiCachingBehavior)) } - if v.AtRestEncryptionEnabled != nil { + if v.AtRestEncryptionEnabled { ok := object.Key("atRestEncryptionEnabled") - ok.Boolean(*v.AtRestEncryptionEnabled) + ok.Boolean(v.AtRestEncryptionEnabled) } - if v.TransitEncryptionEnabled != nil { + if v.TransitEncryptionEnabled { ok := object.Key("transitEncryptionEnabled") - ok.Boolean(*v.TransitEncryptionEnabled) + ok.Boolean(v.TransitEncryptionEnabled) } - if v.Ttl != nil { + if v.Ttl != 0 { ok := object.Key("ttl") - ok.Long(*v.Ttl) + ok.Long(v.Ttl) } if len(v.Type) > 0 { @@ -185,13 +182,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateApiKeyInput(v *CreateApiKeyInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -209,9 +203,9 @@ func awsRestjson1_serializeOpDocumentCreateApiKeyInput(v *CreateApiKeyInput, val ok.String(*v.Description) } - if v.Expires != nil { + if v.Expires != 0 { ok := object.Key("expires") - ok.Long(*v.Expires) + ok.Long(v.Expires) } return nil @@ -279,13 +273,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateDataSourceInput(v *CreateDataSour return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -418,13 +409,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateFunctionInput(v *CreateFunctionIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -580,9 +568,9 @@ func awsRestjson1_serializeOpDocumentCreateGraphqlApiInput(v *CreateGraphqlApiIn } } - if v.XrayEnabled != nil { + if v.XrayEnabled { ok := object.Key("xrayEnabled") - ok.Boolean(*v.XrayEnabled) + ok.Boolean(v.XrayEnabled) } return nil @@ -650,25 +638,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateResolverInput(v *CreateResolverIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.TypeName == nil { + if v.TypeName == nil || len(*v.TypeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} } if v.TypeName != nil { - if len(*v.TypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} - } if err := encoder.SetURI("typeName").String(*v.TypeName); err != nil { return err } @@ -792,13 +774,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateTypeInput(v *CreateTypeInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -875,13 +854,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteApiCacheInput(v *DeleteApiCacheIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -941,25 +917,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteApiKeyInput(v *DeleteApiKeyInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} - } if err := encoder.SetURI("id").String(*v.Id); err != nil { return err } @@ -1019,25 +989,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDataSourceInput(v *DeleteDataSour return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -1097,25 +1061,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFunctionInput(v *DeleteFunctionIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.FunctionId == nil { + if v.FunctionId == nil || len(*v.FunctionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member functionId must not be empty")} } if v.FunctionId != nil { - if len(*v.FunctionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member functionId must not be empty")} - } if err := encoder.SetURI("functionId").String(*v.FunctionId); err != nil { return err } @@ -1175,13 +1133,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteGraphqlApiInput(v *DeleteGraphqlA return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -1241,37 +1196,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteResolverInput(v *DeleteResolverIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.FieldName == nil { + if v.FieldName == nil || len(*v.FieldName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member fieldName must not be empty")} } if v.FieldName != nil { - if len(*v.FieldName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member fieldName must not be empty")} - } if err := encoder.SetURI("fieldName").String(*v.FieldName); err != nil { return err } } - if v.TypeName == nil { + if v.TypeName == nil || len(*v.TypeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} } if v.TypeName != nil { - if len(*v.TypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} - } if err := encoder.SetURI("typeName").String(*v.TypeName); err != nil { return err } @@ -1331,25 +1277,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteTypeInput(v *DeleteTypeInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.TypeName == nil { + if v.TypeName == nil || len(*v.TypeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} } if v.TypeName != nil { - if len(*v.TypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} - } if err := encoder.SetURI("typeName").String(*v.TypeName); err != nil { return err } @@ -1409,13 +1349,10 @@ func awsRestjson1_serializeOpHttpBindingsFlushApiCacheInput(v *FlushApiCacheInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -1475,13 +1412,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApiCacheInput(v *GetApiCacheInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -1541,25 +1475,19 @@ func awsRestjson1_serializeOpHttpBindingsGetDataSourceInput(v *GetDataSourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -1619,25 +1547,19 @@ func awsRestjson1_serializeOpHttpBindingsGetFunctionInput(v *GetFunctionInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.FunctionId == nil { + if v.FunctionId == nil || len(*v.FunctionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member functionId must not be empty")} } if v.FunctionId != nil { - if len(*v.FunctionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member functionId must not be empty")} - } if err := encoder.SetURI("functionId").String(*v.FunctionId); err != nil { return err } @@ -1697,13 +1619,10 @@ func awsRestjson1_serializeOpHttpBindingsGetGraphqlApiInput(v *GetGraphqlApiInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -1763,13 +1682,10 @@ func awsRestjson1_serializeOpHttpBindingsGetIntrospectionSchemaInput(v *GetIntro return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -1837,37 +1753,28 @@ func awsRestjson1_serializeOpHttpBindingsGetResolverInput(v *GetResolverInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.FieldName == nil { + if v.FieldName == nil || len(*v.FieldName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member fieldName must not be empty")} } if v.FieldName != nil { - if len(*v.FieldName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member fieldName must not be empty")} - } if err := encoder.SetURI("fieldName").String(*v.FieldName); err != nil { return err } } - if v.TypeName == nil { + if v.TypeName == nil || len(*v.TypeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} } if v.TypeName != nil { - if len(*v.TypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} - } if err := encoder.SetURI("typeName").String(*v.TypeName); err != nil { return err } @@ -1927,13 +1834,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSchemaCreationStatusInput(v *GetSche return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -1993,13 +1897,10 @@ func awsRestjson1_serializeOpHttpBindingsGetTypeInput(v *GetTypeInput, encoder * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -2009,13 +1910,10 @@ func awsRestjson1_serializeOpHttpBindingsGetTypeInput(v *GetTypeInput, encoder * encoder.SetQuery("format").String(string(v.Format)) } - if v.TypeName == nil { + if v.TypeName == nil || len(*v.TypeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} } if v.TypeName != nil { - if len(*v.TypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} - } if err := encoder.SetURI("typeName").String(*v.TypeName); err != nil { return err } @@ -2075,20 +1973,17 @@ func awsRestjson1_serializeOpHttpBindingsListApiKeysInput(v *ListApiKeysInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2149,20 +2044,17 @@ func awsRestjson1_serializeOpHttpBindingsListDataSourcesInput(v *ListDataSources return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2223,20 +2115,17 @@ func awsRestjson1_serializeOpHttpBindingsListFunctionsInput(v *ListFunctionsInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2297,8 +2186,8 @@ func awsRestjson1_serializeOpHttpBindingsListGraphqlApisInput(v *ListGraphqlApis return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2359,33 +2248,27 @@ func awsRestjson1_serializeOpHttpBindingsListResolversInput(v *ListResolversInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.TypeName == nil { + if v.TypeName == nil || len(*v.TypeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} } if v.TypeName != nil { - if len(*v.TypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} - } if err := encoder.SetURI("typeName").String(*v.TypeName); err != nil { return err } @@ -2445,32 +2328,26 @@ func awsRestjson1_serializeOpHttpBindingsListResolversByFunctionInput(v *ListRes return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.FunctionId == nil { + if v.FunctionId == nil || len(*v.FunctionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member functionId must not be empty")} } if v.FunctionId != nil { - if len(*v.FunctionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member functionId must not be empty")} - } if err := encoder.SetURI("functionId").String(*v.FunctionId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2531,13 +2408,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2597,13 +2471,10 @@ func awsRestjson1_serializeOpHttpBindingsListTypesInput(v *ListTypesInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -2613,8 +2484,8 @@ func awsRestjson1_serializeOpHttpBindingsListTypesInput(v *ListTypesInput, encod encoder.SetQuery("format").String(string(v.Format)) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2686,13 +2557,10 @@ func awsRestjson1_serializeOpHttpBindingsStartSchemaCreationInput(v *StartSchema return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -2775,13 +2643,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2855,13 +2720,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2869,10 +2731,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -2941,13 +2800,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateApiCacheInput(v *UpdateApiCacheIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -2965,9 +2821,9 @@ func awsRestjson1_serializeOpDocumentUpdateApiCacheInput(v *UpdateApiCacheInput, ok.String(string(v.ApiCachingBehavior)) } - if v.Ttl != nil { + if v.Ttl != 0 { ok := object.Key("ttl") - ok.Long(*v.Ttl) + ok.Long(v.Ttl) } if len(v.Type) > 0 { @@ -3040,25 +2896,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateApiKeyInput(v *UpdateApiKeyInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} - } if err := encoder.SetURI("id").String(*v.Id); err != nil { return err } @@ -3076,9 +2926,9 @@ func awsRestjson1_serializeOpDocumentUpdateApiKeyInput(v *UpdateApiKeyInput, val ok.String(*v.Description) } - if v.Expires != nil { + if v.Expires != 0 { ok := object.Key("expires") - ok.Long(*v.Expires) + ok.Long(v.Expires) } return nil @@ -3146,25 +2996,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDataSourceInput(v *UpdateDataSour return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -3292,25 +3136,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFunctionInput(v *UpdateFunctionIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.FunctionId == nil { + if v.FunctionId == nil || len(*v.FunctionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member functionId must not be empty")} } if v.FunctionId != nil { - if len(*v.FunctionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member functionId must not be empty")} - } if err := encoder.SetURI("functionId").String(*v.FunctionId); err != nil { return err } @@ -3418,13 +3256,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateGraphqlApiInput(v *UpdateGraphqlA return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } @@ -3475,9 +3310,9 @@ func awsRestjson1_serializeOpDocumentUpdateGraphqlApiInput(v *UpdateGraphqlApiIn } } - if v.XrayEnabled != nil { + if v.XrayEnabled { ok := object.Key("xrayEnabled") - ok.Boolean(*v.XrayEnabled) + ok.Boolean(v.XrayEnabled) } return nil @@ -3545,37 +3380,28 @@ func awsRestjson1_serializeOpHttpBindingsUpdateResolverInput(v *UpdateResolverIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.FieldName == nil { + if v.FieldName == nil || len(*v.FieldName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member fieldName must not be empty")} } if v.FieldName != nil { - if len(*v.FieldName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member fieldName must not be empty")} - } if err := encoder.SetURI("fieldName").String(*v.FieldName); err != nil { return err } } - if v.TypeName == nil { + if v.TypeName == nil || len(*v.TypeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} } if v.TypeName != nil { - if len(*v.TypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} - } if err := encoder.SetURI("typeName").String(*v.TypeName); err != nil { return err } @@ -3694,25 +3520,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateTypeInput(v *UpdateTypeInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApiId == nil { + if v.ApiId == nil || len(*v.ApiId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} } if v.ApiId != nil { - if len(*v.ApiId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member apiId must not be empty")} - } if err := encoder.SetURI("apiId").String(*v.ApiId); err != nil { return err } } - if v.TypeName == nil { + if v.TypeName == nil || len(*v.TypeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} } if v.TypeName != nil { - if len(*v.TypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member typeName must not be empty")} - } if err := encoder.SetURI("typeName").String(*v.TypeName); err != nil { return err } @@ -3764,17 +3584,13 @@ func awsRestjson1_serializeDocumentAdditionalAuthenticationProvider(v *types.Add return nil } -func awsRestjson1_serializeDocumentAdditionalAuthenticationProviders(v []*types.AdditionalAuthenticationProvider, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAdditionalAuthenticationProviders(v []types.AdditionalAuthenticationProvider, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAdditionalAuthenticationProvider(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAdditionalAuthenticationProvider(&v[i], av); err != nil { return err } } @@ -3828,25 +3644,21 @@ func awsRestjson1_serializeDocumentCachingConfig(v *types.CachingConfig, value s } } - if v.Ttl != nil { + if v.Ttl != 0 { ok := object.Key("ttl") - ok.Long(*v.Ttl) + ok.Long(v.Ttl) } return nil } -func awsRestjson1_serializeDocumentCachingKeys(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCachingKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3877,9 +3689,9 @@ func awsRestjson1_serializeDocumentDeltaSyncConfig(v *types.DeltaSyncConfig, val object := value.Object() defer object.Close() - if v.BaseTableTTL != nil { + if v.BaseTableTTL != 0 { ok := object.Key("baseTableTTL") - ok.Long(*v.BaseTableTTL) + ok.Long(v.BaseTableTTL) } if v.DeltaSyncTableName != nil { @@ -3887,9 +3699,9 @@ func awsRestjson1_serializeDocumentDeltaSyncConfig(v *types.DeltaSyncConfig, val ok.String(*v.DeltaSyncTableName) } - if v.DeltaSyncTableTTL != nil { + if v.DeltaSyncTableTTL != 0 { ok := object.Key("deltaSyncTableTTL") - ok.Long(*v.DeltaSyncTableTTL) + ok.Long(v.DeltaSyncTableTTL) } return nil @@ -3916,14 +3728,14 @@ func awsRestjson1_serializeDocumentDynamodbDataSourceConfig(v *types.DynamodbDat ok.String(*v.TableName) } - if v.UseCallerCredentials != nil { + if v.UseCallerCredentials { ok := object.Key("useCallerCredentials") - ok.Boolean(*v.UseCallerCredentials) + ok.Boolean(v.UseCallerCredentials) } - if v.Versioned != nil { + if v.Versioned { ok := object.Key("versioned") - ok.Boolean(*v.Versioned) + ok.Boolean(v.Versioned) } return nil @@ -3946,17 +3758,13 @@ func awsRestjson1_serializeDocumentElasticsearchDataSourceConfig(v *types.Elasti return nil } -func awsRestjson1_serializeDocumentFunctionsIds(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFunctionsIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4013,9 +3821,9 @@ func awsRestjson1_serializeDocumentLogConfig(v *types.LogConfig, value smithyjso ok.String(*v.CloudWatchLogsRoleArn) } - if v.ExcludeVerboseContent != nil { + if v.ExcludeVerboseContent { ok := object.Key("excludeVerboseContent") - ok.Boolean(*v.ExcludeVerboseContent) + ok.Boolean(v.ExcludeVerboseContent) } if len(v.FieldLogLevel) > 0 { @@ -4030,9 +3838,9 @@ func awsRestjson1_serializeDocumentOpenIDConnectConfig(v *types.OpenIDConnectCon object := value.Object() defer object.Close() - if v.AuthTTL != nil { + if v.AuthTTL != 0 { ok := object.Key("authTTL") - ok.Long(*v.AuthTTL) + ok.Long(v.AuthTTL) } if v.ClientId != nil { @@ -4040,9 +3848,9 @@ func awsRestjson1_serializeDocumentOpenIDConnectConfig(v *types.OpenIDConnectCon ok.String(*v.ClientId) } - if v.IatTTL != nil { + if v.IatTTL != 0 { ok := object.Key("iatTTL") - ok.Long(*v.IatTTL) + ok.Long(v.IatTTL) } if v.Issuer != nil { @@ -4142,17 +3950,13 @@ func awsRestjson1_serializeDocumentSyncConfig(v *types.SyncConfig, value smithyj return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/appsync/types/types.go b/service/appsync/types/types.go index 897ac1345a7..95df166535e 100644 --- a/service/appsync/types/types.go +++ b/service/appsync/types/types.go @@ -28,7 +28,7 @@ type ApiCache struct { // At rest encryption flag for cache. This setting cannot be updated after // creation. - AtRestEncryptionEnabled *bool + AtRestEncryptionEnabled bool // The cache instance status. // @@ -48,10 +48,10 @@ type ApiCache struct { // Transit encryption flag when connecting to cache. This setting cannot be updated // after creation. - TransitEncryptionEnabled *bool + TransitEncryptionEnabled bool // TTL in seconds for cache entries. Valid values are between 1 and 3600 seconds. - Ttl *int64 + Ttl int64 // The cache instance type. Valid values are // @@ -148,14 +148,14 @@ type ApiKey struct { // The time after which the API key is deleted. The date is represented as seconds // since the epoch, rounded down to the nearest hour. - Deletes *int64 + Deletes int64 // A description of the purpose of the API key. Description *string // The time after which the API key expires. The date is represented as seconds // since the epoch, rounded down to the nearest hour. - Expires *int64 + Expires int64 // The API key ID. Id *string @@ -192,11 +192,11 @@ type CachingConfig struct { // The caching keys for a resolver that has caching enabled. Valid values are // entries from the $context.arguments, $context.source, and $context.identity // maps. - CachingKeys []*string + CachingKeys []string // The TTL in seconds for a resolver that has caching enabled. Valid values are // between 1 and 3600 seconds. - Ttl *int64 + Ttl int64 } // Describes an Amazon Cognito user pool configuration. @@ -275,13 +275,13 @@ type DataSource struct { type DeltaSyncConfig struct { // The number of minutes an Item is stored in the datasource. - BaseTableTTL *int64 + BaseTableTTL int64 // The Delta Sync table name. DeltaSyncTableName *string // The number of minutes a Delta Sync log entry is stored in the Delta Sync table. - DeltaSyncTableTTL *int64 + DeltaSyncTableTTL int64 } // Describes an Amazon DynamoDB data source configuration. @@ -301,10 +301,10 @@ type DynamodbDataSourceConfig struct { DeltaSyncConfig *DeltaSyncConfig // Set to TRUE to use Amazon Cognito credentials with this data source. - UseCallerCredentials *bool + UseCallerCredentials bool // Set to TRUE to use Conflict Detection and Resolution with this data source. - Versioned *bool + Versioned bool } // Describes an Elasticsearch data source configuration. @@ -356,7 +356,7 @@ type FunctionConfiguration struct { type GraphqlApi struct { // A list of additional authentication providers for the GraphqlApi API. - AdditionalAuthenticationProviders []*AdditionalAuthenticationProvider + AdditionalAuthenticationProviders []AdditionalAuthenticationProvider // The API ID. ApiId *string @@ -377,10 +377,10 @@ type GraphqlApi struct { OpenIDConnectConfig *OpenIDConnectConfig // The tags. - Tags map[string]*string + Tags map[string]string // The URIs. - Uris map[string]*string + Uris map[string]string // The Amazon Cognito user pool configuration. UserPoolConfig *UserPoolConfig @@ -390,7 +390,7 @@ type GraphqlApi struct { WafWebAclArn *string // A flag representing whether X-Ray tracing is enabled for this GraphqlApi. - XrayEnabled *bool + XrayEnabled bool } // Describes an HTTP data source configuration. @@ -461,7 +461,7 @@ type LogConfig struct { // Set to TRUE to exclude sections that contain information such as headers, // context, and evaluated mapping templates, regardless of logging level. - ExcludeVerboseContent *bool + ExcludeVerboseContent bool } // Describes an OpenID Connect configuration. @@ -474,7 +474,7 @@ type OpenIDConnectConfig struct { Issuer *string // The number of milliseconds a token is valid after being authenticated. - AuthTTL *int64 + AuthTTL int64 // The client identifier of the Relying party at the OpenID identity provider. This // identifier is typically obtained when the Relying party is registered with the @@ -483,14 +483,14 @@ type OpenIDConnectConfig struct { ClientId *string // The number of milliseconds a token is valid after being issued to a user. - IatTTL *int64 + IatTTL int64 } // The pipeline configuration for a resolver of kind PIPELINE. type PipelineConfig struct { // A list of Function objects. - Functions []*string + Functions []string } // The Amazon RDS HTTP endpoint configuration. diff --git a/service/appsync/validators.go b/service/appsync/validators.go index 56afe273f00..9e6d4af402c 100644 --- a/service/appsync/validators.go +++ b/service/appsync/validators.go @@ -992,13 +992,13 @@ func validateAdditionalAuthenticationProvider(v *types.AdditionalAuthenticationP } } -func validateAdditionalAuthenticationProviders(v []*types.AdditionalAuthenticationProvider) error { +func validateAdditionalAuthenticationProviders(v []types.AdditionalAuthenticationProvider) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AdditionalAuthenticationProviders"} for i := range v { - if err := validateAdditionalAuthenticationProvider(v[i]); err != nil { + if err := validateAdditionalAuthenticationProvider(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1172,9 +1172,6 @@ func validateOpCreateApiCacheInput(v *CreateApiCacheInput) error { if v.ApiId == nil { invalidParams.Add(smithy.NewErrParamRequired("ApiId")) } - if v.Ttl == nil { - invalidParams.Add(smithy.NewErrParamRequired("Ttl")) - } if len(v.ApiCachingBehavior) == 0 { invalidParams.Add(smithy.NewErrParamRequired("ApiCachingBehavior")) } @@ -1809,9 +1806,6 @@ func validateOpUpdateApiCacheInput(v *UpdateApiCacheInput) error { if len(v.Type) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Type")) } - if v.Ttl == nil { - invalidParams.Add(smithy.NewErrParamRequired("Ttl")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/athena/api_op_BatchGetNamedQuery.go b/service/athena/api_op_BatchGetNamedQuery.go index fdcd04e1675..da775169727 100644 --- a/service/athena/api_op_BatchGetNamedQuery.go +++ b/service/athena/api_op_BatchGetNamedQuery.go @@ -39,16 +39,16 @@ type BatchGetNamedQueryInput struct { // An array of query IDs. // // This member is required. - NamedQueryIds []*string + NamedQueryIds []string } type BatchGetNamedQueryOutput struct { // Information about the named query IDs submitted. - NamedQueries []*types.NamedQuery + NamedQueries []types.NamedQuery // Information about provided query IDs. - UnprocessedNamedQueryIds []*types.UnprocessedNamedQueryId + UnprocessedNamedQueryIds []types.UnprocessedNamedQueryId // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/athena/api_op_BatchGetQueryExecution.go b/service/athena/api_op_BatchGetQueryExecution.go index 8e7e4f96245..410daceb612 100644 --- a/service/athena/api_op_BatchGetQueryExecution.go +++ b/service/athena/api_op_BatchGetQueryExecution.go @@ -37,16 +37,16 @@ type BatchGetQueryExecutionInput struct { // An array of query execution IDs. // // This member is required. - QueryExecutionIds []*string + QueryExecutionIds []string } type BatchGetQueryExecutionOutput struct { // Information about a query execution. - QueryExecutions []*types.QueryExecution + QueryExecutions []types.QueryExecution // Information about the query executions that failed to run. - UnprocessedQueryExecutionIds []*types.UnprocessedQueryExecutionId + UnprocessedQueryExecutionIds []types.UnprocessedQueryExecutionId // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/athena/api_op_CreateDataCatalog.go b/service/athena/api_op_CreateDataCatalog.go index ffe6a3be507..a80c90b5f4c 100644 --- a/service/athena/api_op_CreateDataCatalog.go +++ b/service/athena/api_op_CreateDataCatalog.go @@ -68,10 +68,10 @@ type CreateDataCatalogInput struct { // Lambda function. function=lambda_arn // // * The GLUE type has no parameters. - Parameters map[string]*string + Parameters map[string]string // A list of comma separated tags to add to the data catalog that is created. - Tags []*types.Tag + Tags []types.Tag } type CreateDataCatalogOutput struct { diff --git a/service/athena/api_op_CreateWorkGroup.go b/service/athena/api_op_CreateWorkGroup.go index 8212526ab43..17089e159e6 100644 --- a/service/athena/api_op_CreateWorkGroup.go +++ b/service/athena/api_op_CreateWorkGroup.go @@ -47,7 +47,7 @@ type CreateWorkGroupInput struct { Description *string // A list of comma separated tags to add to the workgroup that is created. - Tags []*types.Tag + Tags []types.Tag } type CreateWorkGroupOutput struct { diff --git a/service/athena/api_op_ListDataCatalogs.go b/service/athena/api_op_ListDataCatalogs.go index 3d61da89b84..0d9026f7404 100644 --- a/service/athena/api_op_ListDataCatalogs.go +++ b/service/athena/api_op_ListDataCatalogs.go @@ -41,7 +41,7 @@ type ListDataCatalogsInput struct { type ListDataCatalogsOutput struct { // A summary list of data catalogs. - DataCatalogsSummary []*types.DataCatalogSummary + DataCatalogsSummary []types.DataCatalogSummary // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of pages, diff --git a/service/athena/api_op_ListDatabases.go b/service/athena/api_op_ListDatabases.go index 08b7bf21fab..be9ae4b9910 100644 --- a/service/athena/api_op_ListDatabases.go +++ b/service/athena/api_op_ListDatabases.go @@ -46,7 +46,7 @@ type ListDatabasesInput struct { type ListDatabasesOutput struct { // A list of databases from a data catalog. - DatabaseList []*types.Database + DatabaseList []types.Database // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of pages, diff --git a/service/athena/api_op_ListNamedQueries.go b/service/athena/api_op_ListNamedQueries.go index 9a75898cc31..f60c3f6a7e9 100644 --- a/service/athena/api_op_ListNamedQueries.go +++ b/service/athena/api_op_ListNamedQueries.go @@ -50,7 +50,7 @@ type ListNamedQueriesInput struct { type ListNamedQueriesOutput struct { // The list of unique query IDs. - NamedQueryIds []*string + NamedQueryIds []string // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of pages, diff --git a/service/athena/api_op_ListQueryExecutions.go b/service/athena/api_op_ListQueryExecutions.go index 8ee63c604b2..fa3317efe31 100644 --- a/service/athena/api_op_ListQueryExecutions.go +++ b/service/athena/api_op_ListQueryExecutions.go @@ -54,7 +54,7 @@ type ListQueryExecutionsOutput struct { NextToken *string // The unique IDs of each query execution as an array of strings. - QueryExecutionIds []*string + QueryExecutionIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/athena/api_op_ListTableMetadata.go b/service/athena/api_op_ListTableMetadata.go index d00d035220b..7d6a063ddc5 100644 --- a/service/athena/api_op_ListTableMetadata.go +++ b/service/athena/api_op_ListTableMetadata.go @@ -60,7 +60,7 @@ type ListTableMetadataOutput struct { NextToken *string // A list of table metadata. - TableMetadataList []*types.TableMetadata + TableMetadataList []types.TableMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/athena/api_op_ListTagsForResource.go b/service/athena/api_op_ListTagsForResource.go index ba20bb1f75c..704753c45bb 100644 --- a/service/athena/api_op_ListTagsForResource.go +++ b/service/athena/api_op_ListTagsForResource.go @@ -50,7 +50,7 @@ type ListTagsForResourceOutput struct { NextToken *string // The list of tags associated with the specified resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/athena/api_op_ListWorkGroups.go b/service/athena/api_op_ListWorkGroups.go index 4e6224581ed..a2b0b25d6d0 100644 --- a/service/athena/api_op_ListWorkGroups.go +++ b/service/athena/api_op_ListWorkGroups.go @@ -47,7 +47,7 @@ type ListWorkGroupsOutput struct { // The list of workgroups, including their names, descriptions, creation times, and // states. - WorkGroups []*types.WorkGroupSummary + WorkGroups []types.WorkGroupSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/athena/api_op_TagResource.go b/service/athena/api_op_TagResource.go index f5f62c52cd7..0d948500427 100644 --- a/service/athena/api_op_TagResource.go +++ b/service/athena/api_op_TagResource.go @@ -51,7 +51,7 @@ type TagResourceInput struct { // workgroup or data catalog resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/athena/api_op_UntagResource.go b/service/athena/api_op_UntagResource.go index 44a34ae646e..77460b8f8e8 100644 --- a/service/athena/api_op_UntagResource.go +++ b/service/athena/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // the specified resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/athena/api_op_UpdateDataCatalog.go b/service/athena/api_op_UpdateDataCatalog.go index a4322a0a69a..2fa4d9717bb 100644 --- a/service/athena/api_op_UpdateDataCatalog.go +++ b/service/athena/api_op_UpdateDataCatalog.go @@ -67,7 +67,7 @@ type UpdateDataCatalogInput struct { // Lambda function. function=lambda_arn // // * The GLUE type has no parameters. - Parameters map[string]*string + Parameters map[string]string } type UpdateDataCatalogOutput struct { diff --git a/service/athena/deserializers.go b/service/athena/deserializers.go index f8fb0ef4785..fce0fda16b4 100644 --- a/service/athena/deserializers.go +++ b/service/athena/deserializers.go @@ -3438,7 +3438,7 @@ func awsAwsjson11_deserializeDocumentColumn(v **types.Column, value interface{}) if !ok { return fmt.Errorf("expected CommentString to be of type string, got %T instead", value) } - sv.Comment = &jtv + sv.Comment = ptr.String(jtv) } case "Name": @@ -3447,7 +3447,7 @@ func awsAwsjson11_deserializeDocumentColumn(v **types.Column, value interface{}) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Type": @@ -3456,7 +3456,7 @@ func awsAwsjson11_deserializeDocumentColumn(v **types.Column, value interface{}) if !ok { return fmt.Errorf("expected TypeString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -3496,7 +3496,7 @@ func awsAwsjson11_deserializeDocumentColumnInfo(v **types.ColumnInfo, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CaseSensitive = &jtv + sv.CaseSensitive = jtv } case "CatalogName": @@ -3505,7 +3505,7 @@ func awsAwsjson11_deserializeDocumentColumnInfo(v **types.ColumnInfo, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CatalogName = &jtv + sv.CatalogName = ptr.String(jtv) } case "Label": @@ -3514,7 +3514,7 @@ func awsAwsjson11_deserializeDocumentColumnInfo(v **types.ColumnInfo, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Label = &jtv + sv.Label = ptr.String(jtv) } case "Name": @@ -3523,7 +3523,7 @@ func awsAwsjson11_deserializeDocumentColumnInfo(v **types.ColumnInfo, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Nullable": @@ -3545,7 +3545,7 @@ func awsAwsjson11_deserializeDocumentColumnInfo(v **types.ColumnInfo, value inte if err != nil { return err } - sv.Precision = ptr.Int32(int32(i64)) + sv.Precision = int32(i64) } case "Scale": @@ -3558,7 +3558,7 @@ func awsAwsjson11_deserializeDocumentColumnInfo(v **types.ColumnInfo, value inte if err != nil { return err } - sv.Scale = ptr.Int32(int32(i64)) + sv.Scale = int32(i64) } case "SchemaName": @@ -3567,7 +3567,7 @@ func awsAwsjson11_deserializeDocumentColumnInfo(v **types.ColumnInfo, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SchemaName = &jtv + sv.SchemaName = ptr.String(jtv) } case "TableName": @@ -3576,7 +3576,7 @@ func awsAwsjson11_deserializeDocumentColumnInfo(v **types.ColumnInfo, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "Type": @@ -3585,7 +3585,7 @@ func awsAwsjson11_deserializeDocumentColumnInfo(v **types.ColumnInfo, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -3597,7 +3597,7 @@ func awsAwsjson11_deserializeDocumentColumnInfo(v **types.ColumnInfo, value inte return nil } -func awsAwsjson11_deserializeDocumentColumnInfoList(v *[]*types.ColumnInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentColumnInfoList(v *[]types.ColumnInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3610,18 +3610,20 @@ func awsAwsjson11_deserializeDocumentColumnInfoList(v *[]*types.ColumnInfo, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnInfo + var cv []types.ColumnInfo if *v == nil { - cv = []*types.ColumnInfo{} + cv = []types.ColumnInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnInfo - if err := awsAwsjson11_deserializeDocumentColumnInfo(&col, value); err != nil { + var col types.ColumnInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentColumnInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3629,7 +3631,7 @@ func awsAwsjson11_deserializeDocumentColumnInfoList(v *[]*types.ColumnInfo, valu return nil } -func awsAwsjson11_deserializeDocumentColumnList(v *[]*types.Column, value interface{}) error { +func awsAwsjson11_deserializeDocumentColumnList(v *[]types.Column, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3642,18 +3644,20 @@ func awsAwsjson11_deserializeDocumentColumnList(v *[]*types.Column, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Column + var cv []types.Column if *v == nil { - cv = []*types.Column{} + cv = []types.Column{} } else { cv = *v } for _, value := range shape { - var col *types.Column - if err := awsAwsjson11_deserializeDocumentColumn(&col, value); err != nil { + var col types.Column + destAddr := &col + if err := awsAwsjson11_deserializeDocumentColumn(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3689,7 +3693,7 @@ func awsAwsjson11_deserializeDocumentDatabase(v **types.Database, value interfac if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -3698,7 +3702,7 @@ func awsAwsjson11_deserializeDocumentDatabase(v **types.Database, value interfac if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Parameters": @@ -3715,7 +3719,7 @@ func awsAwsjson11_deserializeDocumentDatabase(v **types.Database, value interfac return nil } -func awsAwsjson11_deserializeDocumentDatabaseList(v *[]*types.Database, value interface{}) error { +func awsAwsjson11_deserializeDocumentDatabaseList(v *[]types.Database, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3728,18 +3732,20 @@ func awsAwsjson11_deserializeDocumentDatabaseList(v *[]*types.Database, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Database + var cv []types.Database if *v == nil { - cv = []*types.Database{} + cv = []types.Database{} } else { cv = *v } for _, value := range shape { - var col *types.Database - if err := awsAwsjson11_deserializeDocumentDatabase(&col, value); err != nil { + var col types.Database + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDatabase(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3775,7 +3781,7 @@ func awsAwsjson11_deserializeDocumentDataCatalog(v **types.DataCatalog, value in if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -3784,7 +3790,7 @@ func awsAwsjson11_deserializeDocumentDataCatalog(v **types.DataCatalog, value in if !ok { return fmt.Errorf("expected CatalogNameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Parameters": @@ -3838,7 +3844,7 @@ func awsAwsjson11_deserializeDocumentDataCatalogSummary(v **types.DataCatalogSum if !ok { return fmt.Errorf("expected CatalogNameString to be of type string, got %T instead", value) } - sv.CatalogName = &jtv + sv.CatalogName = ptr.String(jtv) } case "Type": @@ -3859,7 +3865,7 @@ func awsAwsjson11_deserializeDocumentDataCatalogSummary(v **types.DataCatalogSum return nil } -func awsAwsjson11_deserializeDocumentDataCatalogSummaryList(v *[]*types.DataCatalogSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataCatalogSummaryList(v *[]types.DataCatalogSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3872,18 +3878,20 @@ func awsAwsjson11_deserializeDocumentDataCatalogSummaryList(v *[]*types.DataCata return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataCatalogSummary + var cv []types.DataCatalogSummary if *v == nil { - cv = []*types.DataCatalogSummary{} + cv = []types.DataCatalogSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DataCatalogSummary - if err := awsAwsjson11_deserializeDocumentDataCatalogSummary(&col, value); err != nil { + var col types.DataCatalogSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataCatalogSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3919,7 +3927,7 @@ func awsAwsjson11_deserializeDocumentDatum(v **types.Datum, value interface{}) e if !ok { return fmt.Errorf("expected datumString to be of type string, got %T instead", value) } - sv.VarCharValue = &jtv + sv.VarCharValue = ptr.String(jtv) } default: @@ -3931,7 +3939,7 @@ func awsAwsjson11_deserializeDocumentDatum(v **types.Datum, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentDatumList(v *[]*types.Datum, value interface{}) error { +func awsAwsjson11_deserializeDocumentDatumList(v *[]types.Datum, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3944,18 +3952,20 @@ func awsAwsjson11_deserializeDocumentDatumList(v *[]*types.Datum, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Datum + var cv []types.Datum if *v == nil { - cv = []*types.Datum{} + cv = []types.Datum{} } else { cv = *v } for _, value := range shape { - var col *types.Datum - if err := awsAwsjson11_deserializeDocumentDatum(&col, value); err != nil { + var col types.Datum + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDatum(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4000,7 +4010,7 @@ func awsAwsjson11_deserializeDocumentEncryptionConfiguration(v **types.Encryptio if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KmsKey = &jtv + sv.KmsKey = ptr.String(jtv) } default: @@ -4040,7 +4050,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4080,7 +4090,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.AthenaErrorCode = &jtv + sv.AthenaErrorCode = ptr.String(jtv) } case "Message": @@ -4089,7 +4099,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4129,7 +4139,7 @@ func awsAwsjson11_deserializeDocumentMetadataException(v **types.MetadataExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4169,7 +4179,7 @@ func awsAwsjson11_deserializeDocumentNamedQuery(v **types.NamedQuery, value inte if !ok { return fmt.Errorf("expected DatabaseString to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "Description": @@ -4178,7 +4188,7 @@ func awsAwsjson11_deserializeDocumentNamedQuery(v **types.NamedQuery, value inte if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -4187,7 +4197,7 @@ func awsAwsjson11_deserializeDocumentNamedQuery(v **types.NamedQuery, value inte if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NamedQueryId": @@ -4196,7 +4206,7 @@ func awsAwsjson11_deserializeDocumentNamedQuery(v **types.NamedQuery, value inte if !ok { return fmt.Errorf("expected NamedQueryId to be of type string, got %T instead", value) } - sv.NamedQueryId = &jtv + sv.NamedQueryId = ptr.String(jtv) } case "QueryString": @@ -4205,7 +4215,7 @@ func awsAwsjson11_deserializeDocumentNamedQuery(v **types.NamedQuery, value inte if !ok { return fmt.Errorf("expected QueryString to be of type string, got %T instead", value) } - sv.QueryString = &jtv + sv.QueryString = ptr.String(jtv) } case "WorkGroup": @@ -4214,7 +4224,7 @@ func awsAwsjson11_deserializeDocumentNamedQuery(v **types.NamedQuery, value inte if !ok { return fmt.Errorf("expected WorkGroupName to be of type string, got %T instead", value) } - sv.WorkGroup = &jtv + sv.WorkGroup = ptr.String(jtv) } default: @@ -4226,7 +4236,7 @@ func awsAwsjson11_deserializeDocumentNamedQuery(v **types.NamedQuery, value inte return nil } -func awsAwsjson11_deserializeDocumentNamedQueryIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentNamedQueryIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4239,21 +4249,21 @@ func awsAwsjson11_deserializeDocumentNamedQueryIdList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NamedQueryId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4262,7 +4272,7 @@ func awsAwsjson11_deserializeDocumentNamedQueryIdList(v *[]*string, value interf return nil } -func awsAwsjson11_deserializeDocumentNamedQueryList(v *[]*types.NamedQuery, value interface{}) error { +func awsAwsjson11_deserializeDocumentNamedQueryList(v *[]types.NamedQuery, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4275,18 +4285,20 @@ func awsAwsjson11_deserializeDocumentNamedQueryList(v *[]*types.NamedQuery, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NamedQuery + var cv []types.NamedQuery if *v == nil { - cv = []*types.NamedQuery{} + cv = []types.NamedQuery{} } else { cv = *v } for _, value := range shape { - var col *types.NamedQuery - if err := awsAwsjson11_deserializeDocumentNamedQuery(&col, value); err != nil { + var col types.NamedQuery + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNamedQuery(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4294,7 +4306,7 @@ func awsAwsjson11_deserializeDocumentNamedQueryList(v *[]*types.NamedQuery, valu return nil } -func awsAwsjson11_deserializeDocumentParametersMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentParametersMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4307,21 +4319,21 @@ func awsAwsjson11_deserializeDocumentParametersMap(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParametersMapValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -4358,7 +4370,7 @@ func awsAwsjson11_deserializeDocumentQueryExecution(v **types.QueryExecution, va if !ok { return fmt.Errorf("expected QueryString to be of type string, got %T instead", value) } - sv.Query = &jtv + sv.Query = ptr.String(jtv) } case "QueryExecutionContext": @@ -4372,7 +4384,7 @@ func awsAwsjson11_deserializeDocumentQueryExecution(v **types.QueryExecution, va if !ok { return fmt.Errorf("expected QueryExecutionId to be of type string, got %T instead", value) } - sv.QueryExecutionId = &jtv + sv.QueryExecutionId = ptr.String(jtv) } case "ResultConfiguration": @@ -4405,7 +4417,7 @@ func awsAwsjson11_deserializeDocumentQueryExecution(v **types.QueryExecution, va if !ok { return fmt.Errorf("expected WorkGroupName to be of type string, got %T instead", value) } - sv.WorkGroup = &jtv + sv.WorkGroup = ptr.String(jtv) } default: @@ -4445,7 +4457,7 @@ func awsAwsjson11_deserializeDocumentQueryExecutionContext(v **types.QueryExecut if !ok { return fmt.Errorf("expected CatalogNameString to be of type string, got %T instead", value) } - sv.Catalog = &jtv + sv.Catalog = ptr.String(jtv) } case "Database": @@ -4454,7 +4466,7 @@ func awsAwsjson11_deserializeDocumentQueryExecutionContext(v **types.QueryExecut if !ok { return fmt.Errorf("expected DatabaseString to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } default: @@ -4466,7 +4478,7 @@ func awsAwsjson11_deserializeDocumentQueryExecutionContext(v **types.QueryExecut return nil } -func awsAwsjson11_deserializeDocumentQueryExecutionIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentQueryExecutionIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4479,21 +4491,21 @@ func awsAwsjson11_deserializeDocumentQueryExecutionIdList(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected QueryExecutionId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4502,7 +4514,7 @@ func awsAwsjson11_deserializeDocumentQueryExecutionIdList(v *[]*string, value in return nil } -func awsAwsjson11_deserializeDocumentQueryExecutionList(v *[]*types.QueryExecution, value interface{}) error { +func awsAwsjson11_deserializeDocumentQueryExecutionList(v *[]types.QueryExecution, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4515,18 +4527,20 @@ func awsAwsjson11_deserializeDocumentQueryExecutionList(v *[]*types.QueryExecuti return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.QueryExecution + var cv []types.QueryExecution if *v == nil { - cv = []*types.QueryExecution{} + cv = []types.QueryExecution{} } else { cv = *v } for _, value := range shape { - var col *types.QueryExecution - if err := awsAwsjson11_deserializeDocumentQueryExecution(&col, value); err != nil { + var col types.QueryExecution + destAddr := &col + if err := awsAwsjson11_deserializeDocumentQueryExecution(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4562,7 +4576,7 @@ func awsAwsjson11_deserializeDocumentQueryExecutionStatistics(v **types.QueryExe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataManifestLocation = &jtv + sv.DataManifestLocation = ptr.String(jtv) } case "DataScannedInBytes": @@ -4575,7 +4589,7 @@ func awsAwsjson11_deserializeDocumentQueryExecutionStatistics(v **types.QueryExe if err != nil { return err } - sv.DataScannedInBytes = &i64 + sv.DataScannedInBytes = ptr.Int64(i64) } case "EngineExecutionTimeInMillis": @@ -4588,7 +4602,7 @@ func awsAwsjson11_deserializeDocumentQueryExecutionStatistics(v **types.QueryExe if err != nil { return err } - sv.EngineExecutionTimeInMillis = &i64 + sv.EngineExecutionTimeInMillis = ptr.Int64(i64) } case "QueryPlanningTimeInMillis": @@ -4601,7 +4615,7 @@ func awsAwsjson11_deserializeDocumentQueryExecutionStatistics(v **types.QueryExe if err != nil { return err } - sv.QueryPlanningTimeInMillis = &i64 + sv.QueryPlanningTimeInMillis = ptr.Int64(i64) } case "QueryQueueTimeInMillis": @@ -4614,7 +4628,7 @@ func awsAwsjson11_deserializeDocumentQueryExecutionStatistics(v **types.QueryExe if err != nil { return err } - sv.QueryQueueTimeInMillis = &i64 + sv.QueryQueueTimeInMillis = ptr.Int64(i64) } case "ServiceProcessingTimeInMillis": @@ -4627,7 +4641,7 @@ func awsAwsjson11_deserializeDocumentQueryExecutionStatistics(v **types.QueryExe if err != nil { return err } - sv.ServiceProcessingTimeInMillis = &i64 + sv.ServiceProcessingTimeInMillis = ptr.Int64(i64) } case "TotalExecutionTimeInMillis": @@ -4640,7 +4654,7 @@ func awsAwsjson11_deserializeDocumentQueryExecutionStatistics(v **types.QueryExe if err != nil { return err } - sv.TotalExecutionTimeInMillis = &i64 + sv.TotalExecutionTimeInMillis = ptr.Int64(i64) } default: @@ -4702,7 +4716,7 @@ func awsAwsjson11_deserializeDocumentQueryExecutionStatus(v **types.QueryExecuti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StateChangeReason = &jtv + sv.StateChangeReason = ptr.String(jtv) } case "SubmissionDateTime": @@ -4755,7 +4769,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceName": @@ -4764,7 +4778,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } default: @@ -4809,7 +4823,7 @@ func awsAwsjson11_deserializeDocumentResultConfiguration(v **types.ResultConfigu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OutputLocation = &jtv + sv.OutputLocation = ptr.String(jtv) } default: @@ -4934,7 +4948,7 @@ func awsAwsjson11_deserializeDocumentRow(v **types.Row, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentRowList(v *[]*types.Row, value interface{}) error { +func awsAwsjson11_deserializeDocumentRowList(v *[]types.Row, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4947,18 +4961,20 @@ func awsAwsjson11_deserializeDocumentRowList(v *[]*types.Row, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Row + var cv []types.Row if *v == nil { - cv = []*types.Row{} + cv = []types.Row{} } else { cv = *v } for _, value := range shape { - var col *types.Row - if err := awsAwsjson11_deserializeDocumentRow(&col, value); err != nil { + var col types.Row + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRow(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5025,7 +5041,7 @@ func awsAwsjson11_deserializeDocumentTableMetadata(v **types.TableMetadata, valu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Parameters": @@ -5044,7 +5060,7 @@ func awsAwsjson11_deserializeDocumentTableMetadata(v **types.TableMetadata, valu if !ok { return fmt.Errorf("expected TableTypeString to be of type string, got %T instead", value) } - sv.TableType = &jtv + sv.TableType = ptr.String(jtv) } default: @@ -5056,7 +5072,7 @@ func awsAwsjson11_deserializeDocumentTableMetadata(v **types.TableMetadata, valu return nil } -func awsAwsjson11_deserializeDocumentTableMetadataList(v *[]*types.TableMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentTableMetadataList(v *[]types.TableMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5069,18 +5085,20 @@ func awsAwsjson11_deserializeDocumentTableMetadataList(v *[]*types.TableMetadata return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TableMetadata + var cv []types.TableMetadata if *v == nil { - cv = []*types.TableMetadata{} + cv = []types.TableMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.TableMetadata - if err := awsAwsjson11_deserializeDocumentTableMetadata(&col, value); err != nil { + var col types.TableMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTableMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5116,7 +5134,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -5125,7 +5143,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5137,7 +5155,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5150,18 +5168,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5197,7 +5217,7 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Reason": @@ -5246,7 +5266,7 @@ func awsAwsjson11_deserializeDocumentUnprocessedNamedQueryId(v **types.Unprocess if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -5255,7 +5275,7 @@ func awsAwsjson11_deserializeDocumentUnprocessedNamedQueryId(v **types.Unprocess if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "NamedQueryId": @@ -5264,7 +5284,7 @@ func awsAwsjson11_deserializeDocumentUnprocessedNamedQueryId(v **types.Unprocess if !ok { return fmt.Errorf("expected NamedQueryId to be of type string, got %T instead", value) } - sv.NamedQueryId = &jtv + sv.NamedQueryId = ptr.String(jtv) } default: @@ -5276,7 +5296,7 @@ func awsAwsjson11_deserializeDocumentUnprocessedNamedQueryId(v **types.Unprocess return nil } -func awsAwsjson11_deserializeDocumentUnprocessedNamedQueryIdList(v *[]*types.UnprocessedNamedQueryId, value interface{}) error { +func awsAwsjson11_deserializeDocumentUnprocessedNamedQueryIdList(v *[]types.UnprocessedNamedQueryId, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5289,18 +5309,20 @@ func awsAwsjson11_deserializeDocumentUnprocessedNamedQueryIdList(v *[]*types.Unp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UnprocessedNamedQueryId + var cv []types.UnprocessedNamedQueryId if *v == nil { - cv = []*types.UnprocessedNamedQueryId{} + cv = []types.UnprocessedNamedQueryId{} } else { cv = *v } for _, value := range shape { - var col *types.UnprocessedNamedQueryId - if err := awsAwsjson11_deserializeDocumentUnprocessedNamedQueryId(&col, value); err != nil { + var col types.UnprocessedNamedQueryId + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUnprocessedNamedQueryId(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5336,7 +5358,7 @@ func awsAwsjson11_deserializeDocumentUnprocessedQueryExecutionId(v **types.Unpro if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -5345,7 +5367,7 @@ func awsAwsjson11_deserializeDocumentUnprocessedQueryExecutionId(v **types.Unpro if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "QueryExecutionId": @@ -5354,7 +5376,7 @@ func awsAwsjson11_deserializeDocumentUnprocessedQueryExecutionId(v **types.Unpro if !ok { return fmt.Errorf("expected QueryExecutionId to be of type string, got %T instead", value) } - sv.QueryExecutionId = &jtv + sv.QueryExecutionId = ptr.String(jtv) } default: @@ -5366,7 +5388,7 @@ func awsAwsjson11_deserializeDocumentUnprocessedQueryExecutionId(v **types.Unpro return nil } -func awsAwsjson11_deserializeDocumentUnprocessedQueryExecutionIdList(v *[]*types.UnprocessedQueryExecutionId, value interface{}) error { +func awsAwsjson11_deserializeDocumentUnprocessedQueryExecutionIdList(v *[]types.UnprocessedQueryExecutionId, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5379,18 +5401,20 @@ func awsAwsjson11_deserializeDocumentUnprocessedQueryExecutionIdList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UnprocessedQueryExecutionId + var cv []types.UnprocessedQueryExecutionId if *v == nil { - cv = []*types.UnprocessedQueryExecutionId{} + cv = []types.UnprocessedQueryExecutionId{} } else { cv = *v } for _, value := range shape { - var col *types.UnprocessedQueryExecutionId - if err := awsAwsjson11_deserializeDocumentUnprocessedQueryExecutionId(&col, value); err != nil { + var col types.UnprocessedQueryExecutionId + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUnprocessedQueryExecutionId(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5444,7 +5468,7 @@ func awsAwsjson11_deserializeDocumentWorkGroup(v **types.WorkGroup, value interf if !ok { return fmt.Errorf("expected WorkGroupDescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -5453,7 +5477,7 @@ func awsAwsjson11_deserializeDocumentWorkGroup(v **types.WorkGroup, value interf if !ok { return fmt.Errorf("expected WorkGroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -5506,7 +5530,7 @@ func awsAwsjson11_deserializeDocumentWorkGroupConfiguration(v **types.WorkGroupC if err != nil { return err } - sv.BytesScannedCutoffPerQuery = &i64 + sv.BytesScannedCutoffPerQuery = ptr.Int64(i64) } case "EnforceWorkGroupConfiguration": @@ -5515,7 +5539,7 @@ func awsAwsjson11_deserializeDocumentWorkGroupConfiguration(v **types.WorkGroupC if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.EnforceWorkGroupConfiguration = &jtv + sv.EnforceWorkGroupConfiguration = ptr.Bool(jtv) } case "PublishCloudWatchMetricsEnabled": @@ -5524,7 +5548,7 @@ func awsAwsjson11_deserializeDocumentWorkGroupConfiguration(v **types.WorkGroupC if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.PublishCloudWatchMetricsEnabled = &jtv + sv.PublishCloudWatchMetricsEnabled = ptr.Bool(jtv) } case "RequesterPaysEnabled": @@ -5533,7 +5557,7 @@ func awsAwsjson11_deserializeDocumentWorkGroupConfiguration(v **types.WorkGroupC if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.RequesterPaysEnabled = &jtv + sv.RequesterPaysEnabled = ptr.Bool(jtv) } case "ResultConfiguration": @@ -5550,7 +5574,7 @@ func awsAwsjson11_deserializeDocumentWorkGroupConfiguration(v **types.WorkGroupC return nil } -func awsAwsjson11_deserializeDocumentWorkGroupsList(v *[]*types.WorkGroupSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentWorkGroupsList(v *[]types.WorkGroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5563,18 +5587,20 @@ func awsAwsjson11_deserializeDocumentWorkGroupsList(v *[]*types.WorkGroupSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorkGroupSummary + var cv []types.WorkGroupSummary if *v == nil { - cv = []*types.WorkGroupSummary{} + cv = []types.WorkGroupSummary{} } else { cv = *v } for _, value := range shape { - var col *types.WorkGroupSummary - if err := awsAwsjson11_deserializeDocumentWorkGroupSummary(&col, value); err != nil { + var col types.WorkGroupSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkGroupSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5623,7 +5649,7 @@ func awsAwsjson11_deserializeDocumentWorkGroupSummary(v **types.WorkGroupSummary if !ok { return fmt.Errorf("expected WorkGroupDescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -5632,7 +5658,7 @@ func awsAwsjson11_deserializeDocumentWorkGroupSummary(v **types.WorkGroupSummary if !ok { return fmt.Errorf("expected WorkGroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -5794,7 +5820,7 @@ func awsAwsjson11_deserializeOpDocumentCreateNamedQueryOutput(v **CreateNamedQue if !ok { return fmt.Errorf("expected NamedQueryId to be of type string, got %T instead", value) } - sv.NamedQueryId = &jtv + sv.NamedQueryId = ptr.String(jtv) } default: @@ -6102,7 +6128,7 @@ func awsAwsjson11_deserializeOpDocumentGetQueryResultsOutput(v **GetQueryResults if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResultSet": @@ -6120,7 +6146,7 @@ func awsAwsjson11_deserializeOpDocumentGetQueryResultsOutput(v **GetQueryResults if err != nil { return err } - sv.UpdateCount = &i64 + sv.UpdateCount = ptr.Int64(i64) } default: @@ -6237,7 +6263,7 @@ func awsAwsjson11_deserializeOpDocumentListDatabasesOutput(v **ListDatabasesOutp if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6282,7 +6308,7 @@ func awsAwsjson11_deserializeOpDocumentListDataCatalogsOutput(v **ListDataCatalo if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6327,7 +6353,7 @@ func awsAwsjson11_deserializeOpDocumentListNamedQueriesOutput(v **ListNamedQueri if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6367,7 +6393,7 @@ func awsAwsjson11_deserializeOpDocumentListQueryExecutionsOutput(v **ListQueryEx if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "QueryExecutionIds": @@ -6412,7 +6438,7 @@ func awsAwsjson11_deserializeOpDocumentListTableMetadataOutput(v **ListTableMeta if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TableMetadataList": @@ -6457,7 +6483,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -6502,7 +6528,7 @@ func awsAwsjson11_deserializeOpDocumentListWorkGroupsOutput(v **ListWorkGroupsOu if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "WorkGroups": @@ -6547,7 +6573,7 @@ func awsAwsjson11_deserializeOpDocumentStartQueryExecutionOutput(v **StartQueryE if !ok { return fmt.Errorf("expected QueryExecutionId to be of type string, got %T instead", value) } - sv.QueryExecutionId = &jtv + sv.QueryExecutionId = ptr.String(jtv) } default: diff --git a/service/athena/go.mod b/service/athena/go.mod index a4c023dbe29..9d39e4b5896 100644 --- a/service/athena/go.mod +++ b/service/athena/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/athena go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/athena/serializers.go b/service/athena/serializers.go index e5d2c779cfa..08e00597a78 100644 --- a/service/athena/serializers.go +++ b/service/athena/serializers.go @@ -1318,32 +1318,24 @@ func awsAwsjson11_serializeDocumentEncryptionConfiguration(v *types.EncryptionCo return nil } -func awsAwsjson11_serializeDocumentNamedQueryIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNamedQueryIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentParametersMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParametersMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1365,17 +1357,13 @@ func awsAwsjson11_serializeDocumentQueryExecutionContext(v *types.QueryExecution return nil } -func awsAwsjson11_serializeDocumentQueryExecutionIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentQueryExecutionIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1445,32 +1433,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/athena/types/types.go b/service/athena/types/types.go index 326443bd938..f6861c05d1c 100644 --- a/service/athena/types/types.go +++ b/service/athena/types/types.go @@ -35,7 +35,7 @@ type ColumnInfo struct { Type *string // Indicates whether values in the column are case-sensitive. - CaseSensitive *bool + CaseSensitive bool // The catalog to which the query results belong. CatalogName *string @@ -48,11 +48,11 @@ type ColumnInfo struct { // For DECIMAL data types, specifies the total number of digits, up to 38. For // performance reasons, we recommend up to 18 digits. - Precision *int32 + Precision int32 // For DECIMAL data types, specifies the total number of digits in the fractional // part of the value. Defaults to 0. - Scale *int32 + Scale int32 // The schema name (database name) to which the query results belong. SchemaName *string @@ -73,7 +73,7 @@ type Database struct { Description *string // A set of custom key/value pairs. - Parameters map[string]*string + Parameters map[string]string } // Contains information about a data catalog in an AWS account. @@ -117,7 +117,7 @@ type DataCatalog struct { // // * The // GLUE type has no parameters. - Parameters map[string]*string + Parameters map[string]string } // The summary information for the data catalog, which includes its name and type. @@ -371,7 +371,7 @@ type ResultSet struct { ResultSetMetadata *ResultSetMetadata // The rows in the table. - Rows []*Row + Rows []Row } // The metadata that describes the column structure and data types of a table of @@ -379,14 +379,14 @@ type ResultSet struct { type ResultSetMetadata struct { // Information about the columns returned in a query result metadata. - ColumnInfo []*ColumnInfo + ColumnInfo []ColumnInfo } // The rows that comprise a query result table. type Row struct { // The data that populates a row in a query result table. - Data []*Datum + Data []Datum } // Contains metadata for a table. @@ -398,7 +398,7 @@ type TableMetadata struct { Name *string // A list of the columns in the table. - Columns []*Column + Columns []Column // The time that the table was created. CreateTime *time.Time @@ -407,10 +407,10 @@ type TableMetadata struct { LastAccessTime *time.Time // A set of custom key/value pairs for table properties. - Parameters map[string]*string + Parameters map[string]string // A list of the partition keys in the table. - PartitionKeys []*Column + PartitionKeys []Column // The type of table. In Athena, only EXTERNAL_TABLE is supported. TableType *string diff --git a/service/autoscaling/api_op_AttachInstances.go b/service/autoscaling/api_op_AttachInstances.go index 84b5de065ed..6cb25833c7a 100644 --- a/service/autoscaling/api_op_AttachInstances.go +++ b/service/autoscaling/api_op_AttachInstances.go @@ -44,7 +44,7 @@ type AttachInstancesInput struct { AutoScalingGroupName *string // The IDs of the instances. You can specify up to 20 instances. - InstanceIds []*string + InstanceIds []string } type AttachInstancesOutput struct { diff --git a/service/autoscaling/api_op_AttachLoadBalancerTargetGroups.go b/service/autoscaling/api_op_AttachLoadBalancerTargetGroups.go index 36ffaa20ca3..ce786dd807c 100644 --- a/service/autoscaling/api_op_AttachLoadBalancerTargetGroups.go +++ b/service/autoscaling/api_op_AttachLoadBalancerTargetGroups.go @@ -46,7 +46,7 @@ type AttachLoadBalancerTargetGroupsInput struct { // target groups. // // This member is required. - TargetGroupARNs []*string + TargetGroupARNs []string } type AttachLoadBalancerTargetGroupsOutput struct { diff --git a/service/autoscaling/api_op_AttachLoadBalancers.go b/service/autoscaling/api_op_AttachLoadBalancers.go index b1ec463eda3..85014b78f10 100644 --- a/service/autoscaling/api_op_AttachLoadBalancers.go +++ b/service/autoscaling/api_op_AttachLoadBalancers.go @@ -45,7 +45,7 @@ type AttachLoadBalancersInput struct { // The names of the load balancers. You can specify up to 10 load balancers. // // This member is required. - LoadBalancerNames []*string + LoadBalancerNames []string } type AttachLoadBalancersOutput struct { diff --git a/service/autoscaling/api_op_BatchDeleteScheduledAction.go b/service/autoscaling/api_op_BatchDeleteScheduledAction.go index 6167679871f..7ba25d1e2f2 100644 --- a/service/autoscaling/api_op_BatchDeleteScheduledAction.go +++ b/service/autoscaling/api_op_BatchDeleteScheduledAction.go @@ -37,14 +37,14 @@ type BatchDeleteScheduledActionInput struct { // The names of the scheduled actions to delete. The maximum number allowed is 50. // // This member is required. - ScheduledActionNames []*string + ScheduledActionNames []string } type BatchDeleteScheduledActionOutput struct { // The names of the scheduled actions that could not be deleted, including an error // message. - FailedScheduledActions []*types.FailedScheduledUpdateGroupActionRequest + FailedScheduledActions []types.FailedScheduledUpdateGroupActionRequest // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_BatchPutScheduledUpdateGroupAction.go b/service/autoscaling/api_op_BatchPutScheduledUpdateGroupAction.go index 10cb702eee9..99d662b115a 100644 --- a/service/autoscaling/api_op_BatchPutScheduledUpdateGroupAction.go +++ b/service/autoscaling/api_op_BatchPutScheduledUpdateGroupAction.go @@ -39,14 +39,14 @@ type BatchPutScheduledUpdateGroupActionInput struct { // One or more scheduled actions. The maximum number allowed is 50. // // This member is required. - ScheduledUpdateGroupActions []*types.ScheduledUpdateGroupActionRequest + ScheduledUpdateGroupActions []types.ScheduledUpdateGroupActionRequest } type BatchPutScheduledUpdateGroupActionOutput struct { // The names of the scheduled actions that could not be created or updated, // including an error message. - FailedScheduledUpdateGroupActions []*types.FailedScheduledUpdateGroupActionRequest + FailedScheduledUpdateGroupActions []types.FailedScheduledUpdateGroupActionRequest // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_CreateAutoScalingGroup.go b/service/autoscaling/api_op_CreateAutoScalingGroup.go index 3724e2709c4..780a982f9e5 100644 --- a/service/autoscaling/api_op_CreateAutoScalingGroup.go +++ b/service/autoscaling/api_op_CreateAutoScalingGroup.go @@ -70,7 +70,7 @@ type CreateAutoScalingGroupInput struct { // specify one or more subnets for VPCZoneIdentifier. Conditional: If your account // supports EC2-Classic and VPC, this parameter is required to launch instances // into EC2-Classic. - AvailabilityZones []*string + AvailabilityZones []string // The amount of time, in seconds, after a scaling activity completes before // another scaling activity can start. The default value is 300. This setting @@ -136,7 +136,7 @@ type CreateAutoScalingGroupInput struct { LaunchTemplate *types.LaunchTemplateSpecification // One or more lifecycle hooks. - LifecycleHookSpecificationList []*types.LifecycleHookSpecification + LifecycleHookSpecificationList []types.LifecycleHookSpecification // A list of Classic Load Balancers associated with this Auto Scaling group. For // Application Load Balancers and Network Load Balancers, specify a list of target @@ -144,7 +144,7 @@ type CreateAutoScalingGroupInput struct { // Using a Load Balancer with an Auto Scaling Group // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html) // in the Amazon EC2 Auto Scaling User Guide. - LoadBalancerNames []*string + LoadBalancerNames []string // The maximum amount of time, in seconds, that an instance can be in service. The // default is null. This parameter is optional, but if you specify a value for it, @@ -206,7 +206,7 @@ type CreateAutoScalingGroupInput struct { // Instances // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-tagging.html) // in the Amazon EC2 Auto Scaling User Guide. - Tags []*types.Tag + Tags []types.Tag // The Amazon Resource Names (ARN) of the target groups to associate with the Auto // Scaling group. Instances are registered as targets in a target group, and @@ -214,14 +214,14 @@ type CreateAutoScalingGroupInput struct { // Balancer with an Auto Scaling Group // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html) // in the Amazon EC2 Auto Scaling User Guide. - TargetGroupARNs []*string + TargetGroupARNs []string // One or more termination policies used to select the instance to terminate. These // policies are executed in the order that they are listed. For more information, // see Controlling Which Instances Auto Scaling Terminates During Scale In // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html) // in the Amazon EC2 Auto Scaling User Guide. - TerminationPolicies []*string + TerminationPolicies []string // A comma-separated list of subnet IDs for your virtual private cloud (VPC). If // you specify VPCZoneIdentifier with AvailabilityZones, the subnets that you diff --git a/service/autoscaling/api_op_CreateLaunchConfiguration.go b/service/autoscaling/api_op_CreateLaunchConfiguration.go index b4244384f58..238d2b16519 100644 --- a/service/autoscaling/api_op_CreateLaunchConfiguration.go +++ b/service/autoscaling/api_op_CreateLaunchConfiguration.go @@ -62,7 +62,7 @@ type CreateLaunchConfigurationInput struct { // Device Mapping // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html) // in the Amazon EC2 User Guide for Linux Instances. - BlockDeviceMappings []*types.BlockDeviceMapping + BlockDeviceMappings []types.BlockDeviceMapping // The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. For // more information, see ClassicLink @@ -82,7 +82,7 @@ type CreateLaunchConfigurationInput struct { // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink) // in the Amazon EC2 Auto Scaling User Guide. If you specify the ClassicLinkVPCId // parameter, you must specify this parameter. - ClassicLinkVPCSecurityGroups []*string + ClassicLinkVPCSecurityGroups []string // Specifies whether the launch configuration is optimized for EBS I/O (true) or // not (false). The optimization provides dedicated throughput to Amazon EBS and an @@ -175,7 +175,7 @@ type CreateLaunchConfigurationInput struct { // EC2 Security Groups // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html) // in the Amazon EC2 User Guide for Linux Instances. - SecurityGroups []*string + SecurityGroups []string // The maximum hourly price to be paid for any Spot Instance launched to fulfill // the request. Spot Instances are launched when the price you specify exceeds the diff --git a/service/autoscaling/api_op_CreateOrUpdateTags.go b/service/autoscaling/api_op_CreateOrUpdateTags.go index ce638a332e3..aa82adfbb0f 100644 --- a/service/autoscaling/api_op_CreateOrUpdateTags.go +++ b/service/autoscaling/api_op_CreateOrUpdateTags.go @@ -37,7 +37,7 @@ type CreateOrUpdateTagsInput struct { // One or more tags. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type CreateOrUpdateTagsOutput struct { diff --git a/service/autoscaling/api_op_DeleteTags.go b/service/autoscaling/api_op_DeleteTags.go index ee79c90e043..3500851e92b 100644 --- a/service/autoscaling/api_op_DeleteTags.go +++ b/service/autoscaling/api_op_DeleteTags.go @@ -32,7 +32,7 @@ type DeleteTagsInput struct { // One or more tags. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type DeleteTagsOutput struct { diff --git a/service/autoscaling/api_op_DescribeAdjustmentTypes.go b/service/autoscaling/api_op_DescribeAdjustmentTypes.go index 47c2c690219..35da6cd1500 100644 --- a/service/autoscaling/api_op_DescribeAdjustmentTypes.go +++ b/service/autoscaling/api_op_DescribeAdjustmentTypes.go @@ -43,7 +43,7 @@ type DescribeAdjustmentTypesInput struct { type DescribeAdjustmentTypesOutput struct { // The policy adjustment types. - AdjustmentTypes []*types.AdjustmentType + AdjustmentTypes []types.AdjustmentType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_DescribeAutoScalingGroups.go b/service/autoscaling/api_op_DescribeAutoScalingGroups.go index c5b526450e6..c302bffe34c 100644 --- a/service/autoscaling/api_op_DescribeAutoScalingGroups.go +++ b/service/autoscaling/api_op_DescribeAutoScalingGroups.go @@ -33,7 +33,7 @@ type DescribeAutoScalingGroupsInput struct { // characters. By default, you can only specify up to 50 names. You can optionally // increase this limit using the MaxRecords parameter. If you omit this parameter, // all Auto Scaling groups are described. - AutoScalingGroupNames []*string + AutoScalingGroupNames []string // The maximum number of items to return with this call. The default value is 50 // and the maximum value is 100. @@ -49,7 +49,7 @@ type DescribeAutoScalingGroupsOutput struct { // The groups. // // This member is required. - AutoScalingGroups []*types.AutoScalingGroup + AutoScalingGroups []types.AutoScalingGroup // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this string diff --git a/service/autoscaling/api_op_DescribeAutoScalingInstances.go b/service/autoscaling/api_op_DescribeAutoScalingInstances.go index 3b4238605d0..c3b212502a7 100644 --- a/service/autoscaling/api_op_DescribeAutoScalingInstances.go +++ b/service/autoscaling/api_op_DescribeAutoScalingInstances.go @@ -32,7 +32,7 @@ type DescribeAutoScalingInstancesInput struct { // The IDs of the instances. You can specify up to MaxRecords IDs. If you omit this // parameter, all Auto Scaling instances are described. If you specify an ID that // does not exist, it is ignored with no error. - InstanceIds []*string + InstanceIds []string // The maximum number of items to return with this call. The default value is 50 // and the maximum value is 50. @@ -46,7 +46,7 @@ type DescribeAutoScalingInstancesInput struct { type DescribeAutoScalingInstancesOutput struct { // The instances. - AutoScalingInstances []*types.AutoScalingInstanceDetails + AutoScalingInstances []types.AutoScalingInstanceDetails // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this string diff --git a/service/autoscaling/api_op_DescribeAutoScalingNotificationTypes.go b/service/autoscaling/api_op_DescribeAutoScalingNotificationTypes.go index ed35d4e76db..6ce9af56846 100644 --- a/service/autoscaling/api_op_DescribeAutoScalingNotificationTypes.go +++ b/service/autoscaling/api_op_DescribeAutoScalingNotificationTypes.go @@ -32,7 +32,7 @@ type DescribeAutoScalingNotificationTypesInput struct { type DescribeAutoScalingNotificationTypesOutput struct { // The notification types. - AutoScalingNotificationTypes []*string + AutoScalingNotificationTypes []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_DescribeInstanceRefreshes.go b/service/autoscaling/api_op_DescribeInstanceRefreshes.go index d7523e43c3d..3d113ee018f 100644 --- a/service/autoscaling/api_op_DescribeInstanceRefreshes.go +++ b/service/autoscaling/api_op_DescribeInstanceRefreshes.go @@ -60,7 +60,7 @@ type DescribeInstanceRefreshesInput struct { AutoScalingGroupName *string // One or more instance refresh IDs. - InstanceRefreshIds []*string + InstanceRefreshIds []string // The maximum number of items to return with this call. The default value is 50 // and the maximum value is 100. @@ -74,7 +74,7 @@ type DescribeInstanceRefreshesInput struct { type DescribeInstanceRefreshesOutput struct { // The instance refreshes for the specified group. - InstanceRefreshes []*types.InstanceRefresh + InstanceRefreshes []types.InstanceRefresh // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this string diff --git a/service/autoscaling/api_op_DescribeLaunchConfigurations.go b/service/autoscaling/api_op_DescribeLaunchConfigurations.go index dc5206ff8f3..b87e9f5e97f 100644 --- a/service/autoscaling/api_op_DescribeLaunchConfigurations.go +++ b/service/autoscaling/api_op_DescribeLaunchConfigurations.go @@ -31,7 +31,7 @@ type DescribeLaunchConfigurationsInput struct { // The launch configuration names. If you omit this parameter, all launch // configurations are described. - LaunchConfigurationNames []*string + LaunchConfigurationNames []string // The maximum number of items to return with this call. The default value is 50 // and the maximum value is 100. @@ -47,7 +47,7 @@ type DescribeLaunchConfigurationsOutput struct { // The launch configurations. // // This member is required. - LaunchConfigurations []*types.LaunchConfiguration + LaunchConfigurations []types.LaunchConfiguration // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this string diff --git a/service/autoscaling/api_op_DescribeLifecycleHookTypes.go b/service/autoscaling/api_op_DescribeLifecycleHookTypes.go index c3d1717402f..9419987cf89 100644 --- a/service/autoscaling/api_op_DescribeLifecycleHookTypes.go +++ b/service/autoscaling/api_op_DescribeLifecycleHookTypes.go @@ -38,7 +38,7 @@ type DescribeLifecycleHookTypesInput struct { type DescribeLifecycleHookTypesOutput struct { // The lifecycle hook types. - LifecycleHookTypes []*string + LifecycleHookTypes []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_DescribeLifecycleHooks.go b/service/autoscaling/api_op_DescribeLifecycleHooks.go index c00c6b51a27..8119355b9da 100644 --- a/service/autoscaling/api_op_DescribeLifecycleHooks.go +++ b/service/autoscaling/api_op_DescribeLifecycleHooks.go @@ -36,13 +36,13 @@ type DescribeLifecycleHooksInput struct { // The names of one or more lifecycle hooks. If you omit this parameter, all // lifecycle hooks are described. - LifecycleHookNames []*string + LifecycleHookNames []string } type DescribeLifecycleHooksOutput struct { // The lifecycle hooks for the specified group. - LifecycleHooks []*types.LifecycleHook + LifecycleHooks []types.LifecycleHook // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_DescribeLoadBalancerTargetGroups.go b/service/autoscaling/api_op_DescribeLoadBalancerTargetGroups.go index 45153672183..f556431e5a9 100644 --- a/service/autoscaling/api_op_DescribeLoadBalancerTargetGroups.go +++ b/service/autoscaling/api_op_DescribeLoadBalancerTargetGroups.go @@ -46,7 +46,7 @@ type DescribeLoadBalancerTargetGroupsInput struct { type DescribeLoadBalancerTargetGroupsOutput struct { // Information about the target groups. - LoadBalancerTargetGroups []*types.LoadBalancerTargetGroupState + LoadBalancerTargetGroups []types.LoadBalancerTargetGroupState // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this string diff --git a/service/autoscaling/api_op_DescribeLoadBalancers.go b/service/autoscaling/api_op_DescribeLoadBalancers.go index 85390528a3e..3d648f09fe8 100644 --- a/service/autoscaling/api_op_DescribeLoadBalancers.go +++ b/service/autoscaling/api_op_DescribeLoadBalancers.go @@ -49,7 +49,7 @@ type DescribeLoadBalancersInput struct { type DescribeLoadBalancersOutput struct { // The load balancers. - LoadBalancers []*types.LoadBalancerState + LoadBalancers []types.LoadBalancerState // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this string diff --git a/service/autoscaling/api_op_DescribeMetricCollectionTypes.go b/service/autoscaling/api_op_DescribeMetricCollectionTypes.go index 98de265c553..6ae361cf322 100644 --- a/service/autoscaling/api_op_DescribeMetricCollectionTypes.go +++ b/service/autoscaling/api_op_DescribeMetricCollectionTypes.go @@ -35,10 +35,10 @@ type DescribeMetricCollectionTypesInput struct { type DescribeMetricCollectionTypesOutput struct { // The granularities for the metrics. - Granularities []*types.MetricGranularityType + Granularities []types.MetricGranularityType // One or more metrics. - Metrics []*types.MetricCollectionType + Metrics []types.MetricCollectionType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_DescribeNotificationConfigurations.go b/service/autoscaling/api_op_DescribeNotificationConfigurations.go index a64d429effe..94556be0a50 100644 --- a/service/autoscaling/api_op_DescribeNotificationConfigurations.go +++ b/service/autoscaling/api_op_DescribeNotificationConfigurations.go @@ -31,7 +31,7 @@ func (c *Client) DescribeNotificationConfigurations(ctx context.Context, params type DescribeNotificationConfigurationsInput struct { // The name of the Auto Scaling group. - AutoScalingGroupNames []*string + AutoScalingGroupNames []string // The maximum number of items to return with this call. The default value is 50 // and the maximum value is 100. @@ -47,7 +47,7 @@ type DescribeNotificationConfigurationsOutput struct { // The notification configurations. // // This member is required. - NotificationConfigurations []*types.NotificationConfiguration + NotificationConfigurations []types.NotificationConfiguration // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this string diff --git a/service/autoscaling/api_op_DescribePolicies.go b/service/autoscaling/api_op_DescribePolicies.go index 1f723d77c05..242e12233fc 100644 --- a/service/autoscaling/api_op_DescribePolicies.go +++ b/service/autoscaling/api_op_DescribePolicies.go @@ -44,11 +44,11 @@ type DescribePoliciesInput struct { // described. If a group name is provided, the results are limited to that group. // This list is limited to 50 items. If you specify an unknown policy name, it is // ignored with no error. - PolicyNames []*string + PolicyNames []string // One or more policy types. The valid values are SimpleScaling, StepScaling, and // TargetTrackingScaling. - PolicyTypes []*string + PolicyTypes []string } type DescribePoliciesOutput struct { @@ -60,7 +60,7 @@ type DescribePoliciesOutput struct { NextToken *string // The scaling policies. - ScalingPolicies []*types.ScalingPolicy + ScalingPolicies []types.ScalingPolicy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_DescribeScalingActivities.go b/service/autoscaling/api_op_DescribeScalingActivities.go index 82281d483a4..e445289fd5e 100644 --- a/service/autoscaling/api_op_DescribeScalingActivities.go +++ b/service/autoscaling/api_op_DescribeScalingActivities.go @@ -33,7 +33,7 @@ type DescribeScalingActivitiesInput struct { // IDs. If you omit this parameter, all activities for the past six weeks are // described. If unknown activities are requested, they are ignored with no error. // If you specify an Auto Scaling group, the results are limited to that group. - ActivityIds []*string + ActivityIds []string // The name of the Auto Scaling group. AutoScalingGroupName *string @@ -53,7 +53,7 @@ type DescribeScalingActivitiesOutput struct { // progress are described first. // // This member is required. - Activities []*types.Activity + Activities []types.Activity // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this string diff --git a/service/autoscaling/api_op_DescribeScalingProcessTypes.go b/service/autoscaling/api_op_DescribeScalingProcessTypes.go index bda9d6c897e..8a009530368 100644 --- a/service/autoscaling/api_op_DescribeScalingProcessTypes.go +++ b/service/autoscaling/api_op_DescribeScalingProcessTypes.go @@ -34,7 +34,7 @@ type DescribeScalingProcessTypesInput struct { type DescribeScalingProcessTypesOutput struct { // The names of the process types. - Processes []*types.ProcessType + Processes []types.ProcessType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_DescribeScheduledActions.go b/service/autoscaling/api_op_DescribeScheduledActions.go index f010a6e928f..fb741f3e2ff 100644 --- a/service/autoscaling/api_op_DescribeScheduledActions.go +++ b/service/autoscaling/api_op_DescribeScheduledActions.go @@ -50,7 +50,7 @@ type DescribeScheduledActionsInput struct { // The names of one or more scheduled actions. You can specify up to 50 actions. If // you omit this parameter, all scheduled actions are described. If you specify an // unknown scheduled action, it is ignored with no error. - ScheduledActionNames []*string + ScheduledActionNames []string // The earliest scheduled start time to return. If scheduled action names are // provided, this parameter is ignored. @@ -66,7 +66,7 @@ type DescribeScheduledActionsOutput struct { NextToken *string // The scheduled actions. - ScheduledUpdateGroupActions []*types.ScheduledUpdateGroupAction + ScheduledUpdateGroupActions []types.ScheduledUpdateGroupAction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_DescribeTags.go b/service/autoscaling/api_op_DescribeTags.go index 2bd3647a55e..ebb820e0914 100644 --- a/service/autoscaling/api_op_DescribeTags.go +++ b/service/autoscaling/api_op_DescribeTags.go @@ -39,7 +39,7 @@ type DescribeTagsInput struct { // One or more filters to scope the tags to return. The maximum number of filters // per filter type (for example, auto-scaling-group) is 1000. - Filters []*types.Filter + Filters []types.Filter // The maximum number of items to return with this call. The default value is 50 // and the maximum value is 100. @@ -59,7 +59,7 @@ type DescribeTagsOutput struct { NextToken *string // One or more tags. - Tags []*types.TagDescription + Tags []types.TagDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_DescribeTerminationPolicyTypes.go b/service/autoscaling/api_op_DescribeTerminationPolicyTypes.go index 599ad4240ad..91ca614d0f7 100644 --- a/service/autoscaling/api_op_DescribeTerminationPolicyTypes.go +++ b/service/autoscaling/api_op_DescribeTerminationPolicyTypes.go @@ -38,7 +38,7 @@ type DescribeTerminationPolicyTypesOutput struct { // The termination policies supported by Amazon EC2 Auto Scaling: OldestInstance, // OldestLaunchConfiguration, NewestInstance, ClosestToNextInstanceHour, Default, // OldestLaunchTemplate, and AllocationStrategy. - TerminationPolicyTypes []*string + TerminationPolicyTypes []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_DetachInstances.go b/service/autoscaling/api_op_DetachInstances.go index b371b2aa3b5..3c469f9e874 100644 --- a/service/autoscaling/api_op_DetachInstances.go +++ b/service/autoscaling/api_op_DetachInstances.go @@ -51,13 +51,13 @@ type DetachInstancesInput struct { ShouldDecrementDesiredCapacity *bool // The IDs of the instances. You can specify up to 20 instances. - InstanceIds []*string + InstanceIds []string } type DetachInstancesOutput struct { // The activities related to detaching the instances from the Auto Scaling group. - Activities []*types.Activity + Activities []types.Activity // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_DetachLoadBalancerTargetGroups.go b/service/autoscaling/api_op_DetachLoadBalancerTargetGroups.go index d6abc89cf5a..1a06bb71a48 100644 --- a/service/autoscaling/api_op_DetachLoadBalancerTargetGroups.go +++ b/service/autoscaling/api_op_DetachLoadBalancerTargetGroups.go @@ -37,7 +37,7 @@ type DetachLoadBalancerTargetGroupsInput struct { // target groups. // // This member is required. - TargetGroupARNs []*string + TargetGroupARNs []string } type DetachLoadBalancerTargetGroupsOutput struct { diff --git a/service/autoscaling/api_op_DetachLoadBalancers.go b/service/autoscaling/api_op_DetachLoadBalancers.go index 43820271adc..476aed558fb 100644 --- a/service/autoscaling/api_op_DetachLoadBalancers.go +++ b/service/autoscaling/api_op_DetachLoadBalancers.go @@ -42,7 +42,7 @@ type DetachLoadBalancersInput struct { // The names of the load balancers. You can specify up to 10 load balancers. // // This member is required. - LoadBalancerNames []*string + LoadBalancerNames []string } type DetachLoadBalancersOutput struct { diff --git a/service/autoscaling/api_op_DisableMetricsCollection.go b/service/autoscaling/api_op_DisableMetricsCollection.go index 80f2109cb2f..b53a172034f 100644 --- a/service/autoscaling/api_op_DisableMetricsCollection.go +++ b/service/autoscaling/api_op_DisableMetricsCollection.go @@ -67,7 +67,7 @@ type DisableMetricsCollectionInput struct { // // If you // omit this parameter, all metrics are disabled. - Metrics []*string + Metrics []string } type DisableMetricsCollectionOutput struct { diff --git a/service/autoscaling/api_op_EnableMetricsCollection.go b/service/autoscaling/api_op_EnableMetricsCollection.go index a70b27a0fc2..5b619ca1e68 100644 --- a/service/autoscaling/api_op_EnableMetricsCollection.go +++ b/service/autoscaling/api_op_EnableMetricsCollection.go @@ -80,7 +80,7 @@ type EnableMetricsCollectionInput struct { // // If you omit this parameter, all // metrics are enabled. - Metrics []*string + Metrics []string } type EnableMetricsCollectionOutput struct { diff --git a/service/autoscaling/api_op_EnterStandby.go b/service/autoscaling/api_op_EnterStandby.go index 5128829a36c..d729c59a78d 100644 --- a/service/autoscaling/api_op_EnterStandby.go +++ b/service/autoscaling/api_op_EnterStandby.go @@ -50,13 +50,13 @@ type EnterStandbyInput struct { ShouldDecrementDesiredCapacity *bool // The IDs of the instances. You can specify up to 20 instances. - InstanceIds []*string + InstanceIds []string } type EnterStandbyOutput struct { // The activities related to moving instances into Standby mode. - Activities []*types.Activity + Activities []types.Activity // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_ExitStandby.go b/service/autoscaling/api_op_ExitStandby.go index 7054902ec28..7625f1705a6 100644 --- a/service/autoscaling/api_op_ExitStandby.go +++ b/service/autoscaling/api_op_ExitStandby.go @@ -39,13 +39,13 @@ type ExitStandbyInput struct { AutoScalingGroupName *string // The IDs of the instances. You can specify up to 20 instances. - InstanceIds []*string + InstanceIds []string } type ExitStandbyOutput struct { // The activities related to moving instances out of Standby mode. - Activities []*types.Activity + Activities []types.Activity // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscaling/api_op_PutNotificationConfiguration.go b/service/autoscaling/api_op_PutNotificationConfiguration.go index a3ed5858eba..7f10114e896 100644 --- a/service/autoscaling/api_op_PutNotificationConfiguration.go +++ b/service/autoscaling/api_op_PutNotificationConfiguration.go @@ -44,7 +44,7 @@ type PutNotificationConfigurationInput struct { // DescribeAutoScalingNotificationTypes API. // // This member is required. - NotificationTypes []*string + NotificationTypes []string // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (Amazon // SNS) topic. diff --git a/service/autoscaling/api_op_PutScalingPolicy.go b/service/autoscaling/api_op_PutScalingPolicy.go index 8d64ba749e4..3ca8efcdba7 100644 --- a/service/autoscaling/api_op_PutScalingPolicy.go +++ b/service/autoscaling/api_op_PutScalingPolicy.go @@ -116,7 +116,7 @@ type PutScalingPolicyInput struct { // A set of adjustments that enable you to scale based on the size of the alarm // breach. Required if the policy type is StepScaling. (Not used with any other // policy type.) - StepAdjustments []*types.StepAdjustment + StepAdjustments []types.StepAdjustment // A target tracking scaling policy. Includes support for predefined or customized // metrics. The following predefined metrics are available: @@ -145,7 +145,7 @@ type PutScalingPolicyInput struct { type PutScalingPolicyOutput struct { // The CloudWatch alarms created for the target tracking scaling policy. - Alarms []*types.Alarm + Alarms []types.Alarm // The Amazon Resource Name (ARN) of the policy. PolicyARN *string diff --git a/service/autoscaling/api_op_ResumeProcesses.go b/service/autoscaling/api_op_ResumeProcesses.go index db1d99a3bec..661dd6fe4f7 100644 --- a/service/autoscaling/api_op_ResumeProcesses.go +++ b/service/autoscaling/api_op_ResumeProcesses.go @@ -61,7 +61,7 @@ type ResumeProcessesInput struct { // // If you omit this // parameter, all processes are specified. - ScalingProcesses []*string + ScalingProcesses []string } type ResumeProcessesOutput struct { diff --git a/service/autoscaling/api_op_SetInstanceProtection.go b/service/autoscaling/api_op_SetInstanceProtection.go index 344ad7b6acf..4f97b481ef7 100644 --- a/service/autoscaling/api_op_SetInstanceProtection.go +++ b/service/autoscaling/api_op_SetInstanceProtection.go @@ -40,7 +40,7 @@ type SetInstanceProtectionInput struct { // One or more instance IDs. // // This member is required. - InstanceIds []*string + InstanceIds []string // Indicates whether the instance is protected from termination by Amazon EC2 Auto // Scaling when scaling in. diff --git a/service/autoscaling/api_op_SuspendProcesses.go b/service/autoscaling/api_op_SuspendProcesses.go index 2ff29f89d15..16dd1322178 100644 --- a/service/autoscaling/api_op_SuspendProcesses.go +++ b/service/autoscaling/api_op_SuspendProcesses.go @@ -63,7 +63,7 @@ type SuspendProcessesInput struct { // // If you omit this // parameter, all processes are specified. - ScalingProcesses []*string + ScalingProcesses []string } type SuspendProcessesOutput struct { diff --git a/service/autoscaling/api_op_UpdateAutoScalingGroup.go b/service/autoscaling/api_op_UpdateAutoScalingGroup.go index 8fe65fd3ff1..9aaa9545420 100644 --- a/service/autoscaling/api_op_UpdateAutoScalingGroup.go +++ b/service/autoscaling/api_op_UpdateAutoScalingGroup.go @@ -70,7 +70,7 @@ type UpdateAutoScalingGroupInput struct { AutoScalingGroupName *string // One or more Availability Zones for the group. - AvailabilityZones []*string + AvailabilityZones []string // The amount of time, in seconds, after a scaling activity completes before // another scaling activity can start. The default value is 300. This setting @@ -171,7 +171,7 @@ type UpdateAutoScalingGroupInput struct { // Terminates During Scale In // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html) // in the Amazon EC2 Auto Scaling User Guide. - TerminationPolicies []*string + TerminationPolicies []string // A comma-separated list of subnet IDs for virtual private cloud (VPC). If you // specify VPCZoneIdentifier with AvailabilityZones, the subnets that you specify diff --git a/service/autoscaling/deserializers.go b/service/autoscaling/deserializers.go index cde6d931a5b..2b41ff292d9 100644 --- a/service/autoscaling/deserializers.go +++ b/service/autoscaling/deserializers.go @@ -5967,7 +5967,7 @@ func awsAwsquery_deserializeDocumentActiveInstanceRefreshNotFoundFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5980,13 +5980,13 @@ func awsAwsquery_deserializeDocumentActiveInstanceRefreshNotFoundFault(v **types return nil } -func awsAwsquery_deserializeDocumentActivities(v *[]*types.Activity, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentActivities(v *[]types.Activity, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Activity + var sv []types.Activity if *v == nil { - sv = make([]*types.Activity, 0) + sv = make([]types.Activity, 0) } else { sv = *v } @@ -6002,11 +6002,13 @@ func awsAwsquery_deserializeDocumentActivities(v *[]*types.Activity, decoder smi } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Activity + var col types.Activity nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentActivity(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentActivity(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6019,23 +6021,25 @@ func awsAwsquery_deserializeDocumentActivities(v *[]*types.Activity, decoder smi return nil } -func awsAwsquery_deserializeDocumentActivitiesUnwrapped(v *[]*types.Activity, decoder smithyxml.NodeDecoder) error { - var sv []*types.Activity +func awsAwsquery_deserializeDocumentActivitiesUnwrapped(v *[]types.Activity, decoder smithyxml.NodeDecoder) error { + var sv []types.Activity if *v == nil { - sv = make([]*types.Activity, 0) + sv = make([]types.Activity, 0) } else { sv = *v } switch { default: - var mv *types.Activity + var mv types.Activity t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentActivity(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentActivity(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6076,7 +6080,7 @@ func awsAwsquery_deserializeDocumentActivity(v **types.Activity, decoder smithyx } if val != nil { xtv := string(val) - sv.ActivityId = &xtv + sv.ActivityId = ptr.String(xtv) } case strings.EqualFold("AutoScalingGroupName", t.Name.Local): @@ -6092,7 +6096,7 @@ func awsAwsquery_deserializeDocumentActivity(v **types.Activity, decoder smithyx } if val != nil { xtv := string(val) - sv.AutoScalingGroupName = &xtv + sv.AutoScalingGroupName = ptr.String(xtv) } case strings.EqualFold("Cause", t.Name.Local): @@ -6108,7 +6112,7 @@ func awsAwsquery_deserializeDocumentActivity(v **types.Activity, decoder smithyx } if val != nil { xtv := string(val) - sv.Cause = &xtv + sv.Cause = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -6124,7 +6128,7 @@ func awsAwsquery_deserializeDocumentActivity(v **types.Activity, decoder smithyx } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("Details", t.Name.Local): @@ -6140,7 +6144,7 @@ func awsAwsquery_deserializeDocumentActivity(v **types.Activity, decoder smithyx } if val != nil { xtv := string(val) - sv.Details = &xtv + sv.Details = ptr.String(xtv) } case strings.EqualFold("EndTime", t.Name.Local): @@ -6157,7 +6161,7 @@ func awsAwsquery_deserializeDocumentActivity(v **types.Activity, decoder smithyx if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case strings.EqualFold("Progress", t.Name.Local): @@ -6174,7 +6178,7 @@ func awsAwsquery_deserializeDocumentActivity(v **types.Activity, decoder smithyx if err != nil { return err } - sv.Progress = ptr.Int32(int32(i64)) + sv.Progress = int32(i64) } case strings.EqualFold("StartTime", t.Name.Local): @@ -6191,7 +6195,7 @@ func awsAwsquery_deserializeDocumentActivity(v **types.Activity, decoder smithyx if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("StatusCode", t.Name.Local): @@ -6220,7 +6224,7 @@ func awsAwsquery_deserializeDocumentActivity(v **types.Activity, decoder smithyx } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } default: @@ -6268,7 +6272,7 @@ func awsAwsquery_deserializeDocumentAdjustmentType(v **types.AdjustmentType, dec } if val != nil { xtv := string(val) - sv.AdjustmentType = &xtv + sv.AdjustmentType = ptr.String(xtv) } default: @@ -6281,13 +6285,13 @@ func awsAwsquery_deserializeDocumentAdjustmentType(v **types.AdjustmentType, dec return nil } -func awsAwsquery_deserializeDocumentAdjustmentTypes(v *[]*types.AdjustmentType, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAdjustmentTypes(v *[]types.AdjustmentType, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AdjustmentType + var sv []types.AdjustmentType if *v == nil { - sv = make([]*types.AdjustmentType, 0) + sv = make([]types.AdjustmentType, 0) } else { sv = *v } @@ -6303,11 +6307,13 @@ func awsAwsquery_deserializeDocumentAdjustmentTypes(v *[]*types.AdjustmentType, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AdjustmentType + var col types.AdjustmentType nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAdjustmentType(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAdjustmentType(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6320,23 +6326,25 @@ func awsAwsquery_deserializeDocumentAdjustmentTypes(v *[]*types.AdjustmentType, return nil } -func awsAwsquery_deserializeDocumentAdjustmentTypesUnwrapped(v *[]*types.AdjustmentType, decoder smithyxml.NodeDecoder) error { - var sv []*types.AdjustmentType +func awsAwsquery_deserializeDocumentAdjustmentTypesUnwrapped(v *[]types.AdjustmentType, decoder smithyxml.NodeDecoder) error { + var sv []types.AdjustmentType if *v == nil { - sv = make([]*types.AdjustmentType, 0) + sv = make([]types.AdjustmentType, 0) } else { sv = *v } switch { default: - var mv *types.AdjustmentType + var mv types.AdjustmentType t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAdjustmentType(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAdjustmentType(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6377,7 +6385,7 @@ func awsAwsquery_deserializeDocumentAlarm(v **types.Alarm, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.AlarmARN = &xtv + sv.AlarmARN = ptr.String(xtv) } case strings.EqualFold("AlarmName", t.Name.Local): @@ -6393,7 +6401,7 @@ func awsAwsquery_deserializeDocumentAlarm(v **types.Alarm, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.AlarmName = &xtv + sv.AlarmName = ptr.String(xtv) } default: @@ -6406,13 +6414,13 @@ func awsAwsquery_deserializeDocumentAlarm(v **types.Alarm, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentAlarms(v *[]*types.Alarm, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAlarms(v *[]types.Alarm, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Alarm + var sv []types.Alarm if *v == nil { - sv = make([]*types.Alarm, 0) + sv = make([]types.Alarm, 0) } else { sv = *v } @@ -6428,11 +6436,13 @@ func awsAwsquery_deserializeDocumentAlarms(v *[]*types.Alarm, decoder smithyxml. } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Alarm + var col types.Alarm nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAlarm(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAlarm(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6445,23 +6455,25 @@ func awsAwsquery_deserializeDocumentAlarms(v *[]*types.Alarm, decoder smithyxml. return nil } -func awsAwsquery_deserializeDocumentAlarmsUnwrapped(v *[]*types.Alarm, decoder smithyxml.NodeDecoder) error { - var sv []*types.Alarm +func awsAwsquery_deserializeDocumentAlarmsUnwrapped(v *[]types.Alarm, decoder smithyxml.NodeDecoder) error { + var sv []types.Alarm if *v == nil { - sv = make([]*types.Alarm, 0) + sv = make([]types.Alarm, 0) } else { sv = *v } switch { default: - var mv *types.Alarm + var mv types.Alarm t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAlarm(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAlarm(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6502,7 +6514,7 @@ func awsAwsquery_deserializeDocumentAlreadyExistsFault(v **types.AlreadyExistsFa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6550,7 +6562,7 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, } if val != nil { xtv := string(val) - sv.AutoScalingGroupARN = &xtv + sv.AutoScalingGroupARN = ptr.String(xtv) } case strings.EqualFold("AutoScalingGroupName", t.Name.Local): @@ -6566,7 +6578,7 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, } if val != nil { xtv := string(val) - sv.AutoScalingGroupName = &xtv + sv.AutoScalingGroupName = ptr.String(xtv) } case strings.EqualFold("AvailabilityZones", t.Name.Local): @@ -6589,7 +6601,7 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, if err != nil { return err } - sv.CreatedTime = &t + sv.CreatedTime = ptr.Time(t) } case strings.EqualFold("DefaultCooldown", t.Name.Local): @@ -6662,7 +6674,7 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, } if val != nil { xtv := string(val) - sv.HealthCheckType = &xtv + sv.HealthCheckType = ptr.String(xtv) } case strings.EqualFold("Instances", t.Name.Local): @@ -6684,7 +6696,7 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, } if val != nil { xtv := string(val) - sv.LaunchConfigurationName = &xtv + sv.LaunchConfigurationName = ptr.String(xtv) } case strings.EqualFold("LaunchTemplate", t.Name.Local): @@ -6769,7 +6781,7 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, if err != nil { return fmt.Errorf("expected InstanceProtected to be of type *bool, got %T instead", val) } - sv.NewInstancesProtectedFromScaleIn = &xtv + sv.NewInstancesProtectedFromScaleIn = ptr.Bool(xtv) } case strings.EqualFold("PlacementGroup", t.Name.Local): @@ -6785,7 +6797,7 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, } if val != nil { xtv := string(val) - sv.PlacementGroup = &xtv + sv.PlacementGroup = ptr.String(xtv) } case strings.EqualFold("ServiceLinkedRoleARN", t.Name.Local): @@ -6801,7 +6813,7 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, } if val != nil { xtv := string(val) - sv.ServiceLinkedRoleARN = &xtv + sv.ServiceLinkedRoleARN = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -6817,7 +6829,7 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("SuspendedProcesses", t.Name.Local): @@ -6857,7 +6869,7 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, } if val != nil { xtv := string(val) - sv.VPCZoneIdentifier = &xtv + sv.VPCZoneIdentifier = ptr.String(xtv) } default: @@ -6870,13 +6882,13 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, return nil } -func awsAwsquery_deserializeDocumentAutoScalingGroups(v *[]*types.AutoScalingGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAutoScalingGroups(v *[]types.AutoScalingGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AutoScalingGroup + var sv []types.AutoScalingGroup if *v == nil { - sv = make([]*types.AutoScalingGroup, 0) + sv = make([]types.AutoScalingGroup, 0) } else { sv = *v } @@ -6892,11 +6904,13 @@ func awsAwsquery_deserializeDocumentAutoScalingGroups(v *[]*types.AutoScalingGro } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AutoScalingGroup + var col types.AutoScalingGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAutoScalingGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAutoScalingGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6909,23 +6923,25 @@ func awsAwsquery_deserializeDocumentAutoScalingGroups(v *[]*types.AutoScalingGro return nil } -func awsAwsquery_deserializeDocumentAutoScalingGroupsUnwrapped(v *[]*types.AutoScalingGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.AutoScalingGroup +func awsAwsquery_deserializeDocumentAutoScalingGroupsUnwrapped(v *[]types.AutoScalingGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.AutoScalingGroup if *v == nil { - sv = make([]*types.AutoScalingGroup, 0) + sv = make([]types.AutoScalingGroup, 0) } else { sv = *v } switch { default: - var mv *types.AutoScalingGroup + var mv types.AutoScalingGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAutoScalingGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAutoScalingGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6966,7 +6982,7 @@ func awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(v **types.AutoSca } if val != nil { xtv := string(val) - sv.AutoScalingGroupName = &xtv + sv.AutoScalingGroupName = ptr.String(xtv) } case strings.EqualFold("AvailabilityZone", t.Name.Local): @@ -6982,7 +6998,7 @@ func awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(v **types.AutoSca } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("HealthStatus", t.Name.Local): @@ -6998,7 +7014,7 @@ func awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(v **types.AutoSca } if val != nil { xtv := string(val) - sv.HealthStatus = &xtv + sv.HealthStatus = ptr.String(xtv) } case strings.EqualFold("InstanceId", t.Name.Local): @@ -7014,7 +7030,7 @@ func awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(v **types.AutoSca } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("InstanceType", t.Name.Local): @@ -7030,7 +7046,7 @@ func awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(v **types.AutoSca } if val != nil { xtv := string(val) - sv.InstanceType = &xtv + sv.InstanceType = ptr.String(xtv) } case strings.EqualFold("LaunchConfigurationName", t.Name.Local): @@ -7046,7 +7062,7 @@ func awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(v **types.AutoSca } if val != nil { xtv := string(val) - sv.LaunchConfigurationName = &xtv + sv.LaunchConfigurationName = ptr.String(xtv) } case strings.EqualFold("LaunchTemplate", t.Name.Local): @@ -7068,7 +7084,7 @@ func awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(v **types.AutoSca } if val != nil { xtv := string(val) - sv.LifecycleState = &xtv + sv.LifecycleState = ptr.String(xtv) } case strings.EqualFold("ProtectedFromScaleIn", t.Name.Local): @@ -7084,7 +7100,7 @@ func awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(v **types.AutoSca if err != nil { return fmt.Errorf("expected InstanceProtected to be of type *bool, got %T instead", val) } - sv.ProtectedFromScaleIn = &xtv + sv.ProtectedFromScaleIn = ptr.Bool(xtv) } case strings.EqualFold("WeightedCapacity", t.Name.Local): @@ -7100,7 +7116,7 @@ func awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(v **types.AutoSca } if val != nil { xtv := string(val) - sv.WeightedCapacity = &xtv + sv.WeightedCapacity = ptr.String(xtv) } default: @@ -7113,13 +7129,13 @@ func awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(v **types.AutoSca return nil } -func awsAwsquery_deserializeDocumentAutoScalingInstances(v *[]*types.AutoScalingInstanceDetails, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAutoScalingInstances(v *[]types.AutoScalingInstanceDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AutoScalingInstanceDetails + var sv []types.AutoScalingInstanceDetails if *v == nil { - sv = make([]*types.AutoScalingInstanceDetails, 0) + sv = make([]types.AutoScalingInstanceDetails, 0) } else { sv = *v } @@ -7135,11 +7151,13 @@ func awsAwsquery_deserializeDocumentAutoScalingInstances(v *[]*types.AutoScaling } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AutoScalingInstanceDetails + var col types.AutoScalingInstanceDetails nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7152,35 +7170,37 @@ func awsAwsquery_deserializeDocumentAutoScalingInstances(v *[]*types.AutoScaling return nil } -func awsAwsquery_deserializeDocumentAutoScalingInstancesUnwrapped(v *[]*types.AutoScalingInstanceDetails, decoder smithyxml.NodeDecoder) error { - var sv []*types.AutoScalingInstanceDetails +func awsAwsquery_deserializeDocumentAutoScalingInstancesUnwrapped(v *[]types.AutoScalingInstanceDetails, decoder smithyxml.NodeDecoder) error { + var sv []types.AutoScalingInstanceDetails if *v == nil { - sv = make([]*types.AutoScalingInstanceDetails, 0) + sv = make([]types.AutoScalingInstanceDetails, 0) } else { sv = *v } switch { default: - var mv *types.AutoScalingInstanceDetails + var mv types.AutoScalingInstanceDetails t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAutoScalingInstanceDetails(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAutoScalingNotificationTypes(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAutoScalingNotificationTypes(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -7198,20 +7218,17 @@ func awsAwsquery_deserializeDocumentAutoScalingNotificationTypes(v *[]*string, d decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -7224,17 +7241,17 @@ func awsAwsquery_deserializeDocumentAutoScalingNotificationTypes(v *[]*string, d return nil } -func awsAwsquery_deserializeDocumentAutoScalingNotificationTypesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAutoScalingNotificationTypesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7242,27 +7259,24 @@ func awsAwsquery_deserializeDocumentAutoScalingNotificationTypesUnwrapped(v *[]* return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -7280,20 +7294,17 @@ func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -7306,17 +7317,17 @@ func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smit return nil } -func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7324,14 +7335,11 @@ func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -7373,7 +7381,7 @@ func awsAwsquery_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapp } if val != nil { xtv := string(val) - sv.DeviceName = &xtv + sv.DeviceName = ptr.String(xtv) } case strings.EqualFold("Ebs", t.Name.Local): @@ -7395,7 +7403,7 @@ func awsAwsquery_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapp if err != nil { return fmt.Errorf("expected NoDevice to be of type *bool, got %T instead", val) } - sv.NoDevice = &xtv + sv.NoDevice = ptr.Bool(xtv) } case strings.EqualFold("VirtualName", t.Name.Local): @@ -7411,7 +7419,7 @@ func awsAwsquery_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapp } if val != nil { xtv := string(val) - sv.VirtualName = &xtv + sv.VirtualName = ptr.String(xtv) } default: @@ -7424,13 +7432,13 @@ func awsAwsquery_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapp return nil } -func awsAwsquery_deserializeDocumentBlockDeviceMappings(v *[]*types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentBlockDeviceMappings(v *[]types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.BlockDeviceMapping + var sv []types.BlockDeviceMapping if *v == nil { - sv = make([]*types.BlockDeviceMapping, 0) + sv = make([]types.BlockDeviceMapping, 0) } else { sv = *v } @@ -7446,11 +7454,13 @@ func awsAwsquery_deserializeDocumentBlockDeviceMappings(v *[]*types.BlockDeviceM } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.BlockDeviceMapping + var col types.BlockDeviceMapping nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentBlockDeviceMapping(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7463,35 +7473,37 @@ func awsAwsquery_deserializeDocumentBlockDeviceMappings(v *[]*types.BlockDeviceM return nil } -func awsAwsquery_deserializeDocumentBlockDeviceMappingsUnwrapped(v *[]*types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { - var sv []*types.BlockDeviceMapping +func awsAwsquery_deserializeDocumentBlockDeviceMappingsUnwrapped(v *[]types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { + var sv []types.BlockDeviceMapping if *v == nil { - sv = make([]*types.BlockDeviceMapping, 0) + sv = make([]types.BlockDeviceMapping, 0) } else { sv = *v } switch { default: - var mv *types.BlockDeviceMapping + var mv types.BlockDeviceMapping t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentBlockDeviceMapping(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentClassicLinkVPCSecurityGroups(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClassicLinkVPCSecurityGroups(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -7509,20 +7521,17 @@ func awsAwsquery_deserializeDocumentClassicLinkVPCSecurityGroups(v *[]*string, d decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -7535,17 +7544,17 @@ func awsAwsquery_deserializeDocumentClassicLinkVPCSecurityGroups(v *[]*string, d return nil } -func awsAwsquery_deserializeDocumentClassicLinkVPCSecurityGroupsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentClassicLinkVPCSecurityGroupsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7553,14 +7562,11 @@ func awsAwsquery_deserializeDocumentClassicLinkVPCSecurityGroupsUnwrapped(v *[]* return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -7608,7 +7614,7 @@ func awsAwsquery_deserializeDocumentCustomizedMetricSpecification(v **types.Cust } if val != nil { xtv := string(val) - sv.MetricName = &xtv + sv.MetricName = ptr.String(xtv) } case strings.EqualFold("Namespace", t.Name.Local): @@ -7624,7 +7630,7 @@ func awsAwsquery_deserializeDocumentCustomizedMetricSpecification(v **types.Cust } if val != nil { xtv := string(val) - sv.Namespace = &xtv + sv.Namespace = ptr.String(xtv) } case strings.EqualFold("Statistic", t.Name.Local): @@ -7653,7 +7659,7 @@ func awsAwsquery_deserializeDocumentCustomizedMetricSpecification(v **types.Cust } if val != nil { xtv := string(val) - sv.Unit = &xtv + sv.Unit = ptr.String(xtv) } default: @@ -7701,7 +7707,7 @@ func awsAwsquery_deserializeDocumentEbs(v **types.Ebs, decoder smithyxml.NodeDec if err != nil { return fmt.Errorf("expected BlockDeviceEbsDeleteOnTermination to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = &xtv + sv.DeleteOnTermination = ptr.Bool(xtv) } case strings.EqualFold("Encrypted", t.Name.Local): @@ -7717,7 +7723,7 @@ func awsAwsquery_deserializeDocumentEbs(v **types.Ebs, decoder smithyxml.NodeDec if err != nil { return fmt.Errorf("expected BlockDeviceEbsEncrypted to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = ptr.Bool(xtv) } case strings.EqualFold("Iops", t.Name.Local): @@ -7750,7 +7756,7 @@ func awsAwsquery_deserializeDocumentEbs(v **types.Ebs, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("VolumeSize", t.Name.Local): @@ -7783,7 +7789,7 @@ func awsAwsquery_deserializeDocumentEbs(v **types.Ebs, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.VolumeType = &xtv + sv.VolumeType = ptr.String(xtv) } default: @@ -7831,7 +7837,7 @@ func awsAwsquery_deserializeDocumentEnabledMetric(v **types.EnabledMetric, decod } if val != nil { xtv := string(val) - sv.Granularity = &xtv + sv.Granularity = ptr.String(xtv) } case strings.EqualFold("Metric", t.Name.Local): @@ -7847,7 +7853,7 @@ func awsAwsquery_deserializeDocumentEnabledMetric(v **types.EnabledMetric, decod } if val != nil { xtv := string(val) - sv.Metric = &xtv + sv.Metric = ptr.String(xtv) } default: @@ -7860,13 +7866,13 @@ func awsAwsquery_deserializeDocumentEnabledMetric(v **types.EnabledMetric, decod return nil } -func awsAwsquery_deserializeDocumentEnabledMetrics(v *[]*types.EnabledMetric, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEnabledMetrics(v *[]types.EnabledMetric, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EnabledMetric + var sv []types.EnabledMetric if *v == nil { - sv = make([]*types.EnabledMetric, 0) + sv = make([]types.EnabledMetric, 0) } else { sv = *v } @@ -7882,11 +7888,13 @@ func awsAwsquery_deserializeDocumentEnabledMetrics(v *[]*types.EnabledMetric, de } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.EnabledMetric + var col types.EnabledMetric nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEnabledMetric(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEnabledMetric(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7899,23 +7907,25 @@ func awsAwsquery_deserializeDocumentEnabledMetrics(v *[]*types.EnabledMetric, de return nil } -func awsAwsquery_deserializeDocumentEnabledMetricsUnwrapped(v *[]*types.EnabledMetric, decoder smithyxml.NodeDecoder) error { - var sv []*types.EnabledMetric +func awsAwsquery_deserializeDocumentEnabledMetricsUnwrapped(v *[]types.EnabledMetric, decoder smithyxml.NodeDecoder) error { + var sv []types.EnabledMetric if *v == nil { - sv = make([]*types.EnabledMetric, 0) + sv = make([]types.EnabledMetric, 0) } else { sv = *v } switch { default: - var mv *types.EnabledMetric + var mv types.EnabledMetric t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEnabledMetric(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEnabledMetric(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -7956,7 +7966,7 @@ func awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequest(v ** } if val != nil { xtv := string(val) - sv.ErrorCode = &xtv + sv.ErrorCode = ptr.String(xtv) } case strings.EqualFold("ErrorMessage", t.Name.Local): @@ -7972,7 +7982,7 @@ func awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequest(v ** } if val != nil { xtv := string(val) - sv.ErrorMessage = &xtv + sv.ErrorMessage = ptr.String(xtv) } case strings.EqualFold("ScheduledActionName", t.Name.Local): @@ -7988,7 +7998,7 @@ func awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequest(v ** } if val != nil { xtv := string(val) - sv.ScheduledActionName = &xtv + sv.ScheduledActionName = ptr.String(xtv) } default: @@ -8001,13 +8011,13 @@ func awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequest(v ** return nil } -func awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequests(v *[]*types.FailedScheduledUpdateGroupActionRequest, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequests(v *[]types.FailedScheduledUpdateGroupActionRequest, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.FailedScheduledUpdateGroupActionRequest + var sv []types.FailedScheduledUpdateGroupActionRequest if *v == nil { - sv = make([]*types.FailedScheduledUpdateGroupActionRequest, 0) + sv = make([]types.FailedScheduledUpdateGroupActionRequest, 0) } else { sv = *v } @@ -8023,11 +8033,13 @@ func awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequests(v * } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.FailedScheduledUpdateGroupActionRequest + var col types.FailedScheduledUpdateGroupActionRequest nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequest(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequest(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8040,23 +8052,25 @@ func awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequests(v * return nil } -func awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequestsUnwrapped(v *[]*types.FailedScheduledUpdateGroupActionRequest, decoder smithyxml.NodeDecoder) error { - var sv []*types.FailedScheduledUpdateGroupActionRequest +func awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequestsUnwrapped(v *[]types.FailedScheduledUpdateGroupActionRequest, decoder smithyxml.NodeDecoder) error { + var sv []types.FailedScheduledUpdateGroupActionRequest if *v == nil { - sv = make([]*types.FailedScheduledUpdateGroupActionRequest, 0) + sv = make([]types.FailedScheduledUpdateGroupActionRequest, 0) } else { sv = *v } switch { default: - var mv *types.FailedScheduledUpdateGroupActionRequest + var mv types.FailedScheduledUpdateGroupActionRequest t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequest(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentFailedScheduledUpdateGroupActionRequest(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8097,7 +8111,7 @@ func awsAwsquery_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("HealthStatus", t.Name.Local): @@ -8113,7 +8127,7 @@ func awsAwsquery_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.HealthStatus = &xtv + sv.HealthStatus = ptr.String(xtv) } case strings.EqualFold("InstanceId", t.Name.Local): @@ -8129,7 +8143,7 @@ func awsAwsquery_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("InstanceType", t.Name.Local): @@ -8145,7 +8159,7 @@ func awsAwsquery_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.InstanceType = &xtv + sv.InstanceType = ptr.String(xtv) } case strings.EqualFold("LaunchConfigurationName", t.Name.Local): @@ -8161,7 +8175,7 @@ func awsAwsquery_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.LaunchConfigurationName = &xtv + sv.LaunchConfigurationName = ptr.String(xtv) } case strings.EqualFold("LaunchTemplate", t.Name.Local): @@ -8196,7 +8210,7 @@ func awsAwsquery_deserializeDocumentInstance(v **types.Instance, decoder smithyx if err != nil { return fmt.Errorf("expected InstanceProtected to be of type *bool, got %T instead", val) } - sv.ProtectedFromScaleIn = &xtv + sv.ProtectedFromScaleIn = ptr.Bool(xtv) } case strings.EqualFold("WeightedCapacity", t.Name.Local): @@ -8212,7 +8226,7 @@ func awsAwsquery_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.WeightedCapacity = &xtv + sv.WeightedCapacity = ptr.String(xtv) } default: @@ -8335,7 +8349,7 @@ func awsAwsquery_deserializeDocumentInstanceMonitoring(v **types.InstanceMonitor if err != nil { return fmt.Errorf("expected MonitoringEnabled to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } default: @@ -8383,7 +8397,7 @@ func awsAwsquery_deserializeDocumentInstanceRefresh(v **types.InstanceRefresh, d } if val != nil { xtv := string(val) - sv.AutoScalingGroupName = &xtv + sv.AutoScalingGroupName = ptr.String(xtv) } case strings.EqualFold("EndTime", t.Name.Local): @@ -8400,7 +8414,7 @@ func awsAwsquery_deserializeDocumentInstanceRefresh(v **types.InstanceRefresh, d if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case strings.EqualFold("InstanceRefreshId", t.Name.Local): @@ -8416,7 +8430,7 @@ func awsAwsquery_deserializeDocumentInstanceRefresh(v **types.InstanceRefresh, d } if val != nil { xtv := string(val) - sv.InstanceRefreshId = &xtv + sv.InstanceRefreshId = ptr.String(xtv) } case strings.EqualFold("InstancesToUpdate", t.Name.Local): @@ -8467,7 +8481,7 @@ func awsAwsquery_deserializeDocumentInstanceRefresh(v **types.InstanceRefresh, d if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("Status", t.Name.Local): @@ -8496,7 +8510,7 @@ func awsAwsquery_deserializeDocumentInstanceRefresh(v **types.InstanceRefresh, d } if val != nil { xtv := string(val) - sv.StatusReason = &xtv + sv.StatusReason = ptr.String(xtv) } default: @@ -8509,13 +8523,13 @@ func awsAwsquery_deserializeDocumentInstanceRefresh(v **types.InstanceRefresh, d return nil } -func awsAwsquery_deserializeDocumentInstanceRefreshes(v *[]*types.InstanceRefresh, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInstanceRefreshes(v *[]types.InstanceRefresh, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceRefresh + var sv []types.InstanceRefresh if *v == nil { - sv = make([]*types.InstanceRefresh, 0) + sv = make([]types.InstanceRefresh, 0) } else { sv = *v } @@ -8531,11 +8545,13 @@ func awsAwsquery_deserializeDocumentInstanceRefreshes(v *[]*types.InstanceRefres } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.InstanceRefresh + var col types.InstanceRefresh nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstanceRefresh(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentInstanceRefresh(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8548,23 +8564,25 @@ func awsAwsquery_deserializeDocumentInstanceRefreshes(v *[]*types.InstanceRefres return nil } -func awsAwsquery_deserializeDocumentInstanceRefreshesUnwrapped(v *[]*types.InstanceRefresh, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceRefresh +func awsAwsquery_deserializeDocumentInstanceRefreshesUnwrapped(v *[]types.InstanceRefresh, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceRefresh if *v == nil { - sv = make([]*types.InstanceRefresh, 0) + sv = make([]types.InstanceRefresh, 0) } else { sv = *v } switch { default: - var mv *types.InstanceRefresh + var mv types.InstanceRefresh t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstanceRefresh(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentInstanceRefresh(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8605,7 +8623,7 @@ func awsAwsquery_deserializeDocumentInstanceRefreshInProgressFault(v **types.Ins } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8618,13 +8636,13 @@ func awsAwsquery_deserializeDocumentInstanceRefreshInProgressFault(v **types.Ins return nil } -func awsAwsquery_deserializeDocumentInstances(v *[]*types.Instance, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInstances(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Instance + var sv []types.Instance if *v == nil { - sv = make([]*types.Instance, 0) + sv = make([]types.Instance, 0) } else { sv = *v } @@ -8640,11 +8658,13 @@ func awsAwsquery_deserializeDocumentInstances(v *[]*types.Instance, decoder smit } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Instance + var col types.Instance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8657,23 +8677,25 @@ func awsAwsquery_deserializeDocumentInstances(v *[]*types.Instance, decoder smit return nil } -func awsAwsquery_deserializeDocumentInstancesUnwrapped(v *[]*types.Instance, decoder smithyxml.NodeDecoder) error { - var sv []*types.Instance +func awsAwsquery_deserializeDocumentInstancesUnwrapped(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { + var sv []types.Instance if *v == nil { - sv = make([]*types.Instance, 0) + sv = make([]types.Instance, 0) } else { sv = *v } switch { default: - var mv *types.Instance + var mv types.Instance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8714,7 +8736,7 @@ func awsAwsquery_deserializeDocumentInstancesDistribution(v **types.InstancesDis } if val != nil { xtv := string(val) - sv.OnDemandAllocationStrategy = &xtv + sv.OnDemandAllocationStrategy = ptr.String(xtv) } case strings.EqualFold("OnDemandBaseCapacity", t.Name.Local): @@ -8764,7 +8786,7 @@ func awsAwsquery_deserializeDocumentInstancesDistribution(v **types.InstancesDis } if val != nil { xtv := string(val) - sv.SpotAllocationStrategy = &xtv + sv.SpotAllocationStrategy = ptr.String(xtv) } case strings.EqualFold("SpotInstancePools", t.Name.Local): @@ -8797,7 +8819,7 @@ func awsAwsquery_deserializeDocumentInstancesDistribution(v **types.InstancesDis } if val != nil { xtv := string(val) - sv.SpotMaxPrice = &xtv + sv.SpotMaxPrice = ptr.String(xtv) } default: @@ -8845,7 +8867,7 @@ func awsAwsquery_deserializeDocumentInvalidNextToken(v **types.InvalidNextToken, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8893,7 +8915,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur if err != nil { return fmt.Errorf("expected AssociatePublicIpAddress to be of type *bool, got %T instead", val) } - sv.AssociatePublicIpAddress = &xtv + sv.AssociatePublicIpAddress = ptr.Bool(xtv) } case strings.EqualFold("BlockDeviceMappings", t.Name.Local): @@ -8915,7 +8937,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur } if val != nil { xtv := string(val) - sv.ClassicLinkVPCId = &xtv + sv.ClassicLinkVPCId = ptr.String(xtv) } case strings.EqualFold("ClassicLinkVPCSecurityGroups", t.Name.Local): @@ -8938,7 +8960,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur if err != nil { return err } - sv.CreatedTime = &t + sv.CreatedTime = ptr.Time(t) } case strings.EqualFold("EbsOptimized", t.Name.Local): @@ -8954,7 +8976,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur if err != nil { return fmt.Errorf("expected EbsOptimized to be of type *bool, got %T instead", val) } - sv.EbsOptimized = &xtv + sv.EbsOptimized = ptr.Bool(xtv) } case strings.EqualFold("IamInstanceProfile", t.Name.Local): @@ -8970,7 +8992,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur } if val != nil { xtv := string(val) - sv.IamInstanceProfile = &xtv + sv.IamInstanceProfile = ptr.String(xtv) } case strings.EqualFold("ImageId", t.Name.Local): @@ -8986,7 +9008,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } case strings.EqualFold("InstanceMonitoring", t.Name.Local): @@ -9008,7 +9030,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur } if val != nil { xtv := string(val) - sv.InstanceType = &xtv + sv.InstanceType = ptr.String(xtv) } case strings.EqualFold("KernelId", t.Name.Local): @@ -9024,7 +9046,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur } if val != nil { xtv := string(val) - sv.KernelId = &xtv + sv.KernelId = ptr.String(xtv) } case strings.EqualFold("KeyName", t.Name.Local): @@ -9040,7 +9062,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur } if val != nil { xtv := string(val) - sv.KeyName = &xtv + sv.KeyName = ptr.String(xtv) } case strings.EqualFold("LaunchConfigurationARN", t.Name.Local): @@ -9056,7 +9078,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur } if val != nil { xtv := string(val) - sv.LaunchConfigurationARN = &xtv + sv.LaunchConfigurationARN = ptr.String(xtv) } case strings.EqualFold("LaunchConfigurationName", t.Name.Local): @@ -9072,7 +9094,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur } if val != nil { xtv := string(val) - sv.LaunchConfigurationName = &xtv + sv.LaunchConfigurationName = ptr.String(xtv) } case strings.EqualFold("MetadataOptions", t.Name.Local): @@ -9094,7 +9116,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur } if val != nil { xtv := string(val) - sv.PlacementTenancy = &xtv + sv.PlacementTenancy = ptr.String(xtv) } case strings.EqualFold("RamdiskId", t.Name.Local): @@ -9110,7 +9132,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur } if val != nil { xtv := string(val) - sv.RamdiskId = &xtv + sv.RamdiskId = ptr.String(xtv) } case strings.EqualFold("SecurityGroups", t.Name.Local): @@ -9132,7 +9154,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur } if val != nil { xtv := string(val) - sv.SpotPrice = &xtv + sv.SpotPrice = ptr.String(xtv) } case strings.EqualFold("UserData", t.Name.Local): @@ -9148,7 +9170,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur } if val != nil { xtv := string(val) - sv.UserData = &xtv + sv.UserData = ptr.String(xtv) } default: @@ -9161,13 +9183,13 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur return nil } -func awsAwsquery_deserializeDocumentLaunchConfigurations(v *[]*types.LaunchConfiguration, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLaunchConfigurations(v *[]types.LaunchConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchConfiguration + var sv []types.LaunchConfiguration if *v == nil { - sv = make([]*types.LaunchConfiguration, 0) + sv = make([]types.LaunchConfiguration, 0) } else { sv = *v } @@ -9183,11 +9205,13 @@ func awsAwsquery_deserializeDocumentLaunchConfigurations(v *[]*types.LaunchConfi } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LaunchConfiguration + var col types.LaunchConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLaunchConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLaunchConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9200,23 +9224,25 @@ func awsAwsquery_deserializeDocumentLaunchConfigurations(v *[]*types.LaunchConfi return nil } -func awsAwsquery_deserializeDocumentLaunchConfigurationsUnwrapped(v *[]*types.LaunchConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchConfiguration +func awsAwsquery_deserializeDocumentLaunchConfigurationsUnwrapped(v *[]types.LaunchConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchConfiguration if *v == nil { - sv = make([]*types.LaunchConfiguration, 0) + sv = make([]types.LaunchConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.LaunchConfiguration + var mv types.LaunchConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLaunchConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLaunchConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9301,7 +9327,7 @@ func awsAwsquery_deserializeDocumentLaunchTemplateOverrides(v **types.LaunchTemp } if val != nil { xtv := string(val) - sv.InstanceType = &xtv + sv.InstanceType = ptr.String(xtv) } case strings.EqualFold("WeightedCapacity", t.Name.Local): @@ -9317,7 +9343,7 @@ func awsAwsquery_deserializeDocumentLaunchTemplateOverrides(v **types.LaunchTemp } if val != nil { xtv := string(val) - sv.WeightedCapacity = &xtv + sv.WeightedCapacity = ptr.String(xtv) } default: @@ -9365,7 +9391,7 @@ func awsAwsquery_deserializeDocumentLaunchTemplateSpecification(v **types.Launch } if val != nil { xtv := string(val) - sv.LaunchTemplateId = &xtv + sv.LaunchTemplateId = ptr.String(xtv) } case strings.EqualFold("LaunchTemplateName", t.Name.Local): @@ -9381,7 +9407,7 @@ func awsAwsquery_deserializeDocumentLaunchTemplateSpecification(v **types.Launch } if val != nil { xtv := string(val) - sv.LaunchTemplateName = &xtv + sv.LaunchTemplateName = ptr.String(xtv) } case strings.EqualFold("Version", t.Name.Local): @@ -9397,7 +9423,7 @@ func awsAwsquery_deserializeDocumentLaunchTemplateSpecification(v **types.Launch } if val != nil { xtv := string(val) - sv.Version = &xtv + sv.Version = ptr.String(xtv) } default: @@ -9445,7 +9471,7 @@ func awsAwsquery_deserializeDocumentLifecycleHook(v **types.LifecycleHook, decod } if val != nil { xtv := string(val) - sv.AutoScalingGroupName = &xtv + sv.AutoScalingGroupName = ptr.String(xtv) } case strings.EqualFold("DefaultResult", t.Name.Local): @@ -9461,7 +9487,7 @@ func awsAwsquery_deserializeDocumentLifecycleHook(v **types.LifecycleHook, decod } if val != nil { xtv := string(val) - sv.DefaultResult = &xtv + sv.DefaultResult = ptr.String(xtv) } case strings.EqualFold("GlobalTimeout", t.Name.Local): @@ -9511,7 +9537,7 @@ func awsAwsquery_deserializeDocumentLifecycleHook(v **types.LifecycleHook, decod } if val != nil { xtv := string(val) - sv.LifecycleHookName = &xtv + sv.LifecycleHookName = ptr.String(xtv) } case strings.EqualFold("LifecycleTransition", t.Name.Local): @@ -9527,7 +9553,7 @@ func awsAwsquery_deserializeDocumentLifecycleHook(v **types.LifecycleHook, decod } if val != nil { xtv := string(val) - sv.LifecycleTransition = &xtv + sv.LifecycleTransition = ptr.String(xtv) } case strings.EqualFold("NotificationMetadata", t.Name.Local): @@ -9543,7 +9569,7 @@ func awsAwsquery_deserializeDocumentLifecycleHook(v **types.LifecycleHook, decod } if val != nil { xtv := string(val) - sv.NotificationMetadata = &xtv + sv.NotificationMetadata = ptr.String(xtv) } case strings.EqualFold("NotificationTargetARN", t.Name.Local): @@ -9559,7 +9585,7 @@ func awsAwsquery_deserializeDocumentLifecycleHook(v **types.LifecycleHook, decod } if val != nil { xtv := string(val) - sv.NotificationTargetARN = &xtv + sv.NotificationTargetARN = ptr.String(xtv) } case strings.EqualFold("RoleARN", t.Name.Local): @@ -9575,7 +9601,7 @@ func awsAwsquery_deserializeDocumentLifecycleHook(v **types.LifecycleHook, decod } if val != nil { xtv := string(val) - sv.RoleARN = &xtv + sv.RoleARN = ptr.String(xtv) } default: @@ -9588,13 +9614,13 @@ func awsAwsquery_deserializeDocumentLifecycleHook(v **types.LifecycleHook, decod return nil } -func awsAwsquery_deserializeDocumentLifecycleHooks(v *[]*types.LifecycleHook, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLifecycleHooks(v *[]types.LifecycleHook, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LifecycleHook + var sv []types.LifecycleHook if *v == nil { - sv = make([]*types.LifecycleHook, 0) + sv = make([]types.LifecycleHook, 0) } else { sv = *v } @@ -9610,11 +9636,13 @@ func awsAwsquery_deserializeDocumentLifecycleHooks(v *[]*types.LifecycleHook, de } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LifecycleHook + var col types.LifecycleHook nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLifecycleHook(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLifecycleHook(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9627,23 +9655,25 @@ func awsAwsquery_deserializeDocumentLifecycleHooks(v *[]*types.LifecycleHook, de return nil } -func awsAwsquery_deserializeDocumentLifecycleHooksUnwrapped(v *[]*types.LifecycleHook, decoder smithyxml.NodeDecoder) error { - var sv []*types.LifecycleHook +func awsAwsquery_deserializeDocumentLifecycleHooksUnwrapped(v *[]types.LifecycleHook, decoder smithyxml.NodeDecoder) error { + var sv []types.LifecycleHook if *v == nil { - sv = make([]*types.LifecycleHook, 0) + sv = make([]types.LifecycleHook, 0) } else { sv = *v } switch { default: - var mv *types.LifecycleHook + var mv types.LifecycleHook t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLifecycleHook(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLifecycleHook(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9684,7 +9714,7 @@ func awsAwsquery_deserializeDocumentLimitExceededFault(v **types.LimitExceededFa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9697,13 +9727,13 @@ func awsAwsquery_deserializeDocumentLimitExceededFault(v **types.LimitExceededFa return nil } -func awsAwsquery_deserializeDocumentLoadBalancerNames(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLoadBalancerNames(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -9721,20 +9751,17 @@ func awsAwsquery_deserializeDocumentLoadBalancerNames(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -9747,17 +9774,17 @@ func awsAwsquery_deserializeDocumentLoadBalancerNames(v *[]*string, decoder smit return nil } -func awsAwsquery_deserializeDocumentLoadBalancerNamesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentLoadBalancerNamesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -9765,14 +9792,11 @@ func awsAwsquery_deserializeDocumentLoadBalancerNamesUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -9814,7 +9838,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerState(v **types.LoadBalancerStat } if val != nil { xtv := string(val) - sv.LoadBalancerName = &xtv + sv.LoadBalancerName = ptr.String(xtv) } case strings.EqualFold("State", t.Name.Local): @@ -9830,7 +9854,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerState(v **types.LoadBalancerStat } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } default: @@ -9843,13 +9867,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerState(v **types.LoadBalancerStat return nil } -func awsAwsquery_deserializeDocumentLoadBalancerStates(v *[]*types.LoadBalancerState, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLoadBalancerStates(v *[]types.LoadBalancerState, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LoadBalancerState + var sv []types.LoadBalancerState if *v == nil { - sv = make([]*types.LoadBalancerState, 0) + sv = make([]types.LoadBalancerState, 0) } else { sv = *v } @@ -9865,11 +9889,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerStates(v *[]*types.LoadBalancerS } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LoadBalancerState + var col types.LoadBalancerState nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerState(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLoadBalancerState(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9882,23 +9908,25 @@ func awsAwsquery_deserializeDocumentLoadBalancerStates(v *[]*types.LoadBalancerS return nil } -func awsAwsquery_deserializeDocumentLoadBalancerStatesUnwrapped(v *[]*types.LoadBalancerState, decoder smithyxml.NodeDecoder) error { - var sv []*types.LoadBalancerState +func awsAwsquery_deserializeDocumentLoadBalancerStatesUnwrapped(v *[]types.LoadBalancerState, decoder smithyxml.NodeDecoder) error { + var sv []types.LoadBalancerState if *v == nil { - sv = make([]*types.LoadBalancerState, 0) + sv = make([]types.LoadBalancerState, 0) } else { sv = *v } switch { default: - var mv *types.LoadBalancerState + var mv types.LoadBalancerState t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerState(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLoadBalancerState(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9939,7 +9967,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerTargetGroupState(v **types.LoadB } if val != nil { xtv := string(val) - sv.LoadBalancerTargetGroupARN = &xtv + sv.LoadBalancerTargetGroupARN = ptr.String(xtv) } case strings.EqualFold("State", t.Name.Local): @@ -9955,7 +9983,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerTargetGroupState(v **types.LoadB } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } default: @@ -9968,13 +9996,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerTargetGroupState(v **types.LoadB return nil } -func awsAwsquery_deserializeDocumentLoadBalancerTargetGroupStates(v *[]*types.LoadBalancerTargetGroupState, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLoadBalancerTargetGroupStates(v *[]types.LoadBalancerTargetGroupState, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LoadBalancerTargetGroupState + var sv []types.LoadBalancerTargetGroupState if *v == nil { - sv = make([]*types.LoadBalancerTargetGroupState, 0) + sv = make([]types.LoadBalancerTargetGroupState, 0) } else { sv = *v } @@ -9990,11 +10018,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerTargetGroupStates(v *[]*types.Lo } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LoadBalancerTargetGroupState + var col types.LoadBalancerTargetGroupState nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerTargetGroupState(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLoadBalancerTargetGroupState(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10007,23 +10037,25 @@ func awsAwsquery_deserializeDocumentLoadBalancerTargetGroupStates(v *[]*types.Lo return nil } -func awsAwsquery_deserializeDocumentLoadBalancerTargetGroupStatesUnwrapped(v *[]*types.LoadBalancerTargetGroupState, decoder smithyxml.NodeDecoder) error { - var sv []*types.LoadBalancerTargetGroupState +func awsAwsquery_deserializeDocumentLoadBalancerTargetGroupStatesUnwrapped(v *[]types.LoadBalancerTargetGroupState, decoder smithyxml.NodeDecoder) error { + var sv []types.LoadBalancerTargetGroupState if *v == nil { - sv = make([]*types.LoadBalancerTargetGroupState, 0) + sv = make([]types.LoadBalancerTargetGroupState, 0) } else { sv = *v } switch { default: - var mv *types.LoadBalancerTargetGroupState + var mv types.LoadBalancerTargetGroupState t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerTargetGroupState(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLoadBalancerTargetGroupState(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10064,7 +10096,7 @@ func awsAwsquery_deserializeDocumentMetricCollectionType(v **types.MetricCollect } if val != nil { xtv := string(val) - sv.Metric = &xtv + sv.Metric = ptr.String(xtv) } default: @@ -10077,13 +10109,13 @@ func awsAwsquery_deserializeDocumentMetricCollectionType(v **types.MetricCollect return nil } -func awsAwsquery_deserializeDocumentMetricCollectionTypes(v *[]*types.MetricCollectionType, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMetricCollectionTypes(v *[]types.MetricCollectionType, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.MetricCollectionType + var sv []types.MetricCollectionType if *v == nil { - sv = make([]*types.MetricCollectionType, 0) + sv = make([]types.MetricCollectionType, 0) } else { sv = *v } @@ -10099,11 +10131,13 @@ func awsAwsquery_deserializeDocumentMetricCollectionTypes(v *[]*types.MetricColl } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.MetricCollectionType + var col types.MetricCollectionType nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetricCollectionType(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentMetricCollectionType(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10116,23 +10150,25 @@ func awsAwsquery_deserializeDocumentMetricCollectionTypes(v *[]*types.MetricColl return nil } -func awsAwsquery_deserializeDocumentMetricCollectionTypesUnwrapped(v *[]*types.MetricCollectionType, decoder smithyxml.NodeDecoder) error { - var sv []*types.MetricCollectionType +func awsAwsquery_deserializeDocumentMetricCollectionTypesUnwrapped(v *[]types.MetricCollectionType, decoder smithyxml.NodeDecoder) error { + var sv []types.MetricCollectionType if *v == nil { - sv = make([]*types.MetricCollectionType, 0) + sv = make([]types.MetricCollectionType, 0) } else { sv = *v } switch { default: - var mv *types.MetricCollectionType + var mv types.MetricCollectionType t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetricCollectionType(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentMetricCollectionType(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10173,7 +10209,7 @@ func awsAwsquery_deserializeDocumentMetricDimension(v **types.MetricDimension, d } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -10189,7 +10225,7 @@ func awsAwsquery_deserializeDocumentMetricDimension(v **types.MetricDimension, d } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -10202,13 +10238,13 @@ func awsAwsquery_deserializeDocumentMetricDimension(v **types.MetricDimension, d return nil } -func awsAwsquery_deserializeDocumentMetricDimensions(v *[]*types.MetricDimension, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMetricDimensions(v *[]types.MetricDimension, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.MetricDimension + var sv []types.MetricDimension if *v == nil { - sv = make([]*types.MetricDimension, 0) + sv = make([]types.MetricDimension, 0) } else { sv = *v } @@ -10224,11 +10260,13 @@ func awsAwsquery_deserializeDocumentMetricDimensions(v *[]*types.MetricDimension } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.MetricDimension + var col types.MetricDimension nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetricDimension(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentMetricDimension(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10241,23 +10279,25 @@ func awsAwsquery_deserializeDocumentMetricDimensions(v *[]*types.MetricDimension return nil } -func awsAwsquery_deserializeDocumentMetricDimensionsUnwrapped(v *[]*types.MetricDimension, decoder smithyxml.NodeDecoder) error { - var sv []*types.MetricDimension +func awsAwsquery_deserializeDocumentMetricDimensionsUnwrapped(v *[]types.MetricDimension, decoder smithyxml.NodeDecoder) error { + var sv []types.MetricDimension if *v == nil { - sv = make([]*types.MetricDimension, 0) + sv = make([]types.MetricDimension, 0) } else { sv = *v } switch { default: - var mv *types.MetricDimension + var mv types.MetricDimension t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetricDimension(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentMetricDimension(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10298,7 +10338,7 @@ func awsAwsquery_deserializeDocumentMetricGranularityType(v **types.MetricGranul } if val != nil { xtv := string(val) - sv.Granularity = &xtv + sv.Granularity = ptr.String(xtv) } default: @@ -10311,13 +10351,13 @@ func awsAwsquery_deserializeDocumentMetricGranularityType(v **types.MetricGranul return nil } -func awsAwsquery_deserializeDocumentMetricGranularityTypes(v *[]*types.MetricGranularityType, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMetricGranularityTypes(v *[]types.MetricGranularityType, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.MetricGranularityType + var sv []types.MetricGranularityType if *v == nil { - sv = make([]*types.MetricGranularityType, 0) + sv = make([]types.MetricGranularityType, 0) } else { sv = *v } @@ -10333,11 +10373,13 @@ func awsAwsquery_deserializeDocumentMetricGranularityTypes(v *[]*types.MetricGra } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.MetricGranularityType + var col types.MetricGranularityType nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetricGranularityType(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentMetricGranularityType(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10350,23 +10392,25 @@ func awsAwsquery_deserializeDocumentMetricGranularityTypes(v *[]*types.MetricGra return nil } -func awsAwsquery_deserializeDocumentMetricGranularityTypesUnwrapped(v *[]*types.MetricGranularityType, decoder smithyxml.NodeDecoder) error { - var sv []*types.MetricGranularityType +func awsAwsquery_deserializeDocumentMetricGranularityTypesUnwrapped(v *[]types.MetricGranularityType, decoder smithyxml.NodeDecoder) error { + var sv []types.MetricGranularityType if *v == nil { - sv = make([]*types.MetricGranularityType, 0) + sv = make([]types.MetricGranularityType, 0) } else { sv = *v } switch { default: - var mv *types.MetricGranularityType + var mv types.MetricGranularityType t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetricGranularityType(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentMetricGranularityType(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10451,7 +10495,7 @@ func awsAwsquery_deserializeDocumentNotificationConfiguration(v **types.Notifica } if val != nil { xtv := string(val) - sv.AutoScalingGroupName = &xtv + sv.AutoScalingGroupName = ptr.String(xtv) } case strings.EqualFold("NotificationType", t.Name.Local): @@ -10467,7 +10511,7 @@ func awsAwsquery_deserializeDocumentNotificationConfiguration(v **types.Notifica } if val != nil { xtv := string(val) - sv.NotificationType = &xtv + sv.NotificationType = ptr.String(xtv) } case strings.EqualFold("TopicARN", t.Name.Local): @@ -10483,7 +10527,7 @@ func awsAwsquery_deserializeDocumentNotificationConfiguration(v **types.Notifica } if val != nil { xtv := string(val) - sv.TopicARN = &xtv + sv.TopicARN = ptr.String(xtv) } default: @@ -10496,13 +10540,13 @@ func awsAwsquery_deserializeDocumentNotificationConfiguration(v **types.Notifica return nil } -func awsAwsquery_deserializeDocumentNotificationConfigurations(v *[]*types.NotificationConfiguration, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNotificationConfigurations(v *[]types.NotificationConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NotificationConfiguration + var sv []types.NotificationConfiguration if *v == nil { - sv = make([]*types.NotificationConfiguration, 0) + sv = make([]types.NotificationConfiguration, 0) } else { sv = *v } @@ -10518,11 +10562,13 @@ func awsAwsquery_deserializeDocumentNotificationConfigurations(v *[]*types.Notif } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.NotificationConfiguration + var col types.NotificationConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNotificationConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentNotificationConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10535,35 +10581,37 @@ func awsAwsquery_deserializeDocumentNotificationConfigurations(v *[]*types.Notif return nil } -func awsAwsquery_deserializeDocumentNotificationConfigurationsUnwrapped(v *[]*types.NotificationConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.NotificationConfiguration +func awsAwsquery_deserializeDocumentNotificationConfigurationsUnwrapped(v *[]types.NotificationConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.NotificationConfiguration if *v == nil { - sv = make([]*types.NotificationConfiguration, 0) + sv = make([]types.NotificationConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.NotificationConfiguration + var mv types.NotificationConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNotificationConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentNotificationConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentOverrides(v *[]*types.LaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOverrides(v *[]types.LaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchTemplateOverrides + var sv []types.LaunchTemplateOverrides if *v == nil { - sv = make([]*types.LaunchTemplateOverrides, 0) + sv = make([]types.LaunchTemplateOverrides, 0) } else { sv = *v } @@ -10579,11 +10627,13 @@ func awsAwsquery_deserializeDocumentOverrides(v *[]*types.LaunchTemplateOverride } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LaunchTemplateOverrides + var col types.LaunchTemplateOverrides nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLaunchTemplateOverrides(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLaunchTemplateOverrides(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10596,23 +10646,25 @@ func awsAwsquery_deserializeDocumentOverrides(v *[]*types.LaunchTemplateOverride return nil } -func awsAwsquery_deserializeDocumentOverridesUnwrapped(v *[]*types.LaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchTemplateOverrides +func awsAwsquery_deserializeDocumentOverridesUnwrapped(v *[]types.LaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchTemplateOverrides if *v == nil { - sv = make([]*types.LaunchTemplateOverrides, 0) + sv = make([]types.LaunchTemplateOverrides, 0) } else { sv = *v } switch { default: - var mv *types.LaunchTemplateOverrides + var mv types.LaunchTemplateOverrides t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLaunchTemplateOverrides(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLaunchTemplateOverrides(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10666,7 +10718,7 @@ func awsAwsquery_deserializeDocumentPredefinedMetricSpecification(v **types.Pred } if val != nil { xtv := string(val) - sv.ResourceLabel = &xtv + sv.ResourceLabel = ptr.String(xtv) } default: @@ -10679,13 +10731,13 @@ func awsAwsquery_deserializeDocumentPredefinedMetricSpecification(v **types.Pred return nil } -func awsAwsquery_deserializeDocumentProcesses(v *[]*types.ProcessType, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentProcesses(v *[]types.ProcessType, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ProcessType + var sv []types.ProcessType if *v == nil { - sv = make([]*types.ProcessType, 0) + sv = make([]types.ProcessType, 0) } else { sv = *v } @@ -10701,11 +10753,13 @@ func awsAwsquery_deserializeDocumentProcesses(v *[]*types.ProcessType, decoder s } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ProcessType + var col types.ProcessType nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentProcessType(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentProcessType(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10718,23 +10772,25 @@ func awsAwsquery_deserializeDocumentProcesses(v *[]*types.ProcessType, decoder s return nil } -func awsAwsquery_deserializeDocumentProcessesUnwrapped(v *[]*types.ProcessType, decoder smithyxml.NodeDecoder) error { - var sv []*types.ProcessType +func awsAwsquery_deserializeDocumentProcessesUnwrapped(v *[]types.ProcessType, decoder smithyxml.NodeDecoder) error { + var sv []types.ProcessType if *v == nil { - sv = make([]*types.ProcessType, 0) + sv = make([]types.ProcessType, 0) } else { sv = *v } switch { default: - var mv *types.ProcessType + var mv types.ProcessType t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentProcessType(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentProcessType(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10775,7 +10831,7 @@ func awsAwsquery_deserializeDocumentProcessType(v **types.ProcessType, decoder s } if val != nil { xtv := string(val) - sv.ProcessName = &xtv + sv.ProcessName = ptr.String(xtv) } default: @@ -10823,7 +10879,7 @@ func awsAwsquery_deserializeDocumentResourceContentionFault(v **types.ResourceCo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10871,7 +10927,7 @@ func awsAwsquery_deserializeDocumentResourceInUseFault(v **types.ResourceInUseFa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10919,7 +10975,7 @@ func awsAwsquery_deserializeDocumentScalingActivityInProgressFault(v **types.Sca } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10932,13 +10988,13 @@ func awsAwsquery_deserializeDocumentScalingActivityInProgressFault(v **types.Sca return nil } -func awsAwsquery_deserializeDocumentScalingPolicies(v *[]*types.ScalingPolicy, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentScalingPolicies(v *[]types.ScalingPolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ScalingPolicy + var sv []types.ScalingPolicy if *v == nil { - sv = make([]*types.ScalingPolicy, 0) + sv = make([]types.ScalingPolicy, 0) } else { sv = *v } @@ -10954,11 +11010,13 @@ func awsAwsquery_deserializeDocumentScalingPolicies(v *[]*types.ScalingPolicy, d } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ScalingPolicy + var col types.ScalingPolicy nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentScalingPolicy(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentScalingPolicy(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10971,23 +11029,25 @@ func awsAwsquery_deserializeDocumentScalingPolicies(v *[]*types.ScalingPolicy, d return nil } -func awsAwsquery_deserializeDocumentScalingPoliciesUnwrapped(v *[]*types.ScalingPolicy, decoder smithyxml.NodeDecoder) error { - var sv []*types.ScalingPolicy +func awsAwsquery_deserializeDocumentScalingPoliciesUnwrapped(v *[]types.ScalingPolicy, decoder smithyxml.NodeDecoder) error { + var sv []types.ScalingPolicy if *v == nil { - sv = make([]*types.ScalingPolicy, 0) + sv = make([]types.ScalingPolicy, 0) } else { sv = *v } switch { default: - var mv *types.ScalingPolicy + var mv types.ScalingPolicy t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentScalingPolicy(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentScalingPolicy(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11028,7 +11088,7 @@ func awsAwsquery_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, decod } if val != nil { xtv := string(val) - sv.AdjustmentType = &xtv + sv.AdjustmentType = ptr.String(xtv) } case strings.EqualFold("Alarms", t.Name.Local): @@ -11050,7 +11110,7 @@ func awsAwsquery_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, decod } if val != nil { xtv := string(val) - sv.AutoScalingGroupName = &xtv + sv.AutoScalingGroupName = ptr.String(xtv) } case strings.EqualFold("Cooldown", t.Name.Local): @@ -11083,7 +11143,7 @@ func awsAwsquery_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, decod if err != nil { return fmt.Errorf("expected ScalingPolicyEnabled to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("EstimatedInstanceWarmup", t.Name.Local): @@ -11116,7 +11176,7 @@ func awsAwsquery_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, decod } if val != nil { xtv := string(val) - sv.MetricAggregationType = &xtv + sv.MetricAggregationType = ptr.String(xtv) } case strings.EqualFold("MinAdjustmentMagnitude", t.Name.Local): @@ -11166,7 +11226,7 @@ func awsAwsquery_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, decod } if val != nil { xtv := string(val) - sv.PolicyARN = &xtv + sv.PolicyARN = ptr.String(xtv) } case strings.EqualFold("PolicyName", t.Name.Local): @@ -11182,7 +11242,7 @@ func awsAwsquery_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, decod } if val != nil { xtv := string(val) - sv.PolicyName = &xtv + sv.PolicyName = ptr.String(xtv) } case strings.EqualFold("PolicyType", t.Name.Local): @@ -11198,7 +11258,7 @@ func awsAwsquery_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, decod } if val != nil { xtv := string(val) - sv.PolicyType = &xtv + sv.PolicyType = ptr.String(xtv) } case strings.EqualFold("ScalingAdjustment", t.Name.Local): @@ -11275,7 +11335,7 @@ func awsAwsquery_deserializeDocumentScheduledUpdateGroupAction(v **types.Schedul } if val != nil { xtv := string(val) - sv.AutoScalingGroupName = &xtv + sv.AutoScalingGroupName = ptr.String(xtv) } case strings.EqualFold("DesiredCapacity", t.Name.Local): @@ -11309,7 +11369,7 @@ func awsAwsquery_deserializeDocumentScheduledUpdateGroupAction(v **types.Schedul if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case strings.EqualFold("MaxSize", t.Name.Local): @@ -11359,7 +11419,7 @@ func awsAwsquery_deserializeDocumentScheduledUpdateGroupAction(v **types.Schedul } if val != nil { xtv := string(val) - sv.Recurrence = &xtv + sv.Recurrence = ptr.String(xtv) } case strings.EqualFold("ScheduledActionARN", t.Name.Local): @@ -11375,7 +11435,7 @@ func awsAwsquery_deserializeDocumentScheduledUpdateGroupAction(v **types.Schedul } if val != nil { xtv := string(val) - sv.ScheduledActionARN = &xtv + sv.ScheduledActionARN = ptr.String(xtv) } case strings.EqualFold("ScheduledActionName", t.Name.Local): @@ -11391,7 +11451,7 @@ func awsAwsquery_deserializeDocumentScheduledUpdateGroupAction(v **types.Schedul } if val != nil { xtv := string(val) - sv.ScheduledActionName = &xtv + sv.ScheduledActionName = ptr.String(xtv) } case strings.EqualFold("StartTime", t.Name.Local): @@ -11408,7 +11468,7 @@ func awsAwsquery_deserializeDocumentScheduledUpdateGroupAction(v **types.Schedul if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("Time", t.Name.Local): @@ -11425,7 +11485,7 @@ func awsAwsquery_deserializeDocumentScheduledUpdateGroupAction(v **types.Schedul if err != nil { return err } - sv.Time = &t + sv.Time = ptr.Time(t) } default: @@ -11438,13 +11498,13 @@ func awsAwsquery_deserializeDocumentScheduledUpdateGroupAction(v **types.Schedul return nil } -func awsAwsquery_deserializeDocumentScheduledUpdateGroupActions(v *[]*types.ScheduledUpdateGroupAction, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentScheduledUpdateGroupActions(v *[]types.ScheduledUpdateGroupAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ScheduledUpdateGroupAction + var sv []types.ScheduledUpdateGroupAction if *v == nil { - sv = make([]*types.ScheduledUpdateGroupAction, 0) + sv = make([]types.ScheduledUpdateGroupAction, 0) } else { sv = *v } @@ -11460,11 +11520,13 @@ func awsAwsquery_deserializeDocumentScheduledUpdateGroupActions(v *[]*types.Sche } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ScheduledUpdateGroupAction + var col types.ScheduledUpdateGroupAction nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentScheduledUpdateGroupAction(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentScheduledUpdateGroupAction(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11477,35 +11539,37 @@ func awsAwsquery_deserializeDocumentScheduledUpdateGroupActions(v *[]*types.Sche return nil } -func awsAwsquery_deserializeDocumentScheduledUpdateGroupActionsUnwrapped(v *[]*types.ScheduledUpdateGroupAction, decoder smithyxml.NodeDecoder) error { - var sv []*types.ScheduledUpdateGroupAction +func awsAwsquery_deserializeDocumentScheduledUpdateGroupActionsUnwrapped(v *[]types.ScheduledUpdateGroupAction, decoder smithyxml.NodeDecoder) error { + var sv []types.ScheduledUpdateGroupAction if *v == nil { - sv = make([]*types.ScheduledUpdateGroupAction, 0) + sv = make([]types.ScheduledUpdateGroupAction, 0) } else { sv = *v } switch { default: - var mv *types.ScheduledUpdateGroupAction + var mv types.ScheduledUpdateGroupAction t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentScheduledUpdateGroupAction(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentScheduledUpdateGroupAction(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentSecurityGroups(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSecurityGroups(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -11523,20 +11587,17 @@ func awsAwsquery_deserializeDocumentSecurityGroups(v *[]*string, decoder smithyx decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -11549,17 +11610,17 @@ func awsAwsquery_deserializeDocumentSecurityGroups(v *[]*string, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentSecurityGroupsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentSecurityGroupsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -11567,14 +11628,11 @@ func awsAwsquery_deserializeDocumentSecurityGroupsUnwrapped(v *[]*string, decode return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -11616,7 +11674,7 @@ func awsAwsquery_deserializeDocumentServiceLinkedRoleFailure(v **types.ServiceLi } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11665,7 +11723,7 @@ func awsAwsquery_deserializeDocumentStepAdjustment(v **types.StepAdjustment, dec if err != nil { return err } - sv.MetricIntervalLowerBound = &f64 + sv.MetricIntervalLowerBound = ptr.Float64(f64) } case strings.EqualFold("MetricIntervalUpperBound", t.Name.Local): @@ -11682,7 +11740,7 @@ func awsAwsquery_deserializeDocumentStepAdjustment(v **types.StepAdjustment, dec if err != nil { return err } - sv.MetricIntervalUpperBound = &f64 + sv.MetricIntervalUpperBound = ptr.Float64(f64) } case strings.EqualFold("ScalingAdjustment", t.Name.Local): @@ -11712,13 +11770,13 @@ func awsAwsquery_deserializeDocumentStepAdjustment(v **types.StepAdjustment, dec return nil } -func awsAwsquery_deserializeDocumentStepAdjustments(v *[]*types.StepAdjustment, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStepAdjustments(v *[]types.StepAdjustment, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StepAdjustment + var sv []types.StepAdjustment if *v == nil { - sv = make([]*types.StepAdjustment, 0) + sv = make([]types.StepAdjustment, 0) } else { sv = *v } @@ -11734,11 +11792,13 @@ func awsAwsquery_deserializeDocumentStepAdjustments(v *[]*types.StepAdjustment, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.StepAdjustment + var col types.StepAdjustment nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStepAdjustment(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentStepAdjustment(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11751,23 +11811,25 @@ func awsAwsquery_deserializeDocumentStepAdjustments(v *[]*types.StepAdjustment, return nil } -func awsAwsquery_deserializeDocumentStepAdjustmentsUnwrapped(v *[]*types.StepAdjustment, decoder smithyxml.NodeDecoder) error { - var sv []*types.StepAdjustment +func awsAwsquery_deserializeDocumentStepAdjustmentsUnwrapped(v *[]types.StepAdjustment, decoder smithyxml.NodeDecoder) error { + var sv []types.StepAdjustment if *v == nil { - sv = make([]*types.StepAdjustment, 0) + sv = make([]types.StepAdjustment, 0) } else { sv = *v } switch { default: - var mv *types.StepAdjustment + var mv types.StepAdjustment t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStepAdjustment(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentStepAdjustment(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11808,7 +11870,7 @@ func awsAwsquery_deserializeDocumentSuspendedProcess(v **types.SuspendedProcess, } if val != nil { xtv := string(val) - sv.ProcessName = &xtv + sv.ProcessName = ptr.String(xtv) } case strings.EqualFold("SuspensionReason", t.Name.Local): @@ -11824,7 +11886,7 @@ func awsAwsquery_deserializeDocumentSuspendedProcess(v **types.SuspendedProcess, } if val != nil { xtv := string(val) - sv.SuspensionReason = &xtv + sv.SuspensionReason = ptr.String(xtv) } default: @@ -11837,13 +11899,13 @@ func awsAwsquery_deserializeDocumentSuspendedProcess(v **types.SuspendedProcess, return nil } -func awsAwsquery_deserializeDocumentSuspendedProcesses(v *[]*types.SuspendedProcess, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSuspendedProcesses(v *[]types.SuspendedProcess, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SuspendedProcess + var sv []types.SuspendedProcess if *v == nil { - sv = make([]*types.SuspendedProcess, 0) + sv = make([]types.SuspendedProcess, 0) } else { sv = *v } @@ -11859,11 +11921,13 @@ func awsAwsquery_deserializeDocumentSuspendedProcesses(v *[]*types.SuspendedProc } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.SuspendedProcess + var col types.SuspendedProcess nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSuspendedProcess(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSuspendedProcess(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11876,23 +11940,25 @@ func awsAwsquery_deserializeDocumentSuspendedProcesses(v *[]*types.SuspendedProc return nil } -func awsAwsquery_deserializeDocumentSuspendedProcessesUnwrapped(v *[]*types.SuspendedProcess, decoder smithyxml.NodeDecoder) error { - var sv []*types.SuspendedProcess +func awsAwsquery_deserializeDocumentSuspendedProcessesUnwrapped(v *[]types.SuspendedProcess, decoder smithyxml.NodeDecoder) error { + var sv []types.SuspendedProcess if *v == nil { - sv = make([]*types.SuspendedProcess, 0) + sv = make([]types.SuspendedProcess, 0) } else { sv = *v } switch { default: - var mv *types.SuspendedProcess + var mv types.SuspendedProcess t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSuspendedProcess(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSuspendedProcess(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11933,7 +11999,7 @@ func awsAwsquery_deserializeDocumentTagDescription(v **types.TagDescription, dec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("PropagateAtLaunch", t.Name.Local): @@ -11949,7 +12015,7 @@ func awsAwsquery_deserializeDocumentTagDescription(v **types.TagDescription, dec if err != nil { return fmt.Errorf("expected PropagateAtLaunch to be of type *bool, got %T instead", val) } - sv.PropagateAtLaunch = &xtv + sv.PropagateAtLaunch = ptr.Bool(xtv) } case strings.EqualFold("ResourceId", t.Name.Local): @@ -11965,7 +12031,7 @@ func awsAwsquery_deserializeDocumentTagDescription(v **types.TagDescription, dec } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("ResourceType", t.Name.Local): @@ -11981,7 +12047,7 @@ func awsAwsquery_deserializeDocumentTagDescription(v **types.TagDescription, dec } if val != nil { xtv := string(val) - sv.ResourceType = &xtv + sv.ResourceType = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -11997,7 +12063,7 @@ func awsAwsquery_deserializeDocumentTagDescription(v **types.TagDescription, dec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -12010,13 +12076,13 @@ func awsAwsquery_deserializeDocumentTagDescription(v **types.TagDescription, dec return nil } -func awsAwsquery_deserializeDocumentTagDescriptionList(v *[]*types.TagDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagDescriptionList(v *[]types.TagDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TagDescription + var sv []types.TagDescription if *v == nil { - sv = make([]*types.TagDescription, 0) + sv = make([]types.TagDescription, 0) } else { sv = *v } @@ -12032,11 +12098,13 @@ func awsAwsquery_deserializeDocumentTagDescriptionList(v *[]*types.TagDescriptio } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.TagDescription + var col types.TagDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTagDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTagDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12049,35 +12117,37 @@ func awsAwsquery_deserializeDocumentTagDescriptionList(v *[]*types.TagDescriptio return nil } -func awsAwsquery_deserializeDocumentTagDescriptionListUnwrapped(v *[]*types.TagDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.TagDescription +func awsAwsquery_deserializeDocumentTagDescriptionListUnwrapped(v *[]types.TagDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.TagDescription if *v == nil { - sv = make([]*types.TagDescription, 0) + sv = make([]types.TagDescription, 0) } else { sv = *v } switch { default: - var mv *types.TagDescription + var mv types.TagDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTagDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTagDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentTargetGroupARNs(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTargetGroupARNs(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -12095,20 +12165,17 @@ func awsAwsquery_deserializeDocumentTargetGroupARNs(v *[]*string, decoder smithy decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -12121,17 +12188,17 @@ func awsAwsquery_deserializeDocumentTargetGroupARNs(v *[]*string, decoder smithy return nil } -func awsAwsquery_deserializeDocumentTargetGroupARNsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentTargetGroupARNsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -12139,14 +12206,11 @@ func awsAwsquery_deserializeDocumentTargetGroupARNsUnwrapped(v *[]*string, decod return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -12194,7 +12258,7 @@ func awsAwsquery_deserializeDocumentTargetTrackingConfiguration(v **types.Target if err != nil { return fmt.Errorf("expected DisableScaleIn to be of type *bool, got %T instead", val) } - sv.DisableScaleIn = &xtv + sv.DisableScaleIn = ptr.Bool(xtv) } case strings.EqualFold("PredefinedMetricSpecification", t.Name.Local): @@ -12217,7 +12281,7 @@ func awsAwsquery_deserializeDocumentTargetTrackingConfiguration(v **types.Target if err != nil { return err } - sv.TargetValue = &f64 + sv.TargetValue = ptr.Float64(f64) } default: @@ -12230,13 +12294,13 @@ func awsAwsquery_deserializeDocumentTargetTrackingConfiguration(v **types.Target return nil } -func awsAwsquery_deserializeDocumentTerminationPolicies(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTerminationPolicies(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -12254,20 +12318,17 @@ func awsAwsquery_deserializeDocumentTerminationPolicies(v *[]*string, decoder sm decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -12280,17 +12341,17 @@ func awsAwsquery_deserializeDocumentTerminationPolicies(v *[]*string, decoder sm return nil } -func awsAwsquery_deserializeDocumentTerminationPoliciesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentTerminationPoliciesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -12298,14 +12359,11 @@ func awsAwsquery_deserializeDocumentTerminationPoliciesUnwrapped(v *[]*string, d return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -12519,7 +12577,7 @@ func awsAwsquery_deserializeOpDocumentCancelInstanceRefreshOutput(v **CancelInst } if val != nil { xtv := string(val) - sv.InstanceRefreshId = &xtv + sv.InstanceRefreshId = ptr.String(xtv) } default: @@ -13063,7 +13121,7 @@ func awsAwsquery_deserializeOpDocumentDescribeAutoScalingGroupsOutput(v **Descri } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -13117,7 +13175,7 @@ func awsAwsquery_deserializeOpDocumentDescribeAutoScalingInstancesOutput(v **Des } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -13209,7 +13267,7 @@ func awsAwsquery_deserializeOpDocumentDescribeInstanceRefreshesOutput(v **Descri } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -13263,7 +13321,7 @@ func awsAwsquery_deserializeOpDocumentDescribeLaunchConfigurationsOutput(v **Des } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -13393,7 +13451,7 @@ func awsAwsquery_deserializeOpDocumentDescribeLoadBalancersOutput(v **DescribeLo } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -13447,7 +13505,7 @@ func awsAwsquery_deserializeOpDocumentDescribeLoadBalancerTargetGroupsOutput(v * } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -13539,7 +13597,7 @@ func awsAwsquery_deserializeOpDocumentDescribeNotificationConfigurationsOutput(v } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("NotificationConfigurations", t.Name.Local): @@ -13593,7 +13651,7 @@ func awsAwsquery_deserializeOpDocumentDescribePoliciesOutput(v **DescribePolicie } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("ScalingPolicies", t.Name.Local): @@ -13653,7 +13711,7 @@ func awsAwsquery_deserializeOpDocumentDescribeScalingActivitiesOutput(v **Descri } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -13739,7 +13797,7 @@ func awsAwsquery_deserializeOpDocumentDescribeScheduledActionsOutput(v **Describ } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("ScheduledUpdateGroupActions", t.Name.Local): @@ -13793,7 +13851,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -14229,7 +14287,7 @@ func awsAwsquery_deserializeOpDocumentPutScalingPolicyOutput(v **PutScalingPolic } if val != nil { xtv := string(val) - sv.PolicyARN = &xtv + sv.PolicyARN = ptr.String(xtv) } default: @@ -14469,7 +14527,7 @@ func awsAwsquery_deserializeOpDocumentStartInstanceRefreshOutput(v **StartInstan } if val != nil { xtv := string(val) - sv.InstanceRefreshId = &xtv + sv.InstanceRefreshId = ptr.String(xtv) } default: diff --git a/service/autoscaling/go.mod b/service/autoscaling/go.mod index 206f0316ed5..2b9f34c8522 100644 --- a/service/autoscaling/go.mod +++ b/service/autoscaling/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/autoscaling go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/autoscaling/serializers.go b/service/autoscaling/serializers.go index 29900279294..282b163d6ac 100644 --- a/service/autoscaling/serializers.go +++ b/service/autoscaling/serializers.go @@ -3135,66 +3135,54 @@ func (m *awsAwsquery_serializeOpUpdateAutoScalingGroup) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentActivityIds(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentActivityIds(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentAutoScalingGroupNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAutoScalingGroupNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentAutoScalingNotificationTypes(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAutoScalingNotificationTypes(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentAvailabilityZones(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAvailabilityZones(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3228,36 +3216,30 @@ func awsAwsquery_serializeDocumentBlockDeviceMapping(v *types.BlockDeviceMapping return nil } -func awsAwsquery_serializeDocumentBlockDeviceMappings(v []*types.BlockDeviceMapping, value query.Value) error { +func awsAwsquery_serializeDocumentBlockDeviceMappings(v []types.BlockDeviceMapping, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentBlockDeviceMapping(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentBlockDeviceMapping(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentClassicLinkVPCSecurityGroups(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentClassicLinkVPCSecurityGroups(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3352,36 +3334,30 @@ func awsAwsquery_serializeDocumentFilter(v *types.Filter, value query.Value) err return nil } -func awsAwsquery_serializeDocumentFilters(v []*types.Filter, value query.Value) error { +func awsAwsquery_serializeDocumentFilters(v []types.Filter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentInstanceIds(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentInstanceIds(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3420,18 +3396,15 @@ func awsAwsquery_serializeDocumentInstanceMonitoring(v *types.InstanceMonitoring return nil } -func awsAwsquery_serializeDocumentInstanceRefreshIds(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentInstanceRefreshIds(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3473,18 +3446,15 @@ func awsAwsquery_serializeDocumentInstancesDistribution(v *types.InstancesDistri return nil } -func awsAwsquery_serializeDocumentLaunchConfigurationNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentLaunchConfigurationNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3549,18 +3519,15 @@ func awsAwsquery_serializeDocumentLaunchTemplateSpecification(v *types.LaunchTem return nil } -func awsAwsquery_serializeDocumentLifecycleHookNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentLifecycleHookNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3607,36 +3574,30 @@ func awsAwsquery_serializeDocumentLifecycleHookSpecification(v *types.LifecycleH return nil } -func awsAwsquery_serializeDocumentLifecycleHookSpecifications(v []*types.LifecycleHookSpecification, value query.Value) error { +func awsAwsquery_serializeDocumentLifecycleHookSpecifications(v []types.LifecycleHookSpecification, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentLifecycleHookSpecification(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentLifecycleHookSpecification(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentLoadBalancerNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentLoadBalancerNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3658,36 +3619,30 @@ func awsAwsquery_serializeDocumentMetricDimension(v *types.MetricDimension, valu return nil } -func awsAwsquery_serializeDocumentMetricDimensions(v []*types.MetricDimension, value query.Value) error { +func awsAwsquery_serializeDocumentMetricDimensions(v []types.MetricDimension, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentMetricDimension(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentMetricDimension(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentMetrics(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentMetrics(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3713,52 +3668,43 @@ func awsAwsquery_serializeDocumentMixedInstancesPolicy(v *types.MixedInstancesPo return nil } -func awsAwsquery_serializeDocumentOverrides(v []*types.LaunchTemplateOverrides, value query.Value) error { +func awsAwsquery_serializeDocumentOverrides(v []types.LaunchTemplateOverrides, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentLaunchTemplateOverrides(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentLaunchTemplateOverrides(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentPolicyNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentPolicyNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentPolicyTypes(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentPolicyTypes(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3780,18 +3726,15 @@ func awsAwsquery_serializeDocumentPredefinedMetricSpecification(v *types.Predefi return nil } -func awsAwsquery_serializeDocumentProcessNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentProcessNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3813,18 +3756,15 @@ func awsAwsquery_serializeDocumentRefreshPreferences(v *types.RefreshPreferences return nil } -func awsAwsquery_serializeDocumentScheduledActionNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentScheduledActionNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3871,36 +3811,30 @@ func awsAwsquery_serializeDocumentScheduledUpdateGroupActionRequest(v *types.Sch return nil } -func awsAwsquery_serializeDocumentScheduledUpdateGroupActionRequests(v []*types.ScheduledUpdateGroupActionRequest, value query.Value) error { +func awsAwsquery_serializeDocumentScheduledUpdateGroupActionRequests(v []types.ScheduledUpdateGroupActionRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentScheduledUpdateGroupActionRequest(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentScheduledUpdateGroupActionRequest(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentSecurityGroups(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSecurityGroups(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3927,18 +3861,15 @@ func awsAwsquery_serializeDocumentStepAdjustment(v *types.StepAdjustment, value return nil } -func awsAwsquery_serializeDocumentStepAdjustments(v []*types.StepAdjustment, value query.Value) error { +func awsAwsquery_serializeDocumentStepAdjustments(v []types.StepAdjustment, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentStepAdjustment(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentStepAdjustment(&v[i], av); err != nil { return err } } @@ -3977,36 +3908,30 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTags(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTags(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentTargetGroupARNs(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentTargetGroupARNs(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4042,34 +3967,28 @@ func awsAwsquery_serializeDocumentTargetTrackingConfiguration(v *types.TargetTra return nil } -func awsAwsquery_serializeDocumentTerminationPolicies(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentTerminationPolicies(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentValues(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentValues(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/autoscaling/types/types.go b/service/autoscaling/types/types.go index 7b22ecd67a1..030c62c738d 100644 --- a/service/autoscaling/types/types.go +++ b/service/autoscaling/types/types.go @@ -46,7 +46,7 @@ type Activity struct { EndTime *time.Time // A value between 0 and 100 that indicates the progress of the activity. - Progress *int32 + Progress int32 // A friendly, more verbose description of the activity status. StatusMessage *string @@ -81,7 +81,7 @@ type AutoScalingGroup struct { // One or more Availability Zones for the group. // // This member is required. - AvailabilityZones []*string + AvailabilityZones []string // The date and time the group was created. // @@ -120,14 +120,14 @@ type AutoScalingGroup struct { AutoScalingGroupARN *string // The metrics enabled for the group. - EnabledMetrics []*EnabledMetric + EnabledMetrics []EnabledMetric // The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before // checking the health status of an EC2 instance that has come into service. HealthCheckGracePeriod *int32 // The EC2 instances associated with the group. - Instances []*Instance + Instances []Instance // The name of the associated launch configuration. LaunchConfigurationName *string @@ -136,7 +136,7 @@ type AutoScalingGroup struct { LaunchTemplate *LaunchTemplateSpecification // One or more load balancers associated with the group. - LoadBalancerNames []*string + LoadBalancerNames []string // The maximum amount of time, in seconds, that an instance can be in service. // Valid Range: Minimum value of 0. @@ -161,16 +161,16 @@ type AutoScalingGroup struct { Status *string // The suspended processes associated with the group. - SuspendedProcesses []*SuspendedProcess + SuspendedProcesses []SuspendedProcess // The tags for the group. - Tags []*TagDescription + Tags []TagDescription // The Amazon Resource Names (ARN) of the target groups for your load balancer. - TargetGroupARNs []*string + TargetGroupARNs []string // The termination policies for the group. - TerminationPolicies []*string + TerminationPolicies []string // One or more subnet IDs, if applicable, separated by commas. VPCZoneIdentifier *string @@ -292,7 +292,7 @@ type CustomizedMetricSpecification struct { // The dimensions of the metric. Conditional: If you published your metric with // dimensions, you must specify the same dimensions in your scaling policy. - Dimensions []*MetricDimension + Dimensions []MetricDimension // The unit of the metric. Unit *string @@ -428,7 +428,7 @@ type Filter struct { Name *string // One or more filter values. Filter values are case-sensitive. - Values []*string + Values []string } // Describes an EC2 instance. @@ -675,7 +675,7 @@ type LaunchConfiguration struct { // more information, see Block Device Mapping // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html) // in the Amazon EC2 User Guide for Linux Instances. - BlockDeviceMappings []*BlockDeviceMapping + BlockDeviceMappings []BlockDeviceMapping // The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. For // more information, see ClassicLink @@ -693,7 +693,7 @@ type LaunchConfiguration struct { // to a VPC // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink) // in the Amazon EC2 Auto Scaling User Guide. - ClassicLinkVPCSecurityGroups []*string + ClassicLinkVPCSecurityGroups []string // Specifies whether the launch configuration is optimized for EBS I/O (true) or // not (false). For more information, see Amazon EBS-Optimized Instances @@ -747,7 +747,7 @@ type LaunchConfiguration struct { // Scaling group. For more information, see Security Groups for Your VPC // (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) // in the Amazon Virtual Private Cloud User Guide. - SecurityGroups []*string + SecurityGroups []string // The maximum hourly price to be paid for any Spot Instance launched to fulfill // the request. Spot Instances are launched when the price you specify exceeds the @@ -782,7 +782,7 @@ type LaunchTemplate struct { // specify between 1 and 20 instance types. If not provided, Amazon EC2 Auto // Scaling will use the instance type specified in the launch template to launch // instances. - Overrides []*LaunchTemplateOverrides + Overrides []LaunchTemplateOverrides } // Describes an override for a launch template. Currently, the only supported @@ -1248,7 +1248,7 @@ type ScalingPolicy struct { AdjustmentType *string // The CloudWatch alarms related to the policy. - Alarms []*Alarm + Alarms []Alarm // The name of the Auto Scaling group. AutoScalingGroupName *string @@ -1304,7 +1304,7 @@ type ScalingPolicy struct { // A set of adjustments that enable you to scale based on the size of the alarm // breach. - StepAdjustments []*StepAdjustment + StepAdjustments []StepAdjustment // A target tracking scaling policy. TargetTrackingConfiguration *TargetTrackingConfiguration diff --git a/service/autoscaling/validators.go b/service/autoscaling/validators.go index 2d84bf903fc..985f2c4bd33 100644 --- a/service/autoscaling/validators.go +++ b/service/autoscaling/validators.go @@ -1033,13 +1033,13 @@ func validateBlockDeviceMapping(v *types.BlockDeviceMapping) error { } } -func validateBlockDeviceMappings(v []*types.BlockDeviceMapping) error { +func validateBlockDeviceMappings(v []types.BlockDeviceMapping) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BlockDeviceMappings"} for i := range v { - if err := validateBlockDeviceMapping(v[i]); err != nil { + if err := validateBlockDeviceMapping(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1094,13 +1094,13 @@ func validateLifecycleHookSpecification(v *types.LifecycleHookSpecification) err } } -func validateLifecycleHookSpecifications(v []*types.LifecycleHookSpecification) error { +func validateLifecycleHookSpecifications(v []types.LifecycleHookSpecification) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LifecycleHookSpecifications"} for i := range v { - if err := validateLifecycleHookSpecification(v[i]); err != nil { + if err := validateLifecycleHookSpecification(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1129,13 +1129,13 @@ func validateMetricDimension(v *types.MetricDimension) error { } } -func validateMetricDimensions(v []*types.MetricDimension) error { +func validateMetricDimensions(v []types.MetricDimension) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MetricDimensions"} for i := range v { - if err := validateMetricDimension(v[i]); err != nil { + if err := validateMetricDimension(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1176,13 +1176,13 @@ func validateScheduledUpdateGroupActionRequest(v *types.ScheduledUpdateGroupActi } } -func validateScheduledUpdateGroupActionRequests(v []*types.ScheduledUpdateGroupActionRequest) error { +func validateScheduledUpdateGroupActionRequests(v []types.ScheduledUpdateGroupActionRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ScheduledUpdateGroupActionRequests"} for i := range v { - if err := validateScheduledUpdateGroupActionRequest(v[i]); err != nil { + if err := validateScheduledUpdateGroupActionRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1208,13 +1208,13 @@ func validateStepAdjustment(v *types.StepAdjustment) error { } } -func validateStepAdjustments(v []*types.StepAdjustment) error { +func validateStepAdjustments(v []types.StepAdjustment) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "StepAdjustments"} for i := range v { - if err := validateStepAdjustment(v[i]); err != nil { + if err := validateStepAdjustment(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1240,13 +1240,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/autoscalingplans/api_op_CreateScalingPlan.go b/service/autoscalingplans/api_op_CreateScalingPlan.go index fb7689c2d1c..5d825ad75d5 100644 --- a/service/autoscalingplans/api_op_CreateScalingPlan.go +++ b/service/autoscalingplans/api_op_CreateScalingPlan.go @@ -38,7 +38,7 @@ type CreateScalingPlanInput struct { // The scaling instructions. // // This member is required. - ScalingInstructions []*types.ScalingInstruction + ScalingInstructions []types.ScalingInstruction // The name of the scaling plan. Names cannot contain vertical bars, colons, or // forward slashes. diff --git a/service/autoscalingplans/api_op_DescribeScalingPlanResources.go b/service/autoscalingplans/api_op_DescribeScalingPlanResources.go index 2863b106417..9900dc8e440 100644 --- a/service/autoscalingplans/api_op_DescribeScalingPlanResources.go +++ b/service/autoscalingplans/api_op_DescribeScalingPlanResources.go @@ -54,7 +54,7 @@ type DescribeScalingPlanResourcesOutput struct { NextToken *string // Information about the scalable resources. - ScalingPlanResources []*types.ScalingPlanResource + ScalingPlanResources []types.ScalingPlanResource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscalingplans/api_op_DescribeScalingPlans.go b/service/autoscalingplans/api_op_DescribeScalingPlans.go index 53095894db0..0b2f3084bc7 100644 --- a/service/autoscalingplans/api_op_DescribeScalingPlans.go +++ b/service/autoscalingplans/api_op_DescribeScalingPlans.go @@ -31,7 +31,7 @@ type DescribeScalingPlansInput struct { // The sources for the applications (up to 10). If you specify scaling plan names, // you cannot specify application sources. - ApplicationSources []*types.ApplicationSource + ApplicationSources []types.ApplicationSource // The maximum number of scalable resources to return. This value can be between 1 // and 50. The default value is 50. @@ -42,7 +42,7 @@ type DescribeScalingPlansInput struct { // The names of the scaling plans (up to 10). If you specify application sources, // you cannot specify scaling plan names. - ScalingPlanNames []*string + ScalingPlanNames []string // The version number of the scaling plan. If you specify a scaling plan version, // you must also specify a scaling plan name. @@ -56,7 +56,7 @@ type DescribeScalingPlansOutput struct { NextToken *string // Information about the scaling plans. - ScalingPlans []*types.ScalingPlan + ScalingPlans []types.ScalingPlan // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscalingplans/api_op_GetScalingPlanResourceForecastData.go b/service/autoscalingplans/api_op_GetScalingPlanResourceForecastData.go index dffe4172869..981e58fb04d 100644 --- a/service/autoscalingplans/api_op_GetScalingPlanResourceForecastData.go +++ b/service/autoscalingplans/api_op_GetScalingPlanResourceForecastData.go @@ -123,7 +123,7 @@ type GetScalingPlanResourceForecastDataOutput struct { // The data points to return. // // This member is required. - Datapoints []*types.Datapoint + Datapoints []types.Datapoint // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/autoscalingplans/api_op_UpdateScalingPlan.go b/service/autoscalingplans/api_op_UpdateScalingPlan.go index efc4376c465..4c752c593d1 100644 --- a/service/autoscalingplans/api_op_UpdateScalingPlan.go +++ b/service/autoscalingplans/api_op_UpdateScalingPlan.go @@ -44,7 +44,7 @@ type UpdateScalingPlanInput struct { ApplicationSource *types.ApplicationSource // The scaling instructions. - ScalingInstructions []*types.ScalingInstruction + ScalingInstructions []types.ScalingInstruction } type UpdateScalingPlanOutput struct { diff --git a/service/autoscalingplans/deserializers.go b/service/autoscalingplans/deserializers.go index 7ebcf4024a1..922cb7b4e17 100644 --- a/service/autoscalingplans/deserializers.go +++ b/service/autoscalingplans/deserializers.go @@ -971,7 +971,7 @@ func awsAwsjson11_deserializeDocumentApplicationSource(v **types.ApplicationSour if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.CloudFormationStackARN = &jtv + sv.CloudFormationStackARN = ptr.String(jtv) } case "TagFilters": @@ -1016,7 +1016,7 @@ func awsAwsjson11_deserializeDocumentConcurrentUpdateException(v **types.Concurr if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1061,7 +1061,7 @@ func awsAwsjson11_deserializeDocumentCustomizedLoadMetricSpecification(v **types if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Namespace": @@ -1070,7 +1070,7 @@ func awsAwsjson11_deserializeDocumentCustomizedLoadMetricSpecification(v **types if !ok { return fmt.Errorf("expected MetricNamespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "Statistic": @@ -1088,7 +1088,7 @@ func awsAwsjson11_deserializeDocumentCustomizedLoadMetricSpecification(v **types if !ok { return fmt.Errorf("expected MetricUnit to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } default: @@ -1133,7 +1133,7 @@ func awsAwsjson11_deserializeDocumentCustomizedScalingMetricSpecification(v **ty if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Namespace": @@ -1142,7 +1142,7 @@ func awsAwsjson11_deserializeDocumentCustomizedScalingMetricSpecification(v **ty if !ok { return fmt.Errorf("expected MetricNamespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "Statistic": @@ -1160,7 +1160,7 @@ func awsAwsjson11_deserializeDocumentCustomizedScalingMetricSpecification(v **ty if !ok { return fmt.Errorf("expected MetricUnit to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } default: @@ -1217,7 +1217,7 @@ func awsAwsjson11_deserializeDocumentDatapoint(v **types.Datapoint, value interf if err != nil { return err } - sv.Value = &f64 + sv.Value = ptr.Float64(f64) } default: @@ -1229,7 +1229,7 @@ func awsAwsjson11_deserializeDocumentDatapoint(v **types.Datapoint, value interf return nil } -func awsAwsjson11_deserializeDocumentDatapoints(v *[]*types.Datapoint, value interface{}) error { +func awsAwsjson11_deserializeDocumentDatapoints(v *[]types.Datapoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1242,18 +1242,20 @@ func awsAwsjson11_deserializeDocumentDatapoints(v *[]*types.Datapoint, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Datapoint + var cv []types.Datapoint if *v == nil { - cv = []*types.Datapoint{} + cv = []types.Datapoint{} } else { cv = *v } for _, value := range shape { - var col *types.Datapoint - if err := awsAwsjson11_deserializeDocumentDatapoint(&col, value); err != nil { + var col types.Datapoint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDatapoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1289,7 +1291,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1329,7 +1331,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1369,7 +1371,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1409,7 +1411,7 @@ func awsAwsjson11_deserializeDocumentMetricDimension(v **types.MetricDimension, if !ok { return fmt.Errorf("expected MetricDimensionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Value": @@ -1418,7 +1420,7 @@ func awsAwsjson11_deserializeDocumentMetricDimension(v **types.MetricDimension, if !ok { return fmt.Errorf("expected MetricDimensionValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -1430,7 +1432,7 @@ func awsAwsjson11_deserializeDocumentMetricDimension(v **types.MetricDimension, return nil } -func awsAwsjson11_deserializeDocumentMetricDimensions(v *[]*types.MetricDimension, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricDimensions(v *[]types.MetricDimension, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1443,18 +1445,20 @@ func awsAwsjson11_deserializeDocumentMetricDimensions(v *[]*types.MetricDimensio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MetricDimension + var cv []types.MetricDimension if *v == nil { - cv = []*types.MetricDimension{} + cv = []types.MetricDimension{} } else { cv = *v } for _, value := range shape { - var col *types.MetricDimension - if err := awsAwsjson11_deserializeDocumentMetricDimension(&col, value); err != nil { + var col types.MetricDimension + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMetricDimension(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1490,7 +1494,7 @@ func awsAwsjson11_deserializeDocumentObjectNotFoundException(v **types.ObjectNot if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1539,7 +1543,7 @@ func awsAwsjson11_deserializeDocumentPredefinedLoadMetricSpecification(v **types if !ok { return fmt.Errorf("expected ResourceLabel to be of type string, got %T instead", value) } - sv.ResourceLabel = &jtv + sv.ResourceLabel = ptr.String(jtv) } default: @@ -1588,7 +1592,7 @@ func awsAwsjson11_deserializeDocumentPredefinedScalingMetricSpecification(v **ty if !ok { return fmt.Errorf("expected ResourceLabel to be of type string, got %T instead", value) } - sv.ResourceLabel = &jtv + sv.ResourceLabel = ptr.String(jtv) } default: @@ -1633,7 +1637,7 @@ func awsAwsjson11_deserializeDocumentScalingInstruction(v **types.ScalingInstruc if !ok { return fmt.Errorf("expected DisableDynamicScaling to be of type *bool, got %T instead", value) } - sv.DisableDynamicScaling = &jtv + sv.DisableDynamicScaling = ptr.Bool(jtv) } case "MaxCapacity": @@ -1704,7 +1708,7 @@ func awsAwsjson11_deserializeDocumentScalingInstruction(v **types.ScalingInstruc if !ok { return fmt.Errorf("expected ResourceIdMaxLen1600 to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ScalableDimension": @@ -1761,7 +1765,7 @@ func awsAwsjson11_deserializeDocumentScalingInstruction(v **types.ScalingInstruc return nil } -func awsAwsjson11_deserializeDocumentScalingInstructions(v *[]*types.ScalingInstruction, value interface{}) error { +func awsAwsjson11_deserializeDocumentScalingInstructions(v *[]types.ScalingInstruction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1774,18 +1778,20 @@ func awsAwsjson11_deserializeDocumentScalingInstructions(v *[]*types.ScalingInst return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ScalingInstruction + var cv []types.ScalingInstruction if *v == nil { - cv = []*types.ScalingInstruction{} + cv = []types.ScalingInstruction{} } else { cv = *v } for _, value := range shape { - var col *types.ScalingInstruction - if err := awsAwsjson11_deserializeDocumentScalingInstruction(&col, value); err != nil { + var col types.ScalingInstruction + destAddr := &col + if err := awsAwsjson11_deserializeDocumentScalingInstruction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1844,7 +1850,7 @@ func awsAwsjson11_deserializeDocumentScalingPlan(v **types.ScalingPlan, value in if !ok { return fmt.Errorf("expected ScalingPlanName to be of type string, got %T instead", value) } - sv.ScalingPlanName = &jtv + sv.ScalingPlanName = ptr.String(jtv) } case "ScalingPlanVersion": @@ -1857,7 +1863,7 @@ func awsAwsjson11_deserializeDocumentScalingPlan(v **types.ScalingPlan, value in if err != nil { return err } - sv.ScalingPlanVersion = &i64 + sv.ScalingPlanVersion = ptr.Int64(i64) } case "StatusCode": @@ -1875,7 +1881,7 @@ func awsAwsjson11_deserializeDocumentScalingPlan(v **types.ScalingPlan, value in if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "StatusStartTime": @@ -1928,7 +1934,7 @@ func awsAwsjson11_deserializeDocumentScalingPlanResource(v **types.ScalingPlanRe if !ok { return fmt.Errorf("expected ResourceIdMaxLen1600 to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ScalableDimension": @@ -1946,7 +1952,7 @@ func awsAwsjson11_deserializeDocumentScalingPlanResource(v **types.ScalingPlanRe if !ok { return fmt.Errorf("expected ScalingPlanName to be of type string, got %T instead", value) } - sv.ScalingPlanName = &jtv + sv.ScalingPlanName = ptr.String(jtv) } case "ScalingPlanVersion": @@ -1959,7 +1965,7 @@ func awsAwsjson11_deserializeDocumentScalingPlanResource(v **types.ScalingPlanRe if err != nil { return err } - sv.ScalingPlanVersion = &i64 + sv.ScalingPlanVersion = ptr.Int64(i64) } case "ScalingPolicies": @@ -1982,7 +1988,7 @@ func awsAwsjson11_deserializeDocumentScalingPlanResource(v **types.ScalingPlanRe if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.ScalingStatusMessage = &jtv + sv.ScalingStatusMessage = ptr.String(jtv) } case "ServiceNamespace": @@ -2003,7 +2009,7 @@ func awsAwsjson11_deserializeDocumentScalingPlanResource(v **types.ScalingPlanRe return nil } -func awsAwsjson11_deserializeDocumentScalingPlanResources(v *[]*types.ScalingPlanResource, value interface{}) error { +func awsAwsjson11_deserializeDocumentScalingPlanResources(v *[]types.ScalingPlanResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2016,18 +2022,20 @@ func awsAwsjson11_deserializeDocumentScalingPlanResources(v *[]*types.ScalingPla return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ScalingPlanResource + var cv []types.ScalingPlanResource if *v == nil { - cv = []*types.ScalingPlanResource{} + cv = []types.ScalingPlanResource{} } else { cv = *v } for _, value := range shape { - var col *types.ScalingPlanResource - if err := awsAwsjson11_deserializeDocumentScalingPlanResource(&col, value); err != nil { + var col types.ScalingPlanResource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentScalingPlanResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2035,7 +2043,7 @@ func awsAwsjson11_deserializeDocumentScalingPlanResources(v *[]*types.ScalingPla return nil } -func awsAwsjson11_deserializeDocumentScalingPlans(v *[]*types.ScalingPlan, value interface{}) error { +func awsAwsjson11_deserializeDocumentScalingPlans(v *[]types.ScalingPlan, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2048,18 +2056,20 @@ func awsAwsjson11_deserializeDocumentScalingPlans(v *[]*types.ScalingPlan, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ScalingPlan + var cv []types.ScalingPlan if *v == nil { - cv = []*types.ScalingPlan{} + cv = []types.ScalingPlan{} } else { cv = *v } for _, value := range shape { - var col *types.ScalingPlan - if err := awsAwsjson11_deserializeDocumentScalingPlan(&col, value); err != nil { + var col types.ScalingPlan + destAddr := &col + if err := awsAwsjson11_deserializeDocumentScalingPlan(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2067,7 +2077,7 @@ func awsAwsjson11_deserializeDocumentScalingPlans(v *[]*types.ScalingPlan, value return nil } -func awsAwsjson11_deserializeDocumentScalingPolicies(v *[]*types.ScalingPolicy, value interface{}) error { +func awsAwsjson11_deserializeDocumentScalingPolicies(v *[]types.ScalingPolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2080,18 +2090,20 @@ func awsAwsjson11_deserializeDocumentScalingPolicies(v *[]*types.ScalingPolicy, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ScalingPolicy + var cv []types.ScalingPolicy if *v == nil { - cv = []*types.ScalingPolicy{} + cv = []types.ScalingPolicy{} } else { cv = *v } for _, value := range shape { - var col *types.ScalingPolicy - if err := awsAwsjson11_deserializeDocumentScalingPolicy(&col, value); err != nil { + var col types.ScalingPolicy + destAddr := &col + if err := awsAwsjson11_deserializeDocumentScalingPolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2127,7 +2139,7 @@ func awsAwsjson11_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, valu if !ok { return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } case "PolicyType": @@ -2181,7 +2193,7 @@ func awsAwsjson11_deserializeDocumentTagFilter(v **types.TagFilter, value interf if !ok { return fmt.Errorf("expected XmlStringMaxLen128 to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Values": @@ -2198,7 +2210,7 @@ func awsAwsjson11_deserializeDocumentTagFilter(v **types.TagFilter, value interf return nil } -func awsAwsjson11_deserializeDocumentTagFilters(v *[]*types.TagFilter, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagFilters(v *[]types.TagFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2211,18 +2223,20 @@ func awsAwsjson11_deserializeDocumentTagFilters(v *[]*types.TagFilter, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TagFilter + var cv []types.TagFilter if *v == nil { - cv = []*types.TagFilter{} + cv = []types.TagFilter{} } else { cv = *v } for _, value := range shape { - var col *types.TagFilter - if err := awsAwsjson11_deserializeDocumentTagFilter(&col, value); err != nil { + var col types.TagFilter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTagFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2230,7 +2244,7 @@ func awsAwsjson11_deserializeDocumentTagFilters(v *[]*types.TagFilter, value int return nil } -func awsAwsjson11_deserializeDocumentTagValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2243,21 +2257,21 @@ func awsAwsjson11_deserializeDocumentTagValues(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2299,7 +2313,7 @@ func awsAwsjson11_deserializeDocumentTargetTrackingConfiguration(v **types.Targe if !ok { return fmt.Errorf("expected DisableScaleIn to be of type *bool, got %T instead", value) } - sv.DisableScaleIn = &jtv + sv.DisableScaleIn = ptr.Bool(jtv) } case "EstimatedInstanceWarmup": @@ -2356,7 +2370,7 @@ func awsAwsjson11_deserializeDocumentTargetTrackingConfiguration(v **types.Targe if err != nil { return err } - sv.TargetValue = &f64 + sv.TargetValue = ptr.Float64(f64) } default: @@ -2368,7 +2382,7 @@ func awsAwsjson11_deserializeDocumentTargetTrackingConfiguration(v **types.Targe return nil } -func awsAwsjson11_deserializeDocumentTargetTrackingConfigurations(v *[]*types.TargetTrackingConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetTrackingConfigurations(v *[]types.TargetTrackingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2381,18 +2395,20 @@ func awsAwsjson11_deserializeDocumentTargetTrackingConfigurations(v *[]*types.Ta return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TargetTrackingConfiguration + var cv []types.TargetTrackingConfiguration if *v == nil { - cv = []*types.TargetTrackingConfiguration{} + cv = []types.TargetTrackingConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.TargetTrackingConfiguration - if err := awsAwsjson11_deserializeDocumentTargetTrackingConfiguration(&col, value); err != nil { + var col types.TargetTrackingConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTargetTrackingConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2428,7 +2444,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2472,7 +2488,7 @@ func awsAwsjson11_deserializeOpDocumentCreateScalingPlanOutput(v **CreateScaling if err != nil { return err } - sv.ScalingPlanVersion = &i64 + sv.ScalingPlanVersion = ptr.Int64(i64) } default: @@ -2543,7 +2559,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeScalingPlanResourcesOutput(v **De if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ScalingPlanResources": @@ -2588,7 +2604,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeScalingPlansOutput(v **DescribeSc if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ScalingPlans": diff --git a/service/autoscalingplans/go.mod b/service/autoscalingplans/go.mod index ede62291eab..8edb99d736a 100644 --- a/service/autoscalingplans/go.mod +++ b/service/autoscalingplans/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/autoscalingplans go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/autoscalingplans/serializers.go b/service/autoscalingplans/serializers.go index cc5fa0fd8b8..e784d3fef52 100644 --- a/service/autoscalingplans/serializers.go +++ b/service/autoscalingplans/serializers.go @@ -309,17 +309,13 @@ func awsAwsjson11_serializeDocumentApplicationSource(v *types.ApplicationSource, return nil } -func awsAwsjson11_serializeDocumentApplicationSources(v []*types.ApplicationSource, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentApplicationSources(v []types.ApplicationSource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentApplicationSource(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentApplicationSource(&v[i], av); err != nil { return err } } @@ -411,17 +407,13 @@ func awsAwsjson11_serializeDocumentMetricDimension(v *types.MetricDimension, val return nil } -func awsAwsjson11_serializeDocumentMetricDimensions(v []*types.MetricDimension, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMetricDimensions(v []types.MetricDimension, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMetricDimension(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMetricDimension(&v[i], av); err != nil { return err } } @@ -545,34 +537,26 @@ func awsAwsjson11_serializeDocumentScalingInstruction(v *types.ScalingInstructio return nil } -func awsAwsjson11_serializeDocumentScalingInstructions(v []*types.ScalingInstruction, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentScalingInstructions(v []types.ScalingInstruction, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentScalingInstruction(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentScalingInstruction(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentScalingPlanNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentScalingPlanNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -596,34 +580,26 @@ func awsAwsjson11_serializeDocumentTagFilter(v *types.TagFilter, value smithyjso return nil } -func awsAwsjson11_serializeDocumentTagFilters(v []*types.TagFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagFilters(v []types.TagFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTagFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTagFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTagValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -674,17 +650,13 @@ func awsAwsjson11_serializeDocumentTargetTrackingConfiguration(v *types.TargetTr return nil } -func awsAwsjson11_serializeDocumentTargetTrackingConfigurations(v []*types.TargetTrackingConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetTrackingConfigurations(v []types.TargetTrackingConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTargetTrackingConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTargetTrackingConfiguration(&v[i], av); err != nil { return err } } diff --git a/service/autoscalingplans/types/types.go b/service/autoscalingplans/types/types.go index adb459770f2..051118fc0be 100644 --- a/service/autoscalingplans/types/types.go +++ b/service/autoscalingplans/types/types.go @@ -13,7 +13,7 @@ type ApplicationSource struct { CloudFormationStackARN *string // A set of tags (up to 50). - TagFilters []*TagFilter + TagFilters []TagFilter } // Represents a CloudWatch metric of your choosing that can be used for predictive @@ -53,7 +53,7 @@ type CustomizedLoadMetricSpecification struct { // The dimensions of the metric. Conditional: If you published your metric with // dimensions, you must specify the same dimensions in your customized load metric // specification. - Dimensions []*MetricDimension + Dimensions []MetricDimension // The unit of the metric. Unit *string @@ -98,7 +98,7 @@ type CustomizedScalingMetricSpecification struct { // The dimensions of the metric. Conditional: If you published your metric with // dimensions, you must specify the same dimensions in your customized scaling // metric specification. - Dimensions []*MetricDimension + Dimensions []MetricDimension // The unit of the metric. Unit *string @@ -282,7 +282,7 @@ type ScalingInstruction struct { // configurations. // // This member is required. - TargetTrackingConfigurations []*TargetTrackingConfiguration + TargetTrackingConfigurations []TargetTrackingConfiguration // The customized load metric to use for predictive scaling. This parameter or a // PredefinedLoadMetricSpecification is required when configuring predictive @@ -371,7 +371,7 @@ type ScalingPlan struct { // The scaling instructions. // // This member is required. - ScalingInstructions []*ScalingInstruction + ScalingInstructions []ScalingInstruction // The name of the scaling plan. // @@ -520,7 +520,7 @@ type ScalingPlanResource struct { ServiceNamespace ServiceNamespace // The scaling policies. - ScalingPolicies []*ScalingPolicy + ScalingPolicies []ScalingPolicy // A simple message about the current scaling status of the resource. ScalingStatusMessage *string @@ -551,7 +551,7 @@ type TagFilter struct { Key *string // The tag values (0 to 20). - Values []*string + Values []string } // Describes a target tracking configuration to use with AWS Auto Scaling. Used diff --git a/service/autoscalingplans/validators.go b/service/autoscalingplans/validators.go index 185df2367ef..5f2d8e2151c 100644 --- a/service/autoscalingplans/validators.go +++ b/service/autoscalingplans/validators.go @@ -200,13 +200,13 @@ func validateMetricDimension(v *types.MetricDimension) error { } } -func validateMetricDimensions(v []*types.MetricDimension) error { +func validateMetricDimensions(v []types.MetricDimension) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MetricDimensions"} for i := range v { - if err := validateMetricDimension(v[i]); err != nil { + if err := validateMetricDimension(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -291,13 +291,13 @@ func validateScalingInstruction(v *types.ScalingInstruction) error { } } -func validateScalingInstructions(v []*types.ScalingInstruction) error { +func validateScalingInstructions(v []types.ScalingInstruction) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ScalingInstructions"} for i := range v { - if err := validateScalingInstruction(v[i]); err != nil { + if err := validateScalingInstruction(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -333,13 +333,13 @@ func validateTargetTrackingConfiguration(v *types.TargetTrackingConfiguration) e } } -func validateTargetTrackingConfigurations(v []*types.TargetTrackingConfiguration) error { +func validateTargetTrackingConfigurations(v []types.TargetTrackingConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TargetTrackingConfigurations"} for i := range v { - if err := validateTargetTrackingConfiguration(v[i]); err != nil { + if err := validateTargetTrackingConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/backup/api_op_CreateBackupPlan.go b/service/backup/api_op_CreateBackupPlan.go index f86ab2e6f1a..7645af01fe8 100644 --- a/service/backup/api_op_CreateBackupPlan.go +++ b/service/backup/api_op_CreateBackupPlan.go @@ -42,7 +42,7 @@ type CreateBackupPlanInput struct { // To help organize your resources, you can assign your own metadata to the // resources that you create. Each tag is a key-value pair. The specified tags are // assigned to all backups created with this plan. - BackupPlanTags map[string]*string + BackupPlanTags map[string]string // Identifies the request and allows failed requests to be retried without the risk // of running the operation twice. If the request includes a CreatorRequestId that @@ -55,7 +55,7 @@ type CreateBackupPlanOutput struct { // A list of BackupOptions settings for a resource type. This option is only // available for Windows VSS backup jobs. - AdvancedBackupSettings []*types.AdvancedBackupSetting + AdvancedBackupSettings []types.AdvancedBackupSetting // An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for // example, diff --git a/service/backup/api_op_CreateBackupVault.go b/service/backup/api_op_CreateBackupVault.go index 4b9fa6bf20d..1f4084c1ebc 100644 --- a/service/backup/api_op_CreateBackupVault.go +++ b/service/backup/api_op_CreateBackupVault.go @@ -42,7 +42,7 @@ type CreateBackupVaultInput struct { // Metadata that you can assign to help organize the resources that you create. // Each tag is a key-value pair. - BackupVaultTags map[string]*string + BackupVaultTags map[string]string // A unique string that identifies the request and allows failed requests to be // retried without the risk of running the operation twice. diff --git a/service/backup/api_op_DescribeBackupJob.go b/service/backup/api_op_DescribeBackupJob.go index 3ad24f4c01c..ab36994f96b 100644 --- a/service/backup/api_op_DescribeBackupJob.go +++ b/service/backup/api_op_DescribeBackupJob.go @@ -45,7 +45,7 @@ type DescribeBackupJobOutput struct { BackupJobId *string // Represents the options specified as part of backup plan or on-demand backup job. - BackupOptions map[string]*string + BackupOptions map[string]string // The size, in bytes, of a backup. BackupSizeInBytes *int64 diff --git a/service/backup/api_op_DescribeBackupVault.go b/service/backup/api_op_DescribeBackupVault.go index 52ce5e5cb52..3d7f35d925e 100644 --- a/service/backup/api_op_DescribeBackupVault.go +++ b/service/backup/api_op_DescribeBackupVault.go @@ -66,7 +66,7 @@ type DescribeBackupVaultOutput struct { EncryptionKeyArn *string // The number of recovery points that are stored in a backup vault. - NumberOfRecoveryPoints *int64 + NumberOfRecoveryPoints int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/backup/api_op_DescribeRecoveryPoint.go b/service/backup/api_op_DescribeRecoveryPoint.go index f8781350546..a3bd4861b4d 100644 --- a/service/backup/api_op_DescribeRecoveryPoint.go +++ b/service/backup/api_op_DescribeRecoveryPoint.go @@ -93,7 +93,7 @@ type DescribeRecoveryPointOutput struct { // A Boolean value that is returned as TRUE if the specified recovery point is // encrypted, or FALSE if the recovery point is not encrypted. - IsEncrypted *bool + IsEncrypted bool // The date and time that a recovery point was last restored, in Unix format and // Coordinated Universal Time (UTC). The value of LastRestoreTime is accurate to diff --git a/service/backup/api_op_DescribeRegionSettings.go b/service/backup/api_op_DescribeRegionSettings.go index 4f612deb98f..e040e546d60 100644 --- a/service/backup/api_op_DescribeRegionSettings.go +++ b/service/backup/api_op_DescribeRegionSettings.go @@ -36,7 +36,7 @@ type DescribeRegionSettingsInput struct { type DescribeRegionSettingsOutput struct { // Returns a list of all services along with the opt-in preferences in the Region. - ResourceTypeOptInPreference map[string]*bool + ResourceTypeOptInPreference map[string]bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/backup/api_op_GetBackupPlan.go b/service/backup/api_op_GetBackupPlan.go index ad38a4b3a28..3831d6b8c29 100644 --- a/service/backup/api_op_GetBackupPlan.go +++ b/service/backup/api_op_GetBackupPlan.go @@ -45,7 +45,7 @@ type GetBackupPlanOutput struct { // Contains a list of BackupOptions for each resource type. The list is populated // only if the advanced option is set for the backup plan. - AdvancedBackupSettings []*types.AdvancedBackupSetting + AdvancedBackupSettings []types.AdvancedBackupSetting // Specifies the body of a backup plan. Includes a BackupPlanName and one or more // sets of Rules. diff --git a/service/backup/api_op_GetRecoveryPointRestoreMetadata.go b/service/backup/api_op_GetRecoveryPointRestoreMetadata.go index 5a818f7f947..0529b7904ef 100644 --- a/service/backup/api_op_GetRecoveryPointRestoreMetadata.go +++ b/service/backup/api_op_GetRecoveryPointRestoreMetadata.go @@ -57,7 +57,7 @@ type GetRecoveryPointRestoreMetadataOutput struct { // The set of metadata key-value pairs that describe the original configuration of // the backed-up resource. These values vary depending on the service that is being // restored. - RestoreMetadata map[string]*string + RestoreMetadata map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/backup/api_op_GetSupportedResourceTypes.go b/service/backup/api_op_GetSupportedResourceTypes.go index 51a43655f10..1809625d21b 100644 --- a/service/backup/api_op_GetSupportedResourceTypes.go +++ b/service/backup/api_op_GetSupportedResourceTypes.go @@ -47,7 +47,7 @@ type GetSupportedResourceTypesOutput struct { // Database Service // // * Storage Gateway for AWS Storage Gateway - ResourceTypes []*string + ResourceTypes []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/backup/api_op_ListBackupJobs.go b/service/backup/api_op_ListBackupJobs.go index e0337469f08..31fd60de0dc 100644 --- a/service/backup/api_op_ListBackupJobs.go +++ b/service/backup/api_op_ListBackupJobs.go @@ -85,7 +85,7 @@ type ListBackupJobsOutput struct { // An array of structures containing metadata about your backup jobs returned in // JSON format. - BackupJobs []*types.BackupJob + BackupJobs []types.BackupJob // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to diff --git a/service/backup/api_op_ListBackupPlanTemplates.go b/service/backup/api_op_ListBackupPlanTemplates.go index 35ec9efd30d..a91df82b113 100644 --- a/service/backup/api_op_ListBackupPlanTemplates.go +++ b/service/backup/api_op_ListBackupPlanTemplates.go @@ -43,7 +43,7 @@ type ListBackupPlanTemplatesInput struct { type ListBackupPlanTemplatesOutput struct { // An array of template list items containing metadata about your saved templates. - BackupPlanTemplatesList []*types.BackupPlanTemplatesListMember + BackupPlanTemplatesList []types.BackupPlanTemplatesListMember // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to diff --git a/service/backup/api_op_ListBackupPlanVersions.go b/service/backup/api_op_ListBackupPlanVersions.go index af18cbc00d4..d07bbe13c28 100644 --- a/service/backup/api_op_ListBackupPlanVersions.go +++ b/service/backup/api_op_ListBackupPlanVersions.go @@ -49,7 +49,7 @@ type ListBackupPlanVersionsInput struct { type ListBackupPlanVersionsOutput struct { // An array of version list items containing metadata about your backup plans. - BackupPlanVersionsList []*types.BackupPlansListMember + BackupPlanVersionsList []types.BackupPlansListMember // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to diff --git a/service/backup/api_op_ListBackupPlans.go b/service/backup/api_op_ListBackupPlans.go index 3f677159091..6f8ac11112e 100644 --- a/service/backup/api_op_ListBackupPlans.go +++ b/service/backup/api_op_ListBackupPlans.go @@ -50,7 +50,7 @@ type ListBackupPlansOutput struct { // An array of backup plan list items containing metadata about your saved backup // plans. - BackupPlansList []*types.BackupPlansListMember + BackupPlansList []types.BackupPlansListMember // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to diff --git a/service/backup/api_op_ListBackupSelections.go b/service/backup/api_op_ListBackupSelections.go index fa632d107ee..459e989c57a 100644 --- a/service/backup/api_op_ListBackupSelections.go +++ b/service/backup/api_op_ListBackupSelections.go @@ -49,7 +49,7 @@ type ListBackupSelectionsOutput struct { // An array of backup selection list items containing metadata about each resource // in the list. - BackupSelectionsList []*types.BackupSelectionsListMember + BackupSelectionsList []types.BackupSelectionsListMember // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to diff --git a/service/backup/api_op_ListBackupVaults.go b/service/backup/api_op_ListBackupVaults.go index 07ac38e1949..f5575c01c34 100644 --- a/service/backup/api_op_ListBackupVaults.go +++ b/service/backup/api_op_ListBackupVaults.go @@ -46,7 +46,7 @@ type ListBackupVaultsOutput struct { // Amazon Resource Name (ARN), display name, creation date, number of saved // recovery points, and encryption information if the resources saved in the backup // vault are encrypted. - BackupVaultList []*types.BackupVaultListMember + BackupVaultList []types.BackupVaultListMember // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to diff --git a/service/backup/api_op_ListCopyJobs.go b/service/backup/api_op_ListCopyJobs.go index 70c096c62f5..6ad7a2e1c56 100644 --- a/service/backup/api_op_ListCopyJobs.go +++ b/service/backup/api_op_ListCopyJobs.go @@ -84,7 +84,7 @@ type ListCopyJobsOutput struct { // An array of structures containing metadata about your copy jobs returned in JSON // format. - CopyJobs []*types.CopyJob + CopyJobs []types.CopyJob // The next item following a partial list of returned items. For example, if a // request is made to return maxResults number of items, NextToken allows you to diff --git a/service/backup/api_op_ListProtectedResources.go b/service/backup/api_op_ListProtectedResources.go index d3f30f099f9..029e7bd33ba 100644 --- a/service/backup/api_op_ListProtectedResources.go +++ b/service/backup/api_op_ListProtectedResources.go @@ -52,7 +52,7 @@ type ListProtectedResourcesOutput struct { // An array of resources successfully backed up by AWS Backup including the time // the resource was saved, an Amazon Resource Name (ARN) of the resource, and a // resource type. - Results []*types.ProtectedResource + Results []types.ProtectedResource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/backup/api_op_ListRecoveryPointsByBackupVault.go b/service/backup/api_op_ListRecoveryPointsByBackupVault.go index 7132338c193..98372effed2 100644 --- a/service/backup/api_op_ListRecoveryPointsByBackupVault.go +++ b/service/backup/api_op_ListRecoveryPointsByBackupVault.go @@ -74,7 +74,7 @@ type ListRecoveryPointsByBackupVaultOutput struct { // An array of objects that contain detailed information about recovery points // saved in a backup vault. - RecoveryPoints []*types.RecoveryPointByBackupVault + RecoveryPoints []types.RecoveryPointByBackupVault // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/backup/api_op_ListRecoveryPointsByResource.go b/service/backup/api_op_ListRecoveryPointsByResource.go index 66d7ae80cd7..63bd3afd9b8 100644 --- a/service/backup/api_op_ListRecoveryPointsByResource.go +++ b/service/backup/api_op_ListRecoveryPointsByResource.go @@ -56,7 +56,7 @@ type ListRecoveryPointsByResourceOutput struct { // An array of objects that contain detailed information about recovery points of // the specified resource type. - RecoveryPoints []*types.RecoveryPointByResource + RecoveryPoints []types.RecoveryPointByResource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/backup/api_op_ListRestoreJobs.go b/service/backup/api_op_ListRestoreJobs.go index 5865da450cf..fdc160aa021 100644 --- a/service/backup/api_op_ListRestoreJobs.go +++ b/service/backup/api_op_ListRestoreJobs.go @@ -64,7 +64,7 @@ type ListRestoreJobsOutput struct { // An array of objects that contain detailed information about jobs to restore // saved resources. - RestoreJobs []*types.RestoreJobsListMember + RestoreJobs []types.RestoreJobsListMember // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/backup/api_op_ListTags.go b/service/backup/api_op_ListTags.go index ed4dd314b6c..c1b849dcf65 100644 --- a/service/backup/api_op_ListTags.go +++ b/service/backup/api_op_ListTags.go @@ -57,7 +57,7 @@ type ListTagsOutput struct { // To help organize your resources, you can assign your own metadata to the // resources you create. Each tag is a key-value pair. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/backup/api_op_StartBackupJob.go b/service/backup/api_op_StartBackupJob.go index 5bad57189a3..0ed467e0bbb 100644 --- a/service/backup/api_op_StartBackupJob.go +++ b/service/backup/api_op_StartBackupJob.go @@ -55,7 +55,7 @@ type StartBackupJobInput struct { // "WindowsVSS”:“enabled" to enable WindowsVSS backup option and create a VSS // Windows backup. Set to “WindowsVSS”:”disabled” to create a regular backup. The // WindowsVSS option is not enabled by default. - BackupOptions map[string]*string + BackupOptions map[string]string // A value in minutes after a backup job is successfully started before it must be // completed or it will be canceled by AWS Backup. This value is optional. @@ -76,7 +76,7 @@ type StartBackupJobInput struct { // To help organize your resources, you can assign your own metadata to the // resources that you create. Each tag is a key-value pair. - RecoveryPointTags map[string]*string + RecoveryPointTags map[string]string // A value in minutes after a backup is scheduled before a job will be canceled if // it doesn't start successfully. This value is optional. diff --git a/service/backup/api_op_StartRestoreJob.go b/service/backup/api_op_StartRestoreJob.go index 9df4521d2b4..e9205017348 100644 --- a/service/backup/api_op_StartRestoreJob.go +++ b/service/backup/api_op_StartRestoreJob.go @@ -71,7 +71,7 @@ type StartRestoreJobInput struct { // than the entire file system. This parameter is optional. // // This member is required. - Metadata map[string]*string + Metadata map[string]string // An ARN that uniquely identifies a recovery point; for example, // arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. diff --git a/service/backup/api_op_TagResource.go b/service/backup/api_op_TagResource.go index 7d91dd06c87..fb56eedbb73 100644 --- a/service/backup/api_op_TagResource.go +++ b/service/backup/api_op_TagResource.go @@ -39,7 +39,7 @@ type TagResourceInput struct { // your own metadata to the resources you create. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/backup/api_op_UntagResource.go b/service/backup/api_op_UntagResource.go index 538b6ed76cc..2f4871c4ae0 100644 --- a/service/backup/api_op_UntagResource.go +++ b/service/backup/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // A list of keys to identify which key-value tags to remove from a resource. // // This member is required. - TagKeyList []*string + TagKeyList []string } type UntagResourceOutput struct { diff --git a/service/backup/api_op_UpdateBackupPlan.go b/service/backup/api_op_UpdateBackupPlan.go index bd621d41084..504cdde3f40 100644 --- a/service/backup/api_op_UpdateBackupPlan.go +++ b/service/backup/api_op_UpdateBackupPlan.go @@ -46,7 +46,7 @@ type UpdateBackupPlanInput struct { type UpdateBackupPlanOutput struct { // Contains a list of BackupOptions for each resource type. - AdvancedBackupSettings []*types.AdvancedBackupSetting + AdvancedBackupSettings []types.AdvancedBackupSetting // An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for // example, diff --git a/service/backup/api_op_UpdateRegionSettings.go b/service/backup/api_op_UpdateRegionSettings.go index 172248a519a..ebb250b017f 100644 --- a/service/backup/api_op_UpdateRegionSettings.go +++ b/service/backup/api_op_UpdateRegionSettings.go @@ -33,7 +33,7 @@ func (c *Client) UpdateRegionSettings(ctx context.Context, params *UpdateRegionS type UpdateRegionSettingsInput struct { // Updates the list of services along with the opt-in preferences for the Region. - ResourceTypeOptInPreference map[string]*bool + ResourceTypeOptInPreference map[string]bool } type UpdateRegionSettingsOutput struct { diff --git a/service/backup/deserializers.go b/service/backup/deserializers.go index 16f93b965b8..a19245e31da 100644 --- a/service/backup/deserializers.go +++ b/service/backup/deserializers.go @@ -175,7 +175,7 @@ func awsRestjson1_deserializeOpDocumentCreateBackupPlanOutput(v **CreateBackupPl if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupPlanArn = &jtv + sv.BackupPlanArn = ptr.String(jtv) } case "BackupPlanId": @@ -184,7 +184,7 @@ func awsRestjson1_deserializeOpDocumentCreateBackupPlanOutput(v **CreateBackupPl if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupPlanId = &jtv + sv.BackupPlanId = ptr.String(jtv) } case "CreationDate": @@ -206,7 +206,7 @@ func awsRestjson1_deserializeOpDocumentCreateBackupPlanOutput(v **CreateBackupPl if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -369,7 +369,7 @@ func awsRestjson1_deserializeOpDocumentCreateBackupSelectionOutput(v **CreateBac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupPlanId = &jtv + sv.BackupPlanId = ptr.String(jtv) } case "CreationDate": @@ -391,7 +391,7 @@ func awsRestjson1_deserializeOpDocumentCreateBackupSelectionOutput(v **CreateBac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SelectionId = &jtv + sv.SelectionId = ptr.String(jtv) } default: @@ -554,7 +554,7 @@ func awsRestjson1_deserializeOpDocumentCreateBackupVaultOutput(v **CreateBackupV if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupVaultArn = &jtv + sv.BackupVaultArn = ptr.String(jtv) } case "BackupVaultName": @@ -563,7 +563,7 @@ func awsRestjson1_deserializeOpDocumentCreateBackupVaultOutput(v **CreateBackupV if !ok { return fmt.Errorf("expected BackupVaultName to be of type string, got %T instead", value) } - sv.BackupVaultName = &jtv + sv.BackupVaultName = ptr.String(jtv) } case "CreationDate": @@ -739,7 +739,7 @@ func awsRestjson1_deserializeOpDocumentDeleteBackupPlanOutput(v **DeleteBackupPl if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupPlanArn = &jtv + sv.BackupPlanArn = ptr.String(jtv) } case "BackupPlanId": @@ -748,7 +748,7 @@ func awsRestjson1_deserializeOpDocumentDeleteBackupPlanOutput(v **DeleteBackupPl if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupPlanId = &jtv + sv.BackupPlanId = ptr.String(jtv) } case "DeletionDate": @@ -770,7 +770,7 @@ func awsRestjson1_deserializeOpDocumentDeleteBackupPlanOutput(v **DeleteBackupPl if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -1399,7 +1399,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupJobOutput(v **DescribeBacku if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "BackupJobId": @@ -1408,7 +1408,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupJobOutput(v **DescribeBacku if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupJobId = &jtv + sv.BackupJobId = ptr.String(jtv) } case "BackupOptions": @@ -1426,7 +1426,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupJobOutput(v **DescribeBacku if err != nil { return err } - sv.BackupSizeInBytes = &i64 + sv.BackupSizeInBytes = ptr.Int64(i64) } case "BackupType": @@ -1435,7 +1435,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupJobOutput(v **DescribeBacku if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupType = &jtv + sv.BackupType = ptr.String(jtv) } case "BackupVaultArn": @@ -1444,7 +1444,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupJobOutput(v **DescribeBacku if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupVaultArn = &jtv + sv.BackupVaultArn = ptr.String(jtv) } case "BackupVaultName": @@ -1453,7 +1453,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupJobOutput(v **DescribeBacku if !ok { return fmt.Errorf("expected BackupVaultName to be of type string, got %T instead", value) } - sv.BackupVaultName = &jtv + sv.BackupVaultName = ptr.String(jtv) } case "BytesTransferred": @@ -1466,7 +1466,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupJobOutput(v **DescribeBacku if err != nil { return err } - sv.BytesTransferred = &i64 + sv.BytesTransferred = ptr.Int64(i64) } case "CompletionDate": @@ -1519,7 +1519,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupJobOutput(v **DescribeBacku if !ok { return fmt.Errorf("expected IAMRoleArn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "PercentDone": @@ -1528,7 +1528,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupJobOutput(v **DescribeBacku if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.PercentDone = &jtv + sv.PercentDone = ptr.String(jtv) } case "RecoveryPointArn": @@ -1537,7 +1537,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupJobOutput(v **DescribeBacku if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RecoveryPointArn = &jtv + sv.RecoveryPointArn = ptr.String(jtv) } case "ResourceArn": @@ -1546,7 +1546,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupJobOutput(v **DescribeBacku if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "ResourceType": @@ -1555,7 +1555,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupJobOutput(v **DescribeBacku if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "StartBy": @@ -1586,7 +1586,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupJobOutput(v **DescribeBacku if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } default: @@ -1746,7 +1746,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupVaultOutput(v **DescribeBac if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupVaultArn = &jtv + sv.BackupVaultArn = ptr.String(jtv) } case "BackupVaultName": @@ -1755,7 +1755,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupVaultOutput(v **DescribeBac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupVaultName = &jtv + sv.BackupVaultName = ptr.String(jtv) } case "CreationDate": @@ -1777,7 +1777,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupVaultOutput(v **DescribeBac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "EncryptionKeyArn": @@ -1786,7 +1786,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupVaultOutput(v **DescribeBac if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.EncryptionKeyArn = &jtv + sv.EncryptionKeyArn = ptr.String(jtv) } case "NumberOfRecoveryPoints": @@ -1799,7 +1799,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupVaultOutput(v **DescribeBac if err != nil { return err } - sv.NumberOfRecoveryPoints = &i64 + sv.NumberOfRecoveryPoints = i64 } default: @@ -2128,7 +2128,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProtectedResourceOutput(v **Descr if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "ResourceType": @@ -2137,7 +2137,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProtectedResourceOutput(v **Descr if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -2301,7 +2301,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRecoveryPointOutput(v **DescribeR if err != nil { return err } - sv.BackupSizeInBytes = &i64 + sv.BackupSizeInBytes = ptr.Int64(i64) } case "BackupVaultArn": @@ -2310,7 +2310,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRecoveryPointOutput(v **DescribeR if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupVaultArn = &jtv + sv.BackupVaultArn = ptr.String(jtv) } case "BackupVaultName": @@ -2319,7 +2319,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRecoveryPointOutput(v **DescribeR if !ok { return fmt.Errorf("expected BackupVaultName to be of type string, got %T instead", value) } - sv.BackupVaultName = &jtv + sv.BackupVaultName = ptr.String(jtv) } case "CalculatedLifecycle": @@ -2364,7 +2364,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRecoveryPointOutput(v **DescribeR if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.EncryptionKeyArn = &jtv + sv.EncryptionKeyArn = ptr.String(jtv) } case "IamRoleArn": @@ -2373,7 +2373,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRecoveryPointOutput(v **DescribeR if !ok { return fmt.Errorf("expected IAMRoleArn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "IsEncrypted": @@ -2382,7 +2382,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRecoveryPointOutput(v **DescribeR if !ok { return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) } - sv.IsEncrypted = &jtv + sv.IsEncrypted = jtv } case "LastRestoreTime": @@ -2409,7 +2409,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRecoveryPointOutput(v **DescribeR if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RecoveryPointArn = &jtv + sv.RecoveryPointArn = ptr.String(jtv) } case "ResourceArn": @@ -2418,7 +2418,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRecoveryPointOutput(v **DescribeR if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "ResourceType": @@ -2427,7 +2427,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRecoveryPointOutput(v **DescribeR if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "Status": @@ -2755,7 +2755,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRestoreJobOutput(v **DescribeRest if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "BackupSizeInBytes": @@ -2768,7 +2768,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRestoreJobOutput(v **DescribeRest if err != nil { return err } - sv.BackupSizeInBytes = &i64 + sv.BackupSizeInBytes = ptr.Int64(i64) } case "CompletionDate": @@ -2790,7 +2790,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRestoreJobOutput(v **DescribeRest if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.CreatedResourceArn = &jtv + sv.CreatedResourceArn = ptr.String(jtv) } case "CreationDate": @@ -2816,7 +2816,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRestoreJobOutput(v **DescribeRest if err != nil { return err } - sv.ExpectedCompletionTimeMinutes = &i64 + sv.ExpectedCompletionTimeMinutes = ptr.Int64(i64) } case "IamRoleArn": @@ -2825,7 +2825,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRestoreJobOutput(v **DescribeRest if !ok { return fmt.Errorf("expected IAMRoleArn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "PercentDone": @@ -2834,7 +2834,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRestoreJobOutput(v **DescribeRest if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.PercentDone = &jtv + sv.PercentDone = ptr.String(jtv) } case "RecoveryPointArn": @@ -2843,7 +2843,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRestoreJobOutput(v **DescribeRest if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RecoveryPointArn = &jtv + sv.RecoveryPointArn = ptr.String(jtv) } case "ResourceType": @@ -2852,7 +2852,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRestoreJobOutput(v **DescribeRest if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "RestoreJobId": @@ -2861,7 +2861,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRestoreJobOutput(v **DescribeRest if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.RestoreJobId = &jtv + sv.RestoreJobId = ptr.String(jtv) } case "Status": @@ -2879,7 +2879,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRestoreJobOutput(v **DescribeRest if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } default: @@ -3039,7 +3039,7 @@ func awsRestjson1_deserializeOpDocumentExportBackupPlanTemplateOutput(v **Export if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupPlanTemplateJson = &jtv + sv.BackupPlanTemplateJson = ptr.String(jtv) } default: @@ -3209,7 +3209,7 @@ func awsRestjson1_deserializeOpDocumentGetBackupPlanOutput(v **GetBackupPlanOutp if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupPlanArn = &jtv + sv.BackupPlanArn = ptr.String(jtv) } case "BackupPlanId": @@ -3218,7 +3218,7 @@ func awsRestjson1_deserializeOpDocumentGetBackupPlanOutput(v **GetBackupPlanOutp if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupPlanId = &jtv + sv.BackupPlanId = ptr.String(jtv) } case "CreationDate": @@ -3240,7 +3240,7 @@ func awsRestjson1_deserializeOpDocumentGetBackupPlanOutput(v **GetBackupPlanOutp if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "DeletionDate": @@ -3275,7 +3275,7 @@ func awsRestjson1_deserializeOpDocumentGetBackupPlanOutput(v **GetBackupPlanOutp if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -3750,7 +3750,7 @@ func awsRestjson1_deserializeOpDocumentGetBackupSelectionOutput(v **GetBackupSel if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupPlanId = &jtv + sv.BackupPlanId = ptr.String(jtv) } case "BackupSelection": @@ -3777,7 +3777,7 @@ func awsRestjson1_deserializeOpDocumentGetBackupSelectionOutput(v **GetBackupSel if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "SelectionId": @@ -3786,7 +3786,7 @@ func awsRestjson1_deserializeOpDocumentGetBackupSelectionOutput(v **GetBackupSel if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SelectionId = &jtv + sv.SelectionId = ptr.String(jtv) } default: @@ -3946,7 +3946,7 @@ func awsRestjson1_deserializeOpDocumentGetBackupVaultAccessPolicyOutput(v **GetB if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupVaultArn = &jtv + sv.BackupVaultArn = ptr.String(jtv) } case "BackupVaultName": @@ -3955,7 +3955,7 @@ func awsRestjson1_deserializeOpDocumentGetBackupVaultAccessPolicyOutput(v **GetB if !ok { return fmt.Errorf("expected BackupVaultName to be of type string, got %T instead", value) } - sv.BackupVaultName = &jtv + sv.BackupVaultName = ptr.String(jtv) } case "Policy": @@ -3964,7 +3964,7 @@ func awsRestjson1_deserializeOpDocumentGetBackupVaultAccessPolicyOutput(v **GetB if !ok { return fmt.Errorf("expected IAMPolicy to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -4124,7 +4124,7 @@ func awsRestjson1_deserializeOpDocumentGetBackupVaultNotificationsOutput(v **Get if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupVaultArn = &jtv + sv.BackupVaultArn = ptr.String(jtv) } case "BackupVaultEvents": @@ -4138,7 +4138,7 @@ func awsRestjson1_deserializeOpDocumentGetBackupVaultNotificationsOutput(v **Get if !ok { return fmt.Errorf("expected BackupVaultName to be of type string, got %T instead", value) } - sv.BackupVaultName = &jtv + sv.BackupVaultName = ptr.String(jtv) } case "SNSTopicArn": @@ -4147,7 +4147,7 @@ func awsRestjson1_deserializeOpDocumentGetBackupVaultNotificationsOutput(v **Get if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.SNSTopicArn = &jtv + sv.SNSTopicArn = ptr.String(jtv) } default: @@ -4307,7 +4307,7 @@ func awsRestjson1_deserializeOpDocumentGetRecoveryPointRestoreMetadataOutput(v * if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupVaultArn = &jtv + sv.BackupVaultArn = ptr.String(jtv) } case "RecoveryPointArn": @@ -4316,7 +4316,7 @@ func awsRestjson1_deserializeOpDocumentGetRecoveryPointRestoreMetadataOutput(v * if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RecoveryPointArn = &jtv + sv.RecoveryPointArn = ptr.String(jtv) } case "RestoreMetadata": @@ -4627,7 +4627,7 @@ func awsRestjson1_deserializeOpDocumentListBackupJobsOutput(v **ListBackupJobsOu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4792,7 +4792,7 @@ func awsRestjson1_deserializeOpDocumentListBackupPlansOutput(v **ListBackupPlans if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4957,7 +4957,7 @@ func awsRestjson1_deserializeOpDocumentListBackupPlanTemplatesOutput(v **ListBac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5122,7 +5122,7 @@ func awsRestjson1_deserializeOpDocumentListBackupPlanVersionsOutput(v **ListBack if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5287,7 +5287,7 @@ func awsRestjson1_deserializeOpDocumentListBackupSelectionsOutput(v **ListBackup if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5452,7 +5452,7 @@ func awsRestjson1_deserializeOpDocumentListBackupVaultsOutput(v **ListBackupVaul if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5611,7 +5611,7 @@ func awsRestjson1_deserializeOpDocumentListCopyJobsOutput(v **ListCopyJobsOutput if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5765,7 +5765,7 @@ func awsRestjson1_deserializeOpDocumentListProtectedResourcesOutput(v **ListProt if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Results": @@ -5930,7 +5930,7 @@ func awsRestjson1_deserializeOpDocumentListRecoveryPointsByBackupVaultOutput(v * if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RecoveryPoints": @@ -6095,7 +6095,7 @@ func awsRestjson1_deserializeOpDocumentListRecoveryPointsByResourceOutput(v **Li if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RecoveryPoints": @@ -6260,7 +6260,7 @@ func awsRestjson1_deserializeOpDocumentListRestoreJobsOutput(v **ListRestoreJobs if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RestoreJobs": @@ -6425,7 +6425,7 @@ func awsRestjson1_deserializeOpDocumentListTagsOutput(v **ListTagsOutput, value if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -6777,7 +6777,7 @@ func awsRestjson1_deserializeOpDocumentStartBackupJobOutput(v **StartBackupJobOu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupJobId = &jtv + sv.BackupJobId = ptr.String(jtv) } case "CreationDate": @@ -6799,7 +6799,7 @@ func awsRestjson1_deserializeOpDocumentStartBackupJobOutput(v **StartBackupJobOu if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RecoveryPointArn = &jtv + sv.RecoveryPointArn = ptr.String(jtv) } default: @@ -6962,7 +6962,7 @@ func awsRestjson1_deserializeOpDocumentStartCopyJobOutput(v **StartCopyJobOutput if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CopyJobId = &jtv + sv.CopyJobId = ptr.String(jtv) } case "CreationDate": @@ -7135,7 +7135,7 @@ func awsRestjson1_deserializeOpDocumentStartRestoreJobOutput(v **StartRestoreJob if !ok { return fmt.Errorf("expected RestoreJobId to be of type string, got %T instead", value) } - sv.RestoreJobId = &jtv + sv.RestoreJobId = ptr.String(jtv) } default: @@ -7582,7 +7582,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBackupPlanOutput(v **UpdateBackupPl if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupPlanArn = &jtv + sv.BackupPlanArn = ptr.String(jtv) } case "BackupPlanId": @@ -7591,7 +7591,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBackupPlanOutput(v **UpdateBackupPl if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupPlanId = &jtv + sv.BackupPlanId = ptr.String(jtv) } case "CreationDate": @@ -7613,7 +7613,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBackupPlanOutput(v **UpdateBackupPl if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -7773,7 +7773,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRecoveryPointLifecycleOutput(v **Up if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupVaultArn = &jtv + sv.BackupVaultArn = ptr.String(jtv) } case "CalculatedLifecycle": @@ -7792,7 +7792,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRecoveryPointLifecycleOutput(v **Up if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RecoveryPointArn = &jtv + sv.RecoveryPointArn = ptr.String(jtv) } default: @@ -8214,7 +8214,7 @@ func awsRestjson1_deserializeDocumentAdvancedBackupSetting(v **types.AdvancedBac if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -8226,7 +8226,7 @@ func awsRestjson1_deserializeDocumentAdvancedBackupSetting(v **types.AdvancedBac return nil } -func awsRestjson1_deserializeDocumentAdvancedBackupSettings(v *[]*types.AdvancedBackupSetting, value interface{}) error { +func awsRestjson1_deserializeDocumentAdvancedBackupSettings(v *[]types.AdvancedBackupSetting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8239,18 +8239,20 @@ func awsRestjson1_deserializeDocumentAdvancedBackupSettings(v *[]*types.Advanced return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AdvancedBackupSetting + var cv []types.AdvancedBackupSetting if *v == nil { - cv = []*types.AdvancedBackupSetting{} + cv = []types.AdvancedBackupSetting{} } else { cv = *v } for _, value := range shape { - var col *types.AdvancedBackupSetting - if err := awsRestjson1_deserializeDocumentAdvancedBackupSetting(&col, value); err != nil { + var col types.AdvancedBackupSetting + destAddr := &col + if err := awsRestjson1_deserializeDocumentAdvancedBackupSetting(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8286,7 +8288,7 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Code": @@ -8295,7 +8297,7 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Context": @@ -8304,7 +8306,7 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Context = &jtv + sv.Context = ptr.String(jtv) } case "CreatorRequestId": @@ -8313,7 +8315,7 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "Message": @@ -8322,7 +8324,7 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -8331,7 +8333,7 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -8371,7 +8373,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "BackupJobId": @@ -8380,7 +8382,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupJobId = &jtv + sv.BackupJobId = ptr.String(jtv) } case "BackupOptions": @@ -8398,7 +8400,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf if err != nil { return err } - sv.BackupSizeInBytes = &i64 + sv.BackupSizeInBytes = ptr.Int64(i64) } case "BackupType": @@ -8407,7 +8409,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupType = &jtv + sv.BackupType = ptr.String(jtv) } case "BackupVaultArn": @@ -8416,7 +8418,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupVaultArn = &jtv + sv.BackupVaultArn = ptr.String(jtv) } case "BackupVaultName": @@ -8425,7 +8427,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf if !ok { return fmt.Errorf("expected BackupVaultName to be of type string, got %T instead", value) } - sv.BackupVaultName = &jtv + sv.BackupVaultName = ptr.String(jtv) } case "BytesTransferred": @@ -8438,7 +8440,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf if err != nil { return err } - sv.BytesTransferred = &i64 + sv.BytesTransferred = ptr.Int64(i64) } case "CompletionDate": @@ -8491,7 +8493,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf if !ok { return fmt.Errorf("expected IAMRoleArn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "PercentDone": @@ -8500,7 +8502,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.PercentDone = &jtv + sv.PercentDone = ptr.String(jtv) } case "RecoveryPointArn": @@ -8509,7 +8511,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RecoveryPointArn = &jtv + sv.RecoveryPointArn = ptr.String(jtv) } case "ResourceArn": @@ -8518,7 +8520,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "ResourceType": @@ -8527,7 +8529,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "StartBy": @@ -8558,7 +8560,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } default: @@ -8570,7 +8572,7 @@ func awsRestjson1_deserializeDocumentBackupJob(v **types.BackupJob, value interf return nil } -func awsRestjson1_deserializeDocumentBackupJobsList(v *[]*types.BackupJob, value interface{}) error { +func awsRestjson1_deserializeDocumentBackupJobsList(v *[]types.BackupJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8583,18 +8585,20 @@ func awsRestjson1_deserializeDocumentBackupJobsList(v *[]*types.BackupJob, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BackupJob + var cv []types.BackupJob if *v == nil { - cv = []*types.BackupJob{} + cv = []types.BackupJob{} } else { cv = *v } for _, value := range shape { - var col *types.BackupJob - if err := awsRestjson1_deserializeDocumentBackupJob(&col, value); err != nil { + var col types.BackupJob + destAddr := &col + if err := awsRestjson1_deserializeDocumentBackupJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8602,7 +8606,7 @@ func awsRestjson1_deserializeDocumentBackupJobsList(v *[]*types.BackupJob, value return nil } -func awsRestjson1_deserializeDocumentBackupOptions(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentBackupOptions(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8615,21 +8619,21 @@ func awsRestjson1_deserializeDocumentBackupOptions(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected BackupOptionValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -8671,7 +8675,7 @@ func awsRestjson1_deserializeDocumentBackupPlan(v **types.BackupPlan, value inte if !ok { return fmt.Errorf("expected BackupPlanName to be of type string, got %T instead", value) } - sv.BackupPlanName = &jtv + sv.BackupPlanName = ptr.String(jtv) } case "Rules": @@ -8688,7 +8692,7 @@ func awsRestjson1_deserializeDocumentBackupPlan(v **types.BackupPlan, value inte return nil } -func awsRestjson1_deserializeDocumentBackupPlansList(v *[]*types.BackupPlansListMember, value interface{}) error { +func awsRestjson1_deserializeDocumentBackupPlansList(v *[]types.BackupPlansListMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8701,18 +8705,20 @@ func awsRestjson1_deserializeDocumentBackupPlansList(v *[]*types.BackupPlansList return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BackupPlansListMember + var cv []types.BackupPlansListMember if *v == nil { - cv = []*types.BackupPlansListMember{} + cv = []types.BackupPlansListMember{} } else { cv = *v } for _, value := range shape { - var col *types.BackupPlansListMember - if err := awsRestjson1_deserializeDocumentBackupPlansListMember(&col, value); err != nil { + var col types.BackupPlansListMember + destAddr := &col + if err := awsRestjson1_deserializeDocumentBackupPlansListMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8753,7 +8759,7 @@ func awsRestjson1_deserializeDocumentBackupPlansListMember(v **types.BackupPlans if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupPlanArn = &jtv + sv.BackupPlanArn = ptr.String(jtv) } case "BackupPlanId": @@ -8762,7 +8768,7 @@ func awsRestjson1_deserializeDocumentBackupPlansListMember(v **types.BackupPlans if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupPlanId = &jtv + sv.BackupPlanId = ptr.String(jtv) } case "BackupPlanName": @@ -8771,7 +8777,7 @@ func awsRestjson1_deserializeDocumentBackupPlansListMember(v **types.BackupPlans if !ok { return fmt.Errorf("expected BackupPlanName to be of type string, got %T instead", value) } - sv.BackupPlanName = &jtv + sv.BackupPlanName = ptr.String(jtv) } case "CreationDate": @@ -8793,7 +8799,7 @@ func awsRestjson1_deserializeDocumentBackupPlansListMember(v **types.BackupPlans if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "DeletionDate": @@ -8828,7 +8834,7 @@ func awsRestjson1_deserializeDocumentBackupPlansListMember(v **types.BackupPlans if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -8840,7 +8846,7 @@ func awsRestjson1_deserializeDocumentBackupPlansListMember(v **types.BackupPlans return nil } -func awsRestjson1_deserializeDocumentBackupPlanTemplatesList(v *[]*types.BackupPlanTemplatesListMember, value interface{}) error { +func awsRestjson1_deserializeDocumentBackupPlanTemplatesList(v *[]types.BackupPlanTemplatesListMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8853,18 +8859,20 @@ func awsRestjson1_deserializeDocumentBackupPlanTemplatesList(v *[]*types.BackupP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BackupPlanTemplatesListMember + var cv []types.BackupPlanTemplatesListMember if *v == nil { - cv = []*types.BackupPlanTemplatesListMember{} + cv = []types.BackupPlanTemplatesListMember{} } else { cv = *v } for _, value := range shape { - var col *types.BackupPlanTemplatesListMember - if err := awsRestjson1_deserializeDocumentBackupPlanTemplatesListMember(&col, value); err != nil { + var col types.BackupPlanTemplatesListMember + destAddr := &col + if err := awsRestjson1_deserializeDocumentBackupPlanTemplatesListMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8900,7 +8908,7 @@ func awsRestjson1_deserializeDocumentBackupPlanTemplatesListMember(v **types.Bac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupPlanTemplateId = &jtv + sv.BackupPlanTemplateId = ptr.String(jtv) } case "BackupPlanTemplateName": @@ -8909,7 +8917,7 @@ func awsRestjson1_deserializeDocumentBackupPlanTemplatesListMember(v **types.Bac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupPlanTemplateName = &jtv + sv.BackupPlanTemplateName = ptr.String(jtv) } default: @@ -8921,7 +8929,7 @@ func awsRestjson1_deserializeDocumentBackupPlanTemplatesListMember(v **types.Bac return nil } -func awsRestjson1_deserializeDocumentBackupPlanVersionsList(v *[]*types.BackupPlansListMember, value interface{}) error { +func awsRestjson1_deserializeDocumentBackupPlanVersionsList(v *[]types.BackupPlansListMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8934,18 +8942,20 @@ func awsRestjson1_deserializeDocumentBackupPlanVersionsList(v *[]*types.BackupPl return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BackupPlansListMember + var cv []types.BackupPlansListMember if *v == nil { - cv = []*types.BackupPlansListMember{} + cv = []types.BackupPlansListMember{} } else { cv = *v } for _, value := range shape { - var col *types.BackupPlansListMember - if err := awsRestjson1_deserializeDocumentBackupPlansListMember(&col, value); err != nil { + var col types.BackupPlansListMember + destAddr := &col + if err := awsRestjson1_deserializeDocumentBackupPlansListMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8985,7 +8995,7 @@ func awsRestjson1_deserializeDocumentBackupRule(v **types.BackupRule, value inte if err != nil { return err } - sv.CompletionWindowMinutes = &i64 + sv.CompletionWindowMinutes = ptr.Int64(i64) } case "CopyActions": @@ -9009,7 +9019,7 @@ func awsRestjson1_deserializeDocumentBackupRule(v **types.BackupRule, value inte if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } case "RuleName": @@ -9018,7 +9028,7 @@ func awsRestjson1_deserializeDocumentBackupRule(v **types.BackupRule, value inte if !ok { return fmt.Errorf("expected BackupRuleName to be of type string, got %T instead", value) } - sv.RuleName = &jtv + sv.RuleName = ptr.String(jtv) } case "ScheduleExpression": @@ -9027,7 +9037,7 @@ func awsRestjson1_deserializeDocumentBackupRule(v **types.BackupRule, value inte if !ok { return fmt.Errorf("expected CronExpression to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } case "StartWindowMinutes": @@ -9040,7 +9050,7 @@ func awsRestjson1_deserializeDocumentBackupRule(v **types.BackupRule, value inte if err != nil { return err } - sv.StartWindowMinutes = &i64 + sv.StartWindowMinutes = ptr.Int64(i64) } case "TargetBackupVaultName": @@ -9049,7 +9059,7 @@ func awsRestjson1_deserializeDocumentBackupRule(v **types.BackupRule, value inte if !ok { return fmt.Errorf("expected BackupVaultName to be of type string, got %T instead", value) } - sv.TargetBackupVaultName = &jtv + sv.TargetBackupVaultName = ptr.String(jtv) } default: @@ -9061,7 +9071,7 @@ func awsRestjson1_deserializeDocumentBackupRule(v **types.BackupRule, value inte return nil } -func awsRestjson1_deserializeDocumentBackupRules(v *[]*types.BackupRule, value interface{}) error { +func awsRestjson1_deserializeDocumentBackupRules(v *[]types.BackupRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9074,18 +9084,20 @@ func awsRestjson1_deserializeDocumentBackupRules(v *[]*types.BackupRule, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BackupRule + var cv []types.BackupRule if *v == nil { - cv = []*types.BackupRule{} + cv = []types.BackupRule{} } else { cv = *v } for _, value := range shape { - var col *types.BackupRule - if err := awsRestjson1_deserializeDocumentBackupRule(&col, value); err != nil { + var col types.BackupRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentBackupRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9121,7 +9133,7 @@ func awsRestjson1_deserializeDocumentBackupSelection(v **types.BackupSelection, if !ok { return fmt.Errorf("expected IAMRoleArn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "ListOfTags": @@ -9140,7 +9152,7 @@ func awsRestjson1_deserializeDocumentBackupSelection(v **types.BackupSelection, if !ok { return fmt.Errorf("expected BackupSelectionName to be of type string, got %T instead", value) } - sv.SelectionName = &jtv + sv.SelectionName = ptr.String(jtv) } default: @@ -9152,7 +9164,7 @@ func awsRestjson1_deserializeDocumentBackupSelection(v **types.BackupSelection, return nil } -func awsRestjson1_deserializeDocumentBackupSelectionsList(v *[]*types.BackupSelectionsListMember, value interface{}) error { +func awsRestjson1_deserializeDocumentBackupSelectionsList(v *[]types.BackupSelectionsListMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9165,18 +9177,20 @@ func awsRestjson1_deserializeDocumentBackupSelectionsList(v *[]*types.BackupSele return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BackupSelectionsListMember + var cv []types.BackupSelectionsListMember if *v == nil { - cv = []*types.BackupSelectionsListMember{} + cv = []types.BackupSelectionsListMember{} } else { cv = *v } for _, value := range shape { - var col *types.BackupSelectionsListMember - if err := awsRestjson1_deserializeDocumentBackupSelectionsListMember(&col, value); err != nil { + var col types.BackupSelectionsListMember + destAddr := &col + if err := awsRestjson1_deserializeDocumentBackupSelectionsListMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9212,7 +9226,7 @@ func awsRestjson1_deserializeDocumentBackupSelectionsListMember(v **types.Backup if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupPlanId = &jtv + sv.BackupPlanId = ptr.String(jtv) } case "CreationDate": @@ -9234,7 +9248,7 @@ func awsRestjson1_deserializeDocumentBackupSelectionsListMember(v **types.Backup if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "IamRoleArn": @@ -9243,7 +9257,7 @@ func awsRestjson1_deserializeDocumentBackupSelectionsListMember(v **types.Backup if !ok { return fmt.Errorf("expected IAMRoleArn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "SelectionId": @@ -9252,7 +9266,7 @@ func awsRestjson1_deserializeDocumentBackupSelectionsListMember(v **types.Backup if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SelectionId = &jtv + sv.SelectionId = ptr.String(jtv) } case "SelectionName": @@ -9261,7 +9275,7 @@ func awsRestjson1_deserializeDocumentBackupSelectionsListMember(v **types.Backup if !ok { return fmt.Errorf("expected BackupSelectionName to be of type string, got %T instead", value) } - sv.SelectionName = &jtv + sv.SelectionName = ptr.String(jtv) } default: @@ -9309,7 +9323,7 @@ func awsRestjson1_deserializeDocumentBackupVaultEvents(v *[]types.BackupVaultEve return nil } -func awsRestjson1_deserializeDocumentBackupVaultList(v *[]*types.BackupVaultListMember, value interface{}) error { +func awsRestjson1_deserializeDocumentBackupVaultList(v *[]types.BackupVaultListMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9322,18 +9336,20 @@ func awsRestjson1_deserializeDocumentBackupVaultList(v *[]*types.BackupVaultList return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BackupVaultListMember + var cv []types.BackupVaultListMember if *v == nil { - cv = []*types.BackupVaultListMember{} + cv = []types.BackupVaultListMember{} } else { cv = *v } for _, value := range shape { - var col *types.BackupVaultListMember - if err := awsRestjson1_deserializeDocumentBackupVaultListMember(&col, value); err != nil { + var col types.BackupVaultListMember + destAddr := &col + if err := awsRestjson1_deserializeDocumentBackupVaultListMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9369,7 +9385,7 @@ func awsRestjson1_deserializeDocumentBackupVaultListMember(v **types.BackupVault if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupVaultArn = &jtv + sv.BackupVaultArn = ptr.String(jtv) } case "BackupVaultName": @@ -9378,7 +9394,7 @@ func awsRestjson1_deserializeDocumentBackupVaultListMember(v **types.BackupVault if !ok { return fmt.Errorf("expected BackupVaultName to be of type string, got %T instead", value) } - sv.BackupVaultName = &jtv + sv.BackupVaultName = ptr.String(jtv) } case "CreationDate": @@ -9400,7 +9416,7 @@ func awsRestjson1_deserializeDocumentBackupVaultListMember(v **types.BackupVault if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "EncryptionKeyArn": @@ -9409,7 +9425,7 @@ func awsRestjson1_deserializeDocumentBackupVaultListMember(v **types.BackupVault if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.EncryptionKeyArn = &jtv + sv.EncryptionKeyArn = ptr.String(jtv) } case "NumberOfRecoveryPoints": @@ -9422,7 +9438,7 @@ func awsRestjson1_deserializeDocumentBackupVaultListMember(v **types.BackupVault if err != nil { return err } - sv.NumberOfRecoveryPoints = &i64 + sv.NumberOfRecoveryPoints = i64 } default: @@ -9519,7 +9535,7 @@ func awsRestjson1_deserializeDocumentCondition(v **types.Condition, value interf if !ok { return fmt.Errorf("expected ConditionKey to be of type string, got %T instead", value) } - sv.ConditionKey = &jtv + sv.ConditionKey = ptr.String(jtv) } case "ConditionType": @@ -9537,7 +9553,7 @@ func awsRestjson1_deserializeDocumentCondition(v **types.Condition, value interf if !ok { return fmt.Errorf("expected ConditionValue to be of type string, got %T instead", value) } - sv.ConditionValue = &jtv + sv.ConditionValue = ptr.String(jtv) } default: @@ -9577,7 +9593,7 @@ func awsRestjson1_deserializeDocumentCopyAction(v **types.CopyAction, value inte if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.DestinationBackupVaultArn = &jtv + sv.DestinationBackupVaultArn = ptr.String(jtv) } case "Lifecycle": @@ -9594,7 +9610,7 @@ func awsRestjson1_deserializeDocumentCopyAction(v **types.CopyAction, value inte return nil } -func awsRestjson1_deserializeDocumentCopyActions(v *[]*types.CopyAction, value interface{}) error { +func awsRestjson1_deserializeDocumentCopyActions(v *[]types.CopyAction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9607,18 +9623,20 @@ func awsRestjson1_deserializeDocumentCopyActions(v *[]*types.CopyAction, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CopyAction + var cv []types.CopyAction if *v == nil { - cv = []*types.CopyAction{} + cv = []types.CopyAction{} } else { cv = *v } for _, value := range shape { - var col *types.CopyAction - if err := awsRestjson1_deserializeDocumentCopyAction(&col, value); err != nil { + var col types.CopyAction + destAddr := &col + if err := awsRestjson1_deserializeDocumentCopyAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9654,7 +9672,7 @@ func awsRestjson1_deserializeDocumentCopyJob(v **types.CopyJob, value interface{ if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "BackupSizeInBytes": @@ -9667,7 +9685,7 @@ func awsRestjson1_deserializeDocumentCopyJob(v **types.CopyJob, value interface{ if err != nil { return err } - sv.BackupSizeInBytes = &i64 + sv.BackupSizeInBytes = ptr.Int64(i64) } case "CompletionDate": @@ -9689,7 +9707,7 @@ func awsRestjson1_deserializeDocumentCopyJob(v **types.CopyJob, value interface{ if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CopyJobId = &jtv + sv.CopyJobId = ptr.String(jtv) } case "CreatedBy": @@ -9716,7 +9734,7 @@ func awsRestjson1_deserializeDocumentCopyJob(v **types.CopyJob, value interface{ if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.DestinationBackupVaultArn = &jtv + sv.DestinationBackupVaultArn = ptr.String(jtv) } case "DestinationRecoveryPointArn": @@ -9725,7 +9743,7 @@ func awsRestjson1_deserializeDocumentCopyJob(v **types.CopyJob, value interface{ if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.DestinationRecoveryPointArn = &jtv + sv.DestinationRecoveryPointArn = ptr.String(jtv) } case "IamRoleArn": @@ -9734,7 +9752,7 @@ func awsRestjson1_deserializeDocumentCopyJob(v **types.CopyJob, value interface{ if !ok { return fmt.Errorf("expected IAMRoleArn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "ResourceArn": @@ -9743,7 +9761,7 @@ func awsRestjson1_deserializeDocumentCopyJob(v **types.CopyJob, value interface{ if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "ResourceType": @@ -9752,7 +9770,7 @@ func awsRestjson1_deserializeDocumentCopyJob(v **types.CopyJob, value interface{ if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "SourceBackupVaultArn": @@ -9761,7 +9779,7 @@ func awsRestjson1_deserializeDocumentCopyJob(v **types.CopyJob, value interface{ if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.SourceBackupVaultArn = &jtv + sv.SourceBackupVaultArn = ptr.String(jtv) } case "SourceRecoveryPointArn": @@ -9770,7 +9788,7 @@ func awsRestjson1_deserializeDocumentCopyJob(v **types.CopyJob, value interface{ if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.SourceRecoveryPointArn = &jtv + sv.SourceRecoveryPointArn = ptr.String(jtv) } case "State": @@ -9788,7 +9806,7 @@ func awsRestjson1_deserializeDocumentCopyJob(v **types.CopyJob, value interface{ if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } default: @@ -9800,7 +9818,7 @@ func awsRestjson1_deserializeDocumentCopyJob(v **types.CopyJob, value interface{ return nil } -func awsRestjson1_deserializeDocumentCopyJobsList(v *[]*types.CopyJob, value interface{}) error { +func awsRestjson1_deserializeDocumentCopyJobsList(v *[]types.CopyJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9813,18 +9831,20 @@ func awsRestjson1_deserializeDocumentCopyJobsList(v *[]*types.CopyJob, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CopyJob + var cv []types.CopyJob if *v == nil { - cv = []*types.CopyJob{} + cv = []types.CopyJob{} } else { cv = *v } for _, value := range shape { - var col *types.CopyJob - if err := awsRestjson1_deserializeDocumentCopyJob(&col, value); err != nil { + var col types.CopyJob + destAddr := &col + if err := awsRestjson1_deserializeDocumentCopyJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9860,7 +9880,7 @@ func awsRestjson1_deserializeDocumentDependencyFailureException(v **types.Depend if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Context": @@ -9869,7 +9889,7 @@ func awsRestjson1_deserializeDocumentDependencyFailureException(v **types.Depend if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Context = &jtv + sv.Context = ptr.String(jtv) } case "Message": @@ -9878,7 +9898,7 @@ func awsRestjson1_deserializeDocumentDependencyFailureException(v **types.Depend if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -9887,7 +9907,7 @@ func awsRestjson1_deserializeDocumentDependencyFailureException(v **types.Depend if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -9927,7 +9947,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Context": @@ -9936,7 +9956,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Context = &jtv + sv.Context = ptr.String(jtv) } case "Message": @@ -9945,7 +9965,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -9954,7 +9974,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -9994,7 +10014,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Context": @@ -10003,7 +10023,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Context = &jtv + sv.Context = ptr.String(jtv) } case "Message": @@ -10012,7 +10032,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -10021,7 +10041,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -10065,7 +10085,7 @@ func awsRestjson1_deserializeDocumentLifecycle(v **types.Lifecycle, value interf if err != nil { return err } - sv.DeleteAfterDays = &i64 + sv.DeleteAfterDays = ptr.Int64(i64) } case "MoveToColdStorageAfterDays": @@ -10078,7 +10098,7 @@ func awsRestjson1_deserializeDocumentLifecycle(v **types.Lifecycle, value interf if err != nil { return err } - sv.MoveToColdStorageAfterDays = &i64 + sv.MoveToColdStorageAfterDays = ptr.Int64(i64) } default: @@ -10118,7 +10138,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Context": @@ -10127,7 +10147,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Context = &jtv + sv.Context = ptr.String(jtv) } case "Message": @@ -10136,7 +10156,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -10145,7 +10165,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -10157,7 +10177,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsRestjson1_deserializeDocumentListOfTags(v *[]*types.Condition, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfTags(v *[]types.Condition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10170,18 +10190,20 @@ func awsRestjson1_deserializeDocumentListOfTags(v *[]*types.Condition, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Condition + var cv []types.Condition if *v == nil { - cv = []*types.Condition{} + cv = []types.Condition{} } else { cv = *v } for _, value := range shape { - var col *types.Condition - if err := awsRestjson1_deserializeDocumentCondition(&col, value); err != nil { + var col types.Condition + destAddr := &col + if err := awsRestjson1_deserializeDocumentCondition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10189,7 +10211,7 @@ func awsRestjson1_deserializeDocumentListOfTags(v *[]*types.Condition, value int return nil } -func awsRestjson1_deserializeDocumentMetadata(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentMetadata(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10202,21 +10224,21 @@ func awsRestjson1_deserializeDocumentMetadata(v *map[string]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected MetadataValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -10253,7 +10275,7 @@ func awsRestjson1_deserializeDocumentMissingParameterValueException(v **types.Mi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Context": @@ -10262,7 +10284,7 @@ func awsRestjson1_deserializeDocumentMissingParameterValueException(v **types.Mi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Context = &jtv + sv.Context = ptr.String(jtv) } case "Message": @@ -10271,7 +10293,7 @@ func awsRestjson1_deserializeDocumentMissingParameterValueException(v **types.Mi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -10280,7 +10302,7 @@ func awsRestjson1_deserializeDocumentMissingParameterValueException(v **types.Mi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -10333,7 +10355,7 @@ func awsRestjson1_deserializeDocumentProtectedResource(v **types.ProtectedResour if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "ResourceType": @@ -10342,7 +10364,7 @@ func awsRestjson1_deserializeDocumentProtectedResource(v **types.ProtectedResour if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -10354,7 +10376,7 @@ func awsRestjson1_deserializeDocumentProtectedResource(v **types.ProtectedResour return nil } -func awsRestjson1_deserializeDocumentProtectedResourcesList(v *[]*types.ProtectedResource, value interface{}) error { +func awsRestjson1_deserializeDocumentProtectedResourcesList(v *[]types.ProtectedResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10367,18 +10389,20 @@ func awsRestjson1_deserializeDocumentProtectedResourcesList(v *[]*types.Protecte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProtectedResource + var cv []types.ProtectedResource if *v == nil { - cv = []*types.ProtectedResource{} + cv = []types.ProtectedResource{} } else { cv = *v } for _, value := range shape { - var col *types.ProtectedResource - if err := awsRestjson1_deserializeDocumentProtectedResource(&col, value); err != nil { + var col types.ProtectedResource + destAddr := &col + if err := awsRestjson1_deserializeDocumentProtectedResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10418,7 +10442,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByBackupVault(v **types.Recove if err != nil { return err } - sv.BackupSizeInBytes = &i64 + sv.BackupSizeInBytes = ptr.Int64(i64) } case "BackupVaultArn": @@ -10427,7 +10451,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByBackupVault(v **types.Recove if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupVaultArn = &jtv + sv.BackupVaultArn = ptr.String(jtv) } case "BackupVaultName": @@ -10436,7 +10460,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByBackupVault(v **types.Recove if !ok { return fmt.Errorf("expected BackupVaultName to be of type string, got %T instead", value) } - sv.BackupVaultName = &jtv + sv.BackupVaultName = ptr.String(jtv) } case "CalculatedLifecycle": @@ -10481,7 +10505,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByBackupVault(v **types.Recove if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.EncryptionKeyArn = &jtv + sv.EncryptionKeyArn = ptr.String(jtv) } case "IamRoleArn": @@ -10490,7 +10514,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByBackupVault(v **types.Recove if !ok { return fmt.Errorf("expected IAMRoleArn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "IsEncrypted": @@ -10499,7 +10523,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByBackupVault(v **types.Recove if !ok { return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) } - sv.IsEncrypted = &jtv + sv.IsEncrypted = jtv } case "LastRestoreTime": @@ -10526,7 +10550,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByBackupVault(v **types.Recove if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RecoveryPointArn = &jtv + sv.RecoveryPointArn = ptr.String(jtv) } case "ResourceArn": @@ -10535,7 +10559,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByBackupVault(v **types.Recove if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "ResourceType": @@ -10544,7 +10568,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByBackupVault(v **types.Recove if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "Status": @@ -10565,7 +10589,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByBackupVault(v **types.Recove return nil } -func awsRestjson1_deserializeDocumentRecoveryPointByBackupVaultList(v *[]*types.RecoveryPointByBackupVault, value interface{}) error { +func awsRestjson1_deserializeDocumentRecoveryPointByBackupVaultList(v *[]types.RecoveryPointByBackupVault, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10578,18 +10602,20 @@ func awsRestjson1_deserializeDocumentRecoveryPointByBackupVaultList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecoveryPointByBackupVault + var cv []types.RecoveryPointByBackupVault if *v == nil { - cv = []*types.RecoveryPointByBackupVault{} + cv = []types.RecoveryPointByBackupVault{} } else { cv = *v } for _, value := range shape { - var col *types.RecoveryPointByBackupVault - if err := awsRestjson1_deserializeDocumentRecoveryPointByBackupVault(&col, value); err != nil { + var col types.RecoveryPointByBackupVault + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecoveryPointByBackupVault(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10629,7 +10655,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByResource(v **types.RecoveryP if err != nil { return err } - sv.BackupSizeBytes = &i64 + sv.BackupSizeBytes = ptr.Int64(i64) } case "BackupVaultName": @@ -10638,7 +10664,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByResource(v **types.RecoveryP if !ok { return fmt.Errorf("expected BackupVaultName to be of type string, got %T instead", value) } - sv.BackupVaultName = &jtv + sv.BackupVaultName = ptr.String(jtv) } case "CreationDate": @@ -10660,7 +10686,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByResource(v **types.RecoveryP if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.EncryptionKeyArn = &jtv + sv.EncryptionKeyArn = ptr.String(jtv) } case "RecoveryPointArn": @@ -10669,7 +10695,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByResource(v **types.RecoveryP if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RecoveryPointArn = &jtv + sv.RecoveryPointArn = ptr.String(jtv) } case "Status": @@ -10690,7 +10716,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointByResource(v **types.RecoveryP return nil } -func awsRestjson1_deserializeDocumentRecoveryPointByResourceList(v *[]*types.RecoveryPointByResource, value interface{}) error { +func awsRestjson1_deserializeDocumentRecoveryPointByResourceList(v *[]types.RecoveryPointByResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10703,18 +10729,20 @@ func awsRestjson1_deserializeDocumentRecoveryPointByResourceList(v *[]*types.Rec return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecoveryPointByResource + var cv []types.RecoveryPointByResource if *v == nil { - cv = []*types.RecoveryPointByResource{} + cv = []types.RecoveryPointByResource{} } else { cv = *v } for _, value := range shape { - var col *types.RecoveryPointByResource - if err := awsRestjson1_deserializeDocumentRecoveryPointByResource(&col, value); err != nil { + var col types.RecoveryPointByResource + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecoveryPointByResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10750,7 +10778,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointCreator(v **types.RecoveryPoin if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.BackupPlanArn = &jtv + sv.BackupPlanArn = ptr.String(jtv) } case "BackupPlanId": @@ -10759,7 +10787,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointCreator(v **types.RecoveryPoin if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupPlanId = &jtv + sv.BackupPlanId = ptr.String(jtv) } case "BackupPlanVersion": @@ -10768,7 +10796,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointCreator(v **types.RecoveryPoin if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupPlanVersion = &jtv + sv.BackupPlanVersion = ptr.String(jtv) } case "BackupRuleId": @@ -10777,7 +10805,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointCreator(v **types.RecoveryPoin if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BackupRuleId = &jtv + sv.BackupRuleId = ptr.String(jtv) } default: @@ -10789,7 +10817,7 @@ func awsRestjson1_deserializeDocumentRecoveryPointCreator(v **types.RecoveryPoin return nil } -func awsRestjson1_deserializeDocumentResourceArns(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10802,21 +10830,21 @@ func awsRestjson1_deserializeDocumentResourceArns(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -10853,7 +10881,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Context": @@ -10862,7 +10890,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Context = &jtv + sv.Context = ptr.String(jtv) } case "Message": @@ -10871,7 +10899,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -10880,7 +10908,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -10892,7 +10920,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentResourceTypeOptInPreference(v *map[string]*bool, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceTypeOptInPreference(v *map[string]bool, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10905,21 +10933,21 @@ func awsRestjson1_deserializeDocumentResourceTypeOptInPreference(v *map[string]* return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*bool + var mv map[string]bool if *v == nil { - mv = map[string]*bool{} + mv = map[string]bool{} } else { mv = *v } for key, value := range shape { - var parsedVal *bool + var parsedVal bool if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected IsEnabled to be of type *bool, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -10928,7 +10956,7 @@ func awsRestjson1_deserializeDocumentResourceTypeOptInPreference(v *map[string]* return nil } -func awsRestjson1_deserializeDocumentResourceTypes(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceTypes(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10941,21 +10969,21 @@ func awsRestjson1_deserializeDocumentResourceTypes(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10964,7 +10992,7 @@ func awsRestjson1_deserializeDocumentResourceTypes(v *[]*string, value interface return nil } -func awsRestjson1_deserializeDocumentRestoreJobsList(v *[]*types.RestoreJobsListMember, value interface{}) error { +func awsRestjson1_deserializeDocumentRestoreJobsList(v *[]types.RestoreJobsListMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10977,18 +11005,20 @@ func awsRestjson1_deserializeDocumentRestoreJobsList(v *[]*types.RestoreJobsList return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RestoreJobsListMember + var cv []types.RestoreJobsListMember if *v == nil { - cv = []*types.RestoreJobsListMember{} + cv = []types.RestoreJobsListMember{} } else { cv = *v } for _, value := range shape { - var col *types.RestoreJobsListMember - if err := awsRestjson1_deserializeDocumentRestoreJobsListMember(&col, value); err != nil { + var col types.RestoreJobsListMember + destAddr := &col + if err := awsRestjson1_deserializeDocumentRestoreJobsListMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11024,7 +11054,7 @@ func awsRestjson1_deserializeDocumentRestoreJobsListMember(v **types.RestoreJobs if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "BackupSizeInBytes": @@ -11037,7 +11067,7 @@ func awsRestjson1_deserializeDocumentRestoreJobsListMember(v **types.RestoreJobs if err != nil { return err } - sv.BackupSizeInBytes = &i64 + sv.BackupSizeInBytes = ptr.Int64(i64) } case "CompletionDate": @@ -11059,7 +11089,7 @@ func awsRestjson1_deserializeDocumentRestoreJobsListMember(v **types.RestoreJobs if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.CreatedResourceArn = &jtv + sv.CreatedResourceArn = ptr.String(jtv) } case "CreationDate": @@ -11085,7 +11115,7 @@ func awsRestjson1_deserializeDocumentRestoreJobsListMember(v **types.RestoreJobs if err != nil { return err } - sv.ExpectedCompletionTimeMinutes = &i64 + sv.ExpectedCompletionTimeMinutes = ptr.Int64(i64) } case "IamRoleArn": @@ -11094,7 +11124,7 @@ func awsRestjson1_deserializeDocumentRestoreJobsListMember(v **types.RestoreJobs if !ok { return fmt.Errorf("expected IAMRoleArn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "PercentDone": @@ -11103,7 +11133,7 @@ func awsRestjson1_deserializeDocumentRestoreJobsListMember(v **types.RestoreJobs if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.PercentDone = &jtv + sv.PercentDone = ptr.String(jtv) } case "RecoveryPointArn": @@ -11112,7 +11142,7 @@ func awsRestjson1_deserializeDocumentRestoreJobsListMember(v **types.RestoreJobs if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RecoveryPointArn = &jtv + sv.RecoveryPointArn = ptr.String(jtv) } case "ResourceType": @@ -11121,7 +11151,7 @@ func awsRestjson1_deserializeDocumentRestoreJobsListMember(v **types.RestoreJobs if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "RestoreJobId": @@ -11130,7 +11160,7 @@ func awsRestjson1_deserializeDocumentRestoreJobsListMember(v **types.RestoreJobs if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.RestoreJobId = &jtv + sv.RestoreJobId = ptr.String(jtv) } case "Status": @@ -11148,7 +11178,7 @@ func awsRestjson1_deserializeDocumentRestoreJobsListMember(v **types.RestoreJobs if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } default: @@ -11188,7 +11218,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Context": @@ -11197,7 +11227,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Context = &jtv + sv.Context = ptr.String(jtv) } case "Message": @@ -11206,7 +11236,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -11215,7 +11245,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11227,7 +11257,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi return nil } -func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11240,21 +11270,21 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal diff --git a/service/backup/go.mod b/service/backup/go.mod index fe90ded5beb..56db7c042dd 100644 --- a/service/backup/go.mod +++ b/service/backup/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/backup go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/backup/serializers.go b/service/backup/serializers.go index 093e630bca9..67b7e7b1e8f 100644 --- a/service/backup/serializers.go +++ b/service/backup/serializers.go @@ -164,13 +164,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateBackupSelectionInput(v *CreateBac return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupPlanId == nil { + if v.BackupPlanId == nil || len(*v.BackupPlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} } if v.BackupPlanId != nil { - if len(*v.BackupPlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} - } if err := encoder.SetURI("BackupPlanId").String(*v.BackupPlanId); err != nil { return err } @@ -260,13 +257,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateBackupVaultInput(v *CreateBackupV return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } @@ -350,13 +344,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBackupPlanInput(v *DeleteBackupPl return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupPlanId == nil { + if v.BackupPlanId == nil || len(*v.BackupPlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} } if v.BackupPlanId != nil { - if len(*v.BackupPlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} - } if err := encoder.SetURI("BackupPlanId").String(*v.BackupPlanId); err != nil { return err } @@ -416,25 +407,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBackupSelectionInput(v *DeleteBac return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupPlanId == nil { + if v.BackupPlanId == nil || len(*v.BackupPlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} } if v.BackupPlanId != nil { - if len(*v.BackupPlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} - } if err := encoder.SetURI("BackupPlanId").String(*v.BackupPlanId); err != nil { return err } } - if v.SelectionId == nil { + if v.SelectionId == nil || len(*v.SelectionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SelectionId must not be empty")} } if v.SelectionId != nil { - if len(*v.SelectionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SelectionId must not be empty")} - } if err := encoder.SetURI("SelectionId").String(*v.SelectionId); err != nil { return err } @@ -494,13 +479,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBackupVaultInput(v *DeleteBackupV return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } @@ -560,13 +542,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBackupVaultAccessPolicyInput(v *D return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } @@ -626,13 +605,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBackupVaultNotificationsInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } @@ -692,25 +668,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRecoveryPointInput(v *DeleteRecov return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } } - if v.RecoveryPointArn == nil { + if v.RecoveryPointArn == nil || len(*v.RecoveryPointArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryPointArn must not be empty")} } if v.RecoveryPointArn != nil { - if len(*v.RecoveryPointArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryPointArn must not be empty")} - } if err := encoder.SetURI("RecoveryPointArn").String(*v.RecoveryPointArn); err != nil { return err } @@ -770,13 +740,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeBackupJobInput(v *DescribeBacku return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupJobId == nil { + if v.BackupJobId == nil || len(*v.BackupJobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupJobId must not be empty")} } if v.BackupJobId != nil { - if len(*v.BackupJobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupJobId must not be empty")} - } if err := encoder.SetURI("BackupJobId").String(*v.BackupJobId); err != nil { return err } @@ -836,13 +803,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeBackupVaultInput(v *DescribeBac return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } @@ -902,13 +866,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeCopyJobInput(v *DescribeCopyJob return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CopyJobId == nil { + if v.CopyJobId == nil || len(*v.CopyJobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CopyJobId must not be empty")} } if v.CopyJobId != nil { - if len(*v.CopyJobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CopyJobId must not be empty")} - } if err := encoder.SetURI("CopyJobId").String(*v.CopyJobId); err != nil { return err } @@ -968,13 +929,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeProtectedResourceInput(v *Descr return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1034,25 +992,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeRecoveryPointInput(v *DescribeR return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } } - if v.RecoveryPointArn == nil { + if v.RecoveryPointArn == nil || len(*v.RecoveryPointArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryPointArn must not be empty")} } if v.RecoveryPointArn != nil { - if len(*v.RecoveryPointArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryPointArn must not be empty")} - } if err := encoder.SetURI("RecoveryPointArn").String(*v.RecoveryPointArn); err != nil { return err } @@ -1162,13 +1114,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeRestoreJobInput(v *DescribeRest return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RestoreJobId == nil { + if v.RestoreJobId == nil || len(*v.RestoreJobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RestoreJobId must not be empty")} } if v.RestoreJobId != nil { - if len(*v.RestoreJobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RestoreJobId must not be empty")} - } if err := encoder.SetURI("RestoreJobId").String(*v.RestoreJobId); err != nil { return err } @@ -1228,13 +1177,10 @@ func awsRestjson1_serializeOpHttpBindingsExportBackupPlanTemplateInput(v *Export return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupPlanId == nil { + if v.BackupPlanId == nil || len(*v.BackupPlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} } if v.BackupPlanId != nil { - if len(*v.BackupPlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} - } if err := encoder.SetURI("BackupPlanId").String(*v.BackupPlanId); err != nil { return err } @@ -1294,13 +1240,10 @@ func awsRestjson1_serializeOpHttpBindingsGetBackupPlanInput(v *GetBackupPlanInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupPlanId == nil { + if v.BackupPlanId == nil || len(*v.BackupPlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} } if v.BackupPlanId != nil { - if len(*v.BackupPlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} - } if err := encoder.SetURI("BackupPlanId").String(*v.BackupPlanId); err != nil { return err } @@ -1437,13 +1380,10 @@ func awsRestjson1_serializeOpHttpBindingsGetBackupPlanFromTemplateInput(v *GetBa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupPlanTemplateId == nil { + if v.BackupPlanTemplateId == nil || len(*v.BackupPlanTemplateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanTemplateId must not be empty")} } if v.BackupPlanTemplateId != nil { - if len(*v.BackupPlanTemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanTemplateId must not be empty")} - } if err := encoder.SetURI("BackupPlanTemplateId").String(*v.BackupPlanTemplateId); err != nil { return err } @@ -1503,25 +1443,19 @@ func awsRestjson1_serializeOpHttpBindingsGetBackupSelectionInput(v *GetBackupSel return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupPlanId == nil { + if v.BackupPlanId == nil || len(*v.BackupPlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} } if v.BackupPlanId != nil { - if len(*v.BackupPlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} - } if err := encoder.SetURI("BackupPlanId").String(*v.BackupPlanId); err != nil { return err } } - if v.SelectionId == nil { + if v.SelectionId == nil || len(*v.SelectionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SelectionId must not be empty")} } if v.SelectionId != nil { - if len(*v.SelectionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SelectionId must not be empty")} - } if err := encoder.SetURI("SelectionId").String(*v.SelectionId); err != nil { return err } @@ -1581,13 +1515,10 @@ func awsRestjson1_serializeOpHttpBindingsGetBackupVaultAccessPolicyInput(v *GetB return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } @@ -1647,13 +1578,10 @@ func awsRestjson1_serializeOpHttpBindingsGetBackupVaultNotificationsInput(v *Get return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } @@ -1713,25 +1641,19 @@ func awsRestjson1_serializeOpHttpBindingsGetRecoveryPointRestoreMetadataInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } } - if v.RecoveryPointArn == nil { + if v.RecoveryPointArn == nil || len(*v.RecoveryPointArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryPointArn must not be empty")} } if v.RecoveryPointArn != nil { - if len(*v.RecoveryPointArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryPointArn must not be empty")} - } if err := encoder.SetURI("RecoveryPointArn").String(*v.RecoveryPointArn); err != nil { return err } @@ -2059,13 +1981,10 @@ func awsRestjson1_serializeOpHttpBindingsListBackupPlanVersionsInput(v *ListBack return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupPlanId == nil { + if v.BackupPlanId == nil || len(*v.BackupPlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} } if v.BackupPlanId != nil { - if len(*v.BackupPlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} - } if err := encoder.SetURI("BackupPlanId").String(*v.BackupPlanId); err != nil { return err } @@ -2133,13 +2052,10 @@ func awsRestjson1_serializeOpHttpBindingsListBackupSelectionsInput(v *ListBackup return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupPlanId == nil { + if v.BackupPlanId == nil || len(*v.BackupPlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} } if v.BackupPlanId != nil { - if len(*v.BackupPlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} - } if err := encoder.SetURI("BackupPlanId").String(*v.BackupPlanId); err != nil { return err } @@ -2421,13 +2337,10 @@ func awsRestjson1_serializeOpHttpBindingsListRecoveryPointsByBackupVaultInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } @@ -2523,13 +2436,10 @@ func awsRestjson1_serializeOpHttpBindingsListRecoveryPointsByResourceInput(v *Li encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2675,13 +2585,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsInput(v *ListTagsInput, encoder encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2752,13 +2659,10 @@ func awsRestjson1_serializeOpHttpBindingsPutBackupVaultAccessPolicyInput(v *PutB return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } @@ -2841,13 +2745,10 @@ func awsRestjson1_serializeOpHttpBindingsPutBackupVaultNotificationsInput(v *Put return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } @@ -3240,13 +3141,10 @@ func awsRestjson1_serializeOpHttpBindingsStopBackupJobInput(v *StopBackupJobInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupJobId == nil { + if v.BackupJobId == nil || len(*v.BackupJobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupJobId must not be empty")} } if v.BackupJobId != nil { - if len(*v.BackupJobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupJobId must not be empty")} - } if err := encoder.SetURI("BackupJobId").String(*v.BackupJobId); err != nil { return err } @@ -3317,13 +3215,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3408,13 +3303,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3499,13 +3391,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateBackupPlanInput(v *UpdateBackupPl return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupPlanId == nil { + if v.BackupPlanId == nil || len(*v.BackupPlanId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} } if v.BackupPlanId != nil { - if len(*v.BackupPlanId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupPlanId must not be empty")} - } if err := encoder.SetURI("BackupPlanId").String(*v.BackupPlanId); err != nil { return err } @@ -3590,25 +3479,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRecoveryPointLifecycleInput(v *Up return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BackupVaultName == nil { + if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} } if v.BackupVaultName != nil { - if len(*v.BackupVaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")} - } if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil { return err } } - if v.RecoveryPointArn == nil { + if v.RecoveryPointArn == nil || len(*v.RecoveryPointArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryPointArn must not be empty")} } if v.RecoveryPointArn != nil { - if len(*v.RecoveryPointArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RecoveryPointArn must not be empty")} - } if err := encoder.SetURI("RecoveryPointArn").String(*v.RecoveryPointArn); err != nil { return err } @@ -3725,34 +3608,26 @@ func awsRestjson1_serializeDocumentAdvancedBackupSetting(v *types.AdvancedBackup return nil } -func awsRestjson1_serializeDocumentAdvancedBackupSettings(v []*types.AdvancedBackupSetting, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAdvancedBackupSettings(v []types.AdvancedBackupSetting, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAdvancedBackupSetting(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAdvancedBackupSetting(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentBackupOptions(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBackupOptions(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3836,17 +3711,13 @@ func awsRestjson1_serializeDocumentBackupRuleInput(v *types.BackupRuleInput, val return nil } -func awsRestjson1_serializeDocumentBackupRulesInput(v []*types.BackupRuleInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBackupRulesInput(v []types.BackupRuleInput, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentBackupRuleInput(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentBackupRuleInput(&v[i], av); err != nil { return err } } @@ -3936,17 +3807,13 @@ func awsRestjson1_serializeDocumentCopyAction(v *types.CopyAction, value smithyj return nil } -func awsRestjson1_serializeDocumentCopyActions(v []*types.CopyAction, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCopyActions(v []types.CopyAction, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCopyAction(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCopyAction(&v[i], av); err != nil { return err } } @@ -3970,94 +3837,70 @@ func awsRestjson1_serializeDocumentLifecycle(v *types.Lifecycle, value smithyjso return nil } -func awsRestjson1_serializeDocumentListOfTags(v []*types.Condition, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfTags(v []types.Condition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCondition(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCondition(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentMetadata(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMetadata(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentResourceArns(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourceArns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentResourceTypeOptInPreference(v map[string]*bool, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourceTypeOptInPreference(v map[string]bool, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.Boolean(*v[key]) + om.Boolean(v[key]) } return nil } -func awsRestjson1_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/backup/types/types.go b/service/backup/types/types.go index 8c1a599694b..bf50fad0574 100644 --- a/service/backup/types/types.go +++ b/service/backup/types/types.go @@ -17,7 +17,7 @@ type AdvancedBackupSetting struct { // you get an InvalidParameterValueException exception. For more information about // Windows VSS backups, see Creating a VSS-Enabled Windows Backup // (https://docs.aws.amazon.com/aws-backup/latest/devguide/windows-backups.html). - BackupOptions map[string]*string + BackupOptions map[string]string // The type of AWS resource to be backed up. For VSS Windows backups, the only // supported resource type is Amazon EC2. Valid values: EC2. @@ -39,7 +39,7 @@ type BackupJob struct { // Windows backup. Set to “WindowsVSS”:”disabled” to create a regular backup. If // you specify an invalid option, you get an InvalidParameterValueException // exception. - BackupOptions map[string]*string + BackupOptions map[string]string // The size, in bytes, of a backup. BackupSizeInBytes *int64 @@ -136,10 +136,10 @@ type BackupPlan struct { // used to back up a selection of resources. // // This member is required. - Rules []*BackupRule + Rules []BackupRule // Contains a list of BackupOptions for each resource type. - AdvancedBackupSettings []*AdvancedBackupSetting + AdvancedBackupSettings []AdvancedBackupSetting } // Contains an optional backup plan display name and an array of BackupRule @@ -156,18 +156,18 @@ type BackupPlanInput struct { // used to back up a selection of resources. // // This member is required. - Rules []*BackupRuleInput + Rules []BackupRuleInput // Specifies a list of BackupOptions for each resource type. These settings are // only available for Windows VSS backup jobs. - AdvancedBackupSettings []*AdvancedBackupSetting + AdvancedBackupSettings []AdvancedBackupSetting } // Contains metadata about a backup plan. type BackupPlansListMember struct { // Contains a list of BackupOptions for a resource type. - AdvancedBackupSettings []*AdvancedBackupSetting + AdvancedBackupSettings []AdvancedBackupSetting // An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for // example, @@ -239,7 +239,7 @@ type BackupRule struct { // An array of CopyAction objects, which contains the details of the copy // operation. - CopyActions []*CopyAction + CopyActions []CopyAction // The lifecycle defines when a protected resource is transitioned to cold storage // and when it expires. AWS Backup transitions and expires backups automatically @@ -252,7 +252,7 @@ type BackupRule struct { // An array of key-value pair strings that are assigned to resources that are // associated with this rule when restored from backup. - RecoveryPointTags map[string]*string + RecoveryPointTags map[string]string // Uniquely identifies a rule that is used to schedule the backup of a selection of // resources. @@ -293,7 +293,7 @@ type BackupRuleInput struct { // An array of CopyAction objects, which contains the details of the copy // operation. - CopyActions []*CopyAction + CopyActions []CopyAction // The lifecycle defines when a protected resource is transitioned to cold storage // and when it expires. AWS Backup will transition and expire backups automatically @@ -306,7 +306,7 @@ type BackupRuleInput struct { // To help organize your resources, you can assign your own metadata to the // resources that you create. Each tag is a key-value pair. - RecoveryPointTags map[string]*string + RecoveryPointTags map[string]string // A CRON expression specifying when AWS Backup initiates a backup job. ScheduleExpression *string @@ -332,11 +332,11 @@ type BackupSelection struct { // An array of conditions used to specify a set of resources to assign to a backup // plan; for example, "StringEquals": {"ec2:ResourceTag/Department": "accounting". - ListOfTags []*Condition + ListOfTags []Condition // An array of strings that contain Amazon Resource Names (ARNs) of resources to // assign to a backup plan. - Resources []*string + Resources []string } // Contains metadata about a BackupSelection object. @@ -395,7 +395,7 @@ type BackupVaultListMember struct { EncryptionKeyArn *string // The number of recovery points that are stored in a backup vault. - NumberOfRecoveryPoints *int64 + NumberOfRecoveryPoints int64 } // Contains DeleteAt and MoveToColdStorageAt timestamps, which are used to specify @@ -611,7 +611,7 @@ type RecoveryPointByBackupVault struct { // A Boolean value that is returned as TRUE if the specified recovery point is // encrypted, or FALSE if the recovery point is not encrypted. - IsEncrypted *bool + IsEncrypted bool // The date and time a recovery point was last restored, in Unix format and // Coordinated Universal Time (UTC). The value of LastRestoreTime is accurate to diff --git a/service/backup/validators.go b/service/backup/validators.go index 7010e692c1f..aa3b3adacb0 100644 --- a/service/backup/validators.go +++ b/service/backup/validators.go @@ -967,13 +967,13 @@ func validateBackupRuleInput(v *types.BackupRuleInput) error { } } -func validateBackupRulesInput(v []*types.BackupRuleInput) error { +func validateBackupRulesInput(v []types.BackupRuleInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BackupRulesInput"} for i := range v { - if err := validateBackupRuleInput(v[i]); err != nil { + if err := validateBackupRuleInput(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1043,13 +1043,13 @@ func validateCopyAction(v *types.CopyAction) error { } } -func validateCopyActions(v []*types.CopyAction) error { +func validateCopyActions(v []types.CopyAction) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CopyActions"} for i := range v { - if err := validateCopyAction(v[i]); err != nil { + if err := validateCopyAction(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1060,13 +1060,13 @@ func validateCopyActions(v []*types.CopyAction) error { } } -func validateListOfTags(v []*types.Condition) error { +func validateListOfTags(v []types.Condition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfTags"} for i := range v { - if err := validateCondition(v[i]); err != nil { + if err := validateCondition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/batch/api_op_CreateComputeEnvironment.go b/service/batch/api_op_CreateComputeEnvironment.go index 6cbaeb0aee6..ed1a4fa6f0c 100644 --- a/service/batch/api_op_CreateComputeEnvironment.go +++ b/service/batch/api_op_CreateComputeEnvironment.go @@ -115,7 +115,7 @@ type CreateComputeEnvironmentInput struct { // UntagResource // (https://docs.aws.amazon.com/batch/latest/APIReference/API_UntagResource.html) // API operations. These tags do not propagate to the underlying compute resources. - Tags map[string]*string + Tags map[string]string } type CreateComputeEnvironmentOutput struct { diff --git a/service/batch/api_op_CreateJobQueue.go b/service/batch/api_op_CreateJobQueue.go index b34d7c2b28c..684e7c82093 100644 --- a/service/batch/api_op_CreateJobQueue.go +++ b/service/batch/api_op_CreateJobQueue.go @@ -42,7 +42,7 @@ type CreateJobQueueInput struct { // to three compute environments with a job queue. // // This member is required. - ComputeEnvironmentOrder []*types.ComputeEnvironmentOrder + ComputeEnvironmentOrder []types.ComputeEnvironmentOrder // The name of the job queue. // @@ -56,7 +56,7 @@ type CreateJobQueueInput struct { // preference over a job queue with a priority value of 1. // // This member is required. - Priority *int32 + Priority int32 // The state of the job queue. If the job queue state is ENABLED, it is able to // accept jobs. If the job queue state is DISABLED, new jobs cannot be added to the @@ -68,7 +68,7 @@ type CreateJobQueueInput struct { // information, see Tagging AWS Resources // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in AWS General // Reference. - Tags map[string]*string + Tags map[string]string } type CreateJobQueueOutput struct { diff --git a/service/batch/api_op_DescribeComputeEnvironments.go b/service/batch/api_op_DescribeComputeEnvironments.go index d08be2955e1..f2d514b7017 100644 --- a/service/batch/api_op_DescribeComputeEnvironments.go +++ b/service/batch/api_op_DescribeComputeEnvironments.go @@ -34,7 +34,7 @@ type DescribeComputeEnvironmentsInput struct { // A list of up to 100 compute environment names or full Amazon Resource Name (ARN) // entries. - ComputeEnvironments []*string + ComputeEnvironments []string // The maximum number of cluster results returned by DescribeComputeEnvironments in // paginated output. When this parameter is used, DescribeComputeEnvironments only @@ -44,7 +44,7 @@ type DescribeComputeEnvironmentsInput struct { // This value can be between 1 and 100. If this parameter is not used, then // DescribeComputeEnvironments returns up to 100 results and a nextToken value if // applicable. - MaxResults *int32 + MaxResults int32 // The nextToken value returned from a previous paginated // DescribeComputeEnvironments request where maxResults was used and the results @@ -59,7 +59,7 @@ type DescribeComputeEnvironmentsInput struct { type DescribeComputeEnvironmentsOutput struct { // The list of compute environments. - ComputeEnvironments []*types.ComputeEnvironmentDetail + ComputeEnvironments []types.ComputeEnvironmentDetail // The nextToken value to include in a future DescribeComputeEnvironments request. // When the results of a DescribeJobDefinitions request exceed maxResults, this diff --git a/service/batch/api_op_DescribeJobDefinitions.go b/service/batch/api_op_DescribeJobDefinitions.go index 5220e490f32..f44257e4dde 100644 --- a/service/batch/api_op_DescribeJobDefinitions.go +++ b/service/batch/api_op_DescribeJobDefinitions.go @@ -35,7 +35,7 @@ type DescribeJobDefinitionsInput struct { // A list of up to 100 job definition names or full Amazon Resource Name (ARN) // entries. - JobDefinitions []*string + JobDefinitions []string // The maximum number of results returned by DescribeJobDefinitions in paginated // output. When this parameter is used, DescribeJobDefinitions only returns @@ -44,7 +44,7 @@ type DescribeJobDefinitionsInput struct { // DescribeJobDefinitions request with the returned nextToken value. This value can // be between 1 and 100. If this parameter is not used, then DescribeJobDefinitions // returns up to 100 results and a nextToken value if applicable. - MaxResults *int32 + MaxResults int32 // The nextToken value returned from a previous paginated DescribeJobDefinitions // request where maxResults was used and the results exceeded the value of that @@ -62,7 +62,7 @@ type DescribeJobDefinitionsInput struct { type DescribeJobDefinitionsOutput struct { // The list of job definitions. - JobDefinitions []*types.JobDefinition + JobDefinitions []types.JobDefinition // The nextToken value to include in a future DescribeJobDefinitions request. When // the results of a DescribeJobDefinitions request exceed maxResults, this value diff --git a/service/batch/api_op_DescribeJobQueues.go b/service/batch/api_op_DescribeJobQueues.go index 4cd3b1d8e39..214bd19ca7b 100644 --- a/service/batch/api_op_DescribeJobQueues.go +++ b/service/batch/api_op_DescribeJobQueues.go @@ -31,7 +31,7 @@ type DescribeJobQueuesInput struct { // A list of up to 100 queue names or full queue Amazon Resource Name (ARN) // entries. - JobQueues []*string + JobQueues []string // The maximum number of results returned by DescribeJobQueues in paginated output. // When this parameter is used, DescribeJobQueues only returns maxResults results @@ -40,7 +40,7 @@ type DescribeJobQueuesInput struct { // with the returned nextToken value. This value can be between 1 and 100. If this // parameter is not used, then DescribeJobQueues returns up to 100 results and a // nextToken value if applicable. - MaxResults *int32 + MaxResults int32 // The nextToken value returned from a previous paginated DescribeJobQueues request // where maxResults was used and the results exceeded the value of that parameter. @@ -54,7 +54,7 @@ type DescribeJobQueuesInput struct { type DescribeJobQueuesOutput struct { // The list of job queues. - JobQueues []*types.JobQueueDetail + JobQueues []types.JobQueueDetail // The nextToken value to include in a future DescribeJobQueues request. When the // results of a DescribeJobQueues request exceed maxResults, this value can be used diff --git a/service/batch/api_op_DescribeJobs.go b/service/batch/api_op_DescribeJobs.go index 8ecdc3024fe..d1aeaa8e956 100644 --- a/service/batch/api_op_DescribeJobs.go +++ b/service/batch/api_op_DescribeJobs.go @@ -32,13 +32,13 @@ type DescribeJobsInput struct { // A list of up to 100 job IDs. // // This member is required. - Jobs []*string + Jobs []string } type DescribeJobsOutput struct { // The list of jobs. - Jobs []*types.JobDetail + Jobs []types.JobDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/batch/api_op_ListJobs.go b/service/batch/api_op_ListJobs.go index 6d531908b5e..cd01a8f4adf 100644 --- a/service/batch/api_op_ListJobs.go +++ b/service/batch/api_op_ListJobs.go @@ -61,7 +61,7 @@ type ListJobsInput struct { // returned nextToken value. This value can be between 1 and 100. If this parameter // is not used, then ListJobs returns up to 100 results and a nextToken value if // applicable. - MaxResults *int32 + MaxResults int32 // The job ID for a multi-node parallel job. Specifying a multi-node parallel job // ID with this parameter lists all nodes that are associated with the specified @@ -82,7 +82,7 @@ type ListJobsOutput struct { // A list of job summaries that match the request. // // This member is required. - JobSummaryList []*types.JobSummary + JobSummaryList []types.JobSummary // The nextToken value to include in a future ListJobs request. When the results of // a ListJobs request exceed maxResults, this value can be used to retrieve the diff --git a/service/batch/api_op_ListTagsForResource.go b/service/batch/api_op_ListTagsForResource.go index a61652351cc..4ccab598471 100644 --- a/service/batch/api_op_ListTagsForResource.go +++ b/service/batch/api_op_ListTagsForResource.go @@ -42,7 +42,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags for the resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/batch/api_op_RegisterJobDefinition.go b/service/batch/api_op_RegisterJobDefinition.go index 247c959cdf0..3877dd01f56 100644 --- a/service/batch/api_op_RegisterJobDefinition.go +++ b/service/batch/api_op_RegisterJobDefinition.go @@ -56,7 +56,7 @@ type RegisterJobDefinitionInput struct { // Default parameter substitution placeholders to set in the job definition. // Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob // request override any corresponding parameter defaults from the job definition. - Parameters map[string]*string + Parameters map[string]string // The retry strategy to use for failed jobs that are submitted with this job // definition. Any retry strategy that is specified during a SubmitJob operation @@ -69,7 +69,7 @@ type RegisterJobDefinitionInput struct { // more information, see Tagging AWS Resources // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in AWS General // Reference. - Tags map[string]*string + Tags map[string]string // The timeout configuration for jobs that are submitted with this job definition, // after which AWS Batch terminates your jobs if they have not finished. If a job @@ -97,7 +97,7 @@ type RegisterJobDefinitionOutput struct { // The revision of the job definition. // // This member is required. - Revision *int32 + Revision int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/batch/api_op_SubmitJob.go b/service/batch/api_op_SubmitJob.go index 1c4015c32fb..2c0d370f305 100644 --- a/service/batch/api_op_SubmitJob.go +++ b/service/batch/api_op_SubmitJob.go @@ -72,7 +72,7 @@ type SubmitJobInput struct { // index 0. You can also specify an N_TO_N type dependency with a job ID for array // jobs. In that case, each index child of this job must wait for the corresponding // index child of each dependency to complete before it can begin. - DependsOn []*types.JobDependency + DependsOn []types.JobDependency // A list of node overrides in JSON format that specify the node range to target // and the container overrides for that node range. @@ -82,7 +82,7 @@ type SubmitJobInput struct { // placeholders that are set in the job definition. Parameters are specified as a // key and value pair mapping. Parameters in a SubmitJob request override any // corresponding parameter defaults from the job definition. - Parameters map[string]*string + Parameters map[string]string // The retry strategy to use for failed jobs from this SubmitJob operation. When a // retry strategy is specified here, it overrides the retry strategy defined in the @@ -94,7 +94,7 @@ type SubmitJobInput struct { // information, see Tagging AWS Resources // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in AWS General // Reference. - Tags map[string]*string + Tags map[string]string // The timeout configuration for this SubmitJob operation. You can specify a // timeout duration after which AWS Batch terminates your jobs if they have not diff --git a/service/batch/api_op_TagResource.go b/service/batch/api_op_TagResource.go index 5a944f95000..f66d333903e 100644 --- a/service/batch/api_op_TagResource.go +++ b/service/batch/api_op_TagResource.go @@ -48,7 +48,7 @@ type TagResourceInput struct { // Reference. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/batch/api_op_UntagResource.go b/service/batch/api_op_UntagResource.go index f8cedf3b9d0..9ff04bfcede 100644 --- a/service/batch/api_op_UntagResource.go +++ b/service/batch/api_op_UntagResource.go @@ -39,7 +39,7 @@ type UntagResourceInput struct { // The keys of the tags to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/batch/api_op_UpdateJobQueue.go b/service/batch/api_op_UpdateJobQueue.go index c5980015215..2776e8b33ce 100644 --- a/service/batch/api_op_UpdateJobQueue.go +++ b/service/batch/api_op_UpdateJobQueue.go @@ -37,14 +37,14 @@ type UpdateJobQueueInput struct { // Details the set of compute environments mapped to a job queue and their order // relative to each other. This is one of the parameters used by the job scheduler // to determine which compute environment should execute a given job. - ComputeEnvironmentOrder []*types.ComputeEnvironmentOrder + ComputeEnvironmentOrder []types.ComputeEnvironmentOrder // The priority of the job queue. Job queues with a higher priority (or a higher // integer value for the priority parameter) are evaluated first when associated // with the same compute environment. Priority is determined in descending order, // for example, a job queue with a priority value of 10 is given scheduling // preference over a job queue with a priority value of 1. - Priority *int32 + Priority int32 // Describes the queue's ability to accept new jobs. If the job queue state is // ENABLED, it is able to accept jobs. If the job queue state is DISABLED, new jobs diff --git a/service/batch/deserializers.go b/service/batch/deserializers.go index 0ff48d4e51b..feba6727924 100644 --- a/service/batch/deserializers.go +++ b/service/batch/deserializers.go @@ -246,7 +246,7 @@ func awsRestjson1_deserializeOpDocumentCreateComputeEnvironmentOutput(v **Create if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ComputeEnvironmentArn = &jtv + sv.ComputeEnvironmentArn = ptr.String(jtv) } case "computeEnvironmentName": @@ -255,7 +255,7 @@ func awsRestjson1_deserializeOpDocumentCreateComputeEnvironmentOutput(v **Create if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ComputeEnvironmentName = &jtv + sv.ComputeEnvironmentName = ptr.String(jtv) } default: @@ -409,7 +409,7 @@ func awsRestjson1_deserializeOpDocumentCreateJobQueueOutput(v **CreateJobQueueOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobQueueArn = &jtv + sv.JobQueueArn = ptr.String(jtv) } case "jobQueueName": @@ -418,7 +418,7 @@ func awsRestjson1_deserializeOpDocumentCreateJobQueueOutput(v **CreateJobQueueOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobQueueName = &jtv + sv.JobQueueName = ptr.String(jtv) } default: @@ -835,7 +835,7 @@ func awsRestjson1_deserializeOpDocumentDescribeComputeEnvironmentsOutput(v **Des if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -994,7 +994,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobDefinitionsOutput(v **Describe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1153,7 +1153,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobQueuesOutput(v **DescribeJobQu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1462,7 +1462,7 @@ func awsRestjson1_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1766,7 +1766,7 @@ func awsRestjson1_deserializeOpDocumentRegisterJobDefinitionOutput(v **RegisterJ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobDefinitionArn = &jtv + sv.JobDefinitionArn = ptr.String(jtv) } case "jobDefinitionName": @@ -1775,7 +1775,7 @@ func awsRestjson1_deserializeOpDocumentRegisterJobDefinitionOutput(v **RegisterJ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobDefinitionName = &jtv + sv.JobDefinitionName = ptr.String(jtv) } case "revision": @@ -1788,7 +1788,7 @@ func awsRestjson1_deserializeOpDocumentRegisterJobDefinitionOutput(v **RegisterJ if err != nil { return err } - sv.Revision = ptr.Int32(int32(i64)) + sv.Revision = int32(i64) } default: @@ -1942,7 +1942,7 @@ func awsRestjson1_deserializeOpDocumentSubmitJobOutput(v **SubmitJobOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobArn = &jtv + sv.JobArn = ptr.String(jtv) } case "jobId": @@ -1951,7 +1951,7 @@ func awsRestjson1_deserializeOpDocumentSubmitJobOutput(v **SubmitJobOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "jobName": @@ -1960,7 +1960,7 @@ func awsRestjson1_deserializeOpDocumentSubmitJobOutput(v **SubmitJobOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } default: @@ -2372,7 +2372,7 @@ func awsRestjson1_deserializeOpDocumentUpdateComputeEnvironmentOutput(v **Update if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ComputeEnvironmentArn = &jtv + sv.ComputeEnvironmentArn = ptr.String(jtv) } case "computeEnvironmentName": @@ -2381,7 +2381,7 @@ func awsRestjson1_deserializeOpDocumentUpdateComputeEnvironmentOutput(v **Update if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ComputeEnvironmentName = &jtv + sv.ComputeEnvironmentName = ptr.String(jtv) } default: @@ -2535,7 +2535,7 @@ func awsRestjson1_deserializeOpDocumentUpdateJobQueueOutput(v **UpdateJobQueueOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobQueueArn = &jtv + sv.JobQueueArn = ptr.String(jtv) } case "jobQueueName": @@ -2544,7 +2544,7 @@ func awsRestjson1_deserializeOpDocumentUpdateJobQueueOutput(v **UpdateJobQueueOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobQueueName = &jtv + sv.JobQueueName = ptr.String(jtv) } default: @@ -2628,7 +2628,7 @@ func awsRestjson1_deserializeErrorServerException(response *smithyhttp.Response, return output } -func awsRestjson1_deserializeDocumentArrayJobStatusSummary(v *map[string]*int32, value interface{}) error { +func awsRestjson1_deserializeDocumentArrayJobStatusSummary(v *map[string]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2641,15 +2641,15 @@ func awsRestjson1_deserializeDocumentArrayJobStatusSummary(v *map[string]*int32, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*int32 + var mv map[string]int32 if *v == nil { - mv = map[string]*int32{} + mv = map[string]int32{} } else { mv = *v } for key, value := range shape { - var parsedVal *int32 + var parsedVal int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -2659,7 +2659,7 @@ func awsRestjson1_deserializeDocumentArrayJobStatusSummary(v *map[string]*int32, if err != nil { return err } - parsedVal = ptr.Int32(int32(i64)) + parsedVal = int32(i64) } mv[key] = parsedVal @@ -2700,7 +2700,7 @@ func awsRestjson1_deserializeDocumentArrayPropertiesDetail(v **types.ArrayProper if err != nil { return err } - sv.Index = ptr.Int32(int32(i64)) + sv.Index = int32(i64) } case "size": @@ -2713,7 +2713,7 @@ func awsRestjson1_deserializeDocumentArrayPropertiesDetail(v **types.ArrayProper if err != nil { return err } - sv.Size = ptr.Int32(int32(i64)) + sv.Size = int32(i64) } case "statusSummary": @@ -2762,7 +2762,7 @@ func awsRestjson1_deserializeDocumentArrayPropertiesSummary(v **types.ArrayPrope if err != nil { return err } - sv.Index = ptr.Int32(int32(i64)) + sv.Index = int32(i64) } case "size": @@ -2775,7 +2775,7 @@ func awsRestjson1_deserializeDocumentArrayPropertiesSummary(v **types.ArrayPrope if err != nil { return err } - sv.Size = ptr.Int32(int32(i64)) + sv.Size = int32(i64) } default: @@ -2815,7 +2815,7 @@ func awsRestjson1_deserializeDocumentAttemptContainerDetail(v **types.AttemptCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerInstanceArn = &jtv + sv.ContainerInstanceArn = ptr.String(jtv) } case "exitCode": @@ -2828,7 +2828,7 @@ func awsRestjson1_deserializeDocumentAttemptContainerDetail(v **types.AttemptCon if err != nil { return err } - sv.ExitCode = ptr.Int32(int32(i64)) + sv.ExitCode = int32(i64) } case "logStreamName": @@ -2837,7 +2837,7 @@ func awsRestjson1_deserializeDocumentAttemptContainerDetail(v **types.AttemptCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LogStreamName = &jtv + sv.LogStreamName = ptr.String(jtv) } case "networkInterfaces": @@ -2851,7 +2851,7 @@ func awsRestjson1_deserializeDocumentAttemptContainerDetail(v **types.AttemptCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "taskArn": @@ -2860,7 +2860,7 @@ func awsRestjson1_deserializeDocumentAttemptContainerDetail(v **types.AttemptCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TaskArn = &jtv + sv.TaskArn = ptr.String(jtv) } default: @@ -2909,7 +2909,7 @@ func awsRestjson1_deserializeDocumentAttemptDetail(v **types.AttemptDetail, valu if err != nil { return err } - sv.StartedAt = &i64 + sv.StartedAt = i64 } case "statusReason": @@ -2918,7 +2918,7 @@ func awsRestjson1_deserializeDocumentAttemptDetail(v **types.AttemptDetail, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } case "stoppedAt": @@ -2931,7 +2931,7 @@ func awsRestjson1_deserializeDocumentAttemptDetail(v **types.AttemptDetail, valu if err != nil { return err } - sv.StoppedAt = &i64 + sv.StoppedAt = i64 } default: @@ -2943,7 +2943,7 @@ func awsRestjson1_deserializeDocumentAttemptDetail(v **types.AttemptDetail, valu return nil } -func awsRestjson1_deserializeDocumentAttemptDetails(v *[]*types.AttemptDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentAttemptDetails(v *[]types.AttemptDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2956,18 +2956,20 @@ func awsRestjson1_deserializeDocumentAttemptDetails(v *[]*types.AttemptDetail, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttemptDetail + var cv []types.AttemptDetail if *v == nil { - cv = []*types.AttemptDetail{} + cv = []types.AttemptDetail{} } else { cv = *v } for _, value := range shape { - var col *types.AttemptDetail - if err := awsRestjson1_deserializeDocumentAttemptDetail(&col, value); err != nil { + var col types.AttemptDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentAttemptDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3003,7 +3005,7 @@ func awsRestjson1_deserializeDocumentClientException(v **types.ClientException, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3043,7 +3045,7 @@ func awsRestjson1_deserializeDocumentComputeEnvironmentDetail(v **types.ComputeE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ComputeEnvironmentArn = &jtv + sv.ComputeEnvironmentArn = ptr.String(jtv) } case "computeEnvironmentName": @@ -3052,7 +3054,7 @@ func awsRestjson1_deserializeDocumentComputeEnvironmentDetail(v **types.ComputeE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ComputeEnvironmentName = &jtv + sv.ComputeEnvironmentName = ptr.String(jtv) } case "computeResources": @@ -3066,7 +3068,7 @@ func awsRestjson1_deserializeDocumentComputeEnvironmentDetail(v **types.ComputeE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EcsClusterArn = &jtv + sv.EcsClusterArn = ptr.String(jtv) } case "serviceRole": @@ -3075,7 +3077,7 @@ func awsRestjson1_deserializeDocumentComputeEnvironmentDetail(v **types.ComputeE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } case "state": @@ -3102,7 +3104,7 @@ func awsRestjson1_deserializeDocumentComputeEnvironmentDetail(v **types.ComputeE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } case "tags": @@ -3128,7 +3130,7 @@ func awsRestjson1_deserializeDocumentComputeEnvironmentDetail(v **types.ComputeE return nil } -func awsRestjson1_deserializeDocumentComputeEnvironmentDetailList(v *[]*types.ComputeEnvironmentDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentComputeEnvironmentDetailList(v *[]types.ComputeEnvironmentDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3141,18 +3143,20 @@ func awsRestjson1_deserializeDocumentComputeEnvironmentDetailList(v *[]*types.Co return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComputeEnvironmentDetail + var cv []types.ComputeEnvironmentDetail if *v == nil { - cv = []*types.ComputeEnvironmentDetail{} + cv = []types.ComputeEnvironmentDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ComputeEnvironmentDetail - if err := awsRestjson1_deserializeDocumentComputeEnvironmentDetail(&col, value); err != nil { + var col types.ComputeEnvironmentDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentComputeEnvironmentDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3188,7 +3192,7 @@ func awsRestjson1_deserializeDocumentComputeEnvironmentOrder(v **types.ComputeEn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ComputeEnvironment = &jtv + sv.ComputeEnvironment = ptr.String(jtv) } case "order": @@ -3201,7 +3205,7 @@ func awsRestjson1_deserializeDocumentComputeEnvironmentOrder(v **types.ComputeEn if err != nil { return err } - sv.Order = ptr.Int32(int32(i64)) + sv.Order = int32(i64) } default: @@ -3213,7 +3217,7 @@ func awsRestjson1_deserializeDocumentComputeEnvironmentOrder(v **types.ComputeEn return nil } -func awsRestjson1_deserializeDocumentComputeEnvironmentOrders(v *[]*types.ComputeEnvironmentOrder, value interface{}) error { +func awsRestjson1_deserializeDocumentComputeEnvironmentOrders(v *[]types.ComputeEnvironmentOrder, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3226,18 +3230,20 @@ func awsRestjson1_deserializeDocumentComputeEnvironmentOrders(v *[]*types.Comput return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComputeEnvironmentOrder + var cv []types.ComputeEnvironmentOrder if *v == nil { - cv = []*types.ComputeEnvironmentOrder{} + cv = []types.ComputeEnvironmentOrder{} } else { cv = *v } for _, value := range shape { - var col *types.ComputeEnvironmentOrder - if err := awsRestjson1_deserializeDocumentComputeEnvironmentOrder(&col, value); err != nil { + var col types.ComputeEnvironmentOrder + destAddr := &col + if err := awsRestjson1_deserializeDocumentComputeEnvironmentOrder(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3286,7 +3292,7 @@ func awsRestjson1_deserializeDocumentComputeResource(v **types.ComputeResource, if err != nil { return err } - sv.BidPercentage = ptr.Int32(int32(i64)) + sv.BidPercentage = int32(i64) } case "desiredvCpus": @@ -3299,7 +3305,7 @@ func awsRestjson1_deserializeDocumentComputeResource(v **types.ComputeResource, if err != nil { return err } - sv.DesiredvCpus = ptr.Int32(int32(i64)) + sv.DesiredvCpus = int32(i64) } case "ec2KeyPair": @@ -3308,7 +3314,7 @@ func awsRestjson1_deserializeDocumentComputeResource(v **types.ComputeResource, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Ec2KeyPair = &jtv + sv.Ec2KeyPair = ptr.String(jtv) } case "imageId": @@ -3317,7 +3323,7 @@ func awsRestjson1_deserializeDocumentComputeResource(v **types.ComputeResource, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ImageId = &jtv + sv.ImageId = ptr.String(jtv) } case "instanceRole": @@ -3326,7 +3332,7 @@ func awsRestjson1_deserializeDocumentComputeResource(v **types.ComputeResource, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceRole = &jtv + sv.InstanceRole = ptr.String(jtv) } case "instanceTypes": @@ -3349,7 +3355,7 @@ func awsRestjson1_deserializeDocumentComputeResource(v **types.ComputeResource, if err != nil { return err } - sv.MaxvCpus = ptr.Int32(int32(i64)) + sv.MaxvCpus = int32(i64) } case "minvCpus": @@ -3362,7 +3368,7 @@ func awsRestjson1_deserializeDocumentComputeResource(v **types.ComputeResource, if err != nil { return err } - sv.MinvCpus = ptr.Int32(int32(i64)) + sv.MinvCpus = int32(i64) } case "placementGroup": @@ -3371,7 +3377,7 @@ func awsRestjson1_deserializeDocumentComputeResource(v **types.ComputeResource, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PlacementGroup = &jtv + sv.PlacementGroup = ptr.String(jtv) } case "securityGroupIds": @@ -3385,7 +3391,7 @@ func awsRestjson1_deserializeDocumentComputeResource(v **types.ComputeResource, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SpotIamFleetRole = &jtv + sv.SpotIamFleetRole = ptr.String(jtv) } case "subnets": @@ -3449,7 +3455,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerInstanceArn = &jtv + sv.ContainerInstanceArn = ptr.String(jtv) } case "environment": @@ -3463,7 +3469,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExecutionRoleArn = &jtv + sv.ExecutionRoleArn = ptr.String(jtv) } case "exitCode": @@ -3476,7 +3482,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if err != nil { return err } - sv.ExitCode = ptr.Int32(int32(i64)) + sv.ExitCode = int32(i64) } case "image": @@ -3485,7 +3491,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Image = &jtv + sv.Image = ptr.String(jtv) } case "instanceType": @@ -3494,7 +3500,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "jobRoleArn": @@ -3503,7 +3509,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobRoleArn = &jtv + sv.JobRoleArn = ptr.String(jtv) } case "linuxParameters": @@ -3522,7 +3528,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LogStreamName = &jtv + sv.LogStreamName = ptr.String(jtv) } case "memory": @@ -3535,7 +3541,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if err != nil { return err } - sv.Memory = ptr.Int32(int32(i64)) + sv.Memory = int32(i64) } case "mountPoints": @@ -3554,7 +3560,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Privileged = &jtv + sv.Privileged = jtv } case "readonlyRootFilesystem": @@ -3563,7 +3569,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ReadonlyRootFilesystem = &jtv + sv.ReadonlyRootFilesystem = jtv } case "reason": @@ -3572,7 +3578,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "resourceRequirements": @@ -3591,7 +3597,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TaskArn = &jtv + sv.TaskArn = ptr.String(jtv) } case "ulimits": @@ -3605,7 +3611,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.User = &jtv + sv.User = ptr.String(jtv) } case "vcpus": @@ -3618,7 +3624,7 @@ func awsRestjson1_deserializeDocumentContainerDetail(v **types.ContainerDetail, if err != nil { return err } - sv.Vcpus = ptr.Int32(int32(i64)) + sv.Vcpus = int32(i64) } case "volumes": @@ -3673,7 +3679,7 @@ func awsRestjson1_deserializeDocumentContainerProperties(v **types.ContainerProp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExecutionRoleArn = &jtv + sv.ExecutionRoleArn = ptr.String(jtv) } case "image": @@ -3682,7 +3688,7 @@ func awsRestjson1_deserializeDocumentContainerProperties(v **types.ContainerProp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Image = &jtv + sv.Image = ptr.String(jtv) } case "instanceType": @@ -3691,7 +3697,7 @@ func awsRestjson1_deserializeDocumentContainerProperties(v **types.ContainerProp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "jobRoleArn": @@ -3700,7 +3706,7 @@ func awsRestjson1_deserializeDocumentContainerProperties(v **types.ContainerProp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobRoleArn = &jtv + sv.JobRoleArn = ptr.String(jtv) } case "linuxParameters": @@ -3723,7 +3729,7 @@ func awsRestjson1_deserializeDocumentContainerProperties(v **types.ContainerProp if err != nil { return err } - sv.Memory = ptr.Int32(int32(i64)) + sv.Memory = int32(i64) } case "mountPoints": @@ -3737,7 +3743,7 @@ func awsRestjson1_deserializeDocumentContainerProperties(v **types.ContainerProp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Privileged = &jtv + sv.Privileged = jtv } case "readonlyRootFilesystem": @@ -3746,7 +3752,7 @@ func awsRestjson1_deserializeDocumentContainerProperties(v **types.ContainerProp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ReadonlyRootFilesystem = &jtv + sv.ReadonlyRootFilesystem = jtv } case "resourceRequirements": @@ -3770,7 +3776,7 @@ func awsRestjson1_deserializeDocumentContainerProperties(v **types.ContainerProp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.User = &jtv + sv.User = ptr.String(jtv) } case "vcpus": @@ -3783,7 +3789,7 @@ func awsRestjson1_deserializeDocumentContainerProperties(v **types.ContainerProp if err != nil { return err } - sv.Vcpus = ptr.Int32(int32(i64)) + sv.Vcpus = int32(i64) } case "volumes": @@ -3832,7 +3838,7 @@ func awsRestjson1_deserializeDocumentContainerSummary(v **types.ContainerSummary if err != nil { return err } - sv.ExitCode = ptr.Int32(int32(i64)) + sv.ExitCode = int32(i64) } case "reason": @@ -3841,7 +3847,7 @@ func awsRestjson1_deserializeDocumentContainerSummary(v **types.ContainerSummary if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } default: @@ -3881,7 +3887,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerPath = &jtv + sv.ContainerPath = ptr.String(jtv) } case "hostPath": @@ -3890,7 +3896,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HostPath = &jtv + sv.HostPath = ptr.String(jtv) } case "permissions": @@ -3943,7 +3949,7 @@ func awsRestjson1_deserializeDocumentDeviceCgroupPermissions(v *[]types.DeviceCg return nil } -func awsRestjson1_deserializeDocumentDevicesList(v *[]*types.Device, value interface{}) error { +func awsRestjson1_deserializeDocumentDevicesList(v *[]types.Device, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3956,18 +3962,20 @@ func awsRestjson1_deserializeDocumentDevicesList(v *[]*types.Device, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Device + var cv []types.Device if *v == nil { - cv = []*types.Device{} + cv = []types.Device{} } else { cv = *v } for _, value := range shape { - var col *types.Device - if err := awsRestjson1_deserializeDocumentDevice(&col, value); err != nil { + var col types.Device + destAddr := &col + if err := awsRestjson1_deserializeDocumentDevice(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3975,7 +3983,7 @@ func awsRestjson1_deserializeDocumentDevicesList(v *[]*types.Device, value inter return nil } -func awsRestjson1_deserializeDocumentEnvironmentVariables(v *[]*types.KeyValuePair, value interface{}) error { +func awsRestjson1_deserializeDocumentEnvironmentVariables(v *[]types.KeyValuePair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3988,18 +3996,20 @@ func awsRestjson1_deserializeDocumentEnvironmentVariables(v *[]*types.KeyValuePa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyValuePair + var cv []types.KeyValuePair if *v == nil { - cv = []*types.KeyValuePair{} + cv = []types.KeyValuePair{} } else { cv = *v } for _, value := range shape { - var col *types.KeyValuePair - if err := awsRestjson1_deserializeDocumentKeyValuePair(&col, value); err != nil { + var col types.KeyValuePair + destAddr := &col + if err := awsRestjson1_deserializeDocumentKeyValuePair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4044,7 +4054,7 @@ func awsRestjson1_deserializeDocumentEvaluateOnExit(v **types.EvaluateOnExit, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OnExitCode = &jtv + sv.OnExitCode = ptr.String(jtv) } case "onReason": @@ -4053,7 +4063,7 @@ func awsRestjson1_deserializeDocumentEvaluateOnExit(v **types.EvaluateOnExit, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OnReason = &jtv + sv.OnReason = ptr.String(jtv) } case "onStatusReason": @@ -4062,7 +4072,7 @@ func awsRestjson1_deserializeDocumentEvaluateOnExit(v **types.EvaluateOnExit, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OnStatusReason = &jtv + sv.OnStatusReason = ptr.String(jtv) } default: @@ -4074,7 +4084,7 @@ func awsRestjson1_deserializeDocumentEvaluateOnExit(v **types.EvaluateOnExit, va return nil } -func awsRestjson1_deserializeDocumentEvaluateOnExitList(v *[]*types.EvaluateOnExit, value interface{}) error { +func awsRestjson1_deserializeDocumentEvaluateOnExitList(v *[]types.EvaluateOnExit, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4087,18 +4097,20 @@ func awsRestjson1_deserializeDocumentEvaluateOnExitList(v *[]*types.EvaluateOnEx return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EvaluateOnExit + var cv []types.EvaluateOnExit if *v == nil { - cv = []*types.EvaluateOnExit{} + cv = []types.EvaluateOnExit{} } else { cv = *v } for _, value := range shape { - var col *types.EvaluateOnExit - if err := awsRestjson1_deserializeDocumentEvaluateOnExit(&col, value); err != nil { + var col types.EvaluateOnExit + destAddr := &col + if err := awsRestjson1_deserializeDocumentEvaluateOnExit(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4134,7 +4146,7 @@ func awsRestjson1_deserializeDocumentHost(v **types.Host, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourcePath = &jtv + sv.SourcePath = ptr.String(jtv) } default: @@ -4179,7 +4191,7 @@ func awsRestjson1_deserializeDocumentJobDefinition(v **types.JobDefinition, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobDefinitionArn = &jtv + sv.JobDefinitionArn = ptr.String(jtv) } case "jobDefinitionName": @@ -4188,7 +4200,7 @@ func awsRestjson1_deserializeDocumentJobDefinition(v **types.JobDefinition, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobDefinitionName = &jtv + sv.JobDefinitionName = ptr.String(jtv) } case "nodeProperties": @@ -4216,7 +4228,7 @@ func awsRestjson1_deserializeDocumentJobDefinition(v **types.JobDefinition, valu if err != nil { return err } - sv.Revision = ptr.Int32(int32(i64)) + sv.Revision = int32(i64) } case "status": @@ -4225,7 +4237,7 @@ func awsRestjson1_deserializeDocumentJobDefinition(v **types.JobDefinition, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "tags": @@ -4244,7 +4256,7 @@ func awsRestjson1_deserializeDocumentJobDefinition(v **types.JobDefinition, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -4256,7 +4268,7 @@ func awsRestjson1_deserializeDocumentJobDefinition(v **types.JobDefinition, valu return nil } -func awsRestjson1_deserializeDocumentJobDefinitionList(v *[]*types.JobDefinition, value interface{}) error { +func awsRestjson1_deserializeDocumentJobDefinitionList(v *[]types.JobDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4269,18 +4281,20 @@ func awsRestjson1_deserializeDocumentJobDefinitionList(v *[]*types.JobDefinition return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobDefinition + var cv []types.JobDefinition if *v == nil { - cv = []*types.JobDefinition{} + cv = []types.JobDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.JobDefinition - if err := awsRestjson1_deserializeDocumentJobDefinition(&col, value); err != nil { + var col types.JobDefinition + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4316,7 +4330,7 @@ func awsRestjson1_deserializeDocumentJobDependency(v **types.JobDependency, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "type": @@ -4337,7 +4351,7 @@ func awsRestjson1_deserializeDocumentJobDependency(v **types.JobDependency, valu return nil } -func awsRestjson1_deserializeDocumentJobDependencyList(v *[]*types.JobDependency, value interface{}) error { +func awsRestjson1_deserializeDocumentJobDependencyList(v *[]types.JobDependency, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4350,18 +4364,20 @@ func awsRestjson1_deserializeDocumentJobDependencyList(v *[]*types.JobDependency return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobDependency + var cv []types.JobDependency if *v == nil { - cv = []*types.JobDependency{} + cv = []types.JobDependency{} } else { cv = *v } for _, value := range shape { - var col *types.JobDependency - if err := awsRestjson1_deserializeDocumentJobDependency(&col, value); err != nil { + var col types.JobDependency + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobDependency(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4416,7 +4432,7 @@ func awsRestjson1_deserializeDocumentJobDetail(v **types.JobDetail, value interf if err != nil { return err } - sv.CreatedAt = &i64 + sv.CreatedAt = i64 } case "dependsOn": @@ -4430,7 +4446,7 @@ func awsRestjson1_deserializeDocumentJobDetail(v **types.JobDetail, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobArn = &jtv + sv.JobArn = ptr.String(jtv) } case "jobDefinition": @@ -4439,7 +4455,7 @@ func awsRestjson1_deserializeDocumentJobDetail(v **types.JobDetail, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobDefinition = &jtv + sv.JobDefinition = ptr.String(jtv) } case "jobId": @@ -4448,7 +4464,7 @@ func awsRestjson1_deserializeDocumentJobDetail(v **types.JobDetail, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "jobName": @@ -4457,7 +4473,7 @@ func awsRestjson1_deserializeDocumentJobDetail(v **types.JobDetail, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "jobQueue": @@ -4466,7 +4482,7 @@ func awsRestjson1_deserializeDocumentJobDetail(v **types.JobDetail, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobQueue = &jtv + sv.JobQueue = ptr.String(jtv) } case "nodeDetails": @@ -4499,7 +4515,7 @@ func awsRestjson1_deserializeDocumentJobDetail(v **types.JobDetail, value interf if err != nil { return err } - sv.StartedAt = &i64 + sv.StartedAt = i64 } case "status": @@ -4517,7 +4533,7 @@ func awsRestjson1_deserializeDocumentJobDetail(v **types.JobDetail, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } case "stoppedAt": @@ -4530,7 +4546,7 @@ func awsRestjson1_deserializeDocumentJobDetail(v **types.JobDetail, value interf if err != nil { return err } - sv.StoppedAt = &i64 + sv.StoppedAt = i64 } case "tags": @@ -4552,7 +4568,7 @@ func awsRestjson1_deserializeDocumentJobDetail(v **types.JobDetail, value interf return nil } -func awsRestjson1_deserializeDocumentJobDetailList(v *[]*types.JobDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentJobDetailList(v *[]types.JobDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4565,18 +4581,20 @@ func awsRestjson1_deserializeDocumentJobDetailList(v *[]*types.JobDetail, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobDetail + var cv []types.JobDetail if *v == nil { - cv = []*types.JobDetail{} + cv = []types.JobDetail{} } else { cv = *v } for _, value := range shape { - var col *types.JobDetail - if err := awsRestjson1_deserializeDocumentJobDetail(&col, value); err != nil { + var col types.JobDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4617,7 +4635,7 @@ func awsRestjson1_deserializeDocumentJobQueueDetail(v **types.JobQueueDetail, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobQueueArn = &jtv + sv.JobQueueArn = ptr.String(jtv) } case "jobQueueName": @@ -4626,7 +4644,7 @@ func awsRestjson1_deserializeDocumentJobQueueDetail(v **types.JobQueueDetail, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobQueueName = &jtv + sv.JobQueueName = ptr.String(jtv) } case "priority": @@ -4639,7 +4657,7 @@ func awsRestjson1_deserializeDocumentJobQueueDetail(v **types.JobQueueDetail, va if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "state": @@ -4666,7 +4684,7 @@ func awsRestjson1_deserializeDocumentJobQueueDetail(v **types.JobQueueDetail, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } case "tags": @@ -4683,7 +4701,7 @@ func awsRestjson1_deserializeDocumentJobQueueDetail(v **types.JobQueueDetail, va return nil } -func awsRestjson1_deserializeDocumentJobQueueDetailList(v *[]*types.JobQueueDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentJobQueueDetailList(v *[]types.JobQueueDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4696,18 +4714,20 @@ func awsRestjson1_deserializeDocumentJobQueueDetailList(v *[]*types.JobQueueDeta return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobQueueDetail + var cv []types.JobQueueDetail if *v == nil { - cv = []*types.JobQueueDetail{} + cv = []types.JobQueueDetail{} } else { cv = *v } for _, value := range shape { - var col *types.JobQueueDetail - if err := awsRestjson1_deserializeDocumentJobQueueDetail(&col, value); err != nil { + var col types.JobQueueDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobQueueDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4757,7 +4777,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if err != nil { return err } - sv.CreatedAt = &i64 + sv.CreatedAt = i64 } case "jobArn": @@ -4766,7 +4786,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobArn = &jtv + sv.JobArn = ptr.String(jtv) } case "jobId": @@ -4775,7 +4795,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "jobName": @@ -4784,7 +4804,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "nodeProperties": @@ -4802,7 +4822,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if err != nil { return err } - sv.StartedAt = &i64 + sv.StartedAt = i64 } case "status": @@ -4820,7 +4840,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } case "stoppedAt": @@ -4833,7 +4853,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if err != nil { return err } - sv.StoppedAt = &i64 + sv.StoppedAt = i64 } default: @@ -4845,7 +4865,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte return nil } -func awsRestjson1_deserializeDocumentJobSummaryList(v *[]*types.JobSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentJobSummaryList(v *[]types.JobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4858,18 +4878,20 @@ func awsRestjson1_deserializeDocumentJobSummaryList(v *[]*types.JobSummary, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobSummary + var cv []types.JobSummary if *v == nil { - cv = []*types.JobSummary{} + cv = []types.JobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.JobSummary - if err := awsRestjson1_deserializeDocumentJobSummary(&col, value); err != nil { + var col types.JobSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4909,7 +4931,7 @@ func awsRestjson1_deserializeDocumentJobTimeout(v **types.JobTimeout, value inte if err != nil { return err } - sv.AttemptDurationSeconds = ptr.Int32(int32(i64)) + sv.AttemptDurationSeconds = int32(i64) } default: @@ -4949,7 +4971,7 @@ func awsRestjson1_deserializeDocumentKeyValuePair(v **types.KeyValuePair, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "value": @@ -4958,7 +4980,7 @@ func awsRestjson1_deserializeDocumentKeyValuePair(v **types.KeyValuePair, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4998,7 +5020,7 @@ func awsRestjson1_deserializeDocumentLaunchTemplateSpecification(v **types.Launc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LaunchTemplateId = &jtv + sv.LaunchTemplateId = ptr.String(jtv) } case "launchTemplateName": @@ -5007,7 +5029,7 @@ func awsRestjson1_deserializeDocumentLaunchTemplateSpecification(v **types.Launc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LaunchTemplateName = &jtv + sv.LaunchTemplateName = ptr.String(jtv) } case "version": @@ -5016,7 +5038,7 @@ func awsRestjson1_deserializeDocumentLaunchTemplateSpecification(v **types.Launc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -5061,7 +5083,7 @@ func awsRestjson1_deserializeDocumentLinuxParameters(v **types.LinuxParameters, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.InitProcessEnabled = &jtv + sv.InitProcessEnabled = jtv } case "maxSwap": @@ -5074,7 +5096,7 @@ func awsRestjson1_deserializeDocumentLinuxParameters(v **types.LinuxParameters, if err != nil { return err } - sv.MaxSwap = ptr.Int32(int32(i64)) + sv.MaxSwap = int32(i64) } case "sharedMemorySize": @@ -5087,7 +5109,7 @@ func awsRestjson1_deserializeDocumentLinuxParameters(v **types.LinuxParameters, if err != nil { return err } - sv.SharedMemorySize = ptr.Int32(int32(i64)) + sv.SharedMemorySize = int32(i64) } case "swappiness": @@ -5100,7 +5122,7 @@ func awsRestjson1_deserializeDocumentLinuxParameters(v **types.LinuxParameters, if err != nil { return err } - sv.Swappiness = ptr.Int32(int32(i64)) + sv.Swappiness = int32(i64) } case "tmpfs": @@ -5167,7 +5189,7 @@ func awsRestjson1_deserializeDocumentLogConfiguration(v **types.LogConfiguration return nil } -func awsRestjson1_deserializeDocumentLogConfigurationOptionsMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentLogConfigurationOptionsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5180,21 +5202,21 @@ func awsRestjson1_deserializeDocumentLogConfigurationOptionsMap(v *map[string]*s return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -5231,7 +5253,7 @@ func awsRestjson1_deserializeDocumentMountPoint(v **types.MountPoint, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerPath = &jtv + sv.ContainerPath = ptr.String(jtv) } case "readOnly": @@ -5240,7 +5262,7 @@ func awsRestjson1_deserializeDocumentMountPoint(v **types.MountPoint, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ReadOnly = &jtv + sv.ReadOnly = jtv } case "sourceVolume": @@ -5249,7 +5271,7 @@ func awsRestjson1_deserializeDocumentMountPoint(v **types.MountPoint, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceVolume = &jtv + sv.SourceVolume = ptr.String(jtv) } default: @@ -5261,7 +5283,7 @@ func awsRestjson1_deserializeDocumentMountPoint(v **types.MountPoint, value inte return nil } -func awsRestjson1_deserializeDocumentMountPoints(v *[]*types.MountPoint, value interface{}) error { +func awsRestjson1_deserializeDocumentMountPoints(v *[]types.MountPoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5274,18 +5296,20 @@ func awsRestjson1_deserializeDocumentMountPoints(v *[]*types.MountPoint, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MountPoint + var cv []types.MountPoint if *v == nil { - cv = []*types.MountPoint{} + cv = []types.MountPoint{} } else { cv = *v } for _, value := range shape { - var col *types.MountPoint - if err := awsRestjson1_deserializeDocumentMountPoint(&col, value); err != nil { + var col types.MountPoint + destAddr := &col + if err := awsRestjson1_deserializeDocumentMountPoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5321,7 +5345,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AttachmentId = &jtv + sv.AttachmentId = ptr.String(jtv) } case "ipv6Address": @@ -5330,7 +5354,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Ipv6Address = &jtv + sv.Ipv6Address = ptr.String(jtv) } case "privateIpv4Address": @@ -5339,7 +5363,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrivateIpv4Address = &jtv + sv.PrivateIpv4Address = ptr.String(jtv) } default: @@ -5351,7 +5375,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface return nil } -func awsRestjson1_deserializeDocumentNetworkInterfaceList(v *[]*types.NetworkInterface, value interface{}) error { +func awsRestjson1_deserializeDocumentNetworkInterfaceList(v *[]types.NetworkInterface, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5364,18 +5388,20 @@ func awsRestjson1_deserializeDocumentNetworkInterfaceList(v *[]*types.NetworkInt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NetworkInterface + var cv []types.NetworkInterface if *v == nil { - cv = []*types.NetworkInterface{} + cv = []types.NetworkInterface{} } else { cv = *v } for _, value := range shape { - var col *types.NetworkInterface - if err := awsRestjson1_deserializeDocumentNetworkInterface(&col, value); err != nil { + var col types.NetworkInterface + destAddr := &col + if err := awsRestjson1_deserializeDocumentNetworkInterface(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5411,7 +5437,7 @@ func awsRestjson1_deserializeDocumentNodeDetails(v **types.NodeDetails, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsMainNode = &jtv + sv.IsMainNode = jtv } case "nodeIndex": @@ -5424,7 +5450,7 @@ func awsRestjson1_deserializeDocumentNodeDetails(v **types.NodeDetails, value in if err != nil { return err } - sv.NodeIndex = ptr.Int32(int32(i64)) + sv.NodeIndex = int32(i64) } default: @@ -5468,7 +5494,7 @@ func awsRestjson1_deserializeDocumentNodeProperties(v **types.NodeProperties, va if err != nil { return err } - sv.MainNode = ptr.Int32(int32(i64)) + sv.MainNode = int32(i64) } case "nodeRangeProperties": @@ -5486,7 +5512,7 @@ func awsRestjson1_deserializeDocumentNodeProperties(v **types.NodeProperties, va if err != nil { return err } - sv.NumNodes = ptr.Int32(int32(i64)) + sv.NumNodes = int32(i64) } default: @@ -5526,7 +5552,7 @@ func awsRestjson1_deserializeDocumentNodePropertiesSummary(v **types.NodePropert if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsMainNode = &jtv + sv.IsMainNode = jtv } case "nodeIndex": @@ -5539,7 +5565,7 @@ func awsRestjson1_deserializeDocumentNodePropertiesSummary(v **types.NodePropert if err != nil { return err } - sv.NodeIndex = ptr.Int32(int32(i64)) + sv.NodeIndex = int32(i64) } case "numNodes": @@ -5552,7 +5578,7 @@ func awsRestjson1_deserializeDocumentNodePropertiesSummary(v **types.NodePropert if err != nil { return err } - sv.NumNodes = ptr.Int32(int32(i64)) + sv.NumNodes = int32(i64) } default: @@ -5564,7 +5590,7 @@ func awsRestjson1_deserializeDocumentNodePropertiesSummary(v **types.NodePropert return nil } -func awsRestjson1_deserializeDocumentNodeRangeProperties(v *[]*types.NodeRangeProperty, value interface{}) error { +func awsRestjson1_deserializeDocumentNodeRangeProperties(v *[]types.NodeRangeProperty, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5577,18 +5603,20 @@ func awsRestjson1_deserializeDocumentNodeRangeProperties(v *[]*types.NodeRangePr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NodeRangeProperty + var cv []types.NodeRangeProperty if *v == nil { - cv = []*types.NodeRangeProperty{} + cv = []types.NodeRangeProperty{} } else { cv = *v } for _, value := range shape { - var col *types.NodeRangeProperty - if err := awsRestjson1_deserializeDocumentNodeRangeProperty(&col, value); err != nil { + var col types.NodeRangeProperty + destAddr := &col + if err := awsRestjson1_deserializeDocumentNodeRangeProperty(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5629,7 +5657,7 @@ func awsRestjson1_deserializeDocumentNodeRangeProperty(v **types.NodeRangeProper if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TargetNodes = &jtv + sv.TargetNodes = ptr.String(jtv) } default: @@ -5641,7 +5669,7 @@ func awsRestjson1_deserializeDocumentNodeRangeProperty(v **types.NodeRangeProper return nil } -func awsRestjson1_deserializeDocumentParametersMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentParametersMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5654,21 +5682,21 @@ func awsRestjson1_deserializeDocumentParametersMap(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -5714,7 +5742,7 @@ func awsRestjson1_deserializeDocumentResourceRequirement(v **types.ResourceRequi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5726,7 +5754,7 @@ func awsRestjson1_deserializeDocumentResourceRequirement(v **types.ResourceRequi return nil } -func awsRestjson1_deserializeDocumentResourceRequirements(v *[]*types.ResourceRequirement, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceRequirements(v *[]types.ResourceRequirement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5739,18 +5767,20 @@ func awsRestjson1_deserializeDocumentResourceRequirements(v *[]*types.ResourceRe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceRequirement + var cv []types.ResourceRequirement if *v == nil { - cv = []*types.ResourceRequirement{} + cv = []types.ResourceRequirement{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceRequirement - if err := awsRestjson1_deserializeDocumentResourceRequirement(&col, value); err != nil { + var col types.ResourceRequirement + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceRequirement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5790,7 +5820,7 @@ func awsRestjson1_deserializeDocumentRetryStrategy(v **types.RetryStrategy, valu if err != nil { return err } - sv.Attempts = ptr.Int32(int32(i64)) + sv.Attempts = int32(i64) } case "evaluateOnExit": @@ -5835,7 +5865,7 @@ func awsRestjson1_deserializeDocumentSecret(v **types.Secret, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "valueFrom": @@ -5844,7 +5874,7 @@ func awsRestjson1_deserializeDocumentSecret(v **types.Secret, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ValueFrom = &jtv + sv.ValueFrom = ptr.String(jtv) } default: @@ -5856,7 +5886,7 @@ func awsRestjson1_deserializeDocumentSecret(v **types.Secret, value interface{}) return nil } -func awsRestjson1_deserializeDocumentSecretList(v *[]*types.Secret, value interface{}) error { +func awsRestjson1_deserializeDocumentSecretList(v *[]types.Secret, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5869,18 +5899,20 @@ func awsRestjson1_deserializeDocumentSecretList(v *[]*types.Secret, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Secret + var cv []types.Secret if *v == nil { - cv = []*types.Secret{} + cv = []types.Secret{} } else { cv = *v } for _, value := range shape { - var col *types.Secret - if err := awsRestjson1_deserializeDocumentSecret(&col, value); err != nil { + var col types.Secret + destAddr := &col + if err := awsRestjson1_deserializeDocumentSecret(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5916,7 +5948,7 @@ func awsRestjson1_deserializeDocumentServerException(v **types.ServerException, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5928,7 +5960,7 @@ func awsRestjson1_deserializeDocumentServerException(v **types.ServerException, return nil } -func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5941,21 +5973,21 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -5964,7 +5996,7 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentTagrisTagsMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagrisTagsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5977,21 +6009,21 @@ func awsRestjson1_deserializeDocumentTagrisTagsMap(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -6000,7 +6032,7 @@ func awsRestjson1_deserializeDocumentTagrisTagsMap(v *map[string]*string, value return nil } -func awsRestjson1_deserializeDocumentTagsMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6013,21 +6045,21 @@ func awsRestjson1_deserializeDocumentTagsMap(v *map[string]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -6064,7 +6096,7 @@ func awsRestjson1_deserializeDocumentTmpfs(v **types.Tmpfs, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerPath = &jtv + sv.ContainerPath = ptr.String(jtv) } case "mountOptions": @@ -6082,7 +6114,7 @@ func awsRestjson1_deserializeDocumentTmpfs(v **types.Tmpfs, value interface{}) e if err != nil { return err } - sv.Size = ptr.Int32(int32(i64)) + sv.Size = int32(i64) } default: @@ -6094,7 +6126,7 @@ func awsRestjson1_deserializeDocumentTmpfs(v **types.Tmpfs, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentTmpfsList(v *[]*types.Tmpfs, value interface{}) error { +func awsRestjson1_deserializeDocumentTmpfsList(v *[]types.Tmpfs, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6107,18 +6139,20 @@ func awsRestjson1_deserializeDocumentTmpfsList(v *[]*types.Tmpfs, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tmpfs + var cv []types.Tmpfs if *v == nil { - cv = []*types.Tmpfs{} + cv = []types.Tmpfs{} } else { cv = *v } for _, value := range shape { - var col *types.Tmpfs - if err := awsRestjson1_deserializeDocumentTmpfs(&col, value); err != nil { + var col types.Tmpfs + destAddr := &col + if err := awsRestjson1_deserializeDocumentTmpfs(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6158,7 +6192,7 @@ func awsRestjson1_deserializeDocumentUlimit(v **types.Ulimit, value interface{}) if err != nil { return err } - sv.HardLimit = ptr.Int32(int32(i64)) + sv.HardLimit = int32(i64) } case "name": @@ -6167,7 +6201,7 @@ func awsRestjson1_deserializeDocumentUlimit(v **types.Ulimit, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "softLimit": @@ -6180,7 +6214,7 @@ func awsRestjson1_deserializeDocumentUlimit(v **types.Ulimit, value interface{}) if err != nil { return err } - sv.SoftLimit = ptr.Int32(int32(i64)) + sv.SoftLimit = int32(i64) } default: @@ -6192,7 +6226,7 @@ func awsRestjson1_deserializeDocumentUlimit(v **types.Ulimit, value interface{}) return nil } -func awsRestjson1_deserializeDocumentUlimits(v *[]*types.Ulimit, value interface{}) error { +func awsRestjson1_deserializeDocumentUlimits(v *[]types.Ulimit, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6205,18 +6239,20 @@ func awsRestjson1_deserializeDocumentUlimits(v *[]*types.Ulimit, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Ulimit + var cv []types.Ulimit if *v == nil { - cv = []*types.Ulimit{} + cv = []types.Ulimit{} } else { cv = *v } for _, value := range shape { - var col *types.Ulimit - if err := awsRestjson1_deserializeDocumentUlimit(&col, value); err != nil { + var col types.Ulimit + destAddr := &col + if err := awsRestjson1_deserializeDocumentUlimit(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6257,7 +6293,7 @@ func awsRestjson1_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -6269,7 +6305,7 @@ func awsRestjson1_deserializeDocumentVolume(v **types.Volume, value interface{}) return nil } -func awsRestjson1_deserializeDocumentVolumes(v *[]*types.Volume, value interface{}) error { +func awsRestjson1_deserializeDocumentVolumes(v *[]types.Volume, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6282,18 +6318,20 @@ func awsRestjson1_deserializeDocumentVolumes(v *[]*types.Volume, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Volume + var cv []types.Volume if *v == nil { - cv = []*types.Volume{} + cv = []types.Volume{} } else { cv = *v } for _, value := range shape { - var col *types.Volume - if err := awsRestjson1_deserializeDocumentVolume(&col, value); err != nil { + var col types.Volume + destAddr := &col + if err := awsRestjson1_deserializeDocumentVolume(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/batch/go.mod b/service/batch/go.mod index 3cf510ab33e..aa8c27dbc89 100644 --- a/service/batch/go.mod +++ b/service/batch/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/batch go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/batch/serializers.go b/service/batch/serializers.go index 563334c9bfa..8f946e58b51 100644 --- a/service/batch/serializers.go +++ b/service/batch/serializers.go @@ -271,9 +271,9 @@ func awsRestjson1_serializeOpDocumentCreateJobQueueInput(v *CreateJobQueueInput, ok.String(*v.JobQueueName) } - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } if len(v.State) > 0 { @@ -582,9 +582,9 @@ func awsRestjson1_serializeOpDocumentDescribeComputeEnvironmentsInput(v *Describ } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -672,9 +672,9 @@ func awsRestjson1_serializeOpDocumentDescribeJobDefinitionsInput(v *DescribeJobD } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -762,9 +762,9 @@ func awsRestjson1_serializeOpDocumentDescribeJobQueuesInput(v *DescribeJobQueues } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -930,9 +930,9 @@ func awsRestjson1_serializeOpDocumentListJobsInput(v *ListJobsInput, value smith ok.String(string(v.JobStatus)) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.MultiNodeJobId != nil { @@ -999,13 +999,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1335,13 +1332,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1493,13 +1487,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1507,10 +1498,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1684,9 +1672,9 @@ func awsRestjson1_serializeOpDocumentUpdateJobQueueInput(v *UpdateJobQueueInput, ok.String(*v.JobQueue) } - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } if len(v.State) > 0 { @@ -1701,9 +1689,9 @@ func awsRestjson1_serializeDocumentArrayProperties(v *types.ArrayProperties, val object := value.Object() defer object.Close() - if v.Size != nil { + if v.Size != 0 { ok := object.Key("size") - ok.Integer(*v.Size) + ok.Integer(v.Size) } return nil @@ -1718,25 +1706,21 @@ func awsRestjson1_serializeDocumentComputeEnvironmentOrder(v *types.ComputeEnvir ok.String(*v.ComputeEnvironment) } - if v.Order != nil { + if v.Order != 0 { ok := object.Key("order") - ok.Integer(*v.Order) + ok.Integer(v.Order) } return nil } -func awsRestjson1_serializeDocumentComputeEnvironmentOrders(v []*types.ComputeEnvironmentOrder, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentComputeEnvironmentOrders(v []types.ComputeEnvironmentOrder, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentComputeEnvironmentOrder(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentComputeEnvironmentOrder(&v[i], av); err != nil { return err } } @@ -1752,14 +1736,14 @@ func awsRestjson1_serializeDocumentComputeResource(v *types.ComputeResource, val ok.String(string(v.AllocationStrategy)) } - if v.BidPercentage != nil { + if v.BidPercentage != 0 { ok := object.Key("bidPercentage") - ok.Integer(*v.BidPercentage) + ok.Integer(v.BidPercentage) } - if v.DesiredvCpus != nil { + if v.DesiredvCpus != 0 { ok := object.Key("desiredvCpus") - ok.Integer(*v.DesiredvCpus) + ok.Integer(v.DesiredvCpus) } if v.Ec2KeyPair != nil { @@ -1791,14 +1775,14 @@ func awsRestjson1_serializeDocumentComputeResource(v *types.ComputeResource, val } } - if v.MaxvCpus != nil { + if v.MaxvCpus != 0 { ok := object.Key("maxvCpus") - ok.Integer(*v.MaxvCpus) + ok.Integer(v.MaxvCpus) } - if v.MinvCpus != nil { + if v.MinvCpus != 0 { ok := object.Key("minvCpus") - ok.Integer(*v.MinvCpus) + ok.Integer(v.MinvCpus) } if v.PlacementGroup != nil { @@ -1844,19 +1828,19 @@ func awsRestjson1_serializeDocumentComputeResourceUpdate(v *types.ComputeResourc object := value.Object() defer object.Close() - if v.DesiredvCpus != nil { + if v.DesiredvCpus != 0 { ok := object.Key("desiredvCpus") - ok.Integer(*v.DesiredvCpus) + ok.Integer(v.DesiredvCpus) } - if v.MaxvCpus != nil { + if v.MaxvCpus != 0 { ok := object.Key("maxvCpus") - ok.Integer(*v.MaxvCpus) + ok.Integer(v.MaxvCpus) } - if v.MinvCpus != nil { + if v.MinvCpus != 0 { ok := object.Key("minvCpus") - ok.Integer(*v.MinvCpus) + ok.Integer(v.MinvCpus) } return nil @@ -1885,9 +1869,9 @@ func awsRestjson1_serializeDocumentContainerOverrides(v *types.ContainerOverride ok.String(*v.InstanceType) } - if v.Memory != nil { + if v.Memory != 0 { ok := object.Key("memory") - ok.Integer(*v.Memory) + ok.Integer(v.Memory) } if v.ResourceRequirements != nil { @@ -1897,9 +1881,9 @@ func awsRestjson1_serializeDocumentContainerOverrides(v *types.ContainerOverride } } - if v.Vcpus != nil { + if v.Vcpus != 0 { ok := object.Key("vcpus") - ok.Integer(*v.Vcpus) + ok.Integer(v.Vcpus) } return nil @@ -1957,9 +1941,9 @@ func awsRestjson1_serializeDocumentContainerProperties(v *types.ContainerPropert } } - if v.Memory != nil { + if v.Memory != 0 { ok := object.Key("memory") - ok.Integer(*v.Memory) + ok.Integer(v.Memory) } if v.MountPoints != nil { @@ -1969,14 +1953,14 @@ func awsRestjson1_serializeDocumentContainerProperties(v *types.ContainerPropert } } - if v.Privileged != nil { + if v.Privileged { ok := object.Key("privileged") - ok.Boolean(*v.Privileged) + ok.Boolean(v.Privileged) } - if v.ReadonlyRootFilesystem != nil { + if v.ReadonlyRootFilesystem { ok := object.Key("readonlyRootFilesystem") - ok.Boolean(*v.ReadonlyRootFilesystem) + ok.Boolean(v.ReadonlyRootFilesystem) } if v.ResourceRequirements != nil { @@ -2005,9 +1989,9 @@ func awsRestjson1_serializeDocumentContainerProperties(v *types.ContainerPropert ok.String(*v.User) } - if v.Vcpus != nil { + if v.Vcpus != 0 { ok := object.Key("vcpus") - ok.Integer(*v.Vcpus) + ok.Integer(v.Vcpus) } if v.Volumes != nil { @@ -2055,34 +2039,26 @@ func awsRestjson1_serializeDocumentDeviceCgroupPermissions(v []types.DeviceCgrou return nil } -func awsRestjson1_serializeDocumentDevicesList(v []*types.Device, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDevicesList(v []types.Device, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDevice(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDevice(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentEnvironmentVariables(v []*types.KeyValuePair, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEnvironmentVariables(v []types.KeyValuePair, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentKeyValuePair(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentKeyValuePair(&v[i], av); err != nil { return err } } @@ -2116,17 +2092,13 @@ func awsRestjson1_serializeDocumentEvaluateOnExit(v *types.EvaluateOnExit, value return nil } -func awsRestjson1_serializeDocumentEvaluateOnExitList(v []*types.EvaluateOnExit, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEvaluateOnExitList(v []types.EvaluateOnExit, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentEvaluateOnExit(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentEvaluateOnExit(&v[i], av); err != nil { return err } } @@ -2162,17 +2134,13 @@ func awsRestjson1_serializeDocumentJobDependency(v *types.JobDependency, value s return nil } -func awsRestjson1_serializeDocumentJobDependencyList(v []*types.JobDependency, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentJobDependencyList(v []types.JobDependency, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentJobDependency(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentJobDependency(&v[i], av); err != nil { return err } } @@ -2183,9 +2151,9 @@ func awsRestjson1_serializeDocumentJobTimeout(v *types.JobTimeout, value smithyj object := value.Object() defer object.Close() - if v.AttemptDurationSeconds != nil { + if v.AttemptDurationSeconds != 0 { ok := object.Key("attemptDurationSeconds") - ok.Integer(*v.AttemptDurationSeconds) + ok.Integer(v.AttemptDurationSeconds) } return nil @@ -2241,24 +2209,24 @@ func awsRestjson1_serializeDocumentLinuxParameters(v *types.LinuxParameters, val } } - if v.InitProcessEnabled != nil { + if v.InitProcessEnabled { ok := object.Key("initProcessEnabled") - ok.Boolean(*v.InitProcessEnabled) + ok.Boolean(v.InitProcessEnabled) } - if v.MaxSwap != nil { + if v.MaxSwap != 0 { ok := object.Key("maxSwap") - ok.Integer(*v.MaxSwap) + ok.Integer(v.MaxSwap) } - if v.SharedMemorySize != nil { + if v.SharedMemorySize != 0 { ok := object.Key("sharedMemorySize") - ok.Integer(*v.SharedMemorySize) + ok.Integer(v.SharedMemorySize) } - if v.Swappiness != nil { + if v.Swappiness != 0 { ok := object.Key("swappiness") - ok.Integer(*v.Swappiness) + ok.Integer(v.Swappiness) } if v.Tmpfs != nil { @@ -2297,17 +2265,13 @@ func awsRestjson1_serializeDocumentLogConfiguration(v *types.LogConfiguration, v return nil } -func awsRestjson1_serializeDocumentLogConfigurationOptionsMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLogConfigurationOptionsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2321,9 +2285,9 @@ func awsRestjson1_serializeDocumentMountPoint(v *types.MountPoint, value smithyj ok.String(*v.ContainerPath) } - if v.ReadOnly != nil { + if v.ReadOnly { ok := object.Key("readOnly") - ok.Boolean(*v.ReadOnly) + ok.Boolean(v.ReadOnly) } if v.SourceVolume != nil { @@ -2334,17 +2298,13 @@ func awsRestjson1_serializeDocumentMountPoint(v *types.MountPoint, value smithyj return nil } -func awsRestjson1_serializeDocumentMountPoints(v []*types.MountPoint, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMountPoints(v []types.MountPoint, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMountPoint(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMountPoint(&v[i], av); err != nil { return err } } @@ -2362,9 +2322,9 @@ func awsRestjson1_serializeDocumentNodeOverrides(v *types.NodeOverrides, value s } } - if v.NumNodes != nil { + if v.NumNodes != 0 { ok := object.Key("numNodes") - ok.Integer(*v.NumNodes) + ok.Integer(v.NumNodes) } return nil @@ -2374,9 +2334,9 @@ func awsRestjson1_serializeDocumentNodeProperties(v *types.NodeProperties, value object := value.Object() defer object.Close() - if v.MainNode != nil { + if v.MainNode != 0 { ok := object.Key("mainNode") - ok.Integer(*v.MainNode) + ok.Integer(v.MainNode) } if v.NodeRangeProperties != nil { @@ -2386,9 +2346,9 @@ func awsRestjson1_serializeDocumentNodeProperties(v *types.NodeProperties, value } } - if v.NumNodes != nil { + if v.NumNodes != 0 { ok := object.Key("numNodes") - ok.Integer(*v.NumNodes) + ok.Integer(v.NumNodes) } return nil @@ -2413,34 +2373,26 @@ func awsRestjson1_serializeDocumentNodePropertyOverride(v *types.NodePropertyOve return nil } -func awsRestjson1_serializeDocumentNodePropertyOverrides(v []*types.NodePropertyOverride, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNodePropertyOverrides(v []types.NodePropertyOverride, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentNodePropertyOverride(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentNodePropertyOverride(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentNodeRangeProperties(v []*types.NodeRangeProperty, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNodeRangeProperties(v []types.NodeRangeProperty, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentNodeRangeProperty(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentNodeRangeProperty(&v[i], av); err != nil { return err } } @@ -2466,17 +2418,13 @@ func awsRestjson1_serializeDocumentNodeRangeProperty(v *types.NodeRangeProperty, return nil } -func awsRestjson1_serializeDocumentParametersMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentParametersMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2498,17 +2446,13 @@ func awsRestjson1_serializeDocumentResourceRequirement(v *types.ResourceRequirem return nil } -func awsRestjson1_serializeDocumentResourceRequirements(v []*types.ResourceRequirement, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourceRequirements(v []types.ResourceRequirement, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentResourceRequirement(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentResourceRequirement(&v[i], av); err != nil { return err } } @@ -2519,9 +2463,9 @@ func awsRestjson1_serializeDocumentRetryStrategy(v *types.RetryStrategy, value s object := value.Object() defer object.Close() - if v.Attempts != nil { + if v.Attempts != 0 { ok := object.Key("attempts") - ok.Integer(*v.Attempts) + ok.Integer(v.Attempts) } if v.EvaluateOnExit != nil { @@ -2551,64 +2495,48 @@ func awsRestjson1_serializeDocumentSecret(v *types.Secret, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentSecretList(v []*types.Secret, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSecretList(v []types.Secret, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSecret(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSecret(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentStringList(v []*string, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagrisTagsMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagrisTagsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentTagsMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2629,25 +2557,21 @@ func awsRestjson1_serializeDocumentTmpfs(v *types.Tmpfs, value smithyjson.Value) } } - if v.Size != nil { + if v.Size != 0 { ok := object.Key("size") - ok.Integer(*v.Size) + ok.Integer(v.Size) } return nil } -func awsRestjson1_serializeDocumentTmpfsList(v []*types.Tmpfs, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTmpfsList(v []types.Tmpfs, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTmpfs(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTmpfs(&v[i], av); err != nil { return err } } @@ -2658,9 +2582,9 @@ func awsRestjson1_serializeDocumentUlimit(v *types.Ulimit, value smithyjson.Valu object := value.Object() defer object.Close() - if v.HardLimit != nil { + if v.HardLimit != 0 { ok := object.Key("hardLimit") - ok.Integer(*v.HardLimit) + ok.Integer(v.HardLimit) } if v.Name != nil { @@ -2668,25 +2592,21 @@ func awsRestjson1_serializeDocumentUlimit(v *types.Ulimit, value smithyjson.Valu ok.String(*v.Name) } - if v.SoftLimit != nil { + if v.SoftLimit != 0 { ok := object.Key("softLimit") - ok.Integer(*v.SoftLimit) + ok.Integer(v.SoftLimit) } return nil } -func awsRestjson1_serializeDocumentUlimits(v []*types.Ulimit, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentUlimits(v []types.Ulimit, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentUlimit(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentUlimit(&v[i], av); err != nil { return err } } @@ -2712,17 +2632,13 @@ func awsRestjson1_serializeDocumentVolume(v *types.Volume, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentVolumes(v []*types.Volume, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentVolumes(v []types.Volume, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentVolume(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentVolume(&v[i], av); err != nil { return err } } diff --git a/service/batch/types/types.go b/service/batch/types/types.go index e2c70e3ac39..779aee45863 100644 --- a/service/batch/types/types.go +++ b/service/batch/types/types.go @@ -6,7 +6,7 @@ package types type ArrayProperties struct { // The size of the array job. - Size *int32 + Size int32 } // An object representing the array properties of a job. @@ -14,14 +14,14 @@ type ArrayPropertiesDetail struct { // The job index within the array that is associated with this job. This parameter // is returned for array job children. - Index *int32 + Index int32 // The size of the array job. This parameter is returned for parent array jobs. - Size *int32 + Size int32 // A summary of the number of array job children in each available job status. This // parameter is returned for parent array jobs. - StatusSummary map[string]*int32 + StatusSummary map[string]int32 } // An object representing the array properties of a job. @@ -29,10 +29,10 @@ type ArrayPropertiesSummary struct { // The job index within the array that is associated with this job. This parameter // is returned for children of array jobs. - Index *int32 + Index int32 // The size of the array job. This parameter is returned for parent array jobs. - Size *int32 + Size int32 } // An object representing the details of a container that is part of a job attempt. @@ -43,7 +43,7 @@ type AttemptContainerDetail struct { ContainerInstanceArn *string // The exit code for the job attempt. A non-zero exit code is considered a failure. - ExitCode *int32 + ExitCode int32 // The name of the CloudWatch Logs log stream associated with the container. The // log group for AWS Batch jobs is /aws/batch/job. Each container attempt receives @@ -51,7 +51,7 @@ type AttemptContainerDetail struct { LogStreamName *string // The network interfaces associated with the job attempt. - NetworkInterfaces []*NetworkInterface + NetworkInterfaces []NetworkInterface // A short (255 max characters) human-readable string to provide additional details // about a running or stopped container. @@ -71,7 +71,7 @@ type AttemptDetail struct { // The Unix timestamp (in milliseconds) for when the attempt was started (when the // attempt transitioned from the STARTING state to the RUNNING state). - StartedAt *int64 + StartedAt int64 // A short, human-readable string to provide additional details about the current // status of the job attempt. @@ -80,7 +80,7 @@ type AttemptDetail struct { // The Unix timestamp (in milliseconds) for when the attempt was stopped (when the // attempt transitioned from the RUNNING state to a terminal state, such as // SUCCEEDED or FAILED). - StoppedAt *int64 + StoppedAt int64 } // An object representing an AWS Batch compute environment. @@ -128,7 +128,7 @@ type ComputeEnvironmentDetail struct { StatusReason *string // The tags applied to the compute environment. - Tags map[string]*string + Tags map[string]string // The type of the compute environment. Type CEType @@ -148,7 +148,7 @@ type ComputeEnvironmentOrder struct { // The order of the compute environment. // // This member is required. - Order *int32 + Order int32 } // An object representing an AWS Batch compute resource. @@ -172,18 +172,18 @@ type ComputeResource struct { // on the fly that match the demand of your job queues. // // This member is required. - InstanceTypes []*string + InstanceTypes []string // The maximum number of Amazon EC2 vCPUs that an environment can reach. // // This member is required. - MaxvCpus *int32 + MaxvCpus int32 // The minimum number of Amazon EC2 vCPUs that an environment should maintain (even // if the compute environment is DISABLED). // // This member is required. - MinvCpus *int32 + MinvCpus int32 // The VPC subnets into which the compute resources are launched. For more // information, see VPCs and Subnets @@ -191,7 +191,7 @@ type ComputeResource struct { // Amazon VPC User Guide. // // This member is required. - Subnets []*string + Subnets []string // The type of compute environment: EC2 or SPOT. // @@ -223,10 +223,10 @@ type ComputeResource struct { // 20% of the current On-Demand price for that Amazon EC2 instance. You always pay // the lowest (market) price and never more than your maximum percentage. If you // leave this field empty, the default value is 100% of the On-Demand price. - BidPercentage *int32 + BidPercentage int32 // The desired number of Amazon EC2 vCPUS in the compute environment. - DesiredvCpus *int32 + DesiredvCpus int32 // The Amazon EC2 key pair that is used for instances launched in the compute // environment. @@ -260,7 +260,7 @@ type ComputeResource struct { // securityGroupIds or using a launch template referenced in launchTemplate. If // security groups are specified using both securityGroupIds and launchTemplate, // the values in securityGroupIds will be used. - SecurityGroupIds []*string + SecurityGroupIds []string // The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to // a SPOT compute environment. This role is required if the allocation strategy set @@ -277,7 +277,7 @@ type ComputeResource struct { // the compute environment has been created; any changes require creating a new // compute environment and removing the old compute environment. These tags are not // seen when using the AWS Batch ListTagsForResource API operation. - Tags map[string]*string + Tags map[string]string } // An object representing the attributes of a compute environment that can be @@ -285,20 +285,20 @@ type ComputeResource struct { type ComputeResourceUpdate struct { // The desired number of Amazon EC2 vCPUS in the compute environment. - DesiredvCpus *int32 + DesiredvCpus int32 // The maximum number of Amazon EC2 vCPUs that an environment can reach. - MaxvCpus *int32 + MaxvCpus int32 // The minimum number of Amazon EC2 vCPUs that an environment should maintain. - MinvCpus *int32 + MinvCpus int32 } // An object representing the details of a container that is part of a job. type ContainerDetail struct { // The command that is passed to the container. - Command []*string + Command []string // The Amazon Resource Name (ARN) of the container instance on which the container // is running. @@ -307,7 +307,7 @@ type ContainerDetail struct { // The environment variables to pass to a container. Environment variables must not // start with AWS_BATCH; this naming convention is reserved for variables that are // set by the AWS Batch service. - Environment []*KeyValuePair + Environment []KeyValuePair // The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. // For more information, see AWS Batch execution IAM role @@ -315,7 +315,7 @@ type ContainerDetail struct { ExecutionRoleArn *string // The exit code to return upon completion. - ExitCode *int32 + ExitCode int32 // The image used to start the container. Image *string @@ -366,21 +366,21 @@ type ContainerDetail struct { LogStreamName *string // The number of MiB of memory reserved for the job. This is a required parameter. - Memory *int32 + Memory int32 // The mount points for data volumes in your container. - MountPoints []*MountPoint + MountPoints []MountPoint // The network interfaces associated with the job. - NetworkInterfaces []*NetworkInterface + NetworkInterfaces []NetworkInterface // When this parameter is true, the container is given elevated privileges on the // host container instance (similar to the root user). - Privileged *bool + Privileged bool // When this parameter is true, the container is given read-only access to its root // file system. - ReadonlyRootFilesystem *bool + ReadonlyRootFilesystem bool // A short (255 max characters) human-readable string to provide additional details // about a running or stopped container. @@ -388,13 +388,13 @@ type ContainerDetail struct { // The type and amount of a resource to assign to a container. Currently, the only // supported resource is GPU. - ResourceRequirements []*ResourceRequirement + ResourceRequirements []ResourceRequirement // The secrets to pass to the container. For more information, see Specifying // Sensitive Data // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html) // in the Amazon Elastic Container Service Developer Guide. - Secrets []*Secret + Secrets []Secret // The Amazon Resource Name (ARN) of the Amazon ECS task that is associated with // the container job. Each container attempt receives a task ARN when they reach @@ -402,16 +402,16 @@ type ContainerDetail struct { TaskArn *string // A list of ulimit values to set in the container. - Ulimits []*Ulimit + Ulimits []Ulimit // The user name to use inside the container. User *string // The number of VCPUs allocated for the job. This is a required parameter. - Vcpus *int32 + Vcpus int32 // A list of volumes associated with the job. - Volumes []*Volume + Volumes []Volume } // The overrides that should be sent to a container. @@ -419,14 +419,14 @@ type ContainerOverrides struct { // The command to send to the container that overrides the default command from the // Docker image or the job definition. - Command []*string + Command []string // The environment variables to send to the container. You can add new environment // variables, which are added to the container at launch, or you can override the // existing environment variables from the Docker image or the job definition. // Environment variables must not start with AWS_BATCH; this naming convention is // reserved for variables that are set by the AWS Batch service. - Environment []*KeyValuePair + Environment []KeyValuePair // The instance type to use for a multi-node parallel job. This parameter is not // valid for single-node container jobs. @@ -434,16 +434,16 @@ type ContainerOverrides struct { // The number of MiB of memory reserved for the job. This value overrides the value // set in the job definition. - Memory *int32 + Memory int32 // The type and amount of a resource to assign to a container. This value overrides // the value set in the job definition. Currently, the only supported resource is // GPU. - ResourceRequirements []*ResourceRequirement + ResourceRequirements []ResourceRequirement // The number of vCPUs to reserve for the container. This value overrides the value // set in the job definition. - Vcpus *int32 + Vcpus int32 } // Container properties are used in job definitions to describe the container that @@ -457,7 +457,7 @@ type ContainerProperties struct { // parameter to docker run (https://docs.docker.com/engine/reference/run/). For // more information, see https://docs.docker.com/engine/reference/builder/#cmd // (https://docs.docker.com/engine/reference/builder/#cmd). - Command []*string + Command []string // The environment variables to pass to a container. This parameter maps to Env in // the Create a container @@ -468,7 +468,7 @@ type ContainerProperties struct { // as credential data. Environment variables must not start with AWS_BATCH; this // naming convention is reserved for variables that are set by the AWS Batch // service. - Environment []*KeyValuePair + Environment []KeyValuePair // The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. // For more information, see AWS Batch execution IAM role @@ -555,14 +555,14 @@ type ContainerProperties struct { // particular instance type, see Memory Management // (https://docs.aws.amazon.com/batch/latest/userguide/memory-management.html) in // the AWS Batch User Guide. - Memory *int32 + Memory int32 // The mount points for data volumes in your container. This parameter maps to // Volumes in the Create a container // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the --volume // option to docker run (https://docs.docker.com/engine/reference/run/). - MountPoints []*MountPoint + MountPoints []MountPoint // When this parameter is true, the container is given elevated privileges on the // host container instance (similar to the root user). This parameter maps to @@ -571,31 +571,31 @@ type ContainerProperties struct { // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the // --privileged option to docker run // (https://docs.docker.com/engine/reference/run/). - Privileged *bool + Privileged bool // When this parameter is true, the container is given read-only access to its root // file system. This parameter maps to ReadonlyRootfs in the Create a container // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the // --read-only option to docker run. - ReadonlyRootFilesystem *bool + ReadonlyRootFilesystem bool // The type and amount of a resource to assign to a container. Currently, the only // supported resource is GPU. - ResourceRequirements []*ResourceRequirement + ResourceRequirements []ResourceRequirement // The secrets for the container. For more information, see Specifying Sensitive // Data // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html) // in the Amazon Elastic Container Service Developer Guide. - Secrets []*Secret + Secrets []Secret // A list of ulimits to set in the container. This parameter maps to Ulimits in the // Create a container // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the --ulimit // option to docker run (https://docs.docker.com/engine/reference/run/). - Ulimits []*Ulimit + Ulimits []Ulimit // The user name to use inside the container. This parameter maps to User in the // Create a container @@ -613,17 +613,17 @@ type ContainerProperties struct { // 1,024 CPU shares. You must specify at least one vCPU. This is required but can // be specified in several places for multi-node parallel (MNP) jobs; it must be // specified for each node at least once. - Vcpus *int32 + Vcpus int32 // A list of data volumes used in a job. - Volumes []*Volume + Volumes []Volume } // An object representing summary details of a container within a job. type ContainerSummary struct { // The exit code to return upon completion. - ExitCode *int32 + ExitCode int32 // A short (255 max characters) human-readable string to provide additional details // about a running or stopped container. @@ -709,7 +709,7 @@ type JobDefinition struct { // The revision of the job definition. // // This member is required. - Revision *int32 + Revision int32 // The type of job definition. // @@ -729,7 +729,7 @@ type JobDefinition struct { // Definition Parameters // (https://docs.aws.amazon.com/batch/latest/userguide/job_definition_parameters.html) // in the AWS Batch User Guide. - Parameters map[string]*string + Parameters map[string]string // The retry strategy to use for failed jobs that are submitted with this job // definition. @@ -739,7 +739,7 @@ type JobDefinition struct { Status *string // The tags applied to the job definition. - Tags map[string]*string + Tags map[string]string // The timeout configuration for jobs that are submitted with this job definition. // You can specify a timeout duration after which AWS Batch terminates your jobs if @@ -786,7 +786,7 @@ type JobDetail struct { // not provided for child jobs of array jobs or multi-node parallel jobs. // // This member is required. - StartedAt *int64 + StartedAt int64 // The current status for the job. If your jobs do not progress to STARTING, see // Jobs Stuck in RUNNABLE Status @@ -800,7 +800,7 @@ type JobDetail struct { ArrayProperties *ArrayPropertiesDetail // A list of job attempts associated with this job. - Attempts []*AttemptDetail + Attempts []AttemptDetail // An object representing the details of the container that is associated with the // job. @@ -810,10 +810,10 @@ type JobDetail struct { // jobs and parent array jobs, this is when the job entered the SUBMITTED state (at // the time SubmitJob was called). For array child jobs, this is when the child job // was spawned by its parent and entered the PENDING state. - CreatedAt *int64 + CreatedAt int64 // A list of job IDs on which this job depends. - DependsOn []*JobDependency + DependsOn []JobDependency // The Amazon Resource Name (ARN) of the job. JobArn *string @@ -828,7 +828,7 @@ type JobDetail struct { // Additional parameters passed to the job that replace parameter substitution // placeholders or override any corresponding parameter defaults from the job // definition. - Parameters map[string]*string + Parameters map[string]string // The retry strategy to use for this job if an attempt fails. RetryStrategy *RetryStrategy @@ -840,10 +840,10 @@ type JobDetail struct { // The Unix timestamp (in milliseconds) for when the job was stopped (when the job // transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or // FAILED). - StoppedAt *int64 + StoppedAt int64 // The tags applied to the job. - Tags map[string]*string + Tags map[string]string // The timeout configuration for the job. Timeout *JobTimeout @@ -857,7 +857,7 @@ type JobQueueDetail struct { // placement in ascending order. // // This member is required. - ComputeEnvironmentOrder []*ComputeEnvironmentOrder + ComputeEnvironmentOrder []ComputeEnvironmentOrder // The Amazon Resource Name (ARN) of the job queue. // @@ -872,7 +872,7 @@ type JobQueueDetail struct { // The priority of the job queue. // // This member is required. - Priority *int32 + Priority int32 // Describes the ability of the queue to accept new jobs. If the job queue state is // ENABLED, it is able to accept jobs. If the job queue state is DISABLED, new jobs @@ -889,7 +889,7 @@ type JobQueueDetail struct { StatusReason *string // The tags applied to the job queue. - Tags map[string]*string + Tags map[string]string } // An object representing summary details of a job. @@ -916,7 +916,7 @@ type JobSummary struct { // array jobs, this is when the job entered the SUBMITTED state (at the time // SubmitJob was called). For array child jobs, this is when the child job was // spawned by its parent and entered the PENDING state. - CreatedAt *int64 + CreatedAt int64 // The Amazon Resource Name (ARN) of the job. JobArn *string @@ -926,7 +926,7 @@ type JobSummary struct { // The Unix timestamp for when the job was started (when the job transitioned from // the STARTING state to the RUNNING state). - StartedAt *int64 + StartedAt int64 // The current status for the job. Status JobStatus @@ -937,7 +937,7 @@ type JobSummary struct { // The Unix timestamp for when the job was stopped (when the job transitioned from // the RUNNING state to a terminal state, such as SUCCEEDED or FAILED). - StoppedAt *int64 + StoppedAt int64 } // An object representing a job timeout configuration. @@ -945,7 +945,7 @@ type JobTimeout struct { // The time duration in seconds (measured from the job attempt's startedAt // timestamp) after which AWS Batch terminates your jobs if they have not finished. - AttemptDurationSeconds *int32 + AttemptDurationSeconds int32 } // A key-value pair object. @@ -986,7 +986,7 @@ type LinuxParameters struct { // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the // Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the --device // option to docker run (https://docs.docker.com/engine/reference/run/). - Devices []*Device + Devices []Device // If true, run an init process inside the container that forwards signals and // reaps processes. This parameter maps to the --init option to docker run @@ -995,7 +995,7 @@ type LinuxParameters struct { // the Docker Remote API version on your container instance, log into your // container instance and run the following command: sudo docker version | grep // "Server API version" - InitProcessEnabled *bool + InitProcessEnabled bool // The total amount of swap memory (in MiB) a container can use. This parameter // will be translated to the --memory-swap option to docker run @@ -1008,12 +1008,12 @@ type LinuxParameters struct { // parameter is omitted, the container will use the swap configuration for the // container instance it is running on. A maxSwap value must be set for the // swappiness parameter to be used. - MaxSwap *int32 + MaxSwap int32 // The value for the size (in MiB) of the /dev/shm volume. This parameter maps to // the --shm-size option to docker run // (https://docs.docker.com/engine/reference/run/). - SharedMemorySize *int32 + SharedMemorySize int32 // This allows you to tune a container's memory swappiness behavior. A swappiness // value of 0 will cause swapping to not happen unless absolutely necessary. A @@ -1023,12 +1023,12 @@ type LinuxParameters struct { // maxSwap then this parameter is ignored. This parameter maps to the // --memory-swappiness option to docker run // (https://docs.docker.com/engine/reference/run/). - Swappiness *int32 + Swappiness int32 // The container path, mount options, and size (in MiB) of the tmpfs mount. This // parameter maps to the --tmpfs option to docker run // (https://docs.docker.com/engine/reference/run/). - Tmpfs []*Tmpfs + Tmpfs []Tmpfs } // Log configuration options to send to a custom log driver for the container. @@ -1081,13 +1081,13 @@ type LogConfiguration struct { // check the Docker Remote API version on your container instance, log into your // container instance and run the following command: sudo docker version | grep // "Server API version" - Options map[string]*string + Options map[string]string // The secrets to pass to the log configuration. For more information, see // Specifying Sensitive Data // (https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) // in the AWS Batch User Guide. - SecretOptions []*Secret + SecretOptions []Secret } // Details on a Docker volume mount point that is used in a job's container @@ -1101,7 +1101,7 @@ type MountPoint struct { // If this value is true, the container has read-only access to the volume; // otherwise, the container can write to the volume. The default value is false. - ReadOnly *bool + ReadOnly bool // The name of the volume to mount. SourceVolume *string @@ -1126,12 +1126,12 @@ type NodeDetails struct { // Specifies whether the current node is the main node for a multi-node parallel // job. - IsMainNode *bool + IsMainNode bool // The node index for the node. Node index numbering begins at zero. This index is // also available on the node with the AWS_BATCH_JOB_NODE_INDEX environment // variable. - NodeIndex *int32 + NodeIndex int32 } // Object representing any node overrides to a job definition that is used in a @@ -1139,7 +1139,7 @@ type NodeDetails struct { type NodeOverrides struct { // The node property overrides for the job. - NodePropertyOverrides []*NodePropertyOverride + NodePropertyOverrides []NodePropertyOverride // The number of nodes to use with a multi-node parallel job. This value overrides // the number of nodes that are specified in the job definition. To use this @@ -1154,7 +1154,7 @@ type NodeOverrides struct { // // * The main node index specified in the job // definition must be fewer than the number of nodes specified in the override. - NumNodes *int32 + NumNodes int32 } // An object representing the node properties of a multi-node parallel job. @@ -1164,18 +1164,18 @@ type NodeProperties struct { // node index value must be fewer than the number of nodes. // // This member is required. - MainNode *int32 + MainNode int32 // A list of node ranges and their properties associated with a multi-node parallel // job. // // This member is required. - NodeRangeProperties []*NodeRangeProperty + NodeRangeProperties []NodeRangeProperty // The number of nodes associated with a multi-node parallel job. // // This member is required. - NumNodes *int32 + NumNodes int32 } // An object representing the properties of a node that is associated with a @@ -1184,15 +1184,15 @@ type NodePropertiesSummary struct { // Specifies whether the current node is the main node for a multi-node parallel // job. - IsMainNode *bool + IsMainNode bool // The node index for the node. Node index numbering begins at zero. This index is // also available on the node with the AWS_BATCH_JOB_NODE_INDEX environment // variable. - NodeIndex *int32 + NodeIndex int32 // The number of nodes associated with a multi-node parallel job. - NumNodes *int32 + NumNodes int32 } // Object representing any node overrides to a job definition that is used in a @@ -1255,12 +1255,12 @@ type RetryStrategy struct { // The number of times to move a job to the RUNNABLE status. You may specify // between 1 and 10 attempts. If the value of attempts is greater than one, the job // is retried on failure the same number of attempts as the value. - Attempts *int32 + Attempts int32 // Array of up to 5 objects that specify conditions under which the job should be // retried or failed. If this parameter is specified, then the attempts parameter // must also be specified. - EvaluateOnExit []*EvaluateOnExit + EvaluateOnExit []EvaluateOnExit } // An object representing the secret to expose to your container. Secrets can be @@ -1306,7 +1306,7 @@ type Tmpfs struct { // The size (in MiB) of the tmpfs volume. // // This member is required. - Size *int32 + Size int32 // The list of tmpfs volume mount options. Valid values: "defaults" | "ro" | "rw" | // "suid" | "nosuid" | "dev" | "nodev" | "exec" | "noexec" | "sync" | "async" | @@ -1315,7 +1315,7 @@ type Tmpfs struct { // "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime" | // "norelatime" | "strictatime" | "nostrictatime" | "mode" | "uid" | "gid" | // "nr_inodes" | "nr_blocks" | "mpol" - MountOptions []*string + MountOptions []string } // The ulimit settings to pass to the container. @@ -1324,7 +1324,7 @@ type Ulimit struct { // The hard limit for the ulimit type. // // This member is required. - HardLimit *int32 + HardLimit int32 // The type of the ulimit. // @@ -1334,7 +1334,7 @@ type Ulimit struct { // The soft limit for the ulimit type. // // This member is required. - SoftLimit *int32 + SoftLimit int32 } // A data volume used in a job's container properties. diff --git a/service/batch/validators.go b/service/batch/validators.go index 8518e78f10c..01a4c5cd713 100644 --- a/service/batch/validators.go +++ b/service/batch/validators.go @@ -378,9 +378,6 @@ func validateComputeEnvironmentOrder(v *types.ComputeEnvironmentOrder) error { if v.ComputeEnvironment == nil { invalidParams.Add(smithy.NewErrParamRequired("ComputeEnvironment")) } - if v.Order == nil { - invalidParams.Add(smithy.NewErrParamRequired("Order")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -388,13 +385,13 @@ func validateComputeEnvironmentOrder(v *types.ComputeEnvironmentOrder) error { } } -func validateComputeEnvironmentOrders(v []*types.ComputeEnvironmentOrder) error { +func validateComputeEnvironmentOrders(v []types.ComputeEnvironmentOrder) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ComputeEnvironmentOrders"} for i := range v { - if err := validateComputeEnvironmentOrder(v[i]); err != nil { + if err := validateComputeEnvironmentOrder(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -419,15 +416,9 @@ func validateComputeResource(v *types.ComputeResource) error { if v.InstanceTypes == nil { invalidParams.Add(smithy.NewErrParamRequired("InstanceTypes")) } - if v.MinvCpus == nil { - invalidParams.Add(smithy.NewErrParamRequired("MinvCpus")) - } if v.Subnets == nil { invalidParams.Add(smithy.NewErrParamRequired("Subnets")) } - if v.MaxvCpus == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxvCpus")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -504,13 +495,13 @@ func validateDevice(v *types.Device) error { } } -func validateDevicesList(v []*types.Device) error { +func validateDevicesList(v []types.Device) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DevicesList"} for i := range v { - if err := validateDevice(v[i]); err != nil { + if err := validateDevice(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -536,13 +527,13 @@ func validateEvaluateOnExit(v *types.EvaluateOnExit) error { } } -func validateEvaluateOnExitList(v []*types.EvaluateOnExit) error { +func validateEvaluateOnExitList(v []types.EvaluateOnExit) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "EvaluateOnExitList"} for i := range v { - if err := validateEvaluateOnExit(v[i]); err != nil { + if err := validateEvaluateOnExit(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -624,12 +615,6 @@ func validateNodeProperties(v *types.NodeProperties) error { invalidParams.AddNested("NodeRangeProperties", err.(smithy.InvalidParamsError)) } } - if v.NumNodes == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumNodes")) - } - if v.MainNode == nil { - invalidParams.Add(smithy.NewErrParamRequired("MainNode")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -657,13 +642,13 @@ func validateNodePropertyOverride(v *types.NodePropertyOverride) error { } } -func validateNodePropertyOverrides(v []*types.NodePropertyOverride) error { +func validateNodePropertyOverrides(v []types.NodePropertyOverride) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "NodePropertyOverrides"} for i := range v { - if err := validateNodePropertyOverride(v[i]); err != nil { + if err := validateNodePropertyOverride(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -674,13 +659,13 @@ func validateNodePropertyOverrides(v []*types.NodePropertyOverride) error { } } -func validateNodeRangeProperties(v []*types.NodeRangeProperty) error { +func validateNodeRangeProperties(v []types.NodeRangeProperty) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "NodeRangeProperties"} for i := range v { - if err := validateNodeRangeProperty(v[i]); err != nil { + if err := validateNodeRangeProperty(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -729,13 +714,13 @@ func validateResourceRequirement(v *types.ResourceRequirement) error { } } -func validateResourceRequirements(v []*types.ResourceRequirement) error { +func validateResourceRequirements(v []types.ResourceRequirement) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceRequirements"} for i := range v { - if err := validateResourceRequirement(v[i]); err != nil { + if err := validateResourceRequirement(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -781,13 +766,13 @@ func validateSecret(v *types.Secret) error { } } -func validateSecretList(v []*types.Secret) error { +func validateSecretList(v []types.Secret) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SecretList"} for i := range v { - if err := validateSecret(v[i]); err != nil { + if err := validateSecret(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -803,9 +788,6 @@ func validateTmpfs(v *types.Tmpfs) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tmpfs"} - if v.Size == nil { - invalidParams.Add(smithy.NewErrParamRequired("Size")) - } if v.ContainerPath == nil { invalidParams.Add(smithy.NewErrParamRequired("ContainerPath")) } @@ -816,13 +798,13 @@ func validateTmpfs(v *types.Tmpfs) error { } } -func validateTmpfsList(v []*types.Tmpfs) error { +func validateTmpfsList(v []types.Tmpfs) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TmpfsList"} for i := range v { - if err := validateTmpfs(v[i]); err != nil { + if err := validateTmpfs(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -838,15 +820,9 @@ func validateUlimit(v *types.Ulimit) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "Ulimit"} - if v.SoftLimit == nil { - invalidParams.Add(smithy.NewErrParamRequired("SoftLimit")) - } if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } - if v.HardLimit == nil { - invalidParams.Add(smithy.NewErrParamRequired("HardLimit")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -854,13 +830,13 @@ func validateUlimit(v *types.Ulimit) error { } } -func validateUlimits(v []*types.Ulimit) error { +func validateUlimits(v []types.Ulimit) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Ulimits"} for i := range v { - if err := validateUlimit(v[i]); err != nil { + if err := validateUlimit(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -920,9 +896,6 @@ func validateOpCreateJobQueueInput(v *CreateJobQueueInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateJobQueueInput"} - if v.Priority == nil { - invalidParams.Add(smithy.NewErrParamRequired("Priority")) - } if v.JobQueueName == nil { invalidParams.Add(smithy.NewErrParamRequired("JobQueueName")) } diff --git a/service/braket/api_op_SearchDevices.go b/service/braket/api_op_SearchDevices.go index 57aa73b2905..44ce564aefd 100644 --- a/service/braket/api_op_SearchDevices.go +++ b/service/braket/api_op_SearchDevices.go @@ -32,7 +32,7 @@ type SearchDevicesInput struct { // The filter values to use to search for a device. // // This member is required. - Filters []*types.SearchDevicesFilter + Filters []types.SearchDevicesFilter // The maximum number of results to return in the response. MaxResults *int32 @@ -49,7 +49,7 @@ type SearchDevicesOutput struct { // values. // // This member is required. - Devices []*types.DeviceSummary + Devices []types.DeviceSummary // A token used for pagination of results, or null if there are no additional // results. Use the token value in a subsequent request to continue results where diff --git a/service/braket/api_op_SearchQuantumTasks.go b/service/braket/api_op_SearchQuantumTasks.go index dd3779cac62..eb319c8bc3d 100644 --- a/service/braket/api_op_SearchQuantumTasks.go +++ b/service/braket/api_op_SearchQuantumTasks.go @@ -32,7 +32,7 @@ type SearchQuantumTasksInput struct { // Array of SearchQuantumTasksFilter objects. // // This member is required. - Filters []*types.SearchQuantumTasksFilter + Filters []types.SearchQuantumTasksFilter // Maximum number of results to return in the response. MaxResults *int32 @@ -49,7 +49,7 @@ type SearchQuantumTasksOutput struct { // filters. // // This member is required. - QuantumTasks []*types.QuantumTaskSummary + QuantumTasks []types.QuantumTaskSummary // A token used for pagination of results, or null if there are no additional // results. Use the token value in a subsequent request to continue results where diff --git a/service/braket/deserializers.go b/service/braket/deserializers.go index 8f250797796..de4d904b0db 100644 --- a/service/braket/deserializers.go +++ b/service/braket/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithytime "github.com/awslabs/smithy-go/time" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" @@ -181,7 +182,7 @@ func awsRestjson1_deserializeOpDocumentCancelQuantumTaskOutput(v **CancelQuantum if !ok { return fmt.Errorf("expected QuantumTaskArn to be of type string, got %T instead", value) } - sv.QuantumTaskArn = &jtv + sv.QuantumTaskArn = ptr.String(jtv) } default: @@ -347,7 +348,7 @@ func awsRestjson1_deserializeOpDocumentCreateQuantumTaskOutput(v **CreateQuantum if !ok { return fmt.Errorf("expected QuantumTaskArn to be of type string, got %T instead", value) } - sv.QuantumTaskArn = &jtv + sv.QuantumTaskArn = ptr.String(jtv) } default: @@ -510,7 +511,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceOutput(v **GetDeviceOutput, valu if !ok { return fmt.Errorf("expected DeviceArn to be of type string, got %T instead", value) } - sv.DeviceArn = &jtv + sv.DeviceArn = ptr.String(jtv) } case "deviceCapabilities": @@ -519,7 +520,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceOutput(v **GetDeviceOutput, valu if !ok { return fmt.Errorf("expected JsonValue to be of type string, got %T instead", value) } - sv.DeviceCapabilities = &jtv + sv.DeviceCapabilities = ptr.String(jtv) } case "deviceName": @@ -528,7 +529,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceOutput(v **GetDeviceOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeviceName = &jtv + sv.DeviceName = ptr.String(jtv) } case "deviceStatus": @@ -555,7 +556,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceOutput(v **GetDeviceOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } default: @@ -722,7 +723,7 @@ func awsRestjson1_deserializeOpDocumentGetQuantumTaskOutput(v **GetQuantumTaskOu if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "deviceArn": @@ -731,7 +732,7 @@ func awsRestjson1_deserializeOpDocumentGetQuantumTaskOutput(v **GetQuantumTaskOu if !ok { return fmt.Errorf("expected DeviceArn to be of type string, got %T instead", value) } - sv.DeviceArn = &jtv + sv.DeviceArn = ptr.String(jtv) } case "deviceParameters": @@ -740,7 +741,7 @@ func awsRestjson1_deserializeOpDocumentGetQuantumTaskOutput(v **GetQuantumTaskOu if !ok { return fmt.Errorf("expected JsonValue to be of type string, got %T instead", value) } - sv.DeviceParameters = &jtv + sv.DeviceParameters = ptr.String(jtv) } case "endedAt": @@ -753,7 +754,7 @@ func awsRestjson1_deserializeOpDocumentGetQuantumTaskOutput(v **GetQuantumTaskOu if err != nil { return err } - sv.EndedAt = &t + sv.EndedAt = ptr.Time(t) } case "failureReason": @@ -762,7 +763,7 @@ func awsRestjson1_deserializeOpDocumentGetQuantumTaskOutput(v **GetQuantumTaskOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "outputS3Bucket": @@ -771,7 +772,7 @@ func awsRestjson1_deserializeOpDocumentGetQuantumTaskOutput(v **GetQuantumTaskOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OutputS3Bucket = &jtv + sv.OutputS3Bucket = ptr.String(jtv) } case "outputS3Directory": @@ -780,7 +781,7 @@ func awsRestjson1_deserializeOpDocumentGetQuantumTaskOutput(v **GetQuantumTaskOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OutputS3Directory = &jtv + sv.OutputS3Directory = ptr.String(jtv) } case "quantumTaskArn": @@ -789,7 +790,7 @@ func awsRestjson1_deserializeOpDocumentGetQuantumTaskOutput(v **GetQuantumTaskOu if !ok { return fmt.Errorf("expected QuantumTaskArn to be of type string, got %T instead", value) } - sv.QuantumTaskArn = &jtv + sv.QuantumTaskArn = ptr.String(jtv) } case "shots": @@ -802,7 +803,7 @@ func awsRestjson1_deserializeOpDocumentGetQuantumTaskOutput(v **GetQuantumTaskOu if err != nil { return err } - sv.Shots = &i64 + sv.Shots = ptr.Int64(i64) } case "status": @@ -976,7 +977,7 @@ func awsRestjson1_deserializeOpDocumentSearchDevicesOutput(v **SearchDevicesOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1136,7 +1137,7 @@ func awsRestjson1_deserializeOpDocumentSearchQuantumTasksOutput(v **SearchQuantu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "quantumTasks": @@ -1469,7 +1470,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1509,7 +1510,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1549,7 +1550,7 @@ func awsRestjson1_deserializeDocumentDeviceOfflineException(v **types.DeviceOffl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1589,7 +1590,7 @@ func awsRestjson1_deserializeDocumentDeviceSummary(v **types.DeviceSummary, valu if !ok { return fmt.Errorf("expected DeviceArn to be of type string, got %T instead", value) } - sv.DeviceArn = &jtv + sv.DeviceArn = ptr.String(jtv) } case "deviceName": @@ -1598,7 +1599,7 @@ func awsRestjson1_deserializeDocumentDeviceSummary(v **types.DeviceSummary, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeviceName = &jtv + sv.DeviceName = ptr.String(jtv) } case "deviceStatus": @@ -1625,7 +1626,7 @@ func awsRestjson1_deserializeDocumentDeviceSummary(v **types.DeviceSummary, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } default: @@ -1637,7 +1638,7 @@ func awsRestjson1_deserializeDocumentDeviceSummary(v **types.DeviceSummary, valu return nil } -func awsRestjson1_deserializeDocumentDeviceSummaryList(v *[]*types.DeviceSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDeviceSummaryList(v *[]types.DeviceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1650,18 +1651,20 @@ func awsRestjson1_deserializeDocumentDeviceSummaryList(v *[]*types.DeviceSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeviceSummary + var cv []types.DeviceSummary if *v == nil { - cv = []*types.DeviceSummary{} + cv = []types.DeviceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DeviceSummary - if err := awsRestjson1_deserializeDocumentDeviceSummary(&col, value); err != nil { + var col types.DeviceSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeviceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1697,7 +1700,7 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1741,7 +1744,7 @@ func awsRestjson1_deserializeDocumentQuantumTaskSummary(v **types.QuantumTaskSum if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "deviceArn": @@ -1750,7 +1753,7 @@ func awsRestjson1_deserializeDocumentQuantumTaskSummary(v **types.QuantumTaskSum if !ok { return fmt.Errorf("expected DeviceArn to be of type string, got %T instead", value) } - sv.DeviceArn = &jtv + sv.DeviceArn = ptr.String(jtv) } case "endedAt": @@ -1763,7 +1766,7 @@ func awsRestjson1_deserializeDocumentQuantumTaskSummary(v **types.QuantumTaskSum if err != nil { return err } - sv.EndedAt = &t + sv.EndedAt = ptr.Time(t) } case "outputS3Bucket": @@ -1772,7 +1775,7 @@ func awsRestjson1_deserializeDocumentQuantumTaskSummary(v **types.QuantumTaskSum if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OutputS3Bucket = &jtv + sv.OutputS3Bucket = ptr.String(jtv) } case "outputS3Directory": @@ -1781,7 +1784,7 @@ func awsRestjson1_deserializeDocumentQuantumTaskSummary(v **types.QuantumTaskSum if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OutputS3Directory = &jtv + sv.OutputS3Directory = ptr.String(jtv) } case "quantumTaskArn": @@ -1790,7 +1793,7 @@ func awsRestjson1_deserializeDocumentQuantumTaskSummary(v **types.QuantumTaskSum if !ok { return fmt.Errorf("expected QuantumTaskArn to be of type string, got %T instead", value) } - sv.QuantumTaskArn = &jtv + sv.QuantumTaskArn = ptr.String(jtv) } case "shots": @@ -1803,7 +1806,7 @@ func awsRestjson1_deserializeDocumentQuantumTaskSummary(v **types.QuantumTaskSum if err != nil { return err } - sv.Shots = &i64 + sv.Shots = ptr.Int64(i64) } case "status": @@ -1824,7 +1827,7 @@ func awsRestjson1_deserializeDocumentQuantumTaskSummary(v **types.QuantumTaskSum return nil } -func awsRestjson1_deserializeDocumentQuantumTaskSummaryList(v *[]*types.QuantumTaskSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentQuantumTaskSummaryList(v *[]types.QuantumTaskSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1837,18 +1840,20 @@ func awsRestjson1_deserializeDocumentQuantumTaskSummaryList(v *[]*types.QuantumT return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.QuantumTaskSummary + var cv []types.QuantumTaskSummary if *v == nil { - cv = []*types.QuantumTaskSummary{} + cv = []types.QuantumTaskSummary{} } else { cv = *v } for _, value := range shape { - var col *types.QuantumTaskSummary - if err := awsRestjson1_deserializeDocumentQuantumTaskSummary(&col, value); err != nil { + var col types.QuantumTaskSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentQuantumTaskSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1884,7 +1889,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1924,7 +1929,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1964,7 +1969,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2004,7 +2009,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/braket/go.mod b/service/braket/go.mod index 64d862bee3b..23943370f44 100644 --- a/service/braket/go.mod +++ b/service/braket/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/braket go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/braket/serializers.go b/service/braket/serializers.go index c88d6a32d4e..bbb1e3c1ad7 100644 --- a/service/braket/serializers.go +++ b/service/braket/serializers.go @@ -76,13 +76,10 @@ func awsRestjson1_serializeOpHttpBindingsCancelQuantumTaskInput(v *CancelQuantum return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.QuantumTaskArn == nil { + if v.QuantumTaskArn == nil || len(*v.QuantumTaskArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member quantumTaskArn must not be empty")} } if v.QuantumTaskArn != nil { - if len(*v.QuantumTaskArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member quantumTaskArn must not be empty")} - } if err := encoder.SetURI("quantumTaskArn").String(*v.QuantumTaskArn); err != nil { return err } @@ -257,13 +254,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDeviceInput(v *GetDeviceInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceArn == nil { + if v.DeviceArn == nil || len(*v.DeviceArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member deviceArn must not be empty")} } if v.DeviceArn != nil { - if len(*v.DeviceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member deviceArn must not be empty")} - } if err := encoder.SetURI("deviceArn").String(*v.DeviceArn); err != nil { return err } @@ -323,13 +317,10 @@ func awsRestjson1_serializeOpHttpBindingsGetQuantumTaskInput(v *GetQuantumTaskIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.QuantumTaskArn == nil { + if v.QuantumTaskArn == nil || len(*v.QuantumTaskArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member quantumTaskArn must not be empty")} } if v.QuantumTaskArn != nil { - if len(*v.QuantumTaskArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member quantumTaskArn must not be empty")} - } if err := encoder.SetURI("quantumTaskArn").String(*v.QuantumTaskArn); err != nil { return err } @@ -527,17 +518,13 @@ func awsRestjson1_serializeDocumentSearchDevicesFilter(v *types.SearchDevicesFil return nil } -func awsRestjson1_serializeDocumentSearchDevicesFilterList(v []*types.SearchDevicesFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSearchDevicesFilterList(v []types.SearchDevicesFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSearchDevicesFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSearchDevicesFilter(&v[i], av); err != nil { return err } } @@ -568,34 +555,26 @@ func awsRestjson1_serializeDocumentSearchQuantumTasksFilter(v *types.SearchQuant return nil } -func awsRestjson1_serializeDocumentSearchQuantumTasksFilterList(v []*types.SearchQuantumTasksFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSearchQuantumTasksFilterList(v []types.SearchQuantumTasksFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSearchQuantumTasksFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSearchQuantumTasksFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentString256List(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentString256List(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/braket/types/types.go b/service/braket/types/types.go index ec13b4d9db9..3ee1fca8c3b 100644 --- a/service/braket/types/types.go +++ b/service/braket/types/types.go @@ -88,7 +88,7 @@ type SearchDevicesFilter struct { // The values to use to filter results. // // This member is required. - Values []*string + Values []string } // A filter to use to search for tasks. @@ -107,5 +107,5 @@ type SearchQuantumTasksFilter struct { // The values to use for the filter. // // This member is required. - Values []*string + Values []string } diff --git a/service/braket/validators.go b/service/braket/validators.go index 1074963e167..84d412ce81c 100644 --- a/service/braket/validators.go +++ b/service/braket/validators.go @@ -172,13 +172,13 @@ func validateSearchDevicesFilter(v *types.SearchDevicesFilter) error { } } -func validateSearchDevicesFilterList(v []*types.SearchDevicesFilter) error { +func validateSearchDevicesFilterList(v []types.SearchDevicesFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SearchDevicesFilterList"} for i := range v { - if err := validateSearchDevicesFilter(v[i]); err != nil { + if err := validateSearchDevicesFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -210,13 +210,13 @@ func validateSearchQuantumTasksFilter(v *types.SearchQuantumTasksFilter) error { } } -func validateSearchQuantumTasksFilterList(v []*types.SearchQuantumTasksFilter) error { +func validateSearchQuantumTasksFilterList(v []types.SearchQuantumTasksFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SearchQuantumTasksFilterList"} for i := range v { - if err := validateSearchQuantumTasksFilter(v[i]); err != nil { + if err := validateSearchQuantumTasksFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/budgets/api_op_CreateBudget.go b/service/budgets/api_op_CreateBudget.go index e98227d93f6..916dc87bea8 100644 --- a/service/budgets/api_op_CreateBudget.go +++ b/service/budgets/api_op_CreateBudget.go @@ -49,7 +49,7 @@ type CreateBudgetInput struct { // five notifications, and each notification can have one SNS subscriber and up to // 10 email subscribers. If you include notifications and subscribers in your // CreateBudget call, AWS creates the notifications and subscribers for you. - NotificationsWithSubscribers []*types.NotificationWithSubscribers + NotificationsWithSubscribers []types.NotificationWithSubscribers } // Response of CreateBudget diff --git a/service/budgets/api_op_CreateBudgetAction.go b/service/budgets/api_op_CreateBudgetAction.go index 755e7982197..f9b720bc1fa 100644 --- a/service/budgets/api_op_CreateBudgetAction.go +++ b/service/budgets/api_op_CreateBudgetAction.go @@ -75,7 +75,7 @@ type CreateBudgetActionInput struct { // A list of subscribers. // // This member is required. - Subscribers []*types.Subscriber + Subscribers []types.Subscriber } type CreateBudgetActionOutput struct { diff --git a/service/budgets/api_op_CreateNotification.go b/service/budgets/api_op_CreateNotification.go index ba8f92765d3..cfa1feefebe 100644 --- a/service/budgets/api_op_CreateNotification.go +++ b/service/budgets/api_op_CreateNotification.go @@ -52,7 +52,7 @@ type CreateNotificationInput struct { // notification can have one SNS subscriber and up to 10 email subscribers. // // This member is required. - Subscribers []*types.Subscriber + Subscribers []types.Subscriber } // Response of CreateNotification diff --git a/service/budgets/api_op_DescribeBudgetActionHistories.go b/service/budgets/api_op_DescribeBudgetActionHistories.go index 133b02a785a..d12c71d1d77 100644 --- a/service/budgets/api_op_DescribeBudgetActionHistories.go +++ b/service/budgets/api_op_DescribeBudgetActionHistories.go @@ -63,7 +63,7 @@ type DescribeBudgetActionHistoriesOutput struct { // The historical record of the budget action resource. // // This member is required. - ActionHistories []*types.ActionHistory + ActionHistories []types.ActionHistory // A generic string. NextToken *string diff --git a/service/budgets/api_op_DescribeBudgetActionsForAccount.go b/service/budgets/api_op_DescribeBudgetActionsForAccount.go index 8f3b3bbd061..3c47267d6aa 100644 --- a/service/budgets/api_op_DescribeBudgetActionsForAccount.go +++ b/service/budgets/api_op_DescribeBudgetActionsForAccount.go @@ -47,7 +47,7 @@ type DescribeBudgetActionsForAccountOutput struct { // A list of the budget action resources information. // // This member is required. - Actions []*types.Action + Actions []types.Action // A generic string. NextToken *string diff --git a/service/budgets/api_op_DescribeBudgetActionsForBudget.go b/service/budgets/api_op_DescribeBudgetActionsForBudget.go index 49d2fa5124e..1f01c2970b0 100644 --- a/service/budgets/api_op_DescribeBudgetActionsForBudget.go +++ b/service/budgets/api_op_DescribeBudgetActionsForBudget.go @@ -53,7 +53,7 @@ type DescribeBudgetActionsForBudgetOutput struct { // A list of the budget action resources information. // // This member is required. - Actions []*types.Action + Actions []types.Action // A generic string. NextToken *string diff --git a/service/budgets/api_op_DescribeBudgets.go b/service/budgets/api_op_DescribeBudgets.go index 3a687b19e7f..3b179b692e1 100644 --- a/service/budgets/api_op_DescribeBudgets.go +++ b/service/budgets/api_op_DescribeBudgets.go @@ -51,7 +51,7 @@ type DescribeBudgetsInput struct { type DescribeBudgetsOutput struct { // A list of budgets. - Budgets []*types.Budget + Budgets []types.Budget // The pagination token in the service response that indicates the next set of // results that you can retrieve. diff --git a/service/budgets/api_op_DescribeNotificationsForBudget.go b/service/budgets/api_op_DescribeNotificationsForBudget.go index c1426bbc4b8..73eaf3eea1d 100644 --- a/service/budgets/api_op_DescribeNotificationsForBudget.go +++ b/service/budgets/api_op_DescribeNotificationsForBudget.go @@ -58,7 +58,7 @@ type DescribeNotificationsForBudgetOutput struct { NextToken *string // A list of notifications that are associated with a budget. - Notifications []*types.Notification + Notifications []types.Notification // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/budgets/api_op_DescribeSubscribersForNotification.go b/service/budgets/api_op_DescribeSubscribersForNotification.go index 94349f5abb0..e3efff5c24b 100644 --- a/service/budgets/api_op_DescribeSubscribersForNotification.go +++ b/service/budgets/api_op_DescribeSubscribersForNotification.go @@ -63,7 +63,7 @@ type DescribeSubscribersForNotificationOutput struct { NextToken *string // A list of subscribers that are associated with a notification. - Subscribers []*types.Subscriber + Subscribers []types.Subscriber // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/budgets/api_op_UpdateBudgetAction.go b/service/budgets/api_op_UpdateBudgetAction.go index c465ce895e7..b15f2bed586 100644 --- a/service/budgets/api_op_UpdateBudgetAction.go +++ b/service/budgets/api_op_UpdateBudgetAction.go @@ -62,7 +62,7 @@ type UpdateBudgetActionInput struct { NotificationType types.NotificationType // A list of subscribers. - Subscribers []*types.Subscriber + Subscribers []types.Subscriber } type UpdateBudgetActionOutput struct { diff --git a/service/budgets/deserializers.go b/service/budgets/deserializers.go index 31f77988055..40a524d44b6 100644 --- a/service/budgets/deserializers.go +++ b/service/budgets/deserializers.go @@ -3068,7 +3068,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3108,7 +3108,7 @@ func awsAwsjson11_deserializeDocumentAction(v **types.Action, value interface{}) if !ok { return fmt.Errorf("expected ActionId to be of type string, got %T instead", value) } - sv.ActionId = &jtv + sv.ActionId = ptr.String(jtv) } case "ActionThreshold": @@ -3140,7 +3140,7 @@ func awsAwsjson11_deserializeDocumentAction(v **types.Action, value interface{}) if !ok { return fmt.Errorf("expected BudgetName to be of type string, got %T instead", value) } - sv.BudgetName = &jtv + sv.BudgetName = ptr.String(jtv) } case "Definition": @@ -3154,7 +3154,7 @@ func awsAwsjson11_deserializeDocumentAction(v **types.Action, value interface{}) if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.ExecutionRoleArn = &jtv + sv.ExecutionRoleArn = ptr.String(jtv) } case "NotificationType": @@ -3189,7 +3189,7 @@ func awsAwsjson11_deserializeDocumentAction(v **types.Action, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentActionHistories(v *[]*types.ActionHistory, value interface{}) error { +func awsAwsjson11_deserializeDocumentActionHistories(v *[]types.ActionHistory, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3202,18 +3202,20 @@ func awsAwsjson11_deserializeDocumentActionHistories(v *[]*types.ActionHistory, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActionHistory + var cv []types.ActionHistory if *v == nil { - cv = []*types.ActionHistory{} + cv = []types.ActionHistory{} } else { cv = *v } for _, value := range shape { - var col *types.ActionHistory - if err := awsAwsjson11_deserializeDocumentActionHistory(&col, value); err != nil { + var col types.ActionHistory + destAddr := &col + if err := awsAwsjson11_deserializeDocumentActionHistory(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3321,7 +3323,7 @@ func awsAwsjson11_deserializeDocumentActionHistoryDetails(v **types.ActionHistor if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3333,7 +3335,7 @@ func awsAwsjson11_deserializeDocumentActionHistoryDetails(v **types.ActionHistor return nil } -func awsAwsjson11_deserializeDocumentActions(v *[]*types.Action, value interface{}) error { +func awsAwsjson11_deserializeDocumentActions(v *[]types.Action, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3346,18 +3348,20 @@ func awsAwsjson11_deserializeDocumentActions(v *[]*types.Action, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Action + var cv []types.Action if *v == nil { - cv = []*types.Action{} + cv = []types.Action{} } else { cv = *v } for _, value := range shape { - var col *types.Action - if err := awsAwsjson11_deserializeDocumentAction(&col, value); err != nil { + var col types.Action + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3406,7 +3410,7 @@ func awsAwsjson11_deserializeDocumentActionThreshold(v **types.ActionThreshold, if err != nil { return err } - sv.ActionThresholdValue = &f64 + sv.ActionThresholdValue = f64 } default: @@ -3451,7 +3455,7 @@ func awsAwsjson11_deserializeDocumentBudget(v **types.Budget, value interface{}) if !ok { return fmt.Errorf("expected BudgetName to be of type string, got %T instead", value) } - sv.BudgetName = &jtv + sv.BudgetName = ptr.String(jtv) } case "BudgetType": @@ -3565,7 +3569,7 @@ func awsAwsjson11_deserializeDocumentBudgetedAndActualAmounts(v **types.Budgeted return nil } -func awsAwsjson11_deserializeDocumentBudgetedAndActualAmountsList(v *[]*types.BudgetedAndActualAmounts, value interface{}) error { +func awsAwsjson11_deserializeDocumentBudgetedAndActualAmountsList(v *[]types.BudgetedAndActualAmounts, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3578,18 +3582,20 @@ func awsAwsjson11_deserializeDocumentBudgetedAndActualAmountsList(v *[]*types.Bu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BudgetedAndActualAmounts + var cv []types.BudgetedAndActualAmounts if *v == nil { - cv = []*types.BudgetedAndActualAmounts{} + cv = []types.BudgetedAndActualAmounts{} } else { cv = *v } for _, value := range shape { - var col *types.BudgetedAndActualAmounts - if err := awsAwsjson11_deserializeDocumentBudgetedAndActualAmounts(&col, value); err != nil { + var col types.BudgetedAndActualAmounts + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBudgetedAndActualAmounts(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3630,7 +3636,7 @@ func awsAwsjson11_deserializeDocumentBudgetPerformanceHistory(v **types.BudgetPe if !ok { return fmt.Errorf("expected BudgetName to be of type string, got %T instead", value) } - sv.BudgetName = &jtv + sv.BudgetName = ptr.String(jtv) } case "BudgetType": @@ -3670,7 +3676,7 @@ func awsAwsjson11_deserializeDocumentBudgetPerformanceHistory(v **types.BudgetPe return nil } -func awsAwsjson11_deserializeDocumentBudgets(v *[]*types.Budget, value interface{}) error { +func awsAwsjson11_deserializeDocumentBudgets(v *[]types.Budget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3683,18 +3689,20 @@ func awsAwsjson11_deserializeDocumentBudgets(v *[]*types.Budget, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Budget + var cv []types.Budget if *v == nil { - cv = []*types.Budget{} + cv = []types.Budget{} } else { cv = *v } for _, value := range shape { - var col *types.Budget - if err := awsAwsjson11_deserializeDocumentBudget(&col, value); err != nil { + var col types.Budget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBudget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3743,7 +3751,7 @@ func awsAwsjson11_deserializeDocumentCalculatedSpend(v **types.CalculatedSpend, return nil } -func awsAwsjson11_deserializeDocumentCostFilters(v *map[string][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCostFilters(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3756,18 +3764,20 @@ func awsAwsjson11_deserializeDocumentCostFilters(v *map[string][]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsAwsjson11_deserializeDocumentDimensionValues(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentDimensionValues(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -3803,7 +3813,7 @@ func awsAwsjson11_deserializeDocumentCostTypes(v **types.CostTypes, value interf if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.IncludeCredit = &jtv + sv.IncludeCredit = ptr.Bool(jtv) } case "IncludeDiscount": @@ -3812,7 +3822,7 @@ func awsAwsjson11_deserializeDocumentCostTypes(v **types.CostTypes, value interf if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.IncludeDiscount = &jtv + sv.IncludeDiscount = ptr.Bool(jtv) } case "IncludeOtherSubscription": @@ -3821,7 +3831,7 @@ func awsAwsjson11_deserializeDocumentCostTypes(v **types.CostTypes, value interf if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.IncludeOtherSubscription = &jtv + sv.IncludeOtherSubscription = ptr.Bool(jtv) } case "IncludeRecurring": @@ -3830,7 +3840,7 @@ func awsAwsjson11_deserializeDocumentCostTypes(v **types.CostTypes, value interf if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.IncludeRecurring = &jtv + sv.IncludeRecurring = ptr.Bool(jtv) } case "IncludeRefund": @@ -3839,7 +3849,7 @@ func awsAwsjson11_deserializeDocumentCostTypes(v **types.CostTypes, value interf if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.IncludeRefund = &jtv + sv.IncludeRefund = ptr.Bool(jtv) } case "IncludeSubscription": @@ -3848,7 +3858,7 @@ func awsAwsjson11_deserializeDocumentCostTypes(v **types.CostTypes, value interf if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.IncludeSubscription = &jtv + sv.IncludeSubscription = ptr.Bool(jtv) } case "IncludeSupport": @@ -3857,7 +3867,7 @@ func awsAwsjson11_deserializeDocumentCostTypes(v **types.CostTypes, value interf if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.IncludeSupport = &jtv + sv.IncludeSupport = ptr.Bool(jtv) } case "IncludeTax": @@ -3866,7 +3876,7 @@ func awsAwsjson11_deserializeDocumentCostTypes(v **types.CostTypes, value interf if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.IncludeTax = &jtv + sv.IncludeTax = ptr.Bool(jtv) } case "IncludeUpfront": @@ -3875,7 +3885,7 @@ func awsAwsjson11_deserializeDocumentCostTypes(v **types.CostTypes, value interf if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.IncludeUpfront = &jtv + sv.IncludeUpfront = ptr.Bool(jtv) } case "UseAmortized": @@ -3884,7 +3894,7 @@ func awsAwsjson11_deserializeDocumentCostTypes(v **types.CostTypes, value interf if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.UseAmortized = &jtv + sv.UseAmortized = ptr.Bool(jtv) } case "UseBlended": @@ -3893,7 +3903,7 @@ func awsAwsjson11_deserializeDocumentCostTypes(v **types.CostTypes, value interf if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.UseBlended = &jtv + sv.UseBlended = ptr.Bool(jtv) } default: @@ -3933,7 +3943,7 @@ func awsAwsjson11_deserializeDocumentCreationLimitExceededException(v **types.Cr if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3991,7 +4001,7 @@ func awsAwsjson11_deserializeDocumentDefinition(v **types.Definition, value inte return nil } -func awsAwsjson11_deserializeDocumentDimensionValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDimensionValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4004,21 +4014,21 @@ func awsAwsjson11_deserializeDocumentDimensionValues(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4055,7 +4065,7 @@ func awsAwsjson11_deserializeDocumentDuplicateRecordException(v **types.Duplicat if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4095,7 +4105,7 @@ func awsAwsjson11_deserializeDocumentExpiredNextTokenException(v **types.Expired if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4107,7 +4117,7 @@ func awsAwsjson11_deserializeDocumentExpiredNextTokenException(v **types.Expired return nil } -func awsAwsjson11_deserializeDocumentGroups(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentGroups(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4120,21 +4130,21 @@ func awsAwsjson11_deserializeDocumentGroups(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Group to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4176,7 +4186,7 @@ func awsAwsjson11_deserializeDocumentIamActionDefinition(v **types.IamActionDefi if !ok { return fmt.Errorf("expected PolicyArn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } case "Roles": @@ -4198,7 +4208,7 @@ func awsAwsjson11_deserializeDocumentIamActionDefinition(v **types.IamActionDefi return nil } -func awsAwsjson11_deserializeDocumentInstanceIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4211,21 +4221,21 @@ func awsAwsjson11_deserializeDocumentInstanceIds(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4262,7 +4272,7 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4302,7 +4312,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4342,7 +4352,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4382,7 +4392,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4453,7 +4463,7 @@ func awsAwsjson11_deserializeDocumentNotification(v **types.Notification, value if err != nil { return err } - sv.Threshold = &f64 + sv.Threshold = f64 } case "ThresholdType": @@ -4474,7 +4484,7 @@ func awsAwsjson11_deserializeDocumentNotification(v **types.Notification, value return nil } -func awsAwsjson11_deserializeDocumentNotifications(v *[]*types.Notification, value interface{}) error { +func awsAwsjson11_deserializeDocumentNotifications(v *[]types.Notification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4487,18 +4497,20 @@ func awsAwsjson11_deserializeDocumentNotifications(v *[]*types.Notification, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Notification + var cv []types.Notification if *v == nil { - cv = []*types.Notification{} + cv = []types.Notification{} } else { cv = *v } for _, value := range shape { - var col *types.Notification - if err := awsAwsjson11_deserializeDocumentNotification(&col, value); err != nil { + var col types.Notification + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNotification(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4506,7 +4518,7 @@ func awsAwsjson11_deserializeDocumentNotifications(v *[]*types.Notification, val return nil } -func awsAwsjson11_deserializeDocumentPlannedBudgetLimits(v *map[string]*types.Spend, value interface{}) error { +func awsAwsjson11_deserializeDocumentPlannedBudgetLimits(v *map[string]types.Spend, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4519,18 +4531,21 @@ func awsAwsjson11_deserializeDocumentPlannedBudgetLimits(v *map[string]*types.Sp return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.Spend + var mv map[string]types.Spend if *v == nil { - mv = map[string]*types.Spend{} + mv = map[string]types.Spend{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.Spend - if err := awsAwsjson11_deserializeDocumentSpend(&parsedVal, value); err != nil { + var parsedVal types.Spend + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentSpend(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -4566,7 +4581,7 @@ func awsAwsjson11_deserializeDocumentResourceLockedException(v **types.ResourceL if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4578,7 +4593,7 @@ func awsAwsjson11_deserializeDocumentResourceLockedException(v **types.ResourceL return nil } -func awsAwsjson11_deserializeDocumentRoles(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRoles(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4591,21 +4606,21 @@ func awsAwsjson11_deserializeDocumentRoles(v *[]*string, value interface{}) erro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Role to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4642,7 +4657,7 @@ func awsAwsjson11_deserializeDocumentScpActionDefinition(v **types.ScpActionDefi if !ok { return fmt.Errorf("expected PolicyId to be of type string, got %T instead", value) } - sv.PolicyId = &jtv + sv.PolicyId = ptr.String(jtv) } case "TargetIds": @@ -4687,7 +4702,7 @@ func awsAwsjson11_deserializeDocumentSpend(v **types.Spend, value interface{}) e if !ok { return fmt.Errorf("expected NumericValue to be of type string, got %T instead", value) } - sv.Amount = &jtv + sv.Amount = ptr.String(jtv) } case "Unit": @@ -4696,7 +4711,7 @@ func awsAwsjson11_deserializeDocumentSpend(v **types.Spend, value interface{}) e if !ok { return fmt.Errorf("expected UnitValue to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } default: @@ -4750,7 +4765,7 @@ func awsAwsjson11_deserializeDocumentSsmActionDefinition(v **types.SsmActionDefi if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } default: @@ -4790,7 +4805,7 @@ func awsAwsjson11_deserializeDocumentSubscriber(v **types.Subscriber, value inte if !ok { return fmt.Errorf("expected SubscriberAddress to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "SubscriptionType": @@ -4811,7 +4826,7 @@ func awsAwsjson11_deserializeDocumentSubscriber(v **types.Subscriber, value inte return nil } -func awsAwsjson11_deserializeDocumentSubscribers(v *[]*types.Subscriber, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubscribers(v *[]types.Subscriber, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4824,18 +4839,20 @@ func awsAwsjson11_deserializeDocumentSubscribers(v *[]*types.Subscriber, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Subscriber + var cv []types.Subscriber if *v == nil { - cv = []*types.Subscriber{} + cv = []types.Subscriber{} } else { cv = *v } for _, value := range shape { - var col *types.Subscriber - if err := awsAwsjson11_deserializeDocumentSubscriber(&col, value); err != nil { + var col types.Subscriber + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubscriber(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4843,7 +4860,7 @@ func awsAwsjson11_deserializeDocumentSubscribers(v *[]*types.Subscriber, value i return nil } -func awsAwsjson11_deserializeDocumentTargetIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4856,21 +4873,21 @@ func awsAwsjson11_deserializeDocumentTargetIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4936,7 +4953,7 @@ func awsAwsjson11_deserializeDocumentTimePeriod(v **types.TimePeriod, value inte return nil } -func awsAwsjson11_deserializeDocumentUsers(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentUsers(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4949,21 +4966,21 @@ func awsAwsjson11_deserializeDocumentUsers(v *[]*string, value interface{}) erro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected User to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5000,7 +5017,7 @@ func awsAwsjson11_deserializeOpDocumentCreateBudgetActionOutput(v **CreateBudget if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "ActionId": @@ -5009,7 +5026,7 @@ func awsAwsjson11_deserializeOpDocumentCreateBudgetActionOutput(v **CreateBudget if !ok { return fmt.Errorf("expected ActionId to be of type string, got %T instead", value) } - sv.ActionId = &jtv + sv.ActionId = ptr.String(jtv) } case "BudgetName": @@ -5018,7 +5035,7 @@ func awsAwsjson11_deserializeOpDocumentCreateBudgetActionOutput(v **CreateBudget if !ok { return fmt.Errorf("expected BudgetName to be of type string, got %T instead", value) } - sv.BudgetName = &jtv + sv.BudgetName = ptr.String(jtv) } default: @@ -5151,7 +5168,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteBudgetActionOutput(v **DeleteBudget if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "Action": @@ -5165,7 +5182,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteBudgetActionOutput(v **DeleteBudget if !ok { return fmt.Errorf("expected BudgetName to be of type string, got %T instead", value) } - sv.BudgetName = &jtv + sv.BudgetName = ptr.String(jtv) } default: @@ -5303,7 +5320,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBudgetActionHistoriesOutput(v **D if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5343,7 +5360,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBudgetActionOutput(v **DescribeBu if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "Action": @@ -5357,7 +5374,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBudgetActionOutput(v **DescribeBu if !ok { return fmt.Errorf("expected BudgetName to be of type string, got %T instead", value) } - sv.BudgetName = &jtv + sv.BudgetName = ptr.String(jtv) } default: @@ -5402,7 +5419,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBudgetActionsForAccountOutput(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5447,7 +5464,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBudgetActionsForBudgetOutput(v ** if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5528,7 +5545,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBudgetPerformanceHistoryOutput(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5573,7 +5590,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBudgetsOutput(v **DescribeBudgets if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5613,7 +5630,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotificationsForBudgetOutput(v ** if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Notifications": @@ -5658,7 +5675,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSubscribersForNotificationOutput( if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Subscribers": @@ -5703,7 +5720,7 @@ func awsAwsjson11_deserializeOpDocumentExecuteBudgetActionOutput(v **ExecuteBudg if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "ActionId": @@ -5712,7 +5729,7 @@ func awsAwsjson11_deserializeOpDocumentExecuteBudgetActionOutput(v **ExecuteBudg if !ok { return fmt.Errorf("expected ActionId to be of type string, got %T instead", value) } - sv.ActionId = &jtv + sv.ActionId = ptr.String(jtv) } case "BudgetName": @@ -5721,7 +5738,7 @@ func awsAwsjson11_deserializeOpDocumentExecuteBudgetActionOutput(v **ExecuteBudg if !ok { return fmt.Errorf("expected BudgetName to be of type string, got %T instead", value) } - sv.BudgetName = &jtv + sv.BudgetName = ptr.String(jtv) } case "ExecutionType": @@ -5770,7 +5787,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateBudgetActionOutput(v **UpdateBudget if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "BudgetName": @@ -5779,7 +5796,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateBudgetActionOutput(v **UpdateBudget if !ok { return fmt.Errorf("expected BudgetName to be of type string, got %T instead", value) } - sv.BudgetName = &jtv + sv.BudgetName = ptr.String(jtv) } case "NewAction": diff --git a/service/budgets/go.mod b/service/budgets/go.mod index 14ba8c82993..f1a4e2d9b53 100644 --- a/service/budgets/go.mod +++ b/service/budgets/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/budgets go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/budgets/serializers.go b/service/budgets/serializers.go index 38154fc52f4..4088318d3a2 100644 --- a/service/budgets/serializers.go +++ b/service/budgets/serializers.go @@ -1035,9 +1035,9 @@ func awsAwsjson11_serializeDocumentActionThreshold(v *types.ActionThreshold, val ok.String(string(v.ActionThresholdType)) } - if v.ActionThresholdValue != nil { + if v.ActionThresholdValue != 0 { ok := object.Key("ActionThresholdValue") - ok.Double(*v.ActionThresholdValue) + ok.Double(v.ActionThresholdValue) } return nil @@ -1133,14 +1133,13 @@ func awsAwsjson11_serializeDocumentCalculatedSpend(v *types.CalculatedSpend, val return nil } -func awsAwsjson11_serializeDocumentCostFilters(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCostFilters(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentDimensionValues(v[key], om); err != nil { @@ -1240,32 +1239,24 @@ func awsAwsjson11_serializeDocumentDefinition(v *types.Definition, value smithyj return nil } -func awsAwsjson11_serializeDocumentDimensionValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDimensionValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentGroups(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGroups(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1303,17 +1294,13 @@ func awsAwsjson11_serializeDocumentIamActionDefinition(v *types.IamActionDefinit return nil } -func awsAwsjson11_serializeDocumentInstanceIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1337,9 +1324,9 @@ func awsAwsjson11_serializeDocumentNotification(v *types.Notification, value smi ok.String(string(v.NotificationType)) } - if v.Threshold != nil { + if v.Threshold != 0 { ok := object.Key("Threshold") - ok.Double(*v.Threshold) + ok.Double(v.Threshold) } if len(v.ThresholdType) > 0 { @@ -1371,51 +1358,40 @@ func awsAwsjson11_serializeDocumentNotificationWithSubscribers(v *types.Notifica return nil } -func awsAwsjson11_serializeDocumentNotificationWithSubscribersList(v []*types.NotificationWithSubscribers, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNotificationWithSubscribersList(v []types.NotificationWithSubscribers, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentNotificationWithSubscribers(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentNotificationWithSubscribers(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentPlannedBudgetLimits(v map[string]*types.Spend, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPlannedBudgetLimits(v map[string]types.Spend, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSpend(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson11_serializeDocumentSpend(&mapVar, om); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentRoles(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRoles(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1497,34 +1473,26 @@ func awsAwsjson11_serializeDocumentSubscriber(v *types.Subscriber, value smithyj return nil } -func awsAwsjson11_serializeDocumentSubscribers(v []*types.Subscriber, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubscribers(v []types.Subscriber, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSubscriber(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSubscriber(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTargetIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1546,17 +1514,13 @@ func awsAwsjson11_serializeDocumentTimePeriod(v *types.TimePeriod, value smithyj return nil } -func awsAwsjson11_serializeDocumentUsers(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentUsers(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/budgets/types/types.go b/service/budgets/types/types.go index 2bb704f2acd..28484a80c95 100644 --- a/service/budgets/types/types.go +++ b/service/budgets/types/types.go @@ -60,7 +60,7 @@ type Action struct { // A list of subscribers. // // This member is required. - Subscribers []*Subscriber + Subscribers []Subscriber } // The historical records for a budget action. @@ -113,7 +113,7 @@ type ActionThreshold struct { // The threshold of a notification. // // This member is required. - ActionThresholdValue *float64 + ActionThresholdValue float64 } // Represents the output of the CreateBudget operation. The content consists of the @@ -165,7 +165,7 @@ type Budget struct { // * Amazon ElastiCache // // * Amazon Elasticsearch Service - CostFilters map[string][]*string + CostFilters map[string][]string // The types of costs that are included in this COST budget. USAGE, RI_UTILIZATION, // RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, and SAVINGS_PLANS_COVERAGE budgets do @@ -195,7 +195,7 @@ type Budget struct { // This only applies to budgets created with PlannedBudgetLimits. Budgets created // without PlannedBudgetLimits will only contain BudgetLimit, and no // PlannedBudgetLimits. - PlannedBudgetLimits map[string]*Spend + PlannedBudgetLimits map[string]Spend // The period of time that is covered by a budget. The period has a start date and // an end date. The start date must come before the end date. The end date must @@ -241,10 +241,10 @@ type BudgetPerformanceHistory struct { // A list of amounts of cost or usage that you created budgets for, compared to // your actual costs or usage. - BudgetedAndActualAmountsList []*BudgetedAndActualAmounts + BudgetedAndActualAmountsList []BudgetedAndActualAmounts // The history of the cost filters for a budget during the specified time period. - CostFilters map[string][]*string + CostFilters map[string][]string // The history of the cost types for a budget during the specified time period. CostTypes *CostTypes @@ -335,13 +335,13 @@ type IamActionDefinition struct { PolicyArn *string // A list of groups to be attached. There must be at least one group. - Groups []*string + Groups []string // A list of roles to be attached. There must be at least one role. - Roles []*string + Roles []string // A list of users to be attached. There must be at least one user. - Users []*string + Users []string } // A notification that is associated with a budget. A budget can have up to ten @@ -379,7 +379,7 @@ type Notification struct { // the budgeted amount. // // This member is required. - Threshold *float64 + Threshold float64 // Whether this notification is in alarm. If a budget notification is in the ALARM // state, you have passed the set threshold for the budget. @@ -406,7 +406,7 @@ type NotificationWithSubscribers struct { // A list of subscribers who are subscribed to this notification. // // This member is required. - Subscribers []*Subscriber + Subscribers []Subscriber } // The service control policies (SCP) action definition details. @@ -420,7 +420,7 @@ type ScpActionDefinition struct { // A list of target IDs. // // This member is required. - TargetIds []*string + TargetIds []string } // The amount of cost or usage that is measured for a budget. For example, a Spend @@ -456,7 +456,7 @@ type SsmActionDefinition struct { // The EC2 and RDS instance IDs. // // This member is required. - InstanceIds []*string + InstanceIds []string // The Region to run the SSM document. // diff --git a/service/budgets/validators.go b/service/budgets/validators.go index 1f05d31221e..a2ae153aeba 100644 --- a/service/budgets/validators.go +++ b/service/budgets/validators.go @@ -543,9 +543,6 @@ func validateActionThreshold(v *types.ActionThreshold) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ActionThreshold"} - if v.ActionThresholdValue == nil { - invalidParams.Add(smithy.NewErrParamRequired("ActionThresholdValue")) - } if len(v.ActionThresholdType) == 0 { invalidParams.Add(smithy.NewErrParamRequired("ActionThresholdType")) } @@ -666,9 +663,6 @@ func validateNotification(v *types.Notification) error { if len(v.NotificationType) == 0 { invalidParams.Add(smithy.NewErrParamRequired("NotificationType")) } - if v.Threshold == nil { - invalidParams.Add(smithy.NewErrParamRequired("Threshold")) - } if len(v.ComparisonOperator) == 0 { invalidParams.Add(smithy.NewErrParamRequired("ComparisonOperator")) } @@ -705,13 +699,13 @@ func validateNotificationWithSubscribers(v *types.NotificationWithSubscribers) e } } -func validateNotificationWithSubscribersList(v []*types.NotificationWithSubscribers) error { +func validateNotificationWithSubscribersList(v []types.NotificationWithSubscribers) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "NotificationWithSubscribersList"} for i := range v { - if err := validateNotificationWithSubscribers(v[i]); err != nil { + if err := validateNotificationWithSubscribers(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -722,13 +716,14 @@ func validateNotificationWithSubscribersList(v []*types.NotificationWithSubscrib } } -func validatePlannedBudgetLimits(v map[string]*types.Spend) error { +func validatePlannedBudgetLimits(v map[string]types.Spend) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PlannedBudgetLimits"} for key := range v { - if err := validateSpend(v[key]); err != nil { + value := v[key] + if err := validateSpend(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -814,13 +809,13 @@ func validateSubscriber(v *types.Subscriber) error { } } -func validateSubscribers(v []*types.Subscriber) error { +func validateSubscribers(v []types.Subscriber) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Subscribers"} for i := range v { - if err := validateSubscriber(v[i]); err != nil { + if err := validateSubscriber(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/chime/api_op_AssociatePhoneNumbersWithVoiceConnector.go b/service/chime/api_op_AssociatePhoneNumbersWithVoiceConnector.go index 551f78baacf..a9678e22d4c 100644 --- a/service/chime/api_op_AssociatePhoneNumbersWithVoiceConnector.go +++ b/service/chime/api_op_AssociatePhoneNumbersWithVoiceConnector.go @@ -32,7 +32,7 @@ type AssociatePhoneNumbersWithVoiceConnectorInput struct { // List of phone numbers, in E.164 format. // // This member is required. - E164PhoneNumbers []*string + E164PhoneNumbers []string // The Amazon Chime Voice Connector ID. // @@ -49,7 +49,7 @@ type AssociatePhoneNumbersWithVoiceConnectorOutput struct { // If the action fails for one or more of the phone numbers in the request, a list // of the phone numbers is returned, along with error codes and error messages. - PhoneNumberErrors []*types.PhoneNumberError + PhoneNumberErrors []types.PhoneNumberError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_AssociatePhoneNumbersWithVoiceConnectorGroup.go b/service/chime/api_op_AssociatePhoneNumbersWithVoiceConnectorGroup.go index 741d865b49d..a4af8bb3cc4 100644 --- a/service/chime/api_op_AssociatePhoneNumbersWithVoiceConnectorGroup.go +++ b/service/chime/api_op_AssociatePhoneNumbersWithVoiceConnectorGroup.go @@ -32,7 +32,7 @@ type AssociatePhoneNumbersWithVoiceConnectorGroupInput struct { // List of phone numbers, in E.164 format. // // This member is required. - E164PhoneNumbers []*string + E164PhoneNumbers []string // The Amazon Chime Voice Connector group ID. // @@ -50,7 +50,7 @@ type AssociatePhoneNumbersWithVoiceConnectorGroupOutput struct { // If the action fails for one or more of the phone numbers in the request, a list // of the phone numbers is returned, along with error codes and error messages. - PhoneNumberErrors []*types.PhoneNumberError + PhoneNumberErrors []types.PhoneNumberError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_AssociateSigninDelegateGroupsWithAccount.go b/service/chime/api_op_AssociateSigninDelegateGroupsWithAccount.go index 064c7278279..0b4502f432a 100644 --- a/service/chime/api_op_AssociateSigninDelegateGroupsWithAccount.go +++ b/service/chime/api_op_AssociateSigninDelegateGroupsWithAccount.go @@ -38,7 +38,7 @@ type AssociateSigninDelegateGroupsWithAccountInput struct { // The sign-in delegate groups. // // This member is required. - SigninDelegateGroups []*types.SigninDelegateGroup + SigninDelegateGroups []types.SigninDelegateGroup } type AssociateSigninDelegateGroupsWithAccountOutput struct { diff --git a/service/chime/api_op_BatchCreateAttendee.go b/service/chime/api_op_BatchCreateAttendee.go index 371c34d13e0..7cfa79430b7 100644 --- a/service/chime/api_op_BatchCreateAttendee.go +++ b/service/chime/api_op_BatchCreateAttendee.go @@ -35,7 +35,7 @@ type BatchCreateAttendeeInput struct { // The request containing the attendees to create. // // This member is required. - Attendees []*types.CreateAttendeeRequestItem + Attendees []types.CreateAttendeeRequestItem // The Amazon Chime SDK meeting ID. // @@ -46,11 +46,11 @@ type BatchCreateAttendeeInput struct { type BatchCreateAttendeeOutput struct { // The attendee information, including attendees IDs and join tokens. - Attendees []*types.Attendee + Attendees []types.Attendee // If the action fails for one or more of the attendees in the request, a list of // the attendees is returned, along with error codes and error messages. - Errors []*types.CreateAttendeeError + Errors []types.CreateAttendeeError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_BatchCreateRoomMembership.go b/service/chime/api_op_BatchCreateRoomMembership.go index 8bb79781702..4c099837094 100644 --- a/service/chime/api_op_BatchCreateRoomMembership.go +++ b/service/chime/api_op_BatchCreateRoomMembership.go @@ -39,7 +39,7 @@ type BatchCreateRoomMembershipInput struct { // The list of membership items. // // This member is required. - MembershipItemList []*types.MembershipItem + MembershipItemList []types.MembershipItem // The room ID. // @@ -51,7 +51,7 @@ type BatchCreateRoomMembershipOutput struct { // If the action fails for one or more of the member IDs in the request, a list of // the member IDs is returned, along with error codes and error messages. - Errors []*types.MemberError + Errors []types.MemberError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_BatchDeletePhoneNumber.go b/service/chime/api_op_BatchDeletePhoneNumber.go index 79510f6ab47..8493f4dbcaf 100644 --- a/service/chime/api_op_BatchDeletePhoneNumber.go +++ b/service/chime/api_op_BatchDeletePhoneNumber.go @@ -35,14 +35,14 @@ type BatchDeletePhoneNumberInput struct { // List of phone number IDs. // // This member is required. - PhoneNumberIds []*string + PhoneNumberIds []string } type BatchDeletePhoneNumberOutput struct { // If the action fails for one or more of the phone numbers in the request, a list // of the phone numbers is returned, along with error codes and error messages. - PhoneNumberErrors []*types.PhoneNumberError + PhoneNumberErrors []types.PhoneNumberError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_BatchSuspendUser.go b/service/chime/api_op_BatchSuspendUser.go index 32bb6b47c67..a62876cb878 100644 --- a/service/chime/api_op_BatchSuspendUser.go +++ b/service/chime/api_op_BatchSuspendUser.go @@ -47,7 +47,7 @@ type BatchSuspendUserInput struct { // The request containing the user IDs to suspend. // // This member is required. - UserIdList []*string + UserIdList []string } type BatchSuspendUserOutput struct { @@ -55,7 +55,7 @@ type BatchSuspendUserOutput struct { // If the BatchSuspendUser action fails for one or more of the user IDs in the // request, a list of the user IDs is returned, along with error codes and error // messages. - UserErrors []*types.UserError + UserErrors []types.UserError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_BatchUnsuspendUser.go b/service/chime/api_op_BatchUnsuspendUser.go index 324ae5d6b46..b51dc8642ae 100644 --- a/service/chime/api_op_BatchUnsuspendUser.go +++ b/service/chime/api_op_BatchUnsuspendUser.go @@ -44,7 +44,7 @@ type BatchUnsuspendUserInput struct { // The request containing the user IDs to unsuspend. // // This member is required. - UserIdList []*string + UserIdList []string } type BatchUnsuspendUserOutput struct { @@ -52,7 +52,7 @@ type BatchUnsuspendUserOutput struct { // If the BatchUnsuspendUser action fails for one or more of the user IDs in the // request, a list of the user IDs is returned, along with error codes and error // messages. - UserErrors []*types.UserError + UserErrors []types.UserError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_BatchUpdatePhoneNumber.go b/service/chime/api_op_BatchUpdatePhoneNumber.go index 93cd4270b0a..77751ee153b 100644 --- a/service/chime/api_op_BatchUpdatePhoneNumber.go +++ b/service/chime/api_op_BatchUpdatePhoneNumber.go @@ -40,14 +40,14 @@ type BatchUpdatePhoneNumberInput struct { // to update. // // This member is required. - UpdatePhoneNumberRequestItems []*types.UpdatePhoneNumberRequestItem + UpdatePhoneNumberRequestItems []types.UpdatePhoneNumberRequestItem } type BatchUpdatePhoneNumberOutput struct { // If the action fails for one or more of the phone numbers in the request, a list // of the phone numbers is returned, along with error codes and error messages. - PhoneNumberErrors []*types.PhoneNumberError + PhoneNumberErrors []types.PhoneNumberError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_BatchUpdateUser.go b/service/chime/api_op_BatchUpdateUser.go index 5d0ff351c63..eb4ca033c76 100644 --- a/service/chime/api_op_BatchUpdateUser.go +++ b/service/chime/api_op_BatchUpdateUser.go @@ -39,7 +39,7 @@ type BatchUpdateUserInput struct { // The request containing the user IDs and details to update. // // This member is required. - UpdateUserRequestItems []*types.UpdateUserRequestItem + UpdateUserRequestItems []types.UpdateUserRequestItem } type BatchUpdateUserOutput struct { @@ -47,7 +47,7 @@ type BatchUpdateUserOutput struct { // If the BatchUpdateUser action fails for one or more of the user IDs in the // request, a list of the user IDs is returned, along with error codes and error // messages. - UserErrors []*types.UserError + UserErrors []types.UserError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_CreateAttendee.go b/service/chime/api_op_CreateAttendee.go index 0d919d03d7c..d870b6755e3 100644 --- a/service/chime/api_op_CreateAttendee.go +++ b/service/chime/api_op_CreateAttendee.go @@ -44,7 +44,7 @@ type CreateAttendeeInput struct { MeetingId *string // The tag key-value pairs. - Tags []*types.Tag + Tags []types.Tag } type CreateAttendeeOutput struct { diff --git a/service/chime/api_op_CreateMeeting.go b/service/chime/api_op_CreateMeeting.go index 9cc4693867f..8641203bcd9 100644 --- a/service/chime/api_op_CreateMeeting.go +++ b/service/chime/api_op_CreateMeeting.go @@ -60,7 +60,7 @@ type CreateMeetingInput struct { NotificationsConfiguration *types.MeetingNotificationConfiguration // The tag key-value pairs. - Tags []*types.Tag + Tags []types.Tag } type CreateMeetingOutput struct { diff --git a/service/chime/api_op_CreateMeetingWithAttendees.go b/service/chime/api_op_CreateMeetingWithAttendees.go index 7cd2ebaae39..1b7a48ea389 100644 --- a/service/chime/api_op_CreateMeetingWithAttendees.go +++ b/service/chime/api_op_CreateMeetingWithAttendees.go @@ -44,7 +44,7 @@ type CreateMeetingWithAttendeesInput struct { ClientRequestToken *string // The request containing the attendees to create. - Attendees []*types.CreateAttendeeRequestItem + Attendees []types.CreateAttendeeRequestItem // The external meeting ID. ExternalMeetingId *string @@ -64,17 +64,17 @@ type CreateMeetingWithAttendeesInput struct { NotificationsConfiguration *types.MeetingNotificationConfiguration // The tag key-value pairs. - Tags []*types.Tag + Tags []types.Tag } type CreateMeetingWithAttendeesOutput struct { // The attendee information, including attendees IDs and join tokens. - Attendees []*types.Attendee + Attendees []types.Attendee // If the action fails for one or more of the attendees in the request, a list of // the attendees is returned, along with error codes and error messages. - Errors []*types.CreateAttendeeError + Errors []types.CreateAttendeeError // A meeting created using the Amazon Chime SDK. Meeting *types.Meeting diff --git a/service/chime/api_op_CreatePhoneNumberOrder.go b/service/chime/api_op_CreatePhoneNumberOrder.go index 21e5725ff83..63962161fb0 100644 --- a/service/chime/api_op_CreatePhoneNumberOrder.go +++ b/service/chime/api_op_CreatePhoneNumberOrder.go @@ -34,7 +34,7 @@ type CreatePhoneNumberOrderInput struct { // List of phone numbers, in E.164 format. // // This member is required. - E164PhoneNumbers []*string + E164PhoneNumbers []string // The phone number product type. // diff --git a/service/chime/api_op_CreateProxySession.go b/service/chime/api_op_CreateProxySession.go index 7ea54795e9c..f5b33156c30 100644 --- a/service/chime/api_op_CreateProxySession.go +++ b/service/chime/api_op_CreateProxySession.go @@ -38,7 +38,7 @@ type CreateProxySessionInput struct { // The participant phone numbers. // // This member is required. - ParticipantPhoneNumbers []*string + ParticipantPhoneNumbers []string // The Amazon Chime voice connector ID. // diff --git a/service/chime/api_op_CreateVoiceConnectorGroup.go b/service/chime/api_op_CreateVoiceConnectorGroup.go index 6c606ce283e..9f866b3172c 100644 --- a/service/chime/api_op_CreateVoiceConnectorGroup.go +++ b/service/chime/api_op_CreateVoiceConnectorGroup.go @@ -40,7 +40,7 @@ type CreateVoiceConnectorGroupInput struct { Name *string // The Amazon Chime Voice Connectors to route inbound calls to. - VoiceConnectorItems []*types.VoiceConnectorItem + VoiceConnectorItems []types.VoiceConnectorItem } type CreateVoiceConnectorGroupOutput struct { diff --git a/service/chime/api_op_DeleteVoiceConnectorTerminationCredentials.go b/service/chime/api_op_DeleteVoiceConnectorTerminationCredentials.go index 63f34e44d1e..37ba480f2d3 100644 --- a/service/chime/api_op_DeleteVoiceConnectorTerminationCredentials.go +++ b/service/chime/api_op_DeleteVoiceConnectorTerminationCredentials.go @@ -33,7 +33,7 @@ type DeleteVoiceConnectorTerminationCredentialsInput struct { // format. // // This member is required. - Usernames []*string + Usernames []string // The Amazon Chime Voice Connector ID. // diff --git a/service/chime/api_op_DisassociatePhoneNumbersFromVoiceConnector.go b/service/chime/api_op_DisassociatePhoneNumbersFromVoiceConnector.go index 3cdbb145eb6..56fb367a99c 100644 --- a/service/chime/api_op_DisassociatePhoneNumbersFromVoiceConnector.go +++ b/service/chime/api_op_DisassociatePhoneNumbersFromVoiceConnector.go @@ -33,7 +33,7 @@ type DisassociatePhoneNumbersFromVoiceConnectorInput struct { // List of phone numbers, in E.164 format. // // This member is required. - E164PhoneNumbers []*string + E164PhoneNumbers []string // The Amazon Chime Voice Connector ID. // @@ -45,7 +45,7 @@ type DisassociatePhoneNumbersFromVoiceConnectorOutput struct { // If the action fails for one or more of the phone numbers in the request, a list // of the phone numbers is returned, along with error codes and error messages. - PhoneNumberErrors []*types.PhoneNumberError + PhoneNumberErrors []types.PhoneNumberError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_DisassociatePhoneNumbersFromVoiceConnectorGroup.go b/service/chime/api_op_DisassociatePhoneNumbersFromVoiceConnectorGroup.go index 470866b7b04..df04269b584 100644 --- a/service/chime/api_op_DisassociatePhoneNumbersFromVoiceConnectorGroup.go +++ b/service/chime/api_op_DisassociatePhoneNumbersFromVoiceConnectorGroup.go @@ -33,7 +33,7 @@ type DisassociatePhoneNumbersFromVoiceConnectorGroupInput struct { // List of phone numbers, in E.164 format. // // This member is required. - E164PhoneNumbers []*string + E164PhoneNumbers []string // The Amazon Chime Voice Connector group ID. // @@ -45,7 +45,7 @@ type DisassociatePhoneNumbersFromVoiceConnectorGroupOutput struct { // If the action fails for one or more of the phone numbers in the request, a list // of the phone numbers is returned, along with error codes and error messages. - PhoneNumberErrors []*types.PhoneNumberError + PhoneNumberErrors []types.PhoneNumberError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_DisassociateSigninDelegateGroupsFromAccount.go b/service/chime/api_op_DisassociateSigninDelegateGroupsFromAccount.go index c0f2778fdcb..5847667ab4a 100644 --- a/service/chime/api_op_DisassociateSigninDelegateGroupsFromAccount.go +++ b/service/chime/api_op_DisassociateSigninDelegateGroupsFromAccount.go @@ -37,7 +37,7 @@ type DisassociateSigninDelegateGroupsFromAccountInput struct { // The sign-in delegate group names. // // This member is required. - GroupNames []*string + GroupNames []string } type DisassociateSigninDelegateGroupsFromAccountOutput struct { diff --git a/service/chime/api_op_InviteUsers.go b/service/chime/api_op_InviteUsers.go index 7b73ac1cf71..5ee2f9107ed 100644 --- a/service/chime/api_op_InviteUsers.go +++ b/service/chime/api_op_InviteUsers.go @@ -39,7 +39,7 @@ type InviteUsersInput struct { // The user email addresses to which to send the email invitation. // // This member is required. - UserEmailList []*string + UserEmailList []string // The user type. UserType types.UserType @@ -48,7 +48,7 @@ type InviteUsersInput struct { type InviteUsersOutput struct { // The email invitation details. - Invites []*types.Invite + Invites []types.Invite // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_ListAccounts.go b/service/chime/api_op_ListAccounts.go index 8fbece0e1b4..3f9b5d82006 100644 --- a/service/chime/api_op_ListAccounts.go +++ b/service/chime/api_op_ListAccounts.go @@ -48,7 +48,7 @@ type ListAccountsInput struct { type ListAccountsOutput struct { // List of Amazon Chime accounts and account details. - Accounts []*types.Account + Accounts []types.Account // The token to use to retrieve the next page of results. NextToken *string diff --git a/service/chime/api_op_ListAttendeeTags.go b/service/chime/api_op_ListAttendeeTags.go index 594b4f28333..eafad75382c 100644 --- a/service/chime/api_op_ListAttendeeTags.go +++ b/service/chime/api_op_ListAttendeeTags.go @@ -43,7 +43,7 @@ type ListAttendeeTagsInput struct { type ListAttendeeTagsOutput struct { // A list of tag key-value pairs. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_ListAttendees.go b/service/chime/api_op_ListAttendees.go index 222d3b04a7f..23c8182d01a 100644 --- a/service/chime/api_op_ListAttendees.go +++ b/service/chime/api_op_ListAttendees.go @@ -47,7 +47,7 @@ type ListAttendeesInput struct { type ListAttendeesOutput struct { // The Amazon Chime SDK attendee information. - Attendees []*types.Attendee + Attendees []types.Attendee // The token to use to retrieve the next page of results. NextToken *string diff --git a/service/chime/api_op_ListBots.go b/service/chime/api_op_ListBots.go index cad80284924..3cdcebc6df2 100644 --- a/service/chime/api_op_ListBots.go +++ b/service/chime/api_op_ListBots.go @@ -45,7 +45,7 @@ type ListBotsInput struct { type ListBotsOutput struct { // List of bots and bot details. - Bots []*types.Bot + Bots []types.Bot // The token to use to retrieve the next page of results. NextToken *string diff --git a/service/chime/api_op_ListMeetingTags.go b/service/chime/api_op_ListMeetingTags.go index 560de3bfd64..50e90066ffe 100644 --- a/service/chime/api_op_ListMeetingTags.go +++ b/service/chime/api_op_ListMeetingTags.go @@ -38,7 +38,7 @@ type ListMeetingTagsInput struct { type ListMeetingTagsOutput struct { // A list of tag key-value pairs. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_ListMeetings.go b/service/chime/api_op_ListMeetings.go index 7fc36ed390b..bfdea015fa8 100644 --- a/service/chime/api_op_ListMeetings.go +++ b/service/chime/api_op_ListMeetings.go @@ -42,7 +42,7 @@ type ListMeetingsInput struct { type ListMeetingsOutput struct { // The Amazon Chime SDK meeting information. - Meetings []*types.Meeting + Meetings []types.Meeting // The token to use to retrieve the next page of results. NextToken *string diff --git a/service/chime/api_op_ListPhoneNumberOrders.go b/service/chime/api_op_ListPhoneNumberOrders.go index 6bcb3851730..c2f018cb17f 100644 --- a/service/chime/api_op_ListPhoneNumberOrders.go +++ b/service/chime/api_op_ListPhoneNumberOrders.go @@ -42,7 +42,7 @@ type ListPhoneNumberOrdersOutput struct { NextToken *string // The phone number order details. - PhoneNumberOrders []*types.PhoneNumberOrder + PhoneNumberOrders []types.PhoneNumberOrder // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_ListPhoneNumbers.go b/service/chime/api_op_ListPhoneNumbers.go index c69c9fc8f42..b7c46d3cb98 100644 --- a/service/chime/api_op_ListPhoneNumbers.go +++ b/service/chime/api_op_ListPhoneNumbers.go @@ -55,7 +55,7 @@ type ListPhoneNumbersOutput struct { NextToken *string // The phone number details. - PhoneNumbers []*types.PhoneNumber + PhoneNumbers []types.PhoneNumber // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_ListProxySessions.go b/service/chime/api_op_ListProxySessions.go index e30d4ac98e0..cf3a05796df 100644 --- a/service/chime/api_op_ListProxySessions.go +++ b/service/chime/api_op_ListProxySessions.go @@ -50,7 +50,7 @@ type ListProxySessionsOutput struct { NextToken *string // The proxy session details. - ProxySessions []*types.ProxySession + ProxySessions []types.ProxySession // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_ListRoomMemberships.go b/service/chime/api_op_ListRoomMemberships.go index 00f4ffa9f1c..90b5e8cc135 100644 --- a/service/chime/api_op_ListRoomMemberships.go +++ b/service/chime/api_op_ListRoomMemberships.go @@ -53,7 +53,7 @@ type ListRoomMembershipsOutput struct { NextToken *string // The room membership details. - RoomMemberships []*types.RoomMembership + RoomMemberships []types.RoomMembership // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_ListRooms.go b/service/chime/api_op_ListRooms.go index 3c499c1d18b..39fb3dfdb65 100644 --- a/service/chime/api_op_ListRooms.go +++ b/service/chime/api_op_ListRooms.go @@ -52,7 +52,7 @@ type ListRoomsOutput struct { NextToken *string // The room details. - Rooms []*types.Room + Rooms []types.Room // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_ListTagsForResource.go b/service/chime/api_op_ListTagsForResource.go index c62503a32fb..67c91850ab8 100644 --- a/service/chime/api_op_ListTagsForResource.go +++ b/service/chime/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // A list of tag-key value pairs. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_ListUsers.go b/service/chime/api_op_ListUsers.go index 3eede25fa73..308bb8d87fd 100644 --- a/service/chime/api_op_ListUsers.go +++ b/service/chime/api_op_ListUsers.go @@ -55,7 +55,7 @@ type ListUsersOutput struct { NextToken *string // List of users and user details. - Users []*types.User + Users []types.User // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_ListVoiceConnectorGroups.go b/service/chime/api_op_ListVoiceConnectorGroups.go index 4906cac91c2..69c5d03ba6c 100644 --- a/service/chime/api_op_ListVoiceConnectorGroups.go +++ b/service/chime/api_op_ListVoiceConnectorGroups.go @@ -43,7 +43,7 @@ type ListVoiceConnectorGroupsOutput struct { NextToken *string // The details of the Amazon Chime Voice Connector groups. - VoiceConnectorGroups []*types.VoiceConnectorGroup + VoiceConnectorGroups []types.VoiceConnectorGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_ListVoiceConnectorTerminationCredentials.go b/service/chime/api_op_ListVoiceConnectorTerminationCredentials.go index f8aaa939163..e9769ef9910 100644 --- a/service/chime/api_op_ListVoiceConnectorTerminationCredentials.go +++ b/service/chime/api_op_ListVoiceConnectorTerminationCredentials.go @@ -37,7 +37,7 @@ type ListVoiceConnectorTerminationCredentialsInput struct { type ListVoiceConnectorTerminationCredentialsOutput struct { // A list of user names. - Usernames []*string + Usernames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_ListVoiceConnectors.go b/service/chime/api_op_ListVoiceConnectors.go index e5bf7955b3a..b3e7a71467b 100644 --- a/service/chime/api_op_ListVoiceConnectors.go +++ b/service/chime/api_op_ListVoiceConnectors.go @@ -42,7 +42,7 @@ type ListVoiceConnectorsOutput struct { NextToken *string // The details of the Amazon Chime Voice Connectors. - VoiceConnectors []*types.VoiceConnector + VoiceConnectors []types.VoiceConnector // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_PutVoiceConnectorProxy.go b/service/chime/api_op_PutVoiceConnectorProxy.go index 1ffdc1ec48f..62700a039c3 100644 --- a/service/chime/api_op_PutVoiceConnectorProxy.go +++ b/service/chime/api_op_PutVoiceConnectorProxy.go @@ -38,7 +38,7 @@ type PutVoiceConnectorProxyInput struct { // The countries for proxy phone numbers to be selected from. // // This member is required. - PhoneNumberPoolCountries []*string + PhoneNumberPoolCountries []string // The Amazon Chime voice connector ID. // diff --git a/service/chime/api_op_PutVoiceConnectorTerminationCredentials.go b/service/chime/api_op_PutVoiceConnectorTerminationCredentials.go index d2df703d42a..488a8b8e8b1 100644 --- a/service/chime/api_op_PutVoiceConnectorTerminationCredentials.go +++ b/service/chime/api_op_PutVoiceConnectorTerminationCredentials.go @@ -35,7 +35,7 @@ type PutVoiceConnectorTerminationCredentialsInput struct { VoiceConnectorId *string // The termination SIP credentials. - Credentials []*types.Credential + Credentials []types.Credential } type PutVoiceConnectorTerminationCredentialsOutput struct { diff --git a/service/chime/api_op_SearchAvailablePhoneNumbers.go b/service/chime/api_op_SearchAvailablePhoneNumbers.go index c2f7b85004f..1765881c072 100644 --- a/service/chime/api_op_SearchAvailablePhoneNumbers.go +++ b/service/chime/api_op_SearchAvailablePhoneNumbers.go @@ -53,7 +53,7 @@ type SearchAvailablePhoneNumbersInput struct { type SearchAvailablePhoneNumbersOutput struct { // List of phone numbers, in E.164 format. - E164PhoneNumbers []*string + E164PhoneNumbers []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/chime/api_op_TagAttendee.go b/service/chime/api_op_TagAttendee.go index fa0f7f5ca30..43ee6599c0b 100644 --- a/service/chime/api_op_TagAttendee.go +++ b/service/chime/api_op_TagAttendee.go @@ -42,7 +42,7 @@ type TagAttendeeInput struct { // The tag key-value pairs. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagAttendeeOutput struct { diff --git a/service/chime/api_op_TagMeeting.go b/service/chime/api_op_TagMeeting.go index 44576dceb90..6b5692a4c4d 100644 --- a/service/chime/api_op_TagMeeting.go +++ b/service/chime/api_op_TagMeeting.go @@ -37,7 +37,7 @@ type TagMeetingInput struct { // The tag key-value pairs. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagMeetingOutput struct { diff --git a/service/chime/api_op_TagResource.go b/service/chime/api_op_TagResource.go index d16dde26395..2866542b2b0 100644 --- a/service/chime/api_op_TagResource.go +++ b/service/chime/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // The tag key-value pairs. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/chime/api_op_UntagAttendee.go b/service/chime/api_op_UntagAttendee.go index 4ea945173cb..b528992397b 100644 --- a/service/chime/api_op_UntagAttendee.go +++ b/service/chime/api_op_UntagAttendee.go @@ -41,7 +41,7 @@ type UntagAttendeeInput struct { // The tag keys. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagAttendeeOutput struct { diff --git a/service/chime/api_op_UntagMeeting.go b/service/chime/api_op_UntagMeeting.go index 3a94339ed37..9076a225db1 100644 --- a/service/chime/api_op_UntagMeeting.go +++ b/service/chime/api_op_UntagMeeting.go @@ -36,7 +36,7 @@ type UntagMeetingInput struct { // The tag keys. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagMeetingOutput struct { diff --git a/service/chime/api_op_UntagResource.go b/service/chime/api_op_UntagResource.go index 755a20eda18..49620dd134b 100644 --- a/service/chime/api_op_UntagResource.go +++ b/service/chime/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The tag keys. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/chime/api_op_UpdateVoiceConnectorGroup.go b/service/chime/api_op_UpdateVoiceConnectorGroup.go index 096bdf0243e..d04d2c2960f 100644 --- a/service/chime/api_op_UpdateVoiceConnectorGroup.go +++ b/service/chime/api_op_UpdateVoiceConnectorGroup.go @@ -43,7 +43,7 @@ type UpdateVoiceConnectorGroupInput struct { // The VoiceConnectorItems to associate with the group. // // This member is required. - VoiceConnectorItems []*types.VoiceConnectorItem + VoiceConnectorItems []types.VoiceConnectorItem } type UpdateVoiceConnectorGroupOutput struct { diff --git a/service/chime/deserializers.go b/service/chime/deserializers.go index 15d30ed9633..97d3e3e30f7 100644 --- a/service/chime/deserializers.go +++ b/service/chime/deserializers.go @@ -7535,7 +7535,7 @@ func awsRestjson1_deserializeOpDocumentGetPhoneNumberSettingsOutput(v **GetPhone if !ok { return fmt.Errorf("expected CallingName to be of type string, got %T instead", value) } - sv.CallingName = &jtv + sv.CallingName = ptr.String(jtv) } case "CallingNameUpdatedTimestamp": @@ -7548,7 +7548,7 @@ func awsRestjson1_deserializeOpDocumentGetPhoneNumberSettingsOutput(v **GetPhone if err != nil { return err } - sv.CallingNameUpdatedTimestamp = &t + sv.CallingNameUpdatedTimestamp = ptr.Time(t) } default: @@ -7886,7 +7886,7 @@ func awsRestjson1_deserializeOpDocumentGetRetentionSettingsOutput(v **GetRetenti if err != nil { return err } - sv.InitiateDeletionTimestamp = &t + sv.InitiateDeletionTimestamp = ptr.Time(t) } case "RetentionSettings": @@ -10210,7 +10210,7 @@ func awsRestjson1_deserializeOpDocumentListAccountsOutput(v **ListAccountsOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10384,7 +10384,7 @@ func awsRestjson1_deserializeOpDocumentListAttendeesOutput(v **ListAttendeesOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10723,7 +10723,7 @@ func awsRestjson1_deserializeOpDocumentListBotsOutput(v **ListBotsOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10894,7 +10894,7 @@ func awsRestjson1_deserializeOpDocumentListMeetingsOutput(v **ListMeetingsOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11225,7 +11225,7 @@ func awsRestjson1_deserializeOpDocumentListPhoneNumberOrdersOutput(v **ListPhone if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PhoneNumberOrders": @@ -11396,7 +11396,7 @@ func awsRestjson1_deserializeOpDocumentListPhoneNumbersOutput(v **ListPhoneNumbe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PhoneNumbers": @@ -11570,7 +11570,7 @@ func awsRestjson1_deserializeOpDocumentListProxySessionsOutput(v **ListProxySess if !ok { return fmt.Errorf("expected NextTokenString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ProxySessions": @@ -11744,7 +11744,7 @@ func awsRestjson1_deserializeOpDocumentListRoomMembershipsOutput(v **ListRoomMem if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RoomMemberships": @@ -11918,7 +11918,7 @@ func awsRestjson1_deserializeOpDocumentListRoomsOutput(v **ListRoomsOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Rooms": @@ -12254,7 +12254,7 @@ func awsRestjson1_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Users": @@ -12425,7 +12425,7 @@ func awsRestjson1_deserializeOpDocumentListVoiceConnectorGroupsOutput(v **ListVo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "VoiceConnectorGroups": @@ -12596,7 +12596,7 @@ func awsRestjson1_deserializeOpDocumentListVoiceConnectorsOutput(v **ListVoiceCo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "VoiceConnectors": @@ -13208,7 +13208,7 @@ func awsRestjson1_deserializeOpDocumentPutRetentionSettingsOutput(v **PutRetenti if err != nil { return err } - sv.InitiateDeletionTimestamp = &t + sv.InitiateDeletionTimestamp = ptr.Time(t) } case "RetentionSettings": @@ -18115,7 +18115,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18155,7 +18155,7 @@ func awsRestjson1_deserializeDocumentAccount(v **types.Account, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "AccountType": @@ -18173,7 +18173,7 @@ func awsRestjson1_deserializeDocumentAccount(v **types.Account, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AwsAccountId = &jtv + sv.AwsAccountId = ptr.String(jtv) } case "CreatedTimestamp": @@ -18186,7 +18186,7 @@ func awsRestjson1_deserializeDocumentAccount(v **types.Account, value interface{ if err != nil { return err } - sv.CreatedTimestamp = &t + sv.CreatedTimestamp = ptr.Time(t) } case "DefaultLicense": @@ -18204,7 +18204,7 @@ func awsRestjson1_deserializeDocumentAccount(v **types.Account, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SigninDelegateGroups": @@ -18226,7 +18226,7 @@ func awsRestjson1_deserializeDocumentAccount(v **types.Account, value interface{ return nil } -func awsRestjson1_deserializeDocumentAccountList(v *[]*types.Account, value interface{}) error { +func awsRestjson1_deserializeDocumentAccountList(v *[]types.Account, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18239,18 +18239,20 @@ func awsRestjson1_deserializeDocumentAccountList(v *[]*types.Account, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Account + var cv []types.Account if *v == nil { - cv = []*types.Account{} + cv = []types.Account{} } else { cv = *v } for _, value := range shape { - var col *types.Account - if err := awsRestjson1_deserializeDocumentAccount(&col, value); err != nil { + var col types.Account + destAddr := &col + if err := awsRestjson1_deserializeDocumentAccount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18286,7 +18288,7 @@ func awsRestjson1_deserializeDocumentAccountSettings(v **types.AccountSettings, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DisableRemoteControl = &jtv + sv.DisableRemoteControl = ptr.Bool(jtv) } case "EnableDialOut": @@ -18295,7 +18297,7 @@ func awsRestjson1_deserializeDocumentAccountSettings(v **types.AccountSettings, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableDialOut = &jtv + sv.EnableDialOut = ptr.Bool(jtv) } default: @@ -18335,7 +18337,7 @@ func awsRestjson1_deserializeDocumentAlexaForBusinessMetadata(v **types.AlexaFor if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.AlexaForBusinessRoomArn = &jtv + sv.AlexaForBusinessRoomArn = ptr.String(jtv) } case "IsAlexaForBusinessEnabled": @@ -18344,7 +18346,7 @@ func awsRestjson1_deserializeDocumentAlexaForBusinessMetadata(v **types.AlexaFor if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsAlexaForBusinessEnabled = &jtv + sv.IsAlexaForBusinessEnabled = ptr.Bool(jtv) } default: @@ -18384,7 +18386,7 @@ func awsRestjson1_deserializeDocumentAttendee(v **types.Attendee, value interfac if !ok { return fmt.Errorf("expected GuidString to be of type string, got %T instead", value) } - sv.AttendeeId = &jtv + sv.AttendeeId = ptr.String(jtv) } case "ExternalUserId": @@ -18393,7 +18395,7 @@ func awsRestjson1_deserializeDocumentAttendee(v **types.Attendee, value interfac if !ok { return fmt.Errorf("expected ExternalUserIdType to be of type string, got %T instead", value) } - sv.ExternalUserId = &jtv + sv.ExternalUserId = ptr.String(jtv) } case "JoinToken": @@ -18402,7 +18404,7 @@ func awsRestjson1_deserializeDocumentAttendee(v **types.Attendee, value interfac if !ok { return fmt.Errorf("expected JoinTokenString to be of type string, got %T instead", value) } - sv.JoinToken = &jtv + sv.JoinToken = ptr.String(jtv) } default: @@ -18414,7 +18416,7 @@ func awsRestjson1_deserializeDocumentAttendee(v **types.Attendee, value interfac return nil } -func awsRestjson1_deserializeDocumentAttendeeList(v *[]*types.Attendee, value interface{}) error { +func awsRestjson1_deserializeDocumentAttendeeList(v *[]types.Attendee, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18427,18 +18429,20 @@ func awsRestjson1_deserializeDocumentAttendeeList(v *[]*types.Attendee, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Attendee + var cv []types.Attendee if *v == nil { - cv = []*types.Attendee{} + cv = []types.Attendee{} } else { cv = *v } for _, value := range shape { - var col *types.Attendee - if err := awsRestjson1_deserializeDocumentAttendee(&col, value); err != nil { + var col types.Attendee + destAddr := &col + if err := awsRestjson1_deserializeDocumentAttendee(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18483,7 +18487,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18495,7 +18499,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc return nil } -func awsRestjson1_deserializeDocumentBatchCreateAttendeeErrorList(v *[]*types.CreateAttendeeError, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchCreateAttendeeErrorList(v *[]types.CreateAttendeeError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18508,18 +18512,20 @@ func awsRestjson1_deserializeDocumentBatchCreateAttendeeErrorList(v *[]*types.Cr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CreateAttendeeError + var cv []types.CreateAttendeeError if *v == nil { - cv = []*types.CreateAttendeeError{} + cv = []types.CreateAttendeeError{} } else { cv = *v } for _, value := range shape { - var col *types.CreateAttendeeError - if err := awsRestjson1_deserializeDocumentCreateAttendeeError(&col, value); err != nil { + var col types.CreateAttendeeError + destAddr := &col + if err := awsRestjson1_deserializeDocumentCreateAttendeeError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18555,7 +18561,7 @@ func awsRestjson1_deserializeDocumentBot(v **types.Bot, value interface{}) error if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.BotEmail = &jtv + sv.BotEmail = ptr.String(jtv) } case "BotId": @@ -18564,7 +18570,7 @@ func awsRestjson1_deserializeDocumentBot(v **types.Bot, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BotId = &jtv + sv.BotId = ptr.String(jtv) } case "BotType": @@ -18586,7 +18592,7 @@ func awsRestjson1_deserializeDocumentBot(v **types.Bot, value interface{}) error if err != nil { return err } - sv.CreatedTimestamp = &t + sv.CreatedTimestamp = ptr.Time(t) } case "Disabled": @@ -18595,7 +18601,7 @@ func awsRestjson1_deserializeDocumentBot(v **types.Bot, value interface{}) error if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.Disabled = &jtv + sv.Disabled = ptr.Bool(jtv) } case "DisplayName": @@ -18604,7 +18610,7 @@ func awsRestjson1_deserializeDocumentBot(v **types.Bot, value interface{}) error if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "SecurityToken": @@ -18613,7 +18619,7 @@ func awsRestjson1_deserializeDocumentBot(v **types.Bot, value interface{}) error if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.SecurityToken = &jtv + sv.SecurityToken = ptr.String(jtv) } case "UpdatedTimestamp": @@ -18626,7 +18632,7 @@ func awsRestjson1_deserializeDocumentBot(v **types.Bot, value interface{}) error if err != nil { return err } - sv.UpdatedTimestamp = &t + sv.UpdatedTimestamp = ptr.Time(t) } case "UserId": @@ -18635,7 +18641,7 @@ func awsRestjson1_deserializeDocumentBot(v **types.Bot, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } default: @@ -18647,7 +18653,7 @@ func awsRestjson1_deserializeDocumentBot(v **types.Bot, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentBotList(v *[]*types.Bot, value interface{}) error { +func awsRestjson1_deserializeDocumentBotList(v *[]types.Bot, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18660,18 +18666,20 @@ func awsRestjson1_deserializeDocumentBotList(v *[]*types.Bot, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Bot + var cv []types.Bot if *v == nil { - cv = []*types.Bot{} + cv = []types.Bot{} } else { cv = *v } for _, value := range shape { - var col *types.Bot - if err := awsRestjson1_deserializeDocumentBot(&col, value); err != nil { + var col types.Bot + destAddr := &col + if err := awsRestjson1_deserializeDocumentBot(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18707,7 +18715,7 @@ func awsRestjson1_deserializeDocumentBusinessCallingSettings(v **types.BusinessC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CdrBucket = &jtv + sv.CdrBucket = ptr.String(jtv) } default: @@ -18719,7 +18727,7 @@ func awsRestjson1_deserializeDocumentBusinessCallingSettings(v **types.BusinessC return nil } -func awsRestjson1_deserializeDocumentCallingRegionList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentCallingRegionList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18732,21 +18740,21 @@ func awsRestjson1_deserializeDocumentCallingRegionList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected CallingRegion to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -18828,7 +18836,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18912,7 +18920,7 @@ func awsRestjson1_deserializeDocumentCreateAttendeeError(v **types.CreateAttende if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -18921,7 +18929,7 @@ func awsRestjson1_deserializeDocumentCreateAttendeeError(v **types.CreateAttende if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "ExternalUserId": @@ -18930,7 +18938,7 @@ func awsRestjson1_deserializeDocumentCreateAttendeeError(v **types.CreateAttende if !ok { return fmt.Errorf("expected ExternalUserIdType to be of type string, got %T instead", value) } - sv.ExternalUserId = &jtv + sv.ExternalUserId = ptr.String(jtv) } default: @@ -18970,7 +18978,7 @@ func awsRestjson1_deserializeDocumentDNISEmergencyCallingConfiguration(v **types if !ok { return fmt.Errorf("expected Alpha2CountryCode to be of type string, got %T instead", value) } - sv.CallingCountry = &jtv + sv.CallingCountry = ptr.String(jtv) } case "EmergencyPhoneNumber": @@ -18979,7 +18987,7 @@ func awsRestjson1_deserializeDocumentDNISEmergencyCallingConfiguration(v **types if !ok { return fmt.Errorf("expected E164PhoneNumber to be of type string, got %T instead", value) } - sv.EmergencyPhoneNumber = &jtv + sv.EmergencyPhoneNumber = ptr.String(jtv) } case "TestPhoneNumber": @@ -18988,7 +18996,7 @@ func awsRestjson1_deserializeDocumentDNISEmergencyCallingConfiguration(v **types if !ok { return fmt.Errorf("expected E164PhoneNumber to be of type string, got %T instead", value) } - sv.TestPhoneNumber = &jtv + sv.TestPhoneNumber = ptr.String(jtv) } default: @@ -19000,7 +19008,7 @@ func awsRestjson1_deserializeDocumentDNISEmergencyCallingConfiguration(v **types return nil } -func awsRestjson1_deserializeDocumentDNISEmergencyCallingConfigurationList(v *[]*types.DNISEmergencyCallingConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDNISEmergencyCallingConfigurationList(v *[]types.DNISEmergencyCallingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19013,18 +19021,20 @@ func awsRestjson1_deserializeDocumentDNISEmergencyCallingConfigurationList(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DNISEmergencyCallingConfiguration + var cv []types.DNISEmergencyCallingConfiguration if *v == nil { - cv = []*types.DNISEmergencyCallingConfiguration{} + cv = []types.DNISEmergencyCallingConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.DNISEmergencyCallingConfiguration - if err := awsRestjson1_deserializeDocumentDNISEmergencyCallingConfiguration(&col, value); err != nil { + var col types.DNISEmergencyCallingConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentDNISEmergencyCallingConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19032,7 +19042,7 @@ func awsRestjson1_deserializeDocumentDNISEmergencyCallingConfigurationList(v *[] return nil } -func awsRestjson1_deserializeDocumentE164PhoneNumberList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentE164PhoneNumberList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19045,21 +19055,21 @@ func awsRestjson1_deserializeDocumentE164PhoneNumberList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected E164PhoneNumber to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -19132,7 +19142,7 @@ func awsRestjson1_deserializeDocumentEventsConfiguration(v **types.EventsConfigu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BotId = &jtv + sv.BotId = ptr.String(jtv) } case "LambdaFunctionArn": @@ -19141,7 +19151,7 @@ func awsRestjson1_deserializeDocumentEventsConfiguration(v **types.EventsConfigu if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.LambdaFunctionArn = &jtv + sv.LambdaFunctionArn = ptr.String(jtv) } case "OutboundEventsHTTPSEndpoint": @@ -19150,7 +19160,7 @@ func awsRestjson1_deserializeDocumentEventsConfiguration(v **types.EventsConfigu if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.OutboundEventsHTTPSEndpoint = &jtv + sv.OutboundEventsHTTPSEndpoint = ptr.String(jtv) } default: @@ -19199,7 +19209,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19239,7 +19249,7 @@ func awsRestjson1_deserializeDocumentGeoMatchParams(v **types.GeoMatchParams, va if !ok { return fmt.Errorf("expected AreaCode to be of type string, got %T instead", value) } - sv.AreaCode = &jtv + sv.AreaCode = ptr.String(jtv) } case "Country": @@ -19248,7 +19258,7 @@ func awsRestjson1_deserializeDocumentGeoMatchParams(v **types.GeoMatchParams, va if !ok { return fmt.Errorf("expected Country to be of type string, got %T instead", value) } - sv.Country = &jtv + sv.Country = ptr.String(jtv) } default: @@ -19288,7 +19298,7 @@ func awsRestjson1_deserializeDocumentInvite(v **types.Invite, value interface{}) if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "EmailStatus": @@ -19306,7 +19316,7 @@ func awsRestjson1_deserializeDocumentInvite(v **types.Invite, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InviteId = &jtv + sv.InviteId = ptr.String(jtv) } case "Status": @@ -19327,7 +19337,7 @@ func awsRestjson1_deserializeDocumentInvite(v **types.Invite, value interface{}) return nil } -func awsRestjson1_deserializeDocumentInviteList(v *[]*types.Invite, value interface{}) error { +func awsRestjson1_deserializeDocumentInviteList(v *[]types.Invite, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19340,18 +19350,20 @@ func awsRestjson1_deserializeDocumentInviteList(v *[]*types.Invite, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Invite + var cv []types.Invite if *v == nil { - cv = []*types.Invite{} + cv = []types.Invite{} } else { cv = *v } for _, value := range shape { - var col *types.Invite - if err := awsRestjson1_deserializeDocumentInvite(&col, value); err != nil { + var col types.Invite + destAddr := &col + if err := awsRestjson1_deserializeDocumentInvite(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19423,7 +19435,7 @@ func awsRestjson1_deserializeDocumentLoggingConfiguration(v **types.LoggingConfi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableSIPLogs = &jtv + sv.EnableSIPLogs = ptr.Bool(jtv) } default: @@ -19463,7 +19475,7 @@ func awsRestjson1_deserializeDocumentMediaPlacement(v **types.MediaPlacement, va if !ok { return fmt.Errorf("expected UriType to be of type string, got %T instead", value) } - sv.AudioFallbackUrl = &jtv + sv.AudioFallbackUrl = ptr.String(jtv) } case "AudioHostUrl": @@ -19472,7 +19484,7 @@ func awsRestjson1_deserializeDocumentMediaPlacement(v **types.MediaPlacement, va if !ok { return fmt.Errorf("expected UriType to be of type string, got %T instead", value) } - sv.AudioHostUrl = &jtv + sv.AudioHostUrl = ptr.String(jtv) } case "ScreenDataUrl": @@ -19481,7 +19493,7 @@ func awsRestjson1_deserializeDocumentMediaPlacement(v **types.MediaPlacement, va if !ok { return fmt.Errorf("expected UriType to be of type string, got %T instead", value) } - sv.ScreenDataUrl = &jtv + sv.ScreenDataUrl = ptr.String(jtv) } case "ScreenSharingUrl": @@ -19490,7 +19502,7 @@ func awsRestjson1_deserializeDocumentMediaPlacement(v **types.MediaPlacement, va if !ok { return fmt.Errorf("expected UriType to be of type string, got %T instead", value) } - sv.ScreenSharingUrl = &jtv + sv.ScreenSharingUrl = ptr.String(jtv) } case "ScreenViewingUrl": @@ -19499,7 +19511,7 @@ func awsRestjson1_deserializeDocumentMediaPlacement(v **types.MediaPlacement, va if !ok { return fmt.Errorf("expected UriType to be of type string, got %T instead", value) } - sv.ScreenViewingUrl = &jtv + sv.ScreenViewingUrl = ptr.String(jtv) } case "SignalingUrl": @@ -19508,7 +19520,7 @@ func awsRestjson1_deserializeDocumentMediaPlacement(v **types.MediaPlacement, va if !ok { return fmt.Errorf("expected UriType to be of type string, got %T instead", value) } - sv.SignalingUrl = &jtv + sv.SignalingUrl = ptr.String(jtv) } case "TurnControlUrl": @@ -19517,7 +19529,7 @@ func awsRestjson1_deserializeDocumentMediaPlacement(v **types.MediaPlacement, va if !ok { return fmt.Errorf("expected UriType to be of type string, got %T instead", value) } - sv.TurnControlUrl = &jtv + sv.TurnControlUrl = ptr.String(jtv) } default: @@ -19557,7 +19569,7 @@ func awsRestjson1_deserializeDocumentMeeting(v **types.Meeting, value interface{ if !ok { return fmt.Errorf("expected ExternalMeetingIdType to be of type string, got %T instead", value) } - sv.ExternalMeetingId = &jtv + sv.ExternalMeetingId = ptr.String(jtv) } case "MediaPlacement": @@ -19571,7 +19583,7 @@ func awsRestjson1_deserializeDocumentMeeting(v **types.Meeting, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MediaRegion = &jtv + sv.MediaRegion = ptr.String(jtv) } case "MeetingId": @@ -19580,7 +19592,7 @@ func awsRestjson1_deserializeDocumentMeeting(v **types.Meeting, value interface{ if !ok { return fmt.Errorf("expected GuidString to be of type string, got %T instead", value) } - sv.MeetingId = &jtv + sv.MeetingId = ptr.String(jtv) } default: @@ -19592,7 +19604,7 @@ func awsRestjson1_deserializeDocumentMeeting(v **types.Meeting, value interface{ return nil } -func awsRestjson1_deserializeDocumentMeetingList(v *[]*types.Meeting, value interface{}) error { +func awsRestjson1_deserializeDocumentMeetingList(v *[]types.Meeting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19605,18 +19617,20 @@ func awsRestjson1_deserializeDocumentMeetingList(v *[]*types.Meeting, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Meeting + var cv []types.Meeting if *v == nil { - cv = []*types.Meeting{} + cv = []types.Meeting{} } else { cv = *v } for _, value := range shape { - var col *types.Meeting - if err := awsRestjson1_deserializeDocumentMeeting(&col, value); err != nil { + var col types.Meeting + destAddr := &col + if err := awsRestjson1_deserializeDocumentMeeting(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19652,7 +19666,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "Email": @@ -19661,7 +19675,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "FullName": @@ -19670,7 +19684,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.FullName = &jtv + sv.FullName = ptr.String(jtv) } case "MemberId": @@ -19679,7 +19693,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MemberId = &jtv + sv.MemberId = ptr.String(jtv) } case "MemberType": @@ -19737,7 +19751,7 @@ func awsRestjson1_deserializeDocumentMemberError(v **types.MemberError, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "MemberId": @@ -19746,7 +19760,7 @@ func awsRestjson1_deserializeDocumentMemberError(v **types.MemberError, value in if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MemberId = &jtv + sv.MemberId = ptr.String(jtv) } default: @@ -19758,7 +19772,7 @@ func awsRestjson1_deserializeDocumentMemberError(v **types.MemberError, value in return nil } -func awsRestjson1_deserializeDocumentMemberErrorList(v *[]*types.MemberError, value interface{}) error { +func awsRestjson1_deserializeDocumentMemberErrorList(v *[]types.MemberError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19771,18 +19785,20 @@ func awsRestjson1_deserializeDocumentMemberErrorList(v *[]*types.MemberError, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MemberError + var cv []types.MemberError if *v == nil { - cv = []*types.MemberError{} + cv = []types.MemberError{} } else { cv = *v } for _, value := range shape { - var col *types.MemberError - if err := awsRestjson1_deserializeDocumentMemberError(&col, value); err != nil { + var col types.MemberError + destAddr := &col + if err := awsRestjson1_deserializeDocumentMemberError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19827,7 +19843,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19867,7 +19883,7 @@ func awsRestjson1_deserializeDocumentOrderedPhoneNumber(v **types.OrderedPhoneNu if !ok { return fmt.Errorf("expected E164PhoneNumber to be of type string, got %T instead", value) } - sv.E164PhoneNumber = &jtv + sv.E164PhoneNumber = ptr.String(jtv) } case "Status": @@ -19888,7 +19904,7 @@ func awsRestjson1_deserializeDocumentOrderedPhoneNumber(v **types.OrderedPhoneNu return nil } -func awsRestjson1_deserializeDocumentOrderedPhoneNumberList(v *[]*types.OrderedPhoneNumber, value interface{}) error { +func awsRestjson1_deserializeDocumentOrderedPhoneNumberList(v *[]types.OrderedPhoneNumber, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19901,18 +19917,20 @@ func awsRestjson1_deserializeDocumentOrderedPhoneNumberList(v *[]*types.OrderedP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrderedPhoneNumber + var cv []types.OrderedPhoneNumber if *v == nil { - cv = []*types.OrderedPhoneNumber{} + cv = []types.OrderedPhoneNumber{} } else { cv = *v } for _, value := range shape { - var col *types.OrderedPhoneNumber - if err := awsRestjson1_deserializeDocumentOrderedPhoneNumber(&col, value); err != nil { + var col types.OrderedPhoneNumber + destAddr := &col + if err := awsRestjson1_deserializeDocumentOrderedPhoneNumber(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19948,7 +19966,7 @@ func awsRestjson1_deserializeDocumentOrigination(v **types.Origination, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Disabled = &jtv + sv.Disabled = ptr.Bool(jtv) } case "Routes": @@ -19993,7 +20011,7 @@ func awsRestjson1_deserializeDocumentOriginationRoute(v **types.OriginationRoute if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Host = &jtv + sv.Host = ptr.String(jtv) } case "Port": @@ -20053,7 +20071,7 @@ func awsRestjson1_deserializeDocumentOriginationRoute(v **types.OriginationRoute return nil } -func awsRestjson1_deserializeDocumentOriginationRouteList(v *[]*types.OriginationRoute, value interface{}) error { +func awsRestjson1_deserializeDocumentOriginationRouteList(v *[]types.OriginationRoute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20066,18 +20084,20 @@ func awsRestjson1_deserializeDocumentOriginationRouteList(v *[]*types.Originatio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OriginationRoute + var cv []types.OriginationRoute if *v == nil { - cv = []*types.OriginationRoute{} + cv = []types.OriginationRoute{} } else { cv = *v } for _, value := range shape { - var col *types.OriginationRoute - if err := awsRestjson1_deserializeDocumentOriginationRoute(&col, value); err != nil { + var col types.OriginationRoute + destAddr := &col + if err := awsRestjson1_deserializeDocumentOriginationRoute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20113,7 +20133,7 @@ func awsRestjson1_deserializeDocumentParticipant(v **types.Participant, value in if !ok { return fmt.Errorf("expected E164PhoneNumber to be of type string, got %T instead", value) } - sv.PhoneNumber = &jtv + sv.PhoneNumber = ptr.String(jtv) } case "ProxyPhoneNumber": @@ -20122,7 +20142,7 @@ func awsRestjson1_deserializeDocumentParticipant(v **types.Participant, value in if !ok { return fmt.Errorf("expected E164PhoneNumber to be of type string, got %T instead", value) } - sv.ProxyPhoneNumber = &jtv + sv.ProxyPhoneNumber = ptr.String(jtv) } default: @@ -20134,7 +20154,7 @@ func awsRestjson1_deserializeDocumentParticipant(v **types.Participant, value in return nil } -func awsRestjson1_deserializeDocumentParticipants(v *[]*types.Participant, value interface{}) error { +func awsRestjson1_deserializeDocumentParticipants(v *[]types.Participant, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20147,18 +20167,20 @@ func awsRestjson1_deserializeDocumentParticipants(v *[]*types.Participant, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Participant + var cv []types.Participant if *v == nil { - cv = []*types.Participant{} + cv = []types.Participant{} } else { cv = *v } for _, value := range shape { - var col *types.Participant - if err := awsRestjson1_deserializeDocumentParticipant(&col, value); err != nil { + var col types.Participant + destAddr := &col + if err := awsRestjson1_deserializeDocumentParticipant(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20199,7 +20221,7 @@ func awsRestjson1_deserializeDocumentPhoneNumber(v **types.PhoneNumber, value in if !ok { return fmt.Errorf("expected CallingName to be of type string, got %T instead", value) } - sv.CallingName = &jtv + sv.CallingName = ptr.String(jtv) } case "CallingNameStatus": @@ -20226,7 +20248,7 @@ func awsRestjson1_deserializeDocumentPhoneNumber(v **types.PhoneNumber, value in if err != nil { return err } - sv.CreatedTimestamp = &t + sv.CreatedTimestamp = ptr.Time(t) } case "DeletionTimestamp": @@ -20239,7 +20261,7 @@ func awsRestjson1_deserializeDocumentPhoneNumber(v **types.PhoneNumber, value in if err != nil { return err } - sv.DeletionTimestamp = &t + sv.DeletionTimestamp = ptr.Time(t) } case "E164PhoneNumber": @@ -20248,7 +20270,7 @@ func awsRestjson1_deserializeDocumentPhoneNumber(v **types.PhoneNumber, value in if !ok { return fmt.Errorf("expected E164PhoneNumber to be of type string, got %T instead", value) } - sv.E164PhoneNumber = &jtv + sv.E164PhoneNumber = ptr.String(jtv) } case "PhoneNumberId": @@ -20257,7 +20279,7 @@ func awsRestjson1_deserializeDocumentPhoneNumber(v **types.PhoneNumber, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PhoneNumberId = &jtv + sv.PhoneNumberId = ptr.String(jtv) } case "ProductType": @@ -20297,7 +20319,7 @@ func awsRestjson1_deserializeDocumentPhoneNumber(v **types.PhoneNumber, value in if err != nil { return err } - sv.UpdatedTimestamp = &t + sv.UpdatedTimestamp = ptr.Time(t) } default: @@ -20341,7 +20363,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberAssociation(v **types.PhoneNumbe if err != nil { return err } - sv.AssociatedTimestamp = &t + sv.AssociatedTimestamp = ptr.Time(t) } case "Name": @@ -20359,7 +20381,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberAssociation(v **types.PhoneNumbe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -20371,7 +20393,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberAssociation(v **types.PhoneNumbe return nil } -func awsRestjson1_deserializeDocumentPhoneNumberAssociationList(v *[]*types.PhoneNumberAssociation, value interface{}) error { +func awsRestjson1_deserializeDocumentPhoneNumberAssociationList(v *[]types.PhoneNumberAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20384,18 +20406,20 @@ func awsRestjson1_deserializeDocumentPhoneNumberAssociationList(v *[]*types.Phon return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PhoneNumberAssociation + var cv []types.PhoneNumberAssociation if *v == nil { - cv = []*types.PhoneNumberAssociation{} + cv = []types.PhoneNumberAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.PhoneNumberAssociation - if err := awsRestjson1_deserializeDocumentPhoneNumberAssociation(&col, value); err != nil { + var col types.PhoneNumberAssociation + destAddr := &col + if err := awsRestjson1_deserializeDocumentPhoneNumberAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20431,7 +20455,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberCapabilities(v **types.PhoneNumb if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.InboundCall = &jtv + sv.InboundCall = ptr.Bool(jtv) } case "InboundMMS": @@ -20440,7 +20464,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberCapabilities(v **types.PhoneNumb if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.InboundMMS = &jtv + sv.InboundMMS = ptr.Bool(jtv) } case "InboundSMS": @@ -20449,7 +20473,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberCapabilities(v **types.PhoneNumb if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.InboundSMS = &jtv + sv.InboundSMS = ptr.Bool(jtv) } case "OutboundCall": @@ -20458,7 +20482,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberCapabilities(v **types.PhoneNumb if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.OutboundCall = &jtv + sv.OutboundCall = ptr.Bool(jtv) } case "OutboundMMS": @@ -20467,7 +20491,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberCapabilities(v **types.PhoneNumb if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.OutboundMMS = &jtv + sv.OutboundMMS = ptr.Bool(jtv) } case "OutboundSMS": @@ -20476,7 +20500,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberCapabilities(v **types.PhoneNumb if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.OutboundSMS = &jtv + sv.OutboundSMS = ptr.Bool(jtv) } default: @@ -20525,7 +20549,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberError(v **types.PhoneNumberError if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "PhoneNumberId": @@ -20534,7 +20558,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberError(v **types.PhoneNumberError if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PhoneNumberId = &jtv + sv.PhoneNumberId = ptr.String(jtv) } default: @@ -20546,7 +20570,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberError(v **types.PhoneNumberError return nil } -func awsRestjson1_deserializeDocumentPhoneNumberErrorList(v *[]*types.PhoneNumberError, value interface{}) error { +func awsRestjson1_deserializeDocumentPhoneNumberErrorList(v *[]types.PhoneNumberError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20559,18 +20583,20 @@ func awsRestjson1_deserializeDocumentPhoneNumberErrorList(v *[]*types.PhoneNumbe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PhoneNumberError + var cv []types.PhoneNumberError if *v == nil { - cv = []*types.PhoneNumberError{} + cv = []types.PhoneNumberError{} } else { cv = *v } for _, value := range shape { - var col *types.PhoneNumberError - if err := awsRestjson1_deserializeDocumentPhoneNumberError(&col, value); err != nil { + var col types.PhoneNumberError + destAddr := &col + if err := awsRestjson1_deserializeDocumentPhoneNumberError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20578,7 +20604,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberErrorList(v *[]*types.PhoneNumbe return nil } -func awsRestjson1_deserializeDocumentPhoneNumberList(v *[]*types.PhoneNumber, value interface{}) error { +func awsRestjson1_deserializeDocumentPhoneNumberList(v *[]types.PhoneNumber, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20591,18 +20617,20 @@ func awsRestjson1_deserializeDocumentPhoneNumberList(v *[]*types.PhoneNumber, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PhoneNumber + var cv []types.PhoneNumber if *v == nil { - cv = []*types.PhoneNumber{} + cv = []types.PhoneNumber{} } else { cv = *v } for _, value := range shape { - var col *types.PhoneNumber - if err := awsRestjson1_deserializeDocumentPhoneNumber(&col, value); err != nil { + var col types.PhoneNumber + destAddr := &col + if err := awsRestjson1_deserializeDocumentPhoneNumber(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20642,7 +20670,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberOrder(v **types.PhoneNumberOrder if err != nil { return err } - sv.CreatedTimestamp = &t + sv.CreatedTimestamp = ptr.Time(t) } case "OrderedPhoneNumbers": @@ -20656,7 +20684,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberOrder(v **types.PhoneNumberOrder if !ok { return fmt.Errorf("expected GuidString to be of type string, got %T instead", value) } - sv.PhoneNumberOrderId = &jtv + sv.PhoneNumberOrderId = ptr.String(jtv) } case "ProductType": @@ -20687,7 +20715,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberOrder(v **types.PhoneNumberOrder if err != nil { return err } - sv.UpdatedTimestamp = &t + sv.UpdatedTimestamp = ptr.Time(t) } default: @@ -20699,7 +20727,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberOrder(v **types.PhoneNumberOrder return nil } -func awsRestjson1_deserializeDocumentPhoneNumberOrderList(v *[]*types.PhoneNumberOrder, value interface{}) error { +func awsRestjson1_deserializeDocumentPhoneNumberOrderList(v *[]types.PhoneNumberOrder, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20712,18 +20740,20 @@ func awsRestjson1_deserializeDocumentPhoneNumberOrderList(v *[]*types.PhoneNumbe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PhoneNumberOrder + var cv []types.PhoneNumberOrder if *v == nil { - cv = []*types.PhoneNumberOrder{} + cv = []types.PhoneNumberOrder{} } else { cv = *v } for _, value := range shape { - var col *types.PhoneNumberOrder - if err := awsRestjson1_deserializeDocumentPhoneNumberOrder(&col, value); err != nil { + var col types.PhoneNumberOrder + destAddr := &col + if err := awsRestjson1_deserializeDocumentPhoneNumberOrder(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20772,7 +20802,7 @@ func awsRestjson1_deserializeDocumentProxy(v **types.Proxy, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Disabled = &jtv + sv.Disabled = ptr.Bool(jtv) } case "FallBackPhoneNumber": @@ -20781,7 +20811,7 @@ func awsRestjson1_deserializeDocumentProxy(v **types.Proxy, value interface{}) e if !ok { return fmt.Errorf("expected E164PhoneNumber to be of type string, got %T instead", value) } - sv.FallBackPhoneNumber = &jtv + sv.FallBackPhoneNumber = ptr.String(jtv) } case "PhoneNumberCountries": @@ -20835,7 +20865,7 @@ func awsRestjson1_deserializeDocumentProxySession(v **types.ProxySession, value if err != nil { return err } - sv.CreatedTimestamp = &t + sv.CreatedTimestamp = ptr.Time(t) } case "EndedTimestamp": @@ -20848,7 +20878,7 @@ func awsRestjson1_deserializeDocumentProxySession(v **types.ProxySession, value if err != nil { return err } - sv.EndedTimestamp = &t + sv.EndedTimestamp = ptr.Time(t) } case "ExpiryMinutes": @@ -20884,7 +20914,7 @@ func awsRestjson1_deserializeDocumentProxySession(v **types.ProxySession, value if !ok { return fmt.Errorf("expected String128 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NumberSelectionBehavior": @@ -20907,7 +20937,7 @@ func awsRestjson1_deserializeDocumentProxySession(v **types.ProxySession, value if !ok { return fmt.Errorf("expected NonEmptyString128 to be of type string, got %T instead", value) } - sv.ProxySessionId = &jtv + sv.ProxySessionId = ptr.String(jtv) } case "Status": @@ -20929,7 +20959,7 @@ func awsRestjson1_deserializeDocumentProxySession(v **types.ProxySession, value if err != nil { return err } - sv.UpdatedTimestamp = &t + sv.UpdatedTimestamp = ptr.Time(t) } case "VoiceConnectorId": @@ -20938,7 +20968,7 @@ func awsRestjson1_deserializeDocumentProxySession(v **types.ProxySession, value if !ok { return fmt.Errorf("expected NonEmptyString128 to be of type string, got %T instead", value) } - sv.VoiceConnectorId = &jtv + sv.VoiceConnectorId = ptr.String(jtv) } default: @@ -20950,7 +20980,7 @@ func awsRestjson1_deserializeDocumentProxySession(v **types.ProxySession, value return nil } -func awsRestjson1_deserializeDocumentProxySessions(v *[]*types.ProxySession, value interface{}) error { +func awsRestjson1_deserializeDocumentProxySessions(v *[]types.ProxySession, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20963,18 +20993,20 @@ func awsRestjson1_deserializeDocumentProxySessions(v *[]*types.ProxySession, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProxySession + var cv []types.ProxySession if *v == nil { - cv = []*types.ProxySession{} + cv = []types.ProxySession{} } else { cv = *v } for _, value := range shape { - var col *types.ProxySession - if err := awsRestjson1_deserializeDocumentProxySession(&col, value); err != nil { + var col types.ProxySession + destAddr := &col + if err := awsRestjson1_deserializeDocumentProxySession(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21019,7 +21051,7 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21100,7 +21132,7 @@ func awsRestjson1_deserializeDocumentRoom(v **types.Room, value interface{}) err if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "CreatedBy": @@ -21109,7 +21141,7 @@ func awsRestjson1_deserializeDocumentRoom(v **types.Room, value interface{}) err if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "CreatedTimestamp": @@ -21122,7 +21154,7 @@ func awsRestjson1_deserializeDocumentRoom(v **types.Room, value interface{}) err if err != nil { return err } - sv.CreatedTimestamp = &t + sv.CreatedTimestamp = ptr.Time(t) } case "Name": @@ -21131,7 +21163,7 @@ func awsRestjson1_deserializeDocumentRoom(v **types.Room, value interface{}) err if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RoomId": @@ -21140,7 +21172,7 @@ func awsRestjson1_deserializeDocumentRoom(v **types.Room, value interface{}) err if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RoomId = &jtv + sv.RoomId = ptr.String(jtv) } case "UpdatedTimestamp": @@ -21153,7 +21185,7 @@ func awsRestjson1_deserializeDocumentRoom(v **types.Room, value interface{}) err if err != nil { return err } - sv.UpdatedTimestamp = &t + sv.UpdatedTimestamp = ptr.Time(t) } default: @@ -21165,7 +21197,7 @@ func awsRestjson1_deserializeDocumentRoom(v **types.Room, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentRoomList(v *[]*types.Room, value interface{}) error { +func awsRestjson1_deserializeDocumentRoomList(v *[]types.Room, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21178,18 +21210,20 @@ func awsRestjson1_deserializeDocumentRoomList(v *[]*types.Room, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Room + var cv []types.Room if *v == nil { - cv = []*types.Room{} + cv = []types.Room{} } else { cv = *v } for _, value := range shape { - var col *types.Room - if err := awsRestjson1_deserializeDocumentRoom(&col, value); err != nil { + var col types.Room + destAddr := &col + if err := awsRestjson1_deserializeDocumentRoom(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21225,7 +21259,7 @@ func awsRestjson1_deserializeDocumentRoomMembership(v **types.RoomMembership, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InvitedBy = &jtv + sv.InvitedBy = ptr.String(jtv) } case "Member": @@ -21248,7 +21282,7 @@ func awsRestjson1_deserializeDocumentRoomMembership(v **types.RoomMembership, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RoomId = &jtv + sv.RoomId = ptr.String(jtv) } case "UpdatedTimestamp": @@ -21261,7 +21295,7 @@ func awsRestjson1_deserializeDocumentRoomMembership(v **types.RoomMembership, va if err != nil { return err } - sv.UpdatedTimestamp = &t + sv.UpdatedTimestamp = ptr.Time(t) } default: @@ -21273,7 +21307,7 @@ func awsRestjson1_deserializeDocumentRoomMembership(v **types.RoomMembership, va return nil } -func awsRestjson1_deserializeDocumentRoomMembershipList(v *[]*types.RoomMembership, value interface{}) error { +func awsRestjson1_deserializeDocumentRoomMembershipList(v *[]types.RoomMembership, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21286,18 +21320,20 @@ func awsRestjson1_deserializeDocumentRoomMembershipList(v *[]*types.RoomMembersh return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RoomMembership + var cv []types.RoomMembership if *v == nil { - cv = []*types.RoomMembership{} + cv = []types.RoomMembership{} } else { cv = *v } for _, value := range shape { - var col *types.RoomMembership - if err := awsRestjson1_deserializeDocumentRoomMembership(&col, value); err != nil { + var col types.RoomMembership + destAddr := &col + if err := awsRestjson1_deserializeDocumentRoomMembership(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21349,7 +21385,7 @@ func awsRestjson1_deserializeDocumentRoomRetentionSettings(v **types.RoomRetenti return nil } -func awsRestjson1_deserializeDocumentSensitiveStringList(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) } @@ -21362,21 +21398,21 @@ func awsRestjson1_deserializeDocumentSensitiveStringList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -21422,7 +21458,7 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21471,7 +21507,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21511,7 +21547,7 @@ func awsRestjson1_deserializeDocumentSigninDelegateGroup(v **types.SigninDelegat if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } default: @@ -21523,7 +21559,7 @@ func awsRestjson1_deserializeDocumentSigninDelegateGroup(v **types.SigninDelegat return nil } -func awsRestjson1_deserializeDocumentSigninDelegateGroupList(v *[]*types.SigninDelegateGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentSigninDelegateGroupList(v *[]types.SigninDelegateGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21536,18 +21572,20 @@ func awsRestjson1_deserializeDocumentSigninDelegateGroupList(v *[]*types.SigninD return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SigninDelegateGroup + var cv []types.SigninDelegateGroup if *v == nil { - cv = []*types.SigninDelegateGroup{} + cv = []types.SigninDelegateGroup{} } else { cv = *v } for _, value := range shape { - var col *types.SigninDelegateGroup - if err := awsRestjson1_deserializeDocumentSigninDelegateGroup(&col, value); err != nil { + var col types.SigninDelegateGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentSigninDelegateGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21596,7 +21634,7 @@ func awsRestjson1_deserializeDocumentStreamingConfiguration(v **types.StreamingC if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Disabled = &jtv + sv.Disabled = ptr.Bool(jtv) } case "StreamingNotificationTargets": @@ -21653,7 +21691,7 @@ func awsRestjson1_deserializeDocumentStreamingNotificationTarget(v **types.Strea return nil } -func awsRestjson1_deserializeDocumentStreamingNotificationTargetList(v *[]*types.StreamingNotificationTarget, value interface{}) error { +func awsRestjson1_deserializeDocumentStreamingNotificationTargetList(v *[]types.StreamingNotificationTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21666,18 +21704,20 @@ func awsRestjson1_deserializeDocumentStreamingNotificationTargetList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StreamingNotificationTarget + var cv []types.StreamingNotificationTarget if *v == nil { - cv = []*types.StreamingNotificationTarget{} + cv = []types.StreamingNotificationTarget{} } else { cv = *v } for _, value := range shape { - var col *types.StreamingNotificationTarget - if err := awsRestjson1_deserializeDocumentStreamingNotificationTarget(&col, value); err != nil { + var col types.StreamingNotificationTarget + destAddr := &col + if err := awsRestjson1_deserializeDocumentStreamingNotificationTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21685,7 +21725,7 @@ func awsRestjson1_deserializeDocumentStreamingNotificationTargetList(v *[]*types return nil } -func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21698,21 +21738,21 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -21749,7 +21789,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -21758,7 +21798,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -21770,7 +21810,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21783,18 +21823,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21830,7 +21872,7 @@ func awsRestjson1_deserializeDocumentTelephonySettings(v **types.TelephonySettin if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.InboundCalling = &jtv + sv.InboundCalling = ptr.Bool(jtv) } case "OutboundCalling": @@ -21839,7 +21881,7 @@ func awsRestjson1_deserializeDocumentTelephonySettings(v **types.TelephonySettin if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.OutboundCalling = &jtv + sv.OutboundCalling = ptr.Bool(jtv) } case "SMS": @@ -21848,7 +21890,7 @@ func awsRestjson1_deserializeDocumentTelephonySettings(v **types.TelephonySettin if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.SMS = &jtv + sv.SMS = ptr.Bool(jtv) } default: @@ -21911,7 +21953,7 @@ func awsRestjson1_deserializeDocumentTermination(v **types.Termination, value in if !ok { return fmt.Errorf("expected E164PhoneNumber to be of type string, got %T instead", value) } - sv.DefaultPhoneNumber = &jtv + sv.DefaultPhoneNumber = ptr.String(jtv) } case "Disabled": @@ -21920,7 +21962,7 @@ func awsRestjson1_deserializeDocumentTermination(v **types.Termination, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Disabled = &jtv + sv.Disabled = ptr.Bool(jtv) } default: @@ -21960,7 +22002,7 @@ func awsRestjson1_deserializeDocumentTerminationHealth(v **types.TerminationHeal if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Source = &jtv + sv.Source = ptr.String(jtv) } case "Timestamp": @@ -21973,7 +22015,7 @@ func awsRestjson1_deserializeDocumentTerminationHealth(v **types.TerminationHeal if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -22022,7 +22064,7 @@ func awsRestjson1_deserializeDocumentThrottledClientException(v **types.Throttle if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22071,7 +22113,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22120,7 +22162,7 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22160,7 +22202,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "AlexaForBusinessMetadata": @@ -22174,7 +22216,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "InvitedOn": @@ -22187,7 +22229,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if err != nil { return err } - sv.InvitedOn = &t + sv.InvitedOn = ptr.Time(t) } case "LicenseType": @@ -22205,7 +22247,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PersonalPIN = &jtv + sv.PersonalPIN = ptr.String(jtv) } case "PrimaryEmail": @@ -22214,7 +22256,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.PrimaryEmail = &jtv + sv.PrimaryEmail = ptr.String(jtv) } case "PrimaryProvisionedNumber": @@ -22223,7 +22265,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.PrimaryProvisionedNumber = &jtv + sv.PrimaryProvisionedNumber = ptr.String(jtv) } case "RegisteredOn": @@ -22236,7 +22278,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if err != nil { return err } - sv.RegisteredOn = &t + sv.RegisteredOn = ptr.Time(t) } case "UserId": @@ -22245,7 +22287,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } case "UserInvitationStatus": @@ -22321,7 +22363,7 @@ func awsRestjson1_deserializeDocumentUserError(v **types.UserError, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "UserId": @@ -22330,7 +22372,7 @@ func awsRestjson1_deserializeDocumentUserError(v **types.UserError, value interf if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } default: @@ -22342,7 +22384,7 @@ func awsRestjson1_deserializeDocumentUserError(v **types.UserError, value interf return nil } -func awsRestjson1_deserializeDocumentUserErrorList(v *[]*types.UserError, value interface{}) error { +func awsRestjson1_deserializeDocumentUserErrorList(v *[]types.UserError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22355,18 +22397,20 @@ func awsRestjson1_deserializeDocumentUserErrorList(v *[]*types.UserError, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserError + var cv []types.UserError if *v == nil { - cv = []*types.UserError{} + cv = []types.UserError{} } else { cv = *v } for _, value := range shape { - var col *types.UserError - if err := awsRestjson1_deserializeDocumentUserError(&col, value); err != nil { + var col types.UserError + destAddr := &col + if err := awsRestjson1_deserializeDocumentUserError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22374,7 +22418,7 @@ func awsRestjson1_deserializeDocumentUserErrorList(v *[]*types.UserError, value return nil } -func awsRestjson1_deserializeDocumentUserList(v *[]*types.User, value interface{}) error { +func awsRestjson1_deserializeDocumentUserList(v *[]types.User, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22387,18 +22431,20 @@ func awsRestjson1_deserializeDocumentUserList(v *[]*types.User, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.User + var cv []types.User if *v == nil { - cv = []*types.User{} + cv = []types.User{} } else { cv = *v } for _, value := range shape { - var col *types.User - if err := awsRestjson1_deserializeDocumentUser(&col, value); err != nil { + var col types.User + destAddr := &col + if err := awsRestjson1_deserializeDocumentUser(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22483,7 +22529,7 @@ func awsRestjson1_deserializeDocumentVoiceConnector(v **types.VoiceConnector, va if err != nil { return err } - sv.CreatedTimestamp = &t + sv.CreatedTimestamp = ptr.Time(t) } case "Name": @@ -22492,7 +22538,7 @@ func awsRestjson1_deserializeDocumentVoiceConnector(v **types.VoiceConnector, va if !ok { return fmt.Errorf("expected VoiceConnectorName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OutboundHostName": @@ -22501,7 +22547,7 @@ func awsRestjson1_deserializeDocumentVoiceConnector(v **types.VoiceConnector, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OutboundHostName = &jtv + sv.OutboundHostName = ptr.String(jtv) } case "RequireEncryption": @@ -22510,7 +22556,7 @@ func awsRestjson1_deserializeDocumentVoiceConnector(v **types.VoiceConnector, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RequireEncryption = &jtv + sv.RequireEncryption = ptr.Bool(jtv) } case "UpdatedTimestamp": @@ -22523,7 +22569,7 @@ func awsRestjson1_deserializeDocumentVoiceConnector(v **types.VoiceConnector, va if err != nil { return err } - sv.UpdatedTimestamp = &t + sv.UpdatedTimestamp = ptr.Time(t) } case "VoiceConnectorId": @@ -22532,7 +22578,7 @@ func awsRestjson1_deserializeDocumentVoiceConnector(v **types.VoiceConnector, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VoiceConnectorId = &jtv + sv.VoiceConnectorId = ptr.String(jtv) } default: @@ -22576,7 +22622,7 @@ func awsRestjson1_deserializeDocumentVoiceConnectorGroup(v **types.VoiceConnecto if err != nil { return err } - sv.CreatedTimestamp = &t + sv.CreatedTimestamp = ptr.Time(t) } case "Name": @@ -22585,7 +22631,7 @@ func awsRestjson1_deserializeDocumentVoiceConnectorGroup(v **types.VoiceConnecto if !ok { return fmt.Errorf("expected VoiceConnectorGroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "UpdatedTimestamp": @@ -22598,7 +22644,7 @@ func awsRestjson1_deserializeDocumentVoiceConnectorGroup(v **types.VoiceConnecto if err != nil { return err } - sv.UpdatedTimestamp = &t + sv.UpdatedTimestamp = ptr.Time(t) } case "VoiceConnectorGroupId": @@ -22607,7 +22653,7 @@ func awsRestjson1_deserializeDocumentVoiceConnectorGroup(v **types.VoiceConnecto if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VoiceConnectorGroupId = &jtv + sv.VoiceConnectorGroupId = ptr.String(jtv) } case "VoiceConnectorItems": @@ -22624,7 +22670,7 @@ func awsRestjson1_deserializeDocumentVoiceConnectorGroup(v **types.VoiceConnecto return nil } -func awsRestjson1_deserializeDocumentVoiceConnectorGroupList(v *[]*types.VoiceConnectorGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentVoiceConnectorGroupList(v *[]types.VoiceConnectorGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22637,18 +22683,20 @@ func awsRestjson1_deserializeDocumentVoiceConnectorGroupList(v *[]*types.VoiceCo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VoiceConnectorGroup + var cv []types.VoiceConnectorGroup if *v == nil { - cv = []*types.VoiceConnectorGroup{} + cv = []types.VoiceConnectorGroup{} } else { cv = *v } for _, value := range shape { - var col *types.VoiceConnectorGroup - if err := awsRestjson1_deserializeDocumentVoiceConnectorGroup(&col, value); err != nil { + var col types.VoiceConnectorGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentVoiceConnectorGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22697,7 +22745,7 @@ func awsRestjson1_deserializeDocumentVoiceConnectorItem(v **types.VoiceConnector if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VoiceConnectorId = &jtv + sv.VoiceConnectorId = ptr.String(jtv) } default: @@ -22709,7 +22757,7 @@ func awsRestjson1_deserializeDocumentVoiceConnectorItem(v **types.VoiceConnector return nil } -func awsRestjson1_deserializeDocumentVoiceConnectorItemList(v *[]*types.VoiceConnectorItem, value interface{}) error { +func awsRestjson1_deserializeDocumentVoiceConnectorItemList(v *[]types.VoiceConnectorItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22722,18 +22770,20 @@ func awsRestjson1_deserializeDocumentVoiceConnectorItemList(v *[]*types.VoiceCon return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VoiceConnectorItem + var cv []types.VoiceConnectorItem if *v == nil { - cv = []*types.VoiceConnectorItem{} + cv = []types.VoiceConnectorItem{} } else { cv = *v } for _, value := range shape { - var col *types.VoiceConnectorItem - if err := awsRestjson1_deserializeDocumentVoiceConnectorItem(&col, value); err != nil { + var col types.VoiceConnectorItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentVoiceConnectorItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22741,7 +22791,7 @@ func awsRestjson1_deserializeDocumentVoiceConnectorItemList(v *[]*types.VoiceCon return nil } -func awsRestjson1_deserializeDocumentVoiceConnectorList(v *[]*types.VoiceConnector, value interface{}) error { +func awsRestjson1_deserializeDocumentVoiceConnectorList(v *[]types.VoiceConnector, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22754,18 +22804,20 @@ func awsRestjson1_deserializeDocumentVoiceConnectorList(v *[]*types.VoiceConnect return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VoiceConnector + var cv []types.VoiceConnector if *v == nil { - cv = []*types.VoiceConnector{} + cv = []types.VoiceConnector{} } else { cv = *v } for _, value := range shape { - var col *types.VoiceConnector - if err := awsRestjson1_deserializeDocumentVoiceConnector(&col, value); err != nil { + var col types.VoiceConnector + destAddr := &col + if err := awsRestjson1_deserializeDocumentVoiceConnector(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22801,7 +22853,7 @@ func awsRestjson1_deserializeDocumentVoiceConnectorSettings(v **types.VoiceConne if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CdrBucket = &jtv + sv.CdrBucket = ptr.String(jtv) } default: diff --git a/service/chime/go.mod b/service/chime/go.mod index 2fd6928eb75..cf7d183d036 100644 --- a/service/chime/go.mod +++ b/service/chime/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/chime go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/chime/serializers.go b/service/chime/serializers.go index a33e67548b8..418d9253d58 100644 --- a/service/chime/serializers.go +++ b/service/chime/serializers.go @@ -76,13 +76,10 @@ func awsRestjson1_serializeOpHttpBindingsAssociatePhoneNumbersWithVoiceConnector return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -172,13 +169,10 @@ func awsRestjson1_serializeOpHttpBindingsAssociatePhoneNumbersWithVoiceConnector return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorGroupId == nil { + if v.VoiceConnectorGroupId == nil || len(*v.VoiceConnectorGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorGroupId must not be empty")} } if v.VoiceConnectorGroupId != nil { - if len(*v.VoiceConnectorGroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorGroupId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorGroupId").String(*v.VoiceConnectorGroupId); err != nil { return err } @@ -268,25 +262,19 @@ func awsRestjson1_serializeOpHttpBindingsAssociatePhoneNumberWithUserInput(v *As return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -369,13 +357,10 @@ func awsRestjson1_serializeOpHttpBindingsAssociateSigninDelegateGroupsWithAccoun return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -460,13 +445,10 @@ func awsRestjson1_serializeOpHttpBindingsBatchCreateAttendeeInput(v *BatchCreate return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeetingId == nil { + if v.MeetingId == nil || len(*v.MeetingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} } if v.MeetingId != nil { - if len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { return err } @@ -551,25 +533,19 @@ func awsRestjson1_serializeOpHttpBindingsBatchCreateRoomMembershipInput(v *Batch return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.RoomId == nil { + if v.RoomId == nil || len(*v.RoomId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} } if v.RoomId != nil { - if len(*v.RoomId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} - } if err := encoder.SetURI("RoomId").String(*v.RoomId); err != nil { return err } @@ -729,13 +705,10 @@ func awsRestjson1_serializeOpHttpBindingsBatchSuspendUserInput(v *BatchSuspendUs return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -820,13 +793,10 @@ func awsRestjson1_serializeOpHttpBindingsBatchUnsuspendUserInput(v *BatchUnsuspe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -986,13 +956,10 @@ func awsRestjson1_serializeOpHttpBindingsBatchUpdateUserInput(v *BatchUpdateUser return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -1150,13 +1117,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateAttendeeInput(v *CreateAttendeeIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeetingId == nil { + if v.MeetingId == nil || len(*v.MeetingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} } if v.MeetingId != nil { - if len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { return err } @@ -1246,13 +1210,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateBotInput(v *CreateBotInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -1631,13 +1592,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateProxySessionInput(v *CreateProxyS return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -1756,13 +1714,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateRoomInput(v *CreateRoomInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -1850,25 +1805,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateRoomMembershipInput(v *CreateRoom return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.RoomId == nil { + if v.RoomId == nil || len(*v.RoomId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} } if v.RoomId != nil { - if len(*v.RoomId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} - } if err := encoder.SetURI("RoomId").String(*v.RoomId); err != nil { return err } @@ -1956,13 +1905,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateUserInput(v *CreateUserInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -2207,13 +2153,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAccountInput(v *DeleteAccountInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -2273,25 +2216,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAttendeeInput(v *DeleteAttendeeIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AttendeeId == nil { + if v.AttendeeId == nil || len(*v.AttendeeId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AttendeeId must not be empty")} } if v.AttendeeId != nil { - if len(*v.AttendeeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AttendeeId must not be empty")} - } if err := encoder.SetURI("AttendeeId").String(*v.AttendeeId); err != nil { return err } } - if v.MeetingId == nil { + if v.MeetingId == nil || len(*v.MeetingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} } if v.MeetingId != nil { - if len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { return err } @@ -2351,25 +2288,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteEventsConfigurationInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.BotId == nil { + if v.BotId == nil || len(*v.BotId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BotId must not be empty")} } if v.BotId != nil { - if len(*v.BotId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BotId must not be empty")} - } if err := encoder.SetURI("BotId").String(*v.BotId); err != nil { return err } @@ -2429,13 +2360,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMeetingInput(v *DeleteMeetingInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeetingId == nil { + if v.MeetingId == nil || len(*v.MeetingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} } if v.MeetingId != nil { - if len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { return err } @@ -2495,13 +2423,10 @@ func awsRestjson1_serializeOpHttpBindingsDeletePhoneNumberInput(v *DeletePhoneNu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PhoneNumberId == nil { + if v.PhoneNumberId == nil || len(*v.PhoneNumberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PhoneNumberId must not be empty")} } if v.PhoneNumberId != nil { - if len(*v.PhoneNumberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PhoneNumberId must not be empty")} - } if err := encoder.SetURI("PhoneNumberId").String(*v.PhoneNumberId); err != nil { return err } @@ -2561,25 +2486,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteProxySessionInput(v *DeleteProxyS return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProxySessionId == nil { + if v.ProxySessionId == nil || len(*v.ProxySessionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ProxySessionId must not be empty")} } if v.ProxySessionId != nil { - if len(*v.ProxySessionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ProxySessionId must not be empty")} - } if err := encoder.SetURI("ProxySessionId").String(*v.ProxySessionId); err != nil { return err } } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -2639,25 +2558,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRoomInput(v *DeleteRoomInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.RoomId == nil { + if v.RoomId == nil || len(*v.RoomId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} } if v.RoomId != nil { - if len(*v.RoomId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} - } if err := encoder.SetURI("RoomId").String(*v.RoomId); err != nil { return err } @@ -2717,37 +2630,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRoomMembershipInput(v *DeleteRoom return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.MemberId == nil { + if v.MemberId == nil || len(*v.MemberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} } if v.MemberId != nil { - if len(*v.MemberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} - } if err := encoder.SetURI("MemberId").String(*v.MemberId); err != nil { return err } } - if v.RoomId == nil { + if v.RoomId == nil || len(*v.RoomId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} } if v.RoomId != nil { - if len(*v.RoomId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} - } if err := encoder.SetURI("RoomId").String(*v.RoomId); err != nil { return err } @@ -2807,13 +2711,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVoiceConnectorInput(v *DeleteVoic return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -2873,13 +2774,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVoiceConnectorEmergencyCallingCon return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -2939,13 +2837,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVoiceConnectorGroupInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorGroupId == nil { + if v.VoiceConnectorGroupId == nil || len(*v.VoiceConnectorGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorGroupId must not be empty")} } if v.VoiceConnectorGroupId != nil { - if len(*v.VoiceConnectorGroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorGroupId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorGroupId").String(*v.VoiceConnectorGroupId); err != nil { return err } @@ -3005,13 +2900,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVoiceConnectorOriginationInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -3071,13 +2963,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVoiceConnectorProxyInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -3137,13 +3026,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVoiceConnectorStreamingConfigurat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -3203,13 +3089,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVoiceConnectorTerminationInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -3280,13 +3163,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVoiceConnectorTerminationCredenti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -3360,25 +3240,19 @@ func awsRestjson1_serializeOpHttpBindingsDisassociatePhoneNumberFromUserInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -3449,13 +3323,10 @@ func awsRestjson1_serializeOpHttpBindingsDisassociatePhoneNumbersFromVoiceConnec return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -3540,13 +3411,10 @@ func awsRestjson1_serializeOpHttpBindingsDisassociatePhoneNumbersFromVoiceConnec return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorGroupId == nil { + if v.VoiceConnectorGroupId == nil || len(*v.VoiceConnectorGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorGroupId must not be empty")} } if v.VoiceConnectorGroupId != nil { - if len(*v.VoiceConnectorGroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorGroupId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorGroupId").String(*v.VoiceConnectorGroupId); err != nil { return err } @@ -3631,13 +3499,10 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateSigninDelegateGroupsFromAcc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -3711,13 +3576,10 @@ func awsRestjson1_serializeOpHttpBindingsGetAccountInput(v *GetAccountInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -3777,13 +3639,10 @@ func awsRestjson1_serializeOpHttpBindingsGetAccountSettingsInput(v *GetAccountSe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -3843,25 +3702,19 @@ func awsRestjson1_serializeOpHttpBindingsGetAttendeeInput(v *GetAttendeeInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AttendeeId == nil { + if v.AttendeeId == nil || len(*v.AttendeeId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AttendeeId must not be empty")} } if v.AttendeeId != nil { - if len(*v.AttendeeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AttendeeId must not be empty")} - } if err := encoder.SetURI("AttendeeId").String(*v.AttendeeId); err != nil { return err } } - if v.MeetingId == nil { + if v.MeetingId == nil || len(*v.MeetingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} } if v.MeetingId != nil { - if len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { return err } @@ -3921,25 +3774,19 @@ func awsRestjson1_serializeOpHttpBindingsGetBotInput(v *GetBotInput, encoder *ht return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.BotId == nil { + if v.BotId == nil || len(*v.BotId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BotId must not be empty")} } if v.BotId != nil { - if len(*v.BotId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BotId must not be empty")} - } if err := encoder.SetURI("BotId").String(*v.BotId); err != nil { return err } @@ -3999,25 +3846,19 @@ func awsRestjson1_serializeOpHttpBindingsGetEventsConfigurationInput(v *GetEvent return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.BotId == nil { + if v.BotId == nil || len(*v.BotId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BotId must not be empty")} } if v.BotId != nil { - if len(*v.BotId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BotId must not be empty")} - } if err := encoder.SetURI("BotId").String(*v.BotId); err != nil { return err } @@ -4127,13 +3968,10 @@ func awsRestjson1_serializeOpHttpBindingsGetMeetingInput(v *GetMeetingInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeetingId == nil { + if v.MeetingId == nil || len(*v.MeetingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} } if v.MeetingId != nil { - if len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { return err } @@ -4193,13 +4031,10 @@ func awsRestjson1_serializeOpHttpBindingsGetPhoneNumberInput(v *GetPhoneNumberIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PhoneNumberId == nil { + if v.PhoneNumberId == nil || len(*v.PhoneNumberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PhoneNumberId must not be empty")} } if v.PhoneNumberId != nil { - if len(*v.PhoneNumberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PhoneNumberId must not be empty")} - } if err := encoder.SetURI("PhoneNumberId").String(*v.PhoneNumberId); err != nil { return err } @@ -4259,13 +4094,10 @@ func awsRestjson1_serializeOpHttpBindingsGetPhoneNumberOrderInput(v *GetPhoneNum return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PhoneNumberOrderId == nil { + if v.PhoneNumberOrderId == nil || len(*v.PhoneNumberOrderId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PhoneNumberOrderId must not be empty")} } if v.PhoneNumberOrderId != nil { - if len(*v.PhoneNumberOrderId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PhoneNumberOrderId must not be empty")} - } if err := encoder.SetURI("PhoneNumberOrderId").String(*v.PhoneNumberOrderId); err != nil { return err } @@ -4375,25 +4207,19 @@ func awsRestjson1_serializeOpHttpBindingsGetProxySessionInput(v *GetProxySession return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProxySessionId == nil { + if v.ProxySessionId == nil || len(*v.ProxySessionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ProxySessionId must not be empty")} } if v.ProxySessionId != nil { - if len(*v.ProxySessionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ProxySessionId must not be empty")} - } if err := encoder.SetURI("ProxySessionId").String(*v.ProxySessionId); err != nil { return err } } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -4453,13 +4279,10 @@ func awsRestjson1_serializeOpHttpBindingsGetRetentionSettingsInput(v *GetRetenti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -4519,25 +4342,19 @@ func awsRestjson1_serializeOpHttpBindingsGetRoomInput(v *GetRoomInput, encoder * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.RoomId == nil { + if v.RoomId == nil || len(*v.RoomId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} } if v.RoomId != nil { - if len(*v.RoomId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} - } if err := encoder.SetURI("RoomId").String(*v.RoomId); err != nil { return err } @@ -4597,25 +4414,19 @@ func awsRestjson1_serializeOpHttpBindingsGetUserInput(v *GetUserInput, encoder * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -4675,25 +4486,19 @@ func awsRestjson1_serializeOpHttpBindingsGetUserSettingsInput(v *GetUserSettings return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -4753,13 +4558,10 @@ func awsRestjson1_serializeOpHttpBindingsGetVoiceConnectorInput(v *GetVoiceConne return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -4819,13 +4621,10 @@ func awsRestjson1_serializeOpHttpBindingsGetVoiceConnectorEmergencyCallingConfig return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -4885,13 +4684,10 @@ func awsRestjson1_serializeOpHttpBindingsGetVoiceConnectorGroupInput(v *GetVoice return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorGroupId == nil { + if v.VoiceConnectorGroupId == nil || len(*v.VoiceConnectorGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorGroupId must not be empty")} } if v.VoiceConnectorGroupId != nil { - if len(*v.VoiceConnectorGroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorGroupId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorGroupId").String(*v.VoiceConnectorGroupId); err != nil { return err } @@ -4951,13 +4747,10 @@ func awsRestjson1_serializeOpHttpBindingsGetVoiceConnectorLoggingConfigurationIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -5017,13 +4810,10 @@ func awsRestjson1_serializeOpHttpBindingsGetVoiceConnectorOriginationInput(v *Ge return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -5083,13 +4873,10 @@ func awsRestjson1_serializeOpHttpBindingsGetVoiceConnectorProxyInput(v *GetVoice return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -5149,13 +4936,10 @@ func awsRestjson1_serializeOpHttpBindingsGetVoiceConnectorStreamingConfiguration return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -5215,13 +4999,10 @@ func awsRestjson1_serializeOpHttpBindingsGetVoiceConnectorTerminationInput(v *Ge return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -5281,13 +5062,10 @@ func awsRestjson1_serializeOpHttpBindingsGetVoiceConnectorTerminationHealthInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -5358,13 +5136,10 @@ func awsRestjson1_serializeOpHttpBindingsInviteUsersInput(v *InviteUsersInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -5517,13 +5292,10 @@ func awsRestjson1_serializeOpHttpBindingsListAttendeesInput(v *ListAttendeesInpu encoder.SetQuery("max-results").Integer(*v.MaxResults) } - if v.MeetingId == nil { + if v.MeetingId == nil || len(*v.MeetingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} } if v.MeetingId != nil { - if len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { return err } @@ -5587,25 +5359,19 @@ func awsRestjson1_serializeOpHttpBindingsListAttendeeTagsInput(v *ListAttendeeTa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AttendeeId == nil { + if v.AttendeeId == nil || len(*v.AttendeeId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AttendeeId must not be empty")} } if v.AttendeeId != nil { - if len(*v.AttendeeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AttendeeId must not be empty")} - } if err := encoder.SetURI("AttendeeId").String(*v.AttendeeId); err != nil { return err } } - if v.MeetingId == nil { + if v.MeetingId == nil || len(*v.MeetingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} } if v.MeetingId != nil { - if len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { return err } @@ -5665,13 +5431,10 @@ func awsRestjson1_serializeOpHttpBindingsListBotsInput(v *ListBotsInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -5801,13 +5564,10 @@ func awsRestjson1_serializeOpHttpBindingsListMeetingTagsInput(v *ListMeetingTags return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeetingId == nil { + if v.MeetingId == nil || len(*v.MeetingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} } if v.MeetingId != nil { - if len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { return err } @@ -6019,13 +5779,10 @@ func awsRestjson1_serializeOpHttpBindingsListProxySessionsInput(v *ListProxySess encoder.SetQuery("status").String(string(v.Status)) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -6085,13 +5842,10 @@ func awsRestjson1_serializeOpHttpBindingsListRoomMembershipsInput(v *ListRoomMem return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -6105,13 +5859,10 @@ func awsRestjson1_serializeOpHttpBindingsListRoomMembershipsInput(v *ListRoomMem encoder.SetQuery("next-token").String(*v.NextToken) } - if v.RoomId == nil { + if v.RoomId == nil || len(*v.RoomId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} } if v.RoomId != nil { - if len(*v.RoomId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} - } if err := encoder.SetURI("RoomId").String(*v.RoomId); err != nil { return err } @@ -6171,13 +5922,10 @@ func awsRestjson1_serializeOpHttpBindingsListRoomsInput(v *ListRoomsInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -6307,13 +6055,10 @@ func awsRestjson1_serializeOpHttpBindingsListUsersInput(v *ListUsersInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -6513,13 +6258,10 @@ func awsRestjson1_serializeOpHttpBindingsListVoiceConnectorTerminationCredential return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -6579,25 +6321,19 @@ func awsRestjson1_serializeOpHttpBindingsLogoutUserInput(v *LogoutUserInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -6668,25 +6404,19 @@ func awsRestjson1_serializeOpHttpBindingsPutEventsConfigurationInput(v *PutEvent return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.BotId == nil { + if v.BotId == nil || len(*v.BotId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BotId must not be empty")} } if v.BotId != nil { - if len(*v.BotId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BotId must not be empty")} - } if err := encoder.SetURI("BotId").String(*v.BotId); err != nil { return err } @@ -6774,13 +6504,10 @@ func awsRestjson1_serializeOpHttpBindingsPutRetentionSettingsInput(v *PutRetenti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -6865,13 +6592,10 @@ func awsRestjson1_serializeOpHttpBindingsPutVoiceConnectorEmergencyCallingConfig return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -6956,13 +6680,10 @@ func awsRestjson1_serializeOpHttpBindingsPutVoiceConnectorLoggingConfigurationIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -7047,13 +6768,10 @@ func awsRestjson1_serializeOpHttpBindingsPutVoiceConnectorOriginationInput(v *Pu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -7138,13 +6856,10 @@ func awsRestjson1_serializeOpHttpBindingsPutVoiceConnectorProxyInput(v *PutVoice return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -7244,13 +6959,10 @@ func awsRestjson1_serializeOpHttpBindingsPutVoiceConnectorStreamingConfiguration return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -7335,13 +7047,10 @@ func awsRestjson1_serializeOpHttpBindingsPutVoiceConnectorTerminationInput(v *Pu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -7426,13 +7135,10 @@ func awsRestjson1_serializeOpHttpBindingsPutVoiceConnectorTerminationCredentials return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -7506,37 +7212,28 @@ func awsRestjson1_serializeOpHttpBindingsRedactConversationMessageInput(v *Redac return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.ConversationId == nil { + if v.ConversationId == nil || len(*v.ConversationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConversationId must not be empty")} } if v.ConversationId != nil { - if len(*v.ConversationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConversationId must not be empty")} - } if err := encoder.SetURI("ConversationId").String(*v.ConversationId); err != nil { return err } } - if v.MessageId == nil { + if v.MessageId == nil || len(*v.MessageId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MessageId must not be empty")} } if v.MessageId != nil { - if len(*v.MessageId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MessageId must not be empty")} - } if err := encoder.SetURI("MessageId").String(*v.MessageId); err != nil { return err } @@ -7596,37 +7293,28 @@ func awsRestjson1_serializeOpHttpBindingsRedactRoomMessageInput(v *RedactRoomMes return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.MessageId == nil { + if v.MessageId == nil || len(*v.MessageId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MessageId must not be empty")} } if v.MessageId != nil { - if len(*v.MessageId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MessageId must not be empty")} - } if err := encoder.SetURI("MessageId").String(*v.MessageId); err != nil { return err } } - if v.RoomId == nil { + if v.RoomId == nil || len(*v.RoomId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} } if v.RoomId != nil { - if len(*v.RoomId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} - } if err := encoder.SetURI("RoomId").String(*v.RoomId); err != nil { return err } @@ -7686,25 +7374,19 @@ func awsRestjson1_serializeOpHttpBindingsRegenerateSecurityTokenInput(v *Regener return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.BotId == nil { + if v.BotId == nil || len(*v.BotId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BotId must not be empty")} } if v.BotId != nil { - if len(*v.BotId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BotId must not be empty")} - } if err := encoder.SetURI("BotId").String(*v.BotId); err != nil { return err } @@ -7764,25 +7446,19 @@ func awsRestjson1_serializeOpHttpBindingsResetPersonalPINInput(v *ResetPersonalP return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -7842,13 +7518,10 @@ func awsRestjson1_serializeOpHttpBindingsRestorePhoneNumberInput(v *RestorePhone return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PhoneNumberId == nil { + if v.PhoneNumberId == nil || len(*v.PhoneNumberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PhoneNumberId must not be empty")} } if v.PhoneNumberId != nil { - if len(*v.PhoneNumberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PhoneNumberId must not be empty")} - } if err := encoder.SetURI("PhoneNumberId").String(*v.PhoneNumberId); err != nil { return err } @@ -8001,25 +7674,19 @@ func awsRestjson1_serializeOpHttpBindingsTagAttendeeInput(v *TagAttendeeInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AttendeeId == nil { + if v.AttendeeId == nil || len(*v.AttendeeId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AttendeeId must not be empty")} } if v.AttendeeId != nil { - if len(*v.AttendeeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AttendeeId must not be empty")} - } if err := encoder.SetURI("AttendeeId").String(*v.AttendeeId); err != nil { return err } } - if v.MeetingId == nil { + if v.MeetingId == nil || len(*v.MeetingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} } if v.MeetingId != nil { - if len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { return err } @@ -8104,13 +7771,10 @@ func awsRestjson1_serializeOpHttpBindingsTagMeetingInput(v *TagMeetingInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeetingId == nil { + if v.MeetingId == nil || len(*v.MeetingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} } if v.MeetingId != nil { - if len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { return err } @@ -8275,25 +7939,19 @@ func awsRestjson1_serializeOpHttpBindingsUntagAttendeeInput(v *UntagAttendeeInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AttendeeId == nil { + if v.AttendeeId == nil || len(*v.AttendeeId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AttendeeId must not be empty")} } if v.AttendeeId != nil { - if len(*v.AttendeeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AttendeeId must not be empty")} - } if err := encoder.SetURI("AttendeeId").String(*v.AttendeeId); err != nil { return err } } - if v.MeetingId == nil { + if v.MeetingId == nil || len(*v.MeetingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} } if v.MeetingId != nil { - if len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { return err } @@ -8378,13 +8036,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagMeetingInput(v *UntagMeetingInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MeetingId == nil { + if v.MeetingId == nil || len(*v.MeetingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} } if v.MeetingId != nil { - if len(*v.MeetingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MeetingId must not be empty")} - } if err := encoder.SetURI("MeetingId").String(*v.MeetingId); err != nil { return err } @@ -8549,13 +8204,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAccountInput(v *UpdateAccountInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -8638,13 +8290,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAccountSettingsInput(v *UpdateAcc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } @@ -8729,25 +8378,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateBotInput(v *UpdateBotInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.BotId == nil { + if v.BotId == nil || len(*v.BotId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BotId must not be empty")} } if v.BotId != nil { - if len(*v.BotId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BotId must not be empty")} - } if err := encoder.SetURI("BotId").String(*v.BotId); err != nil { return err } @@ -8912,13 +8555,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdatePhoneNumberInput(v *UpdatePhoneNu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PhoneNumberId == nil { + if v.PhoneNumberId == nil || len(*v.PhoneNumberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PhoneNumberId must not be empty")} } if v.PhoneNumberId != nil { - if len(*v.PhoneNumberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PhoneNumberId must not be empty")} - } if err := encoder.SetURI("PhoneNumberId").String(*v.PhoneNumberId); err != nil { return err } @@ -9079,25 +8719,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateProxySessionInput(v *UpdateProxyS return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProxySessionId == nil { + if v.ProxySessionId == nil || len(*v.ProxySessionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ProxySessionId must not be empty")} } if v.ProxySessionId != nil { - if len(*v.ProxySessionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ProxySessionId must not be empty")} - } if err := encoder.SetURI("ProxySessionId").String(*v.ProxySessionId); err != nil { return err } } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -9187,25 +8821,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRoomInput(v *UpdateRoomInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.RoomId == nil { + if v.RoomId == nil || len(*v.RoomId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} } if v.RoomId != nil { - if len(*v.RoomId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} - } if err := encoder.SetURI("RoomId").String(*v.RoomId); err != nil { return err } @@ -9288,37 +8916,28 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRoomMembershipInput(v *UpdateRoom return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.MemberId == nil { + if v.MemberId == nil || len(*v.MemberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} } if v.MemberId != nil { - if len(*v.MemberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} - } if err := encoder.SetURI("MemberId").String(*v.MemberId); err != nil { return err } } - if v.RoomId == nil { + if v.RoomId == nil || len(*v.RoomId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} } if v.RoomId != nil { - if len(*v.RoomId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoomId must not be empty")} - } if err := encoder.SetURI("RoomId").String(*v.RoomId); err != nil { return err } @@ -9401,25 +9020,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUserInput(v *UpdateUserInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -9514,25 +9127,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUserSettingsInput(v *UpdateUserSe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccountId must not be empty")} - } if err := encoder.SetURI("AccountId").String(*v.AccountId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -9617,13 +9224,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVoiceConnectorInput(v *UpdateVoic return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorId == nil { + if v.VoiceConnectorId == nil || len(*v.VoiceConnectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} } if v.VoiceConnectorId != nil { - if len(*v.VoiceConnectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorId").String(*v.VoiceConnectorId); err != nil { return err } @@ -9711,13 +9315,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVoiceConnectorGroupInput(v *Updat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.VoiceConnectorGroupId == nil { + if v.VoiceConnectorGroupId == nil || len(*v.VoiceConnectorGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorGroupId must not be empty")} } if v.VoiceConnectorGroupId != nil { - if len(*v.VoiceConnectorGroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VoiceConnectorGroupId must not be empty")} - } if err := encoder.SetURI("VoiceConnectorGroupId").String(*v.VoiceConnectorGroupId); err != nil { return err } @@ -9779,32 +9380,24 @@ func awsRestjson1_serializeDocumentAlexaForBusinessMetadata(v *types.AlexaForBus return nil } -func awsRestjson1_serializeDocumentAttendeeTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAttendeeTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentAttendeeTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAttendeeTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -9823,17 +9416,13 @@ func awsRestjson1_serializeDocumentBusinessCallingSettings(v *types.BusinessCall return nil } -func awsRestjson1_serializeDocumentCallingRegionList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCallingRegionList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -9861,17 +9450,13 @@ func awsRestjson1_serializeDocumentConversationRetentionSettings(v *types.Conver return nil } -func awsRestjson1_serializeDocumentCountryList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCountryList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -9895,34 +9480,26 @@ func awsRestjson1_serializeDocumentCreateAttendeeRequestItem(v *types.CreateAtte return nil } -func awsRestjson1_serializeDocumentCreateAttendeeRequestItemList(v []*types.CreateAttendeeRequestItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCreateAttendeeRequestItemList(v []types.CreateAttendeeRequestItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCreateAttendeeRequestItem(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCreateAttendeeRequestItem(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentCreateMeetingWithAttendeesRequestItemList(v []*types.CreateAttendeeRequestItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCreateMeetingWithAttendeesRequestItemList(v []types.CreateAttendeeRequestItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCreateAttendeeRequestItem(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCreateAttendeeRequestItem(&v[i], av); err != nil { return err } } @@ -9946,17 +9523,13 @@ func awsRestjson1_serializeDocumentCredential(v *types.Credential, value smithyj return nil } -func awsRestjson1_serializeDocumentCredentialList(v []*types.Credential, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCredentialList(v []types.Credential, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCredential(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCredential(&v[i], av); err != nil { return err } } @@ -9985,34 +9558,26 @@ func awsRestjson1_serializeDocumentDNISEmergencyCallingConfiguration(v *types.DN return nil } -func awsRestjson1_serializeDocumentDNISEmergencyCallingConfigurationList(v []*types.DNISEmergencyCallingConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDNISEmergencyCallingConfigurationList(v []types.DNISEmergencyCallingConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDNISEmergencyCallingConfiguration(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDNISEmergencyCallingConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentE164PhoneNumberList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentE164PhoneNumberList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -10077,32 +9642,24 @@ func awsRestjson1_serializeDocumentMeetingNotificationConfiguration(v *types.Mee return nil } -func awsRestjson1_serializeDocumentMeetingTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMeetingTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentMeetingTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMeetingTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -10126,34 +9683,26 @@ func awsRestjson1_serializeDocumentMembershipItem(v *types.MembershipItem, value return nil } -func awsRestjson1_serializeDocumentMembershipItemList(v []*types.MembershipItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMembershipItemList(v []types.MembershipItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMembershipItem(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMembershipItem(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentNonEmptyStringList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNonEmptyStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -10209,34 +9758,26 @@ func awsRestjson1_serializeDocumentOriginationRoute(v *types.OriginationRoute, v return nil } -func awsRestjson1_serializeDocumentOriginationRouteList(v []*types.OriginationRoute, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentOriginationRouteList(v []types.OriginationRoute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentOriginationRoute(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentOriginationRoute(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentParticipantPhoneNumberList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentParticipantPhoneNumberList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -10274,17 +9815,13 @@ func awsRestjson1_serializeDocumentRoomRetentionSettings(v *types.RoomRetentionS return nil } -func awsRestjson1_serializeDocumentSensitiveStringList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSensitiveStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -10301,17 +9838,13 @@ func awsRestjson1_serializeDocumentSigninDelegateGroup(v *types.SigninDelegateGr return nil } -func awsRestjson1_serializeDocumentSigninDelegateGroupList(v []*types.SigninDelegateGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSigninDelegateGroupList(v []types.SigninDelegateGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSigninDelegateGroup(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSigninDelegateGroup(&v[i], av); err != nil { return err } } @@ -10354,34 +9887,26 @@ func awsRestjson1_serializeDocumentStreamingNotificationTarget(v *types.Streamin return nil } -func awsRestjson1_serializeDocumentStreamingNotificationTargetList(v []*types.StreamingNotificationTarget, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStreamingNotificationTargetList(v []types.StreamingNotificationTarget, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentStreamingNotificationTarget(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentStreamingNotificationTarget(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentStringList(v []*string, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -10403,32 +9928,24 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -10515,17 +10032,13 @@ func awsRestjson1_serializeDocumentUpdatePhoneNumberRequestItem(v *types.UpdateP return nil } -func awsRestjson1_serializeDocumentUpdatePhoneNumberRequestItemList(v []*types.UpdatePhoneNumberRequestItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentUpdatePhoneNumberRequestItemList(v []types.UpdatePhoneNumberRequestItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentUpdatePhoneNumberRequestItem(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentUpdatePhoneNumberRequestItem(&v[i], av); err != nil { return err } } @@ -10561,49 +10074,37 @@ func awsRestjson1_serializeDocumentUpdateUserRequestItem(v *types.UpdateUserRequ return nil } -func awsRestjson1_serializeDocumentUpdateUserRequestItemList(v []*types.UpdateUserRequestItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentUpdateUserRequestItemList(v []types.UpdateUserRequestItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentUpdateUserRequestItem(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentUpdateUserRequestItem(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentUserEmailList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentUserEmailList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentUserIdList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentUserIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -10639,17 +10140,13 @@ func awsRestjson1_serializeDocumentVoiceConnectorItem(v *types.VoiceConnectorIte return nil } -func awsRestjson1_serializeDocumentVoiceConnectorItemList(v []*types.VoiceConnectorItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentVoiceConnectorItemList(v []types.VoiceConnectorItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentVoiceConnectorItem(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentVoiceConnectorItem(&v[i], av); err != nil { return err } } diff --git a/service/chime/types/types.go b/service/chime/types/types.go index def0d8652f8..d02559f0d7e 100644 --- a/service/chime/types/types.go +++ b/service/chime/types/types.go @@ -38,7 +38,7 @@ type Account struct { DefaultLicense License // The sign-in delegate groups associated with the account. - SigninDelegateGroups []*SigninDelegateGroup + SigninDelegateGroups []SigninDelegateGroup // Supported licenses for the Amazon Chime account. SupportedLicenses []License @@ -168,7 +168,7 @@ type CreateAttendeeRequestItem struct { ExternalUserId *string // The tag key-value pairs. - Tags []*Tag + Tags []Tag } // The SIP credentials used to authenticate requests to your Amazon Chime Voice @@ -210,7 +210,7 @@ type EmergencyCallingConfiguration struct { // The Dialed Number Identification Service (DNIS) emergency calling configuration // details. - DNIS []*DNISEmergencyCallingConfiguration + DNIS []DNISEmergencyCallingConfiguration } // The configuration that allows a bot to receive outgoing events. Can be either an @@ -386,7 +386,7 @@ type Origination struct { // The call distribution properties defined for your SIP hosts. Valid range: // Minimum value of 1. Maximum value of 20. - Routes []*OriginationRoute + Routes []OriginationRoute } // Origination routes define call distribution properties for your SIP hosts to @@ -429,7 +429,7 @@ type Participant struct { type PhoneNumber struct { // The phone number associations. - Associations []*PhoneNumberAssociation + Associations []PhoneNumberAssociation // The outbound calling name associated with the phone number. CallingName *string @@ -527,7 +527,7 @@ type PhoneNumberOrder struct { // The ordered phone number details, such as the phone number in E.164 format and // the phone number status. - OrderedPhoneNumbers []*OrderedPhoneNumber + OrderedPhoneNumbers []OrderedPhoneNumber // The phone number order ID. PhoneNumberOrderId *string @@ -556,7 +556,7 @@ type Proxy struct { FallBackPhoneNumber *string // The countries for proxy phone numbers to be selected from. - PhoneNumberCountries []*string + PhoneNumberCountries []string } // The proxy session for an Amazon Chime Voice Connector. @@ -589,7 +589,7 @@ type ProxySession struct { NumberSelectionBehavior NumberSelectionBehavior // The proxy session participants. - Participants []*Participant + Participants []Participant // The proxy session ID. ProxySessionId *string @@ -686,7 +686,7 @@ type StreamingConfiguration struct { Disabled *bool // The streaming notification targets. - StreamingNotificationTargets []*StreamingNotificationTarget + StreamingNotificationTargets []StreamingNotificationTarget } // The targeted recipient for a streaming configuration notification. @@ -738,10 +738,10 @@ type Termination struct { // The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. // Required. - CallingRegions []*string + CallingRegions []string // The IP addresses allowed to make calls, in CIDR format. Required. - CidrAllowedList []*string + CidrAllowedList []string // The limit on calls per second. Max value based on account service quota. Default // value of 1. @@ -916,7 +916,7 @@ type VoiceConnectorGroup struct { VoiceConnectorGroupId *string // The Amazon Chime Voice Connectors to which to route inbound calls. - VoiceConnectorItems []*VoiceConnectorItem + VoiceConnectorItems []VoiceConnectorItem } // For Amazon Chime Voice Connector groups, the Amazon Chime Voice Connectors to diff --git a/service/chime/validators.go b/service/chime/validators.go index f86de560407..b66c242f516 100644 --- a/service/chime/validators.go +++ b/service/chime/validators.go @@ -2650,13 +2650,13 @@ func addOpUpdateVoiceConnectorValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpUpdateVoiceConnector{}, middleware.After) } -func validateAttendeeTagList(v []*types.Tag) error { +func validateAttendeeTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AttendeeTagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2687,13 +2687,13 @@ func validateCreateAttendeeRequestItem(v *types.CreateAttendeeRequestItem) error } } -func validateCreateAttendeeRequestItemList(v []*types.CreateAttendeeRequestItem) error { +func validateCreateAttendeeRequestItemList(v []types.CreateAttendeeRequestItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateAttendeeRequestItemList"} for i := range v { - if err := validateCreateAttendeeRequestItem(v[i]); err != nil { + if err := validateCreateAttendeeRequestItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2704,13 +2704,13 @@ func validateCreateAttendeeRequestItemList(v []*types.CreateAttendeeRequestItem) } } -func validateCreateMeetingWithAttendeesRequestItemList(v []*types.CreateAttendeeRequestItem) error { +func validateCreateMeetingWithAttendeesRequestItemList(v []types.CreateAttendeeRequestItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateMeetingWithAttendeesRequestItemList"} for i := range v { - if err := validateCreateAttendeeRequestItem(v[i]); err != nil { + if err := validateCreateAttendeeRequestItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2739,13 +2739,13 @@ func validateDNISEmergencyCallingConfiguration(v *types.DNISEmergencyCallingConf } } -func validateDNISEmergencyCallingConfigurationList(v []*types.DNISEmergencyCallingConfiguration) error { +func validateDNISEmergencyCallingConfigurationList(v []types.DNISEmergencyCallingConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DNISEmergencyCallingConfigurationList"} for i := range v { - if err := validateDNISEmergencyCallingConfiguration(v[i]); err != nil { + if err := validateDNISEmergencyCallingConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2791,13 +2791,13 @@ func validateGeoMatchParams(v *types.GeoMatchParams) error { } } -func validateMeetingTagList(v []*types.Tag) error { +func validateMeetingTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MeetingTagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2843,13 +2843,13 @@ func validateStreamingNotificationTarget(v *types.StreamingNotificationTarget) e } } -func validateStreamingNotificationTargetList(v []*types.StreamingNotificationTarget) error { +func validateStreamingNotificationTargetList(v []types.StreamingNotificationTarget) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "StreamingNotificationTargetList"} for i := range v { - if err := validateStreamingNotificationTarget(v[i]); err != nil { + if err := validateStreamingNotificationTarget(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2878,13 +2878,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2931,13 +2931,13 @@ func validateUpdatePhoneNumberRequestItem(v *types.UpdatePhoneNumberRequestItem) } } -func validateUpdatePhoneNumberRequestItemList(v []*types.UpdatePhoneNumberRequestItem) error { +func validateUpdatePhoneNumberRequestItemList(v []types.UpdatePhoneNumberRequestItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdatePhoneNumberRequestItemList"} for i := range v { - if err := validateUpdatePhoneNumberRequestItem(v[i]); err != nil { + if err := validateUpdatePhoneNumberRequestItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2963,13 +2963,13 @@ func validateUpdateUserRequestItem(v *types.UpdateUserRequestItem) error { } } -func validateUpdateUserRequestItemList(v []*types.UpdateUserRequestItem) error { +func validateUpdateUserRequestItemList(v []types.UpdateUserRequestItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateUserRequestItemList"} for i := range v { - if err := validateUpdateUserRequestItem(v[i]); err != nil { + if err := validateUpdateUserRequestItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3017,13 +3017,13 @@ func validateVoiceConnectorItem(v *types.VoiceConnectorItem) error { } } -func validateVoiceConnectorItemList(v []*types.VoiceConnectorItem) error { +func validateVoiceConnectorItemList(v []types.VoiceConnectorItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "VoiceConnectorItemList"} for i := range v { - if err := validateVoiceConnectorItem(v[i]); err != nil { + if err := validateVoiceConnectorItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/cloud9/api_op_CreateEnvironmentEC2.go b/service/cloud9/api_op_CreateEnvironmentEC2.go index 18054ee05f9..efd4598235b 100644 --- a/service/cloud9/api_op_CreateEnvironmentEC2.go +++ b/service/cloud9/api_op_CreateEnvironmentEC2.go @@ -69,7 +69,7 @@ type CreateEnvironmentEC2Input struct { // An array of key-value pairs that will be associated with the new AWS Cloud9 // development environment. - Tags []*types.Tag + Tags []types.Tag } type CreateEnvironmentEC2Output struct { diff --git a/service/cloud9/api_op_DescribeEnvironmentMemberships.go b/service/cloud9/api_op_DescribeEnvironmentMemberships.go index 93f1af5a06c..9a4f1678a75 100644 --- a/service/cloud9/api_op_DescribeEnvironmentMemberships.go +++ b/service/cloud9/api_op_DescribeEnvironmentMemberships.go @@ -68,7 +68,7 @@ type DescribeEnvironmentMembershipsInput struct { type DescribeEnvironmentMembershipsOutput struct { // Information about the environment members for the environment. - Memberships []*types.EnvironmentMember + Memberships []types.EnvironmentMember // If there are more than 25 items in the list, only the first 25 items are // returned, along with a unique string called a next token. To get the next batch diff --git a/service/cloud9/api_op_DescribeEnvironments.go b/service/cloud9/api_op_DescribeEnvironments.go index 4c0b8a7baa4..98d7c91fb39 100644 --- a/service/cloud9/api_op_DescribeEnvironments.go +++ b/service/cloud9/api_op_DescribeEnvironments.go @@ -32,13 +32,13 @@ type DescribeEnvironmentsInput struct { // The IDs of individual environments to get information about. // // This member is required. - EnvironmentIds []*string + EnvironmentIds []string } type DescribeEnvironmentsOutput struct { // Information about the environments that are returned. - Environments []*types.Environment + Environments []types.Environment // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloud9/api_op_ListEnvironments.go b/service/cloud9/api_op_ListEnvironments.go index 40e9c0e521b..b2564398cb9 100644 --- a/service/cloud9/api_op_ListEnvironments.go +++ b/service/cloud9/api_op_ListEnvironments.go @@ -43,7 +43,7 @@ type ListEnvironmentsInput struct { type ListEnvironmentsOutput struct { // The list of environment identifiers. - EnvironmentIds []*string + EnvironmentIds []string // If there are more than 25 items in the list, only the first 25 items are // returned, along with a unique string called a next token. To get the next batch diff --git a/service/cloud9/api_op_ListTagsForResource.go b/service/cloud9/api_op_ListTagsForResource.go index a1f2e48aacf..56dbea5aba0 100644 --- a/service/cloud9/api_op_ListTagsForResource.go +++ b/service/cloud9/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The list of tags associated with the AWS Cloud9 development environment. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloud9/api_op_TagResource.go b/service/cloud9/api_op_TagResource.go index 315573e2c96..83cbfa72cea 100644 --- a/service/cloud9/api_op_TagResource.go +++ b/service/cloud9/api_op_TagResource.go @@ -40,7 +40,7 @@ type TagResourceInput struct { // The list of tags to add to the given AWS Cloud9 development environment. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/cloud9/api_op_UntagResource.go b/service/cloud9/api_op_UntagResource.go index ad8927185b6..d3870ef1f76 100644 --- a/service/cloud9/api_op_UntagResource.go +++ b/service/cloud9/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // environment. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/cloud9/deserializers.go b/service/cloud9/deserializers.go index acaf6a2c076..f70ece5968f 100644 --- a/service/cloud9/deserializers.go +++ b/service/cloud9/deserializers.go @@ -1974,7 +1974,7 @@ func awsAwsjson11_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClassName = &jtv + sv.ClassName = ptr.String(jtv) } case "code": @@ -1987,7 +1987,7 @@ func awsAwsjson11_deserializeDocumentBadRequestException(v **types.BadRequestExc if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -1996,7 +1996,7 @@ func awsAwsjson11_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2036,7 +2036,7 @@ func awsAwsjson11_deserializeDocumentConcurrentAccessException(v **types.Concurr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClassName = &jtv + sv.ClassName = ptr.String(jtv) } case "code": @@ -2049,7 +2049,7 @@ func awsAwsjson11_deserializeDocumentConcurrentAccessException(v **types.Concurr if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -2058,7 +2058,7 @@ func awsAwsjson11_deserializeDocumentConcurrentAccessException(v **types.Concurr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2098,7 +2098,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClassName = &jtv + sv.ClassName = ptr.String(jtv) } case "code": @@ -2111,7 +2111,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -2120,7 +2120,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2160,7 +2160,7 @@ func awsAwsjson11_deserializeDocumentEnvironment(v **types.Environment, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "connectionType": @@ -2178,7 +2178,7 @@ func awsAwsjson11_deserializeDocumentEnvironment(v **types.Environment, value in if !ok { return fmt.Errorf("expected EnvironmentDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -2187,7 +2187,7 @@ func awsAwsjson11_deserializeDocumentEnvironment(v **types.Environment, value in if !ok { return fmt.Errorf("expected EnvironmentId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "lifecycle": @@ -2201,7 +2201,7 @@ func awsAwsjson11_deserializeDocumentEnvironment(v **types.Environment, value in if !ok { return fmt.Errorf("expected EnvironmentName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ownerArn": @@ -2210,7 +2210,7 @@ func awsAwsjson11_deserializeDocumentEnvironment(v **types.Environment, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OwnerArn = &jtv + sv.OwnerArn = ptr.String(jtv) } case "type": @@ -2231,7 +2231,7 @@ func awsAwsjson11_deserializeDocumentEnvironment(v **types.Environment, value in return nil } -func awsAwsjson11_deserializeDocumentEnvironmentIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentEnvironmentIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2244,21 +2244,21 @@ func awsAwsjson11_deserializeDocumentEnvironmentIdList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected EnvironmentId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2295,7 +2295,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentLifecycle(v **types.EnvironmentL if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureResource = &jtv + sv.FailureResource = ptr.String(jtv) } case "reason": @@ -2304,7 +2304,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentLifecycle(v **types.EnvironmentL if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "status": @@ -2325,7 +2325,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentLifecycle(v **types.EnvironmentL return nil } -func awsAwsjson11_deserializeDocumentEnvironmentList(v *[]*types.Environment, value interface{}) error { +func awsAwsjson11_deserializeDocumentEnvironmentList(v *[]types.Environment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2338,18 +2338,20 @@ func awsAwsjson11_deserializeDocumentEnvironmentList(v *[]*types.Environment, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Environment + var cv []types.Environment if *v == nil { - cv = []*types.Environment{} + cv = []types.Environment{} } else { cv = *v } for _, value := range shape { - var col *types.Environment - if err := awsAwsjson11_deserializeDocumentEnvironment(&col, value); err != nil { + var col types.Environment + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEnvironment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2385,7 +2387,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentMember(v **types.EnvironmentMemb if !ok { return fmt.Errorf("expected EnvironmentId to be of type string, got %T instead", value) } - sv.EnvironmentId = &jtv + sv.EnvironmentId = ptr.String(jtv) } case "lastAccess": @@ -2416,7 +2418,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentMember(v **types.EnvironmentMemb if !ok { return fmt.Errorf("expected UserArn to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } case "userId": @@ -2425,7 +2427,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentMember(v **types.EnvironmentMemb if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } default: @@ -2437,7 +2439,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentMember(v **types.EnvironmentMemb return nil } -func awsAwsjson11_deserializeDocumentEnvironmentMembersList(v *[]*types.EnvironmentMember, value interface{}) error { +func awsAwsjson11_deserializeDocumentEnvironmentMembersList(v *[]types.EnvironmentMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2450,18 +2452,20 @@ func awsAwsjson11_deserializeDocumentEnvironmentMembersList(v *[]*types.Environm return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EnvironmentMember + var cv []types.EnvironmentMember if *v == nil { - cv = []*types.EnvironmentMember{} + cv = []types.EnvironmentMember{} } else { cv = *v } for _, value := range shape { - var col *types.EnvironmentMember - if err := awsAwsjson11_deserializeDocumentEnvironmentMember(&col, value); err != nil { + var col types.EnvironmentMember + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEnvironmentMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2497,7 +2501,7 @@ func awsAwsjson11_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClassName = &jtv + sv.ClassName = ptr.String(jtv) } case "code": @@ -2510,7 +2514,7 @@ func awsAwsjson11_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -2519,7 +2523,7 @@ func awsAwsjson11_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2559,7 +2563,7 @@ func awsAwsjson11_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClassName = &jtv + sv.ClassName = ptr.String(jtv) } case "code": @@ -2572,7 +2576,7 @@ func awsAwsjson11_deserializeDocumentInternalServerErrorException(v **types.Inte if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -2581,7 +2585,7 @@ func awsAwsjson11_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2621,7 +2625,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClassName = &jtv + sv.ClassName = ptr.String(jtv) } case "code": @@ -2634,7 +2638,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -2643,7 +2647,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2683,7 +2687,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClassName = &jtv + sv.ClassName = ptr.String(jtv) } case "code": @@ -2696,7 +2700,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -2705,7 +2709,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2745,7 +2749,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -2754,7 +2758,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -2766,7 +2770,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2779,18 +2783,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2826,7 +2832,7 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClassName = &jtv + sv.ClassName = ptr.String(jtv) } case "code": @@ -2839,7 +2845,7 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -2848,7 +2854,7 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2888,7 +2894,7 @@ func awsAwsjson11_deserializeOpDocumentCreateEnvironmentEC2Output(v **CreateEnvi if !ok { return fmt.Errorf("expected EnvironmentId to be of type string, got %T instead", value) } - sv.EnvironmentId = &jtv + sv.EnvironmentId = ptr.String(jtv) } default: @@ -3031,7 +3037,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEnvironmentMembershipsOutput(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3107,7 +3113,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEnvironmentStatusOutput(v **Descr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "status": @@ -3161,7 +3167,7 @@ func awsAwsjson11_deserializeOpDocumentListEnvironmentsOutput(v **ListEnvironmen if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: diff --git a/service/cloud9/go.mod b/service/cloud9/go.mod index 318cd092959..9e435e8ac6c 100644 --- a/service/cloud9/go.mod +++ b/service/cloud9/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cloud9 go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cloud9/serializers.go b/service/cloud9/serializers.go index fb73fceadd7..cec325c1321 100644 --- a/service/cloud9/serializers.go +++ b/service/cloud9/serializers.go @@ -611,17 +611,13 @@ func (m *awsAwsjson11_serializeOpUpdateEnvironmentMembership) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentBoundedEnvironmentIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBoundedEnvironmentIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -654,32 +650,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/cloud9/types/errors.go b/service/cloud9/types/errors.go index 60323158614..efcb0d96cd8 100644 --- a/service/cloud9/types/errors.go +++ b/service/cloud9/types/errors.go @@ -11,7 +11,7 @@ import ( type BadRequestException struct { Message *string - Code *int32 + Code int32 ClassName *string } @@ -31,7 +31,7 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ConcurrentAccessException struct { Message *string - Code *int32 + Code int32 ClassName *string } @@ -52,7 +52,7 @@ type ConflictException struct { Message *string ClassName *string - Code *int32 + Code int32 } func (e *ConflictException) Error() string { @@ -72,7 +72,7 @@ type ForbiddenException struct { Message *string ClassName *string - Code *int32 + Code int32 } func (e *ForbiddenException) Error() string { @@ -91,7 +91,7 @@ func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.Faul type InternalServerErrorException struct { Message *string - Code *int32 + Code int32 ClassName *string } @@ -112,7 +112,7 @@ type LimitExceededException struct { Message *string ClassName *string - Code *int32 + Code int32 } func (e *LimitExceededException) Error() string { @@ -131,7 +131,7 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type NotFoundException struct { Message *string - Code *int32 + Code int32 ClassName *string } @@ -152,7 +152,7 @@ type TooManyRequestsException struct { Message *string ClassName *string - Code *int32 + Code int32 } func (e *TooManyRequestsException) Error() string { diff --git a/service/cloud9/validators.go b/service/cloud9/validators.go index 6b27cb525ba..cb61747f06c 100644 --- a/service/cloud9/validators.go +++ b/service/cloud9/validators.go @@ -292,13 +292,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/clouddirectory/api_op_AddFacetToObject.go b/service/clouddirectory/api_op_AddFacetToObject.go index c1ee0b8d855..fe8b33fa3ae 100644 --- a/service/clouddirectory/api_op_AddFacetToObject.go +++ b/service/clouddirectory/api_op_AddFacetToObject.go @@ -48,7 +48,7 @@ type AddFacetToObjectInput struct { SchemaFacet *types.SchemaFacet // Attributes on the facet that you are adding to the object. - ObjectAttributeList []*types.AttributeKeyAndValue + ObjectAttributeList []types.AttributeKeyAndValue } type AddFacetToObjectOutput struct { diff --git a/service/clouddirectory/api_op_AttachTypedLink.go b/service/clouddirectory/api_op_AttachTypedLink.go index 2845c25de3f..516f356d70f 100644 --- a/service/clouddirectory/api_op_AttachTypedLink.go +++ b/service/clouddirectory/api_op_AttachTypedLink.go @@ -34,7 +34,7 @@ type AttachTypedLinkInput struct { // A set of attributes that are associated with the typed link. // // This member is required. - Attributes []*types.AttributeNameAndValue + Attributes []types.AttributeNameAndValue // The Amazon Resource Name (ARN) of the directory where you want to attach the // typed link. diff --git a/service/clouddirectory/api_op_BatchRead.go b/service/clouddirectory/api_op_BatchRead.go index 97c64b21ca5..4fce66ef393 100644 --- a/service/clouddirectory/api_op_BatchRead.go +++ b/service/clouddirectory/api_op_BatchRead.go @@ -38,7 +38,7 @@ type BatchReadInput struct { // A list of operations that are part of the batch. // // This member is required. - Operations []*types.BatchReadOperation + Operations []types.BatchReadOperation // Represents the manner and timing in which the successful write or update of an // object is reflected in a subsequent read operation of that same object. @@ -48,7 +48,7 @@ type BatchReadInput struct { type BatchReadOutput struct { // A list of all the responses for each batch read. - Responses []*types.BatchReadOperationResponse + Responses []types.BatchReadOperationResponse // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_BatchWrite.go b/service/clouddirectory/api_op_BatchWrite.go index 44c2ef9dd97..1f6ca0c5e04 100644 --- a/service/clouddirectory/api_op_BatchWrite.go +++ b/service/clouddirectory/api_op_BatchWrite.go @@ -39,13 +39,13 @@ type BatchWriteInput struct { // A list of operations that are part of the batch. // // This member is required. - Operations []*types.BatchWriteOperation + Operations []types.BatchWriteOperation } type BatchWriteOutput struct { // A list of all the responses for each batch write. - Responses []*types.BatchWriteOperationResponse + Responses []types.BatchWriteOperationResponse // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_CreateFacet.go b/service/clouddirectory/api_op_CreateFacet.go index b10356a3491..16ec8022717 100644 --- a/service/clouddirectory/api_op_CreateFacet.go +++ b/service/clouddirectory/api_op_CreateFacet.go @@ -42,7 +42,7 @@ type CreateFacetInput struct { SchemaArn *string // The attributes that are associated with the Facet. - Attributes []*types.FacetAttribute + Attributes []types.FacetAttribute // There are two different styles that you can define on any given facet, Static // and Dynamic. For static facets, all attributes must be defined in the schema. diff --git a/service/clouddirectory/api_op_CreateIndex.go b/service/clouddirectory/api_op_CreateIndex.go index 2446a033197..f96040f376d 100644 --- a/service/clouddirectory/api_op_CreateIndex.go +++ b/service/clouddirectory/api_op_CreateIndex.go @@ -39,13 +39,13 @@ type CreateIndexInput struct { // Indicates whether the attribute that is being indexed has unique values or not. // // This member is required. - IsUnique *bool + IsUnique bool // Specifies the attributes that should be indexed on. Currently only a single // attribute is supported. // // This member is required. - OrderedIndexedAttributeList []*types.AttributeKey + OrderedIndexedAttributeList []types.AttributeKey // The name of the link between the parent object and the index object. LinkName *string diff --git a/service/clouddirectory/api_op_CreateObject.go b/service/clouddirectory/api_op_CreateObject.go index ddcd5f81830..d98818df282 100644 --- a/service/clouddirectory/api_op_CreateObject.go +++ b/service/clouddirectory/api_op_CreateObject.go @@ -42,14 +42,14 @@ type CreateObjectInput struct { // version components. See SchemaFacet for details. // // This member is required. - SchemaFacets []*types.SchemaFacet + SchemaFacets []types.SchemaFacet // The name of link that is used to attach this object to a parent. LinkName *string // The attribute map whose attribute ARN contains the key and attribute value as // the map value. - ObjectAttributeList []*types.AttributeKeyAndValue + ObjectAttributeList []types.AttributeKeyAndValue // If specified, the parent reference to which this object will be attached. ParentReference *types.ObjectReference diff --git a/service/clouddirectory/api_op_GetLinkAttributes.go b/service/clouddirectory/api_op_GetLinkAttributes.go index c2691d51546..ef65fb9893b 100644 --- a/service/clouddirectory/api_op_GetLinkAttributes.go +++ b/service/clouddirectory/api_op_GetLinkAttributes.go @@ -32,7 +32,7 @@ type GetLinkAttributesInput struct { // A list of attribute names whose values will be retrieved. // // This member is required. - AttributeNames []*string + AttributeNames []string // The Amazon Resource Name (ARN) that is associated with the Directory where the // typed link resides. For more information, see arns or Typed Links @@ -53,7 +53,7 @@ type GetLinkAttributesInput struct { type GetLinkAttributesOutput struct { // The attributes that are associated with the typed link. - Attributes []*types.AttributeKeyAndValue + Attributes []types.AttributeKeyAndValue // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_GetObjectAttributes.go b/service/clouddirectory/api_op_GetObjectAttributes.go index 87e3827a0ec..c8d29d7641b 100644 --- a/service/clouddirectory/api_op_GetObjectAttributes.go +++ b/service/clouddirectory/api_op_GetObjectAttributes.go @@ -32,7 +32,7 @@ type GetObjectAttributesInput struct { // List of attribute names whose values will be retrieved. // // This member is required. - AttributeNames []*string + AttributeNames []string // The Amazon Resource Name (ARN) that is associated with the Directory where the // object resides. @@ -58,7 +58,7 @@ type GetObjectAttributesInput struct { type GetObjectAttributesOutput struct { // The attributes that are associated with the object. - Attributes []*types.AttributeKeyAndValue + Attributes []types.AttributeKeyAndValue // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_GetObjectInformation.go b/service/clouddirectory/api_op_GetObjectInformation.go index ec429e73d01..fedea737cdf 100644 --- a/service/clouddirectory/api_op_GetObjectInformation.go +++ b/service/clouddirectory/api_op_GetObjectInformation.go @@ -51,7 +51,7 @@ type GetObjectInformationOutput struct { // The facets attached to the specified object. Although the response does not // include minor version information, the most recently applied minor version of // each Facet is in effect. See GetAppliedSchemaVersion for details. - SchemaFacets []*types.SchemaFacet + SchemaFacets []types.SchemaFacet // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_GetTypedLinkFacetInformation.go b/service/clouddirectory/api_op_GetTypedLinkFacetInformation.go index 34616783f9a..7e063f3f341 100644 --- a/service/clouddirectory/api_op_GetTypedLinkFacetInformation.go +++ b/service/clouddirectory/api_op_GetTypedLinkFacetInformation.go @@ -53,7 +53,7 @@ type GetTypedLinkFacetInformationOutput struct { // not the order in which they are supplied to any API calls. For more information // about identity attributes, see Typed Links // (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). - IdentityAttributeOrder []*string + IdentityAttributeOrder []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_ListAppliedSchemaArns.go b/service/clouddirectory/api_op_ListAppliedSchemaArns.go index 0c9c8bb27d3..a87d63a9cb3 100644 --- a/service/clouddirectory/api_op_ListAppliedSchemaArns.go +++ b/service/clouddirectory/api_op_ListAppliedSchemaArns.go @@ -51,7 +51,7 @@ type ListAppliedSchemaArnsOutput struct { NextToken *string // The ARNs of schemas that are applied to the directory. - SchemaArns []*string + SchemaArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_ListAttachedIndices.go b/service/clouddirectory/api_op_ListAttachedIndices.go index bf16582d117..44dad82a559 100644 --- a/service/clouddirectory/api_op_ListAttachedIndices.go +++ b/service/clouddirectory/api_op_ListAttachedIndices.go @@ -52,7 +52,7 @@ type ListAttachedIndicesInput struct { type ListAttachedIndicesOutput struct { // The indices attached to the specified object. - IndexAttachments []*types.IndexAttachment + IndexAttachments []types.IndexAttachment // The pagination token. NextToken *string diff --git a/service/clouddirectory/api_op_ListDevelopmentSchemaArns.go b/service/clouddirectory/api_op_ListDevelopmentSchemaArns.go index 249cd7609dd..654af8503d6 100644 --- a/service/clouddirectory/api_op_ListDevelopmentSchemaArns.go +++ b/service/clouddirectory/api_op_ListDevelopmentSchemaArns.go @@ -41,7 +41,7 @@ type ListDevelopmentSchemaArnsOutput struct { NextToken *string // The ARNs of retrieved development schemas. - SchemaArns []*string + SchemaArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_ListDirectories.go b/service/clouddirectory/api_op_ListDirectories.go index 08debbb481a..b6d4d31beb5 100644 --- a/service/clouddirectory/api_op_ListDirectories.go +++ b/service/clouddirectory/api_op_ListDirectories.go @@ -46,7 +46,7 @@ type ListDirectoriesOutput struct { // fashion. // // This member is required. - Directories []*types.Directory + Directories []types.Directory // The pagination token. NextToken *string diff --git a/service/clouddirectory/api_op_ListFacetAttributes.go b/service/clouddirectory/api_op_ListFacetAttributes.go index 186b0530919..e4ae09b4524 100644 --- a/service/clouddirectory/api_op_ListFacetAttributes.go +++ b/service/clouddirectory/api_op_ListFacetAttributes.go @@ -49,7 +49,7 @@ type ListFacetAttributesInput struct { type ListFacetAttributesOutput struct { // The attributes attached to the facet. - Attributes []*types.FacetAttribute + Attributes []types.FacetAttribute // The pagination token. NextToken *string diff --git a/service/clouddirectory/api_op_ListFacetNames.go b/service/clouddirectory/api_op_ListFacetNames.go index f861f867aa1..080bcb4a45e 100644 --- a/service/clouddirectory/api_op_ListFacetNames.go +++ b/service/clouddirectory/api_op_ListFacetNames.go @@ -43,7 +43,7 @@ type ListFacetNamesInput struct { type ListFacetNamesOutput struct { // The names of facets that exist within the schema. - FacetNames []*string + FacetNames []string // The pagination token. NextToken *string diff --git a/service/clouddirectory/api_op_ListIncomingTypedLinks.go b/service/clouddirectory/api_op_ListIncomingTypedLinks.go index 914f7e2057d..475cf849559 100644 --- a/service/clouddirectory/api_op_ListIncomingTypedLinks.go +++ b/service/clouddirectory/api_op_ListIncomingTypedLinks.go @@ -49,7 +49,7 @@ type ListIncomingTypedLinksInput struct { // Provides range filters for multiple attributes. When providing ranges to typed // link selection, any inexact ranges must be specified at the end. Any attributes // that do not have a range specified are presumed to match the entire range. - FilterAttributeRanges []*types.TypedLinkAttributeRange + FilterAttributeRanges []types.TypedLinkAttributeRange // Filters are interpreted in the order of the attributes on the typed link facet, // not the order in which they are supplied to any API calls. @@ -65,7 +65,7 @@ type ListIncomingTypedLinksInput struct { type ListIncomingTypedLinksOutput struct { // Returns one or more typed link specifiers as output. - LinkSpecifiers []*types.TypedLinkSpecifier + LinkSpecifiers []types.TypedLinkSpecifier // The pagination token. NextToken *string diff --git a/service/clouddirectory/api_op_ListIndex.go b/service/clouddirectory/api_op_ListIndex.go index 1966ca79754..fac822a32c4 100644 --- a/service/clouddirectory/api_op_ListIndex.go +++ b/service/clouddirectory/api_op_ListIndex.go @@ -51,13 +51,13 @@ type ListIndexInput struct { NextToken *string // Specifies the ranges of indexed values that you want to query. - RangesOnIndexedValues []*types.ObjectAttributeRange + RangesOnIndexedValues []types.ObjectAttributeRange } type ListIndexOutput struct { // The objects and indexed values attached to the index. - IndexAttachments []*types.IndexAttachment + IndexAttachments []types.IndexAttachment // The pagination token. NextToken *string diff --git a/service/clouddirectory/api_op_ListManagedSchemaArns.go b/service/clouddirectory/api_op_ListManagedSchemaArns.go index b1b84c528e0..854b7efdd3b 100644 --- a/service/clouddirectory/api_op_ListManagedSchemaArns.go +++ b/service/clouddirectory/api_op_ListManagedSchemaArns.go @@ -47,7 +47,7 @@ type ListManagedSchemaArnsOutput struct { NextToken *string // The ARNs for all AWS managed schemas. - SchemaArns []*string + SchemaArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_ListObjectAttributes.go b/service/clouddirectory/api_op_ListObjectAttributes.go index 9626d241804..a85171994de 100644 --- a/service/clouddirectory/api_op_ListObjectAttributes.go +++ b/service/clouddirectory/api_op_ListObjectAttributes.go @@ -60,7 +60,7 @@ type ListObjectAttributesOutput struct { // Attributes map that is associated with the object. AttributeArn is the key, and // attribute value is the value. - Attributes []*types.AttributeKeyAndValue + Attributes []types.AttributeKeyAndValue // The pagination token. NextToken *string diff --git a/service/clouddirectory/api_op_ListObjectChildren.go b/service/clouddirectory/api_op_ListObjectChildren.go index 3e20f3953fd..c406909ceff 100644 --- a/service/clouddirectory/api_op_ListObjectChildren.go +++ b/service/clouddirectory/api_op_ListObjectChildren.go @@ -58,7 +58,7 @@ type ListObjectChildrenOutput struct { // Children structure, which is a map with key as the LinkName and ObjectIdentifier // as the value. - Children map[string]*string + Children map[string]string // The pagination token. NextToken *string diff --git a/service/clouddirectory/api_op_ListObjectParentPaths.go b/service/clouddirectory/api_op_ListObjectParentPaths.go index f42d953c997..9145006126b 100644 --- a/service/clouddirectory/api_op_ListObjectParentPaths.go +++ b/service/clouddirectory/api_op_ListObjectParentPaths.go @@ -63,7 +63,7 @@ type ListObjectParentPathsOutput struct { // Returns the path to the ObjectIdentifiers that are associated with the // directory. - PathToObjectIdentifiersList []*types.PathToObjectIdentifiers + PathToObjectIdentifiersList []types.PathToObjectIdentifiers // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_ListObjectParents.go b/service/clouddirectory/api_op_ListObjectParents.go index 24a2071a84a..c55afbbd200 100644 --- a/service/clouddirectory/api_op_ListObjectParents.go +++ b/service/clouddirectory/api_op_ListObjectParents.go @@ -48,7 +48,7 @@ type ListObjectParentsInput struct { // When set to True, returns all ListObjectParentsResponse$ParentLinks. There could // be multiple links between a parent-child pair. - IncludeAllLinksToEachParent *bool + IncludeAllLinksToEachParent bool // The maximum number of items to be retrieved in a single call. This is an // approximate number. @@ -64,11 +64,11 @@ type ListObjectParentsOutput struct { NextToken *string // Returns a list of parent reference and LinkName Tuples. - ParentLinks []*types.ObjectIdentifierAndLinkNameTuple + ParentLinks []types.ObjectIdentifierAndLinkNameTuple // The parent structure, which is a map with key as the ObjectIdentifier and // LinkName as the value. - Parents map[string]*string + Parents map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_ListObjectPolicies.go b/service/clouddirectory/api_op_ListObjectPolicies.go index 737fcebf675..79c774a8832 100644 --- a/service/clouddirectory/api_op_ListObjectPolicies.go +++ b/service/clouddirectory/api_op_ListObjectPolicies.go @@ -55,7 +55,7 @@ type ListObjectPoliciesInput struct { type ListObjectPoliciesOutput struct { // A list of policy ObjectIdentifiers, that are attached to the object. - AttachedPolicyIds []*string + AttachedPolicyIds []string // The pagination token. NextToken *string diff --git a/service/clouddirectory/api_op_ListOutgoingTypedLinks.go b/service/clouddirectory/api_op_ListOutgoingTypedLinks.go index 19744a67344..865ead2121d 100644 --- a/service/clouddirectory/api_op_ListOutgoingTypedLinks.go +++ b/service/clouddirectory/api_op_ListOutgoingTypedLinks.go @@ -49,7 +49,7 @@ type ListOutgoingTypedLinksInput struct { // Provides range filters for multiple attributes. When providing ranges to typed // link selection, any inexact ranges must be specified at the end. Any attributes // that do not have a range specified are presumed to match the entire range. - FilterAttributeRanges []*types.TypedLinkAttributeRange + FilterAttributeRanges []types.TypedLinkAttributeRange // Filters are interpreted in the order of the attributes defined on the typed link // facet, not the order they are supplied to any API calls. @@ -68,7 +68,7 @@ type ListOutgoingTypedLinksOutput struct { NextToken *string // Returns a typed link specifier as output. - TypedLinkSpecifiers []*types.TypedLinkSpecifier + TypedLinkSpecifiers []types.TypedLinkSpecifier // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_ListPolicyAttachments.go b/service/clouddirectory/api_op_ListPolicyAttachments.go index d1121ec45ee..9baf6ad36e6 100644 --- a/service/clouddirectory/api_op_ListPolicyAttachments.go +++ b/service/clouddirectory/api_op_ListPolicyAttachments.go @@ -58,7 +58,7 @@ type ListPolicyAttachmentsOutput struct { NextToken *string // A list of ObjectIdentifiers to which the policy is attached. - ObjectIdentifiers []*string + ObjectIdentifiers []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_ListPublishedSchemaArns.go b/service/clouddirectory/api_op_ListPublishedSchemaArns.go index 2bba9911410..ff4c9a6b9d6 100644 --- a/service/clouddirectory/api_op_ListPublishedSchemaArns.go +++ b/service/clouddirectory/api_op_ListPublishedSchemaArns.go @@ -47,7 +47,7 @@ type ListPublishedSchemaArnsOutput struct { NextToken *string // The ARNs of published schemas. - SchemaArns []*string + SchemaArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_ListTagsForResource.go b/service/clouddirectory/api_op_ListTagsForResource.go index 3bf3a1479b3..069e08de1d9 100644 --- a/service/clouddirectory/api_op_ListTagsForResource.go +++ b/service/clouddirectory/api_op_ListTagsForResource.go @@ -53,7 +53,7 @@ type ListTagsForResourceOutput struct { NextToken *string // A list of tag key value pairs that are associated with the response. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_ListTypedLinkFacetAttributes.go b/service/clouddirectory/api_op_ListTypedLinkFacetAttributes.go index 509f84a50ca..63a680d7c27 100644 --- a/service/clouddirectory/api_op_ListTypedLinkFacetAttributes.go +++ b/service/clouddirectory/api_op_ListTypedLinkFacetAttributes.go @@ -52,7 +52,7 @@ type ListTypedLinkFacetAttributesInput struct { type ListTypedLinkFacetAttributesOutput struct { // An ordered set of attributes associate with the typed link. - Attributes []*types.TypedLinkAttributeDefinition + Attributes []types.TypedLinkAttributeDefinition // The pagination token. NextToken *string diff --git a/service/clouddirectory/api_op_ListTypedLinkFacetNames.go b/service/clouddirectory/api_op_ListTypedLinkFacetNames.go index 633fff71db7..a1fe716e3d0 100644 --- a/service/clouddirectory/api_op_ListTypedLinkFacetNames.go +++ b/service/clouddirectory/api_op_ListTypedLinkFacetNames.go @@ -46,7 +46,7 @@ type ListTypedLinkFacetNamesInput struct { type ListTypedLinkFacetNamesOutput struct { // The names of typed link facets that exist within the schema. - FacetNames []*string + FacetNames []string // The pagination token. NextToken *string diff --git a/service/clouddirectory/api_op_LookupPolicy.go b/service/clouddirectory/api_op_LookupPolicy.go index 3f67879871d..78d33518153 100644 --- a/service/clouddirectory/api_op_LookupPolicy.go +++ b/service/clouddirectory/api_op_LookupPolicy.go @@ -62,7 +62,7 @@ type LookupPolicyOutput struct { // Provides list of path to policies. Policies contain PolicyId, ObjectIdentifier, // and PolicyType. For more information, see Policies // (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies). - PolicyToPathList []*types.PolicyToPath + PolicyToPathList []types.PolicyToPath // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/clouddirectory/api_op_TagResource.go b/service/clouddirectory/api_op_TagResource.go index 5eecad0af6b..4c38295d3e9 100644 --- a/service/clouddirectory/api_op_TagResource.go +++ b/service/clouddirectory/api_op_TagResource.go @@ -38,7 +38,7 @@ type TagResourceInput struct { // A list of tag key-value pairs. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/clouddirectory/api_op_UntagResource.go b/service/clouddirectory/api_op_UntagResource.go index 9cfd43cef9f..ca09ea440db 100644 --- a/service/clouddirectory/api_op_UntagResource.go +++ b/service/clouddirectory/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // Keys of the tag that need to be removed from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/clouddirectory/api_op_UpdateFacet.go b/service/clouddirectory/api_op_UpdateFacet.go index 15557ced2e3..051232fd8e9 100644 --- a/service/clouddirectory/api_op_UpdateFacet.go +++ b/service/clouddirectory/api_op_UpdateFacet.go @@ -51,7 +51,7 @@ type UpdateFacetInput struct { // List of attributes that need to be updated in a given schema Facet. Each // attribute is followed by AttributeAction, which specifies the type of update // operation to perform. - AttributeUpdates []*types.FacetAttributeUpdate + AttributeUpdates []types.FacetAttributeUpdate // The object type that is associated with the facet. See // CreateFacetRequest$ObjectType for more details. diff --git a/service/clouddirectory/api_op_UpdateLinkAttributes.go b/service/clouddirectory/api_op_UpdateLinkAttributes.go index 50fe5bb855c..49c0b1e1113 100644 --- a/service/clouddirectory/api_op_UpdateLinkAttributes.go +++ b/service/clouddirectory/api_op_UpdateLinkAttributes.go @@ -34,7 +34,7 @@ type UpdateLinkAttributesInput struct { // The attributes update structure. // // This member is required. - AttributeUpdates []*types.LinkAttributeUpdate + AttributeUpdates []types.LinkAttributeUpdate // The Amazon Resource Name (ARN) that is associated with the Directory where the // updated typed link resides. For more information, see arns or Typed Links diff --git a/service/clouddirectory/api_op_UpdateObjectAttributes.go b/service/clouddirectory/api_op_UpdateObjectAttributes.go index 1bd42329e63..a72f7d1bfd6 100644 --- a/service/clouddirectory/api_op_UpdateObjectAttributes.go +++ b/service/clouddirectory/api_op_UpdateObjectAttributes.go @@ -32,7 +32,7 @@ type UpdateObjectAttributesInput struct { // The attributes update structure. // // This member is required. - AttributeUpdates []*types.ObjectAttributeUpdate + AttributeUpdates []types.ObjectAttributeUpdate // The Amazon Resource Name (ARN) that is associated with the Directory where the // object resides. For more information, see arns. diff --git a/service/clouddirectory/api_op_UpdateTypedLinkFacet.go b/service/clouddirectory/api_op_UpdateTypedLinkFacet.go index d9e95be6c8a..758263235bf 100644 --- a/service/clouddirectory/api_op_UpdateTypedLinkFacet.go +++ b/service/clouddirectory/api_op_UpdateTypedLinkFacet.go @@ -33,7 +33,7 @@ type UpdateTypedLinkFacetInput struct { // Attributes update structure. // // This member is required. - AttributeUpdates []*types.TypedLinkFacetAttributeUpdate + AttributeUpdates []types.TypedLinkFacetAttributeUpdate // The order of identity attributes for the facet, from most significant to least // significant. The ability to filter typed links considers the order that the @@ -46,7 +46,7 @@ type UpdateTypedLinkFacetInput struct { // (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // This member is required. - IdentityAttributeOrder []*string + IdentityAttributeOrder []string // The unique name of the typed link facet. // diff --git a/service/clouddirectory/api_op_UpgradeAppliedSchema.go b/service/clouddirectory/api_op_UpgradeAppliedSchema.go index 97c0dbce0f0..91871a01f70 100644 --- a/service/clouddirectory/api_op_UpgradeAppliedSchema.go +++ b/service/clouddirectory/api_op_UpgradeAppliedSchema.go @@ -46,7 +46,7 @@ type UpgradeAppliedSchemaInput struct { // Used for testing whether the major version schemas are backward compatible or // not. If schema compatibility fails, an exception would be thrown else the call // would succeed but no changes will be saved. This parameter is optional. - DryRun *bool + DryRun bool } type UpgradeAppliedSchemaOutput struct { diff --git a/service/clouddirectory/api_op_UpgradePublishedSchema.go b/service/clouddirectory/api_op_UpgradePublishedSchema.go index 3d5887fb7e3..87434f95bd4 100644 --- a/service/clouddirectory/api_op_UpgradePublishedSchema.go +++ b/service/clouddirectory/api_op_UpgradePublishedSchema.go @@ -49,7 +49,7 @@ type UpgradePublishedSchemaInput struct { // compatible, or not, with the publish schema provided by the user to be upgraded. // If schema compatibility fails, an exception would be thrown else the call would // succeed. This parameter is optional and defaults to false. - DryRun *bool + DryRun bool } type UpgradePublishedSchemaOutput struct { diff --git a/service/clouddirectory/deserializers.go b/service/clouddirectory/deserializers.go index faeb2e32b6b..0a8273a434e 100644 --- a/service/clouddirectory/deserializers.go +++ b/service/clouddirectory/deserializers.go @@ -290,7 +290,7 @@ func awsRestjson1_deserializeOpDocumentApplySchemaOutput(v **ApplySchemaOutput, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AppliedSchemaArn = &jtv + sv.AppliedSchemaArn = ptr.String(jtv) } case "DirectoryArn": @@ -299,7 +299,7 @@ func awsRestjson1_deserializeOpDocumentApplySchemaOutput(v **ApplySchemaOutput, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DirectoryArn = &jtv + sv.DirectoryArn = ptr.String(jtv) } default: @@ -480,7 +480,7 @@ func awsRestjson1_deserializeOpDocumentAttachObjectOutput(v **AttachObjectOutput if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.AttachedObjectIdentifier = &jtv + sv.AttachedObjectIdentifier = ptr.String(jtv) } default: @@ -771,7 +771,7 @@ func awsRestjson1_deserializeOpDocumentAttachToIndexOutput(v **AttachToIndexOutp if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.AttachedObjectIdentifier = &jtv + sv.AttachedObjectIdentifier = ptr.String(jtv) } default: @@ -1450,7 +1450,7 @@ func awsRestjson1_deserializeOpDocumentCreateDirectoryOutput(v **CreateDirectory if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AppliedSchemaArn = &jtv + sv.AppliedSchemaArn = ptr.String(jtv) } case "DirectoryArn": @@ -1459,7 +1459,7 @@ func awsRestjson1_deserializeOpDocumentCreateDirectoryOutput(v **CreateDirectory if !ok { return fmt.Errorf("expected DirectoryArn to be of type string, got %T instead", value) } - sv.DirectoryArn = &jtv + sv.DirectoryArn = ptr.String(jtv) } case "Name": @@ -1468,7 +1468,7 @@ func awsRestjson1_deserializeOpDocumentCreateDirectoryOutput(v **CreateDirectory if !ok { return fmt.Errorf("expected DirectoryName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ObjectIdentifier": @@ -1477,7 +1477,7 @@ func awsRestjson1_deserializeOpDocumentCreateDirectoryOutput(v **CreateDirectory if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.ObjectIdentifier = &jtv + sv.ObjectIdentifier = ptr.String(jtv) } default: @@ -1768,7 +1768,7 @@ func awsRestjson1_deserializeOpDocumentCreateIndexOutput(v **CreateIndexOutput, if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.ObjectIdentifier = &jtv + sv.ObjectIdentifier = ptr.String(jtv) } default: @@ -1949,7 +1949,7 @@ func awsRestjson1_deserializeOpDocumentCreateObjectOutput(v **CreateObjectOutput if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.ObjectIdentifier = &jtv + sv.ObjectIdentifier = ptr.String(jtv) } default: @@ -2118,7 +2118,7 @@ func awsRestjson1_deserializeOpDocumentCreateSchemaOutput(v **CreateSchemaOutput if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } default: @@ -2403,7 +2403,7 @@ func awsRestjson1_deserializeOpDocumentDeleteDirectoryOutput(v **DeleteDirectory if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DirectoryArn = &jtv + sv.DirectoryArn = ptr.String(jtv) } default: @@ -2789,7 +2789,7 @@ func awsRestjson1_deserializeOpDocumentDeleteSchemaOutput(v **DeleteSchemaOutput if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } default: @@ -3071,7 +3071,7 @@ func awsRestjson1_deserializeOpDocumentDetachFromIndexOutput(v **DetachFromIndex if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.DetachedObjectIdentifier = &jtv + sv.DetachedObjectIdentifier = ptr.String(jtv) } default: @@ -3246,7 +3246,7 @@ func awsRestjson1_deserializeOpDocumentDetachObjectOutput(v **DetachObjectOutput if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.DetachedObjectIdentifier = &jtv + sv.DetachedObjectIdentifier = ptr.String(jtv) } default: @@ -3632,7 +3632,7 @@ func awsRestjson1_deserializeOpDocumentDisableDirectoryOutput(v **DisableDirecto if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DirectoryArn = &jtv + sv.DirectoryArn = ptr.String(jtv) } default: @@ -3804,7 +3804,7 @@ func awsRestjson1_deserializeOpDocumentEnableDirectoryOutput(v **EnableDirectory if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DirectoryArn = &jtv + sv.DirectoryArn = ptr.String(jtv) } default: @@ -3973,7 +3973,7 @@ func awsRestjson1_deserializeOpDocumentGetAppliedSchemaVersionOutput(v **GetAppl if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AppliedSchemaArn = &jtv + sv.AppliedSchemaArn = ptr.String(jtv) } default: @@ -4817,7 +4817,7 @@ func awsRestjson1_deserializeOpDocumentGetObjectInformationOutput(v **GetObjectI if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.ObjectIdentifier = &jtv + sv.ObjectIdentifier = ptr.String(jtv) } case "SchemaFacets": @@ -4991,7 +4991,7 @@ func awsRestjson1_deserializeOpDocumentGetSchemaAsJsonOutput(v **GetSchemaAsJson if !ok { return fmt.Errorf("expected SchemaJsonDocument to be of type string, got %T instead", value) } - sv.Document = &jtv + sv.Document = ptr.String(jtv) } case "Name": @@ -5000,7 +5000,7 @@ func awsRestjson1_deserializeOpDocumentGetSchemaAsJsonOutput(v **GetSchemaAsJson if !ok { return fmt.Errorf("expected SchemaName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5343,7 +5343,7 @@ func awsRestjson1_deserializeOpDocumentListAppliedSchemaArnsOutput(v **ListAppli if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SchemaArns": @@ -5525,7 +5525,7 @@ func awsRestjson1_deserializeOpDocumentListAttachedIndicesOutput(v **ListAttache if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5697,7 +5697,7 @@ func awsRestjson1_deserializeOpDocumentListDevelopmentSchemaArnsOutput(v **ListD if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SchemaArns": @@ -5876,7 +5876,7 @@ func awsRestjson1_deserializeOpDocumentListDirectoriesOutput(v **ListDirectories if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6056,7 +6056,7 @@ func awsRestjson1_deserializeOpDocumentListFacetAttributesOutput(v **ListFacetAt if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6233,7 +6233,7 @@ func awsRestjson1_deserializeOpDocumentListFacetNamesOutput(v **ListFacetNamesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6416,7 +6416,7 @@ func awsRestjson1_deserializeOpDocumentListIncomingTypedLinksOutput(v **ListInco if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6602,7 +6602,7 @@ func awsRestjson1_deserializeOpDocumentListIndexOutput(v **ListIndexOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6768,7 +6768,7 @@ func awsRestjson1_deserializeOpDocumentListManagedSchemaArnsOutput(v **ListManag if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SchemaArns": @@ -6956,7 +6956,7 @@ func awsRestjson1_deserializeOpDocumentListObjectAttributesOutput(v **ListObject if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7139,7 +7139,7 @@ func awsRestjson1_deserializeOpDocumentListObjectChildrenOutput(v **ListObjectCh if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7314,7 +7314,7 @@ func awsRestjson1_deserializeOpDocumentListObjectParentPathsOutput(v **ListObjec if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PathToObjectIdentifiersList": @@ -7497,7 +7497,7 @@ func awsRestjson1_deserializeOpDocumentListObjectParentsOutput(v **ListObjectPar if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ParentLinks": @@ -7687,7 +7687,7 @@ func awsRestjson1_deserializeOpDocumentListObjectPoliciesOutput(v **ListObjectPo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7865,7 +7865,7 @@ func awsRestjson1_deserializeOpDocumentListOutgoingTypedLinksOutput(v **ListOutg if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TypedLinkSpecifiers": @@ -8048,7 +8048,7 @@ func awsRestjson1_deserializeOpDocumentListPolicyAttachmentsOutput(v **ListPolic if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ObjectIdentifiers": @@ -8225,7 +8225,7 @@ func awsRestjson1_deserializeOpDocumentListPublishedSchemaArnsOutput(v **ListPub if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SchemaArns": @@ -8402,7 +8402,7 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -8587,7 +8587,7 @@ func awsRestjson1_deserializeOpDocumentListTypedLinkFacetAttributesOutput(v **Li if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8764,7 +8764,7 @@ func awsRestjson1_deserializeOpDocumentListTypedLinkFacetNamesOutput(v **ListTyp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8939,7 +8939,7 @@ func awsRestjson1_deserializeOpDocumentLookupPolicyOutput(v **LookupPolicyOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PolicyToPathList": @@ -9116,7 +9116,7 @@ func awsRestjson1_deserializeOpDocumentPublishSchemaOutput(v **PublishSchemaOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.PublishedSchemaArn = &jtv + sv.PublishedSchemaArn = ptr.String(jtv) } default: @@ -9288,7 +9288,7 @@ func awsRestjson1_deserializeOpDocumentPutSchemaFromJsonOutput(v **PutSchemaFrom if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -10001,7 +10001,7 @@ func awsRestjson1_deserializeOpDocumentUpdateObjectAttributesOutput(v **UpdateOb if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.ObjectIdentifier = &jtv + sv.ObjectIdentifier = ptr.String(jtv) } default: @@ -10170,7 +10170,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSchemaOutput(v **UpdateSchemaOutput if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } default: @@ -10458,7 +10458,7 @@ func awsRestjson1_deserializeOpDocumentUpgradeAppliedSchemaOutput(v **UpgradeApp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DirectoryArn = &jtv + sv.DirectoryArn = ptr.String(jtv) } case "UpgradedSchemaArn": @@ -10467,7 +10467,7 @@ func awsRestjson1_deserializeOpDocumentUpgradeAppliedSchemaOutput(v **UpgradeApp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.UpgradedSchemaArn = &jtv + sv.UpgradedSchemaArn = ptr.String(jtv) } default: @@ -10642,7 +10642,7 @@ func awsRestjson1_deserializeOpDocumentUpgradePublishedSchemaOutput(v **UpgradeP if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.UpgradedSchemaArn = &jtv + sv.UpgradedSchemaArn = ptr.String(jtv) } default: @@ -11942,7 +11942,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11954,7 +11954,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } -func awsRestjson1_deserializeDocumentArns(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11967,21 +11967,21 @@ func awsRestjson1_deserializeDocumentArns(v *[]*string, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -12018,7 +12018,7 @@ func awsRestjson1_deserializeDocumentAttributeKey(v **types.AttributeKey, value if !ok { return fmt.Errorf("expected FacetName to be of type string, got %T instead", value) } - sv.FacetName = &jtv + sv.FacetName = ptr.String(jtv) } case "Name": @@ -12027,7 +12027,7 @@ func awsRestjson1_deserializeDocumentAttributeKey(v **types.AttributeKey, value if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SchemaArn": @@ -12036,7 +12036,7 @@ func awsRestjson1_deserializeDocumentAttributeKey(v **types.AttributeKey, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } default: @@ -12089,7 +12089,7 @@ func awsRestjson1_deserializeDocumentAttributeKeyAndValue(v **types.AttributeKey return nil } -func awsRestjson1_deserializeDocumentAttributeKeyAndValueList(v *[]*types.AttributeKeyAndValue, value interface{}) error { +func awsRestjson1_deserializeDocumentAttributeKeyAndValueList(v *[]types.AttributeKeyAndValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12102,18 +12102,20 @@ func awsRestjson1_deserializeDocumentAttributeKeyAndValueList(v *[]*types.Attrib return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttributeKeyAndValue + var cv []types.AttributeKeyAndValue if *v == nil { - cv = []*types.AttributeKeyAndValue{} + cv = []types.AttributeKeyAndValue{} } else { cv = *v } for _, value := range shape { - var col *types.AttributeKeyAndValue - if err := awsRestjson1_deserializeDocumentAttributeKeyAndValue(&col, value); err != nil { + var col types.AttributeKeyAndValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentAttributeKeyAndValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12149,7 +12151,7 @@ func awsRestjson1_deserializeDocumentAttributeNameAndValue(v **types.AttributeNa if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "Value": @@ -12166,7 +12168,7 @@ func awsRestjson1_deserializeDocumentAttributeNameAndValue(v **types.AttributeNa return nil } -func awsRestjson1_deserializeDocumentAttributeNameAndValueList(v *[]*types.AttributeNameAndValue, value interface{}) error { +func awsRestjson1_deserializeDocumentAttributeNameAndValueList(v *[]types.AttributeNameAndValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12179,18 +12181,20 @@ func awsRestjson1_deserializeDocumentAttributeNameAndValueList(v *[]*types.Attri return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttributeNameAndValue + var cv []types.AttributeNameAndValue if *v == nil { - cv = []*types.AttributeNameAndValue{} + cv = []types.AttributeNameAndValue{} } else { cv = *v } for _, value := range shape { - var col *types.AttributeNameAndValue - if err := awsRestjson1_deserializeDocumentAttributeNameAndValue(&col, value); err != nil { + var col types.AttributeNameAndValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentAttributeNameAndValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12198,7 +12202,7 @@ func awsRestjson1_deserializeDocumentAttributeNameAndValueList(v *[]*types.Attri return nil } -func awsRestjson1_deserializeDocumentAttributeNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAttributeNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12211,21 +12215,21 @@ func awsRestjson1_deserializeDocumentAttributeNameList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -12293,7 +12297,7 @@ func awsRestjson1_deserializeDocumentBatchAttachObjectResponse(v **types.BatchAt if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.AttachedObjectIdentifier = &jtv + sv.AttachedObjectIdentifier = ptr.String(jtv) } default: @@ -12364,7 +12368,7 @@ func awsRestjson1_deserializeDocumentBatchAttachToIndexResponse(v **types.BatchA if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.AttachedObjectIdentifier = &jtv + sv.AttachedObjectIdentifier = ptr.String(jtv) } default: @@ -12440,7 +12444,7 @@ func awsRestjson1_deserializeDocumentBatchCreateIndexResponse(v **types.BatchCre if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.ObjectIdentifier = &jtv + sv.ObjectIdentifier = ptr.String(jtv) } default: @@ -12480,7 +12484,7 @@ func awsRestjson1_deserializeDocumentBatchCreateObjectResponse(v **types.BatchCr if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.ObjectIdentifier = &jtv + sv.ObjectIdentifier = ptr.String(jtv) } default: @@ -12551,7 +12555,7 @@ func awsRestjson1_deserializeDocumentBatchDetachFromIndexResponse(v **types.Batc if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.DetachedObjectIdentifier = &jtv + sv.DetachedObjectIdentifier = ptr.String(jtv) } default: @@ -12591,7 +12595,7 @@ func awsRestjson1_deserializeDocumentBatchDetachObjectResponse(v **types.BatchDe if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.DetachedObjectIdentifier = &jtv + sv.DetachedObjectIdentifier = ptr.String(jtv) } default: @@ -12765,7 +12769,7 @@ func awsRestjson1_deserializeDocumentBatchGetObjectInformationResponse(v **types if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.ObjectIdentifier = &jtv + sv.ObjectIdentifier = ptr.String(jtv) } case "SchemaFacets": @@ -12815,7 +12819,7 @@ func awsRestjson1_deserializeDocumentBatchListAttachedIndicesResponse(v **types. if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -12860,7 +12864,7 @@ func awsRestjson1_deserializeDocumentBatchListIncomingTypedLinksResponse(v **typ if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -12905,7 +12909,7 @@ func awsRestjson1_deserializeDocumentBatchListIndexResponse(v **types.BatchListI if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -12950,7 +12954,7 @@ func awsRestjson1_deserializeDocumentBatchListObjectAttributesResponse(v **types if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -12995,7 +12999,7 @@ func awsRestjson1_deserializeDocumentBatchListObjectChildrenResponse(v **types.B if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13035,7 +13039,7 @@ func awsRestjson1_deserializeDocumentBatchListObjectParentPathsResponse(v **type if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PathToObjectIdentifiersList": @@ -13080,7 +13084,7 @@ func awsRestjson1_deserializeDocumentBatchListObjectParentsResponse(v **types.Ba if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ParentLinks": @@ -13130,7 +13134,7 @@ func awsRestjson1_deserializeDocumentBatchListObjectPoliciesResponse(v **types.B if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13170,7 +13174,7 @@ func awsRestjson1_deserializeDocumentBatchListOutgoingTypedLinksResponse(v **typ if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TypedLinkSpecifiers": @@ -13215,7 +13219,7 @@ func awsRestjson1_deserializeDocumentBatchListPolicyAttachmentsResponse(v **type if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ObjectIdentifiers": @@ -13260,7 +13264,7 @@ func awsRestjson1_deserializeDocumentBatchLookupPolicyResponse(v **types.BatchLo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PolicyToPathList": @@ -13305,7 +13309,7 @@ func awsRestjson1_deserializeDocumentBatchReadException(v **types.BatchReadExcep if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -13367,7 +13371,7 @@ func awsRestjson1_deserializeDocumentBatchReadOperationResponse(v **types.BatchR return nil } -func awsRestjson1_deserializeDocumentBatchReadOperationResponseList(v *[]*types.BatchReadOperationResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchReadOperationResponseList(v *[]types.BatchReadOperationResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13380,18 +13384,20 @@ func awsRestjson1_deserializeDocumentBatchReadOperationResponseList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchReadOperationResponse + var cv []types.BatchReadOperationResponse if *v == nil { - cv = []*types.BatchReadOperationResponse{} + cv = []types.BatchReadOperationResponse{} } else { cv = *v } for _, value := range shape { - var col *types.BatchReadOperationResponse - if err := awsRestjson1_deserializeDocumentBatchReadOperationResponse(&col, value); err != nil { + var col types.BatchReadOperationResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchReadOperationResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13590,7 +13596,7 @@ func awsRestjson1_deserializeDocumentBatchUpdateObjectAttributesResponse(v **typ if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.ObjectIdentifier = &jtv + sv.ObjectIdentifier = ptr.String(jtv) } default: @@ -13634,7 +13640,7 @@ func awsRestjson1_deserializeDocumentBatchWriteException(v **types.BatchWriteExc if err != nil { return err } - sv.Index = ptr.Int32(int32(i64)) + sv.Index = int32(i64) } case "Message": @@ -13643,7 +13649,7 @@ func awsRestjson1_deserializeDocumentBatchWriteException(v **types.BatchWriteExc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -13770,7 +13776,7 @@ func awsRestjson1_deserializeDocumentBatchWriteOperationResponse(v **types.Batch return nil } -func awsRestjson1_deserializeDocumentBatchWriteOperationResponseList(v *[]*types.BatchWriteOperationResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchWriteOperationResponseList(v *[]types.BatchWriteOperationResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13783,18 +13789,20 @@ func awsRestjson1_deserializeDocumentBatchWriteOperationResponseList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchWriteOperationResponse + var cv []types.BatchWriteOperationResponse if *v == nil { - cv = []*types.BatchWriteOperationResponse{} + cv = []types.BatchWriteOperationResponse{} } else { cv = *v } for _, value := range shape { - var col *types.BatchWriteOperationResponse - if err := awsRestjson1_deserializeDocumentBatchWriteOperationResponse(&col, value); err != nil { + var col types.BatchWriteOperationResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchWriteOperationResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13830,7 +13838,7 @@ func awsRestjson1_deserializeDocumentCannotListParentOfRootException(v **types.C if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13883,7 +13891,7 @@ func awsRestjson1_deserializeDocumentDirectory(v **types.Directory, value interf if !ok { return fmt.Errorf("expected DirectoryArn to be of type string, got %T instead", value) } - sv.DirectoryArn = &jtv + sv.DirectoryArn = ptr.String(jtv) } case "Name": @@ -13892,7 +13900,7 @@ func awsRestjson1_deserializeDocumentDirectory(v **types.Directory, value interf if !ok { return fmt.Errorf("expected DirectoryName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -13941,7 +13949,7 @@ func awsRestjson1_deserializeDocumentDirectoryAlreadyExistsException(v **types.D if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13981,7 +13989,7 @@ func awsRestjson1_deserializeDocumentDirectoryDeletedException(v **types.Directo if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13993,7 +14001,7 @@ func awsRestjson1_deserializeDocumentDirectoryDeletedException(v **types.Directo return nil } -func awsRestjson1_deserializeDocumentDirectoryList(v *[]*types.Directory, value interface{}) error { +func awsRestjson1_deserializeDocumentDirectoryList(v *[]types.Directory, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14006,18 +14014,20 @@ func awsRestjson1_deserializeDocumentDirectoryList(v *[]*types.Directory, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Directory + var cv []types.Directory if *v == nil { - cv = []*types.Directory{} + cv = []types.Directory{} } else { cv = *v } for _, value := range shape { - var col *types.Directory - if err := awsRestjson1_deserializeDocumentDirectory(&col, value); err != nil { + var col types.Directory + destAddr := &col + if err := awsRestjson1_deserializeDocumentDirectory(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14053,7 +14063,7 @@ func awsRestjson1_deserializeDocumentDirectoryNotDisabledException(v **types.Dir if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14093,7 +14103,7 @@ func awsRestjson1_deserializeDocumentDirectoryNotEnabledException(v **types.Dire if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14142,7 +14152,7 @@ func awsRestjson1_deserializeDocumentFacet(v **types.Facet, value interface{}) e if !ok { return fmt.Errorf("expected FacetName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ObjectType": @@ -14191,7 +14201,7 @@ func awsRestjson1_deserializeDocumentFacetAlreadyExistsException(v **types.Facet if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14241,7 +14251,7 @@ func awsRestjson1_deserializeDocumentFacetAttribute(v **types.FacetAttribute, va if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RequiredBehavior": @@ -14295,7 +14305,7 @@ func awsRestjson1_deserializeDocumentFacetAttributeDefinition(v **types.FacetAtt if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.IsImmutable = &jtv + sv.IsImmutable = jtv } case "Rules": @@ -14321,7 +14331,7 @@ func awsRestjson1_deserializeDocumentFacetAttributeDefinition(v **types.FacetAtt return nil } -func awsRestjson1_deserializeDocumentFacetAttributeList(v *[]*types.FacetAttribute, value interface{}) error { +func awsRestjson1_deserializeDocumentFacetAttributeList(v *[]types.FacetAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14334,18 +14344,20 @@ func awsRestjson1_deserializeDocumentFacetAttributeList(v *[]*types.FacetAttribu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FacetAttribute + var cv []types.FacetAttribute if *v == nil { - cv = []*types.FacetAttribute{} + cv = []types.FacetAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.FacetAttribute - if err := awsRestjson1_deserializeDocumentFacetAttribute(&col, value); err != nil { + var col types.FacetAttribute + destAddr := &col + if err := awsRestjson1_deserializeDocumentFacetAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14381,7 +14393,7 @@ func awsRestjson1_deserializeDocumentFacetAttributeReference(v **types.FacetAttr if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - sv.TargetAttributeName = &jtv + sv.TargetAttributeName = ptr.String(jtv) } case "TargetFacetName": @@ -14390,7 +14402,7 @@ func awsRestjson1_deserializeDocumentFacetAttributeReference(v **types.FacetAttr if !ok { return fmt.Errorf("expected FacetName to be of type string, got %T instead", value) } - sv.TargetFacetName = &jtv + sv.TargetFacetName = ptr.String(jtv) } default: @@ -14430,7 +14442,7 @@ func awsRestjson1_deserializeDocumentFacetInUseException(v **types.FacetInUseExc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14442,7 +14454,7 @@ func awsRestjson1_deserializeDocumentFacetInUseException(v **types.FacetInUseExc return nil } -func awsRestjson1_deserializeDocumentFacetNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentFacetNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14455,21 +14467,21 @@ func awsRestjson1_deserializeDocumentFacetNameList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FacetName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14506,7 +14518,7 @@ func awsRestjson1_deserializeDocumentFacetNotFoundException(v **types.FacetNotFo if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14546,7 +14558,7 @@ func awsRestjson1_deserializeDocumentFacetValidationException(v **types.FacetVal if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14586,7 +14598,7 @@ func awsRestjson1_deserializeDocumentIncompatibleSchemaException(v **types.Incom if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14631,7 +14643,7 @@ func awsRestjson1_deserializeDocumentIndexAttachment(v **types.IndexAttachment, if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.ObjectIdentifier = &jtv + sv.ObjectIdentifier = ptr.String(jtv) } default: @@ -14643,7 +14655,7 @@ func awsRestjson1_deserializeDocumentIndexAttachment(v **types.IndexAttachment, return nil } -func awsRestjson1_deserializeDocumentIndexAttachmentList(v *[]*types.IndexAttachment, value interface{}) error { +func awsRestjson1_deserializeDocumentIndexAttachmentList(v *[]types.IndexAttachment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14656,18 +14668,20 @@ func awsRestjson1_deserializeDocumentIndexAttachmentList(v *[]*types.IndexAttach return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IndexAttachment + var cv []types.IndexAttachment if *v == nil { - cv = []*types.IndexAttachment{} + cv = []types.IndexAttachment{} } else { cv = *v } for _, value := range shape { - var col *types.IndexAttachment - if err := awsRestjson1_deserializeDocumentIndexAttachment(&col, value); err != nil { + var col types.IndexAttachment + destAddr := &col + if err := awsRestjson1_deserializeDocumentIndexAttachment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14703,7 +14717,7 @@ func awsRestjson1_deserializeDocumentIndexedAttributeMissingException(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14743,7 +14757,7 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14783,7 +14797,7 @@ func awsRestjson1_deserializeDocumentInvalidArnException(v **types.InvalidArnExc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14823,7 +14837,7 @@ func awsRestjson1_deserializeDocumentInvalidAttachmentException(v **types.Invali if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14863,7 +14877,7 @@ func awsRestjson1_deserializeDocumentInvalidFacetUpdateException(v **types.Inval if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14903,7 +14917,7 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14943,7 +14957,7 @@ func awsRestjson1_deserializeDocumentInvalidRuleException(v **types.InvalidRuleE if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14983,7 +14997,7 @@ func awsRestjson1_deserializeDocumentInvalidSchemaDocException(v **types.Invalid if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15023,7 +15037,7 @@ func awsRestjson1_deserializeDocumentInvalidTaggingRequestException(v **types.In if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15063,7 +15077,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15103,7 +15117,7 @@ func awsRestjson1_deserializeDocumentLinkNameAlreadyInUseException(v **types.Lin if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15115,7 +15129,7 @@ func awsRestjson1_deserializeDocumentLinkNameAlreadyInUseException(v **types.Lin return nil } -func awsRestjson1_deserializeDocumentLinkNameToObjectIdentifierMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentLinkNameToObjectIdentifierMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15128,21 +15142,21 @@ func awsRestjson1_deserializeDocumentLinkNameToObjectIdentifierMap(v *map[string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -15179,7 +15193,7 @@ func awsRestjson1_deserializeDocumentNotIndexException(v **types.NotIndexExcepti if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15219,7 +15233,7 @@ func awsRestjson1_deserializeDocumentNotNodeException(v **types.NotNodeException if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15259,7 +15273,7 @@ func awsRestjson1_deserializeDocumentNotPolicyException(v **types.NotPolicyExcep if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15299,7 +15313,7 @@ func awsRestjson1_deserializeDocumentObjectAlreadyDetachedException(v **types.Ob if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15311,7 +15325,7 @@ func awsRestjson1_deserializeDocumentObjectAlreadyDetachedException(v **types.Ob return nil } -func awsRestjson1_deserializeDocumentObjectIdentifierAndLinkNameList(v *[]*types.ObjectIdentifierAndLinkNameTuple, value interface{}) error { +func awsRestjson1_deserializeDocumentObjectIdentifierAndLinkNameList(v *[]types.ObjectIdentifierAndLinkNameTuple, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15324,18 +15338,20 @@ func awsRestjson1_deserializeDocumentObjectIdentifierAndLinkNameList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ObjectIdentifierAndLinkNameTuple + var cv []types.ObjectIdentifierAndLinkNameTuple if *v == nil { - cv = []*types.ObjectIdentifierAndLinkNameTuple{} + cv = []types.ObjectIdentifierAndLinkNameTuple{} } else { cv = *v } for _, value := range shape { - var col *types.ObjectIdentifierAndLinkNameTuple - if err := awsRestjson1_deserializeDocumentObjectIdentifierAndLinkNameTuple(&col, value); err != nil { + var col types.ObjectIdentifierAndLinkNameTuple + destAddr := &col + if err := awsRestjson1_deserializeDocumentObjectIdentifierAndLinkNameTuple(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15371,7 +15387,7 @@ func awsRestjson1_deserializeDocumentObjectIdentifierAndLinkNameTuple(v **types. if !ok { return fmt.Errorf("expected LinkName to be of type string, got %T instead", value) } - sv.LinkName = &jtv + sv.LinkName = ptr.String(jtv) } case "ObjectIdentifier": @@ -15380,7 +15396,7 @@ func awsRestjson1_deserializeDocumentObjectIdentifierAndLinkNameTuple(v **types. if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.ObjectIdentifier = &jtv + sv.ObjectIdentifier = ptr.String(jtv) } default: @@ -15392,7 +15408,7 @@ func awsRestjson1_deserializeDocumentObjectIdentifierAndLinkNameTuple(v **types. return nil } -func awsRestjson1_deserializeDocumentObjectIdentifierList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentObjectIdentifierList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15405,21 +15421,21 @@ func awsRestjson1_deserializeDocumentObjectIdentifierList(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -15428,7 +15444,7 @@ func awsRestjson1_deserializeDocumentObjectIdentifierList(v *[]*string, value in return nil } -func awsRestjson1_deserializeDocumentObjectIdentifierToLinkNameMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentObjectIdentifierToLinkNameMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15441,21 +15457,21 @@ func awsRestjson1_deserializeDocumentObjectIdentifierToLinkNameMap(v *map[string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected LinkName to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -15492,7 +15508,7 @@ func awsRestjson1_deserializeDocumentObjectNotDetachedException(v **types.Object if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15532,7 +15548,7 @@ func awsRestjson1_deserializeDocumentObjectReference(v **types.ObjectReference, if !ok { return fmt.Errorf("expected SelectorObjectReference to be of type string, got %T instead", value) } - sv.Selector = &jtv + sv.Selector = ptr.String(jtv) } default: @@ -15577,7 +15593,7 @@ func awsRestjson1_deserializeDocumentPathToObjectIdentifiers(v **types.PathToObj if !ok { return fmt.Errorf("expected PathString to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } default: @@ -15589,7 +15605,7 @@ func awsRestjson1_deserializeDocumentPathToObjectIdentifiers(v **types.PathToObj return nil } -func awsRestjson1_deserializeDocumentPathToObjectIdentifiersList(v *[]*types.PathToObjectIdentifiers, value interface{}) error { +func awsRestjson1_deserializeDocumentPathToObjectIdentifiersList(v *[]types.PathToObjectIdentifiers, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15602,18 +15618,20 @@ func awsRestjson1_deserializeDocumentPathToObjectIdentifiersList(v *[]*types.Pat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PathToObjectIdentifiers + var cv []types.PathToObjectIdentifiers if *v == nil { - cv = []*types.PathToObjectIdentifiers{} + cv = []types.PathToObjectIdentifiers{} } else { cv = *v } for _, value := range shape { - var col *types.PathToObjectIdentifiers - if err := awsRestjson1_deserializeDocumentPathToObjectIdentifiers(&col, value); err != nil { + var col types.PathToObjectIdentifiers + destAddr := &col + if err := awsRestjson1_deserializeDocumentPathToObjectIdentifiers(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15649,7 +15667,7 @@ func awsRestjson1_deserializeDocumentPolicyAttachment(v **types.PolicyAttachment if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.ObjectIdentifier = &jtv + sv.ObjectIdentifier = ptr.String(jtv) } case "PolicyId": @@ -15658,7 +15676,7 @@ func awsRestjson1_deserializeDocumentPolicyAttachment(v **types.PolicyAttachment if !ok { return fmt.Errorf("expected ObjectIdentifier to be of type string, got %T instead", value) } - sv.PolicyId = &jtv + sv.PolicyId = ptr.String(jtv) } case "PolicyType": @@ -15667,7 +15685,7 @@ func awsRestjson1_deserializeDocumentPolicyAttachment(v **types.PolicyAttachment if !ok { return fmt.Errorf("expected PolicyType to be of type string, got %T instead", value) } - sv.PolicyType = &jtv + sv.PolicyType = ptr.String(jtv) } default: @@ -15679,7 +15697,7 @@ func awsRestjson1_deserializeDocumentPolicyAttachment(v **types.PolicyAttachment return nil } -func awsRestjson1_deserializeDocumentPolicyAttachmentList(v *[]*types.PolicyAttachment, value interface{}) error { +func awsRestjson1_deserializeDocumentPolicyAttachmentList(v *[]types.PolicyAttachment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15692,18 +15710,20 @@ func awsRestjson1_deserializeDocumentPolicyAttachmentList(v *[]*types.PolicyAtta return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PolicyAttachment + var cv []types.PolicyAttachment if *v == nil { - cv = []*types.PolicyAttachment{} + cv = []types.PolicyAttachment{} } else { cv = *v } for _, value := range shape { - var col *types.PolicyAttachment - if err := awsRestjson1_deserializeDocumentPolicyAttachment(&col, value); err != nil { + var col types.PolicyAttachment + destAddr := &col + if err := awsRestjson1_deserializeDocumentPolicyAttachment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15739,7 +15759,7 @@ func awsRestjson1_deserializeDocumentPolicyToPath(v **types.PolicyToPath, value if !ok { return fmt.Errorf("expected PathString to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "Policies": @@ -15756,7 +15776,7 @@ func awsRestjson1_deserializeDocumentPolicyToPath(v **types.PolicyToPath, value return nil } -func awsRestjson1_deserializeDocumentPolicyToPathList(v *[]*types.PolicyToPath, value interface{}) error { +func awsRestjson1_deserializeDocumentPolicyToPathList(v *[]types.PolicyToPath, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15769,18 +15789,20 @@ func awsRestjson1_deserializeDocumentPolicyToPathList(v *[]*types.PolicyToPath, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PolicyToPath + var cv []types.PolicyToPath if *v == nil { - cv = []*types.PolicyToPath{} + cv = []types.PolicyToPath{} } else { cv = *v } for _, value := range shape { - var col *types.PolicyToPath - if err := awsRestjson1_deserializeDocumentPolicyToPath(&col, value); err != nil { + var col types.PolicyToPath + destAddr := &col + if err := awsRestjson1_deserializeDocumentPolicyToPath(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15816,7 +15838,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15856,7 +15878,7 @@ func awsRestjson1_deserializeDocumentRetryableConflictException(v **types.Retrya if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15913,7 +15935,7 @@ func awsRestjson1_deserializeDocumentRule(v **types.Rule, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentRuleMap(v *map[string]*types.Rule, value interface{}) error { +func awsRestjson1_deserializeDocumentRuleMap(v *map[string]types.Rule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15926,18 +15948,21 @@ func awsRestjson1_deserializeDocumentRuleMap(v *map[string]*types.Rule, value in return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.Rule + var mv map[string]types.Rule if *v == nil { - mv = map[string]*types.Rule{} + mv = map[string]types.Rule{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.Rule - if err := awsRestjson1_deserializeDocumentRule(&parsedVal, value); err != nil { + var parsedVal types.Rule + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentRule(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -15945,7 +15970,7 @@ func awsRestjson1_deserializeDocumentRuleMap(v *map[string]*types.Rule, value in return nil } -func awsRestjson1_deserializeDocumentRuleParameterMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentRuleParameterMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15958,21 +15983,21 @@ func awsRestjson1_deserializeDocumentRuleParameterMap(v *map[string]*string, val return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RuleParameterValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -16009,7 +16034,7 @@ func awsRestjson1_deserializeDocumentSchemaAlreadyExistsException(v **types.Sche if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16049,7 +16074,7 @@ func awsRestjson1_deserializeDocumentSchemaAlreadyPublishedException(v **types.S if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16089,7 +16114,7 @@ func awsRestjson1_deserializeDocumentSchemaFacet(v **types.SchemaFacet, value in if !ok { return fmt.Errorf("expected FacetName to be of type string, got %T instead", value) } - sv.FacetName = &jtv + sv.FacetName = ptr.String(jtv) } case "SchemaArn": @@ -16098,7 +16123,7 @@ func awsRestjson1_deserializeDocumentSchemaFacet(v **types.SchemaFacet, value in if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } default: @@ -16110,7 +16135,7 @@ func awsRestjson1_deserializeDocumentSchemaFacet(v **types.SchemaFacet, value in return nil } -func awsRestjson1_deserializeDocumentSchemaFacetList(v *[]*types.SchemaFacet, value interface{}) error { +func awsRestjson1_deserializeDocumentSchemaFacetList(v *[]types.SchemaFacet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16123,18 +16148,20 @@ func awsRestjson1_deserializeDocumentSchemaFacetList(v *[]*types.SchemaFacet, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SchemaFacet + var cv []types.SchemaFacet if *v == nil { - cv = []*types.SchemaFacet{} + cv = []types.SchemaFacet{} } else { cv = *v } for _, value := range shape { - var col *types.SchemaFacet - if err := awsRestjson1_deserializeDocumentSchemaFacet(&col, value); err != nil { + var col types.SchemaFacet + destAddr := &col + if err := awsRestjson1_deserializeDocumentSchemaFacet(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16170,7 +16197,7 @@ func awsRestjson1_deserializeDocumentStillContainsLinksException(v **types.Still if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16210,7 +16237,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -16219,7 +16246,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -16231,7 +16258,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16244,18 +16271,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16304,7 +16333,7 @@ func awsRestjson1_deserializeDocumentTypedAttributeValue(v **types.TypedAttribut if !ok { return fmt.Errorf("expected BooleanAttributeValue to be of type *bool, got %T instead", value) } - sv.BooleanValue = &jtv + sv.BooleanValue = ptr.Bool(jtv) } case "DatetimeValue": @@ -16326,7 +16355,7 @@ func awsRestjson1_deserializeDocumentTypedAttributeValue(v **types.TypedAttribut if !ok { return fmt.Errorf("expected NumberAttributeValue to be of type string, got %T instead", value) } - sv.NumberValue = &jtv + sv.NumberValue = ptr.String(jtv) } case "StringValue": @@ -16335,7 +16364,7 @@ func awsRestjson1_deserializeDocumentTypedAttributeValue(v **types.TypedAttribut if !ok { return fmt.Errorf("expected StringAttributeValue to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } default: @@ -16380,7 +16409,7 @@ func awsRestjson1_deserializeDocumentTypedLinkAttributeDefinition(v **types.Type if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.IsImmutable = &jtv + sv.IsImmutable = jtv } case "Name": @@ -16389,7 +16418,7 @@ func awsRestjson1_deserializeDocumentTypedLinkAttributeDefinition(v **types.Type if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RequiredBehavior": @@ -16424,7 +16453,7 @@ func awsRestjson1_deserializeDocumentTypedLinkAttributeDefinition(v **types.Type return nil } -func awsRestjson1_deserializeDocumentTypedLinkAttributeDefinitionList(v *[]*types.TypedLinkAttributeDefinition, value interface{}) error { +func awsRestjson1_deserializeDocumentTypedLinkAttributeDefinitionList(v *[]types.TypedLinkAttributeDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16437,18 +16466,20 @@ func awsRestjson1_deserializeDocumentTypedLinkAttributeDefinitionList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TypedLinkAttributeDefinition + var cv []types.TypedLinkAttributeDefinition if *v == nil { - cv = []*types.TypedLinkAttributeDefinition{} + cv = []types.TypedLinkAttributeDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.TypedLinkAttributeDefinition - if err := awsRestjson1_deserializeDocumentTypedLinkAttributeDefinition(&col, value); err != nil { + var col types.TypedLinkAttributeDefinition + destAddr := &col + if err := awsRestjson1_deserializeDocumentTypedLinkAttributeDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16456,7 +16487,7 @@ func awsRestjson1_deserializeDocumentTypedLinkAttributeDefinitionList(v *[]*type return nil } -func awsRestjson1_deserializeDocumentTypedLinkNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTypedLinkNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16469,21 +16500,21 @@ func awsRestjson1_deserializeDocumentTypedLinkNameList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TypedLinkName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -16520,7 +16551,7 @@ func awsRestjson1_deserializeDocumentTypedLinkSchemaAndFacetName(v **types.Typed if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } case "TypedLinkName": @@ -16529,7 +16560,7 @@ func awsRestjson1_deserializeDocumentTypedLinkSchemaAndFacetName(v **types.Typed if !ok { return fmt.Errorf("expected TypedLinkName to be of type string, got %T instead", value) } - sv.TypedLinkName = &jtv + sv.TypedLinkName = ptr.String(jtv) } default: @@ -16592,7 +16623,7 @@ func awsRestjson1_deserializeDocumentTypedLinkSpecifier(v **types.TypedLinkSpeci return nil } -func awsRestjson1_deserializeDocumentTypedLinkSpecifierList(v *[]*types.TypedLinkSpecifier, value interface{}) error { +func awsRestjson1_deserializeDocumentTypedLinkSpecifierList(v *[]types.TypedLinkSpecifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16605,18 +16636,20 @@ func awsRestjson1_deserializeDocumentTypedLinkSpecifierList(v *[]*types.TypedLin return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TypedLinkSpecifier + var cv []types.TypedLinkSpecifier if *v == nil { - cv = []*types.TypedLinkSpecifier{} + cv = []types.TypedLinkSpecifier{} } else { cv = *v } for _, value := range shape { - var col *types.TypedLinkSpecifier - if err := awsRestjson1_deserializeDocumentTypedLinkSpecifier(&col, value); err != nil { + var col types.TypedLinkSpecifier + destAddr := &col + if err := awsRestjson1_deserializeDocumentTypedLinkSpecifier(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16652,7 +16685,7 @@ func awsRestjson1_deserializeDocumentUnsupportedIndexTypeException(v **types.Uns if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16692,7 +16725,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/clouddirectory/go.mod b/service/clouddirectory/go.mod index e871a4b0385..a9eb66e8ecc 100644 --- a/service/clouddirectory/go.mod +++ b/service/clouddirectory/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/clouddirectory go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/clouddirectory/serializers.go b/service/clouddirectory/serializers.go index b1421fb01cb..3407bcf5f81 100644 --- a/service/clouddirectory/serializers.go +++ b/service/clouddirectory/serializers.go @@ -77,11 +77,9 @@ func awsRestjson1_serializeOpHttpBindingsAddFacetToObjectInput(v *AddFacetToObje return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -177,11 +175,9 @@ func awsRestjson1_serializeOpHttpBindingsApplySchemaInput(v *ApplySchemaInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -261,11 +257,9 @@ func awsRestjson1_serializeOpHttpBindingsAttachObjectInput(v *AttachObjectInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -359,11 +353,9 @@ func awsRestjson1_serializeOpHttpBindingsAttachPolicyInput(v *AttachPolicyInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -452,11 +444,9 @@ func awsRestjson1_serializeOpHttpBindingsAttachToIndexInput(v *AttachToIndexInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -545,11 +535,9 @@ func awsRestjson1_serializeOpHttpBindingsAttachTypedLinkInput(v *AttachTypedLink return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -657,11 +645,9 @@ func awsRestjson1_serializeOpHttpBindingsBatchReadInput(v *BatchReadInput, encod encoder.SetHeader(locationName).String(string(v.ConsistencyLevel)) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -743,11 +729,9 @@ func awsRestjson1_serializeOpHttpBindingsBatchWriteInput(v *BatchWriteInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -829,11 +813,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateDirectoryInput(v *CreateDirectory return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -913,11 +895,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateFacetInput(v *CreateFacetInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -1014,11 +994,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateIndexInput(v *CreateIndexInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -1028,9 +1006,9 @@ func awsRestjson1_serializeOpDocumentCreateIndexInput(v *CreateIndexInput, value object := value.Object() defer object.Close() - if v.IsUnique != nil { + if v.IsUnique { ok := object.Key("IsUnique") - ok.Boolean(*v.IsUnique) + ok.Boolean(v.IsUnique) } if v.LinkName != nil { @@ -1117,11 +1095,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateObjectInput(v *CreateObjectInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -1295,11 +1271,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateTypedLinkFacetInput(v *CreateType return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -1370,11 +1344,9 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDirectoryInput(v *DeleteDirectory return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -1442,11 +1414,9 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFacetInput(v *DeleteFacetInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -1526,11 +1496,9 @@ func awsRestjson1_serializeOpHttpBindingsDeleteObjectInput(v *DeleteObjectInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -1601,11 +1569,9 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSchemaInput(v *DeleteSchemaInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -1673,11 +1639,9 @@ func awsRestjson1_serializeOpHttpBindingsDeleteTypedLinkFacetInput(v *DeleteType return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -1757,11 +1721,9 @@ func awsRestjson1_serializeOpHttpBindingsDetachFromIndexInput(v *DetachFromIndex return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -1850,11 +1812,9 @@ func awsRestjson1_serializeOpHttpBindingsDetachObjectInput(v *DetachObjectInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -1941,11 +1901,9 @@ func awsRestjson1_serializeOpHttpBindingsDetachPolicyInput(v *DetachPolicyInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -2034,11 +1992,9 @@ func awsRestjson1_serializeOpHttpBindingsDetachTypedLinkInput(v *DetachTypedLink return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -2109,11 +2065,9 @@ func awsRestjson1_serializeOpHttpBindingsDisableDirectoryInput(v *DisableDirecto return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -2170,11 +2124,9 @@ func awsRestjson1_serializeOpHttpBindingsEnableDirectoryInput(v *EnableDirectory return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -2304,11 +2256,9 @@ func awsRestjson1_serializeOpHttpBindingsGetDirectoryInput(v *GetDirectoryInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -2376,11 +2326,9 @@ func awsRestjson1_serializeOpHttpBindingsGetFacetInput(v *GetFacetInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -2460,11 +2408,9 @@ func awsRestjson1_serializeOpHttpBindingsGetLinkAttributesInput(v *GetLinkAttrib return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -2563,11 +2509,9 @@ func awsRestjson1_serializeOpHttpBindingsGetObjectAttributesInput(v *GetObjectAt encoder.SetHeader(locationName).String(string(v.ConsistencyLevel)) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -2668,11 +2612,9 @@ func awsRestjson1_serializeOpHttpBindingsGetObjectInformationInput(v *GetObjectI encoder.SetHeader(locationName).String(string(v.ConsistencyLevel)) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -2743,11 +2685,9 @@ func awsRestjson1_serializeOpHttpBindingsGetSchemaAsJsonInput(v *GetSchemaAsJson return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -2815,11 +2755,9 @@ func awsRestjson1_serializeOpHttpBindingsGetTypedLinkFacetInformationInput(v *Ge return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -2992,11 +2930,9 @@ func awsRestjson1_serializeOpHttpBindingsListAttachedIndicesInput(v *ListAttache encoder.SetHeader(locationName).String(string(v.ConsistencyLevel)) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -3249,11 +3185,9 @@ func awsRestjson1_serializeOpHttpBindingsListFacetAttributesInput(v *ListFacetAt return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -3343,11 +3277,9 @@ func awsRestjson1_serializeOpHttpBindingsListFacetNamesInput(v *ListFacetNamesIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -3432,11 +3364,9 @@ func awsRestjson1_serializeOpHttpBindingsListIncomingTypedLinksInput(v *ListInco return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -3552,11 +3482,9 @@ func awsRestjson1_serializeOpHttpBindingsListIndexInput(v *ListIndexInput, encod encoder.SetHeader(locationName).String(string(v.ConsistencyLevel)) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -3743,11 +3671,9 @@ func awsRestjson1_serializeOpHttpBindingsListObjectAttributesInput(v *ListObject encoder.SetHeader(locationName).String(string(v.ConsistencyLevel)) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -3851,11 +3777,9 @@ func awsRestjson1_serializeOpHttpBindingsListObjectChildrenInput(v *ListObjectCh encoder.SetHeader(locationName).String(string(v.ConsistencyLevel)) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -3947,11 +3871,9 @@ func awsRestjson1_serializeOpHttpBindingsListObjectParentPathsInput(v *ListObjec return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -4048,11 +3970,9 @@ func awsRestjson1_serializeOpHttpBindingsListObjectParentsInput(v *ListObjectPar encoder.SetHeader(locationName).String(string(v.ConsistencyLevel)) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -4062,9 +3982,9 @@ func awsRestjson1_serializeOpDocumentListObjectParentsInput(v *ListObjectParents object := value.Object() defer object.Close() - if v.IncludeAllLinksToEachParent != nil { + if v.IncludeAllLinksToEachParent { ok := object.Key("IncludeAllLinksToEachParent") - ok.Boolean(*v.IncludeAllLinksToEachParent) + ok.Boolean(v.IncludeAllLinksToEachParent) } if v.MaxResults != nil { @@ -4154,11 +4074,9 @@ func awsRestjson1_serializeOpHttpBindingsListObjectPoliciesInput(v *ListObjectPo encoder.SetHeader(locationName).String(string(v.ConsistencyLevel)) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -4250,11 +4168,9 @@ func awsRestjson1_serializeOpHttpBindingsListOutgoingTypedLinksInput(v *ListOutg return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -4370,11 +4286,9 @@ func awsRestjson1_serializeOpHttpBindingsListPolicyAttachmentsInput(v *ListPolic encoder.SetHeader(locationName).String(string(v.ConsistencyLevel)) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -4632,11 +4546,9 @@ func awsRestjson1_serializeOpHttpBindingsListTypedLinkFacetAttributesInput(v *Li return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -4726,11 +4638,9 @@ func awsRestjson1_serializeOpHttpBindingsListTypedLinkFacetNamesInput(v *ListTyp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -4815,11 +4725,9 @@ func awsRestjson1_serializeOpHttpBindingsLookupPolicyInput(v *LookupPolicyInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -4911,11 +4819,9 @@ func awsRestjson1_serializeOpHttpBindingsPublishSchemaInput(v *PublishSchemaInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DevelopmentSchemaArn != nil { + if v.DevelopmentSchemaArn != nil && len(*v.DevelopmentSchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DevelopmentSchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.DevelopmentSchemaArn) - } + encoder.SetHeader(locationName).String(*v.DevelopmentSchemaArn) } return nil @@ -5005,11 +4911,9 @@ func awsRestjson1_serializeOpHttpBindingsPutSchemaFromJsonInput(v *PutSchemaFrom return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -5089,11 +4993,9 @@ func awsRestjson1_serializeOpHttpBindingsRemoveFacetFromObjectInput(v *RemoveFac return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -5342,11 +5244,9 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFacetInput(v *UpdateFacetInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -5438,11 +5338,9 @@ func awsRestjson1_serializeOpHttpBindingsUpdateLinkAttributesInput(v *UpdateLink return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -5531,11 +5429,9 @@ func awsRestjson1_serializeOpHttpBindingsUpdateObjectAttributesInput(v *UpdateOb return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DirectoryArn != nil { + if v.DirectoryArn != nil && len(*v.DirectoryArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.DirectoryArn) > 0 { - encoder.SetHeader(locationName).String(*v.DirectoryArn) - } + encoder.SetHeader(locationName).String(*v.DirectoryArn) } return nil @@ -5624,11 +5520,9 @@ func awsRestjson1_serializeOpHttpBindingsUpdateSchemaInput(v *UpdateSchemaInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -5708,11 +5602,9 @@ func awsRestjson1_serializeOpHttpBindingsUpdateTypedLinkFacetInput(v *UpdateType return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SchemaArn != nil { + if v.SchemaArn != nil && len(*v.SchemaArn) > 0 { locationName := "X-Amz-Data-Partition" - if len(*v.SchemaArn) > 0 { - encoder.SetHeader(locationName).String(*v.SchemaArn) - } + encoder.SetHeader(locationName).String(*v.SchemaArn) } return nil @@ -5814,9 +5706,9 @@ func awsRestjson1_serializeOpDocumentUpgradeAppliedSchemaInput(v *UpgradeApplied ok.String(*v.DirectoryArn) } - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if v.PublishedSchemaArn != nil { @@ -5897,9 +5789,9 @@ func awsRestjson1_serializeOpDocumentUpgradePublishedSchemaInput(v *UpgradePubli ok.String(*v.DevelopmentSchemaArn) } - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if v.MinorVersion != nil { @@ -5958,34 +5850,26 @@ func awsRestjson1_serializeDocumentAttributeKeyAndValue(v *types.AttributeKeyAnd return nil } -func awsRestjson1_serializeDocumentAttributeKeyAndValueList(v []*types.AttributeKeyAndValue, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAttributeKeyAndValueList(v []types.AttributeKeyAndValue, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAttributeKeyAndValue(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAttributeKeyAndValue(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentAttributeKeyList(v []*types.AttributeKey, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAttributeKeyList(v []types.AttributeKey, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAttributeKey(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAttributeKey(&v[i], av); err != nil { return err } } @@ -6011,34 +5895,26 @@ func awsRestjson1_serializeDocumentAttributeNameAndValue(v *types.AttributeNameA return nil } -func awsRestjson1_serializeDocumentAttributeNameAndValueList(v []*types.AttributeNameAndValue, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAttributeNameAndValueList(v []types.AttributeNameAndValue, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAttributeNameAndValue(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAttributeNameAndValue(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentAttributeNameList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAttributeNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6183,9 +6059,9 @@ func awsRestjson1_serializeDocumentBatchCreateIndex(v *types.BatchCreateIndex, v ok.String(*v.BatchReferenceName) } - if v.IsUnique != nil { + if v.IsUnique { ok := object.Key("IsUnique") - ok.Boolean(*v.IsUnique) + ok.Boolean(v.IsUnique) } if v.LinkName != nil { @@ -6816,17 +6692,13 @@ func awsRestjson1_serializeDocumentBatchReadOperation(v *types.BatchReadOperatio return nil } -func awsRestjson1_serializeDocumentBatchReadOperationList(v []*types.BatchReadOperation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBatchReadOperationList(v []types.BatchReadOperation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentBatchReadOperation(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentBatchReadOperation(&v[i], av); err != nil { return err } } @@ -7008,17 +6880,13 @@ func awsRestjson1_serializeDocumentBatchWriteOperation(v *types.BatchWriteOperat return nil } -func awsRestjson1_serializeDocumentBatchWriteOperationList(v []*types.BatchWriteOperation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBatchWriteOperationList(v []types.BatchWriteOperation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentBatchWriteOperation(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentBatchWriteOperation(&v[i], av); err != nil { return err } } @@ -7067,9 +6935,9 @@ func awsRestjson1_serializeDocumentFacetAttributeDefinition(v *types.FacetAttrib } } - if v.IsImmutable != nil { + if v.IsImmutable { ok := object.Key("IsImmutable") - ok.Boolean(*v.IsImmutable) + ok.Boolean(v.IsImmutable) } if v.Rules != nil { @@ -7087,17 +6955,13 @@ func awsRestjson1_serializeDocumentFacetAttributeDefinition(v *types.FacetAttrib return nil } -func awsRestjson1_serializeDocumentFacetAttributeList(v []*types.FacetAttribute, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFacetAttributeList(v []types.FacetAttribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentFacetAttribute(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFacetAttribute(&v[i], av); err != nil { return err } } @@ -7140,17 +7004,13 @@ func awsRestjson1_serializeDocumentFacetAttributeUpdate(v *types.FacetAttributeU return nil } -func awsRestjson1_serializeDocumentFacetAttributeUpdateList(v []*types.FacetAttributeUpdate, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFacetAttributeUpdateList(v []types.FacetAttributeUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentFacetAttributeUpdate(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFacetAttributeUpdate(&v[i], av); err != nil { return err } } @@ -7197,17 +7057,13 @@ func awsRestjson1_serializeDocumentLinkAttributeUpdate(v *types.LinkAttributeUpd return nil } -func awsRestjson1_serializeDocumentLinkAttributeUpdateList(v []*types.LinkAttributeUpdate, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLinkAttributeUpdateList(v []types.LinkAttributeUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentLinkAttributeUpdate(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentLinkAttributeUpdate(&v[i], av); err != nil { return err } } @@ -7254,17 +7110,13 @@ func awsRestjson1_serializeDocumentObjectAttributeRange(v *types.ObjectAttribute return nil } -func awsRestjson1_serializeDocumentObjectAttributeRangeList(v []*types.ObjectAttributeRange, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentObjectAttributeRangeList(v []types.ObjectAttributeRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentObjectAttributeRange(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentObjectAttributeRange(&v[i], av); err != nil { return err } } @@ -7292,17 +7144,13 @@ func awsRestjson1_serializeDocumentObjectAttributeUpdate(v *types.ObjectAttribut return nil } -func awsRestjson1_serializeDocumentObjectAttributeUpdateList(v []*types.ObjectAttributeUpdate, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentObjectAttributeUpdateList(v []types.ObjectAttributeUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentObjectAttributeUpdate(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentObjectAttributeUpdate(&v[i], av); err != nil { return err } } @@ -7340,34 +7188,27 @@ func awsRestjson1_serializeDocumentRule(v *types.Rule, value smithyjson.Value) e return nil } -func awsRestjson1_serializeDocumentRuleMap(v map[string]*types.Rule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRuleMap(v map[string]types.Rule, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentRule(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentRule(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentRuleParameterMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRuleParameterMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -7389,17 +7230,13 @@ func awsRestjson1_serializeDocumentSchemaFacet(v *types.SchemaFacet, value smith return nil } -func awsRestjson1_serializeDocumentSchemaFacetList(v []*types.SchemaFacet, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSchemaFacetList(v []types.SchemaFacet, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSchemaFacet(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSchemaFacet(&v[i], av); err != nil { return err } } @@ -7423,32 +7260,24 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -7529,9 +7358,9 @@ func awsRestjson1_serializeDocumentTypedLinkAttributeDefinition(v *types.TypedLi } } - if v.IsImmutable != nil { + if v.IsImmutable { ok := object.Key("IsImmutable") - ok.Boolean(*v.IsImmutable) + ok.Boolean(v.IsImmutable) } if v.Name != nil { @@ -7559,17 +7388,13 @@ func awsRestjson1_serializeDocumentTypedLinkAttributeDefinition(v *types.TypedLi return nil } -func awsRestjson1_serializeDocumentTypedLinkAttributeDefinitionList(v []*types.TypedLinkAttributeDefinition, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTypedLinkAttributeDefinitionList(v []types.TypedLinkAttributeDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTypedLinkAttributeDefinition(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTypedLinkAttributeDefinition(&v[i], av); err != nil { return err } } @@ -7595,17 +7420,13 @@ func awsRestjson1_serializeDocumentTypedLinkAttributeRange(v *types.TypedLinkAtt return nil } -func awsRestjson1_serializeDocumentTypedLinkAttributeRangeList(v []*types.TypedLinkAttributeRange, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTypedLinkAttributeRangeList(v []types.TypedLinkAttributeRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTypedLinkAttributeRange(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTypedLinkAttributeRange(&v[i], av); err != nil { return err } } @@ -7657,17 +7478,13 @@ func awsRestjson1_serializeDocumentTypedLinkFacetAttributeUpdate(v *types.TypedL return nil } -func awsRestjson1_serializeDocumentTypedLinkFacetAttributeUpdateList(v []*types.TypedLinkFacetAttributeUpdate, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTypedLinkFacetAttributeUpdateList(v []types.TypedLinkFacetAttributeUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTypedLinkFacetAttributeUpdate(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTypedLinkFacetAttributeUpdate(&v[i], av); err != nil { return err } } diff --git a/service/clouddirectory/types/errors.go b/service/clouddirectory/types/errors.go index 748aae1faa5..df1ab7461f4 100644 --- a/service/clouddirectory/types/errors.go +++ b/service/clouddirectory/types/errors.go @@ -29,7 +29,7 @@ type BatchWriteException struct { Message *string Type BatchWriteExceptionType - Index *int32 + Index int32 } func (e *BatchWriteException) Error() string { diff --git a/service/clouddirectory/types/types.go b/service/clouddirectory/types/types.go index 2eae59fad1b..b9b99698a40 100644 --- a/service/clouddirectory/types/types.go +++ b/service/clouddirectory/types/types.go @@ -60,7 +60,7 @@ type BatchAddFacetToObject struct { // The attributes to set on the object. // // This member is required. - ObjectAttributeList []*AttributeKeyAndValue + ObjectAttributeList []AttributeKeyAndValue // A reference to the object being mutated. // @@ -153,7 +153,7 @@ type BatchAttachTypedLink struct { // A set of attributes that are associated with the typed link. // // This member is required. - Attributes []*AttributeNameAndValue + Attributes []AttributeNameAndValue // Identifies the source object that the typed link will attach to. // @@ -185,13 +185,13 @@ type BatchCreateIndex struct { // Indicates whether the attribute that is being indexed has unique values or not. // // This member is required. - IsUnique *bool + IsUnique bool // Specifies the attributes that should be indexed on. Currently only a single // attribute is supported. // // This member is required. - OrderedIndexedAttributeList []*AttributeKey + OrderedIndexedAttributeList []AttributeKey // The batch reference name. See Transaction Support // (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/transaction_support.html) @@ -219,13 +219,13 @@ type BatchCreateObject struct { // as the map value. // // This member is required. - ObjectAttributeList []*AttributeKeyAndValue + ObjectAttributeList []AttributeKeyAndValue // A list of FacetArns that will be associated with the object. For more // information, see arns. // // This member is required. - SchemaFacet []*SchemaFacet + SchemaFacet []SchemaFacet // The batch reference name. See Transaction Support // (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/transaction_support.html) @@ -351,7 +351,7 @@ type BatchGetLinkAttributes struct { // A list of attribute names whose values will be retrieved. // // This member is required. - AttributeNames []*string + AttributeNames []string // Allows a typed link specifier to be accepted as input. // @@ -363,7 +363,7 @@ type BatchGetLinkAttributes struct { type BatchGetLinkAttributesResponse struct { // The attributes that are associated with the typed link. - Attributes []*AttributeKeyAndValue + Attributes []AttributeKeyAndValue } // Retrieves attributes within a facet that are associated with an object inside an @@ -374,7 +374,7 @@ type BatchGetObjectAttributes struct { // List of attribute names whose values will be retrieved. // // This member is required. - AttributeNames []*string + AttributeNames []string // Reference that identifies the object whose attributes will be retrieved. // @@ -392,7 +392,7 @@ type BatchGetObjectAttributes struct { type BatchGetObjectAttributesResponse struct { // The attribute values that are associated with an object. - Attributes []*AttributeKeyAndValue + Attributes []AttributeKeyAndValue } // Retrieves metadata about an object inside a BatchRead operation. For more @@ -412,7 +412,7 @@ type BatchGetObjectInformationResponse struct { ObjectIdentifier *string // The facets attached to the specified object. - SchemaFacets []*SchemaFacet + SchemaFacets []SchemaFacet } // Lists indices attached to an object inside a BatchRead operation. For more @@ -435,7 +435,7 @@ type BatchListAttachedIndices struct { type BatchListAttachedIndicesResponse struct { // The indices attached to the specified object. - IndexAttachments []*IndexAttachment + IndexAttachments []IndexAttachment // The pagination token. NextToken *string @@ -454,7 +454,7 @@ type BatchListIncomingTypedLinks struct { // Provides range filters for multiple attributes. When providing ranges to typed // link selection, any inexact ranges must be specified at the end. Any attributes // that do not have a range specified are presumed to match the entire range. - FilterAttributeRanges []*TypedLinkAttributeRange + FilterAttributeRanges []TypedLinkAttributeRange // Filters are interpreted in the order of the attributes on the typed link facet, // not the order in which they are supplied to any API calls. @@ -471,7 +471,7 @@ type BatchListIncomingTypedLinks struct { type BatchListIncomingTypedLinksResponse struct { // Returns one or more typed link specifiers as output. - LinkSpecifiers []*TypedLinkSpecifier + LinkSpecifiers []TypedLinkSpecifier // The pagination token. NextToken *string @@ -493,14 +493,14 @@ type BatchListIndex struct { NextToken *string // Specifies the ranges of indexed values that you want to query. - RangesOnIndexedValues []*ObjectAttributeRange + RangesOnIndexedValues []ObjectAttributeRange } // Represents the output of a ListIndex response operation. type BatchListIndexResponse struct { // The objects and indexed values attached to the index. - IndexAttachments []*IndexAttachment + IndexAttachments []IndexAttachment // The pagination token. NextToken *string @@ -531,7 +531,7 @@ type BatchListObjectAttributesResponse struct { // The attributes map that is associated with the object. AttributeArn is the key; // attribute value is the value. - Attributes []*AttributeKeyAndValue + Attributes []AttributeKeyAndValue // The pagination token. NextToken *string @@ -558,7 +558,7 @@ type BatchListObjectChildrenResponse struct { // The children structure, which is a map with the key as the LinkName and // ObjectIdentifier as the value. - Children map[string]*string + Children map[string]string // The pagination token. NextToken *string @@ -589,7 +589,7 @@ type BatchListObjectParentPathsResponse struct { // Returns the path to the ObjectIdentifiers that are associated with the // directory. - PathToObjectIdentifiersList []*PathToObjectIdentifiers + PathToObjectIdentifiersList []PathToObjectIdentifiers } type BatchListObjectParents struct { @@ -607,7 +607,7 @@ type BatchListObjectParents struct { type BatchListObjectParentsResponse struct { NextToken *string - ParentLinks []*ObjectIdentifierAndLinkNameTuple + ParentLinks []ObjectIdentifierAndLinkNameTuple } // Returns policies attached to an object in pagination fashion inside a BatchRead @@ -631,7 +631,7 @@ type BatchListObjectPolicies struct { type BatchListObjectPoliciesResponse struct { // A list of policy ObjectIdentifiers, that are attached to the object. - AttachedPolicyIds []*string + AttachedPolicyIds []string // The pagination token. NextToken *string @@ -650,7 +650,7 @@ type BatchListOutgoingTypedLinks struct { // Provides range filters for multiple attributes. When providing ranges to typed // link selection, any inexact ranges must be specified at the end. Any attributes // that do not have a range specified are presumed to match the entire range. - FilterAttributeRanges []*TypedLinkAttributeRange + FilterAttributeRanges []TypedLinkAttributeRange // Filters are interpreted in the order of the attributes defined on the typed link // facet, not the order they are supplied to any API calls. @@ -670,7 +670,7 @@ type BatchListOutgoingTypedLinksResponse struct { NextToken *string // Returns a typed link specifier as output. - TypedLinkSpecifiers []*TypedLinkSpecifier + TypedLinkSpecifiers []TypedLinkSpecifier } // Returns all of the ObjectIdentifiers to which a given policy is attached inside @@ -697,7 +697,7 @@ type BatchListPolicyAttachmentsResponse struct { NextToken *string // A list of ObjectIdentifiers to which the policy is attached. - ObjectIdentifiers []*string + ObjectIdentifiers []string } // Lists all policies from the root of the Directory to the object specified inside @@ -726,7 +726,7 @@ type BatchLookupPolicyResponse struct { // Provides list of path to policies. Policies contain PolicyId, ObjectIdentifier, // and PolicyType. For more information, see Policies // (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies). - PolicyToPathList []*PolicyToPath + PolicyToPathList []PolicyToPath } // The batch read exception structure, which contains the exception type and @@ -899,7 +899,7 @@ type BatchUpdateLinkAttributes struct { // The attributes update structure. // // This member is required. - AttributeUpdates []*LinkAttributeUpdate + AttributeUpdates []LinkAttributeUpdate // Allows a typed link specifier to be accepted as input. // @@ -917,7 +917,7 @@ type BatchUpdateObjectAttributes struct { // Attributes update structure. // // This member is required. - AttributeUpdates []*ObjectAttributeUpdate + AttributeUpdates []ObjectAttributeUpdate // Reference that identifies the object. // @@ -1118,10 +1118,10 @@ type FacetAttributeDefinition struct { DefaultValue *TypedAttributeValue // Whether the attribute is mutable or not. - IsImmutable *bool + IsImmutable bool // Validation rules attached to the attribute definition. - Rules map[string]*Rule + Rules map[string]Rule } // The facet attribute reference that specifies the attribute definition that @@ -1159,7 +1159,7 @@ type FacetAttributeUpdate struct { type IndexAttachment struct { // The indexed attribute values. - IndexedAttributes []*AttributeKeyAndValue + IndexedAttributes []AttributeKeyAndValue // In response to ListIndex, the ObjectIdentifier of the object attached to the // index. In response to ListAttachedIndices, the ObjectIdentifier of the index @@ -1257,7 +1257,7 @@ type PathToObjectIdentifiers struct { // Lists ObjectIdentifiers starting from directory root to the object in the // request. - ObjectIdentifiers []*string + ObjectIdentifiers []string // The path that is used to identify the object starting from directory root. Path *string @@ -1286,7 +1286,7 @@ type PolicyToPath struct { Path *string // List of policy objects. - Policies []*PolicyAttachment + Policies []PolicyAttachment } // Contains an Amazon Resource Name (ARN) and parameters that are associated with @@ -1294,7 +1294,7 @@ type PolicyToPath struct { type Rule struct { // The minimum and maximum parameters that are associated with the rule. - Parameters map[string]*string + Parameters map[string]string // The type of attribute validation rule. Type RuleType @@ -1387,10 +1387,10 @@ type TypedLinkAttributeDefinition struct { DefaultValue *TypedAttributeValue // Whether the attribute is mutable or not. - IsImmutable *bool + IsImmutable bool // Validation rules that are attached to the attribute definition. - Rules map[string]*Rule + Rules map[string]Rule } // Identifies the range of attributes that are used by a specified filter. @@ -1415,7 +1415,7 @@ type TypedLinkFacet struct { // distinguish the link from others of the same type between the same objects. // // This member is required. - Attributes []*TypedLinkAttributeDefinition + Attributes []TypedLinkAttributeDefinition // The set of attributes that distinguish links made from this facet from each // other, in the order of significance. Listing typed links can filter on the @@ -1423,7 +1423,7 @@ type TypedLinkFacet struct { // ListIncomingTypedLinks for details. // // This member is required. - IdentityAttributeOrder []*string + IdentityAttributeOrder []string // The unique name of the typed link facet. // @@ -1473,7 +1473,7 @@ type TypedLinkSpecifier struct { // Identifies the attribute value to update. // // This member is required. - IdentityAttributeValues []*AttributeNameAndValue + IdentityAttributeValues []AttributeNameAndValue // Identifies the source object that the typed link will attach to. // diff --git a/service/clouddirectory/validators.go b/service/clouddirectory/validators.go index 887b06e7ca4..92ba9ae2442 100644 --- a/service/clouddirectory/validators.go +++ b/service/clouddirectory/validators.go @@ -1541,13 +1541,13 @@ func validateAttributeKeyAndValue(v *types.AttributeKeyAndValue) error { } } -func validateAttributeKeyAndValueList(v []*types.AttributeKeyAndValue) error { +func validateAttributeKeyAndValueList(v []types.AttributeKeyAndValue) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AttributeKeyAndValueList"} for i := range v { - if err := validateAttributeKeyAndValue(v[i]); err != nil { + if err := validateAttributeKeyAndValue(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1558,13 +1558,13 @@ func validateAttributeKeyAndValueList(v []*types.AttributeKeyAndValue) error { } } -func validateAttributeKeyList(v []*types.AttributeKey) error { +func validateAttributeKeyList(v []types.AttributeKey) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AttributeKeyList"} for i := range v { - if err := validateAttributeKey(v[i]); err != nil { + if err := validateAttributeKey(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1593,13 +1593,13 @@ func validateAttributeNameAndValue(v *types.AttributeNameAndValue) error { } } -func validateAttributeNameAndValueList(v []*types.AttributeNameAndValue) error { +func validateAttributeNameAndValueList(v []types.AttributeNameAndValue) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AttributeNameAndValueList"} for i := range v { - if err := validateAttributeNameAndValue(v[i]); err != nil { + if err := validateAttributeNameAndValue(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1736,9 +1736,6 @@ func validateBatchCreateIndex(v *types.BatchCreateIndex) error { invalidParams.AddNested("OrderedIndexedAttributeList", err.(smithy.InvalidParamsError)) } } - if v.IsUnique == nil { - invalidParams.Add(smithy.NewErrParamRequired("IsUnique")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2186,13 +2183,13 @@ func validateBatchReadOperation(v *types.BatchReadOperation) error { } } -func validateBatchReadOperationList(v []*types.BatchReadOperation) error { +func validateBatchReadOperationList(v []types.BatchReadOperation) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BatchReadOperationList"} for i := range v { - if err := validateBatchReadOperation(v[i]); err != nil { + if err := validateBatchReadOperation(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2356,13 +2353,13 @@ func validateBatchWriteOperation(v *types.BatchWriteOperation) error { } } -func validateBatchWriteOperationList(v []*types.BatchWriteOperation) error { +func validateBatchWriteOperationList(v []types.BatchWriteOperation) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BatchWriteOperationList"} for i := range v { - if err := validateBatchWriteOperation(v[i]); err != nil { + if err := validateBatchWriteOperation(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2413,13 +2410,13 @@ func validateFacetAttributeDefinition(v *types.FacetAttributeDefinition) error { } } -func validateFacetAttributeList(v []*types.FacetAttribute) error { +func validateFacetAttributeList(v []types.FacetAttribute) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FacetAttributeList"} for i := range v { - if err := validateFacetAttribute(v[i]); err != nil { + if err := validateFacetAttribute(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2465,13 +2462,13 @@ func validateFacetAttributeUpdate(v *types.FacetAttributeUpdate) error { } } -func validateFacetAttributeUpdateList(v []*types.FacetAttributeUpdate) error { +func validateFacetAttributeUpdateList(v []types.FacetAttributeUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FacetAttributeUpdateList"} for i := range v { - if err := validateFacetAttributeUpdate(v[i]); err != nil { + if err := validateFacetAttributeUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2499,13 +2496,13 @@ func validateLinkAttributeUpdate(v *types.LinkAttributeUpdate) error { } } -func validateLinkAttributeUpdateList(v []*types.LinkAttributeUpdate) error { +func validateLinkAttributeUpdateList(v []types.LinkAttributeUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LinkAttributeUpdateList"} for i := range v { - if err := validateLinkAttributeUpdate(v[i]); err != nil { + if err := validateLinkAttributeUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2538,13 +2535,13 @@ func validateObjectAttributeRange(v *types.ObjectAttributeRange) error { } } -func validateObjectAttributeRangeList(v []*types.ObjectAttributeRange) error { +func validateObjectAttributeRangeList(v []types.ObjectAttributeRange) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ObjectAttributeRangeList"} for i := range v { - if err := validateObjectAttributeRange(v[i]); err != nil { + if err := validateObjectAttributeRange(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2572,13 +2569,13 @@ func validateObjectAttributeUpdate(v *types.ObjectAttributeUpdate) error { } } -func validateObjectAttributeUpdateList(v []*types.ObjectAttributeUpdate) error { +func validateObjectAttributeUpdateList(v []types.ObjectAttributeUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ObjectAttributeUpdateList"} for i := range v { - if err := validateObjectAttributeUpdate(v[i]); err != nil { + if err := validateObjectAttributeUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2628,13 +2625,13 @@ func validateTypedLinkAttributeDefinition(v *types.TypedLinkAttributeDefinition) } } -func validateTypedLinkAttributeDefinitionList(v []*types.TypedLinkAttributeDefinition) error { +func validateTypedLinkAttributeDefinitionList(v []types.TypedLinkAttributeDefinition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TypedLinkAttributeDefinitionList"} for i := range v { - if err := validateTypedLinkAttributeDefinition(v[i]); err != nil { + if err := validateTypedLinkAttributeDefinition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2664,13 +2661,13 @@ func validateTypedLinkAttributeRange(v *types.TypedLinkAttributeRange) error { } } -func validateTypedLinkAttributeRangeList(v []*types.TypedLinkAttributeRange) error { +func validateTypedLinkAttributeRangeList(v []types.TypedLinkAttributeRange) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TypedLinkAttributeRangeList"} for i := range v { - if err := validateTypedLinkAttributeRange(v[i]); err != nil { + if err := validateTypedLinkAttributeRange(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2728,13 +2725,13 @@ func validateTypedLinkFacetAttributeUpdate(v *types.TypedLinkFacetAttributeUpdat } } -func validateTypedLinkFacetAttributeUpdateList(v []*types.TypedLinkFacetAttributeUpdate) error { +func validateTypedLinkFacetAttributeUpdateList(v []types.TypedLinkFacetAttributeUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TypedLinkFacetAttributeUpdateList"} for i := range v { - if err := validateTypedLinkFacetAttributeUpdate(v[i]); err != nil { + if err := validateTypedLinkFacetAttributeUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3030,9 +3027,6 @@ func validateOpCreateIndexInput(v *CreateIndexInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateIndexInput"} - if v.IsUnique == nil { - invalidParams.Add(smithy.NewErrParamRequired("IsUnique")) - } if v.DirectoryArn == nil { invalidParams.Add(smithy.NewErrParamRequired("DirectoryArn")) } diff --git a/service/cloudformation/api_op_ContinueUpdateRollback.go b/service/cloudformation/api_op_ContinueUpdateRollback.go index f85323cfb17..7a416f27cca 100644 --- a/service/cloudformation/api_op_ContinueUpdateRollback.go +++ b/service/cloudformation/api_op_ContinueUpdateRollback.go @@ -84,7 +84,7 @@ type ContinueUpdateRollbackInput struct { // continue update rollback operation with nested stacks, see Using ResourcesToSkip // to recover a nested stacks hierarchy // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html#nested-stacks). - ResourcesToSkip []*string + ResourcesToSkip []string // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) // role that AWS CloudFormation assumes to roll back the stack. AWS CloudFormation diff --git a/service/cloudformation/api_op_CreateChangeSet.go b/service/cloudformation/api_op_CreateChangeSet.go index 1fded4823e7..26745b2a830 100644 --- a/service/cloudformation/api_op_CreateChangeSet.go +++ b/service/cloudformation/api_op_CreateChangeSet.go @@ -169,11 +169,11 @@ type CreateChangeSetInput struct { // The Amazon Resource Names (ARNs) of Amazon Simple Notification Service (Amazon // SNS) topics that AWS CloudFormation associates with the stack. To remove all // associated notification topics, specify an empty list. - NotificationARNs []*string + NotificationARNs []string // A list of Parameter structures that specify input parameters for the change set. // For more information, see the Parameter data type. - Parameters []*types.Parameter + Parameters []types.Parameter // The template resource types that you have permissions to work with if you // execute this change set, such as AWS::EC2::Instance, AWS::EC2::*, or @@ -185,10 +185,10 @@ type CreateChangeSetInput struct { // and Access Management // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html) // in the AWS CloudFormation User Guide. - ResourceTypes []*string + ResourceTypes []string // The resources to import into your stack. - ResourcesToImport []*types.ResourceToImport + ResourcesToImport []types.ResourceToImport // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) // role that AWS CloudFormation assumes when executing the change set. AWS @@ -208,7 +208,7 @@ type CreateChangeSetInput struct { // Key-value pairs to associate with this stack. AWS CloudFormation also propagates // these tags to resources in the stack. You can specify a maximum of 50 tags. - Tags []*types.Tag + Tags []types.Tag // A structure that contains the body of the revised template, with a minimum // length of 1 byte and a maximum length of 51,200 bytes. AWS CloudFormation diff --git a/service/cloudformation/api_op_CreateStack.go b/service/cloudformation/api_op_CreateStack.go index 48ebaee1c59..13ddbaf13c4 100644 --- a/service/cloudformation/api_op_CreateStack.go +++ b/service/cloudformation/api_op_CreateStack.go @@ -157,7 +157,7 @@ type CreateStackInput struct { // The Simple Notification Service (SNS) topic ARNs to publish stack related // events. You can find your SNS topic ARNs using the SNS console or your Command // Line Interface (CLI). - NotificationARNs []*string + NotificationARNs []string // Determines what action will be taken if stack creation fails. This must be one // of: DO_NOTHING, ROLLBACK, or DELETE. You can specify either OnFailure or @@ -168,7 +168,7 @@ type CreateStackInput struct { // more information, see the Parameter // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_Parameter.html) // data type. - Parameters []*types.Parameter + Parameters []types.Parameter // The template resource types that you have permissions to work with for this // create stack action, such as AWS::EC2::Instance, AWS::EC2::*, or @@ -183,7 +183,7 @@ type CreateStackInput struct { // AWS CloudFormation-specific condition keys in IAM policies. For more // information, see Controlling Access with AWS Identity and Access Management // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html). - ResourceTypes []*string + ResourceTypes []string // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) // role that AWS CloudFormation assumes to create the stack. AWS CloudFormation @@ -217,7 +217,7 @@ type CreateStackInput struct { // Key-value pairs to associate with this stack. AWS CloudFormation also propagates // these tags to the resources created in the stack. A maximum number of 50 tags // can be specified. - Tags []*types.Tag + Tags []types.Tag // Structure containing the template body with a minimum length of 1 byte and a // maximum length of 51,200 bytes. For more information, go to Template Anatomy diff --git a/service/cloudformation/api_op_CreateStackInstances.go b/service/cloudformation/api_op_CreateStackInstances.go index 1b613a39bef..9fef58e6ff5 100644 --- a/service/cloudformation/api_op_CreateStackInstances.go +++ b/service/cloudformation/api_op_CreateStackInstances.go @@ -37,7 +37,7 @@ type CreateStackInstancesInput struct { // the specified AWS account(s). // // This member is required. - Regions []*string + Regions []string // The name or unique ID of the stack set that you want to create stack instances // from. @@ -48,7 +48,7 @@ type CreateStackInstancesInput struct { // [Self-managed permissions] The names of one or more AWS accounts that you want // to create stack instances in the specified Region(s) for. You can specify // Accounts or DeploymentTargets, but not both. - Accounts []*string + Accounts []string // [Service-managed permissions] The AWS Organizations accounts for which to create // stack instances in the specified Regions. You can specify Accounts or @@ -99,7 +99,7 @@ type CreateStackInstancesInput struct { // UpdateStackSet // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html) // to update the stack set template. - ParameterOverrides []*types.Parameter + ParameterOverrides []types.Parameter } type CreateStackInstancesOutput struct { diff --git a/service/cloudformation/api_op_CreateStackSet.go b/service/cloudformation/api_op_CreateStackSet.go index 3ad96512e79..1b38864caf1 100644 --- a/service/cloudformation/api_op_CreateStackSet.go +++ b/service/cloudformation/api_op_CreateStackSet.go @@ -146,7 +146,7 @@ type CreateStackSetInput struct { ExecutionRoleName *string // The input parameters for the stack set template. - Parameters []*types.Parameter + Parameters []types.Parameter // Describes how the IAM roles required for stack set operations are created. By // default, SELF-MANAGED is specified. @@ -170,7 +170,7 @@ type CreateStackSetInput struct { // see if you have the required IAM permission to tag resources. If you don't, the // entire CreateStackSet action fails with an access denied error, and the stack // set is not created. - Tags []*types.Tag + Tags []types.Tag // The structure that contains the template body, with a minimum length of 1 byte // and a maximum length of 51,200 bytes. For more information, see Template Anatomy diff --git a/service/cloudformation/api_op_DeleteStack.go b/service/cloudformation/api_op_DeleteStack.go index e6f547667bc..ef9b74c7702 100644 --- a/service/cloudformation/api_op_DeleteStack.go +++ b/service/cloudformation/api_op_DeleteStack.go @@ -56,7 +56,7 @@ type DeleteStackInput struct { // CloudFormation deletes the stack but does not delete the retained resources. // Retaining resources is useful when you cannot delete a resource, such as a // non-empty S3 bucket, but you want to delete the stack. - RetainResources []*string + RetainResources []string // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) // role that AWS CloudFormation assumes to delete the stack. AWS CloudFormation diff --git a/service/cloudformation/api_op_DeleteStackInstances.go b/service/cloudformation/api_op_DeleteStackInstances.go index 6fb4f97a8b4..83699e4fe84 100644 --- a/service/cloudformation/api_op_DeleteStackInstances.go +++ b/service/cloudformation/api_op_DeleteStackInstances.go @@ -33,7 +33,7 @@ type DeleteStackInstancesInput struct { // The Regions where you want to delete stack set instances. // // This member is required. - Regions []*string + Regions []string // Removes the stack instances from the specified stack set, but doesn't delete the // stacks. You can't reassociate a retained stack or add an existing, saved stack @@ -41,7 +41,7 @@ type DeleteStackInstancesInput struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options). // // This member is required. - RetainStacks *bool + RetainStacks bool // The name or unique ID of the stack set that you want to delete stack instances // for. @@ -52,7 +52,7 @@ type DeleteStackInstancesInput struct { // [Self-managed permissions] The names of the AWS accounts that you want to delete // stack instances for. You can specify Accounts or DeploymentTargets, but not // both. - Accounts []*string + Accounts []string // [Service-managed permissions] The AWS Organizations accounts from which to // delete stack instances. You can specify Accounts or DeploymentTargets, but not diff --git a/service/cloudformation/api_op_DescribeAccountLimits.go b/service/cloudformation/api_op_DescribeAccountLimits.go index 68c483eac50..2c33c0e5058 100644 --- a/service/cloudformation/api_op_DescribeAccountLimits.go +++ b/service/cloudformation/api_op_DescribeAccountLimits.go @@ -43,7 +43,7 @@ type DescribeAccountLimitsOutput struct { // An account limit structure that contain a list of AWS CloudFormation account // limits and their values. - AccountLimits []*types.AccountLimit + AccountLimits []types.AccountLimit // If the output exceeds 1 MB in size, a string that identifies the next page of // limits. If no additional page exists, this value is null. diff --git a/service/cloudformation/api_op_DescribeChangeSet.go b/service/cloudformation/api_op_DescribeChangeSet.go index 50410762673..797fb3b302a 100644 --- a/service/cloudformation/api_op_DescribeChangeSet.go +++ b/service/cloudformation/api_op_DescribeChangeSet.go @@ -65,7 +65,7 @@ type DescribeChangeSetOutput struct { // A list of Change structures that describes the resources AWS CloudFormation // changes if you execute the change set. - Changes []*types.Change + Changes []types.Change // The start time when the change set was created, in UTC. CreationTime *time.Time @@ -85,13 +85,13 @@ type DescribeChangeSetOutput struct { // The ARNs of the Amazon Simple Notification Service (Amazon SNS) topics that will // be associated with the stack if you execute the change set. - NotificationARNs []*string + NotificationARNs []string // A list of Parameter structures that describes the input parameters and their // values used to create the change set. For more information, see the Parameter // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_Parameter.html) // data type. - Parameters []*types.Parameter + Parameters []types.Parameter // The rollback triggers for AWS CloudFormation to monitor during stack creation // and updating operations, and for the specified monitoring period afterwards. @@ -112,7 +112,7 @@ type DescribeChangeSetOutput struct { StatusReason *string // If you execute the change set, the tags that will be associated with the stack. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_DescribeStackEvents.go b/service/cloudformation/api_op_DescribeStackEvents.go index 7d9a98419a3..32824a3e65a 100644 --- a/service/cloudformation/api_op_DescribeStackEvents.go +++ b/service/cloudformation/api_op_DescribeStackEvents.go @@ -59,7 +59,7 @@ type DescribeStackEventsOutput struct { NextToken *string // A list of StackEvents structures. - StackEvents []*types.StackEvent + StackEvents []types.StackEvent // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_DescribeStackResourceDrifts.go b/service/cloudformation/api_op_DescribeStackResourceDrifts.go index a75bf02c826..a95a9b1c229 100644 --- a/service/cloudformation/api_op_DescribeStackResourceDrifts.go +++ b/service/cloudformation/api_op_DescribeStackResourceDrifts.go @@ -83,7 +83,7 @@ type DescribeStackResourceDriftsOutput struct { // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). // // This member is required. - StackResourceDrifts []*types.StackResourceDrift + StackResourceDrifts []types.StackResourceDrift // If the request doesn't return all of the remaining results, NextToken is set to // a token. To retrieve the next set of results, call DescribeStackResourceDrifts diff --git a/service/cloudformation/api_op_DescribeStackResources.go b/service/cloudformation/api_op_DescribeStackResources.go index f1a5b6e1eb0..a0e12ab0af0 100644 --- a/service/cloudformation/api_op_DescribeStackResources.go +++ b/service/cloudformation/api_op_DescribeStackResources.go @@ -74,7 +74,7 @@ type DescribeStackResourcesInput struct { type DescribeStackResourcesOutput struct { // A list of StackResource structures. - StackResources []*types.StackResource + StackResources []types.StackResource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_DescribeStacks.go b/service/cloudformation/api_op_DescribeStacks.go index 3b2066f466f..19c14440578 100644 --- a/service/cloudformation/api_op_DescribeStacks.go +++ b/service/cloudformation/api_op_DescribeStacks.go @@ -56,7 +56,7 @@ type DescribeStacksOutput struct { NextToken *string // A list of stack structures. - Stacks []*types.Stack + Stacks []types.Stack // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_DetectStackDrift.go b/service/cloudformation/api_op_DetectStackDrift.go index e1db5336611..0af7730cee9 100644 --- a/service/cloudformation/api_op_DetectStackDrift.go +++ b/service/cloudformation/api_op_DetectStackDrift.go @@ -55,7 +55,7 @@ type DetectStackDriftInput struct { StackName *string // The logical names of any resources you want to use as filters. - LogicalResourceIds []*string + LogicalResourceIds []string } type DetectStackDriftOutput struct { diff --git a/service/cloudformation/api_op_EstimateTemplateCost.go b/service/cloudformation/api_op_EstimateTemplateCost.go index bf5dfbc287b..0ca98068da8 100644 --- a/service/cloudformation/api_op_EstimateTemplateCost.go +++ b/service/cloudformation/api_op_EstimateTemplateCost.go @@ -33,7 +33,7 @@ func (c *Client) EstimateTemplateCost(ctx context.Context, params *EstimateTempl type EstimateTemplateCostInput struct { // A list of Parameter structures that specify input parameters. - Parameters []*types.Parameter + Parameters []types.Parameter // Structure containing the template body with a minimum length of 1 byte and a // maximum length of 51,200 bytes. (For more information, go to Template Anatomy diff --git a/service/cloudformation/api_op_GetTemplateSummary.go b/service/cloudformation/api_op_GetTemplateSummary.go index 1bddca8282a..50980d3f967 100644 --- a/service/cloudformation/api_op_GetTemplateSummary.go +++ b/service/cloudformation/api_op_GetTemplateSummary.go @@ -83,7 +83,7 @@ type GetTemplateSummaryOutput struct { CapabilitiesReason *string // A list of the transforms that are declared in the template. - DeclaredTransforms []*string + DeclaredTransforms []string // The value that is defined in the Description property of the template. Description *string @@ -93,17 +93,17 @@ type GetTemplateSummaryOutput struct { // A list of parameter declarations that describe various properties for each // parameter. - Parameters []*types.ParameterDeclaration + Parameters []types.ParameterDeclaration // A list of resource identifier summaries that describe the target resources of an // import operation and the properties you can provide during the import to // identify the target resources. For example, BucketName is a possible identifier // property for an AWS::S3::Bucket resource. - ResourceIdentifierSummaries []*types.ResourceIdentifierSummary + ResourceIdentifierSummaries []types.ResourceIdentifierSummary // A list of all the template resource types that are defined in the template, such // as AWS::EC2::Instance, AWS::Dynamo::Table, and Custom::MyCustomInstance. - ResourceTypes []*string + ResourceTypes []string // The AWS template format version, which identifies the capabilities of the // template. diff --git a/service/cloudformation/api_op_ListChangeSets.go b/service/cloudformation/api_op_ListChangeSets.go index 2bbe8ab6e2f..e557f5630d7 100644 --- a/service/cloudformation/api_op_ListChangeSets.go +++ b/service/cloudformation/api_op_ListChangeSets.go @@ -52,7 +52,7 @@ type ListChangeSetsOutput struct { // A list of ChangeSetSummary structures that provides the ID and status of each // change set for the specified stack. - Summaries []*types.ChangeSetSummary + Summaries []types.ChangeSetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_ListExports.go b/service/cloudformation/api_op_ListExports.go index cc180030e02..31f488530c9 100644 --- a/service/cloudformation/api_op_ListExports.go +++ b/service/cloudformation/api_op_ListExports.go @@ -43,7 +43,7 @@ type ListExportsInput struct { type ListExportsOutput struct { // The output for the ListExports action. - Exports []*types.Export + Exports []types.Export // If the output exceeds 100 exported output values, a string that identifies the // next page of exports. If there is no additional page, this value is null. diff --git a/service/cloudformation/api_op_ListImports.go b/service/cloudformation/api_op_ListImports.go index e8474a60d86..5bf0f953533 100644 --- a/service/cloudformation/api_op_ListImports.go +++ b/service/cloudformation/api_op_ListImports.go @@ -48,7 +48,7 @@ type ListImportsInput struct { type ListImportsOutput struct { // A list of stack names that are importing the specified exported output value. - Imports []*string + Imports []string // A string that identifies the next page of exports. If there is no additional // page, this value is null. diff --git a/service/cloudformation/api_op_ListStackInstances.go b/service/cloudformation/api_op_ListStackInstances.go index 2b6b1c0f7f1..d997cfe7c82 100644 --- a/service/cloudformation/api_op_ListStackInstances.go +++ b/service/cloudformation/api_op_ListStackInstances.go @@ -38,7 +38,7 @@ type ListStackInstancesInput struct { StackSetName *string // The status that stack instances are filtered by. - Filters []*types.StackInstanceFilter + Filters []types.StackInstanceFilter // The maximum number of results to be returned with a single call. If the number // of available results exceeds this maximum, the response includes a NextToken @@ -70,7 +70,7 @@ type ListStackInstancesOutput struct { // A list of StackInstanceSummary structures that contain information about the // specified stack instances. - Summaries []*types.StackInstanceSummary + Summaries []types.StackInstanceSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_ListStackResources.go b/service/cloudformation/api_op_ListStackResources.go index 4a7c1f5f554..6262e173d09 100644 --- a/service/cloudformation/api_op_ListStackResources.go +++ b/service/cloudformation/api_op_ListStackResources.go @@ -59,7 +59,7 @@ type ListStackResourcesOutput struct { NextToken *string // A list of StackResourceSummary structures. - StackResourceSummaries []*types.StackResourceSummary + StackResourceSummaries []types.StackResourceSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_ListStackSetOperationResults.go b/service/cloudformation/api_op_ListStackSetOperationResults.go index cc0b8a341ee..c2429962755 100644 --- a/service/cloudformation/api_op_ListStackSetOperationResults.go +++ b/service/cloudformation/api_op_ListStackSetOperationResults.go @@ -65,7 +65,7 @@ type ListStackSetOperationResultsOutput struct { // A list of StackSetOperationResultSummary structures that contain information // about the specified operation results, for accounts and Regions that are // included in the operation. - Summaries []*types.StackSetOperationResultSummary + Summaries []types.StackSetOperationResultSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_ListStackSetOperations.go b/service/cloudformation/api_op_ListStackSetOperations.go index 739c989626e..594718599c5 100644 --- a/service/cloudformation/api_op_ListStackSetOperations.go +++ b/service/cloudformation/api_op_ListStackSetOperations.go @@ -59,7 +59,7 @@ type ListStackSetOperationsOutput struct { // A list of StackSetOperationSummary structures that contain summary information // about operations for the specified stack set. - Summaries []*types.StackSetOperationSummary + Summaries []types.StackSetOperationSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_ListStackSets.go b/service/cloudformation/api_op_ListStackSets.go index a282ef38d5a..0517f219d20 100644 --- a/service/cloudformation/api_op_ListStackSets.go +++ b/service/cloudformation/api_op_ListStackSets.go @@ -56,7 +56,7 @@ type ListStackSetsOutput struct { // A list of StackSetSummary structures that contain information about the user's // stack sets. - Summaries []*types.StackSetSummary + Summaries []types.StackSetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_ListStacks.go b/service/cloudformation/api_op_ListStacks.go index f8fbd6b2bba..a28a50bfd1b 100644 --- a/service/cloudformation/api_op_ListStacks.go +++ b/service/cloudformation/api_op_ListStacks.go @@ -52,7 +52,7 @@ type ListStacksOutput struct { // A list of StackSummary structures containing information about the specified // stacks. - StackSummaries []*types.StackSummary + StackSummaries []types.StackSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_ListTypeRegistrations.go b/service/cloudformation/api_op_ListTypeRegistrations.go index 01fb38eb66a..407a4dd67a7 100644 --- a/service/cloudformation/api_op_ListTypeRegistrations.go +++ b/service/cloudformation/api_op_ListTypeRegistrations.go @@ -68,7 +68,7 @@ type ListTypeRegistrationsOutput struct { // A list of type registration tokens. Use DescribeTypeRegistration to return // detailed information about a type registration request. - RegistrationTokenList []*string + RegistrationTokenList []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_ListTypeVersions.go b/service/cloudformation/api_op_ListTypeVersions.go index 5834e90949b..fa0b4aecba4 100644 --- a/service/cloudformation/api_op_ListTypeVersions.go +++ b/service/cloudformation/api_op_ListTypeVersions.go @@ -79,7 +79,7 @@ type ListTypeVersionsOutput struct { // A list of TypeVersionSummary structures that contain information about the // specified type's versions. - TypeVersionSummaries []*types.TypeVersionSummary + TypeVersionSummaries []types.TypeVersionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_ListTypes.go b/service/cloudformation/api_op_ListTypes.go index 94890f94bb2..158092c7dcb 100644 --- a/service/cloudformation/api_op_ListTypes.go +++ b/service/cloudformation/api_op_ListTypes.go @@ -93,7 +93,7 @@ type ListTypesOutput struct { // A list of TypeSummary structures that contain information about the specified // types. - TypeSummaries []*types.TypeSummary + TypeSummaries []types.TypeSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/api_op_UpdateStack.go b/service/cloudformation/api_op_UpdateStack.go index cac68ce0a4a..b85984260df 100644 --- a/service/cloudformation/api_op_UpdateStack.go +++ b/service/cloudformation/api_op_UpdateStack.go @@ -142,13 +142,13 @@ type UpdateStackInput struct { // Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that AWS // CloudFormation associates with the stack. Specify an empty list to remove all // notification topics. - NotificationARNs []*string + NotificationARNs []string // A list of Parameter structures that specify input parameters for the stack. For // more information, see the Parameter // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_Parameter.html) // data type. - Parameters []*types.Parameter + Parameters []types.Parameter // The template resource types that you have permissions to work with for this // update stack action, such as AWS::EC2::Instance, AWS::EC2::*, or @@ -159,7 +159,7 @@ type UpdateStackInput struct { // keys in IAM policies. For more information, see Controlling Access with AWS // Identity and Access Management // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html). - ResourceTypes []*string + ResourceTypes []string // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) // role that AWS CloudFormation assumes to update the stack. AWS CloudFormation @@ -213,7 +213,7 @@ type UpdateStackInput struct { // of 50 tags. If you don't specify this parameter, AWS CloudFormation doesn't // modify the stack's tags. If you specify an empty value, AWS CloudFormation // removes all associated tags. - Tags []*types.Tag + Tags []types.Tag // Structure containing the template body with a minimum length of 1 byte and a // maximum length of 51,200 bytes. (For more information, go to Template Anatomy diff --git a/service/cloudformation/api_op_UpdateStackInstances.go b/service/cloudformation/api_op_UpdateStackInstances.go index 1c9aba2c02e..66495f22bcb 100644 --- a/service/cloudformation/api_op_UpdateStackInstances.go +++ b/service/cloudformation/api_op_UpdateStackInstances.go @@ -52,7 +52,7 @@ type UpdateStackInstancesInput struct { // stack instances in the specified accounts and Regions. // // This member is required. - Regions []*string + Regions []string // The name or unique ID of the stack set associated with the stack instances. // @@ -63,7 +63,7 @@ type UpdateStackInstancesInput struct { // want to update parameter values for stack instances. The overridden parameter // values will be applied to all stack instances in the specified accounts and // Regions. You can specify Accounts or DeploymentTargets, but not both. - Accounts []*string + Accounts []string // [Service-managed permissions] The AWS Organizations accounts for which you want // to update parameter values for stack instances. If your update targets OUs, the @@ -120,7 +120,7 @@ type UpdateStackInstancesInput struct { // to update all stack instances with the updated template and parameter value // specified in the stack set. Once a stack instance has been updated with the new // parameter, you can then override the parameter value using UpdateStackInstances. - ParameterOverrides []*types.Parameter + ParameterOverrides []types.Parameter } type UpdateStackInstancesOutput struct { diff --git a/service/cloudformation/api_op_UpdateStackSet.go b/service/cloudformation/api_op_UpdateStackSet.go index 716d49b9ffd..0faa71ca23e 100644 --- a/service/cloudformation/api_op_UpdateStackSet.go +++ b/service/cloudformation/api_op_UpdateStackSet.go @@ -51,7 +51,7 @@ type UpdateStackSetInput struct { // CloudFormation updates the stack instances in the specified accounts and // Regions, while leaving all other stack instances with their existing stack // instance status. - Accounts []*string + Accounts []string // The Amazon Resource Number (ARN) of the IAM role to use to update this stack // set. Specify an IAM role only if you are using customized administrator roles to @@ -184,7 +184,7 @@ type UpdateStackSetInput struct { OperationPreferences *types.StackSetOperationPreferences // A list of input parameters for the stack set template. - Parameters []*types.Parameter + Parameters []types.Parameter // Describes how the IAM roles required for stack set operations are created. You // cannot modify PermissionModel if there are stack instances associated with your @@ -213,7 +213,7 @@ type UpdateStackSetInput struct { // to the template or parameters, AWS CloudFormation updates the stack instances in // the specified accounts and Regions, while leaving all other stack instances with // their existing stack instance status. - Regions []*string + Regions []string // The key-value pairs to associate with this stack set and the stacks created from // it. AWS CloudFormation also propagates these tags to supported resources that @@ -243,7 +243,7 @@ type UpdateStackSetInput struct { // to untag resources. If you don't have the necessary permission(s), the entire // UpdateStackSet action fails with an access denied error, and the stack set is // not updated. - Tags []*types.Tag + Tags []types.Tag // The structure that contains the template body, with a minimum length of 1 byte // and a maximum length of 51,200 bytes. For more information, see Template Anatomy diff --git a/service/cloudformation/api_op_ValidateTemplate.go b/service/cloudformation/api_op_ValidateTemplate.go index d04d5965df1..9ddf88a76fc 100644 --- a/service/cloudformation/api_op_ValidateTemplate.go +++ b/service/cloudformation/api_op_ValidateTemplate.go @@ -66,13 +66,13 @@ type ValidateTemplateOutput struct { CapabilitiesReason *string // A list of the transforms that are declared in the template. - DeclaredTransforms []*string + DeclaredTransforms []string // The description found within the template. Description *string // A list of TemplateParameter structures. - Parameters []*types.TemplateParameter + Parameters []types.TemplateParameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudformation/deserializers.go b/service/cloudformation/deserializers.go index 4809669b319..51d62315cdb 100644 --- a/service/cloudformation/deserializers.go +++ b/service/cloudformation/deserializers.go @@ -6073,7 +6073,7 @@ func awsAwsquery_deserializeDocumentAccountGateResult(v **types.AccountGateResul } if val != nil { xtv := string(val) - sv.StatusReason = &xtv + sv.StatusReason = ptr.String(xtv) } default: @@ -6121,7 +6121,7 @@ func awsAwsquery_deserializeDocumentAccountLimit(v **types.AccountLimit, decoder } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -6151,13 +6151,13 @@ func awsAwsquery_deserializeDocumentAccountLimit(v **types.AccountLimit, decoder return nil } -func awsAwsquery_deserializeDocumentAccountLimitList(v *[]*types.AccountLimit, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAccountLimitList(v *[]types.AccountLimit, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AccountLimit + var sv []types.AccountLimit if *v == nil { - sv = make([]*types.AccountLimit, 0) + sv = make([]types.AccountLimit, 0) } else { sv = *v } @@ -6173,11 +6173,13 @@ func awsAwsquery_deserializeDocumentAccountLimitList(v *[]*types.AccountLimit, d } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AccountLimit + var col types.AccountLimit nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAccountLimit(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAccountLimit(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6190,35 +6192,37 @@ func awsAwsquery_deserializeDocumentAccountLimitList(v *[]*types.AccountLimit, d return nil } -func awsAwsquery_deserializeDocumentAccountLimitListUnwrapped(v *[]*types.AccountLimit, decoder smithyxml.NodeDecoder) error { - var sv []*types.AccountLimit +func awsAwsquery_deserializeDocumentAccountLimitListUnwrapped(v *[]types.AccountLimit, decoder smithyxml.NodeDecoder) error { + var sv []types.AccountLimit if *v == nil { - sv = make([]*types.AccountLimit, 0) + sv = make([]types.AccountLimit, 0) } else { sv = *v } switch { default: - var mv *types.AccountLimit + var mv types.AccountLimit t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAccountLimit(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAccountLimit(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAccountList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAccountList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -6236,20 +6240,17 @@ func awsAwsquery_deserializeDocumentAccountList(v *[]*string, decoder smithyxml. decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -6262,17 +6263,17 @@ func awsAwsquery_deserializeDocumentAccountList(v *[]*string, decoder smithyxml. return nil } -func awsAwsquery_deserializeDocumentAccountListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAccountListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -6280,27 +6281,24 @@ func awsAwsquery_deserializeDocumentAccountListUnwrapped(v *[]*string, decoder s return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAllowedValues(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAllowedValues(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -6318,20 +6316,17 @@ func awsAwsquery_deserializeDocumentAllowedValues(v *[]*string, decoder smithyxm decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -6344,17 +6339,17 @@ func awsAwsquery_deserializeDocumentAllowedValues(v *[]*string, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentAllowedValuesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAllowedValuesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -6362,14 +6357,11 @@ func awsAwsquery_deserializeDocumentAllowedValuesUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -6411,7 +6403,7 @@ func awsAwsquery_deserializeDocumentAlreadyExistsException(v **types.AlreadyExis } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6459,7 +6451,7 @@ func awsAwsquery_deserializeDocumentAutoDeployment(v **types.AutoDeployment, dec if err != nil { return fmt.Errorf("expected AutoDeploymentNullable to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("RetainStacksOnAccountRemoval", t.Name.Local): @@ -6475,7 +6467,7 @@ func awsAwsquery_deserializeDocumentAutoDeployment(v **types.AutoDeployment, dec if err != nil { return fmt.Errorf("expected RetainStacksOnAccountRemovalNullable to be of type *bool, got %T instead", val) } - sv.RetainStacksOnAccountRemoval = &xtv + sv.RetainStacksOnAccountRemoval = ptr.Bool(xtv) } default: @@ -6599,7 +6591,7 @@ func awsAwsquery_deserializeDocumentCFNRegistryException(v **types.CFNRegistryEx } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6663,13 +6655,13 @@ func awsAwsquery_deserializeDocumentChange(v **types.Change, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentChanges(v *[]*types.Change, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentChanges(v *[]types.Change, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Change + var sv []types.Change if *v == nil { - sv = make([]*types.Change, 0) + sv = make([]types.Change, 0) } else { sv = *v } @@ -6685,11 +6677,13 @@ func awsAwsquery_deserializeDocumentChanges(v *[]*types.Change, decoder smithyxm } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Change + var col types.Change nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentChange(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentChange(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6702,23 +6696,25 @@ func awsAwsquery_deserializeDocumentChanges(v *[]*types.Change, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentChangesUnwrapped(v *[]*types.Change, decoder smithyxml.NodeDecoder) error { - var sv []*types.Change +func awsAwsquery_deserializeDocumentChangesUnwrapped(v *[]types.Change, decoder smithyxml.NodeDecoder) error { + var sv []types.Change if *v == nil { - sv = make([]*types.Change, 0) + sv = make([]types.Change, 0) } else { sv = *v } switch { default: - var mv *types.Change + var mv types.Change t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentChange(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentChange(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6759,7 +6755,7 @@ func awsAwsquery_deserializeDocumentChangeSetNotFoundException(v **types.ChangeS } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6772,13 +6768,13 @@ func awsAwsquery_deserializeDocumentChangeSetNotFoundException(v **types.ChangeS return nil } -func awsAwsquery_deserializeDocumentChangeSetSummaries(v *[]*types.ChangeSetSummary, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentChangeSetSummaries(v *[]types.ChangeSetSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ChangeSetSummary + var sv []types.ChangeSetSummary if *v == nil { - sv = make([]*types.ChangeSetSummary, 0) + sv = make([]types.ChangeSetSummary, 0) } else { sv = *v } @@ -6794,11 +6790,13 @@ func awsAwsquery_deserializeDocumentChangeSetSummaries(v *[]*types.ChangeSetSumm } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ChangeSetSummary + var col types.ChangeSetSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentChangeSetSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentChangeSetSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6811,23 +6809,25 @@ func awsAwsquery_deserializeDocumentChangeSetSummaries(v *[]*types.ChangeSetSumm return nil } -func awsAwsquery_deserializeDocumentChangeSetSummariesUnwrapped(v *[]*types.ChangeSetSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.ChangeSetSummary +func awsAwsquery_deserializeDocumentChangeSetSummariesUnwrapped(v *[]types.ChangeSetSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.ChangeSetSummary if *v == nil { - sv = make([]*types.ChangeSetSummary, 0) + sv = make([]types.ChangeSetSummary, 0) } else { sv = *v } switch { default: - var mv *types.ChangeSetSummary + var mv types.ChangeSetSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentChangeSetSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentChangeSetSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6868,7 +6868,7 @@ func awsAwsquery_deserializeDocumentChangeSetSummary(v **types.ChangeSetSummary, } if val != nil { xtv := string(val) - sv.ChangeSetId = &xtv + sv.ChangeSetId = ptr.String(xtv) } case strings.EqualFold("ChangeSetName", t.Name.Local): @@ -6884,7 +6884,7 @@ func awsAwsquery_deserializeDocumentChangeSetSummary(v **types.ChangeSetSummary, } if val != nil { xtv := string(val) - sv.ChangeSetName = &xtv + sv.ChangeSetName = ptr.String(xtv) } case strings.EqualFold("CreationTime", t.Name.Local): @@ -6901,7 +6901,7 @@ func awsAwsquery_deserializeDocumentChangeSetSummary(v **types.ChangeSetSummary, if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -6917,7 +6917,7 @@ func awsAwsquery_deserializeDocumentChangeSetSummary(v **types.ChangeSetSummary, } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("ExecutionStatus", t.Name.Local): @@ -6946,7 +6946,7 @@ func awsAwsquery_deserializeDocumentChangeSetSummary(v **types.ChangeSetSummary, } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } case strings.EqualFold("StackName", t.Name.Local): @@ -6962,7 +6962,7 @@ func awsAwsquery_deserializeDocumentChangeSetSummary(v **types.ChangeSetSummary, } if val != nil { xtv := string(val) - sv.StackName = &xtv + sv.StackName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -6991,7 +6991,7 @@ func awsAwsquery_deserializeDocumentChangeSetSummary(v **types.ChangeSetSummary, } if val != nil { xtv := string(val) - sv.StatusReason = &xtv + sv.StatusReason = ptr.String(xtv) } default: @@ -7039,7 +7039,7 @@ func awsAwsquery_deserializeDocumentCreatedButModifiedException(v **types.Create } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7131,7 +7131,7 @@ func awsAwsquery_deserializeDocumentExport(v **types.Export, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.ExportingStackId = &xtv + sv.ExportingStackId = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -7147,7 +7147,7 @@ func awsAwsquery_deserializeDocumentExport(v **types.Export, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -7163,7 +7163,7 @@ func awsAwsquery_deserializeDocumentExport(v **types.Export, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -7176,13 +7176,13 @@ func awsAwsquery_deserializeDocumentExport(v **types.Export, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentExports(v *[]*types.Export, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentExports(v *[]types.Export, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Export + var sv []types.Export if *v == nil { - sv = make([]*types.Export, 0) + sv = make([]types.Export, 0) } else { sv = *v } @@ -7198,11 +7198,13 @@ func awsAwsquery_deserializeDocumentExports(v *[]*types.Export, decoder smithyxm } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Export + var col types.Export nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentExport(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentExport(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7215,35 +7217,37 @@ func awsAwsquery_deserializeDocumentExports(v *[]*types.Export, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentExportsUnwrapped(v *[]*types.Export, decoder smithyxml.NodeDecoder) error { - var sv []*types.Export +func awsAwsquery_deserializeDocumentExportsUnwrapped(v *[]types.Export, decoder smithyxml.NodeDecoder) error { + var sv []types.Export if *v == nil { - sv = make([]*types.Export, 0) + sv = make([]types.Export, 0) } else { sv = *v } switch { default: - var mv *types.Export + var mv types.Export t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentExport(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentExport(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentImports(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentImports(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -7261,20 +7265,17 @@ func awsAwsquery_deserializeDocumentImports(v *[]*string, decoder smithyxml.Node decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -7287,17 +7288,17 @@ func awsAwsquery_deserializeDocumentImports(v *[]*string, decoder smithyxml.Node return nil } -func awsAwsquery_deserializeDocumentImportsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentImportsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7305,14 +7306,11 @@ func awsAwsquery_deserializeDocumentImportsUnwrapped(v *[]*string, decoder smith return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -7354,7 +7352,7 @@ func awsAwsquery_deserializeDocumentInsufficientCapabilitiesException(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7402,7 +7400,7 @@ func awsAwsquery_deserializeDocumentInvalidChangeSetStatusException(v **types.In } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7450,7 +7448,7 @@ func awsAwsquery_deserializeDocumentInvalidOperationException(v **types.InvalidO } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7498,7 +7496,7 @@ func awsAwsquery_deserializeDocumentInvalidStateTransitionException(v **types.In } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7546,7 +7544,7 @@ func awsAwsquery_deserializeDocumentLimitExceededException(v **types.LimitExceed } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7594,7 +7592,7 @@ func awsAwsquery_deserializeDocumentLoggingConfig(v **types.LoggingConfig, decod } if val != nil { xtv := string(val) - sv.LogGroupName = &xtv + sv.LogGroupName = ptr.String(xtv) } case strings.EqualFold("LogRoleArn", t.Name.Local): @@ -7610,7 +7608,7 @@ func awsAwsquery_deserializeDocumentLoggingConfig(v **types.LoggingConfig, decod } if val != nil { xtv := string(val) - sv.LogRoleArn = &xtv + sv.LogRoleArn = ptr.String(xtv) } default: @@ -7623,13 +7621,13 @@ func awsAwsquery_deserializeDocumentLoggingConfig(v **types.LoggingConfig, decod return nil } -func awsAwsquery_deserializeDocumentLogicalResourceIds(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLogicalResourceIds(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -7647,20 +7645,17 @@ func awsAwsquery_deserializeDocumentLogicalResourceIds(v *[]*string, decoder smi decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -7673,17 +7668,17 @@ func awsAwsquery_deserializeDocumentLogicalResourceIds(v *[]*string, decoder smi return nil } -func awsAwsquery_deserializeDocumentLogicalResourceIdsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentLogicalResourceIdsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7691,14 +7686,11 @@ func awsAwsquery_deserializeDocumentLogicalResourceIdsUnwrapped(v *[]*string, de return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -7740,7 +7732,7 @@ func awsAwsquery_deserializeDocumentNameAlreadyExistsException(v **types.NameAlr } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7753,13 +7745,13 @@ func awsAwsquery_deserializeDocumentNameAlreadyExistsException(v **types.NameAlr return nil } -func awsAwsquery_deserializeDocumentNotificationARNs(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNotificationARNs(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -7777,20 +7769,17 @@ func awsAwsquery_deserializeDocumentNotificationARNs(v *[]*string, decoder smith decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -7803,17 +7792,17 @@ func awsAwsquery_deserializeDocumentNotificationARNs(v *[]*string, decoder smith return nil } -func awsAwsquery_deserializeDocumentNotificationARNsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentNotificationARNsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7821,14 +7810,11 @@ func awsAwsquery_deserializeDocumentNotificationARNsUnwrapped(v *[]*string, deco return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -7870,7 +7856,7 @@ func awsAwsquery_deserializeDocumentOperationIdAlreadyExistsException(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7918,7 +7904,7 @@ func awsAwsquery_deserializeDocumentOperationInProgressException(v **types.Opera } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7966,7 +7952,7 @@ func awsAwsquery_deserializeDocumentOperationNotFoundException(v **types.Operati } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8014,7 +8000,7 @@ func awsAwsquery_deserializeDocumentOperationStatusCheckFailedException(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8027,13 +8013,13 @@ func awsAwsquery_deserializeDocumentOperationStatusCheckFailedException(v **type return nil } -func awsAwsquery_deserializeDocumentOrganizationalUnitIdList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOrganizationalUnitIdList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -8051,20 +8037,17 @@ func awsAwsquery_deserializeDocumentOrganizationalUnitIdList(v *[]*string, decod decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -8077,17 +8060,17 @@ func awsAwsquery_deserializeDocumentOrganizationalUnitIdList(v *[]*string, decod return nil } -func awsAwsquery_deserializeDocumentOrganizationalUnitIdListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentOrganizationalUnitIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -8095,14 +8078,11 @@ func awsAwsquery_deserializeDocumentOrganizationalUnitIdListUnwrapped(v *[]*stri return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -8144,7 +8124,7 @@ func awsAwsquery_deserializeDocumentOutput(v **types.Output, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("ExportName", t.Name.Local): @@ -8160,7 +8140,7 @@ func awsAwsquery_deserializeDocumentOutput(v **types.Output, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.ExportName = &xtv + sv.ExportName = ptr.String(xtv) } case strings.EqualFold("OutputKey", t.Name.Local): @@ -8176,7 +8156,7 @@ func awsAwsquery_deserializeDocumentOutput(v **types.Output, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.OutputKey = &xtv + sv.OutputKey = ptr.String(xtv) } case strings.EqualFold("OutputValue", t.Name.Local): @@ -8192,7 +8172,7 @@ func awsAwsquery_deserializeDocumentOutput(v **types.Output, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.OutputValue = &xtv + sv.OutputValue = ptr.String(xtv) } default: @@ -8205,13 +8185,13 @@ func awsAwsquery_deserializeDocumentOutput(v **types.Output, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentOutputs(v *[]*types.Output, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOutputs(v *[]types.Output, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Output + var sv []types.Output if *v == nil { - sv = make([]*types.Output, 0) + sv = make([]types.Output, 0) } else { sv = *v } @@ -8227,11 +8207,13 @@ func awsAwsquery_deserializeDocumentOutputs(v *[]*types.Output, decoder smithyxm } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Output + var col types.Output nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOutput(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOutput(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8244,23 +8226,25 @@ func awsAwsquery_deserializeDocumentOutputs(v *[]*types.Output, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentOutputsUnwrapped(v *[]*types.Output, decoder smithyxml.NodeDecoder) error { - var sv []*types.Output +func awsAwsquery_deserializeDocumentOutputsUnwrapped(v *[]types.Output, decoder smithyxml.NodeDecoder) error { + var sv []types.Output if *v == nil { - sv = make([]*types.Output, 0) + sv = make([]types.Output, 0) } else { sv = *v } switch { default: - var mv *types.Output + var mv types.Output t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOutput(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOutput(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8301,7 +8285,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ParameterKey = &xtv + sv.ParameterKey = ptr.String(xtv) } case strings.EqualFold("ParameterValue", t.Name.Local): @@ -8317,7 +8301,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ParameterValue = &xtv + sv.ParameterValue = ptr.String(xtv) } case strings.EqualFold("ResolvedValue", t.Name.Local): @@ -8333,7 +8317,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ResolvedValue = &xtv + sv.ResolvedValue = ptr.String(xtv) } case strings.EqualFold("UsePreviousValue", t.Name.Local): @@ -8349,7 +8333,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith if err != nil { return fmt.Errorf("expected UsePreviousValue to be of type *bool, got %T instead", val) } - sv.UsePreviousValue = &xtv + sv.UsePreviousValue = ptr.Bool(xtv) } default: @@ -8435,7 +8419,7 @@ func awsAwsquery_deserializeDocumentParameterDeclaration(v **types.ParameterDecl } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -8451,7 +8435,7 @@ func awsAwsquery_deserializeDocumentParameterDeclaration(v **types.ParameterDecl } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("NoEcho", t.Name.Local): @@ -8467,7 +8451,7 @@ func awsAwsquery_deserializeDocumentParameterDeclaration(v **types.ParameterDecl if err != nil { return fmt.Errorf("expected NoEcho to be of type *bool, got %T instead", val) } - sv.NoEcho = &xtv + sv.NoEcho = ptr.Bool(xtv) } case strings.EqualFold("ParameterConstraints", t.Name.Local): @@ -8489,7 +8473,7 @@ func awsAwsquery_deserializeDocumentParameterDeclaration(v **types.ParameterDecl } if val != nil { xtv := string(val) - sv.ParameterKey = &xtv + sv.ParameterKey = ptr.String(xtv) } case strings.EqualFold("ParameterType", t.Name.Local): @@ -8505,7 +8489,7 @@ func awsAwsquery_deserializeDocumentParameterDeclaration(v **types.ParameterDecl } if val != nil { xtv := string(val) - sv.ParameterType = &xtv + sv.ParameterType = ptr.String(xtv) } default: @@ -8518,13 +8502,13 @@ func awsAwsquery_deserializeDocumentParameterDeclaration(v **types.ParameterDecl return nil } -func awsAwsquery_deserializeDocumentParameterDeclarations(v *[]*types.ParameterDeclaration, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentParameterDeclarations(v *[]types.ParameterDeclaration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ParameterDeclaration + var sv []types.ParameterDeclaration if *v == nil { - sv = make([]*types.ParameterDeclaration, 0) + sv = make([]types.ParameterDeclaration, 0) } else { sv = *v } @@ -8540,11 +8524,13 @@ func awsAwsquery_deserializeDocumentParameterDeclarations(v *[]*types.ParameterD } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ParameterDeclaration + var col types.ParameterDeclaration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameterDeclaration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentParameterDeclaration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8557,35 +8543,37 @@ func awsAwsquery_deserializeDocumentParameterDeclarations(v *[]*types.ParameterD return nil } -func awsAwsquery_deserializeDocumentParameterDeclarationsUnwrapped(v *[]*types.ParameterDeclaration, decoder smithyxml.NodeDecoder) error { - var sv []*types.ParameterDeclaration +func awsAwsquery_deserializeDocumentParameterDeclarationsUnwrapped(v *[]types.ParameterDeclaration, decoder smithyxml.NodeDecoder) error { + var sv []types.ParameterDeclaration if *v == nil { - sv = make([]*types.ParameterDeclaration, 0) + sv = make([]types.ParameterDeclaration, 0) } else { sv = *v } switch { default: - var mv *types.ParameterDeclaration + var mv types.ParameterDeclaration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameterDeclaration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentParameterDeclaration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentParameters(v *[]*types.Parameter, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentParameters(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Parameter + var sv []types.Parameter if *v == nil { - sv = make([]*types.Parameter, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } @@ -8601,11 +8589,13 @@ func awsAwsquery_deserializeDocumentParameters(v *[]*types.Parameter, decoder sm } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Parameter + var col types.Parameter nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameter(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8618,35 +8608,37 @@ func awsAwsquery_deserializeDocumentParameters(v *[]*types.Parameter, decoder sm return nil } -func awsAwsquery_deserializeDocumentParametersUnwrapped(v *[]*types.Parameter, decoder smithyxml.NodeDecoder) error { - var sv []*types.Parameter +func awsAwsquery_deserializeDocumentParametersUnwrapped(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { + var sv []types.Parameter if *v == nil { - sv = make([]*types.Parameter, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } switch { default: - var mv *types.Parameter + var mv types.Parameter t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameter(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentPhysicalResourceIdContext(v *[]*types.PhysicalResourceIdContextKeyValuePair, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPhysicalResourceIdContext(v *[]types.PhysicalResourceIdContextKeyValuePair, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PhysicalResourceIdContextKeyValuePair + var sv []types.PhysicalResourceIdContextKeyValuePair if *v == nil { - sv = make([]*types.PhysicalResourceIdContextKeyValuePair, 0) + sv = make([]types.PhysicalResourceIdContextKeyValuePair, 0) } else { sv = *v } @@ -8662,11 +8654,13 @@ func awsAwsquery_deserializeDocumentPhysicalResourceIdContext(v *[]*types.Physic } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PhysicalResourceIdContextKeyValuePair + var col types.PhysicalResourceIdContextKeyValuePair nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPhysicalResourceIdContextKeyValuePair(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPhysicalResourceIdContextKeyValuePair(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8679,23 +8673,25 @@ func awsAwsquery_deserializeDocumentPhysicalResourceIdContext(v *[]*types.Physic return nil } -func awsAwsquery_deserializeDocumentPhysicalResourceIdContextUnwrapped(v *[]*types.PhysicalResourceIdContextKeyValuePair, decoder smithyxml.NodeDecoder) error { - var sv []*types.PhysicalResourceIdContextKeyValuePair +func awsAwsquery_deserializeDocumentPhysicalResourceIdContextUnwrapped(v *[]types.PhysicalResourceIdContextKeyValuePair, decoder smithyxml.NodeDecoder) error { + var sv []types.PhysicalResourceIdContextKeyValuePair if *v == nil { - sv = make([]*types.PhysicalResourceIdContextKeyValuePair, 0) + sv = make([]types.PhysicalResourceIdContextKeyValuePair, 0) } else { sv = *v } switch { default: - var mv *types.PhysicalResourceIdContextKeyValuePair + var mv types.PhysicalResourceIdContextKeyValuePair t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPhysicalResourceIdContextKeyValuePair(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPhysicalResourceIdContextKeyValuePair(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8736,7 +8732,7 @@ func awsAwsquery_deserializeDocumentPhysicalResourceIdContextKeyValuePair(v **ty } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -8752,7 +8748,7 @@ func awsAwsquery_deserializeDocumentPhysicalResourceIdContextKeyValuePair(v **ty } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -8800,7 +8796,7 @@ func awsAwsquery_deserializeDocumentPropertyDifference(v **types.PropertyDiffere } if val != nil { xtv := string(val) - sv.ActualValue = &xtv + sv.ActualValue = ptr.String(xtv) } case strings.EqualFold("DifferenceType", t.Name.Local): @@ -8829,7 +8825,7 @@ func awsAwsquery_deserializeDocumentPropertyDifference(v **types.PropertyDiffere } if val != nil { xtv := string(val) - sv.ExpectedValue = &xtv + sv.ExpectedValue = ptr.String(xtv) } case strings.EqualFold("PropertyPath", t.Name.Local): @@ -8845,7 +8841,7 @@ func awsAwsquery_deserializeDocumentPropertyDifference(v **types.PropertyDiffere } if val != nil { xtv := string(val) - sv.PropertyPath = &xtv + sv.PropertyPath = ptr.String(xtv) } default: @@ -8858,13 +8854,13 @@ func awsAwsquery_deserializeDocumentPropertyDifference(v **types.PropertyDiffere return nil } -func awsAwsquery_deserializeDocumentPropertyDifferences(v *[]*types.PropertyDifference, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPropertyDifferences(v *[]types.PropertyDifference, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PropertyDifference + var sv []types.PropertyDifference if *v == nil { - sv = make([]*types.PropertyDifference, 0) + sv = make([]types.PropertyDifference, 0) } else { sv = *v } @@ -8880,11 +8876,13 @@ func awsAwsquery_deserializeDocumentPropertyDifferences(v *[]*types.PropertyDiff } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PropertyDifference + var col types.PropertyDifference nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPropertyDifference(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPropertyDifference(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8897,35 +8895,37 @@ func awsAwsquery_deserializeDocumentPropertyDifferences(v *[]*types.PropertyDiff return nil } -func awsAwsquery_deserializeDocumentPropertyDifferencesUnwrapped(v *[]*types.PropertyDifference, decoder smithyxml.NodeDecoder) error { - var sv []*types.PropertyDifference +func awsAwsquery_deserializeDocumentPropertyDifferencesUnwrapped(v *[]types.PropertyDifference, decoder smithyxml.NodeDecoder) error { + var sv []types.PropertyDifference if *v == nil { - sv = make([]*types.PropertyDifference, 0) + sv = make([]types.PropertyDifference, 0) } else { sv = *v } switch { default: - var mv *types.PropertyDifference + var mv types.PropertyDifference t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPropertyDifference(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPropertyDifference(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentRegionList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRegionList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -8943,20 +8943,17 @@ func awsAwsquery_deserializeDocumentRegionList(v *[]*string, decoder smithyxml.N decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -8969,17 +8966,17 @@ func awsAwsquery_deserializeDocumentRegionList(v *[]*string, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentRegionListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentRegionListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -8987,27 +8984,24 @@ func awsAwsquery_deserializeDocumentRegionListUnwrapped(v *[]*string, decoder sm return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentRegistrationTokenList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRegistrationTokenList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -9025,20 +9019,17 @@ func awsAwsquery_deserializeDocumentRegistrationTokenList(v *[]*string, decoder decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -9051,17 +9042,17 @@ func awsAwsquery_deserializeDocumentRegistrationTokenList(v *[]*string, decoder return nil } -func awsAwsquery_deserializeDocumentRegistrationTokenListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentRegistrationTokenListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -9069,14 +9060,11 @@ func awsAwsquery_deserializeDocumentRegistrationTokenListUnwrapped(v *[]*string, return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -9137,7 +9125,7 @@ func awsAwsquery_deserializeDocumentResourceChange(v **types.ResourceChange, dec } if val != nil { xtv := string(val) - sv.LogicalResourceId = &xtv + sv.LogicalResourceId = ptr.String(xtv) } case strings.EqualFold("PhysicalResourceId", t.Name.Local): @@ -9153,7 +9141,7 @@ func awsAwsquery_deserializeDocumentResourceChange(v **types.ResourceChange, dec } if val != nil { xtv := string(val) - sv.PhysicalResourceId = &xtv + sv.PhysicalResourceId = ptr.String(xtv) } case strings.EqualFold("Replacement", t.Name.Local): @@ -9182,7 +9170,7 @@ func awsAwsquery_deserializeDocumentResourceChange(v **types.ResourceChange, dec } if val != nil { xtv := string(val) - sv.ResourceType = &xtv + sv.ResourceType = ptr.String(xtv) } case strings.EqualFold("Scope", t.Name.Local): @@ -9236,7 +9224,7 @@ func awsAwsquery_deserializeDocumentResourceChangeDetail(v **types.ResourceChang } if val != nil { xtv := string(val) - sv.CausingEntity = &xtv + sv.CausingEntity = ptr.String(xtv) } case strings.EqualFold("ChangeSource", t.Name.Local): @@ -9281,13 +9269,13 @@ func awsAwsquery_deserializeDocumentResourceChangeDetail(v **types.ResourceChang return nil } -func awsAwsquery_deserializeDocumentResourceChangeDetails(v *[]*types.ResourceChangeDetail, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentResourceChangeDetails(v *[]types.ResourceChangeDetail, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ResourceChangeDetail + var sv []types.ResourceChangeDetail if *v == nil { - sv = make([]*types.ResourceChangeDetail, 0) + sv = make([]types.ResourceChangeDetail, 0) } else { sv = *v } @@ -9303,11 +9291,13 @@ func awsAwsquery_deserializeDocumentResourceChangeDetails(v *[]*types.ResourceCh } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ResourceChangeDetail + var col types.ResourceChangeDetail nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentResourceChangeDetail(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentResourceChangeDetail(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9320,35 +9310,37 @@ func awsAwsquery_deserializeDocumentResourceChangeDetails(v *[]*types.ResourceCh return nil } -func awsAwsquery_deserializeDocumentResourceChangeDetailsUnwrapped(v *[]*types.ResourceChangeDetail, decoder smithyxml.NodeDecoder) error { - var sv []*types.ResourceChangeDetail +func awsAwsquery_deserializeDocumentResourceChangeDetailsUnwrapped(v *[]types.ResourceChangeDetail, decoder smithyxml.NodeDecoder) error { + var sv []types.ResourceChangeDetail if *v == nil { - sv = make([]*types.ResourceChangeDetail, 0) + sv = make([]types.ResourceChangeDetail, 0) } else { sv = *v } switch { default: - var mv *types.ResourceChangeDetail + var mv types.ResourceChangeDetail t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentResourceChangeDetail(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentResourceChangeDetail(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentResourceIdentifiers(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentResourceIdentifiers(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -9366,20 +9358,17 @@ func awsAwsquery_deserializeDocumentResourceIdentifiers(v *[]*string, decoder sm decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -9392,17 +9381,17 @@ func awsAwsquery_deserializeDocumentResourceIdentifiers(v *[]*string, decoder sm return nil } -func awsAwsquery_deserializeDocumentResourceIdentifiersUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentResourceIdentifiersUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -9410,27 +9399,24 @@ func awsAwsquery_deserializeDocumentResourceIdentifiersUnwrapped(v *[]*string, d return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentResourceIdentifierSummaries(v *[]*types.ResourceIdentifierSummary, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentResourceIdentifierSummaries(v *[]types.ResourceIdentifierSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ResourceIdentifierSummary + var sv []types.ResourceIdentifierSummary if *v == nil { - sv = make([]*types.ResourceIdentifierSummary, 0) + sv = make([]types.ResourceIdentifierSummary, 0) } else { sv = *v } @@ -9446,11 +9432,13 @@ func awsAwsquery_deserializeDocumentResourceIdentifierSummaries(v *[]*types.Reso } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ResourceIdentifierSummary + var col types.ResourceIdentifierSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentResourceIdentifierSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentResourceIdentifierSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9463,23 +9451,25 @@ func awsAwsquery_deserializeDocumentResourceIdentifierSummaries(v *[]*types.Reso return nil } -func awsAwsquery_deserializeDocumentResourceIdentifierSummariesUnwrapped(v *[]*types.ResourceIdentifierSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.ResourceIdentifierSummary +func awsAwsquery_deserializeDocumentResourceIdentifierSummariesUnwrapped(v *[]types.ResourceIdentifierSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.ResourceIdentifierSummary if *v == nil { - sv = make([]*types.ResourceIdentifierSummary, 0) + sv = make([]types.ResourceIdentifierSummary, 0) } else { sv = *v } switch { default: - var mv *types.ResourceIdentifierSummary + var mv types.ResourceIdentifierSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentResourceIdentifierSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentResourceIdentifierSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9532,7 +9522,7 @@ func awsAwsquery_deserializeDocumentResourceIdentifierSummary(v **types.Resource } if val != nil { xtv := string(val) - sv.ResourceType = &xtv + sv.ResourceType = ptr.String(xtv) } default: @@ -9593,7 +9583,7 @@ func awsAwsquery_deserializeDocumentResourceTargetDefinition(v **types.ResourceT } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("RequiresRecreation", t.Name.Local): @@ -9619,13 +9609,13 @@ func awsAwsquery_deserializeDocumentResourceTargetDefinition(v **types.ResourceT return nil } -func awsAwsquery_deserializeDocumentResourceTypes(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentResourceTypes(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -9643,20 +9633,17 @@ func awsAwsquery_deserializeDocumentResourceTypes(v *[]*string, decoder smithyxm decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -9669,17 +9656,17 @@ func awsAwsquery_deserializeDocumentResourceTypes(v *[]*string, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentResourceTypesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentResourceTypesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -9687,14 +9674,11 @@ func awsAwsquery_deserializeDocumentResourceTypesUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -9791,7 +9775,7 @@ func awsAwsquery_deserializeDocumentRollbackTrigger(v **types.RollbackTrigger, d } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("Type", t.Name.Local): @@ -9807,7 +9791,7 @@ func awsAwsquery_deserializeDocumentRollbackTrigger(v **types.RollbackTrigger, d } if val != nil { xtv := string(val) - sv.Type = &xtv + sv.Type = ptr.String(xtv) } default: @@ -9820,13 +9804,13 @@ func awsAwsquery_deserializeDocumentRollbackTrigger(v **types.RollbackTrigger, d return nil } -func awsAwsquery_deserializeDocumentRollbackTriggers(v *[]*types.RollbackTrigger, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRollbackTriggers(v *[]types.RollbackTrigger, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RollbackTrigger + var sv []types.RollbackTrigger if *v == nil { - sv = make([]*types.RollbackTrigger, 0) + sv = make([]types.RollbackTrigger, 0) } else { sv = *v } @@ -9842,11 +9826,13 @@ func awsAwsquery_deserializeDocumentRollbackTriggers(v *[]*types.RollbackTrigger } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.RollbackTrigger + var col types.RollbackTrigger nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRollbackTrigger(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentRollbackTrigger(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9859,23 +9845,25 @@ func awsAwsquery_deserializeDocumentRollbackTriggers(v *[]*types.RollbackTrigger return nil } -func awsAwsquery_deserializeDocumentRollbackTriggersUnwrapped(v *[]*types.RollbackTrigger, decoder smithyxml.NodeDecoder) error { - var sv []*types.RollbackTrigger +func awsAwsquery_deserializeDocumentRollbackTriggersUnwrapped(v *[]types.RollbackTrigger, decoder smithyxml.NodeDecoder) error { + var sv []types.RollbackTrigger if *v == nil { - sv = make([]*types.RollbackTrigger, 0) + sv = make([]types.RollbackTrigger, 0) } else { sv = *v } switch { default: - var mv *types.RollbackTrigger + var mv types.RollbackTrigger t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRollbackTrigger(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRollbackTrigger(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9998,7 +9986,7 @@ func awsAwsquery_deserializeDocumentStack(v **types.Stack, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.ChangeSetId = &xtv + sv.ChangeSetId = ptr.String(xtv) } case strings.EqualFold("CreationTime", t.Name.Local): @@ -10015,7 +10003,7 @@ func awsAwsquery_deserializeDocumentStack(v **types.Stack, decoder smithyxml.Nod if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case strings.EqualFold("DeletionTime", t.Name.Local): @@ -10032,7 +10020,7 @@ func awsAwsquery_deserializeDocumentStack(v **types.Stack, decoder smithyxml.Nod if err != nil { return err } - sv.DeletionTime = &t + sv.DeletionTime = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -10048,7 +10036,7 @@ func awsAwsquery_deserializeDocumentStack(v **types.Stack, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("DisableRollback", t.Name.Local): @@ -10064,7 +10052,7 @@ func awsAwsquery_deserializeDocumentStack(v **types.Stack, decoder smithyxml.Nod if err != nil { return fmt.Errorf("expected DisableRollback to be of type *bool, got %T instead", val) } - sv.DisableRollback = &xtv + sv.DisableRollback = ptr.Bool(xtv) } case strings.EqualFold("DriftInformation", t.Name.Local): @@ -10086,7 +10074,7 @@ func awsAwsquery_deserializeDocumentStack(v **types.Stack, decoder smithyxml.Nod if err != nil { return fmt.Errorf("expected EnableTerminationProtection to be of type *bool, got %T instead", val) } - sv.EnableTerminationProtection = &xtv + sv.EnableTerminationProtection = ptr.Bool(xtv) } case strings.EqualFold("LastUpdatedTime", t.Name.Local): @@ -10103,7 +10091,7 @@ func awsAwsquery_deserializeDocumentStack(v **types.Stack, decoder smithyxml.Nod if err != nil { return err } - sv.LastUpdatedTime = &t + sv.LastUpdatedTime = ptr.Time(t) } case strings.EqualFold("NotificationARNs", t.Name.Local): @@ -10137,7 +10125,7 @@ func awsAwsquery_deserializeDocumentStack(v **types.Stack, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.ParentId = &xtv + sv.ParentId = ptr.String(xtv) } case strings.EqualFold("RoleARN", t.Name.Local): @@ -10153,7 +10141,7 @@ func awsAwsquery_deserializeDocumentStack(v **types.Stack, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.RoleARN = &xtv + sv.RoleARN = ptr.String(xtv) } case strings.EqualFold("RollbackConfiguration", t.Name.Local): @@ -10175,7 +10163,7 @@ func awsAwsquery_deserializeDocumentStack(v **types.Stack, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.RootId = &xtv + sv.RootId = ptr.String(xtv) } case strings.EqualFold("StackId", t.Name.Local): @@ -10191,7 +10179,7 @@ func awsAwsquery_deserializeDocumentStack(v **types.Stack, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } case strings.EqualFold("StackName", t.Name.Local): @@ -10207,7 +10195,7 @@ func awsAwsquery_deserializeDocumentStack(v **types.Stack, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.StackName = &xtv + sv.StackName = ptr.String(xtv) } case strings.EqualFold("StackStatus", t.Name.Local): @@ -10236,7 +10224,7 @@ func awsAwsquery_deserializeDocumentStack(v **types.Stack, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.StackStatusReason = &xtv + sv.StackStatusReason = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -10308,7 +10296,7 @@ func awsAwsquery_deserializeDocumentStackDriftInformation(v **types.StackDriftIn if err != nil { return err } - sv.LastCheckTimestamp = &t + sv.LastCheckTimestamp = ptr.Time(t) } case strings.EqualFold("StackDriftStatus", t.Name.Local): @@ -10370,7 +10358,7 @@ func awsAwsquery_deserializeDocumentStackDriftInformationSummary(v **types.Stack if err != nil { return err } - sv.LastCheckTimestamp = &t + sv.LastCheckTimestamp = ptr.Time(t) } case strings.EqualFold("StackDriftStatus", t.Name.Local): @@ -10431,7 +10419,7 @@ func awsAwsquery_deserializeDocumentStackEvent(v **types.StackEvent, decoder smi } if val != nil { xtv := string(val) - sv.ClientRequestToken = &xtv + sv.ClientRequestToken = ptr.String(xtv) } case strings.EqualFold("EventId", t.Name.Local): @@ -10447,7 +10435,7 @@ func awsAwsquery_deserializeDocumentStackEvent(v **types.StackEvent, decoder smi } if val != nil { xtv := string(val) - sv.EventId = &xtv + sv.EventId = ptr.String(xtv) } case strings.EqualFold("LogicalResourceId", t.Name.Local): @@ -10463,7 +10451,7 @@ func awsAwsquery_deserializeDocumentStackEvent(v **types.StackEvent, decoder smi } if val != nil { xtv := string(val) - sv.LogicalResourceId = &xtv + sv.LogicalResourceId = ptr.String(xtv) } case strings.EqualFold("PhysicalResourceId", t.Name.Local): @@ -10479,7 +10467,7 @@ func awsAwsquery_deserializeDocumentStackEvent(v **types.StackEvent, decoder smi } if val != nil { xtv := string(val) - sv.PhysicalResourceId = &xtv + sv.PhysicalResourceId = ptr.String(xtv) } case strings.EqualFold("ResourceProperties", t.Name.Local): @@ -10495,7 +10483,7 @@ func awsAwsquery_deserializeDocumentStackEvent(v **types.StackEvent, decoder smi } if val != nil { xtv := string(val) - sv.ResourceProperties = &xtv + sv.ResourceProperties = ptr.String(xtv) } case strings.EqualFold("ResourceStatus", t.Name.Local): @@ -10524,7 +10512,7 @@ func awsAwsquery_deserializeDocumentStackEvent(v **types.StackEvent, decoder smi } if val != nil { xtv := string(val) - sv.ResourceStatusReason = &xtv + sv.ResourceStatusReason = ptr.String(xtv) } case strings.EqualFold("ResourceType", t.Name.Local): @@ -10540,7 +10528,7 @@ func awsAwsquery_deserializeDocumentStackEvent(v **types.StackEvent, decoder smi } if val != nil { xtv := string(val) - sv.ResourceType = &xtv + sv.ResourceType = ptr.String(xtv) } case strings.EqualFold("StackId", t.Name.Local): @@ -10556,7 +10544,7 @@ func awsAwsquery_deserializeDocumentStackEvent(v **types.StackEvent, decoder smi } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } case strings.EqualFold("StackName", t.Name.Local): @@ -10572,7 +10560,7 @@ func awsAwsquery_deserializeDocumentStackEvent(v **types.StackEvent, decoder smi } if val != nil { xtv := string(val) - sv.StackName = &xtv + sv.StackName = ptr.String(xtv) } case strings.EqualFold("Timestamp", t.Name.Local): @@ -10589,7 +10577,7 @@ func awsAwsquery_deserializeDocumentStackEvent(v **types.StackEvent, decoder smi if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -10602,13 +10590,13 @@ func awsAwsquery_deserializeDocumentStackEvent(v **types.StackEvent, decoder smi return nil } -func awsAwsquery_deserializeDocumentStackEvents(v *[]*types.StackEvent, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStackEvents(v *[]types.StackEvent, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StackEvent + var sv []types.StackEvent if *v == nil { - sv = make([]*types.StackEvent, 0) + sv = make([]types.StackEvent, 0) } else { sv = *v } @@ -10624,11 +10612,13 @@ func awsAwsquery_deserializeDocumentStackEvents(v *[]*types.StackEvent, decoder } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.StackEvent + var col types.StackEvent nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackEvent(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentStackEvent(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10641,23 +10631,25 @@ func awsAwsquery_deserializeDocumentStackEvents(v *[]*types.StackEvent, decoder return nil } -func awsAwsquery_deserializeDocumentStackEventsUnwrapped(v *[]*types.StackEvent, decoder smithyxml.NodeDecoder) error { - var sv []*types.StackEvent +func awsAwsquery_deserializeDocumentStackEventsUnwrapped(v *[]types.StackEvent, decoder smithyxml.NodeDecoder) error { + var sv []types.StackEvent if *v == nil { - sv = make([]*types.StackEvent, 0) + sv = make([]types.StackEvent, 0) } else { sv = *v } switch { default: - var mv *types.StackEvent + var mv types.StackEvent t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackEvent(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentStackEvent(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10698,7 +10690,7 @@ func awsAwsquery_deserializeDocumentStackInstance(v **types.StackInstance, decod } if val != nil { xtv := string(val) - sv.Account = &xtv + sv.Account = ptr.String(xtv) } case strings.EqualFold("DriftStatus", t.Name.Local): @@ -10728,7 +10720,7 @@ func awsAwsquery_deserializeDocumentStackInstance(v **types.StackInstance, decod if err != nil { return err } - sv.LastDriftCheckTimestamp = &t + sv.LastDriftCheckTimestamp = ptr.Time(t) } case strings.EqualFold("OrganizationalUnitId", t.Name.Local): @@ -10744,7 +10736,7 @@ func awsAwsquery_deserializeDocumentStackInstance(v **types.StackInstance, decod } if val != nil { xtv := string(val) - sv.OrganizationalUnitId = &xtv + sv.OrganizationalUnitId = ptr.String(xtv) } case strings.EqualFold("ParameterOverrides", t.Name.Local): @@ -10766,7 +10758,7 @@ func awsAwsquery_deserializeDocumentStackInstance(v **types.StackInstance, decod } if val != nil { xtv := string(val) - sv.Region = &xtv + sv.Region = ptr.String(xtv) } case strings.EqualFold("StackId", t.Name.Local): @@ -10782,7 +10774,7 @@ func awsAwsquery_deserializeDocumentStackInstance(v **types.StackInstance, decod } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } case strings.EqualFold("StackInstanceStatus", t.Name.Local): @@ -10804,7 +10796,7 @@ func awsAwsquery_deserializeDocumentStackInstance(v **types.StackInstance, decod } if val != nil { xtv := string(val) - sv.StackSetId = &xtv + sv.StackSetId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -10833,7 +10825,7 @@ func awsAwsquery_deserializeDocumentStackInstance(v **types.StackInstance, decod } if val != nil { xtv := string(val) - sv.StatusReason = &xtv + sv.StatusReason = ptr.String(xtv) } default: @@ -10926,7 +10918,7 @@ func awsAwsquery_deserializeDocumentStackInstanceNotFoundException(v **types.Sta } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10939,13 +10931,13 @@ func awsAwsquery_deserializeDocumentStackInstanceNotFoundException(v **types.Sta return nil } -func awsAwsquery_deserializeDocumentStackInstanceSummaries(v *[]*types.StackInstanceSummary, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStackInstanceSummaries(v *[]types.StackInstanceSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StackInstanceSummary + var sv []types.StackInstanceSummary if *v == nil { - sv = make([]*types.StackInstanceSummary, 0) + sv = make([]types.StackInstanceSummary, 0) } else { sv = *v } @@ -10961,11 +10953,13 @@ func awsAwsquery_deserializeDocumentStackInstanceSummaries(v *[]*types.StackInst } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.StackInstanceSummary + var col types.StackInstanceSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackInstanceSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentStackInstanceSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10978,23 +10972,25 @@ func awsAwsquery_deserializeDocumentStackInstanceSummaries(v *[]*types.StackInst return nil } -func awsAwsquery_deserializeDocumentStackInstanceSummariesUnwrapped(v *[]*types.StackInstanceSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.StackInstanceSummary +func awsAwsquery_deserializeDocumentStackInstanceSummariesUnwrapped(v *[]types.StackInstanceSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.StackInstanceSummary if *v == nil { - sv = make([]*types.StackInstanceSummary, 0) + sv = make([]types.StackInstanceSummary, 0) } else { sv = *v } switch { default: - var mv *types.StackInstanceSummary + var mv types.StackInstanceSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackInstanceSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentStackInstanceSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11035,7 +11031,7 @@ func awsAwsquery_deserializeDocumentStackInstanceSummary(v **types.StackInstance } if val != nil { xtv := string(val) - sv.Account = &xtv + sv.Account = ptr.String(xtv) } case strings.EqualFold("DriftStatus", t.Name.Local): @@ -11065,7 +11061,7 @@ func awsAwsquery_deserializeDocumentStackInstanceSummary(v **types.StackInstance if err != nil { return err } - sv.LastDriftCheckTimestamp = &t + sv.LastDriftCheckTimestamp = ptr.Time(t) } case strings.EqualFold("OrganizationalUnitId", t.Name.Local): @@ -11081,7 +11077,7 @@ func awsAwsquery_deserializeDocumentStackInstanceSummary(v **types.StackInstance } if val != nil { xtv := string(val) - sv.OrganizationalUnitId = &xtv + sv.OrganizationalUnitId = ptr.String(xtv) } case strings.EqualFold("Region", t.Name.Local): @@ -11097,7 +11093,7 @@ func awsAwsquery_deserializeDocumentStackInstanceSummary(v **types.StackInstance } if val != nil { xtv := string(val) - sv.Region = &xtv + sv.Region = ptr.String(xtv) } case strings.EqualFold("StackId", t.Name.Local): @@ -11113,7 +11109,7 @@ func awsAwsquery_deserializeDocumentStackInstanceSummary(v **types.StackInstance } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } case strings.EqualFold("StackInstanceStatus", t.Name.Local): @@ -11135,7 +11131,7 @@ func awsAwsquery_deserializeDocumentStackInstanceSummary(v **types.StackInstance } if val != nil { xtv := string(val) - sv.StackSetId = &xtv + sv.StackSetId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -11164,7 +11160,7 @@ func awsAwsquery_deserializeDocumentStackInstanceSummary(v **types.StackInstance } if val != nil { xtv := string(val) - sv.StatusReason = &xtv + sv.StatusReason = ptr.String(xtv) } default: @@ -11212,7 +11208,7 @@ func awsAwsquery_deserializeDocumentStackResource(v **types.StackResource, decod } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("DriftInformation", t.Name.Local): @@ -11234,7 +11230,7 @@ func awsAwsquery_deserializeDocumentStackResource(v **types.StackResource, decod } if val != nil { xtv := string(val) - sv.LogicalResourceId = &xtv + sv.LogicalResourceId = ptr.String(xtv) } case strings.EqualFold("PhysicalResourceId", t.Name.Local): @@ -11250,7 +11246,7 @@ func awsAwsquery_deserializeDocumentStackResource(v **types.StackResource, decod } if val != nil { xtv := string(val) - sv.PhysicalResourceId = &xtv + sv.PhysicalResourceId = ptr.String(xtv) } case strings.EqualFold("ResourceStatus", t.Name.Local): @@ -11279,7 +11275,7 @@ func awsAwsquery_deserializeDocumentStackResource(v **types.StackResource, decod } if val != nil { xtv := string(val) - sv.ResourceStatusReason = &xtv + sv.ResourceStatusReason = ptr.String(xtv) } case strings.EqualFold("ResourceType", t.Name.Local): @@ -11295,7 +11291,7 @@ func awsAwsquery_deserializeDocumentStackResource(v **types.StackResource, decod } if val != nil { xtv := string(val) - sv.ResourceType = &xtv + sv.ResourceType = ptr.String(xtv) } case strings.EqualFold("StackId", t.Name.Local): @@ -11311,7 +11307,7 @@ func awsAwsquery_deserializeDocumentStackResource(v **types.StackResource, decod } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } case strings.EqualFold("StackName", t.Name.Local): @@ -11327,7 +11323,7 @@ func awsAwsquery_deserializeDocumentStackResource(v **types.StackResource, decod } if val != nil { xtv := string(val) - sv.StackName = &xtv + sv.StackName = ptr.String(xtv) } case strings.EqualFold("Timestamp", t.Name.Local): @@ -11344,7 +11340,7 @@ func awsAwsquery_deserializeDocumentStackResource(v **types.StackResource, decod if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -11392,7 +11388,7 @@ func awsAwsquery_deserializeDocumentStackResourceDetail(v **types.StackResourceD } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("DriftInformation", t.Name.Local): @@ -11415,7 +11411,7 @@ func awsAwsquery_deserializeDocumentStackResourceDetail(v **types.StackResourceD if err != nil { return err } - sv.LastUpdatedTimestamp = &t + sv.LastUpdatedTimestamp = ptr.Time(t) } case strings.EqualFold("LogicalResourceId", t.Name.Local): @@ -11431,7 +11427,7 @@ func awsAwsquery_deserializeDocumentStackResourceDetail(v **types.StackResourceD } if val != nil { xtv := string(val) - sv.LogicalResourceId = &xtv + sv.LogicalResourceId = ptr.String(xtv) } case strings.EqualFold("Metadata", t.Name.Local): @@ -11447,7 +11443,7 @@ func awsAwsquery_deserializeDocumentStackResourceDetail(v **types.StackResourceD } if val != nil { xtv := string(val) - sv.Metadata = &xtv + sv.Metadata = ptr.String(xtv) } case strings.EqualFold("PhysicalResourceId", t.Name.Local): @@ -11463,7 +11459,7 @@ func awsAwsquery_deserializeDocumentStackResourceDetail(v **types.StackResourceD } if val != nil { xtv := string(val) - sv.PhysicalResourceId = &xtv + sv.PhysicalResourceId = ptr.String(xtv) } case strings.EqualFold("ResourceStatus", t.Name.Local): @@ -11492,7 +11488,7 @@ func awsAwsquery_deserializeDocumentStackResourceDetail(v **types.StackResourceD } if val != nil { xtv := string(val) - sv.ResourceStatusReason = &xtv + sv.ResourceStatusReason = ptr.String(xtv) } case strings.EqualFold("ResourceType", t.Name.Local): @@ -11508,7 +11504,7 @@ func awsAwsquery_deserializeDocumentStackResourceDetail(v **types.StackResourceD } if val != nil { xtv := string(val) - sv.ResourceType = &xtv + sv.ResourceType = ptr.String(xtv) } case strings.EqualFold("StackId", t.Name.Local): @@ -11524,7 +11520,7 @@ func awsAwsquery_deserializeDocumentStackResourceDetail(v **types.StackResourceD } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } case strings.EqualFold("StackName", t.Name.Local): @@ -11540,7 +11536,7 @@ func awsAwsquery_deserializeDocumentStackResourceDetail(v **types.StackResourceD } if val != nil { xtv := string(val) - sv.StackName = &xtv + sv.StackName = ptr.String(xtv) } default: @@ -11588,7 +11584,7 @@ func awsAwsquery_deserializeDocumentStackResourceDrift(v **types.StackResourceDr } if val != nil { xtv := string(val) - sv.ActualProperties = &xtv + sv.ActualProperties = ptr.String(xtv) } case strings.EqualFold("ExpectedProperties", t.Name.Local): @@ -11604,7 +11600,7 @@ func awsAwsquery_deserializeDocumentStackResourceDrift(v **types.StackResourceDr } if val != nil { xtv := string(val) - sv.ExpectedProperties = &xtv + sv.ExpectedProperties = ptr.String(xtv) } case strings.EqualFold("LogicalResourceId", t.Name.Local): @@ -11620,7 +11616,7 @@ func awsAwsquery_deserializeDocumentStackResourceDrift(v **types.StackResourceDr } if val != nil { xtv := string(val) - sv.LogicalResourceId = &xtv + sv.LogicalResourceId = ptr.String(xtv) } case strings.EqualFold("PhysicalResourceId", t.Name.Local): @@ -11636,7 +11632,7 @@ func awsAwsquery_deserializeDocumentStackResourceDrift(v **types.StackResourceDr } if val != nil { xtv := string(val) - sv.PhysicalResourceId = &xtv + sv.PhysicalResourceId = ptr.String(xtv) } case strings.EqualFold("PhysicalResourceIdContext", t.Name.Local): @@ -11664,7 +11660,7 @@ func awsAwsquery_deserializeDocumentStackResourceDrift(v **types.StackResourceDr } if val != nil { xtv := string(val) - sv.ResourceType = &xtv + sv.ResourceType = ptr.String(xtv) } case strings.EqualFold("StackId", t.Name.Local): @@ -11680,7 +11676,7 @@ func awsAwsquery_deserializeDocumentStackResourceDrift(v **types.StackResourceDr } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } case strings.EqualFold("StackResourceDriftStatus", t.Name.Local): @@ -11710,7 +11706,7 @@ func awsAwsquery_deserializeDocumentStackResourceDrift(v **types.StackResourceDr if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -11759,7 +11755,7 @@ func awsAwsquery_deserializeDocumentStackResourceDriftInformation(v **types.Stac if err != nil { return err } - sv.LastCheckTimestamp = &t + sv.LastCheckTimestamp = ptr.Time(t) } case strings.EqualFold("StackResourceDriftStatus", t.Name.Local): @@ -11821,7 +11817,7 @@ func awsAwsquery_deserializeDocumentStackResourceDriftInformationSummary(v **typ if err != nil { return err } - sv.LastCheckTimestamp = &t + sv.LastCheckTimestamp = ptr.Time(t) } case strings.EqualFold("StackResourceDriftStatus", t.Name.Local): @@ -11847,13 +11843,13 @@ func awsAwsquery_deserializeDocumentStackResourceDriftInformationSummary(v **typ return nil } -func awsAwsquery_deserializeDocumentStackResourceDrifts(v *[]*types.StackResourceDrift, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStackResourceDrifts(v *[]types.StackResourceDrift, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StackResourceDrift + var sv []types.StackResourceDrift if *v == nil { - sv = make([]*types.StackResourceDrift, 0) + sv = make([]types.StackResourceDrift, 0) } else { sv = *v } @@ -11869,11 +11865,13 @@ func awsAwsquery_deserializeDocumentStackResourceDrifts(v *[]*types.StackResourc } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.StackResourceDrift + var col types.StackResourceDrift nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackResourceDrift(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentStackResourceDrift(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11886,35 +11884,37 @@ func awsAwsquery_deserializeDocumentStackResourceDrifts(v *[]*types.StackResourc return nil } -func awsAwsquery_deserializeDocumentStackResourceDriftsUnwrapped(v *[]*types.StackResourceDrift, decoder smithyxml.NodeDecoder) error { - var sv []*types.StackResourceDrift +func awsAwsquery_deserializeDocumentStackResourceDriftsUnwrapped(v *[]types.StackResourceDrift, decoder smithyxml.NodeDecoder) error { + var sv []types.StackResourceDrift if *v == nil { - sv = make([]*types.StackResourceDrift, 0) + sv = make([]types.StackResourceDrift, 0) } else { sv = *v } switch { default: - var mv *types.StackResourceDrift + var mv types.StackResourceDrift t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackResourceDrift(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentStackResourceDrift(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentStackResources(v *[]*types.StackResource, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStackResources(v *[]types.StackResource, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StackResource + var sv []types.StackResource if *v == nil { - sv = make([]*types.StackResource, 0) + sv = make([]types.StackResource, 0) } else { sv = *v } @@ -11930,11 +11930,13 @@ func awsAwsquery_deserializeDocumentStackResources(v *[]*types.StackResource, de } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.StackResource + var col types.StackResource nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackResource(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentStackResource(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11947,35 +11949,37 @@ func awsAwsquery_deserializeDocumentStackResources(v *[]*types.StackResource, de return nil } -func awsAwsquery_deserializeDocumentStackResourcesUnwrapped(v *[]*types.StackResource, decoder smithyxml.NodeDecoder) error { - var sv []*types.StackResource +func awsAwsquery_deserializeDocumentStackResourcesUnwrapped(v *[]types.StackResource, decoder smithyxml.NodeDecoder) error { + var sv []types.StackResource if *v == nil { - sv = make([]*types.StackResource, 0) + sv = make([]types.StackResource, 0) } else { sv = *v } switch { default: - var mv *types.StackResource + var mv types.StackResource t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackResource(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentStackResource(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentStackResourceSummaries(v *[]*types.StackResourceSummary, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStackResourceSummaries(v *[]types.StackResourceSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StackResourceSummary + var sv []types.StackResourceSummary if *v == nil { - sv = make([]*types.StackResourceSummary, 0) + sv = make([]types.StackResourceSummary, 0) } else { sv = *v } @@ -11991,11 +11995,13 @@ func awsAwsquery_deserializeDocumentStackResourceSummaries(v *[]*types.StackReso } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.StackResourceSummary + var col types.StackResourceSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackResourceSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentStackResourceSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12008,23 +12014,25 @@ func awsAwsquery_deserializeDocumentStackResourceSummaries(v *[]*types.StackReso return nil } -func awsAwsquery_deserializeDocumentStackResourceSummariesUnwrapped(v *[]*types.StackResourceSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.StackResourceSummary +func awsAwsquery_deserializeDocumentStackResourceSummariesUnwrapped(v *[]types.StackResourceSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.StackResourceSummary if *v == nil { - sv = make([]*types.StackResourceSummary, 0) + sv = make([]types.StackResourceSummary, 0) } else { sv = *v } switch { default: - var mv *types.StackResourceSummary + var mv types.StackResourceSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackResourceSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentStackResourceSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12072,7 +12080,7 @@ func awsAwsquery_deserializeDocumentStackResourceSummary(v **types.StackResource if err != nil { return err } - sv.LastUpdatedTimestamp = &t + sv.LastUpdatedTimestamp = ptr.Time(t) } case strings.EqualFold("LogicalResourceId", t.Name.Local): @@ -12088,7 +12096,7 @@ func awsAwsquery_deserializeDocumentStackResourceSummary(v **types.StackResource } if val != nil { xtv := string(val) - sv.LogicalResourceId = &xtv + sv.LogicalResourceId = ptr.String(xtv) } case strings.EqualFold("PhysicalResourceId", t.Name.Local): @@ -12104,7 +12112,7 @@ func awsAwsquery_deserializeDocumentStackResourceSummary(v **types.StackResource } if val != nil { xtv := string(val) - sv.PhysicalResourceId = &xtv + sv.PhysicalResourceId = ptr.String(xtv) } case strings.EqualFold("ResourceStatus", t.Name.Local): @@ -12133,7 +12141,7 @@ func awsAwsquery_deserializeDocumentStackResourceSummary(v **types.StackResource } if val != nil { xtv := string(val) - sv.ResourceStatusReason = &xtv + sv.ResourceStatusReason = ptr.String(xtv) } case strings.EqualFold("ResourceType", t.Name.Local): @@ -12149,7 +12157,7 @@ func awsAwsquery_deserializeDocumentStackResourceSummary(v **types.StackResource } if val != nil { xtv := string(val) - sv.ResourceType = &xtv + sv.ResourceType = ptr.String(xtv) } default: @@ -12162,13 +12170,13 @@ func awsAwsquery_deserializeDocumentStackResourceSummary(v **types.StackResource return nil } -func awsAwsquery_deserializeDocumentStacks(v *[]*types.Stack, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStacks(v *[]types.Stack, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Stack + var sv []types.Stack if *v == nil { - sv = make([]*types.Stack, 0) + sv = make([]types.Stack, 0) } else { sv = *v } @@ -12184,11 +12192,13 @@ func awsAwsquery_deserializeDocumentStacks(v *[]*types.Stack, decoder smithyxml. } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Stack + var col types.Stack nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStack(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentStack(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12201,23 +12211,25 @@ func awsAwsquery_deserializeDocumentStacks(v *[]*types.Stack, decoder smithyxml. return nil } -func awsAwsquery_deserializeDocumentStacksUnwrapped(v *[]*types.Stack, decoder smithyxml.NodeDecoder) error { - var sv []*types.Stack +func awsAwsquery_deserializeDocumentStacksUnwrapped(v *[]types.Stack, decoder smithyxml.NodeDecoder) error { + var sv []types.Stack if *v == nil { - sv = make([]*types.Stack, 0) + sv = make([]types.Stack, 0) } else { sv = *v } switch { default: - var mv *types.Stack + var mv types.Stack t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStack(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentStack(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12258,7 +12270,7 @@ func awsAwsquery_deserializeDocumentStackSet(v **types.StackSet, decoder smithyx } if val != nil { xtv := string(val) - sv.AdministrationRoleARN = &xtv + sv.AdministrationRoleARN = ptr.String(xtv) } case strings.EqualFold("AutoDeployment", t.Name.Local): @@ -12286,7 +12298,7 @@ func awsAwsquery_deserializeDocumentStackSet(v **types.StackSet, decoder smithyx } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("ExecutionRoleName", t.Name.Local): @@ -12302,7 +12314,7 @@ func awsAwsquery_deserializeDocumentStackSet(v **types.StackSet, decoder smithyx } if val != nil { xtv := string(val) - sv.ExecutionRoleName = &xtv + sv.ExecutionRoleName = ptr.String(xtv) } case strings.EqualFold("OrganizationalUnitIds", t.Name.Local): @@ -12343,7 +12355,7 @@ func awsAwsquery_deserializeDocumentStackSet(v **types.StackSet, decoder smithyx } if val != nil { xtv := string(val) - sv.StackSetARN = &xtv + sv.StackSetARN = ptr.String(xtv) } case strings.EqualFold("StackSetDriftDetectionDetails", t.Name.Local): @@ -12365,7 +12377,7 @@ func awsAwsquery_deserializeDocumentStackSet(v **types.StackSet, decoder smithyx } if val != nil { xtv := string(val) - sv.StackSetId = &xtv + sv.StackSetId = ptr.String(xtv) } case strings.EqualFold("StackSetName", t.Name.Local): @@ -12381,7 +12393,7 @@ func awsAwsquery_deserializeDocumentStackSet(v **types.StackSet, decoder smithyx } if val != nil { xtv := string(val) - sv.StackSetName = &xtv + sv.StackSetName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -12416,7 +12428,7 @@ func awsAwsquery_deserializeDocumentStackSet(v **types.StackSet, decoder smithyx } if val != nil { xtv := string(val) - sv.TemplateBody = &xtv + sv.TemplateBody = ptr.String(xtv) } default: @@ -12478,7 +12490,7 @@ func awsAwsquery_deserializeDocumentStackSetDriftDetectionDetails(v **types.Stac if err != nil { return err } - sv.DriftedStackInstancesCount = ptr.Int32(int32(i64)) + sv.DriftedStackInstancesCount = int32(i64) } case strings.EqualFold("DriftStatus", t.Name.Local): @@ -12508,7 +12520,7 @@ func awsAwsquery_deserializeDocumentStackSetDriftDetectionDetails(v **types.Stac if err != nil { return err } - sv.FailedStackInstancesCount = ptr.Int32(int32(i64)) + sv.FailedStackInstancesCount = int32(i64) } case strings.EqualFold("InProgressStackInstancesCount", t.Name.Local): @@ -12525,7 +12537,7 @@ func awsAwsquery_deserializeDocumentStackSetDriftDetectionDetails(v **types.Stac if err != nil { return err } - sv.InProgressStackInstancesCount = ptr.Int32(int32(i64)) + sv.InProgressStackInstancesCount = int32(i64) } case strings.EqualFold("InSyncStackInstancesCount", t.Name.Local): @@ -12542,7 +12554,7 @@ func awsAwsquery_deserializeDocumentStackSetDriftDetectionDetails(v **types.Stac if err != nil { return err } - sv.InSyncStackInstancesCount = ptr.Int32(int32(i64)) + sv.InSyncStackInstancesCount = int32(i64) } case strings.EqualFold("LastDriftCheckTimestamp", t.Name.Local): @@ -12559,7 +12571,7 @@ func awsAwsquery_deserializeDocumentStackSetDriftDetectionDetails(v **types.Stac if err != nil { return err } - sv.LastDriftCheckTimestamp = &t + sv.LastDriftCheckTimestamp = ptr.Time(t) } case strings.EqualFold("TotalStackInstancesCount", t.Name.Local): @@ -12576,7 +12588,7 @@ func awsAwsquery_deserializeDocumentStackSetDriftDetectionDetails(v **types.Stac if err != nil { return err } - sv.TotalStackInstancesCount = ptr.Int32(int32(i64)) + sv.TotalStackInstancesCount = int32(i64) } default: @@ -12624,7 +12636,7 @@ func awsAwsquery_deserializeDocumentStackSetNotEmptyException(v **types.StackSet } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12672,7 +12684,7 @@ func awsAwsquery_deserializeDocumentStackSetNotFoundException(v **types.StackSet } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12733,7 +12745,7 @@ func awsAwsquery_deserializeDocumentStackSetOperation(v **types.StackSetOperatio } if val != nil { xtv := string(val) - sv.AdministrationRoleARN = &xtv + sv.AdministrationRoleARN = ptr.String(xtv) } case strings.EqualFold("CreationTimestamp", t.Name.Local): @@ -12750,7 +12762,7 @@ func awsAwsquery_deserializeDocumentStackSetOperation(v **types.StackSetOperatio if err != nil { return err } - sv.CreationTimestamp = &t + sv.CreationTimestamp = ptr.Time(t) } case strings.EqualFold("DeploymentTargets", t.Name.Local): @@ -12773,7 +12785,7 @@ func awsAwsquery_deserializeDocumentStackSetOperation(v **types.StackSetOperatio if err != nil { return err } - sv.EndTimestamp = &t + sv.EndTimestamp = ptr.Time(t) } case strings.EqualFold("ExecutionRoleName", t.Name.Local): @@ -12789,7 +12801,7 @@ func awsAwsquery_deserializeDocumentStackSetOperation(v **types.StackSetOperatio } if val != nil { xtv := string(val) - sv.ExecutionRoleName = &xtv + sv.ExecutionRoleName = ptr.String(xtv) } case strings.EqualFold("OperationId", t.Name.Local): @@ -12805,7 +12817,7 @@ func awsAwsquery_deserializeDocumentStackSetOperation(v **types.StackSetOperatio } if val != nil { xtv := string(val) - sv.OperationId = &xtv + sv.OperationId = ptr.String(xtv) } case strings.EqualFold("OperationPreferences", t.Name.Local): @@ -12827,7 +12839,7 @@ func awsAwsquery_deserializeDocumentStackSetOperation(v **types.StackSetOperatio if err != nil { return fmt.Errorf("expected RetainStacksNullable to be of type *bool, got %T instead", val) } - sv.RetainStacks = &xtv + sv.RetainStacks = ptr.Bool(xtv) } case strings.EqualFold("StackSetDriftDetectionDetails", t.Name.Local): @@ -12849,7 +12861,7 @@ func awsAwsquery_deserializeDocumentStackSetOperation(v **types.StackSetOperatio } if val != nil { xtv := string(val) - sv.StackSetId = &xtv + sv.StackSetId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -12981,13 +12993,13 @@ func awsAwsquery_deserializeDocumentStackSetOperationPreferences(v **types.Stack return nil } -func awsAwsquery_deserializeDocumentStackSetOperationResultSummaries(v *[]*types.StackSetOperationResultSummary, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStackSetOperationResultSummaries(v *[]types.StackSetOperationResultSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StackSetOperationResultSummary + var sv []types.StackSetOperationResultSummary if *v == nil { - sv = make([]*types.StackSetOperationResultSummary, 0) + sv = make([]types.StackSetOperationResultSummary, 0) } else { sv = *v } @@ -13003,11 +13015,13 @@ func awsAwsquery_deserializeDocumentStackSetOperationResultSummaries(v *[]*types } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.StackSetOperationResultSummary + var col types.StackSetOperationResultSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackSetOperationResultSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentStackSetOperationResultSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13020,23 +13034,25 @@ func awsAwsquery_deserializeDocumentStackSetOperationResultSummaries(v *[]*types return nil } -func awsAwsquery_deserializeDocumentStackSetOperationResultSummariesUnwrapped(v *[]*types.StackSetOperationResultSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.StackSetOperationResultSummary +func awsAwsquery_deserializeDocumentStackSetOperationResultSummariesUnwrapped(v *[]types.StackSetOperationResultSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.StackSetOperationResultSummary if *v == nil { - sv = make([]*types.StackSetOperationResultSummary, 0) + sv = make([]types.StackSetOperationResultSummary, 0) } else { sv = *v } switch { default: - var mv *types.StackSetOperationResultSummary + var mv types.StackSetOperationResultSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackSetOperationResultSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentStackSetOperationResultSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13077,7 +13093,7 @@ func awsAwsquery_deserializeDocumentStackSetOperationResultSummary(v **types.Sta } if val != nil { xtv := string(val) - sv.Account = &xtv + sv.Account = ptr.String(xtv) } case strings.EqualFold("AccountGateResult", t.Name.Local): @@ -13099,7 +13115,7 @@ func awsAwsquery_deserializeDocumentStackSetOperationResultSummary(v **types.Sta } if val != nil { xtv := string(val) - sv.OrganizationalUnitId = &xtv + sv.OrganizationalUnitId = ptr.String(xtv) } case strings.EqualFold("Region", t.Name.Local): @@ -13115,7 +13131,7 @@ func awsAwsquery_deserializeDocumentStackSetOperationResultSummary(v **types.Sta } if val != nil { xtv := string(val) - sv.Region = &xtv + sv.Region = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -13144,7 +13160,7 @@ func awsAwsquery_deserializeDocumentStackSetOperationResultSummary(v **types.Sta } if val != nil { xtv := string(val) - sv.StatusReason = &xtv + sv.StatusReason = ptr.String(xtv) } default: @@ -13157,13 +13173,13 @@ func awsAwsquery_deserializeDocumentStackSetOperationResultSummary(v **types.Sta return nil } -func awsAwsquery_deserializeDocumentStackSetOperationSummaries(v *[]*types.StackSetOperationSummary, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStackSetOperationSummaries(v *[]types.StackSetOperationSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StackSetOperationSummary + var sv []types.StackSetOperationSummary if *v == nil { - sv = make([]*types.StackSetOperationSummary, 0) + sv = make([]types.StackSetOperationSummary, 0) } else { sv = *v } @@ -13179,11 +13195,13 @@ func awsAwsquery_deserializeDocumentStackSetOperationSummaries(v *[]*types.Stack } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.StackSetOperationSummary + var col types.StackSetOperationSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackSetOperationSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentStackSetOperationSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13196,23 +13214,25 @@ func awsAwsquery_deserializeDocumentStackSetOperationSummaries(v *[]*types.Stack return nil } -func awsAwsquery_deserializeDocumentStackSetOperationSummariesUnwrapped(v *[]*types.StackSetOperationSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.StackSetOperationSummary +func awsAwsquery_deserializeDocumentStackSetOperationSummariesUnwrapped(v *[]types.StackSetOperationSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.StackSetOperationSummary if *v == nil { - sv = make([]*types.StackSetOperationSummary, 0) + sv = make([]types.StackSetOperationSummary, 0) } else { sv = *v } switch { default: - var mv *types.StackSetOperationSummary + var mv types.StackSetOperationSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackSetOperationSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentStackSetOperationSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13267,7 +13287,7 @@ func awsAwsquery_deserializeDocumentStackSetOperationSummary(v **types.StackSetO if err != nil { return err } - sv.CreationTimestamp = &t + sv.CreationTimestamp = ptr.Time(t) } case strings.EqualFold("EndTimestamp", t.Name.Local): @@ -13284,7 +13304,7 @@ func awsAwsquery_deserializeDocumentStackSetOperationSummary(v **types.StackSetO if err != nil { return err } - sv.EndTimestamp = &t + sv.EndTimestamp = ptr.Time(t) } case strings.EqualFold("OperationId", t.Name.Local): @@ -13300,7 +13320,7 @@ func awsAwsquery_deserializeDocumentStackSetOperationSummary(v **types.StackSetO } if val != nil { xtv := string(val) - sv.OperationId = &xtv + sv.OperationId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -13326,13 +13346,13 @@ func awsAwsquery_deserializeDocumentStackSetOperationSummary(v **types.StackSetO return nil } -func awsAwsquery_deserializeDocumentStackSetSummaries(v *[]*types.StackSetSummary, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStackSetSummaries(v *[]types.StackSetSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StackSetSummary + var sv []types.StackSetSummary if *v == nil { - sv = make([]*types.StackSetSummary, 0) + sv = make([]types.StackSetSummary, 0) } else { sv = *v } @@ -13348,11 +13368,13 @@ func awsAwsquery_deserializeDocumentStackSetSummaries(v *[]*types.StackSetSummar } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.StackSetSummary + var col types.StackSetSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackSetSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentStackSetSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13365,23 +13387,25 @@ func awsAwsquery_deserializeDocumentStackSetSummaries(v *[]*types.StackSetSummar return nil } -func awsAwsquery_deserializeDocumentStackSetSummariesUnwrapped(v *[]*types.StackSetSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.StackSetSummary +func awsAwsquery_deserializeDocumentStackSetSummariesUnwrapped(v *[]types.StackSetSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.StackSetSummary if *v == nil { - sv = make([]*types.StackSetSummary, 0) + sv = make([]types.StackSetSummary, 0) } else { sv = *v } switch { default: - var mv *types.StackSetSummary + var mv types.StackSetSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackSetSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentStackSetSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13428,7 +13452,7 @@ func awsAwsquery_deserializeDocumentStackSetSummary(v **types.StackSetSummary, d } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("DriftStatus", t.Name.Local): @@ -13458,7 +13482,7 @@ func awsAwsquery_deserializeDocumentStackSetSummary(v **types.StackSetSummary, d if err != nil { return err } - sv.LastDriftCheckTimestamp = &t + sv.LastDriftCheckTimestamp = ptr.Time(t) } case strings.EqualFold("PermissionModel", t.Name.Local): @@ -13487,7 +13511,7 @@ func awsAwsquery_deserializeDocumentStackSetSummary(v **types.StackSetSummary, d } if val != nil { xtv := string(val) - sv.StackSetId = &xtv + sv.StackSetId = ptr.String(xtv) } case strings.EqualFold("StackSetName", t.Name.Local): @@ -13503,7 +13527,7 @@ func awsAwsquery_deserializeDocumentStackSetSummary(v **types.StackSetSummary, d } if val != nil { xtv := string(val) - sv.StackSetName = &xtv + sv.StackSetName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -13529,13 +13553,13 @@ func awsAwsquery_deserializeDocumentStackSetSummary(v **types.StackSetSummary, d return nil } -func awsAwsquery_deserializeDocumentStackSummaries(v *[]*types.StackSummary, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStackSummaries(v *[]types.StackSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StackSummary + var sv []types.StackSummary if *v == nil { - sv = make([]*types.StackSummary, 0) + sv = make([]types.StackSummary, 0) } else { sv = *v } @@ -13551,11 +13575,13 @@ func awsAwsquery_deserializeDocumentStackSummaries(v *[]*types.StackSummary, dec } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.StackSummary + var col types.StackSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentStackSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13568,23 +13594,25 @@ func awsAwsquery_deserializeDocumentStackSummaries(v *[]*types.StackSummary, dec return nil } -func awsAwsquery_deserializeDocumentStackSummariesUnwrapped(v *[]*types.StackSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.StackSummary +func awsAwsquery_deserializeDocumentStackSummariesUnwrapped(v *[]types.StackSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.StackSummary if *v == nil { - sv = make([]*types.StackSummary, 0) + sv = make([]types.StackSummary, 0) } else { sv = *v } switch { default: - var mv *types.StackSummary + var mv types.StackSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStackSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentStackSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13626,7 +13654,7 @@ func awsAwsquery_deserializeDocumentStackSummary(v **types.StackSummary, decoder if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case strings.EqualFold("DeletionTime", t.Name.Local): @@ -13643,7 +13671,7 @@ func awsAwsquery_deserializeDocumentStackSummary(v **types.StackSummary, decoder if err != nil { return err } - sv.DeletionTime = &t + sv.DeletionTime = ptr.Time(t) } case strings.EqualFold("DriftInformation", t.Name.Local): @@ -13666,7 +13694,7 @@ func awsAwsquery_deserializeDocumentStackSummary(v **types.StackSummary, decoder if err != nil { return err } - sv.LastUpdatedTime = &t + sv.LastUpdatedTime = ptr.Time(t) } case strings.EqualFold("ParentId", t.Name.Local): @@ -13682,7 +13710,7 @@ func awsAwsquery_deserializeDocumentStackSummary(v **types.StackSummary, decoder } if val != nil { xtv := string(val) - sv.ParentId = &xtv + sv.ParentId = ptr.String(xtv) } case strings.EqualFold("RootId", t.Name.Local): @@ -13698,7 +13726,7 @@ func awsAwsquery_deserializeDocumentStackSummary(v **types.StackSummary, decoder } if val != nil { xtv := string(val) - sv.RootId = &xtv + sv.RootId = ptr.String(xtv) } case strings.EqualFold("StackId", t.Name.Local): @@ -13714,7 +13742,7 @@ func awsAwsquery_deserializeDocumentStackSummary(v **types.StackSummary, decoder } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } case strings.EqualFold("StackName", t.Name.Local): @@ -13730,7 +13758,7 @@ func awsAwsquery_deserializeDocumentStackSummary(v **types.StackSummary, decoder } if val != nil { xtv := string(val) - sv.StackName = &xtv + sv.StackName = ptr.String(xtv) } case strings.EqualFold("StackStatus", t.Name.Local): @@ -13759,7 +13787,7 @@ func awsAwsquery_deserializeDocumentStackSummary(v **types.StackSummary, decoder } if val != nil { xtv := string(val) - sv.StackStatusReason = &xtv + sv.StackStatusReason = ptr.String(xtv) } case strings.EqualFold("TemplateDescription", t.Name.Local): @@ -13775,7 +13803,7 @@ func awsAwsquery_deserializeDocumentStackSummary(v **types.StackSummary, decoder } if val != nil { xtv := string(val) - sv.TemplateDescription = &xtv + sv.TemplateDescription = ptr.String(xtv) } default: @@ -13899,7 +13927,7 @@ func awsAwsquery_deserializeDocumentStaleRequestException(v **types.StaleRequest } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13947,7 +13975,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -13963,7 +13991,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -13976,13 +14004,13 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec return nil } -func awsAwsquery_deserializeDocumentTags(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTags(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -13998,11 +14026,13 @@ func awsAwsquery_deserializeDocumentTags(v *[]*types.Tag, decoder smithyxml.Node } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14015,23 +14045,25 @@ func awsAwsquery_deserializeDocumentTags(v *[]*types.Tag, decoder smithyxml.Node return nil } -func awsAwsquery_deserializeDocumentTagsUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsAwsquery_deserializeDocumentTagsUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -14072,7 +14104,7 @@ func awsAwsquery_deserializeDocumentTemplateParameter(v **types.TemplateParamete } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -14088,7 +14120,7 @@ func awsAwsquery_deserializeDocumentTemplateParameter(v **types.TemplateParamete } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("NoEcho", t.Name.Local): @@ -14104,7 +14136,7 @@ func awsAwsquery_deserializeDocumentTemplateParameter(v **types.TemplateParamete if err != nil { return fmt.Errorf("expected NoEcho to be of type *bool, got %T instead", val) } - sv.NoEcho = &xtv + sv.NoEcho = ptr.Bool(xtv) } case strings.EqualFold("ParameterKey", t.Name.Local): @@ -14120,7 +14152,7 @@ func awsAwsquery_deserializeDocumentTemplateParameter(v **types.TemplateParamete } if val != nil { xtv := string(val) - sv.ParameterKey = &xtv + sv.ParameterKey = ptr.String(xtv) } default: @@ -14133,13 +14165,13 @@ func awsAwsquery_deserializeDocumentTemplateParameter(v **types.TemplateParamete return nil } -func awsAwsquery_deserializeDocumentTemplateParameters(v *[]*types.TemplateParameter, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTemplateParameters(v *[]types.TemplateParameter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TemplateParameter + var sv []types.TemplateParameter if *v == nil { - sv = make([]*types.TemplateParameter, 0) + sv = make([]types.TemplateParameter, 0) } else { sv = *v } @@ -14155,11 +14187,13 @@ func awsAwsquery_deserializeDocumentTemplateParameters(v *[]*types.TemplateParam } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.TemplateParameter + var col types.TemplateParameter nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTemplateParameter(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTemplateParameter(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14172,23 +14206,25 @@ func awsAwsquery_deserializeDocumentTemplateParameters(v *[]*types.TemplateParam return nil } -func awsAwsquery_deserializeDocumentTemplateParametersUnwrapped(v *[]*types.TemplateParameter, decoder smithyxml.NodeDecoder) error { - var sv []*types.TemplateParameter +func awsAwsquery_deserializeDocumentTemplateParametersUnwrapped(v *[]types.TemplateParameter, decoder smithyxml.NodeDecoder) error { + var sv []types.TemplateParameter if *v == nil { - sv = make([]*types.TemplateParameter, 0) + sv = make([]types.TemplateParameter, 0) } else { sv = *v } switch { default: - var mv *types.TemplateParameter + var mv types.TemplateParameter t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTemplateParameter(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTemplateParameter(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -14229,7 +14265,7 @@ func awsAwsquery_deserializeDocumentTokenAlreadyExistsException(v **types.TokenA } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14242,13 +14278,13 @@ func awsAwsquery_deserializeDocumentTokenAlreadyExistsException(v **types.TokenA return nil } -func awsAwsquery_deserializeDocumentTransformsList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTransformsList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -14266,20 +14302,17 @@ func awsAwsquery_deserializeDocumentTransformsList(v *[]*string, decoder smithyx decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -14292,17 +14325,17 @@ func awsAwsquery_deserializeDocumentTransformsList(v *[]*string, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentTransformsListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentTransformsListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -14310,14 +14343,11 @@ func awsAwsquery_deserializeDocumentTransformsListUnwrapped(v *[]*string, decode return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -14359,7 +14389,7 @@ func awsAwsquery_deserializeDocumentTypeNotFoundException(v **types.TypeNotFound } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14372,13 +14402,13 @@ func awsAwsquery_deserializeDocumentTypeNotFoundException(v **types.TypeNotFound return nil } -func awsAwsquery_deserializeDocumentTypeSummaries(v *[]*types.TypeSummary, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTypeSummaries(v *[]types.TypeSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TypeSummary + var sv []types.TypeSummary if *v == nil { - sv = make([]*types.TypeSummary, 0) + sv = make([]types.TypeSummary, 0) } else { sv = *v } @@ -14394,11 +14424,13 @@ func awsAwsquery_deserializeDocumentTypeSummaries(v *[]*types.TypeSummary, decod } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.TypeSummary + var col types.TypeSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTypeSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTypeSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14411,23 +14443,25 @@ func awsAwsquery_deserializeDocumentTypeSummaries(v *[]*types.TypeSummary, decod return nil } -func awsAwsquery_deserializeDocumentTypeSummariesUnwrapped(v *[]*types.TypeSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.TypeSummary +func awsAwsquery_deserializeDocumentTypeSummariesUnwrapped(v *[]types.TypeSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.TypeSummary if *v == nil { - sv = make([]*types.TypeSummary, 0) + sv = make([]types.TypeSummary, 0) } else { sv = *v } switch { default: - var mv *types.TypeSummary + var mv types.TypeSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTypeSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTypeSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -14468,7 +14502,7 @@ func awsAwsquery_deserializeDocumentTypeSummary(v **types.TypeSummary, decoder s } if val != nil { xtv := string(val) - sv.DefaultVersionId = &xtv + sv.DefaultVersionId = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -14484,7 +14518,7 @@ func awsAwsquery_deserializeDocumentTypeSummary(v **types.TypeSummary, decoder s } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("LastUpdated", t.Name.Local): @@ -14501,7 +14535,7 @@ func awsAwsquery_deserializeDocumentTypeSummary(v **types.TypeSummary, decoder s if err != nil { return err } - sv.LastUpdated = &t + sv.LastUpdated = ptr.Time(t) } case strings.EqualFold("Type", t.Name.Local): @@ -14530,7 +14564,7 @@ func awsAwsquery_deserializeDocumentTypeSummary(v **types.TypeSummary, decoder s } if val != nil { xtv := string(val) - sv.TypeArn = &xtv + sv.TypeArn = ptr.String(xtv) } case strings.EqualFold("TypeName", t.Name.Local): @@ -14546,7 +14580,7 @@ func awsAwsquery_deserializeDocumentTypeSummary(v **types.TypeSummary, decoder s } if val != nil { xtv := string(val) - sv.TypeName = &xtv + sv.TypeName = ptr.String(xtv) } default: @@ -14559,13 +14593,13 @@ func awsAwsquery_deserializeDocumentTypeSummary(v **types.TypeSummary, decoder s return nil } -func awsAwsquery_deserializeDocumentTypeVersionSummaries(v *[]*types.TypeVersionSummary, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTypeVersionSummaries(v *[]types.TypeVersionSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TypeVersionSummary + var sv []types.TypeVersionSummary if *v == nil { - sv = make([]*types.TypeVersionSummary, 0) + sv = make([]types.TypeVersionSummary, 0) } else { sv = *v } @@ -14581,11 +14615,13 @@ func awsAwsquery_deserializeDocumentTypeVersionSummaries(v *[]*types.TypeVersion } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.TypeVersionSummary + var col types.TypeVersionSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTypeVersionSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTypeVersionSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14598,23 +14634,25 @@ func awsAwsquery_deserializeDocumentTypeVersionSummaries(v *[]*types.TypeVersion return nil } -func awsAwsquery_deserializeDocumentTypeVersionSummariesUnwrapped(v *[]*types.TypeVersionSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.TypeVersionSummary +func awsAwsquery_deserializeDocumentTypeVersionSummariesUnwrapped(v *[]types.TypeVersionSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.TypeVersionSummary if *v == nil { - sv = make([]*types.TypeVersionSummary, 0) + sv = make([]types.TypeVersionSummary, 0) } else { sv = *v } switch { default: - var mv *types.TypeVersionSummary + var mv types.TypeVersionSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTypeVersionSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTypeVersionSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -14655,7 +14693,7 @@ func awsAwsquery_deserializeDocumentTypeVersionSummary(v **types.TypeVersionSumm } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -14671,7 +14709,7 @@ func awsAwsquery_deserializeDocumentTypeVersionSummary(v **types.TypeVersionSumm } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("IsDefaultVersion", t.Name.Local): @@ -14687,7 +14725,7 @@ func awsAwsquery_deserializeDocumentTypeVersionSummary(v **types.TypeVersionSumm if err != nil { return fmt.Errorf("expected IsDefaultVersion to be of type *bool, got %T instead", val) } - sv.IsDefaultVersion = &xtv + sv.IsDefaultVersion = ptr.Bool(xtv) } case strings.EqualFold("TimeCreated", t.Name.Local): @@ -14704,7 +14742,7 @@ func awsAwsquery_deserializeDocumentTypeVersionSummary(v **types.TypeVersionSumm if err != nil { return err } - sv.TimeCreated = &t + sv.TimeCreated = ptr.Time(t) } case strings.EqualFold("Type", t.Name.Local): @@ -14733,7 +14771,7 @@ func awsAwsquery_deserializeDocumentTypeVersionSummary(v **types.TypeVersionSumm } if val != nil { xtv := string(val) - sv.TypeName = &xtv + sv.TypeName = ptr.String(xtv) } case strings.EqualFold("VersionId", t.Name.Local): @@ -14749,7 +14787,7 @@ func awsAwsquery_deserializeDocumentTypeVersionSummary(v **types.TypeVersionSumm } if val != nil { xtv := string(val) - sv.VersionId = &xtv + sv.VersionId = ptr.String(xtv) } default: @@ -14861,7 +14899,7 @@ func awsAwsquery_deserializeOpDocumentCreateChangeSetOutput(v **CreateChangeSetO } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("StackId", t.Name.Local): @@ -14877,7 +14915,7 @@ func awsAwsquery_deserializeOpDocumentCreateChangeSetOutput(v **CreateChangeSetO } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } default: @@ -14925,7 +14963,7 @@ func awsAwsquery_deserializeOpDocumentCreateStackInstancesOutput(v **CreateStack } if val != nil { xtv := string(val) - sv.OperationId = &xtv + sv.OperationId = ptr.String(xtv) } default: @@ -14973,7 +15011,7 @@ func awsAwsquery_deserializeOpDocumentCreateStackOutput(v **CreateStackOutput, d } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } default: @@ -15021,7 +15059,7 @@ func awsAwsquery_deserializeOpDocumentCreateStackSetOutput(v **CreateStackSetOut } if val != nil { xtv := string(val) - sv.StackSetId = &xtv + sv.StackSetId = ptr.String(xtv) } default: @@ -15101,7 +15139,7 @@ func awsAwsquery_deserializeOpDocumentDeleteStackInstancesOutput(v **DeleteStack } if val != nil { xtv := string(val) - sv.OperationId = &xtv + sv.OperationId = ptr.String(xtv) } default: @@ -15251,7 +15289,7 @@ func awsAwsquery_deserializeOpDocumentDescribeAccountLimitsOutput(v **DescribeAc } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -15311,7 +15349,7 @@ func awsAwsquery_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChange } if val != nil { xtv := string(val) - sv.ChangeSetId = &xtv + sv.ChangeSetId = ptr.String(xtv) } case strings.EqualFold("ChangeSetName", t.Name.Local): @@ -15327,7 +15365,7 @@ func awsAwsquery_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChange } if val != nil { xtv := string(val) - sv.ChangeSetName = &xtv + sv.ChangeSetName = ptr.String(xtv) } case strings.EqualFold("CreationTime", t.Name.Local): @@ -15344,7 +15382,7 @@ func awsAwsquery_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChange if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -15360,7 +15398,7 @@ func awsAwsquery_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChange } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("ExecutionStatus", t.Name.Local): @@ -15389,7 +15427,7 @@ func awsAwsquery_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChange } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("NotificationARNs", t.Name.Local): @@ -15423,7 +15461,7 @@ func awsAwsquery_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChange } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } case strings.EqualFold("StackName", t.Name.Local): @@ -15439,7 +15477,7 @@ func awsAwsquery_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChange } if val != nil { xtv := string(val) - sv.StackName = &xtv + sv.StackName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -15468,7 +15506,7 @@ func awsAwsquery_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChange } if val != nil { xtv := string(val) - sv.StatusReason = &xtv + sv.StatusReason = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -15535,7 +15573,7 @@ func awsAwsquery_deserializeOpDocumentDescribeStackDriftDetectionStatusOutput(v } if val != nil { xtv := string(val) - sv.DetectionStatusReason = &xtv + sv.DetectionStatusReason = ptr.String(xtv) } case strings.EqualFold("DriftedStackResourceCount", t.Name.Local): @@ -15568,7 +15606,7 @@ func awsAwsquery_deserializeOpDocumentDescribeStackDriftDetectionStatusOutput(v } if val != nil { xtv := string(val) - sv.StackDriftDetectionId = &xtv + sv.StackDriftDetectionId = ptr.String(xtv) } case strings.EqualFold("StackDriftStatus", t.Name.Local): @@ -15597,7 +15635,7 @@ func awsAwsquery_deserializeOpDocumentDescribeStackDriftDetectionStatusOutput(v } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } case strings.EqualFold("Timestamp", t.Name.Local): @@ -15614,7 +15652,7 @@ func awsAwsquery_deserializeOpDocumentDescribeStackDriftDetectionStatusOutput(v if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -15662,7 +15700,7 @@ func awsAwsquery_deserializeOpDocumentDescribeStackEventsOutput(v **DescribeStac } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("StackEvents", t.Name.Local): @@ -15754,7 +15792,7 @@ func awsAwsquery_deserializeOpDocumentDescribeStackResourceDriftsOutput(v **Desc } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("StackResourceDrifts", t.Name.Local): @@ -15960,7 +15998,7 @@ func awsAwsquery_deserializeOpDocumentDescribeStacksOutput(v **DescribeStacksOut } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("Stacks", t.Name.Local): @@ -16014,7 +16052,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeOutput(v **DescribeTypeOutput, } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("DefaultVersionId", t.Name.Local): @@ -16030,7 +16068,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeOutput(v **DescribeTypeOutput, } if val != nil { xtv := string(val) - sv.DefaultVersionId = &xtv + sv.DefaultVersionId = ptr.String(xtv) } case strings.EqualFold("DeprecatedStatus", t.Name.Local): @@ -16059,7 +16097,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeOutput(v **DescribeTypeOutput, } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("DocumentationUrl", t.Name.Local): @@ -16075,7 +16113,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeOutput(v **DescribeTypeOutput, } if val != nil { xtv := string(val) - sv.DocumentationUrl = &xtv + sv.DocumentationUrl = ptr.String(xtv) } case strings.EqualFold("ExecutionRoleArn", t.Name.Local): @@ -16091,7 +16129,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeOutput(v **DescribeTypeOutput, } if val != nil { xtv := string(val) - sv.ExecutionRoleArn = &xtv + sv.ExecutionRoleArn = ptr.String(xtv) } case strings.EqualFold("IsDefaultVersion", t.Name.Local): @@ -16107,7 +16145,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeOutput(v **DescribeTypeOutput, if err != nil { return fmt.Errorf("expected IsDefaultVersion to be of type *bool, got %T instead", val) } - sv.IsDefaultVersion = &xtv + sv.IsDefaultVersion = ptr.Bool(xtv) } case strings.EqualFold("LastUpdated", t.Name.Local): @@ -16124,7 +16162,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeOutput(v **DescribeTypeOutput, if err != nil { return err } - sv.LastUpdated = &t + sv.LastUpdated = ptr.Time(t) } case strings.EqualFold("LoggingConfig", t.Name.Local): @@ -16159,7 +16197,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeOutput(v **DescribeTypeOutput, } if val != nil { xtv := string(val) - sv.Schema = &xtv + sv.Schema = ptr.String(xtv) } case strings.EqualFold("SourceUrl", t.Name.Local): @@ -16175,7 +16213,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeOutput(v **DescribeTypeOutput, } if val != nil { xtv := string(val) - sv.SourceUrl = &xtv + sv.SourceUrl = ptr.String(xtv) } case strings.EqualFold("TimeCreated", t.Name.Local): @@ -16192,7 +16230,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeOutput(v **DescribeTypeOutput, if err != nil { return err } - sv.TimeCreated = &t + sv.TimeCreated = ptr.Time(t) } case strings.EqualFold("Type", t.Name.Local): @@ -16221,7 +16259,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeOutput(v **DescribeTypeOutput, } if val != nil { xtv := string(val) - sv.TypeName = &xtv + sv.TypeName = ptr.String(xtv) } case strings.EqualFold("Visibility", t.Name.Local): @@ -16282,7 +16320,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeRegistrationOutput(v **Describ } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("ProgressStatus", t.Name.Local): @@ -16311,7 +16349,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeRegistrationOutput(v **Describ } if val != nil { xtv := string(val) - sv.TypeArn = &xtv + sv.TypeArn = ptr.String(xtv) } case strings.EqualFold("TypeVersionArn", t.Name.Local): @@ -16327,7 +16365,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTypeRegistrationOutput(v **Describ } if val != nil { xtv := string(val) - sv.TypeVersionArn = &xtv + sv.TypeVersionArn = ptr.String(xtv) } default: @@ -16375,7 +16413,7 @@ func awsAwsquery_deserializeOpDocumentDetectStackDriftOutput(v **DetectStackDrif } if val != nil { xtv := string(val) - sv.StackDriftDetectionId = &xtv + sv.StackDriftDetectionId = ptr.String(xtv) } default: @@ -16461,7 +16499,7 @@ func awsAwsquery_deserializeOpDocumentDetectStackSetDriftOutput(v **DetectStackS } if val != nil { xtv := string(val) - sv.OperationId = &xtv + sv.OperationId = ptr.String(xtv) } default: @@ -16509,7 +16547,7 @@ func awsAwsquery_deserializeOpDocumentEstimateTemplateCostOutput(v **EstimateTem } if val != nil { xtv := string(val) - sv.Url = &xtv + sv.Url = ptr.String(xtv) } default: @@ -16589,7 +16627,7 @@ func awsAwsquery_deserializeOpDocumentGetStackPolicyOutput(v **GetStackPolicyOut } if val != nil { xtv := string(val) - sv.StackPolicyBody = &xtv + sv.StackPolicyBody = ptr.String(xtv) } default: @@ -16643,7 +16681,7 @@ func awsAwsquery_deserializeOpDocumentGetTemplateOutput(v **GetTemplateOutput, d } if val != nil { xtv := string(val) - sv.TemplateBody = &xtv + sv.TemplateBody = ptr.String(xtv) } default: @@ -16697,7 +16735,7 @@ func awsAwsquery_deserializeOpDocumentGetTemplateSummaryOutput(v **GetTemplateSu } if val != nil { xtv := string(val) - sv.CapabilitiesReason = &xtv + sv.CapabilitiesReason = ptr.String(xtv) } case strings.EqualFold("DeclaredTransforms", t.Name.Local): @@ -16719,7 +16757,7 @@ func awsAwsquery_deserializeOpDocumentGetTemplateSummaryOutput(v **GetTemplateSu } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("Metadata", t.Name.Local): @@ -16735,7 +16773,7 @@ func awsAwsquery_deserializeOpDocumentGetTemplateSummaryOutput(v **GetTemplateSu } if val != nil { xtv := string(val) - sv.Metadata = &xtv + sv.Metadata = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): @@ -16769,7 +16807,7 @@ func awsAwsquery_deserializeOpDocumentGetTemplateSummaryOutput(v **GetTemplateSu } if val != nil { xtv := string(val) - sv.Version = &xtv + sv.Version = ptr.String(xtv) } default: @@ -16817,7 +16855,7 @@ func awsAwsquery_deserializeOpDocumentListChangeSetsOutput(v **ListChangeSetsOut } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("Summaries", t.Name.Local): @@ -16877,7 +16915,7 @@ func awsAwsquery_deserializeOpDocumentListExportsOutput(v **ListExportsOutput, d } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -16931,7 +16969,7 @@ func awsAwsquery_deserializeOpDocumentListImportsOutput(v **ListImportsOutput, d } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -16979,7 +17017,7 @@ func awsAwsquery_deserializeOpDocumentListStackInstancesOutput(v **ListStackInst } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("Summaries", t.Name.Local): @@ -17033,7 +17071,7 @@ func awsAwsquery_deserializeOpDocumentListStackResourcesOutput(v **ListStackReso } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("StackResourceSummaries", t.Name.Local): @@ -17087,7 +17125,7 @@ func awsAwsquery_deserializeOpDocumentListStackSetOperationResultsOutput(v **Lis } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("Summaries", t.Name.Local): @@ -17141,7 +17179,7 @@ func awsAwsquery_deserializeOpDocumentListStackSetOperationsOutput(v **ListStack } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("Summaries", t.Name.Local): @@ -17195,7 +17233,7 @@ func awsAwsquery_deserializeOpDocumentListStackSetsOutput(v **ListStackSetsOutpu } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("Summaries", t.Name.Local): @@ -17249,7 +17287,7 @@ func awsAwsquery_deserializeOpDocumentListStacksOutput(v **ListStacksOutput, dec } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("StackSummaries", t.Name.Local): @@ -17303,7 +17341,7 @@ func awsAwsquery_deserializeOpDocumentListTypeRegistrationsOutput(v **ListTypeRe } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("RegistrationTokenList", t.Name.Local): @@ -17357,7 +17395,7 @@ func awsAwsquery_deserializeOpDocumentListTypesOutput(v **ListTypesOutput, decod } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("TypeSummaries", t.Name.Local): @@ -17411,7 +17449,7 @@ func awsAwsquery_deserializeOpDocumentListTypeVersionsOutput(v **ListTypeVersion } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("TypeVersionSummaries", t.Name.Local): @@ -17497,7 +17535,7 @@ func awsAwsquery_deserializeOpDocumentRegisterTypeOutput(v **RegisterTypeOutput, } if val != nil { xtv := string(val) - sv.RegistrationToken = &xtv + sv.RegistrationToken = ptr.String(xtv) } default: @@ -17673,7 +17711,7 @@ func awsAwsquery_deserializeOpDocumentUpdateStackInstancesOutput(v **UpdateStack } if val != nil { xtv := string(val) - sv.OperationId = &xtv + sv.OperationId = ptr.String(xtv) } default: @@ -17721,7 +17759,7 @@ func awsAwsquery_deserializeOpDocumentUpdateStackOutput(v **UpdateStackOutput, d } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } default: @@ -17769,7 +17807,7 @@ func awsAwsquery_deserializeOpDocumentUpdateStackSetOutput(v **UpdateStackSetOut } if val != nil { xtv := string(val) - sv.OperationId = &xtv + sv.OperationId = ptr.String(xtv) } default: @@ -17817,7 +17855,7 @@ func awsAwsquery_deserializeOpDocumentUpdateTerminationProtectionOutput(v **Upda } if val != nil { xtv := string(val) - sv.StackId = &xtv + sv.StackId = ptr.String(xtv) } default: @@ -17871,7 +17909,7 @@ func awsAwsquery_deserializeOpDocumentValidateTemplateOutput(v **ValidateTemplat } if val != nil { xtv := string(val) - sv.CapabilitiesReason = &xtv + sv.CapabilitiesReason = ptr.String(xtv) } case strings.EqualFold("DeclaredTransforms", t.Name.Local): @@ -17893,7 +17931,7 @@ func awsAwsquery_deserializeOpDocumentValidateTemplateOutput(v **ValidateTemplat } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): diff --git a/service/cloudformation/go.mod b/service/cloudformation/go.mod index 212a78c4d4a..6d7ca81ca02 100644 --- a/service/cloudformation/go.mod +++ b/service/cloudformation/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cloudformation go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cloudformation/serializers.go b/service/cloudformation/serializers.go index dff2756e70c..8f5c7670b57 100644 --- a/service/cloudformation/serializers.go +++ b/service/cloudformation/serializers.go @@ -3039,18 +3039,15 @@ func (m *awsAwsquery_serializeOpValidateTemplate) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentAccountList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAccountList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3123,50 +3120,41 @@ func awsAwsquery_serializeDocumentLoggingConfig(v *types.LoggingConfig, value qu return nil } -func awsAwsquery_serializeDocumentLogicalResourceIds(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentLogicalResourceIds(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentNotificationARNs(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentNotificationARNs(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentOrganizationalUnitIdList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentOrganizationalUnitIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3198,41 +3186,35 @@ func awsAwsquery_serializeDocumentParameter(v *types.Parameter, value query.Valu return nil } -func awsAwsquery_serializeDocumentParameters(v []*types.Parameter, value query.Value) error { +func awsAwsquery_serializeDocumentParameters(v []types.Parameter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentParameter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentParameter(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentRegionList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentRegionList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentResourceIdentifierProperties(v map[string]*string, value query.Value) error { +func awsAwsquery_serializeDocumentResourceIdentifierProperties(v map[string]string, value query.Value) error { if len(v) == 0 { return nil } @@ -3245,45 +3227,36 @@ func awsAwsquery_serializeDocumentResourceIdentifierProperties(v map[string]*str sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsquery_serializeDocumentResourcesToImport(v []*types.ResourceToImport, value query.Value) error { +func awsAwsquery_serializeDocumentResourcesToImport(v []types.ResourceToImport, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentResourceToImport(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentResourceToImport(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentResourcesToSkip(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentResourcesToSkip(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3312,34 +3285,28 @@ func awsAwsquery_serializeDocumentResourceToImport(v *types.ResourceToImport, va return nil } -func awsAwsquery_serializeDocumentResourceTypes(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentResourceTypes(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentRetainResources(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentRetainResources(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3380,18 +3347,15 @@ func awsAwsquery_serializeDocumentRollbackTrigger(v *types.RollbackTrigger, valu return nil } -func awsAwsquery_serializeDocumentRollbackTriggers(v []*types.RollbackTrigger, value query.Value) error { +func awsAwsquery_serializeDocumentRollbackTriggers(v []types.RollbackTrigger, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentRollbackTrigger(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentRollbackTrigger(&v[i], av); err != nil { return err } } @@ -3415,18 +3379,15 @@ func awsAwsquery_serializeDocumentStackInstanceFilter(v *types.StackInstanceFilt return nil } -func awsAwsquery_serializeDocumentStackInstanceFilters(v []*types.StackInstanceFilter, value query.Value) error { +func awsAwsquery_serializeDocumentStackInstanceFilters(v []types.StackInstanceFilter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentStackInstanceFilter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentStackInstanceFilter(&v[i], av); err != nil { return err } } @@ -3510,18 +3471,15 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTags(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTags(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -3989,9 +3947,9 @@ func awsAwsquery_serializeOpDocumentDeleteStackInstancesInput(v *DeleteStackInst } } - if v.RetainStacks != nil { + if v.RetainStacks { objectKey := object.Key("RetainStacks") - objectKey.Boolean(*v.RetainStacks) + objectKey.Boolean(v.RetainStacks) } if v.StackSetName != nil { diff --git a/service/cloudformation/types/types.go b/service/cloudformation/types/types.go index 49a1abd50d8..a8c6f7b2dec 100644 --- a/service/cloudformation/types/types.go +++ b/service/cloudformation/types/types.go @@ -157,11 +157,11 @@ type DeploymentTargets struct { // The names of one or more AWS accounts for which you want to deploy stack set // updates. - Accounts []*string + Accounts []string // The organization root ID or organizational unit (OU) IDs to which StackSets // deploys. - OrganizationalUnitIds []*string + OrganizationalUnitIds []string } // The Export structure describes the exported output values for a stack. @@ -241,7 +241,7 @@ type Parameter struct { type ParameterConstraints struct { // A list of values that are permitted for a parameter. - AllowedValues []*string + AllowedValues []string } // The ParameterDeclaration data type. @@ -335,7 +335,7 @@ type ResourceChange struct { // For the Modify action, a list of ResourceChangeDetail structures that describes // the changes that AWS CloudFormation will make to the resource. - Details []*ResourceChangeDetail + Details []ResourceChangeDetail // The resource's logical ID, which is defined in the stack's template. LogicalResourceId *string @@ -429,12 +429,12 @@ type ResourceIdentifierSummary struct { // The logical IDs of the target resources of the specified ResourceType, as // defined in the import template. - LogicalResourceIds []*string + LogicalResourceIds []string // The resource properties you can provide during the import to identify your // target resources. For example, BucketName is a possible identifier property for // AWS::S3::Bucket resources. - ResourceIdentifiers []*string + ResourceIdentifiers []string // The template resource type of the target resources, such as AWS::S3::Bucket. ResourceType *string @@ -474,7 +474,7 @@ type ResourceToImport struct { // is the actual property value (for example, MyS3Bucket). // // This member is required. - ResourceIdentifier map[string]*string + ResourceIdentifier map[string]string // The type of resource to import into your stack, such as AWS::S3::Bucket. For a // list of supported resource types, see Resources that support import operations @@ -532,7 +532,7 @@ type RollbackConfiguration struct { // If a // specified trigger is missing, the entire stack operation fails and is rolled // back. - RollbackTriggers []*RollbackTrigger + RollbackTriggers []RollbackTrigger } // A rollback trigger AWS CloudFormation monitors during creation and updating of @@ -614,13 +614,13 @@ type Stack struct { LastUpdatedTime *time.Time // SNS topic ARNs to which stack related events are published. - NotificationARNs []*string + NotificationARNs []string // A list of output structures. - Outputs []*Output + Outputs []Output // A list of Parameter structures. - Parameters []*Parameter + Parameters []Parameter // For nested stacks--stacks created as resources for another stack--the stack ID // of the direct parent of this stack. For the first level of nested stacks, the @@ -653,7 +653,7 @@ type Stack struct { StackStatusReason *string // A list of Tags that specify information about the stack. - Tags []*Tag + Tags []Tag // The amount of time within which stack creation should complete. TimeoutInMinutes *int32 @@ -821,7 +821,7 @@ type StackInstance struct { // A list of parameters from the stack set template whose values have been // overridden in this stack instance. - ParameterOverrides []*Parameter + ParameterOverrides []Parameter // The name of the AWS Region that the stack instance is associated with. Region *string @@ -1159,12 +1159,12 @@ type StackResourceDrift struct { // resource's logical and physical IDs are not enough to uniquely identify that // resource. Each context key-value pair specifies a unique resource that contains // the targeted resource. - PhysicalResourceIdContext []*PhysicalResourceIdContextKeyValuePair + PhysicalResourceIdContext []PhysicalResourceIdContextKeyValuePair // A collection of the resource properties whose actual values differ from their // expected values. These will be present only for resources whose // StackResourceDriftStatus is MODIFIED. - PropertyDifferences []*PropertyDifference + PropertyDifferences []PropertyDifference } // Contains information about whether the resource's actual configuration differs, @@ -1313,10 +1313,10 @@ type StackSet struct { // [Service-managed permissions] The organization root ID or organizational unit // (OU) IDs that you specified for DeploymentTargets // (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html). - OrganizationalUnitIds []*string + OrganizationalUnitIds []string // A list of input parameters for a stack set. - Parameters []*Parameter + Parameters []Parameter // Describes how the IAM roles required for stack set operations are created. // @@ -1353,7 +1353,7 @@ type StackSet struct { // A list of tags that specify information about the stack set. A maximum number of // 50 tags can be specified. - Tags []*Tag + Tags []Tag // The structure that contains the body of the template that was used to create or // update the stack set. @@ -1411,17 +1411,17 @@ type StackSetDriftDetectionDetails struct { // parameter configuration of the stack set. A stack instance is considered to have // drifted if one or more of the resources in the associated stack do not match // their expected configuration. - DriftedStackInstancesCount *int32 + DriftedStackInstancesCount int32 // The number of stack instances for which the drift detection operation failed. - FailedStackInstancesCount *int32 + FailedStackInstancesCount int32 // The number of stack instances that are currently being checked for drift. - InProgressStackInstancesCount *int32 + InProgressStackInstancesCount int32 // The number of stack instances which match the expected template and parameter // configuration of the stack set. - InSyncStackInstancesCount *int32 + InSyncStackInstancesCount int32 // Most recent time when CloudFormation performed a drift detection operation on // the stack set. This value will be NULL for any stack set on which drift @@ -1441,7 +1441,7 @@ type StackSetDriftDetectionDetails struct { // has failed. // // * Stack instances currently being checked for drift. - TotalStackInstancesCount *int32 + TotalStackInstancesCount int32 } // The structure that contains information about a stack set operation. @@ -1580,7 +1580,7 @@ type StackSetOperationPreferences struct { MaxConcurrentPercentage *int32 // The order of the Regions in where you want to perform the stack operation. - RegionOrder []*string + RegionOrder []string } // The structure that contains information about a specified operation's results diff --git a/service/cloudformation/validators.go b/service/cloudformation/validators.go index d26686fe049..a76fa44a9d8 100644 --- a/service/cloudformation/validators.go +++ b/service/cloudformation/validators.go @@ -940,13 +940,13 @@ func validateLoggingConfig(v *types.LoggingConfig) error { } } -func validateResourcesToImport(v []*types.ResourceToImport) error { +func validateResourcesToImport(v []types.ResourceToImport) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourcesToImport"} for i := range v { - if err := validateResourceToImport(v[i]); err != nil { + if err := validateResourceToImport(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1013,13 +1013,13 @@ func validateRollbackTrigger(v *types.RollbackTrigger) error { } } -func validateRollbackTriggers(v []*types.RollbackTrigger) error { +func validateRollbackTriggers(v []types.RollbackTrigger) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RollbackTriggers"} for i := range v { - if err := validateRollbackTrigger(v[i]); err != nil { + if err := validateRollbackTrigger(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1048,13 +1048,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1226,9 +1226,6 @@ func validateOpDeleteStackInstancesInput(v *DeleteStackInstancesInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteStackInstancesInput"} - if v.RetainStacks == nil { - invalidParams.Add(smithy.NewErrParamRequired("RetainStacks")) - } if v.Regions == nil { invalidParams.Add(smithy.NewErrParamRequired("Regions")) } diff --git a/service/cloudfront/api_op_CreateRealtimeLogConfig.go b/service/cloudfront/api_op_CreateRealtimeLogConfig.go index 90d78094389..30832c452c8 100644 --- a/service/cloudfront/api_op_CreateRealtimeLogConfig.go +++ b/service/cloudfront/api_op_CreateRealtimeLogConfig.go @@ -38,7 +38,7 @@ type CreateRealtimeLogConfigInput struct { // real-time log data. // // This member is required. - EndPoints []*types.EndPoint + EndPoints []types.EndPoint // A list of fields to include in each real-time log record. For more information // about fields, see Real-time log configuration fields @@ -46,7 +46,7 @@ type CreateRealtimeLogConfigInput struct { // in the Amazon CloudFront Developer Guide. // // This member is required. - Fields []*string + Fields []string // A unique name to identify this real-time log configuration. // diff --git a/service/cloudfront/api_op_UpdateRealtimeLogConfig.go b/service/cloudfront/api_op_UpdateRealtimeLogConfig.go index 10a5117f32e..322041bb97f 100644 --- a/service/cloudfront/api_op_UpdateRealtimeLogConfig.go +++ b/service/cloudfront/api_op_UpdateRealtimeLogConfig.go @@ -50,13 +50,13 @@ type UpdateRealtimeLogConfigInput struct { // Contains information about the Amazon Kinesis data stream where you are sending // real-time log data. - EndPoints []*types.EndPoint + EndPoints []types.EndPoint // A list of fields to include in each real-time log record. For more information // about fields, see Real-time log configuration fields // (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields) // in the Amazon CloudFront Developer Guide. - Fields []*string + Fields []string // The name for this real-time log configuration. Name *string diff --git a/service/cloudfront/deserializers.go b/service/cloudfront/deserializers.go index d1a8ed569b9..0f25399823b 100644 --- a/service/cloudfront/deserializers.go +++ b/service/cloudfront/deserializers.go @@ -14668,7 +14668,7 @@ func awsRestxml_deserializeDocumentAccessDenied(v **types.AccessDenied, decoder } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14716,7 +14716,7 @@ func awsRestxml_deserializeDocumentActiveTrustedKeyGroups(v **types.ActiveTruste if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("Items", t.Name.Local): @@ -14787,7 +14787,7 @@ func awsRestxml_deserializeDocumentActiveTrustedSigners(v **types.ActiveTrustedS if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("Items", t.Name.Local): @@ -14913,7 +14913,7 @@ func awsRestxml_deserializeDocumentAliasICPRecordal(v **types.AliasICPRecordal, } if val != nil { xtv := string(val) - sv.CNAME = &xtv + sv.CNAME = ptr.String(xtv) } case strings.EqualFold("ICPRecordalStatus", t.Name.Local): @@ -14939,13 +14939,13 @@ func awsRestxml_deserializeDocumentAliasICPRecordal(v **types.AliasICPRecordal, return nil } -func awsRestxml_deserializeDocumentAliasICPRecordals(v *[]*types.AliasICPRecordal, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentAliasICPRecordals(v *[]types.AliasICPRecordal, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AliasICPRecordal + var sv []types.AliasICPRecordal if *v == nil { - sv = make([]*types.AliasICPRecordal, 0) + sv = make([]types.AliasICPRecordal, 0) } else { sv = *v } @@ -14961,11 +14961,13 @@ func awsRestxml_deserializeDocumentAliasICPRecordals(v *[]*types.AliasICPRecorda } for { if strings.EqualFold("AliasICPRecordal", t.Name.Local) { - var col *types.AliasICPRecordal + var col types.AliasICPRecordal nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentAliasICPRecordal(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentAliasICPRecordal(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14978,35 +14980,37 @@ func awsRestxml_deserializeDocumentAliasICPRecordals(v *[]*types.AliasICPRecorda return nil } -func awsRestxml_deserializeDocumentAliasICPRecordalsUnwrapped(v *[]*types.AliasICPRecordal, decoder smithyxml.NodeDecoder) error { - var sv []*types.AliasICPRecordal +func awsRestxml_deserializeDocumentAliasICPRecordalsUnwrapped(v *[]types.AliasICPRecordal, decoder smithyxml.NodeDecoder) error { + var sv []types.AliasICPRecordal if *v == nil { - sv = make([]*types.AliasICPRecordal, 0) + sv = make([]types.AliasICPRecordal, 0) } else { sv = *v } switch { default: - var mv *types.AliasICPRecordal + var mv types.AliasICPRecordal t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentAliasICPRecordal(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentAliasICPRecordal(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentAliasList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentAliasList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -15024,20 +15028,17 @@ func awsRestxml_deserializeDocumentAliasList(v *[]*string, decoder smithyxml.Nod decoder = memberDecoder for { if strings.EqualFold("CNAME", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -15050,17 +15051,17 @@ func awsRestxml_deserializeDocumentAliasList(v *[]*string, decoder smithyxml.Nod return nil } -func awsRestxml_deserializeDocumentAliasListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentAliasListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -15068,14 +15069,11 @@ func awsRestxml_deserializeDocumentAliasListUnwrapped(v *[]*string, decoder smit return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -15143,13 +15141,13 @@ func awsRestxml_deserializeDocumentAllowedMethods(v **types.AllowedMethods, deco return nil } -func awsRestxml_deserializeDocumentAwsAccountNumberList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentAwsAccountNumberList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -15167,20 +15165,17 @@ func awsRestxml_deserializeDocumentAwsAccountNumberList(v *[]*string, decoder sm decoder = memberDecoder for { if strings.EqualFold("AwsAccountNumber", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -15193,17 +15188,17 @@ func awsRestxml_deserializeDocumentAwsAccountNumberList(v *[]*string, decoder sm return nil } -func awsRestxml_deserializeDocumentAwsAccountNumberListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentAwsAccountNumberListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -15211,14 +15206,11 @@ func awsRestxml_deserializeDocumentAwsAccountNumberListUnwrapped(v *[]*string, d return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -15260,7 +15252,7 @@ func awsRestxml_deserializeDocumentBatchTooLarge(v **types.BatchTooLarge, decode } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15314,7 +15306,7 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode } if val != nil { xtv := string(val) - sv.CachePolicyId = &xtv + sv.CachePolicyId = ptr.String(xtv) } case strings.EqualFold("Compress", t.Name.Local): @@ -15330,7 +15322,7 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Compress = &xtv + sv.Compress = ptr.Bool(xtv) } case strings.EqualFold("DefaultTTL", t.Name.Local): @@ -15347,7 +15339,7 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode if err != nil { return err } - sv.DefaultTTL = &i64 + sv.DefaultTTL = ptr.Int64(i64) } case strings.EqualFold("FieldLevelEncryptionId", t.Name.Local): @@ -15363,7 +15355,7 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode } if val != nil { xtv := string(val) - sv.FieldLevelEncryptionId = &xtv + sv.FieldLevelEncryptionId = ptr.String(xtv) } case strings.EqualFold("ForwardedValues", t.Name.Local): @@ -15392,7 +15384,7 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode if err != nil { return err } - sv.MaxTTL = &i64 + sv.MaxTTL = ptr.Int64(i64) } case strings.EqualFold("MinTTL", t.Name.Local): @@ -15409,7 +15401,7 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode if err != nil { return err } - sv.MinTTL = &i64 + sv.MinTTL = ptr.Int64(i64) } case strings.EqualFold("OriginRequestPolicyId", t.Name.Local): @@ -15425,7 +15417,7 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode } if val != nil { xtv := string(val) - sv.OriginRequestPolicyId = &xtv + sv.OriginRequestPolicyId = ptr.String(xtv) } case strings.EqualFold("PathPattern", t.Name.Local): @@ -15441,7 +15433,7 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode } if val != nil { xtv := string(val) - sv.PathPattern = &xtv + sv.PathPattern = ptr.String(xtv) } case strings.EqualFold("RealtimeLogConfigArn", t.Name.Local): @@ -15457,7 +15449,7 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode } if val != nil { xtv := string(val) - sv.RealtimeLogConfigArn = &xtv + sv.RealtimeLogConfigArn = ptr.String(xtv) } case strings.EqualFold("SmoothStreaming", t.Name.Local): @@ -15473,7 +15465,7 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.SmoothStreaming = &xtv + sv.SmoothStreaming = ptr.Bool(xtv) } case strings.EqualFold("TargetOriginId", t.Name.Local): @@ -15489,7 +15481,7 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode } if val != nil { xtv := string(val) - sv.TargetOriginId = &xtv + sv.TargetOriginId = ptr.String(xtv) } case strings.EqualFold("TrustedKeyGroups", t.Name.Local): @@ -15527,13 +15519,13 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode return nil } -func awsRestxml_deserializeDocumentCacheBehaviorList(v *[]*types.CacheBehavior, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentCacheBehaviorList(v *[]types.CacheBehavior, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CacheBehavior + var sv []types.CacheBehavior if *v == nil { - sv = make([]*types.CacheBehavior, 0) + sv = make([]types.CacheBehavior, 0) } else { sv = *v } @@ -15549,11 +15541,13 @@ func awsRestxml_deserializeDocumentCacheBehaviorList(v *[]*types.CacheBehavior, } for { if strings.EqualFold("CacheBehavior", t.Name.Local) { - var col *types.CacheBehavior + var col types.CacheBehavior nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCacheBehavior(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentCacheBehavior(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15566,23 +15560,25 @@ func awsRestxml_deserializeDocumentCacheBehaviorList(v *[]*types.CacheBehavior, return nil } -func awsRestxml_deserializeDocumentCacheBehaviorListUnwrapped(v *[]*types.CacheBehavior, decoder smithyxml.NodeDecoder) error { - var sv []*types.CacheBehavior +func awsRestxml_deserializeDocumentCacheBehaviorListUnwrapped(v *[]types.CacheBehavior, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheBehavior if *v == nil { - sv = make([]*types.CacheBehavior, 0) + sv = make([]types.CacheBehavior, 0) } else { sv = *v } switch { default: - var mv *types.CacheBehavior + var mv types.CacheBehavior t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCacheBehavior(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentCacheBehavior(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15739,7 +15735,7 @@ func awsRestxml_deserializeDocumentCachePolicy(v **types.CachePolicy, decoder sm } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("LastModifiedTime", t.Name.Local): @@ -15756,7 +15752,7 @@ func awsRestxml_deserializeDocumentCachePolicy(v **types.CachePolicy, decoder sm if err != nil { return err } - sv.LastModifiedTime = &t + sv.LastModifiedTime = ptr.Time(t) } default: @@ -15804,7 +15800,7 @@ func awsRestxml_deserializeDocumentCachePolicyAlreadyExists(v **types.CachePolic } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15852,7 +15848,7 @@ func awsRestxml_deserializeDocumentCachePolicyConfig(v **types.CachePolicyConfig } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("DefaultTTL", t.Name.Local): @@ -15869,7 +15865,7 @@ func awsRestxml_deserializeDocumentCachePolicyConfig(v **types.CachePolicyConfig if err != nil { return err } - sv.DefaultTTL = &i64 + sv.DefaultTTL = ptr.Int64(i64) } case strings.EqualFold("MaxTTL", t.Name.Local): @@ -15886,7 +15882,7 @@ func awsRestxml_deserializeDocumentCachePolicyConfig(v **types.CachePolicyConfig if err != nil { return err } - sv.MaxTTL = &i64 + sv.MaxTTL = ptr.Int64(i64) } case strings.EqualFold("MinTTL", t.Name.Local): @@ -15903,7 +15899,7 @@ func awsRestxml_deserializeDocumentCachePolicyConfig(v **types.CachePolicyConfig if err != nil { return err } - sv.MinTTL = &i64 + sv.MinTTL = ptr.Int64(i64) } case strings.EqualFold("Name", t.Name.Local): @@ -15919,7 +15915,7 @@ func awsRestxml_deserializeDocumentCachePolicyConfig(v **types.CachePolicyConfig } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("ParametersInCacheKeyAndForwardedToOrigin", t.Name.Local): @@ -16075,7 +16071,7 @@ func awsRestxml_deserializeDocumentCachePolicyInUse(v **types.CachePolicyInUse, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16146,7 +16142,7 @@ func awsRestxml_deserializeDocumentCachePolicyList(v **types.CachePolicyList, de } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("Quantity", t.Name.Local): @@ -16278,13 +16274,13 @@ func awsRestxml_deserializeDocumentCachePolicySummary(v **types.CachePolicySumma return nil } -func awsRestxml_deserializeDocumentCachePolicySummaryList(v *[]*types.CachePolicySummary, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentCachePolicySummaryList(v *[]types.CachePolicySummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CachePolicySummary + var sv []types.CachePolicySummary if *v == nil { - sv = make([]*types.CachePolicySummary, 0) + sv = make([]types.CachePolicySummary, 0) } else { sv = *v } @@ -16300,11 +16296,13 @@ func awsRestxml_deserializeDocumentCachePolicySummaryList(v *[]*types.CachePolic } for { if strings.EqualFold("CachePolicySummary", t.Name.Local) { - var col *types.CachePolicySummary + var col types.CachePolicySummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCachePolicySummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentCachePolicySummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16317,23 +16315,25 @@ func awsRestxml_deserializeDocumentCachePolicySummaryList(v *[]*types.CachePolic return nil } -func awsRestxml_deserializeDocumentCachePolicySummaryListUnwrapped(v *[]*types.CachePolicySummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.CachePolicySummary +func awsRestxml_deserializeDocumentCachePolicySummaryListUnwrapped(v *[]types.CachePolicySummary, decoder smithyxml.NodeDecoder) error { + var sv []types.CachePolicySummary if *v == nil { - sv = make([]*types.CachePolicySummary, 0) + sv = make([]types.CachePolicySummary, 0) } else { sv = *v } switch { default: - var mv *types.CachePolicySummary + var mv types.CachePolicySummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCachePolicySummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentCachePolicySummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16374,7 +16374,7 @@ func awsRestxml_deserializeDocumentCannotChangeImmutablePublicKeyFields(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16428,7 +16428,7 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentity(v **types.Clou } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("S3CanonicalUserId", t.Name.Local): @@ -16444,7 +16444,7 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentity(v **types.Clou } if val != nil { xtv := string(val) - sv.S3CanonicalUserId = &xtv + sv.S3CanonicalUserId = ptr.String(xtv) } default: @@ -16492,7 +16492,7 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityAlreadyExists(v } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16540,7 +16540,7 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityConfig(v **type } if val != nil { xtv := string(val) - sv.CallerReference = &xtv + sv.CallerReference = ptr.String(xtv) } case strings.EqualFold("Comment", t.Name.Local): @@ -16556,7 +16556,7 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityConfig(v **type } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } default: @@ -16604,7 +16604,7 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityInUse(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16652,7 +16652,7 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityList(v **types. if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = ptr.Bool(xtv) } case strings.EqualFold("Items", t.Name.Local): @@ -16674,7 +16674,7 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityList(v **types. } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("MaxItems", t.Name.Local): @@ -16707,7 +16707,7 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityList(v **types. } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("Quantity", t.Name.Local): @@ -16772,7 +16772,7 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummary(v **typ } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -16788,7 +16788,7 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummary(v **typ } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("S3CanonicalUserId", t.Name.Local): @@ -16804,7 +16804,7 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummary(v **typ } if val != nil { xtv := string(val) - sv.S3CanonicalUserId = &xtv + sv.S3CanonicalUserId = ptr.String(xtv) } default: @@ -16817,13 +16817,13 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummary(v **typ return nil } -func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummaryList(v *[]*types.CloudFrontOriginAccessIdentitySummary, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummaryList(v *[]types.CloudFrontOriginAccessIdentitySummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CloudFrontOriginAccessIdentitySummary + var sv []types.CloudFrontOriginAccessIdentitySummary if *v == nil { - sv = make([]*types.CloudFrontOriginAccessIdentitySummary, 0) + sv = make([]types.CloudFrontOriginAccessIdentitySummary, 0) } else { sv = *v } @@ -16839,11 +16839,13 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummaryList(v * } for { if strings.EqualFold("CloudFrontOriginAccessIdentitySummary", t.Name.Local) { - var col *types.CloudFrontOriginAccessIdentitySummary + var col types.CloudFrontOriginAccessIdentitySummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16856,23 +16858,25 @@ func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummaryList(v * return nil } -func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummaryListUnwrapped(v *[]*types.CloudFrontOriginAccessIdentitySummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.CloudFrontOriginAccessIdentitySummary +func awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummaryListUnwrapped(v *[]types.CloudFrontOriginAccessIdentitySummary, decoder smithyxml.NodeDecoder) error { + var sv []types.CloudFrontOriginAccessIdentitySummary if *v == nil { - sv = make([]*types.CloudFrontOriginAccessIdentitySummary, 0) + sv = make([]types.CloudFrontOriginAccessIdentitySummary, 0) } else { sv = *v } switch { default: - var mv *types.CloudFrontOriginAccessIdentitySummary + var mv types.CloudFrontOriginAccessIdentitySummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentitySummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16913,7 +16917,7 @@ func awsRestxml_deserializeDocumentCNAMEAlreadyExists(v **types.CNAMEAlreadyExis } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16961,7 +16965,7 @@ func awsRestxml_deserializeDocumentContentTypeProfile(v **types.ContentTypeProfi } if val != nil { xtv := string(val) - sv.ContentType = &xtv + sv.ContentType = ptr.String(xtv) } case strings.EqualFold("Format", t.Name.Local): @@ -16990,7 +16994,7 @@ func awsRestxml_deserializeDocumentContentTypeProfile(v **types.ContentTypeProfi } if val != nil { xtv := string(val) - sv.ProfileId = &xtv + sv.ProfileId = ptr.String(xtv) } default: @@ -17044,7 +17048,7 @@ func awsRestxml_deserializeDocumentContentTypeProfileConfig(v **types.ContentTyp if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.ForwardWhenContentTypeIsUnknown = &xtv + sv.ForwardWhenContentTypeIsUnknown = ptr.Bool(xtv) } default: @@ -17057,13 +17061,13 @@ func awsRestxml_deserializeDocumentContentTypeProfileConfig(v **types.ContentTyp return nil } -func awsRestxml_deserializeDocumentContentTypeProfileList(v *[]*types.ContentTypeProfile, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentContentTypeProfileList(v *[]types.ContentTypeProfile, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ContentTypeProfile + var sv []types.ContentTypeProfile if *v == nil { - sv = make([]*types.ContentTypeProfile, 0) + sv = make([]types.ContentTypeProfile, 0) } else { sv = *v } @@ -17079,11 +17083,13 @@ func awsRestxml_deserializeDocumentContentTypeProfileList(v *[]*types.ContentTyp } for { if strings.EqualFold("ContentTypeProfile", t.Name.Local) { - var col *types.ContentTypeProfile + var col types.ContentTypeProfile nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentContentTypeProfile(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentContentTypeProfile(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17096,23 +17102,25 @@ func awsRestxml_deserializeDocumentContentTypeProfileList(v *[]*types.ContentTyp return nil } -func awsRestxml_deserializeDocumentContentTypeProfileListUnwrapped(v *[]*types.ContentTypeProfile, decoder smithyxml.NodeDecoder) error { - var sv []*types.ContentTypeProfile +func awsRestxml_deserializeDocumentContentTypeProfileListUnwrapped(v *[]types.ContentTypeProfile, decoder smithyxml.NodeDecoder) error { + var sv []types.ContentTypeProfile if *v == nil { - sv = make([]*types.ContentTypeProfile, 0) + sv = make([]types.ContentTypeProfile, 0) } else { sv = *v } switch { default: - var mv *types.ContentTypeProfile + var mv types.ContentTypeProfile t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentContentTypeProfile(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentContentTypeProfile(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17173,13 +17181,13 @@ func awsRestxml_deserializeDocumentContentTypeProfiles(v **types.ContentTypeProf return nil } -func awsRestxml_deserializeDocumentCookieNameList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentCookieNameList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -17197,20 +17205,17 @@ func awsRestxml_deserializeDocumentCookieNameList(v *[]*string, decoder smithyxm decoder = memberDecoder for { if strings.EqualFold("Name", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -17223,17 +17228,17 @@ func awsRestxml_deserializeDocumentCookieNameList(v *[]*string, decoder smithyxm return nil } -func awsRestxml_deserializeDocumentCookieNameListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentCookieNameListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -17241,14 +17246,11 @@ func awsRestxml_deserializeDocumentCookieNameListUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -17397,7 +17399,7 @@ func awsRestxml_deserializeDocumentCustomErrorResponse(v **types.CustomErrorResp if err != nil { return err } - sv.ErrorCachingMinTTL = &i64 + sv.ErrorCachingMinTTL = ptr.Int64(i64) } case strings.EqualFold("ErrorCode", t.Name.Local): @@ -17430,7 +17432,7 @@ func awsRestxml_deserializeDocumentCustomErrorResponse(v **types.CustomErrorResp } if val != nil { xtv := string(val) - sv.ResponseCode = &xtv + sv.ResponseCode = ptr.String(xtv) } case strings.EqualFold("ResponsePagePath", t.Name.Local): @@ -17446,7 +17448,7 @@ func awsRestxml_deserializeDocumentCustomErrorResponse(v **types.CustomErrorResp } if val != nil { xtv := string(val) - sv.ResponsePagePath = &xtv + sv.ResponsePagePath = ptr.String(xtv) } default: @@ -17459,13 +17461,13 @@ func awsRestxml_deserializeDocumentCustomErrorResponse(v **types.CustomErrorResp return nil } -func awsRestxml_deserializeDocumentCustomErrorResponseList(v *[]*types.CustomErrorResponse, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentCustomErrorResponseList(v *[]types.CustomErrorResponse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CustomErrorResponse + var sv []types.CustomErrorResponse if *v == nil { - sv = make([]*types.CustomErrorResponse, 0) + sv = make([]types.CustomErrorResponse, 0) } else { sv = *v } @@ -17481,11 +17483,13 @@ func awsRestxml_deserializeDocumentCustomErrorResponseList(v *[]*types.CustomErr } for { if strings.EqualFold("CustomErrorResponse", t.Name.Local) { - var col *types.CustomErrorResponse + var col types.CustomErrorResponse nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCustomErrorResponse(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentCustomErrorResponse(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17498,23 +17502,25 @@ func awsRestxml_deserializeDocumentCustomErrorResponseList(v *[]*types.CustomErr return nil } -func awsRestxml_deserializeDocumentCustomErrorResponseListUnwrapped(v *[]*types.CustomErrorResponse, decoder smithyxml.NodeDecoder) error { - var sv []*types.CustomErrorResponse +func awsRestxml_deserializeDocumentCustomErrorResponseListUnwrapped(v *[]types.CustomErrorResponse, decoder smithyxml.NodeDecoder) error { + var sv []types.CustomErrorResponse if *v == nil { - sv = make([]*types.CustomErrorResponse, 0) + sv = make([]types.CustomErrorResponse, 0) } else { sv = *v } switch { default: - var mv *types.CustomErrorResponse + var mv types.CustomErrorResponse t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCustomErrorResponse(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentCustomErrorResponse(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17790,7 +17796,7 @@ func awsRestxml_deserializeDocumentDefaultCacheBehavior(v **types.DefaultCacheBe } if val != nil { xtv := string(val) - sv.CachePolicyId = &xtv + sv.CachePolicyId = ptr.String(xtv) } case strings.EqualFold("Compress", t.Name.Local): @@ -17806,7 +17812,7 @@ func awsRestxml_deserializeDocumentDefaultCacheBehavior(v **types.DefaultCacheBe if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Compress = &xtv + sv.Compress = ptr.Bool(xtv) } case strings.EqualFold("DefaultTTL", t.Name.Local): @@ -17823,7 +17829,7 @@ func awsRestxml_deserializeDocumentDefaultCacheBehavior(v **types.DefaultCacheBe if err != nil { return err } - sv.DefaultTTL = &i64 + sv.DefaultTTL = ptr.Int64(i64) } case strings.EqualFold("FieldLevelEncryptionId", t.Name.Local): @@ -17839,7 +17845,7 @@ func awsRestxml_deserializeDocumentDefaultCacheBehavior(v **types.DefaultCacheBe } if val != nil { xtv := string(val) - sv.FieldLevelEncryptionId = &xtv + sv.FieldLevelEncryptionId = ptr.String(xtv) } case strings.EqualFold("ForwardedValues", t.Name.Local): @@ -17868,7 +17874,7 @@ func awsRestxml_deserializeDocumentDefaultCacheBehavior(v **types.DefaultCacheBe if err != nil { return err } - sv.MaxTTL = &i64 + sv.MaxTTL = ptr.Int64(i64) } case strings.EqualFold("MinTTL", t.Name.Local): @@ -17885,7 +17891,7 @@ func awsRestxml_deserializeDocumentDefaultCacheBehavior(v **types.DefaultCacheBe if err != nil { return err } - sv.MinTTL = &i64 + sv.MinTTL = ptr.Int64(i64) } case strings.EqualFold("OriginRequestPolicyId", t.Name.Local): @@ -17901,7 +17907,7 @@ func awsRestxml_deserializeDocumentDefaultCacheBehavior(v **types.DefaultCacheBe } if val != nil { xtv := string(val) - sv.OriginRequestPolicyId = &xtv + sv.OriginRequestPolicyId = ptr.String(xtv) } case strings.EqualFold("RealtimeLogConfigArn", t.Name.Local): @@ -17917,7 +17923,7 @@ func awsRestxml_deserializeDocumentDefaultCacheBehavior(v **types.DefaultCacheBe } if val != nil { xtv := string(val) - sv.RealtimeLogConfigArn = &xtv + sv.RealtimeLogConfigArn = ptr.String(xtv) } case strings.EqualFold("SmoothStreaming", t.Name.Local): @@ -17933,7 +17939,7 @@ func awsRestxml_deserializeDocumentDefaultCacheBehavior(v **types.DefaultCacheBe if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.SmoothStreaming = &xtv + sv.SmoothStreaming = ptr.Bool(xtv) } case strings.EqualFold("TargetOriginId", t.Name.Local): @@ -17949,7 +17955,7 @@ func awsRestxml_deserializeDocumentDefaultCacheBehavior(v **types.DefaultCacheBe } if val != nil { xtv := string(val) - sv.TargetOriginId = &xtv + sv.TargetOriginId = ptr.String(xtv) } case strings.EqualFold("TrustedKeyGroups", t.Name.Local): @@ -18040,7 +18046,7 @@ func awsRestxml_deserializeDocumentDistribution(v **types.Distribution, decoder } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("DistributionConfig", t.Name.Local): @@ -18062,7 +18068,7 @@ func awsRestxml_deserializeDocumentDistribution(v **types.Distribution, decoder } if val != nil { xtv := string(val) - sv.DomainName = &xtv + sv.DomainName = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -18078,7 +18084,7 @@ func awsRestxml_deserializeDocumentDistribution(v **types.Distribution, decoder } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("InProgressInvalidationBatches", t.Name.Local): @@ -18112,7 +18118,7 @@ func awsRestxml_deserializeDocumentDistribution(v **types.Distribution, decoder if err != nil { return err } - sv.LastModifiedTime = &t + sv.LastModifiedTime = ptr.Time(t) } case strings.EqualFold("Status", t.Name.Local): @@ -18128,7 +18134,7 @@ func awsRestxml_deserializeDocumentDistribution(v **types.Distribution, decoder } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -18176,7 +18182,7 @@ func awsRestxml_deserializeDocumentDistributionAlreadyExists(v **types.Distribut } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18236,7 +18242,7 @@ func awsRestxml_deserializeDocumentDistributionConfig(v **types.DistributionConf } if val != nil { xtv := string(val) - sv.CallerReference = &xtv + sv.CallerReference = ptr.String(xtv) } case strings.EqualFold("Comment", t.Name.Local): @@ -18252,7 +18258,7 @@ func awsRestxml_deserializeDocumentDistributionConfig(v **types.DistributionConf } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("CustomErrorResponses", t.Name.Local): @@ -18280,7 +18286,7 @@ func awsRestxml_deserializeDocumentDistributionConfig(v **types.DistributionConf } if val != nil { xtv := string(val) - sv.DefaultRootObject = &xtv + sv.DefaultRootObject = ptr.String(xtv) } case strings.EqualFold("Enabled", t.Name.Local): @@ -18296,7 +18302,7 @@ func awsRestxml_deserializeDocumentDistributionConfig(v **types.DistributionConf if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("HttpVersion", t.Name.Local): @@ -18325,7 +18331,7 @@ func awsRestxml_deserializeDocumentDistributionConfig(v **types.DistributionConf if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.IsIPV6Enabled = &xtv + sv.IsIPV6Enabled = ptr.Bool(xtv) } case strings.EqualFold("Logging", t.Name.Local): @@ -18384,7 +18390,7 @@ func awsRestxml_deserializeDocumentDistributionConfig(v **types.DistributionConf } if val != nil { xtv := string(val) - sv.WebACLId = &xtv + sv.WebACLId = ptr.String(xtv) } default: @@ -18432,7 +18438,7 @@ func awsRestxml_deserializeDocumentDistributionIdList(v **types.DistributionIdLi if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = ptr.Bool(xtv) } case strings.EqualFold("Items", t.Name.Local): @@ -18454,7 +18460,7 @@ func awsRestxml_deserializeDocumentDistributionIdList(v **types.DistributionIdLi } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("MaxItems", t.Name.Local): @@ -18487,7 +18493,7 @@ func awsRestxml_deserializeDocumentDistributionIdList(v **types.DistributionIdLi } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("Quantity", t.Name.Local): @@ -18517,13 +18523,13 @@ func awsRestxml_deserializeDocumentDistributionIdList(v **types.DistributionIdLi return nil } -func awsRestxml_deserializeDocumentDistributionIdListSummary(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentDistributionIdListSummary(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -18541,20 +18547,17 @@ func awsRestxml_deserializeDocumentDistributionIdListSummary(v *[]*string, decod decoder = memberDecoder for { if strings.EqualFold("DistributionId", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -18567,17 +18570,17 @@ func awsRestxml_deserializeDocumentDistributionIdListSummary(v *[]*string, decod return nil } -func awsRestxml_deserializeDocumentDistributionIdListSummaryUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentDistributionIdListSummaryUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -18585,14 +18588,11 @@ func awsRestxml_deserializeDocumentDistributionIdListSummaryUnwrapped(v *[]*stri return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -18634,7 +18634,7 @@ func awsRestxml_deserializeDocumentDistributionList(v **types.DistributionList, if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = ptr.Bool(xtv) } case strings.EqualFold("Items", t.Name.Local): @@ -18656,7 +18656,7 @@ func awsRestxml_deserializeDocumentDistributionList(v **types.DistributionList, } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("MaxItems", t.Name.Local): @@ -18689,7 +18689,7 @@ func awsRestxml_deserializeDocumentDistributionList(v **types.DistributionList, } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("Quantity", t.Name.Local): @@ -18754,7 +18754,7 @@ func awsRestxml_deserializeDocumentDistributionNotDisabled(v **types.Distributio } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18814,7 +18814,7 @@ func awsRestxml_deserializeDocumentDistributionSummary(v **types.DistributionSum } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("CacheBehaviors", t.Name.Local): @@ -18836,7 +18836,7 @@ func awsRestxml_deserializeDocumentDistributionSummary(v **types.DistributionSum } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("CustomErrorResponses", t.Name.Local): @@ -18864,7 +18864,7 @@ func awsRestxml_deserializeDocumentDistributionSummary(v **types.DistributionSum } if val != nil { xtv := string(val) - sv.DomainName = &xtv + sv.DomainName = ptr.String(xtv) } case strings.EqualFold("Enabled", t.Name.Local): @@ -18880,7 +18880,7 @@ func awsRestxml_deserializeDocumentDistributionSummary(v **types.DistributionSum if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("HttpVersion", t.Name.Local): @@ -18909,7 +18909,7 @@ func awsRestxml_deserializeDocumentDistributionSummary(v **types.DistributionSum } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("IsIPV6Enabled", t.Name.Local): @@ -18925,7 +18925,7 @@ func awsRestxml_deserializeDocumentDistributionSummary(v **types.DistributionSum if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.IsIPV6Enabled = &xtv + sv.IsIPV6Enabled = ptr.Bool(xtv) } case strings.EqualFold("LastModifiedTime", t.Name.Local): @@ -18942,7 +18942,7 @@ func awsRestxml_deserializeDocumentDistributionSummary(v **types.DistributionSum if err != nil { return err } - sv.LastModifiedTime = &t + sv.LastModifiedTime = ptr.Time(t) } case strings.EqualFold("OriginGroups", t.Name.Local): @@ -18989,7 +18989,7 @@ func awsRestxml_deserializeDocumentDistributionSummary(v **types.DistributionSum } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("ViewerCertificate", t.Name.Local): @@ -19011,7 +19011,7 @@ func awsRestxml_deserializeDocumentDistributionSummary(v **types.DistributionSum } if val != nil { xtv := string(val) - sv.WebACLId = &xtv + sv.WebACLId = ptr.String(xtv) } default: @@ -19024,13 +19024,13 @@ func awsRestxml_deserializeDocumentDistributionSummary(v **types.DistributionSum return nil } -func awsRestxml_deserializeDocumentDistributionSummaryList(v *[]*types.DistributionSummary, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentDistributionSummaryList(v *[]types.DistributionSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DistributionSummary + var sv []types.DistributionSummary if *v == nil { - sv = make([]*types.DistributionSummary, 0) + sv = make([]types.DistributionSummary, 0) } else { sv = *v } @@ -19046,11 +19046,13 @@ func awsRestxml_deserializeDocumentDistributionSummaryList(v *[]*types.Distribut } for { if strings.EqualFold("DistributionSummary", t.Name.Local) { - var col *types.DistributionSummary + var col types.DistributionSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDistributionSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentDistributionSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19063,23 +19065,25 @@ func awsRestxml_deserializeDocumentDistributionSummaryList(v *[]*types.Distribut return nil } -func awsRestxml_deserializeDocumentDistributionSummaryListUnwrapped(v *[]*types.DistributionSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.DistributionSummary +func awsRestxml_deserializeDocumentDistributionSummaryListUnwrapped(v *[]types.DistributionSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.DistributionSummary if *v == nil { - sv = make([]*types.DistributionSummary, 0) + sv = make([]types.DistributionSummary, 0) } else { sv = *v } switch { default: - var mv *types.DistributionSummary + var mv types.DistributionSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDistributionSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentDistributionSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19181,7 +19185,7 @@ func awsRestxml_deserializeDocumentEncryptionEntity(v **types.EncryptionEntity, } if val != nil { xtv := string(val) - sv.ProviderId = &xtv + sv.ProviderId = ptr.String(xtv) } case strings.EqualFold("PublicKeyId", t.Name.Local): @@ -19197,7 +19201,7 @@ func awsRestxml_deserializeDocumentEncryptionEntity(v **types.EncryptionEntity, } if val != nil { xtv := string(val) - sv.PublicKeyId = &xtv + sv.PublicKeyId = ptr.String(xtv) } default: @@ -19210,13 +19214,13 @@ func awsRestxml_deserializeDocumentEncryptionEntity(v **types.EncryptionEntity, return nil } -func awsRestxml_deserializeDocumentEncryptionEntityList(v *[]*types.EncryptionEntity, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentEncryptionEntityList(v *[]types.EncryptionEntity, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EncryptionEntity + var sv []types.EncryptionEntity if *v == nil { - sv = make([]*types.EncryptionEntity, 0) + sv = make([]types.EncryptionEntity, 0) } else { sv = *v } @@ -19232,11 +19236,13 @@ func awsRestxml_deserializeDocumentEncryptionEntityList(v *[]*types.EncryptionEn } for { if strings.EqualFold("EncryptionEntity", t.Name.Local) { - var col *types.EncryptionEntity + var col types.EncryptionEntity nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentEncryptionEntity(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentEncryptionEntity(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19249,23 +19255,25 @@ func awsRestxml_deserializeDocumentEncryptionEntityList(v *[]*types.EncryptionEn return nil } -func awsRestxml_deserializeDocumentEncryptionEntityListUnwrapped(v *[]*types.EncryptionEntity, decoder smithyxml.NodeDecoder) error { - var sv []*types.EncryptionEntity +func awsRestxml_deserializeDocumentEncryptionEntityListUnwrapped(v *[]types.EncryptionEntity, decoder smithyxml.NodeDecoder) error { + var sv []types.EncryptionEntity if *v == nil { - sv = make([]*types.EncryptionEntity, 0) + sv = make([]types.EncryptionEntity, 0) } else { sv = *v } switch { default: - var mv *types.EncryptionEntity + var mv types.EncryptionEntity t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentEncryptionEntity(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentEncryptionEntity(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19312,7 +19320,7 @@ func awsRestxml_deserializeDocumentEndPoint(v **types.EndPoint, decoder smithyxm } if val != nil { xtv := string(val) - sv.StreamType = &xtv + sv.StreamType = ptr.String(xtv) } default: @@ -19325,13 +19333,13 @@ func awsRestxml_deserializeDocumentEndPoint(v **types.EndPoint, decoder smithyxm return nil } -func awsRestxml_deserializeDocumentEndPointList(v *[]*types.EndPoint, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentEndPointList(v *[]types.EndPoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EndPoint + var sv []types.EndPoint if *v == nil { - sv = make([]*types.EndPoint, 0) + sv = make([]types.EndPoint, 0) } else { sv = *v } @@ -19347,11 +19355,13 @@ func awsRestxml_deserializeDocumentEndPointList(v *[]*types.EndPoint, decoder sm } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.EndPoint + var col types.EndPoint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentEndPoint(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentEndPoint(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19364,23 +19374,25 @@ func awsRestxml_deserializeDocumentEndPointList(v *[]*types.EndPoint, decoder sm return nil } -func awsRestxml_deserializeDocumentEndPointListUnwrapped(v *[]*types.EndPoint, decoder smithyxml.NodeDecoder) error { - var sv []*types.EndPoint +func awsRestxml_deserializeDocumentEndPointListUnwrapped(v *[]types.EndPoint, decoder smithyxml.NodeDecoder) error { + var sv []types.EndPoint if *v == nil { - sv = make([]*types.EndPoint, 0) + sv = make([]types.EndPoint, 0) } else { sv = *v } switch { default: - var mv *types.EndPoint + var mv types.EndPoint t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentEndPoint(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentEndPoint(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19427,7 +19439,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryption(v **types.FieldLevelEncr } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("LastModifiedTime", t.Name.Local): @@ -19444,7 +19456,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryption(v **types.FieldLevelEncr if err != nil { return err } - sv.LastModifiedTime = &t + sv.LastModifiedTime = ptr.Time(t) } default: @@ -19492,7 +19504,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionConfig(v **types.FieldLev } if val != nil { xtv := string(val) - sv.CallerReference = &xtv + sv.CallerReference = ptr.String(xtv) } case strings.EqualFold("Comment", t.Name.Local): @@ -19508,7 +19520,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionConfig(v **types.FieldLev } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("ContentTypeProfileConfig", t.Name.Local): @@ -19568,7 +19580,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionConfigAlreadyExists(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19616,7 +19628,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionConfigInUse(v **types.Fie } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19687,7 +19699,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionList(v **types.FieldLevel } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("Quantity", t.Name.Local): @@ -19758,7 +19770,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfile(v **types.FieldLe } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("LastModifiedTime", t.Name.Local): @@ -19775,7 +19787,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfile(v **types.FieldLe if err != nil { return err } - sv.LastModifiedTime = &t + sv.LastModifiedTime = ptr.Time(t) } default: @@ -19823,7 +19835,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileAlreadyExists(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19871,7 +19883,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileConfig(v **types.F } if val != nil { xtv := string(val) - sv.CallerReference = &xtv + sv.CallerReference = ptr.String(xtv) } case strings.EqualFold("Comment", t.Name.Local): @@ -19887,7 +19899,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileConfig(v **types.F } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("EncryptionEntities", t.Name.Local): @@ -19909,7 +19921,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileConfig(v **types.F } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -19957,7 +19969,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileInUse(v **types.Fi } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20028,7 +20040,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileList(v **types.Fie } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("Quantity", t.Name.Local): @@ -20093,7 +20105,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSizeExceeded(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20141,7 +20153,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummary(v **types. } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("EncryptionEntities", t.Name.Local): @@ -20163,7 +20175,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummary(v **types. } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("LastModifiedTime", t.Name.Local): @@ -20180,7 +20192,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummary(v **types. if err != nil { return err } - sv.LastModifiedTime = &t + sv.LastModifiedTime = ptr.Time(t) } case strings.EqualFold("Name", t.Name.Local): @@ -20196,7 +20208,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummary(v **types. } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -20209,13 +20221,13 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummary(v **types. return nil } -func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummaryList(v *[]*types.FieldLevelEncryptionProfileSummary, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummaryList(v *[]types.FieldLevelEncryptionProfileSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.FieldLevelEncryptionProfileSummary + var sv []types.FieldLevelEncryptionProfileSummary if *v == nil { - sv = make([]*types.FieldLevelEncryptionProfileSummary, 0) + sv = make([]types.FieldLevelEncryptionProfileSummary, 0) } else { sv = *v } @@ -20231,11 +20243,13 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummaryList(v *[]* } for { if strings.EqualFold("FieldLevelEncryptionProfileSummary", t.Name.Local) { - var col *types.FieldLevelEncryptionProfileSummary + var col types.FieldLevelEncryptionProfileSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20248,23 +20262,25 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummaryList(v *[]* return nil } -func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummaryListUnwrapped(v *[]*types.FieldLevelEncryptionProfileSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.FieldLevelEncryptionProfileSummary +func awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummaryListUnwrapped(v *[]types.FieldLevelEncryptionProfileSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.FieldLevelEncryptionProfileSummary if *v == nil { - sv = make([]*types.FieldLevelEncryptionProfileSummary, 0) + sv = make([]types.FieldLevelEncryptionProfileSummary, 0) } else { sv = *v } switch { default: - var mv *types.FieldLevelEncryptionProfileSummary + var mv types.FieldLevelEncryptionProfileSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -20305,7 +20321,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionSummary(v **types.FieldLe } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("ContentTypeProfileConfig", t.Name.Local): @@ -20327,7 +20343,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionSummary(v **types.FieldLe } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("LastModifiedTime", t.Name.Local): @@ -20344,7 +20360,7 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionSummary(v **types.FieldLe if err != nil { return err } - sv.LastModifiedTime = &t + sv.LastModifiedTime = ptr.Time(t) } case strings.EqualFold("QueryArgProfileConfig", t.Name.Local): @@ -20363,13 +20379,13 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionSummary(v **types.FieldLe return nil } -func awsRestxml_deserializeDocumentFieldLevelEncryptionSummaryList(v *[]*types.FieldLevelEncryptionSummary, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentFieldLevelEncryptionSummaryList(v *[]types.FieldLevelEncryptionSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.FieldLevelEncryptionSummary + var sv []types.FieldLevelEncryptionSummary if *v == nil { - sv = make([]*types.FieldLevelEncryptionSummary, 0) + sv = make([]types.FieldLevelEncryptionSummary, 0) } else { sv = *v } @@ -20385,11 +20401,13 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionSummaryList(v *[]*types.F } for { if strings.EqualFold("FieldLevelEncryptionSummary", t.Name.Local) { - var col *types.FieldLevelEncryptionSummary + var col types.FieldLevelEncryptionSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentFieldLevelEncryptionSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentFieldLevelEncryptionSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20402,35 +20420,37 @@ func awsRestxml_deserializeDocumentFieldLevelEncryptionSummaryList(v *[]*types.F return nil } -func awsRestxml_deserializeDocumentFieldLevelEncryptionSummaryListUnwrapped(v *[]*types.FieldLevelEncryptionSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.FieldLevelEncryptionSummary +func awsRestxml_deserializeDocumentFieldLevelEncryptionSummaryListUnwrapped(v *[]types.FieldLevelEncryptionSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.FieldLevelEncryptionSummary if *v == nil { - sv = make([]*types.FieldLevelEncryptionSummary, 0) + sv = make([]types.FieldLevelEncryptionSummary, 0) } else { sv = *v } switch { default: - var mv *types.FieldLevelEncryptionSummary + var mv types.FieldLevelEncryptionSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentFieldLevelEncryptionSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentFieldLevelEncryptionSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentFieldList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentFieldList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -20448,20 +20468,17 @@ func awsRestxml_deserializeDocumentFieldList(v *[]*string, decoder smithyxml.Nod decoder = memberDecoder for { if strings.EqualFold("Field", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -20474,17 +20491,17 @@ func awsRestxml_deserializeDocumentFieldList(v *[]*string, decoder smithyxml.Nod return nil } -func awsRestxml_deserializeDocumentFieldListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentFieldListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -20492,27 +20509,24 @@ func awsRestxml_deserializeDocumentFieldListUnwrapped(v *[]*string, decoder smit return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentFieldPatternList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentFieldPatternList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -20530,20 +20544,17 @@ func awsRestxml_deserializeDocumentFieldPatternList(v *[]*string, decoder smithy decoder = memberDecoder for { if strings.EqualFold("FieldPattern", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -20556,17 +20567,17 @@ func awsRestxml_deserializeDocumentFieldPatternList(v *[]*string, decoder smithy return nil } -func awsRestxml_deserializeDocumentFieldPatternListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentFieldPatternListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -20574,14 +20585,11 @@ func awsRestxml_deserializeDocumentFieldPatternListUnwrapped(v *[]*string, decod return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -20690,7 +20698,7 @@ func awsRestxml_deserializeDocumentForwardedValues(v **types.ForwardedValues, de if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.QueryString = &xtv + sv.QueryString = ptr.Bool(xtv) } case strings.EqualFold("QueryStringCacheKeys", t.Name.Local): @@ -20777,13 +20785,13 @@ func awsRestxml_deserializeDocumentGeoRestriction(v **types.GeoRestriction, deco return nil } -func awsRestxml_deserializeDocumentHeaderList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentHeaderList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -20801,20 +20809,17 @@ func awsRestxml_deserializeDocumentHeaderList(v *[]*string, decoder smithyxml.No decoder = memberDecoder for { if strings.EqualFold("Name", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -20827,17 +20832,17 @@ func awsRestxml_deserializeDocumentHeaderList(v *[]*string, decoder smithyxml.No return nil } -func awsRestxml_deserializeDocumentHeaderListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentHeaderListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -20845,14 +20850,11 @@ func awsRestxml_deserializeDocumentHeaderListUnwrapped(v *[]*string, decoder smi return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -20949,7 +20951,7 @@ func awsRestxml_deserializeDocumentIllegalDelete(v **types.IllegalDelete, decode } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20997,7 +20999,7 @@ func awsRestxml_deserializeDocumentIllegalFieldLevelEncryptionConfigAssociationW } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21045,7 +21047,7 @@ func awsRestxml_deserializeDocumentIllegalUpdate(v **types.IllegalUpdate, decode } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21093,7 +21095,7 @@ func awsRestxml_deserializeDocumentInconsistentQuantities(v **types.Inconsistent } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21141,7 +21143,7 @@ func awsRestxml_deserializeDocumentInvalidArgument(v **types.InvalidArgument, de } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21190,7 +21192,7 @@ func awsRestxml_deserializeDocumentInvalidation(v **types.Invalidation, decoder if err != nil { return err } - sv.CreateTime = &t + sv.CreateTime = ptr.Time(t) } case strings.EqualFold("Id", t.Name.Local): @@ -21206,7 +21208,7 @@ func awsRestxml_deserializeDocumentInvalidation(v **types.Invalidation, decoder } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("InvalidationBatch", t.Name.Local): @@ -21228,7 +21230,7 @@ func awsRestxml_deserializeDocumentInvalidation(v **types.Invalidation, decoder } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -21276,7 +21278,7 @@ func awsRestxml_deserializeDocumentInvalidationBatch(v **types.InvalidationBatch } if val != nil { xtv := string(val) - sv.CallerReference = &xtv + sv.CallerReference = ptr.String(xtv) } case strings.EqualFold("Paths", t.Name.Local): @@ -21330,7 +21332,7 @@ func awsRestxml_deserializeDocumentInvalidationList(v **types.InvalidationList, if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = ptr.Bool(xtv) } case strings.EqualFold("Items", t.Name.Local): @@ -21352,7 +21354,7 @@ func awsRestxml_deserializeDocumentInvalidationList(v **types.InvalidationList, } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("MaxItems", t.Name.Local): @@ -21385,7 +21387,7 @@ func awsRestxml_deserializeDocumentInvalidationList(v **types.InvalidationList, } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("Quantity", t.Name.Local): @@ -21451,7 +21453,7 @@ func awsRestxml_deserializeDocumentInvalidationSummary(v **types.InvalidationSum if err != nil { return err } - sv.CreateTime = &t + sv.CreateTime = ptr.Time(t) } case strings.EqualFold("Id", t.Name.Local): @@ -21467,7 +21469,7 @@ func awsRestxml_deserializeDocumentInvalidationSummary(v **types.InvalidationSum } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -21483,7 +21485,7 @@ func awsRestxml_deserializeDocumentInvalidationSummary(v **types.InvalidationSum } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -21496,13 +21498,13 @@ func awsRestxml_deserializeDocumentInvalidationSummary(v **types.InvalidationSum return nil } -func awsRestxml_deserializeDocumentInvalidationSummaryList(v *[]*types.InvalidationSummary, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentInvalidationSummaryList(v *[]types.InvalidationSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InvalidationSummary + var sv []types.InvalidationSummary if *v == nil { - sv = make([]*types.InvalidationSummary, 0) + sv = make([]types.InvalidationSummary, 0) } else { sv = *v } @@ -21518,11 +21520,13 @@ func awsRestxml_deserializeDocumentInvalidationSummaryList(v *[]*types.Invalidat } for { if strings.EqualFold("InvalidationSummary", t.Name.Local) { - var col *types.InvalidationSummary + var col types.InvalidationSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentInvalidationSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentInvalidationSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21535,23 +21539,25 @@ func awsRestxml_deserializeDocumentInvalidationSummaryList(v *[]*types.Invalidat return nil } -func awsRestxml_deserializeDocumentInvalidationSummaryListUnwrapped(v *[]*types.InvalidationSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.InvalidationSummary +func awsRestxml_deserializeDocumentInvalidationSummaryListUnwrapped(v *[]types.InvalidationSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.InvalidationSummary if *v == nil { - sv = make([]*types.InvalidationSummary, 0) + sv = make([]types.InvalidationSummary, 0) } else { sv = *v } switch { default: - var mv *types.InvalidationSummary + var mv types.InvalidationSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentInvalidationSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentInvalidationSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -21592,7 +21598,7 @@ func awsRestxml_deserializeDocumentInvalidDefaultRootObject(v **types.InvalidDef } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21640,7 +21646,7 @@ func awsRestxml_deserializeDocumentInvalidErrorCode(v **types.InvalidErrorCode, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21688,7 +21694,7 @@ func awsRestxml_deserializeDocumentInvalidForwardCookies(v **types.InvalidForwar } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21736,7 +21742,7 @@ func awsRestxml_deserializeDocumentInvalidGeoRestrictionParameter(v **types.Inva } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21784,7 +21790,7 @@ func awsRestxml_deserializeDocumentInvalidHeadersForS3Origin(v **types.InvalidHe } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21832,7 +21838,7 @@ func awsRestxml_deserializeDocumentInvalidIfMatchVersion(v **types.InvalidIfMatc } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21880,7 +21886,7 @@ func awsRestxml_deserializeDocumentInvalidLambdaFunctionAssociation(v **types.In } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21928,7 +21934,7 @@ func awsRestxml_deserializeDocumentInvalidLocationCode(v **types.InvalidLocation } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21976,7 +21982,7 @@ func awsRestxml_deserializeDocumentInvalidMinimumProtocolVersion(v **types.Inval } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22024,7 +22030,7 @@ func awsRestxml_deserializeDocumentInvalidOrigin(v **types.InvalidOrigin, decode } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22072,7 +22078,7 @@ func awsRestxml_deserializeDocumentInvalidOriginAccessIdentity(v **types.Invalid } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22120,7 +22126,7 @@ func awsRestxml_deserializeDocumentInvalidOriginKeepaliveTimeout(v **types.Inval } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22168,7 +22174,7 @@ func awsRestxml_deserializeDocumentInvalidOriginReadTimeout(v **types.InvalidOri } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22216,7 +22222,7 @@ func awsRestxml_deserializeDocumentInvalidProtocolSettings(v **types.InvalidProt } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22264,7 +22270,7 @@ func awsRestxml_deserializeDocumentInvalidQueryStringParameters(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22312,7 +22318,7 @@ func awsRestxml_deserializeDocumentInvalidRelativePath(v **types.InvalidRelative } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22360,7 +22366,7 @@ func awsRestxml_deserializeDocumentInvalidRequiredProtocol(v **types.InvalidRequ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22408,7 +22414,7 @@ func awsRestxml_deserializeDocumentInvalidResponseCode(v **types.InvalidResponse } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22456,7 +22462,7 @@ func awsRestxml_deserializeDocumentInvalidTagging(v **types.InvalidTagging, deco } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22504,7 +22510,7 @@ func awsRestxml_deserializeDocumentInvalidTTLOrder(v **types.InvalidTTLOrder, de } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22552,7 +22558,7 @@ func awsRestxml_deserializeDocumentInvalidViewerCertificate(v **types.InvalidVie } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22600,7 +22606,7 @@ func awsRestxml_deserializeDocumentInvalidWebACLId(v **types.InvalidWebACLId, de } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22648,7 +22654,7 @@ func awsRestxml_deserializeDocumentKeyGroup(v **types.KeyGroup, decoder smithyxm } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("KeyGroupConfig", t.Name.Local): @@ -22671,7 +22677,7 @@ func awsRestxml_deserializeDocumentKeyGroup(v **types.KeyGroup, decoder smithyxm if err != nil { return err } - sv.LastModifiedTime = &t + sv.LastModifiedTime = ptr.Time(t) } default: @@ -22719,7 +22725,7 @@ func awsRestxml_deserializeDocumentKeyGroupAlreadyExists(v **types.KeyGroupAlrea } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22767,7 +22773,7 @@ func awsRestxml_deserializeDocumentKeyGroupConfig(v **types.KeyGroupConfig, deco } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("Items", t.Name.Local): @@ -22789,7 +22795,7 @@ func awsRestxml_deserializeDocumentKeyGroupConfig(v **types.KeyGroupConfig, deco } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -22860,7 +22866,7 @@ func awsRestxml_deserializeDocumentKeyGroupList(v **types.KeyGroupList, decoder } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("Quantity", t.Name.Local): @@ -22928,13 +22934,13 @@ func awsRestxml_deserializeDocumentKeyGroupSummary(v **types.KeyGroupSummary, de return nil } -func awsRestxml_deserializeDocumentKeyGroupSummaryList(v *[]*types.KeyGroupSummary, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentKeyGroupSummaryList(v *[]types.KeyGroupSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.KeyGroupSummary + var sv []types.KeyGroupSummary if *v == nil { - sv = make([]*types.KeyGroupSummary, 0) + sv = make([]types.KeyGroupSummary, 0) } else { sv = *v } @@ -22950,11 +22956,13 @@ func awsRestxml_deserializeDocumentKeyGroupSummaryList(v *[]*types.KeyGroupSumma } for { if strings.EqualFold("KeyGroupSummary", t.Name.Local) { - var col *types.KeyGroupSummary + var col types.KeyGroupSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentKeyGroupSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentKeyGroupSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -22967,35 +22975,37 @@ func awsRestxml_deserializeDocumentKeyGroupSummaryList(v *[]*types.KeyGroupSumma return nil } -func awsRestxml_deserializeDocumentKeyGroupSummaryListUnwrapped(v *[]*types.KeyGroupSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.KeyGroupSummary +func awsRestxml_deserializeDocumentKeyGroupSummaryListUnwrapped(v *[]types.KeyGroupSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.KeyGroupSummary if *v == nil { - sv = make([]*types.KeyGroupSummary, 0) + sv = make([]types.KeyGroupSummary, 0) } else { sv = *v } switch { default: - var mv *types.KeyGroupSummary + var mv types.KeyGroupSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentKeyGroupSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentKeyGroupSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentKeyPairIdList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentKeyPairIdList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -23013,20 +23023,17 @@ func awsRestxml_deserializeDocumentKeyPairIdList(v *[]*string, decoder smithyxml decoder = memberDecoder for { if strings.EqualFold("KeyPairId", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -23039,17 +23046,17 @@ func awsRestxml_deserializeDocumentKeyPairIdList(v *[]*string, decoder smithyxml return nil } -func awsRestxml_deserializeDocumentKeyPairIdListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentKeyPairIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -23057,14 +23064,11 @@ func awsRestxml_deserializeDocumentKeyPairIdListUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -23161,7 +23165,7 @@ func awsRestxml_deserializeDocumentKGKeyPairIds(v **types.KGKeyPairIds, decoder } if val != nil { xtv := string(val) - sv.KeyGroupId = &xtv + sv.KeyGroupId = ptr.String(xtv) } case strings.EqualFold("KeyPairIds", t.Name.Local): @@ -23180,13 +23184,13 @@ func awsRestxml_deserializeDocumentKGKeyPairIds(v **types.KGKeyPairIds, decoder return nil } -func awsRestxml_deserializeDocumentKGKeyPairIdsList(v *[]*types.KGKeyPairIds, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentKGKeyPairIdsList(v *[]types.KGKeyPairIds, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.KGKeyPairIds + var sv []types.KGKeyPairIds if *v == nil { - sv = make([]*types.KGKeyPairIds, 0) + sv = make([]types.KGKeyPairIds, 0) } else { sv = *v } @@ -23202,11 +23206,13 @@ func awsRestxml_deserializeDocumentKGKeyPairIdsList(v *[]*types.KGKeyPairIds, de } for { if strings.EqualFold("KeyGroup", t.Name.Local) { - var col *types.KGKeyPairIds + var col types.KGKeyPairIds nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentKGKeyPairIds(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentKGKeyPairIds(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -23219,23 +23225,25 @@ func awsRestxml_deserializeDocumentKGKeyPairIdsList(v *[]*types.KGKeyPairIds, de return nil } -func awsRestxml_deserializeDocumentKGKeyPairIdsListUnwrapped(v *[]*types.KGKeyPairIds, decoder smithyxml.NodeDecoder) error { - var sv []*types.KGKeyPairIds +func awsRestxml_deserializeDocumentKGKeyPairIdsListUnwrapped(v *[]types.KGKeyPairIds, decoder smithyxml.NodeDecoder) error { + var sv []types.KGKeyPairIds if *v == nil { - sv = make([]*types.KGKeyPairIds, 0) + sv = make([]types.KGKeyPairIds, 0) } else { sv = *v } switch { default: - var mv *types.KGKeyPairIds + var mv types.KGKeyPairIds t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentKGKeyPairIds(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentKGKeyPairIds(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -23276,7 +23284,7 @@ func awsRestxml_deserializeDocumentKinesisStreamConfig(v **types.KinesisStreamCo } if val != nil { xtv := string(val) - sv.RoleARN = &xtv + sv.RoleARN = ptr.String(xtv) } case strings.EqualFold("StreamARN", t.Name.Local): @@ -23292,7 +23300,7 @@ func awsRestxml_deserializeDocumentKinesisStreamConfig(v **types.KinesisStreamCo } if val != nil { xtv := string(val) - sv.StreamARN = &xtv + sv.StreamARN = ptr.String(xtv) } default: @@ -23353,7 +23361,7 @@ func awsRestxml_deserializeDocumentLambdaFunctionAssociation(v **types.LambdaFun if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.IncludeBody = &xtv + sv.IncludeBody = ptr.Bool(xtv) } case strings.EqualFold("LambdaFunctionARN", t.Name.Local): @@ -23369,7 +23377,7 @@ func awsRestxml_deserializeDocumentLambdaFunctionAssociation(v **types.LambdaFun } if val != nil { xtv := string(val) - sv.LambdaFunctionARN = &xtv + sv.LambdaFunctionARN = ptr.String(xtv) } default: @@ -23382,13 +23390,13 @@ func awsRestxml_deserializeDocumentLambdaFunctionAssociation(v **types.LambdaFun return nil } -func awsRestxml_deserializeDocumentLambdaFunctionAssociationList(v *[]*types.LambdaFunctionAssociation, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentLambdaFunctionAssociationList(v *[]types.LambdaFunctionAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LambdaFunctionAssociation + var sv []types.LambdaFunctionAssociation if *v == nil { - sv = make([]*types.LambdaFunctionAssociation, 0) + sv = make([]types.LambdaFunctionAssociation, 0) } else { sv = *v } @@ -23404,11 +23412,13 @@ func awsRestxml_deserializeDocumentLambdaFunctionAssociationList(v *[]*types.Lam } for { if strings.EqualFold("LambdaFunctionAssociation", t.Name.Local) { - var col *types.LambdaFunctionAssociation + var col types.LambdaFunctionAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLambdaFunctionAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentLambdaFunctionAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -23421,23 +23431,25 @@ func awsRestxml_deserializeDocumentLambdaFunctionAssociationList(v *[]*types.Lam return nil } -func awsRestxml_deserializeDocumentLambdaFunctionAssociationListUnwrapped(v *[]*types.LambdaFunctionAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.LambdaFunctionAssociation +func awsRestxml_deserializeDocumentLambdaFunctionAssociationListUnwrapped(v *[]types.LambdaFunctionAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.LambdaFunctionAssociation if *v == nil { - sv = make([]*types.LambdaFunctionAssociation, 0) + sv = make([]types.LambdaFunctionAssociation, 0) } else { sv = *v } switch { default: - var mv *types.LambdaFunctionAssociation + var mv types.LambdaFunctionAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLambdaFunctionAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentLambdaFunctionAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -23498,13 +23510,13 @@ func awsRestxml_deserializeDocumentLambdaFunctionAssociations(v **types.LambdaFu return nil } -func awsRestxml_deserializeDocumentLocationList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentLocationList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -23522,20 +23534,17 @@ func awsRestxml_deserializeDocumentLocationList(v *[]*string, decoder smithyxml. decoder = memberDecoder for { if strings.EqualFold("Location", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -23548,17 +23557,17 @@ func awsRestxml_deserializeDocumentLocationList(v *[]*string, decoder smithyxml. return nil } -func awsRestxml_deserializeDocumentLocationListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentLocationListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -23566,14 +23575,11 @@ func awsRestxml_deserializeDocumentLocationListUnwrapped(v *[]*string, decoder s return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -23615,7 +23621,7 @@ func awsRestxml_deserializeDocumentLoggingConfig(v **types.LoggingConfig, decode } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("Enabled", t.Name.Local): @@ -23631,7 +23637,7 @@ func awsRestxml_deserializeDocumentLoggingConfig(v **types.LoggingConfig, decode if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("IncludeCookies", t.Name.Local): @@ -23647,7 +23653,7 @@ func awsRestxml_deserializeDocumentLoggingConfig(v **types.LoggingConfig, decode if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.IncludeCookies = &xtv + sv.IncludeCookies = ptr.Bool(xtv) } case strings.EqualFold("Prefix", t.Name.Local): @@ -23663,7 +23669,7 @@ func awsRestxml_deserializeDocumentLoggingConfig(v **types.LoggingConfig, decode } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } default: @@ -23787,7 +23793,7 @@ func awsRestxml_deserializeDocumentMissingBody(v **types.MissingBody, decoder sm } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23873,7 +23879,7 @@ func awsRestxml_deserializeDocumentNoSuchCachePolicy(v **types.NoSuchCachePolicy } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23921,7 +23927,7 @@ func awsRestxml_deserializeDocumentNoSuchCloudFrontOriginAccessIdentity(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23969,7 +23975,7 @@ func awsRestxml_deserializeDocumentNoSuchDistribution(v **types.NoSuchDistributi } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24017,7 +24023,7 @@ func awsRestxml_deserializeDocumentNoSuchFieldLevelEncryptionConfig(v **types.No } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24065,7 +24071,7 @@ func awsRestxml_deserializeDocumentNoSuchFieldLevelEncryptionProfile(v **types.N } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24113,7 +24119,7 @@ func awsRestxml_deserializeDocumentNoSuchInvalidation(v **types.NoSuchInvalidati } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24161,7 +24167,7 @@ func awsRestxml_deserializeDocumentNoSuchOrigin(v **types.NoSuchOrigin, decoder } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24209,7 +24215,7 @@ func awsRestxml_deserializeDocumentNoSuchOriginRequestPolicy(v **types.NoSuchOri } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24257,7 +24263,7 @@ func awsRestxml_deserializeDocumentNoSuchPublicKey(v **types.NoSuchPublicKey, de } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24305,7 +24311,7 @@ func awsRestxml_deserializeDocumentNoSuchRealtimeLogConfig(v **types.NoSuchRealt } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24353,7 +24359,7 @@ func awsRestxml_deserializeDocumentNoSuchResource(v **types.NoSuchResource, deco } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24401,7 +24407,7 @@ func awsRestxml_deserializeDocumentNoSuchStreamingDistribution(v **types.NoSuchS } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24495,7 +24501,7 @@ func awsRestxml_deserializeDocumentOrigin(v **types.Origin, decoder smithyxml.No } if val != nil { xtv := string(val) - sv.DomainName = &xtv + sv.DomainName = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -24511,7 +24517,7 @@ func awsRestxml_deserializeDocumentOrigin(v **types.Origin, decoder smithyxml.No } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("OriginPath", t.Name.Local): @@ -24527,7 +24533,7 @@ func awsRestxml_deserializeDocumentOrigin(v **types.Origin, decoder smithyxml.No } if val != nil { xtv := string(val) - sv.OriginPath = &xtv + sv.OriginPath = ptr.String(xtv) } case strings.EqualFold("OriginShield", t.Name.Local): @@ -24587,7 +24593,7 @@ func awsRestxml_deserializeDocumentOriginCustomHeader(v **types.OriginCustomHead } if val != nil { xtv := string(val) - sv.HeaderName = &xtv + sv.HeaderName = ptr.String(xtv) } case strings.EqualFold("HeaderValue", t.Name.Local): @@ -24603,7 +24609,7 @@ func awsRestxml_deserializeDocumentOriginCustomHeader(v **types.OriginCustomHead } if val != nil { xtv := string(val) - sv.HeaderValue = &xtv + sv.HeaderValue = ptr.String(xtv) } default: @@ -24616,13 +24622,13 @@ func awsRestxml_deserializeDocumentOriginCustomHeader(v **types.OriginCustomHead return nil } -func awsRestxml_deserializeDocumentOriginCustomHeadersList(v *[]*types.OriginCustomHeader, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentOriginCustomHeadersList(v *[]types.OriginCustomHeader, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OriginCustomHeader + var sv []types.OriginCustomHeader if *v == nil { - sv = make([]*types.OriginCustomHeader, 0) + sv = make([]types.OriginCustomHeader, 0) } else { sv = *v } @@ -24638,11 +24644,13 @@ func awsRestxml_deserializeDocumentOriginCustomHeadersList(v *[]*types.OriginCus } for { if strings.EqualFold("OriginCustomHeader", t.Name.Local) { - var col *types.OriginCustomHeader + var col types.OriginCustomHeader nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOriginCustomHeader(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentOriginCustomHeader(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -24655,23 +24663,25 @@ func awsRestxml_deserializeDocumentOriginCustomHeadersList(v *[]*types.OriginCus return nil } -func awsRestxml_deserializeDocumentOriginCustomHeadersListUnwrapped(v *[]*types.OriginCustomHeader, decoder smithyxml.NodeDecoder) error { - var sv []*types.OriginCustomHeader +func awsRestxml_deserializeDocumentOriginCustomHeadersListUnwrapped(v *[]types.OriginCustomHeader, decoder smithyxml.NodeDecoder) error { + var sv []types.OriginCustomHeader if *v == nil { - sv = make([]*types.OriginCustomHeader, 0) + sv = make([]types.OriginCustomHeader, 0) } else { sv = *v } switch { default: - var mv *types.OriginCustomHeader + var mv types.OriginCustomHeader t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOriginCustomHeader(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentOriginCustomHeader(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -24718,7 +24728,7 @@ func awsRestxml_deserializeDocumentOriginGroup(v **types.OriginGroup, decoder sm } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("Members", t.Name.Local): @@ -24775,13 +24785,13 @@ func awsRestxml_deserializeDocumentOriginGroupFailoverCriteria(v **types.OriginG return nil } -func awsRestxml_deserializeDocumentOriginGroupList(v *[]*types.OriginGroup, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentOriginGroupList(v *[]types.OriginGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OriginGroup + var sv []types.OriginGroup if *v == nil { - sv = make([]*types.OriginGroup, 0) + sv = make([]types.OriginGroup, 0) } else { sv = *v } @@ -24797,11 +24807,13 @@ func awsRestxml_deserializeDocumentOriginGroupList(v *[]*types.OriginGroup, deco } for { if strings.EqualFold("OriginGroup", t.Name.Local) { - var col *types.OriginGroup + var col types.OriginGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOriginGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentOriginGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -24814,23 +24826,25 @@ func awsRestxml_deserializeDocumentOriginGroupList(v *[]*types.OriginGroup, deco return nil } -func awsRestxml_deserializeDocumentOriginGroupListUnwrapped(v *[]*types.OriginGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.OriginGroup +func awsRestxml_deserializeDocumentOriginGroupListUnwrapped(v *[]types.OriginGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.OriginGroup if *v == nil { - sv = make([]*types.OriginGroup, 0) + sv = make([]types.OriginGroup, 0) } else { sv = *v } switch { default: - var mv *types.OriginGroup + var mv types.OriginGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOriginGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentOriginGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -24871,7 +24885,7 @@ func awsRestxml_deserializeDocumentOriginGroupMember(v **types.OriginGroupMember } if val != nil { xtv := string(val) - sv.OriginId = &xtv + sv.OriginId = ptr.String(xtv) } default: @@ -24884,13 +24898,13 @@ func awsRestxml_deserializeDocumentOriginGroupMember(v **types.OriginGroupMember return nil } -func awsRestxml_deserializeDocumentOriginGroupMemberList(v *[]*types.OriginGroupMember, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentOriginGroupMemberList(v *[]types.OriginGroupMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OriginGroupMember + var sv []types.OriginGroupMember if *v == nil { - sv = make([]*types.OriginGroupMember, 0) + sv = make([]types.OriginGroupMember, 0) } else { sv = *v } @@ -24906,11 +24920,13 @@ func awsRestxml_deserializeDocumentOriginGroupMemberList(v *[]*types.OriginGroup } for { if strings.EqualFold("OriginGroupMember", t.Name.Local) { - var col *types.OriginGroupMember + var col types.OriginGroupMember nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOriginGroupMember(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentOriginGroupMember(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -24923,23 +24939,25 @@ func awsRestxml_deserializeDocumentOriginGroupMemberList(v *[]*types.OriginGroup return nil } -func awsRestxml_deserializeDocumentOriginGroupMemberListUnwrapped(v *[]*types.OriginGroupMember, decoder smithyxml.NodeDecoder) error { - var sv []*types.OriginGroupMember +func awsRestxml_deserializeDocumentOriginGroupMemberListUnwrapped(v *[]types.OriginGroupMember, decoder smithyxml.NodeDecoder) error { + var sv []types.OriginGroupMember if *v == nil { - sv = make([]*types.OriginGroupMember, 0) + sv = make([]types.OriginGroupMember, 0) } else { sv = *v } switch { default: - var mv *types.OriginGroupMember + var mv types.OriginGroupMember t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOriginGroupMember(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentOriginGroupMember(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -25055,13 +25073,13 @@ func awsRestxml_deserializeDocumentOriginGroups(v **types.OriginGroups, decoder return nil } -func awsRestxml_deserializeDocumentOriginList(v *[]*types.Origin, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentOriginList(v *[]types.Origin, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Origin + var sv []types.Origin if *v == nil { - sv = make([]*types.Origin, 0) + sv = make([]types.Origin, 0) } else { sv = *v } @@ -25077,11 +25095,13 @@ func awsRestxml_deserializeDocumentOriginList(v *[]*types.Origin, decoder smithy } for { if strings.EqualFold("Origin", t.Name.Local) { - var col *types.Origin + var col types.Origin nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOrigin(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentOrigin(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -25094,23 +25114,25 @@ func awsRestxml_deserializeDocumentOriginList(v *[]*types.Origin, decoder smithy return nil } -func awsRestxml_deserializeDocumentOriginListUnwrapped(v *[]*types.Origin, decoder smithyxml.NodeDecoder) error { - var sv []*types.Origin +func awsRestxml_deserializeDocumentOriginListUnwrapped(v *[]types.Origin, decoder smithyxml.NodeDecoder) error { + var sv []types.Origin if *v == nil { - sv = make([]*types.Origin, 0) + sv = make([]types.Origin, 0) } else { sv = *v } switch { default: - var mv *types.Origin + var mv types.Origin t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOrigin(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentOrigin(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -25151,7 +25173,7 @@ func awsRestxml_deserializeDocumentOriginRequestPolicy(v **types.OriginRequestPo } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("LastModifiedTime", t.Name.Local): @@ -25168,7 +25190,7 @@ func awsRestxml_deserializeDocumentOriginRequestPolicy(v **types.OriginRequestPo if err != nil { return err } - sv.LastModifiedTime = &t + sv.LastModifiedTime = ptr.Time(t) } case strings.EqualFold("OriginRequestPolicyConfig", t.Name.Local): @@ -25222,7 +25244,7 @@ func awsRestxml_deserializeDocumentOriginRequestPolicyAlreadyExists(v **types.Or } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25270,7 +25292,7 @@ func awsRestxml_deserializeDocumentOriginRequestPolicyConfig(v **types.OriginReq } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("CookiesConfig", t.Name.Local): @@ -25298,7 +25320,7 @@ func awsRestxml_deserializeDocumentOriginRequestPolicyConfig(v **types.OriginReq } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("QueryStringsConfig", t.Name.Local): @@ -25454,7 +25476,7 @@ func awsRestxml_deserializeDocumentOriginRequestPolicyInUse(v **types.OriginRequ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25525,7 +25547,7 @@ func awsRestxml_deserializeDocumentOriginRequestPolicyList(v **types.OriginReque } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("Quantity", t.Name.Local): @@ -25657,13 +25679,13 @@ func awsRestxml_deserializeDocumentOriginRequestPolicySummary(v **types.OriginRe return nil } -func awsRestxml_deserializeDocumentOriginRequestPolicySummaryList(v *[]*types.OriginRequestPolicySummary, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentOriginRequestPolicySummaryList(v *[]types.OriginRequestPolicySummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OriginRequestPolicySummary + var sv []types.OriginRequestPolicySummary if *v == nil { - sv = make([]*types.OriginRequestPolicySummary, 0) + sv = make([]types.OriginRequestPolicySummary, 0) } else { sv = *v } @@ -25679,11 +25701,13 @@ func awsRestxml_deserializeDocumentOriginRequestPolicySummaryList(v *[]*types.Or } for { if strings.EqualFold("OriginRequestPolicySummary", t.Name.Local) { - var col *types.OriginRequestPolicySummary + var col types.OriginRequestPolicySummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOriginRequestPolicySummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentOriginRequestPolicySummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -25696,23 +25720,25 @@ func awsRestxml_deserializeDocumentOriginRequestPolicySummaryList(v *[]*types.Or return nil } -func awsRestxml_deserializeDocumentOriginRequestPolicySummaryListUnwrapped(v *[]*types.OriginRequestPolicySummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.OriginRequestPolicySummary +func awsRestxml_deserializeDocumentOriginRequestPolicySummaryListUnwrapped(v *[]types.OriginRequestPolicySummary, decoder smithyxml.NodeDecoder) error { + var sv []types.OriginRequestPolicySummary if *v == nil { - sv = make([]*types.OriginRequestPolicySummary, 0) + sv = make([]types.OriginRequestPolicySummary, 0) } else { sv = *v } switch { default: - var mv *types.OriginRequestPolicySummary + var mv types.OriginRequestPolicySummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOriginRequestPolicySummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentOriginRequestPolicySummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -25808,7 +25834,7 @@ func awsRestxml_deserializeDocumentOriginShield(v **types.OriginShield, decoder if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("OriginShieldRegion", t.Name.Local): @@ -25824,7 +25850,7 @@ func awsRestxml_deserializeDocumentOriginShield(v **types.OriginShield, decoder } if val != nil { xtv := string(val) - sv.OriginShieldRegion = &xtv + sv.OriginShieldRegion = ptr.String(xtv) } default: @@ -25933,7 +25959,7 @@ func awsRestxml_deserializeDocumentParametersInCacheKeyAndForwardedToOrigin(v ** if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.EnableAcceptEncodingBrotli = &xtv + sv.EnableAcceptEncodingBrotli = ptr.Bool(xtv) } case strings.EqualFold("EnableAcceptEncodingGzip", t.Name.Local): @@ -25949,7 +25975,7 @@ func awsRestxml_deserializeDocumentParametersInCacheKeyAndForwardedToOrigin(v ** if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.EnableAcceptEncodingGzip = &xtv + sv.EnableAcceptEncodingGzip = ptr.Bool(xtv) } case strings.EqualFold("HeadersConfig", t.Name.Local): @@ -25974,13 +26000,13 @@ func awsRestxml_deserializeDocumentParametersInCacheKeyAndForwardedToOrigin(v ** return nil } -func awsRestxml_deserializeDocumentPathList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentPathList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -25998,20 +26024,17 @@ func awsRestxml_deserializeDocumentPathList(v *[]*string, decoder smithyxml.Node decoder = memberDecoder for { if strings.EqualFold("Path", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -26024,17 +26047,17 @@ func awsRestxml_deserializeDocumentPathList(v *[]*string, decoder smithyxml.Node return nil } -func awsRestxml_deserializeDocumentPathListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentPathListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -26042,14 +26065,11 @@ func awsRestxml_deserializeDocumentPathListUnwrapped(v *[]*string, decoder smith return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -26146,7 +26166,7 @@ func awsRestxml_deserializeDocumentPreconditionFailed(v **types.PreconditionFail } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26195,7 +26215,7 @@ func awsRestxml_deserializeDocumentPublicKey(v **types.PublicKey, decoder smithy if err != nil { return err } - sv.CreatedTime = &t + sv.CreatedTime = ptr.Time(t) } case strings.EqualFold("Id", t.Name.Local): @@ -26211,7 +26231,7 @@ func awsRestxml_deserializeDocumentPublicKey(v **types.PublicKey, decoder smithy } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("PublicKeyConfig", t.Name.Local): @@ -26265,7 +26285,7 @@ func awsRestxml_deserializeDocumentPublicKeyAlreadyExists(v **types.PublicKeyAlr } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26313,7 +26333,7 @@ func awsRestxml_deserializeDocumentPublicKeyConfig(v **types.PublicKeyConfig, de } if val != nil { xtv := string(val) - sv.CallerReference = &xtv + sv.CallerReference = ptr.String(xtv) } case strings.EqualFold("Comment", t.Name.Local): @@ -26329,7 +26349,7 @@ func awsRestxml_deserializeDocumentPublicKeyConfig(v **types.PublicKeyConfig, de } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("EncodedKey", t.Name.Local): @@ -26345,7 +26365,7 @@ func awsRestxml_deserializeDocumentPublicKeyConfig(v **types.PublicKeyConfig, de } if val != nil { xtv := string(val) - sv.EncodedKey = &xtv + sv.EncodedKey = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -26361,7 +26381,7 @@ func awsRestxml_deserializeDocumentPublicKeyConfig(v **types.PublicKeyConfig, de } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -26374,13 +26394,13 @@ func awsRestxml_deserializeDocumentPublicKeyConfig(v **types.PublicKeyConfig, de return nil } -func awsRestxml_deserializeDocumentPublicKeyIdList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentPublicKeyIdList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -26398,20 +26418,17 @@ func awsRestxml_deserializeDocumentPublicKeyIdList(v *[]*string, decoder smithyx decoder = memberDecoder for { if strings.EqualFold("PublicKey", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -26424,17 +26441,17 @@ func awsRestxml_deserializeDocumentPublicKeyIdList(v *[]*string, decoder smithyx return nil } -func awsRestxml_deserializeDocumentPublicKeyIdListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentPublicKeyIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -26442,14 +26459,11 @@ func awsRestxml_deserializeDocumentPublicKeyIdListUnwrapped(v *[]*string, decode return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -26491,7 +26505,7 @@ func awsRestxml_deserializeDocumentPublicKeyInUse(v **types.PublicKeyInUse, deco } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26562,7 +26576,7 @@ func awsRestxml_deserializeDocumentPublicKeyList(v **types.PublicKeyList, decode } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("Quantity", t.Name.Local): @@ -26627,7 +26641,7 @@ func awsRestxml_deserializeDocumentPublicKeySummary(v **types.PublicKeySummary, } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("CreatedTime", t.Name.Local): @@ -26644,7 +26658,7 @@ func awsRestxml_deserializeDocumentPublicKeySummary(v **types.PublicKeySummary, if err != nil { return err } - sv.CreatedTime = &t + sv.CreatedTime = ptr.Time(t) } case strings.EqualFold("EncodedKey", t.Name.Local): @@ -26660,7 +26674,7 @@ func awsRestxml_deserializeDocumentPublicKeySummary(v **types.PublicKeySummary, } if val != nil { xtv := string(val) - sv.EncodedKey = &xtv + sv.EncodedKey = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -26676,7 +26690,7 @@ func awsRestxml_deserializeDocumentPublicKeySummary(v **types.PublicKeySummary, } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -26692,7 +26706,7 @@ func awsRestxml_deserializeDocumentPublicKeySummary(v **types.PublicKeySummary, } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -26705,13 +26719,13 @@ func awsRestxml_deserializeDocumentPublicKeySummary(v **types.PublicKeySummary, return nil } -func awsRestxml_deserializeDocumentPublicKeySummaryList(v *[]*types.PublicKeySummary, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentPublicKeySummaryList(v *[]types.PublicKeySummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PublicKeySummary + var sv []types.PublicKeySummary if *v == nil { - sv = make([]*types.PublicKeySummary, 0) + sv = make([]types.PublicKeySummary, 0) } else { sv = *v } @@ -26727,11 +26741,13 @@ func awsRestxml_deserializeDocumentPublicKeySummaryList(v *[]*types.PublicKeySum } for { if strings.EqualFold("PublicKeySummary", t.Name.Local) { - var col *types.PublicKeySummary + var col types.PublicKeySummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentPublicKeySummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentPublicKeySummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -26744,23 +26760,25 @@ func awsRestxml_deserializeDocumentPublicKeySummaryList(v *[]*types.PublicKeySum return nil } -func awsRestxml_deserializeDocumentPublicKeySummaryListUnwrapped(v *[]*types.PublicKeySummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.PublicKeySummary +func awsRestxml_deserializeDocumentPublicKeySummaryListUnwrapped(v *[]types.PublicKeySummary, decoder smithyxml.NodeDecoder) error { + var sv []types.PublicKeySummary if *v == nil { - sv = make([]*types.PublicKeySummary, 0) + sv = make([]types.PublicKeySummary, 0) } else { sv = *v } switch { default: - var mv *types.PublicKeySummary + var mv types.PublicKeySummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentPublicKeySummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentPublicKeySummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -26801,7 +26819,7 @@ func awsRestxml_deserializeDocumentQueryArgProfile(v **types.QueryArgProfile, de } if val != nil { xtv := string(val) - sv.ProfileId = &xtv + sv.ProfileId = ptr.String(xtv) } case strings.EqualFold("QueryArg", t.Name.Local): @@ -26817,7 +26835,7 @@ func awsRestxml_deserializeDocumentQueryArgProfile(v **types.QueryArgProfile, de } if val != nil { xtv := string(val) - sv.QueryArg = &xtv + sv.QueryArg = ptr.String(xtv) } default: @@ -26865,7 +26883,7 @@ func awsRestxml_deserializeDocumentQueryArgProfileConfig(v **types.QueryArgProfi if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.ForwardWhenQueryArgProfileIsUnknown = &xtv + sv.ForwardWhenQueryArgProfileIsUnknown = ptr.Bool(xtv) } case strings.EqualFold("QueryArgProfiles", t.Name.Local): @@ -26919,7 +26937,7 @@ func awsRestxml_deserializeDocumentQueryArgProfileEmpty(v **types.QueryArgProfil } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26932,13 +26950,13 @@ func awsRestxml_deserializeDocumentQueryArgProfileEmpty(v **types.QueryArgProfil return nil } -func awsRestxml_deserializeDocumentQueryArgProfileList(v *[]*types.QueryArgProfile, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentQueryArgProfileList(v *[]types.QueryArgProfile, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.QueryArgProfile + var sv []types.QueryArgProfile if *v == nil { - sv = make([]*types.QueryArgProfile, 0) + sv = make([]types.QueryArgProfile, 0) } else { sv = *v } @@ -26954,11 +26972,13 @@ func awsRestxml_deserializeDocumentQueryArgProfileList(v *[]*types.QueryArgProfi } for { if strings.EqualFold("QueryArgProfile", t.Name.Local) { - var col *types.QueryArgProfile + var col types.QueryArgProfile nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentQueryArgProfile(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentQueryArgProfile(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -26971,23 +26991,25 @@ func awsRestxml_deserializeDocumentQueryArgProfileList(v *[]*types.QueryArgProfi return nil } -func awsRestxml_deserializeDocumentQueryArgProfileListUnwrapped(v *[]*types.QueryArgProfile, decoder smithyxml.NodeDecoder) error { - var sv []*types.QueryArgProfile +func awsRestxml_deserializeDocumentQueryArgProfileListUnwrapped(v *[]types.QueryArgProfile, decoder smithyxml.NodeDecoder) error { + var sv []types.QueryArgProfile if *v == nil { - sv = make([]*types.QueryArgProfile, 0) + sv = make([]types.QueryArgProfile, 0) } else { sv = *v } switch { default: - var mv *types.QueryArgProfile + var mv types.QueryArgProfile t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentQueryArgProfile(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentQueryArgProfile(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -27103,13 +27125,13 @@ func awsRestxml_deserializeDocumentQueryStringCacheKeys(v **types.QueryStringCac return nil } -func awsRestxml_deserializeDocumentQueryStringCacheKeysList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentQueryStringCacheKeysList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -27127,20 +27149,17 @@ func awsRestxml_deserializeDocumentQueryStringCacheKeysList(v *[]*string, decode decoder = memberDecoder for { if strings.EqualFold("Name", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -27153,17 +27172,17 @@ func awsRestxml_deserializeDocumentQueryStringCacheKeysList(v *[]*string, decode return nil } -func awsRestxml_deserializeDocumentQueryStringCacheKeysListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentQueryStringCacheKeysListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -27171,14 +27190,11 @@ func awsRestxml_deserializeDocumentQueryStringCacheKeysListUnwrapped(v *[]*strin return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -27240,13 +27256,13 @@ func awsRestxml_deserializeDocumentQueryStringNames(v **types.QueryStringNames, return nil } -func awsRestxml_deserializeDocumentQueryStringNamesList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentQueryStringNamesList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -27264,20 +27280,17 @@ func awsRestxml_deserializeDocumentQueryStringNamesList(v *[]*string, decoder sm decoder = memberDecoder for { if strings.EqualFold("Name", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -27290,17 +27303,17 @@ func awsRestxml_deserializeDocumentQueryStringNamesList(v *[]*string, decoder sm return nil } -func awsRestxml_deserializeDocumentQueryStringNamesListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentQueryStringNamesListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -27308,14 +27321,11 @@ func awsRestxml_deserializeDocumentQueryStringNamesListUnwrapped(v *[]*string, d return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -27357,7 +27367,7 @@ func awsRestxml_deserializeDocumentRealtimeLogConfig(v **types.RealtimeLogConfig } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("EndPoints", t.Name.Local): @@ -27385,7 +27395,7 @@ func awsRestxml_deserializeDocumentRealtimeLogConfig(v **types.RealtimeLogConfig } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("SamplingRate", t.Name.Local): @@ -27402,7 +27412,7 @@ func awsRestxml_deserializeDocumentRealtimeLogConfig(v **types.RealtimeLogConfig if err != nil { return err } - sv.SamplingRate = &i64 + sv.SamplingRate = ptr.Int64(i64) } default: @@ -27450,7 +27460,7 @@ func awsRestxml_deserializeDocumentRealtimeLogConfigAlreadyExists(v **types.Real } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27498,7 +27508,7 @@ func awsRestxml_deserializeDocumentRealtimeLogConfigInUse(v **types.RealtimeLogC } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27511,13 +27521,13 @@ func awsRestxml_deserializeDocumentRealtimeLogConfigInUse(v **types.RealtimeLogC return nil } -func awsRestxml_deserializeDocumentRealtimeLogConfigList(v *[]*types.RealtimeLogConfig, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentRealtimeLogConfigList(v *[]types.RealtimeLogConfig, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RealtimeLogConfig + var sv []types.RealtimeLogConfig if *v == nil { - sv = make([]*types.RealtimeLogConfig, 0) + sv = make([]types.RealtimeLogConfig, 0) } else { sv = *v } @@ -27533,11 +27543,13 @@ func awsRestxml_deserializeDocumentRealtimeLogConfigList(v *[]*types.RealtimeLog } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.RealtimeLogConfig + var col types.RealtimeLogConfig nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentRealtimeLogConfig(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentRealtimeLogConfig(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -27550,23 +27562,25 @@ func awsRestxml_deserializeDocumentRealtimeLogConfigList(v *[]*types.RealtimeLog return nil } -func awsRestxml_deserializeDocumentRealtimeLogConfigListUnwrapped(v *[]*types.RealtimeLogConfig, decoder smithyxml.NodeDecoder) error { - var sv []*types.RealtimeLogConfig +func awsRestxml_deserializeDocumentRealtimeLogConfigListUnwrapped(v *[]types.RealtimeLogConfig, decoder smithyxml.NodeDecoder) error { + var sv []types.RealtimeLogConfig if *v == nil { - sv = make([]*types.RealtimeLogConfig, 0) + sv = make([]types.RealtimeLogConfig, 0) } else { sv = *v } switch { default: - var mv *types.RealtimeLogConfig + var mv types.RealtimeLogConfig t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentRealtimeLogConfig(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentRealtimeLogConfig(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -27607,7 +27621,7 @@ func awsRestxml_deserializeDocumentRealtimeLogConfigs(v **types.RealtimeLogConfi if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = ptr.Bool(xtv) } case strings.EqualFold("Items", t.Name.Local): @@ -27629,7 +27643,7 @@ func awsRestxml_deserializeDocumentRealtimeLogConfigs(v **types.RealtimeLogConfi } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("MaxItems", t.Name.Local): @@ -27662,7 +27676,7 @@ func awsRestxml_deserializeDocumentRealtimeLogConfigs(v **types.RealtimeLogConfi } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } default: @@ -27755,7 +27769,7 @@ func awsRestxml_deserializeDocumentResourceInUse(v **types.ResourceInUse, decode } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27841,7 +27855,7 @@ func awsRestxml_deserializeDocumentS3Origin(v **types.S3Origin, decoder smithyxm } if val != nil { xtv := string(val) - sv.DomainName = &xtv + sv.DomainName = ptr.String(xtv) } case strings.EqualFold("OriginAccessIdentity", t.Name.Local): @@ -27857,7 +27871,7 @@ func awsRestxml_deserializeDocumentS3Origin(v **types.S3Origin, decoder smithyxm } if val != nil { xtv := string(val) - sv.OriginAccessIdentity = &xtv + sv.OriginAccessIdentity = ptr.String(xtv) } default: @@ -27905,7 +27919,7 @@ func awsRestxml_deserializeDocumentS3OriginConfig(v **types.S3OriginConfig, deco } if val != nil { xtv := string(val) - sv.OriginAccessIdentity = &xtv + sv.OriginAccessIdentity = ptr.String(xtv) } default: @@ -27953,7 +27967,7 @@ func awsRestxml_deserializeDocumentSigner(v **types.Signer, decoder smithyxml.No } if val != nil { xtv := string(val) - sv.AwsAccountNumber = &xtv + sv.AwsAccountNumber = ptr.String(xtv) } case strings.EqualFold("KeyPairIds", t.Name.Local): @@ -27972,13 +27986,13 @@ func awsRestxml_deserializeDocumentSigner(v **types.Signer, decoder smithyxml.No return nil } -func awsRestxml_deserializeDocumentSignerList(v *[]*types.Signer, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentSignerList(v *[]types.Signer, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Signer + var sv []types.Signer if *v == nil { - sv = make([]*types.Signer, 0) + sv = make([]types.Signer, 0) } else { sv = *v } @@ -27994,11 +28008,13 @@ func awsRestxml_deserializeDocumentSignerList(v *[]*types.Signer, decoder smithy } for { if strings.EqualFold("Signer", t.Name.Local) { - var col *types.Signer + var col types.Signer nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentSigner(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentSigner(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -28011,23 +28027,25 @@ func awsRestxml_deserializeDocumentSignerList(v *[]*types.Signer, decoder smithy return nil } -func awsRestxml_deserializeDocumentSignerListUnwrapped(v *[]*types.Signer, decoder smithyxml.NodeDecoder) error { - var sv []*types.Signer +func awsRestxml_deserializeDocumentSignerListUnwrapped(v *[]types.Signer, decoder smithyxml.NodeDecoder) error { + var sv []types.Signer if *v == nil { - sv = make([]*types.Signer, 0) + sv = make([]types.Signer, 0) } else { sv = *v } switch { default: - var mv *types.Signer + var mv types.Signer t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentSigner(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentSigner(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -28109,13 +28127,13 @@ func awsRestxml_deserializeDocumentSslProtocolsListUnwrapped(v *[]types.SslProto *v = sv return nil } -func awsRestxml_deserializeDocumentStatusCodeList(v *[]*int32, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentStatusCodeList(v *[]int32, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*int32 + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } @@ -28133,7 +28151,7 @@ func awsRestxml_deserializeDocumentStatusCodeList(v *[]*int32, decoder smithyxml decoder = memberDecoder for { if strings.EqualFold("StatusCode", t.Name.Local) { - var col *int32 + var col int32 val, done, err := decoder.Value() if err != nil { return err @@ -28147,7 +28165,7 @@ func awsRestxml_deserializeDocumentStatusCodeList(v *[]*int32, decoder smithyxml if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } sv = append(sv, col) } else { @@ -28160,17 +28178,17 @@ func awsRestxml_deserializeDocumentStatusCodeList(v *[]*int32, decoder smithyxml return nil } -func awsRestxml_deserializeDocumentStatusCodeListUnwrapped(v *[]*int32, decoder smithyxml.NodeDecoder) error { - var sv []*int32 +func awsRestxml_deserializeDocumentStatusCodeListUnwrapped(v *[]int32, decoder smithyxml.NodeDecoder) error { + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } switch { default: - var mv *int32 + var mv int32 t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -28186,7 +28204,7 @@ func awsRestxml_deserializeDocumentStatusCodeListUnwrapped(v *[]*int32, decoder if err != nil { return err } - mv = ptr.Int32(int32(i64)) + mv = int32(i64) } sv = append(sv, mv) } @@ -28289,7 +28307,7 @@ func awsRestxml_deserializeDocumentStreamingDistribution(v **types.StreamingDist } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("DomainName", t.Name.Local): @@ -28305,7 +28323,7 @@ func awsRestxml_deserializeDocumentStreamingDistribution(v **types.StreamingDist } if val != nil { xtv := string(val) - sv.DomainName = &xtv + sv.DomainName = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -28321,7 +28339,7 @@ func awsRestxml_deserializeDocumentStreamingDistribution(v **types.StreamingDist } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("LastModifiedTime", t.Name.Local): @@ -28338,7 +28356,7 @@ func awsRestxml_deserializeDocumentStreamingDistribution(v **types.StreamingDist if err != nil { return err } - sv.LastModifiedTime = &t + sv.LastModifiedTime = ptr.Time(t) } case strings.EqualFold("Status", t.Name.Local): @@ -28354,7 +28372,7 @@ func awsRestxml_deserializeDocumentStreamingDistribution(v **types.StreamingDist } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("StreamingDistributionConfig", t.Name.Local): @@ -28408,7 +28426,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionAlreadyExists(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -28462,7 +28480,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionConfig(v **types.Streami } if val != nil { xtv := string(val) - sv.CallerReference = &xtv + sv.CallerReference = ptr.String(xtv) } case strings.EqualFold("Comment", t.Name.Local): @@ -28478,7 +28496,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionConfig(v **types.Streami } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("Enabled", t.Name.Local): @@ -28494,7 +28512,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionConfig(v **types.Streami if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("Logging", t.Name.Local): @@ -28573,7 +28591,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionList(v **types.Streaming if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = ptr.Bool(xtv) } case strings.EqualFold("Items", t.Name.Local): @@ -28595,7 +28613,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionList(v **types.Streaming } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("MaxItems", t.Name.Local): @@ -28628,7 +28646,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionList(v **types.Streaming } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("Quantity", t.Name.Local): @@ -28693,7 +28711,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionNotDisabled(v **types.St } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -28747,7 +28765,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionSummary(v **types.Stream } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("Comment", t.Name.Local): @@ -28763,7 +28781,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionSummary(v **types.Stream } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("DomainName", t.Name.Local): @@ -28779,7 +28797,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionSummary(v **types.Stream } if val != nil { xtv := string(val) - sv.DomainName = &xtv + sv.DomainName = ptr.String(xtv) } case strings.EqualFold("Enabled", t.Name.Local): @@ -28795,7 +28813,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionSummary(v **types.Stream if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -28811,7 +28829,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionSummary(v **types.Stream } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("LastModifiedTime", t.Name.Local): @@ -28828,7 +28846,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionSummary(v **types.Stream if err != nil { return err } - sv.LastModifiedTime = &t + sv.LastModifiedTime = ptr.Time(t) } case strings.EqualFold("PriceClass", t.Name.Local): @@ -28863,7 +28881,7 @@ func awsRestxml_deserializeDocumentStreamingDistributionSummary(v **types.Stream } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("TrustedSigners", t.Name.Local): @@ -28882,13 +28900,13 @@ func awsRestxml_deserializeDocumentStreamingDistributionSummary(v **types.Stream return nil } -func awsRestxml_deserializeDocumentStreamingDistributionSummaryList(v *[]*types.StreamingDistributionSummary, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentStreamingDistributionSummaryList(v *[]types.StreamingDistributionSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StreamingDistributionSummary + var sv []types.StreamingDistributionSummary if *v == nil { - sv = make([]*types.StreamingDistributionSummary, 0) + sv = make([]types.StreamingDistributionSummary, 0) } else { sv = *v } @@ -28904,11 +28922,13 @@ func awsRestxml_deserializeDocumentStreamingDistributionSummaryList(v *[]*types. } for { if strings.EqualFold("StreamingDistributionSummary", t.Name.Local) { - var col *types.StreamingDistributionSummary + var col types.StreamingDistributionSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentStreamingDistributionSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentStreamingDistributionSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -28921,23 +28941,25 @@ func awsRestxml_deserializeDocumentStreamingDistributionSummaryList(v *[]*types. return nil } -func awsRestxml_deserializeDocumentStreamingDistributionSummaryListUnwrapped(v *[]*types.StreamingDistributionSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.StreamingDistributionSummary +func awsRestxml_deserializeDocumentStreamingDistributionSummaryListUnwrapped(v *[]types.StreamingDistributionSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.StreamingDistributionSummary if *v == nil { - sv = make([]*types.StreamingDistributionSummary, 0) + sv = make([]types.StreamingDistributionSummary, 0) } else { sv = *v } switch { default: - var mv *types.StreamingDistributionSummary + var mv types.StreamingDistributionSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentStreamingDistributionSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentStreamingDistributionSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -28978,7 +29000,7 @@ func awsRestxml_deserializeDocumentStreamingLoggingConfig(v **types.StreamingLog } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("Enabled", t.Name.Local): @@ -28994,7 +29016,7 @@ func awsRestxml_deserializeDocumentStreamingLoggingConfig(v **types.StreamingLog if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("Prefix", t.Name.Local): @@ -29010,7 +29032,7 @@ func awsRestxml_deserializeDocumentStreamingLoggingConfig(v **types.StreamingLog } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } default: @@ -29058,7 +29080,7 @@ func awsRestxml_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDeco } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -29074,7 +29096,7 @@ func awsRestxml_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDeco } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -29087,13 +29109,13 @@ func awsRestxml_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDeco return nil } -func awsRestxml_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -29109,11 +29131,13 @@ func awsRestxml_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.No } for { if strings.EqualFold("Tag", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -29126,23 +29150,25 @@ func awsRestxml_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.No return nil } -func awsRestxml_deserializeDocumentTagListUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsRestxml_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -29221,7 +29247,7 @@ func awsRestxml_deserializeDocumentTooManyCacheBehaviors(v **types.TooManyCacheB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29269,7 +29295,7 @@ func awsRestxml_deserializeDocumentTooManyCachePolicies(v **types.TooManyCachePo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29317,7 +29343,7 @@ func awsRestxml_deserializeDocumentTooManyCertificates(v **types.TooManyCertific } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29365,7 +29391,7 @@ func awsRestxml_deserializeDocumentTooManyCloudFrontOriginAccessIdentities(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29413,7 +29439,7 @@ func awsRestxml_deserializeDocumentTooManyCookieNamesInWhiteList(v **types.TooMa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29461,7 +29487,7 @@ func awsRestxml_deserializeDocumentTooManyCookiesInCachePolicy(v **types.TooMany } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29509,7 +29535,7 @@ func awsRestxml_deserializeDocumentTooManyCookiesInOriginRequestPolicy(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29557,7 +29583,7 @@ func awsRestxml_deserializeDocumentTooManyDistributionCNAMEs(v **types.TooManyDi } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29605,7 +29631,7 @@ func awsRestxml_deserializeDocumentTooManyDistributions(v **types.TooManyDistrib } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29653,7 +29679,7 @@ func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToCachePolicy(v } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29701,7 +29727,7 @@ func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToFieldLevelEnc } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29749,7 +29775,7 @@ func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToKeyGroup(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29797,7 +29823,7 @@ func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToOriginRequest } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29845,7 +29871,7 @@ func awsRestxml_deserializeDocumentTooManyDistributionsWithLambdaAssociations(v } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29893,7 +29919,7 @@ func awsRestxml_deserializeDocumentTooManyDistributionsWithSingleFunctionARN(v * } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29941,7 +29967,7 @@ func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionConfigs(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29989,7 +30015,7 @@ func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionContentTypeProfile } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30037,7 +30063,7 @@ func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionEncryptionEntities } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30085,7 +30111,7 @@ func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionFieldPatterns(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30133,7 +30159,7 @@ func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionProfiles(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30181,7 +30207,7 @@ func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionQueryArgProfiles(v } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30229,7 +30255,7 @@ func awsRestxml_deserializeDocumentTooManyHeadersInCachePolicy(v **types.TooMany } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30277,7 +30303,7 @@ func awsRestxml_deserializeDocumentTooManyHeadersInForwardedValues(v **types.Too } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30325,7 +30351,7 @@ func awsRestxml_deserializeDocumentTooManyHeadersInOriginRequestPolicy(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30373,7 +30399,7 @@ func awsRestxml_deserializeDocumentTooManyInvalidationsInProgress(v **types.TooM } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30421,7 +30447,7 @@ func awsRestxml_deserializeDocumentTooManyKeyGroups(v **types.TooManyKeyGroups, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30469,7 +30495,7 @@ func awsRestxml_deserializeDocumentTooManyKeyGroupsAssociatedToDistribution(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30517,7 +30543,7 @@ func awsRestxml_deserializeDocumentTooManyLambdaFunctionAssociations(v **types.T } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30565,7 +30591,7 @@ func awsRestxml_deserializeDocumentTooManyOriginCustomHeaders(v **types.TooManyO } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30613,7 +30639,7 @@ func awsRestxml_deserializeDocumentTooManyOriginGroupsPerDistribution(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30661,7 +30687,7 @@ func awsRestxml_deserializeDocumentTooManyOriginRequestPolicies(v **types.TooMan } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30709,7 +30735,7 @@ func awsRestxml_deserializeDocumentTooManyOrigins(v **types.TooManyOrigins, deco } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30757,7 +30783,7 @@ func awsRestxml_deserializeDocumentTooManyPublicKeys(v **types.TooManyPublicKeys } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30805,7 +30831,7 @@ func awsRestxml_deserializeDocumentTooManyPublicKeysInKeyGroup(v **types.TooMany } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30853,7 +30879,7 @@ func awsRestxml_deserializeDocumentTooManyQueryStringParameters(v **types.TooMan } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30901,7 +30927,7 @@ func awsRestxml_deserializeDocumentTooManyQueryStringsInCachePolicy(v **types.To } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30949,7 +30975,7 @@ func awsRestxml_deserializeDocumentTooManyQueryStringsInOriginRequestPolicy(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30997,7 +31023,7 @@ func awsRestxml_deserializeDocumentTooManyRealtimeLogConfigs(v **types.TooManyRe } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31045,7 +31071,7 @@ func awsRestxml_deserializeDocumentTooManyStreamingDistributionCNAMEs(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31093,7 +31119,7 @@ func awsRestxml_deserializeDocumentTooManyStreamingDistributions(v **types.TooMa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31141,7 +31167,7 @@ func awsRestxml_deserializeDocumentTooManyTrustedSigners(v **types.TooManyTruste } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31189,7 +31215,7 @@ func awsRestxml_deserializeDocumentTrustedKeyGroupDoesNotExist(v **types.Trusted } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31202,13 +31228,13 @@ func awsRestxml_deserializeDocumentTrustedKeyGroupDoesNotExist(v **types.Trusted return nil } -func awsRestxml_deserializeDocumentTrustedKeyGroupIdList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTrustedKeyGroupIdList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -31226,20 +31252,17 @@ func awsRestxml_deserializeDocumentTrustedKeyGroupIdList(v *[]*string, decoder s decoder = memberDecoder for { if strings.EqualFold("KeyGroup", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -31252,17 +31275,17 @@ func awsRestxml_deserializeDocumentTrustedKeyGroupIdList(v *[]*string, decoder s return nil } -func awsRestxml_deserializeDocumentTrustedKeyGroupIdListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentTrustedKeyGroupIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -31270,14 +31293,11 @@ func awsRestxml_deserializeDocumentTrustedKeyGroupIdListUnwrapped(v *[]*string, return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -31319,7 +31339,7 @@ func awsRestxml_deserializeDocumentTrustedKeyGroups(v **types.TrustedKeyGroups, if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("Items", t.Name.Local): @@ -31390,7 +31410,7 @@ func awsRestxml_deserializeDocumentTrustedSignerDoesNotExist(v **types.TrustedSi } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31438,7 +31458,7 @@ func awsRestxml_deserializeDocumentTrustedSigners(v **types.TrustedSigners, deco if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("Items", t.Name.Local): @@ -31509,7 +31529,7 @@ func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate } if val != nil { xtv := string(val) - sv.ACMCertificateArn = &xtv + sv.ACMCertificateArn = ptr.String(xtv) } case strings.EqualFold("Certificate", t.Name.Local): @@ -31525,7 +31545,7 @@ func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate } if val != nil { xtv := string(val) - sv.Certificate = &xtv + sv.Certificate = ptr.String(xtv) } case strings.EqualFold("CertificateSource", t.Name.Local): @@ -31554,7 +31574,7 @@ func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.CloudFrontDefaultCertificate = &xtv + sv.CloudFrontDefaultCertificate = ptr.Bool(xtv) } case strings.EqualFold("IAMCertificateId", t.Name.Local): @@ -31570,7 +31590,7 @@ func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate } if val != nil { xtv := string(val) - sv.IAMCertificateId = &xtv + sv.IAMCertificateId = ptr.String(xtv) } case strings.EqualFold("MinimumProtocolVersion", t.Name.Local): diff --git a/service/cloudfront/go.mod b/service/cloudfront/go.mod index 506daf8dfe9..f05ed145e6c 100644 --- a/service/cloudfront/go.mod +++ b/service/cloudfront/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cloudfront go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cloudfront/serializers.go b/service/cloudfront/serializers.go index 8e691e3e0c9..5f89ad1006d 100644 --- a/service/cloudfront/serializers.go +++ b/service/cloudfront/serializers.go @@ -526,13 +526,10 @@ func awsRestxml_serializeOpHttpBindingsCreateInvalidationInput(v *CreateInvalida return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DistributionId == nil { + if v.DistributionId == nil || len(*v.DistributionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DistributionId must not be empty")} } if v.DistributionId != nil { - if len(*v.DistributionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DistributionId must not be empty")} - } if err := encoder.SetURI("DistributionId").String(*v.DistributionId); err != nil { return err } @@ -688,13 +685,10 @@ func awsRestxml_serializeOpHttpBindingsCreateMonitoringSubscriptionInput(v *Crea return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DistributionId == nil { + if v.DistributionId == nil || len(*v.DistributionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DistributionId must not be empty")} } if v.DistributionId != nil { - if len(*v.DistributionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DistributionId must not be empty")} - } if err := encoder.SetURI("DistributionId").String(*v.DistributionId); err != nil { return err } @@ -1167,23 +1161,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteCachePolicyInput(v *DeleteCachePoli return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -1240,23 +1229,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteCloudFrontOriginAccessIdentityInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -1313,23 +1297,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteDistributionInput(v *DeleteDistribu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -1386,23 +1365,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteFieldLevelEncryptionConfigInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -1459,23 +1433,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteFieldLevelEncryptionProfileInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -1532,23 +1501,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteKeyGroupInput(v *DeleteKeyGroupInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -1605,13 +1569,10 @@ func awsRestxml_serializeOpHttpBindingsDeleteMonitoringSubscriptionInput(v *Dele return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DistributionId == nil { + if v.DistributionId == nil || len(*v.DistributionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DistributionId must not be empty")} } if v.DistributionId != nil { - if len(*v.DistributionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DistributionId must not be empty")} - } if err := encoder.SetURI("DistributionId").String(*v.DistributionId); err != nil { return err } @@ -1671,23 +1632,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteOriginRequestPolicyInput(v *DeleteO return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -1744,23 +1700,18 @@ func awsRestxml_serializeOpHttpBindingsDeletePublicKeyInput(v *DeletePublicKeyIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -1912,23 +1863,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteStreamingDistributionInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -1985,13 +1931,10 @@ func awsRestxml_serializeOpHttpBindingsGetCachePolicyInput(v *GetCachePolicyInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2051,13 +1994,10 @@ func awsRestxml_serializeOpHttpBindingsGetCachePolicyConfigInput(v *GetCachePoli return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2117,13 +2057,10 @@ func awsRestxml_serializeOpHttpBindingsGetCloudFrontOriginAccessIdentityInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2183,13 +2120,10 @@ func awsRestxml_serializeOpHttpBindingsGetCloudFrontOriginAccessIdentityConfigIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2249,13 +2183,10 @@ func awsRestxml_serializeOpHttpBindingsGetDistributionInput(v *GetDistributionIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2315,13 +2246,10 @@ func awsRestxml_serializeOpHttpBindingsGetDistributionConfigInput(v *GetDistribu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2381,13 +2309,10 @@ func awsRestxml_serializeOpHttpBindingsGetFieldLevelEncryptionInput(v *GetFieldL return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2447,13 +2372,10 @@ func awsRestxml_serializeOpHttpBindingsGetFieldLevelEncryptionConfigInput(v *Get return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2513,13 +2435,10 @@ func awsRestxml_serializeOpHttpBindingsGetFieldLevelEncryptionProfileInput(v *Ge return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2579,13 +2498,10 @@ func awsRestxml_serializeOpHttpBindingsGetFieldLevelEncryptionProfileConfigInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2645,25 +2561,19 @@ func awsRestxml_serializeOpHttpBindingsGetInvalidationInput(v *GetInvalidationIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DistributionId == nil { + if v.DistributionId == nil || len(*v.DistributionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DistributionId must not be empty")} } if v.DistributionId != nil { - if len(*v.DistributionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DistributionId must not be empty")} - } if err := encoder.SetURI("DistributionId").String(*v.DistributionId); err != nil { return err } } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2723,13 +2633,10 @@ func awsRestxml_serializeOpHttpBindingsGetKeyGroupInput(v *GetKeyGroupInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2789,13 +2696,10 @@ func awsRestxml_serializeOpHttpBindingsGetKeyGroupConfigInput(v *GetKeyGroupConf return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2855,13 +2759,10 @@ func awsRestxml_serializeOpHttpBindingsGetMonitoringSubscriptionInput(v *GetMoni return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DistributionId == nil { + if v.DistributionId == nil || len(*v.DistributionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DistributionId must not be empty")} } if v.DistributionId != nil { - if len(*v.DistributionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DistributionId must not be empty")} - } if err := encoder.SetURI("DistributionId").String(*v.DistributionId); err != nil { return err } @@ -2921,13 +2822,10 @@ func awsRestxml_serializeOpHttpBindingsGetOriginRequestPolicyInput(v *GetOriginR return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2987,13 +2885,10 @@ func awsRestxml_serializeOpHttpBindingsGetOriginRequestPolicyConfigInput(v *GetO return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -3053,13 +2948,10 @@ func awsRestxml_serializeOpHttpBindingsGetPublicKeyInput(v *GetPublicKeyInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -3119,13 +3011,10 @@ func awsRestxml_serializeOpHttpBindingsGetPublicKeyConfigInput(v *GetPublicKeyCo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -3280,13 +3169,10 @@ func awsRestxml_serializeOpHttpBindingsGetStreamingDistributionInput(v *GetStrea return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -3346,13 +3232,10 @@ func awsRestxml_serializeOpHttpBindingsGetStreamingDistributionConfigInput(v *Ge return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -3602,13 +3485,10 @@ func awsRestxml_serializeOpHttpBindingsListDistributionsByCachePolicyIdInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CachePolicyId == nil { + if v.CachePolicyId == nil || len(*v.CachePolicyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CachePolicyId must not be empty")} } if v.CachePolicyId != nil { - if len(*v.CachePolicyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CachePolicyId must not be empty")} - } if err := encoder.SetURI("CachePolicyId").String(*v.CachePolicyId); err != nil { return err } @@ -3676,13 +3556,10 @@ func awsRestxml_serializeOpHttpBindingsListDistributionsByKeyGroupInput(v *ListD return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.KeyGroupId == nil { + if v.KeyGroupId == nil || len(*v.KeyGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member KeyGroupId must not be empty")} } if v.KeyGroupId != nil { - if len(*v.KeyGroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member KeyGroupId must not be empty")} - } if err := encoder.SetURI("KeyGroupId").String(*v.KeyGroupId); err != nil { return err } @@ -3758,13 +3635,10 @@ func awsRestxml_serializeOpHttpBindingsListDistributionsByOriginRequestPolicyIdI encoder.SetQuery("MaxItems").String(*v.MaxItems) } - if v.OriginRequestPolicyId == nil { + if v.OriginRequestPolicyId == nil || len(*v.OriginRequestPolicyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OriginRequestPolicyId must not be empty")} } if v.OriginRequestPolicyId != nil { - if len(*v.OriginRequestPolicyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member OriginRequestPolicyId must not be empty")} - } if err := encoder.SetURI("OriginRequestPolicyId").String(*v.OriginRequestPolicyId); err != nil { return err } @@ -3949,13 +3823,10 @@ func awsRestxml_serializeOpHttpBindingsListDistributionsByWebACLIdInput(v *ListD encoder.SetQuery("MaxItems").String(*v.MaxItems) } - if v.WebACLId == nil { + if v.WebACLId == nil || len(*v.WebACLId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member WebACLId must not be empty")} } if v.WebACLId != nil { - if len(*v.WebACLId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member WebACLId must not be empty")} - } if err := encoder.SetURI("WebACLId").String(*v.WebACLId); err != nil { return err } @@ -4139,13 +4010,10 @@ func awsRestxml_serializeOpHttpBindingsListInvalidationsInput(v *ListInvalidatio return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DistributionId == nil { + if v.DistributionId == nil || len(*v.DistributionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DistributionId must not be empty")} } if v.DistributionId != nil { - if len(*v.DistributionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DistributionId must not be empty")} - } if err := encoder.SetURI("DistributionId").String(*v.DistributionId); err != nil { return err } @@ -4770,23 +4638,18 @@ func awsRestxml_serializeOpHttpBindingsUpdateCachePolicyInput(v *UpdateCachePoli return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -4866,23 +4729,18 @@ func awsRestxml_serializeOpHttpBindingsUpdateCloudFrontOriginAccessIdentityInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -4962,23 +4820,18 @@ func awsRestxml_serializeOpHttpBindingsUpdateDistributionInput(v *UpdateDistribu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -5058,23 +4911,18 @@ func awsRestxml_serializeOpHttpBindingsUpdateFieldLevelEncryptionConfigInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -5154,23 +5002,18 @@ func awsRestxml_serializeOpHttpBindingsUpdateFieldLevelEncryptionProfileInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -5250,23 +5093,18 @@ func awsRestxml_serializeOpHttpBindingsUpdateKeyGroupInput(v *UpdateKeyGroupInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -5346,23 +5184,18 @@ func awsRestxml_serializeOpHttpBindingsUpdateOriginRequestPolicyInput(v *UpdateO return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -5442,23 +5275,18 @@ func awsRestxml_serializeOpHttpBindingsUpdatePublicKeyInput(v *UpdatePublicKeyIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -5670,23 +5498,18 @@ func awsRestxml_serializeOpHttpBindingsUpdateStreamingDistributionInput(v *Updat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } return nil @@ -5721,7 +5544,7 @@ func awsRestxml_serializeDocumentAliases(v *types.Aliases, value smithyxml.Value return nil } -func awsRestxml_serializeDocumentAliasList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentAliasList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -5735,13 +5558,8 @@ func awsRestxml_serializeDocumentAliasList(v []*string, value smithyxml.Value) e } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -5788,7 +5606,7 @@ func awsRestxml_serializeDocumentAllowedMethods(v *types.AllowedMethods, value s return nil } -func awsRestxml_serializeDocumentAwsAccountNumberList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentAwsAccountNumberList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -5802,13 +5620,8 @@ func awsRestxml_serializeDocumentAwsAccountNumberList(v []*string, value smithyx } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -6015,7 +5828,7 @@ func awsRestxml_serializeDocumentCacheBehavior(v *types.CacheBehavior, value smi return nil } -func awsRestxml_serializeDocumentCacheBehaviorList(v []*types.CacheBehavior, value smithyxml.Value) error { +func awsRestxml_serializeDocumentCacheBehaviorList(v []types.CacheBehavior, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -6029,13 +5842,8 @@ func awsRestxml_serializeDocumentCacheBehaviorList(v []*types.CacheBehavior, val } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentCacheBehavior(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentCacheBehavior(&v[i], am); err != nil { return err } } @@ -6354,7 +6162,7 @@ func awsRestxml_serializeDocumentContentTypeProfileConfig(v *types.ContentTypePr return nil } -func awsRestxml_serializeDocumentContentTypeProfileList(v []*types.ContentTypeProfile, value smithyxml.Value) error { +func awsRestxml_serializeDocumentContentTypeProfileList(v []types.ContentTypeProfile, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -6368,13 +6176,8 @@ func awsRestxml_serializeDocumentContentTypeProfileList(v []*types.ContentTypePr } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentContentTypeProfile(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentContentTypeProfile(&v[i], am); err != nil { return err } } @@ -6410,7 +6213,7 @@ func awsRestxml_serializeDocumentContentTypeProfiles(v *types.ContentTypeProfile return nil } -func awsRestxml_serializeDocumentCookieNameList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentCookieNameList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -6424,13 +6227,8 @@ func awsRestxml_serializeDocumentCookieNameList(v []*string, value smithyxml.Val } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -6542,7 +6340,7 @@ func awsRestxml_serializeDocumentCustomErrorResponse(v *types.CustomErrorRespons return nil } -func awsRestxml_serializeDocumentCustomErrorResponseList(v []*types.CustomErrorResponse, value smithyxml.Value) error { +func awsRestxml_serializeDocumentCustomErrorResponseList(v []types.CustomErrorResponse, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -6556,13 +6354,8 @@ func awsRestxml_serializeDocumentCustomErrorResponseList(v []*types.CustomErrorR } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentCustomErrorResponse(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentCustomErrorResponse(&v[i], am); err != nil { return err } } @@ -7201,7 +6994,7 @@ func awsRestxml_serializeDocumentEncryptionEntity(v *types.EncryptionEntity, val return nil } -func awsRestxml_serializeDocumentEncryptionEntityList(v []*types.EncryptionEntity, value smithyxml.Value) error { +func awsRestxml_serializeDocumentEncryptionEntityList(v []types.EncryptionEntity, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -7215,13 +7008,8 @@ func awsRestxml_serializeDocumentEncryptionEntityList(v []*types.EncryptionEntit } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentEncryptionEntity(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentEncryptionEntity(&v[i], am); err != nil { return err } } @@ -7257,20 +7045,15 @@ func awsRestxml_serializeDocumentEndPoint(v *types.EndPoint, value smithyxml.Val return nil } -func awsRestxml_serializeDocumentEndPointList(v []*types.EndPoint, value smithyxml.Value) error { +func awsRestxml_serializeDocumentEndPointList(v []types.EndPoint, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentEndPoint(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentEndPoint(&v[i], am); err != nil { return err } } @@ -7381,7 +7164,7 @@ func awsRestxml_serializeDocumentFieldLevelEncryptionProfileConfig(v *types.Fiel return nil } -func awsRestxml_serializeDocumentFieldList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentFieldList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -7395,18 +7178,13 @@ func awsRestxml_serializeDocumentFieldList(v []*string, value smithyxml.Value) e } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } -func awsRestxml_serializeDocumentFieldPatternList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentFieldPatternList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -7420,13 +7198,8 @@ func awsRestxml_serializeDocumentFieldPatternList(v []*string, value smithyxml.V } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -7555,7 +7328,7 @@ func awsRestxml_serializeDocumentGeoRestriction(v *types.GeoRestriction, value s return nil } -func awsRestxml_serializeDocumentHeaderList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentHeaderList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -7569,13 +7342,8 @@ func awsRestxml_serializeDocumentHeaderList(v []*string, value smithyxml.Value) } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -7743,7 +7511,7 @@ func awsRestxml_serializeDocumentLambdaFunctionAssociation(v *types.LambdaFuncti return nil } -func awsRestxml_serializeDocumentLambdaFunctionAssociationList(v []*types.LambdaFunctionAssociation, value smithyxml.Value) error { +func awsRestxml_serializeDocumentLambdaFunctionAssociationList(v []types.LambdaFunctionAssociation, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -7757,13 +7525,8 @@ func awsRestxml_serializeDocumentLambdaFunctionAssociationList(v []*types.Lambda } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentLambdaFunctionAssociation(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentLambdaFunctionAssociation(&v[i], am); err != nil { return err } } @@ -7799,7 +7562,7 @@ func awsRestxml_serializeDocumentLambdaFunctionAssociations(v *types.LambdaFunct return nil } -func awsRestxml_serializeDocumentLocationList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentLocationList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -7813,13 +7576,8 @@ func awsRestxml_serializeDocumentLocationList(v []*string, value smithyxml.Value } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -8050,7 +7808,7 @@ func awsRestxml_serializeDocumentOriginCustomHeader(v *types.OriginCustomHeader, return nil } -func awsRestxml_serializeDocumentOriginCustomHeadersList(v []*types.OriginCustomHeader, value smithyxml.Value) error { +func awsRestxml_serializeDocumentOriginCustomHeadersList(v []types.OriginCustomHeader, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -8064,13 +7822,8 @@ func awsRestxml_serializeDocumentOriginCustomHeadersList(v []*types.OriginCustom } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentOriginCustomHeader(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentOriginCustomHeader(&v[i], am); err != nil { return err } } @@ -8137,7 +7890,7 @@ func awsRestxml_serializeDocumentOriginGroupFailoverCriteria(v *types.OriginGrou return nil } -func awsRestxml_serializeDocumentOriginGroupList(v []*types.OriginGroup, value smithyxml.Value) error { +func awsRestxml_serializeDocumentOriginGroupList(v []types.OriginGroup, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -8151,13 +7904,8 @@ func awsRestxml_serializeDocumentOriginGroupList(v []*types.OriginGroup, value s } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentOriginGroup(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentOriginGroup(&v[i], am); err != nil { return err } } @@ -8180,7 +7928,7 @@ func awsRestxml_serializeDocumentOriginGroupMember(v *types.OriginGroupMember, v return nil } -func awsRestxml_serializeDocumentOriginGroupMemberList(v []*types.OriginGroupMember, value smithyxml.Value) error { +func awsRestxml_serializeDocumentOriginGroupMemberList(v []types.OriginGroupMember, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -8194,13 +7942,8 @@ func awsRestxml_serializeDocumentOriginGroupMemberList(v []*types.OriginGroupMem } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentOriginGroupMember(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentOriginGroupMember(&v[i], am); err != nil { return err } } @@ -8265,7 +8008,7 @@ func awsRestxml_serializeDocumentOriginGroups(v *types.OriginGroups, value smith return nil } -func awsRestxml_serializeDocumentOriginList(v []*types.Origin, value smithyxml.Value) error { +func awsRestxml_serializeDocumentOriginList(v []types.Origin, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -8279,13 +8022,8 @@ func awsRestxml_serializeDocumentOriginList(v []*types.Origin, value smithyxml.V } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentOrigin(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentOrigin(&v[i], am); err != nil { return err } } @@ -8596,7 +8334,7 @@ func awsRestxml_serializeDocumentParametersInCacheKeyAndForwardedToOrigin(v *typ return nil } -func awsRestxml_serializeDocumentPathList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentPathList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -8610,13 +8348,8 @@ func awsRestxml_serializeDocumentPathList(v []*string, value smithyxml.Value) er } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -8699,7 +8432,7 @@ func awsRestxml_serializeDocumentPublicKeyConfig(v *types.PublicKeyConfig, value return nil } -func awsRestxml_serializeDocumentPublicKeyIdList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentPublicKeyIdList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -8713,13 +8446,8 @@ func awsRestxml_serializeDocumentPublicKeyIdList(v []*string, value smithyxml.Va } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -8780,7 +8508,7 @@ func awsRestxml_serializeDocumentQueryArgProfileConfig(v *types.QueryArgProfileC return nil } -func awsRestxml_serializeDocumentQueryArgProfileList(v []*types.QueryArgProfile, value smithyxml.Value) error { +func awsRestxml_serializeDocumentQueryArgProfileList(v []types.QueryArgProfile, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -8794,13 +8522,8 @@ func awsRestxml_serializeDocumentQueryArgProfileList(v []*types.QueryArgProfile, } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentQueryArgProfile(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentQueryArgProfile(&v[i], am); err != nil { return err } } @@ -8865,7 +8588,7 @@ func awsRestxml_serializeDocumentQueryStringCacheKeys(v *types.QueryStringCacheK return nil } -func awsRestxml_serializeDocumentQueryStringCacheKeysList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentQueryStringCacheKeysList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -8879,13 +8602,8 @@ func awsRestxml_serializeDocumentQueryStringCacheKeysList(v []*string, value smi } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -8919,7 +8637,7 @@ func awsRestxml_serializeDocumentQueryStringNames(v *types.QueryStringNames, val return nil } -func awsRestxml_serializeDocumentQueryStringNamesList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentQueryStringNamesList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -8933,13 +8651,8 @@ func awsRestxml_serializeDocumentQueryStringNamesList(v []*string, value smithyx } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -9041,7 +8754,7 @@ func awsRestxml_serializeDocumentSslProtocolsList(v []types.SslProtocol, value s return nil } -func awsRestxml_serializeDocumentStatusCodeList(v []*int32, value smithyxml.Value) error { +func awsRestxml_serializeDocumentStatusCodeList(v []int32, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -9055,13 +8768,8 @@ func awsRestxml_serializeDocumentStatusCodeList(v []*int32, value smithyxml.Valu } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.Integer(*v[i]) + am.Integer(v[i]) } return nil } @@ -9292,7 +9000,7 @@ func awsRestxml_serializeDocumentTag(v *types.Tag, value smithyxml.Value) error return nil } -func awsRestxml_serializeDocumentTagKeyList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentTagKeyList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -9306,13 +9014,8 @@ func awsRestxml_serializeDocumentTagKeyList(v []*string, value smithyxml.Value) } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -9335,7 +9038,7 @@ func awsRestxml_serializeDocumentTagKeys(v *types.TagKeys, value smithyxml.Value return nil } -func awsRestxml_serializeDocumentTagList(v []*types.Tag, value smithyxml.Value) error { +func awsRestxml_serializeDocumentTagList(v []types.Tag, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -9349,13 +9052,8 @@ func awsRestxml_serializeDocumentTagList(v []*types.Tag, value smithyxml.Value) } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentTag(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentTag(&v[i], am); err != nil { return err } } @@ -9380,7 +9078,7 @@ func awsRestxml_serializeDocumentTags(v *types.Tags, value smithyxml.Value) erro return nil } -func awsRestxml_serializeDocumentTrustedKeyGroupIdList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentTrustedKeyGroupIdList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -9394,13 +9092,8 @@ func awsRestxml_serializeDocumentTrustedKeyGroupIdList(v []*string, value smithy } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } diff --git a/service/cloudfront/types/types.go b/service/cloudfront/types/types.go index e7b0b4c481f..dda710632d5 100644 --- a/service/cloudfront/types/types.go +++ b/service/cloudfront/types/types.go @@ -25,7 +25,7 @@ type ActiveTrustedKeyGroups struct { // A list of key groups, including the identifiers of the public keys in each key // group that CloudFront can use to verify the signatures of signed URLs and signed // cookies. - Items []*KGKeyPairIds + Items []KGKeyPairIds } // A list of AWS accounts and the active CloudFront key pairs in each account that @@ -47,7 +47,7 @@ type ActiveTrustedSigners struct { // A list of AWS accounts and the identifiers of active CloudFront key pairs in // each account that CloudFront can use to verify the signatures of signed URLs and // signed cookies. - Items []*Signer + Items []Signer } // A complex type that contains information about CNAMEs (alternate domain names), @@ -62,7 +62,7 @@ type Aliases struct { // A complex type that contains the CNAME aliases, if any, that you want to // associate with this distribution. - Items []*string + Items []string } // AWS services in China customers must file for an Internet Content Provider (ICP) @@ -386,7 +386,7 @@ type CacheBehaviors struct { // Optional: A complex type that contains cache behaviors for this distribution. If // Quantity is 0, you can omit Items. - Items []*CacheBehavior + Items []CacheBehavior } // A complex type that controls whether CloudFront caches the response to requests @@ -592,7 +592,7 @@ type CachePolicyList struct { Quantity *int32 // Contains the cache policies in the list. - Items []*CachePolicySummary + Items []CachePolicySummary // If there are more items in the list than are in this response, this element is // present. It contains the value that you should use in the Marker field of a @@ -735,7 +735,7 @@ type CloudFrontOriginAccessIdentityList struct { // A complex type that contains one CloudFrontOriginAccessIdentitySummary element // for each origin access identity that was created by the current AWS account. - Items []*CloudFrontOriginAccessIdentitySummary + Items []CloudFrontOriginAccessIdentitySummary // If IsTruncated is true, this element is present and contains the value you can // use for the Marker request parameter to continue listing your origin access @@ -807,7 +807,7 @@ type ContentTypeProfiles struct { Quantity *int32 // Items in a field-level encryption content type-profile mapping. - Items []*ContentTypeProfile + Items []ContentTypeProfile } // Contains a list of cookie names. @@ -819,7 +819,7 @@ type CookieNames struct { Quantity *int32 // A list of cookie names. - Items []*string + Items []string } // This field is deprecated. We recommend that you use a cache policy or an origin @@ -974,7 +974,7 @@ type CustomErrorResponses struct { // A complex type that contains a CustomErrorResponse element for each HTTP status // code for which you want to specify a custom error page and/or a caching // duration. - Items []*CustomErrorResponse + Items []CustomErrorResponse } // A complex type that contains the list of Custom Headers for each origin. @@ -988,7 +988,7 @@ type CustomHeaders struct { // Optional: A list that contains one OriginCustomHeader element for each custom // header that you want CloudFront to forward to the origin. If Quantity is 0, omit // Items. - Items []*OriginCustomHeader + Items []OriginCustomHeader } // A custom origin. A custom origin is any origin that is not an Amazon S3 bucket, @@ -1314,7 +1314,7 @@ type Distribution struct { // more information about ICP recordals, see Signup, Accounts, and Credentials // (https://docs.amazonaws.cn/en_us/aws/latest/userguide/accounts-and-credentials.html) // in Getting Started with AWS services in China. - AliasICPRecordals []*AliasICPRecordal + AliasICPRecordals []AliasICPRecordal } // A distribution configuration. @@ -1527,7 +1527,7 @@ type DistributionIdList struct { Quantity *int32 // Contains the distribution IDs in the list. - Items []*string + Items []string // Contains the value that you should use in the Marker field of a subsequent // request to continue listing distribution IDs where you left off. @@ -1561,7 +1561,7 @@ type DistributionList struct { // A complex type that contains one DistributionSummary element for each // distribution that was created by the current AWS account. - Items []*DistributionSummary + Items []DistributionSummary // If IsTruncated is true, this element is present and contains the value you can // use for the Marker request parameter to continue listing your distributions @@ -1682,7 +1682,7 @@ type DistributionSummary struct { // more information about ICP recordals, see Signup, Accounts, and Credentials // (https://docs.amazonaws.cn/en_us/aws/latest/userguide/accounts-and-credentials.html) // in Getting Started with AWS services in China. - AliasICPRecordals []*AliasICPRecordal + AliasICPRecordals []AliasICPRecordal // A complex type that contains information about origin groups for this // distribution. @@ -1701,7 +1701,7 @@ type EncryptionEntities struct { // An array of field patterns in a field-level encryption content type-profile // mapping. - Items []*EncryptionEntity + Items []EncryptionEntity } // Complex data type for field-level encryption profiles that includes the @@ -1805,7 +1805,7 @@ type FieldLevelEncryptionList struct { Quantity *int32 // An array of field-level encryption items. - Items []*FieldLevelEncryptionSummary + Items []FieldLevelEncryptionSummary // If there are more elements to be listed, this element is present and contains // the value that you can use for the Marker request parameter to continue listing @@ -1874,7 +1874,7 @@ type FieldLevelEncryptionProfileList struct { Quantity *int32 // The field-level encryption profile items. - Items []*FieldLevelEncryptionProfileSummary + Items []FieldLevelEncryptionProfileSummary // If there are more elements to be listed, this element is present and contains // the value that you can use for the Marker request parameter to continue listing @@ -1944,7 +1944,7 @@ type FieldPatterns struct { Quantity *int32 // An array of the field-level encryption field patterns. - Items []*string + Items []string } // This field is deprecated. We recommend that you use a cache policy or an origin @@ -2077,7 +2077,7 @@ type GeoRestriction struct { // corresponding codes, see ISO 3166-1-alpha-2 code on the International // Organization for Standardization website. You can also refer to the country list // on the CloudFront console, which includes both country names and codes. - Items []*string + Items []string } // Contains a list of HTTP header names. @@ -2089,7 +2089,7 @@ type Headers struct { Quantity *int32 // A list of HTTP header names. - Items []*string + Items []string } // An invalidation. @@ -2178,7 +2178,7 @@ type InvalidationList struct { // A complex type that contains one InvalidationSummary element for each // invalidation batch created by the current AWS account. - Items []*InvalidationSummary + Items []InvalidationSummary // If IsTruncated is true, this element is present and contains the value that you // can use for the Marker request parameter to continue listing your invalidation @@ -2234,7 +2234,7 @@ type KeyGroupConfig struct { // A list of the identifiers of the public keys in the key group. // // This member is required. - Items []*string + Items []string // A name to identify the key group. // @@ -2259,7 +2259,7 @@ type KeyGroupList struct { Quantity *int32 // A list of key groups. - Items []*KeyGroupSummary + Items []KeyGroupSummary // If there are more items in the list than are in this response, this element is // present. It contains the value that you should use in the Marker field of a @@ -2285,7 +2285,7 @@ type KeyPairIds struct { Quantity *int32 // A list of CloudFront key pair identifiers. - Items []*string + Items []string } // A list of identifiers for the public keys that CloudFront can use to verify the @@ -2379,7 +2379,7 @@ type LambdaFunctionAssociations struct { // Optional: A complex type that contains LambdaFunctionAssociation items for this // cache behavior. If Quantity is 0, you can omit Items. - Items []*LambdaFunctionAssociation + Items []LambdaFunctionAssociation } // A complex type that controls whether access logs are written for the @@ -2597,7 +2597,7 @@ type OriginGroupMembers struct { // Items (origins) in an origin group. // // This member is required. - Items []*OriginGroupMember + Items []OriginGroupMember // The number of origins in an origin group. // @@ -2614,7 +2614,7 @@ type OriginGroups struct { Quantity *int32 // The items (origin groups) in a distribution. - Items []*OriginGroup + Items []OriginGroup } // An origin request policy. When it’s attached to a cache behavior, the origin @@ -2773,7 +2773,7 @@ type OriginRequestPolicyList struct { Quantity *int32 // Contains the origin request policies in the list. - Items []*OriginRequestPolicySummary + Items []OriginRequestPolicySummary // If there are more items in the list than are in this response, this element is // present. It contains the value that you should use in the Marker field of a @@ -2832,7 +2832,7 @@ type Origins struct { // A list of origins. // // This member is required. - Items []*Origin + Items []Origin // The number of origins for this distribution. // @@ -2986,7 +2986,7 @@ type Paths struct { Quantity *int32 // A complex type that contains a list of the paths that you want to invalidate. - Items []*string + Items []string } // A public key that you can use with signed URLs and signed cookies @@ -3062,7 +3062,7 @@ type PublicKeyList struct { Quantity *int32 // A list of public keys. - Items []*PublicKeySummary + Items []PublicKeySummary // If there are more elements to be listed, this element is present and contains // the value that you can use for the Marker request parameter to continue listing @@ -3136,7 +3136,7 @@ type QueryArgProfiles struct { Quantity *int32 // Number of items for query argument-profile mapping for field-level encryption. - Items []*QueryArgProfile + Items []QueryArgProfile } // This field is deprecated. We recommend that you use a cache policy or an origin @@ -3156,7 +3156,7 @@ type QueryStringCacheKeys struct { // A list that contains the query string parameters that you want CloudFront to use // as a basis for caching for a cache behavior. If Quantity is 0, you can omit // Items. - Items []*string + Items []string } // Contains a list of query string names. @@ -3168,7 +3168,7 @@ type QueryStringNames struct { Quantity *int32 // A list of query string names. - Items []*string + Items []string } // A real-time log configuration. @@ -3183,7 +3183,7 @@ type RealtimeLogConfig struct { // real-time log data for this real-time log configuration. // // This member is required. - EndPoints []*EndPoint + EndPoints []EndPoint // A list of fields that are included in each real-time log record. In an API // response, the fields are provided in the same order in which they are sent to @@ -3193,7 +3193,7 @@ type RealtimeLogConfig struct { // in the Amazon CloudFront Developer Guide. // // This member is required. - Fields []*string + Fields []string // The unique name of this real-time log configuration. // @@ -3230,7 +3230,7 @@ type RealtimeLogConfigs struct { MaxItems *int32 // Contains the list of real-time log configurations. - Items []*RealtimeLogConfig + Items []RealtimeLogConfig // If there are more items in the list than are in this response, this element is // present. It contains the value that you should use in the Marker field of a @@ -3332,7 +3332,7 @@ type StatusCodes struct { // The items (status codes) for an origin group. // // This member is required. - Items []*int32 + Items []int32 // The number of status codes. // @@ -3489,7 +3489,7 @@ type StreamingDistributionList struct { // A complex type that contains one StreamingDistributionSummary element for each // distribution that was created by the current AWS account. - Items []*StreamingDistributionSummary + Items []StreamingDistributionSummary // If IsTruncated is true, this element is present and contains the value you can // use for the Marker request parameter to continue listing your RTMP distributions @@ -3625,14 +3625,14 @@ type Tag struct { type TagKeys struct { // A complex type that contains Tag key elements. - Items []*string + Items []string } // A complex type that contains zero or more Tag elements. type Tags struct { // A complex type that contains Tag elements. - Items []*Tag + Items []Tag } // A list of key groups whose public keys CloudFront can use to verify the @@ -3652,7 +3652,7 @@ type TrustedKeyGroups struct { Quantity *int32 // A list of key groups identifiers. - Items []*string + Items []string } // A list of AWS accounts whose public keys CloudFront can use to verify the @@ -3672,7 +3672,7 @@ type TrustedSigners struct { Quantity *int32 // A list of AWS account identifiers. - Items []*string + Items []string } // A complex type that determines the distribution’s SSL/TLS configuration for diff --git a/service/cloudfront/validators.go b/service/cloudfront/validators.go index 2bbf0527bf6..64948d0abe0 100644 --- a/service/cloudfront/validators.go +++ b/service/cloudfront/validators.go @@ -1582,13 +1582,13 @@ func validateCacheBehavior(v *types.CacheBehavior) error { } } -func validateCacheBehaviorList(v []*types.CacheBehavior) error { +func validateCacheBehaviorList(v []types.CacheBehavior) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CacheBehaviorList"} for i := range v { - if err := validateCacheBehavior(v[i]); err != nil { + if err := validateCacheBehavior(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1776,13 +1776,13 @@ func validateContentTypeProfileConfig(v *types.ContentTypeProfileConfig) error { } } -func validateContentTypeProfileList(v []*types.ContentTypeProfile) error { +func validateContentTypeProfileList(v []types.ContentTypeProfile) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ContentTypeProfileList"} for i := range v { - if err := validateContentTypeProfile(v[i]); err != nil { + if err := validateContentTypeProfile(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1863,13 +1863,13 @@ func validateCustomErrorResponse(v *types.CustomErrorResponse) error { } } -func validateCustomErrorResponseList(v []*types.CustomErrorResponse) error { +func validateCustomErrorResponseList(v []types.CustomErrorResponse) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CustomErrorResponseList"} for i := range v { - if err := validateCustomErrorResponse(v[i]); err != nil { + if err := validateCustomErrorResponse(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2125,13 +2125,13 @@ func validateEncryptionEntity(v *types.EncryptionEntity) error { } } -func validateEncryptionEntityList(v []*types.EncryptionEntity) error { +func validateEncryptionEntityList(v []types.EncryptionEntity) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "EncryptionEntityList"} for i := range v { - if err := validateEncryptionEntity(v[i]); err != nil { + if err := validateEncryptionEntity(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2162,13 +2162,13 @@ func validateEndPoint(v *types.EndPoint) error { } } -func validateEndPointList(v []*types.EndPoint) error { +func validateEndPointList(v []types.EndPoint) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "EndPointList"} for i := range v { - if err := validateEndPoint(v[i]); err != nil { + if err := validateEndPoint(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2385,13 +2385,13 @@ func validateLambdaFunctionAssociation(v *types.LambdaFunctionAssociation) error } } -func validateLambdaFunctionAssociationList(v []*types.LambdaFunctionAssociation) error { +func validateLambdaFunctionAssociationList(v []types.LambdaFunctionAssociation) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LambdaFunctionAssociationList"} for i := range v { - if err := validateLambdaFunctionAssociation(v[i]); err != nil { + if err := validateLambdaFunctionAssociation(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2519,13 +2519,13 @@ func validateOriginCustomHeader(v *types.OriginCustomHeader) error { } } -func validateOriginCustomHeadersList(v []*types.OriginCustomHeader) error { +func validateOriginCustomHeadersList(v []types.OriginCustomHeader) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OriginCustomHeadersList"} for i := range v { - if err := validateOriginCustomHeader(v[i]); err != nil { + if err := validateOriginCustomHeader(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2584,13 +2584,13 @@ func validateOriginGroupFailoverCriteria(v *types.OriginGroupFailoverCriteria) e } } -func validateOriginGroupList(v []*types.OriginGroup) error { +func validateOriginGroupList(v []types.OriginGroup) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OriginGroupList"} for i := range v { - if err := validateOriginGroup(v[i]); err != nil { + if err := validateOriginGroup(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2616,13 +2616,13 @@ func validateOriginGroupMember(v *types.OriginGroupMember) error { } } -func validateOriginGroupMemberList(v []*types.OriginGroupMember) error { +func validateOriginGroupMemberList(v []types.OriginGroupMember) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OriginGroupMemberList"} for i := range v { - if err := validateOriginGroupMember(v[i]); err != nil { + if err := validateOriginGroupMember(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2675,13 +2675,13 @@ func validateOriginGroups(v *types.OriginGroups) error { } } -func validateOriginList(v []*types.Origin) error { +func validateOriginList(v []types.Origin) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OriginList"} for i := range v { - if err := validateOrigin(v[i]); err != nil { + if err := validateOrigin(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2953,13 +2953,13 @@ func validateQueryArgProfileConfig(v *types.QueryArgProfileConfig) error { } } -func validateQueryArgProfileList(v []*types.QueryArgProfile) error { +func validateQueryArgProfileList(v []types.QueryArgProfile) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "QueryArgProfileList"} for i := range v { - if err := validateQueryArgProfile(v[i]); err != nil { + if err := validateQueryArgProfile(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3212,13 +3212,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/cloudhsm/api_op_AddTagsToResource.go b/service/cloudhsm/api_op_AddTagsToResource.go index fb233b1332b..d7a462703a0 100644 --- a/service/cloudhsm/api_op_AddTagsToResource.go +++ b/service/cloudhsm/api_op_AddTagsToResource.go @@ -48,7 +48,7 @@ type AddTagsToResourceInput struct { // One or more tags. // // This member is required. - TagList []*types.Tag + TagList []types.Tag } type AddTagsToResourceOutput struct { diff --git a/service/cloudhsm/api_op_DescribeHapg.go b/service/cloudhsm/api_op_DescribeHapg.go index 10f9b2b5b80..63267947741 100644 --- a/service/cloudhsm/api_op_DescribeHapg.go +++ b/service/cloudhsm/api_op_DescribeHapg.go @@ -56,13 +56,13 @@ type DescribeHapgOutput struct { HapgSerial *string // - HsmsLastActionFailed []*string + HsmsLastActionFailed []string // - HsmsPendingDeletion []*string + HsmsPendingDeletion []string // - HsmsPendingRegistration []*string + HsmsPendingRegistration []string // The label for the high-availability partition group. Label *string @@ -72,7 +72,7 @@ type DescribeHapgOutput struct { // The list of partition serial numbers that belong to the high-availability // partition group. - PartitionSerialList []*string + PartitionSerialList []string // The state of the high-availability partition group. State types.CloudHsmObjectState diff --git a/service/cloudhsm/api_op_DescribeHsm.go b/service/cloudhsm/api_op_DescribeHsm.go index e71220721c1..b697dce5db0 100644 --- a/service/cloudhsm/api_op_DescribeHsm.go +++ b/service/cloudhsm/api_op_DescribeHsm.go @@ -72,7 +72,7 @@ type DescribeHsmOutput struct { IamRoleArn *string // The list of partitions on the HSM. - Partitions []*string + Partitions []string // The serial number of the HSM. SerialNumber *string diff --git a/service/cloudhsm/api_op_GetConfig.go b/service/cloudhsm/api_op_GetConfig.go index 732dc1a02d4..cbda36948ff 100644 --- a/service/cloudhsm/api_op_GetConfig.go +++ b/service/cloudhsm/api_op_GetConfig.go @@ -54,7 +54,7 @@ type GetConfigInput struct { // associated with the client. // // This member is required. - HapgList []*string + HapgList []string } type GetConfigOutput struct { diff --git a/service/cloudhsm/api_op_ListAvailableZones.go b/service/cloudhsm/api_op_ListAvailableZones.go index a3e74fc61f7..277a9001ebc 100644 --- a/service/cloudhsm/api_op_ListAvailableZones.go +++ b/service/cloudhsm/api_op_ListAvailableZones.go @@ -43,7 +43,7 @@ type ListAvailableZonesInput struct { type ListAvailableZonesOutput struct { // The list of Availability Zones that have available AWS CloudHSM capacity. - AZList []*string + AZList []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudhsm/api_op_ListHapgs.go b/service/cloudhsm/api_op_ListHapgs.go index a2175a8c50c..42ad08122e5 100644 --- a/service/cloudhsm/api_op_ListHapgs.go +++ b/service/cloudhsm/api_op_ListHapgs.go @@ -51,7 +51,7 @@ type ListHapgsOutput struct { // The list of high-availability partition groups. // // This member is required. - HapgList []*string + HapgList []string // If not null, more results are available. Pass this value to ListHapgs to // retrieve the next set of items. diff --git a/service/cloudhsm/api_op_ListHsms.go b/service/cloudhsm/api_op_ListHsms.go index 01c2c14b599..214a0c07c59 100644 --- a/service/cloudhsm/api_op_ListHsms.go +++ b/service/cloudhsm/api_op_ListHsms.go @@ -51,7 +51,7 @@ type ListHsmsInput struct { type ListHsmsOutput struct { // The list of ARNs that identify the HSMs. - HsmList []*string + HsmList []string // If not null, more results are available. Pass this value to ListHsms to retrieve // the next set of items. diff --git a/service/cloudhsm/api_op_ListLunaClients.go b/service/cloudhsm/api_op_ListLunaClients.go index 745ed836bde..8f137bc68da 100644 --- a/service/cloudhsm/api_op_ListLunaClients.go +++ b/service/cloudhsm/api_op_ListLunaClients.go @@ -51,7 +51,7 @@ type ListLunaClientsOutput struct { // The list of clients. // // This member is required. - ClientList []*string + ClientList []string // If not null, more results are available. Pass this to ListLunaClients to // retrieve the next set of items. diff --git a/service/cloudhsm/api_op_ListTagsForResource.go b/service/cloudhsm/api_op_ListTagsForResource.go index 3f06809d4a6..dcf5a2d2635 100644 --- a/service/cloudhsm/api_op_ListTagsForResource.go +++ b/service/cloudhsm/api_op_ListTagsForResource.go @@ -50,7 +50,7 @@ type ListTagsForResourceOutput struct { // One or more tags. // // This member is required. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudhsm/api_op_ModifyHapg.go b/service/cloudhsm/api_op_ModifyHapg.go index 10018a67f3a..4a2cf39b090 100644 --- a/service/cloudhsm/api_op_ModifyHapg.go +++ b/service/cloudhsm/api_op_ModifyHapg.go @@ -48,7 +48,7 @@ type ModifyHapgInput struct { // The list of partition serial numbers to make members of the high-availability // partition group. - PartitionSerialList []*string + PartitionSerialList []string } type ModifyHapgOutput struct { diff --git a/service/cloudhsm/api_op_RemoveTagsFromResource.go b/service/cloudhsm/api_op_RemoveTagsFromResource.go index 7c9779173ef..c885ee5f6cc 100644 --- a/service/cloudhsm/api_op_RemoveTagsFromResource.go +++ b/service/cloudhsm/api_op_RemoveTagsFromResource.go @@ -49,7 +49,7 @@ type RemoveTagsFromResourceInput struct { // value). To overwrite the value for an existing tag, use AddTagsToResource. // // This member is required. - TagKeyList []*string + TagKeyList []string } type RemoveTagsFromResourceOutput struct { diff --git a/service/cloudhsm/deserializers.go b/service/cloudhsm/deserializers.go index 39a0b5664f8..1708c39e27f 100644 --- a/service/cloudhsm/deserializers.go +++ b/service/cloudhsm/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -2456,7 +2457,7 @@ func awsAwsjson11_deserializeErrorInvalidRequestException(response *smithyhttp.R return output } -func awsAwsjson11_deserializeDocumentAZList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAZList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2469,21 +2470,21 @@ func awsAwsjson11_deserializeDocumentAZList(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AZ to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2492,7 +2493,7 @@ func awsAwsjson11_deserializeDocumentAZList(v *[]*string, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentClientList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentClientList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2505,21 +2506,21 @@ func awsAwsjson11_deserializeDocumentClientList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ClientArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2556,7 +2557,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmInternalException(v **types.CloudHs if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryable": @@ -2565,7 +2566,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmInternalException(v **types.CloudHs if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Retryable = &jtv + sv.Retryable = jtv } default: @@ -2605,7 +2606,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmServiceException(v **types.CloudHsm if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryable": @@ -2614,7 +2615,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmServiceException(v **types.CloudHsm if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Retryable = &jtv + sv.Retryable = jtv } default: @@ -2626,7 +2627,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmServiceException(v **types.CloudHsm return nil } -func awsAwsjson11_deserializeDocumentHapgList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentHapgList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2639,21 +2640,21 @@ func awsAwsjson11_deserializeDocumentHapgList(v *[]*string, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HapgArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2662,7 +2663,7 @@ func awsAwsjson11_deserializeDocumentHapgList(v *[]*string, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentHsmList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentHsmList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2675,21 +2676,21 @@ func awsAwsjson11_deserializeDocumentHsmList(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HsmArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2726,7 +2727,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryable": @@ -2735,7 +2736,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Retryable = &jtv + sv.Retryable = jtv } default: @@ -2747,7 +2748,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe return nil } -func awsAwsjson11_deserializeDocumentPartitionList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPartitionList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2760,21 +2761,21 @@ func awsAwsjson11_deserializeDocumentPartitionList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PartitionArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2783,7 +2784,7 @@ func awsAwsjson11_deserializeDocumentPartitionList(v *[]*string, value interface return nil } -func awsAwsjson11_deserializeDocumentPartitionSerialList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPartitionSerialList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2796,21 +2797,21 @@ func awsAwsjson11_deserializeDocumentPartitionSerialList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PartitionSerial to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2847,7 +2848,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -2856,7 +2857,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -2868,7 +2869,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2881,18 +2882,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2928,7 +2931,7 @@ func awsAwsjson11_deserializeOpDocumentAddTagsToResourceOutput(v **AddTagsToReso if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -2968,7 +2971,7 @@ func awsAwsjson11_deserializeOpDocumentCreateHapgOutput(v **CreateHapgOutput, va if !ok { return fmt.Errorf("expected HapgArn to be of type string, got %T instead", value) } - sv.HapgArn = &jtv + sv.HapgArn = ptr.String(jtv) } default: @@ -3008,7 +3011,7 @@ func awsAwsjson11_deserializeOpDocumentCreateHsmOutput(v **CreateHsmOutput, valu if !ok { return fmt.Errorf("expected HsmArn to be of type string, got %T instead", value) } - sv.HsmArn = &jtv + sv.HsmArn = ptr.String(jtv) } default: @@ -3048,7 +3051,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLunaClientOutput(v **CreateLunaClie if !ok { return fmt.Errorf("expected ClientArn to be of type string, got %T instead", value) } - sv.ClientArn = &jtv + sv.ClientArn = ptr.String(jtv) } default: @@ -3088,7 +3091,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteHapgOutput(v **DeleteHapgOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -3128,7 +3131,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteHsmOutput(v **DeleteHsmOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -3168,7 +3171,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLunaClientOutput(v **DeleteLunaClie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -3208,7 +3211,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHapgOutput(v **DescribeHapgOutput if !ok { return fmt.Errorf("expected HapgArn to be of type string, got %T instead", value) } - sv.HapgArn = &jtv + sv.HapgArn = ptr.String(jtv) } case "HapgSerial": @@ -3217,7 +3220,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHapgOutput(v **DescribeHapgOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HapgSerial = &jtv + sv.HapgSerial = ptr.String(jtv) } case "HsmsLastActionFailed": @@ -3241,7 +3244,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHapgOutput(v **DescribeHapgOutput if !ok { return fmt.Errorf("expected Label to be of type string, got %T instead", value) } - sv.Label = &jtv + sv.Label = ptr.String(jtv) } case "LastModifiedTimestamp": @@ -3250,7 +3253,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHapgOutput(v **DescribeHapgOutput if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.LastModifiedTimestamp = &jtv + sv.LastModifiedTimestamp = ptr.String(jtv) } case "PartitionSerialList": @@ -3304,7 +3307,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected AZ to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "EniId": @@ -3313,7 +3316,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected EniId to be of type string, got %T instead", value) } - sv.EniId = &jtv + sv.EniId = ptr.String(jtv) } case "EniIp": @@ -3322,7 +3325,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.EniIp = &jtv + sv.EniIp = ptr.String(jtv) } case "HsmArn": @@ -3331,7 +3334,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected HsmArn to be of type string, got %T instead", value) } - sv.HsmArn = &jtv + sv.HsmArn = ptr.String(jtv) } case "HsmType": @@ -3340,7 +3343,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HsmType = &jtv + sv.HsmType = ptr.String(jtv) } case "IamRoleArn": @@ -3349,7 +3352,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "Partitions": @@ -3363,7 +3366,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected HsmSerialNumber to be of type string, got %T instead", value) } - sv.SerialNumber = &jtv + sv.SerialNumber = ptr.String(jtv) } case "ServerCertLastUpdated": @@ -3372,7 +3375,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.ServerCertLastUpdated = &jtv + sv.ServerCertLastUpdated = ptr.String(jtv) } case "ServerCertUri": @@ -3381,7 +3384,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerCertUri = &jtv + sv.ServerCertUri = ptr.String(jtv) } case "SoftwareVersion": @@ -3390,7 +3393,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SoftwareVersion = &jtv + sv.SoftwareVersion = ptr.String(jtv) } case "SshKeyLastUpdated": @@ -3399,7 +3402,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.SshKeyLastUpdated = &jtv + sv.SshKeyLastUpdated = ptr.String(jtv) } case "SshPublicKey": @@ -3408,7 +3411,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected SshKey to be of type string, got %T instead", value) } - sv.SshPublicKey = &jtv + sv.SshPublicKey = ptr.String(jtv) } case "Status": @@ -3426,7 +3429,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusDetails = &jtv + sv.StatusDetails = ptr.String(jtv) } case "SubnetId": @@ -3435,7 +3438,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "SubscriptionEndDate": @@ -3444,7 +3447,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.SubscriptionEndDate = &jtv + sv.SubscriptionEndDate = ptr.String(jtv) } case "SubscriptionStartDate": @@ -3453,7 +3456,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.SubscriptionStartDate = &jtv + sv.SubscriptionStartDate = ptr.String(jtv) } case "SubscriptionType": @@ -3471,7 +3474,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VendorName = &jtv + sv.VendorName = ptr.String(jtv) } case "VpcId": @@ -3480,7 +3483,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHsmOutput(v **DescribeHsmOutput, if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -3520,7 +3523,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLunaClientOutput(v **DescribeLuna if !ok { return fmt.Errorf("expected Certificate to be of type string, got %T instead", value) } - sv.Certificate = &jtv + sv.Certificate = ptr.String(jtv) } case "CertificateFingerprint": @@ -3529,7 +3532,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLunaClientOutput(v **DescribeLuna if !ok { return fmt.Errorf("expected CertificateFingerprint to be of type string, got %T instead", value) } - sv.CertificateFingerprint = &jtv + sv.CertificateFingerprint = ptr.String(jtv) } case "ClientArn": @@ -3538,7 +3541,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLunaClientOutput(v **DescribeLuna if !ok { return fmt.Errorf("expected ClientArn to be of type string, got %T instead", value) } - sv.ClientArn = &jtv + sv.ClientArn = ptr.String(jtv) } case "Label": @@ -3547,7 +3550,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLunaClientOutput(v **DescribeLuna if !ok { return fmt.Errorf("expected Label to be of type string, got %T instead", value) } - sv.Label = &jtv + sv.Label = ptr.String(jtv) } case "LastModifiedTimestamp": @@ -3556,7 +3559,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLunaClientOutput(v **DescribeLuna if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.LastModifiedTimestamp = &jtv + sv.LastModifiedTimestamp = ptr.String(jtv) } default: @@ -3596,7 +3599,7 @@ func awsAwsjson11_deserializeOpDocumentGetConfigOutput(v **GetConfigOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConfigCred = &jtv + sv.ConfigCred = ptr.String(jtv) } case "ConfigFile": @@ -3605,7 +3608,7 @@ func awsAwsjson11_deserializeOpDocumentGetConfigOutput(v **GetConfigOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConfigFile = &jtv + sv.ConfigFile = ptr.String(jtv) } case "ConfigType": @@ -3614,7 +3617,7 @@ func awsAwsjson11_deserializeOpDocumentGetConfigOutput(v **GetConfigOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConfigType = &jtv + sv.ConfigType = ptr.String(jtv) } default: @@ -3695,7 +3698,7 @@ func awsAwsjson11_deserializeOpDocumentListHapgsOutput(v **ListHapgsOutput, valu if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3740,7 +3743,7 @@ func awsAwsjson11_deserializeOpDocumentListHsmsOutput(v **ListHsmsOutput, value if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3785,7 +3788,7 @@ func awsAwsjson11_deserializeOpDocumentListLunaClientsOutput(v **ListLunaClients if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3861,7 +3864,7 @@ func awsAwsjson11_deserializeOpDocumentModifyHapgOutput(v **ModifyHapgOutput, va if !ok { return fmt.Errorf("expected HapgArn to be of type string, got %T instead", value) } - sv.HapgArn = &jtv + sv.HapgArn = ptr.String(jtv) } default: @@ -3901,7 +3904,7 @@ func awsAwsjson11_deserializeOpDocumentModifyHsmOutput(v **ModifyHsmOutput, valu if !ok { return fmt.Errorf("expected HsmArn to be of type string, got %T instead", value) } - sv.HsmArn = &jtv + sv.HsmArn = ptr.String(jtv) } default: @@ -3941,7 +3944,7 @@ func awsAwsjson11_deserializeOpDocumentModifyLunaClientOutput(v **ModifyLunaClie if !ok { return fmt.Errorf("expected ClientArn to be of type string, got %T instead", value) } - sv.ClientArn = &jtv + sv.ClientArn = ptr.String(jtv) } default: @@ -3981,7 +3984,7 @@ func awsAwsjson11_deserializeOpDocumentRemoveTagsFromResourceOutput(v **RemoveTa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: diff --git a/service/cloudhsm/go.mod b/service/cloudhsm/go.mod index 305a64e0bd2..ff703012500 100644 --- a/service/cloudhsm/go.mod +++ b/service/cloudhsm/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cloudhsm go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cloudhsm/serializers.go b/service/cloudhsm/serializers.go index c667545cf64..6a4d7af9714 100644 --- a/service/cloudhsm/serializers.go +++ b/service/cloudhsm/serializers.go @@ -926,32 +926,24 @@ func (m *awsAwsjson11_serializeOpRemoveTagsFromResource) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentHapgList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHapgList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentPartitionSerialList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPartitionSerialList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -973,32 +965,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/cloudhsm/types/errors.go b/service/cloudhsm/types/errors.go index 176aba56ccc..718c519238a 100644 --- a/service/cloudhsm/types/errors.go +++ b/service/cloudhsm/types/errors.go @@ -11,7 +11,7 @@ import ( type CloudHsmInternalException struct { Message *string - Retryable *bool + Retryable bool } func (e *CloudHsmInternalException) Error() string { @@ -30,7 +30,7 @@ func (e *CloudHsmInternalException) ErrorFault() smithy.ErrorFault { return smit type CloudHsmServiceException struct { Message *string - Retryable *bool + Retryable bool } func (e *CloudHsmServiceException) Error() string { @@ -49,7 +49,7 @@ func (e *CloudHsmServiceException) ErrorFault() smithy.ErrorFault { return smith type InvalidRequestException struct { Message *string - Retryable *bool + Retryable bool } func (e *InvalidRequestException) Error() string { diff --git a/service/cloudhsm/validators.go b/service/cloudhsm/validators.go index 1d951dacadc..c2b7af79acf 100644 --- a/service/cloudhsm/validators.go +++ b/service/cloudhsm/validators.go @@ -364,13 +364,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/cloudhsmv2/api_op_CopyBackupToRegion.go b/service/cloudhsmv2/api_op_CopyBackupToRegion.go index a4c378767d2..ec45080acf4 100644 --- a/service/cloudhsmv2/api_op_CopyBackupToRegion.go +++ b/service/cloudhsmv2/api_op_CopyBackupToRegion.go @@ -42,7 +42,7 @@ type CopyBackupToRegionInput struct { // Tags to apply to the destination backup during creation. If you specify tags, // only these tags will be applied to the destination backup. If you do not specify // tags, the service copies tags from the source backup to the destination backup. - TagList []*types.Tag + TagList []types.Tag } type CopyBackupToRegionOutput struct { diff --git a/service/cloudhsmv2/api_op_CreateCluster.go b/service/cloudhsmv2/api_op_CreateCluster.go index 83cfeae1342..8d62541fd65 100644 --- a/service/cloudhsmv2/api_op_CreateCluster.go +++ b/service/cloudhsmv2/api_op_CreateCluster.go @@ -45,7 +45,7 @@ type CreateClusterInput struct { // * You can specify only one subnet per Availability Zone. // // This member is required. - SubnetIds []*string + SubnetIds []string // The identifier (ID) of the cluster backup to restore. Use this value to restore // the cluster from a backup instead of creating a new cluster. To find the backup @@ -53,7 +53,7 @@ type CreateClusterInput struct { SourceBackupId *string // Tags to apply to the CloudHSM cluster during creation. - TagList []*types.Tag + TagList []types.Tag } type CreateClusterOutput struct { diff --git a/service/cloudhsmv2/api_op_DescribeBackups.go b/service/cloudhsmv2/api_op_DescribeBackups.go index 4c639a7aa55..7dfddd3020d 100644 --- a/service/cloudhsmv2/api_op_DescribeBackups.go +++ b/service/cloudhsmv2/api_op_DescribeBackups.go @@ -42,7 +42,7 @@ type DescribeBackupsInput struct { // return only the backups for the specified clusters. Specify clusters by their // cluster identifier (ID). Use the states filter to return only backups that match // the specified state. - Filters map[string][]*string + Filters map[string][]string // The maximum number of backups to return in the response. When there are more // backups than the number you specify, the response contains a NextToken value. @@ -60,7 +60,7 @@ type DescribeBackupsInput struct { type DescribeBackupsOutput struct { // A list of backups. - Backups []*types.Backup + Backups []types.Backup // An opaque string that indicates that the response contains only a subset of // backups. Use this value in a subsequent DescribeBackups request to get more diff --git a/service/cloudhsmv2/api_op_DescribeClusters.go b/service/cloudhsmv2/api_op_DescribeClusters.go index b5b2d1f636d..11c0373f6bf 100644 --- a/service/cloudhsmv2/api_op_DescribeClusters.go +++ b/service/cloudhsmv2/api_op_DescribeClusters.go @@ -40,7 +40,7 @@ type DescribeClustersInput struct { // in the specified virtual private clouds (VPCs). Specify VPCs by their VPC // identifier (ID). Use the states filter to return only clusters that match the // specified state. - Filters map[string][]*string + Filters map[string][]string // The maximum number of clusters to return in the response. When there are more // clusters than the number you specify, the response contains a NextToken value. @@ -54,7 +54,7 @@ type DescribeClustersInput struct { type DescribeClustersOutput struct { // A list of clusters. - Clusters []*types.Cluster + Clusters []types.Cluster // An opaque string that indicates that the response contains only a subset of // clusters. Use this value in a subsequent DescribeClusters request to get more diff --git a/service/cloudhsmv2/api_op_ListTags.go b/service/cloudhsmv2/api_op_ListTags.go index a2a45801394..b9dc8354972 100644 --- a/service/cloudhsmv2/api_op_ListTags.go +++ b/service/cloudhsmv2/api_op_ListTags.go @@ -54,7 +54,7 @@ type ListTagsOutput struct { // A list of tags. // // This member is required. - TagList []*types.Tag + TagList []types.Tag // An opaque string that indicates that the response contains only a subset of // tags. Use this value in a subsequent ListTags request to get more tags. diff --git a/service/cloudhsmv2/api_op_TagResource.go b/service/cloudhsmv2/api_op_TagResource.go index 8500811c895..06f032bbc1e 100644 --- a/service/cloudhsmv2/api_op_TagResource.go +++ b/service/cloudhsmv2/api_op_TagResource.go @@ -38,7 +38,7 @@ type TagResourceInput struct { // A list of one or more tags. // // This member is required. - TagList []*types.Tag + TagList []types.Tag } type TagResourceOutput struct { diff --git a/service/cloudhsmv2/api_op_UntagResource.go b/service/cloudhsmv2/api_op_UntagResource.go index da7b1e47e61..9e8aaa2d540 100644 --- a/service/cloudhsmv2/api_op_UntagResource.go +++ b/service/cloudhsmv2/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // the tag keys, not the tag values. // // This member is required. - TagKeyList []*string + TagKeyList []string } type UntagResourceOutput struct { diff --git a/service/cloudhsmv2/deserializers.go b/service/cloudhsmv2/deserializers.go index d29d5f80fdb..24d045c553c 100644 --- a/service/cloudhsmv2/deserializers.go +++ b/service/cloudhsmv2/deserializers.go @@ -1877,7 +1877,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) } - sv.BackupId = &jtv + sv.BackupId = ptr.String(jtv) } case "BackupState": @@ -1895,7 +1895,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) } - sv.ClusterId = &jtv + sv.ClusterId = ptr.String(jtv) } case "CopyTimestamp": @@ -1943,7 +1943,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) } - sv.SourceBackup = &jtv + sv.SourceBackup = ptr.String(jtv) } case "SourceCluster": @@ -1952,7 +1952,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) } - sv.SourceCluster = &jtv + sv.SourceCluster = ptr.String(jtv) } case "SourceRegion": @@ -1961,7 +1961,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.SourceRegion = &jtv + sv.SourceRegion = ptr.String(jtv) } case "TagList": @@ -1978,7 +1978,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentBackups(v *[]*types.Backup, value interface{}) error { +func awsAwsjson11_deserializeDocumentBackups(v *[]types.Backup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1991,18 +1991,20 @@ func awsAwsjson11_deserializeDocumentBackups(v *[]*types.Backup, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Backup + var cv []types.Backup if *v == nil { - cv = []*types.Backup{} + cv = []types.Backup{} } else { cv = *v } for _, value := range shape { - var col *types.Backup - if err := awsAwsjson11_deserializeDocumentBackup(&col, value); err != nil { + var col types.Backup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBackup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2038,7 +2040,7 @@ func awsAwsjson11_deserializeDocumentCertificates(v **types.Certificates, value if !ok { return fmt.Errorf("expected Cert to be of type string, got %T instead", value) } - sv.AwsHardwareCertificate = &jtv + sv.AwsHardwareCertificate = ptr.String(jtv) } case "ClusterCertificate": @@ -2047,7 +2049,7 @@ func awsAwsjson11_deserializeDocumentCertificates(v **types.Certificates, value if !ok { return fmt.Errorf("expected Cert to be of type string, got %T instead", value) } - sv.ClusterCertificate = &jtv + sv.ClusterCertificate = ptr.String(jtv) } case "ClusterCsr": @@ -2056,7 +2058,7 @@ func awsAwsjson11_deserializeDocumentCertificates(v **types.Certificates, value if !ok { return fmt.Errorf("expected Cert to be of type string, got %T instead", value) } - sv.ClusterCsr = &jtv + sv.ClusterCsr = ptr.String(jtv) } case "HsmCertificate": @@ -2065,7 +2067,7 @@ func awsAwsjson11_deserializeDocumentCertificates(v **types.Certificates, value if !ok { return fmt.Errorf("expected Cert to be of type string, got %T instead", value) } - sv.HsmCertificate = &jtv + sv.HsmCertificate = ptr.String(jtv) } case "ManufacturerHardwareCertificate": @@ -2074,7 +2076,7 @@ func awsAwsjson11_deserializeDocumentCertificates(v **types.Certificates, value if !ok { return fmt.Errorf("expected Cert to be of type string, got %T instead", value) } - sv.ManufacturerHardwareCertificate = &jtv + sv.ManufacturerHardwareCertificate = ptr.String(jtv) } default: @@ -2114,7 +2116,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmAccessDeniedException(v **types.Clo if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2154,7 +2156,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmInternalFailureException(v **types. if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2194,7 +2196,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmInvalidRequestException(v **types.C if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2234,7 +2236,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmResourceNotFoundException(v **types if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2274,7 +2276,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmServiceException(v **types.CloudHsm if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2314,7 +2316,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmTagException(v **types.CloudHsmTagE if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2368,7 +2370,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) } - sv.ClusterId = &jtv + sv.ClusterId = ptr.String(jtv) } case "CreateTimestamp": @@ -2395,7 +2397,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected HsmType to be of type string, got %T instead", value) } - sv.HsmType = &jtv + sv.HsmType = ptr.String(jtv) } case "PreCoPassword": @@ -2404,7 +2406,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected PreCoPassword to be of type string, got %T instead", value) } - sv.PreCoPassword = &jtv + sv.PreCoPassword = ptr.String(jtv) } case "SecurityGroup": @@ -2413,7 +2415,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected SecurityGroup to be of type string, got %T instead", value) } - sv.SecurityGroup = &jtv + sv.SecurityGroup = ptr.String(jtv) } case "SourceBackupId": @@ -2422,7 +2424,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) } - sv.SourceBackupId = &jtv + sv.SourceBackupId = ptr.String(jtv) } case "State": @@ -2440,7 +2442,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected StateMessage to be of type string, got %T instead", value) } - sv.StateMessage = &jtv + sv.StateMessage = ptr.String(jtv) } case "SubnetMapping": @@ -2459,7 +2461,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -2471,7 +2473,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ return nil } -func awsAwsjson11_deserializeDocumentClusters(v *[]*types.Cluster, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusters(v *[]types.Cluster, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2484,18 +2486,20 @@ func awsAwsjson11_deserializeDocumentClusters(v *[]*types.Cluster, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Cluster + var cv []types.Cluster if *v == nil { - cv = []*types.Cluster{} + cv = []types.Cluster{} } else { cv = *v } for _, value := range shape { - var col *types.Cluster - if err := awsAwsjson11_deserializeDocumentCluster(&col, value); err != nil { + var col types.Cluster + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCluster(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2544,7 +2548,7 @@ func awsAwsjson11_deserializeDocumentDestinationBackup(v **types.DestinationBack if !ok { return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) } - sv.SourceBackup = &jtv + sv.SourceBackup = ptr.String(jtv) } case "SourceCluster": @@ -2553,7 +2557,7 @@ func awsAwsjson11_deserializeDocumentDestinationBackup(v **types.DestinationBack if !ok { return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) } - sv.SourceCluster = &jtv + sv.SourceCluster = ptr.String(jtv) } case "SourceRegion": @@ -2562,7 +2566,7 @@ func awsAwsjson11_deserializeDocumentDestinationBackup(v **types.DestinationBack if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.SourceRegion = &jtv + sv.SourceRegion = ptr.String(jtv) } default: @@ -2574,7 +2578,7 @@ func awsAwsjson11_deserializeDocumentDestinationBackup(v **types.DestinationBack return nil } -func awsAwsjson11_deserializeDocumentExternalSubnetMapping(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentExternalSubnetMapping(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2587,21 +2591,21 @@ func awsAwsjson11_deserializeDocumentExternalSubnetMapping(v *map[string]*string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -2638,7 +2642,7 @@ func awsAwsjson11_deserializeDocumentHsm(v **types.Hsm, value interface{}) error if !ok { return fmt.Errorf("expected ExternalAz to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "ClusterId": @@ -2647,7 +2651,7 @@ func awsAwsjson11_deserializeDocumentHsm(v **types.Hsm, value interface{}) error if !ok { return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) } - sv.ClusterId = &jtv + sv.ClusterId = ptr.String(jtv) } case "EniId": @@ -2656,7 +2660,7 @@ func awsAwsjson11_deserializeDocumentHsm(v **types.Hsm, value interface{}) error if !ok { return fmt.Errorf("expected EniId to be of type string, got %T instead", value) } - sv.EniId = &jtv + sv.EniId = ptr.String(jtv) } case "EniIp": @@ -2665,7 +2669,7 @@ func awsAwsjson11_deserializeDocumentHsm(v **types.Hsm, value interface{}) error if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.EniIp = &jtv + sv.EniIp = ptr.String(jtv) } case "HsmId": @@ -2674,7 +2678,7 @@ func awsAwsjson11_deserializeDocumentHsm(v **types.Hsm, value interface{}) error if !ok { return fmt.Errorf("expected HsmId to be of type string, got %T instead", value) } - sv.HsmId = &jtv + sv.HsmId = ptr.String(jtv) } case "State": @@ -2692,7 +2696,7 @@ func awsAwsjson11_deserializeDocumentHsm(v **types.Hsm, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StateMessage = &jtv + sv.StateMessage = ptr.String(jtv) } case "SubnetId": @@ -2701,7 +2705,7 @@ func awsAwsjson11_deserializeDocumentHsm(v **types.Hsm, value interface{}) error if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } default: @@ -2713,7 +2717,7 @@ func awsAwsjson11_deserializeDocumentHsm(v **types.Hsm, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentHsms(v *[]*types.Hsm, value interface{}) error { +func awsAwsjson11_deserializeDocumentHsms(v *[]types.Hsm, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2726,18 +2730,20 @@ func awsAwsjson11_deserializeDocumentHsms(v *[]*types.Hsm, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Hsm + var cv []types.Hsm if *v == nil { - cv = []*types.Hsm{} + cv = []types.Hsm{} } else { cv = *v } for _, value := range shape { - var col *types.Hsm - if err := awsAwsjson11_deserializeDocumentHsm(&col, value); err != nil { + var col types.Hsm + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHsm(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2773,7 +2779,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -2782,7 +2788,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -2794,7 +2800,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2807,18 +2813,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3034,7 +3042,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteHsmOutput(v **DeleteHsmOutput, valu if !ok { return fmt.Errorf("expected HsmId to be of type string, got %T instead", value) } - sv.HsmId = &jtv + sv.HsmId = ptr.String(jtv) } default: @@ -3079,7 +3087,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBackupsOutput(v **DescribeBackups if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3124,7 +3132,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeClustersOutput(v **DescribeCluste if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3173,7 +3181,7 @@ func awsAwsjson11_deserializeOpDocumentInitializeClusterOutput(v **InitializeClu if !ok { return fmt.Errorf("expected StateMessage to be of type string, got %T instead", value) } - sv.StateMessage = &jtv + sv.StateMessage = ptr.String(jtv) } default: @@ -3213,7 +3221,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsOutput(v **ListTagsOutput, value if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TagList": diff --git a/service/cloudhsmv2/go.mod b/service/cloudhsmv2/go.mod index 43f1c6fd7d1..1368e4e6084 100644 --- a/service/cloudhsmv2/go.mod +++ b/service/cloudhsmv2/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cloudhsmv2 go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cloudhsmv2/serializers.go b/service/cloudhsmv2/serializers.go index 03b10980636..9aa5fdc1e4f 100644 --- a/service/cloudhsmv2/serializers.go +++ b/service/cloudhsmv2/serializers.go @@ -611,14 +611,13 @@ func (m *awsAwsjson11_serializeOpUntagResource) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentFilters(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilters(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentStrings(v[key], om); err != nil { @@ -628,32 +627,24 @@ func awsAwsjson11_serializeDocumentFilters(v map[string][]*string, value smithyj return nil } -func awsAwsjson11_serializeDocumentStrings(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStrings(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentSubnetIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnetIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -675,32 +666,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/cloudhsmv2/types/types.go b/service/cloudhsmv2/types/types.go index bff19616717..c96ffe7768b 100644 --- a/service/cloudhsmv2/types/types.go +++ b/service/cloudhsmv2/types/types.go @@ -46,7 +46,7 @@ type Backup struct { SourceRegion *string // The list of tags for the backup. - TagList []*Tag + TagList []Tag } // Contains one or more certificates or a certificate signing request (CSR). @@ -89,7 +89,7 @@ type Cluster struct { HsmType *string // Contains information about the HSMs in the cluster. - Hsms []*Hsm + Hsms []Hsm // The default password for the cluster's Pre-Crypto Officer (PRECO) user. PreCoPassword *string @@ -108,10 +108,10 @@ type Cluster struct { StateMessage *string // A map from availability zone to the cluster’s subnet in that availability zone. - SubnetMapping map[string]*string + SubnetMapping map[string]string // The list of tags for the cluster. - TagList []*Tag + TagList []Tag // The identifier (ID) of the virtual private cloud (VPC) that contains the // cluster. diff --git a/service/cloudhsmv2/validators.go b/service/cloudhsmv2/validators.go index a22fe03055a..d1d8fc55a8a 100644 --- a/service/cloudhsmv2/validators.go +++ b/service/cloudhsmv2/validators.go @@ -292,13 +292,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/cloudsearch/api_op_BuildSuggesters.go b/service/cloudsearch/api_op_BuildSuggesters.go index 321e623a18f..e4e26b3d481 100644 --- a/service/cloudsearch/api_op_BuildSuggesters.go +++ b/service/cloudsearch/api_op_BuildSuggesters.go @@ -46,7 +46,7 @@ type BuildSuggestersInput struct { type BuildSuggestersOutput struct { // A list of field names. - FieldNames []*string + FieldNames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudsearch/api_op_DescribeAnalysisSchemes.go b/service/cloudsearch/api_op_DescribeAnalysisSchemes.go index 283723aac34..08b04638e8d 100644 --- a/service/cloudsearch/api_op_DescribeAnalysisSchemes.go +++ b/service/cloudsearch/api_op_DescribeAnalysisSchemes.go @@ -47,7 +47,7 @@ type DescribeAnalysisSchemesInput struct { DomainName *string // The analysis schemes you want to describe. - AnalysisSchemeNames []*string + AnalysisSchemeNames []string // Whether to display the deployed configuration (true) or include any pending // changes (false). Defaults to false. @@ -61,7 +61,7 @@ type DescribeAnalysisSchemesOutput struct { // The analysis scheme descriptions. // // This member is required. - AnalysisSchemes []*types.AnalysisSchemeStatus + AnalysisSchemes []types.AnalysisSchemeStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudsearch/api_op_DescribeDomains.go b/service/cloudsearch/api_op_DescribeDomains.go index ea69d0ccbe8..99bb2f9f236 100644 --- a/service/cloudsearch/api_op_DescribeDomains.go +++ b/service/cloudsearch/api_op_DescribeDomains.go @@ -39,7 +39,7 @@ func (c *Client) DescribeDomains(ctx context.Context, params *DescribeDomainsInp type DescribeDomainsInput struct { // The names of the domains you want to include in the response. - DomainNames []*string + DomainNames []string } // The result of a DescribeDomains request. Contains the status of the domains @@ -49,7 +49,7 @@ type DescribeDomainsOutput struct { // A list that contains the status of each requested domain. // // This member is required. - DomainStatusList []*types.DomainStatus + DomainStatusList []types.DomainStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudsearch/api_op_DescribeExpressions.go b/service/cloudsearch/api_op_DescribeExpressions.go index a305eb1d1c5..0119a631022 100644 --- a/service/cloudsearch/api_op_DescribeExpressions.go +++ b/service/cloudsearch/api_op_DescribeExpressions.go @@ -51,7 +51,7 @@ type DescribeExpressionsInput struct { // Limits the DescribeExpressions response to the specified expressions. If not // specified, all expressions are shown. - ExpressionNames []*string + ExpressionNames []string } // The result of a DescribeExpressions request. Contains the expressions configured @@ -61,7 +61,7 @@ type DescribeExpressionsOutput struct { // The expressions configured for the domain. // // This member is required. - Expressions []*types.ExpressionStatus + Expressions []types.ExpressionStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudsearch/api_op_DescribeIndexFields.go b/service/cloudsearch/api_op_DescribeIndexFields.go index 13b7383332d..6dd20cd9859 100644 --- a/service/cloudsearch/api_op_DescribeIndexFields.go +++ b/service/cloudsearch/api_op_DescribeIndexFields.go @@ -51,7 +51,7 @@ type DescribeIndexFieldsInput struct { // A list of the index fields you want to describe. If not specified, information // is returned for all configured index fields. - FieldNames []*string + FieldNames []string } // The result of a DescribeIndexFields request. Contains the index fields @@ -61,7 +61,7 @@ type DescribeIndexFieldsOutput struct { // The index fields configured for the domain. // // This member is required. - IndexFields []*types.IndexFieldStatus + IndexFields []types.IndexFieldStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudsearch/api_op_DescribeSuggesters.go b/service/cloudsearch/api_op_DescribeSuggesters.go index 9042b1a5584..f57d8ce5ad3 100644 --- a/service/cloudsearch/api_op_DescribeSuggesters.go +++ b/service/cloudsearch/api_op_DescribeSuggesters.go @@ -51,7 +51,7 @@ type DescribeSuggestersInput struct { Deployed *bool // The suggesters you want to describe. - SuggesterNames []*string + SuggesterNames []string } // The result of a DescribeSuggesters request. @@ -60,7 +60,7 @@ type DescribeSuggestersOutput struct { // The suggesters configured for the domain specified in the request. // // This member is required. - Suggesters []*types.SuggesterStatus + Suggesters []types.SuggesterStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudsearch/api_op_IndexDocuments.go b/service/cloudsearch/api_op_IndexDocuments.go index dc6caa9f763..b65858bf019 100644 --- a/service/cloudsearch/api_op_IndexDocuments.go +++ b/service/cloudsearch/api_op_IndexDocuments.go @@ -46,7 +46,7 @@ type IndexDocumentsInput struct { type IndexDocumentsOutput struct { // The names of the fields that are currently being indexed. - FieldNames []*string + FieldNames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudsearch/api_op_ListDomainNames.go b/service/cloudsearch/api_op_ListDomainNames.go index f3d0013ae0c..ebc05889f30 100644 --- a/service/cloudsearch/api_op_ListDomainNames.go +++ b/service/cloudsearch/api_op_ListDomainNames.go @@ -34,7 +34,7 @@ type ListDomainNamesInput struct { type ListDomainNamesOutput struct { // The names of the search domains owned by an account. - DomainNames map[string]*string + DomainNames map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudsearch/deserializers.go b/service/cloudsearch/deserializers.go index fb0fe92fa85..d70e3009356 100644 --- a/service/cloudsearch/deserializers.go +++ b/service/cloudsearch/deserializers.go @@ -3015,7 +3015,7 @@ func awsAwsquery_deserializeDocumentAccessPoliciesStatus(v **types.AccessPolicie } if val != nil { xtv := string(val) - sv.Options = &xtv + sv.Options = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -3082,7 +3082,7 @@ func awsAwsquery_deserializeDocumentAnalysisOptions(v **types.AnalysisOptions, d } if val != nil { xtv := string(val) - sv.JapaneseTokenizationDictionary = &xtv + sv.JapaneseTokenizationDictionary = ptr.String(xtv) } case strings.EqualFold("StemmingDictionary", t.Name.Local): @@ -3098,7 +3098,7 @@ func awsAwsquery_deserializeDocumentAnalysisOptions(v **types.AnalysisOptions, d } if val != nil { xtv := string(val) - sv.StemmingDictionary = &xtv + sv.StemmingDictionary = ptr.String(xtv) } case strings.EqualFold("Stopwords", t.Name.Local): @@ -3114,7 +3114,7 @@ func awsAwsquery_deserializeDocumentAnalysisOptions(v **types.AnalysisOptions, d } if val != nil { xtv := string(val) - sv.Stopwords = &xtv + sv.Stopwords = ptr.String(xtv) } case strings.EqualFold("Synonyms", t.Name.Local): @@ -3130,7 +3130,7 @@ func awsAwsquery_deserializeDocumentAnalysisOptions(v **types.AnalysisOptions, d } if val != nil { xtv := string(val) - sv.Synonyms = &xtv + sv.Synonyms = ptr.String(xtv) } default: @@ -3197,7 +3197,7 @@ func awsAwsquery_deserializeDocumentAnalysisScheme(v **types.AnalysisScheme, dec } if val != nil { xtv := string(val) - sv.AnalysisSchemeName = &xtv + sv.AnalysisSchemeName = ptr.String(xtv) } default: @@ -3254,13 +3254,13 @@ func awsAwsquery_deserializeDocumentAnalysisSchemeStatus(v **types.AnalysisSchem return nil } -func awsAwsquery_deserializeDocumentAnalysisSchemeStatusList(v *[]*types.AnalysisSchemeStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAnalysisSchemeStatusList(v *[]types.AnalysisSchemeStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AnalysisSchemeStatus + var sv []types.AnalysisSchemeStatus if *v == nil { - sv = make([]*types.AnalysisSchemeStatus, 0) + sv = make([]types.AnalysisSchemeStatus, 0) } else { sv = *v } @@ -3276,11 +3276,13 @@ func awsAwsquery_deserializeDocumentAnalysisSchemeStatusList(v *[]*types.Analysi } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AnalysisSchemeStatus + var col types.AnalysisSchemeStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAnalysisSchemeStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAnalysisSchemeStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -3293,23 +3295,25 @@ func awsAwsquery_deserializeDocumentAnalysisSchemeStatusList(v *[]*types.Analysi return nil } -func awsAwsquery_deserializeDocumentAnalysisSchemeStatusListUnwrapped(v *[]*types.AnalysisSchemeStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.AnalysisSchemeStatus +func awsAwsquery_deserializeDocumentAnalysisSchemeStatusListUnwrapped(v *[]types.AnalysisSchemeStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.AnalysisSchemeStatus if *v == nil { - sv = make([]*types.AnalysisSchemeStatus, 0) + sv = make([]types.AnalysisSchemeStatus, 0) } else { sv = *v } switch { default: - var mv *types.AnalysisSchemeStatus + var mv types.AnalysisSchemeStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAnalysisSchemeStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAnalysisSchemeStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -3350,7 +3354,7 @@ func awsAwsquery_deserializeDocumentAvailabilityOptionsStatus(v **types.Availabi if err != nil { return fmt.Errorf("expected MultiAZ to be of type *bool, got %T instead", val) } - sv.Options = &xtv + sv.Options = xtv } case strings.EqualFold("Status", t.Name.Local): @@ -3404,7 +3408,7 @@ func awsAwsquery_deserializeDocumentBaseException(v **types.BaseException, decod } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -3420,7 +3424,7 @@ func awsAwsquery_deserializeDocumentBaseException(v **types.BaseException, decod } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -3468,7 +3472,7 @@ func awsAwsquery_deserializeDocumentDateArrayOptions(v **types.DateArrayOptions, } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("FacetEnabled", t.Name.Local): @@ -3484,7 +3488,7 @@ func awsAwsquery_deserializeDocumentDateArrayOptions(v **types.DateArrayOptions, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FacetEnabled = &xtv + sv.FacetEnabled = ptr.Bool(xtv) } case strings.EqualFold("ReturnEnabled", t.Name.Local): @@ -3500,7 +3504,7 @@ func awsAwsquery_deserializeDocumentDateArrayOptions(v **types.DateArrayOptions, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnEnabled = &xtv + sv.ReturnEnabled = ptr.Bool(xtv) } case strings.EqualFold("SearchEnabled", t.Name.Local): @@ -3516,7 +3520,7 @@ func awsAwsquery_deserializeDocumentDateArrayOptions(v **types.DateArrayOptions, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SearchEnabled = &xtv + sv.SearchEnabled = ptr.Bool(xtv) } case strings.EqualFold("SourceFields", t.Name.Local): @@ -3532,7 +3536,7 @@ func awsAwsquery_deserializeDocumentDateArrayOptions(v **types.DateArrayOptions, } if val != nil { xtv := string(val) - sv.SourceFields = &xtv + sv.SourceFields = ptr.String(xtv) } default: @@ -3580,7 +3584,7 @@ func awsAwsquery_deserializeDocumentDateOptions(v **types.DateOptions, decoder s } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("FacetEnabled", t.Name.Local): @@ -3596,7 +3600,7 @@ func awsAwsquery_deserializeDocumentDateOptions(v **types.DateOptions, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FacetEnabled = &xtv + sv.FacetEnabled = ptr.Bool(xtv) } case strings.EqualFold("ReturnEnabled", t.Name.Local): @@ -3612,7 +3616,7 @@ func awsAwsquery_deserializeDocumentDateOptions(v **types.DateOptions, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnEnabled = &xtv + sv.ReturnEnabled = ptr.Bool(xtv) } case strings.EqualFold("SearchEnabled", t.Name.Local): @@ -3628,7 +3632,7 @@ func awsAwsquery_deserializeDocumentDateOptions(v **types.DateOptions, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SearchEnabled = &xtv + sv.SearchEnabled = ptr.Bool(xtv) } case strings.EqualFold("SortEnabled", t.Name.Local): @@ -3644,7 +3648,7 @@ func awsAwsquery_deserializeDocumentDateOptions(v **types.DateOptions, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SortEnabled = &xtv + sv.SortEnabled = ptr.Bool(xtv) } case strings.EqualFold("SourceField", t.Name.Local): @@ -3660,7 +3664,7 @@ func awsAwsquery_deserializeDocumentDateOptions(v **types.DateOptions, decoder s } if val != nil { xtv := string(val) - sv.SourceField = &xtv + sv.SourceField = ptr.String(xtv) } default: @@ -3708,7 +3712,7 @@ func awsAwsquery_deserializeDocumentDisabledOperationException(v **types.Disable } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -3724,7 +3728,7 @@ func awsAwsquery_deserializeDocumentDisabledOperationException(v **types.Disable } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -3785,7 +3789,7 @@ func awsAwsquery_deserializeDocumentDocumentSuggesterOptions(v **types.DocumentS } if val != nil { xtv := string(val) - sv.SortExpression = &xtv + sv.SortExpression = ptr.String(xtv) } case strings.EqualFold("SourceField", t.Name.Local): @@ -3801,7 +3805,7 @@ func awsAwsquery_deserializeDocumentDocumentSuggesterOptions(v **types.DocumentS } if val != nil { xtv := string(val) - sv.SourceField = &xtv + sv.SourceField = ptr.String(xtv) } default: @@ -3849,7 +3853,7 @@ func awsAwsquery_deserializeDocumentDomainEndpointOptions(v **types.DomainEndpoi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EnforceHTTPS = &xtv + sv.EnforceHTTPS = ptr.Bool(xtv) } case strings.EqualFold("TLSSecurityPolicy", t.Name.Local): @@ -3919,13 +3923,13 @@ func awsAwsquery_deserializeDocumentDomainEndpointOptionsStatus(v **types.Domain return nil } -func awsAwsquery_deserializeDocumentDomainNameMap(v *map[string]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDomainNameMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*string + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } @@ -3949,23 +3953,23 @@ func awsAwsquery_deserializeDocumentDomainNameMap(v *map[string]*string, decoder return nil } -func awsAwsquery_deserializeDocumentDomainNameMapUnwrapped(v *map[string]*string, decoder smithyxml.NodeDecoder) error { - var sv map[string]*string +func awsAwsquery_deserializeDocumentDomainNameMapUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } - var ek *string - var ev *string + var ek string + var ev string for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -3975,14 +3979,11 @@ func awsAwsquery_deserializeDocumentDomainNameMapUnwrapped(v *map[string]*string return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): @@ -3991,14 +3992,11 @@ func awsAwsquery_deserializeDocumentDomainNameMapUnwrapped(v *map[string]*string return err } if done { - if val == nil { - ev = ptr.String("") - } break } if val != nil { xtv := string(val) - ev = &xtv + ev = xtv } default: @@ -4044,7 +4042,7 @@ func awsAwsquery_deserializeDocumentDomainStatus(v **types.DomainStatus, decoder } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("Created", t.Name.Local): @@ -4060,7 +4058,7 @@ func awsAwsquery_deserializeDocumentDomainStatus(v **types.DomainStatus, decoder if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Created = &xtv + sv.Created = ptr.Bool(xtv) } case strings.EqualFold("Deleted", t.Name.Local): @@ -4076,7 +4074,7 @@ func awsAwsquery_deserializeDocumentDomainStatus(v **types.DomainStatus, decoder if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Deleted = &xtv + sv.Deleted = ptr.Bool(xtv) } case strings.EqualFold("DocService", t.Name.Local): @@ -4098,7 +4096,7 @@ func awsAwsquery_deserializeDocumentDomainStatus(v **types.DomainStatus, decoder } if val != nil { xtv := string(val) - sv.DomainId = &xtv + sv.DomainId = ptr.String(xtv) } case strings.EqualFold("DomainName", t.Name.Local): @@ -4114,7 +4112,7 @@ func awsAwsquery_deserializeDocumentDomainStatus(v **types.DomainStatus, decoder } if val != nil { xtv := string(val) - sv.DomainName = &xtv + sv.DomainName = ptr.String(xtv) } case strings.EqualFold("Limits", t.Name.Local): @@ -4136,7 +4134,7 @@ func awsAwsquery_deserializeDocumentDomainStatus(v **types.DomainStatus, decoder if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Processing = &xtv + sv.Processing = ptr.Bool(xtv) } case strings.EqualFold("RequiresIndexDocuments", t.Name.Local): @@ -4152,7 +4150,7 @@ func awsAwsquery_deserializeDocumentDomainStatus(v **types.DomainStatus, decoder if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.RequiresIndexDocuments = &xtv + sv.RequiresIndexDocuments = ptr.Bool(xtv) } case strings.EqualFold("SearchInstanceCount", t.Name.Local): @@ -4169,7 +4167,7 @@ func awsAwsquery_deserializeDocumentDomainStatus(v **types.DomainStatus, decoder if err != nil { return err } - sv.SearchInstanceCount = ptr.Int32(int32(i64)) + sv.SearchInstanceCount = int32(i64) } case strings.EqualFold("SearchInstanceType", t.Name.Local): @@ -4185,7 +4183,7 @@ func awsAwsquery_deserializeDocumentDomainStatus(v **types.DomainStatus, decoder } if val != nil { xtv := string(val) - sv.SearchInstanceType = &xtv + sv.SearchInstanceType = ptr.String(xtv) } case strings.EqualFold("SearchPartitionCount", t.Name.Local): @@ -4202,7 +4200,7 @@ func awsAwsquery_deserializeDocumentDomainStatus(v **types.DomainStatus, decoder if err != nil { return err } - sv.SearchPartitionCount = ptr.Int32(int32(i64)) + sv.SearchPartitionCount = int32(i64) } case strings.EqualFold("SearchService", t.Name.Local): @@ -4221,13 +4219,13 @@ func awsAwsquery_deserializeDocumentDomainStatus(v **types.DomainStatus, decoder return nil } -func awsAwsquery_deserializeDocumentDomainStatusList(v *[]*types.DomainStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDomainStatusList(v *[]types.DomainStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DomainStatus + var sv []types.DomainStatus if *v == nil { - sv = make([]*types.DomainStatus, 0) + sv = make([]types.DomainStatus, 0) } else { sv = *v } @@ -4243,11 +4241,13 @@ func awsAwsquery_deserializeDocumentDomainStatusList(v *[]*types.DomainStatus, d } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.DomainStatus + var col types.DomainStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDomainStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDomainStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -4260,23 +4260,25 @@ func awsAwsquery_deserializeDocumentDomainStatusList(v *[]*types.DomainStatus, d return nil } -func awsAwsquery_deserializeDocumentDomainStatusListUnwrapped(v *[]*types.DomainStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.DomainStatus +func awsAwsquery_deserializeDocumentDomainStatusListUnwrapped(v *[]types.DomainStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.DomainStatus if *v == nil { - sv = make([]*types.DomainStatus, 0) + sv = make([]types.DomainStatus, 0) } else { sv = *v } switch { default: - var mv *types.DomainStatus + var mv types.DomainStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDomainStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDomainStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -4318,7 +4320,7 @@ func awsAwsquery_deserializeDocumentDoubleArrayOptions(v **types.DoubleArrayOpti if err != nil { return err } - sv.DefaultValue = &f64 + sv.DefaultValue = ptr.Float64(f64) } case strings.EqualFold("FacetEnabled", t.Name.Local): @@ -4334,7 +4336,7 @@ func awsAwsquery_deserializeDocumentDoubleArrayOptions(v **types.DoubleArrayOpti if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FacetEnabled = &xtv + sv.FacetEnabled = ptr.Bool(xtv) } case strings.EqualFold("ReturnEnabled", t.Name.Local): @@ -4350,7 +4352,7 @@ func awsAwsquery_deserializeDocumentDoubleArrayOptions(v **types.DoubleArrayOpti if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnEnabled = &xtv + sv.ReturnEnabled = ptr.Bool(xtv) } case strings.EqualFold("SearchEnabled", t.Name.Local): @@ -4366,7 +4368,7 @@ func awsAwsquery_deserializeDocumentDoubleArrayOptions(v **types.DoubleArrayOpti if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SearchEnabled = &xtv + sv.SearchEnabled = ptr.Bool(xtv) } case strings.EqualFold("SourceFields", t.Name.Local): @@ -4382,7 +4384,7 @@ func awsAwsquery_deserializeDocumentDoubleArrayOptions(v **types.DoubleArrayOpti } if val != nil { xtv := string(val) - sv.SourceFields = &xtv + sv.SourceFields = ptr.String(xtv) } default: @@ -4431,7 +4433,7 @@ func awsAwsquery_deserializeDocumentDoubleOptions(v **types.DoubleOptions, decod if err != nil { return err } - sv.DefaultValue = &f64 + sv.DefaultValue = ptr.Float64(f64) } case strings.EqualFold("FacetEnabled", t.Name.Local): @@ -4447,7 +4449,7 @@ func awsAwsquery_deserializeDocumentDoubleOptions(v **types.DoubleOptions, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FacetEnabled = &xtv + sv.FacetEnabled = ptr.Bool(xtv) } case strings.EqualFold("ReturnEnabled", t.Name.Local): @@ -4463,7 +4465,7 @@ func awsAwsquery_deserializeDocumentDoubleOptions(v **types.DoubleOptions, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnEnabled = &xtv + sv.ReturnEnabled = ptr.Bool(xtv) } case strings.EqualFold("SearchEnabled", t.Name.Local): @@ -4479,7 +4481,7 @@ func awsAwsquery_deserializeDocumentDoubleOptions(v **types.DoubleOptions, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SearchEnabled = &xtv + sv.SearchEnabled = ptr.Bool(xtv) } case strings.EqualFold("SortEnabled", t.Name.Local): @@ -4495,7 +4497,7 @@ func awsAwsquery_deserializeDocumentDoubleOptions(v **types.DoubleOptions, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SortEnabled = &xtv + sv.SortEnabled = ptr.Bool(xtv) } case strings.EqualFold("SourceField", t.Name.Local): @@ -4511,7 +4513,7 @@ func awsAwsquery_deserializeDocumentDoubleOptions(v **types.DoubleOptions, decod } if val != nil { xtv := string(val) - sv.SourceField = &xtv + sv.SourceField = ptr.String(xtv) } default: @@ -4559,7 +4561,7 @@ func awsAwsquery_deserializeDocumentExpression(v **types.Expression, decoder smi } if val != nil { xtv := string(val) - sv.ExpressionName = &xtv + sv.ExpressionName = ptr.String(xtv) } case strings.EqualFold("ExpressionValue", t.Name.Local): @@ -4575,7 +4577,7 @@ func awsAwsquery_deserializeDocumentExpression(v **types.Expression, decoder smi } if val != nil { xtv := string(val) - sv.ExpressionValue = &xtv + sv.ExpressionValue = ptr.String(xtv) } default: @@ -4632,13 +4634,13 @@ func awsAwsquery_deserializeDocumentExpressionStatus(v **types.ExpressionStatus, return nil } -func awsAwsquery_deserializeDocumentExpressionStatusList(v *[]*types.ExpressionStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentExpressionStatusList(v *[]types.ExpressionStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ExpressionStatus + var sv []types.ExpressionStatus if *v == nil { - sv = make([]*types.ExpressionStatus, 0) + sv = make([]types.ExpressionStatus, 0) } else { sv = *v } @@ -4654,11 +4656,13 @@ func awsAwsquery_deserializeDocumentExpressionStatusList(v *[]*types.ExpressionS } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ExpressionStatus + var col types.ExpressionStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentExpressionStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentExpressionStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -4671,35 +4675,37 @@ func awsAwsquery_deserializeDocumentExpressionStatusList(v *[]*types.ExpressionS return nil } -func awsAwsquery_deserializeDocumentExpressionStatusListUnwrapped(v *[]*types.ExpressionStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.ExpressionStatus +func awsAwsquery_deserializeDocumentExpressionStatusListUnwrapped(v *[]types.ExpressionStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.ExpressionStatus if *v == nil { - sv = make([]*types.ExpressionStatus, 0) + sv = make([]types.ExpressionStatus, 0) } else { sv = *v } switch { default: - var mv *types.ExpressionStatus + var mv types.ExpressionStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentExpressionStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentExpressionStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentFieldNameList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentFieldNameList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -4717,20 +4723,17 @@ func awsAwsquery_deserializeDocumentFieldNameList(v *[]*string, decoder smithyxm decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -4743,17 +4746,17 @@ func awsAwsquery_deserializeDocumentFieldNameList(v *[]*string, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentFieldNameListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentFieldNameListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -4761,14 +4764,11 @@ func awsAwsquery_deserializeDocumentFieldNameListUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -4834,7 +4834,7 @@ func awsAwsquery_deserializeDocumentIndexField(v **types.IndexField, decoder smi } if val != nil { xtv := string(val) - sv.IndexFieldName = &xtv + sv.IndexFieldName = ptr.String(xtv) } case strings.EqualFold("IndexFieldType", t.Name.Local): @@ -4946,13 +4946,13 @@ func awsAwsquery_deserializeDocumentIndexFieldStatus(v **types.IndexFieldStatus, return nil } -func awsAwsquery_deserializeDocumentIndexFieldStatusList(v *[]*types.IndexFieldStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentIndexFieldStatusList(v *[]types.IndexFieldStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.IndexFieldStatus + var sv []types.IndexFieldStatus if *v == nil { - sv = make([]*types.IndexFieldStatus, 0) + sv = make([]types.IndexFieldStatus, 0) } else { sv = *v } @@ -4968,11 +4968,13 @@ func awsAwsquery_deserializeDocumentIndexFieldStatusList(v *[]*types.IndexFieldS } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.IndexFieldStatus + var col types.IndexFieldStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentIndexFieldStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentIndexFieldStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -4985,23 +4987,25 @@ func awsAwsquery_deserializeDocumentIndexFieldStatusList(v *[]*types.IndexFieldS return nil } -func awsAwsquery_deserializeDocumentIndexFieldStatusListUnwrapped(v *[]*types.IndexFieldStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.IndexFieldStatus +func awsAwsquery_deserializeDocumentIndexFieldStatusListUnwrapped(v *[]types.IndexFieldStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.IndexFieldStatus if *v == nil { - sv = make([]*types.IndexFieldStatus, 0) + sv = make([]types.IndexFieldStatus, 0) } else { sv = *v } switch { default: - var mv *types.IndexFieldStatus + var mv types.IndexFieldStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentIndexFieldStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentIndexFieldStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5043,7 +5047,7 @@ func awsAwsquery_deserializeDocumentIntArrayOptions(v **types.IntArrayOptions, d if err != nil { return err } - sv.DefaultValue = &i64 + sv.DefaultValue = ptr.Int64(i64) } case strings.EqualFold("FacetEnabled", t.Name.Local): @@ -5059,7 +5063,7 @@ func awsAwsquery_deserializeDocumentIntArrayOptions(v **types.IntArrayOptions, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FacetEnabled = &xtv + sv.FacetEnabled = ptr.Bool(xtv) } case strings.EqualFold("ReturnEnabled", t.Name.Local): @@ -5075,7 +5079,7 @@ func awsAwsquery_deserializeDocumentIntArrayOptions(v **types.IntArrayOptions, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnEnabled = &xtv + sv.ReturnEnabled = ptr.Bool(xtv) } case strings.EqualFold("SearchEnabled", t.Name.Local): @@ -5091,7 +5095,7 @@ func awsAwsquery_deserializeDocumentIntArrayOptions(v **types.IntArrayOptions, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SearchEnabled = &xtv + sv.SearchEnabled = ptr.Bool(xtv) } case strings.EqualFold("SourceFields", t.Name.Local): @@ -5107,7 +5111,7 @@ func awsAwsquery_deserializeDocumentIntArrayOptions(v **types.IntArrayOptions, d } if val != nil { xtv := string(val) - sv.SourceFields = &xtv + sv.SourceFields = ptr.String(xtv) } default: @@ -5155,7 +5159,7 @@ func awsAwsquery_deserializeDocumentInternalException(v **types.InternalExceptio } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -5171,7 +5175,7 @@ func awsAwsquery_deserializeDocumentInternalException(v **types.InternalExceptio } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5220,7 +5224,7 @@ func awsAwsquery_deserializeDocumentIntOptions(v **types.IntOptions, decoder smi if err != nil { return err } - sv.DefaultValue = &i64 + sv.DefaultValue = ptr.Int64(i64) } case strings.EqualFold("FacetEnabled", t.Name.Local): @@ -5236,7 +5240,7 @@ func awsAwsquery_deserializeDocumentIntOptions(v **types.IntOptions, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FacetEnabled = &xtv + sv.FacetEnabled = ptr.Bool(xtv) } case strings.EqualFold("ReturnEnabled", t.Name.Local): @@ -5252,7 +5256,7 @@ func awsAwsquery_deserializeDocumentIntOptions(v **types.IntOptions, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnEnabled = &xtv + sv.ReturnEnabled = ptr.Bool(xtv) } case strings.EqualFold("SearchEnabled", t.Name.Local): @@ -5268,7 +5272,7 @@ func awsAwsquery_deserializeDocumentIntOptions(v **types.IntOptions, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SearchEnabled = &xtv + sv.SearchEnabled = ptr.Bool(xtv) } case strings.EqualFold("SortEnabled", t.Name.Local): @@ -5284,7 +5288,7 @@ func awsAwsquery_deserializeDocumentIntOptions(v **types.IntOptions, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SortEnabled = &xtv + sv.SortEnabled = ptr.Bool(xtv) } case strings.EqualFold("SourceField", t.Name.Local): @@ -5300,7 +5304,7 @@ func awsAwsquery_deserializeDocumentIntOptions(v **types.IntOptions, decoder smi } if val != nil { xtv := string(val) - sv.SourceField = &xtv + sv.SourceField = ptr.String(xtv) } default: @@ -5348,7 +5352,7 @@ func awsAwsquery_deserializeDocumentInvalidTypeException(v **types.InvalidTypeEx } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -5364,7 +5368,7 @@ func awsAwsquery_deserializeDocumentInvalidTypeException(v **types.InvalidTypeEx } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5412,7 +5416,7 @@ func awsAwsquery_deserializeDocumentLatLonOptions(v **types.LatLonOptions, decod } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("FacetEnabled", t.Name.Local): @@ -5428,7 +5432,7 @@ func awsAwsquery_deserializeDocumentLatLonOptions(v **types.LatLonOptions, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FacetEnabled = &xtv + sv.FacetEnabled = ptr.Bool(xtv) } case strings.EqualFold("ReturnEnabled", t.Name.Local): @@ -5444,7 +5448,7 @@ func awsAwsquery_deserializeDocumentLatLonOptions(v **types.LatLonOptions, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnEnabled = &xtv + sv.ReturnEnabled = ptr.Bool(xtv) } case strings.EqualFold("SearchEnabled", t.Name.Local): @@ -5460,7 +5464,7 @@ func awsAwsquery_deserializeDocumentLatLonOptions(v **types.LatLonOptions, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SearchEnabled = &xtv + sv.SearchEnabled = ptr.Bool(xtv) } case strings.EqualFold("SortEnabled", t.Name.Local): @@ -5476,7 +5480,7 @@ func awsAwsquery_deserializeDocumentLatLonOptions(v **types.LatLonOptions, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SortEnabled = &xtv + sv.SortEnabled = ptr.Bool(xtv) } case strings.EqualFold("SourceField", t.Name.Local): @@ -5492,7 +5496,7 @@ func awsAwsquery_deserializeDocumentLatLonOptions(v **types.LatLonOptions, decod } if val != nil { xtv := string(val) - sv.SourceField = &xtv + sv.SourceField = ptr.String(xtv) } default: @@ -5540,7 +5544,7 @@ func awsAwsquery_deserializeDocumentLimitExceededException(v **types.LimitExceed } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -5556,7 +5560,7 @@ func awsAwsquery_deserializeDocumentLimitExceededException(v **types.LimitExceed } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5605,7 +5609,7 @@ func awsAwsquery_deserializeDocumentLimits(v **types.Limits, decoder smithyxml.N if err != nil { return err } - sv.MaximumPartitionCount = ptr.Int32(int32(i64)) + sv.MaximumPartitionCount = int32(i64) } case strings.EqualFold("MaximumReplicationCount", t.Name.Local): @@ -5622,7 +5626,7 @@ func awsAwsquery_deserializeDocumentLimits(v **types.Limits, decoder smithyxml.N if err != nil { return err } - sv.MaximumReplicationCount = ptr.Int32(int32(i64)) + sv.MaximumReplicationCount = int32(i64) } default: @@ -5670,7 +5674,7 @@ func awsAwsquery_deserializeDocumentLiteralArrayOptions(v **types.LiteralArrayOp } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("FacetEnabled", t.Name.Local): @@ -5686,7 +5690,7 @@ func awsAwsquery_deserializeDocumentLiteralArrayOptions(v **types.LiteralArrayOp if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FacetEnabled = &xtv + sv.FacetEnabled = ptr.Bool(xtv) } case strings.EqualFold("ReturnEnabled", t.Name.Local): @@ -5702,7 +5706,7 @@ func awsAwsquery_deserializeDocumentLiteralArrayOptions(v **types.LiteralArrayOp if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnEnabled = &xtv + sv.ReturnEnabled = ptr.Bool(xtv) } case strings.EqualFold("SearchEnabled", t.Name.Local): @@ -5718,7 +5722,7 @@ func awsAwsquery_deserializeDocumentLiteralArrayOptions(v **types.LiteralArrayOp if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SearchEnabled = &xtv + sv.SearchEnabled = ptr.Bool(xtv) } case strings.EqualFold("SourceFields", t.Name.Local): @@ -5734,7 +5738,7 @@ func awsAwsquery_deserializeDocumentLiteralArrayOptions(v **types.LiteralArrayOp } if val != nil { xtv := string(val) - sv.SourceFields = &xtv + sv.SourceFields = ptr.String(xtv) } default: @@ -5782,7 +5786,7 @@ func awsAwsquery_deserializeDocumentLiteralOptions(v **types.LiteralOptions, dec } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("FacetEnabled", t.Name.Local): @@ -5798,7 +5802,7 @@ func awsAwsquery_deserializeDocumentLiteralOptions(v **types.LiteralOptions, dec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FacetEnabled = &xtv + sv.FacetEnabled = ptr.Bool(xtv) } case strings.EqualFold("ReturnEnabled", t.Name.Local): @@ -5814,7 +5818,7 @@ func awsAwsquery_deserializeDocumentLiteralOptions(v **types.LiteralOptions, dec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnEnabled = &xtv + sv.ReturnEnabled = ptr.Bool(xtv) } case strings.EqualFold("SearchEnabled", t.Name.Local): @@ -5830,7 +5834,7 @@ func awsAwsquery_deserializeDocumentLiteralOptions(v **types.LiteralOptions, dec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SearchEnabled = &xtv + sv.SearchEnabled = ptr.Bool(xtv) } case strings.EqualFold("SortEnabled", t.Name.Local): @@ -5846,7 +5850,7 @@ func awsAwsquery_deserializeDocumentLiteralOptions(v **types.LiteralOptions, dec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SortEnabled = &xtv + sv.SortEnabled = ptr.Bool(xtv) } case strings.EqualFold("SourceField", t.Name.Local): @@ -5862,7 +5866,7 @@ func awsAwsquery_deserializeDocumentLiteralOptions(v **types.LiteralOptions, dec } if val != nil { xtv := string(val) - sv.SourceField = &xtv + sv.SourceField = ptr.String(xtv) } default: @@ -5911,7 +5915,7 @@ func awsAwsquery_deserializeDocumentOptionStatus(v **types.OptionStatus, decoder if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case strings.EqualFold("PendingDeletion", t.Name.Local): @@ -5927,7 +5931,7 @@ func awsAwsquery_deserializeDocumentOptionStatus(v **types.OptionStatus, decoder if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.PendingDeletion = &xtv + sv.PendingDeletion = ptr.Bool(xtv) } case strings.EqualFold("State", t.Name.Local): @@ -5957,7 +5961,7 @@ func awsAwsquery_deserializeDocumentOptionStatus(v **types.OptionStatus, decoder if err != nil { return err } - sv.UpdateDate = &t + sv.UpdateDate = ptr.Time(t) } case strings.EqualFold("UpdateVersion", t.Name.Local): @@ -5974,7 +5978,7 @@ func awsAwsquery_deserializeDocumentOptionStatus(v **types.OptionStatus, decoder if err != nil { return err } - sv.UpdateVersion = ptr.Int32(int32(i64)) + sv.UpdateVersion = int32(i64) } default: @@ -6022,7 +6026,7 @@ func awsAwsquery_deserializeDocumentResourceNotFoundException(v **types.Resource } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -6038,7 +6042,7 @@ func awsAwsquery_deserializeDocumentResourceNotFoundException(v **types.Resource } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6100,7 +6104,7 @@ func awsAwsquery_deserializeDocumentScalingParameters(v **types.ScalingParameter if err != nil { return err } - sv.DesiredPartitionCount = ptr.Int32(int32(i64)) + sv.DesiredPartitionCount = int32(i64) } case strings.EqualFold("DesiredReplicationCount", t.Name.Local): @@ -6117,7 +6121,7 @@ func awsAwsquery_deserializeDocumentScalingParameters(v **types.ScalingParameter if err != nil { return err } - sv.DesiredReplicationCount = ptr.Int32(int32(i64)) + sv.DesiredReplicationCount = int32(i64) } default: @@ -6209,7 +6213,7 @@ func awsAwsquery_deserializeDocumentServiceEndpoint(v **types.ServiceEndpoint, d } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } default: @@ -6263,7 +6267,7 @@ func awsAwsquery_deserializeDocumentSuggester(v **types.Suggester, decoder smith } if val != nil { xtv := string(val) - sv.SuggesterName = &xtv + sv.SuggesterName = ptr.String(xtv) } default: @@ -6320,13 +6324,13 @@ func awsAwsquery_deserializeDocumentSuggesterStatus(v **types.SuggesterStatus, d return nil } -func awsAwsquery_deserializeDocumentSuggesterStatusList(v *[]*types.SuggesterStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSuggesterStatusList(v *[]types.SuggesterStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SuggesterStatus + var sv []types.SuggesterStatus if *v == nil { - sv = make([]*types.SuggesterStatus, 0) + sv = make([]types.SuggesterStatus, 0) } else { sv = *v } @@ -6342,11 +6346,13 @@ func awsAwsquery_deserializeDocumentSuggesterStatusList(v *[]*types.SuggesterSta } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.SuggesterStatus + var col types.SuggesterStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSuggesterStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSuggesterStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6359,23 +6365,25 @@ func awsAwsquery_deserializeDocumentSuggesterStatusList(v *[]*types.SuggesterSta return nil } -func awsAwsquery_deserializeDocumentSuggesterStatusListUnwrapped(v *[]*types.SuggesterStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.SuggesterStatus +func awsAwsquery_deserializeDocumentSuggesterStatusListUnwrapped(v *[]types.SuggesterStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.SuggesterStatus if *v == nil { - sv = make([]*types.SuggesterStatus, 0) + sv = make([]types.SuggesterStatus, 0) } else { sv = *v } switch { default: - var mv *types.SuggesterStatus + var mv types.SuggesterStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSuggesterStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSuggesterStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6416,7 +6424,7 @@ func awsAwsquery_deserializeDocumentTextArrayOptions(v **types.TextArrayOptions, } if val != nil { xtv := string(val) - sv.AnalysisScheme = &xtv + sv.AnalysisScheme = ptr.String(xtv) } case strings.EqualFold("DefaultValue", t.Name.Local): @@ -6432,7 +6440,7 @@ func awsAwsquery_deserializeDocumentTextArrayOptions(v **types.TextArrayOptions, } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("HighlightEnabled", t.Name.Local): @@ -6448,7 +6456,7 @@ func awsAwsquery_deserializeDocumentTextArrayOptions(v **types.TextArrayOptions, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.HighlightEnabled = &xtv + sv.HighlightEnabled = ptr.Bool(xtv) } case strings.EqualFold("ReturnEnabled", t.Name.Local): @@ -6464,7 +6472,7 @@ func awsAwsquery_deserializeDocumentTextArrayOptions(v **types.TextArrayOptions, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnEnabled = &xtv + sv.ReturnEnabled = ptr.Bool(xtv) } case strings.EqualFold("SourceFields", t.Name.Local): @@ -6480,7 +6488,7 @@ func awsAwsquery_deserializeDocumentTextArrayOptions(v **types.TextArrayOptions, } if val != nil { xtv := string(val) - sv.SourceFields = &xtv + sv.SourceFields = ptr.String(xtv) } default: @@ -6528,7 +6536,7 @@ func awsAwsquery_deserializeDocumentTextOptions(v **types.TextOptions, decoder s } if val != nil { xtv := string(val) - sv.AnalysisScheme = &xtv + sv.AnalysisScheme = ptr.String(xtv) } case strings.EqualFold("DefaultValue", t.Name.Local): @@ -6544,7 +6552,7 @@ func awsAwsquery_deserializeDocumentTextOptions(v **types.TextOptions, decoder s } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("HighlightEnabled", t.Name.Local): @@ -6560,7 +6568,7 @@ func awsAwsquery_deserializeDocumentTextOptions(v **types.TextOptions, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.HighlightEnabled = &xtv + sv.HighlightEnabled = ptr.Bool(xtv) } case strings.EqualFold("ReturnEnabled", t.Name.Local): @@ -6576,7 +6584,7 @@ func awsAwsquery_deserializeDocumentTextOptions(v **types.TextOptions, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnEnabled = &xtv + sv.ReturnEnabled = ptr.Bool(xtv) } case strings.EqualFold("SortEnabled", t.Name.Local): @@ -6592,7 +6600,7 @@ func awsAwsquery_deserializeDocumentTextOptions(v **types.TextOptions, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SortEnabled = &xtv + sv.SortEnabled = ptr.Bool(xtv) } case strings.EqualFold("SourceField", t.Name.Local): @@ -6608,7 +6616,7 @@ func awsAwsquery_deserializeDocumentTextOptions(v **types.TextOptions, decoder s } if val != nil { xtv := string(val) - sv.SourceField = &xtv + sv.SourceField = ptr.String(xtv) } default: @@ -6656,7 +6664,7 @@ func awsAwsquery_deserializeDocumentValidationException(v **types.ValidationExce } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -6672,7 +6680,7 @@ func awsAwsquery_deserializeDocumentValidationException(v **types.ValidationExce } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: diff --git a/service/cloudsearch/go.mod b/service/cloudsearch/go.mod index 05e2c114279..7706a1e9c6a 100644 --- a/service/cloudsearch/go.mod +++ b/service/cloudsearch/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cloudsearch go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cloudsearch/serializers.go b/service/cloudsearch/serializers.go index ccb9f996f25..ac679a8c9a9 100644 --- a/service/cloudsearch/serializers.go +++ b/service/cloudsearch/serializers.go @@ -1605,18 +1605,15 @@ func awsAwsquery_serializeDocumentDomainEndpointOptions(v *types.DomainEndpointO return nil } -func awsAwsquery_serializeDocumentDomainNameList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentDomainNameList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1690,18 +1687,15 @@ func awsAwsquery_serializeDocumentDoubleOptions(v *types.DoubleOptions, value qu return nil } -func awsAwsquery_serializeDocumentDynamicFieldNameList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentDynamicFieldNameList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2001,31 +1995,28 @@ func awsAwsquery_serializeDocumentScalingParameters(v *types.ScalingParameters, objectKey.String(string(v.DesiredInstanceType)) } - if v.DesiredPartitionCount != nil { + if v.DesiredPartitionCount != 0 { objectKey := object.Key("DesiredPartitionCount") - objectKey.Integer(*v.DesiredPartitionCount) + objectKey.Integer(v.DesiredPartitionCount) } - if v.DesiredReplicationCount != nil { + if v.DesiredReplicationCount != 0 { objectKey := object.Key("DesiredReplicationCount") - objectKey.Integer(*v.DesiredReplicationCount) + objectKey.Integer(v.DesiredReplicationCount) } return nil } -func awsAwsquery_serializeDocumentStandardNameList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentStandardNameList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/cloudsearch/types/types.go b/service/cloudsearch/types/types.go index b7945df631d..8b0d3711868 100644 --- a/service/cloudsearch/types/types.go +++ b/service/cloudsearch/types/types.go @@ -114,7 +114,7 @@ type AvailabilityOptionsStatus struct { // The availability options configured for the domain. // // This member is required. - Options *bool + Options bool // The status of domain configuration option. // @@ -275,13 +275,13 @@ type DomainStatus struct { Processing *bool // The number of search instances that are available to process search requests. - SearchInstanceCount *int32 + SearchInstanceCount int32 // The instance type that is being used to process search requests. SearchInstanceType *string // The number of partitions across which the search index is spread. - SearchPartitionCount *int32 + SearchPartitionCount int32 // The service endpoint for requesting search results from a search domain. SearchService *ServiceEndpoint @@ -545,9 +545,9 @@ type LatLonOptions struct { } type Limits struct { - MaximumPartitionCount *int32 + MaximumPartitionCount int32 - MaximumReplicationCount *int32 + MaximumReplicationCount int32 } // Options for a field that contains an array of literal strings. Present if @@ -641,7 +641,7 @@ type OptionStatus struct { PendingDeletion *bool // A unique integer that indicates when this option was last updated. - UpdateVersion *int32 + UpdateVersion int32 } // The desired instance type and desired number of replicas of each index @@ -654,10 +654,10 @@ type ScalingParameters struct { // The number of partitions you want to preconfigure for your domain. Only valid // when you select m2.2xlarge as the desired instance type. - DesiredPartitionCount *int32 + DesiredPartitionCount int32 // The number of replicas you want to preconfigure for each index partition. - DesiredReplicationCount *int32 + DesiredReplicationCount int32 } // The status and configuration of a search domain's scaling parameters. diff --git a/service/cloudsearchdomain/api_op_Search.go b/service/cloudsearchdomain/api_op_Search.go index c282e0b88b5..280e551065f 100644 --- a/service/cloudsearchdomain/api_op_Search.go +++ b/service/cloudsearchdomain/api_op_Search.go @@ -189,7 +189,7 @@ type SearchInput struct { // than displaying no results, you could display the partial results and a message // indicating that the results might be incomplete due to a temporary system // outage. - Partial *bool + Partial bool // Configures options for the query parser specified in the queryParser parameter. // You specify the options in JSON using the following form @@ -328,7 +328,7 @@ type SearchInput struct { Return *string // Specifies the maximum number of search hits to include in the response. - Size *int64 + Size int64 // Specifies the fields or custom expressions to use to sort the search results. // Multiple fields or expressions are specified as a comma-separated list. You must @@ -348,7 +348,7 @@ type SearchInput struct { // more information, see Paginating Results // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/paginating-results.html) // in the Amazon CloudSearch Developer Guide. - Start *int64 + Start int64 // Specifies one or more fields for which to get statistics information. Each // specified field must be facet-enabled in the domain configuration. The fields @@ -362,13 +362,13 @@ type SearchInput struct { type SearchOutput struct { // The requested facet information. - Facets map[string]*types.BucketInfo + Facets map[string]types.BucketInfo // The documents that match the search criteria. Hits *types.Hits // The requested field statistics information. - Stats map[string]*types.FieldStats + Stats map[string]types.FieldStats // The status information returned for the search request. Status *types.SearchStatus diff --git a/service/cloudsearchdomain/api_op_Suggest.go b/service/cloudsearchdomain/api_op_Suggest.go index 8c741b56655..49342168a3b 100644 --- a/service/cloudsearchdomain/api_op_Suggest.go +++ b/service/cloudsearchdomain/api_op_Suggest.go @@ -55,7 +55,7 @@ type SuggestInput struct { Suggester *string // Specifies the maximum number of suggestions to return. - Size *int64 + Size int64 } // Contains the response to a Suggest request. diff --git a/service/cloudsearchdomain/api_op_UploadDocuments.go b/service/cloudsearchdomain/api_op_UploadDocuments.go index 89495949cdc..c4f7de9c273 100644 --- a/service/cloudsearchdomain/api_op_UploadDocuments.go +++ b/service/cloudsearchdomain/api_op_UploadDocuments.go @@ -71,17 +71,17 @@ type UploadDocumentsInput struct { type UploadDocumentsOutput struct { // The number of documents that were added to the search domain. - Adds *int64 + Adds int64 // The number of documents that were deleted from the search domain. - Deletes *int64 + Deletes int64 // The status of an UploadDocumentsRequest. Status *string // Any warnings returned by the document service about the documents being // uploaded. - Warnings []*types.DocumentServiceWarning + Warnings []types.DocumentServiceWarning // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudsearchdomain/deserializers.go b/service/cloudsearchdomain/deserializers.go index a0424ee7e56..4d2b6743930 100644 --- a/service/cloudsearchdomain/deserializers.go +++ b/service/cloudsearchdomain/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -474,7 +475,7 @@ func awsRestjson1_deserializeOpDocumentUploadDocumentsOutput(v **UploadDocuments if err != nil { return err } - sv.Adds = &i64 + sv.Adds = i64 } case "deletes": @@ -487,7 +488,7 @@ func awsRestjson1_deserializeOpDocumentUploadDocumentsOutput(v **UploadDocuments if err != nil { return err } - sv.Deletes = &i64 + sv.Deletes = i64 } case "status": @@ -496,7 +497,7 @@ func awsRestjson1_deserializeOpDocumentUploadDocumentsOutput(v **UploadDocuments if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "warnings": @@ -617,7 +618,7 @@ func awsRestjson1_deserializeDocumentBucket(v **types.Bucket, value interface{}) if err != nil { return err } - sv.Count = &i64 + sv.Count = i64 } case "value": @@ -626,7 +627,7 @@ func awsRestjson1_deserializeDocumentBucket(v **types.Bucket, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -674,7 +675,7 @@ func awsRestjson1_deserializeDocumentBucketInfo(v **types.BucketInfo, value inte return nil } -func awsRestjson1_deserializeDocumentBucketList(v *[]*types.Bucket, value interface{}) error { +func awsRestjson1_deserializeDocumentBucketList(v *[]types.Bucket, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -687,18 +688,20 @@ func awsRestjson1_deserializeDocumentBucketList(v *[]*types.Bucket, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Bucket + var cv []types.Bucket if *v == nil { - cv = []*types.Bucket{} + cv = []types.Bucket{} } else { cv = *v } for _, value := range shape { - var col *types.Bucket - if err := awsRestjson1_deserializeDocumentBucket(&col, value); err != nil { + var col types.Bucket + destAddr := &col + if err := awsRestjson1_deserializeDocumentBucket(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -734,7 +737,7 @@ func awsRestjson1_deserializeDocumentDocumentServiceException(v **types.Document if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "status": @@ -743,7 +746,7 @@ func awsRestjson1_deserializeDocumentDocumentServiceException(v **types.Document if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -783,7 +786,7 @@ func awsRestjson1_deserializeDocumentDocumentServiceWarning(v **types.DocumentSe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -795,7 +798,7 @@ func awsRestjson1_deserializeDocumentDocumentServiceWarning(v **types.DocumentSe return nil } -func awsRestjson1_deserializeDocumentDocumentServiceWarnings(v *[]*types.DocumentServiceWarning, value interface{}) error { +func awsRestjson1_deserializeDocumentDocumentServiceWarnings(v *[]types.DocumentServiceWarning, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -808,18 +811,20 @@ func awsRestjson1_deserializeDocumentDocumentServiceWarnings(v *[]*types.Documen return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentServiceWarning + var cv []types.DocumentServiceWarning if *v == nil { - cv = []*types.DocumentServiceWarning{} + cv = []types.DocumentServiceWarning{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentServiceWarning - if err := awsRestjson1_deserializeDocumentDocumentServiceWarning(&col, value); err != nil { + var col types.DocumentServiceWarning + destAddr := &col + if err := awsRestjson1_deserializeDocumentDocumentServiceWarning(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -827,7 +832,7 @@ func awsRestjson1_deserializeDocumentDocumentServiceWarnings(v *[]*types.Documen return nil } -func awsRestjson1_deserializeDocumentExprs(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentExprs(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -840,21 +845,21 @@ func awsRestjson1_deserializeDocumentExprs(v *map[string]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -863,7 +868,7 @@ func awsRestjson1_deserializeDocumentExprs(v *map[string]*string, value interfac return nil } -func awsRestjson1_deserializeDocumentFacets(v *map[string]*types.BucketInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentFacets(v *map[string]types.BucketInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -876,18 +881,21 @@ func awsRestjson1_deserializeDocumentFacets(v *map[string]*types.BucketInfo, val return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.BucketInfo + var mv map[string]types.BucketInfo if *v == nil { - mv = map[string]*types.BucketInfo{} + mv = map[string]types.BucketInfo{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.BucketInfo - if err := awsRestjson1_deserializeDocumentBucketInfo(&parsedVal, value); err != nil { + var parsedVal types.BucketInfo + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentBucketInfo(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -895,7 +903,7 @@ func awsRestjson1_deserializeDocumentFacets(v *map[string]*types.BucketInfo, val return nil } -func awsRestjson1_deserializeDocumentFields(v *map[string][]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentFields(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -908,18 +916,20 @@ func awsRestjson1_deserializeDocumentFields(v *map[string][]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsRestjson1_deserializeDocumentFieldValue(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentFieldValue(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -959,7 +969,7 @@ func awsRestjson1_deserializeDocumentFieldStats(v **types.FieldStats, value inte if err != nil { return err } - sv.Count = &i64 + sv.Count = i64 } case "max": @@ -968,7 +978,7 @@ func awsRestjson1_deserializeDocumentFieldStats(v **types.FieldStats, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Max = &jtv + sv.Max = ptr.String(jtv) } case "mean": @@ -977,7 +987,7 @@ func awsRestjson1_deserializeDocumentFieldStats(v **types.FieldStats, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Mean = &jtv + sv.Mean = ptr.String(jtv) } case "min": @@ -986,7 +996,7 @@ func awsRestjson1_deserializeDocumentFieldStats(v **types.FieldStats, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Min = &jtv + sv.Min = ptr.String(jtv) } case "missing": @@ -999,7 +1009,7 @@ func awsRestjson1_deserializeDocumentFieldStats(v **types.FieldStats, value inte if err != nil { return err } - sv.Missing = &i64 + sv.Missing = i64 } case "stddev": @@ -1012,7 +1022,7 @@ func awsRestjson1_deserializeDocumentFieldStats(v **types.FieldStats, value inte if err != nil { return err } - sv.Stddev = &f64 + sv.Stddev = f64 } case "sum": @@ -1025,7 +1035,7 @@ func awsRestjson1_deserializeDocumentFieldStats(v **types.FieldStats, value inte if err != nil { return err } - sv.Sum = &f64 + sv.Sum = f64 } case "sumOfSquares": @@ -1038,7 +1048,7 @@ func awsRestjson1_deserializeDocumentFieldStats(v **types.FieldStats, value inte if err != nil { return err } - sv.SumOfSquares = &f64 + sv.SumOfSquares = f64 } default: @@ -1050,7 +1060,7 @@ func awsRestjson1_deserializeDocumentFieldStats(v **types.FieldStats, value inte return nil } -func awsRestjson1_deserializeDocumentFieldValue(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentFieldValue(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1063,21 +1073,21 @@ func awsRestjson1_deserializeDocumentFieldValue(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -1086,7 +1096,7 @@ func awsRestjson1_deserializeDocumentFieldValue(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentHighlights(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentHighlights(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1099,21 +1109,21 @@ func awsRestjson1_deserializeDocumentHighlights(v *map[string]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -1165,7 +1175,7 @@ func awsRestjson1_deserializeDocumentHit(v **types.Hit, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -1177,7 +1187,7 @@ func awsRestjson1_deserializeDocumentHit(v **types.Hit, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentHitList(v *[]*types.Hit, value interface{}) error { +func awsRestjson1_deserializeDocumentHitList(v *[]types.Hit, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1190,18 +1200,20 @@ func awsRestjson1_deserializeDocumentHitList(v *[]*types.Hit, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Hit + var cv []types.Hit if *v == nil { - cv = []*types.Hit{} + cv = []types.Hit{} } else { cv = *v } for _, value := range shape { - var col *types.Hit - if err := awsRestjson1_deserializeDocumentHit(&col, value); err != nil { + var col types.Hit + destAddr := &col + if err := awsRestjson1_deserializeDocumentHit(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1237,7 +1249,7 @@ func awsRestjson1_deserializeDocumentHits(v **types.Hits, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Cursor = &jtv + sv.Cursor = ptr.String(jtv) } case "found": @@ -1250,7 +1262,7 @@ func awsRestjson1_deserializeDocumentHits(v **types.Hits, value interface{}) err if err != nil { return err } - sv.Found = &i64 + sv.Found = i64 } case "hit": @@ -1268,7 +1280,7 @@ func awsRestjson1_deserializeDocumentHits(v **types.Hits, value interface{}) err if err != nil { return err } - sv.Start = &i64 + sv.Start = i64 } default: @@ -1308,7 +1320,7 @@ func awsRestjson1_deserializeDocumentSearchException(v **types.SearchException, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1348,7 +1360,7 @@ func awsRestjson1_deserializeDocumentSearchStatus(v **types.SearchStatus, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Rid = &jtv + sv.Rid = ptr.String(jtv) } case "timems": @@ -1361,7 +1373,7 @@ func awsRestjson1_deserializeDocumentSearchStatus(v **types.SearchStatus, value if err != nil { return err } - sv.Timems = &i64 + sv.Timems = i64 } default: @@ -1373,7 +1385,7 @@ func awsRestjson1_deserializeDocumentSearchStatus(v **types.SearchStatus, value return nil } -func awsRestjson1_deserializeDocumentStats(v *map[string]*types.FieldStats, value interface{}) error { +func awsRestjson1_deserializeDocumentStats(v *map[string]types.FieldStats, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1386,18 +1398,21 @@ func awsRestjson1_deserializeDocumentStats(v *map[string]*types.FieldStats, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.FieldStats + var mv map[string]types.FieldStats if *v == nil { - mv = map[string]*types.FieldStats{} + mv = map[string]types.FieldStats{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.FieldStats - if err := awsRestjson1_deserializeDocumentFieldStats(&parsedVal, value); err != nil { + var parsedVal types.FieldStats + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentFieldStats(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -1433,7 +1448,7 @@ func awsRestjson1_deserializeDocumentSuggestionMatch(v **types.SuggestionMatch, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "score": @@ -1446,7 +1461,7 @@ func awsRestjson1_deserializeDocumentSuggestionMatch(v **types.SuggestionMatch, if err != nil { return err } - sv.Score = &i64 + sv.Score = i64 } case "suggestion": @@ -1455,7 +1470,7 @@ func awsRestjson1_deserializeDocumentSuggestionMatch(v **types.SuggestionMatch, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Suggestion = &jtv + sv.Suggestion = ptr.String(jtv) } default: @@ -1467,7 +1482,7 @@ func awsRestjson1_deserializeDocumentSuggestionMatch(v **types.SuggestionMatch, return nil } -func awsRestjson1_deserializeDocumentSuggestions(v *[]*types.SuggestionMatch, value interface{}) error { +func awsRestjson1_deserializeDocumentSuggestions(v *[]types.SuggestionMatch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1480,18 +1495,20 @@ func awsRestjson1_deserializeDocumentSuggestions(v *[]*types.SuggestionMatch, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SuggestionMatch + var cv []types.SuggestionMatch if *v == nil { - cv = []*types.SuggestionMatch{} + cv = []types.SuggestionMatch{} } else { cv = *v } for _, value := range shape { - var col *types.SuggestionMatch - if err := awsRestjson1_deserializeDocumentSuggestionMatch(&col, value); err != nil { + var col types.SuggestionMatch + destAddr := &col + if err := awsRestjson1_deserializeDocumentSuggestionMatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1531,7 +1548,7 @@ func awsRestjson1_deserializeDocumentSuggestModel(v **types.SuggestModel, value if err != nil { return err } - sv.Found = &i64 + sv.Found = i64 } case "query": @@ -1540,7 +1557,7 @@ func awsRestjson1_deserializeDocumentSuggestModel(v **types.SuggestModel, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Query = &jtv + sv.Query = ptr.String(jtv) } case "suggestions": @@ -1585,7 +1602,7 @@ func awsRestjson1_deserializeDocumentSuggestStatus(v **types.SuggestStatus, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Rid = &jtv + sv.Rid = ptr.String(jtv) } case "timems": @@ -1598,7 +1615,7 @@ func awsRestjson1_deserializeDocumentSuggestStatus(v **types.SuggestStatus, valu if err != nil { return err } - sv.Timems = &i64 + sv.Timems = i64 } default: diff --git a/service/cloudsearchdomain/go.mod b/service/cloudsearchdomain/go.mod index 055c2281840..e3599b2b473 100644 --- a/service/cloudsearchdomain/go.mod +++ b/service/cloudsearchdomain/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cloudsearchdomain go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cloudsearchdomain/serializers.go b/service/cloudsearchdomain/serializers.go index 541e788869b..ec26359e16f 100644 --- a/service/cloudsearchdomain/serializers.go +++ b/service/cloudsearchdomain/serializers.go @@ -82,8 +82,8 @@ func awsRestjson1_serializeOpHttpBindingsSearchInput(v *SearchInput, encoder *ht encoder.SetQuery("highlight").String(*v.Highlight) } - if v.Partial != nil { - encoder.SetQuery("partial").Boolean(*v.Partial) + if v.Partial { + encoder.SetQuery("partial").Boolean(v.Partial) } if v.Query != nil { @@ -102,16 +102,16 @@ func awsRestjson1_serializeOpHttpBindingsSearchInput(v *SearchInput, encoder *ht encoder.SetQuery("return").String(*v.Return) } - if v.Size != nil { - encoder.SetQuery("size").Long(*v.Size) + if v.Size != 0 { + encoder.SetQuery("size").Long(v.Size) } if v.Sort != nil { encoder.SetQuery("sort").String(*v.Sort) } - if v.Start != nil { - encoder.SetQuery("start").Long(*v.Start) + if v.Start != 0 { + encoder.SetQuery("start").Long(v.Start) } if v.Stats != nil { @@ -176,8 +176,8 @@ func awsRestjson1_serializeOpHttpBindingsSuggestInput(v *SuggestInput, encoder * encoder.SetQuery("q").String(*v.Query) } - if v.Size != nil { - encoder.SetQuery("size").Long(*v.Size) + if v.Size != 0 { + encoder.SetQuery("size").Long(v.Size) } if v.Suggester != nil { diff --git a/service/cloudsearchdomain/types/types.go b/service/cloudsearchdomain/types/types.go index d6090c58724..319d157db06 100644 --- a/service/cloudsearchdomain/types/types.go +++ b/service/cloudsearchdomain/types/types.go @@ -6,7 +6,7 @@ package types type Bucket struct { // The number of hits that contain the facet value in the specified facet field. - Count *int64 + Count int64 // The facet value being counted. Value *string @@ -16,7 +16,7 @@ type Bucket struct { type BucketInfo struct { // A list of the calculated facet values and counts. - Buckets []*Bucket + Buckets []Bucket } // A warning returned by the document service when an issue is discovered while @@ -32,7 +32,7 @@ type FieldStats struct { // The number of documents that contain a value in the specified field in the // result set. - Count *int64 + Count int64 // The maximum value found in the specified field in the result set. If the field // is numeric (int, int-array, double, or double-array), max is the string @@ -60,30 +60,30 @@ type FieldStats struct { // The number of documents that do not contain a value in the specified field in // the result set. - Missing *int64 + Missing int64 // The standard deviation of the values in the specified field in the result set. - Stddev *float64 + Stddev float64 // The sum of the field values across the documents in the result set. null for // date fields. - Sum *float64 + Sum float64 // The sum of all field values in the result set squared. - SumOfSquares *float64 + SumOfSquares float64 } // Information about a document that matches the search request. type Hit struct { // The expressions returned from a document that matches the search request. - Exprs map[string]*string + Exprs map[string]string // The fields returned from a document that matches the search request. - Fields map[string][]*string + Fields map[string][]string // The highlights returned from a document that matches the search request. - Highlights map[string]*string + Highlights map[string]string // The document ID of a document that matches the search request. Id *string @@ -97,13 +97,13 @@ type Hits struct { Cursor *string // The total number of documents that match the search request. - Found *int64 + Found int64 // A document that matches the search request. - Hit []*Hit + Hit []Hit // The index of the first matching document. - Start *int64 + Start int64 } // Contains the resource id (rid) and the time it took to process the request @@ -114,7 +114,7 @@ type SearchStatus struct { Rid *string // How long it took to process the request, in milliseconds. - Timems *int64 + Timems int64 } // An autocomplete suggestion that matches the query string specified in a @@ -125,7 +125,7 @@ type SuggestionMatch struct { Id *string // The relevance score of a suggested match. - Score *int64 + Score int64 // The string that matches the query string specified in the SuggestRequest. Suggestion *string @@ -135,13 +135,13 @@ type SuggestionMatch struct { type SuggestModel struct { // The number of documents that were found to match the query string. - Found *int64 + Found int64 // The query string specified in the suggest request. Query *string // The documents that match the query string. - Suggestions []*SuggestionMatch + Suggestions []SuggestionMatch } // Contains the resource id (rid) and the time it took to process the request @@ -152,5 +152,5 @@ type SuggestStatus struct { Rid *string // How long it took to process the request, in milliseconds. - Timems *int64 + Timems int64 } diff --git a/service/cloudtrail/api_op_AddTags.go b/service/cloudtrail/api_op_AddTags.go index 195175949b1..ff1b052b32d 100644 --- a/service/cloudtrail/api_op_AddTags.go +++ b/service/cloudtrail/api_op_AddTags.go @@ -44,7 +44,7 @@ type AddTagsInput struct { ResourceId *string // Contains a list of CloudTrail tags, up to a limit of 50 - TagsList []*types.Tag + TagsList []types.Tag } // Returns the objects or data listed below if successful. Otherwise, returns an diff --git a/service/cloudtrail/api_op_CreateTrail.go b/service/cloudtrail/api_op_CreateTrail.go index a81fa6362e5..46e970ec1e7 100644 --- a/service/cloudtrail/api_op_CreateTrail.go +++ b/service/cloudtrail/api_op_CreateTrail.go @@ -123,7 +123,7 @@ type CreateTrailInput struct { SnsTopicName *string // A list of tags. - TagsList []*types.Tag + TagsList []types.Tag } // Returns the objects or data listed below if successful. Otherwise, returns an diff --git a/service/cloudtrail/api_op_DescribeTrails.go b/service/cloudtrail/api_op_DescribeTrails.go index 0bdac870c36..c3d2774dd39 100644 --- a/service/cloudtrail/api_op_DescribeTrails.go +++ b/service/cloudtrail/api_op_DescribeTrails.go @@ -57,7 +57,7 @@ type DescribeTrailsInput struct { // only if the names match the names of trails belonging only to the current // region. To return information about a trail in another region, you must specify // its trail ARN. - TrailNameList []*string + TrailNameList []string } // Returns the objects or data listed below if successful. Otherwise, returns an @@ -69,7 +69,7 @@ type DescribeTrailsOutput struct { // SNSTopicName and SNSTopicARN are only returned in results if a trail is // configured to send SNS notifications. Similarly, KMSKeyId only appears in // results if a trail's log files are encrypted with AWS KMS-managed keys. - TrailList []*types.Trail + TrailList []types.Trail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudtrail/api_op_GetEventSelectors.go b/service/cloudtrail/api_op_GetEventSelectors.go index 3228c9a7043..cedd000faf7 100644 --- a/service/cloudtrail/api_op_GetEventSelectors.go +++ b/service/cloudtrail/api_op_GetEventSelectors.go @@ -74,7 +74,7 @@ type GetEventSelectorsInput struct { type GetEventSelectorsOutput struct { // The event selectors that are configured for the trail. - EventSelectors []*types.EventSelector + EventSelectors []types.EventSelector // The specified trail ARN that has the event selectors. TrailARN *string diff --git a/service/cloudtrail/api_op_GetInsightSelectors.go b/service/cloudtrail/api_op_GetInsightSelectors.go index b4f90b549b9..13553fd5be4 100644 --- a/service/cloudtrail/api_op_GetInsightSelectors.go +++ b/service/cloudtrail/api_op_GetInsightSelectors.go @@ -65,7 +65,7 @@ type GetInsightSelectorsOutput struct { // A JSON string that contains the insight types you want to log on a trail. In // this release, only ApiCallRateInsight is supported as an insight type. - InsightSelectors []*types.InsightSelector + InsightSelectors []types.InsightSelector // The Amazon Resource Name (ARN) of a trail for which you want to get Insights // selectors. diff --git a/service/cloudtrail/api_op_ListPublicKeys.go b/service/cloudtrail/api_op_ListPublicKeys.go index 869c3d3db2a..3ed09dd863f 100644 --- a/service/cloudtrail/api_op_ListPublicKeys.go +++ b/service/cloudtrail/api_op_ListPublicKeys.go @@ -59,7 +59,7 @@ type ListPublicKeysOutput struct { // Contains an array of PublicKey objects. The returned public keys may have // validity time ranges that overlap. - PublicKeyList []*types.PublicKey + PublicKeyList []types.PublicKey // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudtrail/api_op_ListTags.go b/service/cloudtrail/api_op_ListTags.go index cd97e1ffcc5..df1f678646c 100644 --- a/service/cloudtrail/api_op_ListTags.go +++ b/service/cloudtrail/api_op_ListTags.go @@ -35,7 +35,7 @@ type ListTagsInput struct { // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // This member is required. - ResourceIdList []*string + ResourceIdList []string // Reserved for future use. NextToken *string @@ -49,7 +49,7 @@ type ListTagsOutput struct { NextToken *string // A list of resource tags. - ResourceTagList []*types.ResourceTag + ResourceTagList []types.ResourceTag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudtrail/api_op_ListTrails.go b/service/cloudtrail/api_op_ListTrails.go index 3ac7cbf274f..78dcd6c3a54 100644 --- a/service/cloudtrail/api_op_ListTrails.go +++ b/service/cloudtrail/api_op_ListTrails.go @@ -47,7 +47,7 @@ type ListTrailsOutput struct { NextToken *string // Returns the name, ARN, and home region of trails in the current account. - Trails []*types.TrailInfo + Trails []types.TrailInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudtrail/api_op_LookupEvents.go b/service/cloudtrail/api_op_LookupEvents.go index baf699cee68..07f4f650117 100644 --- a/service/cloudtrail/api_op_LookupEvents.go +++ b/service/cloudtrail/api_op_LookupEvents.go @@ -82,7 +82,7 @@ type LookupEventsInput struct { // Contains a list of lookup attributes. Currently the list can contain only one // item. - LookupAttributes []*types.LookupAttribute + LookupAttributes []types.LookupAttribute // The number of events to return. Possible values are 1 through 50. The default is // 50. @@ -107,7 +107,7 @@ type LookupEventsOutput struct { // A list of events returned based on the lookup attributes specified and the // CloudTrail event. The events list is sorted by time. The most recent event is // listed first. - Events []*types.Event + Events []types.Event // The token to use to get the next page of results after a previous API call. If // the token does not appear, there are no more results to return. The token must diff --git a/service/cloudtrail/api_op_PutEventSelectors.go b/service/cloudtrail/api_op_PutEventSelectors.go index 1d90a5cf1e7..e65f7802f21 100644 --- a/service/cloudtrail/api_op_PutEventSelectors.go +++ b/service/cloudtrail/api_op_PutEventSelectors.go @@ -65,7 +65,7 @@ type PutEventSelectorsInput struct { // event selectors for a trail. // // This member is required. - EventSelectors []*types.EventSelector + EventSelectors []types.EventSelector // Specifies the name of the trail or trail ARN. If you specify a trail name, the // string must meet the following requirements: @@ -95,7 +95,7 @@ type PutEventSelectorsInput struct { type PutEventSelectorsOutput struct { // Specifies the event selectors configured for your trail. - EventSelectors []*types.EventSelector + EventSelectors []types.EventSelector // Specifies the ARN of the trail that was updated with event selectors. The format // of a trail ARN is: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail diff --git a/service/cloudtrail/api_op_PutInsightSelectors.go b/service/cloudtrail/api_op_PutInsightSelectors.go index b533d693385..7e26ce829b2 100644 --- a/service/cloudtrail/api_op_PutInsightSelectors.go +++ b/service/cloudtrail/api_op_PutInsightSelectors.go @@ -36,7 +36,7 @@ type PutInsightSelectorsInput struct { // this release, only ApiCallRateInsight is supported as an insight type. // // This member is required. - InsightSelectors []*types.InsightSelector + InsightSelectors []types.InsightSelector // The name of the CloudTrail trail for which you want to change or add Insights // selectors. @@ -49,7 +49,7 @@ type PutInsightSelectorsOutput struct { // A JSON string that contains the insight types you want to log on a trail. In // this release, only ApiCallRateInsight is supported as an insight type. - InsightSelectors []*types.InsightSelector + InsightSelectors []types.InsightSelector // The Amazon Resource Name (ARN) of a trail for which you want to change or add // Insights selectors. diff --git a/service/cloudtrail/api_op_RemoveTags.go b/service/cloudtrail/api_op_RemoveTags.go index 10205e71149..984171f17e2 100644 --- a/service/cloudtrail/api_op_RemoveTags.go +++ b/service/cloudtrail/api_op_RemoveTags.go @@ -37,7 +37,7 @@ type RemoveTagsInput struct { ResourceId *string // Specifies a list of tags to be removed. - TagsList []*types.Tag + TagsList []types.Tag } // Returns the objects or data listed below if successful. Otherwise, returns an diff --git a/service/cloudtrail/deserializers.go b/service/cloudtrail/deserializers.go index 4c320eeda34..85d3f4cc946 100644 --- a/service/cloudtrail/deserializers.go +++ b/service/cloudtrail/deserializers.go @@ -3909,7 +3909,7 @@ func awsAwsjson11_deserializeDocumentCloudTrailAccessNotEnabledException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3949,7 +3949,7 @@ func awsAwsjson11_deserializeDocumentCloudTrailARNInvalidException(v **types.Clo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3989,7 +3989,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLogsDeliveryUnavailableException( if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4029,7 +4029,7 @@ func awsAwsjson11_deserializeDocumentDataResource(v **types.DataResource, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "Values": @@ -4046,7 +4046,7 @@ func awsAwsjson11_deserializeDocumentDataResource(v **types.DataResource, value return nil } -func awsAwsjson11_deserializeDocumentDataResources(v *[]*types.DataResource, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataResources(v *[]types.DataResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4059,18 +4059,20 @@ func awsAwsjson11_deserializeDocumentDataResources(v *[]*types.DataResource, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataResource + var cv []types.DataResource if *v == nil { - cv = []*types.DataResource{} + cv = []types.DataResource{} } else { cv = *v } for _, value := range shape { - var col *types.DataResource - if err := awsAwsjson11_deserializeDocumentDataResource(&col, value); err != nil { + var col types.DataResource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4078,7 +4080,7 @@ func awsAwsjson11_deserializeDocumentDataResources(v *[]*types.DataResource, val return nil } -func awsAwsjson11_deserializeDocumentDataResourceValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataResourceValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4091,21 +4093,21 @@ func awsAwsjson11_deserializeDocumentDataResourceValues(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -4142,7 +4144,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccessKeyId = &jtv + sv.AccessKeyId = ptr.String(jtv) } case "CloudTrailEvent": @@ -4151,7 +4153,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CloudTrailEvent = &jtv + sv.CloudTrailEvent = ptr.String(jtv) } case "EventId": @@ -4160,7 +4162,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EventId = &jtv + sv.EventId = ptr.String(jtv) } case "EventName": @@ -4169,7 +4171,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EventName = &jtv + sv.EventName = ptr.String(jtv) } case "EventSource": @@ -4178,7 +4180,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EventSource = &jtv + sv.EventSource = ptr.String(jtv) } case "EventTime": @@ -4200,7 +4202,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReadOnly = &jtv + sv.ReadOnly = ptr.String(jtv) } case "Resources": @@ -4214,7 +4216,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -4264,7 +4266,7 @@ func awsAwsjson11_deserializeDocumentEventSelector(v **types.EventSelector, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IncludeManagementEvents = &jtv + sv.IncludeManagementEvents = ptr.Bool(jtv) } case "ReadWriteType": @@ -4285,7 +4287,7 @@ func awsAwsjson11_deserializeDocumentEventSelector(v **types.EventSelector, valu return nil } -func awsAwsjson11_deserializeDocumentEventSelectors(v *[]*types.EventSelector, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventSelectors(v *[]types.EventSelector, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4298,18 +4300,20 @@ func awsAwsjson11_deserializeDocumentEventSelectors(v *[]*types.EventSelector, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventSelector + var cv []types.EventSelector if *v == nil { - cv = []*types.EventSelector{} + cv = []types.EventSelector{} } else { cv = *v } for _, value := range shape { - var col *types.EventSelector - if err := awsAwsjson11_deserializeDocumentEventSelector(&col, value); err != nil { + var col types.EventSelector + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventSelector(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4317,7 +4321,7 @@ func awsAwsjson11_deserializeDocumentEventSelectors(v *[]*types.EventSelector, v return nil } -func awsAwsjson11_deserializeDocumentEventsList(v *[]*types.Event, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventsList(v *[]types.Event, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4330,18 +4334,20 @@ func awsAwsjson11_deserializeDocumentEventsList(v *[]*types.Event, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Event + var cv []types.Event if *v == nil { - cv = []*types.Event{} + cv = []types.Event{} } else { cv = *v } for _, value := range shape { - var col *types.Event - if err := awsAwsjson11_deserializeDocumentEvent(&col, value); err != nil { + var col types.Event + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4349,7 +4355,7 @@ func awsAwsjson11_deserializeDocumentEventsList(v *[]*types.Event, value interfa return nil } -func awsAwsjson11_deserializeDocumentExcludeManagementEventSources(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentExcludeManagementEventSources(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4362,21 +4368,21 @@ func awsAwsjson11_deserializeDocumentExcludeManagementEventSources(v *[]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -4413,7 +4419,7 @@ func awsAwsjson11_deserializeDocumentInsightNotEnabledException(v **types.Insigh if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4465,7 +4471,7 @@ func awsAwsjson11_deserializeDocumentInsightSelector(v **types.InsightSelector, return nil } -func awsAwsjson11_deserializeDocumentInsightSelectors(v *[]*types.InsightSelector, value interface{}) error { +func awsAwsjson11_deserializeDocumentInsightSelectors(v *[]types.InsightSelector, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4478,18 +4484,20 @@ func awsAwsjson11_deserializeDocumentInsightSelectors(v *[]*types.InsightSelecto return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InsightSelector + var cv []types.InsightSelector if *v == nil { - cv = []*types.InsightSelector{} + cv = []types.InsightSelector{} } else { cv = *v } for _, value := range shape { - var col *types.InsightSelector - if err := awsAwsjson11_deserializeDocumentInsightSelector(&col, value); err != nil { + var col types.InsightSelector + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInsightSelector(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4525,7 +4533,7 @@ func awsAwsjson11_deserializeDocumentInsufficientDependencyServiceAccessPermissi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4565,7 +4573,7 @@ func awsAwsjson11_deserializeDocumentInsufficientEncryptionPolicyException(v **t if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4605,7 +4613,7 @@ func awsAwsjson11_deserializeDocumentInsufficientS3BucketPolicyException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4645,7 +4653,7 @@ func awsAwsjson11_deserializeDocumentInsufficientSnsTopicPolicyException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4685,7 +4693,7 @@ func awsAwsjson11_deserializeDocumentInvalidCloudWatchLogsLogGroupArnException(v if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4725,7 +4733,7 @@ func awsAwsjson11_deserializeDocumentInvalidCloudWatchLogsRoleArnException(v **t if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4765,7 +4773,7 @@ func awsAwsjson11_deserializeDocumentInvalidEventCategoryException(v **types.Inv if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4805,7 +4813,7 @@ func awsAwsjson11_deserializeDocumentInvalidEventSelectorsException(v **types.In if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4845,7 +4853,7 @@ func awsAwsjson11_deserializeDocumentInvalidHomeRegionException(v **types.Invali if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4885,7 +4893,7 @@ func awsAwsjson11_deserializeDocumentInvalidInsightSelectorsException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4925,7 +4933,7 @@ func awsAwsjson11_deserializeDocumentInvalidKmsKeyIdException(v **types.InvalidK if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4965,7 +4973,7 @@ func awsAwsjson11_deserializeDocumentInvalidLookupAttributesException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5005,7 +5013,7 @@ func awsAwsjson11_deserializeDocumentInvalidMaxResultsException(v **types.Invali if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5045,7 +5053,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5085,7 +5093,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterCombinationException(v **ty if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5125,7 +5133,7 @@ func awsAwsjson11_deserializeDocumentInvalidS3BucketNameException(v **types.Inva if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5165,7 +5173,7 @@ func awsAwsjson11_deserializeDocumentInvalidS3PrefixException(v **types.InvalidS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5205,7 +5213,7 @@ func awsAwsjson11_deserializeDocumentInvalidSnsTopicNameException(v **types.Inva if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5245,7 +5253,7 @@ func awsAwsjson11_deserializeDocumentInvalidTagParameterException(v **types.Inva if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5285,7 +5293,7 @@ func awsAwsjson11_deserializeDocumentInvalidTimeRangeException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5325,7 +5333,7 @@ func awsAwsjson11_deserializeDocumentInvalidTokenException(v **types.InvalidToke if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5365,7 +5373,7 @@ func awsAwsjson11_deserializeDocumentInvalidTrailNameException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5405,7 +5413,7 @@ func awsAwsjson11_deserializeDocumentKmsException(v **types.KmsException, value if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5445,7 +5453,7 @@ func awsAwsjson11_deserializeDocumentKmsKeyDisabledException(v **types.KmsKeyDis if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5485,7 +5493,7 @@ func awsAwsjson11_deserializeDocumentKmsKeyNotFoundException(v **types.KmsKeyNot if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5525,7 +5533,7 @@ func awsAwsjson11_deserializeDocumentMaximumNumberOfTrailsExceededException(v ** if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5565,7 +5573,7 @@ func awsAwsjson11_deserializeDocumentNotOrganizationMasterAccountException(v **t if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5605,7 +5613,7 @@ func awsAwsjson11_deserializeDocumentOperationNotPermittedException(v **types.Op if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5645,7 +5653,7 @@ func awsAwsjson11_deserializeDocumentOrganizationNotInAllFeaturesModeException(v if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5685,7 +5693,7 @@ func awsAwsjson11_deserializeDocumentOrganizationsNotInUseException(v **types.Or if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5725,7 +5733,7 @@ func awsAwsjson11_deserializeDocumentPublicKey(v **types.PublicKey, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Fingerprint = &jtv + sv.Fingerprint = ptr.String(jtv) } case "ValidityEndTime": @@ -5776,7 +5784,7 @@ func awsAwsjson11_deserializeDocumentPublicKey(v **types.PublicKey, value interf return nil } -func awsAwsjson11_deserializeDocumentPublicKeyList(v *[]*types.PublicKey, value interface{}) error { +func awsAwsjson11_deserializeDocumentPublicKeyList(v *[]types.PublicKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5789,18 +5797,20 @@ func awsAwsjson11_deserializeDocumentPublicKeyList(v *[]*types.PublicKey, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PublicKey + var cv []types.PublicKey if *v == nil { - cv = []*types.PublicKey{} + cv = []types.PublicKey{} } else { cv = *v } for _, value := range shape { - var col *types.PublicKey - if err := awsAwsjson11_deserializeDocumentPublicKey(&col, value); err != nil { + var col types.PublicKey + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPublicKey(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5836,7 +5846,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } case "ResourceType": @@ -5845,7 +5855,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -5857,7 +5867,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac return nil } -func awsAwsjson11_deserializeDocumentResourceList(v *[]*types.Resource, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceList(v *[]types.Resource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5870,18 +5880,20 @@ func awsAwsjson11_deserializeDocumentResourceList(v *[]*types.Resource, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Resource + var cv []types.Resource if *v == nil { - cv = []*types.Resource{} + cv = []types.Resource{} } else { cv = *v } for _, value := range shape { - var col *types.Resource - if err := awsAwsjson11_deserializeDocumentResource(&col, value); err != nil { + var col types.Resource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5917,7 +5929,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5957,7 +5969,7 @@ func awsAwsjson11_deserializeDocumentResourceTag(v **types.ResourceTag, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "TagsList": @@ -5974,7 +5986,7 @@ func awsAwsjson11_deserializeDocumentResourceTag(v **types.ResourceTag, value in return nil } -func awsAwsjson11_deserializeDocumentResourceTagList(v *[]*types.ResourceTag, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceTagList(v *[]types.ResourceTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5987,18 +5999,20 @@ func awsAwsjson11_deserializeDocumentResourceTagList(v *[]*types.ResourceTag, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceTag + var cv []types.ResourceTag if *v == nil { - cv = []*types.ResourceTag{} + cv = []types.ResourceTag{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceTag - if err := awsAwsjson11_deserializeDocumentResourceTag(&col, value); err != nil { + var col types.ResourceTag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6034,7 +6048,7 @@ func awsAwsjson11_deserializeDocumentResourceTypeNotSupportedException(v **types if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6074,7 +6088,7 @@ func awsAwsjson11_deserializeDocumentS3BucketDoesNotExistException(v **types.S3B if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6114,7 +6128,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -6123,7 +6137,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6163,7 +6177,7 @@ func awsAwsjson11_deserializeDocumentTagsLimitExceededException(v **types.TagsLi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6175,7 +6189,7 @@ func awsAwsjson11_deserializeDocumentTagsLimitExceededException(v **types.TagsLi return nil } -func awsAwsjson11_deserializeDocumentTagsList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagsList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6188,18 +6202,20 @@ func awsAwsjson11_deserializeDocumentTagsList(v *[]*types.Tag, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6235,7 +6251,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CloudWatchLogsLogGroupArn = &jtv + sv.CloudWatchLogsLogGroupArn = ptr.String(jtv) } case "CloudWatchLogsRoleArn": @@ -6244,7 +6260,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CloudWatchLogsRoleArn = &jtv + sv.CloudWatchLogsRoleArn = ptr.String(jtv) } case "HasCustomEventSelectors": @@ -6253,7 +6269,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.HasCustomEventSelectors = &jtv + sv.HasCustomEventSelectors = ptr.Bool(jtv) } case "HasInsightSelectors": @@ -6262,7 +6278,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.HasInsightSelectors = &jtv + sv.HasInsightSelectors = ptr.Bool(jtv) } case "HomeRegion": @@ -6271,7 +6287,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HomeRegion = &jtv + sv.HomeRegion = ptr.String(jtv) } case "IncludeGlobalServiceEvents": @@ -6280,7 +6296,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IncludeGlobalServiceEvents = &jtv + sv.IncludeGlobalServiceEvents = ptr.Bool(jtv) } case "IsMultiRegionTrail": @@ -6289,7 +6305,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsMultiRegionTrail = &jtv + sv.IsMultiRegionTrail = ptr.Bool(jtv) } case "IsOrganizationTrail": @@ -6298,7 +6314,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsOrganizationTrail = &jtv + sv.IsOrganizationTrail = ptr.Bool(jtv) } case "KmsKeyId": @@ -6307,7 +6323,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LogFileValidationEnabled": @@ -6316,7 +6332,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.LogFileValidationEnabled = &jtv + sv.LogFileValidationEnabled = ptr.Bool(jtv) } case "Name": @@ -6325,7 +6341,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "S3BucketName": @@ -6334,7 +6350,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "S3KeyPrefix": @@ -6343,7 +6359,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3KeyPrefix = &jtv + sv.S3KeyPrefix = ptr.String(jtv) } case "SnsTopicARN": @@ -6352,7 +6368,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SnsTopicARN = &jtv + sv.SnsTopicARN = ptr.String(jtv) } case "SnsTopicName": @@ -6361,7 +6377,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SnsTopicName = &jtv + sv.SnsTopicName = ptr.String(jtv) } case "TrailARN": @@ -6370,7 +6386,7 @@ func awsAwsjson11_deserializeDocumentTrail(v **types.Trail, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TrailARN = &jtv + sv.TrailARN = ptr.String(jtv) } default: @@ -6410,7 +6426,7 @@ func awsAwsjson11_deserializeDocumentTrailAlreadyExistsException(v **types.Trail if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6450,7 +6466,7 @@ func awsAwsjson11_deserializeDocumentTrailInfo(v **types.TrailInfo, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HomeRegion = &jtv + sv.HomeRegion = ptr.String(jtv) } case "Name": @@ -6459,7 +6475,7 @@ func awsAwsjson11_deserializeDocumentTrailInfo(v **types.TrailInfo, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "TrailARN": @@ -6468,7 +6484,7 @@ func awsAwsjson11_deserializeDocumentTrailInfo(v **types.TrailInfo, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TrailARN = &jtv + sv.TrailARN = ptr.String(jtv) } default: @@ -6480,7 +6496,7 @@ func awsAwsjson11_deserializeDocumentTrailInfo(v **types.TrailInfo, value interf return nil } -func awsAwsjson11_deserializeDocumentTrailList(v *[]*types.Trail, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrailList(v *[]types.Trail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6493,18 +6509,20 @@ func awsAwsjson11_deserializeDocumentTrailList(v *[]*types.Trail, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Trail + var cv []types.Trail if *v == nil { - cv = []*types.Trail{} + cv = []types.Trail{} } else { cv = *v } for _, value := range shape { - var col *types.Trail - if err := awsAwsjson11_deserializeDocumentTrail(&col, value); err != nil { + var col types.Trail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6540,7 +6558,7 @@ func awsAwsjson11_deserializeDocumentTrailNotFoundException(v **types.TrailNotFo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6580,7 +6598,7 @@ func awsAwsjson11_deserializeDocumentTrailNotProvidedException(v **types.TrailNo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6592,7 +6610,7 @@ func awsAwsjson11_deserializeDocumentTrailNotProvidedException(v **types.TrailNo return nil } -func awsAwsjson11_deserializeDocumentTrails(v *[]*types.TrailInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrails(v *[]types.TrailInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6605,18 +6623,20 @@ func awsAwsjson11_deserializeDocumentTrails(v *[]*types.TrailInfo, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TrailInfo + var cv []types.TrailInfo if *v == nil { - cv = []*types.TrailInfo{} + cv = []types.TrailInfo{} } else { cv = *v } for _, value := range shape { - var col *types.TrailInfo - if err := awsAwsjson11_deserializeDocumentTrailInfo(&col, value); err != nil { + var col types.TrailInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrailInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6652,7 +6672,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6723,7 +6743,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrailOutput(v **CreateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CloudWatchLogsLogGroupArn = &jtv + sv.CloudWatchLogsLogGroupArn = ptr.String(jtv) } case "CloudWatchLogsRoleArn": @@ -6732,7 +6752,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrailOutput(v **CreateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CloudWatchLogsRoleArn = &jtv + sv.CloudWatchLogsRoleArn = ptr.String(jtv) } case "IncludeGlobalServiceEvents": @@ -6741,7 +6761,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrailOutput(v **CreateTrailOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IncludeGlobalServiceEvents = &jtv + sv.IncludeGlobalServiceEvents = ptr.Bool(jtv) } case "IsMultiRegionTrail": @@ -6750,7 +6770,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrailOutput(v **CreateTrailOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsMultiRegionTrail = &jtv + sv.IsMultiRegionTrail = ptr.Bool(jtv) } case "IsOrganizationTrail": @@ -6759,7 +6779,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrailOutput(v **CreateTrailOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsOrganizationTrail = &jtv + sv.IsOrganizationTrail = ptr.Bool(jtv) } case "KmsKeyId": @@ -6768,7 +6788,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrailOutput(v **CreateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LogFileValidationEnabled": @@ -6777,7 +6797,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrailOutput(v **CreateTrailOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.LogFileValidationEnabled = &jtv + sv.LogFileValidationEnabled = ptr.Bool(jtv) } case "Name": @@ -6786,7 +6806,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrailOutput(v **CreateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "S3BucketName": @@ -6795,7 +6815,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrailOutput(v **CreateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "S3KeyPrefix": @@ -6804,7 +6824,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrailOutput(v **CreateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3KeyPrefix = &jtv + sv.S3KeyPrefix = ptr.String(jtv) } case "SnsTopicARN": @@ -6813,7 +6833,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrailOutput(v **CreateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SnsTopicARN = &jtv + sv.SnsTopicARN = ptr.String(jtv) } case "SnsTopicName": @@ -6822,7 +6842,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrailOutput(v **CreateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SnsTopicName = &jtv + sv.SnsTopicName = ptr.String(jtv) } case "TrailARN": @@ -6831,7 +6851,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrailOutput(v **CreateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TrailARN = &jtv + sv.TrailARN = ptr.String(jtv) } default: @@ -6943,7 +6963,7 @@ func awsAwsjson11_deserializeOpDocumentGetEventSelectorsOutput(v **GetEventSelec if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TrailARN = &jtv + sv.TrailARN = ptr.String(jtv) } default: @@ -6988,7 +7008,7 @@ func awsAwsjson11_deserializeOpDocumentGetInsightSelectorsOutput(v **GetInsightS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TrailARN = &jtv + sv.TrailARN = ptr.String(jtv) } default: @@ -7064,7 +7084,7 @@ func awsAwsjson11_deserializeOpDocumentGetTrailStatusOutput(v **GetTrailStatusOu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsLogging = &jtv + sv.IsLogging = ptr.Bool(jtv) } case "LatestCloudWatchLogsDeliveryError": @@ -7073,7 +7093,7 @@ func awsAwsjson11_deserializeOpDocumentGetTrailStatusOutput(v **GetTrailStatusOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LatestCloudWatchLogsDeliveryError = &jtv + sv.LatestCloudWatchLogsDeliveryError = ptr.String(jtv) } case "LatestCloudWatchLogsDeliveryTime": @@ -7095,7 +7115,7 @@ func awsAwsjson11_deserializeOpDocumentGetTrailStatusOutput(v **GetTrailStatusOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LatestDeliveryAttemptSucceeded = &jtv + sv.LatestDeliveryAttemptSucceeded = ptr.String(jtv) } case "LatestDeliveryAttemptTime": @@ -7104,7 +7124,7 @@ func awsAwsjson11_deserializeOpDocumentGetTrailStatusOutput(v **GetTrailStatusOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LatestDeliveryAttemptTime = &jtv + sv.LatestDeliveryAttemptTime = ptr.String(jtv) } case "LatestDeliveryError": @@ -7113,7 +7133,7 @@ func awsAwsjson11_deserializeOpDocumentGetTrailStatusOutput(v **GetTrailStatusOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LatestDeliveryError = &jtv + sv.LatestDeliveryError = ptr.String(jtv) } case "LatestDeliveryTime": @@ -7135,7 +7155,7 @@ func awsAwsjson11_deserializeOpDocumentGetTrailStatusOutput(v **GetTrailStatusOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LatestDigestDeliveryError = &jtv + sv.LatestDigestDeliveryError = ptr.String(jtv) } case "LatestDigestDeliveryTime": @@ -7157,7 +7177,7 @@ func awsAwsjson11_deserializeOpDocumentGetTrailStatusOutput(v **GetTrailStatusOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LatestNotificationAttemptSucceeded = &jtv + sv.LatestNotificationAttemptSucceeded = ptr.String(jtv) } case "LatestNotificationAttemptTime": @@ -7166,7 +7186,7 @@ func awsAwsjson11_deserializeOpDocumentGetTrailStatusOutput(v **GetTrailStatusOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LatestNotificationAttemptTime = &jtv + sv.LatestNotificationAttemptTime = ptr.String(jtv) } case "LatestNotificationError": @@ -7175,7 +7195,7 @@ func awsAwsjson11_deserializeOpDocumentGetTrailStatusOutput(v **GetTrailStatusOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LatestNotificationError = &jtv + sv.LatestNotificationError = ptr.String(jtv) } case "LatestNotificationTime": @@ -7223,7 +7243,7 @@ func awsAwsjson11_deserializeOpDocumentGetTrailStatusOutput(v **GetTrailStatusOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TimeLoggingStarted = &jtv + sv.TimeLoggingStarted = ptr.String(jtv) } case "TimeLoggingStopped": @@ -7232,7 +7252,7 @@ func awsAwsjson11_deserializeOpDocumentGetTrailStatusOutput(v **GetTrailStatusOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TimeLoggingStopped = &jtv + sv.TimeLoggingStopped = ptr.String(jtv) } default: @@ -7272,7 +7292,7 @@ func awsAwsjson11_deserializeOpDocumentListPublicKeysOutput(v **ListPublicKeysOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PublicKeyList": @@ -7317,7 +7337,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsOutput(v **ListTagsOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResourceTagList": @@ -7362,7 +7382,7 @@ func awsAwsjson11_deserializeOpDocumentListTrailsOutput(v **ListTrailsOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Trails": @@ -7412,7 +7432,7 @@ func awsAwsjson11_deserializeOpDocumentLookupEventsOutput(v **LookupEventsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7457,7 +7477,7 @@ func awsAwsjson11_deserializeOpDocumentPutEventSelectorsOutput(v **PutEventSelec if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TrailARN = &jtv + sv.TrailARN = ptr.String(jtv) } default: @@ -7502,7 +7522,7 @@ func awsAwsjson11_deserializeOpDocumentPutInsightSelectorsOutput(v **PutInsightS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TrailARN = &jtv + sv.TrailARN = ptr.String(jtv) } default: @@ -7635,7 +7655,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrailOutput(v **UpdateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CloudWatchLogsLogGroupArn = &jtv + sv.CloudWatchLogsLogGroupArn = ptr.String(jtv) } case "CloudWatchLogsRoleArn": @@ -7644,7 +7664,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrailOutput(v **UpdateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CloudWatchLogsRoleArn = &jtv + sv.CloudWatchLogsRoleArn = ptr.String(jtv) } case "IncludeGlobalServiceEvents": @@ -7653,7 +7673,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrailOutput(v **UpdateTrailOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IncludeGlobalServiceEvents = &jtv + sv.IncludeGlobalServiceEvents = ptr.Bool(jtv) } case "IsMultiRegionTrail": @@ -7662,7 +7682,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrailOutput(v **UpdateTrailOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsMultiRegionTrail = &jtv + sv.IsMultiRegionTrail = ptr.Bool(jtv) } case "IsOrganizationTrail": @@ -7671,7 +7691,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrailOutput(v **UpdateTrailOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsOrganizationTrail = &jtv + sv.IsOrganizationTrail = ptr.Bool(jtv) } case "KmsKeyId": @@ -7680,7 +7700,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrailOutput(v **UpdateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LogFileValidationEnabled": @@ -7689,7 +7709,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrailOutput(v **UpdateTrailOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.LogFileValidationEnabled = &jtv + sv.LogFileValidationEnabled = ptr.Bool(jtv) } case "Name": @@ -7698,7 +7718,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrailOutput(v **UpdateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "S3BucketName": @@ -7707,7 +7727,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrailOutput(v **UpdateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "S3KeyPrefix": @@ -7716,7 +7736,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrailOutput(v **UpdateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3KeyPrefix = &jtv + sv.S3KeyPrefix = ptr.String(jtv) } case "SnsTopicARN": @@ -7725,7 +7745,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrailOutput(v **UpdateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SnsTopicARN = &jtv + sv.SnsTopicARN = ptr.String(jtv) } case "SnsTopicName": @@ -7734,7 +7754,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrailOutput(v **UpdateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SnsTopicName = &jtv + sv.SnsTopicName = ptr.String(jtv) } case "TrailARN": @@ -7743,7 +7763,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrailOutput(v **UpdateTrailOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TrailARN = &jtv + sv.TrailARN = ptr.String(jtv) } default: diff --git a/service/cloudtrail/go.mod b/service/cloudtrail/go.mod index dc1a015de09..fe41d994223 100644 --- a/service/cloudtrail/go.mod +++ b/service/cloudtrail/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cloudtrail go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cloudtrail/serializers.go b/service/cloudtrail/serializers.go index d00b68e14c6..9c858207582 100644 --- a/service/cloudtrail/serializers.go +++ b/service/cloudtrail/serializers.go @@ -861,34 +861,26 @@ func awsAwsjson11_serializeDocumentDataResource(v *types.DataResource, value smi return nil } -func awsAwsjson11_serializeDocumentDataResources(v []*types.DataResource, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDataResources(v []types.DataResource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDataResource(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDataResource(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentDataResourceValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDataResourceValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -924,34 +916,26 @@ func awsAwsjson11_serializeDocumentEventSelector(v *types.EventSelector, value s return nil } -func awsAwsjson11_serializeDocumentEventSelectors(v []*types.EventSelector, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEventSelectors(v []types.EventSelector, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEventSelector(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEventSelector(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentExcludeManagementEventSources(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExcludeManagementEventSources(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -968,17 +952,13 @@ func awsAwsjson11_serializeDocumentInsightSelector(v *types.InsightSelector, val return nil } -func awsAwsjson11_serializeDocumentInsightSelectors(v []*types.InsightSelector, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInsightSelectors(v []types.InsightSelector, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInsightSelector(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInsightSelector(&v[i], av); err != nil { return err } } @@ -1002,34 +982,26 @@ func awsAwsjson11_serializeDocumentLookupAttribute(v *types.LookupAttribute, val return nil } -func awsAwsjson11_serializeDocumentLookupAttributesList(v []*types.LookupAttribute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLookupAttributesList(v []types.LookupAttribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentLookupAttribute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentLookupAttribute(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentResourceIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1051,34 +1023,26 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagsList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagsList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTrailNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTrailNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/cloudtrail/types/types.go b/service/cloudtrail/types/types.go index a569a34d1d3..b41cb3761cb 100644 --- a/service/cloudtrail/types/types.go +++ b/service/cloudtrail/types/types.go @@ -87,7 +87,7 @@ type DataResource struct { // events will only be logged for // arn:aws:lambda:us-west-2:111111111111:function:helloworld. They will not be // logged for arn:aws:lambda:us-west-2:111111111111:function:helloworld2. - Values []*string + Values []string } // Contains information about an event that was returned by a lookup request. The @@ -118,7 +118,7 @@ type Event struct { ReadOnly *string // A list of resources referenced by the event returned. - Resources []*Resource + Resources []Resource // A user name or role name of the requester that called the API in the event // returned. @@ -144,14 +144,14 @@ type EventSelector struct { // and Limits in AWS CloudTrail // (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) // in the AWS CloudTrail User Guide. - DataResources []*DataResource + DataResources []DataResource // An optional list of service event sources from which you do not want management // events to be logged on your trail. In this release, the list can be empty // (disables the filter), or it can filter out AWS Key Management Service events by // containing "kms.amazonaws.com". By default, ExcludeManagementEventSources is // empty, and AWS KMS events are included in events that are logged to your trail. - ExcludeManagementEventSources []*string + ExcludeManagementEventSources []string // Specify if you want your event selector to include management events for your // trail. For more information, see Management Events @@ -228,7 +228,7 @@ type ResourceTag struct { ResourceId *string // A list of tags. - TagsList []*Tag + TagsList []Tag } // A custom key-value pair associated with a resource such as a CloudTrail trail. diff --git a/service/cloudtrail/validators.go b/service/cloudtrail/validators.go index 397f13b723e..8f361d6a6e2 100644 --- a/service/cloudtrail/validators.go +++ b/service/cloudtrail/validators.go @@ -388,13 +388,13 @@ func validateLookupAttribute(v *types.LookupAttribute) error { } } -func validateLookupAttributesList(v []*types.LookupAttribute) error { +func validateLookupAttributesList(v []types.LookupAttribute) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LookupAttributesList"} for i := range v { - if err := validateLookupAttribute(v[i]); err != nil { + if err := validateLookupAttribute(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -420,13 +420,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagsList(v []*types.Tag) error { +func validateTagsList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagsList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/cloudwatch/api_op_DeleteAlarms.go b/service/cloudwatch/api_op_DeleteAlarms.go index 5a427e25a20..eeb8aa99cea 100644 --- a/service/cloudwatch/api_op_DeleteAlarms.go +++ b/service/cloudwatch/api_op_DeleteAlarms.go @@ -44,7 +44,7 @@ type DeleteAlarmsInput struct { // The alarms to be deleted. // // This member is required. - AlarmNames []*string + AlarmNames []string } type DeleteAlarmsOutput struct { diff --git a/service/cloudwatch/api_op_DeleteAnomalyDetector.go b/service/cloudwatch/api_op_DeleteAnomalyDetector.go index f8e6e846a54..40a6327bd81 100644 --- a/service/cloudwatch/api_op_DeleteAnomalyDetector.go +++ b/service/cloudwatch/api_op_DeleteAnomalyDetector.go @@ -45,7 +45,7 @@ type DeleteAnomalyDetectorInput struct { Stat *string // The metric dimensions associated with the anomaly detection model to delete. - Dimensions []*types.Dimension + Dimensions []types.Dimension } type DeleteAnomalyDetectorOutput struct { diff --git a/service/cloudwatch/api_op_DeleteDashboards.go b/service/cloudwatch/api_op_DeleteDashboards.go index 892e79196bf..f3e8a0f5168 100644 --- a/service/cloudwatch/api_op_DeleteDashboards.go +++ b/service/cloudwatch/api_op_DeleteDashboards.go @@ -32,7 +32,7 @@ type DeleteDashboardsInput struct { // The dashboards to be deleted. This parameter is required. // // This member is required. - DashboardNames []*string + DashboardNames []string } type DeleteDashboardsOutput struct { diff --git a/service/cloudwatch/api_op_DeleteInsightRules.go b/service/cloudwatch/api_op_DeleteInsightRules.go index b030e8ce7d1..18d3a23e6b4 100644 --- a/service/cloudwatch/api_op_DeleteInsightRules.go +++ b/service/cloudwatch/api_op_DeleteInsightRules.go @@ -36,14 +36,14 @@ type DeleteInsightRulesInput struct { // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html). // // This member is required. - RuleNames []*string + RuleNames []string } type DeleteInsightRulesOutput struct { // An array listing the rules that could not be deleted. You cannot delete built-in // rules. - Failures []*types.PartialFailure + Failures []types.PartialFailure // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatch/api_op_DescribeAlarmHistory.go b/service/cloudwatch/api_op_DescribeAlarmHistory.go index c2174a8405e..b866e9cd166 100644 --- a/service/cloudwatch/api_op_DescribeAlarmHistory.go +++ b/service/cloudwatch/api_op_DescribeAlarmHistory.go @@ -66,7 +66,7 @@ type DescribeAlarmHistoryInput struct { type DescribeAlarmHistoryOutput struct { // The alarm histories, in JSON format. - AlarmHistoryItems []*types.AlarmHistoryItem + AlarmHistoryItems []types.AlarmHistoryItem // The token that marks the start of the next batch of returned results. NextToken *string diff --git a/service/cloudwatch/api_op_DescribeAlarms.go b/service/cloudwatch/api_op_DescribeAlarms.go index 96b8f8b11ea..8852e857e98 100644 --- a/service/cloudwatch/api_op_DescribeAlarms.go +++ b/service/cloudwatch/api_op_DescribeAlarms.go @@ -41,7 +41,7 @@ type DescribeAlarmsInput struct { AlarmNamePrefix *string // The names of the alarms to retrieve information about. - AlarmNames []*string + AlarmNames []string // Use this parameter to specify whether you want the operation to return metric // alarms or composite alarms. If you omit this parameter, only metric alarms are @@ -90,10 +90,10 @@ type DescribeAlarmsInput struct { type DescribeAlarmsOutput struct { // The information about any composite alarms returned by the operation. - CompositeAlarms []*types.CompositeAlarm + CompositeAlarms []types.CompositeAlarm // The information about any metric alarms returned by the operation. - MetricAlarms []*types.MetricAlarm + MetricAlarms []types.MetricAlarm // The token that marks the start of the next batch of returned results. NextToken *string diff --git a/service/cloudwatch/api_op_DescribeAlarmsForMetric.go b/service/cloudwatch/api_op_DescribeAlarmsForMetric.go index a92038f9f18..55fc12ddf29 100644 --- a/service/cloudwatch/api_op_DescribeAlarmsForMetric.go +++ b/service/cloudwatch/api_op_DescribeAlarmsForMetric.go @@ -42,7 +42,7 @@ type DescribeAlarmsForMetricInput struct { // The dimensions associated with the metric. If the metric has any associated // dimensions, you must specify them in order for the call to succeed. - Dimensions []*types.Dimension + Dimensions []types.Dimension // The percentile statistic for the metric. Specify a value between p0.0 and p100. ExtendedStatistic *string @@ -61,7 +61,7 @@ type DescribeAlarmsForMetricInput struct { type DescribeAlarmsForMetricOutput struct { // The information for each alarm with the specified metric. - MetricAlarms []*types.MetricAlarm + MetricAlarms []types.MetricAlarm // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatch/api_op_DescribeAnomalyDetectors.go b/service/cloudwatch/api_op_DescribeAnomalyDetectors.go index 72debfef4ef..541c08ce47f 100644 --- a/service/cloudwatch/api_op_DescribeAnomalyDetectors.go +++ b/service/cloudwatch/api_op_DescribeAnomalyDetectors.go @@ -34,7 +34,7 @@ type DescribeAnomalyDetectorsInput struct { // Limits the results to only the anomaly detection models that are associated with // the specified metric dimensions. If there are multiple metrics that have these // dimensions and have anomaly detection models associated, they're all returned. - Dimensions []*types.Dimension + Dimensions []types.Dimension // The maximum number of results to return in one operation. The maximum value that // you can specify is 100. To retrieve the remaining results, make another call @@ -58,7 +58,7 @@ type DescribeAnomalyDetectorsInput struct { type DescribeAnomalyDetectorsOutput struct { // The list of anomaly detection models returned by the operation. - AnomalyDetectors []*types.AnomalyDetector + AnomalyDetectors []types.AnomalyDetector // A token that you can use in a subsequent operation to retrieve the next set of // results. diff --git a/service/cloudwatch/api_op_DescribeInsightRules.go b/service/cloudwatch/api_op_DescribeInsightRules.go index 58dbce90d4a..fe757dffbc1 100644 --- a/service/cloudwatch/api_op_DescribeInsightRules.go +++ b/service/cloudwatch/api_op_DescribeInsightRules.go @@ -44,7 +44,7 @@ type DescribeInsightRulesInput struct { type DescribeInsightRulesOutput struct { // The rules returned by the operation. - InsightRules []*types.InsightRule + InsightRules []types.InsightRule // Reserved for future use. NextToken *string diff --git a/service/cloudwatch/api_op_DisableAlarmActions.go b/service/cloudwatch/api_op_DisableAlarmActions.go index b6ec4fdb0a5..f4bb1673175 100644 --- a/service/cloudwatch/api_op_DisableAlarmActions.go +++ b/service/cloudwatch/api_op_DisableAlarmActions.go @@ -32,7 +32,7 @@ type DisableAlarmActionsInput struct { // The names of the alarms. // // This member is required. - AlarmNames []*string + AlarmNames []string } type DisableAlarmActionsOutput struct { diff --git a/service/cloudwatch/api_op_DisableInsightRules.go b/service/cloudwatch/api_op_DisableInsightRules.go index 101d16807a3..be6033a1ce0 100644 --- a/service/cloudwatch/api_op_DisableInsightRules.go +++ b/service/cloudwatch/api_op_DisableInsightRules.go @@ -35,14 +35,14 @@ type DisableInsightRulesInput struct { // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html). // // This member is required. - RuleNames []*string + RuleNames []string } type DisableInsightRulesOutput struct { // An array listing the rules that could not be disabled. You cannot disable // built-in rules. - Failures []*types.PartialFailure + Failures []types.PartialFailure // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatch/api_op_EnableAlarmActions.go b/service/cloudwatch/api_op_EnableAlarmActions.go index cfa7f12da22..a5a0ef6a4c2 100644 --- a/service/cloudwatch/api_op_EnableAlarmActions.go +++ b/service/cloudwatch/api_op_EnableAlarmActions.go @@ -31,7 +31,7 @@ type EnableAlarmActionsInput struct { // The names of the alarms. // // This member is required. - AlarmNames []*string + AlarmNames []string } type EnableAlarmActionsOutput struct { diff --git a/service/cloudwatch/api_op_EnableInsightRules.go b/service/cloudwatch/api_op_EnableInsightRules.go index 0b044d03ebb..84238407147 100644 --- a/service/cloudwatch/api_op_EnableInsightRules.go +++ b/service/cloudwatch/api_op_EnableInsightRules.go @@ -35,14 +35,14 @@ type EnableInsightRulesInput struct { // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html). // // This member is required. - RuleNames []*string + RuleNames []string } type EnableInsightRulesOutput struct { // An array listing the rules that could not be enabled. You cannot disable or // enable built-in rules. - Failures []*types.PartialFailure + Failures []types.PartialFailure // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatch/api_op_GetInsightRuleReport.go b/service/cloudwatch/api_op_GetInsightRuleReport.go index 9f69634fa28..b5d61c96c50 100644 --- a/service/cloudwatch/api_op_GetInsightRuleReport.go +++ b/service/cloudwatch/api_op_GetInsightRuleReport.go @@ -118,7 +118,7 @@ type GetInsightRuleReportInput struct { // * Average -- // the average value from all contributors during the time period represented by // that data point. - Metrics []*string + Metrics []string // Determines what statistic to use to rank the contributors. Valid values are SUM // and MAXIMUM. @@ -140,17 +140,17 @@ type GetInsightRuleReportOutput struct { // An array of the unique contributors found by this rule in this time period. If // the rule contains multiple keys, each combination of values for the keys counts // as a unique contributor. - Contributors []*types.InsightRuleContributor + Contributors []types.InsightRuleContributor // An array of the strings used as the keys for this rule. The keys are the // dimensions used to classify contributors. If the rule contains more than one // key, then each unique combination of values for the keys is counted as a unique // contributor. - KeyLabels []*string + KeyLabels []string // A time series of metric data points that matches the time period in the rule // request. - MetricDatapoints []*types.InsightRuleMetricDatapoint + MetricDatapoints []types.InsightRuleMetricDatapoint // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatch/api_op_GetMetricData.go b/service/cloudwatch/api_op_GetMetricData.go index b4d75fbbb98..9f637aa7110 100644 --- a/service/cloudwatch/api_op_GetMetricData.go +++ b/service/cloudwatch/api_op_GetMetricData.go @@ -85,7 +85,7 @@ type GetMetricDataInput struct { // either a metric to retrieve, or a math expression to perform on retrieved data. // // This member is required. - MetricDataQueries []*types.MetricDataQuery + MetricDataQueries []types.MetricDataQuery // The time stamp indicating the earliest data to be returned. The value specified // is inclusive; results include data points with the specified time stamp. @@ -142,11 +142,11 @@ type GetMetricDataOutput struct { // related to the global GetMetricData operation. Any message about a specific // metric returned by the operation appears in the MetricDataResult object returned // for that metric. - Messages []*types.MessageData + Messages []types.MessageData // The metrics that are returned, including the metric name, namespace, and // dimensions. - MetricDataResults []*types.MetricDataResult + MetricDataResults []types.MetricDataResult // A token that marks the next batch of returned results. NextToken *string diff --git a/service/cloudwatch/api_op_GetMetricStatistics.go b/service/cloudwatch/api_op_GetMetricStatistics.go index 4b3ef1117e8..6e4e3c5ed19 100644 --- a/service/cloudwatch/api_op_GetMetricStatistics.go +++ b/service/cloudwatch/api_op_GetMetricStatistics.go @@ -160,13 +160,13 @@ type GetMetricStatisticsInput struct { // dimensions, see Publishing Metrics // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html) // in the Amazon CloudWatch User Guide. - Dimensions []*types.Dimension + Dimensions []types.Dimension // The percentile statistics. Specify values between p0.0 and p100. When calling // GetMetricStatistics, you must specify either Statistics or ExtendedStatistics, // but not both. Percentile statistics are not available for metrics when any of // the metric values are negative numbers. - ExtendedStatistics []*string + ExtendedStatistics []string // The metric statistics, other than percentile. For percentile statistics, use // ExtendedStatistics. When calling GetMetricStatistics, you must specify either @@ -185,7 +185,7 @@ type GetMetricStatisticsInput struct { type GetMetricStatisticsOutput struct { // The data points for the specified metric. - Datapoints []*types.Datapoint + Datapoints []types.Datapoint // A label for the specified metric. Label *string diff --git a/service/cloudwatch/api_op_ListDashboards.go b/service/cloudwatch/api_op_ListDashboards.go index d0dfac7c805..55a6de5e0af 100644 --- a/service/cloudwatch/api_op_ListDashboards.go +++ b/service/cloudwatch/api_op_ListDashboards.go @@ -47,7 +47,7 @@ type ListDashboardsInput struct { type ListDashboardsOutput struct { // The list of matching dashboards. - DashboardEntries []*types.DashboardEntry + DashboardEntries []types.DashboardEntry // The token that marks the start of the next batch of returned results. NextToken *string diff --git a/service/cloudwatch/api_op_ListMetrics.go b/service/cloudwatch/api_op_ListMetrics.go index d58a87c31d0..7344759230d 100644 --- a/service/cloudwatch/api_op_ListMetrics.go +++ b/service/cloudwatch/api_op_ListMetrics.go @@ -46,7 +46,7 @@ func (c *Client) ListMetrics(ctx context.Context, params *ListMetricsInput, optF type ListMetricsInput struct { // The dimensions to filter against. - Dimensions []*types.DimensionFilter + Dimensions []types.DimensionFilter // The name of the metric to filter against. MetricName *string @@ -70,7 +70,7 @@ type ListMetricsInput struct { type ListMetricsOutput struct { // The metrics that match your request. - Metrics []*types.Metric + Metrics []types.Metric // The token that marks the start of the next batch of returned results. NextToken *string diff --git a/service/cloudwatch/api_op_ListTagsForResource.go b/service/cloudwatch/api_op_ListTagsForResource.go index a67995ba326..f5f8d4efc5a 100644 --- a/service/cloudwatch/api_op_ListTagsForResource.go +++ b/service/cloudwatch/api_op_ListTagsForResource.go @@ -45,7 +45,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The list of tag keys and values associated with the resource you specified. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatch/api_op_PutAnomalyDetector.go b/service/cloudwatch/api_op_PutAnomalyDetector.go index c328a7a7b91..f5dbf738e3a 100644 --- a/service/cloudwatch/api_op_PutAnomalyDetector.go +++ b/service/cloudwatch/api_op_PutAnomalyDetector.go @@ -54,7 +54,7 @@ type PutAnomalyDetectorInput struct { Configuration *types.AnomalyDetectorConfiguration // The metric dimensions to create the anomaly detection model for. - Dimensions []*types.Dimension + Dimensions []types.Dimension } type PutAnomalyDetectorOutput struct { diff --git a/service/cloudwatch/api_op_PutCompositeAlarm.go b/service/cloudwatch/api_op_PutCompositeAlarm.go index 48c878fd528..4615f51f961 100644 --- a/service/cloudwatch/api_op_PutCompositeAlarm.go +++ b/service/cloudwatch/api_op_PutCompositeAlarm.go @@ -120,7 +120,7 @@ type PutCompositeAlarmInput struct { // The actions to execute when this alarm transitions to the ALARM state from any // other state. Each action is specified as an Amazon Resource Name (ARN). Valid // Values: arn:aws:sns:region:account-id:sns-topic-name - AlarmActions []*string + AlarmActions []string // The description for the composite alarm. AlarmDescription *string @@ -128,19 +128,19 @@ type PutCompositeAlarmInput struct { // The actions to execute when this alarm transitions to the INSUFFICIENT_DATA // state from any other state. Each action is specified as an Amazon Resource Name // (ARN). Valid Values: arn:aws:sns:region:account-id:sns-topic-name - InsufficientDataActions []*string + InsufficientDataActions []string // The actions to execute when this alarm transitions to an OK state from any other // state. Each action is specified as an Amazon Resource Name (ARN). Valid Values: // arn:aws:sns:region:account-id:sns-topic-name - OKActions []*string + OKActions []string // A list of key-value pairs to associate with the composite alarm. You can // associate as many as 50 tags with an alarm. Tags can help you organize and // categorize your resources. You can also use them to scope user permissions, by // granting a user permission to access or change only resources with certain tag // values. - Tags []*types.Tag + Tags []types.Tag } type PutCompositeAlarmOutput struct { diff --git a/service/cloudwatch/api_op_PutDashboard.go b/service/cloudwatch/api_op_PutDashboard.go index 19ac2e61209..ec39fe1bdf3 100644 --- a/service/cloudwatch/api_op_PutDashboard.go +++ b/service/cloudwatch/api_op_PutDashboard.go @@ -67,7 +67,7 @@ type PutDashboardOutput struct { // messages, then the input was valid enough for the dashboard to be created or // modified, but some elements of the dashboard might not render. If this result // includes error messages, the input was not valid and the operation failed. - DashboardValidationMessages []*types.DashboardValidationMessage + DashboardValidationMessages []types.DashboardValidationMessage // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatch/api_op_PutInsightRule.go b/service/cloudwatch/api_op_PutInsightRule.go index b07f9f63de5..bc08983c9a9 100644 --- a/service/cloudwatch/api_op_PutInsightRule.go +++ b/service/cloudwatch/api_op_PutInsightRule.go @@ -60,7 +60,7 @@ type PutInsightRuleInput struct { // Insights rule, any tags you specify in this parameter are ignored. To change the // tags of an existing rule, use TagResource // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html). - Tags []*types.Tag + Tags []types.Tag } type PutInsightRuleOutput struct { diff --git a/service/cloudwatch/api_op_PutMetricAlarm.go b/service/cloudwatch/api_op_PutMetricAlarm.go index af1fb81416c..ad6ef7efdf6 100644 --- a/service/cloudwatch/api_op_PutMetricAlarm.go +++ b/service/cloudwatch/api_op_PutMetricAlarm.go @@ -105,7 +105,7 @@ type PutMetricAlarmInput struct { // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 - AlarmActions []*string + AlarmActions []string // The description for the alarm. AlarmDescription *string @@ -118,7 +118,7 @@ type PutMetricAlarmInput struct { DatapointsToAlarm *int32 // The dimensions for the metric specified in MetricName. - Dimensions []*types.Dimension + Dimensions []types.Dimension // Used only for alarms based on percentiles. If you specify ignore, the alarm // state does not change during periods with too few data points to be @@ -146,7 +146,7 @@ type PutMetricAlarmInput struct { // >arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 - InsufficientDataActions []*string + InsufficientDataActions []string // The name for the metric associated with the alarm. For each PutMetricAlarm // operation, you must specify either MetricName or a Metrics array. If you are @@ -167,7 +167,7 @@ type PutMetricAlarmInput struct { // Period, Namespace, Statistic, or ExtendedStatistic parameters of PutMetricAlarm // in the same operation. Instead, you retrieve the metrics you are using in your // math expression as part of the Metrics array. - Metrics []*types.MetricDataQuery + Metrics []types.MetricDataQuery // The namespace for the metric associated specified in MetricName. Namespace *string @@ -182,7 +182,7 @@ type PutMetricAlarmInput struct { // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | // arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 - OKActions []*string + OKActions []string // The length, in seconds, used each time the metric specified in MetricName is // evaluated. Valid values are 10, 30, and any multiple of 60. Period is required @@ -212,7 +212,7 @@ type PutMetricAlarmInput struct { // as 50 tags with an alarm. Tags can help you organize and categorize your // resources. You can also use them to scope user permissions by granting a user // permission to access or change only resources with certain tag values. - Tags []*types.Tag + Tags []types.Tag // The value against which the specified statistic is compared. This parameter is // required for alarms based on static thresholds, but should not be used for diff --git a/service/cloudwatch/api_op_PutMetricData.go b/service/cloudwatch/api_op_PutMetricData.go index ebc77494548..83ce4e77446 100644 --- a/service/cloudwatch/api_op_PutMetricData.go +++ b/service/cloudwatch/api_op_PutMetricData.go @@ -71,7 +71,7 @@ type PutMetricDataInput struct { // The data for the metric. The array can include no more than 20 metrics per call. // // This member is required. - MetricData []*types.MetricDatum + MetricData []types.MetricDatum // The namespace for the metric data. To avoid conflicts with AWS service // namespaces, you should not specify a namespace that begins with AWS/ diff --git a/service/cloudwatch/api_op_TagResource.go b/service/cloudwatch/api_op_TagResource.go index cbfa350865f..4f95b33bc94 100644 --- a/service/cloudwatch/api_op_TagResource.go +++ b/service/cloudwatch/api_op_TagResource.go @@ -54,7 +54,7 @@ type TagResourceInput struct { // The list of key-value pairs to associate with the alarm. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/cloudwatch/api_op_UntagResource.go b/service/cloudwatch/api_op_UntagResource.go index dc2f7d9e283..2d53dc54396 100644 --- a/service/cloudwatch/api_op_UntagResource.go +++ b/service/cloudwatch/api_op_UntagResource.go @@ -42,7 +42,7 @@ type UntagResourceInput struct { // The list of tag keys to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/cloudwatch/deserializers.go b/service/cloudwatch/deserializers.go index 64124dcad76..ae019a75c3c 100644 --- a/service/cloudwatch/deserializers.go +++ b/service/cloudwatch/deserializers.go @@ -3470,7 +3470,7 @@ func awsAwsquery_deserializeDocumentAlarmHistoryItem(v **types.AlarmHistoryItem, } if val != nil { xtv := string(val) - sv.AlarmName = &xtv + sv.AlarmName = ptr.String(xtv) } case strings.EqualFold("AlarmType", t.Name.Local): @@ -3499,7 +3499,7 @@ func awsAwsquery_deserializeDocumentAlarmHistoryItem(v **types.AlarmHistoryItem, } if val != nil { xtv := string(val) - sv.HistoryData = &xtv + sv.HistoryData = ptr.String(xtv) } case strings.EqualFold("HistoryItemType", t.Name.Local): @@ -3528,7 +3528,7 @@ func awsAwsquery_deserializeDocumentAlarmHistoryItem(v **types.AlarmHistoryItem, } if val != nil { xtv := string(val) - sv.HistorySummary = &xtv + sv.HistorySummary = ptr.String(xtv) } case strings.EqualFold("Timestamp", t.Name.Local): @@ -3545,7 +3545,7 @@ func awsAwsquery_deserializeDocumentAlarmHistoryItem(v **types.AlarmHistoryItem, if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -3558,13 +3558,13 @@ func awsAwsquery_deserializeDocumentAlarmHistoryItem(v **types.AlarmHistoryItem, return nil } -func awsAwsquery_deserializeDocumentAlarmHistoryItems(v *[]*types.AlarmHistoryItem, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAlarmHistoryItems(v *[]types.AlarmHistoryItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AlarmHistoryItem + var sv []types.AlarmHistoryItem if *v == nil { - sv = make([]*types.AlarmHistoryItem, 0) + sv = make([]types.AlarmHistoryItem, 0) } else { sv = *v } @@ -3580,11 +3580,13 @@ func awsAwsquery_deserializeDocumentAlarmHistoryItems(v *[]*types.AlarmHistoryIt } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AlarmHistoryItem + var col types.AlarmHistoryItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAlarmHistoryItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAlarmHistoryItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -3597,23 +3599,25 @@ func awsAwsquery_deserializeDocumentAlarmHistoryItems(v *[]*types.AlarmHistoryIt return nil } -func awsAwsquery_deserializeDocumentAlarmHistoryItemsUnwrapped(v *[]*types.AlarmHistoryItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.AlarmHistoryItem +func awsAwsquery_deserializeDocumentAlarmHistoryItemsUnwrapped(v *[]types.AlarmHistoryItem, decoder smithyxml.NodeDecoder) error { + var sv []types.AlarmHistoryItem if *v == nil { - sv = make([]*types.AlarmHistoryItem, 0) + sv = make([]types.AlarmHistoryItem, 0) } else { sv = *v } switch { default: - var mv *types.AlarmHistoryItem + var mv types.AlarmHistoryItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAlarmHistoryItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAlarmHistoryItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -3666,7 +3670,7 @@ func awsAwsquery_deserializeDocumentAnomalyDetector(v **types.AnomalyDetector, d } if val != nil { xtv := string(val) - sv.MetricName = &xtv + sv.MetricName = ptr.String(xtv) } case strings.EqualFold("Namespace", t.Name.Local): @@ -3682,7 +3686,7 @@ func awsAwsquery_deserializeDocumentAnomalyDetector(v **types.AnomalyDetector, d } if val != nil { xtv := string(val) - sv.Namespace = &xtv + sv.Namespace = ptr.String(xtv) } case strings.EqualFold("Stat", t.Name.Local): @@ -3698,7 +3702,7 @@ func awsAwsquery_deserializeDocumentAnomalyDetector(v **types.AnomalyDetector, d } if val != nil { xtv := string(val) - sv.Stat = &xtv + sv.Stat = ptr.String(xtv) } case strings.EqualFold("StateValue", t.Name.Local): @@ -3765,7 +3769,7 @@ func awsAwsquery_deserializeDocumentAnomalyDetectorConfiguration(v **types.Anoma } if val != nil { xtv := string(val) - sv.MetricTimezone = &xtv + sv.MetricTimezone = ptr.String(xtv) } default: @@ -3778,13 +3782,13 @@ func awsAwsquery_deserializeDocumentAnomalyDetectorConfiguration(v **types.Anoma return nil } -func awsAwsquery_deserializeDocumentAnomalyDetectorExcludedTimeRanges(v *[]*types.Range, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAnomalyDetectorExcludedTimeRanges(v *[]types.Range, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Range + var sv []types.Range if *v == nil { - sv = make([]*types.Range, 0) + sv = make([]types.Range, 0) } else { sv = *v } @@ -3800,11 +3804,13 @@ func awsAwsquery_deserializeDocumentAnomalyDetectorExcludedTimeRanges(v *[]*type } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Range + var col types.Range nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRange(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentRange(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -3817,35 +3823,37 @@ func awsAwsquery_deserializeDocumentAnomalyDetectorExcludedTimeRanges(v *[]*type return nil } -func awsAwsquery_deserializeDocumentAnomalyDetectorExcludedTimeRangesUnwrapped(v *[]*types.Range, decoder smithyxml.NodeDecoder) error { - var sv []*types.Range +func awsAwsquery_deserializeDocumentAnomalyDetectorExcludedTimeRangesUnwrapped(v *[]types.Range, decoder smithyxml.NodeDecoder) error { + var sv []types.Range if *v == nil { - sv = make([]*types.Range, 0) + sv = make([]types.Range, 0) } else { sv = *v } switch { default: - var mv *types.Range + var mv types.Range t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRange(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRange(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAnomalyDetectors(v *[]*types.AnomalyDetector, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAnomalyDetectors(v *[]types.AnomalyDetector, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AnomalyDetector + var sv []types.AnomalyDetector if *v == nil { - sv = make([]*types.AnomalyDetector, 0) + sv = make([]types.AnomalyDetector, 0) } else { sv = *v } @@ -3861,11 +3869,13 @@ func awsAwsquery_deserializeDocumentAnomalyDetectors(v *[]*types.AnomalyDetector } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AnomalyDetector + var col types.AnomalyDetector nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAnomalyDetector(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAnomalyDetector(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -3878,35 +3888,37 @@ func awsAwsquery_deserializeDocumentAnomalyDetectors(v *[]*types.AnomalyDetector return nil } -func awsAwsquery_deserializeDocumentAnomalyDetectorsUnwrapped(v *[]*types.AnomalyDetector, decoder smithyxml.NodeDecoder) error { - var sv []*types.AnomalyDetector +func awsAwsquery_deserializeDocumentAnomalyDetectorsUnwrapped(v *[]types.AnomalyDetector, decoder smithyxml.NodeDecoder) error { + var sv []types.AnomalyDetector if *v == nil { - sv = make([]*types.AnomalyDetector, 0) + sv = make([]types.AnomalyDetector, 0) } else { sv = *v } switch { default: - var mv *types.AnomalyDetector + var mv types.AnomalyDetector t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAnomalyDetector(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAnomalyDetector(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentBatchFailures(v *[]*types.PartialFailure, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentBatchFailures(v *[]types.PartialFailure, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PartialFailure + var sv []types.PartialFailure if *v == nil { - sv = make([]*types.PartialFailure, 0) + sv = make([]types.PartialFailure, 0) } else { sv = *v } @@ -3922,11 +3934,13 @@ func awsAwsquery_deserializeDocumentBatchFailures(v *[]*types.PartialFailure, de } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PartialFailure + var col types.PartialFailure nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPartialFailure(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPartialFailure(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -3939,23 +3953,25 @@ func awsAwsquery_deserializeDocumentBatchFailures(v *[]*types.PartialFailure, de return nil } -func awsAwsquery_deserializeDocumentBatchFailuresUnwrapped(v *[]*types.PartialFailure, decoder smithyxml.NodeDecoder) error { - var sv []*types.PartialFailure +func awsAwsquery_deserializeDocumentBatchFailuresUnwrapped(v *[]types.PartialFailure, decoder smithyxml.NodeDecoder) error { + var sv []types.PartialFailure if *v == nil { - sv = make([]*types.PartialFailure, 0) + sv = make([]types.PartialFailure, 0) } else { sv = *v } switch { default: - var mv *types.PartialFailure + var mv types.PartialFailure t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPartialFailure(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPartialFailure(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -3996,7 +4012,7 @@ func awsAwsquery_deserializeDocumentCompositeAlarm(v **types.CompositeAlarm, dec if err != nil { return fmt.Errorf("expected ActionsEnabled to be of type *bool, got %T instead", val) } - sv.ActionsEnabled = &xtv + sv.ActionsEnabled = ptr.Bool(xtv) } case strings.EqualFold("AlarmActions", t.Name.Local): @@ -4018,7 +4034,7 @@ func awsAwsquery_deserializeDocumentCompositeAlarm(v **types.CompositeAlarm, dec } if val != nil { xtv := string(val) - sv.AlarmArn = &xtv + sv.AlarmArn = ptr.String(xtv) } case strings.EqualFold("AlarmConfigurationUpdatedTimestamp", t.Name.Local): @@ -4035,7 +4051,7 @@ func awsAwsquery_deserializeDocumentCompositeAlarm(v **types.CompositeAlarm, dec if err != nil { return err } - sv.AlarmConfigurationUpdatedTimestamp = &t + sv.AlarmConfigurationUpdatedTimestamp = ptr.Time(t) } case strings.EqualFold("AlarmDescription", t.Name.Local): @@ -4051,7 +4067,7 @@ func awsAwsquery_deserializeDocumentCompositeAlarm(v **types.CompositeAlarm, dec } if val != nil { xtv := string(val) - sv.AlarmDescription = &xtv + sv.AlarmDescription = ptr.String(xtv) } case strings.EqualFold("AlarmName", t.Name.Local): @@ -4067,7 +4083,7 @@ func awsAwsquery_deserializeDocumentCompositeAlarm(v **types.CompositeAlarm, dec } if val != nil { xtv := string(val) - sv.AlarmName = &xtv + sv.AlarmName = ptr.String(xtv) } case strings.EqualFold("AlarmRule", t.Name.Local): @@ -4083,7 +4099,7 @@ func awsAwsquery_deserializeDocumentCompositeAlarm(v **types.CompositeAlarm, dec } if val != nil { xtv := string(val) - sv.AlarmRule = &xtv + sv.AlarmRule = ptr.String(xtv) } case strings.EqualFold("InsufficientDataActions", t.Name.Local): @@ -4111,7 +4127,7 @@ func awsAwsquery_deserializeDocumentCompositeAlarm(v **types.CompositeAlarm, dec } if val != nil { xtv := string(val) - sv.StateReason = &xtv + sv.StateReason = ptr.String(xtv) } case strings.EqualFold("StateReasonData", t.Name.Local): @@ -4127,7 +4143,7 @@ func awsAwsquery_deserializeDocumentCompositeAlarm(v **types.CompositeAlarm, dec } if val != nil { xtv := string(val) - sv.StateReasonData = &xtv + sv.StateReasonData = ptr.String(xtv) } case strings.EqualFold("StateUpdatedTimestamp", t.Name.Local): @@ -4144,7 +4160,7 @@ func awsAwsquery_deserializeDocumentCompositeAlarm(v **types.CompositeAlarm, dec if err != nil { return err } - sv.StateUpdatedTimestamp = &t + sv.StateUpdatedTimestamp = ptr.Time(t) } case strings.EqualFold("StateValue", t.Name.Local): @@ -4170,13 +4186,13 @@ func awsAwsquery_deserializeDocumentCompositeAlarm(v **types.CompositeAlarm, dec return nil } -func awsAwsquery_deserializeDocumentCompositeAlarms(v *[]*types.CompositeAlarm, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCompositeAlarms(v *[]types.CompositeAlarm, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CompositeAlarm + var sv []types.CompositeAlarm if *v == nil { - sv = make([]*types.CompositeAlarm, 0) + sv = make([]types.CompositeAlarm, 0) } else { sv = *v } @@ -4192,11 +4208,13 @@ func awsAwsquery_deserializeDocumentCompositeAlarms(v *[]*types.CompositeAlarm, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.CompositeAlarm + var col types.CompositeAlarm nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCompositeAlarm(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCompositeAlarm(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -4209,23 +4227,25 @@ func awsAwsquery_deserializeDocumentCompositeAlarms(v *[]*types.CompositeAlarm, return nil } -func awsAwsquery_deserializeDocumentCompositeAlarmsUnwrapped(v *[]*types.CompositeAlarm, decoder smithyxml.NodeDecoder) error { - var sv []*types.CompositeAlarm +func awsAwsquery_deserializeDocumentCompositeAlarmsUnwrapped(v *[]types.CompositeAlarm, decoder smithyxml.NodeDecoder) error { + var sv []types.CompositeAlarm if *v == nil { - sv = make([]*types.CompositeAlarm, 0) + sv = make([]types.CompositeAlarm, 0) } else { sv = *v } switch { default: - var mv *types.CompositeAlarm + var mv types.CompositeAlarm t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCompositeAlarm(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCompositeAlarm(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -4266,7 +4286,7 @@ func awsAwsquery_deserializeDocumentConcurrentModificationException(v **types.Co } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4279,13 +4299,13 @@ func awsAwsquery_deserializeDocumentConcurrentModificationException(v **types.Co return nil } -func awsAwsquery_deserializeDocumentDashboardEntries(v *[]*types.DashboardEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDashboardEntries(v *[]types.DashboardEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DashboardEntry + var sv []types.DashboardEntry if *v == nil { - sv = make([]*types.DashboardEntry, 0) + sv = make([]types.DashboardEntry, 0) } else { sv = *v } @@ -4301,11 +4321,13 @@ func awsAwsquery_deserializeDocumentDashboardEntries(v *[]*types.DashboardEntry, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.DashboardEntry + var col types.DashboardEntry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDashboardEntry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDashboardEntry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -4318,23 +4340,25 @@ func awsAwsquery_deserializeDocumentDashboardEntries(v *[]*types.DashboardEntry, return nil } -func awsAwsquery_deserializeDocumentDashboardEntriesUnwrapped(v *[]*types.DashboardEntry, decoder smithyxml.NodeDecoder) error { - var sv []*types.DashboardEntry +func awsAwsquery_deserializeDocumentDashboardEntriesUnwrapped(v *[]types.DashboardEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.DashboardEntry if *v == nil { - sv = make([]*types.DashboardEntry, 0) + sv = make([]types.DashboardEntry, 0) } else { sv = *v } switch { default: - var mv *types.DashboardEntry + var mv types.DashboardEntry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDashboardEntry(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDashboardEntry(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -4375,7 +4399,7 @@ func awsAwsquery_deserializeDocumentDashboardEntry(v **types.DashboardEntry, dec } if val != nil { xtv := string(val) - sv.DashboardArn = &xtv + sv.DashboardArn = ptr.String(xtv) } case strings.EqualFold("DashboardName", t.Name.Local): @@ -4391,7 +4415,7 @@ func awsAwsquery_deserializeDocumentDashboardEntry(v **types.DashboardEntry, dec } if val != nil { xtv := string(val) - sv.DashboardName = &xtv + sv.DashboardName = ptr.String(xtv) } case strings.EqualFold("LastModified", t.Name.Local): @@ -4408,7 +4432,7 @@ func awsAwsquery_deserializeDocumentDashboardEntry(v **types.DashboardEntry, dec if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } case strings.EqualFold("Size", t.Name.Local): @@ -4425,7 +4449,7 @@ func awsAwsquery_deserializeDocumentDashboardEntry(v **types.DashboardEntry, dec if err != nil { return err } - sv.Size = &i64 + sv.Size = i64 } default: @@ -4479,7 +4503,7 @@ func awsAwsquery_deserializeDocumentDashboardInvalidInputError(v **types.Dashboa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4527,7 +4551,7 @@ func awsAwsquery_deserializeDocumentDashboardNotFoundError(v **types.DashboardNo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4575,7 +4599,7 @@ func awsAwsquery_deserializeDocumentDashboardValidationMessage(v **types.Dashboa } if val != nil { xtv := string(val) - sv.DataPath = &xtv + sv.DataPath = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -4591,7 +4615,7 @@ func awsAwsquery_deserializeDocumentDashboardValidationMessage(v **types.Dashboa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4604,13 +4628,13 @@ func awsAwsquery_deserializeDocumentDashboardValidationMessage(v **types.Dashboa return nil } -func awsAwsquery_deserializeDocumentDashboardValidationMessages(v *[]*types.DashboardValidationMessage, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDashboardValidationMessages(v *[]types.DashboardValidationMessage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DashboardValidationMessage + var sv []types.DashboardValidationMessage if *v == nil { - sv = make([]*types.DashboardValidationMessage, 0) + sv = make([]types.DashboardValidationMessage, 0) } else { sv = *v } @@ -4626,11 +4650,13 @@ func awsAwsquery_deserializeDocumentDashboardValidationMessages(v *[]*types.Dash } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.DashboardValidationMessage + var col types.DashboardValidationMessage nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDashboardValidationMessage(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDashboardValidationMessage(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -4643,23 +4669,25 @@ func awsAwsquery_deserializeDocumentDashboardValidationMessages(v *[]*types.Dash return nil } -func awsAwsquery_deserializeDocumentDashboardValidationMessagesUnwrapped(v *[]*types.DashboardValidationMessage, decoder smithyxml.NodeDecoder) error { - var sv []*types.DashboardValidationMessage +func awsAwsquery_deserializeDocumentDashboardValidationMessagesUnwrapped(v *[]types.DashboardValidationMessage, decoder smithyxml.NodeDecoder) error { + var sv []types.DashboardValidationMessage if *v == nil { - sv = make([]*types.DashboardValidationMessage, 0) + sv = make([]types.DashboardValidationMessage, 0) } else { sv = *v } switch { default: - var mv *types.DashboardValidationMessage + var mv types.DashboardValidationMessage t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDashboardValidationMessage(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDashboardValidationMessage(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -4701,7 +4729,7 @@ func awsAwsquery_deserializeDocumentDatapoint(v **types.Datapoint, decoder smith if err != nil { return err } - sv.Average = &f64 + sv.Average = ptr.Float64(f64) } case strings.EqualFold("ExtendedStatistics", t.Name.Local): @@ -4724,7 +4752,7 @@ func awsAwsquery_deserializeDocumentDatapoint(v **types.Datapoint, decoder smith if err != nil { return err } - sv.Maximum = &f64 + sv.Maximum = ptr.Float64(f64) } case strings.EqualFold("Minimum", t.Name.Local): @@ -4741,7 +4769,7 @@ func awsAwsquery_deserializeDocumentDatapoint(v **types.Datapoint, decoder smith if err != nil { return err } - sv.Minimum = &f64 + sv.Minimum = ptr.Float64(f64) } case strings.EqualFold("SampleCount", t.Name.Local): @@ -4758,7 +4786,7 @@ func awsAwsquery_deserializeDocumentDatapoint(v **types.Datapoint, decoder smith if err != nil { return err } - sv.SampleCount = &f64 + sv.SampleCount = ptr.Float64(f64) } case strings.EqualFold("Sum", t.Name.Local): @@ -4775,7 +4803,7 @@ func awsAwsquery_deserializeDocumentDatapoint(v **types.Datapoint, decoder smith if err != nil { return err } - sv.Sum = &f64 + sv.Sum = ptr.Float64(f64) } case strings.EqualFold("Timestamp", t.Name.Local): @@ -4792,7 +4820,7 @@ func awsAwsquery_deserializeDocumentDatapoint(v **types.Datapoint, decoder smith if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } case strings.EqualFold("Unit", t.Name.Local): @@ -4818,13 +4846,13 @@ func awsAwsquery_deserializeDocumentDatapoint(v **types.Datapoint, decoder smith return nil } -func awsAwsquery_deserializeDocumentDatapoints(v *[]*types.Datapoint, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDatapoints(v *[]types.Datapoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Datapoint + var sv []types.Datapoint if *v == nil { - sv = make([]*types.Datapoint, 0) + sv = make([]types.Datapoint, 0) } else { sv = *v } @@ -4840,11 +4868,13 @@ func awsAwsquery_deserializeDocumentDatapoints(v *[]*types.Datapoint, decoder sm } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Datapoint + var col types.Datapoint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDatapoint(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDatapoint(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -4857,35 +4887,37 @@ func awsAwsquery_deserializeDocumentDatapoints(v *[]*types.Datapoint, decoder sm return nil } -func awsAwsquery_deserializeDocumentDatapointsUnwrapped(v *[]*types.Datapoint, decoder smithyxml.NodeDecoder) error { - var sv []*types.Datapoint +func awsAwsquery_deserializeDocumentDatapointsUnwrapped(v *[]types.Datapoint, decoder smithyxml.NodeDecoder) error { + var sv []types.Datapoint if *v == nil { - sv = make([]*types.Datapoint, 0) + sv = make([]types.Datapoint, 0) } else { sv = *v } switch { default: - var mv *types.Datapoint + var mv types.Datapoint t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDatapoint(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDatapoint(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentDatapointValueMap(v *map[string]*float64, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDatapointValueMap(v *map[string]float64, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*float64 + var sv map[string]float64 if *v == nil { - sv = make(map[string]*float64, 0) + sv = make(map[string]float64, 0) } else { sv = *v } @@ -4909,23 +4941,23 @@ func awsAwsquery_deserializeDocumentDatapointValueMap(v *map[string]*float64, de return nil } -func awsAwsquery_deserializeDocumentDatapointValueMapUnwrapped(v *map[string]*float64, decoder smithyxml.NodeDecoder) error { - var sv map[string]*float64 +func awsAwsquery_deserializeDocumentDatapointValueMapUnwrapped(v *map[string]float64, decoder smithyxml.NodeDecoder) error { + var sv map[string]float64 if *v == nil { - sv = make(map[string]*float64, 0) + sv = make(map[string]float64, 0) } else { sv = *v } - var ek *string - var ev *float64 + var ek string + var ev float64 for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -4935,14 +4967,11 @@ func awsAwsquery_deserializeDocumentDatapointValueMapUnwrapped(v *map[string]*fl return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): @@ -4959,7 +4988,7 @@ func awsAwsquery_deserializeDocumentDatapointValueMapUnwrapped(v *map[string]*fl if err != nil { return err } - ev = &f64 + ev = f64 } default: @@ -4970,13 +4999,13 @@ func awsAwsquery_deserializeDocumentDatapointValueMapUnwrapped(v *map[string]*fl *v = sv return nil } -func awsAwsquery_deserializeDocumentDatapointValues(v *[]*float64, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDatapointValues(v *[]float64, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*float64 + var sv []float64 if *v == nil { - sv = make([]*float64, 0) + sv = make([]float64, 0) } else { sv = *v } @@ -4994,7 +5023,7 @@ func awsAwsquery_deserializeDocumentDatapointValues(v *[]*float64, decoder smith decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *float64 + var col float64 val, done, err := decoder.Value() if err != nil { return err @@ -5008,7 +5037,7 @@ func awsAwsquery_deserializeDocumentDatapointValues(v *[]*float64, decoder smith if err != nil { return err } - col = &f64 + col = f64 } sv = append(sv, col) } else { @@ -5021,17 +5050,17 @@ func awsAwsquery_deserializeDocumentDatapointValues(v *[]*float64, decoder smith return nil } -func awsAwsquery_deserializeDocumentDatapointValuesUnwrapped(v *[]*float64, decoder smithyxml.NodeDecoder) error { - var sv []*float64 +func awsAwsquery_deserializeDocumentDatapointValuesUnwrapped(v *[]float64, decoder smithyxml.NodeDecoder) error { + var sv []float64 if *v == nil { - sv = make([]*float64, 0) + sv = make([]float64, 0) } else { sv = *v } switch { default: - var mv *float64 + var mv float64 t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -5047,7 +5076,7 @@ func awsAwsquery_deserializeDocumentDatapointValuesUnwrapped(v *[]*float64, deco if err != nil { return err } - mv = &f64 + mv = f64 } sv = append(sv, mv) } @@ -5089,7 +5118,7 @@ func awsAwsquery_deserializeDocumentDimension(v **types.Dimension, decoder smith } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -5105,7 +5134,7 @@ func awsAwsquery_deserializeDocumentDimension(v **types.Dimension, decoder smith } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -5118,13 +5147,13 @@ func awsAwsquery_deserializeDocumentDimension(v **types.Dimension, decoder smith return nil } -func awsAwsquery_deserializeDocumentDimensions(v *[]*types.Dimension, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDimensions(v *[]types.Dimension, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Dimension + var sv []types.Dimension if *v == nil { - sv = make([]*types.Dimension, 0) + sv = make([]types.Dimension, 0) } else { sv = *v } @@ -5140,11 +5169,13 @@ func awsAwsquery_deserializeDocumentDimensions(v *[]*types.Dimension, decoder sm } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Dimension + var col types.Dimension nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDimension(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDimension(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5157,23 +5188,25 @@ func awsAwsquery_deserializeDocumentDimensions(v *[]*types.Dimension, decoder sm return nil } -func awsAwsquery_deserializeDocumentDimensionsUnwrapped(v *[]*types.Dimension, decoder smithyxml.NodeDecoder) error { - var sv []*types.Dimension +func awsAwsquery_deserializeDocumentDimensionsUnwrapped(v *[]types.Dimension, decoder smithyxml.NodeDecoder) error { + var sv []types.Dimension if *v == nil { - sv = make([]*types.Dimension, 0) + sv = make([]types.Dimension, 0) } else { sv = *v } switch { default: - var mv *types.Dimension + var mv types.Dimension t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDimension(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDimension(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5214,7 +5247,7 @@ func awsAwsquery_deserializeDocumentInsightRule(v **types.InsightRule, decoder s } if val != nil { xtv := string(val) - sv.Definition = &xtv + sv.Definition = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -5230,7 +5263,7 @@ func awsAwsquery_deserializeDocumentInsightRule(v **types.InsightRule, decoder s } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Schema", t.Name.Local): @@ -5246,7 +5279,7 @@ func awsAwsquery_deserializeDocumentInsightRule(v **types.InsightRule, decoder s } if val != nil { xtv := string(val) - sv.Schema = &xtv + sv.Schema = ptr.String(xtv) } case strings.EqualFold("State", t.Name.Local): @@ -5262,7 +5295,7 @@ func awsAwsquery_deserializeDocumentInsightRule(v **types.InsightRule, decoder s } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } default: @@ -5311,7 +5344,7 @@ func awsAwsquery_deserializeDocumentInsightRuleContributor(v **types.InsightRule if err != nil { return err } - sv.ApproximateAggregateValue = &f64 + sv.ApproximateAggregateValue = ptr.Float64(f64) } case strings.EqualFold("Datapoints", t.Name.Local): @@ -5372,7 +5405,7 @@ func awsAwsquery_deserializeDocumentInsightRuleContributorDatapoint(v **types.In if err != nil { return err } - sv.ApproximateValue = &f64 + sv.ApproximateValue = ptr.Float64(f64) } case strings.EqualFold("Timestamp", t.Name.Local): @@ -5389,7 +5422,7 @@ func awsAwsquery_deserializeDocumentInsightRuleContributorDatapoint(v **types.In if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -5402,13 +5435,13 @@ func awsAwsquery_deserializeDocumentInsightRuleContributorDatapoint(v **types.In return nil } -func awsAwsquery_deserializeDocumentInsightRuleContributorDatapoints(v *[]*types.InsightRuleContributorDatapoint, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInsightRuleContributorDatapoints(v *[]types.InsightRuleContributorDatapoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InsightRuleContributorDatapoint + var sv []types.InsightRuleContributorDatapoint if *v == nil { - sv = make([]*types.InsightRuleContributorDatapoint, 0) + sv = make([]types.InsightRuleContributorDatapoint, 0) } else { sv = *v } @@ -5424,11 +5457,13 @@ func awsAwsquery_deserializeDocumentInsightRuleContributorDatapoints(v *[]*types } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.InsightRuleContributorDatapoint + var col types.InsightRuleContributorDatapoint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInsightRuleContributorDatapoint(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentInsightRuleContributorDatapoint(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5441,35 +5476,37 @@ func awsAwsquery_deserializeDocumentInsightRuleContributorDatapoints(v *[]*types return nil } -func awsAwsquery_deserializeDocumentInsightRuleContributorDatapointsUnwrapped(v *[]*types.InsightRuleContributorDatapoint, decoder smithyxml.NodeDecoder) error { - var sv []*types.InsightRuleContributorDatapoint +func awsAwsquery_deserializeDocumentInsightRuleContributorDatapointsUnwrapped(v *[]types.InsightRuleContributorDatapoint, decoder smithyxml.NodeDecoder) error { + var sv []types.InsightRuleContributorDatapoint if *v == nil { - sv = make([]*types.InsightRuleContributorDatapoint, 0) + sv = make([]types.InsightRuleContributorDatapoint, 0) } else { sv = *v } switch { default: - var mv *types.InsightRuleContributorDatapoint + var mv types.InsightRuleContributorDatapoint t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInsightRuleContributorDatapoint(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentInsightRuleContributorDatapoint(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentInsightRuleContributorKeyLabels(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInsightRuleContributorKeyLabels(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -5487,20 +5524,17 @@ func awsAwsquery_deserializeDocumentInsightRuleContributorKeyLabels(v *[]*string decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -5513,17 +5547,17 @@ func awsAwsquery_deserializeDocumentInsightRuleContributorKeyLabels(v *[]*string return nil } -func awsAwsquery_deserializeDocumentInsightRuleContributorKeyLabelsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentInsightRuleContributorKeyLabelsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -5531,27 +5565,24 @@ func awsAwsquery_deserializeDocumentInsightRuleContributorKeyLabelsUnwrapped(v * return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentInsightRuleContributorKeys(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInsightRuleContributorKeys(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -5569,20 +5600,17 @@ func awsAwsquery_deserializeDocumentInsightRuleContributorKeys(v *[]*string, dec decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -5595,17 +5623,17 @@ func awsAwsquery_deserializeDocumentInsightRuleContributorKeys(v *[]*string, dec return nil } -func awsAwsquery_deserializeDocumentInsightRuleContributorKeysUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentInsightRuleContributorKeysUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -5613,27 +5641,24 @@ func awsAwsquery_deserializeDocumentInsightRuleContributorKeysUnwrapped(v *[]*st return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentInsightRuleContributors(v *[]*types.InsightRuleContributor, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInsightRuleContributors(v *[]types.InsightRuleContributor, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InsightRuleContributor + var sv []types.InsightRuleContributor if *v == nil { - sv = make([]*types.InsightRuleContributor, 0) + sv = make([]types.InsightRuleContributor, 0) } else { sv = *v } @@ -5649,11 +5674,13 @@ func awsAwsquery_deserializeDocumentInsightRuleContributors(v *[]*types.InsightR } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.InsightRuleContributor + var col types.InsightRuleContributor nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInsightRuleContributor(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentInsightRuleContributor(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5666,23 +5693,25 @@ func awsAwsquery_deserializeDocumentInsightRuleContributors(v *[]*types.InsightR return nil } -func awsAwsquery_deserializeDocumentInsightRuleContributorsUnwrapped(v *[]*types.InsightRuleContributor, decoder smithyxml.NodeDecoder) error { - var sv []*types.InsightRuleContributor +func awsAwsquery_deserializeDocumentInsightRuleContributorsUnwrapped(v *[]types.InsightRuleContributor, decoder smithyxml.NodeDecoder) error { + var sv []types.InsightRuleContributor if *v == nil { - sv = make([]*types.InsightRuleContributor, 0) + sv = make([]types.InsightRuleContributor, 0) } else { sv = *v } switch { default: - var mv *types.InsightRuleContributor + var mv types.InsightRuleContributor t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInsightRuleContributor(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentInsightRuleContributor(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5724,7 +5753,7 @@ func awsAwsquery_deserializeDocumentInsightRuleMetricDatapoint(v **types.Insight if err != nil { return err } - sv.Average = &f64 + sv.Average = ptr.Float64(f64) } case strings.EqualFold("MaxContributorValue", t.Name.Local): @@ -5741,7 +5770,7 @@ func awsAwsquery_deserializeDocumentInsightRuleMetricDatapoint(v **types.Insight if err != nil { return err } - sv.MaxContributorValue = &f64 + sv.MaxContributorValue = ptr.Float64(f64) } case strings.EqualFold("Maximum", t.Name.Local): @@ -5758,7 +5787,7 @@ func awsAwsquery_deserializeDocumentInsightRuleMetricDatapoint(v **types.Insight if err != nil { return err } - sv.Maximum = &f64 + sv.Maximum = ptr.Float64(f64) } case strings.EqualFold("Minimum", t.Name.Local): @@ -5775,7 +5804,7 @@ func awsAwsquery_deserializeDocumentInsightRuleMetricDatapoint(v **types.Insight if err != nil { return err } - sv.Minimum = &f64 + sv.Minimum = ptr.Float64(f64) } case strings.EqualFold("SampleCount", t.Name.Local): @@ -5792,7 +5821,7 @@ func awsAwsquery_deserializeDocumentInsightRuleMetricDatapoint(v **types.Insight if err != nil { return err } - sv.SampleCount = &f64 + sv.SampleCount = ptr.Float64(f64) } case strings.EqualFold("Sum", t.Name.Local): @@ -5809,7 +5838,7 @@ func awsAwsquery_deserializeDocumentInsightRuleMetricDatapoint(v **types.Insight if err != nil { return err } - sv.Sum = &f64 + sv.Sum = ptr.Float64(f64) } case strings.EqualFold("Timestamp", t.Name.Local): @@ -5826,7 +5855,7 @@ func awsAwsquery_deserializeDocumentInsightRuleMetricDatapoint(v **types.Insight if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } case strings.EqualFold("UniqueContributors", t.Name.Local): @@ -5843,7 +5872,7 @@ func awsAwsquery_deserializeDocumentInsightRuleMetricDatapoint(v **types.Insight if err != nil { return err } - sv.UniqueContributors = &f64 + sv.UniqueContributors = ptr.Float64(f64) } default: @@ -5856,13 +5885,13 @@ func awsAwsquery_deserializeDocumentInsightRuleMetricDatapoint(v **types.Insight return nil } -func awsAwsquery_deserializeDocumentInsightRuleMetricDatapoints(v *[]*types.InsightRuleMetricDatapoint, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInsightRuleMetricDatapoints(v *[]types.InsightRuleMetricDatapoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InsightRuleMetricDatapoint + var sv []types.InsightRuleMetricDatapoint if *v == nil { - sv = make([]*types.InsightRuleMetricDatapoint, 0) + sv = make([]types.InsightRuleMetricDatapoint, 0) } else { sv = *v } @@ -5878,11 +5907,13 @@ func awsAwsquery_deserializeDocumentInsightRuleMetricDatapoints(v *[]*types.Insi } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.InsightRuleMetricDatapoint + var col types.InsightRuleMetricDatapoint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInsightRuleMetricDatapoint(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentInsightRuleMetricDatapoint(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5895,35 +5926,37 @@ func awsAwsquery_deserializeDocumentInsightRuleMetricDatapoints(v *[]*types.Insi return nil } -func awsAwsquery_deserializeDocumentInsightRuleMetricDatapointsUnwrapped(v *[]*types.InsightRuleMetricDatapoint, decoder smithyxml.NodeDecoder) error { - var sv []*types.InsightRuleMetricDatapoint +func awsAwsquery_deserializeDocumentInsightRuleMetricDatapointsUnwrapped(v *[]types.InsightRuleMetricDatapoint, decoder smithyxml.NodeDecoder) error { + var sv []types.InsightRuleMetricDatapoint if *v == nil { - sv = make([]*types.InsightRuleMetricDatapoint, 0) + sv = make([]types.InsightRuleMetricDatapoint, 0) } else { sv = *v } switch { default: - var mv *types.InsightRuleMetricDatapoint + var mv types.InsightRuleMetricDatapoint t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInsightRuleMetricDatapoint(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentInsightRuleMetricDatapoint(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentInsightRules(v *[]*types.InsightRule, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInsightRules(v *[]types.InsightRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InsightRule + var sv []types.InsightRule if *v == nil { - sv = make([]*types.InsightRule, 0) + sv = make([]types.InsightRule, 0) } else { sv = *v } @@ -5939,11 +5972,13 @@ func awsAwsquery_deserializeDocumentInsightRules(v *[]*types.InsightRule, decode } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.InsightRule + var col types.InsightRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInsightRule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentInsightRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5956,23 +5991,25 @@ func awsAwsquery_deserializeDocumentInsightRules(v *[]*types.InsightRule, decode return nil } -func awsAwsquery_deserializeDocumentInsightRulesUnwrapped(v *[]*types.InsightRule, decoder smithyxml.NodeDecoder) error { - var sv []*types.InsightRule +func awsAwsquery_deserializeDocumentInsightRulesUnwrapped(v *[]types.InsightRule, decoder smithyxml.NodeDecoder) error { + var sv []types.InsightRule if *v == nil { - sv = make([]*types.InsightRule, 0) + sv = make([]types.InsightRule, 0) } else { sv = *v } switch { default: - var mv *types.InsightRule + var mv types.InsightRule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInsightRule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentInsightRule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6013,7 +6050,7 @@ func awsAwsquery_deserializeDocumentInternalServiceFault(v **types.InternalServi } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6061,7 +6098,7 @@ func awsAwsquery_deserializeDocumentInvalidFormatFault(v **types.InvalidFormatFa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6109,7 +6146,7 @@ func awsAwsquery_deserializeDocumentInvalidNextToken(v **types.InvalidNextToken, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6157,7 +6194,7 @@ func awsAwsquery_deserializeDocumentInvalidParameterCombinationException(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6205,7 +6242,7 @@ func awsAwsquery_deserializeDocumentInvalidParameterValueException(v **types.Inv } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6253,7 +6290,7 @@ func awsAwsquery_deserializeDocumentLimitExceededException(v **types.LimitExceed } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6301,7 +6338,7 @@ func awsAwsquery_deserializeDocumentLimitExceededFault(v **types.LimitExceededFa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6349,7 +6386,7 @@ func awsAwsquery_deserializeDocumentMessageData(v **types.MessageData, decoder s } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -6365,7 +6402,7 @@ func awsAwsquery_deserializeDocumentMessageData(v **types.MessageData, decoder s } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -6419,7 +6456,7 @@ func awsAwsquery_deserializeDocumentMetric(v **types.Metric, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.MetricName = &xtv + sv.MetricName = ptr.String(xtv) } case strings.EqualFold("Namespace", t.Name.Local): @@ -6435,7 +6472,7 @@ func awsAwsquery_deserializeDocumentMetric(v **types.Metric, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.Namespace = &xtv + sv.Namespace = ptr.String(xtv) } default: @@ -6483,7 +6520,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s if err != nil { return fmt.Errorf("expected ActionsEnabled to be of type *bool, got %T instead", val) } - sv.ActionsEnabled = &xtv + sv.ActionsEnabled = ptr.Bool(xtv) } case strings.EqualFold("AlarmActions", t.Name.Local): @@ -6505,7 +6542,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s } if val != nil { xtv := string(val) - sv.AlarmArn = &xtv + sv.AlarmArn = ptr.String(xtv) } case strings.EqualFold("AlarmConfigurationUpdatedTimestamp", t.Name.Local): @@ -6522,7 +6559,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s if err != nil { return err } - sv.AlarmConfigurationUpdatedTimestamp = &t + sv.AlarmConfigurationUpdatedTimestamp = ptr.Time(t) } case strings.EqualFold("AlarmDescription", t.Name.Local): @@ -6538,7 +6575,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s } if val != nil { xtv := string(val) - sv.AlarmDescription = &xtv + sv.AlarmDescription = ptr.String(xtv) } case strings.EqualFold("AlarmName", t.Name.Local): @@ -6554,7 +6591,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s } if val != nil { xtv := string(val) - sv.AlarmName = &xtv + sv.AlarmName = ptr.String(xtv) } case strings.EqualFold("ComparisonOperator", t.Name.Local): @@ -6606,7 +6643,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s } if val != nil { xtv := string(val) - sv.EvaluateLowSampleCountPercentile = &xtv + sv.EvaluateLowSampleCountPercentile = ptr.String(xtv) } case strings.EqualFold("EvaluationPeriods", t.Name.Local): @@ -6639,7 +6676,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s } if val != nil { xtv := string(val) - sv.ExtendedStatistic = &xtv + sv.ExtendedStatistic = ptr.String(xtv) } case strings.EqualFold("InsufficientDataActions", t.Name.Local): @@ -6661,7 +6698,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s } if val != nil { xtv := string(val) - sv.MetricName = &xtv + sv.MetricName = ptr.String(xtv) } case strings.EqualFold("Metrics", t.Name.Local): @@ -6683,7 +6720,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s } if val != nil { xtv := string(val) - sv.Namespace = &xtv + sv.Namespace = ptr.String(xtv) } case strings.EqualFold("OKActions", t.Name.Local): @@ -6722,7 +6759,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s } if val != nil { xtv := string(val) - sv.StateReason = &xtv + sv.StateReason = ptr.String(xtv) } case strings.EqualFold("StateReasonData", t.Name.Local): @@ -6738,7 +6775,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s } if val != nil { xtv := string(val) - sv.StateReasonData = &xtv + sv.StateReasonData = ptr.String(xtv) } case strings.EqualFold("StateUpdatedTimestamp", t.Name.Local): @@ -6755,7 +6792,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s if err != nil { return err } - sv.StateUpdatedTimestamp = &t + sv.StateUpdatedTimestamp = ptr.Time(t) } case strings.EqualFold("StateValue", t.Name.Local): @@ -6798,7 +6835,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s if err != nil { return err } - sv.Threshold = &f64 + sv.Threshold = ptr.Float64(f64) } case strings.EqualFold("ThresholdMetricId", t.Name.Local): @@ -6814,7 +6851,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s } if val != nil { xtv := string(val) - sv.ThresholdMetricId = &xtv + sv.ThresholdMetricId = ptr.String(xtv) } case strings.EqualFold("TreatMissingData", t.Name.Local): @@ -6830,7 +6867,7 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s } if val != nil { xtv := string(val) - sv.TreatMissingData = &xtv + sv.TreatMissingData = ptr.String(xtv) } case strings.EqualFold("Unit", t.Name.Local): @@ -6856,13 +6893,13 @@ func awsAwsquery_deserializeDocumentMetricAlarm(v **types.MetricAlarm, decoder s return nil } -func awsAwsquery_deserializeDocumentMetricAlarms(v *[]*types.MetricAlarm, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMetricAlarms(v *[]types.MetricAlarm, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.MetricAlarm + var sv []types.MetricAlarm if *v == nil { - sv = make([]*types.MetricAlarm, 0) + sv = make([]types.MetricAlarm, 0) } else { sv = *v } @@ -6878,11 +6915,13 @@ func awsAwsquery_deserializeDocumentMetricAlarms(v *[]*types.MetricAlarm, decode } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.MetricAlarm + var col types.MetricAlarm nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetricAlarm(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentMetricAlarm(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6895,35 +6934,37 @@ func awsAwsquery_deserializeDocumentMetricAlarms(v *[]*types.MetricAlarm, decode return nil } -func awsAwsquery_deserializeDocumentMetricAlarmsUnwrapped(v *[]*types.MetricAlarm, decoder smithyxml.NodeDecoder) error { - var sv []*types.MetricAlarm +func awsAwsquery_deserializeDocumentMetricAlarmsUnwrapped(v *[]types.MetricAlarm, decoder smithyxml.NodeDecoder) error { + var sv []types.MetricAlarm if *v == nil { - sv = make([]*types.MetricAlarm, 0) + sv = make([]types.MetricAlarm, 0) } else { sv = *v } switch { default: - var mv *types.MetricAlarm + var mv types.MetricAlarm t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetricAlarm(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentMetricAlarm(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentMetricDataQueries(v *[]*types.MetricDataQuery, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMetricDataQueries(v *[]types.MetricDataQuery, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.MetricDataQuery + var sv []types.MetricDataQuery if *v == nil { - sv = make([]*types.MetricDataQuery, 0) + sv = make([]types.MetricDataQuery, 0) } else { sv = *v } @@ -6939,11 +6980,13 @@ func awsAwsquery_deserializeDocumentMetricDataQueries(v *[]*types.MetricDataQuer } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.MetricDataQuery + var col types.MetricDataQuery nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetricDataQuery(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentMetricDataQuery(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6956,23 +6999,25 @@ func awsAwsquery_deserializeDocumentMetricDataQueries(v *[]*types.MetricDataQuer return nil } -func awsAwsquery_deserializeDocumentMetricDataQueriesUnwrapped(v *[]*types.MetricDataQuery, decoder smithyxml.NodeDecoder) error { - var sv []*types.MetricDataQuery +func awsAwsquery_deserializeDocumentMetricDataQueriesUnwrapped(v *[]types.MetricDataQuery, decoder smithyxml.NodeDecoder) error { + var sv []types.MetricDataQuery if *v == nil { - sv = make([]*types.MetricDataQuery, 0) + sv = make([]types.MetricDataQuery, 0) } else { sv = *v } switch { default: - var mv *types.MetricDataQuery + var mv types.MetricDataQuery t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetricDataQuery(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentMetricDataQuery(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -7013,7 +7058,7 @@ func awsAwsquery_deserializeDocumentMetricDataQuery(v **types.MetricDataQuery, d } if val != nil { xtv := string(val) - sv.Expression = &xtv + sv.Expression = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -7029,7 +7074,7 @@ func awsAwsquery_deserializeDocumentMetricDataQuery(v **types.MetricDataQuery, d } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("Label", t.Name.Local): @@ -7045,7 +7090,7 @@ func awsAwsquery_deserializeDocumentMetricDataQuery(v **types.MetricDataQuery, d } if val != nil { xtv := string(val) - sv.Label = &xtv + sv.Label = ptr.String(xtv) } case strings.EqualFold("MetricStat", t.Name.Local): @@ -7084,7 +7129,7 @@ func awsAwsquery_deserializeDocumentMetricDataQuery(v **types.MetricDataQuery, d if err != nil { return fmt.Errorf("expected ReturnData to be of type *bool, got %T instead", val) } - sv.ReturnData = &xtv + sv.ReturnData = ptr.Bool(xtv) } default: @@ -7132,7 +7177,7 @@ func awsAwsquery_deserializeDocumentMetricDataResult(v **types.MetricDataResult, } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("Label", t.Name.Local): @@ -7148,7 +7193,7 @@ func awsAwsquery_deserializeDocumentMetricDataResult(v **types.MetricDataResult, } if val != nil { xtv := string(val) - sv.Label = &xtv + sv.Label = ptr.String(xtv) } case strings.EqualFold("Messages", t.Name.Local): @@ -7192,13 +7237,13 @@ func awsAwsquery_deserializeDocumentMetricDataResult(v **types.MetricDataResult, return nil } -func awsAwsquery_deserializeDocumentMetricDataResultMessages(v *[]*types.MessageData, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMetricDataResultMessages(v *[]types.MessageData, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.MessageData + var sv []types.MessageData if *v == nil { - sv = make([]*types.MessageData, 0) + sv = make([]types.MessageData, 0) } else { sv = *v } @@ -7214,11 +7259,13 @@ func awsAwsquery_deserializeDocumentMetricDataResultMessages(v *[]*types.Message } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.MessageData + var col types.MessageData nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMessageData(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentMessageData(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7231,35 +7278,37 @@ func awsAwsquery_deserializeDocumentMetricDataResultMessages(v *[]*types.Message return nil } -func awsAwsquery_deserializeDocumentMetricDataResultMessagesUnwrapped(v *[]*types.MessageData, decoder smithyxml.NodeDecoder) error { - var sv []*types.MessageData +func awsAwsquery_deserializeDocumentMetricDataResultMessagesUnwrapped(v *[]types.MessageData, decoder smithyxml.NodeDecoder) error { + var sv []types.MessageData if *v == nil { - sv = make([]*types.MessageData, 0) + sv = make([]types.MessageData, 0) } else { sv = *v } switch { default: - var mv *types.MessageData + var mv types.MessageData t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMessageData(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentMessageData(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentMetricDataResults(v *[]*types.MetricDataResult, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMetricDataResults(v *[]types.MetricDataResult, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.MetricDataResult + var sv []types.MetricDataResult if *v == nil { - sv = make([]*types.MetricDataResult, 0) + sv = make([]types.MetricDataResult, 0) } else { sv = *v } @@ -7275,11 +7324,13 @@ func awsAwsquery_deserializeDocumentMetricDataResults(v *[]*types.MetricDataResu } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.MetricDataResult + var col types.MetricDataResult nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetricDataResult(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentMetricDataResult(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7292,35 +7343,37 @@ func awsAwsquery_deserializeDocumentMetricDataResults(v *[]*types.MetricDataResu return nil } -func awsAwsquery_deserializeDocumentMetricDataResultsUnwrapped(v *[]*types.MetricDataResult, decoder smithyxml.NodeDecoder) error { - var sv []*types.MetricDataResult +func awsAwsquery_deserializeDocumentMetricDataResultsUnwrapped(v *[]types.MetricDataResult, decoder smithyxml.NodeDecoder) error { + var sv []types.MetricDataResult if *v == nil { - sv = make([]*types.MetricDataResult, 0) + sv = make([]types.MetricDataResult, 0) } else { sv = *v } switch { default: - var mv *types.MetricDataResult + var mv types.MetricDataResult t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetricDataResult(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentMetricDataResult(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentMetrics(v *[]*types.Metric, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMetrics(v *[]types.Metric, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Metric + var sv []types.Metric if *v == nil { - sv = make([]*types.Metric, 0) + sv = make([]types.Metric, 0) } else { sv = *v } @@ -7336,11 +7389,13 @@ func awsAwsquery_deserializeDocumentMetrics(v *[]*types.Metric, decoder smithyxm } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Metric + var col types.Metric nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetric(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentMetric(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7353,23 +7408,25 @@ func awsAwsquery_deserializeDocumentMetrics(v *[]*types.Metric, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentMetricsUnwrapped(v *[]*types.Metric, decoder smithyxml.NodeDecoder) error { - var sv []*types.Metric +func awsAwsquery_deserializeDocumentMetricsUnwrapped(v *[]types.Metric, decoder smithyxml.NodeDecoder) error { + var sv []types.Metric if *v == nil { - sv = make([]*types.Metric, 0) + sv = make([]types.Metric, 0) } else { sv = *v } switch { default: - var mv *types.Metric + var mv types.Metric t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMetric(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentMetric(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -7433,7 +7490,7 @@ func awsAwsquery_deserializeDocumentMetricStat(v **types.MetricStat, decoder smi } if val != nil { xtv := string(val) - sv.Stat = &xtv + sv.Stat = ptr.String(xtv) } case strings.EqualFold("Unit", t.Name.Local): @@ -7494,7 +7551,7 @@ func awsAwsquery_deserializeDocumentMissingRequiredParameterException(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7542,7 +7599,7 @@ func awsAwsquery_deserializeDocumentPartialFailure(v **types.PartialFailure, dec } if val != nil { xtv := string(val) - sv.ExceptionType = &xtv + sv.ExceptionType = ptr.String(xtv) } case strings.EqualFold("FailureCode", t.Name.Local): @@ -7558,7 +7615,7 @@ func awsAwsquery_deserializeDocumentPartialFailure(v **types.PartialFailure, dec } if val != nil { xtv := string(val) - sv.FailureCode = &xtv + sv.FailureCode = ptr.String(xtv) } case strings.EqualFold("FailureDescription", t.Name.Local): @@ -7574,7 +7631,7 @@ func awsAwsquery_deserializeDocumentPartialFailure(v **types.PartialFailure, dec } if val != nil { xtv := string(val) - sv.FailureDescription = &xtv + sv.FailureDescription = ptr.String(xtv) } case strings.EqualFold("FailureResource", t.Name.Local): @@ -7590,7 +7647,7 @@ func awsAwsquery_deserializeDocumentPartialFailure(v **types.PartialFailure, dec } if val != nil { xtv := string(val) - sv.FailureResource = &xtv + sv.FailureResource = ptr.String(xtv) } default: @@ -7639,7 +7696,7 @@ func awsAwsquery_deserializeDocumentRange(v **types.Range, decoder smithyxml.Nod if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case strings.EqualFold("StartTime", t.Name.Local): @@ -7656,7 +7713,7 @@ func awsAwsquery_deserializeDocumentRange(v **types.Range, decoder smithyxml.Nod if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } default: @@ -7669,13 +7726,13 @@ func awsAwsquery_deserializeDocumentRange(v **types.Range, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentResourceList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentResourceList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -7693,20 +7750,17 @@ func awsAwsquery_deserializeDocumentResourceList(v *[]*string, decoder smithyxml decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -7719,17 +7773,17 @@ func awsAwsquery_deserializeDocumentResourceList(v *[]*string, decoder smithyxml return nil } -func awsAwsquery_deserializeDocumentResourceListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentResourceListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7737,14 +7791,11 @@ func awsAwsquery_deserializeDocumentResourceListUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -7786,7 +7837,7 @@ func awsAwsquery_deserializeDocumentResourceNotFound(v **types.ResourceNotFound, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7834,7 +7885,7 @@ func awsAwsquery_deserializeDocumentResourceNotFoundException(v **types.Resource } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("ResourceId", t.Name.Local): @@ -7850,7 +7901,7 @@ func awsAwsquery_deserializeDocumentResourceNotFoundException(v **types.Resource } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("ResourceType", t.Name.Local): @@ -7866,7 +7917,7 @@ func awsAwsquery_deserializeDocumentResourceNotFoundException(v **types.Resource } if val != nil { xtv := string(val) - sv.ResourceType = &xtv + sv.ResourceType = ptr.String(xtv) } default: @@ -7914,7 +7965,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -7930,7 +7981,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -7943,13 +7994,13 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec return nil } -func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -7965,11 +8016,13 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7982,35 +8035,37 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentTimestamps(v *[]*time.Time, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTimestamps(v *[]time.Time, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*time.Time + var sv []time.Time if *v == nil { - sv = make([]*time.Time, 0) + sv = make([]time.Time, 0) } else { sv = *v } @@ -8028,7 +8083,7 @@ func awsAwsquery_deserializeDocumentTimestamps(v *[]*time.Time, decoder smithyxm decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *time.Time + var col time.Time val, done, err := decoder.Value() if err != nil { return err @@ -8042,7 +8097,7 @@ func awsAwsquery_deserializeDocumentTimestamps(v *[]*time.Time, decoder smithyxm if err != nil { return err } - col = &t + col = t } sv = append(sv, col) } else { @@ -8055,17 +8110,17 @@ func awsAwsquery_deserializeDocumentTimestamps(v *[]*time.Time, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentTimestampsUnwrapped(v *[]*time.Time, decoder smithyxml.NodeDecoder) error { - var sv []*time.Time +func awsAwsquery_deserializeDocumentTimestampsUnwrapped(v *[]time.Time, decoder smithyxml.NodeDecoder) error { + var sv []time.Time if *v == nil { - sv = make([]*time.Time, 0) + sv = make([]time.Time, 0) } else { sv = *v } switch { default: - var mv *time.Time + var mv time.Time t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -8081,7 +8136,7 @@ func awsAwsquery_deserializeDocumentTimestampsUnwrapped(v *[]*time.Time, decoder if err != nil { return err } - mv = &t + mv = t } sv = append(sv, mv) } @@ -8263,7 +8318,7 @@ func awsAwsquery_deserializeOpDocumentDescribeAlarmHistoryOutput(v **DescribeAla } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -8361,7 +8416,7 @@ func awsAwsquery_deserializeOpDocumentDescribeAlarmsOutput(v **DescribeAlarmsOut } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -8415,7 +8470,7 @@ func awsAwsquery_deserializeOpDocumentDescribeAnomalyDetectorsOutput(v **Describ } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -8469,7 +8524,7 @@ func awsAwsquery_deserializeOpDocumentDescribeInsightRulesOutput(v **DescribeIns } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -8657,7 +8712,7 @@ func awsAwsquery_deserializeOpDocumentGetDashboardOutput(v **GetDashboardOutput, } if val != nil { xtv := string(val) - sv.DashboardArn = &xtv + sv.DashboardArn = ptr.String(xtv) } case strings.EqualFold("DashboardBody", t.Name.Local): @@ -8673,7 +8728,7 @@ func awsAwsquery_deserializeOpDocumentGetDashboardOutput(v **GetDashboardOutput, } if val != nil { xtv := string(val) - sv.DashboardBody = &xtv + sv.DashboardBody = ptr.String(xtv) } case strings.EqualFold("DashboardName", t.Name.Local): @@ -8689,7 +8744,7 @@ func awsAwsquery_deserializeOpDocumentGetDashboardOutput(v **GetDashboardOutput, } if val != nil { xtv := string(val) - sv.DashboardName = &xtv + sv.DashboardName = ptr.String(xtv) } default: @@ -8738,7 +8793,7 @@ func awsAwsquery_deserializeOpDocumentGetInsightRuleReportOutput(v **GetInsightR if err != nil { return err } - sv.AggregateValue = &f64 + sv.AggregateValue = ptr.Float64(f64) } case strings.EqualFold("AggregationStatistic", t.Name.Local): @@ -8754,7 +8809,7 @@ func awsAwsquery_deserializeOpDocumentGetInsightRuleReportOutput(v **GetInsightR } if val != nil { xtv := string(val) - sv.AggregationStatistic = &xtv + sv.AggregationStatistic = ptr.String(xtv) } case strings.EqualFold("ApproximateUniqueCount", t.Name.Local): @@ -8771,7 +8826,7 @@ func awsAwsquery_deserializeOpDocumentGetInsightRuleReportOutput(v **GetInsightR if err != nil { return err } - sv.ApproximateUniqueCount = &i64 + sv.ApproximateUniqueCount = ptr.Int64(i64) } case strings.EqualFold("Contributors", t.Name.Local): @@ -8849,7 +8904,7 @@ func awsAwsquery_deserializeOpDocumentGetMetricDataOutput(v **GetMetricDataOutpu } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -8903,7 +8958,7 @@ func awsAwsquery_deserializeOpDocumentGetMetricStatisticsOutput(v **GetMetricSta } if val != nil { xtv := string(val) - sv.Label = &xtv + sv.Label = ptr.String(xtv) } default: @@ -9010,7 +9065,7 @@ func awsAwsquery_deserializeOpDocumentListDashboardsOutput(v **ListDashboardsOut } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -9064,7 +9119,7 @@ func awsAwsquery_deserializeOpDocumentListMetricsOutput(v **ListMetricsOutput, d } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: diff --git a/service/cloudwatch/go.mod b/service/cloudwatch/go.mod index 58532d27e37..1029ee091e7 100644 --- a/service/cloudwatch/go.mod +++ b/service/cloudwatch/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cloudwatch go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cloudwatch/serializers.go b/service/cloudwatch/serializers.go index 22bb91a09c4..dfb0b04a71d 100644 --- a/service/cloudwatch/serializers.go +++ b/service/cloudwatch/serializers.go @@ -1664,18 +1664,15 @@ func (m *awsAwsquery_serializeOpUntagResource) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentAlarmNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAlarmNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1712,52 +1709,43 @@ func awsAwsquery_serializeDocumentAnomalyDetectorConfiguration(v *types.AnomalyD return nil } -func awsAwsquery_serializeDocumentAnomalyDetectorExcludedTimeRanges(v []*types.Range, value query.Value) error { +func awsAwsquery_serializeDocumentAnomalyDetectorExcludedTimeRanges(v []types.Range, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentRange(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentRange(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentCounts(v []*float64, value query.Value) error { +func awsAwsquery_serializeDocumentCounts(v []float64, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.Double(*v[i]) + av.Double(v[i]) } return nil } -func awsAwsquery_serializeDocumentDashboardNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentDashboardNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1796,86 +1784,71 @@ func awsAwsquery_serializeDocumentDimensionFilter(v *types.DimensionFilter, valu return nil } -func awsAwsquery_serializeDocumentDimensionFilters(v []*types.DimensionFilter, value query.Value) error { +func awsAwsquery_serializeDocumentDimensionFilters(v []types.DimensionFilter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentDimensionFilter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentDimensionFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentDimensions(v []*types.Dimension, value query.Value) error { +func awsAwsquery_serializeDocumentDimensions(v []types.Dimension, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentDimension(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentDimension(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentExtendedStatistics(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentExtendedStatistics(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentInsightRuleMetricList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentInsightRuleMetricList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentInsightRuleNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentInsightRuleNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1904,36 +1877,30 @@ func awsAwsquery_serializeDocumentMetric(v *types.Metric, value query.Value) err return nil } -func awsAwsquery_serializeDocumentMetricData(v []*types.MetricDatum, value query.Value) error { +func awsAwsquery_serializeDocumentMetricData(v []types.MetricDatum, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentMetricDatum(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentMetricDatum(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentMetricDataQueries(v []*types.MetricDataQuery, value query.Value) error { +func awsAwsquery_serializeDocumentMetricDataQueries(v []types.MetricDataQuery, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentMetricDataQuery(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentMetricDataQuery(&v[i], av); err != nil { return err } } @@ -2085,18 +2052,15 @@ func awsAwsquery_serializeDocumentRange(v *types.Range, value query.Value) error return nil } -func awsAwsquery_serializeDocumentResourceList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentResourceList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2158,52 +2122,43 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTagKeyList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentTagKeyList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentTagList(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTagList(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentValues(v []*float64, value query.Value) error { +func awsAwsquery_serializeDocumentValues(v []float64, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.Double(*v[i]) + av.Double(v[i]) } return nil } diff --git a/service/cloudwatch/types/errors.go b/service/cloudwatch/types/errors.go index 4a3273de754..28ac70020b3 100644 --- a/service/cloudwatch/types/errors.go +++ b/service/cloudwatch/types/errors.go @@ -30,7 +30,7 @@ func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { retur type DashboardInvalidInputError struct { Message *string - DashboardValidationMessages []*DashboardValidationMessage + DashboardValidationMessages []DashboardValidationMessage } func (e *DashboardInvalidInputError) Error() string { diff --git a/service/cloudwatch/types/types.go b/service/cloudwatch/types/types.go index 54a0a37d8ae..dc2b9ef4fa4 100644 --- a/service/cloudwatch/types/types.go +++ b/service/cloudwatch/types/types.go @@ -39,7 +39,7 @@ type AnomalyDetector struct { Configuration *AnomalyDetectorConfiguration // The metric dimensions associated with the anomaly detection model. - Dimensions []*Dimension + Dimensions []Dimension // The name of the metric associated with the anomaly detection model. MetricName *string @@ -63,7 +63,7 @@ type AnomalyDetectorConfiguration struct { // An array of time ranges to exclude from use when the anomaly detection model is // trained. Use this to make sure that events that could cause unusual values for // the metric, such as deployments, aren't used when CloudWatch creates the model. - ExcludedTimeRanges []*Range + ExcludedTimeRanges []Range // The time zone to use for the metric. This is useful to enable the model to // automatically account for daylight savings time changes if the metric is @@ -82,7 +82,7 @@ type CompositeAlarm struct { // The actions to execute when this alarm transitions to the ALARM state from any // other state. Each action is specified as an Amazon Resource Name (ARN). - AlarmActions []*string + AlarmActions []string // The Amazon Resource Name (ARN) of the alarm. AlarmArn *string @@ -102,11 +102,11 @@ type CompositeAlarm struct { // The actions to execute when this alarm transitions to the INSUFFICIENT_DATA // state from any other state. Each action is specified as an Amazon Resource Name // (ARN). - InsufficientDataActions []*string + InsufficientDataActions []string // The actions to execute when this alarm transitions to the OK state from any // other state. Each action is specified as an Amazon Resource Name (ARN). - OKActions []*string + OKActions []string // An explanation for the alarm state, in text format. StateReason *string @@ -136,7 +136,7 @@ type DashboardEntry struct { LastModified *time.Time // The size of the dashboard, in bytes. - Size *int64 + Size int64 } // An error or warning for the operation. @@ -156,7 +156,7 @@ type Datapoint struct { Average *float64 // The percentile statistic for the data point. - ExtendedStatistics map[string]*float64 + ExtendedStatistics map[string]float64 // The maximum metric value for the data point. Maximum *float64 @@ -255,13 +255,13 @@ type InsightRuleContributor struct { // points when this contributor appeared are included in the array. // // This member is required. - Datapoints []*InsightRuleContributorDatapoint + Datapoints []InsightRuleContributorDatapoint // One of the log entry field keywords that is used to define contributors for this // rule. // // This member is required. - Keys []*string + Keys []string } // One data point related to one contributor. For more information, see @@ -343,7 +343,7 @@ type MessageData struct { type Metric struct { // The dimensions for the metric. - Dimensions []*Dimension + Dimensions []Dimension // The name of the metric. This is a required field. MetricName *string @@ -361,7 +361,7 @@ type MetricAlarm struct { // The actions to execute when this alarm transitions to the ALARM state from any // other state. Each action is specified as an Amazon Resource Name (ARN). - AlarmActions []*string + AlarmActions []string // The Amazon Resource Name (ARN) of the alarm. AlarmArn *string @@ -383,7 +383,7 @@ type MetricAlarm struct { DatapointsToAlarm *int32 // The dimensions for the metric associated with the alarm. - Dimensions []*Dimension + Dimensions []Dimension // Used only for alarms based on percentiles. If ignore, the alarm state does not // change during periods with too few data points to be statistically significant. @@ -401,7 +401,7 @@ type MetricAlarm struct { // The actions to execute when this alarm transitions to the INSUFFICIENT_DATA // state from any other state. Each action is specified as an Amazon Resource Name // (ARN). - InsufficientDataActions []*string + InsufficientDataActions []string // The name of the metric associated with the alarm, if this is an alarm based on a // single metric. @@ -411,14 +411,14 @@ type MetricAlarm struct { // expression. Each structure either retrieves a metric or performs a math // expression. One item in the Metrics array is the math expression that the alarm // watches. This expression by designated by having ReturnValue set to true. - Metrics []*MetricDataQuery + Metrics []MetricDataQuery // The namespace of the metric associated with the alarm. Namespace *string // The actions to execute when this alarm transitions to the OK state from any // other state. Each action is specified as an Amazon Resource Name (ARN). - OKActions []*string + OKActions []string // The period, in seconds, over which the statistic is applied. Period *int32 @@ -538,7 +538,7 @@ type MetricDataResult struct { Label *string // A list of messages with additional information about the data returned. - Messages []*MessageData + Messages []MessageData // The status of the returned data. Complete indicates that all data points in the // requested time range were returned. PartialData means that an incomplete set of @@ -551,12 +551,12 @@ type MetricDataResult struct { // The timestamps for the data points, formatted in Unix timestamp format. The // number of timestamps always matches the number of values and the value for // Timestamps[x] is Values[x]. - Timestamps []*time.Time + Timestamps []time.Time // The data points for the metric corresponding to Timestamps. The number of values // always matches the number of timestamps and the timestamp for Values[x] is // Timestamps[x]. - Values []*float64 + Values []float64 } // Encapsulates the information sent to either create a metric or add new values to @@ -573,10 +573,10 @@ type MetricDatum struct { // occurred during the period. If you omit the Counts array, the default of 1 is // used as the value for each count. If you include a Counts array, it must include // the same amount of values as the Values array. - Counts []*float64 + Counts []float64 // The dimensions associated with the metric. - Dimensions []*Dimension + Dimensions []Dimension // The statistical values for the metric. StatisticValues *StatisticSet @@ -615,7 +615,7 @@ type MetricDatum struct { // Double, CloudWatch rejects values that are either too small or too large. Values // must be in the range of -2^360 to 2^360. In addition, special values (for // example, NaN, +Infinity, -Infinity) are not supported. - Values []*float64 + Values []float64 } // This structure defines the metric to be returned, along with the statistics, diff --git a/service/cloudwatch/validators.go b/service/cloudwatch/validators.go index 14467b7de2c..6c00b36c61d 100644 --- a/service/cloudwatch/validators.go +++ b/service/cloudwatch/validators.go @@ -651,13 +651,13 @@ func validateAnomalyDetectorConfiguration(v *types.AnomalyDetectorConfiguration) } } -func validateAnomalyDetectorExcludedTimeRanges(v []*types.Range) error { +func validateAnomalyDetectorExcludedTimeRanges(v []types.Range) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AnomalyDetectorExcludedTimeRanges"} for i := range v { - if err := validateRange(v[i]); err != nil { + if err := validateRange(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -701,13 +701,13 @@ func validateDimensionFilter(v *types.DimensionFilter) error { } } -func validateDimensionFilters(v []*types.DimensionFilter) error { +func validateDimensionFilters(v []types.DimensionFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DimensionFilters"} for i := range v { - if err := validateDimensionFilter(v[i]); err != nil { + if err := validateDimensionFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -718,13 +718,13 @@ func validateDimensionFilters(v []*types.DimensionFilter) error { } } -func validateDimensions(v []*types.Dimension) error { +func validateDimensions(v []types.Dimension) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Dimensions"} for i := range v { - if err := validateDimension(v[i]); err != nil { + if err := validateDimension(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -752,13 +752,13 @@ func validateMetric(v *types.Metric) error { } } -func validateMetricData(v []*types.MetricDatum) error { +func validateMetricData(v []types.MetricDatum) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MetricData"} for i := range v { - if err := validateMetricDatum(v[i]); err != nil { + if err := validateMetricDatum(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -769,13 +769,13 @@ func validateMetricData(v []*types.MetricDatum) error { } } -func validateMetricDataQueries(v []*types.MetricDataQuery) error { +func validateMetricDataQueries(v []types.MetricDataQuery) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MetricDataQueries"} for i := range v { - if err := validateMetricDataQuery(v[i]); err != nil { + if err := validateMetricDataQuery(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -916,13 +916,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/cloudwatchevents/api_op_CreateEventBus.go b/service/cloudwatchevents/api_op_CreateEventBus.go index 84501348b02..d0978946603 100644 --- a/service/cloudwatchevents/api_op_CreateEventBus.go +++ b/service/cloudwatchevents/api_op_CreateEventBus.go @@ -45,7 +45,7 @@ type CreateEventBusInput struct { EventSourceName *string // Tags to associate with the event bus. - Tags []*types.Tag + Tags []types.Tag } type CreateEventBusOutput struct { diff --git a/service/cloudwatchevents/api_op_DeleteRule.go b/service/cloudwatchevents/api_op_DeleteRule.go index e1db8f6d166..cf7da629041 100644 --- a/service/cloudwatchevents/api_op_DeleteRule.go +++ b/service/cloudwatchevents/api_op_DeleteRule.go @@ -49,7 +49,7 @@ type DeleteRuleInput struct { // that are not managed rules. You can check whether a rule is a managed rule by // using DescribeRule or ListRules and checking the ManagedBy field of the // response. - Force *bool + Force bool } type DeleteRuleOutput struct { diff --git a/service/cloudwatchevents/api_op_ListEventBuses.go b/service/cloudwatchevents/api_op_ListEventBuses.go index 38f8206cd5a..3523ec86d30 100644 --- a/service/cloudwatchevents/api_op_ListEventBuses.go +++ b/service/cloudwatchevents/api_op_ListEventBuses.go @@ -46,7 +46,7 @@ type ListEventBusesInput struct { type ListEventBusesOutput struct { // This list of event buses. - EventBuses []*types.EventBus + EventBuses []types.EventBus // A token you can use in a subsequent operation to retrieve the next set of // results. diff --git a/service/cloudwatchevents/api_op_ListEventSources.go b/service/cloudwatchevents/api_op_ListEventSources.go index 860e9d859df..d865eff3d26 100644 --- a/service/cloudwatchevents/api_op_ListEventSources.go +++ b/service/cloudwatchevents/api_op_ListEventSources.go @@ -47,7 +47,7 @@ type ListEventSourcesInput struct { type ListEventSourcesOutput struct { // The list of event sources. - EventSources []*types.EventSource + EventSources []types.EventSource // A token you can use in a subsequent operation to retrieve the next set of // results. diff --git a/service/cloudwatchevents/api_op_ListPartnerEventSourceAccounts.go b/service/cloudwatchevents/api_op_ListPartnerEventSourceAccounts.go index 9feb002047d..fbbb3ed772e 100644 --- a/service/cloudwatchevents/api_op_ListPartnerEventSourceAccounts.go +++ b/service/cloudwatchevents/api_op_ListPartnerEventSourceAccounts.go @@ -53,7 +53,7 @@ type ListPartnerEventSourceAccountsOutput struct { NextToken *string // The list of partner event sources returned by the operation. - PartnerEventSourceAccounts []*types.PartnerEventSourceAccount + PartnerEventSourceAccounts []types.PartnerEventSourceAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchevents/api_op_ListPartnerEventSources.go b/service/cloudwatchevents/api_op_ListPartnerEventSources.go index 4fe743dd4e0..9739e2fc7d0 100644 --- a/service/cloudwatchevents/api_op_ListPartnerEventSources.go +++ b/service/cloudwatchevents/api_op_ListPartnerEventSources.go @@ -53,7 +53,7 @@ type ListPartnerEventSourcesOutput struct { NextToken *string // The list of partner event sources returned by the operation. - PartnerEventSources []*types.PartnerEventSource + PartnerEventSources []types.PartnerEventSource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchevents/api_op_ListRuleNamesByTarget.go b/service/cloudwatchevents/api_op_ListRuleNamesByTarget.go index da07b4f6982..b5f0c142b5d 100644 --- a/service/cloudwatchevents/api_op_ListRuleNamesByTarget.go +++ b/service/cloudwatchevents/api_op_ListRuleNamesByTarget.go @@ -52,7 +52,7 @@ type ListRuleNamesByTargetOutput struct { NextToken *string // The names of the rules that can invoke the given target. - RuleNames []*string + RuleNames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchevents/api_op_ListRules.go b/service/cloudwatchevents/api_op_ListRules.go index ce913b9478f..94a0b341b11 100644 --- a/service/cloudwatchevents/api_op_ListRules.go +++ b/service/cloudwatchevents/api_op_ListRules.go @@ -53,7 +53,7 @@ type ListRulesOutput struct { NextToken *string // The rules that match the specified criteria. - Rules []*types.Rule + Rules []types.Rule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchevents/api_op_ListTagsForResource.go b/service/cloudwatchevents/api_op_ListTagsForResource.go index 6a9c4ff2ad8..dedb2e4370c 100644 --- a/service/cloudwatchevents/api_op_ListTagsForResource.go +++ b/service/cloudwatchevents/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The list of tag keys and values associated with the resource you specified - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchevents/api_op_ListTargetsByRule.go b/service/cloudwatchevents/api_op_ListTargetsByRule.go index 68a8a322015..1fbed5e8b4e 100644 --- a/service/cloudwatchevents/api_op_ListTargetsByRule.go +++ b/service/cloudwatchevents/api_op_ListTargetsByRule.go @@ -52,7 +52,7 @@ type ListTargetsByRuleOutput struct { NextToken *string // The targets assigned to the rule. - Targets []*types.Target + Targets []types.Target // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchevents/api_op_PutEvents.go b/service/cloudwatchevents/api_op_PutEvents.go index 7fe882ffff2..7fdfddba016 100644 --- a/service/cloudwatchevents/api_op_PutEvents.go +++ b/service/cloudwatchevents/api_op_PutEvents.go @@ -34,7 +34,7 @@ type PutEventsInput struct { // associated with the event, and so on. // // This member is required. - Entries []*types.PutEventsRequestEntry + Entries []types.PutEventsRequestEntry } type PutEventsOutput struct { @@ -42,10 +42,10 @@ type PutEventsOutput struct { // The successfully and unsuccessfully ingested events results. If the ingestion // was successful, the entry has the event ID in it. Otherwise, you can use the // error code and error message to identify the problem with the entry. - Entries []*types.PutEventsResultEntry + Entries []types.PutEventsResultEntry // The number of failed entries. - FailedEntryCount *int32 + FailedEntryCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchevents/api_op_PutPartnerEvents.go b/service/cloudwatchevents/api_op_PutPartnerEvents.go index 30bc9c08f2b..8366a2ea5d4 100644 --- a/service/cloudwatchevents/api_op_PutPartnerEvents.go +++ b/service/cloudwatchevents/api_op_PutPartnerEvents.go @@ -33,18 +33,18 @@ type PutPartnerEventsInput struct { // The list of events to write to the event bus. // // This member is required. - Entries []*types.PutPartnerEventsRequestEntry + Entries []types.PutPartnerEventsRequestEntry } type PutPartnerEventsOutput struct { // The list of events from this operation that were successfully written to the // partner event bus. - Entries []*types.PutPartnerEventsResultEntry + Entries []types.PutPartnerEventsResultEntry // The number of events from this operation that could not be written to the // partner event bus. - FailedEntryCount *int32 + FailedEntryCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchevents/api_op_PutRule.go b/service/cloudwatchevents/api_op_PutRule.go index e69ca04558b..67ed696952c 100644 --- a/service/cloudwatchevents/api_op_PutRule.go +++ b/service/cloudwatchevents/api_op_PutRule.go @@ -96,7 +96,7 @@ type PutRuleInput struct { State types.RuleState // The list of key-value pairs to associate with the rule. - Tags []*types.Tag + Tags []types.Tag } type PutRuleOutput struct { diff --git a/service/cloudwatchevents/api_op_PutTargets.go b/service/cloudwatchevents/api_op_PutTargets.go index c97e83b2cec..d69154730c5 100644 --- a/service/cloudwatchevents/api_op_PutTargets.go +++ b/service/cloudwatchevents/api_op_PutTargets.go @@ -143,7 +143,7 @@ type PutTargetsInput struct { // The targets to update or add to the rule. // // This member is required. - Targets []*types.Target + Targets []types.Target // The name of the event bus associated with the rule. If you omit this, the // default event bus is used. @@ -153,10 +153,10 @@ type PutTargetsInput struct { type PutTargetsOutput struct { // The failed target entries. - FailedEntries []*types.PutTargetsResultEntry + FailedEntries []types.PutTargetsResultEntry // The number of failed entries. - FailedEntryCount *int32 + FailedEntryCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchevents/api_op_RemoveTargets.go b/service/cloudwatchevents/api_op_RemoveTargets.go index 2cacf0206aa..1373fa60769 100644 --- a/service/cloudwatchevents/api_op_RemoveTargets.go +++ b/service/cloudwatchevents/api_op_RemoveTargets.go @@ -38,7 +38,7 @@ type RemoveTargetsInput struct { // The IDs of the targets to remove from the rule. // // This member is required. - Ids []*string + Ids []string // The name of the rule. // @@ -53,16 +53,16 @@ type RemoveTargetsInput struct { // that are not managed rules. You can check whether a rule is a managed rule by // using DescribeRule or ListRules and checking the ManagedBy field of the // response. - Force *bool + Force bool } type RemoveTargetsOutput struct { // The failed target entries. - FailedEntries []*types.RemoveTargetsResultEntry + FailedEntries []types.RemoveTargetsResultEntry // The number of failed entries. - FailedEntryCount *int32 + FailedEntryCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchevents/api_op_TagResource.go b/service/cloudwatchevents/api_op_TagResource.go index ad9ba7f48ed..26c52df02e2 100644 --- a/service/cloudwatchevents/api_op_TagResource.go +++ b/service/cloudwatchevents/api_op_TagResource.go @@ -47,7 +47,7 @@ type TagResourceInput struct { // The list of key-value pairs to associate with the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/cloudwatchevents/api_op_TestEventPattern.go b/service/cloudwatchevents/api_op_TestEventPattern.go index fd4c4649852..ed6454b4aef 100644 --- a/service/cloudwatchevents/api_op_TestEventPattern.go +++ b/service/cloudwatchevents/api_op_TestEventPattern.go @@ -48,7 +48,7 @@ type TestEventPatternInput struct { type TestEventPatternOutput struct { // Indicates whether the event matches the event pattern. - Result *bool + Result bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchevents/api_op_UntagResource.go b/service/cloudwatchevents/api_op_UntagResource.go index d8d8c8fb26a..4ba58adb2ed 100644 --- a/service/cloudwatchevents/api_op_UntagResource.go +++ b/service/cloudwatchevents/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // The list of tag keys to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/cloudwatchevents/deserializers.go b/service/cloudwatchevents/deserializers.go index 6f5ae2db4a9..a7885242d23 100644 --- a/service/cloudwatchevents/deserializers.go +++ b/service/cloudwatchevents/deserializers.go @@ -4099,7 +4099,7 @@ func awsAwsjson11_deserializeDocumentBatchArrayProperties(v **types.BatchArrayPr if err != nil { return err } - sv.Size = ptr.Int32(int32(i64)) + sv.Size = int32(i64) } default: @@ -4144,7 +4144,7 @@ func awsAwsjson11_deserializeDocumentBatchParameters(v **types.BatchParameters, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobDefinition = &jtv + sv.JobDefinition = ptr.String(jtv) } case "JobName": @@ -4153,7 +4153,7 @@ func awsAwsjson11_deserializeDocumentBatchParameters(v **types.BatchParameters, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "RetryStrategy": @@ -4202,7 +4202,7 @@ func awsAwsjson11_deserializeDocumentBatchRetryStrategy(v **types.BatchRetryStra if err != nil { return err } - sv.Attempts = ptr.Int32(int32(i64)) + sv.Attempts = int32(i64) } default: @@ -4242,7 +4242,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4282,7 +4282,7 @@ func awsAwsjson11_deserializeDocumentDeadLetterConfig(v **types.DeadLetterConfig if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -4322,7 +4322,7 @@ func awsAwsjson11_deserializeDocumentEcsParameters(v **types.EcsParameters, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Group = &jtv + sv.Group = ptr.String(jtv) } case "LaunchType": @@ -4345,7 +4345,7 @@ func awsAwsjson11_deserializeDocumentEcsParameters(v **types.EcsParameters, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PlatformVersion = &jtv + sv.PlatformVersion = ptr.String(jtv) } case "TaskCount": @@ -4367,7 +4367,7 @@ func awsAwsjson11_deserializeDocumentEcsParameters(v **types.EcsParameters, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.TaskDefinitionArn = &jtv + sv.TaskDefinitionArn = ptr.String(jtv) } default: @@ -4407,7 +4407,7 @@ func awsAwsjson11_deserializeDocumentEventBus(v **types.EventBus, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Name": @@ -4416,7 +4416,7 @@ func awsAwsjson11_deserializeDocumentEventBus(v **types.EventBus, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Policy": @@ -4425,7 +4425,7 @@ func awsAwsjson11_deserializeDocumentEventBus(v **types.EventBus, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -4437,7 +4437,7 @@ func awsAwsjson11_deserializeDocumentEventBus(v **types.EventBus, value interfac return nil } -func awsAwsjson11_deserializeDocumentEventBusList(v *[]*types.EventBus, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventBusList(v *[]types.EventBus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4450,18 +4450,20 @@ func awsAwsjson11_deserializeDocumentEventBusList(v *[]*types.EventBus, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventBus + var cv []types.EventBus if *v == nil { - cv = []*types.EventBus{} + cv = []types.EventBus{} } else { cv = *v } for _, value := range shape { - var col *types.EventBus - if err := awsAwsjson11_deserializeDocumentEventBus(&col, value); err != nil { + var col types.EventBus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventBus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4497,7 +4499,7 @@ func awsAwsjson11_deserializeDocumentEventSource(v **types.EventSource, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedBy": @@ -4506,7 +4508,7 @@ func awsAwsjson11_deserializeDocumentEventSource(v **types.EventSource, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "CreationTime": @@ -4541,7 +4543,7 @@ func awsAwsjson11_deserializeDocumentEventSource(v **types.EventSource, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -4562,7 +4564,7 @@ func awsAwsjson11_deserializeDocumentEventSource(v **types.EventSource, value in return nil } -func awsAwsjson11_deserializeDocumentEventSourceList(v *[]*types.EventSource, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventSourceList(v *[]types.EventSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4575,18 +4577,20 @@ func awsAwsjson11_deserializeDocumentEventSourceList(v *[]*types.EventSource, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventSource + var cv []types.EventSource if *v == nil { - cv = []*types.EventSource{} + cv = []types.EventSource{} } else { cv = *v } for _, value := range shape { - var col *types.EventSource - if err := awsAwsjson11_deserializeDocumentEventSource(&col, value); err != nil { + var col types.EventSource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4594,7 +4598,7 @@ func awsAwsjson11_deserializeDocumentEventSourceList(v *[]*types.EventSource, va return nil } -func awsAwsjson11_deserializeDocumentHeaderParametersMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentHeaderParametersMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4607,21 +4611,21 @@ func awsAwsjson11_deserializeDocumentHeaderParametersMap(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HeaderValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -4709,7 +4713,7 @@ func awsAwsjson11_deserializeDocumentInputTransformer(v **types.InputTransformer if !ok { return fmt.Errorf("expected TransformerInput to be of type string, got %T instead", value) } - sv.InputTemplate = &jtv + sv.InputTemplate = ptr.String(jtv) } default: @@ -4749,7 +4753,7 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4789,7 +4793,7 @@ func awsAwsjson11_deserializeDocumentInvalidEventPatternException(v **types.Inva if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4829,7 +4833,7 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4869,7 +4873,7 @@ func awsAwsjson11_deserializeDocumentKinesisParameters(v **types.KinesisParamete if !ok { return fmt.Errorf("expected TargetPartitionKeyPath to be of type string, got %T instead", value) } - sv.PartitionKeyPath = &jtv + sv.PartitionKeyPath = ptr.String(jtv) } default: @@ -4909,7 +4913,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4949,7 +4953,7 @@ func awsAwsjson11_deserializeDocumentManagedRuleException(v **types.ManagedRuleE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5025,7 +5029,7 @@ func awsAwsjson11_deserializeDocumentOperationDisabledException(v **types.Operat if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5065,7 +5069,7 @@ func awsAwsjson11_deserializeDocumentPartnerEventSource(v **types.PartnerEventSo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Name": @@ -5074,7 +5078,7 @@ func awsAwsjson11_deserializeDocumentPartnerEventSource(v **types.PartnerEventSo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5114,7 +5118,7 @@ func awsAwsjson11_deserializeDocumentPartnerEventSourceAccount(v **types.Partner if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.Account = &jtv + sv.Account = ptr.String(jtv) } case "CreationTime": @@ -5161,7 +5165,7 @@ func awsAwsjson11_deserializeDocumentPartnerEventSourceAccount(v **types.Partner return nil } -func awsAwsjson11_deserializeDocumentPartnerEventSourceAccountList(v *[]*types.PartnerEventSourceAccount, value interface{}) error { +func awsAwsjson11_deserializeDocumentPartnerEventSourceAccountList(v *[]types.PartnerEventSourceAccount, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5174,18 +5178,20 @@ func awsAwsjson11_deserializeDocumentPartnerEventSourceAccountList(v *[]*types.P return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PartnerEventSourceAccount + var cv []types.PartnerEventSourceAccount if *v == nil { - cv = []*types.PartnerEventSourceAccount{} + cv = []types.PartnerEventSourceAccount{} } else { cv = *v } for _, value := range shape { - var col *types.PartnerEventSourceAccount - if err := awsAwsjson11_deserializeDocumentPartnerEventSourceAccount(&col, value); err != nil { + var col types.PartnerEventSourceAccount + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPartnerEventSourceAccount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5193,7 +5199,7 @@ func awsAwsjson11_deserializeDocumentPartnerEventSourceAccountList(v *[]*types.P return nil } -func awsAwsjson11_deserializeDocumentPartnerEventSourceList(v *[]*types.PartnerEventSource, value interface{}) error { +func awsAwsjson11_deserializeDocumentPartnerEventSourceList(v *[]types.PartnerEventSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5206,18 +5212,20 @@ func awsAwsjson11_deserializeDocumentPartnerEventSourceList(v *[]*types.PartnerE return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PartnerEventSource + var cv []types.PartnerEventSource if *v == nil { - cv = []*types.PartnerEventSource{} + cv = []types.PartnerEventSource{} } else { cv = *v } for _, value := range shape { - var col *types.PartnerEventSource - if err := awsAwsjson11_deserializeDocumentPartnerEventSource(&col, value); err != nil { + var col types.PartnerEventSource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPartnerEventSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5225,7 +5233,7 @@ func awsAwsjson11_deserializeDocumentPartnerEventSourceList(v *[]*types.PartnerE return nil } -func awsAwsjson11_deserializeDocumentPathParameterList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPathParameterList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5238,21 +5246,21 @@ func awsAwsjson11_deserializeDocumentPathParameterList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PathParameter to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5289,7 +5297,7 @@ func awsAwsjson11_deserializeDocumentPolicyLengthExceededException(v **types.Pol if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5329,7 +5337,7 @@ func awsAwsjson11_deserializeDocumentPutEventsResultEntry(v **types.PutEventsRes if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -5338,7 +5346,7 @@ func awsAwsjson11_deserializeDocumentPutEventsResultEntry(v **types.PutEventsRes if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "EventId": @@ -5347,7 +5355,7 @@ func awsAwsjson11_deserializeDocumentPutEventsResultEntry(v **types.PutEventsRes if !ok { return fmt.Errorf("expected EventId to be of type string, got %T instead", value) } - sv.EventId = &jtv + sv.EventId = ptr.String(jtv) } default: @@ -5359,7 +5367,7 @@ func awsAwsjson11_deserializeDocumentPutEventsResultEntry(v **types.PutEventsRes return nil } -func awsAwsjson11_deserializeDocumentPutEventsResultEntryList(v *[]*types.PutEventsResultEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentPutEventsResultEntryList(v *[]types.PutEventsResultEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5372,18 +5380,20 @@ func awsAwsjson11_deserializeDocumentPutEventsResultEntryList(v *[]*types.PutEve return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PutEventsResultEntry + var cv []types.PutEventsResultEntry if *v == nil { - cv = []*types.PutEventsResultEntry{} + cv = []types.PutEventsResultEntry{} } else { cv = *v } for _, value := range shape { - var col *types.PutEventsResultEntry - if err := awsAwsjson11_deserializeDocumentPutEventsResultEntry(&col, value); err != nil { + var col types.PutEventsResultEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPutEventsResultEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5419,7 +5429,7 @@ func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntry(v **types.PutPa if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -5428,7 +5438,7 @@ func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntry(v **types.PutPa if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "EventId": @@ -5437,7 +5447,7 @@ func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntry(v **types.PutPa if !ok { return fmt.Errorf("expected EventId to be of type string, got %T instead", value) } - sv.EventId = &jtv + sv.EventId = ptr.String(jtv) } default: @@ -5449,7 +5459,7 @@ func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntry(v **types.PutPa return nil } -func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntryList(v *[]*types.PutPartnerEventsResultEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntryList(v *[]types.PutPartnerEventsResultEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5462,18 +5472,20 @@ func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntryList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PutPartnerEventsResultEntry + var cv []types.PutPartnerEventsResultEntry if *v == nil { - cv = []*types.PutPartnerEventsResultEntry{} + cv = []types.PutPartnerEventsResultEntry{} } else { cv = *v } for _, value := range shape { - var col *types.PutPartnerEventsResultEntry - if err := awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntry(&col, value); err != nil { + var col types.PutPartnerEventsResultEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5509,7 +5521,7 @@ func awsAwsjson11_deserializeDocumentPutTargetsResultEntry(v **types.PutTargetsR if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -5518,7 +5530,7 @@ func awsAwsjson11_deserializeDocumentPutTargetsResultEntry(v **types.PutTargetsR if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "TargetId": @@ -5527,7 +5539,7 @@ func awsAwsjson11_deserializeDocumentPutTargetsResultEntry(v **types.PutTargetsR if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } default: @@ -5539,7 +5551,7 @@ func awsAwsjson11_deserializeDocumentPutTargetsResultEntry(v **types.PutTargetsR return nil } -func awsAwsjson11_deserializeDocumentPutTargetsResultEntryList(v *[]*types.PutTargetsResultEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentPutTargetsResultEntryList(v *[]types.PutTargetsResultEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5552,18 +5564,20 @@ func awsAwsjson11_deserializeDocumentPutTargetsResultEntryList(v *[]*types.PutTa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PutTargetsResultEntry + var cv []types.PutTargetsResultEntry if *v == nil { - cv = []*types.PutTargetsResultEntry{} + cv = []types.PutTargetsResultEntry{} } else { cv = *v } for _, value := range shape { - var col *types.PutTargetsResultEntry - if err := awsAwsjson11_deserializeDocumentPutTargetsResultEntry(&col, value); err != nil { + var col types.PutTargetsResultEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPutTargetsResultEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5571,7 +5585,7 @@ func awsAwsjson11_deserializeDocumentPutTargetsResultEntryList(v *[]*types.PutTa return nil } -func awsAwsjson11_deserializeDocumentQueryStringParametersMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentQueryStringParametersMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5584,21 +5598,21 @@ func awsAwsjson11_deserializeDocumentQueryStringParametersMap(v *map[string]*str return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected QueryStringValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -5635,7 +5649,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDataParameters(v **types.RedshiftDa if !ok { return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "DbUser": @@ -5644,7 +5658,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDataParameters(v **types.RedshiftDa if !ok { return fmt.Errorf("expected DbUser to be of type string, got %T instead", value) } - sv.DbUser = &jtv + sv.DbUser = ptr.String(jtv) } case "SecretManagerArn": @@ -5653,7 +5667,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDataParameters(v **types.RedshiftDa if !ok { return fmt.Errorf("expected RedshiftSecretManagerArn to be of type string, got %T instead", value) } - sv.SecretManagerArn = &jtv + sv.SecretManagerArn = ptr.String(jtv) } case "Sql": @@ -5662,7 +5676,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDataParameters(v **types.RedshiftDa if !ok { return fmt.Errorf("expected Sql to be of type string, got %T instead", value) } - sv.Sql = &jtv + sv.Sql = ptr.String(jtv) } case "StatementName": @@ -5671,7 +5685,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDataParameters(v **types.RedshiftDa if !ok { return fmt.Errorf("expected StatementName to be of type string, got %T instead", value) } - sv.StatementName = &jtv + sv.StatementName = ptr.String(jtv) } case "WithEvent": @@ -5680,7 +5694,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDataParameters(v **types.RedshiftDa if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.WithEvent = &jtv + sv.WithEvent = jtv } default: @@ -5720,7 +5734,7 @@ func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntry(v **types.RemoveTa if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -5729,7 +5743,7 @@ func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntry(v **types.RemoveTa if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "TargetId": @@ -5738,7 +5752,7 @@ func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntry(v **types.RemoveTa if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } default: @@ -5750,7 +5764,7 @@ func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntry(v **types.RemoveTa return nil } -func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntryList(v *[]*types.RemoveTargetsResultEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntryList(v *[]types.RemoveTargetsResultEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5763,18 +5777,20 @@ func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntryList(v *[]*types.Re return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RemoveTargetsResultEntry + var cv []types.RemoveTargetsResultEntry if *v == nil { - cv = []*types.RemoveTargetsResultEntry{} + cv = []types.RemoveTargetsResultEntry{} } else { cv = *v } for _, value := range shape { - var col *types.RemoveTargetsResultEntry - if err := awsAwsjson11_deserializeDocumentRemoveTargetsResultEntry(&col, value); err != nil { + var col types.RemoveTargetsResultEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRemoveTargetsResultEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5810,7 +5826,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5850,7 +5866,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5947,7 +5963,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Description": @@ -5956,7 +5972,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected RuleDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EventBusName": @@ -5965,7 +5981,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected EventBusName to be of type string, got %T instead", value) } - sv.EventBusName = &jtv + sv.EventBusName = ptr.String(jtv) } case "EventPattern": @@ -5974,7 +5990,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected EventPattern to be of type string, got %T instead", value) } - sv.EventPattern = &jtv + sv.EventPattern = ptr.String(jtv) } case "ManagedBy": @@ -5983,7 +5999,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected ManagedBy to be of type string, got %T instead", value) } - sv.ManagedBy = &jtv + sv.ManagedBy = ptr.String(jtv) } case "Name": @@ -5992,7 +6008,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected RuleName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RoleArn": @@ -6001,7 +6017,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "ScheduleExpression": @@ -6010,7 +6026,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected ScheduleExpression to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } case "State": @@ -6031,7 +6047,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentRuleNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuleNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6044,21 +6060,21 @@ func awsAwsjson11_deserializeDocumentRuleNameList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RuleName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6067,7 +6083,7 @@ func awsAwsjson11_deserializeDocumentRuleNameList(v *[]*string, value interface{ return nil } -func awsAwsjson11_deserializeDocumentRuleResponseList(v *[]*types.Rule, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuleResponseList(v *[]types.Rule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6080,18 +6096,20 @@ func awsAwsjson11_deserializeDocumentRuleResponseList(v *[]*types.Rule, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Rule + var cv []types.Rule if *v == nil { - cv = []*types.Rule{} + cv = []types.Rule{} } else { cv = *v } for _, value := range shape { - var col *types.Rule - if err := awsAwsjson11_deserializeDocumentRule(&col, value); err != nil { + var col types.Rule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6163,7 +6181,7 @@ func awsAwsjson11_deserializeDocumentRunCommandTarget(v **types.RunCommandTarget if !ok { return fmt.Errorf("expected RunCommandTargetKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Values": @@ -6180,7 +6198,7 @@ func awsAwsjson11_deserializeDocumentRunCommandTarget(v **types.RunCommandTarget return nil } -func awsAwsjson11_deserializeDocumentRunCommandTargets(v *[]*types.RunCommandTarget, value interface{}) error { +func awsAwsjson11_deserializeDocumentRunCommandTargets(v *[]types.RunCommandTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6193,18 +6211,20 @@ func awsAwsjson11_deserializeDocumentRunCommandTargets(v *[]*types.RunCommandTar return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RunCommandTarget + var cv []types.RunCommandTarget if *v == nil { - cv = []*types.RunCommandTarget{} + cv = []types.RunCommandTarget{} } else { cv = *v } for _, value := range shape { - var col *types.RunCommandTarget - if err := awsAwsjson11_deserializeDocumentRunCommandTarget(&col, value); err != nil { + var col types.RunCommandTarget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRunCommandTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6212,7 +6232,7 @@ func awsAwsjson11_deserializeDocumentRunCommandTargets(v *[]*types.RunCommandTar return nil } -func awsAwsjson11_deserializeDocumentRunCommandTargetValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRunCommandTargetValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6225,21 +6245,21 @@ func awsAwsjson11_deserializeDocumentRunCommandTargetValues(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RunCommandTargetValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6276,7 +6296,7 @@ func awsAwsjson11_deserializeDocumentSqsParameters(v **types.SqsParameters, valu if !ok { return fmt.Errorf("expected MessageGroupId to be of type string, got %T instead", value) } - sv.MessageGroupId = &jtv + sv.MessageGroupId = ptr.String(jtv) } default: @@ -6288,7 +6308,7 @@ func awsAwsjson11_deserializeDocumentSqsParameters(v **types.SqsParameters, valu return nil } -func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6301,21 +6321,21 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -6352,7 +6372,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -6361,7 +6381,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6373,7 +6393,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6386,18 +6406,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6433,7 +6455,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) if !ok { return fmt.Errorf("expected TargetArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "BatchParameters": @@ -6462,7 +6484,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Input": @@ -6471,7 +6493,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) if !ok { return fmt.Errorf("expected TargetInput to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "InputPath": @@ -6480,7 +6502,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) if !ok { return fmt.Errorf("expected TargetInputPath to be of type string, got %T instead", value) } - sv.InputPath = &jtv + sv.InputPath = ptr.String(jtv) } case "InputTransformer": @@ -6509,7 +6531,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "RunCommandParameters": @@ -6531,7 +6553,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentTargetList(v *[]*types.Target, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetList(v *[]types.Target, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6544,18 +6566,20 @@ func awsAwsjson11_deserializeDocumentTargetList(v *[]*types.Target, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Target + var cv []types.Target if *v == nil { - cv = []*types.Target{} + cv = []types.Target{} } else { cv = *v } for _, value := range shape { - var col *types.Target - if err := awsAwsjson11_deserializeDocumentTarget(&col, value); err != nil { + var col types.Target + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6563,7 +6587,7 @@ func awsAwsjson11_deserializeDocumentTargetList(v *[]*types.Target, value interf return nil } -func awsAwsjson11_deserializeDocumentTransformerPaths(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTransformerPaths(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6576,21 +6600,21 @@ func awsAwsjson11_deserializeDocumentTransformerPaths(v *map[string]*string, val return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TargetInputPath to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -6658,7 +6682,7 @@ func awsAwsjson11_deserializeOpDocumentCreateEventBusOutput(v **CreateEventBusOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EventBusArn = &jtv + sv.EventBusArn = ptr.String(jtv) } default: @@ -6698,7 +6722,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePartnerEventSourceOutput(v **Create if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EventSourceArn = &jtv + sv.EventSourceArn = ptr.String(jtv) } default: @@ -6862,7 +6886,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventBusOutput(v **DescribeEventB if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Name": @@ -6871,7 +6895,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventBusOutput(v **DescribeEventB if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Policy": @@ -6880,7 +6904,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventBusOutput(v **DescribeEventB if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -6920,7 +6944,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventSourceOutput(v **DescribeEve if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedBy": @@ -6929,7 +6953,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventSourceOutput(v **DescribeEve if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "CreationTime": @@ -6964,7 +6988,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventSourceOutput(v **DescribeEve if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -7013,7 +7037,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePartnerEventSourceOutput(v **Desc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Name": @@ -7022,7 +7046,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePartnerEventSourceOutput(v **Desc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7062,7 +7086,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Description": @@ -7071,7 +7095,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected RuleDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EventBusName": @@ -7080,7 +7104,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected EventBusName to be of type string, got %T instead", value) } - sv.EventBusName = &jtv + sv.EventBusName = ptr.String(jtv) } case "EventPattern": @@ -7089,7 +7113,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected EventPattern to be of type string, got %T instead", value) } - sv.EventPattern = &jtv + sv.EventPattern = ptr.String(jtv) } case "ManagedBy": @@ -7098,7 +7122,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected ManagedBy to be of type string, got %T instead", value) } - sv.ManagedBy = &jtv + sv.ManagedBy = ptr.String(jtv) } case "Name": @@ -7107,7 +7131,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected RuleName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RoleArn": @@ -7116,7 +7140,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "ScheduleExpression": @@ -7125,7 +7149,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected ScheduleExpression to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } case "State": @@ -7241,7 +7265,7 @@ func awsAwsjson11_deserializeOpDocumentListEventBusesOutput(v **ListEventBusesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7286,7 +7310,7 @@ func awsAwsjson11_deserializeOpDocumentListEventSourcesOutput(v **ListEventSourc if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7326,7 +7350,7 @@ func awsAwsjson11_deserializeOpDocumentListPartnerEventSourceAccountsOutput(v ** if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PartnerEventSourceAccounts": @@ -7371,7 +7395,7 @@ func awsAwsjson11_deserializeOpDocumentListPartnerEventSourcesOutput(v **ListPar if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PartnerEventSources": @@ -7416,7 +7440,7 @@ func awsAwsjson11_deserializeOpDocumentListRuleNamesByTargetOutput(v **ListRuleN if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RuleNames": @@ -7461,7 +7485,7 @@ func awsAwsjson11_deserializeOpDocumentListRulesOutput(v **ListRulesOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Rules": @@ -7542,7 +7566,7 @@ func awsAwsjson11_deserializeOpDocumentListTargetsByRuleOutput(v **ListTargetsBy if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Targets": @@ -7596,7 +7620,7 @@ func awsAwsjson11_deserializeOpDocumentPutEventsOutput(v **PutEventsOutput, valu if err != nil { return err } - sv.FailedEntryCount = ptr.Int32(int32(i64)) + sv.FailedEntryCount = int32(i64) } default: @@ -7645,7 +7669,7 @@ func awsAwsjson11_deserializeOpDocumentPutPartnerEventsOutput(v **PutPartnerEven if err != nil { return err } - sv.FailedEntryCount = ptr.Int32(int32(i64)) + sv.FailedEntryCount = int32(i64) } default: @@ -7716,7 +7740,7 @@ func awsAwsjson11_deserializeOpDocumentPutRuleOutput(v **PutRuleOutput, value in if !ok { return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) } - sv.RuleArn = &jtv + sv.RuleArn = ptr.String(jtv) } default: @@ -7765,7 +7789,7 @@ func awsAwsjson11_deserializeOpDocumentPutTargetsOutput(v **PutTargetsOutput, va if err != nil { return err } - sv.FailedEntryCount = ptr.Int32(int32(i64)) + sv.FailedEntryCount = int32(i64) } default: @@ -7845,7 +7869,7 @@ func awsAwsjson11_deserializeOpDocumentRemoveTargetsOutput(v **RemoveTargetsOutp if err != nil { return err } - sv.FailedEntryCount = ptr.Int32(int32(i64)) + sv.FailedEntryCount = int32(i64) } default: @@ -7916,7 +7940,7 @@ func awsAwsjson11_deserializeOpDocumentTestEventPatternOutput(v **TestEventPatte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Result = &jtv + sv.Result = jtv } default: diff --git a/service/cloudwatchevents/go.mod b/service/cloudwatchevents/go.mod index 8a8b6613e12..a2206de1179 100644 --- a/service/cloudwatchevents/go.mod +++ b/service/cloudwatchevents/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cloudwatchevents go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cloudwatchevents/serializers.go b/service/cloudwatchevents/serializers.go index e57ce121555..8e63bb350d6 100644 --- a/service/cloudwatchevents/serializers.go +++ b/service/cloudwatchevents/serializers.go @@ -1470,9 +1470,9 @@ func awsAwsjson11_serializeDocumentBatchArrayProperties(v *types.BatchArrayPrope object := value.Object() defer object.Close() - if v.Size != nil { + if v.Size != 0 { ok := object.Key("Size") - ok.Integer(*v.Size) + ok.Integer(v.Size) } return nil @@ -1513,9 +1513,9 @@ func awsAwsjson11_serializeDocumentBatchRetryStrategy(v *types.BatchRetryStrateg object := value.Object() defer object.Close() - if v.Attempts != nil { + if v.Attempts != 0 { ok := object.Key("Attempts") - ok.Integer(*v.Attempts) + ok.Integer(v.Attempts) } return nil @@ -1594,32 +1594,24 @@ func awsAwsjson11_serializeDocumentEcsParameters(v *types.EcsParameters, value s return nil } -func awsAwsjson11_serializeDocumentEventResourceList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEventResourceList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentHeaderParametersMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHeaderParametersMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1697,17 +1689,13 @@ func awsAwsjson11_serializeDocumentNetworkConfiguration(v *types.NetworkConfigur return nil } -func awsAwsjson11_serializeDocumentPathParameterList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPathParameterList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1751,17 +1739,13 @@ func awsAwsjson11_serializeDocumentPutEventsRequestEntry(v *types.PutEventsReque return nil } -func awsAwsjson11_serializeDocumentPutEventsRequestEntryList(v []*types.PutEventsRequestEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPutEventsRequestEntryList(v []types.PutEventsRequestEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPutEventsRequestEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPutEventsRequestEntry(&v[i], av); err != nil { return err } } @@ -1802,34 +1786,26 @@ func awsAwsjson11_serializeDocumentPutPartnerEventsRequestEntry(v *types.PutPart return nil } -func awsAwsjson11_serializeDocumentPutPartnerEventsRequestEntryList(v []*types.PutPartnerEventsRequestEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPutPartnerEventsRequestEntryList(v []types.PutPartnerEventsRequestEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPutPartnerEventsRequestEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPutPartnerEventsRequestEntry(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentQueryStringParametersMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentQueryStringParametersMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1863,9 +1839,9 @@ func awsAwsjson11_serializeDocumentRedshiftDataParameters(v *types.RedshiftDataP ok.String(*v.StatementName) } - if v.WithEvent != nil { + if v.WithEvent { ok := object.Key("WithEvent") - ok.Boolean(*v.WithEvent) + ok.Boolean(v.WithEvent) } return nil @@ -1921,34 +1897,26 @@ func awsAwsjson11_serializeDocumentRunCommandTarget(v *types.RunCommandTarget, v return nil } -func awsAwsjson11_serializeDocumentRunCommandTargets(v []*types.RunCommandTarget, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRunCommandTargets(v []types.RunCommandTarget, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRunCommandTarget(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRunCommandTarget(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentRunCommandTargetValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRunCommandTargetValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1965,17 +1933,13 @@ func awsAwsjson11_serializeDocumentSqsParameters(v *types.SqsParameters, value s return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1997,32 +1961,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2131,49 +2087,37 @@ func awsAwsjson11_serializeDocumentTarget(v *types.Target, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentTargetIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTargetList(v []*types.Target, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetList(v []types.Target, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTarget(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTarget(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTransformerPaths(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTransformerPaths(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2281,9 +2225,9 @@ func awsAwsjson11_serializeOpDocumentDeleteRuleInput(v *DeleteRuleInput, value s ok.String(*v.EventBusName) } - if v.Force != nil { + if v.Force { ok := object.Key("Force") - ok.Boolean(*v.Force) + ok.Boolean(v.Force) } if v.Name != nil { @@ -2723,9 +2667,9 @@ func awsAwsjson11_serializeOpDocumentRemoveTargetsInput(v *RemoveTargetsInput, v ok.String(*v.EventBusName) } - if v.Force != nil { + if v.Force { ok := object.Key("Force") - ok.Boolean(*v.Force) + ok.Boolean(v.Force) } if v.Ids != nil { diff --git a/service/cloudwatchevents/types/types.go b/service/cloudwatchevents/types/types.go index f29410ea81a..d82a642efc0 100644 --- a/service/cloudwatchevents/types/types.go +++ b/service/cloudwatchevents/types/types.go @@ -15,7 +15,7 @@ type AwsVpcConfiguration struct { // same VPC. You can specify as many as 16 subnets. // // This member is required. - Subnets []*string + Subnets []string // Specifies whether the task's elastic network interface receives a public IP // address. You can specify ENABLED only when LaunchType in EcsParameters is set to @@ -26,7 +26,7 @@ type AwsVpcConfiguration struct { // must all be in the same VPC. You can specify as many as five security groups. If // you do not specify a security group, the default security group for the VPC is // used. - SecurityGroups []*string + SecurityGroups []string } // The array properties for the submitted job, such as the size of the array. The @@ -37,7 +37,7 @@ type BatchArrayProperties struct { // The size of the array, if this is an array batch job. Valid values are integers // between 2 and 10,000. - Size *int32 + Size int32 } // The custom parameters to be used when the target is an AWS Batch job. @@ -75,7 +75,7 @@ type BatchRetryStrategy struct { // The number of times to attempt to retry, if the job fails. Valid values are // 1–10. - Attempts *int32 + Attempts int32 } // A JSON string which you can use to limit the event bus permissions you are @@ -207,15 +207,15 @@ type HttpParameters struct { // The headers that need to be sent as part of request invoking the API Gateway // REST API. - HeaderParameters map[string]*string + HeaderParameters map[string]string // The path parameter values to be used to populate API Gateway REST API path // wildcards ("*"). - PathParameterValues []*string + PathParameterValues []string // The query string keys/values that need to be sent as part of request invoking // the API Gateway REST API. - QueryStringParameters map[string]*string + QueryStringParameters map[string]string } // Contains the parameters needed for you to provide custom input to a target based @@ -264,7 +264,7 @@ type InputTransformer struct { // target. InputPathsMap is an array key-value pairs, where each value is a valid // JSON path. You can have as many as 10 key-value pairs. You must use JSON dot // notation, not bracket notation. The keys cannot start with "AWS." - InputPathsMap map[string]*string + InputPathsMap map[string]string } // This object enables you to specify a JSON path to extract from the event and use @@ -340,7 +340,7 @@ type PutEventsRequestEntry struct { // AWS resources, identified by Amazon Resource Name (ARN), which the event // primarily concerns. Any number, including zero, may be present. - Resources []*string + Resources []string // The source of the event. Source *string @@ -376,7 +376,7 @@ type PutPartnerEventsRequestEntry struct { // AWS resources, identified by Amazon Resource Name (ARN), which the event // primarily concerns. Any number, including zero, may be present. - Resources []*string + Resources []string // The event source that is generating the evntry. Source *string @@ -441,7 +441,7 @@ type RedshiftDataParameters struct { // Indicates whether to send an event back to EventBridge after the SQL statement // runs. - WithEvent *bool + WithEvent bool } // Represents a target that failed to be removed from a rule. @@ -513,7 +513,7 @@ type RunCommandParameters struct { // either an array of InstanceIds or a tag. // // This member is required. - RunCommandTargets []*RunCommandTarget + RunCommandTargets []RunCommandTarget } // Information about the EC2 instances that are to be sent the command, specified @@ -530,7 +530,7 @@ type RunCommandTarget struct { // Values is a list of Amazon EC2 instance IDs. // // This member is required. - Values []*string + Values []string } // This structure includes the custom parameter to be used when the target is an diff --git a/service/cloudwatchevents/validators.go b/service/cloudwatchevents/validators.go index e7e63327093..8cfdca3309d 100644 --- a/service/cloudwatchevents/validators.go +++ b/service/cloudwatchevents/validators.go @@ -834,13 +834,13 @@ func validateRunCommandTarget(v *types.RunCommandTarget) error { } } -func validateRunCommandTargets(v []*types.RunCommandTarget) error { +func validateRunCommandTargets(v []types.RunCommandTarget) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RunCommandTargets"} for i := range v { - if err := validateRunCommandTarget(v[i]); err != nil { + if err := validateRunCommandTarget(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -869,13 +869,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -934,13 +934,13 @@ func validateTarget(v *types.Target) error { } } -func validateTargetList(v []*types.Target) error { +func validateTargetList(v []types.Target) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TargetList"} for i := range v { - if err := validateTarget(v[i]); err != nil { + if err := validateTarget(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/cloudwatchlogs/api_op_CreateLogGroup.go b/service/cloudwatchlogs/api_op_CreateLogGroup.go index e9e356b18c6..b752d93325c 100644 --- a/service/cloudwatchlogs/api_op_CreateLogGroup.go +++ b/service/cloudwatchlogs/api_op_CreateLogGroup.go @@ -67,7 +67,7 @@ type CreateLogGroupInput struct { KmsKeyId *string // The key-value pairs to use for the tags. - Tags map[string]*string + Tags map[string]string } type CreateLogGroupOutput struct { diff --git a/service/cloudwatchlogs/api_op_DeleteQueryDefinition.go b/service/cloudwatchlogs/api_op_DeleteQueryDefinition.go index 15b4b2472bc..0ed7dcf3ea1 100644 --- a/service/cloudwatchlogs/api_op_DeleteQueryDefinition.go +++ b/service/cloudwatchlogs/api_op_DeleteQueryDefinition.go @@ -44,7 +44,7 @@ type DeleteQueryDefinitionOutput struct { // A value of TRUE indicates that the operation succeeded. FALSE indicates that the // operation failed. - Success *bool + Success bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchlogs/api_op_DescribeDestinations.go b/service/cloudwatchlogs/api_op_DescribeDestinations.go index c6a95f1a007..fcc36342bfa 100644 --- a/service/cloudwatchlogs/api_op_DescribeDestinations.go +++ b/service/cloudwatchlogs/api_op_DescribeDestinations.go @@ -44,7 +44,7 @@ type DescribeDestinationsInput struct { type DescribeDestinationsOutput struct { // The destinations. - Destinations []*types.Destination + Destinations []types.Destination // The token for the next set of items to return. The token expires after 24 hours. NextToken *string diff --git a/service/cloudwatchlogs/api_op_DescribeExportTasks.go b/service/cloudwatchlogs/api_op_DescribeExportTasks.go index 2a0dd2cb432..13aac99cc82 100644 --- a/service/cloudwatchlogs/api_op_DescribeExportTasks.go +++ b/service/cloudwatchlogs/api_op_DescribeExportTasks.go @@ -50,7 +50,7 @@ type DescribeExportTasksInput struct { type DescribeExportTasksOutput struct { // The export tasks. - ExportTasks []*types.ExportTask + ExportTasks []types.ExportTask // The token for the next set of items to return. The token expires after 24 hours. NextToken *string diff --git a/service/cloudwatchlogs/api_op_DescribeLogGroups.go b/service/cloudwatchlogs/api_op_DescribeLogGroups.go index cc3af7e82b9..642b644d427 100644 --- a/service/cloudwatchlogs/api_op_DescribeLogGroups.go +++ b/service/cloudwatchlogs/api_op_DescribeLogGroups.go @@ -46,7 +46,7 @@ type DescribeLogGroupsOutput struct { // The log groups. If the retentionInDays value if not included for a log group, // then that log group is set to have its events never expire. - LogGroups []*types.LogGroup + LogGroups []types.LogGroup // The token for the next set of items to return. The token expires after 24 hours. NextToken *string diff --git a/service/cloudwatchlogs/api_op_DescribeLogStreams.go b/service/cloudwatchlogs/api_op_DescribeLogStreams.go index 44c104f5357..47456523493 100644 --- a/service/cloudwatchlogs/api_op_DescribeLogStreams.go +++ b/service/cloudwatchlogs/api_op_DescribeLogStreams.go @@ -68,7 +68,7 @@ type DescribeLogStreamsInput struct { type DescribeLogStreamsOutput struct { // The log streams. - LogStreams []*types.LogStream + LogStreams []types.LogStream // The token for the next set of items to return. The token expires after 24 hours. NextToken *string diff --git a/service/cloudwatchlogs/api_op_DescribeMetricFilters.go b/service/cloudwatchlogs/api_op_DescribeMetricFilters.go index 86ab0c4ceaf..d8eef419313 100644 --- a/service/cloudwatchlogs/api_op_DescribeMetricFilters.go +++ b/service/cloudwatchlogs/api_op_DescribeMetricFilters.go @@ -59,7 +59,7 @@ type DescribeMetricFiltersInput struct { type DescribeMetricFiltersOutput struct { // The metric filters. - MetricFilters []*types.MetricFilter + MetricFilters []types.MetricFilter // The token for the next set of items to return. The token expires after 24 hours. NextToken *string diff --git a/service/cloudwatchlogs/api_op_DescribeQueries.go b/service/cloudwatchlogs/api_op_DescribeQueries.go index 13cbca33bf2..878654903b2 100644 --- a/service/cloudwatchlogs/api_op_DescribeQueries.go +++ b/service/cloudwatchlogs/api_op_DescribeQueries.go @@ -52,7 +52,7 @@ type DescribeQueriesOutput struct { NextToken *string // The list of queries that match the request. - Queries []*types.QueryInfo + Queries []types.QueryInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchlogs/api_op_DescribeQueryDefinitions.go b/service/cloudwatchlogs/api_op_DescribeQueryDefinitions.go index e26b1a8ea3c..a6f8243502e 100644 --- a/service/cloudwatchlogs/api_op_DescribeQueryDefinitions.go +++ b/service/cloudwatchlogs/api_op_DescribeQueryDefinitions.go @@ -49,7 +49,7 @@ type DescribeQueryDefinitionsOutput struct { NextToken *string // The list of query definitions that match your request. - QueryDefinitions []*types.QueryDefinition + QueryDefinitions []types.QueryDefinition // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchlogs/api_op_DescribeResourcePolicies.go b/service/cloudwatchlogs/api_op_DescribeResourcePolicies.go index 61b8784cf9d..abf987d99ed 100644 --- a/service/cloudwatchlogs/api_op_DescribeResourcePolicies.go +++ b/service/cloudwatchlogs/api_op_DescribeResourcePolicies.go @@ -43,7 +43,7 @@ type DescribeResourcePoliciesOutput struct { NextToken *string // The resource policies that exist in this account. - ResourcePolicies []*types.ResourcePolicy + ResourcePolicies []types.ResourcePolicy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchlogs/api_op_DescribeSubscriptionFilters.go b/service/cloudwatchlogs/api_op_DescribeSubscriptionFilters.go index 6ff8e7a5915..5a23f2403ef 100644 --- a/service/cloudwatchlogs/api_op_DescribeSubscriptionFilters.go +++ b/service/cloudwatchlogs/api_op_DescribeSubscriptionFilters.go @@ -54,7 +54,7 @@ type DescribeSubscriptionFiltersOutput struct { NextToken *string // The subscription filters. - SubscriptionFilters []*types.SubscriptionFilter + SubscriptionFilters []types.SubscriptionFilter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchlogs/api_op_FilterLogEvents.go b/service/cloudwatchlogs/api_op_FilterLogEvents.go index ae418a1b80e..36e49761ce7 100644 --- a/service/cloudwatchlogs/api_op_FilterLogEvents.go +++ b/service/cloudwatchlogs/api_op_FilterLogEvents.go @@ -75,7 +75,7 @@ type FilterLogEventsInput struct { // Filters the results to only logs from the log streams in this list. If you // specify a value for both logStreamNamePrefix and logStreamNames, the action // returns an InvalidParameterException error. - LogStreamNames []*string + LogStreamNames []string // The token for the next set of events to return. (You received this token from a // previous call.) @@ -91,7 +91,7 @@ type FilterLogEventsInput struct { type FilterLogEventsOutput struct { // The matched events. - Events []*types.FilteredLogEvent + Events []types.FilteredLogEvent // The token to use when requesting the next set of items. The token expires after // 24 hours. @@ -100,7 +100,7 @@ type FilterLogEventsOutput struct { // IMPORTANT Starting on May 15, 2020, this parameter will be deprecated. This // parameter will be an empty list after the deprecation occurs. Indicates which // log streams have been searched and whether each has been searched completely. - SearchedLogStreams []*types.SearchedLogStream + SearchedLogStreams []types.SearchedLogStream // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchlogs/api_op_GetLogEvents.go b/service/cloudwatchlogs/api_op_GetLogEvents.go index c71aa387344..7b2a9799a32 100644 --- a/service/cloudwatchlogs/api_op_GetLogEvents.go +++ b/service/cloudwatchlogs/api_op_GetLogEvents.go @@ -75,7 +75,7 @@ type GetLogEventsInput struct { type GetLogEventsOutput struct { // The events. - Events []*types.OutputLogEvent + Events []types.OutputLogEvent // The token for the next set of items in the backward direction. The token expires // after 24 hours. This token is never null. If you have reached the end of the diff --git a/service/cloudwatchlogs/api_op_GetLogGroupFields.go b/service/cloudwatchlogs/api_op_GetLogGroupFields.go index 414467e09b4..da575cb2c04 100644 --- a/service/cloudwatchlogs/api_op_GetLogGroupFields.go +++ b/service/cloudwatchlogs/api_op_GetLogGroupFields.go @@ -54,7 +54,7 @@ type GetLogGroupFieldsOutput struct { // The array of fields found in the query. Each object in the array contains the // name of the field, along with the percentage of time it appeared in the log // events that were queried. - LogGroupFields []*types.LogGroupField + LogGroupFields []types.LogGroupField // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchlogs/api_op_GetLogRecord.go b/service/cloudwatchlogs/api_op_GetLogRecord.go index 6452df865cb..fcdcf2d3702 100644 --- a/service/cloudwatchlogs/api_op_GetLogRecord.go +++ b/service/cloudwatchlogs/api_op_GetLogRecord.go @@ -43,7 +43,7 @@ type GetLogRecordInput struct { type GetLogRecordOutput struct { // The requested log event, as a JSON string. - LogRecord map[string]*string + LogRecord map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchlogs/api_op_GetQueryResults.go b/service/cloudwatchlogs/api_op_GetQueryResults.go index 945cd4bb782..e2567b66ddf 100644 --- a/service/cloudwatchlogs/api_op_GetQueryResults.go +++ b/service/cloudwatchlogs/api_op_GetQueryResults.go @@ -50,7 +50,7 @@ type GetQueryResultsOutput struct { // ran. The results value is an array of arrays. Each log event is one object in // the top-level array. Each of these log event objects is an array of field/value // pairs. - Results [][]*types.ResultField + Results [][]types.ResultField // Includes the number of log events scanned by the query, the number of log events // that matched the query criteria, and the total number of bytes in the log events diff --git a/service/cloudwatchlogs/api_op_ListTagsLogGroup.go b/service/cloudwatchlogs/api_op_ListTagsLogGroup.go index 832a8d07dae..195b57a335d 100644 --- a/service/cloudwatchlogs/api_op_ListTagsLogGroup.go +++ b/service/cloudwatchlogs/api_op_ListTagsLogGroup.go @@ -37,7 +37,7 @@ type ListTagsLogGroupInput struct { type ListTagsLogGroupOutput struct { // The tags for the log group. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchlogs/api_op_PutLogEvents.go b/service/cloudwatchlogs/api_op_PutLogEvents.go index a10614f6a06..f016da02161 100644 --- a/service/cloudwatchlogs/api_op_PutLogEvents.go +++ b/service/cloudwatchlogs/api_op_PutLogEvents.go @@ -69,7 +69,7 @@ type PutLogEventsInput struct { // The log events. // // This member is required. - LogEvents []*types.InputLogEvent + LogEvents []types.InputLogEvent // The name of the log group. // diff --git a/service/cloudwatchlogs/api_op_PutMetricFilter.go b/service/cloudwatchlogs/api_op_PutMetricFilter.go index 85bb62a0606..de3b265c20a 100644 --- a/service/cloudwatchlogs/api_op_PutMetricFilter.go +++ b/service/cloudwatchlogs/api_op_PutMetricFilter.go @@ -52,7 +52,7 @@ type PutMetricFilterInput struct { // A collection of information that defines how metric data gets emitted. // // This member is required. - MetricTransformations []*types.MetricTransformation + MetricTransformations []types.MetricTransformation } type PutMetricFilterOutput struct { diff --git a/service/cloudwatchlogs/api_op_PutQueryDefinition.go b/service/cloudwatchlogs/api_op_PutQueryDefinition.go index 0139da2f76d..f5888581c7b 100644 --- a/service/cloudwatchlogs/api_op_PutQueryDefinition.go +++ b/service/cloudwatchlogs/api_op_PutQueryDefinition.go @@ -57,7 +57,7 @@ type PutQueryDefinitionInput struct { // Use this parameter to include specific log groups as part of your query // definition. If you are updating a query definition and you omit this parameter, // then the updated definition will contain no log groups. - LogGroupNames []*string + LogGroupNames []string // If you are updating a query definition, use this parameter to specify the ID of // the query definition that you want to update. You can use diff --git a/service/cloudwatchlogs/api_op_StartQuery.go b/service/cloudwatchlogs/api_op_StartQuery.go index b1b40b051e3..9e7dd5b2757 100644 --- a/service/cloudwatchlogs/api_op_StartQuery.go +++ b/service/cloudwatchlogs/api_op_StartQuery.go @@ -67,7 +67,7 @@ type StartQueryInput struct { // The list of log groups to be queried. You can include up to 20 log groups. A // StartQuery operation must include a logGroupNames or a logGroupName parameter, // but not both. - LogGroupNames []*string + LogGroupNames []string } type StartQueryOutput struct { diff --git a/service/cloudwatchlogs/api_op_StopQuery.go b/service/cloudwatchlogs/api_op_StopQuery.go index 5447eaa7b2e..ff6b22832b4 100644 --- a/service/cloudwatchlogs/api_op_StopQuery.go +++ b/service/cloudwatchlogs/api_op_StopQuery.go @@ -39,7 +39,7 @@ type StopQueryInput struct { type StopQueryOutput struct { // This is true if the query was stopped by the StopQuery operation. - Success *bool + Success bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchlogs/api_op_TagLogGroup.go b/service/cloudwatchlogs/api_op_TagLogGroup.go index 94522e65a8b..dbacc1e7d8b 100644 --- a/service/cloudwatchlogs/api_op_TagLogGroup.go +++ b/service/cloudwatchlogs/api_op_TagLogGroup.go @@ -43,7 +43,7 @@ type TagLogGroupInput struct { // The key-value pairs to use for the tags. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagLogGroupOutput struct { diff --git a/service/cloudwatchlogs/api_op_TestMetricFilter.go b/service/cloudwatchlogs/api_op_TestMetricFilter.go index a72f58b19ba..b4a242e1fcc 100644 --- a/service/cloudwatchlogs/api_op_TestMetricFilter.go +++ b/service/cloudwatchlogs/api_op_TestMetricFilter.go @@ -42,13 +42,13 @@ type TestMetricFilterInput struct { // The log event messages to test. // // This member is required. - LogEventMessages []*string + LogEventMessages []string } type TestMetricFilterOutput struct { // The matched events. - Matches []*types.MetricFilterMatchRecord + Matches []types.MetricFilterMatchRecord // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cloudwatchlogs/api_op_UntagLogGroup.go b/service/cloudwatchlogs/api_op_UntagLogGroup.go index 8e406d77bf2..948013ff291 100644 --- a/service/cloudwatchlogs/api_op_UntagLogGroup.go +++ b/service/cloudwatchlogs/api_op_UntagLogGroup.go @@ -40,7 +40,7 @@ type UntagLogGroupInput struct { // The tag keys. The corresponding tags are removed from the log group. // // This member is required. - Tags []*string + Tags []string } type UntagLogGroupOutput struct { diff --git a/service/cloudwatchlogs/deserializers.go b/service/cloudwatchlogs/deserializers.go index b669d2f669c..7eafc61b8a6 100644 --- a/service/cloudwatchlogs/deserializers.go +++ b/service/cloudwatchlogs/deserializers.go @@ -5396,7 +5396,7 @@ func awsAwsjson11_deserializeDocumentDataAlreadyAcceptedException(v **types.Data if !ok { return fmt.Errorf("expected SequenceToken to be of type string, got %T instead", value) } - sv.ExpectedSequenceToken = &jtv + sv.ExpectedSequenceToken = ptr.String(jtv) } case "message": @@ -5405,7 +5405,7 @@ func awsAwsjson11_deserializeDocumentDataAlreadyAcceptedException(v **types.Data if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5445,7 +5445,7 @@ func awsAwsjson11_deserializeDocumentDestination(v **types.Destination, value in if !ok { return fmt.Errorf("expected AccessPolicy to be of type string, got %T instead", value) } - sv.AccessPolicy = &jtv + sv.AccessPolicy = ptr.String(jtv) } case "arn": @@ -5454,7 +5454,7 @@ func awsAwsjson11_deserializeDocumentDestination(v **types.Destination, value in if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationTime": @@ -5467,7 +5467,7 @@ func awsAwsjson11_deserializeDocumentDestination(v **types.Destination, value in if err != nil { return err } - sv.CreationTime = &i64 + sv.CreationTime = ptr.Int64(i64) } case "destinationName": @@ -5476,7 +5476,7 @@ func awsAwsjson11_deserializeDocumentDestination(v **types.Destination, value in if !ok { return fmt.Errorf("expected DestinationName to be of type string, got %T instead", value) } - sv.DestinationName = &jtv + sv.DestinationName = ptr.String(jtv) } case "roleArn": @@ -5485,7 +5485,7 @@ func awsAwsjson11_deserializeDocumentDestination(v **types.Destination, value in if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "targetArn": @@ -5494,7 +5494,7 @@ func awsAwsjson11_deserializeDocumentDestination(v **types.Destination, value in if !ok { return fmt.Errorf("expected TargetArn to be of type string, got %T instead", value) } - sv.TargetArn = &jtv + sv.TargetArn = ptr.String(jtv) } default: @@ -5506,7 +5506,7 @@ func awsAwsjson11_deserializeDocumentDestination(v **types.Destination, value in return nil } -func awsAwsjson11_deserializeDocumentDestinations(v *[]*types.Destination, value interface{}) error { +func awsAwsjson11_deserializeDocumentDestinations(v *[]types.Destination, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5519,18 +5519,20 @@ func awsAwsjson11_deserializeDocumentDestinations(v *[]*types.Destination, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Destination + var cv []types.Destination if *v == nil { - cv = []*types.Destination{} + cv = []types.Destination{} } else { cv = *v } for _, value := range shape { - var col *types.Destination - if err := awsAwsjson11_deserializeDocumentDestination(&col, value); err != nil { + var col types.Destination + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDestination(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5566,7 +5568,7 @@ func awsAwsjson11_deserializeDocumentExportTask(v **types.ExportTask, value inte if !ok { return fmt.Errorf("expected ExportDestinationBucket to be of type string, got %T instead", value) } - sv.Destination = &jtv + sv.Destination = ptr.String(jtv) } case "destinationPrefix": @@ -5575,7 +5577,7 @@ func awsAwsjson11_deserializeDocumentExportTask(v **types.ExportTask, value inte if !ok { return fmt.Errorf("expected ExportDestinationPrefix to be of type string, got %T instead", value) } - sv.DestinationPrefix = &jtv + sv.DestinationPrefix = ptr.String(jtv) } case "executionInfo": @@ -5593,7 +5595,7 @@ func awsAwsjson11_deserializeDocumentExportTask(v **types.ExportTask, value inte if err != nil { return err } - sv.From = &i64 + sv.From = ptr.Int64(i64) } case "logGroupName": @@ -5602,7 +5604,7 @@ func awsAwsjson11_deserializeDocumentExportTask(v **types.ExportTask, value inte if !ok { return fmt.Errorf("expected LogGroupName to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } case "status": @@ -5616,7 +5618,7 @@ func awsAwsjson11_deserializeDocumentExportTask(v **types.ExportTask, value inte if !ok { return fmt.Errorf("expected ExportTaskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } case "taskName": @@ -5625,7 +5627,7 @@ func awsAwsjson11_deserializeDocumentExportTask(v **types.ExportTask, value inte if !ok { return fmt.Errorf("expected ExportTaskName to be of type string, got %T instead", value) } - sv.TaskName = &jtv + sv.TaskName = ptr.String(jtv) } case "to": @@ -5638,7 +5640,7 @@ func awsAwsjson11_deserializeDocumentExportTask(v **types.ExportTask, value inte if err != nil { return err } - sv.To = &i64 + sv.To = ptr.Int64(i64) } default: @@ -5682,7 +5684,7 @@ func awsAwsjson11_deserializeDocumentExportTaskExecutionInfo(v **types.ExportTas if err != nil { return err } - sv.CompletionTime = &i64 + sv.CompletionTime = ptr.Int64(i64) } case "creationTime": @@ -5695,7 +5697,7 @@ func awsAwsjson11_deserializeDocumentExportTaskExecutionInfo(v **types.ExportTas if err != nil { return err } - sv.CreationTime = &i64 + sv.CreationTime = ptr.Int64(i64) } default: @@ -5707,7 +5709,7 @@ func awsAwsjson11_deserializeDocumentExportTaskExecutionInfo(v **types.ExportTas return nil } -func awsAwsjson11_deserializeDocumentExportTasks(v *[]*types.ExportTask, value interface{}) error { +func awsAwsjson11_deserializeDocumentExportTasks(v *[]types.ExportTask, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5720,18 +5722,20 @@ func awsAwsjson11_deserializeDocumentExportTasks(v *[]*types.ExportTask, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExportTask + var cv []types.ExportTask if *v == nil { - cv = []*types.ExportTask{} + cv = []types.ExportTask{} } else { cv = *v } for _, value := range shape { - var col *types.ExportTask - if err := awsAwsjson11_deserializeDocumentExportTask(&col, value); err != nil { + var col types.ExportTask + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExportTask(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5776,7 +5780,7 @@ func awsAwsjson11_deserializeDocumentExportTaskStatus(v **types.ExportTaskStatus if !ok { return fmt.Errorf("expected ExportTaskStatusMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5788,7 +5792,7 @@ func awsAwsjson11_deserializeDocumentExportTaskStatus(v **types.ExportTaskStatus return nil } -func awsAwsjson11_deserializeDocumentExtractedValues(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentExtractedValues(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5801,21 +5805,21 @@ func awsAwsjson11_deserializeDocumentExtractedValues(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -5852,7 +5856,7 @@ func awsAwsjson11_deserializeDocumentFilteredLogEvent(v **types.FilteredLogEvent if !ok { return fmt.Errorf("expected EventId to be of type string, got %T instead", value) } - sv.EventId = &jtv + sv.EventId = ptr.String(jtv) } case "ingestionTime": @@ -5865,7 +5869,7 @@ func awsAwsjson11_deserializeDocumentFilteredLogEvent(v **types.FilteredLogEvent if err != nil { return err } - sv.IngestionTime = &i64 + sv.IngestionTime = ptr.Int64(i64) } case "logStreamName": @@ -5874,7 +5878,7 @@ func awsAwsjson11_deserializeDocumentFilteredLogEvent(v **types.FilteredLogEvent if !ok { return fmt.Errorf("expected LogStreamName to be of type string, got %T instead", value) } - sv.LogStreamName = &jtv + sv.LogStreamName = ptr.String(jtv) } case "message": @@ -5883,7 +5887,7 @@ func awsAwsjson11_deserializeDocumentFilteredLogEvent(v **types.FilteredLogEvent if !ok { return fmt.Errorf("expected EventMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "timestamp": @@ -5896,7 +5900,7 @@ func awsAwsjson11_deserializeDocumentFilteredLogEvent(v **types.FilteredLogEvent if err != nil { return err } - sv.Timestamp = &i64 + sv.Timestamp = ptr.Int64(i64) } default: @@ -5908,7 +5912,7 @@ func awsAwsjson11_deserializeDocumentFilteredLogEvent(v **types.FilteredLogEvent return nil } -func awsAwsjson11_deserializeDocumentFilteredLogEvents(v *[]*types.FilteredLogEvent, value interface{}) error { +func awsAwsjson11_deserializeDocumentFilteredLogEvents(v *[]types.FilteredLogEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5921,18 +5925,20 @@ func awsAwsjson11_deserializeDocumentFilteredLogEvents(v *[]*types.FilteredLogEv return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FilteredLogEvent + var cv []types.FilteredLogEvent if *v == nil { - cv = []*types.FilteredLogEvent{} + cv = []types.FilteredLogEvent{} } else { cv = *v } for _, value := range shape { - var col *types.FilteredLogEvent - if err := awsAwsjson11_deserializeDocumentFilteredLogEvent(&col, value); err != nil { + var col types.FilteredLogEvent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFilteredLogEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5968,7 +5974,7 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6008,7 +6014,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6048,7 +6054,7 @@ func awsAwsjson11_deserializeDocumentInvalidSequenceTokenException(v **types.Inv if !ok { return fmt.Errorf("expected SequenceToken to be of type string, got %T instead", value) } - sv.ExpectedSequenceToken = &jtv + sv.ExpectedSequenceToken = ptr.String(jtv) } case "message": @@ -6057,7 +6063,7 @@ func awsAwsjson11_deserializeDocumentInvalidSequenceTokenException(v **types.Inv if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6097,7 +6103,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6137,7 +6143,7 @@ func awsAwsjson11_deserializeDocumentLogGroup(v **types.LogGroup, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationTime": @@ -6150,7 +6156,7 @@ func awsAwsjson11_deserializeDocumentLogGroup(v **types.LogGroup, value interfac if err != nil { return err } - sv.CreationTime = &i64 + sv.CreationTime = ptr.Int64(i64) } case "kmsKeyId": @@ -6159,7 +6165,7 @@ func awsAwsjson11_deserializeDocumentLogGroup(v **types.LogGroup, value interfac if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "logGroupName": @@ -6168,7 +6174,7 @@ func awsAwsjson11_deserializeDocumentLogGroup(v **types.LogGroup, value interfac if !ok { return fmt.Errorf("expected LogGroupName to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } case "metricFilterCount": @@ -6207,7 +6213,7 @@ func awsAwsjson11_deserializeDocumentLogGroup(v **types.LogGroup, value interfac if err != nil { return err } - sv.StoredBytes = &i64 + sv.StoredBytes = ptr.Int64(i64) } default: @@ -6247,7 +6253,7 @@ func awsAwsjson11_deserializeDocumentLogGroupField(v **types.LogGroupField, valu if !ok { return fmt.Errorf("expected Field to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "percent": @@ -6260,7 +6266,7 @@ func awsAwsjson11_deserializeDocumentLogGroupField(v **types.LogGroupField, valu if err != nil { return err } - sv.Percent = ptr.Int32(int32(i64)) + sv.Percent = int32(i64) } default: @@ -6272,7 +6278,7 @@ func awsAwsjson11_deserializeDocumentLogGroupField(v **types.LogGroupField, valu return nil } -func awsAwsjson11_deserializeDocumentLogGroupFieldList(v *[]*types.LogGroupField, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogGroupFieldList(v *[]types.LogGroupField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6285,18 +6291,20 @@ func awsAwsjson11_deserializeDocumentLogGroupFieldList(v *[]*types.LogGroupField return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LogGroupField + var cv []types.LogGroupField if *v == nil { - cv = []*types.LogGroupField{} + cv = []types.LogGroupField{} } else { cv = *v } for _, value := range shape { - var col *types.LogGroupField - if err := awsAwsjson11_deserializeDocumentLogGroupField(&col, value); err != nil { + var col types.LogGroupField + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLogGroupField(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6304,7 +6312,7 @@ func awsAwsjson11_deserializeDocumentLogGroupFieldList(v *[]*types.LogGroupField return nil } -func awsAwsjson11_deserializeDocumentLogGroupNames(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogGroupNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6317,21 +6325,21 @@ func awsAwsjson11_deserializeDocumentLogGroupNames(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected LogGroupName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6340,7 +6348,7 @@ func awsAwsjson11_deserializeDocumentLogGroupNames(v *[]*string, value interface return nil } -func awsAwsjson11_deserializeDocumentLogGroups(v *[]*types.LogGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogGroups(v *[]types.LogGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6353,18 +6361,20 @@ func awsAwsjson11_deserializeDocumentLogGroups(v *[]*types.LogGroup, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LogGroup + var cv []types.LogGroup if *v == nil { - cv = []*types.LogGroup{} + cv = []types.LogGroup{} } else { cv = *v } for _, value := range shape { - var col *types.LogGroup - if err := awsAwsjson11_deserializeDocumentLogGroup(&col, value); err != nil { + var col types.LogGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLogGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6372,7 +6382,7 @@ func awsAwsjson11_deserializeDocumentLogGroups(v *[]*types.LogGroup, value inter return nil } -func awsAwsjson11_deserializeDocumentLogRecord(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogRecord(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6385,21 +6395,21 @@ func awsAwsjson11_deserializeDocumentLogRecord(v *map[string]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -6436,7 +6446,7 @@ func awsAwsjson11_deserializeDocumentLogStream(v **types.LogStream, value interf if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationTime": @@ -6449,7 +6459,7 @@ func awsAwsjson11_deserializeDocumentLogStream(v **types.LogStream, value interf if err != nil { return err } - sv.CreationTime = &i64 + sv.CreationTime = ptr.Int64(i64) } case "firstEventTimestamp": @@ -6462,7 +6472,7 @@ func awsAwsjson11_deserializeDocumentLogStream(v **types.LogStream, value interf if err != nil { return err } - sv.FirstEventTimestamp = &i64 + sv.FirstEventTimestamp = ptr.Int64(i64) } case "lastEventTimestamp": @@ -6475,7 +6485,7 @@ func awsAwsjson11_deserializeDocumentLogStream(v **types.LogStream, value interf if err != nil { return err } - sv.LastEventTimestamp = &i64 + sv.LastEventTimestamp = ptr.Int64(i64) } case "lastIngestionTime": @@ -6488,7 +6498,7 @@ func awsAwsjson11_deserializeDocumentLogStream(v **types.LogStream, value interf if err != nil { return err } - sv.LastIngestionTime = &i64 + sv.LastIngestionTime = ptr.Int64(i64) } case "logStreamName": @@ -6497,7 +6507,7 @@ func awsAwsjson11_deserializeDocumentLogStream(v **types.LogStream, value interf if !ok { return fmt.Errorf("expected LogStreamName to be of type string, got %T instead", value) } - sv.LogStreamName = &jtv + sv.LogStreamName = ptr.String(jtv) } case "storedBytes": @@ -6510,7 +6520,7 @@ func awsAwsjson11_deserializeDocumentLogStream(v **types.LogStream, value interf if err != nil { return err } - sv.StoredBytes = &i64 + sv.StoredBytes = ptr.Int64(i64) } case "uploadSequenceToken": @@ -6519,7 +6529,7 @@ func awsAwsjson11_deserializeDocumentLogStream(v **types.LogStream, value interf if !ok { return fmt.Errorf("expected SequenceToken to be of type string, got %T instead", value) } - sv.UploadSequenceToken = &jtv + sv.UploadSequenceToken = ptr.String(jtv) } default: @@ -6531,7 +6541,7 @@ func awsAwsjson11_deserializeDocumentLogStream(v **types.LogStream, value interf return nil } -func awsAwsjson11_deserializeDocumentLogStreams(v *[]*types.LogStream, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogStreams(v *[]types.LogStream, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6544,18 +6554,20 @@ func awsAwsjson11_deserializeDocumentLogStreams(v *[]*types.LogStream, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LogStream + var cv []types.LogStream if *v == nil { - cv = []*types.LogStream{} + cv = []types.LogStream{} } else { cv = *v } for _, value := range shape { - var col *types.LogStream - if err := awsAwsjson11_deserializeDocumentLogStream(&col, value); err != nil { + var col types.LogStream + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLogStream(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6591,7 +6603,7 @@ func awsAwsjson11_deserializeDocumentMalformedQueryException(v **types.Malformed if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "queryCompileError": @@ -6640,7 +6652,7 @@ func awsAwsjson11_deserializeDocumentMetricFilter(v **types.MetricFilter, value if err != nil { return err } - sv.CreationTime = &i64 + sv.CreationTime = ptr.Int64(i64) } case "filterName": @@ -6649,7 +6661,7 @@ func awsAwsjson11_deserializeDocumentMetricFilter(v **types.MetricFilter, value if !ok { return fmt.Errorf("expected FilterName to be of type string, got %T instead", value) } - sv.FilterName = &jtv + sv.FilterName = ptr.String(jtv) } case "filterPattern": @@ -6658,7 +6670,7 @@ func awsAwsjson11_deserializeDocumentMetricFilter(v **types.MetricFilter, value if !ok { return fmt.Errorf("expected FilterPattern to be of type string, got %T instead", value) } - sv.FilterPattern = &jtv + sv.FilterPattern = ptr.String(jtv) } case "logGroupName": @@ -6667,7 +6679,7 @@ func awsAwsjson11_deserializeDocumentMetricFilter(v **types.MetricFilter, value if !ok { return fmt.Errorf("expected LogGroupName to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } case "metricTransformations": @@ -6684,7 +6696,7 @@ func awsAwsjson11_deserializeDocumentMetricFilter(v **types.MetricFilter, value return nil } -func awsAwsjson11_deserializeDocumentMetricFilterMatches(v *[]*types.MetricFilterMatchRecord, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricFilterMatches(v *[]types.MetricFilterMatchRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6697,18 +6709,20 @@ func awsAwsjson11_deserializeDocumentMetricFilterMatches(v *[]*types.MetricFilte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MetricFilterMatchRecord + var cv []types.MetricFilterMatchRecord if *v == nil { - cv = []*types.MetricFilterMatchRecord{} + cv = []types.MetricFilterMatchRecord{} } else { cv = *v } for _, value := range shape { - var col *types.MetricFilterMatchRecord - if err := awsAwsjson11_deserializeDocumentMetricFilterMatchRecord(&col, value); err != nil { + var col types.MetricFilterMatchRecord + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMetricFilterMatchRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6744,7 +6758,7 @@ func awsAwsjson11_deserializeDocumentMetricFilterMatchRecord(v **types.MetricFil if !ok { return fmt.Errorf("expected EventMessage to be of type string, got %T instead", value) } - sv.EventMessage = &jtv + sv.EventMessage = ptr.String(jtv) } case "eventNumber": @@ -6757,7 +6771,7 @@ func awsAwsjson11_deserializeDocumentMetricFilterMatchRecord(v **types.MetricFil if err != nil { return err } - sv.EventNumber = &i64 + sv.EventNumber = i64 } case "extractedValues": @@ -6774,7 +6788,7 @@ func awsAwsjson11_deserializeDocumentMetricFilterMatchRecord(v **types.MetricFil return nil } -func awsAwsjson11_deserializeDocumentMetricFilters(v *[]*types.MetricFilter, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricFilters(v *[]types.MetricFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6787,18 +6801,20 @@ func awsAwsjson11_deserializeDocumentMetricFilters(v *[]*types.MetricFilter, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MetricFilter + var cv []types.MetricFilter if *v == nil { - cv = []*types.MetricFilter{} + cv = []types.MetricFilter{} } else { cv = *v } for _, value := range shape { - var col *types.MetricFilter - if err := awsAwsjson11_deserializeDocumentMetricFilter(&col, value); err != nil { + var col types.MetricFilter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMetricFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6838,7 +6854,7 @@ func awsAwsjson11_deserializeDocumentMetricTransformation(v **types.MetricTransf if err != nil { return err } - sv.DefaultValue = &f64 + sv.DefaultValue = ptr.Float64(f64) } case "metricName": @@ -6847,7 +6863,7 @@ func awsAwsjson11_deserializeDocumentMetricTransformation(v **types.MetricTransf if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "metricNamespace": @@ -6856,7 +6872,7 @@ func awsAwsjson11_deserializeDocumentMetricTransformation(v **types.MetricTransf if !ok { return fmt.Errorf("expected MetricNamespace to be of type string, got %T instead", value) } - sv.MetricNamespace = &jtv + sv.MetricNamespace = ptr.String(jtv) } case "metricValue": @@ -6865,7 +6881,7 @@ func awsAwsjson11_deserializeDocumentMetricTransformation(v **types.MetricTransf if !ok { return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) } - sv.MetricValue = &jtv + sv.MetricValue = ptr.String(jtv) } default: @@ -6877,7 +6893,7 @@ func awsAwsjson11_deserializeDocumentMetricTransformation(v **types.MetricTransf return nil } -func awsAwsjson11_deserializeDocumentMetricTransformations(v *[]*types.MetricTransformation, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricTransformations(v *[]types.MetricTransformation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6890,18 +6906,20 @@ func awsAwsjson11_deserializeDocumentMetricTransformations(v *[]*types.MetricTra return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MetricTransformation + var cv []types.MetricTransformation if *v == nil { - cv = []*types.MetricTransformation{} + cv = []types.MetricTransformation{} } else { cv = *v } for _, value := range shape { - var col *types.MetricTransformation - if err := awsAwsjson11_deserializeDocumentMetricTransformation(&col, value); err != nil { + var col types.MetricTransformation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMetricTransformation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6937,7 +6955,7 @@ func awsAwsjson11_deserializeDocumentOperationAbortedException(v **types.Operati if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6981,7 +6999,7 @@ func awsAwsjson11_deserializeDocumentOutputLogEvent(v **types.OutputLogEvent, va if err != nil { return err } - sv.IngestionTime = &i64 + sv.IngestionTime = ptr.Int64(i64) } case "message": @@ -6990,7 +7008,7 @@ func awsAwsjson11_deserializeDocumentOutputLogEvent(v **types.OutputLogEvent, va if !ok { return fmt.Errorf("expected EventMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "timestamp": @@ -7003,7 +7021,7 @@ func awsAwsjson11_deserializeDocumentOutputLogEvent(v **types.OutputLogEvent, va if err != nil { return err } - sv.Timestamp = &i64 + sv.Timestamp = ptr.Int64(i64) } default: @@ -7015,7 +7033,7 @@ func awsAwsjson11_deserializeDocumentOutputLogEvent(v **types.OutputLogEvent, va return nil } -func awsAwsjson11_deserializeDocumentOutputLogEvents(v *[]*types.OutputLogEvent, value interface{}) error { +func awsAwsjson11_deserializeDocumentOutputLogEvents(v *[]types.OutputLogEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7028,18 +7046,20 @@ func awsAwsjson11_deserializeDocumentOutputLogEvents(v *[]*types.OutputLogEvent, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutputLogEvent + var cv []types.OutputLogEvent if *v == nil { - cv = []*types.OutputLogEvent{} + cv = []types.OutputLogEvent{} } else { cv = *v } for _, value := range shape { - var col *types.OutputLogEvent - if err := awsAwsjson11_deserializeDocumentOutputLogEvent(&col, value); err != nil { + var col types.OutputLogEvent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOutputLogEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7080,7 +7100,7 @@ func awsAwsjson11_deserializeDocumentQueryCompileError(v **types.QueryCompileErr if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7181,7 +7201,7 @@ func awsAwsjson11_deserializeDocumentQueryDefinition(v **types.QueryDefinition, if err != nil { return err } - sv.LastModified = &i64 + sv.LastModified = ptr.Int64(i64) } case "logGroupNames": @@ -7195,7 +7215,7 @@ func awsAwsjson11_deserializeDocumentQueryDefinition(v **types.QueryDefinition, if !ok { return fmt.Errorf("expected QueryDefinitionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "queryDefinitionId": @@ -7204,7 +7224,7 @@ func awsAwsjson11_deserializeDocumentQueryDefinition(v **types.QueryDefinition, if !ok { return fmt.Errorf("expected QueryId to be of type string, got %T instead", value) } - sv.QueryDefinitionId = &jtv + sv.QueryDefinitionId = ptr.String(jtv) } case "queryString": @@ -7213,7 +7233,7 @@ func awsAwsjson11_deserializeDocumentQueryDefinition(v **types.QueryDefinition, if !ok { return fmt.Errorf("expected QueryDefinitionString to be of type string, got %T instead", value) } - sv.QueryString = &jtv + sv.QueryString = ptr.String(jtv) } default: @@ -7225,7 +7245,7 @@ func awsAwsjson11_deserializeDocumentQueryDefinition(v **types.QueryDefinition, return nil } -func awsAwsjson11_deserializeDocumentQueryDefinitionList(v *[]*types.QueryDefinition, value interface{}) error { +func awsAwsjson11_deserializeDocumentQueryDefinitionList(v *[]types.QueryDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7238,18 +7258,20 @@ func awsAwsjson11_deserializeDocumentQueryDefinitionList(v *[]*types.QueryDefini return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.QueryDefinition + var cv []types.QueryDefinition if *v == nil { - cv = []*types.QueryDefinition{} + cv = []types.QueryDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.QueryDefinition - if err := awsAwsjson11_deserializeDocumentQueryDefinition(&col, value); err != nil { + var col types.QueryDefinition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentQueryDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7289,7 +7311,7 @@ func awsAwsjson11_deserializeDocumentQueryInfo(v **types.QueryInfo, value interf if err != nil { return err } - sv.CreateTime = &i64 + sv.CreateTime = ptr.Int64(i64) } case "logGroupName": @@ -7298,7 +7320,7 @@ func awsAwsjson11_deserializeDocumentQueryInfo(v **types.QueryInfo, value interf if !ok { return fmt.Errorf("expected LogGroupName to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } case "queryId": @@ -7307,7 +7329,7 @@ func awsAwsjson11_deserializeDocumentQueryInfo(v **types.QueryInfo, value interf if !ok { return fmt.Errorf("expected QueryId to be of type string, got %T instead", value) } - sv.QueryId = &jtv + sv.QueryId = ptr.String(jtv) } case "queryString": @@ -7316,7 +7338,7 @@ func awsAwsjson11_deserializeDocumentQueryInfo(v **types.QueryInfo, value interf if !ok { return fmt.Errorf("expected QueryString to be of type string, got %T instead", value) } - sv.QueryString = &jtv + sv.QueryString = ptr.String(jtv) } case "status": @@ -7337,7 +7359,7 @@ func awsAwsjson11_deserializeDocumentQueryInfo(v **types.QueryInfo, value interf return nil } -func awsAwsjson11_deserializeDocumentQueryInfoList(v *[]*types.QueryInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentQueryInfoList(v *[]types.QueryInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7350,18 +7372,20 @@ func awsAwsjson11_deserializeDocumentQueryInfoList(v *[]*types.QueryInfo, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.QueryInfo + var cv []types.QueryInfo if *v == nil { - cv = []*types.QueryInfo{} + cv = []types.QueryInfo{} } else { cv = *v } for _, value := range shape { - var col *types.QueryInfo - if err := awsAwsjson11_deserializeDocumentQueryInfo(&col, value); err != nil { + var col types.QueryInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentQueryInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7369,7 +7393,7 @@ func awsAwsjson11_deserializeDocumentQueryInfoList(v *[]*types.QueryInfo, value return nil } -func awsAwsjson11_deserializeDocumentQueryResults(v *[][]*types.ResultField, value interface{}) error { +func awsAwsjson11_deserializeDocumentQueryResults(v *[][]types.ResultField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7382,15 +7406,15 @@ func awsAwsjson11_deserializeDocumentQueryResults(v *[][]*types.ResultField, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv [][]*types.ResultField + var cv [][]types.ResultField if *v == nil { - cv = [][]*types.ResultField{} + cv = [][]types.ResultField{} } else { cv = *v } for _, value := range shape { - var col []*types.ResultField + var col []types.ResultField if err := awsAwsjson11_deserializeDocumentResultRows(&col, value); err != nil { return err } @@ -7433,7 +7457,7 @@ func awsAwsjson11_deserializeDocumentQueryStatistics(v **types.QueryStatistics, if err != nil { return err } - sv.BytesScanned = &f64 + sv.BytesScanned = f64 } case "recordsMatched": @@ -7446,7 +7470,7 @@ func awsAwsjson11_deserializeDocumentQueryStatistics(v **types.QueryStatistics, if err != nil { return err } - sv.RecordsMatched = &f64 + sv.RecordsMatched = f64 } case "recordsScanned": @@ -7459,7 +7483,7 @@ func awsAwsjson11_deserializeDocumentQueryStatistics(v **types.QueryStatistics, if err != nil { return err } - sv.RecordsScanned = &f64 + sv.RecordsScanned = f64 } default: @@ -7569,7 +7593,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7609,7 +7633,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7621,7 +7645,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsAwsjson11_deserializeDocumentResourcePolicies(v *[]*types.ResourcePolicy, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourcePolicies(v *[]types.ResourcePolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7634,18 +7658,20 @@ func awsAwsjson11_deserializeDocumentResourcePolicies(v *[]*types.ResourcePolicy return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourcePolicy + var cv []types.ResourcePolicy if *v == nil { - cv = []*types.ResourcePolicy{} + cv = []types.ResourcePolicy{} } else { cv = *v } for _, value := range shape { - var col *types.ResourcePolicy - if err := awsAwsjson11_deserializeDocumentResourcePolicy(&col, value); err != nil { + var col types.ResourcePolicy + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourcePolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7685,7 +7711,7 @@ func awsAwsjson11_deserializeDocumentResourcePolicy(v **types.ResourcePolicy, va if err != nil { return err } - sv.LastUpdatedTime = &i64 + sv.LastUpdatedTime = ptr.Int64(i64) } case "policyDocument": @@ -7694,7 +7720,7 @@ func awsAwsjson11_deserializeDocumentResourcePolicy(v **types.ResourcePolicy, va if !ok { return fmt.Errorf("expected PolicyDocument to be of type string, got %T instead", value) } - sv.PolicyDocument = &jtv + sv.PolicyDocument = ptr.String(jtv) } case "policyName": @@ -7703,7 +7729,7 @@ func awsAwsjson11_deserializeDocumentResourcePolicy(v **types.ResourcePolicy, va if !ok { return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } default: @@ -7743,7 +7769,7 @@ func awsAwsjson11_deserializeDocumentResultField(v **types.ResultField, value in if !ok { return fmt.Errorf("expected Field to be of type string, got %T instead", value) } - sv.Field = &jtv + sv.Field = ptr.String(jtv) } case "value": @@ -7752,7 +7778,7 @@ func awsAwsjson11_deserializeDocumentResultField(v **types.ResultField, value in if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -7764,7 +7790,7 @@ func awsAwsjson11_deserializeDocumentResultField(v **types.ResultField, value in return nil } -func awsAwsjson11_deserializeDocumentResultRows(v *[]*types.ResultField, value interface{}) error { +func awsAwsjson11_deserializeDocumentResultRows(v *[]types.ResultField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7777,18 +7803,20 @@ func awsAwsjson11_deserializeDocumentResultRows(v *[]*types.ResultField, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResultField + var cv []types.ResultField if *v == nil { - cv = []*types.ResultField{} + cv = []types.ResultField{} } else { cv = *v } for _, value := range shape { - var col *types.ResultField - if err := awsAwsjson11_deserializeDocumentResultField(&col, value); err != nil { + var col types.ResultField + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResultField(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7824,7 +7852,7 @@ func awsAwsjson11_deserializeDocumentSearchedLogStream(v **types.SearchedLogStre if !ok { return fmt.Errorf("expected LogStreamName to be of type string, got %T instead", value) } - sv.LogStreamName = &jtv + sv.LogStreamName = ptr.String(jtv) } case "searchedCompletely": @@ -7833,7 +7861,7 @@ func awsAwsjson11_deserializeDocumentSearchedLogStream(v **types.SearchedLogStre if !ok { return fmt.Errorf("expected LogStreamSearchedCompletely to be of type *bool, got %T instead", value) } - sv.SearchedCompletely = &jtv + sv.SearchedCompletely = ptr.Bool(jtv) } default: @@ -7845,7 +7873,7 @@ func awsAwsjson11_deserializeDocumentSearchedLogStream(v **types.SearchedLogStre return nil } -func awsAwsjson11_deserializeDocumentSearchedLogStreams(v *[]*types.SearchedLogStream, value interface{}) error { +func awsAwsjson11_deserializeDocumentSearchedLogStreams(v *[]types.SearchedLogStream, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7858,18 +7886,20 @@ func awsAwsjson11_deserializeDocumentSearchedLogStreams(v *[]*types.SearchedLogS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SearchedLogStream + var cv []types.SearchedLogStream if *v == nil { - cv = []*types.SearchedLogStream{} + cv = []types.SearchedLogStream{} } else { cv = *v } for _, value := range shape { - var col *types.SearchedLogStream - if err := awsAwsjson11_deserializeDocumentSearchedLogStream(&col, value); err != nil { + var col types.SearchedLogStream + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSearchedLogStream(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7905,7 +7935,7 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7949,7 +7979,7 @@ func awsAwsjson11_deserializeDocumentSubscriptionFilter(v **types.SubscriptionFi if err != nil { return err } - sv.CreationTime = &i64 + sv.CreationTime = ptr.Int64(i64) } case "destinationArn": @@ -7958,7 +7988,7 @@ func awsAwsjson11_deserializeDocumentSubscriptionFilter(v **types.SubscriptionFi if !ok { return fmt.Errorf("expected DestinationArn to be of type string, got %T instead", value) } - sv.DestinationArn = &jtv + sv.DestinationArn = ptr.String(jtv) } case "distribution": @@ -7976,7 +8006,7 @@ func awsAwsjson11_deserializeDocumentSubscriptionFilter(v **types.SubscriptionFi if !ok { return fmt.Errorf("expected FilterName to be of type string, got %T instead", value) } - sv.FilterName = &jtv + sv.FilterName = ptr.String(jtv) } case "filterPattern": @@ -7985,7 +8015,7 @@ func awsAwsjson11_deserializeDocumentSubscriptionFilter(v **types.SubscriptionFi if !ok { return fmt.Errorf("expected FilterPattern to be of type string, got %T instead", value) } - sv.FilterPattern = &jtv + sv.FilterPattern = ptr.String(jtv) } case "logGroupName": @@ -7994,7 +8024,7 @@ func awsAwsjson11_deserializeDocumentSubscriptionFilter(v **types.SubscriptionFi if !ok { return fmt.Errorf("expected LogGroupName to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } case "roleArn": @@ -8003,7 +8033,7 @@ func awsAwsjson11_deserializeDocumentSubscriptionFilter(v **types.SubscriptionFi if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -8015,7 +8045,7 @@ func awsAwsjson11_deserializeDocumentSubscriptionFilter(v **types.SubscriptionFi return nil } -func awsAwsjson11_deserializeDocumentSubscriptionFilters(v *[]*types.SubscriptionFilter, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubscriptionFilters(v *[]types.SubscriptionFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8028,18 +8058,20 @@ func awsAwsjson11_deserializeDocumentSubscriptionFilters(v *[]*types.Subscriptio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SubscriptionFilter + var cv []types.SubscriptionFilter if *v == nil { - cv = []*types.SubscriptionFilter{} + cv = []types.SubscriptionFilter{} } else { cv = *v } for _, value := range shape { - var col *types.SubscriptionFilter - if err := awsAwsjson11_deserializeDocumentSubscriptionFilter(&col, value); err != nil { + var col types.SubscriptionFilter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubscriptionFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8047,7 +8079,7 @@ func awsAwsjson11_deserializeDocumentSubscriptionFilters(v *[]*types.Subscriptio return nil } -func awsAwsjson11_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8060,21 +8092,21 @@ func awsAwsjson11_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -8111,7 +8143,7 @@ func awsAwsjson11_deserializeDocumentUnrecognizedClientException(v **types.Unrec if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8213,7 +8245,7 @@ func awsAwsjson11_deserializeOpDocumentCreateExportTaskOutput(v **CreateExportTa if !ok { return fmt.Errorf("expected ExportTaskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } default: @@ -8439,7 +8471,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteQueryDefinitionOutput(v **DeleteQue if !ok { return fmt.Errorf("expected Success to be of type *bool, got %T instead", value) } - sv.Success = &jtv + sv.Success = jtv } default: @@ -8577,7 +8609,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDestinationsOutput(v **DescribeDe if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8622,7 +8654,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeExportTasksOutput(v **DescribeExp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8667,7 +8699,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLogGroupsOutput(v **DescribeLogGr if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8712,7 +8744,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLogStreamsOutput(v **DescribeLogS if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8757,7 +8789,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMetricFiltersOutput(v **DescribeM if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8797,7 +8829,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeQueriesOutput(v **DescribeQueries if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "queries": @@ -8842,7 +8874,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeQueryDefinitionsOutput(v **Descri if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "queryDefinitions": @@ -8887,7 +8919,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeResourcePoliciesOutput(v **Descri if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "resourcePolicies": @@ -8932,7 +8964,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSubscriptionFiltersOutput(v **Des if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "subscriptionFilters": @@ -9013,7 +9045,7 @@ func awsAwsjson11_deserializeOpDocumentFilterLogEventsOutput(v **FilterLogEvents if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "searchedLogStreams": @@ -9063,7 +9095,7 @@ func awsAwsjson11_deserializeOpDocumentGetLogEventsOutput(v **GetLogEventsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextBackwardToken = &jtv + sv.NextBackwardToken = ptr.String(jtv) } case "nextForwardToken": @@ -9072,7 +9104,7 @@ func awsAwsjson11_deserializeOpDocumentGetLogEventsOutput(v **GetLogEventsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextForwardToken = &jtv + sv.NextForwardToken = ptr.String(jtv) } default: @@ -9337,7 +9369,7 @@ func awsAwsjson11_deserializeOpDocumentPutLogEventsOutput(v **PutLogEventsOutput if !ok { return fmt.Errorf("expected SequenceToken to be of type string, got %T instead", value) } - sv.NextSequenceToken = &jtv + sv.NextSequenceToken = ptr.String(jtv) } case "rejectedLogEventsInfo": @@ -9413,7 +9445,7 @@ func awsAwsjson11_deserializeOpDocumentPutQueryDefinitionOutput(v **PutQueryDefi if !ok { return fmt.Errorf("expected QueryId to be of type string, got %T instead", value) } - sv.QueryDefinitionId = &jtv + sv.QueryDefinitionId = ptr.String(jtv) } default: @@ -9551,7 +9583,7 @@ func awsAwsjson11_deserializeOpDocumentStartQueryOutput(v **StartQueryOutput, va if !ok { return fmt.Errorf("expected QueryId to be of type string, got %T instead", value) } - sv.QueryId = &jtv + sv.QueryId = ptr.String(jtv) } default: @@ -9591,7 +9623,7 @@ func awsAwsjson11_deserializeOpDocumentStopQueryOutput(v **StopQueryOutput, valu if !ok { return fmt.Errorf("expected Success to be of type *bool, got %T instead", value) } - sv.Success = &jtv + sv.Success = jtv } default: diff --git a/service/cloudwatchlogs/go.mod b/service/cloudwatchlogs/go.mod index 567f64b1a00..e43267923cc 100644 --- a/service/cloudwatchlogs/go.mod +++ b/service/cloudwatchlogs/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cloudwatchlogs/serializers.go b/service/cloudwatchlogs/serializers.go index c7b04d22538..71bb18117aa 100644 --- a/service/cloudwatchlogs/serializers.go +++ b/service/cloudwatchlogs/serializers.go @@ -1962,49 +1962,37 @@ func awsAwsjson11_serializeDocumentInputLogEvent(v *types.InputLogEvent, value s return nil } -func awsAwsjson11_serializeDocumentInputLogEvents(v []*types.InputLogEvent, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInputLogEvents(v []types.InputLogEvent, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInputLogEvent(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInputLogEvent(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentInputLogStreamNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInputLogStreamNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentLogGroupNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLogGroupNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2036,64 +2024,48 @@ func awsAwsjson11_serializeDocumentMetricTransformation(v *types.MetricTransform return nil } -func awsAwsjson11_serializeDocumentMetricTransformations(v []*types.MetricTransformation, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMetricTransformations(v []types.MetricTransformation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMetricTransformation(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMetricTransformation(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentTestEventMessages(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTestEventMessages(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/cloudwatchlogs/types/types.go b/service/cloudwatchlogs/types/types.go index 25302667612..99a4143bdde 100644 --- a/service/cloudwatchlogs/types/types.go +++ b/service/cloudwatchlogs/types/types.go @@ -157,7 +157,7 @@ type LogGroupField struct { Name *string // The percentage of log events queried that contained the field. - Percent *int32 + Percent int32 } // Represents a log stream, which is a sequence of log events from a single emitter @@ -220,7 +220,7 @@ type MetricFilter struct { LogGroupName *string // The metric transformations. - MetricTransformations []*MetricTransformation + MetricTransformations []MetricTransformation } // Represents a matched event. @@ -230,10 +230,10 @@ type MetricFilterMatchRecord struct { EventMessage *string // The event number. - EventNumber *int64 + EventNumber int64 // The values extracted from the event data by the filter. - ExtractedValues map[string]*string + ExtractedValues map[string]string } // Indicates how to transform ingested log events to metric data in a CloudWatch @@ -307,7 +307,7 @@ type QueryDefinition struct { // If this query definition contains a list of log groups that it is limited to, // that list appears here. - LogGroupNames []*string + LogGroupNames []string // The name of the query definition. Name *string @@ -348,13 +348,13 @@ type QueryInfo struct { type QueryStatistics struct { // The total number of bytes in the log events scanned during the query. - BytesScanned *float64 + BytesScanned float64 // The number of log events that matched the query string. - RecordsMatched *float64 + RecordsMatched float64 // The total number of log events scanned during the query. - RecordsScanned *float64 + RecordsScanned float64 } // Represents the rejected events. diff --git a/service/cloudwatchlogs/validators.go b/service/cloudwatchlogs/validators.go index 0a5286df8e8..1f99b11ac18 100644 --- a/service/cloudwatchlogs/validators.go +++ b/service/cloudwatchlogs/validators.go @@ -820,13 +820,13 @@ func validateInputLogEvent(v *types.InputLogEvent) error { } } -func validateInputLogEvents(v []*types.InputLogEvent) error { +func validateInputLogEvents(v []types.InputLogEvent) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InputLogEvents"} for i := range v { - if err := validateInputLogEvent(v[i]); err != nil { + if err := validateInputLogEvent(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -858,13 +858,13 @@ func validateMetricTransformation(v *types.MetricTransformation) error { } } -func validateMetricTransformations(v []*types.MetricTransformation) error { +func validateMetricTransformations(v []types.MetricTransformation) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MetricTransformations"} for i := range v { - if err := validateMetricTransformation(v[i]); err != nil { + if err := validateMetricTransformation(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/codeartifact/api_op_CopyPackageVersions.go b/service/codeartifact/api_op_CopyPackageVersions.go index d7de2aadd9f..0a7392f3b04 100644 --- a/service/codeartifact/api_op_CopyPackageVersions.go +++ b/service/codeartifact/api_op_CopyPackageVersions.go @@ -98,11 +98,11 @@ type CopyPackageVersionsInput struct { // specified versions in the source repository match the specified package version // revision. You must specify versions or versionRevisions. You cannot specify // both. - VersionRevisions map[string]*string + VersionRevisions map[string]string // The versions of the package to copy. You must specify versions or // versionRevisions. You cannot specify both. - Versions []*string + Versions []string } type CopyPackageVersionsOutput struct { @@ -123,10 +123,10 @@ type CopyPackageVersionsOutput struct { // NOT_FOUND // // * SKIPPED - FailedVersions map[string]*types.PackageVersionError + FailedVersions map[string]types.PackageVersionError // A list of the package versions that were successfully copied to your repository. - SuccessfulVersions map[string]*types.SuccessfulPackageVersionInfo + SuccessfulVersions map[string]types.SuccessfulPackageVersionInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codeartifact/api_op_CreateDomain.go b/service/codeartifact/api_op_CreateDomain.go index 8f543d8fdc2..e8afe367909 100644 --- a/service/codeartifact/api_op_CreateDomain.go +++ b/service/codeartifact/api_op_CreateDomain.go @@ -61,7 +61,7 @@ type CreateDomainInput struct { EncryptionKey *string // One or more tag key-value pairs for the domain. - Tags []*types.Tag + Tags []types.Tag } type CreateDomainOutput struct { diff --git a/service/codeartifact/api_op_CreateRepository.go b/service/codeartifact/api_op_CreateRepository.go index d666b55d374..420fbd3b3cc 100644 --- a/service/codeartifact/api_op_CreateRepository.go +++ b/service/codeartifact/api_op_CreateRepository.go @@ -47,14 +47,14 @@ type CreateRepositoryInput struct { DomainOwner *string // One or more tag key-value pairs for the repository. - Tags []*types.Tag + Tags []types.Tag // A list of upstream repositories to associate with the repository. The order of // the upstream repositories in the list determines their priority order when AWS // CodeArtifact looks for a requested package version. For more information, see // Working with upstream repositories // (https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html). - Upstreams []*types.UpstreamRepository + Upstreams []types.UpstreamRepository } type CreateRepositoryOutput struct { diff --git a/service/codeartifact/api_op_DeletePackageVersions.go b/service/codeartifact/api_op_DeletePackageVersions.go index ad2c76099f7..56c7fdbfa65 100644 --- a/service/codeartifact/api_op_DeletePackageVersions.go +++ b/service/codeartifact/api_op_DeletePackageVersions.go @@ -66,7 +66,7 @@ type DeletePackageVersionsInput struct { // An array of strings that specify the versions of the package to delete. // // This member is required. - Versions []*string + Versions []string // The 12-digit account number of the AWS account that owns the domain. It does not // include dashes or spaces. @@ -117,10 +117,10 @@ type DeletePackageVersionsOutput struct { // * NOT_FOUND // // * SKIPPED - FailedVersions map[string]*types.PackageVersionError + FailedVersions map[string]types.PackageVersionError // A list of the package versions that were successfully deleted. - SuccessfulVersions map[string]*types.SuccessfulPackageVersionInfo + SuccessfulVersions map[string]types.SuccessfulPackageVersionInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codeartifact/api_op_DisposePackageVersions.go b/service/codeartifact/api_op_DisposePackageVersions.go index f69010cdf77..7ff87027eb9 100644 --- a/service/codeartifact/api_op_DisposePackageVersions.go +++ b/service/codeartifact/api_op_DisposePackageVersions.go @@ -69,7 +69,7 @@ type DisposePackageVersionsInput struct { // The versions of the package you want to dispose. // // This member is required. - Versions []*string + Versions []string // The 12-digit account number of the AWS account that owns the domain. It does not // include dashes or spaces. @@ -103,7 +103,7 @@ type DisposePackageVersionsInput struct { Namespace *string // The revisions of the package versions you want to dispose. - VersionRevisions map[string]*string + VersionRevisions map[string]string } type DisposePackageVersionsOutput struct { @@ -124,10 +124,10 @@ type DisposePackageVersionsOutput struct { // NOT_FOUND // // * SKIPPED - FailedVersions map[string]*types.PackageVersionError + FailedVersions map[string]types.PackageVersionError // A list of the package versions that were successfully disposed. - SuccessfulVersions map[string]*types.SuccessfulPackageVersionInfo + SuccessfulVersions map[string]types.SuccessfulPackageVersionInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codeartifact/api_op_ListDomains.go b/service/codeartifact/api_op_ListDomains.go index f44339c9da9..e602cb0193f 100644 --- a/service/codeartifact/api_op_ListDomains.go +++ b/service/codeartifact/api_op_ListDomains.go @@ -45,7 +45,7 @@ type ListDomainsOutput struct { // The returned list of DomainSummary // (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DomainSummary.html) // objects. - Domains []*types.DomainSummary + Domains []types.DomainSummary // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. diff --git a/service/codeartifact/api_op_ListPackageVersionAssets.go b/service/codeartifact/api_op_ListPackageVersionAssets.go index 6876d62486a..5e9f5d1ef0c 100644 --- a/service/codeartifact/api_op_ListPackageVersionAssets.go +++ b/service/codeartifact/api_op_ListPackageVersionAssets.go @@ -97,7 +97,7 @@ type ListPackageVersionAssetsOutput struct { // The returned list of AssetSummary // (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html) // objects. - Assets []*types.AssetSummary + Assets []types.AssetSummary // The format of the package that contains the returned package version assets. Format types.PackageFormat diff --git a/service/codeartifact/api_op_ListPackageVersionDependencies.go b/service/codeartifact/api_op_ListPackageVersionDependencies.go index ff4ff2874ad..18bee8c0426 100644 --- a/service/codeartifact/api_op_ListPackageVersionDependencies.go +++ b/service/codeartifact/api_op_ListPackageVersionDependencies.go @@ -97,7 +97,7 @@ type ListPackageVersionDependenciesOutput struct { // The returned list of PackageDependency // (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDependency.html) // objects. - Dependencies []*types.PackageDependency + Dependencies []types.PackageDependency // A format that specifies the type of the package that contains the returned // dependencies. The valid values are: diff --git a/service/codeartifact/api_op_ListPackageVersions.go b/service/codeartifact/api_op_ListPackageVersions.go index 3ef32085749..bc2343c6655 100644 --- a/service/codeartifact/api_op_ListPackageVersions.go +++ b/service/codeartifact/api_op_ListPackageVersions.go @@ -148,7 +148,7 @@ type ListPackageVersionsOutput struct { // The returned list of PackageVersionSummary // (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html) // objects. - Versions []*types.PackageVersionSummary + Versions []types.PackageVersionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codeartifact/api_op_ListPackages.go b/service/codeartifact/api_op_ListPackages.go index 518f71c2acf..ac0996c8679 100644 --- a/service/codeartifact/api_op_ListPackages.go +++ b/service/codeartifact/api_op_ListPackages.go @@ -91,7 +91,7 @@ type ListPackagesOutput struct { // The list of returned PackageSummary // (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageSummary.html) // objects. - Packages []*types.PackageSummary + Packages []types.PackageSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codeartifact/api_op_ListRepositories.go b/service/codeartifact/api_op_ListRepositories.go index 45c836438aa..449020759dc 100644 --- a/service/codeartifact/api_op_ListRepositories.go +++ b/service/codeartifact/api_op_ListRepositories.go @@ -52,7 +52,7 @@ type ListRepositoriesOutput struct { // The returned list of RepositorySummary // (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_RepositorySummary.html) // objects. - Repositories []*types.RepositorySummary + Repositories []types.RepositorySummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codeartifact/api_op_ListRepositoriesInDomain.go b/service/codeartifact/api_op_ListRepositoriesInDomain.go index bdb8e91342b..198a1a6a9dc 100644 --- a/service/codeartifact/api_op_ListRepositoriesInDomain.go +++ b/service/codeartifact/api_op_ListRepositoriesInDomain.go @@ -63,7 +63,7 @@ type ListRepositoriesInDomainOutput struct { NextToken *string // The returned list of repositories. - Repositories []*types.RepositorySummary + Repositories []types.RepositorySummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codeartifact/api_op_ListTagsForResource.go b/service/codeartifact/api_op_ListTagsForResource.go index 75946b5d0d8..7681fa38d6e 100644 --- a/service/codeartifact/api_op_ListTagsForResource.go +++ b/service/codeartifact/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // A list of tag key and value pairs associated with the specified resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codeartifact/api_op_TagResource.go b/service/codeartifact/api_op_TagResource.go index 062a2257fa5..864c81b0c78 100644 --- a/service/codeartifact/api_op_TagResource.go +++ b/service/codeartifact/api_op_TagResource.go @@ -38,7 +38,7 @@ type TagResourceInput struct { // The tags you want to modify or add to the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/codeartifact/api_op_UntagResource.go b/service/codeartifact/api_op_UntagResource.go index 880eedabbc9..75511984b6e 100644 --- a/service/codeartifact/api_op_UntagResource.go +++ b/service/codeartifact/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The tag key for each tag that you want to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/codeartifact/api_op_UpdatePackageVersionsStatus.go b/service/codeartifact/api_op_UpdatePackageVersionsStatus.go index c5eef5135fa..4695969d80d 100644 --- a/service/codeartifact/api_op_UpdatePackageVersionsStatus.go +++ b/service/codeartifact/api_op_UpdatePackageVersionsStatus.go @@ -67,7 +67,7 @@ type UpdatePackageVersionsStatusInput struct { // to update. // // This member is required. - Versions []*string + Versions []string // The 12-digit account number of the AWS account that owns the domain. It does not // include dashes or spaces. @@ -94,18 +94,18 @@ type UpdatePackageVersionsStatusInput struct { // A map of package versions and package version revisions. The map key is the // package version (for example, 3.5.2), and the map value is the package version // revision. - VersionRevisions map[string]*string + VersionRevisions map[string]string } type UpdatePackageVersionsStatusOutput struct { // A list of SuccessfulPackageVersionInfo objects, one for each package version // with a status that successfully updated. - FailedVersions map[string]*types.PackageVersionError + FailedVersions map[string]types.PackageVersionError // A list of PackageVersionError objects, one for each package version with a // status that failed to update. - SuccessfulVersions map[string]*types.SuccessfulPackageVersionInfo + SuccessfulVersions map[string]types.SuccessfulPackageVersionInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codeartifact/api_op_UpdateRepository.go b/service/codeartifact/api_op_UpdateRepository.go index fd4e232613c..5a14fa74fe4 100644 --- a/service/codeartifact/api_op_UpdateRepository.go +++ b/service/codeartifact/api_op_UpdateRepository.go @@ -51,7 +51,7 @@ type UpdateRepositoryInput struct { // CodeArtifact looks for a requested package version. For more information, see // Working with upstream repositories // (https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html). - Upstreams []*types.UpstreamRepository + Upstreams []types.UpstreamRepository } type UpdateRepositoryOutput struct { diff --git a/service/codeartifact/deserializers.go b/service/codeartifact/deserializers.go index 6407495fe5b..5437d635adc 100644 --- a/service/codeartifact/deserializers.go +++ b/service/codeartifact/deserializers.go @@ -2460,7 +2460,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizationTokenOutput(v **GetAuthor if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthorizationToken = &jtv + sv.AuthorizationToken = ptr.String(jtv) } case "expiration": @@ -2943,7 +2943,7 @@ func awsRestjson1_deserializeOpDocumentGetPackageVersionReadmeOutput(v **GetPack if !ok { return fmt.Errorf("expected PackageNamespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "package": @@ -2952,7 +2952,7 @@ func awsRestjson1_deserializeOpDocumentGetPackageVersionReadmeOutput(v **GetPack if !ok { return fmt.Errorf("expected PackageName to be of type string, got %T instead", value) } - sv.Package = &jtv + sv.Package = ptr.String(jtv) } case "readme": @@ -2961,7 +2961,7 @@ func awsRestjson1_deserializeOpDocumentGetPackageVersionReadmeOutput(v **GetPack if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Readme = &jtv + sv.Readme = ptr.String(jtv) } case "version": @@ -2970,7 +2970,7 @@ func awsRestjson1_deserializeOpDocumentGetPackageVersionReadmeOutput(v **GetPack if !ok { return fmt.Errorf("expected PackageVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "versionRevision": @@ -2979,7 +2979,7 @@ func awsRestjson1_deserializeOpDocumentGetPackageVersionReadmeOutput(v **GetPack if !ok { return fmt.Errorf("expected PackageVersionRevision to be of type string, got %T instead", value) } - sv.VersionRevision = &jtv + sv.VersionRevision = ptr.String(jtv) } default: @@ -3142,7 +3142,7 @@ func awsRestjson1_deserializeOpDocumentGetRepositoryEndpointOutput(v **GetReposi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RepositoryEndpoint = &jtv + sv.RepositoryEndpoint = ptr.String(jtv) } default: @@ -3466,7 +3466,7 @@ func awsRestjson1_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3629,7 +3629,7 @@ func awsRestjson1_deserializeOpDocumentListPackagesOutput(v **ListPackagesOutput if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "packages": @@ -3811,7 +3811,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionAssetsOutput(v **ListPa if !ok { return fmt.Errorf("expected PackageNamespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "nextToken": @@ -3820,7 +3820,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionAssetsOutput(v **ListPa if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "package": @@ -3829,7 +3829,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionAssetsOutput(v **ListPa if !ok { return fmt.Errorf("expected PackageName to be of type string, got %T instead", value) } - sv.Package = &jtv + sv.Package = ptr.String(jtv) } case "version": @@ -3838,7 +3838,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionAssetsOutput(v **ListPa if !ok { return fmt.Errorf("expected PackageVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "versionRevision": @@ -3847,7 +3847,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionAssetsOutput(v **ListPa if !ok { return fmt.Errorf("expected PackageVersionRevision to be of type string, got %T instead", value) } - sv.VersionRevision = &jtv + sv.VersionRevision = ptr.String(jtv) } default: @@ -4024,7 +4024,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionDependenciesOutput(v ** if !ok { return fmt.Errorf("expected PackageNamespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "nextToken": @@ -4033,7 +4033,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionDependenciesOutput(v ** if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "package": @@ -4042,7 +4042,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionDependenciesOutput(v ** if !ok { return fmt.Errorf("expected PackageName to be of type string, got %T instead", value) } - sv.Package = &jtv + sv.Package = ptr.String(jtv) } case "version": @@ -4051,7 +4051,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionDependenciesOutput(v ** if !ok { return fmt.Errorf("expected PackageVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "versionRevision": @@ -4060,7 +4060,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionDependenciesOutput(v ** if !ok { return fmt.Errorf("expected PackageVersionRevision to be of type string, got %T instead", value) } - sv.VersionRevision = &jtv + sv.VersionRevision = ptr.String(jtv) } default: @@ -4223,7 +4223,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionsOutput(v **ListPackage if !ok { return fmt.Errorf("expected PackageVersion to be of type string, got %T instead", value) } - sv.DefaultDisplayVersion = &jtv + sv.DefaultDisplayVersion = ptr.String(jtv) } case "format": @@ -4241,7 +4241,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionsOutput(v **ListPackage if !ok { return fmt.Errorf("expected PackageNamespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "nextToken": @@ -4250,7 +4250,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionsOutput(v **ListPackage if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "package": @@ -4259,7 +4259,7 @@ func awsRestjson1_deserializeOpDocumentListPackageVersionsOutput(v **ListPackage if !ok { return fmt.Errorf("expected PackageName to be of type string, got %T instead", value) } - sv.Package = &jtv + sv.Package = ptr.String(jtv) } case "versions": @@ -4424,7 +4424,7 @@ func awsRestjson1_deserializeOpDocumentListRepositoriesOutput(v **ListRepositori if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "repositories": @@ -4592,7 +4592,7 @@ func awsRestjson1_deserializeOpDocumentListRepositoriesInDomainOutput(v **ListRe if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "repositories": @@ -5914,7 +5914,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5926,7 +5926,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } -func awsRestjson1_deserializeDocumentAssetHashes(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAssetHashes(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5939,21 +5939,21 @@ func awsRestjson1_deserializeDocumentAssetHashes(v *map[string]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HashValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -5995,7 +5995,7 @@ func awsRestjson1_deserializeDocumentAssetSummary(v **types.AssetSummary, value if !ok { return fmt.Errorf("expected AssetName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "size": @@ -6008,7 +6008,7 @@ func awsRestjson1_deserializeDocumentAssetSummary(v **types.AssetSummary, value if err != nil { return err } - sv.Size = &i64 + sv.Size = ptr.Int64(i64) } default: @@ -6020,7 +6020,7 @@ func awsRestjson1_deserializeDocumentAssetSummary(v **types.AssetSummary, value return nil } -func awsRestjson1_deserializeDocumentAssetSummaryList(v *[]*types.AssetSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentAssetSummaryList(v *[]types.AssetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6033,18 +6033,20 @@ func awsRestjson1_deserializeDocumentAssetSummaryList(v *[]*types.AssetSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetSummary + var cv []types.AssetSummary if *v == nil { - cv = []*types.AssetSummary{} + cv = []types.AssetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.AssetSummary - if err := awsRestjson1_deserializeDocumentAssetSummary(&col, value); err != nil { + var col types.AssetSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6080,7 +6082,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceId": @@ -6089,7 +6091,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "resourceType": @@ -6138,7 +6140,7 @@ func awsRestjson1_deserializeDocumentDomainDescription(v **types.DomainDescripti if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "assetSizeBytes": @@ -6151,7 +6153,7 @@ func awsRestjson1_deserializeDocumentDomainDescription(v **types.DomainDescripti if err != nil { return err } - sv.AssetSizeBytes = &i64 + sv.AssetSizeBytes = i64 } case "createdTime": @@ -6173,7 +6175,7 @@ func awsRestjson1_deserializeDocumentDomainDescription(v **types.DomainDescripti if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.EncryptionKey = &jtv + sv.EncryptionKey = ptr.String(jtv) } case "name": @@ -6182,7 +6184,7 @@ func awsRestjson1_deserializeDocumentDomainDescription(v **types.DomainDescripti if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "owner": @@ -6191,7 +6193,7 @@ func awsRestjson1_deserializeDocumentDomainDescription(v **types.DomainDescripti if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "repositoryCount": @@ -6204,7 +6206,7 @@ func awsRestjson1_deserializeDocumentDomainDescription(v **types.DomainDescripti if err != nil { return err } - sv.RepositoryCount = ptr.Int32(int32(i64)) + sv.RepositoryCount = int32(i64) } case "s3BucketArn": @@ -6213,7 +6215,7 @@ func awsRestjson1_deserializeDocumentDomainDescription(v **types.DomainDescripti if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.S3BucketArn = &jtv + sv.S3BucketArn = ptr.String(jtv) } case "status": @@ -6262,7 +6264,7 @@ func awsRestjson1_deserializeDocumentDomainSummary(v **types.DomainSummary, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdTime": @@ -6284,7 +6286,7 @@ func awsRestjson1_deserializeDocumentDomainSummary(v **types.DomainSummary, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.EncryptionKey = &jtv + sv.EncryptionKey = ptr.String(jtv) } case "name": @@ -6293,7 +6295,7 @@ func awsRestjson1_deserializeDocumentDomainSummary(v **types.DomainSummary, valu if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "owner": @@ -6302,7 +6304,7 @@ func awsRestjson1_deserializeDocumentDomainSummary(v **types.DomainSummary, valu if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "status": @@ -6323,7 +6325,7 @@ func awsRestjson1_deserializeDocumentDomainSummary(v **types.DomainSummary, valu return nil } -func awsRestjson1_deserializeDocumentDomainSummaryList(v *[]*types.DomainSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainSummaryList(v *[]types.DomainSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6336,18 +6338,20 @@ func awsRestjson1_deserializeDocumentDomainSummaryList(v *[]*types.DomainSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainSummary + var cv []types.DomainSummary if *v == nil { - cv = []*types.DomainSummary{} + cv = []types.DomainSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DomainSummary - if err := awsRestjson1_deserializeDocumentDomainSummary(&col, value); err != nil { + var col types.DomainSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6383,7 +6387,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6423,7 +6427,7 @@ func awsRestjson1_deserializeDocumentLicenseInfo(v **types.LicenseInfo, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "url": @@ -6432,7 +6436,7 @@ func awsRestjson1_deserializeDocumentLicenseInfo(v **types.LicenseInfo, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -6444,7 +6448,7 @@ func awsRestjson1_deserializeDocumentLicenseInfo(v **types.LicenseInfo, value in return nil } -func awsRestjson1_deserializeDocumentLicenseInfoList(v *[]*types.LicenseInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentLicenseInfoList(v *[]types.LicenseInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6457,18 +6461,20 @@ func awsRestjson1_deserializeDocumentLicenseInfoList(v *[]*types.LicenseInfo, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LicenseInfo + var cv []types.LicenseInfo if *v == nil { - cv = []*types.LicenseInfo{} + cv = []types.LicenseInfo{} } else { cv = *v } for _, value := range shape { - var col *types.LicenseInfo - if err := awsRestjson1_deserializeDocumentLicenseInfo(&col, value); err != nil { + var col types.LicenseInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentLicenseInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6504,7 +6510,7 @@ func awsRestjson1_deserializeDocumentPackageDependency(v **types.PackageDependen if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DependencyType = &jtv + sv.DependencyType = ptr.String(jtv) } case "namespace": @@ -6513,7 +6519,7 @@ func awsRestjson1_deserializeDocumentPackageDependency(v **types.PackageDependen if !ok { return fmt.Errorf("expected PackageNamespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "package": @@ -6522,7 +6528,7 @@ func awsRestjson1_deserializeDocumentPackageDependency(v **types.PackageDependen if !ok { return fmt.Errorf("expected PackageName to be of type string, got %T instead", value) } - sv.Package = &jtv + sv.Package = ptr.String(jtv) } case "versionRequirement": @@ -6531,7 +6537,7 @@ func awsRestjson1_deserializeDocumentPackageDependency(v **types.PackageDependen if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VersionRequirement = &jtv + sv.VersionRequirement = ptr.String(jtv) } default: @@ -6543,7 +6549,7 @@ func awsRestjson1_deserializeDocumentPackageDependency(v **types.PackageDependen return nil } -func awsRestjson1_deserializeDocumentPackageDependencyList(v *[]*types.PackageDependency, value interface{}) error { +func awsRestjson1_deserializeDocumentPackageDependencyList(v *[]types.PackageDependency, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6556,18 +6562,20 @@ func awsRestjson1_deserializeDocumentPackageDependencyList(v *[]*types.PackageDe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PackageDependency + var cv []types.PackageDependency if *v == nil { - cv = []*types.PackageDependency{} + cv = []types.PackageDependency{} } else { cv = *v } for _, value := range shape { - var col *types.PackageDependency - if err := awsRestjson1_deserializeDocumentPackageDependency(&col, value); err != nil { + var col types.PackageDependency + destAddr := &col + if err := awsRestjson1_deserializeDocumentPackageDependency(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6612,7 +6620,7 @@ func awsRestjson1_deserializeDocumentPackageSummary(v **types.PackageSummary, va if !ok { return fmt.Errorf("expected PackageNamespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "package": @@ -6621,7 +6629,7 @@ func awsRestjson1_deserializeDocumentPackageSummary(v **types.PackageSummary, va if !ok { return fmt.Errorf("expected PackageName to be of type string, got %T instead", value) } - sv.Package = &jtv + sv.Package = ptr.String(jtv) } default: @@ -6633,7 +6641,7 @@ func awsRestjson1_deserializeDocumentPackageSummary(v **types.PackageSummary, va return nil } -func awsRestjson1_deserializeDocumentPackageSummaryList(v *[]*types.PackageSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentPackageSummaryList(v *[]types.PackageSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6646,18 +6654,20 @@ func awsRestjson1_deserializeDocumentPackageSummaryList(v *[]*types.PackageSumma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PackageSummary + var cv []types.PackageSummary if *v == nil { - cv = []*types.PackageSummary{} + cv = []types.PackageSummary{} } else { cv = *v } for _, value := range shape { - var col *types.PackageSummary - if err := awsRestjson1_deserializeDocumentPackageSummary(&col, value); err != nil { + var col types.PackageSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentPackageSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6693,7 +6703,7 @@ func awsRestjson1_deserializeDocumentPackageVersionDescription(v **types.Package if !ok { return fmt.Errorf("expected String255 to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "format": @@ -6711,7 +6721,7 @@ func awsRestjson1_deserializeDocumentPackageVersionDescription(v **types.Package if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HomePage = &jtv + sv.HomePage = ptr.String(jtv) } case "licenses": @@ -6725,7 +6735,7 @@ func awsRestjson1_deserializeDocumentPackageVersionDescription(v **types.Package if !ok { return fmt.Errorf("expected PackageNamespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "packageName": @@ -6734,7 +6744,7 @@ func awsRestjson1_deserializeDocumentPackageVersionDescription(v **types.Package if !ok { return fmt.Errorf("expected PackageName to be of type string, got %T instead", value) } - sv.PackageName = &jtv + sv.PackageName = ptr.String(jtv) } case "publishedTime": @@ -6756,7 +6766,7 @@ func awsRestjson1_deserializeDocumentPackageVersionDescription(v **types.Package if !ok { return fmt.Errorf("expected PackageVersionRevision to be of type string, got %T instead", value) } - sv.Revision = &jtv + sv.Revision = ptr.String(jtv) } case "sourceCodeRepository": @@ -6765,7 +6775,7 @@ func awsRestjson1_deserializeDocumentPackageVersionDescription(v **types.Package if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceCodeRepository = &jtv + sv.SourceCodeRepository = ptr.String(jtv) } case "status": @@ -6783,7 +6793,7 @@ func awsRestjson1_deserializeDocumentPackageVersionDescription(v **types.Package if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Summary = &jtv + sv.Summary = ptr.String(jtv) } case "version": @@ -6792,7 +6802,7 @@ func awsRestjson1_deserializeDocumentPackageVersionDescription(v **types.Package if !ok { return fmt.Errorf("expected PackageVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -6841,7 +6851,7 @@ func awsRestjson1_deserializeDocumentPackageVersionError(v **types.PackageVersio if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -6853,7 +6863,7 @@ func awsRestjson1_deserializeDocumentPackageVersionError(v **types.PackageVersio return nil } -func awsRestjson1_deserializeDocumentPackageVersionErrorMap(v *map[string]*types.PackageVersionError, value interface{}) error { +func awsRestjson1_deserializeDocumentPackageVersionErrorMap(v *map[string]types.PackageVersionError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6866,18 +6876,21 @@ func awsRestjson1_deserializeDocumentPackageVersionErrorMap(v *map[string]*types return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.PackageVersionError + var mv map[string]types.PackageVersionError if *v == nil { - mv = map[string]*types.PackageVersionError{} + mv = map[string]types.PackageVersionError{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.PackageVersionError - if err := awsRestjson1_deserializeDocumentPackageVersionError(&parsedVal, value); err != nil { + var parsedVal types.PackageVersionError + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentPackageVersionError(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -6913,7 +6926,7 @@ func awsRestjson1_deserializeDocumentPackageVersionSummary(v **types.PackageVers if !ok { return fmt.Errorf("expected PackageVersionRevision to be of type string, got %T instead", value) } - sv.Revision = &jtv + sv.Revision = ptr.String(jtv) } case "status": @@ -6931,7 +6944,7 @@ func awsRestjson1_deserializeDocumentPackageVersionSummary(v **types.PackageVers if !ok { return fmt.Errorf("expected PackageVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -6943,7 +6956,7 @@ func awsRestjson1_deserializeDocumentPackageVersionSummary(v **types.PackageVers return nil } -func awsRestjson1_deserializeDocumentPackageVersionSummaryList(v *[]*types.PackageVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentPackageVersionSummaryList(v *[]types.PackageVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6956,18 +6969,20 @@ func awsRestjson1_deserializeDocumentPackageVersionSummaryList(v *[]*types.Packa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PackageVersionSummary + var cv []types.PackageVersionSummary if *v == nil { - cv = []*types.PackageVersionSummary{} + cv = []types.PackageVersionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.PackageVersionSummary - if err := awsRestjson1_deserializeDocumentPackageVersionSummary(&col, value); err != nil { + var col types.PackageVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentPackageVersionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7003,7 +7018,7 @@ func awsRestjson1_deserializeDocumentRepositoryDescription(v **types.RepositoryD if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AdministratorAccount = &jtv + sv.AdministratorAccount = ptr.String(jtv) } case "arn": @@ -7012,7 +7027,7 @@ func awsRestjson1_deserializeDocumentRepositoryDescription(v **types.RepositoryD if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -7021,7 +7036,7 @@ func awsRestjson1_deserializeDocumentRepositoryDescription(v **types.RepositoryD if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "domainName": @@ -7030,7 +7045,7 @@ func awsRestjson1_deserializeDocumentRepositoryDescription(v **types.RepositoryD if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainOwner": @@ -7039,7 +7054,7 @@ func awsRestjson1_deserializeDocumentRepositoryDescription(v **types.RepositoryD if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.DomainOwner = &jtv + sv.DomainOwner = ptr.String(jtv) } case "externalConnections": @@ -7053,7 +7068,7 @@ func awsRestjson1_deserializeDocumentRepositoryDescription(v **types.RepositoryD if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "upstreams": @@ -7098,7 +7113,7 @@ func awsRestjson1_deserializeDocumentRepositoryExternalConnectionInfo(v **types. if !ok { return fmt.Errorf("expected ExternalConnectionName to be of type string, got %T instead", value) } - sv.ExternalConnectionName = &jtv + sv.ExternalConnectionName = ptr.String(jtv) } case "packageFormat": @@ -7128,7 +7143,7 @@ func awsRestjson1_deserializeDocumentRepositoryExternalConnectionInfo(v **types. return nil } -func awsRestjson1_deserializeDocumentRepositoryExternalConnectionInfoList(v *[]*types.RepositoryExternalConnectionInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentRepositoryExternalConnectionInfoList(v *[]types.RepositoryExternalConnectionInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7141,18 +7156,20 @@ func awsRestjson1_deserializeDocumentRepositoryExternalConnectionInfoList(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RepositoryExternalConnectionInfo + var cv []types.RepositoryExternalConnectionInfo if *v == nil { - cv = []*types.RepositoryExternalConnectionInfo{} + cv = []types.RepositoryExternalConnectionInfo{} } else { cv = *v } for _, value := range shape { - var col *types.RepositoryExternalConnectionInfo - if err := awsRestjson1_deserializeDocumentRepositoryExternalConnectionInfo(&col, value); err != nil { + var col types.RepositoryExternalConnectionInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentRepositoryExternalConnectionInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7188,7 +7205,7 @@ func awsRestjson1_deserializeDocumentRepositorySummary(v **types.RepositorySumma if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AdministratorAccount = &jtv + sv.AdministratorAccount = ptr.String(jtv) } case "arn": @@ -7197,7 +7214,7 @@ func awsRestjson1_deserializeDocumentRepositorySummary(v **types.RepositorySumma if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -7206,7 +7223,7 @@ func awsRestjson1_deserializeDocumentRepositorySummary(v **types.RepositorySumma if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "domainName": @@ -7215,7 +7232,7 @@ func awsRestjson1_deserializeDocumentRepositorySummary(v **types.RepositorySumma if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainOwner": @@ -7224,7 +7241,7 @@ func awsRestjson1_deserializeDocumentRepositorySummary(v **types.RepositorySumma if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.DomainOwner = &jtv + sv.DomainOwner = ptr.String(jtv) } case "name": @@ -7233,7 +7250,7 @@ func awsRestjson1_deserializeDocumentRepositorySummary(v **types.RepositorySumma if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7245,7 +7262,7 @@ func awsRestjson1_deserializeDocumentRepositorySummary(v **types.RepositorySumma return nil } -func awsRestjson1_deserializeDocumentRepositorySummaryList(v *[]*types.RepositorySummary, value interface{}) error { +func awsRestjson1_deserializeDocumentRepositorySummaryList(v *[]types.RepositorySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7258,18 +7275,20 @@ func awsRestjson1_deserializeDocumentRepositorySummaryList(v *[]*types.Repositor return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RepositorySummary + var cv []types.RepositorySummary if *v == nil { - cv = []*types.RepositorySummary{} + cv = []types.RepositorySummary{} } else { cv = *v } for _, value := range shape { - var col *types.RepositorySummary - if err := awsRestjson1_deserializeDocumentRepositorySummary(&col, value); err != nil { + var col types.RepositorySummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentRepositorySummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7305,7 +7324,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceId": @@ -7314,7 +7333,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "resourceType": @@ -7363,7 +7382,7 @@ func awsRestjson1_deserializeDocumentResourcePolicy(v **types.ResourcePolicy, va if !ok { return fmt.Errorf("expected PolicyDocument to be of type string, got %T instead", value) } - sv.Document = &jtv + sv.Document = ptr.String(jtv) } case "resourceArn": @@ -7372,7 +7391,7 @@ func awsRestjson1_deserializeDocumentResourcePolicy(v **types.ResourcePolicy, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "revision": @@ -7381,7 +7400,7 @@ func awsRestjson1_deserializeDocumentResourcePolicy(v **types.ResourcePolicy, va if !ok { return fmt.Errorf("expected PolicyRevision to be of type string, got %T instead", value) } - sv.Revision = &jtv + sv.Revision = ptr.String(jtv) } default: @@ -7421,7 +7440,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceId": @@ -7430,7 +7449,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "resourceType": @@ -7479,7 +7498,7 @@ func awsRestjson1_deserializeDocumentSuccessfulPackageVersionInfo(v **types.Succ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Revision = &jtv + sv.Revision = ptr.String(jtv) } case "status": @@ -7500,7 +7519,7 @@ func awsRestjson1_deserializeDocumentSuccessfulPackageVersionInfo(v **types.Succ return nil } -func awsRestjson1_deserializeDocumentSuccessfulPackageVersionInfoMap(v *map[string]*types.SuccessfulPackageVersionInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentSuccessfulPackageVersionInfoMap(v *map[string]types.SuccessfulPackageVersionInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7513,18 +7532,21 @@ func awsRestjson1_deserializeDocumentSuccessfulPackageVersionInfoMap(v *map[stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.SuccessfulPackageVersionInfo + var mv map[string]types.SuccessfulPackageVersionInfo if *v == nil { - mv = map[string]*types.SuccessfulPackageVersionInfo{} + mv = map[string]types.SuccessfulPackageVersionInfo{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.SuccessfulPackageVersionInfo - if err := awsRestjson1_deserializeDocumentSuccessfulPackageVersionInfo(&parsedVal, value); err != nil { + var parsedVal types.SuccessfulPackageVersionInfo + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentSuccessfulPackageVersionInfo(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -7560,7 +7582,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -7569,7 +7591,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -7581,7 +7603,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7594,18 +7616,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7641,7 +7665,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryAfterSeconds": @@ -7694,7 +7718,7 @@ func awsRestjson1_deserializeDocumentUpstreamRepositoryInfo(v **types.UpstreamRe if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -7706,7 +7730,7 @@ func awsRestjson1_deserializeDocumentUpstreamRepositoryInfo(v **types.UpstreamRe return nil } -func awsRestjson1_deserializeDocumentUpstreamRepositoryInfoList(v *[]*types.UpstreamRepositoryInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentUpstreamRepositoryInfoList(v *[]types.UpstreamRepositoryInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7719,18 +7743,20 @@ func awsRestjson1_deserializeDocumentUpstreamRepositoryInfoList(v *[]*types.Upst return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UpstreamRepositoryInfo + var cv []types.UpstreamRepositoryInfo if *v == nil { - cv = []*types.UpstreamRepositoryInfo{} + cv = []types.UpstreamRepositoryInfo{} } else { cv = *v } for _, value := range shape { - var col *types.UpstreamRepositoryInfo - if err := awsRestjson1_deserializeDocumentUpstreamRepositoryInfo(&col, value); err != nil { + var col types.UpstreamRepositoryInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentUpstreamRepositoryInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7766,7 +7792,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "reason": diff --git a/service/codeartifact/go.mod b/service/codeartifact/go.mod index c023c725a74..9ccf7e2a0f1 100644 --- a/service/codeartifact/go.mod +++ b/service/codeartifact/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/codeartifact go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/codeartifact/serializers.go b/service/codeartifact/serializers.go index ecd87b09038..35509e51d75 100644 --- a/service/codeartifact/serializers.go +++ b/service/codeartifact/serializers.go @@ -2802,32 +2802,24 @@ func awsRestjson1_serializeOpDocumentUpdateRepositoryInput(v *UpdateRepositoryIn return nil } -func awsRestjson1_serializeDocumentPackageVersionList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPackageVersionList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentPackageVersionRevisionMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPackageVersionRevisionMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2849,32 +2841,24 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2893,17 +2877,13 @@ func awsRestjson1_serializeDocumentUpstreamRepository(v *types.UpstreamRepositor return nil } -func awsRestjson1_serializeDocumentUpstreamRepositoryList(v []*types.UpstreamRepository, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentUpstreamRepositoryList(v []types.UpstreamRepository, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentUpstreamRepository(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentUpstreamRepository(&v[i], av); err != nil { return err } } diff --git a/service/codeartifact/types/types.go b/service/codeartifact/types/types.go index 0c4f6b7decb..1bdd395b993 100644 --- a/service/codeartifact/types/types.go +++ b/service/codeartifact/types/types.go @@ -15,7 +15,7 @@ type AssetSummary struct { Name *string // The hashes of the asset. - Hashes map[string]*string + Hashes map[string]string // The size of the asset. Size *int64 @@ -29,7 +29,7 @@ type DomainDescription struct { Arn *string // The total size of all assets in the domain. - AssetSizeBytes *int64 + AssetSizeBytes int64 // A timestamp that represents the date and time the domain was created. CreatedTime *time.Time @@ -44,7 +44,7 @@ type DomainDescription struct { Owner *string // The number of repositories in the domain. - RepositoryCount *int32 + RepositoryCount int32 // The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store // package assets in the domain. @@ -185,7 +185,7 @@ type PackageVersionDescription struct { HomePage *string // Information about licenses associated with the package version. - Licenses []*LicenseInfo + Licenses []LicenseInfo // The namespace of the package. The package component that specifies its namespace // depends on its type. For example: @@ -316,7 +316,7 @@ type RepositoryDescription struct { DomainOwner *string // An array of external connections associated with the repository. - ExternalConnections []*RepositoryExternalConnectionInfo + ExternalConnections []RepositoryExternalConnectionInfo // The name of the repository. Name *string @@ -326,7 +326,7 @@ type RepositoryDescription struct { // CodeArtifact looks for a requested package version. For more information, see // Working with upstream repositories // (https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html). - Upstreams []*UpstreamRepositoryInfo + Upstreams []UpstreamRepositoryInfo } // Contains information about the external connection of a repository. diff --git a/service/codeartifact/validators.go b/service/codeartifact/validators.go index e6f641d52a8..a099056fa79 100644 --- a/service/codeartifact/validators.go +++ b/service/codeartifact/validators.go @@ -796,13 +796,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -828,13 +828,13 @@ func validateUpstreamRepository(v *types.UpstreamRepository) error { } } -func validateUpstreamRepositoryList(v []*types.UpstreamRepository) error { +func validateUpstreamRepositoryList(v []types.UpstreamRepository) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpstreamRepositoryList"} for i := range v { - if err := validateUpstreamRepository(v[i]); err != nil { + if err := validateUpstreamRepository(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/codebuild/api_op_BatchDeleteBuilds.go b/service/codebuild/api_op_BatchDeleteBuilds.go index c475460d406..4d7fbdf916d 100644 --- a/service/codebuild/api_op_BatchDeleteBuilds.go +++ b/service/codebuild/api_op_BatchDeleteBuilds.go @@ -32,16 +32,16 @@ type BatchDeleteBuildsInput struct { // The IDs of the builds to delete. // // This member is required. - Ids []*string + Ids []string } type BatchDeleteBuildsOutput struct { // The IDs of the builds that were successfully deleted. - BuildsDeleted []*string + BuildsDeleted []string // Information about any builds that could not be successfully deleted. - BuildsNotDeleted []*types.BuildNotDeleted + BuildsNotDeleted []types.BuildNotDeleted // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_BatchGetBuildBatches.go b/service/codebuild/api_op_BatchGetBuildBatches.go index 08e98f0bd55..e86643d7a1c 100644 --- a/service/codebuild/api_op_BatchGetBuildBatches.go +++ b/service/codebuild/api_op_BatchGetBuildBatches.go @@ -32,16 +32,16 @@ type BatchGetBuildBatchesInput struct { // An array that contains the batch build identifiers to retrieve. // // This member is required. - Ids []*string + Ids []string } type BatchGetBuildBatchesOutput struct { // An array of BuildBatch objects that represent the retrieved batch builds. - BuildBatches []*types.BuildBatch + BuildBatches []types.BuildBatch // An array that contains the identifiers of any batch builds that are not found. - BuildBatchesNotFound []*string + BuildBatchesNotFound []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_BatchGetBuilds.go b/service/codebuild/api_op_BatchGetBuilds.go index 1085f9808dd..77a5b0e0668 100644 --- a/service/codebuild/api_op_BatchGetBuilds.go +++ b/service/codebuild/api_op_BatchGetBuilds.go @@ -32,16 +32,16 @@ type BatchGetBuildsInput struct { // The IDs of the builds. // // This member is required. - Ids []*string + Ids []string } type BatchGetBuildsOutput struct { // Information about the requested builds. - Builds []*types.Build + Builds []types.Build // The IDs of builds for which information could not be found. - BuildsNotFound []*string + BuildsNotFound []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_BatchGetProjects.go b/service/codebuild/api_op_BatchGetProjects.go index 43097aff9ba..bd1b23f1099 100644 --- a/service/codebuild/api_op_BatchGetProjects.go +++ b/service/codebuild/api_op_BatchGetProjects.go @@ -34,16 +34,16 @@ type BatchGetProjectsInput struct { // shared project using its name. // // This member is required. - Names []*string + Names []string } type BatchGetProjectsOutput struct { // Information about the requested build projects. - Projects []*types.Project + Projects []types.Project // The names of build projects for which information could not be found. - ProjectsNotFound []*string + ProjectsNotFound []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_BatchGetReportGroups.go b/service/codebuild/api_op_BatchGetReportGroups.go index b333d61d30f..af2b504ca9c 100644 --- a/service/codebuild/api_op_BatchGetReportGroups.go +++ b/service/codebuild/api_op_BatchGetReportGroups.go @@ -32,17 +32,17 @@ type BatchGetReportGroupsInput struct { // An array of report group ARNs that identify the report groups to return. // // This member is required. - ReportGroupArns []*string + ReportGroupArns []string } type BatchGetReportGroupsOutput struct { // The array of report groups returned by BatchGetReportGroups. - ReportGroups []*types.ReportGroup + ReportGroups []types.ReportGroup // An array of ARNs passed to BatchGetReportGroups that are not associated with a // ReportGroup. - ReportGroupsNotFound []*string + ReportGroupsNotFound []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_BatchGetReports.go b/service/codebuild/api_op_BatchGetReports.go index f7e687f1327..de2b9a86552 100644 --- a/service/codebuild/api_op_BatchGetReports.go +++ b/service/codebuild/api_op_BatchGetReports.go @@ -32,17 +32,17 @@ type BatchGetReportsInput struct { // An array of ARNs that identify the Report objects to return. // // This member is required. - ReportArns []*string + ReportArns []string } type BatchGetReportsOutput struct { // The array of Report objects returned by BatchGetReports. - Reports []*types.Report + Reports []types.Report // An array of ARNs passed to BatchGetReportGroups that are not associated with a // Report. - ReportsNotFound []*string + ReportsNotFound []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_CreateProject.go b/service/codebuild/api_op_CreateProject.go index 1199e0a86de..78af82aa3c9 100644 --- a/service/codebuild/api_op_CreateProject.go +++ b/service/codebuild/api_op_CreateProject.go @@ -81,7 +81,7 @@ type CreateProjectInput struct { // ProjectFileSystemLocation object specifies the identifier, location, // mountOptions, mountPoint, and type of a file system created using Amazon Elastic // File System. - FileSystemLocations []*types.ProjectFileSystemLocation + FileSystemLocations []types.ProjectFileSystemLocation // Information about logs for the build project. These can be logs in Amazon // CloudWatch Logs, logs uploaded to a specified S3 bucket, or both. @@ -91,15 +91,15 @@ type CreateProjectInput struct { QueuedTimeoutInMinutes *int32 // An array of ProjectArtifacts objects. - SecondaryArtifacts []*types.ProjectArtifacts + SecondaryArtifacts []types.ProjectArtifacts // An array of ProjectSourceVersion objects. If secondarySourceVersions is // specified at the build level, then they take precedence over these // secondarySourceVersions (at the project level). - SecondarySourceVersions []*types.ProjectSourceVersion + SecondarySourceVersions []types.ProjectSourceVersion // An array of ProjectSource objects. - SecondarySources []*types.ProjectSource + SecondarySources []types.ProjectSource // A version of the build input to be built for this project. If not specified, the // latest version is used. If specified, it must be one of: @@ -133,7 +133,7 @@ type CreateProjectInput struct { // A list of tag key and value pairs associated with this build project. These tags // are available for use by AWS services that support AWS CodeBuild build project // tags. - Tags []*types.Tag + Tags []types.Tag // How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before // it times out any build that has not been marked as completed. The default is 60 diff --git a/service/codebuild/api_op_CreateReportGroup.go b/service/codebuild/api_op_CreateReportGroup.go index 4572c2e7e17..d0e4444b4b8 100644 --- a/service/codebuild/api_op_CreateReportGroup.go +++ b/service/codebuild/api_op_CreateReportGroup.go @@ -48,7 +48,7 @@ type CreateReportGroupInput struct { // A list of tag key and value pairs associated with this report group. These tags // are available for use by AWS services that support AWS CodeBuild report group // tags. - Tags []*types.Tag + Tags []types.Tag } type CreateReportGroupOutput struct { diff --git a/service/codebuild/api_op_CreateWebhook.go b/service/codebuild/api_op_CreateWebhook.go index 34d218caf41..4715db158cb 100644 --- a/service/codebuild/api_op_CreateWebhook.go +++ b/service/codebuild/api_op_CreateWebhook.go @@ -57,7 +57,7 @@ type CreateWebhookInput struct { // triggered. At least one WebhookFilter in the array must specify EVENT as its // type. For a build to be triggered, at least one filter group in the filterGroups // array must pass. For a filter group to pass, each of its filters must pass. - FilterGroups [][]*types.WebhookFilter + FilterGroups [][]types.WebhookFilter } type CreateWebhookOutput struct { diff --git a/service/codebuild/api_op_DeleteBuildBatch.go b/service/codebuild/api_op_DeleteBuildBatch.go index 7d7faeffc3b..d7aaa32fd6d 100644 --- a/service/codebuild/api_op_DeleteBuildBatch.go +++ b/service/codebuild/api_op_DeleteBuildBatch.go @@ -39,11 +39,11 @@ type DeleteBuildBatchOutput struct { // An array of strings that contain the identifiers of the builds that were // deleted. - BuildsDeleted []*string + BuildsDeleted []string // An array of BuildNotDeleted objects that specify the builds that could not be // deleted. - BuildsNotDeleted []*types.BuildNotDeleted + BuildsNotDeleted []types.BuildNotDeleted // The status code. StatusCode *string diff --git a/service/codebuild/api_op_DeleteReportGroup.go b/service/codebuild/api_op_DeleteReportGroup.go index 1d0713896ff..4fe3a80d88b 100644 --- a/service/codebuild/api_op_DeleteReportGroup.go +++ b/service/codebuild/api_op_DeleteReportGroup.go @@ -42,7 +42,7 @@ type DeleteReportGroupInput struct { // (https://docs.aws.amazon.com/codebuild/latest/APIReference/API_DeleteReport.html) // to delete the reports. If you call DeleteReportGroup for a report group that // contains one or more reports, an exception is thrown. - DeleteReports *bool + DeleteReports bool } type DeleteReportGroupOutput struct { diff --git a/service/codebuild/api_op_DescribeCodeCoverages.go b/service/codebuild/api_op_DescribeCodeCoverages.go index 623c49801bd..8c26bd2b31e 100644 --- a/service/codebuild/api_op_DescribeCodeCoverages.go +++ b/service/codebuild/api_op_DescribeCodeCoverages.go @@ -60,7 +60,7 @@ type DescribeCodeCoveragesInput struct { type DescribeCodeCoveragesOutput struct { // An array of CodeCoverage objects that contain the results. - CodeCoverages []*types.CodeCoverage + CodeCoverages []types.CodeCoverage // If there are more items to return, this contains a token that is passed to a // subsequent call to DescribeCodeCoverages to retrieve the next set of items. diff --git a/service/codebuild/api_op_DescribeTestCases.go b/service/codebuild/api_op_DescribeTestCases.go index f10f7208927..56c6b951f03 100644 --- a/service/codebuild/api_op_DescribeTestCases.go +++ b/service/codebuild/api_op_DescribeTestCases.go @@ -62,7 +62,7 @@ type DescribeTestCasesOutput struct { NextToken *string // The returned list of test cases. - TestCases []*types.TestCase + TestCases []types.TestCase // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_ListBuildBatches.go b/service/codebuild/api_op_ListBuildBatches.go index bc6bb11211d..74202bab842 100644 --- a/service/codebuild/api_op_ListBuildBatches.go +++ b/service/codebuild/api_op_ListBuildBatches.go @@ -53,7 +53,7 @@ type ListBuildBatchesInput struct { type ListBuildBatchesOutput struct { // An array of strings that contains the batch build identifiers. - Ids []*string + Ids []string // If there are more items to return, this contains a token that is passed to a // subsequent call to ListBuildBatches to retrieve the next set of items. diff --git a/service/codebuild/api_op_ListBuildBatchesForProject.go b/service/codebuild/api_op_ListBuildBatchesForProject.go index 596ceb1f6c4..dc858f211f0 100644 --- a/service/codebuild/api_op_ListBuildBatchesForProject.go +++ b/service/codebuild/api_op_ListBuildBatchesForProject.go @@ -56,7 +56,7 @@ type ListBuildBatchesForProjectInput struct { type ListBuildBatchesForProjectOutput struct { // An array of strings that contains the batch build identifiers. - Ids []*string + Ids []string // If there are more items to return, this contains a token that is passed to a // subsequent call to ListBuildBatchesForProject to retrieve the next set of items. diff --git a/service/codebuild/api_op_ListBuilds.go b/service/codebuild/api_op_ListBuilds.go index 445b988c6bd..cba50cdddcb 100644 --- a/service/codebuild/api_op_ListBuilds.go +++ b/service/codebuild/api_op_ListBuilds.go @@ -50,7 +50,7 @@ type ListBuildsInput struct { type ListBuildsOutput struct { // A list of build IDs, with each build ID representing a single build. - Ids []*string + Ids []string // If there are more than 100 items in the list, only the first 100 items are // returned, along with a unique string called a nextToken. To get the next batch diff --git a/service/codebuild/api_op_ListBuildsForProject.go b/service/codebuild/api_op_ListBuildsForProject.go index 9d53415f380..0020ca13d08 100644 --- a/service/codebuild/api_op_ListBuildsForProject.go +++ b/service/codebuild/api_op_ListBuildsForProject.go @@ -57,7 +57,7 @@ type ListBuildsForProjectOutput struct { // A list of build IDs for the specified build project, with each build ID // representing a single build. - Ids []*string + Ids []string // If there are more than 100 items in the list, only the first 100 items are // returned, along with a unique string called a nextToken. To get the next batch diff --git a/service/codebuild/api_op_ListCuratedEnvironmentImages.go b/service/codebuild/api_op_ListCuratedEnvironmentImages.go index 7c741ae9646..593140ad308 100644 --- a/service/codebuild/api_op_ListCuratedEnvironmentImages.go +++ b/service/codebuild/api_op_ListCuratedEnvironmentImages.go @@ -34,7 +34,7 @@ type ListCuratedEnvironmentImagesOutput struct { // Information about supported platforms for Docker images that are managed by AWS // CodeBuild. - Platforms []*types.EnvironmentPlatform + Platforms []types.EnvironmentPlatform // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_ListProjects.go b/service/codebuild/api_op_ListProjects.go index 48e6fa9b2d7..051bad41d4d 100644 --- a/service/codebuild/api_op_ListProjects.go +++ b/service/codebuild/api_op_ListProjects.go @@ -76,7 +76,7 @@ type ListProjectsOutput struct { // The list of build project names, with each build project name representing a // single build project. - Projects []*string + Projects []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_ListReportGroups.go b/service/codebuild/api_op_ListReportGroups.go index b270af92180..37bf7ba6d50 100644 --- a/service/codebuild/api_op_ListReportGroups.go +++ b/service/codebuild/api_op_ListReportGroups.go @@ -70,7 +70,7 @@ type ListReportGroupsOutput struct { NextToken *string // The list of ARNs for the report groups in the current AWS account. - ReportGroups []*string + ReportGroups []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_ListReports.go b/service/codebuild/api_op_ListReports.go index 0a526e7ca4a..ec52e617341 100644 --- a/service/codebuild/api_op_ListReports.go +++ b/service/codebuild/api_op_ListReports.go @@ -66,7 +66,7 @@ type ListReportsOutput struct { NextToken *string // The list of returned ARNs for the reports in the current AWS account. - Reports []*string + Reports []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_ListReportsForReportGroup.go b/service/codebuild/api_op_ListReportsForReportGroup.go index d8622dc2819..93e807748dc 100644 --- a/service/codebuild/api_op_ListReportsForReportGroup.go +++ b/service/codebuild/api_op_ListReportsForReportGroup.go @@ -66,7 +66,7 @@ type ListReportsForReportGroupOutput struct { NextToken *string // The list of report ARNs. - Reports []*string + Reports []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_ListSharedProjects.go b/service/codebuild/api_op_ListSharedProjects.go index a2750884314..2edb626de47 100644 --- a/service/codebuild/api_op_ListSharedProjects.go +++ b/service/codebuild/api_op_ListSharedProjects.go @@ -73,7 +73,7 @@ type ListSharedProjectsOutput struct { // The list of ARNs for the build projects shared with the current AWS account or // user. - Projects []*string + Projects []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_ListSharedReportGroups.go b/service/codebuild/api_op_ListSharedReportGroups.go index 7f2dbf4c50c..16f08ef0e28 100644 --- a/service/codebuild/api_op_ListSharedReportGroups.go +++ b/service/codebuild/api_op_ListSharedReportGroups.go @@ -73,7 +73,7 @@ type ListSharedReportGroupsOutput struct { // The list of ARNs for the report groups shared with the current AWS account or // user. - ReportGroups []*string + ReportGroups []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_ListSourceCredentials.go b/service/codebuild/api_op_ListSourceCredentials.go index 2fb3aefa1b7..18d2e6612c8 100644 --- a/service/codebuild/api_op_ListSourceCredentials.go +++ b/service/codebuild/api_op_ListSourceCredentials.go @@ -35,7 +35,7 @@ type ListSourceCredentialsOutput struct { // A list of SourceCredentialsInfo objects. Each SourceCredentialsInfo object // includes the authentication type, token ARN, and type of source provider for one // set of credentials. - SourceCredentialsInfos []*types.SourceCredentialsInfo + SourceCredentialsInfos []types.SourceCredentialsInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codebuild/api_op_StartBuild.go b/service/codebuild/api_op_StartBuild.go index b0444ed8336..c37a6a8d6b9 100644 --- a/service/codebuild/api_op_StartBuild.go +++ b/service/codebuild/api_op_StartBuild.go @@ -87,7 +87,7 @@ type StartBuildInput struct { // A set of environment variables that overrides, for this build only, the latest // ones already defined in the build project. - EnvironmentVariablesOverride []*types.EnvironmentVariable + EnvironmentVariablesOverride []types.EnvironmentVariable // The user-defined depth of history, with a minimum value of 0, that overrides, // for this build only, any previous depth of history defined in the build project. @@ -142,14 +142,14 @@ type StartBuildInput struct { ReportBuildStatusOverride *bool // An array of ProjectArtifacts objects. - SecondaryArtifactsOverride []*types.ProjectArtifacts + SecondaryArtifactsOverride []types.ProjectArtifacts // An array of ProjectSource objects. - SecondarySourcesOverride []*types.ProjectSource + SecondarySourcesOverride []types.ProjectSource // An array of ProjectSourceVersion objects that specify one or more versions of // the project's secondary sources to be used for this build only. - SecondarySourcesVersionOverride []*types.ProjectSourceVersion + SecondarySourcesVersionOverride []types.ProjectSourceVersion // The name of a service role for this build that overrides the one specified in // the build project. diff --git a/service/codebuild/api_op_StartBuildBatch.go b/service/codebuild/api_op_StartBuildBatch.go index 308a120d78c..6d81dd6d763 100644 --- a/service/codebuild/api_op_StartBuildBatch.go +++ b/service/codebuild/api_op_StartBuildBatch.go @@ -83,7 +83,7 @@ type StartBuildBatchInput struct { // An array of EnvironmentVariable objects that override, or add to, the // environment variables defined in the batch build project. - EnvironmentVariablesOverride []*types.EnvironmentVariable + EnvironmentVariablesOverride []types.EnvironmentVariable // The user-defined depth of history, with a minimum value of 0, that overrides, // for this batch build only, any previous depth of history defined in the batch @@ -143,15 +143,15 @@ type StartBuildBatchInput struct { // An array of ProjectArtifacts objects that override the secondary artifacts // defined in the batch build project. - SecondaryArtifactsOverride []*types.ProjectArtifacts + SecondaryArtifactsOverride []types.ProjectArtifacts // An array of ProjectSource objects that override the secondary sources defined in // the batch build project. - SecondarySourcesOverride []*types.ProjectSource + SecondarySourcesOverride []types.ProjectSource // An array of ProjectSourceVersion objects that override the secondary source // versions in the batch build project. - SecondarySourcesVersionOverride []*types.ProjectSourceVersion + SecondarySourcesVersionOverride []types.ProjectSourceVersion // The name of a service role for this batch build that overrides the one specified // in the batch build project. diff --git a/service/codebuild/api_op_UpdateProject.go b/service/codebuild/api_op_UpdateProject.go index 11bfaf50540..1b3f01aa7c0 100644 --- a/service/codebuild/api_op_UpdateProject.go +++ b/service/codebuild/api_op_UpdateProject.go @@ -66,7 +66,7 @@ type UpdateProjectInput struct { // ProjectFileSystemLocation object specifies the identifier, location, // mountOptions, mountPoint, and type of a file system created using Amazon Elastic // File System. - FileSystemLocations []*types.ProjectFileSystemLocation + FileSystemLocations []types.ProjectFileSystemLocation // Information about logs for the build project. A project can create logs in // Amazon CloudWatch Logs, logs in an S3 bucket, or both. @@ -76,15 +76,15 @@ type UpdateProjectInput struct { QueuedTimeoutInMinutes *int32 // An array of ProjectSource objects. - SecondaryArtifacts []*types.ProjectArtifacts + SecondaryArtifacts []types.ProjectArtifacts // An array of ProjectSourceVersion objects. If secondarySourceVersions is // specified at the build level, then they take over these secondarySourceVersions // (at the project level). - SecondarySourceVersions []*types.ProjectSourceVersion + SecondarySourceVersions []types.ProjectSourceVersion // An array of ProjectSource objects. - SecondarySources []*types.ProjectSource + SecondarySources []types.ProjectSource // The replacement ARN of the AWS Identity and Access Management (IAM) role that // enables AWS CodeBuild to interact with dependent AWS services on behalf of the @@ -127,7 +127,7 @@ type UpdateProjectInput struct { // An updated list of tag key and value pairs associated with this build project. // These tags are available for use by AWS services that support AWS CodeBuild // build project tags. - Tags []*types.Tag + Tags []types.Tag // The replacement value in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to // wait before timing out any related build that did not get marked as completed. diff --git a/service/codebuild/api_op_UpdateReportGroup.go b/service/codebuild/api_op_UpdateReportGroup.go index 22c7bc95004..190eb0143c0 100644 --- a/service/codebuild/api_op_UpdateReportGroup.go +++ b/service/codebuild/api_op_UpdateReportGroup.go @@ -46,7 +46,7 @@ type UpdateReportGroupInput struct { // An updated list of tag key and value pairs associated with this report group. // These tags are available for use by AWS services that support AWS CodeBuild // report group tags. - Tags []*types.Tag + Tags []types.Tag } type UpdateReportGroupOutput struct { diff --git a/service/codebuild/api_op_UpdateWebhook.go b/service/codebuild/api_op_UpdateWebhook.go index b297e6dad20..27ce698ca30 100644 --- a/service/codebuild/api_op_UpdateWebhook.go +++ b/service/codebuild/api_op_UpdateWebhook.go @@ -47,12 +47,12 @@ type UpdateWebhookInput struct { // An array of arrays of WebhookFilter objects used to determine if a webhook event // can trigger a build. A filter group must contain at least one // EVENTWebhookFilter. - FilterGroups [][]*types.WebhookFilter + FilterGroups [][]types.WebhookFilter // A boolean value that specifies whether the associated GitHub repository's secret // token should be updated. If you use Bitbucket for your repository, rotateSecret // is ignored. - RotateSecret *bool + RotateSecret bool } type UpdateWebhookOutput struct { diff --git a/service/codebuild/deserializers.go b/service/codebuild/deserializers.go index 8cdb29fa5d4..d778b250518 100644 --- a/service/codebuild/deserializers.go +++ b/service/codebuild/deserializers.go @@ -5085,7 +5085,7 @@ func awsAwsjson11_deserializeDocumentAccountLimitExceededException(v **types.Acc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5174,7 +5174,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "artifacts": @@ -5188,7 +5188,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BuildBatchArn = &jtv + sv.BuildBatchArn = ptr.String(jtv) } case "buildComplete": @@ -5197,7 +5197,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.BuildComplete = &jtv + sv.BuildComplete = jtv } case "buildNumber": @@ -5210,7 +5210,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if err != nil { return err } - sv.BuildNumber = &i64 + sv.BuildNumber = ptr.Int64(i64) } case "buildStatus": @@ -5233,7 +5233,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CurrentPhase = &jtv + sv.CurrentPhase = ptr.String(jtv) } case "debugSession": @@ -5247,7 +5247,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EncryptionKey = &jtv + sv.EncryptionKey = ptr.String(jtv) } case "endTime": @@ -5284,7 +5284,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "initiator": @@ -5293,7 +5293,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Initiator = &jtv + sv.Initiator = ptr.String(jtv) } case "logs": @@ -5317,7 +5317,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ProjectName = &jtv + sv.ProjectName = ptr.String(jtv) } case "queuedTimeoutInMinutes": @@ -5344,7 +5344,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ResolvedSourceVersion = &jtv + sv.ResolvedSourceVersion = ptr.String(jtv) } case "secondaryArtifacts": @@ -5368,7 +5368,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } case "source": @@ -5382,7 +5382,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SourceVersion = &jtv + sv.SourceVersion = ptr.String(jtv) } case "startTime": @@ -5453,7 +5453,7 @@ func awsAwsjson11_deserializeDocumentBuildArtifacts(v **types.BuildArtifacts, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ArtifactIdentifier = &jtv + sv.ArtifactIdentifier = ptr.String(jtv) } case "encryptionDisabled": @@ -5462,7 +5462,7 @@ func awsAwsjson11_deserializeDocumentBuildArtifacts(v **types.BuildArtifacts, va if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.EncryptionDisabled = &jtv + sv.EncryptionDisabled = ptr.Bool(jtv) } case "location": @@ -5471,7 +5471,7 @@ func awsAwsjson11_deserializeDocumentBuildArtifacts(v **types.BuildArtifacts, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "md5sum": @@ -5480,7 +5480,7 @@ func awsAwsjson11_deserializeDocumentBuildArtifacts(v **types.BuildArtifacts, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Md5sum = &jtv + sv.Md5sum = ptr.String(jtv) } case "overrideArtifactName": @@ -5489,7 +5489,7 @@ func awsAwsjson11_deserializeDocumentBuildArtifacts(v **types.BuildArtifacts, va if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.OverrideArtifactName = &jtv + sv.OverrideArtifactName = ptr.Bool(jtv) } case "sha256sum": @@ -5498,7 +5498,7 @@ func awsAwsjson11_deserializeDocumentBuildArtifacts(v **types.BuildArtifacts, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Sha256sum = &jtv + sv.Sha256sum = ptr.String(jtv) } default: @@ -5510,7 +5510,7 @@ func awsAwsjson11_deserializeDocumentBuildArtifacts(v **types.BuildArtifacts, va return nil } -func awsAwsjson11_deserializeDocumentBuildArtifactsList(v *[]*types.BuildArtifacts, value interface{}) error { +func awsAwsjson11_deserializeDocumentBuildArtifactsList(v *[]types.BuildArtifacts, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5523,18 +5523,20 @@ func awsAwsjson11_deserializeDocumentBuildArtifactsList(v *[]*types.BuildArtifac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BuildArtifacts + var cv []types.BuildArtifacts if *v == nil { - cv = []*types.BuildArtifacts{} + cv = []types.BuildArtifacts{} } else { cv = *v } for _, value := range shape { - var col *types.BuildArtifacts - if err := awsAwsjson11_deserializeDocumentBuildArtifacts(&col, value); err != nil { + var col types.BuildArtifacts + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBuildArtifacts(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5570,7 +5572,7 @@ func awsAwsjson11_deserializeDocumentBuildBatch(v **types.BuildBatch, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "artifacts": @@ -5593,7 +5595,7 @@ func awsAwsjson11_deserializeDocumentBuildBatch(v **types.BuildBatch, value inte if err != nil { return err } - sv.BuildBatchNumber = &i64 + sv.BuildBatchNumber = ptr.Int64(i64) } case "buildBatchStatus": @@ -5634,7 +5636,7 @@ func awsAwsjson11_deserializeDocumentBuildBatch(v **types.BuildBatch, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Complete = &jtv + sv.Complete = jtv } case "currentPhase": @@ -5643,7 +5645,7 @@ func awsAwsjson11_deserializeDocumentBuildBatch(v **types.BuildBatch, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CurrentPhase = &jtv + sv.CurrentPhase = ptr.String(jtv) } case "encryptionKey": @@ -5652,7 +5654,7 @@ func awsAwsjson11_deserializeDocumentBuildBatch(v **types.BuildBatch, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EncryptionKey = &jtv + sv.EncryptionKey = ptr.String(jtv) } case "endTime": @@ -5684,7 +5686,7 @@ func awsAwsjson11_deserializeDocumentBuildBatch(v **types.BuildBatch, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "initiator": @@ -5693,7 +5695,7 @@ func awsAwsjson11_deserializeDocumentBuildBatch(v **types.BuildBatch, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Initiator = &jtv + sv.Initiator = ptr.String(jtv) } case "logConfig": @@ -5712,7 +5714,7 @@ func awsAwsjson11_deserializeDocumentBuildBatch(v **types.BuildBatch, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ProjectName = &jtv + sv.ProjectName = ptr.String(jtv) } case "queuedTimeoutInMinutes": @@ -5734,7 +5736,7 @@ func awsAwsjson11_deserializeDocumentBuildBatch(v **types.BuildBatch, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ResolvedSourceVersion = &jtv + sv.ResolvedSourceVersion = ptr.String(jtv) } case "secondaryArtifacts": @@ -5758,7 +5760,7 @@ func awsAwsjson11_deserializeDocumentBuildBatch(v **types.BuildBatch, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } case "source": @@ -5772,7 +5774,7 @@ func awsAwsjson11_deserializeDocumentBuildBatch(v **types.BuildBatch, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SourceVersion = &jtv + sv.SourceVersion = ptr.String(jtv) } case "startTime": @@ -5802,7 +5804,7 @@ func awsAwsjson11_deserializeDocumentBuildBatch(v **types.BuildBatch, value inte return nil } -func awsAwsjson11_deserializeDocumentBuildBatches(v *[]*types.BuildBatch, value interface{}) error { +func awsAwsjson11_deserializeDocumentBuildBatches(v *[]types.BuildBatch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5815,18 +5817,20 @@ func awsAwsjson11_deserializeDocumentBuildBatches(v *[]*types.BuildBatch, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BuildBatch + var cv []types.BuildBatch if *v == nil { - cv = []*types.BuildBatch{} + cv = []types.BuildBatch{} } else { cv = *v } for _, value := range shape { - var col *types.BuildBatch - if err := awsAwsjson11_deserializeDocumentBuildBatch(&col, value); err != nil { + var col types.BuildBatch + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBuildBatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5834,7 +5838,7 @@ func awsAwsjson11_deserializeDocumentBuildBatches(v *[]*types.BuildBatch, value return nil } -func awsAwsjson11_deserializeDocumentBuildBatchIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentBuildBatchIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5847,21 +5851,21 @@ func awsAwsjson11_deserializeDocumentBuildBatchIds(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5907,7 +5911,7 @@ func awsAwsjson11_deserializeDocumentBuildBatchPhase(v **types.BuildBatchPhase, if err != nil { return err } - sv.DurationInSeconds = &i64 + sv.DurationInSeconds = ptr.Int64(i64) } case "endTime": @@ -5963,7 +5967,7 @@ func awsAwsjson11_deserializeDocumentBuildBatchPhase(v **types.BuildBatchPhase, return nil } -func awsAwsjson11_deserializeDocumentBuildBatchPhases(v *[]*types.BuildBatchPhase, value interface{}) error { +func awsAwsjson11_deserializeDocumentBuildBatchPhases(v *[]types.BuildBatchPhase, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5976,18 +5980,20 @@ func awsAwsjson11_deserializeDocumentBuildBatchPhases(v *[]*types.BuildBatchPhas return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BuildBatchPhase + var cv []types.BuildBatchPhase if *v == nil { - cv = []*types.BuildBatchPhase{} + cv = []types.BuildBatchPhase{} } else { cv = *v } for _, value := range shape { - var col *types.BuildBatchPhase - if err := awsAwsjson11_deserializeDocumentBuildBatchPhase(&col, value); err != nil { + var col types.BuildBatchPhase + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBuildBatchPhase(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6033,7 +6039,7 @@ func awsAwsjson11_deserializeDocumentBuildGroup(v **types.BuildGroup, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Identifier = &jtv + sv.Identifier = ptr.String(jtv) } case "ignoreFailure": @@ -6042,7 +6048,7 @@ func awsAwsjson11_deserializeDocumentBuildGroup(v **types.BuildGroup, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IgnoreFailure = &jtv + sv.IgnoreFailure = jtv } case "priorBuildSummaryList": @@ -6059,7 +6065,7 @@ func awsAwsjson11_deserializeDocumentBuildGroup(v **types.BuildGroup, value inte return nil } -func awsAwsjson11_deserializeDocumentBuildGroups(v *[]*types.BuildGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentBuildGroups(v *[]types.BuildGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6072,18 +6078,20 @@ func awsAwsjson11_deserializeDocumentBuildGroups(v *[]*types.BuildGroup, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BuildGroup + var cv []types.BuildGroup if *v == nil { - cv = []*types.BuildGroup{} + cv = []types.BuildGroup{} } else { cv = *v } for _, value := range shape { - var col *types.BuildGroup - if err := awsAwsjson11_deserializeDocumentBuildGroup(&col, value); err != nil { + var col types.BuildGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBuildGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6091,7 +6099,7 @@ func awsAwsjson11_deserializeDocumentBuildGroups(v *[]*types.BuildGroup, value i return nil } -func awsAwsjson11_deserializeDocumentBuildIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentBuildIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6104,21 +6112,21 @@ func awsAwsjson11_deserializeDocumentBuildIds(v *[]*string, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6155,7 +6163,7 @@ func awsAwsjson11_deserializeDocumentBuildNotDeleted(v **types.BuildNotDeleted, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "statusCode": @@ -6164,7 +6172,7 @@ func awsAwsjson11_deserializeDocumentBuildNotDeleted(v **types.BuildNotDeleted, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -6213,7 +6221,7 @@ func awsAwsjson11_deserializeDocumentBuildPhase(v **types.BuildPhase, value inte if err != nil { return err } - sv.DurationInSeconds = &i64 + sv.DurationInSeconds = ptr.Int64(i64) } case "endTime": @@ -6269,7 +6277,7 @@ func awsAwsjson11_deserializeDocumentBuildPhase(v **types.BuildPhase, value inte return nil } -func awsAwsjson11_deserializeDocumentBuildPhases(v *[]*types.BuildPhase, value interface{}) error { +func awsAwsjson11_deserializeDocumentBuildPhases(v *[]types.BuildPhase, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6282,18 +6290,20 @@ func awsAwsjson11_deserializeDocumentBuildPhases(v *[]*types.BuildPhase, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BuildPhase + var cv []types.BuildPhase if *v == nil { - cv = []*types.BuildPhase{} + cv = []types.BuildPhase{} } else { cv = *v } for _, value := range shape { - var col *types.BuildPhase - if err := awsAwsjson11_deserializeDocumentBuildPhase(&col, value); err != nil { + var col types.BuildPhase + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBuildPhase(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6301,7 +6311,7 @@ func awsAwsjson11_deserializeDocumentBuildPhases(v *[]*types.BuildPhase, value i return nil } -func awsAwsjson11_deserializeDocumentBuildReportArns(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentBuildReportArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6314,21 +6324,21 @@ func awsAwsjson11_deserializeDocumentBuildReportArns(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -6337,7 +6347,7 @@ func awsAwsjson11_deserializeDocumentBuildReportArns(v *[]*string, value interfa return nil } -func awsAwsjson11_deserializeDocumentBuilds(v *[]*types.Build, value interface{}) error { +func awsAwsjson11_deserializeDocumentBuilds(v *[]types.Build, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6350,18 +6360,20 @@ func awsAwsjson11_deserializeDocumentBuilds(v *[]*types.Build, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Build + var cv []types.Build if *v == nil { - cv = []*types.Build{} + cv = []types.Build{} } else { cv = *v } for _, value := range shape { - var col *types.Build - if err := awsAwsjson11_deserializeDocumentBuild(&col, value); err != nil { + var col types.Build + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBuild(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6369,7 +6381,7 @@ func awsAwsjson11_deserializeDocumentBuilds(v *[]*types.Build, value interface{} return nil } -func awsAwsjson11_deserializeDocumentBuildsNotDeleted(v *[]*types.BuildNotDeleted, value interface{}) error { +func awsAwsjson11_deserializeDocumentBuildsNotDeleted(v *[]types.BuildNotDeleted, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6382,18 +6394,20 @@ func awsAwsjson11_deserializeDocumentBuildsNotDeleted(v *[]*types.BuildNotDelete return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BuildNotDeleted + var cv []types.BuildNotDeleted if *v == nil { - cv = []*types.BuildNotDeleted{} + cv = []types.BuildNotDeleted{} } else { cv = *v } for _, value := range shape { - var col *types.BuildNotDeleted - if err := awsAwsjson11_deserializeDocumentBuildNotDeleted(&col, value); err != nil { + var col types.BuildNotDeleted + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBuildNotDeleted(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6429,7 +6443,7 @@ func awsAwsjson11_deserializeDocumentBuildStatusConfig(v **types.BuildStatusConf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Context = &jtv + sv.Context = ptr.String(jtv) } case "targetUrl": @@ -6438,7 +6452,7 @@ func awsAwsjson11_deserializeDocumentBuildStatusConfig(v **types.BuildStatusConf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TargetUrl = &jtv + sv.TargetUrl = ptr.String(jtv) } default: @@ -6450,7 +6464,7 @@ func awsAwsjson11_deserializeDocumentBuildStatusConfig(v **types.BuildStatusConf return nil } -func awsAwsjson11_deserializeDocumentBuildSummaries(v *[]*types.BuildSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentBuildSummaries(v *[]types.BuildSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6463,18 +6477,20 @@ func awsAwsjson11_deserializeDocumentBuildSummaries(v *[]*types.BuildSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BuildSummary + var cv []types.BuildSummary if *v == nil { - cv = []*types.BuildSummary{} + cv = []types.BuildSummary{} } else { cv = *v } for _, value := range shape { - var col *types.BuildSummary - if err := awsAwsjson11_deserializeDocumentBuildSummary(&col, value); err != nil { + var col types.BuildSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBuildSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6510,7 +6526,7 @@ func awsAwsjson11_deserializeDocumentBuildSummary(v **types.BuildSummary, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "buildStatus": @@ -6582,7 +6598,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLogsConfig(v **types.CloudWatchLo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } case "status": @@ -6600,7 +6616,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLogsConfig(v **types.CloudWatchLo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } default: @@ -6644,7 +6660,7 @@ func awsAwsjson11_deserializeDocumentCodeCoverage(v **types.CodeCoverage, value if err != nil { return err } - sv.BranchCoveragePercentage = &f64 + sv.BranchCoveragePercentage = ptr.Float64(f64) } case "branchesCovered": @@ -6692,7 +6708,7 @@ func awsAwsjson11_deserializeDocumentCodeCoverage(v **types.CodeCoverage, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FilePath = &jtv + sv.FilePath = ptr.String(jtv) } case "id": @@ -6701,7 +6717,7 @@ func awsAwsjson11_deserializeDocumentCodeCoverage(v **types.CodeCoverage, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "lineCoveragePercentage": @@ -6714,7 +6730,7 @@ func awsAwsjson11_deserializeDocumentCodeCoverage(v **types.CodeCoverage, value if err != nil { return err } - sv.LineCoveragePercentage = &f64 + sv.LineCoveragePercentage = ptr.Float64(f64) } case "linesCovered": @@ -6749,7 +6765,7 @@ func awsAwsjson11_deserializeDocumentCodeCoverage(v **types.CodeCoverage, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ReportARN = &jtv + sv.ReportARN = ptr.String(jtv) } default: @@ -6793,7 +6809,7 @@ func awsAwsjson11_deserializeDocumentCodeCoverageReportSummary(v **types.CodeCov if err != nil { return err } - sv.BranchCoveragePercentage = &f64 + sv.BranchCoveragePercentage = ptr.Float64(f64) } case "branchesCovered": @@ -6832,7 +6848,7 @@ func awsAwsjson11_deserializeDocumentCodeCoverageReportSummary(v **types.CodeCov if err != nil { return err } - sv.LineCoveragePercentage = &f64 + sv.LineCoveragePercentage = ptr.Float64(f64) } case "linesCovered": @@ -6870,7 +6886,7 @@ func awsAwsjson11_deserializeDocumentCodeCoverageReportSummary(v **types.CodeCov return nil } -func awsAwsjson11_deserializeDocumentCodeCoverages(v *[]*types.CodeCoverage, value interface{}) error { +func awsAwsjson11_deserializeDocumentCodeCoverages(v *[]types.CodeCoverage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6883,18 +6899,20 @@ func awsAwsjson11_deserializeDocumentCodeCoverages(v *[]*types.CodeCoverage, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CodeCoverage + var cv []types.CodeCoverage if *v == nil { - cv = []*types.CodeCoverage{} + cv = []types.CodeCoverage{} } else { cv = *v } for _, value := range shape { - var col *types.CodeCoverage - if err := awsAwsjson11_deserializeDocumentCodeCoverage(&col, value); err != nil { + var col types.CodeCoverage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCodeCoverage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6902,7 +6920,7 @@ func awsAwsjson11_deserializeDocumentCodeCoverages(v *[]*types.CodeCoverage, val return nil } -func awsAwsjson11_deserializeDocumentComputeTypesAllowed(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentComputeTypesAllowed(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6915,21 +6933,21 @@ func awsAwsjson11_deserializeDocumentComputeTypesAllowed(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6966,7 +6984,7 @@ func awsAwsjson11_deserializeDocumentDebugSession(v **types.DebugSession, value if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.SessionEnabled = &jtv + sv.SessionEnabled = ptr.Bool(jtv) } case "sessionTarget": @@ -6975,7 +6993,7 @@ func awsAwsjson11_deserializeDocumentDebugSession(v **types.DebugSession, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SessionTarget = &jtv + sv.SessionTarget = ptr.String(jtv) } default: @@ -7015,7 +7033,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentImage(v **types.EnvironmentImage if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "name": @@ -7024,7 +7042,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentImage(v **types.EnvironmentImage if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "versions": @@ -7041,7 +7059,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentImage(v **types.EnvironmentImage return nil } -func awsAwsjson11_deserializeDocumentEnvironmentImages(v *[]*types.EnvironmentImage, value interface{}) error { +func awsAwsjson11_deserializeDocumentEnvironmentImages(v *[]types.EnvironmentImage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7054,18 +7072,20 @@ func awsAwsjson11_deserializeDocumentEnvironmentImages(v *[]*types.EnvironmentIm return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EnvironmentImage + var cv []types.EnvironmentImage if *v == nil { - cv = []*types.EnvironmentImage{} + cv = []types.EnvironmentImage{} } else { cv = *v } for _, value := range shape { - var col *types.EnvironmentImage - if err := awsAwsjson11_deserializeDocumentEnvironmentImage(&col, value); err != nil { + var col types.EnvironmentImage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEnvironmentImage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7118,7 +7138,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentLanguage(v **types.EnvironmentLa return nil } -func awsAwsjson11_deserializeDocumentEnvironmentLanguages(v *[]*types.EnvironmentLanguage, value interface{}) error { +func awsAwsjson11_deserializeDocumentEnvironmentLanguages(v *[]types.EnvironmentLanguage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7131,18 +7151,20 @@ func awsAwsjson11_deserializeDocumentEnvironmentLanguages(v *[]*types.Environmen return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EnvironmentLanguage + var cv []types.EnvironmentLanguage if *v == nil { - cv = []*types.EnvironmentLanguage{} + cv = []types.EnvironmentLanguage{} } else { cv = *v } for _, value := range shape { - var col *types.EnvironmentLanguage - if err := awsAwsjson11_deserializeDocumentEnvironmentLanguage(&col, value); err != nil { + var col types.EnvironmentLanguage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEnvironmentLanguage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7195,7 +7217,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentPlatform(v **types.EnvironmentPl return nil } -func awsAwsjson11_deserializeDocumentEnvironmentPlatforms(v *[]*types.EnvironmentPlatform, value interface{}) error { +func awsAwsjson11_deserializeDocumentEnvironmentPlatforms(v *[]types.EnvironmentPlatform, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7208,18 +7230,20 @@ func awsAwsjson11_deserializeDocumentEnvironmentPlatforms(v *[]*types.Environmen return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EnvironmentPlatform + var cv []types.EnvironmentPlatform if *v == nil { - cv = []*types.EnvironmentPlatform{} + cv = []types.EnvironmentPlatform{} } else { cv = *v } for _, value := range shape { - var col *types.EnvironmentPlatform - if err := awsAwsjson11_deserializeDocumentEnvironmentPlatform(&col, value); err != nil { + var col types.EnvironmentPlatform + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEnvironmentPlatform(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7255,7 +7279,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentVariable(v **types.EnvironmentVa if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "type": @@ -7273,7 +7297,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentVariable(v **types.EnvironmentVa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -7285,7 +7309,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentVariable(v **types.EnvironmentVa return nil } -func awsAwsjson11_deserializeDocumentEnvironmentVariables(v *[]*types.EnvironmentVariable, value interface{}) error { +func awsAwsjson11_deserializeDocumentEnvironmentVariables(v *[]types.EnvironmentVariable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7298,18 +7322,20 @@ func awsAwsjson11_deserializeDocumentEnvironmentVariables(v *[]*types.Environmen return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EnvironmentVariable + var cv []types.EnvironmentVariable if *v == nil { - cv = []*types.EnvironmentVariable{} + cv = []types.EnvironmentVariable{} } else { cv = *v } for _, value := range shape { - var col *types.EnvironmentVariable - if err := awsAwsjson11_deserializeDocumentEnvironmentVariable(&col, value); err != nil { + var col types.EnvironmentVariable + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEnvironmentVariable(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7345,7 +7371,7 @@ func awsAwsjson11_deserializeDocumentExportedEnvironmentVariable(v **types.Expor if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "value": @@ -7354,7 +7380,7 @@ func awsAwsjson11_deserializeDocumentExportedEnvironmentVariable(v **types.Expor if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -7366,7 +7392,7 @@ func awsAwsjson11_deserializeDocumentExportedEnvironmentVariable(v **types.Expor return nil } -func awsAwsjson11_deserializeDocumentExportedEnvironmentVariables(v *[]*types.ExportedEnvironmentVariable, value interface{}) error { +func awsAwsjson11_deserializeDocumentExportedEnvironmentVariables(v *[]types.ExportedEnvironmentVariable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7379,18 +7405,20 @@ func awsAwsjson11_deserializeDocumentExportedEnvironmentVariables(v *[]*types.Ex return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExportedEnvironmentVariable + var cv []types.ExportedEnvironmentVariable if *v == nil { - cv = []*types.ExportedEnvironmentVariable{} + cv = []types.ExportedEnvironmentVariable{} } else { cv = *v } for _, value := range shape { - var col *types.ExportedEnvironmentVariable - if err := awsAwsjson11_deserializeDocumentExportedEnvironmentVariable(&col, value); err != nil { + var col types.ExportedEnvironmentVariable + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExportedEnvironmentVariable(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7398,7 +7426,7 @@ func awsAwsjson11_deserializeDocumentExportedEnvironmentVariables(v *[]*types.Ex return nil } -func awsAwsjson11_deserializeDocumentFilterGroup(v *[]*types.WebhookFilter, value interface{}) error { +func awsAwsjson11_deserializeDocumentFilterGroup(v *[]types.WebhookFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7411,18 +7439,20 @@ func awsAwsjson11_deserializeDocumentFilterGroup(v *[]*types.WebhookFilter, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WebhookFilter + var cv []types.WebhookFilter if *v == nil { - cv = []*types.WebhookFilter{} + cv = []types.WebhookFilter{} } else { cv = *v } for _, value := range shape { - var col *types.WebhookFilter - if err := awsAwsjson11_deserializeDocumentWebhookFilter(&col, value); err != nil { + var col types.WebhookFilter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWebhookFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7430,7 +7460,7 @@ func awsAwsjson11_deserializeDocumentFilterGroup(v *[]*types.WebhookFilter, valu return nil } -func awsAwsjson11_deserializeDocumentFilterGroups(v *[][]*types.WebhookFilter, value interface{}) error { +func awsAwsjson11_deserializeDocumentFilterGroups(v *[][]types.WebhookFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7443,15 +7473,15 @@ func awsAwsjson11_deserializeDocumentFilterGroups(v *[][]*types.WebhookFilter, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv [][]*types.WebhookFilter + var cv [][]types.WebhookFilter if *v == nil { - cv = [][]*types.WebhookFilter{} + cv = [][]types.WebhookFilter{} } else { cv = *v } for _, value := range shape { - var col []*types.WebhookFilter + var col []types.WebhookFilter if err := awsAwsjson11_deserializeDocumentFilterGroup(&col, value); err != nil { return err } @@ -7490,7 +7520,7 @@ func awsAwsjson11_deserializeDocumentGitSubmodulesConfig(v **types.GitSubmodules if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.FetchSubmodules = &jtv + sv.FetchSubmodules = ptr.Bool(jtv) } default: @@ -7502,7 +7532,7 @@ func awsAwsjson11_deserializeDocumentGitSubmodulesConfig(v **types.GitSubmodules return nil } -func awsAwsjson11_deserializeDocumentIdentifiers(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIdentifiers(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7515,21 +7545,21 @@ func awsAwsjson11_deserializeDocumentIdentifiers(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7538,7 +7568,7 @@ func awsAwsjson11_deserializeDocumentIdentifiers(v *[]*string, value interface{} return nil } -func awsAwsjson11_deserializeDocumentImageVersions(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentImageVersions(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7551,21 +7581,21 @@ func awsAwsjson11_deserializeDocumentImageVersions(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -7602,7 +7632,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7688,7 +7718,7 @@ func awsAwsjson11_deserializeDocumentLogsLocation(v **types.LogsLocation, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CloudWatchLogsArn = &jtv + sv.CloudWatchLogsArn = ptr.String(jtv) } case "deepLink": @@ -7697,7 +7727,7 @@ func awsAwsjson11_deserializeDocumentLogsLocation(v **types.LogsLocation, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeepLink = &jtv + sv.DeepLink = ptr.String(jtv) } case "groupName": @@ -7706,7 +7736,7 @@ func awsAwsjson11_deserializeDocumentLogsLocation(v **types.LogsLocation, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } case "s3DeepLink": @@ -7715,7 +7745,7 @@ func awsAwsjson11_deserializeDocumentLogsLocation(v **types.LogsLocation, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3DeepLink = &jtv + sv.S3DeepLink = ptr.String(jtv) } case "s3Logs": @@ -7729,7 +7759,7 @@ func awsAwsjson11_deserializeDocumentLogsLocation(v **types.LogsLocation, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3LogsArn = &jtv + sv.S3LogsArn = ptr.String(jtv) } case "streamName": @@ -7738,7 +7768,7 @@ func awsAwsjson11_deserializeDocumentLogsLocation(v **types.LogsLocation, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } default: @@ -7778,7 +7808,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NetworkInterfaceId = &jtv + sv.NetworkInterfaceId = ptr.String(jtv) } case "subnetId": @@ -7787,7 +7817,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } default: @@ -7827,7 +7857,7 @@ func awsAwsjson11_deserializeDocumentOAuthProviderException(v **types.OAuthProvi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7867,7 +7897,7 @@ func awsAwsjson11_deserializeDocumentPhaseContext(v **types.PhaseContext, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "statusCode": @@ -7876,7 +7906,7 @@ func awsAwsjson11_deserializeDocumentPhaseContext(v **types.PhaseContext, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -7888,7 +7918,7 @@ func awsAwsjson11_deserializeDocumentPhaseContext(v **types.PhaseContext, value return nil } -func awsAwsjson11_deserializeDocumentPhaseContexts(v *[]*types.PhaseContext, value interface{}) error { +func awsAwsjson11_deserializeDocumentPhaseContexts(v *[]types.PhaseContext, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7901,18 +7931,20 @@ func awsAwsjson11_deserializeDocumentPhaseContexts(v *[]*types.PhaseContext, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PhaseContext + var cv []types.PhaseContext if *v == nil { - cv = []*types.PhaseContext{} + cv = []types.PhaseContext{} } else { cv = *v } for _, value := range shape { - var col *types.PhaseContext - if err := awsAwsjson11_deserializeDocumentPhaseContext(&col, value); err != nil { + var col types.PhaseContext + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPhaseContext(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7948,7 +7980,7 @@ func awsAwsjson11_deserializeDocumentProject(v **types.Project, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "artifacts": @@ -7990,7 +8022,7 @@ func awsAwsjson11_deserializeDocumentProject(v **types.Project, value interface{ if !ok { return fmt.Errorf("expected ProjectDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "encryptionKey": @@ -7999,7 +8031,7 @@ func awsAwsjson11_deserializeDocumentProject(v **types.Project, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EncryptionKey = &jtv + sv.EncryptionKey = ptr.String(jtv) } case "environment": @@ -8036,7 +8068,7 @@ func awsAwsjson11_deserializeDocumentProject(v **types.Project, value interface{ if !ok { return fmt.Errorf("expected ProjectName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "queuedTimeoutInMinutes": @@ -8073,7 +8105,7 @@ func awsAwsjson11_deserializeDocumentProject(v **types.Project, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } case "source": @@ -8087,7 +8119,7 @@ func awsAwsjson11_deserializeDocumentProject(v **types.Project, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceVersion = &jtv + sv.SourceVersion = ptr.String(jtv) } case "tags": @@ -8127,7 +8159,7 @@ func awsAwsjson11_deserializeDocumentProject(v **types.Project, value interface{ return nil } -func awsAwsjson11_deserializeDocumentProjectArns(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentProjectArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8140,21 +8172,21 @@ func awsAwsjson11_deserializeDocumentProjectArns(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8191,7 +8223,7 @@ func awsAwsjson11_deserializeDocumentProjectArtifacts(v **types.ProjectArtifacts if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ArtifactIdentifier = &jtv + sv.ArtifactIdentifier = ptr.String(jtv) } case "encryptionDisabled": @@ -8200,7 +8232,7 @@ func awsAwsjson11_deserializeDocumentProjectArtifacts(v **types.ProjectArtifacts if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.EncryptionDisabled = &jtv + sv.EncryptionDisabled = ptr.Bool(jtv) } case "location": @@ -8209,7 +8241,7 @@ func awsAwsjson11_deserializeDocumentProjectArtifacts(v **types.ProjectArtifacts if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "name": @@ -8218,7 +8250,7 @@ func awsAwsjson11_deserializeDocumentProjectArtifacts(v **types.ProjectArtifacts if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "namespaceType": @@ -8236,7 +8268,7 @@ func awsAwsjson11_deserializeDocumentProjectArtifacts(v **types.ProjectArtifacts if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.OverrideArtifactName = &jtv + sv.OverrideArtifactName = ptr.Bool(jtv) } case "packaging": @@ -8254,7 +8286,7 @@ func awsAwsjson11_deserializeDocumentProjectArtifacts(v **types.ProjectArtifacts if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "type": @@ -8275,7 +8307,7 @@ func awsAwsjson11_deserializeDocumentProjectArtifacts(v **types.ProjectArtifacts return nil } -func awsAwsjson11_deserializeDocumentProjectArtifactsList(v *[]*types.ProjectArtifacts, value interface{}) error { +func awsAwsjson11_deserializeDocumentProjectArtifactsList(v *[]types.ProjectArtifacts, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8288,18 +8320,20 @@ func awsAwsjson11_deserializeDocumentProjectArtifactsList(v *[]*types.ProjectArt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProjectArtifacts + var cv []types.ProjectArtifacts if *v == nil { - cv = []*types.ProjectArtifacts{} + cv = []types.ProjectArtifacts{} } else { cv = *v } for _, value := range shape { - var col *types.ProjectArtifacts - if err := awsAwsjson11_deserializeDocumentProjectArtifacts(&col, value); err != nil { + var col types.ProjectArtifacts + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProjectArtifacts(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8335,7 +8369,7 @@ func awsAwsjson11_deserializeDocumentProjectBadge(v **types.ProjectBadge, value if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.BadgeEnabled = &jtv + sv.BadgeEnabled = jtv } case "badgeRequestUrl": @@ -8344,7 +8378,7 @@ func awsAwsjson11_deserializeDocumentProjectBadge(v **types.ProjectBadge, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BadgeRequestUrl = &jtv + sv.BadgeRequestUrl = ptr.String(jtv) } default: @@ -8384,7 +8418,7 @@ func awsAwsjson11_deserializeDocumentProjectBuildBatchConfig(v **types.ProjectBu if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.CombineArtifacts = &jtv + sv.CombineArtifacts = ptr.Bool(jtv) } case "restrictions": @@ -8398,7 +8432,7 @@ func awsAwsjson11_deserializeDocumentProjectBuildBatchConfig(v **types.ProjectBu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } case "timeoutInMins": @@ -8451,7 +8485,7 @@ func awsAwsjson11_deserializeDocumentProjectCache(v **types.ProjectCache, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "modes": @@ -8541,7 +8575,7 @@ func awsAwsjson11_deserializeDocumentProjectEnvironment(v **types.ProjectEnviron if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Certificate = &jtv + sv.Certificate = ptr.String(jtv) } case "computeType": @@ -8564,7 +8598,7 @@ func awsAwsjson11_deserializeDocumentProjectEnvironment(v **types.ProjectEnviron if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Image = &jtv + sv.Image = ptr.String(jtv) } case "imagePullCredentialsType": @@ -8582,7 +8616,7 @@ func awsAwsjson11_deserializeDocumentProjectEnvironment(v **types.ProjectEnviron if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.PrivilegedMode = &jtv + sv.PrivilegedMode = ptr.Bool(jtv) } case "registryCredential": @@ -8636,7 +8670,7 @@ func awsAwsjson11_deserializeDocumentProjectFileSystemLocation(v **types.Project if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Identifier = &jtv + sv.Identifier = ptr.String(jtv) } case "location": @@ -8645,7 +8679,7 @@ func awsAwsjson11_deserializeDocumentProjectFileSystemLocation(v **types.Project if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "mountOptions": @@ -8654,7 +8688,7 @@ func awsAwsjson11_deserializeDocumentProjectFileSystemLocation(v **types.Project if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MountOptions = &jtv + sv.MountOptions = ptr.String(jtv) } case "mountPoint": @@ -8663,7 +8697,7 @@ func awsAwsjson11_deserializeDocumentProjectFileSystemLocation(v **types.Project if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MountPoint = &jtv + sv.MountPoint = ptr.String(jtv) } case "type": @@ -8684,7 +8718,7 @@ func awsAwsjson11_deserializeDocumentProjectFileSystemLocation(v **types.Project return nil } -func awsAwsjson11_deserializeDocumentProjectFileSystemLocations(v *[]*types.ProjectFileSystemLocation, value interface{}) error { +func awsAwsjson11_deserializeDocumentProjectFileSystemLocations(v *[]types.ProjectFileSystemLocation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8697,18 +8731,20 @@ func awsAwsjson11_deserializeDocumentProjectFileSystemLocations(v *[]*types.Proj return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProjectFileSystemLocation + var cv []types.ProjectFileSystemLocation if *v == nil { - cv = []*types.ProjectFileSystemLocation{} + cv = []types.ProjectFileSystemLocation{} } else { cv = *v } for _, value := range shape { - var col *types.ProjectFileSystemLocation - if err := awsAwsjson11_deserializeDocumentProjectFileSystemLocation(&col, value); err != nil { + var col types.ProjectFileSystemLocation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProjectFileSystemLocation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8716,7 +8752,7 @@ func awsAwsjson11_deserializeDocumentProjectFileSystemLocations(v *[]*types.Proj return nil } -func awsAwsjson11_deserializeDocumentProjectNames(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentProjectNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8729,21 +8765,21 @@ func awsAwsjson11_deserializeDocumentProjectNames(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8752,7 +8788,7 @@ func awsAwsjson11_deserializeDocumentProjectNames(v *[]*string, value interface{ return nil } -func awsAwsjson11_deserializeDocumentProjects(v *[]*types.Project, value interface{}) error { +func awsAwsjson11_deserializeDocumentProjects(v *[]types.Project, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8765,18 +8801,20 @@ func awsAwsjson11_deserializeDocumentProjects(v *[]*types.Project, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Project + var cv []types.Project if *v == nil { - cv = []*types.Project{} + cv = []types.Project{} } else { cv = *v } for _, value := range shape { - var col *types.Project - if err := awsAwsjson11_deserializeDocumentProject(&col, value); err != nil { + var col types.Project + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProject(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8784,7 +8822,7 @@ func awsAwsjson11_deserializeDocumentProjects(v *[]*types.Project, value interfa return nil } -func awsAwsjson11_deserializeDocumentProjectSecondarySourceVersions(v *[]*types.ProjectSourceVersion, value interface{}) error { +func awsAwsjson11_deserializeDocumentProjectSecondarySourceVersions(v *[]types.ProjectSourceVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8797,18 +8835,20 @@ func awsAwsjson11_deserializeDocumentProjectSecondarySourceVersions(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProjectSourceVersion + var cv []types.ProjectSourceVersion if *v == nil { - cv = []*types.ProjectSourceVersion{} + cv = []types.ProjectSourceVersion{} } else { cv = *v } for _, value := range shape { - var col *types.ProjectSourceVersion - if err := awsAwsjson11_deserializeDocumentProjectSourceVersion(&col, value); err != nil { + var col types.ProjectSourceVersion + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProjectSourceVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8849,7 +8889,7 @@ func awsAwsjson11_deserializeDocumentProjectSource(v **types.ProjectSource, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Buildspec = &jtv + sv.Buildspec = ptr.String(jtv) } case "buildStatusConfig": @@ -8881,7 +8921,7 @@ func awsAwsjson11_deserializeDocumentProjectSource(v **types.ProjectSource, valu if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.InsecureSsl = &jtv + sv.InsecureSsl = ptr.Bool(jtv) } case "location": @@ -8890,7 +8930,7 @@ func awsAwsjson11_deserializeDocumentProjectSource(v **types.ProjectSource, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "reportBuildStatus": @@ -8899,7 +8939,7 @@ func awsAwsjson11_deserializeDocumentProjectSource(v **types.ProjectSource, valu if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.ReportBuildStatus = &jtv + sv.ReportBuildStatus = ptr.Bool(jtv) } case "sourceIdentifier": @@ -8908,7 +8948,7 @@ func awsAwsjson11_deserializeDocumentProjectSource(v **types.ProjectSource, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceIdentifier = &jtv + sv.SourceIdentifier = ptr.String(jtv) } case "type": @@ -8929,7 +8969,7 @@ func awsAwsjson11_deserializeDocumentProjectSource(v **types.ProjectSource, valu return nil } -func awsAwsjson11_deserializeDocumentProjectSources(v *[]*types.ProjectSource, value interface{}) error { +func awsAwsjson11_deserializeDocumentProjectSources(v *[]types.ProjectSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8942,18 +8982,20 @@ func awsAwsjson11_deserializeDocumentProjectSources(v *[]*types.ProjectSource, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProjectSource + var cv []types.ProjectSource if *v == nil { - cv = []*types.ProjectSource{} + cv = []types.ProjectSource{} } else { cv = *v } for _, value := range shape { - var col *types.ProjectSource - if err := awsAwsjson11_deserializeDocumentProjectSource(&col, value); err != nil { + var col types.ProjectSource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProjectSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8989,7 +9031,7 @@ func awsAwsjson11_deserializeDocumentProjectSourceVersion(v **types.ProjectSourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceIdentifier = &jtv + sv.SourceIdentifier = ptr.String(jtv) } case "sourceVersion": @@ -8998,7 +9040,7 @@ func awsAwsjson11_deserializeDocumentProjectSourceVersion(v **types.ProjectSourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceVersion = &jtv + sv.SourceVersion = ptr.String(jtv) } default: @@ -9038,7 +9080,7 @@ func awsAwsjson11_deserializeDocumentRegistryCredential(v **types.RegistryCreden if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Credential = &jtv + sv.Credential = ptr.String(jtv) } case "credentialProvider": @@ -9087,7 +9129,7 @@ func awsAwsjson11_deserializeDocumentReport(v **types.Report, value interface{}) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "codeCoverageSummary": @@ -9114,7 +9156,7 @@ func awsAwsjson11_deserializeDocumentReport(v **types.Report, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExecutionId = &jtv + sv.ExecutionId = ptr.String(jtv) } case "expired": @@ -9141,7 +9183,7 @@ func awsAwsjson11_deserializeDocumentReport(v **types.Report, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "reportGroupArn": @@ -9150,7 +9192,7 @@ func awsAwsjson11_deserializeDocumentReport(v **types.Report, value interface{}) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ReportGroupArn = &jtv + sv.ReportGroupArn = ptr.String(jtv) } case "status": @@ -9173,7 +9215,7 @@ func awsAwsjson11_deserializeDocumentReport(v **types.Report, value interface{}) if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = ptr.Bool(jtv) } case "type": @@ -9194,7 +9236,7 @@ func awsAwsjson11_deserializeDocumentReport(v **types.Report, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentReportArns(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentReportArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9207,21 +9249,21 @@ func awsAwsjson11_deserializeDocumentReportArns(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9303,7 +9345,7 @@ func awsAwsjson11_deserializeDocumentReportGroup(v **types.ReportGroup, value in if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "created": @@ -9343,7 +9385,7 @@ func awsAwsjson11_deserializeDocumentReportGroup(v **types.ReportGroup, value in if !ok { return fmt.Errorf("expected ReportGroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -9369,7 +9411,7 @@ func awsAwsjson11_deserializeDocumentReportGroup(v **types.ReportGroup, value in return nil } -func awsAwsjson11_deserializeDocumentReportGroupArns(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentReportGroupArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9382,21 +9424,21 @@ func awsAwsjson11_deserializeDocumentReportGroupArns(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9405,7 +9447,7 @@ func awsAwsjson11_deserializeDocumentReportGroupArns(v *[]*string, value interfa return nil } -func awsAwsjson11_deserializeDocumentReportGroups(v *[]*types.ReportGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentReportGroups(v *[]types.ReportGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9418,18 +9460,20 @@ func awsAwsjson11_deserializeDocumentReportGroups(v *[]*types.ReportGroup, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReportGroup + var cv []types.ReportGroup if *v == nil { - cv = []*types.ReportGroup{} + cv = []types.ReportGroup{} } else { cv = *v } for _, value := range shape { - var col *types.ReportGroup - if err := awsAwsjson11_deserializeDocumentReportGroup(&col, value); err != nil { + var col types.ReportGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReportGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9437,7 +9481,7 @@ func awsAwsjson11_deserializeDocumentReportGroups(v *[]*types.ReportGroup, value return nil } -func awsAwsjson11_deserializeDocumentReports(v *[]*types.Report, value interface{}) error { +func awsAwsjson11_deserializeDocumentReports(v *[]types.Report, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9450,18 +9494,20 @@ func awsAwsjson11_deserializeDocumentReports(v *[]*types.Report, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Report + var cv []types.Report if *v == nil { - cv = []*types.Report{} + cv = []types.Report{} } else { cv = *v } for _, value := range shape { - var col *types.Report - if err := awsAwsjson11_deserializeDocumentReport(&col, value); err != nil { + var col types.Report + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReport(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9469,7 +9515,7 @@ func awsAwsjson11_deserializeDocumentReports(v *[]*types.Report, value interface return nil } -func awsAwsjson11_deserializeDocumentReportStatusCounts(v *map[string]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentReportStatusCounts(v *map[string]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9482,15 +9528,15 @@ func awsAwsjson11_deserializeDocumentReportStatusCounts(v *map[string]*int32, va return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*int32 + var mv map[string]int32 if *v == nil { - mv = map[string]*int32{} + mv = map[string]int32{} } else { mv = *v } for key, value := range shape { - var parsedVal *int32 + var parsedVal int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -9500,7 +9546,7 @@ func awsAwsjson11_deserializeDocumentReportStatusCounts(v *map[string]*int32, va if err != nil { return err } - parsedVal = ptr.Int32(int32(i64)) + parsedVal = int32(i64) } mv[key] = parsedVal @@ -9537,7 +9583,7 @@ func awsAwsjson11_deserializeDocumentResolvedArtifact(v **types.ResolvedArtifact if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Identifier = &jtv + sv.Identifier = ptr.String(jtv) } case "location": @@ -9546,7 +9592,7 @@ func awsAwsjson11_deserializeDocumentResolvedArtifact(v **types.ResolvedArtifact if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "type": @@ -9567,7 +9613,7 @@ func awsAwsjson11_deserializeDocumentResolvedArtifact(v **types.ResolvedArtifact return nil } -func awsAwsjson11_deserializeDocumentResolvedSecondaryArtifacts(v *[]*types.ResolvedArtifact, value interface{}) error { +func awsAwsjson11_deserializeDocumentResolvedSecondaryArtifacts(v *[]types.ResolvedArtifact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9580,18 +9626,20 @@ func awsAwsjson11_deserializeDocumentResolvedSecondaryArtifacts(v *[]*types.Reso return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResolvedArtifact + var cv []types.ResolvedArtifact if *v == nil { - cv = []*types.ResolvedArtifact{} + cv = []types.ResolvedArtifact{} } else { cv = *v } for _, value := range shape { - var col *types.ResolvedArtifact - if err := awsAwsjson11_deserializeDocumentResolvedArtifact(&col, value); err != nil { + var col types.ResolvedArtifact + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResolvedArtifact(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9627,7 +9675,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9667,7 +9715,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9707,7 +9755,7 @@ func awsAwsjson11_deserializeDocumentS3LogsConfig(v **types.S3LogsConfig, value if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.EncryptionDisabled = &jtv + sv.EncryptionDisabled = ptr.Bool(jtv) } case "location": @@ -9716,7 +9764,7 @@ func awsAwsjson11_deserializeDocumentS3LogsConfig(v **types.S3LogsConfig, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "status": @@ -9765,7 +9813,7 @@ func awsAwsjson11_deserializeDocumentS3ReportExportConfig(v **types.S3ReportExpo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "encryptionDisabled": @@ -9774,7 +9822,7 @@ func awsAwsjson11_deserializeDocumentS3ReportExportConfig(v **types.S3ReportExpo if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.EncryptionDisabled = &jtv + sv.EncryptionDisabled = ptr.Bool(jtv) } case "encryptionKey": @@ -9783,7 +9831,7 @@ func awsAwsjson11_deserializeDocumentS3ReportExportConfig(v **types.S3ReportExpo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EncryptionKey = &jtv + sv.EncryptionKey = ptr.String(jtv) } case "packaging": @@ -9801,7 +9849,7 @@ func awsAwsjson11_deserializeDocumentS3ReportExportConfig(v **types.S3ReportExpo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } default: @@ -9813,7 +9861,7 @@ func awsAwsjson11_deserializeDocumentS3ReportExportConfig(v **types.S3ReportExpo return nil } -func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9826,21 +9874,21 @@ func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9877,7 +9925,7 @@ func awsAwsjson11_deserializeDocumentSourceAuth(v **types.SourceAuth, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "type": @@ -9926,7 +9974,7 @@ func awsAwsjson11_deserializeDocumentSourceCredentialsInfo(v **types.SourceCrede if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authType": @@ -9956,7 +10004,7 @@ func awsAwsjson11_deserializeDocumentSourceCredentialsInfo(v **types.SourceCrede return nil } -func awsAwsjson11_deserializeDocumentSourceCredentialsInfos(v *[]*types.SourceCredentialsInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentSourceCredentialsInfos(v *[]types.SourceCredentialsInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9969,18 +10017,20 @@ func awsAwsjson11_deserializeDocumentSourceCredentialsInfos(v *[]*types.SourceCr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SourceCredentialsInfo + var cv []types.SourceCredentialsInfo if *v == nil { - cv = []*types.SourceCredentialsInfo{} + cv = []types.SourceCredentialsInfo{} } else { cv = *v } for _, value := range shape { - var col *types.SourceCredentialsInfo - if err := awsAwsjson11_deserializeDocumentSourceCredentialsInfo(&col, value); err != nil { + var col types.SourceCredentialsInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSourceCredentialsInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9988,7 +10038,7 @@ func awsAwsjson11_deserializeDocumentSourceCredentialsInfos(v *[]*types.SourceCr return nil } -func awsAwsjson11_deserializeDocumentSubnets(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnets(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10001,21 +10051,21 @@ func awsAwsjson11_deserializeDocumentSubnets(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10052,7 +10102,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected KeyInput to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -10061,7 +10111,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected ValueInput to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -10073,7 +10123,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10086,18 +10136,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10137,7 +10189,7 @@ func awsAwsjson11_deserializeDocumentTestCase(v **types.TestCase, value interfac if err != nil { return err } - sv.DurationInNanoSeconds = &i64 + sv.DurationInNanoSeconds = ptr.Int64(i64) } case "expired": @@ -10159,7 +10211,7 @@ func awsAwsjson11_deserializeDocumentTestCase(v **types.TestCase, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "name": @@ -10168,7 +10220,7 @@ func awsAwsjson11_deserializeDocumentTestCase(v **types.TestCase, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "prefix": @@ -10177,7 +10229,7 @@ func awsAwsjson11_deserializeDocumentTestCase(v **types.TestCase, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } case "reportArn": @@ -10186,7 +10238,7 @@ func awsAwsjson11_deserializeDocumentTestCase(v **types.TestCase, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ReportArn = &jtv + sv.ReportArn = ptr.String(jtv) } case "status": @@ -10195,7 +10247,7 @@ func awsAwsjson11_deserializeDocumentTestCase(v **types.TestCase, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "testRawDataPath": @@ -10204,7 +10256,7 @@ func awsAwsjson11_deserializeDocumentTestCase(v **types.TestCase, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TestRawDataPath = &jtv + sv.TestRawDataPath = ptr.String(jtv) } default: @@ -10216,7 +10268,7 @@ func awsAwsjson11_deserializeDocumentTestCase(v **types.TestCase, value interfac return nil } -func awsAwsjson11_deserializeDocumentTestCases(v *[]*types.TestCase, value interface{}) error { +func awsAwsjson11_deserializeDocumentTestCases(v *[]types.TestCase, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10229,18 +10281,20 @@ func awsAwsjson11_deserializeDocumentTestCases(v *[]*types.TestCase, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TestCase + var cv []types.TestCase if *v == nil { - cv = []*types.TestCase{} + cv = []types.TestCase{} } else { cv = *v } for _, value := range shape { - var col *types.TestCase - if err := awsAwsjson11_deserializeDocumentTestCase(&col, value); err != nil { + var col types.TestCase + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTestCase(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10280,7 +10334,7 @@ func awsAwsjson11_deserializeDocumentTestReportSummary(v **types.TestReportSumma if err != nil { return err } - sv.DurationInNanoSeconds = &i64 + sv.DurationInNanoSeconds = ptr.Int64(i64) } case "statusCounts": @@ -10348,7 +10402,7 @@ func awsAwsjson11_deserializeDocumentVpcConfig(v **types.VpcConfig, value interf if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -10388,7 +10442,7 @@ func awsAwsjson11_deserializeDocumentWebhook(v **types.Webhook, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BranchFilter = &jtv + sv.BranchFilter = ptr.String(jtv) } case "buildType": @@ -10424,7 +10478,7 @@ func awsAwsjson11_deserializeDocumentWebhook(v **types.Webhook, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PayloadUrl = &jtv + sv.PayloadUrl = ptr.String(jtv) } case "secret": @@ -10433,7 +10487,7 @@ func awsAwsjson11_deserializeDocumentWebhook(v **types.Webhook, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Secret = &jtv + sv.Secret = ptr.String(jtv) } case "url": @@ -10442,7 +10496,7 @@ func awsAwsjson11_deserializeDocumentWebhook(v **types.Webhook, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -10482,7 +10536,7 @@ func awsAwsjson11_deserializeDocumentWebhookFilter(v **types.WebhookFilter, valu if !ok { return fmt.Errorf("expected WrapperBoolean to be of type *bool, got %T instead", value) } - sv.ExcludeMatchedPattern = &jtv + sv.ExcludeMatchedPattern = ptr.Bool(jtv) } case "pattern": @@ -10491,7 +10545,7 @@ func awsAwsjson11_deserializeDocumentWebhookFilter(v **types.WebhookFilter, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Pattern = &jtv + sv.Pattern = ptr.String(jtv) } case "type": @@ -10904,7 +10958,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteBuildBatchOutput(v **DeleteBuildBat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -11068,7 +11122,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteSourceCredentialsOutput(v **DeleteS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -11144,7 +11198,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCodeCoveragesOutput(v **DescribeC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11184,7 +11238,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTestCasesOutput(v **DescribeTestC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "testCases": @@ -11229,7 +11283,7 @@ func awsAwsjson11_deserializeOpDocumentGetResourcePolicyOutput(v **GetResourcePo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -11269,7 +11323,7 @@ func awsAwsjson11_deserializeOpDocumentImportSourceCredentialsOutput(v **ImportS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -11345,7 +11399,7 @@ func awsAwsjson11_deserializeOpDocumentListBuildBatchesForProjectOutput(v **List if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11390,7 +11444,7 @@ func awsAwsjson11_deserializeOpDocumentListBuildBatchesOutput(v **ListBuildBatch if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11435,7 +11489,7 @@ func awsAwsjson11_deserializeOpDocumentListBuildsForProjectOutput(v **ListBuilds if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11480,7 +11534,7 @@ func awsAwsjson11_deserializeOpDocumentListBuildsOutput(v **ListBuildsOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11556,7 +11610,7 @@ func awsAwsjson11_deserializeOpDocumentListProjectsOutput(v **ListProjectsOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "projects": @@ -11601,7 +11655,7 @@ func awsAwsjson11_deserializeOpDocumentListReportGroupsOutput(v **ListReportGrou if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "reportGroups": @@ -11646,7 +11700,7 @@ func awsAwsjson11_deserializeOpDocumentListReportsForReportGroupOutput(v **ListR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "reports": @@ -11691,7 +11745,7 @@ func awsAwsjson11_deserializeOpDocumentListReportsOutput(v **ListReportsOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "reports": @@ -11736,7 +11790,7 @@ func awsAwsjson11_deserializeOpDocumentListSharedProjectsOutput(v **ListSharedPr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "projects": @@ -11781,7 +11835,7 @@ func awsAwsjson11_deserializeOpDocumentListSharedReportGroupsOutput(v **ListShar if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "reportGroups": @@ -11862,7 +11916,7 @@ func awsAwsjson11_deserializeOpDocumentPutResourcePolicyOutput(v **PutResourcePo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } default: diff --git a/service/codebuild/go.mod b/service/codebuild/go.mod index 59ab093dd1f..c0f9562413e 100644 --- a/service/codebuild/go.mod +++ b/service/codebuild/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/codebuild go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/codebuild/serializers.go b/service/codebuild/serializers.go index f1d87535f01..8eb9abb1629 100644 --- a/service/codebuild/serializers.go +++ b/service/codebuild/serializers.go @@ -2008,32 +2008,24 @@ func awsAwsjson11_serializeDocumentBuildBatchFilter(v *types.BuildBatchFilter, v return nil } -func awsAwsjson11_serializeDocumentBuildBatchIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBuildBatchIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentBuildIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBuildIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2077,17 +2069,13 @@ func awsAwsjson11_serializeDocumentCloudWatchLogsConfig(v *types.CloudWatchLogsC return nil } -func awsAwsjson11_serializeDocumentComputeTypesAllowed(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentComputeTypesAllowed(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2114,48 +2102,39 @@ func awsAwsjson11_serializeDocumentEnvironmentVariable(v *types.EnvironmentVaria return nil } -func awsAwsjson11_serializeDocumentEnvironmentVariables(v []*types.EnvironmentVariable, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEnvironmentVariables(v []types.EnvironmentVariable, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEnvironmentVariable(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEnvironmentVariable(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentFilterGroup(v []*types.WebhookFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterGroup(v []types.WebhookFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentWebhookFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentWebhookFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentFilterGroups(v [][]*types.WebhookFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterGroups(v [][]types.WebhookFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsAwsjson11_serializeDocumentFilterGroup(v[i], av); err != nil { @@ -2250,17 +2229,13 @@ func awsAwsjson11_serializeDocumentProjectArtifacts(v *types.ProjectArtifacts, v return nil } -func awsAwsjson11_serializeDocumentProjectArtifactsList(v []*types.ProjectArtifacts, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProjectArtifactsList(v []types.ProjectArtifacts, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentProjectArtifacts(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentProjectArtifacts(&v[i], av); err != nil { return err } } @@ -2414,49 +2389,37 @@ func awsAwsjson11_serializeDocumentProjectFileSystemLocation(v *types.ProjectFil return nil } -func awsAwsjson11_serializeDocumentProjectFileSystemLocations(v []*types.ProjectFileSystemLocation, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProjectFileSystemLocations(v []types.ProjectFileSystemLocation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentProjectFileSystemLocation(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentProjectFileSystemLocation(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentProjectNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProjectNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentProjectSecondarySourceVersions(v []*types.ProjectSourceVersion, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProjectSecondarySourceVersions(v []types.ProjectSourceVersion, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentProjectSourceVersion(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentProjectSourceVersion(&v[i], av); err != nil { return err } } @@ -2526,17 +2489,13 @@ func awsAwsjson11_serializeDocumentProjectSource(v *types.ProjectSource, value s return nil } -func awsAwsjson11_serializeDocumentProjectSources(v []*types.ProjectSource, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProjectSources(v []types.ProjectSource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentProjectSource(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentProjectSource(&v[i], av); err != nil { return err } } @@ -2577,17 +2536,13 @@ func awsAwsjson11_serializeDocumentRegistryCredential(v *types.RegistryCredentia return nil } -func awsAwsjson11_serializeDocumentReportArns(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentReportArns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2623,17 +2578,13 @@ func awsAwsjson11_serializeDocumentReportFilter(v *types.ReportFilter, value smi return nil } -func awsAwsjson11_serializeDocumentReportGroupArns(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentReportGroupArns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2692,17 +2643,13 @@ func awsAwsjson11_serializeDocumentS3ReportExportConfig(v *types.S3ReportExportC return nil } -func awsAwsjson11_serializeDocumentSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2724,17 +2671,13 @@ func awsAwsjson11_serializeDocumentSourceAuth(v *types.SourceAuth, value smithyj return nil } -func awsAwsjson11_serializeDocumentSubnets(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnets(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2756,17 +2699,13 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -3146,9 +3085,9 @@ func awsAwsjson11_serializeOpDocumentDeleteReportGroupInput(v *DeleteReportGroup ok.String(*v.Arn) } - if v.DeleteReports != nil { + if v.DeleteReports { ok := object.Key("deleteReports") - ok.Boolean(*v.DeleteReports) + ok.Boolean(v.DeleteReports) } return nil @@ -4237,9 +4176,9 @@ func awsAwsjson11_serializeOpDocumentUpdateWebhookInput(v *UpdateWebhookInput, v ok.String(*v.ProjectName) } - if v.RotateSecret != nil { + if v.RotateSecret { ok := object.Key("rotateSecret") - ok.Boolean(*v.RotateSecret) + ok.Boolean(v.RotateSecret) } return nil diff --git a/service/codebuild/types/types.go b/service/codebuild/types/types.go index 39190c12b6d..406bb3b7680 100644 --- a/service/codebuild/types/types.go +++ b/service/codebuild/types/types.go @@ -13,7 +13,7 @@ type BatchRestrictions struct { // batch build. See Build environment compute types // (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) // in the AWS CodeBuild User Guide for these values. - ComputeTypesAllowed []*string + ComputeTypesAllowed []string // Specifies the maximum number of builds allowed. MaximumBuildsAllowed *int32 @@ -32,7 +32,7 @@ type Build struct { BuildBatchArn *string // Whether the build is complete. True if complete; otherwise, false. - BuildComplete *bool + BuildComplete bool // The number of the build. For each project, the buildNumber of its first build is // 1. The buildNumber of each subsequent build is incremented by 1. If a build is @@ -80,13 +80,13 @@ type Build struct { Environment *ProjectEnvironment // A list of exported environment variables for this build. - ExportedEnvironmentVariables []*ExportedEnvironmentVariable + ExportedEnvironmentVariables []ExportedEnvironmentVariable // An array of ProjectFileSystemLocation objects for a CodeBuild build project. A // ProjectFileSystemLocation object specifies the identifier, location, // mountOptions, mountPoint, and type of a file system created using Amazon Elastic // File System. - FileSystemLocations []*ProjectFileSystemLocation + FileSystemLocations []ProjectFileSystemLocation // The unique ID for the build. Id *string @@ -113,7 +113,7 @@ type Build struct { // Information about all previous build phases that are complete and information // about any current build phase that is not yet complete. - Phases []*BuildPhase + Phases []BuildPhase // The name of the AWS CodeBuild project. ProjectName *string @@ -122,7 +122,7 @@ type Build struct { QueuedTimeoutInMinutes *int32 // An array of the ARNs associated with this build's reports. - ReportArns []*string + ReportArns []string // An identifier for the version of this build's source code. // @@ -137,7 +137,7 @@ type Build struct { ResolvedSourceVersion *string // An array of ProjectArtifacts objects. - SecondaryArtifacts []*BuildArtifacts + SecondaryArtifacts []BuildArtifacts // An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one // of: @@ -159,10 +159,10 @@ type Build struct { // // * For Amazon Simple Storage Service (Amazon S3): the version ID of the // object that represents the build input ZIP file to use. - SecondarySourceVersions []*ProjectSourceVersion + SecondarySourceVersions []ProjectSourceVersion // An array of ProjectSource objects. - SecondarySources []*ProjectSource + SecondarySources []ProjectSource // The name of a service role used for this build. ServiceRole *string @@ -243,7 +243,7 @@ type BuildBatch struct { BuildBatchStatus StatusType // An array of BuildGroup objects that define the build groups for the batch build. - BuildGroups []*BuildGroup + BuildGroups []BuildGroup // Specifies the maximum amount of time, in minutes, that the build in a batch must // be completed in. @@ -253,7 +253,7 @@ type BuildBatch struct { Cache *ProjectCache // Indicates if the batch build is complete. - Complete *bool + Complete bool // The current phase of the batch build. CurrentPhase *string @@ -275,7 +275,7 @@ type BuildBatch struct { // ProjectFileSystemLocation object specifies the identifier, location, // mountOptions, mountPoint, and type of a file system created using Amazon Elastic // File System. - FileSystemLocations []*ProjectFileSystemLocation + FileSystemLocations []ProjectFileSystemLocation // The identifier of the batch build. Id *string @@ -298,7 +298,7 @@ type BuildBatch struct { LogConfig *LogsConfig // An array of BuildBatchPhase objects the specify the phases of the batch build. - Phases []*BuildBatchPhase + Phases []BuildBatchPhase // The name of the batch build project. ProjectName *string @@ -321,7 +321,7 @@ type BuildBatch struct { // An array of BuildArtifacts objects the define the build artifacts for this batch // build. - SecondaryArtifacts []*BuildArtifacts + SecondaryArtifacts []BuildArtifacts // An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one // of: @@ -343,10 +343,10 @@ type BuildBatch struct { // // * For Amazon Simple Storage Service (Amazon S3): the version ID of the // object that represents the build input ZIP file to use. - SecondarySourceVersions []*ProjectSourceVersion + SecondarySourceVersions []ProjectSourceVersion // An array of ProjectSource objects that define the sources for the batch build. - SecondarySources []*ProjectSource + SecondarySources []ProjectSource // The name of a service role used for builds in the batch. ServiceRole *string @@ -377,7 +377,7 @@ type BuildBatchPhase struct { // Additional information about the batch build phase. Especially to help // troubleshoot a failed btach build. - Contexts []*PhaseContext + Contexts []PhaseContext // How long, in seconds, between the starting and ending times of the batch build's // phase. @@ -415,17 +415,17 @@ type BuildGroup struct { // An array of strings that contain the identifiers of the build groups that this // build group depends on. - DependsOn []*string + DependsOn []string // Contains the identifier of the build group. Identifier *string // Specifies if failures in this build group can be ignored. - IgnoreFailure *bool + IgnoreFailure bool // An array of BuildSummary objects that contain summaries of previous build // groups. - PriorBuildSummaryList []*BuildSummary + PriorBuildSummaryList []BuildSummary } // Information about a build that could not be successfully deleted. @@ -443,7 +443,7 @@ type BuildPhase struct { // Additional information about a build phase, especially to help troubleshoot a // failed build. - Contexts []*PhaseContext + Contexts []PhaseContext // How long, in seconds, between the starting and ending times of the build's // phase. @@ -548,7 +548,7 @@ type BuildSummary struct { // An array of ResolvedArtifact objects that represents the secondary build // artifacts for the build group. - SecondaryArtifacts []*ResolvedArtifact + SecondaryArtifacts []ResolvedArtifact } // Information about Amazon CloudWatch Logs for a build project. @@ -663,7 +663,7 @@ type EnvironmentImage struct { Name *string // A list of environment image versions. - Versions []*string + Versions []string } // A set of Docker images that are related by programming language and are managed @@ -672,7 +672,7 @@ type EnvironmentLanguage struct { // The list of Docker images that are related by the specified programming // language. - Images []*EnvironmentImage + Images []EnvironmentImage // The programming language for the Docker images. Language LanguageType @@ -683,7 +683,7 @@ type EnvironmentLanguage struct { type EnvironmentPlatform struct { // The list of programming languages that are available for the specified platform. - Languages []*EnvironmentLanguage + Languages []EnvironmentLanguage // The platform's name. Platform PlatformType @@ -859,7 +859,7 @@ type Project struct { // ProjectFileSystemLocation object specifies the identifier, location, // mountOptions, mountPoint, and type of a file system created using Amazon Elastic // File System. - FileSystemLocations []*ProjectFileSystemLocation + FileSystemLocations []ProjectFileSystemLocation // When the build project's settings were last modified, expressed in Unix time // format. @@ -876,15 +876,15 @@ type Project struct { QueuedTimeoutInMinutes *int32 // An array of ProjectArtifacts objects. - SecondaryArtifacts []*ProjectArtifacts + SecondaryArtifacts []ProjectArtifacts // An array of ProjectSourceVersion objects. If secondarySourceVersions is // specified at the build level, then they take over these secondarySourceVersions // (at the project level). - SecondarySourceVersions []*ProjectSourceVersion + SecondarySourceVersions []ProjectSourceVersion // An array of ProjectSource objects. - SecondarySources []*ProjectSource + SecondarySources []ProjectSource // The ARN of the AWS Identity and Access Management (IAM) role that enables AWS // CodeBuild to interact with dependent AWS services on behalf of the AWS account. @@ -925,7 +925,7 @@ type Project struct { // A list of tag key and value pairs associated with this build project. These tags // are available for use by AWS services that support AWS CodeBuild build project // tags. - Tags []*Tag + Tags []Tag // How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before // timing out any related build that did not get marked as completed. The default @@ -1088,7 +1088,7 @@ type ProjectBadge struct { // Set this to true to generate a publicly accessible URL for your project's build // badge. - BadgeEnabled *bool + BadgeEnabled bool // The publicly-accessible URL through which you can access the build badge for // your project. The publicly accessible URL through which you can access the build @@ -1265,7 +1265,7 @@ type ProjectEnvironment struct { // A set of environment variables to make available to builds for this build // project. - EnvironmentVariables []*EnvironmentVariable + EnvironmentVariables []EnvironmentVariable // The type of credentials AWS CodeBuild uses to pull images in your build. There // are two valid values: @@ -1620,7 +1620,7 @@ type ReportGroup struct { // A list of tag key and value pairs associated with this report group. These tags // are available for use by AWS services that support AWS CodeBuild report group // tags. - Tags []*Tag + Tags []Tag // The type of the ReportGroup. The one valid value is TEST. Type ReportType @@ -1803,7 +1803,7 @@ type TestReportSummary struct { // results in this TestReportSummary. // // This member is required. - StatusCounts map[string]*int32 + StatusCounts map[string]int32 // The number of test cases in this TestReportSummary. The total includes truncated // test cases. @@ -1816,10 +1816,10 @@ type TestReportSummary struct { type VpcConfig struct { // A list of one or more security groups IDs in your Amazon VPC. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of one or more subnet IDs in your Amazon VPC. - Subnets []*string + Subnets []string // The ID of the Amazon VPC. VpcId *string @@ -1842,7 +1842,7 @@ type Webhook struct { // triggered. At least one WebhookFilter in the array must specify EVENT as its // type. For a build to be triggered, at least one filter group in the filterGroups // array must pass. For a filter group to pass, each of its filters must pass. - FilterGroups [][]*WebhookFilter + FilterGroups [][]WebhookFilter // A timestamp that indicates the last time a repository's secret token was // modified. diff --git a/service/codebuild/validators.go b/service/codebuild/validators.go index 2b546720cb1..05f7a4284c9 100644 --- a/service/codebuild/validators.go +++ b/service/codebuild/validators.go @@ -787,13 +787,13 @@ func validateEnvironmentVariable(v *types.EnvironmentVariable) error { } } -func validateEnvironmentVariables(v []*types.EnvironmentVariable) error { +func validateEnvironmentVariables(v []types.EnvironmentVariable) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "EnvironmentVariables"} for i := range v { - if err := validateEnvironmentVariable(v[i]); err != nil { + if err := validateEnvironmentVariable(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -804,13 +804,13 @@ func validateEnvironmentVariables(v []*types.EnvironmentVariable) error { } } -func validateFilterGroup(v []*types.WebhookFilter) error { +func validateFilterGroup(v []types.WebhookFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FilterGroup"} for i := range v { - if err := validateWebhookFilter(v[i]); err != nil { + if err := validateWebhookFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -821,7 +821,7 @@ func validateFilterGroup(v []*types.WebhookFilter) error { } } -func validateFilterGroups(v [][]*types.WebhookFilter) error { +func validateFilterGroups(v [][]types.WebhookFilter) error { if v == nil { return nil } @@ -890,13 +890,13 @@ func validateProjectArtifacts(v *types.ProjectArtifacts) error { } } -func validateProjectArtifactsList(v []*types.ProjectArtifacts) error { +func validateProjectArtifactsList(v []types.ProjectArtifacts) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ProjectArtifactsList"} for i := range v { - if err := validateProjectArtifacts(v[i]); err != nil { + if err := validateProjectArtifacts(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -953,13 +953,13 @@ func validateProjectEnvironment(v *types.ProjectEnvironment) error { } } -func validateProjectSecondarySourceVersions(v []*types.ProjectSourceVersion) error { +func validateProjectSecondarySourceVersions(v []types.ProjectSourceVersion) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ProjectSecondarySourceVersions"} for i := range v { - if err := validateProjectSourceVersion(v[i]); err != nil { + if err := validateProjectSourceVersion(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -995,13 +995,13 @@ func validateProjectSource(v *types.ProjectSource) error { } } -func validateProjectSources(v []*types.ProjectSource) error { +func validateProjectSources(v []types.ProjectSource) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ProjectSources"} for i := range v { - if err := validateProjectSource(v[i]); err != nil { + if err := validateProjectSource(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/codecommit/api_op_BatchAssociateApprovalRuleTemplateWithRepositories.go b/service/codecommit/api_op_BatchAssociateApprovalRuleTemplateWithRepositories.go index 2f268b9aa88..628c777c0db 100644 --- a/service/codecommit/api_op_BatchAssociateApprovalRuleTemplateWithRepositories.go +++ b/service/codecommit/api_op_BatchAssociateApprovalRuleTemplateWithRepositories.go @@ -40,7 +40,7 @@ type BatchAssociateApprovalRuleTemplateWithRepositoriesInput struct { // empty. // // This member is required. - RepositoryNames []*string + RepositoryNames []string } type BatchAssociateApprovalRuleTemplateWithRepositoriesOutput struct { @@ -48,13 +48,13 @@ type BatchAssociateApprovalRuleTemplateWithRepositoriesOutput struct { // A list of names of the repositories that have been associated with the template. // // This member is required. - AssociatedRepositoryNames []*string + AssociatedRepositoryNames []string // A list of any errors that might have occurred while attempting to create the // association between the template and the repositories. // // This member is required. - Errors []*types.BatchAssociateApprovalRuleTemplateWithRepositoriesError + Errors []types.BatchAssociateApprovalRuleTemplateWithRepositoriesError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codecommit/api_op_BatchDescribeMergeConflicts.go b/service/codecommit/api_op_BatchDescribeMergeConflicts.go index 39dede46973..3b30f8e858c 100644 --- a/service/codecommit/api_op_BatchDescribeMergeConflicts.go +++ b/service/codecommit/api_op_BatchDescribeMergeConflicts.go @@ -66,7 +66,7 @@ type BatchDescribeMergeConflictsInput struct { // The path of the target files used to describe the conflicts. If not specified, // the default is all conflict files. - FilePaths []*string + FilePaths []string // The maximum number of files to include in the output. MaxConflictFiles *int32 @@ -85,7 +85,7 @@ type BatchDescribeMergeConflictsOutput struct { // of the differences between the files. // // This member is required. - Conflicts []*types.Conflict + Conflicts []types.Conflict // The commit ID of the destination commit specifier that was used in the merge // evaluation. @@ -104,7 +104,7 @@ type BatchDescribeMergeConflictsOutput struct { // A list of any errors returned while describing the merge conflicts for each // file. - Errors []*types.BatchDescribeMergeConflictsError + Errors []types.BatchDescribeMergeConflictsError // An enumeration token that can be used in a request to return the next batch of // the results. diff --git a/service/codecommit/api_op_BatchDisassociateApprovalRuleTemplateFromRepositories.go b/service/codecommit/api_op_BatchDisassociateApprovalRuleTemplateFromRepositories.go index 41fee474918..b1fb1a7dc5e 100644 --- a/service/codecommit/api_op_BatchDisassociateApprovalRuleTemplateFromRepositories.go +++ b/service/codecommit/api_op_BatchDisassociateApprovalRuleTemplateFromRepositories.go @@ -41,7 +41,7 @@ type BatchDisassociateApprovalRuleTemplateFromRepositoriesInput struct { // itself can be empty. // // This member is required. - RepositoryNames []*string + RepositoryNames []string } type BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput struct { @@ -50,13 +50,13 @@ type BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput struct { // removed. // // This member is required. - DisassociatedRepositoryNames []*string + DisassociatedRepositoryNames []string // A list of any errors that might have occurred while attempting to remove the // association between the template and the repositories. // // This member is required. - Errors []*types.BatchDisassociateApprovalRuleTemplateFromRepositoriesError + Errors []types.BatchDisassociateApprovalRuleTemplateFromRepositoriesError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codecommit/api_op_BatchGetCommits.go b/service/codecommit/api_op_BatchGetCommits.go index c46e746b6cd..32b8c5b22f6 100644 --- a/service/codecommit/api_op_BatchGetCommits.go +++ b/service/codecommit/api_op_BatchGetCommits.go @@ -33,7 +33,7 @@ type BatchGetCommitsInput struct { // full SHA IDs of each commit. You cannot use shortened SHA IDs. // // This member is required. - CommitIds []*string + CommitIds []string // The name of the repository that contains the commits. // @@ -45,12 +45,12 @@ type BatchGetCommitsOutput struct { // An array of commit data type objects, each of which contains information about a // specified commit. - Commits []*types.Commit + Commits []types.Commit // Returns any commit IDs for which information could not be found. For example, if // one of the commit IDs was a shortened SHA ID or that commit was not found in the // specified repository, the ID returns an error object with more information. - Errors []*types.BatchGetCommitsError + Errors []types.BatchGetCommitsError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codecommit/api_op_BatchGetRepositories.go b/service/codecommit/api_op_BatchGetRepositories.go index 2480cc2e2d1..446af329d70 100644 --- a/service/codecommit/api_op_BatchGetRepositories.go +++ b/service/codecommit/api_op_BatchGetRepositories.go @@ -39,17 +39,17 @@ type BatchGetRepositoriesInput struct { // limit is for each string in the array. The array itself can be empty. // // This member is required. - RepositoryNames []*string + RepositoryNames []string } // Represents the output of a batch get repositories operation. type BatchGetRepositoriesOutput struct { // A list of repositories returned by the batch get repositories operation. - Repositories []*types.RepositoryMetadata + Repositories []types.RepositoryMetadata // Returns a list of repository names for which information could not be found. - RepositoriesNotFound []*string + RepositoriesNotFound []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codecommit/api_op_CreateCommit.go b/service/codecommit/api_op_CreateCommit.go index 2c32de1f0e2..d9e09689366 100644 --- a/service/codecommit/api_op_CreateCommit.go +++ b/service/codecommit/api_op_CreateCommit.go @@ -48,7 +48,7 @@ type CreateCommitInput struct { CommitMessage *string // The files to delete in this commit. These files still exist in earlier commits. - DeleteFiles []*types.DeleteFileEntry + DeleteFiles []types.DeleteFileEntry // The email address of the person who created the commit. Email *string @@ -56,17 +56,17 @@ type CreateCommitInput struct { // If the commit contains deletions, whether to keep a folder or folder structure // if the changes leave the folders empty. If true, a ..gitkeep file is created for // empty folders. The default is false. - KeepEmptyFolders *bool + KeepEmptyFolders bool // The ID of the commit that is the parent of the commit you create. Not required // if this is an empty repository. ParentCommitId *string // The files to add or update in this commit. - PutFiles []*types.PutFileEntry + PutFiles []types.PutFileEntry // The file modes to update for files in this commit. - SetFileModes []*types.SetFileModeEntry + SetFileModes []types.SetFileModeEntry } type CreateCommitOutput struct { @@ -75,13 +75,13 @@ type CreateCommitOutput struct { CommitId *string // The files added as part of the committed file changes. - FilesAdded []*types.FileMetadata + FilesAdded []types.FileMetadata // The files deleted as part of the committed file changes. - FilesDeleted []*types.FileMetadata + FilesDeleted []types.FileMetadata // The files updated as part of the commited file changes. - FilesUpdated []*types.FileMetadata + FilesUpdated []types.FileMetadata // The full SHA-1 pointer of the tree information for the commit that contains the // commited file changes. diff --git a/service/codecommit/api_op_CreatePullRequest.go b/service/codecommit/api_op_CreatePullRequest.go index 91b912928f9..2a71a757ae4 100644 --- a/service/codecommit/api_op_CreatePullRequest.go +++ b/service/codecommit/api_op_CreatePullRequest.go @@ -36,7 +36,7 @@ type CreatePullRequestInput struct { // destination branch). // // This member is required. - Targets []*types.Target + Targets []types.Target // The title of the pull request. This title is used to identify the pull request // to other users in the repository. diff --git a/service/codecommit/api_op_CreateRepository.go b/service/codecommit/api_op_CreateRepository.go index 3f41f4a2361..398ec6ff0b6 100644 --- a/service/codecommit/api_op_CreateRepository.go +++ b/service/codecommit/api_op_CreateRepository.go @@ -49,7 +49,7 @@ type CreateRepositoryInput struct { RepositoryDescription *string // One or more tag key-value pairs to use when tagging this repository. - Tags map[string]*string + Tags map[string]string } // Represents the output of a create repository operation. diff --git a/service/codecommit/api_op_CreateUnreferencedMergeCommit.go b/service/codecommit/api_op_CreateUnreferencedMergeCommit.go index 985a968a2a9..07eb0f38ac2 100644 --- a/service/codecommit/api_op_CreateUnreferencedMergeCommit.go +++ b/service/codecommit/api_op_CreateUnreferencedMergeCommit.go @@ -87,7 +87,7 @@ type CreateUnreferencedMergeCommitInput struct { // If the commit contains deletions, whether to keep a folder or folder structure // if the changes leave the folders empty. If this is specified as true, a .gitkeep // file is created for empty folders. The default is false. - KeepEmptyFolders *bool + KeepEmptyFolders bool } type CreateUnreferencedMergeCommitOutput struct { diff --git a/service/codecommit/api_op_DeleteFile.go b/service/codecommit/api_op_DeleteFile.go index 5928d081ad2..943953104a2 100644 --- a/service/codecommit/api_op_DeleteFile.go +++ b/service/codecommit/api_op_DeleteFile.go @@ -69,7 +69,7 @@ type DeleteFileInput struct { // structure. For example, if the path to a file is dir1/dir2/dir3/dir4, and dir2 // and dir3 are empty, deleting the last file in dir4 also deletes the empty // folders dir4, dir3, and dir2. - KeepEmptyFolders *bool + KeepEmptyFolders bool // The name of the author of the commit that deletes the file. If no name is // specified, the user's ARN is used as the author name and committer name. diff --git a/service/codecommit/api_op_DescribeMergeConflicts.go b/service/codecommit/api_op_DescribeMergeConflicts.go index ebdb1bb2218..93295ec0397 100644 --- a/service/codecommit/api_op_DescribeMergeConflicts.go +++ b/service/codecommit/api_op_DescribeMergeConflicts.go @@ -96,7 +96,7 @@ type DescribeMergeConflictsOutput struct { // A list of merge hunks of the differences between the files or lines. // // This member is required. - MergeHunks []*types.MergeHunk + MergeHunks []types.MergeHunk // The commit ID of the source commit specifier that was used in the merge // evaluation. diff --git a/service/codecommit/api_op_DescribePullRequestEvents.go b/service/codecommit/api_op_DescribePullRequestEvents.go index 75435d3db81..27ac7122e60 100644 --- a/service/codecommit/api_op_DescribePullRequestEvents.go +++ b/service/codecommit/api_op_DescribePullRequestEvents.go @@ -59,7 +59,7 @@ type DescribePullRequestEventsOutput struct { // Information about the pull request events. // // This member is required. - PullRequestEvents []*types.PullRequestEvent + PullRequestEvents []types.PullRequestEvent // An enumeration token that can be used in a request to return the next batch of // the results. diff --git a/service/codecommit/api_op_GetCommentReactions.go b/service/codecommit/api_op_GetCommentReactions.go index 8ae1141f275..37e6269915f 100644 --- a/service/codecommit/api_op_GetCommentReactions.go +++ b/service/codecommit/api_op_GetCommentReactions.go @@ -53,7 +53,7 @@ type GetCommentReactionsOutput struct { // An array of reactions to the specified comment. // // This member is required. - ReactionsForComment []*types.ReactionForComment + ReactionsForComment []types.ReactionForComment // An enumeration token that can be used in a request to return the next batch of // the results. diff --git a/service/codecommit/api_op_GetCommentsForComparedCommit.go b/service/codecommit/api_op_GetCommentsForComparedCommit.go index 61b2547ce3e..f0d46087d51 100644 --- a/service/codecommit/api_op_GetCommentsForComparedCommit.go +++ b/service/codecommit/api_op_GetCommentsForComparedCommit.go @@ -59,7 +59,7 @@ type GetCommentsForComparedCommitInput struct { type GetCommentsForComparedCommitOutput struct { // A list of comment objects on the compared commit. - CommentsForComparedCommitData []*types.CommentsForComparedCommit + CommentsForComparedCommitData []types.CommentsForComparedCommit // An enumeration token that can be used in a request to return the next batch of // the results. diff --git a/service/codecommit/api_op_GetCommentsForPullRequest.go b/service/codecommit/api_op_GetCommentsForPullRequest.go index 8abba7b1e39..edb82c1441e 100644 --- a/service/codecommit/api_op_GetCommentsForPullRequest.go +++ b/service/codecommit/api_op_GetCommentsForPullRequest.go @@ -61,7 +61,7 @@ type GetCommentsForPullRequestInput struct { type GetCommentsForPullRequestOutput struct { // An array of comment objects on the pull request. - CommentsForPullRequestData []*types.CommentsForPullRequest + CommentsForPullRequestData []types.CommentsForPullRequest // An enumeration token that can be used in a request to return the next batch of // the results. diff --git a/service/codecommit/api_op_GetDifferences.go b/service/codecommit/api_op_GetDifferences.go index ba107230e91..f528bbb78ad 100644 --- a/service/codecommit/api_op_GetDifferences.go +++ b/service/codecommit/api_op_GetDifferences.go @@ -71,7 +71,7 @@ type GetDifferencesOutput struct { // A data type object that contains information about the differences, including // whether the difference is added, modified, or deleted (A, D, M). - Differences []*types.Difference + Differences []types.Difference // An enumeration token that can be used in a request to return the next batch of // the results. diff --git a/service/codecommit/api_op_GetFile.go b/service/codecommit/api_op_GetFile.go index 2a0bab318ad..65067003823 100644 --- a/service/codecommit/api_op_GetFile.go +++ b/service/codecommit/api_op_GetFile.go @@ -82,7 +82,7 @@ type GetFileOutput struct { // The size of the contents of the file, in bytes. // // This member is required. - FileSize *int64 + FileSize int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codecommit/api_op_GetFolder.go b/service/codecommit/api_op_GetFolder.go index 389fadb612c..056ec93b7e9 100644 --- a/service/codecommit/api_op_GetFolder.go +++ b/service/codecommit/api_op_GetFolder.go @@ -62,17 +62,17 @@ type GetFolderOutput struct { FolderPath *string // The list of files in the specified folder, if any. - Files []*types.File + Files []types.File // The list of folders that exist under the specified folder, if any. - SubFolders []*types.Folder + SubFolders []types.Folder // The list of submodules in the specified folder, if any. - SubModules []*types.SubModule + SubModules []types.SubModule // The list of symbolic links to other files and folders in the specified folder, // if any. - SymbolicLinks []*types.SymbolicLink + SymbolicLinks []types.SymbolicLink // The full SHA-1 pointer of the tree information for the commit that contains the // folder. diff --git a/service/codecommit/api_op_GetMergeConflicts.go b/service/codecommit/api_op_GetMergeConflicts.go index 89578e9153e..8a22e1a07df 100644 --- a/service/codecommit/api_op_GetMergeConflicts.go +++ b/service/codecommit/api_op_GetMergeConflicts.go @@ -78,7 +78,7 @@ type GetMergeConflictsOutput struct { // FAST_FORWARD_MERGE, this list is always empty. // // This member is required. - ConflictMetadataList []*types.ConflictMetadata + ConflictMetadataList []types.ConflictMetadata // The commit ID of the destination commit specifier that was used in the merge // evaluation. @@ -90,7 +90,7 @@ type GetMergeConflictsOutput struct { // merge option. // // This member is required. - Mergeable *bool + Mergeable bool // The commit ID of the source commit specifier that was used in the merge // evaluation. diff --git a/service/codecommit/api_op_GetPullRequestApprovalStates.go b/service/codecommit/api_op_GetPullRequestApprovalStates.go index 1a5ed3025a4..223fe0b98b8 100644 --- a/service/codecommit/api_op_GetPullRequestApprovalStates.go +++ b/service/codecommit/api_op_GetPullRequestApprovalStates.go @@ -45,7 +45,7 @@ type GetPullRequestApprovalStatesInput struct { type GetPullRequestApprovalStatesOutput struct { // Information about users who have approved the pull request. - Approvals []*types.Approval + Approvals []types.Approval // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codecommit/api_op_GetPullRequestOverrideState.go b/service/codecommit/api_op_GetPullRequestOverrideState.go index 2ec2e0ea778..d683e8322fb 100644 --- a/service/codecommit/api_op_GetPullRequestOverrideState.go +++ b/service/codecommit/api_op_GetPullRequestOverrideState.go @@ -48,7 +48,7 @@ type GetPullRequestOverrideStateOutput struct { // A Boolean value that indicates whether a pull request has had its rules set // aside (TRUE) or whether all approval rules still apply (FALSE). - Overridden *bool + Overridden bool // The Amazon Resource Name (ARN) of the user or identity that overrode the rules // and their requirements for the pull request. diff --git a/service/codecommit/api_op_GetRepositoryTriggers.go b/service/codecommit/api_op_GetRepositoryTriggers.go index 182c87e8c58..80d7b0dd6e7 100644 --- a/service/codecommit/api_op_GetRepositoryTriggers.go +++ b/service/codecommit/api_op_GetRepositoryTriggers.go @@ -43,7 +43,7 @@ type GetRepositoryTriggersOutput struct { ConfigurationId *string // The JSON block of configuration information for each trigger. - Triggers []*types.RepositoryTrigger + Triggers []types.RepositoryTrigger // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codecommit/api_op_ListApprovalRuleTemplates.go b/service/codecommit/api_op_ListApprovalRuleTemplates.go index 59db6a5e929..b8119317c87 100644 --- a/service/codecommit/api_op_ListApprovalRuleTemplates.go +++ b/service/codecommit/api_op_ListApprovalRuleTemplates.go @@ -42,7 +42,7 @@ type ListApprovalRuleTemplatesOutput struct { // The names of all the approval rule templates found in the AWS Region for your // AWS account. - ApprovalRuleTemplateNames []*string + ApprovalRuleTemplateNames []string // An enumeration token that allows the operation to batch the next results of the // operation. diff --git a/service/codecommit/api_op_ListAssociatedApprovalRuleTemplatesForRepository.go b/service/codecommit/api_op_ListAssociatedApprovalRuleTemplatesForRepository.go index b5bb2da7024..7b2d6250ede 100644 --- a/service/codecommit/api_op_ListAssociatedApprovalRuleTemplatesForRepository.go +++ b/service/codecommit/api_op_ListAssociatedApprovalRuleTemplatesForRepository.go @@ -46,7 +46,7 @@ type ListAssociatedApprovalRuleTemplatesForRepositoryInput struct { type ListAssociatedApprovalRuleTemplatesForRepositoryOutput struct { // The names of all approval rule templates associated with the repository. - ApprovalRuleTemplateNames []*string + ApprovalRuleTemplateNames []string // An enumeration token that allows the operation to batch the next results of the // operation. diff --git a/service/codecommit/api_op_ListBranches.go b/service/codecommit/api_op_ListBranches.go index c4fd7253ecf..77d508940a0 100644 --- a/service/codecommit/api_op_ListBranches.go +++ b/service/codecommit/api_op_ListBranches.go @@ -42,7 +42,7 @@ type ListBranchesInput struct { type ListBranchesOutput struct { // The list of branch names. - Branches []*string + Branches []string // An enumeration token that returns the batch of the results. NextToken *string diff --git a/service/codecommit/api_op_ListPullRequests.go b/service/codecommit/api_op_ListPullRequests.go index b598f142027..ac9d7636e58 100644 --- a/service/codecommit/api_op_ListPullRequests.go +++ b/service/codecommit/api_op_ListPullRequests.go @@ -57,7 +57,7 @@ type ListPullRequestsOutput struct { // The system-generated IDs of the pull requests. // // This member is required. - PullRequestIds []*string + PullRequestIds []string // An enumeration token that allows the operation to batch the next results of the // operation. diff --git a/service/codecommit/api_op_ListRepositories.go b/service/codecommit/api_op_ListRepositories.go index a6d9f2a0508..624e2b4ffc0 100644 --- a/service/codecommit/api_op_ListRepositories.go +++ b/service/codecommit/api_op_ListRepositories.go @@ -53,7 +53,7 @@ type ListRepositoriesOutput struct { NextToken *string // Lists the repositories called by the list repositories operation. - Repositories []*types.RepositoryNameIdPair + Repositories []types.RepositoryNameIdPair // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codecommit/api_op_ListRepositoriesForApprovalRuleTemplate.go b/service/codecommit/api_op_ListRepositoriesForApprovalRuleTemplate.go index ca126fea7e5..16e9ae8de88 100644 --- a/service/codecommit/api_op_ListRepositoriesForApprovalRuleTemplate.go +++ b/service/codecommit/api_op_ListRepositoriesForApprovalRuleTemplate.go @@ -50,7 +50,7 @@ type ListRepositoriesForApprovalRuleTemplateOutput struct { // A list of repository names that are associated with the specified approval rule // template. - RepositoryNames []*string + RepositoryNames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codecommit/api_op_ListTagsForResource.go b/service/codecommit/api_op_ListTagsForResource.go index 7cab5ea1690..0f51e73f9c4 100644 --- a/service/codecommit/api_op_ListTagsForResource.go +++ b/service/codecommit/api_op_ListTagsForResource.go @@ -50,7 +50,7 @@ type ListTagsForResourceOutput struct { NextToken *string // A list of tag key and value pairs associated with the specified resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codecommit/api_op_MergeBranchesBySquash.go b/service/codecommit/api_op_MergeBranchesBySquash.go index 6e92544ef4d..58f9cf0fd82 100644 --- a/service/codecommit/api_op_MergeBranchesBySquash.go +++ b/service/codecommit/api_op_MergeBranchesBySquash.go @@ -76,7 +76,7 @@ type MergeBranchesBySquashInput struct { // If the commit contains deletions, whether to keep a folder or folder structure // if the changes leave the folders empty. If this is specified as true, a .gitkeep // file is created for empty folders. The default is false. - KeepEmptyFolders *bool + KeepEmptyFolders bool // The branch where the merge is applied. TargetBranch *string diff --git a/service/codecommit/api_op_MergeBranchesByThreeWay.go b/service/codecommit/api_op_MergeBranchesByThreeWay.go index af36d827f98..cb39e30c080 100644 --- a/service/codecommit/api_op_MergeBranchesByThreeWay.go +++ b/service/codecommit/api_op_MergeBranchesByThreeWay.go @@ -76,7 +76,7 @@ type MergeBranchesByThreeWayInput struct { // If the commit contains deletions, whether to keep a folder or folder structure // if the changes leave the folders empty. If true, a .gitkeep file is created for // empty folders. The default is false. - KeepEmptyFolders *bool + KeepEmptyFolders bool // The branch where the merge is applied. TargetBranch *string diff --git a/service/codecommit/api_op_MergePullRequestBySquash.go b/service/codecommit/api_op_MergePullRequestBySquash.go index 58b1d1a07da..54f94071fe9 100644 --- a/service/codecommit/api_op_MergePullRequestBySquash.go +++ b/service/codecommit/api_op_MergePullRequestBySquash.go @@ -72,7 +72,7 @@ type MergePullRequestBySquashInput struct { // If the commit contains deletions, whether to keep a folder or folder structure // if the changes leave the folders empty. If true, a .gitkeep file is created for // empty folders. The default is false. - KeepEmptyFolders *bool + KeepEmptyFolders bool // The full commit ID of the original or updated commit in the pull request source // branch. Pass this value if you want an exception thrown if the current commit ID diff --git a/service/codecommit/api_op_MergePullRequestByThreeWay.go b/service/codecommit/api_op_MergePullRequestByThreeWay.go index d8914953279..73fa41fcc6b 100644 --- a/service/codecommit/api_op_MergePullRequestByThreeWay.go +++ b/service/codecommit/api_op_MergePullRequestByThreeWay.go @@ -73,7 +73,7 @@ type MergePullRequestByThreeWayInput struct { // If the commit contains deletions, whether to keep a folder or folder structure // if the changes leave the folders empty. If true, a .gitkeep file is created for // empty folders. The default is false. - KeepEmptyFolders *bool + KeepEmptyFolders bool // The full commit ID of the original or updated commit in the pull request source // branch. Pass this value if you want an exception thrown if the current commit ID diff --git a/service/codecommit/api_op_PutRepositoryTriggers.go b/service/codecommit/api_op_PutRepositoryTriggers.go index 4926672e311..1403743d16c 100644 --- a/service/codecommit/api_op_PutRepositoryTriggers.go +++ b/service/codecommit/api_op_PutRepositoryTriggers.go @@ -38,7 +38,7 @@ type PutRepositoryTriggersInput struct { // The JSON block of configuration information for each trigger. // // This member is required. - Triggers []*types.RepositoryTrigger + Triggers []types.RepositoryTrigger } // Represents the output of a put repository triggers operation. diff --git a/service/codecommit/api_op_TagResource.go b/service/codecommit/api_op_TagResource.go index a78c1f394a2..0088883d5f1 100644 --- a/service/codecommit/api_op_TagResource.go +++ b/service/codecommit/api_op_TagResource.go @@ -40,7 +40,7 @@ type TagResourceInput struct { // The key-value pair to use when tagging this repository. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/codecommit/api_op_TestRepositoryTriggers.go b/service/codecommit/api_op_TestRepositoryTriggers.go index 4d09328f9e5..83b3246640c 100644 --- a/service/codecommit/api_op_TestRepositoryTriggers.go +++ b/service/codecommit/api_op_TestRepositoryTriggers.go @@ -40,7 +40,7 @@ type TestRepositoryTriggersInput struct { // The list of triggers to test. // // This member is required. - Triggers []*types.RepositoryTrigger + Triggers []types.RepositoryTrigger } // Represents the output of a test repository triggers operation. @@ -48,11 +48,11 @@ type TestRepositoryTriggersOutput struct { // The list of triggers that were not tested. This list provides the names of the // triggers that could not be tested, separated by commas. - FailedExecutions []*types.RepositoryTriggerExecutionFailure + FailedExecutions []types.RepositoryTriggerExecutionFailure // The list of triggers that were successfully tested. This list provides the names // of the triggers that were successfully tested, separated by commas. - SuccessfulExecutions []*string + SuccessfulExecutions []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codecommit/api_op_UntagResource.go b/service/codecommit/api_op_UntagResource.go index 39a071e08da..6aff769803f 100644 --- a/service/codecommit/api_op_UntagResource.go +++ b/service/codecommit/api_op_UntagResource.go @@ -39,7 +39,7 @@ type UntagResourceInput struct { // The tag key for each tag that you want to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/codecommit/deserializers.go b/service/codecommit/deserializers.go index 4990c0eb1cd..a223c5816b7 100644 --- a/service/codecommit/deserializers.go +++ b/service/codecommit/deserializers.go @@ -18049,7 +18049,7 @@ func awsAwsjson11_deserializeDocumentActorDoesNotExistException(v **types.ActorD if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18098,7 +18098,7 @@ func awsAwsjson11_deserializeDocumentApproval(v **types.Approval, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } default: @@ -18110,7 +18110,7 @@ func awsAwsjson11_deserializeDocumentApproval(v **types.Approval, value interfac return nil } -func awsAwsjson11_deserializeDocumentApprovalList(v *[]*types.Approval, value interface{}) error { +func awsAwsjson11_deserializeDocumentApprovalList(v *[]types.Approval, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18123,18 +18123,20 @@ func awsAwsjson11_deserializeDocumentApprovalList(v *[]*types.Approval, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Approval + var cv []types.Approval if *v == nil { - cv = []*types.Approval{} + cv = []types.Approval{} } else { cv = *v } for _, value := range shape { - var col *types.Approval - if err := awsAwsjson11_deserializeDocumentApproval(&col, value); err != nil { + var col types.Approval + destAddr := &col + if err := awsAwsjson11_deserializeDocumentApproval(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18170,7 +18172,7 @@ func awsAwsjson11_deserializeDocumentApprovalRule(v **types.ApprovalRule, value if !ok { return fmt.Errorf("expected ApprovalRuleContent to be of type string, got %T instead", value) } - sv.ApprovalRuleContent = &jtv + sv.ApprovalRuleContent = ptr.String(jtv) } case "approvalRuleId": @@ -18179,7 +18181,7 @@ func awsAwsjson11_deserializeDocumentApprovalRule(v **types.ApprovalRule, value if !ok { return fmt.Errorf("expected ApprovalRuleId to be of type string, got %T instead", value) } - sv.ApprovalRuleId = &jtv + sv.ApprovalRuleId = ptr.String(jtv) } case "approvalRuleName": @@ -18188,7 +18190,7 @@ func awsAwsjson11_deserializeDocumentApprovalRule(v **types.ApprovalRule, value if !ok { return fmt.Errorf("expected ApprovalRuleName to be of type string, got %T instead", value) } - sv.ApprovalRuleName = &jtv + sv.ApprovalRuleName = ptr.String(jtv) } case "creationDate": @@ -18223,7 +18225,7 @@ func awsAwsjson11_deserializeDocumentApprovalRule(v **types.ApprovalRule, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.LastModifiedUser = &jtv + sv.LastModifiedUser = ptr.String(jtv) } case "originApprovalRuleTemplate": @@ -18237,7 +18239,7 @@ func awsAwsjson11_deserializeDocumentApprovalRule(v **types.ApprovalRule, value if !ok { return fmt.Errorf("expected RuleContentSha256 to be of type string, got %T instead", value) } - sv.RuleContentSha256 = &jtv + sv.RuleContentSha256 = ptr.String(jtv) } default: @@ -18277,7 +18279,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleContentRequiredException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18317,7 +18319,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleDoesNotExistException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18357,7 +18359,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleEventMetadata(v **types.Approva if !ok { return fmt.Errorf("expected ApprovalRuleContent to be of type string, got %T instead", value) } - sv.ApprovalRuleContent = &jtv + sv.ApprovalRuleContent = ptr.String(jtv) } case "approvalRuleId": @@ -18366,7 +18368,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleEventMetadata(v **types.Approva if !ok { return fmt.Errorf("expected ApprovalRuleId to be of type string, got %T instead", value) } - sv.ApprovalRuleId = &jtv + sv.ApprovalRuleId = ptr.String(jtv) } case "approvalRuleName": @@ -18375,7 +18377,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleEventMetadata(v **types.Approva if !ok { return fmt.Errorf("expected ApprovalRuleName to be of type string, got %T instead", value) } - sv.ApprovalRuleName = &jtv + sv.ApprovalRuleName = ptr.String(jtv) } default: @@ -18415,7 +18417,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleNameAlreadyExistsException(v ** if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18455,7 +18457,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleNameRequiredException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18504,7 +18506,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleOverriddenEventMetadata(v **typ if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } default: @@ -18516,7 +18518,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleOverriddenEventMetadata(v **typ return nil } -func awsAwsjson11_deserializeDocumentApprovalRulesList(v *[]*types.ApprovalRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentApprovalRulesList(v *[]types.ApprovalRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18529,18 +18531,20 @@ func awsAwsjson11_deserializeDocumentApprovalRulesList(v *[]*types.ApprovalRule, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApprovalRule + var cv []types.ApprovalRule if *v == nil { - cv = []*types.ApprovalRule{} + cv = []types.ApprovalRule{} } else { cv = *v } for _, value := range shape { - var col *types.ApprovalRule - if err := awsAwsjson11_deserializeDocumentApprovalRule(&col, value); err != nil { + var col types.ApprovalRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentApprovalRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18548,7 +18552,7 @@ func awsAwsjson11_deserializeDocumentApprovalRulesList(v *[]*types.ApprovalRule, return nil } -func awsAwsjson11_deserializeDocumentApprovalRulesNotSatisfiedList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentApprovalRulesNotSatisfiedList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18561,21 +18565,21 @@ func awsAwsjson11_deserializeDocumentApprovalRulesNotSatisfiedList(v *[]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ApprovalRuleName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -18584,7 +18588,7 @@ func awsAwsjson11_deserializeDocumentApprovalRulesNotSatisfiedList(v *[]*string, return nil } -func awsAwsjson11_deserializeDocumentApprovalRulesSatisfiedList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentApprovalRulesSatisfiedList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18597,21 +18601,21 @@ func awsAwsjson11_deserializeDocumentApprovalRulesSatisfiedList(v *[]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ApprovalRuleName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -18648,7 +18652,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplate(v **types.ApprovalRule if !ok { return fmt.Errorf("expected ApprovalRuleTemplateContent to be of type string, got %T instead", value) } - sv.ApprovalRuleTemplateContent = &jtv + sv.ApprovalRuleTemplateContent = ptr.String(jtv) } case "approvalRuleTemplateDescription": @@ -18657,7 +18661,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplate(v **types.ApprovalRule if !ok { return fmt.Errorf("expected ApprovalRuleTemplateDescription to be of type string, got %T instead", value) } - sv.ApprovalRuleTemplateDescription = &jtv + sv.ApprovalRuleTemplateDescription = ptr.String(jtv) } case "approvalRuleTemplateId": @@ -18666,7 +18670,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplate(v **types.ApprovalRule if !ok { return fmt.Errorf("expected ApprovalRuleTemplateId to be of type string, got %T instead", value) } - sv.ApprovalRuleTemplateId = &jtv + sv.ApprovalRuleTemplateId = ptr.String(jtv) } case "approvalRuleTemplateName": @@ -18675,7 +18679,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplate(v **types.ApprovalRule if !ok { return fmt.Errorf("expected ApprovalRuleTemplateName to be of type string, got %T instead", value) } - sv.ApprovalRuleTemplateName = &jtv + sv.ApprovalRuleTemplateName = ptr.String(jtv) } case "creationDate": @@ -18710,7 +18714,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplate(v **types.ApprovalRule if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.LastModifiedUser = &jtv + sv.LastModifiedUser = ptr.String(jtv) } case "ruleContentSha256": @@ -18719,7 +18723,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplate(v **types.ApprovalRule if !ok { return fmt.Errorf("expected RuleContentSha256 to be of type string, got %T instead", value) } - sv.RuleContentSha256 = &jtv + sv.RuleContentSha256 = ptr.String(jtv) } default: @@ -18759,7 +18763,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateContentRequiredExceptio if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18799,7 +18803,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateDoesNotExistException(v if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18839,7 +18843,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateInUseException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18879,7 +18883,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateNameAlreadyExistsExcept if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18891,7 +18895,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateNameAlreadyExistsExcept return nil } -func awsAwsjson11_deserializeDocumentApprovalRuleTemplateNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentApprovalRuleTemplateNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18904,21 +18908,21 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateNameList(v *[]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ApprovalRuleTemplateName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -18955,7 +18959,7 @@ func awsAwsjson11_deserializeDocumentApprovalRuleTemplateNameRequiredException(v if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19004,7 +19008,7 @@ func awsAwsjson11_deserializeDocumentApprovalStateChangedEventMetadata(v **types if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } default: @@ -19044,7 +19048,7 @@ func awsAwsjson11_deserializeDocumentApprovalStateRequiredException(v **types.Ap if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19084,7 +19088,7 @@ func awsAwsjson11_deserializeDocumentAuthorDoesNotExistException(v **types.Autho if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19124,7 +19128,7 @@ func awsAwsjson11_deserializeDocumentBatchAssociateApprovalRuleTemplateWithRepos if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "errorMessage": @@ -19133,7 +19137,7 @@ func awsAwsjson11_deserializeDocumentBatchAssociateApprovalRuleTemplateWithRepos if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "repositoryName": @@ -19142,7 +19146,7 @@ func awsAwsjson11_deserializeDocumentBatchAssociateApprovalRuleTemplateWithRepos if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -19154,7 +19158,7 @@ func awsAwsjson11_deserializeDocumentBatchAssociateApprovalRuleTemplateWithRepos return nil } -func awsAwsjson11_deserializeDocumentBatchAssociateApprovalRuleTemplateWithRepositoriesErrorsList(v *[]*types.BatchAssociateApprovalRuleTemplateWithRepositoriesError, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchAssociateApprovalRuleTemplateWithRepositoriesErrorsList(v *[]types.BatchAssociateApprovalRuleTemplateWithRepositoriesError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19167,18 +19171,20 @@ func awsAwsjson11_deserializeDocumentBatchAssociateApprovalRuleTemplateWithRepos return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchAssociateApprovalRuleTemplateWithRepositoriesError + var cv []types.BatchAssociateApprovalRuleTemplateWithRepositoriesError if *v == nil { - cv = []*types.BatchAssociateApprovalRuleTemplateWithRepositoriesError{} + cv = []types.BatchAssociateApprovalRuleTemplateWithRepositoriesError{} } else { cv = *v } for _, value := range shape { - var col *types.BatchAssociateApprovalRuleTemplateWithRepositoriesError - if err := awsAwsjson11_deserializeDocumentBatchAssociateApprovalRuleTemplateWithRepositoriesError(&col, value); err != nil { + var col types.BatchAssociateApprovalRuleTemplateWithRepositoriesError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchAssociateApprovalRuleTemplateWithRepositoriesError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19214,7 +19220,7 @@ func awsAwsjson11_deserializeDocumentBatchDescribeMergeConflictsError(v **types. if !ok { return fmt.Errorf("expected ExceptionName to be of type string, got %T instead", value) } - sv.ExceptionName = &jtv + sv.ExceptionName = ptr.String(jtv) } case "filePath": @@ -19223,7 +19229,7 @@ func awsAwsjson11_deserializeDocumentBatchDescribeMergeConflictsError(v **types. if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.FilePath = &jtv + sv.FilePath = ptr.String(jtv) } case "message": @@ -19232,7 +19238,7 @@ func awsAwsjson11_deserializeDocumentBatchDescribeMergeConflictsError(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19244,7 +19250,7 @@ func awsAwsjson11_deserializeDocumentBatchDescribeMergeConflictsError(v **types. return nil } -func awsAwsjson11_deserializeDocumentBatchDescribeMergeConflictsErrors(v *[]*types.BatchDescribeMergeConflictsError, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchDescribeMergeConflictsErrors(v *[]types.BatchDescribeMergeConflictsError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19257,18 +19263,20 @@ func awsAwsjson11_deserializeDocumentBatchDescribeMergeConflictsErrors(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchDescribeMergeConflictsError + var cv []types.BatchDescribeMergeConflictsError if *v == nil { - cv = []*types.BatchDescribeMergeConflictsError{} + cv = []types.BatchDescribeMergeConflictsError{} } else { cv = *v } for _, value := range shape { - var col *types.BatchDescribeMergeConflictsError - if err := awsAwsjson11_deserializeDocumentBatchDescribeMergeConflictsError(&col, value); err != nil { + var col types.BatchDescribeMergeConflictsError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchDescribeMergeConflictsError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19304,7 +19312,7 @@ func awsAwsjson11_deserializeDocumentBatchDisassociateApprovalRuleTemplateFromRe if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "errorMessage": @@ -19313,7 +19321,7 @@ func awsAwsjson11_deserializeDocumentBatchDisassociateApprovalRuleTemplateFromRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "repositoryName": @@ -19322,7 +19330,7 @@ func awsAwsjson11_deserializeDocumentBatchDisassociateApprovalRuleTemplateFromRe if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -19334,7 +19342,7 @@ func awsAwsjson11_deserializeDocumentBatchDisassociateApprovalRuleTemplateFromRe return nil } -func awsAwsjson11_deserializeDocumentBatchDisassociateApprovalRuleTemplateFromRepositoriesErrorsList(v *[]*types.BatchDisassociateApprovalRuleTemplateFromRepositoriesError, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchDisassociateApprovalRuleTemplateFromRepositoriesErrorsList(v *[]types.BatchDisassociateApprovalRuleTemplateFromRepositoriesError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19347,18 +19355,20 @@ func awsAwsjson11_deserializeDocumentBatchDisassociateApprovalRuleTemplateFromRe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchDisassociateApprovalRuleTemplateFromRepositoriesError + var cv []types.BatchDisassociateApprovalRuleTemplateFromRepositoriesError if *v == nil { - cv = []*types.BatchDisassociateApprovalRuleTemplateFromRepositoriesError{} + cv = []types.BatchDisassociateApprovalRuleTemplateFromRepositoriesError{} } else { cv = *v } for _, value := range shape { - var col *types.BatchDisassociateApprovalRuleTemplateFromRepositoriesError - if err := awsAwsjson11_deserializeDocumentBatchDisassociateApprovalRuleTemplateFromRepositoriesError(&col, value); err != nil { + var col types.BatchDisassociateApprovalRuleTemplateFromRepositoriesError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchDisassociateApprovalRuleTemplateFromRepositoriesError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19394,7 +19404,7 @@ func awsAwsjson11_deserializeDocumentBatchGetCommitsError(v **types.BatchGetComm if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "errorCode": @@ -19403,7 +19413,7 @@ func awsAwsjson11_deserializeDocumentBatchGetCommitsError(v **types.BatchGetComm if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "errorMessage": @@ -19412,7 +19422,7 @@ func awsAwsjson11_deserializeDocumentBatchGetCommitsError(v **types.BatchGetComm if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -19424,7 +19434,7 @@ func awsAwsjson11_deserializeDocumentBatchGetCommitsError(v **types.BatchGetComm return nil } -func awsAwsjson11_deserializeDocumentBatchGetCommitsErrorsList(v *[]*types.BatchGetCommitsError, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchGetCommitsErrorsList(v *[]types.BatchGetCommitsError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19437,18 +19447,20 @@ func awsAwsjson11_deserializeDocumentBatchGetCommitsErrorsList(v *[]*types.Batch return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchGetCommitsError + var cv []types.BatchGetCommitsError if *v == nil { - cv = []*types.BatchGetCommitsError{} + cv = []types.BatchGetCommitsError{} } else { cv = *v } for _, value := range shape { - var col *types.BatchGetCommitsError - if err := awsAwsjson11_deserializeDocumentBatchGetCommitsError(&col, value); err != nil { + var col types.BatchGetCommitsError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchGetCommitsError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19484,7 +19496,7 @@ func awsAwsjson11_deserializeDocumentBeforeCommitIdAndAfterCommitIdAreSameExcept if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19524,7 +19536,7 @@ func awsAwsjson11_deserializeDocumentBlobIdDoesNotExistException(v **types.BlobI if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19564,7 +19576,7 @@ func awsAwsjson11_deserializeDocumentBlobIdRequiredException(v **types.BlobIdReq if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19604,7 +19616,7 @@ func awsAwsjson11_deserializeDocumentBlobMetadata(v **types.BlobMetadata, value if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BlobId = &jtv + sv.BlobId = ptr.String(jtv) } case "mode": @@ -19613,7 +19625,7 @@ func awsAwsjson11_deserializeDocumentBlobMetadata(v **types.BlobMetadata, value if !ok { return fmt.Errorf("expected Mode to be of type string, got %T instead", value) } - sv.Mode = &jtv + sv.Mode = ptr.String(jtv) } case "path": @@ -19622,7 +19634,7 @@ func awsAwsjson11_deserializeDocumentBlobMetadata(v **types.BlobMetadata, value if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } default: @@ -19662,7 +19674,7 @@ func awsAwsjson11_deserializeDocumentBranchDoesNotExistException(v **types.Branc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19702,7 +19714,7 @@ func awsAwsjson11_deserializeDocumentBranchInfo(v **types.BranchInfo, value inte if !ok { return fmt.Errorf("expected BranchName to be of type string, got %T instead", value) } - sv.BranchName = &jtv + sv.BranchName = ptr.String(jtv) } case "commitId": @@ -19711,7 +19723,7 @@ func awsAwsjson11_deserializeDocumentBranchInfo(v **types.BranchInfo, value inte if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } default: @@ -19751,7 +19763,7 @@ func awsAwsjson11_deserializeDocumentBranchNameExistsException(v **types.BranchN if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19791,7 +19803,7 @@ func awsAwsjson11_deserializeDocumentBranchNameIsTagNameException(v **types.Bran if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19803,7 +19815,7 @@ func awsAwsjson11_deserializeDocumentBranchNameIsTagNameException(v **types.Bran return nil } -func awsAwsjson11_deserializeDocumentBranchNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentBranchNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19816,21 +19828,21 @@ func awsAwsjson11_deserializeDocumentBranchNameList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected BranchName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -19867,7 +19879,7 @@ func awsAwsjson11_deserializeDocumentBranchNameRequiredException(v **types.Branc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19879,7 +19891,7 @@ func awsAwsjson11_deserializeDocumentBranchNameRequiredException(v **types.Branc return nil } -func awsAwsjson11_deserializeDocumentCallerReactions(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCallerReactions(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19892,21 +19904,21 @@ func awsAwsjson11_deserializeDocumentCallerReactions(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ReactionValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -19943,7 +19955,7 @@ func awsAwsjson11_deserializeDocumentCannotDeleteApprovalRuleFromTemplateExcepti if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19983,7 +19995,7 @@ func awsAwsjson11_deserializeDocumentCannotModifyApprovalRuleFromTemplateExcepti if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20023,7 +20035,7 @@ func awsAwsjson11_deserializeDocumentClientRequestTokenRequiredException(v **typ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20063,7 +20075,7 @@ func awsAwsjson11_deserializeDocumentComment(v **types.Comment, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AuthorArn = &jtv + sv.AuthorArn = ptr.String(jtv) } case "callerReactions": @@ -20077,7 +20089,7 @@ func awsAwsjson11_deserializeDocumentComment(v **types.Comment, value interface{ if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "commentId": @@ -20086,7 +20098,7 @@ func awsAwsjson11_deserializeDocumentComment(v **types.Comment, value interface{ if !ok { return fmt.Errorf("expected CommentId to be of type string, got %T instead", value) } - sv.CommentId = &jtv + sv.CommentId = ptr.String(jtv) } case "content": @@ -20095,7 +20107,7 @@ func awsAwsjson11_deserializeDocumentComment(v **types.Comment, value interface{ if !ok { return fmt.Errorf("expected Content to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "creationDate": @@ -20117,7 +20129,7 @@ func awsAwsjson11_deserializeDocumentComment(v **types.Comment, value interface{ if !ok { return fmt.Errorf("expected IsCommentDeleted to be of type *bool, got %T instead", value) } - sv.Deleted = &jtv + sv.Deleted = jtv } case "inReplyTo": @@ -20126,7 +20138,7 @@ func awsAwsjson11_deserializeDocumentComment(v **types.Comment, value interface{ if !ok { return fmt.Errorf("expected CommentId to be of type string, got %T instead", value) } - sv.InReplyTo = &jtv + sv.InReplyTo = ptr.String(jtv) } case "lastModifiedDate": @@ -20184,7 +20196,7 @@ func awsAwsjson11_deserializeDocumentCommentContentRequiredException(v **types.C if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20224,7 +20236,7 @@ func awsAwsjson11_deserializeDocumentCommentContentSizeLimitExceededException(v if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20264,7 +20276,7 @@ func awsAwsjson11_deserializeDocumentCommentDeletedException(v **types.CommentDe if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20304,7 +20316,7 @@ func awsAwsjson11_deserializeDocumentCommentDoesNotExistException(v **types.Comm if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20344,7 +20356,7 @@ func awsAwsjson11_deserializeDocumentCommentIdRequiredException(v **types.Commen if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20384,7 +20396,7 @@ func awsAwsjson11_deserializeDocumentCommentNotCreatedByCallerException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20396,7 +20408,7 @@ func awsAwsjson11_deserializeDocumentCommentNotCreatedByCallerException(v **type return nil } -func awsAwsjson11_deserializeDocumentComments(v *[]*types.Comment, value interface{}) error { +func awsAwsjson11_deserializeDocumentComments(v *[]types.Comment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20409,18 +20421,20 @@ func awsAwsjson11_deserializeDocumentComments(v *[]*types.Comment, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Comment + var cv []types.Comment if *v == nil { - cv = []*types.Comment{} + cv = []types.Comment{} } else { cv = *v } for _, value := range shape { - var col *types.Comment - if err := awsAwsjson11_deserializeDocumentComment(&col, value); err != nil { + var col types.Comment + destAddr := &col + if err := awsAwsjson11_deserializeDocumentComment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20456,7 +20470,7 @@ func awsAwsjson11_deserializeDocumentCommentsForComparedCommit(v **types.Comment if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.AfterBlobId = &jtv + sv.AfterBlobId = ptr.String(jtv) } case "afterCommitId": @@ -20465,7 +20479,7 @@ func awsAwsjson11_deserializeDocumentCommentsForComparedCommit(v **types.Comment if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.AfterCommitId = &jtv + sv.AfterCommitId = ptr.String(jtv) } case "beforeBlobId": @@ -20474,7 +20488,7 @@ func awsAwsjson11_deserializeDocumentCommentsForComparedCommit(v **types.Comment if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BeforeBlobId = &jtv + sv.BeforeBlobId = ptr.String(jtv) } case "beforeCommitId": @@ -20483,7 +20497,7 @@ func awsAwsjson11_deserializeDocumentCommentsForComparedCommit(v **types.Comment if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.BeforeCommitId = &jtv + sv.BeforeCommitId = ptr.String(jtv) } case "comments": @@ -20502,7 +20516,7 @@ func awsAwsjson11_deserializeDocumentCommentsForComparedCommit(v **types.Comment if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -20514,7 +20528,7 @@ func awsAwsjson11_deserializeDocumentCommentsForComparedCommit(v **types.Comment return nil } -func awsAwsjson11_deserializeDocumentCommentsForComparedCommitData(v *[]*types.CommentsForComparedCommit, value interface{}) error { +func awsAwsjson11_deserializeDocumentCommentsForComparedCommitData(v *[]types.CommentsForComparedCommit, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20527,18 +20541,20 @@ func awsAwsjson11_deserializeDocumentCommentsForComparedCommitData(v *[]*types.C return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CommentsForComparedCommit + var cv []types.CommentsForComparedCommit if *v == nil { - cv = []*types.CommentsForComparedCommit{} + cv = []types.CommentsForComparedCommit{} } else { cv = *v } for _, value := range shape { - var col *types.CommentsForComparedCommit - if err := awsAwsjson11_deserializeDocumentCommentsForComparedCommit(&col, value); err != nil { + var col types.CommentsForComparedCommit + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCommentsForComparedCommit(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20574,7 +20590,7 @@ func awsAwsjson11_deserializeDocumentCommentsForPullRequest(v **types.CommentsFo if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.AfterBlobId = &jtv + sv.AfterBlobId = ptr.String(jtv) } case "afterCommitId": @@ -20583,7 +20599,7 @@ func awsAwsjson11_deserializeDocumentCommentsForPullRequest(v **types.CommentsFo if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.AfterCommitId = &jtv + sv.AfterCommitId = ptr.String(jtv) } case "beforeBlobId": @@ -20592,7 +20608,7 @@ func awsAwsjson11_deserializeDocumentCommentsForPullRequest(v **types.CommentsFo if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BeforeBlobId = &jtv + sv.BeforeBlobId = ptr.String(jtv) } case "beforeCommitId": @@ -20601,7 +20617,7 @@ func awsAwsjson11_deserializeDocumentCommentsForPullRequest(v **types.CommentsFo if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.BeforeCommitId = &jtv + sv.BeforeCommitId = ptr.String(jtv) } case "comments": @@ -20620,7 +20636,7 @@ func awsAwsjson11_deserializeDocumentCommentsForPullRequest(v **types.CommentsFo if !ok { return fmt.Errorf("expected PullRequestId to be of type string, got %T instead", value) } - sv.PullRequestId = &jtv + sv.PullRequestId = ptr.String(jtv) } case "repositoryName": @@ -20629,7 +20645,7 @@ func awsAwsjson11_deserializeDocumentCommentsForPullRequest(v **types.CommentsFo if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -20641,7 +20657,7 @@ func awsAwsjson11_deserializeDocumentCommentsForPullRequest(v **types.CommentsFo return nil } -func awsAwsjson11_deserializeDocumentCommentsForPullRequestData(v *[]*types.CommentsForPullRequest, value interface{}) error { +func awsAwsjson11_deserializeDocumentCommentsForPullRequestData(v *[]types.CommentsForPullRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20654,18 +20670,20 @@ func awsAwsjson11_deserializeDocumentCommentsForPullRequestData(v *[]*types.Comm return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CommentsForPullRequest + var cv []types.CommentsForPullRequest if *v == nil { - cv = []*types.CommentsForPullRequest{} + cv = []types.CommentsForPullRequest{} } else { cv = *v } for _, value := range shape { - var col *types.CommentsForPullRequest - if err := awsAwsjson11_deserializeDocumentCommentsForPullRequest(&col, value); err != nil { + var col types.CommentsForPullRequest + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCommentsForPullRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20701,7 +20719,7 @@ func awsAwsjson11_deserializeDocumentCommit(v **types.Commit, value interface{}) if !ok { return fmt.Errorf("expected AdditionalData to be of type string, got %T instead", value) } - sv.AdditionalData = &jtv + sv.AdditionalData = ptr.String(jtv) } case "author": @@ -20715,7 +20733,7 @@ func awsAwsjson11_deserializeDocumentCommit(v **types.Commit, value interface{}) if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "committer": @@ -20729,7 +20747,7 @@ func awsAwsjson11_deserializeDocumentCommit(v **types.Commit, value interface{}) if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "parents": @@ -20743,7 +20761,7 @@ func awsAwsjson11_deserializeDocumentCommit(v **types.Commit, value interface{}) if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.TreeId = &jtv + sv.TreeId = ptr.String(jtv) } default: @@ -20783,7 +20801,7 @@ func awsAwsjson11_deserializeDocumentCommitDoesNotExistException(v **types.Commi if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20823,7 +20841,7 @@ func awsAwsjson11_deserializeDocumentCommitIdDoesNotExistException(v **types.Com if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20863,7 +20881,7 @@ func awsAwsjson11_deserializeDocumentCommitIdRequiredException(v **types.CommitI if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20903,7 +20921,7 @@ func awsAwsjson11_deserializeDocumentCommitIdsLimitExceededException(v **types.C if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20943,7 +20961,7 @@ func awsAwsjson11_deserializeDocumentCommitIdsListRequiredException(v **types.Co if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20983,7 +21001,7 @@ func awsAwsjson11_deserializeDocumentCommitMessageLengthExceededException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20995,7 +21013,7 @@ func awsAwsjson11_deserializeDocumentCommitMessageLengthExceededException(v **ty return nil } -func awsAwsjson11_deserializeDocumentCommitObjectsList(v *[]*types.Commit, value interface{}) error { +func awsAwsjson11_deserializeDocumentCommitObjectsList(v *[]types.Commit, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21008,18 +21026,20 @@ func awsAwsjson11_deserializeDocumentCommitObjectsList(v *[]*types.Commit, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Commit + var cv []types.Commit if *v == nil { - cv = []*types.Commit{} + cv = []types.Commit{} } else { cv = *v } for _, value := range shape { - var col *types.Commit - if err := awsAwsjson11_deserializeDocumentCommit(&col, value); err != nil { + var col types.Commit + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCommit(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21055,7 +21075,7 @@ func awsAwsjson11_deserializeDocumentCommitRequiredException(v **types.CommitReq if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21095,7 +21115,7 @@ func awsAwsjson11_deserializeDocumentConcurrentReferenceUpdateException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21176,7 +21196,7 @@ func awsAwsjson11_deserializeDocumentConflictMetadata(v **types.ConflictMetadata if !ok { return fmt.Errorf("expected IsContentConflict to be of type *bool, got %T instead", value) } - sv.ContentConflict = &jtv + sv.ContentConflict = jtv } case "fileModeConflict": @@ -21185,7 +21205,7 @@ func awsAwsjson11_deserializeDocumentConflictMetadata(v **types.ConflictMetadata if !ok { return fmt.Errorf("expected IsFileModeConflict to be of type *bool, got %T instead", value) } - sv.FileModeConflict = &jtv + sv.FileModeConflict = jtv } case "fileModes": @@ -21199,7 +21219,7 @@ func awsAwsjson11_deserializeDocumentConflictMetadata(v **types.ConflictMetadata if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.FilePath = &jtv + sv.FilePath = ptr.String(jtv) } case "fileSizes": @@ -21227,7 +21247,7 @@ func awsAwsjson11_deserializeDocumentConflictMetadata(v **types.ConflictMetadata if err != nil { return err } - sv.NumberOfConflicts = ptr.Int32(int32(i64)) + sv.NumberOfConflicts = int32(i64) } case "objectTypeConflict": @@ -21236,7 +21256,7 @@ func awsAwsjson11_deserializeDocumentConflictMetadata(v **types.ConflictMetadata if !ok { return fmt.Errorf("expected IsObjectTypeConflict to be of type *bool, got %T instead", value) } - sv.ObjectTypeConflict = &jtv + sv.ObjectTypeConflict = jtv } case "objectTypes": @@ -21253,7 +21273,7 @@ func awsAwsjson11_deserializeDocumentConflictMetadata(v **types.ConflictMetadata return nil } -func awsAwsjson11_deserializeDocumentConflictMetadataList(v *[]*types.ConflictMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentConflictMetadataList(v *[]types.ConflictMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21266,18 +21286,20 @@ func awsAwsjson11_deserializeDocumentConflictMetadataList(v *[]*types.ConflictMe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConflictMetadata + var cv []types.ConflictMetadata if *v == nil { - cv = []*types.ConflictMetadata{} + cv = []types.ConflictMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.ConflictMetadata - if err := awsAwsjson11_deserializeDocumentConflictMetadata(&col, value); err != nil { + var col types.ConflictMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConflictMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21285,7 +21307,7 @@ func awsAwsjson11_deserializeDocumentConflictMetadataList(v *[]*types.ConflictMe return nil } -func awsAwsjson11_deserializeDocumentConflicts(v *[]*types.Conflict, value interface{}) error { +func awsAwsjson11_deserializeDocumentConflicts(v *[]types.Conflict, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21298,18 +21320,20 @@ func awsAwsjson11_deserializeDocumentConflicts(v *[]*types.Conflict, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Conflict + var cv []types.Conflict if *v == nil { - cv = []*types.Conflict{} + cv = []types.Conflict{} } else { cv = *v } for _, value := range shape { - var col *types.Conflict - if err := awsAwsjson11_deserializeDocumentConflict(&col, value); err != nil { + var col types.Conflict + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConflict(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21345,7 +21369,7 @@ func awsAwsjson11_deserializeDocumentDefaultBranchCannotBeDeletedException(v **t if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21407,7 +21431,7 @@ func awsAwsjson11_deserializeDocumentDifference(v **types.Difference, value inte return nil } -func awsAwsjson11_deserializeDocumentDifferenceList(v *[]*types.Difference, value interface{}) error { +func awsAwsjson11_deserializeDocumentDifferenceList(v *[]types.Difference, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21420,18 +21444,20 @@ func awsAwsjson11_deserializeDocumentDifferenceList(v *[]*types.Difference, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Difference + var cv []types.Difference if *v == nil { - cv = []*types.Difference{} + cv = []types.Difference{} } else { cv = *v } for _, value := range shape { - var col *types.Difference - if err := awsAwsjson11_deserializeDocumentDifference(&col, value); err != nil { + var col types.Difference + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDifference(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21467,7 +21493,7 @@ func awsAwsjson11_deserializeDocumentDirectoryNameConflictsWithFileNameException if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21507,7 +21533,7 @@ func awsAwsjson11_deserializeDocumentEncryptionIntegrityChecksFailedException(v if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21547,7 +21573,7 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyAccessDeniedException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21587,7 +21613,7 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyDisabledException(v **types.En if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21627,7 +21653,7 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyNotFoundException(v **types.En if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21667,7 +21693,7 @@ func awsAwsjson11_deserializeDocumentEncryptionKeyUnavailableException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21717,7 +21743,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte if !ok { return fmt.Errorf("expected Approved to be of type *bool, got %T instead", value) } - sv.Approved = &jtv + sv.Approved = jtv } case "overridden": @@ -21726,7 +21752,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte if !ok { return fmt.Errorf("expected Overridden to be of type *bool, got %T instead", value) } - sv.Overridden = &jtv + sv.Overridden = jtv } default: @@ -21766,7 +21792,7 @@ func awsAwsjson11_deserializeDocumentFile(v **types.File, value interface{}) err if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.AbsolutePath = &jtv + sv.AbsolutePath = ptr.String(jtv) } case "blobId": @@ -21775,7 +21801,7 @@ func awsAwsjson11_deserializeDocumentFile(v **types.File, value interface{}) err if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BlobId = &jtv + sv.BlobId = ptr.String(jtv) } case "fileMode": @@ -21793,7 +21819,7 @@ func awsAwsjson11_deserializeDocumentFile(v **types.File, value interface{}) err if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.RelativePath = &jtv + sv.RelativePath = ptr.String(jtv) } default: @@ -21833,7 +21859,7 @@ func awsAwsjson11_deserializeDocumentFileContentAndSourceFileSpecifiedException( if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21873,7 +21899,7 @@ func awsAwsjson11_deserializeDocumentFileContentRequiredException(v **types.File if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21913,7 +21939,7 @@ func awsAwsjson11_deserializeDocumentFileContentSizeLimitExceededException(v **t if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21953,7 +21979,7 @@ func awsAwsjson11_deserializeDocumentFileDoesNotExistException(v **types.FileDoe if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21993,7 +22019,7 @@ func awsAwsjson11_deserializeDocumentFileEntryRequiredException(v **types.FileEn if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22005,7 +22031,7 @@ func awsAwsjson11_deserializeDocumentFileEntryRequiredException(v **types.FileEn return nil } -func awsAwsjson11_deserializeDocumentFileList(v *[]*types.File, value interface{}) error { +func awsAwsjson11_deserializeDocumentFileList(v *[]types.File, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22018,18 +22044,20 @@ func awsAwsjson11_deserializeDocumentFileList(v *[]*types.File, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.File + var cv []types.File if *v == nil { - cv = []*types.File{} + cv = []types.File{} } else { cv = *v } for _, value := range shape { - var col *types.File - if err := awsAwsjson11_deserializeDocumentFile(&col, value); err != nil { + var col types.File + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFile(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22065,7 +22093,7 @@ func awsAwsjson11_deserializeDocumentFileMetadata(v **types.FileMetadata, value if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.AbsolutePath = &jtv + sv.AbsolutePath = ptr.String(jtv) } case "blobId": @@ -22074,7 +22102,7 @@ func awsAwsjson11_deserializeDocumentFileMetadata(v **types.FileMetadata, value if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BlobId = &jtv + sv.BlobId = ptr.String(jtv) } case "fileMode": @@ -22123,7 +22151,7 @@ func awsAwsjson11_deserializeDocumentFileModeRequiredException(v **types.FileMod if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22221,7 +22249,7 @@ func awsAwsjson11_deserializeDocumentFileNameConflictsWithDirectoryNameException if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22261,7 +22289,7 @@ func awsAwsjson11_deserializeDocumentFilePathConflictsWithSubmodulePathException if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22305,7 +22333,7 @@ func awsAwsjson11_deserializeDocumentFileSizes(v **types.FileSizes, value interf if err != nil { return err } - sv.Base = &i64 + sv.Base = i64 } case "destination": @@ -22318,7 +22346,7 @@ func awsAwsjson11_deserializeDocumentFileSizes(v **types.FileSizes, value interf if err != nil { return err } - sv.Destination = &i64 + sv.Destination = i64 } case "source": @@ -22331,7 +22359,7 @@ func awsAwsjson11_deserializeDocumentFileSizes(v **types.FileSizes, value interf if err != nil { return err } - sv.Source = &i64 + sv.Source = i64 } default: @@ -22343,7 +22371,7 @@ func awsAwsjson11_deserializeDocumentFileSizes(v **types.FileSizes, value interf return nil } -func awsAwsjson11_deserializeDocumentFilesMetadata(v *[]*types.FileMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentFilesMetadata(v *[]types.FileMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22356,18 +22384,20 @@ func awsAwsjson11_deserializeDocumentFilesMetadata(v *[]*types.FileMetadata, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FileMetadata + var cv []types.FileMetadata if *v == nil { - cv = []*types.FileMetadata{} + cv = []types.FileMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.FileMetadata - if err := awsAwsjson11_deserializeDocumentFileMetadata(&col, value); err != nil { + var col types.FileMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFileMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22403,7 +22433,7 @@ func awsAwsjson11_deserializeDocumentFileTooLargeException(v **types.FileTooLarg if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22443,7 +22473,7 @@ func awsAwsjson11_deserializeDocumentFolder(v **types.Folder, value interface{}) if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.AbsolutePath = &jtv + sv.AbsolutePath = ptr.String(jtv) } case "relativePath": @@ -22452,7 +22482,7 @@ func awsAwsjson11_deserializeDocumentFolder(v **types.Folder, value interface{}) if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.RelativePath = &jtv + sv.RelativePath = ptr.String(jtv) } case "treeId": @@ -22461,7 +22491,7 @@ func awsAwsjson11_deserializeDocumentFolder(v **types.Folder, value interface{}) if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.TreeId = &jtv + sv.TreeId = ptr.String(jtv) } default: @@ -22501,7 +22531,7 @@ func awsAwsjson11_deserializeDocumentFolderContentSizeLimitExceededException(v * if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22541,7 +22571,7 @@ func awsAwsjson11_deserializeDocumentFolderDoesNotExistException(v **types.Folde if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22553,7 +22583,7 @@ func awsAwsjson11_deserializeDocumentFolderDoesNotExistException(v **types.Folde return nil } -func awsAwsjson11_deserializeDocumentFolderList(v *[]*types.Folder, value interface{}) error { +func awsAwsjson11_deserializeDocumentFolderList(v *[]types.Folder, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22566,18 +22596,20 @@ func awsAwsjson11_deserializeDocumentFolderList(v *[]*types.Folder, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Folder + var cv []types.Folder if *v == nil { - cv = []*types.Folder{} + cv = []types.Folder{} } else { cv = *v } for _, value := range shape { - var col *types.Folder - if err := awsAwsjson11_deserializeDocumentFolder(&col, value); err != nil { + var col types.Folder + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFolder(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22613,7 +22645,7 @@ func awsAwsjson11_deserializeDocumentIdempotencyParameterMismatchException(v **t if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22653,7 +22685,7 @@ func awsAwsjson11_deserializeDocumentInvalidActorArnException(v **types.InvalidA if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22693,7 +22725,7 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleContentException(v **typ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22733,7 +22765,7 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleNameException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22773,7 +22805,7 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleTemplateContentException if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22813,7 +22845,7 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleTemplateDescriptionExcep if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22853,7 +22885,7 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalRuleTemplateNameException(v if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22893,7 +22925,7 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalStateException(v **types.Inv if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22933,7 +22965,7 @@ func awsAwsjson11_deserializeDocumentInvalidAuthorArnException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22973,7 +23005,7 @@ func awsAwsjson11_deserializeDocumentInvalidBlobIdException(v **types.InvalidBlo if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23013,7 +23045,7 @@ func awsAwsjson11_deserializeDocumentInvalidBranchNameException(v **types.Invali if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23053,7 +23085,7 @@ func awsAwsjson11_deserializeDocumentInvalidClientRequestTokenException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23093,7 +23125,7 @@ func awsAwsjson11_deserializeDocumentInvalidCommentIdException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23133,7 +23165,7 @@ func awsAwsjson11_deserializeDocumentInvalidCommitException(v **types.InvalidCom if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23173,7 +23205,7 @@ func awsAwsjson11_deserializeDocumentInvalidCommitIdException(v **types.InvalidC if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23213,7 +23245,7 @@ func awsAwsjson11_deserializeDocumentInvalidConflictDetailLevelException(v **typ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23253,7 +23285,7 @@ func awsAwsjson11_deserializeDocumentInvalidConflictResolutionException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23293,7 +23325,7 @@ func awsAwsjson11_deserializeDocumentInvalidConflictResolutionStrategyException( if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23333,7 +23365,7 @@ func awsAwsjson11_deserializeDocumentInvalidContinuationTokenException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23373,7 +23405,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeletionParameterException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23413,7 +23445,7 @@ func awsAwsjson11_deserializeDocumentInvalidDescriptionException(v **types.Inval if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23453,7 +23485,7 @@ func awsAwsjson11_deserializeDocumentInvalidDestinationCommitSpecifierException( if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23493,7 +23525,7 @@ func awsAwsjson11_deserializeDocumentInvalidEmailException(v **types.InvalidEmai if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23533,7 +23565,7 @@ func awsAwsjson11_deserializeDocumentInvalidFileLocationException(v **types.Inva if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23573,7 +23605,7 @@ func awsAwsjson11_deserializeDocumentInvalidFileModeException(v **types.InvalidF if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23613,7 +23645,7 @@ func awsAwsjson11_deserializeDocumentInvalidFilePositionException(v **types.Inva if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23653,7 +23685,7 @@ func awsAwsjson11_deserializeDocumentInvalidMaxConflictFilesException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23693,7 +23725,7 @@ func awsAwsjson11_deserializeDocumentInvalidMaxMergeHunksException(v **types.Inv if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23733,7 +23765,7 @@ func awsAwsjson11_deserializeDocumentInvalidMaxResultsException(v **types.Invali if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23773,7 +23805,7 @@ func awsAwsjson11_deserializeDocumentInvalidMergeOptionException(v **types.Inval if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23813,7 +23845,7 @@ func awsAwsjson11_deserializeDocumentInvalidOrderException(v **types.InvalidOrde if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23853,7 +23885,7 @@ func awsAwsjson11_deserializeDocumentInvalidOverrideStatusException(v **types.In if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23893,7 +23925,7 @@ func awsAwsjson11_deserializeDocumentInvalidParentCommitIdException(v **types.In if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23933,7 +23965,7 @@ func awsAwsjson11_deserializeDocumentInvalidPathException(v **types.InvalidPathE if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23973,7 +24005,7 @@ func awsAwsjson11_deserializeDocumentInvalidPullRequestEventTypeException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24013,7 +24045,7 @@ func awsAwsjson11_deserializeDocumentInvalidPullRequestIdException(v **types.Inv if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24053,7 +24085,7 @@ func awsAwsjson11_deserializeDocumentInvalidPullRequestStatusException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24093,7 +24125,7 @@ func awsAwsjson11_deserializeDocumentInvalidPullRequestStatusUpdateException(v * if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24133,7 +24165,7 @@ func awsAwsjson11_deserializeDocumentInvalidReactionUserArnException(v **types.I if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24173,7 +24205,7 @@ func awsAwsjson11_deserializeDocumentInvalidReactionValueException(v **types.Inv if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24213,7 +24245,7 @@ func awsAwsjson11_deserializeDocumentInvalidReferenceNameException(v **types.Inv if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24253,7 +24285,7 @@ func awsAwsjson11_deserializeDocumentInvalidRelativeFileVersionEnumException(v * if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24293,7 +24325,7 @@ func awsAwsjson11_deserializeDocumentInvalidReplacementContentException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24333,7 +24365,7 @@ func awsAwsjson11_deserializeDocumentInvalidReplacementTypeException(v **types.I if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24373,7 +24405,7 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryDescriptionException(v **t if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24413,7 +24445,7 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryNameException(v **types.In if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24453,7 +24485,7 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerBranchNameException if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24493,7 +24525,7 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerCustomDataException if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24533,7 +24565,7 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerDestinationArnExcep if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24573,7 +24605,7 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerEventsException(v * if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24613,7 +24645,7 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerNameException(v **t if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24653,7 +24685,7 @@ func awsAwsjson11_deserializeDocumentInvalidRepositoryTriggerRegionException(v * if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24693,7 +24725,7 @@ func awsAwsjson11_deserializeDocumentInvalidResourceArnException(v **types.Inval if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24733,7 +24765,7 @@ func awsAwsjson11_deserializeDocumentInvalidRevisionIdException(v **types.Invali if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24773,7 +24805,7 @@ func awsAwsjson11_deserializeDocumentInvalidRuleContentSha256Exception(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24813,7 +24845,7 @@ func awsAwsjson11_deserializeDocumentInvalidSortByException(v **types.InvalidSor if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24853,7 +24885,7 @@ func awsAwsjson11_deserializeDocumentInvalidSourceCommitSpecifierException(v **t if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24893,7 +24925,7 @@ func awsAwsjson11_deserializeDocumentInvalidSystemTagUsageException(v **types.In if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24933,7 +24965,7 @@ func awsAwsjson11_deserializeDocumentInvalidTagKeysListException(v **types.Inval if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24973,7 +25005,7 @@ func awsAwsjson11_deserializeDocumentInvalidTagsMapException(v **types.InvalidTa if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25013,7 +25045,7 @@ func awsAwsjson11_deserializeDocumentInvalidTargetBranchException(v **types.Inva if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25053,7 +25085,7 @@ func awsAwsjson11_deserializeDocumentInvalidTargetException(v **types.InvalidTar if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25093,7 +25125,7 @@ func awsAwsjson11_deserializeDocumentInvalidTargetsException(v **types.InvalidTa if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25133,7 +25165,7 @@ func awsAwsjson11_deserializeDocumentInvalidTitleException(v **types.InvalidTitl if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25173,7 +25205,7 @@ func awsAwsjson11_deserializeDocumentIsBinaryFile(v **types.IsBinaryFile, value if !ok { return fmt.Errorf("expected CapitalBoolean to be of type *bool, got %T instead", value) } - sv.Base = &jtv + sv.Base = ptr.Bool(jtv) } case "destination": @@ -25182,7 +25214,7 @@ func awsAwsjson11_deserializeDocumentIsBinaryFile(v **types.IsBinaryFile, value if !ok { return fmt.Errorf("expected CapitalBoolean to be of type *bool, got %T instead", value) } - sv.Destination = &jtv + sv.Destination = ptr.Bool(jtv) } case "source": @@ -25191,7 +25223,7 @@ func awsAwsjson11_deserializeDocumentIsBinaryFile(v **types.IsBinaryFile, value if !ok { return fmt.Errorf("expected CapitalBoolean to be of type *bool, got %T instead", value) } - sv.Source = &jtv + sv.Source = ptr.Bool(jtv) } default: @@ -25231,7 +25263,7 @@ func awsAwsjson11_deserializeDocumentLocation(v **types.Location, value interfac if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.FilePath = &jtv + sv.FilePath = ptr.String(jtv) } case "filePosition": @@ -25244,7 +25276,7 @@ func awsAwsjson11_deserializeDocumentLocation(v **types.Location, value interfac if err != nil { return err } - sv.FilePosition = &i64 + sv.FilePosition = ptr.Int64(i64) } case "relativeFileVersion": @@ -25293,7 +25325,7 @@ func awsAwsjson11_deserializeDocumentManualMergeRequiredException(v **types.Manu if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25333,7 +25365,7 @@ func awsAwsjson11_deserializeDocumentMaximumBranchesExceededException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25373,7 +25405,7 @@ func awsAwsjson11_deserializeDocumentMaximumConflictResolutionEntriesExceededExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25413,7 +25445,7 @@ func awsAwsjson11_deserializeDocumentMaximumFileContentToLoadExceededException(v if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25453,7 +25485,7 @@ func awsAwsjson11_deserializeDocumentMaximumFileEntriesExceededException(v **typ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25493,7 +25525,7 @@ func awsAwsjson11_deserializeDocumentMaximumItemsToCompareExceededException(v ** if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25533,7 +25565,7 @@ func awsAwsjson11_deserializeDocumentMaximumNumberOfApprovalsExceededException(v if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25573,7 +25605,7 @@ func awsAwsjson11_deserializeDocumentMaximumOpenPullRequestsExceededException(v if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25613,7 +25645,7 @@ func awsAwsjson11_deserializeDocumentMaximumRepositoryNamesExceededException(v * if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25653,7 +25685,7 @@ func awsAwsjson11_deserializeDocumentMaximumRepositoryTriggersExceededException( if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25693,7 +25725,7 @@ func awsAwsjson11_deserializeDocumentMaximumRuleTemplatesAssociatedWithRepositor if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25743,7 +25775,7 @@ func awsAwsjson11_deserializeDocumentMergeHunk(v **types.MergeHunk, value interf if !ok { return fmt.Errorf("expected IsHunkConflict to be of type *bool, got %T instead", value) } - sv.IsConflict = &jtv + sv.IsConflict = jtv } case "source": @@ -25801,7 +25833,7 @@ func awsAwsjson11_deserializeDocumentMergeHunkDetail(v **types.MergeHunkDetail, if !ok { return fmt.Errorf("expected HunkContent to be of type string, got %T instead", value) } - sv.HunkContent = &jtv + sv.HunkContent = ptr.String(jtv) } case "startLine": @@ -25826,7 +25858,7 @@ func awsAwsjson11_deserializeDocumentMergeHunkDetail(v **types.MergeHunkDetail, return nil } -func awsAwsjson11_deserializeDocumentMergeHunks(v *[]*types.MergeHunk, value interface{}) error { +func awsAwsjson11_deserializeDocumentMergeHunks(v *[]types.MergeHunk, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25839,18 +25871,20 @@ func awsAwsjson11_deserializeDocumentMergeHunks(v *[]*types.MergeHunk, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MergeHunk + var cv []types.MergeHunk if *v == nil { - cv = []*types.MergeHunk{} + cv = []types.MergeHunk{} } else { cv = *v } for _, value := range shape { - var col *types.MergeHunk - if err := awsAwsjson11_deserializeDocumentMergeHunk(&col, value); err != nil { + var col types.MergeHunk + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMergeHunk(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25886,7 +25920,7 @@ func awsAwsjson11_deserializeDocumentMergeMetadata(v **types.MergeMetadata, valu if !ok { return fmt.Errorf("expected IsMerged to be of type *bool, got %T instead", value) } - sv.IsMerged = &jtv + sv.IsMerged = jtv } case "mergeCommitId": @@ -25895,7 +25929,7 @@ func awsAwsjson11_deserializeDocumentMergeMetadata(v **types.MergeMetadata, valu if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.MergeCommitId = &jtv + sv.MergeCommitId = ptr.String(jtv) } case "mergedBy": @@ -25904,7 +25938,7 @@ func awsAwsjson11_deserializeDocumentMergeMetadata(v **types.MergeMetadata, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.MergedBy = &jtv + sv.MergedBy = ptr.String(jtv) } case "mergeOption": @@ -26002,7 +26036,7 @@ func awsAwsjson11_deserializeDocumentMergeOptionRequiredException(v **types.Merg if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26078,7 +26112,7 @@ func awsAwsjson11_deserializeDocumentMultipleConflictResolutionEntriesException( if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26118,7 +26152,7 @@ func awsAwsjson11_deserializeDocumentMultipleRepositoriesInPullRequestException( if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26158,7 +26192,7 @@ func awsAwsjson11_deserializeDocumentNameLengthExceededException(v **types.NameL if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26198,7 +26232,7 @@ func awsAwsjson11_deserializeDocumentNoChangeException(v **types.NoChangeExcepti if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26238,7 +26272,7 @@ func awsAwsjson11_deserializeDocumentNumberOfRulesExceededException(v **types.Nu if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26278,7 +26312,7 @@ func awsAwsjson11_deserializeDocumentNumberOfRuleTemplatesExceededException(v ** if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26376,7 +26410,7 @@ func awsAwsjson11_deserializeDocumentOriginApprovalRuleTemplate(v **types.Origin if !ok { return fmt.Errorf("expected ApprovalRuleTemplateId to be of type string, got %T instead", value) } - sv.ApprovalRuleTemplateId = &jtv + sv.ApprovalRuleTemplateId = ptr.String(jtv) } case "approvalRuleTemplateName": @@ -26385,7 +26419,7 @@ func awsAwsjson11_deserializeDocumentOriginApprovalRuleTemplate(v **types.Origin if !ok { return fmt.Errorf("expected ApprovalRuleTemplateName to be of type string, got %T instead", value) } - sv.ApprovalRuleTemplateName = &jtv + sv.ApprovalRuleTemplateName = ptr.String(jtv) } default: @@ -26425,7 +26459,7 @@ func awsAwsjson11_deserializeDocumentOverrideAlreadySetException(v **types.Overr if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26465,7 +26499,7 @@ func awsAwsjson11_deserializeDocumentOverrideStatusRequiredException(v **types.O if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26505,7 +26539,7 @@ func awsAwsjson11_deserializeDocumentParentCommitDoesNotExistException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26545,7 +26579,7 @@ func awsAwsjson11_deserializeDocumentParentCommitIdOutdatedException(v **types.P if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26585,7 +26619,7 @@ func awsAwsjson11_deserializeDocumentParentCommitIdRequiredException(v **types.P if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26597,7 +26631,7 @@ func awsAwsjson11_deserializeDocumentParentCommitIdRequiredException(v **types.P return nil } -func awsAwsjson11_deserializeDocumentParentList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentParentList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26610,21 +26644,21 @@ func awsAwsjson11_deserializeDocumentParentList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -26661,7 +26695,7 @@ func awsAwsjson11_deserializeDocumentPathDoesNotExistException(v **types.PathDoe if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26701,7 +26735,7 @@ func awsAwsjson11_deserializeDocumentPathRequiredException(v **types.PathRequire if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26746,7 +26780,7 @@ func awsAwsjson11_deserializeDocumentPullRequest(v **types.PullRequest, value in if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AuthorArn = &jtv + sv.AuthorArn = ptr.String(jtv) } case "clientRequestToken": @@ -26755,7 +26789,7 @@ func awsAwsjson11_deserializeDocumentPullRequest(v **types.PullRequest, value in if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "creationDate": @@ -26777,7 +26811,7 @@ func awsAwsjson11_deserializeDocumentPullRequest(v **types.PullRequest, value in if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastActivityDate": @@ -26799,7 +26833,7 @@ func awsAwsjson11_deserializeDocumentPullRequest(v **types.PullRequest, value in if !ok { return fmt.Errorf("expected PullRequestId to be of type string, got %T instead", value) } - sv.PullRequestId = &jtv + sv.PullRequestId = ptr.String(jtv) } case "pullRequestStatus": @@ -26822,7 +26856,7 @@ func awsAwsjson11_deserializeDocumentPullRequest(v **types.PullRequest, value in if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "title": @@ -26831,7 +26865,7 @@ func awsAwsjson11_deserializeDocumentPullRequest(v **types.PullRequest, value in if !ok { return fmt.Errorf("expected Title to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } default: @@ -26871,7 +26905,7 @@ func awsAwsjson11_deserializeDocumentPullRequestAlreadyClosedException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26911,7 +26945,7 @@ func awsAwsjson11_deserializeDocumentPullRequestApprovalRulesNotSatisfiedExcepti if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26951,7 +26985,7 @@ func awsAwsjson11_deserializeDocumentPullRequestCannotBeApprovedByAuthorExceptio if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26991,7 +27025,7 @@ func awsAwsjson11_deserializeDocumentPullRequestCreatedEventMetadata(v **types.P if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.DestinationCommitId = &jtv + sv.DestinationCommitId = ptr.String(jtv) } case "mergeBase": @@ -27000,7 +27034,7 @@ func awsAwsjson11_deserializeDocumentPullRequestCreatedEventMetadata(v **types.P if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.MergeBase = &jtv + sv.MergeBase = ptr.String(jtv) } case "repositoryName": @@ -27009,7 +27043,7 @@ func awsAwsjson11_deserializeDocumentPullRequestCreatedEventMetadata(v **types.P if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } case "sourceCommitId": @@ -27018,7 +27052,7 @@ func awsAwsjson11_deserializeDocumentPullRequestCreatedEventMetadata(v **types.P if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.SourceCommitId = &jtv + sv.SourceCommitId = ptr.String(jtv) } default: @@ -27058,7 +27092,7 @@ func awsAwsjson11_deserializeDocumentPullRequestDoesNotExistException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -27098,7 +27132,7 @@ func awsAwsjson11_deserializeDocumentPullRequestEvent(v **types.PullRequestEvent if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ActorArn = &jtv + sv.ActorArn = ptr.String(jtv) } case "approvalRuleEventMetadata": @@ -27149,7 +27183,7 @@ func awsAwsjson11_deserializeDocumentPullRequestEvent(v **types.PullRequestEvent if !ok { return fmt.Errorf("expected PullRequestId to be of type string, got %T instead", value) } - sv.PullRequestId = &jtv + sv.PullRequestId = ptr.String(jtv) } case "pullRequestMergedStateChangedEventMetadata": @@ -27176,7 +27210,7 @@ func awsAwsjson11_deserializeDocumentPullRequestEvent(v **types.PullRequestEvent return nil } -func awsAwsjson11_deserializeDocumentPullRequestEventList(v *[]*types.PullRequestEvent, value interface{}) error { +func awsAwsjson11_deserializeDocumentPullRequestEventList(v *[]types.PullRequestEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27189,18 +27223,20 @@ func awsAwsjson11_deserializeDocumentPullRequestEventList(v *[]*types.PullReques return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PullRequestEvent + var cv []types.PullRequestEvent if *v == nil { - cv = []*types.PullRequestEvent{} + cv = []types.PullRequestEvent{} } else { cv = *v } for _, value := range shape { - var col *types.PullRequestEvent - if err := awsAwsjson11_deserializeDocumentPullRequestEvent(&col, value); err != nil { + var col types.PullRequestEvent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPullRequestEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27208,7 +27244,7 @@ func awsAwsjson11_deserializeDocumentPullRequestEventList(v *[]*types.PullReques return nil } -func awsAwsjson11_deserializeDocumentPullRequestIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPullRequestIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27221,21 +27257,21 @@ func awsAwsjson11_deserializeDocumentPullRequestIdList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PullRequestId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -27272,7 +27308,7 @@ func awsAwsjson11_deserializeDocumentPullRequestIdRequiredException(v **types.Pu if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -27312,7 +27348,7 @@ func awsAwsjson11_deserializeDocumentPullRequestMergedStateChangedEventMetadata( if !ok { return fmt.Errorf("expected ReferenceName to be of type string, got %T instead", value) } - sv.DestinationReference = &jtv + sv.DestinationReference = ptr.String(jtv) } case "mergeMetadata": @@ -27326,7 +27362,7 @@ func awsAwsjson11_deserializeDocumentPullRequestMergedStateChangedEventMetadata( if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -27366,7 +27402,7 @@ func awsAwsjson11_deserializeDocumentPullRequestSourceReferenceUpdatedEventMetad if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.AfterCommitId = &jtv + sv.AfterCommitId = ptr.String(jtv) } case "beforeCommitId": @@ -27375,7 +27411,7 @@ func awsAwsjson11_deserializeDocumentPullRequestSourceReferenceUpdatedEventMetad if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.BeforeCommitId = &jtv + sv.BeforeCommitId = ptr.String(jtv) } case "mergeBase": @@ -27384,7 +27420,7 @@ func awsAwsjson11_deserializeDocumentPullRequestSourceReferenceUpdatedEventMetad if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.MergeBase = &jtv + sv.MergeBase = ptr.String(jtv) } case "repositoryName": @@ -27393,7 +27429,7 @@ func awsAwsjson11_deserializeDocumentPullRequestSourceReferenceUpdatedEventMetad if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -27473,7 +27509,7 @@ func awsAwsjson11_deserializeDocumentPullRequestStatusRequiredException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -27513,7 +27549,7 @@ func awsAwsjson11_deserializeDocumentPullRequestTarget(v **types.PullRequestTarg if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.DestinationCommit = &jtv + sv.DestinationCommit = ptr.String(jtv) } case "destinationReference": @@ -27522,7 +27558,7 @@ func awsAwsjson11_deserializeDocumentPullRequestTarget(v **types.PullRequestTarg if !ok { return fmt.Errorf("expected ReferenceName to be of type string, got %T instead", value) } - sv.DestinationReference = &jtv + sv.DestinationReference = ptr.String(jtv) } case "mergeBase": @@ -27531,7 +27567,7 @@ func awsAwsjson11_deserializeDocumentPullRequestTarget(v **types.PullRequestTarg if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.MergeBase = &jtv + sv.MergeBase = ptr.String(jtv) } case "mergeMetadata": @@ -27545,7 +27581,7 @@ func awsAwsjson11_deserializeDocumentPullRequestTarget(v **types.PullRequestTarg if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } case "sourceCommit": @@ -27554,7 +27590,7 @@ func awsAwsjson11_deserializeDocumentPullRequestTarget(v **types.PullRequestTarg if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.SourceCommit = &jtv + sv.SourceCommit = ptr.String(jtv) } case "sourceReference": @@ -27563,7 +27599,7 @@ func awsAwsjson11_deserializeDocumentPullRequestTarget(v **types.PullRequestTarg if !ok { return fmt.Errorf("expected ReferenceName to be of type string, got %T instead", value) } - sv.SourceReference = &jtv + sv.SourceReference = ptr.String(jtv) } default: @@ -27575,7 +27611,7 @@ func awsAwsjson11_deserializeDocumentPullRequestTarget(v **types.PullRequestTarg return nil } -func awsAwsjson11_deserializeDocumentPullRequestTargetList(v *[]*types.PullRequestTarget, value interface{}) error { +func awsAwsjson11_deserializeDocumentPullRequestTargetList(v *[]types.PullRequestTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27588,18 +27624,20 @@ func awsAwsjson11_deserializeDocumentPullRequestTargetList(v *[]*types.PullReque return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PullRequestTarget + var cv []types.PullRequestTarget if *v == nil { - cv = []*types.PullRequestTarget{} + cv = []types.PullRequestTarget{} } else { cv = *v } for _, value := range shape { - var col *types.PullRequestTarget - if err := awsAwsjson11_deserializeDocumentPullRequestTarget(&col, value); err != nil { + var col types.PullRequestTarget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPullRequestTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27635,7 +27673,7 @@ func awsAwsjson11_deserializeDocumentPutFileEntryConflictException(v **types.Put if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -27647,7 +27685,7 @@ func awsAwsjson11_deserializeDocumentPutFileEntryConflictException(v **types.Put return nil } -func awsAwsjson11_deserializeDocumentReactionCountsMap(v *map[string]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentReactionCountsMap(v *map[string]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27660,15 +27698,15 @@ func awsAwsjson11_deserializeDocumentReactionCountsMap(v *map[string]*int32, val return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*int32 + var mv map[string]int32 if *v == nil { - mv = map[string]*int32{} + mv = map[string]int32{} } else { mv = *v } for key, value := range shape { - var parsedVal *int32 + var parsedVal int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -27678,7 +27716,7 @@ func awsAwsjson11_deserializeDocumentReactionCountsMap(v *map[string]*int32, val if err != nil { return err } - parsedVal = ptr.Int32(int32(i64)) + parsedVal = int32(i64) } mv[key] = parsedVal @@ -27769,7 +27807,7 @@ func awsAwsjson11_deserializeDocumentReactionLimitExceededException(v **types.Re if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -27781,7 +27819,7 @@ func awsAwsjson11_deserializeDocumentReactionLimitExceededException(v **types.Re return nil } -func awsAwsjson11_deserializeDocumentReactionsForCommentList(v *[]*types.ReactionForComment, value interface{}) error { +func awsAwsjson11_deserializeDocumentReactionsForCommentList(v *[]types.ReactionForComment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27794,18 +27832,20 @@ func awsAwsjson11_deserializeDocumentReactionsForCommentList(v *[]*types.Reactio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReactionForComment + var cv []types.ReactionForComment if *v == nil { - cv = []*types.ReactionForComment{} + cv = []types.ReactionForComment{} } else { cv = *v } for _, value := range shape { - var col *types.ReactionForComment - if err := awsAwsjson11_deserializeDocumentReactionForComment(&col, value); err != nil { + var col types.ReactionForComment + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReactionForComment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27813,7 +27853,7 @@ func awsAwsjson11_deserializeDocumentReactionsForCommentList(v *[]*types.Reactio return nil } -func awsAwsjson11_deserializeDocumentReactionUsersList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentReactionUsersList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27826,21 +27866,21 @@ func awsAwsjson11_deserializeDocumentReactionUsersList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -27877,7 +27917,7 @@ func awsAwsjson11_deserializeDocumentReactionValueFormats(v **types.ReactionValu if !ok { return fmt.Errorf("expected ReactionEmoji to be of type string, got %T instead", value) } - sv.Emoji = &jtv + sv.Emoji = ptr.String(jtv) } case "shortCode": @@ -27886,7 +27926,7 @@ func awsAwsjson11_deserializeDocumentReactionValueFormats(v **types.ReactionValu if !ok { return fmt.Errorf("expected ReactionShortCode to be of type string, got %T instead", value) } - sv.ShortCode = &jtv + sv.ShortCode = ptr.String(jtv) } case "unicode": @@ -27895,7 +27935,7 @@ func awsAwsjson11_deserializeDocumentReactionValueFormats(v **types.ReactionValu if !ok { return fmt.Errorf("expected ReactionUnicode to be of type string, got %T instead", value) } - sv.Unicode = &jtv + sv.Unicode = ptr.String(jtv) } default: @@ -27935,7 +27975,7 @@ func awsAwsjson11_deserializeDocumentReactionValueRequiredException(v **types.Re if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -27975,7 +28015,7 @@ func awsAwsjson11_deserializeDocumentReferenceDoesNotExistException(v **types.Re if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28015,7 +28055,7 @@ func awsAwsjson11_deserializeDocumentReferenceNameRequiredException(v **types.Re if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28055,7 +28095,7 @@ func awsAwsjson11_deserializeDocumentReferenceTypeNotSupportedException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28095,7 +28135,7 @@ func awsAwsjson11_deserializeDocumentReplacementContentRequiredException(v **typ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28135,7 +28175,7 @@ func awsAwsjson11_deserializeDocumentReplacementTypeRequiredException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28175,7 +28215,7 @@ func awsAwsjson11_deserializeDocumentRepositoryDoesNotExistException(v **types.R if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28215,7 +28255,7 @@ func awsAwsjson11_deserializeDocumentRepositoryLimitExceededException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28255,7 +28295,7 @@ func awsAwsjson11_deserializeDocumentRepositoryMetadata(v **types.RepositoryMeta if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "Arn": @@ -28264,7 +28304,7 @@ func awsAwsjson11_deserializeDocumentRepositoryMetadata(v **types.RepositoryMeta if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "cloneUrlHttp": @@ -28273,7 +28313,7 @@ func awsAwsjson11_deserializeDocumentRepositoryMetadata(v **types.RepositoryMeta if !ok { return fmt.Errorf("expected CloneUrlHttp to be of type string, got %T instead", value) } - sv.CloneUrlHttp = &jtv + sv.CloneUrlHttp = ptr.String(jtv) } case "cloneUrlSsh": @@ -28282,7 +28322,7 @@ func awsAwsjson11_deserializeDocumentRepositoryMetadata(v **types.RepositoryMeta if !ok { return fmt.Errorf("expected CloneUrlSsh to be of type string, got %T instead", value) } - sv.CloneUrlSsh = &jtv + sv.CloneUrlSsh = ptr.String(jtv) } case "creationDate": @@ -28304,7 +28344,7 @@ func awsAwsjson11_deserializeDocumentRepositoryMetadata(v **types.RepositoryMeta if !ok { return fmt.Errorf("expected BranchName to be of type string, got %T instead", value) } - sv.DefaultBranch = &jtv + sv.DefaultBranch = ptr.String(jtv) } case "lastModifiedDate": @@ -28326,7 +28366,7 @@ func awsAwsjson11_deserializeDocumentRepositoryMetadata(v **types.RepositoryMeta if !ok { return fmt.Errorf("expected RepositoryDescription to be of type string, got %T instead", value) } - sv.RepositoryDescription = &jtv + sv.RepositoryDescription = ptr.String(jtv) } case "repositoryId": @@ -28335,7 +28375,7 @@ func awsAwsjson11_deserializeDocumentRepositoryMetadata(v **types.RepositoryMeta if !ok { return fmt.Errorf("expected RepositoryId to be of type string, got %T instead", value) } - sv.RepositoryId = &jtv + sv.RepositoryId = ptr.String(jtv) } case "repositoryName": @@ -28344,7 +28384,7 @@ func awsAwsjson11_deserializeDocumentRepositoryMetadata(v **types.RepositoryMeta if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -28356,7 +28396,7 @@ func awsAwsjson11_deserializeDocumentRepositoryMetadata(v **types.RepositoryMeta return nil } -func awsAwsjson11_deserializeDocumentRepositoryMetadataList(v *[]*types.RepositoryMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentRepositoryMetadataList(v *[]types.RepositoryMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28369,18 +28409,20 @@ func awsAwsjson11_deserializeDocumentRepositoryMetadataList(v *[]*types.Reposito return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RepositoryMetadata + var cv []types.RepositoryMetadata if *v == nil { - cv = []*types.RepositoryMetadata{} + cv = []types.RepositoryMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.RepositoryMetadata - if err := awsAwsjson11_deserializeDocumentRepositoryMetadata(&col, value); err != nil { + var col types.RepositoryMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRepositoryMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28416,7 +28458,7 @@ func awsAwsjson11_deserializeDocumentRepositoryNameExistsException(v **types.Rep if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28456,7 +28498,7 @@ func awsAwsjson11_deserializeDocumentRepositoryNameIdPair(v **types.RepositoryNa if !ok { return fmt.Errorf("expected RepositoryId to be of type string, got %T instead", value) } - sv.RepositoryId = &jtv + sv.RepositoryId = ptr.String(jtv) } case "repositoryName": @@ -28465,7 +28507,7 @@ func awsAwsjson11_deserializeDocumentRepositoryNameIdPair(v **types.RepositoryNa if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -28477,7 +28519,7 @@ func awsAwsjson11_deserializeDocumentRepositoryNameIdPair(v **types.RepositoryNa return nil } -func awsAwsjson11_deserializeDocumentRepositoryNameIdPairList(v *[]*types.RepositoryNameIdPair, value interface{}) error { +func awsAwsjson11_deserializeDocumentRepositoryNameIdPairList(v *[]types.RepositoryNameIdPair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28490,18 +28532,20 @@ func awsAwsjson11_deserializeDocumentRepositoryNameIdPairList(v *[]*types.Reposi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RepositoryNameIdPair + var cv []types.RepositoryNameIdPair if *v == nil { - cv = []*types.RepositoryNameIdPair{} + cv = []types.RepositoryNameIdPair{} } else { cv = *v } for _, value := range shape { - var col *types.RepositoryNameIdPair - if err := awsAwsjson11_deserializeDocumentRepositoryNameIdPair(&col, value); err != nil { + var col types.RepositoryNameIdPair + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRepositoryNameIdPair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28509,7 +28553,7 @@ func awsAwsjson11_deserializeDocumentRepositoryNameIdPairList(v *[]*types.Reposi return nil } -func awsAwsjson11_deserializeDocumentRepositoryNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRepositoryNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28522,21 +28566,21 @@ func awsAwsjson11_deserializeDocumentRepositoryNameList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -28573,7 +28617,7 @@ func awsAwsjson11_deserializeDocumentRepositoryNameRequiredException(v **types.R if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28613,7 +28657,7 @@ func awsAwsjson11_deserializeDocumentRepositoryNamesRequiredException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28653,7 +28697,7 @@ func awsAwsjson11_deserializeDocumentRepositoryNotAssociatedWithPullRequestExcep if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28665,7 +28709,7 @@ func awsAwsjson11_deserializeDocumentRepositoryNotAssociatedWithPullRequestExcep return nil } -func awsAwsjson11_deserializeDocumentRepositoryNotFoundList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRepositoryNotFoundList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28678,21 +28722,21 @@ func awsAwsjson11_deserializeDocumentRepositoryNotFoundList(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -28734,7 +28778,7 @@ func awsAwsjson11_deserializeDocumentRepositoryTrigger(v **types.RepositoryTrigg if !ok { return fmt.Errorf("expected RepositoryTriggerCustomData to be of type string, got %T instead", value) } - sv.CustomData = &jtv + sv.CustomData = ptr.String(jtv) } case "destinationArn": @@ -28743,7 +28787,7 @@ func awsAwsjson11_deserializeDocumentRepositoryTrigger(v **types.RepositoryTrigg if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DestinationArn = &jtv + sv.DestinationArn = ptr.String(jtv) } case "events": @@ -28757,7 +28801,7 @@ func awsAwsjson11_deserializeDocumentRepositoryTrigger(v **types.RepositoryTrigg if !ok { return fmt.Errorf("expected RepositoryTriggerName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -28797,7 +28841,7 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerBranchNameListRequiredExce if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28837,7 +28881,7 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerDestinationArnRequiredExce if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28913,7 +28957,7 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerEventsListRequiredExceptio if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28953,7 +28997,7 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerExecutionFailure(v **types if !ok { return fmt.Errorf("expected RepositoryTriggerExecutionFailureMessage to be of type string, got %T instead", value) } - sv.FailureMessage = &jtv + sv.FailureMessage = ptr.String(jtv) } case "trigger": @@ -28962,7 +29006,7 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerExecutionFailure(v **types if !ok { return fmt.Errorf("expected RepositoryTriggerName to be of type string, got %T instead", value) } - sv.Trigger = &jtv + sv.Trigger = ptr.String(jtv) } default: @@ -28974,7 +29018,7 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerExecutionFailure(v **types return nil } -func awsAwsjson11_deserializeDocumentRepositoryTriggerExecutionFailureList(v *[]*types.RepositoryTriggerExecutionFailure, value interface{}) error { +func awsAwsjson11_deserializeDocumentRepositoryTriggerExecutionFailureList(v *[]types.RepositoryTriggerExecutionFailure, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28987,18 +29031,20 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerExecutionFailureList(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RepositoryTriggerExecutionFailure + var cv []types.RepositoryTriggerExecutionFailure if *v == nil { - cv = []*types.RepositoryTriggerExecutionFailure{} + cv = []types.RepositoryTriggerExecutionFailure{} } else { cv = *v } for _, value := range shape { - var col *types.RepositoryTriggerExecutionFailure - if err := awsAwsjson11_deserializeDocumentRepositoryTriggerExecutionFailure(&col, value); err != nil { + var col types.RepositoryTriggerExecutionFailure + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRepositoryTriggerExecutionFailure(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -29006,7 +29052,7 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerExecutionFailureList(v *[] return nil } -func awsAwsjson11_deserializeDocumentRepositoryTriggerNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRepositoryTriggerNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29019,21 +29065,21 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerNameList(v *[]*string, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RepositoryTriggerName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -29070,7 +29116,7 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerNameRequiredException(v ** if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29082,7 +29128,7 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggerNameRequiredException(v ** return nil } -func awsAwsjson11_deserializeDocumentRepositoryTriggersList(v *[]*types.RepositoryTrigger, value interface{}) error { +func awsAwsjson11_deserializeDocumentRepositoryTriggersList(v *[]types.RepositoryTrigger, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29095,18 +29141,20 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggersList(v *[]*types.Reposito return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RepositoryTrigger + var cv []types.RepositoryTrigger if *v == nil { - cv = []*types.RepositoryTrigger{} + cv = []types.RepositoryTrigger{} } else { cv = *v } for _, value := range shape { - var col *types.RepositoryTrigger - if err := awsAwsjson11_deserializeDocumentRepositoryTrigger(&col, value); err != nil { + var col types.RepositoryTrigger + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRepositoryTrigger(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -29142,7 +29190,7 @@ func awsAwsjson11_deserializeDocumentRepositoryTriggersListRequiredException(v * if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29182,7 +29230,7 @@ func awsAwsjson11_deserializeDocumentResourceArnRequiredException(v **types.Reso if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29222,7 +29270,7 @@ func awsAwsjson11_deserializeDocumentRestrictedSourceFileException(v **types.Res if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29262,7 +29310,7 @@ func awsAwsjson11_deserializeDocumentRevisionIdRequiredException(v **types.Revis if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29302,7 +29350,7 @@ func awsAwsjson11_deserializeDocumentRevisionNotCurrentException(v **types.Revis if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29342,7 +29390,7 @@ func awsAwsjson11_deserializeDocumentSameFileContentException(v **types.SameFile if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29382,7 +29430,7 @@ func awsAwsjson11_deserializeDocumentSamePathRequestException(v **types.SamePath if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29422,7 +29470,7 @@ func awsAwsjson11_deserializeDocumentSourceAndDestinationAreSameException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29462,7 +29510,7 @@ func awsAwsjson11_deserializeDocumentSourceFileOrContentRequiredException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29502,7 +29550,7 @@ func awsAwsjson11_deserializeDocumentSubModule(v **types.SubModule, value interf if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.AbsolutePath = &jtv + sv.AbsolutePath = ptr.String(jtv) } case "commitId": @@ -29511,7 +29559,7 @@ func awsAwsjson11_deserializeDocumentSubModule(v **types.SubModule, value interf if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "relativePath": @@ -29520,7 +29568,7 @@ func awsAwsjson11_deserializeDocumentSubModule(v **types.SubModule, value interf if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.RelativePath = &jtv + sv.RelativePath = ptr.String(jtv) } default: @@ -29532,7 +29580,7 @@ func awsAwsjson11_deserializeDocumentSubModule(v **types.SubModule, value interf return nil } -func awsAwsjson11_deserializeDocumentSubModuleList(v *[]*types.SubModule, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubModuleList(v *[]types.SubModule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29545,18 +29593,20 @@ func awsAwsjson11_deserializeDocumentSubModuleList(v *[]*types.SubModule, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SubModule + var cv []types.SubModule if *v == nil { - cv = []*types.SubModule{} + cv = []types.SubModule{} } else { cv = *v } for _, value := range shape { - var col *types.SubModule - if err := awsAwsjson11_deserializeDocumentSubModule(&col, value); err != nil { + var col types.SubModule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubModule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -29592,7 +29642,7 @@ func awsAwsjson11_deserializeDocumentSymbolicLink(v **types.SymbolicLink, value if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.AbsolutePath = &jtv + sv.AbsolutePath = ptr.String(jtv) } case "blobId": @@ -29601,7 +29651,7 @@ func awsAwsjson11_deserializeDocumentSymbolicLink(v **types.SymbolicLink, value if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BlobId = &jtv + sv.BlobId = ptr.String(jtv) } case "fileMode": @@ -29619,7 +29669,7 @@ func awsAwsjson11_deserializeDocumentSymbolicLink(v **types.SymbolicLink, value if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.RelativePath = &jtv + sv.RelativePath = ptr.String(jtv) } default: @@ -29631,7 +29681,7 @@ func awsAwsjson11_deserializeDocumentSymbolicLink(v **types.SymbolicLink, value return nil } -func awsAwsjson11_deserializeDocumentSymbolicLinkList(v *[]*types.SymbolicLink, value interface{}) error { +func awsAwsjson11_deserializeDocumentSymbolicLinkList(v *[]types.SymbolicLink, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29644,18 +29694,20 @@ func awsAwsjson11_deserializeDocumentSymbolicLinkList(v *[]*types.SymbolicLink, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SymbolicLink + var cv []types.SymbolicLink if *v == nil { - cv = []*types.SymbolicLink{} + cv = []types.SymbolicLink{} } else { cv = *v } for _, value := range shape { - var col *types.SymbolicLink - if err := awsAwsjson11_deserializeDocumentSymbolicLink(&col, value); err != nil { + var col types.SymbolicLink + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSymbolicLink(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -29691,7 +29743,7 @@ func awsAwsjson11_deserializeDocumentTagKeysListRequiredException(v **types.TagK if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29731,7 +29783,7 @@ func awsAwsjson11_deserializeDocumentTagPolicyException(v **types.TagPolicyExcep if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29743,7 +29795,7 @@ func awsAwsjson11_deserializeDocumentTagPolicyException(v **types.TagPolicyExcep return nil } -func awsAwsjson11_deserializeDocumentTagsMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29756,21 +29808,21 @@ func awsAwsjson11_deserializeDocumentTagsMap(v *map[string]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -29807,7 +29859,7 @@ func awsAwsjson11_deserializeDocumentTagsMapRequiredException(v **types.TagsMapR if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29847,7 +29899,7 @@ func awsAwsjson11_deserializeDocumentTargetRequiredException(v **types.TargetReq if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29887,7 +29939,7 @@ func awsAwsjson11_deserializeDocumentTargetsRequiredException(v **types.TargetsR if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29927,7 +29979,7 @@ func awsAwsjson11_deserializeDocumentTipOfSourceReferenceIsDifferentException(v if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29967,7 +30019,7 @@ func awsAwsjson11_deserializeDocumentTipsDivergenceExceededException(v **types.T if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -30007,7 +30059,7 @@ func awsAwsjson11_deserializeDocumentTitleRequiredException(v **types.TitleRequi if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -30047,7 +30099,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -30087,7 +30139,7 @@ func awsAwsjson11_deserializeDocumentUserInfo(v **types.UserInfo, value interfac if !ok { return fmt.Errorf("expected Date to be of type string, got %T instead", value) } - sv.Date = &jtv + sv.Date = ptr.String(jtv) } case "email": @@ -30096,7 +30148,7 @@ func awsAwsjson11_deserializeDocumentUserInfo(v **types.UserInfo, value interfac if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "name": @@ -30105,7 +30157,7 @@ func awsAwsjson11_deserializeDocumentUserInfo(v **types.UserInfo, value interfac if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -30217,7 +30269,7 @@ func awsAwsjson11_deserializeOpDocumentBatchDescribeMergeConflictsOutput(v **Bat if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BaseCommitId = &jtv + sv.BaseCommitId = ptr.String(jtv) } case "conflicts": @@ -30231,7 +30283,7 @@ func awsAwsjson11_deserializeOpDocumentBatchDescribeMergeConflictsOutput(v **Bat if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.DestinationCommitId = &jtv + sv.DestinationCommitId = ptr.String(jtv) } case "errors": @@ -30245,7 +30297,7 @@ func awsAwsjson11_deserializeOpDocumentBatchDescribeMergeConflictsOutput(v **Bat if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "sourceCommitId": @@ -30254,7 +30306,7 @@ func awsAwsjson11_deserializeOpDocumentBatchDescribeMergeConflictsOutput(v **Bat if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.SourceCommitId = &jtv + sv.SourceCommitId = ptr.String(jtv) } default: @@ -30484,7 +30536,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCommitOutput(v **CreateCommitOutput if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "filesAdded": @@ -30508,7 +30560,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCommitOutput(v **CreateCommitOutput if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.TreeId = &jtv + sv.TreeId = ptr.String(jtv) } default: @@ -30656,7 +30708,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUnreferencedMergeCommitOutput(v **C if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "treeId": @@ -30665,7 +30717,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUnreferencedMergeCommitOutput(v **C if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.TreeId = &jtv + sv.TreeId = ptr.String(jtv) } default: @@ -30705,7 +30757,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteApprovalRuleTemplateOutput(v **Dele if !ok { return fmt.Errorf("expected ApprovalRuleTemplateId to be of type string, got %T instead", value) } - sv.ApprovalRuleTemplateId = &jtv + sv.ApprovalRuleTemplateId = ptr.String(jtv) } default: @@ -30817,7 +30869,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteFileOutput(v **DeleteFileOutput, va if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BlobId = &jtv + sv.BlobId = ptr.String(jtv) } case "commitId": @@ -30826,7 +30878,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteFileOutput(v **DeleteFileOutput, va if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "filePath": @@ -30835,7 +30887,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteFileOutput(v **DeleteFileOutput, va if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.FilePath = &jtv + sv.FilePath = ptr.String(jtv) } case "treeId": @@ -30844,7 +30896,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteFileOutput(v **DeleteFileOutput, va if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.TreeId = &jtv + sv.TreeId = ptr.String(jtv) } default: @@ -30884,7 +30936,7 @@ func awsAwsjson11_deserializeOpDocumentDeletePullRequestApprovalRuleOutput(v **D if !ok { return fmt.Errorf("expected ApprovalRuleId to be of type string, got %T instead", value) } - sv.ApprovalRuleId = &jtv + sv.ApprovalRuleId = ptr.String(jtv) } default: @@ -30924,7 +30976,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRepositoryOutput(v **DeleteReposito if !ok { return fmt.Errorf("expected RepositoryId to be of type string, got %T instead", value) } - sv.RepositoryId = &jtv + sv.RepositoryId = ptr.String(jtv) } default: @@ -30964,7 +31016,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMergeConflictsOutput(v **Describe if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BaseCommitId = &jtv + sv.BaseCommitId = ptr.String(jtv) } case "conflictMetadata": @@ -30978,7 +31030,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMergeConflictsOutput(v **Describe if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.DestinationCommitId = &jtv + sv.DestinationCommitId = ptr.String(jtv) } case "mergeHunks": @@ -30992,7 +31044,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMergeConflictsOutput(v **Describe if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "sourceCommitId": @@ -31001,7 +31053,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMergeConflictsOutput(v **Describe if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.SourceCommitId = &jtv + sv.SourceCommitId = ptr.String(jtv) } default: @@ -31041,7 +31093,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePullRequestEventsOutput(v **Descr if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "pullRequestEvents": @@ -31305,7 +31357,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommentReactionsOutput(v **GetCommentR if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "reactionsForComment": @@ -31355,7 +31407,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommentsForComparedCommitOutput(v **Ge if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -31400,7 +31452,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommentsForPullRequestOutput(v **GetCo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -31481,7 +31533,7 @@ func awsAwsjson11_deserializeOpDocumentGetDifferencesOutput(v **GetDifferencesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -31521,7 +31573,7 @@ func awsAwsjson11_deserializeOpDocumentGetFileOutput(v **GetFileOutput, value in if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BlobId = &jtv + sv.BlobId = ptr.String(jtv) } case "commitId": @@ -31530,7 +31582,7 @@ func awsAwsjson11_deserializeOpDocumentGetFileOutput(v **GetFileOutput, value in if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "fileContent": @@ -31561,7 +31613,7 @@ func awsAwsjson11_deserializeOpDocumentGetFileOutput(v **GetFileOutput, value in if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.FilePath = &jtv + sv.FilePath = ptr.String(jtv) } case "fileSize": @@ -31574,7 +31626,7 @@ func awsAwsjson11_deserializeOpDocumentGetFileOutput(v **GetFileOutput, value in if err != nil { return err } - sv.FileSize = &i64 + sv.FileSize = i64 } default: @@ -31614,7 +31666,7 @@ func awsAwsjson11_deserializeOpDocumentGetFolderOutput(v **GetFolderOutput, valu if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "files": @@ -31628,7 +31680,7 @@ func awsAwsjson11_deserializeOpDocumentGetFolderOutput(v **GetFolderOutput, valu if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.FolderPath = &jtv + sv.FolderPath = ptr.String(jtv) } case "subFolders": @@ -31652,7 +31704,7 @@ func awsAwsjson11_deserializeOpDocumentGetFolderOutput(v **GetFolderOutput, valu if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.TreeId = &jtv + sv.TreeId = ptr.String(jtv) } default: @@ -31692,7 +31744,7 @@ func awsAwsjson11_deserializeOpDocumentGetMergeCommitOutput(v **GetMergeCommitOu if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BaseCommitId = &jtv + sv.BaseCommitId = ptr.String(jtv) } case "destinationCommitId": @@ -31701,7 +31753,7 @@ func awsAwsjson11_deserializeOpDocumentGetMergeCommitOutput(v **GetMergeCommitOu if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.DestinationCommitId = &jtv + sv.DestinationCommitId = ptr.String(jtv) } case "mergedCommitId": @@ -31710,7 +31762,7 @@ func awsAwsjson11_deserializeOpDocumentGetMergeCommitOutput(v **GetMergeCommitOu if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.MergedCommitId = &jtv + sv.MergedCommitId = ptr.String(jtv) } case "sourceCommitId": @@ -31719,7 +31771,7 @@ func awsAwsjson11_deserializeOpDocumentGetMergeCommitOutput(v **GetMergeCommitOu if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.SourceCommitId = &jtv + sv.SourceCommitId = ptr.String(jtv) } default: @@ -31759,7 +31811,7 @@ func awsAwsjson11_deserializeOpDocumentGetMergeConflictsOutput(v **GetMergeConfl if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BaseCommitId = &jtv + sv.BaseCommitId = ptr.String(jtv) } case "conflictMetadataList": @@ -31773,7 +31825,7 @@ func awsAwsjson11_deserializeOpDocumentGetMergeConflictsOutput(v **GetMergeConfl if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.DestinationCommitId = &jtv + sv.DestinationCommitId = ptr.String(jtv) } case "mergeable": @@ -31782,7 +31834,7 @@ func awsAwsjson11_deserializeOpDocumentGetMergeConflictsOutput(v **GetMergeConfl if !ok { return fmt.Errorf("expected IsMergeable to be of type *bool, got %T instead", value) } - sv.Mergeable = &jtv + sv.Mergeable = jtv } case "nextToken": @@ -31791,7 +31843,7 @@ func awsAwsjson11_deserializeOpDocumentGetMergeConflictsOutput(v **GetMergeConfl if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "sourceCommitId": @@ -31800,7 +31852,7 @@ func awsAwsjson11_deserializeOpDocumentGetMergeConflictsOutput(v **GetMergeConfl if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.SourceCommitId = &jtv + sv.SourceCommitId = ptr.String(jtv) } default: @@ -31840,7 +31892,7 @@ func awsAwsjson11_deserializeOpDocumentGetMergeOptionsOutput(v **GetMergeOptions if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BaseCommitId = &jtv + sv.BaseCommitId = ptr.String(jtv) } case "destinationCommitId": @@ -31849,7 +31901,7 @@ func awsAwsjson11_deserializeOpDocumentGetMergeOptionsOutput(v **GetMergeOptions if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.DestinationCommitId = &jtv + sv.DestinationCommitId = ptr.String(jtv) } case "mergeOptions": @@ -31863,7 +31915,7 @@ func awsAwsjson11_deserializeOpDocumentGetMergeOptionsOutput(v **GetMergeOptions if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.SourceCommitId = &jtv + sv.SourceCommitId = ptr.String(jtv) } default: @@ -31975,7 +32027,7 @@ func awsAwsjson11_deserializeOpDocumentGetPullRequestOverrideStateOutput(v **Get if !ok { return fmt.Errorf("expected Overridden to be of type *bool, got %T instead", value) } - sv.Overridden = &jtv + sv.Overridden = jtv } case "overrider": @@ -31984,7 +32036,7 @@ func awsAwsjson11_deserializeOpDocumentGetPullRequestOverrideStateOutput(v **Get if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Overrider = &jtv + sv.Overrider = ptr.String(jtv) } default: @@ -32060,7 +32112,7 @@ func awsAwsjson11_deserializeOpDocumentGetRepositoryTriggersOutput(v **GetReposi if !ok { return fmt.Errorf("expected RepositoryTriggersConfigurationId to be of type string, got %T instead", value) } - sv.ConfigurationId = &jtv + sv.ConfigurationId = ptr.String(jtv) } case "triggers": @@ -32110,7 +32162,7 @@ func awsAwsjson11_deserializeOpDocumentListApprovalRuleTemplatesOutput(v **ListA if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -32155,7 +32207,7 @@ func awsAwsjson11_deserializeOpDocumentListAssociatedApprovalRuleTemplatesForRep if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -32200,7 +32252,7 @@ func awsAwsjson11_deserializeOpDocumentListBranchesOutput(v **ListBranchesOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -32240,7 +32292,7 @@ func awsAwsjson11_deserializeOpDocumentListPullRequestsOutput(v **ListPullReques if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "pullRequestIds": @@ -32285,7 +32337,7 @@ func awsAwsjson11_deserializeOpDocumentListRepositoriesForApprovalRuleTemplateOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "repositoryNames": @@ -32330,7 +32382,7 @@ func awsAwsjson11_deserializeOpDocumentListRepositoriesOutput(v **ListRepositori if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "repositories": @@ -32375,7 +32427,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tags": @@ -32420,7 +32472,7 @@ func awsAwsjson11_deserializeOpDocumentMergeBranchesByFastForwardOutput(v **Merg if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "treeId": @@ -32429,7 +32481,7 @@ func awsAwsjson11_deserializeOpDocumentMergeBranchesByFastForwardOutput(v **Merg if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.TreeId = &jtv + sv.TreeId = ptr.String(jtv) } default: @@ -32469,7 +32521,7 @@ func awsAwsjson11_deserializeOpDocumentMergeBranchesBySquashOutput(v **MergeBran if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "treeId": @@ -32478,7 +32530,7 @@ func awsAwsjson11_deserializeOpDocumentMergeBranchesBySquashOutput(v **MergeBran if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.TreeId = &jtv + sv.TreeId = ptr.String(jtv) } default: @@ -32518,7 +32570,7 @@ func awsAwsjson11_deserializeOpDocumentMergeBranchesByThreeWayOutput(v **MergeBr if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "treeId": @@ -32527,7 +32579,7 @@ func awsAwsjson11_deserializeOpDocumentMergeBranchesByThreeWayOutput(v **MergeBr if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.TreeId = &jtv + sv.TreeId = ptr.String(jtv) } default: @@ -32706,7 +32758,7 @@ func awsAwsjson11_deserializeOpDocumentPostCommentForComparedCommitOutput(v **Po if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.AfterBlobId = &jtv + sv.AfterBlobId = ptr.String(jtv) } case "afterCommitId": @@ -32715,7 +32767,7 @@ func awsAwsjson11_deserializeOpDocumentPostCommentForComparedCommitOutput(v **Po if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.AfterCommitId = &jtv + sv.AfterCommitId = ptr.String(jtv) } case "beforeBlobId": @@ -32724,7 +32776,7 @@ func awsAwsjson11_deserializeOpDocumentPostCommentForComparedCommitOutput(v **Po if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BeforeBlobId = &jtv + sv.BeforeBlobId = ptr.String(jtv) } case "beforeCommitId": @@ -32733,7 +32785,7 @@ func awsAwsjson11_deserializeOpDocumentPostCommentForComparedCommitOutput(v **Po if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.BeforeCommitId = &jtv + sv.BeforeCommitId = ptr.String(jtv) } case "comment": @@ -32752,7 +32804,7 @@ func awsAwsjson11_deserializeOpDocumentPostCommentForComparedCommitOutput(v **Po if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -32792,7 +32844,7 @@ func awsAwsjson11_deserializeOpDocumentPostCommentForPullRequestOutput(v **PostC if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.AfterBlobId = &jtv + sv.AfterBlobId = ptr.String(jtv) } case "afterCommitId": @@ -32801,7 +32853,7 @@ func awsAwsjson11_deserializeOpDocumentPostCommentForPullRequestOutput(v **PostC if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.AfterCommitId = &jtv + sv.AfterCommitId = ptr.String(jtv) } case "beforeBlobId": @@ -32810,7 +32862,7 @@ func awsAwsjson11_deserializeOpDocumentPostCommentForPullRequestOutput(v **PostC if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BeforeBlobId = &jtv + sv.BeforeBlobId = ptr.String(jtv) } case "beforeCommitId": @@ -32819,7 +32871,7 @@ func awsAwsjson11_deserializeOpDocumentPostCommentForPullRequestOutput(v **PostC if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.BeforeCommitId = &jtv + sv.BeforeCommitId = ptr.String(jtv) } case "comment": @@ -32838,7 +32890,7 @@ func awsAwsjson11_deserializeOpDocumentPostCommentForPullRequestOutput(v **PostC if !ok { return fmt.Errorf("expected PullRequestId to be of type string, got %T instead", value) } - sv.PullRequestId = &jtv + sv.PullRequestId = ptr.String(jtv) } case "repositoryName": @@ -32847,7 +32899,7 @@ func awsAwsjson11_deserializeOpDocumentPostCommentForPullRequestOutput(v **PostC if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -32954,7 +33006,7 @@ func awsAwsjson11_deserializeOpDocumentPutFileOutput(v **PutFileOutput, value in if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.BlobId = &jtv + sv.BlobId = ptr.String(jtv) } case "commitId": @@ -32963,7 +33015,7 @@ func awsAwsjson11_deserializeOpDocumentPutFileOutput(v **PutFileOutput, value in if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "treeId": @@ -32972,7 +33024,7 @@ func awsAwsjson11_deserializeOpDocumentPutFileOutput(v **PutFileOutput, value in if !ok { return fmt.Errorf("expected ObjectId to be of type string, got %T instead", value) } - sv.TreeId = &jtv + sv.TreeId = ptr.String(jtv) } default: @@ -33012,7 +33064,7 @@ func awsAwsjson11_deserializeOpDocumentPutRepositoryTriggersOutput(v **PutReposi if !ok { return fmt.Errorf("expected RepositoryTriggersConfigurationId to be of type string, got %T instead", value) } - sv.ConfigurationId = &jtv + sv.ConfigurationId = ptr.String(jtv) } default: diff --git a/service/codecommit/go.mod b/service/codecommit/go.mod index 3b19cccab49..986f7bd6566 100644 --- a/service/codecommit/go.mod +++ b/service/codecommit/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/codecommit go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/codecommit/serializers.go b/service/codecommit/serializers.go index 5c6a1cdedce..16f581da1eb 100644 --- a/service/codecommit/serializers.go +++ b/service/codecommit/serializers.go @@ -3555,32 +3555,24 @@ func (m *awsAwsjson11_serializeOpUpdateRepositoryName) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentBranchNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBranchNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentCommitIdsInputList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCommitIdsInputList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3613,17 +3605,13 @@ func awsAwsjson11_serializeDocumentConflictResolution(v *types.ConflictResolutio return nil } -func awsAwsjson11_serializeDocumentDeleteFileEntries(v []*types.DeleteFileEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDeleteFileEntries(v []types.DeleteFileEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDeleteFileEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDeleteFileEntry(&v[i], av); err != nil { return err } } @@ -3642,17 +3630,13 @@ func awsAwsjson11_serializeDocumentDeleteFileEntry(v *types.DeleteFileEntry, val return nil } -func awsAwsjson11_serializeDocumentFilePaths(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilePaths(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3679,17 +3663,13 @@ func awsAwsjson11_serializeDocumentLocation(v *types.Location, value smithyjson. return nil } -func awsAwsjson11_serializeDocumentPutFileEntries(v []*types.PutFileEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPutFileEntries(v []types.PutFileEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPutFileEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPutFileEntry(&v[i], av); err != nil { return err } } @@ -3725,17 +3705,13 @@ func awsAwsjson11_serializeDocumentPutFileEntry(v *types.PutFileEntry, value smi return nil } -func awsAwsjson11_serializeDocumentReplaceContentEntries(v []*types.ReplaceContentEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentReplaceContentEntries(v []types.ReplaceContentEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentReplaceContentEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentReplaceContentEntry(&v[i], av); err != nil { return err } } @@ -3769,17 +3745,13 @@ func awsAwsjson11_serializeDocumentReplaceContentEntry(v *types.ReplaceContentEn return nil } -func awsAwsjson11_serializeDocumentRepositoryNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRepositoryNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3831,34 +3803,26 @@ func awsAwsjson11_serializeDocumentRepositoryTriggerEventList(v []types.Reposito return nil } -func awsAwsjson11_serializeDocumentRepositoryTriggersList(v []*types.RepositoryTrigger, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRepositoryTriggersList(v []types.RepositoryTrigger, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRepositoryTrigger(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRepositoryTrigger(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentSetFileModeEntries(v []*types.SetFileModeEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSetFileModeEntries(v []types.SetFileModeEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSetFileModeEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSetFileModeEntry(&v[i], av); err != nil { return err } } @@ -3891,40 +3855,32 @@ func awsAwsjson11_serializeDocumentSourceFileSpecifier(v *types.SourceFileSpecif ok.String(*v.FilePath) } - if v.IsMove != nil { + if v.IsMove { ok := object.Key("isMove") - ok.Boolean(*v.IsMove) + ok.Boolean(v.IsMove) } return nil } -func awsAwsjson11_serializeDocumentTagKeysList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeysList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagsMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3951,17 +3907,13 @@ func awsAwsjson11_serializeDocumentTarget(v *types.Target, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentTargetList(v []*types.Target, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetList(v []types.Target, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTarget(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTarget(&v[i], av); err != nil { return err } } @@ -4190,9 +4142,9 @@ func awsAwsjson11_serializeOpDocumentCreateCommitInput(v *CreateCommitInput, val ok.String(*v.Email) } - if v.KeepEmptyFolders != nil { + if v.KeepEmptyFolders { ok := object.Key("keepEmptyFolders") - ok.Boolean(*v.KeepEmptyFolders) + ok.Boolean(v.KeepEmptyFolders) } if v.ParentCommitId != nil { @@ -4338,9 +4290,9 @@ func awsAwsjson11_serializeOpDocumentCreateUnreferencedMergeCommitInput(v *Creat ok.String(*v.Email) } - if v.KeepEmptyFolders != nil { + if v.KeepEmptyFolders { ok := object.Key("keepEmptyFolders") - ok.Boolean(*v.KeepEmptyFolders) + ok.Boolean(v.KeepEmptyFolders) } if len(v.MergeOption) > 0 { @@ -4426,9 +4378,9 @@ func awsAwsjson11_serializeOpDocumentDeleteFileInput(v *DeleteFileInput, value s ok.String(*v.FilePath) } - if v.KeepEmptyFolders != nil { + if v.KeepEmptyFolders { ok := object.Key("keepEmptyFolders") - ok.Boolean(*v.KeepEmptyFolders) + ok.Boolean(v.KeepEmptyFolders) } if v.Name != nil { @@ -5251,9 +5203,9 @@ func awsAwsjson11_serializeOpDocumentMergeBranchesBySquashInput(v *MergeBranches ok.String(*v.Email) } - if v.KeepEmptyFolders != nil { + if v.KeepEmptyFolders { ok := object.Key("keepEmptyFolders") - ok.Boolean(*v.KeepEmptyFolders) + ok.Boolean(v.KeepEmptyFolders) } if v.RepositoryName != nil { @@ -5315,9 +5267,9 @@ func awsAwsjson11_serializeOpDocumentMergeBranchesByThreeWayInput(v *MergeBranch ok.String(*v.Email) } - if v.KeepEmptyFolders != nil { + if v.KeepEmptyFolders { ok := object.Key("keepEmptyFolders") - ok.Boolean(*v.KeepEmptyFolders) + ok.Boolean(v.KeepEmptyFolders) } if v.RepositoryName != nil { @@ -5396,9 +5348,9 @@ func awsAwsjson11_serializeOpDocumentMergePullRequestBySquashInput(v *MergePullR ok.String(*v.Email) } - if v.KeepEmptyFolders != nil { + if v.KeepEmptyFolders { ok := object.Key("keepEmptyFolders") - ok.Boolean(*v.KeepEmptyFolders) + ok.Boolean(v.KeepEmptyFolders) } if v.PullRequestId != nil { @@ -5455,9 +5407,9 @@ func awsAwsjson11_serializeOpDocumentMergePullRequestByThreeWayInput(v *MergePul ok.String(*v.Email) } - if v.KeepEmptyFolders != nil { + if v.KeepEmptyFolders { ok := object.Key("keepEmptyFolders") - ok.Boolean(*v.KeepEmptyFolders) + ok.Boolean(v.KeepEmptyFolders) } if v.PullRequestId != nil { diff --git a/service/codecommit/types/types.go b/service/codecommit/types/types.go index 9dc3382f9ff..e4507b6c1da 100644 --- a/service/codecommit/types/types.go +++ b/service/codecommit/types/types.go @@ -216,7 +216,7 @@ type Comment struct { // The emoji reactions to a comment, if any, submitted by the user whose // credentials are associated with the call to the API. - CallerReactions []*string + CallerReactions []string // A unique, client-generated idempotency token that, when provided in a request, // ensures the request cannot be repeated with a changed parameter. If a request is @@ -234,7 +234,7 @@ type Comment struct { CreationDate *time.Time // A Boolean value indicating whether the comment has been deleted. - Deleted *bool + Deleted bool // The ID of the comment for which this comment is a reply, if any. InReplyTo *string @@ -244,7 +244,7 @@ type Comment struct { // A string to integer map that represents the number of individual users who have // responded to a comment with the specified reactions. - ReactionCounts map[string]*int32 + ReactionCounts map[string]int32 } // Returns information about comments on the comparison between two commits. @@ -264,7 +264,7 @@ type CommentsForComparedCommit struct { // An array of comment objects. Each comment object contains information about a // comment on the comparison between commits. - Comments []*Comment + Comments []Comment // Location information about the comment on the comparison, including the file // name, line number, and whether the version of the file where the comment was @@ -297,7 +297,7 @@ type CommentsForPullRequest struct { // An array of comment objects. Each comment object contains information about a // comment on the pull request. - Comments []*Comment + Comments []Comment // Location information about the comment on the pull request, including the file // name, line number, and whether the version of the file where the comment was @@ -338,7 +338,7 @@ type Commit struct { // A list of parent commits for the specified commit. Each parent commit ID is the // full commit ID. - Parents []*string + Parents []string // Tree information for the specified commit. TreeId *string @@ -352,18 +352,18 @@ type Conflict struct { // A list of hunks that contain the differences between files or lines causing the // conflict. - MergeHunks []*MergeHunk + MergeHunks []MergeHunk } // Information about the metadata for a conflict in a merge operation. type ConflictMetadata struct { // A boolean value indicating whether there are conflicts in the content of a file. - ContentConflict *bool + ContentConflict bool // A boolean value indicating whether there are conflicts in the file mode of a // file. - FileModeConflict *bool + FileModeConflict bool // The file modes of the file in the source, destination, and base of the merge. FileModes *FileModes @@ -383,11 +383,11 @@ type ConflictMetadata struct { MergeOperations *MergeOperations // The number of conflicts, including both hunk conflicts and metadata conflicts. - NumberOfConflicts *int32 + NumberOfConflicts int32 // A boolean value (true or false) indicating whether there are conflicts between // the branches in the object type of a file, folder, or submodule. - ObjectTypeConflict *bool + ObjectTypeConflict bool // Information about any object type conflicts in a merge operation. ObjectTypes *ObjectTypes @@ -398,13 +398,13 @@ type ConflictMetadata struct { type ConflictResolution struct { // Files to be deleted as part of the merge conflict resolution. - DeleteFiles []*DeleteFileEntry + DeleteFiles []DeleteFileEntry // Files to have content replaced as part of the merge conflict resolution. - ReplaceContents []*ReplaceContentEntry + ReplaceContents []ReplaceContentEntry // File modes that are set as part of the merge conflict resolution. - SetFileModes []*SetFileModeEntry + SetFileModes []SetFileModeEntry } // A file that is deleted as part of a commit. @@ -437,17 +437,17 @@ type Difference struct { type Evaluation struct { // The names of the approval rules that have not had their conditions met. - ApprovalRulesNotSatisfied []*string + ApprovalRulesNotSatisfied []string // The names of the approval rules that have had their conditions met. - ApprovalRulesSatisfied []*string + ApprovalRulesSatisfied []string // Whether the state of the pull request is approved. - Approved *bool + Approved bool // Whether the approval rule requirements for the pull request have been overridden // and no longer need to be met. - Overridden *bool + Overridden bool } // Returns information about a file in a repository. @@ -499,13 +499,13 @@ type FileModes struct { type FileSizes struct { // The size of a file in the base of a merge or pull request. - Base *int64 + Base int64 // The size of a file in the destination of a merge or pull request. - Destination *int64 + Destination int64 // The size of a file in the source of a merge or pull request. - Source *int64 + Source int64 } // Returns information about a folder in a repository. @@ -571,7 +571,7 @@ type MergeHunk struct { // true, false, and null. True when the hunk represents a conflict and one or more // files contains a line conflict. File mode conflicts in a merge do not set this // to true. - IsConflict *bool + IsConflict bool // Information about the merge hunk in the source of a merge or pull request. Source *MergeHunkDetail @@ -597,7 +597,7 @@ type MergeHunkDetail struct { type MergeMetadata struct { // A Boolean value indicating whether the merge has been made. - IsMerged *bool + IsMerged bool // The commit ID for the merge commit, if any. MergeCommitId *string @@ -648,7 +648,7 @@ type OriginApprovalRuleTemplate struct { type PullRequest struct { // The approval rules applied to the pull request. - ApprovalRules []*ApprovalRule + ApprovalRules []ApprovalRule // The Amazon Resource Name (ARN) of the user who created the pull request. AuthorArn *string @@ -679,7 +679,7 @@ type PullRequest struct { // The targets of the pull request, including the source branch and destination // branch for the pull request. - PullRequestTargets []*PullRequestTarget + PullRequestTargets []PullRequestTarget // The system-generated revision ID for the pull request. RevisionId *string @@ -850,7 +850,7 @@ type ReactionForComment struct { // The Amazon Resource Names (ARNs) of users who have provided reactions to the // comment. - ReactionUsers []*string + ReactionUsers []string // A numerical count of users who reacted with the specified emoji whose identities // have been subsequently deleted from IAM. While these IAM users or roles no @@ -963,7 +963,7 @@ type RepositoryTrigger struct { // The branches to be included in the trigger configuration. If you specify an // empty array, the trigger applies to all branches. Although no content is // required in the array, you must include the array itself. - Branches []*string + Branches []string // Any custom data associated with the trigger to be included in the information // sent to the target of the trigger. @@ -1003,7 +1003,7 @@ type SourceFileSpecifier struct { FilePath *string // Whether to remove the source file from the parent commit. - IsMove *bool + IsMove bool } // Returns information about a submodule reference in a repository folder. diff --git a/service/codecommit/validators.go b/service/codecommit/validators.go index 8fb5f6529b9..7c0201a57a9 100644 --- a/service/codecommit/validators.go +++ b/service/codecommit/validators.go @@ -1813,13 +1813,13 @@ func validateConflictResolution(v *types.ConflictResolution) error { } } -func validateDeleteFileEntries(v []*types.DeleteFileEntry) error { +func validateDeleteFileEntries(v []types.DeleteFileEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteFileEntries"} for i := range v { - if err := validateDeleteFileEntry(v[i]); err != nil { + if err := validateDeleteFileEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1845,13 +1845,13 @@ func validateDeleteFileEntry(v *types.DeleteFileEntry) error { } } -func validatePutFileEntries(v []*types.PutFileEntry) error { +func validatePutFileEntries(v []types.PutFileEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PutFileEntries"} for i := range v { - if err := validatePutFileEntry(v[i]); err != nil { + if err := validatePutFileEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1882,13 +1882,13 @@ func validatePutFileEntry(v *types.PutFileEntry) error { } } -func validateReplaceContentEntries(v []*types.ReplaceContentEntry) error { +func validateReplaceContentEntries(v []types.ReplaceContentEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReplaceContentEntries"} for i := range v { - if err := validateReplaceContentEntry(v[i]); err != nil { + if err := validateReplaceContentEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1938,13 +1938,13 @@ func validateRepositoryTrigger(v *types.RepositoryTrigger) error { } } -func validateRepositoryTriggersList(v []*types.RepositoryTrigger) error { +func validateRepositoryTriggersList(v []types.RepositoryTrigger) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RepositoryTriggersList"} for i := range v { - if err := validateRepositoryTrigger(v[i]); err != nil { + if err := validateRepositoryTrigger(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1955,13 +1955,13 @@ func validateRepositoryTriggersList(v []*types.RepositoryTrigger) error { } } -func validateSetFileModeEntries(v []*types.SetFileModeEntry) error { +func validateSetFileModeEntries(v []types.SetFileModeEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SetFileModeEntries"} for i := range v { - if err := validateSetFileModeEntry(v[i]); err != nil { + if err := validateSetFileModeEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2023,13 +2023,13 @@ func validateTarget(v *types.Target) error { } } -func validateTargetList(v []*types.Target) error { +func validateTargetList(v []types.Target) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TargetList"} for i := range v { - if err := validateTarget(v[i]); err != nil { + if err := validateTarget(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/codedeploy/api_op_AddTagsToOnPremisesInstances.go b/service/codedeploy/api_op_AddTagsToOnPremisesInstances.go index 511befc7399..5d7a56af353 100644 --- a/service/codedeploy/api_op_AddTagsToOnPremisesInstances.go +++ b/service/codedeploy/api_op_AddTagsToOnPremisesInstances.go @@ -33,14 +33,14 @@ type AddTagsToOnPremisesInstancesInput struct { // The names of the on-premises instances to which to add tags. // // This member is required. - InstanceNames []*string + InstanceNames []string // The tag key-value pairs to add to the on-premises instances. Keys and values are // both required. Keys cannot be null or empty strings. Value-only tags are not // allowed. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type AddTagsToOnPremisesInstancesOutput struct { diff --git a/service/codedeploy/api_op_BatchGetApplicationRevisions.go b/service/codedeploy/api_op_BatchGetApplicationRevisions.go index 8778c921872..0c29539e582 100644 --- a/service/codedeploy/api_op_BatchGetApplicationRevisions.go +++ b/service/codedeploy/api_op_BatchGetApplicationRevisions.go @@ -42,7 +42,7 @@ type BatchGetApplicationRevisionsInput struct { // RevisionLocation objects you can specify is 25. // // This member is required. - Revisions []*types.RevisionLocation + Revisions []types.RevisionLocation } // Represents the output of a BatchGetApplicationRevisions operation. @@ -55,7 +55,7 @@ type BatchGetApplicationRevisionsOutput struct { ErrorMessage *string // Additional information about the revisions, including the type and location. - Revisions []*types.RevisionInfo + Revisions []types.RevisionInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codedeploy/api_op_BatchGetApplications.go b/service/codedeploy/api_op_BatchGetApplications.go index f96568f8112..a822694d54d 100644 --- a/service/codedeploy/api_op_BatchGetApplications.go +++ b/service/codedeploy/api_op_BatchGetApplications.go @@ -35,14 +35,14 @@ type BatchGetApplicationsInput struct { // application names you can specify is 100. // // This member is required. - ApplicationNames []*string + ApplicationNames []string } // Represents the output of a BatchGetApplications operation. type BatchGetApplicationsOutput struct { // Information about the applications. - ApplicationsInfo []*types.ApplicationInfo + ApplicationsInfo []types.ApplicationInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codedeploy/api_op_BatchGetDeploymentGroups.go b/service/codedeploy/api_op_BatchGetDeploymentGroups.go index 05610738d3c..7090433bc87 100644 --- a/service/codedeploy/api_op_BatchGetDeploymentGroups.go +++ b/service/codedeploy/api_op_BatchGetDeploymentGroups.go @@ -39,14 +39,14 @@ type BatchGetDeploymentGroupsInput struct { // The names of the deployment groups. // // This member is required. - DeploymentGroupNames []*string + DeploymentGroupNames []string } // Represents the output of a BatchGetDeploymentGroups operation. type BatchGetDeploymentGroupsOutput struct { // Information about the deployment groups. - DeploymentGroupsInfo []*types.DeploymentGroupInfo + DeploymentGroupsInfo []types.DeploymentGroupInfo // Information about errors that might have occurred during the API call. ErrorMessage *string diff --git a/service/codedeploy/api_op_BatchGetDeploymentInstances.go b/service/codedeploy/api_op_BatchGetDeploymentInstances.go index d144e51b5e5..c77c5e9034e 100644 --- a/service/codedeploy/api_op_BatchGetDeploymentInstances.go +++ b/service/codedeploy/api_op_BatchGetDeploymentInstances.go @@ -43,7 +43,7 @@ type BatchGetDeploymentInstancesInput struct { // instance IDs you can specify is 25. // // This member is required. - InstanceIds []*string + InstanceIds []string } // Represents the output of a BatchGetDeploymentInstances operation. @@ -53,7 +53,7 @@ type BatchGetDeploymentInstancesOutput struct { ErrorMessage *string // Information about the instance. - InstancesSummary []*types.InstanceSummary + InstancesSummary []types.InstanceSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codedeploy/api_op_BatchGetDeploymentTargets.go b/service/codedeploy/api_op_BatchGetDeploymentTargets.go index d02692c2ba8..cdb4ddebfd0 100644 --- a/service/codedeploy/api_op_BatchGetDeploymentTargets.go +++ b/service/codedeploy/api_op_BatchGetDeploymentTargets.go @@ -67,7 +67,7 @@ type BatchGetDeploymentTargetsInput struct { // * // For deployments that are deployed with AWS CloudFormation, the target IDs are // CloudFormation stack IDs. Their target type is cloudFormationTarget. - TargetIds []*string + TargetIds []string } type BatchGetDeploymentTargetsOutput struct { @@ -87,7 +87,7 @@ type BatchGetDeploymentTargetsOutput struct { // // * CloudFormation: The target object is // an AWS CloudFormation blue/green deployment. - DeploymentTargets []*types.DeploymentTarget + DeploymentTargets []types.DeploymentTarget // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codedeploy/api_op_BatchGetDeployments.go b/service/codedeploy/api_op_BatchGetDeployments.go index f356543d17c..7ef90844ea7 100644 --- a/service/codedeploy/api_op_BatchGetDeployments.go +++ b/service/codedeploy/api_op_BatchGetDeployments.go @@ -35,14 +35,14 @@ type BatchGetDeploymentsInput struct { // IDs you can specify is 25. // // This member is required. - DeploymentIds []*string + DeploymentIds []string } // Represents the output of a BatchGetDeployments operation. type BatchGetDeploymentsOutput struct { // Information about the deployments. - DeploymentsInfo []*types.DeploymentInfo + DeploymentsInfo []types.DeploymentInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codedeploy/api_op_BatchGetOnPremisesInstances.go b/service/codedeploy/api_op_BatchGetOnPremisesInstances.go index f0bbddeb6c3..7571f849123 100644 --- a/service/codedeploy/api_op_BatchGetOnPremisesInstances.go +++ b/service/codedeploy/api_op_BatchGetOnPremisesInstances.go @@ -35,14 +35,14 @@ type BatchGetOnPremisesInstancesInput struct { // maximum number of instance names you can specify is 25. // // This member is required. - InstanceNames []*string + InstanceNames []string } // Represents the output of a BatchGetOnPremisesInstances operation. type BatchGetOnPremisesInstancesOutput struct { // Information about the on-premises instances. - InstanceInfos []*types.InstanceInfo + InstanceInfos []types.InstanceInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codedeploy/api_op_CreateApplication.go b/service/codedeploy/api_op_CreateApplication.go index a85bbea224d..8ba792f8509 100644 --- a/service/codedeploy/api_op_CreateApplication.go +++ b/service/codedeploy/api_op_CreateApplication.go @@ -42,7 +42,7 @@ type CreateApplicationInput struct { // The metadata that you apply to CodeDeploy applications to help you organize and // categorize them. Each tag consists of a key and an optional value, both of which // you define. - Tags []*types.Tag + Tags []types.Tag } // Represents the output of a CreateApplication operation. diff --git a/service/codedeploy/api_op_CreateDeployment.go b/service/codedeploy/api_op_CreateDeployment.go index c3e37b7580d..9c88bea3e1b 100644 --- a/service/codedeploy/api_op_CreateDeployment.go +++ b/service/codedeploy/api_op_CreateDeployment.go @@ -87,7 +87,7 @@ type CreateDeploymentInput struct { // new deployment and use ignoreApplicationStopFailures to specify that the // ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic failures should be // ignored. - IgnoreApplicationStopFailures *bool + IgnoreApplicationStopFailures bool // The type and location of the revision to deploy. Revision *types.RevisionLocation @@ -98,7 +98,7 @@ type CreateDeploymentInput struct { // Indicates whether to deploy to all instances or only to instances that are not // running the latest application revision. - UpdateOutdatedInstancesOnly *bool + UpdateOutdatedInstancesOnly bool } // Represents the output of a CreateDeployment operation. diff --git a/service/codedeploy/api_op_CreateDeploymentGroup.go b/service/codedeploy/api_op_CreateDeploymentGroup.go index 70a7ed45f07..f04dd883ae3 100644 --- a/service/codedeploy/api_op_CreateDeploymentGroup.go +++ b/service/codedeploy/api_op_CreateDeploymentGroup.go @@ -56,7 +56,7 @@ type CreateDeploymentGroupInput struct { AutoRollbackConfiguration *types.AutoRollbackConfiguration // A list of associated Amazon EC2 Auto Scaling groups. - AutoScalingGroups []*string + AutoScalingGroups []string // Information about blue/green deployment options for a deployment group. BlueGreenDeploymentConfiguration *types.BlueGreenDeploymentConfiguration @@ -79,7 +79,7 @@ type CreateDeploymentGroupInput struct { // The Amazon EC2 tags on which to filter. The deployment group includes EC2 // instances with any of the specified tags. Cannot be used in the same call as // ec2TagSet. - Ec2TagFilters []*types.EC2TagFilter + Ec2TagFilters []types.EC2TagFilter // Information about groups of tags applied to EC2 instances. The deployment group // includes only EC2 instances identified by all the tag groups. Cannot be used in @@ -90,7 +90,7 @@ type CreateDeploymentGroupInput struct { // deployment groups that use the Amazon ECS compute platform. A target Amazon ECS // service is specified as an Amazon ECS cluster and service name pair using the // format :. - EcsServices []*types.ECSService + EcsServices []types.ECSService // Information about the load balancer used in a deployment. LoadBalancerInfo *types.LoadBalancerInfo @@ -98,7 +98,7 @@ type CreateDeploymentGroupInput struct { // The on-premises instance tags on which to filter. The deployment group includes // on-premises instances with any of the specified tags. Cannot be used in the same // call as OnPremisesTagSet. - OnPremisesInstanceTagFilters []*types.TagFilter + OnPremisesInstanceTagFilters []types.TagFilter // Information about groups of tags applied to on-premises instances. The // deployment group includes only on-premises instances identified by all of the @@ -108,13 +108,13 @@ type CreateDeploymentGroupInput struct { // The metadata that you apply to CodeDeploy deployment groups to help you organize // and categorize them. Each tag consists of a key and an optional value, both of // which you define. - Tags []*types.Tag + Tags []types.Tag // Information about triggers to create when the deployment group is created. For // examples, see Create a Trigger for an AWS CodeDeploy Event // (https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html) // in the AWS CodeDeploy User Guide. - TriggerConfigurations []*types.TriggerConfig + TriggerConfigurations []types.TriggerConfig } // Represents the output of a CreateDeploymentGroup operation. diff --git a/service/codedeploy/api_op_DeleteDeploymentGroup.go b/service/codedeploy/api_op_DeleteDeploymentGroup.go index f1a4786cf0e..b9f28ce4bb2 100644 --- a/service/codedeploy/api_op_DeleteDeploymentGroup.go +++ b/service/codedeploy/api_op_DeleteDeploymentGroup.go @@ -51,7 +51,7 @@ type DeleteDeploymentGroupOutput struct { // in the Auto Scaling group. If the output contains data, AWS CodeDeploy could not // remove some Auto Scaling lifecycle event hooks from the Amazon EC2 instances in // the Auto Scaling group. - HooksNotCleanedUp []*types.AutoScalingGroup + HooksNotCleanedUp []types.AutoScalingGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codedeploy/api_op_ListApplicationRevisions.go b/service/codedeploy/api_op_ListApplicationRevisions.go index acc2a8f4b11..72025d60561 100644 --- a/service/codedeploy/api_op_ListApplicationRevisions.go +++ b/service/codedeploy/api_op_ListApplicationRevisions.go @@ -95,7 +95,7 @@ type ListApplicationRevisionsOutput struct { NextToken *string // A list of locations that contain the matching revisions. - Revisions []*types.RevisionLocation + Revisions []types.RevisionLocation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codedeploy/api_op_ListApplications.go b/service/codedeploy/api_op_ListApplications.go index b6ff1df25ee..df893fa671b 100644 --- a/service/codedeploy/api_op_ListApplications.go +++ b/service/codedeploy/api_op_ListApplications.go @@ -38,7 +38,7 @@ type ListApplicationsInput struct { type ListApplicationsOutput struct { // A list of application names. - Applications []*string + Applications []string // If a large amount of information is returned, an identifier is also returned. It // can be used in a subsequent list applications call to return the next set of diff --git a/service/codedeploy/api_op_ListDeploymentConfigs.go b/service/codedeploy/api_op_ListDeploymentConfigs.go index d202a1942f1..7b014a7ab96 100644 --- a/service/codedeploy/api_op_ListDeploymentConfigs.go +++ b/service/codedeploy/api_op_ListDeploymentConfigs.go @@ -39,7 +39,7 @@ type ListDeploymentConfigsOutput struct { // A list of deployment configurations, including built-in configurations such as // CodeDeployDefault.OneAtATime. - DeploymentConfigsList []*string + DeploymentConfigsList []string // If a large amount of information is returned, an identifier is also returned. It // can be used in a subsequent list deployment configurations call to return the diff --git a/service/codedeploy/api_op_ListDeploymentGroups.go b/service/codedeploy/api_op_ListDeploymentGroups.go index b960bdca6a7..67946badd21 100644 --- a/service/codedeploy/api_op_ListDeploymentGroups.go +++ b/service/codedeploy/api_op_ListDeploymentGroups.go @@ -48,7 +48,7 @@ type ListDeploymentGroupsOutput struct { ApplicationName *string // A list of deployment group names. - DeploymentGroups []*string + DeploymentGroups []string // If a large amount of information is returned, an identifier is also returned. It // can be used in a subsequent list deployment groups call to return the next set diff --git a/service/codedeploy/api_op_ListDeploymentInstances.go b/service/codedeploy/api_op_ListDeploymentInstances.go index da9b9b7eac6..3118f8fcd1d 100644 --- a/service/codedeploy/api_op_ListDeploymentInstances.go +++ b/service/codedeploy/api_op_ListDeploymentInstances.go @@ -72,7 +72,7 @@ type ListDeploymentInstancesInput struct { type ListDeploymentInstancesOutput struct { // A list of instance IDs. - InstancesList []*string + InstancesList []string // If a large amount of information is returned, an identifier is also returned. It // can be used in a subsequent list deployment instances call to return the next diff --git a/service/codedeploy/api_op_ListDeploymentTargets.go b/service/codedeploy/api_op_ListDeploymentTargets.go index fc05300479d..a2c51901534 100644 --- a/service/codedeploy/api_op_ListDeploymentTargets.go +++ b/service/codedeploy/api_op_ListDeploymentTargets.go @@ -43,7 +43,7 @@ type ListDeploymentTargetsInput struct { // // * ServerInstanceLabel - A // ServerInstanceLabel filter string can be Blue or Green. - TargetFilters map[string][]*string + TargetFilters map[string][]string } type ListDeploymentTargetsOutput struct { @@ -54,7 +54,7 @@ type ListDeploymentTargetsOutput struct { NextToken *string // The unique IDs of deployment targets. - TargetIds []*string + TargetIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codedeploy/api_op_ListDeployments.go b/service/codedeploy/api_op_ListDeployments.go index 72d0bfb3ae2..0a2b5322aaa 100644 --- a/service/codedeploy/api_op_ListDeployments.go +++ b/service/codedeploy/api_op_ListDeployments.go @@ -78,7 +78,7 @@ type ListDeploymentsInput struct { type ListDeploymentsOutput struct { // A list of deployment IDs. - Deployments []*string + Deployments []string // If a large amount of information is returned, an identifier is also returned. It // can be used in a subsequent list deployments call to return the next set of diff --git a/service/codedeploy/api_op_ListGitHubAccountTokenNames.go b/service/codedeploy/api_op_ListGitHubAccountTokenNames.go index 3873fda248e..27e7eea68a7 100644 --- a/service/codedeploy/api_op_ListGitHubAccountTokenNames.go +++ b/service/codedeploy/api_op_ListGitHubAccountTokenNames.go @@ -43,7 +43,7 @@ type ListGitHubAccountTokenNamesOutput struct { NextToken *string // A list of names of connections to GitHub accounts. - TokenNameList []*string + TokenNameList []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codedeploy/api_op_ListOnPremisesInstances.go b/service/codedeploy/api_op_ListOnPremisesInstances.go index 6abdb583ad8..b8e35509bc0 100644 --- a/service/codedeploy/api_op_ListOnPremisesInstances.go +++ b/service/codedeploy/api_op_ListOnPremisesInstances.go @@ -48,14 +48,14 @@ type ListOnPremisesInstancesInput struct { // The on-premises instance tags that are used to restrict the on-premises instance // names returned. - TagFilters []*types.TagFilter + TagFilters []types.TagFilter } // Represents the output of the list on-premises instances operation. type ListOnPremisesInstancesOutput struct { // The list of matching on-premises instance names. - InstanceNames []*string + InstanceNames []string // If a large amount of information is returned, an identifier is also returned. It // can be used in a subsequent list on-premises instances call to return the next diff --git a/service/codedeploy/api_op_ListTagsForResource.go b/service/codedeploy/api_op_ListTagsForResource.go index 72e79e7aece..9d68a3eea00 100644 --- a/service/codedeploy/api_op_ListTagsForResource.go +++ b/service/codedeploy/api_op_ListTagsForResource.go @@ -51,7 +51,7 @@ type ListTagsForResourceOutput struct { // A list of tags returned by ListTagsForResource. The tags are associated with the // resource identified by the input ResourceArn parameter. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codedeploy/api_op_RemoveTagsFromOnPremisesInstances.go b/service/codedeploy/api_op_RemoveTagsFromOnPremisesInstances.go index ac616316072..4252c1f56f1 100644 --- a/service/codedeploy/api_op_RemoveTagsFromOnPremisesInstances.go +++ b/service/codedeploy/api_op_RemoveTagsFromOnPremisesInstances.go @@ -33,12 +33,12 @@ type RemoveTagsFromOnPremisesInstancesInput struct { // The names of the on-premises instances from which to remove tags. // // This member is required. - InstanceNames []*string + InstanceNames []string // The tag key-value pairs to remove from the on-premises instances. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type RemoveTagsFromOnPremisesInstancesOutput struct { diff --git a/service/codedeploy/api_op_TagResource.go b/service/codedeploy/api_op_TagResource.go index 78fb79f9312..9b0976d7f30 100644 --- a/service/codedeploy/api_op_TagResource.go +++ b/service/codedeploy/api_op_TagResource.go @@ -39,7 +39,7 @@ type TagResourceInput struct { // identified by the ResourceArn input parameter. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/codedeploy/api_op_UntagResource.go b/service/codedeploy/api_op_UntagResource.go index bf987fc2ee6..5ffae69afaa 100644 --- a/service/codedeploy/api_op_UntagResource.go +++ b/service/codedeploy/api_op_UntagResource.go @@ -40,7 +40,7 @@ type UntagResourceInput struct { // disassociated from the resource specified by the ResourceArn input parameter. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/codedeploy/api_op_UpdateDeploymentGroup.go b/service/codedeploy/api_op_UpdateDeploymentGroup.go index f0bc5b075d6..751e347a760 100644 --- a/service/codedeploy/api_op_UpdateDeploymentGroup.go +++ b/service/codedeploy/api_op_UpdateDeploymentGroup.go @@ -51,7 +51,7 @@ type UpdateDeploymentGroupInput struct { // The replacement list of Auto Scaling groups to be included in the deployment // group, if you want to change them. To keep the Auto Scaling groups, enter their // names. To remove Auto Scaling groups, do not enter any Auto Scaling group names. - AutoScalingGroups []*string + AutoScalingGroups []string // Information about blue/green deployment options for a deployment group. BlueGreenDeploymentConfiguration *types.BlueGreenDeploymentConfiguration @@ -66,7 +66,7 @@ type UpdateDeploymentGroupInput struct { // The replacement set of Amazon EC2 tags on which to filter, if you want to change // them. To keep the existing tags, enter their names. To remove tags, do not enter // any tag names. - Ec2TagFilters []*types.EC2TagFilter + Ec2TagFilters []types.EC2TagFilter // Information about groups of tags applied to on-premises instances. The // deployment group includes only EC2 instances identified by all the tag groups. @@ -76,7 +76,7 @@ type UpdateDeploymentGroupInput struct { // deployment groups that use the Amazon ECS compute platform. A target Amazon ECS // service is specified as an Amazon ECS cluster and service name pair using the // format :. - EcsServices []*types.ECSService + EcsServices []types.ECSService // Information about the load balancer used in a deployment. LoadBalancerInfo *types.LoadBalancerInfo @@ -87,7 +87,7 @@ type UpdateDeploymentGroupInput struct { // The replacement set of on-premises instance tags on which to filter, if you want // to change them. To keep the existing tags, enter their names. To remove tags, do // not enter any tag names. - OnPremisesInstanceTagFilters []*types.TagFilter + OnPremisesInstanceTagFilters []types.TagFilter // Information about an on-premises instance tag set. The deployment group includes // only on-premises instances identified by all the tag groups. @@ -100,7 +100,7 @@ type UpdateDeploymentGroupInput struct { // examples, see Edit a Trigger in a CodeDeploy Deployment Group // (https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-edit.html) // in the AWS CodeDeploy User Guide. - TriggerConfigurations []*types.TriggerConfig + TriggerConfigurations []types.TriggerConfig } // Represents the output of an UpdateDeploymentGroup operation. @@ -111,7 +111,7 @@ type UpdateDeploymentGroupOutput struct { // corresponding Auto Scaling lifecycle event hooks from the AWS account. If the // output contains data, AWS CodeDeploy could not remove some Auto Scaling // lifecycle event hooks from the AWS account. - HooksNotCleanedUp []*types.AutoScalingGroup + HooksNotCleanedUp []types.AutoScalingGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codedeploy/deserializers.go b/service/codedeploy/deserializers.go index 831768fd7b2..e1377f8d782 100644 --- a/service/codedeploy/deserializers.go +++ b/service/codedeploy/deserializers.go @@ -9931,7 +9931,7 @@ func awsAwsjson11_deserializeDocumentAlarm(v **types.Alarm, value interface{}) e if !ok { return fmt.Errorf("expected AlarmName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -9976,7 +9976,7 @@ func awsAwsjson11_deserializeDocumentAlarmConfiguration(v **types.AlarmConfigura if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "ignorePollAlarmFailure": @@ -9985,7 +9985,7 @@ func awsAwsjson11_deserializeDocumentAlarmConfiguration(v **types.AlarmConfigura if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IgnorePollAlarmFailure = &jtv + sv.IgnorePollAlarmFailure = jtv } default: @@ -9997,7 +9997,7 @@ func awsAwsjson11_deserializeDocumentAlarmConfiguration(v **types.AlarmConfigura return nil } -func awsAwsjson11_deserializeDocumentAlarmList(v *[]*types.Alarm, value interface{}) error { +func awsAwsjson11_deserializeDocumentAlarmList(v *[]types.Alarm, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10010,18 +10010,20 @@ func awsAwsjson11_deserializeDocumentAlarmList(v *[]*types.Alarm, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Alarm + var cv []types.Alarm if *v == nil { - cv = []*types.Alarm{} + cv = []types.Alarm{} } else { cv = *v } for _, value := range shape { - var col *types.Alarm - if err := awsAwsjson11_deserializeDocumentAlarm(&col, value); err != nil { + var col types.Alarm + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAlarm(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10057,7 +10059,7 @@ func awsAwsjson11_deserializeDocumentAlarmsLimitExceededException(v **types.Alar if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10097,7 +10099,7 @@ func awsAwsjson11_deserializeDocumentApplicationAlreadyExistsException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10137,7 +10139,7 @@ func awsAwsjson11_deserializeDocumentApplicationDoesNotExistException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10177,7 +10179,7 @@ func awsAwsjson11_deserializeDocumentApplicationInfo(v **types.ApplicationInfo, if !ok { return fmt.Errorf("expected ApplicationId to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "applicationName": @@ -10186,7 +10188,7 @@ func awsAwsjson11_deserializeDocumentApplicationInfo(v **types.ApplicationInfo, if !ok { return fmt.Errorf("expected ApplicationName to be of type string, got %T instead", value) } - sv.ApplicationName = &jtv + sv.ApplicationName = ptr.String(jtv) } case "computePlatform": @@ -10217,7 +10219,7 @@ func awsAwsjson11_deserializeDocumentApplicationInfo(v **types.ApplicationInfo, if !ok { return fmt.Errorf("expected GitHubAccountTokenName to be of type string, got %T instead", value) } - sv.GitHubAccountName = &jtv + sv.GitHubAccountName = ptr.String(jtv) } case "linkedToGitHub": @@ -10226,7 +10228,7 @@ func awsAwsjson11_deserializeDocumentApplicationInfo(v **types.ApplicationInfo, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.LinkedToGitHub = &jtv + sv.LinkedToGitHub = jtv } default: @@ -10266,7 +10268,7 @@ func awsAwsjson11_deserializeDocumentApplicationLimitExceededException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10306,7 +10308,7 @@ func awsAwsjson11_deserializeDocumentApplicationNameRequiredException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10318,7 +10320,7 @@ func awsAwsjson11_deserializeDocumentApplicationNameRequiredException(v **types. return nil } -func awsAwsjson11_deserializeDocumentApplicationsInfoList(v *[]*types.ApplicationInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentApplicationsInfoList(v *[]types.ApplicationInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10331,18 +10333,20 @@ func awsAwsjson11_deserializeDocumentApplicationsInfoList(v *[]*types.Applicatio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApplicationInfo + var cv []types.ApplicationInfo if *v == nil { - cv = []*types.ApplicationInfo{} + cv = []types.ApplicationInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ApplicationInfo - if err := awsAwsjson11_deserializeDocumentApplicationInfo(&col, value); err != nil { + var col types.ApplicationInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentApplicationInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10350,7 +10354,7 @@ func awsAwsjson11_deserializeDocumentApplicationsInfoList(v *[]*types.Applicatio return nil } -func awsAwsjson11_deserializeDocumentApplicationsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentApplicationsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10363,21 +10367,21 @@ func awsAwsjson11_deserializeDocumentApplicationsList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ApplicationName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10414,7 +10418,7 @@ func awsAwsjson11_deserializeDocumentAppSpecContent(v **types.AppSpecContent, va if !ok { return fmt.Errorf("expected RawStringContent to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "sha256": @@ -10423,7 +10427,7 @@ func awsAwsjson11_deserializeDocumentAppSpecContent(v **types.AppSpecContent, va if !ok { return fmt.Errorf("expected RawStringSha256 to be of type string, got %T instead", value) } - sv.Sha256 = &jtv + sv.Sha256 = ptr.String(jtv) } default: @@ -10463,7 +10467,7 @@ func awsAwsjson11_deserializeDocumentArnNotSupportedException(v **types.ArnNotSu if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10503,7 +10507,7 @@ func awsAwsjson11_deserializeDocumentAutoRollbackConfiguration(v **types.AutoRol if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "events": @@ -10584,7 +10588,7 @@ func awsAwsjson11_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup if !ok { return fmt.Errorf("expected AutoScalingGroupHook to be of type string, got %T instead", value) } - sv.Hook = &jtv + sv.Hook = ptr.String(jtv) } case "name": @@ -10593,7 +10597,7 @@ func awsAwsjson11_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup if !ok { return fmt.Errorf("expected AutoScalingGroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10605,7 +10609,7 @@ func awsAwsjson11_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup return nil } -func awsAwsjson11_deserializeDocumentAutoScalingGroupList(v *[]*types.AutoScalingGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentAutoScalingGroupList(v *[]types.AutoScalingGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10618,18 +10622,20 @@ func awsAwsjson11_deserializeDocumentAutoScalingGroupList(v *[]*types.AutoScalin return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutoScalingGroup + var cv []types.AutoScalingGroup if *v == nil { - cv = []*types.AutoScalingGroup{} + cv = []types.AutoScalingGroup{} } else { cv = *v } for _, value := range shape { - var col *types.AutoScalingGroup - if err := awsAwsjson11_deserializeDocumentAutoScalingGroup(&col, value); err != nil { + var col types.AutoScalingGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAutoScalingGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10637,7 +10643,7 @@ func awsAwsjson11_deserializeDocumentAutoScalingGroupList(v *[]*types.AutoScalin return nil } -func awsAwsjson11_deserializeDocumentAutoScalingGroupNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAutoScalingGroupNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10650,21 +10656,21 @@ func awsAwsjson11_deserializeDocumentAutoScalingGroupNameList(v *[]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AutoScalingGroupName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10701,7 +10707,7 @@ func awsAwsjson11_deserializeDocumentBatchLimitExceededException(v **types.Batch if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10800,7 +10806,7 @@ func awsAwsjson11_deserializeDocumentBlueInstanceTerminationOption(v **types.Blu if err != nil { return err } - sv.TerminationWaitTimeInMinutes = ptr.Int32(int32(i64)) + sv.TerminationWaitTimeInMinutes = int32(i64) } default: @@ -10840,7 +10846,7 @@ func awsAwsjson11_deserializeDocumentBucketNameFilterRequiredException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10880,7 +10886,7 @@ func awsAwsjson11_deserializeDocumentCloudFormationTarget(v **types.CloudFormati if !ok { return fmt.Errorf("expected DeploymentId to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "lastUpdatedAt": @@ -10907,7 +10913,7 @@ func awsAwsjson11_deserializeDocumentCloudFormationTarget(v **types.CloudFormati if !ok { return fmt.Errorf("expected CloudFormationResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "status": @@ -10925,7 +10931,7 @@ func awsAwsjson11_deserializeDocumentCloudFormationTarget(v **types.CloudFormati if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } case "targetVersionWeight": @@ -10938,7 +10944,7 @@ func awsAwsjson11_deserializeDocumentCloudFormationTarget(v **types.CloudFormati if err != nil { return err } - sv.TargetVersionWeight = &f64 + sv.TargetVersionWeight = f64 } default: @@ -10978,7 +10984,7 @@ func awsAwsjson11_deserializeDocumentDeploymentAlreadyCompletedException(v **typ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11018,7 +11024,7 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigAlreadyExistsException(v ** if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11058,7 +11064,7 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigDoesNotExistException(v **t if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11120,7 +11126,7 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigInfo(v **types.DeploymentCo if !ok { return fmt.Errorf("expected DeploymentConfigId to be of type string, got %T instead", value) } - sv.DeploymentConfigId = &jtv + sv.DeploymentConfigId = ptr.String(jtv) } case "deploymentConfigName": @@ -11129,7 +11135,7 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigInfo(v **types.DeploymentCo if !ok { return fmt.Errorf("expected DeploymentConfigName to be of type string, got %T instead", value) } - sv.DeploymentConfigName = &jtv + sv.DeploymentConfigName = ptr.String(jtv) } case "minimumHealthyHosts": @@ -11179,7 +11185,7 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigInUseException(v **types.De if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11219,7 +11225,7 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigLimitExceededException(v ** if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11259,7 +11265,7 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigNameRequiredException(v **t if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11271,7 +11277,7 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigNameRequiredException(v **t return nil } -func awsAwsjson11_deserializeDocumentDeploymentConfigsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeploymentConfigsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11284,21 +11290,21 @@ func awsAwsjson11_deserializeDocumentDeploymentConfigsList(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DeploymentConfigName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11335,7 +11341,7 @@ func awsAwsjson11_deserializeDocumentDeploymentDoesNotExistException(v **types.D if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11375,7 +11381,7 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupAlreadyExistsException(v **t if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11415,7 +11421,7 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupDoesNotExistException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11460,7 +11466,7 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupInfo(v **types.DeploymentGro if !ok { return fmt.Errorf("expected ApplicationName to be of type string, got %T instead", value) } - sv.ApplicationName = &jtv + sv.ApplicationName = ptr.String(jtv) } case "autoRollbackConfiguration": @@ -11493,7 +11499,7 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupInfo(v **types.DeploymentGro if !ok { return fmt.Errorf("expected DeploymentConfigName to be of type string, got %T instead", value) } - sv.DeploymentConfigName = &jtv + sv.DeploymentConfigName = ptr.String(jtv) } case "deploymentGroupId": @@ -11502,7 +11508,7 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupInfo(v **types.DeploymentGro if !ok { return fmt.Errorf("expected DeploymentGroupId to be of type string, got %T instead", value) } - sv.DeploymentGroupId = &jtv + sv.DeploymentGroupId = ptr.String(jtv) } case "deploymentGroupName": @@ -11511,7 +11517,7 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupInfo(v **types.DeploymentGro if !ok { return fmt.Errorf("expected DeploymentGroupName to be of type string, got %T instead", value) } - sv.DeploymentGroupName = &jtv + sv.DeploymentGroupName = ptr.String(jtv) } case "deploymentStyle": @@ -11565,7 +11571,7 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupInfo(v **types.DeploymentGro if !ok { return fmt.Errorf("expected Role to be of type string, got %T instead", value) } - sv.ServiceRoleArn = &jtv + sv.ServiceRoleArn = ptr.String(jtv) } case "targetRevision": @@ -11587,7 +11593,7 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupInfo(v **types.DeploymentGro return nil } -func awsAwsjson11_deserializeDocumentDeploymentGroupInfoList(v *[]*types.DeploymentGroupInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeploymentGroupInfoList(v *[]types.DeploymentGroupInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11600,18 +11606,20 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupInfoList(v *[]*types.Deploym return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeploymentGroupInfo + var cv []types.DeploymentGroupInfo if *v == nil { - cv = []*types.DeploymentGroupInfo{} + cv = []types.DeploymentGroupInfo{} } else { cv = *v } for _, value := range shape { - var col *types.DeploymentGroupInfo - if err := awsAwsjson11_deserializeDocumentDeploymentGroupInfo(&col, value); err != nil { + var col types.DeploymentGroupInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeploymentGroupInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11647,7 +11655,7 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupLimitExceededException(v **t if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11687,7 +11695,7 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupNameRequiredException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11699,7 +11707,7 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupNameRequiredException(v **ty return nil } -func awsAwsjson11_deserializeDocumentDeploymentGroupsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeploymentGroupsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11712,21 +11720,21 @@ func awsAwsjson11_deserializeDocumentDeploymentGroupsList(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DeploymentGroupName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11763,7 +11771,7 @@ func awsAwsjson11_deserializeDocumentDeploymentIdRequiredException(v **types.Dep if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11803,7 +11811,7 @@ func awsAwsjson11_deserializeDocumentDeploymentInfo(v **types.DeploymentInfo, va if !ok { return fmt.Errorf("expected AdditionalDeploymentStatusInfo to be of type string, got %T instead", value) } - sv.AdditionalDeploymentStatusInfo = &jtv + sv.AdditionalDeploymentStatusInfo = ptr.String(jtv) } case "applicationName": @@ -11812,7 +11820,7 @@ func awsAwsjson11_deserializeDocumentDeploymentInfo(v **types.DeploymentInfo, va if !ok { return fmt.Errorf("expected ApplicationName to be of type string, got %T instead", value) } - sv.ApplicationName = &jtv + sv.ApplicationName = ptr.String(jtv) } case "autoRollbackConfiguration": @@ -11875,7 +11883,7 @@ func awsAwsjson11_deserializeDocumentDeploymentInfo(v **types.DeploymentInfo, va if !ok { return fmt.Errorf("expected DeploymentConfigName to be of type string, got %T instead", value) } - sv.DeploymentConfigName = &jtv + sv.DeploymentConfigName = ptr.String(jtv) } case "deploymentGroupName": @@ -11884,7 +11892,7 @@ func awsAwsjson11_deserializeDocumentDeploymentInfo(v **types.DeploymentInfo, va if !ok { return fmt.Errorf("expected DeploymentGroupName to be of type string, got %T instead", value) } - sv.DeploymentGroupName = &jtv + sv.DeploymentGroupName = ptr.String(jtv) } case "deploymentId": @@ -11893,7 +11901,7 @@ func awsAwsjson11_deserializeDocumentDeploymentInfo(v **types.DeploymentInfo, va if !ok { return fmt.Errorf("expected DeploymentId to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "deploymentOverview": @@ -11917,7 +11925,7 @@ func awsAwsjson11_deserializeDocumentDeploymentInfo(v **types.DeploymentInfo, va if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "errorInformation": @@ -11931,7 +11939,7 @@ func awsAwsjson11_deserializeDocumentDeploymentInfo(v **types.DeploymentInfo, va if !ok { return fmt.Errorf("expected ExternalId to be of type string, got %T instead", value) } - sv.ExternalId = &jtv + sv.ExternalId = ptr.String(jtv) } case "fileExistsBehavior": @@ -11949,7 +11957,7 @@ func awsAwsjson11_deserializeDocumentDeploymentInfo(v **types.DeploymentInfo, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IgnoreApplicationStopFailures = &jtv + sv.IgnoreApplicationStopFailures = jtv } case "instanceTerminationWaitTimeStarted": @@ -11958,7 +11966,7 @@ func awsAwsjson11_deserializeDocumentDeploymentInfo(v **types.DeploymentInfo, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.InstanceTerminationWaitTimeStarted = &jtv + sv.InstanceTerminationWaitTimeStarted = jtv } case "loadBalancerInfo": @@ -12014,7 +12022,7 @@ func awsAwsjson11_deserializeDocumentDeploymentInfo(v **types.DeploymentInfo, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.UpdateOutdatedInstancesOnly = &jtv + sv.UpdateOutdatedInstancesOnly = jtv } default: @@ -12054,7 +12062,7 @@ func awsAwsjson11_deserializeDocumentDeploymentIsNotInReadyStateException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12094,7 +12102,7 @@ func awsAwsjson11_deserializeDocumentDeploymentLimitExceededException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12134,7 +12142,7 @@ func awsAwsjson11_deserializeDocumentDeploymentNotStartedException(v **types.Dep if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12178,7 +12186,7 @@ func awsAwsjson11_deserializeDocumentDeploymentOverview(v **types.DeploymentOver if err != nil { return err } - sv.Failed = &i64 + sv.Failed = i64 } case "InProgress": @@ -12191,7 +12199,7 @@ func awsAwsjson11_deserializeDocumentDeploymentOverview(v **types.DeploymentOver if err != nil { return err } - sv.InProgress = &i64 + sv.InProgress = i64 } case "Pending": @@ -12204,7 +12212,7 @@ func awsAwsjson11_deserializeDocumentDeploymentOverview(v **types.DeploymentOver if err != nil { return err } - sv.Pending = &i64 + sv.Pending = i64 } case "Ready": @@ -12217,7 +12225,7 @@ func awsAwsjson11_deserializeDocumentDeploymentOverview(v **types.DeploymentOver if err != nil { return err } - sv.Ready = &i64 + sv.Ready = i64 } case "Skipped": @@ -12230,7 +12238,7 @@ func awsAwsjson11_deserializeDocumentDeploymentOverview(v **types.DeploymentOver if err != nil { return err } - sv.Skipped = &i64 + sv.Skipped = i64 } case "Succeeded": @@ -12243,7 +12251,7 @@ func awsAwsjson11_deserializeDocumentDeploymentOverview(v **types.DeploymentOver if err != nil { return err } - sv.Succeeded = &i64 + sv.Succeeded = i64 } default: @@ -12296,7 +12304,7 @@ func awsAwsjson11_deserializeDocumentDeploymentReadyOption(v **types.DeploymentR if err != nil { return err } - sv.WaitTimeInMinutes = ptr.Int32(int32(i64)) + sv.WaitTimeInMinutes = int32(i64) } default: @@ -12308,7 +12316,7 @@ func awsAwsjson11_deserializeDocumentDeploymentReadyOption(v **types.DeploymentR return nil } -func awsAwsjson11_deserializeDocumentDeploymentsInfoList(v *[]*types.DeploymentInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeploymentsInfoList(v *[]types.DeploymentInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12321,18 +12329,20 @@ func awsAwsjson11_deserializeDocumentDeploymentsInfoList(v *[]*types.DeploymentI return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeploymentInfo + var cv []types.DeploymentInfo if *v == nil { - cv = []*types.DeploymentInfo{} + cv = []types.DeploymentInfo{} } else { cv = *v } for _, value := range shape { - var col *types.DeploymentInfo - if err := awsAwsjson11_deserializeDocumentDeploymentInfo(&col, value); err != nil { + var col types.DeploymentInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeploymentInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12340,7 +12350,7 @@ func awsAwsjson11_deserializeDocumentDeploymentsInfoList(v *[]*types.DeploymentI return nil } -func awsAwsjson11_deserializeDocumentDeploymentsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeploymentsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12353,21 +12363,21 @@ func awsAwsjson11_deserializeDocumentDeploymentsList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DeploymentId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -12376,7 +12386,7 @@ func awsAwsjson11_deserializeDocumentDeploymentsList(v *[]*string, value interfa return nil } -func awsAwsjson11_deserializeDocumentDeploymentStatusMessageList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeploymentStatusMessageList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12389,21 +12399,21 @@ func awsAwsjson11_deserializeDocumentDeploymentStatusMessageList(v *[]*string, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -12549,7 +12559,7 @@ func awsAwsjson11_deserializeDocumentDeploymentTargetDoesNotExistException(v **t if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12589,7 +12599,7 @@ func awsAwsjson11_deserializeDocumentDeploymentTargetIdRequiredException(v **typ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12601,7 +12611,7 @@ func awsAwsjson11_deserializeDocumentDeploymentTargetIdRequiredException(v **typ return nil } -func awsAwsjson11_deserializeDocumentDeploymentTargetList(v *[]*types.DeploymentTarget, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeploymentTargetList(v *[]types.DeploymentTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12614,18 +12624,20 @@ func awsAwsjson11_deserializeDocumentDeploymentTargetList(v *[]*types.Deployment return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeploymentTarget + var cv []types.DeploymentTarget if *v == nil { - cv = []*types.DeploymentTarget{} + cv = []types.DeploymentTarget{} } else { cv = *v } for _, value := range shape { - var col *types.DeploymentTarget - if err := awsAwsjson11_deserializeDocumentDeploymentTarget(&col, value); err != nil { + var col types.DeploymentTarget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeploymentTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12661,7 +12673,7 @@ func awsAwsjson11_deserializeDocumentDeploymentTargetListSizeExceededException(v if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12701,7 +12713,7 @@ func awsAwsjson11_deserializeDocumentDescriptionTooLongException(v **types.Descr if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12750,7 +12762,7 @@ func awsAwsjson11_deserializeDocumentDiagnostics(v **types.Diagnostics, value in if !ok { return fmt.Errorf("expected LogTail to be of type string, got %T instead", value) } - sv.LogTail = &jtv + sv.LogTail = ptr.String(jtv) } case "message": @@ -12759,7 +12771,7 @@ func awsAwsjson11_deserializeDocumentDiagnostics(v **types.Diagnostics, value in if !ok { return fmt.Errorf("expected LifecycleMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "scriptName": @@ -12768,7 +12780,7 @@ func awsAwsjson11_deserializeDocumentDiagnostics(v **types.Diagnostics, value in if !ok { return fmt.Errorf("expected ScriptName to be of type string, got %T instead", value) } - sv.ScriptName = &jtv + sv.ScriptName = ptr.String(jtv) } default: @@ -12808,7 +12820,7 @@ func awsAwsjson11_deserializeDocumentEC2TagFilter(v **types.EC2TagFilter, value if !ok { return fmt.Errorf("expected Key to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Type": @@ -12826,7 +12838,7 @@ func awsAwsjson11_deserializeDocumentEC2TagFilter(v **types.EC2TagFilter, value if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -12838,7 +12850,7 @@ func awsAwsjson11_deserializeDocumentEC2TagFilter(v **types.EC2TagFilter, value return nil } -func awsAwsjson11_deserializeDocumentEC2TagFilterList(v *[]*types.EC2TagFilter, value interface{}) error { +func awsAwsjson11_deserializeDocumentEC2TagFilterList(v *[]types.EC2TagFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12851,18 +12863,20 @@ func awsAwsjson11_deserializeDocumentEC2TagFilterList(v *[]*types.EC2TagFilter, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EC2TagFilter + var cv []types.EC2TagFilter if *v == nil { - cv = []*types.EC2TagFilter{} + cv = []types.EC2TagFilter{} } else { cv = *v } for _, value := range shape { - var col *types.EC2TagFilter - if err := awsAwsjson11_deserializeDocumentEC2TagFilter(&col, value); err != nil { + var col types.EC2TagFilter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEC2TagFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12906,7 +12920,7 @@ func awsAwsjson11_deserializeDocumentEC2TagSet(v **types.EC2TagSet, value interf return nil } -func awsAwsjson11_deserializeDocumentEC2TagSetList(v *[][]*types.EC2TagFilter, value interface{}) error { +func awsAwsjson11_deserializeDocumentEC2TagSetList(v *[][]types.EC2TagFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12919,15 +12933,15 @@ func awsAwsjson11_deserializeDocumentEC2TagSetList(v *[][]*types.EC2TagFilter, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv [][]*types.EC2TagFilter + var cv [][]types.EC2TagFilter if *v == nil { - cv = [][]*types.EC2TagFilter{} + cv = [][]types.EC2TagFilter{} } else { cv = *v } for _, value := range shape { - var col []*types.EC2TagFilter + var col []types.EC2TagFilter if err := awsAwsjson11_deserializeDocumentEC2TagFilterList(&col, value); err != nil { return err } @@ -12966,7 +12980,7 @@ func awsAwsjson11_deserializeDocumentECSService(v **types.ECSService, value inte if !ok { return fmt.Errorf("expected ECSClusterName to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "serviceName": @@ -12975,7 +12989,7 @@ func awsAwsjson11_deserializeDocumentECSService(v **types.ECSService, value inte if !ok { return fmt.Errorf("expected ECSServiceName to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } default: @@ -12987,7 +13001,7 @@ func awsAwsjson11_deserializeDocumentECSService(v **types.ECSService, value inte return nil } -func awsAwsjson11_deserializeDocumentECSServiceList(v *[]*types.ECSService, value interface{}) error { +func awsAwsjson11_deserializeDocumentECSServiceList(v *[]types.ECSService, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13000,18 +13014,20 @@ func awsAwsjson11_deserializeDocumentECSServiceList(v *[]*types.ECSService, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ECSService + var cv []types.ECSService if *v == nil { - cv = []*types.ECSService{} + cv = []types.ECSService{} } else { cv = *v } for _, value := range shape { - var col *types.ECSService - if err := awsAwsjson11_deserializeDocumentECSService(&col, value); err != nil { + var col types.ECSService + destAddr := &col + if err := awsAwsjson11_deserializeDocumentECSService(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13047,7 +13063,7 @@ func awsAwsjson11_deserializeDocumentECSServiceMappingLimitExceededException(v * if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13087,7 +13103,7 @@ func awsAwsjson11_deserializeDocumentECSTarget(v **types.ECSTarget, value interf if !ok { return fmt.Errorf("expected DeploymentId to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "lastUpdatedAt": @@ -13123,7 +13139,7 @@ func awsAwsjson11_deserializeDocumentECSTarget(v **types.ECSTarget, value interf if !ok { return fmt.Errorf("expected TargetArn to be of type string, got %T instead", value) } - sv.TargetArn = &jtv + sv.TargetArn = ptr.String(jtv) } case "targetId": @@ -13132,7 +13148,7 @@ func awsAwsjson11_deserializeDocumentECSTarget(v **types.ECSTarget, value interf if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } case "taskSetsInfo": @@ -13181,7 +13197,7 @@ func awsAwsjson11_deserializeDocumentECSTaskSet(v **types.ECSTaskSet, value inte if err != nil { return err } - sv.DesiredCount = &i64 + sv.DesiredCount = i64 } case "identifer": @@ -13190,7 +13206,7 @@ func awsAwsjson11_deserializeDocumentECSTaskSet(v **types.ECSTaskSet, value inte if !ok { return fmt.Errorf("expected ECSTaskSetIdentifier to be of type string, got %T instead", value) } - sv.Identifer = &jtv + sv.Identifer = ptr.String(jtv) } case "pendingCount": @@ -13203,7 +13219,7 @@ func awsAwsjson11_deserializeDocumentECSTaskSet(v **types.ECSTaskSet, value inte if err != nil { return err } - sv.PendingCount = &i64 + sv.PendingCount = i64 } case "runningCount": @@ -13216,7 +13232,7 @@ func awsAwsjson11_deserializeDocumentECSTaskSet(v **types.ECSTaskSet, value inte if err != nil { return err } - sv.RunningCount = &i64 + sv.RunningCount = i64 } case "status": @@ -13225,7 +13241,7 @@ func awsAwsjson11_deserializeDocumentECSTaskSet(v **types.ECSTaskSet, value inte if !ok { return fmt.Errorf("expected ECSTaskSetStatus to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "targetGroup": @@ -13252,7 +13268,7 @@ func awsAwsjson11_deserializeDocumentECSTaskSet(v **types.ECSTaskSet, value inte if err != nil { return err } - sv.TrafficWeight = &f64 + sv.TrafficWeight = f64 } default: @@ -13264,7 +13280,7 @@ func awsAwsjson11_deserializeDocumentECSTaskSet(v **types.ECSTaskSet, value inte return nil } -func awsAwsjson11_deserializeDocumentECSTaskSetList(v *[]*types.ECSTaskSet, value interface{}) error { +func awsAwsjson11_deserializeDocumentECSTaskSetList(v *[]types.ECSTaskSet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13277,18 +13293,20 @@ func awsAwsjson11_deserializeDocumentECSTaskSetList(v *[]*types.ECSTaskSet, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ECSTaskSet + var cv []types.ECSTaskSet if *v == nil { - cv = []*types.ECSTaskSet{} + cv = []types.ECSTaskSet{} } else { cv = *v } for _, value := range shape { - var col *types.ECSTaskSet - if err := awsAwsjson11_deserializeDocumentECSTaskSet(&col, value); err != nil { + var col types.ECSTaskSet + destAddr := &col + if err := awsAwsjson11_deserializeDocumentECSTaskSet(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13324,7 +13342,7 @@ func awsAwsjson11_deserializeDocumentELBInfo(v **types.ELBInfo, value interface{ if !ok { return fmt.Errorf("expected ELBName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -13336,7 +13354,7 @@ func awsAwsjson11_deserializeDocumentELBInfo(v **types.ELBInfo, value interface{ return nil } -func awsAwsjson11_deserializeDocumentELBInfoList(v *[]*types.ELBInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentELBInfoList(v *[]types.ELBInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13349,18 +13367,20 @@ func awsAwsjson11_deserializeDocumentELBInfoList(v *[]*types.ELBInfo, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ELBInfo + var cv []types.ELBInfo if *v == nil { - cv = []*types.ELBInfo{} + cv = []types.ELBInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ELBInfo - if err := awsAwsjson11_deserializeDocumentELBInfo(&col, value); err != nil { + var col types.ELBInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentELBInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13405,7 +13425,7 @@ func awsAwsjson11_deserializeDocumentErrorInformation(v **types.ErrorInformation if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13450,7 +13470,7 @@ func awsAwsjson11_deserializeDocumentGenericRevisionInfo(v **types.GenericRevisi if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "firstUsedTime": @@ -13529,7 +13549,7 @@ func awsAwsjson11_deserializeDocumentGitHubAccountTokenDoesNotExistException(v * if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13541,7 +13561,7 @@ func awsAwsjson11_deserializeDocumentGitHubAccountTokenDoesNotExistException(v * return nil } -func awsAwsjson11_deserializeDocumentGitHubAccountTokenNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentGitHubAccountTokenNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13554,21 +13574,21 @@ func awsAwsjson11_deserializeDocumentGitHubAccountTokenNameList(v *[]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected GitHubAccountTokenName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -13605,7 +13625,7 @@ func awsAwsjson11_deserializeDocumentGitHubAccountTokenNameRequiredException(v * if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13645,7 +13665,7 @@ func awsAwsjson11_deserializeDocumentGitHubLocation(v **types.GitHubLocation, va if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.CommitId = &jtv + sv.CommitId = ptr.String(jtv) } case "repository": @@ -13654,7 +13674,7 @@ func awsAwsjson11_deserializeDocumentGitHubLocation(v **types.GitHubLocation, va if !ok { return fmt.Errorf("expected Repository to be of type string, got %T instead", value) } - sv.Repository = &jtv + sv.Repository = ptr.String(jtv) } default: @@ -13734,7 +13754,7 @@ func awsAwsjson11_deserializeDocumentIamArnRequiredException(v **types.IamArnReq if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13774,7 +13794,7 @@ func awsAwsjson11_deserializeDocumentIamSessionArnAlreadyRegisteredException(v * if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13814,7 +13834,7 @@ func awsAwsjson11_deserializeDocumentIamUserArnAlreadyRegisteredException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13854,7 +13874,7 @@ func awsAwsjson11_deserializeDocumentIamUserArnRequiredException(v **types.IamUs if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13894,7 +13914,7 @@ func awsAwsjson11_deserializeDocumentInstanceDoesNotExistException(v **types.Ins if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13934,7 +13954,7 @@ func awsAwsjson11_deserializeDocumentInstanceIdRequiredException(v **types.Insta if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13987,7 +14007,7 @@ func awsAwsjson11_deserializeDocumentInstanceInfo(v **types.InstanceInfo, value if !ok { return fmt.Errorf("expected IamSessionArn to be of type string, got %T instead", value) } - sv.IamSessionArn = &jtv + sv.IamSessionArn = ptr.String(jtv) } case "iamUserArn": @@ -13996,7 +14016,7 @@ func awsAwsjson11_deserializeDocumentInstanceInfo(v **types.InstanceInfo, value if !ok { return fmt.Errorf("expected IamUserArn to be of type string, got %T instead", value) } - sv.IamUserArn = &jtv + sv.IamUserArn = ptr.String(jtv) } case "instanceArn": @@ -14005,7 +14025,7 @@ func awsAwsjson11_deserializeDocumentInstanceInfo(v **types.InstanceInfo, value if !ok { return fmt.Errorf("expected InstanceArn to be of type string, got %T instead", value) } - sv.InstanceArn = &jtv + sv.InstanceArn = ptr.String(jtv) } case "instanceName": @@ -14014,7 +14034,7 @@ func awsAwsjson11_deserializeDocumentInstanceInfo(v **types.InstanceInfo, value if !ok { return fmt.Errorf("expected InstanceName to be of type string, got %T instead", value) } - sv.InstanceName = &jtv + sv.InstanceName = ptr.String(jtv) } case "registerTime": @@ -14044,7 +14064,7 @@ func awsAwsjson11_deserializeDocumentInstanceInfo(v **types.InstanceInfo, value return nil } -func awsAwsjson11_deserializeDocumentInstanceInfoList(v *[]*types.InstanceInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceInfoList(v *[]types.InstanceInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14057,18 +14077,20 @@ func awsAwsjson11_deserializeDocumentInstanceInfoList(v *[]*types.InstanceInfo, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceInfo + var cv []types.InstanceInfo if *v == nil { - cv = []*types.InstanceInfo{} + cv = []types.InstanceInfo{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceInfo - if err := awsAwsjson11_deserializeDocumentInstanceInfo(&col, value); err != nil { + var col types.InstanceInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14104,7 +14126,7 @@ func awsAwsjson11_deserializeDocumentInstanceLimitExceededException(v **types.In if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14144,7 +14166,7 @@ func awsAwsjson11_deserializeDocumentInstanceNameAlreadyRegisteredException(v ** if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14156,7 +14178,7 @@ func awsAwsjson11_deserializeDocumentInstanceNameAlreadyRegisteredException(v ** return nil } -func awsAwsjson11_deserializeDocumentInstanceNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14169,21 +14191,21 @@ func awsAwsjson11_deserializeDocumentInstanceNameList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected InstanceName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14220,7 +14242,7 @@ func awsAwsjson11_deserializeDocumentInstanceNameRequiredException(v **types.Ins if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14260,7 +14282,7 @@ func awsAwsjson11_deserializeDocumentInstanceNotRegisteredException(v **types.In if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14272,7 +14294,7 @@ func awsAwsjson11_deserializeDocumentInstanceNotRegisteredException(v **types.In return nil } -func awsAwsjson11_deserializeDocumentInstancesList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstancesList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14285,21 +14307,21 @@ func awsAwsjson11_deserializeDocumentInstancesList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14336,7 +14358,7 @@ func awsAwsjson11_deserializeDocumentInstanceSummary(v **types.InstanceSummary, if !ok { return fmt.Errorf("expected DeploymentId to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "instanceId": @@ -14345,7 +14367,7 @@ func awsAwsjson11_deserializeDocumentInstanceSummary(v **types.InstanceSummary, if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "instanceType": @@ -14393,7 +14415,7 @@ func awsAwsjson11_deserializeDocumentInstanceSummary(v **types.InstanceSummary, return nil } -func awsAwsjson11_deserializeDocumentInstanceSummaryList(v *[]*types.InstanceSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceSummaryList(v *[]types.InstanceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14406,18 +14428,20 @@ func awsAwsjson11_deserializeDocumentInstanceSummaryList(v *[]*types.InstanceSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceSummary + var cv []types.InstanceSummary if *v == nil { - cv = []*types.InstanceSummary{} + cv = []types.InstanceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceSummary - if err := awsAwsjson11_deserializeDocumentInstanceSummary(&col, value); err != nil { + var col types.InstanceSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14453,7 +14477,7 @@ func awsAwsjson11_deserializeDocumentInstanceTarget(v **types.InstanceTarget, va if !ok { return fmt.Errorf("expected DeploymentId to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "instanceLabel": @@ -14498,7 +14522,7 @@ func awsAwsjson11_deserializeDocumentInstanceTarget(v **types.InstanceTarget, va if !ok { return fmt.Errorf("expected TargetArn to be of type string, got %T instead", value) } - sv.TargetArn = &jtv + sv.TargetArn = ptr.String(jtv) } case "targetId": @@ -14507,7 +14531,7 @@ func awsAwsjson11_deserializeDocumentInstanceTarget(v **types.InstanceTarget, va if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } default: @@ -14547,7 +14571,7 @@ func awsAwsjson11_deserializeDocumentInvalidAlarmConfigException(v **types.Inval if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14587,7 +14611,7 @@ func awsAwsjson11_deserializeDocumentInvalidApplicationNameException(v **types.I if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14627,7 +14651,7 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14667,7 +14691,7 @@ func awsAwsjson11_deserializeDocumentInvalidAutoRollbackConfigException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14707,7 +14731,7 @@ func awsAwsjson11_deserializeDocumentInvalidAutoScalingGroupException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14747,7 +14771,7 @@ func awsAwsjson11_deserializeDocumentInvalidBlueGreenDeploymentConfigurationExce if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14787,7 +14811,7 @@ func awsAwsjson11_deserializeDocumentInvalidBucketNameFilterException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14827,7 +14851,7 @@ func awsAwsjson11_deserializeDocumentInvalidComputePlatformException(v **types.I if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14867,7 +14891,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeployedStateFilterException(v **typ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14907,7 +14931,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentConfigNameException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14947,7 +14971,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentGroupNameException(v **typ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14987,7 +15011,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentIdException(v **types.Inva if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15027,7 +15051,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentInstanceTypeException(v ** if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15067,7 +15091,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentStatusException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15107,7 +15131,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentStyleException(v **types.I if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15147,7 +15171,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentTargetIdException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15187,7 +15211,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeploymentWaitTypeException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15227,7 +15251,7 @@ func awsAwsjson11_deserializeDocumentInvalidEC2TagCombinationException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15267,7 +15291,7 @@ func awsAwsjson11_deserializeDocumentInvalidEC2TagException(v **types.InvalidEC2 if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15307,7 +15331,7 @@ func awsAwsjson11_deserializeDocumentInvalidECSServiceException(v **types.Invali if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15347,7 +15371,7 @@ func awsAwsjson11_deserializeDocumentInvalidExternalIdException(v **types.Invali if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15387,7 +15411,7 @@ func awsAwsjson11_deserializeDocumentInvalidFileExistsBehaviorException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15427,7 +15451,7 @@ func awsAwsjson11_deserializeDocumentInvalidGitHubAccountTokenException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15467,7 +15491,7 @@ func awsAwsjson11_deserializeDocumentInvalidGitHubAccountTokenNameException(v ** if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15507,7 +15531,7 @@ func awsAwsjson11_deserializeDocumentInvalidIamSessionArnException(v **types.Inv if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15547,7 +15571,7 @@ func awsAwsjson11_deserializeDocumentInvalidIamUserArnException(v **types.Invali if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15587,7 +15611,7 @@ func awsAwsjson11_deserializeDocumentInvalidIgnoreApplicationStopFailuresValueEx if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15627,7 +15651,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15667,7 +15691,7 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceNameException(v **types.Inva if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15707,7 +15731,7 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceStatusException(v **types.In if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15747,7 +15771,7 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceTypeException(v **types.Inva if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15787,7 +15811,7 @@ func awsAwsjson11_deserializeDocumentInvalidKeyPrefixFilterException(v **types.I if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15827,7 +15851,7 @@ func awsAwsjson11_deserializeDocumentInvalidLifecycleEventHookExecutionIdExcepti if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15867,7 +15891,7 @@ func awsAwsjson11_deserializeDocumentInvalidLifecycleEventHookExecutionStatusExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15907,7 +15931,7 @@ func awsAwsjson11_deserializeDocumentInvalidLoadBalancerInfoException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15947,7 +15971,7 @@ func awsAwsjson11_deserializeDocumentInvalidMinimumHealthyHostValueException(v * if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15987,7 +16011,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16027,7 +16051,7 @@ func awsAwsjson11_deserializeDocumentInvalidOnPremisesTagCombinationException(v if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16067,7 +16091,7 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16107,7 +16131,7 @@ func awsAwsjson11_deserializeDocumentInvalidRegistrationStatusException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16147,7 +16171,7 @@ func awsAwsjson11_deserializeDocumentInvalidRevisionException(v **types.InvalidR if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16187,7 +16211,7 @@ func awsAwsjson11_deserializeDocumentInvalidRoleException(v **types.InvalidRoleE if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16227,7 +16251,7 @@ func awsAwsjson11_deserializeDocumentInvalidSortByException(v **types.InvalidSor if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16267,7 +16291,7 @@ func awsAwsjson11_deserializeDocumentInvalidSortOrderException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16307,7 +16331,7 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16347,7 +16371,7 @@ func awsAwsjson11_deserializeDocumentInvalidTagFilterException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16387,7 +16411,7 @@ func awsAwsjson11_deserializeDocumentInvalidTagsToAddException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16427,7 +16451,7 @@ func awsAwsjson11_deserializeDocumentInvalidTargetFilterNameException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16467,7 +16491,7 @@ func awsAwsjson11_deserializeDocumentInvalidTargetGroupPairException(v **types.I if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16507,7 +16531,7 @@ func awsAwsjson11_deserializeDocumentInvalidTargetInstancesException(v **types.I if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16547,7 +16571,7 @@ func awsAwsjson11_deserializeDocumentInvalidTimeRangeException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16587,7 +16611,7 @@ func awsAwsjson11_deserializeDocumentInvalidTrafficRoutingConfigurationException if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16627,7 +16651,7 @@ func awsAwsjson11_deserializeDocumentInvalidTriggerConfigException(v **types.Inv if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16667,7 +16691,7 @@ func awsAwsjson11_deserializeDocumentInvalidUpdateOutdatedInstancesOnlyValueExce if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16707,7 +16731,7 @@ func awsAwsjson11_deserializeDocumentLambdaFunctionInfo(v **types.LambdaFunction if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.CurrentVersion = &jtv + sv.CurrentVersion = ptr.String(jtv) } case "functionAlias": @@ -16716,7 +16740,7 @@ func awsAwsjson11_deserializeDocumentLambdaFunctionInfo(v **types.LambdaFunction if !ok { return fmt.Errorf("expected LambdaFunctionAlias to be of type string, got %T instead", value) } - sv.FunctionAlias = &jtv + sv.FunctionAlias = ptr.String(jtv) } case "functionName": @@ -16725,7 +16749,7 @@ func awsAwsjson11_deserializeDocumentLambdaFunctionInfo(v **types.LambdaFunction if !ok { return fmt.Errorf("expected LambdaFunctionName to be of type string, got %T instead", value) } - sv.FunctionName = &jtv + sv.FunctionName = ptr.String(jtv) } case "targetVersion": @@ -16734,7 +16758,7 @@ func awsAwsjson11_deserializeDocumentLambdaFunctionInfo(v **types.LambdaFunction if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.TargetVersion = &jtv + sv.TargetVersion = ptr.String(jtv) } case "targetVersionWeight": @@ -16747,7 +16771,7 @@ func awsAwsjson11_deserializeDocumentLambdaFunctionInfo(v **types.LambdaFunction if err != nil { return err } - sv.TargetVersionWeight = &f64 + sv.TargetVersionWeight = f64 } default: @@ -16787,7 +16811,7 @@ func awsAwsjson11_deserializeDocumentLambdaTarget(v **types.LambdaTarget, value if !ok { return fmt.Errorf("expected DeploymentId to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "lambdaFunctionInfo": @@ -16828,7 +16852,7 @@ func awsAwsjson11_deserializeDocumentLambdaTarget(v **types.LambdaTarget, value if !ok { return fmt.Errorf("expected TargetArn to be of type string, got %T instead", value) } - sv.TargetArn = &jtv + sv.TargetArn = ptr.String(jtv) } case "targetId": @@ -16837,7 +16861,7 @@ func awsAwsjson11_deserializeDocumentLambdaTarget(v **types.LambdaTarget, value if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } default: @@ -16890,7 +16914,7 @@ func awsAwsjson11_deserializeDocumentLastDeploymentInfo(v **types.LastDeployment if !ok { return fmt.Errorf("expected DeploymentId to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "endTime": @@ -16970,7 +16994,7 @@ func awsAwsjson11_deserializeDocumentLifecycleEvent(v **types.LifecycleEvent, va if !ok { return fmt.Errorf("expected LifecycleEventName to be of type string, got %T instead", value) } - sv.LifecycleEventName = &jtv + sv.LifecycleEventName = ptr.String(jtv) } case "startTime": @@ -17032,7 +17056,7 @@ func awsAwsjson11_deserializeDocumentLifecycleEventAlreadyCompletedException(v * if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17044,7 +17068,7 @@ func awsAwsjson11_deserializeDocumentLifecycleEventAlreadyCompletedException(v * return nil } -func awsAwsjson11_deserializeDocumentLifecycleEventList(v *[]*types.LifecycleEvent, value interface{}) error { +func awsAwsjson11_deserializeDocumentLifecycleEventList(v *[]types.LifecycleEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17057,18 +17081,20 @@ func awsAwsjson11_deserializeDocumentLifecycleEventList(v *[]*types.LifecycleEve return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LifecycleEvent + var cv []types.LifecycleEvent if *v == nil { - cv = []*types.LifecycleEvent{} + cv = []types.LifecycleEvent{} } else { cv = *v } for _, value := range shape { - var col *types.LifecycleEvent - if err := awsAwsjson11_deserializeDocumentLifecycleEvent(&col, value); err != nil { + var col types.LifecycleEvent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLifecycleEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17104,7 +17130,7 @@ func awsAwsjson11_deserializeDocumentLifecycleHookLimitExceededException(v **typ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17116,7 +17142,7 @@ func awsAwsjson11_deserializeDocumentLifecycleHookLimitExceededException(v **typ return nil } -func awsAwsjson11_deserializeDocumentListenerArnList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentListenerArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17129,21 +17155,21 @@ func awsAwsjson11_deserializeDocumentListenerArnList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ListenerArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -17239,7 +17265,7 @@ func awsAwsjson11_deserializeDocumentMinimumHealthyHosts(v **types.MinimumHealth if err != nil { return err } - sv.Value = ptr.Int32(int32(i64)) + sv.Value = int32(i64) } default: @@ -17279,7 +17305,7 @@ func awsAwsjson11_deserializeDocumentMultipleIamArnsProvidedException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17327,7 +17353,7 @@ func awsAwsjson11_deserializeDocumentOnPremisesTagSet(v **types.OnPremisesTagSet return nil } -func awsAwsjson11_deserializeDocumentOnPremisesTagSetList(v *[][]*types.TagFilter, value interface{}) error { +func awsAwsjson11_deserializeDocumentOnPremisesTagSetList(v *[][]types.TagFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17340,15 +17366,15 @@ func awsAwsjson11_deserializeDocumentOnPremisesTagSetList(v *[][]*types.TagFilte return fmt.Errorf("unexpected JSON type %v", value) } - var cv [][]*types.TagFilter + var cv [][]types.TagFilter if *v == nil { - cv = [][]*types.TagFilter{} + cv = [][]types.TagFilter{} } else { cv = *v } for _, value := range shape { - var col []*types.TagFilter + var col []types.TagFilter if err := awsAwsjson11_deserializeDocumentTagFilterList(&col, value); err != nil { return err } @@ -17387,7 +17413,7 @@ func awsAwsjson11_deserializeDocumentOperationNotSupportedException(v **types.Op if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17427,7 +17453,7 @@ func awsAwsjson11_deserializeDocumentRawString(v **types.RawString, value interf if !ok { return fmt.Errorf("expected RawStringContent to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "sha256": @@ -17436,7 +17462,7 @@ func awsAwsjson11_deserializeDocumentRawString(v **types.RawString, value interf if !ok { return fmt.Errorf("expected RawStringSha256 to be of type string, got %T instead", value) } - sv.Sha256 = &jtv + sv.Sha256 = ptr.String(jtv) } default: @@ -17476,7 +17502,7 @@ func awsAwsjson11_deserializeDocumentResourceArnRequiredException(v **types.Reso if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17516,7 +17542,7 @@ func awsAwsjson11_deserializeDocumentResourceValidationException(v **types.Resou if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17556,7 +17582,7 @@ func awsAwsjson11_deserializeDocumentRevisionDoesNotExistException(v **types.Rev if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17609,7 +17635,7 @@ func awsAwsjson11_deserializeDocumentRevisionInfo(v **types.RevisionInfo, value return nil } -func awsAwsjson11_deserializeDocumentRevisionInfoList(v *[]*types.RevisionInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentRevisionInfoList(v *[]types.RevisionInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17622,18 +17648,20 @@ func awsAwsjson11_deserializeDocumentRevisionInfoList(v *[]*types.RevisionInfo, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RevisionInfo + var cv []types.RevisionInfo if *v == nil { - cv = []*types.RevisionInfo{} + cv = []types.RevisionInfo{} } else { cv = *v } for _, value := range shape { - var col *types.RevisionInfo - if err := awsAwsjson11_deserializeDocumentRevisionInfo(&col, value); err != nil { + var col types.RevisionInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRevisionInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17701,7 +17729,7 @@ func awsAwsjson11_deserializeDocumentRevisionLocation(v **types.RevisionLocation return nil } -func awsAwsjson11_deserializeDocumentRevisionLocationList(v *[]*types.RevisionLocation, value interface{}) error { +func awsAwsjson11_deserializeDocumentRevisionLocationList(v *[]types.RevisionLocation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17714,18 +17742,20 @@ func awsAwsjson11_deserializeDocumentRevisionLocationList(v *[]*types.RevisionLo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RevisionLocation + var cv []types.RevisionLocation if *v == nil { - cv = []*types.RevisionLocation{} + cv = []types.RevisionLocation{} } else { cv = *v } for _, value := range shape { - var col *types.RevisionLocation - if err := awsAwsjson11_deserializeDocumentRevisionLocation(&col, value); err != nil { + var col types.RevisionLocation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRevisionLocation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17761,7 +17791,7 @@ func awsAwsjson11_deserializeDocumentRevisionRequiredException(v **types.Revisio if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17801,7 +17831,7 @@ func awsAwsjson11_deserializeDocumentRoleRequiredException(v **types.RoleRequire if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17841,7 +17871,7 @@ func awsAwsjson11_deserializeDocumentRollbackInfo(v **types.RollbackInfo, value if !ok { return fmt.Errorf("expected DeploymentId to be of type string, got %T instead", value) } - sv.RollbackDeploymentId = &jtv + sv.RollbackDeploymentId = ptr.String(jtv) } case "rollbackMessage": @@ -17850,7 +17880,7 @@ func awsAwsjson11_deserializeDocumentRollbackInfo(v **types.RollbackInfo, value if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.RollbackMessage = &jtv + sv.RollbackMessage = ptr.String(jtv) } case "rollbackTriggeringDeploymentId": @@ -17859,7 +17889,7 @@ func awsAwsjson11_deserializeDocumentRollbackInfo(v **types.RollbackInfo, value if !ok { return fmt.Errorf("expected DeploymentId to be of type string, got %T instead", value) } - sv.RollbackTriggeringDeploymentId = &jtv + sv.RollbackTriggeringDeploymentId = ptr.String(jtv) } default: @@ -17899,7 +17929,7 @@ func awsAwsjson11_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "bundleType": @@ -17917,7 +17947,7 @@ func awsAwsjson11_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected ETag to be of type string, got %T instead", value) } - sv.ETag = &jtv + sv.ETag = ptr.String(jtv) } case "key": @@ -17926,7 +17956,7 @@ func awsAwsjson11_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "version": @@ -17935,7 +17965,7 @@ func awsAwsjson11_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected VersionId to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -17975,7 +18005,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected Key to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -17984,7 +18014,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -18024,7 +18054,7 @@ func awsAwsjson11_deserializeDocumentTagFilter(v **types.TagFilter, value interf if !ok { return fmt.Errorf("expected Key to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Type": @@ -18042,7 +18072,7 @@ func awsAwsjson11_deserializeDocumentTagFilter(v **types.TagFilter, value interf if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -18054,7 +18084,7 @@ func awsAwsjson11_deserializeDocumentTagFilter(v **types.TagFilter, value interf return nil } -func awsAwsjson11_deserializeDocumentTagFilterList(v *[]*types.TagFilter, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagFilterList(v *[]types.TagFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18067,18 +18097,20 @@ func awsAwsjson11_deserializeDocumentTagFilterList(v *[]*types.TagFilter, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TagFilter + var cv []types.TagFilter if *v == nil { - cv = []*types.TagFilter{} + cv = []types.TagFilter{} } else { cv = *v } for _, value := range shape { - var col *types.TagFilter - if err := awsAwsjson11_deserializeDocumentTagFilter(&col, value); err != nil { + var col types.TagFilter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTagFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18114,7 +18146,7 @@ func awsAwsjson11_deserializeDocumentTagLimitExceededException(v **types.TagLimi if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18126,7 +18158,7 @@ func awsAwsjson11_deserializeDocumentTagLimitExceededException(v **types.TagLimi return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18139,18 +18171,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18186,7 +18220,7 @@ func awsAwsjson11_deserializeDocumentTagRequiredException(v **types.TagRequiredE if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18226,7 +18260,7 @@ func awsAwsjson11_deserializeDocumentTagSetListLimitExceededException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18266,7 +18300,7 @@ func awsAwsjson11_deserializeDocumentTargetGroupInfo(v **types.TargetGroupInfo, if !ok { return fmt.Errorf("expected TargetGroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -18278,7 +18312,7 @@ func awsAwsjson11_deserializeDocumentTargetGroupInfo(v **types.TargetGroupInfo, return nil } -func awsAwsjson11_deserializeDocumentTargetGroupInfoList(v *[]*types.TargetGroupInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetGroupInfoList(v *[]types.TargetGroupInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18291,18 +18325,20 @@ func awsAwsjson11_deserializeDocumentTargetGroupInfoList(v *[]*types.TargetGroup return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TargetGroupInfo + var cv []types.TargetGroupInfo if *v == nil { - cv = []*types.TargetGroupInfo{} + cv = []types.TargetGroupInfo{} } else { cv = *v } for _, value := range shape { - var col *types.TargetGroupInfo - if err := awsAwsjson11_deserializeDocumentTargetGroupInfo(&col, value); err != nil { + var col types.TargetGroupInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTargetGroupInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18356,7 +18392,7 @@ func awsAwsjson11_deserializeDocumentTargetGroupPairInfo(v **types.TargetGroupPa return nil } -func awsAwsjson11_deserializeDocumentTargetGroupPairInfoList(v *[]*types.TargetGroupPairInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetGroupPairInfoList(v *[]types.TargetGroupPairInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18369,18 +18405,20 @@ func awsAwsjson11_deserializeDocumentTargetGroupPairInfoList(v *[]*types.TargetG return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TargetGroupPairInfo + var cv []types.TargetGroupPairInfo if *v == nil { - cv = []*types.TargetGroupPairInfo{} + cv = []types.TargetGroupPairInfo{} } else { cv = *v } for _, value := range shape { - var col *types.TargetGroupPairInfo - if err := awsAwsjson11_deserializeDocumentTargetGroupPairInfo(&col, value); err != nil { + var col types.TargetGroupPairInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTargetGroupPairInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18388,7 +18426,7 @@ func awsAwsjson11_deserializeDocumentTargetGroupPairInfoList(v *[]*types.TargetG return nil } -func awsAwsjson11_deserializeDocumentTargetIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18401,21 +18439,21 @@ func awsAwsjson11_deserializeDocumentTargetIdList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -18498,7 +18536,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18542,7 +18580,7 @@ func awsAwsjson11_deserializeDocumentTimeBasedCanary(v **types.TimeBasedCanary, if err != nil { return err } - sv.CanaryInterval = ptr.Int32(int32(i64)) + sv.CanaryInterval = int32(i64) } case "canaryPercentage": @@ -18555,7 +18593,7 @@ func awsAwsjson11_deserializeDocumentTimeBasedCanary(v **types.TimeBasedCanary, if err != nil { return err } - sv.CanaryPercentage = ptr.Int32(int32(i64)) + sv.CanaryPercentage = int32(i64) } default: @@ -18599,7 +18637,7 @@ func awsAwsjson11_deserializeDocumentTimeBasedLinear(v **types.TimeBasedLinear, if err != nil { return err } - sv.LinearInterval = ptr.Int32(int32(i64)) + sv.LinearInterval = int32(i64) } case "linearPercentage": @@ -18612,7 +18650,7 @@ func awsAwsjson11_deserializeDocumentTimeBasedLinear(v **types.TimeBasedLinear, if err != nil { return err } - sv.LinearPercentage = ptr.Int32(int32(i64)) + sv.LinearPercentage = int32(i64) } default: @@ -18743,7 +18781,7 @@ func awsAwsjson11_deserializeDocumentTriggerConfig(v **types.TriggerConfig, valu if !ok { return fmt.Errorf("expected TriggerName to be of type string, got %T instead", value) } - sv.TriggerName = &jtv + sv.TriggerName = ptr.String(jtv) } case "triggerTargetArn": @@ -18752,7 +18790,7 @@ func awsAwsjson11_deserializeDocumentTriggerConfig(v **types.TriggerConfig, valu if !ok { return fmt.Errorf("expected TriggerTargetArn to be of type string, got %T instead", value) } - sv.TriggerTargetArn = &jtv + sv.TriggerTargetArn = ptr.String(jtv) } default: @@ -18764,7 +18802,7 @@ func awsAwsjson11_deserializeDocumentTriggerConfig(v **types.TriggerConfig, valu return nil } -func awsAwsjson11_deserializeDocumentTriggerConfigList(v *[]*types.TriggerConfig, value interface{}) error { +func awsAwsjson11_deserializeDocumentTriggerConfigList(v *[]types.TriggerConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18777,18 +18815,20 @@ func awsAwsjson11_deserializeDocumentTriggerConfigList(v *[]*types.TriggerConfig return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TriggerConfig + var cv []types.TriggerConfig if *v == nil { - cv = []*types.TriggerConfig{} + cv = []types.TriggerConfig{} } else { cv = *v } for _, value := range shape { - var col *types.TriggerConfig - if err := awsAwsjson11_deserializeDocumentTriggerConfig(&col, value); err != nil { + var col types.TriggerConfig + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTriggerConfig(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18860,7 +18900,7 @@ func awsAwsjson11_deserializeDocumentTriggerTargetsLimitExceededException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18900,7 +18940,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedActionForDeploymentTypeException if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18971,7 +19011,7 @@ func awsAwsjson11_deserializeOpDocumentBatchGetApplicationRevisionsOutput(v **Ba if !ok { return fmt.Errorf("expected ApplicationName to be of type string, got %T instead", value) } - sv.ApplicationName = &jtv + sv.ApplicationName = ptr.String(jtv) } case "errorMessage": @@ -18980,7 +19020,7 @@ func awsAwsjson11_deserializeOpDocumentBatchGetApplicationRevisionsOutput(v **Ba if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "revisions": @@ -19066,7 +19106,7 @@ func awsAwsjson11_deserializeOpDocumentBatchGetDeploymentGroupsOutput(v **BatchG if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -19106,7 +19146,7 @@ func awsAwsjson11_deserializeOpDocumentBatchGetDeploymentInstancesOutput(v **Bat if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "instancesSummary": @@ -19290,7 +19330,7 @@ func awsAwsjson11_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected ApplicationId to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } default: @@ -19330,7 +19370,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDeploymentConfigOutput(v **CreateDe if !ok { return fmt.Errorf("expected DeploymentConfigId to be of type string, got %T instead", value) } - sv.DeploymentConfigId = &jtv + sv.DeploymentConfigId = ptr.String(jtv) } default: @@ -19370,7 +19410,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDeploymentGroupOutput(v **CreateDep if !ok { return fmt.Errorf("expected DeploymentGroupId to be of type string, got %T instead", value) } - sv.DeploymentGroupId = &jtv + sv.DeploymentGroupId = ptr.String(jtv) } default: @@ -19410,7 +19450,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if !ok { return fmt.Errorf("expected DeploymentId to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } default: @@ -19548,7 +19588,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteGitHubAccountTokenOutput(v **Delete if !ok { return fmt.Errorf("expected GitHubAccountTokenName to be of type string, got %T instead", value) } - sv.TokenName = &jtv + sv.TokenName = ptr.String(jtv) } default: @@ -19686,7 +19726,7 @@ func awsAwsjson11_deserializeOpDocumentGetApplicationRevisionOutput(v **GetAppli if !ok { return fmt.Errorf("expected ApplicationName to be of type string, got %T instead", value) } - sv.ApplicationName = &jtv + sv.ApplicationName = ptr.String(jtv) } case "revision": @@ -19952,7 +19992,7 @@ func awsAwsjson11_deserializeOpDocumentListApplicationRevisionsOutput(v **ListAp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "revisions": @@ -20002,7 +20042,7 @@ func awsAwsjson11_deserializeOpDocumentListApplicationsOutput(v **ListApplicatio if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20047,7 +20087,7 @@ func awsAwsjson11_deserializeOpDocumentListDeploymentConfigsOutput(v **ListDeplo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20087,7 +20127,7 @@ func awsAwsjson11_deserializeOpDocumentListDeploymentGroupsOutput(v **ListDeploy if !ok { return fmt.Errorf("expected ApplicationName to be of type string, got %T instead", value) } - sv.ApplicationName = &jtv + sv.ApplicationName = ptr.String(jtv) } case "deploymentGroups": @@ -20101,7 +20141,7 @@ func awsAwsjson11_deserializeOpDocumentListDeploymentGroupsOutput(v **ListDeploy if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20146,7 +20186,7 @@ func awsAwsjson11_deserializeOpDocumentListDeploymentInstancesOutput(v **ListDep if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20191,7 +20231,7 @@ func awsAwsjson11_deserializeOpDocumentListDeploymentsOutput(v **ListDeployments if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20231,7 +20271,7 @@ func awsAwsjson11_deserializeOpDocumentListDeploymentTargetsOutput(v **ListDeplo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "targetIds": @@ -20276,7 +20316,7 @@ func awsAwsjson11_deserializeOpDocumentListGitHubAccountTokenNamesOutput(v **Lis if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tokenNameList": @@ -20326,7 +20366,7 @@ func awsAwsjson11_deserializeOpDocumentListOnPremisesInstancesOutput(v **ListOnP if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20366,7 +20406,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -20411,7 +20451,7 @@ func awsAwsjson11_deserializeOpDocumentPutLifecycleEventHookExecutionStatusOutpu if !ok { return fmt.Errorf("expected LifecycleEventHookExecutionId to be of type string, got %T instead", value) } - sv.LifecycleEventHookExecutionId = &jtv + sv.LifecycleEventHookExecutionId = ptr.String(jtv) } default: @@ -20584,7 +20624,7 @@ func awsAwsjson11_deserializeOpDocumentStopDeploymentOutput(v **StopDeploymentOu if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } default: diff --git a/service/codedeploy/go.mod b/service/codedeploy/go.mod index 7362466fc1e..3a3466bcf07 100644 --- a/service/codedeploy/go.mod +++ b/service/codedeploy/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/codedeploy go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/codedeploy/serializers.go b/service/codedeploy/serializers.go index 74cbf6d00b1..54e0abc3df1 100644 --- a/service/codedeploy/serializers.go +++ b/service/codedeploy/serializers.go @@ -2199,47 +2199,39 @@ func awsAwsjson11_serializeDocumentAlarmConfiguration(v *types.AlarmConfiguratio } } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } - if v.IgnorePollAlarmFailure != nil { + if v.IgnorePollAlarmFailure { ok := object.Key("ignorePollAlarmFailure") - ok.Boolean(*v.IgnorePollAlarmFailure) + ok.Boolean(v.IgnorePollAlarmFailure) } return nil } -func awsAwsjson11_serializeDocumentAlarmList(v []*types.Alarm, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAlarmList(v []types.Alarm, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAlarm(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAlarm(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentApplicationsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentApplicationsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2265,9 +2257,9 @@ func awsAwsjson11_serializeDocumentAutoRollbackConfiguration(v *types.AutoRollba object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.Events != nil { @@ -2291,17 +2283,13 @@ func awsAwsjson11_serializeDocumentAutoRollbackEventsList(v []types.AutoRollback return nil } -func awsAwsjson11_serializeDocumentAutoScalingGroupNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAutoScalingGroupNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2343,25 +2331,21 @@ func awsAwsjson11_serializeDocumentBlueInstanceTerminationOption(v *types.BlueIn ok.String(string(v.Action)) } - if v.TerminationWaitTimeInMinutes != nil { + if v.TerminationWaitTimeInMinutes != 0 { ok := object.Key("terminationWaitTimeInMinutes") - ok.Integer(*v.TerminationWaitTimeInMinutes) + ok.Integer(v.TerminationWaitTimeInMinutes) } return nil } -func awsAwsjson11_serializeDocumentDeploymentGroupsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDeploymentGroupsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2375,25 +2359,21 @@ func awsAwsjson11_serializeDocumentDeploymentReadyOption(v *types.DeploymentRead ok.String(string(v.ActionOnTimeout)) } - if v.WaitTimeInMinutes != nil { + if v.WaitTimeInMinutes != 0 { ok := object.Key("waitTimeInMinutes") - ok.Integer(*v.WaitTimeInMinutes) + ok.Integer(v.WaitTimeInMinutes) } return nil } -func awsAwsjson11_serializeDocumentDeploymentsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDeploymentsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2448,17 +2428,13 @@ func awsAwsjson11_serializeDocumentEC2TagFilter(v *types.EC2TagFilter, value smi return nil } -func awsAwsjson11_serializeDocumentEC2TagFilterList(v []*types.EC2TagFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEC2TagFilterList(v []types.EC2TagFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEC2TagFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEC2TagFilter(&v[i], av); err != nil { return err } } @@ -2479,14 +2455,13 @@ func awsAwsjson11_serializeDocumentEC2TagSet(v *types.EC2TagSet, value smithyjso return nil } -func awsAwsjson11_serializeDocumentEC2TagSetList(v [][]*types.EC2TagFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEC2TagSetList(v [][]types.EC2TagFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsAwsjson11_serializeDocumentEC2TagFilterList(v[i], av); err != nil { @@ -2513,17 +2488,13 @@ func awsAwsjson11_serializeDocumentECSService(v *types.ECSService, value smithyj return nil } -func awsAwsjson11_serializeDocumentECSServiceList(v []*types.ECSService, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentECSServiceList(v []types.ECSService, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentECSService(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentECSService(&v[i], av); err != nil { return err } } @@ -2542,34 +2513,26 @@ func awsAwsjson11_serializeDocumentELBInfo(v *types.ELBInfo, value smithyjson.Va return nil } -func awsAwsjson11_serializeDocumentELBInfoList(v []*types.ELBInfo, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentELBInfoList(v []types.ELBInfo, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentELBInfo(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentELBInfo(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentFilterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2603,32 +2566,24 @@ func awsAwsjson11_serializeDocumentGreenFleetProvisioningOption(v *types.GreenFl return nil } -func awsAwsjson11_serializeDocumentInstanceNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentInstancesList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstancesList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2655,17 +2610,13 @@ func awsAwsjson11_serializeDocumentInstanceTypeList(v []types.InstanceType, valu return nil } -func awsAwsjson11_serializeDocumentListenerArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentListenerArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2707,9 +2658,9 @@ func awsAwsjson11_serializeDocumentMinimumHealthyHosts(v *types.MinimumHealthyHo ok.String(string(v.Type)) } - if v.Value != nil { + if v.Value != 0 { ok := object.Key("value") - ok.Integer(*v.Value) + ok.Integer(v.Value) } return nil @@ -2729,14 +2680,13 @@ func awsAwsjson11_serializeDocumentOnPremisesTagSet(v *types.OnPremisesTagSet, v return nil } -func awsAwsjson11_serializeDocumentOnPremisesTagSetList(v [][]*types.TagFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOnPremisesTagSetList(v [][]types.TagFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsAwsjson11_serializeDocumentTagFilterList(v[i], av); err != nil { @@ -2803,17 +2753,13 @@ func awsAwsjson11_serializeDocumentRevisionLocation(v *types.RevisionLocation, v return nil } -func awsAwsjson11_serializeDocumentRevisionLocationList(v []*types.RevisionLocation, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRevisionLocationList(v []types.RevisionLocation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRevisionLocation(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRevisionLocation(&v[i], av); err != nil { return err } } @@ -2891,63 +2837,50 @@ func awsAwsjson11_serializeDocumentTagFilter(v *types.TagFilter, value smithyjso return nil } -func awsAwsjson11_serializeDocumentTagFilterList(v []*types.TagFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagFilterList(v []types.TagFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTagFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTagFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTargetFilters(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetFilters(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentFilterValueList(v[key], om); err != nil { @@ -2969,17 +2902,13 @@ func awsAwsjson11_serializeDocumentTargetGroupInfo(v *types.TargetGroupInfo, val return nil } -func awsAwsjson11_serializeDocumentTargetGroupInfoList(v []*types.TargetGroupInfo, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetGroupInfoList(v []types.TargetGroupInfo, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTargetGroupInfo(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTargetGroupInfo(&v[i], av); err != nil { return err } } @@ -3014,34 +2943,26 @@ func awsAwsjson11_serializeDocumentTargetGroupPairInfo(v *types.TargetGroupPairI return nil } -func awsAwsjson11_serializeDocumentTargetGroupPairInfoList(v []*types.TargetGroupPairInfo, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetGroupPairInfoList(v []types.TargetGroupPairInfo, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTargetGroupPairInfo(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTargetGroupPairInfo(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTargetIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3078,14 +2999,14 @@ func awsAwsjson11_serializeDocumentTimeBasedCanary(v *types.TimeBasedCanary, val object := value.Object() defer object.Close() - if v.CanaryInterval != nil { + if v.CanaryInterval != 0 { ok := object.Key("canaryInterval") - ok.Integer(*v.CanaryInterval) + ok.Integer(v.CanaryInterval) } - if v.CanaryPercentage != nil { + if v.CanaryPercentage != 0 { ok := object.Key("canaryPercentage") - ok.Integer(*v.CanaryPercentage) + ok.Integer(v.CanaryPercentage) } return nil @@ -3095,14 +3016,14 @@ func awsAwsjson11_serializeDocumentTimeBasedLinear(v *types.TimeBasedLinear, val object := value.Object() defer object.Close() - if v.LinearInterval != nil { + if v.LinearInterval != 0 { ok := object.Key("linearInterval") - ok.Integer(*v.LinearInterval) + ok.Integer(v.LinearInterval) } - if v.LinearPercentage != nil { + if v.LinearPercentage != 0 { ok := object.Key("linearPercentage") - ok.Integer(*v.LinearPercentage) + ok.Integer(v.LinearPercentage) } return nil @@ -3189,17 +3110,13 @@ func awsAwsjson11_serializeDocumentTriggerConfig(v *types.TriggerConfig, value s return nil } -func awsAwsjson11_serializeDocumentTriggerConfigList(v []*types.TriggerConfig, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTriggerConfigList(v []types.TriggerConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTriggerConfig(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTriggerConfig(&v[i], av); err != nil { return err } } @@ -3582,9 +3499,9 @@ func awsAwsjson11_serializeOpDocumentCreateDeploymentInput(v *CreateDeploymentIn ok.String(string(v.FileExistsBehavior)) } - if v.IgnoreApplicationStopFailures != nil { + if v.IgnoreApplicationStopFailures { ok := object.Key("ignoreApplicationStopFailures") - ok.Boolean(*v.IgnoreApplicationStopFailures) + ok.Boolean(v.IgnoreApplicationStopFailures) } if v.Revision != nil { @@ -3601,9 +3518,9 @@ func awsAwsjson11_serializeOpDocumentCreateDeploymentInput(v *CreateDeploymentIn } } - if v.UpdateOutdatedInstancesOnly != nil { + if v.UpdateOutdatedInstancesOnly { ok := object.Key("updateOutdatedInstancesOnly") - ok.Boolean(*v.UpdateOutdatedInstancesOnly) + ok.Boolean(v.UpdateOutdatedInstancesOnly) } return nil diff --git a/service/codedeploy/types/types.go b/service/codedeploy/types/types.go index 7f7760be29c..979631743d3 100644 --- a/service/codedeploy/types/types.go +++ b/service/codedeploy/types/types.go @@ -19,10 +19,10 @@ type AlarmConfiguration struct { // A list of alarms configured for the deployment group. A maximum of 10 alarms can // be added to a deployment group. - Alarms []*Alarm + Alarms []Alarm // Indicates whether the alarm configuration is enabled. - Enabled *bool + Enabled bool // Indicates whether a deployment should continue if information about the current // state of alarms cannot be retrieved from Amazon CloudWatch. The default value is @@ -33,7 +33,7 @@ type AlarmConfiguration struct { // // * false: The deployment stops if alarm // status information can't be retrieved from Amazon CloudWatch. - IgnorePollAlarmFailure *bool + IgnorePollAlarmFailure bool } // Information about an application. @@ -57,7 +57,7 @@ type ApplicationInfo struct { // True if the user has authenticated with GitHub for the specified application. // Otherwise, false. - LinkedToGitHub *bool + LinkedToGitHub bool } // A revision for an AWS Lambda or Amazon ECS deployment that is a YAML-formatted @@ -88,7 +88,7 @@ type AutoRollbackConfiguration struct { // Indicates whether a defined automatic rollback configuration is currently // enabled. - Enabled *bool + Enabled bool // The event type or types that trigger a rollback. Events []AutoRollbackEvent @@ -141,7 +141,7 @@ type BlueInstanceTerminationOption struct { // the original (blue) task set. During an Amazon ECS deployment, CodeDeploy shifts // traffic from the original (blue) task set to a replacement (green) task set. The // maximum setting is 2880 minutes (2 days). - TerminationWaitTimeInMinutes *int32 + TerminationWaitTimeInMinutes int32 } // Information about the target to be updated by an AWS CloudFormation blue/green @@ -158,7 +158,7 @@ type CloudFormationTarget struct { // The lifecycle events of the AWS CloudFormation blue/green deployment to this // target application. - LifecycleEvents []*LifecycleEvent + LifecycleEvents []LifecycleEvent // The resource type for the AWS CloudFormation blue/green deployment. ResourceType *string @@ -171,7 +171,7 @@ type CloudFormationTarget struct { // The percentage of production traffic that the target version of an AWS // CloudFormation blue/green deployment receives. - TargetVersionWeight *float64 + TargetVersionWeight float64 } // Information about a deployment configuration. @@ -211,7 +211,7 @@ type DeploymentGroupInfo struct { AutoRollbackConfiguration *AutoRollbackConfiguration // A list of associated Auto Scaling groups. - AutoScalingGroups []*AutoScalingGroup + AutoScalingGroups []AutoScalingGroup // Information about blue/green deployment options for a deployment group. BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration @@ -234,7 +234,7 @@ type DeploymentGroupInfo struct { // The Amazon EC2 tags on which to filter. The deployment group includes EC2 // instances with any of the specified tags. - Ec2TagFilters []*EC2TagFilter + Ec2TagFilters []EC2TagFilter // Information about groups of tags applied to an EC2 instance. The deployment // group includes only EC2 instances identified by all of the tag groups. Cannot be @@ -245,7 +245,7 @@ type DeploymentGroupInfo struct { // deployment groups that use the Amazon ECS compute platform. A target Amazon ECS // service is specified as an Amazon ECS cluster and service name pair using the // format :. - EcsServices []*ECSService + EcsServices []ECSService // Information about the most recent attempted deployment to the deployment group. LastAttemptedDeployment *LastDeploymentInfo @@ -258,7 +258,7 @@ type DeploymentGroupInfo struct { // The on-premises instance tags on which to filter. The deployment group includes // on-premises instances with any of the specified tags. - OnPremisesInstanceTagFilters []*TagFilter + OnPremisesInstanceTagFilters []TagFilter // Information about groups of tags applied to an on-premises instance. The // deployment group includes only on-premises instances identified by all the tag @@ -277,7 +277,7 @@ type DeploymentGroupInfo struct { TargetRevision *RevisionLocation // Information about triggers associated with the deployment group. - TriggerConfigurations []*TriggerConfig + TriggerConfigurations []TriggerConfig } // Information about a deployment. @@ -331,7 +331,7 @@ type DeploymentInfo struct { DeploymentOverview *DeploymentOverview // Messages that contain information about the status of a deployment. - DeploymentStatusMessages []*string + DeploymentStatusMessages []string // Information about the type of deployment, either in-place or blue/green, you // want to run and whether to route deployment traffic behind a load balancer. @@ -381,12 +381,12 @@ type DeploymentInfo struct { // new deployment and use ignoreApplicationStopFailures to specify that the // ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic failures should be // ignored. - IgnoreApplicationStopFailures *bool + IgnoreApplicationStopFailures bool // Indicates whether the wait period set for the termination of instances in the // original environment has started. Status is 'false' if the KEEP_ALIVE option is // specified. Otherwise, 'true' as soon as the termination wait period starts. - InstanceTerminationWaitTimeStarted *bool + InstanceTerminationWaitTimeStarted bool // Information about the load balancer used in the deployment. LoadBalancerInfo *LoadBalancerInfo @@ -417,31 +417,31 @@ type DeploymentInfo struct { // Indicates whether only instances that are not running the latest application // revision are to be deployed to. - UpdateOutdatedInstancesOnly *bool + UpdateOutdatedInstancesOnly bool } // Information about the deployment status of the instances in the deployment. type DeploymentOverview struct { // The number of instances in the deployment in a failed state. - Failed *int64 + Failed int64 // The number of instances in which the deployment is in progress. - InProgress *int64 + InProgress int64 // The number of instances in the deployment in a pending state. - Pending *int64 + Pending int64 // The number of instances in a replacement environment ready to receive traffic in // a blue/green deployment. - Ready *int64 + Ready int64 // The number of instances in the deployment in a skipped state. - Skipped *int64 + Skipped int64 // The number of instances in the deployment to which revisions have been // successfully deployed. - Succeeded *int64 + Succeeded int64 } // Information about how traffic is rerouted to instances in a replacement @@ -465,7 +465,7 @@ type DeploymentReadyOption struct { // The number of minutes to wait before the status of a blue/green deployment is // changed to Stopped if rerouting is not started manually. Applies only to the // STOP_DEPLOYMENT option for actionOnTimeout. - WaitTimeInMinutes *int32 + WaitTimeInMinutes int32 } // Information about the type of deployment, either in-place or blue/green, you @@ -565,7 +565,7 @@ type EC2TagSet struct { // A list that contains other lists of EC2 instance tag groups. For an instance to // be included in the deployment group, it must be identified by all of the tag // groups in the list. - Ec2TagSetList [][]*EC2TagFilter + Ec2TagSetList [][]EC2TagFilter } // Contains the service and cluster names used to identify an Amazon ECS @@ -590,7 +590,7 @@ type ECSTarget struct { LastUpdatedAt *time.Time // The lifecycle events of the deployment to this target Amazon ECS application. - LifecycleEvents []*LifecycleEvent + LifecycleEvents []LifecycleEvent // The status an Amazon ECS deployment's target ECS application. Status TargetStatus @@ -602,7 +602,7 @@ type ECSTarget struct { TargetId *string // The ECSTaskSet objects associated with the ECS target. - TaskSetsInfo []*ECSTaskSet + TaskSetsInfo []ECSTaskSet } // Information about a set of Amazon ECS tasks in an AWS CodeDeploy deployment. An @@ -616,7 +616,7 @@ type ECSTaskSet struct { // compute type, CodeDeploy instructs Amazon ECS to create a new task set and uses // this value to determine how many tasks to create. After the updated task set is // created, CodeDeploy shifts traffic to the new task set. - DesiredCount *int64 + DesiredCount int64 // A unique ID of an ECSTaskSet. Identifer *string @@ -625,11 +625,11 @@ type ECSTaskSet struct { // Amazon ECS deployment. A task in the PENDING state is preparing to enter the // RUNNING state. A task set enters the PENDING status when it launches for the // first time, or when it is restarted after being in the STOPPED state. - PendingCount *int64 + PendingCount int64 // The number of tasks in the task set that are in the RUNNING status during an // Amazon ECS deployment. A task in the RUNNING state is running and ready for use. - RunningCount *int64 + RunningCount int64 // The status of the task set. There are three valid task set statuses: // @@ -653,7 +653,7 @@ type ECSTaskSet struct { TaskSetLabel TargetLabel // The percentage of traffic served by this task set. - TrafficWeight *float64 + TrafficWeight float64 } // Information about a load balancer in Elastic Load Balancing to use in a @@ -730,7 +730,7 @@ type ErrorInformation struct { type GenericRevisionInfo struct { // The deployment groups for which this is the current target revision. - DeploymentGroups []*string + DeploymentGroups []string // A comment about the revision. Description *string @@ -796,7 +796,7 @@ type InstanceInfo struct { RegisterTime *time.Time // The tags currently associated with the on-premises instance. - Tags []*Tag + Tags []Tag } // Information about an instance in a deployment. @@ -821,7 +821,7 @@ type InstanceSummary struct { LastUpdatedAt *time.Time // A list of lifecycle events for this instance. - LifecycleEvents []*LifecycleEvent + LifecycleEvents []LifecycleEvent // The deployment status for this instance: // @@ -859,7 +859,7 @@ type InstanceTarget struct { LastUpdatedAt *time.Time // The lifecycle events of the deployment to this target instance. - LifecycleEvents []*LifecycleEvent + LifecycleEvents []LifecycleEvent // The status an EC2/On-premises deployment's target instance. Status TargetStatus @@ -891,7 +891,7 @@ type LambdaFunctionInfo struct { // The percentage of production traffic that the target version of a Lambda // function receives. - TargetVersionWeight *float64 + TargetVersionWeight float64 } // Information about the target AWS Lambda function during an AWS Lambda @@ -908,7 +908,7 @@ type LambdaTarget struct { LastUpdatedAt *time.Time // The lifecycle events of the deployment to this target Lambda function. - LifecycleEvents []*LifecycleEvent + LifecycleEvents []LifecycleEvent // The status an AWS Lambda deployment's target Lambda function. Status TargetStatus @@ -984,17 +984,17 @@ type LoadBalancerInfo struct { // balancing in a deployment. In Elastic Load Balancing, load balancers are used // with Classic Load Balancers. Adding more than one load balancer to the array is // not supported. - ElbInfoList []*ELBInfo + ElbInfoList []ELBInfo // An array that contains information about the target group to use for load // balancing in a deployment. In Elastic Load Balancing, target groups are used // with Application Load Balancers. Adding more than one target group to the array // is not supported. - TargetGroupInfoList []*TargetGroupInfo + TargetGroupInfoList []TargetGroupInfo // The target group pair information. This is an array of TargeGroupPairInfo // objects with a maximum size of one. - TargetGroupPairInfoList []*TargetGroupPairInfo + TargetGroupPairInfoList []TargetGroupPairInfo } // Information about minimum healthy instance. @@ -1029,7 +1029,7 @@ type MinimumHealthyHosts struct { Type MinimumHealthyHostsType // The minimum healthy instance value. - Value *int32 + Value int32 } // Information about groups of on-premises instance tags. @@ -1038,7 +1038,7 @@ type OnPremisesTagSet struct { // A list that contains other lists of on-premises instance tag groups. For an // instance to be included in the deployment group, it must be identified by all of // the tag groups in the list. - OnPremisesTagSetList [][]*TagFilter + OnPremisesTagSetList [][]TagFilter } // A revision for an AWS Lambda deployment that is a YAML-formatted or @@ -1203,7 +1203,7 @@ type TargetGroupPairInfo struct { // One pair of target groups. One is associated with the original task set. The // second is associated with the task set that serves traffic after the deployment // is complete. - TargetGroups []*TargetGroupInfo + TargetGroups []TargetGroupInfo // An optional path used by a load balancer to route test traffic after an Amazon // ECS deployment. Validation can occur while test traffic is served during a @@ -1217,7 +1217,7 @@ type TargetInstances struct { // The names of one or more Auto Scaling groups to identify a replacement // environment for a blue/green deployment. - AutoScalingGroups []*string + AutoScalingGroups []string // Information about the groups of EC2 instance tags that an instance must be // identified by in order for it to be included in the replacement environment for @@ -1227,7 +1227,7 @@ type TargetInstances struct { // The tag filter key, type, and value used to identify Amazon EC2 instances in a // replacement environment for a blue/green deployment. Cannot be used in the same // call as ec2TagSet. - TagFilters []*EC2TagFilter + TagFilters []EC2TagFilter } // A configuration that shifts traffic from one version of a Lambda function or ECS @@ -1237,11 +1237,11 @@ type TimeBasedCanary struct { // The number of minutes between the first and second traffic shifts of a // TimeBasedCanary deployment. - CanaryInterval *int32 + CanaryInterval int32 // The percentage of traffic to shift in the first increment of a TimeBasedCanary // deployment. - CanaryPercentage *int32 + CanaryPercentage int32 } // A configuration that shifts traffic from one version of a Lambda function or ECS @@ -1252,11 +1252,11 @@ type TimeBasedLinear struct { // The number of minutes between each incremental traffic shift of a // TimeBasedLinear deployment. - LinearInterval *int32 + LinearInterval int32 // The percentage of traffic that is shifted at the start of each increment of a // TimeBasedLinear deployment. - LinearPercentage *int32 + LinearPercentage int32 } // Information about a time range. @@ -1277,7 +1277,7 @@ type TrafficRoute struct { // The Amazon Resource Name (ARN) of one listener. The listener identifies the // route between a target group and a load balancer. This is an array of strings // with a maximum size of one. - ListenerArns []*string + ListenerArns []string } // The configuration that specifies how traffic is shifted from one version of a diff --git a/service/codeguruprofiler/api_op_ConfigureAgent.go b/service/codeguruprofiler/api_op_ConfigureAgent.go index 9f61ed84341..17a437a6280 100644 --- a/service/codeguruprofiler/api_op_ConfigureAgent.go +++ b/service/codeguruprofiler/api_op_ConfigureAgent.go @@ -38,7 +38,7 @@ type ConfigureAgentInput struct { // FleetInstanceId *string - Metadata map[string]*string + Metadata map[string]string } // The structure representing the configureAgentResponse. diff --git a/service/codeguruprofiler/api_op_ListProfileTimes.go b/service/codeguruprofiler/api_op_ListProfileTimes.go index af7950312b6..b49255f4173 100644 --- a/service/codeguruprofiler/api_op_ListProfileTimes.go +++ b/service/codeguruprofiler/api_op_ListProfileTimes.go @@ -79,7 +79,7 @@ type ListProfileTimesOutput struct { // the specified time range. // // This member is required. - ProfileTimes []*types.ProfileTime + ProfileTimes []types.ProfileTime // The nextToken value to include in a future ListProfileTimes request. When the // results of a ListProfileTimes request exceed maxResults, this value can be used diff --git a/service/codeguruprofiler/api_op_ListProfilingGroups.go b/service/codeguruprofiler/api_op_ListProfilingGroups.go index da621633e70..44f93bf5e1e 100644 --- a/service/codeguruprofiler/api_op_ListProfilingGroups.go +++ b/service/codeguruprofiler/api_op_ListProfilingGroups.go @@ -55,7 +55,7 @@ type ListProfilingGroupsOutput struct { // Information about profiling group names. // // This member is required. - ProfilingGroupNames []*string + ProfilingGroupNames []string // The nextToken value to include in a future ListProfilingGroups request. When the // results of a ListProfilingGroups request exceed maxResults, this value can be @@ -64,7 +64,7 @@ type ListProfilingGroupsOutput struct { NextToken *string // Information about profiling groups. - ProfilingGroups []*types.ProfilingGroupDescription + ProfilingGroups []types.ProfilingGroupDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codeguruprofiler/api_op_PutPermission.go b/service/codeguruprofiler/api_op_PutPermission.go index 96305c647ab..8f83a261b9f 100644 --- a/service/codeguruprofiler/api_op_PutPermission.go +++ b/service/codeguruprofiler/api_op_PutPermission.go @@ -40,7 +40,7 @@ type PutPermissionInput struct { // not allowed). // // This member is required. - Principals []*string + Principals []string // The name of the profiling group. // diff --git a/service/codeguruprofiler/api_op_RetrieveTimeSeries.go b/service/codeguruprofiler/api_op_RetrieveTimeSeries.go index b641bd06f90..6f4496b8a7d 100644 --- a/service/codeguruprofiler/api_op_RetrieveTimeSeries.go +++ b/service/codeguruprofiler/api_op_RetrieveTimeSeries.go @@ -32,7 +32,7 @@ type RetrieveTimeSeriesInput struct { EndTime *time.Time - FrameMetrics []*types.FrameMetric + FrameMetrics []types.FrameMetric Period *string @@ -42,19 +42,19 @@ type RetrieveTimeSeriesInput struct { } type RetrieveTimeSeriesOutput struct { - Data [][]*float64 + Data [][]float64 EndTime *time.Time - EndTimes []*time.Time + EndTimes []time.Time - FrameMetrics []*types.FrameMetric + FrameMetrics []types.FrameMetric Resolution types.AggregationPeriod StartTime *time.Time - UnprocessedEndTimes map[string][]*time.Time + UnprocessedEndTimes map[string][]time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codeguruprofiler/deserializers.go b/service/codeguruprofiler/deserializers.go index ecbe2cd0536..bfe007823c3 100644 --- a/service/codeguruprofiler/deserializers.go +++ b/service/codeguruprofiler/deserializers.go @@ -726,7 +726,7 @@ func awsRestjson1_deserializeOpDocumentListProfilingGroupsOutput(v **ListProfili if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "profilingGroupNames": @@ -1052,7 +1052,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyOutput(v **GetPolicyOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "revisionId": @@ -1061,7 +1061,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyOutput(v **GetPolicyOutput, valu if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } default: @@ -1224,7 +1224,7 @@ func awsRestjson1_deserializeOpDocumentPutPermissionOutput(v **PutPermissionOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "revisionId": @@ -1233,7 +1233,7 @@ func awsRestjson1_deserializeOpDocumentPutPermissionOutput(v **PutPermissionOutp if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } default: @@ -1396,7 +1396,7 @@ func awsRestjson1_deserializeOpDocumentRemovePermissionOutput(v **RemovePermissi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "revisionId": @@ -1405,7 +1405,7 @@ func awsRestjson1_deserializeOpDocumentRemovePermissionOutput(v **RemovePermissi if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } default: @@ -1699,7 +1699,7 @@ func awsRestjson1_deserializeOpDocumentListProfileTimesOutput(v **ListProfileTim if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "profileTimes": @@ -1965,7 +1965,7 @@ func awsRestjson1_deserializeOpDocumentRetrieveTimeSeriesOutput(v **RetrieveTime if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case "endTimes": @@ -1997,7 +1997,7 @@ func awsRestjson1_deserializeOpDocumentRetrieveTimeSeriesOutput(v **RetrieveTime if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case "unprocessedEndTimes": @@ -2230,7 +2230,7 @@ func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Respo return output } -func awsRestjson1_deserializeDocumentAgentParameters(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAgentParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2243,21 +2243,21 @@ func awsRestjson1_deserializeDocumentAgentParameters(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -2307,7 +2307,7 @@ func awsRestjson1_deserializeDocumentAggregatedProfileTime(v **types.AggregatedP if err != nil { return err } - sv.Start = &t + sv.Start = ptr.Time(t) } default: @@ -2347,7 +2347,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2387,7 +2387,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2427,7 +2427,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2467,7 +2467,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2507,7 +2507,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2547,7 +2547,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2605,7 +2605,7 @@ func awsRestjson1_deserializeDocumentAgentConfiguration(v **types.AgentConfigura if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ShouldProfile = &jtv + sv.ShouldProfile = ptr.Bool(jtv) } default: @@ -2645,7 +2645,7 @@ func awsRestjson1_deserializeDocumentAgentOrchestrationConfig(v **types.AgentOrc if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ProfilingEnabled = &jtv + sv.ProfilingEnabled = ptr.Bool(jtv) } default: @@ -2690,7 +2690,7 @@ func awsRestjson1_deserializeDocumentProfilingGroupDescription(v **types.Profili if !ok { return fmt.Errorf("expected ProfilingGroupArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "computePlatform": @@ -2712,7 +2712,7 @@ func awsRestjson1_deserializeDocumentProfilingGroupDescription(v **types.Profili if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "name": @@ -2721,7 +2721,7 @@ func awsRestjson1_deserializeDocumentProfilingGroupDescription(v **types.Profili if !ok { return fmt.Errorf("expected ProfilingGroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "profilingStatus": @@ -2739,7 +2739,7 @@ func awsRestjson1_deserializeDocumentProfilingGroupDescription(v **types.Profili if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -2751,7 +2751,7 @@ func awsRestjson1_deserializeDocumentProfilingGroupDescription(v **types.Profili return nil } -func awsRestjson1_deserializeDocumentProfilingGroupDescriptions(v *[]*types.ProfilingGroupDescription, value interface{}) error { +func awsRestjson1_deserializeDocumentProfilingGroupDescriptions(v *[]types.ProfilingGroupDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2764,18 +2764,20 @@ func awsRestjson1_deserializeDocumentProfilingGroupDescriptions(v *[]*types.Prof return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProfilingGroupDescription + var cv []types.ProfilingGroupDescription if *v == nil { - cv = []*types.ProfilingGroupDescription{} + cv = []types.ProfilingGroupDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ProfilingGroupDescription - if err := awsRestjson1_deserializeDocumentProfilingGroupDescription(&col, value); err != nil { + var col types.ProfilingGroupDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentProfilingGroupDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2783,7 +2785,7 @@ func awsRestjson1_deserializeDocumentProfilingGroupDescriptions(v *[]*types.Prof return nil } -func awsRestjson1_deserializeDocumentProfilingGroupNames(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentProfilingGroupNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2796,21 +2798,21 @@ func awsRestjson1_deserializeDocumentProfilingGroupNames(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ProfilingGroupName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2851,7 +2853,7 @@ func awsRestjson1_deserializeDocumentProfilingStatus(v **types.ProfilingStatus, if err != nil { return err } - sv.LatestAgentOrchestratedAt = &t + sv.LatestAgentOrchestratedAt = ptr.Time(t) } case "latestAgentProfileReportedAt": @@ -2864,7 +2866,7 @@ func awsRestjson1_deserializeDocumentProfilingStatus(v **types.ProfilingStatus, if err != nil { return err } - sv.LatestAgentProfileReportedAt = &t + sv.LatestAgentProfileReportedAt = ptr.Time(t) } case "latestAggregatedProfile": @@ -2913,7 +2915,7 @@ func awsRestjson1_deserializeDocumentProfileTime(v **types.ProfileTime, value in if err != nil { return err } - sv.Start = &t + sv.Start = ptr.Time(t) } default: @@ -2925,7 +2927,7 @@ func awsRestjson1_deserializeDocumentProfileTime(v **types.ProfileTime, value in return nil } -func awsRestjson1_deserializeDocumentProfileTimes(v *[]*types.ProfileTime, value interface{}) error { +func awsRestjson1_deserializeDocumentProfileTimes(v *[]types.ProfileTime, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2938,18 +2940,20 @@ func awsRestjson1_deserializeDocumentProfileTimes(v *[]*types.ProfileTime, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProfileTime + var cv []types.ProfileTime if *v == nil { - cv = []*types.ProfileTime{} + cv = []types.ProfileTime{} } else { cv = *v } for _, value := range shape { - var col *types.ProfileTime - if err := awsRestjson1_deserializeDocumentProfileTime(&col, value); err != nil { + var col types.ProfileTime + destAddr := &col + if err := awsRestjson1_deserializeDocumentProfileTime(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2957,7 +2961,7 @@ func awsRestjson1_deserializeDocumentProfileTimes(v *[]*types.ProfileTime, value return nil } -func awsRestjson1_deserializeDocumentDataMatrix(v *[][]*float64, value interface{}) error { +func awsRestjson1_deserializeDocumentDataMatrix(v *[][]float64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2970,15 +2974,15 @@ func awsRestjson1_deserializeDocumentDataMatrix(v *[][]*float64, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv [][]*float64 + var cv [][]float64 if *v == nil { - cv = [][]*float64{} + cv = [][]float64{} } else { cv = *v } for _, value := range shape { - var col []*float64 + var col []float64 if err := awsRestjson1_deserializeDocumentDataMatrixRow(&col, value); err != nil { return err } @@ -2989,7 +2993,7 @@ func awsRestjson1_deserializeDocumentDataMatrix(v *[][]*float64, value interface return nil } -func awsRestjson1_deserializeDocumentDataMatrixRow(v *[]*float64, value interface{}) error { +func awsRestjson1_deserializeDocumentDataMatrixRow(v *[]float64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3002,15 +3006,15 @@ func awsRestjson1_deserializeDocumentDataMatrixRow(v *[]*float64, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*float64 + var cv []float64 if *v == nil { - cv = []*float64{} + cv = []float64{} } else { cv = *v } for _, value := range shape { - var col *float64 + var col float64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -3020,7 +3024,7 @@ func awsRestjson1_deserializeDocumentDataMatrixRow(v *[]*float64, value interfac if err != nil { return err } - col = &f64 + col = f64 } cv = append(cv, col) @@ -3057,7 +3061,7 @@ func awsRestjson1_deserializeDocumentFrameMetric(v **types.FrameMetric, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FrameName = &jtv + sv.FrameName = ptr.String(jtv) } case "threadStates": @@ -3083,7 +3087,7 @@ func awsRestjson1_deserializeDocumentFrameMetric(v **types.FrameMetric, value in return nil } -func awsRestjson1_deserializeDocumentFrameMetrics(v *[]*types.FrameMetric, value interface{}) error { +func awsRestjson1_deserializeDocumentFrameMetrics(v *[]types.FrameMetric, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3096,18 +3100,20 @@ func awsRestjson1_deserializeDocumentFrameMetrics(v *[]*types.FrameMetric, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FrameMetric + var cv []types.FrameMetric if *v == nil { - cv = []*types.FrameMetric{} + cv = []types.FrameMetric{} } else { cv = *v } for _, value := range shape { - var col *types.FrameMetric - if err := awsRestjson1_deserializeDocumentFrameMetric(&col, value); err != nil { + var col types.FrameMetric + destAddr := &col + if err := awsRestjson1_deserializeDocumentFrameMetric(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3115,7 +3121,7 @@ func awsRestjson1_deserializeDocumentFrameMetrics(v *[]*types.FrameMetric, value return nil } -func awsRestjson1_deserializeDocumentListOfTimestamps(v *[]*time.Time, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfTimestamps(v *[]time.Time, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3128,15 +3134,15 @@ func awsRestjson1_deserializeDocumentListOfTimestamps(v *[]*time.Time, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*time.Time + var cv []time.Time if *v == nil { - cv = []*time.Time{} + cv = []time.Time{} } else { cv = *v } for _, value := range shape { - var col *time.Time + var col time.Time if value != nil { jtv, ok := value.(string) if !ok { @@ -3146,7 +3152,7 @@ func awsRestjson1_deserializeDocumentListOfTimestamps(v *[]*time.Time, value int if err != nil { return err } - col = &t + col = t } cv = append(cv, col) @@ -3155,7 +3161,7 @@ func awsRestjson1_deserializeDocumentListOfTimestamps(v *[]*time.Time, value int return nil } -func awsRestjson1_deserializeDocumentThreadStates(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentThreadStates(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3168,21 +3174,21 @@ func awsRestjson1_deserializeDocumentThreadStates(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -3191,7 +3197,7 @@ func awsRestjson1_deserializeDocumentThreadStates(v *[]*string, value interface{ return nil } -func awsRestjson1_deserializeDocumentUnprocessedEndTimeMap(v *map[string][]*time.Time, value interface{}) error { +func awsRestjson1_deserializeDocumentUnprocessedEndTimeMap(v *map[string][]time.Time, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3204,18 +3210,20 @@ func awsRestjson1_deserializeDocumentUnprocessedEndTimeMap(v *map[string][]*time return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*time.Time + var mv map[string][]time.Time if *v == nil { - mv = map[string][]*time.Time{} + mv = map[string][]time.Time{} } else { mv = *v } for key, value := range shape { - var parsedVal []*time.Time - if err := awsRestjson1_deserializeDocumentListOfTimestamps(&parsedVal, value); err != nil { + var parsedVal []time.Time + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentListOfTimestamps(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } diff --git a/service/codeguruprofiler/go.mod b/service/codeguruprofiler/go.mod index 6e0c5064885..db00b92b29a 100644 --- a/service/codeguruprofiler/go.mod +++ b/service/codeguruprofiler/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/codeguruprofiler go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/codeguruprofiler/serializers.go b/service/codeguruprofiler/serializers.go index 32950758fcb..6c943e503a2 100644 --- a/service/codeguruprofiler/serializers.go +++ b/service/codeguruprofiler/serializers.go @@ -77,13 +77,10 @@ func awsRestjson1_serializeOpHttpBindingsConfigureAgentInput(v *ConfigureAgentIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProfilingGroupName == nil { + if v.ProfilingGroupName == nil || len(*v.ProfilingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} } if v.ProfilingGroupName != nil { - if len(*v.ProfilingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} - } if err := encoder.SetURI("profilingGroupName").String(*v.ProfilingGroupName); err != nil { return err } @@ -255,13 +252,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteProfilingGroupInput(v *DeleteProf return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProfilingGroupName == nil { + if v.ProfilingGroupName == nil || len(*v.ProfilingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} } if v.ProfilingGroupName != nil { - if len(*v.ProfilingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} - } if err := encoder.SetURI("profilingGroupName").String(*v.ProfilingGroupName); err != nil { return err } @@ -321,13 +315,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeProfilingGroupInput(v *Describe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProfilingGroupName == nil { + if v.ProfilingGroupName == nil || len(*v.ProfilingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} } if v.ProfilingGroupName != nil { - if len(*v.ProfilingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} - } if err := encoder.SetURI("profilingGroupName").String(*v.ProfilingGroupName); err != nil { return err } @@ -464,13 +455,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateProfilingGroupInput(v *UpdateProf return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProfilingGroupName == nil { + if v.ProfilingGroupName == nil || len(*v.ProfilingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} } if v.ProfilingGroupName != nil { - if len(*v.ProfilingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} - } if err := encoder.SetURI("profilingGroupName").String(*v.ProfilingGroupName); err != nil { return err } @@ -544,13 +532,10 @@ func awsRestjson1_serializeOpHttpBindingsGetPolicyInput(v *GetPolicyInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProfilingGroupName == nil { + if v.ProfilingGroupName == nil || len(*v.ProfilingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} } if v.ProfilingGroupName != nil { - if len(*v.ProfilingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} - } if err := encoder.SetURI("profilingGroupName").String(*v.ProfilingGroupName); err != nil { return err } @@ -625,21 +610,15 @@ func awsRestjson1_serializeOpHttpBindingsPutPermissionInput(v *PutPermissionInpu return &smithy.SerializationError{Err: fmt.Errorf("input member actionGroup must not be empty")} } if len(v.ActionGroup) > 0 { - if len(string(v.ActionGroup)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member actionGroup must not be empty")} - } if err := encoder.SetURI("actionGroup").String(string(v.ActionGroup)); err != nil { return err } } - if v.ProfilingGroupName == nil { + if v.ProfilingGroupName == nil || len(*v.ProfilingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} } if v.ProfilingGroupName != nil { - if len(*v.ProfilingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} - } if err := encoder.SetURI("profilingGroupName").String(*v.ProfilingGroupName); err != nil { return err } @@ -722,21 +701,15 @@ func awsRestjson1_serializeOpHttpBindingsRemovePermissionInput(v *RemovePermissi return &smithy.SerializationError{Err: fmt.Errorf("input member actionGroup must not be empty")} } if len(v.ActionGroup) > 0 { - if len(string(v.ActionGroup)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member actionGroup must not be empty")} - } if err := encoder.SetURI("actionGroup").String(string(v.ActionGroup)); err != nil { return err } } - if v.ProfilingGroupName == nil { + if v.ProfilingGroupName == nil || len(*v.ProfilingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} } if v.ProfilingGroupName != nil { - if len(*v.ProfilingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} - } if err := encoder.SetURI("profilingGroupName").String(*v.ProfilingGroupName); err != nil { return err } @@ -800,11 +773,9 @@ func awsRestjson1_serializeOpHttpBindingsGetProfileInput(v *GetProfileInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Accept != nil { + if v.Accept != nil && len(*v.Accept) > 0 { locationName := "Accept" - if len(*v.Accept) > 0 { - encoder.SetHeader(locationName).String(*v.Accept) - } + encoder.SetHeader(locationName).String(*v.Accept) } if v.EndTime != nil { @@ -819,13 +790,10 @@ func awsRestjson1_serializeOpHttpBindingsGetProfileInput(v *GetProfileInput, enc encoder.SetQuery("period").String(*v.Period) } - if v.ProfilingGroupName == nil { + if v.ProfilingGroupName == nil || len(*v.ProfilingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} } if v.ProfilingGroupName != nil { - if len(*v.ProfilingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} - } if err := encoder.SetURI("profilingGroupName").String(*v.ProfilingGroupName); err != nil { return err } @@ -909,13 +877,10 @@ func awsRestjson1_serializeOpHttpBindingsListProfileTimesInput(v *ListProfileTim encoder.SetQuery("period").String(string(v.Period)) } - if v.ProfilingGroupName == nil { + if v.ProfilingGroupName == nil || len(*v.ProfilingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} } if v.ProfilingGroupName != nil { - if len(*v.ProfilingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} - } if err := encoder.SetURI("profilingGroupName").String(*v.ProfilingGroupName); err != nil { return err } @@ -990,24 +955,19 @@ func awsRestjson1_serializeOpHttpBindingsPostAgentProfileInput(v *PostAgentProfi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContentType != nil { + if v.ContentType != nil && len(*v.ContentType) > 0 { locationName := "Content-Type" - if len(*v.ContentType) > 0 { - encoder.SetHeader(locationName).String(*v.ContentType) - } + encoder.SetHeader(locationName).String(*v.ContentType) } if v.ProfileToken != nil { encoder.SetQuery("profileToken").String(*v.ProfileToken) } - if v.ProfilingGroupName == nil { + if v.ProfilingGroupName == nil || len(*v.ProfilingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} } if v.ProfilingGroupName != nil { - if len(*v.ProfilingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} - } if err := encoder.SetURI("profilingGroupName").String(*v.ProfilingGroupName); err != nil { return err } @@ -1086,13 +1046,10 @@ func awsRestjson1_serializeOpHttpBindingsRetrieveTimeSeriesInput(v *RetrieveTime encoder.SetQuery("period").String(*v.Period) } - if v.ProfilingGroupName == nil { + if v.ProfilingGroupName == nil || len(*v.ProfilingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} } if v.ProfilingGroupName != nil { - if len(*v.ProfilingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profilingGroupName must not be empty")} - } if err := encoder.SetURI("profilingGroupName").String(*v.ProfilingGroupName); err != nil { return err } @@ -1123,17 +1080,13 @@ func awsRestjson1_serializeOpDocumentRetrieveTimeSeriesInput(v *RetrieveTimeSeri return nil } -func awsRestjson1_serializeDocumentMetadata(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMetadata(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1150,17 +1103,13 @@ func awsRestjson1_serializeDocumentAgentOrchestrationConfig(v *types.AgentOrches return nil } -func awsRestjson1_serializeDocumentPrincipals(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPrincipals(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1189,34 +1138,26 @@ func awsRestjson1_serializeDocumentFrameMetric(v *types.FrameMetric, value smith return nil } -func awsRestjson1_serializeDocumentFrameMetrics(v []*types.FrameMetric, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFrameMetrics(v []types.FrameMetric, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentFrameMetric(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFrameMetric(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentThreadStates(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentThreadStates(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/codeguruprofiler/types/types.go b/service/codeguruprofiler/types/types.go index afd5ee3e225..229d5d73cb9 100644 --- a/service/codeguruprofiler/types/types.go +++ b/service/codeguruprofiler/types/types.go @@ -29,7 +29,7 @@ type AgentConfiguration struct { // This member is required. ShouldProfile *bool - AgentParameters map[string]*string + AgentParameters map[string]string } // @@ -90,7 +90,7 @@ type ProfileTime struct { type FrameMetric struct { FrameName *string - ThreadStates []*string + ThreadStates []string Type MetricType } diff --git a/service/codeguruprofiler/validators.go b/service/codeguruprofiler/validators.go index 6147a9c4b3e..11c78cac127 100644 --- a/service/codeguruprofiler/validators.go +++ b/service/codeguruprofiler/validators.go @@ -334,13 +334,13 @@ func validateFrameMetric(v *types.FrameMetric) error { } } -func validateFrameMetrics(v []*types.FrameMetric) error { +func validateFrameMetrics(v []types.FrameMetric) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FrameMetrics"} for i := range v { - if err := validateFrameMetric(v[i]); err != nil { + if err := validateFrameMetric(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/codegurureviewer/api_op_ListCodeReviews.go b/service/codegurureviewer/api_op_ListCodeReviews.go index b52f9779374..658270508b9 100644 --- a/service/codegurureviewer/api_op_ListCodeReviews.go +++ b/service/codegurureviewer/api_op_ListCodeReviews.go @@ -49,7 +49,7 @@ type ListCodeReviewsInput struct { // List of repository names for filtering that needs to be applied before // displaying the result. - RepositoryNames []*string + RepositoryNames []string // List of states for filtering that needs to be applied before displaying the // result. For example, states=[Pending] lists code reviews in the Pending state. @@ -70,7 +70,7 @@ type ListCodeReviewsInput struct { type ListCodeReviewsOutput struct { // A list of code reviews that meet the criteria of the request. - CodeReviewSummaries []*types.CodeReviewSummary + CodeReviewSummaries []types.CodeReviewSummary // Pagination token. NextToken *string diff --git a/service/codegurureviewer/api_op_ListRecommendationFeedback.go b/service/codegurureviewer/api_op_ListRecommendationFeedback.go index 3114d95f18b..81f711ef306 100644 --- a/service/codegurureviewer/api_op_ListRecommendationFeedback.go +++ b/service/codegurureviewer/api_op_ListRecommendationFeedback.go @@ -49,7 +49,7 @@ type ListRecommendationFeedbackInput struct { NextToken *string // Used to query the recommendation feedback for a given recommendation. - RecommendationIds []*string + RecommendationIds []string // An AWS user's account ID or Amazon Resource Name (ARN). Use this ID to query the // recommendation feedback for a code review from that user. The UserId is an IAM @@ -57,7 +57,7 @@ type ListRecommendationFeedbackInput struct { // (ARN). For more information, see Specifying a Principal // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying) // in the AWS Identity and Access Management User Guide. - UserIds []*string + UserIds []string } type ListRecommendationFeedbackOutput struct { @@ -69,7 +69,7 @@ type ListRecommendationFeedbackOutput struct { NextToken *string // Recommendation feedback summaries corresponding to the code review ARN. - RecommendationFeedbackSummaries []*types.RecommendationFeedbackSummary + RecommendationFeedbackSummaries []types.RecommendationFeedbackSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codegurureviewer/api_op_ListRecommendations.go b/service/codegurureviewer/api_op_ListRecommendations.go index 432c29eb9f2..64bba774b1b 100644 --- a/service/codegurureviewer/api_op_ListRecommendations.go +++ b/service/codegurureviewer/api_op_ListRecommendations.go @@ -49,7 +49,7 @@ type ListRecommendationsOutput struct { NextToken *string // List of recommendations for the requested code review. - RecommendationSummaries []*types.RecommendationSummary + RecommendationSummaries []types.RecommendationSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codegurureviewer/api_op_ListRepositoryAssociations.go b/service/codegurureviewer/api_op_ListRepositoryAssociations.go index 06ab2a0ca45..c6feda31615 100644 --- a/service/codegurureviewer/api_op_ListRepositoryAssociations.go +++ b/service/codegurureviewer/api_op_ListRepositoryAssociations.go @@ -50,7 +50,7 @@ type ListRepositoryAssociationsInput struct { MaxResults *int32 // List of repository names to use as a filter. - Names []*string + Names []string // The nextToken value returned from a previous paginated // ListRepositoryAssociations request where maxResults was used and the results @@ -64,7 +64,7 @@ type ListRepositoryAssociationsInput struct { // CodeCommit account that was used to associate the repository. For other // repository source providers, such as Bitbucket and GitHub Enterprise Server, // this is name of the account that was used to associate the repository. - Owners []*string + Owners []string // List of provider types to use as a filter. ProviderTypes []types.ProviderType @@ -105,7 +105,7 @@ type ListRepositoryAssociationsOutput struct { NextToken *string // A list of repository associations that meet the criteria of the request. - RepositoryAssociationSummaries []*types.RepositoryAssociationSummary + RepositoryAssociationSummaries []types.RepositoryAssociationSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codegurureviewer/deserializers.go b/service/codegurureviewer/deserializers.go index 5d383dab2cc..5e6052d0b86 100644 --- a/service/codegurureviewer/deserializers.go +++ b/service/codegurureviewer/deserializers.go @@ -1132,7 +1132,7 @@ func awsRestjson1_deserializeOpDocumentListCodeReviewsOutput(v **ListCodeReviews if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1295,7 +1295,7 @@ func awsRestjson1_deserializeOpDocumentListRecommendationFeedbackOutput(v **List if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RecommendationFeedbackSummaries": @@ -1463,7 +1463,7 @@ func awsRestjson1_deserializeOpDocumentListRecommendationsOutput(v **ListRecomme if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RecommendationSummaries": @@ -1625,7 +1625,7 @@ func awsRestjson1_deserializeOpDocumentListRepositoryAssociationsOutput(v **List if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RepositoryAssociationSummaries": @@ -2017,7 +2017,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2057,7 +2057,7 @@ func awsRestjson1_deserializeDocumentCodeReview(v **types.CodeReview, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CodeReviewArn = &jtv + sv.CodeReviewArn = ptr.String(jtv) } case "CreatedTimeStamp": @@ -2097,7 +2097,7 @@ func awsRestjson1_deserializeDocumentCodeReview(v **types.CodeReview, value inte if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Owner": @@ -2106,7 +2106,7 @@ func awsRestjson1_deserializeDocumentCodeReview(v **types.CodeReview, value inte if !ok { return fmt.Errorf("expected Owner to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "ProviderType": @@ -2124,7 +2124,7 @@ func awsRestjson1_deserializeDocumentCodeReview(v **types.CodeReview, value inte if !ok { return fmt.Errorf("expected PullRequestId to be of type string, got %T instead", value) } - sv.PullRequestId = &jtv + sv.PullRequestId = ptr.String(jtv) } case "RepositoryName": @@ -2133,7 +2133,7 @@ func awsRestjson1_deserializeDocumentCodeReview(v **types.CodeReview, value inte if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } case "SourceCodeType": @@ -2156,7 +2156,7 @@ func awsRestjson1_deserializeDocumentCodeReview(v **types.CodeReview, value inte if !ok { return fmt.Errorf("expected StateReason to be of type string, got %T instead", value) } - sv.StateReason = &jtv + sv.StateReason = ptr.String(jtv) } case "Type": @@ -2177,7 +2177,7 @@ func awsRestjson1_deserializeDocumentCodeReview(v **types.CodeReview, value inte return nil } -func awsRestjson1_deserializeDocumentCodeReviewSummaries(v *[]*types.CodeReviewSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentCodeReviewSummaries(v *[]types.CodeReviewSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2190,18 +2190,20 @@ func awsRestjson1_deserializeDocumentCodeReviewSummaries(v *[]*types.CodeReviewS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CodeReviewSummary + var cv []types.CodeReviewSummary if *v == nil { - cv = []*types.CodeReviewSummary{} + cv = []types.CodeReviewSummary{} } else { cv = *v } for _, value := range shape { - var col *types.CodeReviewSummary - if err := awsRestjson1_deserializeDocumentCodeReviewSummary(&col, value); err != nil { + var col types.CodeReviewSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentCodeReviewSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2237,7 +2239,7 @@ func awsRestjson1_deserializeDocumentCodeReviewSummary(v **types.CodeReviewSumma if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CodeReviewArn = &jtv + sv.CodeReviewArn = ptr.String(jtv) } case "CreatedTimeStamp": @@ -2277,7 +2279,7 @@ func awsRestjson1_deserializeDocumentCodeReviewSummary(v **types.CodeReviewSumma if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Owner": @@ -2286,7 +2288,7 @@ func awsRestjson1_deserializeDocumentCodeReviewSummary(v **types.CodeReviewSumma if !ok { return fmt.Errorf("expected Owner to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "ProviderType": @@ -2304,7 +2306,7 @@ func awsRestjson1_deserializeDocumentCodeReviewSummary(v **types.CodeReviewSumma if !ok { return fmt.Errorf("expected PullRequestId to be of type string, got %T instead", value) } - sv.PullRequestId = &jtv + sv.PullRequestId = ptr.String(jtv) } case "RepositoryName": @@ -2313,7 +2315,7 @@ func awsRestjson1_deserializeDocumentCodeReviewSummary(v **types.CodeReviewSumma if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } case "State": @@ -2371,7 +2373,7 @@ func awsRestjson1_deserializeDocumentCommitDiffSourceCodeType(v **types.CommitDi if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.DestinationCommit = &jtv + sv.DestinationCommit = ptr.String(jtv) } case "SourceCommit": @@ -2380,7 +2382,7 @@ func awsRestjson1_deserializeDocumentCommitDiffSourceCodeType(v **types.CommitDi if !ok { return fmt.Errorf("expected CommitId to be of type string, got %T instead", value) } - sv.SourceCommit = &jtv + sv.SourceCommit = ptr.String(jtv) } default: @@ -2420,7 +2422,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2460,7 +2462,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2504,7 +2506,7 @@ func awsRestjson1_deserializeDocumentMetrics(v **types.Metrics, value interface{ if err != nil { return err } - sv.FindingsCount = &i64 + sv.FindingsCount = ptr.Int64(i64) } case "MeteredLinesOfCodeCount": @@ -2517,7 +2519,7 @@ func awsRestjson1_deserializeDocumentMetrics(v **types.Metrics, value interface{ if err != nil { return err } - sv.MeteredLinesOfCodeCount = &i64 + sv.MeteredLinesOfCodeCount = ptr.Int64(i64) } default: @@ -2561,7 +2563,7 @@ func awsRestjson1_deserializeDocumentMetricsSummary(v **types.MetricsSummary, va if err != nil { return err } - sv.FindingsCount = &i64 + sv.FindingsCount = ptr.Int64(i64) } case "MeteredLinesOfCodeCount": @@ -2574,7 +2576,7 @@ func awsRestjson1_deserializeDocumentMetricsSummary(v **types.MetricsSummary, va if err != nil { return err } - sv.MeteredLinesOfCodeCount = &i64 + sv.MeteredLinesOfCodeCount = ptr.Int64(i64) } default: @@ -2614,7 +2616,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2690,7 +2692,7 @@ func awsRestjson1_deserializeDocumentRecommendationFeedback(v **types.Recommenda if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CodeReviewArn = &jtv + sv.CodeReviewArn = ptr.String(jtv) } case "CreatedTimeStamp": @@ -2730,7 +2732,7 @@ func awsRestjson1_deserializeDocumentRecommendationFeedback(v **types.Recommenda if !ok { return fmt.Errorf("expected RecommendationId to be of type string, got %T instead", value) } - sv.RecommendationId = &jtv + sv.RecommendationId = ptr.String(jtv) } case "UserId": @@ -2739,7 +2741,7 @@ func awsRestjson1_deserializeDocumentRecommendationFeedback(v **types.Recommenda if !ok { return fmt.Errorf("expected UserId to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } default: @@ -2751,7 +2753,7 @@ func awsRestjson1_deserializeDocumentRecommendationFeedback(v **types.Recommenda return nil } -func awsRestjson1_deserializeDocumentRecommendationFeedbackSummaries(v *[]*types.RecommendationFeedbackSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentRecommendationFeedbackSummaries(v *[]types.RecommendationFeedbackSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2764,18 +2766,20 @@ func awsRestjson1_deserializeDocumentRecommendationFeedbackSummaries(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecommendationFeedbackSummary + var cv []types.RecommendationFeedbackSummary if *v == nil { - cv = []*types.RecommendationFeedbackSummary{} + cv = []types.RecommendationFeedbackSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RecommendationFeedbackSummary - if err := awsRestjson1_deserializeDocumentRecommendationFeedbackSummary(&col, value); err != nil { + var col types.RecommendationFeedbackSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecommendationFeedbackSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2816,7 +2820,7 @@ func awsRestjson1_deserializeDocumentRecommendationFeedbackSummary(v **types.Rec if !ok { return fmt.Errorf("expected RecommendationId to be of type string, got %T instead", value) } - sv.RecommendationId = &jtv + sv.RecommendationId = ptr.String(jtv) } case "UserId": @@ -2825,7 +2829,7 @@ func awsRestjson1_deserializeDocumentRecommendationFeedbackSummary(v **types.Rec if !ok { return fmt.Errorf("expected UserId to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } default: @@ -2837,7 +2841,7 @@ func awsRestjson1_deserializeDocumentRecommendationFeedbackSummary(v **types.Rec return nil } -func awsRestjson1_deserializeDocumentRecommendationSummaries(v *[]*types.RecommendationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentRecommendationSummaries(v *[]types.RecommendationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2850,18 +2854,20 @@ func awsRestjson1_deserializeDocumentRecommendationSummaries(v *[]*types.Recomme return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecommendationSummary + var cv []types.RecommendationSummary if *v == nil { - cv = []*types.RecommendationSummary{} + cv = []types.RecommendationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RecommendationSummary - if err := awsRestjson1_deserializeDocumentRecommendationSummary(&col, value); err != nil { + var col types.RecommendationSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecommendationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2897,7 +2903,7 @@ func awsRestjson1_deserializeDocumentRecommendationSummary(v **types.Recommendat if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EndLine": @@ -2919,7 +2925,7 @@ func awsRestjson1_deserializeDocumentRecommendationSummary(v **types.Recommendat if !ok { return fmt.Errorf("expected FilePath to be of type string, got %T instead", value) } - sv.FilePath = &jtv + sv.FilePath = ptr.String(jtv) } case "RecommendationId": @@ -2928,7 +2934,7 @@ func awsRestjson1_deserializeDocumentRecommendationSummary(v **types.Recommendat if !ok { return fmt.Errorf("expected RecommendationId to be of type string, got %T instead", value) } - sv.RecommendationId = &jtv + sv.RecommendationId = ptr.String(jtv) } case "StartLine": @@ -2981,7 +2987,7 @@ func awsRestjson1_deserializeDocumentRepositoryAssociation(v **types.RepositoryA if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssociationArn = &jtv + sv.AssociationArn = ptr.String(jtv) } case "AssociationId": @@ -2990,7 +2996,7 @@ func awsRestjson1_deserializeDocumentRepositoryAssociation(v **types.RepositoryA if !ok { return fmt.Errorf("expected AssociationId to be of type string, got %T instead", value) } - sv.AssociationId = &jtv + sv.AssociationId = ptr.String(jtv) } case "ConnectionArn": @@ -2999,7 +3005,7 @@ func awsRestjson1_deserializeDocumentRepositoryAssociation(v **types.RepositoryA if !ok { return fmt.Errorf("expected ConnectionArn to be of type string, got %T instead", value) } - sv.ConnectionArn = &jtv + sv.ConnectionArn = ptr.String(jtv) } case "CreatedTimeStamp": @@ -3034,7 +3040,7 @@ func awsRestjson1_deserializeDocumentRepositoryAssociation(v **types.RepositoryA if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Owner": @@ -3043,7 +3049,7 @@ func awsRestjson1_deserializeDocumentRepositoryAssociation(v **types.RepositoryA if !ok { return fmt.Errorf("expected Owner to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "ProviderType": @@ -3070,7 +3076,7 @@ func awsRestjson1_deserializeDocumentRepositoryAssociation(v **types.RepositoryA if !ok { return fmt.Errorf("expected StateReason to be of type string, got %T instead", value) } - sv.StateReason = &jtv + sv.StateReason = ptr.String(jtv) } default: @@ -3082,7 +3088,7 @@ func awsRestjson1_deserializeDocumentRepositoryAssociation(v **types.RepositoryA return nil } -func awsRestjson1_deserializeDocumentRepositoryAssociationSummaries(v *[]*types.RepositoryAssociationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentRepositoryAssociationSummaries(v *[]types.RepositoryAssociationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3095,18 +3101,20 @@ func awsRestjson1_deserializeDocumentRepositoryAssociationSummaries(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RepositoryAssociationSummary + var cv []types.RepositoryAssociationSummary if *v == nil { - cv = []*types.RepositoryAssociationSummary{} + cv = []types.RepositoryAssociationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RepositoryAssociationSummary - if err := awsRestjson1_deserializeDocumentRepositoryAssociationSummary(&col, value); err != nil { + var col types.RepositoryAssociationSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentRepositoryAssociationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3142,7 +3150,7 @@ func awsRestjson1_deserializeDocumentRepositoryAssociationSummary(v **types.Repo if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssociationArn = &jtv + sv.AssociationArn = ptr.String(jtv) } case "AssociationId": @@ -3151,7 +3159,7 @@ func awsRestjson1_deserializeDocumentRepositoryAssociationSummary(v **types.Repo if !ok { return fmt.Errorf("expected AssociationId to be of type string, got %T instead", value) } - sv.AssociationId = &jtv + sv.AssociationId = ptr.String(jtv) } case "ConnectionArn": @@ -3160,7 +3168,7 @@ func awsRestjson1_deserializeDocumentRepositoryAssociationSummary(v **types.Repo if !ok { return fmt.Errorf("expected ConnectionArn to be of type string, got %T instead", value) } - sv.ConnectionArn = &jtv + sv.ConnectionArn = ptr.String(jtv) } case "LastUpdatedTimeStamp": @@ -3182,7 +3190,7 @@ func awsRestjson1_deserializeDocumentRepositoryAssociationSummary(v **types.Repo if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Owner": @@ -3191,7 +3199,7 @@ func awsRestjson1_deserializeDocumentRepositoryAssociationSummary(v **types.Repo if !ok { return fmt.Errorf("expected Owner to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "ProviderType": @@ -3249,7 +3257,7 @@ func awsRestjson1_deserializeDocumentRepositoryHeadSourceCodeType(v **types.Repo if !ok { return fmt.Errorf("expected BranchName to be of type string, got %T instead", value) } - sv.BranchName = &jtv + sv.BranchName = ptr.String(jtv) } default: @@ -3289,7 +3297,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3370,7 +3378,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3410,7 +3418,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/codegurureviewer/go.mod b/service/codegurureviewer/go.mod index 82db849960e..ea7650c1234 100644 --- a/service/codegurureviewer/go.mod +++ b/service/codegurureviewer/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/codegurureviewer go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/codegurureviewer/serializers.go b/service/codegurureviewer/serializers.go index bf6341377f6..893ceb4aac2 100644 --- a/service/codegurureviewer/serializers.go +++ b/service/codegurureviewer/serializers.go @@ -235,13 +235,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeCodeReviewInput(v *DescribeCode return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CodeReviewArn == nil { + if v.CodeReviewArn == nil || len(*v.CodeReviewArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CodeReviewArn must not be empty")} } if v.CodeReviewArn != nil { - if len(*v.CodeReviewArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CodeReviewArn must not be empty")} - } if err := encoder.SetURI("CodeReviewArn").String(*v.CodeReviewArn); err != nil { return err } @@ -301,13 +298,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeRecommendationFeedbackInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CodeReviewArn == nil { + if v.CodeReviewArn == nil || len(*v.CodeReviewArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CodeReviewArn must not be empty")} } if v.CodeReviewArn != nil { - if len(*v.CodeReviewArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CodeReviewArn must not be empty")} - } if err := encoder.SetURI("CodeReviewArn").String(*v.CodeReviewArn); err != nil { return err } @@ -375,13 +369,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeRepositoryAssociationInput(v *D return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssociationArn == nil { + if v.AssociationArn == nil || len(*v.AssociationArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AssociationArn must not be empty")} } if v.AssociationArn != nil { - if len(*v.AssociationArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AssociationArn must not be empty")} - } if err := encoder.SetURI("AssociationArn").String(*v.AssociationArn); err != nil { return err } @@ -441,13 +432,10 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateRepositoryInput(v *Disassoc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssociationArn == nil { + if v.AssociationArn == nil || len(*v.AssociationArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AssociationArn must not be empty")} } if v.AssociationArn != nil { - if len(*v.AssociationArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AssociationArn must not be empty")} - } if err := encoder.SetURI("AssociationArn").String(*v.AssociationArn); err != nil { return err } @@ -523,10 +511,7 @@ func awsRestjson1_serializeOpHttpBindingsListCodeReviewsInput(v *ListCodeReviews if v.RepositoryNames != nil { for i := range v.RepositoryNames { - if v.RepositoryNames[i] == nil { - continue - } - encoder.AddQuery("RepositoryNames").String(*v.RepositoryNames[i]) + encoder.AddQuery("RepositoryNames").String(v.RepositoryNames[i]) } } @@ -594,13 +579,10 @@ func awsRestjson1_serializeOpHttpBindingsListRecommendationFeedbackInput(v *List return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CodeReviewArn == nil { + if v.CodeReviewArn == nil || len(*v.CodeReviewArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CodeReviewArn must not be empty")} } if v.CodeReviewArn != nil { - if len(*v.CodeReviewArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CodeReviewArn must not be empty")} - } if err := encoder.SetURI("CodeReviewArn").String(*v.CodeReviewArn); err != nil { return err } @@ -616,19 +598,13 @@ func awsRestjson1_serializeOpHttpBindingsListRecommendationFeedbackInput(v *List if v.RecommendationIds != nil { for i := range v.RecommendationIds { - if v.RecommendationIds[i] == nil { - continue - } - encoder.AddQuery("RecommendationIds").String(*v.RecommendationIds[i]) + encoder.AddQuery("RecommendationIds").String(v.RecommendationIds[i]) } } if v.UserIds != nil { for i := range v.UserIds { - if v.UserIds[i] == nil { - continue - } - encoder.AddQuery("UserIds").String(*v.UserIds[i]) + encoder.AddQuery("UserIds").String(v.UserIds[i]) } } @@ -686,13 +662,10 @@ func awsRestjson1_serializeOpHttpBindingsListRecommendationsInput(v *ListRecomme return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CodeReviewArn == nil { + if v.CodeReviewArn == nil || len(*v.CodeReviewArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CodeReviewArn must not be empty")} } if v.CodeReviewArn != nil { - if len(*v.CodeReviewArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CodeReviewArn must not be empty")} - } if err := encoder.SetURI("CodeReviewArn").String(*v.CodeReviewArn); err != nil { return err } @@ -766,10 +739,7 @@ func awsRestjson1_serializeOpHttpBindingsListRepositoryAssociationsInput(v *List if v.Names != nil { for i := range v.Names { - if v.Names[i] == nil { - continue - } - encoder.AddQuery("Name").String(*v.Names[i]) + encoder.AddQuery("Name").String(v.Names[i]) } } @@ -779,10 +749,7 @@ func awsRestjson1_serializeOpHttpBindingsListRepositoryAssociationsInput(v *List if v.Owners != nil { for i := range v.Owners { - if v.Owners[i] == nil { - continue - } - encoder.AddQuery("Owner").String(*v.Owners[i]) + encoder.AddQuery("Owner").String(v.Owners[i]) } } diff --git a/service/codepipeline/api_op_CreateCustomActionType.go b/service/codepipeline/api_op_CreateCustomActionType.go index 996ca5e2fd1..cbdc6e76c77 100644 --- a/service/codepipeline/api_op_CreateCustomActionType.go +++ b/service/codepipeline/api_op_CreateCustomActionType.go @@ -64,13 +64,13 @@ type CreateCustomActionTypeInput struct { // both required and not secret. For more information, see Create a Custom Action // for a Pipeline // (https://docs.aws.amazon.com/codepipeline/latest/userguide/how-to-create-custom-action.html). - ConfigurationProperties []*types.ActionConfigurationProperty + ConfigurationProperties []types.ActionConfigurationProperty // URLs that provide users information about this custom action. Settings *types.ActionTypeSettings // The tags for the custom action. - Tags []*types.Tag + Tags []types.Tag } // Represents the output of a CreateCustomActionType operation. @@ -82,7 +82,7 @@ type CreateCustomActionTypeOutput struct { ActionType *types.ActionType // Specifies the tags applied to the custom action. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codepipeline/api_op_CreatePipeline.go b/service/codepipeline/api_op_CreatePipeline.go index 723a7742106..e3b3eb56bcb 100644 --- a/service/codepipeline/api_op_CreatePipeline.go +++ b/service/codepipeline/api_op_CreatePipeline.go @@ -38,7 +38,7 @@ type CreatePipelineInput struct { Pipeline *types.PipelineDeclaration // The tags for the pipeline. - Tags []*types.Tag + Tags []types.Tag } // Represents the output of a CreatePipeline action. @@ -48,7 +48,7 @@ type CreatePipelineOutput struct { Pipeline *types.PipelineDeclaration // Specifies the tags applied to the pipeline. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codepipeline/api_op_GetPipelineState.go b/service/codepipeline/api_op_GetPipelineState.go index f9b40c2e24a..f8ff2efd9e9 100644 --- a/service/codepipeline/api_op_GetPipelineState.go +++ b/service/codepipeline/api_op_GetPipelineState.go @@ -54,7 +54,7 @@ type GetPipelineStateOutput struct { // A list of the pipeline stage output information, including stage name, state, // most recent run details, whether the stage is disabled, and other data. - StageStates []*types.StageState + StageStates []types.StageState // The date and time the pipeline was last updated, in timestamp format. Updated *time.Time diff --git a/service/codepipeline/api_op_ListActionExecutions.go b/service/codepipeline/api_op_ListActionExecutions.go index abf19a39075..1d6d0ef1b74 100644 --- a/service/codepipeline/api_op_ListActionExecutions.go +++ b/service/codepipeline/api_op_ListActionExecutions.go @@ -52,7 +52,7 @@ type ListActionExecutionsInput struct { type ListActionExecutionsOutput struct { // The details for a list of recent executions, such as action execution ID. - ActionExecutionDetails []*types.ActionExecutionDetail + ActionExecutionDetails []types.ActionExecutionDetail // If the amount of returned information is significantly large, an identifier is // also returned and can be used in a subsequent ListActionExecutions call to diff --git a/service/codepipeline/api_op_ListActionTypes.go b/service/codepipeline/api_op_ListActionTypes.go index 9005512f304..92f89d8d7bb 100644 --- a/service/codepipeline/api_op_ListActionTypes.go +++ b/service/codepipeline/api_op_ListActionTypes.go @@ -45,7 +45,7 @@ type ListActionTypesOutput struct { // Provides details of the action types. // // This member is required. - ActionTypes []*types.ActionType + ActionTypes []types.ActionType // If the amount of returned information is significantly large, an identifier is // also returned. It can be used in a subsequent list action types call to return diff --git a/service/codepipeline/api_op_ListPipelineExecutions.go b/service/codepipeline/api_op_ListPipelineExecutions.go index 3925ea8225c..88a9228030e 100644 --- a/service/codepipeline/api_op_ListPipelineExecutions.go +++ b/service/codepipeline/api_op_ListPipelineExecutions.go @@ -56,7 +56,7 @@ type ListPipelineExecutionsOutput struct { NextToken *string // A list of executions in the history of a pipeline. - PipelineExecutionSummaries []*types.PipelineExecutionSummary + PipelineExecutionSummaries []types.PipelineExecutionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codepipeline/api_op_ListPipelines.go b/service/codepipeline/api_op_ListPipelines.go index 43c6a1aa380..09c61a571ae 100644 --- a/service/codepipeline/api_op_ListPipelines.go +++ b/service/codepipeline/api_op_ListPipelines.go @@ -44,7 +44,7 @@ type ListPipelinesOutput struct { NextToken *string // The list of pipelines. - Pipelines []*types.PipelineSummary + Pipelines []types.PipelineSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codepipeline/api_op_ListTagsForResource.go b/service/codepipeline/api_op_ListTagsForResource.go index e5bbb4c4efc..c47e2dcd893 100644 --- a/service/codepipeline/api_op_ListTagsForResource.go +++ b/service/codepipeline/api_op_ListTagsForResource.go @@ -52,7 +52,7 @@ type ListTagsForResourceOutput struct { NextToken *string // The tags for the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codepipeline/api_op_ListWebhooks.go b/service/codepipeline/api_op_ListWebhooks.go index bbd317df840..87cc00f6fa1 100644 --- a/service/codepipeline/api_op_ListWebhooks.go +++ b/service/codepipeline/api_op_ListWebhooks.go @@ -49,7 +49,7 @@ type ListWebhooksOutput struct { // The JSON detail returned for each webhook in the list output for the // ListWebhooks call. - Webhooks []*types.ListWebhookItem + Webhooks []types.ListWebhookItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codepipeline/api_op_PollForJobs.go b/service/codepipeline/api_op_PollForJobs.go index 8b37c7fc538..8955cae98ce 100644 --- a/service/codepipeline/api_op_PollForJobs.go +++ b/service/codepipeline/api_op_PollForJobs.go @@ -48,14 +48,14 @@ type PollForJobsInput struct { // properties, this value must be null or an empty map. For an action type with a // queryable property, you must supply that property as a key in the map. Only jobs // whose action configuration matches the mapped value are returned. - QueryParam map[string]*string + QueryParam map[string]string } // Represents the output of a PollForJobs action. type PollForJobsOutput struct { // Information about the jobs to take action on. - Jobs []*types.Job + Jobs []types.Job // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codepipeline/api_op_PollForThirdPartyJobs.go b/service/codepipeline/api_op_PollForThirdPartyJobs.go index 6b8842b420f..b89c0e32c58 100644 --- a/service/codepipeline/api_op_PollForThirdPartyJobs.go +++ b/service/codepipeline/api_op_PollForThirdPartyJobs.go @@ -47,7 +47,7 @@ type PollForThirdPartyJobsInput struct { type PollForThirdPartyJobsOutput struct { // Information about the jobs to take action on. - Jobs []*types.ThirdPartyJob + Jobs []types.ThirdPartyJob // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codepipeline/api_op_PutActionRevision.go b/service/codepipeline/api_op_PutActionRevision.go index 3ddfcbf9e31..a9731b08f59 100644 --- a/service/codepipeline/api_op_PutActionRevision.go +++ b/service/codepipeline/api_op_PutActionRevision.go @@ -56,7 +56,7 @@ type PutActionRevisionOutput struct { // Indicates whether the artifact revision was previously used in an execution of // the specified pipeline. - NewRevision *bool + NewRevision bool // The ID of the current workflow state of the pipeline. PipelineExecutionId *string diff --git a/service/codepipeline/api_op_PutJobSuccessResult.go b/service/codepipeline/api_op_PutJobSuccessResult.go index 45fca11591c..c9efc6af35d 100644 --- a/service/codepipeline/api_op_PutJobSuccessResult.go +++ b/service/codepipeline/api_op_PutJobSuccessResult.go @@ -55,7 +55,7 @@ type PutJobSuccessResultInput struct { // Key-value pairs produced as output by a job worker that can be made available to // a downstream action configuration. outputVariables can be included only when // there is no continuation token on the request. - OutputVariables map[string]*string + OutputVariables map[string]string } type PutJobSuccessResultOutput struct { diff --git a/service/codepipeline/api_op_PutWebhook.go b/service/codepipeline/api_op_PutWebhook.go index ea13fa5e553..d39fd64593b 100644 --- a/service/codepipeline/api_op_PutWebhook.go +++ b/service/codepipeline/api_op_PutWebhook.go @@ -45,7 +45,7 @@ type PutWebhookInput struct { Webhook *types.WebhookDefinition // The tags for the webhook. - Tags []*types.Tag + Tags []types.Tag } type PutWebhookOutput struct { diff --git a/service/codepipeline/api_op_StopPipelineExecution.go b/service/codepipeline/api_op_StopPipelineExecution.go index 4a5925d86b2..8af6d711113 100644 --- a/service/codepipeline/api_op_StopPipelineExecution.go +++ b/service/codepipeline/api_op_StopPipelineExecution.go @@ -47,7 +47,7 @@ type StopPipelineExecutionInput struct { // Use this option to stop the pipeline execution by abandoning, rather than // finishing, in-progress actions. This option can lead to failed or // out-of-sequence tasks. - Abandon *bool + Abandon bool // Use this option to enter comments, such as the reason the pipeline was stopped. Reason *string diff --git a/service/codepipeline/api_op_TagResource.go b/service/codepipeline/api_op_TagResource.go index 135e180efcb..27fc717327a 100644 --- a/service/codepipeline/api_op_TagResource.go +++ b/service/codepipeline/api_op_TagResource.go @@ -38,7 +38,7 @@ type TagResourceInput struct { // The tags you want to modify or add to the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/codepipeline/api_op_UntagResource.go b/service/codepipeline/api_op_UntagResource.go index c61ee51dca9..baf4bf2dc9f 100644 --- a/service/codepipeline/api_op_UntagResource.go +++ b/service/codepipeline/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The list of keys for the tags to be removed from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/codepipeline/deserializers.go b/service/codepipeline/deserializers.go index 09e02005d70..c1095d989c4 100644 --- a/service/codepipeline/deserializers.go +++ b/service/codepipeline/deserializers.go @@ -5643,7 +5643,7 @@ func awsAwsjson11_deserializeDocumentActionConfiguration(v **types.ActionConfigu return nil } -func awsAwsjson11_deserializeDocumentActionConfigurationMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentActionConfigurationMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5656,21 +5656,21 @@ func awsAwsjson11_deserializeDocumentActionConfigurationMap(v *map[string]*strin return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ActionConfigurationValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -5707,7 +5707,7 @@ func awsAwsjson11_deserializeDocumentActionConfigurationProperty(v **types.Actio if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "key": @@ -5716,7 +5716,7 @@ func awsAwsjson11_deserializeDocumentActionConfigurationProperty(v **types.Actio if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Key = &jtv + sv.Key = jtv } case "name": @@ -5725,7 +5725,7 @@ func awsAwsjson11_deserializeDocumentActionConfigurationProperty(v **types.Actio if !ok { return fmt.Errorf("expected ActionConfigurationKey to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "queryable": @@ -5734,7 +5734,7 @@ func awsAwsjson11_deserializeDocumentActionConfigurationProperty(v **types.Actio if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Queryable = &jtv + sv.Queryable = jtv } case "required": @@ -5743,7 +5743,7 @@ func awsAwsjson11_deserializeDocumentActionConfigurationProperty(v **types.Actio if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Required = &jtv + sv.Required = jtv } case "secret": @@ -5752,7 +5752,7 @@ func awsAwsjson11_deserializeDocumentActionConfigurationProperty(v **types.Actio if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Secret = &jtv + sv.Secret = jtv } case "type": @@ -5773,7 +5773,7 @@ func awsAwsjson11_deserializeDocumentActionConfigurationProperty(v **types.Actio return nil } -func awsAwsjson11_deserializeDocumentActionConfigurationPropertyList(v *[]*types.ActionConfigurationProperty, value interface{}) error { +func awsAwsjson11_deserializeDocumentActionConfigurationPropertyList(v *[]types.ActionConfigurationProperty, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5786,18 +5786,20 @@ func awsAwsjson11_deserializeDocumentActionConfigurationPropertyList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActionConfigurationProperty + var cv []types.ActionConfigurationProperty if *v == nil { - cv = []*types.ActionConfigurationProperty{} + cv = []types.ActionConfigurationProperty{} } else { cv = *v } for _, value := range shape { - var col *types.ActionConfigurationProperty - if err := awsAwsjson11_deserializeDocumentActionConfigurationProperty(&col, value); err != nil { + var col types.ActionConfigurationProperty + destAddr := &col + if err := awsAwsjson11_deserializeDocumentActionConfigurationProperty(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5833,7 +5835,7 @@ func awsAwsjson11_deserializeDocumentActionContext(v **types.ActionContext, valu if !ok { return fmt.Errorf("expected ActionExecutionId to be of type string, got %T instead", value) } - sv.ActionExecutionId = &jtv + sv.ActionExecutionId = ptr.String(jtv) } case "name": @@ -5842,7 +5844,7 @@ func awsAwsjson11_deserializeDocumentActionContext(v **types.ActionContext, valu if !ok { return fmt.Errorf("expected ActionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5897,7 +5899,7 @@ func awsAwsjson11_deserializeDocumentActionDeclaration(v **types.ActionDeclarati if !ok { return fmt.Errorf("expected ActionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "namespace": @@ -5906,7 +5908,7 @@ func awsAwsjson11_deserializeDocumentActionDeclaration(v **types.ActionDeclarati if !ok { return fmt.Errorf("expected ActionNamespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "outputArtifacts": @@ -5920,7 +5922,7 @@ func awsAwsjson11_deserializeDocumentActionDeclaration(v **types.ActionDeclarati if !ok { return fmt.Errorf("expected AWSRegionName to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "roleArn": @@ -5929,7 +5931,7 @@ func awsAwsjson11_deserializeDocumentActionDeclaration(v **types.ActionDeclarati if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "runOrder": @@ -5987,7 +5989,7 @@ func awsAwsjson11_deserializeDocumentActionExecution(v **types.ActionExecution, if !ok { return fmt.Errorf("expected ExecutionId to be of type string, got %T instead", value) } - sv.ExternalExecutionId = &jtv + sv.ExternalExecutionId = ptr.String(jtv) } case "externalExecutionUrl": @@ -5996,7 +5998,7 @@ func awsAwsjson11_deserializeDocumentActionExecution(v **types.ActionExecution, if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ExternalExecutionUrl = &jtv + sv.ExternalExecutionUrl = ptr.String(jtv) } case "lastStatusChange": @@ -6018,7 +6020,7 @@ func awsAwsjson11_deserializeDocumentActionExecution(v **types.ActionExecution, if !ok { return fmt.Errorf("expected LastUpdatedBy to be of type string, got %T instead", value) } - sv.LastUpdatedBy = &jtv + sv.LastUpdatedBy = ptr.String(jtv) } case "percentComplete": @@ -6049,7 +6051,7 @@ func awsAwsjson11_deserializeDocumentActionExecution(v **types.ActionExecution, if !ok { return fmt.Errorf("expected ExecutionSummary to be of type string, got %T instead", value) } - sv.Summary = &jtv + sv.Summary = ptr.String(jtv) } case "token": @@ -6058,7 +6060,7 @@ func awsAwsjson11_deserializeDocumentActionExecution(v **types.ActionExecution, if !ok { return fmt.Errorf("expected ActionExecutionToken to be of type string, got %T instead", value) } - sv.Token = &jtv + sv.Token = ptr.String(jtv) } default: @@ -6098,7 +6100,7 @@ func awsAwsjson11_deserializeDocumentActionExecutionDetail(v **types.ActionExecu if !ok { return fmt.Errorf("expected ActionExecutionId to be of type string, got %T instead", value) } - sv.ActionExecutionId = &jtv + sv.ActionExecutionId = ptr.String(jtv) } case "actionName": @@ -6107,7 +6109,7 @@ func awsAwsjson11_deserializeDocumentActionExecutionDetail(v **types.ActionExecu if !ok { return fmt.Errorf("expected ActionName to be of type string, got %T instead", value) } - sv.ActionName = &jtv + sv.ActionName = ptr.String(jtv) } case "input": @@ -6139,7 +6141,7 @@ func awsAwsjson11_deserializeDocumentActionExecutionDetail(v **types.ActionExecu if !ok { return fmt.Errorf("expected PipelineExecutionId to be of type string, got %T instead", value) } - sv.PipelineExecutionId = &jtv + sv.PipelineExecutionId = ptr.String(jtv) } case "pipelineVersion": @@ -6161,7 +6163,7 @@ func awsAwsjson11_deserializeDocumentActionExecutionDetail(v **types.ActionExecu if !ok { return fmt.Errorf("expected StageName to be of type string, got %T instead", value) } - sv.StageName = &jtv + sv.StageName = ptr.String(jtv) } case "startTime": @@ -6195,7 +6197,7 @@ func awsAwsjson11_deserializeDocumentActionExecutionDetail(v **types.ActionExecu return nil } -func awsAwsjson11_deserializeDocumentActionExecutionDetailList(v *[]*types.ActionExecutionDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentActionExecutionDetailList(v *[]types.ActionExecutionDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6208,18 +6210,20 @@ func awsAwsjson11_deserializeDocumentActionExecutionDetailList(v *[]*types.Actio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActionExecutionDetail + var cv []types.ActionExecutionDetail if *v == nil { - cv = []*types.ActionExecutionDetail{} + cv = []types.ActionExecutionDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ActionExecutionDetail - if err := awsAwsjson11_deserializeDocumentActionExecutionDetail(&col, value); err != nil { + var col types.ActionExecutionDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentActionExecutionDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6270,7 +6274,7 @@ func awsAwsjson11_deserializeDocumentActionExecutionInput(v **types.ActionExecut if !ok { return fmt.Errorf("expected ActionNamespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "region": @@ -6279,7 +6283,7 @@ func awsAwsjson11_deserializeDocumentActionExecutionInput(v **types.ActionExecut if !ok { return fmt.Errorf("expected AWSRegionName to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "resolvedConfiguration": @@ -6293,7 +6297,7 @@ func awsAwsjson11_deserializeDocumentActionExecutionInput(v **types.ActionExecut if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -6379,7 +6383,7 @@ func awsAwsjson11_deserializeDocumentActionExecutionResult(v **types.ActionExecu if !ok { return fmt.Errorf("expected ExternalExecutionId to be of type string, got %T instead", value) } - sv.ExternalExecutionId = &jtv + sv.ExternalExecutionId = ptr.String(jtv) } case "externalExecutionSummary": @@ -6388,7 +6392,7 @@ func awsAwsjson11_deserializeDocumentActionExecutionResult(v **types.ActionExecu if !ok { return fmt.Errorf("expected ExternalExecutionSummary to be of type string, got %T instead", value) } - sv.ExternalExecutionSummary = &jtv + sv.ExternalExecutionSummary = ptr.String(jtv) } case "externalExecutionUrl": @@ -6397,7 +6401,7 @@ func awsAwsjson11_deserializeDocumentActionExecutionResult(v **types.ActionExecu if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ExternalExecutionUrl = &jtv + sv.ExternalExecutionUrl = ptr.String(jtv) } default: @@ -6437,7 +6441,7 @@ func awsAwsjson11_deserializeDocumentActionNotFoundException(v **types.ActionNot if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6490,7 +6494,7 @@ func awsAwsjson11_deserializeDocumentActionRevision(v **types.ActionRevision, va if !ok { return fmt.Errorf("expected RevisionChangeIdentifier to be of type string, got %T instead", value) } - sv.RevisionChangeId = &jtv + sv.RevisionChangeId = ptr.String(jtv) } case "revisionId": @@ -6499,7 +6503,7 @@ func awsAwsjson11_deserializeDocumentActionRevision(v **types.ActionRevision, va if !ok { return fmt.Errorf("expected Revision to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } default: @@ -6539,7 +6543,7 @@ func awsAwsjson11_deserializeDocumentActionState(v **types.ActionState, value in if !ok { return fmt.Errorf("expected ActionName to be of type string, got %T instead", value) } - sv.ActionName = &jtv + sv.ActionName = ptr.String(jtv) } case "currentRevision": @@ -6553,7 +6557,7 @@ func awsAwsjson11_deserializeDocumentActionState(v **types.ActionState, value in if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.EntityUrl = &jtv + sv.EntityUrl = ptr.String(jtv) } case "latestExecution": @@ -6567,7 +6571,7 @@ func awsAwsjson11_deserializeDocumentActionState(v **types.ActionState, value in if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.RevisionUrl = &jtv + sv.RevisionUrl = ptr.String(jtv) } default: @@ -6579,7 +6583,7 @@ func awsAwsjson11_deserializeDocumentActionState(v **types.ActionState, value in return nil } -func awsAwsjson11_deserializeDocumentActionStateList(v *[]*types.ActionState, value interface{}) error { +func awsAwsjson11_deserializeDocumentActionStateList(v *[]types.ActionState, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6592,18 +6596,20 @@ func awsAwsjson11_deserializeDocumentActionStateList(v *[]*types.ActionState, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActionState + var cv []types.ActionState if *v == nil { - cv = []*types.ActionState{} + cv = []types.ActionState{} } else { cv = *v } for _, value := range shape { - var col *types.ActionState - if err := awsAwsjson11_deserializeDocumentActionState(&col, value); err != nil { + var col types.ActionState + destAddr := &col + if err := awsAwsjson11_deserializeDocumentActionState(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6713,7 +6719,7 @@ func awsAwsjson11_deserializeDocumentActionTypeId(v **types.ActionTypeId, value if !ok { return fmt.Errorf("expected ActionProvider to be of type string, got %T instead", value) } - sv.Provider = &jtv + sv.Provider = ptr.String(jtv) } case "version": @@ -6722,7 +6728,7 @@ func awsAwsjson11_deserializeDocumentActionTypeId(v **types.ActionTypeId, value if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -6734,7 +6740,7 @@ func awsAwsjson11_deserializeDocumentActionTypeId(v **types.ActionTypeId, value return nil } -func awsAwsjson11_deserializeDocumentActionTypeList(v *[]*types.ActionType, value interface{}) error { +func awsAwsjson11_deserializeDocumentActionTypeList(v *[]types.ActionType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6747,18 +6753,20 @@ func awsAwsjson11_deserializeDocumentActionTypeList(v *[]*types.ActionType, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActionType + var cv []types.ActionType if *v == nil { - cv = []*types.ActionType{} + cv = []types.ActionType{} } else { cv = *v } for _, value := range shape { - var col *types.ActionType - if err := awsAwsjson11_deserializeDocumentActionType(&col, value); err != nil { + var col types.ActionType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentActionType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6794,7 +6802,7 @@ func awsAwsjson11_deserializeDocumentActionTypeNotFoundException(v **types.Actio if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6834,7 +6842,7 @@ func awsAwsjson11_deserializeDocumentActionTypeSettings(v **types.ActionTypeSett if !ok { return fmt.Errorf("expected UrlTemplate to be of type string, got %T instead", value) } - sv.EntityUrlTemplate = &jtv + sv.EntityUrlTemplate = ptr.String(jtv) } case "executionUrlTemplate": @@ -6843,7 +6851,7 @@ func awsAwsjson11_deserializeDocumentActionTypeSettings(v **types.ActionTypeSett if !ok { return fmt.Errorf("expected UrlTemplate to be of type string, got %T instead", value) } - sv.ExecutionUrlTemplate = &jtv + sv.ExecutionUrlTemplate = ptr.String(jtv) } case "revisionUrlTemplate": @@ -6852,7 +6860,7 @@ func awsAwsjson11_deserializeDocumentActionTypeSettings(v **types.ActionTypeSett if !ok { return fmt.Errorf("expected UrlTemplate to be of type string, got %T instead", value) } - sv.RevisionUrlTemplate = &jtv + sv.RevisionUrlTemplate = ptr.String(jtv) } case "thirdPartyConfigurationUrl": @@ -6861,7 +6869,7 @@ func awsAwsjson11_deserializeDocumentActionTypeSettings(v **types.ActionTypeSett if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ThirdPartyConfigurationUrl = &jtv + sv.ThirdPartyConfigurationUrl = ptr.String(jtv) } default: @@ -6901,7 +6909,7 @@ func awsAwsjson11_deserializeDocumentApprovalAlreadyCompletedException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6946,7 +6954,7 @@ func awsAwsjson11_deserializeDocumentArtifact(v **types.Artifact, value interfac if !ok { return fmt.Errorf("expected ArtifactName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "revision": @@ -6955,7 +6963,7 @@ func awsAwsjson11_deserializeDocumentArtifact(v **types.Artifact, value interfac if !ok { return fmt.Errorf("expected Revision to be of type string, got %T instead", value) } - sv.Revision = &jtv + sv.Revision = ptr.String(jtv) } default: @@ -6995,7 +7003,7 @@ func awsAwsjson11_deserializeDocumentArtifactDetail(v **types.ArtifactDetail, va if !ok { return fmt.Errorf("expected ArtifactName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "s3location": @@ -7012,7 +7020,7 @@ func awsAwsjson11_deserializeDocumentArtifactDetail(v **types.ArtifactDetail, va return nil } -func awsAwsjson11_deserializeDocumentArtifactDetailList(v *[]*types.ArtifactDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentArtifactDetailList(v *[]types.ArtifactDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7025,18 +7033,20 @@ func awsAwsjson11_deserializeDocumentArtifactDetailList(v *[]*types.ArtifactDeta return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ArtifactDetail + var cv []types.ArtifactDetail if *v == nil { - cv = []*types.ArtifactDetail{} + cv = []types.ArtifactDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ArtifactDetail - if err := awsAwsjson11_deserializeDocumentArtifactDetail(&col, value); err != nil { + var col types.ArtifactDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentArtifactDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7076,7 +7086,7 @@ func awsAwsjson11_deserializeDocumentArtifactDetails(v **types.ArtifactDetails, if err != nil { return err } - sv.MaximumCount = ptr.Int32(int32(i64)) + sv.MaximumCount = int32(i64) } case "minimumCount": @@ -7089,7 +7099,7 @@ func awsAwsjson11_deserializeDocumentArtifactDetails(v **types.ArtifactDetails, if err != nil { return err } - sv.MinimumCount = ptr.Int32(int32(i64)) + sv.MinimumCount = int32(i64) } default: @@ -7101,7 +7111,7 @@ func awsAwsjson11_deserializeDocumentArtifactDetails(v **types.ArtifactDetails, return nil } -func awsAwsjson11_deserializeDocumentArtifactList(v *[]*types.Artifact, value interface{}) error { +func awsAwsjson11_deserializeDocumentArtifactList(v *[]types.Artifact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7114,18 +7124,20 @@ func awsAwsjson11_deserializeDocumentArtifactList(v *[]*types.Artifact, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Artifact + var cv []types.Artifact if *v == nil { - cv = []*types.Artifact{} + cv = []types.Artifact{} } else { cv = *v } for _, value := range shape { - var col *types.Artifact - if err := awsAwsjson11_deserializeDocumentArtifact(&col, value); err != nil { + var col types.Artifact + destAddr := &col + if err := awsAwsjson11_deserializeDocumentArtifact(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7219,7 +7231,7 @@ func awsAwsjson11_deserializeDocumentArtifactRevision(v **types.ArtifactRevision if !ok { return fmt.Errorf("expected ArtifactName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "revisionChangeIdentifier": @@ -7228,7 +7240,7 @@ func awsAwsjson11_deserializeDocumentArtifactRevision(v **types.ArtifactRevision if !ok { return fmt.Errorf("expected RevisionChangeIdentifier to be of type string, got %T instead", value) } - sv.RevisionChangeIdentifier = &jtv + sv.RevisionChangeIdentifier = ptr.String(jtv) } case "revisionId": @@ -7237,7 +7249,7 @@ func awsAwsjson11_deserializeDocumentArtifactRevision(v **types.ArtifactRevision if !ok { return fmt.Errorf("expected Revision to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "revisionSummary": @@ -7246,7 +7258,7 @@ func awsAwsjson11_deserializeDocumentArtifactRevision(v **types.ArtifactRevision if !ok { return fmt.Errorf("expected RevisionSummary to be of type string, got %T instead", value) } - sv.RevisionSummary = &jtv + sv.RevisionSummary = ptr.String(jtv) } case "revisionUrl": @@ -7255,7 +7267,7 @@ func awsAwsjson11_deserializeDocumentArtifactRevision(v **types.ArtifactRevision if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.RevisionUrl = &jtv + sv.RevisionUrl = ptr.String(jtv) } default: @@ -7267,7 +7279,7 @@ func awsAwsjson11_deserializeDocumentArtifactRevision(v **types.ArtifactRevision return nil } -func awsAwsjson11_deserializeDocumentArtifactRevisionList(v *[]*types.ArtifactRevision, value interface{}) error { +func awsAwsjson11_deserializeDocumentArtifactRevisionList(v *[]types.ArtifactRevision, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7280,18 +7292,20 @@ func awsAwsjson11_deserializeDocumentArtifactRevisionList(v *[]*types.ArtifactRe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ArtifactRevision + var cv []types.ArtifactRevision if *v == nil { - cv = []*types.ArtifactRevision{} + cv = []types.ArtifactRevision{} } else { cv = *v } for _, value := range shape { - var col *types.ArtifactRevision - if err := awsAwsjson11_deserializeDocumentArtifactRevision(&col, value); err != nil { + var col types.ArtifactRevision + destAddr := &col + if err := awsAwsjson11_deserializeDocumentArtifactRevision(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7332,7 +7346,7 @@ func awsAwsjson11_deserializeDocumentArtifactStore(v **types.ArtifactStore, valu if !ok { return fmt.Errorf("expected ArtifactStoreLocation to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "type": @@ -7353,7 +7367,7 @@ func awsAwsjson11_deserializeDocumentArtifactStore(v **types.ArtifactStore, valu return nil } -func awsAwsjson11_deserializeDocumentArtifactStoreMap(v *map[string]*types.ArtifactStore, value interface{}) error { +func awsAwsjson11_deserializeDocumentArtifactStoreMap(v *map[string]types.ArtifactStore, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7366,18 +7380,21 @@ func awsAwsjson11_deserializeDocumentArtifactStoreMap(v *map[string]*types.Artif return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.ArtifactStore + var mv map[string]types.ArtifactStore if *v == nil { - mv = map[string]*types.ArtifactStore{} + mv = map[string]types.ArtifactStore{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.ArtifactStore - if err := awsAwsjson11_deserializeDocumentArtifactStore(&parsedVal, value); err != nil { + var parsedVal types.ArtifactStore + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentArtifactStore(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -7413,7 +7430,7 @@ func awsAwsjson11_deserializeDocumentAWSSessionCredentials(v **types.AWSSessionC if !ok { return fmt.Errorf("expected AccessKeyId to be of type string, got %T instead", value) } - sv.AccessKeyId = &jtv + sv.AccessKeyId = ptr.String(jtv) } case "secretAccessKey": @@ -7422,7 +7439,7 @@ func awsAwsjson11_deserializeDocumentAWSSessionCredentials(v **types.AWSSessionC if !ok { return fmt.Errorf("expected SecretAccessKey to be of type string, got %T instead", value) } - sv.SecretAccessKey = &jtv + sv.SecretAccessKey = ptr.String(jtv) } case "sessionToken": @@ -7431,7 +7448,7 @@ func awsAwsjson11_deserializeDocumentAWSSessionCredentials(v **types.AWSSessionC if !ok { return fmt.Errorf("expected SessionToken to be of type string, got %T instead", value) } - sv.SessionToken = &jtv + sv.SessionToken = ptr.String(jtv) } default: @@ -7471,7 +7488,7 @@ func awsAwsjson11_deserializeDocumentBlockerDeclaration(v **types.BlockerDeclara if !ok { return fmt.Errorf("expected BlockerName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "type": @@ -7520,7 +7537,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7560,7 +7577,7 @@ func awsAwsjson11_deserializeDocumentDuplicatedStopRequestException(v **types.Du if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7600,7 +7617,7 @@ func awsAwsjson11_deserializeDocumentEncryptionKey(v **types.EncryptionKey, valu if !ok { return fmt.Errorf("expected EncryptionKeyId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "type": @@ -7649,7 +7666,7 @@ func awsAwsjson11_deserializeDocumentErrorDetails(v **types.ErrorDetails, value if !ok { return fmt.Errorf("expected Code to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -7658,7 +7675,7 @@ func awsAwsjson11_deserializeDocumentErrorDetails(v **types.ErrorDetails, value if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7698,7 +7715,7 @@ func awsAwsjson11_deserializeDocumentExecutionTrigger(v **types.ExecutionTrigger if !ok { return fmt.Errorf("expected TriggerDetail to be of type string, got %T instead", value) } - sv.TriggerDetail = &jtv + sv.TriggerDetail = ptr.String(jtv) } case "triggerType": @@ -7747,7 +7764,7 @@ func awsAwsjson11_deserializeDocumentInputArtifact(v **types.InputArtifact, valu if !ok { return fmt.Errorf("expected ArtifactName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7759,7 +7776,7 @@ func awsAwsjson11_deserializeDocumentInputArtifact(v **types.InputArtifact, valu return nil } -func awsAwsjson11_deserializeDocumentInputArtifactList(v *[]*types.InputArtifact, value interface{}) error { +func awsAwsjson11_deserializeDocumentInputArtifactList(v *[]types.InputArtifact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7772,18 +7789,20 @@ func awsAwsjson11_deserializeDocumentInputArtifactList(v *[]*types.InputArtifact return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputArtifact + var cv []types.InputArtifact if *v == nil { - cv = []*types.InputArtifact{} + cv = []types.InputArtifact{} } else { cv = *v } for _, value := range shape { - var col *types.InputArtifact - if err := awsAwsjson11_deserializeDocumentInputArtifact(&col, value); err != nil { + var col types.InputArtifact + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInputArtifact(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7819,7 +7838,7 @@ func awsAwsjson11_deserializeDocumentInvalidActionDeclarationException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7859,7 +7878,7 @@ func awsAwsjson11_deserializeDocumentInvalidApprovalTokenException(v **types.Inv if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7899,7 +7918,7 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7939,7 +7958,7 @@ func awsAwsjson11_deserializeDocumentInvalidBlockerDeclarationException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7979,7 +7998,7 @@ func awsAwsjson11_deserializeDocumentInvalidClientTokenException(v **types.Inval if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8019,7 +8038,7 @@ func awsAwsjson11_deserializeDocumentInvalidJobException(v **types.InvalidJobExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8059,7 +8078,7 @@ func awsAwsjson11_deserializeDocumentInvalidJobStateException(v **types.InvalidJ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8099,7 +8118,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8139,7 +8158,7 @@ func awsAwsjson11_deserializeDocumentInvalidNonceException(v **types.InvalidNonc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8179,7 +8198,7 @@ func awsAwsjson11_deserializeDocumentInvalidStageDeclarationException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8219,7 +8238,7 @@ func awsAwsjson11_deserializeDocumentInvalidStructureException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8259,7 +8278,7 @@ func awsAwsjson11_deserializeDocumentInvalidTagsException(v **types.InvalidTagsE if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8299,7 +8318,7 @@ func awsAwsjson11_deserializeDocumentInvalidWebhookAuthenticationParametersExcep if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8339,7 +8358,7 @@ func awsAwsjson11_deserializeDocumentInvalidWebhookFilterPatternException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8379,7 +8398,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "data": @@ -8393,7 +8412,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "nonce": @@ -8402,7 +8421,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected Nonce to be of type string, got %T instead", value) } - sv.Nonce = &jtv + sv.Nonce = ptr.String(jtv) } default: @@ -8457,7 +8476,7 @@ func awsAwsjson11_deserializeDocumentJobData(v **types.JobData, value interface{ if !ok { return fmt.Errorf("expected ContinuationToken to be of type string, got %T instead", value) } - sv.ContinuationToken = &jtv + sv.ContinuationToken = ptr.String(jtv) } case "encryptionKey": @@ -8517,7 +8536,7 @@ func awsAwsjson11_deserializeDocumentJobDetails(v **types.JobDetails, value inte if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "data": @@ -8531,7 +8550,7 @@ func awsAwsjson11_deserializeDocumentJobDetails(v **types.JobDetails, value inte if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -8543,7 +8562,7 @@ func awsAwsjson11_deserializeDocumentJobDetails(v **types.JobDetails, value inte return nil } -func awsAwsjson11_deserializeDocumentJobList(v *[]*types.Job, value interface{}) error { +func awsAwsjson11_deserializeDocumentJobList(v *[]types.Job, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8556,18 +8575,20 @@ func awsAwsjson11_deserializeDocumentJobList(v *[]*types.Job, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Job + var cv []types.Job if *v == nil { - cv = []*types.Job{} + cv = []types.Job{} } else { cv = *v } for _, value := range shape { - var col *types.Job - if err := awsAwsjson11_deserializeDocumentJob(&col, value); err != nil { + var col types.Job + destAddr := &col + if err := awsAwsjson11_deserializeDocumentJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8603,7 +8624,7 @@ func awsAwsjson11_deserializeDocumentJobNotFoundException(v **types.JobNotFoundE if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8643,7 +8664,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8683,7 +8704,7 @@ func awsAwsjson11_deserializeDocumentListWebhookItem(v **types.ListWebhookItem, if !ok { return fmt.Errorf("expected WebhookArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "definition": @@ -8697,7 +8718,7 @@ func awsAwsjson11_deserializeDocumentListWebhookItem(v **types.ListWebhookItem, if !ok { return fmt.Errorf("expected WebhookErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "errorMessage": @@ -8706,7 +8727,7 @@ func awsAwsjson11_deserializeDocumentListWebhookItem(v **types.ListWebhookItem, if !ok { return fmt.Errorf("expected WebhookErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "lastTriggered": @@ -8733,7 +8754,7 @@ func awsAwsjson11_deserializeDocumentListWebhookItem(v **types.ListWebhookItem, if !ok { return fmt.Errorf("expected WebhookUrl to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -8773,7 +8794,7 @@ func awsAwsjson11_deserializeDocumentNotLatestPipelineExecutionException(v **typ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8813,7 +8834,7 @@ func awsAwsjson11_deserializeDocumentOutputArtifact(v **types.OutputArtifact, va if !ok { return fmt.Errorf("expected ArtifactName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8825,7 +8846,7 @@ func awsAwsjson11_deserializeDocumentOutputArtifact(v **types.OutputArtifact, va return nil } -func awsAwsjson11_deserializeDocumentOutputArtifactList(v *[]*types.OutputArtifact, value interface{}) error { +func awsAwsjson11_deserializeDocumentOutputArtifactList(v *[]types.OutputArtifact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8838,18 +8859,20 @@ func awsAwsjson11_deserializeDocumentOutputArtifactList(v *[]*types.OutputArtifa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutputArtifact + var cv []types.OutputArtifact if *v == nil { - cv = []*types.OutputArtifact{} + cv = []types.OutputArtifact{} } else { cv = *v } for _, value := range shape { - var col *types.OutputArtifact - if err := awsAwsjson11_deserializeDocumentOutputArtifact(&col, value); err != nil { + var col types.OutputArtifact + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOutputArtifact(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8857,7 +8880,7 @@ func awsAwsjson11_deserializeDocumentOutputArtifactList(v *[]*types.OutputArtifa return nil } -func awsAwsjson11_deserializeDocumentOutputVariablesMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentOutputVariablesMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8870,21 +8893,21 @@ func awsAwsjson11_deserializeDocumentOutputVariablesMap(v *map[string]*string, v return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected OutputVariablesValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -8921,7 +8944,7 @@ func awsAwsjson11_deserializeDocumentOutputVariablesSizeExceededException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8966,7 +8989,7 @@ func awsAwsjson11_deserializeDocumentPipelineContext(v **types.PipelineContext, if !ok { return fmt.Errorf("expected PipelineArn to be of type string, got %T instead", value) } - sv.PipelineArn = &jtv + sv.PipelineArn = ptr.String(jtv) } case "pipelineExecutionId": @@ -8975,7 +8998,7 @@ func awsAwsjson11_deserializeDocumentPipelineContext(v **types.PipelineContext, if !ok { return fmt.Errorf("expected PipelineExecutionId to be of type string, got %T instead", value) } - sv.PipelineExecutionId = &jtv + sv.PipelineExecutionId = ptr.String(jtv) } case "pipelineName": @@ -8984,7 +9007,7 @@ func awsAwsjson11_deserializeDocumentPipelineContext(v **types.PipelineContext, if !ok { return fmt.Errorf("expected PipelineName to be of type string, got %T instead", value) } - sv.PipelineName = &jtv + sv.PipelineName = ptr.String(jtv) } case "stage": @@ -9039,7 +9062,7 @@ func awsAwsjson11_deserializeDocumentPipelineDeclaration(v **types.PipelineDecla if !ok { return fmt.Errorf("expected PipelineName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "roleArn": @@ -9048,7 +9071,7 @@ func awsAwsjson11_deserializeDocumentPipelineDeclaration(v **types.PipelineDecla if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "stages": @@ -9111,7 +9134,7 @@ func awsAwsjson11_deserializeDocumentPipelineExecution(v **types.PipelineExecuti if !ok { return fmt.Errorf("expected PipelineExecutionId to be of type string, got %T instead", value) } - sv.PipelineExecutionId = &jtv + sv.PipelineExecutionId = ptr.String(jtv) } case "pipelineName": @@ -9120,7 +9143,7 @@ func awsAwsjson11_deserializeDocumentPipelineExecution(v **types.PipelineExecuti if !ok { return fmt.Errorf("expected PipelineName to be of type string, got %T instead", value) } - sv.PipelineName = &jtv + sv.PipelineName = ptr.String(jtv) } case "pipelineVersion": @@ -9182,7 +9205,7 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionNotFoundException(v **type if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9222,7 +9245,7 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionNotStoppableException(v ** if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9275,7 +9298,7 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionSummary(v **types.Pipeline if !ok { return fmt.Errorf("expected PipelineExecutionId to be of type string, got %T instead", value) } - sv.PipelineExecutionId = &jtv + sv.PipelineExecutionId = ptr.String(jtv) } case "sourceRevisions": @@ -9324,7 +9347,7 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionSummary(v **types.Pipeline return nil } -func awsAwsjson11_deserializeDocumentPipelineExecutionSummaryList(v *[]*types.PipelineExecutionSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentPipelineExecutionSummaryList(v *[]types.PipelineExecutionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9337,18 +9360,20 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionSummaryList(v *[]*types.Pi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PipelineExecutionSummary + var cv []types.PipelineExecutionSummary if *v == nil { - cv = []*types.PipelineExecutionSummary{} + cv = []types.PipelineExecutionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.PipelineExecutionSummary - if err := awsAwsjson11_deserializeDocumentPipelineExecutionSummary(&col, value); err != nil { + var col types.PipelineExecutionSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPipelineExecutionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9356,7 +9381,7 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionSummaryList(v *[]*types.Pi return nil } -func awsAwsjson11_deserializeDocumentPipelineList(v *[]*types.PipelineSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentPipelineList(v *[]types.PipelineSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9369,18 +9394,20 @@ func awsAwsjson11_deserializeDocumentPipelineList(v *[]*types.PipelineSummary, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PipelineSummary + var cv []types.PipelineSummary if *v == nil { - cv = []*types.PipelineSummary{} + cv = []types.PipelineSummary{} } else { cv = *v } for _, value := range shape { - var col *types.PipelineSummary - if err := awsAwsjson11_deserializeDocumentPipelineSummary(&col, value); err != nil { + var col types.PipelineSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPipelineSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9429,7 +9456,7 @@ func awsAwsjson11_deserializeDocumentPipelineMetadata(v **types.PipelineMetadata if !ok { return fmt.Errorf("expected PipelineArn to be of type string, got %T instead", value) } - sv.PipelineArn = &jtv + sv.PipelineArn = ptr.String(jtv) } case "updated": @@ -9482,7 +9509,7 @@ func awsAwsjson11_deserializeDocumentPipelineNameInUseException(v **types.Pipeli if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9522,7 +9549,7 @@ func awsAwsjson11_deserializeDocumentPipelineNotFoundException(v **types.Pipelin if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9534,7 +9561,7 @@ func awsAwsjson11_deserializeDocumentPipelineNotFoundException(v **types.Pipelin return nil } -func awsAwsjson11_deserializeDocumentPipelineStageDeclarationList(v *[]*types.StageDeclaration, value interface{}) error { +func awsAwsjson11_deserializeDocumentPipelineStageDeclarationList(v *[]types.StageDeclaration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9547,18 +9574,20 @@ func awsAwsjson11_deserializeDocumentPipelineStageDeclarationList(v *[]*types.St return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StageDeclaration + var cv []types.StageDeclaration if *v == nil { - cv = []*types.StageDeclaration{} + cv = []types.StageDeclaration{} } else { cv = *v } for _, value := range shape { - var col *types.StageDeclaration - if err := awsAwsjson11_deserializeDocumentStageDeclaration(&col, value); err != nil { + var col types.StageDeclaration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStageDeclaration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9607,7 +9636,7 @@ func awsAwsjson11_deserializeDocumentPipelineSummary(v **types.PipelineSummary, if !ok { return fmt.Errorf("expected PipelineName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "updated": @@ -9673,7 +9702,7 @@ func awsAwsjson11_deserializeDocumentPipelineVersionNotFoundException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9685,7 +9714,7 @@ func awsAwsjson11_deserializeDocumentPipelineVersionNotFoundException(v **types. return nil } -func awsAwsjson11_deserializeDocumentResolvedActionConfigurationMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentResolvedActionConfigurationMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9698,21 +9727,21 @@ func awsAwsjson11_deserializeDocumentResolvedActionConfigurationMap(v *map[strin return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -9749,7 +9778,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9789,7 +9818,7 @@ func awsAwsjson11_deserializeDocumentS3ArtifactLocation(v **types.S3ArtifactLoca if !ok { return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "objectKey": @@ -9798,7 +9827,7 @@ func awsAwsjson11_deserializeDocumentS3ArtifactLocation(v **types.S3ArtifactLoca if !ok { return fmt.Errorf("expected S3ObjectKey to be of type string, got %T instead", value) } - sv.ObjectKey = &jtv + sv.ObjectKey = ptr.String(jtv) } default: @@ -9838,7 +9867,7 @@ func awsAwsjson11_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "key": @@ -9847,7 +9876,7 @@ func awsAwsjson11_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } default: @@ -9887,7 +9916,7 @@ func awsAwsjson11_deserializeDocumentSourceRevision(v **types.SourceRevision, va if !ok { return fmt.Errorf("expected ActionName to be of type string, got %T instead", value) } - sv.ActionName = &jtv + sv.ActionName = ptr.String(jtv) } case "revisionId": @@ -9896,7 +9925,7 @@ func awsAwsjson11_deserializeDocumentSourceRevision(v **types.SourceRevision, va if !ok { return fmt.Errorf("expected Revision to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "revisionSummary": @@ -9905,7 +9934,7 @@ func awsAwsjson11_deserializeDocumentSourceRevision(v **types.SourceRevision, va if !ok { return fmt.Errorf("expected RevisionSummary to be of type string, got %T instead", value) } - sv.RevisionSummary = &jtv + sv.RevisionSummary = ptr.String(jtv) } case "revisionUrl": @@ -9914,7 +9943,7 @@ func awsAwsjson11_deserializeDocumentSourceRevision(v **types.SourceRevision, va if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.RevisionUrl = &jtv + sv.RevisionUrl = ptr.String(jtv) } default: @@ -9926,7 +9955,7 @@ func awsAwsjson11_deserializeDocumentSourceRevision(v **types.SourceRevision, va return nil } -func awsAwsjson11_deserializeDocumentSourceRevisionList(v *[]*types.SourceRevision, value interface{}) error { +func awsAwsjson11_deserializeDocumentSourceRevisionList(v *[]types.SourceRevision, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9939,18 +9968,20 @@ func awsAwsjson11_deserializeDocumentSourceRevisionList(v *[]*types.SourceRevisi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SourceRevision + var cv []types.SourceRevision if *v == nil { - cv = []*types.SourceRevision{} + cv = []types.SourceRevision{} } else { cv = *v } for _, value := range shape { - var col *types.SourceRevision - if err := awsAwsjson11_deserializeDocumentSourceRevision(&col, value); err != nil { + var col types.SourceRevision + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSourceRevision(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9958,7 +9989,7 @@ func awsAwsjson11_deserializeDocumentSourceRevisionList(v *[]*types.SourceRevisi return nil } -func awsAwsjson11_deserializeDocumentStageActionDeclarationList(v *[]*types.ActionDeclaration, value interface{}) error { +func awsAwsjson11_deserializeDocumentStageActionDeclarationList(v *[]types.ActionDeclaration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9971,18 +10002,20 @@ func awsAwsjson11_deserializeDocumentStageActionDeclarationList(v *[]*types.Acti return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActionDeclaration + var cv []types.ActionDeclaration if *v == nil { - cv = []*types.ActionDeclaration{} + cv = []types.ActionDeclaration{} } else { cv = *v } for _, value := range shape { - var col *types.ActionDeclaration - if err := awsAwsjson11_deserializeDocumentActionDeclaration(&col, value); err != nil { + var col types.ActionDeclaration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentActionDeclaration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9990,7 +10023,7 @@ func awsAwsjson11_deserializeDocumentStageActionDeclarationList(v *[]*types.Acti return nil } -func awsAwsjson11_deserializeDocumentStageBlockerDeclarationList(v *[]*types.BlockerDeclaration, value interface{}) error { +func awsAwsjson11_deserializeDocumentStageBlockerDeclarationList(v *[]types.BlockerDeclaration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10003,18 +10036,20 @@ func awsAwsjson11_deserializeDocumentStageBlockerDeclarationList(v *[]*types.Blo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BlockerDeclaration + var cv []types.BlockerDeclaration if *v == nil { - cv = []*types.BlockerDeclaration{} + cv = []types.BlockerDeclaration{} } else { cv = *v } for _, value := range shape { - var col *types.BlockerDeclaration - if err := awsAwsjson11_deserializeDocumentBlockerDeclaration(&col, value); err != nil { + var col types.BlockerDeclaration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBlockerDeclaration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10050,7 +10085,7 @@ func awsAwsjson11_deserializeDocumentStageContext(v **types.StageContext, value if !ok { return fmt.Errorf("expected StageName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10100,7 +10135,7 @@ func awsAwsjson11_deserializeDocumentStageDeclaration(v **types.StageDeclaration if !ok { return fmt.Errorf("expected StageName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10140,7 +10175,7 @@ func awsAwsjson11_deserializeDocumentStageExecution(v **types.StageExecution, va if !ok { return fmt.Errorf("expected PipelineExecutionId to be of type string, got %T instead", value) } - sv.PipelineExecutionId = &jtv + sv.PipelineExecutionId = ptr.String(jtv) } case "status": @@ -10189,7 +10224,7 @@ func awsAwsjson11_deserializeDocumentStageNotFoundException(v **types.StageNotFo if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10229,7 +10264,7 @@ func awsAwsjson11_deserializeDocumentStageNotRetryableException(v **types.StageN if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10284,7 +10319,7 @@ func awsAwsjson11_deserializeDocumentStageState(v **types.StageState, value inte if !ok { return fmt.Errorf("expected StageName to be of type string, got %T instead", value) } - sv.StageName = &jtv + sv.StageName = ptr.String(jtv) } default: @@ -10296,7 +10331,7 @@ func awsAwsjson11_deserializeDocumentStageState(v **types.StageState, value inte return nil } -func awsAwsjson11_deserializeDocumentStageStateList(v *[]*types.StageState, value interface{}) error { +func awsAwsjson11_deserializeDocumentStageStateList(v *[]types.StageState, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10309,18 +10344,20 @@ func awsAwsjson11_deserializeDocumentStageStateList(v *[]*types.StageState, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StageState + var cv []types.StageState if *v == nil { - cv = []*types.StageState{} + cv = []types.StageState{} } else { cv = *v } for _, value := range shape { - var col *types.StageState - if err := awsAwsjson11_deserializeDocumentStageState(&col, value); err != nil { + var col types.StageState + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStageState(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10356,7 +10393,7 @@ func awsAwsjson11_deserializeDocumentStopExecutionTrigger(v **types.StopExecutio if !ok { return fmt.Errorf("expected StopPipelineExecutionReason to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } default: @@ -10396,7 +10433,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -10405,7 +10442,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -10417,7 +10454,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10430,18 +10467,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10477,7 +10516,7 @@ func awsAwsjson11_deserializeDocumentThirdPartyJob(v **types.ThirdPartyJob, valu if !ok { return fmt.Errorf("expected ClientId to be of type string, got %T instead", value) } - sv.ClientId = &jtv + sv.ClientId = ptr.String(jtv) } case "jobId": @@ -10486,7 +10525,7 @@ func awsAwsjson11_deserializeDocumentThirdPartyJob(v **types.ThirdPartyJob, valu if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -10541,7 +10580,7 @@ func awsAwsjson11_deserializeDocumentThirdPartyJobData(v **types.ThirdPartyJobDa if !ok { return fmt.Errorf("expected ContinuationToken to be of type string, got %T instead", value) } - sv.ContinuationToken = &jtv + sv.ContinuationToken = ptr.String(jtv) } case "encryptionKey": @@ -10606,7 +10645,7 @@ func awsAwsjson11_deserializeDocumentThirdPartyJobDetails(v **types.ThirdPartyJo if !ok { return fmt.Errorf("expected ThirdPartyJobId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "nonce": @@ -10615,7 +10654,7 @@ func awsAwsjson11_deserializeDocumentThirdPartyJobDetails(v **types.ThirdPartyJo if !ok { return fmt.Errorf("expected Nonce to be of type string, got %T instead", value) } - sv.Nonce = &jtv + sv.Nonce = ptr.String(jtv) } default: @@ -10627,7 +10666,7 @@ func awsAwsjson11_deserializeDocumentThirdPartyJobDetails(v **types.ThirdPartyJo return nil } -func awsAwsjson11_deserializeDocumentThirdPartyJobList(v *[]*types.ThirdPartyJob, value interface{}) error { +func awsAwsjson11_deserializeDocumentThirdPartyJobList(v *[]types.ThirdPartyJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10640,18 +10679,20 @@ func awsAwsjson11_deserializeDocumentThirdPartyJobList(v *[]*types.ThirdPartyJob return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ThirdPartyJob + var cv []types.ThirdPartyJob if *v == nil { - cv = []*types.ThirdPartyJob{} + cv = []types.ThirdPartyJob{} } else { cv = *v } for _, value := range shape { - var col *types.ThirdPartyJob - if err := awsAwsjson11_deserializeDocumentThirdPartyJob(&col, value); err != nil { + var col types.ThirdPartyJob + destAddr := &col + if err := awsAwsjson11_deserializeDocumentThirdPartyJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10687,7 +10728,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10727,7 +10768,7 @@ func awsAwsjson11_deserializeDocumentTransitionState(v **types.TransitionState, if !ok { return fmt.Errorf("expected DisabledReason to be of type string, got %T instead", value) } - sv.DisabledReason = &jtv + sv.DisabledReason = ptr.String(jtv) } case "enabled": @@ -10736,7 +10777,7 @@ func awsAwsjson11_deserializeDocumentTransitionState(v **types.TransitionState, if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "lastChangedAt": @@ -10758,7 +10799,7 @@ func awsAwsjson11_deserializeDocumentTransitionState(v **types.TransitionState, if !ok { return fmt.Errorf("expected LastChangedBy to be of type string, got %T instead", value) } - sv.LastChangedBy = &jtv + sv.LastChangedBy = ptr.String(jtv) } default: @@ -10798,7 +10839,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10838,7 +10879,7 @@ func awsAwsjson11_deserializeDocumentWebhookAuthConfiguration(v **types.WebhookA if !ok { return fmt.Errorf("expected WebhookAuthConfigurationAllowedIPRange to be of type string, got %T instead", value) } - sv.AllowedIPRange = &jtv + sv.AllowedIPRange = ptr.String(jtv) } case "SecretToken": @@ -10847,7 +10888,7 @@ func awsAwsjson11_deserializeDocumentWebhookAuthConfiguration(v **types.WebhookA if !ok { return fmt.Errorf("expected WebhookAuthConfigurationSecretToken to be of type string, got %T instead", value) } - sv.SecretToken = &jtv + sv.SecretToken = ptr.String(jtv) } default: @@ -10906,7 +10947,7 @@ func awsAwsjson11_deserializeDocumentWebhookDefinition(v **types.WebhookDefiniti if !ok { return fmt.Errorf("expected WebhookName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "targetAction": @@ -10915,7 +10956,7 @@ func awsAwsjson11_deserializeDocumentWebhookDefinition(v **types.WebhookDefiniti if !ok { return fmt.Errorf("expected ActionName to be of type string, got %T instead", value) } - sv.TargetAction = &jtv + sv.TargetAction = ptr.String(jtv) } case "targetPipeline": @@ -10924,7 +10965,7 @@ func awsAwsjson11_deserializeDocumentWebhookDefinition(v **types.WebhookDefiniti if !ok { return fmt.Errorf("expected PipelineName to be of type string, got %T instead", value) } - sv.TargetPipeline = &jtv + sv.TargetPipeline = ptr.String(jtv) } default: @@ -10964,7 +11005,7 @@ func awsAwsjson11_deserializeDocumentWebhookFilterRule(v **types.WebhookFilterRu if !ok { return fmt.Errorf("expected JsonPath to be of type string, got %T instead", value) } - sv.JsonPath = &jtv + sv.JsonPath = ptr.String(jtv) } case "matchEquals": @@ -10973,7 +11014,7 @@ func awsAwsjson11_deserializeDocumentWebhookFilterRule(v **types.WebhookFilterRu if !ok { return fmt.Errorf("expected MatchEquals to be of type string, got %T instead", value) } - sv.MatchEquals = &jtv + sv.MatchEquals = ptr.String(jtv) } default: @@ -10985,7 +11026,7 @@ func awsAwsjson11_deserializeDocumentWebhookFilterRule(v **types.WebhookFilterRu return nil } -func awsAwsjson11_deserializeDocumentWebhookFilters(v *[]*types.WebhookFilterRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentWebhookFilters(v *[]types.WebhookFilterRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10998,18 +11039,20 @@ func awsAwsjson11_deserializeDocumentWebhookFilters(v *[]*types.WebhookFilterRul return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WebhookFilterRule + var cv []types.WebhookFilterRule if *v == nil { - cv = []*types.WebhookFilterRule{} + cv = []types.WebhookFilterRule{} } else { cv = *v } for _, value := range shape { - var col *types.WebhookFilterRule - if err := awsAwsjson11_deserializeDocumentWebhookFilterRule(&col, value); err != nil { + var col types.WebhookFilterRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWebhookFilterRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11017,7 +11060,7 @@ func awsAwsjson11_deserializeDocumentWebhookFilters(v *[]*types.WebhookFilterRul return nil } -func awsAwsjson11_deserializeDocumentWebhookList(v *[]*types.ListWebhookItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentWebhookList(v *[]types.ListWebhookItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11030,18 +11073,20 @@ func awsAwsjson11_deserializeDocumentWebhookList(v *[]*types.ListWebhookItem, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ListWebhookItem + var cv []types.ListWebhookItem if *v == nil { - cv = []*types.ListWebhookItem{} + cv = []types.ListWebhookItem{} } else { cv = *v } for _, value := range shape { - var col *types.ListWebhookItem - if err := awsAwsjson11_deserializeDocumentListWebhookItem(&col, value); err != nil { + var col types.ListWebhookItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentListWebhookItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11582,7 +11627,7 @@ func awsAwsjson11_deserializeOpDocumentGetPipelineStateOutput(v **GetPipelineSta if !ok { return fmt.Errorf("expected PipelineName to be of type string, got %T instead", value) } - sv.PipelineName = &jtv + sv.PipelineName = ptr.String(jtv) } case "pipelineVersion": @@ -11694,7 +11739,7 @@ func awsAwsjson11_deserializeOpDocumentListActionExecutionsOutput(v **ListAction if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11739,7 +11784,7 @@ func awsAwsjson11_deserializeOpDocumentListActionTypesOutput(v **ListActionTypes if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11779,7 +11824,7 @@ func awsAwsjson11_deserializeOpDocumentListPipelineExecutionsOutput(v **ListPipe if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "pipelineExecutionSummaries": @@ -11824,7 +11869,7 @@ func awsAwsjson11_deserializeOpDocumentListPipelinesOutput(v **ListPipelinesOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "pipelines": @@ -11869,7 +11914,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tags": @@ -11914,7 +11959,7 @@ func awsAwsjson11_deserializeOpDocumentListWebhooksOutput(v **ListWebhooksOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "webhooks": @@ -12031,7 +12076,7 @@ func awsAwsjson11_deserializeOpDocumentPutActionRevisionOutput(v **PutActionRevi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.NewRevision = &jtv + sv.NewRevision = jtv } case "pipelineExecutionId": @@ -12040,7 +12085,7 @@ func awsAwsjson11_deserializeOpDocumentPutActionRevisionOutput(v **PutActionRevi if !ok { return fmt.Errorf("expected PipelineExecutionId to be of type string, got %T instead", value) } - sv.PipelineExecutionId = &jtv + sv.PipelineExecutionId = ptr.String(jtv) } default: @@ -12315,7 +12360,7 @@ func awsAwsjson11_deserializeOpDocumentRetryStageExecutionOutput(v **RetryStageE if !ok { return fmt.Errorf("expected PipelineExecutionId to be of type string, got %T instead", value) } - sv.PipelineExecutionId = &jtv + sv.PipelineExecutionId = ptr.String(jtv) } default: @@ -12355,7 +12400,7 @@ func awsAwsjson11_deserializeOpDocumentStartPipelineExecutionOutput(v **StartPip if !ok { return fmt.Errorf("expected PipelineExecutionId to be of type string, got %T instead", value) } - sv.PipelineExecutionId = &jtv + sv.PipelineExecutionId = ptr.String(jtv) } default: @@ -12395,7 +12440,7 @@ func awsAwsjson11_deserializeOpDocumentStopPipelineExecutionOutput(v **StopPipel if !ok { return fmt.Errorf("expected PipelineExecutionId to be of type string, got %T instead", value) } - sv.PipelineExecutionId = &jtv + sv.PipelineExecutionId = ptr.String(jtv) } default: diff --git a/service/codepipeline/go.mod b/service/codepipeline/go.mod index c260a34a5b7..2cd66c9cfc5 100644 --- a/service/codepipeline/go.mod +++ b/service/codepipeline/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/codepipeline go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/codepipeline/serializers.go b/service/codepipeline/serializers.go index 02a26ebb254..3a073cb432f 100644 --- a/service/codepipeline/serializers.go +++ b/service/codepipeline/serializers.go @@ -1716,17 +1716,13 @@ func (m *awsAwsjson11_serializeOpUpdatePipeline) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentActionConfigurationMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentActionConfigurationMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1740,9 +1736,9 @@ func awsAwsjson11_serializeDocumentActionConfigurationProperty(v *types.ActionCo ok.String(*v.Description) } - if v.Key != nil { + if v.Key { ok := object.Key("key") - ok.Boolean(*v.Key) + ok.Boolean(v.Key) } if v.Name != nil { @@ -1750,19 +1746,19 @@ func awsAwsjson11_serializeDocumentActionConfigurationProperty(v *types.ActionCo ok.String(*v.Name) } - if v.Queryable != nil { + if v.Queryable { ok := object.Key("queryable") - ok.Boolean(*v.Queryable) + ok.Boolean(v.Queryable) } - if v.Required != nil { + if v.Required { ok := object.Key("required") - ok.Boolean(*v.Required) + ok.Boolean(v.Required) } - if v.Secret != nil { + if v.Secret { ok := object.Key("secret") - ok.Boolean(*v.Secret) + ok.Boolean(v.Secret) } if len(v.Type) > 0 { @@ -1773,17 +1769,13 @@ func awsAwsjson11_serializeDocumentActionConfigurationProperty(v *types.ActionCo return nil } -func awsAwsjson11_serializeDocumentActionConfigurationPropertyList(v []*types.ActionConfigurationProperty, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentActionConfigurationPropertyList(v []types.ActionConfigurationProperty, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentActionConfigurationProperty(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentActionConfigurationProperty(&v[i], av); err != nil { return err } } @@ -1959,14 +1951,14 @@ func awsAwsjson11_serializeDocumentArtifactDetails(v *types.ArtifactDetails, val object := value.Object() defer object.Close() - if v.MaximumCount != nil { + if v.MaximumCount != 0 { ok := object.Key("maximumCount") - ok.Integer(*v.MaximumCount) + ok.Integer(v.MaximumCount) } - if v.MinimumCount != nil { + if v.MinimumCount != 0 { ok := object.Key("minimumCount") - ok.Integer(*v.MinimumCount) + ok.Integer(v.MinimumCount) } return nil @@ -1996,17 +1988,14 @@ func awsAwsjson11_serializeDocumentArtifactStore(v *types.ArtifactStore, value s return nil } -func awsAwsjson11_serializeDocumentArtifactStoreMap(v map[string]*types.ArtifactStore, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentArtifactStoreMap(v map[string]types.ArtifactStore, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson11_serializeDocumentArtifactStore(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson11_serializeDocumentArtifactStore(&mapVar, om); err != nil { return err } } @@ -2130,17 +2119,13 @@ func awsAwsjson11_serializeDocumentInputArtifact(v *types.InputArtifact, value s return nil } -func awsAwsjson11_serializeDocumentInputArtifactList(v []*types.InputArtifact, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInputArtifactList(v []types.InputArtifact, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInputArtifact(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInputArtifact(&v[i], av); err != nil { return err } } @@ -2159,34 +2144,26 @@ func awsAwsjson11_serializeDocumentOutputArtifact(v *types.OutputArtifact, value return nil } -func awsAwsjson11_serializeDocumentOutputArtifactList(v []*types.OutputArtifact, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOutputArtifactList(v []types.OutputArtifact, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOutputArtifact(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentOutputArtifact(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentOutputVariablesMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOutputVariablesMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2234,66 +2211,50 @@ func awsAwsjson11_serializeDocumentPipelineDeclaration(v *types.PipelineDeclarat return nil } -func awsAwsjson11_serializeDocumentPipelineStageDeclarationList(v []*types.StageDeclaration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPipelineStageDeclarationList(v []types.StageDeclaration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentStageDeclaration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentStageDeclaration(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentQueryParamMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentQueryParamMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentStageActionDeclarationList(v []*types.ActionDeclaration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStageActionDeclarationList(v []types.ActionDeclaration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentActionDeclaration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentActionDeclaration(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentStageBlockerDeclarationList(v []*types.BlockerDeclaration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStageBlockerDeclarationList(v []types.BlockerDeclaration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentBlockerDeclaration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentBlockerDeclaration(&v[i], av); err != nil { return err } } @@ -2343,32 +2304,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2450,17 +2403,13 @@ func awsAwsjson11_serializeDocumentWebhookFilterRule(v *types.WebhookFilterRule, return nil } -func awsAwsjson11_serializeDocumentWebhookFilters(v []*types.WebhookFilterRule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentWebhookFilters(v []types.WebhookFilterRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentWebhookFilterRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentWebhookFilterRule(&v[i], av); err != nil { return err } } @@ -3191,9 +3140,9 @@ func awsAwsjson11_serializeOpDocumentStopPipelineExecutionInput(v *StopPipelineE object := value.Object() defer object.Close() - if v.Abandon != nil { + if v.Abandon { ok := object.Key("abandon") - ok.Boolean(*v.Abandon) + ok.Boolean(v.Abandon) } if v.PipelineExecutionId != nil { diff --git a/service/codepipeline/types/types.go b/service/codepipeline/types/types.go index 8c16b74b1d4..66ca448f50e 100644 --- a/service/codepipeline/types/types.go +++ b/service/codepipeline/types/types.go @@ -10,7 +10,7 @@ import ( type ActionConfiguration struct { // The configuration data for the action. - Configuration map[string]*string + Configuration map[string]string } // Represents information about an action configuration property. @@ -19,7 +19,7 @@ type ActionConfigurationProperty struct { // Whether the configuration property is a key. // // This member is required. - Key *bool + Key bool // The name of the action configuration property. // @@ -29,7 +29,7 @@ type ActionConfigurationProperty struct { // Whether the configuration property is a required value. // // This member is required. - Required *bool + Required bool // Whether the configuration property is secret. Secrets are hidden from all calls // except for GetJobDetails, GetThirdPartyJobDetails, PollForJobs, and @@ -38,7 +38,7 @@ type ActionConfigurationProperty struct { // secret. // // This member is required. - Secret *bool + Secret bool // The description of the action configuration property that is displayed to users. Description *string @@ -50,7 +50,7 @@ type ActionConfigurationProperty struct { // value for that configuration property is subject to other restrictions. The // value must be less than or equal to twenty (20) characters. The value can // contain only alphanumeric characters, underscores, and hyphens. - Queryable *bool + Queryable bool // The type of the configuration property. Type ActionConfigurationPropertyType @@ -92,11 +92,11 @@ type ActionDeclaration struct { // in the AWS CloudFormation User Guide. The values can be represented in either // JSON or YAML format. For example, the JSON configuration item format is as // follows: JSON: "Configuration" : { Key : Value }, - Configuration map[string]*string + Configuration map[string]string // The name or ID of the artifact consumed by the action, such as a test or build // artifact. - InputArtifacts []*InputArtifact + InputArtifacts []InputArtifact // The variable namespace associated with the action. All variables produced as // output by this action fall under this namespace. @@ -104,7 +104,7 @@ type ActionDeclaration struct { // The name or ID of the result of the action declaration, such as a test or build // artifact. - OutputArtifacts []*OutputArtifact + OutputArtifacts []OutputArtifact // The action declaration's AWS Region, such as us-east-1. Region *string @@ -204,11 +204,11 @@ type ActionExecutionInput struct { ActionTypeId *ActionTypeId // Configuration data for an action execution. - Configuration map[string]*string + Configuration map[string]string // Details of input artifacts of the action that correspond to the action // execution. - InputArtifacts []*ArtifactDetail + InputArtifacts []ArtifactDetail // The variable namespace associated with the action. All variables produced as // output by this action fall under this namespace. @@ -219,7 +219,7 @@ type ActionExecutionInput struct { // Configuration data for an action execution with all variable references replaced // with their real values for the execution. - ResolvedConfiguration map[string]*string + ResolvedConfiguration map[string]string // The ARN of the IAM service role that performs the declared action. This is // assumed through the roleArn for the pipeline. @@ -236,11 +236,11 @@ type ActionExecutionOutput struct { // Details of output artifacts of the action that correspond to the action // execution. - OutputArtifacts []*ArtifactDetail + OutputArtifacts []ArtifactDetail // The outputVariables field shows the key-value pairs that were output as part of // that execution. - OutputVariables map[string]*string + OutputVariables map[string]string } // Execution result information, such as the external execution ID. @@ -319,7 +319,7 @@ type ActionType struct { OutputArtifactDetails *ArtifactDetails // The configuration properties for the action type. - ActionConfigurationProperties []*ActionConfigurationProperty + ActionConfigurationProperties []ActionConfigurationProperty // The settings for the action type. Settings *ActionTypeSettings @@ -426,12 +426,12 @@ type ArtifactDetails struct { // The maximum number of artifacts allowed for the action type. // // This member is required. - MaximumCount *int32 + MaximumCount int32 // The minimum number of artifacts allowed for the action type. // // This member is required. - MinimumCount *int32 + MinimumCount int32 } // Represents information about the location of an artifact. @@ -689,10 +689,10 @@ type JobData struct { EncryptionKey *EncryptionKey // The artifact supplied to the job. - InputArtifacts []*Artifact + InputArtifacts []Artifact // The output of the job. - OutputArtifacts []*Artifact + OutputArtifacts []Artifact // Represents information about a pipeline to a job worker. Includes pipelineArn // and pipelineExecutionId for custom jobs. @@ -745,7 +745,7 @@ type ListWebhookItem struct { LastTriggered *time.Time // Specifies the tags applied to the webhook. - Tags []*Tag + Tags []Tag } // Represents information about the output of an action. @@ -803,7 +803,7 @@ type PipelineDeclaration struct { // The stage in which to perform the action. // // This member is required. - Stages []*StageDeclaration + Stages []StageDeclaration // Represents information about the S3 bucket where artifacts are stored for the // pipeline. You must include either artifactStore or artifactStores in your @@ -816,7 +816,7 @@ type PipelineDeclaration struct { // action in the pipeline. You must include either artifactStore or artifactStores // in your pipeline, but you cannot use both. If you create a cross-region action // in your pipeline, you must use artifactStores. - ArtifactStores map[string]*ArtifactStore + ArtifactStores map[string]ArtifactStore // The version number of the pipeline. A new pipeline always has a version number // of 1. This number is incremented when a pipeline is updated. @@ -827,7 +827,7 @@ type PipelineDeclaration struct { type PipelineExecution struct { // A list of ArtifactRevision objects included in a pipeline execution. - ArtifactRevisions []*ArtifactRevision + ArtifactRevisions []ArtifactRevision // The ID of the pipeline execution. PipelineExecutionId *string @@ -878,7 +878,7 @@ type PipelineExecutionSummary struct { PipelineExecutionId *string // A list of the source artifact revisions that initiated a pipeline execution. - SourceRevisions []*SourceRevision + SourceRevisions []SourceRevision // The date and time when the pipeline execution began, in timestamp format. StartTime *time.Time @@ -1010,7 +1010,7 @@ type StageDeclaration struct { // The actions included in a stage. // // This member is required. - Actions []*ActionDeclaration + Actions []ActionDeclaration // The name of the stage. // @@ -1018,7 +1018,7 @@ type StageDeclaration struct { Name *string // Reserved for future use. - Blockers []*BlockerDeclaration + Blockers []BlockerDeclaration } // Represents information about the run of a stage. @@ -1039,7 +1039,7 @@ type StageExecution struct { type StageState struct { // The state of the stage. - ActionStates []*ActionState + ActionStates []ActionState // The state of the inbound transition, which is either enabled or disabled. InboundTransitionState *TransitionState @@ -1114,12 +1114,12 @@ type ThirdPartyJobData struct { // when the action is created. The input artifact name must match the name of an // output artifact generated by an action in an earlier action or stage of the // pipeline. - InputArtifacts []*Artifact + InputArtifacts []Artifact // The name of the artifact that is the result of the action, if any. This name // might be system-generated, such as "MyBuiltApp", or it might be defined by the // user when the action is created. - OutputArtifacts []*Artifact + OutputArtifacts []Artifact // Represents information about a pipeline to a job worker. Does not include // pipelineArn and pipelineExecutionId for ThirdParty jobs. @@ -1150,7 +1150,7 @@ type TransitionState struct { DisabledReason *string // Whether the transition between stages is enabled (true) or disabled (false). - Enabled *bool + Enabled bool // The timestamp when the transition state was last changed. LastChangedAt *time.Time @@ -1206,7 +1206,7 @@ type WebhookDefinition struct { // pipeline started. // // This member is required. - Filters []*WebhookFilterRule + Filters []WebhookFilterRule // The name of the webhook. // diff --git a/service/codepipeline/validators.go b/service/codepipeline/validators.go index a0712f6ffce..e3c2339bb0d 100644 --- a/service/codepipeline/validators.go +++ b/service/codepipeline/validators.go @@ -783,18 +783,9 @@ func validateActionConfigurationProperty(v *types.ActionConfigurationProperty) e return nil } invalidParams := smithy.InvalidParamsError{Context: "ActionConfigurationProperty"} - if v.Required == nil { - invalidParams.Add(smithy.NewErrParamRequired("Required")) - } - if v.Key == nil { - invalidParams.Add(smithy.NewErrParamRequired("Key")) - } if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } - if v.Secret == nil { - invalidParams.Add(smithy.NewErrParamRequired("Secret")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -802,13 +793,13 @@ func validateActionConfigurationProperty(v *types.ActionConfigurationProperty) e } } -func validateActionConfigurationPropertyList(v []*types.ActionConfigurationProperty) error { +func validateActionConfigurationPropertyList(v []types.ActionConfigurationProperty) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ActionConfigurationPropertyList"} for i := range v { - if err := validateActionConfigurationProperty(v[i]); err != nil { + if err := validateActionConfigurationProperty(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -919,12 +910,6 @@ func validateArtifactDetails(v *types.ArtifactDetails) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ArtifactDetails"} - if v.MaximumCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaximumCount")) - } - if v.MinimumCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("MinimumCount")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -955,13 +940,14 @@ func validateArtifactStore(v *types.ArtifactStore) error { } } -func validateArtifactStoreMap(v map[string]*types.ArtifactStore) error { +func validateArtifactStoreMap(v map[string]types.ArtifactStore) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ArtifactStoreMap"} for key := range v { - if err := validateArtifactStore(v[key]); err != nil { + value := v[key] + if err := validateArtifactStore(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -1059,13 +1045,13 @@ func validateInputArtifact(v *types.InputArtifact) error { } } -func validateInputArtifactList(v []*types.InputArtifact) error { +func validateInputArtifactList(v []types.InputArtifact) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InputArtifactList"} for i := range v { - if err := validateInputArtifact(v[i]); err != nil { + if err := validateInputArtifact(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1091,13 +1077,13 @@ func validateOutputArtifact(v *types.OutputArtifact) error { } } -func validateOutputArtifactList(v []*types.OutputArtifact) error { +func validateOutputArtifactList(v []types.OutputArtifact) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OutputArtifactList"} for i := range v { - if err := validateOutputArtifact(v[i]); err != nil { + if err := validateOutputArtifact(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1143,13 +1129,13 @@ func validatePipelineDeclaration(v *types.PipelineDeclaration) error { } } -func validatePipelineStageDeclarationList(v []*types.StageDeclaration) error { +func validatePipelineStageDeclarationList(v []types.StageDeclaration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PipelineStageDeclarationList"} for i := range v { - if err := validateStageDeclaration(v[i]); err != nil { + if err := validateStageDeclaration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1160,13 +1146,13 @@ func validatePipelineStageDeclarationList(v []*types.StageDeclaration) error { } } -func validateStageActionDeclarationList(v []*types.ActionDeclaration) error { +func validateStageActionDeclarationList(v []types.ActionDeclaration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "StageActionDeclarationList"} for i := range v { - if err := validateActionDeclaration(v[i]); err != nil { + if err := validateActionDeclaration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1177,13 +1163,13 @@ func validateStageActionDeclarationList(v []*types.ActionDeclaration) error { } } -func validateStageBlockerDeclarationList(v []*types.BlockerDeclaration) error { +func validateStageBlockerDeclarationList(v []types.BlockerDeclaration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "StageBlockerDeclarationList"} for i := range v { - if err := validateBlockerDeclaration(v[i]); err != nil { + if err := validateBlockerDeclaration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1239,13 +1225,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1305,13 +1291,13 @@ func validateWebhookFilterRule(v *types.WebhookFilterRule) error { } } -func validateWebhookFilters(v []*types.WebhookFilterRule) error { +func validateWebhookFilters(v []types.WebhookFilterRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "WebhookFilters"} for i := range v { - if err := validateWebhookFilterRule(v[i]); err != nil { + if err := validateWebhookFilterRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/codestar/api_op_AssociateTeamMember.go b/service/codestar/api_op_AssociateTeamMember.go index cf8aca61603..0fd695562be 100644 --- a/service/codestar/api_op_AssociateTeamMember.go +++ b/service/codestar/api_op_AssociateTeamMember.go @@ -52,7 +52,7 @@ type AssociateTeamMemberInput struct { // Whether the team member is allowed to use an SSH public/private key pair to // remotely access project resources, for example Amazon EC2 instances. - RemoteAccessAllowed *bool + RemoteAccessAllowed bool } type AssociateTeamMemberOutput struct { diff --git a/service/codestar/api_op_CreateProject.go b/service/codestar/api_op_CreateProject.go index 3096e1ace3f..62528ca5d26 100644 --- a/service/codestar/api_op_CreateProject.go +++ b/service/codestar/api_op_CreateProject.go @@ -51,10 +51,10 @@ type CreateProjectInput struct { // A list of the Code objects submitted with the project request. If this parameter // is specified, the request must also include the toolchain parameter. - SourceCode []*types.Code + SourceCode []types.Code // The tags created for the project. - Tags map[string]*string + Tags map[string]string // The name of the toolchain template file submitted with the project request. If // this parameter is specified, the request must also include the sourceCode diff --git a/service/codestar/api_op_DeleteProject.go b/service/codestar/api_op_DeleteProject.go index 761a04a953f..013e124265e 100644 --- a/service/codestar/api_op_DeleteProject.go +++ b/service/codestar/api_op_DeleteProject.go @@ -43,7 +43,7 @@ type DeleteProjectInput struct { // originally used to generate the project and its resources. This option will // delete all AWS resources for the project (except for any buckets in Amazon S3) // as well as deleting the project itself. Recommended for most use cases. - DeleteStack *bool + DeleteStack bool } type DeleteProjectOutput struct { diff --git a/service/codestar/api_op_ListProjects.go b/service/codestar/api_op_ListProjects.go index 6fc87c92310..8b407ed60dd 100644 --- a/service/codestar/api_op_ListProjects.go +++ b/service/codestar/api_op_ListProjects.go @@ -30,7 +30,7 @@ func (c *Client) ListProjects(ctx context.Context, params *ListProjectsInput, op type ListProjectsInput struct { // The maximum amount of data that can be contained in a single set of results. - MaxResults *int32 + MaxResults int32 // The continuation token to be used to return the next set of results, if the // results cannot be returned in one response. @@ -42,7 +42,7 @@ type ListProjectsOutput struct { // A list of projects. // // This member is required. - Projects []*types.ProjectSummary + Projects []types.ProjectSummary // The continuation token to use when requesting the next set of results, if there // are more results to be returned. diff --git a/service/codestar/api_op_ListResources.go b/service/codestar/api_op_ListResources.go index b90679cbbfc..56aac930834 100644 --- a/service/codestar/api_op_ListResources.go +++ b/service/codestar/api_op_ListResources.go @@ -35,7 +35,7 @@ type ListResourcesInput struct { ProjectId *string // The maximum amount of data that can be contained in a single set of results. - MaxResults *int32 + MaxResults int32 // The continuation token for the next set of results, if the results cannot be // returned in one response. @@ -49,7 +49,7 @@ type ListResourcesOutput struct { NextToken *string // An array of resources associated with the project. - Resources []*types.Resource + Resources []types.Resource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codestar/api_op_ListTagsForProject.go b/service/codestar/api_op_ListTagsForProject.go index e906961cbad..32bd21d2ffc 100644 --- a/service/codestar/api_op_ListTagsForProject.go +++ b/service/codestar/api_op_ListTagsForProject.go @@ -34,7 +34,7 @@ type ListTagsForProjectInput struct { Id *string // Reserved for future use. - MaxResults *int32 + MaxResults int32 // Reserved for future use. NextToken *string @@ -46,7 +46,7 @@ type ListTagsForProjectOutput struct { NextToken *string // The tags for the project. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codestar/api_op_ListTeamMembers.go b/service/codestar/api_op_ListTeamMembers.go index 4504a29c046..8af7bdda720 100644 --- a/service/codestar/api_op_ListTeamMembers.go +++ b/service/codestar/api_op_ListTeamMembers.go @@ -35,7 +35,7 @@ type ListTeamMembersInput struct { ProjectId *string // The maximum number of team members you want returned in a response. - MaxResults *int32 + MaxResults int32 // The continuation token for the next set of results, if the results cannot be // returned in one response. @@ -47,7 +47,7 @@ type ListTeamMembersOutput struct { // A list of team member objects for the project. // // This member is required. - TeamMembers []*types.TeamMember + TeamMembers []types.TeamMember // The continuation token to use when requesting the next set of results, if there // are more results to be returned. diff --git a/service/codestar/api_op_ListUserProfiles.go b/service/codestar/api_op_ListUserProfiles.go index e5e332201f3..93c5409061d 100644 --- a/service/codestar/api_op_ListUserProfiles.go +++ b/service/codestar/api_op_ListUserProfiles.go @@ -30,7 +30,7 @@ func (c *Client) ListUserProfiles(ctx context.Context, params *ListUserProfilesI type ListUserProfilesInput struct { // The maximum number of results to return in a response. - MaxResults *int32 + MaxResults int32 // The continuation token for the next set of results, if the results cannot be // returned in one response. @@ -42,7 +42,7 @@ type ListUserProfilesOutput struct { // All the user profiles configured in AWS CodeStar for an AWS account. // // This member is required. - UserProfiles []*types.UserProfileSummary + UserProfiles []types.UserProfileSummary // The continuation token to use when requesting the next set of results, if there // are more results to be returned. diff --git a/service/codestar/api_op_TagProject.go b/service/codestar/api_op_TagProject.go index afb98b9b2a5..493aab2015f 100644 --- a/service/codestar/api_op_TagProject.go +++ b/service/codestar/api_op_TagProject.go @@ -36,13 +36,13 @@ type TagProjectInput struct { // The tags you want to add to the project. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagProjectOutput struct { // The tags for the project. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codestar/api_op_UntagProject.go b/service/codestar/api_op_UntagProject.go index 71bab823d35..66900d74f21 100644 --- a/service/codestar/api_op_UntagProject.go +++ b/service/codestar/api_op_UntagProject.go @@ -36,7 +36,7 @@ type UntagProjectInput struct { // The tags to remove from the project. // // This member is required. - Tags []*string + Tags []string } type UntagProjectOutput struct { diff --git a/service/codestar/api_op_UpdateTeamMember.go b/service/codestar/api_op_UpdateTeamMember.go index 5ea59a5ca0d..de96142461c 100644 --- a/service/codestar/api_op_UpdateTeamMember.go +++ b/service/codestar/api_op_UpdateTeamMember.go @@ -51,7 +51,7 @@ type UpdateTeamMemberInput struct { // SSH public key associated with the user's profile. Even if this is set to True, // the user must associate a public key with their profile before the user can // access resources. - RemoteAccessAllowed *bool + RemoteAccessAllowed bool } type UpdateTeamMemberOutput struct { @@ -61,7 +61,7 @@ type UpdateTeamMemberOutput struct { // Whether a team member is allowed to remotely access project resources using the // SSH public key associated with the user's profile. - RemoteAccessAllowed *bool + RemoteAccessAllowed bool // The Amazon Resource Name (ARN) of the user whose team membership attributes were // updated. diff --git a/service/codestar/deserializers.go b/service/codestar/deserializers.go index 38b46c91c51..fe096bac5ac 100644 --- a/service/codestar/deserializers.go +++ b/service/codestar/deserializers.go @@ -2635,7 +2635,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2675,7 +2675,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2715,7 +2715,7 @@ func awsAwsjson11_deserializeDocumentInvalidServiceRoleException(v **types.Inval if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2755,7 +2755,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2795,7 +2795,7 @@ func awsAwsjson11_deserializeDocumentProjectAlreadyExistsException(v **types.Pro if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2835,7 +2835,7 @@ func awsAwsjson11_deserializeDocumentProjectConfigurationException(v **types.Pro if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2875,7 +2875,7 @@ func awsAwsjson11_deserializeDocumentProjectCreationFailedException(v **types.Pr if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2915,7 +2915,7 @@ func awsAwsjson11_deserializeDocumentProjectNotFoundException(v **types.ProjectN if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2927,7 +2927,7 @@ func awsAwsjson11_deserializeDocumentProjectNotFoundException(v **types.ProjectN return nil } -func awsAwsjson11_deserializeDocumentProjectsList(v *[]*types.ProjectSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentProjectsList(v *[]types.ProjectSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2940,18 +2940,20 @@ func awsAwsjson11_deserializeDocumentProjectsList(v *[]*types.ProjectSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProjectSummary + var cv []types.ProjectSummary if *v == nil { - cv = []*types.ProjectSummary{} + cv = []types.ProjectSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProjectSummary - if err := awsAwsjson11_deserializeDocumentProjectSummary(&col, value); err != nil { + var col types.ProjectSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProjectSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2987,7 +2989,7 @@ func awsAwsjson11_deserializeDocumentProjectStatus(v **types.ProjectStatus, valu if !ok { return fmt.Errorf("expected Reason to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "state": @@ -2996,7 +2998,7 @@ func awsAwsjson11_deserializeDocumentProjectStatus(v **types.ProjectStatus, valu if !ok { return fmt.Errorf("expected State to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } default: @@ -3036,7 +3038,7 @@ func awsAwsjson11_deserializeDocumentProjectSummary(v **types.ProjectSummary, va if !ok { return fmt.Errorf("expected ProjectArn to be of type string, got %T instead", value) } - sv.ProjectArn = &jtv + sv.ProjectArn = ptr.String(jtv) } case "projectId": @@ -3045,7 +3047,7 @@ func awsAwsjson11_deserializeDocumentProjectSummary(v **types.ProjectSummary, va if !ok { return fmt.Errorf("expected ProjectId to be of type string, got %T instead", value) } - sv.ProjectId = &jtv + sv.ProjectId = ptr.String(jtv) } default: @@ -3085,7 +3087,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -3097,7 +3099,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac return nil } -func awsAwsjson11_deserializeDocumentResourcesResult(v *[]*types.Resource, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourcesResult(v *[]types.Resource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3110,18 +3112,20 @@ func awsAwsjson11_deserializeDocumentResourcesResult(v *[]*types.Resource, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Resource + var cv []types.Resource if *v == nil { - cv = []*types.Resource{} + cv = []types.Resource{} } else { cv = *v } for _, value := range shape { - var col *types.Resource - if err := awsAwsjson11_deserializeDocumentResource(&col, value); err != nil { + var col types.Resource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3129,7 +3133,7 @@ func awsAwsjson11_deserializeDocumentResourcesResult(v *[]*types.Resource, value return nil } -func awsAwsjson11_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3142,21 +3146,21 @@ func awsAwsjson11_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -3193,7 +3197,7 @@ func awsAwsjson11_deserializeDocumentTeamMember(v **types.TeamMember, value inte if !ok { return fmt.Errorf("expected Role to be of type string, got %T instead", value) } - sv.ProjectRole = &jtv + sv.ProjectRole = ptr.String(jtv) } case "remoteAccessAllowed": @@ -3202,7 +3206,7 @@ func awsAwsjson11_deserializeDocumentTeamMember(v **types.TeamMember, value inte if !ok { return fmt.Errorf("expected RemoteAccessAllowed to be of type *bool, got %T instead", value) } - sv.RemoteAccessAllowed = &jtv + sv.RemoteAccessAllowed = jtv } case "userArn": @@ -3211,7 +3215,7 @@ func awsAwsjson11_deserializeDocumentTeamMember(v **types.TeamMember, value inte if !ok { return fmt.Errorf("expected UserArn to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } default: @@ -3251,7 +3255,7 @@ func awsAwsjson11_deserializeDocumentTeamMemberAlreadyAssociatedException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3291,7 +3295,7 @@ func awsAwsjson11_deserializeDocumentTeamMemberNotFoundException(v **types.TeamM if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3303,7 +3307,7 @@ func awsAwsjson11_deserializeDocumentTeamMemberNotFoundException(v **types.TeamM return nil } -func awsAwsjson11_deserializeDocumentTeamMemberResult(v *[]*types.TeamMember, value interface{}) error { +func awsAwsjson11_deserializeDocumentTeamMemberResult(v *[]types.TeamMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3316,18 +3320,20 @@ func awsAwsjson11_deserializeDocumentTeamMemberResult(v *[]*types.TeamMember, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TeamMember + var cv []types.TeamMember if *v == nil { - cv = []*types.TeamMember{} + cv = []types.TeamMember{} } else { cv = *v } for _, value := range shape { - var col *types.TeamMember - if err := awsAwsjson11_deserializeDocumentTeamMember(&col, value); err != nil { + var col types.TeamMember + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTeamMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3363,7 +3369,7 @@ func awsAwsjson11_deserializeDocumentUserProfileAlreadyExistsException(v **types if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3403,7 +3409,7 @@ func awsAwsjson11_deserializeDocumentUserProfileNotFoundException(v **types.User if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3415,7 +3421,7 @@ func awsAwsjson11_deserializeDocumentUserProfileNotFoundException(v **types.User return nil } -func awsAwsjson11_deserializeDocumentUserProfilesList(v *[]*types.UserProfileSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserProfilesList(v *[]types.UserProfileSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3428,18 +3434,20 @@ func awsAwsjson11_deserializeDocumentUserProfilesList(v *[]*types.UserProfileSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserProfileSummary + var cv []types.UserProfileSummary if *v == nil { - cv = []*types.UserProfileSummary{} + cv = []types.UserProfileSummary{} } else { cv = *v } for _, value := range shape { - var col *types.UserProfileSummary - if err := awsAwsjson11_deserializeDocumentUserProfileSummary(&col, value); err != nil { + var col types.UserProfileSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUserProfileSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3475,7 +3483,7 @@ func awsAwsjson11_deserializeDocumentUserProfileSummary(v **types.UserProfileSum if !ok { return fmt.Errorf("expected UserProfileDisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "emailAddress": @@ -3484,7 +3492,7 @@ func awsAwsjson11_deserializeDocumentUserProfileSummary(v **types.UserProfileSum if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "sshPublicKey": @@ -3493,7 +3501,7 @@ func awsAwsjson11_deserializeDocumentUserProfileSummary(v **types.UserProfileSum if !ok { return fmt.Errorf("expected SshPublicKey to be of type string, got %T instead", value) } - sv.SshPublicKey = &jtv + sv.SshPublicKey = ptr.String(jtv) } case "userArn": @@ -3502,7 +3510,7 @@ func awsAwsjson11_deserializeDocumentUserProfileSummary(v **types.UserProfileSum if !ok { return fmt.Errorf("expected UserArn to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } default: @@ -3542,7 +3550,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3582,7 +3590,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateTeamMemberOutput(v **AssociateTe if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } default: @@ -3622,7 +3630,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProjectOutput(v **CreateProjectOutp if !ok { return fmt.Errorf("expected ProjectArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "clientRequestToken": @@ -3631,7 +3639,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProjectOutput(v **CreateProjectOutp if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "id": @@ -3640,7 +3648,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProjectOutput(v **CreateProjectOutp if !ok { return fmt.Errorf("expected ProjectId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "projectTemplateId": @@ -3649,7 +3657,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProjectOutput(v **CreateProjectOutp if !ok { return fmt.Errorf("expected ProjectTemplateId to be of type string, got %T instead", value) } - sv.ProjectTemplateId = &jtv + sv.ProjectTemplateId = ptr.String(jtv) } default: @@ -3702,7 +3710,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUserProfileOutput(v **CreateUserPro if !ok { return fmt.Errorf("expected UserProfileDisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "emailAddress": @@ -3711,7 +3719,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUserProfileOutput(v **CreateUserPro if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "lastModifiedTimestamp": @@ -3733,7 +3741,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUserProfileOutput(v **CreateUserPro if !ok { return fmt.Errorf("expected SshPublicKey to be of type string, got %T instead", value) } - sv.SshPublicKey = &jtv + sv.SshPublicKey = ptr.String(jtv) } case "userArn": @@ -3742,7 +3750,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUserProfileOutput(v **CreateUserPro if !ok { return fmt.Errorf("expected UserArn to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } default: @@ -3782,7 +3790,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteProjectOutput(v **DeleteProjectOutp if !ok { return fmt.Errorf("expected ProjectArn to be of type string, got %T instead", value) } - sv.ProjectArn = &jtv + sv.ProjectArn = ptr.String(jtv) } case "stackId": @@ -3791,7 +3799,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteProjectOutput(v **DeleteProjectOutp if !ok { return fmt.Errorf("expected StackId to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } default: @@ -3831,7 +3839,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteUserProfileOutput(v **DeleteUserPro if !ok { return fmt.Errorf("expected UserArn to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } default: @@ -3871,7 +3879,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProjectOutput(v **DescribeProject if !ok { return fmt.Errorf("expected ProjectArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "clientRequestToken": @@ -3880,7 +3888,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProjectOutput(v **DescribeProject if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "createdTimeStamp": @@ -3902,7 +3910,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProjectOutput(v **DescribeProject if !ok { return fmt.Errorf("expected ProjectDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -3911,7 +3919,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProjectOutput(v **DescribeProject if !ok { return fmt.Errorf("expected ProjectId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -3920,7 +3928,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProjectOutput(v **DescribeProject if !ok { return fmt.Errorf("expected ProjectName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "projectTemplateId": @@ -3929,7 +3937,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProjectOutput(v **DescribeProject if !ok { return fmt.Errorf("expected ProjectTemplateId to be of type string, got %T instead", value) } - sv.ProjectTemplateId = &jtv + sv.ProjectTemplateId = ptr.String(jtv) } case "stackId": @@ -3938,7 +3946,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProjectOutput(v **DescribeProject if !ok { return fmt.Errorf("expected StackId to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } case "status": @@ -3996,7 +4004,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(v **DescribeUse if !ok { return fmt.Errorf("expected UserProfileDisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "emailAddress": @@ -4005,7 +4013,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(v **DescribeUse if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "lastModifiedTimestamp": @@ -4027,7 +4035,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(v **DescribeUse if !ok { return fmt.Errorf("expected SshPublicKey to be of type string, got %T instead", value) } - sv.SshPublicKey = &jtv + sv.SshPublicKey = ptr.String(jtv) } case "userArn": @@ -4036,7 +4044,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(v **DescribeUse if !ok { return fmt.Errorf("expected UserArn to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } default: @@ -4107,7 +4115,7 @@ func awsAwsjson11_deserializeOpDocumentListProjectsOutput(v **ListProjectsOutput if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "projects": @@ -4152,7 +4160,7 @@ func awsAwsjson11_deserializeOpDocumentListResourcesOutput(v **ListResourcesOutp if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "resources": @@ -4197,7 +4205,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForProjectOutput(v **ListTagsForP if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tags": @@ -4242,7 +4250,7 @@ func awsAwsjson11_deserializeOpDocumentListTeamMembersOutput(v **ListTeamMembers if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "teamMembers": @@ -4287,7 +4295,7 @@ func awsAwsjson11_deserializeOpDocumentListUserProfilesOutput(v **ListUserProfil if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "userProfiles": @@ -4430,7 +4438,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTeamMemberOutput(v **UpdateTeamMemb if !ok { return fmt.Errorf("expected Role to be of type string, got %T instead", value) } - sv.ProjectRole = &jtv + sv.ProjectRole = ptr.String(jtv) } case "remoteAccessAllowed": @@ -4439,7 +4447,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTeamMemberOutput(v **UpdateTeamMemb if !ok { return fmt.Errorf("expected RemoteAccessAllowed to be of type *bool, got %T instead", value) } - sv.RemoteAccessAllowed = &jtv + sv.RemoteAccessAllowed = jtv } case "userArn": @@ -4448,7 +4456,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTeamMemberOutput(v **UpdateTeamMemb if !ok { return fmt.Errorf("expected UserArn to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } default: @@ -4501,7 +4509,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateUserProfileOutput(v **UpdateUserPro if !ok { return fmt.Errorf("expected UserProfileDisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "emailAddress": @@ -4510,7 +4518,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateUserProfileOutput(v **UpdateUserPro if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "lastModifiedTimestamp": @@ -4532,7 +4540,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateUserProfileOutput(v **UpdateUserPro if !ok { return fmt.Errorf("expected SshPublicKey to be of type string, got %T instead", value) } - sv.SshPublicKey = &jtv + sv.SshPublicKey = ptr.String(jtv) } case "userArn": @@ -4541,7 +4549,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateUserProfileOutput(v **UpdateUserPro if !ok { return fmt.Errorf("expected UserArn to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } default: diff --git a/service/codestar/go.mod b/service/codestar/go.mod index 3d2b252d8ce..ef0c06c4557 100644 --- a/service/codestar/go.mod +++ b/service/codestar/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/codestar go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/codestar/serializers.go b/service/codestar/serializers.go index c1682014897..5f09d39240b 100644 --- a/service/codestar/serializers.go +++ b/service/codestar/serializers.go @@ -918,9 +918,9 @@ func awsAwsjson11_serializeDocumentGitHubCodeDestination(v *types.GitHubCodeDest ok.String(*v.Description) } - if v.IssuesEnabled != nil { + if v.IssuesEnabled { ok := object.Key("issuesEnabled") - ok.Boolean(*v.IssuesEnabled) + ok.Boolean(v.IssuesEnabled) } if v.Name != nil { @@ -933,9 +933,9 @@ func awsAwsjson11_serializeDocumentGitHubCodeDestination(v *types.GitHubCodeDest ok.String(*v.Owner) } - if v.PrivateRepository != nil { + if v.PrivateRepository { ok := object.Key("privateRepository") - ok.Boolean(*v.PrivateRepository) + ok.Boolean(v.PrivateRepository) } if v.Token != nil { @@ -968,64 +968,48 @@ func awsAwsjson11_serializeDocumentS3Location(v *types.S3Location, value smithyj return nil } -func awsAwsjson11_serializeDocumentSourceCode(v []*types.Code, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSourceCode(v []types.Code, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCode(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCode(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentTemplateParameterMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTemplateParameterMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1089,9 +1073,9 @@ func awsAwsjson11_serializeOpDocumentAssociateTeamMemberInput(v *AssociateTeamMe ok.String(*v.ProjectRole) } - if v.RemoteAccessAllowed != nil { + if v.RemoteAccessAllowed { ok := object.Key("remoteAccessAllowed") - ok.Boolean(*v.RemoteAccessAllowed) + ok.Boolean(v.RemoteAccessAllowed) } if v.UserArn != nil { @@ -1186,9 +1170,9 @@ func awsAwsjson11_serializeOpDocumentDeleteProjectInput(v *DeleteProjectInput, v ok.String(*v.ClientRequestToken) } - if v.DeleteStack != nil { + if v.DeleteStack { ok := object.Key("deleteStack") - ok.Boolean(*v.DeleteStack) + ok.Boolean(v.DeleteStack) } if v.Id != nil { @@ -1256,9 +1240,9 @@ func awsAwsjson11_serializeOpDocumentListProjectsInput(v *ListProjectsInput, val object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1273,9 +1257,9 @@ func awsAwsjson11_serializeOpDocumentListResourcesInput(v *ListResourcesInput, v object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1300,9 +1284,9 @@ func awsAwsjson11_serializeOpDocumentListTagsForProjectInput(v *ListTagsForProje ok.String(*v.Id) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1317,9 +1301,9 @@ func awsAwsjson11_serializeOpDocumentListTeamMembersInput(v *ListTeamMembersInpu object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1339,9 +1323,9 @@ func awsAwsjson11_serializeOpDocumentListUserProfilesInput(v *ListUserProfilesIn object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1426,9 +1410,9 @@ func awsAwsjson11_serializeOpDocumentUpdateTeamMemberInput(v *UpdateTeamMemberIn ok.String(*v.ProjectRole) } - if v.RemoteAccessAllowed != nil { + if v.RemoteAccessAllowed { ok := object.Key("remoteAccessAllowed") - ok.Boolean(*v.RemoteAccessAllowed) + ok.Boolean(v.RemoteAccessAllowed) } if v.UserArn != nil { diff --git a/service/codestar/types/types.go b/service/codestar/types/types.go index 540175c1dd5..37993bca9ec 100644 --- a/service/codestar/types/types.go +++ b/service/codestar/types/types.go @@ -67,7 +67,7 @@ type GitHubCodeDestination struct { // Whether to enable issues for the GitHub repository. // // This member is required. - IssuesEnabled *bool + IssuesEnabled bool // Name of the GitHub repository to be created in AWS CodeStar. // @@ -84,7 +84,7 @@ type GitHubCodeDestination struct { // Whether the GitHub repository is to be a private repository. // // This member is required. - PrivateRepository *bool + PrivateRepository bool // The GitHub user's personal access token for the GitHub repository. // @@ -164,7 +164,7 @@ type TeamMember struct { // Whether the user is allowed to remotely access project resources using an SSH // public/private key pair. - RemoteAccessAllowed *bool + RemoteAccessAllowed bool } // The toolchain template file provided with the project request. AWS CodeStar uses @@ -184,7 +184,7 @@ type Toolchain struct { // The list of parameter overrides to be passed into the toolchain template during // stack provisioning, if any. - StackParameters map[string]*string + StackParameters map[string]string } // The Amazon S3 location where the toolchain template file provided with the diff --git a/service/codestar/validators.go b/service/codestar/validators.go index edad9b610c3..41a909eec4a 100644 --- a/service/codestar/validators.go +++ b/service/codestar/validators.go @@ -480,15 +480,9 @@ func validateGitHubCodeDestination(v *types.GitHubCodeDestination) error { if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } - if v.PrivateRepository == nil { - invalidParams.Add(smithy.NewErrParamRequired("PrivateRepository")) - } if v.Owner == nil { invalidParams.Add(smithy.NewErrParamRequired("Owner")) } - if v.IssuesEnabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("IssuesEnabled")) - } if v.Type == nil { invalidParams.Add(smithy.NewErrParamRequired("Type")) } @@ -502,13 +496,13 @@ func validateGitHubCodeDestination(v *types.GitHubCodeDestination) error { } } -func validateSourceCode(v []*types.Code) error { +func validateSourceCode(v []types.Code) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SourceCode"} for i := range v { - if err := validateCode(v[i]); err != nil { + if err := validateCode(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/codestarconnections/api_op_CreateConnection.go b/service/codestarconnections/api_op_CreateConnection.go index 5a0a6c6205d..0cf533024e3 100644 --- a/service/codestarconnections/api_op_CreateConnection.go +++ b/service/codestarconnections/api_op_CreateConnection.go @@ -47,7 +47,7 @@ type CreateConnectionInput struct { ProviderType types.ProviderType // The key-value pair to use when tagging the resource. - Tags []*types.Tag + Tags []types.Tag } type CreateConnectionOutput struct { @@ -60,7 +60,7 @@ type CreateConnectionOutput struct { ConnectionArn *string // Specifies the tags applied to the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codestarconnections/api_op_ListConnections.go b/service/codestarconnections/api_op_ListConnections.go index 6d04415ce62..041286ae451 100644 --- a/service/codestarconnections/api_op_ListConnections.go +++ b/service/codestarconnections/api_op_ListConnections.go @@ -34,7 +34,7 @@ type ListConnectionsInput struct { // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token that was returned from the previous ListConnections call, which can be // used to return the next set of connections in the list. @@ -49,7 +49,7 @@ type ListConnectionsOutput struct { // A list of connections and the details for each connection, such as status, // owner, and provider type. - Connections []*types.Connection + Connections []types.Connection // A token that can be used in the next ListConnections call. To view all items in // the list, continue to call this operation with each subsequent token until no diff --git a/service/codestarconnections/api_op_ListHosts.go b/service/codestarconnections/api_op_ListHosts.go index 6081046ff74..71853337892 100644 --- a/service/codestarconnections/api_op_ListHosts.go +++ b/service/codestarconnections/api_op_ListHosts.go @@ -31,7 +31,7 @@ type ListHostsInput struct { // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token that was returned from the previous ListHosts call, which can be used // to return the next set of hosts in the list. @@ -42,7 +42,7 @@ type ListHostsOutput struct { // A list of hosts and the details for each host, such as status, endpoint, and // provider type. - Hosts []*types.Host + Hosts []types.Host // A token that can be used in the next ListHosts call. To view all items in the // list, continue to call this operation with each subsequent token until no more diff --git a/service/codestarconnections/api_op_ListTagsForResource.go b/service/codestarconnections/api_op_ListTagsForResource.go index cd0d78daf4a..f42428dd763 100644 --- a/service/codestarconnections/api_op_ListTagsForResource.go +++ b/service/codestarconnections/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // A list of tag key and value pairs associated with the specified resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codestarconnections/api_op_TagResource.go b/service/codestarconnections/api_op_TagResource.go index b236d53457e..de4d39f5759 100644 --- a/service/codestarconnections/api_op_TagResource.go +++ b/service/codestarconnections/api_op_TagResource.go @@ -39,7 +39,7 @@ type TagResourceInput struct { // The tags you want to modify or add to the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/codestarconnections/api_op_UntagResource.go b/service/codestarconnections/api_op_UntagResource.go index 06d6a95e153..4d7377380dd 100644 --- a/service/codestarconnections/api_op_UntagResource.go +++ b/service/codestarconnections/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The list of keys for the tags to be removed from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/codestarconnections/deserializers.go b/service/codestarconnections/deserializers.go index 0b386f575a0..7013c673c71 100644 --- a/service/codestarconnections/deserializers.go +++ b/service/codestarconnections/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -1380,7 +1381,7 @@ func awsAwsjson10_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected ConnectionArn to be of type string, got %T instead", value) } - sv.ConnectionArn = &jtv + sv.ConnectionArn = ptr.String(jtv) } case "ConnectionName": @@ -1389,7 +1390,7 @@ func awsAwsjson10_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) } - sv.ConnectionName = &jtv + sv.ConnectionName = ptr.String(jtv) } case "ConnectionStatus": @@ -1407,7 +1408,7 @@ func awsAwsjson10_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected HostArn to be of type string, got %T instead", value) } - sv.HostArn = &jtv + sv.HostArn = ptr.String(jtv) } case "OwnerAccountId": @@ -1416,7 +1417,7 @@ func awsAwsjson10_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.OwnerAccountId = &jtv + sv.OwnerAccountId = ptr.String(jtv) } case "ProviderType": @@ -1437,7 +1438,7 @@ func awsAwsjson10_deserializeDocumentConnection(v **types.Connection, value inte return nil } -func awsAwsjson10_deserializeDocumentConnectionList(v *[]*types.Connection, value interface{}) error { +func awsAwsjson10_deserializeDocumentConnectionList(v *[]types.Connection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1450,18 +1451,20 @@ func awsAwsjson10_deserializeDocumentConnectionList(v *[]*types.Connection, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Connection + var cv []types.Connection if *v == nil { - cv = []*types.Connection{} + cv = []types.Connection{} } else { cv = *v } for _, value := range shape { - var col *types.Connection - if err := awsAwsjson10_deserializeDocumentConnection(&col, value); err != nil { + var col types.Connection + destAddr := &col + if err := awsAwsjson10_deserializeDocumentConnection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1497,7 +1500,7 @@ func awsAwsjson10_deserializeDocumentHost(v **types.Host, value interface{}) err if !ok { return fmt.Errorf("expected HostArn to be of type string, got %T instead", value) } - sv.HostArn = &jtv + sv.HostArn = ptr.String(jtv) } case "Name": @@ -1506,7 +1509,7 @@ func awsAwsjson10_deserializeDocumentHost(v **types.Host, value interface{}) err if !ok { return fmt.Errorf("expected HostName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ProviderEndpoint": @@ -1515,7 +1518,7 @@ func awsAwsjson10_deserializeDocumentHost(v **types.Host, value interface{}) err if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ProviderEndpoint = &jtv + sv.ProviderEndpoint = ptr.String(jtv) } case "ProviderType": @@ -1533,7 +1536,7 @@ func awsAwsjson10_deserializeDocumentHost(v **types.Host, value interface{}) err if !ok { return fmt.Errorf("expected HostStatus to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "StatusMessage": @@ -1542,7 +1545,7 @@ func awsAwsjson10_deserializeDocumentHost(v **types.Host, value interface{}) err if !ok { return fmt.Errorf("expected HostStatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "VpcConfiguration": @@ -1559,7 +1562,7 @@ func awsAwsjson10_deserializeDocumentHost(v **types.Host, value interface{}) err return nil } -func awsAwsjson10_deserializeDocumentHostList(v *[]*types.Host, value interface{}) error { +func awsAwsjson10_deserializeDocumentHostList(v *[]types.Host, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1572,18 +1575,20 @@ func awsAwsjson10_deserializeDocumentHostList(v *[]*types.Host, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Host + var cv []types.Host if *v == nil { - cv = []*types.Host{} + cv = []types.Host{} } else { cv = *v } for _, value := range shape { - var col *types.Host - if err := awsAwsjson10_deserializeDocumentHost(&col, value); err != nil { + var col types.Host + destAddr := &col + if err := awsAwsjson10_deserializeDocumentHost(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1619,7 +1624,7 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1659,7 +1664,7 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1699,7 +1704,7 @@ func awsAwsjson10_deserializeDocumentResourceUnavailableException(v **types.Reso if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1711,7 +1716,7 @@ func awsAwsjson10_deserializeDocumentResourceUnavailableException(v **types.Reso return nil } -func awsAwsjson10_deserializeDocumentSecurityGroupIds(v *[]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentSecurityGroupIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1724,21 +1729,21 @@ func awsAwsjson10_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1747,7 +1752,7 @@ func awsAwsjson10_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return nil } -func awsAwsjson10_deserializeDocumentSubnetIds(v *[]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentSubnetIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1760,21 +1765,21 @@ func awsAwsjson10_deserializeDocumentSubnetIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1811,7 +1816,7 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -1820,7 +1825,7 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -1832,7 +1837,7 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson10_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson10_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1845,18 +1850,20 @@ func awsAwsjson10_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson10_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson10_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1902,7 +1909,7 @@ func awsAwsjson10_deserializeDocumentVpcConfiguration(v **types.VpcConfiguration if !ok { return fmt.Errorf("expected TlsCertificate to be of type string, got %T instead", value) } - sv.TlsCertificate = &jtv + sv.TlsCertificate = ptr.String(jtv) } case "VpcId": @@ -1911,7 +1918,7 @@ func awsAwsjson10_deserializeDocumentVpcConfiguration(v **types.VpcConfiguration if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -1951,7 +1958,7 @@ func awsAwsjson10_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if !ok { return fmt.Errorf("expected ConnectionArn to be of type string, got %T instead", value) } - sv.ConnectionArn = &jtv + sv.ConnectionArn = ptr.String(jtv) } case "Tags": @@ -1996,7 +2003,7 @@ func awsAwsjson10_deserializeOpDocumentCreateHostOutput(v **CreateHostOutput, va if !ok { return fmt.Errorf("expected HostArn to be of type string, got %T instead", value) } - sv.HostArn = &jtv + sv.HostArn = ptr.String(jtv) } default: @@ -2134,7 +2141,7 @@ func awsAwsjson10_deserializeOpDocumentGetHostOutput(v **GetHostOutput, value in if !ok { return fmt.Errorf("expected HostName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ProviderEndpoint": @@ -2143,7 +2150,7 @@ func awsAwsjson10_deserializeOpDocumentGetHostOutput(v **GetHostOutput, value in if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ProviderEndpoint = &jtv + sv.ProviderEndpoint = ptr.String(jtv) } case "ProviderType": @@ -2161,7 +2168,7 @@ func awsAwsjson10_deserializeOpDocumentGetHostOutput(v **GetHostOutput, value in if !ok { return fmt.Errorf("expected HostStatus to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "VpcConfiguration": @@ -2211,7 +2218,7 @@ func awsAwsjson10_deserializeOpDocumentListConnectionsOutput(v **ListConnections if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2256,7 +2263,7 @@ func awsAwsjson10_deserializeOpDocumentListHostsOutput(v **ListHostsOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: diff --git a/service/codestarconnections/go.mod b/service/codestarconnections/go.mod index e0cd9e7c81f..3be32b66625 100644 --- a/service/codestarconnections/go.mod +++ b/service/codestarconnections/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/codestarconnections go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/codestarconnections/serializers.go b/service/codestarconnections/serializers.go index faebebf5c81..3a09c390772 100644 --- a/service/codestarconnections/serializers.go +++ b/service/codestarconnections/serializers.go @@ -519,32 +519,24 @@ func (m *awsAwsjson10_serializeOpUntagResource) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -func awsAwsjson10_serializeDocumentSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson10_serializeDocumentSubnetIds(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentSubnetIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -566,32 +558,24 @@ func awsAwsjson10_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson10_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson10_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -744,9 +728,9 @@ func awsAwsjson10_serializeOpDocumentListConnectionsInput(v *ListConnectionsInpu ok.String(*v.HostArnFilter) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -766,9 +750,9 @@ func awsAwsjson10_serializeOpDocumentListHostsInput(v *ListHostsInput, value smi object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { diff --git a/service/codestarconnections/types/types.go b/service/codestarconnections/types/types.go index bab291d82bb..6463854adb7 100644 --- a/service/codestarconnections/types/types.go +++ b/service/codestarconnections/types/types.go @@ -88,13 +88,13 @@ type VpcConfiguration struct { // connected to the infrastructure where your provider type is installed. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // The ID of the subnet or subnets associated with the Amazon VPC connected to the // infrastructure where your provider type is installed. // // This member is required. - SubnetIds []*string + SubnetIds []string // The ID of the Amazon VPC connected to the infrastructure where your provider // type is installed. diff --git a/service/codestarconnections/validators.go b/service/codestarconnections/validators.go index 9757f3e6ace..da940539e29 100644 --- a/service/codestarconnections/validators.go +++ b/service/codestarconnections/validators.go @@ -244,13 +244,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/codestarnotifications/api_op_CreateNotificationRule.go b/service/codestarnotifications/api_op_CreateNotificationRule.go index 269b3c4d885..76ed5f62026 100644 --- a/service/codestarnotifications/api_op_CreateNotificationRule.go +++ b/service/codestarnotifications/api_op_CreateNotificationRule.go @@ -45,7 +45,7 @@ type CreateNotificationRuleInput struct { // allowed events, see EventTypeSummary. // // This member is required. - EventTypeIds []*string + EventTypeIds []string // The name for the notification rule. Notifictaion rule names must be unique in // your AWS account. @@ -64,7 +64,7 @@ type CreateNotificationRuleInput struct { // notification rule. // // This member is required. - Targets []*types.Target + Targets []types.Target // A unique, client-generated idempotency token that, when provided in a request, // ensures the request cannot be repeated with a changed parameter. If a request @@ -80,7 +80,7 @@ type CreateNotificationRuleInput struct { // A list of tags to apply to this notification rule. Key names cannot start with // "aws". - Tags map[string]*string + Tags map[string]string } type CreateNotificationRuleOutput struct { diff --git a/service/codestarnotifications/api_op_DeleteTarget.go b/service/codestarnotifications/api_op_DeleteTarget.go index f422c5b8c55..5e7ac92e02c 100644 --- a/service/codestarnotifications/api_op_DeleteTarget.go +++ b/service/codestarnotifications/api_op_DeleteTarget.go @@ -36,7 +36,7 @@ type DeleteTargetInput struct { // A Boolean value that can be used to delete all associations with this SNS topic. // The default value is FALSE. If set to TRUE, all associations between that target // and every notification rule in your AWS account are deleted. - ForceUnsubscribeAll *bool + ForceUnsubscribeAll bool } type DeleteTargetOutput struct { diff --git a/service/codestarnotifications/api_op_DescribeNotificationRule.go b/service/codestarnotifications/api_op_DescribeNotificationRule.go index e369c07d11c..61bad9ab8bf 100644 --- a/service/codestarnotifications/api_op_DescribeNotificationRule.go +++ b/service/codestarnotifications/api_op_DescribeNotificationRule.go @@ -57,7 +57,7 @@ type DescribeNotificationRuleOutput struct { DetailType types.DetailType // A list of the event types associated with the notification rule. - EventTypes []*types.EventTypeSummary + EventTypes []types.EventTypeSummary // The date and time the notification rule was most recently updated, in timestamp // format. @@ -75,10 +75,10 @@ type DescribeNotificationRuleOutput struct { Status types.NotificationRuleStatus // The tags associated with the notification rule. - Tags map[string]*string + Tags map[string]string // A list of the SNS topics associated with the notification rule. - Targets []*types.TargetSummary + Targets []types.TargetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codestarnotifications/api_op_ListEventTypes.go b/service/codestarnotifications/api_op_ListEventTypes.go index d294add48fc..7d02afd16a2 100644 --- a/service/codestarnotifications/api_op_ListEventTypes.go +++ b/service/codestarnotifications/api_op_ListEventTypes.go @@ -31,11 +31,11 @@ func (c *Client) ListEventTypes(ctx context.Context, params *ListEventTypesInput type ListEventTypesInput struct { // The filters to use to return information by service or resource type. - Filters []*types.ListEventTypesFilter + Filters []types.ListEventTypesFilter // A non-negative integer used to limit the number of returned results. The default // number is 50. The maximum number of results that can be returned is 100. - MaxResults *int32 + MaxResults int32 // An enumeration token that, when provided in a request, returns the next batch of // the results. @@ -46,7 +46,7 @@ type ListEventTypesOutput struct { // Information about each event, including service name, resource type, event ID, // and event name. - EventTypes []*types.EventTypeSummary + EventTypes []types.EventTypeSummary // An enumeration token that can be used in a request to return the next batch of // the results. diff --git a/service/codestarnotifications/api_op_ListNotificationRules.go b/service/codestarnotifications/api_op_ListNotificationRules.go index c1f933ba11d..9791496babc 100644 --- a/service/codestarnotifications/api_op_ListNotificationRules.go +++ b/service/codestarnotifications/api_op_ListNotificationRules.go @@ -33,11 +33,11 @@ type ListNotificationRulesInput struct { // values, see ListNotificationRulesFilter. A filter with the same name can appear // more than once when used with OR statements. Filters with different names should // be applied with AND statements. - Filters []*types.ListNotificationRulesFilter + Filters []types.ListNotificationRulesFilter // A non-negative integer used to limit the number of returned results. The maximum // number of results that can be returned is 100. - MaxResults *int32 + MaxResults int32 // An enumeration token that, when provided in a request, returns the next batch of // the results. @@ -52,7 +52,7 @@ type ListNotificationRulesOutput struct { // The list of notification rules for the AWS account, by Amazon Resource Name // (ARN) and ID. - NotificationRules []*types.NotificationRuleSummary + NotificationRules []types.NotificationRuleSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codestarnotifications/api_op_ListTagsForResource.go b/service/codestarnotifications/api_op_ListTagsForResource.go index 94b2b12eb20..a5d8f36f265 100644 --- a/service/codestarnotifications/api_op_ListTagsForResource.go +++ b/service/codestarnotifications/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags associated with the notification rule. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codestarnotifications/api_op_ListTargets.go b/service/codestarnotifications/api_op_ListTargets.go index 465e24e50c5..099ea6b72d6 100644 --- a/service/codestarnotifications/api_op_ListTargets.go +++ b/service/codestarnotifications/api_op_ListTargets.go @@ -33,11 +33,11 @@ type ListTargetsInput struct { // filters include target type, target address, and target status. A filter with // the same name can appear more than once when used with OR statements. Filters // with different names should be applied with AND statements. - Filters []*types.ListTargetsFilter + Filters []types.ListTargetsFilter // A non-negative integer used to limit the number of returned results. The maximum // number of results that can be returned is 100. - MaxResults *int32 + MaxResults int32 // An enumeration token that, when provided in a request, returns the next batch of // the results. @@ -51,7 +51,7 @@ type ListTargetsOutput struct { NextToken *string // The list of notification rule targets. - Targets []*types.TargetSummary + Targets []types.TargetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codestarnotifications/api_op_TagResource.go b/service/codestarnotifications/api_op_TagResource.go index 79a37949ec2..37385c50af2 100644 --- a/service/codestarnotifications/api_op_TagResource.go +++ b/service/codestarnotifications/api_op_TagResource.go @@ -37,13 +37,13 @@ type TagResourceInput struct { // "aws". // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { // The list of tags associated with the resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/codestarnotifications/api_op_UntagResource.go b/service/codestarnotifications/api_op_UntagResource.go index 0899c82980d..67f53cb9c60 100644 --- a/service/codestarnotifications/api_op_UntagResource.go +++ b/service/codestarnotifications/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // The key names of the tags to remove. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/codestarnotifications/api_op_UpdateNotificationRule.go b/service/codestarnotifications/api_op_UpdateNotificationRule.go index 82fc5e501eb..6d100dab1b9 100644 --- a/service/codestarnotifications/api_op_UpdateNotificationRule.go +++ b/service/codestarnotifications/api_op_UpdateNotificationRule.go @@ -45,7 +45,7 @@ type UpdateNotificationRuleInput struct { DetailType types.DetailType // A list of event types associated with this notification rule. - EventTypeIds []*string + EventTypeIds []string // The name of the notification rule. Name *string @@ -56,7 +56,7 @@ type UpdateNotificationRuleInput struct { // The address and type of the targets to receive notifications from this // notification rule. - Targets []*types.Target + Targets []types.Target } type UpdateNotificationRuleOutput struct { diff --git a/service/codestarnotifications/deserializers.go b/service/codestarnotifications/deserializers.go index 18dd2bf46c2..142c451a91f 100644 --- a/service/codestarnotifications/deserializers.go +++ b/service/codestarnotifications/deserializers.go @@ -173,7 +173,7 @@ func awsRestjson1_deserializeOpDocumentCreateNotificationRuleOutput(v **CreateNo if !ok { return fmt.Errorf("expected NotificationRuleArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -330,7 +330,7 @@ func awsRestjson1_deserializeOpDocumentDeleteNotificationRuleOutput(v **DeleteNo if !ok { return fmt.Errorf("expected NotificationRuleArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -567,7 +567,7 @@ func awsRestjson1_deserializeOpDocumentDescribeNotificationRuleOutput(v **Descri if !ok { return fmt.Errorf("expected NotificationRuleArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedBy": @@ -576,7 +576,7 @@ func awsRestjson1_deserializeOpDocumentDescribeNotificationRuleOutput(v **Descri if !ok { return fmt.Errorf("expected NotificationRuleCreatedBy to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "CreatedTimestamp": @@ -625,7 +625,7 @@ func awsRestjson1_deserializeOpDocumentDescribeNotificationRuleOutput(v **Descri if !ok { return fmt.Errorf("expected NotificationRuleName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Resource": @@ -634,7 +634,7 @@ func awsRestjson1_deserializeOpDocumentDescribeNotificationRuleOutput(v **Descri if !ok { return fmt.Errorf("expected NotificationRuleResource to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "Status": @@ -812,7 +812,7 @@ func awsRestjson1_deserializeOpDocumentListEventTypesOutput(v **ListEventTypesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -966,7 +966,7 @@ func awsRestjson1_deserializeOpDocumentListNotificationRulesOutput(v **ListNotif if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "NotificationRules": @@ -1275,7 +1275,7 @@ func awsRestjson1_deserializeOpDocumentListTargetsOutput(v **ListTargetsOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Targets": @@ -1434,7 +1434,7 @@ func awsRestjson1_deserializeOpDocumentSubscribeOutput(v **SubscribeOutput, valu if !ok { return fmt.Errorf("expected NotificationRuleArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -1738,7 +1738,7 @@ func awsRestjson1_deserializeOpDocumentUnsubscribeOutput(v **UnsubscribeOutput, if !ok { return fmt.Errorf("expected NotificationRuleArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -2241,7 +2241,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2281,7 +2281,7 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2321,7 +2321,7 @@ func awsRestjson1_deserializeDocumentConfigurationException(v **types.Configurat if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2333,7 +2333,7 @@ func awsRestjson1_deserializeDocumentConfigurationException(v **types.Configurat return nil } -func awsRestjson1_deserializeDocumentEventTypeBatch(v *[]*types.EventTypeSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentEventTypeBatch(v *[]types.EventTypeSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2346,18 +2346,20 @@ func awsRestjson1_deserializeDocumentEventTypeBatch(v *[]*types.EventTypeSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventTypeSummary + var cv []types.EventTypeSummary if *v == nil { - cv = []*types.EventTypeSummary{} + cv = []types.EventTypeSummary{} } else { cv = *v } for _, value := range shape { - var col *types.EventTypeSummary - if err := awsRestjson1_deserializeDocumentEventTypeSummary(&col, value); err != nil { + var col types.EventTypeSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentEventTypeSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2393,7 +2395,7 @@ func awsRestjson1_deserializeDocumentEventTypeSummary(v **types.EventTypeSummary if !ok { return fmt.Errorf("expected EventTypeId to be of type string, got %T instead", value) } - sv.EventTypeId = &jtv + sv.EventTypeId = ptr.String(jtv) } case "EventTypeName": @@ -2402,7 +2404,7 @@ func awsRestjson1_deserializeDocumentEventTypeSummary(v **types.EventTypeSummary if !ok { return fmt.Errorf("expected EventTypeName to be of type string, got %T instead", value) } - sv.EventTypeName = &jtv + sv.EventTypeName = ptr.String(jtv) } case "ResourceType": @@ -2411,7 +2413,7 @@ func awsRestjson1_deserializeDocumentEventTypeSummary(v **types.EventTypeSummary if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "ServiceName": @@ -2420,7 +2422,7 @@ func awsRestjson1_deserializeDocumentEventTypeSummary(v **types.EventTypeSummary if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } default: @@ -2460,7 +2462,7 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2500,7 +2502,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2512,7 +2514,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsRestjson1_deserializeDocumentNotificationRuleBatch(v *[]*types.NotificationRuleSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentNotificationRuleBatch(v *[]types.NotificationRuleSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2525,18 +2527,20 @@ func awsRestjson1_deserializeDocumentNotificationRuleBatch(v *[]*types.Notificat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NotificationRuleSummary + var cv []types.NotificationRuleSummary if *v == nil { - cv = []*types.NotificationRuleSummary{} + cv = []types.NotificationRuleSummary{} } else { cv = *v } for _, value := range shape { - var col *types.NotificationRuleSummary - if err := awsRestjson1_deserializeDocumentNotificationRuleSummary(&col, value); err != nil { + var col types.NotificationRuleSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentNotificationRuleSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2572,7 +2576,7 @@ func awsRestjson1_deserializeDocumentNotificationRuleSummary(v **types.Notificat if !ok { return fmt.Errorf("expected NotificationRuleArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -2581,7 +2585,7 @@ func awsRestjson1_deserializeDocumentNotificationRuleSummary(v **types.Notificat if !ok { return fmt.Errorf("expected NotificationRuleId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -2621,7 +2625,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2661,7 +2665,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2673,7 +2677,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2686,21 +2690,21 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -2709,7 +2713,7 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return nil } -func awsRestjson1_deserializeDocumentTargetsBatch(v *[]*types.TargetSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentTargetsBatch(v *[]types.TargetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2722,18 +2726,20 @@ func awsRestjson1_deserializeDocumentTargetsBatch(v *[]*types.TargetSummary, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TargetSummary + var cv []types.TargetSummary if *v == nil { - cv = []*types.TargetSummary{} + cv = []types.TargetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TargetSummary - if err := awsRestjson1_deserializeDocumentTargetSummary(&col, value); err != nil { + var col types.TargetSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentTargetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2769,7 +2775,7 @@ func awsRestjson1_deserializeDocumentTargetSummary(v **types.TargetSummary, valu if !ok { return fmt.Errorf("expected TargetAddress to be of type string, got %T instead", value) } - sv.TargetAddress = &jtv + sv.TargetAddress = ptr.String(jtv) } case "TargetStatus": @@ -2787,7 +2793,7 @@ func awsRestjson1_deserializeDocumentTargetSummary(v **types.TargetSummary, valu if !ok { return fmt.Errorf("expected TargetType to be of type string, got %T instead", value) } - sv.TargetType = &jtv + sv.TargetType = ptr.String(jtv) } default: @@ -2827,7 +2833,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/codestarnotifications/go.mod b/service/codestarnotifications/go.mod index c562f5598f9..0df9e03d172 100644 --- a/service/codestarnotifications/go.mod +++ b/service/codestarnotifications/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/codestarnotifications go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/codestarnotifications/serializers.go b/service/codestarnotifications/serializers.go index eb7dd927550..28188a3716d 100644 --- a/service/codestarnotifications/serializers.go +++ b/service/codestarnotifications/serializers.go @@ -266,9 +266,9 @@ func awsRestjson1_serializeOpDocumentDeleteTargetInput(v *DeleteTargetInput, val object := value.Object() defer object.Close() - if v.ForceUnsubscribeAll != nil { + if v.ForceUnsubscribeAll { ok := object.Key("ForceUnsubscribeAll") - ok.Boolean(*v.ForceUnsubscribeAll) + ok.Boolean(v.ForceUnsubscribeAll) } if v.TargetAddress != nil { @@ -424,9 +424,9 @@ func awsRestjson1_serializeOpDocumentListEventTypesInput(v *ListEventTypesInput, } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -509,9 +509,9 @@ func awsRestjson1_serializeOpDocumentListNotificationRulesInput(v *ListNotificat } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -667,9 +667,9 @@ func awsRestjson1_serializeOpDocumentListTargetsInput(v *ListTargetsInput, value } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1105,17 +1105,13 @@ func awsRestjson1_serializeOpDocumentUpdateNotificationRuleInput(v *UpdateNotifi return nil } -func awsRestjson1_serializeDocumentEventTypeIds(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEventTypeIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1137,17 +1133,13 @@ func awsRestjson1_serializeDocumentListEventTypesFilter(v *types.ListEventTypesF return nil } -func awsRestjson1_serializeDocumentListEventTypesFilters(v []*types.ListEventTypesFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListEventTypesFilters(v []types.ListEventTypesFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentListEventTypesFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentListEventTypesFilter(&v[i], av); err != nil { return err } } @@ -1171,17 +1163,13 @@ func awsRestjson1_serializeDocumentListNotificationRulesFilter(v *types.ListNoti return nil } -func awsRestjson1_serializeDocumentListNotificationRulesFilters(v []*types.ListNotificationRulesFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListNotificationRulesFilters(v []types.ListNotificationRulesFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentListNotificationRulesFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentListNotificationRulesFilter(&v[i], av); err != nil { return err } } @@ -1205,49 +1193,37 @@ func awsRestjson1_serializeDocumentListTargetsFilter(v *types.ListTargetsFilter, return nil } -func awsRestjson1_serializeDocumentListTargetsFilters(v []*types.ListTargetsFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListTargetsFilters(v []types.ListTargetsFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentListTargetsFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentListTargetsFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1269,17 +1245,13 @@ func awsRestjson1_serializeDocumentTarget(v *types.Target, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentTargets(v []*types.Target, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTargets(v []types.Target, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTarget(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTarget(&v[i], av); err != nil { return err } } diff --git a/service/codestarnotifications/validators.go b/service/codestarnotifications/validators.go index e07690ec4d1..b412687711a 100644 --- a/service/codestarnotifications/validators.go +++ b/service/codestarnotifications/validators.go @@ -340,13 +340,13 @@ func validateListEventTypesFilter(v *types.ListEventTypesFilter) error { } } -func validateListEventTypesFilters(v []*types.ListEventTypesFilter) error { +func validateListEventTypesFilters(v []types.ListEventTypesFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListEventTypesFilters"} for i := range v { - if err := validateListEventTypesFilter(v[i]); err != nil { + if err := validateListEventTypesFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -375,13 +375,13 @@ func validateListNotificationRulesFilter(v *types.ListNotificationRulesFilter) e } } -func validateListNotificationRulesFilters(v []*types.ListNotificationRulesFilter) error { +func validateListNotificationRulesFilters(v []types.ListNotificationRulesFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListNotificationRulesFilters"} for i := range v { - if err := validateListNotificationRulesFilter(v[i]); err != nil { + if err := validateListNotificationRulesFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -410,13 +410,13 @@ func validateListTargetsFilter(v *types.ListTargetsFilter) error { } } -func validateListTargetsFilters(v []*types.ListTargetsFilter) error { +func validateListTargetsFilters(v []types.ListTargetsFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListTargetsFilters"} for i := range v { - if err := validateListTargetsFilter(v[i]); err != nil { + if err := validateListTargetsFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/cognitoidentity/api_op_CreateIdentityPool.go b/service/cognitoidentity/api_op_CreateIdentityPool.go index e96870e0ff2..ecce0f4f95a 100644 --- a/service/cognitoidentity/api_op_CreateIdentityPool.go +++ b/service/cognitoidentity/api_op_CreateIdentityPool.go @@ -50,7 +50,7 @@ type CreateIdentityPoolInput struct { // TRUE if the identity pool supports unauthenticated logins. // // This member is required. - AllowUnauthenticatedIdentities *bool + AllowUnauthenticatedIdentities bool // A string that you provide. // @@ -64,7 +64,7 @@ type CreateIdentityPoolInput struct { AllowClassicFlow *bool // An array of Amazon Cognito user pools and their client IDs. - CognitoIdentityProviders []*types.CognitoIdentityProvider + CognitoIdentityProviders []types.CognitoIdentityProvider // The "domain" by which Cognito will refer to your users. This name acts as a // placeholder that allows your backend and the Cognito service to communicate @@ -77,17 +77,17 @@ type CreateIdentityPoolInput struct { // Tags to assign to the identity pool. A tag is a label that you can apply to // identity pools to categorize and manage them in different ways, such as by // purpose, owner, environment, or other criteria. - IdentityPoolTags map[string]*string + IdentityPoolTags map[string]string // A list of OpendID Connect provider ARNs. - OpenIdConnectProviderARNs []*string + OpenIdConnectProviderARNs []string // An array of Amazon Resource Names (ARNs) of the SAML provider for your identity // pool. - SamlProviderARNs []*string + SamlProviderARNs []string // Optional key:value pairs mapping provider names to provider app IDs. - SupportedLoginProviders map[string]*string + SupportedLoginProviders map[string]string } // An object representing an Amazon Cognito identity pool. @@ -96,7 +96,7 @@ type CreateIdentityPoolOutput struct { // TRUE if the identity pool supports unauthenticated logins. // // This member is required. - AllowUnauthenticatedIdentities *bool + AllowUnauthenticatedIdentities bool // An identity pool ID in the format REGION:GUID. // @@ -115,7 +115,7 @@ type CreateIdentityPoolOutput struct { AllowClassicFlow *bool // A list representing an Amazon Cognito user pool and its client ID. - CognitoIdentityProviders []*types.CognitoIdentityProvider + CognitoIdentityProviders []types.CognitoIdentityProvider // The "domain" by which Cognito will refer to your users. DeveloperProviderName *string @@ -123,17 +123,17 @@ type CreateIdentityPoolOutput struct { // The tags that are assigned to the identity pool. A tag is a label that you can // apply to identity pools to categorize and manage them in different ways, such as // by purpose, owner, environment, or other criteria. - IdentityPoolTags map[string]*string + IdentityPoolTags map[string]string // A list of OpendID Connect provider ARNs. - OpenIdConnectProviderARNs []*string + OpenIdConnectProviderARNs []string // An array of Amazon Resource Names (ARNs) of the SAML provider for your identity // pool. - SamlProviderARNs []*string + SamlProviderARNs []string // Optional key:value pairs mapping provider names to provider app IDs. - SupportedLoginProviders map[string]*string + SupportedLoginProviders map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentity/api_op_DeleteIdentities.go b/service/cognitoidentity/api_op_DeleteIdentities.go index 9fa17c024b6..e3a3406037c 100644 --- a/service/cognitoidentity/api_op_DeleteIdentities.go +++ b/service/cognitoidentity/api_op_DeleteIdentities.go @@ -35,7 +35,7 @@ type DeleteIdentitiesInput struct { // A list of 1-60 identities that you want to delete. // // This member is required. - IdentityIdsToDelete []*string + IdentityIdsToDelete []string } // Returned in response to a successful DeleteIdentities operation. @@ -43,7 +43,7 @@ type DeleteIdentitiesOutput struct { // An array of UnprocessedIdentityId objects, each of which contains an ErrorCode // and IdentityId. - UnprocessedIdentityIds []*types.UnprocessedIdentityId + UnprocessedIdentityIds []types.UnprocessedIdentityId // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentity/api_op_DescribeIdentity.go b/service/cognitoidentity/api_op_DescribeIdentity.go index 2f1cf34bfd6..358a80fecaf 100644 --- a/service/cognitoidentity/api_op_DescribeIdentity.go +++ b/service/cognitoidentity/api_op_DescribeIdentity.go @@ -51,7 +51,7 @@ type DescribeIdentityOutput struct { LastModifiedDate *time.Time // The provider names. - Logins []*string + Logins []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentity/api_op_DescribeIdentityPool.go b/service/cognitoidentity/api_op_DescribeIdentityPool.go index 6a0543360ae..1102a4d0ac1 100644 --- a/service/cognitoidentity/api_op_DescribeIdentityPool.go +++ b/service/cognitoidentity/api_op_DescribeIdentityPool.go @@ -44,7 +44,7 @@ type DescribeIdentityPoolOutput struct { // TRUE if the identity pool supports unauthenticated logins. // // This member is required. - AllowUnauthenticatedIdentities *bool + AllowUnauthenticatedIdentities bool // An identity pool ID in the format REGION:GUID. // @@ -63,7 +63,7 @@ type DescribeIdentityPoolOutput struct { AllowClassicFlow *bool // A list representing an Amazon Cognito user pool and its client ID. - CognitoIdentityProviders []*types.CognitoIdentityProvider + CognitoIdentityProviders []types.CognitoIdentityProvider // The "domain" by which Cognito will refer to your users. DeveloperProviderName *string @@ -71,17 +71,17 @@ type DescribeIdentityPoolOutput struct { // The tags that are assigned to the identity pool. A tag is a label that you can // apply to identity pools to categorize and manage them in different ways, such as // by purpose, owner, environment, or other criteria. - IdentityPoolTags map[string]*string + IdentityPoolTags map[string]string // A list of OpendID Connect provider ARNs. - OpenIdConnectProviderARNs []*string + OpenIdConnectProviderARNs []string // An array of Amazon Resource Names (ARNs) of the SAML provider for your identity // pool. - SamlProviderARNs []*string + SamlProviderARNs []string // Optional key:value pairs mapping provider names to provider app IDs. - SupportedLoginProviders map[string]*string + SupportedLoginProviders map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentity/api_op_GetCredentialsForIdentity.go b/service/cognitoidentity/api_op_GetCredentialsForIdentity.go index b2debc3c617..f079f40b919 100644 --- a/service/cognitoidentity/api_op_GetCredentialsForIdentity.go +++ b/service/cognitoidentity/api_op_GetCredentialsForIdentity.go @@ -53,7 +53,7 @@ type GetCredentialsForIdentityInput struct { // Identity Providers // (http://docs.aws.amazon.com/cognito/latest/developerguide/external-identity-providers.html) // section of the Amazon Cognito Developer Guide. - Logins map[string]*string + Logins map[string]string } // Returned in response to a successful GetCredentialsForIdentity operation. diff --git a/service/cognitoidentity/api_op_GetId.go b/service/cognitoidentity/api_op_GetId.go index 3939898513d..e893e8a552d 100644 --- a/service/cognitoidentity/api_op_GetId.go +++ b/service/cognitoidentity/api_op_GetId.go @@ -56,7 +56,7 @@ type GetIdInput struct { // // * // Digits: www.digits.com - Logins map[string]*string + Logins map[string]string } // Returned in response to a GetId request. diff --git a/service/cognitoidentity/api_op_GetIdentityPoolRoles.go b/service/cognitoidentity/api_op_GetIdentityPoolRoles.go index daa7d6a75fe..acbcb7096d9 100644 --- a/service/cognitoidentity/api_op_GetIdentityPoolRoles.go +++ b/service/cognitoidentity/api_op_GetIdentityPoolRoles.go @@ -47,11 +47,11 @@ type GetIdentityPoolRolesOutput struct { // String-to-RoleMapping object map. The string identifies the identity provider, // for example, "graph.facebook.com" or // "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". - RoleMappings map[string]*types.RoleMapping + RoleMappings map[string]types.RoleMapping // The map of roles associated with this pool. Currently only authenticated and // unauthenticated roles are supported. - Roles map[string]*string + Roles map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentity/api_op_GetOpenIdToken.go b/service/cognitoidentity/api_op_GetOpenIdToken.go index 13817e88497..b8d0ccdd77d 100644 --- a/service/cognitoidentity/api_op_GetOpenIdToken.go +++ b/service/cognitoidentity/api_op_GetOpenIdToken.go @@ -42,7 +42,7 @@ type GetOpenIdTokenInput struct { // returned from the provider's authflow. For accounts.google.com, an Amazon // Cognito user pool provider, or any other OpenId Connect provider, always include // the id_token. - Logins map[string]*string + Logins map[string]string } // Returned in response to a successful GetOpenIdToken request. diff --git a/service/cognitoidentity/api_op_GetOpenIdTokenForDeveloperIdentity.go b/service/cognitoidentity/api_op_GetOpenIdTokenForDeveloperIdentity.go index e44c41fb090..bd924aa9a00 100644 --- a/service/cognitoidentity/api_op_GetOpenIdTokenForDeveloperIdentity.go +++ b/service/cognitoidentity/api_op_GetOpenIdTokenForDeveloperIdentity.go @@ -57,7 +57,7 @@ type GetOpenIdTokenForDeveloperIdentityInput struct { // supported logins. // // This member is required. - Logins map[string]*string + Logins map[string]string // A unique identifier in the format REGION:GUID. IdentityId *string diff --git a/service/cognitoidentity/api_op_ListIdentities.go b/service/cognitoidentity/api_op_ListIdentities.go index b90d8da6952..1ca6a9c0bcc 100644 --- a/service/cognitoidentity/api_op_ListIdentities.go +++ b/service/cognitoidentity/api_op_ListIdentities.go @@ -39,12 +39,12 @@ type ListIdentitiesInput struct { // The maximum number of identities to return. // // This member is required. - MaxResults *int32 + MaxResults int32 // An optional boolean parameter that allows you to hide disabled identities. If // omitted, the ListIdentities API will include disabled identities in the // response. - HideDisabled *bool + HideDisabled bool // A pagination token. NextToken *string @@ -54,7 +54,7 @@ type ListIdentitiesInput struct { type ListIdentitiesOutput struct { // An object containing a set of identities and associated mappings. - Identities []*types.IdentityDescription + Identities []types.IdentityDescription // An identity pool ID in the format REGION:GUID. IdentityPoolId *string diff --git a/service/cognitoidentity/api_op_ListIdentityPools.go b/service/cognitoidentity/api_op_ListIdentityPools.go index f7be698963a..67a60d4dab6 100644 --- a/service/cognitoidentity/api_op_ListIdentityPools.go +++ b/service/cognitoidentity/api_op_ListIdentityPools.go @@ -34,7 +34,7 @@ type ListIdentityPoolsInput struct { // The maximum number of identities to return. // // This member is required. - MaxResults *int32 + MaxResults int32 // A pagination token. NextToken *string @@ -44,7 +44,7 @@ type ListIdentityPoolsInput struct { type ListIdentityPoolsOutput struct { // The identity pools returned by the ListIdentityPools action. - IdentityPools []*types.IdentityPoolShortDescription + IdentityPools []types.IdentityPoolShortDescription // A pagination token. NextToken *string diff --git a/service/cognitoidentity/api_op_ListTagsForResource.go b/service/cognitoidentity/api_op_ListTagsForResource.go index 7bffa05f0d0..97893ddb591 100644 --- a/service/cognitoidentity/api_op_ListTagsForResource.go +++ b/service/cognitoidentity/api_op_ListTagsForResource.go @@ -41,7 +41,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags that are assigned to the identity pool. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentity/api_op_LookupDeveloperIdentity.go b/service/cognitoidentity/api_op_LookupDeveloperIdentity.go index 87bc35112d9..b87a15b6276 100644 --- a/service/cognitoidentity/api_op_LookupDeveloperIdentity.go +++ b/service/cognitoidentity/api_op_LookupDeveloperIdentity.go @@ -56,7 +56,7 @@ type LookupDeveloperIdentityInput struct { IdentityId *string // The maximum number of identities to return. - MaxResults *int32 + MaxResults int32 // A pagination token. The first call you make will have NextToken set to null. // After that the service will return NextToken values as needed. For example, @@ -73,7 +73,7 @@ type LookupDeveloperIdentityOutput struct { // This is the list of developer user identifiers associated with an identity ID. // Cognito supports the association of multiple developer user identifiers with an // identity ID. - DeveloperUserIdentifierList []*string + DeveloperUserIdentifierList []string // A unique identifier in the format REGION:GUID. IdentityId *string diff --git a/service/cognitoidentity/api_op_SetIdentityPoolRoles.go b/service/cognitoidentity/api_op_SetIdentityPoolRoles.go index a0a14ac67c7..90a05ae631d 100644 --- a/service/cognitoidentity/api_op_SetIdentityPoolRoles.go +++ b/service/cognitoidentity/api_op_SetIdentityPoolRoles.go @@ -41,14 +41,14 @@ type SetIdentityPoolRolesInput struct { // either "authenticated" or "unauthenticated" and the value will be the Role ARN. // // This member is required. - Roles map[string]*string + Roles map[string]string // How users for a specific identity provider are to mapped to roles. This is a // string to RoleMapping object map. The string identifies the identity provider, // for example, "graph.facebook.com" or // "cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". Up to 25 // rules can be specified per identity provider. - RoleMappings map[string]*types.RoleMapping + RoleMappings map[string]types.RoleMapping } type SetIdentityPoolRolesOutput struct { diff --git a/service/cognitoidentity/api_op_TagResource.go b/service/cognitoidentity/api_op_TagResource.go index be916054191..82d4ab53a08 100644 --- a/service/cognitoidentity/api_op_TagResource.go +++ b/service/cognitoidentity/api_op_TagResource.go @@ -48,7 +48,7 @@ type TagResourceInput struct { // The tags to assign to the identity pool. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/cognitoidentity/api_op_UnlinkIdentity.go b/service/cognitoidentity/api_op_UnlinkIdentity.go index 8a525754c17..608fe37d06e 100644 --- a/service/cognitoidentity/api_op_UnlinkIdentity.go +++ b/service/cognitoidentity/api_op_UnlinkIdentity.go @@ -39,12 +39,12 @@ type UnlinkIdentityInput struct { // A set of optional name-value pairs that map provider names to provider tokens. // // This member is required. - Logins map[string]*string + Logins map[string]string // Provider names to unlink from this identity. // // This member is required. - LoginsToRemove []*string + LoginsToRemove []string } type UnlinkIdentityOutput struct { diff --git a/service/cognitoidentity/api_op_UntagResource.go b/service/cognitoidentity/api_op_UntagResource.go index bfd311fa908..defc9521a5e 100644 --- a/service/cognitoidentity/api_op_UntagResource.go +++ b/service/cognitoidentity/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // The keys of the tags to remove from the user pool. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/cognitoidentity/api_op_UpdateIdentityPool.go b/service/cognitoidentity/api_op_UpdateIdentityPool.go index 6cd7020fbbe..e3881559cd5 100644 --- a/service/cognitoidentity/api_op_UpdateIdentityPool.go +++ b/service/cognitoidentity/api_op_UpdateIdentityPool.go @@ -34,7 +34,7 @@ type UpdateIdentityPoolInput struct { // TRUE if the identity pool supports unauthenticated logins. // // This member is required. - AllowUnauthenticatedIdentities *bool + AllowUnauthenticatedIdentities bool // An identity pool ID in the format REGION:GUID. // @@ -53,7 +53,7 @@ type UpdateIdentityPoolInput struct { AllowClassicFlow *bool // A list representing an Amazon Cognito user pool and its client ID. - CognitoIdentityProviders []*types.CognitoIdentityProvider + CognitoIdentityProviders []types.CognitoIdentityProvider // The "domain" by which Cognito will refer to your users. DeveloperProviderName *string @@ -61,17 +61,17 @@ type UpdateIdentityPoolInput struct { // The tags that are assigned to the identity pool. A tag is a label that you can // apply to identity pools to categorize and manage them in different ways, such as // by purpose, owner, environment, or other criteria. - IdentityPoolTags map[string]*string + IdentityPoolTags map[string]string // A list of OpendID Connect provider ARNs. - OpenIdConnectProviderARNs []*string + OpenIdConnectProviderARNs []string // An array of Amazon Resource Names (ARNs) of the SAML provider for your identity // pool. - SamlProviderARNs []*string + SamlProviderARNs []string // Optional key:value pairs mapping provider names to provider app IDs. - SupportedLoginProviders map[string]*string + SupportedLoginProviders map[string]string } // An object representing an Amazon Cognito identity pool. @@ -80,7 +80,7 @@ type UpdateIdentityPoolOutput struct { // TRUE if the identity pool supports unauthenticated logins. // // This member is required. - AllowUnauthenticatedIdentities *bool + AllowUnauthenticatedIdentities bool // An identity pool ID in the format REGION:GUID. // @@ -99,7 +99,7 @@ type UpdateIdentityPoolOutput struct { AllowClassicFlow *bool // A list representing an Amazon Cognito user pool and its client ID. - CognitoIdentityProviders []*types.CognitoIdentityProvider + CognitoIdentityProviders []types.CognitoIdentityProvider // The "domain" by which Cognito will refer to your users. DeveloperProviderName *string @@ -107,17 +107,17 @@ type UpdateIdentityPoolOutput struct { // The tags that are assigned to the identity pool. A tag is a label that you can // apply to identity pools to categorize and manage them in different ways, such as // by purpose, owner, environment, or other criteria. - IdentityPoolTags map[string]*string + IdentityPoolTags map[string]string // A list of OpendID Connect provider ARNs. - OpenIdConnectProviderARNs []*string + OpenIdConnectProviderARNs []string // An array of Amazon Resource Names (ARNs) of the SAML provider for your identity // pool. - SamlProviderARNs []*string + SamlProviderARNs []string // Optional key:value pairs mapping provider names to provider app IDs. - SupportedLoginProviders map[string]*string + SupportedLoginProviders map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentity/deserializers.go b/service/cognitoidentity/deserializers.go index a134dce359a..9440f3598b8 100644 --- a/service/cognitoidentity/deserializers.go +++ b/service/cognitoidentity/deserializers.go @@ -3075,7 +3075,7 @@ func awsAwsjson11_deserializeDocumentCognitoIdentityProvider(v **types.CognitoId if !ok { return fmt.Errorf("expected CognitoIdentityProviderClientId to be of type string, got %T instead", value) } - sv.ClientId = &jtv + sv.ClientId = ptr.String(jtv) } case "ProviderName": @@ -3084,7 +3084,7 @@ func awsAwsjson11_deserializeDocumentCognitoIdentityProvider(v **types.CognitoId if !ok { return fmt.Errorf("expected CognitoIdentityProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "ServerSideTokenCheck": @@ -3093,7 +3093,7 @@ func awsAwsjson11_deserializeDocumentCognitoIdentityProvider(v **types.CognitoId if !ok { return fmt.Errorf("expected CognitoIdentityProviderTokenCheck to be of type *bool, got %T instead", value) } - sv.ServerSideTokenCheck = &jtv + sv.ServerSideTokenCheck = jtv } default: @@ -3105,7 +3105,7 @@ func awsAwsjson11_deserializeDocumentCognitoIdentityProvider(v **types.CognitoId return nil } -func awsAwsjson11_deserializeDocumentCognitoIdentityProviderList(v *[]*types.CognitoIdentityProvider, value interface{}) error { +func awsAwsjson11_deserializeDocumentCognitoIdentityProviderList(v *[]types.CognitoIdentityProvider, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3118,18 +3118,20 @@ func awsAwsjson11_deserializeDocumentCognitoIdentityProviderList(v *[]*types.Cog return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CognitoIdentityProvider + var cv []types.CognitoIdentityProvider if *v == nil { - cv = []*types.CognitoIdentityProvider{} + cv = []types.CognitoIdentityProvider{} } else { cv = *v } for _, value := range shape { - var col *types.CognitoIdentityProvider - if err := awsAwsjson11_deserializeDocumentCognitoIdentityProvider(&col, value); err != nil { + var col types.CognitoIdentityProvider + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCognitoIdentityProvider(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3165,7 +3167,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3205,7 +3207,7 @@ func awsAwsjson11_deserializeDocumentCredentials(v **types.Credentials, value in if !ok { return fmt.Errorf("expected AccessKeyString to be of type string, got %T instead", value) } - sv.AccessKeyId = &jtv + sv.AccessKeyId = ptr.String(jtv) } case "Expiration": @@ -3227,7 +3229,7 @@ func awsAwsjson11_deserializeDocumentCredentials(v **types.Credentials, value in if !ok { return fmt.Errorf("expected SecretKeyString to be of type string, got %T instead", value) } - sv.SecretKey = &jtv + sv.SecretKey = ptr.String(jtv) } case "SessionToken": @@ -3236,7 +3238,7 @@ func awsAwsjson11_deserializeDocumentCredentials(v **types.Credentials, value in if !ok { return fmt.Errorf("expected SessionTokenString to be of type string, got %T instead", value) } - sv.SessionToken = &jtv + sv.SessionToken = ptr.String(jtv) } default: @@ -3276,7 +3278,7 @@ func awsAwsjson11_deserializeDocumentDeveloperUserAlreadyRegisteredException(v * if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3288,7 +3290,7 @@ func awsAwsjson11_deserializeDocumentDeveloperUserAlreadyRegisteredException(v * return nil } -func awsAwsjson11_deserializeDocumentDeveloperUserIdentifierList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeveloperUserIdentifierList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3301,21 +3303,21 @@ func awsAwsjson11_deserializeDocumentDeveloperUserIdentifierList(v *[]*string, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DeveloperUserIdentifier to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3352,7 +3354,7 @@ func awsAwsjson11_deserializeDocumentExternalServiceException(v **types.External if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3364,7 +3366,7 @@ func awsAwsjson11_deserializeDocumentExternalServiceException(v **types.External return nil } -func awsAwsjson11_deserializeDocumentIdentitiesList(v *[]*types.IdentityDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentIdentitiesList(v *[]types.IdentityDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3377,18 +3379,20 @@ func awsAwsjson11_deserializeDocumentIdentitiesList(v *[]*types.IdentityDescript return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IdentityDescription + var cv []types.IdentityDescription if *v == nil { - cv = []*types.IdentityDescription{} + cv = []types.IdentityDescription{} } else { cv = *v } for _, value := range shape { - var col *types.IdentityDescription - if err := awsAwsjson11_deserializeDocumentIdentityDescription(&col, value); err != nil { + var col types.IdentityDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIdentityDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3437,7 +3441,7 @@ func awsAwsjson11_deserializeDocumentIdentityDescription(v **types.IdentityDescr if !ok { return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value) } - sv.IdentityId = &jtv + sv.IdentityId = ptr.String(jtv) } case "LastModifiedDate": @@ -3495,7 +3499,7 @@ func awsAwsjson11_deserializeDocumentIdentityPoolShortDescription(v **types.Iden if !ok { return fmt.Errorf("expected IdentityPoolId to be of type string, got %T instead", value) } - sv.IdentityPoolId = &jtv + sv.IdentityPoolId = ptr.String(jtv) } case "IdentityPoolName": @@ -3504,7 +3508,7 @@ func awsAwsjson11_deserializeDocumentIdentityPoolShortDescription(v **types.Iden if !ok { return fmt.Errorf("expected IdentityPoolName to be of type string, got %T instead", value) } - sv.IdentityPoolName = &jtv + sv.IdentityPoolName = ptr.String(jtv) } default: @@ -3516,7 +3520,7 @@ func awsAwsjson11_deserializeDocumentIdentityPoolShortDescription(v **types.Iden return nil } -func awsAwsjson11_deserializeDocumentIdentityPoolsList(v *[]*types.IdentityPoolShortDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentIdentityPoolsList(v *[]types.IdentityPoolShortDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3529,18 +3533,20 @@ func awsAwsjson11_deserializeDocumentIdentityPoolsList(v *[]*types.IdentityPoolS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IdentityPoolShortDescription + var cv []types.IdentityPoolShortDescription if *v == nil { - cv = []*types.IdentityPoolShortDescription{} + cv = []types.IdentityPoolShortDescription{} } else { cv = *v } for _, value := range shape { - var col *types.IdentityPoolShortDescription - if err := awsAwsjson11_deserializeDocumentIdentityPoolShortDescription(&col, value); err != nil { + var col types.IdentityPoolShortDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIdentityPoolShortDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3548,7 +3554,7 @@ func awsAwsjson11_deserializeDocumentIdentityPoolsList(v *[]*types.IdentityPoolS return nil } -func awsAwsjson11_deserializeDocumentIdentityPoolTagsType(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIdentityPoolTagsType(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3561,21 +3567,21 @@ func awsAwsjson11_deserializeDocumentIdentityPoolTagsType(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TagValueType to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -3584,7 +3590,7 @@ func awsAwsjson11_deserializeDocumentIdentityPoolTagsType(v *map[string]*string, return nil } -func awsAwsjson11_deserializeDocumentIdentityProviders(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIdentityProviders(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3597,21 +3603,21 @@ func awsAwsjson11_deserializeDocumentIdentityProviders(v *map[string]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IdentityProviderId to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -3648,7 +3654,7 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3688,7 +3694,7 @@ func awsAwsjson11_deserializeDocumentInvalidIdentityPoolConfigurationException(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3728,7 +3734,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3768,7 +3774,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3780,7 +3786,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson11_deserializeDocumentLoginsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLoginsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3793,21 +3799,21 @@ func awsAwsjson11_deserializeDocumentLoginsList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IdentityProviderName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3844,7 +3850,7 @@ func awsAwsjson11_deserializeDocumentMappingRule(v **types.MappingRule, value in if !ok { return fmt.Errorf("expected ClaimName to be of type string, got %T instead", value) } - sv.Claim = &jtv + sv.Claim = ptr.String(jtv) } case "MatchType": @@ -3862,7 +3868,7 @@ func awsAwsjson11_deserializeDocumentMappingRule(v **types.MappingRule, value in if !ok { return fmt.Errorf("expected ARNString to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } case "Value": @@ -3871,7 +3877,7 @@ func awsAwsjson11_deserializeDocumentMappingRule(v **types.MappingRule, value in if !ok { return fmt.Errorf("expected ClaimValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -3883,7 +3889,7 @@ func awsAwsjson11_deserializeDocumentMappingRule(v **types.MappingRule, value in return nil } -func awsAwsjson11_deserializeDocumentMappingRulesList(v *[]*types.MappingRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentMappingRulesList(v *[]types.MappingRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3896,18 +3902,20 @@ func awsAwsjson11_deserializeDocumentMappingRulesList(v *[]*types.MappingRule, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MappingRule + var cv []types.MappingRule if *v == nil { - cv = []*types.MappingRule{} + cv = []types.MappingRule{} } else { cv = *v } for _, value := range shape { - var col *types.MappingRule - if err := awsAwsjson11_deserializeDocumentMappingRule(&col, value); err != nil { + var col types.MappingRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMappingRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3943,7 +3951,7 @@ func awsAwsjson11_deserializeDocumentNotAuthorizedException(v **types.NotAuthori if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3955,7 +3963,7 @@ func awsAwsjson11_deserializeDocumentNotAuthorizedException(v **types.NotAuthori return nil } -func awsAwsjson11_deserializeDocumentOIDCProviderList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentOIDCProviderList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3968,21 +3976,21 @@ func awsAwsjson11_deserializeDocumentOIDCProviderList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ARNString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4019,7 +4027,7 @@ func awsAwsjson11_deserializeDocumentResourceConflictException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4059,7 +4067,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4125,7 +4133,7 @@ func awsAwsjson11_deserializeDocumentRoleMapping(v **types.RoleMapping, value in return nil } -func awsAwsjson11_deserializeDocumentRoleMappingMap(v *map[string]*types.RoleMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentRoleMappingMap(v *map[string]types.RoleMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4138,18 +4146,21 @@ func awsAwsjson11_deserializeDocumentRoleMappingMap(v *map[string]*types.RoleMap return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.RoleMapping + var mv map[string]types.RoleMapping if *v == nil { - mv = map[string]*types.RoleMapping{} + mv = map[string]types.RoleMapping{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.RoleMapping - if err := awsAwsjson11_deserializeDocumentRoleMapping(&parsedVal, value); err != nil { + var parsedVal types.RoleMapping + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentRoleMapping(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -4157,7 +4168,7 @@ func awsAwsjson11_deserializeDocumentRoleMappingMap(v *map[string]*types.RoleMap return nil } -func awsAwsjson11_deserializeDocumentRolesMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRolesMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4170,21 +4181,21 @@ func awsAwsjson11_deserializeDocumentRolesMap(v *map[string]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ARNString to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -4229,7 +4240,7 @@ func awsAwsjson11_deserializeDocumentRulesConfigurationType(v **types.RulesConfi return nil } -func awsAwsjson11_deserializeDocumentSAMLProviderList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSAMLProviderList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4242,21 +4253,21 @@ func awsAwsjson11_deserializeDocumentSAMLProviderList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ARNString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4293,7 +4304,7 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4342,7 +4353,7 @@ func awsAwsjson11_deserializeDocumentUnprocessedIdentityId(v **types.Unprocessed if !ok { return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value) } - sv.IdentityId = &jtv + sv.IdentityId = ptr.String(jtv) } default: @@ -4354,7 +4365,7 @@ func awsAwsjson11_deserializeDocumentUnprocessedIdentityId(v **types.Unprocessed return nil } -func awsAwsjson11_deserializeDocumentUnprocessedIdentityIdList(v *[]*types.UnprocessedIdentityId, value interface{}) error { +func awsAwsjson11_deserializeDocumentUnprocessedIdentityIdList(v *[]types.UnprocessedIdentityId, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4367,18 +4378,20 @@ func awsAwsjson11_deserializeDocumentUnprocessedIdentityIdList(v *[]*types.Unpro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UnprocessedIdentityId + var cv []types.UnprocessedIdentityId if *v == nil { - cv = []*types.UnprocessedIdentityId{} + cv = []types.UnprocessedIdentityId{} } else { cv = *v } for _, value := range shape { - var col *types.UnprocessedIdentityId - if err := awsAwsjson11_deserializeDocumentUnprocessedIdentityId(&col, value); err != nil { + var col types.UnprocessedIdentityId + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUnprocessedIdentityId(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4414,7 +4427,7 @@ func awsAwsjson11_deserializeOpDocumentCreateIdentityPoolOutput(v **CreateIdenti if !ok { return fmt.Errorf("expected ClassicFlow to be of type *bool, got %T instead", value) } - sv.AllowClassicFlow = &jtv + sv.AllowClassicFlow = ptr.Bool(jtv) } case "AllowUnauthenticatedIdentities": @@ -4423,7 +4436,7 @@ func awsAwsjson11_deserializeOpDocumentCreateIdentityPoolOutput(v **CreateIdenti if !ok { return fmt.Errorf("expected IdentityPoolUnauthenticated to be of type *bool, got %T instead", value) } - sv.AllowUnauthenticatedIdentities = &jtv + sv.AllowUnauthenticatedIdentities = jtv } case "CognitoIdentityProviders": @@ -4437,7 +4450,7 @@ func awsAwsjson11_deserializeOpDocumentCreateIdentityPoolOutput(v **CreateIdenti if !ok { return fmt.Errorf("expected DeveloperProviderName to be of type string, got %T instead", value) } - sv.DeveloperProviderName = &jtv + sv.DeveloperProviderName = ptr.String(jtv) } case "IdentityPoolId": @@ -4446,7 +4459,7 @@ func awsAwsjson11_deserializeOpDocumentCreateIdentityPoolOutput(v **CreateIdenti if !ok { return fmt.Errorf("expected IdentityPoolId to be of type string, got %T instead", value) } - sv.IdentityPoolId = &jtv + sv.IdentityPoolId = ptr.String(jtv) } case "IdentityPoolName": @@ -4455,7 +4468,7 @@ func awsAwsjson11_deserializeOpDocumentCreateIdentityPoolOutput(v **CreateIdenti if !ok { return fmt.Errorf("expected IdentityPoolName to be of type string, got %T instead", value) } - sv.IdentityPoolName = &jtv + sv.IdentityPoolName = ptr.String(jtv) } case "IdentityPoolTags": @@ -4595,7 +4608,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeIdentityOutput(v **DescribeIdenti if !ok { return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value) } - sv.IdentityId = &jtv + sv.IdentityId = ptr.String(jtv) } case "LastModifiedDate": @@ -4653,7 +4666,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeIdentityPoolOutput(v **DescribeId if !ok { return fmt.Errorf("expected ClassicFlow to be of type *bool, got %T instead", value) } - sv.AllowClassicFlow = &jtv + sv.AllowClassicFlow = ptr.Bool(jtv) } case "AllowUnauthenticatedIdentities": @@ -4662,7 +4675,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeIdentityPoolOutput(v **DescribeId if !ok { return fmt.Errorf("expected IdentityPoolUnauthenticated to be of type *bool, got %T instead", value) } - sv.AllowUnauthenticatedIdentities = &jtv + sv.AllowUnauthenticatedIdentities = jtv } case "CognitoIdentityProviders": @@ -4676,7 +4689,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeIdentityPoolOutput(v **DescribeId if !ok { return fmt.Errorf("expected DeveloperProviderName to be of type string, got %T instead", value) } - sv.DeveloperProviderName = &jtv + sv.DeveloperProviderName = ptr.String(jtv) } case "IdentityPoolId": @@ -4685,7 +4698,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeIdentityPoolOutput(v **DescribeId if !ok { return fmt.Errorf("expected IdentityPoolId to be of type string, got %T instead", value) } - sv.IdentityPoolId = &jtv + sv.IdentityPoolId = ptr.String(jtv) } case "IdentityPoolName": @@ -4694,7 +4707,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeIdentityPoolOutput(v **DescribeId if !ok { return fmt.Errorf("expected IdentityPoolName to be of type string, got %T instead", value) } - sv.IdentityPoolName = &jtv + sv.IdentityPoolName = ptr.String(jtv) } case "IdentityPoolTags": @@ -4759,7 +4772,7 @@ func awsAwsjson11_deserializeOpDocumentGetCredentialsForIdentityOutput(v **GetCr if !ok { return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value) } - sv.IdentityId = &jtv + sv.IdentityId = ptr.String(jtv) } default: @@ -4799,7 +4812,7 @@ func awsAwsjson11_deserializeOpDocumentGetIdentityPoolRolesOutput(v **GetIdentit if !ok { return fmt.Errorf("expected IdentityPoolId to be of type string, got %T instead", value) } - sv.IdentityPoolId = &jtv + sv.IdentityPoolId = ptr.String(jtv) } case "RoleMappings": @@ -4849,7 +4862,7 @@ func awsAwsjson11_deserializeOpDocumentGetIdOutput(v **GetIdOutput, value interf if !ok { return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value) } - sv.IdentityId = &jtv + sv.IdentityId = ptr.String(jtv) } default: @@ -4889,7 +4902,7 @@ func awsAwsjson11_deserializeOpDocumentGetOpenIdTokenForDeveloperIdentityOutput( if !ok { return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value) } - sv.IdentityId = &jtv + sv.IdentityId = ptr.String(jtv) } case "Token": @@ -4898,7 +4911,7 @@ func awsAwsjson11_deserializeOpDocumentGetOpenIdTokenForDeveloperIdentityOutput( if !ok { return fmt.Errorf("expected OIDCToken to be of type string, got %T instead", value) } - sv.Token = &jtv + sv.Token = ptr.String(jtv) } default: @@ -4938,7 +4951,7 @@ func awsAwsjson11_deserializeOpDocumentGetOpenIdTokenOutput(v **GetOpenIdTokenOu if !ok { return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value) } - sv.IdentityId = &jtv + sv.IdentityId = ptr.String(jtv) } case "Token": @@ -4947,7 +4960,7 @@ func awsAwsjson11_deserializeOpDocumentGetOpenIdTokenOutput(v **GetOpenIdTokenOu if !ok { return fmt.Errorf("expected OIDCToken to be of type string, got %T instead", value) } - sv.Token = &jtv + sv.Token = ptr.String(jtv) } default: @@ -4992,7 +5005,7 @@ func awsAwsjson11_deserializeOpDocumentListIdentitiesOutput(v **ListIdentitiesOu if !ok { return fmt.Errorf("expected IdentityPoolId to be of type string, got %T instead", value) } - sv.IdentityPoolId = &jtv + sv.IdentityPoolId = ptr.String(jtv) } case "NextToken": @@ -5001,7 +5014,7 @@ func awsAwsjson11_deserializeOpDocumentListIdentitiesOutput(v **ListIdentitiesOu if !ok { return fmt.Errorf("expected PaginationKey to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5046,7 +5059,7 @@ func awsAwsjson11_deserializeOpDocumentListIdentityPoolsOutput(v **ListIdentityP if !ok { return fmt.Errorf("expected PaginationKey to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5127,7 +5140,7 @@ func awsAwsjson11_deserializeOpDocumentLookupDeveloperIdentityOutput(v **LookupD if !ok { return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value) } - sv.IdentityId = &jtv + sv.IdentityId = ptr.String(jtv) } case "NextToken": @@ -5136,7 +5149,7 @@ func awsAwsjson11_deserializeOpDocumentLookupDeveloperIdentityOutput(v **LookupD if !ok { return fmt.Errorf("expected PaginationKey to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5176,7 +5189,7 @@ func awsAwsjson11_deserializeOpDocumentMergeDeveloperIdentitiesOutput(v **MergeD if !ok { return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value) } - sv.IdentityId = &jtv + sv.IdentityId = ptr.String(jtv) } default: @@ -5371,7 +5384,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateIdentityPoolOutput(v **UpdateIdenti if !ok { return fmt.Errorf("expected ClassicFlow to be of type *bool, got %T instead", value) } - sv.AllowClassicFlow = &jtv + sv.AllowClassicFlow = ptr.Bool(jtv) } case "AllowUnauthenticatedIdentities": @@ -5380,7 +5393,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateIdentityPoolOutput(v **UpdateIdenti if !ok { return fmt.Errorf("expected IdentityPoolUnauthenticated to be of type *bool, got %T instead", value) } - sv.AllowUnauthenticatedIdentities = &jtv + sv.AllowUnauthenticatedIdentities = jtv } case "CognitoIdentityProviders": @@ -5394,7 +5407,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateIdentityPoolOutput(v **UpdateIdenti if !ok { return fmt.Errorf("expected DeveloperProviderName to be of type string, got %T instead", value) } - sv.DeveloperProviderName = &jtv + sv.DeveloperProviderName = ptr.String(jtv) } case "IdentityPoolId": @@ -5403,7 +5416,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateIdentityPoolOutput(v **UpdateIdenti if !ok { return fmt.Errorf("expected IdentityPoolId to be of type string, got %T instead", value) } - sv.IdentityPoolId = &jtv + sv.IdentityPoolId = ptr.String(jtv) } case "IdentityPoolName": @@ -5412,7 +5425,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateIdentityPoolOutput(v **UpdateIdenti if !ok { return fmt.Errorf("expected IdentityPoolName to be of type string, got %T instead", value) } - sv.IdentityPoolName = &jtv + sv.IdentityPoolName = ptr.String(jtv) } case "IdentityPoolTags": diff --git a/service/cognitoidentity/go.mod b/service/cognitoidentity/go.mod index 52e6f8b28ca..bc42c70b3a2 100644 --- a/service/cognitoidentity/go.mod +++ b/service/cognitoidentity/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cognitoidentity go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cognitoidentity/serializers.go b/service/cognitoidentity/serializers.go index 3d3e5c8d2b4..1cf7002c6f9 100644 --- a/service/cognitoidentity/serializers.go +++ b/service/cognitoidentity/serializers.go @@ -993,117 +993,89 @@ func awsAwsjson11_serializeDocumentCognitoIdentityProvider(v *types.CognitoIdent ok.String(*v.ProviderName) } - if v.ServerSideTokenCheck != nil { + if v.ServerSideTokenCheck { ok := object.Key("ServerSideTokenCheck") - ok.Boolean(*v.ServerSideTokenCheck) + ok.Boolean(v.ServerSideTokenCheck) } return nil } -func awsAwsjson11_serializeDocumentCognitoIdentityProviderList(v []*types.CognitoIdentityProvider, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCognitoIdentityProviderList(v []types.CognitoIdentityProvider, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCognitoIdentityProvider(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCognitoIdentityProvider(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentIdentityIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIdentityIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentIdentityPoolTagsListType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIdentityPoolTagsListType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentIdentityPoolTagsType(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIdentityPoolTagsType(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentIdentityProviders(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIdentityProviders(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentLoginsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLoginsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentLoginsMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLoginsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1135,34 +1107,26 @@ func awsAwsjson11_serializeDocumentMappingRule(v *types.MappingRule, value smith return nil } -func awsAwsjson11_serializeDocumentMappingRulesList(v []*types.MappingRule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMappingRulesList(v []types.MappingRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMappingRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMappingRule(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentOIDCProviderList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOIDCProviderList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1191,34 +1155,27 @@ func awsAwsjson11_serializeDocumentRoleMapping(v *types.RoleMapping, value smith return nil } -func awsAwsjson11_serializeDocumentRoleMappingMap(v map[string]*types.RoleMapping, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRoleMappingMap(v map[string]types.RoleMapping, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRoleMapping(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson11_serializeDocumentRoleMapping(&mapVar, om); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentRolesMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRolesMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1237,17 +1194,13 @@ func awsAwsjson11_serializeDocumentRulesConfigurationType(v *types.RulesConfigur return nil } -func awsAwsjson11_serializeDocumentSAMLProviderList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSAMLProviderList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1261,9 +1214,9 @@ func awsAwsjson11_serializeOpDocumentCreateIdentityPoolInput(v *CreateIdentityPo ok.Boolean(*v.AllowClassicFlow) } - if v.AllowUnauthenticatedIdentities != nil { + if v.AllowUnauthenticatedIdentities { ok := object.Key("AllowUnauthenticatedIdentities") - ok.Boolean(*v.AllowUnauthenticatedIdentities) + ok.Boolean(v.AllowUnauthenticatedIdentities) } if v.CognitoIdentityProviders != nil { @@ -1476,9 +1429,9 @@ func awsAwsjson11_serializeOpDocumentListIdentitiesInput(v *ListIdentitiesInput, object := value.Object() defer object.Close() - if v.HideDisabled != nil { + if v.HideDisabled { ok := object.Key("HideDisabled") - ok.Boolean(*v.HideDisabled) + ok.Boolean(v.HideDisabled) } if v.IdentityPoolId != nil { @@ -1486,9 +1439,9 @@ func awsAwsjson11_serializeOpDocumentListIdentitiesInput(v *ListIdentitiesInput, ok.String(*v.IdentityPoolId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1503,9 +1456,9 @@ func awsAwsjson11_serializeOpDocumentListIdentityPoolsInput(v *ListIdentityPools object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1547,9 +1500,9 @@ func awsAwsjson11_serializeOpDocumentLookupDeveloperIdentityInput(v *LookupDevel ok.String(*v.IdentityPoolId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1713,9 +1666,9 @@ func awsAwsjson11_serializeOpDocumentUpdateIdentityPoolInput(v *UpdateIdentityPo ok.Boolean(*v.AllowClassicFlow) } - if v.AllowUnauthenticatedIdentities != nil { + if v.AllowUnauthenticatedIdentities { ok := object.Key("AllowUnauthenticatedIdentities") - ok.Boolean(*v.AllowUnauthenticatedIdentities) + ok.Boolean(v.AllowUnauthenticatedIdentities) } if v.CognitoIdentityProviders != nil { diff --git a/service/cognitoidentity/types/types.go b/service/cognitoidentity/types/types.go index cce5a70c277..07931c9e0d6 100644 --- a/service/cognitoidentity/types/types.go +++ b/service/cognitoidentity/types/types.go @@ -22,7 +22,7 @@ type CognitoIdentityProvider struct { // user has not been globally signed out or deleted before the identity pool // provides an OIDC token or AWS credentials for the user. If the user is signed // out or deleted, the identity pool will return a 400 Not Authorized error. - ServerSideTokenCheck *bool + ServerSideTokenCheck bool } // Credentials for the provided identity ID. @@ -54,7 +54,7 @@ type IdentityDescription struct { LastModifiedDate *time.Time // The provider names. - Logins []*string + Logins []string } // A description of the identity pool. @@ -121,7 +121,7 @@ type RulesConfigurationType struct { // are evaluated in order. The first one to match specifies the role. // // This member is required. - Rules []*MappingRule + Rules []MappingRule } // An array of UnprocessedIdentityId objects, each of which contains an ErrorCode diff --git a/service/cognitoidentity/validators.go b/service/cognitoidentity/validators.go index 769ad054c9a..90bb90fa01e 100644 --- a/service/cognitoidentity/validators.go +++ b/service/cognitoidentity/validators.go @@ -538,13 +538,13 @@ func validateMappingRule(v *types.MappingRule) error { } } -func validateMappingRulesList(v []*types.MappingRule) error { +func validateMappingRulesList(v []types.MappingRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MappingRulesList"} for i := range v { - if err := validateMappingRule(v[i]); err != nil { + if err := validateMappingRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -575,13 +575,14 @@ func validateRoleMapping(v *types.RoleMapping) error { } } -func validateRoleMappingMap(v map[string]*types.RoleMapping) error { +func validateRoleMappingMap(v map[string]types.RoleMapping) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RoleMappingMap"} for key := range v { - if err := validateRoleMapping(v[key]); err != nil { + value := v[key] + if err := validateRoleMapping(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -616,9 +617,6 @@ func validateOpCreateIdentityPoolInput(v *CreateIdentityPoolInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateIdentityPoolInput"} - if v.AllowUnauthenticatedIdentities == nil { - invalidParams.Add(smithy.NewErrParamRequired("AllowUnauthenticatedIdentities")) - } if v.IdentityPoolName == nil { invalidParams.Add(smithy.NewErrParamRequired("IdentityPoolName")) } @@ -775,9 +773,6 @@ func validateOpListIdentitiesInput(v *ListIdentitiesInput) error { if v.IdentityPoolId == nil { invalidParams.Add(smithy.NewErrParamRequired("IdentityPoolId")) } - if v.MaxResults == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxResults")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -790,9 +785,6 @@ func validateOpListIdentityPoolsInput(v *ListIdentityPoolsInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListIdentityPoolsInput"} - if v.MaxResults == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxResults")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -966,9 +958,6 @@ func validateOpUpdateIdentityPoolInput(v *UpdateIdentityPoolInput) error { if v.IdentityPoolId == nil { invalidParams.Add(smithy.NewErrParamRequired("IdentityPoolId")) } - if v.AllowUnauthenticatedIdentities == nil { - invalidParams.Add(smithy.NewErrParamRequired("AllowUnauthenticatedIdentities")) - } if v.IdentityPoolName == nil { invalidParams.Add(smithy.NewErrParamRequired("IdentityPoolName")) } diff --git a/service/cognitoidentityprovider/api_op_AddCustomAttributes.go b/service/cognitoidentityprovider/api_op_AddCustomAttributes.go index b765f244442..2778f248878 100644 --- a/service/cognitoidentityprovider/api_op_AddCustomAttributes.go +++ b/service/cognitoidentityprovider/api_op_AddCustomAttributes.go @@ -33,7 +33,7 @@ type AddCustomAttributesInput struct { // An array of custom attributes, such as Mutable and Name. // // This member is required. - CustomAttributes []*types.SchemaAttributeType + CustomAttributes []types.SchemaAttributeType // The user pool ID for the user pool where you want to add custom attributes. // diff --git a/service/cognitoidentityprovider/api_op_AdminConfirmSignUp.go b/service/cognitoidentityprovider/api_op_AdminConfirmSignUp.go index 4dc3c9de9b0..61ee6a5bb7f 100644 --- a/service/cognitoidentityprovider/api_op_AdminConfirmSignUp.go +++ b/service/cognitoidentityprovider/api_op_AdminConfirmSignUp.go @@ -65,7 +65,7 @@ type AdminConfirmSignUpInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string } // Represents the response from the server for the request to confirm registration. diff --git a/service/cognitoidentityprovider/api_op_AdminCreateUser.go b/service/cognitoidentityprovider/api_op_AdminCreateUser.go index 35f29ae7109..a4e4f3d18a1 100644 --- a/service/cognitoidentityprovider/api_op_AdminCreateUser.go +++ b/service/cognitoidentityprovider/api_op_AdminCreateUser.go @@ -76,7 +76,7 @@ type AdminCreateUserInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string // Specify "EMAIL" if email will be used to send the welcome message. Specify "SMS" // if the phone number will be used. The default value is "SMS". More than one @@ -91,7 +91,7 @@ type AdminCreateUserInput struct { // user will no longer be able to log in using that alias. If this parameter is set // to False, the API throws an AliasExistsException error if the alias already // exists. The default value is False. - ForceAliasCreation *bool + ForceAliasCreation bool // Set to "RESEND" to resend the invitation message to a user that already exists // and reset the expiration limit on the user's account. Set to "SUPPRESS" to @@ -134,7 +134,7 @@ type AdminCreateUserInput struct { // code and username will be sent. Required if the phone_number_verified attribute // is set to True, or if "SMS" is specified in the DesiredDeliveryMediums // parameter. - UserAttributes []*types.AttributeType + UserAttributes []types.AttributeType // The user's validation data. This is an array of name-value pairs that contain // user attributes and attribute values that you can use for custom validation, @@ -144,7 +144,7 @@ type AdminCreateUserInput struct { // trigger for the user pool as described in the Amazon Cognito Developer Guide. // The Lambda trigger receives the validation data and uses it in the validation // process. The user's validation data is not persisted. - ValidationData []*types.AttributeType + ValidationData []types.AttributeType } // Represents the response from the server to the request to create the user. diff --git a/service/cognitoidentityprovider/api_op_AdminDeleteUserAttributes.go b/service/cognitoidentityprovider/api_op_AdminDeleteUserAttributes.go index ca32e25d9be..1304854177c 100644 --- a/service/cognitoidentityprovider/api_op_AdminDeleteUserAttributes.go +++ b/service/cognitoidentityprovider/api_op_AdminDeleteUserAttributes.go @@ -35,7 +35,7 @@ type AdminDeleteUserAttributesInput struct { // name. // // This member is required. - UserAttributeNames []*string + UserAttributeNames []string // The user pool ID for the user pool where you want to delete user attributes. // diff --git a/service/cognitoidentityprovider/api_op_AdminGetUser.go b/service/cognitoidentityprovider/api_op_AdminGetUser.go index 8b0de88ebea..37ba6c75f12 100644 --- a/service/cognitoidentityprovider/api_op_AdminGetUser.go +++ b/service/cognitoidentityprovider/api_op_AdminGetUser.go @@ -54,19 +54,19 @@ type AdminGetUserOutput struct { Username *string // Indicates that the status is enabled. - Enabled *bool + Enabled bool // This response parameter is no longer supported. It provides information only // about SMS MFA configurations. It doesn't provide information about TOTP software // token MFA configurations. To look up information about either type of MFA // configuration, use UserMFASettingList instead. - MFAOptions []*types.MFAOptionType + MFAOptions []types.MFAOptionType // The user's preferred MFA setting. PreferredMfaSetting *string // An array of name-value pairs representing user attributes. - UserAttributes []*types.AttributeType + UserAttributes []types.AttributeType // The date the user was created. UserCreateDate *time.Time @@ -76,7 +76,7 @@ type AdminGetUserOutput struct { // The MFA options that are enabled for the user. The possible values in this list // are SMS_MFA and SOFTWARE_TOKEN_MFA. - UserMFASettingList []*string + UserMFASettingList []string // The user status. Can be one of the following: // diff --git a/service/cognitoidentityprovider/api_op_AdminInitiateAuth.go b/service/cognitoidentityprovider/api_op_AdminInitiateAuth.go index 9e171ef6166..bbbaa2eede5 100644 --- a/service/cognitoidentityprovider/api_op_AdminInitiateAuth.go +++ b/service/cognitoidentityprovider/api_op_AdminInitiateAuth.go @@ -106,7 +106,7 @@ type AdminInitiateAuthInput struct { // CUSTOM_AUTH: USERNAME (required), SECRET_HASH (if app client is configured with // client secret), DEVICE_KEY. To start the authentication flow with password // verification, include ChallengeName: SRP_A and SRP_A: (The SRP_A Value). - AuthParameters map[string]*string + AuthParameters map[string]string // A map of custom key-value pairs that you can provide as input for certain custom // workflows that this action triggers. You create custom workflows by assigning @@ -162,7 +162,7 @@ type AdminInitiateAuthInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string // Contextual data such as the user's device fingerprint, IP address, or location // used for evaluating the risk of an unexpected event by Amazon Cognito advanced @@ -228,7 +228,7 @@ type AdminInitiateAuthOutput struct { // (such as email address or phone number), even if you specified an alias in your // call to AdminInitiateAuth. This is because, in the AdminRespondToAuthChallenge // API ChallengeResponses, the USERNAME attribute cannot be an alias. - ChallengeParameters map[string]*string + ChallengeParameters map[string]string // The session which should be passed both ways in challenge-response calls to the // service. If AdminInitiateAuth or AdminRespondToAuthChallenge API call determines diff --git a/service/cognitoidentityprovider/api_op_AdminListDevices.go b/service/cognitoidentityprovider/api_op_AdminListDevices.go index 8f3ab292407..a56ee328659 100644 --- a/service/cognitoidentityprovider/api_op_AdminListDevices.go +++ b/service/cognitoidentityprovider/api_op_AdminListDevices.go @@ -52,7 +52,7 @@ type AdminListDevicesInput struct { type AdminListDevicesOutput struct { // The devices in the list of devices response. - Devices []*types.DeviceType + Devices []types.DeviceType // The pagination token. PaginationToken *string diff --git a/service/cognitoidentityprovider/api_op_AdminListGroupsForUser.go b/service/cognitoidentityprovider/api_op_AdminListGroupsForUser.go index a4f81554e8c..929c0367120 100644 --- a/service/cognitoidentityprovider/api_op_AdminListGroupsForUser.go +++ b/service/cognitoidentityprovider/api_op_AdminListGroupsForUser.go @@ -51,7 +51,7 @@ type AdminListGroupsForUserInput struct { type AdminListGroupsForUserOutput struct { // The groups that the user belongs to. - Groups []*types.GroupType + Groups []types.GroupType // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. diff --git a/service/cognitoidentityprovider/api_op_AdminListUserAuthEvents.go b/service/cognitoidentityprovider/api_op_AdminListUserAuthEvents.go index 7b66bb46bd8..87fca4fd48d 100644 --- a/service/cognitoidentityprovider/api_op_AdminListUserAuthEvents.go +++ b/service/cognitoidentityprovider/api_op_AdminListUserAuthEvents.go @@ -51,7 +51,7 @@ type AdminListUserAuthEventsOutput struct { // The response object. It includes the EventID, EventType, CreationDate, // EventRisk, and EventResponse. - AuthEvents []*types.AuthEventType + AuthEvents []types.AuthEventType // A pagination token. NextToken *string diff --git a/service/cognitoidentityprovider/api_op_AdminResetUserPassword.go b/service/cognitoidentityprovider/api_op_AdminResetUserPassword.go index 15f943fd933..4901eaa5d07 100644 --- a/service/cognitoidentityprovider/api_op_AdminResetUserPassword.go +++ b/service/cognitoidentityprovider/api_op_AdminResetUserPassword.go @@ -74,7 +74,7 @@ type AdminResetUserPasswordInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string } // Represents the response from the server to reset a user password as an diff --git a/service/cognitoidentityprovider/api_op_AdminRespondToAuthChallenge.go b/service/cognitoidentityprovider/api_op_AdminRespondToAuthChallenge.go index 2385d83ae04..35872402bed 100644 --- a/service/cognitoidentityprovider/api_op_AdminRespondToAuthChallenge.go +++ b/service/cognitoidentityprovider/api_op_AdminRespondToAuthChallenge.go @@ -74,7 +74,7 @@ type AdminRespondToAuthChallengeInput struct { // easier, the AdminInitiateAuth response includes the actual username value in the // USERNAMEUSER_ID_FOR_SRP attribute, even if you specified an alias in your call // to AdminInitiateAuth. - ChallengeResponses map[string]*string + ChallengeResponses map[string]string // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning @@ -105,7 +105,7 @@ type AdminRespondToAuthChallengeInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string // Contextual data such as the user's device fingerprint, IP address, or location // used for evaluating the risk of an unexpected event by Amazon Cognito advanced @@ -132,7 +132,7 @@ type AdminRespondToAuthChallengeOutput struct { // The challenge parameters. For more information, see AdminInitiateAuth // (https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html). - ChallengeParameters map[string]*string + ChallengeParameters map[string]string // The session which should be passed both ways in challenge-response calls to the // service. If the caller needs to go through another challenge, they return a diff --git a/service/cognitoidentityprovider/api_op_AdminSetUserPassword.go b/service/cognitoidentityprovider/api_op_AdminSetUserPassword.go index 641365c236f..a5a03c44dae 100644 --- a/service/cognitoidentityprovider/api_op_AdminSetUserPassword.go +++ b/service/cognitoidentityprovider/api_op_AdminSetUserPassword.go @@ -51,7 +51,7 @@ type AdminSetUserPasswordInput struct { Username *string // True if the password is permanent, False if it is temporary. - Permanent *bool + Permanent bool } type AdminSetUserPasswordOutput struct { diff --git a/service/cognitoidentityprovider/api_op_AdminSetUserSettings.go b/service/cognitoidentityprovider/api_op_AdminSetUserSettings.go index c5065241944..d702e303bfe 100644 --- a/service/cognitoidentityprovider/api_op_AdminSetUserSettings.go +++ b/service/cognitoidentityprovider/api_op_AdminSetUserSettings.go @@ -39,7 +39,7 @@ type AdminSetUserSettingsInput struct { // delivery. // // This member is required. - MFAOptions []*types.MFAOptionType + MFAOptions []types.MFAOptionType // The ID of the user pool that contains the user that you are setting options for. // diff --git a/service/cognitoidentityprovider/api_op_AdminUpdateUserAttributes.go b/service/cognitoidentityprovider/api_op_AdminUpdateUserAttributes.go index 7e7d27fdd89..31bd65f07d3 100644 --- a/service/cognitoidentityprovider/api_op_AdminUpdateUserAttributes.go +++ b/service/cognitoidentityprovider/api_op_AdminUpdateUserAttributes.go @@ -38,7 +38,7 @@ type AdminUpdateUserAttributesInput struct { // attributes, you must prepend the custom: prefix to the attribute name. // // This member is required. - UserAttributes []*types.AttributeType + UserAttributes []types.AttributeType // The user pool ID for the user pool where you want to update user attributes. // @@ -76,7 +76,7 @@ type AdminUpdateUserAttributesInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string } // Represents the response from the server for the request to update user diff --git a/service/cognitoidentityprovider/api_op_ConfirmDevice.go b/service/cognitoidentityprovider/api_op_ConfirmDevice.go index 3f33b219e9e..0a264fbbac9 100644 --- a/service/cognitoidentityprovider/api_op_ConfirmDevice.go +++ b/service/cognitoidentityprovider/api_op_ConfirmDevice.go @@ -53,7 +53,7 @@ type ConfirmDeviceOutput struct { // Indicates whether the user confirmation is necessary to confirm the device // response. - UserConfirmationNecessary *bool + UserConfirmationNecessary bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentityprovider/api_op_ConfirmForgotPassword.go b/service/cognitoidentityprovider/api_op_ConfirmForgotPassword.go index fd3d4fd7072..2893fe45588 100644 --- a/service/cognitoidentityprovider/api_op_ConfirmForgotPassword.go +++ b/service/cognitoidentityprovider/api_op_ConfirmForgotPassword.go @@ -82,7 +82,7 @@ type ConfirmForgotPasswordInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string // A keyed-hash message authentication code (HMAC) calculated using the secret key // of a user pool client and username plus the client ID in the message. diff --git a/service/cognitoidentityprovider/api_op_ConfirmSignUp.go b/service/cognitoidentityprovider/api_op_ConfirmSignUp.go index 66650aa6f8d..30d92bc45a8 100644 --- a/service/cognitoidentityprovider/api_op_ConfirmSignUp.go +++ b/service/cognitoidentityprovider/api_op_ConfirmSignUp.go @@ -75,7 +75,7 @@ type ConfirmSignUpInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string // Boolean to be specified to force user confirmation irrespective of existing // alias. By default set to False. If this parameter is set to True and the phone @@ -83,7 +83,7 @@ type ConfirmSignUpInput struct { // different user, the API call will migrate the alias from the previous user to // the newly created user being confirmed. If set to False, the API will throw an // AliasExistsException error. - ForceAliasCreation *bool + ForceAliasCreation bool // A keyed-hash message authentication code (HMAC) calculated using the secret key // of a user pool client and username plus the client ID in the message. diff --git a/service/cognitoidentityprovider/api_op_CreateIdentityProvider.go b/service/cognitoidentityprovider/api_op_CreateIdentityProvider.go index de7db0aad19..cd0b3a9f3b3 100644 --- a/service/cognitoidentityprovider/api_op_CreateIdentityProvider.go +++ b/service/cognitoidentityprovider/api_op_CreateIdentityProvider.go @@ -99,7 +99,7 @@ type CreateIdentityProviderInput struct { // * IDPSignout optional // // This member is required. - ProviderDetails map[string]*string + ProviderDetails map[string]string // The identity provider name. // @@ -118,10 +118,10 @@ type CreateIdentityProviderInput struct { // A mapping of identity provider attributes to standard and custom user pool // attributes. - AttributeMapping map[string]*string + AttributeMapping map[string]string // A list of identity provider identifiers. - IdpIdentifiers []*string + IdpIdentifiers []string } type CreateIdentityProviderOutput struct { diff --git a/service/cognitoidentityprovider/api_op_CreateResourceServer.go b/service/cognitoidentityprovider/api_op_CreateResourceServer.go index da6cf2edb30..73b2b329793 100644 --- a/service/cognitoidentityprovider/api_op_CreateResourceServer.go +++ b/service/cognitoidentityprovider/api_op_CreateResourceServer.go @@ -47,7 +47,7 @@ type CreateResourceServerInput struct { UserPoolId *string // A list of scopes. Each scope is map, where the keys are name and description. - Scopes []*types.ResourceServerScopeType + Scopes []types.ResourceServerScopeType } type CreateResourceServerOutput struct { diff --git a/service/cognitoidentityprovider/api_op_CreateUserPool.go b/service/cognitoidentityprovider/api_op_CreateUserPool.go index 3c67f3e078a..2e687a1cb82 100644 --- a/service/cognitoidentityprovider/api_op_CreateUserPool.go +++ b/service/cognitoidentityprovider/api_op_CreateUserPool.go @@ -85,7 +85,7 @@ type CreateUserPoolInput struct { // An array of schema attributes for the new user pool. These attributes can be // standard or custom attributes. - Schema []*types.SchemaAttributeType + Schema []types.SchemaAttributeType // A string representing the SMS authentication message. SmsAuthenticationMessage *string @@ -103,7 +103,7 @@ type CreateUserPoolInput struct { // The tag keys and values to assign to the user pool. A tag is a label that you // can use to categorize and manage user pools in different ways, such as by // purpose, owner, environment, or other criteria. - UserPoolTags map[string]*string + UserPoolTags map[string]string // Specifies whether email addresses or phone numbers can be specified as usernames // when a user signs up. diff --git a/service/cognitoidentityprovider/api_op_CreateUserPoolClient.go b/service/cognitoidentityprovider/api_op_CreateUserPoolClient.go index 0abb9d8fe7f..cb574301264 100644 --- a/service/cognitoidentityprovider/api_op_CreateUserPoolClient.go +++ b/service/cognitoidentityprovider/api_op_CreateUserPoolClient.go @@ -56,13 +56,13 @@ type CreateUserPoolClientInput struct { // Set to true if the client is allowed to follow the OAuth protocol when // interacting with Cognito user pools. - AllowedOAuthFlowsUserPoolClient *bool + AllowedOAuthFlowsUserPoolClient bool // The allowed OAuth scopes. Possible values provided by OAuth are: phone, email, // openid, and profile. Possible values provided by AWS are: // aws.cognito.signin.user.admin. Custom scopes created in Resource Servers are // also supported. - AllowedOAuthScopes []*string + AllowedOAuthScopes []string // The Amazon Pinpoint analytics configuration for collecting metrics for this user // pool. In regions where Pinpoint is not available, Cognito User Pools only @@ -85,7 +85,7 @@ type CreateUserPoolClientInput struct { // Redirection Endpoint (https://tools.ietf.org/html/rfc6749#section-3.1.2). Amazon // Cognito requires HTTPS over HTTP except for http://localhost for testing // purposes only. App callback URLs such as myapp://example are also supported. - CallbackURLs []*string + CallbackURLs []string // The default redirect URI. Must be in the CallbackURLs list. A redirect URI // must: @@ -130,7 +130,7 @@ type CreateUserPoolClientInput struct { // Boolean to specify whether you want to generate a secret for the user pool // client being created. - GenerateSecret *bool + GenerateSecret bool // The time limit, between 5 minutes and 1 day, after which the ID token is no // longer valid and cannot be used. This value will be overridden if you have @@ -138,7 +138,7 @@ type CreateUserPoolClientInput struct { IdTokenValidity *int32 // A list of allowed logout URLs for the identity providers. - LogoutURLs []*string + LogoutURLs []string // Use this setting to choose which errors and responses are returned by Cognito // APIs during authentication, account confirmation, and password recovery when the @@ -162,16 +162,16 @@ type CreateUserPoolClientInput struct { PreventUserExistenceErrors types.PreventUserExistenceErrorTypes // The read attributes. - ReadAttributes []*string + ReadAttributes []string // The time limit, in days, after which the refresh token is no longer valid and // cannot be used. - RefreshTokenValidity *int32 + RefreshTokenValidity int32 // A list of provider names for the identity providers that are supported on this // client. The following are supported: COGNITO, Facebook, Google and // LoginWithAmazon. - SupportedIdentityProviders []*string + SupportedIdentityProviders []string // The units in which the validity times are represented in. Default for // RefreshToken is days, and default for ID and access tokens are hours. @@ -186,7 +186,7 @@ type CreateUserPoolClientInput struct { // more information, see Specifying Identity Provider Attribute Mappings for Your // User Pool // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html). - WriteAttributes []*string + WriteAttributes []string } // Represents the response from the server to create a user pool client. diff --git a/service/cognitoidentityprovider/api_op_DeleteUserAttributes.go b/service/cognitoidentityprovider/api_op_DeleteUserAttributes.go index eac0ed2d5c1..f3acc6f6c32 100644 --- a/service/cognitoidentityprovider/api_op_DeleteUserAttributes.go +++ b/service/cognitoidentityprovider/api_op_DeleteUserAttributes.go @@ -38,7 +38,7 @@ type DeleteUserAttributesInput struct { // name. // // This member is required. - UserAttributeNames []*string + UserAttributeNames []string } // Represents the response from the server to delete user attributes. diff --git a/service/cognitoidentityprovider/api_op_ForgotPassword.go b/service/cognitoidentityprovider/api_op_ForgotPassword.go index b00b4fe85bc..440c4f249b3 100644 --- a/service/cognitoidentityprovider/api_op_ForgotPassword.go +++ b/service/cognitoidentityprovider/api_op_ForgotPassword.go @@ -79,7 +79,7 @@ type ForgotPasswordInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string // A keyed-hash message authentication code (HMAC) calculated using the secret key // of a user pool client and username plus the client ID in the message. diff --git a/service/cognitoidentityprovider/api_op_GetCSVHeader.go b/service/cognitoidentityprovider/api_op_GetCSVHeader.go index dc8f5d3c0dd..39a10ba0128 100644 --- a/service/cognitoidentityprovider/api_op_GetCSVHeader.go +++ b/service/cognitoidentityprovider/api_op_GetCSVHeader.go @@ -42,7 +42,7 @@ type GetCSVHeaderInput struct { type GetCSVHeaderOutput struct { // The header information for the .csv file for the user import job. - CSVHeader []*string + CSVHeader []string // The user pool ID for the user pool that the users are to be imported into. UserPoolId *string diff --git a/service/cognitoidentityprovider/api_op_GetUser.go b/service/cognitoidentityprovider/api_op_GetUser.go index 0d5fc871c3e..3bf93a3a8a8 100644 --- a/service/cognitoidentityprovider/api_op_GetUser.go +++ b/service/cognitoidentityprovider/api_op_GetUser.go @@ -44,7 +44,7 @@ type GetUserOutput struct { // attributes, you must prepend the custom: prefix to the attribute name. // // This member is required. - UserAttributes []*types.AttributeType + UserAttributes []types.AttributeType // The user name of the user you wish to retrieve from the get user request. // @@ -55,14 +55,14 @@ type GetUserOutput struct { // about SMS MFA configurations. It doesn't provide information about TOTP software // token MFA configurations. To look up information about either type of MFA // configuration, use UserMFASettingList instead. - MFAOptions []*types.MFAOptionType + MFAOptions []types.MFAOptionType // The user's preferred MFA setting. PreferredMfaSetting *string // The MFA options that are enabled for the user. The possible values in this list // are SMS_MFA and SOFTWARE_TOKEN_MFA. - UserMFASettingList []*string + UserMFASettingList []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentityprovider/api_op_GetUserAttributeVerificationCode.go b/service/cognitoidentityprovider/api_op_GetUserAttributeVerificationCode.go index e1869af71d9..f7f9074733a 100644 --- a/service/cognitoidentityprovider/api_op_GetUserAttributeVerificationCode.go +++ b/service/cognitoidentityprovider/api_op_GetUserAttributeVerificationCode.go @@ -68,7 +68,7 @@ type GetUserAttributeVerificationCodeInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string } // The verification code response returned by the server response to get the user diff --git a/service/cognitoidentityprovider/api_op_InitiateAuth.go b/service/cognitoidentityprovider/api_op_InitiateAuth.go index 4ba66e59519..d5a03a10ccf 100644 --- a/service/cognitoidentityprovider/api_op_InitiateAuth.go +++ b/service/cognitoidentityprovider/api_op_InitiateAuth.go @@ -93,7 +93,7 @@ type InitiateAuthInput struct { // For CUSTOM_AUTH: USERNAME (required), SECRET_HASH (if app client is configured // with client secret), DEVICE_KEY. To start the authentication flow with password // verification, include ChallengeName: SRP_A and SRP_A: (The SRP_A Value). - AuthParameters map[string]*string + AuthParameters map[string]string // A map of custom key-value pairs that you can provide as input for certain custom // workflows that this action triggers. You create custom workflows by assigning @@ -149,7 +149,7 @@ type InitiateAuthInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string // Contextual data such as the user's device fingerprint, IP address, or location // used for evaluating the risk of an unexpected event by Amazon Cognito advanced @@ -200,7 +200,7 @@ type InitiateAuthOutput struct { // if you need to pass another challenge. The responses in this parameter should be // used to compute inputs to the next call (RespondToAuthChallenge). All challenges // require USERNAME and SECRET_HASH (if applicable). - ChallengeParameters map[string]*string + ChallengeParameters map[string]string // The session which should be passed both ways in challenge-response calls to the // service. If the caller needs to go through another challenge, they return a diff --git a/service/cognitoidentityprovider/api_op_ListDevices.go b/service/cognitoidentityprovider/api_op_ListDevices.go index e199fd92835..b0d4c03d6d3 100644 --- a/service/cognitoidentityprovider/api_op_ListDevices.go +++ b/service/cognitoidentityprovider/api_op_ListDevices.go @@ -46,7 +46,7 @@ type ListDevicesInput struct { type ListDevicesOutput struct { // The devices returned in the list devices response. - Devices []*types.DeviceType + Devices []types.DeviceType // The pagination token for the list device response. PaginationToken *string diff --git a/service/cognitoidentityprovider/api_op_ListGroups.go b/service/cognitoidentityprovider/api_op_ListGroups.go index 900516d7593..97fc1e76b24 100644 --- a/service/cognitoidentityprovider/api_op_ListGroups.go +++ b/service/cognitoidentityprovider/api_op_ListGroups.go @@ -46,7 +46,7 @@ type ListGroupsInput struct { type ListGroupsOutput struct { // The group objects for the groups. - Groups []*types.GroupType + Groups []types.GroupType // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. diff --git a/service/cognitoidentityprovider/api_op_ListIdentityProviders.go b/service/cognitoidentityprovider/api_op_ListIdentityProviders.go index 5e3af0435cb..d8483e6b624 100644 --- a/service/cognitoidentityprovider/api_op_ListIdentityProviders.go +++ b/service/cognitoidentityprovider/api_op_ListIdentityProviders.go @@ -46,7 +46,7 @@ type ListIdentityProvidersOutput struct { // A list of identity provider objects. // // This member is required. - Providers []*types.ProviderDescription + Providers []types.ProviderDescription // A pagination token. NextToken *string diff --git a/service/cognitoidentityprovider/api_op_ListResourceServers.go b/service/cognitoidentityprovider/api_op_ListResourceServers.go index 15efc75aad3..63c9a3a94db 100644 --- a/service/cognitoidentityprovider/api_op_ListResourceServers.go +++ b/service/cognitoidentityprovider/api_op_ListResourceServers.go @@ -35,7 +35,7 @@ type ListResourceServersInput struct { UserPoolId *string // The maximum number of resource servers to return. - MaxResults *int32 + MaxResults int32 // A pagination token. NextToken *string @@ -46,7 +46,7 @@ type ListResourceServersOutput struct { // The resource servers. // // This member is required. - ResourceServers []*types.ResourceServerType + ResourceServers []types.ResourceServerType // A pagination token. NextToken *string diff --git a/service/cognitoidentityprovider/api_op_ListTagsForResource.go b/service/cognitoidentityprovider/api_op_ListTagsForResource.go index 09e0971f728..772d22dd08b 100644 --- a/service/cognitoidentityprovider/api_op_ListTagsForResource.go +++ b/service/cognitoidentityprovider/api_op_ListTagsForResource.go @@ -40,7 +40,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags that are assigned to the user pool. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentityprovider/api_op_ListUserImportJobs.go b/service/cognitoidentityprovider/api_op_ListUserImportJobs.go index 1bcee359e56..d5eca58192d 100644 --- a/service/cognitoidentityprovider/api_op_ListUserImportJobs.go +++ b/service/cognitoidentityprovider/api_op_ListUserImportJobs.go @@ -33,7 +33,7 @@ type ListUserImportJobsInput struct { // The maximum number of import jobs you want the request to return. // // This member is required. - MaxResults *int32 + MaxResults int32 // The user pool ID for the user pool that the users are being imported into. // @@ -54,7 +54,7 @@ type ListUserImportJobsOutput struct { PaginationToken *string // The user import jobs. - UserImportJobs []*types.UserImportJobType + UserImportJobs []types.UserImportJobType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentityprovider/api_op_ListUserPoolClients.go b/service/cognitoidentityprovider/api_op_ListUserPoolClients.go index 2fe0277f70d..175213d71bb 100644 --- a/service/cognitoidentityprovider/api_op_ListUserPoolClients.go +++ b/service/cognitoidentityprovider/api_op_ListUserPoolClients.go @@ -37,7 +37,7 @@ type ListUserPoolClientsInput struct { // The maximum number of results you want the request to return when listing the // user pool clients. - MaxResults *int32 + MaxResults int32 // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. @@ -52,7 +52,7 @@ type ListUserPoolClientsOutput struct { NextToken *string // The user pool clients in the response that lists user pool clients. - UserPoolClients []*types.UserPoolClientDescription + UserPoolClients []types.UserPoolClientDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentityprovider/api_op_ListUserPools.go b/service/cognitoidentityprovider/api_op_ListUserPools.go index 9c1964c2612..9f07a505409 100644 --- a/service/cognitoidentityprovider/api_op_ListUserPools.go +++ b/service/cognitoidentityprovider/api_op_ListUserPools.go @@ -34,7 +34,7 @@ type ListUserPoolsInput struct { // user pools. // // This member is required. - MaxResults *int32 + MaxResults int32 // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. @@ -49,7 +49,7 @@ type ListUserPoolsOutput struct { NextToken *string // The user pools from the response to list users. - UserPools []*types.UserPoolDescriptionType + UserPools []types.UserPoolDescriptionType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentityprovider/api_op_ListUsers.go b/service/cognitoidentityprovider/api_op_ListUsers.go index 261d709c970..01bd547a32b 100644 --- a/service/cognitoidentityprovider/api_op_ListUsers.go +++ b/service/cognitoidentityprovider/api_op_ListUsers.go @@ -38,7 +38,7 @@ type ListUsersInput struct { // An array of strings, where each string is the name of a user attribute to be // returned for each user in the search results. If the array is null, all // attributes are returned. - AttributesToGet []*string + AttributesToGet []string // A filter string of the form "AttributeName Filter-Type "AttributeValue"". // Quotation marks within the filter string must be escaped using the backslash (\) @@ -106,7 +106,7 @@ type ListUsersOutput struct { PaginationToken *string // The users returned in the request to list users. - Users []*types.UserType + Users []types.UserType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentityprovider/api_op_ListUsersInGroup.go b/service/cognitoidentityprovider/api_op_ListUsersInGroup.go index 148ad313a2e..a1a1975915e 100644 --- a/service/cognitoidentityprovider/api_op_ListUsersInGroup.go +++ b/service/cognitoidentityprovider/api_op_ListUsersInGroup.go @@ -55,7 +55,7 @@ type ListUsersInGroupOutput struct { NextToken *string // The users returned in the request to list users. - Users []*types.UserType + Users []types.UserType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentityprovider/api_op_ResendConfirmationCode.go b/service/cognitoidentityprovider/api_op_ResendConfirmationCode.go index df52a05652f..ba32e1dfa6c 100644 --- a/service/cognitoidentityprovider/api_op_ResendConfirmationCode.go +++ b/service/cognitoidentityprovider/api_op_ResendConfirmationCode.go @@ -70,7 +70,7 @@ type ResendConfirmationCodeInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string // A keyed-hash message authentication code (HMAC) calculated using the secret key // of a user pool client and username plus the client ID in the message. diff --git a/service/cognitoidentityprovider/api_op_RespondToAuthChallenge.go b/service/cognitoidentityprovider/api_op_RespondToAuthChallenge.go index b5f7cf7ad9f..fd0bb281a5d 100644 --- a/service/cognitoidentityprovider/api_op_RespondToAuthChallenge.go +++ b/service/cognitoidentityprovider/api_op_RespondToAuthChallenge.go @@ -67,7 +67,7 @@ type RespondToAuthChallengeInput struct { // * // DEVICE_PASSWORD_VERIFIER requires everything that PASSWORD_VERIFIER requires // plus DEVICE_KEY. - ChallengeResponses map[string]*string + ChallengeResponses map[string]string // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning @@ -97,7 +97,7 @@ type RespondToAuthChallengeInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string // The session which should be passed both ways in challenge-response calls to the // service. If InitiateAuth or RespondToAuthChallenge API call determines that the @@ -125,7 +125,7 @@ type RespondToAuthChallengeOutput struct { // The challenge parameters. For more information, see InitiateAuth // (https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html). - ChallengeParameters map[string]*string + ChallengeParameters map[string]string // The session which should be passed both ways in challenge-response calls to the // service. If the caller needs to go through another challenge, they return a diff --git a/service/cognitoidentityprovider/api_op_SetUserSettings.go b/service/cognitoidentityprovider/api_op_SetUserSettings.go index df9f6956bec..6b29d9e7f41 100644 --- a/service/cognitoidentityprovider/api_op_SetUserSettings.go +++ b/service/cognitoidentityprovider/api_op_SetUserSettings.go @@ -42,7 +42,7 @@ type SetUserSettingsInput struct { // delivery. // // This member is required. - MFAOptions []*types.MFAOptionType + MFAOptions []types.MFAOptionType } // The response from the server for a set user settings request. diff --git a/service/cognitoidentityprovider/api_op_SignUp.go b/service/cognitoidentityprovider/api_op_SignUp.go index 1a4c0dac2e1..e5ea8cc7509 100644 --- a/service/cognitoidentityprovider/api_op_SignUp.go +++ b/service/cognitoidentityprovider/api_op_SignUp.go @@ -74,7 +74,7 @@ type SignUpInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string // A keyed-hash message authentication code (HMAC) calculated using the secret key // of a user pool client and username plus the client ID in the message. @@ -82,7 +82,7 @@ type SignUpInput struct { // An array of name-value pairs representing user attributes. For custom // attributes, you must prepend the custom: prefix to the attribute name. - UserAttributes []*types.AttributeType + UserAttributes []types.AttributeType // Contextual data such as the user's device fingerprint, IP address, or location // used for evaluating the risk of an unexpected event by Amazon Cognito advanced @@ -90,7 +90,7 @@ type SignUpInput struct { UserContextData *types.UserContextDataType // The validation data in the request to register a user. - ValidationData []*types.AttributeType + ValidationData []types.AttributeType } // The response from the server for a registration request. @@ -100,7 +100,7 @@ type SignUpOutput struct { // confirmed. // // This member is required. - UserConfirmed *bool + UserConfirmed bool // The UUID of the authenticated user. This is not the same as username. // diff --git a/service/cognitoidentityprovider/api_op_TagResource.go b/service/cognitoidentityprovider/api_op_TagResource.go index 9dfac20e67f..231362d5ff1 100644 --- a/service/cognitoidentityprovider/api_op_TagResource.go +++ b/service/cognitoidentityprovider/api_op_TagResource.go @@ -48,7 +48,7 @@ type TagResourceInput struct { // The tags to assign to the user pool. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/cognitoidentityprovider/api_op_UntagResource.go b/service/cognitoidentityprovider/api_op_UntagResource.go index ffa8c5ca636..13e293c8f20 100644 --- a/service/cognitoidentityprovider/api_op_UntagResource.go +++ b/service/cognitoidentityprovider/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // The keys of the tags to remove from the user pool. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/cognitoidentityprovider/api_op_UpdateIdentityProvider.go b/service/cognitoidentityprovider/api_op_UpdateIdentityProvider.go index 75a1184fe84..25cee37ef1a 100644 --- a/service/cognitoidentityprovider/api_op_UpdateIdentityProvider.go +++ b/service/cognitoidentityprovider/api_op_UpdateIdentityProvider.go @@ -40,14 +40,14 @@ type UpdateIdentityProviderInput struct { UserPoolId *string // The identity provider attribute mapping to be changed. - AttributeMapping map[string]*string + AttributeMapping map[string]string // A list of identity provider identifiers. - IdpIdentifiers []*string + IdpIdentifiers []string // The identity provider details to be updated, such as MetadataURL and // MetadataFile. - ProviderDetails map[string]*string + ProviderDetails map[string]string } type UpdateIdentityProviderOutput struct { diff --git a/service/cognitoidentityprovider/api_op_UpdateResourceServer.go b/service/cognitoidentityprovider/api_op_UpdateResourceServer.go index 300707a5727..e456853059d 100644 --- a/service/cognitoidentityprovider/api_op_UpdateResourceServer.go +++ b/service/cognitoidentityprovider/api_op_UpdateResourceServer.go @@ -47,7 +47,7 @@ type UpdateResourceServerInput struct { UserPoolId *string // The scope values to be set for the resource server. - Scopes []*types.ResourceServerScopeType + Scopes []types.ResourceServerScopeType } type UpdateResourceServerOutput struct { diff --git a/service/cognitoidentityprovider/api_op_UpdateUserAttributes.go b/service/cognitoidentityprovider/api_op_UpdateUserAttributes.go index 71283c93fab..eda9bc4f64d 100644 --- a/service/cognitoidentityprovider/api_op_UpdateUserAttributes.go +++ b/service/cognitoidentityprovider/api_op_UpdateUserAttributes.go @@ -38,7 +38,7 @@ type UpdateUserAttributesInput struct { // attributes, you must prepend the custom: prefix to the attribute name. // // This member is required. - UserAttributes []*types.AttributeType + UserAttributes []types.AttributeType // A map of custom key-value pairs that you can provide as input for any custom // workflows that this action triggers. You create custom workflows by assigning @@ -66,7 +66,7 @@ type UpdateUserAttributesInput struct { // // * Amazon Cognito does not encrypt the the ClientMetadata value, so don't // use it to provide sensitive information. - ClientMetadata map[string]*string + ClientMetadata map[string]string } // Represents the response from the server for the request to update user @@ -75,7 +75,7 @@ type UpdateUserAttributesOutput struct { // The code delivery details list from the server for the request to update user // attributes. - CodeDeliveryDetailsList []*types.CodeDeliveryDetailsType + CodeDeliveryDetailsList []types.CodeDeliveryDetailsType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitoidentityprovider/api_op_UpdateUserPool.go b/service/cognitoidentityprovider/api_op_UpdateUserPool.go index c5feb47f8fd..881cff7e999 100644 --- a/service/cognitoidentityprovider/api_op_UpdateUserPool.go +++ b/service/cognitoidentityprovider/api_op_UpdateUserPool.go @@ -103,7 +103,7 @@ type UpdateUserPoolInput struct { // The tag keys and values to assign to the user pool. A tag is a label that you // can use to categorize and manage user pools in different ways, such as by // purpose, owner, environment, or other criteria. - UserPoolTags map[string]*string + UserPoolTags map[string]string // The template for verification messages. VerificationMessageTemplate *types.VerificationMessageTemplateType diff --git a/service/cognitoidentityprovider/api_op_UpdateUserPoolClient.go b/service/cognitoidentityprovider/api_op_UpdateUserPoolClient.go index 7588eaed4bb..3eeb1becb68 100644 --- a/service/cognitoidentityprovider/api_op_UpdateUserPoolClient.go +++ b/service/cognitoidentityprovider/api_op_UpdateUserPoolClient.go @@ -61,13 +61,13 @@ type UpdateUserPoolClientInput struct { // Set to true if the client is allowed to follow the OAuth protocol when // interacting with Cognito user pools. - AllowedOAuthFlowsUserPoolClient *bool + AllowedOAuthFlowsUserPoolClient bool // The allowed OAuth scopes. Possible values provided by OAuth are: phone, email, // openid, and profile. Possible values provided by AWS are: // aws.cognito.signin.user.admin. Custom scopes created in Resource Servers are // also supported. - AllowedOAuthScopes []*string + AllowedOAuthScopes []string // The Amazon Pinpoint analytics configuration for collecting metrics for this user // pool. In regions where Pinpoint is not available, Cognito User Pools only @@ -90,7 +90,7 @@ type UpdateUserPoolClientInput struct { // Redirection Endpoint (https://tools.ietf.org/html/rfc6749#section-3.1.2). Amazon // Cognito requires HTTPS over HTTP except for http://localhost for testing // purposes only. App callback URLs such as myapp://example are also supported. - CallbackURLs []*string + CallbackURLs []string // The client name from the update user pool client request. ClientName *string @@ -140,7 +140,7 @@ type UpdateUserPoolClientInput struct { IdTokenValidity *int32 // A list of allowed logout URLs for the identity providers. - LogoutURLs []*string + LogoutURLs []string // Use this setting to choose which errors and responses are returned by Cognito // APIs during authentication, account confirmation, and password recovery when the @@ -164,22 +164,22 @@ type UpdateUserPoolClientInput struct { PreventUserExistenceErrors types.PreventUserExistenceErrorTypes // The read-only attributes of the user pool. - ReadAttributes []*string + ReadAttributes []string // The time limit, in days, after which the refresh token is no longer valid and // cannot be used. - RefreshTokenValidity *int32 + RefreshTokenValidity int32 // A list of provider names for the identity providers that are supported on this // client. - SupportedIdentityProviders []*string + SupportedIdentityProviders []string // The units in which the validity times are represented in. Default for // RefreshToken is days, and default for ID and access tokens are hours. TokenValidityUnits *types.TokenValidityUnitsType // The writeable attributes of the user pool. - WriteAttributes []*string + WriteAttributes []string } // Represents the response from the server to the request to update the user pool diff --git a/service/cognitoidentityprovider/deserializers.go b/service/cognitoidentityprovider/deserializers.go index 5c054ba2cef..6b9ee4dc0ad 100644 --- a/service/cognitoidentityprovider/deserializers.go +++ b/service/cognitoidentityprovider/deserializers.go @@ -14546,7 +14546,7 @@ func awsAwsjson11_deserializeDocumentAccountTakeoverActionType(v **types.Account if !ok { return fmt.Errorf("expected AccountTakeoverActionNotifyType to be of type *bool, got %T instead", value) } - sv.Notify = &jtv + sv.Notify = jtv } default: @@ -14627,7 +14627,7 @@ func awsAwsjson11_deserializeDocumentAdminCreateUserConfigType(v **types.AdminCr if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.AllowAdminCreateUserOnly = &jtv + sv.AllowAdminCreateUserOnly = jtv } case "InviteMessageTemplate": @@ -14645,7 +14645,7 @@ func awsAwsjson11_deserializeDocumentAdminCreateUserConfigType(v **types.AdminCr if err != nil { return err } - sv.UnusedAccountValidityDays = ptr.Int32(int32(i64)) + sv.UnusedAccountValidityDays = int32(i64) } default: @@ -14721,7 +14721,7 @@ func awsAwsjson11_deserializeDocumentAliasExistsException(v **types.AliasExistsE if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14761,7 +14761,7 @@ func awsAwsjson11_deserializeDocumentAnalyticsConfigurationType(v **types.Analyt if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.ApplicationArn = &jtv + sv.ApplicationArn = ptr.String(jtv) } case "ApplicationId": @@ -14770,7 +14770,7 @@ func awsAwsjson11_deserializeDocumentAnalyticsConfigurationType(v **types.Analyt if !ok { return fmt.Errorf("expected HexStringType to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "ExternalId": @@ -14779,7 +14779,7 @@ func awsAwsjson11_deserializeDocumentAnalyticsConfigurationType(v **types.Analyt if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.ExternalId = &jtv + sv.ExternalId = ptr.String(jtv) } case "RoleArn": @@ -14788,7 +14788,7 @@ func awsAwsjson11_deserializeDocumentAnalyticsConfigurationType(v **types.Analyt if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "UserDataShared": @@ -14797,7 +14797,7 @@ func awsAwsjson11_deserializeDocumentAnalyticsConfigurationType(v **types.Analyt if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.UserDataShared = &jtv + sv.UserDataShared = jtv } default: @@ -14809,7 +14809,7 @@ func awsAwsjson11_deserializeDocumentAnalyticsConfigurationType(v **types.Analyt return nil } -func awsAwsjson11_deserializeDocumentAttributeListType(v *[]*types.AttributeType, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttributeListType(v *[]types.AttributeType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14822,18 +14822,20 @@ func awsAwsjson11_deserializeDocumentAttributeListType(v *[]*types.AttributeType return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttributeType + var cv []types.AttributeType if *v == nil { - cv = []*types.AttributeType{} + cv = []types.AttributeType{} } else { cv = *v } for _, value := range shape { - var col *types.AttributeType - if err := awsAwsjson11_deserializeDocumentAttributeType(&col, value); err != nil { + var col types.AttributeType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttributeType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14841,7 +14843,7 @@ func awsAwsjson11_deserializeDocumentAttributeListType(v *[]*types.AttributeType return nil } -func awsAwsjson11_deserializeDocumentAttributeMappingType(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttributeMappingType(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14854,21 +14856,21 @@ func awsAwsjson11_deserializeDocumentAttributeMappingType(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -14905,7 +14907,7 @@ func awsAwsjson11_deserializeDocumentAttributeType(v **types.AttributeType, valu if !ok { return fmt.Errorf("expected AttributeNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Value": @@ -14914,7 +14916,7 @@ func awsAwsjson11_deserializeDocumentAttributeType(v **types.AttributeType, valu if !ok { return fmt.Errorf("expected AttributeValueType to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -14954,7 +14956,7 @@ func awsAwsjson11_deserializeDocumentAuthenticationResultType(v **types.Authenti if !ok { return fmt.Errorf("expected TokenModelType to be of type string, got %T instead", value) } - sv.AccessToken = &jtv + sv.AccessToken = ptr.String(jtv) } case "ExpiresIn": @@ -14967,7 +14969,7 @@ func awsAwsjson11_deserializeDocumentAuthenticationResultType(v **types.Authenti if err != nil { return err } - sv.ExpiresIn = ptr.Int32(int32(i64)) + sv.ExpiresIn = int32(i64) } case "IdToken": @@ -14976,7 +14978,7 @@ func awsAwsjson11_deserializeDocumentAuthenticationResultType(v **types.Authenti if !ok { return fmt.Errorf("expected TokenModelType to be of type string, got %T instead", value) } - sv.IdToken = &jtv + sv.IdToken = ptr.String(jtv) } case "NewDeviceMetadata": @@ -14990,7 +14992,7 @@ func awsAwsjson11_deserializeDocumentAuthenticationResultType(v **types.Authenti if !ok { return fmt.Errorf("expected TokenModelType to be of type string, got %T instead", value) } - sv.RefreshToken = &jtv + sv.RefreshToken = ptr.String(jtv) } case "TokenType": @@ -14999,7 +15001,7 @@ func awsAwsjson11_deserializeDocumentAuthenticationResultType(v **types.Authenti if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.TokenType = &jtv + sv.TokenType = ptr.String(jtv) } default: @@ -15011,7 +15013,7 @@ func awsAwsjson11_deserializeDocumentAuthenticationResultType(v **types.Authenti return nil } -func awsAwsjson11_deserializeDocumentAuthEventsType(v *[]*types.AuthEventType, value interface{}) error { +func awsAwsjson11_deserializeDocumentAuthEventsType(v *[]types.AuthEventType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15024,18 +15026,20 @@ func awsAwsjson11_deserializeDocumentAuthEventsType(v *[]*types.AuthEventType, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AuthEventType + var cv []types.AuthEventType if *v == nil { - cv = []*types.AuthEventType{} + cv = []types.AuthEventType{} } else { cv = *v } for _, value := range shape { - var col *types.AuthEventType - if err := awsAwsjson11_deserializeDocumentAuthEventType(&col, value); err != nil { + var col types.AuthEventType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAuthEventType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15099,7 +15103,7 @@ func awsAwsjson11_deserializeDocumentAuthEventType(v **types.AuthEventType, valu if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.EventId = &jtv + sv.EventId = ptr.String(jtv) } case "EventResponse": @@ -15134,7 +15138,7 @@ func awsAwsjson11_deserializeDocumentAuthEventType(v **types.AuthEventType, valu return nil } -func awsAwsjson11_deserializeDocumentBlockedIPRangeListType(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentBlockedIPRangeListType(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15147,21 +15151,21 @@ func awsAwsjson11_deserializeDocumentBlockedIPRangeListType(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -15170,7 +15174,7 @@ func awsAwsjson11_deserializeDocumentBlockedIPRangeListType(v *[]*string, value return nil } -func awsAwsjson11_deserializeDocumentCallbackURLsListType(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCallbackURLsListType(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15183,21 +15187,21 @@ func awsAwsjson11_deserializeDocumentCallbackURLsListType(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RedirectUrlType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -15206,7 +15210,7 @@ func awsAwsjson11_deserializeDocumentCallbackURLsListType(v *[]*string, value in return nil } -func awsAwsjson11_deserializeDocumentChallengeParametersType(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentChallengeParametersType(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15219,21 +15223,21 @@ func awsAwsjson11_deserializeDocumentChallengeParametersType(v *map[string]*stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -15242,7 +15246,7 @@ func awsAwsjson11_deserializeDocumentChallengeParametersType(v *map[string]*stri return nil } -func awsAwsjson11_deserializeDocumentChallengeResponseListType(v *[]*types.ChallengeResponseType, value interface{}) error { +func awsAwsjson11_deserializeDocumentChallengeResponseListType(v *[]types.ChallengeResponseType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15255,18 +15259,20 @@ func awsAwsjson11_deserializeDocumentChallengeResponseListType(v *[]*types.Chall return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ChallengeResponseType + var cv []types.ChallengeResponseType if *v == nil { - cv = []*types.ChallengeResponseType{} + cv = []types.ChallengeResponseType{} } else { cv = *v } for _, value := range shape { - var col *types.ChallengeResponseType - if err := awsAwsjson11_deserializeDocumentChallengeResponseType(&col, value); err != nil { + var col types.ChallengeResponseType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentChallengeResponseType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15323,7 +15329,7 @@ func awsAwsjson11_deserializeDocumentChallengeResponseType(v **types.ChallengeRe return nil } -func awsAwsjson11_deserializeDocumentClientPermissionListType(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentClientPermissionListType(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15336,21 +15342,21 @@ func awsAwsjson11_deserializeDocumentClientPermissionListType(v *[]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ClientPermissionType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -15359,7 +15365,7 @@ func awsAwsjson11_deserializeDocumentClientPermissionListType(v *[]*string, valu return nil } -func awsAwsjson11_deserializeDocumentCodeDeliveryDetailsListType(v *[]*types.CodeDeliveryDetailsType, value interface{}) error { +func awsAwsjson11_deserializeDocumentCodeDeliveryDetailsListType(v *[]types.CodeDeliveryDetailsType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15372,18 +15378,20 @@ func awsAwsjson11_deserializeDocumentCodeDeliveryDetailsListType(v *[]*types.Cod return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CodeDeliveryDetailsType + var cv []types.CodeDeliveryDetailsType if *v == nil { - cv = []*types.CodeDeliveryDetailsType{} + cv = []types.CodeDeliveryDetailsType{} } else { cv = *v } for _, value := range shape { - var col *types.CodeDeliveryDetailsType - if err := awsAwsjson11_deserializeDocumentCodeDeliveryDetailsType(&col, value); err != nil { + var col types.CodeDeliveryDetailsType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCodeDeliveryDetailsType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15419,7 +15427,7 @@ func awsAwsjson11_deserializeDocumentCodeDeliveryDetailsType(v **types.CodeDeliv if !ok { return fmt.Errorf("expected AttributeNameType to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "DeliveryMedium": @@ -15437,7 +15445,7 @@ func awsAwsjson11_deserializeDocumentCodeDeliveryDetailsType(v **types.CodeDeliv if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.Destination = &jtv + sv.Destination = ptr.String(jtv) } default: @@ -15477,7 +15485,7 @@ func awsAwsjson11_deserializeDocumentCodeDeliveryFailureException(v **types.Code if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15517,7 +15525,7 @@ func awsAwsjson11_deserializeDocumentCodeMismatchException(v **types.CodeMismatc if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15638,7 +15646,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15678,7 +15686,7 @@ func awsAwsjson11_deserializeDocumentCustomDomainConfigType(v **types.CustomDoma if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } default: @@ -15718,7 +15726,7 @@ func awsAwsjson11_deserializeDocumentDeviceConfigurationType(v **types.DeviceCon if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.ChallengeRequiredOnNewDevice = &jtv + sv.ChallengeRequiredOnNewDevice = jtv } case "DeviceOnlyRememberedOnUserPrompt": @@ -15727,7 +15735,7 @@ func awsAwsjson11_deserializeDocumentDeviceConfigurationType(v **types.DeviceCon if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.DeviceOnlyRememberedOnUserPrompt = &jtv + sv.DeviceOnlyRememberedOnUserPrompt = jtv } default: @@ -15739,7 +15747,7 @@ func awsAwsjson11_deserializeDocumentDeviceConfigurationType(v **types.DeviceCon return nil } -func awsAwsjson11_deserializeDocumentDeviceListType(v *[]*types.DeviceType, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeviceListType(v *[]types.DeviceType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15752,18 +15760,20 @@ func awsAwsjson11_deserializeDocumentDeviceListType(v *[]*types.DeviceType, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeviceType + var cv []types.DeviceType if *v == nil { - cv = []*types.DeviceType{} + cv = []types.DeviceType{} } else { cv = *v } for _, value := range shape { - var col *types.DeviceType - if err := awsAwsjson11_deserializeDocumentDeviceType(&col, value); err != nil { + var col types.DeviceType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeviceType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15817,7 +15827,7 @@ func awsAwsjson11_deserializeDocumentDeviceType(v **types.DeviceType, value inte if !ok { return fmt.Errorf("expected DeviceKeyType to be of type string, got %T instead", value) } - sv.DeviceKey = &jtv + sv.DeviceKey = ptr.String(jtv) } case "DeviceLastAuthenticatedDate": @@ -15883,7 +15893,7 @@ func awsAwsjson11_deserializeDocumentDomainDescriptionType(v **types.DomainDescr if !ok { return fmt.Errorf("expected AWSAccountIdType to be of type string, got %T instead", value) } - sv.AWSAccountId = &jtv + sv.AWSAccountId = ptr.String(jtv) } case "CloudFrontDistribution": @@ -15892,7 +15902,7 @@ func awsAwsjson11_deserializeDocumentDomainDescriptionType(v **types.DomainDescr if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.CloudFrontDistribution = &jtv + sv.CloudFrontDistribution = ptr.String(jtv) } case "CustomDomainConfig": @@ -15906,7 +15916,7 @@ func awsAwsjson11_deserializeDocumentDomainDescriptionType(v **types.DomainDescr if !ok { return fmt.Errorf("expected DomainType to be of type string, got %T instead", value) } - sv.Domain = &jtv + sv.Domain = ptr.String(jtv) } case "S3Bucket": @@ -15915,7 +15925,7 @@ func awsAwsjson11_deserializeDocumentDomainDescriptionType(v **types.DomainDescr if !ok { return fmt.Errorf("expected S3BucketType to be of type string, got %T instead", value) } - sv.S3Bucket = &jtv + sv.S3Bucket = ptr.String(jtv) } case "Status": @@ -15933,7 +15943,7 @@ func awsAwsjson11_deserializeDocumentDomainDescriptionType(v **types.DomainDescr if !ok { return fmt.Errorf("expected UserPoolIdType to be of type string, got %T instead", value) } - sv.UserPoolId = &jtv + sv.UserPoolId = ptr.String(jtv) } case "Version": @@ -15942,7 +15952,7 @@ func awsAwsjson11_deserializeDocumentDomainDescriptionType(v **types.DomainDescr if !ok { return fmt.Errorf("expected DomainVersionType to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -15982,7 +15992,7 @@ func awsAwsjson11_deserializeDocumentDuplicateProviderException(v **types.Duplic if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16022,7 +16032,7 @@ func awsAwsjson11_deserializeDocumentEmailConfigurationType(v **types.EmailConfi if !ok { return fmt.Errorf("expected SESConfigurationSet to be of type string, got %T instead", value) } - sv.ConfigurationSet = &jtv + sv.ConfigurationSet = ptr.String(jtv) } case "EmailSendingAccount": @@ -16040,7 +16050,7 @@ func awsAwsjson11_deserializeDocumentEmailConfigurationType(v **types.EmailConfi if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.From = &jtv + sv.From = ptr.String(jtv) } case "ReplyToEmailAddress": @@ -16049,7 +16059,7 @@ func awsAwsjson11_deserializeDocumentEmailConfigurationType(v **types.EmailConfi if !ok { return fmt.Errorf("expected EmailAddressType to be of type string, got %T instead", value) } - sv.ReplyToEmailAddress = &jtv + sv.ReplyToEmailAddress = ptr.String(jtv) } case "SourceArn": @@ -16058,7 +16068,7 @@ func awsAwsjson11_deserializeDocumentEmailConfigurationType(v **types.EmailConfi if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } default: @@ -16098,7 +16108,7 @@ func awsAwsjson11_deserializeDocumentEnableSoftwareTokenMFAException(v **types.E if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16138,7 +16148,7 @@ func awsAwsjson11_deserializeDocumentEventContextDataType(v **types.EventContext if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.City = &jtv + sv.City = ptr.String(jtv) } case "Country": @@ -16147,7 +16157,7 @@ func awsAwsjson11_deserializeDocumentEventContextDataType(v **types.EventContext if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.Country = &jtv + sv.Country = ptr.String(jtv) } case "DeviceName": @@ -16156,7 +16166,7 @@ func awsAwsjson11_deserializeDocumentEventContextDataType(v **types.EventContext if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.DeviceName = &jtv + sv.DeviceName = ptr.String(jtv) } case "IpAddress": @@ -16165,7 +16175,7 @@ func awsAwsjson11_deserializeDocumentEventContextDataType(v **types.EventContext if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "Timezone": @@ -16174,7 +16184,7 @@ func awsAwsjson11_deserializeDocumentEventContextDataType(v **types.EventContext if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.Timezone = &jtv + sv.Timezone = ptr.String(jtv) } default: @@ -16236,7 +16246,7 @@ func awsAwsjson11_deserializeDocumentEventFeedbackType(v **types.EventFeedbackTy if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.Provider = &jtv + sv.Provider = ptr.String(jtv) } default: @@ -16312,7 +16322,7 @@ func awsAwsjson11_deserializeDocumentEventRiskType(v **types.EventRiskType, valu if !ok { return fmt.Errorf("expected WrappedBooleanType to be of type *bool, got %T instead", value) } - sv.CompromisedCredentialsDetected = &jtv + sv.CompromisedCredentialsDetected = ptr.Bool(jtv) } case "RiskDecision": @@ -16370,7 +16380,7 @@ func awsAwsjson11_deserializeDocumentExpiredCodeException(v **types.ExpiredCodeE if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16446,7 +16456,7 @@ func awsAwsjson11_deserializeDocumentGroupExistsException(v **types.GroupExistsE if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16458,7 +16468,7 @@ func awsAwsjson11_deserializeDocumentGroupExistsException(v **types.GroupExistsE return nil } -func awsAwsjson11_deserializeDocumentGroupListType(v *[]*types.GroupType, value interface{}) error { +func awsAwsjson11_deserializeDocumentGroupListType(v *[]types.GroupType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16471,18 +16481,20 @@ func awsAwsjson11_deserializeDocumentGroupListType(v *[]*types.GroupType, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupType + var cv []types.GroupType if *v == nil { - cv = []*types.GroupType{} + cv = []types.GroupType{} } else { cv = *v } for _, value := range shape { - var col *types.GroupType - if err := awsAwsjson11_deserializeDocumentGroupType(&col, value); err != nil { + var col types.GroupType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGroupType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16531,7 +16543,7 @@ func awsAwsjson11_deserializeDocumentGroupType(v **types.GroupType, value interf if !ok { return fmt.Errorf("expected DescriptionType to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "GroupName": @@ -16540,7 +16552,7 @@ func awsAwsjson11_deserializeDocumentGroupType(v **types.GroupType, value interf if !ok { return fmt.Errorf("expected GroupNameType to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } case "LastModifiedDate": @@ -16575,7 +16587,7 @@ func awsAwsjson11_deserializeDocumentGroupType(v **types.GroupType, value interf if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "UserPoolId": @@ -16584,7 +16596,7 @@ func awsAwsjson11_deserializeDocumentGroupType(v **types.GroupType, value interf if !ok { return fmt.Errorf("expected UserPoolIdType to be of type string, got %T instead", value) } - sv.UserPoolId = &jtv + sv.UserPoolId = ptr.String(jtv) } default: @@ -16665,7 +16677,7 @@ func awsAwsjson11_deserializeDocumentIdentityProviderType(v **types.IdentityProv if !ok { return fmt.Errorf("expected ProviderNameType to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "ProviderType": @@ -16683,7 +16695,7 @@ func awsAwsjson11_deserializeDocumentIdentityProviderType(v **types.IdentityProv if !ok { return fmt.Errorf("expected UserPoolIdType to be of type string, got %T instead", value) } - sv.UserPoolId = &jtv + sv.UserPoolId = ptr.String(jtv) } default: @@ -16695,7 +16707,7 @@ func awsAwsjson11_deserializeDocumentIdentityProviderType(v **types.IdentityProv return nil } -func awsAwsjson11_deserializeDocumentIdpIdentifiersListType(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIdpIdentifiersListType(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16708,21 +16720,21 @@ func awsAwsjson11_deserializeDocumentIdpIdentifiersListType(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IdpIdentifierType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -16759,7 +16771,7 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16799,7 +16811,7 @@ func awsAwsjson11_deserializeDocumentInvalidEmailRoleAccessPolicyException(v **t if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16839,7 +16851,7 @@ func awsAwsjson11_deserializeDocumentInvalidLambdaResponseException(v **types.In if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16879,7 +16891,7 @@ func awsAwsjson11_deserializeDocumentInvalidOAuthFlowException(v **types.Invalid if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16919,7 +16931,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16959,7 +16971,7 @@ func awsAwsjson11_deserializeDocumentInvalidPasswordException(v **types.InvalidP if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16999,7 +17011,7 @@ func awsAwsjson11_deserializeDocumentInvalidSmsRoleAccessPolicyException(v **typ if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17039,7 +17051,7 @@ func awsAwsjson11_deserializeDocumentInvalidSmsRoleTrustRelationshipException(v if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17079,7 +17091,7 @@ func awsAwsjson11_deserializeDocumentInvalidUserPoolConfigurationException(v **t if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17119,7 +17131,7 @@ func awsAwsjson11_deserializeDocumentLambdaConfigType(v **types.LambdaConfigType if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.CreateAuthChallenge = &jtv + sv.CreateAuthChallenge = ptr.String(jtv) } case "CustomMessage": @@ -17128,7 +17140,7 @@ func awsAwsjson11_deserializeDocumentLambdaConfigType(v **types.LambdaConfigType if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.CustomMessage = &jtv + sv.CustomMessage = ptr.String(jtv) } case "DefineAuthChallenge": @@ -17137,7 +17149,7 @@ func awsAwsjson11_deserializeDocumentLambdaConfigType(v **types.LambdaConfigType if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.DefineAuthChallenge = &jtv + sv.DefineAuthChallenge = ptr.String(jtv) } case "PostAuthentication": @@ -17146,7 +17158,7 @@ func awsAwsjson11_deserializeDocumentLambdaConfigType(v **types.LambdaConfigType if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.PostAuthentication = &jtv + sv.PostAuthentication = ptr.String(jtv) } case "PostConfirmation": @@ -17155,7 +17167,7 @@ func awsAwsjson11_deserializeDocumentLambdaConfigType(v **types.LambdaConfigType if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.PostConfirmation = &jtv + sv.PostConfirmation = ptr.String(jtv) } case "PreAuthentication": @@ -17164,7 +17176,7 @@ func awsAwsjson11_deserializeDocumentLambdaConfigType(v **types.LambdaConfigType if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.PreAuthentication = &jtv + sv.PreAuthentication = ptr.String(jtv) } case "PreSignUp": @@ -17173,7 +17185,7 @@ func awsAwsjson11_deserializeDocumentLambdaConfigType(v **types.LambdaConfigType if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.PreSignUp = &jtv + sv.PreSignUp = ptr.String(jtv) } case "PreTokenGeneration": @@ -17182,7 +17194,7 @@ func awsAwsjson11_deserializeDocumentLambdaConfigType(v **types.LambdaConfigType if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.PreTokenGeneration = &jtv + sv.PreTokenGeneration = ptr.String(jtv) } case "UserMigration": @@ -17191,7 +17203,7 @@ func awsAwsjson11_deserializeDocumentLambdaConfigType(v **types.LambdaConfigType if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.UserMigration = &jtv + sv.UserMigration = ptr.String(jtv) } case "VerifyAuthChallengeResponse": @@ -17200,7 +17212,7 @@ func awsAwsjson11_deserializeDocumentLambdaConfigType(v **types.LambdaConfigType if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.VerifyAuthChallengeResponse = &jtv + sv.VerifyAuthChallengeResponse = ptr.String(jtv) } default: @@ -17240,7 +17252,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17252,7 +17264,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson11_deserializeDocumentListOfStringTypes(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfStringTypes(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17265,21 +17277,21 @@ func awsAwsjson11_deserializeDocumentListOfStringTypes(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -17288,7 +17300,7 @@ func awsAwsjson11_deserializeDocumentListOfStringTypes(v *[]*string, value inter return nil } -func awsAwsjson11_deserializeDocumentLogoutURLsListType(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogoutURLsListType(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17301,21 +17313,21 @@ func awsAwsjson11_deserializeDocumentLogoutURLsListType(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RedirectUrlType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -17352,7 +17364,7 @@ func awsAwsjson11_deserializeDocumentMessageTemplateType(v **types.MessageTempla if !ok { return fmt.Errorf("expected EmailVerificationMessageType to be of type string, got %T instead", value) } - sv.EmailMessage = &jtv + sv.EmailMessage = ptr.String(jtv) } case "EmailSubject": @@ -17361,7 +17373,7 @@ func awsAwsjson11_deserializeDocumentMessageTemplateType(v **types.MessageTempla if !ok { return fmt.Errorf("expected EmailVerificationSubjectType to be of type string, got %T instead", value) } - sv.EmailSubject = &jtv + sv.EmailSubject = ptr.String(jtv) } case "SMSMessage": @@ -17370,7 +17382,7 @@ func awsAwsjson11_deserializeDocumentMessageTemplateType(v **types.MessageTempla if !ok { return fmt.Errorf("expected SmsVerificationMessageType to be of type string, got %T instead", value) } - sv.SMSMessage = &jtv + sv.SMSMessage = ptr.String(jtv) } default: @@ -17410,7 +17422,7 @@ func awsAwsjson11_deserializeDocumentMFAMethodNotFoundException(v **types.MFAMet if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17422,7 +17434,7 @@ func awsAwsjson11_deserializeDocumentMFAMethodNotFoundException(v **types.MFAMet return nil } -func awsAwsjson11_deserializeDocumentMFAOptionListType(v *[]*types.MFAOptionType, value interface{}) error { +func awsAwsjson11_deserializeDocumentMFAOptionListType(v *[]types.MFAOptionType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17435,18 +17447,20 @@ func awsAwsjson11_deserializeDocumentMFAOptionListType(v *[]*types.MFAOptionType return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MFAOptionType + var cv []types.MFAOptionType if *v == nil { - cv = []*types.MFAOptionType{} + cv = []types.MFAOptionType{} } else { cv = *v } for _, value := range shape { - var col *types.MFAOptionType - if err := awsAwsjson11_deserializeDocumentMFAOptionType(&col, value); err != nil { + var col types.MFAOptionType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMFAOptionType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17482,7 +17496,7 @@ func awsAwsjson11_deserializeDocumentMFAOptionType(v **types.MFAOptionType, valu if !ok { return fmt.Errorf("expected AttributeNameType to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "DeliveryMedium": @@ -17531,7 +17545,7 @@ func awsAwsjson11_deserializeDocumentNewDeviceMetadataType(v **types.NewDeviceMe if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.DeviceGroupKey = &jtv + sv.DeviceGroupKey = ptr.String(jtv) } case "DeviceKey": @@ -17540,7 +17554,7 @@ func awsAwsjson11_deserializeDocumentNewDeviceMetadataType(v **types.NewDeviceMe if !ok { return fmt.Errorf("expected DeviceKeyType to be of type string, got %T instead", value) } - sv.DeviceKey = &jtv + sv.DeviceKey = ptr.String(jtv) } default: @@ -17580,7 +17594,7 @@ func awsAwsjson11_deserializeDocumentNotAuthorizedException(v **types.NotAuthori if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17625,7 +17639,7 @@ func awsAwsjson11_deserializeDocumentNotifyConfigurationType(v **types.NotifyCon if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.From = &jtv + sv.From = ptr.String(jtv) } case "MfaEmail": @@ -17644,7 +17658,7 @@ func awsAwsjson11_deserializeDocumentNotifyConfigurationType(v **types.NotifyCon if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.ReplyTo = &jtv + sv.ReplyTo = ptr.String(jtv) } case "SourceArn": @@ -17653,7 +17667,7 @@ func awsAwsjson11_deserializeDocumentNotifyConfigurationType(v **types.NotifyCon if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } default: @@ -17693,7 +17707,7 @@ func awsAwsjson11_deserializeDocumentNotifyEmailType(v **types.NotifyEmailType, if !ok { return fmt.Errorf("expected EmailNotificationBodyType to be of type string, got %T instead", value) } - sv.HtmlBody = &jtv + sv.HtmlBody = ptr.String(jtv) } case "Subject": @@ -17702,7 +17716,7 @@ func awsAwsjson11_deserializeDocumentNotifyEmailType(v **types.NotifyEmailType, if !ok { return fmt.Errorf("expected EmailNotificationSubjectType to be of type string, got %T instead", value) } - sv.Subject = &jtv + sv.Subject = ptr.String(jtv) } case "TextBody": @@ -17711,7 +17725,7 @@ func awsAwsjson11_deserializeDocumentNotifyEmailType(v **types.NotifyEmailType, if !ok { return fmt.Errorf("expected EmailNotificationBodyType to be of type string, got %T instead", value) } - sv.TextBody = &jtv + sv.TextBody = ptr.String(jtv) } default: @@ -17751,7 +17765,7 @@ func awsAwsjson11_deserializeDocumentNumberAttributeConstraintsType(v **types.Nu if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.MaxValue = &jtv + sv.MaxValue = ptr.String(jtv) } case "MinValue": @@ -17760,7 +17774,7 @@ func awsAwsjson11_deserializeDocumentNumberAttributeConstraintsType(v **types.Nu if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.MinValue = &jtv + sv.MinValue = ptr.String(jtv) } default: @@ -17840,7 +17854,7 @@ func awsAwsjson11_deserializeDocumentPasswordPolicyType(v **types.PasswordPolicy if err != nil { return err } - sv.MinimumLength = ptr.Int32(int32(i64)) + sv.MinimumLength = int32(i64) } case "RequireLowercase": @@ -17849,7 +17863,7 @@ func awsAwsjson11_deserializeDocumentPasswordPolicyType(v **types.PasswordPolicy if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.RequireLowercase = &jtv + sv.RequireLowercase = jtv } case "RequireNumbers": @@ -17858,7 +17872,7 @@ func awsAwsjson11_deserializeDocumentPasswordPolicyType(v **types.PasswordPolicy if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.RequireNumbers = &jtv + sv.RequireNumbers = jtv } case "RequireSymbols": @@ -17867,7 +17881,7 @@ func awsAwsjson11_deserializeDocumentPasswordPolicyType(v **types.PasswordPolicy if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.RequireSymbols = &jtv + sv.RequireSymbols = jtv } case "RequireUppercase": @@ -17876,7 +17890,7 @@ func awsAwsjson11_deserializeDocumentPasswordPolicyType(v **types.PasswordPolicy if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.RequireUppercase = &jtv + sv.RequireUppercase = jtv } case "TemporaryPasswordValidityDays": @@ -17889,7 +17903,7 @@ func awsAwsjson11_deserializeDocumentPasswordPolicyType(v **types.PasswordPolicy if err != nil { return err } - sv.TemporaryPasswordValidityDays = ptr.Int32(int32(i64)) + sv.TemporaryPasswordValidityDays = int32(i64) } default: @@ -17929,7 +17943,7 @@ func awsAwsjson11_deserializeDocumentPasswordResetRequiredException(v **types.Pa if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17969,7 +17983,7 @@ func awsAwsjson11_deserializeDocumentPreconditionNotMetException(v **types.Preco if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18035,7 +18049,7 @@ func awsAwsjson11_deserializeDocumentProviderDescription(v **types.ProviderDescr if !ok { return fmt.Errorf("expected ProviderNameType to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "ProviderType": @@ -18056,7 +18070,7 @@ func awsAwsjson11_deserializeDocumentProviderDescription(v **types.ProviderDescr return nil } -func awsAwsjson11_deserializeDocumentProviderDetailsType(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentProviderDetailsType(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18069,21 +18083,21 @@ func awsAwsjson11_deserializeDocumentProviderDetailsType(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -18092,7 +18106,7 @@ func awsAwsjson11_deserializeDocumentProviderDetailsType(v *map[string]*string, return nil } -func awsAwsjson11_deserializeDocumentProvidersListType(v *[]*types.ProviderDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentProvidersListType(v *[]types.ProviderDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18105,18 +18119,20 @@ func awsAwsjson11_deserializeDocumentProvidersListType(v *[]*types.ProviderDescr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProviderDescription + var cv []types.ProviderDescription if *v == nil { - cv = []*types.ProviderDescription{} + cv = []types.ProviderDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ProviderDescription - if err := awsAwsjson11_deserializeDocumentProviderDescription(&col, value); err != nil { + var col types.ProviderDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProviderDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18124,7 +18140,7 @@ func awsAwsjson11_deserializeDocumentProvidersListType(v *[]*types.ProviderDescr return nil } -func awsAwsjson11_deserializeDocumentRecoveryMechanismsType(v *[]*types.RecoveryOptionType, value interface{}) error { +func awsAwsjson11_deserializeDocumentRecoveryMechanismsType(v *[]types.RecoveryOptionType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18137,18 +18153,20 @@ func awsAwsjson11_deserializeDocumentRecoveryMechanismsType(v *[]*types.Recovery return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecoveryOptionType + var cv []types.RecoveryOptionType if *v == nil { - cv = []*types.RecoveryOptionType{} + cv = []types.RecoveryOptionType{} } else { cv = *v } for _, value := range shape { - var col *types.RecoveryOptionType - if err := awsAwsjson11_deserializeDocumentRecoveryOptionType(&col, value); err != nil { + var col types.RecoveryOptionType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRecoveryOptionType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18197,7 +18215,7 @@ func awsAwsjson11_deserializeDocumentRecoveryOptionType(v **types.RecoveryOption if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } default: @@ -18237,7 +18255,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18249,7 +18267,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsAwsjson11_deserializeDocumentResourceServerScopeListType(v *[]*types.ResourceServerScopeType, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceServerScopeListType(v *[]types.ResourceServerScopeType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18262,18 +18280,20 @@ func awsAwsjson11_deserializeDocumentResourceServerScopeListType(v *[]*types.Res return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceServerScopeType + var cv []types.ResourceServerScopeType if *v == nil { - cv = []*types.ResourceServerScopeType{} + cv = []types.ResourceServerScopeType{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceServerScopeType - if err := awsAwsjson11_deserializeDocumentResourceServerScopeType(&col, value); err != nil { + var col types.ResourceServerScopeType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceServerScopeType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18309,7 +18329,7 @@ func awsAwsjson11_deserializeDocumentResourceServerScopeType(v **types.ResourceS if !ok { return fmt.Errorf("expected ResourceServerScopeDescriptionType to be of type string, got %T instead", value) } - sv.ScopeDescription = &jtv + sv.ScopeDescription = ptr.String(jtv) } case "ScopeName": @@ -18318,7 +18338,7 @@ func awsAwsjson11_deserializeDocumentResourceServerScopeType(v **types.ResourceS if !ok { return fmt.Errorf("expected ResourceServerScopeNameType to be of type string, got %T instead", value) } - sv.ScopeName = &jtv + sv.ScopeName = ptr.String(jtv) } default: @@ -18330,7 +18350,7 @@ func awsAwsjson11_deserializeDocumentResourceServerScopeType(v **types.ResourceS return nil } -func awsAwsjson11_deserializeDocumentResourceServersListType(v *[]*types.ResourceServerType, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceServersListType(v *[]types.ResourceServerType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18343,18 +18363,20 @@ func awsAwsjson11_deserializeDocumentResourceServersListType(v *[]*types.Resourc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceServerType + var cv []types.ResourceServerType if *v == nil { - cv = []*types.ResourceServerType{} + cv = []types.ResourceServerType{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceServerType - if err := awsAwsjson11_deserializeDocumentResourceServerType(&col, value); err != nil { + var col types.ResourceServerType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceServerType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18390,7 +18412,7 @@ func awsAwsjson11_deserializeDocumentResourceServerType(v **types.ResourceServer if !ok { return fmt.Errorf("expected ResourceServerIdentifierType to be of type string, got %T instead", value) } - sv.Identifier = &jtv + sv.Identifier = ptr.String(jtv) } case "Name": @@ -18399,7 +18421,7 @@ func awsAwsjson11_deserializeDocumentResourceServerType(v **types.ResourceServer if !ok { return fmt.Errorf("expected ResourceServerNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Scopes": @@ -18413,7 +18435,7 @@ func awsAwsjson11_deserializeDocumentResourceServerType(v **types.ResourceServer if !ok { return fmt.Errorf("expected UserPoolIdType to be of type string, got %T instead", value) } - sv.UserPoolId = &jtv + sv.UserPoolId = ptr.String(jtv) } default: @@ -18458,7 +18480,7 @@ func awsAwsjson11_deserializeDocumentRiskConfigurationType(v **types.RiskConfigu if !ok { return fmt.Errorf("expected ClientIdType to be of type string, got %T instead", value) } - sv.ClientId = &jtv + sv.ClientId = ptr.String(jtv) } case "CompromisedCredentialsRiskConfiguration": @@ -18490,7 +18512,7 @@ func awsAwsjson11_deserializeDocumentRiskConfigurationType(v **types.RiskConfigu if !ok { return fmt.Errorf("expected UserPoolIdType to be of type string, got %T instead", value) } - sv.UserPoolId = &jtv + sv.UserPoolId = ptr.String(jtv) } default: @@ -18543,7 +18565,7 @@ func awsAwsjson11_deserializeDocumentRiskExceptionConfigurationType(v **types.Ri return nil } -func awsAwsjson11_deserializeDocumentSchemaAttributesListType(v *[]*types.SchemaAttributeType, value interface{}) error { +func awsAwsjson11_deserializeDocumentSchemaAttributesListType(v *[]types.SchemaAttributeType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18556,18 +18578,20 @@ func awsAwsjson11_deserializeDocumentSchemaAttributesListType(v *[]*types.Schema return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SchemaAttributeType + var cv []types.SchemaAttributeType if *v == nil { - cv = []*types.SchemaAttributeType{} + cv = []types.SchemaAttributeType{} } else { cv = *v } for _, value := range shape { - var col *types.SchemaAttributeType - if err := awsAwsjson11_deserializeDocumentSchemaAttributeType(&col, value); err != nil { + var col types.SchemaAttributeType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSchemaAttributeType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18612,7 +18636,7 @@ func awsAwsjson11_deserializeDocumentSchemaAttributeType(v **types.SchemaAttribu if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.DeveloperOnlyAttribute = &jtv + sv.DeveloperOnlyAttribute = jtv } case "Mutable": @@ -18621,7 +18645,7 @@ func awsAwsjson11_deserializeDocumentSchemaAttributeType(v **types.SchemaAttribu if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Mutable = &jtv + sv.Mutable = jtv } case "Name": @@ -18630,7 +18654,7 @@ func awsAwsjson11_deserializeDocumentSchemaAttributeType(v **types.SchemaAttribu if !ok { return fmt.Errorf("expected CustomAttributeNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NumberAttributeConstraints": @@ -18644,7 +18668,7 @@ func awsAwsjson11_deserializeDocumentSchemaAttributeType(v **types.SchemaAttribu if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Required = &jtv + sv.Required = jtv } case "StringAttributeConstraints": @@ -18689,7 +18713,7 @@ func awsAwsjson11_deserializeDocumentScopeDoesNotExistException(v **types.ScopeD if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18701,7 +18725,7 @@ func awsAwsjson11_deserializeDocumentScopeDoesNotExistException(v **types.ScopeD return nil } -func awsAwsjson11_deserializeDocumentScopeListType(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentScopeListType(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18714,21 +18738,21 @@ func awsAwsjson11_deserializeDocumentScopeListType(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ScopeType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -18737,7 +18761,7 @@ func awsAwsjson11_deserializeDocumentScopeListType(v *[]*string, value interface return nil } -func awsAwsjson11_deserializeDocumentSkippedIPRangeListType(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSkippedIPRangeListType(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18750,21 +18774,21 @@ func awsAwsjson11_deserializeDocumentSkippedIPRangeListType(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -18801,7 +18825,7 @@ func awsAwsjson11_deserializeDocumentSmsConfigurationType(v **types.SmsConfigura if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.ExternalId = &jtv + sv.ExternalId = ptr.String(jtv) } case "SnsCallerArn": @@ -18810,7 +18834,7 @@ func awsAwsjson11_deserializeDocumentSmsConfigurationType(v **types.SmsConfigura if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.SnsCallerArn = &jtv + sv.SnsCallerArn = ptr.String(jtv) } default: @@ -18850,7 +18874,7 @@ func awsAwsjson11_deserializeDocumentSmsMfaConfigType(v **types.SmsMfaConfigType if !ok { return fmt.Errorf("expected SmsVerificationMessageType to be of type string, got %T instead", value) } - sv.SmsAuthenticationMessage = &jtv + sv.SmsAuthenticationMessage = ptr.String(jtv) } case "SmsConfiguration": @@ -18895,7 +18919,7 @@ func awsAwsjson11_deserializeDocumentSoftwareTokenMfaConfigType(v **types.Softwa if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } default: @@ -18935,7 +18959,7 @@ func awsAwsjson11_deserializeDocumentSoftwareTokenMFANotFoundException(v **types if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18975,7 +18999,7 @@ func awsAwsjson11_deserializeDocumentStringAttributeConstraintsType(v **types.St if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.MaxLength = &jtv + sv.MaxLength = ptr.String(jtv) } case "MinLength": @@ -18984,7 +19008,7 @@ func awsAwsjson11_deserializeDocumentStringAttributeConstraintsType(v **types.St if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.MinLength = &jtv + sv.MinLength = ptr.String(jtv) } default: @@ -18996,7 +19020,7 @@ func awsAwsjson11_deserializeDocumentStringAttributeConstraintsType(v **types.St return nil } -func awsAwsjson11_deserializeDocumentSupportedIdentityProvidersListType(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSupportedIdentityProvidersListType(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19009,21 +19033,21 @@ func awsAwsjson11_deserializeDocumentSupportedIdentityProvidersListType(v *[]*st return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ProviderNameType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -19118,7 +19142,7 @@ func awsAwsjson11_deserializeDocumentTooManyFailedAttemptsException(v **types.To if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19158,7 +19182,7 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19198,7 +19222,7 @@ func awsAwsjson11_deserializeDocumentUICustomizationType(v **types.UICustomizati if !ok { return fmt.Errorf("expected ClientIdType to be of type string, got %T instead", value) } - sv.ClientId = &jtv + sv.ClientId = ptr.String(jtv) } case "CreationDate": @@ -19220,7 +19244,7 @@ func awsAwsjson11_deserializeDocumentUICustomizationType(v **types.UICustomizati if !ok { return fmt.Errorf("expected CSSType to be of type string, got %T instead", value) } - sv.CSS = &jtv + sv.CSS = ptr.String(jtv) } case "CSSVersion": @@ -19229,7 +19253,7 @@ func awsAwsjson11_deserializeDocumentUICustomizationType(v **types.UICustomizati if !ok { return fmt.Errorf("expected CSSVersionType to be of type string, got %T instead", value) } - sv.CSSVersion = &jtv + sv.CSSVersion = ptr.String(jtv) } case "ImageUrl": @@ -19238,7 +19262,7 @@ func awsAwsjson11_deserializeDocumentUICustomizationType(v **types.UICustomizati if !ok { return fmt.Errorf("expected ImageUrlType to be of type string, got %T instead", value) } - sv.ImageUrl = &jtv + sv.ImageUrl = ptr.String(jtv) } case "LastModifiedDate": @@ -19260,7 +19284,7 @@ func awsAwsjson11_deserializeDocumentUICustomizationType(v **types.UICustomizati if !ok { return fmt.Errorf("expected UserPoolIdType to be of type string, got %T instead", value) } - sv.UserPoolId = &jtv + sv.UserPoolId = ptr.String(jtv) } default: @@ -19300,7 +19324,7 @@ func awsAwsjson11_deserializeDocumentUnexpectedLambdaException(v **types.Unexpec if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19340,7 +19364,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedIdentityProviderException(v **ty if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19380,7 +19404,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedUserStateException(v **types.Uns if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19420,7 +19444,7 @@ func awsAwsjson11_deserializeDocumentUserImportInProgressException(v **types.Use if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19432,7 +19456,7 @@ func awsAwsjson11_deserializeDocumentUserImportInProgressException(v **types.Use return nil } -func awsAwsjson11_deserializeDocumentUserImportJobsListType(v *[]*types.UserImportJobType, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserImportJobsListType(v *[]types.UserImportJobType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19445,18 +19469,20 @@ func awsAwsjson11_deserializeDocumentUserImportJobsListType(v *[]*types.UserImpo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserImportJobType + var cv []types.UserImportJobType if *v == nil { - cv = []*types.UserImportJobType{} + cv = []types.UserImportJobType{} } else { cv = *v } for _, value := range shape { - var col *types.UserImportJobType - if err := awsAwsjson11_deserializeDocumentUserImportJobType(&col, value); err != nil { + var col types.UserImportJobType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUserImportJobType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19492,7 +19518,7 @@ func awsAwsjson11_deserializeDocumentUserImportJobType(v **types.UserImportJobTy if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.CloudWatchLogsRoleArn = &jtv + sv.CloudWatchLogsRoleArn = ptr.String(jtv) } case "CompletionDate": @@ -19514,7 +19540,7 @@ func awsAwsjson11_deserializeDocumentUserImportJobType(v **types.UserImportJobTy if !ok { return fmt.Errorf("expected CompletionMessageType to be of type string, got %T instead", value) } - sv.CompletionMessage = &jtv + sv.CompletionMessage = ptr.String(jtv) } case "CreationDate": @@ -19540,7 +19566,7 @@ func awsAwsjson11_deserializeDocumentUserImportJobType(v **types.UserImportJobTy if err != nil { return err } - sv.FailedUsers = &i64 + sv.FailedUsers = i64 } case "ImportedUsers": @@ -19553,7 +19579,7 @@ func awsAwsjson11_deserializeDocumentUserImportJobType(v **types.UserImportJobTy if err != nil { return err } - sv.ImportedUsers = &i64 + sv.ImportedUsers = i64 } case "JobId": @@ -19562,7 +19588,7 @@ func awsAwsjson11_deserializeDocumentUserImportJobType(v **types.UserImportJobTy if !ok { return fmt.Errorf("expected UserImportJobIdType to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobName": @@ -19571,7 +19597,7 @@ func awsAwsjson11_deserializeDocumentUserImportJobType(v **types.UserImportJobTy if !ok { return fmt.Errorf("expected UserImportJobNameType to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "PreSignedUrl": @@ -19580,7 +19606,7 @@ func awsAwsjson11_deserializeDocumentUserImportJobType(v **types.UserImportJobTy if !ok { return fmt.Errorf("expected PreSignedUrlType to be of type string, got %T instead", value) } - sv.PreSignedUrl = &jtv + sv.PreSignedUrl = ptr.String(jtv) } case "SkippedUsers": @@ -19593,7 +19619,7 @@ func awsAwsjson11_deserializeDocumentUserImportJobType(v **types.UserImportJobTy if err != nil { return err } - sv.SkippedUsers = &i64 + sv.SkippedUsers = i64 } case "StartDate": @@ -19624,7 +19650,7 @@ func awsAwsjson11_deserializeDocumentUserImportJobType(v **types.UserImportJobTy if !ok { return fmt.Errorf("expected UserPoolIdType to be of type string, got %T instead", value) } - sv.UserPoolId = &jtv + sv.UserPoolId = ptr.String(jtv) } default: @@ -19664,7 +19690,7 @@ func awsAwsjson11_deserializeDocumentUserLambdaValidationException(v **types.Use if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19676,7 +19702,7 @@ func awsAwsjson11_deserializeDocumentUserLambdaValidationException(v **types.Use return nil } -func awsAwsjson11_deserializeDocumentUserMFASettingListType(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserMFASettingListType(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19689,21 +19715,21 @@ func awsAwsjson11_deserializeDocumentUserMFASettingListType(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -19776,7 +19802,7 @@ func awsAwsjson11_deserializeDocumentUsernameConfigurationType(v **types.Usernam if !ok { return fmt.Errorf("expected WrappedBooleanType to be of type *bool, got %T instead", value) } - sv.CaseSensitive = &jtv + sv.CaseSensitive = ptr.Bool(jtv) } default: @@ -19816,7 +19842,7 @@ func awsAwsjson11_deserializeDocumentUsernameExistsException(v **types.UsernameE if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19856,7 +19882,7 @@ func awsAwsjson11_deserializeDocumentUserNotConfirmedException(v **types.UserNot if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19896,7 +19922,7 @@ func awsAwsjson11_deserializeDocumentUserNotFoundException(v **types.UserNotFoun if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19936,7 +19962,7 @@ func awsAwsjson11_deserializeDocumentUserPoolAddOnNotEnabledException(v **types. if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20016,7 +20042,7 @@ func awsAwsjson11_deserializeDocumentUserPoolClientDescription(v **types.UserPoo if !ok { return fmt.Errorf("expected ClientIdType to be of type string, got %T instead", value) } - sv.ClientId = &jtv + sv.ClientId = ptr.String(jtv) } case "ClientName": @@ -20025,7 +20051,7 @@ func awsAwsjson11_deserializeDocumentUserPoolClientDescription(v **types.UserPoo if !ok { return fmt.Errorf("expected ClientNameType to be of type string, got %T instead", value) } - sv.ClientName = &jtv + sv.ClientName = ptr.String(jtv) } case "UserPoolId": @@ -20034,7 +20060,7 @@ func awsAwsjson11_deserializeDocumentUserPoolClientDescription(v **types.UserPoo if !ok { return fmt.Errorf("expected UserPoolIdType to be of type string, got %T instead", value) } - sv.UserPoolId = &jtv + sv.UserPoolId = ptr.String(jtv) } default: @@ -20046,7 +20072,7 @@ func awsAwsjson11_deserializeDocumentUserPoolClientDescription(v **types.UserPoo return nil } -func awsAwsjson11_deserializeDocumentUserPoolClientListType(v *[]*types.UserPoolClientDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserPoolClientListType(v *[]types.UserPoolClientDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20059,18 +20085,20 @@ func awsAwsjson11_deserializeDocumentUserPoolClientListType(v *[]*types.UserPool return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserPoolClientDescription + var cv []types.UserPoolClientDescription if *v == nil { - cv = []*types.UserPoolClientDescription{} + cv = []types.UserPoolClientDescription{} } else { cv = *v } for _, value := range shape { - var col *types.UserPoolClientDescription - if err := awsAwsjson11_deserializeDocumentUserPoolClientDescription(&col, value); err != nil { + var col types.UserPoolClientDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUserPoolClientDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20124,7 +20152,7 @@ func awsAwsjson11_deserializeDocumentUserPoolClientType(v **types.UserPoolClient if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.AllowedOAuthFlowsUserPoolClient = &jtv + sv.AllowedOAuthFlowsUserPoolClient = jtv } case "AllowedOAuthScopes": @@ -20148,7 +20176,7 @@ func awsAwsjson11_deserializeDocumentUserPoolClientType(v **types.UserPoolClient if !ok { return fmt.Errorf("expected ClientIdType to be of type string, got %T instead", value) } - sv.ClientId = &jtv + sv.ClientId = ptr.String(jtv) } case "ClientName": @@ -20157,7 +20185,7 @@ func awsAwsjson11_deserializeDocumentUserPoolClientType(v **types.UserPoolClient if !ok { return fmt.Errorf("expected ClientNameType to be of type string, got %T instead", value) } - sv.ClientName = &jtv + sv.ClientName = ptr.String(jtv) } case "ClientSecret": @@ -20166,7 +20194,7 @@ func awsAwsjson11_deserializeDocumentUserPoolClientType(v **types.UserPoolClient if !ok { return fmt.Errorf("expected ClientSecretType to be of type string, got %T instead", value) } - sv.ClientSecret = &jtv + sv.ClientSecret = ptr.String(jtv) } case "CreationDate": @@ -20188,7 +20216,7 @@ func awsAwsjson11_deserializeDocumentUserPoolClientType(v **types.UserPoolClient if !ok { return fmt.Errorf("expected RedirectUrlType to be of type string, got %T instead", value) } - sv.DefaultRedirectURI = &jtv + sv.DefaultRedirectURI = ptr.String(jtv) } case "ExplicitAuthFlows": @@ -20251,7 +20279,7 @@ func awsAwsjson11_deserializeDocumentUserPoolClientType(v **types.UserPoolClient if err != nil { return err } - sv.RefreshTokenValidity = ptr.Int32(int32(i64)) + sv.RefreshTokenValidity = int32(i64) } case "SupportedIdentityProviders": @@ -20270,7 +20298,7 @@ func awsAwsjson11_deserializeDocumentUserPoolClientType(v **types.UserPoolClient if !ok { return fmt.Errorf("expected UserPoolIdType to be of type string, got %T instead", value) } - sv.UserPoolId = &jtv + sv.UserPoolId = ptr.String(jtv) } case "WriteAttributes": @@ -20328,7 +20356,7 @@ func awsAwsjson11_deserializeDocumentUserPoolDescriptionType(v **types.UserPoolD if !ok { return fmt.Errorf("expected UserPoolIdType to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LambdaConfig": @@ -20355,7 +20383,7 @@ func awsAwsjson11_deserializeDocumentUserPoolDescriptionType(v **types.UserPoolD if !ok { return fmt.Errorf("expected UserPoolNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -20376,7 +20404,7 @@ func awsAwsjson11_deserializeDocumentUserPoolDescriptionType(v **types.UserPoolD return nil } -func awsAwsjson11_deserializeDocumentUserPoolListType(v *[]*types.UserPoolDescriptionType, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserPoolListType(v *[]types.UserPoolDescriptionType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20389,18 +20417,20 @@ func awsAwsjson11_deserializeDocumentUserPoolListType(v *[]*types.UserPoolDescri return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserPoolDescriptionType + var cv []types.UserPoolDescriptionType if *v == nil { - cv = []*types.UserPoolDescriptionType{} + cv = []types.UserPoolDescriptionType{} } else { cv = *v } for _, value := range shape { - var col *types.UserPoolDescriptionType - if err := awsAwsjson11_deserializeDocumentUserPoolDescriptionType(&col, value); err != nil { + var col types.UserPoolDescriptionType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUserPoolDescriptionType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20472,7 +20502,7 @@ func awsAwsjson11_deserializeDocumentUserPoolTaggingException(v **types.UserPool if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20484,7 +20514,7 @@ func awsAwsjson11_deserializeDocumentUserPoolTaggingException(v **types.UserPool return nil } -func awsAwsjson11_deserializeDocumentUserPoolTagsType(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserPoolTagsType(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20497,21 +20527,21 @@ func awsAwsjson11_deserializeDocumentUserPoolTagsType(v *map[string]*string, val return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TagValueType to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -20563,7 +20593,7 @@ func awsAwsjson11_deserializeDocumentUserPoolType(v **types.UserPoolType, value if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AutoVerifiedAttributes": @@ -20590,7 +20620,7 @@ func awsAwsjson11_deserializeDocumentUserPoolType(v **types.UserPoolType, value if !ok { return fmt.Errorf("expected DomainType to be of type string, got %T instead", value) } - sv.CustomDomain = &jtv + sv.CustomDomain = ptr.String(jtv) } case "DeviceConfiguration": @@ -20604,7 +20634,7 @@ func awsAwsjson11_deserializeDocumentUserPoolType(v **types.UserPoolType, value if !ok { return fmt.Errorf("expected DomainType to be of type string, got %T instead", value) } - sv.Domain = &jtv + sv.Domain = ptr.String(jtv) } case "EmailConfiguration": @@ -20618,7 +20648,7 @@ func awsAwsjson11_deserializeDocumentUserPoolType(v **types.UserPoolType, value if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.EmailConfigurationFailure = &jtv + sv.EmailConfigurationFailure = ptr.String(jtv) } case "EmailVerificationMessage": @@ -20627,7 +20657,7 @@ func awsAwsjson11_deserializeDocumentUserPoolType(v **types.UserPoolType, value if !ok { return fmt.Errorf("expected EmailVerificationMessageType to be of type string, got %T instead", value) } - sv.EmailVerificationMessage = &jtv + sv.EmailVerificationMessage = ptr.String(jtv) } case "EmailVerificationSubject": @@ -20636,7 +20666,7 @@ func awsAwsjson11_deserializeDocumentUserPoolType(v **types.UserPoolType, value if !ok { return fmt.Errorf("expected EmailVerificationSubjectType to be of type string, got %T instead", value) } - sv.EmailVerificationSubject = &jtv + sv.EmailVerificationSubject = ptr.String(jtv) } case "EstimatedNumberOfUsers": @@ -20649,7 +20679,7 @@ func awsAwsjson11_deserializeDocumentUserPoolType(v **types.UserPoolType, value if err != nil { return err } - sv.EstimatedNumberOfUsers = ptr.Int32(int32(i64)) + sv.EstimatedNumberOfUsers = int32(i64) } case "Id": @@ -20658,7 +20688,7 @@ func awsAwsjson11_deserializeDocumentUserPoolType(v **types.UserPoolType, value if !ok { return fmt.Errorf("expected UserPoolIdType to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LambdaConfig": @@ -20694,7 +20724,7 @@ func awsAwsjson11_deserializeDocumentUserPoolType(v **types.UserPoolType, value if !ok { return fmt.Errorf("expected UserPoolNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Policies": @@ -20713,7 +20743,7 @@ func awsAwsjson11_deserializeDocumentUserPoolType(v **types.UserPoolType, value if !ok { return fmt.Errorf("expected SmsVerificationMessageType to be of type string, got %T instead", value) } - sv.SmsAuthenticationMessage = &jtv + sv.SmsAuthenticationMessage = ptr.String(jtv) } case "SmsConfiguration": @@ -20727,7 +20757,7 @@ func awsAwsjson11_deserializeDocumentUserPoolType(v **types.UserPoolType, value if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.SmsConfigurationFailure = &jtv + sv.SmsConfigurationFailure = ptr.String(jtv) } case "SmsVerificationMessage": @@ -20736,7 +20766,7 @@ func awsAwsjson11_deserializeDocumentUserPoolType(v **types.UserPoolType, value if !ok { return fmt.Errorf("expected SmsVerificationMessageType to be of type string, got %T instead", value) } - sv.SmsVerificationMessage = &jtv + sv.SmsVerificationMessage = ptr.String(jtv) } case "Status": @@ -20782,7 +20812,7 @@ func awsAwsjson11_deserializeDocumentUserPoolType(v **types.UserPoolType, value return nil } -func awsAwsjson11_deserializeDocumentUsersListType(v *[]*types.UserType, value interface{}) error { +func awsAwsjson11_deserializeDocumentUsersListType(v *[]types.UserType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20795,18 +20825,20 @@ func awsAwsjson11_deserializeDocumentUsersListType(v *[]*types.UserType, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserType + var cv []types.UserType if *v == nil { - cv = []*types.UserType{} + cv = []types.UserType{} } else { cv = *v } for _, value := range shape { - var col *types.UserType - if err := awsAwsjson11_deserializeDocumentUserType(&col, value); err != nil { + var col types.UserType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUserType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20847,7 +20879,7 @@ func awsAwsjson11_deserializeDocumentUserType(v **types.UserType, value interfac if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "MFAOptions": @@ -20887,7 +20919,7 @@ func awsAwsjson11_deserializeDocumentUserType(v **types.UserType, value interfac if !ok { return fmt.Errorf("expected UsernameType to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } case "UserStatus": @@ -20945,7 +20977,7 @@ func awsAwsjson11_deserializeDocumentVerificationMessageTemplateType(v **types.V if !ok { return fmt.Errorf("expected EmailVerificationMessageType to be of type string, got %T instead", value) } - sv.EmailMessage = &jtv + sv.EmailMessage = ptr.String(jtv) } case "EmailMessageByLink": @@ -20954,7 +20986,7 @@ func awsAwsjson11_deserializeDocumentVerificationMessageTemplateType(v **types.V if !ok { return fmt.Errorf("expected EmailVerificationMessageByLinkType to be of type string, got %T instead", value) } - sv.EmailMessageByLink = &jtv + sv.EmailMessageByLink = ptr.String(jtv) } case "EmailSubject": @@ -20963,7 +20995,7 @@ func awsAwsjson11_deserializeDocumentVerificationMessageTemplateType(v **types.V if !ok { return fmt.Errorf("expected EmailVerificationSubjectType to be of type string, got %T instead", value) } - sv.EmailSubject = &jtv + sv.EmailSubject = ptr.String(jtv) } case "EmailSubjectByLink": @@ -20972,7 +21004,7 @@ func awsAwsjson11_deserializeDocumentVerificationMessageTemplateType(v **types.V if !ok { return fmt.Errorf("expected EmailVerificationSubjectByLinkType to be of type string, got %T instead", value) } - sv.EmailSubjectByLink = &jtv + sv.EmailSubjectByLink = ptr.String(jtv) } case "SmsMessage": @@ -20981,7 +21013,7 @@ func awsAwsjson11_deserializeDocumentVerificationMessageTemplateType(v **types.V if !ok { return fmt.Errorf("expected SmsVerificationMessageType to be of type string, got %T instead", value) } - sv.SmsMessage = &jtv + sv.SmsMessage = ptr.String(jtv) } default: @@ -21408,7 +21440,7 @@ func awsAwsjson11_deserializeOpDocumentAdminGetUserOutput(v **AdminGetUserOutput if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "MFAOptions": @@ -21422,7 +21454,7 @@ func awsAwsjson11_deserializeOpDocumentAdminGetUserOutput(v **AdminGetUserOutput if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.PreferredMfaSetting = &jtv + sv.PreferredMfaSetting = ptr.String(jtv) } case "UserAttributes": @@ -21467,7 +21499,7 @@ func awsAwsjson11_deserializeOpDocumentAdminGetUserOutput(v **AdminGetUserOutput if !ok { return fmt.Errorf("expected UsernameType to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } case "UserStatus": @@ -21535,7 +21567,7 @@ func awsAwsjson11_deserializeOpDocumentAdminInitiateAuthOutput(v **AdminInitiate if !ok { return fmt.Errorf("expected SessionType to be of type string, got %T instead", value) } - sv.Session = &jtv + sv.Session = ptr.String(jtv) } default: @@ -21611,7 +21643,7 @@ func awsAwsjson11_deserializeOpDocumentAdminListDevicesOutput(v **AdminListDevic if !ok { return fmt.Errorf("expected SearchPaginationTokenType to be of type string, got %T instead", value) } - sv.PaginationToken = &jtv + sv.PaginationToken = ptr.String(jtv) } default: @@ -21656,7 +21688,7 @@ func awsAwsjson11_deserializeOpDocumentAdminListGroupsForUserOutput(v **AdminLis if !ok { return fmt.Errorf("expected PaginationKey to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -21701,7 +21733,7 @@ func awsAwsjson11_deserializeOpDocumentAdminListUserAuthEventsOutput(v **AdminLi if !ok { return fmt.Errorf("expected PaginationKey to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -21822,7 +21854,7 @@ func awsAwsjson11_deserializeOpDocumentAdminRespondToAuthChallengeOutput(v **Adm if !ok { return fmt.Errorf("expected SessionType to be of type string, got %T instead", value) } - sv.Session = &jtv + sv.Session = ptr.String(jtv) } default: @@ -22079,7 +22111,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateSoftwareTokenOutput(v **Associat if !ok { return fmt.Errorf("expected SecretCodeType to be of type string, got %T instead", value) } - sv.SecretCode = &jtv + sv.SecretCode = ptr.String(jtv) } case "Session": @@ -22088,7 +22120,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateSoftwareTokenOutput(v **Associat if !ok { return fmt.Errorf("expected SessionType to be of type string, got %T instead", value) } - sv.Session = &jtv + sv.Session = ptr.String(jtv) } default: @@ -22159,7 +22191,7 @@ func awsAwsjson11_deserializeOpDocumentConfirmDeviceOutput(v **ConfirmDeviceOutp if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.UserConfirmationNecessary = &jtv + sv.UserConfirmationNecessary = jtv } default: @@ -22441,7 +22473,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUserPoolDomainOutput(v **CreateUser if !ok { return fmt.Errorf("expected DomainType to be of type string, got %T instead", value) } - sv.CloudFrontDomain = &jtv + sv.CloudFrontDomain = ptr.String(jtv) } default: @@ -23089,7 +23121,7 @@ func awsAwsjson11_deserializeOpDocumentGetCSVHeaderOutput(v **GetCSVHeaderOutput if !ok { return fmt.Errorf("expected UserPoolIdType to be of type string, got %T instead", value) } - sv.UserPoolId = &jtv + sv.UserPoolId = ptr.String(jtv) } default: @@ -23237,7 +23269,7 @@ func awsAwsjson11_deserializeOpDocumentGetSigningCertificateOutput(v **GetSignin if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.Certificate = &jtv + sv.Certificate = ptr.String(jtv) } default: @@ -23354,7 +23386,7 @@ func awsAwsjson11_deserializeOpDocumentGetUserOutput(v **GetUserOutput, value in if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.PreferredMfaSetting = &jtv + sv.PreferredMfaSetting = ptr.String(jtv) } case "UserAttributes": @@ -23373,7 +23405,7 @@ func awsAwsjson11_deserializeOpDocumentGetUserOutput(v **GetUserOutput, value in if !ok { return fmt.Errorf("expected UsernameType to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -23513,7 +23545,7 @@ func awsAwsjson11_deserializeOpDocumentInitiateAuthOutput(v **InitiateAuthOutput if !ok { return fmt.Errorf("expected SessionType to be of type string, got %T instead", value) } - sv.Session = &jtv + sv.Session = ptr.String(jtv) } default: @@ -23558,7 +23590,7 @@ func awsAwsjson11_deserializeOpDocumentListDevicesOutput(v **ListDevicesOutput, if !ok { return fmt.Errorf("expected SearchPaginationTokenType to be of type string, got %T instead", value) } - sv.PaginationToken = &jtv + sv.PaginationToken = ptr.String(jtv) } default: @@ -23603,7 +23635,7 @@ func awsAwsjson11_deserializeOpDocumentListGroupsOutput(v **ListGroupsOutput, va if !ok { return fmt.Errorf("expected PaginationKey to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -23643,7 +23675,7 @@ func awsAwsjson11_deserializeOpDocumentListIdentityProvidersOutput(v **ListIdent if !ok { return fmt.Errorf("expected PaginationKeyType to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Providers": @@ -23688,7 +23720,7 @@ func awsAwsjson11_deserializeOpDocumentListResourceServersOutput(v **ListResourc if !ok { return fmt.Errorf("expected PaginationKeyType to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResourceServers": @@ -23769,7 +23801,7 @@ func awsAwsjson11_deserializeOpDocumentListUserImportJobsOutput(v **ListUserImpo if !ok { return fmt.Errorf("expected PaginationKeyType to be of type string, got %T instead", value) } - sv.PaginationToken = &jtv + sv.PaginationToken = ptr.String(jtv) } case "UserImportJobs": @@ -23814,7 +23846,7 @@ func awsAwsjson11_deserializeOpDocumentListUserPoolClientsOutput(v **ListUserPoo if !ok { return fmt.Errorf("expected PaginationKey to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "UserPoolClients": @@ -23859,7 +23891,7 @@ func awsAwsjson11_deserializeOpDocumentListUserPoolsOutput(v **ListUserPoolsOutp if !ok { return fmt.Errorf("expected PaginationKeyType to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "UserPools": @@ -23904,7 +23936,7 @@ func awsAwsjson11_deserializeOpDocumentListUsersInGroupOutput(v **ListUsersInGro if !ok { return fmt.Errorf("expected PaginationKey to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Users": @@ -23949,7 +23981,7 @@ func awsAwsjson11_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu if !ok { return fmt.Errorf("expected SearchPaginationTokenType to be of type string, got %T instead", value) } - sv.PaginationToken = &jtv + sv.PaginationToken = ptr.String(jtv) } case "Users": @@ -24049,7 +24081,7 @@ func awsAwsjson11_deserializeOpDocumentRespondToAuthChallengeOutput(v **RespondT if !ok { return fmt.Errorf("expected SessionType to be of type string, got %T instead", value) } - sv.Session = &jtv + sv.Session = ptr.String(jtv) } default: @@ -24278,7 +24310,7 @@ func awsAwsjson11_deserializeOpDocumentSignUpOutput(v **SignUpOutput, value inte if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.UserConfirmed = &jtv + sv.UserConfirmed = jtv } case "UserSub": @@ -24287,7 +24319,7 @@ func awsAwsjson11_deserializeOpDocumentSignUpOutput(v **SignUpOutput, value inte if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.UserSub = &jtv + sv.UserSub = ptr.String(jtv) } default: @@ -24703,7 +24735,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateUserPoolDomainOutput(v **UpdateUser if !ok { return fmt.Errorf("expected DomainType to be of type string, got %T instead", value) } - sv.CloudFrontDomain = &jtv + sv.CloudFrontDomain = ptr.String(jtv) } default: @@ -24774,7 +24806,7 @@ func awsAwsjson11_deserializeOpDocumentVerifySoftwareTokenOutput(v **VerifySoftw if !ok { return fmt.Errorf("expected SessionType to be of type string, got %T instead", value) } - sv.Session = &jtv + sv.Session = ptr.String(jtv) } case "Status": diff --git a/service/cognitoidentityprovider/go.mod b/service/cognitoidentityprovider/go.mod index 8bf3329459d..ed568e924c3 100644 --- a/service/cognitoidentityprovider/go.mod +++ b/service/cognitoidentityprovider/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cognitoidentityprovider/serializers.go b/service/cognitoidentityprovider/serializers.go index 6ed59cf56e6..82a9cd4b622 100644 --- a/service/cognitoidentityprovider/serializers.go +++ b/service/cognitoidentityprovider/serializers.go @@ -4664,9 +4664,9 @@ func awsAwsjson11_serializeDocumentAccountTakeoverActionType(v *types.AccountTak ok.String(string(v.EventAction)) } - if v.Notify != nil { + if v.Notify { ok := object.Key("Notify") - ok.Boolean(*v.Notify) + ok.Boolean(v.Notify) } return nil @@ -4697,9 +4697,9 @@ func awsAwsjson11_serializeDocumentAdminCreateUserConfigType(v *types.AdminCreat object := value.Object() defer object.Close() - if v.AllowAdminCreateUserOnly != nil { + if v.AllowAdminCreateUserOnly { ok := object.Key("AllowAdminCreateUserOnly") - ok.Boolean(*v.AllowAdminCreateUserOnly) + ok.Boolean(v.AllowAdminCreateUserOnly) } if v.InviteMessageTemplate != nil { @@ -4709,9 +4709,9 @@ func awsAwsjson11_serializeDocumentAdminCreateUserConfigType(v *types.AdminCreat } } - if v.UnusedAccountValidityDays != nil { + if v.UnusedAccountValidityDays != 0 { ok := object.Key("UnusedAccountValidityDays") - ok.Integer(*v.UnusedAccountValidityDays) + ok.Integer(v.UnusedAccountValidityDays) } return nil @@ -4752,9 +4752,9 @@ func awsAwsjson11_serializeDocumentAnalyticsConfigurationType(v *types.Analytics ok.String(*v.RoleArn) } - if v.UserDataShared != nil { + if v.UserDataShared { ok := object.Key("UserDataShared") - ok.Boolean(*v.UserDataShared) + ok.Boolean(v.UserDataShared) } return nil @@ -4772,49 +4772,37 @@ func awsAwsjson11_serializeDocumentAnalyticsMetadataType(v *types.AnalyticsMetad return nil } -func awsAwsjson11_serializeDocumentAttributeListType(v []*types.AttributeType, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttributeListType(v []types.AttributeType, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAttributeType(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAttributeType(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentAttributeMappingType(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttributeMappingType(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentAttributeNameListType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttributeNameListType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4836,92 +4824,68 @@ func awsAwsjson11_serializeDocumentAttributeType(v *types.AttributeType, value s return nil } -func awsAwsjson11_serializeDocumentAuthParametersType(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAuthParametersType(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentBlockedIPRangeListType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBlockedIPRangeListType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentCallbackURLsListType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCallbackURLsListType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentChallengeResponsesType(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentChallengeResponsesType(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentClientMetadataType(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentClientMetadataType(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentClientPermissionListType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentClientPermissionListType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4993,17 +4957,13 @@ func awsAwsjson11_serializeDocumentContextDataType(v *types.ContextDataType, val return nil } -func awsAwsjson11_serializeDocumentCustomAttributesListType(v []*types.SchemaAttributeType, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCustomAttributesListType(v []types.SchemaAttributeType, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSchemaAttributeType(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSchemaAttributeType(&v[i], av); err != nil { return err } } @@ -5037,14 +4997,14 @@ func awsAwsjson11_serializeDocumentDeviceConfigurationType(v *types.DeviceConfig object := value.Object() defer object.Close() - if v.ChallengeRequiredOnNewDevice != nil { + if v.ChallengeRequiredOnNewDevice { ok := object.Key("ChallengeRequiredOnNewDevice") - ok.Boolean(*v.ChallengeRequiredOnNewDevice) + ok.Boolean(v.ChallengeRequiredOnNewDevice) } - if v.DeviceOnlyRememberedOnUserPrompt != nil { + if v.DeviceOnlyRememberedOnUserPrompt { ok := object.Key("DeviceOnlyRememberedOnUserPrompt") - ok.Boolean(*v.DeviceOnlyRememberedOnUserPrompt) + ok.Boolean(v.DeviceOnlyRememberedOnUserPrompt) } return nil @@ -5138,34 +5098,26 @@ func awsAwsjson11_serializeDocumentHttpHeader(v *types.HttpHeader, value smithyj return nil } -func awsAwsjson11_serializeDocumentHttpHeaderList(v []*types.HttpHeader, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHttpHeaderList(v []types.HttpHeader, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentHttpHeader(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentHttpHeader(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentIdpIdentifiersListType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIdpIdentifiersListType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5227,17 +5179,13 @@ func awsAwsjson11_serializeDocumentLambdaConfigType(v *types.LambdaConfigType, v return nil } -func awsAwsjson11_serializeDocumentLogoutURLsListType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLogoutURLsListType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5264,17 +5212,13 @@ func awsAwsjson11_serializeDocumentMessageTemplateType(v *types.MessageTemplateT return nil } -func awsAwsjson11_serializeDocumentMFAOptionListType(v []*types.MFAOptionType, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMFAOptionListType(v []types.MFAOptionType, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMFAOptionType(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMFAOptionType(&v[i], av); err != nil { return err } } @@ -5395,50 +5339,46 @@ func awsAwsjson11_serializeDocumentPasswordPolicyType(v *types.PasswordPolicyTyp object := value.Object() defer object.Close() - if v.MinimumLength != nil { + if v.MinimumLength != 0 { ok := object.Key("MinimumLength") - ok.Integer(*v.MinimumLength) + ok.Integer(v.MinimumLength) } - if v.RequireLowercase != nil { + if v.RequireLowercase { ok := object.Key("RequireLowercase") - ok.Boolean(*v.RequireLowercase) + ok.Boolean(v.RequireLowercase) } - if v.RequireNumbers != nil { + if v.RequireNumbers { ok := object.Key("RequireNumbers") - ok.Boolean(*v.RequireNumbers) + ok.Boolean(v.RequireNumbers) } - if v.RequireSymbols != nil { + if v.RequireSymbols { ok := object.Key("RequireSymbols") - ok.Boolean(*v.RequireSymbols) + ok.Boolean(v.RequireSymbols) } - if v.RequireUppercase != nil { + if v.RequireUppercase { ok := object.Key("RequireUppercase") - ok.Boolean(*v.RequireUppercase) + ok.Boolean(v.RequireUppercase) } - if v.TemporaryPasswordValidityDays != nil { + if v.TemporaryPasswordValidityDays != 0 { ok := object.Key("TemporaryPasswordValidityDays") - ok.Integer(*v.TemporaryPasswordValidityDays) + ok.Integer(v.TemporaryPasswordValidityDays) } return nil } -func awsAwsjson11_serializeDocumentProviderDetailsType(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProviderDetailsType(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -5465,17 +5405,13 @@ func awsAwsjson11_serializeDocumentProviderUserIdentifierType(v *types.ProviderU return nil } -func awsAwsjson11_serializeDocumentRecoveryMechanismsType(v []*types.RecoveryOptionType, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRecoveryMechanismsType(v []types.RecoveryOptionType, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRecoveryOptionType(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRecoveryOptionType(&v[i], av); err != nil { return err } } @@ -5491,25 +5427,21 @@ func awsAwsjson11_serializeDocumentRecoveryOptionType(v *types.RecoveryOptionTyp ok.String(string(v.Name)) } - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("Priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } return nil } -func awsAwsjson11_serializeDocumentResourceServerScopeListType(v []*types.ResourceServerScopeType, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceServerScopeListType(v []types.ResourceServerScopeType, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentResourceServerScopeType(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentResourceServerScopeType(&v[i], av); err != nil { return err } } @@ -5554,17 +5486,13 @@ func awsAwsjson11_serializeDocumentRiskExceptionConfigurationType(v *types.RiskE return nil } -func awsAwsjson11_serializeDocumentSchemaAttributesListType(v []*types.SchemaAttributeType, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSchemaAttributesListType(v []types.SchemaAttributeType, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSchemaAttributeType(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSchemaAttributeType(&v[i], av); err != nil { return err } } @@ -5580,14 +5508,14 @@ func awsAwsjson11_serializeDocumentSchemaAttributeType(v *types.SchemaAttributeT ok.String(string(v.AttributeDataType)) } - if v.DeveloperOnlyAttribute != nil { + if v.DeveloperOnlyAttribute { ok := object.Key("DeveloperOnlyAttribute") - ok.Boolean(*v.DeveloperOnlyAttribute) + ok.Boolean(v.DeveloperOnlyAttribute) } - if v.Mutable != nil { + if v.Mutable { ok := object.Key("Mutable") - ok.Boolean(*v.Mutable) + ok.Boolean(v.Mutable) } if v.Name != nil { @@ -5602,9 +5530,9 @@ func awsAwsjson11_serializeDocumentSchemaAttributeType(v *types.SchemaAttributeT } } - if v.Required != nil { + if v.Required { ok := object.Key("Required") - ok.Boolean(*v.Required) + ok.Boolean(v.Required) } if v.StringAttributeConstraints != nil { @@ -5617,47 +5545,35 @@ func awsAwsjson11_serializeDocumentSchemaAttributeType(v *types.SchemaAttributeT return nil } -func awsAwsjson11_serializeDocumentScopeListType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentScopeListType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentSearchedAttributeNamesListType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSearchedAttributeNamesListType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentSkippedIPRangeListType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSkippedIPRangeListType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5702,14 +5618,14 @@ func awsAwsjson11_serializeDocumentSMSMfaSettingsType(v *types.SMSMfaSettingsTyp object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } - if v.PreferredMfa != nil { + if v.PreferredMfa { ok := object.Key("PreferredMfa") - ok.Boolean(*v.PreferredMfa) + ok.Boolean(v.PreferredMfa) } return nil @@ -5719,9 +5635,9 @@ func awsAwsjson11_serializeDocumentSoftwareTokenMfaConfigType(v *types.SoftwareT object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } return nil @@ -5731,14 +5647,14 @@ func awsAwsjson11_serializeDocumentSoftwareTokenMfaSettingsType(v *types.Softwar object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } - if v.PreferredMfa != nil { + if v.PreferredMfa { ok := object.Key("PreferredMfa") - ok.Boolean(*v.PreferredMfa) + ok.Boolean(v.PreferredMfa) } return nil @@ -5761,17 +5677,13 @@ func awsAwsjson11_serializeDocumentStringAttributeConstraintsType(v *types.Strin return nil } -func awsAwsjson11_serializeDocumentSupportedIdentityProvidersListType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSupportedIdentityProvidersListType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5859,32 +5771,24 @@ func awsAwsjson11_serializeDocumentUserPoolPolicyType(v *types.UserPoolPolicyTyp return nil } -func awsAwsjson11_serializeDocumentUserPoolTagsListType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentUserPoolTagsListType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentUserPoolTagsType(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentUserPoolTagsType(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -6020,9 +5924,9 @@ func awsAwsjson11_serializeOpDocumentAdminCreateUserInput(v *AdminCreateUserInpu } } - if v.ForceAliasCreation != nil { + if v.ForceAliasCreation { ok := object.Key("ForceAliasCreation") - ok.Boolean(*v.ForceAliasCreation) + ok.Boolean(v.ForceAliasCreation) } if len(v.MessageAction) > 0 { @@ -6515,9 +6419,9 @@ func awsAwsjson11_serializeOpDocumentAdminSetUserPasswordInput(v *AdminSetUserPa ok.String(*v.Password) } - if v.Permanent != nil { + if v.Permanent { ok := object.Key("Permanent") - ok.Boolean(*v.Permanent) + ok.Boolean(v.Permanent) } if v.Username != nil { @@ -6808,9 +6712,9 @@ func awsAwsjson11_serializeOpDocumentConfirmSignUpInput(v *ConfirmSignUpInput, v ok.String(*v.ConfirmationCode) } - if v.ForceAliasCreation != nil { + if v.ForceAliasCreation { ok := object.Key("ForceAliasCreation") - ok.Boolean(*v.ForceAliasCreation) + ok.Boolean(v.ForceAliasCreation) } if v.SecretHash != nil { @@ -6975,9 +6879,9 @@ func awsAwsjson11_serializeOpDocumentCreateUserPoolClientInput(v *CreateUserPool } } - if v.AllowedOAuthFlowsUserPoolClient != nil { + if v.AllowedOAuthFlowsUserPoolClient { ok := object.Key("AllowedOAuthFlowsUserPoolClient") - ok.Boolean(*v.AllowedOAuthFlowsUserPoolClient) + ok.Boolean(v.AllowedOAuthFlowsUserPoolClient) } if v.AllowedOAuthScopes != nil { @@ -7018,9 +6922,9 @@ func awsAwsjson11_serializeOpDocumentCreateUserPoolClientInput(v *CreateUserPool } } - if v.GenerateSecret != nil { + if v.GenerateSecret { ok := object.Key("GenerateSecret") - ok.Boolean(*v.GenerateSecret) + ok.Boolean(v.GenerateSecret) } if v.IdTokenValidity != nil { @@ -7047,9 +6951,9 @@ func awsAwsjson11_serializeOpDocumentCreateUserPoolClientInput(v *CreateUserPool } } - if v.RefreshTokenValidity != nil { + if v.RefreshTokenValidity != 0 { ok := object.Key("RefreshTokenValidity") - ok.Integer(*v.RefreshTokenValidity) + ok.Integer(v.RefreshTokenValidity) } if v.SupportedIdentityProviders != nil { @@ -7811,9 +7715,9 @@ func awsAwsjson11_serializeOpDocumentListResourceServersInput(v *ListResourceSer object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -7845,9 +7749,9 @@ func awsAwsjson11_serializeOpDocumentListUserImportJobsInput(v *ListUserImportJo object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.PaginationToken != nil { @@ -7867,9 +7771,9 @@ func awsAwsjson11_serializeOpDocumentListUserPoolClientsInput(v *ListUserPoolCli object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -7889,9 +7793,9 @@ func awsAwsjson11_serializeOpDocumentListUserPoolsInput(v *ListUserPoolsInput, v object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -8526,9 +8430,9 @@ func awsAwsjson11_serializeOpDocumentUpdateUserPoolClientInput(v *UpdateUserPool } } - if v.AllowedOAuthFlowsUserPoolClient != nil { + if v.AllowedOAuthFlowsUserPoolClient { ok := object.Key("AllowedOAuthFlowsUserPoolClient") - ok.Boolean(*v.AllowedOAuthFlowsUserPoolClient) + ok.Boolean(v.AllowedOAuthFlowsUserPoolClient) } if v.AllowedOAuthScopes != nil { @@ -8598,9 +8502,9 @@ func awsAwsjson11_serializeOpDocumentUpdateUserPoolClientInput(v *UpdateUserPool } } - if v.RefreshTokenValidity != nil { + if v.RefreshTokenValidity != 0 { ok := object.Key("RefreshTokenValidity") - ok.Integer(*v.RefreshTokenValidity) + ok.Integer(v.RefreshTokenValidity) } if v.SupportedIdentityProviders != nil { diff --git a/service/cognitoidentityprovider/types/types.go b/service/cognitoidentityprovider/types/types.go index 5fc3db40b7a..4f0648d4472 100644 --- a/service/cognitoidentityprovider/types/types.go +++ b/service/cognitoidentityprovider/types/types.go @@ -10,7 +10,7 @@ import ( type AccountRecoverySettingType struct { // The list of RecoveryOptionTypes. - RecoveryMechanisms []*RecoveryOptionType + RecoveryMechanisms []RecoveryOptionType } // Account takeover actions type. @@ -48,7 +48,7 @@ type AccountTakeoverActionType struct { // Flag specifying whether to send a notification. // // This member is required. - Notify *bool + Notify bool } // Configuration for mitigation actions and notification for different levels of @@ -69,7 +69,7 @@ type AdminCreateUserConfigType struct { // Set to True if only the administrator is allowed to create user profiles. Set to // False if users can sign themselves up via an app. - AllowAdminCreateUserOnly *bool + AllowAdminCreateUserOnly bool // The message template to be used for the welcome message to new users. See also // Customizing User Invitation Messages @@ -82,7 +82,7 @@ type AdminCreateUserConfigType struct { // default value for this parameter is 7. If you set a value for // TemporaryPasswordValidityDays in PasswordPolicy, that value will be used and // UnusedAccountValidityDays will be deprecated for that user pool. - UnusedAccountValidityDays *int32 + UnusedAccountValidityDays int32 } // The Amazon Pinpoint analytics configuration for collecting metrics for a user @@ -110,7 +110,7 @@ type AnalyticsConfigurationType struct { // If UserDataShared is true, Amazon Cognito will include user data in the events // it publishes to Amazon Pinpoint analytics. - UserDataShared *bool + UserDataShared bool } // An Amazon Pinpoint analytics endpoint. An endpoint uniquely identifies a mobile @@ -143,7 +143,7 @@ type AuthenticationResultType struct { AccessToken *string // The expiration period of the authentication result in seconds. - ExpiresIn *int32 + ExpiresIn int32 // The ID token. IdToken *string @@ -162,7 +162,7 @@ type AuthenticationResultType struct { type AuthEventType struct { // The challenge responses. - ChallengeResponses []*ChallengeResponseType + ChallengeResponses []ChallengeResponseType // The creation date CreationDate *time.Time @@ -241,7 +241,7 @@ type ContextDataType struct { // HttpHeaders received on your server in same order. // // This member is required. - HttpHeaders []*HttpHeader + HttpHeaders []HttpHeader // Source IP address of your user. // @@ -279,10 +279,10 @@ type DeviceConfigurationType struct { // Indicates whether a challenge is required on a new device. Only applicable to a // new device. - ChallengeRequiredOnNewDevice *bool + ChallengeRequiredOnNewDevice bool // If true, a device is only remembered on user prompt. - DeviceOnlyRememberedOnUserPrompt *bool + DeviceOnlyRememberedOnUserPrompt bool } // The device verifier against which it will be authenticated. @@ -299,7 +299,7 @@ type DeviceSecretVerifierConfigType struct { type DeviceType struct { // The device attributes. - DeviceAttributes []*AttributeType + DeviceAttributes []AttributeType // The creation date of the device. DeviceCreateDate *time.Time @@ -515,13 +515,13 @@ type IdentityProviderType struct { // A mapping of identity provider attributes to standard and custom user pool // attributes. - AttributeMapping map[string]*string + AttributeMapping map[string]string // The date the identity provider was created. CreationDate *time.Time // A list of identity provider identifiers. - IdpIdentifiers []*string + IdpIdentifiers []string // The date the identity provider was last modified. LastModifiedDate *time.Time @@ -596,7 +596,7 @@ type IdentityProviderType struct { // * MetadataFile OR MetadataURL // // * IDPSignOut optional - ProviderDetails map[string]*string + ProviderDetails map[string]string // The identity provider name. ProviderName *string @@ -735,30 +735,30 @@ type PasswordPolicyType struct { // The minimum length of the password policy that you have set. Cannot be less than // 6. - MinimumLength *int32 + MinimumLength int32 // In the password policy that you have set, refers to whether you have required // users to use at least one lowercase letter in their password. - RequireLowercase *bool + RequireLowercase bool // In the password policy that you have set, refers to whether you have required // users to use at least one number in their password. - RequireNumbers *bool + RequireNumbers bool // In the password policy that you have set, refers to whether you have required // users to use at least one symbol in their password. - RequireSymbols *bool + RequireSymbols bool // In the password policy that you have set, refers to whether you have required // users to use at least one uppercase letter in their password. - RequireUppercase *bool + RequireUppercase bool // In the password policy you have set, refers to the number of days a temporary // password is valid. If the user does not sign-in during this time, their password // will need to be reset by an administrator. When you set // TemporaryPasswordValidityDays for a user pool, you will no longer be able to set // the deprecated UnusedAccountValidityDays value for that user pool. - TemporaryPasswordValidityDays *int32 + TemporaryPasswordValidityDays int32 } // A container for identity provider details. @@ -802,7 +802,7 @@ type RecoveryOptionType struct { // priority. // // This member is required. - Priority *int32 + Priority int32 } // A resource server scope. @@ -829,7 +829,7 @@ type ResourceServerType struct { Name *string // A list of scopes that are defined for the resource server. - Scopes []*ResourceServerScopeType + Scopes []ResourceServerScopeType // The user pool ID for the user pool that hosts the resource server. UserPoolId *string @@ -865,11 +865,11 @@ type RiskExceptionConfigurationType struct { // Overrides the risk decision to always block the pre-authentication requests. The // IP range is in CIDR notation: a compact representation of an IP address and its // associated routing prefix. - BlockedIPRangeList []*string + BlockedIPRangeList []string // Risk detection is not performed on the IP addresses in the range list. The IP // range is in CIDR notation. - SkippedIPRangeList []*string + SkippedIPRangeList []string } // Contains information about the schema attribute. @@ -886,7 +886,7 @@ type SchemaAttributeType struct { // Users will not be able to modify this attribute using their access token. For // example, DeveloperOnlyAttribute can be modified using AdminUpdateUserAttributes // but cannot be updated using UpdateUserAttributes. - DeveloperOnlyAttribute *bool + DeveloperOnlyAttribute bool // Specifies whether the value of the attribute can be changed. For any user pool // attribute that's mapped to an identity provider attribute, you must set this @@ -896,7 +896,7 @@ type SchemaAttributeType struct { // more information, see Specifying Identity Provider Attribute Mappings for Your // User Pool // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html). - Mutable *bool + Mutable bool // A schema attribute of the name type. Name *string @@ -907,7 +907,7 @@ type SchemaAttributeType struct { // Specifies whether a user pool attribute is required. If the attribute is // required and the user does not provide a value, registration or sign-in will // fail. - Required *bool + Required bool // Specifies the constraints for an attribute of the string type. StringAttributeConstraints *StringAttributeConstraintsType @@ -953,27 +953,27 @@ type SmsMfaConfigType struct { type SMSMfaSettingsType struct { // Specifies whether SMS text message MFA is enabled. - Enabled *bool + Enabled bool // Specifies whether SMS is the preferred MFA method. - PreferredMfa *bool + PreferredMfa bool } // The type used for enabling software token MFA at the user pool level. type SoftwareTokenMfaConfigType struct { // Specifies whether software token MFA is enabled. - Enabled *bool + Enabled bool } // The type used for enabling software token MFA at the user level. type SoftwareTokenMfaSettingsType struct { // Specifies whether software token MFA is enabled. - Enabled *bool + Enabled bool // Specifies whether software token MFA is the preferred MFA method. - PreferredMfa *bool + PreferredMfa bool } // The constraints associated with a string attribute. @@ -1058,10 +1058,10 @@ type UserImportJobType struct { CreationDate *time.Time // The number of users that could not be imported. - FailedUsers *int64 + FailedUsers int64 // The number of users that were successfully imported. - ImportedUsers *int64 + ImportedUsers int64 // The job ID for the user import job. JobId *string @@ -1073,7 +1073,7 @@ type UserImportJobType struct { PreSignedUrl *string // The number of users that were skipped. - SkippedUsers *int64 + SkippedUsers int64 // The date when the user import job was started. StartDate *time.Time @@ -1171,13 +1171,13 @@ type UserPoolClientType struct { // Set to true if the client is allowed to follow the OAuth protocol when // interacting with Cognito user pools. - AllowedOAuthFlowsUserPoolClient *bool + AllowedOAuthFlowsUserPoolClient bool // The allowed OAuth scopes. Possible values provided by OAuth are: phone, email, // openid, and profile. Possible values provided by AWS are: // aws.cognito.signin.user.admin. Custom scopes created in Resource Servers are // also supported. - AllowedOAuthScopes []*string + AllowedOAuthScopes []string // The Amazon Pinpoint analytics configuration for the user pool client. Cognito // User Pools only supports sending events to Amazon Pinpoint projects in the US @@ -1199,7 +1199,7 @@ type UserPoolClientType struct { // Redirection Endpoint (https://tools.ietf.org/html/rfc6749#section-3.1.2). Amazon // Cognito requires HTTPS over HTTP except for http://localhost for testing // purposes only. App callback URLs such as myapp://example are also supported. - CallbackURLs []*string + CallbackURLs []string // The ID of the client associated with the user pool. ClientId *string @@ -1262,7 +1262,7 @@ type UserPoolClientType struct { LastModifiedDate *time.Time // A list of allowed logout URLs for the identity providers. - LogoutURLs []*string + LogoutURLs []string // Use this setting to choose which errors and responses are returned by Cognito // APIs during authentication, account confirmation, and password recovery when the @@ -1286,15 +1286,15 @@ type UserPoolClientType struct { PreventUserExistenceErrors PreventUserExistenceErrorTypes // The Read-only attributes. - ReadAttributes []*string + ReadAttributes []string // The time limit, in days, after which the refresh token is no longer valid and // cannot be used. - RefreshTokenValidity *int32 + RefreshTokenValidity int32 // A list of provider names for the identity providers that are supported on this // client. - SupportedIdentityProviders []*string + SupportedIdentityProviders []string // The time units used to specify the token validity times of their respective // token. @@ -1304,7 +1304,7 @@ type UserPoolClientType struct { UserPoolId *string // The writeable attributes. - WriteAttributes []*string + WriteAttributes []string } // A user pool description. @@ -1389,7 +1389,7 @@ type UserPoolType struct { EmailVerificationSubject *string // A number estimating the size of the user pool. - EstimatedNumberOfUsers *int32 + EstimatedNumberOfUsers int32 // The ID of the user pool. Id *string @@ -1420,7 +1420,7 @@ type UserPoolType struct { Policies *UserPoolPolicyType // A container with the schema attributes of a user pool. - SchemaAttributes []*SchemaAttributeType + SchemaAttributes []SchemaAttributeType // The contents of the SMS authentication message. SmsAuthenticationMessage *string @@ -1443,7 +1443,7 @@ type UserPoolType struct { // The tags that are assigned to the user pool. A tag is a label that you can apply // to user pools to categorize and manage them in different ways, such as by // purpose, owner, environment, or other criteria. - UserPoolTags map[string]*string + UserPoolTags map[string]string // Specifies whether email addresses or phone numbers can be specified as usernames // when a user signs up. @@ -1464,13 +1464,13 @@ type UserPoolType struct { type UserType struct { // A container with information about the user type attributes. - Attributes []*AttributeType + Attributes []AttributeType // Specifies whether the user is enabled. - Enabled *bool + Enabled bool // The MFA options for the user. - MFAOptions []*MFAOptionType + MFAOptions []MFAOptionType // The creation date of the user. UserCreateDate *time.Time diff --git a/service/cognitoidentityprovider/validators.go b/service/cognitoidentityprovider/validators.go index 72963923c9c..c362a763ed8 100644 --- a/service/cognitoidentityprovider/validators.go +++ b/service/cognitoidentityprovider/validators.go @@ -2438,9 +2438,6 @@ func validateAccountTakeoverActionType(v *types.AccountTakeoverActionType) error if len(v.EventAction) == 0 { invalidParams.Add(smithy.NewErrParamRequired("EventAction")) } - if v.Notify == nil { - invalidParams.Add(smithy.NewErrParamRequired("Notify")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2472,13 +2469,13 @@ func validateAccountTakeoverRiskConfigurationType(v *types.AccountTakeoverRiskCo } } -func validateAttributeListType(v []*types.AttributeType) error { +func validateAttributeListType(v []types.AttributeType) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AttributeListType"} for i := range v { - if err := validateAttributeType(v[i]); err != nil { + if err := validateAttributeType(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2622,13 +2619,13 @@ func validateNotifyEmailType(v *types.NotifyEmailType) error { } } -func validateRecoveryMechanismsType(v []*types.RecoveryOptionType) error { +func validateRecoveryMechanismsType(v []types.RecoveryOptionType) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RecoveryMechanismsType"} for i := range v { - if err := validateRecoveryOptionType(v[i]); err != nil { + if err := validateRecoveryOptionType(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2644,9 +2641,6 @@ func validateRecoveryOptionType(v *types.RecoveryOptionType) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "RecoveryOptionType"} - if v.Priority == nil { - invalidParams.Add(smithy.NewErrParamRequired("Priority")) - } if len(v.Name) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Name")) } @@ -2657,13 +2651,13 @@ func validateRecoveryOptionType(v *types.RecoveryOptionType) error { } } -func validateResourceServerScopeListType(v []*types.ResourceServerScopeType) error { +func validateResourceServerScopeListType(v []types.ResourceServerScopeType) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceServerScopeListType"} for i := range v { - if err := validateResourceServerScopeType(v[i]); err != nil { + if err := validateResourceServerScopeType(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4103,9 +4097,6 @@ func validateOpListUserImportJobsInput(v *ListUserImportJobsInput) error { if v.UserPoolId == nil { invalidParams.Add(smithy.NewErrParamRequired("UserPoolId")) } - if v.MaxResults == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxResults")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -4133,9 +4124,6 @@ func validateOpListUserPoolsInput(v *ListUserPoolsInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListUserPoolsInput"} - if v.MaxResults == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxResults")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/cognitosync/api_op_GetCognitoEvents.go b/service/cognitosync/api_op_GetCognitoEvents.go index 6441b13e4c1..38bbede18ab 100644 --- a/service/cognitosync/api_op_GetCognitoEvents.go +++ b/service/cognitosync/api_op_GetCognitoEvents.go @@ -42,7 +42,7 @@ type GetCognitoEventsInput struct { type GetCognitoEventsOutput struct { // The Cognito Events returned from the GetCognitoEvents request - Events map[string]*string + Events map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitosync/api_op_ListDatasets.go b/service/cognitosync/api_op_ListDatasets.go index d82cf79e389..e5ab1c64e62 100644 --- a/service/cognitosync/api_op_ListDatasets.go +++ b/service/cognitosync/api_op_ListDatasets.go @@ -58,10 +58,10 @@ type ListDatasetsInput struct { type ListDatasetsOutput struct { // Number of datasets returned. - Count *int32 + Count int32 // A set of datasets. - Datasets []*types.Dataset + Datasets []types.Dataset // A pagination token for obtaining the next page of results. NextToken *string diff --git a/service/cognitosync/api_op_ListIdentityPoolUsage.go b/service/cognitosync/api_op_ListIdentityPoolUsage.go index 4d300e2cfbd..23033502020 100644 --- a/service/cognitosync/api_op_ListIdentityPoolUsage.go +++ b/service/cognitosync/api_op_ListIdentityPoolUsage.go @@ -33,7 +33,7 @@ func (c *Client) ListIdentityPoolUsage(ctx context.Context, params *ListIdentity type ListIdentityPoolUsageInput struct { // The maximum number of results to be returned. - MaxResults *int32 + MaxResults int32 // A pagination token for obtaining the next page of results. NextToken *string @@ -43,13 +43,13 @@ type ListIdentityPoolUsageInput struct { type ListIdentityPoolUsageOutput struct { // Total number of identities for the identity pool. - Count *int32 + Count int32 // Usage information for the identity pools. - IdentityPoolUsages []*types.IdentityPoolUsage + IdentityPoolUsages []types.IdentityPoolUsage // The maximum number of results to be returned. - MaxResults *int32 + MaxResults int32 // A pagination token for obtaining the next page of results. NextToken *string diff --git a/service/cognitosync/api_op_ListRecords.go b/service/cognitosync/api_op_ListRecords.go index 248cb8915e4..84d4a057dd9 100644 --- a/service/cognitosync/api_op_ListRecords.go +++ b/service/cognitosync/api_op_ListRecords.go @@ -57,7 +57,7 @@ type ListRecordsInput struct { LastSyncCount *int64 // The maximum number of results to be returned. - MaxResults *int32 + MaxResults int32 // A pagination token for obtaining the next page of results. NextToken *string @@ -70,13 +70,13 @@ type ListRecordsInput struct { type ListRecordsOutput struct { // Total number of records. - Count *int32 + Count int32 // A boolean value specifying whether to delete the dataset locally. - DatasetDeletedAfterRequestedSyncCount *bool + DatasetDeletedAfterRequestedSyncCount bool // Indicates whether the dataset exists. - DatasetExists *bool + DatasetExists bool // Server sync count for this dataset. DatasetSyncCount *int64 @@ -85,13 +85,13 @@ type ListRecordsOutput struct { LastModifiedBy *string // Names of merged datasets. - MergedDatasetNames []*string + MergedDatasetNames []string // A pagination token for obtaining the next page of results. NextToken *string // A list of all records. - Records []*types.Record + Records []types.Record // A token containing a session ID, identity ID, and expiration. SyncSessionToken *string diff --git a/service/cognitosync/api_op_SetCognitoEvents.go b/service/cognitosync/api_op_SetCognitoEvents.go index 109aa8dcf3c..097bd3067d4 100644 --- a/service/cognitosync/api_op_SetCognitoEvents.go +++ b/service/cognitosync/api_op_SetCognitoEvents.go @@ -36,7 +36,7 @@ type SetCognitoEventsInput struct { // The events to configure // // This member is required. - Events map[string]*string + Events map[string]string // The Cognito Identity Pool to use when configuring Cognito Events // diff --git a/service/cognitosync/api_op_UpdateRecords.go b/service/cognitosync/api_op_UpdateRecords.go index 79c170abec7..3ca22eb1bae 100644 --- a/service/cognitosync/api_op_UpdateRecords.go +++ b/service/cognitosync/api_op_UpdateRecords.go @@ -74,14 +74,14 @@ type UpdateRecordsInput struct { DeviceId *string // A list of patch operations. - RecordPatches []*types.RecordPatch + RecordPatches []types.RecordPatch } // Returned for a successful UpdateRecordsRequest. type UpdateRecordsOutput struct { // A list of records that have been updated. - Records []*types.Record + Records []types.Record // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/cognitosync/deserializers.go b/service/cognitosync/deserializers.go index c2eb72227e9..2a55b921dfd 100644 --- a/service/cognitosync/deserializers.go +++ b/service/cognitosync/deserializers.go @@ -173,7 +173,7 @@ func awsRestjson1_deserializeOpDocumentBulkPublishOutput(v **BulkPublishOutput, if !ok { return fmt.Errorf("expected IdentityPoolId to be of type string, got %T instead", value) } - sv.IdentityPoolId = &jtv + sv.IdentityPoolId = ptr.String(jtv) } default: @@ -1007,7 +1007,7 @@ func awsRestjson1_deserializeOpDocumentGetBulkPublishDetailsOutput(v **GetBulkPu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureMessage = &jtv + sv.FailureMessage = ptr.String(jtv) } case "IdentityPoolId": @@ -1016,7 +1016,7 @@ func awsRestjson1_deserializeOpDocumentGetBulkPublishDetailsOutput(v **GetBulkPu if !ok { return fmt.Errorf("expected IdentityPoolId to be of type string, got %T instead", value) } - sv.IdentityPoolId = &jtv + sv.IdentityPoolId = ptr.String(jtv) } default: @@ -1343,7 +1343,7 @@ func awsRestjson1_deserializeOpDocumentGetIdentityPoolConfigurationOutput(v **Ge if !ok { return fmt.Errorf("expected IdentityPoolId to be of type string, got %T instead", value) } - sv.IdentityPoolId = &jtv + sv.IdentityPoolId = ptr.String(jtv) } case "PushSync": @@ -1512,7 +1512,7 @@ func awsRestjson1_deserializeOpDocumentListDatasetsOutput(v **ListDatasetsOutput if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "Datasets": @@ -1526,7 +1526,7 @@ func awsRestjson1_deserializeOpDocumentListDatasetsOutput(v **ListDatasetsOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1690,7 +1690,7 @@ func awsRestjson1_deserializeOpDocumentListIdentityPoolUsageOutput(v **ListIdent if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "IdentityPoolUsages": @@ -1708,7 +1708,7 @@ func awsRestjson1_deserializeOpDocumentListIdentityPoolUsageOutput(v **ListIdent if err != nil { return err } - sv.MaxResults = ptr.Int32(int32(i64)) + sv.MaxResults = int32(i64) } case "NextToken": @@ -1717,7 +1717,7 @@ func awsRestjson1_deserializeOpDocumentListIdentityPoolUsageOutput(v **ListIdent if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1881,7 +1881,7 @@ func awsRestjson1_deserializeOpDocumentListRecordsOutput(v **ListRecordsOutput, if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "DatasetDeletedAfterRequestedSyncCount": @@ -1890,7 +1890,7 @@ func awsRestjson1_deserializeOpDocumentListRecordsOutput(v **ListRecordsOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DatasetDeletedAfterRequestedSyncCount = &jtv + sv.DatasetDeletedAfterRequestedSyncCount = jtv } case "DatasetExists": @@ -1899,7 +1899,7 @@ func awsRestjson1_deserializeOpDocumentListRecordsOutput(v **ListRecordsOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DatasetExists = &jtv + sv.DatasetExists = jtv } case "DatasetSyncCount": @@ -1912,7 +1912,7 @@ func awsRestjson1_deserializeOpDocumentListRecordsOutput(v **ListRecordsOutput, if err != nil { return err } - sv.DatasetSyncCount = &i64 + sv.DatasetSyncCount = ptr.Int64(i64) } case "LastModifiedBy": @@ -1921,7 +1921,7 @@ func awsRestjson1_deserializeOpDocumentListRecordsOutput(v **ListRecordsOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "MergedDatasetNames": @@ -1935,7 +1935,7 @@ func awsRestjson1_deserializeOpDocumentListRecordsOutput(v **ListRecordsOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Records": @@ -1949,7 +1949,7 @@ func awsRestjson1_deserializeOpDocumentListRecordsOutput(v **ListRecordsOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SyncSessionToken = &jtv + sv.SyncSessionToken = ptr.String(jtv) } default: @@ -2115,7 +2115,7 @@ func awsRestjson1_deserializeOpDocumentRegisterDeviceOutput(v **RegisterDeviceOu if !ok { return fmt.Errorf("expected DeviceId to be of type string, got %T instead", value) } - sv.DeviceId = &jtv + sv.DeviceId = ptr.String(jtv) } default: @@ -2381,7 +2381,7 @@ func awsRestjson1_deserializeOpDocumentSetIdentityPoolConfigurationOutput(v **Se if !ok { return fmt.Errorf("expected IdentityPoolId to be of type string, got %T instead", value) } - sv.IdentityPoolId = &jtv + sv.IdentityPoolId = ptr.String(jtv) } case "PushSync": @@ -3300,7 +3300,7 @@ func awsRestjson1_deserializeDocumentAlreadyStreamedException(v **types.AlreadyS if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3312,7 +3312,7 @@ func awsRestjson1_deserializeDocumentAlreadyStreamedException(v **types.AlreadyS return nil } -func awsRestjson1_deserializeDocumentApplicationArnList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentApplicationArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3325,21 +3325,21 @@ func awsRestjson1_deserializeDocumentApplicationArnList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ApplicationArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3376,7 +3376,7 @@ func awsRestjson1_deserializeDocumentCognitoStreams(v **types.CognitoStreams, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DisabledReason = &jtv + sv.DisabledReason = ptr.String(jtv) } case "RoleArn": @@ -3385,7 +3385,7 @@ func awsRestjson1_deserializeDocumentCognitoStreams(v **types.CognitoStreams, va if !ok { return fmt.Errorf("expected AssumeRoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "StreamingStatus": @@ -3403,7 +3403,7 @@ func awsRestjson1_deserializeDocumentCognitoStreams(v **types.CognitoStreams, va if !ok { return fmt.Errorf("expected StreamName to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } default: @@ -3443,7 +3443,7 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3496,7 +3496,7 @@ func awsRestjson1_deserializeDocumentDataset(v **types.Dataset, value interface{ if !ok { return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) } - sv.DatasetName = &jtv + sv.DatasetName = ptr.String(jtv) } case "DataStorage": @@ -3509,7 +3509,7 @@ func awsRestjson1_deserializeDocumentDataset(v **types.Dataset, value interface{ if err != nil { return err } - sv.DataStorage = &i64 + sv.DataStorage = ptr.Int64(i64) } case "IdentityId": @@ -3518,7 +3518,7 @@ func awsRestjson1_deserializeDocumentDataset(v **types.Dataset, value interface{ if !ok { return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value) } - sv.IdentityId = &jtv + sv.IdentityId = ptr.String(jtv) } case "LastModifiedBy": @@ -3527,7 +3527,7 @@ func awsRestjson1_deserializeDocumentDataset(v **types.Dataset, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedDate": @@ -3553,7 +3553,7 @@ func awsRestjson1_deserializeDocumentDataset(v **types.Dataset, value interface{ if err != nil { return err } - sv.NumRecords = &i64 + sv.NumRecords = ptr.Int64(i64) } default: @@ -3565,7 +3565,7 @@ func awsRestjson1_deserializeDocumentDataset(v **types.Dataset, value interface{ return nil } -func awsRestjson1_deserializeDocumentDatasetList(v *[]*types.Dataset, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetList(v *[]types.Dataset, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3578,18 +3578,20 @@ func awsRestjson1_deserializeDocumentDatasetList(v *[]*types.Dataset, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Dataset + var cv []types.Dataset if *v == nil { - cv = []*types.Dataset{} + cv = []types.Dataset{} } else { cv = *v } for _, value := range shape { - var col *types.Dataset - if err := awsRestjson1_deserializeDocumentDataset(&col, value); err != nil { + var col types.Dataset + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataset(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3625,7 +3627,7 @@ func awsRestjson1_deserializeDocumentDuplicateRequestException(v **types.Duplica if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3637,7 +3639,7 @@ func awsRestjson1_deserializeDocumentDuplicateRequestException(v **types.Duplica return nil } -func awsRestjson1_deserializeDocumentEvents(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentEvents(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3650,21 +3652,21 @@ func awsRestjson1_deserializeDocumentEvents(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected LambdaFunctionArn to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -3705,7 +3707,7 @@ func awsRestjson1_deserializeDocumentIdentityPoolUsage(v **types.IdentityPoolUsa if err != nil { return err } - sv.DataStorage = &i64 + sv.DataStorage = ptr.Int64(i64) } case "IdentityPoolId": @@ -3714,7 +3716,7 @@ func awsRestjson1_deserializeDocumentIdentityPoolUsage(v **types.IdentityPoolUsa if !ok { return fmt.Errorf("expected IdentityPoolId to be of type string, got %T instead", value) } - sv.IdentityPoolId = &jtv + sv.IdentityPoolId = ptr.String(jtv) } case "LastModifiedDate": @@ -3740,7 +3742,7 @@ func awsRestjson1_deserializeDocumentIdentityPoolUsage(v **types.IdentityPoolUsa if err != nil { return err } - sv.SyncSessionsCount = &i64 + sv.SyncSessionsCount = ptr.Int64(i64) } default: @@ -3752,7 +3754,7 @@ func awsRestjson1_deserializeDocumentIdentityPoolUsage(v **types.IdentityPoolUsa return nil } -func awsRestjson1_deserializeDocumentIdentityPoolUsageList(v *[]*types.IdentityPoolUsage, value interface{}) error { +func awsRestjson1_deserializeDocumentIdentityPoolUsageList(v *[]types.IdentityPoolUsage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3765,18 +3767,20 @@ func awsRestjson1_deserializeDocumentIdentityPoolUsageList(v *[]*types.IdentityP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IdentityPoolUsage + var cv []types.IdentityPoolUsage if *v == nil { - cv = []*types.IdentityPoolUsage{} + cv = []types.IdentityPoolUsage{} } else { cv = *v } for _, value := range shape { - var col *types.IdentityPoolUsage - if err := awsRestjson1_deserializeDocumentIdentityPoolUsage(&col, value); err != nil { + var col types.IdentityPoolUsage + destAddr := &col + if err := awsRestjson1_deserializeDocumentIdentityPoolUsage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3816,7 +3820,7 @@ func awsRestjson1_deserializeDocumentIdentityUsage(v **types.IdentityUsage, valu if err != nil { return err } - sv.DatasetCount = ptr.Int32(int32(i64)) + sv.DatasetCount = int32(i64) } case "DataStorage": @@ -3829,7 +3833,7 @@ func awsRestjson1_deserializeDocumentIdentityUsage(v **types.IdentityUsage, valu if err != nil { return err } - sv.DataStorage = &i64 + sv.DataStorage = ptr.Int64(i64) } case "IdentityId": @@ -3838,7 +3842,7 @@ func awsRestjson1_deserializeDocumentIdentityUsage(v **types.IdentityUsage, valu if !ok { return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value) } - sv.IdentityId = &jtv + sv.IdentityId = ptr.String(jtv) } case "IdentityPoolId": @@ -3847,7 +3851,7 @@ func awsRestjson1_deserializeDocumentIdentityUsage(v **types.IdentityUsage, valu if !ok { return fmt.Errorf("expected IdentityPoolId to be of type string, got %T instead", value) } - sv.IdentityPoolId = &jtv + sv.IdentityPoolId = ptr.String(jtv) } case "LastModifiedDate": @@ -3900,7 +3904,7 @@ func awsRestjson1_deserializeDocumentInternalErrorException(v **types.InternalEr if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3940,7 +3944,7 @@ func awsRestjson1_deserializeDocumentInvalidConfigurationException(v **types.Inv if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3980,7 +3984,7 @@ func awsRestjson1_deserializeDocumentInvalidLambdaFunctionOutputException(v **ty if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4020,7 +4024,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4060,7 +4064,7 @@ func awsRestjson1_deserializeDocumentLambdaSocketTimeoutException(v **types.Lamb if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4100,7 +4104,7 @@ func awsRestjson1_deserializeDocumentLambdaThrottledException(v **types.LambdaTh if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4140,7 +4144,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4152,7 +4156,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsRestjson1_deserializeDocumentMergedDatasetNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentMergedDatasetNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4165,21 +4169,21 @@ func awsRestjson1_deserializeDocumentMergedDatasetNameList(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -4216,7 +4220,7 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4261,7 +4265,7 @@ func awsRestjson1_deserializeDocumentPushSync(v **types.PushSync, value interfac if !ok { return fmt.Errorf("expected AssumeRoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -4314,7 +4318,7 @@ func awsRestjson1_deserializeDocumentRecord(v **types.Record, value interface{}) if !ok { return fmt.Errorf("expected RecordKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "LastModifiedBy": @@ -4323,7 +4327,7 @@ func awsRestjson1_deserializeDocumentRecord(v **types.Record, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedDate": @@ -4349,7 +4353,7 @@ func awsRestjson1_deserializeDocumentRecord(v **types.Record, value interface{}) if err != nil { return err } - sv.SyncCount = &i64 + sv.SyncCount = ptr.Int64(i64) } case "Value": @@ -4358,7 +4362,7 @@ func awsRestjson1_deserializeDocumentRecord(v **types.Record, value interface{}) if !ok { return fmt.Errorf("expected RecordValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4370,7 +4374,7 @@ func awsRestjson1_deserializeDocumentRecord(v **types.Record, value interface{}) return nil } -func awsRestjson1_deserializeDocumentRecordList(v *[]*types.Record, value interface{}) error { +func awsRestjson1_deserializeDocumentRecordList(v *[]types.Record, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4383,18 +4387,20 @@ func awsRestjson1_deserializeDocumentRecordList(v *[]*types.Record, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Record + var cv []types.Record if *v == nil { - cv = []*types.Record{} + cv = []types.Record{} } else { cv = *v } for _, value := range shape { - var col *types.Record - if err := awsRestjson1_deserializeDocumentRecord(&col, value); err != nil { + var col types.Record + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4430,7 +4436,7 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4470,7 +4476,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4510,7 +4516,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/cognitosync/go.mod b/service/cognitosync/go.mod index ee03eb9b152..8638faebb6c 100644 --- a/service/cognitosync/go.mod +++ b/service/cognitosync/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/cognitosync go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/cognitosync/serializers.go b/service/cognitosync/serializers.go index dfe3dc1b9ec..3c15c70b982 100644 --- a/service/cognitosync/serializers.go +++ b/service/cognitosync/serializers.go @@ -66,13 +66,10 @@ func awsRestjson1_serializeOpHttpBindingsBulkPublishInput(v *BulkPublishInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -132,37 +129,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDatasetInput(v *DeleteDatasetInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatasetName == nil { + if v.DatasetName == nil || len(*v.DatasetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetName must not be empty")} } if v.DatasetName != nil { - if len(*v.DatasetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetName must not be empty")} - } if err := encoder.SetURI("DatasetName").String(*v.DatasetName); err != nil { return err } } - if v.IdentityId == nil { + if v.IdentityId == nil || len(*v.IdentityId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} } if v.IdentityId != nil { - if len(*v.IdentityId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} - } if err := encoder.SetURI("IdentityId").String(*v.IdentityId); err != nil { return err } } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -222,37 +210,28 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDatasetInput(v *DescribeDataset return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatasetName == nil { + if v.DatasetName == nil || len(*v.DatasetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetName must not be empty")} } if v.DatasetName != nil { - if len(*v.DatasetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetName must not be empty")} - } if err := encoder.SetURI("DatasetName").String(*v.DatasetName); err != nil { return err } } - if v.IdentityId == nil { + if v.IdentityId == nil || len(*v.IdentityId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} } if v.IdentityId != nil { - if len(*v.IdentityId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} - } if err := encoder.SetURI("IdentityId").String(*v.IdentityId); err != nil { return err } } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -312,13 +291,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeIdentityPoolUsageInput(v *Descr return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -378,25 +354,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeIdentityUsageInput(v *DescribeI return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.IdentityId == nil { + if v.IdentityId == nil || len(*v.IdentityId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} } if v.IdentityId != nil { - if len(*v.IdentityId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} - } if err := encoder.SetURI("IdentityId").String(*v.IdentityId); err != nil { return err } } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -456,13 +426,10 @@ func awsRestjson1_serializeOpHttpBindingsGetBulkPublishDetailsInput(v *GetBulkPu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -522,13 +489,10 @@ func awsRestjson1_serializeOpHttpBindingsGetCognitoEventsInput(v *GetCognitoEven return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -588,13 +552,10 @@ func awsRestjson1_serializeOpHttpBindingsGetIdentityPoolConfigurationInput(v *Ge return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -654,25 +615,19 @@ func awsRestjson1_serializeOpHttpBindingsListDatasetsInput(v *ListDatasetsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.IdentityId == nil { + if v.IdentityId == nil || len(*v.IdentityId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} } if v.IdentityId != nil { - if len(*v.IdentityId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} - } if err := encoder.SetURI("IdentityId").String(*v.IdentityId); err != nil { return err } } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -740,8 +695,8 @@ func awsRestjson1_serializeOpHttpBindingsListIdentityPoolUsageInput(v *ListIdent return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -802,37 +757,28 @@ func awsRestjson1_serializeOpHttpBindingsListRecordsInput(v *ListRecordsInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatasetName == nil { + if v.DatasetName == nil || len(*v.DatasetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetName must not be empty")} } if v.DatasetName != nil { - if len(*v.DatasetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetName must not be empty")} - } if err := encoder.SetURI("DatasetName").String(*v.DatasetName); err != nil { return err } } - if v.IdentityId == nil { + if v.IdentityId == nil || len(*v.IdentityId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} } if v.IdentityId != nil { - if len(*v.IdentityId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} - } if err := encoder.SetURI("IdentityId").String(*v.IdentityId); err != nil { return err } } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -842,8 +788,8 @@ func awsRestjson1_serializeOpHttpBindingsListRecordsInput(v *ListRecordsInput, e encoder.SetQuery("lastSyncCount").Long(*v.LastSyncCount) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -919,25 +865,19 @@ func awsRestjson1_serializeOpHttpBindingsRegisterDeviceInput(v *RegisterDeviceIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.IdentityId == nil { + if v.IdentityId == nil || len(*v.IdentityId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} } if v.IdentityId != nil { - if len(*v.IdentityId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} - } if err := encoder.SetURI("IdentityId").String(*v.IdentityId); err != nil { return err } } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -1025,13 +965,10 @@ func awsRestjson1_serializeOpHttpBindingsSetCognitoEventsInput(v *SetCognitoEven return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -1116,13 +1053,10 @@ func awsRestjson1_serializeOpHttpBindingsSetIdentityPoolConfigurationInput(v *Se return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -1203,49 +1137,37 @@ func awsRestjson1_serializeOpHttpBindingsSubscribeToDatasetInput(v *SubscribeToD return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatasetName == nil { + if v.DatasetName == nil || len(*v.DatasetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetName must not be empty")} } if v.DatasetName != nil { - if len(*v.DatasetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetName must not be empty")} - } if err := encoder.SetURI("DatasetName").String(*v.DatasetName); err != nil { return err } } - if v.DeviceId == nil { + if v.DeviceId == nil || len(*v.DeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} } if v.DeviceId != nil { - if len(*v.DeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} - } if err := encoder.SetURI("DeviceId").String(*v.DeviceId); err != nil { return err } } - if v.IdentityId == nil { + if v.IdentityId == nil || len(*v.IdentityId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} } if v.IdentityId != nil { - if len(*v.IdentityId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} - } if err := encoder.SetURI("IdentityId").String(*v.IdentityId); err != nil { return err } } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -1305,49 +1227,37 @@ func awsRestjson1_serializeOpHttpBindingsUnsubscribeFromDatasetInput(v *Unsubscr return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatasetName == nil { + if v.DatasetName == nil || len(*v.DatasetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetName must not be empty")} } if v.DatasetName != nil { - if len(*v.DatasetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetName must not be empty")} - } if err := encoder.SetURI("DatasetName").String(*v.DatasetName); err != nil { return err } } - if v.DeviceId == nil { + if v.DeviceId == nil || len(*v.DeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} } if v.DeviceId != nil { - if len(*v.DeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} - } if err := encoder.SetURI("DeviceId").String(*v.DeviceId); err != nil { return err } } - if v.IdentityId == nil { + if v.IdentityId == nil || len(*v.IdentityId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} } if v.IdentityId != nil { - if len(*v.IdentityId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} - } if err := encoder.SetURI("IdentityId").String(*v.IdentityId); err != nil { return err } } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -1418,44 +1328,33 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRecordsInput(v *UpdateRecordsInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClientContext != nil { + if v.ClientContext != nil && len(*v.ClientContext) > 0 { locationName := "X-Amz-Client-Context" - if len(*v.ClientContext) > 0 { - encoder.SetHeader(locationName).String(*v.ClientContext) - } + encoder.SetHeader(locationName).String(*v.ClientContext) } - if v.DatasetName == nil { + if v.DatasetName == nil || len(*v.DatasetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetName must not be empty")} } if v.DatasetName != nil { - if len(*v.DatasetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetName must not be empty")} - } if err := encoder.SetURI("DatasetName").String(*v.DatasetName); err != nil { return err } } - if v.IdentityId == nil { + if v.IdentityId == nil || len(*v.IdentityId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} } if v.IdentityId != nil { - if len(*v.IdentityId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityId must not be empty")} - } if err := encoder.SetURI("IdentityId").String(*v.IdentityId); err != nil { return err } } - if v.IdentityPoolId == nil { + if v.IdentityPoolId == nil || len(*v.IdentityPoolId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} } if v.IdentityPoolId != nil { - if len(*v.IdentityPoolId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IdentityPoolId must not be empty")} - } if err := encoder.SetURI("IdentityPoolId").String(*v.IdentityPoolId); err != nil { return err } @@ -1488,17 +1387,13 @@ func awsRestjson1_serializeOpDocumentUpdateRecordsInput(v *UpdateRecordsInput, v return nil } -func awsRestjson1_serializeDocumentApplicationArnList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentApplicationArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1530,17 +1425,13 @@ func awsRestjson1_serializeDocumentCognitoStreams(v *types.CognitoStreams, value return nil } -func awsRestjson1_serializeDocumentEvents(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEvents(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1596,17 +1487,13 @@ func awsRestjson1_serializeDocumentRecordPatch(v *types.RecordPatch, value smith return nil } -func awsRestjson1_serializeDocumentRecordPatchList(v []*types.RecordPatch, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRecordPatchList(v []types.RecordPatch, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentRecordPatch(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentRecordPatch(&v[i], av); err != nil { return err } } diff --git a/service/cognitosync/types/types.go b/service/cognitosync/types/types.go index 982b09f73d6..d6b758836f8 100644 --- a/service/cognitosync/types/types.go +++ b/service/cognitosync/types/types.go @@ -88,7 +88,7 @@ type IdentityUsage struct { DataStorage *int64 // Number of datasets for the identity. - DatasetCount *int32 + DatasetCount int32 // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. @@ -106,7 +106,7 @@ type IdentityUsage struct { type PushSync struct { // List of SNS platform application ARNs that could be used by clients. - ApplicationArns []*string + ApplicationArns []string // A role configured to allow Cognito to call SNS on behalf of the developer. RoleArn *string diff --git a/service/cognitosync/validators.go b/service/cognitosync/validators.go index 05adbcd652f..30a16b0c0cd 100644 --- a/service/cognitosync/validators.go +++ b/service/cognitosync/validators.go @@ -415,13 +415,13 @@ func validateRecordPatch(v *types.RecordPatch) error { } } -func validateRecordPatchList(v []*types.RecordPatch) error { +func validateRecordPatchList(v []types.RecordPatch) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RecordPatchList"} for i := range v { - if err := validateRecordPatch(v[i]); err != nil { + if err := validateRecordPatch(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/comprehend/api_op_BatchDetectDominantLanguage.go b/service/comprehend/api_op_BatchDetectDominantLanguage.go index 383207e895e..9d2502c2d76 100644 --- a/service/comprehend/api_op_BatchDetectDominantLanguage.go +++ b/service/comprehend/api_op_BatchDetectDominantLanguage.go @@ -37,7 +37,7 @@ type BatchDetectDominantLanguageInput struct { // must contain fewer than 5,000 bytes of UTF-8 encoded characters. // // This member is required. - TextList []*string + TextList []string } type BatchDetectDominantLanguageOutput struct { @@ -48,7 +48,7 @@ type BatchDetectDominantLanguageOutput struct { // ErrorList is empty. // // This member is required. - ErrorList []*types.BatchItemError + ErrorList []types.BatchItemError // A list of objects containing the results of the operation. The results are // sorted in ascending order by the Index field and match the order of the @@ -56,7 +56,7 @@ type BatchDetectDominantLanguageOutput struct { // ResultList is empty. // // This member is required. - ResultList []*types.BatchDetectDominantLanguageItemResult + ResultList []types.BatchDetectDominantLanguageItemResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_BatchDetectEntities.go b/service/comprehend/api_op_BatchDetectEntities.go index ffdbe67f368..046083fdb18 100644 --- a/service/comprehend/api_op_BatchDetectEntities.go +++ b/service/comprehend/api_op_BatchDetectEntities.go @@ -43,7 +43,7 @@ type BatchDetectEntitiesInput struct { // UTF-8 encoded characters. // // This member is required. - TextList []*string + TextList []string } type BatchDetectEntitiesOutput struct { @@ -54,7 +54,7 @@ type BatchDetectEntitiesOutput struct { // ErrorList is empty. // // This member is required. - ErrorList []*types.BatchItemError + ErrorList []types.BatchItemError // A list of objects containing the results of the operation. The results are // sorted in ascending order by the Index field and match the order of the @@ -62,7 +62,7 @@ type BatchDetectEntitiesOutput struct { // ResultList is empty. // // This member is required. - ResultList []*types.BatchDetectEntitiesItemResult + ResultList []types.BatchDetectEntitiesItemResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_BatchDetectKeyPhrases.go b/service/comprehend/api_op_BatchDetectKeyPhrases.go index 1c94a7ec525..95076c76c45 100644 --- a/service/comprehend/api_op_BatchDetectKeyPhrases.go +++ b/service/comprehend/api_op_BatchDetectKeyPhrases.go @@ -41,7 +41,7 @@ type BatchDetectKeyPhrasesInput struct { // UTF-8 encoded characters. // // This member is required. - TextList []*string + TextList []string } type BatchDetectKeyPhrasesOutput struct { @@ -52,7 +52,7 @@ type BatchDetectKeyPhrasesOutput struct { // ErrorList is empty. // // This member is required. - ErrorList []*types.BatchItemError + ErrorList []types.BatchItemError // A list of objects containing the results of the operation. The results are // sorted in ascending order by the Index field and match the order of the @@ -60,7 +60,7 @@ type BatchDetectKeyPhrasesOutput struct { // ResultList is empty. // // This member is required. - ResultList []*types.BatchDetectKeyPhrasesItemResult + ResultList []types.BatchDetectKeyPhrasesItemResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_BatchDetectSentiment.go b/service/comprehend/api_op_BatchDetectSentiment.go index 9e78eadcc65..4ad3f86e97e 100644 --- a/service/comprehend/api_op_BatchDetectSentiment.go +++ b/service/comprehend/api_op_BatchDetectSentiment.go @@ -42,7 +42,7 @@ type BatchDetectSentimentInput struct { // UTF-8 encoded characters. // // This member is required. - TextList []*string + TextList []string } type BatchDetectSentimentOutput struct { @@ -53,7 +53,7 @@ type BatchDetectSentimentOutput struct { // ErrorList is empty. // // This member is required. - ErrorList []*types.BatchItemError + ErrorList []types.BatchItemError // A list of objects containing the results of the operation. The results are // sorted in ascending order by the Index field and match the order of the @@ -61,7 +61,7 @@ type BatchDetectSentimentOutput struct { // ResultList is empty. // // This member is required. - ResultList []*types.BatchDetectSentimentItemResult + ResultList []types.BatchDetectSentimentItemResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_BatchDetectSyntax.go b/service/comprehend/api_op_BatchDetectSyntax.go index d1aaa691c11..53e7a29f26f 100644 --- a/service/comprehend/api_op_BatchDetectSyntax.go +++ b/service/comprehend/api_op_BatchDetectSyntax.go @@ -44,7 +44,7 @@ type BatchDetectSyntaxInput struct { // UTF-8 encoded characters. // // This member is required. - TextList []*string + TextList []string } type BatchDetectSyntaxOutput struct { @@ -55,7 +55,7 @@ type BatchDetectSyntaxOutput struct { // ErrorList is empty. // // This member is required. - ErrorList []*types.BatchItemError + ErrorList []types.BatchItemError // A list of objects containing the results of the operation. The results are // sorted in ascending order by the Index field and match the order of the @@ -63,7 +63,7 @@ type BatchDetectSyntaxOutput struct { // ResultList is empty. // // This member is required. - ResultList []*types.BatchDetectSyntaxItemResult + ResultList []types.BatchDetectSyntaxItemResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_ClassifyDocument.go b/service/comprehend/api_op_ClassifyDocument.go index 49338b71e32..693edd240fb 100644 --- a/service/comprehend/api_op_ClassifyDocument.go +++ b/service/comprehend/api_op_ClassifyDocument.go @@ -47,14 +47,14 @@ type ClassifyDocumentOutput struct { // trained models. Individual classes are mutually exclusive and each document is // expected to have only a single class assigned to it. For example, an animal can // be a dog or a cat, but not both at the same time. - Classes []*types.DocumentClass + Classes []types.DocumentClass // The labels used the document being analyzed. These are used for multi-label // trained models. Individual labels represent different categories that are // related in some manner and are not multually exclusive. For example, a movie can // be just an action movie, or it can be an action movie, a science fiction movie, // and a comedy, all at the same time. - Labels []*types.DocumentLabel + Labels []types.DocumentLabel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_CreateDocumentClassifier.go b/service/comprehend/api_op_CreateDocumentClassifier.go index 61fb66543ff..165fd849c3a 100644 --- a/service/comprehend/api_op_CreateDocumentClassifier.go +++ b/service/comprehend/api_op_CreateDocumentClassifier.go @@ -77,7 +77,7 @@ type CreateDocumentClassifierInput struct { // key-value pair that adds as a metadata to a resource used by Amazon Comprehend. // For example, a tag with "Sales" as the key might be added to a resource to // indicate its use by the sales department. - Tags []*types.Tag + Tags []types.Tag // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to // encrypt data on the storage volume attached to the ML compute instance(s) that diff --git a/service/comprehend/api_op_CreateEndpoint.go b/service/comprehend/api_op_CreateEndpoint.go index 89e490ef938..0fa20bc1045 100644 --- a/service/comprehend/api_op_CreateEndpoint.go +++ b/service/comprehend/api_op_CreateEndpoint.go @@ -58,7 +58,7 @@ type CreateEndpointInput struct { // Tags associated with the endpoint being created. A tag is a key-value pair that // adds metadata to the endpoint. For example, a tag with "Sales" as the key might // be added to an endpoint to indicate its use by the sales department. - Tags []*types.Tag + Tags []types.Tag } type CreateEndpointOutput struct { diff --git a/service/comprehend/api_op_CreateEntityRecognizer.go b/service/comprehend/api_op_CreateEntityRecognizer.go index 5a9383eaddc..deae6333815 100644 --- a/service/comprehend/api_op_CreateEntityRecognizer.go +++ b/service/comprehend/api_op_CreateEntityRecognizer.go @@ -67,7 +67,7 @@ type CreateEntityRecognizerInput struct { // key-value pair that adds as a metadata to a resource used by Amazon Comprehend. // For example, a tag with "Sales" as the key might be added to a resource to // indicate its use by the sales department. - Tags []*types.Tag + Tags []types.Tag // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to // encrypt data on the storage volume attached to the ML compute instance(s) that diff --git a/service/comprehend/api_op_DetectDominantLanguage.go b/service/comprehend/api_op_DetectDominantLanguage.go index e7d450bf1b6..6988e5c8d29 100644 --- a/service/comprehend/api_op_DetectDominantLanguage.go +++ b/service/comprehend/api_op_DetectDominantLanguage.go @@ -45,7 +45,7 @@ type DetectDominantLanguageOutput struct { // confidence that Amazon Comprehend has in the accuracy of its inference. For more // information about RFC 5646, see Tags for Identifying Languages // (https://tools.ietf.org/html/rfc5646) on the IETF Tools web site. - Languages []*types.DominantLanguage + Languages []types.DominantLanguage // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_DetectEntities.go b/service/comprehend/api_op_DetectEntities.go index 19b37dc06ae..2e234b49444 100644 --- a/service/comprehend/api_op_DetectEntities.go +++ b/service/comprehend/api_op_DetectEntities.go @@ -61,7 +61,7 @@ type DetectEntitiesOutput struct { // detects the entities that the model is trained to recognize. Otherwise, it // detects the default entity types. For a list of default entity types, see // how-entities. - Entities []*types.Entity + Entities []types.Entity // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_DetectKeyPhrases.go b/service/comprehend/api_op_DetectKeyPhrases.go index 0758f4de8f2..89b84e4fb5f 100644 --- a/service/comprehend/api_op_DetectKeyPhrases.go +++ b/service/comprehend/api_op_DetectKeyPhrases.go @@ -49,7 +49,7 @@ type DetectKeyPhrasesOutput struct { // For each key phrase, the response provides the text of the key phrase, where the // key phrase begins and ends, and the level of confidence that Amazon Comprehend // has in the accuracy of the detection. - KeyPhrases []*types.KeyPhrase + KeyPhrases []types.KeyPhrase // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_DetectPiiEntities.go b/service/comprehend/api_op_DetectPiiEntities.go index 26179d8592a..c5d18a970d5 100644 --- a/service/comprehend/api_op_DetectPiiEntities.go +++ b/service/comprehend/api_op_DetectPiiEntities.go @@ -47,7 +47,7 @@ type DetectPiiEntitiesOutput struct { // A collection of PII entities identified in the input text. For each entity, the // response provides the entity type, where the entity text begins and ends, and // the level of confidence that Amazon Comprehend has in the detection. - Entities []*types.PiiEntity + Entities []types.PiiEntity // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_DetectSyntax.go b/service/comprehend/api_op_DetectSyntax.go index 18b840aaf1d..c636b4680b2 100644 --- a/service/comprehend/api_op_DetectSyntax.go +++ b/service/comprehend/api_op_DetectSyntax.go @@ -50,7 +50,7 @@ type DetectSyntaxOutput struct { // provides the text, the token type, where the text begins and ends, and the level // of confidence that Amazon Comprehend has that the token is correct. For a list // of token types, see how-syntax. - SyntaxTokens []*types.SyntaxToken + SyntaxTokens []types.SyntaxToken // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_ListDocumentClassificationJobs.go b/service/comprehend/api_op_ListDocumentClassificationJobs.go index 0590b2fa305..b854a4e7175 100644 --- a/service/comprehend/api_op_ListDocumentClassificationJobs.go +++ b/service/comprehend/api_op_ListDocumentClassificationJobs.go @@ -44,7 +44,7 @@ type ListDocumentClassificationJobsInput struct { type ListDocumentClassificationJobsOutput struct { // A list containing the properties of each job returned. - DocumentClassificationJobPropertiesList []*types.DocumentClassificationJobProperties + DocumentClassificationJobPropertiesList []types.DocumentClassificationJobProperties // Identifies the next page of results to return. NextToken *string diff --git a/service/comprehend/api_op_ListDocumentClassifiers.go b/service/comprehend/api_op_ListDocumentClassifiers.go index 70a369459a7..689ee228fa7 100644 --- a/service/comprehend/api_op_ListDocumentClassifiers.go +++ b/service/comprehend/api_op_ListDocumentClassifiers.go @@ -44,7 +44,7 @@ type ListDocumentClassifiersInput struct { type ListDocumentClassifiersOutput struct { // A list containing the properties of each job returned. - DocumentClassifierPropertiesList []*types.DocumentClassifierProperties + DocumentClassifierPropertiesList []types.DocumentClassifierProperties // Identifies the next page of results to return. NextToken *string diff --git a/service/comprehend/api_op_ListDominantLanguageDetectionJobs.go b/service/comprehend/api_op_ListDominantLanguageDetectionJobs.go index 63684317452..ca9c611dbb4 100644 --- a/service/comprehend/api_op_ListDominantLanguageDetectionJobs.go +++ b/service/comprehend/api_op_ListDominantLanguageDetectionJobs.go @@ -44,7 +44,7 @@ type ListDominantLanguageDetectionJobsInput struct { type ListDominantLanguageDetectionJobsOutput struct { // A list containing the properties of each job that is returned. - DominantLanguageDetectionJobPropertiesList []*types.DominantLanguageDetectionJobProperties + DominantLanguageDetectionJobPropertiesList []types.DominantLanguageDetectionJobProperties // Identifies the next page of results to return. NextToken *string diff --git a/service/comprehend/api_op_ListEndpoints.go b/service/comprehend/api_op_ListEndpoints.go index 62f28ef5f30..dbdf3a9838e 100644 --- a/service/comprehend/api_op_ListEndpoints.go +++ b/service/comprehend/api_op_ListEndpoints.go @@ -45,7 +45,7 @@ type ListEndpointsOutput struct { // Displays a list of endpoint properties being retrieved by the service in // response to the request. - EndpointPropertiesList []*types.EndpointProperties + EndpointPropertiesList []types.EndpointProperties // Identifies the next page of results to return. NextToken *string diff --git a/service/comprehend/api_op_ListEntitiesDetectionJobs.go b/service/comprehend/api_op_ListEntitiesDetectionJobs.go index 86d9e7ed877..6468d705a31 100644 --- a/service/comprehend/api_op_ListEntitiesDetectionJobs.go +++ b/service/comprehend/api_op_ListEntitiesDetectionJobs.go @@ -44,7 +44,7 @@ type ListEntitiesDetectionJobsInput struct { type ListEntitiesDetectionJobsOutput struct { // A list containing the properties of each job that is returned. - EntitiesDetectionJobPropertiesList []*types.EntitiesDetectionJobProperties + EntitiesDetectionJobPropertiesList []types.EntitiesDetectionJobProperties // Identifies the next page of results to return. NextToken *string diff --git a/service/comprehend/api_op_ListEntityRecognizers.go b/service/comprehend/api_op_ListEntityRecognizers.go index 237063ff1a1..af0afc3078c 100644 --- a/service/comprehend/api_op_ListEntityRecognizers.go +++ b/service/comprehend/api_op_ListEntityRecognizers.go @@ -48,7 +48,7 @@ type ListEntityRecognizersInput struct { type ListEntityRecognizersOutput struct { // The list of properties of an entity recognizer. - EntityRecognizerPropertiesList []*types.EntityRecognizerProperties + EntityRecognizerPropertiesList []types.EntityRecognizerProperties // Identifies the next page of results to return. NextToken *string diff --git a/service/comprehend/api_op_ListKeyPhrasesDetectionJobs.go b/service/comprehend/api_op_ListKeyPhrasesDetectionJobs.go index ad0ccaad612..95be5b94879 100644 --- a/service/comprehend/api_op_ListKeyPhrasesDetectionJobs.go +++ b/service/comprehend/api_op_ListKeyPhrasesDetectionJobs.go @@ -44,7 +44,7 @@ type ListKeyPhrasesDetectionJobsInput struct { type ListKeyPhrasesDetectionJobsOutput struct { // A list containing the properties of each job that is returned. - KeyPhrasesDetectionJobPropertiesList []*types.KeyPhrasesDetectionJobProperties + KeyPhrasesDetectionJobPropertiesList []types.KeyPhrasesDetectionJobProperties // Identifies the next page of results to return. NextToken *string diff --git a/service/comprehend/api_op_ListPiiEntitiesDetectionJobs.go b/service/comprehend/api_op_ListPiiEntitiesDetectionJobs.go index 15be831fc57..931953c1227 100644 --- a/service/comprehend/api_op_ListPiiEntitiesDetectionJobs.go +++ b/service/comprehend/api_op_ListPiiEntitiesDetectionJobs.go @@ -47,7 +47,7 @@ type ListPiiEntitiesDetectionJobsOutput struct { NextToken *string // A list containing the properties of each job that is returned. - PiiEntitiesDetectionJobPropertiesList []*types.PiiEntitiesDetectionJobProperties + PiiEntitiesDetectionJobPropertiesList []types.PiiEntitiesDetectionJobProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_ListSentimentDetectionJobs.go b/service/comprehend/api_op_ListSentimentDetectionJobs.go index d7a47965c58..46471295bb7 100644 --- a/service/comprehend/api_op_ListSentimentDetectionJobs.go +++ b/service/comprehend/api_op_ListSentimentDetectionJobs.go @@ -47,7 +47,7 @@ type ListSentimentDetectionJobsOutput struct { NextToken *string // A list containing the properties of each job that is returned. - SentimentDetectionJobPropertiesList []*types.SentimentDetectionJobProperties + SentimentDetectionJobPropertiesList []types.SentimentDetectionJobProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_ListTagsForResource.go b/service/comprehend/api_op_ListTagsForResource.go index eedf6fbb556..437e2ed53a3 100644 --- a/service/comprehend/api_op_ListTagsForResource.go +++ b/service/comprehend/api_op_ListTagsForResource.go @@ -46,7 +46,7 @@ type ListTagsForResourceOutput struct { // key-value pair that adds as a metadata to a resource used by Amazon Comprehend. // For example, a tag with "Sales" as the key might be added to a resource to // indicate its use by the sales department. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_ListTopicsDetectionJobs.go b/service/comprehend/api_op_ListTopicsDetectionJobs.go index 17dc6f825e3..6caddc285a5 100644 --- a/service/comprehend/api_op_ListTopicsDetectionJobs.go +++ b/service/comprehend/api_op_ListTopicsDetectionJobs.go @@ -47,7 +47,7 @@ type ListTopicsDetectionJobsOutput struct { NextToken *string // A list containing the properties of each job that is returned. - TopicsDetectionJobPropertiesList []*types.TopicsDetectionJobProperties + TopicsDetectionJobPropertiesList []types.TopicsDetectionJobProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehend/api_op_TagResource.go b/service/comprehend/api_op_TagResource.go index 3458a906a72..6e3c80217cd 100644 --- a/service/comprehend/api_op_TagResource.go +++ b/service/comprehend/api_op_TagResource.go @@ -43,7 +43,7 @@ type TagResourceInput struct { // resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/comprehend/api_op_UntagResource.go b/service/comprehend/api_op_UntagResource.go index 9d3bfedb6af..e6fcb73e99b 100644 --- a/service/comprehend/api_op_UntagResource.go +++ b/service/comprehend/api_op_UntagResource.go @@ -40,7 +40,7 @@ type UntagResourceInput struct { // cannot be duplicated for a particular resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/comprehend/deserializers.go b/service/comprehend/deserializers.go index 96b75cde555..e62c472c251 100644 --- a/service/comprehend/deserializers.go +++ b/service/comprehend/deserializers.go @@ -7368,7 +7368,7 @@ func awsAwsjson11_deserializeErrorUnsupportedLanguageException(response *smithyh return output } -func awsAwsjson11_deserializeDocumentAttributeNamesList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttributeNamesList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7381,21 +7381,21 @@ func awsAwsjson11_deserializeDocumentAttributeNamesList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeNamesListItem to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7437,7 +7437,7 @@ func awsAwsjson11_deserializeDocumentAugmentedManifestsListItem(v **types.Augmen if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -7731,7 +7731,7 @@ func awsAwsjson11_deserializeDocumentBatchItemError(v **types.BatchItemError, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -7740,7 +7740,7 @@ func awsAwsjson11_deserializeDocumentBatchItemError(v **types.BatchItemError, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "Index": @@ -7765,7 +7765,7 @@ func awsAwsjson11_deserializeDocumentBatchItemError(v **types.BatchItemError, va return nil } -func awsAwsjson11_deserializeDocumentBatchItemErrorList(v *[]*types.BatchItemError, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchItemErrorList(v *[]types.BatchItemError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7778,18 +7778,20 @@ func awsAwsjson11_deserializeDocumentBatchItemErrorList(v *[]*types.BatchItemErr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchItemError + var cv []types.BatchItemError if *v == nil { - cv = []*types.BatchItemError{} + cv = []types.BatchItemError{} } else { cv = *v } for _, value := range shape { - var col *types.BatchItemError - if err := awsAwsjson11_deserializeDocumentBatchItemError(&col, value); err != nil { + var col types.BatchItemError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchItemError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7825,7 +7827,7 @@ func awsAwsjson11_deserializeDocumentBatchSizeLimitExceededException(v **types.B if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7869,7 +7871,7 @@ func awsAwsjson11_deserializeDocumentClassifierEvaluationMetrics(v **types.Class if err != nil { return err } - sv.Accuracy = &f64 + sv.Accuracy = ptr.Float64(f64) } case "F1Score": @@ -7882,7 +7884,7 @@ func awsAwsjson11_deserializeDocumentClassifierEvaluationMetrics(v **types.Class if err != nil { return err } - sv.F1Score = &f64 + sv.F1Score = ptr.Float64(f64) } case "HammingLoss": @@ -7895,7 +7897,7 @@ func awsAwsjson11_deserializeDocumentClassifierEvaluationMetrics(v **types.Class if err != nil { return err } - sv.HammingLoss = &f64 + sv.HammingLoss = ptr.Float64(f64) } case "MicroF1Score": @@ -7908,7 +7910,7 @@ func awsAwsjson11_deserializeDocumentClassifierEvaluationMetrics(v **types.Class if err != nil { return err } - sv.MicroF1Score = &f64 + sv.MicroF1Score = ptr.Float64(f64) } case "MicroPrecision": @@ -7921,7 +7923,7 @@ func awsAwsjson11_deserializeDocumentClassifierEvaluationMetrics(v **types.Class if err != nil { return err } - sv.MicroPrecision = &f64 + sv.MicroPrecision = ptr.Float64(f64) } case "MicroRecall": @@ -7934,7 +7936,7 @@ func awsAwsjson11_deserializeDocumentClassifierEvaluationMetrics(v **types.Class if err != nil { return err } - sv.MicroRecall = &f64 + sv.MicroRecall = ptr.Float64(f64) } case "Precision": @@ -7947,7 +7949,7 @@ func awsAwsjson11_deserializeDocumentClassifierEvaluationMetrics(v **types.Class if err != nil { return err } - sv.Precision = &f64 + sv.Precision = ptr.Float64(f64) } case "Recall": @@ -7960,7 +7962,7 @@ func awsAwsjson11_deserializeDocumentClassifierEvaluationMetrics(v **types.Class if err != nil { return err } - sv.Recall = &f64 + sv.Recall = ptr.Float64(f64) } default: @@ -8075,7 +8077,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8115,7 +8117,7 @@ func awsAwsjson11_deserializeDocumentDocumentClass(v **types.DocumentClass, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Score": @@ -8168,7 +8170,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassificationJobProperties(v **typ if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } case "DocumentClassifierArn": @@ -8177,7 +8179,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassificationJobProperties(v **typ if !ok { return fmt.Errorf("expected DocumentClassifierArn to be of type string, got %T instead", value) } - sv.DocumentClassifierArn = &jtv + sv.DocumentClassifierArn = ptr.String(jtv) } case "EndTime": @@ -8204,7 +8206,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassificationJobProperties(v **typ if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobName": @@ -8213,7 +8215,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassificationJobProperties(v **typ if !ok { return fmt.Errorf("expected JobName to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "JobStatus": @@ -8231,7 +8233,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassificationJobProperties(v **typ if !ok { return fmt.Errorf("expected AnyLengthString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "OutputDataConfig": @@ -8258,7 +8260,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassificationJobProperties(v **typ if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } case "VpcConfig": @@ -8275,7 +8277,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassificationJobProperties(v **typ return nil } -func awsAwsjson11_deserializeDocumentDocumentClassificationJobPropertiesList(v *[]*types.DocumentClassificationJobProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentClassificationJobPropertiesList(v *[]types.DocumentClassificationJobProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8288,18 +8290,20 @@ func awsAwsjson11_deserializeDocumentDocumentClassificationJobPropertiesList(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentClassificationJobProperties + var cv []types.DocumentClassificationJobProperties if *v == nil { - cv = []*types.DocumentClassificationJobProperties{} + cv = []types.DocumentClassificationJobProperties{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentClassificationJobProperties - if err := awsAwsjson11_deserializeDocumentDocumentClassificationJobProperties(&col, value); err != nil { + var col types.DocumentClassificationJobProperties + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDocumentClassificationJobProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8307,7 +8311,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassificationJobPropertiesList(v * return nil } -func awsAwsjson11_deserializeDocumentDocumentClassifierAugmentedManifestsList(v *[]*types.AugmentedManifestsListItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentClassifierAugmentedManifestsList(v *[]types.AugmentedManifestsListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8320,18 +8324,20 @@ func awsAwsjson11_deserializeDocumentDocumentClassifierAugmentedManifestsList(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AugmentedManifestsListItem + var cv []types.AugmentedManifestsListItem if *v == nil { - cv = []*types.AugmentedManifestsListItem{} + cv = []types.AugmentedManifestsListItem{} } else { cv = *v } for _, value := range shape { - var col *types.AugmentedManifestsListItem - if err := awsAwsjson11_deserializeDocumentAugmentedManifestsListItem(&col, value); err != nil { + var col types.AugmentedManifestsListItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAugmentedManifestsListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8381,7 +8387,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassifierInputDataConfig(v **types if !ok { return fmt.Errorf("expected LabelDelimiter to be of type string, got %T instead", value) } - sv.LabelDelimiter = &jtv + sv.LabelDelimiter = ptr.String(jtv) } case "S3Uri": @@ -8390,7 +8396,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassifierInputDataConfig(v **types if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -8430,7 +8436,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassifierOutputDataConfig(v **type if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "S3Uri": @@ -8439,7 +8445,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassifierOutputDataConfig(v **type if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -8484,7 +8490,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassifierProperties(v **types.Docu if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } case "DocumentClassifierArn": @@ -8493,7 +8499,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassifierProperties(v **types.Docu if !ok { return fmt.Errorf("expected DocumentClassifierArn to be of type string, got %T instead", value) } - sv.DocumentClassifierArn = &jtv + sv.DocumentClassifierArn = ptr.String(jtv) } case "EndTime": @@ -8529,7 +8535,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassifierProperties(v **types.Docu if !ok { return fmt.Errorf("expected AnyLengthString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Mode": @@ -8600,7 +8606,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassifierProperties(v **types.Docu if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } case "VpcConfig": @@ -8617,7 +8623,7 @@ func awsAwsjson11_deserializeDocumentDocumentClassifierProperties(v **types.Docu return nil } -func awsAwsjson11_deserializeDocumentDocumentClassifierPropertiesList(v *[]*types.DocumentClassifierProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentClassifierPropertiesList(v *[]types.DocumentClassifierProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8630,18 +8636,20 @@ func awsAwsjson11_deserializeDocumentDocumentClassifierPropertiesList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentClassifierProperties + var cv []types.DocumentClassifierProperties if *v == nil { - cv = []*types.DocumentClassifierProperties{} + cv = []types.DocumentClassifierProperties{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentClassifierProperties - if err := awsAwsjson11_deserializeDocumentDocumentClassifierProperties(&col, value); err != nil { + var col types.DocumentClassifierProperties + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDocumentClassifierProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8677,7 +8685,7 @@ func awsAwsjson11_deserializeDocumentDocumentLabel(v **types.DocumentLabel, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Score": @@ -8730,7 +8738,7 @@ func awsAwsjson11_deserializeDocumentDominantLanguage(v **types.DominantLanguage if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LanguageCode = &jtv + sv.LanguageCode = ptr.String(jtv) } case "Score": @@ -8783,7 +8791,7 @@ func awsAwsjson11_deserializeDocumentDominantLanguageDetectionJobProperties(v ** if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } case "EndTime": @@ -8810,7 +8818,7 @@ func awsAwsjson11_deserializeDocumentDominantLanguageDetectionJobProperties(v ** if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobName": @@ -8819,7 +8827,7 @@ func awsAwsjson11_deserializeDocumentDominantLanguageDetectionJobProperties(v ** if !ok { return fmt.Errorf("expected JobName to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "JobStatus": @@ -8837,7 +8845,7 @@ func awsAwsjson11_deserializeDocumentDominantLanguageDetectionJobProperties(v ** if !ok { return fmt.Errorf("expected AnyLengthString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "OutputDataConfig": @@ -8864,7 +8872,7 @@ func awsAwsjson11_deserializeDocumentDominantLanguageDetectionJobProperties(v ** if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } case "VpcConfig": @@ -8881,7 +8889,7 @@ func awsAwsjson11_deserializeDocumentDominantLanguageDetectionJobProperties(v ** return nil } -func awsAwsjson11_deserializeDocumentDominantLanguageDetectionJobPropertiesList(v *[]*types.DominantLanguageDetectionJobProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentDominantLanguageDetectionJobPropertiesList(v *[]types.DominantLanguageDetectionJobProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8894,18 +8902,20 @@ func awsAwsjson11_deserializeDocumentDominantLanguageDetectionJobPropertiesList( return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DominantLanguageDetectionJobProperties + var cv []types.DominantLanguageDetectionJobProperties if *v == nil { - cv = []*types.DominantLanguageDetectionJobProperties{} + cv = []types.DominantLanguageDetectionJobProperties{} } else { cv = *v } for _, value := range shape { - var col *types.DominantLanguageDetectionJobProperties - if err := awsAwsjson11_deserializeDocumentDominantLanguageDetectionJobProperties(&col, value); err != nil { + var col types.DominantLanguageDetectionJobProperties + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDominantLanguageDetectionJobProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8980,7 +8990,7 @@ func awsAwsjson11_deserializeDocumentEndpointProperties(v **types.EndpointProper if !ok { return fmt.Errorf("expected ComprehendEndpointArn to be of type string, got %T instead", value) } - sv.EndpointArn = &jtv + sv.EndpointArn = ptr.String(jtv) } case "LastModifiedTime": @@ -9002,7 +9012,7 @@ func awsAwsjson11_deserializeDocumentEndpointProperties(v **types.EndpointProper if !ok { return fmt.Errorf("expected AnyLengthString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ModelArn": @@ -9011,7 +9021,7 @@ func awsAwsjson11_deserializeDocumentEndpointProperties(v **types.EndpointProper if !ok { return fmt.Errorf("expected ComprehendModelArn to be of type string, got %T instead", value) } - sv.ModelArn = &jtv + sv.ModelArn = ptr.String(jtv) } case "Status": @@ -9032,7 +9042,7 @@ func awsAwsjson11_deserializeDocumentEndpointProperties(v **types.EndpointProper return nil } -func awsAwsjson11_deserializeDocumentEndpointPropertiesList(v *[]*types.EndpointProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentEndpointPropertiesList(v *[]types.EndpointProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9045,18 +9055,20 @@ func awsAwsjson11_deserializeDocumentEndpointPropertiesList(v *[]*types.Endpoint return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EndpointProperties + var cv []types.EndpointProperties if *v == nil { - cv = []*types.EndpointProperties{} + cv = []types.EndpointProperties{} } else { cv = *v } for _, value := range shape { - var col *types.EndpointProperties - if err := awsAwsjson11_deserializeDocumentEndpointProperties(&col, value); err != nil { + var col types.EndpointProperties + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEndpointProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9092,7 +9104,7 @@ func awsAwsjson11_deserializeDocumentEntitiesDetectionJobProperties(v **types.En if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } case "EndTime": @@ -9114,7 +9126,7 @@ func awsAwsjson11_deserializeDocumentEntitiesDetectionJobProperties(v **types.En if !ok { return fmt.Errorf("expected EntityRecognizerArn to be of type string, got %T instead", value) } - sv.EntityRecognizerArn = &jtv + sv.EntityRecognizerArn = ptr.String(jtv) } case "InputDataConfig": @@ -9128,7 +9140,7 @@ func awsAwsjson11_deserializeDocumentEntitiesDetectionJobProperties(v **types.En if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobName": @@ -9137,7 +9149,7 @@ func awsAwsjson11_deserializeDocumentEntitiesDetectionJobProperties(v **types.En if !ok { return fmt.Errorf("expected JobName to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "JobStatus": @@ -9164,7 +9176,7 @@ func awsAwsjson11_deserializeDocumentEntitiesDetectionJobProperties(v **types.En if !ok { return fmt.Errorf("expected AnyLengthString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "OutputDataConfig": @@ -9191,7 +9203,7 @@ func awsAwsjson11_deserializeDocumentEntitiesDetectionJobProperties(v **types.En if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } case "VpcConfig": @@ -9208,7 +9220,7 @@ func awsAwsjson11_deserializeDocumentEntitiesDetectionJobProperties(v **types.En return nil } -func awsAwsjson11_deserializeDocumentEntitiesDetectionJobPropertiesList(v *[]*types.EntitiesDetectionJobProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentEntitiesDetectionJobPropertiesList(v *[]types.EntitiesDetectionJobProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9221,18 +9233,20 @@ func awsAwsjson11_deserializeDocumentEntitiesDetectionJobPropertiesList(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EntitiesDetectionJobProperties + var cv []types.EntitiesDetectionJobProperties if *v == nil { - cv = []*types.EntitiesDetectionJobProperties{} + cv = []types.EntitiesDetectionJobProperties{} } else { cv = *v } for _, value := range shape { - var col *types.EntitiesDetectionJobProperties - if err := awsAwsjson11_deserializeDocumentEntitiesDetectionJobProperties(&col, value); err != nil { + var col types.EntitiesDetectionJobProperties + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEntitiesDetectionJobProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9307,7 +9321,7 @@ func awsAwsjson11_deserializeDocumentEntity(v **types.Entity, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } case "Type": @@ -9356,7 +9370,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerAnnotations(v **types.Entit if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -9368,7 +9382,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerAnnotations(v **types.Entit return nil } -func awsAwsjson11_deserializeDocumentEntityRecognizerAugmentedManifestsList(v *[]*types.AugmentedManifestsListItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentEntityRecognizerAugmentedManifestsList(v *[]types.AugmentedManifestsListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9381,18 +9395,20 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerAugmentedManifestsList(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AugmentedManifestsListItem + var cv []types.AugmentedManifestsListItem if *v == nil { - cv = []*types.AugmentedManifestsListItem{} + cv = []types.AugmentedManifestsListItem{} } else { cv = *v } for _, value := range shape { - var col *types.AugmentedManifestsListItem - if err := awsAwsjson11_deserializeDocumentAugmentedManifestsListItem(&col, value); err != nil { + var col types.AugmentedManifestsListItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAugmentedManifestsListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9428,7 +9444,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerDocuments(v **types.EntityR if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -9468,7 +9484,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerEntityList(v **types.Entity if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -9512,7 +9528,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerEvaluationMetrics(v **types if err != nil { return err } - sv.F1Score = &f64 + sv.F1Score = ptr.Float64(f64) } case "Precision": @@ -9525,7 +9541,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerEvaluationMetrics(v **types if err != nil { return err } - sv.Precision = &f64 + sv.Precision = ptr.Float64(f64) } case "Recall": @@ -9538,7 +9554,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerEvaluationMetrics(v **types if err != nil { return err } - sv.Recall = &f64 + sv.Recall = ptr.Float64(f64) } default: @@ -9682,7 +9698,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerMetadata(v **types.EntityRe return nil } -func awsAwsjson11_deserializeDocumentEntityRecognizerMetadataEntityTypesList(v *[]*types.EntityRecognizerMetadataEntityTypesListItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentEntityRecognizerMetadataEntityTypesList(v *[]types.EntityRecognizerMetadataEntityTypesListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9695,18 +9711,20 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerMetadataEntityTypesList(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EntityRecognizerMetadataEntityTypesListItem + var cv []types.EntityRecognizerMetadataEntityTypesListItem if *v == nil { - cv = []*types.EntityRecognizerMetadataEntityTypesListItem{} + cv = []types.EntityRecognizerMetadataEntityTypesListItem{} } else { cv = *v } for _, value := range shape { - var col *types.EntityRecognizerMetadataEntityTypesListItem - if err := awsAwsjson11_deserializeDocumentEntityRecognizerMetadataEntityTypesListItem(&col, value); err != nil { + var col types.EntityRecognizerMetadataEntityTypesListItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEntityRecognizerMetadataEntityTypesListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9760,7 +9778,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerMetadataEntityTypesListItem if !ok { return fmt.Errorf("expected AnyLengthString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -9800,7 +9818,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerProperties(v **types.Entity if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } case "EndTime": @@ -9822,7 +9840,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerProperties(v **types.Entity if !ok { return fmt.Errorf("expected EntityRecognizerArn to be of type string, got %T instead", value) } - sv.EntityRecognizerArn = &jtv + sv.EntityRecognizerArn = ptr.String(jtv) } case "InputDataConfig": @@ -9845,7 +9863,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerProperties(v **types.Entity if !ok { return fmt.Errorf("expected AnyLengthString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RecognizerMetadata": @@ -9907,7 +9925,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerProperties(v **types.Entity if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } case "VpcConfig": @@ -9924,7 +9942,7 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerProperties(v **types.Entity return nil } -func awsAwsjson11_deserializeDocumentEntityRecognizerPropertiesList(v *[]*types.EntityRecognizerProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentEntityRecognizerPropertiesList(v *[]types.EntityRecognizerProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9937,18 +9955,20 @@ func awsAwsjson11_deserializeDocumentEntityRecognizerPropertiesList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EntityRecognizerProperties + var cv []types.EntityRecognizerProperties if *v == nil { - cv = []*types.EntityRecognizerProperties{} + cv = []types.EntityRecognizerProperties{} } else { cv = *v } for _, value := range shape { - var col *types.EntityRecognizerProperties - if err := awsAwsjson11_deserializeDocumentEntityRecognizerProperties(&col, value); err != nil { + var col types.EntityRecognizerProperties + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEntityRecognizerProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9988,7 +10008,7 @@ func awsAwsjson11_deserializeDocumentEntityTypesEvaluationMetrics(v **types.Enti if err != nil { return err } - sv.F1Score = &f64 + sv.F1Score = ptr.Float64(f64) } case "Precision": @@ -10001,7 +10021,7 @@ func awsAwsjson11_deserializeDocumentEntityTypesEvaluationMetrics(v **types.Enti if err != nil { return err } - sv.Precision = &f64 + sv.Precision = ptr.Float64(f64) } case "Recall": @@ -10014,7 +10034,7 @@ func awsAwsjson11_deserializeDocumentEntityTypesEvaluationMetrics(v **types.Enti if err != nil { return err } - sv.Recall = &f64 + sv.Recall = ptr.Float64(f64) } default: @@ -10026,7 +10046,7 @@ func awsAwsjson11_deserializeDocumentEntityTypesEvaluationMetrics(v **types.Enti return nil } -func awsAwsjson11_deserializeDocumentEntityTypesList(v *[]*types.EntityTypesListItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentEntityTypesList(v *[]types.EntityTypesListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10039,18 +10059,20 @@ func awsAwsjson11_deserializeDocumentEntityTypesList(v *[]*types.EntityTypesList return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EntityTypesListItem + var cv []types.EntityTypesListItem if *v == nil { - cv = []*types.EntityTypesListItem{} + cv = []types.EntityTypesListItem{} } else { cv = *v } for _, value := range shape { - var col *types.EntityTypesListItem - if err := awsAwsjson11_deserializeDocumentEntityTypesListItem(&col, value); err != nil { + var col types.EntityTypesListItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEntityTypesListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10086,7 +10108,7 @@ func awsAwsjson11_deserializeDocumentEntityTypesListItem(v **types.EntityTypesLi if !ok { return fmt.Errorf("expected EntityTypeName to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -10135,7 +10157,7 @@ func awsAwsjson11_deserializeDocumentInputDataConfig(v **types.InputDataConfig, if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -10175,7 +10197,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10215,7 +10237,7 @@ func awsAwsjson11_deserializeDocumentInvalidFilterException(v **types.InvalidFil if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10255,7 +10277,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10295,7 +10317,7 @@ func awsAwsjson11_deserializeDocumentJobNotFoundException(v **types.JobNotFoundE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10374,7 +10396,7 @@ func awsAwsjson11_deserializeDocumentKeyPhrase(v **types.KeyPhrase, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } default: @@ -10414,7 +10436,7 @@ func awsAwsjson11_deserializeDocumentKeyPhrasesDetectionJobProperties(v **types. if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } case "EndTime": @@ -10441,7 +10463,7 @@ func awsAwsjson11_deserializeDocumentKeyPhrasesDetectionJobProperties(v **types. if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobName": @@ -10450,7 +10472,7 @@ func awsAwsjson11_deserializeDocumentKeyPhrasesDetectionJobProperties(v **types. if !ok { return fmt.Errorf("expected JobName to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "JobStatus": @@ -10477,7 +10499,7 @@ func awsAwsjson11_deserializeDocumentKeyPhrasesDetectionJobProperties(v **types. if !ok { return fmt.Errorf("expected AnyLengthString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "OutputDataConfig": @@ -10504,7 +10526,7 @@ func awsAwsjson11_deserializeDocumentKeyPhrasesDetectionJobProperties(v **types. if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } case "VpcConfig": @@ -10521,7 +10543,7 @@ func awsAwsjson11_deserializeDocumentKeyPhrasesDetectionJobProperties(v **types. return nil } -func awsAwsjson11_deserializeDocumentKeyPhrasesDetectionJobPropertiesList(v *[]*types.KeyPhrasesDetectionJobProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentKeyPhrasesDetectionJobPropertiesList(v *[]types.KeyPhrasesDetectionJobProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10534,18 +10556,20 @@ func awsAwsjson11_deserializeDocumentKeyPhrasesDetectionJobPropertiesList(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyPhrasesDetectionJobProperties + var cv []types.KeyPhrasesDetectionJobProperties if *v == nil { - cv = []*types.KeyPhrasesDetectionJobProperties{} + cv = []types.KeyPhrasesDetectionJobProperties{} } else { cv = *v } for _, value := range shape { - var col *types.KeyPhrasesDetectionJobProperties - if err := awsAwsjson11_deserializeDocumentKeyPhrasesDetectionJobProperties(&col, value); err != nil { + var col types.KeyPhrasesDetectionJobProperties + destAddr := &col + if err := awsAwsjson11_deserializeDocumentKeyPhrasesDetectionJobProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10581,7 +10605,7 @@ func awsAwsjson11_deserializeDocumentKmsKeyValidationException(v **types.KmsKeyV if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10593,7 +10617,7 @@ func awsAwsjson11_deserializeDocumentKmsKeyValidationException(v **types.KmsKeyV return nil } -func awsAwsjson11_deserializeDocumentListOfClasses(v *[]*types.DocumentClass, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfClasses(v *[]types.DocumentClass, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10606,18 +10630,20 @@ func awsAwsjson11_deserializeDocumentListOfClasses(v *[]*types.DocumentClass, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentClass + var cv []types.DocumentClass if *v == nil { - cv = []*types.DocumentClass{} + cv = []types.DocumentClass{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentClass - if err := awsAwsjson11_deserializeDocumentDocumentClass(&col, value); err != nil { + var col types.DocumentClass + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDocumentClass(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10625,7 +10651,7 @@ func awsAwsjson11_deserializeDocumentListOfClasses(v *[]*types.DocumentClass, va return nil } -func awsAwsjson11_deserializeDocumentListOfDetectDominantLanguageResult(v *[]*types.BatchDetectDominantLanguageItemResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfDetectDominantLanguageResult(v *[]types.BatchDetectDominantLanguageItemResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10638,18 +10664,20 @@ func awsAwsjson11_deserializeDocumentListOfDetectDominantLanguageResult(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchDetectDominantLanguageItemResult + var cv []types.BatchDetectDominantLanguageItemResult if *v == nil { - cv = []*types.BatchDetectDominantLanguageItemResult{} + cv = []types.BatchDetectDominantLanguageItemResult{} } else { cv = *v } for _, value := range shape { - var col *types.BatchDetectDominantLanguageItemResult - if err := awsAwsjson11_deserializeDocumentBatchDetectDominantLanguageItemResult(&col, value); err != nil { + var col types.BatchDetectDominantLanguageItemResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchDetectDominantLanguageItemResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10657,7 +10685,7 @@ func awsAwsjson11_deserializeDocumentListOfDetectDominantLanguageResult(v *[]*ty return nil } -func awsAwsjson11_deserializeDocumentListOfDetectEntitiesResult(v *[]*types.BatchDetectEntitiesItemResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfDetectEntitiesResult(v *[]types.BatchDetectEntitiesItemResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10670,18 +10698,20 @@ func awsAwsjson11_deserializeDocumentListOfDetectEntitiesResult(v *[]*types.Batc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchDetectEntitiesItemResult + var cv []types.BatchDetectEntitiesItemResult if *v == nil { - cv = []*types.BatchDetectEntitiesItemResult{} + cv = []types.BatchDetectEntitiesItemResult{} } else { cv = *v } for _, value := range shape { - var col *types.BatchDetectEntitiesItemResult - if err := awsAwsjson11_deserializeDocumentBatchDetectEntitiesItemResult(&col, value); err != nil { + var col types.BatchDetectEntitiesItemResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchDetectEntitiesItemResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10689,7 +10719,7 @@ func awsAwsjson11_deserializeDocumentListOfDetectEntitiesResult(v *[]*types.Batc return nil } -func awsAwsjson11_deserializeDocumentListOfDetectKeyPhrasesResult(v *[]*types.BatchDetectKeyPhrasesItemResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfDetectKeyPhrasesResult(v *[]types.BatchDetectKeyPhrasesItemResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10702,18 +10732,20 @@ func awsAwsjson11_deserializeDocumentListOfDetectKeyPhrasesResult(v *[]*types.Ba return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchDetectKeyPhrasesItemResult + var cv []types.BatchDetectKeyPhrasesItemResult if *v == nil { - cv = []*types.BatchDetectKeyPhrasesItemResult{} + cv = []types.BatchDetectKeyPhrasesItemResult{} } else { cv = *v } for _, value := range shape { - var col *types.BatchDetectKeyPhrasesItemResult - if err := awsAwsjson11_deserializeDocumentBatchDetectKeyPhrasesItemResult(&col, value); err != nil { + var col types.BatchDetectKeyPhrasesItemResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchDetectKeyPhrasesItemResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10721,7 +10753,7 @@ func awsAwsjson11_deserializeDocumentListOfDetectKeyPhrasesResult(v *[]*types.Ba return nil } -func awsAwsjson11_deserializeDocumentListOfDetectSentimentResult(v *[]*types.BatchDetectSentimentItemResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfDetectSentimentResult(v *[]types.BatchDetectSentimentItemResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10734,18 +10766,20 @@ func awsAwsjson11_deserializeDocumentListOfDetectSentimentResult(v *[]*types.Bat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchDetectSentimentItemResult + var cv []types.BatchDetectSentimentItemResult if *v == nil { - cv = []*types.BatchDetectSentimentItemResult{} + cv = []types.BatchDetectSentimentItemResult{} } else { cv = *v } for _, value := range shape { - var col *types.BatchDetectSentimentItemResult - if err := awsAwsjson11_deserializeDocumentBatchDetectSentimentItemResult(&col, value); err != nil { + var col types.BatchDetectSentimentItemResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchDetectSentimentItemResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10753,7 +10787,7 @@ func awsAwsjson11_deserializeDocumentListOfDetectSentimentResult(v *[]*types.Bat return nil } -func awsAwsjson11_deserializeDocumentListOfDetectSyntaxResult(v *[]*types.BatchDetectSyntaxItemResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfDetectSyntaxResult(v *[]types.BatchDetectSyntaxItemResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10766,18 +10800,20 @@ func awsAwsjson11_deserializeDocumentListOfDetectSyntaxResult(v *[]*types.BatchD return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchDetectSyntaxItemResult + var cv []types.BatchDetectSyntaxItemResult if *v == nil { - cv = []*types.BatchDetectSyntaxItemResult{} + cv = []types.BatchDetectSyntaxItemResult{} } else { cv = *v } for _, value := range shape { - var col *types.BatchDetectSyntaxItemResult - if err := awsAwsjson11_deserializeDocumentBatchDetectSyntaxItemResult(&col, value); err != nil { + var col types.BatchDetectSyntaxItemResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchDetectSyntaxItemResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10785,7 +10821,7 @@ func awsAwsjson11_deserializeDocumentListOfDetectSyntaxResult(v *[]*types.BatchD return nil } -func awsAwsjson11_deserializeDocumentListOfDominantLanguages(v *[]*types.DominantLanguage, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfDominantLanguages(v *[]types.DominantLanguage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10798,18 +10834,20 @@ func awsAwsjson11_deserializeDocumentListOfDominantLanguages(v *[]*types.Dominan return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DominantLanguage + var cv []types.DominantLanguage if *v == nil { - cv = []*types.DominantLanguage{} + cv = []types.DominantLanguage{} } else { cv = *v } for _, value := range shape { - var col *types.DominantLanguage - if err := awsAwsjson11_deserializeDocumentDominantLanguage(&col, value); err != nil { + var col types.DominantLanguage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDominantLanguage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10817,7 +10855,7 @@ func awsAwsjson11_deserializeDocumentListOfDominantLanguages(v *[]*types.Dominan return nil } -func awsAwsjson11_deserializeDocumentListOfEntities(v *[]*types.Entity, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfEntities(v *[]types.Entity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10830,18 +10868,20 @@ func awsAwsjson11_deserializeDocumentListOfEntities(v *[]*types.Entity, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Entity + var cv []types.Entity if *v == nil { - cv = []*types.Entity{} + cv = []types.Entity{} } else { cv = *v } for _, value := range shape { - var col *types.Entity - if err := awsAwsjson11_deserializeDocumentEntity(&col, value); err != nil { + var col types.Entity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEntity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10849,7 +10889,7 @@ func awsAwsjson11_deserializeDocumentListOfEntities(v *[]*types.Entity, value in return nil } -func awsAwsjson11_deserializeDocumentListOfKeyPhrases(v *[]*types.KeyPhrase, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfKeyPhrases(v *[]types.KeyPhrase, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10862,18 +10902,20 @@ func awsAwsjson11_deserializeDocumentListOfKeyPhrases(v *[]*types.KeyPhrase, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyPhrase + var cv []types.KeyPhrase if *v == nil { - cv = []*types.KeyPhrase{} + cv = []types.KeyPhrase{} } else { cv = *v } for _, value := range shape { - var col *types.KeyPhrase - if err := awsAwsjson11_deserializeDocumentKeyPhrase(&col, value); err != nil { + var col types.KeyPhrase + destAddr := &col + if err := awsAwsjson11_deserializeDocumentKeyPhrase(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10881,7 +10923,7 @@ func awsAwsjson11_deserializeDocumentListOfKeyPhrases(v *[]*types.KeyPhrase, val return nil } -func awsAwsjson11_deserializeDocumentListOfLabels(v *[]*types.DocumentLabel, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfLabels(v *[]types.DocumentLabel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10894,18 +10936,20 @@ func awsAwsjson11_deserializeDocumentListOfLabels(v *[]*types.DocumentLabel, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentLabel + var cv []types.DocumentLabel if *v == nil { - cv = []*types.DocumentLabel{} + cv = []types.DocumentLabel{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentLabel - if err := awsAwsjson11_deserializeDocumentDocumentLabel(&col, value); err != nil { + var col types.DocumentLabel + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDocumentLabel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10913,7 +10957,7 @@ func awsAwsjson11_deserializeDocumentListOfLabels(v *[]*types.DocumentLabel, val return nil } -func awsAwsjson11_deserializeDocumentListOfPiiEntities(v *[]*types.PiiEntity, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfPiiEntities(v *[]types.PiiEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10926,18 +10970,20 @@ func awsAwsjson11_deserializeDocumentListOfPiiEntities(v *[]*types.PiiEntity, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PiiEntity + var cv []types.PiiEntity if *v == nil { - cv = []*types.PiiEntity{} + cv = []types.PiiEntity{} } else { cv = *v } for _, value := range shape { - var col *types.PiiEntity - if err := awsAwsjson11_deserializeDocumentPiiEntity(&col, value); err != nil { + var col types.PiiEntity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPiiEntity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10981,7 +11027,7 @@ func awsAwsjson11_deserializeDocumentListOfPiiEntityTypes(v *[]types.PiiEntityTy return nil } -func awsAwsjson11_deserializeDocumentListOfSyntaxTokens(v *[]*types.SyntaxToken, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfSyntaxTokens(v *[]types.SyntaxToken, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10994,18 +11040,20 @@ func awsAwsjson11_deserializeDocumentListOfSyntaxTokens(v *[]*types.SyntaxToken, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SyntaxToken + var cv []types.SyntaxToken if *v == nil { - cv = []*types.SyntaxToken{} + cv = []types.SyntaxToken{} } else { cv = *v } for _, value := range shape { - var col *types.SyntaxToken - if err := awsAwsjson11_deserializeDocumentSyntaxToken(&col, value); err != nil { + var col types.SyntaxToken + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSyntaxToken(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11041,7 +11089,7 @@ func awsAwsjson11_deserializeDocumentOutputDataConfig(v **types.OutputDataConfig if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "S3Uri": @@ -11050,7 +11098,7 @@ func awsAwsjson11_deserializeDocumentOutputDataConfig(v **types.OutputDataConfig if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -11143,7 +11191,7 @@ func awsAwsjson11_deserializeDocumentPiiEntitiesDetectionJobProperties(v **types if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } case "EndTime": @@ -11170,7 +11218,7 @@ func awsAwsjson11_deserializeDocumentPiiEntitiesDetectionJobProperties(v **types if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobName": @@ -11179,7 +11227,7 @@ func awsAwsjson11_deserializeDocumentPiiEntitiesDetectionJobProperties(v **types if !ok { return fmt.Errorf("expected JobName to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "JobStatus": @@ -11206,7 +11254,7 @@ func awsAwsjson11_deserializeDocumentPiiEntitiesDetectionJobProperties(v **types if !ok { return fmt.Errorf("expected AnyLengthString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Mode": @@ -11250,7 +11298,7 @@ func awsAwsjson11_deserializeDocumentPiiEntitiesDetectionJobProperties(v **types return nil } -func awsAwsjson11_deserializeDocumentPiiEntitiesDetectionJobPropertiesList(v *[]*types.PiiEntitiesDetectionJobProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentPiiEntitiesDetectionJobPropertiesList(v *[]types.PiiEntitiesDetectionJobProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11263,18 +11311,20 @@ func awsAwsjson11_deserializeDocumentPiiEntitiesDetectionJobPropertiesList(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PiiEntitiesDetectionJobProperties + var cv []types.PiiEntitiesDetectionJobProperties if *v == nil { - cv = []*types.PiiEntitiesDetectionJobProperties{} + cv = []types.PiiEntitiesDetectionJobProperties{} } else { cv = *v } for _, value := range shape { - var col *types.PiiEntitiesDetectionJobProperties - if err := awsAwsjson11_deserializeDocumentPiiEntitiesDetectionJobProperties(&col, value); err != nil { + var col types.PiiEntitiesDetectionJobProperties + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPiiEntitiesDetectionJobProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11389,7 +11439,7 @@ func awsAwsjson11_deserializeDocumentPiiOutputDataConfig(v **types.PiiOutputData if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "S3Uri": @@ -11398,7 +11448,7 @@ func awsAwsjson11_deserializeDocumentPiiOutputDataConfig(v **types.PiiOutputData if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -11438,7 +11488,7 @@ func awsAwsjson11_deserializeDocumentRedactionConfig(v **types.RedactionConfig, if !ok { return fmt.Errorf("expected MaskCharacter to be of type string, got %T instead", value) } - sv.MaskCharacter = &jtv + sv.MaskCharacter = ptr.String(jtv) } case "MaskMode": @@ -11492,7 +11542,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11532,7 +11582,7 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceededException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11572,7 +11622,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11612,7 +11662,7 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11624,7 +11674,7 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso return nil } -func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11637,21 +11687,21 @@ func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11688,7 +11738,7 @@ func awsAwsjson11_deserializeDocumentSentimentDetectionJobProperties(v **types.S if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } case "EndTime": @@ -11715,7 +11765,7 @@ func awsAwsjson11_deserializeDocumentSentimentDetectionJobProperties(v **types.S if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobName": @@ -11724,7 +11774,7 @@ func awsAwsjson11_deserializeDocumentSentimentDetectionJobProperties(v **types.S if !ok { return fmt.Errorf("expected JobName to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "JobStatus": @@ -11751,7 +11801,7 @@ func awsAwsjson11_deserializeDocumentSentimentDetectionJobProperties(v **types.S if !ok { return fmt.Errorf("expected AnyLengthString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "OutputDataConfig": @@ -11778,7 +11828,7 @@ func awsAwsjson11_deserializeDocumentSentimentDetectionJobProperties(v **types.S if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } case "VpcConfig": @@ -11795,7 +11845,7 @@ func awsAwsjson11_deserializeDocumentSentimentDetectionJobProperties(v **types.S return nil } -func awsAwsjson11_deserializeDocumentSentimentDetectionJobPropertiesList(v *[]*types.SentimentDetectionJobProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentSentimentDetectionJobPropertiesList(v *[]types.SentimentDetectionJobProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11808,18 +11858,20 @@ func awsAwsjson11_deserializeDocumentSentimentDetectionJobPropertiesList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SentimentDetectionJobProperties + var cv []types.SentimentDetectionJobProperties if *v == nil { - cv = []*types.SentimentDetectionJobProperties{} + cv = []types.SentimentDetectionJobProperties{} } else { cv = *v } for _, value := range shape { - var col *types.SentimentDetectionJobProperties - if err := awsAwsjson11_deserializeDocumentSentimentDetectionJobProperties(&col, value); err != nil { + var col types.SentimentDetectionJobProperties + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSentimentDetectionJobProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11910,7 +11962,7 @@ func awsAwsjson11_deserializeDocumentSentimentScore(v **types.SentimentScore, va return nil } -func awsAwsjson11_deserializeDocumentSubnets(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnets(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11923,21 +11975,21 @@ func awsAwsjson11_deserializeDocumentSubnets(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -12005,7 +12057,7 @@ func awsAwsjson11_deserializeDocumentSyntaxToken(v **types.SyntaxToken, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } case "TokenId": @@ -12058,7 +12110,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -12067,7 +12119,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -12079,7 +12131,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12092,18 +12144,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12139,7 +12193,7 @@ func awsAwsjson11_deserializeDocumentTextSizeLimitExceededException(v **types.Te if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12179,7 +12233,7 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12219,7 +12273,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagKeysException(v **types.TooManyTa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12259,7 +12313,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12299,7 +12353,7 @@ func awsAwsjson11_deserializeDocumentTopicsDetectionJobProperties(v **types.Topi if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } case "EndTime": @@ -12326,7 +12380,7 @@ func awsAwsjson11_deserializeDocumentTopicsDetectionJobProperties(v **types.Topi if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobName": @@ -12335,7 +12389,7 @@ func awsAwsjson11_deserializeDocumentTopicsDetectionJobProperties(v **types.Topi if !ok { return fmt.Errorf("expected JobName to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "JobStatus": @@ -12353,7 +12407,7 @@ func awsAwsjson11_deserializeDocumentTopicsDetectionJobProperties(v **types.Topi if !ok { return fmt.Errorf("expected AnyLengthString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "NumberOfTopics": @@ -12393,7 +12447,7 @@ func awsAwsjson11_deserializeDocumentTopicsDetectionJobProperties(v **types.Topi if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } case "VpcConfig": @@ -12410,7 +12464,7 @@ func awsAwsjson11_deserializeDocumentTopicsDetectionJobProperties(v **types.Topi return nil } -func awsAwsjson11_deserializeDocumentTopicsDetectionJobPropertiesList(v *[]*types.TopicsDetectionJobProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentTopicsDetectionJobPropertiesList(v *[]types.TopicsDetectionJobProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12423,18 +12477,20 @@ func awsAwsjson11_deserializeDocumentTopicsDetectionJobPropertiesList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TopicsDetectionJobProperties + var cv []types.TopicsDetectionJobProperties if *v == nil { - cv = []*types.TopicsDetectionJobProperties{} + cv = []types.TopicsDetectionJobProperties{} } else { cv = *v } for _, value := range shape { - var col *types.TopicsDetectionJobProperties - if err := awsAwsjson11_deserializeDocumentTopicsDetectionJobProperties(&col, value); err != nil { + var col types.TopicsDetectionJobProperties + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTopicsDetectionJobProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12470,7 +12526,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedLanguageException(v **types.Unsu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12797,7 +12853,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDocumentClassifierOutput(v **Create if !ok { return fmt.Errorf("expected DocumentClassifierArn to be of type string, got %T instead", value) } - sv.DocumentClassifierArn = &jtv + sv.DocumentClassifierArn = ptr.String(jtv) } default: @@ -12837,7 +12893,7 @@ func awsAwsjson11_deserializeOpDocumentCreateEndpointOutput(v **CreateEndpointOu if !ok { return fmt.Errorf("expected ComprehendEndpointArn to be of type string, got %T instead", value) } - sv.EndpointArn = &jtv + sv.EndpointArn = ptr.String(jtv) } default: @@ -12877,7 +12933,7 @@ func awsAwsjson11_deserializeOpDocumentCreateEntityRecognizerOutput(v **CreateEn if !ok { return fmt.Errorf("expected EntityRecognizerArn to be of type string, got %T instead", value) } - sv.EntityRecognizerArn = &jtv + sv.EntityRecognizerArn = ptr.String(jtv) } default: @@ -13600,7 +13656,7 @@ func awsAwsjson11_deserializeOpDocumentListDocumentClassificationJobsOutput(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13645,7 +13701,7 @@ func awsAwsjson11_deserializeOpDocumentListDocumentClassifiersOutput(v **ListDoc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13690,7 +13746,7 @@ func awsAwsjson11_deserializeOpDocumentListDominantLanguageDetectionJobsOutput(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13735,7 +13791,7 @@ func awsAwsjson11_deserializeOpDocumentListEndpointsOutput(v **ListEndpointsOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13780,7 +13836,7 @@ func awsAwsjson11_deserializeOpDocumentListEntitiesDetectionJobsOutput(v **ListE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13825,7 +13881,7 @@ func awsAwsjson11_deserializeOpDocumentListEntityRecognizersOutput(v **ListEntit if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13870,7 +13926,7 @@ func awsAwsjson11_deserializeOpDocumentListKeyPhrasesDetectionJobsOutput(v **Lis if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13910,7 +13966,7 @@ func awsAwsjson11_deserializeOpDocumentListPiiEntitiesDetectionJobsOutput(v **Li if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PiiEntitiesDetectionJobPropertiesList": @@ -13955,7 +14011,7 @@ func awsAwsjson11_deserializeOpDocumentListSentimentDetectionJobsOutput(v **List if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SentimentDetectionJobPropertiesList": @@ -14000,7 +14056,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected ComprehendArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "Tags": @@ -14045,7 +14101,7 @@ func awsAwsjson11_deserializeOpDocumentListTopicsDetectionJobsOutput(v **ListTop if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TopicsDetectionJobPropertiesList": @@ -14090,7 +14146,7 @@ func awsAwsjson11_deserializeOpDocumentStartDocumentClassificationJobOutput(v ** if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -14139,7 +14195,7 @@ func awsAwsjson11_deserializeOpDocumentStartDominantLanguageDetectionJobOutput(v if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -14188,7 +14244,7 @@ func awsAwsjson11_deserializeOpDocumentStartEntitiesDetectionJobOutput(v **Start if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -14237,7 +14293,7 @@ func awsAwsjson11_deserializeOpDocumentStartKeyPhrasesDetectionJobOutput(v **Sta if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -14286,7 +14342,7 @@ func awsAwsjson11_deserializeOpDocumentStartPiiEntitiesDetectionJobOutput(v **St if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -14335,7 +14391,7 @@ func awsAwsjson11_deserializeOpDocumentStartSentimentDetectionJobOutput(v **Star if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -14384,7 +14440,7 @@ func awsAwsjson11_deserializeOpDocumentStartTopicsDetectionJobOutput(v **StartTo if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -14433,7 +14489,7 @@ func awsAwsjson11_deserializeOpDocumentStopDominantLanguageDetectionJobOutput(v if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -14482,7 +14538,7 @@ func awsAwsjson11_deserializeOpDocumentStopEntitiesDetectionJobOutput(v **StopEn if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -14531,7 +14587,7 @@ func awsAwsjson11_deserializeOpDocumentStopKeyPhrasesDetectionJobOutput(v **Stop if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -14580,7 +14636,7 @@ func awsAwsjson11_deserializeOpDocumentStopPiiEntitiesDetectionJobOutput(v **Sto if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -14629,7 +14685,7 @@ func awsAwsjson11_deserializeOpDocumentStopSentimentDetectionJobOutput(v **StopS if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": diff --git a/service/comprehend/go.mod b/service/comprehend/go.mod index 2782060c24b..683b60b29d9 100644 --- a/service/comprehend/go.mod +++ b/service/comprehend/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/comprehend go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/comprehend/serializers.go b/service/comprehend/serializers.go index 4466143d10d..ede5b968543 100644 --- a/service/comprehend/serializers.go +++ b/service/comprehend/serializers.go @@ -2590,17 +2590,13 @@ func (m *awsAwsjson11_serializeOpUpdateEndpoint) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAttributeNamesList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttributeNamesList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2624,17 +2620,13 @@ func awsAwsjson11_serializeDocumentAugmentedManifestsListItem(v *types.Augmented return nil } -func awsAwsjson11_serializeDocumentCustomerInputStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCustomerInputStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2666,17 +2658,13 @@ func awsAwsjson11_serializeDocumentDocumentClassificationJobFilter(v *types.Docu return nil } -func awsAwsjson11_serializeDocumentDocumentClassifierAugmentedManifestsList(v []*types.AugmentedManifestsListItem, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDocumentClassifierAugmentedManifestsList(v []types.AugmentedManifestsListItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAugmentedManifestsListItem(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAugmentedManifestsListItem(&v[i], av); err != nil { return err } } @@ -2844,17 +2832,13 @@ func awsAwsjson11_serializeDocumentEntityRecognizerAnnotations(v *types.EntityRe return nil } -func awsAwsjson11_serializeDocumentEntityRecognizerAugmentedManifestsList(v []*types.AugmentedManifestsListItem, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEntityRecognizerAugmentedManifestsList(v []types.AugmentedManifestsListItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAugmentedManifestsListItem(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAugmentedManifestsListItem(&v[i], av); err != nil { return err } } @@ -2954,17 +2938,13 @@ func awsAwsjson11_serializeDocumentEntityRecognizerInputDataConfig(v *types.Enti return nil } -func awsAwsjson11_serializeDocumentEntityTypesList(v []*types.EntityTypesListItem, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEntityTypesList(v []types.EntityTypesListItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEntityTypesListItem(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEntityTypesListItem(&v[i], av); err != nil { return err } } @@ -3106,17 +3086,13 @@ func awsAwsjson11_serializeDocumentRedactionConfig(v *types.RedactionConfig, val return nil } -func awsAwsjson11_serializeDocumentSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3148,17 +3124,13 @@ func awsAwsjson11_serializeDocumentSentimentDetectionJobFilter(v *types.Sentimen return nil } -func awsAwsjson11_serializeDocumentSubnets(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnets(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3180,32 +3152,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/comprehend/types/types.go b/service/comprehend/types/types.go index d4ad3e90b59..0c875d42275 100644 --- a/service/comprehend/types/types.go +++ b/service/comprehend/types/types.go @@ -21,7 +21,7 @@ type AugmentedManifestsListItem struct { // LabelAttributeName key provides the annotations from an individual job. // // This member is required. - AttributeNames []*string + AttributeNames []string // The Amazon S3 location of the augmented manifest file. // @@ -38,7 +38,7 @@ type BatchDetectDominantLanguageItemResult struct { // One or more DominantLanguage objects describing the dominant languages in the // document. - Languages []*DominantLanguage + Languages []DominantLanguage } // The result of calling the operation. The operation returns one object for each @@ -46,7 +46,7 @@ type BatchDetectDominantLanguageItemResult struct { type BatchDetectEntitiesItemResult struct { // One or more Entity objects, one for each entity detected in the document. - Entities []*Entity + Entities []Entity // The zero-based index of the document in the input list. Index *int32 @@ -60,7 +60,7 @@ type BatchDetectKeyPhrasesItemResult struct { Index *int32 // One or more KeyPhrase objects, one for each key phrase detected in the document. - KeyPhrases []*KeyPhrase + KeyPhrases []KeyPhrase } // The result of calling the operation. The operation returns one object for each @@ -86,7 +86,7 @@ type BatchDetectSyntaxItemResult struct { Index *int32 // The syntax tokens for the words in the document, one token for each word. - SyntaxTokens []*SyntaxToken + SyntaxTokens []SyntaxToken } // Describes an error that occurred while processing a document in a batch. The @@ -291,7 +291,7 @@ type DocumentClassifierInputDataConfig struct { // model. An augmented manifest file is a labeled dataset that is produced by // Amazon SageMaker Ground Truth. This parameter is required if you set DataFormat // to AUGMENTED_MANIFEST. - AugmentedManifests []*AugmentedManifestsListItem + AugmentedManifests []AugmentedManifestsListItem // The format of your training data: // @@ -773,7 +773,7 @@ type EntityRecognizerInputDataConfig struct { // carriage return), \t (tab), \\t (escaped tab), space, and , (comma). // // This member is required. - EntityTypes []*EntityTypesListItem + EntityTypes []EntityTypesListItem // The S3 location of the CSV file that annotates your training documents. Annotations *EntityRecognizerAnnotations @@ -782,7 +782,7 @@ type EntityRecognizerInputDataConfig struct { // model. An augmented manifest file is a labeled dataset that is produced by // Amazon SageMaker Ground Truth. This parameter is required if you set DataFormat // to AUGMENTED_MANIFEST. - AugmentedManifests []*AugmentedManifestsListItem + AugmentedManifests []AugmentedManifestsListItem // The format of your training data: // @@ -818,7 +818,7 @@ type EntityRecognizerInputDataConfig struct { type EntityRecognizerMetadata struct { // Entity types from the metadata of an entity recognizer. - EntityTypes []*EntityRecognizerMetadataEntityTypesListItem + EntityTypes []EntityRecognizerMetadataEntityTypesListItem // Detailed information about the accuracy of an entity recognizer. EvaluationMetrics *EntityRecognizerEvaluationMetrics @@ -1469,7 +1469,7 @@ type VpcConfig struct { // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html). // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // The ID for each subnet being used in your private VPC. This subnet is a subset // of the a range of IPv4 addresses used by the VPC and is specific to a given @@ -1478,5 +1478,5 @@ type VpcConfig struct { // Subnets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html). // // This member is required. - Subnets []*string + Subnets []string } diff --git a/service/comprehend/validators.go b/service/comprehend/validators.go index 89a1fdccd8e..81c02b0ca1b 100644 --- a/service/comprehend/validators.go +++ b/service/comprehend/validators.go @@ -1132,13 +1132,13 @@ func validateAugmentedManifestsListItem(v *types.AugmentedManifestsListItem) err } } -func validateDocumentClassifierAugmentedManifestsList(v []*types.AugmentedManifestsListItem) error { +func validateDocumentClassifierAugmentedManifestsList(v []types.AugmentedManifestsListItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DocumentClassifierAugmentedManifestsList"} for i := range v { - if err := validateAugmentedManifestsListItem(v[i]); err != nil { + if err := validateAugmentedManifestsListItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1181,13 +1181,13 @@ func validateEntityRecognizerAnnotations(v *types.EntityRecognizerAnnotations) e } } -func validateEntityRecognizerAugmentedManifestsList(v []*types.AugmentedManifestsListItem) error { +func validateEntityRecognizerAugmentedManifestsList(v []types.AugmentedManifestsListItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "EntityRecognizerAugmentedManifestsList"} for i := range v { - if err := validateAugmentedManifestsListItem(v[i]); err != nil { + if err := validateAugmentedManifestsListItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1267,13 +1267,13 @@ func validateEntityRecognizerInputDataConfig(v *types.EntityRecognizerInputDataC } } -func validateEntityTypesList(v []*types.EntityTypesListItem) error { +func validateEntityTypesList(v []types.EntityTypesListItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "EntityTypesList"} for i := range v { - if err := validateEntityTypesListItem(v[i]); err != nil { + if err := validateEntityTypesListItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1344,13 +1344,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/comprehendmedical/api_op_DetectEntities.go b/service/comprehendmedical/api_op_DetectEntities.go index 740f97bcd2f..2a7d173343d 100644 --- a/service/comprehendmedical/api_op_DetectEntities.go +++ b/service/comprehendmedical/api_op_DetectEntities.go @@ -48,7 +48,7 @@ type DetectEntitiesOutput struct { // Attributes and traits of the entity are also returned. // // This member is required. - Entities []*types.Entity + Entities []types.Entity // The version of the model used to analyze the documents. The version number looks // like X.X.X. You can use this information to track the model used for a @@ -63,7 +63,7 @@ type DetectEntitiesOutput struct { // Attributes extracted from the input text that we were unable to relate to an // entity. - UnmappedAttributes []*types.UnmappedAttribute + UnmappedAttributes []types.UnmappedAttribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehendmedical/api_op_DetectEntitiesV2.go b/service/comprehendmedical/api_op_DetectEntitiesV2.go index 075d8888da9..878d579f0a8 100644 --- a/service/comprehendmedical/api_op_DetectEntitiesV2.go +++ b/service/comprehendmedical/api_op_DetectEntitiesV2.go @@ -53,7 +53,7 @@ type DetectEntitiesV2Output struct { // are also returned. // // This member is required. - Entities []*types.Entity + Entities []types.Entity // The version of the model used to analyze the documents. The version number looks // like X.X.X. You can use this information to track the model used for a @@ -67,7 +67,7 @@ type DetectEntitiesV2Output struct { PaginationToken *string // Attributes extracted from the input text that couldn't be related to an entity. - UnmappedAttributes []*types.UnmappedAttribute + UnmappedAttributes []types.UnmappedAttribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/comprehendmedical/api_op_DetectPHI.go b/service/comprehendmedical/api_op_DetectPHI.go index 4d5889e59cb..66f0cc9a48e 100644 --- a/service/comprehendmedical/api_op_DetectPHI.go +++ b/service/comprehendmedical/api_op_DetectPHI.go @@ -46,7 +46,7 @@ type DetectPHIOutput struct { // confidence that Amazon Comprehend Medical has in its detection. // // This member is required. - Entities []*types.Entity + Entities []types.Entity // The version of the model used to analyze the documents. The version number looks // like X.X.X. You can use this information to track the model used for a diff --git a/service/comprehendmedical/api_op_InferICD10CM.go b/service/comprehendmedical/api_op_InferICD10CM.go index 54f645532b8..2ac8f78097c 100644 --- a/service/comprehendmedical/api_op_InferICD10CM.go +++ b/service/comprehendmedical/api_op_InferICD10CM.go @@ -46,7 +46,7 @@ type InferICD10CMOutput struct { // the entities detected. // // This member is required. - Entities []*types.ICD10CMEntity + Entities []types.ICD10CMEntity // The version of the model used to analyze the documents, in the format n.n.n You // can use this information to track the model used for a particular batch of diff --git a/service/comprehendmedical/api_op_InferRxNorm.go b/service/comprehendmedical/api_op_InferRxNorm.go index 5ca1f52979a..78e3dc236b6 100644 --- a/service/comprehendmedical/api_op_InferRxNorm.go +++ b/service/comprehendmedical/api_op_InferRxNorm.go @@ -46,7 +46,7 @@ type InferRxNormOutput struct { // the entities detected. // // This member is required. - Entities []*types.RxNormEntity + Entities []types.RxNormEntity // The version of the model used to analyze the documents, in the format n.n.n You // can use this information to track the model used for a particular batch of diff --git a/service/comprehendmedical/api_op_ListEntitiesDetectionV2Jobs.go b/service/comprehendmedical/api_op_ListEntitiesDetectionV2Jobs.go index 2b949a1806d..6dc59e2a699 100644 --- a/service/comprehendmedical/api_op_ListEntitiesDetectionV2Jobs.go +++ b/service/comprehendmedical/api_op_ListEntitiesDetectionV2Jobs.go @@ -44,7 +44,7 @@ type ListEntitiesDetectionV2JobsInput struct { type ListEntitiesDetectionV2JobsOutput struct { // A list containing the properties of each job returned. - ComprehendMedicalAsyncJobPropertiesList []*types.ComprehendMedicalAsyncJobProperties + ComprehendMedicalAsyncJobPropertiesList []types.ComprehendMedicalAsyncJobProperties // Identifies the next page of results to return. NextToken *string diff --git a/service/comprehendmedical/api_op_ListICD10CMInferenceJobs.go b/service/comprehendmedical/api_op_ListICD10CMInferenceJobs.go index 40d773bc3e3..b333043d9b7 100644 --- a/service/comprehendmedical/api_op_ListICD10CMInferenceJobs.go +++ b/service/comprehendmedical/api_op_ListICD10CMInferenceJobs.go @@ -44,7 +44,7 @@ type ListICD10CMInferenceJobsInput struct { type ListICD10CMInferenceJobsOutput struct { // A list containing the properties of each job that is returned. - ComprehendMedicalAsyncJobPropertiesList []*types.ComprehendMedicalAsyncJobProperties + ComprehendMedicalAsyncJobPropertiesList []types.ComprehendMedicalAsyncJobProperties // Identifies the next page of results to return. NextToken *string diff --git a/service/comprehendmedical/api_op_ListPHIDetectionJobs.go b/service/comprehendmedical/api_op_ListPHIDetectionJobs.go index c07f5a0ac99..3ec4f2de68f 100644 --- a/service/comprehendmedical/api_op_ListPHIDetectionJobs.go +++ b/service/comprehendmedical/api_op_ListPHIDetectionJobs.go @@ -45,7 +45,7 @@ type ListPHIDetectionJobsInput struct { type ListPHIDetectionJobsOutput struct { // A list containing the properties of each job returned. - ComprehendMedicalAsyncJobPropertiesList []*types.ComprehendMedicalAsyncJobProperties + ComprehendMedicalAsyncJobPropertiesList []types.ComprehendMedicalAsyncJobProperties // Identifies the next page of results to return. NextToken *string diff --git a/service/comprehendmedical/api_op_ListRxNormInferenceJobs.go b/service/comprehendmedical/api_op_ListRxNormInferenceJobs.go index 3c2d965c8e2..a71db3cf0ae 100644 --- a/service/comprehendmedical/api_op_ListRxNormInferenceJobs.go +++ b/service/comprehendmedical/api_op_ListRxNormInferenceJobs.go @@ -44,7 +44,7 @@ type ListRxNormInferenceJobsInput struct { type ListRxNormInferenceJobsOutput struct { // The maximum number of results to return in each page. The default is 100. - ComprehendMedicalAsyncJobPropertiesList []*types.ComprehendMedicalAsyncJobProperties + ComprehendMedicalAsyncJobPropertiesList []types.ComprehendMedicalAsyncJobProperties // Identifies the next page of results to return. NextToken *string diff --git a/service/comprehendmedical/deserializers.go b/service/comprehendmedical/deserializers.go index 91dee654bb4..28d76bd7b58 100644 --- a/service/comprehendmedical/deserializers.go +++ b/service/comprehendmedical/deserializers.go @@ -2948,7 +2948,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } case "Traits": @@ -2974,7 +2974,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf return nil } -func awsAwsjson11_deserializeDocumentAttributeList(v *[]*types.Attribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttributeList(v *[]types.Attribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2987,18 +2987,20 @@ func awsAwsjson11_deserializeDocumentAttributeList(v *[]*types.Attribute, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Attribute + var cv []types.Attribute if *v == nil { - cv = []*types.Attribute{} + cv = []types.Attribute{} } else { cv = *v } for _, value := range shape { - var col *types.Attribute - if err := awsAwsjson11_deserializeDocumentAttribute(&col, value); err != nil { + var col types.Attribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3034,7 +3036,7 @@ func awsAwsjson11_deserializeDocumentComprehendMedicalAsyncJobProperties(v **typ if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } case "EndTime": @@ -3074,7 +3076,7 @@ func awsAwsjson11_deserializeDocumentComprehendMedicalAsyncJobProperties(v **typ if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobName": @@ -3083,7 +3085,7 @@ func awsAwsjson11_deserializeDocumentComprehendMedicalAsyncJobProperties(v **typ if !ok { return fmt.Errorf("expected JobName to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "JobStatus": @@ -3101,7 +3103,7 @@ func awsAwsjson11_deserializeDocumentComprehendMedicalAsyncJobProperties(v **typ if !ok { return fmt.Errorf("expected KMSKey to be of type string, got %T instead", value) } - sv.KMSKey = &jtv + sv.KMSKey = ptr.String(jtv) } case "LanguageCode": @@ -3119,7 +3121,7 @@ func awsAwsjson11_deserializeDocumentComprehendMedicalAsyncJobProperties(v **typ if !ok { return fmt.Errorf("expected ManifestFilePath to be of type string, got %T instead", value) } - sv.ManifestFilePath = &jtv + sv.ManifestFilePath = ptr.String(jtv) } case "Message": @@ -3128,7 +3130,7 @@ func awsAwsjson11_deserializeDocumentComprehendMedicalAsyncJobProperties(v **typ if !ok { return fmt.Errorf("expected AnyLengthString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ModelVersion": @@ -3137,7 +3139,7 @@ func awsAwsjson11_deserializeDocumentComprehendMedicalAsyncJobProperties(v **typ if !ok { return fmt.Errorf("expected ModelVersion to be of type string, got %T instead", value) } - sv.ModelVersion = &jtv + sv.ModelVersion = ptr.String(jtv) } case "OutputDataConfig": @@ -3167,7 +3169,7 @@ func awsAwsjson11_deserializeDocumentComprehendMedicalAsyncJobProperties(v **typ return nil } -func awsAwsjson11_deserializeDocumentComprehendMedicalAsyncJobPropertiesList(v *[]*types.ComprehendMedicalAsyncJobProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentComprehendMedicalAsyncJobPropertiesList(v *[]types.ComprehendMedicalAsyncJobProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3180,18 +3182,20 @@ func awsAwsjson11_deserializeDocumentComprehendMedicalAsyncJobPropertiesList(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComprehendMedicalAsyncJobProperties + var cv []types.ComprehendMedicalAsyncJobProperties if *v == nil { - cv = []*types.ComprehendMedicalAsyncJobProperties{} + cv = []types.ComprehendMedicalAsyncJobProperties{} } else { cv = *v } for _, value := range shape { - var col *types.ComprehendMedicalAsyncJobProperties - if err := awsAwsjson11_deserializeDocumentComprehendMedicalAsyncJobProperties(&col, value); err != nil { + var col types.ComprehendMedicalAsyncJobProperties + destAddr := &col + if err := awsAwsjson11_deserializeDocumentComprehendMedicalAsyncJobProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3293,7 +3297,7 @@ func awsAwsjson11_deserializeDocumentEntity(v **types.Entity, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } case "Traits": @@ -3319,7 +3323,7 @@ func awsAwsjson11_deserializeDocumentEntity(v **types.Entity, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentEntityList(v *[]*types.Entity, value interface{}) error { +func awsAwsjson11_deserializeDocumentEntityList(v *[]types.Entity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3332,18 +3336,20 @@ func awsAwsjson11_deserializeDocumentEntityList(v *[]*types.Entity, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Entity + var cv []types.Entity if *v == nil { - cv = []*types.Entity{} + cv = []types.Entity{} } else { cv = *v } for _, value := range shape { - var col *types.Entity - if err := awsAwsjson11_deserializeDocumentEntity(&col, value); err != nil { + var col types.Entity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEntity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3444,7 +3450,7 @@ func awsAwsjson11_deserializeDocumentICD10CMAttribute(v **types.ICD10CMAttribute if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } case "Traits": @@ -3470,7 +3476,7 @@ func awsAwsjson11_deserializeDocumentICD10CMAttribute(v **types.ICD10CMAttribute return nil } -func awsAwsjson11_deserializeDocumentICD10CMAttributeList(v *[]*types.ICD10CMAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentICD10CMAttributeList(v *[]types.ICD10CMAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3483,18 +3489,20 @@ func awsAwsjson11_deserializeDocumentICD10CMAttributeList(v *[]*types.ICD10CMAtt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ICD10CMAttribute + var cv []types.ICD10CMAttribute if *v == nil { - cv = []*types.ICD10CMAttribute{} + cv = []types.ICD10CMAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.ICD10CMAttribute - if err := awsAwsjson11_deserializeDocumentICD10CMAttribute(&col, value); err != nil { + var col types.ICD10CMAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentICD10CMAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3530,7 +3538,7 @@ func awsAwsjson11_deserializeDocumentICD10CMConcept(v **types.ICD10CMConcept, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Description": @@ -3539,7 +3547,7 @@ func awsAwsjson11_deserializeDocumentICD10CMConcept(v **types.ICD10CMConcept, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Score": @@ -3564,7 +3572,7 @@ func awsAwsjson11_deserializeDocumentICD10CMConcept(v **types.ICD10CMConcept, va return nil } -func awsAwsjson11_deserializeDocumentICD10CMConceptList(v *[]*types.ICD10CMConcept, value interface{}) error { +func awsAwsjson11_deserializeDocumentICD10CMConceptList(v *[]types.ICD10CMConcept, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3577,18 +3585,20 @@ func awsAwsjson11_deserializeDocumentICD10CMConceptList(v *[]*types.ICD10CMConce return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ICD10CMConcept + var cv []types.ICD10CMConcept if *v == nil { - cv = []*types.ICD10CMConcept{} + cv = []types.ICD10CMConcept{} } else { cv = *v } for _, value := range shape { - var col *types.ICD10CMConcept - if err := awsAwsjson11_deserializeDocumentICD10CMConcept(&col, value); err != nil { + var col types.ICD10CMConcept + destAddr := &col + if err := awsAwsjson11_deserializeDocumentICD10CMConcept(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3695,7 +3705,7 @@ func awsAwsjson11_deserializeDocumentICD10CMEntity(v **types.ICD10CMEntity, valu if !ok { return fmt.Errorf("expected OntologyLinkingBoundedLengthString to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } case "Traits": @@ -3721,7 +3731,7 @@ func awsAwsjson11_deserializeDocumentICD10CMEntity(v **types.ICD10CMEntity, valu return nil } -func awsAwsjson11_deserializeDocumentICD10CMEntityList(v *[]*types.ICD10CMEntity, value interface{}) error { +func awsAwsjson11_deserializeDocumentICD10CMEntityList(v *[]types.ICD10CMEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3734,18 +3744,20 @@ func awsAwsjson11_deserializeDocumentICD10CMEntityList(v *[]*types.ICD10CMEntity return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ICD10CMEntity + var cv []types.ICD10CMEntity if *v == nil { - cv = []*types.ICD10CMEntity{} + cv = []types.ICD10CMEntity{} } else { cv = *v } for _, value := range shape { - var col *types.ICD10CMEntity - if err := awsAwsjson11_deserializeDocumentICD10CMEntity(&col, value); err != nil { + var col types.ICD10CMEntity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentICD10CMEntity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3806,7 +3818,7 @@ func awsAwsjson11_deserializeDocumentICD10CMTrait(v **types.ICD10CMTrait, value return nil } -func awsAwsjson11_deserializeDocumentICD10CMTraitList(v *[]*types.ICD10CMTrait, value interface{}) error { +func awsAwsjson11_deserializeDocumentICD10CMTraitList(v *[]types.ICD10CMTrait, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3819,18 +3831,20 @@ func awsAwsjson11_deserializeDocumentICD10CMTraitList(v *[]*types.ICD10CMTrait, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ICD10CMTrait + var cv []types.ICD10CMTrait if *v == nil { - cv = []*types.ICD10CMTrait{} + cv = []types.ICD10CMTrait{} } else { cv = *v } for _, value := range shape { - var col *types.ICD10CMTrait - if err := awsAwsjson11_deserializeDocumentICD10CMTrait(&col, value); err != nil { + var col types.ICD10CMTrait + destAddr := &col + if err := awsAwsjson11_deserializeDocumentICD10CMTrait(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3866,7 +3880,7 @@ func awsAwsjson11_deserializeDocumentInputDataConfig(v **types.InputDataConfig, if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.S3Bucket = &jtv + sv.S3Bucket = ptr.String(jtv) } case "S3Key": @@ -3875,7 +3889,7 @@ func awsAwsjson11_deserializeDocumentInputDataConfig(v **types.InputDataConfig, if !ok { return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.S3Key = &jtv + sv.S3Key = ptr.String(jtv) } default: @@ -3915,7 +3929,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3955,7 +3969,7 @@ func awsAwsjson11_deserializeDocumentInvalidEncodingException(v **types.InvalidE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3995,7 +4009,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4035,7 +4049,7 @@ func awsAwsjson11_deserializeDocumentOutputDataConfig(v **types.OutputDataConfig if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.S3Bucket = &jtv + sv.S3Bucket = ptr.String(jtv) } case "S3Key": @@ -4044,7 +4058,7 @@ func awsAwsjson11_deserializeDocumentOutputDataConfig(v **types.OutputDataConfig if !ok { return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.S3Key = &jtv + sv.S3Key = ptr.String(jtv) } default: @@ -4084,7 +4098,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4189,7 +4203,7 @@ func awsAwsjson11_deserializeDocumentRxNormAttribute(v **types.RxNormAttribute, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } case "Traits": @@ -4215,7 +4229,7 @@ func awsAwsjson11_deserializeDocumentRxNormAttribute(v **types.RxNormAttribute, return nil } -func awsAwsjson11_deserializeDocumentRxNormAttributeList(v *[]*types.RxNormAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentRxNormAttributeList(v *[]types.RxNormAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4228,18 +4242,20 @@ func awsAwsjson11_deserializeDocumentRxNormAttributeList(v *[]*types.RxNormAttri return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RxNormAttribute + var cv []types.RxNormAttribute if *v == nil { - cv = []*types.RxNormAttribute{} + cv = []types.RxNormAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.RxNormAttribute - if err := awsAwsjson11_deserializeDocumentRxNormAttribute(&col, value); err != nil { + var col types.RxNormAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRxNormAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4275,7 +4291,7 @@ func awsAwsjson11_deserializeDocumentRxNormConcept(v **types.RxNormConcept, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Description": @@ -4284,7 +4300,7 @@ func awsAwsjson11_deserializeDocumentRxNormConcept(v **types.RxNormConcept, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Score": @@ -4309,7 +4325,7 @@ func awsAwsjson11_deserializeDocumentRxNormConcept(v **types.RxNormConcept, valu return nil } -func awsAwsjson11_deserializeDocumentRxNormConceptList(v *[]*types.RxNormConcept, value interface{}) error { +func awsAwsjson11_deserializeDocumentRxNormConceptList(v *[]types.RxNormConcept, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4322,18 +4338,20 @@ func awsAwsjson11_deserializeDocumentRxNormConceptList(v *[]*types.RxNormConcept return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RxNormConcept + var cv []types.RxNormConcept if *v == nil { - cv = []*types.RxNormConcept{} + cv = []types.RxNormConcept{} } else { cv = *v } for _, value := range shape { - var col *types.RxNormConcept - if err := awsAwsjson11_deserializeDocumentRxNormConcept(&col, value); err != nil { + var col types.RxNormConcept + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRxNormConcept(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4440,7 +4458,7 @@ func awsAwsjson11_deserializeDocumentRxNormEntity(v **types.RxNormEntity, value if !ok { return fmt.Errorf("expected OntologyLinkingBoundedLengthString to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } case "Traits": @@ -4466,7 +4484,7 @@ func awsAwsjson11_deserializeDocumentRxNormEntity(v **types.RxNormEntity, value return nil } -func awsAwsjson11_deserializeDocumentRxNormEntityList(v *[]*types.RxNormEntity, value interface{}) error { +func awsAwsjson11_deserializeDocumentRxNormEntityList(v *[]types.RxNormEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4479,18 +4497,20 @@ func awsAwsjson11_deserializeDocumentRxNormEntityList(v *[]*types.RxNormEntity, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RxNormEntity + var cv []types.RxNormEntity if *v == nil { - cv = []*types.RxNormEntity{} + cv = []types.RxNormEntity{} } else { cv = *v } for _, value := range shape { - var col *types.RxNormEntity - if err := awsAwsjson11_deserializeDocumentRxNormEntity(&col, value); err != nil { + var col types.RxNormEntity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRxNormEntity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4551,7 +4571,7 @@ func awsAwsjson11_deserializeDocumentRxNormTrait(v **types.RxNormTrait, value in return nil } -func awsAwsjson11_deserializeDocumentRxNormTraitList(v *[]*types.RxNormTrait, value interface{}) error { +func awsAwsjson11_deserializeDocumentRxNormTraitList(v *[]types.RxNormTrait, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4564,18 +4584,20 @@ func awsAwsjson11_deserializeDocumentRxNormTraitList(v *[]*types.RxNormTrait, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RxNormTrait + var cv []types.RxNormTrait if *v == nil { - cv = []*types.RxNormTrait{} + cv = []types.RxNormTrait{} } else { cv = *v } for _, value := range shape { - var col *types.RxNormTrait - if err := awsAwsjson11_deserializeDocumentRxNormTrait(&col, value); err != nil { + var col types.RxNormTrait + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRxNormTrait(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4611,7 +4633,7 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4651,7 +4673,7 @@ func awsAwsjson11_deserializeDocumentTextSizeLimitExceededException(v **types.Te if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4691,7 +4713,7 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4756,7 +4778,7 @@ func awsAwsjson11_deserializeDocumentTrait(v **types.Trait, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentTraitList(v *[]*types.Trait, value interface{}) error { +func awsAwsjson11_deserializeDocumentTraitList(v *[]types.Trait, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4769,18 +4791,20 @@ func awsAwsjson11_deserializeDocumentTraitList(v *[]*types.Trait, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Trait + var cv []types.Trait if *v == nil { - cv = []*types.Trait{} + cv = []types.Trait{} } else { cv = *v } for _, value := range shape { - var col *types.Trait - if err := awsAwsjson11_deserializeDocumentTrait(&col, value); err != nil { + var col types.Trait + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrait(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4833,7 +4857,7 @@ func awsAwsjson11_deserializeDocumentUnmappedAttribute(v **types.UnmappedAttribu return nil } -func awsAwsjson11_deserializeDocumentUnmappedAttributeList(v *[]*types.UnmappedAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentUnmappedAttributeList(v *[]types.UnmappedAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4846,18 +4870,20 @@ func awsAwsjson11_deserializeDocumentUnmappedAttributeList(v *[]*types.UnmappedA return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UnmappedAttribute + var cv []types.UnmappedAttribute if *v == nil { - cv = []*types.UnmappedAttribute{} + cv = []types.UnmappedAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.UnmappedAttribute - if err := awsAwsjson11_deserializeDocumentUnmappedAttribute(&col, value); err != nil { + var col types.UnmappedAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUnmappedAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4893,7 +4919,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5082,7 +5108,7 @@ func awsAwsjson11_deserializeOpDocumentDetectEntitiesOutput(v **DetectEntitiesOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ModelVersion = &jtv + sv.ModelVersion = ptr.String(jtv) } case "PaginationToken": @@ -5091,7 +5117,7 @@ func awsAwsjson11_deserializeOpDocumentDetectEntitiesOutput(v **DetectEntitiesOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PaginationToken = &jtv + sv.PaginationToken = ptr.String(jtv) } case "UnmappedAttributes": @@ -5141,7 +5167,7 @@ func awsAwsjson11_deserializeOpDocumentDetectEntitiesV2Output(v **DetectEntities if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ModelVersion = &jtv + sv.ModelVersion = ptr.String(jtv) } case "PaginationToken": @@ -5150,7 +5176,7 @@ func awsAwsjson11_deserializeOpDocumentDetectEntitiesV2Output(v **DetectEntities if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PaginationToken = &jtv + sv.PaginationToken = ptr.String(jtv) } case "UnmappedAttributes": @@ -5200,7 +5226,7 @@ func awsAwsjson11_deserializeOpDocumentDetectPHIOutput(v **DetectPHIOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ModelVersion = &jtv + sv.ModelVersion = ptr.String(jtv) } case "PaginationToken": @@ -5209,7 +5235,7 @@ func awsAwsjson11_deserializeOpDocumentDetectPHIOutput(v **DetectPHIOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PaginationToken = &jtv + sv.PaginationToken = ptr.String(jtv) } default: @@ -5254,7 +5280,7 @@ func awsAwsjson11_deserializeOpDocumentInferICD10CMOutput(v **InferICD10CMOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ModelVersion = &jtv + sv.ModelVersion = ptr.String(jtv) } case "PaginationToken": @@ -5263,7 +5289,7 @@ func awsAwsjson11_deserializeOpDocumentInferICD10CMOutput(v **InferICD10CMOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PaginationToken = &jtv + sv.PaginationToken = ptr.String(jtv) } default: @@ -5308,7 +5334,7 @@ func awsAwsjson11_deserializeOpDocumentInferRxNormOutput(v **InferRxNormOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ModelVersion = &jtv + sv.ModelVersion = ptr.String(jtv) } case "PaginationToken": @@ -5317,7 +5343,7 @@ func awsAwsjson11_deserializeOpDocumentInferRxNormOutput(v **InferRxNormOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PaginationToken = &jtv + sv.PaginationToken = ptr.String(jtv) } default: @@ -5362,7 +5388,7 @@ func awsAwsjson11_deserializeOpDocumentListEntitiesDetectionV2JobsOutput(v **Lis if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5407,7 +5433,7 @@ func awsAwsjson11_deserializeOpDocumentListICD10CMInferenceJobsOutput(v **ListIC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5452,7 +5478,7 @@ func awsAwsjson11_deserializeOpDocumentListPHIDetectionJobsOutput(v **ListPHIDet if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5497,7 +5523,7 @@ func awsAwsjson11_deserializeOpDocumentListRxNormInferenceJobsOutput(v **ListRxN if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5537,7 +5563,7 @@ func awsAwsjson11_deserializeOpDocumentStartEntitiesDetectionV2JobOutput(v **Sta if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -5577,7 +5603,7 @@ func awsAwsjson11_deserializeOpDocumentStartICD10CMInferenceJobOutput(v **StartI if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -5617,7 +5643,7 @@ func awsAwsjson11_deserializeOpDocumentStartPHIDetectionJobOutput(v **StartPHIDe if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -5657,7 +5683,7 @@ func awsAwsjson11_deserializeOpDocumentStartRxNormInferenceJobOutput(v **StartRx if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -5697,7 +5723,7 @@ func awsAwsjson11_deserializeOpDocumentStopEntitiesDetectionV2JobOutput(v **Stop if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -5737,7 +5763,7 @@ func awsAwsjson11_deserializeOpDocumentStopICD10CMInferenceJobOutput(v **StopICD if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -5777,7 +5803,7 @@ func awsAwsjson11_deserializeOpDocumentStopPHIDetectionJobOutput(v **StopPHIDete if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -5817,7 +5843,7 @@ func awsAwsjson11_deserializeOpDocumentStopRxNormInferenceJobOutput(v **StopRxNo if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: diff --git a/service/comprehendmedical/go.mod b/service/comprehendmedical/go.mod index 853c59428c1..58c8af80307 100644 --- a/service/comprehendmedical/go.mod +++ b/service/comprehendmedical/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/comprehendmedical go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/comprehendmedical/types/types.go b/service/comprehendmedical/types/types.go index dc21d3eb098..e6a2f2cd0ee 100644 --- a/service/comprehendmedical/types/types.go +++ b/service/comprehendmedical/types/types.go @@ -44,7 +44,7 @@ type Attribute struct { Text *string // Contextual information for this attribute. - Traits []*Trait + Traits []Trait // The type of attribute. Type EntitySubType @@ -130,7 +130,7 @@ type ComprehendMedicalAsyncJobProperties struct { type Entity struct { // The extracted attributes that relate to this entity. - Attributes []*Attribute + Attributes []Attribute // The 0-based character offset in the input text that shows where the entity // begins. The offset returns the UTF-8 code point in the string. @@ -155,7 +155,7 @@ type Entity struct { Text *string // Contextual information for the entity. - Traits []*Trait + Traits []Trait // Describes the specific type of entity with category of entities. Type EntitySubType @@ -192,7 +192,7 @@ type ICD10CMAttribute struct { // The contextual information for the attribute. The traits recognized by // InferICD10CM are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. - Traits []*ICD10CMTrait + Traits []ICD10CMTrait // The type of attribute. InferICD10CM detects entities of the type DX_NAME. Type ICD10CMAttributeType @@ -224,7 +224,7 @@ type ICD10CMEntity struct { // The detected attributes that relate to the entity. An extracted segment of the // text that is an attribute of an entity, or otherwise related to an entity, such // as the nature of a medical condition. - Attributes []*ICD10CMAttribute + Attributes []ICD10CMAttribute // The 0-based character offset in the input text that shows where the entity // begins. The offset returns the UTF-8 code point in the string. @@ -240,7 +240,7 @@ type ICD10CMEntity struct { // The ICD-10-CM concepts that the entity could refer to, along with a score // indicating the likelihood of the match. - ICD10CMConcepts []*ICD10CMConcept + ICD10CMConcepts []ICD10CMConcept // The numeric identifier for the entity. This is a monotonically increasing id // unique within this response rather than a global unique identifier. @@ -255,7 +255,7 @@ type ICD10CMEntity struct { // Provides Contextual information for the entity. The traits recognized by // InferICD10CM are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. - Traits []*ICD10CMTrait + Traits []ICD10CMTrait // Describes the specific type of entity with category of entities. InferICD10CM // detects entities of the type DX_NAME. @@ -338,7 +338,7 @@ type RxNormAttribute struct { // Contextual information for the attribute. InferRxNorm recognizes the trait // NEGATION for attributes, i.e. that the patient is not taking a specific dose or // form of a medication. - Traits []*RxNormTrait + Traits []RxNormTrait // The type of attribute. The types of attributes recognized by InferRxNorm are // BRAND_NAME and GENERIC_NAME. @@ -370,7 +370,7 @@ type RxNormEntity struct { // The extracted attributes that relate to the entity. The attributes recognized by // InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE, and // STRENGTH. - Attributes []*RxNormAttribute + Attributes []RxNormAttribute // The 0-based character offset in the input text that shows where the entity // begins. The offset returns the UTF-8 code point in the string. @@ -389,7 +389,7 @@ type RxNormEntity struct { // The RxNorm concepts that the entity could refer to, along with a score // indicating the likelihood of the match. - RxNormConcepts []*RxNormConcept + RxNormConcepts []RxNormConcept // The level of confidence that Amazon Comprehend Medical has in the accuracy of // the detected entity. @@ -399,7 +399,7 @@ type RxNormEntity struct { Text *string // Contextual information for the entity. - Traits []*RxNormTrait + Traits []RxNormTrait // Describes the specific type of entity. For InferRxNorm, the recognized entity // type is MEDICATION. diff --git a/service/computeoptimizer/api_op_DescribeRecommendationExportJobs.go b/service/computeoptimizer/api_op_DescribeRecommendationExportJobs.go index 65e50a653c6..0b416797d99 100644 --- a/service/computeoptimizer/api_op_DescribeRecommendationExportJobs.go +++ b/service/computeoptimizer/api_op_DescribeRecommendationExportJobs.go @@ -34,14 +34,14 @@ type DescribeRecommendationExportJobsInput struct { // An array of objects that describe a filter to return a more specific list of // export jobs. - Filters []*types.JobFilter + Filters []types.JobFilter // The identification numbers of the export jobs to return. An export job ID is // returned when you create an export using the // ExportAutoScalingGroupRecommendations or ExportEC2InstanceRecommendations // actions. All export jobs created in the last seven days are returned if this // parameter is omitted. - JobIds []*string + JobIds []string // The maximum number of export jobs to return with a single request. To retrieve // the remaining results, make another request with the returned NextToken value. @@ -58,7 +58,7 @@ type DescribeRecommendationExportJobsOutput struct { NextToken *string // An array of objects that describe recommendation export jobs. - RecommendationExportJobs []*types.RecommendationExportJob + RecommendationExportJobs []types.RecommendationExportJob // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/computeoptimizer/api_op_ExportAutoScalingGroupRecommendations.go b/service/computeoptimizer/api_op_ExportAutoScalingGroupRecommendations.go index 95db79e7108..6b005c26e7e 100644 --- a/service/computeoptimizer/api_op_ExportAutoScalingGroupRecommendations.go +++ b/service/computeoptimizer/api_op_ExportAutoScalingGroupRecommendations.go @@ -59,7 +59,7 @@ type ExportAutoScalingGroupRecommendationsInput struct { // Recommendations for member accounts are not included in the export if this // parameter, or the include member accounts parameter, is omitted. You can specify // multiple account IDs per request. - AccountIds []*string + AccountIds []string // The recommendations data to include in the export file. For more information // about the fields that can be exported, see Exported files @@ -73,7 +73,7 @@ type ExportAutoScalingGroupRecommendationsInput struct { // An array of objects that describe a filter to export a more specific set of Auto // Scaling group recommendations. - Filters []*types.Filter + Filters []types.Filter // Indicates whether to include recommendations for resources in all member // accounts of the organization if your account is the master account of an @@ -83,7 +83,7 @@ type ExportAutoScalingGroupRecommendationsInput struct { // together with the account IDs parameter. The parameters are mutually exclusive. // Recommendations for member accounts are not included in the export if this // parameter, or the account IDs parameter, is omitted. - IncludeMemberAccounts *bool + IncludeMemberAccounts bool } type ExportAutoScalingGroupRecommendationsOutput struct { diff --git a/service/computeoptimizer/api_op_ExportEC2InstanceRecommendations.go b/service/computeoptimizer/api_op_ExportEC2InstanceRecommendations.go index 88f9ddf9b3c..7f8ffb2dfd3 100644 --- a/service/computeoptimizer/api_op_ExportEC2InstanceRecommendations.go +++ b/service/computeoptimizer/api_op_ExportEC2InstanceRecommendations.go @@ -59,7 +59,7 @@ type ExportEC2InstanceRecommendationsInput struct { // accounts are not included in the export if this parameter, or the include member // accounts parameter, is omitted. You can specify multiple account IDs per // request. - AccountIds []*string + AccountIds []string // The recommendations data to include in the export file. For more information // about the fields that can be exported, see Exported files @@ -73,7 +73,7 @@ type ExportEC2InstanceRecommendationsInput struct { // An array of objects that describe a filter to export a more specific set of // instance recommendations. - Filters []*types.Filter + Filters []types.Filter // Indicates whether to include recommendations for resources in all member // accounts of the organization if your account is the master account of an @@ -82,7 +82,7 @@ type ExportEC2InstanceRecommendationsInput struct { // export file if this parameter is omitted. Recommendations for member accounts // are not included in the export if this parameter, or the account IDs parameter, // is omitted. - IncludeMemberAccounts *bool + IncludeMemberAccounts bool } type ExportEC2InstanceRecommendationsOutput struct { diff --git a/service/computeoptimizer/api_op_GetAutoScalingGroupRecommendations.go b/service/computeoptimizer/api_op_GetAutoScalingGroupRecommendations.go index 03afc2236b6..572c90bc0d0 100644 --- a/service/computeoptimizer/api_op_GetAutoScalingGroupRecommendations.go +++ b/service/computeoptimizer/api_op_GetAutoScalingGroupRecommendations.go @@ -37,15 +37,15 @@ type GetAutoScalingGroupRecommendationsInput struct { // recommendations. If your account is the master account of an organization, use // this parameter to specify the member accounts for which you want to return Auto // Scaling group recommendations. Only one account ID can be specified per request. - AccountIds []*string + AccountIds []string // The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return // recommendations. - AutoScalingGroupArns []*string + AutoScalingGroupArns []string // An array of objects that describe a filter that returns a more specific list of // Auto Scaling group recommendations. - Filters []*types.Filter + Filters []types.Filter // The maximum number of Auto Scaling group recommendations to return with a single // request. To retrieve the remaining results, make another request with the @@ -59,12 +59,12 @@ type GetAutoScalingGroupRecommendationsInput struct { type GetAutoScalingGroupRecommendationsOutput struct { // An array of objects that describe Auto Scaling group recommendations. - AutoScalingGroupRecommendations []*types.AutoScalingGroupRecommendation + AutoScalingGroupRecommendations []types.AutoScalingGroupRecommendation // An array of objects that describe errors of the request. For example, an error // is returned if you request recommendations for an unsupported Auto Scaling // group. - Errors []*types.GetRecommendationError + Errors []types.GetRecommendationError // The token to use to advance to the next page of Auto Scaling group // recommendations. This value is null when there are no more pages of Auto Scaling diff --git a/service/computeoptimizer/api_op_GetEC2InstanceRecommendations.go b/service/computeoptimizer/api_op_GetEC2InstanceRecommendations.go index e276b85bdd0..5fd601b4a25 100644 --- a/service/computeoptimizer/api_op_GetEC2InstanceRecommendations.go +++ b/service/computeoptimizer/api_op_GetEC2InstanceRecommendations.go @@ -38,15 +38,15 @@ type GetEC2InstanceRecommendationsInput struct { // your account is the master account of an organization, use this parameter to // specify the member accounts for which you want to return instance // recommendations. Only one account ID can be specified per request. - AccountIds []*string + AccountIds []string // An array of objects that describe a filter that returns a more specific list of // instance recommendations. - Filters []*types.Filter + Filters []types.Filter // The Amazon Resource Name (ARN) of the instances for which to return // recommendations. - InstanceArns []*string + InstanceArns []string // The maximum number of instance recommendations to return with a single request. // To retrieve the remaining results, make another request with the returned @@ -62,10 +62,10 @@ type GetEC2InstanceRecommendationsOutput struct { // An array of objects that describe errors of the request. For example, an error // is returned if you request recommendations for an instance of an unsupported // instance family. - Errors []*types.GetRecommendationError + Errors []types.GetRecommendationError // An array of objects that describe instance recommendations. - InstanceRecommendations []*types.InstanceRecommendation + InstanceRecommendations []types.InstanceRecommendation // The token to use to advance to the next page of instance recommendations. This // value is null when there are no more pages of instance recommendations to diff --git a/service/computeoptimizer/api_op_GetEC2RecommendationProjectedMetrics.go b/service/computeoptimizer/api_op_GetEC2RecommendationProjectedMetrics.go index c30bc8d6899..eae666bcbf2 100644 --- a/service/computeoptimizer/api_op_GetEC2RecommendationProjectedMetrics.go +++ b/service/computeoptimizer/api_op_GetEC2RecommendationProjectedMetrics.go @@ -50,7 +50,7 @@ type GetEC2RecommendationProjectedMetricsInput struct { // The granularity, in seconds, of the projected metrics data points. // // This member is required. - Period *int32 + Period int32 // The time stamp of the first projected metrics data point to return. // @@ -66,7 +66,7 @@ type GetEC2RecommendationProjectedMetricsInput struct { type GetEC2RecommendationProjectedMetricsOutput struct { // An array of objects that describe a projected metrics. - RecommendedOptionProjectedMetrics []*types.RecommendedOptionProjectedMetric + RecommendedOptionProjectedMetrics []types.RecommendedOptionProjectedMetric // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/computeoptimizer/api_op_GetEnrollmentStatus.go b/service/computeoptimizer/api_op_GetEnrollmentStatus.go index c9a32326243..5388daeea70 100644 --- a/service/computeoptimizer/api_op_GetEnrollmentStatus.go +++ b/service/computeoptimizer/api_op_GetEnrollmentStatus.go @@ -37,7 +37,7 @@ type GetEnrollmentStatusOutput struct { // Confirms the enrollment status of member accounts within the organization, if // the account is a master account of an organization. - MemberAccountsEnrolled *bool + MemberAccountsEnrolled bool // The enrollment status of the account. Status types.Status diff --git a/service/computeoptimizer/api_op_GetRecommendationSummaries.go b/service/computeoptimizer/api_op_GetRecommendationSummaries.go index 540d3484c54..934ef6db262 100644 --- a/service/computeoptimizer/api_op_GetRecommendationSummaries.go +++ b/service/computeoptimizer/api_op_GetRecommendationSummaries.go @@ -36,7 +36,7 @@ type GetRecommendationSummariesInput struct { // your account is the master account of an organization, use this parameter to // specify the member accounts for which you want to return recommendation // summaries. Only one account ID can be specified per request. - AccountIds []*string + AccountIds []string // The maximum number of recommendation summaries to return with a single request. // To retrieve the remaining results, make another request with the returned @@ -55,7 +55,7 @@ type GetRecommendationSummariesOutput struct { NextToken *string // An array of objects that summarize a recommendation. - RecommendationSummaries []*types.RecommendationSummary + RecommendationSummaries []types.RecommendationSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/computeoptimizer/api_op_UpdateEnrollmentStatus.go b/service/computeoptimizer/api_op_UpdateEnrollmentStatus.go index ec9a280f2b7..3337b10f28f 100644 --- a/service/computeoptimizer/api_op_UpdateEnrollmentStatus.go +++ b/service/computeoptimizer/api_op_UpdateEnrollmentStatus.go @@ -39,7 +39,7 @@ type UpdateEnrollmentStatusInput struct { // Indicates whether to enroll member accounts of the organization if the your // account is the master account of an organization. - IncludeMemberAccounts *bool + IncludeMemberAccounts bool } type UpdateEnrollmentStatusOutput struct { diff --git a/service/computeoptimizer/deserializers.go b/service/computeoptimizer/deserializers.go index ded3f107f26..a32eabc162b 100644 --- a/service/computeoptimizer/deserializers.go +++ b/service/computeoptimizer/deserializers.go @@ -1536,7 +1536,7 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1580,7 +1580,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupConfiguration(v **types.Aut if err != nil { return err } - sv.DesiredCapacity = ptr.Int32(int32(i64)) + sv.DesiredCapacity = int32(i64) } case "instanceType": @@ -1589,7 +1589,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupConfiguration(v **types.Aut if !ok { return fmt.Errorf("expected InstanceType to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "maxSize": @@ -1602,7 +1602,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupConfiguration(v **types.Aut if err != nil { return err } - sv.MaxSize = ptr.Int32(int32(i64)) + sv.MaxSize = int32(i64) } case "minSize": @@ -1615,7 +1615,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupConfiguration(v **types.Aut if err != nil { return err } - sv.MinSize = ptr.Int32(int32(i64)) + sv.MinSize = int32(i64) } default: @@ -1655,7 +1655,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendation(v **types.Au if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "autoScalingGroupArn": @@ -1664,7 +1664,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendation(v **types.Au if !ok { return fmt.Errorf("expected AutoScalingGroupArn to be of type string, got %T instead", value) } - sv.AutoScalingGroupArn = &jtv + sv.AutoScalingGroupArn = ptr.String(jtv) } case "autoScalingGroupName": @@ -1673,7 +1673,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendation(v **types.Au if !ok { return fmt.Errorf("expected AutoScalingGroupName to be of type string, got %T instead", value) } - sv.AutoScalingGroupName = &jtv + sv.AutoScalingGroupName = ptr.String(jtv) } case "currentConfiguration": @@ -1713,7 +1713,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendation(v **types.Au if err != nil { return err } - sv.LookBackPeriodInDays = &f64 + sv.LookBackPeriodInDays = f64 } case "recommendationOptions": @@ -1772,7 +1772,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendationOption(v **ty if err != nil { return err } - sv.PerformanceRisk = &f64 + sv.PerformanceRisk = f64 } case "projectedUtilizationMetrics": @@ -1790,7 +1790,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendationOption(v **ty if err != nil { return err } - sv.Rank = ptr.Int32(int32(i64)) + sv.Rank = int32(i64) } default: @@ -1802,7 +1802,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendationOption(v **ty return nil } -func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendationOptions(v *[]*types.AutoScalingGroupRecommendationOption, value interface{}) error { +func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendationOptions(v *[]types.AutoScalingGroupRecommendationOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1815,18 +1815,20 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendationOptions(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutoScalingGroupRecommendationOption + var cv []types.AutoScalingGroupRecommendationOption if *v == nil { - cv = []*types.AutoScalingGroupRecommendationOption{} + cv = []types.AutoScalingGroupRecommendationOption{} } else { cv = *v } for _, value := range shape { - var col *types.AutoScalingGroupRecommendationOption - if err := awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendationOption(&col, value); err != nil { + var col types.AutoScalingGroupRecommendationOption + destAddr := &col + if err := awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendationOption(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1834,7 +1836,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendationOptions(v *[] return nil } -func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendations(v *[]*types.AutoScalingGroupRecommendation, value interface{}) error { +func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendations(v *[]types.AutoScalingGroupRecommendation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1847,18 +1849,20 @@ func awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendations(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutoScalingGroupRecommendation + var cv []types.AutoScalingGroupRecommendation if *v == nil { - cv = []*types.AutoScalingGroupRecommendation{} + cv = []types.AutoScalingGroupRecommendation{} } else { cv = *v } for _, value := range shape { - var col *types.AutoScalingGroupRecommendation - if err := awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendation(&col, value); err != nil { + var col types.AutoScalingGroupRecommendation + destAddr := &col + if err := awsAwsjson10_deserializeDocumentAutoScalingGroupRecommendation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1930,7 +1934,7 @@ func awsAwsjson10_deserializeDocumentGetRecommendationError(v **types.GetRecomme if !ok { return fmt.Errorf("expected Code to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "identifier": @@ -1939,7 +1943,7 @@ func awsAwsjson10_deserializeDocumentGetRecommendationError(v **types.GetRecomme if !ok { return fmt.Errorf("expected Identifier to be of type string, got %T instead", value) } - sv.Identifier = &jtv + sv.Identifier = ptr.String(jtv) } case "message": @@ -1948,7 +1952,7 @@ func awsAwsjson10_deserializeDocumentGetRecommendationError(v **types.GetRecomme if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1960,7 +1964,7 @@ func awsAwsjson10_deserializeDocumentGetRecommendationError(v **types.GetRecomme return nil } -func awsAwsjson10_deserializeDocumentGetRecommendationErrors(v *[]*types.GetRecommendationError, value interface{}) error { +func awsAwsjson10_deserializeDocumentGetRecommendationErrors(v *[]types.GetRecommendationError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1973,18 +1977,20 @@ func awsAwsjson10_deserializeDocumentGetRecommendationErrors(v *[]*types.GetReco return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GetRecommendationError + var cv []types.GetRecommendationError if *v == nil { - cv = []*types.GetRecommendationError{} + cv = []types.GetRecommendationError{} } else { cv = *v } for _, value := range shape { - var col *types.GetRecommendationError - if err := awsAwsjson10_deserializeDocumentGetRecommendationError(&col, value); err != nil { + var col types.GetRecommendationError + destAddr := &col + if err := awsAwsjson10_deserializeDocumentGetRecommendationError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2020,7 +2026,7 @@ func awsAwsjson10_deserializeDocumentInstanceRecommendation(v **types.InstanceRe if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "currentInstanceType": @@ -2029,7 +2035,7 @@ func awsAwsjson10_deserializeDocumentInstanceRecommendation(v **types.InstanceRe if !ok { return fmt.Errorf("expected CurrentInstanceType to be of type string, got %T instead", value) } - sv.CurrentInstanceType = &jtv + sv.CurrentInstanceType = ptr.String(jtv) } case "finding": @@ -2047,7 +2053,7 @@ func awsAwsjson10_deserializeDocumentInstanceRecommendation(v **types.InstanceRe if !ok { return fmt.Errorf("expected InstanceArn to be of type string, got %T instead", value) } - sv.InstanceArn = &jtv + sv.InstanceArn = ptr.String(jtv) } case "instanceName": @@ -2056,7 +2062,7 @@ func awsAwsjson10_deserializeDocumentInstanceRecommendation(v **types.InstanceRe if !ok { return fmt.Errorf("expected InstanceName to be of type string, got %T instead", value) } - sv.InstanceName = &jtv + sv.InstanceName = ptr.String(jtv) } case "lastRefreshTimestamp": @@ -2082,7 +2088,7 @@ func awsAwsjson10_deserializeDocumentInstanceRecommendation(v **types.InstanceRe if err != nil { return err } - sv.LookBackPeriodInDays = &f64 + sv.LookBackPeriodInDays = f64 } case "recommendationOptions": @@ -2137,7 +2143,7 @@ func awsAwsjson10_deserializeDocumentInstanceRecommendationOption(v **types.Inst if !ok { return fmt.Errorf("expected InstanceType to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "performanceRisk": @@ -2150,7 +2156,7 @@ func awsAwsjson10_deserializeDocumentInstanceRecommendationOption(v **types.Inst if err != nil { return err } - sv.PerformanceRisk = &f64 + sv.PerformanceRisk = f64 } case "projectedUtilizationMetrics": @@ -2168,7 +2174,7 @@ func awsAwsjson10_deserializeDocumentInstanceRecommendationOption(v **types.Inst if err != nil { return err } - sv.Rank = ptr.Int32(int32(i64)) + sv.Rank = int32(i64) } default: @@ -2180,7 +2186,7 @@ func awsAwsjson10_deserializeDocumentInstanceRecommendationOption(v **types.Inst return nil } -func awsAwsjson10_deserializeDocumentInstanceRecommendations(v *[]*types.InstanceRecommendation, value interface{}) error { +func awsAwsjson10_deserializeDocumentInstanceRecommendations(v *[]types.InstanceRecommendation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2193,18 +2199,20 @@ func awsAwsjson10_deserializeDocumentInstanceRecommendations(v *[]*types.Instanc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceRecommendation + var cv []types.InstanceRecommendation if *v == nil { - cv = []*types.InstanceRecommendation{} + cv = []types.InstanceRecommendation{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceRecommendation - if err := awsAwsjson10_deserializeDocumentInstanceRecommendation(&col, value); err != nil { + var col types.InstanceRecommendation + destAddr := &col + if err := awsAwsjson10_deserializeDocumentInstanceRecommendation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2240,7 +2248,7 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2280,7 +2288,7 @@ func awsAwsjson10_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2320,7 +2328,7 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2332,7 +2340,7 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson10_deserializeDocumentMetricValues(v *[]*float64, value interface{}) error { +func awsAwsjson10_deserializeDocumentMetricValues(v *[]float64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2345,15 +2353,15 @@ func awsAwsjson10_deserializeDocumentMetricValues(v *[]*float64, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*float64 + var cv []float64 if *v == nil { - cv = []*float64{} + cv = []float64{} } else { cv = *v } for _, value := range shape { - var col *float64 + var col float64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -2363,7 +2371,7 @@ func awsAwsjson10_deserializeDocumentMetricValues(v *[]*float64, value interface if err != nil { return err } - col = &f64 + col = f64 } cv = append(cv, col) @@ -2400,7 +2408,7 @@ func awsAwsjson10_deserializeDocumentMissingAuthenticationToken(v **types.Missin if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2440,7 +2448,7 @@ func awsAwsjson10_deserializeDocumentOptInRequiredException(v **types.OptInRequi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2502,7 +2510,7 @@ func awsAwsjson10_deserializeDocumentProjectedMetric(v **types.ProjectedMetric, return nil } -func awsAwsjson10_deserializeDocumentProjectedMetrics(v *[]*types.ProjectedMetric, value interface{}) error { +func awsAwsjson10_deserializeDocumentProjectedMetrics(v *[]types.ProjectedMetric, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2515,18 +2523,20 @@ func awsAwsjson10_deserializeDocumentProjectedMetrics(v *[]*types.ProjectedMetri return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProjectedMetric + var cv []types.ProjectedMetric if *v == nil { - cv = []*types.ProjectedMetric{} + cv = []types.ProjectedMetric{} } else { cv = *v } for _, value := range shape { - var col *types.ProjectedMetric - if err := awsAwsjson10_deserializeDocumentProjectedMetric(&col, value); err != nil { + var col types.ProjectedMetric + destAddr := &col + if err := awsAwsjson10_deserializeDocumentProjectedMetric(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2534,7 +2544,7 @@ func awsAwsjson10_deserializeDocumentProjectedMetrics(v *[]*types.ProjectedMetri return nil } -func awsAwsjson10_deserializeDocumentProjectedUtilizationMetrics(v *[]*types.UtilizationMetric, value interface{}) error { +func awsAwsjson10_deserializeDocumentProjectedUtilizationMetrics(v *[]types.UtilizationMetric, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2547,18 +2557,20 @@ func awsAwsjson10_deserializeDocumentProjectedUtilizationMetrics(v *[]*types.Uti return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UtilizationMetric + var cv []types.UtilizationMetric if *v == nil { - cv = []*types.UtilizationMetric{} + cv = []types.UtilizationMetric{} } else { cv = *v } for _, value := range shape { - var col *types.UtilizationMetric - if err := awsAwsjson10_deserializeDocumentUtilizationMetric(&col, value); err != nil { + var col types.UtilizationMetric + destAddr := &col + if err := awsAwsjson10_deserializeDocumentUtilizationMetric(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2612,7 +2624,7 @@ func awsAwsjson10_deserializeDocumentRecommendationExportJob(v **types.Recommend if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "jobId": @@ -2621,7 +2633,7 @@ func awsAwsjson10_deserializeDocumentRecommendationExportJob(v **types.Recommend if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "lastUpdatedTimestamp": @@ -2664,7 +2676,7 @@ func awsAwsjson10_deserializeDocumentRecommendationExportJob(v **types.Recommend return nil } -func awsAwsjson10_deserializeDocumentRecommendationExportJobs(v *[]*types.RecommendationExportJob, value interface{}) error { +func awsAwsjson10_deserializeDocumentRecommendationExportJobs(v *[]types.RecommendationExportJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2677,18 +2689,20 @@ func awsAwsjson10_deserializeDocumentRecommendationExportJobs(v *[]*types.Recomm return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecommendationExportJob + var cv []types.RecommendationExportJob if *v == nil { - cv = []*types.RecommendationExportJob{} + cv = []types.RecommendationExportJob{} } else { cv = *v } for _, value := range shape { - var col *types.RecommendationExportJob - if err := awsAwsjson10_deserializeDocumentRecommendationExportJob(&col, value); err != nil { + var col types.RecommendationExportJob + destAddr := &col + if err := awsAwsjson10_deserializeDocumentRecommendationExportJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2696,7 +2710,7 @@ func awsAwsjson10_deserializeDocumentRecommendationExportJobs(v *[]*types.Recomm return nil } -func awsAwsjson10_deserializeDocumentRecommendationOptions(v *[]*types.InstanceRecommendationOption, value interface{}) error { +func awsAwsjson10_deserializeDocumentRecommendationOptions(v *[]types.InstanceRecommendationOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2709,18 +2723,20 @@ func awsAwsjson10_deserializeDocumentRecommendationOptions(v *[]*types.InstanceR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceRecommendationOption + var cv []types.InstanceRecommendationOption if *v == nil { - cv = []*types.InstanceRecommendationOption{} + cv = []types.InstanceRecommendationOption{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceRecommendationOption - if err := awsAwsjson10_deserializeDocumentInstanceRecommendationOption(&col, value); err != nil { + var col types.InstanceRecommendationOption + destAddr := &col + if err := awsAwsjson10_deserializeDocumentInstanceRecommendationOption(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2756,7 +2772,7 @@ func awsAwsjson10_deserializeDocumentRecommendationSource(v **types.Recommendati if !ok { return fmt.Errorf("expected RecommendationSourceArn to be of type string, got %T instead", value) } - sv.RecommendationSourceArn = &jtv + sv.RecommendationSourceArn = ptr.String(jtv) } case "recommendationSourceType": @@ -2777,7 +2793,7 @@ func awsAwsjson10_deserializeDocumentRecommendationSource(v **types.Recommendati return nil } -func awsAwsjson10_deserializeDocumentRecommendationSources(v *[]*types.RecommendationSource, value interface{}) error { +func awsAwsjson10_deserializeDocumentRecommendationSources(v *[]types.RecommendationSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2790,18 +2806,20 @@ func awsAwsjson10_deserializeDocumentRecommendationSources(v *[]*types.Recommend return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecommendationSource + var cv []types.RecommendationSource if *v == nil { - cv = []*types.RecommendationSource{} + cv = []types.RecommendationSource{} } else { cv = *v } for _, value := range shape { - var col *types.RecommendationSource - if err := awsAwsjson10_deserializeDocumentRecommendationSource(&col, value); err != nil { + var col types.RecommendationSource + destAddr := &col + if err := awsAwsjson10_deserializeDocumentRecommendationSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2809,7 +2827,7 @@ func awsAwsjson10_deserializeDocumentRecommendationSources(v *[]*types.Recommend return nil } -func awsAwsjson10_deserializeDocumentRecommendationSummaries(v *[]*types.RecommendationSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentRecommendationSummaries(v *[]types.RecommendationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2822,18 +2840,20 @@ func awsAwsjson10_deserializeDocumentRecommendationSummaries(v *[]*types.Recomme return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecommendationSummary + var cv []types.RecommendationSummary if *v == nil { - cv = []*types.RecommendationSummary{} + cv = []types.RecommendationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RecommendationSummary - if err := awsAwsjson10_deserializeDocumentRecommendationSummary(&col, value); err != nil { + var col types.RecommendationSummary + destAddr := &col + if err := awsAwsjson10_deserializeDocumentRecommendationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2869,7 +2889,7 @@ func awsAwsjson10_deserializeDocumentRecommendationSummary(v **types.Recommendat if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "recommendationResourceType": @@ -2932,7 +2952,7 @@ func awsAwsjson10_deserializeDocumentRecommendedOptionProjectedMetric(v **types. if err != nil { return err } - sv.Rank = ptr.Int32(int32(i64)) + sv.Rank = int32(i64) } case "recommendedInstanceType": @@ -2941,7 +2961,7 @@ func awsAwsjson10_deserializeDocumentRecommendedOptionProjectedMetric(v **types. if !ok { return fmt.Errorf("expected RecommendedInstanceType to be of type string, got %T instead", value) } - sv.RecommendedInstanceType = &jtv + sv.RecommendedInstanceType = ptr.String(jtv) } default: @@ -2953,7 +2973,7 @@ func awsAwsjson10_deserializeDocumentRecommendedOptionProjectedMetric(v **types. return nil } -func awsAwsjson10_deserializeDocumentRecommendedOptionProjectedMetrics(v *[]*types.RecommendedOptionProjectedMetric, value interface{}) error { +func awsAwsjson10_deserializeDocumentRecommendedOptionProjectedMetrics(v *[]types.RecommendedOptionProjectedMetric, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2966,18 +2986,20 @@ func awsAwsjson10_deserializeDocumentRecommendedOptionProjectedMetrics(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecommendedOptionProjectedMetric + var cv []types.RecommendedOptionProjectedMetric if *v == nil { - cv = []*types.RecommendedOptionProjectedMetric{} + cv = []types.RecommendedOptionProjectedMetric{} } else { cv = *v } for _, value := range shape { - var col *types.RecommendedOptionProjectedMetric - if err := awsAwsjson10_deserializeDocumentRecommendedOptionProjectedMetric(&col, value); err != nil { + var col types.RecommendedOptionProjectedMetric + destAddr := &col + if err := awsAwsjson10_deserializeDocumentRecommendedOptionProjectedMetric(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3013,7 +3035,7 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3053,7 +3075,7 @@ func awsAwsjson10_deserializeDocumentS3Destination(v **types.S3Destination, valu if !ok { return fmt.Errorf("expected DestinationBucket to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "key": @@ -3062,7 +3084,7 @@ func awsAwsjson10_deserializeDocumentS3Destination(v **types.S3Destination, valu if !ok { return fmt.Errorf("expected DestinationKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "metadataKey": @@ -3071,7 +3093,7 @@ func awsAwsjson10_deserializeDocumentS3Destination(v **types.S3Destination, valu if !ok { return fmt.Errorf("expected MetadataKey to be of type string, got %T instead", value) } - sv.MetadataKey = &jtv + sv.MetadataKey = ptr.String(jtv) } default: @@ -3111,7 +3133,7 @@ func awsAwsjson10_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3123,7 +3145,7 @@ func awsAwsjson10_deserializeDocumentServiceUnavailableException(v **types.Servi return nil } -func awsAwsjson10_deserializeDocumentSummaries(v *[]*types.Summary, value interface{}) error { +func awsAwsjson10_deserializeDocumentSummaries(v *[]types.Summary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3136,18 +3158,20 @@ func awsAwsjson10_deserializeDocumentSummaries(v *[]*types.Summary, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Summary + var cv []types.Summary if *v == nil { - cv = []*types.Summary{} + cv = []types.Summary{} } else { cv = *v } for _, value := range shape { - var col *types.Summary - if err := awsAwsjson10_deserializeDocumentSummary(&col, value); err != nil { + var col types.Summary + destAddr := &col + if err := awsAwsjson10_deserializeDocumentSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3196,7 +3220,7 @@ func awsAwsjson10_deserializeDocumentSummary(v **types.Summary, value interface{ if err != nil { return err } - sv.Value = &f64 + sv.Value = f64 } default: @@ -3236,7 +3260,7 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3248,7 +3272,7 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc return nil } -func awsAwsjson10_deserializeDocumentTimestamps(v *[]*time.Time, value interface{}) error { +func awsAwsjson10_deserializeDocumentTimestamps(v *[]time.Time, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3261,15 +3285,15 @@ func awsAwsjson10_deserializeDocumentTimestamps(v *[]*time.Time, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*time.Time + var cv []time.Time if *v == nil { - cv = []*time.Time{} + cv = []time.Time{} } else { cv = *v } for _, value := range shape { - var col *time.Time + var col time.Time if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -3279,7 +3303,7 @@ func awsAwsjson10_deserializeDocumentTimestamps(v *[]*time.Time, value interface if err != nil { return err } - col = ptr.Time(smithytime.ParseEpochSeconds(f64)) + col = smithytime.ParseEpochSeconds(f64) } cv = append(cv, col) @@ -3338,7 +3362,7 @@ func awsAwsjson10_deserializeDocumentUtilizationMetric(v **types.UtilizationMetr if err != nil { return err } - sv.Value = &f64 + sv.Value = f64 } default: @@ -3350,7 +3374,7 @@ func awsAwsjson10_deserializeDocumentUtilizationMetric(v **types.UtilizationMetr return nil } -func awsAwsjson10_deserializeDocumentUtilizationMetrics(v *[]*types.UtilizationMetric, value interface{}) error { +func awsAwsjson10_deserializeDocumentUtilizationMetrics(v *[]types.UtilizationMetric, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3363,18 +3387,20 @@ func awsAwsjson10_deserializeDocumentUtilizationMetrics(v *[]*types.UtilizationM return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UtilizationMetric + var cv []types.UtilizationMetric if *v == nil { - cv = []*types.UtilizationMetric{} + cv = []types.UtilizationMetric{} } else { cv = *v } for _, value := range shape { - var col *types.UtilizationMetric - if err := awsAwsjson10_deserializeDocumentUtilizationMetric(&col, value); err != nil { + var col types.UtilizationMetric + destAddr := &col + if err := awsAwsjson10_deserializeDocumentUtilizationMetric(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3410,7 +3436,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeRecommendationExportJobsOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "recommendationExportJobs": @@ -3455,7 +3481,7 @@ func awsAwsjson10_deserializeOpDocumentExportAutoScalingGroupRecommendationsOutp if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "s3Destination": @@ -3500,7 +3526,7 @@ func awsAwsjson10_deserializeOpDocumentExportEC2InstanceRecommendationsOutput(v if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "s3Destination": @@ -3555,7 +3581,7 @@ func awsAwsjson10_deserializeOpDocumentGetAutoScalingGroupRecommendationsOutput( if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3605,7 +3631,7 @@ func awsAwsjson10_deserializeOpDocumentGetEC2InstanceRecommendationsOutput(v **G if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3681,7 +3707,7 @@ func awsAwsjson10_deserializeOpDocumentGetEnrollmentStatusOutput(v **GetEnrollme if !ok { return fmt.Errorf("expected MemberAccountsEnrolled to be of type *bool, got %T instead", value) } - sv.MemberAccountsEnrolled = &jtv + sv.MemberAccountsEnrolled = jtv } case "status": @@ -3699,7 +3725,7 @@ func awsAwsjson10_deserializeOpDocumentGetEnrollmentStatusOutput(v **GetEnrollme if !ok { return fmt.Errorf("expected StatusReason to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } default: @@ -3739,7 +3765,7 @@ func awsAwsjson10_deserializeOpDocumentGetRecommendationSummariesOutput(v **GetR if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "recommendationSummaries": @@ -3793,7 +3819,7 @@ func awsAwsjson10_deserializeOpDocumentUpdateEnrollmentStatusOutput(v **UpdateEn if !ok { return fmt.Errorf("expected StatusReason to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } default: diff --git a/service/computeoptimizer/go.mod b/service/computeoptimizer/go.mod index 091711cdd58..d103de40532 100644 --- a/service/computeoptimizer/go.mod +++ b/service/computeoptimizer/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/computeoptimizer go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/computeoptimizer/serializers.go b/service/computeoptimizer/serializers.go index d46f28d39b1..d983dd5c9e5 100644 --- a/service/computeoptimizer/serializers.go +++ b/service/computeoptimizer/serializers.go @@ -421,32 +421,24 @@ func (m *awsAwsjson10_serializeOpUpdateEnrollmentStatus) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -func awsAwsjson10_serializeDocumentAccountIds(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentAccountIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson10_serializeDocumentAutoScalingGroupArns(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentAutoScalingGroupArns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -492,49 +484,37 @@ func awsAwsjson10_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsAwsjson10_serializeDocumentFilters(v []*types.Filter, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentFilters(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson10_serializeDocumentFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson10_serializeDocumentInstanceArns(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentInstanceArns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -558,34 +538,26 @@ func awsAwsjson10_serializeDocumentJobFilter(v *types.JobFilter, value smithyjso return nil } -func awsAwsjson10_serializeDocumentJobFilters(v []*types.JobFilter, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentJobFilters(v []types.JobFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentJobFilter(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentJobFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson10_serializeDocumentJobIds(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentJobIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -668,9 +640,9 @@ func awsAwsjson10_serializeOpDocumentExportAutoScalingGroupRecommendationsInput( } } - if v.IncludeMemberAccounts != nil { + if v.IncludeMemberAccounts { ok := object.Key("includeMemberAccounts") - ok.Boolean(*v.IncludeMemberAccounts) + ok.Boolean(v.IncludeMemberAccounts) } if v.S3DestinationConfig != nil { @@ -713,9 +685,9 @@ func awsAwsjson10_serializeOpDocumentExportEC2InstanceRecommendationsInput(v *Ex } } - if v.IncludeMemberAccounts != nil { + if v.IncludeMemberAccounts { ok := object.Key("includeMemberAccounts") - ok.Boolean(*v.IncludeMemberAccounts) + ok.Boolean(v.IncludeMemberAccounts) } if v.S3DestinationConfig != nil { @@ -818,9 +790,9 @@ func awsAwsjson10_serializeOpDocumentGetEC2RecommendationProjectedMetricsInput(v ok.String(*v.InstanceArn) } - if v.Period != nil { + if v.Period != 0 { ok := object.Key("period") - ok.Integer(*v.Period) + ok.Integer(v.Period) } if v.StartTime != nil { @@ -871,9 +843,9 @@ func awsAwsjson10_serializeOpDocumentUpdateEnrollmentStatusInput(v *UpdateEnroll object := value.Object() defer object.Close() - if v.IncludeMemberAccounts != nil { + if v.IncludeMemberAccounts { ok := object.Key("includeMemberAccounts") - ok.Boolean(*v.IncludeMemberAccounts) + ok.Boolean(v.IncludeMemberAccounts) } if len(v.Status) > 0 { diff --git a/service/computeoptimizer/types/types.go b/service/computeoptimizer/types/types.go index 46b521d9fb1..9cc5ea2bebe 100644 --- a/service/computeoptimizer/types/types.go +++ b/service/computeoptimizer/types/types.go @@ -10,16 +10,16 @@ import ( type AutoScalingGroupConfiguration struct { // The desired capacity, or number of instances, for the Auto Scaling group. - DesiredCapacity *int32 + DesiredCapacity int32 // The instance type for the Auto Scaling group. InstanceType *string // The maximum size, or maximum number of instances, for the Auto Scaling group. - MaxSize *int32 + MaxSize int32 // The minimum size, or minimum number of instances, for the Auto Scaling group. - MinSize *int32 + MinSize int32 } // Describes an Auto Scaling group recommendation. @@ -60,15 +60,15 @@ type AutoScalingGroupRecommendation struct { // The number of days for which utilization metrics were analyzed for the Auto // Scaling group. - LookBackPeriodInDays *float64 + LookBackPeriodInDays float64 // An array of objects that describe the recommendation options for the Auto // Scaling group. - RecommendationOptions []*AutoScalingGroupRecommendationOption + RecommendationOptions []AutoScalingGroupRecommendationOption // An array of objects that describe the utilization metrics of the Auto Scaling // group. - UtilizationMetrics []*UtilizationMetric + UtilizationMetrics []UtilizationMetric } // Describes a recommendation option for an Auto Scaling group. @@ -81,7 +81,7 @@ type AutoScalingGroupRecommendationOption struct { // Performance risk is the likelihood of the recommended instance type not meeting // the performance requirement of your workload. The lowest performance risk is // categorized as 0, and the highest as 5. - PerformanceRisk *float64 + PerformanceRisk float64 // An array of objects that describe the projected utilization metrics of the Auto // Scaling group recommendation option. The Cpu and Memory metrics are the only @@ -90,11 +90,11 @@ type AutoScalingGroupRecommendationOption struct { // them. For more information, see Enabling Memory Utilization with the CloudWatch // Agent // (https://docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html#cw-agent). - ProjectedUtilizationMetrics []*UtilizationMetric + ProjectedUtilizationMetrics []UtilizationMetric // The rank of the Auto Scaling group recommendation option. The top recommendation // option is ranked as 1. - Rank *int32 + Rank int32 } // Describes the destination of the recommendations export and metadata files. @@ -122,7 +122,7 @@ type Filter struct { // Scaling group, then the valid values are Optimized, or NotOptimized. If you // specify the name parameter as RecommendationSourceType, then the valid values // are Ec2Instance, or AutoScalingGroup. - Values []*string + Values []string } // Describes an error experienced when getting recommendations. For example, an @@ -186,16 +186,16 @@ type InstanceRecommendation struct { LastRefreshTimestamp *time.Time // The number of days for which utilization metrics were analyzed for the instance. - LookBackPeriodInDays *float64 + LookBackPeriodInDays float64 // An array of objects that describe the recommendation options for the instance. - RecommendationOptions []*InstanceRecommendationOption + RecommendationOptions []InstanceRecommendationOption // An array of objects that describe the source resource of the recommendation. - RecommendationSources []*RecommendationSource + RecommendationSources []RecommendationSource // An array of objects that describe the utilization metrics of the instance. - UtilizationMetrics []*UtilizationMetric + UtilizationMetrics []UtilizationMetric } // Describes a recommendation option for an Amazon EC2 instance. @@ -208,7 +208,7 @@ type InstanceRecommendationOption struct { // the likelihood of the recommended instance type not meeting the performance // requirement of your workload. The lowest performance risk is categorized as 0, // and the highest as 5. - PerformanceRisk *float64 + PerformanceRisk float64 // An array of objects that describe the projected utilization metrics of the // instance recommendation option. The Cpu and Memory metrics are the only @@ -217,11 +217,11 @@ type InstanceRecommendationOption struct { // them. For more information, see Enabling Memory Utilization with the CloudWatch // Agent // (https://docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html#cw-agent). - ProjectedUtilizationMetrics []*UtilizationMetric + ProjectedUtilizationMetrics []UtilizationMetric // The rank of the instance recommendation option. The top recommendation option is // ranked as 1. - Rank *int32 + Rank int32 } // Describes a filter that returns a more specific list of recommendation export @@ -237,7 +237,7 @@ type JobFilter struct { // valid values are Ec2Instance or AutoScalingGroup. If you specify the name // parameter as JobStatus, the valid values are Queued, InProgress, Complete, or // Failed. - Values []*string + Values []string } // Describes a projected utilization metric of a recommendation option, such as an @@ -254,10 +254,10 @@ type ProjectedMetric struct { Name MetricName // The time stamps of the projected utilization metric. - Timestamps []*time.Time + Timestamps []time.Time // The values of the projected utilization metrics. - Values []*float64 + Values []float64 } // Describes a recommendation export job. Use the DescribeRecommendationExportJobs @@ -309,7 +309,7 @@ type RecommendationSummary struct { RecommendationResourceType RecommendationSourceType // An array of objects that describe a recommendation summary. - Summaries []*Summary + Summaries []Summary } // Describes a projected utilization metric of a recommendation option. The Cpu and @@ -322,14 +322,14 @@ type RecommendationSummary struct { type RecommendedOptionProjectedMetric struct { // An array of objects that describe a projected utilization metric. - ProjectedMetrics []*ProjectedMetric + ProjectedMetrics []ProjectedMetric // The rank of the recommendation option projected metric. The top recommendation // option is ranked as 1. The projected metric rank correlates to the // recommendation option rank. For example, the projected metric ranked as 1 is // related to the recommendation option that is also ranked as 1 in the same // response. - Rank *int32 + Rank int32 // The recommended instance type. RecommendedInstanceType *string @@ -379,7 +379,7 @@ type Summary struct { Name Finding // The value of the recommendation summary. - Value *float64 + Value float64 } // Describes a utilization metric of a resource, such as an Amazon EC2 instance. @@ -395,5 +395,5 @@ type UtilizationMetric struct { Statistic MetricStatistic // The value of the utilization metric. - Value *float64 + Value float64 } diff --git a/service/computeoptimizer/validators.go b/service/computeoptimizer/validators.go index 7b51f08cb0e..3cdccfac001 100644 --- a/service/computeoptimizer/validators.go +++ b/service/computeoptimizer/validators.go @@ -140,9 +140,6 @@ func validateOpGetEC2RecommendationProjectedMetricsInput(v *GetEC2Recommendation return nil } invalidParams := smithy.InvalidParamsError{Context: "GetEC2RecommendationProjectedMetricsInput"} - if v.Period == nil { - invalidParams.Add(smithy.NewErrParamRequired("Period")) - } if v.StartTime == nil { invalidParams.Add(smithy.NewErrParamRequired("StartTime")) } diff --git a/service/configservice/api_op_BatchGetAggregateResourceConfig.go b/service/configservice/api_op_BatchGetAggregateResourceConfig.go index 7e8a10fb6f7..0bc9de9a1a6 100644 --- a/service/configservice/api_op_BatchGetAggregateResourceConfig.go +++ b/service/configservice/api_op_BatchGetAggregateResourceConfig.go @@ -46,17 +46,17 @@ type BatchGetAggregateResourceConfigInput struct { // A list of aggregate ResourceIdentifiers objects. // // This member is required. - ResourceIdentifiers []*types.AggregateResourceIdentifier + ResourceIdentifiers []types.AggregateResourceIdentifier } type BatchGetAggregateResourceConfigOutput struct { // A list that contains the current configuration of one or more resources. - BaseConfigurationItems []*types.BaseConfigurationItem + BaseConfigurationItems []types.BaseConfigurationItem // A list of resource identifiers that were not processed with current scope. The // list is empty if all the resources are processed. - UnprocessedResourceIdentifiers []*types.AggregateResourceIdentifier + UnprocessedResourceIdentifiers []types.AggregateResourceIdentifier // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_BatchGetResourceConfig.go b/service/configservice/api_op_BatchGetResourceConfig.go index e56174e9ef8..9554f53c78c 100644 --- a/service/configservice/api_op_BatchGetResourceConfig.go +++ b/service/configservice/api_op_BatchGetResourceConfig.go @@ -43,20 +43,20 @@ type BatchGetResourceConfigInput struct { // in the list consists of the resource type and resource ID. // // This member is required. - ResourceKeys []*types.ResourceKey + ResourceKeys []types.ResourceKey } type BatchGetResourceConfigOutput struct { // A list that contains the current configuration of one or more resources. - BaseConfigurationItems []*types.BaseConfigurationItem + BaseConfigurationItems []types.BaseConfigurationItem // A list of resource keys that were not processed with the current response. The // unprocessesResourceKeys value is in the same form as ResourceKeys, so the value // can be directly provided to a subsequent BatchGetResourceConfig operation. If // there are no unprocessed resource keys, the response contains an empty // unprocessedResourceKeys list. - UnprocessedResourceKeys []*types.ResourceKey + UnprocessedResourceKeys []types.ResourceKey // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DeleteRemediationExceptions.go b/service/configservice/api_op_DeleteRemediationExceptions.go index b5ecbff6696..a14f1aabfd6 100644 --- a/service/configservice/api_op_DeleteRemediationExceptions.go +++ b/service/configservice/api_op_DeleteRemediationExceptions.go @@ -43,14 +43,14 @@ type DeleteRemediationExceptionsInput struct { // Config adds 3 exceptions for 3 resource keys. // // This member is required. - ResourceKeys []*types.RemediationExceptionResourceKey + ResourceKeys []types.RemediationExceptionResourceKey } type DeleteRemediationExceptionsOutput struct { // Returns a list of failed delete remediation exceptions batch objects. Each // object in the batch consists of a list of failed items and failure messages. - FailedBatches []*types.FailedDeleteRemediationExceptionsBatch + FailedBatches []types.FailedDeleteRemediationExceptionsBatch // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DescribeAggregateComplianceByConfigRules.go b/service/configservice/api_op_DescribeAggregateComplianceByConfigRules.go index e6bd93be195..35b210f2a68 100644 --- a/service/configservice/api_op_DescribeAggregateComplianceByConfigRules.go +++ b/service/configservice/api_op_DescribeAggregateComplianceByConfigRules.go @@ -41,7 +41,7 @@ type DescribeAggregateComplianceByConfigRulesInput struct { // The maximum number of evaluation results returned on each page. The default is // maximum. If you specify 0, AWS Config uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -51,7 +51,7 @@ type DescribeAggregateComplianceByConfigRulesInput struct { type DescribeAggregateComplianceByConfigRulesOutput struct { // Returns a list of AggregateComplianceByConfigRule object. - AggregateComplianceByConfigRules []*types.AggregateComplianceByConfigRule + AggregateComplianceByConfigRules []types.AggregateComplianceByConfigRule // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. diff --git a/service/configservice/api_op_DescribeAggregationAuthorizations.go b/service/configservice/api_op_DescribeAggregationAuthorizations.go index b4c4c8cb352..9565affa930 100644 --- a/service/configservice/api_op_DescribeAggregationAuthorizations.go +++ b/service/configservice/api_op_DescribeAggregationAuthorizations.go @@ -32,7 +32,7 @@ type DescribeAggregationAuthorizationsInput struct { // The maximum number of AggregationAuthorizations returned on each page. The // default is maximum. If you specify 0, AWS Config uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -43,7 +43,7 @@ type DescribeAggregationAuthorizationsOutput struct { // Returns a list of authorizations granted to various aggregator accounts and // regions. - AggregationAuthorizations []*types.AggregationAuthorization + AggregationAuthorizations []types.AggregationAuthorization // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. diff --git a/service/configservice/api_op_DescribeComplianceByConfigRule.go b/service/configservice/api_op_DescribeComplianceByConfigRule.go index aee756165bd..fe23cd970d2 100644 --- a/service/configservice/api_op_DescribeComplianceByConfigRule.go +++ b/service/configservice/api_op_DescribeComplianceByConfigRule.go @@ -56,7 +56,7 @@ type DescribeComplianceByConfigRuleInput struct { ComplianceTypes []types.ComplianceType // Specify one or more AWS Config rule names to filter the results by rule. - ConfigRuleNames []*string + ConfigRuleNames []string // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -67,7 +67,7 @@ type DescribeComplianceByConfigRuleInput struct { type DescribeComplianceByConfigRuleOutput struct { // Indicates whether each of the specified AWS Config rules is compliant. - ComplianceByConfigRules []*types.ComplianceByConfigRule + ComplianceByConfigRules []types.ComplianceByConfigRule // The string that you use in a subsequent request to get the next page of results // in a paginated response. diff --git a/service/configservice/api_op_DescribeComplianceByResource.go b/service/configservice/api_op_DescribeComplianceByResource.go index 437531189d8..4d20c2fb432 100644 --- a/service/configservice/api_op_DescribeComplianceByResource.go +++ b/service/configservice/api_op_DescribeComplianceByResource.go @@ -59,7 +59,7 @@ type DescribeComplianceByResourceInput struct { // The maximum number of evaluation results returned on each page. The default is // 10. You cannot specify a number greater than 100. If you specify 0, AWS Config // uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -81,7 +81,7 @@ type DescribeComplianceByResourceOutput struct { // Indicates whether the specified AWS resource complies with all of the AWS Config // rules that evaluate it. - ComplianceByResources []*types.ComplianceByResource + ComplianceByResources []types.ComplianceByResource // The string that you use in a subsequent request to get the next page of results // in a paginated response. diff --git a/service/configservice/api_op_DescribeConfigRuleEvaluationStatus.go b/service/configservice/api_op_DescribeConfigRuleEvaluationStatus.go index bac95a7e3e0..f083cbe22a2 100644 --- a/service/configservice/api_op_DescribeConfigRuleEvaluationStatus.go +++ b/service/configservice/api_op_DescribeConfigRuleEvaluationStatus.go @@ -36,7 +36,7 @@ type DescribeConfigRuleEvaluationStatusInput struct { // The name of the AWS managed Config rules for which you want status information. // If you do not specify any names, AWS Config returns status information for all // AWS managed Config rules that you use. - ConfigRuleNames []*string + ConfigRuleNames []string // The number of rule evaluation results that you want returned. This parameter is // required if the rule limit for your account is more than the default of 150 @@ -44,7 +44,7 @@ type DescribeConfigRuleEvaluationStatusInput struct { // Limits // (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_config) // in the AWS General Reference Guide. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -55,7 +55,7 @@ type DescribeConfigRuleEvaluationStatusInput struct { type DescribeConfigRuleEvaluationStatusOutput struct { // Status information about your AWS managed Config rules. - ConfigRulesEvaluationStatus []*types.ConfigRuleEvaluationStatus + ConfigRulesEvaluationStatus []types.ConfigRuleEvaluationStatus // The string that you use in a subsequent request to get the next page of results // in a paginated response. diff --git a/service/configservice/api_op_DescribeConfigRules.go b/service/configservice/api_op_DescribeConfigRules.go index bc6ae8b3536..aeca6f690a4 100644 --- a/service/configservice/api_op_DescribeConfigRules.go +++ b/service/configservice/api_op_DescribeConfigRules.go @@ -32,7 +32,7 @@ type DescribeConfigRulesInput struct { // The names of the AWS Config rules for which you want details. If you do not // specify any names, AWS Config returns details for all your rules. - ConfigRuleNames []*string + ConfigRuleNames []string // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -43,7 +43,7 @@ type DescribeConfigRulesInput struct { type DescribeConfigRulesOutput struct { // The details about your AWS Config rules. - ConfigRules []*types.ConfigRule + ConfigRules []types.ConfigRule // The string that you use in a subsequent request to get the next page of results // in a paginated response. diff --git a/service/configservice/api_op_DescribeConfigurationAggregatorSourcesStatus.go b/service/configservice/api_op_DescribeConfigurationAggregatorSourcesStatus.go index 461c4df507d..3b1846f4728 100644 --- a/service/configservice/api_op_DescribeConfigurationAggregatorSourcesStatus.go +++ b/service/configservice/api_op_DescribeConfigurationAggregatorSourcesStatus.go @@ -39,7 +39,7 @@ type DescribeConfigurationAggregatorSourcesStatusInput struct { // The maximum number of AggregatorSourceStatus returned on each page. The default // is maximum. If you specify 0, AWS Config uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -60,7 +60,7 @@ type DescribeConfigurationAggregatorSourcesStatusInput struct { type DescribeConfigurationAggregatorSourcesStatusOutput struct { // Returns an AggregatedSourceStatus object. - AggregatedSourceStatusList []*types.AggregatedSourceStatus + AggregatedSourceStatusList []types.AggregatedSourceStatus // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. diff --git a/service/configservice/api_op_DescribeConfigurationAggregators.go b/service/configservice/api_op_DescribeConfigurationAggregators.go index 3bd2317fa5f..f46ab5ef00c 100644 --- a/service/configservice/api_op_DescribeConfigurationAggregators.go +++ b/service/configservice/api_op_DescribeConfigurationAggregators.go @@ -32,11 +32,11 @@ func (c *Client) DescribeConfigurationAggregators(ctx context.Context, params *D type DescribeConfigurationAggregatorsInput struct { // The name of the configuration aggregators. - ConfigurationAggregatorNames []*string + ConfigurationAggregatorNames []string // The maximum number of configuration aggregators returned on each page. The // default is maximum. If you specify 0, AWS Config uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -46,7 +46,7 @@ type DescribeConfigurationAggregatorsInput struct { type DescribeConfigurationAggregatorsOutput struct { // Returns a ConfigurationAggregators object. - ConfigurationAggregators []*types.ConfigurationAggregator + ConfigurationAggregators []types.ConfigurationAggregator // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. diff --git a/service/configservice/api_op_DescribeConfigurationRecorderStatus.go b/service/configservice/api_op_DescribeConfigurationRecorderStatus.go index ba910f58201..61ec1088f0d 100644 --- a/service/configservice/api_op_DescribeConfigurationRecorderStatus.go +++ b/service/configservice/api_op_DescribeConfigurationRecorderStatus.go @@ -36,14 +36,14 @@ type DescribeConfigurationRecorderStatusInput struct { // The name(s) of the configuration recorder. If the name is not specified, the // action returns the current status of all the configuration recorders associated // with the account. - ConfigurationRecorderNames []*string + ConfigurationRecorderNames []string } // The output for the DescribeConfigurationRecorderStatus action, in JSON format. type DescribeConfigurationRecorderStatusOutput struct { // A list that contains status of the specified recorders. - ConfigurationRecordersStatus []*types.ConfigurationRecorderStatus + ConfigurationRecordersStatus []types.ConfigurationRecorderStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DescribeConfigurationRecorders.go b/service/configservice/api_op_DescribeConfigurationRecorders.go index 8c6b3147b69..f7e66ffab11 100644 --- a/service/configservice/api_op_DescribeConfigurationRecorders.go +++ b/service/configservice/api_op_DescribeConfigurationRecorders.go @@ -34,14 +34,14 @@ func (c *Client) DescribeConfigurationRecorders(ctx context.Context, params *Des type DescribeConfigurationRecordersInput struct { // A list of configuration recorder names. - ConfigurationRecorderNames []*string + ConfigurationRecorderNames []string } // The output for the DescribeConfigurationRecorders action. type DescribeConfigurationRecordersOutput struct { // A list that contains the descriptions of the specified configuration recorders. - ConfigurationRecorders []*types.ConfigurationRecorder + ConfigurationRecorders []types.ConfigurationRecorder // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DescribeConformancePackCompliance.go b/service/configservice/api_op_DescribeConformancePackCompliance.go index 18da0e76c17..4191658e980 100644 --- a/service/configservice/api_op_DescribeConformancePackCompliance.go +++ b/service/configservice/api_op_DescribeConformancePackCompliance.go @@ -40,7 +40,7 @@ type DescribeConformancePackComplianceInput struct { // The maximum number of AWS Config rules within a conformance pack are returned on // each page. - Limit *int32 + Limit int32 // The nextToken string returned in a previous request that you use to request the // next page of results in a paginated response. @@ -57,7 +57,7 @@ type DescribeConformancePackComplianceOutput struct { // Returns a list of ConformancePackRuleCompliance objects. // // This member is required. - ConformancePackRuleComplianceList []*types.ConformancePackRuleCompliance + ConformancePackRuleComplianceList []types.ConformancePackRuleCompliance // The nextToken string returned in a previous request that you use to request the // next page of results in a paginated response. diff --git a/service/configservice/api_op_DescribeConformancePackStatus.go b/service/configservice/api_op_DescribeConformancePackStatus.go index 18dddf99782..c2fc22df782 100644 --- a/service/configservice/api_op_DescribeConformancePackStatus.go +++ b/service/configservice/api_op_DescribeConformancePackStatus.go @@ -31,10 +31,10 @@ func (c *Client) DescribeConformancePackStatus(ctx context.Context, params *Desc type DescribeConformancePackStatusInput struct { // Comma-separated list of conformance pack names. - ConformancePackNames []*string + ConformancePackNames []string // The maximum number of conformance packs status returned on each page. - Limit *int32 + Limit int32 // The nextToken string returned in a previous request that you use to request the // next page of results in a paginated response. @@ -44,7 +44,7 @@ type DescribeConformancePackStatusInput struct { type DescribeConformancePackStatusOutput struct { // A list of ConformancePackStatusDetail objects. - ConformancePackStatusDetails []*types.ConformancePackStatusDetail + ConformancePackStatusDetails []types.ConformancePackStatusDetail // The nextToken string returned in a previous request that you use to request the // next page of results in a paginated response. diff --git a/service/configservice/api_op_DescribeConformancePacks.go b/service/configservice/api_op_DescribeConformancePacks.go index 9655b67cd0f..7785026f686 100644 --- a/service/configservice/api_op_DescribeConformancePacks.go +++ b/service/configservice/api_op_DescribeConformancePacks.go @@ -32,10 +32,10 @@ type DescribeConformancePacksInput struct { // Comma-separated list of conformance pack names for which you want details. If // you do not specify any names, AWS Config returns details for all your // conformance packs. - ConformancePackNames []*string + ConformancePackNames []string // The maximum number of conformance packs returned on each page. - Limit *int32 + Limit int32 // The nextToken string returned in a previous request that you use to request the // next page of results in a paginated response. @@ -45,7 +45,7 @@ type DescribeConformancePacksInput struct { type DescribeConformancePacksOutput struct { // Returns a list of ConformancePackDetail objects. - ConformancePackDetails []*types.ConformancePackDetail + ConformancePackDetails []types.ConformancePackDetail // The nextToken string returned in a previous request that you use to request the // next page of results in a paginated response. diff --git a/service/configservice/api_op_DescribeDeliveryChannelStatus.go b/service/configservice/api_op_DescribeDeliveryChannelStatus.go index b6fbed6e8fe..078dfae2f05 100644 --- a/service/configservice/api_op_DescribeDeliveryChannelStatus.go +++ b/service/configservice/api_op_DescribeDeliveryChannelStatus.go @@ -34,14 +34,14 @@ func (c *Client) DescribeDeliveryChannelStatus(ctx context.Context, params *Desc type DescribeDeliveryChannelStatusInput struct { // A list of delivery channel names. - DeliveryChannelNames []*string + DeliveryChannelNames []string } // The output for the DescribeDeliveryChannelStatus action. type DescribeDeliveryChannelStatusOutput struct { // A list that contains the status of a specified delivery channel. - DeliveryChannelsStatus []*types.DeliveryChannelStatus + DeliveryChannelsStatus []types.DeliveryChannelStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DescribeDeliveryChannels.go b/service/configservice/api_op_DescribeDeliveryChannels.go index 1003dbec2c5..466e6eda3ad 100644 --- a/service/configservice/api_op_DescribeDeliveryChannels.go +++ b/service/configservice/api_op_DescribeDeliveryChannels.go @@ -34,14 +34,14 @@ func (c *Client) DescribeDeliveryChannels(ctx context.Context, params *DescribeD type DescribeDeliveryChannelsInput struct { // A list of delivery channel names. - DeliveryChannelNames []*string + DeliveryChannelNames []string } // The output for the DescribeDeliveryChannels action. type DescribeDeliveryChannelsOutput struct { // A list that contains the descriptions of the specified delivery channel. - DeliveryChannels []*types.DeliveryChannel + DeliveryChannels []types.DeliveryChannel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DescribeOrganizationConfigRuleStatuses.go b/service/configservice/api_op_DescribeOrganizationConfigRuleStatuses.go index fa1096af5c6..08ed8238177 100644 --- a/service/configservice/api_op_DescribeOrganizationConfigRuleStatuses.go +++ b/service/configservice/api_op_DescribeOrganizationConfigRuleStatuses.go @@ -40,7 +40,7 @@ type DescribeOrganizationConfigRuleStatusesInput struct { // The maximum number of OrganizationConfigRuleStatuses returned on each page. If // you do no specify a number, AWS Config uses the default. The default is 100. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -49,7 +49,7 @@ type DescribeOrganizationConfigRuleStatusesInput struct { // The names of organization config rules for which you want status details. If you // do not specify any names, AWS Config returns details for all your organization // AWS Confg rules. - OrganizationConfigRuleNames []*string + OrganizationConfigRuleNames []string } type DescribeOrganizationConfigRuleStatusesOutput struct { @@ -59,7 +59,7 @@ type DescribeOrganizationConfigRuleStatusesOutput struct { NextToken *string // A list of OrganizationConfigRuleStatus objects. - OrganizationConfigRuleStatuses []*types.OrganizationConfigRuleStatus + OrganizationConfigRuleStatuses []types.OrganizationConfigRuleStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DescribeOrganizationConfigRules.go b/service/configservice/api_op_DescribeOrganizationConfigRules.go index 020ae986249..563b71d3dcd 100644 --- a/service/configservice/api_op_DescribeOrganizationConfigRules.go +++ b/service/configservice/api_op_DescribeOrganizationConfigRules.go @@ -37,7 +37,7 @@ type DescribeOrganizationConfigRulesInput struct { // The maximum number of organization config rules returned on each page. If you do // no specify a number, AWS Config uses the default. The default is 100. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -46,7 +46,7 @@ type DescribeOrganizationConfigRulesInput struct { // The names of organization config rules for which you want details. If you do not // specify any names, AWS Config returns details for all your organization config // rules. - OrganizationConfigRuleNames []*string + OrganizationConfigRuleNames []string } type DescribeOrganizationConfigRulesOutput struct { @@ -56,7 +56,7 @@ type DescribeOrganizationConfigRulesOutput struct { NextToken *string // Returns a list of OrganizationConfigRule objects. - OrganizationConfigRules []*types.OrganizationConfigRule + OrganizationConfigRules []types.OrganizationConfigRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DescribeOrganizationConformancePackStatuses.go b/service/configservice/api_op_DescribeOrganizationConformancePackStatuses.go index 693bff909c7..53d06b0ba6a 100644 --- a/service/configservice/api_op_DescribeOrganizationConformancePackStatuses.go +++ b/service/configservice/api_op_DescribeOrganizationConformancePackStatuses.go @@ -40,7 +40,7 @@ type DescribeOrganizationConformancePackStatusesInput struct { // The maximum number of OrganizationConformancePackStatuses returned on each page. // If you do no specify a number, AWS Config uses the default. The default is 100. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -49,7 +49,7 @@ type DescribeOrganizationConformancePackStatusesInput struct { // The names of organization conformance packs for which you want status details. // If you do not specify any names, AWS Config returns details for all your // organization conformance packs. - OrganizationConformancePackNames []*string + OrganizationConformancePackNames []string } type DescribeOrganizationConformancePackStatusesOutput struct { @@ -59,7 +59,7 @@ type DescribeOrganizationConformancePackStatusesOutput struct { NextToken *string // A list of OrganizationConformancePackStatus objects. - OrganizationConformancePackStatuses []*types.OrganizationConformancePackStatus + OrganizationConformancePackStatuses []types.OrganizationConformancePackStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DescribeOrganizationConformancePacks.go b/service/configservice/api_op_DescribeOrganizationConformancePacks.go index 13e6720687f..cb2be539518 100644 --- a/service/configservice/api_op_DescribeOrganizationConformancePacks.go +++ b/service/configservice/api_op_DescribeOrganizationConformancePacks.go @@ -37,14 +37,14 @@ type DescribeOrganizationConformancePacksInput struct { // The maximum number of organization config packs returned on each page. If you do // no specify a number, AWS Config uses the default. The default is 100. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. NextToken *string // The name that you assign to an organization conformance pack. - OrganizationConformancePackNames []*string + OrganizationConformancePackNames []string } type DescribeOrganizationConformancePacksOutput struct { @@ -54,7 +54,7 @@ type DescribeOrganizationConformancePacksOutput struct { NextToken *string // Returns a list of OrganizationConformancePacks objects. - OrganizationConformancePacks []*types.OrganizationConformancePack + OrganizationConformancePacks []types.OrganizationConformancePack // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DescribePendingAggregationRequests.go b/service/configservice/api_op_DescribePendingAggregationRequests.go index 5bef6742872..7fd6f3b6a25 100644 --- a/service/configservice/api_op_DescribePendingAggregationRequests.go +++ b/service/configservice/api_op_DescribePendingAggregationRequests.go @@ -31,7 +31,7 @@ type DescribePendingAggregationRequestsInput struct { // The maximum number of evaluation results returned on each page. The default is // maximum. If you specify 0, AWS Config uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -45,7 +45,7 @@ type DescribePendingAggregationRequestsOutput struct { NextToken *string // Returns a PendingAggregationRequests object. - PendingAggregationRequests []*types.PendingAggregationRequest + PendingAggregationRequests []types.PendingAggregationRequest // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DescribeRemediationConfigurations.go b/service/configservice/api_op_DescribeRemediationConfigurations.go index 83b2d229743..657e5e79be8 100644 --- a/service/configservice/api_op_DescribeRemediationConfigurations.go +++ b/service/configservice/api_op_DescribeRemediationConfigurations.go @@ -33,13 +33,13 @@ type DescribeRemediationConfigurationsInput struct { // details. // // This member is required. - ConfigRuleNames []*string + ConfigRuleNames []string } type DescribeRemediationConfigurationsOutput struct { // Returns a remediation configuration object. - RemediationConfigurations []*types.RemediationConfiguration + RemediationConfigurations []types.RemediationConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DescribeRemediationExceptions.go b/service/configservice/api_op_DescribeRemediationExceptions.go index fb62b9abbe0..8cecd56464c 100644 --- a/service/configservice/api_op_DescribeRemediationExceptions.go +++ b/service/configservice/api_op_DescribeRemediationExceptions.go @@ -44,7 +44,7 @@ type DescribeRemediationExceptionsInput struct { // The maximum number of RemediationExceptionResourceKey returned on each page. The // default is 25. If you specify 0, AWS Config uses the default. - Limit *int32 + Limit int32 // The nextToken string returned in a previous request that you use to request the // next page of results in a paginated response. @@ -53,7 +53,7 @@ type DescribeRemediationExceptionsInput struct { // An exception list of resource exception keys to be processed with the current // request. AWS Config adds exception for each resource key. For example, AWS // Config adds 3 exceptions for 3 resource keys. - ResourceKeys []*types.RemediationExceptionResourceKey + ResourceKeys []types.RemediationExceptionResourceKey } type DescribeRemediationExceptionsOutput struct { @@ -63,7 +63,7 @@ type DescribeRemediationExceptionsOutput struct { NextToken *string // Returns a list of remediation exception objects. - RemediationExceptions []*types.RemediationException + RemediationExceptions []types.RemediationException // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DescribeRemediationExecutionStatus.go b/service/configservice/api_op_DescribeRemediationExecutionStatus.go index d4da63411d2..22517bd6c15 100644 --- a/service/configservice/api_op_DescribeRemediationExecutionStatus.go +++ b/service/configservice/api_op_DescribeRemediationExecutionStatus.go @@ -39,7 +39,7 @@ type DescribeRemediationExecutionStatusInput struct { // The maximum number of RemediationExecutionStatuses returned on each page. The // default is maximum. If you specify 0, AWS Config uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -47,7 +47,7 @@ type DescribeRemediationExecutionStatusInput struct { // A list of resource keys to be processed with the current request. Each element // in the list consists of the resource type and resource ID. - ResourceKeys []*types.ResourceKey + ResourceKeys []types.ResourceKey } type DescribeRemediationExecutionStatusOutput struct { @@ -57,7 +57,7 @@ type DescribeRemediationExecutionStatusOutput struct { NextToken *string // Returns a list of remediation execution statuses objects. - RemediationExecutionStatuses []*types.RemediationExecutionStatus + RemediationExecutionStatuses []types.RemediationExecutionStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_DescribeRetentionConfigurations.go b/service/configservice/api_op_DescribeRetentionConfigurations.go index c174bb7dac9..1872663e70e 100644 --- a/service/configservice/api_op_DescribeRetentionConfigurations.go +++ b/service/configservice/api_op_DescribeRetentionConfigurations.go @@ -40,7 +40,7 @@ type DescribeRetentionConfigurationsInput struct { // do not specify a name, AWS Config returns details for all the retention // configurations for that account. Currently, AWS Config supports only one // retention configuration per region in your account. - RetentionConfigurationNames []*string + RetentionConfigurationNames []string } type DescribeRetentionConfigurationsOutput struct { @@ -50,7 +50,7 @@ type DescribeRetentionConfigurationsOutput struct { NextToken *string // Returns a retention configuration object. - RetentionConfigurations []*types.RetentionConfiguration + RetentionConfigurations []types.RetentionConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_GetAggregateComplianceDetailsByConfigRule.go b/service/configservice/api_op_GetAggregateComplianceDetailsByConfigRule.go index c4002537958..1c656529f9e 100644 --- a/service/configservice/api_op_GetAggregateComplianceDetailsByConfigRule.go +++ b/service/configservice/api_op_GetAggregateComplianceDetailsByConfigRule.go @@ -62,7 +62,7 @@ type GetAggregateComplianceDetailsByConfigRuleInput struct { // The maximum number of evaluation results returned on each page. The default is // 50. You cannot specify a number greater than 100. If you specify 0, AWS Config // uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -72,7 +72,7 @@ type GetAggregateComplianceDetailsByConfigRuleInput struct { type GetAggregateComplianceDetailsByConfigRuleOutput struct { // Returns an AggregateEvaluationResults object. - AggregateEvaluationResults []*types.AggregateEvaluationResult + AggregateEvaluationResults []types.AggregateEvaluationResult // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. diff --git a/service/configservice/api_op_GetAggregateConfigRuleComplianceSummary.go b/service/configservice/api_op_GetAggregateConfigRuleComplianceSummary.go index 926f4baa40d..c39fe9a1374 100644 --- a/service/configservice/api_op_GetAggregateConfigRuleComplianceSummary.go +++ b/service/configservice/api_op_GetAggregateConfigRuleComplianceSummary.go @@ -45,7 +45,7 @@ type GetAggregateConfigRuleComplianceSummaryInput struct { // The maximum number of evaluation results returned on each page. The default is // 1000. You cannot specify a number greater than 1000. If you specify 0, AWS // Config uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -55,7 +55,7 @@ type GetAggregateConfigRuleComplianceSummaryInput struct { type GetAggregateConfigRuleComplianceSummaryOutput struct { // Returns a list of AggregateComplianceCounts object. - AggregateComplianceCounts []*types.AggregateComplianceCount + AggregateComplianceCounts []types.AggregateComplianceCount // Groups the result based on ACCOUNT_ID or AWS_REGION. GroupByKey *string diff --git a/service/configservice/api_op_GetAggregateDiscoveredResourceCounts.go b/service/configservice/api_op_GetAggregateDiscoveredResourceCounts.go index 2bfed1ef3f0..4f3d91e2ce4 100644 --- a/service/configservice/api_op_GetAggregateDiscoveredResourceCounts.go +++ b/service/configservice/api_op_GetAggregateDiscoveredResourceCounts.go @@ -49,7 +49,7 @@ type GetAggregateDiscoveredResourceCountsInput struct { // The maximum number of GroupedResourceCount objects returned on each page. The // default is 1000. You cannot specify a number greater than 1000. If you specify // 0, AWS Config uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -62,14 +62,14 @@ type GetAggregateDiscoveredResourceCountsOutput struct { // that you provide. // // This member is required. - TotalDiscoveredResources *int64 + TotalDiscoveredResources int64 // The key passed into the request object. If GroupByKey is not provided, the // result will be empty. GroupByKey *string // Returns a list of GroupedResourceCount objects. - GroupedResourceCounts []*types.GroupedResourceCount + GroupedResourceCounts []types.GroupedResourceCount // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. diff --git a/service/configservice/api_op_GetComplianceDetailsByConfigRule.go b/service/configservice/api_op_GetComplianceDetailsByConfigRule.go index e61b24c96bb..0e9109a8b40 100644 --- a/service/configservice/api_op_GetComplianceDetailsByConfigRule.go +++ b/service/configservice/api_op_GetComplianceDetailsByConfigRule.go @@ -44,7 +44,7 @@ type GetComplianceDetailsByConfigRuleInput struct { // The maximum number of evaluation results returned on each page. The default is // 10. You cannot specify a number greater than 100. If you specify 0, AWS Config // uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -55,7 +55,7 @@ type GetComplianceDetailsByConfigRuleInput struct { type GetComplianceDetailsByConfigRuleOutput struct { // Indicates whether the AWS resource complies with the specified AWS Config rule. - EvaluationResults []*types.EvaluationResult + EvaluationResults []types.EvaluationResult // The string that you use in a subsequent request to get the next page of results // in a paginated response. diff --git a/service/configservice/api_op_GetComplianceDetailsByResource.go b/service/configservice/api_op_GetComplianceDetailsByResource.go index 6aa2e4ea47e..601ddb9af51 100644 --- a/service/configservice/api_op_GetComplianceDetailsByResource.go +++ b/service/configservice/api_op_GetComplianceDetailsByResource.go @@ -55,7 +55,7 @@ type GetComplianceDetailsByResourceInput struct { type GetComplianceDetailsByResourceOutput struct { // Indicates whether the specified AWS resource complies each AWS Config rule. - EvaluationResults []*types.EvaluationResult + EvaluationResults []types.EvaluationResult // The string that you use in a subsequent request to get the next page of results // in a paginated response. diff --git a/service/configservice/api_op_GetComplianceSummaryByResourceType.go b/service/configservice/api_op_GetComplianceSummaryByResourceType.go index 8e8c6632b1f..31d8381e632 100644 --- a/service/configservice/api_op_GetComplianceSummaryByResourceType.go +++ b/service/configservice/api_op_GetComplianceSummaryByResourceType.go @@ -37,7 +37,7 @@ type GetComplianceSummaryByResourceTypeInput struct { // request, you can specify an AWS resource type such as AWS::EC2::Instance. You // can specify that the resource type is an AWS account by specifying // AWS::::Account. - ResourceTypes []*string + ResourceTypes []string } // @@ -46,7 +46,7 @@ type GetComplianceSummaryByResourceTypeOutput struct { // The number of resources that are compliant and the number that are noncompliant. // If one or more resource types were provided with the request, the numbers are // returned for each resource type. The maximum number returned is 100. - ComplianceSummariesByResourceType []*types.ComplianceSummaryByResourceType + ComplianceSummariesByResourceType []types.ComplianceSummaryByResourceType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_GetConformancePackComplianceDetails.go b/service/configservice/api_op_GetConformancePackComplianceDetails.go index 8a7d5327f1e..a93fb0d6af7 100644 --- a/service/configservice/api_op_GetConformancePackComplianceDetails.go +++ b/service/configservice/api_op_GetConformancePackComplianceDetails.go @@ -40,7 +40,7 @@ type GetConformancePackComplianceDetailsInput struct { // The maximum number of evaluation results returned on each page. If you do no // specify a number, AWS Config uses the default. The default is 100. - Limit *int32 + Limit int32 // The nextToken string returned in a previous request that you use to request the // next page of results in a paginated response. @@ -55,7 +55,7 @@ type GetConformancePackComplianceDetailsOutput struct { ConformancePackName *string // Returns a list of ConformancePackEvaluationResult objects. - ConformancePackRuleEvaluationResults []*types.ConformancePackEvaluationResult + ConformancePackRuleEvaluationResults []types.ConformancePackEvaluationResult // The nextToken string returned in a previous request that you use to request the // next page of results in a paginated response. diff --git a/service/configservice/api_op_GetConformancePackComplianceSummary.go b/service/configservice/api_op_GetConformancePackComplianceSummary.go index 12fef48dfe1..79e4de2b876 100644 --- a/service/configservice/api_op_GetConformancePackComplianceSummary.go +++ b/service/configservice/api_op_GetConformancePackComplianceSummary.go @@ -33,10 +33,10 @@ type GetConformancePackComplianceSummaryInput struct { // Names of conformance packs. // // This member is required. - ConformancePackNames []*string + ConformancePackNames []string // The maximum number of conformance packs returned on each page. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -46,7 +46,7 @@ type GetConformancePackComplianceSummaryInput struct { type GetConformancePackComplianceSummaryOutput struct { // A list of ConformancePackComplianceSummary objects. - ConformancePackComplianceSummaryList []*types.ConformancePackComplianceSummary + ConformancePackComplianceSummaryList []types.ConformancePackComplianceSummary // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. diff --git a/service/configservice/api_op_GetDiscoveredResourceCounts.go b/service/configservice/api_op_GetDiscoveredResourceCounts.go index 8586c7d6548..c628f4bb058 100644 --- a/service/configservice/api_op_GetDiscoveredResourceCounts.go +++ b/service/configservice/api_op_GetDiscoveredResourceCounts.go @@ -68,7 +68,7 @@ type GetDiscoveredResourceCountsInput struct { // The maximum number of ResourceCount objects returned on each page. The default // is 100. You cannot specify a number greater than 100. If you specify 0, AWS // Config uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -82,7 +82,7 @@ type GetDiscoveredResourceCountsInput struct { // ResourceCount objects. If the configuration recorder is not recording a specific // resource type (for example, S3 buckets), that resource type is not returned in // the list of ResourceCount objects. - ResourceTypes []*string + ResourceTypes []string } type GetDiscoveredResourceCountsOutput struct { @@ -93,7 +93,7 @@ type GetDiscoveredResourceCountsOutput struct { // The list of ResourceCount objects. Each object is listed in descending order by // the number of resources. - ResourceCounts []*types.ResourceCount + ResourceCounts []types.ResourceCount // The total number of resources that AWS Config is recording in the region for // your account. If you specify resource types in the request, AWS Config returns @@ -109,7 +109,7 @@ type GetDiscoveredResourceCountsOutput struct { // // * AWS Config // returns 25 for totalDiscoveredResources. - TotalDiscoveredResources *int64 + TotalDiscoveredResources int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_GetOrganizationConfigRuleDetailedStatus.go b/service/configservice/api_op_GetOrganizationConfigRuleDetailedStatus.go index b58d4804c3c..c19425f12ed 100644 --- a/service/configservice/api_op_GetOrganizationConfigRuleDetailedStatus.go +++ b/service/configservice/api_op_GetOrganizationConfigRuleDetailedStatus.go @@ -45,7 +45,7 @@ type GetOrganizationConfigRuleDetailedStatusInput struct { // The maximum number of OrganizationConfigRuleDetailedStatus returned on each // page. If you do not specify a number, AWS Config uses the default. The default // is 100. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -59,7 +59,7 @@ type GetOrganizationConfigRuleDetailedStatusOutput struct { NextToken *string // A list of MemberAccountStatus objects. - OrganizationConfigRuleDetailedStatus []*types.MemberAccountStatus + OrganizationConfigRuleDetailedStatus []types.MemberAccountStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_GetOrganizationConformancePackDetailedStatus.go b/service/configservice/api_op_GetOrganizationConformancePackDetailedStatus.go index 119644881a0..64cfc91457f 100644 --- a/service/configservice/api_op_GetOrganizationConformancePackDetailedStatus.go +++ b/service/configservice/api_op_GetOrganizationConformancePackDetailedStatus.go @@ -45,7 +45,7 @@ type GetOrganizationConformancePackDetailedStatusInput struct { // The maximum number of OrganizationConformancePackDetailedStatuses returned on // each page. If you do not specify a number, AWS Config uses the default. The // default is 100. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -59,7 +59,7 @@ type GetOrganizationConformancePackDetailedStatusOutput struct { NextToken *string // A list of OrganizationConformancePackDetailedStatus objects. - OrganizationConformancePackDetailedStatuses []*types.OrganizationConformancePackDetailedStatus + OrganizationConformancePackDetailedStatuses []types.OrganizationConformancePackDetailedStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_GetResourceConfigHistory.go b/service/configservice/api_op_GetResourceConfigHistory.go index 58e5712a7e3..90cd3184d8f 100644 --- a/service/configservice/api_op_GetResourceConfigHistory.go +++ b/service/configservice/api_op_GetResourceConfigHistory.go @@ -68,7 +68,7 @@ type GetResourceConfigHistoryInput struct { // The maximum number of configuration items returned on each page. The default is // 10. You cannot specify a number greater than 100. If you specify 0, AWS Config // uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -79,7 +79,7 @@ type GetResourceConfigHistoryInput struct { type GetResourceConfigHistoryOutput struct { // A list that contains the configuration history of one or more resources. - ConfigurationItems []*types.ConfigurationItem + ConfigurationItems []types.ConfigurationItem // The string that you use in a subsequent request to get the next page of results // in a paginated response. diff --git a/service/configservice/api_op_ListAggregateDiscoveredResources.go b/service/configservice/api_op_ListAggregateDiscoveredResources.go index 9a14078e1c4..33b88aaaa57 100644 --- a/service/configservice/api_op_ListAggregateDiscoveredResources.go +++ b/service/configservice/api_op_ListAggregateDiscoveredResources.go @@ -53,7 +53,7 @@ type ListAggregateDiscoveredResourcesInput struct { // The maximum number of resource identifiers returned on each page. The default is // 100. You cannot specify a number greater than 100. If you specify 0, AWS Config // uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -67,7 +67,7 @@ type ListAggregateDiscoveredResourcesOutput struct { NextToken *string // Returns a list of ResourceIdentifiers objects. - ResourceIdentifiers []*types.AggregateResourceIdentifier + ResourceIdentifiers []types.AggregateResourceIdentifier // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_ListDiscoveredResources.go b/service/configservice/api_op_ListDiscoveredResources.go index 33bd01d6a74..86b5b6c8492 100644 --- a/service/configservice/api_op_ListDiscoveredResources.go +++ b/service/configservice/api_op_ListDiscoveredResources.go @@ -47,12 +47,12 @@ type ListDiscoveredResourcesInput struct { // Specifies whether AWS Config includes deleted resources in the results. By // default, deleted resources are not included. - IncludeDeletedResources *bool + IncludeDeletedResources bool // The maximum number of resource identifiers returned on each page. The default is // 100. You cannot specify a number greater than 100. If you specify 0, AWS Config // uses the default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -61,7 +61,7 @@ type ListDiscoveredResourcesInput struct { // The IDs of only those resources that you want AWS Config to list in the // response. If you do not specify this parameter, AWS Config lists all resources // of the specified type that it has discovered. - ResourceIds []*string + ResourceIds []string // The custom name of only those resources that you want AWS Config to list in the // response. If you do not specify this parameter, AWS Config lists all resources @@ -78,7 +78,7 @@ type ListDiscoveredResourcesOutput struct { // The details that identify a resource that is discovered by AWS Config, including // the resource type, ID, and (if available) the custom resource name. - ResourceIdentifiers []*types.ResourceIdentifier + ResourceIdentifiers []types.ResourceIdentifier // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_ListTagsForResource.go b/service/configservice/api_op_ListTagsForResource.go index 1db425a5337..4cca194b893 100644 --- a/service/configservice/api_op_ListTagsForResource.go +++ b/service/configservice/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { // The maximum number of tags returned on each page. The limit maximum is 50. You // cannot specify a number greater than 50. If you specify 0, AWS Config uses the // default. - Limit *int32 + Limit int32 // The nextToken string returned on a previous page that you use to get the next // page of results in a paginated response. @@ -53,7 +53,7 @@ type ListTagsForResourceOutput struct { NextToken *string // The tags for the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_PutAggregationAuthorization.go b/service/configservice/api_op_PutAggregationAuthorization.go index a9b00e8a3f6..b568eca5af4 100644 --- a/service/configservice/api_op_PutAggregationAuthorization.go +++ b/service/configservice/api_op_PutAggregationAuthorization.go @@ -41,7 +41,7 @@ type PutAggregationAuthorizationInput struct { AuthorizedAwsRegion *string // An array of tag object. - Tags []*types.Tag + Tags []types.Tag } type PutAggregationAuthorizationOutput struct { diff --git a/service/configservice/api_op_PutConfigRule.go b/service/configservice/api_op_PutConfigRule.go index ace179365fb..89cf3fab5c1 100644 --- a/service/configservice/api_op_PutConfigRule.go +++ b/service/configservice/api_op_PutConfigRule.go @@ -61,7 +61,7 @@ type PutConfigRuleInput struct { ConfigRule *types.ConfigRule // An array of tag object. - Tags []*types.Tag + Tags []types.Tag } type PutConfigRuleOutput struct { diff --git a/service/configservice/api_op_PutConfigurationAggregator.go b/service/configservice/api_op_PutConfigurationAggregator.go index 0529aa0dbb6..03ccf102b70 100644 --- a/service/configservice/api_op_PutConfigurationAggregator.go +++ b/service/configservice/api_op_PutConfigurationAggregator.go @@ -41,13 +41,13 @@ type PutConfigurationAggregatorInput struct { ConfigurationAggregatorName *string // A list of AccountAggregationSource object. - AccountAggregationSources []*types.AccountAggregationSource + AccountAggregationSources []types.AccountAggregationSource // An OrganizationAggregationSource object. OrganizationAggregationSource *types.OrganizationAggregationSource // An array of tag object. - Tags []*types.Tag + Tags []types.Tag } type PutConfigurationAggregatorOutput struct { diff --git a/service/configservice/api_op_PutConformancePack.go b/service/configservice/api_op_PutConformancePack.go index a7a9e08b0ed..39fe4752318 100644 --- a/service/configservice/api_op_PutConformancePack.go +++ b/service/configservice/api_op_PutConformancePack.go @@ -42,7 +42,7 @@ type PutConformancePackInput struct { ConformancePackName *string // A list of ConformancePackInputParameter objects. - ConformancePackInputParameters []*types.ConformancePackInputParameter + ConformancePackInputParameters []types.ConformancePackInputParameter // AWS Config stores intermediate files while processing conformance pack template. DeliveryS3Bucket *string diff --git a/service/configservice/api_op_PutEvaluations.go b/service/configservice/api_op_PutEvaluations.go index e16c8fe645b..0890a59d774 100644 --- a/service/configservice/api_op_PutEvaluations.go +++ b/service/configservice/api_op_PutEvaluations.go @@ -41,21 +41,21 @@ type PutEvaluationsInput struct { // The assessments that the AWS Lambda function performs. Each evaluation // identifies an AWS resource and indicates whether it complies with the AWS Config // rule that invokes the AWS Lambda function. - Evaluations []*types.Evaluation + Evaluations []types.Evaluation // Use this parameter to specify a test run for PutEvaluations. You can verify // whether your AWS Lambda function will deliver evaluation results to AWS Config. // No updates occur to your existing evaluations, and evaluation results are not // sent to AWS Config. When TestMode is true, PutEvaluations doesn't require a // valid value for the ResultToken parameter, but the value cannot be null. - TestMode *bool + TestMode bool } // type PutEvaluationsOutput struct { // Requests that failed because of a client or server error. - FailedEvaluations []*types.Evaluation + FailedEvaluations []types.Evaluation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_PutOrganizationConfigRule.go b/service/configservice/api_op_PutOrganizationConfigRule.go index 57d82ef6442..5b116af41b5 100644 --- a/service/configservice/api_op_PutOrganizationConfigRule.go +++ b/service/configservice/api_op_PutOrganizationConfigRule.go @@ -60,7 +60,7 @@ type PutOrganizationConfigRuleInput struct { // A comma-separated list of accounts that you want to exclude from an organization // config rule. - ExcludedAccounts []*string + ExcludedAccounts []string // An OrganizationCustomRuleMetadata object. OrganizationCustomRuleMetadata *types.OrganizationCustomRuleMetadata diff --git a/service/configservice/api_op_PutOrganizationConformancePack.go b/service/configservice/api_op_PutOrganizationConformancePack.go index a579862b29b..456fc95e4a6 100644 --- a/service/configservice/api_op_PutOrganizationConformancePack.go +++ b/service/configservice/api_op_PutOrganizationConformancePack.go @@ -55,7 +55,7 @@ type PutOrganizationConformancePackInput struct { OrganizationConformancePackName *string // A list of ConformancePackInputParameter objects. - ConformancePackInputParameters []*types.ConformancePackInputParameter + ConformancePackInputParameters []types.ConformancePackInputParameter // Location of an Amazon S3 bucket where AWS Config can deliver evaluation results. // AWS Config stores intermediate files while processing conformance pack template. @@ -70,7 +70,7 @@ type PutOrganizationConformancePackInput struct { // A list of AWS accounts to be excluded from an organization conformance pack // while deploying a conformance pack. - ExcludedAccounts []*string + ExcludedAccounts []string // A string containing full conformance pack template body. Structure containing // the template body with a minimum length of 1 byte and a maximum length of 51,200 diff --git a/service/configservice/api_op_PutRemediationConfigurations.go b/service/configservice/api_op_PutRemediationConfigurations.go index b1d8502aeac..282aca3fe72 100644 --- a/service/configservice/api_op_PutRemediationConfigurations.go +++ b/service/configservice/api_op_PutRemediationConfigurations.go @@ -37,13 +37,13 @@ type PutRemediationConfigurationsInput struct { // A list of remediation configuration objects. // // This member is required. - RemediationConfigurations []*types.RemediationConfiguration + RemediationConfigurations []types.RemediationConfiguration } type PutRemediationConfigurationsOutput struct { // Returns a list of failed remediation batch objects. - FailedBatches []*types.FailedRemediationBatch + FailedBatches []types.FailedRemediationBatch // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_PutRemediationExceptions.go b/service/configservice/api_op_PutRemediationExceptions.go index 6a995dda139..9565612c02d 100644 --- a/service/configservice/api_op_PutRemediationExceptions.go +++ b/service/configservice/api_op_PutRemediationExceptions.go @@ -46,7 +46,7 @@ type PutRemediationExceptionsInput struct { // Config adds 3 exceptions for 3 resource keys. // // This member is required. - ResourceKeys []*types.RemediationExceptionResourceKey + ResourceKeys []types.RemediationExceptionResourceKey // The exception is automatically deleted after the expiration date. ExpirationTime *time.Time @@ -59,7 +59,7 @@ type PutRemediationExceptionsOutput struct { // Returns a list of failed remediation exceptions batch objects. Each object in // the batch consists of a list of failed items and failure messages. - FailedBatches []*types.FailedRemediationExceptionBatch + FailedBatches []types.FailedRemediationExceptionBatch // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_PutResourceConfig.go b/service/configservice/api_op_PutResourceConfig.go index 9fd0ef78f89..12aae9541ec 100644 --- a/service/configservice/api_op_PutResourceConfig.go +++ b/service/configservice/api_op_PutResourceConfig.go @@ -66,7 +66,7 @@ type PutResourceConfigInput struct { ResourceName *string // Tags associated with the resource. - Tags map[string]*string + Tags map[string]string } type PutResourceConfigOutput struct { diff --git a/service/configservice/api_op_PutRetentionConfiguration.go b/service/configservice/api_op_PutRetentionConfiguration.go index f27ff794974..f42f9833556 100644 --- a/service/configservice/api_op_PutRetentionConfiguration.go +++ b/service/configservice/api_op_PutRetentionConfiguration.go @@ -38,7 +38,7 @@ type PutRetentionConfigurationInput struct { // applicable to the configuration item history. // // This member is required. - RetentionPeriodInDays *int32 + RetentionPeriodInDays int32 } type PutRetentionConfigurationOutput struct { diff --git a/service/configservice/api_op_SelectAggregateResourceConfig.go b/service/configservice/api_op_SelectAggregateResourceConfig.go index 9b47230b9b0..1cebfef0d3e 100644 --- a/service/configservice/api_op_SelectAggregateResourceConfig.go +++ b/service/configservice/api_op_SelectAggregateResourceConfig.go @@ -46,11 +46,11 @@ type SelectAggregateResourceConfigInput struct { Expression *string // The maximum number of query results returned on each page. - Limit *int32 + Limit int32 // The maximum number of query results returned on each page. AWS Config also // allows the Limit request parameter. - MaxResults *int32 + MaxResults int32 // The nextToken string returned in a previous request that you use to request the // next page of results in a paginated response. @@ -67,7 +67,7 @@ type SelectAggregateResourceConfigOutput struct { QueryInfo *types.QueryInfo // Returns the results for the SQL query. - Results []*string + Results []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_SelectResourceConfig.go b/service/configservice/api_op_SelectResourceConfig.go index c9841869785..840657d5540 100644 --- a/service/configservice/api_op_SelectResourceConfig.go +++ b/service/configservice/api_op_SelectResourceConfig.go @@ -40,7 +40,7 @@ type SelectResourceConfigInput struct { Expression *string // The maximum number of query results returned on each page. - Limit *int32 + Limit int32 // The nextToken string returned in a previous request that you use to request the // next page of results in a paginated response. @@ -57,7 +57,7 @@ type SelectResourceConfigOutput struct { QueryInfo *types.QueryInfo // Returns the results for the SQL query. - Results []*string + Results []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/configservice/api_op_StartConfigRulesEvaluation.go b/service/configservice/api_op_StartConfigRulesEvaluation.go index a91d81aa4de..8293aee80ba 100644 --- a/service/configservice/api_op_StartConfigRulesEvaluation.go +++ b/service/configservice/api_op_StartConfigRulesEvaluation.go @@ -58,7 +58,7 @@ func (c *Client) StartConfigRulesEvaluation(ctx context.Context, params *StartCo type StartConfigRulesEvaluationInput struct { // The list of names of AWS Config rules that you want to run evaluations for. - ConfigRuleNames []*string + ConfigRuleNames []string } // The output when you start the evaluation for the specified AWS Config rule. diff --git a/service/configservice/api_op_StartRemediationExecution.go b/service/configservice/api_op_StartRemediationExecution.go index dc9878332f9..6055bd866fd 100644 --- a/service/configservice/api_op_StartRemediationExecution.go +++ b/service/configservice/api_op_StartRemediationExecution.go @@ -43,14 +43,14 @@ type StartRemediationExecutionInput struct { // in the list consists of the resource type and resource ID. // // This member is required. - ResourceKeys []*types.ResourceKey + ResourceKeys []types.ResourceKey } type StartRemediationExecutionOutput struct { // For resources that have failed to start execution, the API returns a resource // key object. - FailedItems []*types.ResourceKey + FailedItems []types.ResourceKey // Returns a failure message. For example, the resource is already compliant. FailureMessage *string diff --git a/service/configservice/api_op_TagResource.go b/service/configservice/api_op_TagResource.go index c0e059c1ec4..75c300f7a4c 100644 --- a/service/configservice/api_op_TagResource.go +++ b/service/configservice/api_op_TagResource.go @@ -42,7 +42,7 @@ type TagResourceInput struct { // An array of tag object. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/configservice/api_op_UntagResource.go b/service/configservice/api_op_UntagResource.go index 9534d9ecdd1..9cc24475871 100644 --- a/service/configservice/api_op_UntagResource.go +++ b/service/configservice/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // The keys of the tags to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/configservice/deserializers.go b/service/configservice/deserializers.go index 57b3130c953..836793705bf 100644 --- a/service/configservice/deserializers.go +++ b/service/configservice/deserializers.go @@ -11080,7 +11080,7 @@ func awsAwsjson11_deserializeDocumentAccountAggregationSource(v **types.AccountA if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllAwsRegions = &jtv + sv.AllAwsRegions = jtv } case "AwsRegions": @@ -11097,7 +11097,7 @@ func awsAwsjson11_deserializeDocumentAccountAggregationSource(v **types.AccountA return nil } -func awsAwsjson11_deserializeDocumentAccountAggregationSourceAccountList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccountAggregationSourceAccountList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11110,21 +11110,21 @@ func awsAwsjson11_deserializeDocumentAccountAggregationSourceAccountList(v *[]*s return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11133,7 +11133,7 @@ func awsAwsjson11_deserializeDocumentAccountAggregationSourceAccountList(v *[]*s return nil } -func awsAwsjson11_deserializeDocumentAccountAggregationSourceList(v *[]*types.AccountAggregationSource, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccountAggregationSourceList(v *[]types.AccountAggregationSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11146,18 +11146,20 @@ func awsAwsjson11_deserializeDocumentAccountAggregationSourceList(v *[]*types.Ac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AccountAggregationSource + var cv []types.AccountAggregationSource if *v == nil { - cv = []*types.AccountAggregationSource{} + cv = []types.AccountAggregationSource{} } else { cv = *v } for _, value := range shape { - var col *types.AccountAggregationSource - if err := awsAwsjson11_deserializeDocumentAccountAggregationSource(&col, value); err != nil { + var col types.AccountAggregationSource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAccountAggregationSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11193,7 +11195,7 @@ func awsAwsjson11_deserializeDocumentAggregateComplianceByConfigRule(v **types.A if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "AwsRegion": @@ -11202,7 +11204,7 @@ func awsAwsjson11_deserializeDocumentAggregateComplianceByConfigRule(v **types.A if !ok { return fmt.Errorf("expected AwsRegion to be of type string, got %T instead", value) } - sv.AwsRegion = &jtv + sv.AwsRegion = ptr.String(jtv) } case "Compliance": @@ -11216,7 +11218,7 @@ func awsAwsjson11_deserializeDocumentAggregateComplianceByConfigRule(v **types.A if !ok { return fmt.Errorf("expected ConfigRuleName to be of type string, got %T instead", value) } - sv.ConfigRuleName = &jtv + sv.ConfigRuleName = ptr.String(jtv) } default: @@ -11228,7 +11230,7 @@ func awsAwsjson11_deserializeDocumentAggregateComplianceByConfigRule(v **types.A return nil } -func awsAwsjson11_deserializeDocumentAggregateComplianceByConfigRuleList(v *[]*types.AggregateComplianceByConfigRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentAggregateComplianceByConfigRuleList(v *[]types.AggregateComplianceByConfigRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11241,18 +11243,20 @@ func awsAwsjson11_deserializeDocumentAggregateComplianceByConfigRuleList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AggregateComplianceByConfigRule + var cv []types.AggregateComplianceByConfigRule if *v == nil { - cv = []*types.AggregateComplianceByConfigRule{} + cv = []types.AggregateComplianceByConfigRule{} } else { cv = *v } for _, value := range shape { - var col *types.AggregateComplianceByConfigRule - if err := awsAwsjson11_deserializeDocumentAggregateComplianceByConfigRule(&col, value); err != nil { + var col types.AggregateComplianceByConfigRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAggregateComplianceByConfigRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11293,7 +11297,7 @@ func awsAwsjson11_deserializeDocumentAggregateComplianceCount(v **types.Aggregat if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } default: @@ -11305,7 +11309,7 @@ func awsAwsjson11_deserializeDocumentAggregateComplianceCount(v **types.Aggregat return nil } -func awsAwsjson11_deserializeDocumentAggregateComplianceCountList(v *[]*types.AggregateComplianceCount, value interface{}) error { +func awsAwsjson11_deserializeDocumentAggregateComplianceCountList(v *[]types.AggregateComplianceCount, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11318,18 +11322,20 @@ func awsAwsjson11_deserializeDocumentAggregateComplianceCountList(v *[]*types.Ag return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AggregateComplianceCount + var cv []types.AggregateComplianceCount if *v == nil { - cv = []*types.AggregateComplianceCount{} + cv = []types.AggregateComplianceCount{} } else { cv = *v } for _, value := range shape { - var col *types.AggregateComplianceCount - if err := awsAwsjson11_deserializeDocumentAggregateComplianceCount(&col, value); err != nil { + var col types.AggregateComplianceCount + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAggregateComplianceCount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11365,7 +11371,7 @@ func awsAwsjson11_deserializeDocumentAggregatedSourceStatus(v **types.Aggregated if !ok { return fmt.Errorf("expected AwsRegion to be of type string, got %T instead", value) } - sv.AwsRegion = &jtv + sv.AwsRegion = ptr.String(jtv) } case "LastErrorCode": @@ -11374,7 +11380,7 @@ func awsAwsjson11_deserializeDocumentAggregatedSourceStatus(v **types.Aggregated if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastErrorCode = &jtv + sv.LastErrorCode = ptr.String(jtv) } case "LastErrorMessage": @@ -11383,7 +11389,7 @@ func awsAwsjson11_deserializeDocumentAggregatedSourceStatus(v **types.Aggregated if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastErrorMessage = &jtv + sv.LastErrorMessage = ptr.String(jtv) } case "LastUpdateStatus": @@ -11414,7 +11420,7 @@ func awsAwsjson11_deserializeDocumentAggregatedSourceStatus(v **types.Aggregated if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceId = &jtv + sv.SourceId = ptr.String(jtv) } case "SourceType": @@ -11435,7 +11441,7 @@ func awsAwsjson11_deserializeDocumentAggregatedSourceStatus(v **types.Aggregated return nil } -func awsAwsjson11_deserializeDocumentAggregatedSourceStatusList(v *[]*types.AggregatedSourceStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentAggregatedSourceStatusList(v *[]types.AggregatedSourceStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11448,18 +11454,20 @@ func awsAwsjson11_deserializeDocumentAggregatedSourceStatusList(v *[]*types.Aggr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AggregatedSourceStatus + var cv []types.AggregatedSourceStatus if *v == nil { - cv = []*types.AggregatedSourceStatus{} + cv = []types.AggregatedSourceStatus{} } else { cv = *v } for _, value := range shape { - var col *types.AggregatedSourceStatus - if err := awsAwsjson11_deserializeDocumentAggregatedSourceStatus(&col, value); err != nil { + var col types.AggregatedSourceStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAggregatedSourceStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11495,7 +11503,7 @@ func awsAwsjson11_deserializeDocumentAggregateEvaluationResult(v **types.Aggrega if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "Annotation": @@ -11504,7 +11512,7 @@ func awsAwsjson11_deserializeDocumentAggregateEvaluationResult(v **types.Aggrega if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.Annotation = &jtv + sv.Annotation = ptr.String(jtv) } case "AwsRegion": @@ -11513,7 +11521,7 @@ func awsAwsjson11_deserializeDocumentAggregateEvaluationResult(v **types.Aggrega if !ok { return fmt.Errorf("expected AwsRegion to be of type string, got %T instead", value) } - sv.AwsRegion = &jtv + sv.AwsRegion = ptr.String(jtv) } case "ComplianceType": @@ -11565,7 +11573,7 @@ func awsAwsjson11_deserializeDocumentAggregateEvaluationResult(v **types.Aggrega return nil } -func awsAwsjson11_deserializeDocumentAggregateEvaluationResultList(v *[]*types.AggregateEvaluationResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentAggregateEvaluationResultList(v *[]types.AggregateEvaluationResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11578,18 +11586,20 @@ func awsAwsjson11_deserializeDocumentAggregateEvaluationResultList(v *[]*types.A return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AggregateEvaluationResult + var cv []types.AggregateEvaluationResult if *v == nil { - cv = []*types.AggregateEvaluationResult{} + cv = []types.AggregateEvaluationResult{} } else { cv = *v } for _, value := range shape { - var col *types.AggregateEvaluationResult - if err := awsAwsjson11_deserializeDocumentAggregateEvaluationResult(&col, value); err != nil { + var col types.AggregateEvaluationResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAggregateEvaluationResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11625,7 +11635,7 @@ func awsAwsjson11_deserializeDocumentAggregateResourceIdentifier(v **types.Aggre if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceName": @@ -11634,7 +11644,7 @@ func awsAwsjson11_deserializeDocumentAggregateResourceIdentifier(v **types.Aggre if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } case "ResourceType": @@ -11652,7 +11662,7 @@ func awsAwsjson11_deserializeDocumentAggregateResourceIdentifier(v **types.Aggre if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.SourceAccountId = &jtv + sv.SourceAccountId = ptr.String(jtv) } case "SourceRegion": @@ -11661,7 +11671,7 @@ func awsAwsjson11_deserializeDocumentAggregateResourceIdentifier(v **types.Aggre if !ok { return fmt.Errorf("expected AwsRegion to be of type string, got %T instead", value) } - sv.SourceRegion = &jtv + sv.SourceRegion = ptr.String(jtv) } default: @@ -11701,7 +11711,7 @@ func awsAwsjson11_deserializeDocumentAggregationAuthorization(v **types.Aggregat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AggregationAuthorizationArn = &jtv + sv.AggregationAuthorizationArn = ptr.String(jtv) } case "AuthorizedAccountId": @@ -11710,7 +11720,7 @@ func awsAwsjson11_deserializeDocumentAggregationAuthorization(v **types.Aggregat if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AuthorizedAccountId = &jtv + sv.AuthorizedAccountId = ptr.String(jtv) } case "AuthorizedAwsRegion": @@ -11719,7 +11729,7 @@ func awsAwsjson11_deserializeDocumentAggregationAuthorization(v **types.Aggregat if !ok { return fmt.Errorf("expected AwsRegion to be of type string, got %T instead", value) } - sv.AuthorizedAwsRegion = &jtv + sv.AuthorizedAwsRegion = ptr.String(jtv) } case "CreationTime": @@ -11744,7 +11754,7 @@ func awsAwsjson11_deserializeDocumentAggregationAuthorization(v **types.Aggregat return nil } -func awsAwsjson11_deserializeDocumentAggregationAuthorizationList(v *[]*types.AggregationAuthorization, value interface{}) error { +func awsAwsjson11_deserializeDocumentAggregationAuthorizationList(v *[]types.AggregationAuthorization, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11757,18 +11767,20 @@ func awsAwsjson11_deserializeDocumentAggregationAuthorizationList(v *[]*types.Ag return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AggregationAuthorization + var cv []types.AggregationAuthorization if *v == nil { - cv = []*types.AggregationAuthorization{} + cv = []types.AggregationAuthorization{} } else { cv = *v } for _, value := range shape { - var col *types.AggregationAuthorization - if err := awsAwsjson11_deserializeDocumentAggregationAuthorization(&col, value); err != nil { + var col types.AggregationAuthorization + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAggregationAuthorization(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11776,7 +11788,7 @@ func awsAwsjson11_deserializeDocumentAggregationAuthorizationList(v *[]*types.Ag return nil } -func awsAwsjson11_deserializeDocumentAggregatorRegionList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAggregatorRegionList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11789,21 +11801,21 @@ func awsAwsjson11_deserializeDocumentAggregatorRegionList(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -11840,7 +11852,7 @@ func awsAwsjson11_deserializeDocumentBaseConfigurationItem(v **types.BaseConfigu if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "arn": @@ -11849,7 +11861,7 @@ func awsAwsjson11_deserializeDocumentBaseConfigurationItem(v **types.BaseConfigu if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "availabilityZone": @@ -11858,7 +11870,7 @@ func awsAwsjson11_deserializeDocumentBaseConfigurationItem(v **types.BaseConfigu if !ok { return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "awsRegion": @@ -11867,7 +11879,7 @@ func awsAwsjson11_deserializeDocumentBaseConfigurationItem(v **types.BaseConfigu if !ok { return fmt.Errorf("expected AwsRegion to be of type string, got %T instead", value) } - sv.AwsRegion = &jtv + sv.AwsRegion = ptr.String(jtv) } case "configuration": @@ -11876,7 +11888,7 @@ func awsAwsjson11_deserializeDocumentBaseConfigurationItem(v **types.BaseConfigu if !ok { return fmt.Errorf("expected Configuration to be of type string, got %T instead", value) } - sv.Configuration = &jtv + sv.Configuration = ptr.String(jtv) } case "configurationItemCaptureTime": @@ -11907,7 +11919,7 @@ func awsAwsjson11_deserializeDocumentBaseConfigurationItem(v **types.BaseConfigu if !ok { return fmt.Errorf("expected ConfigurationStateId to be of type string, got %T instead", value) } - sv.ConfigurationStateId = &jtv + sv.ConfigurationStateId = ptr.String(jtv) } case "resourceCreationTime": @@ -11929,7 +11941,7 @@ func awsAwsjson11_deserializeDocumentBaseConfigurationItem(v **types.BaseConfigu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "resourceName": @@ -11938,7 +11950,7 @@ func awsAwsjson11_deserializeDocumentBaseConfigurationItem(v **types.BaseConfigu if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } case "resourceType": @@ -11961,7 +11973,7 @@ func awsAwsjson11_deserializeDocumentBaseConfigurationItem(v **types.BaseConfigu if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -11973,7 +11985,7 @@ func awsAwsjson11_deserializeDocumentBaseConfigurationItem(v **types.BaseConfigu return nil } -func awsAwsjson11_deserializeDocumentBaseConfigurationItems(v *[]*types.BaseConfigurationItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentBaseConfigurationItems(v *[]types.BaseConfigurationItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11986,18 +11998,20 @@ func awsAwsjson11_deserializeDocumentBaseConfigurationItems(v *[]*types.BaseConf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BaseConfigurationItem + var cv []types.BaseConfigurationItem if *v == nil { - cv = []*types.BaseConfigurationItem{} + cv = []types.BaseConfigurationItem{} } else { cv = *v } for _, value := range shape { - var col *types.BaseConfigurationItem - if err := awsAwsjson11_deserializeDocumentBaseConfigurationItem(&col, value); err != nil { + var col types.BaseConfigurationItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBaseConfigurationItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12083,7 +12097,7 @@ func awsAwsjson11_deserializeDocumentComplianceByConfigRule(v **types.Compliance if !ok { return fmt.Errorf("expected StringWithCharLimit64 to be of type string, got %T instead", value) } - sv.ConfigRuleName = &jtv + sv.ConfigRuleName = ptr.String(jtv) } default: @@ -12095,7 +12109,7 @@ func awsAwsjson11_deserializeDocumentComplianceByConfigRule(v **types.Compliance return nil } -func awsAwsjson11_deserializeDocumentComplianceByConfigRules(v *[]*types.ComplianceByConfigRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentComplianceByConfigRules(v *[]types.ComplianceByConfigRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12108,18 +12122,20 @@ func awsAwsjson11_deserializeDocumentComplianceByConfigRules(v *[]*types.Complia return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComplianceByConfigRule + var cv []types.ComplianceByConfigRule if *v == nil { - cv = []*types.ComplianceByConfigRule{} + cv = []types.ComplianceByConfigRule{} } else { cv = *v } for _, value := range shape { - var col *types.ComplianceByConfigRule - if err := awsAwsjson11_deserializeDocumentComplianceByConfigRule(&col, value); err != nil { + var col types.ComplianceByConfigRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentComplianceByConfigRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12160,7 +12176,7 @@ func awsAwsjson11_deserializeDocumentComplianceByResource(v **types.ComplianceBy if !ok { return fmt.Errorf("expected BaseResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -12169,7 +12185,7 @@ func awsAwsjson11_deserializeDocumentComplianceByResource(v **types.ComplianceBy if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -12181,7 +12197,7 @@ func awsAwsjson11_deserializeDocumentComplianceByResource(v **types.ComplianceBy return nil } -func awsAwsjson11_deserializeDocumentComplianceByResources(v *[]*types.ComplianceByResource, value interface{}) error { +func awsAwsjson11_deserializeDocumentComplianceByResources(v *[]types.ComplianceByResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12194,18 +12210,20 @@ func awsAwsjson11_deserializeDocumentComplianceByResources(v *[]*types.Complianc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComplianceByResource + var cv []types.ComplianceByResource if *v == nil { - cv = []*types.ComplianceByResource{} + cv = []types.ComplianceByResource{} } else { cv = *v } for _, value := range shape { - var col *types.ComplianceByResource - if err := awsAwsjson11_deserializeDocumentComplianceByResource(&col, value); err != nil { + var col types.ComplianceByResource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentComplianceByResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12241,7 +12259,7 @@ func awsAwsjson11_deserializeDocumentComplianceContributorCount(v **types.Compli if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CapExceeded = &jtv + sv.CapExceeded = jtv } case "CappedCount": @@ -12254,7 +12272,7 @@ func awsAwsjson11_deserializeDocumentComplianceContributorCount(v **types.Compli if err != nil { return err } - sv.CappedCount = ptr.Int32(int32(i64)) + sv.CappedCount = int32(i64) } default: @@ -12266,7 +12284,7 @@ func awsAwsjson11_deserializeDocumentComplianceContributorCount(v **types.Compli return nil } -func awsAwsjson11_deserializeDocumentComplianceResourceTypes(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentComplianceResourceTypes(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12279,21 +12297,21 @@ func awsAwsjson11_deserializeDocumentComplianceResourceTypes(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -12302,7 +12320,7 @@ func awsAwsjson11_deserializeDocumentComplianceResourceTypes(v *[]*string, value return nil } -func awsAwsjson11_deserializeDocumentComplianceSummariesByResourceType(v *[]*types.ComplianceSummaryByResourceType, value interface{}) error { +func awsAwsjson11_deserializeDocumentComplianceSummariesByResourceType(v *[]types.ComplianceSummaryByResourceType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12315,18 +12333,20 @@ func awsAwsjson11_deserializeDocumentComplianceSummariesByResourceType(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComplianceSummaryByResourceType + var cv []types.ComplianceSummaryByResourceType if *v == nil { - cv = []*types.ComplianceSummaryByResourceType{} + cv = []types.ComplianceSummaryByResourceType{} } else { cv = *v } for _, value := range shape { - var col *types.ComplianceSummaryByResourceType - if err := awsAwsjson11_deserializeDocumentComplianceSummaryByResourceType(&col, value); err != nil { + var col types.ComplianceSummaryByResourceType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentComplianceSummaryByResourceType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12421,7 +12441,7 @@ func awsAwsjson11_deserializeDocumentComplianceSummaryByResourceType(v **types.C if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -12474,7 +12494,7 @@ func awsAwsjson11_deserializeDocumentConfigExportDeliveryInfo(v **types.ConfigEx if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastErrorCode = &jtv + sv.LastErrorCode = ptr.String(jtv) } case "lastErrorMessage": @@ -12483,7 +12503,7 @@ func awsAwsjson11_deserializeDocumentConfigExportDeliveryInfo(v **types.ConfigEx if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastErrorMessage = &jtv + sv.LastErrorMessage = ptr.String(jtv) } case "lastStatus": @@ -12558,7 +12578,7 @@ func awsAwsjson11_deserializeDocumentConfigRule(v **types.ConfigRule, value inte if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.ConfigRuleArn = &jtv + sv.ConfigRuleArn = ptr.String(jtv) } case "ConfigRuleId": @@ -12567,7 +12587,7 @@ func awsAwsjson11_deserializeDocumentConfigRule(v **types.ConfigRule, value inte if !ok { return fmt.Errorf("expected StringWithCharLimit64 to be of type string, got %T instead", value) } - sv.ConfigRuleId = &jtv + sv.ConfigRuleId = ptr.String(jtv) } case "ConfigRuleName": @@ -12576,7 +12596,7 @@ func awsAwsjson11_deserializeDocumentConfigRule(v **types.ConfigRule, value inte if !ok { return fmt.Errorf("expected ConfigRuleName to be of type string, got %T instead", value) } - sv.ConfigRuleName = &jtv + sv.ConfigRuleName = ptr.String(jtv) } case "ConfigRuleState": @@ -12594,7 +12614,7 @@ func awsAwsjson11_deserializeDocumentConfigRule(v **types.ConfigRule, value inte if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "Description": @@ -12603,7 +12623,7 @@ func awsAwsjson11_deserializeDocumentConfigRule(v **types.ConfigRule, value inte if !ok { return fmt.Errorf("expected EmptiableStringWithCharLimit256 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "InputParameters": @@ -12612,7 +12632,7 @@ func awsAwsjson11_deserializeDocumentConfigRule(v **types.ConfigRule, value inte if !ok { return fmt.Errorf("expected StringWithCharLimit1024 to be of type string, got %T instead", value) } - sv.InputParameters = &jtv + sv.InputParameters = ptr.String(jtv) } case "MaximumExecutionFrequency": @@ -12671,7 +12691,7 @@ func awsAwsjson11_deserializeDocumentConfigRuleEvaluationStatus(v **types.Config if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConfigRuleArn = &jtv + sv.ConfigRuleArn = ptr.String(jtv) } case "ConfigRuleId": @@ -12680,7 +12700,7 @@ func awsAwsjson11_deserializeDocumentConfigRuleEvaluationStatus(v **types.Config if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConfigRuleId = &jtv + sv.ConfigRuleId = ptr.String(jtv) } case "ConfigRuleName": @@ -12689,7 +12709,7 @@ func awsAwsjson11_deserializeDocumentConfigRuleEvaluationStatus(v **types.Config if !ok { return fmt.Errorf("expected ConfigRuleName to be of type string, got %T instead", value) } - sv.ConfigRuleName = &jtv + sv.ConfigRuleName = ptr.String(jtv) } case "FirstActivatedTime": @@ -12711,7 +12731,7 @@ func awsAwsjson11_deserializeDocumentConfigRuleEvaluationStatus(v **types.Config if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.FirstEvaluationStarted = &jtv + sv.FirstEvaluationStarted = jtv } case "LastDeactivatedTime": @@ -12733,7 +12753,7 @@ func awsAwsjson11_deserializeDocumentConfigRuleEvaluationStatus(v **types.Config if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastErrorCode = &jtv + sv.LastErrorCode = ptr.String(jtv) } case "LastErrorMessage": @@ -12742,7 +12762,7 @@ func awsAwsjson11_deserializeDocumentConfigRuleEvaluationStatus(v **types.Config if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastErrorMessage = &jtv + sv.LastErrorMessage = ptr.String(jtv) } case "LastFailedEvaluationTime": @@ -12806,7 +12826,7 @@ func awsAwsjson11_deserializeDocumentConfigRuleEvaluationStatus(v **types.Config return nil } -func awsAwsjson11_deserializeDocumentConfigRuleEvaluationStatusList(v *[]*types.ConfigRuleEvaluationStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfigRuleEvaluationStatusList(v *[]types.ConfigRuleEvaluationStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12819,18 +12839,20 @@ func awsAwsjson11_deserializeDocumentConfigRuleEvaluationStatusList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfigRuleEvaluationStatus + var cv []types.ConfigRuleEvaluationStatus if *v == nil { - cv = []*types.ConfigRuleEvaluationStatus{} + cv = []types.ConfigRuleEvaluationStatus{} } else { cv = *v } for _, value := range shape { - var col *types.ConfigRuleEvaluationStatus - if err := awsAwsjson11_deserializeDocumentConfigRuleEvaluationStatus(&col, value); err != nil { + var col types.ConfigRuleEvaluationStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfigRuleEvaluationStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12838,7 +12860,7 @@ func awsAwsjson11_deserializeDocumentConfigRuleEvaluationStatusList(v *[]*types. return nil } -func awsAwsjson11_deserializeDocumentConfigRules(v *[]*types.ConfigRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfigRules(v *[]types.ConfigRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12851,18 +12873,20 @@ func awsAwsjson11_deserializeDocumentConfigRules(v *[]*types.ConfigRule, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfigRule + var cv []types.ConfigRule if *v == nil { - cv = []*types.ConfigRule{} + cv = []types.ConfigRule{} } else { cv = *v } for _, value := range shape { - var col *types.ConfigRule - if err := awsAwsjson11_deserializeDocumentConfigRule(&col, value); err != nil { + var col types.ConfigRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfigRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12938,7 +12962,7 @@ func awsAwsjson11_deserializeDocumentConfigStreamDeliveryInfo(v **types.ConfigSt if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastErrorCode = &jtv + sv.LastErrorCode = ptr.String(jtv) } case "lastErrorMessage": @@ -12947,7 +12971,7 @@ func awsAwsjson11_deserializeDocumentConfigStreamDeliveryInfo(v **types.ConfigSt if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastErrorMessage = &jtv + sv.LastErrorMessage = ptr.String(jtv) } case "lastStatus": @@ -13014,7 +13038,7 @@ func awsAwsjson11_deserializeDocumentConfigurationAggregator(v **types.Configura if !ok { return fmt.Errorf("expected ConfigurationAggregatorArn to be of type string, got %T instead", value) } - sv.ConfigurationAggregatorArn = &jtv + sv.ConfigurationAggregatorArn = ptr.String(jtv) } case "ConfigurationAggregatorName": @@ -13023,7 +13047,7 @@ func awsAwsjson11_deserializeDocumentConfigurationAggregator(v **types.Configura if !ok { return fmt.Errorf("expected ConfigurationAggregatorName to be of type string, got %T instead", value) } - sv.ConfigurationAggregatorName = &jtv + sv.ConfigurationAggregatorName = ptr.String(jtv) } case "CreatedBy": @@ -13032,7 +13056,7 @@ func awsAwsjson11_deserializeDocumentConfigurationAggregator(v **types.Configura if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "CreationTime": @@ -13075,7 +13099,7 @@ func awsAwsjson11_deserializeDocumentConfigurationAggregator(v **types.Configura return nil } -func awsAwsjson11_deserializeDocumentConfigurationAggregatorList(v *[]*types.ConfigurationAggregator, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfigurationAggregatorList(v *[]types.ConfigurationAggregator, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13088,18 +13112,20 @@ func awsAwsjson11_deserializeDocumentConfigurationAggregatorList(v *[]*types.Con return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfigurationAggregator + var cv []types.ConfigurationAggregator if *v == nil { - cv = []*types.ConfigurationAggregator{} + cv = []types.ConfigurationAggregator{} } else { cv = *v } for _, value := range shape { - var col *types.ConfigurationAggregator - if err := awsAwsjson11_deserializeDocumentConfigurationAggregator(&col, value); err != nil { + var col types.ConfigurationAggregator + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfigurationAggregator(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13135,7 +13161,7 @@ func awsAwsjson11_deserializeDocumentConfigurationItem(v **types.ConfigurationIt if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "arn": @@ -13144,7 +13170,7 @@ func awsAwsjson11_deserializeDocumentConfigurationItem(v **types.ConfigurationIt if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "availabilityZone": @@ -13153,7 +13179,7 @@ func awsAwsjson11_deserializeDocumentConfigurationItem(v **types.ConfigurationIt if !ok { return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "awsRegion": @@ -13162,7 +13188,7 @@ func awsAwsjson11_deserializeDocumentConfigurationItem(v **types.ConfigurationIt if !ok { return fmt.Errorf("expected AwsRegion to be of type string, got %T instead", value) } - sv.AwsRegion = &jtv + sv.AwsRegion = ptr.String(jtv) } case "configuration": @@ -13171,7 +13197,7 @@ func awsAwsjson11_deserializeDocumentConfigurationItem(v **types.ConfigurationIt if !ok { return fmt.Errorf("expected Configuration to be of type string, got %T instead", value) } - sv.Configuration = &jtv + sv.Configuration = ptr.String(jtv) } case "configurationItemCaptureTime": @@ -13193,7 +13219,7 @@ func awsAwsjson11_deserializeDocumentConfigurationItem(v **types.ConfigurationIt if !ok { return fmt.Errorf("expected ConfigurationItemMD5Hash to be of type string, got %T instead", value) } - sv.ConfigurationItemMD5Hash = &jtv + sv.ConfigurationItemMD5Hash = ptr.String(jtv) } case "configurationItemStatus": @@ -13211,7 +13237,7 @@ func awsAwsjson11_deserializeDocumentConfigurationItem(v **types.ConfigurationIt if !ok { return fmt.Errorf("expected ConfigurationStateId to be of type string, got %T instead", value) } - sv.ConfigurationStateId = &jtv + sv.ConfigurationStateId = ptr.String(jtv) } case "relatedEvents": @@ -13243,7 +13269,7 @@ func awsAwsjson11_deserializeDocumentConfigurationItem(v **types.ConfigurationIt if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "resourceName": @@ -13252,7 +13278,7 @@ func awsAwsjson11_deserializeDocumentConfigurationItem(v **types.ConfigurationIt if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } case "resourceType": @@ -13280,7 +13306,7 @@ func awsAwsjson11_deserializeDocumentConfigurationItem(v **types.ConfigurationIt if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -13292,7 +13318,7 @@ func awsAwsjson11_deserializeDocumentConfigurationItem(v **types.ConfigurationIt return nil } -func awsAwsjson11_deserializeDocumentConfigurationItemList(v *[]*types.ConfigurationItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfigurationItemList(v *[]types.ConfigurationItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13305,18 +13331,20 @@ func awsAwsjson11_deserializeDocumentConfigurationItemList(v *[]*types.Configura return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfigurationItem + var cv []types.ConfigurationItem if *v == nil { - cv = []*types.ConfigurationItem{} + cv = []types.ConfigurationItem{} } else { cv = *v } for _, value := range shape { - var col *types.ConfigurationItem - if err := awsAwsjson11_deserializeDocumentConfigurationItem(&col, value); err != nil { + var col types.ConfigurationItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfigurationItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13352,7 +13380,7 @@ func awsAwsjson11_deserializeDocumentConfigurationRecorder(v **types.Configurati if !ok { return fmt.Errorf("expected RecorderName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "recordingGroup": @@ -13366,7 +13394,7 @@ func awsAwsjson11_deserializeDocumentConfigurationRecorder(v **types.Configurati if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -13378,7 +13406,7 @@ func awsAwsjson11_deserializeDocumentConfigurationRecorder(v **types.Configurati return nil } -func awsAwsjson11_deserializeDocumentConfigurationRecorderList(v *[]*types.ConfigurationRecorder, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfigurationRecorderList(v *[]types.ConfigurationRecorder, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13391,18 +13419,20 @@ func awsAwsjson11_deserializeDocumentConfigurationRecorderList(v *[]*types.Confi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfigurationRecorder + var cv []types.ConfigurationRecorder if *v == nil { - cv = []*types.ConfigurationRecorder{} + cv = []types.ConfigurationRecorder{} } else { cv = *v } for _, value := range shape { - var col *types.ConfigurationRecorder - if err := awsAwsjson11_deserializeDocumentConfigurationRecorder(&col, value); err != nil { + var col types.ConfigurationRecorder + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfigurationRecorder(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13438,7 +13468,7 @@ func awsAwsjson11_deserializeDocumentConfigurationRecorderStatus(v **types.Confi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastErrorCode = &jtv + sv.LastErrorCode = ptr.String(jtv) } case "lastErrorMessage": @@ -13447,7 +13477,7 @@ func awsAwsjson11_deserializeDocumentConfigurationRecorderStatus(v **types.Confi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastErrorMessage = &jtv + sv.LastErrorMessage = ptr.String(jtv) } case "lastStartTime": @@ -13504,7 +13534,7 @@ func awsAwsjson11_deserializeDocumentConfigurationRecorderStatus(v **types.Confi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "recording": @@ -13513,7 +13543,7 @@ func awsAwsjson11_deserializeDocumentConfigurationRecorderStatus(v **types.Confi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Recording = &jtv + sv.Recording = jtv } default: @@ -13525,7 +13555,7 @@ func awsAwsjson11_deserializeDocumentConfigurationRecorderStatus(v **types.Confi return nil } -func awsAwsjson11_deserializeDocumentConfigurationRecorderStatusList(v *[]*types.ConfigurationRecorderStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfigurationRecorderStatusList(v *[]types.ConfigurationRecorderStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13538,18 +13568,20 @@ func awsAwsjson11_deserializeDocumentConfigurationRecorderStatusList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfigurationRecorderStatus + var cv []types.ConfigurationRecorderStatus if *v == nil { - cv = []*types.ConfigurationRecorderStatus{} + cv = []types.ConfigurationRecorderStatus{} } else { cv = *v } for _, value := range shape { - var col *types.ConfigurationRecorderStatus - if err := awsAwsjson11_deserializeDocumentConfigurationRecorderStatus(&col, value); err != nil { + var col types.ConfigurationRecorderStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfigurationRecorderStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13594,7 +13626,7 @@ func awsAwsjson11_deserializeDocumentConformancePackComplianceSummary(v **types. if !ok { return fmt.Errorf("expected ConformancePackName to be of type string, got %T instead", value) } - sv.ConformancePackName = &jtv + sv.ConformancePackName = ptr.String(jtv) } default: @@ -13606,7 +13638,7 @@ func awsAwsjson11_deserializeDocumentConformancePackComplianceSummary(v **types. return nil } -func awsAwsjson11_deserializeDocumentConformancePackComplianceSummaryList(v *[]*types.ConformancePackComplianceSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentConformancePackComplianceSummaryList(v *[]types.ConformancePackComplianceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13619,18 +13651,20 @@ func awsAwsjson11_deserializeDocumentConformancePackComplianceSummaryList(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConformancePackComplianceSummary + var cv []types.ConformancePackComplianceSummary if *v == nil { - cv = []*types.ConformancePackComplianceSummary{} + cv = []types.ConformancePackComplianceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ConformancePackComplianceSummary - if err := awsAwsjson11_deserializeDocumentConformancePackComplianceSummary(&col, value); err != nil { + var col types.ConformancePackComplianceSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConformancePackComplianceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13666,7 +13700,7 @@ func awsAwsjson11_deserializeDocumentConformancePackDetail(v **types.Conformance if !ok { return fmt.Errorf("expected ConformancePackArn to be of type string, got %T instead", value) } - sv.ConformancePackArn = &jtv + sv.ConformancePackArn = ptr.String(jtv) } case "ConformancePackId": @@ -13675,7 +13709,7 @@ func awsAwsjson11_deserializeDocumentConformancePackDetail(v **types.Conformance if !ok { return fmt.Errorf("expected ConformancePackId to be of type string, got %T instead", value) } - sv.ConformancePackId = &jtv + sv.ConformancePackId = ptr.String(jtv) } case "ConformancePackInputParameters": @@ -13689,7 +13723,7 @@ func awsAwsjson11_deserializeDocumentConformancePackDetail(v **types.Conformance if !ok { return fmt.Errorf("expected ConformancePackName to be of type string, got %T instead", value) } - sv.ConformancePackName = &jtv + sv.ConformancePackName = ptr.String(jtv) } case "CreatedBy": @@ -13698,7 +13732,7 @@ func awsAwsjson11_deserializeDocumentConformancePackDetail(v **types.Conformance if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "DeliveryS3Bucket": @@ -13707,7 +13741,7 @@ func awsAwsjson11_deserializeDocumentConformancePackDetail(v **types.Conformance if !ok { return fmt.Errorf("expected DeliveryS3Bucket to be of type string, got %T instead", value) } - sv.DeliveryS3Bucket = &jtv + sv.DeliveryS3Bucket = ptr.String(jtv) } case "DeliveryS3KeyPrefix": @@ -13716,7 +13750,7 @@ func awsAwsjson11_deserializeDocumentConformancePackDetail(v **types.Conformance if !ok { return fmt.Errorf("expected DeliveryS3KeyPrefix to be of type string, got %T instead", value) } - sv.DeliveryS3KeyPrefix = &jtv + sv.DeliveryS3KeyPrefix = ptr.String(jtv) } case "LastUpdateRequestedTime": @@ -13741,7 +13775,7 @@ func awsAwsjson11_deserializeDocumentConformancePackDetail(v **types.Conformance return nil } -func awsAwsjson11_deserializeDocumentConformancePackDetailList(v *[]*types.ConformancePackDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentConformancePackDetailList(v *[]types.ConformancePackDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13754,18 +13788,20 @@ func awsAwsjson11_deserializeDocumentConformancePackDetailList(v *[]*types.Confo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConformancePackDetail + var cv []types.ConformancePackDetail if *v == nil { - cv = []*types.ConformancePackDetail{} + cv = []types.ConformancePackDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ConformancePackDetail - if err := awsAwsjson11_deserializeDocumentConformancePackDetail(&col, value); err != nil { + var col types.ConformancePackDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConformancePackDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13801,7 +13837,7 @@ func awsAwsjson11_deserializeDocumentConformancePackEvaluationResult(v **types.C if !ok { return fmt.Errorf("expected Annotation to be of type string, got %T instead", value) } - sv.Annotation = &jtv + sv.Annotation = ptr.String(jtv) } case "ComplianceType": @@ -13881,7 +13917,7 @@ func awsAwsjson11_deserializeDocumentConformancePackInputParameter(v **types.Con if !ok { return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.ParameterName = &jtv + sv.ParameterName = ptr.String(jtv) } case "ParameterValue": @@ -13890,7 +13926,7 @@ func awsAwsjson11_deserializeDocumentConformancePackInputParameter(v **types.Con if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - sv.ParameterValue = &jtv + sv.ParameterValue = ptr.String(jtv) } default: @@ -13902,7 +13938,7 @@ func awsAwsjson11_deserializeDocumentConformancePackInputParameter(v **types.Con return nil } -func awsAwsjson11_deserializeDocumentConformancePackInputParameters(v *[]*types.ConformancePackInputParameter, value interface{}) error { +func awsAwsjson11_deserializeDocumentConformancePackInputParameters(v *[]types.ConformancePackInputParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13915,18 +13951,20 @@ func awsAwsjson11_deserializeDocumentConformancePackInputParameters(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConformancePackInputParameter + var cv []types.ConformancePackInputParameter if *v == nil { - cv = []*types.ConformancePackInputParameter{} + cv = []types.ConformancePackInputParameter{} } else { cv = *v } for _, value := range shape { - var col *types.ConformancePackInputParameter - if err := awsAwsjson11_deserializeDocumentConformancePackInputParameter(&col, value); err != nil { + var col types.ConformancePackInputParameter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConformancePackInputParameter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13971,7 +14009,7 @@ func awsAwsjson11_deserializeDocumentConformancePackRuleCompliance(v **types.Con if !ok { return fmt.Errorf("expected ConfigRuleName to be of type string, got %T instead", value) } - sv.ConfigRuleName = &jtv + sv.ConfigRuleName = ptr.String(jtv) } default: @@ -13983,7 +14021,7 @@ func awsAwsjson11_deserializeDocumentConformancePackRuleCompliance(v **types.Con return nil } -func awsAwsjson11_deserializeDocumentConformancePackRuleComplianceList(v *[]*types.ConformancePackRuleCompliance, value interface{}) error { +func awsAwsjson11_deserializeDocumentConformancePackRuleComplianceList(v *[]types.ConformancePackRuleCompliance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13996,18 +14034,20 @@ func awsAwsjson11_deserializeDocumentConformancePackRuleComplianceList(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConformancePackRuleCompliance + var cv []types.ConformancePackRuleCompliance if *v == nil { - cv = []*types.ConformancePackRuleCompliance{} + cv = []types.ConformancePackRuleCompliance{} } else { cv = *v } for _, value := range shape { - var col *types.ConformancePackRuleCompliance - if err := awsAwsjson11_deserializeDocumentConformancePackRuleCompliance(&col, value); err != nil { + var col types.ConformancePackRuleCompliance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConformancePackRuleCompliance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14015,7 +14055,7 @@ func awsAwsjson11_deserializeDocumentConformancePackRuleComplianceList(v *[]*typ return nil } -func awsAwsjson11_deserializeDocumentConformancePackRuleEvaluationResultsList(v *[]*types.ConformancePackEvaluationResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentConformancePackRuleEvaluationResultsList(v *[]types.ConformancePackEvaluationResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14028,18 +14068,20 @@ func awsAwsjson11_deserializeDocumentConformancePackRuleEvaluationResultsList(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConformancePackEvaluationResult + var cv []types.ConformancePackEvaluationResult if *v == nil { - cv = []*types.ConformancePackEvaluationResult{} + cv = []types.ConformancePackEvaluationResult{} } else { cv = *v } for _, value := range shape { - var col *types.ConformancePackEvaluationResult - if err := awsAwsjson11_deserializeDocumentConformancePackEvaluationResult(&col, value); err != nil { + var col types.ConformancePackEvaluationResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConformancePackEvaluationResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14075,7 +14117,7 @@ func awsAwsjson11_deserializeDocumentConformancePackStatusDetail(v **types.Confo if !ok { return fmt.Errorf("expected ConformancePackArn to be of type string, got %T instead", value) } - sv.ConformancePackArn = &jtv + sv.ConformancePackArn = ptr.String(jtv) } case "ConformancePackId": @@ -14084,7 +14126,7 @@ func awsAwsjson11_deserializeDocumentConformancePackStatusDetail(v **types.Confo if !ok { return fmt.Errorf("expected ConformancePackId to be of type string, got %T instead", value) } - sv.ConformancePackId = &jtv + sv.ConformancePackId = ptr.String(jtv) } case "ConformancePackName": @@ -14093,7 +14135,7 @@ func awsAwsjson11_deserializeDocumentConformancePackStatusDetail(v **types.Confo if !ok { return fmt.Errorf("expected ConformancePackName to be of type string, got %T instead", value) } - sv.ConformancePackName = &jtv + sv.ConformancePackName = ptr.String(jtv) } case "ConformancePackState": @@ -14111,7 +14153,7 @@ func awsAwsjson11_deserializeDocumentConformancePackStatusDetail(v **types.Confo if !ok { return fmt.Errorf("expected ConformancePackStatusReason to be of type string, got %T instead", value) } - sv.ConformancePackStatusReason = &jtv + sv.ConformancePackStatusReason = ptr.String(jtv) } case "LastUpdateCompletedTime": @@ -14146,7 +14188,7 @@ func awsAwsjson11_deserializeDocumentConformancePackStatusDetail(v **types.Confo if !ok { return fmt.Errorf("expected StackArn to be of type string, got %T instead", value) } - sv.StackArn = &jtv + sv.StackArn = ptr.String(jtv) } default: @@ -14158,7 +14200,7 @@ func awsAwsjson11_deserializeDocumentConformancePackStatusDetail(v **types.Confo return nil } -func awsAwsjson11_deserializeDocumentConformancePackStatusDetailsList(v *[]*types.ConformancePackStatusDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentConformancePackStatusDetailsList(v *[]types.ConformancePackStatusDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14171,18 +14213,20 @@ func awsAwsjson11_deserializeDocumentConformancePackStatusDetailsList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConformancePackStatusDetail + var cv []types.ConformancePackStatusDetail if *v == nil { - cv = []*types.ConformancePackStatusDetail{} + cv = []types.ConformancePackStatusDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ConformancePackStatusDetail - if err := awsAwsjson11_deserializeDocumentConformancePackStatusDetail(&col, value); err != nil { + var col types.ConformancePackStatusDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConformancePackStatusDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14218,7 +14262,7 @@ func awsAwsjson11_deserializeDocumentConformancePackTemplateValidationException( if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14263,7 +14307,7 @@ func awsAwsjson11_deserializeDocumentDeliveryChannel(v **types.DeliveryChannel, if !ok { return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "s3BucketName": @@ -14272,7 +14316,7 @@ func awsAwsjson11_deserializeDocumentDeliveryChannel(v **types.DeliveryChannel, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "s3KeyPrefix": @@ -14281,7 +14325,7 @@ func awsAwsjson11_deserializeDocumentDeliveryChannel(v **types.DeliveryChannel, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3KeyPrefix = &jtv + sv.S3KeyPrefix = ptr.String(jtv) } case "snsTopicARN": @@ -14290,7 +14334,7 @@ func awsAwsjson11_deserializeDocumentDeliveryChannel(v **types.DeliveryChannel, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SnsTopicARN = &jtv + sv.SnsTopicARN = ptr.String(jtv) } default: @@ -14302,7 +14346,7 @@ func awsAwsjson11_deserializeDocumentDeliveryChannel(v **types.DeliveryChannel, return nil } -func awsAwsjson11_deserializeDocumentDeliveryChannelList(v *[]*types.DeliveryChannel, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeliveryChannelList(v *[]types.DeliveryChannel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14315,18 +14359,20 @@ func awsAwsjson11_deserializeDocumentDeliveryChannelList(v *[]*types.DeliveryCha return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeliveryChannel + var cv []types.DeliveryChannel if *v == nil { - cv = []*types.DeliveryChannel{} + cv = []types.DeliveryChannel{} } else { cv = *v } for _, value := range shape { - var col *types.DeliveryChannel - if err := awsAwsjson11_deserializeDocumentDeliveryChannel(&col, value); err != nil { + var col types.DeliveryChannel + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeliveryChannel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14377,7 +14423,7 @@ func awsAwsjson11_deserializeDocumentDeliveryChannelStatus(v **types.DeliveryCha if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -14389,7 +14435,7 @@ func awsAwsjson11_deserializeDocumentDeliveryChannelStatus(v **types.DeliveryCha return nil } -func awsAwsjson11_deserializeDocumentDeliveryChannelStatusList(v *[]*types.DeliveryChannelStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeliveryChannelStatusList(v *[]types.DeliveryChannelStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14402,18 +14448,20 @@ func awsAwsjson11_deserializeDocumentDeliveryChannelStatusList(v *[]*types.Deliv return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeliveryChannelStatus + var cv []types.DeliveryChannelStatus if *v == nil { - cv = []*types.DeliveryChannelStatus{} + cv = []types.DeliveryChannelStatus{} } else { cv = *v } for _, value := range shape { - var col *types.DeliveryChannelStatus - if err := awsAwsjson11_deserializeDocumentDeliveryChannelStatus(&col, value); err != nil { + var col types.DeliveryChannelStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeliveryChannelStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14421,7 +14469,7 @@ func awsAwsjson11_deserializeDocumentDeliveryChannelStatusList(v *[]*types.Deliv return nil } -func awsAwsjson11_deserializeDocumentDiscoveredResourceIdentifierList(v *[]*types.AggregateResourceIdentifier, value interface{}) error { +func awsAwsjson11_deserializeDocumentDiscoveredResourceIdentifierList(v *[]types.AggregateResourceIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14434,18 +14482,20 @@ func awsAwsjson11_deserializeDocumentDiscoveredResourceIdentifierList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AggregateResourceIdentifier + var cv []types.AggregateResourceIdentifier if *v == nil { - cv = []*types.AggregateResourceIdentifier{} + cv = []types.AggregateResourceIdentifier{} } else { cv = *v } for _, value := range shape { - var col *types.AggregateResourceIdentifier - if err := awsAwsjson11_deserializeDocumentAggregateResourceIdentifier(&col, value); err != nil { + var col types.AggregateResourceIdentifier + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAggregateResourceIdentifier(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14481,7 +14531,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.Annotation = &jtv + sv.Annotation = ptr.String(jtv) } case "ComplianceResourceId": @@ -14490,7 +14540,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte if !ok { return fmt.Errorf("expected BaseResourceId to be of type string, got %T instead", value) } - sv.ComplianceResourceId = &jtv + sv.ComplianceResourceId = ptr.String(jtv) } case "ComplianceResourceType": @@ -14499,7 +14549,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.ComplianceResourceType = &jtv + sv.ComplianceResourceType = ptr.String(jtv) } case "ComplianceType": @@ -14561,7 +14611,7 @@ func awsAwsjson11_deserializeDocumentEvaluationResult(v **types.EvaluationResult if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.Annotation = &jtv + sv.Annotation = ptr.String(jtv) } case "ComplianceType": @@ -14610,7 +14660,7 @@ func awsAwsjson11_deserializeDocumentEvaluationResult(v **types.EvaluationResult if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResultToken = &jtv + sv.ResultToken = ptr.String(jtv) } default: @@ -14699,7 +14749,7 @@ func awsAwsjson11_deserializeDocumentEvaluationResultQualifier(v **types.Evaluat if !ok { return fmt.Errorf("expected ConfigRuleName to be of type string, got %T instead", value) } - sv.ConfigRuleName = &jtv + sv.ConfigRuleName = ptr.String(jtv) } case "ResourceId": @@ -14708,7 +14758,7 @@ func awsAwsjson11_deserializeDocumentEvaluationResultQualifier(v **types.Evaluat if !ok { return fmt.Errorf("expected BaseResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -14717,7 +14767,7 @@ func awsAwsjson11_deserializeDocumentEvaluationResultQualifier(v **types.Evaluat if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -14729,7 +14779,7 @@ func awsAwsjson11_deserializeDocumentEvaluationResultQualifier(v **types.Evaluat return nil } -func awsAwsjson11_deserializeDocumentEvaluationResults(v *[]*types.EvaluationResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentEvaluationResults(v *[]types.EvaluationResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14742,18 +14792,20 @@ func awsAwsjson11_deserializeDocumentEvaluationResults(v *[]*types.EvaluationRes return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EvaluationResult + var cv []types.EvaluationResult if *v == nil { - cv = []*types.EvaluationResult{} + cv = []types.EvaluationResult{} } else { cv = *v } for _, value := range shape { - var col *types.EvaluationResult - if err := awsAwsjson11_deserializeDocumentEvaluationResult(&col, value); err != nil { + var col types.EvaluationResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEvaluationResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14761,7 +14813,7 @@ func awsAwsjson11_deserializeDocumentEvaluationResults(v *[]*types.EvaluationRes return nil } -func awsAwsjson11_deserializeDocumentEvaluations(v *[]*types.Evaluation, value interface{}) error { +func awsAwsjson11_deserializeDocumentEvaluations(v *[]types.Evaluation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14774,18 +14826,20 @@ func awsAwsjson11_deserializeDocumentEvaluations(v *[]*types.Evaluation, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Evaluation + var cv []types.Evaluation if *v == nil { - cv = []*types.Evaluation{} + cv = []types.Evaluation{} } else { cv = *v } for _, value := range shape { - var col *types.Evaluation - if err := awsAwsjson11_deserializeDocumentEvaluation(&col, value); err != nil { + var col types.Evaluation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEvaluation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14793,7 +14847,7 @@ func awsAwsjson11_deserializeDocumentEvaluations(v *[]*types.Evaluation, value i return nil } -func awsAwsjson11_deserializeDocumentExcludedAccounts(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentExcludedAccounts(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14806,21 +14860,21 @@ func awsAwsjson11_deserializeDocumentExcludedAccounts(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14898,7 +14952,7 @@ func awsAwsjson11_deserializeDocumentFailedDeleteRemediationExceptionsBatch(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureMessage = &jtv + sv.FailureMessage = ptr.String(jtv) } default: @@ -14910,7 +14964,7 @@ func awsAwsjson11_deserializeDocumentFailedDeleteRemediationExceptionsBatch(v ** return nil } -func awsAwsjson11_deserializeDocumentFailedDeleteRemediationExceptionsBatches(v *[]*types.FailedDeleteRemediationExceptionsBatch, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedDeleteRemediationExceptionsBatches(v *[]types.FailedDeleteRemediationExceptionsBatch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14923,18 +14977,20 @@ func awsAwsjson11_deserializeDocumentFailedDeleteRemediationExceptionsBatches(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedDeleteRemediationExceptionsBatch + var cv []types.FailedDeleteRemediationExceptionsBatch if *v == nil { - cv = []*types.FailedDeleteRemediationExceptionsBatch{} + cv = []types.FailedDeleteRemediationExceptionsBatch{} } else { cv = *v } for _, value := range shape { - var col *types.FailedDeleteRemediationExceptionsBatch - if err := awsAwsjson11_deserializeDocumentFailedDeleteRemediationExceptionsBatch(&col, value); err != nil { + var col types.FailedDeleteRemediationExceptionsBatch + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailedDeleteRemediationExceptionsBatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14975,7 +15031,7 @@ func awsAwsjson11_deserializeDocumentFailedRemediationBatch(v **types.FailedReme if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureMessage = &jtv + sv.FailureMessage = ptr.String(jtv) } default: @@ -14987,7 +15043,7 @@ func awsAwsjson11_deserializeDocumentFailedRemediationBatch(v **types.FailedReme return nil } -func awsAwsjson11_deserializeDocumentFailedRemediationBatches(v *[]*types.FailedRemediationBatch, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedRemediationBatches(v *[]types.FailedRemediationBatch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15000,18 +15056,20 @@ func awsAwsjson11_deserializeDocumentFailedRemediationBatches(v *[]*types.Failed return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedRemediationBatch + var cv []types.FailedRemediationBatch if *v == nil { - cv = []*types.FailedRemediationBatch{} + cv = []types.FailedRemediationBatch{} } else { cv = *v } for _, value := range shape { - var col *types.FailedRemediationBatch - if err := awsAwsjson11_deserializeDocumentFailedRemediationBatch(&col, value); err != nil { + var col types.FailedRemediationBatch + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailedRemediationBatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15052,7 +15110,7 @@ func awsAwsjson11_deserializeDocumentFailedRemediationExceptionBatch(v **types.F if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureMessage = &jtv + sv.FailureMessage = ptr.String(jtv) } default: @@ -15064,7 +15122,7 @@ func awsAwsjson11_deserializeDocumentFailedRemediationExceptionBatch(v **types.F return nil } -func awsAwsjson11_deserializeDocumentFailedRemediationExceptionBatches(v *[]*types.FailedRemediationExceptionBatch, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedRemediationExceptionBatches(v *[]types.FailedRemediationExceptionBatch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15077,18 +15135,20 @@ func awsAwsjson11_deserializeDocumentFailedRemediationExceptionBatches(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedRemediationExceptionBatch + var cv []types.FailedRemediationExceptionBatch if *v == nil { - cv = []*types.FailedRemediationExceptionBatch{} + cv = []types.FailedRemediationExceptionBatch{} } else { cv = *v } for _, value := range shape { - var col *types.FailedRemediationExceptionBatch - if err := awsAwsjson11_deserializeDocumentFailedRemediationExceptionBatch(&col, value); err != nil { + var col types.FailedRemediationExceptionBatch + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailedRemediationExceptionBatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15124,7 +15184,7 @@ func awsAwsjson11_deserializeDocumentFieldInfo(v **types.FieldInfo, value interf if !ok { return fmt.Errorf("expected FieldName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -15136,7 +15196,7 @@ func awsAwsjson11_deserializeDocumentFieldInfo(v **types.FieldInfo, value interf return nil } -func awsAwsjson11_deserializeDocumentFieldInfoList(v *[]*types.FieldInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentFieldInfoList(v *[]types.FieldInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15149,18 +15209,20 @@ func awsAwsjson11_deserializeDocumentFieldInfoList(v *[]*types.FieldInfo, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FieldInfo + var cv []types.FieldInfo if *v == nil { - cv = []*types.FieldInfo{} + cv = []types.FieldInfo{} } else { cv = *v } for _, value := range shape { - var col *types.FieldInfo - if err := awsAwsjson11_deserializeDocumentFieldInfo(&col, value); err != nil { + var col types.FieldInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFieldInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15196,7 +15258,7 @@ func awsAwsjson11_deserializeDocumentGroupedResourceCount(v **types.GroupedResou if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } case "ResourceCount": @@ -15209,7 +15271,7 @@ func awsAwsjson11_deserializeDocumentGroupedResourceCount(v **types.GroupedResou if err != nil { return err } - sv.ResourceCount = &i64 + sv.ResourceCount = i64 } default: @@ -15221,7 +15283,7 @@ func awsAwsjson11_deserializeDocumentGroupedResourceCount(v **types.GroupedResou return nil } -func awsAwsjson11_deserializeDocumentGroupedResourceCountList(v *[]*types.GroupedResourceCount, value interface{}) error { +func awsAwsjson11_deserializeDocumentGroupedResourceCountList(v *[]types.GroupedResourceCount, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15234,18 +15296,20 @@ func awsAwsjson11_deserializeDocumentGroupedResourceCountList(v *[]*types.Groupe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupedResourceCount + var cv []types.GroupedResourceCount if *v == nil { - cv = []*types.GroupedResourceCount{} + cv = []types.GroupedResourceCount{} } else { cv = *v } for _, value := range shape { - var col *types.GroupedResourceCount - if err := awsAwsjson11_deserializeDocumentGroupedResourceCount(&col, value); err != nil { + var col types.GroupedResourceCount + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGroupedResourceCount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15281,7 +15345,7 @@ func awsAwsjson11_deserializeDocumentInsufficientDeliveryPolicyException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15321,7 +15385,7 @@ func awsAwsjson11_deserializeDocumentInsufficientPermissionsException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15361,7 +15425,7 @@ func awsAwsjson11_deserializeDocumentInvalidConfigurationRecorderNameException(v if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15401,7 +15465,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeliveryChannelNameException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15441,7 +15505,7 @@ func awsAwsjson11_deserializeDocumentInvalidExpressionException(v **types.Invali if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15481,7 +15545,7 @@ func awsAwsjson11_deserializeDocumentInvalidLimitException(v **types.InvalidLimi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15521,7 +15585,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15561,7 +15625,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15601,7 +15665,7 @@ func awsAwsjson11_deserializeDocumentInvalidRecordingGroupException(v **types.In if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15641,7 +15705,7 @@ func awsAwsjson11_deserializeDocumentInvalidResultTokenException(v **types.Inval if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15681,7 +15745,7 @@ func awsAwsjson11_deserializeDocumentInvalidRoleException(v **types.InvalidRoleE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15721,7 +15785,7 @@ func awsAwsjson11_deserializeDocumentInvalidS3KeyPrefixException(v **types.Inval if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15761,7 +15825,7 @@ func awsAwsjson11_deserializeDocumentInvalidSNSTopicARNException(v **types.Inval if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15801,7 +15865,7 @@ func awsAwsjson11_deserializeDocumentInvalidTimeRangeException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15841,7 +15905,7 @@ func awsAwsjson11_deserializeDocumentLastDeliveryChannelDeleteFailedException(v if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15881,7 +15945,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15921,7 +15985,7 @@ func awsAwsjson11_deserializeDocumentMaxActiveResourcesExceededException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15961,7 +16025,7 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfConfigRulesExceededException(v * if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16001,7 +16065,7 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfConfigurationRecordersExceededEx if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16041,7 +16105,7 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfConformancePacksExceededExceptio if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16081,7 +16145,7 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfDeliveryChannelsExceededExceptio if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16121,7 +16185,7 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfOrganizationConfigRulesExceededE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16161,7 +16225,7 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfOrganizationConformancePacksExce if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16201,7 +16265,7 @@ func awsAwsjson11_deserializeDocumentMaxNumberOfRetentionConfigurationsExceededE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16241,7 +16305,7 @@ func awsAwsjson11_deserializeDocumentMemberAccountStatus(v **types.MemberAccount if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "ConfigRuleName": @@ -16250,7 +16314,7 @@ func awsAwsjson11_deserializeDocumentMemberAccountStatus(v **types.MemberAccount if !ok { return fmt.Errorf("expected StringWithCharLimit64 to be of type string, got %T instead", value) } - sv.ConfigRuleName = &jtv + sv.ConfigRuleName = ptr.String(jtv) } case "ErrorCode": @@ -16259,7 +16323,7 @@ func awsAwsjson11_deserializeDocumentMemberAccountStatus(v **types.MemberAccount if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -16268,7 +16332,7 @@ func awsAwsjson11_deserializeDocumentMemberAccountStatus(v **types.MemberAccount if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "LastUpdateTime": @@ -16330,7 +16394,7 @@ func awsAwsjson11_deserializeDocumentNoAvailableConfigurationRecorderException(v if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16370,7 +16434,7 @@ func awsAwsjson11_deserializeDocumentNoAvailableDeliveryChannelException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16410,7 +16474,7 @@ func awsAwsjson11_deserializeDocumentNoAvailableOrganizationException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16450,7 +16514,7 @@ func awsAwsjson11_deserializeDocumentNoRunningConfigurationRecorderException(v * if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16490,7 +16554,7 @@ func awsAwsjson11_deserializeDocumentNoSuchBucketException(v **types.NoSuchBucke if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16530,7 +16594,7 @@ func awsAwsjson11_deserializeDocumentNoSuchConfigRuleException(v **types.NoSuchC if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16570,7 +16634,7 @@ func awsAwsjson11_deserializeDocumentNoSuchConfigRuleInConformancePackException( if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16610,7 +16674,7 @@ func awsAwsjson11_deserializeDocumentNoSuchConfigurationAggregatorException(v ** if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16650,7 +16714,7 @@ func awsAwsjson11_deserializeDocumentNoSuchConfigurationRecorderException(v **ty if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16690,7 +16754,7 @@ func awsAwsjson11_deserializeDocumentNoSuchConformancePackException(v **types.No if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16730,7 +16794,7 @@ func awsAwsjson11_deserializeDocumentNoSuchDeliveryChannelException(v **types.No if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16770,7 +16834,7 @@ func awsAwsjson11_deserializeDocumentNoSuchOrganizationConfigRuleException(v **t if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16810,7 +16874,7 @@ func awsAwsjson11_deserializeDocumentNoSuchOrganizationConformancePackException( if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16850,7 +16914,7 @@ func awsAwsjson11_deserializeDocumentNoSuchRemediationConfigurationException(v * if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16890,7 +16954,7 @@ func awsAwsjson11_deserializeDocumentNoSuchRemediationExceptionException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16930,7 +16994,7 @@ func awsAwsjson11_deserializeDocumentNoSuchRetentionConfigurationException(v **t if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16970,7 +17034,7 @@ func awsAwsjson11_deserializeDocumentOrganizationAccessDeniedException(v **types if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17010,7 +17074,7 @@ func awsAwsjson11_deserializeDocumentOrganizationAggregationSource(v **types.Org if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllAwsRegions = &jtv + sv.AllAwsRegions = jtv } case "AwsRegions": @@ -17024,7 +17088,7 @@ func awsAwsjson11_deserializeDocumentOrganizationAggregationSource(v **types.Org if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -17064,7 +17128,7 @@ func awsAwsjson11_deserializeDocumentOrganizationAllFeaturesNotEnabledException( if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17122,7 +17186,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConfigRule(v **types.Organizati if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.OrganizationConfigRuleArn = &jtv + sv.OrganizationConfigRuleArn = ptr.String(jtv) } case "OrganizationConfigRuleName": @@ -17131,7 +17195,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConfigRule(v **types.Organizati if !ok { return fmt.Errorf("expected OrganizationConfigRuleName to be of type string, got %T instead", value) } - sv.OrganizationConfigRuleName = &jtv + sv.OrganizationConfigRuleName = ptr.String(jtv) } case "OrganizationCustomRuleMetadata": @@ -17153,7 +17217,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConfigRule(v **types.Organizati return nil } -func awsAwsjson11_deserializeDocumentOrganizationConfigRuleDetailedStatus(v *[]*types.MemberAccountStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrganizationConfigRuleDetailedStatus(v *[]types.MemberAccountStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17166,18 +17230,20 @@ func awsAwsjson11_deserializeDocumentOrganizationConfigRuleDetailedStatus(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MemberAccountStatus + var cv []types.MemberAccountStatus if *v == nil { - cv = []*types.MemberAccountStatus{} + cv = []types.MemberAccountStatus{} } else { cv = *v } for _, value := range shape { - var col *types.MemberAccountStatus - if err := awsAwsjson11_deserializeDocumentMemberAccountStatus(&col, value); err != nil { + var col types.MemberAccountStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMemberAccountStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17185,7 +17251,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConfigRuleDetailedStatus(v *[]* return nil } -func awsAwsjson11_deserializeDocumentOrganizationConfigRules(v *[]*types.OrganizationConfigRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrganizationConfigRules(v *[]types.OrganizationConfigRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17198,18 +17264,20 @@ func awsAwsjson11_deserializeDocumentOrganizationConfigRules(v *[]*types.Organiz return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrganizationConfigRule + var cv []types.OrganizationConfigRule if *v == nil { - cv = []*types.OrganizationConfigRule{} + cv = []types.OrganizationConfigRule{} } else { cv = *v } for _, value := range shape { - var col *types.OrganizationConfigRule - if err := awsAwsjson11_deserializeDocumentOrganizationConfigRule(&col, value); err != nil { + var col types.OrganizationConfigRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrganizationConfigRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17245,7 +17313,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConfigRuleStatus(v **types.Orga if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -17254,7 +17322,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConfigRuleStatus(v **types.Orga if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "LastUpdateTime": @@ -17276,7 +17344,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConfigRuleStatus(v **types.Orga if !ok { return fmt.Errorf("expected OrganizationConfigRuleName to be of type string, got %T instead", value) } - sv.OrganizationConfigRuleName = &jtv + sv.OrganizationConfigRuleName = ptr.String(jtv) } case "OrganizationRuleStatus": @@ -17297,7 +17365,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConfigRuleStatus(v **types.Orga return nil } -func awsAwsjson11_deserializeDocumentOrganizationConfigRuleStatuses(v *[]*types.OrganizationConfigRuleStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrganizationConfigRuleStatuses(v *[]types.OrganizationConfigRuleStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17310,18 +17378,20 @@ func awsAwsjson11_deserializeDocumentOrganizationConfigRuleStatuses(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrganizationConfigRuleStatus + var cv []types.OrganizationConfigRuleStatus if *v == nil { - cv = []*types.OrganizationConfigRuleStatus{} + cv = []types.OrganizationConfigRuleStatus{} } else { cv = *v } for _, value := range shape { - var col *types.OrganizationConfigRuleStatus - if err := awsAwsjson11_deserializeDocumentOrganizationConfigRuleStatus(&col, value); err != nil { + var col types.OrganizationConfigRuleStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrganizationConfigRuleStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17398,7 +17468,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePack(v **types.Organ if !ok { return fmt.Errorf("expected DeliveryS3Bucket to be of type string, got %T instead", value) } - sv.DeliveryS3Bucket = &jtv + sv.DeliveryS3Bucket = ptr.String(jtv) } case "DeliveryS3KeyPrefix": @@ -17407,7 +17477,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePack(v **types.Organ if !ok { return fmt.Errorf("expected DeliveryS3KeyPrefix to be of type string, got %T instead", value) } - sv.DeliveryS3KeyPrefix = &jtv + sv.DeliveryS3KeyPrefix = ptr.String(jtv) } case "ExcludedAccounts": @@ -17434,7 +17504,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePack(v **types.Organ if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.OrganizationConformancePackArn = &jtv + sv.OrganizationConformancePackArn = ptr.String(jtv) } case "OrganizationConformancePackName": @@ -17443,7 +17513,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePack(v **types.Organ if !ok { return fmt.Errorf("expected OrganizationConformancePackName to be of type string, got %T instead", value) } - sv.OrganizationConformancePackName = &jtv + sv.OrganizationConformancePackName = ptr.String(jtv) } default: @@ -17483,7 +17553,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackDetailedStatus(v if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "ConformancePackName": @@ -17492,7 +17562,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackDetailedStatus(v if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.ConformancePackName = &jtv + sv.ConformancePackName = ptr.String(jtv) } case "ErrorCode": @@ -17501,7 +17571,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackDetailedStatus(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -17510,7 +17580,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackDetailedStatus(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "LastUpdateTime": @@ -17544,7 +17614,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackDetailedStatus(v return nil } -func awsAwsjson11_deserializeDocumentOrganizationConformancePackDetailedStatuses(v *[]*types.OrganizationConformancePackDetailedStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrganizationConformancePackDetailedStatuses(v *[]types.OrganizationConformancePackDetailedStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17557,18 +17627,20 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackDetailedStatuses return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrganizationConformancePackDetailedStatus + var cv []types.OrganizationConformancePackDetailedStatus if *v == nil { - cv = []*types.OrganizationConformancePackDetailedStatus{} + cv = []types.OrganizationConformancePackDetailedStatus{} } else { cv = *v } for _, value := range shape { - var col *types.OrganizationConformancePackDetailedStatus - if err := awsAwsjson11_deserializeDocumentOrganizationConformancePackDetailedStatus(&col, value); err != nil { + var col types.OrganizationConformancePackDetailedStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrganizationConformancePackDetailedStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17576,7 +17648,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackDetailedStatuses return nil } -func awsAwsjson11_deserializeDocumentOrganizationConformancePacks(v *[]*types.OrganizationConformancePack, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrganizationConformancePacks(v *[]types.OrganizationConformancePack, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17589,18 +17661,20 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePacks(v *[]*types.Or return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrganizationConformancePack + var cv []types.OrganizationConformancePack if *v == nil { - cv = []*types.OrganizationConformancePack{} + cv = []types.OrganizationConformancePack{} } else { cv = *v } for _, value := range shape { - var col *types.OrganizationConformancePack - if err := awsAwsjson11_deserializeDocumentOrganizationConformancePack(&col, value); err != nil { + var col types.OrganizationConformancePack + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrganizationConformancePack(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17636,7 +17710,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackStatus(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -17645,7 +17719,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackStatus(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "LastUpdateTime": @@ -17667,7 +17741,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackStatus(v **types if !ok { return fmt.Errorf("expected OrganizationConformancePackName to be of type string, got %T instead", value) } - sv.OrganizationConformancePackName = &jtv + sv.OrganizationConformancePackName = ptr.String(jtv) } case "Status": @@ -17688,7 +17762,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackStatus(v **types return nil } -func awsAwsjson11_deserializeDocumentOrganizationConformancePackStatuses(v *[]*types.OrganizationConformancePackStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrganizationConformancePackStatuses(v *[]types.OrganizationConformancePackStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17701,18 +17775,20 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackStatuses(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrganizationConformancePackStatus + var cv []types.OrganizationConformancePackStatus if *v == nil { - cv = []*types.OrganizationConformancePackStatus{} + cv = []types.OrganizationConformancePackStatus{} } else { cv = *v } for _, value := range shape { - var col *types.OrganizationConformancePackStatus - if err := awsAwsjson11_deserializeDocumentOrganizationConformancePackStatus(&col, value); err != nil { + var col types.OrganizationConformancePackStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrganizationConformancePackStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17748,7 +17824,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConformancePackTemplateValidati if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17788,7 +17864,7 @@ func awsAwsjson11_deserializeDocumentOrganizationCustomRuleMetadata(v **types.Or if !ok { return fmt.Errorf("expected StringWithCharLimit256Min0 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "InputParameters": @@ -17797,7 +17873,7 @@ func awsAwsjson11_deserializeDocumentOrganizationCustomRuleMetadata(v **types.Or if !ok { return fmt.Errorf("expected StringWithCharLimit2048 to be of type string, got %T instead", value) } - sv.InputParameters = &jtv + sv.InputParameters = ptr.String(jtv) } case "LambdaFunctionArn": @@ -17806,7 +17882,7 @@ func awsAwsjson11_deserializeDocumentOrganizationCustomRuleMetadata(v **types.Or if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.LambdaFunctionArn = &jtv + sv.LambdaFunctionArn = ptr.String(jtv) } case "MaximumExecutionFrequency": @@ -17829,7 +17905,7 @@ func awsAwsjson11_deserializeDocumentOrganizationCustomRuleMetadata(v **types.Or if !ok { return fmt.Errorf("expected StringWithCharLimit768 to be of type string, got %T instead", value) } - sv.ResourceIdScope = &jtv + sv.ResourceIdScope = ptr.String(jtv) } case "ResourceTypesScope": @@ -17843,7 +17919,7 @@ func awsAwsjson11_deserializeDocumentOrganizationCustomRuleMetadata(v **types.Or if !ok { return fmt.Errorf("expected StringWithCharLimit128 to be of type string, got %T instead", value) } - sv.TagKeyScope = &jtv + sv.TagKeyScope = ptr.String(jtv) } case "TagValueScope": @@ -17852,7 +17928,7 @@ func awsAwsjson11_deserializeDocumentOrganizationCustomRuleMetadata(v **types.Or if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.TagValueScope = &jtv + sv.TagValueScope = ptr.String(jtv) } default: @@ -17892,7 +17968,7 @@ func awsAwsjson11_deserializeDocumentOrganizationManagedRuleMetadata(v **types.O if !ok { return fmt.Errorf("expected StringWithCharLimit256Min0 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "InputParameters": @@ -17901,7 +17977,7 @@ func awsAwsjson11_deserializeDocumentOrganizationManagedRuleMetadata(v **types.O if !ok { return fmt.Errorf("expected StringWithCharLimit2048 to be of type string, got %T instead", value) } - sv.InputParameters = &jtv + sv.InputParameters = ptr.String(jtv) } case "MaximumExecutionFrequency": @@ -17919,7 +17995,7 @@ func awsAwsjson11_deserializeDocumentOrganizationManagedRuleMetadata(v **types.O if !ok { return fmt.Errorf("expected StringWithCharLimit768 to be of type string, got %T instead", value) } - sv.ResourceIdScope = &jtv + sv.ResourceIdScope = ptr.String(jtv) } case "ResourceTypesScope": @@ -17933,7 +18009,7 @@ func awsAwsjson11_deserializeDocumentOrganizationManagedRuleMetadata(v **types.O if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.RuleIdentifier = &jtv + sv.RuleIdentifier = ptr.String(jtv) } case "TagKeyScope": @@ -17942,7 +18018,7 @@ func awsAwsjson11_deserializeDocumentOrganizationManagedRuleMetadata(v **types.O if !ok { return fmt.Errorf("expected StringWithCharLimit128 to be of type string, got %T instead", value) } - sv.TagKeyScope = &jtv + sv.TagKeyScope = ptr.String(jtv) } case "TagValueScope": @@ -17951,7 +18027,7 @@ func awsAwsjson11_deserializeDocumentOrganizationManagedRuleMetadata(v **types.O if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.TagValueScope = &jtv + sv.TagValueScope = ptr.String(jtv) } default: @@ -17991,7 +18067,7 @@ func awsAwsjson11_deserializeDocumentOversizedConfigurationItemException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18031,7 +18107,7 @@ func awsAwsjson11_deserializeDocumentPendingAggregationRequest(v **types.Pending if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.RequesterAccountId = &jtv + sv.RequesterAccountId = ptr.String(jtv) } case "RequesterAwsRegion": @@ -18040,7 +18116,7 @@ func awsAwsjson11_deserializeDocumentPendingAggregationRequest(v **types.Pending if !ok { return fmt.Errorf("expected AwsRegion to be of type string, got %T instead", value) } - sv.RequesterAwsRegion = &jtv + sv.RequesterAwsRegion = ptr.String(jtv) } default: @@ -18052,7 +18128,7 @@ func awsAwsjson11_deserializeDocumentPendingAggregationRequest(v **types.Pending return nil } -func awsAwsjson11_deserializeDocumentPendingAggregationRequestList(v *[]*types.PendingAggregationRequest, value interface{}) error { +func awsAwsjson11_deserializeDocumentPendingAggregationRequestList(v *[]types.PendingAggregationRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18065,18 +18141,20 @@ func awsAwsjson11_deserializeDocumentPendingAggregationRequestList(v *[]*types.P return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PendingAggregationRequest + var cv []types.PendingAggregationRequest if *v == nil { - cv = []*types.PendingAggregationRequest{} + cv = []types.PendingAggregationRequest{} } else { cv = *v } for _, value := range shape { - var col *types.PendingAggregationRequest - if err := awsAwsjson11_deserializeDocumentPendingAggregationRequest(&col, value); err != nil { + var col types.PendingAggregationRequest + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPendingAggregationRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18148,7 +18226,7 @@ func awsAwsjson11_deserializeDocumentRecordingGroup(v **types.RecordingGroup, va if !ok { return fmt.Errorf("expected AllSupported to be of type *bool, got %T instead", value) } - sv.AllSupported = &jtv + sv.AllSupported = jtv } case "includeGlobalResourceTypes": @@ -18157,7 +18235,7 @@ func awsAwsjson11_deserializeDocumentRecordingGroup(v **types.RecordingGroup, va if !ok { return fmt.Errorf("expected IncludeGlobalResourceTypes to be of type *bool, got %T instead", value) } - sv.IncludeGlobalResourceTypes = &jtv + sv.IncludeGlobalResourceTypes = jtv } case "resourceTypes": @@ -18174,7 +18252,7 @@ func awsAwsjson11_deserializeDocumentRecordingGroup(v **types.RecordingGroup, va return nil } -func awsAwsjson11_deserializeDocumentRelatedEventList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRelatedEventList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18187,21 +18265,21 @@ func awsAwsjson11_deserializeDocumentRelatedEventList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RelatedEvent to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -18238,7 +18316,7 @@ func awsAwsjson11_deserializeDocumentRelationship(v **types.Relationship, value if !ok { return fmt.Errorf("expected RelationshipName to be of type string, got %T instead", value) } - sv.RelationshipName = &jtv + sv.RelationshipName = ptr.String(jtv) } case "resourceId": @@ -18247,7 +18325,7 @@ func awsAwsjson11_deserializeDocumentRelationship(v **types.Relationship, value if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "resourceName": @@ -18256,7 +18334,7 @@ func awsAwsjson11_deserializeDocumentRelationship(v **types.Relationship, value if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } case "resourceType": @@ -18277,7 +18355,7 @@ func awsAwsjson11_deserializeDocumentRelationship(v **types.Relationship, value return nil } -func awsAwsjson11_deserializeDocumentRelationshipList(v *[]*types.Relationship, value interface{}) error { +func awsAwsjson11_deserializeDocumentRelationshipList(v *[]types.Relationship, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18290,18 +18368,20 @@ func awsAwsjson11_deserializeDocumentRelationshipList(v *[]*types.Relationship, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Relationship + var cv []types.Relationship if *v == nil { - cv = []*types.Relationship{} + cv = []types.Relationship{} } else { cv = *v } for _, value := range shape { - var col *types.Relationship - if err := awsAwsjson11_deserializeDocumentRelationship(&col, value); err != nil { + var col types.Relationship + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRelationship(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18337,7 +18417,7 @@ func awsAwsjson11_deserializeDocumentRemediationConfiguration(v **types.Remediat if !ok { return fmt.Errorf("expected StringWithCharLimit1024 to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Automatic": @@ -18346,7 +18426,7 @@ func awsAwsjson11_deserializeDocumentRemediationConfiguration(v **types.Remediat if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Automatic = &jtv + sv.Automatic = jtv } case "ConfigRuleName": @@ -18355,7 +18435,7 @@ func awsAwsjson11_deserializeDocumentRemediationConfiguration(v **types.Remediat if !ok { return fmt.Errorf("expected ConfigRuleName to be of type string, got %T instead", value) } - sv.ConfigRuleName = &jtv + sv.ConfigRuleName = ptr.String(jtv) } case "CreatedByService": @@ -18364,7 +18444,7 @@ func awsAwsjson11_deserializeDocumentRemediationConfiguration(v **types.Remediat if !ok { return fmt.Errorf("expected StringWithCharLimit1024 to be of type string, got %T instead", value) } - sv.CreatedByService = &jtv + sv.CreatedByService = ptr.String(jtv) } case "ExecutionControls": @@ -18396,7 +18476,7 @@ func awsAwsjson11_deserializeDocumentRemediationConfiguration(v **types.Remediat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "RetryAttemptSeconds": @@ -18409,7 +18489,7 @@ func awsAwsjson11_deserializeDocumentRemediationConfiguration(v **types.Remediat if err != nil { return err } - sv.RetryAttemptSeconds = &i64 + sv.RetryAttemptSeconds = ptr.Int64(i64) } case "TargetId": @@ -18418,7 +18498,7 @@ func awsAwsjson11_deserializeDocumentRemediationConfiguration(v **types.Remediat if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } case "TargetType": @@ -18436,7 +18516,7 @@ func awsAwsjson11_deserializeDocumentRemediationConfiguration(v **types.Remediat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TargetVersion = &jtv + sv.TargetVersion = ptr.String(jtv) } default: @@ -18448,7 +18528,7 @@ func awsAwsjson11_deserializeDocumentRemediationConfiguration(v **types.Remediat return nil } -func awsAwsjson11_deserializeDocumentRemediationConfigurations(v *[]*types.RemediationConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentRemediationConfigurations(v *[]types.RemediationConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18461,18 +18541,20 @@ func awsAwsjson11_deserializeDocumentRemediationConfigurations(v *[]*types.Remed return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RemediationConfiguration + var cv []types.RemediationConfiguration if *v == nil { - cv = []*types.RemediationConfiguration{} + cv = []types.RemediationConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.RemediationConfiguration - if err := awsAwsjson11_deserializeDocumentRemediationConfiguration(&col, value); err != nil { + var col types.RemediationConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRemediationConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18508,7 +18590,7 @@ func awsAwsjson11_deserializeDocumentRemediationException(v **types.RemediationE if !ok { return fmt.Errorf("expected ConfigRuleName to be of type string, got %T instead", value) } - sv.ConfigRuleName = &jtv + sv.ConfigRuleName = ptr.String(jtv) } case "ExpirationTime": @@ -18530,7 +18612,7 @@ func awsAwsjson11_deserializeDocumentRemediationException(v **types.RemediationE if !ok { return fmt.Errorf("expected StringWithCharLimit1024 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceId": @@ -18539,7 +18621,7 @@ func awsAwsjson11_deserializeDocumentRemediationException(v **types.RemediationE if !ok { return fmt.Errorf("expected StringWithCharLimit1024 to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -18548,7 +18630,7 @@ func awsAwsjson11_deserializeDocumentRemediationException(v **types.RemediationE if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -18588,7 +18670,7 @@ func awsAwsjson11_deserializeDocumentRemediationExceptionResourceKey(v **types.R if !ok { return fmt.Errorf("expected StringWithCharLimit1024 to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -18597,7 +18679,7 @@ func awsAwsjson11_deserializeDocumentRemediationExceptionResourceKey(v **types.R if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -18609,7 +18691,7 @@ func awsAwsjson11_deserializeDocumentRemediationExceptionResourceKey(v **types.R return nil } -func awsAwsjson11_deserializeDocumentRemediationExceptionResourceKeys(v *[]*types.RemediationExceptionResourceKey, value interface{}) error { +func awsAwsjson11_deserializeDocumentRemediationExceptionResourceKeys(v *[]types.RemediationExceptionResourceKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18622,18 +18704,20 @@ func awsAwsjson11_deserializeDocumentRemediationExceptionResourceKeys(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RemediationExceptionResourceKey + var cv []types.RemediationExceptionResourceKey if *v == nil { - cv = []*types.RemediationExceptionResourceKey{} + cv = []types.RemediationExceptionResourceKey{} } else { cv = *v } for _, value := range shape { - var col *types.RemediationExceptionResourceKey - if err := awsAwsjson11_deserializeDocumentRemediationExceptionResourceKey(&col, value); err != nil { + var col types.RemediationExceptionResourceKey + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRemediationExceptionResourceKey(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18641,7 +18725,7 @@ func awsAwsjson11_deserializeDocumentRemediationExceptionResourceKeys(v *[]*type return nil } -func awsAwsjson11_deserializeDocumentRemediationExceptions(v *[]*types.RemediationException, value interface{}) error { +func awsAwsjson11_deserializeDocumentRemediationExceptions(v *[]types.RemediationException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18654,18 +18738,20 @@ func awsAwsjson11_deserializeDocumentRemediationExceptions(v *[]*types.Remediati return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RemediationException + var cv []types.RemediationException if *v == nil { - cv = []*types.RemediationException{} + cv = []types.RemediationException{} } else { cv = *v } for _, value := range shape { - var col *types.RemediationException - if err := awsAwsjson11_deserializeDocumentRemediationException(&col, value); err != nil { + var col types.RemediationException + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRemediationException(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18749,7 +18835,7 @@ func awsAwsjson11_deserializeDocumentRemediationExecutionStatus(v **types.Remedi return nil } -func awsAwsjson11_deserializeDocumentRemediationExecutionStatuses(v *[]*types.RemediationExecutionStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentRemediationExecutionStatuses(v *[]types.RemediationExecutionStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18762,18 +18848,20 @@ func awsAwsjson11_deserializeDocumentRemediationExecutionStatuses(v *[]*types.Re return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RemediationExecutionStatus + var cv []types.RemediationExecutionStatus if *v == nil { - cv = []*types.RemediationExecutionStatus{} + cv = []types.RemediationExecutionStatus{} } else { cv = *v } for _, value := range shape { - var col *types.RemediationExecutionStatus - if err := awsAwsjson11_deserializeDocumentRemediationExecutionStatus(&col, value); err != nil { + var col types.RemediationExecutionStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRemediationExecutionStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18809,7 +18897,7 @@ func awsAwsjson11_deserializeDocumentRemediationExecutionStep(v **types.Remediat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "Name": @@ -18818,7 +18906,7 @@ func awsAwsjson11_deserializeDocumentRemediationExecutionStep(v **types.Remediat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "StartTime": @@ -18865,7 +18953,7 @@ func awsAwsjson11_deserializeDocumentRemediationExecutionStep(v **types.Remediat return nil } -func awsAwsjson11_deserializeDocumentRemediationExecutionSteps(v *[]*types.RemediationExecutionStep, value interface{}) error { +func awsAwsjson11_deserializeDocumentRemediationExecutionSteps(v *[]types.RemediationExecutionStep, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18878,18 +18966,20 @@ func awsAwsjson11_deserializeDocumentRemediationExecutionSteps(v *[]*types.Remed return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RemediationExecutionStep + var cv []types.RemediationExecutionStep if *v == nil { - cv = []*types.RemediationExecutionStep{} + cv = []types.RemediationExecutionStep{} } else { cv = *v } for _, value := range shape { - var col *types.RemediationExecutionStep - if err := awsAwsjson11_deserializeDocumentRemediationExecutionStep(&col, value); err != nil { + var col types.RemediationExecutionStep + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRemediationExecutionStep(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18925,7 +19015,7 @@ func awsAwsjson11_deserializeDocumentRemediationInProgressException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18937,7 +19027,7 @@ func awsAwsjson11_deserializeDocumentRemediationInProgressException(v **types.Re return nil } -func awsAwsjson11_deserializeDocumentRemediationParameters(v *map[string]*types.RemediationParameterValue, value interface{}) error { +func awsAwsjson11_deserializeDocumentRemediationParameters(v *map[string]types.RemediationParameterValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18950,18 +19040,21 @@ func awsAwsjson11_deserializeDocumentRemediationParameters(v *map[string]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.RemediationParameterValue + var mv map[string]types.RemediationParameterValue if *v == nil { - mv = map[string]*types.RemediationParameterValue{} + mv = map[string]types.RemediationParameterValue{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.RemediationParameterValue - if err := awsAwsjson11_deserializeDocumentRemediationParameterValue(&parsedVal, value); err != nil { + var parsedVal types.RemediationParameterValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentRemediationParameterValue(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -19042,7 +19135,7 @@ func awsAwsjson11_deserializeDocumentResourceCount(v **types.ResourceCount, valu if err != nil { return err } - sv.Count = &i64 + sv.Count = i64 } case "resourceType": @@ -19063,7 +19156,7 @@ func awsAwsjson11_deserializeDocumentResourceCount(v **types.ResourceCount, valu return nil } -func awsAwsjson11_deserializeDocumentResourceCounts(v *[]*types.ResourceCount, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceCounts(v *[]types.ResourceCount, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19076,18 +19169,20 @@ func awsAwsjson11_deserializeDocumentResourceCounts(v *[]*types.ResourceCount, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceCount + var cv []types.ResourceCount if *v == nil { - cv = []*types.ResourceCount{} + cv = []types.ResourceCount{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceCount - if err := awsAwsjson11_deserializeDocumentResourceCount(&col, value); err != nil { + var col types.ResourceCount + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceCount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19136,7 +19231,7 @@ func awsAwsjson11_deserializeDocumentResourceIdentifier(v **types.ResourceIdenti if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "resourceName": @@ -19145,7 +19240,7 @@ func awsAwsjson11_deserializeDocumentResourceIdentifier(v **types.ResourceIdenti if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } case "resourceType": @@ -19166,7 +19261,7 @@ func awsAwsjson11_deserializeDocumentResourceIdentifier(v **types.ResourceIdenti return nil } -func awsAwsjson11_deserializeDocumentResourceIdentifierList(v *[]*types.ResourceIdentifier, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceIdentifierList(v *[]types.ResourceIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19179,18 +19274,20 @@ func awsAwsjson11_deserializeDocumentResourceIdentifierList(v *[]*types.Resource return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceIdentifier + var cv []types.ResourceIdentifier if *v == nil { - cv = []*types.ResourceIdentifier{} + cv = []types.ResourceIdentifier{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceIdentifier - if err := awsAwsjson11_deserializeDocumentResourceIdentifier(&col, value); err != nil { + var col types.ResourceIdentifier + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceIdentifier(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19226,7 +19323,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19266,7 +19363,7 @@ func awsAwsjson11_deserializeDocumentResourceKey(v **types.ResourceKey, value in if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "resourceType": @@ -19287,7 +19384,7 @@ func awsAwsjson11_deserializeDocumentResourceKey(v **types.ResourceKey, value in return nil } -func awsAwsjson11_deserializeDocumentResourceKeys(v *[]*types.ResourceKey, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceKeys(v *[]types.ResourceKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19300,18 +19397,20 @@ func awsAwsjson11_deserializeDocumentResourceKeys(v *[]*types.ResourceKey, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceKey + var cv []types.ResourceKey if *v == nil { - cv = []*types.ResourceKey{} + cv = []types.ResourceKey{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceKey - if err := awsAwsjson11_deserializeDocumentResourceKey(&col, value); err != nil { + var col types.ResourceKey + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceKey(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19347,7 +19446,7 @@ func awsAwsjson11_deserializeDocumentResourceNotDiscoveredException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19387,7 +19486,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19435,7 +19534,7 @@ func awsAwsjson11_deserializeDocumentResourceTypeList(v *[]types.ResourceType, v return nil } -func awsAwsjson11_deserializeDocumentResourceTypesScope(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceTypesScope(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19448,21 +19547,21 @@ func awsAwsjson11_deserializeDocumentResourceTypesScope(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -19511,7 +19610,7 @@ func awsAwsjson11_deserializeDocumentResourceValue(v **types.ResourceValue, valu return nil } -func awsAwsjson11_deserializeDocumentResults(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentResults(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19524,21 +19623,21 @@ func awsAwsjson11_deserializeDocumentResults(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -19575,7 +19674,7 @@ func awsAwsjson11_deserializeDocumentRetentionConfiguration(v **types.RetentionC if !ok { return fmt.Errorf("expected RetentionConfigurationName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RetentionPeriodInDays": @@ -19588,7 +19687,7 @@ func awsAwsjson11_deserializeDocumentRetentionConfiguration(v **types.RetentionC if err != nil { return err } - sv.RetentionPeriodInDays = ptr.Int32(int32(i64)) + sv.RetentionPeriodInDays = int32(i64) } default: @@ -19600,7 +19699,7 @@ func awsAwsjson11_deserializeDocumentRetentionConfiguration(v **types.RetentionC return nil } -func awsAwsjson11_deserializeDocumentRetentionConfigurationList(v *[]*types.RetentionConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentRetentionConfigurationList(v *[]types.RetentionConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19613,18 +19712,20 @@ func awsAwsjson11_deserializeDocumentRetentionConfigurationList(v *[]*types.Rete return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RetentionConfiguration + var cv []types.RetentionConfiguration if *v == nil { - cv = []*types.RetentionConfiguration{} + cv = []types.RetentionConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.RetentionConfiguration - if err := awsAwsjson11_deserializeDocumentRetentionConfiguration(&col, value); err != nil { + var col types.RetentionConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRetentionConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19660,7 +19761,7 @@ func awsAwsjson11_deserializeDocumentScope(v **types.Scope, value interface{}) e if !ok { return fmt.Errorf("expected BaseResourceId to be of type string, got %T instead", value) } - sv.ComplianceResourceId = &jtv + sv.ComplianceResourceId = ptr.String(jtv) } case "ComplianceResourceTypes": @@ -19674,7 +19775,7 @@ func awsAwsjson11_deserializeDocumentScope(v **types.Scope, value interface{}) e if !ok { return fmt.Errorf("expected StringWithCharLimit128 to be of type string, got %T instead", value) } - sv.TagKey = &jtv + sv.TagKey = ptr.String(jtv) } case "TagValue": @@ -19683,7 +19784,7 @@ func awsAwsjson11_deserializeDocumentScope(v **types.Scope, value interface{}) e if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.TagValue = &jtv + sv.TagValue = ptr.String(jtv) } default: @@ -19737,7 +19838,7 @@ func awsAwsjson11_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.SourceIdentifier = &jtv + sv.SourceIdentifier = ptr.String(jtv) } default: @@ -19807,7 +19908,7 @@ func awsAwsjson11_deserializeDocumentSourceDetail(v **types.SourceDetail, value return nil } -func awsAwsjson11_deserializeDocumentSourceDetails(v *[]*types.SourceDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentSourceDetails(v *[]types.SourceDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19820,18 +19921,20 @@ func awsAwsjson11_deserializeDocumentSourceDetails(v *[]*types.SourceDetail, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SourceDetail + var cv []types.SourceDetail if *v == nil { - cv = []*types.SourceDetail{} + cv = []types.SourceDetail{} } else { cv = *v } for _, value := range shape { - var col *types.SourceDetail - if err := awsAwsjson11_deserializeDocumentSourceDetail(&col, value); err != nil { + var col types.SourceDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSourceDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19896,7 +19999,7 @@ func awsAwsjson11_deserializeDocumentSsmControls(v **types.SsmControls, value in return nil } -func awsAwsjson11_deserializeDocumentStaticParameterValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStaticParameterValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19909,21 +20012,21 @@ func awsAwsjson11_deserializeDocumentStaticParameterValues(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -19968,7 +20071,7 @@ func awsAwsjson11_deserializeDocumentStaticValue(v **types.StaticValue, value in return nil } -func awsAwsjson11_deserializeDocumentSupplementaryConfiguration(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSupplementaryConfiguration(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19981,21 +20084,21 @@ func awsAwsjson11_deserializeDocumentSupplementaryConfiguration(v *map[string]*s return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SupplementaryConfigurationValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -20032,7 +20135,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -20041,7 +20144,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -20053,7 +20156,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20066,18 +20169,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20085,7 +20190,7 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20098,21 +20203,21 @@ func awsAwsjson11_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -20149,7 +20254,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20161,7 +20266,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE return nil } -func awsAwsjson11_deserializeDocumentUnprocessedResourceIdentifierList(v *[]*types.AggregateResourceIdentifier, value interface{}) error { +func awsAwsjson11_deserializeDocumentUnprocessedResourceIdentifierList(v *[]types.AggregateResourceIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20174,18 +20279,20 @@ func awsAwsjson11_deserializeDocumentUnprocessedResourceIdentifierList(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AggregateResourceIdentifier + var cv []types.AggregateResourceIdentifier if *v == nil { - cv = []*types.AggregateResourceIdentifier{} + cv = []types.AggregateResourceIdentifier{} } else { cv = *v } for _, value := range shape { - var col *types.AggregateResourceIdentifier - if err := awsAwsjson11_deserializeDocumentAggregateResourceIdentifier(&col, value); err != nil { + var col types.AggregateResourceIdentifier + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAggregateResourceIdentifier(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20221,7 +20328,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20782,7 +20889,7 @@ func awsAwsjson11_deserializeOpDocumentDeliverConfigSnapshotOutput(v **DeliverCo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConfigSnapshotId = &jtv + sv.ConfigSnapshotId = ptr.String(jtv) } default: @@ -20827,7 +20934,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAggregateComplianceByConfigRulesO if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20872,7 +20979,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAggregationAuthorizationsOutput(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20917,7 +21024,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeComplianceByConfigRuleOutput(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20962,7 +21069,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeComplianceByResourceOutput(v **De if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -21007,7 +21114,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeConfigRuleEvaluationStatusOutput( if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -21052,7 +21159,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeConfigRulesOutput(v **DescribeCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -21097,7 +21204,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeConfigurationAggregatorSourcesSta if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -21142,7 +21249,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeConfigurationAggregatorsOutput(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -21254,7 +21361,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeConformancePackComplianceOutput(v if !ok { return fmt.Errorf("expected ConformancePackName to be of type string, got %T instead", value) } - sv.ConformancePackName = &jtv + sv.ConformancePackName = ptr.String(jtv) } case "ConformancePackRuleComplianceList": @@ -21268,7 +21375,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeConformancePackComplianceOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -21313,7 +21420,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeConformancePacksOutput(v **Descri if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -21358,7 +21465,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeConformancePackStatusOutput(v **D if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -21470,7 +21577,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOrganizationConfigRulesOutput(v * if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "OrganizationConfigRules": @@ -21515,7 +21622,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOrganizationConfigRuleStatusesOut if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "OrganizationConfigRuleStatuses": @@ -21560,7 +21667,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOrganizationConformancePacksOutpu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "OrganizationConformancePacks": @@ -21605,7 +21712,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOrganizationConformancePackStatus if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "OrganizationConformancePackStatuses": @@ -21650,7 +21757,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePendingAggregationRequestsOutput( if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PendingAggregationRequests": @@ -21731,7 +21838,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRemediationExceptionsOutput(v **D if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RemediationExceptions": @@ -21776,7 +21883,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRemediationExecutionStatusOutput( if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RemediationExecutionStatuses": @@ -21821,7 +21928,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRetentionConfigurationsOutput(v * if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RetentionConfigurations": @@ -21871,7 +21978,7 @@ func awsAwsjson11_deserializeOpDocumentGetAggregateComplianceDetailsByConfigRule if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -21916,7 +22023,7 @@ func awsAwsjson11_deserializeOpDocumentGetAggregateConfigRuleComplianceSummaryOu if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.GroupByKey = &jtv + sv.GroupByKey = ptr.String(jtv) } case "NextToken": @@ -21925,7 +22032,7 @@ func awsAwsjson11_deserializeOpDocumentGetAggregateConfigRuleComplianceSummaryOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -21965,7 +22072,7 @@ func awsAwsjson11_deserializeOpDocumentGetAggregateDiscoveredResourceCountsOutpu if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.GroupByKey = &jtv + sv.GroupByKey = ptr.String(jtv) } case "GroupedResourceCounts": @@ -21979,7 +22086,7 @@ func awsAwsjson11_deserializeOpDocumentGetAggregateDiscoveredResourceCountsOutpu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TotalDiscoveredResources": @@ -21992,7 +22099,7 @@ func awsAwsjson11_deserializeOpDocumentGetAggregateDiscoveredResourceCountsOutpu if err != nil { return err } - sv.TotalDiscoveredResources = &i64 + sv.TotalDiscoveredResources = i64 } default: @@ -22073,7 +22180,7 @@ func awsAwsjson11_deserializeOpDocumentGetComplianceDetailsByConfigRuleOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -22118,7 +22225,7 @@ func awsAwsjson11_deserializeOpDocumentGetComplianceDetailsByResourceOutput(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -22230,7 +22337,7 @@ func awsAwsjson11_deserializeOpDocumentGetConformancePackComplianceDetailsOutput if !ok { return fmt.Errorf("expected ConformancePackName to be of type string, got %T instead", value) } - sv.ConformancePackName = &jtv + sv.ConformancePackName = ptr.String(jtv) } case "ConformancePackRuleEvaluationResults": @@ -22244,7 +22351,7 @@ func awsAwsjson11_deserializeOpDocumentGetConformancePackComplianceDetailsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -22289,7 +22396,7 @@ func awsAwsjson11_deserializeOpDocumentGetConformancePackComplianceSummaryOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -22329,7 +22436,7 @@ func awsAwsjson11_deserializeOpDocumentGetDiscoveredResourceCountsOutput(v **Get if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "resourceCounts": @@ -22347,7 +22454,7 @@ func awsAwsjson11_deserializeOpDocumentGetDiscoveredResourceCountsOutput(v **Get if err != nil { return err } - sv.TotalDiscoveredResources = &i64 + sv.TotalDiscoveredResources = i64 } default: @@ -22387,7 +22494,7 @@ func awsAwsjson11_deserializeOpDocumentGetOrganizationConfigRuleDetailedStatusOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "OrganizationConfigRuleDetailedStatus": @@ -22432,7 +22539,7 @@ func awsAwsjson11_deserializeOpDocumentGetOrganizationConformancePackDetailedSta if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "OrganizationConformancePackDetailedStatuses": @@ -22482,7 +22589,7 @@ func awsAwsjson11_deserializeOpDocumentGetResourceConfigHistoryOutput(v **GetRes if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -22522,7 +22629,7 @@ func awsAwsjson11_deserializeOpDocumentListAggregateDiscoveredResourcesOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResourceIdentifiers": @@ -22567,7 +22674,7 @@ func awsAwsjson11_deserializeOpDocumentListDiscoveredResourcesOutput(v **ListDis if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "resourceIdentifiers": @@ -22612,7 +22719,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -22791,7 +22898,7 @@ func awsAwsjson11_deserializeOpDocumentPutConformancePackOutput(v **PutConforman if !ok { return fmt.Errorf("expected ConformancePackArn to be of type string, got %T instead", value) } - sv.ConformancePackArn = &jtv + sv.ConformancePackArn = ptr.String(jtv) } default: @@ -22898,7 +23005,7 @@ func awsAwsjson11_deserializeOpDocumentPutOrganizationConfigRuleOutput(v **PutOr if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.OrganizationConfigRuleArn = &jtv + sv.OrganizationConfigRuleArn = ptr.String(jtv) } default: @@ -22938,7 +23045,7 @@ func awsAwsjson11_deserializeOpDocumentPutOrganizationConformancePackOutput(v ** if !ok { return fmt.Errorf("expected StringWithCharLimit256 to be of type string, got %T instead", value) } - sv.OrganizationConformancePackArn = &jtv + sv.OrganizationConformancePackArn = ptr.String(jtv) } default: @@ -23117,7 +23224,7 @@ func awsAwsjson11_deserializeOpDocumentSelectAggregateResourceConfigOutput(v **S if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "QueryInfo": @@ -23167,7 +23274,7 @@ func awsAwsjson11_deserializeOpDocumentSelectResourceConfigOutput(v **SelectReso if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "QueryInfo": @@ -23284,7 +23391,7 @@ func awsAwsjson11_deserializeOpDocumentStartRemediationExecutionOutput(v **Start if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureMessage = &jtv + sv.FailureMessage = ptr.String(jtv) } default: diff --git a/service/configservice/go.mod b/service/configservice/go.mod index 440b174baee..85cba8da89b 100644 --- a/service/configservice/go.mod +++ b/service/configservice/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/configservice go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/configservice/serializers.go b/service/configservice/serializers.go index 49cbd07b7bc..c5d250da7b9 100644 --- a/service/configservice/serializers.go +++ b/service/configservice/serializers.go @@ -3652,9 +3652,9 @@ func awsAwsjson11_serializeDocumentAccountAggregationSource(v *types.AccountAggr } } - if v.AllAwsRegions != nil { + if v.AllAwsRegions { ok := object.Key("AllAwsRegions") - ok.Boolean(*v.AllAwsRegions) + ok.Boolean(v.AllAwsRegions) } if v.AwsRegions != nil { @@ -3667,32 +3667,24 @@ func awsAwsjson11_serializeDocumentAccountAggregationSource(v *types.AccountAggr return nil } -func awsAwsjson11_serializeDocumentAccountAggregationSourceAccountList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAccountAggregationSourceAccountList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentAccountAggregationSourceList(v []*types.AccountAggregationSource, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAccountAggregationSourceList(v []types.AccountAggregationSource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAccountAggregationSource(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAccountAggregationSource(&v[i], av); err != nil { return err } } @@ -3742,32 +3734,24 @@ func awsAwsjson11_serializeDocumentAggregateResourceIdentifier(v *types.Aggregat return nil } -func awsAwsjson11_serializeDocumentAggregatorRegionList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAggregatorRegionList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentComplianceResourceTypes(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentComplianceResourceTypes(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3888,17 +3872,13 @@ func awsAwsjson11_serializeDocumentConfigRuleComplianceSummaryFilters(v *types.C return nil } -func awsAwsjson11_serializeDocumentConfigRuleNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConfigRuleNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3915,17 +3895,13 @@ func awsAwsjson11_serializeDocumentConfigSnapshotDeliveryProperties(v *types.Con return nil } -func awsAwsjson11_serializeDocumentConfigurationAggregatorNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConfigurationAggregatorNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3954,17 +3930,13 @@ func awsAwsjson11_serializeDocumentConfigurationRecorder(v *types.ConfigurationR return nil } -func awsAwsjson11_serializeDocumentConfigurationRecorderNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConfigurationRecorderNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3988,32 +3960,24 @@ func awsAwsjson11_serializeDocumentConformancePackComplianceFilters(v *types.Con return nil } -func awsAwsjson11_serializeDocumentConformancePackComplianceResourceIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConformancePackComplianceResourceIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentConformancePackConfigRuleNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConformancePackConfigRuleNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4066,49 +4030,37 @@ func awsAwsjson11_serializeDocumentConformancePackInputParameter(v *types.Confor return nil } -func awsAwsjson11_serializeDocumentConformancePackInputParameters(v []*types.ConformancePackInputParameter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConformancePackInputParameters(v []types.ConformancePackInputParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentConformancePackInputParameter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentConformancePackInputParameter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentConformancePackNamesList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConformancePackNamesList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentConformancePackNamesToSummarizeList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConformancePackNamesToSummarizeList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4147,17 +4099,13 @@ func awsAwsjson11_serializeDocumentDeliveryChannel(v *types.DeliveryChannel, val return nil } -func awsAwsjson11_serializeDocumentDeliveryChannelNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDeliveryChannelNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4194,34 +4142,26 @@ func awsAwsjson11_serializeDocumentEvaluation(v *types.Evaluation, value smithyj return nil } -func awsAwsjson11_serializeDocumentEvaluations(v []*types.Evaluation, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEvaluations(v []types.Evaluation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEvaluation(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEvaluation(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentExcludedAccounts(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExcludedAccounts(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4244,9 +4184,9 @@ func awsAwsjson11_serializeDocumentOrganizationAggregationSource(v *types.Organi object := value.Object() defer object.Close() - if v.AllAwsRegions != nil { + if v.AllAwsRegions { ok := object.Key("AllAwsRegions") - ok.Boolean(*v.AllAwsRegions) + ok.Boolean(v.AllAwsRegions) } if v.AwsRegions != nil { @@ -4264,17 +4204,13 @@ func awsAwsjson11_serializeDocumentOrganizationAggregationSource(v *types.Organi return nil } -func awsAwsjson11_serializeDocumentOrganizationConfigRuleNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOrganizationConfigRuleNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4290,17 +4226,13 @@ func awsAwsjson11_serializeDocumentOrganizationConfigRuleTriggerTypes(v []types. return nil } -func awsAwsjson11_serializeDocumentOrganizationConformancePackNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOrganizationConformancePackNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4431,14 +4363,14 @@ func awsAwsjson11_serializeDocumentRecordingGroup(v *types.RecordingGroup, value object := value.Object() defer object.Close() - if v.AllSupported != nil { + if v.AllSupported { ok := object.Key("allSupported") - ok.Boolean(*v.AllSupported) + ok.Boolean(v.AllSupported) } - if v.IncludeGlobalResourceTypes != nil { + if v.IncludeGlobalResourceTypes { ok := object.Key("includeGlobalResourceTypes") - ok.Boolean(*v.IncludeGlobalResourceTypes) + ok.Boolean(v.IncludeGlobalResourceTypes) } if v.ResourceTypes != nil { @@ -4451,17 +4383,13 @@ func awsAwsjson11_serializeDocumentRecordingGroup(v *types.RecordingGroup, value return nil } -func awsAwsjson11_serializeDocumentReevaluateConfigRuleNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentReevaluateConfigRuleNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4475,9 +4403,9 @@ func awsAwsjson11_serializeDocumentRemediationConfiguration(v *types.Remediation ok.String(*v.Arn) } - if v.Automatic != nil { + if v.Automatic { ok := object.Key("Automatic") - ok.Boolean(*v.Automatic) + ok.Boolean(v.Automatic) } if v.ConfigRuleName != nil { @@ -4537,17 +4465,13 @@ func awsAwsjson11_serializeDocumentRemediationConfiguration(v *types.Remediation return nil } -func awsAwsjson11_serializeDocumentRemediationConfigurations(v []*types.RemediationConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRemediationConfigurations(v []types.RemediationConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRemediationConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRemediationConfiguration(&v[i], av); err != nil { return err } } @@ -4571,34 +4495,27 @@ func awsAwsjson11_serializeDocumentRemediationExceptionResourceKey(v *types.Reme return nil } -func awsAwsjson11_serializeDocumentRemediationExceptionResourceKeys(v []*types.RemediationExceptionResourceKey, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRemediationExceptionResourceKeys(v []types.RemediationExceptionResourceKey, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRemediationExceptionResourceKey(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRemediationExceptionResourceKey(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentRemediationParameters(v map[string]*types.RemediationParameterValue, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRemediationParameters(v map[string]types.RemediationParameterValue, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRemediationParameterValue(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson11_serializeDocumentRemediationParameterValue(&mapVar, om); err != nil { return err } } @@ -4675,34 +4592,26 @@ func awsAwsjson11_serializeDocumentResourceFilters(v *types.ResourceFilters, val return nil } -func awsAwsjson11_serializeDocumentResourceIdentifiersList(v []*types.AggregateResourceIdentifier, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceIdentifiersList(v []types.AggregateResourceIdentifier, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAggregateResourceIdentifier(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAggregateResourceIdentifier(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentResourceIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4724,17 +4633,13 @@ func awsAwsjson11_serializeDocumentResourceKey(v *types.ResourceKey, value smith return nil } -func awsAwsjson11_serializeDocumentResourceKeys(v []*types.ResourceKey, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceKeys(v []types.ResourceKey, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentResourceKey(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentResourceKey(&v[i], av); err != nil { return err } } @@ -4752,32 +4657,24 @@ func awsAwsjson11_serializeDocumentResourceTypeList(v []types.ResourceType, valu return nil } -func awsAwsjson11_serializeDocumentResourceTypes(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceTypes(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentResourceTypesScope(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceTypesScope(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4794,17 +4691,13 @@ func awsAwsjson11_serializeDocumentResourceValue(v *types.ResourceValue, value s return nil } -func awsAwsjson11_serializeDocumentRetentionConfigurationNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRetentionConfigurationNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4884,17 +4777,13 @@ func awsAwsjson11_serializeDocumentSourceDetail(v *types.SourceDetail, value smi return nil } -func awsAwsjson11_serializeDocumentSourceDetails(v []*types.SourceDetail, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSourceDetails(v []types.SourceDetail, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSourceDetail(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSourceDetail(&v[i], av); err != nil { return err } } @@ -4918,17 +4807,13 @@ func awsAwsjson11_serializeDocumentSsmControls(v *types.SsmControls, value smith return nil } -func awsAwsjson11_serializeDocumentStaticParameterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStaticParameterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4981,64 +4866,48 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentTagsList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagsList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -5301,9 +5170,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAggregateComplianceByConfigRulesInp } } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5318,9 +5187,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAggregationAuthorizationsInput(v *D object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5368,9 +5237,9 @@ func awsAwsjson11_serializeOpDocumentDescribeComplianceByResourceInput(v *Descri } } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5402,9 +5271,9 @@ func awsAwsjson11_serializeOpDocumentDescribeConfigRuleEvaluationStatusInput(v * } } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5445,9 +5314,9 @@ func awsAwsjson11_serializeOpDocumentDescribeConfigurationAggregatorsInput(v *De } } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5467,9 +5336,9 @@ func awsAwsjson11_serializeOpDocumentDescribeConfigurationAggregatorSourcesStatu ok.String(*v.ConfigurationAggregatorName) } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5531,9 +5400,9 @@ func awsAwsjson11_serializeOpDocumentDescribeConformancePackComplianceInput(v *D } } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5555,9 +5424,9 @@ func awsAwsjson11_serializeOpDocumentDescribeConformancePacksInput(v *DescribeCo } } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5579,9 +5448,9 @@ func awsAwsjson11_serializeOpDocumentDescribeConformancePackStatusInput(v *Descr } } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5624,9 +5493,9 @@ func awsAwsjson11_serializeOpDocumentDescribeOrganizationConfigRulesInput(v *Des object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5648,9 +5517,9 @@ func awsAwsjson11_serializeOpDocumentDescribeOrganizationConfigRuleStatusesInput object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5672,9 +5541,9 @@ func awsAwsjson11_serializeOpDocumentDescribeOrganizationConformancePacksInput(v object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5696,9 +5565,9 @@ func awsAwsjson11_serializeOpDocumentDescribeOrganizationConformancePackStatuses object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5720,9 +5589,9 @@ func awsAwsjson11_serializeOpDocumentDescribePendingAggregationRequestsInput(v * object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5756,9 +5625,9 @@ func awsAwsjson11_serializeOpDocumentDescribeRemediationExceptionsInput(v *Descr ok.String(*v.ConfigRuleName) } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5785,9 +5654,9 @@ func awsAwsjson11_serializeOpDocumentDescribeRemediationExecutionStatusInput(v * ok.String(*v.ConfigRuleName) } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5853,9 +5722,9 @@ func awsAwsjson11_serializeOpDocumentGetAggregateComplianceDetailsByConfigRuleIn ok.String(*v.ConfigurationAggregatorName) } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5887,9 +5756,9 @@ func awsAwsjson11_serializeOpDocumentGetAggregateConfigRuleComplianceSummaryInpu ok.String(string(v.GroupByKey)) } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5921,9 +5790,9 @@ func awsAwsjson11_serializeOpDocumentGetAggregateDiscoveredResourceCountsInput(v ok.String(string(v.GroupByKey)) } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -5969,9 +5838,9 @@ func awsAwsjson11_serializeOpDocumentGetComplianceDetailsByConfigRuleInput(v *Ge ok.String(*v.ConfigRuleName) } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -6048,9 +5917,9 @@ func awsAwsjson11_serializeOpDocumentGetConformancePackComplianceDetailsInput(v } } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -6072,9 +5941,9 @@ func awsAwsjson11_serializeOpDocumentGetConformancePackComplianceSummaryInput(v } } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -6089,9 +5958,9 @@ func awsAwsjson11_serializeOpDocumentGetDiscoveredResourceCountsInput(v *GetDisc object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -6120,9 +5989,9 @@ func awsAwsjson11_serializeOpDocumentGetOrganizationConfigRuleDetailedStatusInpu } } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -6149,9 +6018,9 @@ func awsAwsjson11_serializeOpDocumentGetOrganizationConformancePackDetailedStatu } } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -6186,9 +6055,9 @@ func awsAwsjson11_serializeOpDocumentGetResourceConfigHistoryInput(v *GetResourc ok.Double(smithytime.FormatEpochSeconds(*v.LaterTime)) } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -6225,9 +6094,9 @@ func awsAwsjson11_serializeOpDocumentListAggregateDiscoveredResourcesInput(v *Li } } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -6247,14 +6116,14 @@ func awsAwsjson11_serializeOpDocumentListDiscoveredResourcesInput(v *ListDiscove object := value.Object() defer object.Close() - if v.IncludeDeletedResources != nil { + if v.IncludeDeletedResources { ok := object.Key("includeDeletedResources") - ok.Boolean(*v.IncludeDeletedResources) + ok.Boolean(v.IncludeDeletedResources) } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -6286,9 +6155,9 @@ func awsAwsjson11_serializeOpDocumentListTagsForResourceInput(v *ListTagsForReso object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { @@ -6465,9 +6334,9 @@ func awsAwsjson11_serializeOpDocumentPutEvaluationsInput(v *PutEvaluationsInput, ok.String(*v.ResultToken) } - if v.TestMode != nil { + if v.TestMode { ok := object.Key("TestMode") - ok.Boolean(*v.TestMode) + ok.Boolean(v.TestMode) } return nil @@ -6638,9 +6507,9 @@ func awsAwsjson11_serializeOpDocumentPutRetentionConfigurationInput(v *PutRetent object := value.Object() defer object.Close() - if v.RetentionPeriodInDays != nil { + if v.RetentionPeriodInDays != 0 { ok := object.Key("RetentionPeriodInDays") - ok.Integer(*v.RetentionPeriodInDays) + ok.Integer(v.RetentionPeriodInDays) } return nil @@ -6660,14 +6529,14 @@ func awsAwsjson11_serializeOpDocumentSelectAggregateResourceConfigInput(v *Selec ok.String(*v.Expression) } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -6687,9 +6556,9 @@ func awsAwsjson11_serializeOpDocumentSelectResourceConfigInput(v *SelectResource ok.String(*v.Expression) } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextToken != nil { diff --git a/service/configservice/types/types.go b/service/configservice/types/types.go index cef03c8c89d..fbeecd05b4d 100644 --- a/service/configservice/types/types.go +++ b/service/configservice/types/types.go @@ -12,13 +12,13 @@ type AccountAggregationSource struct { // The 12-digit account ID of the account being aggregated. // // This member is required. - AccountIds []*string + AccountIds []string // If true, aggregate existing AWS Config regions and future regions. - AllAwsRegions *bool + AllAwsRegions bool // The source regions being aggregated. - AwsRegions []*string + AwsRegions []string } // Indicates whether an AWS Config rule is compliant based on account ID, region, @@ -224,7 +224,7 @@ type BaseConfigurationItem struct { // Configuration attributes that AWS Config returns for certain resource types to // supplement the information returned for the configuration parameter. - SupplementaryConfiguration map[string]*string + SupplementaryConfiguration map[string]string // The version number of the resource configuration. Version *string @@ -284,11 +284,11 @@ type ComplianceByResource struct { type ComplianceContributorCount struct { // Indicates whether the maximum count is reached. - CapExceeded *bool + CapExceeded bool // The number of AWS resources or AWS Config rules responsible for the current // compliance of the item. - CappedCount *int32 + CappedCount int32 } // The number of AWS Config rules or AWS resources that are compliant and @@ -476,7 +476,7 @@ type ConfigRuleEvaluationStatus struct { // // * false - AWS Config has not once finished evaluating your // AWS resources against the rule. - FirstEvaluationStarted *bool + FirstEvaluationStarted bool // The time that you last turned off the AWS Config rule. LastDeactivatedTime *time.Time @@ -574,7 +574,7 @@ type ConfigStreamDeliveryInfo struct { type ConfigurationAggregator struct { // Provides a list of source accounts and regions to be aggregated. - AccountAggregationSources []*AccountAggregationSource + AccountAggregationSources []AccountAggregationSource // The Amazon Resource Name (ARN) of the aggregator. ConfigurationAggregatorArn *string @@ -656,10 +656,10 @@ type ConfigurationItem struct { // LookupEvents API // (https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_LookupEvents.html) // in the AWS CloudTrail API Reference to retrieve the events for the resource. - RelatedEvents []*string + RelatedEvents []string // A list of related AWS resources. - Relationships []*Relationship + Relationships []Relationship // The time stamp when the resource was created. ResourceCreationTime *time.Time @@ -675,10 +675,10 @@ type ConfigurationItem struct { // Configuration attributes that AWS Config returns for certain resource types to // supplement the information returned for the configuration parameter. - SupplementaryConfiguration map[string]*string + SupplementaryConfiguration map[string]string // A mapping of key value tags associated with the resource. - Tags map[string]*string + Tags map[string]string // The version number of the resource configuration. Version *string @@ -727,7 +727,7 @@ type ConfigurationRecorderStatus struct { Name *string // Specifies whether or not the recorder is currently recording. - Recording *bool + Recording bool } // Filters the conformance pack by compliance types and AWS Config rule names. @@ -738,7 +738,7 @@ type ConformancePackComplianceFilters struct { ComplianceType ConformancePackComplianceType // Filters the results by AWS Config rule names. - ConfigRuleNames []*string + ConfigRuleNames []string } // Summary includes the name and status of the conformance pack. @@ -777,7 +777,7 @@ type ConformancePackDetail struct { ConformancePackName *string // A list of ConformancePackInputParameter objects. - ConformancePackInputParameters []*ConformancePackInputParameter + ConformancePackInputParameters []ConformancePackInputParameter // AWS service that created the conformance pack. CreatedBy *string @@ -803,11 +803,11 @@ type ConformancePackEvaluationFilters struct { ComplianceType ConformancePackComplianceType // Filters the results by AWS Config rule names. - ConfigRuleNames []*string + ConfigRuleNames []string // Filters the results by resource IDs. This is valid only when you provide // resource type. If there is no resource type, you will see an error. - ResourceIds []*string + ResourceIds []string // Filters the results by the resource type (for example, "AWS::EC2::Instance"). ResourceType *string @@ -1087,7 +1087,7 @@ type ExecutionControls struct { type FailedDeleteRemediationExceptionsBatch struct { // Returns remediation exception resource key object of the failed items. - FailedItems []*RemediationExceptionResourceKey + FailedItems []RemediationExceptionResourceKey // Returns a failure message for delete remediation exception. For example, AWS // Config creates an exception due to an internal error. @@ -1098,7 +1098,7 @@ type FailedDeleteRemediationExceptionsBatch struct { type FailedRemediationBatch struct { // Returns remediation configurations of the failed items. - FailedItems []*RemediationConfiguration + FailedItems []RemediationConfiguration // Returns a failure message. For example, the resource is already compliant. FailureMessage *string @@ -1108,7 +1108,7 @@ type FailedRemediationBatch struct { type FailedRemediationExceptionBatch struct { // Returns remediation exception resource key object of the failed items. - FailedItems []*RemediationException + FailedItems []RemediationException // Returns a failure message. For example, the auto-remediation has failed. FailureMessage *string @@ -1133,7 +1133,7 @@ type GroupedResourceCount struct { // The number of resources in the group. // // This member is required. - ResourceCount *int64 + ResourceCount int64 } // Organization config rule creation or deletion status in each member account. @@ -1213,10 +1213,10 @@ type OrganizationAggregationSource struct { RoleArn *string // If true, aggregate existing AWS Config regions and future regions. - AllAwsRegions *bool + AllAwsRegions bool // The source regions being aggregated. - AwsRegions []*string + AwsRegions []string } // An organization config rule that has information about config rules that AWS @@ -1234,7 +1234,7 @@ type OrganizationConfigRule struct { OrganizationConfigRuleName *string // A comma-separated list of accounts excluded from organization config rule. - ExcludedAccounts []*string + ExcludedAccounts []string // The timestamp of the last update. LastUpdateTime *time.Time @@ -1330,7 +1330,7 @@ type OrganizationConformancePack struct { OrganizationConformancePackName *string // A list of ConformancePackInputParameter objects. - ConformancePackInputParameters []*ConformancePackInputParameter + ConformancePackInputParameters []ConformancePackInputParameter // Location of an Amazon S3 bucket where AWS Config can deliver evaluation results // and conformance pack template that is used to create a pack. @@ -1340,7 +1340,7 @@ type OrganizationConformancePack struct { DeliveryS3KeyPrefix *string // A comma-separated list of accounts excluded from organization conformance pack. - ExcludedAccounts []*string + ExcludedAccounts []string } // Organization conformance pack creation or deletion status in each member @@ -1524,7 +1524,7 @@ type OrganizationCustomRuleMetadata struct { ResourceIdScope *string // The type of the AWS resource that was evaluated. - ResourceTypesScope []*string + ResourceTypesScope []string // One part of a key-value pair that make up a tag. A key is a general label that // acts like a category for more specific tag values. @@ -1566,7 +1566,7 @@ type OrganizationManagedRuleMetadata struct { ResourceIdScope *string // The type of the AWS resource that was evaluated. - ResourceTypesScope []*string + ResourceTypesScope []string // One part of a key-value pair that make up a tag. A key is a general label that // acts like a category for more specific tag values. @@ -1638,7 +1638,7 @@ type PendingAggregationRequest struct { type QueryInfo struct { // Returns a FieldInfo object. - SelectFields []*FieldInfo + SelectFields []FieldInfo } // Specifies the types of AWS resource for which AWS Config records configuration @@ -1670,7 +1670,7 @@ type RecordingGroup struct { // support for a new type of regional resource, it starts recording resources of // that type automatically. If you set this option to true, you cannot enumerate a // list of resourceTypes. - AllSupported *bool + AllSupported bool // Specifies whether AWS Config includes all supported types of global resources // (for example, IAM resources) with the resources that it records. Before you can @@ -1680,7 +1680,7 @@ type RecordingGroup struct { // configuration details for any global resource are the same in all regions. To // prevent duplicate configuration items, you should consider customizing AWS // Config in only one region to record global resources. - IncludeGlobalResourceTypes *bool + IncludeGlobalResourceTypes bool // A comma-separated list that specifies the types of AWS resources for which AWS // Config records configuration changes (for example, AWS::EC2::Instance or @@ -1733,7 +1733,7 @@ type RemediationConfiguration struct { Arn *string // The remediation is triggered automatically. - Automatic *bool + Automatic bool // Name of the service that owns the service linked rule, if applicable. CreatedByService *string @@ -1749,7 +1749,7 @@ type RemediationConfiguration struct { MaximumAutomaticAttempts *int32 // An object of the RemediationParameterValue. - Parameters map[string]*RemediationParameterValue + Parameters map[string]RemediationParameterValue // The type of a resource. ResourceType *string @@ -1823,7 +1823,7 @@ type RemediationExecutionStatus struct { State RemediationExecutionState // Details of every step. - StepDetails []*RemediationExecutionStep + StepDetails []RemediationExecutionStep } // Name of the step from the SSM document. @@ -1860,7 +1860,7 @@ type RemediationParameterValue struct { type ResourceCount struct { // The number of resources. - Count *int64 + Count int64 // The resource type (for example, "AWS::EC2::Instance"). ResourceType ResourceType @@ -1950,7 +1950,7 @@ type RetentionConfiguration struct { // applicable to the configuration item history. // // This member is required. - RetentionPeriodInDays *int32 + RetentionPeriodInDays int32 } // Defines which resources trigger an evaluation for an AWS Config rule. The scope @@ -1969,7 +1969,7 @@ type Scope struct { // The resource types of only those AWS resources that you want to trigger an // evaluation for the rule. You can only specify one type if you also specify a // resource ID for ComplianceResourceId. - ComplianceResourceTypes []*string + ComplianceResourceTypes []string // The tag key that is applied to only those AWS resources that you want to trigger // an evaluation for the rule. @@ -2003,7 +2003,7 @@ type Source struct { // Provides the source and type of the event that causes AWS Config to evaluate // your AWS resources. - SourceDetails []*SourceDetail + SourceDetails []SourceDetail } // Provides the source and the message types that trigger AWS Config to evaluate @@ -2076,7 +2076,7 @@ type StaticValue struct { // A list of values. For example, the ARN of the assumed role. // // This member is required. - Values []*string + Values []string } // Status filter object to filter results based on specific member account ID or diff --git a/service/configservice/validators.go b/service/configservice/validators.go index 81615e05471..555e62cd68c 100644 --- a/service/configservice/validators.go +++ b/service/configservice/validators.go @@ -1393,13 +1393,13 @@ func validateAccountAggregationSource(v *types.AccountAggregationSource) error { } } -func validateAccountAggregationSourceList(v []*types.AccountAggregationSource) error { +func validateAccountAggregationSourceList(v []types.AccountAggregationSource) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AccountAggregationSourceList"} for i := range v { - if err := validateAccountAggregationSource(v[i]); err != nil { + if err := validateAccountAggregationSource(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1471,13 +1471,13 @@ func validateConformancePackInputParameter(v *types.ConformancePackInputParamete } } -func validateConformancePackInputParameters(v []*types.ConformancePackInputParameter) error { +func validateConformancePackInputParameters(v []types.ConformancePackInputParameter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ConformancePackInputParameters"} for i := range v { - if err := validateConformancePackInputParameter(v[i]); err != nil { + if err := validateConformancePackInputParameter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1512,13 +1512,13 @@ func validateEvaluation(v *types.Evaluation) error { } } -func validateEvaluations(v []*types.Evaluation) error { +func validateEvaluations(v []types.Evaluation) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Evaluations"} for i := range v { - if err := validateEvaluation(v[i]); err != nil { + if err := validateEvaluation(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1603,13 +1603,13 @@ func validateRemediationConfiguration(v *types.RemediationConfiguration) error { } } -func validateRemediationConfigurations(v []*types.RemediationConfiguration) error { +func validateRemediationConfigurations(v []types.RemediationConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RemediationConfigurations"} for i := range v { - if err := validateRemediationConfiguration(v[i]); err != nil { + if err := validateRemediationConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1620,13 +1620,14 @@ func validateRemediationConfigurations(v []*types.RemediationConfiguration) erro } } -func validateRemediationParameters(v map[string]*types.RemediationParameterValue) error { +func validateRemediationParameters(v map[string]types.RemediationParameterValue) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RemediationParameters"} for key := range v { - if err := validateRemediationParameterValue(v[key]); err != nil { + value := v[key] + if err := validateRemediationParameterValue(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -1659,13 +1660,13 @@ func validateRemediationParameterValue(v *types.RemediationParameterValue) error } } -func validateResourceIdentifiersList(v []*types.AggregateResourceIdentifier) error { +func validateResourceIdentifiersList(v []types.AggregateResourceIdentifier) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceIdentifiersList"} for i := range v { - if err := validateAggregateResourceIdentifier(v[i]); err != nil { + if err := validateAggregateResourceIdentifier(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1694,13 +1695,13 @@ func validateResourceKey(v *types.ResourceKey) error { } } -func validateResourceKeys(v []*types.ResourceKey) error { +func validateResourceKeys(v []types.ResourceKey) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceKeys"} for i := range v { - if err := validateResourceKey(v[i]); err != nil { + if err := validateResourceKey(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2610,9 +2611,6 @@ func validateOpPutRetentionConfigurationInput(v *PutRetentionConfigurationInput) return nil } invalidParams := smithy.InvalidParamsError{Context: "PutRetentionConfigurationInput"} - if v.RetentionPeriodInDays == nil { - invalidParams.Add(smithy.NewErrParamRequired("RetentionPeriodInDays")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/connect/api_op_AssociateRoutingProfileQueues.go b/service/connect/api_op_AssociateRoutingProfileQueues.go index 36dfcc46b27..cb003de06a8 100644 --- a/service/connect/api_op_AssociateRoutingProfileQueues.go +++ b/service/connect/api_op_AssociateRoutingProfileQueues.go @@ -37,7 +37,7 @@ type AssociateRoutingProfileQueuesInput struct { // The queues to associate with this routing profile. // // This member is required. - QueueConfigs []*types.RoutingProfileQueueConfig + QueueConfigs []types.RoutingProfileQueueConfig // The identifier of the routing profile. // diff --git a/service/connect/api_op_CreateContactFlow.go b/service/connect/api_op_CreateContactFlow.go index 2a27acfdbe5..032b308f805 100644 --- a/service/connect/api_op_CreateContactFlow.go +++ b/service/connect/api_op_CreateContactFlow.go @@ -58,7 +58,7 @@ type CreateContactFlowInput struct { Description *string // One or more tags. - Tags map[string]*string + Tags map[string]string } type CreateContactFlowOutput struct { diff --git a/service/connect/api_op_CreateRoutingProfile.go b/service/connect/api_op_CreateRoutingProfile.go index ea96c71bb2a..1837cc011d0 100644 --- a/service/connect/api_op_CreateRoutingProfile.go +++ b/service/connect/api_op_CreateRoutingProfile.go @@ -48,7 +48,7 @@ type CreateRoutingProfileInput struct { // routing profile. // // This member is required. - MediaConcurrencies []*types.MediaConcurrency + MediaConcurrencies []types.MediaConcurrency // The name of the routing profile. Must not be more than 127 characters. // @@ -57,10 +57,10 @@ type CreateRoutingProfileInput struct { // The inbound queues associated with the routing profile. If no queue is added, // the agent can only make outbound calls. - QueueConfigs []*types.RoutingProfileQueueConfig + QueueConfigs []types.RoutingProfileQueueConfig // One or more tags. - Tags map[string]*string + Tags map[string]string } type CreateRoutingProfileOutput struct { diff --git a/service/connect/api_op_CreateUser.go b/service/connect/api_op_CreateUser.go index a2d445cf0f1..558b4e8efaa 100644 --- a/service/connect/api_op_CreateUser.go +++ b/service/connect/api_op_CreateUser.go @@ -51,7 +51,7 @@ type CreateUserInput struct { // The identifier of the security profile for the user. // // This member is required. - SecurityProfileIds []*string + SecurityProfileIds []string // The user name for the account. For instances not using SAML for identity // management, the user name can include up to 20 characters. If you are using SAML @@ -84,7 +84,7 @@ type CreateUserInput struct { Password *string // One or more tags. - Tags map[string]*string + Tags map[string]string } type CreateUserOutput struct { diff --git a/service/connect/api_op_DisassociateRoutingProfileQueues.go b/service/connect/api_op_DisassociateRoutingProfileQueues.go index e648ef9105c..8479f89472d 100644 --- a/service/connect/api_op_DisassociateRoutingProfileQueues.go +++ b/service/connect/api_op_DisassociateRoutingProfileQueues.go @@ -37,7 +37,7 @@ type DisassociateRoutingProfileQueuesInput struct { // The queues to disassociate from this routing profile. // // This member is required. - QueueReferences []*types.RoutingProfileQueueReference + QueueReferences []types.RoutingProfileQueueReference // The identifier of the routing profile. // diff --git a/service/connect/api_op_GetContactAttributes.go b/service/connect/api_op_GetContactAttributes.go index e292ae7434c..c3317b4da28 100644 --- a/service/connect/api_op_GetContactAttributes.go +++ b/service/connect/api_op_GetContactAttributes.go @@ -42,7 +42,7 @@ type GetContactAttributesInput struct { type GetContactAttributesOutput struct { // Information about the attributes. - Attributes map[string]*string + Attributes map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/connect/api_op_GetCurrentMetricData.go b/service/connect/api_op_GetCurrentMetricData.go index 8b7b0f85cfc..b0ff3e40a31 100644 --- a/service/connect/api_op_GetCurrentMetricData.go +++ b/service/connect/api_op_GetCurrentMetricData.go @@ -71,7 +71,7 @@ type GetCurrentMetricDataInput struct { // (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#availability-real-time) // // This member is required. - CurrentMetrics []*types.CurrentMetric + CurrentMetrics []types.CurrentMetric // The queues, up to 100, or channels, to use to filter the metrics returned. // Metric data is retrieved only for the resources associated with the queues or @@ -94,7 +94,7 @@ type GetCurrentMetricDataInput struct { Groupings []types.Grouping // The maximimum number of results to return per page. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. The token @@ -110,7 +110,7 @@ type GetCurrentMetricDataOutput struct { DataSnapshotTime *time.Time // Information about the real-time metrics. - MetricResults []*types.CurrentMetricResult + MetricResults []types.CurrentMetricResult // If there are additional results, this is the token for the next set of results. // The token expires after 5 minutes from the time it is created. Subsequent diff --git a/service/connect/api_op_GetMetricData.go b/service/connect/api_op_GetMetricData.go index 808d87d5166..d7866eeea4a 100644 --- a/service/connect/api_op_GetMetricData.go +++ b/service/connect/api_op_GetMetricData.go @@ -76,7 +76,7 @@ type GetMetricDataInput struct { // 25, 30, 45, 60, 90, 120, 180, 240, 300, 600 // // This member is required. - HistoricalMetrics []*types.HistoricalMetric + HistoricalMetrics []types.HistoricalMetric // The identifier of the Amazon Connect instance. // @@ -100,7 +100,7 @@ type GetMetricDataInput struct { Groupings []types.Grouping // The maximimum number of results to return per page. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -111,7 +111,7 @@ type GetMetricDataOutput struct { // Information about the historical metrics. If no grouping is specified, a summary // of metric data is returned. - MetricResults []*types.HistoricalMetricResult + MetricResults []types.HistoricalMetricResult // If there are additional results, this is the token for the next set of results. // The token expires after 5 minutes from the time it is created. Subsequent diff --git a/service/connect/api_op_ListContactFlows.go b/service/connect/api_op_ListContactFlows.go index 212047301e0..af71610b6ff 100644 --- a/service/connect/api_op_ListContactFlows.go +++ b/service/connect/api_op_ListContactFlows.go @@ -44,7 +44,7 @@ type ListContactFlowsInput struct { ContactFlowTypes []types.ContactFlowType // The maximimum number of results to return per page. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -54,7 +54,7 @@ type ListContactFlowsInput struct { type ListContactFlowsOutput struct { // Information about the contact flows. - ContactFlowSummaryList []*types.ContactFlowSummary + ContactFlowSummaryList []types.ContactFlowSummary // If there are additional results, this is the token for the next set of results. NextToken *string diff --git a/service/connect/api_op_ListHoursOfOperations.go b/service/connect/api_op_ListHoursOfOperations.go index a91ce8e2226..92f13acc214 100644 --- a/service/connect/api_op_ListHoursOfOperations.go +++ b/service/connect/api_op_ListHoursOfOperations.go @@ -39,7 +39,7 @@ type ListHoursOfOperationsInput struct { InstanceId *string // The maximimum number of results to return per page. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -49,7 +49,7 @@ type ListHoursOfOperationsInput struct { type ListHoursOfOperationsOutput struct { // Information about the hours of operation. - HoursOfOperationSummaryList []*types.HoursOfOperationSummary + HoursOfOperationSummaryList []types.HoursOfOperationSummary // If there are additional results, this is the token for the next set of results. NextToken *string diff --git a/service/connect/api_op_ListPhoneNumbers.go b/service/connect/api_op_ListPhoneNumbers.go index 11f6b7a7258..23e0d1bec36 100644 --- a/service/connect/api_op_ListPhoneNumbers.go +++ b/service/connect/api_op_ListPhoneNumbers.go @@ -39,7 +39,7 @@ type ListPhoneNumbersInput struct { InstanceId *string // The maximimum number of results to return per page. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -58,7 +58,7 @@ type ListPhoneNumbersOutput struct { NextToken *string // Information about the phone numbers. - PhoneNumberSummaryList []*types.PhoneNumberSummary + PhoneNumberSummaryList []types.PhoneNumberSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/connect/api_op_ListPrompts.go b/service/connect/api_op_ListPrompts.go index 9b5402a71e8..7e8b884272b 100644 --- a/service/connect/api_op_ListPrompts.go +++ b/service/connect/api_op_ListPrompts.go @@ -36,7 +36,7 @@ type ListPromptsInput struct { InstanceId *string // The maximum number of results to return per page. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -49,7 +49,7 @@ type ListPromptsOutput struct { NextToken *string // Information about the prompts. - PromptSummaryList []*types.PromptSummary + PromptSummaryList []types.PromptSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/connect/api_op_ListQueues.go b/service/connect/api_op_ListQueues.go index 41158193eb6..ba38cb3c159 100644 --- a/service/connect/api_op_ListQueues.go +++ b/service/connect/api_op_ListQueues.go @@ -38,7 +38,7 @@ type ListQueuesInput struct { InstanceId *string // The maximimum number of results to return per page. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -54,7 +54,7 @@ type ListQueuesOutput struct { NextToken *string // Information about the queues. - QueueSummaryList []*types.QueueSummary + QueueSummaryList []types.QueueSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/connect/api_op_ListRoutingProfileQueues.go b/service/connect/api_op_ListRoutingProfileQueues.go index 8d31a432f4c..aa7b9e1e2c3 100644 --- a/service/connect/api_op_ListRoutingProfileQueues.go +++ b/service/connect/api_op_ListRoutingProfileQueues.go @@ -40,7 +40,7 @@ type ListRoutingProfileQueuesInput struct { RoutingProfileId *string // The maximimum number of results to return per page. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -53,7 +53,7 @@ type ListRoutingProfileQueuesOutput struct { NextToken *string // Information about the routing profiles. - RoutingProfileQueueConfigSummaryList []*types.RoutingProfileQueueConfigSummary + RoutingProfileQueueConfigSummaryList []types.RoutingProfileQueueConfigSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/connect/api_op_ListRoutingProfiles.go b/service/connect/api_op_ListRoutingProfiles.go index 48b73a469eb..976ed766b00 100644 --- a/service/connect/api_op_ListRoutingProfiles.go +++ b/service/connect/api_op_ListRoutingProfiles.go @@ -41,7 +41,7 @@ type ListRoutingProfilesInput struct { InstanceId *string // The maximimum number of results to return per page. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -54,7 +54,7 @@ type ListRoutingProfilesOutput struct { NextToken *string // Information about the routing profiles. - RoutingProfileSummaryList []*types.RoutingProfileSummary + RoutingProfileSummaryList []types.RoutingProfileSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/connect/api_op_ListSecurityProfiles.go b/service/connect/api_op_ListSecurityProfiles.go index 457708692da..23883c03435 100644 --- a/service/connect/api_op_ListSecurityProfiles.go +++ b/service/connect/api_op_ListSecurityProfiles.go @@ -39,7 +39,7 @@ type ListSecurityProfilesInput struct { InstanceId *string // The maximimum number of results to return per page. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -52,7 +52,7 @@ type ListSecurityProfilesOutput struct { NextToken *string // Information about the security profiles. - SecurityProfileSummaryList []*types.SecurityProfileSummary + SecurityProfileSummaryList []types.SecurityProfileSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/connect/api_op_ListTagsForResource.go b/service/connect/api_op_ListTagsForResource.go index e21c78ae60b..6bdb966933c 100644 --- a/service/connect/api_op_ListTagsForResource.go +++ b/service/connect/api_op_ListTagsForResource.go @@ -40,7 +40,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // Information about the tags. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/connect/api_op_ListUserHierarchyGroups.go b/service/connect/api_op_ListUserHierarchyGroups.go index aaa3582b515..80a37692f57 100644 --- a/service/connect/api_op_ListUserHierarchyGroups.go +++ b/service/connect/api_op_ListUserHierarchyGroups.go @@ -39,7 +39,7 @@ type ListUserHierarchyGroupsInput struct { InstanceId *string // The maximimum number of results to return per page. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -52,7 +52,7 @@ type ListUserHierarchyGroupsOutput struct { NextToken *string // Information about the hierarchy groups. - UserHierarchyGroupSummaryList []*types.HierarchyGroupSummary + UserHierarchyGroupSummaryList []types.HierarchyGroupSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/connect/api_op_ListUsers.go b/service/connect/api_op_ListUsers.go index e594b5e1f6b..1569a74f528 100644 --- a/service/connect/api_op_ListUsers.go +++ b/service/connect/api_op_ListUsers.go @@ -36,7 +36,7 @@ type ListUsersInput struct { InstanceId *string // The maximimum number of results to return per page. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -49,7 +49,7 @@ type ListUsersOutput struct { NextToken *string // Information about the users. - UserSummaryList []*types.UserSummary + UserSummaryList []types.UserSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/connect/api_op_StartChatContact.go b/service/connect/api_op_StartChatContact.go index 499a31932f5..72ee315800a 100644 --- a/service/connect/api_op_StartChatContact.go +++ b/service/connect/api_op_StartChatContact.go @@ -78,7 +78,7 @@ type StartChatContactInput struct { // other contact attributes. There can be up to 32,768 UTF-8 bytes across all // key-value pairs per contact. Attribute keys can include only alphanumeric, dash, // and underscore characters. - Attributes map[string]*string + Attributes map[string]string // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. diff --git a/service/connect/api_op_StartOutboundVoiceContact.go b/service/connect/api_op_StartOutboundVoiceContact.go index 7e88b0d8c2a..42fab734049 100644 --- a/service/connect/api_op_StartOutboundVoiceContact.go +++ b/service/connect/api_op_StartOutboundVoiceContact.go @@ -65,7 +65,7 @@ type StartOutboundVoiceContactInput struct { // other contact attributes. There can be up to 32,768 UTF-8 bytes across all // key-value pairs per contact. Attribute keys can include only alphanumeric, dash, // and underscore characters. - Attributes map[string]*string + Attributes map[string]string // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. The token is valid for 7 days after creation. If a contact is diff --git a/service/connect/api_op_TagResource.go b/service/connect/api_op_TagResource.go index 1c91202a2d4..9995bc3f37f 100644 --- a/service/connect/api_op_TagResource.go +++ b/service/connect/api_op_TagResource.go @@ -40,7 +40,7 @@ type TagResourceInput struct { // One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} }. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/connect/api_op_UntagResource.go b/service/connect/api_op_UntagResource.go index 1ad4cdc4dd0..e60a7e7f2fb 100644 --- a/service/connect/api_op_UntagResource.go +++ b/service/connect/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The tag keys. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/connect/api_op_UpdateContactAttributes.go b/service/connect/api_op_UpdateContactAttributes.go index 20aa5414068..cab1601a402 100644 --- a/service/connect/api_op_UpdateContactAttributes.go +++ b/service/connect/api_op_UpdateContactAttributes.go @@ -52,7 +52,7 @@ type UpdateContactAttributesInput struct { // alphanumeric, dash, and underscore characters. // // This member is required. - Attributes map[string]*string + Attributes map[string]string // The identifier of the contact. This is the identifier of the contact associated // with the first interaction with the contact center. diff --git a/service/connect/api_op_UpdateRoutingProfileConcurrency.go b/service/connect/api_op_UpdateRoutingProfileConcurrency.go index 7c6ad0c0308..ab3fac6617e 100644 --- a/service/connect/api_op_UpdateRoutingProfileConcurrency.go +++ b/service/connect/api_op_UpdateRoutingProfileConcurrency.go @@ -38,7 +38,7 @@ type UpdateRoutingProfileConcurrencyInput struct { // The channels agents can handle in the Contact Control Panel (CCP). // // This member is required. - MediaConcurrencies []*types.MediaConcurrency + MediaConcurrencies []types.MediaConcurrency // The identifier of the routing profile. // diff --git a/service/connect/api_op_UpdateRoutingProfileQueues.go b/service/connect/api_op_UpdateRoutingProfileQueues.go index 6a77b66b4b4..7dd15a88902 100644 --- a/service/connect/api_op_UpdateRoutingProfileQueues.go +++ b/service/connect/api_op_UpdateRoutingProfileQueues.go @@ -37,7 +37,7 @@ type UpdateRoutingProfileQueuesInput struct { // The queues to be updated for this routing profile. // // This member is required. - QueueConfigs []*types.RoutingProfileQueueConfig + QueueConfigs []types.RoutingProfileQueueConfig // The identifier of the routing profile. // diff --git a/service/connect/api_op_UpdateUserSecurityProfiles.go b/service/connect/api_op_UpdateUserSecurityProfiles.go index 5c7395dbfd1..959a0c2726a 100644 --- a/service/connect/api_op_UpdateUserSecurityProfiles.go +++ b/service/connect/api_op_UpdateUserSecurityProfiles.go @@ -36,7 +36,7 @@ type UpdateUserSecurityProfilesInput struct { // The identifiers of the security profiles for the user. // // This member is required. - SecurityProfileIds []*string + SecurityProfileIds []string // The identifier of the user account. // diff --git a/service/connect/deserializers.go b/service/connect/deserializers.go index 24cbb859512..d498e595512 100644 --- a/service/connect/deserializers.go +++ b/service/connect/deserializers.go @@ -274,7 +274,7 @@ func awsRestjson1_deserializeOpDocumentCreateContactFlowOutput(v **CreateContact if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ContactFlowArn = &jtv + sv.ContactFlowArn = ptr.String(jtv) } case "ContactFlowId": @@ -283,7 +283,7 @@ func awsRestjson1_deserializeOpDocumentCreateContactFlowOutput(v **CreateContact if !ok { return fmt.Errorf("expected ContactFlowId to be of type string, got %T instead", value) } - sv.ContactFlowId = &jtv + sv.ContactFlowId = ptr.String(jtv) } default: @@ -452,7 +452,7 @@ func awsRestjson1_deserializeOpDocumentCreateRoutingProfileOutput(v **CreateRout if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RoutingProfileArn = &jtv + sv.RoutingProfileArn = ptr.String(jtv) } case "RoutingProfileId": @@ -461,7 +461,7 @@ func awsRestjson1_deserializeOpDocumentCreateRoutingProfileOutput(v **CreateRout if !ok { return fmt.Errorf("expected RoutingProfileId to be of type string, got %T instead", value) } - sv.RoutingProfileId = &jtv + sv.RoutingProfileId = ptr.String(jtv) } default: @@ -630,7 +630,7 @@ func awsRestjson1_deserializeOpDocumentCreateUserOutput(v **CreateUserOutput, va if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } case "UserId": @@ -639,7 +639,7 @@ func awsRestjson1_deserializeOpDocumentCreateUserOutput(v **CreateUserOutput, va if !ok { return fmt.Errorf("expected UserId to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } default: @@ -1961,7 +1961,7 @@ func awsRestjson1_deserializeOpDocumentGetCurrentMetricDataOutput(v **GetCurrent if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2291,7 +2291,7 @@ func awsRestjson1_deserializeOpDocumentGetMetricDataOutput(v **GetMetricDataOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2459,7 +2459,7 @@ func awsRestjson1_deserializeOpDocumentListContactFlowsOutput(v **ListContactFlo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2627,7 +2627,7 @@ func awsRestjson1_deserializeOpDocumentListHoursOfOperationsOutput(v **ListHours if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2790,7 +2790,7 @@ func awsRestjson1_deserializeOpDocumentListPhoneNumbersOutput(v **ListPhoneNumbe if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PhoneNumberSummaryList": @@ -2958,7 +2958,7 @@ func awsRestjson1_deserializeOpDocumentListPromptsOutput(v **ListPromptsOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PromptSummaryList": @@ -3126,7 +3126,7 @@ func awsRestjson1_deserializeOpDocumentListQueuesOutput(v **ListQueuesOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "QueueSummaryList": @@ -3294,7 +3294,7 @@ func awsRestjson1_deserializeOpDocumentListRoutingProfileQueuesOutput(v **ListRo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RoutingProfileQueueConfigSummaryList": @@ -3462,7 +3462,7 @@ func awsRestjson1_deserializeOpDocumentListRoutingProfilesOutput(v **ListRouting if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RoutingProfileSummaryList": @@ -3630,7 +3630,7 @@ func awsRestjson1_deserializeOpDocumentListSecurityProfilesOutput(v **ListSecuri if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SecurityProfileSummaryList": @@ -3957,7 +3957,7 @@ func awsRestjson1_deserializeOpDocumentListUserHierarchyGroupsOutput(v **ListUse if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "UserHierarchyGroupSummaryList": @@ -4125,7 +4125,7 @@ func awsRestjson1_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "UserSummaryList": @@ -4382,7 +4382,7 @@ func awsRestjson1_deserializeOpDocumentStartChatContactOutput(v **StartChatConta if !ok { return fmt.Errorf("expected ContactId to be of type string, got %T instead", value) } - sv.ContactId = &jtv + sv.ContactId = ptr.String(jtv) } case "ParticipantId": @@ -4391,7 +4391,7 @@ func awsRestjson1_deserializeOpDocumentStartChatContactOutput(v **StartChatConta if !ok { return fmt.Errorf("expected ParticipantId to be of type string, got %T instead", value) } - sv.ParticipantId = &jtv + sv.ParticipantId = ptr.String(jtv) } case "ParticipantToken": @@ -4400,7 +4400,7 @@ func awsRestjson1_deserializeOpDocumentStartChatContactOutput(v **StartChatConta if !ok { return fmt.Errorf("expected ParticipantToken to be of type string, got %T instead", value) } - sv.ParticipantToken = &jtv + sv.ParticipantToken = ptr.String(jtv) } default: @@ -4661,7 +4661,7 @@ func awsRestjson1_deserializeOpDocumentStartOutboundVoiceContactOutput(v **Start if !ok { return fmt.Errorf("expected ContactId to be of type string, got %T instead", value) } - sv.ContactId = &jtv + sv.ContactId = ptr.String(jtv) } default: @@ -6750,7 +6750,7 @@ func awsRestjson1_deserializeErrorUserNotFoundException(response *smithyhttp.Res return output } -func awsRestjson1_deserializeDocumentAttributes(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAttributes(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6763,21 +6763,21 @@ func awsRestjson1_deserializeDocumentAttributes(v *map[string]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -6814,7 +6814,7 @@ func awsRestjson1_deserializeDocumentContactFlow(v **types.ContactFlow, value in if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Content": @@ -6823,7 +6823,7 @@ func awsRestjson1_deserializeDocumentContactFlow(v **types.ContactFlow, value in if !ok { return fmt.Errorf("expected ContactFlowContent to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "Description": @@ -6832,7 +6832,7 @@ func awsRestjson1_deserializeDocumentContactFlow(v **types.ContactFlow, value in if !ok { return fmt.Errorf("expected ContactFlowDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -6841,7 +6841,7 @@ func awsRestjson1_deserializeDocumentContactFlow(v **types.ContactFlow, value in if !ok { return fmt.Errorf("expected ContactFlowId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -6850,7 +6850,7 @@ func awsRestjson1_deserializeDocumentContactFlow(v **types.ContactFlow, value in if !ok { return fmt.Errorf("expected ContactFlowName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Tags": @@ -6904,7 +6904,7 @@ func awsRestjson1_deserializeDocumentContactFlowNotPublishedException(v **types. if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6944,7 +6944,7 @@ func awsRestjson1_deserializeDocumentContactFlowSummary(v **types.ContactFlowSum if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "ContactFlowType": @@ -6962,7 +6962,7 @@ func awsRestjson1_deserializeDocumentContactFlowSummary(v **types.ContactFlowSum if !ok { return fmt.Errorf("expected ContactFlowId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -6971,7 +6971,7 @@ func awsRestjson1_deserializeDocumentContactFlowSummary(v **types.ContactFlowSum if !ok { return fmt.Errorf("expected ContactFlowName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -6983,7 +6983,7 @@ func awsRestjson1_deserializeDocumentContactFlowSummary(v **types.ContactFlowSum return nil } -func awsRestjson1_deserializeDocumentContactFlowSummaryList(v *[]*types.ContactFlowSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentContactFlowSummaryList(v *[]types.ContactFlowSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6996,18 +6996,20 @@ func awsRestjson1_deserializeDocumentContactFlowSummaryList(v *[]*types.ContactF return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContactFlowSummary + var cv []types.ContactFlowSummary if *v == nil { - cv = []*types.ContactFlowSummary{} + cv = []types.ContactFlowSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ContactFlowSummary - if err := awsRestjson1_deserializeDocumentContactFlowSummary(&col, value); err != nil { + var col types.ContactFlowSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentContactFlowSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7043,7 +7045,7 @@ func awsRestjson1_deserializeDocumentContactNotFoundException(v **types.ContactN if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7083,7 +7085,7 @@ func awsRestjson1_deserializeDocumentCredentials(v **types.Credentials, value in if !ok { return fmt.Errorf("expected SecurityToken to be of type string, got %T instead", value) } - sv.AccessToken = &jtv + sv.AccessToken = ptr.String(jtv) } case "AccessTokenExpiration": @@ -7105,7 +7107,7 @@ func awsRestjson1_deserializeDocumentCredentials(v **types.Credentials, value in if !ok { return fmt.Errorf("expected SecurityToken to be of type string, got %T instead", value) } - sv.RefreshToken = &jtv + sv.RefreshToken = ptr.String(jtv) } case "RefreshTokenExpiration": @@ -7216,7 +7218,7 @@ func awsRestjson1_deserializeDocumentCurrentMetricData(v **types.CurrentMetricDa if err != nil { return err } - sv.Value = &f64 + sv.Value = ptr.Float64(f64) } default: @@ -7228,7 +7230,7 @@ func awsRestjson1_deserializeDocumentCurrentMetricData(v **types.CurrentMetricDa return nil } -func awsRestjson1_deserializeDocumentCurrentMetricDataCollections(v *[]*types.CurrentMetricData, value interface{}) error { +func awsRestjson1_deserializeDocumentCurrentMetricDataCollections(v *[]types.CurrentMetricData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7241,18 +7243,20 @@ func awsRestjson1_deserializeDocumentCurrentMetricDataCollections(v *[]*types.Cu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CurrentMetricData + var cv []types.CurrentMetricData if *v == nil { - cv = []*types.CurrentMetricData{} + cv = []types.CurrentMetricData{} } else { cv = *v } for _, value := range shape { - var col *types.CurrentMetricData - if err := awsRestjson1_deserializeDocumentCurrentMetricData(&col, value); err != nil { + var col types.CurrentMetricData + destAddr := &col + if err := awsRestjson1_deserializeDocumentCurrentMetricData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7301,7 +7305,7 @@ func awsRestjson1_deserializeDocumentCurrentMetricResult(v **types.CurrentMetric return nil } -func awsRestjson1_deserializeDocumentCurrentMetricResults(v *[]*types.CurrentMetricResult, value interface{}) error { +func awsRestjson1_deserializeDocumentCurrentMetricResults(v *[]types.CurrentMetricResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7314,18 +7318,20 @@ func awsRestjson1_deserializeDocumentCurrentMetricResults(v *[]*types.CurrentMet return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CurrentMetricResult + var cv []types.CurrentMetricResult if *v == nil { - cv = []*types.CurrentMetricResult{} + cv = []types.CurrentMetricResult{} } else { cv = *v } for _, value := range shape { - var col *types.CurrentMetricResult - if err := awsRestjson1_deserializeDocumentCurrentMetricResult(&col, value); err != nil { + var col types.CurrentMetricResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentCurrentMetricResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7361,7 +7367,7 @@ func awsRestjson1_deserializeDocumentDestinationNotAllowedException(v **types.De if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7446,7 +7452,7 @@ func awsRestjson1_deserializeDocumentDuplicateResourceException(v **types.Duplic if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7486,7 +7492,7 @@ func awsRestjson1_deserializeDocumentHierarchyGroup(v **types.HierarchyGroup, va if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "HierarchyPath": @@ -7500,7 +7506,7 @@ func awsRestjson1_deserializeDocumentHierarchyGroup(v **types.HierarchyGroup, va if !ok { return fmt.Errorf("expected HierarchyGroupId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LevelId": @@ -7509,7 +7515,7 @@ func awsRestjson1_deserializeDocumentHierarchyGroup(v **types.HierarchyGroup, va if !ok { return fmt.Errorf("expected HierarchyLevelId to be of type string, got %T instead", value) } - sv.LevelId = &jtv + sv.LevelId = ptr.String(jtv) } case "Name": @@ -7518,7 +7524,7 @@ func awsRestjson1_deserializeDocumentHierarchyGroup(v **types.HierarchyGroup, va if !ok { return fmt.Errorf("expected HierarchyGroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7558,7 +7564,7 @@ func awsRestjson1_deserializeDocumentHierarchyGroupSummary(v **types.HierarchyGr if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -7567,7 +7573,7 @@ func awsRestjson1_deserializeDocumentHierarchyGroupSummary(v **types.HierarchyGr if !ok { return fmt.Errorf("expected HierarchyGroupId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -7576,7 +7582,7 @@ func awsRestjson1_deserializeDocumentHierarchyGroupSummary(v **types.HierarchyGr if !ok { return fmt.Errorf("expected HierarchyGroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7588,7 +7594,7 @@ func awsRestjson1_deserializeDocumentHierarchyGroupSummary(v **types.HierarchyGr return nil } -func awsRestjson1_deserializeDocumentHierarchyGroupSummaryList(v *[]*types.HierarchyGroupSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentHierarchyGroupSummaryList(v *[]types.HierarchyGroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7601,18 +7607,20 @@ func awsRestjson1_deserializeDocumentHierarchyGroupSummaryList(v *[]*types.Hiera return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HierarchyGroupSummary + var cv []types.HierarchyGroupSummary if *v == nil { - cv = []*types.HierarchyGroupSummary{} + cv = []types.HierarchyGroupSummary{} } else { cv = *v } for _, value := range shape { - var col *types.HierarchyGroupSummary - if err := awsRestjson1_deserializeDocumentHierarchyGroupSummary(&col, value); err != nil { + var col types.HierarchyGroupSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentHierarchyGroupSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7648,7 +7656,7 @@ func awsRestjson1_deserializeDocumentHierarchyLevel(v **types.HierarchyLevel, va if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -7657,7 +7665,7 @@ func awsRestjson1_deserializeDocumentHierarchyLevel(v **types.HierarchyLevel, va if !ok { return fmt.Errorf("expected HierarchyLevelId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -7666,7 +7674,7 @@ func awsRestjson1_deserializeDocumentHierarchyLevel(v **types.HierarchyLevel, va if !ok { return fmt.Errorf("expected HierarchyLevelName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7890,7 +7898,7 @@ func awsRestjson1_deserializeDocumentHistoricalMetricData(v **types.HistoricalMe if err != nil { return err } - sv.Value = &f64 + sv.Value = ptr.Float64(f64) } default: @@ -7902,7 +7910,7 @@ func awsRestjson1_deserializeDocumentHistoricalMetricData(v **types.HistoricalMe return nil } -func awsRestjson1_deserializeDocumentHistoricalMetricDataCollections(v *[]*types.HistoricalMetricData, value interface{}) error { +func awsRestjson1_deserializeDocumentHistoricalMetricDataCollections(v *[]types.HistoricalMetricData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7915,18 +7923,20 @@ func awsRestjson1_deserializeDocumentHistoricalMetricDataCollections(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HistoricalMetricData + var cv []types.HistoricalMetricData if *v == nil { - cv = []*types.HistoricalMetricData{} + cv = []types.HistoricalMetricData{} } else { cv = *v } for _, value := range shape { - var col *types.HistoricalMetricData - if err := awsRestjson1_deserializeDocumentHistoricalMetricData(&col, value); err != nil { + var col types.HistoricalMetricData + destAddr := &col + if err := awsRestjson1_deserializeDocumentHistoricalMetricData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7975,7 +7985,7 @@ func awsRestjson1_deserializeDocumentHistoricalMetricResult(v **types.Historical return nil } -func awsRestjson1_deserializeDocumentHistoricalMetricResults(v *[]*types.HistoricalMetricResult, value interface{}) error { +func awsRestjson1_deserializeDocumentHistoricalMetricResults(v *[]types.HistoricalMetricResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7988,18 +7998,20 @@ func awsRestjson1_deserializeDocumentHistoricalMetricResults(v *[]*types.Histori return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HistoricalMetricResult + var cv []types.HistoricalMetricResult if *v == nil { - cv = []*types.HistoricalMetricResult{} + cv = []types.HistoricalMetricResult{} } else { cv = *v } for _, value := range shape { - var col *types.HistoricalMetricResult - if err := awsRestjson1_deserializeDocumentHistoricalMetricResult(&col, value); err != nil { + var col types.HistoricalMetricResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentHistoricalMetricResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8035,7 +8047,7 @@ func awsRestjson1_deserializeDocumentHoursOfOperationSummary(v **types.HoursOfOp if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -8044,7 +8056,7 @@ func awsRestjson1_deserializeDocumentHoursOfOperationSummary(v **types.HoursOfOp if !ok { return fmt.Errorf("expected HoursOfOperationId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -8053,7 +8065,7 @@ func awsRestjson1_deserializeDocumentHoursOfOperationSummary(v **types.HoursOfOp if !ok { return fmt.Errorf("expected HoursOfOperationName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8065,7 +8077,7 @@ func awsRestjson1_deserializeDocumentHoursOfOperationSummary(v **types.HoursOfOp return nil } -func awsRestjson1_deserializeDocumentHoursOfOperationSummaryList(v *[]*types.HoursOfOperationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentHoursOfOperationSummaryList(v *[]types.HoursOfOperationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8078,18 +8090,20 @@ func awsRestjson1_deserializeDocumentHoursOfOperationSummaryList(v *[]*types.Hou return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HoursOfOperationSummary + var cv []types.HoursOfOperationSummary if *v == nil { - cv = []*types.HoursOfOperationSummary{} + cv = []types.HoursOfOperationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.HoursOfOperationSummary - if err := awsRestjson1_deserializeDocumentHoursOfOperationSummary(&col, value); err != nil { + var col types.HoursOfOperationSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentHoursOfOperationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8125,7 +8139,7 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8201,7 +8215,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8241,7 +8255,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8281,7 +8295,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8293,7 +8307,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsRestjson1_deserializeDocumentMediaConcurrencies(v *[]*types.MediaConcurrency, value interface{}) error { +func awsRestjson1_deserializeDocumentMediaConcurrencies(v *[]types.MediaConcurrency, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8306,18 +8320,20 @@ func awsRestjson1_deserializeDocumentMediaConcurrencies(v *[]*types.MediaConcurr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MediaConcurrency + var cv []types.MediaConcurrency if *v == nil { - cv = []*types.MediaConcurrency{} + cv = []types.MediaConcurrency{} } else { cv = *v } for _, value := range shape { - var col *types.MediaConcurrency - if err := awsRestjson1_deserializeDocumentMediaConcurrency(&col, value); err != nil { + var col types.MediaConcurrency + destAddr := &col + if err := awsRestjson1_deserializeDocumentMediaConcurrency(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8366,7 +8382,7 @@ func awsRestjson1_deserializeDocumentMediaConcurrency(v **types.MediaConcurrency if err != nil { return err } - sv.Concurrency = ptr.Int32(int32(i64)) + sv.Concurrency = int32(i64) } default: @@ -8406,7 +8422,7 @@ func awsRestjson1_deserializeDocumentOutboundContactNotPermittedException(v **ty if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8446,7 +8462,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberSummary(v **types.PhoneNumberSum if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -8455,7 +8471,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberSummary(v **types.PhoneNumberSum if !ok { return fmt.Errorf("expected PhoneNumberId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "PhoneNumber": @@ -8464,7 +8480,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberSummary(v **types.PhoneNumberSum if !ok { return fmt.Errorf("expected PhoneNumber to be of type string, got %T instead", value) } - sv.PhoneNumber = &jtv + sv.PhoneNumber = ptr.String(jtv) } case "PhoneNumberCountryCode": @@ -8494,7 +8510,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberSummary(v **types.PhoneNumberSum return nil } -func awsRestjson1_deserializeDocumentPhoneNumberSummaryList(v *[]*types.PhoneNumberSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentPhoneNumberSummaryList(v *[]types.PhoneNumberSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8507,18 +8523,20 @@ func awsRestjson1_deserializeDocumentPhoneNumberSummaryList(v *[]*types.PhoneNum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PhoneNumberSummary + var cv []types.PhoneNumberSummary if *v == nil { - cv = []*types.PhoneNumberSummary{} + cv = []types.PhoneNumberSummary{} } else { cv = *v } for _, value := range shape { - var col *types.PhoneNumberSummary - if err := awsRestjson1_deserializeDocumentPhoneNumberSummary(&col, value); err != nil { + var col types.PhoneNumberSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentPhoneNumberSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8554,7 +8572,7 @@ func awsRestjson1_deserializeDocumentProblemDetail(v **types.ProblemDetail, valu if !ok { return fmt.Errorf("expected ProblemMessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8566,7 +8584,7 @@ func awsRestjson1_deserializeDocumentProblemDetail(v **types.ProblemDetail, valu return nil } -func awsRestjson1_deserializeDocumentProblems(v *[]*types.ProblemDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentProblems(v *[]types.ProblemDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8579,18 +8597,20 @@ func awsRestjson1_deserializeDocumentProblems(v *[]*types.ProblemDetail, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProblemDetail + var cv []types.ProblemDetail if *v == nil { - cv = []*types.ProblemDetail{} + cv = []types.ProblemDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ProblemDetail - if err := awsRestjson1_deserializeDocumentProblemDetail(&col, value); err != nil { + var col types.ProblemDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentProblemDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8626,7 +8646,7 @@ func awsRestjson1_deserializeDocumentPromptSummary(v **types.PromptSummary, valu if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -8635,7 +8655,7 @@ func awsRestjson1_deserializeDocumentPromptSummary(v **types.PromptSummary, valu if !ok { return fmt.Errorf("expected PromptId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -8644,7 +8664,7 @@ func awsRestjson1_deserializeDocumentPromptSummary(v **types.PromptSummary, valu if !ok { return fmt.Errorf("expected PromptName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8656,7 +8676,7 @@ func awsRestjson1_deserializeDocumentPromptSummary(v **types.PromptSummary, valu return nil } -func awsRestjson1_deserializeDocumentPromptSummaryList(v *[]*types.PromptSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentPromptSummaryList(v *[]types.PromptSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8669,18 +8689,20 @@ func awsRestjson1_deserializeDocumentPromptSummaryList(v *[]*types.PromptSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PromptSummary + var cv []types.PromptSummary if *v == nil { - cv = []*types.PromptSummary{} + cv = []types.PromptSummary{} } else { cv = *v } for _, value := range shape { - var col *types.PromptSummary - if err := awsRestjson1_deserializeDocumentPromptSummary(&col, value); err != nil { + var col types.PromptSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentPromptSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8716,7 +8738,7 @@ func awsRestjson1_deserializeDocumentQueueReference(v **types.QueueReference, va if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -8725,7 +8747,7 @@ func awsRestjson1_deserializeDocumentQueueReference(v **types.QueueReference, va if !ok { return fmt.Errorf("expected QueueId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -8765,7 +8787,7 @@ func awsRestjson1_deserializeDocumentQueueSummary(v **types.QueueSummary, value if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -8774,7 +8796,7 @@ func awsRestjson1_deserializeDocumentQueueSummary(v **types.QueueSummary, value if !ok { return fmt.Errorf("expected QueueId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -8783,7 +8805,7 @@ func awsRestjson1_deserializeDocumentQueueSummary(v **types.QueueSummary, value if !ok { return fmt.Errorf("expected QueueName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "QueueType": @@ -8804,7 +8826,7 @@ func awsRestjson1_deserializeDocumentQueueSummary(v **types.QueueSummary, value return nil } -func awsRestjson1_deserializeDocumentQueueSummaryList(v *[]*types.QueueSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentQueueSummaryList(v *[]types.QueueSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8817,18 +8839,20 @@ func awsRestjson1_deserializeDocumentQueueSummaryList(v *[]*types.QueueSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.QueueSummary + var cv []types.QueueSummary if *v == nil { - cv = []*types.QueueSummary{} + cv = []types.QueueSummary{} } else { cv = *v } for _, value := range shape { - var col *types.QueueSummary - if err := awsRestjson1_deserializeDocumentQueueSummary(&col, value); err != nil { + var col types.QueueSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentQueueSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8864,7 +8888,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8904,7 +8928,7 @@ func awsRestjson1_deserializeDocumentRoutingProfile(v **types.RoutingProfile, va if !ok { return fmt.Errorf("expected QueueId to be of type string, got %T instead", value) } - sv.DefaultOutboundQueueId = &jtv + sv.DefaultOutboundQueueId = ptr.String(jtv) } case "Description": @@ -8913,7 +8937,7 @@ func awsRestjson1_deserializeDocumentRoutingProfile(v **types.RoutingProfile, va if !ok { return fmt.Errorf("expected RoutingProfileDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "InstanceId": @@ -8922,7 +8946,7 @@ func awsRestjson1_deserializeDocumentRoutingProfile(v **types.RoutingProfile, va if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "MediaConcurrencies": @@ -8936,7 +8960,7 @@ func awsRestjson1_deserializeDocumentRoutingProfile(v **types.RoutingProfile, va if !ok { return fmt.Errorf("expected RoutingProfileName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RoutingProfileArn": @@ -8945,7 +8969,7 @@ func awsRestjson1_deserializeDocumentRoutingProfile(v **types.RoutingProfile, va if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RoutingProfileArn = &jtv + sv.RoutingProfileArn = ptr.String(jtv) } case "RoutingProfileId": @@ -8954,7 +8978,7 @@ func awsRestjson1_deserializeDocumentRoutingProfile(v **types.RoutingProfile, va if !ok { return fmt.Errorf("expected RoutingProfileId to be of type string, got %T instead", value) } - sv.RoutingProfileId = &jtv + sv.RoutingProfileId = ptr.String(jtv) } case "Tags": @@ -9012,7 +9036,7 @@ func awsRestjson1_deserializeDocumentRoutingProfileQueueConfigSummary(v **types. if err != nil { return err } - sv.Delay = ptr.Int32(int32(i64)) + sv.Delay = int32(i64) } case "Priority": @@ -9025,7 +9049,7 @@ func awsRestjson1_deserializeDocumentRoutingProfileQueueConfigSummary(v **types. if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "QueueArn": @@ -9034,7 +9058,7 @@ func awsRestjson1_deserializeDocumentRoutingProfileQueueConfigSummary(v **types. if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.QueueArn = &jtv + sv.QueueArn = ptr.String(jtv) } case "QueueId": @@ -9043,7 +9067,7 @@ func awsRestjson1_deserializeDocumentRoutingProfileQueueConfigSummary(v **types. if !ok { return fmt.Errorf("expected QueueId to be of type string, got %T instead", value) } - sv.QueueId = &jtv + sv.QueueId = ptr.String(jtv) } case "QueueName": @@ -9052,7 +9076,7 @@ func awsRestjson1_deserializeDocumentRoutingProfileQueueConfigSummary(v **types. if !ok { return fmt.Errorf("expected QueueName to be of type string, got %T instead", value) } - sv.QueueName = &jtv + sv.QueueName = ptr.String(jtv) } default: @@ -9064,7 +9088,7 @@ func awsRestjson1_deserializeDocumentRoutingProfileQueueConfigSummary(v **types. return nil } -func awsRestjson1_deserializeDocumentRoutingProfileQueueConfigSummaryList(v *[]*types.RoutingProfileQueueConfigSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentRoutingProfileQueueConfigSummaryList(v *[]types.RoutingProfileQueueConfigSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9077,18 +9101,20 @@ func awsRestjson1_deserializeDocumentRoutingProfileQueueConfigSummaryList(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RoutingProfileQueueConfigSummary + var cv []types.RoutingProfileQueueConfigSummary if *v == nil { - cv = []*types.RoutingProfileQueueConfigSummary{} + cv = []types.RoutingProfileQueueConfigSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RoutingProfileQueueConfigSummary - if err := awsRestjson1_deserializeDocumentRoutingProfileQueueConfigSummary(&col, value); err != nil { + var col types.RoutingProfileQueueConfigSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentRoutingProfileQueueConfigSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9124,7 +9150,7 @@ func awsRestjson1_deserializeDocumentRoutingProfileSummary(v **types.RoutingProf if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -9133,7 +9159,7 @@ func awsRestjson1_deserializeDocumentRoutingProfileSummary(v **types.RoutingProf if !ok { return fmt.Errorf("expected RoutingProfileId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -9142,7 +9168,7 @@ func awsRestjson1_deserializeDocumentRoutingProfileSummary(v **types.RoutingProf if !ok { return fmt.Errorf("expected RoutingProfileName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -9154,7 +9180,7 @@ func awsRestjson1_deserializeDocumentRoutingProfileSummary(v **types.RoutingProf return nil } -func awsRestjson1_deserializeDocumentRoutingProfileSummaryList(v *[]*types.RoutingProfileSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentRoutingProfileSummaryList(v *[]types.RoutingProfileSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9167,18 +9193,20 @@ func awsRestjson1_deserializeDocumentRoutingProfileSummaryList(v *[]*types.Routi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RoutingProfileSummary + var cv []types.RoutingProfileSummary if *v == nil { - cv = []*types.RoutingProfileSummary{} + cv = []types.RoutingProfileSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RoutingProfileSummary - if err := awsRestjson1_deserializeDocumentRoutingProfileSummary(&col, value); err != nil { + var col types.RoutingProfileSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentRoutingProfileSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9186,7 +9214,7 @@ func awsRestjson1_deserializeDocumentRoutingProfileSummaryList(v *[]*types.Routi return nil } -func awsRestjson1_deserializeDocumentSecurityProfileIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityProfileIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9199,21 +9227,21 @@ func awsRestjson1_deserializeDocumentSecurityProfileIds(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecurityProfileId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9250,7 +9278,7 @@ func awsRestjson1_deserializeDocumentSecurityProfileSummary(v **types.SecurityPr if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -9259,7 +9287,7 @@ func awsRestjson1_deserializeDocumentSecurityProfileSummary(v **types.SecurityPr if !ok { return fmt.Errorf("expected SecurityProfileId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -9268,7 +9296,7 @@ func awsRestjson1_deserializeDocumentSecurityProfileSummary(v **types.SecurityPr if !ok { return fmt.Errorf("expected SecurityProfileName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -9280,7 +9308,7 @@ func awsRestjson1_deserializeDocumentSecurityProfileSummary(v **types.SecurityPr return nil } -func awsRestjson1_deserializeDocumentSecurityProfileSummaryList(v *[]*types.SecurityProfileSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityProfileSummaryList(v *[]types.SecurityProfileSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9293,18 +9321,20 @@ func awsRestjson1_deserializeDocumentSecurityProfileSummaryList(v *[]*types.Secu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SecurityProfileSummary + var cv []types.SecurityProfileSummary if *v == nil { - cv = []*types.SecurityProfileSummary{} + cv = []types.SecurityProfileSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SecurityProfileSummary - if err := awsRestjson1_deserializeDocumentSecurityProfileSummary(&col, value); err != nil { + var col types.SecurityProfileSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentSecurityProfileSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9312,7 +9342,7 @@ func awsRestjson1_deserializeDocumentSecurityProfileSummaryList(v *[]*types.Secu return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9325,21 +9355,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -9389,7 +9419,7 @@ func awsRestjson1_deserializeDocumentThreshold(v **types.Threshold, value interf if err != nil { return err } - sv.ThresholdValue = &f64 + sv.ThresholdValue = ptr.Float64(f64) } default: @@ -9429,7 +9459,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9469,7 +9499,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "DirectoryUserId": @@ -9478,7 +9508,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected DirectoryUserId to be of type string, got %T instead", value) } - sv.DirectoryUserId = &jtv + sv.DirectoryUserId = ptr.String(jtv) } case "HierarchyGroupId": @@ -9487,7 +9517,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected HierarchyGroupId to be of type string, got %T instead", value) } - sv.HierarchyGroupId = &jtv + sv.HierarchyGroupId = ptr.String(jtv) } case "Id": @@ -9496,7 +9526,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected UserId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IdentityInfo": @@ -9515,7 +9545,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected RoutingProfileId to be of type string, got %T instead", value) } - sv.RoutingProfileId = &jtv + sv.RoutingProfileId = ptr.String(jtv) } case "SecurityProfileIds": @@ -9534,7 +9564,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected AgentUsername to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -9574,7 +9604,7 @@ func awsRestjson1_deserializeDocumentUserIdentityInfo(v **types.UserIdentityInfo if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "FirstName": @@ -9583,7 +9613,7 @@ func awsRestjson1_deserializeDocumentUserIdentityInfo(v **types.UserIdentityInfo if !ok { return fmt.Errorf("expected AgentFirstName to be of type string, got %T instead", value) } - sv.FirstName = &jtv + sv.FirstName = ptr.String(jtv) } case "LastName": @@ -9592,7 +9622,7 @@ func awsRestjson1_deserializeDocumentUserIdentityInfo(v **types.UserIdentityInfo if !ok { return fmt.Errorf("expected AgentLastName to be of type string, got %T instead", value) } - sv.LastName = &jtv + sv.LastName = ptr.String(jtv) } default: @@ -9632,7 +9662,7 @@ func awsRestjson1_deserializeDocumentUserNotFoundException(v **types.UserNotFoun if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9676,7 +9706,7 @@ func awsRestjson1_deserializeDocumentUserPhoneConfig(v **types.UserPhoneConfig, if err != nil { return err } - sv.AfterContactWorkTimeLimit = ptr.Int32(int32(i64)) + sv.AfterContactWorkTimeLimit = int32(i64) } case "AutoAccept": @@ -9685,7 +9715,7 @@ func awsRestjson1_deserializeDocumentUserPhoneConfig(v **types.UserPhoneConfig, if !ok { return fmt.Errorf("expected AutoAccept to be of type *bool, got %T instead", value) } - sv.AutoAccept = &jtv + sv.AutoAccept = jtv } case "DeskPhoneNumber": @@ -9694,7 +9724,7 @@ func awsRestjson1_deserializeDocumentUserPhoneConfig(v **types.UserPhoneConfig, if !ok { return fmt.Errorf("expected PhoneNumber to be of type string, got %T instead", value) } - sv.DeskPhoneNumber = &jtv + sv.DeskPhoneNumber = ptr.String(jtv) } case "PhoneType": @@ -9743,7 +9773,7 @@ func awsRestjson1_deserializeDocumentUserSummary(v **types.UserSummary, value in if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -9752,7 +9782,7 @@ func awsRestjson1_deserializeDocumentUserSummary(v **types.UserSummary, value in if !ok { return fmt.Errorf("expected UserId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Username": @@ -9761,7 +9791,7 @@ func awsRestjson1_deserializeDocumentUserSummary(v **types.UserSummary, value in if !ok { return fmt.Errorf("expected AgentUsername to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -9773,7 +9803,7 @@ func awsRestjson1_deserializeDocumentUserSummary(v **types.UserSummary, value in return nil } -func awsRestjson1_deserializeDocumentUserSummaryList(v *[]*types.UserSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentUserSummaryList(v *[]types.UserSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9786,18 +9816,20 @@ func awsRestjson1_deserializeDocumentUserSummaryList(v *[]*types.UserSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserSummary + var cv []types.UserSummary if *v == nil { - cv = []*types.UserSummary{} + cv = []types.UserSummary{} } else { cv = *v } for _, value := range shape { - var col *types.UserSummary - if err := awsRestjson1_deserializeDocumentUserSummary(&col, value); err != nil { + var col types.UserSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentUserSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/connect/go.mod b/service/connect/go.mod index 85ab121f211..11cfe0a7156 100644 --- a/service/connect/go.mod +++ b/service/connect/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/connect go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/connect/serializers.go b/service/connect/serializers.go index 1a7a0007363..52c84db7f94 100644 --- a/service/connect/serializers.go +++ b/service/connect/serializers.go @@ -77,25 +77,19 @@ func awsRestjson1_serializeOpHttpBindingsAssociateRoutingProfileQueuesInput(v *A return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.RoutingProfileId == nil { + if v.RoutingProfileId == nil || len(*v.RoutingProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} } if v.RoutingProfileId != nil { - if len(*v.RoutingProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} - } if err := encoder.SetURI("RoutingProfileId").String(*v.RoutingProfileId); err != nil { return err } @@ -180,13 +174,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateContactFlowInput(v *CreateContact return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } @@ -291,13 +282,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateRoutingProfileInput(v *CreateRout return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } @@ -411,13 +399,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateUserInput(v *CreateUserInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } @@ -537,25 +522,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteUserInput(v *DeleteUserInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -615,25 +594,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeContactFlowInput(v *DescribeCon return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContactFlowId == nil { + if v.ContactFlowId == nil || len(*v.ContactFlowId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ContactFlowId must not be empty")} } if v.ContactFlowId != nil { - if len(*v.ContactFlowId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ContactFlowId must not be empty")} - } if err := encoder.SetURI("ContactFlowId").String(*v.ContactFlowId); err != nil { return err } } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } @@ -693,25 +666,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeRoutingProfileInput(v *Describe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.RoutingProfileId == nil { + if v.RoutingProfileId == nil || len(*v.RoutingProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} } if v.RoutingProfileId != nil { - if len(*v.RoutingProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} - } if err := encoder.SetURI("RoutingProfileId").String(*v.RoutingProfileId); err != nil { return err } @@ -771,25 +738,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeUserInput(v *DescribeUserInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -849,25 +810,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeUserHierarchyGroupInput(v *Desc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HierarchyGroupId == nil { + if v.HierarchyGroupId == nil || len(*v.HierarchyGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HierarchyGroupId must not be empty")} } if v.HierarchyGroupId != nil { - if len(*v.HierarchyGroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HierarchyGroupId must not be empty")} - } if err := encoder.SetURI("HierarchyGroupId").String(*v.HierarchyGroupId); err != nil { return err } } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } @@ -927,13 +882,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeUserHierarchyStructureInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } @@ -1004,25 +956,19 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateRoutingProfileQueuesInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.RoutingProfileId == nil { + if v.RoutingProfileId == nil || len(*v.RoutingProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} } if v.RoutingProfileId != nil { - if len(*v.RoutingProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} - } if err := encoder.SetURI("RoutingProfileId").String(*v.RoutingProfileId); err != nil { return err } @@ -1096,25 +1042,19 @@ func awsRestjson1_serializeOpHttpBindingsGetContactAttributesInput(v *GetContact return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InitialContactId == nil { + if v.InitialContactId == nil || len(*v.InitialContactId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InitialContactId must not be empty")} } if v.InitialContactId != nil { - if len(*v.InitialContactId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InitialContactId must not be empty")} - } if err := encoder.SetURI("InitialContactId").String(*v.InitialContactId); err != nil { return err } } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } @@ -1185,13 +1125,10 @@ func awsRestjson1_serializeOpHttpBindingsGetCurrentMetricDataInput(v *GetCurrent return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } @@ -1225,9 +1162,9 @@ func awsRestjson1_serializeOpDocumentGetCurrentMetricDataInput(v *GetCurrentMetr } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1289,13 +1226,10 @@ func awsRestjson1_serializeOpHttpBindingsGetFederationTokenInput(v *GetFederatio return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } @@ -1366,13 +1300,10 @@ func awsRestjson1_serializeOpHttpBindingsGetMetricDataInput(v *GetMetricDataInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } @@ -1411,9 +1342,9 @@ func awsRestjson1_serializeOpDocumentGetMetricDataInput(v *GetMetricDataInput, v } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1486,20 +1417,17 @@ func awsRestjson1_serializeOpHttpBindingsListContactFlowsInput(v *ListContactFlo } } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1560,20 +1488,17 @@ func awsRestjson1_serializeOpHttpBindingsListHoursOfOperationsInput(v *ListHours return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1634,20 +1559,17 @@ func awsRestjson1_serializeOpHttpBindingsListPhoneNumbersInput(v *ListPhoneNumbe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1720,20 +1642,17 @@ func awsRestjson1_serializeOpHttpBindingsListPromptsInput(v *ListPromptsInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1794,20 +1713,17 @@ func awsRestjson1_serializeOpHttpBindingsListQueuesInput(v *ListQueuesInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1874,33 +1790,27 @@ func awsRestjson1_serializeOpHttpBindingsListRoutingProfileQueuesInput(v *ListRo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.RoutingProfileId == nil { + if v.RoutingProfileId == nil || len(*v.RoutingProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} } if v.RoutingProfileId != nil { - if len(*v.RoutingProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} - } if err := encoder.SetURI("RoutingProfileId").String(*v.RoutingProfileId); err != nil { return err } @@ -1960,20 +1870,17 @@ func awsRestjson1_serializeOpHttpBindingsListRoutingProfilesInput(v *ListRouting return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2034,20 +1941,17 @@ func awsRestjson1_serializeOpHttpBindingsListSecurityProfilesInput(v *ListSecuri return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2108,13 +2012,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2174,20 +2075,17 @@ func awsRestjson1_serializeOpHttpBindingsListUserHierarchyGroupsInput(v *ListUse return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2248,20 +2146,17 @@ func awsRestjson1_serializeOpHttpBindingsListUsersInput(v *ListUsersInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2959,13 +2854,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3039,13 +2931,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3053,10 +2942,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -3210,25 +3096,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateContactFlowContentInput(v *Update return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContactFlowId == nil { + if v.ContactFlowId == nil || len(*v.ContactFlowId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ContactFlowId must not be empty")} } if v.ContactFlowId != nil { - if len(*v.ContactFlowId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ContactFlowId must not be empty")} - } if err := encoder.SetURI("ContactFlowId").String(*v.ContactFlowId); err != nil { return err } } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } @@ -3311,25 +3191,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateContactFlowNameInput(v *UpdateCon return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContactFlowId == nil { + if v.ContactFlowId == nil || len(*v.ContactFlowId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ContactFlowId must not be empty")} } if v.ContactFlowId != nil { - if len(*v.ContactFlowId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ContactFlowId must not be empty")} - } if err := encoder.SetURI("ContactFlowId").String(*v.ContactFlowId); err != nil { return err } } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } @@ -3417,25 +3291,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRoutingProfileConcurrencyInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.RoutingProfileId == nil { + if v.RoutingProfileId == nil || len(*v.RoutingProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} } if v.RoutingProfileId != nil { - if len(*v.RoutingProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} - } if err := encoder.SetURI("RoutingProfileId").String(*v.RoutingProfileId); err != nil { return err } @@ -3520,25 +3388,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRoutingProfileDefaultOutboundQueu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.RoutingProfileId == nil { + if v.RoutingProfileId == nil || len(*v.RoutingProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} } if v.RoutingProfileId != nil { - if len(*v.RoutingProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} - } if err := encoder.SetURI("RoutingProfileId").String(*v.RoutingProfileId); err != nil { return err } @@ -3621,25 +3483,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRoutingProfileNameInput(v *Update return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.RoutingProfileId == nil { + if v.RoutingProfileId == nil || len(*v.RoutingProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} } if v.RoutingProfileId != nil { - if len(*v.RoutingProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} - } if err := encoder.SetURI("RoutingProfileId").String(*v.RoutingProfileId); err != nil { return err } @@ -3727,25 +3583,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRoutingProfileQueuesInput(v *Upda return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.RoutingProfileId == nil { + if v.RoutingProfileId == nil || len(*v.RoutingProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} } if v.RoutingProfileId != nil { - if len(*v.RoutingProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RoutingProfileId must not be empty")} - } if err := encoder.SetURI("RoutingProfileId").String(*v.RoutingProfileId); err != nil { return err } @@ -3830,25 +3680,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUserHierarchyInput(v *UpdateUserH return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -3931,25 +3775,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUserIdentityInfoInput(v *UpdateUs return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -4034,25 +3872,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUserPhoneConfigInput(v *UpdateUse return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -4137,25 +3969,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUserRoutingProfileInput(v *Update return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -4238,25 +4064,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUserSecurityProfilesInput(v *Upda return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InstanceId == nil { + if v.InstanceId == nil || len(*v.InstanceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} } if v.InstanceId != nil { - if len(*v.InstanceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} - } if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -4279,17 +4099,13 @@ func awsRestjson1_serializeOpDocumentUpdateUserSecurityProfilesInput(v *UpdateUs return nil } -func awsRestjson1_serializeDocumentAttributes(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAttributes(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -4339,17 +4155,13 @@ func awsRestjson1_serializeDocumentCurrentMetric(v *types.CurrentMetric, value s return nil } -func awsRestjson1_serializeDocumentCurrentMetrics(v []*types.CurrentMetric, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCurrentMetrics(v []types.CurrentMetric, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCurrentMetric(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCurrentMetric(&v[i], av); err != nil { return err } } @@ -4417,34 +4229,26 @@ func awsRestjson1_serializeDocumentHistoricalMetric(v *types.HistoricalMetric, v return nil } -func awsRestjson1_serializeDocumentHistoricalMetrics(v []*types.HistoricalMetric, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHistoricalMetrics(v []types.HistoricalMetric, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentHistoricalMetric(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentHistoricalMetric(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentMediaConcurrencies(v []*types.MediaConcurrency, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMediaConcurrencies(v []types.MediaConcurrency, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMediaConcurrency(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMediaConcurrency(&v[i], av); err != nil { return err } } @@ -4460,9 +4264,9 @@ func awsRestjson1_serializeDocumentMediaConcurrency(v *types.MediaConcurrency, v ok.String(string(v.Channel)) } - if v.Concurrency != nil { + if v.Concurrency != 0 { ok := object.Key("Concurrency") - ok.Integer(*v.Concurrency) + ok.Integer(v.Concurrency) } return nil @@ -4480,17 +4284,13 @@ func awsRestjson1_serializeDocumentParticipantDetails(v *types.ParticipantDetail return nil } -func awsRestjson1_serializeDocumentQueues(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentQueues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4499,14 +4299,14 @@ func awsRestjson1_serializeDocumentRoutingProfileQueueConfig(v *types.RoutingPro object := value.Object() defer object.Close() - if v.Delay != nil { + if v.Delay != 0 { ok := object.Key("Delay") - ok.Integer(*v.Delay) + ok.Integer(v.Delay) } - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("Priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } if v.QueueReference != nil { @@ -4519,17 +4319,13 @@ func awsRestjson1_serializeDocumentRoutingProfileQueueConfig(v *types.RoutingPro return nil } -func awsRestjson1_serializeDocumentRoutingProfileQueueConfigList(v []*types.RoutingProfileQueueConfig, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRoutingProfileQueueConfigList(v []types.RoutingProfileQueueConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentRoutingProfileQueueConfig(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentRoutingProfileQueueConfig(&v[i], av); err != nil { return err } } @@ -4553,49 +4349,37 @@ func awsRestjson1_serializeDocumentRoutingProfileQueueReference(v *types.Routing return nil } -func awsRestjson1_serializeDocumentRoutingProfileQueueReferenceList(v []*types.RoutingProfileQueueReference, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRoutingProfileQueueReferenceList(v []types.RoutingProfileQueueReference, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentRoutingProfileQueueReference(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentRoutingProfileQueueReference(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentSecurityProfileIds(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSecurityProfileIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -4643,14 +4427,14 @@ func awsRestjson1_serializeDocumentUserPhoneConfig(v *types.UserPhoneConfig, val object := value.Object() defer object.Close() - if v.AfterContactWorkTimeLimit != nil { + if v.AfterContactWorkTimeLimit != 0 { ok := object.Key("AfterContactWorkTimeLimit") - ok.Integer(*v.AfterContactWorkTimeLimit) + ok.Integer(v.AfterContactWorkTimeLimit) } - if v.AutoAccept != nil { + if v.AutoAccept { ok := object.Key("AutoAccept") - ok.Boolean(*v.AutoAccept) + ok.Boolean(v.AutoAccept) } if v.DeskPhoneNumber != nil { diff --git a/service/connect/types/errors.go b/service/connect/types/errors.go index 046819db6f0..1227a3e9339 100644 --- a/service/connect/types/errors.go +++ b/service/connect/types/errors.go @@ -98,7 +98,7 @@ func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smith type InvalidContactFlowException struct { Message *string - Problems []*ProblemDetail + Problems []ProblemDetail } func (e *InvalidContactFlowException) Error() string { diff --git a/service/connect/types/types.go b/service/connect/types/types.go index 083edc0c20b..fa4bdedb42c 100644 --- a/service/connect/types/types.go +++ b/service/connect/types/types.go @@ -39,7 +39,7 @@ type ContactFlow struct { Name *string // One or more tags. - Tags map[string]*string + Tags map[string]string // The type of the contact flow. For descriptions of the available types, see // Choose a Contact Flow Type @@ -110,7 +110,7 @@ type CurrentMetricData struct { type CurrentMetricResult struct { // The set of metrics. - Collections []*CurrentMetricData + Collections []CurrentMetricData // The dimensions for the metrics. Dimensions *Dimensions @@ -134,7 +134,7 @@ type Filters struct { // The queues to use to filter the metrics. You can specify up to 100 queues per // request. - Queues []*string + Queues []string } // Contains information about a hierarchy group. @@ -253,7 +253,7 @@ type HistoricalMetricData struct { type HistoricalMetricResult struct { // The set of metrics. - Collections []*HistoricalMetricData + Collections []HistoricalMetricData // The dimension for the metrics. Dimensions *Dimensions @@ -284,7 +284,7 @@ type MediaConcurrency struct { // The number of contacts an agent can have on a channel simultaneously. // // This member is required. - Concurrency *int32 + Concurrency int32 } // The customer's details. @@ -375,7 +375,7 @@ type RoutingProfile struct { // The channels agents can handle in the Contact Control Panel (CCP) for this // routing profile. - MediaConcurrencies []*MediaConcurrency + MediaConcurrencies []MediaConcurrency // The name of the routing profile. Name *string @@ -387,7 +387,7 @@ type RoutingProfile struct { RoutingProfileId *string // One or more tags. - Tags map[string]*string + Tags map[string]string } // Contains information about the queue and channel for which priority and delay @@ -400,14 +400,14 @@ type RoutingProfileQueueConfig struct { // in the Amazon Connect Administrator Guide. // // This member is required. - Delay *int32 + Delay int32 // The order in which contacts are to be handled for the queue. For more // information, see Queues: priority and delay // (https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing-profiles-priority.html). // // This member is required. - Priority *int32 + Priority int32 // Contains information about a queue resource. // @@ -430,14 +430,14 @@ type RoutingProfileQueueConfigSummary struct { // in the Amazon Connect Administrator Guide. // // This member is required. - Delay *int32 + Delay int32 // The order in which contacts are to be handled for the queue. For more // information, see Queues: priority and delay // (https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing-profiles-priority.html). // // This member is required. - Priority *int32 + Priority int32 // The Amazon Resource Name (ARN) of the queue. // @@ -532,10 +532,10 @@ type User struct { RoutingProfileId *string // The identifiers of the security profiles for the user. - SecurityProfileIds []*string + SecurityProfileIds []string // The tags. - Tags map[string]*string + Tags map[string]string // The user name assigned to the user account. Username *string @@ -566,10 +566,10 @@ type UserPhoneConfig struct { PhoneType PhoneType // The After Call Work (ACW) timeout setting, in seconds. - AfterContactWorkTimeLimit *int32 + AfterContactWorkTimeLimit int32 // The Auto accept setting. - AutoAccept *bool + AutoAccept bool // The phone number for the user's desk phone. DeskPhoneNumber *string diff --git a/service/connect/validators.go b/service/connect/validators.go index b0cd259fea5..9bd29cd4a24 100644 --- a/service/connect/validators.go +++ b/service/connect/validators.go @@ -1156,13 +1156,13 @@ func validateChatMessage(v *types.ChatMessage) error { } } -func validateMediaConcurrencies(v []*types.MediaConcurrency) error { +func validateMediaConcurrencies(v []types.MediaConcurrency) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MediaConcurrencies"} for i := range v { - if err := validateMediaConcurrency(v[i]); err != nil { + if err := validateMediaConcurrency(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1178,9 +1178,6 @@ func validateMediaConcurrency(v *types.MediaConcurrency) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "MediaConcurrency"} - if v.Concurrency == nil { - invalidParams.Add(smithy.NewErrParamRequired("Concurrency")) - } if len(v.Channel) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Channel")) } @@ -1211,12 +1208,6 @@ func validateRoutingProfileQueueConfig(v *types.RoutingProfileQueueConfig) error return nil } invalidParams := smithy.InvalidParamsError{Context: "RoutingProfileQueueConfig"} - if v.Priority == nil { - invalidParams.Add(smithy.NewErrParamRequired("Priority")) - } - if v.Delay == nil { - invalidParams.Add(smithy.NewErrParamRequired("Delay")) - } if v.QueueReference == nil { invalidParams.Add(smithy.NewErrParamRequired("QueueReference")) } else if v.QueueReference != nil { @@ -1231,13 +1222,13 @@ func validateRoutingProfileQueueConfig(v *types.RoutingProfileQueueConfig) error } } -func validateRoutingProfileQueueConfigList(v []*types.RoutingProfileQueueConfig) error { +func validateRoutingProfileQueueConfigList(v []types.RoutingProfileQueueConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RoutingProfileQueueConfigList"} for i := range v { - if err := validateRoutingProfileQueueConfig(v[i]); err != nil { + if err := validateRoutingProfileQueueConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1266,13 +1257,13 @@ func validateRoutingProfileQueueReference(v *types.RoutingProfileQueueReference) } } -func validateRoutingProfileQueueReferenceList(v []*types.RoutingProfileQueueReference) error { +func validateRoutingProfileQueueReferenceList(v []types.RoutingProfileQueueReference) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RoutingProfileQueueReferenceList"} for i := range v { - if err := validateRoutingProfileQueueReference(v[i]); err != nil { + if err := validateRoutingProfileQueueReference(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/connectparticipant/api_op_GetTranscript.go b/service/connectparticipant/api_op_GetTranscript.go index df6c392f708..90c08200abd 100644 --- a/service/connectparticipant/api_op_GetTranscript.go +++ b/service/connectparticipant/api_op_GetTranscript.go @@ -39,7 +39,7 @@ type GetTranscriptInput struct { ContactId *string // The maximum number of results to return in the page. Default: 10. - MaxResults *int32 + MaxResults int32 // The pagination token. Use the value returned previously in the next subsequent // request to retrieve the next set of results. @@ -66,7 +66,7 @@ type GetTranscriptOutput struct { NextToken *string // The list of messages in the session. - Transcript []*types.Item + Transcript []types.Item // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/connectparticipant/deserializers.go b/service/connectparticipant/deserializers.go index 7123448cdfc..83be300a34a 100644 --- a/service/connectparticipant/deserializers.go +++ b/service/connectparticipant/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -418,7 +419,7 @@ func awsRestjson1_deserializeOpDocumentGetTranscriptOutput(v **GetTranscriptOutp if !ok { return fmt.Errorf("expected ContactId to be of type string, got %T instead", value) } - sv.InitialContactId = &jtv + sv.InitialContactId = ptr.String(jtv) } case "NextToken": @@ -427,7 +428,7 @@ func awsRestjson1_deserializeOpDocumentGetTranscriptOutput(v **GetTranscriptOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Transcript": @@ -592,7 +593,7 @@ func awsRestjson1_deserializeOpDocumentSendEventOutput(v **SendEventOutput, valu if !ok { return fmt.Errorf("expected Instant to be of type string, got %T instead", value) } - sv.AbsoluteTime = &jtv + sv.AbsoluteTime = ptr.String(jtv) } case "Id": @@ -601,7 +602,7 @@ func awsRestjson1_deserializeOpDocumentSendEventOutput(v **SendEventOutput, valu if !ok { return fmt.Errorf("expected ChatItemId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -761,7 +762,7 @@ func awsRestjson1_deserializeOpDocumentSendMessageOutput(v **SendMessageOutput, if !ok { return fmt.Errorf("expected Instant to be of type string, got %T instead", value) } - sv.AbsoluteTime = &jtv + sv.AbsoluteTime = ptr.String(jtv) } case "Id": @@ -770,7 +771,7 @@ func awsRestjson1_deserializeOpDocumentSendMessageOutput(v **SendMessageOutput, if !ok { return fmt.Errorf("expected ChatItemId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -954,7 +955,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -994,7 +995,7 @@ func awsRestjson1_deserializeDocumentConnectionCredentials(v **types.ConnectionC if !ok { return fmt.Errorf("expected ParticipantToken to be of type string, got %T instead", value) } - sv.ConnectionToken = &jtv + sv.ConnectionToken = ptr.String(jtv) } case "Expiry": @@ -1003,7 +1004,7 @@ func awsRestjson1_deserializeDocumentConnectionCredentials(v **types.ConnectionC if !ok { return fmt.Errorf("expected ISO8601Datetime to be of type string, got %T instead", value) } - sv.Expiry = &jtv + sv.Expiry = ptr.String(jtv) } default: @@ -1043,7 +1044,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1083,7 +1084,7 @@ func awsRestjson1_deserializeDocumentItem(v **types.Item, value interface{}) err if !ok { return fmt.Errorf("expected Instant to be of type string, got %T instead", value) } - sv.AbsoluteTime = &jtv + sv.AbsoluteTime = ptr.String(jtv) } case "Content": @@ -1092,7 +1093,7 @@ func awsRestjson1_deserializeDocumentItem(v **types.Item, value interface{}) err if !ok { return fmt.Errorf("expected ChatContent to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "ContentType": @@ -1101,7 +1102,7 @@ func awsRestjson1_deserializeDocumentItem(v **types.Item, value interface{}) err if !ok { return fmt.Errorf("expected ChatContentType to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "DisplayName": @@ -1110,7 +1111,7 @@ func awsRestjson1_deserializeDocumentItem(v **types.Item, value interface{}) err if !ok { return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "Id": @@ -1119,7 +1120,7 @@ func awsRestjson1_deserializeDocumentItem(v **types.Item, value interface{}) err if !ok { return fmt.Errorf("expected ChatItemId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ParticipantId": @@ -1128,7 +1129,7 @@ func awsRestjson1_deserializeDocumentItem(v **types.Item, value interface{}) err if !ok { return fmt.Errorf("expected ParticipantId to be of type string, got %T instead", value) } - sv.ParticipantId = &jtv + sv.ParticipantId = ptr.String(jtv) } case "ParticipantRole": @@ -1186,7 +1187,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1198,7 +1199,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc return nil } -func awsRestjson1_deserializeDocumentTranscript(v *[]*types.Item, value interface{}) error { +func awsRestjson1_deserializeDocumentTranscript(v *[]types.Item, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1211,18 +1212,20 @@ func awsRestjson1_deserializeDocumentTranscript(v *[]*types.Item, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Item + var cv []types.Item if *v == nil { - cv = []*types.Item{} + cv = []types.Item{} } else { cv = *v } for _, value := range shape { - var col *types.Item - if err := awsRestjson1_deserializeDocumentItem(&col, value); err != nil { + var col types.Item + destAddr := &col + if err := awsRestjson1_deserializeDocumentItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1258,7 +1261,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected Reason to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1298,7 +1301,7 @@ func awsRestjson1_deserializeDocumentWebsocket(v **types.Websocket, value interf if !ok { return fmt.Errorf("expected ISO8601Datetime to be of type string, got %T instead", value) } - sv.ConnectionExpiry = &jtv + sv.ConnectionExpiry = ptr.String(jtv) } case "Url": @@ -1307,7 +1310,7 @@ func awsRestjson1_deserializeDocumentWebsocket(v **types.Websocket, value interf if !ok { return fmt.Errorf("expected PreSignedConnectionUrl to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: diff --git a/service/connectparticipant/go.mod b/service/connectparticipant/go.mod index 581e477e5b3..35607081a14 100644 --- a/service/connectparticipant/go.mod +++ b/service/connectparticipant/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/connectparticipant go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/connectparticipant/serializers.go b/service/connectparticipant/serializers.go index 4e8bf291567..cea6700c8ad 100644 --- a/service/connectparticipant/serializers.go +++ b/service/connectparticipant/serializers.go @@ -76,11 +76,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateParticipantConnectionInput(v *Cre return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ParticipantToken != nil { + if v.ParticipantToken != nil && len(*v.ParticipantToken) > 0 { locationName := "X-Amz-Bearer" - if len(*v.ParticipantToken) > 0 { - encoder.SetHeader(locationName).String(*v.ParticipantToken) - } + encoder.SetHeader(locationName).String(*v.ParticipantToken) } return nil @@ -162,11 +160,9 @@ func awsRestjson1_serializeOpHttpBindingsDisconnectParticipantInput(v *Disconnec return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConnectionToken != nil { + if v.ConnectionToken != nil && len(*v.ConnectionToken) > 0 { locationName := "X-Amz-Bearer" - if len(*v.ConnectionToken) > 0 { - encoder.SetHeader(locationName).String(*v.ConnectionToken) - } + encoder.SetHeader(locationName).String(*v.ConnectionToken) } return nil @@ -246,11 +242,9 @@ func awsRestjson1_serializeOpHttpBindingsGetTranscriptInput(v *GetTranscriptInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConnectionToken != nil { + if v.ConnectionToken != nil && len(*v.ConnectionToken) > 0 { locationName := "X-Amz-Bearer" - if len(*v.ConnectionToken) > 0 { - encoder.SetHeader(locationName).String(*v.ConnectionToken) - } + encoder.SetHeader(locationName).String(*v.ConnectionToken) } return nil @@ -265,9 +259,9 @@ func awsRestjson1_serializeOpDocumentGetTranscriptInput(v *GetTranscriptInput, v ok.String(*v.ContactId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -357,11 +351,9 @@ func awsRestjson1_serializeOpHttpBindingsSendEventInput(v *SendEventInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConnectionToken != nil { + if v.ConnectionToken != nil && len(*v.ConnectionToken) > 0 { locationName := "X-Amz-Bearer" - if len(*v.ConnectionToken) > 0 { - encoder.SetHeader(locationName).String(*v.ConnectionToken) - } + encoder.SetHeader(locationName).String(*v.ConnectionToken) } return nil @@ -451,11 +443,9 @@ func awsRestjson1_serializeOpHttpBindingsSendMessageInput(v *SendMessageInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConnectionToken != nil { + if v.ConnectionToken != nil && len(*v.ConnectionToken) > 0 { locationName := "X-Amz-Bearer" - if len(*v.ConnectionToken) > 0 { - encoder.SetHeader(locationName).String(*v.ConnectionToken) - } + encoder.SetHeader(locationName).String(*v.ConnectionToken) } return nil @@ -508,9 +498,9 @@ func awsRestjson1_serializeDocumentStartPosition(v *types.StartPosition, value s ok.String(*v.Id) } - if v.MostRecent != nil { + if v.MostRecent != 0 { ok := object.Key("MostRecent") - ok.Integer(*v.MostRecent) + ok.Integer(v.MostRecent) } return nil diff --git a/service/connectparticipant/types/types.go b/service/connectparticipant/types/types.go index 479d8a93e48..759caa90dfe 100644 --- a/service/connectparticipant/types/types.go +++ b/service/connectparticipant/types/types.go @@ -54,7 +54,7 @@ type StartPosition struct { Id *string // The start position of the most recent message where you want to start. - MostRecent *int32 + MostRecent int32 } // The websocket for the participant's connection. diff --git a/service/costandusagereportservice/api_op_DescribeReportDefinitions.go b/service/costandusagereportservice/api_op_DescribeReportDefinitions.go index 8fce67ce14d..26c1ea0b5fa 100644 --- a/service/costandusagereportservice/api_op_DescribeReportDefinitions.go +++ b/service/costandusagereportservice/api_op_DescribeReportDefinitions.go @@ -44,7 +44,7 @@ type DescribeReportDefinitionsOutput struct { NextToken *string // A list of AWS Cost and Usage reports owned by the account. - ReportDefinitions []*types.ReportDefinition + ReportDefinitions []types.ReportDefinition // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/costandusagereportservice/deserializers.go b/service/costandusagereportservice/deserializers.go index 41b91179591..843b2da80d0 100644 --- a/service/costandusagereportservice/deserializers.go +++ b/service/costandusagereportservice/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -680,7 +681,7 @@ func awsAwsjson11_deserializeDocumentDuplicateReportNameException(v **types.Dupl if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -720,7 +721,7 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -788,7 +789,7 @@ func awsAwsjson11_deserializeDocumentReportDefinition(v **types.ReportDefinition if !ok { return fmt.Errorf("expected RefreshClosedReports to be of type *bool, got %T instead", value) } - sv.RefreshClosedReports = &jtv + sv.RefreshClosedReports = ptr.Bool(jtv) } case "ReportName": @@ -797,7 +798,7 @@ func awsAwsjson11_deserializeDocumentReportDefinition(v **types.ReportDefinition if !ok { return fmt.Errorf("expected ReportName to be of type string, got %T instead", value) } - sv.ReportName = &jtv + sv.ReportName = ptr.String(jtv) } case "ReportVersioning": @@ -815,7 +816,7 @@ func awsAwsjson11_deserializeDocumentReportDefinition(v **types.ReportDefinition if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.S3Bucket = &jtv + sv.S3Bucket = ptr.String(jtv) } case "S3Prefix": @@ -824,7 +825,7 @@ func awsAwsjson11_deserializeDocumentReportDefinition(v **types.ReportDefinition if !ok { return fmt.Errorf("expected S3Prefix to be of type string, got %T instead", value) } - sv.S3Prefix = &jtv + sv.S3Prefix = ptr.String(jtv) } case "S3Region": @@ -854,7 +855,7 @@ func awsAwsjson11_deserializeDocumentReportDefinition(v **types.ReportDefinition return nil } -func awsAwsjson11_deserializeDocumentReportDefinitionList(v *[]*types.ReportDefinition, value interface{}) error { +func awsAwsjson11_deserializeDocumentReportDefinitionList(v *[]types.ReportDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -867,18 +868,20 @@ func awsAwsjson11_deserializeDocumentReportDefinitionList(v *[]*types.ReportDefi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReportDefinition + var cv []types.ReportDefinition if *v == nil { - cv = []*types.ReportDefinition{} + cv = []types.ReportDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.ReportDefinition - if err := awsAwsjson11_deserializeDocumentReportDefinition(&col, value); err != nil { + var col types.ReportDefinition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReportDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -914,7 +917,7 @@ func awsAwsjson11_deserializeDocumentReportLimitReachedException(v **types.Repor if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -990,7 +993,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1030,7 +1033,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteReportDefinitionOutput(v **DeleteRe if !ok { return fmt.Errorf("expected DeleteResponseMessage to be of type string, got %T instead", value) } - sv.ResponseMessage = &jtv + sv.ResponseMessage = ptr.String(jtv) } default: @@ -1070,7 +1073,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReportDefinitionsOutput(v **Descr if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ReportDefinitions": diff --git a/service/costandusagereportservice/go.mod b/service/costandusagereportservice/go.mod index 0b2abad8dd6..d423595a202 100644 --- a/service/costandusagereportservice/go.mod +++ b/service/costandusagereportservice/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/costandusagereportservice go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/costexplorer/api_op_CreateCostCategoryDefinition.go b/service/costexplorer/api_op_CreateCostCategoryDefinition.go index f746a0904bf..78b8dcffc57 100644 --- a/service/costexplorer/api_op_CreateCostCategoryDefinition.go +++ b/service/costexplorer/api_op_CreateCostCategoryDefinition.go @@ -44,7 +44,7 @@ type CreateCostCategoryDefinitionInput struct { // (https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategoryRule.html). // // This member is required. - Rules []*types.CostCategoryRule + Rules []types.CostCategoryRule } type CreateCostCategoryDefinitionOutput struct { diff --git a/service/costexplorer/api_op_GetAnomalies.go b/service/costexplorer/api_op_GetAnomalies.go index 7ff60886620..c66c0eb2ef8 100644 --- a/service/costexplorer/api_op_GetAnomalies.go +++ b/service/costexplorer/api_op_GetAnomalies.go @@ -61,7 +61,7 @@ type GetAnomaliesOutput struct { // A list of cost anomalies. // // This member is required. - Anomalies []*types.Anomaly + Anomalies []types.Anomaly // The token to retrieve the next set of results. AWS provides the token when the // response from a previous call has more results than the maximum page size. diff --git a/service/costexplorer/api_op_GetAnomalyMonitors.go b/service/costexplorer/api_op_GetAnomalyMonitors.go index db616da7552..0013a2ba3c1 100644 --- a/service/costexplorer/api_op_GetAnomalyMonitors.go +++ b/service/costexplorer/api_op_GetAnomalyMonitors.go @@ -34,7 +34,7 @@ type GetAnomalyMonitorsInput struct { MaxResults *int32 // A list of cost anomaly monitor ARNs. - MonitorArnList []*string + MonitorArnList []string // The token to retrieve the next set of results. AWS provides the token when the // response from a previous call has more results than the maximum page size. @@ -47,7 +47,7 @@ type GetAnomalyMonitorsOutput struct { // monitor. // // This member is required. - AnomalyMonitors []*types.AnomalyMonitor + AnomalyMonitors []types.AnomalyMonitor // The token to retrieve the next set of results. AWS provides the token when the // response from a previous call has more results than the maximum page size. diff --git a/service/costexplorer/api_op_GetAnomalySubscriptions.go b/service/costexplorer/api_op_GetAnomalySubscriptions.go index 4a9c215e78c..e36fb355e73 100644 --- a/service/costexplorer/api_op_GetAnomalySubscriptions.go +++ b/service/costexplorer/api_op_GetAnomalySubscriptions.go @@ -41,7 +41,7 @@ type GetAnomalySubscriptionsInput struct { NextPageToken *string // A list of cost anomaly subscription ARNs. - SubscriptionArnList []*string + SubscriptionArnList []string } type GetAnomalySubscriptionsOutput struct { @@ -50,7 +50,7 @@ type GetAnomalySubscriptionsOutput struct { // each one. // // This member is required. - AnomalySubscriptions []*types.AnomalySubscription + AnomalySubscriptions []types.AnomalySubscription // The token to retrieve the next set of results. AWS provides the token when the // response from a previous call has more results than the maximum page size. diff --git a/service/costexplorer/api_op_GetCostAndUsage.go b/service/costexplorer/api_op_GetCostAndUsage.go index 399d80382db..62fe605216e 100644 --- a/service/costexplorer/api_op_GetCostAndUsage.go +++ b/service/costexplorer/api_op_GetCostAndUsage.go @@ -50,7 +50,7 @@ type GetCostAndUsageInput struct { // UsageTypeGroups. Metrics is required for GetCostAndUsage requests. // // This member is required. - Metrics []*string + Metrics []string // Sets the start and end dates for retrieving AWS costs. The start date is // inclusive, but the end date is exclusive. For example, if start is 2017-01-01 @@ -77,7 +77,7 @@ type GetCostAndUsageInput struct { // get all tag values, including empty strings. Valid values are AZ, INSTANCE_TYPE, // LEGAL_ENTITY_NAME, LINKED_ACCOUNT, OPERATION, PLATFORM, PURCHASE_TYPE, SERVICE, // TAGS, TENANCY, RECORD_TYPE, and USAGE_TYPE. - GroupBy []*types.GroupDefinition + GroupBy []types.GroupDefinition // The token to retrieve the next set of results. AWS provides the token when the // response from a previous call has more results than the maximum page size. @@ -88,14 +88,14 @@ type GetCostAndUsageOutput struct { // The groups that are specified by the Filter or GroupBy parameters in the // request. - GroupDefinitions []*types.GroupDefinition + GroupDefinitions []types.GroupDefinition // The token for the next set of retrievable results. AWS provides the token when // the response from a previous call has more results than the maximum page size. NextPageToken *string // The time period that is covered by the results in the response. - ResultsByTime []*types.ResultByTime + ResultsByTime []types.ResultByTime // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/costexplorer/api_op_GetCostAndUsageWithResources.go b/service/costexplorer/api_op_GetCostAndUsageWithResources.go index 94e7b9c217c..6e45e9c6bb2 100644 --- a/service/costexplorer/api_op_GetCostAndUsageWithResources.go +++ b/service/costexplorer/api_op_GetCostAndUsageWithResources.go @@ -71,7 +71,7 @@ type GetCostAndUsageWithResourcesInput struct { // You can group Amazon Web Services costs using up to two different groups: // DIMENSION, TAG, COST_CATEGORY. - GroupBy []*types.GroupDefinition + GroupBy []types.GroupDefinition // Which metrics are returned in the query. For more information about blended and // unblended rates, see Why does the "blended" annotation appear on some line items @@ -85,7 +85,7 @@ type GetCostAndUsageWithResourcesInput struct { // and data transfer are measured in different units (for example, hours vs. GB). // To get more meaningful UsageQuantity metrics, filter by UsageType or // UsageTypeGroups. Metrics is required for GetCostAndUsageWithResources requests. - Metrics []*string + Metrics []string // The token to retrieve the next set of results. AWS provides the token when the // response from a previous call has more results than the maximum page size. @@ -96,14 +96,14 @@ type GetCostAndUsageWithResourcesOutput struct { // The groups that are specified by the Filter or GroupBy parameters in the // request. - GroupDefinitions []*types.GroupDefinition + GroupDefinitions []types.GroupDefinition // The token for the next set of retrievable results. AWS provides the token when // the response from a previous call has more results than the maximum page size. NextPageToken *string // The time period that is covered by the results in the response. - ResultsByTime []*types.ResultByTime + ResultsByTime []types.ResultByTime // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/costexplorer/api_op_GetCostForecast.go b/service/costexplorer/api_op_GetCostForecast.go index 324ecfc9983..ff6a51c140e 100644 --- a/service/costexplorer/api_op_GetCostForecast.go +++ b/service/costexplorer/api_op_GetCostForecast.go @@ -79,7 +79,7 @@ type GetCostForecastOutput struct { // The forecasts for your query, in order. For DAILY forecasts, this is a list of // days. For MONTHLY forecasts, this is a list of months. - ForecastResultsByTime []*types.ForecastResult + ForecastResultsByTime []types.ForecastResult // How much you are forecasted to spend over the forecast period, in USD. Total *types.MetricValue diff --git a/service/costexplorer/api_op_GetDimensionValues.go b/service/costexplorer/api_op_GetDimensionValues.go index 4fc1468f3e8..a818ca1c37d 100644 --- a/service/costexplorer/api_op_GetDimensionValues.go +++ b/service/costexplorer/api_op_GetDimensionValues.go @@ -280,7 +280,7 @@ type GetDimensionValuesOutput struct { // for your Savings Plan // // This member is required. - DimensionValues []*types.DimensionValuesWithAttributes + DimensionValues []types.DimensionValuesWithAttributes // The number of results that AWS returned at one time. // diff --git a/service/costexplorer/api_op_GetReservationCoverage.go b/service/costexplorer/api_op_GetReservationCoverage.go index db04f47eef9..1a64ce9901b 100644 --- a/service/costexplorer/api_op_GetReservationCoverage.go +++ b/service/costexplorer/api_op_GetReservationCoverage.go @@ -143,11 +143,11 @@ type GetReservationCoverageInput struct { // * REGION // // * TENANCY - GroupBy []*types.GroupDefinition + GroupBy []types.GroupDefinition // The measurement that you want your reservation coverage reported in. Valid // values are Hour, Unit, and Cost. You can use multiple values in a request. - Metrics []*string + Metrics []string // The token to retrieve the next set of results. AWS provides the token when the // response from a previous call has more results than the maximum page size. @@ -159,7 +159,7 @@ type GetReservationCoverageOutput struct { // The amount of time that your reservations covered. // // This member is required. - CoveragesByTime []*types.CoverageByTime + CoveragesByTime []types.CoverageByTime // The token for the next set of retrievable results. AWS provides the token when // the response from a previous call has more results than the maximum page size. diff --git a/service/costexplorer/api_op_GetReservationPurchaseRecommendation.go b/service/costexplorer/api_op_GetReservationPurchaseRecommendation.go index 7dfc6042cb1..c935fac474f 100644 --- a/service/costexplorer/api_op_GetReservationPurchaseRecommendation.go +++ b/service/costexplorer/api_op_GetReservationPurchaseRecommendation.go @@ -67,7 +67,7 @@ type GetReservationPurchaseRecommendationInput struct { // The number of recommendations that you want returned in a single response // object. - PageSize *int32 + PageSize int32 // The reservation purchase option that you want recommendations for. PaymentOption types.PaymentOption @@ -90,7 +90,7 @@ type GetReservationPurchaseRecommendationOutput struct { NextPageToken *string // Recommendations for reservations to purchase. - Recommendations []*types.ReservationPurchaseRecommendation + Recommendations []types.ReservationPurchaseRecommendation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/costexplorer/api_op_GetReservationUtilization.go b/service/costexplorer/api_op_GetReservationUtilization.go index 8bece00bb70..16365ccdf42 100644 --- a/service/costexplorer/api_op_GetReservationUtilization.go +++ b/service/costexplorer/api_op_GetReservationUtilization.go @@ -82,7 +82,7 @@ type GetReservationUtilizationInput struct { Granularity types.Granularity // Groups only by SUBSCRIPTION_ID. Metadata is included. - GroupBy []*types.GroupDefinition + GroupBy []types.GroupDefinition // The token to retrieve the next set of results. AWS provides the token when the // response from a previous call has more results than the maximum page size. @@ -94,7 +94,7 @@ type GetReservationUtilizationOutput struct { // The amount of time that you used your RIs. // // This member is required. - UtilizationsByTime []*types.UtilizationByTime + UtilizationsByTime []types.UtilizationByTime // The token for the next set of retrievable results. AWS provides the token when // the response from a previous call has more results than the maximum page size. diff --git a/service/costexplorer/api_op_GetRightsizingRecommendation.go b/service/costexplorer/api_op_GetRightsizingRecommendation.go index 70275996074..2bbca09cdd0 100644 --- a/service/costexplorer/api_op_GetRightsizingRecommendation.go +++ b/service/costexplorer/api_op_GetRightsizingRecommendation.go @@ -86,7 +86,7 @@ type GetRightsizingRecommendationInput struct { // The number of recommendations that you want returned in a single response // object. - PageSize *int32 + PageSize int32 } type GetRightsizingRecommendationOutput struct { @@ -105,7 +105,7 @@ type GetRightsizingRecommendationOutput struct { NextPageToken *string // Recommendations to rightsize resources. - RightsizingRecommendations []*types.RightsizingRecommendation + RightsizingRecommendations []types.RightsizingRecommendation // Summary of this recommendation set. Summary *types.RightsizingRecommendationSummary diff --git a/service/costexplorer/api_op_GetSavingsPlansCoverage.go b/service/costexplorer/api_op_GetSavingsPlansCoverage.go index 55a815e1ddb..2328fd30a38 100644 --- a/service/costexplorer/api_op_GetSavingsPlansCoverage.go +++ b/service/costexplorer/api_op_GetSavingsPlansCoverage.go @@ -78,15 +78,15 @@ type GetSavingsPlansCoverageInput struct { Granularity types.Granularity // You can group the data using the attributes INSTANCE_FAMILY, REGION, or SERVICE. - GroupBy []*types.GroupDefinition + GroupBy []types.GroupDefinition // The number of items to be returned in a response. The default is 20, with a // minimum value of 1. - MaxResults *int32 + MaxResults int32 // The measurement that you want your Savings Plans coverage reported in. The only // valid value is SpendCoveredBySavingsPlans. - Metrics []*string + Metrics []string // The token to retrieve the next set of results. Amazon Web Services provides the // token when the response from a previous call has more results than the maximum @@ -99,7 +99,7 @@ type GetSavingsPlansCoverageOutput struct { // The amount of spend that your Savings Plans covered. // // This member is required. - SavingsPlansCoverages []*types.SavingsPlansCoverage + SavingsPlansCoverages []types.SavingsPlansCoverage // The token to retrieve the next set of results. Amazon Web Services provides the // token when the response from a previous call has more results than the maximum diff --git a/service/costexplorer/api_op_GetSavingsPlansPurchaseRecommendation.go b/service/costexplorer/api_op_GetSavingsPlansPurchaseRecommendation.go index 3d3c7596743..4aef3ae0fb8 100644 --- a/service/costexplorer/api_op_GetSavingsPlansPurchaseRecommendation.go +++ b/service/costexplorer/api_op_GetSavingsPlansPurchaseRecommendation.go @@ -74,7 +74,7 @@ type GetSavingsPlansPurchaseRecommendationInput struct { // The number of recommendations that you want returned in a single response // object. - PageSize *int32 + PageSize int32 } type GetSavingsPlansPurchaseRecommendationOutput struct { diff --git a/service/costexplorer/api_op_GetSavingsPlansUtilization.go b/service/costexplorer/api_op_GetSavingsPlansUtilization.go index dc104f4ffff..9d3869b8b83 100644 --- a/service/costexplorer/api_op_GetSavingsPlansUtilization.go +++ b/service/costexplorer/api_op_GetSavingsPlansUtilization.go @@ -79,7 +79,7 @@ type GetSavingsPlansUtilizationOutput struct { // The amount of cost/commitment you used your Savings Plans. This allows you to // specify date ranges. - SavingsPlansUtilizationsByTime []*types.SavingsPlansUtilizationByTime + SavingsPlansUtilizationsByTime []types.SavingsPlansUtilizationByTime // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/costexplorer/api_op_GetSavingsPlansUtilizationDetails.go b/service/costexplorer/api_op_GetSavingsPlansUtilizationDetails.go index d09935dc11d..6823b5d0cfe 100644 --- a/service/costexplorer/api_op_GetSavingsPlansUtilizationDetails.go +++ b/service/costexplorer/api_op_GetSavingsPlansUtilizationDetails.go @@ -64,7 +64,7 @@ type GetSavingsPlansUtilizationDetailsInput struct { // The number of items to be returned in a response. The default is 20, with a // minimum value of 1. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next set of results. Amazon Web Services provides the // token when the response from a previous call has more results than the maximum @@ -78,7 +78,7 @@ type GetSavingsPlansUtilizationDetailsOutput struct { // for your account. // // This member is required. - SavingsPlansUtilizationDetails []*types.SavingsPlansUtilizationDetail + SavingsPlansUtilizationDetails []types.SavingsPlansUtilizationDetail // The time period that you want the usage and costs for. // diff --git a/service/costexplorer/api_op_GetTags.go b/service/costexplorer/api_op_GetTags.go index abffe4c6779..db97cbfb7ba 100644 --- a/service/costexplorer/api_op_GetTags.go +++ b/service/costexplorer/api_op_GetTags.go @@ -59,7 +59,7 @@ type GetTagsOutput struct { // The tags that match your request. // // This member is required. - Tags []*string + Tags []string // The total number of query results. // diff --git a/service/costexplorer/api_op_GetUsageForecast.go b/service/costexplorer/api_op_GetUsageForecast.go index 7aa933fcce9..8f48f3c0e8b 100644 --- a/service/costexplorer/api_op_GetUsageForecast.go +++ b/service/costexplorer/api_op_GetUsageForecast.go @@ -74,7 +74,7 @@ type GetUsageForecastOutput struct { // The forecasts for your query, in order. For DAILY forecasts, this is a list of // days. For MONTHLY forecasts, this is a list of months. - ForecastResultsByTime []*types.ForecastResult + ForecastResultsByTime []types.ForecastResult // How much you're forecasted to use over the forecast period. Total *types.MetricValue diff --git a/service/costexplorer/api_op_ListCostCategoryDefinitions.go b/service/costexplorer/api_op_ListCostCategoryDefinitions.go index ac0ec234980..70cc942f7e5 100644 --- a/service/costexplorer/api_op_ListCostCategoryDefinitions.go +++ b/service/costexplorer/api_op_ListCostCategoryDefinitions.go @@ -39,7 +39,7 @@ type ListCostCategoryDefinitionsInput struct { EffectiveOn *string // The number of entries a paginated response contains. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next set of results. Amazon Web Services provides the // token when the response from a previous call has more results than the maximum @@ -51,7 +51,7 @@ type ListCostCategoryDefinitionsOutput struct { // A reference to a Cost Category containing enough information to identify the // Cost Category. - CostCategoryReferences []*types.CostCategoryReference + CostCategoryReferences []types.CostCategoryReference // The token to retrieve the next set of results. Amazon Web Services provides the // token when the response from a previous call has more results than the maximum diff --git a/service/costexplorer/api_op_UpdateAnomalySubscription.go b/service/costexplorer/api_op_UpdateAnomalySubscription.go index 8322662458f..095f9eceaeb 100644 --- a/service/costexplorer/api_op_UpdateAnomalySubscription.go +++ b/service/costexplorer/api_op_UpdateAnomalySubscription.go @@ -39,10 +39,10 @@ type UpdateAnomalySubscriptionInput struct { Frequency types.AnomalySubscriptionFrequency // A list of cost anomaly subscription ARNs. - MonitorArnList []*string + MonitorArnList []string // The update to the subscriber list. - Subscribers []*types.Subscriber + Subscribers []types.Subscriber // The subscription's new name. SubscriptionName *string diff --git a/service/costexplorer/api_op_UpdateCostCategoryDefinition.go b/service/costexplorer/api_op_UpdateCostCategoryDefinition.go index c52c1232a67..137ffa2fe68 100644 --- a/service/costexplorer/api_op_UpdateCostCategoryDefinition.go +++ b/service/costexplorer/api_op_UpdateCostCategoryDefinition.go @@ -46,7 +46,7 @@ type UpdateCostCategoryDefinitionInput struct { // (https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategoryRule.html). // // This member is required. - Rules []*types.CostCategoryRule + Rules []types.CostCategoryRule } type UpdateCostCategoryDefinitionOutput struct { diff --git a/service/costexplorer/deserializers.go b/service/costexplorer/deserializers.go index ff68cd7dec9..a64166933d5 100644 --- a/service/costexplorer/deserializers.go +++ b/service/costexplorer/deserializers.go @@ -3731,7 +3731,7 @@ func awsAwsjson11_deserializeErrorUnresolvableUsageUnitException(response *smith return output } -func awsAwsjson11_deserializeDocumentAnomalies(v *[]*types.Anomaly, value interface{}) error { +func awsAwsjson11_deserializeDocumentAnomalies(v *[]types.Anomaly, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3744,18 +3744,20 @@ func awsAwsjson11_deserializeDocumentAnomalies(v *[]*types.Anomaly, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Anomaly + var cv []types.Anomaly if *v == nil { - cv = []*types.Anomaly{} + cv = []types.Anomaly{} } else { cv = *v } for _, value := range shape { - var col *types.Anomaly - if err := awsAwsjson11_deserializeDocumentAnomaly(&col, value); err != nil { + var col types.Anomaly + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAnomaly(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3791,7 +3793,7 @@ func awsAwsjson11_deserializeDocumentAnomaly(v **types.Anomaly, value interface{ if !ok { return fmt.Errorf("expected YearMonthDay to be of type string, got %T instead", value) } - sv.AnomalyEndDate = &jtv + sv.AnomalyEndDate = ptr.String(jtv) } case "AnomalyId": @@ -3800,7 +3802,7 @@ func awsAwsjson11_deserializeDocumentAnomaly(v **types.Anomaly, value interface{ if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AnomalyId = &jtv + sv.AnomalyId = ptr.String(jtv) } case "AnomalyScore": @@ -3814,7 +3816,7 @@ func awsAwsjson11_deserializeDocumentAnomaly(v **types.Anomaly, value interface{ if !ok { return fmt.Errorf("expected YearMonthDay to be of type string, got %T instead", value) } - sv.AnomalyStartDate = &jtv + sv.AnomalyStartDate = ptr.String(jtv) } case "DimensionValue": @@ -3823,7 +3825,7 @@ func awsAwsjson11_deserializeDocumentAnomaly(v **types.Anomaly, value interface{ if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.DimensionValue = &jtv + sv.DimensionValue = ptr.String(jtv) } case "Feedback": @@ -3846,7 +3848,7 @@ func awsAwsjson11_deserializeDocumentAnomaly(v **types.Anomaly, value interface{ if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MonitorArn = &jtv + sv.MonitorArn = ptr.String(jtv) } case "RootCauses": @@ -3891,7 +3893,7 @@ func awsAwsjson11_deserializeDocumentAnomalyMonitor(v **types.AnomalyMonitor, va if !ok { return fmt.Errorf("expected YearMonthDay to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "DimensionalValueCount": @@ -3904,7 +3906,7 @@ func awsAwsjson11_deserializeDocumentAnomalyMonitor(v **types.AnomalyMonitor, va if err != nil { return err } - sv.DimensionalValueCount = ptr.Int32(int32(i64)) + sv.DimensionalValueCount = int32(i64) } case "LastEvaluatedDate": @@ -3913,7 +3915,7 @@ func awsAwsjson11_deserializeDocumentAnomalyMonitor(v **types.AnomalyMonitor, va if !ok { return fmt.Errorf("expected YearMonthDay to be of type string, got %T instead", value) } - sv.LastEvaluatedDate = &jtv + sv.LastEvaluatedDate = ptr.String(jtv) } case "LastUpdatedDate": @@ -3922,7 +3924,7 @@ func awsAwsjson11_deserializeDocumentAnomalyMonitor(v **types.AnomalyMonitor, va if !ok { return fmt.Errorf("expected YearMonthDay to be of type string, got %T instead", value) } - sv.LastUpdatedDate = &jtv + sv.LastUpdatedDate = ptr.String(jtv) } case "MonitorArn": @@ -3931,7 +3933,7 @@ func awsAwsjson11_deserializeDocumentAnomalyMonitor(v **types.AnomalyMonitor, va if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MonitorArn = &jtv + sv.MonitorArn = ptr.String(jtv) } case "MonitorDimension": @@ -3949,7 +3951,7 @@ func awsAwsjson11_deserializeDocumentAnomalyMonitor(v **types.AnomalyMonitor, va if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MonitorName = &jtv + sv.MonitorName = ptr.String(jtv) } case "MonitorSpecification": @@ -3975,7 +3977,7 @@ func awsAwsjson11_deserializeDocumentAnomalyMonitor(v **types.AnomalyMonitor, va return nil } -func awsAwsjson11_deserializeDocumentAnomalyMonitors(v *[]*types.AnomalyMonitor, value interface{}) error { +func awsAwsjson11_deserializeDocumentAnomalyMonitors(v *[]types.AnomalyMonitor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3988,18 +3990,20 @@ func awsAwsjson11_deserializeDocumentAnomalyMonitors(v *[]*types.AnomalyMonitor, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AnomalyMonitor + var cv []types.AnomalyMonitor if *v == nil { - cv = []*types.AnomalyMonitor{} + cv = []types.AnomalyMonitor{} } else { cv = *v } for _, value := range shape { - var col *types.AnomalyMonitor - if err := awsAwsjson11_deserializeDocumentAnomalyMonitor(&col, value); err != nil { + var col types.AnomalyMonitor + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAnomalyMonitor(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4039,7 +4043,7 @@ func awsAwsjson11_deserializeDocumentAnomalyScore(v **types.AnomalyScore, value if err != nil { return err } - sv.CurrentScore = &f64 + sv.CurrentScore = f64 } case "MaxScore": @@ -4052,7 +4056,7 @@ func awsAwsjson11_deserializeDocumentAnomalyScore(v **types.AnomalyScore, value if err != nil { return err } - sv.MaxScore = &f64 + sv.MaxScore = f64 } default: @@ -4092,7 +4096,7 @@ func awsAwsjson11_deserializeDocumentAnomalySubscription(v **types.AnomalySubscr if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "Frequency": @@ -4120,7 +4124,7 @@ func awsAwsjson11_deserializeDocumentAnomalySubscription(v **types.AnomalySubscr if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.SubscriptionArn = &jtv + sv.SubscriptionArn = ptr.String(jtv) } case "SubscriptionName": @@ -4129,7 +4133,7 @@ func awsAwsjson11_deserializeDocumentAnomalySubscription(v **types.AnomalySubscr if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.SubscriptionName = &jtv + sv.SubscriptionName = ptr.String(jtv) } case "Threshold": @@ -4142,7 +4146,7 @@ func awsAwsjson11_deserializeDocumentAnomalySubscription(v **types.AnomalySubscr if err != nil { return err } - sv.Threshold = &f64 + sv.Threshold = ptr.Float64(f64) } default: @@ -4154,7 +4158,7 @@ func awsAwsjson11_deserializeDocumentAnomalySubscription(v **types.AnomalySubscr return nil } -func awsAwsjson11_deserializeDocumentAnomalySubscriptions(v *[]*types.AnomalySubscription, value interface{}) error { +func awsAwsjson11_deserializeDocumentAnomalySubscriptions(v *[]types.AnomalySubscription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4167,18 +4171,20 @@ func awsAwsjson11_deserializeDocumentAnomalySubscriptions(v *[]*types.AnomalySub return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AnomalySubscription + var cv []types.AnomalySubscription if *v == nil { - cv = []*types.AnomalySubscription{} + cv = []types.AnomalySubscription{} } else { cv = *v } for _, value := range shape { - var col *types.AnomalySubscription - if err := awsAwsjson11_deserializeDocumentAnomalySubscription(&col, value); err != nil { + var col types.AnomalySubscription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAnomalySubscription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4186,7 +4192,7 @@ func awsAwsjson11_deserializeDocumentAnomalySubscriptions(v *[]*types.AnomalySub return nil } -func awsAwsjson11_deserializeDocumentAttributes(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttributes(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4199,21 +4205,21 @@ func awsAwsjson11_deserializeDocumentAttributes(v *map[string]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -4250,7 +4256,7 @@ func awsAwsjson11_deserializeDocumentBillExpirationException(v **types.BillExpir if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4290,7 +4296,7 @@ func awsAwsjson11_deserializeDocumentCostCategory(v **types.CostCategory, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CostCategoryArn = &jtv + sv.CostCategoryArn = ptr.String(jtv) } case "EffectiveEnd": @@ -4299,7 +4305,7 @@ func awsAwsjson11_deserializeDocumentCostCategory(v **types.CostCategory, value if !ok { return fmt.Errorf("expected ZonedDateTime to be of type string, got %T instead", value) } - sv.EffectiveEnd = &jtv + sv.EffectiveEnd = ptr.String(jtv) } case "EffectiveStart": @@ -4308,7 +4314,7 @@ func awsAwsjson11_deserializeDocumentCostCategory(v **types.CostCategory, value if !ok { return fmt.Errorf("expected ZonedDateTime to be of type string, got %T instead", value) } - sv.EffectiveStart = &jtv + sv.EffectiveStart = ptr.String(jtv) } case "Name": @@ -4317,7 +4323,7 @@ func awsAwsjson11_deserializeDocumentCostCategory(v **types.CostCategory, value if !ok { return fmt.Errorf("expected CostCategoryName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ProcessingStatus": @@ -4397,7 +4403,7 @@ func awsAwsjson11_deserializeDocumentCostCategoryProcessingStatus(v **types.Cost return nil } -func awsAwsjson11_deserializeDocumentCostCategoryProcessingStatusList(v *[]*types.CostCategoryProcessingStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentCostCategoryProcessingStatusList(v *[]types.CostCategoryProcessingStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4410,18 +4416,20 @@ func awsAwsjson11_deserializeDocumentCostCategoryProcessingStatusList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CostCategoryProcessingStatus + var cv []types.CostCategoryProcessingStatus if *v == nil { - cv = []*types.CostCategoryProcessingStatus{} + cv = []types.CostCategoryProcessingStatus{} } else { cv = *v } for _, value := range shape { - var col *types.CostCategoryProcessingStatus - if err := awsAwsjson11_deserializeDocumentCostCategoryProcessingStatus(&col, value); err != nil { + var col types.CostCategoryProcessingStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCostCategoryProcessingStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4457,7 +4465,7 @@ func awsAwsjson11_deserializeDocumentCostCategoryReference(v **types.CostCategor if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CostCategoryArn = &jtv + sv.CostCategoryArn = ptr.String(jtv) } case "EffectiveEnd": @@ -4466,7 +4474,7 @@ func awsAwsjson11_deserializeDocumentCostCategoryReference(v **types.CostCategor if !ok { return fmt.Errorf("expected ZonedDateTime to be of type string, got %T instead", value) } - sv.EffectiveEnd = &jtv + sv.EffectiveEnd = ptr.String(jtv) } case "EffectiveStart": @@ -4475,7 +4483,7 @@ func awsAwsjson11_deserializeDocumentCostCategoryReference(v **types.CostCategor if !ok { return fmt.Errorf("expected ZonedDateTime to be of type string, got %T instead", value) } - sv.EffectiveStart = &jtv + sv.EffectiveStart = ptr.String(jtv) } case "Name": @@ -4484,7 +4492,7 @@ func awsAwsjson11_deserializeDocumentCostCategoryReference(v **types.CostCategor if !ok { return fmt.Errorf("expected CostCategoryName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NumberOfRules": @@ -4497,7 +4505,7 @@ func awsAwsjson11_deserializeDocumentCostCategoryReference(v **types.CostCategor if err != nil { return err } - sv.NumberOfRules = ptr.Int32(int32(i64)) + sv.NumberOfRules = int32(i64) } case "ProcessingStatus": @@ -4519,7 +4527,7 @@ func awsAwsjson11_deserializeDocumentCostCategoryReference(v **types.CostCategor return nil } -func awsAwsjson11_deserializeDocumentCostCategoryReferencesList(v *[]*types.CostCategoryReference, value interface{}) error { +func awsAwsjson11_deserializeDocumentCostCategoryReferencesList(v *[]types.CostCategoryReference, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4532,18 +4540,20 @@ func awsAwsjson11_deserializeDocumentCostCategoryReferencesList(v *[]*types.Cost return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CostCategoryReference + var cv []types.CostCategoryReference if *v == nil { - cv = []*types.CostCategoryReference{} + cv = []types.CostCategoryReference{} } else { cv = *v } for _, value := range shape { - var col *types.CostCategoryReference - if err := awsAwsjson11_deserializeDocumentCostCategoryReference(&col, value); err != nil { + var col types.CostCategoryReference + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCostCategoryReference(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4584,7 +4594,7 @@ func awsAwsjson11_deserializeDocumentCostCategoryRule(v **types.CostCategoryRule if !ok { return fmt.Errorf("expected CostCategoryValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4596,7 +4606,7 @@ func awsAwsjson11_deserializeDocumentCostCategoryRule(v **types.CostCategoryRule return nil } -func awsAwsjson11_deserializeDocumentCostCategoryRulesList(v *[]*types.CostCategoryRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentCostCategoryRulesList(v *[]types.CostCategoryRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4609,18 +4619,20 @@ func awsAwsjson11_deserializeDocumentCostCategoryRulesList(v *[]*types.CostCateg return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CostCategoryRule + var cv []types.CostCategoryRule if *v == nil { - cv = []*types.CostCategoryRule{} + cv = []types.CostCategoryRule{} } else { cv = *v } for _, value := range shape { - var col *types.CostCategoryRule - if err := awsAwsjson11_deserializeDocumentCostCategoryRule(&col, value); err != nil { + var col types.CostCategoryRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCostCategoryRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4656,7 +4668,7 @@ func awsAwsjson11_deserializeDocumentCostCategoryValues(v **types.CostCategoryVa if !ok { return fmt.Errorf("expected CostCategoryName to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "MatchOptions": @@ -4678,7 +4690,7 @@ func awsAwsjson11_deserializeDocumentCostCategoryValues(v **types.CostCategoryVa return nil } -func awsAwsjson11_deserializeDocumentCostCategoryValuesList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCostCategoryValuesList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4691,21 +4703,21 @@ func awsAwsjson11_deserializeDocumentCostCategoryValuesList(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected CostCategoryValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4834,7 +4846,7 @@ func awsAwsjson11_deserializeDocumentCoverageCost(v **types.CoverageCost, value if !ok { return fmt.Errorf("expected OnDemandCost to be of type string, got %T instead", value) } - sv.OnDemandCost = &jtv + sv.OnDemandCost = ptr.String(jtv) } default: @@ -4874,7 +4886,7 @@ func awsAwsjson11_deserializeDocumentCoverageHours(v **types.CoverageHours, valu if !ok { return fmt.Errorf("expected CoverageHoursPercentage to be of type string, got %T instead", value) } - sv.CoverageHoursPercentage = &jtv + sv.CoverageHoursPercentage = ptr.String(jtv) } case "OnDemandHours": @@ -4883,7 +4895,7 @@ func awsAwsjson11_deserializeDocumentCoverageHours(v **types.CoverageHours, valu if !ok { return fmt.Errorf("expected OnDemandHours to be of type string, got %T instead", value) } - sv.OnDemandHours = &jtv + sv.OnDemandHours = ptr.String(jtv) } case "ReservedHours": @@ -4892,7 +4904,7 @@ func awsAwsjson11_deserializeDocumentCoverageHours(v **types.CoverageHours, valu if !ok { return fmt.Errorf("expected ReservedHours to be of type string, got %T instead", value) } - sv.ReservedHours = &jtv + sv.ReservedHours = ptr.String(jtv) } case "TotalRunningHours": @@ -4901,7 +4913,7 @@ func awsAwsjson11_deserializeDocumentCoverageHours(v **types.CoverageHours, valu if !ok { return fmt.Errorf("expected TotalRunningHours to be of type string, got %T instead", value) } - sv.TotalRunningHours = &jtv + sv.TotalRunningHours = ptr.String(jtv) } default: @@ -4941,7 +4953,7 @@ func awsAwsjson11_deserializeDocumentCoverageNormalizedUnits(v **types.CoverageN if !ok { return fmt.Errorf("expected CoverageNormalizedUnitsPercentage to be of type string, got %T instead", value) } - sv.CoverageNormalizedUnitsPercentage = &jtv + sv.CoverageNormalizedUnitsPercentage = ptr.String(jtv) } case "OnDemandNormalizedUnits": @@ -4950,7 +4962,7 @@ func awsAwsjson11_deserializeDocumentCoverageNormalizedUnits(v **types.CoverageN if !ok { return fmt.Errorf("expected OnDemandNormalizedUnits to be of type string, got %T instead", value) } - sv.OnDemandNormalizedUnits = &jtv + sv.OnDemandNormalizedUnits = ptr.String(jtv) } case "ReservedNormalizedUnits": @@ -4959,7 +4971,7 @@ func awsAwsjson11_deserializeDocumentCoverageNormalizedUnits(v **types.CoverageN if !ok { return fmt.Errorf("expected ReservedNormalizedUnits to be of type string, got %T instead", value) } - sv.ReservedNormalizedUnits = &jtv + sv.ReservedNormalizedUnits = ptr.String(jtv) } case "TotalRunningNormalizedUnits": @@ -4968,7 +4980,7 @@ func awsAwsjson11_deserializeDocumentCoverageNormalizedUnits(v **types.CoverageN if !ok { return fmt.Errorf("expected TotalRunningNormalizedUnits to be of type string, got %T instead", value) } - sv.TotalRunningNormalizedUnits = &jtv + sv.TotalRunningNormalizedUnits = ptr.String(jtv) } default: @@ -4980,7 +4992,7 @@ func awsAwsjson11_deserializeDocumentCoverageNormalizedUnits(v **types.CoverageN return nil } -func awsAwsjson11_deserializeDocumentCoveragesByTime(v *[]*types.CoverageByTime, value interface{}) error { +func awsAwsjson11_deserializeDocumentCoveragesByTime(v *[]types.CoverageByTime, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4993,18 +5005,20 @@ func awsAwsjson11_deserializeDocumentCoveragesByTime(v *[]*types.CoverageByTime, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CoverageByTime + var cv []types.CoverageByTime if *v == nil { - cv = []*types.CoverageByTime{} + cv = []types.CoverageByTime{} } else { cv = *v } for _, value := range shape { - var col *types.CoverageByTime - if err := awsAwsjson11_deserializeDocumentCoverageByTime(&col, value); err != nil { + var col types.CoverageByTime + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCoverageByTime(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5040,7 +5054,7 @@ func awsAwsjson11_deserializeDocumentCurrentInstance(v **types.CurrentInstance, if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "InstanceName": @@ -5049,7 +5063,7 @@ func awsAwsjson11_deserializeDocumentCurrentInstance(v **types.CurrentInstance, if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.InstanceName = &jtv + sv.InstanceName = ptr.String(jtv) } case "MonthlyCost": @@ -5058,7 +5072,7 @@ func awsAwsjson11_deserializeDocumentCurrentInstance(v **types.CurrentInstance, if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MonthlyCost = &jtv + sv.MonthlyCost = ptr.String(jtv) } case "OnDemandHoursInLookbackPeriod": @@ -5067,7 +5081,7 @@ func awsAwsjson11_deserializeDocumentCurrentInstance(v **types.CurrentInstance, if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.OnDemandHoursInLookbackPeriod = &jtv + sv.OnDemandHoursInLookbackPeriod = ptr.String(jtv) } case "ReservationCoveredHoursInLookbackPeriod": @@ -5076,7 +5090,7 @@ func awsAwsjson11_deserializeDocumentCurrentInstance(v **types.CurrentInstance, if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.ReservationCoveredHoursInLookbackPeriod = &jtv + sv.ReservationCoveredHoursInLookbackPeriod = ptr.String(jtv) } case "ResourceDetails": @@ -5090,7 +5104,7 @@ func awsAwsjson11_deserializeDocumentCurrentInstance(v **types.CurrentInstance, if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceUtilization": @@ -5104,7 +5118,7 @@ func awsAwsjson11_deserializeDocumentCurrentInstance(v **types.CurrentInstance, if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.SavingsPlansCoveredHoursInLookbackPeriod = &jtv + sv.SavingsPlansCoveredHoursInLookbackPeriod = ptr.String(jtv) } case "Tags": @@ -5118,7 +5132,7 @@ func awsAwsjson11_deserializeDocumentCurrentInstance(v **types.CurrentInstance, if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.TotalRunningHoursInLookbackPeriod = &jtv + sv.TotalRunningHoursInLookbackPeriod = ptr.String(jtv) } default: @@ -5158,7 +5172,7 @@ func awsAwsjson11_deserializeDocumentDataUnavailableException(v **types.DataUnav if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5198,7 +5212,7 @@ func awsAwsjson11_deserializeDocumentDateInterval(v **types.DateInterval, value if !ok { return fmt.Errorf("expected YearMonthDay to be of type string, got %T instead", value) } - sv.End = &jtv + sv.End = ptr.String(jtv) } case "Start": @@ -5207,7 +5221,7 @@ func awsAwsjson11_deserializeDocumentDateInterval(v **types.DateInterval, value if !ok { return fmt.Errorf("expected YearMonthDay to be of type string, got %T instead", value) } - sv.Start = &jtv + sv.Start = ptr.String(jtv) } default: @@ -5302,7 +5316,7 @@ func awsAwsjson11_deserializeDocumentDimensionValuesWithAttributes(v **types.Dim if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5314,7 +5328,7 @@ func awsAwsjson11_deserializeDocumentDimensionValuesWithAttributes(v **types.Dim return nil } -func awsAwsjson11_deserializeDocumentDimensionValuesWithAttributesList(v *[]*types.DimensionValuesWithAttributes, value interface{}) error { +func awsAwsjson11_deserializeDocumentDimensionValuesWithAttributesList(v *[]types.DimensionValuesWithAttributes, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5327,18 +5341,20 @@ func awsAwsjson11_deserializeDocumentDimensionValuesWithAttributesList(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DimensionValuesWithAttributes + var cv []types.DimensionValuesWithAttributes if *v == nil { - cv = []*types.DimensionValuesWithAttributes{} + cv = []types.DimensionValuesWithAttributes{} } else { cv = *v } for _, value := range shape { - var col *types.DimensionValuesWithAttributes - if err := awsAwsjson11_deserializeDocumentDimensionValuesWithAttributes(&col, value); err != nil { + var col types.DimensionValuesWithAttributes + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDimensionValuesWithAttributes(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5374,7 +5390,7 @@ func awsAwsjson11_deserializeDocumentEBSResourceUtilization(v **types.EBSResourc if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EbsReadBytesPerSecond = &jtv + sv.EbsReadBytesPerSecond = ptr.String(jtv) } case "EbsReadOpsPerSecond": @@ -5383,7 +5399,7 @@ func awsAwsjson11_deserializeDocumentEBSResourceUtilization(v **types.EBSResourc if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EbsReadOpsPerSecond = &jtv + sv.EbsReadOpsPerSecond = ptr.String(jtv) } case "EbsWriteBytesPerSecond": @@ -5392,7 +5408,7 @@ func awsAwsjson11_deserializeDocumentEBSResourceUtilization(v **types.EBSResourc if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EbsWriteBytesPerSecond = &jtv + sv.EbsWriteBytesPerSecond = ptr.String(jtv) } case "EbsWriteOpsPerSecond": @@ -5401,7 +5417,7 @@ func awsAwsjson11_deserializeDocumentEBSResourceUtilization(v **types.EBSResourc if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EbsWriteOpsPerSecond = &jtv + sv.EbsWriteOpsPerSecond = ptr.String(jtv) } default: @@ -5441,7 +5457,7 @@ func awsAwsjson11_deserializeDocumentEC2InstanceDetails(v **types.EC2InstanceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "CurrentGeneration": @@ -5450,7 +5466,7 @@ func awsAwsjson11_deserializeDocumentEC2InstanceDetails(v **types.EC2InstanceDet if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.CurrentGeneration = &jtv + sv.CurrentGeneration = jtv } case "Family": @@ -5459,7 +5475,7 @@ func awsAwsjson11_deserializeDocumentEC2InstanceDetails(v **types.EC2InstanceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Family = &jtv + sv.Family = ptr.String(jtv) } case "InstanceType": @@ -5468,7 +5484,7 @@ func awsAwsjson11_deserializeDocumentEC2InstanceDetails(v **types.EC2InstanceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "Platform": @@ -5477,7 +5493,7 @@ func awsAwsjson11_deserializeDocumentEC2InstanceDetails(v **types.EC2InstanceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "Region": @@ -5486,7 +5502,7 @@ func awsAwsjson11_deserializeDocumentEC2InstanceDetails(v **types.EC2InstanceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "SizeFlexEligible": @@ -5495,7 +5511,7 @@ func awsAwsjson11_deserializeDocumentEC2InstanceDetails(v **types.EC2InstanceDet if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.SizeFlexEligible = &jtv + sv.SizeFlexEligible = jtv } case "Tenancy": @@ -5504,7 +5520,7 @@ func awsAwsjson11_deserializeDocumentEC2InstanceDetails(v **types.EC2InstanceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Tenancy = &jtv + sv.Tenancy = ptr.String(jtv) } default: @@ -5544,7 +5560,7 @@ func awsAwsjson11_deserializeDocumentEC2ResourceDetails(v **types.EC2ResourceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.HourlyOnDemandRate = &jtv + sv.HourlyOnDemandRate = ptr.String(jtv) } case "InstanceType": @@ -5553,7 +5569,7 @@ func awsAwsjson11_deserializeDocumentEC2ResourceDetails(v **types.EC2ResourceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "Memory": @@ -5562,7 +5578,7 @@ func awsAwsjson11_deserializeDocumentEC2ResourceDetails(v **types.EC2ResourceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Memory = &jtv + sv.Memory = ptr.String(jtv) } case "NetworkPerformance": @@ -5571,7 +5587,7 @@ func awsAwsjson11_deserializeDocumentEC2ResourceDetails(v **types.EC2ResourceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NetworkPerformance = &jtv + sv.NetworkPerformance = ptr.String(jtv) } case "Platform": @@ -5580,7 +5596,7 @@ func awsAwsjson11_deserializeDocumentEC2ResourceDetails(v **types.EC2ResourceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "Region": @@ -5589,7 +5605,7 @@ func awsAwsjson11_deserializeDocumentEC2ResourceDetails(v **types.EC2ResourceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "Sku": @@ -5598,7 +5614,7 @@ func awsAwsjson11_deserializeDocumentEC2ResourceDetails(v **types.EC2ResourceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Sku = &jtv + sv.Sku = ptr.String(jtv) } case "Storage": @@ -5607,7 +5623,7 @@ func awsAwsjson11_deserializeDocumentEC2ResourceDetails(v **types.EC2ResourceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Storage = &jtv + sv.Storage = ptr.String(jtv) } case "Vcpu": @@ -5616,7 +5632,7 @@ func awsAwsjson11_deserializeDocumentEC2ResourceDetails(v **types.EC2ResourceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Vcpu = &jtv + sv.Vcpu = ptr.String(jtv) } default: @@ -5661,7 +5677,7 @@ func awsAwsjson11_deserializeDocumentEC2ResourceUtilization(v **types.EC2Resourc if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MaxCpuUtilizationPercentage = &jtv + sv.MaxCpuUtilizationPercentage = ptr.String(jtv) } case "MaxMemoryUtilizationPercentage": @@ -5670,7 +5686,7 @@ func awsAwsjson11_deserializeDocumentEC2ResourceUtilization(v **types.EC2Resourc if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MaxMemoryUtilizationPercentage = &jtv + sv.MaxMemoryUtilizationPercentage = ptr.String(jtv) } case "MaxStorageUtilizationPercentage": @@ -5679,7 +5695,7 @@ func awsAwsjson11_deserializeDocumentEC2ResourceUtilization(v **types.EC2Resourc if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MaxStorageUtilizationPercentage = &jtv + sv.MaxStorageUtilizationPercentage = ptr.String(jtv) } default: @@ -5759,7 +5775,7 @@ func awsAwsjson11_deserializeDocumentElastiCacheInstanceDetails(v **types.Elasti if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.CurrentGeneration = &jtv + sv.CurrentGeneration = jtv } case "Family": @@ -5768,7 +5784,7 @@ func awsAwsjson11_deserializeDocumentElastiCacheInstanceDetails(v **types.Elasti if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Family = &jtv + sv.Family = ptr.String(jtv) } case "NodeType": @@ -5777,7 +5793,7 @@ func awsAwsjson11_deserializeDocumentElastiCacheInstanceDetails(v **types.Elasti if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NodeType = &jtv + sv.NodeType = ptr.String(jtv) } case "ProductDescription": @@ -5786,7 +5802,7 @@ func awsAwsjson11_deserializeDocumentElastiCacheInstanceDetails(v **types.Elasti if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.ProductDescription = &jtv + sv.ProductDescription = ptr.String(jtv) } case "Region": @@ -5795,7 +5811,7 @@ func awsAwsjson11_deserializeDocumentElastiCacheInstanceDetails(v **types.Elasti if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "SizeFlexEligible": @@ -5804,7 +5820,7 @@ func awsAwsjson11_deserializeDocumentElastiCacheInstanceDetails(v **types.Elasti if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.SizeFlexEligible = &jtv + sv.SizeFlexEligible = jtv } default: @@ -5844,7 +5860,7 @@ func awsAwsjson11_deserializeDocumentESInstanceDetails(v **types.ESInstanceDetai if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.CurrentGeneration = &jtv + sv.CurrentGeneration = jtv } case "InstanceClass": @@ -5853,7 +5869,7 @@ func awsAwsjson11_deserializeDocumentESInstanceDetails(v **types.ESInstanceDetai if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.InstanceClass = &jtv + sv.InstanceClass = ptr.String(jtv) } case "InstanceSize": @@ -5862,7 +5878,7 @@ func awsAwsjson11_deserializeDocumentESInstanceDetails(v **types.ESInstanceDetai if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.InstanceSize = &jtv + sv.InstanceSize = ptr.String(jtv) } case "Region": @@ -5871,7 +5887,7 @@ func awsAwsjson11_deserializeDocumentESInstanceDetails(v **types.ESInstanceDetai if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "SizeFlexEligible": @@ -5880,7 +5896,7 @@ func awsAwsjson11_deserializeDocumentESInstanceDetails(v **types.ESInstanceDetai if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.SizeFlexEligible = &jtv + sv.SizeFlexEligible = jtv } default: @@ -5953,7 +5969,7 @@ func awsAwsjson11_deserializeDocumentExpression(v **types.Expression, value inte return nil } -func awsAwsjson11_deserializeDocumentExpressions(v *[]*types.Expression, value interface{}) error { +func awsAwsjson11_deserializeDocumentExpressions(v *[]types.Expression, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5966,18 +5982,20 @@ func awsAwsjson11_deserializeDocumentExpressions(v *[]*types.Expression, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Expression + var cv []types.Expression if *v == nil { - cv = []*types.Expression{} + cv = []types.Expression{} } else { cv = *v } for _, value := range shape { - var col *types.Expression - if err := awsAwsjson11_deserializeDocumentExpression(&col, value); err != nil { + var col types.Expression + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExpression(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6013,7 +6031,7 @@ func awsAwsjson11_deserializeDocumentForecastResult(v **types.ForecastResult, va if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MeanValue = &jtv + sv.MeanValue = ptr.String(jtv) } case "PredictionIntervalLowerBound": @@ -6022,7 +6040,7 @@ func awsAwsjson11_deserializeDocumentForecastResult(v **types.ForecastResult, va if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.PredictionIntervalLowerBound = &jtv + sv.PredictionIntervalLowerBound = ptr.String(jtv) } case "PredictionIntervalUpperBound": @@ -6031,7 +6049,7 @@ func awsAwsjson11_deserializeDocumentForecastResult(v **types.ForecastResult, va if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.PredictionIntervalUpperBound = &jtv + sv.PredictionIntervalUpperBound = ptr.String(jtv) } case "TimePeriod": @@ -6048,7 +6066,7 @@ func awsAwsjson11_deserializeDocumentForecastResult(v **types.ForecastResult, va return nil } -func awsAwsjson11_deserializeDocumentForecastResultsByTime(v *[]*types.ForecastResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentForecastResultsByTime(v *[]types.ForecastResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6061,18 +6079,20 @@ func awsAwsjson11_deserializeDocumentForecastResultsByTime(v *[]*types.ForecastR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ForecastResult + var cv []types.ForecastResult if *v == nil { - cv = []*types.ForecastResult{} + cv = []types.ForecastResult{} } else { cv = *v } for _, value := range shape { - var col *types.ForecastResult - if err := awsAwsjson11_deserializeDocumentForecastResult(&col, value); err != nil { + var col types.ForecastResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentForecastResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6149,7 +6169,7 @@ func awsAwsjson11_deserializeDocumentGroupDefinition(v **types.GroupDefinition, if !ok { return fmt.Errorf("expected GroupDefinitionKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Type": @@ -6170,7 +6190,7 @@ func awsAwsjson11_deserializeDocumentGroupDefinition(v **types.GroupDefinition, return nil } -func awsAwsjson11_deserializeDocumentGroupDefinitions(v *[]*types.GroupDefinition, value interface{}) error { +func awsAwsjson11_deserializeDocumentGroupDefinitions(v *[]types.GroupDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6183,18 +6203,20 @@ func awsAwsjson11_deserializeDocumentGroupDefinitions(v *[]*types.GroupDefinitio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupDefinition + var cv []types.GroupDefinition if *v == nil { - cv = []*types.GroupDefinition{} + cv = []types.GroupDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.GroupDefinition - if err := awsAwsjson11_deserializeDocumentGroupDefinition(&col, value); err != nil { + var col types.GroupDefinition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGroupDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6202,7 +6224,7 @@ func awsAwsjson11_deserializeDocumentGroupDefinitions(v *[]*types.GroupDefinitio return nil } -func awsAwsjson11_deserializeDocumentGroups(v *[]*types.Group, value interface{}) error { +func awsAwsjson11_deserializeDocumentGroups(v *[]types.Group, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6215,18 +6237,20 @@ func awsAwsjson11_deserializeDocumentGroups(v *[]*types.Group, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Group + var cv []types.Group if *v == nil { - cv = []*types.Group{} + cv = []types.Group{} } else { cv = *v } for _, value := range shape { - var col *types.Group - if err := awsAwsjson11_deserializeDocumentGroup(&col, value); err != nil { + var col types.Group + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6266,7 +6290,7 @@ func awsAwsjson11_deserializeDocumentImpact(v **types.Impact, value interface{}) if err != nil { return err } - sv.MaxImpact = &f64 + sv.MaxImpact = f64 } case "TotalImpact": @@ -6279,7 +6303,7 @@ func awsAwsjson11_deserializeDocumentImpact(v **types.Impact, value interface{}) if err != nil { return err } - sv.TotalImpact = &f64 + sv.TotalImpact = f64 } default: @@ -6375,7 +6399,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6387,7 +6411,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid return nil } -func awsAwsjson11_deserializeDocumentKeys(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentKeys(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6400,21 +6424,21 @@ func awsAwsjson11_deserializeDocumentKeys(v *[]*string, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Key to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6451,7 +6475,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6499,7 +6523,7 @@ func awsAwsjson11_deserializeDocumentMatchOptions(v *[]types.MatchOption, value return nil } -func awsAwsjson11_deserializeDocumentMetrics(v *map[string]*types.MetricValue, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetrics(v *map[string]types.MetricValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6512,18 +6536,21 @@ func awsAwsjson11_deserializeDocumentMetrics(v *map[string]*types.MetricValue, v return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.MetricValue + var mv map[string]types.MetricValue if *v == nil { - mv = map[string]*types.MetricValue{} + mv = map[string]types.MetricValue{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.MetricValue - if err := awsAwsjson11_deserializeDocumentMetricValue(&parsedVal, value); err != nil { + var parsedVal types.MetricValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentMetricValue(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -6559,7 +6586,7 @@ func awsAwsjson11_deserializeDocumentMetricValue(v **types.MetricValue, value in if !ok { return fmt.Errorf("expected MetricAmount to be of type string, got %T instead", value) } - sv.Amount = &jtv + sv.Amount = ptr.String(jtv) } case "Unit": @@ -6568,7 +6595,7 @@ func awsAwsjson11_deserializeDocumentMetricValue(v **types.MetricValue, value in if !ok { return fmt.Errorf("expected MetricUnit to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } default: @@ -6644,7 +6671,7 @@ func awsAwsjson11_deserializeDocumentRDSInstanceDetails(v **types.RDSInstanceDet if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.CurrentGeneration = &jtv + sv.CurrentGeneration = jtv } case "DatabaseEdition": @@ -6653,7 +6680,7 @@ func awsAwsjson11_deserializeDocumentRDSInstanceDetails(v **types.RDSInstanceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.DatabaseEdition = &jtv + sv.DatabaseEdition = ptr.String(jtv) } case "DatabaseEngine": @@ -6662,7 +6689,7 @@ func awsAwsjson11_deserializeDocumentRDSInstanceDetails(v **types.RDSInstanceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.DatabaseEngine = &jtv + sv.DatabaseEngine = ptr.String(jtv) } case "DeploymentOption": @@ -6671,7 +6698,7 @@ func awsAwsjson11_deserializeDocumentRDSInstanceDetails(v **types.RDSInstanceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.DeploymentOption = &jtv + sv.DeploymentOption = ptr.String(jtv) } case "Family": @@ -6680,7 +6707,7 @@ func awsAwsjson11_deserializeDocumentRDSInstanceDetails(v **types.RDSInstanceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Family = &jtv + sv.Family = ptr.String(jtv) } case "InstanceType": @@ -6689,7 +6716,7 @@ func awsAwsjson11_deserializeDocumentRDSInstanceDetails(v **types.RDSInstanceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "LicenseModel": @@ -6698,7 +6725,7 @@ func awsAwsjson11_deserializeDocumentRDSInstanceDetails(v **types.RDSInstanceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.LicenseModel = &jtv + sv.LicenseModel = ptr.String(jtv) } case "Region": @@ -6707,7 +6734,7 @@ func awsAwsjson11_deserializeDocumentRDSInstanceDetails(v **types.RDSInstanceDet if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "SizeFlexEligible": @@ -6716,7 +6743,7 @@ func awsAwsjson11_deserializeDocumentRDSInstanceDetails(v **types.RDSInstanceDet if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.SizeFlexEligible = &jtv + sv.SizeFlexEligible = jtv } default: @@ -6756,7 +6783,7 @@ func awsAwsjson11_deserializeDocumentRedshiftInstanceDetails(v **types.RedshiftI if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.CurrentGeneration = &jtv + sv.CurrentGeneration = jtv } case "Family": @@ -6765,7 +6792,7 @@ func awsAwsjson11_deserializeDocumentRedshiftInstanceDetails(v **types.RedshiftI if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Family = &jtv + sv.Family = ptr.String(jtv) } case "NodeType": @@ -6774,7 +6801,7 @@ func awsAwsjson11_deserializeDocumentRedshiftInstanceDetails(v **types.RedshiftI if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NodeType = &jtv + sv.NodeType = ptr.String(jtv) } case "Region": @@ -6783,7 +6810,7 @@ func awsAwsjson11_deserializeDocumentRedshiftInstanceDetails(v **types.RedshiftI if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "SizeFlexEligible": @@ -6792,7 +6819,7 @@ func awsAwsjson11_deserializeDocumentRedshiftInstanceDetails(v **types.RedshiftI if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.SizeFlexEligible = &jtv + sv.SizeFlexEligible = jtv } default: @@ -6832,7 +6859,7 @@ func awsAwsjson11_deserializeDocumentRequestChangedException(v **types.RequestCh if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6872,7 +6899,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected AmortizedRecurringFee to be of type string, got %T instead", value) } - sv.AmortizedRecurringFee = &jtv + sv.AmortizedRecurringFee = ptr.String(jtv) } case "AmortizedUpfrontFee": @@ -6881,7 +6908,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected AmortizedUpfrontFee to be of type string, got %T instead", value) } - sv.AmortizedUpfrontFee = &jtv + sv.AmortizedUpfrontFee = ptr.String(jtv) } case "NetRISavings": @@ -6890,7 +6917,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected NetRISavings to be of type string, got %T instead", value) } - sv.NetRISavings = &jtv + sv.NetRISavings = ptr.String(jtv) } case "OnDemandCostOfRIHoursUsed": @@ -6899,7 +6926,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected OnDemandCostOfRIHoursUsed to be of type string, got %T instead", value) } - sv.OnDemandCostOfRIHoursUsed = &jtv + sv.OnDemandCostOfRIHoursUsed = ptr.String(jtv) } case "PurchasedHours": @@ -6908,7 +6935,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected PurchasedHours to be of type string, got %T instead", value) } - sv.PurchasedHours = &jtv + sv.PurchasedHours = ptr.String(jtv) } case "PurchasedUnits": @@ -6917,7 +6944,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected PurchasedUnits to be of type string, got %T instead", value) } - sv.PurchasedUnits = &jtv + sv.PurchasedUnits = ptr.String(jtv) } case "TotalActualHours": @@ -6926,7 +6953,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected TotalActualHours to be of type string, got %T instead", value) } - sv.TotalActualHours = &jtv + sv.TotalActualHours = ptr.String(jtv) } case "TotalActualUnits": @@ -6935,7 +6962,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected TotalActualUnits to be of type string, got %T instead", value) } - sv.TotalActualUnits = &jtv + sv.TotalActualUnits = ptr.String(jtv) } case "TotalAmortizedFee": @@ -6944,7 +6971,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected TotalAmortizedFee to be of type string, got %T instead", value) } - sv.TotalAmortizedFee = &jtv + sv.TotalAmortizedFee = ptr.String(jtv) } case "TotalPotentialRISavings": @@ -6953,7 +6980,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected TotalPotentialRISavings to be of type string, got %T instead", value) } - sv.TotalPotentialRISavings = &jtv + sv.TotalPotentialRISavings = ptr.String(jtv) } case "UnusedHours": @@ -6962,7 +6989,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected UnusedHours to be of type string, got %T instead", value) } - sv.UnusedHours = &jtv + sv.UnusedHours = ptr.String(jtv) } case "UnusedUnits": @@ -6971,7 +6998,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected UnusedUnits to be of type string, got %T instead", value) } - sv.UnusedUnits = &jtv + sv.UnusedUnits = ptr.String(jtv) } case "UtilizationPercentage": @@ -6980,7 +7007,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected UtilizationPercentage to be of type string, got %T instead", value) } - sv.UtilizationPercentage = &jtv + sv.UtilizationPercentage = ptr.String(jtv) } case "UtilizationPercentageInUnits": @@ -6989,7 +7016,7 @@ func awsAwsjson11_deserializeDocumentReservationAggregates(v **types.Reservation if !ok { return fmt.Errorf("expected UtilizationPercentageInUnits to be of type string, got %T instead", value) } - sv.UtilizationPercentageInUnits = &jtv + sv.UtilizationPercentageInUnits = ptr.String(jtv) } default: @@ -7042,7 +7069,7 @@ func awsAwsjson11_deserializeDocumentReservationCoverageGroup(v **types.Reservat return nil } -func awsAwsjson11_deserializeDocumentReservationCoverageGroups(v *[]*types.ReservationCoverageGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentReservationCoverageGroups(v *[]types.ReservationCoverageGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7055,18 +7082,20 @@ func awsAwsjson11_deserializeDocumentReservationCoverageGroups(v *[]*types.Reser return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReservationCoverageGroup + var cv []types.ReservationCoverageGroup if *v == nil { - cv = []*types.ReservationCoverageGroup{} + cv = []types.ReservationCoverageGroup{} } else { cv = *v } for _, value := range shape { - var col *types.ReservationCoverageGroup - if err := awsAwsjson11_deserializeDocumentReservationCoverageGroup(&col, value); err != nil { + var col types.ReservationCoverageGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReservationCoverageGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7184,7 +7213,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "AverageNormalizedUnitsUsedPerHour": @@ -7193,7 +7222,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AverageNormalizedUnitsUsedPerHour = &jtv + sv.AverageNormalizedUnitsUsedPerHour = ptr.String(jtv) } case "AverageNumberOfInstancesUsedPerHour": @@ -7202,7 +7231,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AverageNumberOfInstancesUsedPerHour = &jtv + sv.AverageNumberOfInstancesUsedPerHour = ptr.String(jtv) } case "AverageUtilization": @@ -7211,7 +7240,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AverageUtilization = &jtv + sv.AverageUtilization = ptr.String(jtv) } case "CurrencyCode": @@ -7220,7 +7249,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "EstimatedBreakEvenInMonths": @@ -7229,7 +7258,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedBreakEvenInMonths = &jtv + sv.EstimatedBreakEvenInMonths = ptr.String(jtv) } case "EstimatedMonthlyOnDemandCost": @@ -7238,7 +7267,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedMonthlyOnDemandCost = &jtv + sv.EstimatedMonthlyOnDemandCost = ptr.String(jtv) } case "EstimatedMonthlySavingsAmount": @@ -7247,7 +7276,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedMonthlySavingsAmount = &jtv + sv.EstimatedMonthlySavingsAmount = ptr.String(jtv) } case "EstimatedMonthlySavingsPercentage": @@ -7256,7 +7285,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedMonthlySavingsPercentage = &jtv + sv.EstimatedMonthlySavingsPercentage = ptr.String(jtv) } case "EstimatedReservationCostForLookbackPeriod": @@ -7265,7 +7294,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedReservationCostForLookbackPeriod = &jtv + sv.EstimatedReservationCostForLookbackPeriod = ptr.String(jtv) } case "InstanceDetails": @@ -7279,7 +7308,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MaximumNormalizedUnitsUsedPerHour = &jtv + sv.MaximumNormalizedUnitsUsedPerHour = ptr.String(jtv) } case "MaximumNumberOfInstancesUsedPerHour": @@ -7288,7 +7317,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MaximumNumberOfInstancesUsedPerHour = &jtv + sv.MaximumNumberOfInstancesUsedPerHour = ptr.String(jtv) } case "MinimumNormalizedUnitsUsedPerHour": @@ -7297,7 +7326,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MinimumNormalizedUnitsUsedPerHour = &jtv + sv.MinimumNormalizedUnitsUsedPerHour = ptr.String(jtv) } case "MinimumNumberOfInstancesUsedPerHour": @@ -7306,7 +7335,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MinimumNumberOfInstancesUsedPerHour = &jtv + sv.MinimumNumberOfInstancesUsedPerHour = ptr.String(jtv) } case "RecommendedNormalizedUnitsToPurchase": @@ -7315,7 +7344,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.RecommendedNormalizedUnitsToPurchase = &jtv + sv.RecommendedNormalizedUnitsToPurchase = ptr.String(jtv) } case "RecommendedNumberOfInstancesToPurchase": @@ -7324,7 +7353,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.RecommendedNumberOfInstancesToPurchase = &jtv + sv.RecommendedNumberOfInstancesToPurchase = ptr.String(jtv) } case "RecurringStandardMonthlyCost": @@ -7333,7 +7362,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.RecurringStandardMonthlyCost = &jtv + sv.RecurringStandardMonthlyCost = ptr.String(jtv) } case "UpfrontCost": @@ -7342,7 +7371,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.UpfrontCost = &jtv + sv.UpfrontCost = ptr.String(jtv) } default: @@ -7354,7 +7383,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(v * return nil } -func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetails(v *[]*types.ReservationPurchaseRecommendationDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetails(v *[]types.ReservationPurchaseRecommendationDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7367,18 +7396,20 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetails(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReservationPurchaseRecommendationDetail + var cv []types.ReservationPurchaseRecommendationDetail if *v == nil { - cv = []*types.ReservationPurchaseRecommendationDetail{} + cv = []types.ReservationPurchaseRecommendationDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ReservationPurchaseRecommendationDetail - if err := awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(&col, value); err != nil { + var col types.ReservationPurchaseRecommendationDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7414,7 +7445,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationMetadata(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.GenerationTimestamp = &jtv + sv.GenerationTimestamp = ptr.String(jtv) } case "RecommendationId": @@ -7423,7 +7454,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationMetadata(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.RecommendationId = &jtv + sv.RecommendationId = ptr.String(jtv) } default: @@ -7435,7 +7466,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationMetadata(v return nil } -func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendations(v *[]*types.ReservationPurchaseRecommendation, value interface{}) error { +func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendations(v *[]types.ReservationPurchaseRecommendation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7448,18 +7479,20 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendations(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReservationPurchaseRecommendation + var cv []types.ReservationPurchaseRecommendation if *v == nil { - cv = []*types.ReservationPurchaseRecommendation{} + cv = []types.ReservationPurchaseRecommendation{} } else { cv = *v } for _, value := range shape { - var col *types.ReservationPurchaseRecommendation - if err := awsAwsjson11_deserializeDocumentReservationPurchaseRecommendation(&col, value); err != nil { + var col types.ReservationPurchaseRecommendation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReservationPurchaseRecommendation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7495,7 +7528,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "TotalEstimatedMonthlySavingsAmount": @@ -7504,7 +7537,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.TotalEstimatedMonthlySavingsAmount = &jtv + sv.TotalEstimatedMonthlySavingsAmount = ptr.String(jtv) } case "TotalEstimatedMonthlySavingsPercentage": @@ -7513,7 +7546,7 @@ func awsAwsjson11_deserializeDocumentReservationPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.TotalEstimatedMonthlySavingsPercentage = &jtv + sv.TotalEstimatedMonthlySavingsPercentage = ptr.String(jtv) } default: @@ -7558,7 +7591,7 @@ func awsAwsjson11_deserializeDocumentReservationUtilizationGroup(v **types.Reser if !ok { return fmt.Errorf("expected ReservationGroupKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Utilization": @@ -7572,7 +7605,7 @@ func awsAwsjson11_deserializeDocumentReservationUtilizationGroup(v **types.Reser if !ok { return fmt.Errorf("expected ReservationGroupValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -7584,7 +7617,7 @@ func awsAwsjson11_deserializeDocumentReservationUtilizationGroup(v **types.Reser return nil } -func awsAwsjson11_deserializeDocumentReservationUtilizationGroups(v *[]*types.ReservationUtilizationGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentReservationUtilizationGroups(v *[]types.ReservationUtilizationGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7597,18 +7630,20 @@ func awsAwsjson11_deserializeDocumentReservationUtilizationGroups(v *[]*types.Re return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReservationUtilizationGroup + var cv []types.ReservationUtilizationGroup if *v == nil { - cv = []*types.ReservationUtilizationGroup{} + cv = []types.ReservationUtilizationGroup{} } else { cv = *v } for _, value := range shape { - var col *types.ReservationUtilizationGroup - if err := awsAwsjson11_deserializeDocumentReservationUtilizationGroup(&col, value); err != nil { + var col types.ReservationUtilizationGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReservationUtilizationGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7680,7 +7715,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7756,7 +7791,7 @@ func awsAwsjson11_deserializeDocumentResultByTime(v **types.ResultByTime, value if !ok { return fmt.Errorf("expected Estimated to be of type *bool, got %T instead", value) } - sv.Estimated = &jtv + sv.Estimated = jtv } case "Groups": @@ -7783,7 +7818,7 @@ func awsAwsjson11_deserializeDocumentResultByTime(v **types.ResultByTime, value return nil } -func awsAwsjson11_deserializeDocumentResultsByTime(v *[]*types.ResultByTime, value interface{}) error { +func awsAwsjson11_deserializeDocumentResultsByTime(v *[]types.ResultByTime, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7796,18 +7831,20 @@ func awsAwsjson11_deserializeDocumentResultsByTime(v *[]*types.ResultByTime, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResultByTime + var cv []types.ResultByTime if *v == nil { - cv = []*types.ResultByTime{} + cv = []types.ResultByTime{} } else { cv = *v } for _, value := range shape { - var col *types.ResultByTime - if err := awsAwsjson11_deserializeDocumentResultByTime(&col, value); err != nil { + var col types.ResultByTime + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResultByTime(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7843,7 +7880,7 @@ func awsAwsjson11_deserializeDocumentRightsizingRecommendation(v **types.Rightsi if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "CurrentInstance": @@ -7907,7 +7944,7 @@ func awsAwsjson11_deserializeDocumentRightsizingRecommendationConfiguration(v ** if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.BenefitsConsidered = &jtv + sv.BenefitsConsidered = jtv } case "RecommendationTarget": @@ -7928,7 +7965,7 @@ func awsAwsjson11_deserializeDocumentRightsizingRecommendationConfiguration(v ** return nil } -func awsAwsjson11_deserializeDocumentRightsizingRecommendationList(v *[]*types.RightsizingRecommendation, value interface{}) error { +func awsAwsjson11_deserializeDocumentRightsizingRecommendationList(v *[]types.RightsizingRecommendation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7941,18 +7978,20 @@ func awsAwsjson11_deserializeDocumentRightsizingRecommendationList(v *[]*types.R return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RightsizingRecommendation + var cv []types.RightsizingRecommendation if *v == nil { - cv = []*types.RightsizingRecommendation{} + cv = []types.RightsizingRecommendation{} } else { cv = *v } for _, value := range shape { - var col *types.RightsizingRecommendation - if err := awsAwsjson11_deserializeDocumentRightsizingRecommendation(&col, value); err != nil { + var col types.RightsizingRecommendation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRightsizingRecommendation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7988,7 +8027,7 @@ func awsAwsjson11_deserializeDocumentRightsizingRecommendationMetadata(v **types if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.GenerationTimestamp = &jtv + sv.GenerationTimestamp = ptr.String(jtv) } case "LookbackPeriodInDays": @@ -8006,7 +8045,7 @@ func awsAwsjson11_deserializeDocumentRightsizingRecommendationMetadata(v **types if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.RecommendationId = &jtv + sv.RecommendationId = ptr.String(jtv) } default: @@ -8046,7 +8085,7 @@ func awsAwsjson11_deserializeDocumentRightsizingRecommendationSummary(v **types. if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedTotalMonthlySavingsAmount = &jtv + sv.EstimatedTotalMonthlySavingsAmount = ptr.String(jtv) } case "SavingsCurrencyCode": @@ -8055,7 +8094,7 @@ func awsAwsjson11_deserializeDocumentRightsizingRecommendationSummary(v **types. if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.SavingsCurrencyCode = &jtv + sv.SavingsCurrencyCode = ptr.String(jtv) } case "SavingsPercentage": @@ -8064,7 +8103,7 @@ func awsAwsjson11_deserializeDocumentRightsizingRecommendationSummary(v **types. if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.SavingsPercentage = &jtv + sv.SavingsPercentage = ptr.String(jtv) } case "TotalRecommendationCount": @@ -8073,7 +8112,7 @@ func awsAwsjson11_deserializeDocumentRightsizingRecommendationSummary(v **types. if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.TotalRecommendationCount = &jtv + sv.TotalRecommendationCount = ptr.String(jtv) } default: @@ -8113,7 +8152,7 @@ func awsAwsjson11_deserializeDocumentRootCause(v **types.RootCause, value interf if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.LinkedAccount = &jtv + sv.LinkedAccount = ptr.String(jtv) } case "Region": @@ -8122,7 +8161,7 @@ func awsAwsjson11_deserializeDocumentRootCause(v **types.RootCause, value interf if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "Service": @@ -8131,7 +8170,7 @@ func awsAwsjson11_deserializeDocumentRootCause(v **types.RootCause, value interf if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Service = &jtv + sv.Service = ptr.String(jtv) } case "UsageType": @@ -8140,7 +8179,7 @@ func awsAwsjson11_deserializeDocumentRootCause(v **types.RootCause, value interf if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.UsageType = &jtv + sv.UsageType = ptr.String(jtv) } default: @@ -8152,7 +8191,7 @@ func awsAwsjson11_deserializeDocumentRootCause(v **types.RootCause, value interf return nil } -func awsAwsjson11_deserializeDocumentRootCauses(v *[]*types.RootCause, value interface{}) error { +func awsAwsjson11_deserializeDocumentRootCauses(v *[]types.RootCause, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8165,18 +8204,20 @@ func awsAwsjson11_deserializeDocumentRootCauses(v *[]*types.RootCause, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RootCause + var cv []types.RootCause if *v == nil { - cv = []*types.RootCause{} + cv = []types.RootCause{} } else { cv = *v } for _, value := range shape { - var col *types.RootCause - if err := awsAwsjson11_deserializeDocumentRootCause(&col, value); err != nil { + var col types.RootCause + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRootCause(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8212,7 +8253,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansAmortizedCommitment(v **types.S if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AmortizedRecurringCommitment = &jtv + sv.AmortizedRecurringCommitment = ptr.String(jtv) } case "AmortizedUpfrontCommitment": @@ -8221,7 +8262,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansAmortizedCommitment(v **types.S if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AmortizedUpfrontCommitment = &jtv + sv.AmortizedUpfrontCommitment = ptr.String(jtv) } case "TotalAmortizedCommitment": @@ -8230,7 +8271,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansAmortizedCommitment(v **types.S if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.TotalAmortizedCommitment = &jtv + sv.TotalAmortizedCommitment = ptr.String(jtv) } default: @@ -8316,7 +8357,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansCoverageData(v **types.SavingsP if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.CoveragePercentage = &jtv + sv.CoveragePercentage = ptr.String(jtv) } case "OnDemandCost": @@ -8325,7 +8366,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansCoverageData(v **types.SavingsP if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.OnDemandCost = &jtv + sv.OnDemandCost = ptr.String(jtv) } case "SpendCoveredBySavingsPlans": @@ -8334,7 +8375,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansCoverageData(v **types.SavingsP if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.SpendCoveredBySavingsPlans = &jtv + sv.SpendCoveredBySavingsPlans = ptr.String(jtv) } case "TotalCost": @@ -8343,7 +8384,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansCoverageData(v **types.SavingsP if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.TotalCost = &jtv + sv.TotalCost = ptr.String(jtv) } default: @@ -8355,7 +8396,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansCoverageData(v **types.SavingsP return nil } -func awsAwsjson11_deserializeDocumentSavingsPlansCoverages(v *[]*types.SavingsPlansCoverage, value interface{}) error { +func awsAwsjson11_deserializeDocumentSavingsPlansCoverages(v *[]types.SavingsPlansCoverage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8368,18 +8409,20 @@ func awsAwsjson11_deserializeDocumentSavingsPlansCoverages(v *[]*types.SavingsPl return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SavingsPlansCoverage + var cv []types.SavingsPlansCoverage if *v == nil { - cv = []*types.SavingsPlansCoverage{} + cv = []types.SavingsPlansCoverage{} } else { cv = *v } for _, value := range shape { - var col *types.SavingsPlansCoverage - if err := awsAwsjson11_deserializeDocumentSavingsPlansCoverage(&col, value); err != nil { + var col types.SavingsPlansCoverage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSavingsPlansCoverage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8415,7 +8458,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansDetails(v **types.SavingsPlansD if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.InstanceFamily = &jtv + sv.InstanceFamily = ptr.String(jtv) } case "OfferingId": @@ -8424,7 +8467,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansDetails(v **types.SavingsPlansD if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.OfferingId = &jtv + sv.OfferingId = ptr.String(jtv) } case "Region": @@ -8433,7 +8476,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansDetails(v **types.SavingsPlansD if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } default: @@ -8559,7 +8602,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "CurrencyCode": @@ -8568,7 +8611,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "CurrentAverageHourlyOnDemandSpend": @@ -8577,7 +8620,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.CurrentAverageHourlyOnDemandSpend = &jtv + sv.CurrentAverageHourlyOnDemandSpend = ptr.String(jtv) } case "CurrentMaximumHourlyOnDemandSpend": @@ -8586,7 +8629,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.CurrentMaximumHourlyOnDemandSpend = &jtv + sv.CurrentMaximumHourlyOnDemandSpend = ptr.String(jtv) } case "CurrentMinimumHourlyOnDemandSpend": @@ -8595,7 +8638,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.CurrentMinimumHourlyOnDemandSpend = &jtv + sv.CurrentMinimumHourlyOnDemandSpend = ptr.String(jtv) } case "EstimatedAverageUtilization": @@ -8604,7 +8647,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedAverageUtilization = &jtv + sv.EstimatedAverageUtilization = ptr.String(jtv) } case "EstimatedMonthlySavingsAmount": @@ -8613,7 +8656,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedMonthlySavingsAmount = &jtv + sv.EstimatedMonthlySavingsAmount = ptr.String(jtv) } case "EstimatedOnDemandCost": @@ -8622,7 +8665,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedOnDemandCost = &jtv + sv.EstimatedOnDemandCost = ptr.String(jtv) } case "EstimatedOnDemandCostWithCurrentCommitment": @@ -8631,7 +8674,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedOnDemandCostWithCurrentCommitment = &jtv + sv.EstimatedOnDemandCostWithCurrentCommitment = ptr.String(jtv) } case "EstimatedROI": @@ -8640,7 +8683,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedROI = &jtv + sv.EstimatedROI = ptr.String(jtv) } case "EstimatedSavingsAmount": @@ -8649,7 +8692,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedSavingsAmount = &jtv + sv.EstimatedSavingsAmount = ptr.String(jtv) } case "EstimatedSavingsPercentage": @@ -8658,7 +8701,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedSavingsPercentage = &jtv + sv.EstimatedSavingsPercentage = ptr.String(jtv) } case "EstimatedSPCost": @@ -8667,7 +8710,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedSPCost = &jtv + sv.EstimatedSPCost = ptr.String(jtv) } case "HourlyCommitmentToPurchase": @@ -8676,7 +8719,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.HourlyCommitmentToPurchase = &jtv + sv.HourlyCommitmentToPurchase = ptr.String(jtv) } case "SavingsPlansDetails": @@ -8690,7 +8733,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.UpfrontCost = &jtv + sv.UpfrontCost = ptr.String(jtv) } default: @@ -8702,7 +8745,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(v return nil } -func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetailList(v *[]*types.SavingsPlansPurchaseRecommendationDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetailList(v *[]types.SavingsPlansPurchaseRecommendationDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8715,18 +8758,20 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetailLis return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SavingsPlansPurchaseRecommendationDetail + var cv []types.SavingsPlansPurchaseRecommendationDetail if *v == nil { - cv = []*types.SavingsPlansPurchaseRecommendationDetail{} + cv = []types.SavingsPlansPurchaseRecommendationDetail{} } else { cv = *v } for _, value := range shape { - var col *types.SavingsPlansPurchaseRecommendationDetail - if err := awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(&col, value); err != nil { + var col types.SavingsPlansPurchaseRecommendationDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8762,7 +8807,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationMetadata( if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.GenerationTimestamp = &jtv + sv.GenerationTimestamp = ptr.String(jtv) } case "RecommendationId": @@ -8771,7 +8816,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationMetadata( if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.RecommendationId = &jtv + sv.RecommendationId = ptr.String(jtv) } default: @@ -8811,7 +8856,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "CurrentOnDemandSpend": @@ -8820,7 +8865,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.CurrentOnDemandSpend = &jtv + sv.CurrentOnDemandSpend = ptr.String(jtv) } case "DailyCommitmentToPurchase": @@ -8829,7 +8874,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.DailyCommitmentToPurchase = &jtv + sv.DailyCommitmentToPurchase = ptr.String(jtv) } case "EstimatedMonthlySavingsAmount": @@ -8838,7 +8883,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedMonthlySavingsAmount = &jtv + sv.EstimatedMonthlySavingsAmount = ptr.String(jtv) } case "EstimatedOnDemandCostWithCurrentCommitment": @@ -8847,7 +8892,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedOnDemandCostWithCurrentCommitment = &jtv + sv.EstimatedOnDemandCostWithCurrentCommitment = ptr.String(jtv) } case "EstimatedROI": @@ -8856,7 +8901,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedROI = &jtv + sv.EstimatedROI = ptr.String(jtv) } case "EstimatedSavingsAmount": @@ -8865,7 +8910,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedSavingsAmount = &jtv + sv.EstimatedSavingsAmount = ptr.String(jtv) } case "EstimatedSavingsPercentage": @@ -8874,7 +8919,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedSavingsPercentage = &jtv + sv.EstimatedSavingsPercentage = ptr.String(jtv) } case "EstimatedTotalCost": @@ -8883,7 +8928,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedTotalCost = &jtv + sv.EstimatedTotalCost = ptr.String(jtv) } case "HourlyCommitmentToPurchase": @@ -8892,7 +8937,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.HourlyCommitmentToPurchase = &jtv + sv.HourlyCommitmentToPurchase = ptr.String(jtv) } case "TotalRecommendationCount": @@ -8901,7 +8946,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansPurchaseRecommendationSummary(v if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.TotalRecommendationCount = &jtv + sv.TotalRecommendationCount = ptr.String(jtv) } default: @@ -8941,7 +8986,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansSavings(v **types.SavingsPlansS if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NetSavings = &jtv + sv.NetSavings = ptr.String(jtv) } case "OnDemandCostEquivalent": @@ -8950,7 +8995,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansSavings(v **types.SavingsPlansS if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.OnDemandCostEquivalent = &jtv + sv.OnDemandCostEquivalent = ptr.String(jtv) } default: @@ -8990,7 +9035,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansUtilization(v **types.SavingsPl if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.TotalCommitment = &jtv + sv.TotalCommitment = ptr.String(jtv) } case "UnusedCommitment": @@ -8999,7 +9044,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansUtilization(v **types.SavingsPl if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.UnusedCommitment = &jtv + sv.UnusedCommitment = ptr.String(jtv) } case "UsedCommitment": @@ -9008,7 +9053,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansUtilization(v **types.SavingsPl if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.UsedCommitment = &jtv + sv.UsedCommitment = ptr.String(jtv) } case "UtilizationPercentage": @@ -9017,7 +9062,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansUtilization(v **types.SavingsPl if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.UtilizationPercentage = &jtv + sv.UtilizationPercentage = ptr.String(jtv) } default: @@ -9169,7 +9214,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansUtilizationDetail(v **types.Sav if !ok { return fmt.Errorf("expected SavingsPlanArn to be of type string, got %T instead", value) } - sv.SavingsPlanArn = &jtv + sv.SavingsPlanArn = ptr.String(jtv) } case "Utilization": @@ -9186,7 +9231,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansUtilizationDetail(v **types.Sav return nil } -func awsAwsjson11_deserializeDocumentSavingsPlansUtilizationDetails(v *[]*types.SavingsPlansUtilizationDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentSavingsPlansUtilizationDetails(v *[]types.SavingsPlansUtilizationDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9199,18 +9244,20 @@ func awsAwsjson11_deserializeDocumentSavingsPlansUtilizationDetails(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SavingsPlansUtilizationDetail + var cv []types.SavingsPlansUtilizationDetail if *v == nil { - cv = []*types.SavingsPlansUtilizationDetail{} + cv = []types.SavingsPlansUtilizationDetail{} } else { cv = *v } for _, value := range shape { - var col *types.SavingsPlansUtilizationDetail - if err := awsAwsjson11_deserializeDocumentSavingsPlansUtilizationDetail(&col, value); err != nil { + var col types.SavingsPlansUtilizationDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSavingsPlansUtilizationDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9218,7 +9265,7 @@ func awsAwsjson11_deserializeDocumentSavingsPlansUtilizationDetails(v *[]*types. return nil } -func awsAwsjson11_deserializeDocumentSavingsPlansUtilizationsByTime(v *[]*types.SavingsPlansUtilizationByTime, value interface{}) error { +func awsAwsjson11_deserializeDocumentSavingsPlansUtilizationsByTime(v *[]types.SavingsPlansUtilizationByTime, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9231,18 +9278,20 @@ func awsAwsjson11_deserializeDocumentSavingsPlansUtilizationsByTime(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SavingsPlansUtilizationByTime + var cv []types.SavingsPlansUtilizationByTime if *v == nil { - cv = []*types.SavingsPlansUtilizationByTime{} + cv = []types.SavingsPlansUtilizationByTime{} } else { cv = *v } for _, value := range shape { - var col *types.SavingsPlansUtilizationByTime - if err := awsAwsjson11_deserializeDocumentSavingsPlansUtilizationByTime(&col, value); err != nil { + var col types.SavingsPlansUtilizationByTime + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSavingsPlansUtilizationByTime(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9278,7 +9327,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9354,7 +9403,7 @@ func awsAwsjson11_deserializeDocumentSubscriber(v **types.Subscriber, value inte if !ok { return fmt.Errorf("expected SubscriberAddress to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "Status": @@ -9384,7 +9433,7 @@ func awsAwsjson11_deserializeDocumentSubscriber(v **types.Subscriber, value inte return nil } -func awsAwsjson11_deserializeDocumentSubscribers(v *[]*types.Subscriber, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubscribers(v *[]types.Subscriber, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9397,18 +9446,20 @@ func awsAwsjson11_deserializeDocumentSubscribers(v *[]*types.Subscriber, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Subscriber + var cv []types.Subscriber if *v == nil { - cv = []*types.Subscriber{} + cv = []types.Subscriber{} } else { cv = *v } for _, value := range shape { - var col *types.Subscriber - if err := awsAwsjson11_deserializeDocumentSubscriber(&col, value); err != nil { + var col types.Subscriber + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubscriber(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9416,7 +9467,7 @@ func awsAwsjson11_deserializeDocumentSubscribers(v *[]*types.Subscriber, value i return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9429,21 +9480,21 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Entity to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9480,7 +9531,7 @@ func awsAwsjson11_deserializeDocumentTagValues(v **types.TagValues, value interf if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "MatchOptions": @@ -9502,7 +9553,7 @@ func awsAwsjson11_deserializeDocumentTagValues(v **types.TagValues, value interf return nil } -func awsAwsjson11_deserializeDocumentTagValuesList(v *[]*types.TagValues, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagValuesList(v *[]types.TagValues, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9515,18 +9566,20 @@ func awsAwsjson11_deserializeDocumentTagValuesList(v *[]*types.TagValues, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TagValues + var cv []types.TagValues if *v == nil { - cv = []*types.TagValues{} + cv = []types.TagValues{} } else { cv = *v } for _, value := range shape { - var col *types.TagValues - if err := awsAwsjson11_deserializeDocumentTagValues(&col, value); err != nil { + var col types.TagValues + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTagValues(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9562,7 +9615,7 @@ func awsAwsjson11_deserializeDocumentTargetInstance(v **types.TargetInstance, va if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "DefaultTargetInstance": @@ -9571,7 +9624,7 @@ func awsAwsjson11_deserializeDocumentTargetInstance(v **types.TargetInstance, va if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.DefaultTargetInstance = &jtv + sv.DefaultTargetInstance = jtv } case "EstimatedMonthlyCost": @@ -9580,7 +9633,7 @@ func awsAwsjson11_deserializeDocumentTargetInstance(v **types.TargetInstance, va if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedMonthlyCost = &jtv + sv.EstimatedMonthlyCost = ptr.String(jtv) } case "EstimatedMonthlySavings": @@ -9589,7 +9642,7 @@ func awsAwsjson11_deserializeDocumentTargetInstance(v **types.TargetInstance, va if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedMonthlySavings = &jtv + sv.EstimatedMonthlySavings = ptr.String(jtv) } case "ExpectedResourceUtilization": @@ -9611,7 +9664,7 @@ func awsAwsjson11_deserializeDocumentTargetInstance(v **types.TargetInstance, va return nil } -func awsAwsjson11_deserializeDocumentTargetInstancesList(v *[]*types.TargetInstance, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetInstancesList(v *[]types.TargetInstance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9624,18 +9677,20 @@ func awsAwsjson11_deserializeDocumentTargetInstancesList(v *[]*types.TargetInsta return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TargetInstance + var cv []types.TargetInstance if *v == nil { - cv = []*types.TargetInstance{} + cv = []types.TargetInstance{} } else { cv = *v } for _, value := range shape { - var col *types.TargetInstance - if err := awsAwsjson11_deserializeDocumentTargetInstance(&col, value); err != nil { + var col types.TargetInstance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTargetInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9671,7 +9726,7 @@ func awsAwsjson11_deserializeDocumentTerminateRecommendationDetail(v **types.Ter if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "EstimatedMonthlySavings": @@ -9680,7 +9735,7 @@ func awsAwsjson11_deserializeDocumentTerminateRecommendationDetail(v **types.Ter if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EstimatedMonthlySavings = &jtv + sv.EstimatedMonthlySavings = ptr.String(jtv) } default: @@ -9720,7 +9775,7 @@ func awsAwsjson11_deserializeDocumentUnknownMonitorException(v **types.UnknownMo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9760,7 +9815,7 @@ func awsAwsjson11_deserializeDocumentUnknownSubscriptionException(v **types.Unkn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9800,7 +9855,7 @@ func awsAwsjson11_deserializeDocumentUnresolvableUsageUnitException(v **types.Un if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9858,7 +9913,7 @@ func awsAwsjson11_deserializeDocumentUtilizationByTime(v **types.UtilizationByTi return nil } -func awsAwsjson11_deserializeDocumentUtilizationsByTime(v *[]*types.UtilizationByTime, value interface{}) error { +func awsAwsjson11_deserializeDocumentUtilizationsByTime(v *[]types.UtilizationByTime, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9871,18 +9926,20 @@ func awsAwsjson11_deserializeDocumentUtilizationsByTime(v *[]*types.UtilizationB return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UtilizationByTime + var cv []types.UtilizationByTime if *v == nil { - cv = []*types.UtilizationByTime{} + cv = []types.UtilizationByTime{} } else { cv = *v } for _, value := range shape { - var col *types.UtilizationByTime - if err := awsAwsjson11_deserializeDocumentUtilizationByTime(&col, value); err != nil { + var col types.UtilizationByTime + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUtilizationByTime(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9890,7 +9947,7 @@ func awsAwsjson11_deserializeDocumentUtilizationsByTime(v *[]*types.UtilizationB return nil } -func awsAwsjson11_deserializeDocumentValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9903,21 +9960,21 @@ func awsAwsjson11_deserializeDocumentValues(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9954,7 +10011,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAnomalyMonitorOutput(v **CreateAnom if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MonitorArn = &jtv + sv.MonitorArn = ptr.String(jtv) } default: @@ -9994,7 +10051,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAnomalySubscriptionOutput(v **Creat if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.SubscriptionArn = &jtv + sv.SubscriptionArn = ptr.String(jtv) } default: @@ -10034,7 +10091,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCostCategoryDefinitionOutput(v **Cr if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CostCategoryArn = &jtv + sv.CostCategoryArn = ptr.String(jtv) } case "EffectiveStart": @@ -10043,7 +10100,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCostCategoryDefinitionOutput(v **Cr if !ok { return fmt.Errorf("expected ZonedDateTime to be of type string, got %T instead", value) } - sv.EffectiveStart = &jtv + sv.EffectiveStart = ptr.String(jtv) } default: @@ -10145,7 +10202,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteCostCategoryDefinitionOutput(v **De if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CostCategoryArn = &jtv + sv.CostCategoryArn = ptr.String(jtv) } case "EffectiveEnd": @@ -10154,7 +10211,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteCostCategoryDefinitionOutput(v **De if !ok { return fmt.Errorf("expected ZonedDateTime to be of type string, got %T instead", value) } - sv.EffectiveEnd = &jtv + sv.EffectiveEnd = ptr.String(jtv) } default: @@ -10235,7 +10292,7 @@ func awsAwsjson11_deserializeOpDocumentGetAnomaliesOutput(v **GetAnomaliesOutput if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -10280,7 +10337,7 @@ func awsAwsjson11_deserializeOpDocumentGetAnomalyMonitorsOutput(v **GetAnomalyMo if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -10325,7 +10382,7 @@ func awsAwsjson11_deserializeOpDocumentGetAnomalySubscriptionsOutput(v **GetAnom if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -10370,7 +10427,7 @@ func awsAwsjson11_deserializeOpDocumentGetCostAndUsageOutput(v **GetCostAndUsage if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ResultsByTime": @@ -10420,7 +10477,7 @@ func awsAwsjson11_deserializeOpDocumentGetCostAndUsageWithResourcesOutput(v **Ge if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ResultsByTime": @@ -10511,7 +10568,7 @@ func awsAwsjson11_deserializeOpDocumentGetDimensionValuesOutput(v **GetDimension if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ReturnSize": @@ -10582,7 +10639,7 @@ func awsAwsjson11_deserializeOpDocumentGetReservationCoverageOutput(v **GetReser if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "Total": @@ -10632,7 +10689,7 @@ func awsAwsjson11_deserializeOpDocumentGetReservationPurchaseRecommendationOutpu if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "Recommendations": @@ -10677,7 +10734,7 @@ func awsAwsjson11_deserializeOpDocumentGetReservationUtilizationOutput(v **GetRe if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "Total": @@ -10737,7 +10794,7 @@ func awsAwsjson11_deserializeOpDocumentGetRightsizingRecommendationOutput(v **Ge if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "RightsizingRecommendations": @@ -10787,7 +10844,7 @@ func awsAwsjson11_deserializeOpDocumentGetSavingsPlansCoverageOutput(v **GetSavi if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SavingsPlansCoverages": @@ -10837,7 +10894,7 @@ func awsAwsjson11_deserializeOpDocumentGetSavingsPlansPurchaseRecommendationOutp if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "SavingsPlansPurchaseRecommendation": @@ -10882,7 +10939,7 @@ func awsAwsjson11_deserializeOpDocumentGetSavingsPlansUtilizationDetailsOutput(v if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SavingsPlansUtilizationDetails": @@ -10978,7 +11035,7 @@ func awsAwsjson11_deserializeOpDocumentGetTagsOutput(v **GetTagsOutput, value in if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ReturnSize": @@ -11095,7 +11152,7 @@ func awsAwsjson11_deserializeOpDocumentListCostCategoryDefinitionsOutput(v **Lis if !ok { return fmt.Errorf("expected NextPageToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11135,7 +11192,7 @@ func awsAwsjson11_deserializeOpDocumentProvideAnomalyFeedbackOutput(v **ProvideA if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AnomalyId = &jtv + sv.AnomalyId = ptr.String(jtv) } default: @@ -11175,7 +11232,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateAnomalyMonitorOutput(v **UpdateAnom if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.MonitorArn = &jtv + sv.MonitorArn = ptr.String(jtv) } default: @@ -11215,7 +11272,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateAnomalySubscriptionOutput(v **Updat if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.SubscriptionArn = &jtv + sv.SubscriptionArn = ptr.String(jtv) } default: @@ -11255,7 +11312,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateCostCategoryDefinitionOutput(v **Up if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CostCategoryArn = &jtv + sv.CostCategoryArn = ptr.String(jtv) } case "EffectiveStart": @@ -11264,7 +11321,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateCostCategoryDefinitionOutput(v **Up if !ok { return fmt.Errorf("expected ZonedDateTime to be of type string, got %T instead", value) } - sv.EffectiveStart = &jtv + sv.EffectiveStart = ptr.String(jtv) } default: diff --git a/service/costexplorer/go.mod b/service/costexplorer/go.mod index de9183763a5..867e3ef03f8 100644 --- a/service/costexplorer/go.mod +++ b/service/costexplorer/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/costexplorer go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/costexplorer/serializers.go b/service/costexplorer/serializers.go index cdd9f2556ef..47ee1a098ca 100644 --- a/service/costexplorer/serializers.go +++ b/service/costexplorer/serializers.go @@ -1373,9 +1373,9 @@ func awsAwsjson11_serializeDocumentAnomalyMonitor(v *types.AnomalyMonitor, value ok.String(*v.CreationDate) } - if v.DimensionalValueCount != nil { + if v.DimensionalValueCount != 0 { ok := object.Key("DimensionalValueCount") - ok.Integer(*v.DimensionalValueCount) + ok.Integer(v.DimensionalValueCount) } if v.LastEvaluatedDate != nil { @@ -1483,17 +1483,13 @@ func awsAwsjson11_serializeDocumentCostCategoryRule(v *types.CostCategoryRule, v return nil } -func awsAwsjson11_serializeDocumentCostCategoryRulesList(v []*types.CostCategoryRule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCostCategoryRulesList(v []types.CostCategoryRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCostCategoryRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCostCategoryRule(&v[i], av); err != nil { return err } } @@ -1630,17 +1626,13 @@ func awsAwsjson11_serializeDocumentExpression(v *types.Expression, value smithyj return nil } -func awsAwsjson11_serializeDocumentExpressions(v []*types.Expression, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExpressions(v []types.Expression, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentExpression(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentExpression(&v[i], av); err != nil { return err } } @@ -1664,17 +1656,13 @@ func awsAwsjson11_serializeDocumentGroupDefinition(v *types.GroupDefinition, val return nil } -func awsAwsjson11_serializeDocumentGroupDefinitions(v []*types.GroupDefinition, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGroupDefinitions(v []types.GroupDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentGroupDefinition(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentGroupDefinition(&v[i], av); err != nil { return err } } @@ -1692,17 +1680,13 @@ func awsAwsjson11_serializeDocumentMatchOptions(v []types.MatchOption, value smi return nil } -func awsAwsjson11_serializeDocumentMetricNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMetricNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1711,9 +1695,9 @@ func awsAwsjson11_serializeDocumentRightsizingRecommendationConfiguration(v *typ object := value.Object() defer object.Close() - if v.BenefitsConsidered != nil { + if v.BenefitsConsidered { ok := object.Key("BenefitsConsidered") - ok.Boolean(*v.BenefitsConsidered) + ok.Boolean(v.BenefitsConsidered) } if len(v.RecommendationTarget) > 0 { @@ -1760,17 +1744,13 @@ func awsAwsjson11_serializeDocumentSubscriber(v *types.Subscriber, value smithyj return nil } -func awsAwsjson11_serializeDocumentSubscribers(v []*types.Subscriber, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubscribers(v []types.Subscriber, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSubscriber(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSubscriber(&v[i], av); err != nil { return err } } @@ -1807,9 +1787,9 @@ func awsAwsjson11_serializeDocumentTotalImpactFilter(v *types.TotalImpactFilter, object := value.Object() defer object.Close() - if v.EndValue != nil { + if v.EndValue != 0 { ok := object.Key("EndValue") - ok.Double(*v.EndValue) + ok.Double(v.EndValue) } if len(v.NumericOperator) > 0 { @@ -1817,25 +1797,21 @@ func awsAwsjson11_serializeDocumentTotalImpactFilter(v *types.TotalImpactFilter, ok.String(string(v.NumericOperator)) } - if v.StartValue != nil { + if v.StartValue != 0 { ok := object.Key("StartValue") - ok.Double(*v.StartValue) + ok.Double(v.StartValue) } return nil } -func awsAwsjson11_serializeDocumentValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2268,9 +2244,9 @@ func awsAwsjson11_serializeOpDocumentGetReservationPurchaseRecommendationInput(v ok.String(*v.NextPageToken) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if len(v.PaymentOption) > 0 { @@ -2359,9 +2335,9 @@ func awsAwsjson11_serializeOpDocumentGetRightsizingRecommendationInput(v *GetRig ok.String(*v.NextPageToken) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.Service != nil { @@ -2395,9 +2371,9 @@ func awsAwsjson11_serializeOpDocumentGetSavingsPlansCoverageInput(v *GetSavingsP } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.Metrics != nil { @@ -2448,9 +2424,9 @@ func awsAwsjson11_serializeOpDocumentGetSavingsPlansPurchaseRecommendationInput( ok.String(*v.NextPageToken) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if len(v.PaymentOption) > 0 { @@ -2482,9 +2458,9 @@ func awsAwsjson11_serializeOpDocumentGetSavingsPlansUtilizationDetailsInput(v *G } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2602,9 +2578,9 @@ func awsAwsjson11_serializeOpDocumentListCostCategoryDefinitionsInput(v *ListCos ok.String(*v.EffectiveOn) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { diff --git a/service/costexplorer/types/types.go b/service/costexplorer/types/types.go index 6555f92f649..8bc7dc579d1 100644 --- a/service/costexplorer/types/types.go +++ b/service/costexplorer/types/types.go @@ -39,7 +39,7 @@ type Anomaly struct { Feedback AnomalyFeedbackType // The list of identified root causes for the anomaly. - RootCauses []*RootCause + RootCauses []RootCause } // The time period for an anomaly. @@ -73,7 +73,7 @@ type AnomalyMonitor struct { CreationDate *string // The value for evaluated dimensions. - DimensionalValueCount *int32 + DimensionalValueCount int32 // The date when the monitor last evaluated for anomalies. LastEvaluatedDate *string @@ -126,12 +126,12 @@ type AnomalyScore struct { // The last observed score. // // This member is required. - CurrentScore *float64 + CurrentScore float64 // The maximum score observed during the AnomalyDateInterval. // // This member is required. - MaxScore *float64 + MaxScore float64 } // The association between a monitor, threshold, and list of subscribers used to @@ -148,12 +148,12 @@ type AnomalySubscription struct { // A list of cost anomaly monitors. // // This member is required. - MonitorArnList []*string + MonitorArnList []string // A list of subscribers to notify. // // This member is required. - Subscribers []*Subscriber + Subscribers []Subscriber // The name for the subscription. // @@ -201,14 +201,14 @@ type CostCategory struct { // value. // // This member is required. - Rules []*CostCategoryRule + Rules []CostCategoryRule // The Cost Category's effective end date. EffectiveEnd *string // The list of processing statuses for Cost Management products for a specific cost // category. - ProcessingStatus []*CostCategoryProcessingStatus + ProcessingStatus []CostCategoryProcessingStatus } // The list of processing statuses for Cost Management products for a specific cost @@ -240,14 +240,14 @@ type CostCategoryReference struct { Name *string // The number of rules associated with a specific Cost Category. - NumberOfRules *int32 + NumberOfRules int32 // The list of processing statuses for Cost Management products for a specific cost // category. - ProcessingStatus []*CostCategoryProcessingStatus + ProcessingStatus []CostCategoryProcessingStatus // A list of unique cost category values in a specific cost category. - Values []*string + Values []string } // Rules are processed in order. If there are multiple rules that match the line @@ -289,7 +289,7 @@ type CostCategoryValues struct { MatchOptions []MatchOption // The specific value of the Cost Category. - Values []*string + Values []string } // The amount of instance usage that a reservation covered. @@ -309,7 +309,7 @@ type Coverage struct { type CoverageByTime struct { // The groups of instances that the reservation covered. - Groups []*ReservationCoverageGroup + Groups []ReservationCoverageGroup // The period that this coverage was used over. TimePeriod *DateInterval @@ -399,7 +399,7 @@ type CurrentInstance struct { SavingsPlansCoveredHoursInLookbackPeriod *string // Cost allocation resource tags applied to the instance. - Tags []*TagValues + Tags []TagValues // The total number of hours the instance ran during the lookback period. TotalRunningHoursInLookbackPeriod *string @@ -438,7 +438,7 @@ type DimensionValues struct { // The metadata values that you can use to filter and group your results. You can // use GetDimensionValues to find specific values. - Values []*string + Values []string } // The metadata of a specific type that you can use to filter and group your @@ -446,7 +446,7 @@ type DimensionValues struct { type DimensionValuesWithAttributes struct { // The attribute that applies to a specific Dimension. - Attributes map[string]*string + Attributes map[string]string // The value of a dimension with a specific attribute. Value *string @@ -476,7 +476,7 @@ type EC2InstanceDetails struct { AvailabilityZone *string // Whether the recommendation is for a current-generation instance. - CurrentGeneration *bool + CurrentGeneration bool // The instance family of the recommended reservation. Family *string @@ -492,7 +492,7 @@ type EC2InstanceDetails struct { Region *string // Whether the recommended reservation is size flexible. - SizeFlexEligible *bool + SizeFlexEligible bool // Whether the recommended reservation is dedicated or shared. Tenancy *string @@ -561,7 +561,7 @@ type EC2Specification struct { type ElastiCacheInstanceDetails struct { // Whether the recommendation is for a current generation instance. - CurrentGeneration *bool + CurrentGeneration bool // The instance family of the recommended reservation. Family *string @@ -576,14 +576,14 @@ type ElastiCacheInstanceDetails struct { Region *string // Whether the recommended reservation is size flexible. - SizeFlexEligible *bool + SizeFlexEligible bool } // Details about the Amazon ES instances that AWS recommends that you purchase. type ESInstanceDetails struct { // Whether the recommendation is for a current-generation instance. - CurrentGeneration *bool + CurrentGeneration bool // The class of instance that AWS recommends. InstanceClass *string @@ -595,7 +595,7 @@ type ESInstanceDetails struct { Region *string // Whether the recommended reservation is size flexible. - SizeFlexEligible *bool + SizeFlexEligible bool } // Use Expression to filter by cost or by usage. There are two patterns: @@ -631,7 +631,7 @@ type ESInstanceDetails struct { type Expression struct { // Return results that match both Dimension objects. - And []*Expression + And []Expression // The filter based on CostCategory values. CostCategories *CostCategoryValues @@ -643,7 +643,7 @@ type Expression struct { Not *Expression // Return results that match either Dimension object. - Or []*Expression + Or []Expression // The specific Tag to use for Expression. Tags *TagValues @@ -669,10 +669,10 @@ type ForecastResult struct { type Group struct { // The keys that are included in this group. - Keys []*string + Keys []string // The metrics that are included in this group. - Metrics map[string]*MetricValue + Metrics map[string]MetricValue } // Represents a group when you specify a group by criteria or in the response to a @@ -692,10 +692,10 @@ type Impact struct { // The maximum dollar value observed for an anomaly. // // This member is required. - MaxImpact *float64 + MaxImpact float64 // The cumulative dollar value observed for an anomaly. - TotalImpact *float64 + TotalImpact float64 } // Details about the instances that AWS recommends that you purchase. @@ -731,14 +731,14 @@ type MetricValue struct { type ModifyRecommendationDetail struct { // Identifies whether this instance type is the AWS default recommendation. - TargetInstances []*TargetInstance + TargetInstances []TargetInstance } // Details about the Amazon RDS instances that AWS recommends that you purchase. type RDSInstanceDetails struct { // Whether the recommendation is for a current-generation instance. - CurrentGeneration *bool + CurrentGeneration bool // The database edition that the recommended reservation supports. DatabaseEdition *string @@ -763,7 +763,7 @@ type RDSInstanceDetails struct { Region *string // Whether the recommended reservation is size flexible. - SizeFlexEligible *bool + SizeFlexEligible bool } // Details about the Amazon Redshift instances that AWS recommends that you @@ -771,7 +771,7 @@ type RDSInstanceDetails struct { type RedshiftInstanceDetails struct { // Whether the recommendation is for a current-generation instance. - CurrentGeneration *bool + CurrentGeneration bool // The instance family of the recommended reservation. Family *string @@ -783,7 +783,7 @@ type RedshiftInstanceDetails struct { Region *string // Whether the recommended reservation is size flexible. - SizeFlexEligible *bool + SizeFlexEligible bool } // The aggregated numbers for your reservation usage. @@ -845,7 +845,7 @@ type ReservationAggregates struct { type ReservationCoverageGroup struct { // The attributes for this group of reservations. - Attributes map[string]*string + Attributes map[string]string // How much instance usage this group of reservations covered. Coverage *Coverage @@ -867,7 +867,7 @@ type ReservationPurchaseRecommendation struct { PaymentOption PaymentOption // Details about the recommended purchases. - RecommendationDetails []*ReservationPurchaseRecommendationDetail + RecommendationDetails []ReservationPurchaseRecommendationDetail // A summary about the recommended purchase. RecommendationSummary *ReservationPurchaseRecommendationSummary @@ -986,7 +986,7 @@ type ReservationPurchaseRecommendationSummary struct { type ReservationUtilizationGroup struct { // The attributes for this group of reservations. - Attributes map[string]*string + Attributes map[string]string // The key for a specific reservation attribute. Key *string @@ -1016,16 +1016,16 @@ type ResourceUtilization struct { type ResultByTime struct { // Whether the result is estimated. - Estimated *bool + Estimated bool // The groups that this time period includes. - Groups []*Group + Groups []Group // The time period that the result covers. TimePeriod *DateInterval // The total amount of cost or usage accrued during the time period. - Total map[string]*MetricValue + Total map[string]MetricValue } // Recommendations to rightsize resources. @@ -1058,7 +1058,7 @@ type RightsizingRecommendationConfiguration struct { // calculation. The default value is TRUE. // // This member is required. - BenefitsConsidered *bool + BenefitsConsidered bool // The option to see recommendations within the same instance family, or // recommendations for instances across other families. The default value is @@ -1138,7 +1138,7 @@ type SavingsPlansAmortizedCommitment struct { type SavingsPlansCoverage struct { // The attribute that applies to a specific Dimension. - Attributes map[string]*string + Attributes map[string]string // The amount of Savings Plans eligible usage that the Savings Plans covered. Coverage *SavingsPlansCoverageData @@ -1197,7 +1197,7 @@ type SavingsPlansPurchaseRecommendation struct { // Details for the Savings Plans we recommend that you purchase to cover existing // Savings Plans eligible workloads. - SavingsPlansPurchaseRecommendationDetails []*SavingsPlansPurchaseRecommendationDetail + SavingsPlansPurchaseRecommendationDetails []SavingsPlansPurchaseRecommendationDetail // Summary metrics for your Savings Plans Recommendations. SavingsPlansPurchaseRecommendationSummary *SavingsPlansPurchaseRecommendationSummary @@ -1418,7 +1418,7 @@ type SavingsPlansUtilizationDetail struct { AmortizedCommitment *SavingsPlansAmortizedCommitment // The attribute that applies to a specific Dimension. - Attributes map[string]*string + Attributes map[string]string // The amount saved by using existing Savings Plans. Savings returns both net // savings from savings plans as well as the onDemandCostEquivalent of the Savings @@ -1466,7 +1466,7 @@ type TagValues struct { MatchOptions []MatchOption // The specific value of the tag. - Values []*string + Values []string } // Details on recommended instance. @@ -1476,7 +1476,7 @@ type TargetInstance struct { CurrencyCode *string // Indicates whether this recommendation is the defaulted AWS recommendation. - DefaultTargetInstance *bool + DefaultTargetInstance bool // Expected cost to operate this instance type on a monthly basis. EstimatedMonthlyCost *string @@ -1512,17 +1512,17 @@ type TotalImpactFilter struct { // The lower bound dollar value used in the filter. // // This member is required. - StartValue *float64 + StartValue float64 // The upper bound dollar value used in the filter. - EndValue *float64 + EndValue float64 } // The amount of utilization, in hours. type UtilizationByTime struct { // The groups that this utilization result uses. - Groups []*ReservationUtilizationGroup + Groups []ReservationUtilizationGroup // The period of time that this utilization was used for. TimePeriod *DateInterval diff --git a/service/costexplorer/validators.go b/service/costexplorer/validators.go index f46bddc9029..ecb5b6367b6 100644 --- a/service/costexplorer/validators.go +++ b/service/costexplorer/validators.go @@ -712,13 +712,13 @@ func validateCostCategoryRule(v *types.CostCategoryRule) error { } } -func validateCostCategoryRulesList(v []*types.CostCategoryRule) error { +func validateCostCategoryRulesList(v []types.CostCategoryRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CostCategoryRulesList"} for i := range v { - if err := validateCostCategoryRule(v[i]); err != nil { + if err := validateCostCategoryRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -755,9 +755,6 @@ func validateRightsizingRecommendationConfiguration(v *types.RightsizingRecommen if len(v.RecommendationTarget) == 0 { invalidParams.Add(smithy.NewErrParamRequired("RecommendationTarget")) } - if v.BenefitsConsidered == nil { - invalidParams.Add(smithy.NewErrParamRequired("BenefitsConsidered")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -773,9 +770,6 @@ func validateTotalImpactFilter(v *types.TotalImpactFilter) error { if len(v.NumericOperator) == 0 { invalidParams.Add(smithy.NewErrParamRequired("NumericOperator")) } - if v.StartValue == nil { - invalidParams.Add(smithy.NewErrParamRequired("StartValue")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/databasemigrationservice/api_op_AddTagsToResource.go b/service/databasemigrationservice/api_op_AddTagsToResource.go index 0f04cbffb53..9c9e1d8dd44 100644 --- a/service/databasemigrationservice/api_op_AddTagsToResource.go +++ b/service/databasemigrationservice/api_op_AddTagsToResource.go @@ -45,7 +45,7 @@ type AddTagsToResourceInput struct { // One or more tags to be assigned to the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } // diff --git a/service/databasemigrationservice/api_op_CreateEndpoint.go b/service/databasemigrationservice/api_op_CreateEndpoint.go index dd0dd5fd9b6..5bffe3471b9 100644 --- a/service/databasemigrationservice/api_op_CreateEndpoint.go +++ b/service/databasemigrationservice/api_op_CreateEndpoint.go @@ -233,7 +233,7 @@ type CreateEndpointInput struct { SybaseSettings *types.SybaseSettings // One or more tags to be assigned to the endpoint. - Tags []*types.Tag + Tags []types.Tag // The user name to be used to log in to the endpoint database. Username *string diff --git a/service/databasemigrationservice/api_op_CreateEventSubscription.go b/service/databasemigrationservice/api_op_CreateEventSubscription.go index 61943dbbfa6..bb781805fa7 100644 --- a/service/databasemigrationservice/api_op_CreateEventSubscription.go +++ b/service/databasemigrationservice/api_op_CreateEventSubscription.go @@ -64,14 +64,14 @@ type CreateEventSubscriptionInput struct { // more information, see Working with Events and Notifications // (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html) in the AWS // Database Migration Service User Guide. - EventCategories []*string + EventCategories []string // A list of identifiers for which AWS DMS provides notification events. If you // don't specify a value, notifications are provided for all sources. If you // specify multiple values, they must be of the same type. For example, if you // specify a database instance ID, then all of the other values must be database // instance IDs. - SourceIds []*string + SourceIds []string // The type of AWS DMS resource that generates the events. For example, if you want // to be notified of events generated by a replication instance, you set this @@ -80,7 +80,7 @@ type CreateEventSubscriptionInput struct { SourceType *string // One or more tags to be assigned to the event subscription. - Tags []*types.Tag + Tags []types.Tag } // diff --git a/service/databasemigrationservice/api_op_CreateReplicationInstance.go b/service/databasemigrationservice/api_op_CreateReplicationInstance.go index f17b2c3e174..0882acbcfd8 100644 --- a/service/databasemigrationservice/api_op_CreateReplicationInstance.go +++ b/service/databasemigrationservice/api_op_CreateReplicationInstance.go @@ -127,11 +127,11 @@ type CreateReplicationInstanceInput struct { ResourceIdentifier *string // One or more tags to be assigned to the replication instance. - Tags []*types.Tag + Tags []types.Tag // Specifies the VPC security group to be used with the replication instance. The // VPC security group must work with the VPC containing the replication instance. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } // diff --git a/service/databasemigrationservice/api_op_CreateReplicationSubnetGroup.go b/service/databasemigrationservice/api_op_CreateReplicationSubnetGroup.go index a443a228a8a..0b5dd392aac 100644 --- a/service/databasemigrationservice/api_op_CreateReplicationSubnetGroup.go +++ b/service/databasemigrationservice/api_op_CreateReplicationSubnetGroup.go @@ -46,10 +46,10 @@ type CreateReplicationSubnetGroupInput struct { // One or more subnet IDs to be assigned to the subnet group. // // This member is required. - SubnetIds []*string + SubnetIds []string // One or more tags to be assigned to the subnet group. - Tags []*types.Tag + Tags []types.Tag } // diff --git a/service/databasemigrationservice/api_op_CreateReplicationTask.go b/service/databasemigrationservice/api_op_CreateReplicationTask.go index 1409b41c94b..c2509f96fdc 100644 --- a/service/databasemigrationservice/api_op_CreateReplicationTask.go +++ b/service/databasemigrationservice/api_op_CreateReplicationTask.go @@ -117,7 +117,7 @@ type CreateReplicationTaskInput struct { ResourceIdentifier *string // One or more tags to be assigned to the replication task. - Tags []*types.Tag + Tags []types.Tag // Supplemental information that the task requires to migrate the data for certain // source and target endpoints. For more information, see Specifying Supplemental diff --git a/service/databasemigrationservice/api_op_DescribeAccountAttributes.go b/service/databasemigrationservice/api_op_DescribeAccountAttributes.go index 8ec9d324af4..28ac9144183 100644 --- a/service/databasemigrationservice/api_op_DescribeAccountAttributes.go +++ b/service/databasemigrationservice/api_op_DescribeAccountAttributes.go @@ -42,7 +42,7 @@ type DescribeAccountAttributesInput struct { type DescribeAccountAttributesOutput struct { // Account quota information. - AccountQuotas []*types.AccountQuota + AccountQuotas []types.AccountQuota // A unique AWS DMS identifier for an account in a particular AWS Region. The value // of this identifier has the following format: c99999999999. DMS uses this diff --git a/service/databasemigrationservice/api_op_DescribeApplicableIndividualAssessments.go b/service/databasemigrationservice/api_op_DescribeApplicableIndividualAssessments.go index 689a9a15746..b8d19ad5c09 100644 --- a/service/databasemigrationservice/api_op_DescribeApplicableIndividualAssessments.go +++ b/service/databasemigrationservice/api_op_DescribeApplicableIndividualAssessments.go @@ -87,7 +87,7 @@ type DescribeApplicableIndividualAssessmentsOutput struct { // premigration assessment runs // (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.AssessmentReport.html) // in the AWS Database Migration Service User Guide. - IndividualAssessmentNames []*string + IndividualAssessmentNames []string // Pagination token returned for you to pass to a subsequent request. If you pass // this token as the Marker value in a subsequent request, the response includes diff --git a/service/databasemigrationservice/api_op_DescribeCertificates.go b/service/databasemigrationservice/api_op_DescribeCertificates.go index ca866023ff0..1397aa9e430 100644 --- a/service/databasemigrationservice/api_op_DescribeCertificates.go +++ b/service/databasemigrationservice/api_op_DescribeCertificates.go @@ -30,7 +30,7 @@ func (c *Client) DescribeCertificates(ctx context.Context, params *DescribeCerti type DescribeCertificatesInput struct { // Filters applied to the certificates described in the form of key-value pairs. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -48,7 +48,7 @@ type DescribeCertificatesOutput struct { // The Secure Sockets Layer (SSL) certificates associated with the replication // instance. - Certificates []*types.Certificate + Certificates []types.Certificate // The pagination token. Marker *string diff --git a/service/databasemigrationservice/api_op_DescribeConnections.go b/service/databasemigrationservice/api_op_DescribeConnections.go index b6a416ba8aa..ddf891a6a53 100644 --- a/service/databasemigrationservice/api_op_DescribeConnections.go +++ b/service/databasemigrationservice/api_op_DescribeConnections.go @@ -34,7 +34,7 @@ type DescribeConnectionsInput struct { // The filters applied to the connection. Valid filter names: endpoint-arn | // replication-instance-arn - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -52,7 +52,7 @@ type DescribeConnectionsInput struct { type DescribeConnectionsOutput struct { // A description of the connections. - Connections []*types.Connection + Connections []types.Connection // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/databasemigrationservice/api_op_DescribeEndpointTypes.go b/service/databasemigrationservice/api_op_DescribeEndpointTypes.go index 79fa0008969..6492142aef4 100644 --- a/service/databasemigrationservice/api_op_DescribeEndpointTypes.go +++ b/service/databasemigrationservice/api_op_DescribeEndpointTypes.go @@ -32,7 +32,7 @@ type DescribeEndpointTypesInput struct { // Filters applied to the endpoint types. Valid filter names: engine-name | // endpoint-type - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -55,7 +55,7 @@ type DescribeEndpointTypesOutput struct { Marker *string // The types of endpoints that are supported. - SupportedEndpointTypes []*types.SupportedEndpointType + SupportedEndpointTypes []types.SupportedEndpointType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_DescribeEndpoints.go b/service/databasemigrationservice/api_op_DescribeEndpoints.go index 9cfcc8811e5..6663b9614b7 100644 --- a/service/databasemigrationservice/api_op_DescribeEndpoints.go +++ b/service/databasemigrationservice/api_op_DescribeEndpoints.go @@ -32,7 +32,7 @@ type DescribeEndpointsInput struct { // Filters applied to the endpoints. Valid filter names: endpoint-arn | // endpoint-type | endpoint-id | engine-name - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -50,7 +50,7 @@ type DescribeEndpointsInput struct { type DescribeEndpointsOutput struct { // Endpoint description. - Endpoints []*types.Endpoint + Endpoints []types.Endpoint // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/databasemigrationservice/api_op_DescribeEventCategories.go b/service/databasemigrationservice/api_op_DescribeEventCategories.go index 06753b42526..51eb2fafccc 100644 --- a/service/databasemigrationservice/api_op_DescribeEventCategories.go +++ b/service/databasemigrationservice/api_op_DescribeEventCategories.go @@ -35,7 +35,7 @@ func (c *Client) DescribeEventCategories(ctx context.Context, params *DescribeEv type DescribeEventCategoriesInput struct { // Filters applied to the event categories. - Filters []*types.Filter + Filters []types.Filter // The type of AWS DMS resource that generates events. Valid values: // replication-instance | replication-task @@ -46,7 +46,7 @@ type DescribeEventCategoriesInput struct { type DescribeEventCategoriesOutput struct { // A list of event categories. - EventCategoryGroupList []*types.EventCategoryGroup + EventCategoryGroupList []types.EventCategoryGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_DescribeEventSubscriptions.go b/service/databasemigrationservice/api_op_DescribeEventSubscriptions.go index b5b3585e974..536f22a9cbf 100644 --- a/service/databasemigrationservice/api_op_DescribeEventSubscriptions.go +++ b/service/databasemigrationservice/api_op_DescribeEventSubscriptions.go @@ -34,7 +34,7 @@ func (c *Client) DescribeEventSubscriptions(ctx context.Context, params *Describ type DescribeEventSubscriptionsInput struct { // Filters applied to event subscriptions. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -55,7 +55,7 @@ type DescribeEventSubscriptionsInput struct { type DescribeEventSubscriptionsOutput struct { // A list of event subscriptions. - EventSubscriptionsList []*types.EventSubscription + EventSubscriptionsList []types.EventSubscription // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/databasemigrationservice/api_op_DescribeEvents.go b/service/databasemigrationservice/api_op_DescribeEvents.go index ebc76f085cb..f4e171ec0f1 100644 --- a/service/databasemigrationservice/api_op_DescribeEvents.go +++ b/service/databasemigrationservice/api_op_DescribeEvents.go @@ -42,10 +42,10 @@ type DescribeEventsInput struct { EndTime *time.Time // A list of event categories for the source type that you've chosen. - EventCategories []*string + EventCategories []string // Filters applied to events. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -73,7 +73,7 @@ type DescribeEventsInput struct { type DescribeEventsOutput struct { // The events described. - Events []*types.Event + Events []types.Event // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/databasemigrationservice/api_op_DescribeOrderableReplicationInstances.go b/service/databasemigrationservice/api_op_DescribeOrderableReplicationInstances.go index b1da06c3f0b..eea289a9914 100644 --- a/service/databasemigrationservice/api_op_DescribeOrderableReplicationInstances.go +++ b/service/databasemigrationservice/api_op_DescribeOrderableReplicationInstances.go @@ -52,7 +52,7 @@ type DescribeOrderableReplicationInstancesOutput struct { Marker *string // The order-able replication instances available. - OrderableReplicationInstances []*types.OrderableReplicationInstance + OrderableReplicationInstances []types.OrderableReplicationInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_DescribePendingMaintenanceActions.go b/service/databasemigrationservice/api_op_DescribePendingMaintenanceActions.go index 05f9e991f5d..f232b9d4a17 100644 --- a/service/databasemigrationservice/api_op_DescribePendingMaintenanceActions.go +++ b/service/databasemigrationservice/api_op_DescribePendingMaintenanceActions.go @@ -31,7 +31,7 @@ func (c *Client) DescribePendingMaintenanceActions(ctx context.Context, params * type DescribePendingMaintenanceActionsInput struct { // - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -57,7 +57,7 @@ type DescribePendingMaintenanceActionsOutput struct { Marker *string // The pending maintenance action. - PendingMaintenanceActions []*types.ResourcePendingMaintenanceActions + PendingMaintenanceActions []types.ResourcePendingMaintenanceActions // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_DescribeReplicationInstanceTaskLogs.go b/service/databasemigrationservice/api_op_DescribeReplicationInstanceTaskLogs.go index 63668ef389e..82d522774c6 100644 --- a/service/databasemigrationservice/api_op_DescribeReplicationInstanceTaskLogs.go +++ b/service/databasemigrationservice/api_op_DescribeReplicationInstanceTaskLogs.go @@ -58,7 +58,7 @@ type DescribeReplicationInstanceTaskLogsOutput struct { // An array of replication task log metadata. Each member of the array contains the // replication task name, ARN, and task log size (in bytes). - ReplicationInstanceTaskLogs []*types.ReplicationInstanceTaskLog + ReplicationInstanceTaskLogs []types.ReplicationInstanceTaskLog // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_DescribeReplicationInstances.go b/service/databasemigrationservice/api_op_DescribeReplicationInstances.go index bc31472e6b2..4a24d9ede2a 100644 --- a/service/databasemigrationservice/api_op_DescribeReplicationInstances.go +++ b/service/databasemigrationservice/api_op_DescribeReplicationInstances.go @@ -34,7 +34,7 @@ type DescribeReplicationInstancesInput struct { // Filters applied to replication instances. Valid filter names: // replication-instance-arn | replication-instance-id | replication-instance-class // | engine-version - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -57,7 +57,7 @@ type DescribeReplicationInstancesOutput struct { Marker *string // The replication instances described. - ReplicationInstances []*types.ReplicationInstance + ReplicationInstances []types.ReplicationInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_DescribeReplicationSubnetGroups.go b/service/databasemigrationservice/api_op_DescribeReplicationSubnetGroups.go index 3997b4ac3bd..a05db334919 100644 --- a/service/databasemigrationservice/api_op_DescribeReplicationSubnetGroups.go +++ b/service/databasemigrationservice/api_op_DescribeReplicationSubnetGroups.go @@ -32,7 +32,7 @@ type DescribeReplicationSubnetGroupsInput struct { // Filters applied to replication subnet groups. Valid filter names: // replication-subnet-group-id - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -55,7 +55,7 @@ type DescribeReplicationSubnetGroupsOutput struct { Marker *string // A description of the replication subnet groups. - ReplicationSubnetGroups []*types.ReplicationSubnetGroup + ReplicationSubnetGroups []types.ReplicationSubnetGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentResults.go b/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentResults.go index 5cbf01049fc..d24bc667759 100644 --- a/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentResults.go +++ b/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentResults.go @@ -60,7 +60,7 @@ type DescribeReplicationTaskAssessmentResultsOutput struct { Marker *string // The task assessment report. - ReplicationTaskAssessmentResults []*types.ReplicationTaskAssessmentResult + ReplicationTaskAssessmentResults []types.ReplicationTaskAssessmentResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentRuns.go b/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentRuns.go index 21364726021..a9f6de209c9 100644 --- a/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentRuns.go +++ b/service/databasemigrationservice/api_op_DescribeReplicationTaskAssessmentRuns.go @@ -38,7 +38,7 @@ type DescribeReplicationTaskAssessmentRunsInput struct { // Filters applied to the premigration assessment runs described in the form of // key-value pairs. Valid filter names: replication-task-assessment-run-arn, // replication-task-arn, replication-instance-arn, status - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -61,7 +61,7 @@ type DescribeReplicationTaskAssessmentRunsOutput struct { Marker *string // One or more premigration assessment runs as specified by Filters. - ReplicationTaskAssessmentRuns []*types.ReplicationTaskAssessmentRun + ReplicationTaskAssessmentRuns []types.ReplicationTaskAssessmentRun // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_DescribeReplicationTaskIndividualAssessments.go b/service/databasemigrationservice/api_op_DescribeReplicationTaskIndividualAssessments.go index 55d9c5aee50..2c01216e14b 100644 --- a/service/databasemigrationservice/api_op_DescribeReplicationTaskIndividualAssessments.go +++ b/service/databasemigrationservice/api_op_DescribeReplicationTaskIndividualAssessments.go @@ -35,7 +35,7 @@ type DescribeReplicationTaskIndividualAssessmentsInput struct { // Filters applied to the individual assessments described in the form of key-value // pairs. Valid filter names: replication-task-assessment-run-arn, // replication-task-arn, status - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -58,7 +58,7 @@ type DescribeReplicationTaskIndividualAssessmentsOutput struct { Marker *string // One or more individual assessments as specified by Filters. - ReplicationTaskIndividualAssessments []*types.ReplicationTaskIndividualAssessment + ReplicationTaskIndividualAssessments []types.ReplicationTaskIndividualAssessment // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_DescribeReplicationTasks.go b/service/databasemigrationservice/api_op_DescribeReplicationTasks.go index 051d8da3e1d..de51ac1d8e0 100644 --- a/service/databasemigrationservice/api_op_DescribeReplicationTasks.go +++ b/service/databasemigrationservice/api_op_DescribeReplicationTasks.go @@ -33,7 +33,7 @@ type DescribeReplicationTasksInput struct { // Filters applied to replication tasks. Valid filter names: replication-task-arn | // replication-task-id | migration-type | endpoint-arn | replication-instance-arn - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -61,7 +61,7 @@ type DescribeReplicationTasksOutput struct { Marker *string // A description of the replication tasks. - ReplicationTasks []*types.ReplicationTask + ReplicationTasks []types.ReplicationTask // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_DescribeSchemas.go b/service/databasemigrationservice/api_op_DescribeSchemas.go index 6723b6a571d..067db691dbc 100644 --- a/service/databasemigrationservice/api_op_DescribeSchemas.go +++ b/service/databasemigrationservice/api_op_DescribeSchemas.go @@ -55,7 +55,7 @@ type DescribeSchemasOutput struct { Marker *string // The described schema. - Schemas []*string + Schemas []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_DescribeTableStatistics.go b/service/databasemigrationservice/api_op_DescribeTableStatistics.go index b1620f1318c..3453ca7df81 100644 --- a/service/databasemigrationservice/api_op_DescribeTableStatistics.go +++ b/service/databasemigrationservice/api_op_DescribeTableStatistics.go @@ -42,7 +42,7 @@ type DescribeTableStatisticsInput struct { // Filters applied to table statistics. Valid filter names: schema-name | // table-name | table-state A combination of filters creates an AND condition where // each record matches all specified filters. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -68,7 +68,7 @@ type DescribeTableStatisticsOutput struct { ReplicationTaskArn *string // The table statistics. - TableStatistics []*types.TableStatistics + TableStatistics []types.TableStatistics // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_ImportCertificate.go b/service/databasemigrationservice/api_op_ImportCertificate.go index 4bc07a90bfa..9f6aacc32f6 100644 --- a/service/databasemigrationservice/api_op_ImportCertificate.go +++ b/service/databasemigrationservice/api_op_ImportCertificate.go @@ -43,7 +43,7 @@ type ImportCertificateInput struct { CertificateWallet []byte // The tags associated with the certificate. - Tags []*types.Tag + Tags []types.Tag } type ImportCertificateOutput struct { diff --git a/service/databasemigrationservice/api_op_ListTagsForResource.go b/service/databasemigrationservice/api_op_ListTagsForResource.go index 9906101bbfc..115fadb91a7 100644 --- a/service/databasemigrationservice/api_op_ListTagsForResource.go +++ b/service/databasemigrationservice/api_op_ListTagsForResource.go @@ -44,7 +44,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // A list of tags for the resource. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/databasemigrationservice/api_op_ModifyEventSubscription.go b/service/databasemigrationservice/api_op_ModifyEventSubscription.go index fa024942056..6ab11df4005 100644 --- a/service/databasemigrationservice/api_op_ModifyEventSubscription.go +++ b/service/databasemigrationservice/api_op_ModifyEventSubscription.go @@ -40,7 +40,7 @@ type ModifyEventSubscriptionInput struct { // A list of event categories for a source type that you want to subscribe to. Use // the DescribeEventCategories action to see a list of event categories. - EventCategories []*string + EventCategories []string // The Amazon Resource Name (ARN) of the Amazon SNS topic created for event // notification. The ARN is created by Amazon SNS when you create a topic and diff --git a/service/databasemigrationservice/api_op_ModifyReplicationInstance.go b/service/databasemigrationservice/api_op_ModifyReplicationInstance.go index be02c5d615d..9d19f6d23dd 100644 --- a/service/databasemigrationservice/api_op_ModifyReplicationInstance.go +++ b/service/databasemigrationservice/api_op_ModifyReplicationInstance.go @@ -46,11 +46,11 @@ type ModifyReplicationInstanceInput struct { // possible. This parameter must be set to true when specifying a value for the // EngineVersion parameter that is a different major version than the replication // instance's current version. - AllowMajorVersionUpgrade *bool + AllowMajorVersionUpgrade bool // Indicates whether the changes should be applied immediately or during the next // maintenance window. - ApplyImmediately *bool + ApplyImmediately bool // A value that indicates that minor version upgrades are applied automatically to // the replication instance during the maintenance window. Changing this parameter @@ -99,7 +99,7 @@ type ModifyReplicationInstanceInput struct { // Specifies the VPC security group to be used with the replication instance. The // VPC security group must work with the VPC containing the replication instance. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } // diff --git a/service/databasemigrationservice/api_op_ModifyReplicationSubnetGroup.go b/service/databasemigrationservice/api_op_ModifyReplicationSubnetGroup.go index 3e630c90ed4..7865721d578 100644 --- a/service/databasemigrationservice/api_op_ModifyReplicationSubnetGroup.go +++ b/service/databasemigrationservice/api_op_ModifyReplicationSubnetGroup.go @@ -38,7 +38,7 @@ type ModifyReplicationSubnetGroupInput struct { // A list of subnet IDs. // // This member is required. - SubnetIds []*string + SubnetIds []string // A description for the replication instance subnet group. ReplicationSubnetGroupDescription *string diff --git a/service/databasemigrationservice/api_op_ReloadTables.go b/service/databasemigrationservice/api_op_ReloadTables.go index 2a6981d904d..837bdb2372d 100644 --- a/service/databasemigrationservice/api_op_ReloadTables.go +++ b/service/databasemigrationservice/api_op_ReloadTables.go @@ -37,7 +37,7 @@ type ReloadTablesInput struct { // The name and schema of the table to be reloaded. // // This member is required. - TablesToReload []*types.TableToReload + TablesToReload []types.TableToReload // Options for reload. Specify data-reload to reload the data and re-validate it if // validation is enabled. Specify validate-only to re-validate the table. This diff --git a/service/databasemigrationservice/api_op_RemoveTagsFromResource.go b/service/databasemigrationservice/api_op_RemoveTagsFromResource.go index 1adee9d751c..8f8b03e80de 100644 --- a/service/databasemigrationservice/api_op_RemoveTagsFromResource.go +++ b/service/databasemigrationservice/api_op_RemoveTagsFromResource.go @@ -41,7 +41,7 @@ type RemoveTagsFromResourceInput struct { // The tag key (name) of the tag to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } // diff --git a/service/databasemigrationservice/api_op_StartReplicationTaskAssessmentRun.go b/service/databasemigrationservice/api_op_StartReplicationTaskAssessmentRun.go index 15dff21267a..3c724538af4 100644 --- a/service/databasemigrationservice/api_op_StartReplicationTaskAssessmentRun.go +++ b/service/databasemigrationservice/api_op_StartReplicationTaskAssessmentRun.go @@ -66,7 +66,7 @@ type StartReplicationTaskAssessmentRunInput struct { // individual assessments that AWS DMS supports for the associated migration task, // run the DescribeApplicableIndividualAssessments operation using its own // ReplicationTaskArn request parameter. - Exclude []*string + Exclude []string // Space-separated list of names for specific individual assessments that you want // to include. These names come from the default list of individual assessments @@ -76,7 +76,7 @@ type StartReplicationTaskAssessmentRunInput struct { // individual assessments that AWS DMS supports for the associated migration task, // run the DescribeApplicableIndividualAssessments operation using its own // ReplicationTaskArn request parameter. - IncludeOnly []*string + IncludeOnly []string // Encryption mode that you can specify to encrypt the results of this assessment // run. If you don't specify this request parameter, AWS DMS stores the assessment diff --git a/service/databasemigrationservice/deserializers.go b/service/databasemigrationservice/deserializers.go index ddcbe1c4c01..5f8cc8c9314 100644 --- a/service/databasemigrationservice/deserializers.go +++ b/service/databasemigrationservice/deserializers.go @@ -7027,7 +7027,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedFault(v **types.AccessDeniedFau if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7067,7 +7067,7 @@ func awsAwsjson11_deserializeDocumentAccountQuota(v **types.AccountQuota, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccountQuotaName = &jtv + sv.AccountQuotaName = ptr.String(jtv) } case "Max": @@ -7080,7 +7080,7 @@ func awsAwsjson11_deserializeDocumentAccountQuota(v **types.AccountQuota, value if err != nil { return err } - sv.Max = &i64 + sv.Max = i64 } case "Used": @@ -7093,7 +7093,7 @@ func awsAwsjson11_deserializeDocumentAccountQuota(v **types.AccountQuota, value if err != nil { return err } - sv.Used = &i64 + sv.Used = i64 } default: @@ -7105,7 +7105,7 @@ func awsAwsjson11_deserializeDocumentAccountQuota(v **types.AccountQuota, value return nil } -func awsAwsjson11_deserializeDocumentAccountQuotaList(v *[]*types.AccountQuota, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccountQuotaList(v *[]types.AccountQuota, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7118,18 +7118,20 @@ func awsAwsjson11_deserializeDocumentAccountQuotaList(v *[]*types.AccountQuota, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AccountQuota + var cv []types.AccountQuota if *v == nil { - cv = []*types.AccountQuota{} + cv = []types.AccountQuota{} } else { cv = *v } for _, value := range shape { - var col *types.AccountQuota - if err := awsAwsjson11_deserializeDocumentAccountQuota(&col, value); err != nil { + var col types.AccountQuota + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAccountQuota(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7165,7 +7167,7 @@ func awsAwsjson11_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7177,7 +7179,7 @@ func awsAwsjson11_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone return nil } -func awsAwsjson11_deserializeDocumentAvailabilityZonesList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAvailabilityZonesList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7190,21 +7192,21 @@ func awsAwsjson11_deserializeDocumentAvailabilityZonesList(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -7241,7 +7243,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "CertificateCreationDate": @@ -7263,7 +7265,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CertificateIdentifier = &jtv + sv.CertificateIdentifier = ptr.String(jtv) } case "CertificateOwner": @@ -7272,7 +7274,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CertificateOwner = &jtv + sv.CertificateOwner = ptr.String(jtv) } case "CertificatePem": @@ -7281,7 +7283,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CertificatePem = &jtv + sv.CertificatePem = ptr.String(jtv) } case "CertificateWallet": @@ -7316,7 +7318,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SigningAlgorithm = &jtv + sv.SigningAlgorithm = ptr.String(jtv) } case "ValidFromDate": @@ -7354,7 +7356,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in return nil } -func awsAwsjson11_deserializeDocumentCertificateList(v *[]*types.Certificate, value interface{}) error { +func awsAwsjson11_deserializeDocumentCertificateList(v *[]types.Certificate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7367,18 +7369,20 @@ func awsAwsjson11_deserializeDocumentCertificateList(v *[]*types.Certificate, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Certificate + var cv []types.Certificate if *v == nil { - cv = []*types.Certificate{} + cv = []types.Certificate{} } else { cv = *v } for _, value := range shape { - var col *types.Certificate - if err := awsAwsjson11_deserializeDocumentCertificate(&col, value); err != nil { + var col types.Certificate + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCertificate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7414,7 +7418,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EndpointArn = &jtv + sv.EndpointArn = ptr.String(jtv) } case "EndpointIdentifier": @@ -7423,7 +7427,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EndpointIdentifier = &jtv + sv.EndpointIdentifier = ptr.String(jtv) } case "LastFailureMessage": @@ -7432,7 +7436,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastFailureMessage = &jtv + sv.LastFailureMessage = ptr.String(jtv) } case "ReplicationInstanceArn": @@ -7441,7 +7445,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstanceArn = &jtv + sv.ReplicationInstanceArn = ptr.String(jtv) } case "ReplicationInstanceIdentifier": @@ -7450,7 +7454,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstanceIdentifier = &jtv + sv.ReplicationInstanceIdentifier = ptr.String(jtv) } case "Status": @@ -7459,7 +7463,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -7471,7 +7475,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte return nil } -func awsAwsjson11_deserializeDocumentConnectionList(v *[]*types.Connection, value interface{}) error { +func awsAwsjson11_deserializeDocumentConnectionList(v *[]types.Connection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7484,18 +7488,20 @@ func awsAwsjson11_deserializeDocumentConnectionList(v *[]*types.Connection, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Connection + var cv []types.Connection if *v == nil { - cv = []*types.Connection{} + cv = []types.Connection{} } else { cv = *v } for _, value := range shape { - var col *types.Connection - if err := awsAwsjson11_deserializeDocumentConnection(&col, value); err != nil { + var col types.Connection + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConnection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7531,7 +7537,7 @@ func awsAwsjson11_deserializeDocumentDmsTransferSettings(v **types.DmsTransferSe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "ServiceAccessRoleArn": @@ -7540,7 +7546,7 @@ func awsAwsjson11_deserializeDocumentDmsTransferSettings(v **types.DmsTransferSe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceAccessRoleArn = &jtv + sv.ServiceAccessRoleArn = ptr.String(jtv) } default: @@ -7580,7 +7586,7 @@ func awsAwsjson11_deserializeDocumentDocDbSettings(v **types.DocDbSettings, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "DocsToInvestigate": @@ -7602,7 +7608,7 @@ func awsAwsjson11_deserializeDocumentDocDbSettings(v **types.DocDbSettings, valu if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.ExtractDocId = &jtv + sv.ExtractDocId = ptr.Bool(jtv) } case "KmsKeyId": @@ -7611,7 +7617,7 @@ func awsAwsjson11_deserializeDocumentDocDbSettings(v **types.DocDbSettings, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "NestingLevel": @@ -7629,7 +7635,7 @@ func awsAwsjson11_deserializeDocumentDocDbSettings(v **types.DocDbSettings, valu if !ok { return fmt.Errorf("expected SecretString to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "Port": @@ -7651,7 +7657,7 @@ func awsAwsjson11_deserializeDocumentDocDbSettings(v **types.DocDbSettings, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } case "Username": @@ -7660,7 +7666,7 @@ func awsAwsjson11_deserializeDocumentDocDbSettings(v **types.DocDbSettings, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -7700,7 +7706,7 @@ func awsAwsjson11_deserializeDocumentDynamoDbSettings(v **types.DynamoDbSettings if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceAccessRoleArn = &jtv + sv.ServiceAccessRoleArn = ptr.String(jtv) } default: @@ -7740,7 +7746,7 @@ func awsAwsjson11_deserializeDocumentElasticsearchSettings(v **types.Elasticsear if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EndpointUri = &jtv + sv.EndpointUri = ptr.String(jtv) } case "ErrorRetryDuration": @@ -7775,7 +7781,7 @@ func awsAwsjson11_deserializeDocumentElasticsearchSettings(v **types.Elasticsear if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceAccessRoleArn = &jtv + sv.ServiceAccessRoleArn = ptr.String(jtv) } default: @@ -7815,7 +7821,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "DatabaseName": @@ -7824,7 +7830,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "DmsTransferSettings": @@ -7853,7 +7859,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EndpointArn = &jtv + sv.EndpointArn = ptr.String(jtv) } case "EndpointIdentifier": @@ -7862,7 +7868,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EndpointIdentifier = &jtv + sv.EndpointIdentifier = ptr.String(jtv) } case "EndpointType": @@ -7880,7 +7886,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EngineDisplayName = &jtv + sv.EngineDisplayName = ptr.String(jtv) } case "EngineName": @@ -7889,7 +7895,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EngineName = &jtv + sv.EngineName = ptr.String(jtv) } case "ExternalId": @@ -7898,7 +7904,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExternalId = &jtv + sv.ExternalId = ptr.String(jtv) } case "ExternalTableDefinition": @@ -7907,7 +7913,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExternalTableDefinition = &jtv + sv.ExternalTableDefinition = ptr.String(jtv) } case "ExtraConnectionAttributes": @@ -7916,7 +7922,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExtraConnectionAttributes = &jtv + sv.ExtraConnectionAttributes = ptr.String(jtv) } case "IBMDb2Settings": @@ -7940,7 +7946,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "MicrosoftSQLServerSettings": @@ -8002,7 +8008,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } case "ServiceAccessRoleArn": @@ -8011,7 +8017,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceAccessRoleArn = &jtv + sv.ServiceAccessRoleArn = ptr.String(jtv) } case "SslMode": @@ -8029,7 +8035,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "SybaseSettings": @@ -8043,7 +8049,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -8055,7 +8061,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac return nil } -func awsAwsjson11_deserializeDocumentEndpointList(v *[]*types.Endpoint, value interface{}) error { +func awsAwsjson11_deserializeDocumentEndpointList(v *[]types.Endpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8068,18 +8074,20 @@ func awsAwsjson11_deserializeDocumentEndpointList(v *[]*types.Endpoint, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Endpoint + var cv []types.Endpoint if *v == nil { - cv = []*types.Endpoint{} + cv = []types.Endpoint{} } else { cv = *v } for _, value := range shape { - var col *types.Endpoint - if err := awsAwsjson11_deserializeDocumentEndpoint(&col, value); err != nil { + var col types.Endpoint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEndpoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8133,7 +8141,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "SourceIdentifier": @@ -8142,7 +8150,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceIdentifier = &jtv + sv.SourceIdentifier = ptr.String(jtv) } case "SourceType": @@ -8163,7 +8171,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentEventCategoriesList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventCategoriesList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8176,21 +8184,21 @@ func awsAwsjson11_deserializeDocumentEventCategoriesList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -8232,7 +8240,7 @@ func awsAwsjson11_deserializeDocumentEventCategoryGroup(v **types.EventCategoryG if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceType = &jtv + sv.SourceType = ptr.String(jtv) } default: @@ -8244,7 +8252,7 @@ func awsAwsjson11_deserializeDocumentEventCategoryGroup(v **types.EventCategoryG return nil } -func awsAwsjson11_deserializeDocumentEventCategoryGroupList(v *[]*types.EventCategoryGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventCategoryGroupList(v *[]types.EventCategoryGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8257,18 +8265,20 @@ func awsAwsjson11_deserializeDocumentEventCategoryGroupList(v *[]*types.EventCat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventCategoryGroup + var cv []types.EventCategoryGroup if *v == nil { - cv = []*types.EventCategoryGroup{} + cv = []types.EventCategoryGroup{} } else { cv = *v } for _, value := range shape { - var col *types.EventCategoryGroup - if err := awsAwsjson11_deserializeDocumentEventCategoryGroup(&col, value); err != nil { + var col types.EventCategoryGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventCategoryGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8276,7 +8286,7 @@ func awsAwsjson11_deserializeDocumentEventCategoryGroupList(v *[]*types.EventCat return nil } -func awsAwsjson11_deserializeDocumentEventList(v *[]*types.Event, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventList(v *[]types.Event, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8289,18 +8299,20 @@ func awsAwsjson11_deserializeDocumentEventList(v *[]*types.Event, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Event + var cv []types.Event if *v == nil { - cv = []*types.Event{} + cv = []types.Event{} } else { cv = *v } for _, value := range shape { - var col *types.Event - if err := awsAwsjson11_deserializeDocumentEvent(&col, value); err != nil { + var col types.Event + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8336,7 +8348,7 @@ func awsAwsjson11_deserializeDocumentEventSubscription(v **types.EventSubscripti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CustomerAwsId = &jtv + sv.CustomerAwsId = ptr.String(jtv) } case "CustSubscriptionId": @@ -8345,7 +8357,7 @@ func awsAwsjson11_deserializeDocumentEventSubscription(v **types.EventSubscripti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CustSubscriptionId = &jtv + sv.CustSubscriptionId = ptr.String(jtv) } case "Enabled": @@ -8354,7 +8366,7 @@ func awsAwsjson11_deserializeDocumentEventSubscription(v **types.EventSubscripti if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "EventCategoriesList": @@ -8368,7 +8380,7 @@ func awsAwsjson11_deserializeDocumentEventSubscription(v **types.EventSubscripti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SnsTopicArn = &jtv + sv.SnsTopicArn = ptr.String(jtv) } case "SourceIdsList": @@ -8382,7 +8394,7 @@ func awsAwsjson11_deserializeDocumentEventSubscription(v **types.EventSubscripti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceType = &jtv + sv.SourceType = ptr.String(jtv) } case "Status": @@ -8391,7 +8403,7 @@ func awsAwsjson11_deserializeDocumentEventSubscription(v **types.EventSubscripti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "SubscriptionCreationTime": @@ -8400,7 +8412,7 @@ func awsAwsjson11_deserializeDocumentEventSubscription(v **types.EventSubscripti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SubscriptionCreationTime = &jtv + sv.SubscriptionCreationTime = ptr.String(jtv) } default: @@ -8412,7 +8424,7 @@ func awsAwsjson11_deserializeDocumentEventSubscription(v **types.EventSubscripti return nil } -func awsAwsjson11_deserializeDocumentEventSubscriptionsList(v *[]*types.EventSubscription, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventSubscriptionsList(v *[]types.EventSubscription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8425,18 +8437,20 @@ func awsAwsjson11_deserializeDocumentEventSubscriptionsList(v *[]*types.EventSub return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventSubscription + var cv []types.EventSubscription if *v == nil { - cv = []*types.EventSubscription{} + cv = []types.EventSubscription{} } else { cv = *v } for _, value := range shape { - var col *types.EventSubscription - if err := awsAwsjson11_deserializeDocumentEventSubscription(&col, value); err != nil { + var col types.EventSubscription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventSubscription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8472,7 +8486,7 @@ func awsAwsjson11_deserializeDocumentIBMDb2Settings(v **types.IBMDb2Settings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CurrentLsn = &jtv + sv.CurrentLsn = ptr.String(jtv) } case "DatabaseName": @@ -8481,7 +8495,7 @@ func awsAwsjson11_deserializeDocumentIBMDb2Settings(v **types.IBMDb2Settings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "MaxKBytesPerRead": @@ -8503,7 +8517,7 @@ func awsAwsjson11_deserializeDocumentIBMDb2Settings(v **types.IBMDb2Settings, va if !ok { return fmt.Errorf("expected SecretString to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "Port": @@ -8525,7 +8539,7 @@ func awsAwsjson11_deserializeDocumentIBMDb2Settings(v **types.IBMDb2Settings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } case "SetDataCaptureChanges": @@ -8534,7 +8548,7 @@ func awsAwsjson11_deserializeDocumentIBMDb2Settings(v **types.IBMDb2Settings, va if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.SetDataCaptureChanges = &jtv + sv.SetDataCaptureChanges = ptr.Bool(jtv) } case "Username": @@ -8543,7 +8557,7 @@ func awsAwsjson11_deserializeDocumentIBMDb2Settings(v **types.IBMDb2Settings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -8555,7 +8569,7 @@ func awsAwsjson11_deserializeDocumentIBMDb2Settings(v **types.IBMDb2Settings, va return nil } -func awsAwsjson11_deserializeDocumentIndividualAssessmentNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIndividualAssessmentNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8568,21 +8582,21 @@ func awsAwsjson11_deserializeDocumentIndividualAssessmentNameList(v *[]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -8619,7 +8633,7 @@ func awsAwsjson11_deserializeDocumentInsufficientResourceCapacityFault(v **types if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8659,7 +8673,7 @@ func awsAwsjson11_deserializeDocumentInvalidCertificateFault(v **types.InvalidCe if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8699,7 +8713,7 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateFault(v **types.Invalid if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8739,7 +8753,7 @@ func awsAwsjson11_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, valu if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8779,7 +8793,7 @@ func awsAwsjson11_deserializeDocumentKafkaSettings(v **types.KafkaSettings, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Broker = &jtv + sv.Broker = ptr.String(jtv) } case "IncludeControlDetails": @@ -8788,7 +8802,7 @@ func awsAwsjson11_deserializeDocumentKafkaSettings(v **types.KafkaSettings, valu if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.IncludeControlDetails = &jtv + sv.IncludeControlDetails = ptr.Bool(jtv) } case "IncludeNullAndEmpty": @@ -8797,7 +8811,7 @@ func awsAwsjson11_deserializeDocumentKafkaSettings(v **types.KafkaSettings, valu if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.IncludeNullAndEmpty = &jtv + sv.IncludeNullAndEmpty = ptr.Bool(jtv) } case "IncludePartitionValue": @@ -8806,7 +8820,7 @@ func awsAwsjson11_deserializeDocumentKafkaSettings(v **types.KafkaSettings, valu if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.IncludePartitionValue = &jtv + sv.IncludePartitionValue = ptr.Bool(jtv) } case "IncludeTableAlterOperations": @@ -8815,7 +8829,7 @@ func awsAwsjson11_deserializeDocumentKafkaSettings(v **types.KafkaSettings, valu if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.IncludeTableAlterOperations = &jtv + sv.IncludeTableAlterOperations = ptr.Bool(jtv) } case "IncludeTransactionDetails": @@ -8824,7 +8838,7 @@ func awsAwsjson11_deserializeDocumentKafkaSettings(v **types.KafkaSettings, valu if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.IncludeTransactionDetails = &jtv + sv.IncludeTransactionDetails = ptr.Bool(jtv) } case "MessageFormat": @@ -8855,7 +8869,7 @@ func awsAwsjson11_deserializeDocumentKafkaSettings(v **types.KafkaSettings, valu if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.PartitionIncludeSchemaTable = &jtv + sv.PartitionIncludeSchemaTable = ptr.Bool(jtv) } case "Topic": @@ -8864,7 +8878,7 @@ func awsAwsjson11_deserializeDocumentKafkaSettings(v **types.KafkaSettings, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Topic = &jtv + sv.Topic = ptr.String(jtv) } default: @@ -8904,7 +8918,7 @@ func awsAwsjson11_deserializeDocumentKinesisSettings(v **types.KinesisSettings, if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.IncludeControlDetails = &jtv + sv.IncludeControlDetails = ptr.Bool(jtv) } case "IncludeNullAndEmpty": @@ -8913,7 +8927,7 @@ func awsAwsjson11_deserializeDocumentKinesisSettings(v **types.KinesisSettings, if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.IncludeNullAndEmpty = &jtv + sv.IncludeNullAndEmpty = ptr.Bool(jtv) } case "IncludePartitionValue": @@ -8922,7 +8936,7 @@ func awsAwsjson11_deserializeDocumentKinesisSettings(v **types.KinesisSettings, if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.IncludePartitionValue = &jtv + sv.IncludePartitionValue = ptr.Bool(jtv) } case "IncludeTableAlterOperations": @@ -8931,7 +8945,7 @@ func awsAwsjson11_deserializeDocumentKinesisSettings(v **types.KinesisSettings, if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.IncludeTableAlterOperations = &jtv + sv.IncludeTableAlterOperations = ptr.Bool(jtv) } case "IncludeTransactionDetails": @@ -8940,7 +8954,7 @@ func awsAwsjson11_deserializeDocumentKinesisSettings(v **types.KinesisSettings, if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.IncludeTransactionDetails = &jtv + sv.IncludeTransactionDetails = ptr.Bool(jtv) } case "MessageFormat": @@ -8958,7 +8972,7 @@ func awsAwsjson11_deserializeDocumentKinesisSettings(v **types.KinesisSettings, if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.PartitionIncludeSchemaTable = &jtv + sv.PartitionIncludeSchemaTable = ptr.Bool(jtv) } case "ServiceAccessRoleArn": @@ -8967,7 +8981,7 @@ func awsAwsjson11_deserializeDocumentKinesisSettings(v **types.KinesisSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceAccessRoleArn = &jtv + sv.ServiceAccessRoleArn = ptr.String(jtv) } case "StreamArn": @@ -8976,7 +8990,7 @@ func awsAwsjson11_deserializeDocumentKinesisSettings(v **types.KinesisSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StreamArn = &jtv + sv.StreamArn = ptr.String(jtv) } default: @@ -9016,7 +9030,7 @@ func awsAwsjson11_deserializeDocumentKMSAccessDeniedFault(v **types.KMSAccessDen if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9056,7 +9070,7 @@ func awsAwsjson11_deserializeDocumentKMSDisabledFault(v **types.KMSDisabledFault if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9096,7 +9110,7 @@ func awsAwsjson11_deserializeDocumentKMSFault(v **types.KMSFault, value interfac if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9136,7 +9150,7 @@ func awsAwsjson11_deserializeDocumentKMSInvalidStateFault(v **types.KMSInvalidSt if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9176,7 +9190,7 @@ func awsAwsjson11_deserializeDocumentKMSKeyNotAccessibleFault(v **types.KMSKeyNo if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9216,7 +9230,7 @@ func awsAwsjson11_deserializeDocumentKMSNotFoundFault(v **types.KMSNotFoundFault if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9256,7 +9270,7 @@ func awsAwsjson11_deserializeDocumentKMSThrottlingFault(v **types.KMSThrottlingF if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9309,7 +9323,7 @@ func awsAwsjson11_deserializeDocumentMicrosoftSQLServerSettings(v **types.Micros if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ControlTablesFileGroup = &jtv + sv.ControlTablesFileGroup = ptr.String(jtv) } case "DatabaseName": @@ -9318,7 +9332,7 @@ func awsAwsjson11_deserializeDocumentMicrosoftSQLServerSettings(v **types.Micros if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "Password": @@ -9327,7 +9341,7 @@ func awsAwsjson11_deserializeDocumentMicrosoftSQLServerSettings(v **types.Micros if !ok { return fmt.Errorf("expected SecretString to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "Port": @@ -9349,7 +9363,7 @@ func awsAwsjson11_deserializeDocumentMicrosoftSQLServerSettings(v **types.Micros if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.ReadBackupOnly = &jtv + sv.ReadBackupOnly = ptr.Bool(jtv) } case "SafeguardPolicy": @@ -9367,7 +9381,7 @@ func awsAwsjson11_deserializeDocumentMicrosoftSQLServerSettings(v **types.Micros if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } case "UseBcpFullLoad": @@ -9376,7 +9390,7 @@ func awsAwsjson11_deserializeDocumentMicrosoftSQLServerSettings(v **types.Micros if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.UseBcpFullLoad = &jtv + sv.UseBcpFullLoad = ptr.Bool(jtv) } case "Username": @@ -9385,7 +9399,7 @@ func awsAwsjson11_deserializeDocumentMicrosoftSQLServerSettings(v **types.Micros if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -9434,7 +9448,7 @@ func awsAwsjson11_deserializeDocumentMongoDbSettings(v **types.MongoDbSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AuthSource = &jtv + sv.AuthSource = ptr.String(jtv) } case "AuthType": @@ -9452,7 +9466,7 @@ func awsAwsjson11_deserializeDocumentMongoDbSettings(v **types.MongoDbSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "DocsToInvestigate": @@ -9461,7 +9475,7 @@ func awsAwsjson11_deserializeDocumentMongoDbSettings(v **types.MongoDbSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DocsToInvestigate = &jtv + sv.DocsToInvestigate = ptr.String(jtv) } case "ExtractDocId": @@ -9470,7 +9484,7 @@ func awsAwsjson11_deserializeDocumentMongoDbSettings(v **types.MongoDbSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExtractDocId = &jtv + sv.ExtractDocId = ptr.String(jtv) } case "KmsKeyId": @@ -9479,7 +9493,7 @@ func awsAwsjson11_deserializeDocumentMongoDbSettings(v **types.MongoDbSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "NestingLevel": @@ -9497,7 +9511,7 @@ func awsAwsjson11_deserializeDocumentMongoDbSettings(v **types.MongoDbSettings, if !ok { return fmt.Errorf("expected SecretString to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "Port": @@ -9519,7 +9533,7 @@ func awsAwsjson11_deserializeDocumentMongoDbSettings(v **types.MongoDbSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } case "Username": @@ -9528,7 +9542,7 @@ func awsAwsjson11_deserializeDocumentMongoDbSettings(v **types.MongoDbSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -9568,7 +9582,7 @@ func awsAwsjson11_deserializeDocumentMySQLSettings(v **types.MySQLSettings, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AfterConnectScript = &jtv + sv.AfterConnectScript = ptr.String(jtv) } case "DatabaseName": @@ -9577,7 +9591,7 @@ func awsAwsjson11_deserializeDocumentMySQLSettings(v **types.MySQLSettings, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "EventsPollInterval": @@ -9625,7 +9639,7 @@ func awsAwsjson11_deserializeDocumentMySQLSettings(v **types.MySQLSettings, valu if !ok { return fmt.Errorf("expected SecretString to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "Port": @@ -9647,7 +9661,7 @@ func awsAwsjson11_deserializeDocumentMySQLSettings(v **types.MySQLSettings, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } case "ServerTimezone": @@ -9656,7 +9670,7 @@ func awsAwsjson11_deserializeDocumentMySQLSettings(v **types.MySQLSettings, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerTimezone = &jtv + sv.ServerTimezone = ptr.String(jtv) } case "TargetDbType": @@ -9674,7 +9688,7 @@ func awsAwsjson11_deserializeDocumentMySQLSettings(v **types.MySQLSettings, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -9727,7 +9741,7 @@ func awsAwsjson11_deserializeDocumentNeptuneSettings(v **types.NeptuneSettings, if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.IamAuthEnabled = &jtv + sv.IamAuthEnabled = ptr.Bool(jtv) } case "MaxFileSize": @@ -9762,7 +9776,7 @@ func awsAwsjson11_deserializeDocumentNeptuneSettings(v **types.NeptuneSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3BucketFolder = &jtv + sv.S3BucketFolder = ptr.String(jtv) } case "S3BucketName": @@ -9771,7 +9785,7 @@ func awsAwsjson11_deserializeDocumentNeptuneSettings(v **types.NeptuneSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "ServiceAccessRoleArn": @@ -9780,7 +9794,7 @@ func awsAwsjson11_deserializeDocumentNeptuneSettings(v **types.NeptuneSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceAccessRoleArn = &jtv + sv.ServiceAccessRoleArn = ptr.String(jtv) } default: @@ -9820,7 +9834,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.AccessAlternateDirectly = &jtv + sv.AccessAlternateDirectly = ptr.Bool(jtv) } case "AdditionalArchivedLogDestId": @@ -9842,7 +9856,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.AddSupplementalLogging = &jtv + sv.AddSupplementalLogging = ptr.Bool(jtv) } case "AllowSelectNestedTables": @@ -9851,7 +9865,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.AllowSelectNestedTables = &jtv + sv.AllowSelectNestedTables = ptr.Bool(jtv) } case "ArchivedLogDestId": @@ -9873,7 +9887,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.ArchivedLogsOnly = &jtv + sv.ArchivedLogsOnly = ptr.Bool(jtv) } case "AsmPassword": @@ -9882,7 +9896,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected SecretString to be of type string, got %T instead", value) } - sv.AsmPassword = &jtv + sv.AsmPassword = ptr.String(jtv) } case "AsmServer": @@ -9891,7 +9905,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AsmServer = &jtv + sv.AsmServer = ptr.String(jtv) } case "AsmUser": @@ -9900,7 +9914,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AsmUser = &jtv + sv.AsmUser = ptr.String(jtv) } case "CharLengthSemantics": @@ -9918,7 +9932,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "DirectPathNoLog": @@ -9927,7 +9941,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.DirectPathNoLog = &jtv + sv.DirectPathNoLog = ptr.Bool(jtv) } case "DirectPathParallelLoad": @@ -9936,7 +9950,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.DirectPathParallelLoad = &jtv + sv.DirectPathParallelLoad = ptr.Bool(jtv) } case "EnableHomogenousTablespace": @@ -9945,7 +9959,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.EnableHomogenousTablespace = &jtv + sv.EnableHomogenousTablespace = ptr.Bool(jtv) } case "FailTasksOnLobTruncation": @@ -9954,7 +9968,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.FailTasksOnLobTruncation = &jtv + sv.FailTasksOnLobTruncation = ptr.Bool(jtv) } case "NumberDatatypeScale": @@ -9976,7 +9990,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OraclePathPrefix = &jtv + sv.OraclePathPrefix = ptr.String(jtv) } case "ParallelAsmReadThreads": @@ -9998,7 +10012,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected SecretString to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "Port": @@ -10033,7 +10047,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.ReadTableSpaceName = &jtv + sv.ReadTableSpaceName = ptr.Bool(jtv) } case "ReplacePathPrefix": @@ -10042,7 +10056,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.ReplacePathPrefix = &jtv + sv.ReplacePathPrefix = ptr.Bool(jtv) } case "RetryInterval": @@ -10064,7 +10078,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected SecretString to be of type string, got %T instead", value) } - sv.SecurityDbEncryption = &jtv + sv.SecurityDbEncryption = ptr.String(jtv) } case "SecurityDbEncryptionName": @@ -10073,7 +10087,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SecurityDbEncryptionName = &jtv + sv.SecurityDbEncryptionName = ptr.String(jtv) } case "ServerName": @@ -10082,7 +10096,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } case "UseAlternateFolderForOnline": @@ -10091,7 +10105,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.UseAlternateFolderForOnline = &jtv + sv.UseAlternateFolderForOnline = ptr.Bool(jtv) } case "UsePathPrefix": @@ -10100,7 +10114,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UsePathPrefix = &jtv + sv.UsePathPrefix = ptr.String(jtv) } case "Username": @@ -10109,7 +10123,7 @@ func awsAwsjson11_deserializeDocumentOracleSettings(v **types.OracleSettings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -10158,7 +10172,7 @@ func awsAwsjson11_deserializeDocumentOrderableReplicationInstance(v **types.Orde if err != nil { return err } - sv.DefaultAllocatedStorage = ptr.Int32(int32(i64)) + sv.DefaultAllocatedStorage = int32(i64) } case "EngineVersion": @@ -10167,7 +10181,7 @@ func awsAwsjson11_deserializeDocumentOrderableReplicationInstance(v **types.Orde if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "IncludedAllocatedStorage": @@ -10180,7 +10194,7 @@ func awsAwsjson11_deserializeDocumentOrderableReplicationInstance(v **types.Orde if err != nil { return err } - sv.IncludedAllocatedStorage = ptr.Int32(int32(i64)) + sv.IncludedAllocatedStorage = int32(i64) } case "MaxAllocatedStorage": @@ -10193,7 +10207,7 @@ func awsAwsjson11_deserializeDocumentOrderableReplicationInstance(v **types.Orde if err != nil { return err } - sv.MaxAllocatedStorage = ptr.Int32(int32(i64)) + sv.MaxAllocatedStorage = int32(i64) } case "MinAllocatedStorage": @@ -10206,7 +10220,7 @@ func awsAwsjson11_deserializeDocumentOrderableReplicationInstance(v **types.Orde if err != nil { return err } - sv.MinAllocatedStorage = ptr.Int32(int32(i64)) + sv.MinAllocatedStorage = int32(i64) } case "ReleaseStatus": @@ -10224,7 +10238,7 @@ func awsAwsjson11_deserializeDocumentOrderableReplicationInstance(v **types.Orde if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstanceClass = &jtv + sv.ReplicationInstanceClass = ptr.String(jtv) } case "StorageType": @@ -10233,7 +10247,7 @@ func awsAwsjson11_deserializeDocumentOrderableReplicationInstance(v **types.Orde if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StorageType = &jtv + sv.StorageType = ptr.String(jtv) } default: @@ -10245,7 +10259,7 @@ func awsAwsjson11_deserializeDocumentOrderableReplicationInstance(v **types.Orde return nil } -func awsAwsjson11_deserializeDocumentOrderableReplicationInstanceList(v *[]*types.OrderableReplicationInstance, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrderableReplicationInstanceList(v *[]types.OrderableReplicationInstance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10258,18 +10272,20 @@ func awsAwsjson11_deserializeDocumentOrderableReplicationInstanceList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrderableReplicationInstance + var cv []types.OrderableReplicationInstance if *v == nil { - cv = []*types.OrderableReplicationInstance{} + cv = []types.OrderableReplicationInstance{} } else { cv = *v } for _, value := range shape { - var col *types.OrderableReplicationInstance - if err := awsAwsjson11_deserializeDocumentOrderableReplicationInstance(&col, value); err != nil { + var col types.OrderableReplicationInstance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrderableReplicationInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10305,7 +10321,7 @@ func awsAwsjson11_deserializeDocumentPendingMaintenanceAction(v **types.PendingM if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Action = &jtv + sv.Action = ptr.String(jtv) } case "AutoAppliedAfterDate": @@ -10340,7 +10356,7 @@ func awsAwsjson11_deserializeDocumentPendingMaintenanceAction(v **types.PendingM if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ForcedApplyDate": @@ -10362,7 +10378,7 @@ func awsAwsjson11_deserializeDocumentPendingMaintenanceAction(v **types.PendingM if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OptInStatus = &jtv + sv.OptInStatus = ptr.String(jtv) } default: @@ -10374,7 +10390,7 @@ func awsAwsjson11_deserializeDocumentPendingMaintenanceAction(v **types.PendingM return nil } -func awsAwsjson11_deserializeDocumentPendingMaintenanceActionDetails(v *[]*types.PendingMaintenanceAction, value interface{}) error { +func awsAwsjson11_deserializeDocumentPendingMaintenanceActionDetails(v *[]types.PendingMaintenanceAction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10387,18 +10403,20 @@ func awsAwsjson11_deserializeDocumentPendingMaintenanceActionDetails(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PendingMaintenanceAction + var cv []types.PendingMaintenanceAction if *v == nil { - cv = []*types.PendingMaintenanceAction{} + cv = []types.PendingMaintenanceAction{} } else { cv = *v } for _, value := range shape { - var col *types.PendingMaintenanceAction - if err := awsAwsjson11_deserializeDocumentPendingMaintenanceAction(&col, value); err != nil { + var col types.PendingMaintenanceAction + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPendingMaintenanceAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10406,7 +10424,7 @@ func awsAwsjson11_deserializeDocumentPendingMaintenanceActionDetails(v *[]*types return nil } -func awsAwsjson11_deserializeDocumentPendingMaintenanceActions(v *[]*types.ResourcePendingMaintenanceActions, value interface{}) error { +func awsAwsjson11_deserializeDocumentPendingMaintenanceActions(v *[]types.ResourcePendingMaintenanceActions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10419,18 +10437,20 @@ func awsAwsjson11_deserializeDocumentPendingMaintenanceActions(v *[]*types.Resou return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourcePendingMaintenanceActions + var cv []types.ResourcePendingMaintenanceActions if *v == nil { - cv = []*types.ResourcePendingMaintenanceActions{} + cv = []types.ResourcePendingMaintenanceActions{} } else { cv = *v } for _, value := range shape { - var col *types.ResourcePendingMaintenanceActions - if err := awsAwsjson11_deserializeDocumentResourcePendingMaintenanceActions(&col, value); err != nil { + var col types.ResourcePendingMaintenanceActions + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourcePendingMaintenanceActions(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10466,7 +10486,7 @@ func awsAwsjson11_deserializeDocumentPostgreSQLSettings(v **types.PostgreSQLSett if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AfterConnectScript = &jtv + sv.AfterConnectScript = ptr.String(jtv) } case "CaptureDdls": @@ -10475,7 +10495,7 @@ func awsAwsjson11_deserializeDocumentPostgreSQLSettings(v **types.PostgreSQLSett if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.CaptureDdls = &jtv + sv.CaptureDdls = ptr.Bool(jtv) } case "DatabaseName": @@ -10484,7 +10504,7 @@ func awsAwsjson11_deserializeDocumentPostgreSQLSettings(v **types.PostgreSQLSett if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "DdlArtifactsSchema": @@ -10493,7 +10513,7 @@ func awsAwsjson11_deserializeDocumentPostgreSQLSettings(v **types.PostgreSQLSett if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DdlArtifactsSchema = &jtv + sv.DdlArtifactsSchema = ptr.String(jtv) } case "ExecuteTimeout": @@ -10515,7 +10535,7 @@ func awsAwsjson11_deserializeDocumentPostgreSQLSettings(v **types.PostgreSQLSett if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.FailTasksOnLobTruncation = &jtv + sv.FailTasksOnLobTruncation = ptr.Bool(jtv) } case "MaxFileSize": @@ -10537,7 +10557,7 @@ func awsAwsjson11_deserializeDocumentPostgreSQLSettings(v **types.PostgreSQLSett if !ok { return fmt.Errorf("expected SecretString to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "Port": @@ -10559,7 +10579,7 @@ func awsAwsjson11_deserializeDocumentPostgreSQLSettings(v **types.PostgreSQLSett if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } case "SlotName": @@ -10568,7 +10588,7 @@ func awsAwsjson11_deserializeDocumentPostgreSQLSettings(v **types.PostgreSQLSett if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SlotName = &jtv + sv.SlotName = ptr.String(jtv) } case "Username": @@ -10577,7 +10597,7 @@ func awsAwsjson11_deserializeDocumentPostgreSQLSettings(v **types.PostgreSQLSett if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -10617,7 +10637,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.AcceptAnyDate = &jtv + sv.AcceptAnyDate = ptr.Bool(jtv) } case "AfterConnectScript": @@ -10626,7 +10646,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AfterConnectScript = &jtv + sv.AfterConnectScript = ptr.String(jtv) } case "BucketFolder": @@ -10635,7 +10655,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BucketFolder = &jtv + sv.BucketFolder = ptr.String(jtv) } case "BucketName": @@ -10644,7 +10664,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "CaseSensitiveNames": @@ -10653,7 +10673,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.CaseSensitiveNames = &jtv + sv.CaseSensitiveNames = ptr.Bool(jtv) } case "CompUpdate": @@ -10662,7 +10682,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.CompUpdate = &jtv + sv.CompUpdate = ptr.Bool(jtv) } case "ConnectionTimeout": @@ -10684,7 +10704,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "DateFormat": @@ -10693,7 +10713,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DateFormat = &jtv + sv.DateFormat = ptr.String(jtv) } case "EmptyAsNull": @@ -10702,7 +10722,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.EmptyAsNull = &jtv + sv.EmptyAsNull = ptr.Bool(jtv) } case "EncryptionMode": @@ -10720,7 +10740,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.ExplicitIds = &jtv + sv.ExplicitIds = ptr.Bool(jtv) } case "FileTransferUploadStreams": @@ -10768,7 +10788,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected SecretString to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "Port": @@ -10790,7 +10810,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.RemoveQuotes = &jtv + sv.RemoveQuotes = ptr.Bool(jtv) } case "ReplaceChars": @@ -10799,7 +10819,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplaceChars = &jtv + sv.ReplaceChars = ptr.String(jtv) } case "ReplaceInvalidChars": @@ -10808,7 +10828,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplaceInvalidChars = &jtv + sv.ReplaceInvalidChars = ptr.String(jtv) } case "ServerName": @@ -10817,7 +10837,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } case "ServerSideEncryptionKmsKeyId": @@ -10826,7 +10846,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerSideEncryptionKmsKeyId = &jtv + sv.ServerSideEncryptionKmsKeyId = ptr.String(jtv) } case "ServiceAccessRoleArn": @@ -10835,7 +10855,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceAccessRoleArn = &jtv + sv.ServiceAccessRoleArn = ptr.String(jtv) } case "TimeFormat": @@ -10844,7 +10864,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TimeFormat = &jtv + sv.TimeFormat = ptr.String(jtv) } case "TrimBlanks": @@ -10853,7 +10873,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.TrimBlanks = &jtv + sv.TrimBlanks = ptr.Bool(jtv) } case "TruncateColumns": @@ -10862,7 +10882,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.TruncateColumns = &jtv + sv.TruncateColumns = ptr.Bool(jtv) } case "Username": @@ -10871,7 +10891,7 @@ func awsAwsjson11_deserializeDocumentRedshiftSettings(v **types.RedshiftSettings if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } case "WriteBufferSize": @@ -10924,7 +10944,7 @@ func awsAwsjson11_deserializeDocumentRefreshSchemasStatus(v **types.RefreshSchem if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EndpointArn = &jtv + sv.EndpointArn = ptr.String(jtv) } case "LastFailureMessage": @@ -10933,7 +10953,7 @@ func awsAwsjson11_deserializeDocumentRefreshSchemasStatus(v **types.RefreshSchem if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastFailureMessage = &jtv + sv.LastFailureMessage = ptr.String(jtv) } case "LastRefreshDate": @@ -10955,7 +10975,7 @@ func awsAwsjson11_deserializeDocumentRefreshSchemasStatus(v **types.RefreshSchem if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstanceArn = &jtv + sv.ReplicationInstanceArn = ptr.String(jtv) } case "Status": @@ -11008,7 +11028,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if err != nil { return err } - sv.AllocatedStorage = ptr.Int32(int32(i64)) + sv.AllocatedStorage = int32(i64) } case "AutoMinorVersionUpgrade": @@ -11017,7 +11037,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoMinorVersionUpgrade = &jtv + sv.AutoMinorVersionUpgrade = jtv } case "AvailabilityZone": @@ -11026,7 +11046,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "DnsNameServers": @@ -11035,7 +11055,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DnsNameServers = &jtv + sv.DnsNameServers = ptr.String(jtv) } case "EngineVersion": @@ -11044,7 +11064,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "FreeUntil": @@ -11079,7 +11099,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "MultiAZ": @@ -11088,7 +11108,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.MultiAZ = &jtv + sv.MultiAZ = jtv } case "PendingModifiedValues": @@ -11102,7 +11122,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PreferredMaintenanceWindow = &jtv + sv.PreferredMaintenanceWindow = ptr.String(jtv) } case "PubliclyAccessible": @@ -11111,7 +11131,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.PubliclyAccessible = &jtv + sv.PubliclyAccessible = jtv } case "ReplicationInstanceArn": @@ -11120,7 +11140,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstanceArn = &jtv + sv.ReplicationInstanceArn = ptr.String(jtv) } case "ReplicationInstanceClass": @@ -11129,7 +11149,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstanceClass = &jtv + sv.ReplicationInstanceClass = ptr.String(jtv) } case "ReplicationInstanceIdentifier": @@ -11138,7 +11158,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstanceIdentifier = &jtv + sv.ReplicationInstanceIdentifier = ptr.String(jtv) } case "ReplicationInstancePrivateIpAddress": @@ -11147,7 +11167,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstancePrivateIpAddress = &jtv + sv.ReplicationInstancePrivateIpAddress = ptr.String(jtv) } case "ReplicationInstancePrivateIpAddresses": @@ -11161,7 +11181,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstancePublicIpAddress = &jtv + sv.ReplicationInstancePublicIpAddress = ptr.String(jtv) } case "ReplicationInstancePublicIpAddresses": @@ -11175,7 +11195,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstanceStatus = &jtv + sv.ReplicationInstanceStatus = ptr.String(jtv) } case "ReplicationSubnetGroup": @@ -11189,7 +11209,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SecondaryAvailabilityZone = &jtv + sv.SecondaryAvailabilityZone = ptr.String(jtv) } case "VpcSecurityGroups": @@ -11206,7 +11226,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstance(v **types.ReplicationIn return nil } -func awsAwsjson11_deserializeDocumentReplicationInstanceList(v *[]*types.ReplicationInstance, value interface{}) error { +func awsAwsjson11_deserializeDocumentReplicationInstanceList(v *[]types.ReplicationInstance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11219,18 +11239,20 @@ func awsAwsjson11_deserializeDocumentReplicationInstanceList(v *[]*types.Replica return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicationInstance + var cv []types.ReplicationInstance if *v == nil { - cv = []*types.ReplicationInstance{} + cv = []types.ReplicationInstance{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicationInstance - if err := awsAwsjson11_deserializeDocumentReplicationInstance(&col, value); err != nil { + var col types.ReplicationInstance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReplicationInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11238,7 +11260,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstanceList(v *[]*types.Replica return nil } -func awsAwsjson11_deserializeDocumentReplicationInstancePrivateIpAddressList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentReplicationInstancePrivateIpAddressList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11251,21 +11273,21 @@ func awsAwsjson11_deserializeDocumentReplicationInstancePrivateIpAddressList(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -11274,7 +11296,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstancePrivateIpAddressList(v * return nil } -func awsAwsjson11_deserializeDocumentReplicationInstancePublicIpAddressList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentReplicationInstancePublicIpAddressList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11287,21 +11309,21 @@ func awsAwsjson11_deserializeDocumentReplicationInstancePublicIpAddressList(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -11342,7 +11364,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstanceTaskLog(v **types.Replic if err != nil { return err } - sv.ReplicationInstanceTaskLogSize = &i64 + sv.ReplicationInstanceTaskLogSize = i64 } case "ReplicationTaskArn": @@ -11351,7 +11373,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstanceTaskLog(v **types.Replic if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationTaskArn = &jtv + sv.ReplicationTaskArn = ptr.String(jtv) } case "ReplicationTaskName": @@ -11360,7 +11382,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstanceTaskLog(v **types.Replic if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationTaskName = &jtv + sv.ReplicationTaskName = ptr.String(jtv) } default: @@ -11372,7 +11394,7 @@ func awsAwsjson11_deserializeDocumentReplicationInstanceTaskLog(v **types.Replic return nil } -func awsAwsjson11_deserializeDocumentReplicationInstanceTaskLogsList(v *[]*types.ReplicationInstanceTaskLog, value interface{}) error { +func awsAwsjson11_deserializeDocumentReplicationInstanceTaskLogsList(v *[]types.ReplicationInstanceTaskLog, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11385,18 +11407,20 @@ func awsAwsjson11_deserializeDocumentReplicationInstanceTaskLogsList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicationInstanceTaskLog + var cv []types.ReplicationInstanceTaskLog if *v == nil { - cv = []*types.ReplicationInstanceTaskLog{} + cv = []types.ReplicationInstanceTaskLog{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicationInstanceTaskLog - if err := awsAwsjson11_deserializeDocumentReplicationInstanceTaskLog(&col, value); err != nil { + var col types.ReplicationInstanceTaskLog + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReplicationInstanceTaskLog(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11445,7 +11469,7 @@ func awsAwsjson11_deserializeDocumentReplicationPendingModifiedValues(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "MultiAZ": @@ -11454,7 +11478,7 @@ func awsAwsjson11_deserializeDocumentReplicationPendingModifiedValues(v **types. if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.MultiAZ = &jtv + sv.MultiAZ = ptr.Bool(jtv) } case "ReplicationInstanceClass": @@ -11463,7 +11487,7 @@ func awsAwsjson11_deserializeDocumentReplicationPendingModifiedValues(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstanceClass = &jtv + sv.ReplicationInstanceClass = ptr.String(jtv) } default: @@ -11503,7 +11527,7 @@ func awsAwsjson11_deserializeDocumentReplicationSubnetGroup(v **types.Replicatio if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationSubnetGroupDescription = &jtv + sv.ReplicationSubnetGroupDescription = ptr.String(jtv) } case "ReplicationSubnetGroupIdentifier": @@ -11512,7 +11536,7 @@ func awsAwsjson11_deserializeDocumentReplicationSubnetGroup(v **types.Replicatio if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationSubnetGroupIdentifier = &jtv + sv.ReplicationSubnetGroupIdentifier = ptr.String(jtv) } case "SubnetGroupStatus": @@ -11521,7 +11545,7 @@ func awsAwsjson11_deserializeDocumentReplicationSubnetGroup(v **types.Replicatio if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SubnetGroupStatus = &jtv + sv.SubnetGroupStatus = ptr.String(jtv) } case "Subnets": @@ -11535,7 +11559,7 @@ func awsAwsjson11_deserializeDocumentReplicationSubnetGroup(v **types.Replicatio if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -11575,7 +11599,7 @@ func awsAwsjson11_deserializeDocumentReplicationSubnetGroupDoesNotCoverEnoughAZs if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11587,7 +11611,7 @@ func awsAwsjson11_deserializeDocumentReplicationSubnetGroupDoesNotCoverEnoughAZs return nil } -func awsAwsjson11_deserializeDocumentReplicationSubnetGroups(v *[]*types.ReplicationSubnetGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentReplicationSubnetGroups(v *[]types.ReplicationSubnetGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11600,18 +11624,20 @@ func awsAwsjson11_deserializeDocumentReplicationSubnetGroups(v *[]*types.Replica return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicationSubnetGroup + var cv []types.ReplicationSubnetGroup if *v == nil { - cv = []*types.ReplicationSubnetGroup{} + cv = []types.ReplicationSubnetGroup{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicationSubnetGroup - if err := awsAwsjson11_deserializeDocumentReplicationSubnetGroup(&col, value); err != nil { + var col types.ReplicationSubnetGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReplicationSubnetGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11647,7 +11673,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CdcStartPosition = &jtv + sv.CdcStartPosition = ptr.String(jtv) } case "CdcStopPosition": @@ -11656,7 +11682,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CdcStopPosition = &jtv + sv.CdcStopPosition = ptr.String(jtv) } case "LastFailureMessage": @@ -11665,7 +11691,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastFailureMessage = &jtv + sv.LastFailureMessage = ptr.String(jtv) } case "MigrationType": @@ -11683,7 +11709,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RecoveryCheckpoint = &jtv + sv.RecoveryCheckpoint = ptr.String(jtv) } case "ReplicationInstanceArn": @@ -11692,7 +11718,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstanceArn = &jtv + sv.ReplicationInstanceArn = ptr.String(jtv) } case "ReplicationTaskArn": @@ -11701,7 +11727,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationTaskArn = &jtv + sv.ReplicationTaskArn = ptr.String(jtv) } case "ReplicationTaskCreationDate": @@ -11723,7 +11749,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationTaskIdentifier = &jtv + sv.ReplicationTaskIdentifier = ptr.String(jtv) } case "ReplicationTaskSettings": @@ -11732,7 +11758,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationTaskSettings = &jtv + sv.ReplicationTaskSettings = ptr.String(jtv) } case "ReplicationTaskStartDate": @@ -11759,7 +11785,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceEndpointArn = &jtv + sv.SourceEndpointArn = ptr.String(jtv) } case "Status": @@ -11768,7 +11794,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "StopReason": @@ -11777,7 +11803,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StopReason = &jtv + sv.StopReason = ptr.String(jtv) } case "TableMappings": @@ -11786,7 +11812,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TableMappings = &jtv + sv.TableMappings = ptr.String(jtv) } case "TargetEndpointArn": @@ -11795,7 +11821,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TargetEndpointArn = &jtv + sv.TargetEndpointArn = ptr.String(jtv) } case "TaskData": @@ -11804,7 +11830,7 @@ func awsAwsjson11_deserializeDocumentReplicationTask(v **types.ReplicationTask, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TaskData = &jtv + sv.TaskData = ptr.String(jtv) } default: @@ -11844,7 +11870,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentResult(v **types.R if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AssessmentResults = &jtv + sv.AssessmentResults = ptr.String(jtv) } case "AssessmentResultsFile": @@ -11853,7 +11879,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentResult(v **types.R if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AssessmentResultsFile = &jtv + sv.AssessmentResultsFile = ptr.String(jtv) } case "AssessmentStatus": @@ -11862,7 +11888,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentResult(v **types.R if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AssessmentStatus = &jtv + sv.AssessmentStatus = ptr.String(jtv) } case "ReplicationTaskArn": @@ -11871,7 +11897,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentResult(v **types.R if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationTaskArn = &jtv + sv.ReplicationTaskArn = ptr.String(jtv) } case "ReplicationTaskIdentifier": @@ -11880,7 +11906,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentResult(v **types.R if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationTaskIdentifier = &jtv + sv.ReplicationTaskIdentifier = ptr.String(jtv) } case "ReplicationTaskLastAssessmentDate": @@ -11902,7 +11928,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentResult(v **types.R if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3ObjectUrl = &jtv + sv.S3ObjectUrl = ptr.String(jtv) } default: @@ -11914,7 +11940,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentResult(v **types.R return nil } -func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentResultList(v *[]*types.ReplicationTaskAssessmentResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentResultList(v *[]types.ReplicationTaskAssessmentResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11927,18 +11953,20 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentResultList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicationTaskAssessmentResult + var cv []types.ReplicationTaskAssessmentResult if *v == nil { - cv = []*types.ReplicationTaskAssessmentResult{} + cv = []types.ReplicationTaskAssessmentResult{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicationTaskAssessmentResult - if err := awsAwsjson11_deserializeDocumentReplicationTaskAssessmentResult(&col, value); err != nil { + var col types.ReplicationTaskAssessmentResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReplicationTaskAssessmentResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11979,7 +12007,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRun(v **types.Repl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AssessmentRunName = &jtv + sv.AssessmentRunName = ptr.String(jtv) } case "LastFailureMessage": @@ -11988,7 +12016,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRun(v **types.Repl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastFailureMessage = &jtv + sv.LastFailureMessage = ptr.String(jtv) } case "ReplicationTaskArn": @@ -11997,7 +12025,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRun(v **types.Repl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationTaskArn = &jtv + sv.ReplicationTaskArn = ptr.String(jtv) } case "ReplicationTaskAssessmentRunArn": @@ -12006,7 +12034,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRun(v **types.Repl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationTaskAssessmentRunArn = &jtv + sv.ReplicationTaskAssessmentRunArn = ptr.String(jtv) } case "ReplicationTaskAssessmentRunCreationDate": @@ -12028,7 +12056,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRun(v **types.Repl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResultEncryptionMode = &jtv + sv.ResultEncryptionMode = ptr.String(jtv) } case "ResultKmsKeyArn": @@ -12037,7 +12065,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRun(v **types.Repl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResultKmsKeyArn = &jtv + sv.ResultKmsKeyArn = ptr.String(jtv) } case "ResultLocationBucket": @@ -12046,7 +12074,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRun(v **types.Repl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResultLocationBucket = &jtv + sv.ResultLocationBucket = ptr.String(jtv) } case "ResultLocationFolder": @@ -12055,7 +12083,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRun(v **types.Repl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResultLocationFolder = &jtv + sv.ResultLocationFolder = ptr.String(jtv) } case "ServiceAccessRoleArn": @@ -12064,7 +12092,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRun(v **types.Repl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceAccessRoleArn = &jtv + sv.ServiceAccessRoleArn = ptr.String(jtv) } case "Status": @@ -12073,7 +12101,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRun(v **types.Repl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -12085,7 +12113,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRun(v **types.Repl return nil } -func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRunList(v *[]*types.ReplicationTaskAssessmentRun, value interface{}) error { +func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRunList(v *[]types.ReplicationTaskAssessmentRun, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12098,18 +12126,20 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRunList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicationTaskAssessmentRun + var cv []types.ReplicationTaskAssessmentRun if *v == nil { - cv = []*types.ReplicationTaskAssessmentRun{} + cv = []types.ReplicationTaskAssessmentRun{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicationTaskAssessmentRun - if err := awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRun(&col, value); err != nil { + var col types.ReplicationTaskAssessmentRun + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRun(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12149,7 +12179,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRunProgress(v **ty if err != nil { return err } - sv.IndividualAssessmentCompletedCount = ptr.Int32(int32(i64)) + sv.IndividualAssessmentCompletedCount = int32(i64) } case "IndividualAssessmentCount": @@ -12162,7 +12192,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskAssessmentRunProgress(v **ty if err != nil { return err } - sv.IndividualAssessmentCount = ptr.Int32(int32(i64)) + sv.IndividualAssessmentCount = int32(i64) } default: @@ -12202,7 +12232,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskIndividualAssessment(v **typ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IndividualAssessmentName = &jtv + sv.IndividualAssessmentName = ptr.String(jtv) } case "ReplicationTaskAssessmentRunArn": @@ -12211,7 +12241,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskIndividualAssessment(v **typ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationTaskAssessmentRunArn = &jtv + sv.ReplicationTaskAssessmentRunArn = ptr.String(jtv) } case "ReplicationTaskIndividualAssessmentArn": @@ -12220,7 +12250,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskIndividualAssessment(v **typ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationTaskIndividualAssessmentArn = &jtv + sv.ReplicationTaskIndividualAssessmentArn = ptr.String(jtv) } case "ReplicationTaskIndividualAssessmentStartDate": @@ -12242,7 +12272,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskIndividualAssessment(v **typ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -12254,7 +12284,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskIndividualAssessment(v **typ return nil } -func awsAwsjson11_deserializeDocumentReplicationTaskIndividualAssessmentList(v *[]*types.ReplicationTaskIndividualAssessment, value interface{}) error { +func awsAwsjson11_deserializeDocumentReplicationTaskIndividualAssessmentList(v *[]types.ReplicationTaskIndividualAssessment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12267,18 +12297,20 @@ func awsAwsjson11_deserializeDocumentReplicationTaskIndividualAssessmentList(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicationTaskIndividualAssessment + var cv []types.ReplicationTaskIndividualAssessment if *v == nil { - cv = []*types.ReplicationTaskIndividualAssessment{} + cv = []types.ReplicationTaskIndividualAssessment{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicationTaskIndividualAssessment - if err := awsAwsjson11_deserializeDocumentReplicationTaskIndividualAssessment(&col, value); err != nil { + var col types.ReplicationTaskIndividualAssessment + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReplicationTaskIndividualAssessment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12286,7 +12318,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskIndividualAssessmentList(v * return nil } -func awsAwsjson11_deserializeDocumentReplicationTaskList(v *[]*types.ReplicationTask, value interface{}) error { +func awsAwsjson11_deserializeDocumentReplicationTaskList(v *[]types.ReplicationTask, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12299,18 +12331,20 @@ func awsAwsjson11_deserializeDocumentReplicationTaskList(v *[]*types.Replication return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicationTask + var cv []types.ReplicationTask if *v == nil { - cv = []*types.ReplicationTask{} + cv = []types.ReplicationTask{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicationTask - if err := awsAwsjson11_deserializeDocumentReplicationTask(&col, value); err != nil { + var col types.ReplicationTask + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReplicationTask(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12350,7 +12384,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskStats(v **types.ReplicationT if err != nil { return err } - sv.ElapsedTimeMillis = &i64 + sv.ElapsedTimeMillis = i64 } case "FreshStartDate": @@ -12389,7 +12423,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskStats(v **types.ReplicationT if err != nil { return err } - sv.FullLoadProgressPercent = ptr.Int32(int32(i64)) + sv.FullLoadProgressPercent = int32(i64) } case "FullLoadStartDate": @@ -12441,7 +12475,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskStats(v **types.ReplicationT if err != nil { return err } - sv.TablesErrored = ptr.Int32(int32(i64)) + sv.TablesErrored = int32(i64) } case "TablesLoaded": @@ -12454,7 +12488,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskStats(v **types.ReplicationT if err != nil { return err } - sv.TablesLoaded = ptr.Int32(int32(i64)) + sv.TablesLoaded = int32(i64) } case "TablesLoading": @@ -12467,7 +12501,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskStats(v **types.ReplicationT if err != nil { return err } - sv.TablesLoading = ptr.Int32(int32(i64)) + sv.TablesLoading = int32(i64) } case "TablesQueued": @@ -12480,7 +12514,7 @@ func awsAwsjson11_deserializeDocumentReplicationTaskStats(v **types.ReplicationT if err != nil { return err } - sv.TablesQueued = ptr.Int32(int32(i64)) + sv.TablesQueued = int32(i64) } default: @@ -12520,7 +12554,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsFault(v **types.Resour if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceArn": @@ -12529,7 +12563,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsFault(v **types.Resour if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } default: @@ -12569,7 +12603,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundFault(v **types.ResourceNot if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12614,7 +12648,7 @@ func awsAwsjson11_deserializeDocumentResourcePendingMaintenanceActions(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceIdentifier = &jtv + sv.ResourceIdentifier = ptr.String(jtv) } default: @@ -12654,7 +12688,7 @@ func awsAwsjson11_deserializeDocumentResourceQuotaExceededFault(v **types.Resour if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12694,7 +12728,7 @@ func awsAwsjson11_deserializeDocumentS3AccessDeniedFault(v **types.S3AccessDenie if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12734,7 +12768,7 @@ func awsAwsjson11_deserializeDocumentS3ResourceNotFoundFault(v **types.S3Resourc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12774,7 +12808,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BucketFolder = &jtv + sv.BucketFolder = ptr.String(jtv) } case "BucketName": @@ -12783,7 +12817,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "CdcInsertsAndUpdates": @@ -12792,7 +12826,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.CdcInsertsAndUpdates = &jtv + sv.CdcInsertsAndUpdates = ptr.Bool(jtv) } case "CdcInsertsOnly": @@ -12801,7 +12835,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.CdcInsertsOnly = &jtv + sv.CdcInsertsOnly = ptr.Bool(jtv) } case "CompressionType": @@ -12819,7 +12853,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CsvDelimiter = &jtv + sv.CsvDelimiter = ptr.String(jtv) } case "CsvRowDelimiter": @@ -12828,7 +12862,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CsvRowDelimiter = &jtv + sv.CsvRowDelimiter = ptr.String(jtv) } case "DataFormat": @@ -12868,7 +12902,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.DatePartitionEnabled = &jtv + sv.DatePartitionEnabled = ptr.Bool(jtv) } case "DatePartitionSequence": @@ -12899,7 +12933,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.EnableStatistics = &jtv + sv.EnableStatistics = ptr.Bool(jtv) } case "EncodingType": @@ -12926,7 +12960,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExternalTableDefinition = &jtv + sv.ExternalTableDefinition = ptr.String(jtv) } case "IncludeOpForFullLoad": @@ -12935,7 +12969,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.IncludeOpForFullLoad = &jtv + sv.IncludeOpForFullLoad = ptr.Bool(jtv) } case "ParquetTimestampInMillisecond": @@ -12944,7 +12978,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.ParquetTimestampInMillisecond = &jtv + sv.ParquetTimestampInMillisecond = ptr.Bool(jtv) } case "ParquetVersion": @@ -12975,7 +13009,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerSideEncryptionKmsKeyId = &jtv + sv.ServerSideEncryptionKmsKeyId = ptr.String(jtv) } case "ServiceAccessRoleArn": @@ -12984,7 +13018,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceAccessRoleArn = &jtv + sv.ServiceAccessRoleArn = ptr.String(jtv) } case "TimestampColumnName": @@ -12993,7 +13027,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TimestampColumnName = &jtv + sv.TimestampColumnName = ptr.String(jtv) } default: @@ -13005,7 +13039,7 @@ func awsAwsjson11_deserializeDocumentS3Settings(v **types.S3Settings, value inte return nil } -func awsAwsjson11_deserializeDocumentSchemaList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSchemaList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13018,21 +13052,21 @@ func awsAwsjson11_deserializeDocumentSchemaList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -13069,7 +13103,7 @@ func awsAwsjson11_deserializeDocumentSNSInvalidTopicFault(v **types.SNSInvalidTo if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13109,7 +13143,7 @@ func awsAwsjson11_deserializeDocumentSNSNoAuthorizationFault(v **types.SNSNoAuth if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13121,7 +13155,7 @@ func awsAwsjson11_deserializeDocumentSNSNoAuthorizationFault(v **types.SNSNoAuth return nil } -func awsAwsjson11_deserializeDocumentSourceIdsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSourceIdsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13134,21 +13168,21 @@ func awsAwsjson11_deserializeDocumentSourceIdsList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -13185,7 +13219,7 @@ func awsAwsjson11_deserializeDocumentStorageQuotaExceededFault(v **types.Storage if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13230,7 +13264,7 @@ func awsAwsjson11_deserializeDocumentSubnet(v **types.Subnet, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SubnetIdentifier = &jtv + sv.SubnetIdentifier = ptr.String(jtv) } case "SubnetStatus": @@ -13239,7 +13273,7 @@ func awsAwsjson11_deserializeDocumentSubnet(v **types.Subnet, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SubnetStatus = &jtv + sv.SubnetStatus = ptr.String(jtv) } default: @@ -13279,7 +13313,7 @@ func awsAwsjson11_deserializeDocumentSubnetAlreadyInUse(v **types.SubnetAlreadyI if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13291,7 +13325,7 @@ func awsAwsjson11_deserializeDocumentSubnetAlreadyInUse(v **types.SubnetAlreadyI return nil } -func awsAwsjson11_deserializeDocumentSubnetList(v *[]*types.Subnet, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnetList(v *[]types.Subnet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13304,18 +13338,20 @@ func awsAwsjson11_deserializeDocumentSubnetList(v *[]*types.Subnet, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Subnet + var cv []types.Subnet if *v == nil { - cv = []*types.Subnet{} + cv = []types.Subnet{} } else { cv = *v } for _, value := range shape { - var col *types.Subnet - if err := awsAwsjson11_deserializeDocumentSubnet(&col, value); err != nil { + var col types.Subnet + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubnet(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13360,7 +13396,7 @@ func awsAwsjson11_deserializeDocumentSupportedEndpointType(v **types.SupportedEn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EngineDisplayName = &jtv + sv.EngineDisplayName = ptr.String(jtv) } case "EngineName": @@ -13369,7 +13405,7 @@ func awsAwsjson11_deserializeDocumentSupportedEndpointType(v **types.SupportedEn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EngineName = &jtv + sv.EngineName = ptr.String(jtv) } case "ReplicationInstanceEngineMinimumVersion": @@ -13378,7 +13414,7 @@ func awsAwsjson11_deserializeDocumentSupportedEndpointType(v **types.SupportedEn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstanceEngineMinimumVersion = &jtv + sv.ReplicationInstanceEngineMinimumVersion = ptr.String(jtv) } case "SupportsCDC": @@ -13387,7 +13423,7 @@ func awsAwsjson11_deserializeDocumentSupportedEndpointType(v **types.SupportedEn if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.SupportsCDC = &jtv + sv.SupportsCDC = jtv } default: @@ -13399,7 +13435,7 @@ func awsAwsjson11_deserializeDocumentSupportedEndpointType(v **types.SupportedEn return nil } -func awsAwsjson11_deserializeDocumentSupportedEndpointTypeList(v *[]*types.SupportedEndpointType, value interface{}) error { +func awsAwsjson11_deserializeDocumentSupportedEndpointTypeList(v *[]types.SupportedEndpointType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13412,18 +13448,20 @@ func awsAwsjson11_deserializeDocumentSupportedEndpointTypeList(v *[]*types.Suppo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SupportedEndpointType + var cv []types.SupportedEndpointType if *v == nil { - cv = []*types.SupportedEndpointType{} + cv = []types.SupportedEndpointType{} } else { cv = *v } for _, value := range shape { - var col *types.SupportedEndpointType - if err := awsAwsjson11_deserializeDocumentSupportedEndpointType(&col, value); err != nil { + var col types.SupportedEndpointType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSupportedEndpointType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13459,7 +13497,7 @@ func awsAwsjson11_deserializeDocumentSybaseSettings(v **types.SybaseSettings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "Password": @@ -13468,7 +13506,7 @@ func awsAwsjson11_deserializeDocumentSybaseSettings(v **types.SybaseSettings, va if !ok { return fmt.Errorf("expected SecretString to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "Port": @@ -13490,7 +13528,7 @@ func awsAwsjson11_deserializeDocumentSybaseSettings(v **types.SybaseSettings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } case "Username": @@ -13499,7 +13537,7 @@ func awsAwsjson11_deserializeDocumentSybaseSettings(v **types.SybaseSettings, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -13543,7 +13581,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if err != nil { return err } - sv.Ddls = &i64 + sv.Ddls = i64 } case "Deletes": @@ -13556,7 +13594,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if err != nil { return err } - sv.Deletes = &i64 + sv.Deletes = i64 } case "FullLoadCondtnlChkFailedRows": @@ -13569,7 +13607,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if err != nil { return err } - sv.FullLoadCondtnlChkFailedRows = &i64 + sv.FullLoadCondtnlChkFailedRows = i64 } case "FullLoadEndTime": @@ -13595,7 +13633,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if err != nil { return err } - sv.FullLoadErrorRows = &i64 + sv.FullLoadErrorRows = i64 } case "FullLoadReloaded": @@ -13604,7 +13642,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if !ok { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value) } - sv.FullLoadReloaded = &jtv + sv.FullLoadReloaded = ptr.Bool(jtv) } case "FullLoadRows": @@ -13617,7 +13655,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if err != nil { return err } - sv.FullLoadRows = &i64 + sv.FullLoadRows = i64 } case "FullLoadStartTime": @@ -13643,7 +13681,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if err != nil { return err } - sv.Inserts = &i64 + sv.Inserts = i64 } case "LastUpdateTime": @@ -13665,7 +13703,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SchemaName = &jtv + sv.SchemaName = ptr.String(jtv) } case "TableName": @@ -13674,7 +13712,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "TableState": @@ -13683,7 +13721,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TableState = &jtv + sv.TableState = ptr.String(jtv) } case "Updates": @@ -13696,7 +13734,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if err != nil { return err } - sv.Updates = &i64 + sv.Updates = i64 } case "ValidationFailedRecords": @@ -13709,7 +13747,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if err != nil { return err } - sv.ValidationFailedRecords = &i64 + sv.ValidationFailedRecords = i64 } case "ValidationPendingRecords": @@ -13722,7 +13760,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if err != nil { return err } - sv.ValidationPendingRecords = &i64 + sv.ValidationPendingRecords = i64 } case "ValidationState": @@ -13731,7 +13769,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ValidationState = &jtv + sv.ValidationState = ptr.String(jtv) } case "ValidationStateDetails": @@ -13740,7 +13778,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ValidationStateDetails = &jtv + sv.ValidationStateDetails = ptr.String(jtv) } case "ValidationSuspendedRecords": @@ -13753,7 +13791,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, if err != nil { return err } - sv.ValidationSuspendedRecords = &i64 + sv.ValidationSuspendedRecords = i64 } default: @@ -13765,7 +13803,7 @@ func awsAwsjson11_deserializeDocumentTableStatistics(v **types.TableStatistics, return nil } -func awsAwsjson11_deserializeDocumentTableStatisticsList(v *[]*types.TableStatistics, value interface{}) error { +func awsAwsjson11_deserializeDocumentTableStatisticsList(v *[]types.TableStatistics, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13778,18 +13816,20 @@ func awsAwsjson11_deserializeDocumentTableStatisticsList(v *[]*types.TableStatis return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TableStatistics + var cv []types.TableStatistics if *v == nil { - cv = []*types.TableStatistics{} + cv = []types.TableStatistics{} } else { cv = *v } for _, value := range shape { - var col *types.TableStatistics - if err := awsAwsjson11_deserializeDocumentTableStatistics(&col, value); err != nil { + var col types.TableStatistics + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTableStatistics(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13825,7 +13865,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -13834,7 +13874,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -13846,7 +13886,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13859,18 +13899,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13906,7 +13948,7 @@ func awsAwsjson11_deserializeDocumentUpgradeDependencyFailureFault(v **types.Upg if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13946,7 +13988,7 @@ func awsAwsjson11_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSec if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "VpcSecurityGroupId": @@ -13955,7 +13997,7 @@ func awsAwsjson11_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSec if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VpcSecurityGroupId = &jtv + sv.VpcSecurityGroupId = ptr.String(jtv) } default: @@ -13967,7 +14009,7 @@ func awsAwsjson11_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSec return nil } -func awsAwsjson11_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types.VpcSecurityGroupMembership, value interface{}) error { +func awsAwsjson11_deserializeDocumentVpcSecurityGroupMembershipList(v *[]types.VpcSecurityGroupMembership, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13980,18 +14022,20 @@ func awsAwsjson11_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VpcSecurityGroupMembership + var cv []types.VpcSecurityGroupMembership if *v == nil { - cv = []*types.VpcSecurityGroupMembership{} + cv = []types.VpcSecurityGroupMembership{} } else { cv = *v } for _, value := range shape { - var col *types.VpcSecurityGroupMembership - if err := awsAwsjson11_deserializeDocumentVpcSecurityGroupMembership(&col, value); err != nil { + var col types.VpcSecurityGroupMembership + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVpcSecurityGroupMembership(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14598,7 +14642,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAccountAttributesOutput(v **Descr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UniqueAccountIdentifier = &jtv + sv.UniqueAccountIdentifier = ptr.String(jtv) } default: @@ -14643,7 +14687,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeApplicableIndividualAssessmentsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -14688,7 +14732,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCertificatesOutput(v **DescribeCe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -14733,7 +14777,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeConnectionsOutput(v **DescribeCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -14778,7 +14822,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEndpointsOutput(v **DescribeEndpo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -14818,7 +14862,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEndpointTypesOutput(v **DescribeE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "SupportedEndpointTypes": @@ -14904,7 +14948,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventsOutput(v **DescribeEventsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -14949,7 +14993,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventSubscriptionsOutput(v **Desc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -14989,7 +15033,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOrderableReplicationInstancesOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "OrderableReplicationInstances": @@ -15034,7 +15078,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePendingMaintenanceActionsOutput(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "PendingMaintenanceActions": @@ -15115,7 +15159,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReplicationInstancesOutput(v **De if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "ReplicationInstances": @@ -15160,7 +15204,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReplicationInstanceTaskLogsOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "ReplicationInstanceArn": @@ -15169,7 +15213,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReplicationInstanceTaskLogsOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationInstanceArn = &jtv + sv.ReplicationInstanceArn = ptr.String(jtv) } case "ReplicationInstanceTaskLogs": @@ -15214,7 +15258,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReplicationSubnetGroupsOutput(v * if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "ReplicationSubnetGroups": @@ -15259,7 +15303,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReplicationTaskAssessmentResultsO if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "Marker": @@ -15268,7 +15312,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReplicationTaskAssessmentResultsO if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "ReplicationTaskAssessmentResults": @@ -15313,7 +15357,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReplicationTaskAssessmentRunsOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "ReplicationTaskAssessmentRuns": @@ -15358,7 +15402,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReplicationTaskIndividualAssessme if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "ReplicationTaskIndividualAssessments": @@ -15403,7 +15447,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReplicationTasksOutput(v **Descri if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "ReplicationTasks": @@ -15448,7 +15492,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSchemasOutput(v **DescribeSchemas if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "Schemas": @@ -15493,7 +15537,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTableStatisticsOutput(v **Describ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "ReplicationTaskArn": @@ -15502,7 +15546,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTableStatisticsOutput(v **Describ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationTaskArn = &jtv + sv.ReplicationTaskArn = ptr.String(jtv) } case "TableStatistics": @@ -15871,7 +15915,7 @@ func awsAwsjson11_deserializeOpDocumentReloadTablesOutput(v **ReloadTablesOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReplicationTaskArn = &jtv + sv.ReplicationTaskArn = ptr.String(jtv) } default: diff --git a/service/databasemigrationservice/go.mod b/service/databasemigrationservice/go.mod index c1486b85b9c..174973a62eb 100644 --- a/service/databasemigrationservice/go.mod +++ b/service/databasemigrationservice/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/databasemigrationservice go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/databasemigrationservice/serializers.go b/service/databasemigrationservice/serializers.go index 7f51ea6b6e4..251541a73a6 100644 --- a/service/databasemigrationservice/serializers.go +++ b/service/databasemigrationservice/serializers.go @@ -2553,32 +2553,24 @@ func awsAwsjson11_serializeDocumentElasticsearchSettings(v *types.ElasticsearchS return nil } -func awsAwsjson11_serializeDocumentEventCategoriesList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEventCategoriesList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentExcludeTestList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExcludeTestList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2602,34 +2594,26 @@ func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentFilterList(v []*types.Filter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterList(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentFilterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2681,17 +2665,13 @@ func awsAwsjson11_serializeDocumentIBMDb2Settings(v *types.IBMDb2Settings, value return nil } -func awsAwsjson11_serializeDocumentIncludeTestList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIncludeTestList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2753,17 +2733,13 @@ func awsAwsjson11_serializeDocumentKafkaSettings(v *types.KafkaSettings, value s return nil } -func awsAwsjson11_serializeDocumentKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3546,32 +3522,24 @@ func awsAwsjson11_serializeDocumentS3Settings(v *types.S3Settings, value smithyj return nil } -func awsAwsjson11_serializeDocumentSourceIdsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSourceIdsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentSubnetIdentifierList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnetIdentifierList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3608,17 +3576,13 @@ func awsAwsjson11_serializeDocumentSybaseSettings(v *types.SybaseSettings, value return nil } -func awsAwsjson11_serializeDocumentTableListToReload(v []*types.TableToReload, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTableListToReload(v []types.TableToReload, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTableToReload(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTableToReload(&v[i], av); err != nil { return err } } @@ -3659,34 +3623,26 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentVpcSecurityGroupIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVpcSecurityGroupIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5085,14 +5041,14 @@ func awsAwsjson11_serializeOpDocumentModifyReplicationInstanceInput(v *ModifyRep ok.Integer(*v.AllocatedStorage) } - if v.AllowMajorVersionUpgrade != nil { + if v.AllowMajorVersionUpgrade { ok := object.Key("AllowMajorVersionUpgrade") - ok.Boolean(*v.AllowMajorVersionUpgrade) + ok.Boolean(v.AllowMajorVersionUpgrade) } - if v.ApplyImmediately != nil { + if v.ApplyImmediately { ok := object.Key("ApplyImmediately") - ok.Boolean(*v.ApplyImmediately) + ok.Boolean(v.ApplyImmediately) } if v.AutoMinorVersionUpgrade != nil { diff --git a/service/databasemigrationservice/types/types.go b/service/databasemigrationservice/types/types.go index f83593bf2d3..a94f3be1c55 100644 --- a/service/databasemigrationservice/types/types.go +++ b/service/databasemigrationservice/types/types.go @@ -14,10 +14,10 @@ type AccountQuota struct { AccountQuotaName *string // The maximum allowed value for the quota. - Max *int64 + Max int64 // The amount currently used toward the quota maximum. - Used *int64 + Used int64 } // The name of an Availability Zone for use during database migration. @@ -354,7 +354,7 @@ type Event struct { Date *time.Time // The event categories available for the specified source type. - EventCategories []*string + EventCategories []string // The event message. Message *string @@ -375,7 +375,7 @@ type Event struct { type EventCategoryGroup struct { // A list of event categories from a source type that you've chosen. - EventCategories []*string + EventCategories []string // The type of AWS DMS resource that generates events. Valid values: // replication-instance | replication-server | security-group | replication-task @@ -394,16 +394,16 @@ type EventSubscription struct { CustomerAwsId *string // Boolean value that indicates if the event subscription is enabled. - Enabled *bool + Enabled bool // A lists of event categories. - EventCategoriesList []*string + EventCategoriesList []string // The topic ARN of the AWS DMS event notification subscription. SnsTopicArn *string // A list of source Ids for the event subscription. - SourceIdsList []*string + SourceIdsList []string // The type of AWS DMS resource that generates events. Valid values: // replication-instance | replication-server | security-group | replication-task @@ -435,7 +435,7 @@ type Filter struct { // returned results. // // This member is required. - Values []*string + Values []string } // Provides information that defines an IBM Db2 LUW endpoint. @@ -951,26 +951,26 @@ type OracleSettings struct { type OrderableReplicationInstance struct { // List of Availability Zones for this replication instance. - AvailabilityZones []*string + AvailabilityZones []string // The default amount of storage (in gigabytes) that is allocated for the // replication instance. - DefaultAllocatedStorage *int32 + DefaultAllocatedStorage int32 // The version of the replication engine. EngineVersion *string // The amount of storage (in gigabytes) that is allocated for the replication // instance. - IncludedAllocatedStorage *int32 + IncludedAllocatedStorage int32 // The minimum amount of storage (in gigabytes) that can be allocated for the // replication instance. - MaxAllocatedStorage *int32 + MaxAllocatedStorage int32 // The minimum amount of storage (in gigabytes) that can be allocated for the // replication instance. - MinAllocatedStorage *int32 + MinAllocatedStorage int32 // The value returned when the specified EngineVersion of the replication instance // is in Beta or test mode. This indicates some features might not work as @@ -1255,11 +1255,11 @@ type ReplicationInstance struct { // The amount of storage (in gigabytes) that is allocated for the replication // instance. - AllocatedStorage *int32 + AllocatedStorage int32 // Boolean value indicating if minor version upgrades will be automatically applied // to the instance. - AutoMinorVersionUpgrade *bool + AutoMinorVersionUpgrade bool // The Availability Zone for the instance. AvailabilityZone *string @@ -1290,7 +1290,7 @@ type ReplicationInstance struct { // Specifies whether the replication instance is a Multi-AZ deployment. You can't // set the AvailabilityZone parameter if the Multi-AZ parameter is set to true. - MultiAZ *bool + MultiAZ bool // The pending modification values. PendingModifiedValues *ReplicationPendingModifiedValues @@ -1302,7 +1302,7 @@ type ReplicationInstance struct { // Specifies the accessibility options for the replication instance. A value of // true represents an instance with a public IP address. A value of false // represents an instance with a private IP address. The default value is true. - PubliclyAccessible *bool + PubliclyAccessible bool // The Amazon Resource Name (ARN) of the replication instance. ReplicationInstanceArn *string @@ -1333,13 +1333,13 @@ type ReplicationInstance struct { ReplicationInstancePrivateIpAddress *string // One or more private IP addresses for the replication instance. - ReplicationInstancePrivateIpAddresses []*string + ReplicationInstancePrivateIpAddresses []string // The public IP address of the replication instance. ReplicationInstancePublicIpAddress *string // One or more public IP addresses for the replication instance. - ReplicationInstancePublicIpAddresses []*string + ReplicationInstancePublicIpAddresses []string // The status of the replication instance. The possible return values include: // @@ -1382,14 +1382,14 @@ type ReplicationInstance struct { SecondaryAvailabilityZone *string // The VPC security group for the instance. - VpcSecurityGroups []*VpcSecurityGroupMembership + VpcSecurityGroups []VpcSecurityGroupMembership } // Contains metadata for a replication instance task log. type ReplicationInstanceTaskLog struct { // The size, in bytes, of the replication task log. - ReplicationInstanceTaskLogSize *int64 + ReplicationInstanceTaskLogSize int64 // The Amazon Resource Name (ARN) of the replication task. ReplicationTaskArn *string @@ -1437,7 +1437,7 @@ type ReplicationSubnetGroup struct { SubnetGroupStatus *string // The subnets that are in the subnet group. - Subnets []*Subnet + Subnets []Subnet // The ID of the VPC. VpcId *string @@ -1650,10 +1650,10 @@ type ReplicationTaskAssessmentRun struct { type ReplicationTaskAssessmentRunProgress struct { // The number of individual assessments that have completed, successfully or not. - IndividualAssessmentCompletedCount *int32 + IndividualAssessmentCompletedCount int32 // The number of individual assessments that are specified to run. - IndividualAssessmentCount *int32 + IndividualAssessmentCount int32 } // Provides information that describes an individual assessment from a premigration @@ -1697,7 +1697,7 @@ type ReplicationTaskIndividualAssessment struct { type ReplicationTaskStats struct { // The elapsed time of the task, in milliseconds. - ElapsedTimeMillis *int64 + ElapsedTimeMillis int64 // The date the replication task was started either with a fresh start or a target // reload. @@ -1707,7 +1707,7 @@ type ReplicationTaskStats struct { FullLoadFinishDate *time.Time // The percent complete for the full load migration task. - FullLoadProgressPercent *int32 + FullLoadProgressPercent int32 // The date the replication task full load was started. FullLoadStartDate *time.Time @@ -1721,23 +1721,23 @@ type ReplicationTaskStats struct { StopDate *time.Time // The number of errors that have occurred during this task. - TablesErrored *int32 + TablesErrored int32 // The number of tables loaded for this task. - TablesLoaded *int32 + TablesLoaded int32 // The number of tables currently loading for this task. - TablesLoading *int32 + TablesLoading int32 // The number of tables queued for this task. - TablesQueued *int32 + TablesQueued int32 } // Identifies an AWS DMS resource and any pending actions for it. type ResourcePendingMaintenanceActions struct { // Detailed information about the pending maintenance action. - PendingMaintenanceActionDetails []*PendingMaintenanceAction + PendingMaintenanceActionDetails []PendingMaintenanceAction // The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance // action applies to. For information about creating an ARN, see Constructing an @@ -2021,7 +2021,7 @@ type SupportedEndpointType struct { ReplicationInstanceEngineMinimumVersion *string // Indicates if Change Data Capture (CDC) is supported. - SupportsCDC *bool + SupportsCDC bool } // Provides information that defines a SAP ASE endpoint. @@ -2049,34 +2049,34 @@ type TableStatistics struct { // The data definition language (DDL) used to build and modify the structure of // your tables. - Ddls *int64 + Ddls int64 // The number of delete actions performed on a table. - Deletes *int64 + Deletes int64 // The number of rows that failed conditional checks during the full load operation // (valid only for migrations where DynamoDB is the target). - FullLoadCondtnlChkFailedRows *int64 + FullLoadCondtnlChkFailedRows int64 // The time when the full load operation completed. FullLoadEndTime *time.Time // The number of rows that failed to load during the full load operation (valid // only for migrations where DynamoDB is the target). - FullLoadErrorRows *int64 + FullLoadErrorRows int64 // A value that indicates if the table was reloaded (true) or loaded as part of a // new full load operation (false). FullLoadReloaded *bool // The number of rows added during the full load operation. - FullLoadRows *int64 + FullLoadRows int64 // The time when the full load operation started. FullLoadStartTime *time.Time // The number of insert actions performed on a table. - Inserts *int64 + Inserts int64 // The last time a table was updated. LastUpdateTime *time.Time @@ -2093,13 +2093,13 @@ type TableStatistics struct { TableState *string // The number of update actions performed on a table. - Updates *int64 + Updates int64 // The number of records that failed validation. - ValidationFailedRecords *int64 + ValidationFailedRecords int64 // The number of records that have yet to be validated. - ValidationPendingRecords *int64 + ValidationPendingRecords int64 // The validation state of the table. This parameter can have the following // values: @@ -2143,7 +2143,7 @@ type TableStatistics struct { ValidationStateDetails *string // The number of records that couldn't be validated. - ValidationSuspendedRecords *int64 + ValidationSuspendedRecords int64 } // Provides the name of the schema and table to be reloaded. diff --git a/service/databasemigrationservice/validators.go b/service/databasemigrationservice/validators.go index 2bc73bf26dc..a4fe74b0c5d 100644 --- a/service/databasemigrationservice/validators.go +++ b/service/databasemigrationservice/validators.go @@ -1237,13 +1237,13 @@ func validateFilter(v *types.Filter) error { } } -func validateFilterList(v []*types.Filter) error { +func validateFilterList(v []types.Filter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FilterList"} for i := range v { - if err := validateFilter(v[i]); err != nil { + if err := validateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1272,13 +1272,13 @@ func validateNeptuneSettings(v *types.NeptuneSettings) error { } } -func validateTableListToReload(v []*types.TableToReload) error { +func validateTableListToReload(v []types.TableToReload) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TableListToReload"} for i := range v { - if err := validateTableToReload(v[i]); err != nil { + if err := validateTableToReload(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/dataexchange/api_op_CreateDataSet.go b/service/dataexchange/api_op_CreateDataSet.go index 8f8c2810d06..0e62b853419 100644 --- a/service/dataexchange/api_op_CreateDataSet.go +++ b/service/dataexchange/api_op_CreateDataSet.go @@ -51,7 +51,7 @@ type CreateDataSetInput struct { // create it. Each tag consists of a key and an optional value, both of which you // define. When you use tagging, you can also use tag-based access control in IAM // policies to control access to these data sets and revisions. - Tags map[string]*string + Tags map[string]string } type CreateDataSetOutput struct { @@ -89,7 +89,7 @@ type CreateDataSetOutput struct { SourceId *string // The tags for the data set. - Tags map[string]*string + Tags map[string]string // The date and time that the data set was last updated, in ISO 8601 format. UpdatedAt *time.Time diff --git a/service/dataexchange/api_op_CreateJob.go b/service/dataexchange/api_op_CreateJob.go index c9277517960..f2ae2e07fe7 100644 --- a/service/dataexchange/api_op_CreateJob.go +++ b/service/dataexchange/api_op_CreateJob.go @@ -54,7 +54,7 @@ type CreateJobOutput struct { Details *types.ResponseDetails // The errors associated with jobs. - Errors []*types.JobError + Errors []types.JobError // The unique identifier for the job. Id *string diff --git a/service/dataexchange/api_op_CreateRevision.go b/service/dataexchange/api_op_CreateRevision.go index c712f958ba4..2e2a4479427 100644 --- a/service/dataexchange/api_op_CreateRevision.go +++ b/service/dataexchange/api_op_CreateRevision.go @@ -42,7 +42,7 @@ type CreateRevisionInput struct { // create it. Each tag consists of a key and an optional value, both of which you // define. When you use tagging, you can also use tag-based access control in IAM // policies to control access to these data sets and revisions. - Tags map[string]*string + Tags map[string]string } type CreateRevisionOutput struct { @@ -66,7 +66,7 @@ type CreateRevisionOutput struct { // through the AWS Data Exchange console or the AWS Marketplace Catalog API, using // the StartChangeSet AWS Marketplace Catalog API action. When using the API, // revisions are uniquely identified by their ARN. - Finalized *bool + Finalized bool // The unique identifier for the revision. Id *string @@ -77,7 +77,7 @@ type CreateRevisionOutput struct { SourceId *string // The tags for the revision. - Tags map[string]*string + Tags map[string]string // The date and time that the revision was last updated, in ISO 8601 format. UpdatedAt *time.Time diff --git a/service/dataexchange/api_op_GetDataSet.go b/service/dataexchange/api_op_GetDataSet.go index dc0b6060fe7..0a74b022d55 100644 --- a/service/dataexchange/api_op_GetDataSet.go +++ b/service/dataexchange/api_op_GetDataSet.go @@ -71,7 +71,7 @@ type GetDataSetOutput struct { SourceId *string // The tags for the data set. - Tags map[string]*string + Tags map[string]string // The date and time that the data set was last updated, in ISO 8601 format. UpdatedAt *time.Time diff --git a/service/dataexchange/api_op_GetJob.go b/service/dataexchange/api_op_GetJob.go index 0f49e92ba45..c947af0a10c 100644 --- a/service/dataexchange/api_op_GetJob.go +++ b/service/dataexchange/api_op_GetJob.go @@ -48,7 +48,7 @@ type GetJobOutput struct { Details *types.ResponseDetails // The errors associated with jobs. - Errors []*types.JobError + Errors []types.JobError // The unique identifier for the job. Id *string diff --git a/service/dataexchange/api_op_GetRevision.go b/service/dataexchange/api_op_GetRevision.go index 0cf17a4db16..67541bb63ba 100644 --- a/service/dataexchange/api_op_GetRevision.go +++ b/service/dataexchange/api_op_GetRevision.go @@ -61,7 +61,7 @@ type GetRevisionOutput struct { // through the AWS Data Exchange console or the AWS Marketplace Catalog API, using // the StartChangeSet AWS Marketplace Catalog API action. When using the API, // revisions are uniquely identified by their ARN. - Finalized *bool + Finalized bool // The unique identifier for the revision. Id *string @@ -72,7 +72,7 @@ type GetRevisionOutput struct { SourceId *string // The tags for the revision. - Tags map[string]*string + Tags map[string]string // The date and time that the revision was last updated, in ISO 8601 format. UpdatedAt *time.Time diff --git a/service/dataexchange/api_op_ListDataSetRevisions.go b/service/dataexchange/api_op_ListDataSetRevisions.go index df5deb9955f..98d6c21786c 100644 --- a/service/dataexchange/api_op_ListDataSetRevisions.go +++ b/service/dataexchange/api_op_ListDataSetRevisions.go @@ -36,7 +36,7 @@ type ListDataSetRevisionsInput struct { DataSetId *string // The maximum number of results returned by a single call. - MaxResults *int32 + MaxResults int32 // The token value retrieved from a previous call to access the next page of // results. @@ -50,7 +50,7 @@ type ListDataSetRevisionsOutput struct { NextToken *string // The asset objects listed by the request. - Revisions []*types.RevisionEntry + Revisions []types.RevisionEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dataexchange/api_op_ListDataSets.go b/service/dataexchange/api_op_ListDataSets.go index a4bfa18ea36..e0c5896e4fb 100644 --- a/service/dataexchange/api_op_ListDataSets.go +++ b/service/dataexchange/api_op_ListDataSets.go @@ -32,7 +32,7 @@ func (c *Client) ListDataSets(ctx context.Context, params *ListDataSetsInput, op type ListDataSetsInput struct { // The maximum number of results returned by a single call. - MaxResults *int32 + MaxResults int32 // The token value retrieved from a previous call to access the next page of // results. @@ -46,7 +46,7 @@ type ListDataSetsInput struct { type ListDataSetsOutput struct { // The data set objects listed by the request. - DataSets []*types.DataSetEntry + DataSets []types.DataSetEntry // The token value retrieved from a previous call to access the next page of // results. diff --git a/service/dataexchange/api_op_ListJobs.go b/service/dataexchange/api_op_ListJobs.go index ed477c4f529..f5119b9f325 100644 --- a/service/dataexchange/api_op_ListJobs.go +++ b/service/dataexchange/api_op_ListJobs.go @@ -33,7 +33,7 @@ type ListJobsInput struct { DataSetId *string // The maximum number of results returned by a single call. - MaxResults *int32 + MaxResults int32 // The token value retrieved from a previous call to access the next page of // results. @@ -46,7 +46,7 @@ type ListJobsInput struct { type ListJobsOutput struct { // The jobs listed by the request. - Jobs []*types.JobEntry + Jobs []types.JobEntry // The token value retrieved from a previous call to access the next page of // results. diff --git a/service/dataexchange/api_op_ListRevisionAssets.go b/service/dataexchange/api_op_ListRevisionAssets.go index b115be83eb5..8d9089f2b90 100644 --- a/service/dataexchange/api_op_ListRevisionAssets.go +++ b/service/dataexchange/api_op_ListRevisionAssets.go @@ -41,7 +41,7 @@ type ListRevisionAssetsInput struct { RevisionId *string // The maximum number of results returned by a single call. - MaxResults *int32 + MaxResults int32 // The token value retrieved from a previous call to access the next page of // results. @@ -51,7 +51,7 @@ type ListRevisionAssetsInput struct { type ListRevisionAssetsOutput struct { // The asset objects listed by the request. - Assets []*types.AssetEntry + Assets []types.AssetEntry // The token value retrieved from a previous call to access the next page of // results. diff --git a/service/dataexchange/api_op_ListTagsForResource.go b/service/dataexchange/api_op_ListTagsForResource.go index f5cdb364ee2..c0963d10fa9 100644 --- a/service/dataexchange/api_op_ListTagsForResource.go +++ b/service/dataexchange/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // A label that consists of a customer-defined key and an optional value. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dataexchange/api_op_TagResource.go b/service/dataexchange/api_op_TagResource.go index 56541506d33..3a3d81cb219 100644 --- a/service/dataexchange/api_op_TagResource.go +++ b/service/dataexchange/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // A label that consists of a customer-defined key and an optional value. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/dataexchange/api_op_UntagResource.go b/service/dataexchange/api_op_UntagResource.go index 3af720fafe3..241ac12d691 100644 --- a/service/dataexchange/api_op_UntagResource.go +++ b/service/dataexchange/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The key tags. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/dataexchange/api_op_UpdateRevision.go b/service/dataexchange/api_op_UpdateRevision.go index 72909ee75ed..5236f441638 100644 --- a/service/dataexchange/api_op_UpdateRevision.go +++ b/service/dataexchange/api_op_UpdateRevision.go @@ -46,7 +46,7 @@ type UpdateRevisionInput struct { // Finalizing a revision tells AWS Data Exchange that your changes to the assets in // the revision are complete. After it's in this read-only state, you can publish // the revision to your products. - Finalized *bool + Finalized bool } type UpdateRevisionOutput struct { @@ -70,7 +70,7 @@ type UpdateRevisionOutput struct { // through the AWS Data Exchange console or the AWS Marketplace Catalog API, using // the StartChangeSet AWS Marketplace Catalog API action. When using the API, // revisions are uniquely identified by their ARN. - Finalized *bool + Finalized bool // The unique identifier for the revision. Id *string diff --git a/service/dataexchange/deserializers.go b/service/dataexchange/deserializers.go index 5d3b1e977ba..d17ff95e33c 100644 --- a/service/dataexchange/deserializers.go +++ b/service/dataexchange/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithytime "github.com/awslabs/smithy-go/time" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" @@ -264,7 +265,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSetOutput(v **CreateDataSetOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AssetType": @@ -286,7 +287,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSetOutput(v **CreateDataSetOutp if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "Description": @@ -295,7 +296,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSetOutput(v **CreateDataSetOutp if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -304,7 +305,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSetOutput(v **CreateDataSetOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -313,7 +314,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSetOutput(v **CreateDataSetOutp if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Origin": @@ -336,7 +337,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSetOutput(v **CreateDataSetOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.SourceId = &jtv + sv.SourceId = ptr.String(jtv) } case "Tags": @@ -354,7 +355,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSetOutput(v **CreateDataSetOutp if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -517,7 +518,7 @@ func awsRestjson1_deserializeOpDocumentCreateJobOutput(v **CreateJobOutput, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedAt": @@ -530,7 +531,7 @@ func awsRestjson1_deserializeOpDocumentCreateJobOutput(v **CreateJobOutput, valu if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "Details": @@ -549,7 +550,7 @@ func awsRestjson1_deserializeOpDocumentCreateJobOutput(v **CreateJobOutput, valu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "State": @@ -580,7 +581,7 @@ func awsRestjson1_deserializeOpDocumentCreateJobOutput(v **CreateJobOutput, valu if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -743,7 +744,7 @@ func awsRestjson1_deserializeOpDocumentCreateRevisionOutput(v **CreateRevisionOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Comment": @@ -752,7 +753,7 @@ func awsRestjson1_deserializeOpDocumentCreateRevisionOutput(v **CreateRevisionOu if !ok { return fmt.Errorf("expected __stringMin0Max16384 to be of type string, got %T instead", value) } - sv.Comment = &jtv + sv.Comment = ptr.String(jtv) } case "CreatedAt": @@ -765,7 +766,7 @@ func awsRestjson1_deserializeOpDocumentCreateRevisionOutput(v **CreateRevisionOu if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "DataSetId": @@ -774,7 +775,7 @@ func awsRestjson1_deserializeOpDocumentCreateRevisionOutput(v **CreateRevisionOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "Finalized": @@ -783,7 +784,7 @@ func awsRestjson1_deserializeOpDocumentCreateRevisionOutput(v **CreateRevisionOu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Finalized = &jtv + sv.Finalized = jtv } case "Id": @@ -792,7 +793,7 @@ func awsRestjson1_deserializeOpDocumentCreateRevisionOutput(v **CreateRevisionOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "SourceId": @@ -801,7 +802,7 @@ func awsRestjson1_deserializeOpDocumentCreateRevisionOutput(v **CreateRevisionOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.SourceId = &jtv + sv.SourceId = ptr.String(jtv) } case "Tags": @@ -819,7 +820,7 @@ func awsRestjson1_deserializeOpDocumentCreateRevisionOutput(v **CreateRevisionOu if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -1273,7 +1274,7 @@ func awsRestjson1_deserializeOpDocumentGetAssetOutput(v **GetAssetOutput, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AssetDetails": @@ -1300,7 +1301,7 @@ func awsRestjson1_deserializeOpDocumentGetAssetOutput(v **GetAssetOutput, value if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "DataSetId": @@ -1309,7 +1310,7 @@ func awsRestjson1_deserializeOpDocumentGetAssetOutput(v **GetAssetOutput, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "Id": @@ -1318,7 +1319,7 @@ func awsRestjson1_deserializeOpDocumentGetAssetOutput(v **GetAssetOutput, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -1327,7 +1328,7 @@ func awsRestjson1_deserializeOpDocumentGetAssetOutput(v **GetAssetOutput, value if !ok { return fmt.Errorf("expected AssetName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RevisionId": @@ -1336,7 +1337,7 @@ func awsRestjson1_deserializeOpDocumentGetAssetOutput(v **GetAssetOutput, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "SourceId": @@ -1345,7 +1346,7 @@ func awsRestjson1_deserializeOpDocumentGetAssetOutput(v **GetAssetOutput, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.SourceId = &jtv + sv.SourceId = ptr.String(jtv) } case "UpdatedAt": @@ -1358,7 +1359,7 @@ func awsRestjson1_deserializeOpDocumentGetAssetOutput(v **GetAssetOutput, value if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -1518,7 +1519,7 @@ func awsRestjson1_deserializeOpDocumentGetDataSetOutput(v **GetDataSetOutput, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AssetType": @@ -1540,7 +1541,7 @@ func awsRestjson1_deserializeOpDocumentGetDataSetOutput(v **GetDataSetOutput, va if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "Description": @@ -1549,7 +1550,7 @@ func awsRestjson1_deserializeOpDocumentGetDataSetOutput(v **GetDataSetOutput, va if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -1558,7 +1559,7 @@ func awsRestjson1_deserializeOpDocumentGetDataSetOutput(v **GetDataSetOutput, va if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -1567,7 +1568,7 @@ func awsRestjson1_deserializeOpDocumentGetDataSetOutput(v **GetDataSetOutput, va if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Origin": @@ -1590,7 +1591,7 @@ func awsRestjson1_deserializeOpDocumentGetDataSetOutput(v **GetDataSetOutput, va if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.SourceId = &jtv + sv.SourceId = ptr.String(jtv) } case "Tags": @@ -1608,7 +1609,7 @@ func awsRestjson1_deserializeOpDocumentGetDataSetOutput(v **GetDataSetOutput, va if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -1768,7 +1769,7 @@ func awsRestjson1_deserializeOpDocumentGetJobOutput(v **GetJobOutput, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedAt": @@ -1781,7 +1782,7 @@ func awsRestjson1_deserializeOpDocumentGetJobOutput(v **GetJobOutput, value inte if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "Details": @@ -1800,7 +1801,7 @@ func awsRestjson1_deserializeOpDocumentGetJobOutput(v **GetJobOutput, value inte if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "State": @@ -1831,7 +1832,7 @@ func awsRestjson1_deserializeOpDocumentGetJobOutput(v **GetJobOutput, value inte if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -1991,7 +1992,7 @@ func awsRestjson1_deserializeOpDocumentGetRevisionOutput(v **GetRevisionOutput, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Comment": @@ -2000,7 +2001,7 @@ func awsRestjson1_deserializeOpDocumentGetRevisionOutput(v **GetRevisionOutput, if !ok { return fmt.Errorf("expected __stringMin0Max16384 to be of type string, got %T instead", value) } - sv.Comment = &jtv + sv.Comment = ptr.String(jtv) } case "CreatedAt": @@ -2013,7 +2014,7 @@ func awsRestjson1_deserializeOpDocumentGetRevisionOutput(v **GetRevisionOutput, if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "DataSetId": @@ -2022,7 +2023,7 @@ func awsRestjson1_deserializeOpDocumentGetRevisionOutput(v **GetRevisionOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "Finalized": @@ -2031,7 +2032,7 @@ func awsRestjson1_deserializeOpDocumentGetRevisionOutput(v **GetRevisionOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Finalized = &jtv + sv.Finalized = jtv } case "Id": @@ -2040,7 +2041,7 @@ func awsRestjson1_deserializeOpDocumentGetRevisionOutput(v **GetRevisionOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "SourceId": @@ -2049,7 +2050,7 @@ func awsRestjson1_deserializeOpDocumentGetRevisionOutput(v **GetRevisionOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.SourceId = &jtv + sv.SourceId = ptr.String(jtv) } case "Tags": @@ -2067,7 +2068,7 @@ func awsRestjson1_deserializeOpDocumentGetRevisionOutput(v **GetRevisionOutput, if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -2227,7 +2228,7 @@ func awsRestjson1_deserializeOpDocumentListDataSetRevisionsOutput(v **ListDataSe if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Revisions": @@ -2397,7 +2398,7 @@ func awsRestjson1_deserializeOpDocumentListDataSetsOutput(v **ListDataSetsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2562,7 +2563,7 @@ func awsRestjson1_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, value if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2727,7 +2728,7 @@ func awsRestjson1_deserializeOpDocumentListRevisionAssetsOutput(v **ListRevision if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3295,7 +3296,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAssetOutput(v **UpdateAssetOutput, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AssetDetails": @@ -3322,7 +3323,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAssetOutput(v **UpdateAssetOutput, if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "DataSetId": @@ -3331,7 +3332,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAssetOutput(v **UpdateAssetOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "Id": @@ -3340,7 +3341,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAssetOutput(v **UpdateAssetOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -3349,7 +3350,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAssetOutput(v **UpdateAssetOutput, if !ok { return fmt.Errorf("expected AssetName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RevisionId": @@ -3358,7 +3359,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAssetOutput(v **UpdateAssetOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "SourceId": @@ -3367,7 +3368,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAssetOutput(v **UpdateAssetOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.SourceId = &jtv + sv.SourceId = ptr.String(jtv) } case "UpdatedAt": @@ -3380,7 +3381,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAssetOutput(v **UpdateAssetOutput, if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -3543,7 +3544,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AssetType": @@ -3565,7 +3566,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "Description": @@ -3574,7 +3575,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -3583,7 +3584,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -3592,7 +3593,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Origin": @@ -3615,7 +3616,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.SourceId = &jtv + sv.SourceId = ptr.String(jtv) } case "UpdatedAt": @@ -3628,7 +3629,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -3794,7 +3795,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRevisionOutput(v **UpdateRevisionOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Comment": @@ -3803,7 +3804,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRevisionOutput(v **UpdateRevisionOu if !ok { return fmt.Errorf("expected __stringMin0Max16384 to be of type string, got %T instead", value) } - sv.Comment = &jtv + sv.Comment = ptr.String(jtv) } case "CreatedAt": @@ -3816,7 +3817,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRevisionOutput(v **UpdateRevisionOu if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "DataSetId": @@ -3825,7 +3826,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRevisionOutput(v **UpdateRevisionOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "Finalized": @@ -3834,7 +3835,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRevisionOutput(v **UpdateRevisionOu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Finalized = &jtv + sv.Finalized = jtv } case "Id": @@ -3843,7 +3844,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRevisionOutput(v **UpdateRevisionOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "SourceId": @@ -3852,7 +3853,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRevisionOutput(v **UpdateRevisionOu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.SourceId = &jtv + sv.SourceId = ptr.String(jtv) } case "UpdatedAt": @@ -3865,7 +3866,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRevisionOutput(v **UpdateRevisionOu if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -4157,7 +4158,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4197,7 +4198,7 @@ func awsRestjson1_deserializeDocumentAssetDestinationEntry(v **types.AssetDestin if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.AssetId = &jtv + sv.AssetId = ptr.String(jtv) } case "Bucket": @@ -4206,7 +4207,7 @@ func awsRestjson1_deserializeDocumentAssetDestinationEntry(v **types.AssetDestin if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "Key": @@ -4215,7 +4216,7 @@ func awsRestjson1_deserializeDocumentAssetDestinationEntry(v **types.AssetDestin if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } default: @@ -4291,7 +4292,7 @@ func awsRestjson1_deserializeDocumentAssetEntry(v **types.AssetEntry, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AssetDetails": @@ -4318,7 +4319,7 @@ func awsRestjson1_deserializeDocumentAssetEntry(v **types.AssetEntry, value inte if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "DataSetId": @@ -4327,7 +4328,7 @@ func awsRestjson1_deserializeDocumentAssetEntry(v **types.AssetEntry, value inte if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "Id": @@ -4336,7 +4337,7 @@ func awsRestjson1_deserializeDocumentAssetEntry(v **types.AssetEntry, value inte if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -4345,7 +4346,7 @@ func awsRestjson1_deserializeDocumentAssetEntry(v **types.AssetEntry, value inte if !ok { return fmt.Errorf("expected AssetName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RevisionId": @@ -4354,7 +4355,7 @@ func awsRestjson1_deserializeDocumentAssetEntry(v **types.AssetEntry, value inte if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "SourceId": @@ -4363,7 +4364,7 @@ func awsRestjson1_deserializeDocumentAssetEntry(v **types.AssetEntry, value inte if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.SourceId = &jtv + sv.SourceId = ptr.String(jtv) } case "UpdatedAt": @@ -4376,7 +4377,7 @@ func awsRestjson1_deserializeDocumentAssetEntry(v **types.AssetEntry, value inte if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -4416,7 +4417,7 @@ func awsRestjson1_deserializeDocumentAssetSourceEntry(v **types.AssetSourceEntry if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "Key": @@ -4425,7 +4426,7 @@ func awsRestjson1_deserializeDocumentAssetSourceEntry(v **types.AssetSourceEntry if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } default: @@ -4465,7 +4466,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceId": @@ -4474,7 +4475,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -4523,7 +4524,7 @@ func awsRestjson1_deserializeDocumentDataSetEntry(v **types.DataSetEntry, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AssetType": @@ -4545,7 +4546,7 @@ func awsRestjson1_deserializeDocumentDataSetEntry(v **types.DataSetEntry, value if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "Description": @@ -4554,7 +4555,7 @@ func awsRestjson1_deserializeDocumentDataSetEntry(v **types.DataSetEntry, value if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -4563,7 +4564,7 @@ func awsRestjson1_deserializeDocumentDataSetEntry(v **types.DataSetEntry, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -4572,7 +4573,7 @@ func awsRestjson1_deserializeDocumentDataSetEntry(v **types.DataSetEntry, value if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Origin": @@ -4595,7 +4596,7 @@ func awsRestjson1_deserializeDocumentDataSetEntry(v **types.DataSetEntry, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.SourceId = &jtv + sv.SourceId = ptr.String(jtv) } case "UpdatedAt": @@ -4608,7 +4609,7 @@ func awsRestjson1_deserializeDocumentDataSetEntry(v **types.DataSetEntry, value if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -4694,7 +4695,7 @@ func awsRestjson1_deserializeDocumentExportAssetsToS3ResponseDetails(v **types.E if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "Encryption": @@ -4708,7 +4709,7 @@ func awsRestjson1_deserializeDocumentExportAssetsToS3ResponseDetails(v **types.E if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } default: @@ -4748,7 +4749,7 @@ func awsRestjson1_deserializeDocumentExportAssetToSignedUrlResponseDetails(v **t if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.AssetId = &jtv + sv.AssetId = ptr.String(jtv) } case "DataSetId": @@ -4757,7 +4758,7 @@ func awsRestjson1_deserializeDocumentExportAssetToSignedUrlResponseDetails(v **t if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "RevisionId": @@ -4766,7 +4767,7 @@ func awsRestjson1_deserializeDocumentExportAssetToSignedUrlResponseDetails(v **t if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "SignedUrl": @@ -4775,7 +4776,7 @@ func awsRestjson1_deserializeDocumentExportAssetToSignedUrlResponseDetails(v **t if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SignedUrl = &jtv + sv.SignedUrl = ptr.String(jtv) } case "SignedUrlExpiresAt": @@ -4788,7 +4789,7 @@ func awsRestjson1_deserializeDocumentExportAssetToSignedUrlResponseDetails(v **t if err != nil { return err } - sv.SignedUrlExpiresAt = &t + sv.SignedUrlExpiresAt = ptr.Time(t) } default: @@ -4828,7 +4829,7 @@ func awsRestjson1_deserializeDocumentExportServerSideEncryption(v **types.Export if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } case "Type": @@ -4877,7 +4878,7 @@ func awsRestjson1_deserializeDocumentImportAssetFromSignedUrlJobErrorDetails(v * if !ok { return fmt.Errorf("expected AssetName to be of type string, got %T instead", value) } - sv.AssetName = &jtv + sv.AssetName = ptr.String(jtv) } default: @@ -4917,7 +4918,7 @@ func awsRestjson1_deserializeDocumentImportAssetFromSignedUrlResponseDetails(v * if !ok { return fmt.Errorf("expected AssetName to be of type string, got %T instead", value) } - sv.AssetName = &jtv + sv.AssetName = ptr.String(jtv) } case "DataSetId": @@ -4926,7 +4927,7 @@ func awsRestjson1_deserializeDocumentImportAssetFromSignedUrlResponseDetails(v * if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "Md5Hash": @@ -4935,7 +4936,7 @@ func awsRestjson1_deserializeDocumentImportAssetFromSignedUrlResponseDetails(v * if !ok { return fmt.Errorf("expected __stringMin24Max24PatternAZaZ094AZaZ092AZaZ093 to be of type string, got %T instead", value) } - sv.Md5Hash = &jtv + sv.Md5Hash = ptr.String(jtv) } case "RevisionId": @@ -4944,7 +4945,7 @@ func awsRestjson1_deserializeDocumentImportAssetFromSignedUrlResponseDetails(v * if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "SignedUrl": @@ -4953,7 +4954,7 @@ func awsRestjson1_deserializeDocumentImportAssetFromSignedUrlResponseDetails(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SignedUrl = &jtv + sv.SignedUrl = ptr.String(jtv) } case "SignedUrlExpiresAt": @@ -4966,7 +4967,7 @@ func awsRestjson1_deserializeDocumentImportAssetFromSignedUrlResponseDetails(v * if err != nil { return err } - sv.SignedUrlExpiresAt = &t + sv.SignedUrlExpiresAt = ptr.Time(t) } default: @@ -5011,7 +5012,7 @@ func awsRestjson1_deserializeDocumentImportAssetsFromS3ResponseDetails(v **types if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "RevisionId": @@ -5020,7 +5021,7 @@ func awsRestjson1_deserializeDocumentImportAssetsFromS3ResponseDetails(v **types if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } default: @@ -5060,7 +5061,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5100,7 +5101,7 @@ func awsRestjson1_deserializeDocumentJobEntry(v **types.JobEntry, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedAt": @@ -5113,7 +5114,7 @@ func awsRestjson1_deserializeDocumentJobEntry(v **types.JobEntry, value interfac if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "Details": @@ -5132,7 +5133,7 @@ func awsRestjson1_deserializeDocumentJobEntry(v **types.JobEntry, value interfac if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "State": @@ -5163,7 +5164,7 @@ func awsRestjson1_deserializeDocumentJobEntry(v **types.JobEntry, value interfac if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -5230,7 +5231,7 @@ func awsRestjson1_deserializeDocumentJobError(v **types.JobError, value interfac if err != nil { return err } - sv.LimitValue = &f64 + sv.LimitValue = f64 } case "Message": @@ -5239,7 +5240,7 @@ func awsRestjson1_deserializeDocumentJobError(v **types.JobError, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceId": @@ -5248,7 +5249,7 @@ func awsRestjson1_deserializeDocumentJobError(v **types.JobError, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -5269,7 +5270,7 @@ func awsRestjson1_deserializeDocumentJobError(v **types.JobError, value interfac return nil } -func awsRestjson1_deserializeDocumentListOfAssetDestinationEntry(v *[]*types.AssetDestinationEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfAssetDestinationEntry(v *[]types.AssetDestinationEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5282,18 +5283,20 @@ func awsRestjson1_deserializeDocumentListOfAssetDestinationEntry(v *[]*types.Ass return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetDestinationEntry + var cv []types.AssetDestinationEntry if *v == nil { - cv = []*types.AssetDestinationEntry{} + cv = []types.AssetDestinationEntry{} } else { cv = *v } for _, value := range shape { - var col *types.AssetDestinationEntry - if err := awsRestjson1_deserializeDocumentAssetDestinationEntry(&col, value); err != nil { + var col types.AssetDestinationEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetDestinationEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5301,7 +5304,7 @@ func awsRestjson1_deserializeDocumentListOfAssetDestinationEntry(v *[]*types.Ass return nil } -func awsRestjson1_deserializeDocumentListOfAssetEntry(v *[]*types.AssetEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfAssetEntry(v *[]types.AssetEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5314,18 +5317,20 @@ func awsRestjson1_deserializeDocumentListOfAssetEntry(v *[]*types.AssetEntry, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetEntry + var cv []types.AssetEntry if *v == nil { - cv = []*types.AssetEntry{} + cv = []types.AssetEntry{} } else { cv = *v } for _, value := range shape { - var col *types.AssetEntry - if err := awsRestjson1_deserializeDocumentAssetEntry(&col, value); err != nil { + var col types.AssetEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5333,7 +5338,7 @@ func awsRestjson1_deserializeDocumentListOfAssetEntry(v *[]*types.AssetEntry, va return nil } -func awsRestjson1_deserializeDocumentListOfAssetSourceEntry(v *[]*types.AssetSourceEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfAssetSourceEntry(v *[]types.AssetSourceEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5346,18 +5351,20 @@ func awsRestjson1_deserializeDocumentListOfAssetSourceEntry(v *[]*types.AssetSou return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetSourceEntry + var cv []types.AssetSourceEntry if *v == nil { - cv = []*types.AssetSourceEntry{} + cv = []types.AssetSourceEntry{} } else { cv = *v } for _, value := range shape { - var col *types.AssetSourceEntry - if err := awsRestjson1_deserializeDocumentAssetSourceEntry(&col, value); err != nil { + var col types.AssetSourceEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetSourceEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5365,7 +5372,7 @@ func awsRestjson1_deserializeDocumentListOfAssetSourceEntry(v *[]*types.AssetSou return nil } -func awsRestjson1_deserializeDocumentListOfDataSetEntry(v *[]*types.DataSetEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfDataSetEntry(v *[]types.DataSetEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5378,18 +5385,20 @@ func awsRestjson1_deserializeDocumentListOfDataSetEntry(v *[]*types.DataSetEntry return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataSetEntry + var cv []types.DataSetEntry if *v == nil { - cv = []*types.DataSetEntry{} + cv = []types.DataSetEntry{} } else { cv = *v } for _, value := range shape { - var col *types.DataSetEntry - if err := awsRestjson1_deserializeDocumentDataSetEntry(&col, value); err != nil { + var col types.DataSetEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataSetEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5397,7 +5406,7 @@ func awsRestjson1_deserializeDocumentListOfDataSetEntry(v *[]*types.DataSetEntry return nil } -func awsRestjson1_deserializeDocumentListOfJobEntry(v *[]*types.JobEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfJobEntry(v *[]types.JobEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5410,18 +5419,20 @@ func awsRestjson1_deserializeDocumentListOfJobEntry(v *[]*types.JobEntry, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobEntry + var cv []types.JobEntry if *v == nil { - cv = []*types.JobEntry{} + cv = []types.JobEntry{} } else { cv = *v } for _, value := range shape { - var col *types.JobEntry - if err := awsRestjson1_deserializeDocumentJobEntry(&col, value); err != nil { + var col types.JobEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5429,7 +5440,7 @@ func awsRestjson1_deserializeDocumentListOfJobEntry(v *[]*types.JobEntry, value return nil } -func awsRestjson1_deserializeDocumentListOfJobError(v *[]*types.JobError, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfJobError(v *[]types.JobError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5442,18 +5453,20 @@ func awsRestjson1_deserializeDocumentListOfJobError(v *[]*types.JobError, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobError + var cv []types.JobError if *v == nil { - cv = []*types.JobError{} + cv = []types.JobError{} } else { cv = *v } for _, value := range shape { - var col *types.JobError - if err := awsRestjson1_deserializeDocumentJobError(&col, value); err != nil { + var col types.JobError + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5461,7 +5474,7 @@ func awsRestjson1_deserializeDocumentListOfJobError(v *[]*types.JobError, value return nil } -func awsRestjson1_deserializeDocumentListOfRevisionEntry(v *[]*types.RevisionEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfRevisionEntry(v *[]types.RevisionEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5474,18 +5487,20 @@ func awsRestjson1_deserializeDocumentListOfRevisionEntry(v *[]*types.RevisionEnt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RevisionEntry + var cv []types.RevisionEntry if *v == nil { - cv = []*types.RevisionEntry{} + cv = []types.RevisionEntry{} } else { cv = *v } for _, value := range shape { - var col *types.RevisionEntry - if err := awsRestjson1_deserializeDocumentRevisionEntry(&col, value); err != nil { + var col types.RevisionEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentRevisionEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5493,7 +5508,7 @@ func awsRestjson1_deserializeDocumentListOfRevisionEntry(v *[]*types.RevisionEnt return nil } -func awsRestjson1_deserializeDocumentMapOf__string(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOf__string(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5506,21 +5521,21 @@ func awsRestjson1_deserializeDocumentMapOf__string(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -5557,7 +5572,7 @@ func awsRestjson1_deserializeDocumentOriginDetails(v **types.OriginDetails, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ProductId = &jtv + sv.ProductId = ptr.String(jtv) } default: @@ -5597,7 +5612,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceId": @@ -5606,7 +5621,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -5706,7 +5721,7 @@ func awsRestjson1_deserializeDocumentRevisionEntry(v **types.RevisionEntry, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Comment": @@ -5715,7 +5730,7 @@ func awsRestjson1_deserializeDocumentRevisionEntry(v **types.RevisionEntry, valu if !ok { return fmt.Errorf("expected __stringMin0Max16384 to be of type string, got %T instead", value) } - sv.Comment = &jtv + sv.Comment = ptr.String(jtv) } case "CreatedAt": @@ -5728,7 +5743,7 @@ func awsRestjson1_deserializeDocumentRevisionEntry(v **types.RevisionEntry, valu if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "DataSetId": @@ -5737,7 +5752,7 @@ func awsRestjson1_deserializeDocumentRevisionEntry(v **types.RevisionEntry, valu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "Finalized": @@ -5746,7 +5761,7 @@ func awsRestjson1_deserializeDocumentRevisionEntry(v **types.RevisionEntry, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Finalized = &jtv + sv.Finalized = jtv } case "Id": @@ -5755,7 +5770,7 @@ func awsRestjson1_deserializeDocumentRevisionEntry(v **types.RevisionEntry, valu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "SourceId": @@ -5764,7 +5779,7 @@ func awsRestjson1_deserializeDocumentRevisionEntry(v **types.RevisionEntry, valu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.SourceId = &jtv + sv.SourceId = ptr.String(jtv) } case "UpdatedAt": @@ -5777,7 +5792,7 @@ func awsRestjson1_deserializeDocumentRevisionEntry(v **types.RevisionEntry, valu if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -5821,7 +5836,7 @@ func awsRestjson1_deserializeDocumentS3SnapshotAsset(v **types.S3SnapshotAsset, if err != nil { return err } - sv.Size = &f64 + sv.Size = f64 } default: @@ -5874,7 +5889,7 @@ func awsRestjson1_deserializeDocumentServiceLimitExceededException(v **types.Ser if err != nil { return err } - sv.LimitValue = &f64 + sv.LimitValue = f64 } case "Message": @@ -5883,7 +5898,7 @@ func awsRestjson1_deserializeDocumentServiceLimitExceededException(v **types.Ser if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5923,7 +5938,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5963,7 +5978,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/dataexchange/go.mod b/service/dataexchange/go.mod index 5c615d803ff..4d6bc9635b6 100644 --- a/service/dataexchange/go.mod +++ b/service/dataexchange/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/dataexchange go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/dataexchange/serializers.go b/service/dataexchange/serializers.go index 03c0ff4a03e..7a15c8f42d7 100644 --- a/service/dataexchange/serializers.go +++ b/service/dataexchange/serializers.go @@ -65,13 +65,10 @@ func awsRestjson1_serializeOpHttpBindingsCancelJobInput(v *CancelJobInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} - } if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { return err } @@ -312,13 +309,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateRevisionInput(v *CreateRevisionIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } @@ -397,37 +391,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAssetInput(v *DeleteAssetInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetId == nil { + if v.AssetId == nil || len(*v.AssetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AssetId must not be empty")} } if v.AssetId != nil { - if len(*v.AssetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AssetId must not be empty")} - } if err := encoder.SetURI("AssetId").String(*v.AssetId); err != nil { return err } } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } - if v.RevisionId == nil { + if v.RevisionId == nil || len(*v.RevisionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} } if v.RevisionId != nil { - if len(*v.RevisionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} - } if err := encoder.SetURI("RevisionId").String(*v.RevisionId); err != nil { return err } @@ -487,13 +472,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDataSetInput(v *DeleteDataSetInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } @@ -553,25 +535,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRevisionInput(v *DeleteRevisionIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } - if v.RevisionId == nil { + if v.RevisionId == nil || len(*v.RevisionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} } if v.RevisionId != nil { - if len(*v.RevisionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} - } if err := encoder.SetURI("RevisionId").String(*v.RevisionId); err != nil { return err } @@ -631,37 +607,28 @@ func awsRestjson1_serializeOpHttpBindingsGetAssetInput(v *GetAssetInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetId == nil { + if v.AssetId == nil || len(*v.AssetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AssetId must not be empty")} } if v.AssetId != nil { - if len(*v.AssetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AssetId must not be empty")} - } if err := encoder.SetURI("AssetId").String(*v.AssetId); err != nil { return err } } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } - if v.RevisionId == nil { + if v.RevisionId == nil || len(*v.RevisionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} } if v.RevisionId != nil { - if len(*v.RevisionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} - } if err := encoder.SetURI("RevisionId").String(*v.RevisionId); err != nil { return err } @@ -721,13 +688,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDataSetInput(v *GetDataSetInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } @@ -787,13 +751,10 @@ func awsRestjson1_serializeOpHttpBindingsGetJobInput(v *GetJobInput, encoder *ht return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} - } if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { return err } @@ -853,25 +814,19 @@ func awsRestjson1_serializeOpHttpBindingsGetRevisionInput(v *GetRevisionInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } - if v.RevisionId == nil { + if v.RevisionId == nil || len(*v.RevisionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} } if v.RevisionId != nil { - if len(*v.RevisionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} - } if err := encoder.SetURI("RevisionId").String(*v.RevisionId); err != nil { return err } @@ -931,20 +886,17 @@ func awsRestjson1_serializeOpHttpBindingsListDataSetRevisionsInput(v *ListDataSe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1005,8 +957,8 @@ func awsRestjson1_serializeOpHttpBindingsListDataSetsInput(v *ListDataSetsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1075,8 +1027,8 @@ func awsRestjson1_serializeOpHttpBindingsListJobsInput(v *ListJobsInput, encoder encoder.SetQuery("dataSetId").String(*v.DataSetId) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1141,33 +1093,27 @@ func awsRestjson1_serializeOpHttpBindingsListRevisionAssetsInput(v *ListRevision return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.RevisionId == nil { + if v.RevisionId == nil || len(*v.RevisionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} } if v.RevisionId != nil { - if len(*v.RevisionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} - } if err := encoder.SetURI("RevisionId").String(*v.RevisionId); err != nil { return err } @@ -1227,13 +1173,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1293,13 +1236,10 @@ func awsRestjson1_serializeOpHttpBindingsStartJobInput(v *StartJobInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} - } if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { return err } @@ -1370,13 +1310,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1450,13 +1387,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1464,10 +1398,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1536,37 +1467,28 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAssetInput(v *UpdateAssetInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetId == nil { + if v.AssetId == nil || len(*v.AssetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AssetId must not be empty")} } if v.AssetId != nil { - if len(*v.AssetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AssetId must not be empty")} - } if err := encoder.SetURI("AssetId").String(*v.AssetId); err != nil { return err } } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } - if v.RevisionId == nil { + if v.RevisionId == nil || len(*v.RevisionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} } if v.RevisionId != nil { - if len(*v.RevisionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} - } if err := encoder.SetURI("RevisionId").String(*v.RevisionId); err != nil { return err } @@ -1649,13 +1571,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDataSetInput(v *UpdateDataSetInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } @@ -1743,25 +1662,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRevisionInput(v *UpdateRevisionIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } - if v.RevisionId == nil { + if v.RevisionId == nil || len(*v.RevisionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} } if v.RevisionId != nil { - if len(*v.RevisionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RevisionId must not be empty")} - } if err := encoder.SetURI("RevisionId").String(*v.RevisionId); err != nil { return err } @@ -1779,9 +1692,9 @@ func awsRestjson1_serializeOpDocumentUpdateRevisionInput(v *UpdateRevisionInput, ok.String(*v.Comment) } - if v.Finalized != nil { + if v.Finalized { ok := object.Key("Finalized") - ok.Boolean(*v.Finalized) + ok.Boolean(v.Finalized) } return nil @@ -1947,51 +1860,39 @@ func awsRestjson1_serializeDocumentImportAssetsFromS3RequestDetails(v *types.Imp return nil } -func awsRestjson1_serializeDocumentListOfAssetDestinationEntry(v []*types.AssetDestinationEntry, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfAssetDestinationEntry(v []types.AssetDestinationEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAssetDestinationEntry(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAssetDestinationEntry(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentListOfAssetSourceEntry(v []*types.AssetSourceEntry, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfAssetSourceEntry(v []types.AssetSourceEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAssetSourceEntry(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAssetSourceEntry(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentMapOf__string(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOf__string(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/dataexchange/types/errors.go b/service/dataexchange/types/errors.go index d505cafb406..576a5eedf74 100644 --- a/service/dataexchange/types/errors.go +++ b/service/dataexchange/types/errors.go @@ -86,7 +86,7 @@ func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smit type ServiceLimitExceededException struct { Message *string - LimitValue *float64 + LimitValue float64 LimitName LimitName } diff --git a/service/dataexchange/types/types.go b/service/dataexchange/types/types.go index e4afe3bf9b9..6c2992255d4 100644 --- a/service/dataexchange/types/types.go +++ b/service/dataexchange/types/types.go @@ -162,7 +162,7 @@ type Details struct { ImportAssetFromSignedUrlJobErrorDetails *ImportAssetFromSignedUrlJobErrorDetails // The list of sources for the assets. - ImportAssetsFromS3JobErrorDetails []*AssetSourceEntry + ImportAssetsFromS3JobErrorDetails []AssetSourceEntry } // Details of the operation to be performed by the job. @@ -171,7 +171,7 @@ type ExportAssetsToS3RequestDetails struct { // The destination for the asset. // // This member is required. - AssetDestinations []*AssetDestinationEntry + AssetDestinations []AssetDestinationEntry // The unique identifier for the data set associated with this export job. // @@ -193,7 +193,7 @@ type ExportAssetsToS3ResponseDetails struct { // The destination in Amazon S3 where the asset is exported. // // This member is required. - AssetDestinations []*AssetDestinationEntry + AssetDestinations []AssetDestinationEntry // The unique identifier for the data set associated with this export job. // @@ -341,7 +341,7 @@ type ImportAssetsFromS3RequestDetails struct { // Is a list of S3 bucket and object key pairs. // // This member is required. - AssetSources []*AssetSourceEntry + AssetSources []AssetSourceEntry // The unique identifier for the data set associated with this import job. // @@ -360,7 +360,7 @@ type ImportAssetsFromS3ResponseDetails struct { // Is a list of Amazon S3 bucket and object key pairs. // // This member is required. - AssetSources []*AssetSourceEntry + AssetSources []AssetSourceEntry // The unique identifier for the data set associated with this import job. // @@ -416,7 +416,7 @@ type JobEntry struct { UpdatedAt *time.Time // Errors for jobs. - Errors []*JobError + Errors []JobError } // An error that occurred with the job request. @@ -438,7 +438,7 @@ type JobError struct { LimitName JobErrorLimitName // The value of the exceeded limit. - LimitValue *float64 + LimitValue float64 // The unique identifier for the resource related to the error. ResourceId *string @@ -521,7 +521,7 @@ type RevisionEntry struct { // through the AWS Data Exchange console or the AWS Marketplace Catalog API, using // the StartChangeSet AWS Marketplace Catalog API action. When using the API, // revisions are uniquely identified by their ARN. - Finalized *bool + Finalized bool // The revision ID of the owned revision corresponding to the entitled revision // being viewed. This parameter is returned when a revision owner is viewing the @@ -535,5 +535,5 @@ type S3SnapshotAsset struct { // The size of the S3 object that is the object. // // This member is required. - Size *float64 + Size float64 } diff --git a/service/dataexchange/validators.go b/service/dataexchange/validators.go index 473fdabb2f9..cc59c2565d1 100644 --- a/service/dataexchange/validators.go +++ b/service/dataexchange/validators.go @@ -641,13 +641,13 @@ func validateImportAssetsFromS3RequestDetails(v *types.ImportAssetsFromS3Request } } -func validateListOfAssetDestinationEntry(v []*types.AssetDestinationEntry) error { +func validateListOfAssetDestinationEntry(v []types.AssetDestinationEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfAssetDestinationEntry"} for i := range v { - if err := validateAssetDestinationEntry(v[i]); err != nil { + if err := validateAssetDestinationEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -658,13 +658,13 @@ func validateListOfAssetDestinationEntry(v []*types.AssetDestinationEntry) error } } -func validateListOfAssetSourceEntry(v []*types.AssetSourceEntry) error { +func validateListOfAssetSourceEntry(v []types.AssetSourceEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfAssetSourceEntry"} for i := range v { - if err := validateAssetSourceEntry(v[i]); err != nil { + if err := validateAssetSourceEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/datapipeline/api_op_ActivatePipeline.go b/service/datapipeline/api_op_ActivatePipeline.go index f16b758f441..d71c2bf3721 100644 --- a/service/datapipeline/api_op_ActivatePipeline.go +++ b/service/datapipeline/api_op_ActivatePipeline.go @@ -43,7 +43,7 @@ type ActivatePipelineInput struct { PipelineId *string // A list of parameter values to pass to the pipeline at activation. - ParameterValues []*types.ParameterValue + ParameterValues []types.ParameterValue // The date and time to resume the pipeline. By default, the pipeline resumes from // the last completed execution. diff --git a/service/datapipeline/api_op_AddTags.go b/service/datapipeline/api_op_AddTags.go index 424d5c1d144..9ccd184edb0 100644 --- a/service/datapipeline/api_op_AddTags.go +++ b/service/datapipeline/api_op_AddTags.go @@ -38,7 +38,7 @@ type AddTagsInput struct { // The tags to add, as key/value pairs. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } // Contains the output of AddTags. diff --git a/service/datapipeline/api_op_CreatePipeline.go b/service/datapipeline/api_op_CreatePipeline.go index 4bad92385db..4d34c79b291 100644 --- a/service/datapipeline/api_op_CreatePipeline.go +++ b/service/datapipeline/api_op_CreatePipeline.go @@ -61,7 +61,7 @@ type CreatePipelineInput struct { // Pipelines // (https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html) // in the AWS Data Pipeline Developer Guide. - Tags []*types.Tag + Tags []types.Tag } // Contains the output of CreatePipeline. diff --git a/service/datapipeline/api_op_DescribeObjects.go b/service/datapipeline/api_op_DescribeObjects.go index 66f30862b2c..0837b6f767b 100644 --- a/service/datapipeline/api_op_DescribeObjects.go +++ b/service/datapipeline/api_op_DescribeObjects.go @@ -36,7 +36,7 @@ type DescribeObjectsInput struct { // You can pass as many as 25 identifiers in a single call to DescribeObjects. // // This member is required. - ObjectIds []*string + ObjectIds []string // The ID of the pipeline that contains the object definitions. // @@ -45,7 +45,7 @@ type DescribeObjectsInput struct { // Indicates whether any expressions in the object should be evaluated when the // object descriptions are returned. - EvaluateExpressions *bool + EvaluateExpressions bool // The starting point for the results to be returned. For the first call, this // value should be empty. As long as there are more results, continue to call @@ -60,10 +60,10 @@ type DescribeObjectsOutput struct { // An array of object definitions. // // This member is required. - PipelineObjects []*types.PipelineObject + PipelineObjects []types.PipelineObject // Indicates whether there are more results to return. - HasMoreResults *bool + HasMoreResults bool // The starting point for the next page of results. To view the next page of // results, call DescribeObjects again with this marker value. If the value is diff --git a/service/datapipeline/api_op_DescribePipelines.go b/service/datapipeline/api_op_DescribePipelines.go index eb1ce46c29d..5d36c00c7c6 100644 --- a/service/datapipeline/api_op_DescribePipelines.go +++ b/service/datapipeline/api_op_DescribePipelines.go @@ -40,7 +40,7 @@ type DescribePipelinesInput struct { // a single call. To obtain pipeline IDs, call ListPipelines. // // This member is required. - PipelineIds []*string + PipelineIds []string } // Contains the output of DescribePipelines. @@ -49,7 +49,7 @@ type DescribePipelinesOutput struct { // An array of descriptions for the specified pipelines. // // This member is required. - PipelineDescriptionList []*types.PipelineDescription + PipelineDescriptionList []types.PipelineDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/datapipeline/api_op_GetPipelineDefinition.go b/service/datapipeline/api_op_GetPipelineDefinition.go index 2f3db96ccf6..9d53cf87b45 100644 --- a/service/datapipeline/api_op_GetPipelineDefinition.go +++ b/service/datapipeline/api_op_GetPipelineDefinition.go @@ -47,13 +47,13 @@ type GetPipelineDefinitionInput struct { type GetPipelineDefinitionOutput struct { // The parameter objects used in the pipeline definition. - ParameterObjects []*types.ParameterObject + ParameterObjects []types.ParameterObject // The parameter values used in the pipeline definition. - ParameterValues []*types.ParameterValue + ParameterValues []types.ParameterValue // The objects defined in the pipeline. - PipelineObjects []*types.PipelineObject + PipelineObjects []types.PipelineObject // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/datapipeline/api_op_ListPipelines.go b/service/datapipeline/api_op_ListPipelines.go index 48d1f720137..a010ac486b6 100644 --- a/service/datapipeline/api_op_ListPipelines.go +++ b/service/datapipeline/api_op_ListPipelines.go @@ -46,11 +46,11 @@ type ListPipelinesOutput struct { // GetPipelineDefinition. // // This member is required. - PipelineIdList []*types.PipelineIdName + PipelineIdList []types.PipelineIdName // Indicates whether there are more results that can be obtained by a subsequent // call. - HasMoreResults *bool + HasMoreResults bool // The starting point for the next page of results. To view the next page of // results, call ListPipelinesOutput again with this marker value. If the value is diff --git a/service/datapipeline/api_op_PutPipelineDefinition.go b/service/datapipeline/api_op_PutPipelineDefinition.go index 059e60c2386..688257acc87 100644 --- a/service/datapipeline/api_op_PutPipelineDefinition.go +++ b/service/datapipeline/api_op_PutPipelineDefinition.go @@ -57,13 +57,13 @@ type PutPipelineDefinitionInput struct { // pipeline definition. // // This member is required. - PipelineObjects []*types.PipelineObject + PipelineObjects []types.PipelineObject // The parameter objects used with the pipeline. - ParameterObjects []*types.ParameterObject + ParameterObjects []types.ParameterObject // The parameter values used with the pipeline. - ParameterValues []*types.ParameterValue + ParameterValues []types.ParameterValue } // Contains the output of PutPipelineDefinition. @@ -74,15 +74,15 @@ type PutPipelineDefinitionOutput struct { // PutPipelineDefinition to commit the corrected pipeline. // // This member is required. - Errored *bool + Errored bool // The validation errors that are associated with the objects defined in // pipelineObjects. - ValidationErrors []*types.ValidationError + ValidationErrors []types.ValidationError // The validation warnings that are associated with the objects defined in // pipelineObjects. - ValidationWarnings []*types.ValidationWarning + ValidationWarnings []types.ValidationWarning // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/datapipeline/api_op_QueryObjects.go b/service/datapipeline/api_op_QueryObjects.go index 5d90d772ca9..be61b935517 100644 --- a/service/datapipeline/api_op_QueryObjects.go +++ b/service/datapipeline/api_op_QueryObjects.go @@ -64,10 +64,10 @@ type QueryObjectsOutput struct { // Indicates whether there are more results that can be obtained by a subsequent // call. - HasMoreResults *bool + HasMoreResults bool // The identifiers that match the query selectors. - Ids []*string + Ids []string // The starting point for the next page of results. To view the next page of // results, call QueryObjects again with this marker value. If the value is null, diff --git a/service/datapipeline/api_op_RemoveTags.go b/service/datapipeline/api_op_RemoveTags.go index 9ef54a8f409..2dbf1841a75 100644 --- a/service/datapipeline/api_op_RemoveTags.go +++ b/service/datapipeline/api_op_RemoveTags.go @@ -37,7 +37,7 @@ type RemoveTagsInput struct { // The keys of the tags to remove. // // This member is required. - TagKeys []*string + TagKeys []string } // Contains the output of RemoveTags. diff --git a/service/datapipeline/api_op_ReportTaskProgress.go b/service/datapipeline/api_op_ReportTaskProgress.go index d07330204e0..dd856ea443e 100644 --- a/service/datapipeline/api_op_ReportTaskProgress.go +++ b/service/datapipeline/api_op_ReportTaskProgress.go @@ -44,7 +44,7 @@ type ReportTaskProgressInput struct { // Key-value pairs that define the properties of the ReportTaskProgressInput // object. - Fields []*types.Field + Fields []types.Field } // Contains the output of ReportTaskProgress. @@ -54,7 +54,7 @@ type ReportTaskProgressOutput struct { // runner does not need to call SetTaskStatus for canceled tasks. // // This member is required. - Canceled *bool + Canceled bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/datapipeline/api_op_ReportTaskRunnerHeartbeat.go b/service/datapipeline/api_op_ReportTaskRunnerHeartbeat.go index 363f541b8ad..a6b722f3e97 100644 --- a/service/datapipeline/api_op_ReportTaskRunnerHeartbeat.go +++ b/service/datapipeline/api_op_ReportTaskRunnerHeartbeat.go @@ -57,7 +57,7 @@ type ReportTaskRunnerHeartbeatOutput struct { // Indicates whether the calling task runner should terminate. // // This member is required. - Terminate *bool + Terminate bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/datapipeline/api_op_SetStatus.go b/service/datapipeline/api_op_SetStatus.go index 1e201f3e1c7..d86a6c30a15 100644 --- a/service/datapipeline/api_op_SetStatus.go +++ b/service/datapipeline/api_op_SetStatus.go @@ -37,7 +37,7 @@ type SetStatusInput struct { // components, but not a mix of both types. // // This member is required. - ObjectIds []*string + ObjectIds []string // The ID of the pipeline that contains the objects. // diff --git a/service/datapipeline/api_op_ValidatePipelineDefinition.go b/service/datapipeline/api_op_ValidatePipelineDefinition.go index 605a6cdd4e6..b45876005a1 100644 --- a/service/datapipeline/api_op_ValidatePipelineDefinition.go +++ b/service/datapipeline/api_op_ValidatePipelineDefinition.go @@ -39,13 +39,13 @@ type ValidatePipelineDefinitionInput struct { // The objects that define the pipeline changes to validate against the pipeline. // // This member is required. - PipelineObjects []*types.PipelineObject + PipelineObjects []types.PipelineObject // The parameter objects used with the pipeline. - ParameterObjects []*types.ParameterObject + ParameterObjects []types.ParameterObject // The parameter values used with the pipeline. - ParameterValues []*types.ParameterValue + ParameterValues []types.ParameterValue } // Contains the output of ValidatePipelineDefinition. @@ -54,13 +54,13 @@ type ValidatePipelineDefinitionOutput struct { // Indicates whether there were validation errors. // // This member is required. - Errored *bool + Errored bool // Any validation errors that were found. - ValidationErrors []*types.ValidationError + ValidationErrors []types.ValidationError // Any validation warnings that were found. - ValidationWarnings []*types.ValidationWarning + ValidationWarnings []types.ValidationWarning // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/datapipeline/deserializers.go b/service/datapipeline/deserializers.go index 13972c281a4..aedaa6674dd 100644 --- a/service/datapipeline/deserializers.go +++ b/service/datapipeline/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -2485,7 +2486,7 @@ func awsAwsjson11_deserializeDocumentField(v **types.Field, value interface{}) e if !ok { return fmt.Errorf("expected fieldNameString to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "refValue": @@ -2494,7 +2495,7 @@ func awsAwsjson11_deserializeDocumentField(v **types.Field, value interface{}) e if !ok { return fmt.Errorf("expected fieldNameString to be of type string, got %T instead", value) } - sv.RefValue = &jtv + sv.RefValue = ptr.String(jtv) } case "stringValue": @@ -2503,7 +2504,7 @@ func awsAwsjson11_deserializeDocumentField(v **types.Field, value interface{}) e if !ok { return fmt.Errorf("expected fieldStringValue to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } default: @@ -2515,7 +2516,7 @@ func awsAwsjson11_deserializeDocumentField(v **types.Field, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentFieldList(v *[]*types.Field, value interface{}) error { +func awsAwsjson11_deserializeDocumentFieldList(v *[]types.Field, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2528,18 +2529,20 @@ func awsAwsjson11_deserializeDocumentFieldList(v *[]*types.Field, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Field + var cv []types.Field if *v == nil { - cv = []*types.Field{} + cv = []types.Field{} } else { cv = *v } for _, value := range shape { - var col *types.Field - if err := awsAwsjson11_deserializeDocumentField(&col, value); err != nil { + var col types.Field + destAddr := &col + if err := awsAwsjson11_deserializeDocumentField(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2547,7 +2550,7 @@ func awsAwsjson11_deserializeDocumentFieldList(v *[]*types.Field, value interfac return nil } -func awsAwsjson11_deserializeDocumentIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2560,21 +2563,21 @@ func awsAwsjson11_deserializeDocumentIdList(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected id to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2611,7 +2614,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceError(v **types.InternalServ if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2651,7 +2654,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2691,7 +2694,7 @@ func awsAwsjson11_deserializeDocumentParameterAttribute(v **types.ParameterAttri if !ok { return fmt.Errorf("expected attributeNameString to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "stringValue": @@ -2700,7 +2703,7 @@ func awsAwsjson11_deserializeDocumentParameterAttribute(v **types.ParameterAttri if !ok { return fmt.Errorf("expected attributeValueString to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } default: @@ -2712,7 +2715,7 @@ func awsAwsjson11_deserializeDocumentParameterAttribute(v **types.ParameterAttri return nil } -func awsAwsjson11_deserializeDocumentParameterAttributeList(v *[]*types.ParameterAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterAttributeList(v *[]types.ParameterAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2725,18 +2728,20 @@ func awsAwsjson11_deserializeDocumentParameterAttributeList(v *[]*types.Paramete return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ParameterAttribute + var cv []types.ParameterAttribute if *v == nil { - cv = []*types.ParameterAttribute{} + cv = []types.ParameterAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.ParameterAttribute - if err := awsAwsjson11_deserializeDocumentParameterAttribute(&col, value); err != nil { + var col types.ParameterAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParameterAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2777,7 +2782,7 @@ func awsAwsjson11_deserializeDocumentParameterObject(v **types.ParameterObject, if !ok { return fmt.Errorf("expected fieldNameString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -2789,7 +2794,7 @@ func awsAwsjson11_deserializeDocumentParameterObject(v **types.ParameterObject, return nil } -func awsAwsjson11_deserializeDocumentParameterObjectList(v *[]*types.ParameterObject, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterObjectList(v *[]types.ParameterObject, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2802,18 +2807,20 @@ func awsAwsjson11_deserializeDocumentParameterObjectList(v *[]*types.ParameterOb return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ParameterObject + var cv []types.ParameterObject if *v == nil { - cv = []*types.ParameterObject{} + cv = []types.ParameterObject{} } else { cv = *v } for _, value := range shape { - var col *types.ParameterObject - if err := awsAwsjson11_deserializeDocumentParameterObject(&col, value); err != nil { + var col types.ParameterObject + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParameterObject(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2849,7 +2856,7 @@ func awsAwsjson11_deserializeDocumentParameterValue(v **types.ParameterValue, va if !ok { return fmt.Errorf("expected fieldNameString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "stringValue": @@ -2858,7 +2865,7 @@ func awsAwsjson11_deserializeDocumentParameterValue(v **types.ParameterValue, va if !ok { return fmt.Errorf("expected fieldStringValue to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } default: @@ -2870,7 +2877,7 @@ func awsAwsjson11_deserializeDocumentParameterValue(v **types.ParameterValue, va return nil } -func awsAwsjson11_deserializeDocumentParameterValueList(v *[]*types.ParameterValue, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterValueList(v *[]types.ParameterValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2883,18 +2890,20 @@ func awsAwsjson11_deserializeDocumentParameterValueList(v *[]*types.ParameterVal return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ParameterValue + var cv []types.ParameterValue if *v == nil { - cv = []*types.ParameterValue{} + cv = []types.ParameterValue{} } else { cv = *v } for _, value := range shape { - var col *types.ParameterValue - if err := awsAwsjson11_deserializeDocumentParameterValue(&col, value); err != nil { + var col types.ParameterValue + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParameterValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2930,7 +2939,7 @@ func awsAwsjson11_deserializeDocumentPipelineDeletedException(v **types.Pipeline if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2970,7 +2979,7 @@ func awsAwsjson11_deserializeDocumentPipelineDescription(v **types.PipelineDescr if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "fields": @@ -2984,7 +2993,7 @@ func awsAwsjson11_deserializeDocumentPipelineDescription(v **types.PipelineDescr if !ok { return fmt.Errorf("expected id to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pipelineId": @@ -2993,7 +3002,7 @@ func awsAwsjson11_deserializeDocumentPipelineDescription(v **types.PipelineDescr if !ok { return fmt.Errorf("expected id to be of type string, got %T instead", value) } - sv.PipelineId = &jtv + sv.PipelineId = ptr.String(jtv) } case "tags": @@ -3010,7 +3019,7 @@ func awsAwsjson11_deserializeDocumentPipelineDescription(v **types.PipelineDescr return nil } -func awsAwsjson11_deserializeDocumentPipelineDescriptionList(v *[]*types.PipelineDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentPipelineDescriptionList(v *[]types.PipelineDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3023,18 +3032,20 @@ func awsAwsjson11_deserializeDocumentPipelineDescriptionList(v *[]*types.Pipelin return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PipelineDescription + var cv []types.PipelineDescription if *v == nil { - cv = []*types.PipelineDescription{} + cv = []types.PipelineDescription{} } else { cv = *v } for _, value := range shape { - var col *types.PipelineDescription - if err := awsAwsjson11_deserializeDocumentPipelineDescription(&col, value); err != nil { + var col types.PipelineDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPipelineDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3070,7 +3081,7 @@ func awsAwsjson11_deserializeDocumentPipelineIdName(v **types.PipelineIdName, va if !ok { return fmt.Errorf("expected id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -3079,7 +3090,7 @@ func awsAwsjson11_deserializeDocumentPipelineIdName(v **types.PipelineIdName, va if !ok { return fmt.Errorf("expected id to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -3091,7 +3102,7 @@ func awsAwsjson11_deserializeDocumentPipelineIdName(v **types.PipelineIdName, va return nil } -func awsAwsjson11_deserializeDocumentPipelineList(v *[]*types.PipelineIdName, value interface{}) error { +func awsAwsjson11_deserializeDocumentPipelineList(v *[]types.PipelineIdName, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3104,18 +3115,20 @@ func awsAwsjson11_deserializeDocumentPipelineList(v *[]*types.PipelineIdName, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PipelineIdName + var cv []types.PipelineIdName if *v == nil { - cv = []*types.PipelineIdName{} + cv = []types.PipelineIdName{} } else { cv = *v } for _, value := range shape { - var col *types.PipelineIdName - if err := awsAwsjson11_deserializeDocumentPipelineIdName(&col, value); err != nil { + var col types.PipelineIdName + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPipelineIdName(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3151,7 +3164,7 @@ func awsAwsjson11_deserializeDocumentPipelineNotFoundException(v **types.Pipelin if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3196,7 +3209,7 @@ func awsAwsjson11_deserializeDocumentPipelineObject(v **types.PipelineObject, va if !ok { return fmt.Errorf("expected id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -3205,7 +3218,7 @@ func awsAwsjson11_deserializeDocumentPipelineObject(v **types.PipelineObject, va if !ok { return fmt.Errorf("expected id to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -3217,7 +3230,7 @@ func awsAwsjson11_deserializeDocumentPipelineObject(v **types.PipelineObject, va return nil } -func awsAwsjson11_deserializeDocumentPipelineObjectList(v *[]*types.PipelineObject, value interface{}) error { +func awsAwsjson11_deserializeDocumentPipelineObjectList(v *[]types.PipelineObject, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3230,18 +3243,20 @@ func awsAwsjson11_deserializeDocumentPipelineObjectList(v *[]*types.PipelineObje return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PipelineObject + var cv []types.PipelineObject if *v == nil { - cv = []*types.PipelineObject{} + cv = []types.PipelineObject{} } else { cv = *v } for _, value := range shape { - var col *types.PipelineObject - if err := awsAwsjson11_deserializeDocumentPipelineObject(&col, value); err != nil { + var col types.PipelineObject + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPipelineObject(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3249,7 +3264,7 @@ func awsAwsjson11_deserializeDocumentPipelineObjectList(v *[]*types.PipelineObje return nil } -func awsAwsjson11_deserializeDocumentPipelineObjectMap(v *map[string]*types.PipelineObject, value interface{}) error { +func awsAwsjson11_deserializeDocumentPipelineObjectMap(v *map[string]types.PipelineObject, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3262,18 +3277,21 @@ func awsAwsjson11_deserializeDocumentPipelineObjectMap(v *map[string]*types.Pipe return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.PipelineObject + var mv map[string]types.PipelineObject if *v == nil { - mv = map[string]*types.PipelineObject{} + mv = map[string]types.PipelineObject{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.PipelineObject - if err := awsAwsjson11_deserializeDocumentPipelineObject(&parsedVal, value); err != nil { + var parsedVal types.PipelineObject + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentPipelineObject(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -3309,7 +3327,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected tagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -3318,7 +3336,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected tagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -3330,7 +3348,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3343,18 +3361,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3390,7 +3410,7 @@ func awsAwsjson11_deserializeDocumentTaskNotFoundException(v **types.TaskNotFoun if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3430,7 +3450,7 @@ func awsAwsjson11_deserializeDocumentTaskObject(v **types.TaskObject, value inte if !ok { return fmt.Errorf("expected id to be of type string, got %T instead", value) } - sv.AttemptId = &jtv + sv.AttemptId = ptr.String(jtv) } case "objects": @@ -3444,7 +3464,7 @@ func awsAwsjson11_deserializeDocumentTaskObject(v **types.TaskObject, value inte if !ok { return fmt.Errorf("expected id to be of type string, got %T instead", value) } - sv.PipelineId = &jtv + sv.PipelineId = ptr.String(jtv) } case "taskId": @@ -3453,7 +3473,7 @@ func awsAwsjson11_deserializeDocumentTaskObject(v **types.TaskObject, value inte if !ok { return fmt.Errorf("expected taskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } default: @@ -3498,7 +3518,7 @@ func awsAwsjson11_deserializeDocumentValidationError(v **types.ValidationError, if !ok { return fmt.Errorf("expected id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -3510,7 +3530,7 @@ func awsAwsjson11_deserializeDocumentValidationError(v **types.ValidationError, return nil } -func awsAwsjson11_deserializeDocumentValidationErrors(v *[]*types.ValidationError, value interface{}) error { +func awsAwsjson11_deserializeDocumentValidationErrors(v *[]types.ValidationError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3523,18 +3543,20 @@ func awsAwsjson11_deserializeDocumentValidationErrors(v *[]*types.ValidationErro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ValidationError + var cv []types.ValidationError if *v == nil { - cv = []*types.ValidationError{} + cv = []types.ValidationError{} } else { cv = *v } for _, value := range shape { - var col *types.ValidationError - if err := awsAwsjson11_deserializeDocumentValidationError(&col, value); err != nil { + var col types.ValidationError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentValidationError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3542,7 +3564,7 @@ func awsAwsjson11_deserializeDocumentValidationErrors(v *[]*types.ValidationErro return nil } -func awsAwsjson11_deserializeDocumentValidationMessages(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentValidationMessages(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3555,21 +3577,21 @@ func awsAwsjson11_deserializeDocumentValidationMessages(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected validationMessage to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3606,7 +3628,7 @@ func awsAwsjson11_deserializeDocumentValidationWarning(v **types.ValidationWarni if !ok { return fmt.Errorf("expected id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "warnings": @@ -3623,7 +3645,7 @@ func awsAwsjson11_deserializeDocumentValidationWarning(v **types.ValidationWarni return nil } -func awsAwsjson11_deserializeDocumentValidationWarnings(v *[]*types.ValidationWarning, value interface{}) error { +func awsAwsjson11_deserializeDocumentValidationWarnings(v *[]types.ValidationWarning, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3636,18 +3658,20 @@ func awsAwsjson11_deserializeDocumentValidationWarnings(v *[]*types.ValidationWa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ValidationWarning + var cv []types.ValidationWarning if *v == nil { - cv = []*types.ValidationWarning{} + cv = []types.ValidationWarning{} } else { cv = *v } for _, value := range shape { - var col *types.ValidationWarning - if err := awsAwsjson11_deserializeDocumentValidationWarning(&col, value); err != nil { + var col types.ValidationWarning + destAddr := &col + if err := awsAwsjson11_deserializeDocumentValidationWarning(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3745,7 +3769,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePipelineOutput(v **CreatePipelineOu if !ok { return fmt.Errorf("expected id to be of type string, got %T instead", value) } - sv.PipelineId = &jtv + sv.PipelineId = ptr.String(jtv) } default: @@ -3847,7 +3871,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeObjectsOutput(v **DescribeObjects if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.HasMoreResults = &jtv + sv.HasMoreResults = jtv } case "marker": @@ -3856,7 +3880,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeObjectsOutput(v **DescribeObjects if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "pipelineObjects": @@ -3937,7 +3961,7 @@ func awsAwsjson11_deserializeOpDocumentEvaluateExpressionOutput(v **EvaluateExpr if !ok { return fmt.Errorf("expected longString to be of type string, got %T instead", value) } - sv.EvaluatedExpression = &jtv + sv.EvaluatedExpression = ptr.String(jtv) } default: @@ -4023,7 +4047,7 @@ func awsAwsjson11_deserializeOpDocumentListPipelinesOutput(v **ListPipelinesOutp if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.HasMoreResults = &jtv + sv.HasMoreResults = jtv } case "marker": @@ -4032,7 +4056,7 @@ func awsAwsjson11_deserializeOpDocumentListPipelinesOutput(v **ListPipelinesOutp if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "pipelineIdList": @@ -4113,7 +4137,7 @@ func awsAwsjson11_deserializeOpDocumentPutPipelineDefinitionOutput(v **PutPipeli if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.Errored = &jtv + sv.Errored = jtv } case "validationErrors": @@ -4163,7 +4187,7 @@ func awsAwsjson11_deserializeOpDocumentQueryObjectsOutput(v **QueryObjectsOutput if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.HasMoreResults = &jtv + sv.HasMoreResults = jtv } case "ids": @@ -4177,7 +4201,7 @@ func awsAwsjson11_deserializeOpDocumentQueryObjectsOutput(v **QueryObjectsOutput if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -4248,7 +4272,7 @@ func awsAwsjson11_deserializeOpDocumentReportTaskProgressOutput(v **ReportTaskPr if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.Canceled = &jtv + sv.Canceled = jtv } default: @@ -4288,7 +4312,7 @@ func awsAwsjson11_deserializeOpDocumentReportTaskRunnerHeartbeatOutput(v **Repor if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.Terminate = &jtv + sv.Terminate = jtv } default: @@ -4390,7 +4414,7 @@ func awsAwsjson11_deserializeOpDocumentValidatePipelineDefinitionOutput(v **Vali if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.Errored = &jtv + sv.Errored = jtv } case "validationErrors": diff --git a/service/datapipeline/go.mod b/service/datapipeline/go.mod index 7f10b543942..d8e24487054 100644 --- a/service/datapipeline/go.mod +++ b/service/datapipeline/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/datapipeline go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/datapipeline/serializers.go b/service/datapipeline/serializers.go index 4794e7d3b2b..592ae12100a 100644 --- a/service/datapipeline/serializers.go +++ b/service/datapipeline/serializers.go @@ -910,34 +910,26 @@ func awsAwsjson11_serializeDocumentField(v *types.Field, value smithyjson.Value) return nil } -func awsAwsjson11_serializeDocumentFieldList(v []*types.Field, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFieldList(v []types.Field, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentField(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentField(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -995,17 +987,13 @@ func awsAwsjson11_serializeDocumentParameterAttribute(v *types.ParameterAttribut return nil } -func awsAwsjson11_serializeDocumentParameterAttributeList(v []*types.ParameterAttribute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParameterAttributeList(v []types.ParameterAttribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentParameterAttribute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentParameterAttribute(&v[i], av); err != nil { return err } } @@ -1031,17 +1019,13 @@ func awsAwsjson11_serializeDocumentParameterObject(v *types.ParameterObject, val return nil } -func awsAwsjson11_serializeDocumentParameterObjectList(v []*types.ParameterObject, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParameterObjectList(v []types.ParameterObject, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentParameterObject(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentParameterObject(&v[i], av); err != nil { return err } } @@ -1065,17 +1049,13 @@ func awsAwsjson11_serializeDocumentParameterValue(v *types.ParameterValue, value return nil } -func awsAwsjson11_serializeDocumentParameterValueList(v []*types.ParameterValue, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParameterValueList(v []types.ParameterValue, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentParameterValue(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentParameterValue(&v[i], av); err != nil { return err } } @@ -1106,17 +1086,13 @@ func awsAwsjson11_serializeDocumentPipelineObject(v *types.PipelineObject, value return nil } -func awsAwsjson11_serializeDocumentPipelineObjectList(v []*types.PipelineObject, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPipelineObjectList(v []types.PipelineObject, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPipelineObject(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPipelineObject(&v[i], av); err != nil { return err } } @@ -1156,34 +1132,26 @@ func awsAwsjson11_serializeDocumentSelector(v *types.Selector, value smithyjson. return nil } -func awsAwsjson11_serializeDocumentSelectorList(v []*types.Selector, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSelectorList(v []types.Selector, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSelector(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSelector(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1205,17 +1173,13 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -1327,9 +1291,9 @@ func awsAwsjson11_serializeOpDocumentDescribeObjectsInput(v *DescribeObjectsInpu object := value.Object() defer object.Close() - if v.EvaluateExpressions != nil { + if v.EvaluateExpressions { ok := object.Key("evaluateExpressions") - ok.Boolean(*v.EvaluateExpressions) + ok.Boolean(v.EvaluateExpressions) } if v.Marker != nil { diff --git a/service/datapipeline/types/types.go b/service/datapipeline/types/types.go index 694cfc504ad..e90dfd2afad 100644 --- a/service/datapipeline/types/types.go +++ b/service/datapipeline/types/types.go @@ -92,7 +92,7 @@ type Operator struct { Type OperatorType // The value that the actual field value will be compared with. - Values []*string + Values []string } // The attributes allowed or specified with a parameter object. @@ -115,7 +115,7 @@ type ParameterObject struct { // The attributes of the parameter object. // // This member is required. - Attributes []*ParameterAttribute + Attributes []ParameterAttribute // The ID of the parameter object. // @@ -144,7 +144,7 @@ type PipelineDescription struct { // @accountId, and @pipelineState. // // This member is required. - Fields []*Field + Fields []Field // The name of the pipeline. // @@ -164,7 +164,7 @@ type PipelineDescription struct { // pipelines. For more information, see Controlling User Access to Pipelines // (https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html) // in the AWS Data Pipeline Developer Guide. - Tags []*Tag + Tags []Tag } // Contains the name and identifier of a pipeline. @@ -186,7 +186,7 @@ type PipelineObject struct { // Key-value pairs that define the properties of the object. // // This member is required. - Fields []*Field + Fields []Field // The ID of the object. // @@ -204,7 +204,7 @@ type Query struct { // List of selectors that define the query. An object must satisfy all of the // selectors to match the query. - Selectors []*Selector + Selectors []Selector } // A comparison that is used to determine whether a query should return this @@ -255,7 +255,7 @@ type TaskObject struct { // Connection information for the location where the task runner will publish the // output of the task. - Objects map[string]*PipelineObject + Objects map[string]PipelineObject // The ID of the pipeline that provided the task. PipelineId *string @@ -270,7 +270,7 @@ type TaskObject struct { type ValidationError struct { // A description of the validation error. - Errors []*string + Errors []string // The identifier of the object that contains the validation error. Id *string @@ -285,5 +285,5 @@ type ValidationWarning struct { Id *string // A description of the validation warning. - Warnings []*string + Warnings []string } diff --git a/service/datapipeline/validators.go b/service/datapipeline/validators.go index 1899be36509..358b0c299ea 100644 --- a/service/datapipeline/validators.go +++ b/service/datapipeline/validators.go @@ -457,13 +457,13 @@ func validateField(v *types.Field) error { } } -func validateFieldList(v []*types.Field) error { +func validateFieldList(v []types.Field) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FieldList"} for i := range v { - if err := validateField(v[i]); err != nil { + if err := validateField(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -492,13 +492,13 @@ func validateParameterAttribute(v *types.ParameterAttribute) error { } } -func validateParameterAttributeList(v []*types.ParameterAttribute) error { +func validateParameterAttributeList(v []types.ParameterAttribute) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ParameterAttributeList"} for i := range v { - if err := validateParameterAttribute(v[i]); err != nil { + if err := validateParameterAttribute(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -531,13 +531,13 @@ func validateParameterObject(v *types.ParameterObject) error { } } -func validateParameterObjectList(v []*types.ParameterObject) error { +func validateParameterObjectList(v []types.ParameterObject) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ParameterObjectList"} for i := range v { - if err := validateParameterObject(v[i]); err != nil { + if err := validateParameterObject(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -566,13 +566,13 @@ func validateParameterValue(v *types.ParameterValue) error { } } -func validateParameterValueList(v []*types.ParameterValue) error { +func validateParameterValueList(v []types.ParameterValue) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ParameterValueList"} for i := range v { - if err := validateParameterValue(v[i]); err != nil { + if err := validateParameterValue(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -608,13 +608,13 @@ func validatePipelineObject(v *types.PipelineObject) error { } } -func validatePipelineObjectList(v []*types.PipelineObject) error { +func validatePipelineObjectList(v []types.PipelineObject) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PipelineObjectList"} for i := range v { - if err := validatePipelineObject(v[i]); err != nil { + if err := validatePipelineObject(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -643,13 +643,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/datasync/api_op_CreateAgent.go b/service/datasync/api_op_CreateAgent.go index e45797fef60..e6fdbf39c27 100644 --- a/service/datasync/api_op_CreateAgent.go +++ b/service/datasync/api_op_CreateAgent.go @@ -60,7 +60,7 @@ type CreateAgentInput struct { // The ARNs of the security groups used to protect your data transfer task subnets. // See CreateAgentRequest$SubnetArns. - SecurityGroupArns []*string + SecurityGroupArns []string // The Amazon Resource Names (ARNs) of the subnets in which DataSync will create // elastic network interfaces for each data transfer task. The agent that runs a @@ -69,14 +69,14 @@ type CreateAgentInput struct { // task is also private. In this case, DataSync creates four network interfaces for // each task in your subnet. For a data transfer to work, the agent must be able to // route to all these four network interfaces. - SubnetArns []*string + SubnetArns []string // The key-value pair that represents the tag that you want to associate with the // agent. The value can be an empty string. This value helps you manage, filter, // and search for your agents. Valid characters for key and value are letters, // spaces, and numbers representable in UTF-8 format, and the following special // characters: + - = . _ : / @. - Tags []*types.TagListEntry + Tags []types.TagListEntry // The ID of the VPC (virtual private cloud) endpoint that the agent has access to. // This is the client-side VPC endpoint, also called a PrivateLink. If you don't diff --git a/service/datasync/api_op_CreateLocationEfs.go b/service/datasync/api_op_CreateLocationEfs.go index 078eeeefaff..ac432741d58 100644 --- a/service/datasync/api_op_CreateLocationEfs.go +++ b/service/datasync/api_op_CreateLocationEfs.go @@ -67,7 +67,7 @@ type CreateLocationEfsInput struct { // The value can be an empty string. This value helps you manage, filter, and // search for your resources. We recommend that you create a name tag for your // location. - Tags []*types.TagListEntry + Tags []types.TagListEntry } // CreateLocationEfs diff --git a/service/datasync/api_op_CreateLocationFsxWindows.go b/service/datasync/api_op_CreateLocationFsxWindows.go index 3343dd71178..14451a182dd 100644 --- a/service/datasync/api_op_CreateLocationFsxWindows.go +++ b/service/datasync/api_op_CreateLocationFsxWindows.go @@ -44,7 +44,7 @@ type CreateLocationFsxWindowsInput struct { // configure the FSx for Windows file system. // // This member is required. - SecurityGroupArns []*string + SecurityGroupArns []string // The user who has the permissions to access files and folders in the FSx for // Windows file system. @@ -64,7 +64,7 @@ type CreateLocationFsxWindowsInput struct { // The value can be an empty string. This value helps you manage, filter, and // search for your resources. We recommend that you create a name tag for your // location. - Tags []*types.TagListEntry + Tags []types.TagListEntry } type CreateLocationFsxWindowsOutput struct { diff --git a/service/datasync/api_op_CreateLocationNfs.go b/service/datasync/api_op_CreateLocationNfs.go index 4607df473c8..c8b417b235c 100644 --- a/service/datasync/api_op_CreateLocationNfs.go +++ b/service/datasync/api_op_CreateLocationNfs.go @@ -80,7 +80,7 @@ type CreateLocationNfsInput struct { // The key-value pair that represents the tag that you want to add to the location. // The value can be an empty string. We recommend using tags to name your // resources. - Tags []*types.TagListEntry + Tags []types.TagListEntry } // CreateLocationNfsResponse diff --git a/service/datasync/api_op_CreateLocationObjectStorage.go b/service/datasync/api_op_CreateLocationObjectStorage.go index 03a65f47e0f..144e0bcbba6 100644 --- a/service/datasync/api_op_CreateLocationObjectStorage.go +++ b/service/datasync/api_op_CreateLocationObjectStorage.go @@ -36,7 +36,7 @@ type CreateLocationObjectStorageInput struct { // object storage server location. // // This member is required. - AgentArns []*string + AgentArns []string // The bucket on the self-managed object storage server that is used to read data // from. @@ -80,7 +80,7 @@ type CreateLocationObjectStorageInput struct { // The key-value pair that represents the tag that you want to add to the location. // The value can be an empty string. We recommend using tags to name your // resources. - Tags []*types.TagListEntry + Tags []types.TagListEntry } // CreateLocationObjectStorageResponse diff --git a/service/datasync/api_op_CreateLocationS3.go b/service/datasync/api_op_CreateLocationS3.go index b4bf4fbc8fb..0094d43489c 100644 --- a/service/datasync/api_op_CreateLocationS3.go +++ b/service/datasync/api_op_CreateLocationS3.go @@ -49,7 +49,7 @@ type CreateLocationS3Input struct { // If you are using DataSync on an AWS Outpost, specify the Amazon Resource Names // (ARNs) of the DataSync agents deployed on your AWS Outpost. For more information // about launching a DataSync agent on an Amazon Outpost, see outposts-agent. - AgentArns []*string + AgentArns []string // The Amazon S3 storage class that you want to store your files in when this // location is used as a task destination. For buckets in AWS Regions, the storage @@ -68,7 +68,7 @@ type CreateLocationS3Input struct { // The key-value pair that represents the tag that you want to add to the location. // The value can be an empty string. We recommend using tags to name your // resources. - Tags []*types.TagListEntry + Tags []types.TagListEntry } // CreateLocationS3Response diff --git a/service/datasync/api_op_CreateLocationSmb.go b/service/datasync/api_op_CreateLocationSmb.go index 36345ad3be8..e8ee393a44f 100644 --- a/service/datasync/api_op_CreateLocationSmb.go +++ b/service/datasync/api_op_CreateLocationSmb.go @@ -35,7 +35,7 @@ type CreateLocationSmbInput struct { // (SMB) location. // // This member is required. - AgentArns []*string + AgentArns []string // The password of the user who can mount the share, has the permissions to access // files and folders in the SMB share. @@ -83,7 +83,7 @@ type CreateLocationSmbInput struct { // The key-value pair that represents the tag that you want to add to the location. // The value can be an empty string. We recommend using tags to name your // resources. - Tags []*types.TagListEntry + Tags []types.TagListEntry } // CreateLocationSmbResponse diff --git a/service/datasync/api_op_CreateTask.go b/service/datasync/api_op_CreateTask.go index f961909192a..dcb9e37dbb5 100644 --- a/service/datasync/api_op_CreateTask.go +++ b/service/datasync/api_op_CreateTask.go @@ -61,7 +61,7 @@ type CreateTaskInput struct { // list should contain a single filter string that consists of the patterns to // exclude. The patterns are delimited by "|" (that is, a pipe), for example, // "/folder1|/folder2" - Excludes []*types.FilterRule + Excludes []types.FilterRule // The name of a task. This value is a text reference that is used to identify the // task in the console. @@ -82,7 +82,7 @@ type CreateTaskInput struct { // The key-value pair that represents the tag that you want to add to the resource. // The value can be an empty string. - Tags []*types.TagListEntry + Tags []types.TagListEntry } // CreateTaskResponse diff --git a/service/datasync/api_op_DescribeLocationFsxWindows.go b/service/datasync/api_op_DescribeLocationFsxWindows.go index 2775ef9bcc7..52e35c425a5 100644 --- a/service/datasync/api_op_DescribeLocationFsxWindows.go +++ b/service/datasync/api_op_DescribeLocationFsxWindows.go @@ -53,7 +53,7 @@ type DescribeLocationFsxWindowsOutput struct { // The Amazon Resource Names (ARNs) of the security groups that are configured for // the FSx for Windows file system. - SecurityGroupArns []*string + SecurityGroupArns []string // The user who has the permissions to access files and folders in the FSx for // Windows file system. diff --git a/service/datasync/api_op_DescribeLocationObjectStorage.go b/service/datasync/api_op_DescribeLocationObjectStorage.go index 2fefbdd4489..60e2b3ecb6b 100644 --- a/service/datasync/api_op_DescribeLocationObjectStorage.go +++ b/service/datasync/api_op_DescribeLocationObjectStorage.go @@ -51,7 +51,7 @@ type DescribeLocationObjectStorageOutput struct { // The Amazon Resource Name (ARN) of the agents associated with the self-managed // object storage server location. - AgentArns []*string + AgentArns []string // The time that the self-managed object storage server agent was created. CreationTime *time.Time diff --git a/service/datasync/api_op_DescribeLocationS3.go b/service/datasync/api_op_DescribeLocationS3.go index 84180e5bcf3..859f5e318c1 100644 --- a/service/datasync/api_op_DescribeLocationS3.go +++ b/service/datasync/api_op_DescribeLocationS3.go @@ -43,7 +43,7 @@ type DescribeLocationS3Output struct { // If you are using DataSync on an Amazon Outpost, the Amazon Resource Name (ARNs) // of the EC2 agents deployed on your AWS Outpost. For more information about // launching a DataSync agent on an Amazon Outpost, see outposts-agent. - AgentArns []*string + AgentArns []string // The time that the Amazon S3 bucket location was created. CreationTime *time.Time diff --git a/service/datasync/api_op_DescribeLocationSmb.go b/service/datasync/api_op_DescribeLocationSmb.go index 945b499f297..0710c47e52a 100644 --- a/service/datasync/api_op_DescribeLocationSmb.go +++ b/service/datasync/api_op_DescribeLocationSmb.go @@ -42,7 +42,7 @@ type DescribeLocationSmbOutput struct { // The Amazon Resource Name (ARN) of the source SMB file system location that is // created. - AgentArns []*string + AgentArns []string // The time that the SMB location was created. CreationTime *time.Time diff --git a/service/datasync/api_op_DescribeTask.go b/service/datasync/api_op_DescribeTask.go index f605d008635..5e0a4ab1157 100644 --- a/service/datasync/api_op_DescribeTask.go +++ b/service/datasync/api_op_DescribeTask.go @@ -56,7 +56,7 @@ type DescribeTaskOutput struct { // The Amazon Resource Name (ARN) of the destination ENIs (Elastic Network // Interface) that was created for your subnet. - DestinationNetworkInterfaceArns []*string + DestinationNetworkInterfaceArns []string // Errors that AWS DataSync encountered during execution of the task. You can use // this error code to help troubleshoot issues. @@ -70,7 +70,7 @@ type DescribeTaskOutput struct { // list should contain a single filter string that consists of the patterns to // exclude. The patterns are delimited by "|" (that is, a pipe), for example: // "/folder1|/folder2" - Excludes []*types.FilterRule + Excludes []types.FilterRule // The name of the task that was described. Name *string @@ -92,7 +92,7 @@ type DescribeTaskOutput struct { // The Amazon Resource Name (ARN) of the source ENIs (Elastic Network Interface) // that was created for your subnet. - SourceNetworkInterfaceArns []*string + SourceNetworkInterfaceArns []string // The status of the task that was described. For detailed information about task // execution statuses, see Understanding Task Statuses in the AWS DataSync User diff --git a/service/datasync/api_op_DescribeTaskExecution.go b/service/datasync/api_op_DescribeTaskExecution.go index e335c7dd019..aac2b862af4 100644 --- a/service/datasync/api_op_DescribeTaskExecution.go +++ b/service/datasync/api_op_DescribeTaskExecution.go @@ -41,27 +41,27 @@ type DescribeTaskExecutionInput struct { type DescribeTaskExecutionOutput struct { // The physical number of bytes transferred over the network. - BytesTransferred *int64 + BytesTransferred int64 // The number of logical bytes written to the destination AWS storage resource. - BytesWritten *int64 + BytesWritten int64 // The estimated physical number of bytes that is to be transferred over the // network. - EstimatedBytesToTransfer *int64 + EstimatedBytesToTransfer int64 // The expected number of files that is to be transferred over the network. This // value is calculated during the PREPARING phase, before the TRANSFERRING phase. // This value is the expected number of files to be transferred. It's calculated // based on comparing the content of the source and destination locations and // finding the delta that needs to be transferred. - EstimatedFilesToTransfer *int64 + EstimatedFilesToTransfer int64 // A list of filter rules that determines which files to exclude from a task. The // list should contain a single filter string that consists of the patterns to // exclude. The patterns are delimited by "|" (that is, a pipe), for example: // "/folder1|/folder2" - Excludes []*types.FilterRule + Excludes []types.FilterRule // The actual number of files that was transferred over the network. This value is // calculated and updated on an ongoing basis during the TRANSFERRING phase. It's @@ -71,13 +71,13 @@ type DescribeTaskExecutionOutput struct { // EstimatedFilesTransferred in some cases. This element is implementation-specific // for some location types, so don't use it as an indicator for a correct file // number or to monitor your task execution. - FilesTransferred *int64 + FilesTransferred int64 // A list of filter rules that determines which files to include when running a // task. The list should contain a single filter string that consists of the // patterns to include. The patterns are delimited by "|" (that is, a pipe), for // example: "/folder1|/folder2" - Includes []*types.FilterRule + Includes []types.FilterRule // Represents the options that are available to control the behavior of a // StartTaskExecution operation. Behavior includes preserving metadata such as user diff --git a/service/datasync/api_op_ListAgents.go b/service/datasync/api_op_ListAgents.go index 767bba3a6f3..44d38c81900 100644 --- a/service/datasync/api_op_ListAgents.go +++ b/service/datasync/api_op_ListAgents.go @@ -49,7 +49,7 @@ type ListAgentsInput struct { type ListAgentsOutput struct { // A list of agents in your account. - Agents []*types.AgentListEntry + Agents []types.AgentListEntry // An opaque string that indicates the position at which to begin returning the // next list of agents. diff --git a/service/datasync/api_op_ListLocations.go b/service/datasync/api_op_ListLocations.go index 8458c32b944..ac1f01fd907 100644 --- a/service/datasync/api_op_ListLocations.go +++ b/service/datasync/api_op_ListLocations.go @@ -36,7 +36,7 @@ type ListLocationsInput struct { // You can use API filters to narrow down the list of resources returned by // ListLocations. For example, to retrieve all tasks on a specific source location, // you can use ListLocations with filter name LocationType S3 and Operator Equals. - Filters []*types.LocationFilter + Filters []types.LocationFilter // The maximum number of locations to return. MaxResults *int32 @@ -50,7 +50,7 @@ type ListLocationsInput struct { type ListLocationsOutput struct { // An array that contains a list of locations. - Locations []*types.LocationListEntry + Locations []types.LocationListEntry // An opaque string that indicates the position at which to begin returning the // next list of locations. diff --git a/service/datasync/api_op_ListTagsForResource.go b/service/datasync/api_op_ListTagsForResource.go index 60cf8493523..d428393df69 100644 --- a/service/datasync/api_op_ListTagsForResource.go +++ b/service/datasync/api_op_ListTagsForResource.go @@ -51,7 +51,7 @@ type ListTagsForResourceOutput struct { NextToken *string // Array of resource tags. - Tags []*types.TagListEntry + Tags []types.TagListEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/datasync/api_op_ListTaskExecutions.go b/service/datasync/api_op_ListTaskExecutions.go index aa40802a741..66bc4a51900 100644 --- a/service/datasync/api_op_ListTaskExecutions.go +++ b/service/datasync/api_op_ListTaskExecutions.go @@ -49,7 +49,7 @@ type ListTaskExecutionsOutput struct { NextToken *string // A list of executed tasks. - TaskExecutions []*types.TaskExecutionListEntry + TaskExecutions []types.TaskExecutionListEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/datasync/api_op_ListTasks.go b/service/datasync/api_op_ListTasks.go index acb6a880b7b..3f6d2cd7519 100644 --- a/service/datasync/api_op_ListTasks.go +++ b/service/datasync/api_op_ListTasks.go @@ -34,7 +34,7 @@ type ListTasksInput struct { // ListTasks. For example, to retrieve all tasks on a specific source location, you // can use ListTasks with filter name LocationId and Operator Equals with the ARN // for the location. - Filters []*types.TaskFilter + Filters []types.TaskFilter // The maximum number of tasks to return. MaxResults *int32 @@ -52,7 +52,7 @@ type ListTasksOutput struct { NextToken *string // A list of all the tasks that are returned. - Tasks []*types.TaskListEntry + Tasks []types.TaskListEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/datasync/api_op_StartTaskExecution.go b/service/datasync/api_op_StartTaskExecution.go index 830f07f1220..19041a5135d 100644 --- a/service/datasync/api_op_StartTaskExecution.go +++ b/service/datasync/api_op_StartTaskExecution.go @@ -44,7 +44,7 @@ type StartTaskExecutionInput struct { // task. The pattern should contain a single filter string that consists of the // patterns to include. The patterns are delimited by "|" (that is, a pipe). For // example: "/folder1|/folder2" - Includes []*types.FilterRule + Includes []types.FilterRule // Represents the options that are available to control the behavior of a // StartTaskExecution operation. Behavior includes preserving metadata such as user diff --git a/service/datasync/api_op_TagResource.go b/service/datasync/api_op_TagResource.go index b58831a656c..90c60be0b12 100644 --- a/service/datasync/api_op_TagResource.go +++ b/service/datasync/api_op_TagResource.go @@ -38,7 +38,7 @@ type TagResourceInput struct { // The tags to apply. // // This member is required. - Tags []*types.TagListEntry + Tags []types.TagListEntry } type TagResourceOutput struct { diff --git a/service/datasync/api_op_UntagResource.go b/service/datasync/api_op_UntagResource.go index 93805e13ffc..9fd29f92c71 100644 --- a/service/datasync/api_op_UntagResource.go +++ b/service/datasync/api_op_UntagResource.go @@ -32,7 +32,7 @@ type UntagResourceInput struct { // The keys in the key-value pair in the tag to remove. // // This member is required. - Keys []*string + Keys []string // The Amazon Resource Name (ARN) of the resource to remove the tag from. // diff --git a/service/datasync/api_op_UpdateTask.go b/service/datasync/api_op_UpdateTask.go index a65fe567801..286b6ce046f 100644 --- a/service/datasync/api_op_UpdateTask.go +++ b/service/datasync/api_op_UpdateTask.go @@ -42,7 +42,7 @@ type UpdateTaskInput struct { // list should contain a single filter string that consists of the patterns to // exclude. The patterns are delimited by "|" (that is, a pipe), for example: // "/folder1|/folder2" - Excludes []*types.FilterRule + Excludes []types.FilterRule // The name of the task to update. Name *string diff --git a/service/datasync/deserializers.go b/service/datasync/deserializers.go index 681ad2e5817..4c992302f64 100644 --- a/service/datasync/deserializers.go +++ b/service/datasync/deserializers.go @@ -3623,7 +3623,7 @@ func awsAwsjson11_deserializeErrorInvalidRequestException(response *smithyhttp.R return output } -func awsAwsjson11_deserializeDocumentAgentArnList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAgentArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3636,21 +3636,21 @@ func awsAwsjson11_deserializeDocumentAgentArnList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AgentArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3659,7 +3659,7 @@ func awsAwsjson11_deserializeDocumentAgentArnList(v *[]*string, value interface{ return nil } -func awsAwsjson11_deserializeDocumentAgentList(v *[]*types.AgentListEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentAgentList(v *[]types.AgentListEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3672,18 +3672,20 @@ func awsAwsjson11_deserializeDocumentAgentList(v *[]*types.AgentListEntry, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AgentListEntry + var cv []types.AgentListEntry if *v == nil { - cv = []*types.AgentListEntry{} + cv = []types.AgentListEntry{} } else { cv = *v } for _, value := range shape { - var col *types.AgentListEntry - if err := awsAwsjson11_deserializeDocumentAgentListEntry(&col, value); err != nil { + var col types.AgentListEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAgentListEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3719,7 +3721,7 @@ func awsAwsjson11_deserializeDocumentAgentListEntry(v **types.AgentListEntry, va if !ok { return fmt.Errorf("expected AgentArn to be of type string, got %T instead", value) } - sv.AgentArn = &jtv + sv.AgentArn = ptr.String(jtv) } case "Name": @@ -3728,7 +3730,7 @@ func awsAwsjson11_deserializeDocumentAgentListEntry(v **types.AgentListEntry, va if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -3749,7 +3751,7 @@ func awsAwsjson11_deserializeDocumentAgentListEntry(v **types.AgentListEntry, va return nil } -func awsAwsjson11_deserializeDocumentDestinationNetworkInterfaceArns(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDestinationNetworkInterfaceArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3762,21 +3764,21 @@ func awsAwsjson11_deserializeDocumentDestinationNetworkInterfaceArns(v *[]*strin return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NetworkInterfaceArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3818,7 +3820,7 @@ func awsAwsjson11_deserializeDocumentEc2Config(v **types.Ec2Config, value interf if !ok { return fmt.Errorf("expected Ec2SubnetArn to be of type string, got %T instead", value) } - sv.SubnetArn = &jtv + sv.SubnetArn = ptr.String(jtv) } default: @@ -3830,7 +3832,7 @@ func awsAwsjson11_deserializeDocumentEc2Config(v **types.Ec2Config, value interf return nil } -func awsAwsjson11_deserializeDocumentEc2SecurityGroupArnList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentEc2SecurityGroupArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3843,21 +3845,21 @@ func awsAwsjson11_deserializeDocumentEc2SecurityGroupArnList(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Ec2SecurityGroupArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3866,7 +3868,7 @@ func awsAwsjson11_deserializeDocumentEc2SecurityGroupArnList(v *[]*string, value return nil } -func awsAwsjson11_deserializeDocumentFilterList(v *[]*types.FilterRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentFilterList(v *[]types.FilterRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3879,18 +3881,20 @@ func awsAwsjson11_deserializeDocumentFilterList(v *[]*types.FilterRule, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FilterRule + var cv []types.FilterRule if *v == nil { - cv = []*types.FilterRule{} + cv = []types.FilterRule{} } else { cv = *v } for _, value := range shape { - var col *types.FilterRule - if err := awsAwsjson11_deserializeDocumentFilterRule(&col, value); err != nil { + var col types.FilterRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFilterRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3935,7 +3939,7 @@ func awsAwsjson11_deserializeDocumentFilterRule(v **types.FilterRule, value inte if !ok { return fmt.Errorf("expected FilterValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -3975,7 +3979,7 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "message": @@ -3984,7 +3988,7 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4024,7 +4028,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "message": @@ -4033,7 +4037,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4045,7 +4049,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe return nil } -func awsAwsjson11_deserializeDocumentLocationList(v *[]*types.LocationListEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentLocationList(v *[]types.LocationListEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4058,18 +4062,20 @@ func awsAwsjson11_deserializeDocumentLocationList(v *[]*types.LocationListEntry, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LocationListEntry + var cv []types.LocationListEntry if *v == nil { - cv = []*types.LocationListEntry{} + cv = []types.LocationListEntry{} } else { cv = *v } for _, value := range shape { - var col *types.LocationListEntry - if err := awsAwsjson11_deserializeDocumentLocationListEntry(&col, value); err != nil { + var col types.LocationListEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLocationListEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4105,7 +4111,7 @@ func awsAwsjson11_deserializeDocumentLocationListEntry(v **types.LocationListEnt if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.LocationArn = &jtv + sv.LocationArn = ptr.String(jtv) } case "LocationUri": @@ -4114,7 +4120,7 @@ func awsAwsjson11_deserializeDocumentLocationListEntry(v **types.LocationListEnt if !ok { return fmt.Errorf("expected LocationUri to be of type string, got %T instead", value) } - sv.LocationUri = &jtv + sv.LocationUri = ptr.String(jtv) } default: @@ -4243,7 +4249,7 @@ func awsAwsjson11_deserializeDocumentOptions(v **types.Options, value interface{ if err != nil { return err } - sv.BytesPerSecond = &i64 + sv.BytesPerSecond = ptr.Int64(i64) } case "Gid": @@ -4354,7 +4360,7 @@ func awsAwsjson11_deserializeDocumentOptions(v **types.Options, value interface{ return nil } -func awsAwsjson11_deserializeDocumentOutputTagList(v *[]*types.TagListEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentOutputTagList(v *[]types.TagListEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4367,18 +4373,20 @@ func awsAwsjson11_deserializeDocumentOutputTagList(v *[]*types.TagListEntry, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TagListEntry + var cv []types.TagListEntry if *v == nil { - cv = []*types.TagListEntry{} + cv = []types.TagListEntry{} } else { cv = *v } for _, value := range shape { - var col *types.TagListEntry - if err := awsAwsjson11_deserializeDocumentTagListEntry(&col, value); err != nil { + var col types.TagListEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTagListEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4386,7 +4394,7 @@ func awsAwsjson11_deserializeDocumentOutputTagList(v *[]*types.TagListEntry, val return nil } -func awsAwsjson11_deserializeDocumentPLSecurityGroupArnList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPLSecurityGroupArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4399,21 +4407,21 @@ func awsAwsjson11_deserializeDocumentPLSecurityGroupArnList(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Ec2SecurityGroupArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4422,7 +4430,7 @@ func awsAwsjson11_deserializeDocumentPLSecurityGroupArnList(v *[]*string, value return nil } -func awsAwsjson11_deserializeDocumentPLSubnetArnList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPLSubnetArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4435,21 +4443,21 @@ func awsAwsjson11_deserializeDocumentPLSubnetArnList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Ec2SubnetArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4486,7 +4494,7 @@ func awsAwsjson11_deserializeDocumentPrivateLinkConfig(v **types.PrivateLinkConf if !ok { return fmt.Errorf("expected Endpoint to be of type string, got %T instead", value) } - sv.PrivateLinkEndpoint = &jtv + sv.PrivateLinkEndpoint = ptr.String(jtv) } case "SecurityGroupArns": @@ -4505,7 +4513,7 @@ func awsAwsjson11_deserializeDocumentPrivateLinkConfig(v **types.PrivateLinkConf if !ok { return fmt.Errorf("expected VpcEndpointId to be of type string, got %T instead", value) } - sv.VpcEndpointId = &jtv + sv.VpcEndpointId = ptr.String(jtv) } default: @@ -4545,7 +4553,7 @@ func awsAwsjson11_deserializeDocumentS3Config(v **types.S3Config, value interfac if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.BucketAccessRoleArn = &jtv + sv.BucketAccessRoleArn = ptr.String(jtv) } default: @@ -4597,7 +4605,7 @@ func awsAwsjson11_deserializeDocumentSmbMountOptions(v **types.SmbMountOptions, return nil } -func awsAwsjson11_deserializeDocumentSourceNetworkInterfaceArns(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSourceNetworkInterfaceArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4610,21 +4618,21 @@ func awsAwsjson11_deserializeDocumentSourceNetworkInterfaceArns(v *[]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NetworkInterfaceArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4661,7 +4669,7 @@ func awsAwsjson11_deserializeDocumentTagListEntry(v **types.TagListEntry, value if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -4670,7 +4678,7 @@ func awsAwsjson11_deserializeDocumentTagListEntry(v **types.TagListEntry, value if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4682,7 +4690,7 @@ func awsAwsjson11_deserializeDocumentTagListEntry(v **types.TagListEntry, value return nil } -func awsAwsjson11_deserializeDocumentTaskExecutionList(v *[]*types.TaskExecutionListEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentTaskExecutionList(v *[]types.TaskExecutionListEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4695,18 +4703,20 @@ func awsAwsjson11_deserializeDocumentTaskExecutionList(v *[]*types.TaskExecution return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TaskExecutionListEntry + var cv []types.TaskExecutionListEntry if *v == nil { - cv = []*types.TaskExecutionListEntry{} + cv = []types.TaskExecutionListEntry{} } else { cv = *v } for _, value := range shape { - var col *types.TaskExecutionListEntry - if err := awsAwsjson11_deserializeDocumentTaskExecutionListEntry(&col, value); err != nil { + var col types.TaskExecutionListEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTaskExecutionListEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4751,7 +4761,7 @@ func awsAwsjson11_deserializeDocumentTaskExecutionListEntry(v **types.TaskExecut if !ok { return fmt.Errorf("expected TaskExecutionArn to be of type string, got %T instead", value) } - sv.TaskExecutionArn = &jtv + sv.TaskExecutionArn = ptr.String(jtv) } default: @@ -4791,7 +4801,7 @@ func awsAwsjson11_deserializeDocumentTaskExecutionResultDetail(v **types.TaskExe if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorDetail": @@ -4800,7 +4810,7 @@ func awsAwsjson11_deserializeDocumentTaskExecutionResultDetail(v **types.TaskExe if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorDetail = &jtv + sv.ErrorDetail = ptr.String(jtv) } case "PrepareDuration": @@ -4813,7 +4823,7 @@ func awsAwsjson11_deserializeDocumentTaskExecutionResultDetail(v **types.TaskExe if err != nil { return err } - sv.PrepareDuration = &i64 + sv.PrepareDuration = ptr.Int64(i64) } case "PrepareStatus": @@ -4835,7 +4845,7 @@ func awsAwsjson11_deserializeDocumentTaskExecutionResultDetail(v **types.TaskExe if err != nil { return err } - sv.TotalDuration = &i64 + sv.TotalDuration = ptr.Int64(i64) } case "TransferDuration": @@ -4848,7 +4858,7 @@ func awsAwsjson11_deserializeDocumentTaskExecutionResultDetail(v **types.TaskExe if err != nil { return err } - sv.TransferDuration = &i64 + sv.TransferDuration = ptr.Int64(i64) } case "TransferStatus": @@ -4870,7 +4880,7 @@ func awsAwsjson11_deserializeDocumentTaskExecutionResultDetail(v **types.TaskExe if err != nil { return err } - sv.VerifyDuration = &i64 + sv.VerifyDuration = ptr.Int64(i64) } case "VerifyStatus": @@ -4891,7 +4901,7 @@ func awsAwsjson11_deserializeDocumentTaskExecutionResultDetail(v **types.TaskExe return nil } -func awsAwsjson11_deserializeDocumentTaskList(v *[]*types.TaskListEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentTaskList(v *[]types.TaskListEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4904,18 +4914,20 @@ func awsAwsjson11_deserializeDocumentTaskList(v *[]*types.TaskListEntry, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TaskListEntry + var cv []types.TaskListEntry if *v == nil { - cv = []*types.TaskListEntry{} + cv = []types.TaskListEntry{} } else { cv = *v } for _, value := range shape { - var col *types.TaskListEntry - if err := awsAwsjson11_deserializeDocumentTaskListEntry(&col, value); err != nil { + var col types.TaskListEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTaskListEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4951,7 +4963,7 @@ func awsAwsjson11_deserializeDocumentTaskListEntry(v **types.TaskListEntry, valu if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -4969,7 +4981,7 @@ func awsAwsjson11_deserializeDocumentTaskListEntry(v **types.TaskListEntry, valu if !ok { return fmt.Errorf("expected TaskArn to be of type string, got %T instead", value) } - sv.TaskArn = &jtv + sv.TaskArn = ptr.String(jtv) } default: @@ -5009,7 +5021,7 @@ func awsAwsjson11_deserializeDocumentTaskSchedule(v **types.TaskSchedule, value if !ok { return fmt.Errorf("expected ScheduleExpressionCron to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } default: @@ -5080,7 +5092,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAgentOutput(v **CreateAgentOutput, if !ok { return fmt.Errorf("expected AgentArn to be of type string, got %T instead", value) } - sv.AgentArn = &jtv + sv.AgentArn = ptr.String(jtv) } default: @@ -5120,7 +5132,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLocationEfsOutput(v **CreateLocatio if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.LocationArn = &jtv + sv.LocationArn = ptr.String(jtv) } default: @@ -5160,7 +5172,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLocationFsxWindowsOutput(v **Create if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.LocationArn = &jtv + sv.LocationArn = ptr.String(jtv) } default: @@ -5200,7 +5212,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLocationNfsOutput(v **CreateLocatio if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.LocationArn = &jtv + sv.LocationArn = ptr.String(jtv) } default: @@ -5240,7 +5252,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLocationObjectStorageOutput(v **Cre if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.LocationArn = &jtv + sv.LocationArn = ptr.String(jtv) } default: @@ -5280,7 +5292,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLocationS3Output(v **CreateLocation if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.LocationArn = &jtv + sv.LocationArn = ptr.String(jtv) } default: @@ -5320,7 +5332,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLocationSmbOutput(v **CreateLocatio if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.LocationArn = &jtv + sv.LocationArn = ptr.String(jtv) } default: @@ -5360,7 +5372,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTaskOutput(v **CreateTaskOutput, va if !ok { return fmt.Errorf("expected TaskArn to be of type string, got %T instead", value) } - sv.TaskArn = &jtv + sv.TaskArn = ptr.String(jtv) } default: @@ -5493,7 +5505,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAgentOutput(v **DescribeAgentOutp if !ok { return fmt.Errorf("expected AgentArn to be of type string, got %T instead", value) } - sv.AgentArn = &jtv + sv.AgentArn = ptr.String(jtv) } case "CreationTime": @@ -5537,7 +5549,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAgentOutput(v **DescribeAgentOutp if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PrivateLinkConfig": @@ -5609,7 +5621,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationEfsOutput(v **DescribeLoc if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.LocationArn = &jtv + sv.LocationArn = ptr.String(jtv) } case "LocationUri": @@ -5618,7 +5630,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationEfsOutput(v **DescribeLoc if !ok { return fmt.Errorf("expected LocationUri to be of type string, got %T instead", value) } - sv.LocationUri = &jtv + sv.LocationUri = ptr.String(jtv) } default: @@ -5671,7 +5683,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationFsxWindowsOutput(v **Desc if !ok { return fmt.Errorf("expected SmbDomain to be of type string, got %T instead", value) } - sv.Domain = &jtv + sv.Domain = ptr.String(jtv) } case "LocationArn": @@ -5680,7 +5692,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationFsxWindowsOutput(v **Desc if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.LocationArn = &jtv + sv.LocationArn = ptr.String(jtv) } case "LocationUri": @@ -5689,7 +5701,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationFsxWindowsOutput(v **Desc if !ok { return fmt.Errorf("expected LocationUri to be of type string, got %T instead", value) } - sv.LocationUri = &jtv + sv.LocationUri = ptr.String(jtv) } case "SecurityGroupArns": @@ -5703,7 +5715,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationFsxWindowsOutput(v **Desc if !ok { return fmt.Errorf("expected SmbUser to be of type string, got %T instead", value) } - sv.User = &jtv + sv.User = ptr.String(jtv) } default: @@ -5756,7 +5768,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationNfsOutput(v **DescribeLoc if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.LocationArn = &jtv + sv.LocationArn = ptr.String(jtv) } case "LocationUri": @@ -5765,7 +5777,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationNfsOutput(v **DescribeLoc if !ok { return fmt.Errorf("expected LocationUri to be of type string, got %T instead", value) } - sv.LocationUri = &jtv + sv.LocationUri = ptr.String(jtv) } case "MountOptions": @@ -5815,7 +5827,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationObjectStorageOutput(v **D if !ok { return fmt.Errorf("expected ObjectStorageAccessKey to be of type string, got %T instead", value) } - sv.AccessKey = &jtv + sv.AccessKey = ptr.String(jtv) } case "AgentArns": @@ -5842,7 +5854,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationObjectStorageOutput(v **D if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.LocationArn = &jtv + sv.LocationArn = ptr.String(jtv) } case "LocationUri": @@ -5851,7 +5863,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationObjectStorageOutput(v **D if !ok { return fmt.Errorf("expected LocationUri to be of type string, got %T instead", value) } - sv.LocationUri = &jtv + sv.LocationUri = ptr.String(jtv) } case "ServerPort": @@ -5931,7 +5943,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationS3Output(v **DescribeLoca if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.LocationArn = &jtv + sv.LocationArn = ptr.String(jtv) } case "LocationUri": @@ -5940,7 +5952,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationS3Output(v **DescribeLoca if !ok { return fmt.Errorf("expected LocationUri to be of type string, got %T instead", value) } - sv.LocationUri = &jtv + sv.LocationUri = ptr.String(jtv) } case "S3Config": @@ -6012,7 +6024,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationSmbOutput(v **DescribeLoc if !ok { return fmt.Errorf("expected SmbDomain to be of type string, got %T instead", value) } - sv.Domain = &jtv + sv.Domain = ptr.String(jtv) } case "LocationArn": @@ -6021,7 +6033,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationSmbOutput(v **DescribeLoc if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.LocationArn = &jtv + sv.LocationArn = ptr.String(jtv) } case "LocationUri": @@ -6030,7 +6042,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationSmbOutput(v **DescribeLoc if !ok { return fmt.Errorf("expected LocationUri to be of type string, got %T instead", value) } - sv.LocationUri = &jtv + sv.LocationUri = ptr.String(jtv) } case "MountOptions": @@ -6044,7 +6056,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLocationSmbOutput(v **DescribeLoc if !ok { return fmt.Errorf("expected SmbUser to be of type string, got %T instead", value) } - sv.User = &jtv + sv.User = ptr.String(jtv) } default: @@ -6088,7 +6100,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskExecutionOutput(v **DescribeT if err != nil { return err } - sv.BytesTransferred = &i64 + sv.BytesTransferred = i64 } case "BytesWritten": @@ -6101,7 +6113,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskExecutionOutput(v **DescribeT if err != nil { return err } - sv.BytesWritten = &i64 + sv.BytesWritten = i64 } case "EstimatedBytesToTransfer": @@ -6114,7 +6126,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskExecutionOutput(v **DescribeT if err != nil { return err } - sv.EstimatedBytesToTransfer = &i64 + sv.EstimatedBytesToTransfer = i64 } case "EstimatedFilesToTransfer": @@ -6127,7 +6139,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskExecutionOutput(v **DescribeT if err != nil { return err } - sv.EstimatedFilesToTransfer = &i64 + sv.EstimatedFilesToTransfer = i64 } case "Excludes": @@ -6145,7 +6157,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskExecutionOutput(v **DescribeT if err != nil { return err } - sv.FilesTransferred = &i64 + sv.FilesTransferred = i64 } case "Includes": @@ -6191,7 +6203,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskExecutionOutput(v **DescribeT if !ok { return fmt.Errorf("expected TaskExecutionArn to be of type string, got %T instead", value) } - sv.TaskExecutionArn = &jtv + sv.TaskExecutionArn = ptr.String(jtv) } default: @@ -6231,7 +6243,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskOutput(v **DescribeTaskOutput if !ok { return fmt.Errorf("expected LogGroupArn to be of type string, got %T instead", value) } - sv.CloudWatchLogGroupArn = &jtv + sv.CloudWatchLogGroupArn = ptr.String(jtv) } case "CreationTime": @@ -6253,7 +6265,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskOutput(v **DescribeTaskOutput if !ok { return fmt.Errorf("expected TaskExecutionArn to be of type string, got %T instead", value) } - sv.CurrentTaskExecutionArn = &jtv + sv.CurrentTaskExecutionArn = ptr.String(jtv) } case "DestinationLocationArn": @@ -6262,7 +6274,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskOutput(v **DescribeTaskOutput if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.DestinationLocationArn = &jtv + sv.DestinationLocationArn = ptr.String(jtv) } case "DestinationNetworkInterfaceArns": @@ -6276,7 +6288,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskOutput(v **DescribeTaskOutput if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorDetail": @@ -6285,7 +6297,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskOutput(v **DescribeTaskOutput if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorDetail = &jtv + sv.ErrorDetail = ptr.String(jtv) } case "Excludes": @@ -6299,7 +6311,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskOutput(v **DescribeTaskOutput if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Options": @@ -6318,7 +6330,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskOutput(v **DescribeTaskOutput if !ok { return fmt.Errorf("expected LocationArn to be of type string, got %T instead", value) } - sv.SourceLocationArn = &jtv + sv.SourceLocationArn = ptr.String(jtv) } case "SourceNetworkInterfaceArns": @@ -6341,7 +6353,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTaskOutput(v **DescribeTaskOutput if !ok { return fmt.Errorf("expected TaskArn to be of type string, got %T instead", value) } - sv.TaskArn = &jtv + sv.TaskArn = ptr.String(jtv) } default: @@ -6386,7 +6398,7 @@ func awsAwsjson11_deserializeOpDocumentListAgentsOutput(v **ListAgentsOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6431,7 +6443,7 @@ func awsAwsjson11_deserializeOpDocumentListLocationsOutput(v **ListLocationsOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6471,7 +6483,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -6516,7 +6528,7 @@ func awsAwsjson11_deserializeOpDocumentListTaskExecutionsOutput(v **ListTaskExec if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TaskExecutions": @@ -6561,7 +6573,7 @@ func awsAwsjson11_deserializeOpDocumentListTasksOutput(v **ListTasksOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tasks": @@ -6606,7 +6618,7 @@ func awsAwsjson11_deserializeOpDocumentStartTaskExecutionOutput(v **StartTaskExe if !ok { return fmt.Errorf("expected TaskExecutionArn to be of type string, got %T instead", value) } - sv.TaskExecutionArn = &jtv + sv.TaskExecutionArn = ptr.String(jtv) } default: diff --git a/service/datasync/go.mod b/service/datasync/go.mod index fe6000bb7f9..99fd290955e 100644 --- a/service/datasync/go.mod +++ b/service/datasync/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/datasync go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/datasync/serializers.go b/service/datasync/serializers.go index 78d327f366c..3bcf8832969 100644 --- a/service/datasync/serializers.go +++ b/service/datasync/serializers.go @@ -1439,17 +1439,13 @@ func (m *awsAwsjson11_serializeOpUpdateTask) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAgentArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAgentArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1473,32 +1469,24 @@ func awsAwsjson11_serializeDocumentEc2Config(v *types.Ec2Config, value smithyjso return nil } -func awsAwsjson11_serializeDocumentEc2SecurityGroupArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEc2SecurityGroupArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentFilterList(v []*types.FilterRule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterList(v []types.FilterRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFilterRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFilterRule(&v[i], av); err != nil { return err } } @@ -1522,32 +1510,24 @@ func awsAwsjson11_serializeDocumentFilterRule(v *types.FilterRule, value smithyj return nil } -func awsAwsjson11_serializeDocumentFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentInputTagList(v []*types.TagListEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInputTagList(v []types.TagListEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTagListEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTagListEntry(&v[i], av); err != nil { return err } } @@ -1578,17 +1558,13 @@ func awsAwsjson11_serializeDocumentLocationFilter(v *types.LocationFilter, value return nil } -func awsAwsjson11_serializeDocumentLocationFilters(v []*types.LocationFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLocationFilters(v []types.LocationFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentLocationFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentLocationFilter(&v[i], av); err != nil { return err } } @@ -1693,32 +1669,24 @@ func awsAwsjson11_serializeDocumentOptions(v *types.Options, value smithyjson.Va return nil } -func awsAwsjson11_serializeDocumentPLSecurityGroupArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPLSecurityGroupArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentPLSubnetArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPLSubnetArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1747,17 +1715,13 @@ func awsAwsjson11_serializeDocumentSmbMountOptions(v *types.SmbMountOptions, val return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1803,17 +1767,13 @@ func awsAwsjson11_serializeDocumentTaskFilter(v *types.TaskFilter, value smithyj return nil } -func awsAwsjson11_serializeDocumentTaskFilters(v []*types.TaskFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTaskFilters(v []types.TaskFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTaskFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTaskFilter(&v[i], av); err != nil { return err } } diff --git a/service/datasync/types/types.go b/service/datasync/types/types.go index 08a04804063..4d0a6d15f9d 100644 --- a/service/datasync/types/types.go +++ b/service/datasync/types/types.go @@ -26,7 +26,7 @@ type Ec2Config struct { // the Amazon EC2 resource. // // This member is required. - SecurityGroupArns []*string + SecurityGroupArns []string // The ARN of the subnet and the security group that DataSync uses to access the // target EFS file system. @@ -69,7 +69,7 @@ type LocationFilter struct { // only Amazon S3 locations. // // This member is required. - Values []*string + Values []string } // Represents a single entry in a list of locations. LocationListEntry returns an @@ -128,7 +128,7 @@ type OnPremConfig struct { // ARNs of the agents to use for an NFS location. // // This member is required. - AgentArns []*string + AgentArns []string } // Represents the options that are available to control the behavior of a @@ -257,11 +257,11 @@ type PrivateLinkConfig struct { // The Amazon Resource Names (ARNs) of the security groups that are configured for // the EC2 resource that hosts an agent activated in a VPC or an agent that has // access to a VPC endpoint. - SecurityGroupArns []*string + SecurityGroupArns []string // The Amazon Resource Names (ARNs) of the subnets that are configured for an agent // activated in a VPC or an agent that has access to a VPC endpoint. - SubnetArns []*string + SubnetArns []string // The ID of the VPC endpoint that is configured for an agent. An agent that is // configured with a VPC endpoint will not be accessible over the public internet. @@ -377,7 +377,7 @@ type TaskFilter struct { // only tasks for a specific destination location. // // This member is required. - Values []*string + Values []string } // Represents a single entry in a list of tasks. TaskListEntry returns an array diff --git a/service/datasync/validators.go b/service/datasync/validators.go index a08bad1838c..f72108952fe 100644 --- a/service/datasync/validators.go +++ b/service/datasync/validators.go @@ -724,13 +724,13 @@ func validateEc2Config(v *types.Ec2Config) error { } } -func validateInputTagList(v []*types.TagListEntry) error { +func validateInputTagList(v []types.TagListEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InputTagList"} for i := range v { - if err := validateTagListEntry(v[i]); err != nil { + if err := validateTagListEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -762,13 +762,13 @@ func validateLocationFilter(v *types.LocationFilter) error { } } -func validateLocationFilters(v []*types.LocationFilter) error { +func validateLocationFilters(v []types.LocationFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LocationFilters"} for i := range v { - if err := validateLocationFilter(v[i]); err != nil { + if err := validateLocationFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -845,13 +845,13 @@ func validateTaskFilter(v *types.TaskFilter) error { } } -func validateTaskFilters(v []*types.TaskFilter) error { +func validateTaskFilters(v []types.TaskFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TaskFilters"} for i := range v { - if err := validateTaskFilter(v[i]); err != nil { + if err := validateTaskFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/dax/api_op_CreateCluster.go b/service/dax/api_op_CreateCluster.go index 24a0a389941..1892983f7f7 100644 --- a/service/dax/api_op_CreateCluster.go +++ b/service/dax/api_op_CreateCluster.go @@ -65,13 +65,13 @@ type CreateClusterInput struct { // recommends that you have at least two read replicas per cluster. // // This member is required. - ReplicationFactor *int32 + ReplicationFactor int32 // The Availability Zones (AZs) in which the cluster nodes will reside after the // cluster has been created or updated. If provided, the length of this list must // equal the ReplicationFactor parameter. If you omit this parameter, DAX will // spread the nodes across Availability Zones for the highest availability. - AvailabilityZones []*string + AvailabilityZones []string // A description of the cluster. Description *string @@ -114,7 +114,7 @@ type CreateClusterInput struct { // A list of security group IDs to be assigned to each node in the DAX cluster. // (Each of the security group ID is system-generated.) If this parameter is not // specified, DAX assigns the default VPC security group to each node. - SecurityGroupIds []*string + SecurityGroupIds []string // The name of the subnet group to be used for the replication group. DAX clusters // can only run in an Amazon VPC environment. All of the subnets that you specify @@ -122,7 +122,7 @@ type CreateClusterInput struct { SubnetGroupName *string // A set of tags to associate with the DAX cluster. - Tags []*types.Tag + Tags []types.Tag } type CreateClusterOutput struct { diff --git a/service/dax/api_op_CreateSubnetGroup.go b/service/dax/api_op_CreateSubnetGroup.go index 7d558f0c384..1bc8a2fd9fe 100644 --- a/service/dax/api_op_CreateSubnetGroup.go +++ b/service/dax/api_op_CreateSubnetGroup.go @@ -37,7 +37,7 @@ type CreateSubnetGroupInput struct { // A list of VPC subnet IDs for the subnet group. // // This member is required. - SubnetIds []*string + SubnetIds []string // A description for the subnet group Description *string diff --git a/service/dax/api_op_DecreaseReplicationFactor.go b/service/dax/api_op_DecreaseReplicationFactor.go index 8f579b46e5e..9070a7ece0e 100644 --- a/service/dax/api_op_DecreaseReplicationFactor.go +++ b/service/dax/api_op_DecreaseReplicationFactor.go @@ -39,13 +39,13 @@ type DecreaseReplicationFactorInput struct { // The new number of nodes for the DAX cluster. // // This member is required. - NewReplicationFactor *int32 + NewReplicationFactor int32 // The Availability Zone(s) from which to remove nodes. - AvailabilityZones []*string + AvailabilityZones []string // The unique identifiers of the nodes to be removed from the cluster. - NodeIdsToRemove []*string + NodeIdsToRemove []string } type DecreaseReplicationFactorOutput struct { diff --git a/service/dax/api_op_DescribeClusters.go b/service/dax/api_op_DescribeClusters.go index 0e30d56ee41..4db159a7056 100644 --- a/service/dax/api_op_DescribeClusters.go +++ b/service/dax/api_op_DescribeClusters.go @@ -40,7 +40,7 @@ func (c *Client) DescribeClusters(ctx context.Context, params *DescribeClustersI type DescribeClustersInput struct { // The names of the DAX clusters being described. - ClusterNames []*string + ClusterNames []string // The maximum number of results to include in the response. If more results exist // than the specified MaxResults value, a token is included in the response so that @@ -58,7 +58,7 @@ type DescribeClustersOutput struct { // The descriptions of your DAX clusters, in response to a DescribeClusters // request. - Clusters []*types.Cluster + Clusters []types.Cluster // Provides an identifier to allow retrieval of paginated results. NextToken *string diff --git a/service/dax/api_op_DescribeDefaultParameters.go b/service/dax/api_op_DescribeDefaultParameters.go index db8e983e0c4..dfb8727e2f8 100644 --- a/service/dax/api_op_DescribeDefaultParameters.go +++ b/service/dax/api_op_DescribeDefaultParameters.go @@ -47,7 +47,7 @@ type DescribeDefaultParametersOutput struct { NextToken *string // A list of parameters. Each element in the list represents one parameter. - Parameters []*types.Parameter + Parameters []types.Parameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dax/api_op_DescribeEvents.go b/service/dax/api_op_DescribeEvents.go index 5ec90d8f841..3bc7326c13c 100644 --- a/service/dax/api_op_DescribeEvents.go +++ b/service/dax/api_op_DescribeEvents.go @@ -68,7 +68,7 @@ type DescribeEventsInput struct { type DescribeEventsOutput struct { // An array of events. Each element in the array represents one event. - Events []*types.Event + Events []types.Event // Provides an identifier to allow retrieval of paginated results. NextToken *string diff --git a/service/dax/api_op_DescribeParameterGroups.go b/service/dax/api_op_DescribeParameterGroups.go index 956bb1513bb..72c32ec6a1f 100644 --- a/service/dax/api_op_DescribeParameterGroups.go +++ b/service/dax/api_op_DescribeParameterGroups.go @@ -42,7 +42,7 @@ type DescribeParameterGroupsInput struct { NextToken *string // The names of the parameter groups. - ParameterGroupNames []*string + ParameterGroupNames []string } type DescribeParameterGroupsOutput struct { @@ -52,7 +52,7 @@ type DescribeParameterGroupsOutput struct { // An array of parameter groups. Each element in the array represents one parameter // group. - ParameterGroups []*types.ParameterGroup + ParameterGroups []types.ParameterGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dax/api_op_DescribeParameters.go b/service/dax/api_op_DescribeParameters.go index cc27edb63fa..7dac2c08253 100644 --- a/service/dax/api_op_DescribeParameters.go +++ b/service/dax/api_op_DescribeParameters.go @@ -57,7 +57,7 @@ type DescribeParametersOutput struct { // A list of parameters within a parameter group. Each element in the list // represents one parameter. - Parameters []*types.Parameter + Parameters []types.Parameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dax/api_op_DescribeSubnetGroups.go b/service/dax/api_op_DescribeSubnetGroups.go index 3b034217938..2ac50be7ac4 100644 --- a/service/dax/api_op_DescribeSubnetGroups.go +++ b/service/dax/api_op_DescribeSubnetGroups.go @@ -42,7 +42,7 @@ type DescribeSubnetGroupsInput struct { NextToken *string // The name of the subnet group. - SubnetGroupNames []*string + SubnetGroupNames []string } type DescribeSubnetGroupsOutput struct { @@ -52,7 +52,7 @@ type DescribeSubnetGroupsOutput struct { // An array of subnet groups. Each element in the array represents a single subnet // group. - SubnetGroups []*types.SubnetGroup + SubnetGroups []types.SubnetGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dax/api_op_IncreaseReplicationFactor.go b/service/dax/api_op_IncreaseReplicationFactor.go index be7d9f562e4..b59ca7e69fc 100644 --- a/service/dax/api_op_IncreaseReplicationFactor.go +++ b/service/dax/api_op_IncreaseReplicationFactor.go @@ -37,12 +37,12 @@ type IncreaseReplicationFactorInput struct { // The new number of nodes for the DAX cluster. // // This member is required. - NewReplicationFactor *int32 + NewReplicationFactor int32 // The Availability Zones (AZs) in which the cluster nodes will be created. All // nodes belonging to the cluster are placed in these Availability Zones. Use this // parameter if you want to distribute the nodes across multiple AZs. - AvailabilityZones []*string + AvailabilityZones []string } type IncreaseReplicationFactorOutput struct { diff --git a/service/dax/api_op_ListTags.go b/service/dax/api_op_ListTags.go index c44cc4e3d5a..fc71b0cf9d6 100644 --- a/service/dax/api_op_ListTags.go +++ b/service/dax/api_op_ListTags.go @@ -48,7 +48,7 @@ type ListTagsOutput struct { NextToken *string // A list of tags currently associated with the DAX cluster. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dax/api_op_TagResource.go b/service/dax/api_op_TagResource.go index 88e946abeb9..7cc09910417 100644 --- a/service/dax/api_op_TagResource.go +++ b/service/dax/api_op_TagResource.go @@ -38,13 +38,13 @@ type TagResourceInput struct { // The tags to be assigned to the DAX resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { // The list of tags that are associated with the DAX resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dax/api_op_UntagResource.go b/service/dax/api_op_UntagResource.go index fe29b3f659f..a6129aec3b0 100644 --- a/service/dax/api_op_UntagResource.go +++ b/service/dax/api_op_UntagResource.go @@ -39,13 +39,13 @@ type UntagResourceInput struct { // tags are removed from the cluster. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { // The tag keys that have been removed from the cluster. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dax/api_op_UpdateCluster.go b/service/dax/api_op_UpdateCluster.go index d8153c6daed..3c8acd1120f 100644 --- a/service/dax/api_op_UpdateCluster.go +++ b/service/dax/api_op_UpdateCluster.go @@ -56,7 +56,7 @@ type UpdateClusterInput struct { // A list of user-specified security group IDs to be assigned to each node in the // DAX cluster. If this parameter is not specified, DAX assigns the default VPC // security group to each node. - SecurityGroupIds []*string + SecurityGroupIds []string } type UpdateClusterOutput struct { diff --git a/service/dax/api_op_UpdateParameterGroup.go b/service/dax/api_op_UpdateParameterGroup.go index a27e1bb4a96..d2691fe8d67 100644 --- a/service/dax/api_op_UpdateParameterGroup.go +++ b/service/dax/api_op_UpdateParameterGroup.go @@ -39,7 +39,7 @@ type UpdateParameterGroupInput struct { // the array represents a single parameter. // // This member is required. - ParameterNameValues []*types.ParameterNameValue + ParameterNameValues []types.ParameterNameValue } type UpdateParameterGroupOutput struct { diff --git a/service/dax/api_op_UpdateSubnetGroup.go b/service/dax/api_op_UpdateSubnetGroup.go index adc780a151a..870c6d7cae6 100644 --- a/service/dax/api_op_UpdateSubnetGroup.go +++ b/service/dax/api_op_UpdateSubnetGroup.go @@ -38,7 +38,7 @@ type UpdateSubnetGroupInput struct { Description *string // A list of subnet IDs in the subnet group. - SubnetIds []*string + SubnetIds []string } type UpdateSubnetGroupOutput struct { diff --git a/service/dax/deserializers.go b/service/dax/deserializers.go index 95d8bfe1fbb..8d7ac605184 100644 --- a/service/dax/deserializers.go +++ b/service/dax/deserializers.go @@ -3586,7 +3586,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "ClusterDiscoveryEndpoint": @@ -3600,7 +3600,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "Description": @@ -3609,7 +3609,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "IamRoleArn": @@ -3618,7 +3618,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "NodeIdsToRemove": @@ -3637,7 +3637,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodeType = &jtv + sv.NodeType = ptr.String(jtv) } case "NotificationConfiguration": @@ -3656,7 +3656,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PreferredMaintenanceWindow = &jtv + sv.PreferredMaintenanceWindow = ptr.String(jtv) } case "SecurityGroups": @@ -3675,7 +3675,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "SubnetGroup": @@ -3684,7 +3684,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SubnetGroup = &jtv + sv.SubnetGroup = ptr.String(jtv) } case "TotalNodes": @@ -3737,7 +3737,7 @@ func awsAwsjson11_deserializeDocumentClusterAlreadyExistsFault(v **types.Cluster if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3749,7 +3749,7 @@ func awsAwsjson11_deserializeDocumentClusterAlreadyExistsFault(v **types.Cluster return nil } -func awsAwsjson11_deserializeDocumentClusterList(v *[]*types.Cluster, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusterList(v *[]types.Cluster, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3762,18 +3762,20 @@ func awsAwsjson11_deserializeDocumentClusterList(v *[]*types.Cluster, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Cluster + var cv []types.Cluster if *v == nil { - cv = []*types.Cluster{} + cv = []types.Cluster{} } else { cv = *v } for _, value := range shape { - var col *types.Cluster - if err := awsAwsjson11_deserializeDocumentCluster(&col, value); err != nil { + var col types.Cluster + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCluster(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3809,7 +3811,7 @@ func awsAwsjson11_deserializeDocumentClusterNotFoundFault(v **types.ClusterNotFo if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3849,7 +3851,7 @@ func awsAwsjson11_deserializeDocumentClusterQuotaForCustomerExceededFault(v **ty if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3889,7 +3891,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "Port": @@ -3902,7 +3904,7 @@ func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -3955,7 +3957,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "SourceName": @@ -3964,7 +3966,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceName = &jtv + sv.SourceName = ptr.String(jtv) } case "SourceType": @@ -3985,7 +3987,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentEventList(v *[]*types.Event, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventList(v *[]types.Event, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3998,18 +4000,20 @@ func awsAwsjson11_deserializeDocumentEventList(v *[]*types.Event, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Event + var cv []types.Event if *v == nil { - cv = []*types.Event{} + cv = []types.Event{} } else { cv = *v } for _, value := range shape { - var col *types.Event - if err := awsAwsjson11_deserializeDocumentEvent(&col, value); err != nil { + var col types.Event + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4045,7 +4049,7 @@ func awsAwsjson11_deserializeDocumentInsufficientClusterCapacityFault(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4085,7 +4089,7 @@ func awsAwsjson11_deserializeDocumentInvalidARNFault(v **types.InvalidARNFault, if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4125,7 +4129,7 @@ func awsAwsjson11_deserializeDocumentInvalidClusterStateFault(v **types.InvalidC if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4165,7 +4169,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterCombinationException(v **ty if !ok { return fmt.Errorf("expected AwsQueryErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4205,7 +4209,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterGroupStateFault(v **types.I if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4245,7 +4249,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected AwsQueryErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4285,7 +4289,7 @@ func awsAwsjson11_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, valu if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4325,7 +4329,7 @@ func awsAwsjson11_deserializeDocumentInvalidVPCNetworkStateFault(v **types.Inval if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4365,7 +4369,7 @@ func awsAwsjson11_deserializeDocumentNode(v **types.Node, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "Endpoint": @@ -4392,7 +4396,7 @@ func awsAwsjson11_deserializeDocumentNode(v **types.Node, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodeId = &jtv + sv.NodeId = ptr.String(jtv) } case "NodeStatus": @@ -4401,7 +4405,7 @@ func awsAwsjson11_deserializeDocumentNode(v **types.Node, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodeStatus = &jtv + sv.NodeStatus = ptr.String(jtv) } case "ParameterGroupStatus": @@ -4410,7 +4414,7 @@ func awsAwsjson11_deserializeDocumentNode(v **types.Node, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParameterGroupStatus = &jtv + sv.ParameterGroupStatus = ptr.String(jtv) } default: @@ -4422,7 +4426,7 @@ func awsAwsjson11_deserializeDocumentNode(v **types.Node, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentNodeIdentifierList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentNodeIdentifierList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4435,21 +4439,21 @@ func awsAwsjson11_deserializeDocumentNodeIdentifierList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -4458,7 +4462,7 @@ func awsAwsjson11_deserializeDocumentNodeIdentifierList(v *[]*string, value inte return nil } -func awsAwsjson11_deserializeDocumentNodeList(v *[]*types.Node, value interface{}) error { +func awsAwsjson11_deserializeDocumentNodeList(v *[]types.Node, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4471,18 +4475,20 @@ func awsAwsjson11_deserializeDocumentNodeList(v *[]*types.Node, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Node + var cv []types.Node if *v == nil { - cv = []*types.Node{} + cv = []types.Node{} } else { cv = *v } for _, value := range shape { - var col *types.Node - if err := awsAwsjson11_deserializeDocumentNode(&col, value); err != nil { + var col types.Node + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNode(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4518,7 +4524,7 @@ func awsAwsjson11_deserializeDocumentNodeNotFoundFault(v **types.NodeNotFoundFau if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4558,7 +4564,7 @@ func awsAwsjson11_deserializeDocumentNodeQuotaForClusterExceededFault(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4598,7 +4604,7 @@ func awsAwsjson11_deserializeDocumentNodeQuotaForCustomerExceededFault(v **types if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4638,7 +4644,7 @@ func awsAwsjson11_deserializeDocumentNodeTypeSpecificValue(v **types.NodeTypeSpe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodeType = &jtv + sv.NodeType = ptr.String(jtv) } case "Value": @@ -4647,7 +4653,7 @@ func awsAwsjson11_deserializeDocumentNodeTypeSpecificValue(v **types.NodeTypeSpe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4659,7 +4665,7 @@ func awsAwsjson11_deserializeDocumentNodeTypeSpecificValue(v **types.NodeTypeSpe return nil } -func awsAwsjson11_deserializeDocumentNodeTypeSpecificValueList(v *[]*types.NodeTypeSpecificValue, value interface{}) error { +func awsAwsjson11_deserializeDocumentNodeTypeSpecificValueList(v *[]types.NodeTypeSpecificValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4672,18 +4678,20 @@ func awsAwsjson11_deserializeDocumentNodeTypeSpecificValueList(v *[]*types.NodeT return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NodeTypeSpecificValue + var cv []types.NodeTypeSpecificValue if *v == nil { - cv = []*types.NodeTypeSpecificValue{} + cv = []types.NodeTypeSpecificValue{} } else { cv = *v } for _, value := range shape { - var col *types.NodeTypeSpecificValue - if err := awsAwsjson11_deserializeDocumentNodeTypeSpecificValue(&col, value); err != nil { + var col types.NodeTypeSpecificValue + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNodeTypeSpecificValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4719,7 +4727,7 @@ func awsAwsjson11_deserializeDocumentNotificationConfiguration(v **types.Notific if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TopicArn = &jtv + sv.TopicArn = ptr.String(jtv) } case "TopicStatus": @@ -4728,7 +4736,7 @@ func awsAwsjson11_deserializeDocumentNotificationConfiguration(v **types.Notific if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TopicStatus = &jtv + sv.TopicStatus = ptr.String(jtv) } default: @@ -4768,7 +4776,7 @@ func awsAwsjson11_deserializeDocumentParameter(v **types.Parameter, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AllowedValues = &jtv + sv.AllowedValues = ptr.String(jtv) } case "ChangeType": @@ -4786,7 +4794,7 @@ func awsAwsjson11_deserializeDocumentParameter(v **types.Parameter, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataType = &jtv + sv.DataType = ptr.String(jtv) } case "Description": @@ -4795,7 +4803,7 @@ func awsAwsjson11_deserializeDocumentParameter(v **types.Parameter, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "IsModifiable": @@ -4818,7 +4826,7 @@ func awsAwsjson11_deserializeDocumentParameter(v **types.Parameter, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParameterName = &jtv + sv.ParameterName = ptr.String(jtv) } case "ParameterType": @@ -4836,7 +4844,7 @@ func awsAwsjson11_deserializeDocumentParameter(v **types.Parameter, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParameterValue = &jtv + sv.ParameterValue = ptr.String(jtv) } case "Source": @@ -4845,7 +4853,7 @@ func awsAwsjson11_deserializeDocumentParameter(v **types.Parameter, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Source = &jtv + sv.Source = ptr.String(jtv) } default: @@ -4885,7 +4893,7 @@ func awsAwsjson11_deserializeDocumentParameterGroup(v **types.ParameterGroup, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ParameterGroupName": @@ -4894,7 +4902,7 @@ func awsAwsjson11_deserializeDocumentParameterGroup(v **types.ParameterGroup, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParameterGroupName = &jtv + sv.ParameterGroupName = ptr.String(jtv) } default: @@ -4934,7 +4942,7 @@ func awsAwsjson11_deserializeDocumentParameterGroupAlreadyExistsFault(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4946,7 +4954,7 @@ func awsAwsjson11_deserializeDocumentParameterGroupAlreadyExistsFault(v **types. return nil } -func awsAwsjson11_deserializeDocumentParameterGroupList(v *[]*types.ParameterGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterGroupList(v *[]types.ParameterGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4959,18 +4967,20 @@ func awsAwsjson11_deserializeDocumentParameterGroupList(v *[]*types.ParameterGro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ParameterGroup + var cv []types.ParameterGroup if *v == nil { - cv = []*types.ParameterGroup{} + cv = []types.ParameterGroup{} } else { cv = *v } for _, value := range shape { - var col *types.ParameterGroup - if err := awsAwsjson11_deserializeDocumentParameterGroup(&col, value); err != nil { + var col types.ParameterGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParameterGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5006,7 +5016,7 @@ func awsAwsjson11_deserializeDocumentParameterGroupNotFoundFault(v **types.Param if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5046,7 +5056,7 @@ func awsAwsjson11_deserializeDocumentParameterGroupQuotaExceededFault(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5091,7 +5101,7 @@ func awsAwsjson11_deserializeDocumentParameterGroupStatus(v **types.ParameterGro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParameterApplyStatus = &jtv + sv.ParameterApplyStatus = ptr.String(jtv) } case "ParameterGroupName": @@ -5100,7 +5110,7 @@ func awsAwsjson11_deserializeDocumentParameterGroupStatus(v **types.ParameterGro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParameterGroupName = &jtv + sv.ParameterGroupName = ptr.String(jtv) } default: @@ -5112,7 +5122,7 @@ func awsAwsjson11_deserializeDocumentParameterGroupStatus(v **types.ParameterGro return nil } -func awsAwsjson11_deserializeDocumentParameterList(v *[]*types.Parameter, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterList(v *[]types.Parameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5125,18 +5135,20 @@ func awsAwsjson11_deserializeDocumentParameterList(v *[]*types.Parameter, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Parameter + var cv []types.Parameter if *v == nil { - cv = []*types.Parameter{} + cv = []types.Parameter{} } else { cv = *v } for _, value := range shape { - var col *types.Parameter - if err := awsAwsjson11_deserializeDocumentParameter(&col, value); err != nil { + var col types.Parameter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParameter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5172,7 +5184,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroupMembership(v **types.SecurityG if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SecurityGroupIdentifier = &jtv + sv.SecurityGroupIdentifier = ptr.String(jtv) } case "Status": @@ -5181,7 +5193,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroupMembership(v **types.SecurityG if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -5193,7 +5205,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroupMembership(v **types.SecurityG return nil } -func awsAwsjson11_deserializeDocumentSecurityGroupMembershipList(v *[]*types.SecurityGroupMembership, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityGroupMembershipList(v *[]types.SecurityGroupMembership, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5206,18 +5218,20 @@ func awsAwsjson11_deserializeDocumentSecurityGroupMembershipList(v *[]*types.Sec return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SecurityGroupMembership + var cv []types.SecurityGroupMembership if *v == nil { - cv = []*types.SecurityGroupMembership{} + cv = []types.SecurityGroupMembership{} } else { cv = *v } for _, value := range shape { - var col *types.SecurityGroupMembership - if err := awsAwsjson11_deserializeDocumentSecurityGroupMembership(&col, value); err != nil { + var col types.SecurityGroupMembership + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSecurityGroupMembership(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5253,7 +5267,7 @@ func awsAwsjson11_deserializeDocumentServiceLinkedRoleNotFoundFault(v **types.Se if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5333,7 +5347,7 @@ func awsAwsjson11_deserializeDocumentSubnet(v **types.Subnet, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SubnetAvailabilityZone = &jtv + sv.SubnetAvailabilityZone = ptr.String(jtv) } case "SubnetIdentifier": @@ -5342,7 +5356,7 @@ func awsAwsjson11_deserializeDocumentSubnet(v **types.Subnet, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SubnetIdentifier = &jtv + sv.SubnetIdentifier = ptr.String(jtv) } default: @@ -5382,7 +5396,7 @@ func awsAwsjson11_deserializeDocumentSubnetGroup(v **types.SubnetGroup, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "SubnetGroupName": @@ -5391,7 +5405,7 @@ func awsAwsjson11_deserializeDocumentSubnetGroup(v **types.SubnetGroup, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SubnetGroupName = &jtv + sv.SubnetGroupName = ptr.String(jtv) } case "Subnets": @@ -5405,7 +5419,7 @@ func awsAwsjson11_deserializeDocumentSubnetGroup(v **types.SubnetGroup, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -5445,7 +5459,7 @@ func awsAwsjson11_deserializeDocumentSubnetGroupAlreadyExistsFault(v **types.Sub if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5485,7 +5499,7 @@ func awsAwsjson11_deserializeDocumentSubnetGroupInUseFault(v **types.SubnetGroup if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5497,7 +5511,7 @@ func awsAwsjson11_deserializeDocumentSubnetGroupInUseFault(v **types.SubnetGroup return nil } -func awsAwsjson11_deserializeDocumentSubnetGroupList(v *[]*types.SubnetGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnetGroupList(v *[]types.SubnetGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5510,18 +5524,20 @@ func awsAwsjson11_deserializeDocumentSubnetGroupList(v *[]*types.SubnetGroup, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SubnetGroup + var cv []types.SubnetGroup if *v == nil { - cv = []*types.SubnetGroup{} + cv = []types.SubnetGroup{} } else { cv = *v } for _, value := range shape { - var col *types.SubnetGroup - if err := awsAwsjson11_deserializeDocumentSubnetGroup(&col, value); err != nil { + var col types.SubnetGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubnetGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5557,7 +5573,7 @@ func awsAwsjson11_deserializeDocumentSubnetGroupNotFoundFault(v **types.SubnetGr if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5597,7 +5613,7 @@ func awsAwsjson11_deserializeDocumentSubnetGroupQuotaExceededFault(v **types.Sub if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5637,7 +5653,7 @@ func awsAwsjson11_deserializeDocumentSubnetInUse(v **types.SubnetInUse, value in if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5649,7 +5665,7 @@ func awsAwsjson11_deserializeDocumentSubnetInUse(v **types.SubnetInUse, value in return nil } -func awsAwsjson11_deserializeDocumentSubnetList(v *[]*types.Subnet, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnetList(v *[]types.Subnet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5662,18 +5678,20 @@ func awsAwsjson11_deserializeDocumentSubnetList(v *[]*types.Subnet, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Subnet + var cv []types.Subnet if *v == nil { - cv = []*types.Subnet{} + cv = []types.Subnet{} } else { cv = *v } for _, value := range shape { - var col *types.Subnet - if err := awsAwsjson11_deserializeDocumentSubnet(&col, value); err != nil { + var col types.Subnet + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubnet(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5709,7 +5727,7 @@ func awsAwsjson11_deserializeDocumentSubnetQuotaExceededFault(v **types.SubnetQu if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5749,7 +5767,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -5758,7 +5776,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5770,7 +5788,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5783,18 +5801,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5830,7 +5850,7 @@ func awsAwsjson11_deserializeDocumentTagNotFoundFault(v **types.TagNotFoundFault if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5870,7 +5890,7 @@ func awsAwsjson11_deserializeDocumentTagQuotaPerResourceExceeded(v **types.TagQu if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6090,7 +6110,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteParameterGroupOutput(v **DeletePara if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeletionMessage = &jtv + sv.DeletionMessage = ptr.String(jtv) } default: @@ -6130,7 +6150,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteSubnetGroupOutput(v **DeleteSubnetG if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeletionMessage = &jtv + sv.DeletionMessage = ptr.String(jtv) } default: @@ -6175,7 +6195,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeClustersOutput(v **DescribeCluste if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6215,7 +6235,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDefaultParametersOutput(v **Descr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Parameters": @@ -6265,7 +6285,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventsOutput(v **DescribeEventsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6305,7 +6325,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeParameterGroupsOutput(v **Describ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ParameterGroups": @@ -6350,7 +6370,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeParametersOutput(v **DescribePara if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Parameters": @@ -6395,7 +6415,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSubnetGroupsOutput(v **DescribeSu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SubnetGroups": @@ -6476,7 +6496,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsOutput(v **ListTagsOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": diff --git a/service/dax/go.mod b/service/dax/go.mod index 287a9d009c0..94bee47c1f9 100644 --- a/service/dax/go.mod +++ b/service/dax/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/dax go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/dax/serializers.go b/service/dax/serializers.go index a4c459bc9be..38d3bde6163 100644 --- a/service/dax/serializers.go +++ b/service/dax/serializers.go @@ -980,77 +980,57 @@ func (m *awsAwsjson11_serializeOpUpdateSubnetGroup) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAvailabilityZoneList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAvailabilityZoneList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentClusterNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentClusterNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentNodeIdentifierList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNodeIdentifierList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentParameterGroupNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParameterGroupNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1072,34 +1052,26 @@ func awsAwsjson11_serializeDocumentParameterNameValue(v *types.ParameterNameValu return nil } -func awsAwsjson11_serializeDocumentParameterNameValueList(v []*types.ParameterNameValue, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParameterNameValueList(v []types.ParameterNameValue, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentParameterNameValue(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentParameterNameValue(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentSecurityGroupIdentifierList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecurityGroupIdentifierList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1116,32 +1088,24 @@ func awsAwsjson11_serializeDocumentSSESpecification(v *types.SSESpecification, v return nil } -func awsAwsjson11_serializeDocumentSubnetGroupNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnetGroupNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentSubnetIdentifierList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnetIdentifierList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1163,17 +1127,13 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -1226,9 +1186,9 @@ func awsAwsjson11_serializeOpDocumentCreateClusterInput(v *CreateClusterInput, v ok.String(*v.PreferredMaintenanceWindow) } - if v.ReplicationFactor != nil { + if v.ReplicationFactor != 0 { ok := object.Key("ReplicationFactor") - ok.Integer(*v.ReplicationFactor) + ok.Integer(v.ReplicationFactor) } if v.SecurityGroupIds != nil { @@ -1317,9 +1277,9 @@ func awsAwsjson11_serializeOpDocumentDecreaseReplicationFactorInput(v *DecreaseR ok.String(*v.ClusterName) } - if v.NewReplicationFactor != nil { + if v.NewReplicationFactor != 0 { ok := object.Key("NewReplicationFactor") - ok.Integer(*v.NewReplicationFactor) + ok.Integer(v.NewReplicationFactor) } if v.NodeIdsToRemove != nil { @@ -1542,9 +1502,9 @@ func awsAwsjson11_serializeOpDocumentIncreaseReplicationFactorInput(v *IncreaseR ok.String(*v.ClusterName) } - if v.NewReplicationFactor != nil { + if v.NewReplicationFactor != 0 { ok := object.Key("NewReplicationFactor") - ok.Integer(*v.NewReplicationFactor) + ok.Integer(v.NewReplicationFactor) } return nil diff --git a/service/dax/types/types.go b/service/dax/types/types.go index 8adbc84a40a..25af3845718 100644 --- a/service/dax/types/types.go +++ b/service/dax/types/types.go @@ -34,14 +34,14 @@ type Cluster struct { IamRoleArn *string // A list of nodes to be removed from the cluster. - NodeIdsToRemove []*string + NodeIdsToRemove []string // The node type for the nodes in the cluster. (All nodes in a DAX cluster are of // the same type.) NodeType *string // A list of nodes that are currently in the cluster. - Nodes []*Node + Nodes []Node // Describes a notification topic and its status. Notification topics are used for // publishing DAX events to subscribers using Amazon Simple Notification Service @@ -61,7 +61,7 @@ type Cluster struct { SSEDescription *SSEDescription // A list of security groups, and the status of each, for the nodes in the cluster. - SecurityGroups []*SecurityGroupMembership + SecurityGroups []SecurityGroupMembership // The current status of the cluster. Status *string @@ -82,7 +82,7 @@ type Endpoint struct { Address *string // The port number that applications should use to connect to the endpoint. - Port *int32 + Port int32 } // Represents a single occurrence of something interesting within the system. Some @@ -174,7 +174,7 @@ type Parameter struct { IsModifiable IsModifiable // A list of node types, and specific parameter values for each node. - NodeTypeSpecificValues []*NodeTypeSpecificValue + NodeTypeSpecificValues []NodeTypeSpecificValue // The name of the parameter. ParameterName *string @@ -205,7 +205,7 @@ type ParameterGroup struct { type ParameterGroupStatus struct { // The node IDs of one or more nodes to be rebooted. - NodeIdsToReboot []*string + NodeIdsToReboot []string // The status of parameter updates. ParameterApplyStatus *string @@ -289,7 +289,7 @@ type SubnetGroup struct { SubnetGroupName *string // A list of subnets associated with the subnet group. - Subnets []*Subnet + Subnets []Subnet // The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group. VpcId *string diff --git a/service/dax/validators.go b/service/dax/validators.go index 818515a5898..cb2bfa33cbb 100644 --- a/service/dax/validators.go +++ b/service/dax/validators.go @@ -425,9 +425,6 @@ func validateOpCreateClusterInput(v *CreateClusterInput) error { invalidParams.AddNested("SSESpecification", err.(smithy.InvalidParamsError)) } } - if v.ReplicationFactor == nil { - invalidParams.Add(smithy.NewErrParamRequired("ReplicationFactor")) - } if v.IamRoleArn == nil { invalidParams.Add(smithy.NewErrParamRequired("IamRoleArn")) } @@ -476,9 +473,6 @@ func validateOpDecreaseReplicationFactorInput(v *DecreaseReplicationFactorInput) return nil } invalidParams := smithy.InvalidParamsError{Context: "DecreaseReplicationFactorInput"} - if v.NewReplicationFactor == nil { - invalidParams.Add(smithy.NewErrParamRequired("NewReplicationFactor")) - } if v.ClusterName == nil { invalidParams.Add(smithy.NewErrParamRequired("ClusterName")) } @@ -557,9 +551,6 @@ func validateOpIncreaseReplicationFactorInput(v *IncreaseReplicationFactorInput) if v.ClusterName == nil { invalidParams.Add(smithy.NewErrParamRequired("ClusterName")) } - if v.NewReplicationFactor == nil { - invalidParams.Add(smithy.NewErrParamRequired("NewReplicationFactor")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/detective/api_op_CreateMembers.go b/service/detective/api_op_CreateMembers.go index 14516c74f0e..67a8834e731 100644 --- a/service/detective/api_op_CreateMembers.go +++ b/service/detective/api_op_CreateMembers.go @@ -48,7 +48,7 @@ type CreateMembersInput struct { // identifier and the AWS account root user email address. // // This member is required. - Accounts []*types.Account + Accounts []types.Account // The ARN of the behavior graph to invite the member accounts to contribute their // data to. @@ -66,13 +66,13 @@ type CreateMembersOutput struct { // The set of member account invitation requests that Detective was able to // process. This includes accounts that are being verified, that failed // verification, and that passed verification and are being sent an invitation. - Members []*types.MemberDetail + Members []types.MemberDetail // The list of accounts for which Detective was unable to process the invitation // request. For each account, the list provides the reason why the request could // not be processed. The list includes accounts that are already member accounts in // the behavior graph. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/detective/api_op_DeleteMembers.go b/service/detective/api_op_DeleteMembers.go index 4c3685a968c..e09d33a6536 100644 --- a/service/detective/api_op_DeleteMembers.go +++ b/service/detective/api_op_DeleteMembers.go @@ -36,7 +36,7 @@ type DeleteMembersInput struct { // behavior graph. // // This member is required. - AccountIds []*string + AccountIds []string // The ARN of the behavior graph to delete members from. // @@ -48,12 +48,12 @@ type DeleteMembersOutput struct { // The list of AWS account identifiers for the member accounts that Detective // successfully deleted from the behavior graph. - AccountIds []*string + AccountIds []string // The list of member accounts that Detective was not able to delete from the // behavior graph. For each member account, provides the reason that the deletion // could not be processed. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/detective/api_op_GetMembers.go b/service/detective/api_op_GetMembers.go index 9a246b68173..f4f53c3ef65 100644 --- a/service/detective/api_op_GetMembers.go +++ b/service/detective/api_op_GetMembers.go @@ -35,7 +35,7 @@ type GetMembersInput struct { // accounts that were removed from the behavior graph. // // This member is required. - AccountIds []*string + AccountIds []string // The ARN of the behavior graph for which to request the member details. // @@ -47,12 +47,12 @@ type GetMembersOutput struct { // The member account details that Detective is returning in response to the // request. - MemberDetails []*types.MemberDetail + MemberDetails []types.MemberDetail // The requested member accounts for which Detective was unable to return member // details. For each account, provides the reason why the request could not be // processed. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/detective/api_op_ListGraphs.go b/service/detective/api_op_ListGraphs.go index 210f03d013c..389f000119f 100644 --- a/service/detective/api_op_ListGraphs.go +++ b/service/detective/api_op_ListGraphs.go @@ -45,7 +45,7 @@ type ListGraphsInput struct { type ListGraphsOutput struct { // A list of behavior graphs that the account is a master for. - GraphList []*types.Graph + GraphList []types.Graph // If there are more behavior graphs remaining in the results, then this is the // pagination token to use to request the next page of behavior graphs. diff --git a/service/detective/api_op_ListInvitations.go b/service/detective/api_op_ListInvitations.go index 9b3a66bbcc3..b798f55271e 100644 --- a/service/detective/api_op_ListInvitations.go +++ b/service/detective/api_op_ListInvitations.go @@ -49,7 +49,7 @@ type ListInvitationsOutput struct { // The list of behavior graphs for which the member account has open or accepted // invitations. - Invitations []*types.MemberDetail + Invitations []types.MemberDetail // If there are more behavior graphs remaining in the results, then this is the // pagination token to use to request the next page of behavior graphs. diff --git a/service/detective/api_op_ListMembers.go b/service/detective/api_op_ListMembers.go index b0d7732c27f..d2f490c87c1 100644 --- a/service/detective/api_op_ListMembers.go +++ b/service/detective/api_op_ListMembers.go @@ -52,7 +52,7 @@ type ListMembersOutput struct { // accounts that did not pass verification and member accounts that have not yet // accepted the invitation to the behavior graph. The results do not include member // accounts that were removed from the behavior graph. - MemberDetails []*types.MemberDetail + MemberDetails []types.MemberDetail // If there are more member accounts remaining in the results, then this is the // pagination token to use to request the next page of member accounts. diff --git a/service/detective/deserializers.go b/service/detective/deserializers.go index a1cd5029ca0..e9afecfdce9 100644 --- a/service/detective/deserializers.go +++ b/service/detective/deserializers.go @@ -256,7 +256,7 @@ func awsRestjson1_deserializeOpDocumentCreateGraphOutput(v **CreateGraphOutput, if !ok { return fmt.Errorf("expected GraphArn to be of type string, got %T instead", value) } - sv.GraphArn = &jtv + sv.GraphArn = ptr.String(jtv) } default: @@ -1076,7 +1076,7 @@ func awsRestjson1_deserializeOpDocumentListGraphsOutput(v **ListGraphsOutput, va if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1235,7 +1235,7 @@ func awsRestjson1_deserializeOpDocumentListInvitationsOutput(v **ListInvitations if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1397,7 +1397,7 @@ func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1776,7 +1776,7 @@ func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Respo return output } -func awsRestjson1_deserializeDocumentAccountIdList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAccountIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1789,21 +1789,21 @@ func awsRestjson1_deserializeDocumentAccountIdList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1840,7 +1840,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1880,7 +1880,7 @@ func awsRestjson1_deserializeDocumentGraph(v **types.Graph, value interface{}) e if !ok { return fmt.Errorf("expected GraphArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -1905,7 +1905,7 @@ func awsRestjson1_deserializeDocumentGraph(v **types.Graph, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentGraphList(v *[]*types.Graph, value interface{}) error { +func awsRestjson1_deserializeDocumentGraphList(v *[]types.Graph, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1918,18 +1918,20 @@ func awsRestjson1_deserializeDocumentGraphList(v *[]*types.Graph, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Graph + var cv []types.Graph if *v == nil { - cv = []*types.Graph{} + cv = []types.Graph{} } else { cv = *v } for _, value := range shape { - var col *types.Graph - if err := awsRestjson1_deserializeDocumentGraph(&col, value); err != nil { + var col types.Graph + destAddr := &col + if err := awsRestjson1_deserializeDocumentGraph(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1965,7 +1967,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2005,7 +2007,7 @@ func awsRestjson1_deserializeDocumentMemberDetail(v **types.MemberDetail, value if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "DisabledReason": @@ -2023,7 +2025,7 @@ func awsRestjson1_deserializeDocumentMemberDetail(v **types.MemberDetail, value if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "GraphArn": @@ -2032,7 +2034,7 @@ func awsRestjson1_deserializeDocumentMemberDetail(v **types.MemberDetail, value if !ok { return fmt.Errorf("expected GraphArn to be of type string, got %T instead", value) } - sv.GraphArn = &jtv + sv.GraphArn = ptr.String(jtv) } case "InvitedTime": @@ -2054,7 +2056,7 @@ func awsRestjson1_deserializeDocumentMemberDetail(v **types.MemberDetail, value if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.MasterId = &jtv + sv.MasterId = ptr.String(jtv) } case "PercentOfGraphUtilization": @@ -2067,7 +2069,7 @@ func awsRestjson1_deserializeDocumentMemberDetail(v **types.MemberDetail, value if err != nil { return err } - sv.PercentOfGraphUtilization = &f64 + sv.PercentOfGraphUtilization = ptr.Float64(f64) } case "PercentOfGraphUtilizationUpdatedTime": @@ -2114,7 +2116,7 @@ func awsRestjson1_deserializeDocumentMemberDetail(v **types.MemberDetail, value return nil } -func awsRestjson1_deserializeDocumentMemberDetailList(v *[]*types.MemberDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentMemberDetailList(v *[]types.MemberDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2127,18 +2129,20 @@ func awsRestjson1_deserializeDocumentMemberDetailList(v *[]*types.MemberDetail, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MemberDetail + var cv []types.MemberDetail if *v == nil { - cv = []*types.MemberDetail{} + cv = []types.MemberDetail{} } else { cv = *v } for _, value := range shape { - var col *types.MemberDetail - if err := awsRestjson1_deserializeDocumentMemberDetail(&col, value); err != nil { + var col types.MemberDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentMemberDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2174,7 +2178,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2214,7 +2218,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2254,7 +2258,7 @@ func awsRestjson1_deserializeDocumentUnprocessedAccount(v **types.UnprocessedAcc if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "Reason": @@ -2263,7 +2267,7 @@ func awsRestjson1_deserializeDocumentUnprocessedAccount(v **types.UnprocessedAcc if !ok { return fmt.Errorf("expected UnprocessedReason to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } default: @@ -2275,7 +2279,7 @@ func awsRestjson1_deserializeDocumentUnprocessedAccount(v **types.UnprocessedAcc return nil } -func awsRestjson1_deserializeDocumentUnprocessedAccountList(v *[]*types.UnprocessedAccount, value interface{}) error { +func awsRestjson1_deserializeDocumentUnprocessedAccountList(v *[]types.UnprocessedAccount, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2288,18 +2292,20 @@ func awsRestjson1_deserializeDocumentUnprocessedAccountList(v *[]*types.Unproces return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UnprocessedAccount + var cv []types.UnprocessedAccount if *v == nil { - cv = []*types.UnprocessedAccount{} + cv = []types.UnprocessedAccount{} } else { cv = *v } for _, value := range shape { - var col *types.UnprocessedAccount - if err := awsRestjson1_deserializeDocumentUnprocessedAccount(&col, value); err != nil { + var col types.UnprocessedAccount + destAddr := &col + if err := awsRestjson1_deserializeDocumentUnprocessedAccount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2335,7 +2341,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/detective/go.mod b/service/detective/go.mod index 3dc4e4c9997..e2c164232f1 100644 --- a/service/detective/go.mod +++ b/service/detective/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/detective go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/detective/serializers.go b/service/detective/serializers.go index 5adf4d3bb2b..85cd459586e 100644 --- a/service/detective/serializers.go +++ b/service/detective/serializers.go @@ -935,32 +935,24 @@ func awsRestjson1_serializeDocumentAccount(v *types.Account, value smithyjson.Va return nil } -func awsRestjson1_serializeDocumentAccountIdList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAccountIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentAccountList(v []*types.Account, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAccountList(v []types.Account, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAccount(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAccount(&v[i], av); err != nil { return err } } diff --git a/service/detective/validators.go b/service/detective/validators.go index 385b9365bdd..fa79eb870c9 100644 --- a/service/detective/validators.go +++ b/service/detective/validators.go @@ -244,13 +244,13 @@ func validateAccount(v *types.Account) error { } } -func validateAccountList(v []*types.Account) error { +func validateAccountList(v []types.Account) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AccountList"} for i := range v { - if err := validateAccount(v[i]); err != nil { + if err := validateAccount(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/devicefarm/api_op_CreateDevicePool.go b/service/devicefarm/api_op_CreateDevicePool.go index df49e54e653..514dd822ce7 100644 --- a/service/devicefarm/api_op_CreateDevicePool.go +++ b/service/devicefarm/api_op_CreateDevicePool.go @@ -43,7 +43,7 @@ type CreateDevicePoolInput struct { // The device pool's rules. // // This member is required. - Rules []*types.Rule + Rules []types.Rule // The device pool's description. Description *string diff --git a/service/devicefarm/api_op_CreateInstanceProfile.go b/service/devicefarm/api_op_CreateInstanceProfile.go index 3545b62dabb..a893af7103f 100644 --- a/service/devicefarm/api_op_CreateInstanceProfile.go +++ b/service/devicefarm/api_op_CreateInstanceProfile.go @@ -41,7 +41,7 @@ type CreateInstanceProfileInput struct { // An array of strings that specifies the list of app packages that should not be // cleaned up from the device after a test run. The list of packages is considered // only if you set packageCleanup to true. - ExcludeAppPackagesFromCleanup []*string + ExcludeAppPackagesFromCleanup []string // When set to true, Device Farm removes app packages after a test run. The default // value is false for private devices. diff --git a/service/devicefarm/api_op_CreateNetworkProfile.go b/service/devicefarm/api_op_CreateNetworkProfile.go index c595023341d..64e29e205af 100644 --- a/service/devicefarm/api_op_CreateNetworkProfile.go +++ b/service/devicefarm/api_op_CreateNetworkProfile.go @@ -55,7 +55,7 @@ type CreateNetworkProfileInput struct { DownlinkJitterMs *int64 // Proportion of received packets that fail to arrive from 0 to 100 percent. - DownlinkLossPercent *int32 + DownlinkLossPercent int32 // The type of network profile to create. Valid values are listed here. Type types.NetworkProfileType @@ -72,7 +72,7 @@ type CreateNetworkProfileInput struct { UplinkJitterMs *int64 // Proportion of transmitted packets that fail to arrive from 0 to 100 percent. - UplinkLossPercent *int32 + UplinkLossPercent int32 } type CreateNetworkProfileOutput struct { diff --git a/service/devicefarm/api_op_GetDevicePoolCompatibility.go b/service/devicefarm/api_op_GetDevicePoolCompatibility.go index 5313c938ac4..9aaba7e44dd 100644 --- a/service/devicefarm/api_op_GetDevicePoolCompatibility.go +++ b/service/devicefarm/api_op_GetDevicePoolCompatibility.go @@ -95,10 +95,10 @@ type GetDevicePoolCompatibilityInput struct { type GetDevicePoolCompatibilityOutput struct { // Information about compatible devices. - CompatibleDevices []*types.DevicePoolCompatibilityResult + CompatibleDevices []types.DevicePoolCompatibilityResult // Information about incompatible devices. - IncompatibleDevices []*types.DevicePoolCompatibilityResult + IncompatibleDevices []types.DevicePoolCompatibilityResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_GetOfferingStatus.go b/service/devicefarm/api_op_GetOfferingStatus.go index 256c8977e66..5bedb4ebdd0 100644 --- a/service/devicefarm/api_op_GetOfferingStatus.go +++ b/service/devicefarm/api_op_GetOfferingStatus.go @@ -45,10 +45,10 @@ type GetOfferingStatusInput struct { type GetOfferingStatusOutput struct { // When specified, gets the offering status for the current period. - Current map[string]*types.OfferingStatus + Current map[string]types.OfferingStatus // When specified, gets the offering status for the next period. - NextPeriod map[string]*types.OfferingStatus + NextPeriod map[string]types.OfferingStatus // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. diff --git a/service/devicefarm/api_op_ListArtifacts.go b/service/devicefarm/api_op_ListArtifacts.go index 1f5b28a8fbb..8b3d9707c97 100644 --- a/service/devicefarm/api_op_ListArtifacts.go +++ b/service/devicefarm/api_op_ListArtifacts.go @@ -55,7 +55,7 @@ type ListArtifactsInput struct { type ListArtifactsOutput struct { // Information about the artifacts. - Artifacts []*types.Artifact + Artifacts []types.Artifact // If the number of items that are returned is significantly large, this is an // identifier that is also returned. It can be used in a subsequent call to this diff --git a/service/devicefarm/api_op_ListDeviceInstances.go b/service/devicefarm/api_op_ListDeviceInstances.go index 6c9ac80f7b9..7484a1590a4 100644 --- a/service/devicefarm/api_op_ListDeviceInstances.go +++ b/service/devicefarm/api_op_ListDeviceInstances.go @@ -42,7 +42,7 @@ type ListDeviceInstancesInput struct { type ListDeviceInstancesOutput struct { // An object that contains information about your device instances. - DeviceInstances []*types.DeviceInstance + DeviceInstances []types.DeviceInstance // An identifier that can be used in the next call to this operation to return the // next set of items in the list. diff --git a/service/devicefarm/api_op_ListDevicePools.go b/service/devicefarm/api_op_ListDevicePools.go index d1bd383da55..8ec8e8cb5a2 100644 --- a/service/devicefarm/api_op_ListDevicePools.go +++ b/service/devicefarm/api_op_ListDevicePools.go @@ -53,7 +53,7 @@ type ListDevicePoolsInput struct { type ListDevicePoolsOutput struct { // Information about the device pools. - DevicePools []*types.DevicePool + DevicePools []types.DevicePool // If the number of items that are returned is significantly large, this is an // identifier that is also returned. It can be used in a subsequent call to this diff --git a/service/devicefarm/api_op_ListDevices.go b/service/devicefarm/api_op_ListDevices.go index b75fb042b63..7bbf1722027 100644 --- a/service/devicefarm/api_op_ListDevices.go +++ b/service/devicefarm/api_op_ListDevices.go @@ -106,7 +106,7 @@ type ListDevicesInput struct { // // * In a request, the AVAILABILITY attribute takes the following values: // AVAILABLE, HIGHLY_AVAILABLE, BUSY, or TEMPORARY_NOT_AVAILABLE. - Filters []*types.DeviceFilter + Filters []types.DeviceFilter // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. @@ -117,7 +117,7 @@ type ListDevicesInput struct { type ListDevicesOutput struct { // Information about the devices. - Devices []*types.Device + Devices []types.Device // If the number of items that are returned is significantly large, this is an // identifier that is also returned. It can be used in a subsequent call to this diff --git a/service/devicefarm/api_op_ListInstanceProfiles.go b/service/devicefarm/api_op_ListInstanceProfiles.go index ae94accaf18..d8b2f90cd3a 100644 --- a/service/devicefarm/api_op_ListInstanceProfiles.go +++ b/service/devicefarm/api_op_ListInstanceProfiles.go @@ -41,7 +41,7 @@ type ListInstanceProfilesInput struct { type ListInstanceProfilesOutput struct { // An object that contains information about your instance profiles. - InstanceProfiles []*types.InstanceProfile + InstanceProfiles []types.InstanceProfile // An identifier that can be used in the next call to this operation to return the // next set of items in the list. diff --git a/service/devicefarm/api_op_ListJobs.go b/service/devicefarm/api_op_ListJobs.go index 679af4174e5..f0cc11ad77c 100644 --- a/service/devicefarm/api_op_ListJobs.go +++ b/service/devicefarm/api_op_ListJobs.go @@ -44,7 +44,7 @@ type ListJobsInput struct { type ListJobsOutput struct { // Information about the jobs. - Jobs []*types.Job + Jobs []types.Job // If the number of items that are returned is significantly large, this is an // identifier that is also returned. It can be used in a subsequent call to this diff --git a/service/devicefarm/api_op_ListNetworkProfiles.go b/service/devicefarm/api_op_ListNetworkProfiles.go index 6e57194a496..568114ab126 100644 --- a/service/devicefarm/api_op_ListNetworkProfiles.go +++ b/service/devicefarm/api_op_ListNetworkProfiles.go @@ -47,7 +47,7 @@ type ListNetworkProfilesInput struct { type ListNetworkProfilesOutput struct { // A list of the available network profiles. - NetworkProfiles []*types.NetworkProfile + NetworkProfiles []types.NetworkProfile // An identifier that was returned from the previous call to this operation, which // can be used to return the next set of items in the list. diff --git a/service/devicefarm/api_op_ListOfferingPromotions.go b/service/devicefarm/api_op_ListOfferingPromotions.go index 1c52aaa7940..c22fae094d3 100644 --- a/service/devicefarm/api_op_ListOfferingPromotions.go +++ b/service/devicefarm/api_op_ListOfferingPromotions.go @@ -45,7 +45,7 @@ type ListOfferingPromotionsOutput struct { NextToken *string // Information about the offering promotions. - OfferingPromotions []*types.OfferingPromotion + OfferingPromotions []types.OfferingPromotion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListOfferingTransactions.go b/service/devicefarm/api_op_ListOfferingTransactions.go index 2090f6a1dba..02aae7f4755 100644 --- a/service/devicefarm/api_op_ListOfferingTransactions.go +++ b/service/devicefarm/api_op_ListOfferingTransactions.go @@ -49,7 +49,7 @@ type ListOfferingTransactionsOutput struct { // The audit log of subscriptions you have purchased and modified through AWS // Device Farm. - OfferingTransactions []*types.OfferingTransaction + OfferingTransactions []types.OfferingTransaction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListOfferings.go b/service/devicefarm/api_op_ListOfferings.go index 403abc8ee1a..56c1d2a8110 100644 --- a/service/devicefarm/api_op_ListOfferings.go +++ b/service/devicefarm/api_op_ListOfferings.go @@ -48,7 +48,7 @@ type ListOfferingsOutput struct { NextToken *string // A value that represents the list offering results. - Offerings []*types.Offering + Offerings []types.Offering // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListProjects.go b/service/devicefarm/api_op_ListProjects.go index c040d4e52d4..18dcd91dd46 100644 --- a/service/devicefarm/api_op_ListProjects.go +++ b/service/devicefarm/api_op_ListProjects.go @@ -49,7 +49,7 @@ type ListProjectsOutput struct { NextToken *string // Information about the projects. - Projects []*types.Project + Projects []types.Project // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListRemoteAccessSessions.go b/service/devicefarm/api_op_ListRemoteAccessSessions.go index 118464d77c5..811cf431efd 100644 --- a/service/devicefarm/api_op_ListRemoteAccessSessions.go +++ b/service/devicefarm/api_op_ListRemoteAccessSessions.go @@ -51,7 +51,7 @@ type ListRemoteAccessSessionsOutput struct { // A container that represents the metadata from the service about each remote // access session you are requesting. - RemoteAccessSessions []*types.RemoteAccessSession + RemoteAccessSessions []types.RemoteAccessSession // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListRuns.go b/service/devicefarm/api_op_ListRuns.go index 616efa43e32..4771e7bbeb2 100644 --- a/service/devicefarm/api_op_ListRuns.go +++ b/service/devicefarm/api_op_ListRuns.go @@ -49,7 +49,7 @@ type ListRunsOutput struct { NextToken *string // Information about the runs. - Runs []*types.Run + Runs []types.Run // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListSamples.go b/service/devicefarm/api_op_ListSamples.go index fee958b06fd..fb70aa16749 100644 --- a/service/devicefarm/api_op_ListSamples.go +++ b/service/devicefarm/api_op_ListSamples.go @@ -49,7 +49,7 @@ type ListSamplesOutput struct { NextToken *string // Information about the samples. - Samples []*types.Sample + Samples []types.Sample // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListSuites.go b/service/devicefarm/api_op_ListSuites.go index 408736e9713..a907b391dfb 100644 --- a/service/devicefarm/api_op_ListSuites.go +++ b/service/devicefarm/api_op_ListSuites.go @@ -49,7 +49,7 @@ type ListSuitesOutput struct { NextToken *string // Information about the suites. - Suites []*types.Suite + Suites []types.Suite // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListTagsForResource.go b/service/devicefarm/api_op_ListTagsForResource.go index d0971ee43ed..c391773b26d 100644 --- a/service/devicefarm/api_op_ListTagsForResource.go +++ b/service/devicefarm/api_op_ListTagsForResource.go @@ -43,7 +43,7 @@ type ListTagsForResourceOutput struct { // The tags to add to the resource. A tag is an array of key-value pairs. Tag keys // can have a maximum character length of 128 characters. Tag values can have a // maximum length of 256 characters. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListTestGridProjects.go b/service/devicefarm/api_op_ListTestGridProjects.go index 406a0368276..56ea6c59032 100644 --- a/service/devicefarm/api_op_ListTestGridProjects.go +++ b/service/devicefarm/api_op_ListTestGridProjects.go @@ -43,7 +43,7 @@ type ListTestGridProjectsOutput struct { NextToken *string // The list of TestGridProjects, based on a ListTestGridProjectsRequest. - TestGridProjects []*types.TestGridProject + TestGridProjects []types.TestGridProject // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListTestGridSessionActions.go b/service/devicefarm/api_op_ListTestGridSessionActions.go index 00a560c99c1..9a371bce1d9 100644 --- a/service/devicefarm/api_op_ListTestGridSessionActions.go +++ b/service/devicefarm/api_op_ListTestGridSessionActions.go @@ -44,7 +44,7 @@ type ListTestGridSessionActionsInput struct { type ListTestGridSessionActionsOutput struct { // The action taken by the session. - Actions []*types.TestGridSessionAction + Actions []types.TestGridSessionAction // Pagination token. NextToken *string diff --git a/service/devicefarm/api_op_ListTestGridSessionArtifacts.go b/service/devicefarm/api_op_ListTestGridSessionArtifacts.go index 28612964178..5723ffe1a10 100644 --- a/service/devicefarm/api_op_ListTestGridSessionArtifacts.go +++ b/service/devicefarm/api_op_ListTestGridSessionArtifacts.go @@ -47,7 +47,7 @@ type ListTestGridSessionArtifactsInput struct { type ListTestGridSessionArtifactsOutput struct { // A list of test grid session artifacts for a TestGridSession. - Artifacts []*types.TestGridSessionArtifact + Artifacts []types.TestGridSessionArtifact // Pagination token. NextToken *string diff --git a/service/devicefarm/api_op_ListTestGridSessions.go b/service/devicefarm/api_op_ListTestGridSessions.go index 320b5d2632e..8402fd2384b 100644 --- a/service/devicefarm/api_op_ListTestGridSessions.go +++ b/service/devicefarm/api_op_ListTestGridSessions.go @@ -63,7 +63,7 @@ type ListTestGridSessionsOutput struct { NextToken *string // The sessions that match the criteria in a ListTestGridSessionsRequest. - TestGridSessions []*types.TestGridSession + TestGridSessions []types.TestGridSession // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListTests.go b/service/devicefarm/api_op_ListTests.go index 05d9f70d007..9e26cf251c8 100644 --- a/service/devicefarm/api_op_ListTests.go +++ b/service/devicefarm/api_op_ListTests.go @@ -49,7 +49,7 @@ type ListTestsOutput struct { NextToken *string // Information about the tests. - Tests []*types.Test + Tests []types.Test // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListUniqueProblems.go b/service/devicefarm/api_op_ListUniqueProblems.go index 0d8e2253000..0c01fa46a67 100644 --- a/service/devicefarm/api_op_ListUniqueProblems.go +++ b/service/devicefarm/api_op_ListUniqueProblems.go @@ -68,7 +68,7 @@ type ListUniqueProblemsOutput struct { // * ERRORED // // * STOPPED - UniqueProblems map[string][]*types.UniqueProblem + UniqueProblems map[string][]types.UniqueProblem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListUploads.go b/service/devicefarm/api_op_ListUploads.go index 7dc52b87a6a..21fcdeaae17 100644 --- a/service/devicefarm/api_op_ListUploads.go +++ b/service/devicefarm/api_op_ListUploads.go @@ -130,7 +130,7 @@ type ListUploadsOutput struct { NextToken *string // Information about the uploads. - Uploads []*types.Upload + Uploads []types.Upload // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_ListVPCEConfigurations.go b/service/devicefarm/api_op_ListVPCEConfigurations.go index 0e82af2af6d..fbb10223f44 100644 --- a/service/devicefarm/api_op_ListVPCEConfigurations.go +++ b/service/devicefarm/api_op_ListVPCEConfigurations.go @@ -47,7 +47,7 @@ type ListVPCEConfigurationsOutput struct { // An array of VPCEConfiguration objects that contain information about your VPC // endpoint configuration. - VpceConfigurations []*types.VPCEConfiguration + VpceConfigurations []types.VPCEConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devicefarm/api_op_TagResource.go b/service/devicefarm/api_op_TagResource.go index cf80df0a2b3..ff3922107e6 100644 --- a/service/devicefarm/api_op_TagResource.go +++ b/service/devicefarm/api_op_TagResource.go @@ -45,7 +45,7 @@ type TagResourceInput struct { // maximum length of 256 characters. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/devicefarm/api_op_UntagResource.go b/service/devicefarm/api_op_UntagResource.go index 361399c2f53..ad923079b17 100644 --- a/service/devicefarm/api_op_UntagResource.go +++ b/service/devicefarm/api_op_UntagResource.go @@ -39,7 +39,7 @@ type UntagResourceInput struct { // The keys of the tags to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/devicefarm/api_op_UpdateDeviceInstance.go b/service/devicefarm/api_op_UpdateDeviceInstance.go index cdb6445bbfd..eb08f0595cd 100644 --- a/service/devicefarm/api_op_UpdateDeviceInstance.go +++ b/service/devicefarm/api_op_UpdateDeviceInstance.go @@ -35,7 +35,7 @@ type UpdateDeviceInstanceInput struct { Arn *string // An array of strings that you want to associate with the device instance. - Labels []*string + Labels []string // The ARN of the profile that you want to associate with the device instance. ProfileArn *string diff --git a/service/devicefarm/api_op_UpdateDevicePool.go b/service/devicefarm/api_op_UpdateDevicePool.go index 3229d1bfc14..4dd419d87fa 100644 --- a/service/devicefarm/api_op_UpdateDevicePool.go +++ b/service/devicefarm/api_op_UpdateDevicePool.go @@ -62,7 +62,7 @@ type UpdateDevicePoolInput struct { // Represents the rules to modify for the device pool. Updating rules is optional. // If you update rules for your request, the update replaces the existing rules. - Rules []*types.Rule + Rules []types.Rule } // Represents the result of an update device pool request. diff --git a/service/devicefarm/api_op_UpdateInstanceProfile.go b/service/devicefarm/api_op_UpdateInstanceProfile.go index 93208851526..0cd138471ea 100644 --- a/service/devicefarm/api_op_UpdateInstanceProfile.go +++ b/service/devicefarm/api_op_UpdateInstanceProfile.go @@ -40,7 +40,7 @@ type UpdateInstanceProfileInput struct { // An array of strings that specifies the list of app packages that should not be // cleaned up from the device after a test run is over. The list of packages is // only considered if you set packageCleanup to true. - ExcludeAppPackagesFromCleanup []*string + ExcludeAppPackagesFromCleanup []string // The updated name for your instance profile. Name *string diff --git a/service/devicefarm/api_op_UpdateNetworkProfile.go b/service/devicefarm/api_op_UpdateNetworkProfile.go index dbf9959178c..254cf6dfdfe 100644 --- a/service/devicefarm/api_op_UpdateNetworkProfile.go +++ b/service/devicefarm/api_op_UpdateNetworkProfile.go @@ -51,7 +51,7 @@ type UpdateNetworkProfileInput struct { DownlinkJitterMs *int64 // Proportion of received packets that fail to arrive from 0 to 100 percent. - DownlinkLossPercent *int32 + DownlinkLossPercent int32 // The name of the network profile about which you are returning information. Name *string @@ -72,7 +72,7 @@ type UpdateNetworkProfileInput struct { UplinkJitterMs *int64 // Proportion of transmitted packets that fail to arrive from 0 to 100 percent. - UplinkLossPercent *int32 + UplinkLossPercent int32 } type UpdateNetworkProfileOutput struct { diff --git a/service/devicefarm/deserializers.go b/service/devicefarm/deserializers.go index a92b65d972e..185448f1ab6 100644 --- a/service/devicefarm/deserializers.go +++ b/service/devicefarm/deserializers.go @@ -9680,7 +9680,7 @@ func awsAwsjson11_deserializeDocumentAccountSettings(v **types.AccountSettings, if !ok { return fmt.Errorf("expected AWSAccountNumber to be of type string, got %T instead", value) } - sv.AwsAccountNumber = &jtv + sv.AwsAccountNumber = ptr.String(jtv) } case "defaultJobTimeoutMinutes": @@ -9720,7 +9720,7 @@ func awsAwsjson11_deserializeDocumentAccountSettings(v **types.AccountSettings, if !ok { return fmt.Errorf("expected SkipAppResign to be of type *bool, got %T instead", value) } - sv.SkipAppResign = &jtv + sv.SkipAppResign = ptr.Bool(jtv) } case "trialMinutes": @@ -9747,7 +9747,7 @@ func awsAwsjson11_deserializeDocumentAccountSettings(v **types.AccountSettings, return nil } -func awsAwsjson11_deserializeDocumentAndroidPaths(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAndroidPaths(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9760,21 +9760,21 @@ func awsAwsjson11_deserializeDocumentAndroidPaths(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -9811,7 +9811,7 @@ func awsAwsjson11_deserializeDocumentArgumentException(v **types.ArgumentExcepti if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9851,7 +9851,7 @@ func awsAwsjson11_deserializeDocumentArtifact(v **types.Artifact, value interfac if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "extension": @@ -9860,7 +9860,7 @@ func awsAwsjson11_deserializeDocumentArtifact(v **types.Artifact, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Extension = &jtv + sv.Extension = ptr.String(jtv) } case "name": @@ -9869,7 +9869,7 @@ func awsAwsjson11_deserializeDocumentArtifact(v **types.Artifact, value interfac if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "type": @@ -9887,7 +9887,7 @@ func awsAwsjson11_deserializeDocumentArtifact(v **types.Artifact, value interfac if !ok { return fmt.Errorf("expected URL to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -9899,7 +9899,7 @@ func awsAwsjson11_deserializeDocumentArtifact(v **types.Artifact, value interfac return nil } -func awsAwsjson11_deserializeDocumentArtifacts(v *[]*types.Artifact, value interface{}) error { +func awsAwsjson11_deserializeDocumentArtifacts(v *[]types.Artifact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9912,18 +9912,20 @@ func awsAwsjson11_deserializeDocumentArtifacts(v *[]*types.Artifact, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Artifact + var cv []types.Artifact if *v == nil { - cv = []*types.Artifact{} + cv = []types.Artifact{} } else { cv = *v } for _, value := range shape { - var col *types.Artifact - if err := awsAwsjson11_deserializeDocumentArtifact(&col, value); err != nil { + var col types.Artifact + destAddr := &col + if err := awsAwsjson11_deserializeDocumentArtifact(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9959,7 +9961,7 @@ func awsAwsjson11_deserializeDocumentCannotDeleteException(v **types.CannotDelet if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10121,7 +10123,7 @@ func awsAwsjson11_deserializeDocumentCPU(v **types.CPU, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Architecture = &jtv + sv.Architecture = ptr.String(jtv) } case "clock": @@ -10134,7 +10136,7 @@ func awsAwsjson11_deserializeDocumentCPU(v **types.CPU, value interface{}) error if err != nil { return err } - sv.Clock = &f64 + sv.Clock = ptr.Float64(f64) } case "frequency": @@ -10143,7 +10145,7 @@ func awsAwsjson11_deserializeDocumentCPU(v **types.CPU, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Frequency = &jtv + sv.Frequency = ptr.String(jtv) } default: @@ -10229,7 +10231,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "availability": @@ -10247,7 +10249,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Carrier = &jtv + sv.Carrier = ptr.String(jtv) } case "cpu": @@ -10261,7 +10263,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FleetName = &jtv + sv.FleetName = ptr.String(jtv) } case "fleetType": @@ -10270,7 +10272,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FleetType = &jtv + sv.FleetType = ptr.String(jtv) } case "formFactor": @@ -10292,7 +10294,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if err != nil { return err } - sv.HeapSize = &i64 + sv.HeapSize = ptr.Int64(i64) } case "image": @@ -10301,7 +10303,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Image = &jtv + sv.Image = ptr.String(jtv) } case "instances": @@ -10315,7 +10317,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Manufacturer = &jtv + sv.Manufacturer = ptr.String(jtv) } case "memory": @@ -10328,7 +10330,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if err != nil { return err } - sv.Memory = &i64 + sv.Memory = ptr.Int64(i64) } case "model": @@ -10337,7 +10339,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Model = &jtv + sv.Model = ptr.String(jtv) } case "modelId": @@ -10346,7 +10348,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ModelId = &jtv + sv.ModelId = ptr.String(jtv) } case "name": @@ -10355,7 +10357,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "os": @@ -10364,7 +10366,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Os = &jtv + sv.Os = ptr.String(jtv) } case "platform": @@ -10382,7 +10384,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Radio = &jtv + sv.Radio = ptr.String(jtv) } case "remoteAccessEnabled": @@ -10391,7 +10393,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RemoteAccessEnabled = &jtv + sv.RemoteAccessEnabled = ptr.Bool(jtv) } case "remoteDebugEnabled": @@ -10400,7 +10402,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RemoteDebugEnabled = &jtv + sv.RemoteDebugEnabled = ptr.Bool(jtv) } case "resolution": @@ -10471,7 +10473,7 @@ func awsAwsjson11_deserializeDocumentDeviceFilter(v **types.DeviceFilter, value return nil } -func awsAwsjson11_deserializeDocumentDeviceFilters(v *[]*types.DeviceFilter, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeviceFilters(v *[]types.DeviceFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10484,18 +10486,20 @@ func awsAwsjson11_deserializeDocumentDeviceFilters(v *[]*types.DeviceFilter, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeviceFilter + var cv []types.DeviceFilter if *v == nil { - cv = []*types.DeviceFilter{} + cv = []types.DeviceFilter{} } else { cv = *v } for _, value := range shape { - var col *types.DeviceFilter - if err := awsAwsjson11_deserializeDocumentDeviceFilter(&col, value); err != nil { + var col types.DeviceFilter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeviceFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10503,7 +10507,7 @@ func awsAwsjson11_deserializeDocumentDeviceFilters(v *[]*types.DeviceFilter, val return nil } -func awsAwsjson11_deserializeDocumentDeviceFilterValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeviceFilterValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10516,21 +10520,21 @@ func awsAwsjson11_deserializeDocumentDeviceFilterValues(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -10539,7 +10543,7 @@ func awsAwsjson11_deserializeDocumentDeviceFilterValues(v *[]*string, value inte return nil } -func awsAwsjson11_deserializeDocumentDeviceHostPaths(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeviceHostPaths(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10552,21 +10556,21 @@ func awsAwsjson11_deserializeDocumentDeviceHostPaths(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -10603,7 +10607,7 @@ func awsAwsjson11_deserializeDocumentDeviceInstance(v **types.DeviceInstance, va if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "deviceArn": @@ -10612,7 +10616,7 @@ func awsAwsjson11_deserializeDocumentDeviceInstance(v **types.DeviceInstance, va if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.DeviceArn = &jtv + sv.DeviceArn = ptr.String(jtv) } case "instanceProfile": @@ -10640,7 +10644,7 @@ func awsAwsjson11_deserializeDocumentDeviceInstance(v **types.DeviceInstance, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Udid = &jtv + sv.Udid = ptr.String(jtv) } default: @@ -10652,7 +10656,7 @@ func awsAwsjson11_deserializeDocumentDeviceInstance(v **types.DeviceInstance, va return nil } -func awsAwsjson11_deserializeDocumentDeviceInstances(v *[]*types.DeviceInstance, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeviceInstances(v *[]types.DeviceInstance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10665,18 +10669,20 @@ func awsAwsjson11_deserializeDocumentDeviceInstances(v *[]*types.DeviceInstance, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeviceInstance + var cv []types.DeviceInstance if *v == nil { - cv = []*types.DeviceInstance{} + cv = []types.DeviceInstance{} } else { cv = *v } for _, value := range shape { - var col *types.DeviceInstance - if err := awsAwsjson11_deserializeDocumentDeviceInstance(&col, value); err != nil { + var col types.DeviceInstance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeviceInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10716,7 +10722,7 @@ func awsAwsjson11_deserializeDocumentDeviceMinutes(v **types.DeviceMinutes, valu if err != nil { return err } - sv.Metered = &f64 + sv.Metered = ptr.Float64(f64) } case "total": @@ -10729,7 +10735,7 @@ func awsAwsjson11_deserializeDocumentDeviceMinutes(v **types.DeviceMinutes, valu if err != nil { return err } - sv.Total = &f64 + sv.Total = ptr.Float64(f64) } case "unmetered": @@ -10742,7 +10748,7 @@ func awsAwsjson11_deserializeDocumentDeviceMinutes(v **types.DeviceMinutes, valu if err != nil { return err } - sv.Unmetered = &f64 + sv.Unmetered = ptr.Float64(f64) } default: @@ -10782,7 +10788,7 @@ func awsAwsjson11_deserializeDocumentDevicePool(v **types.DevicePool, value inte if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -10791,7 +10797,7 @@ func awsAwsjson11_deserializeDocumentDevicePool(v **types.DevicePool, value inte if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "maxDevices": @@ -10813,7 +10819,7 @@ func awsAwsjson11_deserializeDocumentDevicePool(v **types.DevicePool, value inte if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "rules": @@ -10867,7 +10873,7 @@ func awsAwsjson11_deserializeDocumentDevicePoolCompatibilityResult(v **types.Dev if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Compatible = &jtv + sv.Compatible = ptr.Bool(jtv) } case "device": @@ -10889,7 +10895,7 @@ func awsAwsjson11_deserializeDocumentDevicePoolCompatibilityResult(v **types.Dev return nil } -func awsAwsjson11_deserializeDocumentDevicePoolCompatibilityResults(v *[]*types.DevicePoolCompatibilityResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentDevicePoolCompatibilityResults(v *[]types.DevicePoolCompatibilityResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10902,18 +10908,20 @@ func awsAwsjson11_deserializeDocumentDevicePoolCompatibilityResults(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DevicePoolCompatibilityResult + var cv []types.DevicePoolCompatibilityResult if *v == nil { - cv = []*types.DevicePoolCompatibilityResult{} + cv = []types.DevicePoolCompatibilityResult{} } else { cv = *v } for _, value := range shape { - var col *types.DevicePoolCompatibilityResult - if err := awsAwsjson11_deserializeDocumentDevicePoolCompatibilityResult(&col, value); err != nil { + var col types.DevicePoolCompatibilityResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDevicePoolCompatibilityResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10921,7 +10929,7 @@ func awsAwsjson11_deserializeDocumentDevicePoolCompatibilityResults(v *[]*types. return nil } -func awsAwsjson11_deserializeDocumentDevicePools(v *[]*types.DevicePool, value interface{}) error { +func awsAwsjson11_deserializeDocumentDevicePools(v *[]types.DevicePool, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10934,18 +10942,20 @@ func awsAwsjson11_deserializeDocumentDevicePools(v *[]*types.DevicePool, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DevicePool + var cv []types.DevicePool if *v == nil { - cv = []*types.DevicePool{} + cv = []types.DevicePool{} } else { cv = *v } for _, value := range shape { - var col *types.DevicePool - if err := awsAwsjson11_deserializeDocumentDevicePool(&col, value); err != nil { + var col types.DevicePool + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDevicePool(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10953,7 +10963,7 @@ func awsAwsjson11_deserializeDocumentDevicePools(v *[]*types.DevicePool, value i return nil } -func awsAwsjson11_deserializeDocumentDevices(v *[]*types.Device, value interface{}) error { +func awsAwsjson11_deserializeDocumentDevices(v *[]types.Device, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10966,18 +10976,20 @@ func awsAwsjson11_deserializeDocumentDevices(v *[]*types.Device, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Device + var cv []types.Device if *v == nil { - cv = []*types.Device{} + cv = []types.Device{} } else { cv = *v } for _, value := range shape { - var col *types.Device - if err := awsAwsjson11_deserializeDocumentDevice(&col, value); err != nil { + var col types.Device + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDevice(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11075,7 +11087,7 @@ func awsAwsjson11_deserializeDocumentIdempotencyException(v **types.IdempotencyE if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11115,7 +11127,7 @@ func awsAwsjson11_deserializeDocumentIncompatibilityMessage(v **types.Incompatib if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "type": @@ -11136,7 +11148,7 @@ func awsAwsjson11_deserializeDocumentIncompatibilityMessage(v **types.Incompatib return nil } -func awsAwsjson11_deserializeDocumentIncompatibilityMessages(v *[]*types.IncompatibilityMessage, value interface{}) error { +func awsAwsjson11_deserializeDocumentIncompatibilityMessages(v *[]types.IncompatibilityMessage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11149,18 +11161,20 @@ func awsAwsjson11_deserializeDocumentIncompatibilityMessages(v *[]*types.Incompa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IncompatibilityMessage + var cv []types.IncompatibilityMessage if *v == nil { - cv = []*types.IncompatibilityMessage{} + cv = []types.IncompatibilityMessage{} } else { cv = *v } for _, value := range shape { - var col *types.IncompatibilityMessage - if err := awsAwsjson11_deserializeDocumentIncompatibilityMessage(&col, value); err != nil { + var col types.IncompatibilityMessage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIncompatibilityMessage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11168,7 +11182,7 @@ func awsAwsjson11_deserializeDocumentIncompatibilityMessages(v *[]*types.Incompa return nil } -func awsAwsjson11_deserializeDocumentInstanceLabels(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceLabels(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11181,21 +11195,21 @@ func awsAwsjson11_deserializeDocumentInstanceLabels(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -11232,7 +11246,7 @@ func awsAwsjson11_deserializeDocumentInstanceProfile(v **types.InstanceProfile, if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -11241,7 +11255,7 @@ func awsAwsjson11_deserializeDocumentInstanceProfile(v **types.InstanceProfile, if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "excludeAppPackagesFromCleanup": @@ -11255,7 +11269,7 @@ func awsAwsjson11_deserializeDocumentInstanceProfile(v **types.InstanceProfile, if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "packageCleanup": @@ -11264,7 +11278,7 @@ func awsAwsjson11_deserializeDocumentInstanceProfile(v **types.InstanceProfile, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.PackageCleanup = &jtv + sv.PackageCleanup = ptr.Bool(jtv) } case "rebootAfterUse": @@ -11273,7 +11287,7 @@ func awsAwsjson11_deserializeDocumentInstanceProfile(v **types.InstanceProfile, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RebootAfterUse = &jtv + sv.RebootAfterUse = ptr.Bool(jtv) } default: @@ -11285,7 +11299,7 @@ func awsAwsjson11_deserializeDocumentInstanceProfile(v **types.InstanceProfile, return nil } -func awsAwsjson11_deserializeDocumentInstanceProfiles(v *[]*types.InstanceProfile, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceProfiles(v *[]types.InstanceProfile, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11298,18 +11312,20 @@ func awsAwsjson11_deserializeDocumentInstanceProfiles(v *[]*types.InstanceProfil return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceProfile + var cv []types.InstanceProfile if *v == nil { - cv = []*types.InstanceProfile{} + cv = []types.InstanceProfile{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceProfile - if err := awsAwsjson11_deserializeDocumentInstanceProfile(&col, value); err != nil { + var col types.InstanceProfile + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceProfile(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11345,7 +11361,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11385,7 +11401,7 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11397,7 +11413,7 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid return nil } -func awsAwsjson11_deserializeDocumentIosPaths(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIosPaths(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11410,21 +11426,21 @@ func awsAwsjson11_deserializeDocumentIosPaths(v *[]*string, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -11461,7 +11477,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "counters": @@ -11498,7 +11514,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.InstanceArn = &jtv + sv.InstanceArn = ptr.String(jtv) } case "message": @@ -11507,7 +11523,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "name": @@ -11516,7 +11532,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "result": @@ -11578,7 +11594,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected VideoCapture to be of type *bool, got %T instead", value) } - sv.VideoCapture = &jtv + sv.VideoCapture = ptr.Bool(jtv) } case "videoEndpoint": @@ -11587,7 +11603,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VideoEndpoint = &jtv + sv.VideoEndpoint = ptr.String(jtv) } default: @@ -11599,7 +11615,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentJobs(v *[]*types.Job, value interface{}) error { +func awsAwsjson11_deserializeDocumentJobs(v *[]types.Job, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11612,18 +11628,20 @@ func awsAwsjson11_deserializeDocumentJobs(v *[]*types.Job, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Job + var cv []types.Job if *v == nil { - cv = []*types.Job{} + cv = []types.Job{} } else { cv = *v } for _, value := range shape { - var col *types.Job - if err := awsAwsjson11_deserializeDocumentJob(&col, value); err != nil { + var col types.Job + destAddr := &col + if err := awsAwsjson11_deserializeDocumentJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11659,7 +11677,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11703,7 +11721,7 @@ func awsAwsjson11_deserializeDocumentLocation(v **types.Location, value interfac if err != nil { return err } - sv.Latitude = &f64 + sv.Latitude = ptr.Float64(f64) } case "longitude": @@ -11716,7 +11734,7 @@ func awsAwsjson11_deserializeDocumentLocation(v **types.Location, value interfac if err != nil { return err } - sv.Longitude = &f64 + sv.Longitude = ptr.Float64(f64) } default: @@ -11728,7 +11746,7 @@ func awsAwsjson11_deserializeDocumentLocation(v **types.Location, value interfac return nil } -func awsAwsjson11_deserializeDocumentMaxSlotMap(v *map[string]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentMaxSlotMap(v *map[string]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11741,15 +11759,15 @@ func awsAwsjson11_deserializeDocumentMaxSlotMap(v *map[string]*int32, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*int32 + var mv map[string]int32 if *v == nil { - mv = map[string]*int32{} + mv = map[string]int32{} } else { mv = *v } for key, value := range shape { - var parsedVal *int32 + var parsedVal int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -11759,7 +11777,7 @@ func awsAwsjson11_deserializeDocumentMaxSlotMap(v *map[string]*int32, value inte if err != nil { return err } - parsedVal = ptr.Int32(int32(i64)) + parsedVal = int32(i64) } mv[key] = parsedVal @@ -11800,7 +11818,7 @@ func awsAwsjson11_deserializeDocumentMonetaryAmount(v **types.MonetaryAmount, va if err != nil { return err } - sv.Amount = &f64 + sv.Amount = ptr.Float64(f64) } case "currencyCode": @@ -11849,7 +11867,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -11858,7 +11876,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "downlinkBandwidthBits": @@ -11871,7 +11889,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if err != nil { return err } - sv.DownlinkBandwidthBits = &i64 + sv.DownlinkBandwidthBits = ptr.Int64(i64) } case "downlinkDelayMs": @@ -11884,7 +11902,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if err != nil { return err } - sv.DownlinkDelayMs = &i64 + sv.DownlinkDelayMs = ptr.Int64(i64) } case "downlinkJitterMs": @@ -11897,7 +11915,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if err != nil { return err } - sv.DownlinkJitterMs = &i64 + sv.DownlinkJitterMs = ptr.Int64(i64) } case "downlinkLossPercent": @@ -11910,7 +11928,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if err != nil { return err } - sv.DownlinkLossPercent = ptr.Int32(int32(i64)) + sv.DownlinkLossPercent = int32(i64) } case "name": @@ -11919,7 +11937,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "type": @@ -11941,7 +11959,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if err != nil { return err } - sv.UplinkBandwidthBits = &i64 + sv.UplinkBandwidthBits = ptr.Int64(i64) } case "uplinkDelayMs": @@ -11954,7 +11972,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if err != nil { return err } - sv.UplinkDelayMs = &i64 + sv.UplinkDelayMs = ptr.Int64(i64) } case "uplinkJitterMs": @@ -11967,7 +11985,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if err != nil { return err } - sv.UplinkJitterMs = &i64 + sv.UplinkJitterMs = ptr.Int64(i64) } case "uplinkLossPercent": @@ -11980,7 +11998,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va if err != nil { return err } - sv.UplinkLossPercent = ptr.Int32(int32(i64)) + sv.UplinkLossPercent = int32(i64) } default: @@ -11992,7 +12010,7 @@ func awsAwsjson11_deserializeDocumentNetworkProfile(v **types.NetworkProfile, va return nil } -func awsAwsjson11_deserializeDocumentNetworkProfiles(v *[]*types.NetworkProfile, value interface{}) error { +func awsAwsjson11_deserializeDocumentNetworkProfiles(v *[]types.NetworkProfile, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12005,18 +12023,20 @@ func awsAwsjson11_deserializeDocumentNetworkProfiles(v *[]*types.NetworkProfile, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NetworkProfile + var cv []types.NetworkProfile if *v == nil { - cv = []*types.NetworkProfile{} + cv = []types.NetworkProfile{} } else { cv = *v } for _, value := range shape { - var col *types.NetworkProfile - if err := awsAwsjson11_deserializeDocumentNetworkProfile(&col, value); err != nil { + var col types.NetworkProfile + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNetworkProfile(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12052,7 +12072,7 @@ func awsAwsjson11_deserializeDocumentNotEligibleException(v **types.NotEligibleE if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12092,7 +12112,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12132,7 +12152,7 @@ func awsAwsjson11_deserializeDocumentOffering(v **types.Offering, value interfac if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -12141,7 +12161,7 @@ func awsAwsjson11_deserializeDocumentOffering(v **types.Offering, value interfac if !ok { return fmt.Errorf("expected OfferingIdentifier to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "platform": @@ -12204,7 +12224,7 @@ func awsAwsjson11_deserializeDocumentOfferingPromotion(v **types.OfferingPromoti if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -12213,7 +12233,7 @@ func awsAwsjson11_deserializeDocumentOfferingPromotion(v **types.OfferingPromoti if !ok { return fmt.Errorf("expected OfferingPromotionIdentifier to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -12225,7 +12245,7 @@ func awsAwsjson11_deserializeDocumentOfferingPromotion(v **types.OfferingPromoti return nil } -func awsAwsjson11_deserializeDocumentOfferingPromotions(v *[]*types.OfferingPromotion, value interface{}) error { +func awsAwsjson11_deserializeDocumentOfferingPromotions(v *[]types.OfferingPromotion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12238,18 +12258,20 @@ func awsAwsjson11_deserializeDocumentOfferingPromotions(v *[]*types.OfferingProm return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OfferingPromotion + var cv []types.OfferingPromotion if *v == nil { - cv = []*types.OfferingPromotion{} + cv = []types.OfferingPromotion{} } else { cv = *v } for _, value := range shape { - var col *types.OfferingPromotion - if err := awsAwsjson11_deserializeDocumentOfferingPromotion(&col, value); err != nil { + var col types.OfferingPromotion + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOfferingPromotion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12257,7 +12279,7 @@ func awsAwsjson11_deserializeDocumentOfferingPromotions(v *[]*types.OfferingProm return nil } -func awsAwsjson11_deserializeDocumentOfferings(v *[]*types.Offering, value interface{}) error { +func awsAwsjson11_deserializeDocumentOfferings(v *[]types.Offering, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12270,18 +12292,20 @@ func awsAwsjson11_deserializeDocumentOfferings(v *[]*types.Offering, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Offering + var cv []types.Offering if *v == nil { - cv = []*types.Offering{} + cv = []types.Offering{} } else { cv = *v } for _, value := range shape { - var col *types.Offering - if err := awsAwsjson11_deserializeDocumentOffering(&col, value); err != nil { + var col types.Offering + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOffering(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12360,7 +12384,7 @@ func awsAwsjson11_deserializeDocumentOfferingStatus(v **types.OfferingStatus, va return nil } -func awsAwsjson11_deserializeDocumentOfferingStatusMap(v *map[string]*types.OfferingStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentOfferingStatusMap(v *map[string]types.OfferingStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12373,18 +12397,21 @@ func awsAwsjson11_deserializeDocumentOfferingStatusMap(v *map[string]*types.Offe return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.OfferingStatus + var mv map[string]types.OfferingStatus if *v == nil { - mv = map[string]*types.OfferingStatus{} + mv = map[string]types.OfferingStatus{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.OfferingStatus - if err := awsAwsjson11_deserializeDocumentOfferingStatus(&parsedVal, value); err != nil { + var parsedVal types.OfferingStatus + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentOfferingStatus(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -12438,7 +12465,7 @@ func awsAwsjson11_deserializeDocumentOfferingTransaction(v **types.OfferingTrans if !ok { return fmt.Errorf("expected OfferingPromotionIdentifier to be of type string, got %T instead", value) } - sv.OfferingPromotionId = &jtv + sv.OfferingPromotionId = ptr.String(jtv) } case "offeringStatus": @@ -12452,7 +12479,7 @@ func awsAwsjson11_deserializeDocumentOfferingTransaction(v **types.OfferingTrans if !ok { return fmt.Errorf("expected TransactionIdentifier to be of type string, got %T instead", value) } - sv.TransactionId = &jtv + sv.TransactionId = ptr.String(jtv) } default: @@ -12464,7 +12491,7 @@ func awsAwsjson11_deserializeDocumentOfferingTransaction(v **types.OfferingTrans return nil } -func awsAwsjson11_deserializeDocumentOfferingTransactions(v *[]*types.OfferingTransaction, value interface{}) error { +func awsAwsjson11_deserializeDocumentOfferingTransactions(v *[]types.OfferingTransaction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12477,18 +12504,20 @@ func awsAwsjson11_deserializeDocumentOfferingTransactions(v *[]*types.OfferingTr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OfferingTransaction + var cv []types.OfferingTransaction if *v == nil { - cv = []*types.OfferingTransaction{} + cv = []types.OfferingTransaction{} } else { cv = *v } for _, value := range shape { - var col *types.OfferingTransaction - if err := awsAwsjson11_deserializeDocumentOfferingTransaction(&col, value); err != nil { + var col types.OfferingTransaction + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOfferingTransaction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12496,7 +12525,7 @@ func awsAwsjson11_deserializeDocumentOfferingTransactions(v *[]*types.OfferingTr return nil } -func awsAwsjson11_deserializeDocumentPackageIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPackageIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12509,21 +12538,21 @@ func awsAwsjson11_deserializeDocumentPackageIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -12570,7 +12599,7 @@ func awsAwsjson11_deserializeDocumentProblem(v **types.Problem, value interface{ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "result": @@ -12634,7 +12663,7 @@ func awsAwsjson11_deserializeDocumentProblemDetail(v **types.ProblemDetail, valu if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "name": @@ -12643,7 +12672,7 @@ func awsAwsjson11_deserializeDocumentProblemDetail(v **types.ProblemDetail, valu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -12655,7 +12684,7 @@ func awsAwsjson11_deserializeDocumentProblemDetail(v **types.ProblemDetail, valu return nil } -func awsAwsjson11_deserializeDocumentProblems(v *[]*types.Problem, value interface{}) error { +func awsAwsjson11_deserializeDocumentProblems(v *[]types.Problem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12668,18 +12697,20 @@ func awsAwsjson11_deserializeDocumentProblems(v *[]*types.Problem, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Problem + var cv []types.Problem if *v == nil { - cv = []*types.Problem{} + cv = []types.Problem{} } else { cv = *v } for _, value := range shape { - var col *types.Problem - if err := awsAwsjson11_deserializeDocumentProblem(&col, value); err != nil { + var col types.Problem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProblem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12715,7 +12746,7 @@ func awsAwsjson11_deserializeDocumentProject(v **types.Project, value interface{ if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "created": @@ -12750,7 +12781,7 @@ func awsAwsjson11_deserializeDocumentProject(v **types.Project, value interface{ if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -12762,7 +12793,7 @@ func awsAwsjson11_deserializeDocumentProject(v **types.Project, value interface{ return nil } -func awsAwsjson11_deserializeDocumentProjects(v *[]*types.Project, value interface{}) error { +func awsAwsjson11_deserializeDocumentProjects(v *[]types.Project, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12775,18 +12806,20 @@ func awsAwsjson11_deserializeDocumentProjects(v *[]*types.Project, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Project + var cv []types.Project if *v == nil { - cv = []*types.Project{} + cv = []types.Project{} } else { cv = *v } for _, value := range shape { - var col *types.Project - if err := awsAwsjson11_deserializeDocumentProject(&col, value); err != nil { + var col types.Project + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProject(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12794,7 +12827,7 @@ func awsAwsjson11_deserializeDocumentProjects(v *[]*types.Project, value interfa return nil } -func awsAwsjson11_deserializeDocumentPurchasedDevicesMap(v *map[string]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentPurchasedDevicesMap(v *map[string]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12807,15 +12840,15 @@ func awsAwsjson11_deserializeDocumentPurchasedDevicesMap(v *map[string]*int32, v return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*int32 + var mv map[string]int32 if *v == nil { - mv = map[string]*int32{} + mv = map[string]int32{} } else { mv = *v } for key, value := range shape { - var parsedVal *int32 + var parsedVal int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -12825,7 +12858,7 @@ func awsAwsjson11_deserializeDocumentPurchasedDevicesMap(v *map[string]*int32, v if err != nil { return err } - parsedVal = ptr.Int32(int32(i64)) + parsedVal = int32(i64) } mv[key] = parsedVal @@ -12862,7 +12895,7 @@ func awsAwsjson11_deserializeDocumentRadios(v **types.Radios, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Bluetooth = &jtv + sv.Bluetooth = ptr.Bool(jtv) } case "gps": @@ -12871,7 +12904,7 @@ func awsAwsjson11_deserializeDocumentRadios(v **types.Radios, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Gps = &jtv + sv.Gps = ptr.Bool(jtv) } case "nfc": @@ -12880,7 +12913,7 @@ func awsAwsjson11_deserializeDocumentRadios(v **types.Radios, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Nfc = &jtv + sv.Nfc = ptr.Bool(jtv) } case "wifi": @@ -12889,7 +12922,7 @@ func awsAwsjson11_deserializeDocumentRadios(v **types.Radios, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Wifi = &jtv + sv.Wifi = ptr.Bool(jtv) } default: @@ -12946,7 +12979,7 @@ func awsAwsjson11_deserializeDocumentRecurringCharge(v **types.RecurringCharge, return nil } -func awsAwsjson11_deserializeDocumentRecurringCharges(v *[]*types.RecurringCharge, value interface{}) error { +func awsAwsjson11_deserializeDocumentRecurringCharges(v *[]types.RecurringCharge, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12959,18 +12992,20 @@ func awsAwsjson11_deserializeDocumentRecurringCharges(v *[]*types.RecurringCharg return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecurringCharge + var cv []types.RecurringCharge if *v == nil { - cv = []*types.RecurringCharge{} + cv = []types.RecurringCharge{} } else { cv = *v } for _, value := range shape { - var col *types.RecurringCharge - if err := awsAwsjson11_deserializeDocumentRecurringCharge(&col, value); err != nil { + var col types.RecurringCharge + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRecurringCharge(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13006,7 +13041,7 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSession(v **types.RemoteAccessS if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "billingMethod": @@ -13024,7 +13059,7 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSession(v **types.RemoteAccessS if !ok { return fmt.Errorf("expected ClientId to be of type string, got %T instead", value) } - sv.ClientId = &jtv + sv.ClientId = ptr.String(jtv) } case "created": @@ -13056,7 +13091,7 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSession(v **types.RemoteAccessS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeviceUdid = &jtv + sv.DeviceUdid = ptr.String(jtv) } case "endpoint": @@ -13065,7 +13100,7 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSession(v **types.RemoteAccessS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Endpoint = &jtv + sv.Endpoint = ptr.String(jtv) } case "hostAddress": @@ -13074,7 +13109,7 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSession(v **types.RemoteAccessS if !ok { return fmt.Errorf("expected HostAddress to be of type string, got %T instead", value) } - sv.HostAddress = &jtv + sv.HostAddress = ptr.String(jtv) } case "instanceArn": @@ -13083,7 +13118,7 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSession(v **types.RemoteAccessS if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.InstanceArn = &jtv + sv.InstanceArn = ptr.String(jtv) } case "interactionMode": @@ -13101,7 +13136,7 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSession(v **types.RemoteAccessS if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "name": @@ -13110,7 +13145,7 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSession(v **types.RemoteAccessS if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "remoteDebugEnabled": @@ -13119,7 +13154,7 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSession(v **types.RemoteAccessS if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RemoteDebugEnabled = &jtv + sv.RemoteDebugEnabled = ptr.Bool(jtv) } case "remoteRecordAppArn": @@ -13128,7 +13163,7 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSession(v **types.RemoteAccessS if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.RemoteRecordAppArn = &jtv + sv.RemoteRecordAppArn = ptr.String(jtv) } case "remoteRecordEnabled": @@ -13137,7 +13172,7 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSession(v **types.RemoteAccessS if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RemoteRecordEnabled = &jtv + sv.RemoteRecordEnabled = ptr.Bool(jtv) } case "result": @@ -13155,7 +13190,7 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSession(v **types.RemoteAccessS if !ok { return fmt.Errorf("expected SkipAppResign to be of type *bool, got %T instead", value) } - sv.SkipAppResign = &jtv + sv.SkipAppResign = ptr.Bool(jtv) } case "started": @@ -13202,7 +13237,7 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSession(v **types.RemoteAccessS return nil } -func awsAwsjson11_deserializeDocumentRemoteAccessSessions(v *[]*types.RemoteAccessSession, value interface{}) error { +func awsAwsjson11_deserializeDocumentRemoteAccessSessions(v *[]types.RemoteAccessSession, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13215,18 +13250,20 @@ func awsAwsjson11_deserializeDocumentRemoteAccessSessions(v *[]*types.RemoteAcce return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RemoteAccessSession + var cv []types.RemoteAccessSession if *v == nil { - cv = []*types.RemoteAccessSession{} + cv = []types.RemoteAccessSession{} } else { cv = *v } for _, value := range shape { - var col *types.RemoteAccessSession - if err := awsAwsjson11_deserializeDocumentRemoteAccessSession(&col, value); err != nil { + var col types.RemoteAccessSession + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRemoteAccessSession(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13337,7 +13374,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -13349,7 +13386,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentRules(v *[]*types.Rule, value interface{}) error { +func awsAwsjson11_deserializeDocumentRules(v *[]types.Rule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13362,18 +13399,20 @@ func awsAwsjson11_deserializeDocumentRules(v *[]*types.Rule, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Rule + var cv []types.Rule if *v == nil { - cv = []*types.Rule{} + cv = []types.Rule{} } else { cv = *v } for _, value := range shape { - var col *types.Rule - if err := awsAwsjson11_deserializeDocumentRule(&col, value); err != nil { + var col types.Rule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13409,7 +13448,7 @@ func awsAwsjson11_deserializeDocumentRun(v **types.Run, value interface{}) error if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.AppUpload = &jtv + sv.AppUpload = ptr.String(jtv) } case "arn": @@ -13418,7 +13457,7 @@ func awsAwsjson11_deserializeDocumentRun(v **types.Run, value interface{}) error if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "billingMethod": @@ -13477,7 +13516,7 @@ func awsAwsjson11_deserializeDocumentRun(v **types.Run, value interface{}) error if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.DevicePoolArn = &jtv + sv.DevicePoolArn = ptr.String(jtv) } case "deviceSelectionResult": @@ -13517,7 +13556,7 @@ func awsAwsjson11_deserializeDocumentRun(v **types.Run, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Locale = &jtv + sv.Locale = ptr.String(jtv) } case "location": @@ -13531,7 +13570,7 @@ func awsAwsjson11_deserializeDocumentRun(v **types.Run, value interface{}) error if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "name": @@ -13540,7 +13579,7 @@ func awsAwsjson11_deserializeDocumentRun(v **types.Run, value interface{}) error if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "networkProfile": @@ -13554,7 +13593,7 @@ func awsAwsjson11_deserializeDocumentRun(v **types.Run, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParsingResultUrl = &jtv + sv.ParsingResultUrl = ptr.String(jtv) } case "platform": @@ -13608,7 +13647,7 @@ func awsAwsjson11_deserializeDocumentRun(v **types.Run, value interface{}) error if !ok { return fmt.Errorf("expected SkipAppResign to be of type *bool, got %T instead", value) } - sv.SkipAppResign = &jtv + sv.SkipAppResign = ptr.Bool(jtv) } case "started": @@ -13652,7 +13691,7 @@ func awsAwsjson11_deserializeDocumentRun(v **types.Run, value interface{}) error if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.TestSpecArn = &jtv + sv.TestSpecArn = ptr.String(jtv) } case "totalJobs": @@ -13683,7 +13722,7 @@ func awsAwsjson11_deserializeDocumentRun(v **types.Run, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.WebUrl = &jtv + sv.WebUrl = ptr.String(jtv) } default: @@ -13695,7 +13734,7 @@ func awsAwsjson11_deserializeDocumentRun(v **types.Run, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentRuns(v *[]*types.Run, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuns(v *[]types.Run, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13708,18 +13747,20 @@ func awsAwsjson11_deserializeDocumentRuns(v *[]*types.Run, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Run + var cv []types.Run if *v == nil { - cv = []*types.Run{} + cv = []types.Run{} } else { cv = *v } for _, value := range shape { - var col *types.Run - if err := awsAwsjson11_deserializeDocumentRun(&col, value); err != nil { + var col types.Run + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRun(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13755,7 +13796,7 @@ func awsAwsjson11_deserializeDocumentSample(v **types.Sample, value interface{}) if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "type": @@ -13773,7 +13814,7 @@ func awsAwsjson11_deserializeDocumentSample(v **types.Sample, value interface{}) if !ok { return fmt.Errorf("expected URL to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -13785,7 +13826,7 @@ func awsAwsjson11_deserializeDocumentSample(v **types.Sample, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentSamples(v *[]*types.Sample, value interface{}) error { +func awsAwsjson11_deserializeDocumentSamples(v *[]types.Sample, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13798,18 +13839,20 @@ func awsAwsjson11_deserializeDocumentSamples(v *[]*types.Sample, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Sample + var cv []types.Sample if *v == nil { - cv = []*types.Sample{} + cv = []types.Sample{} } else { cv = *v } for _, value := range shape { - var col *types.Sample - if err := awsAwsjson11_deserializeDocumentSample(&col, value); err != nil { + var col types.Sample + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSample(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13845,7 +13888,7 @@ func awsAwsjson11_deserializeDocumentServiceAccountException(v **types.ServiceAc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13885,7 +13928,7 @@ func awsAwsjson11_deserializeDocumentSuite(v **types.Suite, value interface{}) e if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "counters": @@ -13917,7 +13960,7 @@ func awsAwsjson11_deserializeDocumentSuite(v **types.Suite, value interface{}) e if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "name": @@ -13926,7 +13969,7 @@ func awsAwsjson11_deserializeDocumentSuite(v **types.Suite, value interface{}) e if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "result": @@ -13991,7 +14034,7 @@ func awsAwsjson11_deserializeDocumentSuite(v **types.Suite, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentSuites(v *[]*types.Suite, value interface{}) error { +func awsAwsjson11_deserializeDocumentSuites(v *[]types.Suite, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14004,18 +14047,20 @@ func awsAwsjson11_deserializeDocumentSuites(v *[]*types.Suite, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Suite + var cv []types.Suite if *v == nil { - cv = []*types.Suite{} + cv = []types.Suite{} } else { cv = *v } for _, value := range shape { - var col *types.Suite - if err := awsAwsjson11_deserializeDocumentSuite(&col, value); err != nil { + var col types.Suite + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSuite(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14051,7 +14096,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -14060,7 +14105,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -14072,7 +14117,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14085,18 +14130,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14132,7 +14179,7 @@ func awsAwsjson11_deserializeDocumentTagOperationException(v **types.TagOperatio if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceName": @@ -14141,7 +14188,7 @@ func awsAwsjson11_deserializeDocumentTagOperationException(v **types.TagOperatio if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } default: @@ -14181,7 +14228,7 @@ func awsAwsjson11_deserializeDocumentTagPolicyException(v **types.TagPolicyExcep if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceName": @@ -14190,7 +14237,7 @@ func awsAwsjson11_deserializeDocumentTagPolicyException(v **types.TagPolicyExcep if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } default: @@ -14230,7 +14277,7 @@ func awsAwsjson11_deserializeDocumentTest(v **types.Test, value interface{}) err if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "counters": @@ -14262,7 +14309,7 @@ func awsAwsjson11_deserializeDocumentTest(v **types.Test, value interface{}) err if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "name": @@ -14271,7 +14318,7 @@ func awsAwsjson11_deserializeDocumentTest(v **types.Test, value interface{}) err if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "result": @@ -14364,7 +14411,7 @@ func awsAwsjson11_deserializeDocumentTestGridProject(v **types.TestGridProject, if !ok { return fmt.Errorf("expected DeviceFarmArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "created": @@ -14386,7 +14433,7 @@ func awsAwsjson11_deserializeDocumentTestGridProject(v **types.TestGridProject, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "name": @@ -14395,7 +14442,7 @@ func awsAwsjson11_deserializeDocumentTestGridProject(v **types.TestGridProject, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -14407,7 +14454,7 @@ func awsAwsjson11_deserializeDocumentTestGridProject(v **types.TestGridProject, return nil } -func awsAwsjson11_deserializeDocumentTestGridProjects(v *[]*types.TestGridProject, value interface{}) error { +func awsAwsjson11_deserializeDocumentTestGridProjects(v *[]types.TestGridProject, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14420,18 +14467,20 @@ func awsAwsjson11_deserializeDocumentTestGridProjects(v *[]*types.TestGridProjec return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TestGridProject + var cv []types.TestGridProject if *v == nil { - cv = []*types.TestGridProject{} + cv = []types.TestGridProject{} } else { cv = *v } for _, value := range shape { - var col *types.TestGridProject - if err := awsAwsjson11_deserializeDocumentTestGridProject(&col, value); err != nil { + var col types.TestGridProject + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTestGridProject(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14467,7 +14516,7 @@ func awsAwsjson11_deserializeDocumentTestGridSession(v **types.TestGridSession, if !ok { return fmt.Errorf("expected DeviceFarmArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "billingMinutes": @@ -14480,7 +14529,7 @@ func awsAwsjson11_deserializeDocumentTestGridSession(v **types.TestGridSession, if err != nil { return err } - sv.BillingMinutes = &f64 + sv.BillingMinutes = ptr.Float64(f64) } case "created": @@ -14515,7 +14564,7 @@ func awsAwsjson11_deserializeDocumentTestGridSession(v **types.TestGridSession, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SeleniumProperties = &jtv + sv.SeleniumProperties = ptr.String(jtv) } case "status": @@ -14564,7 +14613,7 @@ func awsAwsjson11_deserializeDocumentTestGridSessionAction(v **types.TestGridSes if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Action = &jtv + sv.Action = ptr.String(jtv) } case "duration": @@ -14577,7 +14626,7 @@ func awsAwsjson11_deserializeDocumentTestGridSessionAction(v **types.TestGridSes if err != nil { return err } - sv.Duration = &i64 + sv.Duration = ptr.Int64(i64) } case "requestMethod": @@ -14586,7 +14635,7 @@ func awsAwsjson11_deserializeDocumentTestGridSessionAction(v **types.TestGridSes if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestMethod = &jtv + sv.RequestMethod = ptr.String(jtv) } case "started": @@ -14608,7 +14657,7 @@ func awsAwsjson11_deserializeDocumentTestGridSessionAction(v **types.TestGridSes if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusCode = &jtv + sv.StatusCode = ptr.String(jtv) } default: @@ -14620,7 +14669,7 @@ func awsAwsjson11_deserializeDocumentTestGridSessionAction(v **types.TestGridSes return nil } -func awsAwsjson11_deserializeDocumentTestGridSessionActions(v *[]*types.TestGridSessionAction, value interface{}) error { +func awsAwsjson11_deserializeDocumentTestGridSessionActions(v *[]types.TestGridSessionAction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14633,18 +14682,20 @@ func awsAwsjson11_deserializeDocumentTestGridSessionActions(v *[]*types.TestGrid return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TestGridSessionAction + var cv []types.TestGridSessionAction if *v == nil { - cv = []*types.TestGridSessionAction{} + cv = []types.TestGridSessionAction{} } else { cv = *v } for _, value := range shape { - var col *types.TestGridSessionAction - if err := awsAwsjson11_deserializeDocumentTestGridSessionAction(&col, value); err != nil { + var col types.TestGridSessionAction + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTestGridSessionAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14680,7 +14731,7 @@ func awsAwsjson11_deserializeDocumentTestGridSessionArtifact(v **types.TestGridS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Filename = &jtv + sv.Filename = ptr.String(jtv) } case "type": @@ -14698,7 +14749,7 @@ func awsAwsjson11_deserializeDocumentTestGridSessionArtifact(v **types.TestGridS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -14710,7 +14761,7 @@ func awsAwsjson11_deserializeDocumentTestGridSessionArtifact(v **types.TestGridS return nil } -func awsAwsjson11_deserializeDocumentTestGridSessionArtifacts(v *[]*types.TestGridSessionArtifact, value interface{}) error { +func awsAwsjson11_deserializeDocumentTestGridSessionArtifacts(v *[]types.TestGridSessionArtifact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14723,18 +14774,20 @@ func awsAwsjson11_deserializeDocumentTestGridSessionArtifacts(v *[]*types.TestGr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TestGridSessionArtifact + var cv []types.TestGridSessionArtifact if *v == nil { - cv = []*types.TestGridSessionArtifact{} + cv = []types.TestGridSessionArtifact{} } else { cv = *v } for _, value := range shape { - var col *types.TestGridSessionArtifact - if err := awsAwsjson11_deserializeDocumentTestGridSessionArtifact(&col, value); err != nil { + var col types.TestGridSessionArtifact + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTestGridSessionArtifact(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14742,7 +14795,7 @@ func awsAwsjson11_deserializeDocumentTestGridSessionArtifacts(v *[]*types.TestGr return nil } -func awsAwsjson11_deserializeDocumentTestGridSessions(v *[]*types.TestGridSession, value interface{}) error { +func awsAwsjson11_deserializeDocumentTestGridSessions(v *[]types.TestGridSession, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14755,18 +14808,20 @@ func awsAwsjson11_deserializeDocumentTestGridSessions(v *[]*types.TestGridSessio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TestGridSession + var cv []types.TestGridSession if *v == nil { - cv = []*types.TestGridSession{} + cv = []types.TestGridSession{} } else { cv = *v } for _, value := range shape { - var col *types.TestGridSession - if err := awsAwsjson11_deserializeDocumentTestGridSession(&col, value); err != nil { + var col types.TestGridSession + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTestGridSession(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14774,7 +14829,7 @@ func awsAwsjson11_deserializeDocumentTestGridSessions(v *[]*types.TestGridSessio return nil } -func awsAwsjson11_deserializeDocumentTests(v *[]*types.Test, value interface{}) error { +func awsAwsjson11_deserializeDocumentTests(v *[]types.Test, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14787,18 +14842,20 @@ func awsAwsjson11_deserializeDocumentTests(v *[]*types.Test, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Test + var cv []types.Test if *v == nil { - cv = []*types.Test{} + cv = []types.Test{} } else { cv = *v } for _, value := range shape { - var col *types.Test - if err := awsAwsjson11_deserializeDocumentTest(&col, value); err != nil { + var col types.Test + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14834,7 +14891,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceName": @@ -14843,7 +14900,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } default: @@ -14887,7 +14944,7 @@ func awsAwsjson11_deserializeDocumentTrialMinutes(v **types.TrialMinutes, value if err != nil { return err } - sv.Remaining = &f64 + sv.Remaining = ptr.Float64(f64) } case "total": @@ -14900,7 +14957,7 @@ func awsAwsjson11_deserializeDocumentTrialMinutes(v **types.TrialMinutes, value if err != nil { return err } - sv.Total = &f64 + sv.Total = ptr.Float64(f64) } default: @@ -14940,7 +14997,7 @@ func awsAwsjson11_deserializeDocumentUniqueProblem(v **types.UniqueProblem, valu if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "problems": @@ -14957,7 +15014,7 @@ func awsAwsjson11_deserializeDocumentUniqueProblem(v **types.UniqueProblem, valu return nil } -func awsAwsjson11_deserializeDocumentUniqueProblems(v *[]*types.UniqueProblem, value interface{}) error { +func awsAwsjson11_deserializeDocumentUniqueProblems(v *[]types.UniqueProblem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14970,18 +15027,20 @@ func awsAwsjson11_deserializeDocumentUniqueProblems(v *[]*types.UniqueProblem, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UniqueProblem + var cv []types.UniqueProblem if *v == nil { - cv = []*types.UniqueProblem{} + cv = []types.UniqueProblem{} } else { cv = *v } for _, value := range shape { - var col *types.UniqueProblem - if err := awsAwsjson11_deserializeDocumentUniqueProblem(&col, value); err != nil { + var col types.UniqueProblem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUniqueProblem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14989,7 +15048,7 @@ func awsAwsjson11_deserializeDocumentUniqueProblems(v *[]*types.UniqueProblem, v return nil } -func awsAwsjson11_deserializeDocumentUniqueProblemsByExecutionResultMap(v *map[string][]*types.UniqueProblem, value interface{}) error { +func awsAwsjson11_deserializeDocumentUniqueProblemsByExecutionResultMap(v *map[string][]types.UniqueProblem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15002,18 +15061,20 @@ func awsAwsjson11_deserializeDocumentUniqueProblemsByExecutionResultMap(v *map[s return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*types.UniqueProblem + var mv map[string][]types.UniqueProblem if *v == nil { - mv = map[string][]*types.UniqueProblem{} + mv = map[string][]types.UniqueProblem{} } else { mv = *v } for key, value := range shape { - var parsedVal []*types.UniqueProblem - if err := awsAwsjson11_deserializeDocumentUniqueProblems(&parsedVal, value); err != nil { + var parsedVal []types.UniqueProblem + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentUniqueProblems(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -15049,7 +15110,7 @@ func awsAwsjson11_deserializeDocumentUpload(v **types.Upload, value interface{}) if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "category": @@ -15067,7 +15128,7 @@ func awsAwsjson11_deserializeDocumentUpload(v **types.Upload, value interface{}) if !ok { return fmt.Errorf("expected ContentType to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "created": @@ -15089,7 +15150,7 @@ func awsAwsjson11_deserializeDocumentUpload(v **types.Upload, value interface{}) if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "metadata": @@ -15098,7 +15159,7 @@ func awsAwsjson11_deserializeDocumentUpload(v **types.Upload, value interface{}) if !ok { return fmt.Errorf("expected Metadata to be of type string, got %T instead", value) } - sv.Metadata = &jtv + sv.Metadata = ptr.String(jtv) } case "name": @@ -15107,7 +15168,7 @@ func awsAwsjson11_deserializeDocumentUpload(v **types.Upload, value interface{}) if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -15134,7 +15195,7 @@ func awsAwsjson11_deserializeDocumentUpload(v **types.Upload, value interface{}) if !ok { return fmt.Errorf("expected URL to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -15146,7 +15207,7 @@ func awsAwsjson11_deserializeDocumentUpload(v **types.Upload, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentUploads(v *[]*types.Upload, value interface{}) error { +func awsAwsjson11_deserializeDocumentUploads(v *[]types.Upload, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15159,18 +15220,20 @@ func awsAwsjson11_deserializeDocumentUploads(v *[]*types.Upload, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Upload + var cv []types.Upload if *v == nil { - cv = []*types.Upload{} + cv = []types.Upload{} } else { cv = *v } for _, value := range shape { - var col *types.Upload - if err := awsAwsjson11_deserializeDocumentUpload(&col, value); err != nil { + var col types.Upload + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUpload(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15206,7 +15269,7 @@ func awsAwsjson11_deserializeDocumentVPCEConfiguration(v **types.VPCEConfigurati if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "serviceDnsName": @@ -15215,7 +15278,7 @@ func awsAwsjson11_deserializeDocumentVPCEConfiguration(v **types.VPCEConfigurati if !ok { return fmt.Errorf("expected ServiceDnsName to be of type string, got %T instead", value) } - sv.ServiceDnsName = &jtv + sv.ServiceDnsName = ptr.String(jtv) } case "vpceConfigurationDescription": @@ -15224,7 +15287,7 @@ func awsAwsjson11_deserializeDocumentVPCEConfiguration(v **types.VPCEConfigurati if !ok { return fmt.Errorf("expected VPCEConfigurationDescription to be of type string, got %T instead", value) } - sv.VpceConfigurationDescription = &jtv + sv.VpceConfigurationDescription = ptr.String(jtv) } case "vpceConfigurationName": @@ -15233,7 +15296,7 @@ func awsAwsjson11_deserializeDocumentVPCEConfiguration(v **types.VPCEConfigurati if !ok { return fmt.Errorf("expected VPCEConfigurationName to be of type string, got %T instead", value) } - sv.VpceConfigurationName = &jtv + sv.VpceConfigurationName = ptr.String(jtv) } case "vpceServiceName": @@ -15242,7 +15305,7 @@ func awsAwsjson11_deserializeDocumentVPCEConfiguration(v **types.VPCEConfigurati if !ok { return fmt.Errorf("expected VPCEServiceName to be of type string, got %T instead", value) } - sv.VpceServiceName = &jtv + sv.VpceServiceName = ptr.String(jtv) } default: @@ -15254,7 +15317,7 @@ func awsAwsjson11_deserializeDocumentVPCEConfiguration(v **types.VPCEConfigurati return nil } -func awsAwsjson11_deserializeDocumentVPCEConfigurations(v *[]*types.VPCEConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentVPCEConfigurations(v *[]types.VPCEConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15267,18 +15330,20 @@ func awsAwsjson11_deserializeDocumentVPCEConfigurations(v *[]*types.VPCEConfigur return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VPCEConfiguration + var cv []types.VPCEConfiguration if *v == nil { - cv = []*types.VPCEConfiguration{} + cv = []types.VPCEConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.VPCEConfiguration - if err := awsAwsjson11_deserializeDocumentVPCEConfiguration(&col, value); err != nil { + var col types.VPCEConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVPCEConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15543,7 +15608,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTestGridUrlOutput(v **CreateTestGri if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -16237,7 +16302,7 @@ func awsAwsjson11_deserializeOpDocumentGetOfferingStatusOutput(v **GetOfferingSt if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -16642,7 +16707,7 @@ func awsAwsjson11_deserializeOpDocumentListArtifactsOutput(v **ListArtifactsOutp if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -16687,7 +16752,7 @@ func awsAwsjson11_deserializeOpDocumentListDeviceInstancesOutput(v **ListDeviceI if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -16732,7 +16797,7 @@ func awsAwsjson11_deserializeOpDocumentListDevicePoolsOutput(v **ListDevicePools if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -16777,7 +16842,7 @@ func awsAwsjson11_deserializeOpDocumentListDevicesOutput(v **ListDevicesOutput, if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -16822,7 +16887,7 @@ func awsAwsjson11_deserializeOpDocumentListInstanceProfilesOutput(v **ListInstan if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -16867,7 +16932,7 @@ func awsAwsjson11_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, value if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -16912,7 +16977,7 @@ func awsAwsjson11_deserializeOpDocumentListNetworkProfilesOutput(v **ListNetwork if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -16952,7 +17017,7 @@ func awsAwsjson11_deserializeOpDocumentListOfferingPromotionsOutput(v **ListOffe if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "offeringPromotions": @@ -16997,7 +17062,7 @@ func awsAwsjson11_deserializeOpDocumentListOfferingsOutput(v **ListOfferingsOutp if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "offerings": @@ -17042,7 +17107,7 @@ func awsAwsjson11_deserializeOpDocumentListOfferingTransactionsOutput(v **ListOf if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "offeringTransactions": @@ -17087,7 +17152,7 @@ func awsAwsjson11_deserializeOpDocumentListProjectsOutput(v **ListProjectsOutput if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "projects": @@ -17132,7 +17197,7 @@ func awsAwsjson11_deserializeOpDocumentListRemoteAccessSessionsOutput(v **ListRe if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "remoteAccessSessions": @@ -17177,7 +17242,7 @@ func awsAwsjson11_deserializeOpDocumentListRunsOutput(v **ListRunsOutput, value if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "runs": @@ -17222,7 +17287,7 @@ func awsAwsjson11_deserializeOpDocumentListSamplesOutput(v **ListSamplesOutput, if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "samples": @@ -17267,7 +17332,7 @@ func awsAwsjson11_deserializeOpDocumentListSuitesOutput(v **ListSuitesOutput, va if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "suites": @@ -17348,7 +17413,7 @@ func awsAwsjson11_deserializeOpDocumentListTestGridProjectsOutput(v **ListTestGr if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "testGridProjects": @@ -17398,7 +17463,7 @@ func awsAwsjson11_deserializeOpDocumentListTestGridSessionActionsOutput(v **List if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -17443,7 +17508,7 @@ func awsAwsjson11_deserializeOpDocumentListTestGridSessionArtifactsOutput(v **Li if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -17483,7 +17548,7 @@ func awsAwsjson11_deserializeOpDocumentListTestGridSessionsOutput(v **ListTestGr if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "testGridSessions": @@ -17528,7 +17593,7 @@ func awsAwsjson11_deserializeOpDocumentListTestsOutput(v **ListTestsOutput, valu if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tests": @@ -17573,7 +17638,7 @@ func awsAwsjson11_deserializeOpDocumentListUniqueProblemsOutput(v **ListUniquePr if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "uniqueProblems": @@ -17618,7 +17683,7 @@ func awsAwsjson11_deserializeOpDocumentListUploadsOutput(v **ListUploadsOutput, if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "uploads": @@ -17663,7 +17728,7 @@ func awsAwsjson11_deserializeOpDocumentListVPCEConfigurationsOutput(v **ListVPCE if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "vpceConfigurations": diff --git a/service/devicefarm/go.mod b/service/devicefarm/go.mod index 087499cecfd..da52aa68d47 100644 --- a/service/devicefarm/go.mod +++ b/service/devicefarm/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/devicefarm go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/devicefarm/serializers.go b/service/devicefarm/serializers.go index b8a943c27cb..66eea6eeae4 100644 --- a/service/devicefarm/serializers.go +++ b/service/devicefarm/serializers.go @@ -3549,32 +3549,24 @@ func (m *awsAwsjson11_serializeOpUpdateVPCEConfiguration) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAmazonResourceNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAmazonResourceNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentAndroidPaths(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAndroidPaths(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3650,49 +3642,37 @@ func awsAwsjson11_serializeDocumentDeviceFilter(v *types.DeviceFilter, value smi return nil } -func awsAwsjson11_serializeDocumentDeviceFilters(v []*types.DeviceFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDeviceFilters(v []types.DeviceFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDeviceFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDeviceFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentDeviceFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDeviceFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentDeviceHostPaths(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDeviceHostPaths(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3748,32 +3728,24 @@ func awsAwsjson11_serializeDocumentExecutionConfiguration(v *types.ExecutionConf return nil } -func awsAwsjson11_serializeDocumentInstanceLabels(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceLabels(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentIosPaths(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIosPaths(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3795,17 +3767,13 @@ func awsAwsjson11_serializeDocumentLocation(v *types.Location, value smithyjson. return nil } -func awsAwsjson11_serializeDocumentPackageIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPackageIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3859,17 +3827,13 @@ func awsAwsjson11_serializeDocumentRule(v *types.Rule, value smithyjson.Value) e return nil } -func awsAwsjson11_serializeDocumentRules(v []*types.Rule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRules(v []types.Rule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRule(&v[i], av); err != nil { return err } } @@ -3989,49 +3953,37 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTestParameters(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTestParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -4128,9 +4080,9 @@ func awsAwsjson11_serializeOpDocumentCreateNetworkProfileInput(v *CreateNetworkP ok.Long(*v.DownlinkJitterMs) } - if v.DownlinkLossPercent != nil { + if v.DownlinkLossPercent != 0 { ok := object.Key("downlinkLossPercent") - ok.Integer(*v.DownlinkLossPercent) + ok.Integer(v.DownlinkLossPercent) } if v.Name != nil { @@ -4163,9 +4115,9 @@ func awsAwsjson11_serializeOpDocumentCreateNetworkProfileInput(v *CreateNetworkP ok.Long(*v.UplinkJitterMs) } - if v.UplinkLossPercent != nil { + if v.UplinkLossPercent != 0 { ok := object.Key("uplinkLossPercent") - ok.Integer(*v.UplinkLossPercent) + ok.Integer(v.UplinkLossPercent) } return nil @@ -5474,9 +5426,9 @@ func awsAwsjson11_serializeOpDocumentUpdateNetworkProfileInput(v *UpdateNetworkP ok.Long(*v.DownlinkJitterMs) } - if v.DownlinkLossPercent != nil { + if v.DownlinkLossPercent != 0 { ok := object.Key("downlinkLossPercent") - ok.Integer(*v.DownlinkLossPercent) + ok.Integer(v.DownlinkLossPercent) } if v.Name != nil { @@ -5504,9 +5456,9 @@ func awsAwsjson11_serializeOpDocumentUpdateNetworkProfileInput(v *UpdateNetworkP ok.Long(*v.UplinkJitterMs) } - if v.UplinkLossPercent != nil { + if v.UplinkLossPercent != 0 { ok := object.Key("uplinkLossPercent") - ok.Integer(*v.UplinkLossPercent) + ok.Integer(v.UplinkLossPercent) } return nil diff --git a/service/devicefarm/types/types.go b/service/devicefarm/types/types.go index 522552c6f78..7338e98a08f 100644 --- a/service/devicefarm/types/types.go +++ b/service/devicefarm/types/types.go @@ -22,7 +22,7 @@ type AccountSettings struct { // The maximum number of device slots that the AWS account can purchase. Each // maximum is expressed as an offering-id:number pair, where the offering-id // represents one of the IDs returned by the ListOfferings command. - MaxSlots map[string]*int32 + MaxSlots map[string]int32 // When set to true, for private devices, Device Farm does not sign your app again. // For public devices, Device Farm always signs your apps again. For more @@ -34,11 +34,11 @@ type AccountSettings struct { TrialMinutes *TrialMinutes // Returns the unmetered devices you have purchased or want to purchase. - UnmeteredDevices map[string]*int32 + UnmeteredDevices map[string]int32 // Returns the unmetered remote access devices you have purchased or want to // purchase. - UnmeteredRemoteAccessDevices map[string]*int32 + UnmeteredRemoteAccessDevices map[string]int32 } // Represents the output of a test. Examples of artifacts include logs and @@ -174,7 +174,7 @@ type CreateRemoteAccessSessionConfiguration struct { BillingMethod BillingMethod // An array of ARNs included in the VPC endpoint configuration. - VpceConfigurationArns []*string + VpceConfigurationArns []string } // A JSON object that specifies the paths where the artifacts generated by the @@ -185,15 +185,15 @@ type CustomerArtifactPaths struct { // Comma-separated list of paths on the Android device where the artifacts // generated by the customer's tests are pulled from. - AndroidPaths []*string + AndroidPaths []string // Comma-separated list of paths in the test execution environment where the // artifacts generated by the customer's tests are pulled from. - DeviceHostPaths []*string + DeviceHostPaths []string // Comma-separated list of paths on the iOS device where the artifacts generated by // the customer's tests are pulled from. - IosPaths []*string + IosPaths []string } // Represents a device type that an app is tested against. @@ -233,7 +233,7 @@ type Device struct { Image *string // The instances that belong to this device. - Instances []*DeviceInstance + Instances []DeviceInstance // The device's manufacturer name. Manufacturer *string @@ -332,7 +332,7 @@ type DeviceFilter struct { // PHONE or TABLET. // // * The FLEET_TYPE attribute can be set to PUBLIC or PRIVATE. - Values []*string + Values []string } // Represents the device instance. @@ -348,7 +348,7 @@ type DeviceInstance struct { InstanceProfile *InstanceProfile // An array of strings that describe the device instance. - Labels []*string + Labels []string // The status of the device instance. Valid values are listed here. Status InstanceStatus @@ -394,7 +394,7 @@ type DevicePool struct { Name *string // Information about the device pool's rules. - Rules []*Rule + Rules []Rule // The device pool's type. Allowed values include: // @@ -416,7 +416,7 @@ type DevicePoolCompatibilityResult struct { Device *Device // Information about the compatibility. - IncompatibilityMessages []*IncompatibilityMessage + IncompatibilityMessages []IncompatibilityMessage } // Represents the device filters used in a test run and the maximum number of @@ -510,7 +510,7 @@ type DeviceSelectionConfiguration struct { // or PRIVATE. // // This member is required. - Filters []*DeviceFilter + Filters []DeviceFilter // The maximum number of devices to be included in a test run. // @@ -524,7 +524,7 @@ type DeviceSelectionConfiguration struct { type DeviceSelectionResult struct { // The filters in a device selection result. - Filters []*DeviceFilter + Filters []DeviceFilter // The number of devices that matched the device filter selection criteria. MatchedDevicesCount *int32 @@ -596,7 +596,7 @@ type InstanceProfile struct { // An array of strings containing the list of app packages that should not be // cleaned up from the device after a test run completes. The list of packages is // considered only if you set packageCleanup to true. - ExcludeAppPackagesFromCleanup []*string + ExcludeAppPackagesFromCleanup []string // The name of the instance profile. Name *string @@ -784,7 +784,7 @@ type NetworkProfile struct { DownlinkJitterMs *int64 // Proportion of received packets that fail to arrive from 0 to 100 percent. - DownlinkLossPercent *int32 + DownlinkLossPercent int32 // The name of the network profile. Name *string @@ -804,7 +804,7 @@ type NetworkProfile struct { UplinkJitterMs *int64 // Proportion of transmitted packets that fail to arrive from 0 to 100 percent. - UplinkLossPercent *int32 + UplinkLossPercent int32 } // Represents the metadata of a device offering. @@ -820,7 +820,7 @@ type Offering struct { Platform DevicePlatform // Specifies whether there are recurring charges for the offering. - RecurringCharges []*RecurringCharge + RecurringCharges []RecurringCharge // The type of offering (for example, RECURRING) for a device. Type OfferingType @@ -1401,7 +1401,7 @@ type Sample struct { type ScheduleRunConfiguration struct { // A list of upload ARNs for app packages to be installed with your app. - AuxiliaryApps []*string + AuxiliaryApps []string // Specifies the billing method for a test run: metered or unmetered. If the // parameter is not specified, the default value is metered. If you have purchased @@ -1429,7 +1429,7 @@ type ScheduleRunConfiguration struct { Radios *Radios // An array of ARNs for your VPC endpoint configurations. - VpceConfigurationArns []*string + VpceConfigurationArns []string } // Represents test settings. This data structure is passed in as the test parameter @@ -1581,7 +1581,7 @@ type ScheduleRunTest struct { // // * Running multiple tests: // com.android.abc.Test1,com.android.abc.Test2 - Parameters map[string]*string + Parameters map[string]string // The ARN of the uploaded test to be run. TestPackageArn *string @@ -1927,7 +1927,7 @@ type UniqueProblem struct { Message *string // Information about the problems. - Problems []*Problem + Problems []Problem } // An app or a set of one or more tests to upload or that have been uploaded. diff --git a/service/devicefarm/validators.go b/service/devicefarm/validators.go index e35def50948..8c8d13e5ccd 100644 --- a/service/devicefarm/validators.go +++ b/service/devicefarm/validators.go @@ -1608,13 +1608,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/directconnect/api_op_AcceptDirectConnectGatewayAssociationProposal.go b/service/directconnect/api_op_AcceptDirectConnectGatewayAssociationProposal.go index c116232d800..e27ac64ab42 100644 --- a/service/directconnect/api_op_AcceptDirectConnectGatewayAssociationProposal.go +++ b/service/directconnect/api_op_AcceptDirectConnectGatewayAssociationProposal.go @@ -50,7 +50,7 @@ type AcceptDirectConnectGatewayAssociationProposalInput struct { // information about how to set the prefixes, see Allowed Prefixes // (https://docs.aws.amazon.com/directconnect/latest/UserGuide/multi-account-associate-vgw.html#allowed-prefixes) // in the AWS Direct Connect User Guide. - OverrideAllowedPrefixesToDirectConnectGateway []*types.RouteFilterPrefix + OverrideAllowedPrefixesToDirectConnectGateway []types.RouteFilterPrefix } type AcceptDirectConnectGatewayAssociationProposalOutput struct { diff --git a/service/directconnect/api_op_AllocateConnectionOnInterconnect.go b/service/directconnect/api_op_AllocateConnectionOnInterconnect.go index 064da3222e3..0523d020f04 100644 --- a/service/directconnect/api_op_AllocateConnectionOnInterconnect.go +++ b/service/directconnect/api_op_AllocateConnectionOnInterconnect.go @@ -60,7 +60,7 @@ type AllocateConnectionOnInterconnectInput struct { // The dedicated VLAN provisioned to the connection. // // This member is required. - Vlan *int32 + Vlan int32 } // Information about an AWS Direct Connect connection. @@ -143,10 +143,10 @@ type AllocateConnectionOnInterconnectOutput struct { Region *string // The tags associated with the connection. - Tags []*types.Tag + Tags []types.Tag // The ID of the VLAN. - Vlan *int32 + Vlan int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_AllocateHostedConnection.go b/service/directconnect/api_op_AllocateHostedConnection.go index 2db02388337..f5828c17d46 100644 --- a/service/directconnect/api_op_AllocateHostedConnection.go +++ b/service/directconnect/api_op_AllocateHostedConnection.go @@ -62,10 +62,10 @@ type AllocateHostedConnectionInput struct { // The dedicated VLAN provisioned to the hosted connection. // // This member is required. - Vlan *int32 + Vlan int32 // The tags associated with the connection. - Tags []*types.Tag + Tags []types.Tag } // Information about an AWS Direct Connect connection. @@ -148,10 +148,10 @@ type AllocateHostedConnectionOutput struct { Region *string // The tags associated with the connection. - Tags []*types.Tag + Tags []types.Tag // The ID of the VLAN. - Vlan *int32 + Vlan int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_AllocatePrivateVirtualInterface.go b/service/directconnect/api_op_AllocatePrivateVirtualInterface.go index ee236749bc3..c86077d6eb2 100644 --- a/service/directconnect/api_op_AllocatePrivateVirtualInterface.go +++ b/service/directconnect/api_op_AllocatePrivateVirtualInterface.go @@ -62,7 +62,7 @@ type AllocatePrivateVirtualInterfaceOutput struct { // The autonomous system (AS) number for Border Gateway Protocol (BGP) // configuration. The valid values are 1-2147483647. - Asn *int32 + Asn int32 // The authentication key for BGP configuration. This string has a minimum length // of 6 characters and and a maximun lenth of 80 characters. @@ -72,7 +72,7 @@ type AllocatePrivateVirtualInterfaceOutput struct { AwsDeviceV2 *string // The BGP peers configured on this virtual interface. - BgpPeers []*types.BGPPeer + BgpPeers []types.BGPPeer // The ID of the connection. ConnectionId *string @@ -104,10 +104,10 @@ type AllocatePrivateVirtualInterfaceOutput struct { // The routes to be advertised to the AWS network in this Region. Applies to public // virtual interfaces. - RouteFilterPrefixes []*types.RouteFilterPrefix + RouteFilterPrefixes []types.RouteFilterPrefix // The tags associated with the virtual interface. - Tags []*types.Tag + Tags []types.Tag // The ID of the virtual private gateway. Applies only to private virtual // interfaces. @@ -162,7 +162,7 @@ type AllocatePrivateVirtualInterfaceOutput struct { VirtualInterfaceType *string // The ID of the VLAN. - Vlan *int32 + Vlan int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_AllocatePublicVirtualInterface.go b/service/directconnect/api_op_AllocatePublicVirtualInterface.go index 2e10ef60cc8..d83fcee6bde 100644 --- a/service/directconnect/api_op_AllocatePublicVirtualInterface.go +++ b/service/directconnect/api_op_AllocatePublicVirtualInterface.go @@ -67,7 +67,7 @@ type AllocatePublicVirtualInterfaceOutput struct { // The autonomous system (AS) number for Border Gateway Protocol (BGP) // configuration. The valid values are 1-2147483647. - Asn *int32 + Asn int32 // The authentication key for BGP configuration. This string has a minimum length // of 6 characters and and a maximun lenth of 80 characters. @@ -77,7 +77,7 @@ type AllocatePublicVirtualInterfaceOutput struct { AwsDeviceV2 *string // The BGP peers configured on this virtual interface. - BgpPeers []*types.BGPPeer + BgpPeers []types.BGPPeer // The ID of the connection. ConnectionId *string @@ -109,10 +109,10 @@ type AllocatePublicVirtualInterfaceOutput struct { // The routes to be advertised to the AWS network in this Region. Applies to public // virtual interfaces. - RouteFilterPrefixes []*types.RouteFilterPrefix + RouteFilterPrefixes []types.RouteFilterPrefix // The tags associated with the virtual interface. - Tags []*types.Tag + Tags []types.Tag // The ID of the virtual private gateway. Applies only to private virtual // interfaces. @@ -167,7 +167,7 @@ type AllocatePublicVirtualInterfaceOutput struct { VirtualInterfaceType *string // The ID of the VLAN. - Vlan *int32 + Vlan int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_AssociateConnectionWithLag.go b/service/directconnect/api_op_AssociateConnectionWithLag.go index e02a3d32661..232154ee5bc 100644 --- a/service/directconnect/api_op_AssociateConnectionWithLag.go +++ b/service/directconnect/api_op_AssociateConnectionWithLag.go @@ -134,10 +134,10 @@ type AssociateConnectionWithLagOutput struct { Region *string // The tags associated with the connection. - Tags []*types.Tag + Tags []types.Tag // The ID of the VLAN. - Vlan *int32 + Vlan int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_AssociateHostedConnection.go b/service/directconnect/api_op_AssociateHostedConnection.go index 4e466145442..cb7e8bd4181 100644 --- a/service/directconnect/api_op_AssociateHostedConnection.go +++ b/service/directconnect/api_op_AssociateHostedConnection.go @@ -126,10 +126,10 @@ type AssociateHostedConnectionOutput struct { Region *string // The tags associated with the connection. - Tags []*types.Tag + Tags []types.Tag // The ID of the VLAN. - Vlan *int32 + Vlan int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_AssociateVirtualInterface.go b/service/directconnect/api_op_AssociateVirtualInterface.go index d2b4e99a86b..399e9ae10f6 100644 --- a/service/directconnect/api_op_AssociateVirtualInterface.go +++ b/service/directconnect/api_op_AssociateVirtualInterface.go @@ -64,7 +64,7 @@ type AssociateVirtualInterfaceOutput struct { // The autonomous system (AS) number for Border Gateway Protocol (BGP) // configuration. The valid values are 1-2147483647. - Asn *int32 + Asn int32 // The authentication key for BGP configuration. This string has a minimum length // of 6 characters and and a maximun lenth of 80 characters. @@ -74,7 +74,7 @@ type AssociateVirtualInterfaceOutput struct { AwsDeviceV2 *string // The BGP peers configured on this virtual interface. - BgpPeers []*types.BGPPeer + BgpPeers []types.BGPPeer // The ID of the connection. ConnectionId *string @@ -106,10 +106,10 @@ type AssociateVirtualInterfaceOutput struct { // The routes to be advertised to the AWS network in this Region. Applies to public // virtual interfaces. - RouteFilterPrefixes []*types.RouteFilterPrefix + RouteFilterPrefixes []types.RouteFilterPrefix // The tags associated with the virtual interface. - Tags []*types.Tag + Tags []types.Tag // The ID of the virtual private gateway. Applies only to private virtual // interfaces. @@ -164,7 +164,7 @@ type AssociateVirtualInterfaceOutput struct { VirtualInterfaceType *string // The ID of the VLAN. - Vlan *int32 + Vlan int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_CreateConnection.go b/service/directconnect/api_op_CreateConnection.go index 5541c88243f..ab8120dc28f 100644 --- a/service/directconnect/api_op_CreateConnection.go +++ b/service/directconnect/api_op_CreateConnection.go @@ -60,7 +60,7 @@ type CreateConnectionInput struct { ProviderName *string // The tags to associate with the lag. - Tags []*types.Tag + Tags []types.Tag } // Information about an AWS Direct Connect connection. @@ -143,10 +143,10 @@ type CreateConnectionOutput struct { Region *string // The tags associated with the connection. - Tags []*types.Tag + Tags []types.Tag // The ID of the VLAN. - Vlan *int32 + Vlan int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_CreateDirectConnectGatewayAssociation.go b/service/directconnect/api_op_CreateDirectConnectGatewayAssociation.go index 6e416af1480..88dc53b33b0 100644 --- a/service/directconnect/api_op_CreateDirectConnectGatewayAssociation.go +++ b/service/directconnect/api_op_CreateDirectConnectGatewayAssociation.go @@ -41,7 +41,7 @@ type CreateDirectConnectGatewayAssociationInput struct { // information about how to set the prefixes, see Allowed Prefixes // (https://docs.aws.amazon.com/directconnect/latest/UserGuide/multi-account-associate-vgw.html#allowed-prefixes) // in the AWS Direct Connect User Guide. - AddAllowedPrefixesToDirectConnectGateway []*types.RouteFilterPrefix + AddAllowedPrefixesToDirectConnectGateway []types.RouteFilterPrefix // The ID of the virtual private gateway or transit gateway. GatewayId *string diff --git a/service/directconnect/api_op_CreateDirectConnectGatewayAssociationProposal.go b/service/directconnect/api_op_CreateDirectConnectGatewayAssociationProposal.go index ab215ef36e9..d9a440ac628 100644 --- a/service/directconnect/api_op_CreateDirectConnectGatewayAssociationProposal.go +++ b/service/directconnect/api_op_CreateDirectConnectGatewayAssociationProposal.go @@ -48,10 +48,10 @@ type CreateDirectConnectGatewayAssociationProposalInput struct { GatewayId *string // The Amazon VPC prefixes to advertise to the Direct Connect gateway. - AddAllowedPrefixesToDirectConnectGateway []*types.RouteFilterPrefix + AddAllowedPrefixesToDirectConnectGateway []types.RouteFilterPrefix // The Amazon VPC prefixes to no longer advertise to the Direct Connect gateway. - RemoveAllowedPrefixesToDirectConnectGateway []*types.RouteFilterPrefix + RemoveAllowedPrefixesToDirectConnectGateway []types.RouteFilterPrefix } type CreateDirectConnectGatewayAssociationProposalOutput struct { diff --git a/service/directconnect/api_op_CreateInterconnect.go b/service/directconnect/api_op_CreateInterconnect.go index 77fb3ec39cc..a6bdf76f745 100644 --- a/service/directconnect/api_op_CreateInterconnect.go +++ b/service/directconnect/api_op_CreateInterconnect.go @@ -68,7 +68,7 @@ type CreateInterconnectInput struct { ProviderName *string // The tags to associate with the interconnect. - Tags []*types.Tag + Tags []types.Tag } // Information about an interconnect. @@ -136,7 +136,7 @@ type CreateInterconnectOutput struct { Region *string // The tags associated with the interconnect. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_CreateLag.go b/service/directconnect/api_op_CreateLag.go index 8fa6ca4ef49..ff8c5088555 100644 --- a/service/directconnect/api_op_CreateLag.go +++ b/service/directconnect/api_op_CreateLag.go @@ -67,10 +67,10 @@ type CreateLagInput struct { // by the LAG. // // This member is required. - NumberOfConnections *int32 + NumberOfConnections int32 // The tags to associate with the automtically created LAGs. - ChildConnectionTags []*types.Tag + ChildConnectionTags []types.Tag // The ID of an existing dedicated connection to migrate to the LAG. ConnectionId *string @@ -79,14 +79,14 @@ type CreateLagInput struct { ProviderName *string // The tags to associate with the LAG. - Tags []*types.Tag + Tags []types.Tag } // Information about a link aggregation group (LAG). type CreateLagOutput struct { // Indicates whether the LAG can host other connections. - AllowsHostedConnections *bool + AllowsHostedConnections bool // The AWS Direct Connect endpoint that hosts the LAG. AwsDevice *string @@ -95,7 +95,7 @@ type CreateLagOutput struct { AwsDeviceV2 *string // The connections bundled by the LAG. - Connections []*types.Connection + Connections []types.Connection // The individual bandwidth of the physical connections bundled by the LAG. The // possible values are 1Gbps and 10Gbps. @@ -142,11 +142,11 @@ type CreateLagOutput struct { // The minimum number of physical dedicated connections that must be operational // for the LAG itself to be operational. - MinimumLinks *int32 + MinimumLinks int32 // The number of physical dedicated connections bundled by the LAG, up to a maximum // of 10. - NumberOfConnections *int32 + NumberOfConnections int32 // The ID of the AWS account that owns the LAG. OwnerAccount *string @@ -158,7 +158,7 @@ type CreateLagOutput struct { Region *string // The tags associated with the LAG. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_CreatePrivateVirtualInterface.go b/service/directconnect/api_op_CreatePrivateVirtualInterface.go index 1d41b9dfc3a..c23560f616b 100644 --- a/service/directconnect/api_op_CreatePrivateVirtualInterface.go +++ b/service/directconnect/api_op_CreatePrivateVirtualInterface.go @@ -66,7 +66,7 @@ type CreatePrivateVirtualInterfaceOutput struct { // The autonomous system (AS) number for Border Gateway Protocol (BGP) // configuration. The valid values are 1-2147483647. - Asn *int32 + Asn int32 // The authentication key for BGP configuration. This string has a minimum length // of 6 characters and and a maximun lenth of 80 characters. @@ -76,7 +76,7 @@ type CreatePrivateVirtualInterfaceOutput struct { AwsDeviceV2 *string // The BGP peers configured on this virtual interface. - BgpPeers []*types.BGPPeer + BgpPeers []types.BGPPeer // The ID of the connection. ConnectionId *string @@ -108,10 +108,10 @@ type CreatePrivateVirtualInterfaceOutput struct { // The routes to be advertised to the AWS network in this Region. Applies to public // virtual interfaces. - RouteFilterPrefixes []*types.RouteFilterPrefix + RouteFilterPrefixes []types.RouteFilterPrefix // The tags associated with the virtual interface. - Tags []*types.Tag + Tags []types.Tag // The ID of the virtual private gateway. Applies only to private virtual // interfaces. @@ -166,7 +166,7 @@ type CreatePrivateVirtualInterfaceOutput struct { VirtualInterfaceType *string // The ID of the VLAN. - Vlan *int32 + Vlan int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_CreatePublicVirtualInterface.go b/service/directconnect/api_op_CreatePublicVirtualInterface.go index 56405743037..294baf3b95d 100644 --- a/service/directconnect/api_op_CreatePublicVirtualInterface.go +++ b/service/directconnect/api_op_CreatePublicVirtualInterface.go @@ -59,7 +59,7 @@ type CreatePublicVirtualInterfaceOutput struct { // The autonomous system (AS) number for Border Gateway Protocol (BGP) // configuration. The valid values are 1-2147483647. - Asn *int32 + Asn int32 // The authentication key for BGP configuration. This string has a minimum length // of 6 characters and and a maximun lenth of 80 characters. @@ -69,7 +69,7 @@ type CreatePublicVirtualInterfaceOutput struct { AwsDeviceV2 *string // The BGP peers configured on this virtual interface. - BgpPeers []*types.BGPPeer + BgpPeers []types.BGPPeer // The ID of the connection. ConnectionId *string @@ -101,10 +101,10 @@ type CreatePublicVirtualInterfaceOutput struct { // The routes to be advertised to the AWS network in this Region. Applies to public // virtual interfaces. - RouteFilterPrefixes []*types.RouteFilterPrefix + RouteFilterPrefixes []types.RouteFilterPrefix // The tags associated with the virtual interface. - Tags []*types.Tag + Tags []types.Tag // The ID of the virtual private gateway. Applies only to private virtual // interfaces. @@ -159,7 +159,7 @@ type CreatePublicVirtualInterfaceOutput struct { VirtualInterfaceType *string // The ID of the VLAN. - Vlan *int32 + Vlan int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_DeleteBGPPeer.go b/service/directconnect/api_op_DeleteBGPPeer.go index 733d8bcbf64..1ecb9533161 100644 --- a/service/directconnect/api_op_DeleteBGPPeer.go +++ b/service/directconnect/api_op_DeleteBGPPeer.go @@ -33,7 +33,7 @@ type DeleteBGPPeerInput struct { // The autonomous system (AS) number for Border Gateway Protocol (BGP) // configuration. - Asn *int32 + Asn int32 // The ID of the BGP peer. BgpPeerId *string diff --git a/service/directconnect/api_op_DeleteConnection.go b/service/directconnect/api_op_DeleteConnection.go index 38f7c9b5b54..521d379ebee 100644 --- a/service/directconnect/api_op_DeleteConnection.go +++ b/service/directconnect/api_op_DeleteConnection.go @@ -119,10 +119,10 @@ type DeleteConnectionOutput struct { Region *string // The tags associated with the connection. - Tags []*types.Tag + Tags []types.Tag // The ID of the VLAN. - Vlan *int32 + Vlan int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_DeleteLag.go b/service/directconnect/api_op_DeleteLag.go index 536303b4d10..a482c1dd2ce 100644 --- a/service/directconnect/api_op_DeleteLag.go +++ b/service/directconnect/api_op_DeleteLag.go @@ -40,7 +40,7 @@ type DeleteLagInput struct { type DeleteLagOutput struct { // Indicates whether the LAG can host other connections. - AllowsHostedConnections *bool + AllowsHostedConnections bool // The AWS Direct Connect endpoint that hosts the LAG. AwsDevice *string @@ -49,7 +49,7 @@ type DeleteLagOutput struct { AwsDeviceV2 *string // The connections bundled by the LAG. - Connections []*types.Connection + Connections []types.Connection // The individual bandwidth of the physical connections bundled by the LAG. The // possible values are 1Gbps and 10Gbps. @@ -96,11 +96,11 @@ type DeleteLagOutput struct { // The minimum number of physical dedicated connections that must be operational // for the LAG itself to be operational. - MinimumLinks *int32 + MinimumLinks int32 // The number of physical dedicated connections bundled by the LAG, up to a maximum // of 10. - NumberOfConnections *int32 + NumberOfConnections int32 // The ID of the AWS account that owns the LAG. OwnerAccount *string @@ -112,7 +112,7 @@ type DeleteLagOutput struct { Region *string // The tags associated with the LAG. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_DescribeConnections.go b/service/directconnect/api_op_DescribeConnections.go index 3656a0bd463..682c23d9e9a 100644 --- a/service/directconnect/api_op_DescribeConnections.go +++ b/service/directconnect/api_op_DescribeConnections.go @@ -36,7 +36,7 @@ type DescribeConnectionsInput struct { type DescribeConnectionsOutput struct { // The connections. - Connections []*types.Connection + Connections []types.Connection // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_DescribeConnectionsOnInterconnect.go b/service/directconnect/api_op_DescribeConnectionsOnInterconnect.go index ef8795d6136..1a94a70f853 100644 --- a/service/directconnect/api_op_DescribeConnectionsOnInterconnect.go +++ b/service/directconnect/api_op_DescribeConnectionsOnInterconnect.go @@ -40,7 +40,7 @@ type DescribeConnectionsOnInterconnectInput struct { type DescribeConnectionsOnInterconnectOutput struct { // The connections. - Connections []*types.Connection + Connections []types.Connection // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_DescribeDirectConnectGatewayAssociationProposals.go b/service/directconnect/api_op_DescribeDirectConnectGatewayAssociationProposals.go index 6edf9fdad49..339136ebb90 100644 --- a/service/directconnect/api_op_DescribeDirectConnectGatewayAssociationProposals.go +++ b/service/directconnect/api_op_DescribeDirectConnectGatewayAssociationProposals.go @@ -51,7 +51,7 @@ type DescribeDirectConnectGatewayAssociationProposalsInput struct { type DescribeDirectConnectGatewayAssociationProposalsOutput struct { // Describes the Direct Connect gateway association proposals. - DirectConnectGatewayAssociationProposals []*types.DirectConnectGatewayAssociationProposal + DirectConnectGatewayAssociationProposals []types.DirectConnectGatewayAssociationProposal // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/directconnect/api_op_DescribeDirectConnectGatewayAssociations.go b/service/directconnect/api_op_DescribeDirectConnectGatewayAssociations.go index 32037807939..2fbe4a808f7 100644 --- a/service/directconnect/api_op_DescribeDirectConnectGatewayAssociations.go +++ b/service/directconnect/api_op_DescribeDirectConnectGatewayAssociations.go @@ -60,7 +60,7 @@ type DescribeDirectConnectGatewayAssociationsInput struct { type DescribeDirectConnectGatewayAssociationsOutput struct { // Information about the associations. - DirectConnectGatewayAssociations []*types.DirectConnectGatewayAssociation + DirectConnectGatewayAssociations []types.DirectConnectGatewayAssociation // The token to retrieve the next page. NextToken *string diff --git a/service/directconnect/api_op_DescribeDirectConnectGatewayAttachments.go b/service/directconnect/api_op_DescribeDirectConnectGatewayAttachments.go index c6113325778..3702c2644f1 100644 --- a/service/directconnect/api_op_DescribeDirectConnectGatewayAttachments.go +++ b/service/directconnect/api_op_DescribeDirectConnectGatewayAttachments.go @@ -53,7 +53,7 @@ type DescribeDirectConnectGatewayAttachmentsInput struct { type DescribeDirectConnectGatewayAttachmentsOutput struct { // The attachments. - DirectConnectGatewayAttachments []*types.DirectConnectGatewayAttachment + DirectConnectGatewayAttachments []types.DirectConnectGatewayAttachment // The token to retrieve the next page. NextToken *string diff --git a/service/directconnect/api_op_DescribeDirectConnectGateways.go b/service/directconnect/api_op_DescribeDirectConnectGateways.go index 71317e7291c..559eb1d5c98 100644 --- a/service/directconnect/api_op_DescribeDirectConnectGateways.go +++ b/service/directconnect/api_op_DescribeDirectConnectGateways.go @@ -45,7 +45,7 @@ type DescribeDirectConnectGatewaysInput struct { type DescribeDirectConnectGatewaysOutput struct { // The Direct Connect gateways. - DirectConnectGateways []*types.DirectConnectGateway + DirectConnectGateways []types.DirectConnectGateway // The token to retrieve the next page. NextToken *string diff --git a/service/directconnect/api_op_DescribeHostedConnections.go b/service/directconnect/api_op_DescribeHostedConnections.go index b3e29c41faf..6d734248a3d 100644 --- a/service/directconnect/api_op_DescribeHostedConnections.go +++ b/service/directconnect/api_op_DescribeHostedConnections.go @@ -40,7 +40,7 @@ type DescribeHostedConnectionsInput struct { type DescribeHostedConnectionsOutput struct { // The connections. - Connections []*types.Connection + Connections []types.Connection // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_DescribeInterconnects.go b/service/directconnect/api_op_DescribeInterconnects.go index 72d3bdfdc6b..c3ae1afbf5f 100644 --- a/service/directconnect/api_op_DescribeInterconnects.go +++ b/service/directconnect/api_op_DescribeInterconnects.go @@ -37,7 +37,7 @@ type DescribeInterconnectsInput struct { type DescribeInterconnectsOutput struct { // The interconnects. - Interconnects []*types.Interconnect + Interconnects []types.Interconnect // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_DescribeLags.go b/service/directconnect/api_op_DescribeLags.go index fec51947819..dbf3d0bc73e 100644 --- a/service/directconnect/api_op_DescribeLags.go +++ b/service/directconnect/api_op_DescribeLags.go @@ -36,7 +36,7 @@ type DescribeLagsInput struct { type DescribeLagsOutput struct { // The LAGs. - Lags []*types.Lag + Lags []types.Lag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_DescribeLocations.go b/service/directconnect/api_op_DescribeLocations.go index 3f22ee91e68..11478ec88fe 100644 --- a/service/directconnect/api_op_DescribeLocations.go +++ b/service/directconnect/api_op_DescribeLocations.go @@ -35,7 +35,7 @@ type DescribeLocationsInput struct { type DescribeLocationsOutput struct { // The locations. - Locations []*types.Location + Locations []types.Location // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_DescribeTags.go b/service/directconnect/api_op_DescribeTags.go index e1bb2316f4b..49812522c3b 100644 --- a/service/directconnect/api_op_DescribeTags.go +++ b/service/directconnect/api_op_DescribeTags.go @@ -32,13 +32,13 @@ type DescribeTagsInput struct { // The Amazon Resource Names (ARNs) of the resources. // // This member is required. - ResourceArns []*string + ResourceArns []string } type DescribeTagsOutput struct { // Information about the tags. - ResourceTags []*types.ResourceTag + ResourceTags []types.ResourceTag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_DescribeVirtualGateways.go b/service/directconnect/api_op_DescribeVirtualGateways.go index d5e78551235..41f8065c8dd 100644 --- a/service/directconnect/api_op_DescribeVirtualGateways.go +++ b/service/directconnect/api_op_DescribeVirtualGateways.go @@ -35,7 +35,7 @@ type DescribeVirtualGatewaysInput struct { type DescribeVirtualGatewaysOutput struct { // The virtual private gateways. - VirtualGateways []*types.VirtualGateway + VirtualGateways []types.VirtualGateway // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_DescribeVirtualInterfaces.go b/service/directconnect/api_op_DescribeVirtualInterfaces.go index cd4d7548c9a..349369b16b6 100644 --- a/service/directconnect/api_op_DescribeVirtualInterfaces.go +++ b/service/directconnect/api_op_DescribeVirtualInterfaces.go @@ -44,7 +44,7 @@ type DescribeVirtualInterfacesInput struct { type DescribeVirtualInterfacesOutput struct { // The virtual interfaces - VirtualInterfaces []*types.VirtualInterface + VirtualInterfaces []types.VirtualInterface // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_DisassociateConnectionFromLag.go b/service/directconnect/api_op_DisassociateConnectionFromLag.go index 069e064e7a8..5b05f5e91e4 100644 --- a/service/directconnect/api_op_DisassociateConnectionFromLag.go +++ b/service/directconnect/api_op_DisassociateConnectionFromLag.go @@ -130,10 +130,10 @@ type DisassociateConnectionFromLagOutput struct { Region *string // The tags associated with the connection. - Tags []*types.Tag + Tags []types.Tag // The ID of the VLAN. - Vlan *int32 + Vlan int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_ListVirtualInterfaceTestHistory.go b/service/directconnect/api_op_ListVirtualInterfaceTestHistory.go index bbea938d183..ecc90fb8edd 100644 --- a/service/directconnect/api_op_ListVirtualInterfaceTestHistory.go +++ b/service/directconnect/api_op_ListVirtualInterfaceTestHistory.go @@ -31,7 +31,7 @@ type ListVirtualInterfaceTestHistoryInput struct { // The BGP peers that were placed in the DOWN state during the virtual interface // failover test. - BgpPeers []*string + BgpPeers []string // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. If @@ -58,7 +58,7 @@ type ListVirtualInterfaceTestHistoryOutput struct { NextToken *string // The ID of the tested virtual interface. - VirtualInterfaceTestHistory []*types.VirtualInterfaceTestHistory + VirtualInterfaceTestHistory []types.VirtualInterfaceTestHistory // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_StartBgpFailoverTest.go b/service/directconnect/api_op_StartBgpFailoverTest.go index a23c1c79ac9..f2d81754cd1 100644 --- a/service/directconnect/api_op_StartBgpFailoverTest.go +++ b/service/directconnect/api_op_StartBgpFailoverTest.go @@ -43,7 +43,7 @@ type StartBgpFailoverTestInput struct { VirtualInterfaceId *string // The BGP peers to place in the DOWN state. - BgpPeers []*string + BgpPeers []string // The time in minutes that the virtual interface failover test will last. Maximum // value: 180 minutes (3 hours). Default: 180 minutes (3 hours). diff --git a/service/directconnect/api_op_TagResource.go b/service/directconnect/api_op_TagResource.go index d09de1a0884..2f681b453a3 100644 --- a/service/directconnect/api_op_TagResource.go +++ b/service/directconnect/api_op_TagResource.go @@ -40,7 +40,7 @@ type TagResourceInput struct { // The tags to add. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/directconnect/api_op_UntagResource.go b/service/directconnect/api_op_UntagResource.go index 826fee3b7d9..4447bdb9952 100644 --- a/service/directconnect/api_op_UntagResource.go +++ b/service/directconnect/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The tag keys of the tags to remove. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/directconnect/api_op_UpdateDirectConnectGatewayAssociation.go b/service/directconnect/api_op_UpdateDirectConnectGatewayAssociation.go index f73c0509579..cf1db5836b9 100644 --- a/service/directconnect/api_op_UpdateDirectConnectGatewayAssociation.go +++ b/service/directconnect/api_op_UpdateDirectConnectGatewayAssociation.go @@ -31,13 +31,13 @@ func (c *Client) UpdateDirectConnectGatewayAssociation(ctx context.Context, para type UpdateDirectConnectGatewayAssociationInput struct { // The Amazon VPC prefixes to advertise to the Direct Connect gateway. - AddAllowedPrefixesToDirectConnectGateway []*types.RouteFilterPrefix + AddAllowedPrefixesToDirectConnectGateway []types.RouteFilterPrefix // The ID of the Direct Connect gateway association. AssociationId *string // The Amazon VPC prefixes to no longer advertise to the Direct Connect gateway. - RemoveAllowedPrefixesToDirectConnectGateway []*types.RouteFilterPrefix + RemoveAllowedPrefixesToDirectConnectGateway []types.RouteFilterPrefix } type UpdateDirectConnectGatewayAssociationOutput struct { diff --git a/service/directconnect/api_op_UpdateLag.go b/service/directconnect/api_op_UpdateLag.go index 62b838b2bea..b11011025e7 100644 --- a/service/directconnect/api_op_UpdateLag.go +++ b/service/directconnect/api_op_UpdateLag.go @@ -53,14 +53,14 @@ type UpdateLagInput struct { // The minimum number of physical connections that must be operational for the LAG // itself to be operational. - MinimumLinks *int32 + MinimumLinks int32 } // Information about a link aggregation group (LAG). type UpdateLagOutput struct { // Indicates whether the LAG can host other connections. - AllowsHostedConnections *bool + AllowsHostedConnections bool // The AWS Direct Connect endpoint that hosts the LAG. AwsDevice *string @@ -69,7 +69,7 @@ type UpdateLagOutput struct { AwsDeviceV2 *string // The connections bundled by the LAG. - Connections []*types.Connection + Connections []types.Connection // The individual bandwidth of the physical connections bundled by the LAG. The // possible values are 1Gbps and 10Gbps. @@ -116,11 +116,11 @@ type UpdateLagOutput struct { // The minimum number of physical dedicated connections that must be operational // for the LAG itself to be operational. - MinimumLinks *int32 + MinimumLinks int32 // The number of physical dedicated connections bundled by the LAG, up to a maximum // of 10. - NumberOfConnections *int32 + NumberOfConnections int32 // The ID of the AWS account that owns the LAG. OwnerAccount *string @@ -132,7 +132,7 @@ type UpdateLagOutput struct { Region *string // The tags associated with the LAG. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go b/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go index d3b5399a625..35c47d49450 100644 --- a/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go +++ b/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go @@ -60,7 +60,7 @@ type UpdateVirtualInterfaceAttributesOutput struct { // The autonomous system (AS) number for Border Gateway Protocol (BGP) // configuration. The valid values are 1-2147483647. - Asn *int32 + Asn int32 // The authentication key for BGP configuration. This string has a minimum length // of 6 characters and and a maximun lenth of 80 characters. @@ -70,7 +70,7 @@ type UpdateVirtualInterfaceAttributesOutput struct { AwsDeviceV2 *string // The BGP peers configured on this virtual interface. - BgpPeers []*types.BGPPeer + BgpPeers []types.BGPPeer // The ID of the connection. ConnectionId *string @@ -102,10 +102,10 @@ type UpdateVirtualInterfaceAttributesOutput struct { // The routes to be advertised to the AWS network in this Region. Applies to public // virtual interfaces. - RouteFilterPrefixes []*types.RouteFilterPrefix + RouteFilterPrefixes []types.RouteFilterPrefix // The tags associated with the virtual interface. - Tags []*types.Tag + Tags []types.Tag // The ID of the virtual private gateway. Applies only to private virtual // interfaces. @@ -160,7 +160,7 @@ type UpdateVirtualInterfaceAttributesOutput struct { VirtualInterfaceType *string // The ID of the VLAN. - Vlan *int32 + Vlan int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directconnect/deserializers.go b/service/directconnect/deserializers.go index 87de1ca76db..41420af7c16 100644 --- a/service/directconnect/deserializers.go +++ b/service/directconnect/deserializers.go @@ -6638,7 +6638,7 @@ func awsAwsjson11_deserializeDocumentAssociatedGateway(v **types.AssociatedGatew if !ok { return fmt.Errorf("expected GatewayIdentifier to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ownerAccount": @@ -6647,7 +6647,7 @@ func awsAwsjson11_deserializeDocumentAssociatedGateway(v **types.AssociatedGatew if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "region": @@ -6656,7 +6656,7 @@ func awsAwsjson11_deserializeDocumentAssociatedGateway(v **types.AssociatedGatew if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "type": @@ -6677,7 +6677,7 @@ func awsAwsjson11_deserializeDocumentAssociatedGateway(v **types.AssociatedGatew return nil } -func awsAwsjson11_deserializeDocumentAvailablePortSpeeds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAvailablePortSpeeds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6690,21 +6690,21 @@ func awsAwsjson11_deserializeDocumentAvailablePortSpeeds(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PortSpeed to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6750,7 +6750,7 @@ func awsAwsjson11_deserializeDocumentBGPPeer(v **types.BGPPeer, value interface{ if !ok { return fmt.Errorf("expected AmazonAddress to be of type string, got %T instead", value) } - sv.AmazonAddress = &jtv + sv.AmazonAddress = ptr.String(jtv) } case "asn": @@ -6763,7 +6763,7 @@ func awsAwsjson11_deserializeDocumentBGPPeer(v **types.BGPPeer, value interface{ if err != nil { return err } - sv.Asn = ptr.Int32(int32(i64)) + sv.Asn = int32(i64) } case "authKey": @@ -6772,7 +6772,7 @@ func awsAwsjson11_deserializeDocumentBGPPeer(v **types.BGPPeer, value interface{ if !ok { return fmt.Errorf("expected BGPAuthKey to be of type string, got %T instead", value) } - sv.AuthKey = &jtv + sv.AuthKey = ptr.String(jtv) } case "awsDeviceV2": @@ -6781,7 +6781,7 @@ func awsAwsjson11_deserializeDocumentBGPPeer(v **types.BGPPeer, value interface{ if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bgpPeerId": @@ -6790,7 +6790,7 @@ func awsAwsjson11_deserializeDocumentBGPPeer(v **types.BGPPeer, value interface{ if !ok { return fmt.Errorf("expected BGPPeerId to be of type string, got %T instead", value) } - sv.BgpPeerId = &jtv + sv.BgpPeerId = ptr.String(jtv) } case "bgpPeerState": @@ -6817,7 +6817,7 @@ func awsAwsjson11_deserializeDocumentBGPPeer(v **types.BGPPeer, value interface{ if !ok { return fmt.Errorf("expected CustomerAddress to be of type string, got %T instead", value) } - sv.CustomerAddress = &jtv + sv.CustomerAddress = ptr.String(jtv) } default: @@ -6829,7 +6829,7 @@ func awsAwsjson11_deserializeDocumentBGPPeer(v **types.BGPPeer, value interface{ return nil } -func awsAwsjson11_deserializeDocumentBGPPeerIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentBGPPeerIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6842,21 +6842,21 @@ func awsAwsjson11_deserializeDocumentBGPPeerIdList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected BGPPeerId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6865,7 +6865,7 @@ func awsAwsjson11_deserializeDocumentBGPPeerIdList(v *[]*string, value interface return nil } -func awsAwsjson11_deserializeDocumentBGPPeerList(v *[]*types.BGPPeer, value interface{}) error { +func awsAwsjson11_deserializeDocumentBGPPeerList(v *[]types.BGPPeer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6878,18 +6878,20 @@ func awsAwsjson11_deserializeDocumentBGPPeerList(v *[]*types.BGPPeer, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BGPPeer + var cv []types.BGPPeer if *v == nil { - cv = []*types.BGPPeer{} + cv = []types.BGPPeer{} } else { cv = *v } for _, value := range shape { - var col *types.BGPPeer - if err := awsAwsjson11_deserializeDocumentBGPPeer(&col, value); err != nil { + var col types.BGPPeer + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBGPPeer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6925,7 +6927,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -6934,7 +6936,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bandwidth": @@ -6943,7 +6945,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.Bandwidth = &jtv + sv.Bandwidth = ptr.String(jtv) } case "connectionId": @@ -6952,7 +6954,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionName": @@ -6961,7 +6963,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) } - sv.ConnectionName = &jtv + sv.ConnectionName = ptr.String(jtv) } case "connectionState": @@ -6988,7 +6990,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -6997,7 +6999,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "loaIssueTime": @@ -7019,7 +7021,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "ownerAccount": @@ -7028,7 +7030,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "partnerName": @@ -7037,7 +7039,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected PartnerName to be of type string, got %T instead", value) } - sv.PartnerName = &jtv + sv.PartnerName = ptr.String(jtv) } case "providerName": @@ -7046,7 +7048,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -7055,7 +7057,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -7073,7 +7075,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -7085,7 +7087,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte return nil } -func awsAwsjson11_deserializeDocumentConnectionList(v *[]*types.Connection, value interface{}) error { +func awsAwsjson11_deserializeDocumentConnectionList(v *[]types.Connection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7098,18 +7100,20 @@ func awsAwsjson11_deserializeDocumentConnectionList(v *[]*types.Connection, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Connection + var cv []types.Connection if *v == nil { - cv = []*types.Connection{} + cv = []types.Connection{} } else { cv = *v } for _, value := range shape { - var col *types.Connection - if err := awsAwsjson11_deserializeDocumentConnection(&col, value); err != nil { + var col types.Connection + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConnection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7145,7 +7149,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectClientException(v **types.Dire if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7189,7 +7193,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGateway(v **types.DirectConnec if err != nil { return err } - sv.AmazonSideAsn = &i64 + sv.AmazonSideAsn = ptr.Int64(i64) } case "directConnectGatewayId": @@ -7198,7 +7202,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGateway(v **types.DirectConnec if !ok { return fmt.Errorf("expected DirectConnectGatewayId to be of type string, got %T instead", value) } - sv.DirectConnectGatewayId = &jtv + sv.DirectConnectGatewayId = ptr.String(jtv) } case "directConnectGatewayName": @@ -7207,7 +7211,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGateway(v **types.DirectConnec if !ok { return fmt.Errorf("expected DirectConnectGatewayName to be of type string, got %T instead", value) } - sv.DirectConnectGatewayName = &jtv + sv.DirectConnectGatewayName = ptr.String(jtv) } case "directConnectGatewayState": @@ -7225,7 +7229,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGateway(v **types.DirectConnec if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "stateChangeError": @@ -7234,7 +7238,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGateway(v **types.DirectConnec if !ok { return fmt.Errorf("expected StateChangeError to be of type string, got %T instead", value) } - sv.StateChangeError = &jtv + sv.StateChangeError = ptr.String(jtv) } default: @@ -7284,7 +7288,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociation(v **types.D if !ok { return fmt.Errorf("expected DirectConnectGatewayAssociationId to be of type string, got %T instead", value) } - sv.AssociationId = &jtv + sv.AssociationId = ptr.String(jtv) } case "associationState": @@ -7302,7 +7306,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociation(v **types.D if !ok { return fmt.Errorf("expected DirectConnectGatewayId to be of type string, got %T instead", value) } - sv.DirectConnectGatewayId = &jtv + sv.DirectConnectGatewayId = ptr.String(jtv) } case "directConnectGatewayOwnerAccount": @@ -7311,7 +7315,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociation(v **types.D if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.DirectConnectGatewayOwnerAccount = &jtv + sv.DirectConnectGatewayOwnerAccount = ptr.String(jtv) } case "stateChangeError": @@ -7320,7 +7324,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociation(v **types.D if !ok { return fmt.Errorf("expected StateChangeError to be of type string, got %T instead", value) } - sv.StateChangeError = &jtv + sv.StateChangeError = ptr.String(jtv) } case "virtualGatewayId": @@ -7329,7 +7333,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociation(v **types.D if !ok { return fmt.Errorf("expected VirtualGatewayId to be of type string, got %T instead", value) } - sv.VirtualGatewayId = &jtv + sv.VirtualGatewayId = ptr.String(jtv) } case "virtualGatewayOwnerAccount": @@ -7338,7 +7342,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociation(v **types.D if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.VirtualGatewayOwnerAccount = &jtv + sv.VirtualGatewayOwnerAccount = ptr.String(jtv) } case "virtualGatewayRegion": @@ -7347,7 +7351,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociation(v **types.D if !ok { return fmt.Errorf("expected VirtualGatewayRegion to be of type string, got %T instead", value) } - sv.VirtualGatewayRegion = &jtv + sv.VirtualGatewayRegion = ptr.String(jtv) } default: @@ -7359,7 +7363,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociation(v **types.D return nil } -func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociationList(v *[]*types.DirectConnectGatewayAssociation, value interface{}) error { +func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociationList(v *[]types.DirectConnectGatewayAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7372,18 +7376,20 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociationList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DirectConnectGatewayAssociation + var cv []types.DirectConnectGatewayAssociation if *v == nil { - cv = []*types.DirectConnectGatewayAssociation{} + cv = []types.DirectConnectGatewayAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.DirectConnectGatewayAssociation - if err := awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociation(&col, value); err != nil { + var col types.DirectConnectGatewayAssociation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7424,7 +7430,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociationProposal(v * if !ok { return fmt.Errorf("expected DirectConnectGatewayId to be of type string, got %T instead", value) } - sv.DirectConnectGatewayId = &jtv + sv.DirectConnectGatewayId = ptr.String(jtv) } case "directConnectGatewayOwnerAccount": @@ -7433,7 +7439,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociationProposal(v * if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.DirectConnectGatewayOwnerAccount = &jtv + sv.DirectConnectGatewayOwnerAccount = ptr.String(jtv) } case "existingAllowedPrefixesToDirectConnectGateway": @@ -7447,7 +7453,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociationProposal(v * if !ok { return fmt.Errorf("expected DirectConnectGatewayAssociationProposalId to be of type string, got %T instead", value) } - sv.ProposalId = &jtv + sv.ProposalId = ptr.String(jtv) } case "proposalState": @@ -7473,7 +7479,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociationProposal(v * return nil } -func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociationProposalList(v *[]*types.DirectConnectGatewayAssociationProposal, value interface{}) error { +func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociationProposalList(v *[]types.DirectConnectGatewayAssociationProposal, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7486,18 +7492,20 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociationProposalList return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DirectConnectGatewayAssociationProposal + var cv []types.DirectConnectGatewayAssociationProposal if *v == nil { - cv = []*types.DirectConnectGatewayAssociationProposal{} + cv = []types.DirectConnectGatewayAssociationProposal{} } else { cv = *v } for _, value := range shape { - var col *types.DirectConnectGatewayAssociationProposal - if err := awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociationProposal(&col, value); err != nil { + var col types.DirectConnectGatewayAssociationProposal + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDirectConnectGatewayAssociationProposal(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7551,7 +7559,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAttachment(v **types.Di if !ok { return fmt.Errorf("expected DirectConnectGatewayId to be of type string, got %T instead", value) } - sv.DirectConnectGatewayId = &jtv + sv.DirectConnectGatewayId = ptr.String(jtv) } case "stateChangeError": @@ -7560,7 +7568,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAttachment(v **types.Di if !ok { return fmt.Errorf("expected StateChangeError to be of type string, got %T instead", value) } - sv.StateChangeError = &jtv + sv.StateChangeError = ptr.String(jtv) } case "virtualInterfaceId": @@ -7569,7 +7577,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAttachment(v **types.Di if !ok { return fmt.Errorf("expected VirtualInterfaceId to be of type string, got %T instead", value) } - sv.VirtualInterfaceId = &jtv + sv.VirtualInterfaceId = ptr.String(jtv) } case "virtualInterfaceOwnerAccount": @@ -7578,7 +7586,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAttachment(v **types.Di if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.VirtualInterfaceOwnerAccount = &jtv + sv.VirtualInterfaceOwnerAccount = ptr.String(jtv) } case "virtualInterfaceRegion": @@ -7587,7 +7595,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAttachment(v **types.Di if !ok { return fmt.Errorf("expected VirtualInterfaceRegion to be of type string, got %T instead", value) } - sv.VirtualInterfaceRegion = &jtv + sv.VirtualInterfaceRegion = ptr.String(jtv) } default: @@ -7599,7 +7607,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAttachment(v **types.Di return nil } -func awsAwsjson11_deserializeDocumentDirectConnectGatewayAttachmentList(v *[]*types.DirectConnectGatewayAttachment, value interface{}) error { +func awsAwsjson11_deserializeDocumentDirectConnectGatewayAttachmentList(v *[]types.DirectConnectGatewayAttachment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7612,18 +7620,20 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAttachmentList(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DirectConnectGatewayAttachment + var cv []types.DirectConnectGatewayAttachment if *v == nil { - cv = []*types.DirectConnectGatewayAttachment{} + cv = []types.DirectConnectGatewayAttachment{} } else { cv = *v } for _, value := range shape { - var col *types.DirectConnectGatewayAttachment - if err := awsAwsjson11_deserializeDocumentDirectConnectGatewayAttachment(&col, value); err != nil { + var col types.DirectConnectGatewayAttachment + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDirectConnectGatewayAttachment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7631,7 +7641,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayAttachmentList(v *[]*ty return nil } -func awsAwsjson11_deserializeDocumentDirectConnectGatewayList(v *[]*types.DirectConnectGateway, value interface{}) error { +func awsAwsjson11_deserializeDocumentDirectConnectGatewayList(v *[]types.DirectConnectGateway, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7644,18 +7654,20 @@ func awsAwsjson11_deserializeDocumentDirectConnectGatewayList(v *[]*types.Direct return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DirectConnectGateway + var cv []types.DirectConnectGateway if *v == nil { - cv = []*types.DirectConnectGateway{} + cv = []types.DirectConnectGateway{} } else { cv = *v } for _, value := range shape { - var col *types.DirectConnectGateway - if err := awsAwsjson11_deserializeDocumentDirectConnectGateway(&col, value); err != nil { + var col types.DirectConnectGateway + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDirectConnectGateway(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7691,7 +7703,7 @@ func awsAwsjson11_deserializeDocumentDirectConnectServerException(v **types.Dire if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7731,7 +7743,7 @@ func awsAwsjson11_deserializeDocumentDuplicateTagKeysException(v **types.Duplica if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7771,7 +7783,7 @@ func awsAwsjson11_deserializeDocumentInterconnect(v **types.Interconnect, value if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -7780,7 +7792,7 @@ func awsAwsjson11_deserializeDocumentInterconnect(v **types.Interconnect, value if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bandwidth": @@ -7789,7 +7801,7 @@ func awsAwsjson11_deserializeDocumentInterconnect(v **types.Interconnect, value if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.Bandwidth = &jtv + sv.Bandwidth = ptr.String(jtv) } case "hasLogicalRedundancy": @@ -7807,7 +7819,7 @@ func awsAwsjson11_deserializeDocumentInterconnect(v **types.Interconnect, value if !ok { return fmt.Errorf("expected InterconnectId to be of type string, got %T instead", value) } - sv.InterconnectId = &jtv + sv.InterconnectId = ptr.String(jtv) } case "interconnectName": @@ -7816,7 +7828,7 @@ func awsAwsjson11_deserializeDocumentInterconnect(v **types.Interconnect, value if !ok { return fmt.Errorf("expected InterconnectName to be of type string, got %T instead", value) } - sv.InterconnectName = &jtv + sv.InterconnectName = ptr.String(jtv) } case "interconnectState": @@ -7834,7 +7846,7 @@ func awsAwsjson11_deserializeDocumentInterconnect(v **types.Interconnect, value if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -7843,7 +7855,7 @@ func awsAwsjson11_deserializeDocumentInterconnect(v **types.Interconnect, value if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "loaIssueTime": @@ -7865,7 +7877,7 @@ func awsAwsjson11_deserializeDocumentInterconnect(v **types.Interconnect, value if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "providerName": @@ -7874,7 +7886,7 @@ func awsAwsjson11_deserializeDocumentInterconnect(v **types.Interconnect, value if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -7883,7 +7895,7 @@ func awsAwsjson11_deserializeDocumentInterconnect(v **types.Interconnect, value if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -7900,7 +7912,7 @@ func awsAwsjson11_deserializeDocumentInterconnect(v **types.Interconnect, value return nil } -func awsAwsjson11_deserializeDocumentInterconnectList(v *[]*types.Interconnect, value interface{}) error { +func awsAwsjson11_deserializeDocumentInterconnectList(v *[]types.Interconnect, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7913,18 +7925,20 @@ func awsAwsjson11_deserializeDocumentInterconnectList(v *[]*types.Interconnect, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Interconnect + var cv []types.Interconnect if *v == nil { - cv = []*types.Interconnect{} + cv = []types.Interconnect{} } else { cv = *v } for _, value := range shape { - var col *types.Interconnect - if err := awsAwsjson11_deserializeDocumentInterconnect(&col, value); err != nil { + var col types.Interconnect + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInterconnect(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7960,7 +7974,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error if !ok { return fmt.Errorf("expected BooleanFlag to be of type *bool, got %T instead", value) } - sv.AllowsHostedConnections = &jtv + sv.AllowsHostedConnections = jtv } case "awsDevice": @@ -7969,7 +7983,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -7978,7 +7992,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "connections": @@ -7992,7 +8006,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.ConnectionsBandwidth = &jtv + sv.ConnectionsBandwidth = ptr.String(jtv) } case "hasLogicalRedundancy": @@ -8010,7 +8024,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -8019,7 +8033,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "lagName": @@ -8028,7 +8042,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error if !ok { return fmt.Errorf("expected LagName to be of type string, got %T instead", value) } - sv.LagName = &jtv + sv.LagName = ptr.String(jtv) } case "lagState": @@ -8046,7 +8060,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "minimumLinks": @@ -8059,7 +8073,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error if err != nil { return err } - sv.MinimumLinks = ptr.Int32(int32(i64)) + sv.MinimumLinks = int32(i64) } case "numberOfConnections": @@ -8072,7 +8086,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error if err != nil { return err } - sv.NumberOfConnections = ptr.Int32(int32(i64)) + sv.NumberOfConnections = int32(i64) } case "ownerAccount": @@ -8081,7 +8095,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "providerName": @@ -8090,7 +8104,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -8099,7 +8113,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -8116,7 +8130,7 @@ func awsAwsjson11_deserializeDocumentLag(v **types.Lag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentLagList(v *[]*types.Lag, value interface{}) error { +func awsAwsjson11_deserializeDocumentLagList(v *[]types.Lag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8129,18 +8143,20 @@ func awsAwsjson11_deserializeDocumentLagList(v *[]*types.Lag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Lag + var cv []types.Lag if *v == nil { - cv = []*types.Lag{} + cv = []types.Lag{} } else { cv = *v } for _, value := range shape { - var col *types.Lag - if err := awsAwsjson11_deserializeDocumentLag(&col, value); err != nil { + var col types.Lag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8239,7 +8255,7 @@ func awsAwsjson11_deserializeDocumentLocation(v **types.Location, value interfac if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.LocationCode = &jtv + sv.LocationCode = ptr.String(jtv) } case "locationName": @@ -8248,7 +8264,7 @@ func awsAwsjson11_deserializeDocumentLocation(v **types.Location, value interfac if !ok { return fmt.Errorf("expected LocationName to be of type string, got %T instead", value) } - sv.LocationName = &jtv + sv.LocationName = ptr.String(jtv) } case "region": @@ -8257,7 +8273,7 @@ func awsAwsjson11_deserializeDocumentLocation(v **types.Location, value interfac if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } default: @@ -8269,7 +8285,7 @@ func awsAwsjson11_deserializeDocumentLocation(v **types.Location, value interfac return nil } -func awsAwsjson11_deserializeDocumentLocationList(v *[]*types.Location, value interface{}) error { +func awsAwsjson11_deserializeDocumentLocationList(v *[]types.Location, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8282,18 +8298,20 @@ func awsAwsjson11_deserializeDocumentLocationList(v *[]*types.Location, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Location + var cv []types.Location if *v == nil { - cv = []*types.Location{} + cv = []types.Location{} } else { cv = *v } for _, value := range shape { - var col *types.Location - if err := awsAwsjson11_deserializeDocumentLocation(&col, value); err != nil { + var col types.Location + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLocation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8301,7 +8319,7 @@ func awsAwsjson11_deserializeDocumentLocationList(v *[]*types.Location, value in return nil } -func awsAwsjson11_deserializeDocumentProviderList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentProviderList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8314,21 +8332,21 @@ func awsAwsjson11_deserializeDocumentProviderList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8365,7 +8383,7 @@ func awsAwsjson11_deserializeDocumentResourceTag(v **types.ResourceTag, value in if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "tags": @@ -8382,7 +8400,7 @@ func awsAwsjson11_deserializeDocumentResourceTag(v **types.ResourceTag, value in return nil } -func awsAwsjson11_deserializeDocumentResourceTagList(v *[]*types.ResourceTag, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceTagList(v *[]types.ResourceTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8395,18 +8413,20 @@ func awsAwsjson11_deserializeDocumentResourceTagList(v *[]*types.ResourceTag, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceTag + var cv []types.ResourceTag if *v == nil { - cv = []*types.ResourceTag{} + cv = []types.ResourceTag{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceTag - if err := awsAwsjson11_deserializeDocumentResourceTag(&col, value); err != nil { + var col types.ResourceTag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8442,7 +8462,7 @@ func awsAwsjson11_deserializeDocumentRouteFilterPrefix(v **types.RouteFilterPref if !ok { return fmt.Errorf("expected CIDR to be of type string, got %T instead", value) } - sv.Cidr = &jtv + sv.Cidr = ptr.String(jtv) } default: @@ -8454,7 +8474,7 @@ func awsAwsjson11_deserializeDocumentRouteFilterPrefix(v **types.RouteFilterPref return nil } -func awsAwsjson11_deserializeDocumentRouteFilterPrefixList(v *[]*types.RouteFilterPrefix, value interface{}) error { +func awsAwsjson11_deserializeDocumentRouteFilterPrefixList(v *[]types.RouteFilterPrefix, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8467,18 +8487,20 @@ func awsAwsjson11_deserializeDocumentRouteFilterPrefixList(v *[]*types.RouteFilt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RouteFilterPrefix + var cv []types.RouteFilterPrefix if *v == nil { - cv = []*types.RouteFilterPrefix{} + cv = []types.RouteFilterPrefix{} } else { cv = *v } for _, value := range shape { - var col *types.RouteFilterPrefix - if err := awsAwsjson11_deserializeDocumentRouteFilterPrefix(&col, value); err != nil { + var col types.RouteFilterPrefix + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRouteFilterPrefix(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8514,7 +8536,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -8523,7 +8545,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8535,7 +8557,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8548,18 +8570,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8595,7 +8619,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8635,7 +8659,7 @@ func awsAwsjson11_deserializeDocumentVirtualGateway(v **types.VirtualGateway, va if !ok { return fmt.Errorf("expected VirtualGatewayId to be of type string, got %T instead", value) } - sv.VirtualGatewayId = &jtv + sv.VirtualGatewayId = ptr.String(jtv) } case "virtualGatewayState": @@ -8644,7 +8668,7 @@ func awsAwsjson11_deserializeDocumentVirtualGateway(v **types.VirtualGateway, va if !ok { return fmt.Errorf("expected VirtualGatewayState to be of type string, got %T instead", value) } - sv.VirtualGatewayState = &jtv + sv.VirtualGatewayState = ptr.String(jtv) } default: @@ -8656,7 +8680,7 @@ func awsAwsjson11_deserializeDocumentVirtualGateway(v **types.VirtualGateway, va return nil } -func awsAwsjson11_deserializeDocumentVirtualGatewayList(v *[]*types.VirtualGateway, value interface{}) error { +func awsAwsjson11_deserializeDocumentVirtualGatewayList(v *[]types.VirtualGateway, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8669,18 +8693,20 @@ func awsAwsjson11_deserializeDocumentVirtualGatewayList(v *[]*types.VirtualGatew return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VirtualGateway + var cv []types.VirtualGateway if *v == nil { - cv = []*types.VirtualGateway{} + cv = []types.VirtualGateway{} } else { cv = *v } for _, value := range shape { - var col *types.VirtualGateway - if err := awsAwsjson11_deserializeDocumentVirtualGateway(&col, value); err != nil { + var col types.VirtualGateway + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVirtualGateway(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8725,7 +8751,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected AmazonAddress to be of type string, got %T instead", value) } - sv.AmazonAddress = &jtv + sv.AmazonAddress = ptr.String(jtv) } case "amazonSideAsn": @@ -8738,7 +8764,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if err != nil { return err } - sv.AmazonSideAsn = &i64 + sv.AmazonSideAsn = ptr.Int64(i64) } case "asn": @@ -8751,7 +8777,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if err != nil { return err } - sv.Asn = ptr.Int32(int32(i64)) + sv.Asn = int32(i64) } case "authKey": @@ -8760,7 +8786,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected BGPAuthKey to be of type string, got %T instead", value) } - sv.AuthKey = &jtv + sv.AuthKey = ptr.String(jtv) } case "awsDeviceV2": @@ -8769,7 +8795,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bgpPeers": @@ -8783,7 +8809,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "customerAddress": @@ -8792,7 +8818,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected CustomerAddress to be of type string, got %T instead", value) } - sv.CustomerAddress = &jtv + sv.CustomerAddress = ptr.String(jtv) } case "customerRouterConfig": @@ -8801,7 +8827,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected RouterConfig to be of type string, got %T instead", value) } - sv.CustomerRouterConfig = &jtv + sv.CustomerRouterConfig = ptr.String(jtv) } case "directConnectGatewayId": @@ -8810,7 +8836,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected DirectConnectGatewayId to be of type string, got %T instead", value) } - sv.DirectConnectGatewayId = &jtv + sv.DirectConnectGatewayId = ptr.String(jtv) } case "jumboFrameCapable": @@ -8819,7 +8845,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "location": @@ -8828,7 +8854,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "mtu": @@ -8850,7 +8876,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "region": @@ -8859,7 +8885,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "routeFilterPrefixes": @@ -8878,7 +8904,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected VirtualGatewayId to be of type string, got %T instead", value) } - sv.VirtualGatewayId = &jtv + sv.VirtualGatewayId = ptr.String(jtv) } case "virtualInterfaceId": @@ -8887,7 +8913,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected VirtualInterfaceId to be of type string, got %T instead", value) } - sv.VirtualInterfaceId = &jtv + sv.VirtualInterfaceId = ptr.String(jtv) } case "virtualInterfaceName": @@ -8896,7 +8922,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected VirtualInterfaceName to be of type string, got %T instead", value) } - sv.VirtualInterfaceName = &jtv + sv.VirtualInterfaceName = ptr.String(jtv) } case "virtualInterfaceState": @@ -8914,7 +8940,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if !ok { return fmt.Errorf("expected VirtualInterfaceType to be of type string, got %T instead", value) } - sv.VirtualInterfaceType = &jtv + sv.VirtualInterfaceType = ptr.String(jtv) } case "vlan": @@ -8927,7 +8953,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -8939,7 +8965,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface return nil } -func awsAwsjson11_deserializeDocumentVirtualInterfaceList(v *[]*types.VirtualInterface, value interface{}) error { +func awsAwsjson11_deserializeDocumentVirtualInterfaceList(v *[]types.VirtualInterface, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8952,18 +8978,20 @@ func awsAwsjson11_deserializeDocumentVirtualInterfaceList(v *[]*types.VirtualInt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VirtualInterface + var cv []types.VirtualInterface if *v == nil { - cv = []*types.VirtualInterface{} + cv = []types.VirtualInterface{} } else { cv = *v } for _, value := range shape { - var col *types.VirtualInterface - if err := awsAwsjson11_deserializeDocumentVirtualInterface(&col, value); err != nil { + var col types.VirtualInterface + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVirtualInterface(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9017,7 +9045,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterfaceTestHistory(v **types.Virtu if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "startTime": @@ -9039,7 +9067,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterfaceTestHistory(v **types.Virtu if !ok { return fmt.Errorf("expected FailureTestHistoryStatus to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "testDurationInMinutes": @@ -9061,7 +9089,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterfaceTestHistory(v **types.Virtu if !ok { return fmt.Errorf("expected TestId to be of type string, got %T instead", value) } - sv.TestId = &jtv + sv.TestId = ptr.String(jtv) } case "virtualInterfaceId": @@ -9070,7 +9098,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterfaceTestHistory(v **types.Virtu if !ok { return fmt.Errorf("expected VirtualInterfaceId to be of type string, got %T instead", value) } - sv.VirtualInterfaceId = &jtv + sv.VirtualInterfaceId = ptr.String(jtv) } default: @@ -9082,7 +9110,7 @@ func awsAwsjson11_deserializeDocumentVirtualInterfaceTestHistory(v **types.Virtu return nil } -func awsAwsjson11_deserializeDocumentVirtualInterfaceTestHistoryList(v *[]*types.VirtualInterfaceTestHistory, value interface{}) error { +func awsAwsjson11_deserializeDocumentVirtualInterfaceTestHistoryList(v *[]types.VirtualInterfaceTestHistory, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9095,18 +9123,20 @@ func awsAwsjson11_deserializeDocumentVirtualInterfaceTestHistoryList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VirtualInterfaceTestHistory + var cv []types.VirtualInterfaceTestHistory if *v == nil { - cv = []*types.VirtualInterfaceTestHistory{} + cv = []types.VirtualInterfaceTestHistory{} } else { cv = *v } for _, value := range shape { - var col *types.VirtualInterfaceTestHistory - if err := awsAwsjson11_deserializeDocumentVirtualInterfaceTestHistory(&col, value); err != nil { + var col types.VirtualInterfaceTestHistory + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVirtualInterfaceTestHistory(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9178,7 +9208,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateConnectionOnInterconnectOutput(v if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -9187,7 +9217,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateConnectionOnInterconnectOutput(v if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bandwidth": @@ -9196,7 +9226,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateConnectionOnInterconnectOutput(v if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.Bandwidth = &jtv + sv.Bandwidth = ptr.String(jtv) } case "connectionId": @@ -9205,7 +9235,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateConnectionOnInterconnectOutput(v if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionName": @@ -9214,7 +9244,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateConnectionOnInterconnectOutput(v if !ok { return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) } - sv.ConnectionName = &jtv + sv.ConnectionName = ptr.String(jtv) } case "connectionState": @@ -9241,7 +9271,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateConnectionOnInterconnectOutput(v if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -9250,7 +9280,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateConnectionOnInterconnectOutput(v if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "loaIssueTime": @@ -9272,7 +9302,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateConnectionOnInterconnectOutput(v if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "ownerAccount": @@ -9281,7 +9311,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateConnectionOnInterconnectOutput(v if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "partnerName": @@ -9290,7 +9320,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateConnectionOnInterconnectOutput(v if !ok { return fmt.Errorf("expected PartnerName to be of type string, got %T instead", value) } - sv.PartnerName = &jtv + sv.PartnerName = ptr.String(jtv) } case "providerName": @@ -9299,7 +9329,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateConnectionOnInterconnectOutput(v if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -9308,7 +9338,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateConnectionOnInterconnectOutput(v if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -9326,7 +9356,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateConnectionOnInterconnectOutput(v if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -9366,7 +9396,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateHostedConnectionOutput(v **Alloca if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -9375,7 +9405,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateHostedConnectionOutput(v **Alloca if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bandwidth": @@ -9384,7 +9414,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateHostedConnectionOutput(v **Alloca if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.Bandwidth = &jtv + sv.Bandwidth = ptr.String(jtv) } case "connectionId": @@ -9393,7 +9423,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateHostedConnectionOutput(v **Alloca if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionName": @@ -9402,7 +9432,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateHostedConnectionOutput(v **Alloca if !ok { return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) } - sv.ConnectionName = &jtv + sv.ConnectionName = ptr.String(jtv) } case "connectionState": @@ -9429,7 +9459,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateHostedConnectionOutput(v **Alloca if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -9438,7 +9468,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateHostedConnectionOutput(v **Alloca if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "loaIssueTime": @@ -9460,7 +9490,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateHostedConnectionOutput(v **Alloca if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "ownerAccount": @@ -9469,7 +9499,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateHostedConnectionOutput(v **Alloca if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "partnerName": @@ -9478,7 +9508,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateHostedConnectionOutput(v **Alloca if !ok { return fmt.Errorf("expected PartnerName to be of type string, got %T instead", value) } - sv.PartnerName = &jtv + sv.PartnerName = ptr.String(jtv) } case "providerName": @@ -9487,7 +9517,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateHostedConnectionOutput(v **Alloca if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -9496,7 +9526,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateHostedConnectionOutput(v **Alloca if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -9514,7 +9544,7 @@ func awsAwsjson11_deserializeOpDocumentAllocateHostedConnectionOutput(v **Alloca if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -9563,7 +9593,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected AmazonAddress to be of type string, got %T instead", value) } - sv.AmazonAddress = &jtv + sv.AmazonAddress = ptr.String(jtv) } case "amazonSideAsn": @@ -9576,7 +9606,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if err != nil { return err } - sv.AmazonSideAsn = &i64 + sv.AmazonSideAsn = ptr.Int64(i64) } case "asn": @@ -9589,7 +9619,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if err != nil { return err } - sv.Asn = ptr.Int32(int32(i64)) + sv.Asn = int32(i64) } case "authKey": @@ -9598,7 +9628,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected BGPAuthKey to be of type string, got %T instead", value) } - sv.AuthKey = &jtv + sv.AuthKey = ptr.String(jtv) } case "awsDeviceV2": @@ -9607,7 +9637,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bgpPeers": @@ -9621,7 +9651,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "customerAddress": @@ -9630,7 +9660,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected CustomerAddress to be of type string, got %T instead", value) } - sv.CustomerAddress = &jtv + sv.CustomerAddress = ptr.String(jtv) } case "customerRouterConfig": @@ -9639,7 +9669,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected RouterConfig to be of type string, got %T instead", value) } - sv.CustomerRouterConfig = &jtv + sv.CustomerRouterConfig = ptr.String(jtv) } case "directConnectGatewayId": @@ -9648,7 +9678,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected DirectConnectGatewayId to be of type string, got %T instead", value) } - sv.DirectConnectGatewayId = &jtv + sv.DirectConnectGatewayId = ptr.String(jtv) } case "jumboFrameCapable": @@ -9657,7 +9687,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "location": @@ -9666,7 +9696,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "mtu": @@ -9688,7 +9718,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "region": @@ -9697,7 +9727,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "routeFilterPrefixes": @@ -9716,7 +9746,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected VirtualGatewayId to be of type string, got %T instead", value) } - sv.VirtualGatewayId = &jtv + sv.VirtualGatewayId = ptr.String(jtv) } case "virtualInterfaceId": @@ -9725,7 +9755,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected VirtualInterfaceId to be of type string, got %T instead", value) } - sv.VirtualInterfaceId = &jtv + sv.VirtualInterfaceId = ptr.String(jtv) } case "virtualInterfaceName": @@ -9734,7 +9764,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected VirtualInterfaceName to be of type string, got %T instead", value) } - sv.VirtualInterfaceName = &jtv + sv.VirtualInterfaceName = ptr.String(jtv) } case "virtualInterfaceState": @@ -9752,7 +9782,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if !ok { return fmt.Errorf("expected VirtualInterfaceType to be of type string, got %T instead", value) } - sv.VirtualInterfaceType = &jtv + sv.VirtualInterfaceType = ptr.String(jtv) } case "vlan": @@ -9765,7 +9795,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -9814,7 +9844,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected AmazonAddress to be of type string, got %T instead", value) } - sv.AmazonAddress = &jtv + sv.AmazonAddress = ptr.String(jtv) } case "amazonSideAsn": @@ -9827,7 +9857,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if err != nil { return err } - sv.AmazonSideAsn = &i64 + sv.AmazonSideAsn = ptr.Int64(i64) } case "asn": @@ -9840,7 +9870,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if err != nil { return err } - sv.Asn = ptr.Int32(int32(i64)) + sv.Asn = int32(i64) } case "authKey": @@ -9849,7 +9879,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected BGPAuthKey to be of type string, got %T instead", value) } - sv.AuthKey = &jtv + sv.AuthKey = ptr.String(jtv) } case "awsDeviceV2": @@ -9858,7 +9888,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bgpPeers": @@ -9872,7 +9902,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "customerAddress": @@ -9881,7 +9911,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected CustomerAddress to be of type string, got %T instead", value) } - sv.CustomerAddress = &jtv + sv.CustomerAddress = ptr.String(jtv) } case "customerRouterConfig": @@ -9890,7 +9920,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected RouterConfig to be of type string, got %T instead", value) } - sv.CustomerRouterConfig = &jtv + sv.CustomerRouterConfig = ptr.String(jtv) } case "directConnectGatewayId": @@ -9899,7 +9929,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected DirectConnectGatewayId to be of type string, got %T instead", value) } - sv.DirectConnectGatewayId = &jtv + sv.DirectConnectGatewayId = ptr.String(jtv) } case "jumboFrameCapable": @@ -9908,7 +9938,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "location": @@ -9917,7 +9947,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "mtu": @@ -9939,7 +9969,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "region": @@ -9948,7 +9978,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "routeFilterPrefixes": @@ -9967,7 +9997,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected VirtualGatewayId to be of type string, got %T instead", value) } - sv.VirtualGatewayId = &jtv + sv.VirtualGatewayId = ptr.String(jtv) } case "virtualInterfaceId": @@ -9976,7 +10006,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected VirtualInterfaceId to be of type string, got %T instead", value) } - sv.VirtualInterfaceId = &jtv + sv.VirtualInterfaceId = ptr.String(jtv) } case "virtualInterfaceName": @@ -9985,7 +10015,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected VirtualInterfaceName to be of type string, got %T instead", value) } - sv.VirtualInterfaceName = &jtv + sv.VirtualInterfaceName = ptr.String(jtv) } case "virtualInterfaceState": @@ -10003,7 +10033,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if !ok { return fmt.Errorf("expected VirtualInterfaceType to be of type string, got %T instead", value) } - sv.VirtualInterfaceType = &jtv + sv.VirtualInterfaceType = ptr.String(jtv) } case "vlan": @@ -10016,7 +10046,7 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -10092,7 +10122,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionWithLagOutput(v **Asso if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -10101,7 +10131,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionWithLagOutput(v **Asso if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bandwidth": @@ -10110,7 +10140,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionWithLagOutput(v **Asso if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.Bandwidth = &jtv + sv.Bandwidth = ptr.String(jtv) } case "connectionId": @@ -10119,7 +10149,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionWithLagOutput(v **Asso if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionName": @@ -10128,7 +10158,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionWithLagOutput(v **Asso if !ok { return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) } - sv.ConnectionName = &jtv + sv.ConnectionName = ptr.String(jtv) } case "connectionState": @@ -10155,7 +10185,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionWithLagOutput(v **Asso if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -10164,7 +10194,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionWithLagOutput(v **Asso if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "loaIssueTime": @@ -10186,7 +10216,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionWithLagOutput(v **Asso if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "ownerAccount": @@ -10195,7 +10225,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionWithLagOutput(v **Asso if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "partnerName": @@ -10204,7 +10234,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionWithLagOutput(v **Asso if !ok { return fmt.Errorf("expected PartnerName to be of type string, got %T instead", value) } - sv.PartnerName = &jtv + sv.PartnerName = ptr.String(jtv) } case "providerName": @@ -10213,7 +10243,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionWithLagOutput(v **Asso if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -10222,7 +10252,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionWithLagOutput(v **Asso if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -10240,7 +10270,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionWithLagOutput(v **Asso if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -10280,7 +10310,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateHostedConnectionOutput(v **Assoc if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -10289,7 +10319,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateHostedConnectionOutput(v **Assoc if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bandwidth": @@ -10298,7 +10328,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateHostedConnectionOutput(v **Assoc if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.Bandwidth = &jtv + sv.Bandwidth = ptr.String(jtv) } case "connectionId": @@ -10307,7 +10337,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateHostedConnectionOutput(v **Assoc if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionName": @@ -10316,7 +10346,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateHostedConnectionOutput(v **Assoc if !ok { return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) } - sv.ConnectionName = &jtv + sv.ConnectionName = ptr.String(jtv) } case "connectionState": @@ -10343,7 +10373,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateHostedConnectionOutput(v **Assoc if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -10352,7 +10382,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateHostedConnectionOutput(v **Assoc if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "loaIssueTime": @@ -10374,7 +10404,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateHostedConnectionOutput(v **Assoc if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "ownerAccount": @@ -10383,7 +10413,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateHostedConnectionOutput(v **Assoc if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "partnerName": @@ -10392,7 +10422,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateHostedConnectionOutput(v **Assoc if !ok { return fmt.Errorf("expected PartnerName to be of type string, got %T instead", value) } - sv.PartnerName = &jtv + sv.PartnerName = ptr.String(jtv) } case "providerName": @@ -10401,7 +10431,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateHostedConnectionOutput(v **Assoc if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -10410,7 +10440,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateHostedConnectionOutput(v **Assoc if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -10428,7 +10458,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateHostedConnectionOutput(v **Assoc if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -10477,7 +10507,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected AmazonAddress to be of type string, got %T instead", value) } - sv.AmazonAddress = &jtv + sv.AmazonAddress = ptr.String(jtv) } case "amazonSideAsn": @@ -10490,7 +10520,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if err != nil { return err } - sv.AmazonSideAsn = &i64 + sv.AmazonSideAsn = ptr.Int64(i64) } case "asn": @@ -10503,7 +10533,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if err != nil { return err } - sv.Asn = ptr.Int32(int32(i64)) + sv.Asn = int32(i64) } case "authKey": @@ -10512,7 +10542,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected BGPAuthKey to be of type string, got %T instead", value) } - sv.AuthKey = &jtv + sv.AuthKey = ptr.String(jtv) } case "awsDeviceV2": @@ -10521,7 +10551,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bgpPeers": @@ -10535,7 +10565,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "customerAddress": @@ -10544,7 +10574,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected CustomerAddress to be of type string, got %T instead", value) } - sv.CustomerAddress = &jtv + sv.CustomerAddress = ptr.String(jtv) } case "customerRouterConfig": @@ -10553,7 +10583,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected RouterConfig to be of type string, got %T instead", value) } - sv.CustomerRouterConfig = &jtv + sv.CustomerRouterConfig = ptr.String(jtv) } case "directConnectGatewayId": @@ -10562,7 +10592,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected DirectConnectGatewayId to be of type string, got %T instead", value) } - sv.DirectConnectGatewayId = &jtv + sv.DirectConnectGatewayId = ptr.String(jtv) } case "jumboFrameCapable": @@ -10571,7 +10601,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "location": @@ -10580,7 +10610,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "mtu": @@ -10602,7 +10632,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "region": @@ -10611,7 +10641,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "routeFilterPrefixes": @@ -10630,7 +10660,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected VirtualGatewayId to be of type string, got %T instead", value) } - sv.VirtualGatewayId = &jtv + sv.VirtualGatewayId = ptr.String(jtv) } case "virtualInterfaceId": @@ -10639,7 +10669,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected VirtualInterfaceId to be of type string, got %T instead", value) } - sv.VirtualInterfaceId = &jtv + sv.VirtualInterfaceId = ptr.String(jtv) } case "virtualInterfaceName": @@ -10648,7 +10678,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected VirtualInterfaceName to be of type string, got %T instead", value) } - sv.VirtualInterfaceName = &jtv + sv.VirtualInterfaceName = ptr.String(jtv) } case "virtualInterfaceState": @@ -10666,7 +10696,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if !ok { return fmt.Errorf("expected VirtualInterfaceType to be of type string, got %T instead", value) } - sv.VirtualInterfaceType = &jtv + sv.VirtualInterfaceType = ptr.String(jtv) } case "vlan": @@ -10679,7 +10709,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -10915,7 +10945,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -10924,7 +10954,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bandwidth": @@ -10933,7 +10963,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.Bandwidth = &jtv + sv.Bandwidth = ptr.String(jtv) } case "connectionId": @@ -10942,7 +10972,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionName": @@ -10951,7 +10981,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if !ok { return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) } - sv.ConnectionName = &jtv + sv.ConnectionName = ptr.String(jtv) } case "connectionState": @@ -10978,7 +11008,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -10987,7 +11017,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "loaIssueTime": @@ -11009,7 +11039,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "ownerAccount": @@ -11018,7 +11048,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "partnerName": @@ -11027,7 +11057,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if !ok { return fmt.Errorf("expected PartnerName to be of type string, got %T instead", value) } - sv.PartnerName = &jtv + sv.PartnerName = ptr.String(jtv) } case "providerName": @@ -11036,7 +11066,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -11045,7 +11075,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -11063,7 +11093,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -11211,7 +11241,7 @@ func awsAwsjson11_deserializeOpDocumentCreateInterconnectOutput(v **CreateInterc if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -11220,7 +11250,7 @@ func awsAwsjson11_deserializeOpDocumentCreateInterconnectOutput(v **CreateInterc if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bandwidth": @@ -11229,7 +11259,7 @@ func awsAwsjson11_deserializeOpDocumentCreateInterconnectOutput(v **CreateInterc if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.Bandwidth = &jtv + sv.Bandwidth = ptr.String(jtv) } case "hasLogicalRedundancy": @@ -11247,7 +11277,7 @@ func awsAwsjson11_deserializeOpDocumentCreateInterconnectOutput(v **CreateInterc if !ok { return fmt.Errorf("expected InterconnectId to be of type string, got %T instead", value) } - sv.InterconnectId = &jtv + sv.InterconnectId = ptr.String(jtv) } case "interconnectName": @@ -11256,7 +11286,7 @@ func awsAwsjson11_deserializeOpDocumentCreateInterconnectOutput(v **CreateInterc if !ok { return fmt.Errorf("expected InterconnectName to be of type string, got %T instead", value) } - sv.InterconnectName = &jtv + sv.InterconnectName = ptr.String(jtv) } case "interconnectState": @@ -11274,7 +11304,7 @@ func awsAwsjson11_deserializeOpDocumentCreateInterconnectOutput(v **CreateInterc if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -11283,7 +11313,7 @@ func awsAwsjson11_deserializeOpDocumentCreateInterconnectOutput(v **CreateInterc if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "loaIssueTime": @@ -11305,7 +11335,7 @@ func awsAwsjson11_deserializeOpDocumentCreateInterconnectOutput(v **CreateInterc if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "providerName": @@ -11314,7 +11344,7 @@ func awsAwsjson11_deserializeOpDocumentCreateInterconnectOutput(v **CreateInterc if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -11323,7 +11353,7 @@ func awsAwsjson11_deserializeOpDocumentCreateInterconnectOutput(v **CreateInterc if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -11368,7 +11398,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLagOutput(v **CreateLagOutput, valu if !ok { return fmt.Errorf("expected BooleanFlag to be of type *bool, got %T instead", value) } - sv.AllowsHostedConnections = &jtv + sv.AllowsHostedConnections = jtv } case "awsDevice": @@ -11377,7 +11407,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLagOutput(v **CreateLagOutput, valu if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -11386,7 +11416,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLagOutput(v **CreateLagOutput, valu if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "connections": @@ -11400,7 +11430,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLagOutput(v **CreateLagOutput, valu if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.ConnectionsBandwidth = &jtv + sv.ConnectionsBandwidth = ptr.String(jtv) } case "hasLogicalRedundancy": @@ -11418,7 +11448,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLagOutput(v **CreateLagOutput, valu if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -11427,7 +11457,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLagOutput(v **CreateLagOutput, valu if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "lagName": @@ -11436,7 +11466,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLagOutput(v **CreateLagOutput, valu if !ok { return fmt.Errorf("expected LagName to be of type string, got %T instead", value) } - sv.LagName = &jtv + sv.LagName = ptr.String(jtv) } case "lagState": @@ -11454,7 +11484,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLagOutput(v **CreateLagOutput, valu if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "minimumLinks": @@ -11467,7 +11497,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLagOutput(v **CreateLagOutput, valu if err != nil { return err } - sv.MinimumLinks = ptr.Int32(int32(i64)) + sv.MinimumLinks = int32(i64) } case "numberOfConnections": @@ -11480,7 +11510,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLagOutput(v **CreateLagOutput, valu if err != nil { return err } - sv.NumberOfConnections = ptr.Int32(int32(i64)) + sv.NumberOfConnections = int32(i64) } case "ownerAccount": @@ -11489,7 +11519,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLagOutput(v **CreateLagOutput, valu if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "providerName": @@ -11498,7 +11528,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLagOutput(v **CreateLagOutput, valu if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -11507,7 +11537,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLagOutput(v **CreateLagOutput, valu if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -11561,7 +11591,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected AmazonAddress to be of type string, got %T instead", value) } - sv.AmazonAddress = &jtv + sv.AmazonAddress = ptr.String(jtv) } case "amazonSideAsn": @@ -11574,7 +11604,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if err != nil { return err } - sv.AmazonSideAsn = &i64 + sv.AmazonSideAsn = ptr.Int64(i64) } case "asn": @@ -11587,7 +11617,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if err != nil { return err } - sv.Asn = ptr.Int32(int32(i64)) + sv.Asn = int32(i64) } case "authKey": @@ -11596,7 +11626,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected BGPAuthKey to be of type string, got %T instead", value) } - sv.AuthKey = &jtv + sv.AuthKey = ptr.String(jtv) } case "awsDeviceV2": @@ -11605,7 +11635,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bgpPeers": @@ -11619,7 +11649,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "customerAddress": @@ -11628,7 +11658,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected CustomerAddress to be of type string, got %T instead", value) } - sv.CustomerAddress = &jtv + sv.CustomerAddress = ptr.String(jtv) } case "customerRouterConfig": @@ -11637,7 +11667,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected RouterConfig to be of type string, got %T instead", value) } - sv.CustomerRouterConfig = &jtv + sv.CustomerRouterConfig = ptr.String(jtv) } case "directConnectGatewayId": @@ -11646,7 +11676,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected DirectConnectGatewayId to be of type string, got %T instead", value) } - sv.DirectConnectGatewayId = &jtv + sv.DirectConnectGatewayId = ptr.String(jtv) } case "jumboFrameCapable": @@ -11655,7 +11685,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "location": @@ -11664,7 +11694,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "mtu": @@ -11686,7 +11716,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "region": @@ -11695,7 +11725,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "routeFilterPrefixes": @@ -11714,7 +11744,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected VirtualGatewayId to be of type string, got %T instead", value) } - sv.VirtualGatewayId = &jtv + sv.VirtualGatewayId = ptr.String(jtv) } case "virtualInterfaceId": @@ -11723,7 +11753,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected VirtualInterfaceId to be of type string, got %T instead", value) } - sv.VirtualInterfaceId = &jtv + sv.VirtualInterfaceId = ptr.String(jtv) } case "virtualInterfaceName": @@ -11732,7 +11762,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected VirtualInterfaceName to be of type string, got %T instead", value) } - sv.VirtualInterfaceName = &jtv + sv.VirtualInterfaceName = ptr.String(jtv) } case "virtualInterfaceState": @@ -11750,7 +11780,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if !ok { return fmt.Errorf("expected VirtualInterfaceType to be of type string, got %T instead", value) } - sv.VirtualInterfaceType = &jtv + sv.VirtualInterfaceType = ptr.String(jtv) } case "vlan": @@ -11763,7 +11793,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -11812,7 +11842,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected AmazonAddress to be of type string, got %T instead", value) } - sv.AmazonAddress = &jtv + sv.AmazonAddress = ptr.String(jtv) } case "amazonSideAsn": @@ -11825,7 +11855,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if err != nil { return err } - sv.AmazonSideAsn = &i64 + sv.AmazonSideAsn = ptr.Int64(i64) } case "asn": @@ -11838,7 +11868,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if err != nil { return err } - sv.Asn = ptr.Int32(int32(i64)) + sv.Asn = int32(i64) } case "authKey": @@ -11847,7 +11877,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected BGPAuthKey to be of type string, got %T instead", value) } - sv.AuthKey = &jtv + sv.AuthKey = ptr.String(jtv) } case "awsDeviceV2": @@ -11856,7 +11886,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bgpPeers": @@ -11870,7 +11900,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "customerAddress": @@ -11879,7 +11909,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected CustomerAddress to be of type string, got %T instead", value) } - sv.CustomerAddress = &jtv + sv.CustomerAddress = ptr.String(jtv) } case "customerRouterConfig": @@ -11888,7 +11918,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected RouterConfig to be of type string, got %T instead", value) } - sv.CustomerRouterConfig = &jtv + sv.CustomerRouterConfig = ptr.String(jtv) } case "directConnectGatewayId": @@ -11897,7 +11927,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected DirectConnectGatewayId to be of type string, got %T instead", value) } - sv.DirectConnectGatewayId = &jtv + sv.DirectConnectGatewayId = ptr.String(jtv) } case "jumboFrameCapable": @@ -11906,7 +11936,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "location": @@ -11915,7 +11945,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "mtu": @@ -11937,7 +11967,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "region": @@ -11946,7 +11976,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "routeFilterPrefixes": @@ -11965,7 +11995,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected VirtualGatewayId to be of type string, got %T instead", value) } - sv.VirtualGatewayId = &jtv + sv.VirtualGatewayId = ptr.String(jtv) } case "virtualInterfaceId": @@ -11974,7 +12004,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected VirtualInterfaceId to be of type string, got %T instead", value) } - sv.VirtualInterfaceId = &jtv + sv.VirtualInterfaceId = ptr.String(jtv) } case "virtualInterfaceName": @@ -11983,7 +12013,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected VirtualInterfaceName to be of type string, got %T instead", value) } - sv.VirtualInterfaceName = &jtv + sv.VirtualInterfaceName = ptr.String(jtv) } case "virtualInterfaceState": @@ -12001,7 +12031,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if !ok { return fmt.Errorf("expected VirtualInterfaceType to be of type string, got %T instead", value) } - sv.VirtualInterfaceType = &jtv + sv.VirtualInterfaceType = ptr.String(jtv) } case "vlan": @@ -12014,7 +12044,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -12126,7 +12156,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -12135,7 +12165,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bandwidth": @@ -12144,7 +12174,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.Bandwidth = &jtv + sv.Bandwidth = ptr.String(jtv) } case "connectionId": @@ -12153,7 +12183,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionName": @@ -12162,7 +12192,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti if !ok { return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) } - sv.ConnectionName = &jtv + sv.ConnectionName = ptr.String(jtv) } case "connectionState": @@ -12189,7 +12219,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -12198,7 +12228,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "loaIssueTime": @@ -12220,7 +12250,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "ownerAccount": @@ -12229,7 +12259,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "partnerName": @@ -12238,7 +12268,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti if !ok { return fmt.Errorf("expected PartnerName to be of type string, got %T instead", value) } - sv.PartnerName = &jtv + sv.PartnerName = ptr.String(jtv) } case "providerName": @@ -12247,7 +12277,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -12256,7 +12286,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -12274,7 +12304,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -12462,7 +12492,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLagOutput(v **DeleteLagOutput, valu if !ok { return fmt.Errorf("expected BooleanFlag to be of type *bool, got %T instead", value) } - sv.AllowsHostedConnections = &jtv + sv.AllowsHostedConnections = jtv } case "awsDevice": @@ -12471,7 +12501,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLagOutput(v **DeleteLagOutput, valu if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -12480,7 +12510,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLagOutput(v **DeleteLagOutput, valu if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "connections": @@ -12494,7 +12524,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLagOutput(v **DeleteLagOutput, valu if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.ConnectionsBandwidth = &jtv + sv.ConnectionsBandwidth = ptr.String(jtv) } case "hasLogicalRedundancy": @@ -12512,7 +12542,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLagOutput(v **DeleteLagOutput, valu if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -12521,7 +12551,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLagOutput(v **DeleteLagOutput, valu if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "lagName": @@ -12530,7 +12560,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLagOutput(v **DeleteLagOutput, valu if !ok { return fmt.Errorf("expected LagName to be of type string, got %T instead", value) } - sv.LagName = &jtv + sv.LagName = ptr.String(jtv) } case "lagState": @@ -12548,7 +12578,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLagOutput(v **DeleteLagOutput, valu if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "minimumLinks": @@ -12561,7 +12591,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLagOutput(v **DeleteLagOutput, valu if err != nil { return err } - sv.MinimumLinks = ptr.Int32(int32(i64)) + sv.MinimumLinks = int32(i64) } case "numberOfConnections": @@ -12574,7 +12604,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLagOutput(v **DeleteLagOutput, valu if err != nil { return err } - sv.NumberOfConnections = ptr.Int32(int32(i64)) + sv.NumberOfConnections = int32(i64) } case "ownerAccount": @@ -12583,7 +12613,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLagOutput(v **DeleteLagOutput, valu if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "providerName": @@ -12592,7 +12622,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLagOutput(v **DeleteLagOutput, valu if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -12601,7 +12631,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLagOutput(v **DeleteLagOutput, valu if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -12799,7 +12829,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDirectConnectGatewayAssociationPr if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -12844,7 +12874,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDirectConnectGatewayAssociationsO if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -12889,7 +12919,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDirectConnectGatewayAttachmentsOu if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -12934,7 +12964,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDirectConnectGatewaysOutput(v **D if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13315,7 +13345,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateConnectionFromLagOutput(v **D if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -13324,7 +13354,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateConnectionFromLagOutput(v **D if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bandwidth": @@ -13333,7 +13363,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateConnectionFromLagOutput(v **D if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.Bandwidth = &jtv + sv.Bandwidth = ptr.String(jtv) } case "connectionId": @@ -13342,7 +13372,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateConnectionFromLagOutput(v **D if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "connectionName": @@ -13351,7 +13381,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateConnectionFromLagOutput(v **D if !ok { return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) } - sv.ConnectionName = &jtv + sv.ConnectionName = ptr.String(jtv) } case "connectionState": @@ -13378,7 +13408,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateConnectionFromLagOutput(v **D if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -13387,7 +13417,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateConnectionFromLagOutput(v **D if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "loaIssueTime": @@ -13409,7 +13439,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateConnectionFromLagOutput(v **D if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "ownerAccount": @@ -13418,7 +13448,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateConnectionFromLagOutput(v **D if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "partnerName": @@ -13427,7 +13457,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateConnectionFromLagOutput(v **D if !ok { return fmt.Errorf("expected PartnerName to be of type string, got %T instead", value) } - sv.PartnerName = &jtv + sv.PartnerName = ptr.String(jtv) } case "providerName": @@ -13436,7 +13466,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateConnectionFromLagOutput(v **D if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -13445,7 +13475,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateConnectionFromLagOutput(v **D if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -13463,7 +13493,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateConnectionFromLagOutput(v **D if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -13503,7 +13533,7 @@ func awsAwsjson11_deserializeOpDocumentListVirtualInterfaceTestHistoryOutput(v * if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "virtualInterfaceTestHistory": @@ -13718,7 +13748,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLagOutput(v **UpdateLagOutput, valu if !ok { return fmt.Errorf("expected BooleanFlag to be of type *bool, got %T instead", value) } - sv.AllowsHostedConnections = &jtv + sv.AllowsHostedConnections = jtv } case "awsDevice": @@ -13727,7 +13757,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLagOutput(v **UpdateLagOutput, valu if !ok { return fmt.Errorf("expected AwsDevice to be of type string, got %T instead", value) } - sv.AwsDevice = &jtv + sv.AwsDevice = ptr.String(jtv) } case "awsDeviceV2": @@ -13736,7 +13766,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLagOutput(v **UpdateLagOutput, valu if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "connections": @@ -13750,7 +13780,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLagOutput(v **UpdateLagOutput, valu if !ok { return fmt.Errorf("expected Bandwidth to be of type string, got %T instead", value) } - sv.ConnectionsBandwidth = &jtv + sv.ConnectionsBandwidth = ptr.String(jtv) } case "hasLogicalRedundancy": @@ -13768,7 +13798,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLagOutput(v **UpdateLagOutput, valu if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "lagId": @@ -13777,7 +13807,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLagOutput(v **UpdateLagOutput, valu if !ok { return fmt.Errorf("expected LagId to be of type string, got %T instead", value) } - sv.LagId = &jtv + sv.LagId = ptr.String(jtv) } case "lagName": @@ -13786,7 +13816,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLagOutput(v **UpdateLagOutput, valu if !ok { return fmt.Errorf("expected LagName to be of type string, got %T instead", value) } - sv.LagName = &jtv + sv.LagName = ptr.String(jtv) } case "lagState": @@ -13804,7 +13834,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLagOutput(v **UpdateLagOutput, valu if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "minimumLinks": @@ -13817,7 +13847,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLagOutput(v **UpdateLagOutput, valu if err != nil { return err } - sv.MinimumLinks = ptr.Int32(int32(i64)) + sv.MinimumLinks = int32(i64) } case "numberOfConnections": @@ -13830,7 +13860,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLagOutput(v **UpdateLagOutput, valu if err != nil { return err } - sv.NumberOfConnections = ptr.Int32(int32(i64)) + sv.NumberOfConnections = int32(i64) } case "ownerAccount": @@ -13839,7 +13869,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLagOutput(v **UpdateLagOutput, valu if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "providerName": @@ -13848,7 +13878,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLagOutput(v **UpdateLagOutput, valu if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "region": @@ -13857,7 +13887,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateLagOutput(v **UpdateLagOutput, valu if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -13911,7 +13941,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected AmazonAddress to be of type string, got %T instead", value) } - sv.AmazonAddress = &jtv + sv.AmazonAddress = ptr.String(jtv) } case "amazonSideAsn": @@ -13924,7 +13954,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if err != nil { return err } - sv.AmazonSideAsn = &i64 + sv.AmazonSideAsn = ptr.Int64(i64) } case "asn": @@ -13937,7 +13967,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if err != nil { return err } - sv.Asn = ptr.Int32(int32(i64)) + sv.Asn = int32(i64) } case "authKey": @@ -13946,7 +13976,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected BGPAuthKey to be of type string, got %T instead", value) } - sv.AuthKey = &jtv + sv.AuthKey = ptr.String(jtv) } case "awsDeviceV2": @@ -13955,7 +13985,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected AwsDeviceV2 to be of type string, got %T instead", value) } - sv.AwsDeviceV2 = &jtv + sv.AwsDeviceV2 = ptr.String(jtv) } case "bgpPeers": @@ -13969,7 +13999,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected ConnectionId to be of type string, got %T instead", value) } - sv.ConnectionId = &jtv + sv.ConnectionId = ptr.String(jtv) } case "customerAddress": @@ -13978,7 +14008,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected CustomerAddress to be of type string, got %T instead", value) } - sv.CustomerAddress = &jtv + sv.CustomerAddress = ptr.String(jtv) } case "customerRouterConfig": @@ -13987,7 +14017,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected RouterConfig to be of type string, got %T instead", value) } - sv.CustomerRouterConfig = &jtv + sv.CustomerRouterConfig = ptr.String(jtv) } case "directConnectGatewayId": @@ -13996,7 +14026,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected DirectConnectGatewayId to be of type string, got %T instead", value) } - sv.DirectConnectGatewayId = &jtv + sv.DirectConnectGatewayId = ptr.String(jtv) } case "jumboFrameCapable": @@ -14005,7 +14035,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected JumboFrameCapable to be of type *bool, got %T instead", value) } - sv.JumboFrameCapable = &jtv + sv.JumboFrameCapable = ptr.Bool(jtv) } case "location": @@ -14014,7 +14044,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected LocationCode to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "mtu": @@ -14036,7 +14066,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected OwnerAccount to be of type string, got %T instead", value) } - sv.OwnerAccount = &jtv + sv.OwnerAccount = ptr.String(jtv) } case "region": @@ -14045,7 +14075,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "routeFilterPrefixes": @@ -14064,7 +14094,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected VirtualGatewayId to be of type string, got %T instead", value) } - sv.VirtualGatewayId = &jtv + sv.VirtualGatewayId = ptr.String(jtv) } case "virtualInterfaceId": @@ -14073,7 +14103,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected VirtualInterfaceId to be of type string, got %T instead", value) } - sv.VirtualInterfaceId = &jtv + sv.VirtualInterfaceId = ptr.String(jtv) } case "virtualInterfaceName": @@ -14082,7 +14112,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected VirtualInterfaceName to be of type string, got %T instead", value) } - sv.VirtualInterfaceName = &jtv + sv.VirtualInterfaceName = ptr.String(jtv) } case "virtualInterfaceState": @@ -14100,7 +14130,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if !ok { return fmt.Errorf("expected VirtualInterfaceType to be of type string, got %T instead", value) } - sv.VirtualInterfaceType = &jtv + sv.VirtualInterfaceType = ptr.String(jtv) } case "vlan": @@ -14113,7 +14143,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: diff --git a/service/directconnect/go.mod b/service/directconnect/go.mod index f3dbacf97b6..6447c56b680 100644 --- a/service/directconnect/go.mod +++ b/service/directconnect/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/directconnect go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/directconnect/serializers.go b/service/directconnect/serializers.go index 3bf3f958ea7..93f4ef5a927 100644 --- a/service/directconnect/serializers.go +++ b/service/directconnect/serializers.go @@ -2575,17 +2575,13 @@ func (m *awsAwsjson11_serializeOpUpdateVirtualInterfaceAttributes) HandleSeriali return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentBGPPeerIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBGPPeerIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2604,9 +2600,9 @@ func awsAwsjson11_serializeDocumentNewBGPPeer(v *types.NewBGPPeer, value smithyj ok.String(*v.AmazonAddress) } - if v.Asn != nil { + if v.Asn != 0 { ok := object.Key("asn") - ok.Integer(*v.Asn) + ok.Integer(v.Asn) } if v.AuthKey != nil { @@ -2636,9 +2632,9 @@ func awsAwsjson11_serializeDocumentNewPrivateVirtualInterface(v *types.NewPrivat ok.String(*v.AmazonAddress) } - if v.Asn != nil { + if v.Asn != 0 { ok := object.Key("asn") - ok.Integer(*v.Asn) + ok.Integer(v.Asn) } if v.AuthKey != nil { @@ -2678,9 +2674,9 @@ func awsAwsjson11_serializeDocumentNewPrivateVirtualInterface(v *types.NewPrivat ok.String(*v.VirtualInterfaceName) } - if v.Vlan != nil { + if v.Vlan != 0 { ok := object.Key("vlan") - ok.Integer(*v.Vlan) + ok.Integer(v.Vlan) } return nil @@ -2700,9 +2696,9 @@ func awsAwsjson11_serializeDocumentNewPrivateVirtualInterfaceAllocation(v *types ok.String(*v.AmazonAddress) } - if v.Asn != nil { + if v.Asn != 0 { ok := object.Key("asn") - ok.Integer(*v.Asn) + ok.Integer(v.Asn) } if v.AuthKey != nil { @@ -2732,9 +2728,9 @@ func awsAwsjson11_serializeDocumentNewPrivateVirtualInterfaceAllocation(v *types ok.String(*v.VirtualInterfaceName) } - if v.Vlan != nil { + if v.Vlan != 0 { ok := object.Key("vlan") - ok.Integer(*v.Vlan) + ok.Integer(v.Vlan) } return nil @@ -2754,9 +2750,9 @@ func awsAwsjson11_serializeDocumentNewPublicVirtualInterface(v *types.NewPublicV ok.String(*v.AmazonAddress) } - if v.Asn != nil { + if v.Asn != 0 { ok := object.Key("asn") - ok.Integer(*v.Asn) + ok.Integer(v.Asn) } if v.AuthKey != nil { @@ -2788,9 +2784,9 @@ func awsAwsjson11_serializeDocumentNewPublicVirtualInterface(v *types.NewPublicV ok.String(*v.VirtualInterfaceName) } - if v.Vlan != nil { + if v.Vlan != 0 { ok := object.Key("vlan") - ok.Integer(*v.Vlan) + ok.Integer(v.Vlan) } return nil @@ -2810,9 +2806,9 @@ func awsAwsjson11_serializeDocumentNewPublicVirtualInterfaceAllocation(v *types. ok.String(*v.AmazonAddress) } - if v.Asn != nil { + if v.Asn != 0 { ok := object.Key("asn") - ok.Integer(*v.Asn) + ok.Integer(v.Asn) } if v.AuthKey != nil { @@ -2844,9 +2840,9 @@ func awsAwsjson11_serializeDocumentNewPublicVirtualInterfaceAllocation(v *types. ok.String(*v.VirtualInterfaceName) } - if v.Vlan != nil { + if v.Vlan != 0 { ok := object.Key("vlan") - ok.Integer(*v.Vlan) + ok.Integer(v.Vlan) } return nil @@ -2866,9 +2862,9 @@ func awsAwsjson11_serializeDocumentNewTransitVirtualInterface(v *types.NewTransi ok.String(*v.AmazonAddress) } - if v.Asn != nil { + if v.Asn != 0 { ok := object.Key("asn") - ok.Integer(*v.Asn) + ok.Integer(v.Asn) } if v.AuthKey != nil { @@ -2903,9 +2899,9 @@ func awsAwsjson11_serializeDocumentNewTransitVirtualInterface(v *types.NewTransi ok.String(*v.VirtualInterfaceName) } - if v.Vlan != nil { + if v.Vlan != 0 { ok := object.Key("vlan") - ok.Integer(*v.Vlan) + ok.Integer(v.Vlan) } return nil @@ -2925,9 +2921,9 @@ func awsAwsjson11_serializeDocumentNewTransitVirtualInterfaceAllocation(v *types ok.String(*v.AmazonAddress) } - if v.Asn != nil { + if v.Asn != 0 { ok := object.Key("asn") - ok.Integer(*v.Asn) + ok.Integer(v.Asn) } if v.AuthKey != nil { @@ -2957,25 +2953,21 @@ func awsAwsjson11_serializeDocumentNewTransitVirtualInterfaceAllocation(v *types ok.String(*v.VirtualInterfaceName) } - if v.Vlan != nil { + if v.Vlan != 0 { ok := object.Key("vlan") - ok.Integer(*v.Vlan) + ok.Integer(v.Vlan) } return nil } -func awsAwsjson11_serializeDocumentResourceArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2992,17 +2984,13 @@ func awsAwsjson11_serializeDocumentRouteFilterPrefix(v *types.RouteFilterPrefix, return nil } -func awsAwsjson11_serializeDocumentRouteFilterPrefixList(v []*types.RouteFilterPrefix, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRouteFilterPrefixList(v []types.RouteFilterPrefix, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRouteFilterPrefix(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRouteFilterPrefix(&v[i], av); err != nil { return err } } @@ -3026,32 +3014,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -3111,9 +3091,9 @@ func awsAwsjson11_serializeOpDocumentAllocateConnectionOnInterconnectInput(v *Al ok.String(*v.OwnerAccount) } - if v.Vlan != nil { + if v.Vlan != 0 { ok := object.Key("vlan") - ok.Integer(*v.Vlan) + ok.Integer(v.Vlan) } return nil @@ -3150,9 +3130,9 @@ func awsAwsjson11_serializeOpDocumentAllocateHostedConnectionInput(v *AllocateHo } } - if v.Vlan != nil { + if v.Vlan != 0 { ok := object.Key("vlan") - ok.Integer(*v.Vlan) + ok.Integer(v.Vlan) } return nil @@ -3554,9 +3534,9 @@ func awsAwsjson11_serializeOpDocumentCreateLagInput(v *CreateLagInput, value smi ok.String(*v.Location) } - if v.NumberOfConnections != nil { + if v.NumberOfConnections != 0 { ok := object.Key("numberOfConnections") - ok.Integer(*v.NumberOfConnections) + ok.Integer(v.NumberOfConnections) } if v.ProviderName != nil { @@ -3635,9 +3615,9 @@ func awsAwsjson11_serializeOpDocumentDeleteBGPPeerInput(v *DeleteBGPPeerInput, v object := value.Object() defer object.Close() - if v.Asn != nil { + if v.Asn != 0 { ok := object.Key("asn") - ok.Integer(*v.Asn) + ok.Integer(v.Asn) } if v.BgpPeerId != nil { @@ -4211,9 +4191,9 @@ func awsAwsjson11_serializeOpDocumentUpdateLagInput(v *UpdateLagInput, value smi ok.String(*v.LagName) } - if v.MinimumLinks != nil { + if v.MinimumLinks != 0 { ok := object.Key("minimumLinks") - ok.Integer(*v.MinimumLinks) + ok.Integer(v.MinimumLinks) } return nil diff --git a/service/directconnect/types/types.go b/service/directconnect/types/types.go index 55b894792ea..1770722b798 100644 --- a/service/directconnect/types/types.go +++ b/service/directconnect/types/types.go @@ -34,7 +34,7 @@ type BGPPeer struct { // The autonomous system (AS) number for Border Gateway Protocol (BGP) // configuration. - Asn *int32 + Asn int32 // The authentication key for BGP configuration. This string has a minimum length // of 6 characters and and a maximun lenth of 80 characters. @@ -161,10 +161,10 @@ type Connection struct { Region *string // The tags associated with the connection. - Tags []*Tag + Tags []Tag // The ID of the VLAN. - Vlan *int32 + Vlan int32 } // Information about a Direct Connect gateway, which enables you to connect virtual @@ -208,7 +208,7 @@ type DirectConnectGateway struct { type DirectConnectGatewayAssociation struct { // The Amazon VPC prefixes to advertise to the Direct Connect gateway. - AllowedPrefixesToDirectConnectGateway []*RouteFilterPrefix + AllowedPrefixesToDirectConnectGateway []RouteFilterPrefix // Information about the associated gateway. AssociatedGateway *AssociatedGateway @@ -269,7 +269,7 @@ type DirectConnectGatewayAssociationProposal struct { DirectConnectGatewayOwnerAccount *string // The existing Amazon VPC prefixes advertised to the Direct Connect gateway. - ExistingAllowedPrefixesToDirectConnectGateway []*RouteFilterPrefix + ExistingAllowedPrefixesToDirectConnectGateway []RouteFilterPrefix // The ID of the association proposal. ProposalId *string @@ -289,7 +289,7 @@ type DirectConnectGatewayAssociationProposal struct { ProposalState DirectConnectGatewayAssociationProposalState // The Amazon VPC prefixes to advertise to the Direct Connect gateway. - RequestedAllowedPrefixesToDirectConnectGateway []*RouteFilterPrefix + RequestedAllowedPrefixesToDirectConnectGateway []RouteFilterPrefix } // Information about an attachment between a Direct Connect gateway and a virtual @@ -397,14 +397,14 @@ type Interconnect struct { Region *string // The tags associated with the interconnect. - Tags []*Tag + Tags []Tag } // Information about a link aggregation group (LAG). type Lag struct { // Indicates whether the LAG can host other connections. - AllowsHostedConnections *bool + AllowsHostedConnections bool // The AWS Direct Connect endpoint that hosts the LAG. AwsDevice *string @@ -413,7 +413,7 @@ type Lag struct { AwsDeviceV2 *string // The connections bundled by the LAG. - Connections []*Connection + Connections []Connection // The individual bandwidth of the physical connections bundled by the LAG. The // possible values are 1Gbps and 10Gbps. @@ -460,11 +460,11 @@ type Lag struct { // The minimum number of physical dedicated connections that must be operational // for the LAG itself to be operational. - MinimumLinks *int32 + MinimumLinks int32 // The number of physical dedicated connections bundled by the LAG, up to a maximum // of 10. - NumberOfConnections *int32 + NumberOfConnections int32 // The ID of the AWS account that owns the LAG. OwnerAccount *string @@ -476,7 +476,7 @@ type Lag struct { Region *string // The tags associated with the LAG. - Tags []*Tag + Tags []Tag } // Information about a Letter of Authorization - Connecting Facility Assignment @@ -495,10 +495,10 @@ type Loa struct { type Location struct { // The available port speeds for the location. - AvailablePortSpeeds []*string + AvailablePortSpeeds []string // The name of the service provider for the location. - AvailableProviders []*string + AvailableProviders []string // The code for the location. LocationCode *string @@ -522,7 +522,7 @@ type NewBGPPeer struct { // The autonomous system (AS) number for Border Gateway Protocol (BGP) // configuration. - Asn *int32 + Asn int32 // The authentication key for BGP configuration. This string has a minimum length // of 6 characters and and a maximun lenth of 80 characters. @@ -539,7 +539,7 @@ type NewPrivateVirtualInterface struct { // configuration. The valid values are 1-2147483647. // // This member is required. - Asn *int32 + Asn int32 // The name of the virtual interface assigned by the customer network. The name has // a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a @@ -551,7 +551,7 @@ type NewPrivateVirtualInterface struct { // The ID of the VLAN. // // This member is required. - Vlan *int32 + Vlan int32 // The address family for the BGP peer. AddressFamily AddressFamily @@ -574,7 +574,7 @@ type NewPrivateVirtualInterface struct { Mtu *int32 // The tags associated with the private virtual interface. - Tags []*Tag + Tags []Tag // The ID of the virtual private gateway. VirtualGatewayId *string @@ -587,7 +587,7 @@ type NewPrivateVirtualInterfaceAllocation struct { // configuration. The valid values are 1-2147483647. // // This member is required. - Asn *int32 + Asn int32 // The name of the virtual interface assigned by the customer network. The name has // a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a @@ -599,7 +599,7 @@ type NewPrivateVirtualInterfaceAllocation struct { // The ID of the VLAN. // // This member is required. - Vlan *int32 + Vlan int32 // The address family for the BGP peer. AddressFamily AddressFamily @@ -619,7 +619,7 @@ type NewPrivateVirtualInterfaceAllocation struct { Mtu *int32 // The tags associated with the private virtual interface. - Tags []*Tag + Tags []Tag } // Information about a public virtual interface. @@ -629,7 +629,7 @@ type NewPublicVirtualInterface struct { // configuration. The valid values are 1-2147483647. // // This member is required. - Asn *int32 + Asn int32 // The name of the virtual interface assigned by the customer network. The name has // a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a @@ -641,7 +641,7 @@ type NewPublicVirtualInterface struct { // The ID of the VLAN. // // This member is required. - Vlan *int32 + Vlan int32 // The address family for the BGP peer. AddressFamily AddressFamily @@ -658,10 +658,10 @@ type NewPublicVirtualInterface struct { // The routes to be advertised to the AWS network in this Region. Applies to public // virtual interfaces. - RouteFilterPrefixes []*RouteFilterPrefix + RouteFilterPrefixes []RouteFilterPrefix // The tags associated with the public virtual interface. - Tags []*Tag + Tags []Tag } // Information about a public virtual interface to be provisioned on a connection. @@ -671,7 +671,7 @@ type NewPublicVirtualInterfaceAllocation struct { // configuration. The valid values are 1-2147483647. // // This member is required. - Asn *int32 + Asn int32 // The name of the virtual interface assigned by the customer network. The name has // a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a @@ -683,7 +683,7 @@ type NewPublicVirtualInterfaceAllocation struct { // The ID of the VLAN. // // This member is required. - Vlan *int32 + Vlan int32 // The address family for the BGP peer. AddressFamily AddressFamily @@ -700,10 +700,10 @@ type NewPublicVirtualInterfaceAllocation struct { // The routes to be advertised to the AWS network in this Region. Applies to public // virtual interfaces. - RouteFilterPrefixes []*RouteFilterPrefix + RouteFilterPrefixes []RouteFilterPrefix // The tags associated with the public virtual interface. - Tags []*Tag + Tags []Tag } // Information about a transit virtual interface. @@ -717,7 +717,7 @@ type NewTransitVirtualInterface struct { // The autonomous system (AS) number for Border Gateway Protocol (BGP) // configuration. The valid values are 1-2147483647. - Asn *int32 + Asn int32 // The authentication key for BGP configuration. This string has a minimum length // of 6 characters and and a maximun lenth of 80 characters. @@ -734,7 +734,7 @@ type NewTransitVirtualInterface struct { Mtu *int32 // The tags associated with the transitive virtual interface. - Tags []*Tag + Tags []Tag // The name of the virtual interface assigned by the customer network. The name has // a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a @@ -742,7 +742,7 @@ type NewTransitVirtualInterface struct { VirtualInterfaceName *string // The ID of the VLAN. - Vlan *int32 + Vlan int32 } // Information about a transit virtual interface to be provisioned on a connection. @@ -756,7 +756,7 @@ type NewTransitVirtualInterfaceAllocation struct { // The autonomous system (AS) number for Border Gateway Protocol (BGP) // configuration. The valid values are 1-2147483647. - Asn *int32 + Asn int32 // The authentication key for BGP configuration. This string has a minimum length // of 6 characters and and a maximun lenth of 80 characters. @@ -770,7 +770,7 @@ type NewTransitVirtualInterfaceAllocation struct { Mtu *int32 // The tags associated with the transitive virtual interface. - Tags []*Tag + Tags []Tag // The name of the virtual interface assigned by the customer network. The name has // a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a @@ -778,7 +778,7 @@ type NewTransitVirtualInterfaceAllocation struct { VirtualInterfaceName *string // The ID of the VLAN. - Vlan *int32 + Vlan int32 } // Information about a tag associated with an AWS Direct Connect resource. @@ -788,7 +788,7 @@ type ResourceTag struct { ResourceArn *string // The tags. - Tags []*Tag + Tags []Tag } // Information about a route filter prefix that a customer can advertise through @@ -849,7 +849,7 @@ type VirtualInterface struct { // The autonomous system (AS) number for Border Gateway Protocol (BGP) // configuration. The valid values are 1-2147483647. - Asn *int32 + Asn int32 // The authentication key for BGP configuration. This string has a minimum length // of 6 characters and and a maximun lenth of 80 characters. @@ -859,7 +859,7 @@ type VirtualInterface struct { AwsDeviceV2 *string // The BGP peers configured on this virtual interface. - BgpPeers []*BGPPeer + BgpPeers []BGPPeer // The ID of the connection. ConnectionId *string @@ -891,10 +891,10 @@ type VirtualInterface struct { // The routes to be advertised to the AWS network in this Region. Applies to public // virtual interfaces. - RouteFilterPrefixes []*RouteFilterPrefix + RouteFilterPrefixes []RouteFilterPrefix // The tags associated with the virtual interface. - Tags []*Tag + Tags []Tag // The ID of the virtual private gateway. Applies only to private virtual // interfaces. @@ -949,7 +949,7 @@ type VirtualInterface struct { VirtualInterfaceType *string // The ID of the VLAN. - Vlan *int32 + Vlan int32 } // Information about the virtual interface failover test. @@ -957,7 +957,7 @@ type VirtualInterfaceTestHistory struct { // The BGP peers that were put in the DOWN state as part of the virtual interface // failover test. - BgpPeers []*string + BgpPeers []string // The time that the virtual interface moves out of the DOWN state. EndTime *time.Time diff --git a/service/directconnect/validators.go b/service/directconnect/validators.go index 1455f70a198..f2972ef6f8d 100644 --- a/service/directconnect/validators.go +++ b/service/directconnect/validators.go @@ -1002,12 +1002,6 @@ func validateNewPrivateVirtualInterface(v *types.NewPrivateVirtualInterface) err if v.VirtualInterfaceName == nil { invalidParams.Add(smithy.NewErrParamRequired("VirtualInterfaceName")) } - if v.Asn == nil { - invalidParams.Add(smithy.NewErrParamRequired("Asn")) - } - if v.Vlan == nil { - invalidParams.Add(smithy.NewErrParamRequired("Vlan")) - } if v.Tags != nil { if err := validateTagList(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) @@ -1025,12 +1019,6 @@ func validateNewPrivateVirtualInterfaceAllocation(v *types.NewPrivateVirtualInte return nil } invalidParams := smithy.InvalidParamsError{Context: "NewPrivateVirtualInterfaceAllocation"} - if v.Asn == nil { - invalidParams.Add(smithy.NewErrParamRequired("Asn")) - } - if v.Vlan == nil { - invalidParams.Add(smithy.NewErrParamRequired("Vlan")) - } if v.Tags != nil { if err := validateTagList(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) @@ -1051,9 +1039,6 @@ func validateNewPublicVirtualInterface(v *types.NewPublicVirtualInterface) error return nil } invalidParams := smithy.InvalidParamsError{Context: "NewPublicVirtualInterface"} - if v.Asn == nil { - invalidParams.Add(smithy.NewErrParamRequired("Asn")) - } if v.VirtualInterfaceName == nil { invalidParams.Add(smithy.NewErrParamRequired("VirtualInterfaceName")) } @@ -1062,9 +1047,6 @@ func validateNewPublicVirtualInterface(v *types.NewPublicVirtualInterface) error invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) } } - if v.Vlan == nil { - invalidParams.Add(smithy.NewErrParamRequired("Vlan")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1077,12 +1059,6 @@ func validateNewPublicVirtualInterfaceAllocation(v *types.NewPublicVirtualInterf return nil } invalidParams := smithy.InvalidParamsError{Context: "NewPublicVirtualInterfaceAllocation"} - if v.Vlan == nil { - invalidParams.Add(smithy.NewErrParamRequired("Vlan")) - } - if v.Asn == nil { - invalidParams.Add(smithy.NewErrParamRequired("Asn")) - } if v.Tags != nil { if err := validateTagList(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) @@ -1147,13 +1123,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1193,9 +1169,6 @@ func validateOpAllocateConnectionOnInterconnectInput(v *AllocateConnectionOnInte if v.OwnerAccount == nil { invalidParams.Add(smithy.NewErrParamRequired("OwnerAccount")) } - if v.Vlan == nil { - invalidParams.Add(smithy.NewErrParamRequired("Vlan")) - } if v.ConnectionName == nil { invalidParams.Add(smithy.NewErrParamRequired("ConnectionName")) } @@ -1231,9 +1204,6 @@ func validateOpAllocateHostedConnectionInput(v *AllocateHostedConnectionInput) e if v.ConnectionId == nil { invalidParams.Add(smithy.NewErrParamRequired("ConnectionId")) } - if v.Vlan == nil { - invalidParams.Add(smithy.NewErrParamRequired("Vlan")) - } if v.Bandwidth == nil { invalidParams.Add(smithy.NewErrParamRequired("Bandwidth")) } @@ -1544,9 +1514,6 @@ func validateOpCreateLagInput(v *CreateLagInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateLagInput"} - if v.NumberOfConnections == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfConnections")) - } if v.Tags != nil { if err := validateTagList(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) diff --git a/service/directoryservice/api_op_AddIpRoutes.go b/service/directoryservice/api_op_AddIpRoutes.go index bfca3b64793..65679ad39eb 100644 --- a/service/directoryservice/api_op_AddIpRoutes.go +++ b/service/directoryservice/api_op_AddIpRoutes.go @@ -47,7 +47,7 @@ type AddIpRoutesInput struct { // IP address block of the DNS server used for your on-premises domain. // // This member is required. - IpRoutes []*types.IpRoute + IpRoutes []types.IpRoute // If set to true, updates the inbound and outbound rules of the security group // that has the description: "AWS created security group for directory ID directory @@ -110,7 +110,7 @@ type AddIpRoutesInput struct { // // These security rules impact an internal // network interface that is not exposed publicly. - UpdateSecurityGroupForDirectoryControllers *bool + UpdateSecurityGroupForDirectoryControllers bool } type AddIpRoutesOutput struct { diff --git a/service/directoryservice/api_op_AddTagsToResource.go b/service/directoryservice/api_op_AddTagsToResource.go index c3c843e834a..139433d211e 100644 --- a/service/directoryservice/api_op_AddTagsToResource.go +++ b/service/directoryservice/api_op_AddTagsToResource.go @@ -39,7 +39,7 @@ type AddTagsToResourceInput struct { // The tags to be assigned to the directory. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type AddTagsToResourceOutput struct { diff --git a/service/directoryservice/api_op_ConnectDirectory.go b/service/directoryservice/api_op_ConnectDirectory.go index eb73c7b6840..c67a4ca376c 100644 --- a/service/directoryservice/api_op_ConnectDirectory.go +++ b/service/directoryservice/api_op_ConnectDirectory.go @@ -63,7 +63,7 @@ type ConnectDirectoryInput struct { ShortName *string // The tags to be assigned to AD Connector. - Tags []*types.Tag + Tags []types.Tag } // Contains the results of the ConnectDirectory operation. diff --git a/service/directoryservice/api_op_CreateComputer.go b/service/directoryservice/api_op_CreateComputer.go index d6b64606f51..1c6015e3ad9 100644 --- a/service/directoryservice/api_op_CreateComputer.go +++ b/service/directoryservice/api_op_CreateComputer.go @@ -49,7 +49,7 @@ type CreateComputerInput struct { // An array of Attribute objects that contain any LDAP attributes to apply to the // computer account. - ComputerAttributes []*types.Attribute + ComputerAttributes []types.Attribute // The fully-qualified distinguished name of the organizational unit to place the // computer account in. diff --git a/service/directoryservice/api_op_CreateConditionalForwarder.go b/service/directoryservice/api_op_CreateConditionalForwarder.go index 77182c65409..a4fbf7f8a1d 100644 --- a/service/directoryservice/api_op_CreateConditionalForwarder.go +++ b/service/directoryservice/api_op_CreateConditionalForwarder.go @@ -42,7 +42,7 @@ type CreateConditionalForwarderInput struct { // The IP addresses of the remote DNS server associated with RemoteDomainName. // // This member is required. - DnsIpAddrs []*string + DnsIpAddrs []string // The fully qualified domain name (FQDN) of the remote domain with which you will // set up a trust relationship. diff --git a/service/directoryservice/api_op_CreateDirectory.go b/service/directoryservice/api_op_CreateDirectory.go index bbc421280f9..370248fbf7a 100644 --- a/service/directoryservice/api_op_CreateDirectory.go +++ b/service/directoryservice/api_op_CreateDirectory.go @@ -62,7 +62,7 @@ type CreateDirectoryInput struct { ShortName *string // The tags to be assigned to the Simple AD directory. - Tags []*types.Tag + Tags []types.Tag // A DirectoryVpcSettings object that contains additional information for the // operation. diff --git a/service/directoryservice/api_op_CreateMicrosoftAD.go b/service/directoryservice/api_op_CreateMicrosoftAD.go index ff4b657b696..36f8df74972 100644 --- a/service/directoryservice/api_op_CreateMicrosoftAD.go +++ b/service/directoryservice/api_op_CreateMicrosoftAD.go @@ -71,7 +71,7 @@ type CreateMicrosoftADInput struct { ShortName *string // The tags to be assigned to the AWS Managed Microsoft AD directory. - Tags []*types.Tag + Tags []types.Tag } // Result of a CreateMicrosoftAD request. diff --git a/service/directoryservice/api_op_CreateTrust.go b/service/directoryservice/api_op_CreateTrust.go index 7e3bab6540d..091bebf5969 100644 --- a/service/directoryservice/api_op_CreateTrust.go +++ b/service/directoryservice/api_op_CreateTrust.go @@ -67,7 +67,7 @@ type CreateTrustInput struct { TrustPassword *string // The IP addresses of the remote DNS server associated with RemoteDomainName. - ConditionalForwarderIpAddrs []*string + ConditionalForwarderIpAddrs []string // Optional parameter to enable selective authentication for the trust. SelectiveAuth types.SelectiveAuth diff --git a/service/directoryservice/api_op_DeleteTrust.go b/service/directoryservice/api_op_DeleteTrust.go index e84195619eb..77d46689c91 100644 --- a/service/directoryservice/api_op_DeleteTrust.go +++ b/service/directoryservice/api_op_DeleteTrust.go @@ -37,7 +37,7 @@ type DeleteTrustInput struct { TrustId *string // Delete a conditional forwarder as part of a DeleteTrustRequest. - DeleteAssociatedConditionalForwarder *bool + DeleteAssociatedConditionalForwarder bool } // The result of a DeleteTrust request. diff --git a/service/directoryservice/api_op_DescribeConditionalForwarders.go b/service/directoryservice/api_op_DescribeConditionalForwarders.go index bc2c4270e20..24075b89f34 100644 --- a/service/directoryservice/api_op_DescribeConditionalForwarders.go +++ b/service/directoryservice/api_op_DescribeConditionalForwarders.go @@ -40,14 +40,14 @@ type DescribeConditionalForwardersInput struct { // The fully qualified domain names (FQDN) of the remote domains for which to get // the list of associated conditional forwarders. If this member is null, all // conditional forwarders are returned. - RemoteDomainNames []*string + RemoteDomainNames []string } // The result of a DescribeConditionalForwarder request. type DescribeConditionalForwardersOutput struct { // The list of conditional forwarders that have been created. - ConditionalForwarders []*types.ConditionalForwarder + ConditionalForwarders []types.ConditionalForwarder // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directoryservice/api_op_DescribeDirectories.go b/service/directoryservice/api_op_DescribeDirectories.go index ad12368cdac..08d09d6af8c 100644 --- a/service/directoryservice/api_op_DescribeDirectories.go +++ b/service/directoryservice/api_op_DescribeDirectories.go @@ -41,7 +41,7 @@ type DescribeDirectoriesInput struct { // A list of identifiers of the directories for which to obtain the information. If // this member is null, all directories that belong to the current account are // returned. An empty list results in an InvalidParameterException being thrown. - DirectoryIds []*string + DirectoryIds []string // The maximum number of items to return. If this value is zero, the maximum number // of items is specified by the limitations of the operation. @@ -60,7 +60,7 @@ type DescribeDirectoriesOutput struct { // member of the request. This occurs if there are less than the requested number // of items left to retrieve, or if the limitations of the operation have been // exceeded. - DirectoryDescriptions []*types.DirectoryDescription + DirectoryDescriptions []types.DirectoryDescription // If not null, more results are available. Pass this value for the NextToken // parameter in a subsequent call to DescribeDirectories to retrieve the next set diff --git a/service/directoryservice/api_op_DescribeDomainControllers.go b/service/directoryservice/api_op_DescribeDomainControllers.go index b1ab3306adf..419cceb0317 100644 --- a/service/directoryservice/api_op_DescribeDomainControllers.go +++ b/service/directoryservice/api_op_DescribeDomainControllers.go @@ -37,7 +37,7 @@ type DescribeDomainControllersInput struct { // A list of identifiers for the domain controllers whose information will be // provided. - DomainControllerIds []*string + DomainControllerIds []string // The maximum number of items to return. Limit *int32 @@ -50,7 +50,7 @@ type DescribeDomainControllersInput struct { type DescribeDomainControllersOutput struct { // List of the DomainController objects that were retrieved. - DomainControllers []*types.DomainController + DomainControllers []types.DomainController // If not null, more results are available. Pass this value for the NextToken // parameter in a subsequent call to DescribeDomainControllers retrieve the next diff --git a/service/directoryservice/api_op_DescribeEventTopics.go b/service/directoryservice/api_op_DescribeEventTopics.go index aa496c0cba6..0a60cf55845 100644 --- a/service/directoryservice/api_op_DescribeEventTopics.go +++ b/service/directoryservice/api_op_DescribeEventTopics.go @@ -39,7 +39,7 @@ type DescribeEventTopicsInput struct { // A list of SNS topic names for which to obtain the information. If this member is // null, all associations for the specified Directory ID are returned. An empty // list results in an InvalidParameterException being thrown. - TopicNames []*string + TopicNames []string } // The result of a DescribeEventTopic request. @@ -47,7 +47,7 @@ type DescribeEventTopicsOutput struct { // A list of SNS topic names that receive status messages from the specified // Directory ID. - EventTopics []*types.EventTopic + EventTopics []types.EventTopic // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directoryservice/api_op_DescribeLDAPSSettings.go b/service/directoryservice/api_op_DescribeLDAPSSettings.go index b61efca3f7f..456baaed969 100644 --- a/service/directoryservice/api_op_DescribeLDAPSSettings.go +++ b/service/directoryservice/api_op_DescribeLDAPSSettings.go @@ -49,7 +49,7 @@ type DescribeLDAPSSettingsOutput struct { // Information about LDAP security for the specified directory, including status of // enablement, state last updated date time, and the reason for the state. - LDAPSSettingsInfo []*types.LDAPSSettingInfo + LDAPSSettingsInfo []types.LDAPSSettingInfo // The next token used to retrieve the LDAPS settings if the number of setting // types exceeds page limit and there is another page. diff --git a/service/directoryservice/api_op_DescribeSharedDirectories.go b/service/directoryservice/api_op_DescribeSharedDirectories.go index ca8f5c30645..c90f79c1f8c 100644 --- a/service/directoryservice/api_op_DescribeSharedDirectories.go +++ b/service/directoryservice/api_op_DescribeSharedDirectories.go @@ -42,7 +42,7 @@ type DescribeSharedDirectoriesInput struct { NextToken *string // A list of identifiers of all shared directories in your account. - SharedDirectoryIds []*string + SharedDirectoryIds []string } type DescribeSharedDirectoriesOutput struct { @@ -53,7 +53,7 @@ type DescribeSharedDirectoriesOutput struct { NextToken *string // A list of all shared directories in your account. - SharedDirectories []*types.SharedDirectory + SharedDirectories []types.SharedDirectory // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directoryservice/api_op_DescribeSnapshots.go b/service/directoryservice/api_op_DescribeSnapshots.go index 4f7c490206b..7367e08ed42 100644 --- a/service/directoryservice/api_op_DescribeSnapshots.go +++ b/service/directoryservice/api_op_DescribeSnapshots.go @@ -48,7 +48,7 @@ type DescribeSnapshotsInput struct { // A list of identifiers of the snapshots to obtain the information for. If this // member is null or empty, all snapshots are returned using the Limit and // NextToken members. - SnapshotIds []*string + SnapshotIds []string } // Contains the results of the DescribeSnapshots operation. @@ -62,7 +62,7 @@ type DescribeSnapshotsOutput struct { // contains less than the number of items specified in the Limit member of the // request. This occurs if there are less than the requested number of items left // to retrieve, or if the limitations of the operation have been exceeded. - Snapshots []*types.Snapshot + Snapshots []types.Snapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directoryservice/api_op_DescribeTrusts.go b/service/directoryservice/api_op_DescribeTrusts.go index fe325808708..2de38e1ea39 100644 --- a/service/directoryservice/api_op_DescribeTrusts.go +++ b/service/directoryservice/api_op_DescribeTrusts.go @@ -49,7 +49,7 @@ type DescribeTrustsInput struct { // information. If this member is null, all trust relationships that belong to the // current account are returned. An empty list results in an // InvalidParameterException being thrown. - TrustIds []*string + TrustIds []string } // The result of a DescribeTrust request. @@ -64,7 +64,7 @@ type DescribeTrustsOutput struct { // contains less than the number of items specified in the Limit member of the // request. This occurs if there are less than the requested number of items left // to retrieve, or if the limitations of the operation have been exceeded. - Trusts []*types.Trust + Trusts []types.Trust // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directoryservice/api_op_ListCertificates.go b/service/directoryservice/api_op_ListCertificates.go index 4418308a762..de1c35ca241 100644 --- a/service/directoryservice/api_op_ListCertificates.go +++ b/service/directoryservice/api_op_ListCertificates.go @@ -49,7 +49,7 @@ type ListCertificatesOutput struct { // A list of certificates with basic details including certificate ID, certificate // common name, certificate state. - CertificatesInfo []*types.CertificateInfo + CertificatesInfo []types.CertificateInfo // Indicates whether another page of certificates is available when the number of // available certificates exceeds the page limit. diff --git a/service/directoryservice/api_op_ListIpRoutes.go b/service/directoryservice/api_op_ListIpRoutes.go index d60b0eec0ef..b7b663734a2 100644 --- a/service/directoryservice/api_op_ListIpRoutes.go +++ b/service/directoryservice/api_op_ListIpRoutes.go @@ -47,7 +47,7 @@ type ListIpRoutesInput struct { type ListIpRoutesOutput struct { // A list of IpRoutes. - IpRoutesInfo []*types.IpRouteInfo + IpRoutesInfo []types.IpRouteInfo // If not null, more results are available. Pass this value for the NextToken // parameter in a subsequent call to ListIpRoutes to retrieve the next set of diff --git a/service/directoryservice/api_op_ListLogSubscriptions.go b/service/directoryservice/api_op_ListLogSubscriptions.go index 7b25c287cfb..5d6f0a5ab45 100644 --- a/service/directoryservice/api_op_ListLogSubscriptions.go +++ b/service/directoryservice/api_op_ListLogSubscriptions.go @@ -45,7 +45,7 @@ type ListLogSubscriptionsInput struct { type ListLogSubscriptionsOutput struct { // A list of active LogSubscription objects for calling the AWS account. - LogSubscriptions []*types.LogSubscription + LogSubscriptions []types.LogSubscription // The token for the next set of items to return. NextToken *string diff --git a/service/directoryservice/api_op_ListSchemaExtensions.go b/service/directoryservice/api_op_ListSchemaExtensions.go index c6c75c076db..922e1d7ba9e 100644 --- a/service/directoryservice/api_op_ListSchemaExtensions.go +++ b/service/directoryservice/api_op_ListSchemaExtensions.go @@ -51,7 +51,7 @@ type ListSchemaExtensionsOutput struct { NextToken *string // Information about the schema extensions applied to the directory. - SchemaExtensionsInfo []*types.SchemaExtensionInfo + SchemaExtensionsInfo []types.SchemaExtensionInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directoryservice/api_op_ListTagsForResource.go b/service/directoryservice/api_op_ListTagsForResource.go index a3b18b45955..4aeae8b57ad 100644 --- a/service/directoryservice/api_op_ListTagsForResource.go +++ b/service/directoryservice/api_op_ListTagsForResource.go @@ -47,7 +47,7 @@ type ListTagsForResourceOutput struct { NextToken *string // List of tags returned by the ListTagsForResource operation. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/directoryservice/api_op_RemoveIpRoutes.go b/service/directoryservice/api_op_RemoveIpRoutes.go index b38e7a0d647..ea5ad6e76de 100644 --- a/service/directoryservice/api_op_RemoveIpRoutes.go +++ b/service/directoryservice/api_op_RemoveIpRoutes.go @@ -31,7 +31,7 @@ type RemoveIpRoutesInput struct { // IP address blocks that you want to remove. // // This member is required. - CidrIps []*string + CidrIps []string // Identifier (ID) of the directory from which you want to remove the IP addresses. // diff --git a/service/directoryservice/api_op_RemoveTagsFromResource.go b/service/directoryservice/api_op_RemoveTagsFromResource.go index 19d425abde3..6dde1e1f4bb 100644 --- a/service/directoryservice/api_op_RemoveTagsFromResource.go +++ b/service/directoryservice/api_op_RemoveTagsFromResource.go @@ -36,7 +36,7 @@ type RemoveTagsFromResourceInput struct { // The tag key (name) of the tag to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } type RemoveTagsFromResourceOutput struct { diff --git a/service/directoryservice/api_op_StartSchemaExtension.go b/service/directoryservice/api_op_StartSchemaExtension.go index a2ef8b7806f..195a492a932 100644 --- a/service/directoryservice/api_op_StartSchemaExtension.go +++ b/service/directoryservice/api_op_StartSchemaExtension.go @@ -32,7 +32,7 @@ type StartSchemaExtensionInput struct { // extension. // // This member is required. - CreateSnapshotBeforeSchemaExtension *bool + CreateSnapshotBeforeSchemaExtension bool // A description of the schema extension. // diff --git a/service/directoryservice/api_op_UpdateConditionalForwarder.go b/service/directoryservice/api_op_UpdateConditionalForwarder.go index 648d67e28e2..d67804de40a 100644 --- a/service/directoryservice/api_op_UpdateConditionalForwarder.go +++ b/service/directoryservice/api_op_UpdateConditionalForwarder.go @@ -39,7 +39,7 @@ type UpdateConditionalForwarderInput struct { // conditional forwarder. // // This member is required. - DnsIpAddrs []*string + DnsIpAddrs []string // The fully qualified domain name (FQDN) of the remote domain with which you will // set up a trust relationship. diff --git a/service/directoryservice/api_op_UpdateNumberOfDomainControllers.go b/service/directoryservice/api_op_UpdateNumberOfDomainControllers.go index a25af10ad0a..f71495d08b5 100644 --- a/service/directoryservice/api_op_UpdateNumberOfDomainControllers.go +++ b/service/directoryservice/api_op_UpdateNumberOfDomainControllers.go @@ -36,7 +36,7 @@ type UpdateNumberOfDomainControllersInput struct { // The number of domain controllers desired in the directory. // // This member is required. - DesiredNumber *int32 + DesiredNumber int32 // Identifier of the directory to which the domain controllers will be added or // removed. diff --git a/service/directoryservice/deserializers.go b/service/directoryservice/deserializers.go index 2b57255f618..a25c505b3b9 100644 --- a/service/directoryservice/deserializers.go +++ b/service/directoryservice/deserializers.go @@ -8194,7 +8194,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -8203,7 +8203,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -8243,7 +8243,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Value": @@ -8252,7 +8252,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8264,7 +8264,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf return nil } -func awsAwsjson11_deserializeDocumentAttributes(v *[]*types.Attribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttributes(v *[]types.Attribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8277,18 +8277,20 @@ func awsAwsjson11_deserializeDocumentAttributes(v *[]*types.Attribute, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Attribute + var cv []types.Attribute if *v == nil { - cv = []*types.Attribute{} + cv = []types.Attribute{} } else { cv = *v } for _, value := range shape { - var col *types.Attribute - if err := awsAwsjson11_deserializeDocumentAttribute(&col, value); err != nil { + var col types.Attribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8324,7 +8326,7 @@ func awsAwsjson11_deserializeDocumentAuthenticationFailedException(v **types.Aut if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -8333,7 +8335,7 @@ func awsAwsjson11_deserializeDocumentAuthenticationFailedException(v **types.Aut if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -8345,7 +8347,7 @@ func awsAwsjson11_deserializeDocumentAuthenticationFailedException(v **types.Aut return nil } -func awsAwsjson11_deserializeDocumentAvailabilityZones(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAvailabilityZones(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8358,21 +8360,21 @@ func awsAwsjson11_deserializeDocumentAvailabilityZones(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8409,7 +8411,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } case "CommonName": @@ -8418,7 +8420,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected CertificateCN to be of type string, got %T instead", value) } - sv.CommonName = &jtv + sv.CommonName = ptr.String(jtv) } case "ExpiryDateTime": @@ -8462,7 +8464,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected CertificateStateReason to be of type string, got %T instead", value) } - sv.StateReason = &jtv + sv.StateReason = ptr.String(jtv) } default: @@ -8502,7 +8504,7 @@ func awsAwsjson11_deserializeDocumentCertificateAlreadyExistsException(v **types if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -8511,7 +8513,7 @@ func awsAwsjson11_deserializeDocumentCertificateAlreadyExistsException(v **types if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -8551,7 +8553,7 @@ func awsAwsjson11_deserializeDocumentCertificateDoesNotExistException(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -8560,7 +8562,7 @@ func awsAwsjson11_deserializeDocumentCertificateDoesNotExistException(v **types. if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -8600,7 +8602,7 @@ func awsAwsjson11_deserializeDocumentCertificateInfo(v **types.CertificateInfo, if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } case "CommonName": @@ -8609,7 +8611,7 @@ func awsAwsjson11_deserializeDocumentCertificateInfo(v **types.CertificateInfo, if !ok { return fmt.Errorf("expected CertificateCN to be of type string, got %T instead", value) } - sv.CommonName = &jtv + sv.CommonName = ptr.String(jtv) } case "ExpiryDateTime": @@ -8671,7 +8673,7 @@ func awsAwsjson11_deserializeDocumentCertificateInUseException(v **types.Certifi if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -8680,7 +8682,7 @@ func awsAwsjson11_deserializeDocumentCertificateInUseException(v **types.Certifi if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -8720,7 +8722,7 @@ func awsAwsjson11_deserializeDocumentCertificateLimitExceededException(v **types if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -8729,7 +8731,7 @@ func awsAwsjson11_deserializeDocumentCertificateLimitExceededException(v **types if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -8741,7 +8743,7 @@ func awsAwsjson11_deserializeDocumentCertificateLimitExceededException(v **types return nil } -func awsAwsjson11_deserializeDocumentCertificatesInfo(v *[]*types.CertificateInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentCertificatesInfo(v *[]types.CertificateInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8754,18 +8756,20 @@ func awsAwsjson11_deserializeDocumentCertificatesInfo(v *[]*types.CertificateInf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CertificateInfo + var cv []types.CertificateInfo if *v == nil { - cv = []*types.CertificateInfo{} + cv = []types.CertificateInfo{} } else { cv = *v } for _, value := range shape { - var col *types.CertificateInfo - if err := awsAwsjson11_deserializeDocumentCertificateInfo(&col, value); err != nil { + var col types.CertificateInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCertificateInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8801,7 +8805,7 @@ func awsAwsjson11_deserializeDocumentClientException(v **types.ClientException, if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -8810,7 +8814,7 @@ func awsAwsjson11_deserializeDocumentClientException(v **types.ClientException, if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -8855,7 +8859,7 @@ func awsAwsjson11_deserializeDocumentComputer(v **types.Computer, value interfac if !ok { return fmt.Errorf("expected SID to be of type string, got %T instead", value) } - sv.ComputerId = &jtv + sv.ComputerId = ptr.String(jtv) } case "ComputerName": @@ -8864,7 +8868,7 @@ func awsAwsjson11_deserializeDocumentComputer(v **types.Computer, value interfac if !ok { return fmt.Errorf("expected ComputerName to be of type string, got %T instead", value) } - sv.ComputerName = &jtv + sv.ComputerName = ptr.String(jtv) } default: @@ -8909,7 +8913,7 @@ func awsAwsjson11_deserializeDocumentConditionalForwarder(v **types.ConditionalF if !ok { return fmt.Errorf("expected RemoteDomainName to be of type string, got %T instead", value) } - sv.RemoteDomainName = &jtv + sv.RemoteDomainName = ptr.String(jtv) } case "ReplicationScope": @@ -8930,7 +8934,7 @@ func awsAwsjson11_deserializeDocumentConditionalForwarder(v **types.ConditionalF return nil } -func awsAwsjson11_deserializeDocumentConditionalForwarders(v *[]*types.ConditionalForwarder, value interface{}) error { +func awsAwsjson11_deserializeDocumentConditionalForwarders(v *[]types.ConditionalForwarder, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8943,18 +8947,20 @@ func awsAwsjson11_deserializeDocumentConditionalForwarders(v *[]*types.Condition return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConditionalForwarder + var cv []types.ConditionalForwarder if *v == nil { - cv = []*types.ConditionalForwarder{} + cv = []types.ConditionalForwarder{} } else { cv = *v } for _, value := range shape { - var col *types.ConditionalForwarder - if err := awsAwsjson11_deserializeDocumentConditionalForwarder(&col, value); err != nil { + var col types.ConditionalForwarder + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConditionalForwarder(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8990,7 +8996,7 @@ func awsAwsjson11_deserializeDocumentDirectoryAlreadySharedException(v **types.D if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -8999,7 +9005,7 @@ func awsAwsjson11_deserializeDocumentDirectoryAlreadySharedException(v **types.D if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -9049,7 +9055,7 @@ func awsAwsjson11_deserializeDocumentDirectoryConnectSettingsDescription(v **typ if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.CustomerUserName = &jtv + sv.CustomerUserName = ptr.String(jtv) } case "SecurityGroupId": @@ -9058,7 +9064,7 @@ func awsAwsjson11_deserializeDocumentDirectoryConnectSettingsDescription(v **typ if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - sv.SecurityGroupId = &jtv + sv.SecurityGroupId = ptr.String(jtv) } case "SubnetIds": @@ -9072,7 +9078,7 @@ func awsAwsjson11_deserializeDocumentDirectoryConnectSettingsDescription(v **typ if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -9112,7 +9118,7 @@ func awsAwsjson11_deserializeDocumentDirectoryDescription(v **types.DirectoryDes if !ok { return fmt.Errorf("expected AccessUrl to be of type string, got %T instead", value) } - sv.AccessUrl = &jtv + sv.AccessUrl = ptr.String(jtv) } case "Alias": @@ -9121,7 +9127,7 @@ func awsAwsjson11_deserializeDocumentDirectoryDescription(v **types.DirectoryDes if !ok { return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) } - sv.Alias = &jtv + sv.Alias = ptr.String(jtv) } case "ConnectSettings": @@ -9135,7 +9141,7 @@ func awsAwsjson11_deserializeDocumentDirectoryDescription(v **types.DirectoryDes if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DesiredNumberOfDomainControllers": @@ -9148,7 +9154,7 @@ func awsAwsjson11_deserializeDocumentDirectoryDescription(v **types.DirectoryDes if err != nil { return err } - sv.DesiredNumberOfDomainControllers = ptr.Int32(int32(i64)) + sv.DesiredNumberOfDomainControllers = int32(i64) } case "DirectoryId": @@ -9157,7 +9163,7 @@ func awsAwsjson11_deserializeDocumentDirectoryDescription(v **types.DirectoryDes if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } case "DnsIpAddrs": @@ -9193,7 +9199,7 @@ func awsAwsjson11_deserializeDocumentDirectoryDescription(v **types.DirectoryDes if !ok { return fmt.Errorf("expected DirectoryName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OwnerDirectoryDescription": @@ -9230,7 +9236,7 @@ func awsAwsjson11_deserializeDocumentDirectoryDescription(v **types.DirectoryDes if !ok { return fmt.Errorf("expected Notes to be of type string, got %T instead", value) } - sv.ShareNotes = &jtv + sv.ShareNotes = ptr.String(jtv) } case "ShareStatus": @@ -9248,7 +9254,7 @@ func awsAwsjson11_deserializeDocumentDirectoryDescription(v **types.DirectoryDes if !ok { return fmt.Errorf("expected DirectoryShortName to be of type string, got %T instead", value) } - sv.ShortName = &jtv + sv.ShortName = ptr.String(jtv) } case "Size": @@ -9266,7 +9272,7 @@ func awsAwsjson11_deserializeDocumentDirectoryDescription(v **types.DirectoryDes if !ok { return fmt.Errorf("expected SsoEnabled to be of type *bool, got %T instead", value) } - sv.SsoEnabled = &jtv + sv.SsoEnabled = jtv } case "Stage": @@ -9297,7 +9303,7 @@ func awsAwsjson11_deserializeDocumentDirectoryDescription(v **types.DirectoryDes if !ok { return fmt.Errorf("expected StageReason to be of type string, got %T instead", value) } - sv.StageReason = &jtv + sv.StageReason = ptr.String(jtv) } case "Type": @@ -9323,7 +9329,7 @@ func awsAwsjson11_deserializeDocumentDirectoryDescription(v **types.DirectoryDes return nil } -func awsAwsjson11_deserializeDocumentDirectoryDescriptions(v *[]*types.DirectoryDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentDirectoryDescriptions(v *[]types.DirectoryDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9336,18 +9342,20 @@ func awsAwsjson11_deserializeDocumentDirectoryDescriptions(v *[]*types.Directory return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DirectoryDescription + var cv []types.DirectoryDescription if *v == nil { - cv = []*types.DirectoryDescription{} + cv = []types.DirectoryDescription{} } else { cv = *v } for _, value := range shape { - var col *types.DirectoryDescription - if err := awsAwsjson11_deserializeDocumentDirectoryDescription(&col, value); err != nil { + var col types.DirectoryDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDirectoryDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9383,7 +9391,7 @@ func awsAwsjson11_deserializeDocumentDirectoryDoesNotExistException(v **types.Di if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -9392,7 +9400,7 @@ func awsAwsjson11_deserializeDocumentDirectoryDoesNotExistException(v **types.Di if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -9432,7 +9440,7 @@ func awsAwsjson11_deserializeDocumentDirectoryLimitExceededException(v **types.D if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -9441,7 +9449,7 @@ func awsAwsjson11_deserializeDocumentDirectoryLimitExceededException(v **types.D if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -9507,7 +9515,7 @@ func awsAwsjson11_deserializeDocumentDirectoryLimits(v **types.DirectoryLimits, if !ok { return fmt.Errorf("expected CloudOnlyDirectoriesLimitReached to be of type *bool, got %T instead", value) } - sv.CloudOnlyDirectoriesLimitReached = &jtv + sv.CloudOnlyDirectoriesLimitReached = jtv } case "CloudOnlyMicrosoftADCurrentCount": @@ -9542,7 +9550,7 @@ func awsAwsjson11_deserializeDocumentDirectoryLimits(v **types.DirectoryLimits, if !ok { return fmt.Errorf("expected CloudOnlyDirectoriesLimitReached to be of type *bool, got %T instead", value) } - sv.CloudOnlyMicrosoftADLimitReached = &jtv + sv.CloudOnlyMicrosoftADLimitReached = jtv } case "ConnectedDirectoriesCurrentCount": @@ -9577,7 +9585,7 @@ func awsAwsjson11_deserializeDocumentDirectoryLimits(v **types.DirectoryLimits, if !ok { return fmt.Errorf("expected ConnectedDirectoriesLimitReached to be of type *bool, got %T instead", value) } - sv.ConnectedDirectoriesLimitReached = &jtv + sv.ConnectedDirectoriesLimitReached = jtv } default: @@ -9617,7 +9625,7 @@ func awsAwsjson11_deserializeDocumentDirectoryNotSharedException(v **types.Direc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -9626,7 +9634,7 @@ func awsAwsjson11_deserializeDocumentDirectoryNotSharedException(v **types.Direc if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -9666,7 +9674,7 @@ func awsAwsjson11_deserializeDocumentDirectoryUnavailableException(v **types.Dir if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -9675,7 +9683,7 @@ func awsAwsjson11_deserializeDocumentDirectoryUnavailableException(v **types.Dir if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -9720,7 +9728,7 @@ func awsAwsjson11_deserializeDocumentDirectoryVpcSettingsDescription(v **types.D if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - sv.SecurityGroupId = &jtv + sv.SecurityGroupId = ptr.String(jtv) } case "SubnetIds": @@ -9734,7 +9742,7 @@ func awsAwsjson11_deserializeDocumentDirectoryVpcSettingsDescription(v **types.D if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -9746,7 +9754,7 @@ func awsAwsjson11_deserializeDocumentDirectoryVpcSettingsDescription(v **types.D return nil } -func awsAwsjson11_deserializeDocumentDnsIpAddrs(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDnsIpAddrs(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9759,21 +9767,21 @@ func awsAwsjson11_deserializeDocumentDnsIpAddrs(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IpAddr to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9810,7 +9818,7 @@ func awsAwsjson11_deserializeDocumentDomainController(v **types.DomainController if !ok { return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "DirectoryId": @@ -9819,7 +9827,7 @@ func awsAwsjson11_deserializeDocumentDomainController(v **types.DomainController if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } case "DnsIpAddr": @@ -9828,7 +9836,7 @@ func awsAwsjson11_deserializeDocumentDomainController(v **types.DomainController if !ok { return fmt.Errorf("expected IpAddr to be of type string, got %T instead", value) } - sv.DnsIpAddr = &jtv + sv.DnsIpAddr = ptr.String(jtv) } case "DomainControllerId": @@ -9837,7 +9845,7 @@ func awsAwsjson11_deserializeDocumentDomainController(v **types.DomainController if !ok { return fmt.Errorf("expected DomainControllerId to be of type string, got %T instead", value) } - sv.DomainControllerId = &jtv + sv.DomainControllerId = ptr.String(jtv) } case "LaunchTime": @@ -9881,7 +9889,7 @@ func awsAwsjson11_deserializeDocumentDomainController(v **types.DomainController if !ok { return fmt.Errorf("expected DomainControllerStatusReason to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } case "SubnetId": @@ -9890,7 +9898,7 @@ func awsAwsjson11_deserializeDocumentDomainController(v **types.DomainController if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "VpcId": @@ -9899,7 +9907,7 @@ func awsAwsjson11_deserializeDocumentDomainController(v **types.DomainController if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -9939,7 +9947,7 @@ func awsAwsjson11_deserializeDocumentDomainControllerLimitExceededException(v ** if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -9948,7 +9956,7 @@ func awsAwsjson11_deserializeDocumentDomainControllerLimitExceededException(v ** if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -9960,7 +9968,7 @@ func awsAwsjson11_deserializeDocumentDomainControllerLimitExceededException(v ** return nil } -func awsAwsjson11_deserializeDocumentDomainControllers(v *[]*types.DomainController, value interface{}) error { +func awsAwsjson11_deserializeDocumentDomainControllers(v *[]types.DomainController, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9973,18 +9981,20 @@ func awsAwsjson11_deserializeDocumentDomainControllers(v *[]*types.DomainControl return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainController + var cv []types.DomainController if *v == nil { - cv = []*types.DomainController{} + cv = []types.DomainController{} } else { cv = *v } for _, value := range shape { - var col *types.DomainController - if err := awsAwsjson11_deserializeDocumentDomainController(&col, value); err != nil { + var col types.DomainController + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDomainController(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10020,7 +10030,7 @@ func awsAwsjson11_deserializeDocumentEntityAlreadyExistsException(v **types.Enti if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -10029,7 +10039,7 @@ func awsAwsjson11_deserializeDocumentEntityAlreadyExistsException(v **types.Enti if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -10069,7 +10079,7 @@ func awsAwsjson11_deserializeDocumentEntityDoesNotExistException(v **types.Entit if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -10078,7 +10088,7 @@ func awsAwsjson11_deserializeDocumentEntityDoesNotExistException(v **types.Entit if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -10131,7 +10141,7 @@ func awsAwsjson11_deserializeDocumentEventTopic(v **types.EventTopic, value inte if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } case "Status": @@ -10149,7 +10159,7 @@ func awsAwsjson11_deserializeDocumentEventTopic(v **types.EventTopic, value inte if !ok { return fmt.Errorf("expected TopicArn to be of type string, got %T instead", value) } - sv.TopicArn = &jtv + sv.TopicArn = ptr.String(jtv) } case "TopicName": @@ -10158,7 +10168,7 @@ func awsAwsjson11_deserializeDocumentEventTopic(v **types.EventTopic, value inte if !ok { return fmt.Errorf("expected TopicName to be of type string, got %T instead", value) } - sv.TopicName = &jtv + sv.TopicName = ptr.String(jtv) } default: @@ -10170,7 +10180,7 @@ func awsAwsjson11_deserializeDocumentEventTopic(v **types.EventTopic, value inte return nil } -func awsAwsjson11_deserializeDocumentEventTopics(v *[]*types.EventTopic, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventTopics(v *[]types.EventTopic, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10183,18 +10193,20 @@ func awsAwsjson11_deserializeDocumentEventTopics(v *[]*types.EventTopic, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventTopic + var cv []types.EventTopic if *v == nil { - cv = []*types.EventTopic{} + cv = []types.EventTopic{} } else { cv = *v } for _, value := range shape { - var col *types.EventTopic - if err := awsAwsjson11_deserializeDocumentEventTopic(&col, value); err != nil { + var col types.EventTopic + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventTopic(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10230,7 +10242,7 @@ func awsAwsjson11_deserializeDocumentInsufficientPermissionsException(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -10239,7 +10251,7 @@ func awsAwsjson11_deserializeDocumentInsufficientPermissionsException(v **types. if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -10279,7 +10291,7 @@ func awsAwsjson11_deserializeDocumentInvalidCertificateException(v **types.Inval if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -10288,7 +10300,7 @@ func awsAwsjson11_deserializeDocumentInvalidCertificateException(v **types.Inval if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -10328,7 +10340,7 @@ func awsAwsjson11_deserializeDocumentInvalidLDAPSStatusException(v **types.Inval if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -10337,7 +10349,7 @@ func awsAwsjson11_deserializeDocumentInvalidLDAPSStatusException(v **types.Inval if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -10377,7 +10389,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -10386,7 +10398,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -10426,7 +10438,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -10435,7 +10447,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -10475,7 +10487,7 @@ func awsAwsjson11_deserializeDocumentInvalidPasswordException(v **types.InvalidP if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -10484,7 +10496,7 @@ func awsAwsjson11_deserializeDocumentInvalidPasswordException(v **types.InvalidP if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -10524,7 +10536,7 @@ func awsAwsjson11_deserializeDocumentInvalidTargetException(v **types.InvalidTar if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -10533,7 +10545,7 @@ func awsAwsjson11_deserializeDocumentInvalidTargetException(v **types.InvalidTar if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -10545,7 +10557,7 @@ func awsAwsjson11_deserializeDocumentInvalidTargetException(v **types.InvalidTar return nil } -func awsAwsjson11_deserializeDocumentIpAddrs(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIpAddrs(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10558,21 +10570,21 @@ func awsAwsjson11_deserializeDocumentIpAddrs(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IpAddr to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10622,7 +10634,7 @@ func awsAwsjson11_deserializeDocumentIpRouteInfo(v **types.IpRouteInfo, value in if !ok { return fmt.Errorf("expected CidrIp to be of type string, got %T instead", value) } - sv.CidrIp = &jtv + sv.CidrIp = ptr.String(jtv) } case "Description": @@ -10631,7 +10643,7 @@ func awsAwsjson11_deserializeDocumentIpRouteInfo(v **types.IpRouteInfo, value in if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DirectoryId": @@ -10640,7 +10652,7 @@ func awsAwsjson11_deserializeDocumentIpRouteInfo(v **types.IpRouteInfo, value in if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } case "IpRouteStatusMsg": @@ -10658,7 +10670,7 @@ func awsAwsjson11_deserializeDocumentIpRouteInfo(v **types.IpRouteInfo, value in if !ok { return fmt.Errorf("expected IpRouteStatusReason to be of type string, got %T instead", value) } - sv.IpRouteStatusReason = &jtv + sv.IpRouteStatusReason = ptr.String(jtv) } default: @@ -10698,7 +10710,7 @@ func awsAwsjson11_deserializeDocumentIpRouteLimitExceededException(v **types.IpR if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -10707,7 +10719,7 @@ func awsAwsjson11_deserializeDocumentIpRouteLimitExceededException(v **types.IpR if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -10719,7 +10731,7 @@ func awsAwsjson11_deserializeDocumentIpRouteLimitExceededException(v **types.IpR return nil } -func awsAwsjson11_deserializeDocumentIpRoutesInfo(v *[]*types.IpRouteInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentIpRoutesInfo(v *[]types.IpRouteInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10732,18 +10744,20 @@ func awsAwsjson11_deserializeDocumentIpRoutesInfo(v *[]*types.IpRouteInfo, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IpRouteInfo + var cv []types.IpRouteInfo if *v == nil { - cv = []*types.IpRouteInfo{} + cv = []types.IpRouteInfo{} } else { cv = *v } for _, value := range shape { - var col *types.IpRouteInfo - if err := awsAwsjson11_deserializeDocumentIpRouteInfo(&col, value); err != nil { + var col types.IpRouteInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIpRouteInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10801,7 +10815,7 @@ func awsAwsjson11_deserializeDocumentLDAPSSettingInfo(v **types.LDAPSSettingInfo if !ok { return fmt.Errorf("expected LDAPSStatusReason to be of type string, got %T instead", value) } - sv.LDAPSStatusReason = &jtv + sv.LDAPSStatusReason = ptr.String(jtv) } default: @@ -10813,7 +10827,7 @@ func awsAwsjson11_deserializeDocumentLDAPSSettingInfo(v **types.LDAPSSettingInfo return nil } -func awsAwsjson11_deserializeDocumentLDAPSSettingsInfo(v *[]*types.LDAPSSettingInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentLDAPSSettingsInfo(v *[]types.LDAPSSettingInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10826,18 +10840,20 @@ func awsAwsjson11_deserializeDocumentLDAPSSettingsInfo(v *[]*types.LDAPSSettingI return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LDAPSSettingInfo + var cv []types.LDAPSSettingInfo if *v == nil { - cv = []*types.LDAPSSettingInfo{} + cv = []types.LDAPSSettingInfo{} } else { cv = *v } for _, value := range shape { - var col *types.LDAPSSettingInfo - if err := awsAwsjson11_deserializeDocumentLDAPSSettingInfo(&col, value); err != nil { + var col types.LDAPSSettingInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLDAPSSettingInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10873,7 +10889,7 @@ func awsAwsjson11_deserializeDocumentLogSubscription(v **types.LogSubscription, if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } case "LogGroupName": @@ -10882,7 +10898,7 @@ func awsAwsjson11_deserializeDocumentLogSubscription(v **types.LogSubscription, if !ok { return fmt.Errorf("expected LogGroupName to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } case "SubscriptionCreatedDateTime": @@ -10907,7 +10923,7 @@ func awsAwsjson11_deserializeDocumentLogSubscription(v **types.LogSubscription, return nil } -func awsAwsjson11_deserializeDocumentLogSubscriptions(v *[]*types.LogSubscription, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogSubscriptions(v *[]types.LogSubscription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10920,18 +10936,20 @@ func awsAwsjson11_deserializeDocumentLogSubscriptions(v *[]*types.LogSubscriptio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LogSubscription + var cv []types.LogSubscription if *v == nil { - cv = []*types.LogSubscription{} + cv = []types.LogSubscription{} } else { cv = *v } for _, value := range shape { - var col *types.LogSubscription - if err := awsAwsjson11_deserializeDocumentLogSubscription(&col, value); err != nil { + var col types.LogSubscription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLogSubscription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10967,7 +10985,7 @@ func awsAwsjson11_deserializeDocumentNoAvailableCertificateException(v **types.N if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -10976,7 +10994,7 @@ func awsAwsjson11_deserializeDocumentNoAvailableCertificateException(v **types.N if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -11016,7 +11034,7 @@ func awsAwsjson11_deserializeDocumentOrganizationsException(v **types.Organizati if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -11025,7 +11043,7 @@ func awsAwsjson11_deserializeDocumentOrganizationsException(v **types.Organizati if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -11065,7 +11083,7 @@ func awsAwsjson11_deserializeDocumentOwnerDirectoryDescription(v **types.OwnerDi if !ok { return fmt.Errorf("expected CustomerId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "DirectoryId": @@ -11074,7 +11092,7 @@ func awsAwsjson11_deserializeDocumentOwnerDirectoryDescription(v **types.OwnerDi if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } case "DnsIpAddrs": @@ -11147,7 +11165,7 @@ func awsAwsjson11_deserializeDocumentRadiusSettings(v **types.RadiusSettings, va if !ok { return fmt.Errorf("expected RadiusDisplayLabel to be of type string, got %T instead", value) } - sv.DisplayLabel = &jtv + sv.DisplayLabel = ptr.String(jtv) } case "RadiusPort": @@ -11160,7 +11178,7 @@ func awsAwsjson11_deserializeDocumentRadiusSettings(v **types.RadiusSettings, va if err != nil { return err } - sv.RadiusPort = ptr.Int32(int32(i64)) + sv.RadiusPort = int32(i64) } case "RadiusRetries": @@ -11173,7 +11191,7 @@ func awsAwsjson11_deserializeDocumentRadiusSettings(v **types.RadiusSettings, va if err != nil { return err } - sv.RadiusRetries = ptr.Int32(int32(i64)) + sv.RadiusRetries = int32(i64) } case "RadiusServers": @@ -11191,7 +11209,7 @@ func awsAwsjson11_deserializeDocumentRadiusSettings(v **types.RadiusSettings, va if err != nil { return err } - sv.RadiusTimeout = ptr.Int32(int32(i64)) + sv.RadiusTimeout = int32(i64) } case "SharedSecret": @@ -11200,7 +11218,7 @@ func awsAwsjson11_deserializeDocumentRadiusSettings(v **types.RadiusSettings, va if !ok { return fmt.Errorf("expected RadiusSharedSecret to be of type string, got %T instead", value) } - sv.SharedSecret = &jtv + sv.SharedSecret = ptr.String(jtv) } case "UseSameUsername": @@ -11209,7 +11227,7 @@ func awsAwsjson11_deserializeDocumentRadiusSettings(v **types.RadiusSettings, va if !ok { return fmt.Errorf("expected UseSameUsername to be of type *bool, got %T instead", value) } - sv.UseSameUsername = &jtv + sv.UseSameUsername = jtv } default: @@ -11249,7 +11267,7 @@ func awsAwsjson11_deserializeDocumentSchemaExtensionInfo(v **types.SchemaExtensi if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DirectoryId": @@ -11258,7 +11276,7 @@ func awsAwsjson11_deserializeDocumentSchemaExtensionInfo(v **types.SchemaExtensi if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } case "EndDateTime": @@ -11280,7 +11298,7 @@ func awsAwsjson11_deserializeDocumentSchemaExtensionInfo(v **types.SchemaExtensi if !ok { return fmt.Errorf("expected SchemaExtensionId to be of type string, got %T instead", value) } - sv.SchemaExtensionId = &jtv + sv.SchemaExtensionId = ptr.String(jtv) } case "SchemaExtensionStatus": @@ -11298,7 +11316,7 @@ func awsAwsjson11_deserializeDocumentSchemaExtensionInfo(v **types.SchemaExtensi if !ok { return fmt.Errorf("expected SchemaExtensionStatusReason to be of type string, got %T instead", value) } - sv.SchemaExtensionStatusReason = &jtv + sv.SchemaExtensionStatusReason = ptr.String(jtv) } case "StartDateTime": @@ -11323,7 +11341,7 @@ func awsAwsjson11_deserializeDocumentSchemaExtensionInfo(v **types.SchemaExtensi return nil } -func awsAwsjson11_deserializeDocumentSchemaExtensionsInfo(v *[]*types.SchemaExtensionInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentSchemaExtensionsInfo(v *[]types.SchemaExtensionInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11336,18 +11354,20 @@ func awsAwsjson11_deserializeDocumentSchemaExtensionsInfo(v *[]*types.SchemaExte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SchemaExtensionInfo + var cv []types.SchemaExtensionInfo if *v == nil { - cv = []*types.SchemaExtensionInfo{} + cv = []types.SchemaExtensionInfo{} } else { cv = *v } for _, value := range shape { - var col *types.SchemaExtensionInfo - if err := awsAwsjson11_deserializeDocumentSchemaExtensionInfo(&col, value); err != nil { + var col types.SchemaExtensionInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSchemaExtensionInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11355,7 +11375,7 @@ func awsAwsjson11_deserializeDocumentSchemaExtensionsInfo(v *[]*types.SchemaExte return nil } -func awsAwsjson11_deserializeDocumentServers(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentServers(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11368,21 +11388,21 @@ func awsAwsjson11_deserializeDocumentServers(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Server to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11419,7 +11439,7 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -11428,7 +11448,7 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -11440,7 +11460,7 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException return nil } -func awsAwsjson11_deserializeDocumentSharedDirectories(v *[]*types.SharedDirectory, value interface{}) error { +func awsAwsjson11_deserializeDocumentSharedDirectories(v *[]types.SharedDirectory, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11453,18 +11473,20 @@ func awsAwsjson11_deserializeDocumentSharedDirectories(v *[]*types.SharedDirecto return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SharedDirectory + var cv []types.SharedDirectory if *v == nil { - cv = []*types.SharedDirectory{} + cv = []types.SharedDirectory{} } else { cv = *v } for _, value := range shape { - var col *types.SharedDirectory - if err := awsAwsjson11_deserializeDocumentSharedDirectory(&col, value); err != nil { + var col types.SharedDirectory + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSharedDirectory(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11526,7 +11548,7 @@ func awsAwsjson11_deserializeDocumentSharedDirectory(v **types.SharedDirectory, if !ok { return fmt.Errorf("expected CustomerId to be of type string, got %T instead", value) } - sv.OwnerAccountId = &jtv + sv.OwnerAccountId = ptr.String(jtv) } case "OwnerDirectoryId": @@ -11535,7 +11557,7 @@ func awsAwsjson11_deserializeDocumentSharedDirectory(v **types.SharedDirectory, if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.OwnerDirectoryId = &jtv + sv.OwnerDirectoryId = ptr.String(jtv) } case "SharedAccountId": @@ -11544,7 +11566,7 @@ func awsAwsjson11_deserializeDocumentSharedDirectory(v **types.SharedDirectory, if !ok { return fmt.Errorf("expected CustomerId to be of type string, got %T instead", value) } - sv.SharedAccountId = &jtv + sv.SharedAccountId = ptr.String(jtv) } case "SharedDirectoryId": @@ -11553,7 +11575,7 @@ func awsAwsjson11_deserializeDocumentSharedDirectory(v **types.SharedDirectory, if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.SharedDirectoryId = &jtv + sv.SharedDirectoryId = ptr.String(jtv) } case "ShareMethod": @@ -11571,7 +11593,7 @@ func awsAwsjson11_deserializeDocumentSharedDirectory(v **types.SharedDirectory, if !ok { return fmt.Errorf("expected Notes to be of type string, got %T instead", value) } - sv.ShareNotes = &jtv + sv.ShareNotes = ptr.String(jtv) } case "ShareStatus": @@ -11620,7 +11642,7 @@ func awsAwsjson11_deserializeDocumentShareLimitExceededException(v **types.Share if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -11629,7 +11651,7 @@ func awsAwsjson11_deserializeDocumentShareLimitExceededException(v **types.Share if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -11669,7 +11691,7 @@ func awsAwsjson11_deserializeDocumentSnapshot(v **types.Snapshot, value interfac if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } case "Name": @@ -11678,7 +11700,7 @@ func awsAwsjson11_deserializeDocumentSnapshot(v **types.Snapshot, value interfac if !ok { return fmt.Errorf("expected SnapshotName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SnapshotId": @@ -11687,7 +11709,7 @@ func awsAwsjson11_deserializeDocumentSnapshot(v **types.Snapshot, value interfac if !ok { return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.SnapshotId = &jtv + sv.SnapshotId = ptr.String(jtv) } case "StartTime": @@ -11758,7 +11780,7 @@ func awsAwsjson11_deserializeDocumentSnapshotLimitExceededException(v **types.Sn if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -11767,7 +11789,7 @@ func awsAwsjson11_deserializeDocumentSnapshotLimitExceededException(v **types.Sn if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -11833,7 +11855,7 @@ func awsAwsjson11_deserializeDocumentSnapshotLimits(v **types.SnapshotLimits, va if !ok { return fmt.Errorf("expected ManualSnapshotsLimitReached to be of type *bool, got %T instead", value) } - sv.ManualSnapshotsLimitReached = &jtv + sv.ManualSnapshotsLimitReached = jtv } default: @@ -11845,7 +11867,7 @@ func awsAwsjson11_deserializeDocumentSnapshotLimits(v **types.SnapshotLimits, va return nil } -func awsAwsjson11_deserializeDocumentSnapshots(v *[]*types.Snapshot, value interface{}) error { +func awsAwsjson11_deserializeDocumentSnapshots(v *[]types.Snapshot, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11858,18 +11880,20 @@ func awsAwsjson11_deserializeDocumentSnapshots(v *[]*types.Snapshot, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Snapshot + var cv []types.Snapshot if *v == nil { - cv = []*types.Snapshot{} + cv = []types.Snapshot{} } else { cv = *v } for _, value := range shape { - var col *types.Snapshot - if err := awsAwsjson11_deserializeDocumentSnapshot(&col, value); err != nil { + var col types.Snapshot + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSnapshot(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11877,7 +11901,7 @@ func awsAwsjson11_deserializeDocumentSnapshots(v *[]*types.Snapshot, value inter return nil } -func awsAwsjson11_deserializeDocumentSubnetIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnetIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11890,21 +11914,21 @@ func awsAwsjson11_deserializeDocumentSubnetIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11941,7 +11965,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -11950,7 +11974,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -11990,7 +12014,7 @@ func awsAwsjson11_deserializeDocumentTagLimitExceededException(v **types.TagLimi if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -11999,7 +12023,7 @@ func awsAwsjson11_deserializeDocumentTagLimitExceededException(v **types.TagLimi if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -12011,7 +12035,7 @@ func awsAwsjson11_deserializeDocumentTagLimitExceededException(v **types.TagLimi return nil } -func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12024,18 +12048,20 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12084,7 +12110,7 @@ func awsAwsjson11_deserializeDocumentTrust(v **types.Trust, value interface{}) e if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } case "LastUpdatedDateTime": @@ -12106,7 +12132,7 @@ func awsAwsjson11_deserializeDocumentTrust(v **types.Trust, value interface{}) e if !ok { return fmt.Errorf("expected RemoteDomainName to be of type string, got %T instead", value) } - sv.RemoteDomainName = &jtv + sv.RemoteDomainName = ptr.String(jtv) } case "SelectiveAuth": @@ -12146,7 +12172,7 @@ func awsAwsjson11_deserializeDocumentTrust(v **types.Trust, value interface{}) e if !ok { return fmt.Errorf("expected TrustId to be of type string, got %T instead", value) } - sv.TrustId = &jtv + sv.TrustId = ptr.String(jtv) } case "TrustState": @@ -12164,7 +12190,7 @@ func awsAwsjson11_deserializeDocumentTrust(v **types.Trust, value interface{}) e if !ok { return fmt.Errorf("expected TrustStateReason to be of type string, got %T instead", value) } - sv.TrustStateReason = &jtv + sv.TrustStateReason = ptr.String(jtv) } case "TrustType": @@ -12185,7 +12211,7 @@ func awsAwsjson11_deserializeDocumentTrust(v **types.Trust, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentTrusts(v *[]*types.Trust, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrusts(v *[]types.Trust, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12198,18 +12224,20 @@ func awsAwsjson11_deserializeDocumentTrusts(v *[]*types.Trust, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Trust + var cv []types.Trust if *v == nil { - cv = []*types.Trust{} + cv = []types.Trust{} } else { cv = *v } for _, value := range shape { - var col *types.Trust - if err := awsAwsjson11_deserializeDocumentTrust(&col, value); err != nil { + var col types.Trust + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrust(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12245,7 +12273,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -12254,7 +12282,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -12294,7 +12322,7 @@ func awsAwsjson11_deserializeDocumentUserDoesNotExistException(v **types.UserDoe if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -12303,7 +12331,7 @@ func awsAwsjson11_deserializeDocumentUserDoesNotExistException(v **types.UserDoe if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -12472,7 +12500,7 @@ func awsAwsjson11_deserializeOpDocumentConnectDirectoryOutput(v **ConnectDirecto if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } default: @@ -12512,7 +12540,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAliasOutput(v **CreateAliasOutput, if !ok { return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) } - sv.Alias = &jtv + sv.Alias = ptr.String(jtv) } case "DirectoryId": @@ -12521,7 +12549,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAliasOutput(v **CreateAliasOutput, if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } default: @@ -12628,7 +12656,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDirectoryOutput(v **CreateDirectory if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } default: @@ -12699,7 +12727,7 @@ func awsAwsjson11_deserializeOpDocumentCreateMicrosoftADOutput(v **CreateMicroso if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } default: @@ -12739,7 +12767,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOu if !ok { return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.SnapshotId = &jtv + sv.SnapshotId = ptr.String(jtv) } default: @@ -12779,7 +12807,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrustOutput(v **CreateTrustOutput, if !ok { return fmt.Errorf("expected TrustId to be of type string, got %T instead", value) } - sv.TrustId = &jtv + sv.TrustId = ptr.String(jtv) } default: @@ -12850,7 +12878,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteDirectoryOutput(v **DeleteDirectory if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } default: @@ -12921,7 +12949,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteSnapshotOutput(v **DeleteSnapshotOu if !ok { return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.SnapshotId = &jtv + sv.SnapshotId = ptr.String(jtv) } default: @@ -12961,7 +12989,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteTrustOutput(v **DeleteTrustOutput, if !ok { return fmt.Errorf("expected TrustId to be of type string, got %T instead", value) } - sv.TrustId = &jtv + sv.TrustId = ptr.String(jtv) } default: @@ -13140,7 +13168,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDirectoriesOutput(v **DescribeDir if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13185,7 +13213,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDomainControllersOutput(v **Descr if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13266,7 +13294,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLDAPSSettingsOutput(v **DescribeL if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13306,7 +13334,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSharedDirectoriesOutput(v **Descr if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SharedDirectories": @@ -13351,7 +13379,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSnapshotsOutput(v **DescribeSnaps if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Snapshots": @@ -13396,7 +13424,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrustsOutput(v **DescribeTrustsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Trusts": @@ -13704,7 +13732,7 @@ func awsAwsjson11_deserializeOpDocumentListCertificatesOutput(v **ListCertificat if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13749,7 +13777,7 @@ func awsAwsjson11_deserializeOpDocumentListIpRoutesOutput(v **ListIpRoutesOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13794,7 +13822,7 @@ func awsAwsjson11_deserializeOpDocumentListLogSubscriptionsOutput(v **ListLogSub if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13834,7 +13862,7 @@ func awsAwsjson11_deserializeOpDocumentListSchemaExtensionsOutput(v **ListSchema if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SchemaExtensionsInfo": @@ -13879,7 +13907,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -13924,7 +13952,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterCertificateOutput(v **RegisterCer if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } default: @@ -13995,7 +14023,7 @@ func awsAwsjson11_deserializeOpDocumentRejectSharedDirectoryOutput(v **RejectSha if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.SharedDirectoryId = &jtv + sv.SharedDirectoryId = ptr.String(jtv) } default: @@ -14159,7 +14187,7 @@ func awsAwsjson11_deserializeOpDocumentShareDirectoryOutput(v **ShareDirectoryOu if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.SharedDirectoryId = &jtv + sv.SharedDirectoryId = ptr.String(jtv) } default: @@ -14199,7 +14227,7 @@ func awsAwsjson11_deserializeOpDocumentStartSchemaExtensionOutput(v **StartSchem if !ok { return fmt.Errorf("expected SchemaExtensionId to be of type string, got %T instead", value) } - sv.SchemaExtensionId = &jtv + sv.SchemaExtensionId = ptr.String(jtv) } default: @@ -14239,7 +14267,7 @@ func awsAwsjson11_deserializeOpDocumentUnshareDirectoryOutput(v **UnshareDirecto if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.SharedDirectoryId = &jtv + sv.SharedDirectoryId = ptr.String(jtv) } default: @@ -14372,7 +14400,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrustOutput(v **UpdateTrustOutput, if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "TrustId": @@ -14381,7 +14409,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrustOutput(v **UpdateTrustOutput, if !ok { return fmt.Errorf("expected TrustId to be of type string, got %T instead", value) } - sv.TrustId = &jtv + sv.TrustId = ptr.String(jtv) } default: @@ -14421,7 +14449,7 @@ func awsAwsjson11_deserializeOpDocumentVerifyTrustOutput(v **VerifyTrustOutput, if !ok { return fmt.Errorf("expected TrustId to be of type string, got %T instead", value) } - sv.TrustId = &jtv + sv.TrustId = ptr.String(jtv) } default: diff --git a/service/directoryservice/go.mod b/service/directoryservice/go.mod index 8b7fff2a05a..dd2d716a3c3 100644 --- a/service/directoryservice/go.mod +++ b/service/directoryservice/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/directoryservice go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/directoryservice/serializers.go b/service/directoryservice/serializers.go index 69c57213306..bd46f5d4355 100644 --- a/service/directoryservice/serializers.go +++ b/service/directoryservice/serializers.go @@ -2645,34 +2645,26 @@ func awsAwsjson11_serializeDocumentAttribute(v *types.Attribute, value smithyjso return nil } -func awsAwsjson11_serializeDocumentAttributes(v []*types.Attribute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttributes(v []types.Attribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAttribute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAttribute(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentCidrIps(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCidrIps(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2708,17 +2700,13 @@ func awsAwsjson11_serializeDocumentDirectoryConnectSettings(v *types.DirectoryCo return nil } -func awsAwsjson11_serializeDocumentDirectoryIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDirectoryIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2742,32 +2730,24 @@ func awsAwsjson11_serializeDocumentDirectoryVpcSettings(v *types.DirectoryVpcSet return nil } -func awsAwsjson11_serializeDocumentDnsIpAddrs(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDnsIpAddrs(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentDomainControllerIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDomainControllerIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2789,17 +2769,13 @@ func awsAwsjson11_serializeDocumentIpRoute(v *types.IpRoute, value smithyjson.Va return nil } -func awsAwsjson11_serializeDocumentIpRoutes(v []*types.IpRoute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIpRoutes(v []types.IpRoute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentIpRoute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentIpRoute(&v[i], av); err != nil { return err } } @@ -2820,14 +2796,14 @@ func awsAwsjson11_serializeDocumentRadiusSettings(v *types.RadiusSettings, value ok.String(*v.DisplayLabel) } - if v.RadiusPort != nil { + if v.RadiusPort != 0 { ok := object.Key("RadiusPort") - ok.Integer(*v.RadiusPort) + ok.Integer(v.RadiusPort) } - if v.RadiusRetries != nil { + if v.RadiusRetries != 0 { ok := object.Key("RadiusRetries") - ok.Integer(*v.RadiusRetries) + ok.Integer(v.RadiusRetries) } if v.RadiusServers != nil { @@ -2837,9 +2813,9 @@ func awsAwsjson11_serializeDocumentRadiusSettings(v *types.RadiusSettings, value } } - if v.RadiusTimeout != nil { + if v.RadiusTimeout != 0 { ok := object.Key("RadiusTimeout") - ok.Integer(*v.RadiusTimeout) + ok.Integer(v.RadiusTimeout) } if v.SharedSecret != nil { @@ -2847,40 +2823,32 @@ func awsAwsjson11_serializeDocumentRadiusSettings(v *types.RadiusSettings, value ok.String(*v.SharedSecret) } - if v.UseSameUsername != nil { + if v.UseSameUsername { ok := object.Key("UseSameUsername") - ok.Boolean(*v.UseSameUsername) + ok.Boolean(v.UseSameUsername) } return nil } -func awsAwsjson11_serializeDocumentRemoteDomainNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRemoteDomainNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentServers(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServers(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2902,32 +2870,24 @@ func awsAwsjson11_serializeDocumentShareTarget(v *types.ShareTarget, value smith return nil } -func awsAwsjson11_serializeDocumentSnapshotIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSnapshotIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentSubnetIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnetIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2949,64 +2909,48 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTopicNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTopicNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTrustIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTrustIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3056,9 +3000,9 @@ func awsAwsjson11_serializeOpDocumentAddIpRoutesInput(v *AddIpRoutesInput, value } } - if v.UpdateSecurityGroupForDirectoryControllers != nil { + if v.UpdateSecurityGroupForDirectoryControllers { ok := object.Key("UpdateSecurityGroupForDirectoryControllers") - ok.Boolean(*v.UpdateSecurityGroupForDirectoryControllers) + ok.Boolean(v.UpdateSecurityGroupForDirectoryControllers) } return nil @@ -3448,9 +3392,9 @@ func awsAwsjson11_serializeOpDocumentDeleteTrustInput(v *DeleteTrustInput, value object := value.Object() defer object.Close() - if v.DeleteAssociatedConditionalForwarder != nil { + if v.DeleteAssociatedConditionalForwarder { ok := object.Key("DeleteAssociatedConditionalForwarder") - ok.Boolean(*v.DeleteAssociatedConditionalForwarder) + ok.Boolean(v.DeleteAssociatedConditionalForwarder) } if v.TrustId != nil { @@ -4106,9 +4050,9 @@ func awsAwsjson11_serializeOpDocumentStartSchemaExtensionInput(v *StartSchemaExt object := value.Object() defer object.Close() - if v.CreateSnapshotBeforeSchemaExtension != nil { + if v.CreateSnapshotBeforeSchemaExtension { ok := object.Key("CreateSnapshotBeforeSchemaExtension") - ok.Boolean(*v.CreateSnapshotBeforeSchemaExtension) + ok.Boolean(v.CreateSnapshotBeforeSchemaExtension) } if v.Description != nil { @@ -4176,9 +4120,9 @@ func awsAwsjson11_serializeOpDocumentUpdateNumberOfDomainControllersInput(v *Upd object := value.Object() defer object.Close() - if v.DesiredNumber != nil { + if v.DesiredNumber != 0 { ok := object.Key("DesiredNumber") - ok.Integer(*v.DesiredNumber) + ok.Integer(v.DesiredNumber) } if v.DirectoryId != nil { diff --git a/service/directoryservice/types/types.go b/service/directoryservice/types/types.go index adfcfbb0ba2..e75c751bc89 100644 --- a/service/directoryservice/types/types.go +++ b/service/directoryservice/types/types.go @@ -59,7 +59,7 @@ type Computer struct { // An array of Attribute objects containing the LDAP attributes that belong to the // computer account. - ComputerAttributes []*Attribute + ComputerAttributes []Attribute // The identifier of the computer. ComputerId *string @@ -75,7 +75,7 @@ type ConditionalForwarder struct { // The IP addresses of the remote DNS server associated with RemoteDomainName. This // is the IP address of the DNS server that your conditional forwarder points to. - DnsIpAddrs []*string + DnsIpAddrs []string // The fully qualified domain name (FQDN) of the remote domains pointed to by the // conditional forwarder. @@ -95,7 +95,7 @@ type DirectoryConnectSettings struct { // on-premises directory. // // This member is required. - CustomerDnsIps []*string + CustomerDnsIps []string // The user name of an account in the on-premises directory that is used to connect // to the directory. This account must have the following permissions: @@ -113,7 +113,7 @@ type DirectoryConnectSettings struct { // A list of subnet identifiers in the VPC in which the AD Connector is created. // // This member is required. - SubnetIds []*string + SubnetIds []string // The identifier of the VPC in which the AD Connector is created. // @@ -125,10 +125,10 @@ type DirectoryConnectSettings struct { type DirectoryConnectSettingsDescription struct { // A list of the Availability Zones that the directory is in. - AvailabilityZones []*string + AvailabilityZones []string // The IP addresses of the AD Connector servers. - ConnectIps []*string + ConnectIps []string // The user name of the service account in the on-premises directory. CustomerUserName *string @@ -137,7 +137,7 @@ type DirectoryConnectSettingsDescription struct { SecurityGroupId *string // A list of subnet identifiers in the VPC that the AD Connector is in. - SubnetIds []*string + SubnetIds []string // The identifier of the VPC that the AD Connector is in. VpcId *string @@ -165,7 +165,7 @@ type DirectoryDescription struct { // The desired number of domain controllers in the directory if the directory is // Microsoft AD. - DesiredNumberOfDomainControllers *int32 + DesiredNumberOfDomainControllers int32 // The directory identifier. DirectoryId *string @@ -175,7 +175,7 @@ type DirectoryDescription struct { // AD directory servers. For an AD Connector directory, these are the IP addresses // of the DNS servers or domain controllers in the on-premises directory to which // the AD Connector is connected. - DnsIpAddrs []*string + DnsIpAddrs []string // The edition associated with this directory. Edition DirectoryEdition @@ -217,7 +217,7 @@ type DirectoryDescription struct { // Indicates if single sign-on is enabled for the directory. For more information, // see EnableSso and DisableSso. - SsoEnabled *bool + SsoEnabled bool // The current stage of the directory. Stage DirectoryStage @@ -247,7 +247,7 @@ type DirectoryLimits struct { CloudOnlyDirectoriesLimit *int32 // Indicates if the cloud directory limit has been reached. - CloudOnlyDirectoriesLimitReached *bool + CloudOnlyDirectoriesLimitReached bool // The current number of AWS Managed Microsoft AD directories in the region. CloudOnlyMicrosoftADCurrentCount *int32 @@ -257,7 +257,7 @@ type DirectoryLimits struct { CloudOnlyMicrosoftADLimit *int32 // Indicates if the AWS Managed Microsoft AD directory limit has been reached. - CloudOnlyMicrosoftADLimitReached *bool + CloudOnlyMicrosoftADLimitReached bool // The current number of connected directories in the Region. ConnectedDirectoriesCurrentCount *int32 @@ -266,7 +266,7 @@ type DirectoryLimits struct { ConnectedDirectoriesLimit *int32 // Indicates if the connected directory limit has been reached. - ConnectedDirectoriesLimitReached *bool + ConnectedDirectoriesLimitReached bool } // Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation. @@ -277,7 +277,7 @@ type DirectoryVpcSettings struct { // server and a DNS server in each of these subnets. // // This member is required. - SubnetIds []*string + SubnetIds []string // The identifier of the VPC in which to create the directory. // @@ -289,13 +289,13 @@ type DirectoryVpcSettings struct { type DirectoryVpcSettingsDescription struct { // The list of Availability Zones that the directory is in. - AvailabilityZones []*string + AvailabilityZones []string // The domain controller security group identifier for the directory. SecurityGroupId *string // The identifiers of the subnets for the directory servers. - SubnetIds []*string + SubnetIds []string // The identifier of the VPC that the directory is in. VpcId *string @@ -430,7 +430,7 @@ type OwnerDirectoryDescription struct { DirectoryId *string // IP address of the directory’s domain controllers. - DnsIpAddrs []*string + DnsIpAddrs []string // A RadiusSettings object that contains information about the RADIUS server. RadiusSettings *RadiusSettings @@ -455,24 +455,24 @@ type RadiusSettings struct { // The port that your RADIUS server is using for communications. Your on-premises // network must allow inbound traffic over this port from the AWS Directory Service // servers. - RadiusPort *int32 + RadiusPort int32 // The maximum number of times that communication with the RADIUS server is // attempted. - RadiusRetries *int32 + RadiusRetries int32 // An array of strings that contains the IP addresses of the RADIUS server // endpoints, or the IP addresses of your RADIUS server load balancer. - RadiusServers []*string + RadiusServers []string // The amount of time, in seconds, to wait for the RADIUS server to respond. - RadiusTimeout *int32 + RadiusTimeout int32 // Required for enabling RADIUS on the directory. SharedSecret *string // Not currently used. - UseSameUsername *bool + UseSameUsername bool } // Information about a schema extension. @@ -586,7 +586,7 @@ type SnapshotLimits struct { ManualSnapshotsLimit *int32 // Indicates if the manual snapshot limit has been reached. - ManualSnapshotsLimitReached *bool + ManualSnapshotsLimitReached bool } // Metadata assigned to a directory consisting of a key-value pair. diff --git a/service/directoryservice/validators.go b/service/directoryservice/validators.go index 2eb9de76859..844471a3f26 100644 --- a/service/directoryservice/validators.go +++ b/service/directoryservice/validators.go @@ -1312,13 +1312,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2153,9 +2153,6 @@ func validateOpStartSchemaExtensionInput(v *StartSchemaExtensionInput) error { if v.Description == nil { invalidParams.Add(smithy.NewErrParamRequired("Description")) } - if v.CreateSnapshotBeforeSchemaExtension == nil { - invalidParams.Add(smithy.NewErrParamRequired("CreateSnapshotBeforeSchemaExtension")) - } if v.LdifContent == nil { invalidParams.Add(smithy.NewErrParamRequired("LdifContent")) } @@ -2217,9 +2214,6 @@ func validateOpUpdateNumberOfDomainControllersInput(v *UpdateNumberOfDomainContr return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateNumberOfDomainControllersInput"} - if v.DesiredNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("DesiredNumber")) - } if v.DirectoryId == nil { invalidParams.Add(smithy.NewErrParamRequired("DirectoryId")) } diff --git a/service/dlm/api_op_CreateLifecyclePolicy.go b/service/dlm/api_op_CreateLifecyclePolicy.go index f991c26bd72..037fd492150 100644 --- a/service/dlm/api_op_CreateLifecyclePolicy.go +++ b/service/dlm/api_op_CreateLifecyclePolicy.go @@ -53,7 +53,7 @@ type CreateLifecyclePolicyInput struct { State types.SettablePolicyStateValues // The tags to apply to the lifecycle policy during creation. - Tags map[string]*string + Tags map[string]string } type CreateLifecyclePolicyOutput struct { diff --git a/service/dlm/api_op_GetLifecyclePolicies.go b/service/dlm/api_op_GetLifecyclePolicies.go index dcacfffb7c7..7220baec67a 100644 --- a/service/dlm/api_op_GetLifecyclePolicies.go +++ b/service/dlm/api_op_GetLifecyclePolicies.go @@ -31,7 +31,7 @@ func (c *Client) GetLifecyclePolicies(ctx context.Context, params *GetLifecycleP type GetLifecyclePoliciesInput struct { // The identifiers of the data lifecycle policies. - PolicyIds []*string + PolicyIds []string // The resource type. ResourceTypes []types.ResourceTypeValues @@ -42,16 +42,16 @@ type GetLifecyclePoliciesInput struct { // The tags to add to objects created by the policy. Tags are strings in the format // key=value. These user-defined tags are added in addition to the AWS-added // lifecycle tags. - TagsToAdd []*string + TagsToAdd []string // The target tag for a policy. Tags are strings in the format key=value. - TargetTags []*string + TargetTags []string } type GetLifecyclePoliciesOutput struct { // Summary information about the lifecycle policies. - Policies []*types.LifecyclePolicySummary + Policies []types.LifecyclePolicySummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dlm/api_op_ListTagsForResource.go b/service/dlm/api_op_ListTagsForResource.go index 57d4b4e3bb0..f03e6a4aeec 100644 --- a/service/dlm/api_op_ListTagsForResource.go +++ b/service/dlm/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // Information about the tags. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dlm/api_op_TagResource.go b/service/dlm/api_op_TagResource.go index 8aece42adff..8697269b9e9 100644 --- a/service/dlm/api_op_TagResource.go +++ b/service/dlm/api_op_TagResource.go @@ -36,7 +36,7 @@ type TagResourceInput struct { // One or more tags. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/dlm/api_op_UntagResource.go b/service/dlm/api_op_UntagResource.go index 6efe00fce28..158fabcb164 100644 --- a/service/dlm/api_op_UntagResource.go +++ b/service/dlm/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The tag keys. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/dlm/deserializers.go b/service/dlm/deserializers.go index 8e5aff5a444..d2b480a6ff1 100644 --- a/service/dlm/deserializers.go +++ b/service/dlm/deserializers.go @@ -164,7 +164,7 @@ func awsRestjson1_deserializeOpDocumentCreateLifecyclePolicyOutput(v **CreateLif if !ok { return fmt.Errorf("expected PolicyId to be of type string, got %T instead", value) } - sv.PolicyId = &jtv + sv.PolicyId = ptr.String(jtv) } default: @@ -1141,7 +1141,7 @@ func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp return output } -func awsRestjson1_deserializeDocumentAvailabilityZoneList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAvailabilityZoneList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1154,21 +1154,21 @@ func awsRestjson1_deserializeDocumentAvailabilityZoneList(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1205,7 +1205,7 @@ func awsRestjson1_deserializeDocumentCreateRule(v **types.CreateRule, value inte if !ok { return fmt.Errorf("expected CronExpression to be of type string, got %T instead", value) } - sv.CronExpression = &jtv + sv.CronExpression = ptr.String(jtv) } case "Interval": @@ -1218,7 +1218,7 @@ func awsRestjson1_deserializeDocumentCreateRule(v **types.CreateRule, value inte if err != nil { return err } - sv.Interval = ptr.Int32(int32(i64)) + sv.Interval = int32(i64) } case "IntervalUnit": @@ -1276,7 +1276,7 @@ func awsRestjson1_deserializeDocumentCrossRegionCopyRetainRule(v **types.CrossRe if err != nil { return err } - sv.Interval = ptr.Int32(int32(i64)) + sv.Interval = int32(i64) } case "IntervalUnit": @@ -1325,7 +1325,7 @@ func awsRestjson1_deserializeDocumentCrossRegionCopyRule(v **types.CrossRegionCo if !ok { return fmt.Errorf("expected CmkArn to be of type string, got %T instead", value) } - sv.CmkArn = &jtv + sv.CmkArn = ptr.String(jtv) } case "CopyTags": @@ -1334,7 +1334,7 @@ func awsRestjson1_deserializeDocumentCrossRegionCopyRule(v **types.CrossRegionCo if !ok { return fmt.Errorf("expected CopyTagsNullable to be of type *bool, got %T instead", value) } - sv.CopyTags = &jtv + sv.CopyTags = ptr.Bool(jtv) } case "Encrypted": @@ -1343,7 +1343,7 @@ func awsRestjson1_deserializeDocumentCrossRegionCopyRule(v **types.CrossRegionCo if !ok { return fmt.Errorf("expected Encrypted to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = ptr.Bool(jtv) } case "RetainRule": @@ -1357,7 +1357,7 @@ func awsRestjson1_deserializeDocumentCrossRegionCopyRule(v **types.CrossRegionCo if !ok { return fmt.Errorf("expected TargetRegion to be of type string, got %T instead", value) } - sv.TargetRegion = &jtv + sv.TargetRegion = ptr.String(jtv) } default: @@ -1369,7 +1369,7 @@ func awsRestjson1_deserializeDocumentCrossRegionCopyRule(v **types.CrossRegionCo return nil } -func awsRestjson1_deserializeDocumentCrossRegionCopyRules(v *[]*types.CrossRegionCopyRule, value interface{}) error { +func awsRestjson1_deserializeDocumentCrossRegionCopyRules(v *[]types.CrossRegionCopyRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1382,18 +1382,20 @@ func awsRestjson1_deserializeDocumentCrossRegionCopyRules(v *[]*types.CrossRegio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CrossRegionCopyRule + var cv []types.CrossRegionCopyRule if *v == nil { - cv = []*types.CrossRegionCopyRule{} + cv = []types.CrossRegionCopyRule{} } else { cv = *v } for _, value := range shape { - var col *types.CrossRegionCopyRule - if err := awsRestjson1_deserializeDocumentCrossRegionCopyRule(&col, value); err != nil { + var col types.CrossRegionCopyRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentCrossRegionCopyRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1438,7 +1440,7 @@ func awsRestjson1_deserializeDocumentFastRestoreRule(v **types.FastRestoreRule, if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "Interval": @@ -1451,7 +1453,7 @@ func awsRestjson1_deserializeDocumentFastRestoreRule(v **types.FastRestoreRule, if err != nil { return err } - sv.Interval = ptr.Int32(int32(i64)) + sv.Interval = int32(i64) } case "IntervalUnit": @@ -1500,7 +1502,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -1509,7 +1511,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1549,7 +1551,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -1558,7 +1560,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "MutuallyExclusiveParameters": @@ -1634,7 +1636,7 @@ func awsRestjson1_deserializeDocumentLifecyclePolicy(v **types.LifecyclePolicy, if !ok { return fmt.Errorf("expected PolicyDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ExecutionRoleArn": @@ -1643,7 +1645,7 @@ func awsRestjson1_deserializeDocumentLifecyclePolicy(v **types.LifecyclePolicy, if !ok { return fmt.Errorf("expected ExecutionRoleArn to be of type string, got %T instead", value) } - sv.ExecutionRoleArn = &jtv + sv.ExecutionRoleArn = ptr.String(jtv) } case "PolicyArn": @@ -1652,7 +1654,7 @@ func awsRestjson1_deserializeDocumentLifecyclePolicy(v **types.LifecyclePolicy, if !ok { return fmt.Errorf("expected PolicyArn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } case "PolicyDetails": @@ -1666,7 +1668,7 @@ func awsRestjson1_deserializeDocumentLifecyclePolicy(v **types.LifecyclePolicy, if !ok { return fmt.Errorf("expected PolicyId to be of type string, got %T instead", value) } - sv.PolicyId = &jtv + sv.PolicyId = ptr.String(jtv) } case "State": @@ -1684,7 +1686,7 @@ func awsRestjson1_deserializeDocumentLifecyclePolicy(v **types.LifecyclePolicy, if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "Tags": @@ -1729,7 +1731,7 @@ func awsRestjson1_deserializeDocumentLifecyclePolicySummary(v **types.LifecycleP if !ok { return fmt.Errorf("expected PolicyDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "PolicyId": @@ -1738,7 +1740,7 @@ func awsRestjson1_deserializeDocumentLifecyclePolicySummary(v **types.LifecycleP if !ok { return fmt.Errorf("expected PolicyId to be of type string, got %T instead", value) } - sv.PolicyId = &jtv + sv.PolicyId = ptr.String(jtv) } case "State": @@ -1764,7 +1766,7 @@ func awsRestjson1_deserializeDocumentLifecyclePolicySummary(v **types.LifecycleP return nil } -func awsRestjson1_deserializeDocumentLifecyclePolicySummaryList(v *[]*types.LifecyclePolicySummary, value interface{}) error { +func awsRestjson1_deserializeDocumentLifecyclePolicySummaryList(v *[]types.LifecyclePolicySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1777,18 +1779,20 @@ func awsRestjson1_deserializeDocumentLifecyclePolicySummaryList(v *[]*types.Life return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LifecyclePolicySummary + var cv []types.LifecyclePolicySummary if *v == nil { - cv = []*types.LifecyclePolicySummary{} + cv = []types.LifecyclePolicySummary{} } else { cv = *v } for _, value := range shape { - var col *types.LifecyclePolicySummary - if err := awsRestjson1_deserializeDocumentLifecyclePolicySummary(&col, value); err != nil { + var col types.LifecyclePolicySummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentLifecyclePolicySummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1824,7 +1828,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -1833,7 +1837,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceType": @@ -1842,7 +1846,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -1854,7 +1858,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsRestjson1_deserializeDocumentParameterList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentParameterList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1867,21 +1871,21 @@ func awsRestjson1_deserializeDocumentParameterList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Parameter to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1918,7 +1922,7 @@ func awsRestjson1_deserializeDocumentParameters(v **types.Parameters, value inte if !ok { return fmt.Errorf("expected ExcludeBootVolume to be of type *bool, got %T instead", value) } - sv.ExcludeBootVolume = &jtv + sv.ExcludeBootVolume = ptr.Bool(jtv) } default: @@ -1990,7 +1994,7 @@ func awsRestjson1_deserializeDocumentPolicyDetails(v **types.PolicyDetails, valu return nil } -func awsRestjson1_deserializeDocumentPolicyIdList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentPolicyIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2003,21 +2007,21 @@ func awsRestjson1_deserializeDocumentPolicyIdList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PolicyId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2054,7 +2058,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -2063,7 +2067,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceIds": @@ -2077,7 +2081,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -2157,7 +2161,7 @@ func awsRestjson1_deserializeDocumentRetainRule(v **types.RetainRule, value inte if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "Interval": @@ -2170,7 +2174,7 @@ func awsRestjson1_deserializeDocumentRetainRule(v **types.RetainRule, value inte if err != nil { return err } - sv.Interval = ptr.Int32(int32(i64)) + sv.Interval = int32(i64) } case "IntervalUnit": @@ -2219,7 +2223,7 @@ func awsRestjson1_deserializeDocumentSchedule(v **types.Schedule, value interfac if !ok { return fmt.Errorf("expected CopyTags to be of type *bool, got %T instead", value) } - sv.CopyTags = &jtv + sv.CopyTags = jtv } case "CreateRule": @@ -2243,7 +2247,7 @@ func awsRestjson1_deserializeDocumentSchedule(v **types.Schedule, value interfac if !ok { return fmt.Errorf("expected ScheduleName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RetainRule": @@ -2270,7 +2274,7 @@ func awsRestjson1_deserializeDocumentSchedule(v **types.Schedule, value interfac return nil } -func awsRestjson1_deserializeDocumentScheduleList(v *[]*types.Schedule, value interface{}) error { +func awsRestjson1_deserializeDocumentScheduleList(v *[]types.Schedule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2283,18 +2287,20 @@ func awsRestjson1_deserializeDocumentScheduleList(v *[]*types.Schedule, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Schedule + var cv []types.Schedule if *v == nil { - cv = []*types.Schedule{} + cv = []types.Schedule{} } else { cv = *v } for _, value := range shape { - var col *types.Schedule - if err := awsRestjson1_deserializeDocumentSchedule(&col, value); err != nil { + var col types.Schedule + destAddr := &col + if err := awsRestjson1_deserializeDocumentSchedule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2330,7 +2336,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -2339,7 +2345,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -2351,7 +2357,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2364,21 +2370,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -2387,7 +2393,7 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return nil } -func awsRestjson1_deserializeDocumentTagsToAddList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagsToAddList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2400,18 +2406,20 @@ func awsRestjson1_deserializeDocumentTagsToAddList(v *[]*types.Tag, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2419,7 +2427,7 @@ func awsRestjson1_deserializeDocumentTagsToAddList(v *[]*types.Tag, value interf return nil } -func awsRestjson1_deserializeDocumentTargetTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTargetTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2432,18 +2440,20 @@ func awsRestjson1_deserializeDocumentTargetTagList(v *[]*types.Tag, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2451,7 +2461,7 @@ func awsRestjson1_deserializeDocumentTargetTagList(v *[]*types.Tag, value interf return nil } -func awsRestjson1_deserializeDocumentTimesList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTimesList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2464,21 +2474,21 @@ func awsRestjson1_deserializeDocumentTimesList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Time to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2487,7 +2497,7 @@ func awsRestjson1_deserializeDocumentTimesList(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentVariableTagsList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentVariableTagsList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2500,18 +2510,20 @@ func awsRestjson1_deserializeDocumentVariableTagsList(v *[]*types.Tag, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/dlm/go.mod b/service/dlm/go.mod index 73950896ff8..8fa9e50a94d 100644 --- a/service/dlm/go.mod +++ b/service/dlm/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/dlm go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/dlm/serializers.go b/service/dlm/serializers.go index d32d43431d2..7982edc52d6 100644 --- a/service/dlm/serializers.go +++ b/service/dlm/serializers.go @@ -162,13 +162,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteLifecyclePolicyInput(v *DeleteLif return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyId == nil { + if v.PolicyId == nil || len(*v.PolicyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyId must not be empty")} } if v.PolicyId != nil { - if len(*v.PolicyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyId must not be empty")} - } if err := encoder.SetURI("PolicyId").String(*v.PolicyId); err != nil { return err } @@ -230,10 +227,7 @@ func awsRestjson1_serializeOpHttpBindingsGetLifecyclePoliciesInput(v *GetLifecyc if v.PolicyIds != nil { for i := range v.PolicyIds { - if v.PolicyIds[i] == nil { - continue - } - encoder.AddQuery("policyIds").String(*v.PolicyIds[i]) + encoder.AddQuery("policyIds").String(v.PolicyIds[i]) } } @@ -249,19 +243,13 @@ func awsRestjson1_serializeOpHttpBindingsGetLifecyclePoliciesInput(v *GetLifecyc if v.TagsToAdd != nil { for i := range v.TagsToAdd { - if v.TagsToAdd[i] == nil { - continue - } - encoder.AddQuery("tagsToAdd").String(*v.TagsToAdd[i]) + encoder.AddQuery("tagsToAdd").String(v.TagsToAdd[i]) } } if v.TargetTags != nil { for i := range v.TargetTags { - if v.TargetTags[i] == nil { - continue - } - encoder.AddQuery("targetTags").String(*v.TargetTags[i]) + encoder.AddQuery("targetTags").String(v.TargetTags[i]) } } @@ -319,13 +307,10 @@ func awsRestjson1_serializeOpHttpBindingsGetLifecyclePolicyInput(v *GetLifecycle return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyId == nil { + if v.PolicyId == nil || len(*v.PolicyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyId must not be empty")} } if v.PolicyId != nil { - if len(*v.PolicyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyId must not be empty")} - } if err := encoder.SetURI("PolicyId").String(*v.PolicyId); err != nil { return err } @@ -385,13 +370,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -462,13 +444,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -542,13 +521,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -556,10 +532,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -628,13 +601,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateLifecyclePolicyInput(v *UpdateLif return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyId == nil { + if v.PolicyId == nil || len(*v.PolicyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyId must not be empty")} } if v.PolicyId != nil { - if len(*v.PolicyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyId must not be empty")} - } if err := encoder.SetURI("PolicyId").String(*v.PolicyId); err != nil { return err } @@ -672,17 +642,13 @@ func awsRestjson1_serializeOpDocumentUpdateLifecyclePolicyInput(v *UpdateLifecyc return nil } -func awsRestjson1_serializeDocumentAvailabilityZoneList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAvailabilityZoneList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -696,9 +662,9 @@ func awsRestjson1_serializeDocumentCreateRule(v *types.CreateRule, value smithyj ok.String(*v.CronExpression) } - if v.Interval != nil { + if v.Interval != 0 { ok := object.Key("Interval") - ok.Integer(*v.Interval) + ok.Integer(v.Interval) } if len(v.IntervalUnit) > 0 { @@ -720,9 +686,9 @@ func awsRestjson1_serializeDocumentCrossRegionCopyRetainRule(v *types.CrossRegio object := value.Object() defer object.Close() - if v.Interval != nil { + if v.Interval != 0 { ok := object.Key("Interval") - ok.Integer(*v.Interval) + ok.Integer(v.Interval) } if len(v.IntervalUnit) > 0 { @@ -767,17 +733,13 @@ func awsRestjson1_serializeDocumentCrossRegionCopyRule(v *types.CrossRegionCopyR return nil } -func awsRestjson1_serializeDocumentCrossRegionCopyRules(v []*types.CrossRegionCopyRule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCrossRegionCopyRules(v []types.CrossRegionCopyRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCrossRegionCopyRule(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCrossRegionCopyRule(&v[i], av); err != nil { return err } } @@ -795,14 +757,14 @@ func awsRestjson1_serializeDocumentFastRestoreRule(v *types.FastRestoreRule, val } } - if v.Count != nil { + if v.Count != 0 { ok := object.Key("Count") - ok.Integer(*v.Count) + ok.Integer(v.Count) } - if v.Interval != nil { + if v.Interval != 0 { ok := object.Key("Interval") - ok.Integer(*v.Interval) + ok.Integer(v.Interval) } if len(v.IntervalUnit) > 0 { @@ -880,14 +842,14 @@ func awsRestjson1_serializeDocumentRetainRule(v *types.RetainRule, value smithyj object := value.Object() defer object.Close() - if v.Count != nil { + if v.Count != 0 { ok := object.Key("Count") - ok.Integer(*v.Count) + ok.Integer(v.Count) } - if v.Interval != nil { + if v.Interval != 0 { ok := object.Key("Interval") - ok.Integer(*v.Interval) + ok.Integer(v.Interval) } if len(v.IntervalUnit) > 0 { @@ -902,9 +864,9 @@ func awsRestjson1_serializeDocumentSchedule(v *types.Schedule, value smithyjson. object := value.Object() defer object.Close() - if v.CopyTags != nil { + if v.CopyTags { ok := object.Key("CopyTags") - ok.Boolean(*v.CopyTags) + ok.Boolean(v.CopyTags) } if v.CreateRule != nil { @@ -957,17 +919,13 @@ func awsRestjson1_serializeDocumentSchedule(v *types.Schedule, value smithyjson. return nil } -func awsRestjson1_serializeDocumentScheduleList(v []*types.Schedule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentScheduleList(v []types.Schedule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSchedule(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSchedule(&v[i], av); err != nil { return err } } @@ -991,81 +949,61 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentTagsToAddList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagsToAddList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTargetTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTargetTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTimesList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTimesList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentVariableTagsList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentVariableTagsList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/dlm/types/errors.go b/service/dlm/types/errors.go index bda7a9092d0..decd82e6500 100644 --- a/service/dlm/types/errors.go +++ b/service/dlm/types/errors.go @@ -31,8 +31,8 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type InvalidRequestException struct { Message *string - MutuallyExclusiveParameters []*string - RequiredParameters []*string + MutuallyExclusiveParameters []string + RequiredParameters []string Code *string } @@ -72,7 +72,7 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. type ResourceNotFoundException struct { Message *string - ResourceIds []*string + ResourceIds []string ResourceType *string Code *string } diff --git a/service/dlm/types/types.go b/service/dlm/types/types.go index ce1582838c6..71f65940fa4 100644 --- a/service/dlm/types/types.go +++ b/service/dlm/types/types.go @@ -19,7 +19,7 @@ type CreateRule struct { // The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8, 12, // and 24. - Interval *int32 + Interval int32 // The interval unit. IntervalUnit IntervalUnitValues @@ -27,7 +27,7 @@ type CreateRule struct { // The time, in UTC, to start the operation. The supported format is hh:mm. The // operation occurs within a one-hour window following the specified time. If you // do not specify a time, Amazon DLM selects a time within the next 24 hours. - Times []*string + Times []string } // Specifies the retention rule for cross-Region snapshot copies. @@ -35,7 +35,7 @@ type CrossRegionCopyRetainRule struct { // The amount of time to retain each snapshot. The maximum is 100 years. This is // equivalent to 1200 months, 5200 weeks, or 36500 days. - Interval *int32 + Interval int32 // The unit of time for time-based retention. IntervalUnit RetentionIntervalUnitValues @@ -76,14 +76,14 @@ type FastRestoreRule struct { // The Availability Zones in which to enable fast snapshot restore. // // This member is required. - AvailabilityZones []*string + AvailabilityZones []string // The number of snapshots to be enabled with fast snapshot restore. - Count *int32 + Count int32 // The amount of time to enable fast snapshot restore. The maximum is 100 years. // This is equivalent to 1200 months, 5200 weeks, or 36500 days. - Interval *int32 + Interval int32 // The unit of time for enabling fast snapshot restore. IntervalUnit RetentionIntervalUnitValues @@ -121,7 +121,7 @@ type LifecyclePolicy struct { StatusMessage *string // The tags. - Tags map[string]*string + Tags map[string]string } // Summary information about a lifecycle policy. @@ -137,7 +137,7 @@ type LifecyclePolicySummary struct { State GettablePolicyStateValues // The tags. - Tags map[string]*string + Tags map[string]string } // Specifies optional parameters to add to a policy. The set of valid parameters @@ -167,10 +167,10 @@ type PolicyDetails struct { // The schedules of policy-defined actions. A policy can have up to four schedules // - one mandatory schedule and up to three optional schedules. - Schedules []*Schedule + Schedules []Schedule // The single tag that identifies targeted resources for this policy. - TargetTags []*Tag + TargetTags []Tag } // Specifies the retention rule for a lifecycle policy. You can retain snapshots @@ -178,11 +178,11 @@ type PolicyDetails struct { type RetainRule struct { // The number of snapshots to retain for each volume, up to a maximum of 1000. - Count *int32 + Count int32 // The amount of time to retain each snapshot. The maximum is 100 years. This is // equivalent to 1200 months, 5200 weeks, or 36500 days. - Interval *int32 + Interval int32 // The unit of time for time-based retention. IntervalUnit RetentionIntervalUnitValues @@ -193,13 +193,13 @@ type Schedule struct { // Copy all user-defined tags on a source volume to snapshots of the volume created // by this policy. - CopyTags *bool + CopyTags bool // The creation rule. CreateRule *CreateRule // The rule for cross-Region snapshot copies. - CrossRegionCopyRules []*CrossRegionCopyRule + CrossRegionCopyRules []CrossRegionCopyRule // The rule for enabling fast snapshot restore. FastRestoreRule *FastRestoreRule @@ -212,13 +212,13 @@ type Schedule struct { // The tags to apply to policy-created resources. These user-defined tags are in // addition to the AWS-added lifecycle tags. - TagsToAdd []*Tag + TagsToAdd []Tag // A collection of key/value pairs with values determined dynamically when the // policy is executed. Keys may be any valid Amazon EC2 tag key. Values must be in // one of the two following formats: $(instance-id) or $(timestamp). Variable tags // are only valid for EBS Snapshot Management – Instance policies. - VariableTags []*Tag + VariableTags []Tag } // Specifies a tag for a resource. diff --git a/service/dlm/validators.go b/service/dlm/validators.go index 20aaad04350..7bd9ad00539 100644 --- a/service/dlm/validators.go +++ b/service/dlm/validators.go @@ -196,13 +196,13 @@ func validateCrossRegionCopyRule(v *types.CrossRegionCopyRule) error { } } -func validateCrossRegionCopyRules(v []*types.CrossRegionCopyRule) error { +func validateCrossRegionCopyRules(v []types.CrossRegionCopyRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CrossRegionCopyRules"} for i := range v { - if err := validateCrossRegionCopyRule(v[i]); err != nil { + if err := validateCrossRegionCopyRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -282,13 +282,13 @@ func validateSchedule(v *types.Schedule) error { } } -func validateScheduleList(v []*types.Schedule) error { +func validateScheduleList(v []types.Schedule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ScheduleList"} for i := range v { - if err := validateSchedule(v[i]); err != nil { + if err := validateSchedule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -317,13 +317,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagsToAddList(v []*types.Tag) error { +func validateTagsToAddList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagsToAddList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -334,13 +334,13 @@ func validateTagsToAddList(v []*types.Tag) error { } } -func validateTargetTagList(v []*types.Tag) error { +func validateTargetTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TargetTagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -351,13 +351,13 @@ func validateTargetTagList(v []*types.Tag) error { } } -func validateVariableTagsList(v []*types.Tag) error { +func validateVariableTagsList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "VariableTagsList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/docdb/api_op_AddTagsToResource.go b/service/docdb/api_op_AddTagsToResource.go index a8c7bf2d6b9..8c7e8668b76 100644 --- a/service/docdb/api_op_AddTagsToResource.go +++ b/service/docdb/api_op_AddTagsToResource.go @@ -42,7 +42,7 @@ type AddTagsToResourceInput struct { // The tags to be assigned to the Amazon DocumentDB resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type AddTagsToResourceOutput struct { diff --git a/service/docdb/api_op_CopyDBClusterParameterGroup.go b/service/docdb/api_op_CopyDBClusterParameterGroup.go index 8351fb273b7..e982981b1bd 100644 --- a/service/docdb/api_op_CopyDBClusterParameterGroup.go +++ b/service/docdb/api_op_CopyDBClusterParameterGroup.go @@ -71,7 +71,7 @@ type CopyDBClusterParameterGroupInput struct { TargetDBClusterParameterGroupIdentifier *string // The tags that are to be assigned to the parameter group. - Tags []*types.Tag + Tags []types.Tag } type CopyDBClusterParameterGroupOutput struct { diff --git a/service/docdb/api_op_CopyDBClusterSnapshot.go b/service/docdb/api_op_CopyDBClusterSnapshot.go index b310c94272c..c7bc1b28b29 100644 --- a/service/docdb/api_op_CopyDBClusterSnapshot.go +++ b/service/docdb/api_op_CopyDBClusterSnapshot.go @@ -120,7 +120,7 @@ type CopyDBClusterSnapshotInput struct { PreSignedUrl *string // The tags to be assigned to the cluster snapshot. - Tags []*types.Tag + Tags []types.Tag } type CopyDBClusterSnapshotOutput struct { diff --git a/service/docdb/api_op_CreateDBCluster.go b/service/docdb/api_op_CreateDBCluster.go index f8fe64822f4..5c073d652bf 100644 --- a/service/docdb/api_op_CreateDBCluster.go +++ b/service/docdb/api_op_CreateDBCluster.go @@ -73,7 +73,7 @@ type CreateDBClusterInput struct { // A list of Amazon EC2 Availability Zones that instances in the cluster can be // created in. - AvailabilityZones []*string + AvailabilityZones []string // The number of days for which automated backups are retained. You must specify a // minimum value of 1. Default: 1 Constraints: @@ -99,7 +99,7 @@ type CreateDBClusterInput struct { // (https://docs.aws.amazon.com/documentdb/latest/developerguide/event-auditing.html) // and Profiling Amazon DocumentDB Operations // (https://docs.aws.amazon.com/documentdb/latest/developerguide/profiling.html). - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // The version number of the database engine to use. The --engine-version will // default to the latest major engine version. For production workloads, we @@ -155,10 +155,10 @@ type CreateDBClusterInput struct { StorageEncrypted *bool // The tags to be assigned to the cluster. - Tags []*types.Tag + Tags []types.Tag // A list of EC2 VPC security groups to associate with this cluster. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type CreateDBClusterOutput struct { diff --git a/service/docdb/api_op_CreateDBClusterParameterGroup.go b/service/docdb/api_op_CreateDBClusterParameterGroup.go index 524d615719c..1138df836cc 100644 --- a/service/docdb/api_op_CreateDBClusterParameterGroup.go +++ b/service/docdb/api_op_CreateDBClusterParameterGroup.go @@ -66,7 +66,7 @@ type CreateDBClusterParameterGroupInput struct { Description *string // The tags to be assigned to the cluster parameter group. - Tags []*types.Tag + Tags []types.Tag } type CreateDBClusterParameterGroupOutput struct { diff --git a/service/docdb/api_op_CreateDBClusterSnapshot.go b/service/docdb/api_op_CreateDBClusterSnapshot.go index d303b784715..8fe6d72a854 100644 --- a/service/docdb/api_op_CreateDBClusterSnapshot.go +++ b/service/docdb/api_op_CreateDBClusterSnapshot.go @@ -58,7 +58,7 @@ type CreateDBClusterSnapshotInput struct { DBClusterSnapshotIdentifier *string // The tags to be assigned to the cluster snapshot. - Tags []*types.Tag + Tags []types.Tag } type CreateDBClusterSnapshotOutput struct { diff --git a/service/docdb/api_op_CreateDBInstance.go b/service/docdb/api_op_CreateDBInstance.go index fc38b158577..48189bb2135 100644 --- a/service/docdb/api_op_CreateDBInstance.go +++ b/service/docdb/api_op_CreateDBInstance.go @@ -84,7 +84,7 @@ type CreateDBInstanceInput struct { // The tags to be assigned to the instance. You can assign up to 10 tags to an // instance. - Tags []*types.Tag + Tags []types.Tag } type CreateDBInstanceOutput struct { diff --git a/service/docdb/api_op_CreateDBSubnetGroup.go b/service/docdb/api_op_CreateDBSubnetGroup.go index 8a9c18cdc08..5d9ec5a2b9f 100644 --- a/service/docdb/api_op_CreateDBSubnetGroup.go +++ b/service/docdb/api_op_CreateDBSubnetGroup.go @@ -46,10 +46,10 @@ type CreateDBSubnetGroupInput struct { // The Amazon EC2 subnet IDs for the subnet group. // // This member is required. - SubnetIds []*string + SubnetIds []string // The tags to be assigned to the subnet group. - Tags []*types.Tag + Tags []types.Tag } type CreateDBSubnetGroupOutput struct { diff --git a/service/docdb/api_op_DeleteDBCluster.go b/service/docdb/api_op_DeleteDBCluster.go index f67aec96c17..4153fe86eef 100644 --- a/service/docdb/api_op_DeleteDBCluster.go +++ b/service/docdb/api_op_DeleteDBCluster.go @@ -58,7 +58,7 @@ type DeleteDBClusterInput struct { // specified, a cluster snapshot is created before the DB cluster is deleted. If // SkipFinalSnapshot is false, you must specify a FinalDBSnapshotIdentifier // parameter. Default: false - SkipFinalSnapshot *bool + SkipFinalSnapshot bool } type DeleteDBClusterOutput struct { diff --git a/service/docdb/api_op_DescribeCertificates.go b/service/docdb/api_op_DescribeCertificates.go index 94a04221490..cb094c8e3b7 100644 --- a/service/docdb/api_op_DescribeCertificates.go +++ b/service/docdb/api_op_DescribeCertificates.go @@ -39,7 +39,7 @@ type DescribeCertificatesInput struct { CertificateIdentifier *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeCertificates // request. If this parameter is specified, the response includes only records @@ -60,7 +60,7 @@ type DescribeCertificatesInput struct { type DescribeCertificatesOutput struct { // A list of certificates for this AWS account. - Certificates []*types.Certificate + Certificates []types.Certificate // An optional pagination token provided if the number of records retrieved is // greater than MaxRecords. If this parameter is specified, the marker specifies diff --git a/service/docdb/api_op_DescribeDBClusterParameterGroups.go b/service/docdb/api_op_DescribeDBClusterParameterGroups.go index 05ff66e8245..32e835c33d8 100644 --- a/service/docdb/api_op_DescribeDBClusterParameterGroups.go +++ b/service/docdb/api_op_DescribeDBClusterParameterGroups.go @@ -40,7 +40,7 @@ type DescribeDBClusterParameterGroupsInput struct { DBClusterParameterGroupName *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -58,7 +58,7 @@ type DescribeDBClusterParameterGroupsInput struct { type DescribeDBClusterParameterGroupsOutput struct { // A list of cluster parameter groups. - DBClusterParameterGroups []*types.DBClusterParameterGroup + DBClusterParameterGroups []types.DBClusterParameterGroup // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/docdb/api_op_DescribeDBClusterParameters.go b/service/docdb/api_op_DescribeDBClusterParameters.go index 378e41c3dad..79f896b2ee7 100644 --- a/service/docdb/api_op_DescribeDBClusterParameters.go +++ b/service/docdb/api_op_DescribeDBClusterParameters.go @@ -40,7 +40,7 @@ type DescribeDBClusterParametersInput struct { DBClusterParameterGroupName *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -67,7 +67,7 @@ type DescribeDBClusterParametersOutput struct { Marker *string // Provides a list of parameters for the cluster parameter group. - Parameters []*types.Parameter + Parameters []types.Parameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/docdb/api_op_DescribeDBClusterSnapshots.go b/service/docdb/api_op_DescribeDBClusterSnapshots.go index d1e312166dd..1a68261c037 100644 --- a/service/docdb/api_op_DescribeDBClusterSnapshots.go +++ b/service/docdb/api_op_DescribeDBClusterSnapshots.go @@ -51,17 +51,17 @@ type DescribeDBClusterSnapshotsInput struct { DBClusterSnapshotIdentifier *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // Set to true to include manual cluster snapshots that are public and can be // copied or restored by any AWS account, and otherwise false. The default is // false. - IncludePublic *bool + IncludePublic bool // Set to true to include shared manual cluster snapshots from other AWS accounts // that this AWS account has been given permission to copy or restore, and // otherwise false. The default is false. - IncludeShared *bool + IncludeShared bool // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -105,7 +105,7 @@ type DescribeDBClusterSnapshotsInput struct { type DescribeDBClusterSnapshotsOutput struct { // Provides a list of cluster snapshots. - DBClusterSnapshots []*types.DBClusterSnapshot + DBClusterSnapshots []types.DBClusterSnapshot // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/docdb/api_op_DescribeDBClusters.go b/service/docdb/api_op_DescribeDBClusters.go index 8a96aa38a17..a0ddb589061 100644 --- a/service/docdb/api_op_DescribeDBClusters.go +++ b/service/docdb/api_op_DescribeDBClusters.go @@ -49,7 +49,7 @@ type DescribeDBClustersInput struct { // db-cluster-id - Accepts cluster identifiers and cluster Amazon Resource Names // (ARNs). The results list only includes information about the clusters identified // by these ARNs. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -67,7 +67,7 @@ type DescribeDBClustersInput struct { type DescribeDBClustersOutput struct { // A list of clusters. - DBClusters []*types.DBCluster + DBClusters []types.DBCluster // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/docdb/api_op_DescribeDBEngineVersions.go b/service/docdb/api_op_DescribeDBEngineVersions.go index 64afea738f4..fa3de146ca0 100644 --- a/service/docdb/api_op_DescribeDBEngineVersions.go +++ b/service/docdb/api_op_DescribeDBEngineVersions.go @@ -38,7 +38,7 @@ type DescribeDBEngineVersionsInput struct { // Indicates that only the default version of the specified engine or engine and // major version combination is returned. - DefaultOnly *bool + DefaultOnly bool // The database engine to return. Engine *string @@ -47,7 +47,7 @@ type DescribeDBEngineVersionsInput struct { EngineVersion *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // If this parameter is specified and the requested engine supports the // CharacterSetName parameter for CreateDBInstance, the response includes a list of @@ -75,7 +75,7 @@ type DescribeDBEngineVersionsInput struct { type DescribeDBEngineVersionsOutput struct { // Detailed information about one or more engine versions. - DBEngineVersions []*types.DBEngineVersion + DBEngineVersions []types.DBEngineVersion // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/docdb/api_op_DescribeDBInstances.go b/service/docdb/api_op_DescribeDBInstances.go index 7a19972f6c5..00f1d5b56ff 100644 --- a/service/docdb/api_op_DescribeDBInstances.go +++ b/service/docdb/api_op_DescribeDBInstances.go @@ -50,7 +50,7 @@ type DescribeDBInstancesInput struct { // db-instance-id - Accepts instance identifiers and instance ARNs. The results // list includes only the information about the instances that are identified by // these ARNs. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -68,7 +68,7 @@ type DescribeDBInstancesInput struct { type DescribeDBInstancesOutput struct { // Detailed information about one or more instances. - DBInstances []*types.DBInstance + DBInstances []types.DBInstance // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/docdb/api_op_DescribeDBSubnetGroups.go b/service/docdb/api_op_DescribeDBSubnetGroups.go index 97a18cfcc75..3bcafe7020f 100644 --- a/service/docdb/api_op_DescribeDBSubnetGroups.go +++ b/service/docdb/api_op_DescribeDBSubnetGroups.go @@ -36,7 +36,7 @@ type DescribeDBSubnetGroupsInput struct { DBSubnetGroupName *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -54,7 +54,7 @@ type DescribeDBSubnetGroupsInput struct { type DescribeDBSubnetGroupsOutput struct { // Detailed information about one or more subnet groups. - DBSubnetGroups []*types.DBSubnetGroup + DBSubnetGroups []types.DBSubnetGroup // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/docdb/api_op_DescribeEngineDefaultClusterParameters.go b/service/docdb/api_op_DescribeEngineDefaultClusterParameters.go index 9e07cb882d5..d2c295fab82 100644 --- a/service/docdb/api_op_DescribeEngineDefaultClusterParameters.go +++ b/service/docdb/api_op_DescribeEngineDefaultClusterParameters.go @@ -38,7 +38,7 @@ type DescribeEngineDefaultClusterParametersInput struct { DBParameterGroupFamily *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/docdb/api_op_DescribeEventCategories.go b/service/docdb/api_op_DescribeEventCategories.go index c26c6a625e7..c9d60a1fe96 100644 --- a/service/docdb/api_op_DescribeEventCategories.go +++ b/service/docdb/api_op_DescribeEventCategories.go @@ -32,7 +32,7 @@ func (c *Client) DescribeEventCategories(ctx context.Context, params *DescribeEv type DescribeEventCategoriesInput struct { // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // The type of source that is generating the events. Valid values: db-instance, // db-parameter-group, db-security-group, db-snapshot @@ -43,7 +43,7 @@ type DescribeEventCategoriesInput struct { type DescribeEventCategoriesOutput struct { // A list of event category maps. - EventCategoriesMapList []*types.EventCategoriesMap + EventCategoriesMapList []types.EventCategoriesMap // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/docdb/api_op_DescribeEvents.go b/service/docdb/api_op_DescribeEvents.go index e3bac6dba83..bfc932c3d87 100644 --- a/service/docdb/api_op_DescribeEvents.go +++ b/service/docdb/api_op_DescribeEvents.go @@ -44,10 +44,10 @@ type DescribeEventsInput struct { // A list of event categories that trigger notifications for an event notification // subscription. - EventCategories []*string + EventCategories []string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -95,7 +95,7 @@ type DescribeEventsInput struct { type DescribeEventsOutput struct { // Detailed information about one or more events. - Events []*types.Event + Events []types.Event // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/docdb/api_op_DescribeOrderableDBInstanceOptions.go b/service/docdb/api_op_DescribeOrderableDBInstanceOptions.go index 316acdfe0b6..7554951d767 100644 --- a/service/docdb/api_op_DescribeOrderableDBInstanceOptions.go +++ b/service/docdb/api_op_DescribeOrderableDBInstanceOptions.go @@ -44,7 +44,7 @@ type DescribeOrderableDBInstanceOptionsInput struct { EngineVersion *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // The license model filter value. Specify this parameter to show only the // available offerings that match the specified license model. @@ -75,7 +75,7 @@ type DescribeOrderableDBInstanceOptionsOutput struct { Marker *string // The options that are available for a particular orderable instance. - OrderableDBInstanceOptions []*types.OrderableDBInstanceOption + OrderableDBInstanceOptions []types.OrderableDBInstanceOption // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/docdb/api_op_DescribePendingMaintenanceActions.go b/service/docdb/api_op_DescribePendingMaintenanceActions.go index 60e35951a4b..f178f81fa12 100644 --- a/service/docdb/api_op_DescribePendingMaintenanceActions.go +++ b/service/docdb/api_op_DescribePendingMaintenanceActions.go @@ -41,7 +41,7 @@ type DescribePendingMaintenanceActionsInput struct { // * db-instance-id // - Accepts instance identifiers and instance ARNs. The results list includes only // pending maintenance actions for the DB instances identified by these ARNs. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -67,7 +67,7 @@ type DescribePendingMaintenanceActionsOutput struct { Marker *string // The maintenance actions to be applied. - PendingMaintenanceActions []*types.ResourcePendingMaintenanceActions + PendingMaintenanceActions []types.ResourcePendingMaintenanceActions // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/docdb/api_op_ListTagsForResource.go b/service/docdb/api_op_ListTagsForResource.go index f338c3887f0..6506ef4caf7 100644 --- a/service/docdb/api_op_ListTagsForResource.go +++ b/service/docdb/api_op_ListTagsForResource.go @@ -37,14 +37,14 @@ type ListTagsForResourceInput struct { ResourceName *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter } // Represents the output of ListTagsForResource. type ListTagsForResourceOutput struct { // A list of one or more tags. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/docdb/api_op_ModifyDBCluster.go b/service/docdb/api_op_ModifyDBCluster.go index 6f065504b70..b133cf24975 100644 --- a/service/docdb/api_op_ModifyDBCluster.go +++ b/service/docdb/api_op_ModifyDBCluster.go @@ -50,7 +50,7 @@ type ModifyDBClusterInput struct { // to the NewDBClusterIdentifier and MasterUserPassword values are applied during // the next maintenance window. All other changes are applied immediately, // regardless of the value of the ApplyImmediately parameter. Default: false - ApplyImmediately *bool + ApplyImmediately bool // The number of days for which automated backups are retained. You must specify a // minimum value of 1. Default: 1 Constraints: @@ -125,7 +125,7 @@ type ModifyDBClusterInput struct { // A list of virtual private cloud (VPC) security groups that the cluster will // belong to. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type ModifyDBClusterOutput struct { diff --git a/service/docdb/api_op_ModifyDBClusterParameterGroup.go b/service/docdb/api_op_ModifyDBClusterParameterGroup.go index 5bfcb008cda..af197ece206 100644 --- a/service/docdb/api_op_ModifyDBClusterParameterGroup.go +++ b/service/docdb/api_op_ModifyDBClusterParameterGroup.go @@ -49,7 +49,7 @@ type ModifyDBClusterParameterGroupInput struct { // A list of parameters in the cluster parameter group to modify. // // This member is required. - Parameters []*types.Parameter + Parameters []types.Parameter } // Contains the name of a cluster parameter group. diff --git a/service/docdb/api_op_ModifyDBClusterSnapshotAttribute.go b/service/docdb/api_op_ModifyDBClusterSnapshotAttribute.go index 34f203d02d2..ac7a2a125e1 100644 --- a/service/docdb/api_op_ModifyDBClusterSnapshotAttribute.go +++ b/service/docdb/api_op_ModifyDBClusterSnapshotAttribute.go @@ -58,7 +58,7 @@ type ModifyDBClusterSnapshotAttributeInput struct { // the manual cluster snapshot restorable by any AWS account, set it to all. Do not // add the all value for any manual cluster snapshots that contain private // information that you don't want to be available to all AWS accounts. - ValuesToAdd []*string + ValuesToAdd []string // A list of cluster snapshot attributes to remove from the attribute specified by // AttributeName. To remove authorization for other AWS accounts to copy or restore @@ -67,7 +67,7 @@ type ModifyDBClusterSnapshotAttributeInput struct { // cluster snapshot, set it to all . If you specify all, an AWS account whose // account ID is explicitly added to the restore attribute can still copy or // restore a manual cluster snapshot. - ValuesToRemove []*string + ValuesToRemove []string } type ModifyDBClusterSnapshotAttributeOutput struct { diff --git a/service/docdb/api_op_ModifyDBInstance.go b/service/docdb/api_op_ModifyDBInstance.go index 591183d1e95..9a08469d773 100644 --- a/service/docdb/api_op_ModifyDBInstance.go +++ b/service/docdb/api_op_ModifyDBInstance.go @@ -46,7 +46,7 @@ type ModifyDBInstanceInput struct { // false, changes to the instance are applied during the next maintenance window. // Some parameter changes can cause an outage and are applied on the next reboot. // Default: false - ApplyImmediately *bool + ApplyImmediately bool // Indicates that minor version upgrades are applied automatically to the instance // during the maintenance window. Changing this parameter doesn't result in an diff --git a/service/docdb/api_op_ModifyDBSubnetGroup.go b/service/docdb/api_op_ModifyDBSubnetGroup.go index 97e8c6f7711..0e70015bca8 100644 --- a/service/docdb/api_op_ModifyDBSubnetGroup.go +++ b/service/docdb/api_op_ModifyDBSubnetGroup.go @@ -41,7 +41,7 @@ type ModifyDBSubnetGroupInput struct { // The Amazon EC2 subnet IDs for the subnet group. // // This member is required. - SubnetIds []*string + SubnetIds []string // The description for the subnet group. DBSubnetGroupDescription *string diff --git a/service/docdb/api_op_RemoveTagsFromResource.go b/service/docdb/api_op_RemoveTagsFromResource.go index 27eadeef71e..324de8be1e1 100644 --- a/service/docdb/api_op_RemoveTagsFromResource.go +++ b/service/docdb/api_op_RemoveTagsFromResource.go @@ -38,7 +38,7 @@ type RemoveTagsFromResourceInput struct { // The tag key (name) of the tag to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } type RemoveTagsFromResourceOutput struct { diff --git a/service/docdb/api_op_ResetDBClusterParameterGroup.go b/service/docdb/api_op_ResetDBClusterParameterGroup.go index acb967b1d45..d9a4583e0d0 100644 --- a/service/docdb/api_op_ResetDBClusterParameterGroup.go +++ b/service/docdb/api_op_ResetDBClusterParameterGroup.go @@ -44,12 +44,12 @@ type ResetDBClusterParameterGroupInput struct { // A list of parameter names in the cluster parameter group to reset to the default // values. You can't use this parameter if the ResetAllParameters parameter is set // to true. - Parameters []*types.Parameter + Parameters []types.Parameter // A value that is set to true to reset all parameters in the cluster parameter // group to their default values, and false otherwise. You can't use this parameter // if there is a list of parameter names specified for the Parameters parameter. - ResetAllParameters *bool + ResetAllParameters bool } // Contains the name of a cluster parameter group. diff --git a/service/docdb/api_op_RestoreDBClusterFromSnapshot.go b/service/docdb/api_op_RestoreDBClusterFromSnapshot.go index e4357212a5d..2e7d57425b9 100644 --- a/service/docdb/api_op_RestoreDBClusterFromSnapshot.go +++ b/service/docdb/api_op_RestoreDBClusterFromSnapshot.go @@ -69,7 +69,7 @@ type RestoreDBClusterFromSnapshotInput struct { // Provides the list of Amazon EC2 Availability Zones that instances in the // restored DB cluster can be created in. - AvailabilityZones []*string + AvailabilityZones []string // The name of the subnet group to use for the new cluster. Constraints: If // provided, must match the name of an existing DBSubnetGroup. Example: @@ -83,7 +83,7 @@ type RestoreDBClusterFromSnapshotInput struct { // A list of log types that must be enabled for exporting to Amazon CloudWatch // Logs. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // The version of the database engine to use for the new cluster. EngineVersion *string @@ -110,11 +110,11 @@ type RestoreDBClusterFromSnapshotInput struct { Port *int32 // The tags to be assigned to the restored cluster. - Tags []*types.Tag + Tags []types.Tag // A list of virtual private cloud (VPC) security groups that the new cluster will // belong to. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type RestoreDBClusterFromSnapshotOutput struct { diff --git a/service/docdb/api_op_RestoreDBClusterToPointInTime.go b/service/docdb/api_op_RestoreDBClusterToPointInTime.go index 1e37c324090..01815a7e3e8 100644 --- a/service/docdb/api_op_RestoreDBClusterToPointInTime.go +++ b/service/docdb/api_op_RestoreDBClusterToPointInTime.go @@ -67,7 +67,7 @@ type RestoreDBClusterToPointInTimeInput struct { // A list of log types that must be enabled for exporting to Amazon CloudWatch // Logs. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // The AWS KMS key identifier to use when restoring an encrypted cluster from an // encrypted cluster. The AWS KMS key identifier is the Amazon Resource Name (ARN) @@ -114,15 +114,15 @@ type RestoreDBClusterToPointInTimeInput struct { RestoreToTime *time.Time // The tags to be assigned to the restored cluster. - Tags []*types.Tag + Tags []types.Tag // A value that is set to true to restore the cluster to the latest restorable // backup time, and false otherwise. Default: false Constraints: Cannot be // specified if the RestoreToTime parameter is provided. - UseLatestRestorableTime *bool + UseLatestRestorableTime bool // A list of VPC security groups that the new cluster belongs to. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type RestoreDBClusterToPointInTimeOutput struct { diff --git a/service/docdb/deserializers.go b/service/docdb/deserializers.go index 70ea37378c1..e4f9961182d 100644 --- a/service/docdb/deserializers.go +++ b/service/docdb/deserializers.go @@ -5875,13 +5875,13 @@ func awsAwsquery_deserializeErrorSubnetAlreadyInUse(response *smithyhttp.Respons return output } -func awsAwsquery_deserializeDocumentAttributeValueList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAttributeValueList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -5899,20 +5899,17 @@ func awsAwsquery_deserializeDocumentAttributeValueList(v *[]*string, decoder smi decoder = memberDecoder for { if strings.EqualFold("AttributeValue", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -5925,17 +5922,17 @@ func awsAwsquery_deserializeDocumentAttributeValueList(v *[]*string, decoder smi return nil } -func awsAwsquery_deserializeDocumentAttributeValueListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAttributeValueListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -5943,14 +5940,11 @@ func awsAwsquery_deserializeDocumentAttributeValueListUnwrapped(v *[]*string, de return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -5992,7 +5986,7 @@ func awsAwsquery_deserializeDocumentAuthorizationNotFoundFault(v **types.Authori } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6040,7 +6034,7 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -6053,13 +6047,13 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, return nil } -func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]*types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AvailabilityZone + var sv []types.AvailabilityZone if *v == nil { - sv = make([]*types.AvailabilityZone, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } @@ -6075,11 +6069,13 @@ func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]*types.Availabilit } for { if strings.EqualFold("AvailabilityZone", t.Name.Local) { - var col *types.AvailabilityZone + var col types.AvailabilityZone nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZone(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6092,35 +6088,37 @@ func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]*types.Availabilit return nil } -func awsAwsquery_deserializeDocumentAvailabilityZoneListUnwrapped(v *[]*types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { - var sv []*types.AvailabilityZone +func awsAwsquery_deserializeDocumentAvailabilityZoneListUnwrapped(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { + var sv []types.AvailabilityZone if *v == nil { - sv = make([]*types.AvailabilityZone, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } switch { default: - var mv *types.AvailabilityZone + var mv types.AvailabilityZone t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZone(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -6138,20 +6136,17 @@ func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("AvailabilityZone", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -6164,17 +6159,17 @@ func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smit return nil } -func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -6182,14 +6177,11 @@ func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -6231,7 +6223,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s } if val != nil { xtv := string(val) - sv.CertificateArn = &xtv + sv.CertificateArn = ptr.String(xtv) } case strings.EqualFold("CertificateIdentifier", t.Name.Local): @@ -6247,7 +6239,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s } if val != nil { xtv := string(val) - sv.CertificateIdentifier = &xtv + sv.CertificateIdentifier = ptr.String(xtv) } case strings.EqualFold("CertificateType", t.Name.Local): @@ -6263,7 +6255,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s } if val != nil { xtv := string(val) - sv.CertificateType = &xtv + sv.CertificateType = ptr.String(xtv) } case strings.EqualFold("Thumbprint", t.Name.Local): @@ -6279,7 +6271,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s } if val != nil { xtv := string(val) - sv.Thumbprint = &xtv + sv.Thumbprint = ptr.String(xtv) } case strings.EqualFold("ValidFrom", t.Name.Local): @@ -6296,7 +6288,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s if err != nil { return err } - sv.ValidFrom = &t + sv.ValidFrom = ptr.Time(t) } case strings.EqualFold("ValidTill", t.Name.Local): @@ -6313,7 +6305,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s if err != nil { return err } - sv.ValidTill = &t + sv.ValidTill = ptr.Time(t) } default: @@ -6326,13 +6318,13 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s return nil } -func awsAwsquery_deserializeDocumentCertificateList(v *[]*types.Certificate, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCertificateList(v *[]types.Certificate, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Certificate + var sv []types.Certificate if *v == nil { - sv = make([]*types.Certificate, 0) + sv = make([]types.Certificate, 0) } else { sv = *v } @@ -6348,11 +6340,13 @@ func awsAwsquery_deserializeDocumentCertificateList(v *[]*types.Certificate, dec } for { if strings.EqualFold("Certificate", t.Name.Local) { - var col *types.Certificate + var col types.Certificate nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCertificate(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCertificate(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6365,23 +6359,25 @@ func awsAwsquery_deserializeDocumentCertificateList(v *[]*types.Certificate, dec return nil } -func awsAwsquery_deserializeDocumentCertificateListUnwrapped(v *[]*types.Certificate, decoder smithyxml.NodeDecoder) error { - var sv []*types.Certificate +func awsAwsquery_deserializeDocumentCertificateListUnwrapped(v *[]types.Certificate, decoder smithyxml.NodeDecoder) error { + var sv []types.Certificate if *v == nil { - sv = make([]*types.Certificate, 0) + sv = make([]types.Certificate, 0) } else { sv = *v } switch { default: - var mv *types.Certificate + var mv types.Certificate t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCertificate(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCertificate(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6422,7 +6418,7 @@ func awsAwsquery_deserializeDocumentCertificateNotFoundFault(v **types.Certifica } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6500,7 +6496,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return err } - sv.ClusterCreateTime = &t + sv.ClusterCreateTime = ptr.Time(t) } case strings.EqualFold("DBClusterArn", t.Name.Local): @@ -6516,7 +6512,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DBClusterArn = &xtv + sv.DBClusterArn = ptr.String(xtv) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -6532,7 +6528,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterMembers", t.Name.Local): @@ -6554,7 +6550,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DBClusterParameterGroup = &xtv + sv.DBClusterParameterGroup = ptr.String(xtv) } case strings.EqualFold("DbClusterResourceId", t.Name.Local): @@ -6570,7 +6566,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DbClusterResourceId = &xtv + sv.DbClusterResourceId = ptr.String(xtv) } case strings.EqualFold("DBSubnetGroup", t.Name.Local): @@ -6586,7 +6582,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DBSubnetGroup = &xtv + sv.DBSubnetGroup = ptr.String(xtv) } case strings.EqualFold("DeletionProtection", t.Name.Local): @@ -6602,7 +6598,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeletionProtection = &xtv + sv.DeletionProtection = xtv } case strings.EqualFold("EarliestRestorableTime", t.Name.Local): @@ -6619,7 +6615,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return err } - sv.EarliestRestorableTime = &t + sv.EarliestRestorableTime = ptr.Time(t) } case strings.EqualFold("EnabledCloudwatchLogsExports", t.Name.Local): @@ -6641,7 +6637,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -6657,7 +6653,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -6673,7 +6669,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("HostedZoneId", t.Name.Local): @@ -6689,7 +6685,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -6705,7 +6701,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("LatestRestorableTime", t.Name.Local): @@ -6722,7 +6718,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return err } - sv.LatestRestorableTime = &t + sv.LatestRestorableTime = ptr.Time(t) } case strings.EqualFold("MasterUsername", t.Name.Local): @@ -6738,7 +6734,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.MasterUsername = &xtv + sv.MasterUsername = ptr.String(xtv) } case strings.EqualFold("MultiAZ", t.Name.Local): @@ -6754,7 +6750,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MultiAZ = &xtv + sv.MultiAZ = xtv } case strings.EqualFold("PercentProgress", t.Name.Local): @@ -6770,7 +6766,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.PercentProgress = &xtv + sv.PercentProgress = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -6803,7 +6799,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.PreferredBackupWindow = &xtv + sv.PreferredBackupWindow = ptr.String(xtv) } case strings.EqualFold("PreferredMaintenanceWindow", t.Name.Local): @@ -6819,7 +6815,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.PreferredMaintenanceWindow = &xtv + sv.PreferredMaintenanceWindow = ptr.String(xtv) } case strings.EqualFold("ReaderEndpoint", t.Name.Local): @@ -6835,7 +6831,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.ReaderEndpoint = &xtv + sv.ReaderEndpoint = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -6851,7 +6847,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("StorageEncrypted", t.Name.Local): @@ -6867,7 +6863,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.StorageEncrypted = &xtv + sv.StorageEncrypted = xtv } case strings.EqualFold("VpcSecurityGroups", t.Name.Local): @@ -6921,7 +6917,7 @@ func awsAwsquery_deserializeDocumentDBClusterAlreadyExistsFault(v **types.DBClus } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6934,13 +6930,13 @@ func awsAwsquery_deserializeDocumentDBClusterAlreadyExistsFault(v **types.DBClus return nil } -func awsAwsquery_deserializeDocumentDBClusterList(v *[]*types.DBCluster, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterList(v *[]types.DBCluster, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBCluster + var sv []types.DBCluster if *v == nil { - sv = make([]*types.DBCluster, 0) + sv = make([]types.DBCluster, 0) } else { sv = *v } @@ -6956,11 +6952,13 @@ func awsAwsquery_deserializeDocumentDBClusterList(v *[]*types.DBCluster, decoder } for { if strings.EqualFold("DBCluster", t.Name.Local) { - var col *types.DBCluster + var col types.DBCluster nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBCluster(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBCluster(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6973,23 +6971,25 @@ func awsAwsquery_deserializeDocumentDBClusterList(v *[]*types.DBCluster, decoder return nil } -func awsAwsquery_deserializeDocumentDBClusterListUnwrapped(v *[]*types.DBCluster, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBCluster +func awsAwsquery_deserializeDocumentDBClusterListUnwrapped(v *[]types.DBCluster, decoder smithyxml.NodeDecoder) error { + var sv []types.DBCluster if *v == nil { - sv = make([]*types.DBCluster, 0) + sv = make([]types.DBCluster, 0) } else { sv = *v } switch { default: - var mv *types.DBCluster + var mv types.DBCluster t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBCluster(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBCluster(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -7030,7 +7030,7 @@ func awsAwsquery_deserializeDocumentDBClusterMember(v **types.DBClusterMember, d } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupStatus = &xtv + sv.DBClusterParameterGroupStatus = ptr.String(xtv) } case strings.EqualFold("DBInstanceIdentifier", t.Name.Local): @@ -7046,7 +7046,7 @@ func awsAwsquery_deserializeDocumentDBClusterMember(v **types.DBClusterMember, d } if val != nil { xtv := string(val) - sv.DBInstanceIdentifier = &xtv + sv.DBInstanceIdentifier = ptr.String(xtv) } case strings.EqualFold("IsClusterWriter", t.Name.Local): @@ -7062,7 +7062,7 @@ func awsAwsquery_deserializeDocumentDBClusterMember(v **types.DBClusterMember, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsClusterWriter = &xtv + sv.IsClusterWriter = xtv } case strings.EqualFold("PromotionTier", t.Name.Local): @@ -7092,13 +7092,13 @@ func awsAwsquery_deserializeDocumentDBClusterMember(v **types.DBClusterMember, d return nil } -func awsAwsquery_deserializeDocumentDBClusterMemberList(v *[]*types.DBClusterMember, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterMemberList(v *[]types.DBClusterMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterMember + var sv []types.DBClusterMember if *v == nil { - sv = make([]*types.DBClusterMember, 0) + sv = make([]types.DBClusterMember, 0) } else { sv = *v } @@ -7114,11 +7114,13 @@ func awsAwsquery_deserializeDocumentDBClusterMemberList(v *[]*types.DBClusterMem } for { if strings.EqualFold("DBClusterMember", t.Name.Local) { - var col *types.DBClusterMember + var col types.DBClusterMember nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterMember(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterMember(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7131,23 +7133,25 @@ func awsAwsquery_deserializeDocumentDBClusterMemberList(v *[]*types.DBClusterMem return nil } -func awsAwsquery_deserializeDocumentDBClusterMemberListUnwrapped(v *[]*types.DBClusterMember, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterMember +func awsAwsquery_deserializeDocumentDBClusterMemberListUnwrapped(v *[]types.DBClusterMember, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterMember if *v == nil { - sv = make([]*types.DBClusterMember, 0) + sv = make([]types.DBClusterMember, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterMember + var mv types.DBClusterMember t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterMember(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterMember(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -7188,7 +7192,7 @@ func awsAwsquery_deserializeDocumentDBClusterNotFoundFault(v **types.DBClusterNo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7236,7 +7240,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupArn = &xtv + sv.DBClusterParameterGroupArn = ptr.String(xtv) } case strings.EqualFold("DBClusterParameterGroupName", t.Name.Local): @@ -7252,7 +7256,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupName = &xtv + sv.DBClusterParameterGroupName = ptr.String(xtv) } case strings.EqualFold("DBParameterGroupFamily", t.Name.Local): @@ -7268,7 +7272,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP } if val != nil { xtv := string(val) - sv.DBParameterGroupFamily = &xtv + sv.DBParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -7284,7 +7288,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } default: @@ -7297,13 +7301,13 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP return nil } -func awsAwsquery_deserializeDocumentDBClusterParameterGroupList(v *[]*types.DBClusterParameterGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterParameterGroupList(v *[]types.DBClusterParameterGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterParameterGroup + var sv []types.DBClusterParameterGroup if *v == nil { - sv = make([]*types.DBClusterParameterGroup, 0) + sv = make([]types.DBClusterParameterGroup, 0) } else { sv = *v } @@ -7319,11 +7323,13 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroupList(v *[]*types.DBCl } for { if strings.EqualFold("DBClusterParameterGroup", t.Name.Local) { - var col *types.DBClusterParameterGroup + var col types.DBClusterParameterGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterParameterGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7336,23 +7342,25 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroupList(v *[]*types.DBCl return nil } -func awsAwsquery_deserializeDocumentDBClusterParameterGroupListUnwrapped(v *[]*types.DBClusterParameterGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterParameterGroup +func awsAwsquery_deserializeDocumentDBClusterParameterGroupListUnwrapped(v *[]types.DBClusterParameterGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterParameterGroup if *v == nil { - sv = make([]*types.DBClusterParameterGroup, 0) + sv = make([]types.DBClusterParameterGroup, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterParameterGroup + var mv types.DBClusterParameterGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterParameterGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -7393,7 +7401,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroupNotFoundFault(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7441,7 +7449,7 @@ func awsAwsquery_deserializeDocumentDBClusterQuotaExceededFault(v **types.DBClus } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7489,7 +7497,7 @@ func awsAwsquery_deserializeDocumentDBClusterRole(v **types.DBClusterRole, decod } if val != nil { xtv := string(val) - sv.RoleArn = &xtv + sv.RoleArn = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -7505,7 +7513,7 @@ func awsAwsquery_deserializeDocumentDBClusterRole(v **types.DBClusterRole, decod } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -7518,13 +7526,13 @@ func awsAwsquery_deserializeDocumentDBClusterRole(v **types.DBClusterRole, decod return nil } -func awsAwsquery_deserializeDocumentDBClusterRoles(v *[]*types.DBClusterRole, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterRoles(v *[]types.DBClusterRole, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterRole + var sv []types.DBClusterRole if *v == nil { - sv = make([]*types.DBClusterRole, 0) + sv = make([]types.DBClusterRole, 0) } else { sv = *v } @@ -7540,11 +7548,13 @@ func awsAwsquery_deserializeDocumentDBClusterRoles(v *[]*types.DBClusterRole, de } for { if strings.EqualFold("DBClusterRole", t.Name.Local) { - var col *types.DBClusterRole + var col types.DBClusterRole nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterRole(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterRole(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7557,23 +7567,25 @@ func awsAwsquery_deserializeDocumentDBClusterRoles(v *[]*types.DBClusterRole, de return nil } -func awsAwsquery_deserializeDocumentDBClusterRolesUnwrapped(v *[]*types.DBClusterRole, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterRole +func awsAwsquery_deserializeDocumentDBClusterRolesUnwrapped(v *[]types.DBClusterRole, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterRole if *v == nil { - sv = make([]*types.DBClusterRole, 0) + sv = make([]types.DBClusterRole, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterRole + var mv types.DBClusterRole t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterRole(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterRole(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -7621,7 +7633,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.ClusterCreateTime = &t + sv.ClusterCreateTime = ptr.Time(t) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -7637,7 +7649,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterSnapshotArn", t.Name.Local): @@ -7653,7 +7665,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.DBClusterSnapshotArn = &xtv + sv.DBClusterSnapshotArn = ptr.String(xtv) } case strings.EqualFold("DBClusterSnapshotIdentifier", t.Name.Local): @@ -7669,7 +7681,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.DBClusterSnapshotIdentifier = &xtv + sv.DBClusterSnapshotIdentifier = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -7685,7 +7697,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -7701,7 +7713,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -7717,7 +7729,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("MasterUsername", t.Name.Local): @@ -7733,7 +7745,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.MasterUsername = &xtv + sv.MasterUsername = ptr.String(xtv) } case strings.EqualFold("PercentProgress", t.Name.Local): @@ -7750,7 +7762,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.PercentProgress = ptr.Int32(int32(i64)) + sv.PercentProgress = int32(i64) } case strings.EqualFold("Port", t.Name.Local): @@ -7767,7 +7779,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case strings.EqualFold("SnapshotCreateTime", t.Name.Local): @@ -7784,7 +7796,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.SnapshotCreateTime = &t + sv.SnapshotCreateTime = ptr.Time(t) } case strings.EqualFold("SnapshotType", t.Name.Local): @@ -7800,7 +7812,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.SnapshotType = &xtv + sv.SnapshotType = ptr.String(xtv) } case strings.EqualFold("SourceDBClusterSnapshotArn", t.Name.Local): @@ -7816,7 +7828,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.SourceDBClusterSnapshotArn = &xtv + sv.SourceDBClusterSnapshotArn = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -7832,7 +7844,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("StorageEncrypted", t.Name.Local): @@ -7848,7 +7860,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.StorageEncrypted = &xtv + sv.StorageEncrypted = xtv } case strings.EqualFold("VpcId", t.Name.Local): @@ -7864,7 +7876,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -7912,7 +7924,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAlreadyExistsFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7960,7 +7972,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(v **types.DBClust } if val != nil { xtv := string(val) - sv.AttributeName = &xtv + sv.AttributeName = ptr.String(xtv) } case strings.EqualFold("AttributeValues", t.Name.Local): @@ -7979,13 +7991,13 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(v **types.DBClust return nil } -func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeList(v *[]*types.DBClusterSnapshotAttribute, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeList(v *[]types.DBClusterSnapshotAttribute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterSnapshotAttribute + var sv []types.DBClusterSnapshotAttribute if *v == nil { - sv = make([]*types.DBClusterSnapshotAttribute, 0) + sv = make([]types.DBClusterSnapshotAttribute, 0) } else { sv = *v } @@ -8001,11 +8013,13 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeList(v *[]*types.D } for { if strings.EqualFold("DBClusterSnapshotAttribute", t.Name.Local) { - var col *types.DBClusterSnapshotAttribute + var col types.DBClusterSnapshotAttribute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8018,23 +8032,25 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeList(v *[]*types.D return nil } -func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeListUnwrapped(v *[]*types.DBClusterSnapshotAttribute, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterSnapshotAttribute +func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeListUnwrapped(v *[]types.DBClusterSnapshotAttribute, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterSnapshotAttribute if *v == nil { - sv = make([]*types.DBClusterSnapshotAttribute, 0) + sv = make([]types.DBClusterSnapshotAttribute, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterSnapshotAttribute + var mv types.DBClusterSnapshotAttribute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8081,7 +8097,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributesResult(v **types. } if val != nil { xtv := string(val) - sv.DBClusterSnapshotIdentifier = &xtv + sv.DBClusterSnapshotIdentifier = ptr.String(xtv) } default: @@ -8094,13 +8110,13 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributesResult(v **types. return nil } -func awsAwsquery_deserializeDocumentDBClusterSnapshotList(v *[]*types.DBClusterSnapshot, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterSnapshotList(v *[]types.DBClusterSnapshot, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterSnapshot + var sv []types.DBClusterSnapshot if *v == nil { - sv = make([]*types.DBClusterSnapshot, 0) + sv = make([]types.DBClusterSnapshot, 0) } else { sv = *v } @@ -8116,11 +8132,13 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotList(v *[]*types.DBClusterS } for { if strings.EqualFold("DBClusterSnapshot", t.Name.Local) { - var col *types.DBClusterSnapshot + var col types.DBClusterSnapshot nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterSnapshot(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterSnapshot(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8133,23 +8151,25 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotList(v *[]*types.DBClusterS return nil } -func awsAwsquery_deserializeDocumentDBClusterSnapshotListUnwrapped(v *[]*types.DBClusterSnapshot, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterSnapshot +func awsAwsquery_deserializeDocumentDBClusterSnapshotListUnwrapped(v *[]types.DBClusterSnapshot, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterSnapshot if *v == nil { - sv = make([]*types.DBClusterSnapshot, 0) + sv = make([]types.DBClusterSnapshot, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterSnapshot + var mv types.DBClusterSnapshot t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterSnapshot(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterSnapshot(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8190,7 +8210,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotNotFoundFault(v **types.DBC } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8238,7 +8258,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.DBEngineDescription = &xtv + sv.DBEngineDescription = ptr.String(xtv) } case strings.EqualFold("DBEngineVersionDescription", t.Name.Local): @@ -8254,7 +8274,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.DBEngineVersionDescription = &xtv + sv.DBEngineVersionDescription = ptr.String(xtv) } case strings.EqualFold("DBParameterGroupFamily", t.Name.Local): @@ -8270,7 +8290,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.DBParameterGroupFamily = &xtv + sv.DBParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -8286,7 +8306,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -8302,7 +8322,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("ExportableLogTypes", t.Name.Local): @@ -8324,7 +8344,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsLogExportsToCloudwatchLogs = &xtv + sv.SupportsLogExportsToCloudwatchLogs = xtv } case strings.EqualFold("ValidUpgradeTarget", t.Name.Local): @@ -8343,13 +8363,13 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d return nil } -func awsAwsquery_deserializeDocumentDBEngineVersionList(v *[]*types.DBEngineVersion, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBEngineVersionList(v *[]types.DBEngineVersion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBEngineVersion + var sv []types.DBEngineVersion if *v == nil { - sv = make([]*types.DBEngineVersion, 0) + sv = make([]types.DBEngineVersion, 0) } else { sv = *v } @@ -8365,11 +8385,13 @@ func awsAwsquery_deserializeDocumentDBEngineVersionList(v *[]*types.DBEngineVers } for { if strings.EqualFold("DBEngineVersion", t.Name.Local) { - var col *types.DBEngineVersion + var col types.DBEngineVersion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBEngineVersion(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBEngineVersion(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8382,23 +8404,25 @@ func awsAwsquery_deserializeDocumentDBEngineVersionList(v *[]*types.DBEngineVers return nil } -func awsAwsquery_deserializeDocumentDBEngineVersionListUnwrapped(v *[]*types.DBEngineVersion, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBEngineVersion +func awsAwsquery_deserializeDocumentDBEngineVersionListUnwrapped(v *[]types.DBEngineVersion, decoder smithyxml.NodeDecoder) error { + var sv []types.DBEngineVersion if *v == nil { - sv = make([]*types.DBEngineVersion, 0) + sv = make([]types.DBEngineVersion, 0) } else { sv = *v } switch { default: - var mv *types.DBEngineVersion + var mv types.DBEngineVersion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBEngineVersion(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBEngineVersion(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8439,7 +8463,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AutoMinorVersionUpgrade = &xtv + sv.AutoMinorVersionUpgrade = xtv } case strings.EqualFold("AvailabilityZone", t.Name.Local): @@ -8455,7 +8479,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("BackupRetentionPeriod", t.Name.Local): @@ -8472,7 +8496,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return err } - sv.BackupRetentionPeriod = ptr.Int32(int32(i64)) + sv.BackupRetentionPeriod = int32(i64) } case strings.EqualFold("CACertificateIdentifier", t.Name.Local): @@ -8488,7 +8512,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.CACertificateIdentifier = &xtv + sv.CACertificateIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -8504,7 +8528,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("DBInstanceArn", t.Name.Local): @@ -8520,7 +8544,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBInstanceArn = &xtv + sv.DBInstanceArn = ptr.String(xtv) } case strings.EqualFold("DBInstanceClass", t.Name.Local): @@ -8536,7 +8560,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBInstanceClass = &xtv + sv.DBInstanceClass = ptr.String(xtv) } case strings.EqualFold("DBInstanceIdentifier", t.Name.Local): @@ -8552,7 +8576,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBInstanceIdentifier = &xtv + sv.DBInstanceIdentifier = ptr.String(xtv) } case strings.EqualFold("DBInstanceStatus", t.Name.Local): @@ -8568,7 +8592,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBInstanceStatus = &xtv + sv.DBInstanceStatus = ptr.String(xtv) } case strings.EqualFold("DbiResourceId", t.Name.Local): @@ -8584,7 +8608,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DbiResourceId = &xtv + sv.DbiResourceId = ptr.String(xtv) } case strings.EqualFold("DBSubnetGroup", t.Name.Local): @@ -8618,7 +8642,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -8634,7 +8658,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("InstanceCreateTime", t.Name.Local): @@ -8651,7 +8675,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return err } - sv.InstanceCreateTime = &t + sv.InstanceCreateTime = ptr.Time(t) } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -8667,7 +8691,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("LatestRestorableTime", t.Name.Local): @@ -8684,7 +8708,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return err } - sv.LatestRestorableTime = &t + sv.LatestRestorableTime = ptr.Time(t) } case strings.EqualFold("PendingModifiedValues", t.Name.Local): @@ -8706,7 +8730,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.PreferredBackupWindow = &xtv + sv.PreferredBackupWindow = ptr.String(xtv) } case strings.EqualFold("PreferredMaintenanceWindow", t.Name.Local): @@ -8722,7 +8746,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.PreferredMaintenanceWindow = &xtv + sv.PreferredMaintenanceWindow = ptr.String(xtv) } case strings.EqualFold("PromotionTier", t.Name.Local): @@ -8755,7 +8779,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.PubliclyAccessible = &xtv + sv.PubliclyAccessible = xtv } case strings.EqualFold("StatusInfos", t.Name.Local): @@ -8777,7 +8801,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.StorageEncrypted = &xtv + sv.StorageEncrypted = xtv } case strings.EqualFold("VpcSecurityGroups", t.Name.Local): @@ -8831,7 +8855,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAlreadyExistsFault(v **types.DBIns } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8844,13 +8868,13 @@ func awsAwsquery_deserializeDocumentDBInstanceAlreadyExistsFault(v **types.DBIns return nil } -func awsAwsquery_deserializeDocumentDBInstanceList(v *[]*types.DBInstance, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBInstanceList(v *[]types.DBInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBInstance + var sv []types.DBInstance if *v == nil { - sv = make([]*types.DBInstance, 0) + sv = make([]types.DBInstance, 0) } else { sv = *v } @@ -8866,11 +8890,13 @@ func awsAwsquery_deserializeDocumentDBInstanceList(v *[]*types.DBInstance, decod } for { if strings.EqualFold("DBInstance", t.Name.Local) { - var col *types.DBInstance + var col types.DBInstance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8883,23 +8909,25 @@ func awsAwsquery_deserializeDocumentDBInstanceList(v *[]*types.DBInstance, decod return nil } -func awsAwsquery_deserializeDocumentDBInstanceListUnwrapped(v *[]*types.DBInstance, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBInstance +func awsAwsquery_deserializeDocumentDBInstanceListUnwrapped(v *[]types.DBInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.DBInstance if *v == nil { - sv = make([]*types.DBInstance, 0) + sv = make([]types.DBInstance, 0) } else { sv = *v } switch { default: - var mv *types.DBInstance + var mv types.DBInstance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8940,7 +8968,7 @@ func awsAwsquery_deserializeDocumentDBInstanceNotFoundFault(v **types.DBInstance } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8988,7 +9016,7 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("Normal", t.Name.Local): @@ -9004,7 +9032,7 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Normal = &xtv + sv.Normal = xtv } case strings.EqualFold("Status", t.Name.Local): @@ -9020,7 +9048,7 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("StatusType", t.Name.Local): @@ -9036,7 +9064,7 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta } if val != nil { xtv := string(val) - sv.StatusType = &xtv + sv.StatusType = ptr.String(xtv) } default: @@ -9049,13 +9077,13 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta return nil } -func awsAwsquery_deserializeDocumentDBInstanceStatusInfoList(v *[]*types.DBInstanceStatusInfo, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBInstanceStatusInfoList(v *[]types.DBInstanceStatusInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBInstanceStatusInfo + var sv []types.DBInstanceStatusInfo if *v == nil { - sv = make([]*types.DBInstanceStatusInfo, 0) + sv = make([]types.DBInstanceStatusInfo, 0) } else { sv = *v } @@ -9071,11 +9099,13 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfoList(v *[]*types.DBInsta } for { if strings.EqualFold("DBInstanceStatusInfo", t.Name.Local) { - var col *types.DBInstanceStatusInfo + var col types.DBInstanceStatusInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstanceStatusInfo(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBInstanceStatusInfo(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9088,23 +9118,25 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfoList(v *[]*types.DBInsta return nil } -func awsAwsquery_deserializeDocumentDBInstanceStatusInfoListUnwrapped(v *[]*types.DBInstanceStatusInfo, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBInstanceStatusInfo +func awsAwsquery_deserializeDocumentDBInstanceStatusInfoListUnwrapped(v *[]types.DBInstanceStatusInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.DBInstanceStatusInfo if *v == nil { - sv = make([]*types.DBInstanceStatusInfo, 0) + sv = make([]types.DBInstanceStatusInfo, 0) } else { sv = *v } switch { default: - var mv *types.DBInstanceStatusInfo + var mv types.DBInstanceStatusInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstanceStatusInfo(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBInstanceStatusInfo(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9145,7 +9177,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroupAlreadyExistsFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9193,7 +9225,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroupNotFoundFault(v **types.DBPa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9241,7 +9273,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroupQuotaExceededFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9289,7 +9321,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupNotFoundFault(v **types.DBSec } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9337,7 +9369,7 @@ func awsAwsquery_deserializeDocumentDBSnapshotAlreadyExistsFault(v **types.DBSna } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9385,7 +9417,7 @@ func awsAwsquery_deserializeDocumentDBSnapshotNotFoundFault(v **types.DBSnapshot } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9433,7 +9465,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.DBSubnetGroupArn = &xtv + sv.DBSubnetGroupArn = ptr.String(xtv) } case strings.EqualFold("DBSubnetGroupDescription", t.Name.Local): @@ -9449,7 +9481,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.DBSubnetGroupDescription = &xtv + sv.DBSubnetGroupDescription = ptr.String(xtv) } case strings.EqualFold("DBSubnetGroupName", t.Name.Local): @@ -9465,7 +9497,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.DBSubnetGroupName = &xtv + sv.DBSubnetGroupName = ptr.String(xtv) } case strings.EqualFold("SubnetGroupStatus", t.Name.Local): @@ -9481,7 +9513,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.SubnetGroupStatus = &xtv + sv.SubnetGroupStatus = ptr.String(xtv) } case strings.EqualFold("Subnets", t.Name.Local): @@ -9503,7 +9535,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -9551,7 +9583,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupAlreadyExistsFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9599,7 +9631,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupDoesNotCoverEnoughAZs(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9647,7 +9679,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupNotFoundFault(v **types.DBSubne } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9695,7 +9727,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupQuotaExceededFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9708,13 +9740,13 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupQuotaExceededFault(v **types.DB return nil } -func awsAwsquery_deserializeDocumentDBSubnetGroups(v *[]*types.DBSubnetGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBSubnetGroups(v *[]types.DBSubnetGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBSubnetGroup + var sv []types.DBSubnetGroup if *v == nil { - sv = make([]*types.DBSubnetGroup, 0) + sv = make([]types.DBSubnetGroup, 0) } else { sv = *v } @@ -9730,11 +9762,13 @@ func awsAwsquery_deserializeDocumentDBSubnetGroups(v *[]*types.DBSubnetGroup, de } for { if strings.EqualFold("DBSubnetGroup", t.Name.Local) { - var col *types.DBSubnetGroup + var col types.DBSubnetGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSubnetGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBSubnetGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9747,23 +9781,25 @@ func awsAwsquery_deserializeDocumentDBSubnetGroups(v *[]*types.DBSubnetGroup, de return nil } -func awsAwsquery_deserializeDocumentDBSubnetGroupsUnwrapped(v *[]*types.DBSubnetGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBSubnetGroup +func awsAwsquery_deserializeDocumentDBSubnetGroupsUnwrapped(v *[]types.DBSubnetGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.DBSubnetGroup if *v == nil { - sv = make([]*types.DBSubnetGroup, 0) + sv = make([]types.DBSubnetGroup, 0) } else { sv = *v } switch { default: - var mv *types.DBSubnetGroup + var mv types.DBSubnetGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSubnetGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBSubnetGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9804,7 +9840,7 @@ func awsAwsquery_deserializeDocumentDBSubnetQuotaExceededFault(v **types.DBSubne } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9852,7 +9888,7 @@ func awsAwsquery_deserializeDocumentDBUpgradeDependencyFailureFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9900,7 +9936,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx } if val != nil { xtv := string(val) - sv.Address = &xtv + sv.Address = ptr.String(xtv) } case strings.EqualFold("HostedZoneId", t.Name.Local): @@ -9916,7 +9952,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -9933,7 +9969,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -9981,7 +10017,7 @@ func awsAwsquery_deserializeDocumentEngineDefaults(v **types.EngineDefaults, dec } if val != nil { xtv := string(val) - sv.DBParameterGroupFamily = &xtv + sv.DBParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("Marker", t.Name.Local): @@ -9997,7 +10033,7 @@ func awsAwsquery_deserializeDocumentEngineDefaults(v **types.EngineDefaults, dec } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): @@ -10052,7 +10088,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod if err != nil { return err } - sv.Date = &t + sv.Date = ptr.Time(t) } case strings.EqualFold("EventCategories", t.Name.Local): @@ -10074,7 +10110,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("SourceArn", t.Name.Local): @@ -10090,7 +10126,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.SourceArn = &xtv + sv.SourceArn = ptr.String(xtv) } case strings.EqualFold("SourceIdentifier", t.Name.Local): @@ -10106,7 +10142,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.SourceIdentifier = &xtv + sv.SourceIdentifier = ptr.String(xtv) } case strings.EqualFold("SourceType", t.Name.Local): @@ -10132,13 +10168,13 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -10156,20 +10192,17 @@ func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]*string, decoder sm decoder = memberDecoder for { if strings.EqualFold("EventCategory", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -10182,17 +10215,17 @@ func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]*string, decoder sm return nil } -func awsAwsquery_deserializeDocumentEventCategoriesListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentEventCategoriesListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -10200,14 +10233,11 @@ func awsAwsquery_deserializeDocumentEventCategoriesListUnwrapped(v *[]*string, d return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -10255,7 +10285,7 @@ func awsAwsquery_deserializeDocumentEventCategoriesMap(v **types.EventCategories } if val != nil { xtv := string(val) - sv.SourceType = &xtv + sv.SourceType = ptr.String(xtv) } default: @@ -10268,13 +10298,13 @@ func awsAwsquery_deserializeDocumentEventCategoriesMap(v **types.EventCategories return nil } -func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]*types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EventCategoriesMap + var sv []types.EventCategoriesMap if *v == nil { - sv = make([]*types.EventCategoriesMap, 0) + sv = make([]types.EventCategoriesMap, 0) } else { sv = *v } @@ -10290,11 +10320,13 @@ func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]*types.EventCate } for { if strings.EqualFold("EventCategoriesMap", t.Name.Local) { - var col *types.EventCategoriesMap + var col types.EventCategoriesMap nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10307,35 +10339,37 @@ func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]*types.EventCate return nil } -func awsAwsquery_deserializeDocumentEventCategoriesMapListUnwrapped(v *[]*types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { - var sv []*types.EventCategoriesMap +func awsAwsquery_deserializeDocumentEventCategoriesMapListUnwrapped(v *[]types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { + var sv []types.EventCategoriesMap if *v == nil { - sv = make([]*types.EventCategoriesMap, 0) + sv = make([]types.EventCategoriesMap, 0) } else { sv = *v } switch { default: - var mv *types.EventCategoriesMap + var mv types.EventCategoriesMap t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventList(v *[]types.Event, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Event + var sv []types.Event if *v == nil { - sv = make([]*types.Event, 0) + sv = make([]types.Event, 0) } else { sv = *v } @@ -10351,11 +10385,13 @@ func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyx } for { if strings.EqualFold("Event", t.Name.Local) { - var col *types.Event + var col types.Event nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEvent(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10368,23 +10404,25 @@ func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentEventListUnwrapped(v *[]*types.Event, decoder smithyxml.NodeDecoder) error { - var sv []*types.Event +func awsAwsquery_deserializeDocumentEventListUnwrapped(v *[]types.Event, decoder smithyxml.NodeDecoder) error { + var sv []types.Event if *v == nil { - sv = make([]*types.Event, 0) + sv = make([]types.Event, 0) } else { sv = *v } switch { default: - var mv *types.Event + var mv types.Event t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEvent(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10425,7 +10463,7 @@ func awsAwsquery_deserializeDocumentInstanceQuotaExceededFault(v **types.Instanc } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10473,7 +10511,7 @@ func awsAwsquery_deserializeDocumentInsufficientDBClusterCapacityFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10521,7 +10559,7 @@ func awsAwsquery_deserializeDocumentInsufficientDBInstanceCapacityFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10569,7 +10607,7 @@ func awsAwsquery_deserializeDocumentInsufficientStorageClusterCapacityFault(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10617,7 +10655,7 @@ func awsAwsquery_deserializeDocumentInvalidDBClusterSnapshotStateFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10665,7 +10703,7 @@ func awsAwsquery_deserializeDocumentInvalidDBClusterStateFault(v **types.Invalid } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10713,7 +10751,7 @@ func awsAwsquery_deserializeDocumentInvalidDBInstanceStateFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10761,7 +10799,7 @@ func awsAwsquery_deserializeDocumentInvalidDBParameterGroupStateFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10809,7 +10847,7 @@ func awsAwsquery_deserializeDocumentInvalidDBSecurityGroupStateFault(v **types.I } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10857,7 +10895,7 @@ func awsAwsquery_deserializeDocumentInvalidDBSnapshotStateFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10905,7 +10943,7 @@ func awsAwsquery_deserializeDocumentInvalidDBSubnetGroupStateFault(v **types.Inv } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10953,7 +10991,7 @@ func awsAwsquery_deserializeDocumentInvalidDBSubnetStateFault(v **types.InvalidD } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11001,7 +11039,7 @@ func awsAwsquery_deserializeDocumentInvalidRestoreFault(v **types.InvalidRestore } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11049,7 +11087,7 @@ func awsAwsquery_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, decod } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11097,7 +11135,7 @@ func awsAwsquery_deserializeDocumentInvalidVPCNetworkStateFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11145,7 +11183,7 @@ func awsAwsquery_deserializeDocumentKMSKeyNotAccessibleFault(v **types.KMSKeyNot } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11158,13 +11196,13 @@ func awsAwsquery_deserializeDocumentKMSKeyNotAccessibleFault(v **types.KMSKeyNot return nil } -func awsAwsquery_deserializeDocumentLogTypeList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLogTypeList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -11182,20 +11220,17 @@ func awsAwsquery_deserializeDocumentLogTypeList(v *[]*string, decoder smithyxml. decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -11208,17 +11243,17 @@ func awsAwsquery_deserializeDocumentLogTypeList(v *[]*string, decoder smithyxml. return nil } -func awsAwsquery_deserializeDocumentLogTypeListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentLogTypeListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -11226,14 +11261,11 @@ func awsAwsquery_deserializeDocumentLogTypeListUnwrapped(v *[]*string, decoder s return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -11281,7 +11313,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.DBInstanceClass = &xtv + sv.DBInstanceClass = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -11297,7 +11329,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -11313,7 +11345,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("LicenseModel", t.Name.Local): @@ -11329,7 +11361,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.LicenseModel = &xtv + sv.LicenseModel = ptr.String(xtv) } case strings.EqualFold("Vpc", t.Name.Local): @@ -11345,7 +11377,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Vpc = &xtv + sv.Vpc = xtv } default: @@ -11358,13 +11390,13 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl return nil } -func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsList(v *[]*types.OrderableDBInstanceOption, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsList(v *[]types.OrderableDBInstanceOption, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OrderableDBInstanceOption + var sv []types.OrderableDBInstanceOption if *v == nil { - sv = make([]*types.OrderableDBInstanceOption, 0) + sv = make([]types.OrderableDBInstanceOption, 0) } else { sv = *v } @@ -11380,11 +11412,13 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsList(v *[]*types.O } for { if strings.EqualFold("OrderableDBInstanceOption", t.Name.Local) { - var col *types.OrderableDBInstanceOption + var col types.OrderableDBInstanceOption nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOrderableDBInstanceOption(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOrderableDBInstanceOption(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11397,23 +11431,25 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsList(v *[]*types.O return nil } -func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsListUnwrapped(v *[]*types.OrderableDBInstanceOption, decoder smithyxml.NodeDecoder) error { - var sv []*types.OrderableDBInstanceOption +func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsListUnwrapped(v *[]types.OrderableDBInstanceOption, decoder smithyxml.NodeDecoder) error { + var sv []types.OrderableDBInstanceOption if *v == nil { - sv = make([]*types.OrderableDBInstanceOption, 0) + sv = make([]types.OrderableDBInstanceOption, 0) } else { sv = *v } switch { default: - var mv *types.OrderableDBInstanceOption + var mv types.OrderableDBInstanceOption t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOrderableDBInstanceOption(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOrderableDBInstanceOption(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11454,7 +11490,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.AllowedValues = &xtv + sv.AllowedValues = ptr.String(xtv) } case strings.EqualFold("ApplyMethod", t.Name.Local): @@ -11483,7 +11519,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ApplyType = &xtv + sv.ApplyType = ptr.String(xtv) } case strings.EqualFold("DataType", t.Name.Local): @@ -11499,7 +11535,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.DataType = &xtv + sv.DataType = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -11515,7 +11551,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("IsModifiable", t.Name.Local): @@ -11531,7 +11567,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsModifiable = &xtv + sv.IsModifiable = xtv } case strings.EqualFold("MinimumEngineVersion", t.Name.Local): @@ -11547,7 +11583,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.MinimumEngineVersion = &xtv + sv.MinimumEngineVersion = ptr.String(xtv) } case strings.EqualFold("ParameterName", t.Name.Local): @@ -11563,7 +11599,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ParameterName = &xtv + sv.ParameterName = ptr.String(xtv) } case strings.EqualFold("ParameterValue", t.Name.Local): @@ -11579,7 +11615,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ParameterValue = &xtv + sv.ParameterValue = ptr.String(xtv) } case strings.EqualFold("Source", t.Name.Local): @@ -11595,7 +11631,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.Source = &xtv + sv.Source = ptr.String(xtv) } default: @@ -11608,13 +11644,13 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith return nil } -func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentParametersList(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Parameter + var sv []types.Parameter if *v == nil { - sv = make([]*types.Parameter, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } @@ -11630,11 +11666,13 @@ func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decode } for { if strings.EqualFold("Parameter", t.Name.Local) { - var col *types.Parameter + var col types.Parameter nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameter(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11647,23 +11685,25 @@ func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decode return nil } -func awsAwsquery_deserializeDocumentParametersListUnwrapped(v *[]*types.Parameter, decoder smithyxml.NodeDecoder) error { - var sv []*types.Parameter +func awsAwsquery_deserializeDocumentParametersListUnwrapped(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { + var sv []types.Parameter if *v == nil { - sv = make([]*types.Parameter, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } switch { default: - var mv *types.Parameter + var mv types.Parameter t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameter(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11748,7 +11788,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa } if val != nil { xtv := string(val) - sv.Action = &xtv + sv.Action = ptr.String(xtv) } case strings.EqualFold("AutoAppliedAfterDate", t.Name.Local): @@ -11765,7 +11805,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa if err != nil { return err } - sv.AutoAppliedAfterDate = &t + sv.AutoAppliedAfterDate = ptr.Time(t) } case strings.EqualFold("CurrentApplyDate", t.Name.Local): @@ -11782,7 +11822,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa if err != nil { return err } - sv.CurrentApplyDate = &t + sv.CurrentApplyDate = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -11798,7 +11838,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("ForcedApplyDate", t.Name.Local): @@ -11815,7 +11855,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa if err != nil { return err } - sv.ForcedApplyDate = &t + sv.ForcedApplyDate = ptr.Time(t) } case strings.EqualFold("OptInStatus", t.Name.Local): @@ -11831,7 +11871,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa } if val != nil { xtv := string(val) - sv.OptInStatus = &xtv + sv.OptInStatus = ptr.String(xtv) } default: @@ -11844,13 +11884,13 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa return nil } -func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetails(v *[]*types.PendingMaintenanceAction, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetails(v *[]types.PendingMaintenanceAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PendingMaintenanceAction + var sv []types.PendingMaintenanceAction if *v == nil { - sv = make([]*types.PendingMaintenanceAction, 0) + sv = make([]types.PendingMaintenanceAction, 0) } else { sv = *v } @@ -11866,11 +11906,13 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetails(v *[]*types. } for { if strings.EqualFold("PendingMaintenanceAction", t.Name.Local) { - var col *types.PendingMaintenanceAction + var col types.PendingMaintenanceAction nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPendingMaintenanceAction(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPendingMaintenanceAction(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11883,35 +11925,37 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetails(v *[]*types. return nil } -func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetailsUnwrapped(v *[]*types.PendingMaintenanceAction, decoder smithyxml.NodeDecoder) error { - var sv []*types.PendingMaintenanceAction +func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetailsUnwrapped(v *[]types.PendingMaintenanceAction, decoder smithyxml.NodeDecoder) error { + var sv []types.PendingMaintenanceAction if *v == nil { - sv = make([]*types.PendingMaintenanceAction, 0) + sv = make([]types.PendingMaintenanceAction, 0) } else { sv = *v } switch { default: - var mv *types.PendingMaintenanceAction + var mv types.PendingMaintenanceAction t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPendingMaintenanceAction(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPendingMaintenanceAction(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentPendingMaintenanceActions(v *[]*types.ResourcePendingMaintenanceActions, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPendingMaintenanceActions(v *[]types.ResourcePendingMaintenanceActions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ResourcePendingMaintenanceActions + var sv []types.ResourcePendingMaintenanceActions if *v == nil { - sv = make([]*types.ResourcePendingMaintenanceActions, 0) + sv = make([]types.ResourcePendingMaintenanceActions, 0) } else { sv = *v } @@ -11927,11 +11971,13 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceActions(v *[]*types.Resour } for { if strings.EqualFold("ResourcePendingMaintenanceActions", t.Name.Local) { - var col *types.ResourcePendingMaintenanceActions + var col types.ResourcePendingMaintenanceActions nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11944,23 +11990,25 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceActions(v *[]*types.Resour return nil } -func awsAwsquery_deserializeDocumentPendingMaintenanceActionsUnwrapped(v *[]*types.ResourcePendingMaintenanceActions, decoder smithyxml.NodeDecoder) error { - var sv []*types.ResourcePendingMaintenanceActions +func awsAwsquery_deserializeDocumentPendingMaintenanceActionsUnwrapped(v *[]types.ResourcePendingMaintenanceActions, decoder smithyxml.NodeDecoder) error { + var sv []types.ResourcePendingMaintenanceActions if *v == nil { - sv = make([]*types.ResourcePendingMaintenanceActions, 0) + sv = make([]types.ResourcePendingMaintenanceActions, 0) } else { sv = *v } switch { default: - var mv *types.ResourcePendingMaintenanceActions + var mv types.ResourcePendingMaintenanceActions t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12035,7 +12083,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.CACertificateIdentifier = &xtv + sv.CACertificateIdentifier = ptr.String(xtv) } case strings.EqualFold("DBInstanceClass", t.Name.Local): @@ -12051,7 +12099,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.DBInstanceClass = &xtv + sv.DBInstanceClass = ptr.String(xtv) } case strings.EqualFold("DBInstanceIdentifier", t.Name.Local): @@ -12067,7 +12115,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.DBInstanceIdentifier = &xtv + sv.DBInstanceIdentifier = ptr.String(xtv) } case strings.EqualFold("DBSubnetGroupName", t.Name.Local): @@ -12083,7 +12131,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.DBSubnetGroupName = &xtv + sv.DBSubnetGroupName = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -12099,7 +12147,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("Iops", t.Name.Local): @@ -12132,7 +12180,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.LicenseModel = &xtv + sv.LicenseModel = ptr.String(xtv) } case strings.EqualFold("MasterUserPassword", t.Name.Local): @@ -12148,7 +12196,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.MasterUserPassword = &xtv + sv.MasterUserPassword = ptr.String(xtv) } case strings.EqualFold("MultiAZ", t.Name.Local): @@ -12164,7 +12212,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.MultiAZ = &xtv + sv.MultiAZ = ptr.Bool(xtv) } case strings.EqualFold("PendingCloudwatchLogsExports", t.Name.Local): @@ -12203,7 +12251,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.StorageType = &xtv + sv.StorageType = ptr.String(xtv) } default: @@ -12251,7 +12299,7 @@ func awsAwsquery_deserializeDocumentResourceNotFoundFault(v **types.ResourceNotF } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12305,7 +12353,7 @@ func awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(v **types. } if val != nil { xtv := string(val) - sv.ResourceIdentifier = &xtv + sv.ResourceIdentifier = ptr.String(xtv) } default: @@ -12353,7 +12401,7 @@ func awsAwsquery_deserializeDocumentSharedSnapshotQuotaExceededFault(v **types.S } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12401,7 +12449,7 @@ func awsAwsquery_deserializeDocumentSnapshotQuotaExceededFault(v **types.Snapsho } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12449,7 +12497,7 @@ func awsAwsquery_deserializeDocumentStorageQuotaExceededFault(v **types.StorageQ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12497,7 +12545,7 @@ func awsAwsquery_deserializeDocumentStorageTypeNotSupportedFault(v **types.Stora } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12551,7 +12599,7 @@ func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.SubnetIdentifier = &xtv + sv.SubnetIdentifier = ptr.String(xtv) } case strings.EqualFold("SubnetStatus", t.Name.Local): @@ -12567,7 +12615,7 @@ func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.SubnetStatus = &xtv + sv.SubnetStatus = ptr.String(xtv) } default: @@ -12615,7 +12663,7 @@ func awsAwsquery_deserializeDocumentSubnetAlreadyInUse(v **types.SubnetAlreadyIn } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12628,13 +12676,13 @@ func awsAwsquery_deserializeDocumentSubnetAlreadyInUse(v **types.SubnetAlreadyIn return nil } -func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSubnetList(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Subnet + var sv []types.Subnet if *v == nil { - sv = make([]*types.Subnet, 0) + sv = make([]types.Subnet, 0) } else { sv = *v } @@ -12650,11 +12698,13 @@ func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smith } for { if strings.EqualFold("Subnet", t.Name.Local) { - var col *types.Subnet + var col types.Subnet nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubnet(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSubnet(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12667,23 +12717,25 @@ func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smith return nil } -func awsAwsquery_deserializeDocumentSubnetListUnwrapped(v *[]*types.Subnet, decoder smithyxml.NodeDecoder) error { - var sv []*types.Subnet +func awsAwsquery_deserializeDocumentSubnetListUnwrapped(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error { + var sv []types.Subnet if *v == nil { - sv = make([]*types.Subnet, 0) + sv = make([]types.Subnet, 0) } else { sv = *v } switch { default: - var mv *types.Subnet + var mv types.Subnet t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubnet(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSubnet(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12724,7 +12776,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -12740,7 +12792,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -12753,13 +12805,13 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec return nil } -func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -12775,11 +12827,13 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N } for { if strings.EqualFold("Tag", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12792,23 +12846,25 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12849,7 +12905,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AutoUpgrade = &xtv + sv.AutoUpgrade = xtv } case strings.EqualFold("Description", t.Name.Local): @@ -12865,7 +12921,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -12881,7 +12937,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -12897,7 +12953,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("IsMajorVersionUpgrade", t.Name.Local): @@ -12913,7 +12969,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsMajorVersionUpgrade = &xtv + sv.IsMajorVersionUpgrade = xtv } default: @@ -12926,13 +12982,13 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod return nil } -func awsAwsquery_deserializeDocumentValidUpgradeTargetList(v *[]*types.UpgradeTarget, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentValidUpgradeTargetList(v *[]types.UpgradeTarget, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UpgradeTarget + var sv []types.UpgradeTarget if *v == nil { - sv = make([]*types.UpgradeTarget, 0) + sv = make([]types.UpgradeTarget, 0) } else { sv = *v } @@ -12948,11 +13004,13 @@ func awsAwsquery_deserializeDocumentValidUpgradeTargetList(v *[]*types.UpgradeTa } for { if strings.EqualFold("UpgradeTarget", t.Name.Local) { - var col *types.UpgradeTarget + var col types.UpgradeTarget nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUpgradeTarget(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentUpgradeTarget(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12965,23 +13023,25 @@ func awsAwsquery_deserializeDocumentValidUpgradeTargetList(v *[]*types.UpgradeTa return nil } -func awsAwsquery_deserializeDocumentValidUpgradeTargetListUnwrapped(v *[]*types.UpgradeTarget, decoder smithyxml.NodeDecoder) error { - var sv []*types.UpgradeTarget +func awsAwsquery_deserializeDocumentValidUpgradeTargetListUnwrapped(v *[]types.UpgradeTarget, decoder smithyxml.NodeDecoder) error { + var sv []types.UpgradeTarget if *v == nil { - sv = make([]*types.UpgradeTarget, 0) + sv = make([]types.UpgradeTarget, 0) } else { sv = *v } switch { default: - var mv *types.UpgradeTarget + var mv types.UpgradeTarget t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUpgradeTarget(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentUpgradeTarget(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13022,7 +13082,7 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSecu } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("VpcSecurityGroupId", t.Name.Local): @@ -13038,7 +13098,7 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSecu } if val != nil { xtv := string(val) - sv.VpcSecurityGroupId = &xtv + sv.VpcSecurityGroupId = ptr.String(xtv) } default: @@ -13051,13 +13111,13 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSecu return nil } -func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpcSecurityGroupMembership + var sv []types.VpcSecurityGroupMembership if *v == nil { - sv = make([]*types.VpcSecurityGroupMembership, 0) + sv = make([]types.VpcSecurityGroupMembership, 0) } else { sv = *v } @@ -13073,11 +13133,13 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types.V } for { if strings.EqualFold("VpcSecurityGroupMembership", t.Name.Local) { - var col *types.VpcSecurityGroupMembership + var col types.VpcSecurityGroupMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13090,23 +13152,25 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types.V return nil } -func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipListUnwrapped(v *[]*types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpcSecurityGroupMembership +func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipListUnwrapped(v *[]types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcSecurityGroupMembership if *v == nil { - sv = make([]*types.VpcSecurityGroupMembership, 0) + sv = make([]types.VpcSecurityGroupMembership, 0) } else { sv = *v } switch { default: - var mv *types.VpcSecurityGroupMembership + var mv types.VpcSecurityGroupMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13667,7 +13731,7 @@ func awsAwsquery_deserializeOpDocumentDescribeCertificatesOutput(v **DescribeCer } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -13721,7 +13785,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClusterParameterGroupsOutput(v * } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -13769,7 +13833,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClusterParametersOutput(v **Desc } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): @@ -13867,7 +13931,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClusterSnapshotsOutput(v **Descr } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -13921,7 +13985,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClustersOutput(v **DescribeDBClu } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -13975,7 +14039,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBEngineVersionsOutput(v **Describ } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -14029,7 +14093,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBInstancesOutput(v **DescribeDBIn } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -14083,7 +14147,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBSubnetGroupsOutput(v **DescribeD } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -14213,7 +14277,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEventsOutput(v **DescribeEventsOut } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -14261,7 +14325,7 @@ func awsAwsquery_deserializeOpDocumentDescribeOrderableDBInstanceOptionsOutput(v } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("OrderableDBInstanceOptions", t.Name.Local): @@ -14315,7 +14379,7 @@ func awsAwsquery_deserializeOpDocumentDescribePendingMaintenanceActionsOutput(v } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("PendingMaintenanceActions", t.Name.Local): @@ -14483,7 +14547,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterParameterGroupOutput(v **Mo } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupName = &xtv + sv.DBClusterParameterGroupName = ptr.String(xtv) } default: @@ -14715,7 +14779,7 @@ func awsAwsquery_deserializeOpDocumentResetDBClusterParameterGroupOutput(v **Res } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupName = &xtv + sv.DBClusterParameterGroupName = ptr.String(xtv) } default: diff --git a/service/docdb/go.mod b/service/docdb/go.mod index 3853ea260a3..be88bc580b6 100644 --- a/service/docdb/go.mod +++ b/service/docdb/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/docdb go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/docdb/serializers.go b/service/docdb/serializers.go index 4b8c1a74edd..bed558bb4b0 100644 --- a/service/docdb/serializers.go +++ b/service/docdb/serializers.go @@ -2324,34 +2324,28 @@ func (m *awsAwsquery_serializeOpStopDBCluster) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentAttributeValueList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAttributeValueList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("AttributeValue") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentAvailabilityZones(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAvailabilityZones(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("AvailabilityZone") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2377,18 +2371,15 @@ func awsAwsquery_serializeDocumentCloudwatchLogsExportConfiguration(v *types.Clo return nil } -func awsAwsquery_serializeDocumentEventCategoriesList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentEventCategoriesList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("EventCategory") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2412,68 +2403,56 @@ func awsAwsquery_serializeDocumentFilter(v *types.Filter, value query.Value) err return nil } -func awsAwsquery_serializeDocumentFilterList(v []*types.Filter, value query.Value) error { +func awsAwsquery_serializeDocumentFilterList(v []types.Filter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Filter") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentFilterValueList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentFilterValueList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Value") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentKeyList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentKeyList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentLogTypeList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentLogTypeList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2507,9 +2486,9 @@ func awsAwsquery_serializeDocumentParameter(v *types.Parameter, value query.Valu objectKey.String(*v.Description) } - if v.IsModifiable != nil { + if v.IsModifiable { objectKey := object.Key("IsModifiable") - objectKey.Boolean(*v.IsModifiable) + objectKey.Boolean(v.IsModifiable) } if v.MinimumEngineVersion != nil { @@ -2535,36 +2514,30 @@ func awsAwsquery_serializeDocumentParameter(v *types.Parameter, value query.Valu return nil } -func awsAwsquery_serializeDocumentParametersList(v []*types.Parameter, value query.Value) error { +func awsAwsquery_serializeDocumentParametersList(v []types.Parameter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Parameter") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentParameter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentParameter(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentSubnetIdentifierList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSubnetIdentifierList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SubnetIdentifier") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2586,36 +2559,30 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTagList(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTagList(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Tag") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentVpcSecurityGroupIdList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentVpcSecurityGroupIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("VpcSecurityGroupId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2991,9 +2958,9 @@ func awsAwsquery_serializeOpDocumentDeleteDBClusterInput(v *DeleteDBClusterInput objectKey.String(*v.FinalDBSnapshotIdentifier) } - if v.SkipFinalSnapshot != nil { + if v.SkipFinalSnapshot { objectKey := object.Key("SkipFinalSnapshot") - objectKey.Boolean(*v.SkipFinalSnapshot) + objectKey.Boolean(v.SkipFinalSnapshot) } return nil @@ -3201,14 +3168,14 @@ func awsAwsquery_serializeOpDocumentDescribeDBClusterSnapshotsInput(v *DescribeD } } - if v.IncludePublic != nil { + if v.IncludePublic { objectKey := object.Key("IncludePublic") - objectKey.Boolean(*v.IncludePublic) + objectKey.Boolean(v.IncludePublic) } - if v.IncludeShared != nil { + if v.IncludeShared { objectKey := object.Key("IncludeShared") - objectKey.Boolean(*v.IncludeShared) + objectKey.Boolean(v.IncludeShared) } if v.Marker != nil { @@ -3238,9 +3205,9 @@ func awsAwsquery_serializeOpDocumentDescribeDBEngineVersionsInput(v *DescribeDBE objectKey.String(*v.DBParameterGroupFamily) } - if v.DefaultOnly != nil { + if v.DefaultOnly { objectKey := object.Key("DefaultOnly") - objectKey.Boolean(*v.DefaultOnly) + objectKey.Boolean(v.DefaultOnly) } if v.Engine != nil { @@ -3563,9 +3530,9 @@ func awsAwsquery_serializeOpDocumentModifyDBClusterInput(v *ModifyDBClusterInput object := value.Object() _ = object - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.BackupRetentionPeriod != nil { @@ -3689,9 +3656,9 @@ func awsAwsquery_serializeOpDocumentModifyDBInstanceInput(v *ModifyDBInstanceInp object := value.Object() _ = object - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.AutoMinorVersionUpgrade != nil { @@ -3808,9 +3775,9 @@ func awsAwsquery_serializeOpDocumentResetDBClusterParameterGroupInput(v *ResetDB } } - if v.ResetAllParameters != nil { + if v.ResetAllParameters { objectKey := object.Key("ResetAllParameters") - objectKey.Boolean(*v.ResetAllParameters) + objectKey.Boolean(v.ResetAllParameters) } return nil @@ -3944,9 +3911,9 @@ func awsAwsquery_serializeOpDocumentRestoreDBClusterToPointInTimeInput(v *Restor } } - if v.UseLatestRestorableTime != nil { + if v.UseLatestRestorableTime { objectKey := object.Key("UseLatestRestorableTime") - objectKey.Boolean(*v.UseLatestRestorableTime) + objectKey.Boolean(v.UseLatestRestorableTime) } if v.VpcSecurityGroupIds != nil { diff --git a/service/docdb/types/types.go b/service/docdb/types/types.go index 9a9af676bb1..f12488af3a1 100644 --- a/service/docdb/types/types.go +++ b/service/docdb/types/types.go @@ -46,10 +46,10 @@ type Certificate struct { type CloudwatchLogsExportConfiguration struct { // The list of log types to disable. - DisableLogTypes []*string + DisableLogTypes []string // The list of log types to enable. - EnableLogTypes []*string + EnableLogTypes []string } // Detailed information about a cluster. @@ -58,11 +58,11 @@ type DBCluster struct { // Provides a list of the AWS Identity and Access Management (IAM) roles that are // associated with the cluster. IAM roles that are associated with a cluster grant // permission for the cluster to access other AWS services on your behalf. - AssociatedRoles []*DBClusterRole + AssociatedRoles []DBClusterRole // Provides the list of Amazon EC2 Availability Zones that instances in the cluster // can be created in. - AvailabilityZones []*string + AvailabilityZones []string // Specifies the number of days for which automatic snapshots are retained. BackupRetentionPeriod *int32 @@ -79,7 +79,7 @@ type DBCluster struct { DBClusterIdentifier *string // Provides the list of instances that make up the cluster. - DBClusterMembers []*DBClusterMember + DBClusterMembers []DBClusterMember // Specifies the name of the cluster parameter group for the cluster. DBClusterParameterGroup *string @@ -96,7 +96,7 @@ type DBCluster struct { // Specifies whether this cluster can be deleted. If DeletionProtection is enabled, // the cluster cannot be deleted unless it is modified and DeletionProtection is // disabled. DeletionProtection protects clusters from being accidentally deleted. - DeletionProtection *bool + DeletionProtection bool // The earliest time to which a database can be restored with point-in-time // restore. @@ -104,7 +104,7 @@ type DBCluster struct { // A list of log types that this cluster is configured to export to Amazon // CloudWatch Logs. - EnabledCloudwatchLogsExports []*string + EnabledCloudwatchLogsExports []string // Specifies the connection endpoint for the primary instance of the cluster. Endpoint *string @@ -130,7 +130,7 @@ type DBCluster struct { MasterUsername *string // Specifies whether the cluster has instances in multiple Availability Zones. - MultiAZ *bool + MultiAZ bool // Specifies the progress of the operation as a percentage. PercentProgress *string @@ -162,11 +162,11 @@ type DBCluster struct { Status *string // Specifies whether the cluster is encrypted. - StorageEncrypted *bool + StorageEncrypted bool // Provides a list of virtual private cloud (VPC) security groups that the cluster // belongs to. - VpcSecurityGroups []*VpcSecurityGroupMembership + VpcSecurityGroups []VpcSecurityGroupMembership } // Contains information about an instance that is part of a cluster. @@ -181,7 +181,7 @@ type DBClusterMember struct { // A value that is true if the cluster member is the primary instance for the // cluster and false otherwise. - IsClusterWriter *bool + IsClusterWriter bool // A value that specifies the order in which an Amazon DocumentDB replica is // promoted to the primary instance after a failure of the existing primary @@ -234,7 +234,7 @@ type DBClusterSnapshot struct { // Provides the list of Amazon EC2 Availability Zones that instances in the cluster // snapshot can be restored in. - AvailabilityZones []*string + AvailabilityZones []string // Specifies the time when the cluster was created, in Universal Coordinated Time // (UTC). @@ -264,11 +264,11 @@ type DBClusterSnapshot struct { MasterUsername *string // Specifies the percentage of the estimated data that has been transferred. - PercentProgress *int32 + PercentProgress int32 // Specifies the port that the cluster was listening on at the time of the // snapshot. - Port *int32 + Port int32 // Provides the time when the snapshot was taken, in UTC. SnapshotCreateTime *time.Time @@ -284,7 +284,7 @@ type DBClusterSnapshot struct { Status *string // Specifies whether the cluster snapshot is encrypted. - StorageEncrypted *bool + StorageEncrypted bool // Provides the virtual private cloud (VPC) ID that is associated with the cluster // snapshot. @@ -306,7 +306,7 @@ type DBClusterSnapshotAttribute struct { // that are authorized to copy or restore the manual cluster snapshot. If a value // of all is in the list, then the manual cluster snapshot is public and available // for any AWS account to copy or restore. - AttributeValues []*string + AttributeValues []string } // Detailed information about the attributes that are associated with a cluster @@ -314,7 +314,7 @@ type DBClusterSnapshotAttribute struct { type DBClusterSnapshotAttributesResult struct { // The list of attributes and values for the cluster snapshot. - DBClusterSnapshotAttributes []*DBClusterSnapshotAttribute + DBClusterSnapshotAttributes []DBClusterSnapshotAttribute // The identifier of the cluster snapshot that the attributes apply to. DBClusterSnapshotIdentifier *string @@ -340,27 +340,27 @@ type DBEngineVersion struct { // The types of logs that the database engine has available for export to Amazon // CloudWatch Logs. - ExportableLogTypes []*string + ExportableLogTypes []string // A value that indicates whether the engine version supports exporting the log // types specified by ExportableLogTypes to CloudWatch Logs. - SupportsLogExportsToCloudwatchLogs *bool + SupportsLogExportsToCloudwatchLogs bool // A list of engine versions that this database engine version can be upgraded to. - ValidUpgradeTarget []*UpgradeTarget + ValidUpgradeTarget []UpgradeTarget } // Detailed information about an instance. type DBInstance struct { // Indicates that minor version patches are applied automatically. - AutoMinorVersionUpgrade *bool + AutoMinorVersionUpgrade bool // Specifies the name of the Availability Zone that the instance is located in. AvailabilityZone *string // Specifies the number of days for which automatic snapshots are retained. - BackupRetentionPeriod *int32 + BackupRetentionPeriod int32 // The identifier of the CA certificate for this DB instance. CACertificateIdentifier *string @@ -393,7 +393,7 @@ type DBInstance struct { // A list of log types that this instance is configured to export to Amazon // CloudWatch Logs. - EnabledCloudwatchLogsExports []*string + EnabledCloudwatchLogsExports []string // Specifies the connection endpoint. Endpoint *Endpoint @@ -434,17 +434,17 @@ type DBInstance struct { // Not supported. Amazon DocumentDB does not currently support public endpoints. // The value of PubliclyAccessible is always false. - PubliclyAccessible *bool + PubliclyAccessible bool // The status of a read replica. If the instance is not a read replica, this is // blank. - StatusInfos []*DBInstanceStatusInfo + StatusInfos []DBInstanceStatusInfo // Specifies whether or not the instance is encrypted. - StorageEncrypted *bool + StorageEncrypted bool // Provides a list of VPC security group elements that the instance belongs to. - VpcSecurityGroups []*VpcSecurityGroupMembership + VpcSecurityGroups []VpcSecurityGroupMembership } // Provides a list of status information for an instance. @@ -456,7 +456,7 @@ type DBInstanceStatusInfo struct { // A Boolean value that is true if the instance is operating normally, or false if // the instance is in an error state. - Normal *bool + Normal bool // Status of the instance. For a StatusType of read replica, the values can be // replicating, error, stopped, or terminated. @@ -482,7 +482,7 @@ type DBSubnetGroup struct { SubnetGroupStatus *string // Detailed information about one or more subnets within a subnet group. - Subnets []*Subnet + Subnets []Subnet // Provides the virtual private cloud (VPC) ID of the subnet group. VpcId *string @@ -499,7 +499,7 @@ type Endpoint struct { HostedZoneId *string // Specifies the port that the database engine is listening on. - Port *int32 + Port int32 } // Contains the result of a successful invocation of the @@ -516,7 +516,7 @@ type EngineDefaults struct { Marker *string // The parameters of a particular cluster parameter group family. - Parameters []*Parameter + Parameters []Parameter } // Detailed information about an event. @@ -526,7 +526,7 @@ type Event struct { Date *time.Time // Specifies the category for the event. - EventCategories []*string + EventCategories []string // Provides the text of this event. Message *string @@ -545,7 +545,7 @@ type Event struct { type EventCategoriesMap struct { // The event categories for the specified source type. - EventCategories []*string + EventCategories []string // The source type that the returned categories belong to. SourceType *string @@ -564,14 +564,14 @@ type Filter struct { // One or more filter values. Filter values are case sensitive. // // This member is required. - Values []*string + Values []string } // The options that are available for an instance. type OrderableDBInstanceOption struct { // A list of Availability Zones for an instance. - AvailabilityZones []*AvailabilityZone + AvailabilityZones []AvailabilityZone // The instance class for an instance. DBInstanceClass *string @@ -586,7 +586,7 @@ type OrderableDBInstanceOption struct { LicenseModel *string // Indicates whether an instance is in a virtual private cloud (VPC). - Vpc *bool + Vpc bool } // Detailed information about an individual parameter. @@ -610,7 +610,7 @@ type Parameter struct { // Indicates whether (true) or not (false) the parameter can be modified. Some // parameters have security or operational implications that prevent them from // being changed. - IsModifiable *bool + IsModifiable bool // The earliest engine version to which the parameter can apply. MinimumEngineVersion *string @@ -631,11 +631,11 @@ type PendingCloudwatchLogsExports struct { // Log types that are in the process of being enabled. After they are enabled, // these log types are exported to Amazon CloudWatch Logs. - LogTypesToDisable []*string + LogTypesToDisable []string // Log types that are in the process of being deactivated. After they are // deactivated, these log types aren't exported to CloudWatch Logs. - LogTypesToEnable []*string + LogTypesToEnable []string } // Provides information about a pending maintenance action for a resource. @@ -727,7 +727,7 @@ type ResourcePendingMaintenanceActions struct { // A list that provides details about the pending maintenance actions for the // resource. - PendingMaintenanceActionDetails []*PendingMaintenanceAction + PendingMaintenanceActionDetails []PendingMaintenanceAction // The Amazon Resource Name (ARN) of the resource that has pending maintenance // actions. @@ -769,7 +769,7 @@ type UpgradeTarget struct { // A value that indicates whether the target version is applied to any source DB // instances that have AutoMinorVersionUpgrade set to true. - AutoUpgrade *bool + AutoUpgrade bool // The version of the database engine that an instance can be upgraded to. Description *string @@ -781,7 +781,7 @@ type UpgradeTarget struct { EngineVersion *string // A value that indicates whether a database engine is upgraded to a major version. - IsMajorVersionUpgrade *bool + IsMajorVersionUpgrade bool } // Used as a response element for queries on virtual private cloud (VPC) security diff --git a/service/docdb/validators.go b/service/docdb/validators.go index a2836364437..435a1a61b92 100644 --- a/service/docdb/validators.go +++ b/service/docdb/validators.go @@ -1012,13 +1012,13 @@ func validateFilter(v *types.Filter) error { } } -func validateFilterList(v []*types.Filter) error { +func validateFilterList(v []types.Filter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FilterList"} for i := range v { - if err := validateFilter(v[i]); err != nil { + if err := validateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/dynamodb/api_op_BatchGetItem.go b/service/dynamodb/api_op_BatchGetItem.go index d74579b76d6..6d9f92e6213 100644 --- a/service/dynamodb/api_op_BatchGetItem.go +++ b/service/dynamodb/api_op_BatchGetItem.go @@ -141,7 +141,7 @@ type BatchGetItemInput struct { // in the Amazon DynamoDB Developer Guide. // // This member is required. - RequestItems map[string]*types.KeysAndAttributes + RequestItems map[string]types.KeysAndAttributes // Determines the level of detail about provisioned throughput consumption that is // returned in the response: @@ -171,12 +171,12 @@ type BatchGetItemOutput struct { // throughput. // // * CapacityUnits - The total number of capacity units consumed. - ConsumedCapacity []*types.ConsumedCapacity + ConsumedCapacity []types.ConsumedCapacity // A map of table name to a list of items. Each object in Responses consists of a // table name, along with a map of attribute data consisting of the data type and // attribute value. - Responses map[string][]map[string]*types.AttributeValue + Responses map[string][]map[string]types.AttributeValue // A map of tables and their respective keys that were not processed with the // current response. The UnprocessedKeys value is in the same form as RequestItems, @@ -198,7 +198,7 @@ type BatchGetItemOutput struct { // // If there are no unprocessed keys remaining, the response contains // an empty UnprocessedKeys map. - UnprocessedKeys map[string]*types.KeysAndAttributes + UnprocessedKeys map[string]types.KeysAndAttributes // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodb/api_op_BatchWriteItem.go b/service/dynamodb/api_op_BatchWriteItem.go index f80fe694974..32253386cd3 100644 --- a/service/dynamodb/api_op_BatchWriteItem.go +++ b/service/dynamodb/api_op_BatchWriteItem.go @@ -119,7 +119,7 @@ type BatchWriteItemInput struct { // of the schema in the table's attribute definition. // // This member is required. - RequestItems map[string][]*types.WriteRequest + RequestItems map[string][]types.WriteRequest // Determines the level of detail about provisioned throughput consumption that is // returned in the response: @@ -155,7 +155,7 @@ type BatchWriteItemOutput struct { // throughput. // // * CapacityUnits - The total number of capacity units consumed. - ConsumedCapacity []*types.ConsumedCapacity + ConsumedCapacity []types.ConsumedCapacity // A list of tables that were processed by BatchWriteItem and, for each table, // information about any item collections that were affected by individual @@ -173,7 +173,7 @@ type BatchWriteItemOutput struct { // table. Use this estimate to measure whether a local secondary index is // approaching its size limit. The estimate is subject to change over time; // therefore, do not rely on the precision or accuracy of the estimate. - ItemCollectionMetrics map[string][]*types.ItemCollectionMetrics + ItemCollectionMetrics map[string][]types.ItemCollectionMetrics // A map of tables and requests against those tables that were not processed. The // UnprocessedItems value is in the same form as RequestItems, so you can provide @@ -205,7 +205,7 @@ type BatchWriteItemOutput struct { // If there are no // unprocessed items remaining, the response contains an empty UnprocessedItems // map. - UnprocessedItems map[string][]*types.WriteRequest + UnprocessedItems map[string][]types.WriteRequest // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodb/api_op_CreateGlobalTable.go b/service/dynamodb/api_op_CreateGlobalTable.go index 1d8f9a46916..ebf4f072ff8 100644 --- a/service/dynamodb/api_op_CreateGlobalTable.go +++ b/service/dynamodb/api_op_CreateGlobalTable.go @@ -81,7 +81,7 @@ type CreateGlobalTableInput struct { // The Regions where the global table needs to be created. // // This member is required. - ReplicationGroup []*types.Replica + ReplicationGroup []types.Replica } type CreateGlobalTableOutput struct { diff --git a/service/dynamodb/api_op_CreateTable.go b/service/dynamodb/api_op_CreateTable.go index f196e67ad1a..6ee51b9ab44 100644 --- a/service/dynamodb/api_op_CreateTable.go +++ b/service/dynamodb/api_op_CreateTable.go @@ -44,7 +44,7 @@ type CreateTableInput struct { // An array of attributes that describe the key schema for the table and indexes. // // This member is required. - AttributeDefinitions []*types.AttributeDefinition + AttributeDefinitions []types.AttributeDefinition // Specifies the attributes that make up the primary key for a table or an index. // The attributes in KeySchema must also be defined in the AttributeDefinitions @@ -78,7 +78,7 @@ type CreateTableInput struct { // in the Amazon DynamoDB Developer Guide. // // This member is required. - KeySchema []*types.KeySchemaElement + KeySchema []types.KeySchemaElement // The name of the table to create. // @@ -135,7 +135,7 @@ type CreateTableInput struct { // // * ProvisionedThroughput - The provisioned throughput settings for // the global secondary index, consisting of read and write capacity units. - GlobalSecondaryIndexes []*types.GlobalSecondaryIndex + GlobalSecondaryIndexes []types.GlobalSecondaryIndex // One or more local secondary indexes (the maximum is 5) to be created on the // table. Each index is scoped to a given partition key value. There is a 10 GB @@ -173,7 +173,7 @@ type CreateTableInput struct { // secondary indexes, must not exceed 100. If you project the same attribute into // two different indexes, this counts as two distinct attributes when determining // the total. - LocalSecondaryIndexes []*types.LocalSecondaryIndex + LocalSecondaryIndexes []types.LocalSecondaryIndex // Represents the provisioned throughput settings for a specified table or index. // The settings can be modified using the UpdateTable operation. If you set @@ -215,7 +215,7 @@ type CreateTableInput struct { // A list of key-value pairs to label the table. For more information, see Tagging // for DynamoDB // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html). - Tags []*types.Tag + Tags []types.Tag } // Represents the output of a CreateTable operation. diff --git a/service/dynamodb/api_op_DeleteItem.go b/service/dynamodb/api_op_DeleteItem.go index f0c3297060b..c7b990b552b 100644 --- a/service/dynamodb/api_op_DeleteItem.go +++ b/service/dynamodb/api_op_DeleteItem.go @@ -45,7 +45,7 @@ type DeleteItemInput struct { // values for both the partition key and the sort key. // // This member is required. - Key map[string]*types.AttributeValue + Key map[string]types.AttributeValue // The name of the table from which to delete the item. // @@ -81,7 +81,7 @@ type DeleteItemInput struct { // information, see Expected // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) // in the Amazon DynamoDB Developer Guide. - Expected map[string]*types.ExpectedAttributeValue + Expected map[string]types.ExpectedAttributeValue // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: @@ -122,7 +122,7 @@ type DeleteItemInput struct { // expression attribute names, see Specifying Item Attributes // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeNames map[string]*string + ExpressionAttributeNames map[string]string // One or more values that can be substituted in an expression. Use the : (colon) // character in an expression to dereference an attribute value. For example, @@ -135,7 +135,7 @@ type DeleteItemInput struct { // expression attribute values, see Condition Expressions // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeValues map[string]*types.AttributeValue + ExpressionAttributeValues map[string]types.AttributeValue // Determines the level of detail about provisioned throughput consumption that is // returned in the response: @@ -182,7 +182,7 @@ type DeleteItemOutput struct { // A map of attribute names to AttributeValue objects, representing the item as it // appeared before the DeleteItem operation. This map appears in the response only // if ReturnValues was specified as ALL_OLD in the request. - Attributes map[string]*types.AttributeValue + Attributes map[string]types.AttributeValue // The capacity units consumed by the DeleteItem operation. The data returned // includes the total provisioned throughput consumed, along with statistics for diff --git a/service/dynamodb/api_op_DescribeContributorInsights.go b/service/dynamodb/api_op_DescribeContributorInsights.go index 30afe24fdcd..189aa283dff 100644 --- a/service/dynamodb/api_op_DescribeContributorInsights.go +++ b/service/dynamodb/api_op_DescribeContributorInsights.go @@ -43,7 +43,7 @@ type DescribeContributorInsightsInput struct { type DescribeContributorInsightsOutput struct { // List of names of the associated Alpine rules. - ContributorInsightsRuleList []*string + ContributorInsightsRuleList []string // Current Status contributor insights. ContributorInsightsStatus types.ContributorInsightsStatus diff --git a/service/dynamodb/api_op_DescribeEndpoints.go b/service/dynamodb/api_op_DescribeEndpoints.go index 775e9404317..e8a2b68e49a 100644 --- a/service/dynamodb/api_op_DescribeEndpoints.go +++ b/service/dynamodb/api_op_DescribeEndpoints.go @@ -35,7 +35,7 @@ type DescribeEndpointsOutput struct { // List of endpoints. // // This member is required. - Endpoints []*types.Endpoint + Endpoints []types.Endpoint // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodb/api_op_DescribeGlobalTableSettings.go b/service/dynamodb/api_op_DescribeGlobalTableSettings.go index 0d3dc70ef8b..db2d3abf70a 100644 --- a/service/dynamodb/api_op_DescribeGlobalTableSettings.go +++ b/service/dynamodb/api_op_DescribeGlobalTableSettings.go @@ -44,7 +44,7 @@ type DescribeGlobalTableSettingsOutput struct { GlobalTableName *string // The Region-specific settings for the global table. - ReplicaSettings []*types.ReplicaSettingsDescription + ReplicaSettings []types.ReplicaSettingsDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodb/api_op_GetItem.go b/service/dynamodb/api_op_GetItem.go index 06123ab0fe4..41db28399b4 100644 --- a/service/dynamodb/api_op_GetItem.go +++ b/service/dynamodb/api_op_GetItem.go @@ -43,7 +43,7 @@ type GetItemInput struct { // values for both the partition key and the sort key. // // This member is required. - Key map[string]*types.AttributeValue + Key map[string]types.AttributeValue // The name of the table containing the requested item. // @@ -54,7 +54,7 @@ type GetItemInput struct { // information, see AttributesToGet // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) // in the Amazon DynamoDB Developer Guide. - AttributesToGet []*string + AttributesToGet []string // Determines the read consistency model: If set to true, then the operation uses // strongly consistent reads; otherwise, the operation uses eventually consistent @@ -100,7 +100,7 @@ type GetItemInput struct { // expression attribute names, see Specifying Item Attributes // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeNames map[string]*string + ExpressionAttributeNames map[string]string // A string that identifies one or more attributes to retrieve from the table. // These attributes can include scalars, sets, or elements of a JSON document. The @@ -144,7 +144,7 @@ type GetItemOutput struct { // A map of attribute names to AttributeValue objects, as specified by // ProjectionExpression. - Item map[string]*types.AttributeValue + Item map[string]types.AttributeValue // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodb/api_op_ListBackups.go b/service/dynamodb/api_op_ListBackups.go index 5dc9f4accfc..ada88fc74e1 100644 --- a/service/dynamodb/api_op_ListBackups.go +++ b/service/dynamodb/api_op_ListBackups.go @@ -73,7 +73,7 @@ type ListBackupsInput struct { type ListBackupsOutput struct { // List of BackupSummary objects. - BackupSummaries []*types.BackupSummary + BackupSummaries []types.BackupSummary // The ARN of the backup last evaluated when the current page of results was // returned, inclusive of the current page of results. This value may be specified diff --git a/service/dynamodb/api_op_ListContributorInsights.go b/service/dynamodb/api_op_ListContributorInsights.go index 636c0d0395a..4b4f3d38b9e 100644 --- a/service/dynamodb/api_op_ListContributorInsights.go +++ b/service/dynamodb/api_op_ListContributorInsights.go @@ -31,7 +31,7 @@ func (c *Client) ListContributorInsights(ctx context.Context, params *ListContri type ListContributorInsightsInput struct { // Maximum number of results to return per page. - MaxResults *int32 + MaxResults int32 // A token to for the desired page, if there is one. NextToken *string @@ -43,7 +43,7 @@ type ListContributorInsightsInput struct { type ListContributorInsightsOutput struct { // A list of ContributorInsightsSummary. - ContributorInsightsSummaries []*types.ContributorInsightsSummary + ContributorInsightsSummaries []types.ContributorInsightsSummary // A token to go to the next page if there is one. NextToken *string diff --git a/service/dynamodb/api_op_ListGlobalTables.go b/service/dynamodb/api_op_ListGlobalTables.go index a2d7c021c2e..3a04fe0a4ee 100644 --- a/service/dynamodb/api_op_ListGlobalTables.go +++ b/service/dynamodb/api_op_ListGlobalTables.go @@ -49,7 +49,7 @@ type ListGlobalTablesInput struct { type ListGlobalTablesOutput struct { // List of global table names. - GlobalTables []*types.GlobalTable + GlobalTables []types.GlobalTable // Last evaluated global table name. LastEvaluatedGlobalTableName *string diff --git a/service/dynamodb/api_op_ListTables.go b/service/dynamodb/api_op_ListTables.go index de0519c4985..3858847f394 100644 --- a/service/dynamodb/api_op_ListTables.go +++ b/service/dynamodb/api_op_ListTables.go @@ -56,7 +56,7 @@ type ListTablesOutput struct { // appears in the output, you can use this value as the ExclusiveStartTableName // parameter in a subsequent ListTables request and obtain the next page of // results. - TableNames []*string + TableNames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodb/api_op_ListTagsOfResource.go b/service/dynamodb/api_op_ListTagsOfResource.go index ef090e9d485..c4fdf3404bc 100644 --- a/service/dynamodb/api_op_ListTagsOfResource.go +++ b/service/dynamodb/api_op_ListTagsOfResource.go @@ -52,7 +52,7 @@ type ListTagsOfResourceOutput struct { NextToken *string // The tags currently associated with the Amazon DynamoDB resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodb/api_op_PutItem.go b/service/dynamodb/api_op_PutItem.go index 41ee3dd8e5f..4061486a830 100644 --- a/service/dynamodb/api_op_PutItem.go +++ b/service/dynamodb/api_op_PutItem.go @@ -105,7 +105,7 @@ type PutItemInput struct { // AttributeValue object. // // This member is required. - Item map[string]*types.AttributeValue + Item map[string]types.AttributeValue // The name of the table to contain the item. // @@ -141,7 +141,7 @@ type PutItemInput struct { // information, see Expected // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) // in the Amazon DynamoDB Developer Guide. - Expected map[string]*types.ExpectedAttributeValue + Expected map[string]types.ExpectedAttributeValue // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: @@ -182,7 +182,7 @@ type PutItemInput struct { // expression attribute names, see Specifying Item Attributes // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeNames map[string]*string + ExpressionAttributeNames map[string]string // One or more values that can be substituted in an expression. Use the : (colon) // character in an expression to dereference an attribute value. For example, @@ -195,7 +195,7 @@ type PutItemInput struct { // expression attribute values, see Condition Expressions // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeValues map[string]*types.AttributeValue + ExpressionAttributeValues map[string]types.AttributeValue // Determines the level of detail about provisioned throughput consumption that is // returned in the response: @@ -243,7 +243,7 @@ type PutItemOutput struct { // The attribute values as they appeared before the PutItem operation, but only if // ReturnValues is specified as ALL_OLD in the request. Each element consists of an // attribute name and an attribute value. - Attributes map[string]*types.AttributeValue + Attributes map[string]types.AttributeValue // The capacity units consumed by the PutItem operation. The data returned includes // the total provisioned throughput consumed, along with statistics for the table diff --git a/service/dynamodb/api_op_Query.go b/service/dynamodb/api_op_Query.go index 3be730f0166..79f61a914bd 100644 --- a/service/dynamodb/api_op_Query.go +++ b/service/dynamodb/api_op_Query.go @@ -75,7 +75,7 @@ type QueryInput struct { // information, see AttributesToGet // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) // in the Amazon DynamoDB Developer Guide. - AttributesToGet []*string + AttributesToGet []string // This is a legacy parameter. Use FilterExpression instead. For more information, // see ConditionalOperator @@ -94,7 +94,7 @@ type QueryInput struct { // value that was returned for LastEvaluatedKey in the previous operation. The data // type for ExclusiveStartKey must be String, Number, or Binary. No set data types // are allowed. - ExclusiveStartKey map[string]*types.AttributeValue + ExclusiveStartKey map[string]types.AttributeValue // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: @@ -135,7 +135,7 @@ type QueryInput struct { // expression attribute names, see Specifying Item Attributes // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeNames map[string]*string + ExpressionAttributeNames map[string]string // One or more values that can be substituted in an expression. Use the : (colon) // character in an expression to dereference an attribute value. For example, @@ -148,7 +148,7 @@ type QueryInput struct { // expression attribute values, see Specifying Conditions // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeValues map[string]*types.AttributeValue + ExpressionAttributeValues map[string]types.AttributeValue // A string that contains conditions that DynamoDB applies after the Query // operation, but before the data is returned to you. Items that do not satisfy the @@ -246,7 +246,7 @@ type QueryInput struct { // information, see KeyConditions // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.KeyConditions.html) // in the Amazon DynamoDB Developer Guide. - KeyConditions map[string]*types.Condition + KeyConditions map[string]types.Condition // The maximum number of items to evaluate (not necessarily the number of matching // items). If DynamoDB processes the number of items up to the limit while @@ -275,7 +275,7 @@ type QueryInput struct { // see QueryFilter // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.QueryFilter.html) // in the Amazon DynamoDB Developer Guide. - QueryFilter map[string]*types.Condition + QueryFilter map[string]types.Condition // Determines the level of detail about provisioned throughput consumption that is // returned in the response: @@ -365,11 +365,11 @@ type QueryOutput struct { // ScannedCount is the number of matching items before the filter was applied. If // you did not use a filter in the request, then Count and ScannedCount are the // same. - Count *int32 + Count int32 // An array of item attributes that match the query criteria. Each element in this // array consists of an attribute name and the value for that attribute. - Items []map[string]*types.AttributeValue + Items []map[string]types.AttributeValue // The primary key of the item where the operation stopped, inclusive of the // previous result set. Use this value to start a new operation, excluding this @@ -378,7 +378,7 @@ type QueryOutput struct { // LastEvaluatedKey is not empty, it does not necessarily mean that there is more // data in the result set. The only way to know when you have reached the end of // the result set is when LastEvaluatedKey is empty. - LastEvaluatedKey map[string]*types.AttributeValue + LastEvaluatedKey map[string]types.AttributeValue // The number of items evaluated, before any QueryFilter is applied. A high // ScannedCount value with few, or no, Count results indicates an inefficient Query @@ -386,7 +386,7 @@ type QueryOutput struct { // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Count) // in the Amazon DynamoDB Developer Guide. If you did not use a filter in the // request, then ScannedCount is the same as Count. - ScannedCount *int32 + ScannedCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodb/api_op_RestoreTableFromBackup.go b/service/dynamodb/api_op_RestoreTableFromBackup.go index 431dc67f49f..7c9e26ad98c 100644 --- a/service/dynamodb/api_op_RestoreTableFromBackup.go +++ b/service/dynamodb/api_op_RestoreTableFromBackup.go @@ -62,12 +62,12 @@ type RestoreTableFromBackupInput struct { // List of global secondary indexes for the restored table. The indexes provided // should match existing secondary indexes. You can choose to exclude some or all // of the indexes at the time of restore. - GlobalSecondaryIndexOverride []*types.GlobalSecondaryIndex + GlobalSecondaryIndexOverride []types.GlobalSecondaryIndex // List of local secondary indexes for the restored table. The indexes provided // should match existing secondary indexes. You can choose to exclude some or all // of the indexes at the time of restore. - LocalSecondaryIndexOverride []*types.LocalSecondaryIndex + LocalSecondaryIndexOverride []types.LocalSecondaryIndex // Provisioned throughput settings for the restored table. ProvisionedThroughputOverride *types.ProvisionedThroughput diff --git a/service/dynamodb/api_op_RestoreTableToPointInTime.go b/service/dynamodb/api_op_RestoreTableToPointInTime.go index fb934ed8515..0b028b2cc5c 100644 --- a/service/dynamodb/api_op_RestoreTableToPointInTime.go +++ b/service/dynamodb/api_op_RestoreTableToPointInTime.go @@ -78,12 +78,12 @@ type RestoreTableToPointInTimeInput struct { // List of global secondary indexes for the restored table. The indexes provided // should match existing secondary indexes. You can choose to exclude some or all // of the indexes at the time of restore. - GlobalSecondaryIndexOverride []*types.GlobalSecondaryIndex + GlobalSecondaryIndexOverride []types.GlobalSecondaryIndex // List of local secondary indexes for the restored table. The indexes provided // should match existing secondary indexes. You can choose to exclude some or all // of the indexes at the time of restore. - LocalSecondaryIndexOverride []*types.LocalSecondaryIndex + LocalSecondaryIndexOverride []types.LocalSecondaryIndex // Provisioned throughput settings for the restored table. ProvisionedThroughputOverride *types.ProvisionedThroughput diff --git a/service/dynamodb/api_op_Scan.go b/service/dynamodb/api_op_Scan.go index 1512c8e4a01..e5f572db3eb 100644 --- a/service/dynamodb/api_op_Scan.go +++ b/service/dynamodb/api_op_Scan.go @@ -62,7 +62,7 @@ type ScanInput struct { // information, see AttributesToGet // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) // in the Amazon DynamoDB Developer Guide. - AttributesToGet []*string + AttributesToGet []string // This is a legacy parameter. Use FilterExpression instead. For more information, // see ConditionalOperator @@ -93,7 +93,7 @@ type ScanInput struct { // are allowed. In a parallel scan, a Scan request that includes ExclusiveStartKey // must specify the same segment whose previous Scan returned the corresponding // value of LastEvaluatedKey. - ExclusiveStartKey map[string]*types.AttributeValue + ExclusiveStartKey map[string]types.AttributeValue // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: @@ -134,7 +134,7 @@ type ScanInput struct { // expression attribute names, see Specifying Item Attributes // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeNames map[string]*string + ExpressionAttributeNames map[string]string // One or more values that can be substituted in an expression. Use the : (colon) // character in an expression to dereference an attribute value. For example, @@ -147,7 +147,7 @@ type ScanInput struct { // expression attribute values, see Condition Expressions // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeValues map[string]*types.AttributeValue + ExpressionAttributeValues map[string]types.AttributeValue // A string that contains conditions that DynamoDB applies after the Scan // operation, but before the data is returned to you. Items that do not satisfy the @@ -207,7 +207,7 @@ type ScanInput struct { // see ScanFilter // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ScanFilter.html) // in the Amazon DynamoDB Developer Guide. - ScanFilter map[string]*types.Condition + ScanFilter map[string]types.Condition // For a parallel Scan request, Segment identifies an individual segment to be // scanned by an application worker. Segment IDs are zero-based, so the first @@ -289,11 +289,11 @@ type ScanOutput struct { // Count is the number of items returned after the filter was applied, and // ScannedCount is the number of matching items before the filter was applied. If // you did not use a filter in the request, then Count is the same as ScannedCount. - Count *int32 + Count int32 // An array of item attributes that match the scan criteria. Each element in this // array consists of an attribute name and the value for that attribute. - Items []map[string]*types.AttributeValue + Items []map[string]types.AttributeValue // The primary key of the item where the operation stopped, inclusive of the // previous result set. Use this value to start a new operation, excluding this @@ -302,7 +302,7 @@ type ScanOutput struct { // LastEvaluatedKey is not empty, it does not necessarily mean that there is more // data in the result set. The only way to know when you have reached the end of // the result set is when LastEvaluatedKey is empty. - LastEvaluatedKey map[string]*types.AttributeValue + LastEvaluatedKey map[string]types.AttributeValue // The number of items evaluated, before any ScanFilter is applied. A high // ScannedCount value with few, or no, Count results indicates an inefficient Scan @@ -310,7 +310,7 @@ type ScanOutput struct { // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Count) // in the Amazon DynamoDB Developer Guide. If you did not use a filter in the // request, then ScannedCount is the same as Count. - ScannedCount *int32 + ScannedCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodb/api_op_TagResource.go b/service/dynamodb/api_op_TagResource.go index b7c62bb2cdf..2198cbcbc21 100644 --- a/service/dynamodb/api_op_TagResource.go +++ b/service/dynamodb/api_op_TagResource.go @@ -44,7 +44,7 @@ type TagResourceInput struct { // The tags to be assigned to the Amazon DynamoDB resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/dynamodb/api_op_TransactGetItems.go b/service/dynamodb/api_op_TransactGetItems.go index 38894d59ac0..1da22484e64 100644 --- a/service/dynamodb/api_op_TransactGetItems.go +++ b/service/dynamodb/api_op_TransactGetItems.go @@ -52,7 +52,7 @@ type TransactGetItemsInput struct { // Get structure. // // This member is required. - TransactItems []*types.TransactGetItem + TransactItems []types.TransactGetItem // A value of TOTAL causes consumed capacity information to be returned, and a // value of NONE prevents that information from being returned. No other value is @@ -66,7 +66,7 @@ type TransactGetItemsOutput struct { // ConsumedCapacity objects, one for each table addressed by TransactGetItem // objects in the TransactItems parameter. These ConsumedCapacity objects report // the read-capacity units consumed by the TransactGetItems call in that table. - ConsumedCapacity []*types.ConsumedCapacity + ConsumedCapacity []types.ConsumedCapacity // An ordered array of up to 25 ItemResponse objects, each of which corresponds to // the TransactGetItem object in the same position in the TransactItems array. Each @@ -75,7 +75,7 @@ type TransactGetItemsOutput struct { // retrieved, the corresponding ItemResponse object is Null, or if the requested // item has no projected attributes, the corresponding ItemResponse object is an // empty Map. - Responses []*types.ItemResponse + Responses []types.ItemResponse // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodb/api_op_TransactWriteItems.go b/service/dynamodb/api_op_TransactWriteItems.go index cad4afaca83..6117cbecb42 100644 --- a/service/dynamodb/api_op_TransactWriteItems.go +++ b/service/dynamodb/api_op_TransactWriteItems.go @@ -92,7 +92,7 @@ type TransactWriteItemsInput struct { // and no two of them can operate on the same item. // // This member is required. - TransactItems []*types.TransactWriteItem + TransactItems []types.TransactWriteItem // Providing a ClientRequestToken makes the call to TransactWriteItems idempotent, // meaning that multiple identical calls have the same effect as one single call. @@ -140,12 +140,12 @@ type TransactWriteItemsOutput struct { // The capacity units consumed by the entire TransactWriteItems operation. The // values of the list are ordered according to the ordering of the TransactItems // request parameter. - ConsumedCapacity []*types.ConsumedCapacity + ConsumedCapacity []types.ConsumedCapacity // A list of tables that were processed by TransactWriteItems and, for each table, // information about any item collections that were affected by individual // UpdateItem, PutItem, or DeleteItem operations. - ItemCollectionMetrics map[string][]*types.ItemCollectionMetrics + ItemCollectionMetrics map[string][]types.ItemCollectionMetrics // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodb/api_op_UntagResource.go b/service/dynamodb/api_op_UntagResource.go index 180e73c28b5..d3129847877 100644 --- a/service/dynamodb/api_op_UntagResource.go +++ b/service/dynamodb/api_op_UntagResource.go @@ -42,7 +42,7 @@ type UntagResourceInput struct { // list will be removed from the DynamoDB resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/dynamodb/api_op_UpdateGlobalTable.go b/service/dynamodb/api_op_UpdateGlobalTable.go index 424bb701aa6..b489813ca49 100644 --- a/service/dynamodb/api_op_UpdateGlobalTable.go +++ b/service/dynamodb/api_op_UpdateGlobalTable.go @@ -53,7 +53,7 @@ type UpdateGlobalTableInput struct { // A list of Regions that should be added or removed from the global table. // // This member is required. - ReplicaUpdates []*types.ReplicaUpdate + ReplicaUpdates []types.ReplicaUpdate } type UpdateGlobalTableOutput struct { diff --git a/service/dynamodb/api_op_UpdateGlobalTableSettings.go b/service/dynamodb/api_op_UpdateGlobalTableSettings.go index 2950f78161d..6a6b5ee6162 100644 --- a/service/dynamodb/api_op_UpdateGlobalTableSettings.go +++ b/service/dynamodb/api_op_UpdateGlobalTableSettings.go @@ -50,7 +50,7 @@ type UpdateGlobalTableSettingsInput struct { // Represents the settings of a global secondary index for a global table that will // be modified. - GlobalTableGlobalSecondaryIndexSettingsUpdate []*types.GlobalTableGlobalSecondaryIndexSettingsUpdate + GlobalTableGlobalSecondaryIndexSettingsUpdate []types.GlobalTableGlobalSecondaryIndexSettingsUpdate // Auto scaling settings for managing provisioned write capacity for the global // table. @@ -61,7 +61,7 @@ type UpdateGlobalTableSettingsInput struct { GlobalTableProvisionedWriteCapacityUnits *int64 // Represents the settings for a global table in a Region that will be modified. - ReplicaSettingsUpdate []*types.ReplicaSettingsUpdate + ReplicaSettingsUpdate []types.ReplicaSettingsUpdate } type UpdateGlobalTableSettingsOutput struct { @@ -70,7 +70,7 @@ type UpdateGlobalTableSettingsOutput struct { GlobalTableName *string // The Region-specific settings for the global table. - ReplicaSettings []*types.ReplicaSettingsDescription + ReplicaSettings []types.ReplicaSettingsDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodb/api_op_UpdateItem.go b/service/dynamodb/api_op_UpdateItem.go index 58a536ebcf6..bed2d11c237 100644 --- a/service/dynamodb/api_op_UpdateItem.go +++ b/service/dynamodb/api_op_UpdateItem.go @@ -43,7 +43,7 @@ type UpdateItemInput struct { // provide values for both the partition key and the sort key. // // This member is required. - Key map[string]*types.AttributeValue + Key map[string]types.AttributeValue // The name of the table containing the item to update. // @@ -54,7 +54,7 @@ type UpdateItemInput struct { // see AttributeUpdates // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributeUpdates.html) // in the Amazon DynamoDB Developer Guide. - AttributeUpdates map[string]*types.AttributeValueUpdate + AttributeUpdates map[string]types.AttributeValueUpdate // A condition that must be satisfied in order for a conditional update to succeed. // An expression can contain any of the following: @@ -84,7 +84,7 @@ type UpdateItemInput struct { // information, see Expected // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) // in the Amazon DynamoDB Developer Guide. - Expected map[string]*types.ExpectedAttributeValue + Expected map[string]types.ExpectedAttributeValue // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: @@ -125,7 +125,7 @@ type UpdateItemInput struct { // about expression attribute names, see Specifying Item Attributes // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeNames map[string]*string + ExpressionAttributeNames map[string]string // One or more values that can be substituted in an expression. Use the : (colon) // character in an expression to dereference an attribute value. For example, @@ -138,7 +138,7 @@ type UpdateItemInput struct { // expression attribute values, see Condition Expressions // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeValues map[string]*types.AttributeValue + ExpressionAttributeValues map[string]types.AttributeValue // Determines the level of detail about provisioned throughput consumption that is // returned in the response: @@ -268,7 +268,7 @@ type UpdateItemOutput struct { // operation, as determined by the ReturnValues parameter. The Attributes map is // only present if ReturnValues was specified as something other than NONE in the // request. Each element represents one attribute. - Attributes map[string]*types.AttributeValue + Attributes map[string]types.AttributeValue // The capacity units consumed by the UpdateItem operation. The data returned // includes the total provisioned throughput consumed, along with statistics for diff --git a/service/dynamodb/api_op_UpdateTable.go b/service/dynamodb/api_op_UpdateTable.go index f05b6914807..423bb9898fa 100644 --- a/service/dynamodb/api_op_UpdateTable.go +++ b/service/dynamodb/api_op_UpdateTable.go @@ -57,7 +57,7 @@ type UpdateTableInput struct { // An array of attributes that describe the key schema for the table and indexes. // If you are adding a new global secondary index to the table, // AttributeDefinitions must include the key element(s) of the new index. - AttributeDefinitions []*types.AttributeDefinition + AttributeDefinitions []types.AttributeDefinition // Controls how you are charged for read and write throughput and how you manage // capacity. When switching from pay-per-request to provisioned capacity, initial @@ -93,7 +93,7 @@ type UpdateTableInput struct { // Indexes // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html) // in the Amazon DynamoDB Developer Guide. - GlobalSecondaryIndexUpdates []*types.GlobalSecondaryIndexUpdate + GlobalSecondaryIndexUpdates []types.GlobalSecondaryIndexUpdate // The new provisioned throughput settings for the specified table or index. ProvisionedThroughput *types.ProvisionedThroughput @@ -102,7 +102,7 @@ type UpdateTableInput struct { // property only applies to Version 2019.11.21 // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.V2.html) // of global tables. - ReplicaUpdates []*types.ReplicationGroupUpdate + ReplicaUpdates []types.ReplicationGroupUpdate // The new server-side encryption settings for the specified table. SSESpecification *types.SSESpecification diff --git a/service/dynamodb/api_op_UpdateTableReplicaAutoScaling.go b/service/dynamodb/api_op_UpdateTableReplicaAutoScaling.go index b8afafe5399..6b21ece4097 100644 --- a/service/dynamodb/api_op_UpdateTableReplicaAutoScaling.go +++ b/service/dynamodb/api_op_UpdateTableReplicaAutoScaling.go @@ -39,7 +39,7 @@ type UpdateTableReplicaAutoScalingInput struct { // Represents the auto scaling settings of the global secondary indexes of the // replica to be updated. - GlobalSecondaryIndexUpdates []*types.GlobalSecondaryIndexAutoScalingUpdate + GlobalSecondaryIndexUpdates []types.GlobalSecondaryIndexAutoScalingUpdate // Represents the auto scaling settings to be modified for a global table or global // secondary index. @@ -47,7 +47,7 @@ type UpdateTableReplicaAutoScalingInput struct { // Represents the auto scaling settings of replicas of the table that will be // modified. - ReplicaUpdates []*types.ReplicaAutoScalingUpdate + ReplicaUpdates []types.ReplicaAutoScalingUpdate } type UpdateTableReplicaAutoScalingOutput struct { diff --git a/service/dynamodb/deserializers.go b/service/dynamodb/deserializers.go index 2b77bded55d..2700c25a9b0 100644 --- a/service/dynamodb/deserializers.go +++ b/service/dynamodb/deserializers.go @@ -5935,7 +5935,7 @@ func awsAwsjson10_deserializeDocumentArchivalSummary(v **types.ArchivalSummary, if !ok { return fmt.Errorf("expected BackupArn to be of type string, got %T instead", value) } - sv.ArchivalBackupArn = &jtv + sv.ArchivalBackupArn = ptr.String(jtv) } case "ArchivalDateTime": @@ -5957,7 +5957,7 @@ func awsAwsjson10_deserializeDocumentArchivalSummary(v **types.ArchivalSummary, if !ok { return fmt.Errorf("expected ArchivalReason to be of type string, got %T instead", value) } - sv.ArchivalReason = &jtv + sv.ArchivalReason = ptr.String(jtv) } default: @@ -5997,7 +5997,7 @@ func awsAwsjson10_deserializeDocumentAttributeDefinition(v **types.AttributeDefi if !ok { return fmt.Errorf("expected KeySchemaAttributeName to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "AttributeType": @@ -6018,7 +6018,7 @@ func awsAwsjson10_deserializeDocumentAttributeDefinition(v **types.AttributeDefi return nil } -func awsAwsjson10_deserializeDocumentAttributeDefinitions(v *[]*types.AttributeDefinition, value interface{}) error { +func awsAwsjson10_deserializeDocumentAttributeDefinitions(v *[]types.AttributeDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6031,18 +6031,20 @@ func awsAwsjson10_deserializeDocumentAttributeDefinitions(v *[]*types.AttributeD return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttributeDefinition + var cv []types.AttributeDefinition if *v == nil { - cv = []*types.AttributeDefinition{} + cv = []types.AttributeDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.AttributeDefinition - if err := awsAwsjson10_deserializeDocumentAttributeDefinition(&col, value); err != nil { + var col types.AttributeDefinition + destAddr := &col + if err := awsAwsjson10_deserializeDocumentAttributeDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6050,7 +6052,7 @@ func awsAwsjson10_deserializeDocumentAttributeDefinitions(v *[]*types.AttributeD return nil } -func awsAwsjson10_deserializeDocumentAttributeMap(v *map[string]*types.AttributeValue, value interface{}) error { +func awsAwsjson10_deserializeDocumentAttributeMap(v *map[string]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6063,18 +6065,21 @@ func awsAwsjson10_deserializeDocumentAttributeMap(v *map[string]*types.Attribute return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AttributeValue + var mv map[string]types.AttributeValue if *v == nil { - mv = map[string]*types.AttributeValue{} + mv = map[string]types.AttributeValue{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AttributeValue - if err := awsAwsjson10_deserializeDocumentAttributeValue(&parsedVal, value); err != nil { + var parsedVal types.AttributeValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson10_deserializeDocumentAttributeValue(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -6082,7 +6087,7 @@ func awsAwsjson10_deserializeDocumentAttributeMap(v *map[string]*types.Attribute return nil } -func awsAwsjson10_deserializeDocumentAttributeNameList(v *[]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentAttributeNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6095,21 +6100,21 @@ func awsAwsjson10_deserializeDocumentAttributeNameList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6159,7 +6164,7 @@ func awsAwsjson10_deserializeDocumentAttributeValue(v **types.AttributeValue, va if !ok { return fmt.Errorf("expected BooleanAttributeValue to be of type *bool, got %T instead", value) } - sv.BOOL = &jtv + sv.BOOL = ptr.Bool(jtv) } case "BS": @@ -6183,7 +6188,7 @@ func awsAwsjson10_deserializeDocumentAttributeValue(v **types.AttributeValue, va if !ok { return fmt.Errorf("expected NumberAttributeValue to be of type string, got %T instead", value) } - sv.N = &jtv + sv.N = ptr.String(jtv) } case "NS": @@ -6197,7 +6202,7 @@ func awsAwsjson10_deserializeDocumentAttributeValue(v **types.AttributeValue, va if !ok { return fmt.Errorf("expected NullAttributeValue to be of type *bool, got %T instead", value) } - sv.NULL = &jtv + sv.NULL = ptr.Bool(jtv) } case "S": @@ -6206,7 +6211,7 @@ func awsAwsjson10_deserializeDocumentAttributeValue(v **types.AttributeValue, va if !ok { return fmt.Errorf("expected StringAttributeValue to be of type string, got %T instead", value) } - sv.S = &jtv + sv.S = ptr.String(jtv) } case "SS": @@ -6251,7 +6256,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingPolicyDescription(v **types.Auto if !ok { return fmt.Errorf("expected AutoScalingPolicyName to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } case "TargetTrackingScalingPolicyConfiguration": @@ -6268,7 +6273,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingPolicyDescription(v **types.Auto return nil } -func awsAwsjson10_deserializeDocumentAutoScalingPolicyDescriptionList(v *[]*types.AutoScalingPolicyDescription, value interface{}) error { +func awsAwsjson10_deserializeDocumentAutoScalingPolicyDescriptionList(v *[]types.AutoScalingPolicyDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6281,18 +6286,20 @@ func awsAwsjson10_deserializeDocumentAutoScalingPolicyDescriptionList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutoScalingPolicyDescription + var cv []types.AutoScalingPolicyDescription if *v == nil { - cv = []*types.AutoScalingPolicyDescription{} + cv = []types.AutoScalingPolicyDescription{} } else { cv = *v } for _, value := range shape { - var col *types.AutoScalingPolicyDescription - if err := awsAwsjson10_deserializeDocumentAutoScalingPolicyDescription(&col, value); err != nil { + var col types.AutoScalingPolicyDescription + destAddr := &col + if err := awsAwsjson10_deserializeDocumentAutoScalingPolicyDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6328,7 +6335,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingSettingsDescription(v **types.Au if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.AutoScalingDisabled = &jtv + sv.AutoScalingDisabled = ptr.Bool(jtv) } case "AutoScalingRoleArn": @@ -6337,7 +6344,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingSettingsDescription(v **types.Au if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AutoScalingRoleArn = &jtv + sv.AutoScalingRoleArn = ptr.String(jtv) } case "MaximumUnits": @@ -6350,7 +6357,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingSettingsDescription(v **types.Au if err != nil { return err } - sv.MaximumUnits = &i64 + sv.MaximumUnits = ptr.Int64(i64) } case "MinimumUnits": @@ -6363,7 +6370,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingSettingsDescription(v **types.Au if err != nil { return err } - sv.MinimumUnits = &i64 + sv.MinimumUnits = ptr.Int64(i64) } case "ScalingPolicies": @@ -6408,7 +6415,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingTargetTrackingScalingPolicyConfi if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.DisableScaleIn = &jtv + sv.DisableScaleIn = ptr.Bool(jtv) } case "ScaleInCooldown": @@ -6447,7 +6454,7 @@ func awsAwsjson10_deserializeDocumentAutoScalingTargetTrackingScalingPolicyConfi if err != nil { return err } - sv.TargetValue = &f64 + sv.TargetValue = ptr.Float64(f64) } default: @@ -6533,7 +6540,7 @@ func awsAwsjson10_deserializeDocumentBackupDetails(v **types.BackupDetails, valu if !ok { return fmt.Errorf("expected BackupArn to be of type string, got %T instead", value) } - sv.BackupArn = &jtv + sv.BackupArn = ptr.String(jtv) } case "BackupCreationDateTime": @@ -6568,7 +6575,7 @@ func awsAwsjson10_deserializeDocumentBackupDetails(v **types.BackupDetails, valu if !ok { return fmt.Errorf("expected BackupName to be of type string, got %T instead", value) } - sv.BackupName = &jtv + sv.BackupName = ptr.String(jtv) } case "BackupSizeBytes": @@ -6581,7 +6588,7 @@ func awsAwsjson10_deserializeDocumentBackupDetails(v **types.BackupDetails, valu if err != nil { return err } - sv.BackupSizeBytes = &i64 + sv.BackupSizeBytes = ptr.Int64(i64) } case "BackupStatus": @@ -6639,7 +6646,7 @@ func awsAwsjson10_deserializeDocumentBackupInUseException(v **types.BackupInUseE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6679,7 +6686,7 @@ func awsAwsjson10_deserializeDocumentBackupNotFoundException(v **types.BackupNot if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6691,7 +6698,7 @@ func awsAwsjson10_deserializeDocumentBackupNotFoundException(v **types.BackupNot return nil } -func awsAwsjson10_deserializeDocumentBackupSummaries(v *[]*types.BackupSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentBackupSummaries(v *[]types.BackupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6704,18 +6711,20 @@ func awsAwsjson10_deserializeDocumentBackupSummaries(v *[]*types.BackupSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BackupSummary + var cv []types.BackupSummary if *v == nil { - cv = []*types.BackupSummary{} + cv = []types.BackupSummary{} } else { cv = *v } for _, value := range shape { - var col *types.BackupSummary - if err := awsAwsjson10_deserializeDocumentBackupSummary(&col, value); err != nil { + var col types.BackupSummary + destAddr := &col + if err := awsAwsjson10_deserializeDocumentBackupSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6751,7 +6760,7 @@ func awsAwsjson10_deserializeDocumentBackupSummary(v **types.BackupSummary, valu if !ok { return fmt.Errorf("expected BackupArn to be of type string, got %T instead", value) } - sv.BackupArn = &jtv + sv.BackupArn = ptr.String(jtv) } case "BackupCreationDateTime": @@ -6786,7 +6795,7 @@ func awsAwsjson10_deserializeDocumentBackupSummary(v **types.BackupSummary, valu if !ok { return fmt.Errorf("expected BackupName to be of type string, got %T instead", value) } - sv.BackupName = &jtv + sv.BackupName = ptr.String(jtv) } case "BackupSizeBytes": @@ -6799,7 +6808,7 @@ func awsAwsjson10_deserializeDocumentBackupSummary(v **types.BackupSummary, valu if err != nil { return err } - sv.BackupSizeBytes = &i64 + sv.BackupSizeBytes = ptr.Int64(i64) } case "BackupStatus": @@ -6826,7 +6835,7 @@ func awsAwsjson10_deserializeDocumentBackupSummary(v **types.BackupSummary, valu if !ok { return fmt.Errorf("expected TableArn to be of type string, got %T instead", value) } - sv.TableArn = &jtv + sv.TableArn = ptr.String(jtv) } case "TableId": @@ -6835,7 +6844,7 @@ func awsAwsjson10_deserializeDocumentBackupSummary(v **types.BackupSummary, valu if !ok { return fmt.Errorf("expected TableId to be of type string, got %T instead", value) } - sv.TableId = &jtv + sv.TableId = ptr.String(jtv) } case "TableName": @@ -6844,7 +6853,7 @@ func awsAwsjson10_deserializeDocumentBackupSummary(v **types.BackupSummary, valu if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -6856,7 +6865,7 @@ func awsAwsjson10_deserializeDocumentBackupSummary(v **types.BackupSummary, valu return nil } -func awsAwsjson10_deserializeDocumentBatchGetRequestMap(v *map[string]*types.KeysAndAttributes, value interface{}) error { +func awsAwsjson10_deserializeDocumentBatchGetRequestMap(v *map[string]types.KeysAndAttributes, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6869,18 +6878,21 @@ func awsAwsjson10_deserializeDocumentBatchGetRequestMap(v *map[string]*types.Key return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.KeysAndAttributes + var mv map[string]types.KeysAndAttributes if *v == nil { - mv = map[string]*types.KeysAndAttributes{} + mv = map[string]types.KeysAndAttributes{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.KeysAndAttributes - if err := awsAwsjson10_deserializeDocumentKeysAndAttributes(&parsedVal, value); err != nil { + var parsedVal types.KeysAndAttributes + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson10_deserializeDocumentKeysAndAttributes(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -6888,7 +6900,7 @@ func awsAwsjson10_deserializeDocumentBatchGetRequestMap(v *map[string]*types.Key return nil } -func awsAwsjson10_deserializeDocumentBatchGetResponseMap(v *map[string][]map[string]*types.AttributeValue, value interface{}) error { +func awsAwsjson10_deserializeDocumentBatchGetResponseMap(v *map[string][]map[string]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6901,18 +6913,20 @@ func awsAwsjson10_deserializeDocumentBatchGetResponseMap(v *map[string][]map[str return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]map[string]*types.AttributeValue + var mv map[string][]map[string]types.AttributeValue if *v == nil { - mv = map[string][]map[string]*types.AttributeValue{} + mv = map[string][]map[string]types.AttributeValue{} } else { mv = *v } for key, value := range shape { - var parsedVal []map[string]*types.AttributeValue - if err := awsAwsjson10_deserializeDocumentItemList(&parsedVal, value); err != nil { + var parsedVal []map[string]types.AttributeValue + mapVar := parsedVal + if err := awsAwsjson10_deserializeDocumentItemList(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -6920,7 +6934,7 @@ func awsAwsjson10_deserializeDocumentBatchGetResponseMap(v *map[string][]map[str return nil } -func awsAwsjson10_deserializeDocumentBatchWriteItemRequestMap(v *map[string][]*types.WriteRequest, value interface{}) error { +func awsAwsjson10_deserializeDocumentBatchWriteItemRequestMap(v *map[string][]types.WriteRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6933,18 +6947,20 @@ func awsAwsjson10_deserializeDocumentBatchWriteItemRequestMap(v *map[string][]*t return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*types.WriteRequest + var mv map[string][]types.WriteRequest if *v == nil { - mv = map[string][]*types.WriteRequest{} + mv = map[string][]types.WriteRequest{} } else { mv = *v } for key, value := range shape { - var parsedVal []*types.WriteRequest - if err := awsAwsjson10_deserializeDocumentWriteRequests(&parsedVal, value); err != nil { + var parsedVal []types.WriteRequest + mapVar := parsedVal + if err := awsAwsjson10_deserializeDocumentWriteRequests(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -7073,7 +7089,7 @@ func awsAwsjson10_deserializeDocumentCancellationReason(v **types.CancellationRe if !ok { return fmt.Errorf("expected Code to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Item": @@ -7087,7 +7103,7 @@ func awsAwsjson10_deserializeDocumentCancellationReason(v **types.CancellationRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7099,7 +7115,7 @@ func awsAwsjson10_deserializeDocumentCancellationReason(v **types.CancellationRe return nil } -func awsAwsjson10_deserializeDocumentCancellationReasonList(v *[]*types.CancellationReason, value interface{}) error { +func awsAwsjson10_deserializeDocumentCancellationReasonList(v *[]types.CancellationReason, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7112,18 +7128,20 @@ func awsAwsjson10_deserializeDocumentCancellationReasonList(v *[]*types.Cancella return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CancellationReason + var cv []types.CancellationReason if *v == nil { - cv = []*types.CancellationReason{} + cv = []types.CancellationReason{} } else { cv = *v } for _, value := range shape { - var col *types.CancellationReason - if err := awsAwsjson10_deserializeDocumentCancellationReason(&col, value); err != nil { + var col types.CancellationReason + destAddr := &col + if err := awsAwsjson10_deserializeDocumentCancellationReason(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7163,7 +7181,7 @@ func awsAwsjson10_deserializeDocumentCapacity(v **types.Capacity, value interfac if err != nil { return err } - sv.CapacityUnits = &f64 + sv.CapacityUnits = ptr.Float64(f64) } case "ReadCapacityUnits": @@ -7176,7 +7194,7 @@ func awsAwsjson10_deserializeDocumentCapacity(v **types.Capacity, value interfac if err != nil { return err } - sv.ReadCapacityUnits = &f64 + sv.ReadCapacityUnits = ptr.Float64(f64) } case "WriteCapacityUnits": @@ -7189,7 +7207,7 @@ func awsAwsjson10_deserializeDocumentCapacity(v **types.Capacity, value interfac if err != nil { return err } - sv.WriteCapacityUnits = &f64 + sv.WriteCapacityUnits = ptr.Float64(f64) } default: @@ -7229,7 +7247,7 @@ func awsAwsjson10_deserializeDocumentConditionalCheckFailedException(v **types.C if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7273,7 +7291,7 @@ func awsAwsjson10_deserializeDocumentConsumedCapacity(v **types.ConsumedCapacity if err != nil { return err } - sv.CapacityUnits = &f64 + sv.CapacityUnits = ptr.Float64(f64) } case "GlobalSecondaryIndexes": @@ -7296,7 +7314,7 @@ func awsAwsjson10_deserializeDocumentConsumedCapacity(v **types.ConsumedCapacity if err != nil { return err } - sv.ReadCapacityUnits = &f64 + sv.ReadCapacityUnits = ptr.Float64(f64) } case "Table": @@ -7310,7 +7328,7 @@ func awsAwsjson10_deserializeDocumentConsumedCapacity(v **types.ConsumedCapacity if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "WriteCapacityUnits": @@ -7323,7 +7341,7 @@ func awsAwsjson10_deserializeDocumentConsumedCapacity(v **types.ConsumedCapacity if err != nil { return err } - sv.WriteCapacityUnits = &f64 + sv.WriteCapacityUnits = ptr.Float64(f64) } default: @@ -7335,7 +7353,7 @@ func awsAwsjson10_deserializeDocumentConsumedCapacity(v **types.ConsumedCapacity return nil } -func awsAwsjson10_deserializeDocumentConsumedCapacityMultiple(v *[]*types.ConsumedCapacity, value interface{}) error { +func awsAwsjson10_deserializeDocumentConsumedCapacityMultiple(v *[]types.ConsumedCapacity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7348,18 +7366,20 @@ func awsAwsjson10_deserializeDocumentConsumedCapacityMultiple(v *[]*types.Consum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConsumedCapacity + var cv []types.ConsumedCapacity if *v == nil { - cv = []*types.ConsumedCapacity{} + cv = []types.ConsumedCapacity{} } else { cv = *v } for _, value := range shape { - var col *types.ConsumedCapacity - if err := awsAwsjson10_deserializeDocumentConsumedCapacity(&col, value); err != nil { + var col types.ConsumedCapacity + destAddr := &col + if err := awsAwsjson10_deserializeDocumentConsumedCapacity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7440,7 +7460,7 @@ func awsAwsjson10_deserializeDocumentContinuousBackupsUnavailableException(v **t if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7452,7 +7472,7 @@ func awsAwsjson10_deserializeDocumentContinuousBackupsUnavailableException(v **t return nil } -func awsAwsjson10_deserializeDocumentContributorInsightsRuleList(v *[]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentContributorInsightsRuleList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7465,21 +7485,21 @@ func awsAwsjson10_deserializeDocumentContributorInsightsRuleList(v *[]*string, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ContributorInsightsRule to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7488,7 +7508,7 @@ func awsAwsjson10_deserializeDocumentContributorInsightsRuleList(v *[]*string, v return nil } -func awsAwsjson10_deserializeDocumentContributorInsightsSummaries(v *[]*types.ContributorInsightsSummary, value interface{}) error { +func awsAwsjson10_deserializeDocumentContributorInsightsSummaries(v *[]types.ContributorInsightsSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7501,18 +7521,20 @@ func awsAwsjson10_deserializeDocumentContributorInsightsSummaries(v *[]*types.Co return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContributorInsightsSummary + var cv []types.ContributorInsightsSummary if *v == nil { - cv = []*types.ContributorInsightsSummary{} + cv = []types.ContributorInsightsSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ContributorInsightsSummary - if err := awsAwsjson10_deserializeDocumentContributorInsightsSummary(&col, value); err != nil { + var col types.ContributorInsightsSummary + destAddr := &col + if err := awsAwsjson10_deserializeDocumentContributorInsightsSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7557,7 +7579,7 @@ func awsAwsjson10_deserializeDocumentContributorInsightsSummary(v **types.Contri if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "TableName": @@ -7566,7 +7588,7 @@ func awsAwsjson10_deserializeDocumentContributorInsightsSummary(v **types.Contri if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -7642,7 +7664,7 @@ func awsAwsjson10_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "CachePeriodInMinutes": @@ -7655,7 +7677,7 @@ func awsAwsjson10_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if err != nil { return err } - sv.CachePeriodInMinutes = &i64 + sv.CachePeriodInMinutes = i64 } default: @@ -7667,7 +7689,7 @@ func awsAwsjson10_deserializeDocumentEndpoint(v **types.Endpoint, value interfac return nil } -func awsAwsjson10_deserializeDocumentEndpoints(v *[]*types.Endpoint, value interface{}) error { +func awsAwsjson10_deserializeDocumentEndpoints(v *[]types.Endpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7680,18 +7702,20 @@ func awsAwsjson10_deserializeDocumentEndpoints(v *[]*types.Endpoint, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Endpoint + var cv []types.Endpoint if *v == nil { - cv = []*types.Endpoint{} + cv = []types.Endpoint{} } else { cv = *v } for _, value := range shape { - var col *types.Endpoint - if err := awsAwsjson10_deserializeDocumentEndpoint(&col, value); err != nil { + var col types.Endpoint + destAddr := &col + if err := awsAwsjson10_deserializeDocumentEndpoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7699,7 +7723,7 @@ func awsAwsjson10_deserializeDocumentEndpoints(v *[]*types.Endpoint, value inter return nil } -func awsAwsjson10_deserializeDocumentExpressionAttributeNameMap(v *map[string]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentExpressionAttributeNameMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7712,21 +7736,21 @@ func awsAwsjson10_deserializeDocumentExpressionAttributeNameMap(v *map[string]*s return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -7763,7 +7787,7 @@ func awsAwsjson10_deserializeDocumentFailureException(v **types.FailureException if !ok { return fmt.Errorf("expected ExceptionDescription to be of type string, got %T instead", value) } - sv.ExceptionDescription = &jtv + sv.ExceptionDescription = ptr.String(jtv) } case "ExceptionName": @@ -7772,7 +7796,7 @@ func awsAwsjson10_deserializeDocumentFailureException(v **types.FailureException if !ok { return fmt.Errorf("expected ExceptionName to be of type string, got %T instead", value) } - sv.ExceptionName = &jtv + sv.ExceptionName = ptr.String(jtv) } default: @@ -7812,7 +7836,7 @@ func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexDescription(v **types.G if !ok { return fmt.Errorf("expected Backfilling to be of type *bool, got %T instead", value) } - sv.Backfilling = &jtv + sv.Backfilling = ptr.Bool(jtv) } case "IndexArn": @@ -7821,7 +7845,7 @@ func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexDescription(v **types.G if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IndexArn = &jtv + sv.IndexArn = ptr.String(jtv) } case "IndexName": @@ -7830,7 +7854,7 @@ func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexDescription(v **types.G if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "IndexSizeBytes": @@ -7843,7 +7867,7 @@ func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexDescription(v **types.G if err != nil { return err } - sv.IndexSizeBytes = &i64 + sv.IndexSizeBytes = i64 } case "IndexStatus": @@ -7865,7 +7889,7 @@ func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexDescription(v **types.G if err != nil { return err } - sv.ItemCount = &i64 + sv.ItemCount = i64 } case "KeySchema": @@ -7892,7 +7916,7 @@ func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexDescription(v **types.G return nil } -func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexDescriptionList(v *[]*types.GlobalSecondaryIndexDescription, value interface{}) error { +func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexDescriptionList(v *[]types.GlobalSecondaryIndexDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7905,18 +7929,20 @@ func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexDescriptionList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GlobalSecondaryIndexDescription + var cv []types.GlobalSecondaryIndexDescription if *v == nil { - cv = []*types.GlobalSecondaryIndexDescription{} + cv = []types.GlobalSecondaryIndexDescription{} } else { cv = *v } for _, value := range shape { - var col *types.GlobalSecondaryIndexDescription - if err := awsAwsjson10_deserializeDocumentGlobalSecondaryIndexDescription(&col, value); err != nil { + var col types.GlobalSecondaryIndexDescription + destAddr := &col + if err := awsAwsjson10_deserializeDocumentGlobalSecondaryIndexDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7924,7 +7950,7 @@ func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexDescriptionList(v *[]*t return nil } -func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexes(v *[]*types.GlobalSecondaryIndexInfo, value interface{}) error { +func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexes(v *[]types.GlobalSecondaryIndexInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7937,18 +7963,20 @@ func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexes(v *[]*types.GlobalSe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GlobalSecondaryIndexInfo + var cv []types.GlobalSecondaryIndexInfo if *v == nil { - cv = []*types.GlobalSecondaryIndexInfo{} + cv = []types.GlobalSecondaryIndexInfo{} } else { cv = *v } for _, value := range shape { - var col *types.GlobalSecondaryIndexInfo - if err := awsAwsjson10_deserializeDocumentGlobalSecondaryIndexInfo(&col, value); err != nil { + var col types.GlobalSecondaryIndexInfo + destAddr := &col + if err := awsAwsjson10_deserializeDocumentGlobalSecondaryIndexInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7984,7 +8012,7 @@ func awsAwsjson10_deserializeDocumentGlobalSecondaryIndexInfo(v **types.GlobalSe if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "KeySchema": @@ -8039,7 +8067,7 @@ func awsAwsjson10_deserializeDocumentGlobalTable(v **types.GlobalTable, value in if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.GlobalTableName = &jtv + sv.GlobalTableName = ptr.String(jtv) } case "ReplicationGroup": @@ -8084,7 +8112,7 @@ func awsAwsjson10_deserializeDocumentGlobalTableAlreadyExistsException(v **types if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8137,7 +8165,7 @@ func awsAwsjson10_deserializeDocumentGlobalTableDescription(v **types.GlobalTabl if !ok { return fmt.Errorf("expected GlobalTableArnString to be of type string, got %T instead", value) } - sv.GlobalTableArn = &jtv + sv.GlobalTableArn = ptr.String(jtv) } case "GlobalTableName": @@ -8146,7 +8174,7 @@ func awsAwsjson10_deserializeDocumentGlobalTableDescription(v **types.GlobalTabl if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.GlobalTableName = &jtv + sv.GlobalTableName = ptr.String(jtv) } case "GlobalTableStatus": @@ -8172,7 +8200,7 @@ func awsAwsjson10_deserializeDocumentGlobalTableDescription(v **types.GlobalTabl return nil } -func awsAwsjson10_deserializeDocumentGlobalTableList(v *[]*types.GlobalTable, value interface{}) error { +func awsAwsjson10_deserializeDocumentGlobalTableList(v *[]types.GlobalTable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8185,18 +8213,20 @@ func awsAwsjson10_deserializeDocumentGlobalTableList(v *[]*types.GlobalTable, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GlobalTable + var cv []types.GlobalTable if *v == nil { - cv = []*types.GlobalTable{} + cv = []types.GlobalTable{} } else { cv = *v } for _, value := range shape { - var col *types.GlobalTable - if err := awsAwsjson10_deserializeDocumentGlobalTable(&col, value); err != nil { + var col types.GlobalTable + destAddr := &col + if err := awsAwsjson10_deserializeDocumentGlobalTable(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8232,7 +8262,7 @@ func awsAwsjson10_deserializeDocumentGlobalTableNotFoundException(v **types.Glob if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8272,7 +8302,7 @@ func awsAwsjson10_deserializeDocumentIdempotentParameterMismatchException(v **ty if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8312,7 +8342,7 @@ func awsAwsjson10_deserializeDocumentIndexNotFoundException(v **types.IndexNotFo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8352,7 +8382,7 @@ func awsAwsjson10_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8392,7 +8422,7 @@ func awsAwsjson10_deserializeDocumentInvalidEndpointException(v **types.InvalidE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8432,7 +8462,7 @@ func awsAwsjson10_deserializeDocumentInvalidRestoreTimeException(v **types.Inval if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8444,7 +8474,7 @@ func awsAwsjson10_deserializeDocumentInvalidRestoreTimeException(v **types.Inval return nil } -func awsAwsjson10_deserializeDocumentItemCollectionKeyAttributeMap(v *map[string]*types.AttributeValue, value interface{}) error { +func awsAwsjson10_deserializeDocumentItemCollectionKeyAttributeMap(v *map[string]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8457,18 +8487,21 @@ func awsAwsjson10_deserializeDocumentItemCollectionKeyAttributeMap(v *map[string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AttributeValue + var mv map[string]types.AttributeValue if *v == nil { - mv = map[string]*types.AttributeValue{} + mv = map[string]types.AttributeValue{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AttributeValue - if err := awsAwsjson10_deserializeDocumentAttributeValue(&parsedVal, value); err != nil { + var parsedVal types.AttributeValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson10_deserializeDocumentAttributeValue(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -8517,7 +8550,7 @@ func awsAwsjson10_deserializeDocumentItemCollectionMetrics(v **types.ItemCollect return nil } -func awsAwsjson10_deserializeDocumentItemCollectionMetricsMultiple(v *[]*types.ItemCollectionMetrics, value interface{}) error { +func awsAwsjson10_deserializeDocumentItemCollectionMetricsMultiple(v *[]types.ItemCollectionMetrics, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8530,18 +8563,20 @@ func awsAwsjson10_deserializeDocumentItemCollectionMetricsMultiple(v *[]*types.I return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ItemCollectionMetrics + var cv []types.ItemCollectionMetrics if *v == nil { - cv = []*types.ItemCollectionMetrics{} + cv = []types.ItemCollectionMetrics{} } else { cv = *v } for _, value := range shape { - var col *types.ItemCollectionMetrics - if err := awsAwsjson10_deserializeDocumentItemCollectionMetrics(&col, value); err != nil { + var col types.ItemCollectionMetrics + destAddr := &col + if err := awsAwsjson10_deserializeDocumentItemCollectionMetrics(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8549,7 +8584,7 @@ func awsAwsjson10_deserializeDocumentItemCollectionMetricsMultiple(v *[]*types.I return nil } -func awsAwsjson10_deserializeDocumentItemCollectionMetricsPerTable(v *map[string][]*types.ItemCollectionMetrics, value interface{}) error { +func awsAwsjson10_deserializeDocumentItemCollectionMetricsPerTable(v *map[string][]types.ItemCollectionMetrics, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8562,18 +8597,20 @@ func awsAwsjson10_deserializeDocumentItemCollectionMetricsPerTable(v *map[string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*types.ItemCollectionMetrics + var mv map[string][]types.ItemCollectionMetrics if *v == nil { - mv = map[string][]*types.ItemCollectionMetrics{} + mv = map[string][]types.ItemCollectionMetrics{} } else { mv = *v } for key, value := range shape { - var parsedVal []*types.ItemCollectionMetrics - if err := awsAwsjson10_deserializeDocumentItemCollectionMetricsMultiple(&parsedVal, value); err != nil { + var parsedVal []types.ItemCollectionMetrics + mapVar := parsedVal + if err := awsAwsjson10_deserializeDocumentItemCollectionMetricsMultiple(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -8581,7 +8618,7 @@ func awsAwsjson10_deserializeDocumentItemCollectionMetricsPerTable(v *map[string return nil } -func awsAwsjson10_deserializeDocumentItemCollectionSizeEstimateRange(v *[]*float64, value interface{}) error { +func awsAwsjson10_deserializeDocumentItemCollectionSizeEstimateRange(v *[]float64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8594,15 +8631,15 @@ func awsAwsjson10_deserializeDocumentItemCollectionSizeEstimateRange(v *[]*float return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*float64 + var cv []float64 if *v == nil { - cv = []*float64{} + cv = []float64{} } else { cv = *v } for _, value := range shape { - var col *float64 + var col float64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -8612,7 +8649,7 @@ func awsAwsjson10_deserializeDocumentItemCollectionSizeEstimateRange(v *[]*float if err != nil { return err } - col = &f64 + col = f64 } cv = append(cv, col) @@ -8649,7 +8686,7 @@ func awsAwsjson10_deserializeDocumentItemCollectionSizeLimitExceededException(v if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8661,7 +8698,7 @@ func awsAwsjson10_deserializeDocumentItemCollectionSizeLimitExceededException(v return nil } -func awsAwsjson10_deserializeDocumentItemList(v *[]map[string]*types.AttributeValue, value interface{}) error { +func awsAwsjson10_deserializeDocumentItemList(v *[]map[string]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8674,15 +8711,15 @@ func awsAwsjson10_deserializeDocumentItemList(v *[]map[string]*types.AttributeVa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []map[string]*types.AttributeValue + var cv []map[string]types.AttributeValue if *v == nil { - cv = []map[string]*types.AttributeValue{} + cv = []map[string]types.AttributeValue{} } else { cv = *v } for _, value := range shape { - var col map[string]*types.AttributeValue + var col map[string]types.AttributeValue if err := awsAwsjson10_deserializeDocumentAttributeMap(&col, value); err != nil { return err } @@ -8729,7 +8766,7 @@ func awsAwsjson10_deserializeDocumentItemResponse(v **types.ItemResponse, value return nil } -func awsAwsjson10_deserializeDocumentItemResponseList(v *[]*types.ItemResponse, value interface{}) error { +func awsAwsjson10_deserializeDocumentItemResponseList(v *[]types.ItemResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8742,18 +8779,20 @@ func awsAwsjson10_deserializeDocumentItemResponseList(v *[]*types.ItemResponse, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ItemResponse + var cv []types.ItemResponse if *v == nil { - cv = []*types.ItemResponse{} + cv = []types.ItemResponse{} } else { cv = *v } for _, value := range shape { - var col *types.ItemResponse - if err := awsAwsjson10_deserializeDocumentItemResponse(&col, value); err != nil { + var col types.ItemResponse + destAddr := &col + if err := awsAwsjson10_deserializeDocumentItemResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8761,7 +8800,7 @@ func awsAwsjson10_deserializeDocumentItemResponseList(v *[]*types.ItemResponse, return nil } -func awsAwsjson10_deserializeDocumentKey(v *map[string]*types.AttributeValue, value interface{}) error { +func awsAwsjson10_deserializeDocumentKey(v *map[string]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8774,18 +8813,21 @@ func awsAwsjson10_deserializeDocumentKey(v *map[string]*types.AttributeValue, va return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AttributeValue + var mv map[string]types.AttributeValue if *v == nil { - mv = map[string]*types.AttributeValue{} + mv = map[string]types.AttributeValue{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AttributeValue - if err := awsAwsjson10_deserializeDocumentAttributeValue(&parsedVal, value); err != nil { + var parsedVal types.AttributeValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson10_deserializeDocumentAttributeValue(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -8793,7 +8835,7 @@ func awsAwsjson10_deserializeDocumentKey(v *map[string]*types.AttributeValue, va return nil } -func awsAwsjson10_deserializeDocumentKeyList(v *[]map[string]*types.AttributeValue, value interface{}) error { +func awsAwsjson10_deserializeDocumentKeyList(v *[]map[string]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8806,15 +8848,15 @@ func awsAwsjson10_deserializeDocumentKeyList(v *[]map[string]*types.AttributeVal return fmt.Errorf("unexpected JSON type %v", value) } - var cv []map[string]*types.AttributeValue + var cv []map[string]types.AttributeValue if *v == nil { - cv = []map[string]*types.AttributeValue{} + cv = []map[string]types.AttributeValue{} } else { cv = *v } for _, value := range shape { - var col map[string]*types.AttributeValue + var col map[string]types.AttributeValue if err := awsAwsjson10_deserializeDocumentKey(&col, value); err != nil { return err } @@ -8858,7 +8900,7 @@ func awsAwsjson10_deserializeDocumentKeysAndAttributes(v **types.KeysAndAttribut if !ok { return fmt.Errorf("expected ConsistentRead to be of type *bool, got %T instead", value) } - sv.ConsistentRead = &jtv + sv.ConsistentRead = ptr.Bool(jtv) } case "ExpressionAttributeNames": @@ -8877,7 +8919,7 @@ func awsAwsjson10_deserializeDocumentKeysAndAttributes(v **types.KeysAndAttribut if !ok { return fmt.Errorf("expected ProjectionExpression to be of type string, got %T instead", value) } - sv.ProjectionExpression = &jtv + sv.ProjectionExpression = ptr.String(jtv) } default: @@ -8889,7 +8931,7 @@ func awsAwsjson10_deserializeDocumentKeysAndAttributes(v **types.KeysAndAttribut return nil } -func awsAwsjson10_deserializeDocumentKeySchema(v *[]*types.KeySchemaElement, value interface{}) error { +func awsAwsjson10_deserializeDocumentKeySchema(v *[]types.KeySchemaElement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8902,18 +8944,20 @@ func awsAwsjson10_deserializeDocumentKeySchema(v *[]*types.KeySchemaElement, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeySchemaElement + var cv []types.KeySchemaElement if *v == nil { - cv = []*types.KeySchemaElement{} + cv = []types.KeySchemaElement{} } else { cv = *v } for _, value := range shape { - var col *types.KeySchemaElement - if err := awsAwsjson10_deserializeDocumentKeySchemaElement(&col, value); err != nil { + var col types.KeySchemaElement + destAddr := &col + if err := awsAwsjson10_deserializeDocumentKeySchemaElement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8949,7 +8993,7 @@ func awsAwsjson10_deserializeDocumentKeySchemaElement(v **types.KeySchemaElement if !ok { return fmt.Errorf("expected KeySchemaAttributeName to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "KeyType": @@ -8998,7 +9042,7 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9010,7 +9054,7 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson10_deserializeDocumentListAttributeValue(v *[]*types.AttributeValue, value interface{}) error { +func awsAwsjson10_deserializeDocumentListAttributeValue(v *[]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9023,18 +9067,20 @@ func awsAwsjson10_deserializeDocumentListAttributeValue(v *[]*types.AttributeVal return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttributeValue + var cv []types.AttributeValue if *v == nil { - cv = []*types.AttributeValue{} + cv = []types.AttributeValue{} } else { cv = *v } for _, value := range shape { - var col *types.AttributeValue - if err := awsAwsjson10_deserializeDocumentAttributeValue(&col, value); err != nil { + var col types.AttributeValue + destAddr := &col + if err := awsAwsjson10_deserializeDocumentAttributeValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9070,7 +9116,7 @@ func awsAwsjson10_deserializeDocumentLocalSecondaryIndexDescription(v **types.Lo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IndexArn = &jtv + sv.IndexArn = ptr.String(jtv) } case "IndexName": @@ -9079,7 +9125,7 @@ func awsAwsjson10_deserializeDocumentLocalSecondaryIndexDescription(v **types.Lo if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "IndexSizeBytes": @@ -9092,7 +9138,7 @@ func awsAwsjson10_deserializeDocumentLocalSecondaryIndexDescription(v **types.Lo if err != nil { return err } - sv.IndexSizeBytes = &i64 + sv.IndexSizeBytes = i64 } case "ItemCount": @@ -9105,7 +9151,7 @@ func awsAwsjson10_deserializeDocumentLocalSecondaryIndexDescription(v **types.Lo if err != nil { return err } - sv.ItemCount = &i64 + sv.ItemCount = i64 } case "KeySchema": @@ -9127,7 +9173,7 @@ func awsAwsjson10_deserializeDocumentLocalSecondaryIndexDescription(v **types.Lo return nil } -func awsAwsjson10_deserializeDocumentLocalSecondaryIndexDescriptionList(v *[]*types.LocalSecondaryIndexDescription, value interface{}) error { +func awsAwsjson10_deserializeDocumentLocalSecondaryIndexDescriptionList(v *[]types.LocalSecondaryIndexDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9140,18 +9186,20 @@ func awsAwsjson10_deserializeDocumentLocalSecondaryIndexDescriptionList(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LocalSecondaryIndexDescription + var cv []types.LocalSecondaryIndexDescription if *v == nil { - cv = []*types.LocalSecondaryIndexDescription{} + cv = []types.LocalSecondaryIndexDescription{} } else { cv = *v } for _, value := range shape { - var col *types.LocalSecondaryIndexDescription - if err := awsAwsjson10_deserializeDocumentLocalSecondaryIndexDescription(&col, value); err != nil { + var col types.LocalSecondaryIndexDescription + destAddr := &col + if err := awsAwsjson10_deserializeDocumentLocalSecondaryIndexDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9159,7 +9207,7 @@ func awsAwsjson10_deserializeDocumentLocalSecondaryIndexDescriptionList(v *[]*ty return nil } -func awsAwsjson10_deserializeDocumentLocalSecondaryIndexes(v *[]*types.LocalSecondaryIndexInfo, value interface{}) error { +func awsAwsjson10_deserializeDocumentLocalSecondaryIndexes(v *[]types.LocalSecondaryIndexInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9172,18 +9220,20 @@ func awsAwsjson10_deserializeDocumentLocalSecondaryIndexes(v *[]*types.LocalSeco return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LocalSecondaryIndexInfo + var cv []types.LocalSecondaryIndexInfo if *v == nil { - cv = []*types.LocalSecondaryIndexInfo{} + cv = []types.LocalSecondaryIndexInfo{} } else { cv = *v } for _, value := range shape { - var col *types.LocalSecondaryIndexInfo - if err := awsAwsjson10_deserializeDocumentLocalSecondaryIndexInfo(&col, value); err != nil { + var col types.LocalSecondaryIndexInfo + destAddr := &col + if err := awsAwsjson10_deserializeDocumentLocalSecondaryIndexInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9219,7 +9269,7 @@ func awsAwsjson10_deserializeDocumentLocalSecondaryIndexInfo(v **types.LocalSeco if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "KeySchema": @@ -9241,7 +9291,7 @@ func awsAwsjson10_deserializeDocumentLocalSecondaryIndexInfo(v **types.LocalSeco return nil } -func awsAwsjson10_deserializeDocumentMapAttributeValue(v *map[string]*types.AttributeValue, value interface{}) error { +func awsAwsjson10_deserializeDocumentMapAttributeValue(v *map[string]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9254,18 +9304,21 @@ func awsAwsjson10_deserializeDocumentMapAttributeValue(v *map[string]*types.Attr return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AttributeValue + var mv map[string]types.AttributeValue if *v == nil { - mv = map[string]*types.AttributeValue{} + mv = map[string]types.AttributeValue{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AttributeValue - if err := awsAwsjson10_deserializeDocumentAttributeValue(&parsedVal, value); err != nil { + var parsedVal types.AttributeValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson10_deserializeDocumentAttributeValue(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -9273,7 +9326,7 @@ func awsAwsjson10_deserializeDocumentMapAttributeValue(v *map[string]*types.Attr return nil } -func awsAwsjson10_deserializeDocumentNonKeyAttributeNameList(v *[]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentNonKeyAttributeNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9286,21 +9339,21 @@ func awsAwsjson10_deserializeDocumentNonKeyAttributeNameList(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonKeyAttributeName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9309,7 +9362,7 @@ func awsAwsjson10_deserializeDocumentNonKeyAttributeNameList(v *[]*string, value return nil } -func awsAwsjson10_deserializeDocumentNumberSetAttributeValue(v *[]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentNumberSetAttributeValue(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9322,21 +9375,21 @@ func awsAwsjson10_deserializeDocumentNumberSetAttributeValue(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NumberAttributeValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9439,7 +9492,7 @@ func awsAwsjson10_deserializeDocumentPointInTimeRecoveryUnavailableException(v * if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9528,7 +9581,7 @@ func awsAwsjson10_deserializeDocumentProvisionedThroughput(v **types.Provisioned if err != nil { return err } - sv.ReadCapacityUnits = &i64 + sv.ReadCapacityUnits = ptr.Int64(i64) } case "WriteCapacityUnits": @@ -9541,7 +9594,7 @@ func awsAwsjson10_deserializeDocumentProvisionedThroughput(v **types.Provisioned if err != nil { return err } - sv.WriteCapacityUnits = &i64 + sv.WriteCapacityUnits = ptr.Int64(i64) } default: @@ -9611,7 +9664,7 @@ func awsAwsjson10_deserializeDocumentProvisionedThroughputDescription(v **types. if err != nil { return err } - sv.NumberOfDecreasesToday = &i64 + sv.NumberOfDecreasesToday = ptr.Int64(i64) } case "ReadCapacityUnits": @@ -9624,7 +9677,7 @@ func awsAwsjson10_deserializeDocumentProvisionedThroughputDescription(v **types. if err != nil { return err } - sv.ReadCapacityUnits = &i64 + sv.ReadCapacityUnits = ptr.Int64(i64) } case "WriteCapacityUnits": @@ -9637,7 +9690,7 @@ func awsAwsjson10_deserializeDocumentProvisionedThroughputDescription(v **types. if err != nil { return err } - sv.WriteCapacityUnits = &i64 + sv.WriteCapacityUnits = ptr.Int64(i64) } default: @@ -9677,7 +9730,7 @@ func awsAwsjson10_deserializeDocumentProvisionedThroughputExceededException(v ** if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9721,7 +9774,7 @@ func awsAwsjson10_deserializeDocumentProvisionedThroughputOverride(v **types.Pro if err != nil { return err } - sv.ReadCapacityUnits = &i64 + sv.ReadCapacityUnits = ptr.Int64(i64) } default: @@ -9733,7 +9786,7 @@ func awsAwsjson10_deserializeDocumentProvisionedThroughputOverride(v **types.Pro return nil } -func awsAwsjson10_deserializeDocumentPutItemInputAttributeMap(v *map[string]*types.AttributeValue, value interface{}) error { +func awsAwsjson10_deserializeDocumentPutItemInputAttributeMap(v *map[string]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9746,18 +9799,21 @@ func awsAwsjson10_deserializeDocumentPutItemInputAttributeMap(v *map[string]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AttributeValue + var mv map[string]types.AttributeValue if *v == nil { - mv = map[string]*types.AttributeValue{} + mv = map[string]types.AttributeValue{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AttributeValue - if err := awsAwsjson10_deserializeDocumentAttributeValue(&parsedVal, value); err != nil { + var parsedVal types.AttributeValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson10_deserializeDocumentAttributeValue(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -9829,7 +9885,7 @@ func awsAwsjson10_deserializeDocumentReplica(v **types.Replica, value interface{ if !ok { return fmt.Errorf("expected RegionName to be of type string, got %T instead", value) } - sv.RegionName = &jtv + sv.RegionName = ptr.String(jtv) } default: @@ -9869,7 +9925,7 @@ func awsAwsjson10_deserializeDocumentReplicaAlreadyExistsException(v **types.Rep if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9914,7 +9970,7 @@ func awsAwsjson10_deserializeDocumentReplicaAutoScalingDescription(v **types.Rep if !ok { return fmt.Errorf("expected RegionName to be of type string, got %T instead", value) } - sv.RegionName = &jtv + sv.RegionName = ptr.String(jtv) } case "ReplicaProvisionedReadCapacityAutoScalingSettings": @@ -9945,7 +10001,7 @@ func awsAwsjson10_deserializeDocumentReplicaAutoScalingDescription(v **types.Rep return nil } -func awsAwsjson10_deserializeDocumentReplicaAutoScalingDescriptionList(v *[]*types.ReplicaAutoScalingDescription, value interface{}) error { +func awsAwsjson10_deserializeDocumentReplicaAutoScalingDescriptionList(v *[]types.ReplicaAutoScalingDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9958,18 +10014,20 @@ func awsAwsjson10_deserializeDocumentReplicaAutoScalingDescriptionList(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicaAutoScalingDescription + var cv []types.ReplicaAutoScalingDescription if *v == nil { - cv = []*types.ReplicaAutoScalingDescription{} + cv = []types.ReplicaAutoScalingDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicaAutoScalingDescription - if err := awsAwsjson10_deserializeDocumentReplicaAutoScalingDescription(&col, value); err != nil { + var col types.ReplicaAutoScalingDescription + destAddr := &col + if err := awsAwsjson10_deserializeDocumentReplicaAutoScalingDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10010,7 +10068,7 @@ func awsAwsjson10_deserializeDocumentReplicaDescription(v **types.ReplicaDescrip if !ok { return fmt.Errorf("expected KMSMasterKeyId to be of type string, got %T instead", value) } - sv.KMSMasterKeyId = &jtv + sv.KMSMasterKeyId = ptr.String(jtv) } case "ProvisionedThroughputOverride": @@ -10024,7 +10082,7 @@ func awsAwsjson10_deserializeDocumentReplicaDescription(v **types.ReplicaDescrip if !ok { return fmt.Errorf("expected RegionName to be of type string, got %T instead", value) } - sv.RegionName = &jtv + sv.RegionName = ptr.String(jtv) } case "ReplicaInaccessibleDateTime": @@ -10055,7 +10113,7 @@ func awsAwsjson10_deserializeDocumentReplicaDescription(v **types.ReplicaDescrip if !ok { return fmt.Errorf("expected ReplicaStatusDescription to be of type string, got %T instead", value) } - sv.ReplicaStatusDescription = &jtv + sv.ReplicaStatusDescription = ptr.String(jtv) } case "ReplicaStatusPercentProgress": @@ -10064,7 +10122,7 @@ func awsAwsjson10_deserializeDocumentReplicaDescription(v **types.ReplicaDescrip if !ok { return fmt.Errorf("expected ReplicaStatusPercentProgress to be of type string, got %T instead", value) } - sv.ReplicaStatusPercentProgress = &jtv + sv.ReplicaStatusPercentProgress = ptr.String(jtv) } default: @@ -10076,7 +10134,7 @@ func awsAwsjson10_deserializeDocumentReplicaDescription(v **types.ReplicaDescrip return nil } -func awsAwsjson10_deserializeDocumentReplicaDescriptionList(v *[]*types.ReplicaDescription, value interface{}) error { +func awsAwsjson10_deserializeDocumentReplicaDescriptionList(v *[]types.ReplicaDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10089,18 +10147,20 @@ func awsAwsjson10_deserializeDocumentReplicaDescriptionList(v *[]*types.ReplicaD return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicaDescription + var cv []types.ReplicaDescription if *v == nil { - cv = []*types.ReplicaDescription{} + cv = []types.ReplicaDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicaDescription - if err := awsAwsjson10_deserializeDocumentReplicaDescription(&col, value); err != nil { + var col types.ReplicaDescription + destAddr := &col + if err := awsAwsjson10_deserializeDocumentReplicaDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10136,7 +10196,7 @@ func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexAutoScalingDescr if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "IndexStatus": @@ -10167,7 +10227,7 @@ func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexAutoScalingDescr return nil } -func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexAutoScalingDescriptionList(v *[]*types.ReplicaGlobalSecondaryIndexAutoScalingDescription, value interface{}) error { +func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexAutoScalingDescriptionList(v *[]types.ReplicaGlobalSecondaryIndexAutoScalingDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10180,18 +10240,20 @@ func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexAutoScalingDescr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicaGlobalSecondaryIndexAutoScalingDescription + var cv []types.ReplicaGlobalSecondaryIndexAutoScalingDescription if *v == nil { - cv = []*types.ReplicaGlobalSecondaryIndexAutoScalingDescription{} + cv = []types.ReplicaGlobalSecondaryIndexAutoScalingDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicaGlobalSecondaryIndexAutoScalingDescription - if err := awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexAutoScalingDescription(&col, value); err != nil { + var col types.ReplicaGlobalSecondaryIndexAutoScalingDescription + destAddr := &col + if err := awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexAutoScalingDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10227,7 +10289,7 @@ func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexDescription(v ** if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "ProvisionedThroughputOverride": @@ -10244,7 +10306,7 @@ func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexDescription(v ** return nil } -func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexDescriptionList(v *[]*types.ReplicaGlobalSecondaryIndexDescription, value interface{}) error { +func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexDescriptionList(v *[]types.ReplicaGlobalSecondaryIndexDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10257,18 +10319,20 @@ func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexDescriptionList( return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicaGlobalSecondaryIndexDescription + var cv []types.ReplicaGlobalSecondaryIndexDescription if *v == nil { - cv = []*types.ReplicaGlobalSecondaryIndexDescription{} + cv = []types.ReplicaGlobalSecondaryIndexDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicaGlobalSecondaryIndexDescription - if err := awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexDescription(&col, value); err != nil { + var col types.ReplicaGlobalSecondaryIndexDescription + destAddr := &col + if err := awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10304,7 +10368,7 @@ func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexSettingsDescript if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "IndexStatus": @@ -10331,7 +10395,7 @@ func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexSettingsDescript if err != nil { return err } - sv.ProvisionedReadCapacityUnits = &i64 + sv.ProvisionedReadCapacityUnits = ptr.Int64(i64) } case "ProvisionedWriteCapacityAutoScalingSettings": @@ -10349,7 +10413,7 @@ func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexSettingsDescript if err != nil { return err } - sv.ProvisionedWriteCapacityUnits = &i64 + sv.ProvisionedWriteCapacityUnits = ptr.Int64(i64) } default: @@ -10361,7 +10425,7 @@ func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexSettingsDescript return nil } -func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexSettingsDescriptionList(v *[]*types.ReplicaGlobalSecondaryIndexSettingsDescription, value interface{}) error { +func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexSettingsDescriptionList(v *[]types.ReplicaGlobalSecondaryIndexSettingsDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10374,18 +10438,20 @@ func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexSettingsDescript return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicaGlobalSecondaryIndexSettingsDescription + var cv []types.ReplicaGlobalSecondaryIndexSettingsDescription if *v == nil { - cv = []*types.ReplicaGlobalSecondaryIndexSettingsDescription{} + cv = []types.ReplicaGlobalSecondaryIndexSettingsDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicaGlobalSecondaryIndexSettingsDescription - if err := awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexSettingsDescription(&col, value); err != nil { + var col types.ReplicaGlobalSecondaryIndexSettingsDescription + destAddr := &col + if err := awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexSettingsDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10393,7 +10459,7 @@ func awsAwsjson10_deserializeDocumentReplicaGlobalSecondaryIndexSettingsDescript return nil } -func awsAwsjson10_deserializeDocumentReplicaList(v *[]*types.Replica, value interface{}) error { +func awsAwsjson10_deserializeDocumentReplicaList(v *[]types.Replica, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10406,18 +10472,20 @@ func awsAwsjson10_deserializeDocumentReplicaList(v *[]*types.Replica, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Replica + var cv []types.Replica if *v == nil { - cv = []*types.Replica{} + cv = []types.Replica{} } else { cv = *v } for _, value := range shape { - var col *types.Replica - if err := awsAwsjson10_deserializeDocumentReplica(&col, value); err != nil { + var col types.Replica + destAddr := &col + if err := awsAwsjson10_deserializeDocumentReplica(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10453,7 +10521,7 @@ func awsAwsjson10_deserializeDocumentReplicaNotFoundException(v **types.ReplicaN if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10493,7 +10561,7 @@ func awsAwsjson10_deserializeDocumentReplicaSettingsDescription(v **types.Replic if !ok { return fmt.Errorf("expected RegionName to be of type string, got %T instead", value) } - sv.RegionName = &jtv + sv.RegionName = ptr.String(jtv) } case "ReplicaBillingModeSummary": @@ -10521,7 +10589,7 @@ func awsAwsjson10_deserializeDocumentReplicaSettingsDescription(v **types.Replic if err != nil { return err } - sv.ReplicaProvisionedReadCapacityUnits = &i64 + sv.ReplicaProvisionedReadCapacityUnits = ptr.Int64(i64) } case "ReplicaProvisionedWriteCapacityAutoScalingSettings": @@ -10539,7 +10607,7 @@ func awsAwsjson10_deserializeDocumentReplicaSettingsDescription(v **types.Replic if err != nil { return err } - sv.ReplicaProvisionedWriteCapacityUnits = &i64 + sv.ReplicaProvisionedWriteCapacityUnits = ptr.Int64(i64) } case "ReplicaStatus": @@ -10560,7 +10628,7 @@ func awsAwsjson10_deserializeDocumentReplicaSettingsDescription(v **types.Replic return nil } -func awsAwsjson10_deserializeDocumentReplicaSettingsDescriptionList(v *[]*types.ReplicaSettingsDescription, value interface{}) error { +func awsAwsjson10_deserializeDocumentReplicaSettingsDescriptionList(v *[]types.ReplicaSettingsDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10573,18 +10641,20 @@ func awsAwsjson10_deserializeDocumentReplicaSettingsDescriptionList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicaSettingsDescription + var cv []types.ReplicaSettingsDescription if *v == nil { - cv = []*types.ReplicaSettingsDescription{} + cv = []types.ReplicaSettingsDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicaSettingsDescription - if err := awsAwsjson10_deserializeDocumentReplicaSettingsDescription(&col, value); err != nil { + var col types.ReplicaSettingsDescription + destAddr := &col + if err := awsAwsjson10_deserializeDocumentReplicaSettingsDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10620,7 +10690,7 @@ func awsAwsjson10_deserializeDocumentRequestLimitExceeded(v **types.RequestLimit if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10660,7 +10730,7 @@ func awsAwsjson10_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10700,7 +10770,7 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10753,7 +10823,7 @@ func awsAwsjson10_deserializeDocumentRestoreSummary(v **types.RestoreSummary, va if !ok { return fmt.Errorf("expected RestoreInProgress to be of type *bool, got %T instead", value) } - sv.RestoreInProgress = &jtv + sv.RestoreInProgress = ptr.Bool(jtv) } case "SourceBackupArn": @@ -10762,7 +10832,7 @@ func awsAwsjson10_deserializeDocumentRestoreSummary(v **types.RestoreSummary, va if !ok { return fmt.Errorf("expected BackupArn to be of type string, got %T instead", value) } - sv.SourceBackupArn = &jtv + sv.SourceBackupArn = ptr.String(jtv) } case "SourceTableArn": @@ -10771,7 +10841,7 @@ func awsAwsjson10_deserializeDocumentRestoreSummary(v **types.RestoreSummary, va if !ok { return fmt.Errorf("expected TableArn to be of type string, got %T instead", value) } - sv.SourceTableArn = &jtv + sv.SourceTableArn = ptr.String(jtv) } default: @@ -10783,7 +10853,7 @@ func awsAwsjson10_deserializeDocumentRestoreSummary(v **types.RestoreSummary, va return nil } -func awsAwsjson10_deserializeDocumentSecondaryIndexesCapacityMap(v *map[string]*types.Capacity, value interface{}) error { +func awsAwsjson10_deserializeDocumentSecondaryIndexesCapacityMap(v *map[string]types.Capacity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10796,18 +10866,21 @@ func awsAwsjson10_deserializeDocumentSecondaryIndexesCapacityMap(v *map[string]* return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.Capacity + var mv map[string]types.Capacity if *v == nil { - mv = map[string]*types.Capacity{} + mv = map[string]types.Capacity{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.Capacity - if err := awsAwsjson10_deserializeDocumentCapacity(&parsedVal, value); err != nil { + var parsedVal types.Capacity + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson10_deserializeDocumentCapacity(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -10856,7 +10929,7 @@ func awsAwsjson10_deserializeDocumentSourceTableDetails(v **types.SourceTableDet if err != nil { return err } - sv.ItemCount = &i64 + sv.ItemCount = ptr.Int64(i64) } case "KeySchema": @@ -10875,7 +10948,7 @@ func awsAwsjson10_deserializeDocumentSourceTableDetails(v **types.SourceTableDet if !ok { return fmt.Errorf("expected TableArn to be of type string, got %T instead", value) } - sv.TableArn = &jtv + sv.TableArn = ptr.String(jtv) } case "TableCreationDateTime": @@ -10897,7 +10970,7 @@ func awsAwsjson10_deserializeDocumentSourceTableDetails(v **types.SourceTableDet if !ok { return fmt.Errorf("expected TableId to be of type string, got %T instead", value) } - sv.TableId = &jtv + sv.TableId = ptr.String(jtv) } case "TableName": @@ -10906,7 +10979,7 @@ func awsAwsjson10_deserializeDocumentSourceTableDetails(v **types.SourceTableDet if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "TableSizeBytes": @@ -10919,7 +10992,7 @@ func awsAwsjson10_deserializeDocumentSourceTableDetails(v **types.SourceTableDet if err != nil { return err } - sv.TableSizeBytes = &i64 + sv.TableSizeBytes = i64 } default: @@ -11028,7 +11101,7 @@ func awsAwsjson10_deserializeDocumentSSEDescription(v **types.SSEDescription, va if !ok { return fmt.Errorf("expected KMSMasterKeyArn to be of type string, got %T instead", value) } - sv.KMSMasterKeyArn = &jtv + sv.KMSMasterKeyArn = ptr.String(jtv) } case "SSEType": @@ -11086,7 +11159,7 @@ func awsAwsjson10_deserializeDocumentStreamSpecification(v **types.StreamSpecifi if !ok { return fmt.Errorf("expected StreamEnabled to be of type *bool, got %T instead", value) } - sv.StreamEnabled = &jtv + sv.StreamEnabled = ptr.Bool(jtv) } case "StreamViewType": @@ -11107,7 +11180,7 @@ func awsAwsjson10_deserializeDocumentStreamSpecification(v **types.StreamSpecifi return nil } -func awsAwsjson10_deserializeDocumentStringSetAttributeValue(v *[]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentStringSetAttributeValue(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11120,21 +11193,21 @@ func awsAwsjson10_deserializeDocumentStringSetAttributeValue(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringAttributeValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11171,7 +11244,7 @@ func awsAwsjson10_deserializeDocumentTableAlreadyExistsException(v **types.Table if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11216,7 +11289,7 @@ func awsAwsjson10_deserializeDocumentTableAutoScalingDescription(v **types.Table if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "TableStatus": @@ -11298,7 +11371,7 @@ func awsAwsjson10_deserializeDocumentTableDescription(v **types.TableDescription if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GlobalTableVersion = &jtv + sv.GlobalTableVersion = ptr.String(jtv) } case "ItemCount": @@ -11311,7 +11384,7 @@ func awsAwsjson10_deserializeDocumentTableDescription(v **types.TableDescription if err != nil { return err } - sv.ItemCount = &i64 + sv.ItemCount = i64 } case "KeySchema": @@ -11325,7 +11398,7 @@ func awsAwsjson10_deserializeDocumentTableDescription(v **types.TableDescription if !ok { return fmt.Errorf("expected StreamArn to be of type string, got %T instead", value) } - sv.LatestStreamArn = &jtv + sv.LatestStreamArn = ptr.String(jtv) } case "LatestStreamLabel": @@ -11334,7 +11407,7 @@ func awsAwsjson10_deserializeDocumentTableDescription(v **types.TableDescription if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LatestStreamLabel = &jtv + sv.LatestStreamLabel = ptr.String(jtv) } case "LocalSecondaryIndexes": @@ -11373,7 +11446,7 @@ func awsAwsjson10_deserializeDocumentTableDescription(v **types.TableDescription if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TableArn = &jtv + sv.TableArn = ptr.String(jtv) } case "TableId": @@ -11382,7 +11455,7 @@ func awsAwsjson10_deserializeDocumentTableDescription(v **types.TableDescription if !ok { return fmt.Errorf("expected TableId to be of type string, got %T instead", value) } - sv.TableId = &jtv + sv.TableId = ptr.String(jtv) } case "TableName": @@ -11391,7 +11464,7 @@ func awsAwsjson10_deserializeDocumentTableDescription(v **types.TableDescription if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "TableSizeBytes": @@ -11404,7 +11477,7 @@ func awsAwsjson10_deserializeDocumentTableDescription(v **types.TableDescription if err != nil { return err } - sv.TableSizeBytes = &i64 + sv.TableSizeBytes = i64 } case "TableStatus": @@ -11453,7 +11526,7 @@ func awsAwsjson10_deserializeDocumentTableInUseException(v **types.TableInUseExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11465,7 +11538,7 @@ func awsAwsjson10_deserializeDocumentTableInUseException(v **types.TableInUseExc return nil } -func awsAwsjson10_deserializeDocumentTableNameList(v *[]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentTableNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11478,21 +11551,21 @@ func awsAwsjson10_deserializeDocumentTableNameList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11529,7 +11602,7 @@ func awsAwsjson10_deserializeDocumentTableNotFoundException(v **types.TableNotFo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11569,7 +11642,7 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKeyString to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -11578,7 +11651,7 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValueString to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -11590,7 +11663,7 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson10_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson10_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11603,18 +11676,20 @@ func awsAwsjson10_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson10_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson10_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11650,7 +11725,7 @@ func awsAwsjson10_deserializeDocumentTimeToLiveDescription(v **types.TimeToLiveD if !ok { return fmt.Errorf("expected TimeToLiveAttributeName to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "TimeToLiveStatus": @@ -11699,7 +11774,7 @@ func awsAwsjson10_deserializeDocumentTimeToLiveSpecification(v **types.TimeToLiv if !ok { return fmt.Errorf("expected TimeToLiveAttributeName to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "Enabled": @@ -11708,7 +11783,7 @@ func awsAwsjson10_deserializeDocumentTimeToLiveSpecification(v **types.TimeToLiv if !ok { return fmt.Errorf("expected TimeToLiveEnabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } default: @@ -11753,7 +11828,7 @@ func awsAwsjson10_deserializeDocumentTransactionCanceledException(v **types.Tran if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11793,7 +11868,7 @@ func awsAwsjson10_deserializeDocumentTransactionConflictException(v **types.Tran if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11833,7 +11908,7 @@ func awsAwsjson10_deserializeDocumentTransactionInProgressException(v **types.Tr if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11886,7 +11961,7 @@ func awsAwsjson10_deserializeDocumentWriteRequest(v **types.WriteRequest, value return nil } -func awsAwsjson10_deserializeDocumentWriteRequests(v *[]*types.WriteRequest, value interface{}) error { +func awsAwsjson10_deserializeDocumentWriteRequests(v *[]types.WriteRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11899,18 +11974,20 @@ func awsAwsjson10_deserializeDocumentWriteRequests(v *[]*types.WriteRequest, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WriteRequest + var cv []types.WriteRequest if *v == nil { - cv = []*types.WriteRequest{} + cv = []types.WriteRequest{} } else { cv = *v } for _, value := range shape { - var col *types.WriteRequest - if err := awsAwsjson10_deserializeDocumentWriteRequest(&col, value); err != nil { + var col types.WriteRequest + destAddr := &col + if err := awsAwsjson10_deserializeDocumentWriteRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12355,7 +12432,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeContributorInsightsOutput(v **Des if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "LastUpdateDateTime": @@ -12377,7 +12454,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeContributorInsightsOutput(v **Des if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -12489,7 +12566,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeGlobalTableSettingsOutput(v **Des if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.GlobalTableName = &jtv + sv.GlobalTableName = ptr.String(jtv) } case "ReplicaSettings": @@ -12538,7 +12615,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeLimitsOutput(v **DescribeLimitsOu if err != nil { return err } - sv.AccountMaxReadCapacityUnits = &i64 + sv.AccountMaxReadCapacityUnits = ptr.Int64(i64) } case "AccountMaxWriteCapacityUnits": @@ -12551,7 +12628,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeLimitsOutput(v **DescribeLimitsOu if err != nil { return err } - sv.AccountMaxWriteCapacityUnits = &i64 + sv.AccountMaxWriteCapacityUnits = ptr.Int64(i64) } case "TableMaxReadCapacityUnits": @@ -12564,7 +12641,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeLimitsOutput(v **DescribeLimitsOu if err != nil { return err } - sv.TableMaxReadCapacityUnits = &i64 + sv.TableMaxReadCapacityUnits = ptr.Int64(i64) } case "TableMaxWriteCapacityUnits": @@ -12577,7 +12654,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeLimitsOutput(v **DescribeLimitsOu if err != nil { return err } - sv.TableMaxWriteCapacityUnits = &i64 + sv.TableMaxWriteCapacityUnits = ptr.Int64(i64) } default: @@ -12771,7 +12848,7 @@ func awsAwsjson10_deserializeOpDocumentListBackupsOutput(v **ListBackupsOutput, if !ok { return fmt.Errorf("expected BackupArn to be of type string, got %T instead", value) } - sv.LastEvaluatedBackupArn = &jtv + sv.LastEvaluatedBackupArn = ptr.String(jtv) } default: @@ -12816,7 +12893,7 @@ func awsAwsjson10_deserializeOpDocumentListContributorInsightsOutput(v **ListCon if !ok { return fmt.Errorf("expected NextTokenString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -12861,7 +12938,7 @@ func awsAwsjson10_deserializeOpDocumentListGlobalTablesOutput(v **ListGlobalTabl if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.LastEvaluatedGlobalTableName = &jtv + sv.LastEvaluatedGlobalTableName = ptr.String(jtv) } default: @@ -12901,7 +12978,7 @@ func awsAwsjson10_deserializeOpDocumentListTablesOutput(v **ListTablesOutput, va if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.LastEvaluatedTableName = &jtv + sv.LastEvaluatedTableName = ptr.String(jtv) } case "TableNames": @@ -12946,7 +13023,7 @@ func awsAwsjson10_deserializeOpDocumentListTagsOfResourceOutput(v **ListTagsOfRe if !ok { return fmt.Errorf("expected NextTokenString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -13046,7 +13123,7 @@ func awsAwsjson10_deserializeOpDocumentQueryOutput(v **QueryOutput, value interf if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "Items": @@ -13069,7 +13146,7 @@ func awsAwsjson10_deserializeOpDocumentQueryOutput(v **QueryOutput, value interf if err != nil { return err } - sv.ScannedCount = ptr.Int32(int32(i64)) + sv.ScannedCount = int32(i64) } default: @@ -13190,7 +13267,7 @@ func awsAwsjson10_deserializeOpDocumentScanOutput(v **ScanOutput, value interfac if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "Items": @@ -13213,7 +13290,7 @@ func awsAwsjson10_deserializeOpDocumentScanOutput(v **ScanOutput, value interfac if err != nil { return err } - sv.ScannedCount = ptr.Int32(int32(i64)) + sv.ScannedCount = int32(i64) } default: @@ -13442,7 +13519,7 @@ func awsAwsjson10_deserializeOpDocumentUpdateContributorInsightsOutput(v **Updat if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "TableName": @@ -13451,7 +13528,7 @@ func awsAwsjson10_deserializeOpDocumentUpdateContributorInsightsOutput(v **Updat if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -13527,7 +13604,7 @@ func awsAwsjson10_deserializeOpDocumentUpdateGlobalTableSettingsOutput(v **Updat if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.GlobalTableName = &jtv + sv.GlobalTableName = ptr.String(jtv) } case "ReplicaSettings": diff --git a/service/dynamodb/go.mod b/service/dynamodb/go.mod index cbe6e0612f6..1d6791e4e28 100644 --- a/service/dynamodb/go.mod +++ b/service/dynamodb/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/dynamodb go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v0.3.0 github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/dynamodb/serializers.go b/service/dynamodb/serializers.go index 3f534cfb729..0a5a7386fae 100644 --- a/service/dynamodb/serializers.go +++ b/service/dynamodb/serializers.go @@ -1903,49 +1903,38 @@ func awsAwsjson10_serializeDocumentAttributeDefinition(v *types.AttributeDefinit return nil } -func awsAwsjson10_serializeDocumentAttributeDefinitions(v []*types.AttributeDefinition, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentAttributeDefinitions(v []types.AttributeDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentAttributeDefinition(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentAttributeDefinition(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson10_serializeDocumentAttributeNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentAttributeNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson10_serializeDocumentAttributeUpdates(v map[string]*types.AttributeValueUpdate, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentAttributeUpdates(v map[string]types.AttributeValueUpdate, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson10_serializeDocumentAttributeValueUpdate(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson10_serializeDocumentAttributeValueUpdate(&mapVar, om); err != nil { return err } } @@ -2019,17 +2008,13 @@ func awsAwsjson10_serializeDocumentAttributeValue(v *types.AttributeValue, value return nil } -func awsAwsjson10_serializeDocumentAttributeValueList(v []*types.AttributeValue, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentAttributeValueList(v []types.AttributeValue, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentAttributeValue(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentAttributeValue(&v[i], av); err != nil { return err } } @@ -2135,31 +2120,27 @@ func awsAwsjson10_serializeDocumentAutoScalingTargetTrackingScalingPolicyConfigu return nil } -func awsAwsjson10_serializeDocumentBatchGetRequestMap(v map[string]*types.KeysAndAttributes, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentBatchGetRequestMap(v map[string]types.KeysAndAttributes, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson10_serializeDocumentKeysAndAttributes(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson10_serializeDocumentKeysAndAttributes(&mapVar, om); err != nil { return err } } return nil } -func awsAwsjson10_serializeDocumentBatchWriteItemRequestMap(v map[string][]*types.WriteRequest, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentBatchWriteItemRequestMap(v map[string][]types.WriteRequest, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson10_serializeDocumentWriteRequests(v[key], om); err != nil { @@ -2176,7 +2157,6 @@ func awsAwsjson10_serializeDocumentBinarySetAttributeValue(v [][]byte, value smi for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } av.Base64EncodeBytes(v[i]) @@ -2415,17 +2395,14 @@ func awsAwsjson10_serializeDocumentDeleteRequest(v *types.DeleteRequest, value s return nil } -func awsAwsjson10_serializeDocumentExpectedAttributeMap(v map[string]*types.ExpectedAttributeValue, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentExpectedAttributeMap(v map[string]types.ExpectedAttributeValue, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson10_serializeDocumentExpectedAttributeValue(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson10_serializeDocumentExpectedAttributeValue(&mapVar, om); err != nil { return err } } @@ -2463,49 +2440,39 @@ func awsAwsjson10_serializeDocumentExpectedAttributeValue(v *types.ExpectedAttri return nil } -func awsAwsjson10_serializeDocumentExpressionAttributeNameMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentExpressionAttributeNameMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson10_serializeDocumentExpressionAttributeValueMap(v map[string]*types.AttributeValue, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentExpressionAttributeValueMap(v map[string]types.AttributeValue, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson10_serializeDocumentAttributeValue(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson10_serializeDocumentAttributeValue(&mapVar, om); err != nil { return err } } return nil } -func awsAwsjson10_serializeDocumentFilterConditionMap(v map[string]*types.Condition, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentFilterConditionMap(v map[string]types.Condition, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson10_serializeDocumentCondition(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson10_serializeDocumentCondition(&mapVar, om); err != nil { return err } } @@ -2595,34 +2562,26 @@ func awsAwsjson10_serializeDocumentGlobalSecondaryIndexAutoScalingUpdate(v *type return nil } -func awsAwsjson10_serializeDocumentGlobalSecondaryIndexAutoScalingUpdateList(v []*types.GlobalSecondaryIndexAutoScalingUpdate, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentGlobalSecondaryIndexAutoScalingUpdateList(v []types.GlobalSecondaryIndexAutoScalingUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentGlobalSecondaryIndexAutoScalingUpdate(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentGlobalSecondaryIndexAutoScalingUpdate(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson10_serializeDocumentGlobalSecondaryIndexList(v []*types.GlobalSecondaryIndex, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentGlobalSecondaryIndexList(v []types.GlobalSecondaryIndex, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentGlobalSecondaryIndex(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentGlobalSecondaryIndex(&v[i], av); err != nil { return err } } @@ -2657,17 +2616,13 @@ func awsAwsjson10_serializeDocumentGlobalSecondaryIndexUpdate(v *types.GlobalSec return nil } -func awsAwsjson10_serializeDocumentGlobalSecondaryIndexUpdateList(v []*types.GlobalSecondaryIndexUpdate, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentGlobalSecondaryIndexUpdateList(v []types.GlobalSecondaryIndexUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentGlobalSecondaryIndexUpdate(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentGlobalSecondaryIndexUpdate(&v[i], av); err != nil { return err } } @@ -2698,65 +2653,54 @@ func awsAwsjson10_serializeDocumentGlobalTableGlobalSecondaryIndexSettingsUpdate return nil } -func awsAwsjson10_serializeDocumentGlobalTableGlobalSecondaryIndexSettingsUpdateList(v []*types.GlobalTableGlobalSecondaryIndexSettingsUpdate, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentGlobalTableGlobalSecondaryIndexSettingsUpdateList(v []types.GlobalTableGlobalSecondaryIndexSettingsUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentGlobalTableGlobalSecondaryIndexSettingsUpdate(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentGlobalTableGlobalSecondaryIndexSettingsUpdate(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson10_serializeDocumentKey(v map[string]*types.AttributeValue, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentKey(v map[string]types.AttributeValue, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson10_serializeDocumentAttributeValue(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson10_serializeDocumentAttributeValue(&mapVar, om); err != nil { return err } } return nil } -func awsAwsjson10_serializeDocumentKeyConditions(v map[string]*types.Condition, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentKeyConditions(v map[string]types.Condition, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson10_serializeDocumentCondition(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson10_serializeDocumentCondition(&mapVar, om); err != nil { return err } } return nil } -func awsAwsjson10_serializeDocumentKeyList(v []map[string]*types.AttributeValue, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentKeyList(v []map[string]types.AttributeValue, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsAwsjson10_serializeDocumentKey(v[i], av); err != nil { @@ -2804,17 +2748,13 @@ func awsAwsjson10_serializeDocumentKeysAndAttributes(v *types.KeysAndAttributes, return nil } -func awsAwsjson10_serializeDocumentKeySchema(v []*types.KeySchemaElement, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentKeySchema(v []types.KeySchemaElement, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentKeySchemaElement(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentKeySchemaElement(&v[i], av); err != nil { return err } } @@ -2838,17 +2778,13 @@ func awsAwsjson10_serializeDocumentKeySchemaElement(v *types.KeySchemaElement, v return nil } -func awsAwsjson10_serializeDocumentListAttributeValue(v []*types.AttributeValue, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentListAttributeValue(v []types.AttributeValue, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentAttributeValue(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentAttributeValue(&v[i], av); err != nil { return err } } @@ -2881,66 +2817,51 @@ func awsAwsjson10_serializeDocumentLocalSecondaryIndex(v *types.LocalSecondaryIn return nil } -func awsAwsjson10_serializeDocumentLocalSecondaryIndexList(v []*types.LocalSecondaryIndex, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentLocalSecondaryIndexList(v []types.LocalSecondaryIndex, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentLocalSecondaryIndex(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentLocalSecondaryIndex(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson10_serializeDocumentMapAttributeValue(v map[string]*types.AttributeValue, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentMapAttributeValue(v map[string]types.AttributeValue, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson10_serializeDocumentAttributeValue(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson10_serializeDocumentAttributeValue(&mapVar, om); err != nil { return err } } return nil } -func awsAwsjson10_serializeDocumentNonKeyAttributeNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentNonKeyAttributeNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson10_serializeDocumentNumberSetAttributeValue(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentNumberSetAttributeValue(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3048,17 +2969,14 @@ func awsAwsjson10_serializeDocumentPut(v *types.Put, value smithyjson.Value) err return nil } -func awsAwsjson10_serializeDocumentPutItemInputAttributeMap(v map[string]*types.AttributeValue, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentPutItemInputAttributeMap(v map[string]types.AttributeValue, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson10_serializeDocumentAttributeValue(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson10_serializeDocumentAttributeValue(&mapVar, om); err != nil { return err } } @@ -3117,17 +3035,13 @@ func awsAwsjson10_serializeDocumentReplicaAutoScalingUpdate(v *types.ReplicaAuto return nil } -func awsAwsjson10_serializeDocumentReplicaAutoScalingUpdateList(v []*types.ReplicaAutoScalingUpdate, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentReplicaAutoScalingUpdateList(v []types.ReplicaAutoScalingUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentReplicaAutoScalingUpdate(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentReplicaAutoScalingUpdate(&v[i], av); err != nil { return err } } @@ -3172,34 +3086,26 @@ func awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndexAutoScalingUpdate( return nil } -func awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndexAutoScalingUpdateList(v []*types.ReplicaGlobalSecondaryIndexAutoScalingUpdate, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndexAutoScalingUpdateList(v []types.ReplicaGlobalSecondaryIndexAutoScalingUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndexAutoScalingUpdate(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndexAutoScalingUpdate(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndexList(v []*types.ReplicaGlobalSecondaryIndex, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndexList(v []types.ReplicaGlobalSecondaryIndex, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndex(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndex(&v[i], av); err != nil { return err } } @@ -3230,34 +3136,26 @@ func awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndexSettingsUpdate(v * return nil } -func awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndexSettingsUpdateList(v []*types.ReplicaGlobalSecondaryIndexSettingsUpdate, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndexSettingsUpdateList(v []types.ReplicaGlobalSecondaryIndexSettingsUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndexSettingsUpdate(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentReplicaGlobalSecondaryIndexSettingsUpdate(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson10_serializeDocumentReplicaList(v []*types.Replica, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentReplicaList(v []types.Replica, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentReplica(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentReplica(&v[i], av); err != nil { return err } } @@ -3295,17 +3193,13 @@ func awsAwsjson10_serializeDocumentReplicaSettingsUpdate(v *types.ReplicaSetting return nil } -func awsAwsjson10_serializeDocumentReplicaSettingsUpdateList(v []*types.ReplicaSettingsUpdate, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentReplicaSettingsUpdateList(v []types.ReplicaSettingsUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentReplicaSettingsUpdate(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentReplicaSettingsUpdate(&v[i], av); err != nil { return err } } @@ -3340,17 +3234,13 @@ func awsAwsjson10_serializeDocumentReplicationGroupUpdate(v *types.ReplicationGr return nil } -func awsAwsjson10_serializeDocumentReplicationGroupUpdateList(v []*types.ReplicationGroupUpdate, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentReplicationGroupUpdateList(v []types.ReplicationGroupUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentReplicationGroupUpdate(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentReplicationGroupUpdate(&v[i], av); err != nil { return err } } @@ -3378,17 +3268,13 @@ func awsAwsjson10_serializeDocumentReplicaUpdate(v *types.ReplicaUpdate, value s return nil } -func awsAwsjson10_serializeDocumentReplicaUpdateList(v []*types.ReplicaUpdate, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentReplicaUpdateList(v []types.ReplicaUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentReplicaUpdate(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentReplicaUpdate(&v[i], av); err != nil { return err } } @@ -3434,17 +3320,13 @@ func awsAwsjson10_serializeDocumentStreamSpecification(v *types.StreamSpecificat return nil } -func awsAwsjson10_serializeDocumentStringSetAttributeValue(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentStringSetAttributeValue(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3466,32 +3348,24 @@ func awsAwsjson10_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson10_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson10_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -3529,17 +3403,13 @@ func awsAwsjson10_serializeDocumentTransactGetItem(v *types.TransactGetItem, val return nil } -func awsAwsjson10_serializeDocumentTransactGetItemList(v []*types.TransactGetItem, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentTransactGetItemList(v []types.TransactGetItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentTransactGetItem(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentTransactGetItem(&v[i], av); err != nil { return err } } @@ -3581,17 +3451,13 @@ func awsAwsjson10_serializeDocumentTransactWriteItem(v *types.TransactWriteItem, return nil } -func awsAwsjson10_serializeDocumentTransactWriteItemList(v []*types.TransactWriteItem, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentTransactWriteItemList(v []types.TransactWriteItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentTransactWriteItem(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentTransactWriteItem(&v[i], av); err != nil { return err } } @@ -3717,17 +3583,13 @@ func awsAwsjson10_serializeDocumentWriteRequest(v *types.WriteRequest, value smi return nil } -func awsAwsjson10_serializeDocumentWriteRequests(v []*types.WriteRequest, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentWriteRequests(v []types.WriteRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentWriteRequest(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentWriteRequest(&v[i], av); err != nil { return err } } @@ -4179,9 +4041,9 @@ func awsAwsjson10_serializeOpDocumentListContributorInsightsInput(v *ListContrib object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { diff --git a/service/dynamodb/types/errors.go b/service/dynamodb/types/errors.go index f1e3a261789..75dc1440884 100644 --- a/service/dynamodb/types/errors.go +++ b/service/dynamodb/types/errors.go @@ -595,7 +595,7 @@ func (e *TableNotFoundException) ErrorFault() smithy.ErrorFault { return smithy. type TransactionCanceledException struct { Message *string - CancellationReasons []*CancellationReason + CancellationReasons []CancellationReason } func (e *TransactionCanceledException) Error() string { diff --git a/service/dynamodb/types/types.go b/service/dynamodb/types/types.go index 795a32d4b42..9741a851510 100644 --- a/service/dynamodb/types/types.go +++ b/service/dynamodb/types/types.go @@ -69,11 +69,11 @@ type AttributeValue struct { // An attribute of type List. For example: "L": [ {"S": "Cookies"} , {"S": // "Coffee"}, {"N", "3.14159"}] - L []*AttributeValue + L []AttributeValue // An attribute of type Map. For example: "M": {"Name": {"S": "Joe"}, "Age": {"N": // "35"}} - M map[string]*AttributeValue + M map[string]AttributeValue // An attribute of type Number. For example: "N": "123.45" Numbers are sent across // the network to DynamoDB as strings, to maximize compatibility across languages @@ -85,7 +85,7 @@ type AttributeValue struct { // "3.14"] Numbers are sent across the network to DynamoDB as strings, to maximize // compatibility across languages and libraries. However, DynamoDB treats them as // number type attributes for mathematical operations. - NS []*string + NS []string // An attribute of type Null. For example: "NULL": true NULL *bool @@ -95,7 +95,7 @@ type AttributeValue struct { // An attribute of type String Set. For example: "SS": ["Giraffe", "Hippo" // ,"Zebra"] - SS []*string + SS []string } // For the UpdateItem operation, represents the attributes to be modified, the @@ -218,7 +218,7 @@ type AutoScalingSettingsDescription struct { MinimumUnits *int64 // Information about the scaling policies. - ScalingPolicies []*AutoScalingPolicyDescription + ScalingPolicies []AutoScalingPolicyDescription } // Represents the auto scaling settings to be modified for a global table or global @@ -446,7 +446,7 @@ type CancellationReason struct { Code *string // Item in the request which caused the transaction to get cancelled. - Item map[string]*AttributeValue + Item map[string]AttributeValue // Cancellation reason message description. Message *string @@ -604,7 +604,7 @@ type Condition struct { // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). For Binary, // DynamoDB treats each byte of the binary data as unsigned when it compares binary // values. - AttributeValueList []*AttributeValue + AttributeValueList []AttributeValue } // Represents a request to perform a check that an item exists or to check the @@ -620,7 +620,7 @@ type ConditionCheck struct { // name and a value for that attribute. // // This member is required. - Key map[string]*AttributeValue + Key map[string]AttributeValue // Name of the table for the check item request. // @@ -628,10 +628,10 @@ type ConditionCheck struct { TableName *string // One or more substitution tokens for attribute names in an expression. - ExpressionAttributeNames map[string]*string + ExpressionAttributeNames map[string]string // One or more values that can be substituted in an expression. - ExpressionAttributeValues map[string]*AttributeValue + ExpressionAttributeValues map[string]AttributeValue // Use ReturnValuesOnConditionCheckFailure to get the item attributes if the // ConditionCheck condition fails. For ReturnValuesOnConditionCheckFailure, the @@ -652,10 +652,10 @@ type ConsumedCapacity struct { // The amount of throughput consumed on each global index affected by the // operation. - GlobalSecondaryIndexes map[string]*Capacity + GlobalSecondaryIndexes map[string]Capacity // The amount of throughput consumed on each local index affected by the operation. - LocalSecondaryIndexes map[string]*Capacity + LocalSecondaryIndexes map[string]Capacity // The total number of read capacity units consumed by the operation. ReadCapacityUnits *float64 @@ -708,7 +708,7 @@ type CreateGlobalSecondaryIndexAction struct { // The key schema for the global secondary index. // // This member is required. - KeySchema []*KeySchemaElement + KeySchema []KeySchemaElement // Represents attributes that are copied (projected) from the table into an index. // These are in addition to the primary key attributes and index key attributes, @@ -743,7 +743,7 @@ type CreateReplicationGroupMemberAction struct { RegionName *string // Replica-specific global secondary index settings. - GlobalSecondaryIndexes []*ReplicaGlobalSecondaryIndex + GlobalSecondaryIndexes []ReplicaGlobalSecondaryIndex // The AWS KMS customer master key (CMK) that should be used for AWS KMS encryption // in the new replica. To specify a CMK, use its key ID, Amazon Resource Name @@ -764,7 +764,7 @@ type Delete struct { // name and a value for that attribute. // // This member is required. - Key map[string]*AttributeValue + Key map[string]AttributeValue // Name of the table in which the item to be deleted resides. // @@ -775,10 +775,10 @@ type Delete struct { ConditionExpression *string // One or more substitution tokens for attribute names in an expression. - ExpressionAttributeNames map[string]*string + ExpressionAttributeNames map[string]string // One or more values that can be substituted in an expression. - ExpressionAttributeValues map[string]*AttributeValue + ExpressionAttributeValues map[string]AttributeValue // Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Delete // condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: @@ -821,7 +821,7 @@ type DeleteRequest struct { // their data types must match those of the table's key schema. // // This member is required. - Key map[string]*AttributeValue + Key map[string]AttributeValue } // An endpoint information details. @@ -835,7 +835,7 @@ type Endpoint struct { // Endpoint cache time to live (TTL) value. // // This member is required. - CachePeriodInMinutes *int64 + CachePeriodInMinutes int64 } // Represents a condition to be compared with an attribute value. This condition @@ -872,7 +872,7 @@ type ExpectedAttributeValue struct { // values. For information on specifying data types in JSON, see JSON Data Format // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataFormat.html) // in the Amazon DynamoDB Developer Guide. - AttributeValueList []*AttributeValue + AttributeValueList []AttributeValue // A comparator for evaluating attributes in the AttributeValueList. For example, // equals, greater than, less than, etc. The following comparison operators are @@ -1036,7 +1036,7 @@ type Get struct { // key of the item to retrieve. // // This member is required. - Key map[string]*AttributeValue + Key map[string]AttributeValue // The name of the table from which to retrieve the specified item. // @@ -1045,7 +1045,7 @@ type Get struct { // One or more substitution tokens for attribute names in the ProjectionExpression // parameter. - ExpressionAttributeNames map[string]*string + ExpressionAttributeNames map[string]string // A string that identifies one or more attributes of the specified item to // retrieve from the table. The attributes in the expression must be separated by @@ -1080,7 +1080,7 @@ type GlobalSecondaryIndex struct { // partition key physically close together, in sorted order by the sort key value. // // This member is required. - KeySchema []*KeySchemaElement + KeySchema []KeySchemaElement // Represents attributes that are copied (projected) from the table into the global // secondary index. These are in addition to the primary key attributes and index @@ -1134,7 +1134,7 @@ type GlobalSecondaryIndexDescription struct { // The total size of the specified index, in bytes. DynamoDB updates this value // approximately every six hours. Recent changes might not be reflected in this // value. - IndexSizeBytes *int64 + IndexSizeBytes int64 // The current state of the global secondary index: // @@ -1152,7 +1152,7 @@ type GlobalSecondaryIndexDescription struct { // The number of items in the specified index. DynamoDB updates this value // approximately every six hours. Recent changes might not be reflected in this // value. - ItemCount *int64 + ItemCount int64 // The complete key schema for a global secondary index, which consists of one or // more pairs of attribute names and key types: @@ -1168,7 +1168,7 @@ type GlobalSecondaryIndexDescription struct { // values. The sort key of an item is also known as its range attribute. The term // "range attribute" derives from the way DynamoDB stores items with the same // partition key physically close together, in sorted order by the sort key value. - KeySchema []*KeySchemaElement + KeySchema []KeySchemaElement // Represents attributes that are copied (projected) from the table into the global // secondary index. These are in addition to the primary key attributes and index @@ -1204,7 +1204,7 @@ type GlobalSecondaryIndexInfo struct { // values. The sort key of an item is also known as its range attribute. The term // "range attribute" derives from the way DynamoDB stores items with the same // partition key physically close together, in sorted order by the sort key value. - KeySchema []*KeySchemaElement + KeySchema []KeySchemaElement // Represents attributes that are copied (projected) from the table into the global // secondary index. These are in addition to the primary key attributes and index @@ -1258,7 +1258,7 @@ type GlobalTable struct { GlobalTableName *string // The Regions where the global table has replicas. - ReplicationGroup []*Replica + ReplicationGroup []Replica } // Contains details about the global table. @@ -1287,7 +1287,7 @@ type GlobalTableDescription struct { GlobalTableStatus GlobalTableStatus // The Regions where the global table has replicas. - ReplicationGroup []*ReplicaDescription + ReplicationGroup []ReplicaDescription } // Represents the settings of a global secondary index for a global table that will @@ -1317,7 +1317,7 @@ type ItemCollectionMetrics struct { // The partition key value of the item collection. This value is the same as the // partition key value of the item. - ItemCollectionKey map[string]*AttributeValue + ItemCollectionKey map[string]AttributeValue // An estimate of item collection size, in gigabytes. This value is a two-element // array containing a lower bound and an upper bound for the estimate. The estimate @@ -1326,14 +1326,14 @@ type ItemCollectionMetrics struct { // estimate to measure whether a local secondary index is approaching its size // limit. The estimate is subject to change over time; therefore, do not rely on // the precision or accuracy of the estimate. - SizeEstimateRangeGB []*float64 + SizeEstimateRangeGB []float64 } // Details for the requested item. type ItemResponse struct { // Map of attribute data consisting of the data type and attribute value. - Item map[string]*AttributeValue + Item map[string]AttributeValue } // Represents a set of primary keys and, for each key, the attributes to retrieve @@ -1347,13 +1347,13 @@ type KeysAndAttributes struct { // associated with the items. // // This member is required. - Keys []map[string]*AttributeValue + Keys []map[string]AttributeValue // This is a legacy parameter. Use ProjectionExpression instead. For more // information, see Legacy Conditional Parameters // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) // in the Amazon DynamoDB Developer Guide. - AttributesToGet []*string + AttributesToGet []string // The consistency of a read operation. If set to true, then a strongly consistent // read is used; otherwise, an eventually consistent read is used. @@ -1398,7 +1398,7 @@ type KeysAndAttributes struct { // expression attribute names, see Accessing Item Attributes // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. - ExpressionAttributeNames map[string]*string + ExpressionAttributeNames map[string]string // A string that identifies one or more attributes to retrieve from the table. // These attributes can include scalars, sets, or elements of a JSON document. The @@ -1470,7 +1470,7 @@ type LocalSecondaryIndex struct { // partition key physically close together, in sorted order by the sort key value. // // This member is required. - KeySchema []*KeySchemaElement + KeySchema []KeySchemaElement // Represents attributes that are copied (projected) from the table into the local // secondary index. These are in addition to the primary key attributes and index @@ -1492,12 +1492,12 @@ type LocalSecondaryIndexDescription struct { // The total size of the specified index, in bytes. DynamoDB updates this value // approximately every six hours. Recent changes might not be reflected in this // value. - IndexSizeBytes *int64 + IndexSizeBytes int64 // The number of items in the specified index. DynamoDB updates this value // approximately every six hours. Recent changes might not be reflected in this // value. - ItemCount *int64 + ItemCount int64 // The complete key schema for the local secondary index, consisting of one or more // pairs of attribute names and key types: @@ -1513,7 +1513,7 @@ type LocalSecondaryIndexDescription struct { // values. The sort key of an item is also known as its range attribute. The term // "range attribute" derives from the way DynamoDB stores items with the same // partition key physically close together, in sorted order by the sort key value. - KeySchema []*KeySchemaElement + KeySchema []KeySchemaElement // Represents attributes that are copied (projected) from the table into the global // secondary index. These are in addition to the primary key attributes and index @@ -1542,7 +1542,7 @@ type LocalSecondaryIndexInfo struct { // values. The sort key of an item is also known as its range attribute. The term // "range attribute" derives from the way DynamoDB stores items with the same // partition key physically close together, in sorted order by the sort key value. - KeySchema []*KeySchemaElement + KeySchema []KeySchemaElement // Represents attributes that are copied (projected) from the table into the global // secondary index. These are in addition to the primary key attributes and index @@ -1592,7 +1592,7 @@ type Projection struct { // all of the local secondary indexes, must not exceed 20. If you project the same // attribute into two different indexes, this counts as two distinct attributes // when determining the total. - NonKeyAttributes []*string + NonKeyAttributes []string // The set of attributes that are projected into the index: // @@ -1684,7 +1684,7 @@ type Put struct { // the table, their types must match the index key schema. // // This member is required. - Item map[string]*AttributeValue + Item map[string]AttributeValue // Name of the table in which to write the item. // @@ -1695,10 +1695,10 @@ type Put struct { ConditionExpression *string // One or more substitution tokens for attribute names in an expression. - ExpressionAttributeNames map[string]*string + ExpressionAttributeNames map[string]string // One or more values that can be substituted in an expression. - ExpressionAttributeValues map[string]*AttributeValue + ExpressionAttributeValues map[string]AttributeValue // Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Put // condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: @@ -1716,7 +1716,7 @@ type PutRequest struct { // for the table, their types must match the index key schema. // // This member is required. - Item map[string]*AttributeValue + Item map[string]AttributeValue } // Represents the properties of a replica. @@ -1730,7 +1730,7 @@ type Replica struct { type ReplicaAutoScalingDescription struct { // Replica-specific global secondary index auto scaling settings. - GlobalSecondaryIndexes []*ReplicaGlobalSecondaryIndexAutoScalingDescription + GlobalSecondaryIndexes []ReplicaGlobalSecondaryIndexAutoScalingDescription // The Region where the replica exists. RegionName *string @@ -1767,7 +1767,7 @@ type ReplicaAutoScalingUpdate struct { // Represents the auto scaling settings of global secondary indexes that will be // modified. - ReplicaGlobalSecondaryIndexUpdates []*ReplicaGlobalSecondaryIndexAutoScalingUpdate + ReplicaGlobalSecondaryIndexUpdates []ReplicaGlobalSecondaryIndexAutoScalingUpdate // Represents the auto scaling settings to be modified for a global table or global // secondary index. @@ -1778,7 +1778,7 @@ type ReplicaAutoScalingUpdate struct { type ReplicaDescription struct { // Replica-specific global secondary index settings. - GlobalSecondaryIndexes []*ReplicaGlobalSecondaryIndexDescription + GlobalSecondaryIndexes []ReplicaGlobalSecondaryIndexDescription // The AWS KMS customer master key (CMK) of the replica that will be used for AWS // KMS encryption. @@ -1956,7 +1956,7 @@ type ReplicaSettingsDescription struct { ReplicaBillingModeSummary *BillingModeSummary // Replica global secondary index settings for the global table. - ReplicaGlobalSecondaryIndexSettings []*ReplicaGlobalSecondaryIndexSettingsDescription + ReplicaGlobalSecondaryIndexSettings []ReplicaGlobalSecondaryIndexSettingsDescription // Auto scaling settings for a global table replica's read capacity units. ReplicaProvisionedReadCapacityAutoScalingSettings *AutoScalingSettingsDescription @@ -2002,7 +2002,7 @@ type ReplicaSettingsUpdate struct { // Represents the settings of a global secondary index for a global table that will // be modified. - ReplicaGlobalSecondaryIndexSettingsUpdate []*ReplicaGlobalSecondaryIndexSettingsUpdate + ReplicaGlobalSecondaryIndexSettingsUpdate []ReplicaGlobalSecondaryIndexSettingsUpdate // Auto scaling settings for managing a global table replica's read capacity units. ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate *AutoScalingSettingsUpdate @@ -2084,7 +2084,7 @@ type SourceTableDetails struct { // Schema of the table. // // This member is required. - KeySchema []*KeySchemaElement + KeySchema []KeySchemaElement // Read IOPs and Write IOPS on the table when the backup was created. // @@ -2124,7 +2124,7 @@ type SourceTableDetails struct { TableArn *string // Size of the table in bytes. Note that this is an approximate value. - TableSizeBytes *int64 + TableSizeBytes int64 } // Contains the details of the features enabled on the table when the backup was @@ -2134,12 +2134,12 @@ type SourceTableFeatureDetails struct { // Represents the GSI properties for the table when the backup was created. It // includes the IndexName, KeySchema, Projection, and ProvisionedThroughput for the // GSIs on the table at the time of backup. - GlobalSecondaryIndexes []*GlobalSecondaryIndexInfo + GlobalSecondaryIndexes []GlobalSecondaryIndexInfo // Represents the LSI properties for the table when the backup was created. It // includes the IndexName, KeySchema and Projection for the LSIs on the table at // the time of backup. - LocalSecondaryIndexes []*LocalSecondaryIndexInfo + LocalSecondaryIndexes []LocalSecondaryIndexInfo // The description of the server-side encryption status on the table when the // backup was created. @@ -2236,7 +2236,7 @@ type StreamSpecification struct { type TableAutoScalingDescription struct { // Represents replicas of the global table. - Replicas []*ReplicaAutoScalingDescription + Replicas []ReplicaAutoScalingDescription // The name of the table. TableName *string @@ -2269,7 +2269,7 @@ type TableDescription struct { // // * // AttributeType - The data type for the attribute. - AttributeDefinitions []*AttributeDefinition + AttributeDefinitions []AttributeDefinition // Contains the details for the read/write capacity mode. BillingModeSummary *BillingModeSummary @@ -2352,7 +2352,7 @@ type TableDescription struct { // // If the table is in the DELETING state, no // information about indexes will be returned. - GlobalSecondaryIndexes []*GlobalSecondaryIndexDescription + GlobalSecondaryIndexes []GlobalSecondaryIndexDescription // Represents the version of global tables // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html) @@ -2362,7 +2362,7 @@ type TableDescription struct { // The number of items in the specified table. DynamoDB updates this value // approximately every six hours. Recent changes might not be reflected in this // value. - ItemCount *int64 + ItemCount int64 // The primary key structure for the table. Each KeySchemaElement consists of: // @@ -2388,7 +2388,7 @@ type TableDescription struct { // primary keys, see Primary Key // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModelPrimaryKey) // in the Amazon DynamoDB Developer Guide. - KeySchema []*KeySchemaElement + KeySchema []KeySchemaElement // The Amazon Resource Name (ARN) that uniquely identifies the latest stream for // this table. @@ -2455,14 +2455,14 @@ type TableDescription struct { // // If the table is in the DELETING state, no information about indexes will // be returned. - LocalSecondaryIndexes []*LocalSecondaryIndexDescription + LocalSecondaryIndexes []LocalSecondaryIndexDescription // The provisioned throughput settings for the table, consisting of read and write // capacity units, along with data about increases and decreases. ProvisionedThroughput *ProvisionedThroughputDescription // Represents replicas of the table. - Replicas []*ReplicaDescription + Replicas []ReplicaDescription // Contains details for the restore. RestoreSummary *RestoreSummary @@ -2485,7 +2485,7 @@ type TableDescription struct { // The total size of the specified table, in bytes. DynamoDB updates this value // approximately every six hours. Recent changes might not be reflected in this // value. - TableSizeBytes *int64 + TableSizeBytes int64 // The current state of the table: // @@ -2599,7 +2599,7 @@ type Update struct { // name and a value for that attribute. // // This member is required. - Key map[string]*AttributeValue + Key map[string]AttributeValue // Name of the table for the UpdateItem request. // @@ -2616,10 +2616,10 @@ type Update struct { ConditionExpression *string // One or more substitution tokens for attribute names in an expression. - ExpressionAttributeNames map[string]*string + ExpressionAttributeNames map[string]string // One or more values that can be substituted in an expression. - ExpressionAttributeValues map[string]*AttributeValue + ExpressionAttributeValues map[string]AttributeValue // Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Update // condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: @@ -2655,7 +2655,7 @@ type UpdateReplicationGroupMemberAction struct { RegionName *string // Replica-specific global secondary index settings. - GlobalSecondaryIndexes []*ReplicaGlobalSecondaryIndex + GlobalSecondaryIndexes []ReplicaGlobalSecondaryIndex // The AWS KMS customer master key (CMK) of the replica that should be used for AWS // KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), diff --git a/service/dynamodb/validators.go b/service/dynamodb/validators.go index dc11fa850e3..1ae78216826 100644 --- a/service/dynamodb/validators.go +++ b/service/dynamodb/validators.go @@ -868,13 +868,13 @@ func validateAttributeDefinition(v *types.AttributeDefinition) error { } } -func validateAttributeDefinitions(v []*types.AttributeDefinition) error { +func validateAttributeDefinitions(v []types.AttributeDefinition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AttributeDefinitions"} for i := range v { - if err := validateAttributeDefinition(v[i]); err != nil { + if err := validateAttributeDefinition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -936,13 +936,14 @@ func validateAutoScalingTargetTrackingScalingPolicyConfigurationUpdate(v *types. } } -func validateBatchGetRequestMap(v map[string]*types.KeysAndAttributes) error { +func validateBatchGetRequestMap(v map[string]types.KeysAndAttributes) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BatchGetRequestMap"} for key := range v { - if err := validateKeysAndAttributes(v[key]); err != nil { + value := v[key] + if err := validateKeysAndAttributes(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -953,7 +954,7 @@ func validateBatchGetRequestMap(v map[string]*types.KeysAndAttributes) error { } } -func validateBatchWriteItemRequestMap(v map[string][]*types.WriteRequest) error { +func validateBatchWriteItemRequestMap(v map[string][]types.WriteRequest) error { if v == nil { return nil } @@ -1149,13 +1150,14 @@ func validateDeleteRequest(v *types.DeleteRequest) error { } } -func validateFilterConditionMap(v map[string]*types.Condition) error { +func validateFilterConditionMap(v map[string]types.Condition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FilterConditionMap"} for key := range v { - if err := validateCondition(v[key]); err != nil { + value := v[key] + if err := validateCondition(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -1231,13 +1233,13 @@ func validateGlobalSecondaryIndexAutoScalingUpdate(v *types.GlobalSecondaryIndex } } -func validateGlobalSecondaryIndexAutoScalingUpdateList(v []*types.GlobalSecondaryIndexAutoScalingUpdate) error { +func validateGlobalSecondaryIndexAutoScalingUpdateList(v []types.GlobalSecondaryIndexAutoScalingUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GlobalSecondaryIndexAutoScalingUpdateList"} for i := range v { - if err := validateGlobalSecondaryIndexAutoScalingUpdate(v[i]); err != nil { + if err := validateGlobalSecondaryIndexAutoScalingUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1248,13 +1250,13 @@ func validateGlobalSecondaryIndexAutoScalingUpdateList(v []*types.GlobalSecondar } } -func validateGlobalSecondaryIndexList(v []*types.GlobalSecondaryIndex) error { +func validateGlobalSecondaryIndexList(v []types.GlobalSecondaryIndex) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GlobalSecondaryIndexList"} for i := range v { - if err := validateGlobalSecondaryIndex(v[i]); err != nil { + if err := validateGlobalSecondaryIndex(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1292,13 +1294,13 @@ func validateGlobalSecondaryIndexUpdate(v *types.GlobalSecondaryIndexUpdate) err } } -func validateGlobalSecondaryIndexUpdateList(v []*types.GlobalSecondaryIndexUpdate) error { +func validateGlobalSecondaryIndexUpdateList(v []types.GlobalSecondaryIndexUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GlobalSecondaryIndexUpdateList"} for i := range v { - if err := validateGlobalSecondaryIndexUpdate(v[i]); err != nil { + if err := validateGlobalSecondaryIndexUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1329,13 +1331,13 @@ func validateGlobalTableGlobalSecondaryIndexSettingsUpdate(v *types.GlobalTableG } } -func validateGlobalTableGlobalSecondaryIndexSettingsUpdateList(v []*types.GlobalTableGlobalSecondaryIndexSettingsUpdate) error { +func validateGlobalTableGlobalSecondaryIndexSettingsUpdateList(v []types.GlobalTableGlobalSecondaryIndexSettingsUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GlobalTableGlobalSecondaryIndexSettingsUpdateList"} for i := range v { - if err := validateGlobalTableGlobalSecondaryIndexSettingsUpdate(v[i]); err != nil { + if err := validateGlobalTableGlobalSecondaryIndexSettingsUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1346,13 +1348,14 @@ func validateGlobalTableGlobalSecondaryIndexSettingsUpdateList(v []*types.Global } } -func validateKeyConditions(v map[string]*types.Condition) error { +func validateKeyConditions(v map[string]types.Condition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "KeyConditions"} for key := range v { - if err := validateCondition(v[key]); err != nil { + value := v[key] + if err := validateCondition(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -1378,13 +1381,13 @@ func validateKeysAndAttributes(v *types.KeysAndAttributes) error { } } -func validateKeySchema(v []*types.KeySchemaElement) error { +func validateKeySchema(v []types.KeySchemaElement) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "KeySchema"} for i := range v { - if err := validateKeySchemaElement(v[i]); err != nil { + if err := validateKeySchemaElement(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1438,13 +1441,13 @@ func validateLocalSecondaryIndex(v *types.LocalSecondaryIndex) error { } } -func validateLocalSecondaryIndexList(v []*types.LocalSecondaryIndex) error { +func validateLocalSecondaryIndexList(v []types.LocalSecondaryIndex) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LocalSecondaryIndexList"} for i := range v { - if err := validateLocalSecondaryIndex(v[i]); err != nil { + if err := validateLocalSecondaryIndex(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1546,13 +1549,13 @@ func validateReplicaAutoScalingUpdate(v *types.ReplicaAutoScalingUpdate) error { } } -func validateReplicaAutoScalingUpdateList(v []*types.ReplicaAutoScalingUpdate) error { +func validateReplicaAutoScalingUpdateList(v []types.ReplicaAutoScalingUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReplicaAutoScalingUpdateList"} for i := range v { - if err := validateReplicaAutoScalingUpdate(v[i]); err != nil { + if err := validateReplicaAutoScalingUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1595,13 +1598,13 @@ func validateReplicaGlobalSecondaryIndexAutoScalingUpdate(v *types.ReplicaGlobal } } -func validateReplicaGlobalSecondaryIndexAutoScalingUpdateList(v []*types.ReplicaGlobalSecondaryIndexAutoScalingUpdate) error { +func validateReplicaGlobalSecondaryIndexAutoScalingUpdateList(v []types.ReplicaGlobalSecondaryIndexAutoScalingUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReplicaGlobalSecondaryIndexAutoScalingUpdateList"} for i := range v { - if err := validateReplicaGlobalSecondaryIndexAutoScalingUpdate(v[i]); err != nil { + if err := validateReplicaGlobalSecondaryIndexAutoScalingUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1612,13 +1615,13 @@ func validateReplicaGlobalSecondaryIndexAutoScalingUpdateList(v []*types.Replica } } -func validateReplicaGlobalSecondaryIndexList(v []*types.ReplicaGlobalSecondaryIndex) error { +func validateReplicaGlobalSecondaryIndexList(v []types.ReplicaGlobalSecondaryIndex) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReplicaGlobalSecondaryIndexList"} for i := range v { - if err := validateReplicaGlobalSecondaryIndex(v[i]); err != nil { + if err := validateReplicaGlobalSecondaryIndex(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1649,13 +1652,13 @@ func validateReplicaGlobalSecondaryIndexSettingsUpdate(v *types.ReplicaGlobalSec } } -func validateReplicaGlobalSecondaryIndexSettingsUpdateList(v []*types.ReplicaGlobalSecondaryIndexSettingsUpdate) error { +func validateReplicaGlobalSecondaryIndexSettingsUpdateList(v []types.ReplicaGlobalSecondaryIndexSettingsUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReplicaGlobalSecondaryIndexSettingsUpdateList"} for i := range v { - if err := validateReplicaGlobalSecondaryIndexSettingsUpdate(v[i]); err != nil { + if err := validateReplicaGlobalSecondaryIndexSettingsUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1691,13 +1694,13 @@ func validateReplicaSettingsUpdate(v *types.ReplicaSettingsUpdate) error { } } -func validateReplicaSettingsUpdateList(v []*types.ReplicaSettingsUpdate) error { +func validateReplicaSettingsUpdateList(v []types.ReplicaSettingsUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReplicaSettingsUpdateList"} for i := range v { - if err := validateReplicaSettingsUpdate(v[i]); err != nil { + if err := validateReplicaSettingsUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1735,13 +1738,13 @@ func validateReplicationGroupUpdate(v *types.ReplicationGroupUpdate) error { } } -func validateReplicationGroupUpdateList(v []*types.ReplicationGroupUpdate) error { +func validateReplicationGroupUpdateList(v []types.ReplicationGroupUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReplicationGroupUpdateList"} for i := range v { - if err := validateReplicationGroupUpdate(v[i]); err != nil { + if err := validateReplicationGroupUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1774,13 +1777,13 @@ func validateReplicaUpdate(v *types.ReplicaUpdate) error { } } -func validateReplicaUpdateList(v []*types.ReplicaUpdate) error { +func validateReplicaUpdateList(v []types.ReplicaUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReplicaUpdateList"} for i := range v { - if err := validateReplicaUpdate(v[i]); err != nil { + if err := validateReplicaUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1824,13 +1827,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1878,13 +1881,13 @@ func validateTransactGetItem(v *types.TransactGetItem) error { } } -func validateTransactGetItemList(v []*types.TransactGetItem) error { +func validateTransactGetItemList(v []types.TransactGetItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TransactGetItemList"} for i := range v { - if err := validateTransactGetItem(v[i]); err != nil { + if err := validateTransactGetItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1927,13 +1930,13 @@ func validateTransactWriteItem(v *types.TransactWriteItem) error { } } -func validateTransactWriteItemList(v []*types.TransactWriteItem) error { +func validateTransactWriteItemList(v []types.TransactWriteItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TransactWriteItemList"} for i := range v { - if err := validateTransactWriteItem(v[i]); err != nil { + if err := validateTransactWriteItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2029,13 +2032,13 @@ func validateWriteRequest(v *types.WriteRequest) error { } } -func validateWriteRequests(v []*types.WriteRequest) error { +func validateWriteRequests(v []types.WriteRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "WriteRequests"} for i := range v { - if err := validateWriteRequest(v[i]); err != nil { + if err := validateWriteRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/dynamodbstreams/api_op_GetRecords.go b/service/dynamodbstreams/api_op_GetRecords.go index 28aec852e27..7f0df538654 100644 --- a/service/dynamodbstreams/api_op_GetRecords.go +++ b/service/dynamodbstreams/api_op_GetRecords.go @@ -57,7 +57,7 @@ type GetRecordsOutput struct { // The stream records from the shard, which were retrieved using the shard // iterator. - Records []*types.Record + Records []types.Record // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodbstreams/api_op_ListStreams.go b/service/dynamodbstreams/api_op_ListStreams.go index 85c57c9d717..718670d66c0 100644 --- a/service/dynamodbstreams/api_op_ListStreams.go +++ b/service/dynamodbstreams/api_op_ListStreams.go @@ -59,7 +59,7 @@ type ListStreamsOutput struct { LastEvaluatedStreamArn *string // A list of stream descriptors associated with the current account and endpoint. - Streams []*types.Stream + Streams []types.Stream // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/dynamodbstreams/deserializers.go b/service/dynamodbstreams/deserializers.go index 125741c063a..0493fe398f6 100644 --- a/service/dynamodbstreams/deserializers.go +++ b/service/dynamodbstreams/deserializers.go @@ -663,7 +663,7 @@ func awsAwsjson10_deserializeErrorTrimmedDataAccessException(response *smithyhtt return output } -func awsAwsjson10_deserializeDocumentAttributeMap(v *map[string]*types.AttributeValue, value interface{}) error { +func awsAwsjson10_deserializeDocumentAttributeMap(v *map[string]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -676,18 +676,21 @@ func awsAwsjson10_deserializeDocumentAttributeMap(v *map[string]*types.Attribute return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AttributeValue + var mv map[string]types.AttributeValue if *v == nil { - mv = map[string]*types.AttributeValue{} + mv = map[string]types.AttributeValue{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AttributeValue - if err := awsAwsjson10_deserializeDocumentAttributeValue(&parsedVal, value); err != nil { + var parsedVal types.AttributeValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson10_deserializeDocumentAttributeValue(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -736,7 +739,7 @@ func awsAwsjson10_deserializeDocumentAttributeValue(v **types.AttributeValue, va if !ok { return fmt.Errorf("expected BooleanAttributeValue to be of type *bool, got %T instead", value) } - sv.BOOL = &jtv + sv.BOOL = ptr.Bool(jtv) } case "BS": @@ -760,7 +763,7 @@ func awsAwsjson10_deserializeDocumentAttributeValue(v **types.AttributeValue, va if !ok { return fmt.Errorf("expected NumberAttributeValue to be of type string, got %T instead", value) } - sv.N = &jtv + sv.N = ptr.String(jtv) } case "NS": @@ -774,7 +777,7 @@ func awsAwsjson10_deserializeDocumentAttributeValue(v **types.AttributeValue, va if !ok { return fmt.Errorf("expected NullAttributeValue to be of type *bool, got %T instead", value) } - sv.NULL = &jtv + sv.NULL = ptr.Bool(jtv) } case "S": @@ -783,7 +786,7 @@ func awsAwsjson10_deserializeDocumentAttributeValue(v **types.AttributeValue, va if !ok { return fmt.Errorf("expected StringAttributeValue to be of type string, got %T instead", value) } - sv.S = &jtv + sv.S = ptr.String(jtv) } case "SS": @@ -868,7 +871,7 @@ func awsAwsjson10_deserializeDocumentExpiredIteratorException(v **types.ExpiredI if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -908,7 +911,7 @@ func awsAwsjson10_deserializeDocumentIdentity(v **types.Identity, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } case "Type": @@ -917,7 +920,7 @@ func awsAwsjson10_deserializeDocumentIdentity(v **types.Identity, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -957,7 +960,7 @@ func awsAwsjson10_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -969,7 +972,7 @@ func awsAwsjson10_deserializeDocumentInternalServerError(v **types.InternalServe return nil } -func awsAwsjson10_deserializeDocumentKeySchema(v *[]*types.KeySchemaElement, value interface{}) error { +func awsAwsjson10_deserializeDocumentKeySchema(v *[]types.KeySchemaElement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -982,18 +985,20 @@ func awsAwsjson10_deserializeDocumentKeySchema(v *[]*types.KeySchemaElement, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeySchemaElement + var cv []types.KeySchemaElement if *v == nil { - cv = []*types.KeySchemaElement{} + cv = []types.KeySchemaElement{} } else { cv = *v } for _, value := range shape { - var col *types.KeySchemaElement - if err := awsAwsjson10_deserializeDocumentKeySchemaElement(&col, value); err != nil { + var col types.KeySchemaElement + destAddr := &col + if err := awsAwsjson10_deserializeDocumentKeySchemaElement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1029,7 +1034,7 @@ func awsAwsjson10_deserializeDocumentKeySchemaElement(v **types.KeySchemaElement if !ok { return fmt.Errorf("expected KeySchemaAttributeName to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "KeyType": @@ -1078,7 +1083,7 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1090,7 +1095,7 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson10_deserializeDocumentListAttributeValue(v *[]*types.AttributeValue, value interface{}) error { +func awsAwsjson10_deserializeDocumentListAttributeValue(v *[]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1103,18 +1108,20 @@ func awsAwsjson10_deserializeDocumentListAttributeValue(v *[]*types.AttributeVal return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttributeValue + var cv []types.AttributeValue if *v == nil { - cv = []*types.AttributeValue{} + cv = []types.AttributeValue{} } else { cv = *v } for _, value := range shape { - var col *types.AttributeValue - if err := awsAwsjson10_deserializeDocumentAttributeValue(&col, value); err != nil { + var col types.AttributeValue + destAddr := &col + if err := awsAwsjson10_deserializeDocumentAttributeValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1122,7 +1129,7 @@ func awsAwsjson10_deserializeDocumentListAttributeValue(v *[]*types.AttributeVal return nil } -func awsAwsjson10_deserializeDocumentMapAttributeValue(v *map[string]*types.AttributeValue, value interface{}) error { +func awsAwsjson10_deserializeDocumentMapAttributeValue(v *map[string]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1135,18 +1142,21 @@ func awsAwsjson10_deserializeDocumentMapAttributeValue(v *map[string]*types.Attr return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AttributeValue + var mv map[string]types.AttributeValue if *v == nil { - mv = map[string]*types.AttributeValue{} + mv = map[string]types.AttributeValue{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AttributeValue - if err := awsAwsjson10_deserializeDocumentAttributeValue(&parsedVal, value); err != nil { + var parsedVal types.AttributeValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson10_deserializeDocumentAttributeValue(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -1154,7 +1164,7 @@ func awsAwsjson10_deserializeDocumentMapAttributeValue(v *map[string]*types.Attr return nil } -func awsAwsjson10_deserializeDocumentNumberSetAttributeValue(v *[]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentNumberSetAttributeValue(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1167,21 +1177,21 @@ func awsAwsjson10_deserializeDocumentNumberSetAttributeValue(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NumberAttributeValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1218,7 +1228,7 @@ func awsAwsjson10_deserializeDocumentRecord(v **types.Record, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AwsRegion = &jtv + sv.AwsRegion = ptr.String(jtv) } case "dynamodb": @@ -1232,7 +1242,7 @@ func awsAwsjson10_deserializeDocumentRecord(v **types.Record, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EventID = &jtv + sv.EventID = ptr.String(jtv) } case "eventName": @@ -1250,7 +1260,7 @@ func awsAwsjson10_deserializeDocumentRecord(v **types.Record, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EventSource = &jtv + sv.EventSource = ptr.String(jtv) } case "eventVersion": @@ -1259,7 +1269,7 @@ func awsAwsjson10_deserializeDocumentRecord(v **types.Record, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EventVersion = &jtv + sv.EventVersion = ptr.String(jtv) } case "userIdentity": @@ -1276,7 +1286,7 @@ func awsAwsjson10_deserializeDocumentRecord(v **types.Record, value interface{}) return nil } -func awsAwsjson10_deserializeDocumentRecordList(v *[]*types.Record, value interface{}) error { +func awsAwsjson10_deserializeDocumentRecordList(v *[]types.Record, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1289,18 +1299,20 @@ func awsAwsjson10_deserializeDocumentRecordList(v *[]*types.Record, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Record + var cv []types.Record if *v == nil { - cv = []*types.Record{} + cv = []types.Record{} } else { cv = *v } for _, value := range shape { - var col *types.Record - if err := awsAwsjson10_deserializeDocumentRecord(&col, value); err != nil { + var col types.Record + destAddr := &col + if err := awsAwsjson10_deserializeDocumentRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1336,7 +1348,7 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1376,7 +1388,7 @@ func awsAwsjson10_deserializeDocumentSequenceNumberRange(v **types.SequenceNumbe if !ok { return fmt.Errorf("expected SequenceNumber to be of type string, got %T instead", value) } - sv.EndingSequenceNumber = &jtv + sv.EndingSequenceNumber = ptr.String(jtv) } case "StartingSequenceNumber": @@ -1385,7 +1397,7 @@ func awsAwsjson10_deserializeDocumentSequenceNumberRange(v **types.SequenceNumbe if !ok { return fmt.Errorf("expected SequenceNumber to be of type string, got %T instead", value) } - sv.StartingSequenceNumber = &jtv + sv.StartingSequenceNumber = ptr.String(jtv) } default: @@ -1425,7 +1437,7 @@ func awsAwsjson10_deserializeDocumentShard(v **types.Shard, value interface{}) e if !ok { return fmt.Errorf("expected ShardId to be of type string, got %T instead", value) } - sv.ParentShardId = &jtv + sv.ParentShardId = ptr.String(jtv) } case "SequenceNumberRange": @@ -1439,7 +1451,7 @@ func awsAwsjson10_deserializeDocumentShard(v **types.Shard, value interface{}) e if !ok { return fmt.Errorf("expected ShardId to be of type string, got %T instead", value) } - sv.ShardId = &jtv + sv.ShardId = ptr.String(jtv) } default: @@ -1451,7 +1463,7 @@ func awsAwsjson10_deserializeDocumentShard(v **types.Shard, value interface{}) e return nil } -func awsAwsjson10_deserializeDocumentShardDescriptionList(v *[]*types.Shard, value interface{}) error { +func awsAwsjson10_deserializeDocumentShardDescriptionList(v *[]types.Shard, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1464,18 +1476,20 @@ func awsAwsjson10_deserializeDocumentShardDescriptionList(v *[]*types.Shard, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Shard + var cv []types.Shard if *v == nil { - cv = []*types.Shard{} + cv = []types.Shard{} } else { cv = *v } for _, value := range shape { - var col *types.Shard - if err := awsAwsjson10_deserializeDocumentShard(&col, value); err != nil { + var col types.Shard + destAddr := &col + if err := awsAwsjson10_deserializeDocumentShard(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1511,7 +1525,7 @@ func awsAwsjson10_deserializeDocumentStream(v **types.Stream, value interface{}) if !ok { return fmt.Errorf("expected StreamArn to be of type string, got %T instead", value) } - sv.StreamArn = &jtv + sv.StreamArn = ptr.String(jtv) } case "StreamLabel": @@ -1520,7 +1534,7 @@ func awsAwsjson10_deserializeDocumentStream(v **types.Stream, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StreamLabel = &jtv + sv.StreamLabel = ptr.String(jtv) } case "TableName": @@ -1529,7 +1543,7 @@ func awsAwsjson10_deserializeDocumentStream(v **types.Stream, value interface{}) if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -1587,7 +1601,7 @@ func awsAwsjson10_deserializeDocumentStreamDescription(v **types.StreamDescripti if !ok { return fmt.Errorf("expected ShardId to be of type string, got %T instead", value) } - sv.LastEvaluatedShardId = &jtv + sv.LastEvaluatedShardId = ptr.String(jtv) } case "Shards": @@ -1601,7 +1615,7 @@ func awsAwsjson10_deserializeDocumentStreamDescription(v **types.StreamDescripti if !ok { return fmt.Errorf("expected StreamArn to be of type string, got %T instead", value) } - sv.StreamArn = &jtv + sv.StreamArn = ptr.String(jtv) } case "StreamLabel": @@ -1610,7 +1624,7 @@ func awsAwsjson10_deserializeDocumentStreamDescription(v **types.StreamDescripti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StreamLabel = &jtv + sv.StreamLabel = ptr.String(jtv) } case "StreamStatus": @@ -1637,7 +1651,7 @@ func awsAwsjson10_deserializeDocumentStreamDescription(v **types.StreamDescripti if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -1649,7 +1663,7 @@ func awsAwsjson10_deserializeDocumentStreamDescription(v **types.StreamDescripti return nil } -func awsAwsjson10_deserializeDocumentStreamList(v *[]*types.Stream, value interface{}) error { +func awsAwsjson10_deserializeDocumentStreamList(v *[]types.Stream, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1662,18 +1676,20 @@ func awsAwsjson10_deserializeDocumentStreamList(v *[]*types.Stream, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Stream + var cv []types.Stream if *v == nil { - cv = []*types.Stream{} + cv = []types.Stream{} } else { cv = *v } for _, value := range shape { - var col *types.Stream - if err := awsAwsjson10_deserializeDocumentStream(&col, value); err != nil { + var col types.Stream + destAddr := &col + if err := awsAwsjson10_deserializeDocumentStream(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1737,7 +1753,7 @@ func awsAwsjson10_deserializeDocumentStreamRecord(v **types.StreamRecord, value if !ok { return fmt.Errorf("expected SequenceNumber to be of type string, got %T instead", value) } - sv.SequenceNumber = &jtv + sv.SequenceNumber = ptr.String(jtv) } case "SizeBytes": @@ -1750,7 +1766,7 @@ func awsAwsjson10_deserializeDocumentStreamRecord(v **types.StreamRecord, value if err != nil { return err } - sv.SizeBytes = &i64 + sv.SizeBytes = ptr.Int64(i64) } case "StreamViewType": @@ -1771,7 +1787,7 @@ func awsAwsjson10_deserializeDocumentStreamRecord(v **types.StreamRecord, value return nil } -func awsAwsjson10_deserializeDocumentStringSetAttributeValue(v *[]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentStringSetAttributeValue(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1784,21 +1800,21 @@ func awsAwsjson10_deserializeDocumentStringSetAttributeValue(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringAttributeValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1835,7 +1851,7 @@ func awsAwsjson10_deserializeDocumentTrimmedDataAccessException(v **types.Trimme if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1911,7 +1927,7 @@ func awsAwsjson10_deserializeOpDocumentGetRecordsOutput(v **GetRecordsOutput, va if !ok { return fmt.Errorf("expected ShardIterator to be of type string, got %T instead", value) } - sv.NextShardIterator = &jtv + sv.NextShardIterator = ptr.String(jtv) } case "Records": @@ -1956,7 +1972,7 @@ func awsAwsjson10_deserializeOpDocumentGetShardIteratorOutput(v **GetShardIterat if !ok { return fmt.Errorf("expected ShardIterator to be of type string, got %T instead", value) } - sv.ShardIterator = &jtv + sv.ShardIterator = ptr.String(jtv) } default: @@ -1996,7 +2012,7 @@ func awsAwsjson10_deserializeOpDocumentListStreamsOutput(v **ListStreamsOutput, if !ok { return fmt.Errorf("expected StreamArn to be of type string, got %T instead", value) } - sv.LastEvaluatedStreamArn = &jtv + sv.LastEvaluatedStreamArn = ptr.String(jtv) } case "Streams": diff --git a/service/dynamodbstreams/go.mod b/service/dynamodbstreams/go.mod index 387ffe8be2c..0c4f5c3d04c 100644 --- a/service/dynamodbstreams/go.mod +++ b/service/dynamodbstreams/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/dynamodbstreams go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/dynamodbstreams/types/types.go b/service/dynamodbstreams/types/types.go index 482b5863f74..681a5a6079c 100644 --- a/service/dynamodbstreams/types/types.go +++ b/service/dynamodbstreams/types/types.go @@ -26,11 +26,11 @@ type AttributeValue struct { // An attribute of type List. For example: "L": [ {"S": "Cookies"} , {"S": // "Coffee"}, {"N", "3.14159"}] - L []*AttributeValue + L []AttributeValue // An attribute of type Map. For example: "M": {"Name": {"S": "Joe"}, "Age": {"N": // "35"}} - M map[string]*AttributeValue + M map[string]AttributeValue // An attribute of type Number. For example: "N": "123.45" Numbers are sent across // the network to DynamoDB as strings, to maximize compatibility across languages @@ -42,7 +42,7 @@ type AttributeValue struct { // "3.14"] Numbers are sent across the network to DynamoDB as strings, to maximize // compatibility across languages and libraries. However, DynamoDB treats them as // number type attributes for mathematical operations. - NS []*string + NS []string // An attribute of type Null. For example: "NULL": true NULL *bool @@ -52,7 +52,7 @@ type AttributeValue struct { // An attribute of type String Set. For example: "SS": ["Giraffe", "Hippo" // ,"Zebra"] - SS []*string + SS []string } // Contains details about the type of identity that made the request. @@ -203,7 +203,7 @@ type StreamDescription struct { CreationRequestDateTime *time.Time // The key attribute(s) of the stream's DynamoDB table. - KeySchema []*KeySchemaElement + KeySchema []KeySchemaElement // The shard ID of the item where the operation stopped, inclusive of the previous // result set. Use this value to start a new operation, excluding this value in the @@ -215,7 +215,7 @@ type StreamDescription struct { LastEvaluatedShardId *string // The shards that comprise the stream. - Shards []*Shard + Shards []Shard // The Amazon Resource Name (ARN) for the stream. StreamArn *string @@ -276,13 +276,13 @@ type StreamRecord struct { ApproximateCreationDateTime *time.Time // The primary key attribute(s) for the DynamoDB item that was modified. - Keys map[string]*AttributeValue + Keys map[string]AttributeValue // The item in the DynamoDB table as it appeared after it was modified. - NewImage map[string]*AttributeValue + NewImage map[string]AttributeValue // The item in the DynamoDB table as it appeared before it was modified. - OldImage map[string]*AttributeValue + OldImage map[string]AttributeValue // The sequence number of the stream record. SequenceNumber *string diff --git a/service/ebs/api_op_ListChangedBlocks.go b/service/ebs/api_op_ListChangedBlocks.go index b3df978f1ec..4a0f61ebf27 100644 --- a/service/ebs/api_op_ListChangedBlocks.go +++ b/service/ebs/api_op_ListChangedBlocks.go @@ -60,7 +60,7 @@ type ListChangedBlocksOutput struct { BlockSize *int32 // An array of objects containing information about the changed blocks. - ChangedBlocks []*types.ChangedBlock + ChangedBlocks []types.ChangedBlock // The time when the BlockToken expires. ExpiryTime *time.Time diff --git a/service/ebs/api_op_ListSnapshotBlocks.go b/service/ebs/api_op_ListSnapshotBlocks.go index f3ae9016f8d..ca776add988 100644 --- a/service/ebs/api_op_ListSnapshotBlocks.go +++ b/service/ebs/api_op_ListSnapshotBlocks.go @@ -52,7 +52,7 @@ type ListSnapshotBlocksOutput struct { BlockSize *int32 // An array of objects containing information about the blocks. - Blocks []*types.Block + Blocks []types.Block // The time when the BlockToken expires. ExpiryTime *time.Time diff --git a/service/ebs/api_op_StartSnapshot.go b/service/ebs/api_op_StartSnapshot.go index 2b4326766b3..78355fd84ea 100644 --- a/service/ebs/api_op_StartSnapshot.go +++ b/service/ebs/api_op_StartSnapshot.go @@ -85,7 +85,7 @@ type StartSnapshotInput struct { ParentSnapshotId *string // The tags to apply to the snapshot. - Tags []*types.Tag + Tags []types.Tag // The amount of time (in minutes) after which the snapshot is automatically // cancelled if: @@ -131,7 +131,7 @@ type StartSnapshotOutput struct { // For more information, see Tagging your Amazon EC2 resources // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the // Amazon Elastic Compute Cloud User Guide. - Tags []*types.Tag + Tags []types.Tag // The size of the volume, in GiB. VolumeSize *int64 diff --git a/service/ebs/deserializers.go b/service/ebs/deserializers.go index ba46d1825f9..b443877e1cd 100644 --- a/service/ebs/deserializers.go +++ b/service/ebs/deserializers.go @@ -514,7 +514,7 @@ func awsRestjson1_deserializeOpDocumentListChangedBlocksOutput(v **ListChangedBl if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "VolumeSize": @@ -527,7 +527,7 @@ func awsRestjson1_deserializeOpDocumentListChangedBlocksOutput(v **ListChangedBl if err != nil { return err } - sv.VolumeSize = &i64 + sv.VolumeSize = ptr.Int64(i64) } default: @@ -724,7 +724,7 @@ func awsRestjson1_deserializeOpDocumentListSnapshotBlocksOutput(v **ListSnapshot if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "VolumeSize": @@ -737,7 +737,7 @@ func awsRestjson1_deserializeOpDocumentListSnapshotBlocksOutput(v **ListSnapshot if err != nil { return err } - sv.VolumeSize = &i64 + sv.VolumeSize = ptr.Int64(i64) } default: @@ -1043,7 +1043,7 @@ func awsRestjson1_deserializeOpDocumentStartSnapshotOutput(v **StartSnapshotOutp if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "KmsKeyArn": @@ -1052,7 +1052,7 @@ func awsRestjson1_deserializeOpDocumentStartSnapshotOutput(v **StartSnapshotOutp if !ok { return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } case "OwnerId": @@ -1061,7 +1061,7 @@ func awsRestjson1_deserializeOpDocumentStartSnapshotOutput(v **StartSnapshotOutp if !ok { return fmt.Errorf("expected OwnerId to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "ParentSnapshotId": @@ -1070,7 +1070,7 @@ func awsRestjson1_deserializeOpDocumentStartSnapshotOutput(v **StartSnapshotOutp if !ok { return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.ParentSnapshotId = &jtv + sv.ParentSnapshotId = ptr.String(jtv) } case "SnapshotId": @@ -1079,7 +1079,7 @@ func awsRestjson1_deserializeOpDocumentStartSnapshotOutput(v **StartSnapshotOutp if !ok { return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.SnapshotId = &jtv + sv.SnapshotId = ptr.String(jtv) } case "StartTime": @@ -1119,7 +1119,7 @@ func awsRestjson1_deserializeOpDocumentStartSnapshotOutput(v **StartSnapshotOutp if err != nil { return err } - sv.VolumeSize = &i64 + sv.VolumeSize = ptr.Int64(i64) } default: @@ -1447,7 +1447,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Reason": @@ -1509,7 +1509,7 @@ func awsRestjson1_deserializeDocumentBlock(v **types.Block, value interface{}) e if !ok { return fmt.Errorf("expected BlockToken to be of type string, got %T instead", value) } - sv.BlockToken = &jtv + sv.BlockToken = ptr.String(jtv) } default: @@ -1521,7 +1521,7 @@ func awsRestjson1_deserializeDocumentBlock(v **types.Block, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentBlocks(v *[]*types.Block, value interface{}) error { +func awsRestjson1_deserializeDocumentBlocks(v *[]types.Block, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1534,18 +1534,20 @@ func awsRestjson1_deserializeDocumentBlocks(v *[]*types.Block, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Block + var cv []types.Block if *v == nil { - cv = []*types.Block{} + cv = []types.Block{} } else { cv = *v } for _, value := range shape { - var col *types.Block - if err := awsRestjson1_deserializeDocumentBlock(&col, value); err != nil { + var col types.Block + destAddr := &col + if err := awsRestjson1_deserializeDocumentBlock(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1594,7 +1596,7 @@ func awsRestjson1_deserializeDocumentChangedBlock(v **types.ChangedBlock, value if !ok { return fmt.Errorf("expected BlockToken to be of type string, got %T instead", value) } - sv.FirstBlockToken = &jtv + sv.FirstBlockToken = ptr.String(jtv) } case "SecondBlockToken": @@ -1603,7 +1605,7 @@ func awsRestjson1_deserializeDocumentChangedBlock(v **types.ChangedBlock, value if !ok { return fmt.Errorf("expected BlockToken to be of type string, got %T instead", value) } - sv.SecondBlockToken = &jtv + sv.SecondBlockToken = ptr.String(jtv) } default: @@ -1615,7 +1617,7 @@ func awsRestjson1_deserializeDocumentChangedBlock(v **types.ChangedBlock, value return nil } -func awsRestjson1_deserializeDocumentChangedBlocks(v *[]*types.ChangedBlock, value interface{}) error { +func awsRestjson1_deserializeDocumentChangedBlocks(v *[]types.ChangedBlock, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1628,18 +1630,20 @@ func awsRestjson1_deserializeDocumentChangedBlocks(v *[]*types.ChangedBlock, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ChangedBlock + var cv []types.ChangedBlock if *v == nil { - cv = []*types.ChangedBlock{} + cv = []types.ChangedBlock{} } else { cv = *v } for _, value := range shape { - var col *types.ChangedBlock - if err := awsRestjson1_deserializeDocumentChangedBlock(&col, value); err != nil { + var col types.ChangedBlock + destAddr := &col + if err := awsRestjson1_deserializeDocumentChangedBlock(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1675,7 +1679,7 @@ func awsRestjson1_deserializeDocumentConcurrentLimitExceededException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1715,7 +1719,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1755,7 +1759,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1795,7 +1799,7 @@ func awsRestjson1_deserializeDocumentRequestThrottledException(v **types.Request if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Reason": @@ -1844,7 +1848,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Reason": @@ -1893,7 +1897,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Reason": @@ -1942,7 +1946,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -1951,7 +1955,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -1963,7 +1967,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1976,18 +1980,20 @@ func awsRestjson1_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2023,7 +2029,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Reason": diff --git a/service/ebs/go.mod b/service/ebs/go.mod index 4c789784e17..753cb815352 100644 --- a/service/ebs/go.mod +++ b/service/ebs/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/ebs go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/ebs/serializers.go b/service/ebs/serializers.go index 77deb0eb040..6c03c0a14b0 100644 --- a/service/ebs/serializers.go +++ b/service/ebs/serializers.go @@ -70,11 +70,9 @@ func awsRestjson1_serializeOpHttpBindingsCompleteSnapshotInput(v *CompleteSnapsh encoder.SetHeader(locationName).Integer(*v.ChangedBlocksCount) } - if v.Checksum != nil { + if v.Checksum != nil && len(*v.Checksum) > 0 { locationName := "X-Amz-Checksum" - if len(*v.Checksum) > 0 { - encoder.SetHeader(locationName).String(*v.Checksum) - } + encoder.SetHeader(locationName).String(*v.Checksum) } if len(v.ChecksumAggregationMethod) > 0 { @@ -87,13 +85,10 @@ func awsRestjson1_serializeOpHttpBindingsCompleteSnapshotInput(v *CompleteSnapsh encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm)) } - if v.SnapshotId == nil { + if v.SnapshotId == nil || len(*v.SnapshotId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SnapshotId must not be empty")} } if v.SnapshotId != nil { - if len(*v.SnapshotId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SnapshotId must not be empty")} - } if err := encoder.SetURI("SnapshotId").String(*v.SnapshotId); err != nil { return err } @@ -166,13 +161,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSnapshotBlockInput(v *GetSnapshotBlo encoder.SetQuery("blockToken").String(*v.BlockToken) } - if v.SnapshotId == nil { + if v.SnapshotId == nil || len(*v.SnapshotId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SnapshotId must not be empty")} } if v.SnapshotId != nil { - if len(*v.SnapshotId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SnapshotId must not be empty")} - } if err := encoder.SetURI("SnapshotId").String(*v.SnapshotId); err != nil { return err } @@ -244,13 +236,10 @@ func awsRestjson1_serializeOpHttpBindingsListChangedBlocksInput(v *ListChangedBl encoder.SetQuery("pageToken").String(*v.NextToken) } - if v.SecondSnapshotId == nil { + if v.SecondSnapshotId == nil || len(*v.SecondSnapshotId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SecondSnapshotId must not be empty")} } if v.SecondSnapshotId != nil { - if len(*v.SecondSnapshotId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SecondSnapshotId must not be empty")} - } if err := encoder.SetURI("SecondSnapshotId").String(*v.SecondSnapshotId); err != nil { return err } @@ -322,13 +311,10 @@ func awsRestjson1_serializeOpHttpBindingsListSnapshotBlocksInput(v *ListSnapshot encoder.SetQuery("pageToken").String(*v.NextToken) } - if v.SnapshotId == nil { + if v.SnapshotId == nil || len(*v.SnapshotId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SnapshotId must not be empty")} } if v.SnapshotId != nil { - if len(*v.SnapshotId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SnapshotId must not be empty")} - } if err := encoder.SetURI("SnapshotId").String(*v.SnapshotId); err != nil { return err } @@ -412,11 +398,9 @@ func awsRestjson1_serializeOpHttpBindingsPutSnapshotBlockInput(v *PutSnapshotBlo } } - if v.Checksum != nil { + if v.Checksum != nil && len(*v.Checksum) > 0 { locationName := "X-Amz-Checksum" - if len(*v.Checksum) > 0 { - encoder.SetHeader(locationName).String(*v.Checksum) - } + encoder.SetHeader(locationName).String(*v.Checksum) } if len(v.ChecksumAlgorithm) > 0 { @@ -434,13 +418,10 @@ func awsRestjson1_serializeOpHttpBindingsPutSnapshotBlockInput(v *PutSnapshotBlo encoder.SetHeader(locationName).Integer(*v.Progress) } - if v.SnapshotId == nil { + if v.SnapshotId == nil || len(*v.SnapshotId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SnapshotId must not be empty")} } if v.SnapshotId != nil { - if len(*v.SnapshotId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SnapshotId must not be empty")} - } if err := encoder.SetURI("SnapshotId").String(*v.SnapshotId); err != nil { return err } @@ -576,17 +557,13 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/ec2/api_op_AcceptReservedInstancesExchangeQuote.go b/service/ec2/api_op_AcceptReservedInstancesExchangeQuote.go index 0b028f4ebd4..01a784d52a2 100644 --- a/service/ec2/api_op_AcceptReservedInstancesExchangeQuote.go +++ b/service/ec2/api_op_AcceptReservedInstancesExchangeQuote.go @@ -35,17 +35,17 @@ type AcceptReservedInstancesExchangeQuoteInput struct { // Convertible Reserved Instance of the same or higher value. // // This member is required. - ReservedInstanceIds []*string + ReservedInstanceIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The configuration of the target Convertible Reserved Instance to exchange for // your current Convertible Reserved Instances. - TargetConfigurations []*types.TargetConfigurationRequest + TargetConfigurations []types.TargetConfigurationRequest } // The result of the exchange and whether it was successful. diff --git a/service/ec2/api_op_AcceptTransitGatewayPeeringAttachment.go b/service/ec2/api_op_AcceptTransitGatewayPeeringAttachment.go index e3d3d2f6053..3cdbffc3808 100644 --- a/service/ec2/api_op_AcceptTransitGatewayPeeringAttachment.go +++ b/service/ec2/api_op_AcceptTransitGatewayPeeringAttachment.go @@ -39,7 +39,7 @@ type AcceptTransitGatewayPeeringAttachmentInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type AcceptTransitGatewayPeeringAttachmentOutput struct { diff --git a/service/ec2/api_op_AcceptTransitGatewayVpcAttachment.go b/service/ec2/api_op_AcceptTransitGatewayVpcAttachment.go index c1ad595e33d..2ef50799b8a 100644 --- a/service/ec2/api_op_AcceptTransitGatewayVpcAttachment.go +++ b/service/ec2/api_op_AcceptTransitGatewayVpcAttachment.go @@ -41,7 +41,7 @@ type AcceptTransitGatewayVpcAttachmentInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type AcceptTransitGatewayVpcAttachmentOutput struct { diff --git a/service/ec2/api_op_AcceptVpcEndpointConnections.go b/service/ec2/api_op_AcceptVpcEndpointConnections.go index 6a52c381c1a..ce48a2aaf53 100644 --- a/service/ec2/api_op_AcceptVpcEndpointConnections.go +++ b/service/ec2/api_op_AcceptVpcEndpointConnections.go @@ -38,19 +38,19 @@ type AcceptVpcEndpointConnectionsInput struct { // The IDs of one or more interface VPC endpoints. // // This member is required. - VpcEndpointIds []*string + VpcEndpointIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type AcceptVpcEndpointConnectionsOutput struct { // Information about the interface endpoints that were not accepted, if applicable. - Unsuccessful []*types.UnsuccessfulItem + Unsuccessful []types.UnsuccessfulItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_AcceptVpcPeeringConnection.go b/service/ec2/api_op_AcceptVpcPeeringConnection.go index e69ac732d5f..e80e34871fa 100644 --- a/service/ec2/api_op_AcceptVpcPeeringConnection.go +++ b/service/ec2/api_op_AcceptVpcPeeringConnection.go @@ -37,7 +37,7 @@ type AcceptVpcPeeringConnectionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the VPC peering connection. You must specify this parameter in the // request. diff --git a/service/ec2/api_op_AdvertiseByoipCidr.go b/service/ec2/api_op_AdvertiseByoipCidr.go index 218d253666a..fdef830f498 100644 --- a/service/ec2/api_op_AdvertiseByoipCidr.go +++ b/service/ec2/api_op_AdvertiseByoipCidr.go @@ -48,7 +48,7 @@ type AdvertiseByoipCidrInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type AdvertiseByoipCidrOutput struct { diff --git a/service/ec2/api_op_AllocateAddress.go b/service/ec2/api_op_AllocateAddress.go index 2bd065690ee..bab73e4f353 100644 --- a/service/ec2/api_op_AllocateAddress.go +++ b/service/ec2/api_op_AllocateAddress.go @@ -69,7 +69,7 @@ type AllocateAddressInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // A unique set of Availability Zones, Local Zones, or Wavelength Zones from which // AWS advertises IP addresses. Use this parameter to limit the IP address to this diff --git a/service/ec2/api_op_AllocateHosts.go b/service/ec2/api_op_AllocateHosts.go index 8d2f84c2182..fb396e49baa 100644 --- a/service/ec2/api_op_AllocateHosts.go +++ b/service/ec2/api_op_AllocateHosts.go @@ -39,7 +39,7 @@ type AllocateHostsInput struct { // The number of Dedicated Hosts to allocate to your account with these parameters. // // This member is required. - Quantity *int32 + Quantity int32 // Indicates whether the host accepts any untargeted instance launches that match // its instance type configuration, or if it only accepts Host tenancy instance @@ -76,7 +76,7 @@ type AllocateHostsInput struct { InstanceType *string // The tags to apply to the Dedicated Host during creation. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } // Contains the output of AllocateHosts. @@ -84,7 +84,7 @@ type AllocateHostsOutput struct { // The ID of the allocated Dedicated Host. This is used to launch an instance onto // a specific host. - HostIds []*string + HostIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go b/service/ec2/api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go index 2a3a9ad7e43..9648222498a 100644 --- a/service/ec2/api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go +++ b/service/ec2/api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go @@ -39,7 +39,7 @@ type ApplySecurityGroupsToClientVpnTargetNetworkInput struct { // 5 security groups can be applied to an associated target network. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // The ID of the VPC in which the associated target network is located. // @@ -50,13 +50,13 @@ type ApplySecurityGroupsToClientVpnTargetNetworkInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ApplySecurityGroupsToClientVpnTargetNetworkOutput struct { // The IDs of the applied security groups. - SecurityGroupIds []*string + SecurityGroupIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_AssignIpv6Addresses.go b/service/ec2/api_op_AssignIpv6Addresses.go index 0d44fae11b7..13dcad3211a 100644 --- a/service/ec2/api_op_AssignIpv6Addresses.go +++ b/service/ec2/api_op_AssignIpv6Addresses.go @@ -44,17 +44,17 @@ type AssignIpv6AddressesInput struct { // The number of IPv6 addresses to assign to the network interface. Amazon EC2 // automatically selects the IPv6 addresses from the subnet range. You can't use // this option if specifying specific IPv6 addresses. - Ipv6AddressCount *int32 + Ipv6AddressCount int32 // One or more specific IPv6 addresses to be assigned to the network interface. You // can't use this option if you're specifying a number of IPv6 addresses. - Ipv6Addresses []*string + Ipv6Addresses []string } type AssignIpv6AddressesOutput struct { // The IPv6 addresses assigned to the network interface. - AssignedIpv6Addresses []*string + AssignedIpv6Addresses []string // The ID of the network interface. NetworkInterfaceId *string diff --git a/service/ec2/api_op_AssignPrivateIpAddresses.go b/service/ec2/api_op_AssignPrivateIpAddresses.go index 677160a21b8..9d75a87874d 100644 --- a/service/ec2/api_op_AssignPrivateIpAddresses.go +++ b/service/ec2/api_op_AssignPrivateIpAddresses.go @@ -54,23 +54,23 @@ type AssignPrivateIpAddressesInput struct { // Indicates whether to allow an IP address that is already assigned to another // network interface or instance to be reassigned to the specified network // interface. - AllowReassignment *bool + AllowReassignment bool // One or more IP addresses to be assigned as a secondary private IP address to the // network interface. You can't specify this parameter when also specifying a // number of secondary IP addresses. If you don't specify an IP address, Amazon EC2 // automatically selects an IP address within the subnet range. - PrivateIpAddresses []*string + PrivateIpAddresses []string // The number of secondary IP addresses to assign to the network interface. You // can't specify this parameter when also specifying private IP addresses. - SecondaryPrivateIpAddressCount *int32 + SecondaryPrivateIpAddressCount int32 } type AssignPrivateIpAddressesOutput struct { // The private IP addresses assigned to the network interface. - AssignedPrivateIpAddresses []*types.AssignedPrivateIpAddress + AssignedPrivateIpAddresses []types.AssignedPrivateIpAddress // The ID of the network interface. NetworkInterfaceId *string diff --git a/service/ec2/api_op_AssociateAddress.go b/service/ec2/api_op_AssociateAddress.go index 193c0c53f6f..71e4fde47bf 100644 --- a/service/ec2/api_op_AssociateAddress.go +++ b/service/ec2/api_op_AssociateAddress.go @@ -61,13 +61,13 @@ type AssociateAddressInput struct { // operation fails. In a VPC in an EC2-VPC-only account, reassociation is // automatic, therefore you can specify false to ensure the operation fails if the // Elastic IP address is already associated with another resource. - AllowReassociation *bool + AllowReassociation bool // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you can // specify either the instance ID or the network interface ID, but not both. The diff --git a/service/ec2/api_op_AssociateClientVpnTargetNetwork.go b/service/ec2/api_op_AssociateClientVpnTargetNetwork.go index 336f062a4f7..965deec9d2e 100644 --- a/service/ec2/api_op_AssociateClientVpnTargetNetwork.go +++ b/service/ec2/api_op_AssociateClientVpnTargetNetwork.go @@ -57,7 +57,7 @@ type AssociateClientVpnTargetNetworkInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type AssociateClientVpnTargetNetworkOutput struct { diff --git a/service/ec2/api_op_AssociateDhcpOptions.go b/service/ec2/api_op_AssociateDhcpOptions.go index 9b3fdb2c7bc..062d7c4168c 100644 --- a/service/ec2/api_op_AssociateDhcpOptions.go +++ b/service/ec2/api_op_AssociateDhcpOptions.go @@ -52,7 +52,7 @@ type AssociateDhcpOptionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type AssociateDhcpOptionsOutput struct { diff --git a/service/ec2/api_op_AssociateEnclaveCertificateIamRole.go b/service/ec2/api_op_AssociateEnclaveCertificateIamRole.go index 687084d059d..5017eb4a654 100644 --- a/service/ec2/api_op_AssociateEnclaveCertificateIamRole.go +++ b/service/ec2/api_op_AssociateEnclaveCertificateIamRole.go @@ -51,7 +51,7 @@ type AssociateEnclaveCertificateIamRoleInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ARN of the IAM role to associate with the ACM certificate. You can associate // up to 16 IAM roles with an ACM certificate. diff --git a/service/ec2/api_op_AssociateRouteTable.go b/service/ec2/api_op_AssociateRouteTable.go index 5c5fd1a9273..e9287d88d8d 100644 --- a/service/ec2/api_op_AssociateRouteTable.go +++ b/service/ec2/api_op_AssociateRouteTable.go @@ -45,7 +45,7 @@ type AssociateRouteTableInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the internet gateway or virtual private gateway. GatewayId *string diff --git a/service/ec2/api_op_AssociateTransitGatewayMulticastDomain.go b/service/ec2/api_op_AssociateTransitGatewayMulticastDomain.go index aab740fc141..9a33237d4e4 100644 --- a/service/ec2/api_op_AssociateTransitGatewayMulticastDomain.go +++ b/service/ec2/api_op_AssociateTransitGatewayMulticastDomain.go @@ -38,10 +38,10 @@ type AssociateTransitGatewayMulticastDomainInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The IDs of the subnets to associate with the transit gateway multicast domain. - SubnetIds []*string + SubnetIds []string // The ID of the transit gateway attachment to associate with the transit gateway // multicast domain. diff --git a/service/ec2/api_op_AssociateTransitGatewayRouteTable.go b/service/ec2/api_op_AssociateTransitGatewayRouteTable.go index bdac483a336..d8dd3cf35e6 100644 --- a/service/ec2/api_op_AssociateTransitGatewayRouteTable.go +++ b/service/ec2/api_op_AssociateTransitGatewayRouteTable.go @@ -44,7 +44,7 @@ type AssociateTransitGatewayRouteTableInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type AssociateTransitGatewayRouteTableOutput struct { diff --git a/service/ec2/api_op_AssociateVpcCidrBlock.go b/service/ec2/api_op_AssociateVpcCidrBlock.go index 7c958869ee5..19c7e1bd7dc 100644 --- a/service/ec2/api_op_AssociateVpcCidrBlock.go +++ b/service/ec2/api_op_AssociateVpcCidrBlock.go @@ -46,7 +46,7 @@ type AssociateVpcCidrBlockInput struct { // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the // VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR // block. - AmazonProvidedIpv6CidrBlock *bool + AmazonProvidedIpv6CidrBlock bool // An IPv4 CIDR block to associate with the VPC. CidrBlock *string diff --git a/service/ec2/api_op_AttachClassicLinkVpc.go b/service/ec2/api_op_AttachClassicLinkVpc.go index 363fa2f94a8..a2759d391ff 100644 --- a/service/ec2/api_op_AttachClassicLinkVpc.go +++ b/service/ec2/api_op_AttachClassicLinkVpc.go @@ -40,7 +40,7 @@ type AttachClassicLinkVpcInput struct { // groups from a different VPC. // // This member is required. - Groups []*string + Groups []string // The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC. // @@ -56,13 +56,13 @@ type AttachClassicLinkVpcInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type AttachClassicLinkVpcOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_AttachInternetGateway.go b/service/ec2/api_op_AttachInternetGateway.go index d0342acf225..a16d273bd11 100644 --- a/service/ec2/api_op_AttachInternetGateway.go +++ b/service/ec2/api_op_AttachInternetGateway.go @@ -45,7 +45,7 @@ type AttachInternetGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type AttachInternetGatewayOutput struct { diff --git a/service/ec2/api_op_AttachNetworkInterface.go b/service/ec2/api_op_AttachNetworkInterface.go index 31cd714c1e6..c630a49e1ea 100644 --- a/service/ec2/api_op_AttachNetworkInterface.go +++ b/service/ec2/api_op_AttachNetworkInterface.go @@ -32,7 +32,7 @@ type AttachNetworkInterfaceInput struct { // The index of the device for the network interface attachment. // // This member is required. - DeviceIndex *int32 + DeviceIndex int32 // The ID of the instance. // @@ -48,7 +48,7 @@ type AttachNetworkInterfaceInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Contains the output of AttachNetworkInterface. diff --git a/service/ec2/api_op_AttachVolume.go b/service/ec2/api_op_AttachVolume.go index 53fbcfcad2b..b20a1b25de3 100644 --- a/service/ec2/api_op_AttachVolume.go +++ b/service/ec2/api_op_AttachVolume.go @@ -76,7 +76,7 @@ type AttachVolumeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Describes volume attachment details. @@ -86,7 +86,7 @@ type AttachVolumeOutput struct { AttachTime *time.Time // Indicates whether the EBS volume is deleted on instance termination. - DeleteOnTermination *bool + DeleteOnTermination bool // The device name. Device *string diff --git a/service/ec2/api_op_AttachVpnGateway.go b/service/ec2/api_op_AttachVpnGateway.go index 6a3185226ae..ebffdd0dd52 100644 --- a/service/ec2/api_op_AttachVpnGateway.go +++ b/service/ec2/api_op_AttachVpnGateway.go @@ -47,7 +47,7 @@ type AttachVpnGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Contains the output of AttachVpnGateway. diff --git a/service/ec2/api_op_AuthorizeClientVpnIngress.go b/service/ec2/api_op_AuthorizeClientVpnIngress.go index 293e80d1114..48431712683 100644 --- a/service/ec2/api_op_AuthorizeClientVpnIngress.go +++ b/service/ec2/api_op_AuthorizeClientVpnIngress.go @@ -52,7 +52,7 @@ type AuthorizeClientVpnIngressInput struct { // Indicates whether to grant access to all clients. Specify true to grant all // clients who successfully establish a VPN connection access to the network. Must // be set to true if AccessGroupId is not specified. - AuthorizeAllGroups *bool + AuthorizeAllGroups bool // Unique, case-sensitive identifier that you provide to ensure the idempotency of // the request. For more information, see How to Ensure Idempotency @@ -66,7 +66,7 @@ type AuthorizeClientVpnIngressInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type AuthorizeClientVpnIngressOutput struct { diff --git a/service/ec2/api_op_AuthorizeSecurityGroupEgress.go b/service/ec2/api_op_AuthorizeSecurityGroupEgress.go index 6a89026945b..f2e59aefc33 100644 --- a/service/ec2/api_op_AuthorizeSecurityGroupEgress.go +++ b/service/ec2/api_op_AuthorizeSecurityGroupEgress.go @@ -51,14 +51,14 @@ type AuthorizeSecurityGroupEgressInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Not supported. Use a set of IP permissions to specify the port. - FromPort *int32 + FromPort int32 // The sets of IP permissions. You can't specify a destination security group and a // CIDR IP address range in the same set of permissions. - IpPermissions []*types.IpPermission + IpPermissions []types.IpPermission // Not supported. Use a set of IP permissions to specify the protocol name or // number. @@ -73,7 +73,7 @@ type AuthorizeSecurityGroupEgressInput struct { SourceSecurityGroupOwnerId *string // Not supported. Use a set of IP permissions to specify the port. - ToPort *int32 + ToPort int32 } type AuthorizeSecurityGroupEgressOutput struct { diff --git a/service/ec2/api_op_AuthorizeSecurityGroupIngress.go b/service/ec2/api_op_AuthorizeSecurityGroupIngress.go index 4219cb28d45..404ea9e2c3b 100644 --- a/service/ec2/api_op_AuthorizeSecurityGroupIngress.go +++ b/service/ec2/api_op_AuthorizeSecurityGroupIngress.go @@ -48,13 +48,13 @@ type AuthorizeSecurityGroupIngressInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The start of port range for the TCP and UDP protocols, or an ICMP type number. // For the ICMP type number, use -1 to specify all types. If you specify all ICMP // types, you must specify all codes. Alternatively, use a set of IP permissions to // specify multiple rules and a description for the rule. - FromPort *int32 + FromPort int32 // The ID of the security group. You must specify either the security group ID or // the security group name in the request. For security groups in a nondefault VPC, @@ -66,7 +66,7 @@ type AuthorizeSecurityGroupIngressInput struct { GroupName *string // The sets of IP permissions. - IpPermissions []*types.IpPermission + IpPermissions []types.IpPermission // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). To @@ -97,7 +97,7 @@ type AuthorizeSecurityGroupIngressInput struct { // the ICMP code number, use -1 to specify all codes. If you specify all ICMP // types, you must specify all codes. Alternatively, use a set of IP permissions to // specify multiple rules and a description for the rule. - ToPort *int32 + ToPort int32 } type AuthorizeSecurityGroupIngressOutput struct { diff --git a/service/ec2/api_op_BundleInstance.go b/service/ec2/api_op_BundleInstance.go index 6e6b42b1a5b..6563f1d9c3e 100644 --- a/service/ec2/api_op_BundleInstance.go +++ b/service/ec2/api_op_BundleInstance.go @@ -49,7 +49,7 @@ type BundleInstanceInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Contains the output of BundleInstance. diff --git a/service/ec2/api_op_CancelBundleTask.go b/service/ec2/api_op_CancelBundleTask.go index 27f3bdeab80..65129b23e0b 100644 --- a/service/ec2/api_op_CancelBundleTask.go +++ b/service/ec2/api_op_CancelBundleTask.go @@ -39,7 +39,7 @@ type CancelBundleTaskInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Contains the output of CancelBundleTask. diff --git a/service/ec2/api_op_CancelCapacityReservation.go b/service/ec2/api_op_CancelCapacityReservation.go index 5a0842ba69d..312816eaf2a 100644 --- a/service/ec2/api_op_CancelCapacityReservation.go +++ b/service/ec2/api_op_CancelCapacityReservation.go @@ -43,13 +43,13 @@ type CancelCapacityReservationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type CancelCapacityReservationOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_CancelConversionTask.go b/service/ec2/api_op_CancelConversionTask.go index f7ce19671c1..ed0d6e15a8a 100644 --- a/service/ec2/api_op_CancelConversionTask.go +++ b/service/ec2/api_op_CancelConversionTask.go @@ -43,7 +43,7 @@ type CancelConversionTaskInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The reason for canceling the conversion task. ReasonMessage *string diff --git a/service/ec2/api_op_CancelImportTask.go b/service/ec2/api_op_CancelImportTask.go index f9a5983a9af..8535c410b71 100644 --- a/service/ec2/api_op_CancelImportTask.go +++ b/service/ec2/api_op_CancelImportTask.go @@ -35,7 +35,7 @@ type CancelImportTaskInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the import image or import snapshot task to be canceled. ImportTaskId *string diff --git a/service/ec2/api_op_CancelReservedInstancesListing.go b/service/ec2/api_op_CancelReservedInstancesListing.go index ecdef826560..90bc84ec0f9 100644 --- a/service/ec2/api_op_CancelReservedInstancesListing.go +++ b/service/ec2/api_op_CancelReservedInstancesListing.go @@ -43,7 +43,7 @@ type CancelReservedInstancesListingInput struct { type CancelReservedInstancesListingOutput struct { // The Reserved Instance listing. - ReservedInstancesListings []*types.ReservedInstancesListing + ReservedInstancesListings []types.ReservedInstancesListing // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_CancelSpotFleetRequests.go b/service/ec2/api_op_CancelSpotFleetRequests.go index dd2ac414278..f0400ceefef 100644 --- a/service/ec2/api_op_CancelSpotFleetRequests.go +++ b/service/ec2/api_op_CancelSpotFleetRequests.go @@ -39,29 +39,29 @@ type CancelSpotFleetRequestsInput struct { // The IDs of the Spot Fleet requests. // // This member is required. - SpotFleetRequestIds []*string + SpotFleetRequestIds []string // Indicates whether to terminate instances for a Spot Fleet request if it is // canceled successfully. // // This member is required. - TerminateInstances *bool + TerminateInstances bool // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Contains the output of CancelSpotFleetRequests. type CancelSpotFleetRequestsOutput struct { // Information about the Spot Fleet requests that are successfully canceled. - SuccessfulFleetRequests []*types.CancelSpotFleetRequestsSuccessItem + SuccessfulFleetRequests []types.CancelSpotFleetRequestsSuccessItem // Information about the Spot Fleet requests that are not successfully canceled. - UnsuccessfulFleetRequests []*types.CancelSpotFleetRequestsErrorItem + UnsuccessfulFleetRequests []types.CancelSpotFleetRequestsErrorItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_CancelSpotInstanceRequests.go b/service/ec2/api_op_CancelSpotInstanceRequests.go index 34f011da0f2..dbfc00d6123 100644 --- a/service/ec2/api_op_CancelSpotInstanceRequests.go +++ b/service/ec2/api_op_CancelSpotInstanceRequests.go @@ -34,20 +34,20 @@ type CancelSpotInstanceRequestsInput struct { // One or more Spot Instance request IDs. // // This member is required. - SpotInstanceRequestIds []*string + SpotInstanceRequestIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Contains the output of CancelSpotInstanceRequests. type CancelSpotInstanceRequestsOutput struct { // One or more Spot Instance requests. - CancelledSpotInstanceRequests []*types.CancelledSpotInstanceRequest + CancelledSpotInstanceRequests []types.CancelledSpotInstanceRequest // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ConfirmProductInstance.go b/service/ec2/api_op_ConfirmProductInstance.go index b005bc2166c..fdc3e7d8159 100644 --- a/service/ec2/api_op_ConfirmProductInstance.go +++ b/service/ec2/api_op_ConfirmProductInstance.go @@ -44,7 +44,7 @@ type ConfirmProductInstanceInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ConfirmProductInstanceOutput struct { @@ -55,7 +55,7 @@ type ConfirmProductInstanceOutput struct { // The return value of the request. Returns true if the specified product code is // owned by the requester and associated with the specified instance. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_CopyFpgaImage.go b/service/ec2/api_op_CopyFpgaImage.go index 8bd33774456..efaad535967 100644 --- a/service/ec2/api_op_CopyFpgaImage.go +++ b/service/ec2/api_op_CopyFpgaImage.go @@ -50,7 +50,7 @@ type CopyFpgaImageInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The name for the new AFI. The default is the name of the source AFI. Name *string diff --git a/service/ec2/api_op_CopyImage.go b/service/ec2/api_op_CopyImage.go index 64148e45ab2..872dfec5fc5 100644 --- a/service/ec2/api_op_CopyImage.go +++ b/service/ec2/api_op_CopyImage.go @@ -65,7 +65,7 @@ type CopyImageInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Specifies whether the destination snapshots of the copied image should be // encrypted. You can encrypt a copy of an unencrypted snapshot, but you cannot @@ -74,7 +74,7 @@ type CopyImageInput struct { // using KmsKeyId. For more information, see Amazon EBS Encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. - Encrypted *bool + Encrypted bool // An identifier for the symmetric AWS Key Management Service (AWS KMS) customer // master key (CMK) to use when creating the encrypted volume. This parameter is diff --git a/service/ec2/api_op_CopySnapshot.go b/service/ec2/api_op_CopySnapshot.go index 6e39dda97ae..9426ea2a80a 100644 --- a/service/ec2/api_op_CopySnapshot.go +++ b/service/ec2/api_op_CopySnapshot.go @@ -63,7 +63,7 @@ type CopySnapshotInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // To encrypt a copy of an unencrypted snapshot if encryption by default is not // enabled, enable encryption using this parameter. Otherwise, omit this parameter. @@ -72,7 +72,7 @@ type CopySnapshotInput struct { // For more information, see Amazon EBS Encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. - Encrypted *bool + Encrypted bool // The identifier of the AWS Key Management Service (AWS KMS) customer master key // (CMK) to use for Amazon EBS encryption. If this parameter is not specified, your @@ -114,7 +114,7 @@ type CopySnapshotInput struct { PresignedUrl *string // The tags to apply to the new snapshot. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // Used by the SDK's PresignURL autofill customization to specify the region the of // the client's request. @@ -127,7 +127,7 @@ type CopySnapshotOutput struct { SnapshotId *string // Any tags applied to the new snapshot. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_CreateCapacityReservation.go b/service/ec2/api_op_CreateCapacityReservation.go index c175bf258ef..e7153a691de 100644 --- a/service/ec2/api_op_CreateCapacityReservation.go +++ b/service/ec2/api_op_CreateCapacityReservation.go @@ -53,7 +53,7 @@ type CreateCapacityReservationInput struct { // The number of instances for which to reserve capacity. // // This member is required. - InstanceCount *int32 + InstanceCount int32 // The type of operating system for which to reserve capacity. // @@ -83,14 +83,14 @@ type CreateCapacityReservationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Indicates whether the Capacity Reservation supports EBS-optimized instances. // This optimization provides dedicated throughput to Amazon EBS and an optimized // configuration stack to provide optimal I/O performance. This optimization isn't // available with all instance types. Additional usage charges apply when using an // EBS- optimized instance. - EbsOptimized *bool + EbsOptimized bool // The date and time at which the Capacity Reservation expires. When a Capacity // Reservation expires, the reserved capacity is released and you can no longer @@ -117,7 +117,7 @@ type CreateCapacityReservationInput struct { // Indicates whether the Capacity Reservation supports instances with temporary, // block-level storage. - EphemeralStorage *bool + EphemeralStorage bool // Indicates the type of instance launches that the Capacity Reservation accepts. // The options include: @@ -137,7 +137,7 @@ type CreateCapacityReservationInput struct { InstanceMatchCriteria types.InstanceMatchCriteria // The tags to apply to the Capacity Reservation during launch. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can // have one of the following tenancy settings: diff --git a/service/ec2/api_op_CreateCarrierGateway.go b/service/ec2/api_op_CreateCarrierGateway.go index fde4f89c171..885d159c3f4 100644 --- a/service/ec2/api_op_CreateCarrierGateway.go +++ b/service/ec2/api_op_CreateCarrierGateway.go @@ -47,10 +47,10 @@ type CreateCarrierGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to associate with the carrier gateway. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateCarrierGatewayOutput struct { diff --git a/service/ec2/api_op_CreateClientVpnEndpoint.go b/service/ec2/api_op_CreateClientVpnEndpoint.go index bfff5549c91..7351a99b549 100644 --- a/service/ec2/api_op_CreateClientVpnEndpoint.go +++ b/service/ec2/api_op_CreateClientVpnEndpoint.go @@ -35,7 +35,7 @@ type CreateClientVpnEndpointInput struct { // Information about the authentication method to be used to authenticate clients. // // This member is required. - AuthenticationOptions []*types.ClientVpnAuthenticationRequest + AuthenticationOptions []types.ClientVpnAuthenticationRequest // The IPv4 address range, in CIDR notation, from which to assign client IP // addresses. The address range cannot overlap with the local CIDR of the VPC in @@ -81,17 +81,17 @@ type CreateClientVpnEndpointInput struct { // Information about the DNS servers to be used for DNS resolution. A Client VPN // endpoint can have up to two DNS servers. If no DNS server is specified, the DNS // address configured on the device is used for the DNS server. - DnsServers []*string + DnsServers []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The IDs of one or more security groups to apply to the target network. You must // also specify the ID of the VPC that contains the security groups. - SecurityGroupIds []*string + SecurityGroupIds []string // Specify whether to enable the self-service portal for the Client VPN endpoint. // Default Value: enabled @@ -102,10 +102,10 @@ type CreateClientVpnEndpointInput struct { // split-tunnel VPN endpoints, see Split-Tunnel AWS Client VPN Endpoint // (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html) // in the AWS Client VPN Administrator Guide. - SplitTunnel *bool + SplitTunnel bool // The tags to apply to the Client VPN endpoint during creation. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // The transport protocol to be used by the VPN session. Default value: udp TransportProtocol types.TransportProtocol @@ -117,7 +117,7 @@ type CreateClientVpnEndpointInput struct { // The port number to assign to the Client VPN endpoint for TCP and UDP traffic. // Valid Values: 443 | 1194 Default Value: 443 - VpnPort *int32 + VpnPort int32 } type CreateClientVpnEndpointOutput struct { diff --git a/service/ec2/api_op_CreateClientVpnRoute.go b/service/ec2/api_op_CreateClientVpnRoute.go index 176fb571aba..e3e35f0c9b7 100644 --- a/service/ec2/api_op_CreateClientVpnRoute.go +++ b/service/ec2/api_op_CreateClientVpnRoute.go @@ -74,7 +74,7 @@ type CreateClientVpnRouteInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type CreateClientVpnRouteOutput struct { diff --git a/service/ec2/api_op_CreateCustomerGateway.go b/service/ec2/api_op_CreateCustomerGateway.go index 067403dfb3c..04f295d7fa0 100644 --- a/service/ec2/api_op_CreateCustomerGateway.go +++ b/service/ec2/api_op_CreateCustomerGateway.go @@ -60,7 +60,7 @@ type CreateCustomerGatewayInput struct { // For devices that support BGP, the customer gateway's BGP ASN. Default: 65000 // // This member is required. - BgpAsn *int32 + BgpAsn int32 // The type of VPN connection that this customer gateway supports (ipsec.1). // @@ -78,14 +78,14 @@ type CreateCustomerGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The Internet-routable IP address for the customer gateway's outside interface. // The address must be static. PublicIp *string // The tags to apply to the customer gateway. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } // Contains the output of CreateCustomerGateway. diff --git a/service/ec2/api_op_CreateDefaultSubnet.go b/service/ec2/api_op_CreateDefaultSubnet.go index bc0e277a184..b718214460d 100644 --- a/service/ec2/api_op_CreateDefaultSubnet.go +++ b/service/ec2/api_op_CreateDefaultSubnet.go @@ -42,7 +42,7 @@ type CreateDefaultSubnetInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type CreateDefaultSubnetOutput struct { diff --git a/service/ec2/api_op_CreateDefaultVpc.go b/service/ec2/api_op_CreateDefaultVpc.go index ddb45b32858..7d1f0969d29 100644 --- a/service/ec2/api_op_CreateDefaultVpc.go +++ b/service/ec2/api_op_CreateDefaultVpc.go @@ -44,7 +44,7 @@ type CreateDefaultVpcInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type CreateDefaultVpcOutput struct { diff --git a/service/ec2/api_op_CreateDhcpOptions.go b/service/ec2/api_op_CreateDhcpOptions.go index 690107d9cf7..47e8a35ca03 100644 --- a/service/ec2/api_op_CreateDhcpOptions.go +++ b/service/ec2/api_op_CreateDhcpOptions.go @@ -75,16 +75,16 @@ type CreateDhcpOptionsInput struct { // A DHCP configuration option. // // This member is required. - DhcpConfigurations []*types.NewDhcpConfiguration + DhcpConfigurations []types.NewDhcpConfiguration // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to assign to the DHCP option. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateDhcpOptionsOutput struct { diff --git a/service/ec2/api_op_CreateEgressOnlyInternetGateway.go b/service/ec2/api_op_CreateEgressOnlyInternetGateway.go index 889bcac0cfc..a25545b4272 100644 --- a/service/ec2/api_op_CreateEgressOnlyInternetGateway.go +++ b/service/ec2/api_op_CreateEgressOnlyInternetGateway.go @@ -46,10 +46,10 @@ type CreateEgressOnlyInternetGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to assign to the egress-only internet gateway. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateEgressOnlyInternetGatewayOutput struct { diff --git a/service/ec2/api_op_CreateFleet.go b/service/ec2/api_op_CreateFleet.go index 391ac05a91e..72c8eecc470 100644 --- a/service/ec2/api_op_CreateFleet.go +++ b/service/ec2/api_op_CreateFleet.go @@ -37,7 +37,7 @@ type CreateFleetInput struct { // The configuration for the EC2 Fleet. // // This member is required. - LaunchTemplateConfigs []*types.FleetLaunchTemplateConfigRequest + LaunchTemplateConfigs []types.FleetLaunchTemplateConfigRequest // The number of units to request. // @@ -53,7 +53,7 @@ type CreateFleetInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Indicates whether running instances should be terminated if the total target // capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. @@ -63,7 +63,7 @@ type CreateFleetInput struct { OnDemandOptions *types.OnDemandOptionsRequest // Indicates whether EC2 Fleet should replace unhealthy instances. - ReplaceUnhealthyInstances *bool + ReplaceUnhealthyInstances bool // Describes the configuration of Spot Instances in an EC2 Fleet. SpotOptions *types.SpotOptionsRequest @@ -74,11 +74,11 @@ type CreateFleetInput struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template). // For information about tagging after launch, see Tagging Your Resources // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources). - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // Indicates whether running instances should be terminated when the EC2 Fleet // expires. - TerminateInstancesWithExpiration *bool + TerminateInstancesWithExpiration bool // The type of the request. By default, the EC2 Fleet places an asynchronous // request for your desired capacity, and maintains it by replenishing interrupted @@ -107,14 +107,14 @@ type CreateFleetOutput struct { // Information about the instances that could not be launched by the fleet. Valid // only when Type is set to instant. - Errors []*types.CreateFleetError + Errors []types.CreateFleetError // The ID of the EC2 Fleet. FleetId *string // Information about the instances that were launched by the fleet. Valid only when // Type is set to instant. - Instances []*types.CreateFleetInstance + Instances []types.CreateFleetInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_CreateFlowLogs.go b/service/ec2/api_op_CreateFlowLogs.go index 7536f649a69..48c672aee01 100644 --- a/service/ec2/api_op_CreateFlowLogs.go +++ b/service/ec2/api_op_CreateFlowLogs.go @@ -46,7 +46,7 @@ type CreateFlowLogsInput struct { // flow log. Constraints: Maximum of 1000 resources // // This member is required. - ResourceIds []*string + ResourceIds []string // The type of resource for which to create the flow log. For example, if you // specified a VPC ID for the ResourceId property, specify VPC for this property. @@ -74,7 +74,7 @@ type CreateFlowLogsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Specifies the destination to which the flow log data is to be published. Flow // log data can be published to a CloudWatch Logs log group or an Amazon S3 bucket. @@ -120,10 +120,10 @@ type CreateFlowLogsInput struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances), // the aggregation interval is always 60 seconds or less, regardless of the value // that you specify. Default: 600 - MaxAggregationInterval *int32 + MaxAggregationInterval int32 // The tags to apply to the flow logs. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateFlowLogsOutput struct { @@ -133,10 +133,10 @@ type CreateFlowLogsOutput struct { ClientToken *string // The IDs of the flow logs. - FlowLogIds []*string + FlowLogIds []string // Information about the flow logs that could not be created successfully. - Unsuccessful []*types.UnsuccessfulItem + Unsuccessful []types.UnsuccessfulItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_CreateFpgaImage.go b/service/ec2/api_op_CreateFpgaImage.go index abbaecdf415..dd0891c0624 100644 --- a/service/ec2/api_op_CreateFpgaImage.go +++ b/service/ec2/api_op_CreateFpgaImage.go @@ -52,7 +52,7 @@ type CreateFpgaImageInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The location in Amazon S3 for the output logs. LogsStorageLocation *types.StorageLocation @@ -61,7 +61,7 @@ type CreateFpgaImageInput struct { Name *string // The tags to apply to the FPGA image during creation. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateFpgaImageOutput struct { diff --git a/service/ec2/api_op_CreateImage.go b/service/ec2/api_op_CreateImage.go index acdddf6a942..1cf21db08c2 100644 --- a/service/ec2/api_op_CreateImage.go +++ b/service/ec2/api_op_CreateImage.go @@ -52,7 +52,7 @@ type CreateImageInput struct { // The block device mappings. This parameter cannot be used to modify the // encryption status of existing volumes or snapshots. To create an AMI with // encrypted snapshots, use the CopyImage action. - BlockDeviceMappings []*types.BlockDeviceMapping + BlockDeviceMappings []types.BlockDeviceMapping // A description for the new image. Description *string @@ -61,13 +61,13 @@ type CreateImageInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // By default, Amazon EC2 attempts to shut down and reboot the instance before // creating the image. If the 'No Reboot' option is set, Amazon EC2 doesn't shut // down the instance before creating the image. When this option is used, file // system integrity on the created image can't be guaranteed. - NoReboot *bool + NoReboot bool } type CreateImageOutput struct { diff --git a/service/ec2/api_op_CreateInstanceExportTask.go b/service/ec2/api_op_CreateInstanceExportTask.go index 6a322ca6329..6bf49fe1761 100644 --- a/service/ec2/api_op_CreateInstanceExportTask.go +++ b/service/ec2/api_op_CreateInstanceExportTask.go @@ -47,7 +47,7 @@ type CreateInstanceExportTaskInput struct { ExportToS3Task *types.ExportToS3TaskSpecification // The tags to apply to the instance export task during creation. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // The target virtualization environment. TargetEnvironment types.ExportEnvironment diff --git a/service/ec2/api_op_CreateInternetGateway.go b/service/ec2/api_op_CreateInternetGateway.go index 06c99834eec..f1e91120246 100644 --- a/service/ec2/api_op_CreateInternetGateway.go +++ b/service/ec2/api_op_CreateInternetGateway.go @@ -36,10 +36,10 @@ type CreateInternetGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to assign to the internet gateway. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateInternetGatewayOutput struct { diff --git a/service/ec2/api_op_CreateKeyPair.go b/service/ec2/api_op_CreateKeyPair.go index 0e1955d3c4e..c2820b8a326 100644 --- a/service/ec2/api_op_CreateKeyPair.go +++ b/service/ec2/api_op_CreateKeyPair.go @@ -47,10 +47,10 @@ type CreateKeyPairInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to apply to the new key pair. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } // Describes a key pair. @@ -69,7 +69,7 @@ type CreateKeyPairOutput struct { KeyPairId *string // Any tags applied to the key pair. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_CreateLaunchTemplate.go b/service/ec2/api_op_CreateLaunchTemplate.go index de7ceadac5f..ca2e57d39bc 100644 --- a/service/ec2/api_op_CreateLaunchTemplate.go +++ b/service/ec2/api_op_CreateLaunchTemplate.go @@ -54,10 +54,10 @@ type CreateLaunchTemplateInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to apply to the launch template during creation. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // A description for the first version of the launch template. VersionDescription *string diff --git a/service/ec2/api_op_CreateLaunchTemplateVersion.go b/service/ec2/api_op_CreateLaunchTemplateVersion.go index bccc6c05d11..0ec9d213e9d 100644 --- a/service/ec2/api_op_CreateLaunchTemplateVersion.go +++ b/service/ec2/api_op_CreateLaunchTemplateVersion.go @@ -50,7 +50,7 @@ type CreateLaunchTemplateVersionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the launch template. You must specify either the launch template ID or // launch template name in the request. diff --git a/service/ec2/api_op_CreateLocalGatewayRoute.go b/service/ec2/api_op_CreateLocalGatewayRoute.go index 96c0c8b3a4f..d3fc4a6e6c5 100644 --- a/service/ec2/api_op_CreateLocalGatewayRoute.go +++ b/service/ec2/api_op_CreateLocalGatewayRoute.go @@ -49,7 +49,7 @@ type CreateLocalGatewayRouteInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type CreateLocalGatewayRouteOutput struct { diff --git a/service/ec2/api_op_CreateLocalGatewayRouteTableVpcAssociation.go b/service/ec2/api_op_CreateLocalGatewayRouteTableVpcAssociation.go index 0d89aee639f..e1dc280c1e9 100644 --- a/service/ec2/api_op_CreateLocalGatewayRouteTableVpcAssociation.go +++ b/service/ec2/api_op_CreateLocalGatewayRouteTableVpcAssociation.go @@ -43,10 +43,10 @@ type CreateLocalGatewayRouteTableVpcAssociationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to assign to the local gateway route table VPC association. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateLocalGatewayRouteTableVpcAssociationOutput struct { diff --git a/service/ec2/api_op_CreateManagedPrefixList.go b/service/ec2/api_op_CreateManagedPrefixList.go index ab4fcf60799..1964557ae3e 100644 --- a/service/ec2/api_op_CreateManagedPrefixList.go +++ b/service/ec2/api_op_CreateManagedPrefixList.go @@ -41,7 +41,7 @@ type CreateManagedPrefixListInput struct { // The maximum number of entries for the prefix list. // // This member is required. - MaxEntries *int32 + MaxEntries int32 // A name for the prefix list. Constraints: Up to 255 characters in length. The // name cannot start with com.amazonaws. @@ -59,13 +59,13 @@ type CreateManagedPrefixListInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more entries for the prefix list. - Entries []*types.AddPrefixListEntry + Entries []types.AddPrefixListEntry // The tags to apply to the prefix list during creation. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateManagedPrefixListOutput struct { diff --git a/service/ec2/api_op_CreateNatGateway.go b/service/ec2/api_op_CreateNatGateway.go index 77ebbd52299..72d53a1eae2 100644 --- a/service/ec2/api_op_CreateNatGateway.go +++ b/service/ec2/api_op_CreateNatGateway.go @@ -58,10 +58,10 @@ type CreateNatGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to assign to the NAT gateway. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateNatGatewayOutput struct { diff --git a/service/ec2/api_op_CreateNetworkAcl.go b/service/ec2/api_op_CreateNetworkAcl.go index 2675ea08bd7..28e5cec0455 100644 --- a/service/ec2/api_op_CreateNetworkAcl.go +++ b/service/ec2/api_op_CreateNetworkAcl.go @@ -42,10 +42,10 @@ type CreateNetworkAclInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to assign to the network ACL. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateNetworkAclOutput struct { diff --git a/service/ec2/api_op_CreateNetworkAclEntry.go b/service/ec2/api_op_CreateNetworkAclEntry.go index 4b592a010d2..930fc8989e2 100644 --- a/service/ec2/api_op_CreateNetworkAclEntry.go +++ b/service/ec2/api_op_CreateNetworkAclEntry.go @@ -46,7 +46,7 @@ type CreateNetworkAclEntryInput struct { // subnet). // // This member is required. - Egress *bool + Egress bool // The ID of the network ACL. // @@ -74,7 +74,7 @@ type CreateNetworkAclEntryInput struct { // The range 32767 to 65535 is reserved for internal use. // // This member is required. - RuleNumber *int32 + RuleNumber int32 // The IPv4 network range to allow or deny, in CIDR notation (for example // 172.16.0.0/24). We modify the specified CIDR block to its canonical form; for @@ -85,7 +85,7 @@ type CreateNetworkAclEntryInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol // 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block. diff --git a/service/ec2/api_op_CreateNetworkInterface.go b/service/ec2/api_op_CreateNetworkInterface.go index eee6cd27bdc..f793237795d 100644 --- a/service/ec2/api_op_CreateNetworkInterface.go +++ b/service/ec2/api_op_CreateNetworkInterface.go @@ -45,10 +45,10 @@ type CreateNetworkInterfaceInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The IDs of one or more security groups. - Groups []*string + Groups []string // Indicates the type of network interface. To create an Elastic Fabric Adapter // (EFA), specify efa. For more information, see Elastic Fabric Adapter @@ -61,12 +61,12 @@ type CreateNetworkInterfaceInput struct { // this option if specifying specific IPv6 addresses. If your subnet has the // AssignIpv6AddressOnCreation attribute set to true, you can specify 0 to override // this setting. - Ipv6AddressCount *int32 + Ipv6AddressCount int32 // One or more specific IPv6 addresses from the IPv6 CIDR block range of your // subnet. You can't use this option if you're specifying a number of IPv6 // addresses. - Ipv6Addresses []*types.InstanceIpv6Address + Ipv6Addresses []types.InstanceIpv6Address // The primary private IPv4 address of the network interface. If you don't specify // an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR @@ -76,7 +76,7 @@ type CreateNetworkInterfaceInput struct { PrivateIpAddress *string // One or more private IPv4 addresses. - PrivateIpAddresses []*types.PrivateIpAddressSpecification + PrivateIpAddresses []types.PrivateIpAddressSpecification // The number of secondary private IPv4 addresses to assign to a network interface. // When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these @@ -86,10 +86,10 @@ type CreateNetworkInterfaceInput struct { // type. For more information, see IP Addresses Per ENI Per Instance Type // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) // in the Amazon Virtual Private Cloud User Guide. - SecondaryPrivateIpAddressCount *int32 + SecondaryPrivateIpAddressCount int32 // The tags to apply to the new network interface. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } // Contains the output of CreateNetworkInterface. diff --git a/service/ec2/api_op_CreateNetworkInterfacePermission.go b/service/ec2/api_op_CreateNetworkInterfacePermission.go index 9cceddf735b..7f3810438a5 100644 --- a/service/ec2/api_op_CreateNetworkInterfacePermission.go +++ b/service/ec2/api_op_CreateNetworkInterfacePermission.go @@ -52,7 +52,7 @@ type CreateNetworkInterfacePermissionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Contains the output of CreateNetworkInterfacePermission. diff --git a/service/ec2/api_op_CreatePlacementGroup.go b/service/ec2/api_op_CreatePlacementGroup.go index 129d3cad100..1ab2cb86d74 100644 --- a/service/ec2/api_op_CreatePlacementGroup.go +++ b/service/ec2/api_op_CreatePlacementGroup.go @@ -42,20 +42,20 @@ type CreatePlacementGroupInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // A name for the placement group. Must be unique within the scope of your account // for the Region. Constraints: Up to 255 ASCII characters GroupName *string // The number of partitions. Valid only when Strategy is set to partition. - PartitionCount *int32 + PartitionCount int32 // The placement strategy. Strategy types.PlacementStrategy // The tags to apply to the new placement group. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreatePlacementGroupOutput struct { diff --git a/service/ec2/api_op_CreateReservedInstancesListing.go b/service/ec2/api_op_CreateReservedInstancesListing.go index b975204ecd0..a4c5d321391 100644 --- a/service/ec2/api_op_CreateReservedInstancesListing.go +++ b/service/ec2/api_op_CreateReservedInstancesListing.go @@ -62,13 +62,13 @@ type CreateReservedInstancesListingInput struct { // in this call. // // This member is required. - InstanceCount *int32 + InstanceCount int32 // A list specifying the price of the Standard Reserved Instance for each month // remaining in the Reserved Instance term. // // This member is required. - PriceSchedules []*types.PriceScheduleSpecification + PriceSchedules []types.PriceScheduleSpecification // The ID of the active Standard Reserved Instance. // @@ -80,7 +80,7 @@ type CreateReservedInstancesListingInput struct { type CreateReservedInstancesListingOutput struct { // Information about the Standard Reserved Instance listing. - ReservedInstancesListings []*types.ReservedInstancesListing + ReservedInstancesListings []types.ReservedInstancesListing // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_CreateRoute.go b/service/ec2/api_op_CreateRoute.go index 0866fecf4b0..ba9b253eadb 100644 --- a/service/ec2/api_op_CreateRoute.go +++ b/service/ec2/api_op_CreateRoute.go @@ -72,7 +72,7 @@ type CreateRouteInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // [IPv6 traffic only] The ID of an egress-only internet gateway. EgressOnlyInternetGatewayId *string @@ -103,7 +103,7 @@ type CreateRouteInput struct { type CreateRouteOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_CreateRouteTable.go b/service/ec2/api_op_CreateRouteTable.go index 2b0f6423000..9f0b68fcf70 100644 --- a/service/ec2/api_op_CreateRouteTable.go +++ b/service/ec2/api_op_CreateRouteTable.go @@ -42,10 +42,10 @@ type CreateRouteTableInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to assign to the route table. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateRouteTableOutput struct { diff --git a/service/ec2/api_op_CreateSecurityGroup.go b/service/ec2/api_op_CreateSecurityGroup.go index 8c336c3fedf..30551d2217f 100644 --- a/service/ec2/api_op_CreateSecurityGroup.go +++ b/service/ec2/api_op_CreateSecurityGroup.go @@ -67,10 +67,10 @@ type CreateSecurityGroupInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to assign to the security group. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // [EC2-VPC] The ID of the VPC. Required for EC2-VPC. VpcId *string @@ -82,7 +82,7 @@ type CreateSecurityGroupOutput struct { GroupId *string // The tags assigned to the security group. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_CreateSnapshot.go b/service/ec2/api_op_CreateSnapshot.go index 01bff22e41b..142ea7f21ab 100644 --- a/service/ec2/api_op_CreateSnapshot.go +++ b/service/ec2/api_op_CreateSnapshot.go @@ -67,10 +67,10 @@ type CreateSnapshotInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to apply to the snapshot during creation. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } // Describes a snapshot. @@ -88,7 +88,7 @@ type CreateSnapshotOutput struct { Description *string // Indicates whether the snapshot is encrypted. - Encrypted *bool + Encrypted bool // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) // customer master key (CMK) that was used to protect the volume encryption key for @@ -125,7 +125,7 @@ type CreateSnapshotOutput struct { StateMessage *string // Any tags assigned to the snapshot. - Tags []*types.Tag + Tags []types.Tag // The ID of the volume that was used to create the snapshot. Snapshots created by // the CopySnapshot action have an arbitrary volume ID that should not be used for @@ -133,7 +133,7 @@ type CreateSnapshotOutput struct { VolumeId *string // The size of the volume, in GiB. - VolumeSize *int32 + VolumeSize int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_CreateSnapshots.go b/service/ec2/api_op_CreateSnapshots.go index 8933ffc8d70..c7a345e94b3 100644 --- a/service/ec2/api_op_CreateSnapshots.go +++ b/service/ec2/api_op_CreateSnapshots.go @@ -47,16 +47,16 @@ type CreateSnapshotsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Tags to apply to every snapshot specified by the instance. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateSnapshotsOutput struct { // List of snapshots. - Snapshots []*types.SnapshotInfo + Snapshots []types.SnapshotInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_CreateSpotDatafeedSubscription.go b/service/ec2/api_op_CreateSpotDatafeedSubscription.go index 21b95988ec6..8912949d619 100644 --- a/service/ec2/api_op_CreateSpotDatafeedSubscription.go +++ b/service/ec2/api_op_CreateSpotDatafeedSubscription.go @@ -46,7 +46,7 @@ type CreateSpotDatafeedSubscriptionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The prefix for the data feed file names. Prefix *string diff --git a/service/ec2/api_op_CreateSubnet.go b/service/ec2/api_op_CreateSubnet.go index 47ce075320d..905866bc0b3 100644 --- a/service/ec2/api_op_CreateSubnet.go +++ b/service/ec2/api_op_CreateSubnet.go @@ -73,7 +73,7 @@ type CreateSubnetInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The IPv6 network range for the subnet, in CIDR notation. The subnet size must // use a /64 prefix length. @@ -84,7 +84,7 @@ type CreateSubnetInput struct { OutpostArn *string // The tags to assign to the subnet. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateSubnetOutput struct { diff --git a/service/ec2/api_op_CreateTags.go b/service/ec2/api_op_CreateTags.go index 4f9c2d9680b..43c762533db 100644 --- a/service/ec2/api_op_CreateTags.go +++ b/service/ec2/api_op_CreateTags.go @@ -43,20 +43,20 @@ type CreateTagsInput struct { // IDs. We recommend breaking up this request into smaller batches. // // This member is required. - Resources []*string + Resources []string // The tags. The value parameter is required, but if you don't want the tag to have // a value, specify the parameter with no value, and we set the value to an empty // string. // // This member is required. - Tags []*types.Tag + Tags []types.Tag // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type CreateTagsOutput struct { diff --git a/service/ec2/api_op_CreateTrafficMirrorFilter.go b/service/ec2/api_op_CreateTrafficMirrorFilter.go index e096cf0aada..a8755e04bec 100644 --- a/service/ec2/api_op_CreateTrafficMirrorFilter.go +++ b/service/ec2/api_op_CreateTrafficMirrorFilter.go @@ -49,10 +49,10 @@ type CreateTrafficMirrorFilterInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to assign to a Traffic Mirror filter. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateTrafficMirrorFilterOutput struct { diff --git a/service/ec2/api_op_CreateTrafficMirrorFilterRule.go b/service/ec2/api_op_CreateTrafficMirrorFilterRule.go index 1808713d95d..229325c1eb0 100644 --- a/service/ec2/api_op_CreateTrafficMirrorFilterRule.go +++ b/service/ec2/api_op_CreateTrafficMirrorFilterRule.go @@ -47,7 +47,7 @@ type CreateTrafficMirrorFilterRuleInput struct { // order by rule number. // // This member is required. - RuleNumber *int32 + RuleNumber int32 // The source CIDR block to assign to the Traffic Mirror rule. // @@ -79,13 +79,13 @@ type CreateTrafficMirrorFilterRuleInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The protocol, for example UDP, to assign to the Traffic Mirror rule. For // information about the protocol value, see Protocol Numbers // (https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml) on // the Internet Assigned Numbers Authority (IANA) website. - Protocol *int32 + Protocol int32 // The source port range. SourcePortRange *types.TrafficMirrorPortRangeRequest diff --git a/service/ec2/api_op_CreateTrafficMirrorSession.go b/service/ec2/api_op_CreateTrafficMirrorSession.go index 0c11620c234..eb50d2e5626 100644 --- a/service/ec2/api_op_CreateTrafficMirrorSession.go +++ b/service/ec2/api_op_CreateTrafficMirrorSession.go @@ -48,7 +48,7 @@ type CreateTrafficMirrorSessionInput struct { // is the one that mirrors the packets. Valid values are 1-32766. // // This member is required. - SessionNumber *int32 + SessionNumber int32 // The ID of the Traffic Mirror filter. // @@ -72,7 +72,7 @@ type CreateTrafficMirrorSessionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The number of bytes in each packet to mirror. These are bytes after the VXLAN // header. Do not specify this parameter when you want to mirror the entire packet. @@ -81,15 +81,15 @@ type CreateTrafficMirrorSessionInput struct { // bytes that meet the filter criteria are copied to the target. If you do not want // to mirror the entire packet, use the PacketLength parameter to specify the // number of bytes in each packet to mirror. - PacketLength *int32 + PacketLength int32 // The tags to assign to a Traffic Mirror session. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // The VXLAN ID for the Traffic Mirror session. For more information about the // VXLAN protocol, see RFC 7348 (https://tools.ietf.org/html/rfc7348). If you do // not specify a VirtualNetworkId, an account-wide unique id is chosen at random. - VirtualNetworkId *int32 + VirtualNetworkId int32 } type CreateTrafficMirrorSessionOutput struct { diff --git a/service/ec2/api_op_CreateTrafficMirrorTarget.go b/service/ec2/api_op_CreateTrafficMirrorTarget.go index 8c469b38724..3f5dc01db72 100644 --- a/service/ec2/api_op_CreateTrafficMirrorTarget.go +++ b/service/ec2/api_op_CreateTrafficMirrorTarget.go @@ -48,7 +48,7 @@ type CreateTrafficMirrorTargetInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The network interface ID that is associated with the target. NetworkInterfaceId *string @@ -58,7 +58,7 @@ type CreateTrafficMirrorTargetInput struct { NetworkLoadBalancerArn *string // The tags to assign to the Traffic Mirror target. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateTrafficMirrorTargetOutput struct { diff --git a/service/ec2/api_op_CreateTransitGateway.go b/service/ec2/api_op_CreateTransitGateway.go index 47abc12d4a7..284cb263f67 100644 --- a/service/ec2/api_op_CreateTransitGateway.go +++ b/service/ec2/api_op_CreateTransitGateway.go @@ -51,13 +51,13 @@ type CreateTransitGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The transit gateway options. Options *types.TransitGatewayRequestOptions // The tags to apply to the transit gateway. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateTransitGatewayOutput struct { diff --git a/service/ec2/api_op_CreateTransitGatewayMulticastDomain.go b/service/ec2/api_op_CreateTransitGatewayMulticastDomain.go index f96628b6eff..6f8ea645fb7 100644 --- a/service/ec2/api_op_CreateTransitGatewayMulticastDomain.go +++ b/service/ec2/api_op_CreateTransitGatewayMulticastDomain.go @@ -42,10 +42,10 @@ type CreateTransitGatewayMulticastDomainInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags for the transit gateway multicast domain. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateTransitGatewayMulticastDomainOutput struct { diff --git a/service/ec2/api_op_CreateTransitGatewayPeeringAttachment.go b/service/ec2/api_op_CreateTransitGatewayPeeringAttachment.go index e306167892d..e0e464da276 100644 --- a/service/ec2/api_op_CreateTransitGatewayPeeringAttachment.go +++ b/service/ec2/api_op_CreateTransitGatewayPeeringAttachment.go @@ -57,10 +57,10 @@ type CreateTransitGatewayPeeringAttachmentInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to apply to the transit gateway peering attachment. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateTransitGatewayPeeringAttachmentOutput struct { diff --git a/service/ec2/api_op_CreateTransitGatewayPrefixListReference.go b/service/ec2/api_op_CreateTransitGatewayPrefixListReference.go index eaeb43cfee0..8ea399d008e 100644 --- a/service/ec2/api_op_CreateTransitGatewayPrefixListReference.go +++ b/service/ec2/api_op_CreateTransitGatewayPrefixListReference.go @@ -41,13 +41,13 @@ type CreateTransitGatewayPrefixListReferenceInput struct { TransitGatewayRouteTableId *string // Indicates whether to drop traffic that matches this route. - Blackhole *bool + Blackhole bool // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the attachment to which traffic is routed. TransitGatewayAttachmentId *string diff --git a/service/ec2/api_op_CreateTransitGatewayRoute.go b/service/ec2/api_op_CreateTransitGatewayRoute.go index e408a40359d..d281230d48b 100644 --- a/service/ec2/api_op_CreateTransitGatewayRoute.go +++ b/service/ec2/api_op_CreateTransitGatewayRoute.go @@ -41,13 +41,13 @@ type CreateTransitGatewayRouteInput struct { TransitGatewayRouteTableId *string // Indicates whether to drop traffic that matches this route. - Blackhole *bool + Blackhole bool // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the attachment. TransitGatewayAttachmentId *string diff --git a/service/ec2/api_op_CreateTransitGatewayRouteTable.go b/service/ec2/api_op_CreateTransitGatewayRouteTable.go index 829b5e47a6a..cdeea3b008f 100644 --- a/service/ec2/api_op_CreateTransitGatewayRouteTable.go +++ b/service/ec2/api_op_CreateTransitGatewayRouteTable.go @@ -38,10 +38,10 @@ type CreateTransitGatewayRouteTableInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to apply to the transit gateway route table. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateTransitGatewayRouteTableOutput struct { diff --git a/service/ec2/api_op_CreateTransitGatewayVpcAttachment.go b/service/ec2/api_op_CreateTransitGatewayVpcAttachment.go index 84dc3ce0a4f..9e3ccbcd760 100644 --- a/service/ec2/api_op_CreateTransitGatewayVpcAttachment.go +++ b/service/ec2/api_op_CreateTransitGatewayVpcAttachment.go @@ -39,7 +39,7 @@ type CreateTransitGatewayVpcAttachmentInput struct { // from each specified subnet. // // This member is required. - SubnetIds []*string + SubnetIds []string // The ID of the transit gateway. // @@ -55,13 +55,13 @@ type CreateTransitGatewayVpcAttachmentInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The VPC attachment options. Options *types.CreateTransitGatewayVpcAttachmentRequestOptions // The tags to apply to the VPC attachment. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateTransitGatewayVpcAttachmentOutput struct { diff --git a/service/ec2/api_op_CreateVolume.go b/service/ec2/api_op_CreateVolume.go index c86c67ae8b8..01d64537880 100644 --- a/service/ec2/api_op_CreateVolume.go +++ b/service/ec2/api_op_CreateVolume.go @@ -55,7 +55,7 @@ type CreateVolumeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Specifies whether the volume should be encrypted. The effect of setting the // encryption state to true depends on the volume origin (new or from a snapshot), @@ -66,7 +66,7 @@ type CreateVolumeInput struct { // must be attached to instances that support Amazon EBS encryption. For more // information, see Supported instance types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances). - Encrypted *bool + Encrypted bool // The number of I/O operations per second (IOPS) to provision for an io1 or io2 // volume, with a maximum ratio of 50 IOPS/GiB for io1, and 500 IOPS/GiB for io2. @@ -78,7 +78,7 @@ type CreateVolumeInput struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) in the // Amazon Elastic Compute Cloud User Guide. This parameter is valid only for // Provisioned IOPS SSD (io1 and io2) volumes. - Iops *int32 + Iops int32 // The identifier of the AWS Key Management Service (AWS KMS) customer master key // (CMK) to use for Amazon EBS encryption. If this parameter is not specified, your @@ -110,7 +110,7 @@ type CreateVolumeInput struct { // Multi-Attach // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volumes-multi.html) in // the Amazon Elastic Compute Cloud User Guide. - MultiAttachEnabled *bool + MultiAttachEnabled bool // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -121,14 +121,14 @@ type CreateVolumeInput struct { // snapshot, the volume size must be equal to or larger than the snapshot size. // Default: If you're creating the volume from a snapshot and don't specify a // volume size, the default is the snapshot size. - Size *int32 + Size int32 // The snapshot from which to create the volume. You must specify either a snapshot // ID or a volume size. SnapshotId *string // The tags to apply to the volume during creation. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // The volume type. This can be gp2 for General Purpose SSD, io1 or io2 for // Provisioned IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or @@ -140,7 +140,7 @@ type CreateVolumeInput struct { type CreateVolumeOutput struct { // Information about the volume attachments. - Attachments []*types.VolumeAttachment + Attachments []types.VolumeAttachment // The Availability Zone for the volume. AvailabilityZone *string @@ -149,10 +149,10 @@ type CreateVolumeOutput struct { CreateTime *time.Time // Indicates whether the volume is encrypted. - Encrypted *bool + Encrypted bool // Indicates whether the volume was created using fast snapshot restore. - FastRestored *bool + FastRestored bool // The number of I/O operations per second (IOPS) that the volume supports. For // Provisioned IOPS SSD volumes, this represents the number of IOPS that are @@ -168,7 +168,7 @@ type CreateVolumeOutput struct { // Other instance families guarantee performance up to 32,000 IOPS. Condition: This // parameter is required for requests to create io1 and io2 volumes; it is not used // in requests to create gp2, st1, sc1, or standard volumes. - Iops *int32 + Iops int32 // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) // customer master key (CMK) that was used to protect the volume encryption key for @@ -176,13 +176,13 @@ type CreateVolumeOutput struct { KmsKeyId *string // Indicates whether Amazon EBS Multi-Attach is enabled. - MultiAttachEnabled *bool + MultiAttachEnabled bool // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string // The size of the volume, in GiBs. - Size *int32 + Size int32 // The snapshot from which the volume was created, if applicable. SnapshotId *string @@ -191,7 +191,7 @@ type CreateVolumeOutput struct { State types.VolumeState // Any tags assigned to the volume. - Tags []*types.Tag + Tags []types.Tag // The ID of the volume. VolumeId *string diff --git a/service/ec2/api_op_CreateVpc.go b/service/ec2/api_op_CreateVpc.go index 1fa63aa7f59..4b2de90beb9 100644 --- a/service/ec2/api_op_CreateVpc.go +++ b/service/ec2/api_op_CreateVpc.go @@ -57,13 +57,13 @@ type CreateVpcInput struct { // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the // VPC. You cannot specify the range of IP addresses, or the size of the CIDR // block. - AmazonProvidedIpv6CidrBlock *bool + AmazonProvidedIpv6CidrBlock bool // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tenancy options for instances launched into the VPC. For default, instances // are launched with shared tenancy by default. You can launch instances with any @@ -88,7 +88,7 @@ type CreateVpcInput struct { Ipv6Pool *string // The tags to assign to the VPC. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateVpcOutput struct { diff --git a/service/ec2/api_op_CreateVpcEndpoint.go b/service/ec2/api_op_CreateVpcEndpoint.go index 17c4ece82f1..7155d7af24c 100644 --- a/service/ec2/api_op_CreateVpcEndpoint.go +++ b/service/ec2/api_op_CreateVpcEndpoint.go @@ -63,7 +63,7 @@ type CreateVpcEndpointInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // A policy to attach to the endpoint that controls access to the service. The // policy must be in valid JSON format. If this parameter is not specified, we @@ -80,21 +80,21 @@ type CreateVpcEndpointInput struct { // zone, you must set the following VPC attributes to true: enableDnsHostnames and // enableDnsSupport. Use ModifyVpcAttribute to set the VPC attributes. Default: // true - PrivateDnsEnabled *bool + PrivateDnsEnabled bool // (Gateway endpoint) One or more route table IDs. - RouteTableIds []*string + RouteTableIds []string // (Interface endpoint) The ID of one or more security groups to associate with the // endpoint network interface. - SecurityGroupIds []*string + SecurityGroupIds []string // (Interface endpoint) The ID of one or more subnets in which to create an // endpoint network interface. - SubnetIds []*string + SubnetIds []string // The tags to associate with the endpoint. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // The type of endpoint. Default: Gateway VpcEndpointType types.VpcEndpointType diff --git a/service/ec2/api_op_CreateVpcEndpointConnectionNotification.go b/service/ec2/api_op_CreateVpcEndpointConnectionNotification.go index fd5197994e5..7b57c74e8d2 100644 --- a/service/ec2/api_op_CreateVpcEndpointConnectionNotification.go +++ b/service/ec2/api_op_CreateVpcEndpointConnectionNotification.go @@ -38,7 +38,7 @@ type CreateVpcEndpointConnectionNotificationInput struct { // Accept, Connect, Delete, and Reject. // // This member is required. - ConnectionEvents []*string + ConnectionEvents []string // The ARN of the SNS topic for the notifications. // @@ -54,7 +54,7 @@ type CreateVpcEndpointConnectionNotificationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the endpoint service. ServiceId *string diff --git a/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go b/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go index c2134383116..7e64362e301 100644 --- a/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go +++ b/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go @@ -43,11 +43,11 @@ type CreateVpcEndpointServiceConfigurationInput struct { // service. // // This member is required. - NetworkLoadBalancerArns []*string + NetworkLoadBalancerArns []string // Indicates whether requests from service consumers to create an endpoint to your // service must be accepted. To accept a request, use AcceptVpcEndpointConnections. - AcceptanceRequired *bool + AcceptanceRequired bool // Unique, case-sensitive identifier that you provide to ensure the idempotency of // the request. For more information, see How to Ensure Idempotency @@ -58,13 +58,13 @@ type CreateVpcEndpointServiceConfigurationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The private DNS name to assign to the VPC endpoint service. PrivateDnsName *string // The tags to associate with the service. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type CreateVpcEndpointServiceConfigurationOutput struct { diff --git a/service/ec2/api_op_CreateVpcPeeringConnection.go b/service/ec2/api_op_CreateVpcPeeringConnection.go index 18af99f95bc..bea6dcd1dba 100644 --- a/service/ec2/api_op_CreateVpcPeeringConnection.go +++ b/service/ec2/api_op_CreateVpcPeeringConnection.go @@ -44,7 +44,7 @@ type CreateVpcPeeringConnectionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The AWS account ID of the owner of the accepter VPC. Default: Your AWS account // ID @@ -60,7 +60,7 @@ type CreateVpcPeeringConnectionInput struct { PeerVpcId *string // The tags to assign to the peering connection. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // The ID of the requester VPC. You must specify this parameter in the request. VpcId *string diff --git a/service/ec2/api_op_CreateVpnConnection.go b/service/ec2/api_op_CreateVpnConnection.go index bb4f774b746..296b5fa6c14 100644 --- a/service/ec2/api_op_CreateVpnConnection.go +++ b/service/ec2/api_op_CreateVpnConnection.go @@ -56,13 +56,13 @@ type CreateVpnConnectionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The options for the VPN connection. Options *types.VpnConnectionOptionsSpecification // The tags to apply to the VPN connection. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // The ID of the transit gateway. If you specify a transit gateway, you cannot // specify a virtual private gateway. diff --git a/service/ec2/api_op_CreateVpnGateway.go b/service/ec2/api_op_CreateVpnGateway.go index a4f8cdb4084..6e0e164f263 100644 --- a/service/ec2/api_op_CreateVpnGateway.go +++ b/service/ec2/api_op_CreateVpnGateway.go @@ -43,7 +43,7 @@ type CreateVpnGatewayInput struct { // If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're // using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range. Default: // 64512 - AmazonSideAsn *int64 + AmazonSideAsn int64 // The Availability Zone for the virtual private gateway. AvailabilityZone *string @@ -52,10 +52,10 @@ type CreateVpnGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to apply to the virtual private gateway. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } // Contains the output of CreateVpnGateway. diff --git a/service/ec2/api_op_DeleteCarrierGateway.go b/service/ec2/api_op_DeleteCarrierGateway.go index bd5089e78e9..39a0148d288 100644 --- a/service/ec2/api_op_DeleteCarrierGateway.go +++ b/service/ec2/api_op_DeleteCarrierGateway.go @@ -41,7 +41,7 @@ type DeleteCarrierGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteCarrierGatewayOutput struct { diff --git a/service/ec2/api_op_DeleteClientVpnEndpoint.go b/service/ec2/api_op_DeleteClientVpnEndpoint.go index 5744ddffe2d..2bb84dbe59e 100644 --- a/service/ec2/api_op_DeleteClientVpnEndpoint.go +++ b/service/ec2/api_op_DeleteClientVpnEndpoint.go @@ -39,7 +39,7 @@ type DeleteClientVpnEndpointInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteClientVpnEndpointOutput struct { diff --git a/service/ec2/api_op_DeleteClientVpnRoute.go b/service/ec2/api_op_DeleteClientVpnRoute.go index 7f4f1daceb5..b948437e880 100644 --- a/service/ec2/api_op_DeleteClientVpnRoute.go +++ b/service/ec2/api_op_DeleteClientVpnRoute.go @@ -47,7 +47,7 @@ type DeleteClientVpnRouteInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the target subnet used by the route. TargetVpcSubnetId *string diff --git a/service/ec2/api_op_DeleteCustomerGateway.go b/service/ec2/api_op_DeleteCustomerGateway.go index 3858eb36b3a..f187ccbd017 100644 --- a/service/ec2/api_op_DeleteCustomerGateway.go +++ b/service/ec2/api_op_DeleteCustomerGateway.go @@ -39,7 +39,7 @@ type DeleteCustomerGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteCustomerGatewayOutput struct { diff --git a/service/ec2/api_op_DeleteDhcpOptions.go b/service/ec2/api_op_DeleteDhcpOptions.go index 1dfaef27e28..ce96467a941 100644 --- a/service/ec2/api_op_DeleteDhcpOptions.go +++ b/service/ec2/api_op_DeleteDhcpOptions.go @@ -40,7 +40,7 @@ type DeleteDhcpOptionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteDhcpOptionsOutput struct { diff --git a/service/ec2/api_op_DeleteEgressOnlyInternetGateway.go b/service/ec2/api_op_DeleteEgressOnlyInternetGateway.go index 84c564e503b..f9208fab99d 100644 --- a/service/ec2/api_op_DeleteEgressOnlyInternetGateway.go +++ b/service/ec2/api_op_DeleteEgressOnlyInternetGateway.go @@ -37,13 +37,13 @@ type DeleteEgressOnlyInternetGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteEgressOnlyInternetGatewayOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - ReturnCode *bool + ReturnCode bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DeleteFleets.go b/service/ec2/api_op_DeleteFleets.go index 51424e17f67..c0fe789a9b3 100644 --- a/service/ec2/api_op_DeleteFleets.go +++ b/service/ec2/api_op_DeleteFleets.go @@ -37,28 +37,28 @@ type DeleteFleetsInput struct { // The IDs of the EC2 Fleets. // // This member is required. - FleetIds []*string + FleetIds []string // Indicates whether to terminate instances for an EC2 Fleet if it is deleted // successfully. // // This member is required. - TerminateInstances *bool + TerminateInstances bool // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteFleetsOutput struct { // Information about the EC2 Fleets that are successfully deleted. - SuccessfulFleetDeletions []*types.DeleteFleetSuccessItem + SuccessfulFleetDeletions []types.DeleteFleetSuccessItem // Information about the EC2 Fleets that are not successfully deleted. - UnsuccessfulFleetDeletions []*types.DeleteFleetErrorItem + UnsuccessfulFleetDeletions []types.DeleteFleetErrorItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DeleteFlowLogs.go b/service/ec2/api_op_DeleteFlowLogs.go index 9e1cdb15b18..94bd11afa01 100644 --- a/service/ec2/api_op_DeleteFlowLogs.go +++ b/service/ec2/api_op_DeleteFlowLogs.go @@ -32,19 +32,19 @@ type DeleteFlowLogsInput struct { // One or more flow log IDs. Constraint: Maximum of 1000 flow log IDs. // // This member is required. - FlowLogIds []*string + FlowLogIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteFlowLogsOutput struct { // Information about the flow logs that could not be deleted successfully. - Unsuccessful []*types.UnsuccessfulItem + Unsuccessful []types.UnsuccessfulItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DeleteFpgaImage.go b/service/ec2/api_op_DeleteFpgaImage.go index f9e216ef3c6..9621abdebae 100644 --- a/service/ec2/api_op_DeleteFpgaImage.go +++ b/service/ec2/api_op_DeleteFpgaImage.go @@ -37,13 +37,13 @@ type DeleteFpgaImageInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteFpgaImageOutput struct { // Is true if the request succeeds, and an error otherwise. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DeleteInternetGateway.go b/service/ec2/api_op_DeleteInternetGateway.go index b1a15b18fd9..85ac0bd5736 100644 --- a/service/ec2/api_op_DeleteInternetGateway.go +++ b/service/ec2/api_op_DeleteInternetGateway.go @@ -38,7 +38,7 @@ type DeleteInternetGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteInternetGatewayOutput struct { diff --git a/service/ec2/api_op_DeleteKeyPair.go b/service/ec2/api_op_DeleteKeyPair.go index ecafe9cfdb6..a9fc8c7e778 100644 --- a/service/ec2/api_op_DeleteKeyPair.go +++ b/service/ec2/api_op_DeleteKeyPair.go @@ -32,7 +32,7 @@ type DeleteKeyPairInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The name of the key pair. KeyName *string diff --git a/service/ec2/api_op_DeleteLaunchTemplate.go b/service/ec2/api_op_DeleteLaunchTemplate.go index f6d2dc1a2c2..8f05450bf72 100644 --- a/service/ec2/api_op_DeleteLaunchTemplate.go +++ b/service/ec2/api_op_DeleteLaunchTemplate.go @@ -34,7 +34,7 @@ type DeleteLaunchTemplateInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the launch template. You must specify either the launch template ID or // launch template name in the request. diff --git a/service/ec2/api_op_DeleteLaunchTemplateVersions.go b/service/ec2/api_op_DeleteLaunchTemplateVersions.go index 9ff4ea123aa..a8a78559b22 100644 --- a/service/ec2/api_op_DeleteLaunchTemplateVersions.go +++ b/service/ec2/api_op_DeleteLaunchTemplateVersions.go @@ -35,13 +35,13 @@ type DeleteLaunchTemplateVersionsInput struct { // The version numbers of one or more launch template versions to delete. // // This member is required. - Versions []*string + Versions []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the launch template. You must specify either the launch template ID or // launch template name in the request. @@ -55,10 +55,10 @@ type DeleteLaunchTemplateVersionsInput struct { type DeleteLaunchTemplateVersionsOutput struct { // Information about the launch template versions that were successfully deleted. - SuccessfullyDeletedLaunchTemplateVersions []*types.DeleteLaunchTemplateVersionsResponseSuccessItem + SuccessfullyDeletedLaunchTemplateVersions []types.DeleteLaunchTemplateVersionsResponseSuccessItem // Information about the launch template versions that could not be deleted. - UnsuccessfullyDeletedLaunchTemplateVersions []*types.DeleteLaunchTemplateVersionsResponseErrorItem + UnsuccessfullyDeletedLaunchTemplateVersions []types.DeleteLaunchTemplateVersionsResponseErrorItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DeleteLocalGatewayRoute.go b/service/ec2/api_op_DeleteLocalGatewayRoute.go index 6dd17db61b7..39b77ed23f4 100644 --- a/service/ec2/api_op_DeleteLocalGatewayRoute.go +++ b/service/ec2/api_op_DeleteLocalGatewayRoute.go @@ -43,7 +43,7 @@ type DeleteLocalGatewayRouteInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteLocalGatewayRouteOutput struct { diff --git a/service/ec2/api_op_DeleteLocalGatewayRouteTableVpcAssociation.go b/service/ec2/api_op_DeleteLocalGatewayRouteTableVpcAssociation.go index a77ca358a03..8a044906144 100644 --- a/service/ec2/api_op_DeleteLocalGatewayRouteTableVpcAssociation.go +++ b/service/ec2/api_op_DeleteLocalGatewayRouteTableVpcAssociation.go @@ -38,7 +38,7 @@ type DeleteLocalGatewayRouteTableVpcAssociationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteLocalGatewayRouteTableVpcAssociationOutput struct { diff --git a/service/ec2/api_op_DeleteManagedPrefixList.go b/service/ec2/api_op_DeleteManagedPrefixList.go index 25c6039432b..384a0c5b23f 100644 --- a/service/ec2/api_op_DeleteManagedPrefixList.go +++ b/service/ec2/api_op_DeleteManagedPrefixList.go @@ -39,7 +39,7 @@ type DeleteManagedPrefixListInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteManagedPrefixListOutput struct { diff --git a/service/ec2/api_op_DeleteNatGateway.go b/service/ec2/api_op_DeleteNatGateway.go index 1f4d0677940..408656d1758 100644 --- a/service/ec2/api_op_DeleteNatGateway.go +++ b/service/ec2/api_op_DeleteNatGateway.go @@ -39,7 +39,7 @@ type DeleteNatGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteNatGatewayOutput struct { diff --git a/service/ec2/api_op_DeleteNetworkAcl.go b/service/ec2/api_op_DeleteNetworkAcl.go index 0e4c664ceea..7742c68bc20 100644 --- a/service/ec2/api_op_DeleteNetworkAcl.go +++ b/service/ec2/api_op_DeleteNetworkAcl.go @@ -38,7 +38,7 @@ type DeleteNetworkAclInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteNetworkAclOutput struct { diff --git a/service/ec2/api_op_DeleteNetworkAclEntry.go b/service/ec2/api_op_DeleteNetworkAclEntry.go index 264c0fd60cf..72d08faa8b2 100644 --- a/service/ec2/api_op_DeleteNetworkAclEntry.go +++ b/service/ec2/api_op_DeleteNetworkAclEntry.go @@ -32,7 +32,7 @@ type DeleteNetworkAclEntryInput struct { // Indicates whether the rule is an egress rule. // // This member is required. - Egress *bool + Egress bool // The ID of the network ACL. // @@ -42,13 +42,13 @@ type DeleteNetworkAclEntryInput struct { // The rule number of the entry to delete. // // This member is required. - RuleNumber *int32 + RuleNumber int32 // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteNetworkAclEntryOutput struct { diff --git a/service/ec2/api_op_DeleteNetworkInterface.go b/service/ec2/api_op_DeleteNetworkInterface.go index 8263d536694..747c7132171 100644 --- a/service/ec2/api_op_DeleteNetworkInterface.go +++ b/service/ec2/api_op_DeleteNetworkInterface.go @@ -39,7 +39,7 @@ type DeleteNetworkInterfaceInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteNetworkInterfaceOutput struct { diff --git a/service/ec2/api_op_DeleteNetworkInterfacePermission.go b/service/ec2/api_op_DeleteNetworkInterfacePermission.go index c80c850f89e..f2c7bf26abd 100644 --- a/service/ec2/api_op_DeleteNetworkInterfacePermission.go +++ b/service/ec2/api_op_DeleteNetworkInterfacePermission.go @@ -41,18 +41,18 @@ type DeleteNetworkInterfacePermissionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Specify true to remove the permission even if the network interface is attached // to an instance. - Force *bool + Force bool } // Contains the output for DeleteNetworkInterfacePermission. type DeleteNetworkInterfacePermissionOutput struct { // Returns true if the request succeeds, otherwise returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DeletePlacementGroup.go b/service/ec2/api_op_DeletePlacementGroup.go index f281ab4715c..9e10fd28e84 100644 --- a/service/ec2/api_op_DeletePlacementGroup.go +++ b/service/ec2/api_op_DeletePlacementGroup.go @@ -41,7 +41,7 @@ type DeletePlacementGroupInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeletePlacementGroupOutput struct { diff --git a/service/ec2/api_op_DeleteQueuedReservedInstances.go b/service/ec2/api_op_DeleteQueuedReservedInstances.go index f27b5cfbdee..4f944f4a958 100644 --- a/service/ec2/api_op_DeleteQueuedReservedInstances.go +++ b/service/ec2/api_op_DeleteQueuedReservedInstances.go @@ -32,22 +32,22 @@ type DeleteQueuedReservedInstancesInput struct { // The IDs of the Reserved Instances. // // This member is required. - ReservedInstancesIds []*string + ReservedInstancesIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteQueuedReservedInstancesOutput struct { // Information about the queued purchases that could not be deleted. - FailedQueuedPurchaseDeletions []*types.FailedQueuedPurchaseDeletion + FailedQueuedPurchaseDeletions []types.FailedQueuedPurchaseDeletion // Information about the queued purchases that were successfully deleted. - SuccessfulQueuedPurchaseDeletions []*types.SuccessfulQueuedPurchaseDeletion + SuccessfulQueuedPurchaseDeletions []types.SuccessfulQueuedPurchaseDeletion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DeleteRoute.go b/service/ec2/api_op_DeleteRoute.go index 5c75c7f4e38..952110383db 100644 --- a/service/ec2/api_op_DeleteRoute.go +++ b/service/ec2/api_op_DeleteRoute.go @@ -48,7 +48,7 @@ type DeleteRouteInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteRouteOutput struct { diff --git a/service/ec2/api_op_DeleteRouteTable.go b/service/ec2/api_op_DeleteRouteTable.go index 5a7bffd6ae7..4989e94466c 100644 --- a/service/ec2/api_op_DeleteRouteTable.go +++ b/service/ec2/api_op_DeleteRouteTable.go @@ -38,7 +38,7 @@ type DeleteRouteTableInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteRouteTableOutput struct { diff --git a/service/ec2/api_op_DeleteSecurityGroup.go b/service/ec2/api_op_DeleteSecurityGroup.go index ae53129298b..0458e743779 100644 --- a/service/ec2/api_op_DeleteSecurityGroup.go +++ b/service/ec2/api_op_DeleteSecurityGroup.go @@ -35,7 +35,7 @@ type DeleteSecurityGroupInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the security group. Required for a nondefault VPC. GroupId *string diff --git a/service/ec2/api_op_DeleteSnapshot.go b/service/ec2/api_op_DeleteSnapshot.go index bddf1a8b3f4..3e553d7a4cb 100644 --- a/service/ec2/api_op_DeleteSnapshot.go +++ b/service/ec2/api_op_DeleteSnapshot.go @@ -47,7 +47,7 @@ type DeleteSnapshotInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteSnapshotOutput struct { diff --git a/service/ec2/api_op_DeleteSpotDatafeedSubscription.go b/service/ec2/api_op_DeleteSpotDatafeedSubscription.go index 08288a6616a..4e0e2e87571 100644 --- a/service/ec2/api_op_DeleteSpotDatafeedSubscription.go +++ b/service/ec2/api_op_DeleteSpotDatafeedSubscription.go @@ -33,7 +33,7 @@ type DeleteSpotDatafeedSubscriptionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteSpotDatafeedSubscriptionOutput struct { diff --git a/service/ec2/api_op_DeleteSubnet.go b/service/ec2/api_op_DeleteSubnet.go index 4afe670f9dd..10695d49682 100644 --- a/service/ec2/api_op_DeleteSubnet.go +++ b/service/ec2/api_op_DeleteSubnet.go @@ -38,7 +38,7 @@ type DeleteSubnetInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteSubnetOutput struct { diff --git a/service/ec2/api_op_DeleteTags.go b/service/ec2/api_op_DeleteTags.go index 5254ab2bed4..abd4ba5de48 100644 --- a/service/ec2/api_op_DeleteTags.go +++ b/service/ec2/api_op_DeleteTags.go @@ -37,13 +37,13 @@ type DeleteTagsInput struct { // IDs. We recommend breaking up this request into smaller batches. // // This member is required. - Resources []*string + Resources []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to delete. Specify a tag key and an optional tag value to delete // specific tags. If you specify a tag key without a tag value, we delete any tag @@ -51,7 +51,7 @@ type DeleteTagsInput struct { // string as the tag value, we delete the tag only if its value is an empty string. // If you omit this parameter, we delete all user-defined tags for the specified // resources. We do not delete AWS-generated tags (tags that have the aws: prefix). - Tags []*types.Tag + Tags []types.Tag } type DeleteTagsOutput struct { diff --git a/service/ec2/api_op_DeleteTrafficMirrorFilter.go b/service/ec2/api_op_DeleteTrafficMirrorFilter.go index 43bd5fbd445..79620982811 100644 --- a/service/ec2/api_op_DeleteTrafficMirrorFilter.go +++ b/service/ec2/api_op_DeleteTrafficMirrorFilter.go @@ -38,7 +38,7 @@ type DeleteTrafficMirrorFilterInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteTrafficMirrorFilterOutput struct { diff --git a/service/ec2/api_op_DeleteTrafficMirrorFilterRule.go b/service/ec2/api_op_DeleteTrafficMirrorFilterRule.go index 25e19ed6bb7..2d7ad82398d 100644 --- a/service/ec2/api_op_DeleteTrafficMirrorFilterRule.go +++ b/service/ec2/api_op_DeleteTrafficMirrorFilterRule.go @@ -37,7 +37,7 @@ type DeleteTrafficMirrorFilterRuleInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteTrafficMirrorFilterRuleOutput struct { diff --git a/service/ec2/api_op_DeleteTrafficMirrorSession.go b/service/ec2/api_op_DeleteTrafficMirrorSession.go index bcd9b7ee3f9..f18b1ecaaf8 100644 --- a/service/ec2/api_op_DeleteTrafficMirrorSession.go +++ b/service/ec2/api_op_DeleteTrafficMirrorSession.go @@ -37,7 +37,7 @@ type DeleteTrafficMirrorSessionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteTrafficMirrorSessionOutput struct { diff --git a/service/ec2/api_op_DeleteTrafficMirrorTarget.go b/service/ec2/api_op_DeleteTrafficMirrorTarget.go index a1a7bae29bb..378f502a827 100644 --- a/service/ec2/api_op_DeleteTrafficMirrorTarget.go +++ b/service/ec2/api_op_DeleteTrafficMirrorTarget.go @@ -38,7 +38,7 @@ type DeleteTrafficMirrorTargetInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteTrafficMirrorTargetOutput struct { diff --git a/service/ec2/api_op_DeleteTransitGateway.go b/service/ec2/api_op_DeleteTransitGateway.go index ce132666fae..a7c07a81601 100644 --- a/service/ec2/api_op_DeleteTransitGateway.go +++ b/service/ec2/api_op_DeleteTransitGateway.go @@ -38,7 +38,7 @@ type DeleteTransitGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteTransitGatewayOutput struct { diff --git a/service/ec2/api_op_DeleteTransitGatewayMulticastDomain.go b/service/ec2/api_op_DeleteTransitGatewayMulticastDomain.go index 9ca4e6e62b4..e19b13760ef 100644 --- a/service/ec2/api_op_DeleteTransitGatewayMulticastDomain.go +++ b/service/ec2/api_op_DeleteTransitGatewayMulticastDomain.go @@ -38,7 +38,7 @@ type DeleteTransitGatewayMulticastDomainInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteTransitGatewayMulticastDomainOutput struct { diff --git a/service/ec2/api_op_DeleteTransitGatewayPeeringAttachment.go b/service/ec2/api_op_DeleteTransitGatewayPeeringAttachment.go index 8c80d880d9a..115ed3bca63 100644 --- a/service/ec2/api_op_DeleteTransitGatewayPeeringAttachment.go +++ b/service/ec2/api_op_DeleteTransitGatewayPeeringAttachment.go @@ -38,7 +38,7 @@ type DeleteTransitGatewayPeeringAttachmentInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteTransitGatewayPeeringAttachmentOutput struct { diff --git a/service/ec2/api_op_DeleteTransitGatewayPrefixListReference.go b/service/ec2/api_op_DeleteTransitGatewayPrefixListReference.go index a0797f2b87c..680c3f65483 100644 --- a/service/ec2/api_op_DeleteTransitGatewayPrefixListReference.go +++ b/service/ec2/api_op_DeleteTransitGatewayPrefixListReference.go @@ -44,7 +44,7 @@ type DeleteTransitGatewayPrefixListReferenceInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteTransitGatewayPrefixListReferenceOutput struct { diff --git a/service/ec2/api_op_DeleteTransitGatewayRoute.go b/service/ec2/api_op_DeleteTransitGatewayRoute.go index 6a296727c75..f89fc97a2cf 100644 --- a/service/ec2/api_op_DeleteTransitGatewayRoute.go +++ b/service/ec2/api_op_DeleteTransitGatewayRoute.go @@ -43,7 +43,7 @@ type DeleteTransitGatewayRouteInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteTransitGatewayRouteOutput struct { diff --git a/service/ec2/api_op_DeleteTransitGatewayRouteTable.go b/service/ec2/api_op_DeleteTransitGatewayRouteTable.go index 869b4e4d69b..670dcc0d86c 100644 --- a/service/ec2/api_op_DeleteTransitGatewayRouteTable.go +++ b/service/ec2/api_op_DeleteTransitGatewayRouteTable.go @@ -39,7 +39,7 @@ type DeleteTransitGatewayRouteTableInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteTransitGatewayRouteTableOutput struct { diff --git a/service/ec2/api_op_DeleteTransitGatewayVpcAttachment.go b/service/ec2/api_op_DeleteTransitGatewayVpcAttachment.go index dbcf8288b67..24cf7ed8080 100644 --- a/service/ec2/api_op_DeleteTransitGatewayVpcAttachment.go +++ b/service/ec2/api_op_DeleteTransitGatewayVpcAttachment.go @@ -38,7 +38,7 @@ type DeleteTransitGatewayVpcAttachmentInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteTransitGatewayVpcAttachmentOutput struct { diff --git a/service/ec2/api_op_DeleteVolume.go b/service/ec2/api_op_DeleteVolume.go index dc05f448ff2..d3399f7881c 100644 --- a/service/ec2/api_op_DeleteVolume.go +++ b/service/ec2/api_op_DeleteVolume.go @@ -41,7 +41,7 @@ type DeleteVolumeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteVolumeOutput struct { diff --git a/service/ec2/api_op_DeleteVpc.go b/service/ec2/api_op_DeleteVpc.go index 969d9d2ac6a..231a871b712 100644 --- a/service/ec2/api_op_DeleteVpc.go +++ b/service/ec2/api_op_DeleteVpc.go @@ -41,7 +41,7 @@ type DeleteVpcInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteVpcOutput struct { diff --git a/service/ec2/api_op_DeleteVpcEndpointConnectionNotifications.go b/service/ec2/api_op_DeleteVpcEndpointConnectionNotifications.go index bd1e08564e1..81c8a2abfcb 100644 --- a/service/ec2/api_op_DeleteVpcEndpointConnectionNotifications.go +++ b/service/ec2/api_op_DeleteVpcEndpointConnectionNotifications.go @@ -32,19 +32,19 @@ type DeleteVpcEndpointConnectionNotificationsInput struct { // One or more notification IDs. // // This member is required. - ConnectionNotificationIds []*string + ConnectionNotificationIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteVpcEndpointConnectionNotificationsOutput struct { // Information about the notifications that could not be deleted successfully. - Unsuccessful []*types.UnsuccessfulItem + Unsuccessful []types.UnsuccessfulItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DeleteVpcEndpointServiceConfigurations.go b/service/ec2/api_op_DeleteVpcEndpointServiceConfigurations.go index f39e153f5e2..a9a9469a83c 100644 --- a/service/ec2/api_op_DeleteVpcEndpointServiceConfigurations.go +++ b/service/ec2/api_op_DeleteVpcEndpointServiceConfigurations.go @@ -35,20 +35,20 @@ type DeleteVpcEndpointServiceConfigurationsInput struct { // The IDs of one or more services. // // This member is required. - ServiceIds []*string + ServiceIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteVpcEndpointServiceConfigurationsOutput struct { // Information about the service configurations that were not deleted, if // applicable. - Unsuccessful []*types.UnsuccessfulItem + Unsuccessful []types.UnsuccessfulItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DeleteVpcEndpoints.go b/service/ec2/api_op_DeleteVpcEndpoints.go index 20cc2a2d9c6..02da0ff0490 100644 --- a/service/ec2/api_op_DeleteVpcEndpoints.go +++ b/service/ec2/api_op_DeleteVpcEndpoints.go @@ -36,20 +36,20 @@ type DeleteVpcEndpointsInput struct { // One or more VPC endpoint IDs. // // This member is required. - VpcEndpointIds []*string + VpcEndpointIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Contains the output of DeleteVpcEndpoints. type DeleteVpcEndpointsOutput struct { // Information about the VPC endpoints that were not successfully deleted. - Unsuccessful []*types.UnsuccessfulItem + Unsuccessful []types.UnsuccessfulItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DeleteVpcPeeringConnection.go b/service/ec2/api_op_DeleteVpcPeeringConnection.go index 3440c70f676..0f0b23d6d5b 100644 --- a/service/ec2/api_op_DeleteVpcPeeringConnection.go +++ b/service/ec2/api_op_DeleteVpcPeeringConnection.go @@ -41,13 +41,13 @@ type DeleteVpcPeeringConnectionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteVpcPeeringConnectionOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DeleteVpnConnection.go b/service/ec2/api_op_DeleteVpnConnection.go index b22beb9bafc..998e0f3d9ca 100644 --- a/service/ec2/api_op_DeleteVpnConnection.go +++ b/service/ec2/api_op_DeleteVpnConnection.go @@ -48,7 +48,7 @@ type DeleteVpnConnectionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteVpnConnectionOutput struct { diff --git a/service/ec2/api_op_DeleteVpnGateway.go b/service/ec2/api_op_DeleteVpnGateway.go index 792c1e7de46..65523912434 100644 --- a/service/ec2/api_op_DeleteVpnGateway.go +++ b/service/ec2/api_op_DeleteVpnGateway.go @@ -41,7 +41,7 @@ type DeleteVpnGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeleteVpnGatewayOutput struct { diff --git a/service/ec2/api_op_DeprovisionByoipCidr.go b/service/ec2/api_op_DeprovisionByoipCidr.go index c7711ef64c8..cb6013b4dec 100644 --- a/service/ec2/api_op_DeprovisionByoipCidr.go +++ b/service/ec2/api_op_DeprovisionByoipCidr.go @@ -43,7 +43,7 @@ type DeprovisionByoipCidrInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeprovisionByoipCidrOutput struct { diff --git a/service/ec2/api_op_DeregisterImage.go b/service/ec2/api_op_DeregisterImage.go index a3ed05d7002..0bd5fc181e0 100644 --- a/service/ec2/api_op_DeregisterImage.go +++ b/service/ec2/api_op_DeregisterImage.go @@ -45,7 +45,7 @@ type DeregisterImageInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DeregisterImageOutput struct { diff --git a/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go b/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go index 2f04180622d..86522179666 100644 --- a/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go +++ b/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go @@ -34,7 +34,7 @@ type DeregisterInstanceEventNotificationAttributesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Information about the tag keys to deregister. InstanceTagAttribute *types.DeregisterInstanceTagAttributeRequest diff --git a/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupMembers.go b/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupMembers.go index a071e414ef7..6427940b7cb 100644 --- a/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupMembers.go +++ b/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupMembers.go @@ -34,13 +34,13 @@ type DeregisterTransitGatewayMulticastGroupMembersInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The IP address assigned to the transit gateway multicast group. GroupIpAddress *string // The IDs of the group members' network interfaces. - NetworkInterfaceIds []*string + NetworkInterfaceIds []string // The ID of the transit gateway multicast domain. TransitGatewayMulticastDomainId *string diff --git a/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupSources.go b/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupSources.go index b5dc06f93fc..7b1999e72cd 100644 --- a/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupSources.go +++ b/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupSources.go @@ -34,13 +34,13 @@ type DeregisterTransitGatewayMulticastGroupSourcesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The IP address assigned to the transit gateway multicast group. GroupIpAddress *string // The IDs of the group sources' network interfaces. - NetworkInterfaceIds []*string + NetworkInterfaceIds []string // The ID of the transit gateway multicast domain. TransitGatewayMulticastDomainId *string diff --git a/service/ec2/api_op_DescribeAccountAttributes.go b/service/ec2/api_op_DescribeAccountAttributes.go index b305433024b..7ac283f2bd8 100644 --- a/service/ec2/api_op_DescribeAccountAttributes.go +++ b/service/ec2/api_op_DescribeAccountAttributes.go @@ -61,13 +61,13 @@ type DescribeAccountAttributesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DescribeAccountAttributesOutput struct { // Information about the account attributes. - AccountAttributes []*types.AccountAttribute + AccountAttributes []types.AccountAttribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeAddresses.go b/service/ec2/api_op_DescribeAddresses.go index e462004966f..51ee98a4bd4 100644 --- a/service/ec2/api_op_DescribeAddresses.go +++ b/service/ec2/api_op_DescribeAddresses.go @@ -34,13 +34,13 @@ func (c *Client) DescribeAddresses(ctx context.Context, params *DescribeAddresse type DescribeAddressesInput struct { // [EC2-VPC] Information about the allocation IDs. - AllocationIds []*string + AllocationIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. Filter names and values are case-sensitive. // @@ -81,17 +81,17 @@ type DescribeAddressesInput struct { // * // tag-key - The key of a tag assigned to the resource. Use this filter to find all // resources assigned a tag with a specific key, regardless of the tag value. - Filters []*types.Filter + Filters []types.Filter // One or more Elastic IP addresses. Default: Describes all your Elastic IP // addresses. - PublicIps []*string + PublicIps []string } type DescribeAddressesOutput struct { // Information about the Elastic IP addresses. - Addresses []*types.Address + Addresses []types.Address // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeAggregateIdFormat.go b/service/ec2/api_op_DescribeAggregateIdFormat.go index ae1986fcf13..c7ac20b1702 100644 --- a/service/ec2/api_op_DescribeAggregateIdFormat.go +++ b/service/ec2/api_op_DescribeAggregateIdFormat.go @@ -44,18 +44,18 @@ type DescribeAggregateIdFormatInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DescribeAggregateIdFormatOutput struct { // Information about each resource's ID format. - Statuses []*types.IdFormat + Statuses []types.IdFormat // Indicates whether all resource types in the Region are configured to use longer // IDs. This value is only true if all users are configured to use longer IDs for // all resources types in the Region. - UseLongIdsAggregated *bool + UseLongIdsAggregated bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeAvailabilityZones.go b/service/ec2/api_op_DescribeAvailabilityZones.go index 8e658643d35..951158def63 100644 --- a/service/ec2/api_op_DescribeAvailabilityZones.go +++ b/service/ec2/api_op_DescribeAvailabilityZones.go @@ -38,13 +38,13 @@ type DescribeAvailabilityZonesInput struct { // Include all Availability Zones, Local Zones, and Wavelength Zones regardless of // your opt-in status. If you do not use this parameter, the results include only // the zones for the Regions where you have chosen the option to opt in. - AllAvailabilityZones *bool + AllAvailabilityZones bool // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -87,19 +87,19 @@ type DescribeAvailabilityZonesInput struct { // // * zone-type - The type of zone, // for example, local-zone. - Filters []*types.Filter + Filters []types.Filter // The IDs of the Availability Zones, Local Zones, and Wavelength Zones. - ZoneIds []*string + ZoneIds []string // The names of the Availability Zones, Local Zones, and Wavelength Zones. - ZoneNames []*string + ZoneNames []string } type DescribeAvailabilityZonesOutput struct { // Information about the Availability Zones, Local Zones, and Wavelength Zones. - AvailabilityZones []*types.AvailabilityZone + AvailabilityZones []types.AvailabilityZone // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeBundleTasks.go b/service/ec2/api_op_DescribeBundleTasks.go index ffa0bf38333..2fcd3c73df7 100644 --- a/service/ec2/api_op_DescribeBundleTasks.go +++ b/service/ec2/api_op_DescribeBundleTasks.go @@ -34,13 +34,13 @@ func (c *Client) DescribeBundleTasks(ctx context.Context, params *DescribeBundle type DescribeBundleTasksInput struct { // The bundle task IDs. Default: Describes all your bundle tasks. - BundleIds []*string + BundleIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -71,13 +71,13 @@ type DescribeBundleTasksInput struct { // // * // update-time - The time of the most recent update for the task. - Filters []*types.Filter + Filters []types.Filter } type DescribeBundleTasksOutput struct { // Information about the bundle tasks. - BundleTasks []*types.BundleTask + BundleTasks []types.BundleTask // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeByoipCidrs.go b/service/ec2/api_op_DescribeByoipCidrs.go index db35f4531f4..6aac26e8188 100644 --- a/service/ec2/api_op_DescribeByoipCidrs.go +++ b/service/ec2/api_op_DescribeByoipCidrs.go @@ -36,13 +36,13 @@ type DescribeByoipCidrsInput struct { // remaining results, make another call with the returned nextToken value. // // This member is required. - MaxResults *int32 + MaxResults int32 // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The token for the next page of results. NextToken *string @@ -51,7 +51,7 @@ type DescribeByoipCidrsInput struct { type DescribeByoipCidrsOutput struct { // Information about your address ranges. - ByoipCidrs []*types.ByoipCidr + ByoipCidrs []types.ByoipCidr // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeCapacityReservations.go b/service/ec2/api_op_DescribeCapacityReservations.go index e81e42dc89e..fb13bcc192b 100644 --- a/service/ec2/api_op_DescribeCapacityReservations.go +++ b/service/ec2/api_op_DescribeCapacityReservations.go @@ -31,13 +31,13 @@ func (c *Client) DescribeCapacityReservations(ctx context.Context, params *Descr type DescribeCapacityReservationsInput struct { // The ID of the Capacity Reservation. - CapacityReservationIds []*string + CapacityReservationIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -119,13 +119,13 @@ type DescribeCapacityReservationsInput struct { // have matching attributes (instance type, platform, and Availability Zone), and // explicitly target the Capacity Reservation. This ensures that only permitted // instances can use the reserved capacity. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the returned // nextToken value. This value can be between 5 and 500. If maxResults is given a // larger value than 500, you receive an error. - MaxResults *int32 + MaxResults int32 // The token to use to retrieve the next page of results. NextToken *string @@ -134,7 +134,7 @@ type DescribeCapacityReservationsInput struct { type DescribeCapacityReservationsOutput struct { // Information about the Capacity Reservations. - CapacityReservations []*types.CapacityReservation + CapacityReservations []types.CapacityReservation // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeCarrierGateways.go b/service/ec2/api_op_DescribeCarrierGateways.go index 37756614830..19e33e87c09 100644 --- a/service/ec2/api_op_DescribeCarrierGateways.go +++ b/service/ec2/api_op_DescribeCarrierGateways.go @@ -30,13 +30,13 @@ func (c *Client) DescribeCarrierGateways(ctx context.Context, params *DescribeCa type DescribeCarrierGatewaysInput struct { // One or more carrier gateway IDs. - CarrierGatewayIds []*string + CarrierGatewayIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -60,11 +60,11 @@ type DescribeCarrierGatewaysInput struct { // value. // // * vpc-id - The ID of the VPC associated with the carrier gateway. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -73,7 +73,7 @@ type DescribeCarrierGatewaysInput struct { type DescribeCarrierGatewaysOutput struct { // Information about the carrier gateway. - CarrierGateways []*types.CarrierGateway + CarrierGateways []types.CarrierGateway // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeClassicLinkInstances.go b/service/ec2/api_op_DescribeClassicLinkInstances.go index bf2c83e0c61..cb17b348cb9 100644 --- a/service/ec2/api_op_DescribeClassicLinkInstances.go +++ b/service/ec2/api_op_DescribeClassicLinkInstances.go @@ -36,7 +36,7 @@ type DescribeClassicLinkInstancesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -58,15 +58,15 @@ type DescribeClassicLinkInstancesInput struct { // * vpc-id - The // ID of the VPC to which the instance is linked. vpc-id - The ID of the VPC that // the instance is linked to. - Filters []*types.Filter + Filters []types.Filter // One or more instance IDs. Must be instances linked to a VPC through ClassicLink. - InstanceIds []*string + InstanceIds []string // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. // Constraint: If the value is greater than 1000, we return only 1000 items. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -75,7 +75,7 @@ type DescribeClassicLinkInstancesInput struct { type DescribeClassicLinkInstancesOutput struct { // Information about one or more linked EC2-Classic instances. - Instances []*types.ClassicLinkInstance + Instances []types.ClassicLinkInstance // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeClientVpnAuthorizationRules.go b/service/ec2/api_op_DescribeClientVpnAuthorizationRules.go index 285fbf120f9..0e606b100e3 100644 --- a/service/ec2/api_op_DescribeClientVpnAuthorizationRules.go +++ b/service/ec2/api_op_DescribeClientVpnAuthorizationRules.go @@ -38,7 +38,7 @@ type DescribeClientVpnAuthorizationRulesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. Filter names and values are case-sensitive. // @@ -50,12 +50,12 @@ type DescribeClientVpnAuthorizationRulesInput struct { // // * group-id - The ID of the // Active Directory group to which the authorization rule grants access. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the nextToken // value. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string @@ -64,7 +64,7 @@ type DescribeClientVpnAuthorizationRulesInput struct { type DescribeClientVpnAuthorizationRulesOutput struct { // Information about the authorization rules. - AuthorizationRules []*types.AuthorizationRule + AuthorizationRules []types.AuthorizationRule // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeClientVpnConnections.go b/service/ec2/api_op_DescribeClientVpnConnections.go index 18ee0bd39e3..9494ccf7e55 100644 --- a/service/ec2/api_op_DescribeClientVpnConnections.go +++ b/service/ec2/api_op_DescribeClientVpnConnections.go @@ -39,7 +39,7 @@ type DescribeClientVpnConnectionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. Filter names and values are case-sensitive. // @@ -49,12 +49,12 @@ type DescribeClientVpnConnectionsInput struct { // * username - For Active Directory // client authentication, the user name of the client who established the client // connection. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the nextToken // value. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string @@ -63,7 +63,7 @@ type DescribeClientVpnConnectionsInput struct { type DescribeClientVpnConnectionsOutput struct { // Information about the active and terminated client connections. - Connections []*types.ClientVpnConnection + Connections []types.ClientVpnConnection // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeClientVpnEndpoints.go b/service/ec2/api_op_DescribeClientVpnEndpoints.go index 985f33ea3a6..ea44446fbc4 100644 --- a/service/ec2/api_op_DescribeClientVpnEndpoints.go +++ b/service/ec2/api_op_DescribeClientVpnEndpoints.go @@ -30,13 +30,13 @@ func (c *Client) DescribeClientVpnEndpoints(ctx context.Context, params *Describ type DescribeClientVpnEndpointsInput struct { // The ID of the Client VPN endpoint. - ClientVpnEndpointIds []*string + ClientVpnEndpointIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. Filter names and values are case-sensitive. // @@ -45,12 +45,12 @@ type DescribeClientVpnEndpointsInput struct { // // * transport-protocol - The transport // protocol (tcp | udp). - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the nextToken // value. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string @@ -59,7 +59,7 @@ type DescribeClientVpnEndpointsInput struct { type DescribeClientVpnEndpointsOutput struct { // Information about the Client VPN endpoints. - ClientVpnEndpoints []*types.ClientVpnEndpoint + ClientVpnEndpoints []types.ClientVpnEndpoint // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeClientVpnRoutes.go b/service/ec2/api_op_DescribeClientVpnRoutes.go index eebf2c45b93..e7383ba6f95 100644 --- a/service/ec2/api_op_DescribeClientVpnRoutes.go +++ b/service/ec2/api_op_DescribeClientVpnRoutes.go @@ -38,7 +38,7 @@ type DescribeClientVpnRoutesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. Filter names and values are case-sensitive. // @@ -50,12 +50,12 @@ type DescribeClientVpnRoutesInput struct { // // * // target-subnet - The ID of the subnet through which traffic is routed. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the nextToken // value. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string @@ -68,7 +68,7 @@ type DescribeClientVpnRoutesOutput struct { NextToken *string // Information about the Client VPN endpoint routes. - Routes []*types.ClientVpnRoute + Routes []types.ClientVpnRoute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeClientVpnTargetNetworks.go b/service/ec2/api_op_DescribeClientVpnTargetNetworks.go index 713d6e9cfe9..5a07c3a4f14 100644 --- a/service/ec2/api_op_DescribeClientVpnTargetNetworks.go +++ b/service/ec2/api_op_DescribeClientVpnTargetNetworks.go @@ -35,13 +35,13 @@ type DescribeClientVpnTargetNetworksInput struct { ClientVpnEndpointId *string // The IDs of the target network associations. - AssociationIds []*string + AssociationIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. Filter names and values are case-sensitive. // @@ -53,12 +53,12 @@ type DescribeClientVpnTargetNetworksInput struct { // // * vpc-id - The ID of the VPC in which // the target network is located. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the nextToken // value. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string @@ -67,7 +67,7 @@ type DescribeClientVpnTargetNetworksInput struct { type DescribeClientVpnTargetNetworksOutput struct { // Information about the associated target networks. - ClientVpnTargetNetworks []*types.TargetNetwork + ClientVpnTargetNetworks []types.TargetNetwork // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeCoipPools.go b/service/ec2/api_op_DescribeCoipPools.go index 6e69e60209f..9fe3f1ddac3 100644 --- a/service/ec2/api_op_DescribeCoipPools.go +++ b/service/ec2/api_op_DescribeCoipPools.go @@ -34,7 +34,7 @@ type DescribeCoipPoolsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. The following are the possible values: // @@ -42,23 +42,23 @@ type DescribeCoipPoolsInput struct { // // * // coip-pool.local-gateway-route-table-id - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The IDs of the address pools. - PoolIds []*string + PoolIds []string } type DescribeCoipPoolsOutput struct { // Information about the address pools. - CoipPools []*types.CoipPool + CoipPools []types.CoipPool // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeConversionTasks.go b/service/ec2/api_op_DescribeConversionTasks.go index f917cdd50e0..e9888832e58 100644 --- a/service/ec2/api_op_DescribeConversionTasks.go +++ b/service/ec2/api_op_DescribeConversionTasks.go @@ -34,19 +34,19 @@ func (c *Client) DescribeConversionTasks(ctx context.Context, params *DescribeCo type DescribeConversionTasksInput struct { // The conversion task IDs. - ConversionTaskIds []*string + ConversionTaskIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DescribeConversionTasksOutput struct { // Information about the conversion tasks. - ConversionTasks []*types.ConversionTask + ConversionTasks []types.ConversionTask // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeCustomerGateways.go b/service/ec2/api_op_DescribeCustomerGateways.go index 3a5604980a9..8c05d65c188 100644 --- a/service/ec2/api_op_DescribeCustomerGateways.go +++ b/service/ec2/api_op_DescribeCustomerGateways.go @@ -34,13 +34,13 @@ func (c *Client) DescribeCustomerGateways(ctx context.Context, params *DescribeC type DescribeCustomerGatewaysInput struct { // One or more customer gateway IDs. Default: Describes all your customer gateways. - CustomerGatewayIds []*string + CustomerGatewayIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -68,14 +68,14 @@ type DescribeCustomerGatewaysInput struct { // * tag-key - The // key of a tag assigned to the resource. Use this filter to find all resources // assigned a tag with a specific key, regardless of the tag value. - Filters []*types.Filter + Filters []types.Filter } // Contains the output of DescribeCustomerGateways. type DescribeCustomerGatewaysOutput struct { // Information about one or more customer gateways. - CustomerGateways []*types.CustomerGateway + CustomerGateways []types.CustomerGateway // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeDhcpOptions.go b/service/ec2/api_op_DescribeDhcpOptions.go index e0c6a8d9f26..888a9f587f6 100644 --- a/service/ec2/api_op_DescribeDhcpOptions.go +++ b/service/ec2/api_op_DescribeDhcpOptions.go @@ -34,13 +34,13 @@ type DescribeDhcpOptionsInput struct { // The IDs of one or more DHCP options sets. Default: Describes all your DHCP // options sets. - DhcpOptionsIds []*string + DhcpOptionsIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -64,11 +64,11 @@ type DescribeDhcpOptionsInput struct { // * tag-key - The key of a tag assigned to the resource. Use this filter // to find all resources assigned a tag with a specific key, regardless of the tag // value. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -77,7 +77,7 @@ type DescribeDhcpOptionsInput struct { type DescribeDhcpOptionsOutput struct { // Information about one or more DHCP options sets. - DhcpOptions []*types.DhcpOptions + DhcpOptions []types.DhcpOptions // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go b/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go index 0d7e000f4b3..86aa4cdcff3 100644 --- a/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go +++ b/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go @@ -33,10 +33,10 @@ type DescribeEgressOnlyInternetGatewaysInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more egress-only internet gateway IDs. - EgressOnlyInternetGatewayIds []*string + EgressOnlyInternetGatewayIds []string // One or more filters. // @@ -49,11 +49,11 @@ type DescribeEgressOnlyInternetGatewaysInput struct { // * tag-key - The key of a tag assigned to the resource. Use this filter // to find all resources assigned a tag with a specific key, regardless of the tag // value. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -62,7 +62,7 @@ type DescribeEgressOnlyInternetGatewaysInput struct { type DescribeEgressOnlyInternetGatewaysOutput struct { // Information about the egress-only internet gateways. - EgressOnlyInternetGateways []*types.EgressOnlyInternetGateway + EgressOnlyInternetGateways []types.EgressOnlyInternetGateway // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeElasticGpus.go b/service/ec2/api_op_DescribeElasticGpus.go index dfc2e325ecd..ce8662bc5ec 100644 --- a/service/ec2/api_op_DescribeElasticGpus.go +++ b/service/ec2/api_op_DescribeElasticGpus.go @@ -35,10 +35,10 @@ type DescribeElasticGpusInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The Elastic Graphics accelerator IDs. - ElasticGpuIds []*string + ElasticGpuIds []string // The filters. // @@ -56,12 +56,12 @@ type DescribeElasticGpusInput struct { // // * instance-id - The ID // of the instance to which the Elastic Graphics accelerator is associated. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. This // value can be between 5 and 1000. - MaxResults *int32 + MaxResults int32 // The token to request the next page of results. NextToken *string @@ -70,12 +70,12 @@ type DescribeElasticGpusInput struct { type DescribeElasticGpusOutput struct { // Information about the Elastic Graphics accelerators. - ElasticGpuSet []*types.ElasticGpus + ElasticGpuSet []types.ElasticGpus // The total number of items to return. If the total number of items available is // more than the value specified in max-items then a Next-Token will be provided in // the output that you can use to resume pagination. - MaxResults *int32 + MaxResults int32 // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeExportImageTasks.go b/service/ec2/api_op_DescribeExportImageTasks.go index 02604e0cf8f..8535511c58a 100644 --- a/service/ec2/api_op_DescribeExportImageTasks.go +++ b/service/ec2/api_op_DescribeExportImageTasks.go @@ -33,17 +33,17 @@ type DescribeExportImageTasksInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The IDs of the export image tasks. - ExportImageTaskIds []*string + ExportImageTaskIds []string // Filter tasks using the task-state filter and one of the following values: // active, completed, deleting, or deleted. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return in a single call. - MaxResults *int32 + MaxResults int32 // A token that indicates the next page of results. NextToken *string @@ -52,7 +52,7 @@ type DescribeExportImageTasksInput struct { type DescribeExportImageTasksOutput struct { // Information about the export image tasks. - ExportImageTasks []*types.ExportImageTask + ExportImageTasks []types.ExportImageTask // The token to use to get the next page of results. This value is null when there // are no more results to return. diff --git a/service/ec2/api_op_DescribeExportTasks.go b/service/ec2/api_op_DescribeExportTasks.go index a8c77a0c899..0ed0d6087d0 100644 --- a/service/ec2/api_op_DescribeExportTasks.go +++ b/service/ec2/api_op_DescribeExportTasks.go @@ -31,16 +31,16 @@ func (c *Client) DescribeExportTasks(ctx context.Context, params *DescribeExport type DescribeExportTasksInput struct { // The export task IDs. - ExportTaskIds []*string + ExportTaskIds []string // the filters for the export tasks. - Filters []*types.Filter + Filters []types.Filter } type DescribeExportTasksOutput struct { // Information about the export tasks. - ExportTasks []*types.ExportTask + ExportTasks []types.ExportTask // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeFastSnapshotRestores.go b/service/ec2/api_op_DescribeFastSnapshotRestores.go index 895801ee6f6..6c297f6ad33 100644 --- a/service/ec2/api_op_DescribeFastSnapshotRestores.go +++ b/service/ec2/api_op_DescribeFastSnapshotRestores.go @@ -33,7 +33,7 @@ type DescribeFastSnapshotRestoresInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. The possible values are: // @@ -48,7 +48,7 @@ type DescribeFastSnapshotRestoresInput struct { // * // state: The state of fast snapshot restores for the snapshot (enabling | // optimizing | enabled | disabling | disabled). - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. @@ -61,7 +61,7 @@ type DescribeFastSnapshotRestoresInput struct { type DescribeFastSnapshotRestoresOutput struct { // Information about the state of fast snapshot restores. - FastSnapshotRestores []*types.DescribeFastSnapshotRestoreSuccessItem + FastSnapshotRestores []types.DescribeFastSnapshotRestoreSuccessItem // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeFleetHistory.go b/service/ec2/api_op_DescribeFleetHistory.go index dcbfa624492..ffaeea47c4c 100644 --- a/service/ec2/api_op_DescribeFleetHistory.go +++ b/service/ec2/api_op_DescribeFleetHistory.go @@ -48,7 +48,7 @@ type DescribeFleetHistoryInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The type of events to describe. By default, all events are described. EventType types.FleetEventType @@ -56,7 +56,7 @@ type DescribeFleetHistoryInput struct { // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. NextToken *string @@ -68,7 +68,7 @@ type DescribeFleetHistoryOutput struct { FleetId *string // Information about the events in the history of the EC2 Fleet. - HistoryRecords []*types.HistoryRecordEntry + HistoryRecords []types.HistoryRecordEntry // The last date and time for the events, in UTC format (for example, // YYYY-MM-DDTHH:MM:SSZ). All records up to this time were retrieved. If nextToken diff --git a/service/ec2/api_op_DescribeFleetInstances.go b/service/ec2/api_op_DescribeFleetInstances.go index 21be549be5e..93a6dbd6db3 100644 --- a/service/ec2/api_op_DescribeFleetInstances.go +++ b/service/ec2/api_op_DescribeFleetInstances.go @@ -38,17 +38,17 @@ type DescribeFleetInstancesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // // * instance-type - The instance type. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. NextToken *string @@ -58,7 +58,7 @@ type DescribeFleetInstancesOutput struct { // The running instances. This list is refreshed periodically and might be out of // date. - ActiveInstances []*types.ActiveInstance + ActiveInstances []types.ActiveInstance // The ID of the EC2 Fleet. FleetId *string diff --git a/service/ec2/api_op_DescribeFleets.go b/service/ec2/api_op_DescribeFleets.go index b4ea8967a6d..42f34482fa5 100644 --- a/service/ec2/api_op_DescribeFleets.go +++ b/service/ec2/api_op_DescribeFleets.go @@ -33,7 +33,7 @@ type DescribeFleetsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -54,15 +54,15 @@ type DescribeFleetsInput struct { // // * type - The type of request (instant | // request | maintain). - Filters []*types.Filter + Filters []types.Filter // The ID of the EC2 Fleets. - FleetIds []*string + FleetIds []string // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. NextToken *string @@ -71,7 +71,7 @@ type DescribeFleetsInput struct { type DescribeFleetsOutput struct { // Information about the EC2 Fleets. - Fleets []*types.FleetData + Fleets []types.FleetData // The token for the next set of results. NextToken *string diff --git a/service/ec2/api_op_DescribeFlowLogs.go b/service/ec2/api_op_DescribeFlowLogs.go index 09934ff8c99..d9f88e879db 100644 --- a/service/ec2/api_op_DescribeFlowLogs.go +++ b/service/ec2/api_op_DescribeFlowLogs.go @@ -35,7 +35,7 @@ type DescribeFlowLogsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -65,14 +65,14 @@ type DescribeFlowLogsInput struct { // * tag-key // - The key of a tag assigned to the resource. Use this filter to find all // resources assigned a tag with a specific key, regardless of the tag value. - Filter []*types.Filter + Filter []types.Filter // One or more flow log IDs. Constraint: Maximum of 1000 flow log IDs. - FlowLogIds []*string + FlowLogIds []string // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -81,7 +81,7 @@ type DescribeFlowLogsInput struct { type DescribeFlowLogsOutput struct { // Information about the flow logs. - FlowLogs []*types.FlowLog + FlowLogs []types.FlowLog // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeFpgaImageAttribute.go b/service/ec2/api_op_DescribeFpgaImageAttribute.go index ca82911d39b..018b23468b2 100644 --- a/service/ec2/api_op_DescribeFpgaImageAttribute.go +++ b/service/ec2/api_op_DescribeFpgaImageAttribute.go @@ -43,7 +43,7 @@ type DescribeFpgaImageAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DescribeFpgaImageAttributeOutput struct { diff --git a/service/ec2/api_op_DescribeFpgaImages.go b/service/ec2/api_op_DescribeFpgaImages.go index 68b001621e5..caaba35d4c8 100644 --- a/service/ec2/api_op_DescribeFpgaImages.go +++ b/service/ec2/api_op_DescribeFpgaImages.go @@ -35,7 +35,7 @@ type DescribeFpgaImagesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -72,13 +72,13 @@ type DescribeFpgaImagesInput struct { // value. // // * update-time - The time of the most recent update. - Filters []*types.Filter + Filters []types.Filter // The AFI IDs. - FpgaImageIds []*string + FpgaImageIds []string // The maximum number of results to return in a single call. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string @@ -86,13 +86,13 @@ type DescribeFpgaImagesInput struct { // Filters the AFI by owner. Specify an AWS account ID, self (owner is the sender // of the request), or an AWS owner alias (valid values are amazon | // aws-marketplace). - Owners []*string + Owners []string } type DescribeFpgaImagesOutput struct { // Information about the FPGA images. - FpgaImages []*types.FpgaImage + FpgaImages []types.FpgaImage // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeHostReservationOfferings.go b/service/ec2/api_op_DescribeHostReservationOfferings.go index a711e562613..3f3804124cc 100644 --- a/service/ec2/api_op_DescribeHostReservationOfferings.go +++ b/service/ec2/api_op_DescribeHostReservationOfferings.go @@ -44,27 +44,27 @@ type DescribeHostReservationOfferingsInput struct { // // * payment-option - The payment option (NoUpfront | PartialUpfront // | AllUpfront). - Filter []*types.Filter + Filter []types.Filter // This is the maximum duration of the reservation to purchase, specified in // seconds. Reservations are available in one-year and three-year terms. The number // of seconds specified must be the number of seconds in a year (365x24x60x60) // times one of the supported durations (1 or 3). For example, specify 94608000 for // three years. - MaxDuration *int32 + MaxDuration int32 // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the returned // nextToken value. This value can be between 5 and 500. If maxResults is given a // larger value than 500, you receive an error. - MaxResults *int32 + MaxResults int32 // This is the minimum duration of the reservation you'd like to purchase, // specified in seconds. Reservations are available in one-year and three-year // terms. The number of seconds specified must be the number of seconds in a year // (365x24x60x60) times one of the supported durations (1 or 3). For example, // specify 31536000 for one year. - MinDuration *int32 + MinDuration int32 // The token to use to retrieve the next page of results. NextToken *string @@ -80,7 +80,7 @@ type DescribeHostReservationOfferingsOutput struct { NextToken *string // Information about the offerings. - OfferingSet []*types.HostOffering + OfferingSet []types.HostOffering // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeHostReservations.go b/service/ec2/api_op_DescribeHostReservations.go index 55d7fced574..38ea0f0de32 100644 --- a/service/ec2/api_op_DescribeHostReservations.go +++ b/service/ec2/api_op_DescribeHostReservations.go @@ -49,16 +49,16 @@ type DescribeHostReservationsInput struct { // * tag-key - The key of a tag assigned to the resource. // Use this filter to find all resources assigned a tag with a specific key, // regardless of the tag value. - Filter []*types.Filter + Filter []types.Filter // The host reservation IDs. - HostReservationIdSet []*string + HostReservationIdSet []string // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the returned // nextToken value. This value can be between 5 and 500. If maxResults is given a // larger value than 500, you receive an error. - MaxResults *int32 + MaxResults int32 // The token to use to retrieve the next page of results. NextToken *string @@ -67,7 +67,7 @@ type DescribeHostReservationsInput struct { type DescribeHostReservationsOutput struct { // Details about the reservation's configuration. - HostReservationSet []*types.HostReservation + HostReservationSet []types.HostReservation // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeHosts.go b/service/ec2/api_op_DescribeHosts.go index 35e6f40cb11..08b6544c530 100644 --- a/service/ec2/api_op_DescribeHosts.go +++ b/service/ec2/api_op_DescribeHosts.go @@ -56,17 +56,17 @@ type DescribeHostsInput struct { // * tag-key - The key of a tag assigned to the // resource. Use this filter to find all resources assigned a tag with a specific // key, regardless of the tag value. - Filter []*types.Filter + Filter []types.Filter // The IDs of the Dedicated Hosts. The IDs are used for targeted instance launches. - HostIds []*string + HostIds []string // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the returned // nextToken value. This value can be between 5 and 500. If maxResults is given a // larger value than 500, you receive an error. You cannot specify this parameter // and the host IDs parameter in the same request. - MaxResults *int32 + MaxResults int32 // The token to use to retrieve the next page of results. NextToken *string @@ -75,7 +75,7 @@ type DescribeHostsInput struct { type DescribeHostsOutput struct { // Information about the Dedicated Hosts. - Hosts []*types.Host + Hosts []types.Host // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeIamInstanceProfileAssociations.go b/service/ec2/api_op_DescribeIamInstanceProfileAssociations.go index 9454332f37a..758ce580abe 100644 --- a/service/ec2/api_op_DescribeIamInstanceProfileAssociations.go +++ b/service/ec2/api_op_DescribeIamInstanceProfileAssociations.go @@ -30,7 +30,7 @@ func (c *Client) DescribeIamInstanceProfileAssociations(ctx context.Context, par type DescribeIamInstanceProfileAssociationsInput struct { // The IAM instance profile associations. - AssociationIds []*string + AssociationIds []string // The filters. // @@ -38,11 +38,11 @@ type DescribeIamInstanceProfileAssociationsInput struct { // // * state - The state of // the association (associating | associated | disassociating). - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The token to request the next page of results. NextToken *string @@ -51,7 +51,7 @@ type DescribeIamInstanceProfileAssociationsInput struct { type DescribeIamInstanceProfileAssociationsOutput struct { // Information about the IAM instance profile associations. - IamInstanceProfileAssociations []*types.IamInstanceProfileAssociation + IamInstanceProfileAssociations []types.IamInstanceProfileAssociation // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeIdFormat.go b/service/ec2/api_op_DescribeIdFormat.go index e7538e78dbd..fac8f380095 100644 --- a/service/ec2/api_op_DescribeIdFormat.go +++ b/service/ec2/api_op_DescribeIdFormat.go @@ -60,7 +60,7 @@ type DescribeIdFormatInput struct { type DescribeIdFormatOutput struct { // Information about the ID format for the resource. - Statuses []*types.IdFormat + Statuses []types.IdFormat // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeIdentityIdFormat.go b/service/ec2/api_op_DescribeIdentityIdFormat.go index e039c5e2aa6..78caa68d9d2 100644 --- a/service/ec2/api_op_DescribeIdentityIdFormat.go +++ b/service/ec2/api_op_DescribeIdentityIdFormat.go @@ -63,7 +63,7 @@ type DescribeIdentityIdFormatInput struct { type DescribeIdentityIdFormatOutput struct { // Information about the ID format for the resources. - Statuses []*types.IdFormat + Statuses []types.IdFormat // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeImageAttribute.go b/service/ec2/api_op_DescribeImageAttribute.go index a16f60481e7..c0b7fa4c99f 100644 --- a/service/ec2/api_op_DescribeImageAttribute.go +++ b/service/ec2/api_op_DescribeImageAttribute.go @@ -48,14 +48,14 @@ type DescribeImageAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Describes an image attribute. type DescribeImageAttributeOutput struct { // The block device mapping entries. - BlockDeviceMappings []*types.BlockDeviceMapping + BlockDeviceMappings []types.BlockDeviceMapping // A description for the AMI. Description *types.AttributeValue @@ -67,10 +67,10 @@ type DescribeImageAttributeOutput struct { KernelId *types.AttributeValue // The launch permissions. - LaunchPermissions []*types.LaunchPermission + LaunchPermissions []types.LaunchPermission // The product codes. - ProductCodes []*types.ProductCode + ProductCodes []types.ProductCode // The RAM disk ID. RamdiskId *types.AttributeValue diff --git a/service/ec2/api_op_DescribeImages.go b/service/ec2/api_op_DescribeImages.go index e6e280d81f9..aad13f6ea76 100644 --- a/service/ec2/api_op_DescribeImages.go +++ b/service/ec2/api_op_DescribeImages.go @@ -40,11 +40,11 @@ type DescribeImagesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Scopes the images by users with explicit launch permissions. Specify an AWS // account ID, self (the sender of the request), or all (public AMIs). - ExecutableUsers []*string + ExecutableUsers []string // The filters. // @@ -145,22 +145,22 @@ type DescribeImagesInput struct { // value. // // * virtualization-type - The virtualization type (paravirtual | hvm). - Filters []*types.Filter + Filters []types.Filter // The image IDs. Default: Describes all images available to you. - ImageIds []*string + ImageIds []string // Scopes the results to images with the specified owners. You can specify a // combination of AWS account IDs, self, amazon, and aws-marketplace. If you omit // this parameter, the results include all images for which you have launch // permissions, regardless of ownership. - Owners []*string + Owners []string } type DescribeImagesOutput struct { // Information about the images. - Images []*types.Image + Images []types.Image // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeImportImageTasks.go b/service/ec2/api_op_DescribeImportImageTasks.go index fed051a6d96..03ce2f872ab 100644 --- a/service/ec2/api_op_DescribeImportImageTasks.go +++ b/service/ec2/api_op_DescribeImportImageTasks.go @@ -34,17 +34,17 @@ type DescribeImportImageTasksInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Filter tasks using the task-state filter and one of the following values: // active, completed, deleting, or deleted. - Filters []*types.Filter + Filters []types.Filter // The IDs of the import image tasks. - ImportTaskIds []*string + ImportTaskIds []string // The maximum number of results to return in a single call. - MaxResults *int32 + MaxResults int32 // A token that indicates the next page of results. NextToken *string @@ -54,7 +54,7 @@ type DescribeImportImageTasksOutput struct { // A list of zero or more import image tasks that are currently active or were // completed or canceled in the previous 7 days. - ImportImageTasks []*types.ImportImageTask + ImportImageTasks []types.ImportImageTask // The token to use to get the next page of results. This value is null when there // are no more results to return. diff --git a/service/ec2/api_op_DescribeImportSnapshotTasks.go b/service/ec2/api_op_DescribeImportSnapshotTasks.go index 6ff473e48d0..7f101defd8c 100644 --- a/service/ec2/api_op_DescribeImportSnapshotTasks.go +++ b/service/ec2/api_op_DescribeImportSnapshotTasks.go @@ -33,17 +33,17 @@ type DescribeImportSnapshotTasksInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. - Filters []*types.Filter + Filters []types.Filter // A list of import snapshot task IDs. - ImportTaskIds []*string + ImportTaskIds []string // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. - MaxResults *int32 + MaxResults int32 // A token that indicates the next page of results. NextToken *string @@ -53,7 +53,7 @@ type DescribeImportSnapshotTasksOutput struct { // A list of zero or more import snapshot tasks that are currently active or were // completed or canceled in the previous 7 days. - ImportSnapshotTasks []*types.ImportSnapshotTask + ImportSnapshotTasks []types.ImportSnapshotTask // The token to use to get the next page of results. This value is null when there // are no more results to return. diff --git a/service/ec2/api_op_DescribeInstanceAttribute.go b/service/ec2/api_op_DescribeInstanceAttribute.go index f33cf00bff4..b92e36bc2be 100644 --- a/service/ec2/api_op_DescribeInstanceAttribute.go +++ b/service/ec2/api_op_DescribeInstanceAttribute.go @@ -48,14 +48,14 @@ type DescribeInstanceAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Describes an instance attribute. type DescribeInstanceAttributeOutput struct { // The block device mapping of the instance. - BlockDeviceMappings []*types.InstanceBlockDeviceMapping + BlockDeviceMappings []types.InstanceBlockDeviceMapping // If the value is true, you can't terminate the instance through the Amazon EC2 // console, CLI, or API; otherwise, you can. @@ -72,7 +72,7 @@ type DescribeInstanceAttributeOutput struct { EnclaveOptions *types.EnclaveOptions // The security groups associated with the instance. - Groups []*types.GroupIdentifier + Groups []types.GroupIdentifier // The ID of the instance. InstanceId *string @@ -88,7 +88,7 @@ type DescribeInstanceAttributeOutput struct { KernelId *types.AttributeValue // A list of product codes. - ProductCodes []*types.ProductCode + ProductCodes []types.ProductCode // The RAM disk ID. RamdiskId *types.AttributeValue diff --git a/service/ec2/api_op_DescribeInstanceCreditSpecifications.go b/service/ec2/api_op_DescribeInstanceCreditSpecifications.go index 0bbc63c6b19..008eb5cdbfb 100644 --- a/service/ec2/api_op_DescribeInstanceCreditSpecifications.go +++ b/service/ec2/api_op_DescribeInstanceCreditSpecifications.go @@ -50,22 +50,22 @@ type DescribeInstanceCreditSpecificationsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // // * instance-id - The ID of the instance. - Filters []*types.Filter + Filters []types.Filter // The instance IDs. Default: Describes all your instances. Constraints: Maximum // 1000 explicitly specified instance IDs. - InstanceIds []*string + InstanceIds []string // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. This // value can be between 5 and 1000. You cannot specify this parameter and the // instance IDs parameter in the same call. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string @@ -74,7 +74,7 @@ type DescribeInstanceCreditSpecificationsInput struct { type DescribeInstanceCreditSpecificationsOutput struct { // Information about the credit option for CPU usage of an instance. - InstanceCreditSpecifications []*types.InstanceCreditSpecification + InstanceCreditSpecifications []types.InstanceCreditSpecification // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeInstanceEventNotificationAttributes.go b/service/ec2/api_op_DescribeInstanceEventNotificationAttributes.go index 1b3a82f42e3..39c1bcdf1a2 100644 --- a/service/ec2/api_op_DescribeInstanceEventNotificationAttributes.go +++ b/service/ec2/api_op_DescribeInstanceEventNotificationAttributes.go @@ -34,7 +34,7 @@ type DescribeInstanceEventNotificationAttributesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DescribeInstanceEventNotificationAttributesOutput struct { diff --git a/service/ec2/api_op_DescribeInstanceStatus.go b/service/ec2/api_op_DescribeInstanceStatus.go index 196e003b403..cf7da0f483e 100644 --- a/service/ec2/api_op_DescribeInstanceStatus.go +++ b/service/ec2/api_op_DescribeInstanceStatus.go @@ -57,7 +57,7 @@ type DescribeInstanceStatusInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -108,21 +108,21 @@ type DescribeInstanceStatusInput struct { // * // system-status.status - The system status of the instance (ok | impaired | // initializing | insufficient-data | not-applicable). - Filters []*types.Filter + Filters []types.Filter // When true, includes the health status for all instances. When false, includes // the health status for running instances only. Default: false - IncludeAllInstances *bool + IncludeAllInstances bool // The instance IDs. Default: Describes all your instances. Constraints: Maximum // 100 explicitly specified instance IDs. - InstanceIds []*string + InstanceIds []string // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. This // value can be between 5 and 1000. You cannot specify this parameter and the // instance IDs parameter in the same call. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string @@ -131,7 +131,7 @@ type DescribeInstanceStatusInput struct { type DescribeInstanceStatusOutput struct { // Information about the status of the instances. - InstanceStatuses []*types.InstanceStatus + InstanceStatuses []types.InstanceStatus // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeInstanceTypeOfferings.go b/service/ec2/api_op_DescribeInstanceTypeOfferings.go index 1c031c08da6..d6f65b96250 100644 --- a/service/ec2/api_op_DescribeInstanceTypeOfferings.go +++ b/service/ec2/api_op_DescribeInstanceTypeOfferings.go @@ -35,7 +35,7 @@ type DescribeInstanceTypeOfferingsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. Filter names and values are case-sensitive. // @@ -45,7 +45,7 @@ type DescribeInstanceTypeOfferingsInput struct { // // * // instance-type - The instance type. - Filters []*types.Filter + Filters []types.Filter // The location type. LocationType types.LocationType @@ -62,7 +62,7 @@ type DescribeInstanceTypeOfferingsInput struct { type DescribeInstanceTypeOfferingsOutput struct { // The instance types offered. - InstanceTypeOfferings []*types.InstanceTypeOffering + InstanceTypeOfferings []types.InstanceTypeOffering // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeInstanceTypes.go b/service/ec2/api_op_DescribeInstanceTypes.go index 7b44475270a..4b733458bf4 100644 --- a/service/ec2/api_op_DescribeInstanceTypes.go +++ b/service/ec2/api_op_DescribeInstanceTypes.go @@ -34,7 +34,7 @@ type DescribeInstanceTypesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. Filter names and values are case-sensitive. // @@ -180,7 +180,7 @@ type DescribeInstanceTypesInput struct { // * // vcpu-info.valid-threads-per-core - The number of threads per core that can be // configured for the instance type. For example, "1" or "1,2". - Filters []*types.Filter + Filters []types.Filter // The instance types. For more information, see Instance Types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the @@ -201,7 +201,7 @@ type DescribeInstanceTypesOutput struct { // The instance type. For more information, see Instance Types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the // Amazon Elastic Compute Cloud User Guide. - InstanceTypes []*types.InstanceTypeInfo + InstanceTypes []types.InstanceTypeInfo // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeInstances.go b/service/ec2/api_op_DescribeInstances.go index beacf907759..7b4164e0f6a 100644 --- a/service/ec2/api_op_DescribeInstances.go +++ b/service/ec2/api_op_DescribeInstances.go @@ -46,7 +46,7 @@ type DescribeInstancesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -351,16 +351,16 @@ type DescribeInstancesInput struct { // // * vpc-id - The ID of the VPC that the // instance is running in. - Filters []*types.Filter + Filters []types.Filter // The instance IDs. Default: Describes all your instances. - InstanceIds []*string + InstanceIds []string // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. This // value can be between 5 and 1000. You cannot specify this parameter and the // instance IDs parameter in the same call. - MaxResults *int32 + MaxResults int32 // The token to request the next page of results. NextToken *string @@ -373,7 +373,7 @@ type DescribeInstancesOutput struct { NextToken *string // Information about the reservations. - Reservations []*types.Reservation + Reservations []types.Reservation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeInternetGateways.go b/service/ec2/api_op_DescribeInternetGateways.go index 698d78a97c1..25ffd3c9131 100644 --- a/service/ec2/api_op_DescribeInternetGateways.go +++ b/service/ec2/api_op_DescribeInternetGateways.go @@ -33,7 +33,7 @@ type DescribeInternetGatewaysInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -58,14 +58,14 @@ type DescribeInternetGatewaysInput struct { // * tag-key - The key of a tag // assigned to the resource. Use this filter to find all resources assigned a tag // with a specific key, regardless of the tag value. - Filters []*types.Filter + Filters []types.Filter // One or more internet gateway IDs. Default: Describes all your internet gateways. - InternetGatewayIds []*string + InternetGatewayIds []string // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -74,7 +74,7 @@ type DescribeInternetGatewaysInput struct { type DescribeInternetGatewaysOutput struct { // Information about one or more internet gateways. - InternetGateways []*types.InternetGateway + InternetGateways []types.InternetGateway // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeIpv6Pools.go b/service/ec2/api_op_DescribeIpv6Pools.go index f3adaaf0f6a..a42e957a6b7 100644 --- a/service/ec2/api_op_DescribeIpv6Pools.go +++ b/service/ec2/api_op_DescribeIpv6Pools.go @@ -33,7 +33,7 @@ type DescribeIpv6PoolsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -46,23 +46,23 @@ type DescribeIpv6PoolsInput struct { // * tag-key - The key of a tag assigned to the resource. Use this filter // to find all resources assigned a tag with a specific key, regardless of the tag // value. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The IDs of the IPv6 address pools. - PoolIds []*string + PoolIds []string } type DescribeIpv6PoolsOutput struct { // Information about the IPv6 address pools. - Ipv6Pools []*types.Ipv6Pool + Ipv6Pools []types.Ipv6Pool // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeKeyPairs.go b/service/ec2/api_op_DescribeKeyPairs.go index 5a538c7dbe1..91c5b4a29d4 100644 --- a/service/ec2/api_op_DescribeKeyPairs.go +++ b/service/ec2/api_op_DescribeKeyPairs.go @@ -36,7 +36,7 @@ type DescribeKeyPairsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -56,19 +56,19 @@ type DescribeKeyPairsInput struct { // key in the filter name and the tag value as the filter value. For example, to // find all resources that have a tag with the key Owner and the value TeamA, // specify tag:Owner for the filter name and TeamA for the filter value. - Filters []*types.Filter + Filters []types.Filter // The key pair names. Default: Describes all your key pairs. - KeyNames []*string + KeyNames []string // The IDs of the key pairs. - KeyPairIds []*string + KeyPairIds []string } type DescribeKeyPairsOutput struct { // Information about the key pairs. - KeyPairs []*types.KeyPairInfo + KeyPairs []types.KeyPairInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeLaunchTemplateVersions.go b/service/ec2/api_op_DescribeLaunchTemplateVersions.go index 5c452105a4e..dad5875354a 100644 --- a/service/ec2/api_op_DescribeLaunchTemplateVersions.go +++ b/service/ec2/api_op_DescribeLaunchTemplateVersions.go @@ -36,7 +36,7 @@ type DescribeLaunchTemplateVersionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -61,7 +61,7 @@ type DescribeLaunchTemplateVersionsInput struct { // // * // ram-disk-id - The RAM disk ID. - Filters []*types.Filter + Filters []types.Filter // The ID of the launch template. To describe one or more versions of a specified // launch template, you must specify either the launch template ID or the launch @@ -78,7 +78,7 @@ type DescribeLaunchTemplateVersionsInput struct { // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. This // value can be between 1 and 200. - MaxResults *int32 + MaxResults int32 // The version number up to which to describe launch template versions. MaxVersion *string @@ -97,13 +97,13 @@ type DescribeLaunchTemplateVersionsInput struct { // valid value is $Latest. To describe all launch templates in your account that // are defined as the default version, the valid value is $Default. You can specify // $Latest and $Default in the same call. You cannot specify numbers. - Versions []*string + Versions []string } type DescribeLaunchTemplateVersionsOutput struct { // Information about the launch template versions. - LaunchTemplateVersions []*types.LaunchTemplateVersion + LaunchTemplateVersions []types.LaunchTemplateVersion // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeLaunchTemplates.go b/service/ec2/api_op_DescribeLaunchTemplates.go index 0d710b54e85..1fc1afb2b52 100644 --- a/service/ec2/api_op_DescribeLaunchTemplates.go +++ b/service/ec2/api_op_DescribeLaunchTemplates.go @@ -33,7 +33,7 @@ type DescribeLaunchTemplatesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -51,18 +51,18 @@ type DescribeLaunchTemplatesInput struct { // * tag-key - The // key of a tag assigned to the resource. Use this filter to find all resources // assigned a tag with a specific key, regardless of the tag value. - Filters []*types.Filter + Filters []types.Filter // One or more launch template IDs. - LaunchTemplateIds []*string + LaunchTemplateIds []string // One or more launch template names. - LaunchTemplateNames []*string + LaunchTemplateNames []string // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. This // value can be between 1 and 200. - MaxResults *int32 + MaxResults int32 // The token to request the next page of results. NextToken *string @@ -71,7 +71,7 @@ type DescribeLaunchTemplatesInput struct { type DescribeLaunchTemplatesOutput struct { // Information about the launch templates. - LaunchTemplates []*types.LaunchTemplate + LaunchTemplates []types.LaunchTemplate // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go b/service/ec2/api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go index 58585c705f3..c3cb8013830 100644 --- a/service/ec2/api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go +++ b/service/ec2/api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go @@ -34,7 +34,7 @@ type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput struct // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -51,14 +51,14 @@ type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput struct // the virtual interface group. // // * state - The state of the association. - Filters []*types.Filter + Filters []types.Filter // The IDs of the associations. - LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds []*string + LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds []string // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -67,7 +67,7 @@ type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput struct type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput struct { // Information about the associations. - LocalGatewayRouteTableVirtualInterfaceGroupAssociations []*types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation + LocalGatewayRouteTableVirtualInterfaceGroupAssociations []types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeLocalGatewayRouteTableVpcAssociations.go b/service/ec2/api_op_DescribeLocalGatewayRouteTableVpcAssociations.go index 099d45c1874..39aba80e8e4 100644 --- a/service/ec2/api_op_DescribeLocalGatewayRouteTableVpcAssociations.go +++ b/service/ec2/api_op_DescribeLocalGatewayRouteTableVpcAssociations.go @@ -34,7 +34,7 @@ type DescribeLocalGatewayRouteTableVpcAssociationsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -50,14 +50,14 @@ type DescribeLocalGatewayRouteTableVpcAssociationsInput struct { // state - The state of the association. // // * vpc-id - The ID of the VPC. - Filters []*types.Filter + Filters []types.Filter // The IDs of the associations. - LocalGatewayRouteTableVpcAssociationIds []*string + LocalGatewayRouteTableVpcAssociationIds []string // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -66,7 +66,7 @@ type DescribeLocalGatewayRouteTableVpcAssociationsInput struct { type DescribeLocalGatewayRouteTableVpcAssociationsOutput struct { // Information about the associations. - LocalGatewayRouteTableVpcAssociations []*types.LocalGatewayRouteTableVpcAssociation + LocalGatewayRouteTableVpcAssociations []types.LocalGatewayRouteTableVpcAssociation // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeLocalGatewayRouteTables.go b/service/ec2/api_op_DescribeLocalGatewayRouteTables.go index 5ae9f65e23d..2a5f57e4fa0 100644 --- a/service/ec2/api_op_DescribeLocalGatewayRouteTables.go +++ b/service/ec2/api_op_DescribeLocalGatewayRouteTables.go @@ -34,7 +34,7 @@ type DescribeLocalGatewayRouteTablesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -48,14 +48,14 @@ type DescribeLocalGatewayRouteTablesInput struct { // // * state - The // state of the local gateway route table. - Filters []*types.Filter + Filters []types.Filter // The IDs of the local gateway route tables. - LocalGatewayRouteTableIds []*string + LocalGatewayRouteTableIds []string // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -64,7 +64,7 @@ type DescribeLocalGatewayRouteTablesInput struct { type DescribeLocalGatewayRouteTablesOutput struct { // Information about the local gateway route tables. - LocalGatewayRouteTables []*types.LocalGatewayRouteTable + LocalGatewayRouteTables []types.LocalGatewayRouteTable // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaceGroups.go b/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaceGroups.go index 156c16e04c3..6204485b3a3 100644 --- a/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaceGroups.go +++ b/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaceGroups.go @@ -33,7 +33,7 @@ type DescribeLocalGatewayVirtualInterfaceGroupsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -45,14 +45,14 @@ type DescribeLocalGatewayVirtualInterfaceGroupsInput struct { // * // local-gateway-virtual-interface-group-id - The ID of the virtual interface // group. - Filters []*types.Filter + Filters []types.Filter // The IDs of the virtual interface groups. - LocalGatewayVirtualInterfaceGroupIds []*string + LocalGatewayVirtualInterfaceGroupIds []string // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -61,7 +61,7 @@ type DescribeLocalGatewayVirtualInterfaceGroupsInput struct { type DescribeLocalGatewayVirtualInterfaceGroupsOutput struct { // The virtual interface groups. - LocalGatewayVirtualInterfaceGroups []*types.LocalGatewayVirtualInterfaceGroup + LocalGatewayVirtualInterfaceGroups []types.LocalGatewayVirtualInterfaceGroup // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaces.go b/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaces.go index 7df25c45ea8..a93d6851a96 100644 --- a/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaces.go +++ b/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaces.go @@ -33,17 +33,17 @@ type DescribeLocalGatewayVirtualInterfacesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. - Filters []*types.Filter + Filters []types.Filter // The IDs of the virtual interfaces. - LocalGatewayVirtualInterfaceIds []*string + LocalGatewayVirtualInterfaceIds []string // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -52,7 +52,7 @@ type DescribeLocalGatewayVirtualInterfacesInput struct { type DescribeLocalGatewayVirtualInterfacesOutput struct { // Information about the virtual interfaces. - LocalGatewayVirtualInterfaces []*types.LocalGatewayVirtualInterface + LocalGatewayVirtualInterfaces []types.LocalGatewayVirtualInterface // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeLocalGateways.go b/service/ec2/api_op_DescribeLocalGateways.go index 486156c50de..6460dbf3f6c 100644 --- a/service/ec2/api_op_DescribeLocalGateways.go +++ b/service/ec2/api_op_DescribeLocalGateways.go @@ -34,10 +34,10 @@ type DescribeLocalGatewaysInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. - Filters []*types.Filter + Filters []types.Filter // One or more filters. // @@ -57,11 +57,11 @@ type DescribeLocalGatewaysInput struct { // the Outpost. // // * state - The state of the association. - LocalGatewayIds []*string + LocalGatewayIds []string // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -70,7 +70,7 @@ type DescribeLocalGatewaysInput struct { type DescribeLocalGatewaysOutput struct { // Information about the local gateways. - LocalGateways []*types.LocalGateway + LocalGateways []types.LocalGateway // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeManagedPrefixLists.go b/service/ec2/api_op_DescribeManagedPrefixLists.go index eb5498ee169..ff7e60c78b0 100644 --- a/service/ec2/api_op_DescribeManagedPrefixLists.go +++ b/service/ec2/api_op_DescribeManagedPrefixLists.go @@ -34,7 +34,7 @@ type DescribeManagedPrefixListsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -45,17 +45,17 @@ type DescribeManagedPrefixListsInput struct { // // * prefix-list-name - The name of // the prefix list. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // One or more prefix list IDs. - PrefixListIds []*string + PrefixListIds []string } type DescribeManagedPrefixListsOutput struct { @@ -65,7 +65,7 @@ type DescribeManagedPrefixListsOutput struct { NextToken *string // Information about the prefix lists. - PrefixLists []*types.ManagedPrefixList + PrefixLists []types.ManagedPrefixList // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeMovingAddresses.go b/service/ec2/api_op_DescribeMovingAddresses.go index 41913dbe1e6..bd606d50ffa 100644 --- a/service/ec2/api_op_DescribeMovingAddresses.go +++ b/service/ec2/api_op_DescribeMovingAddresses.go @@ -36,32 +36,32 @@ type DescribeMovingAddressesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // // * moving-status - The status of the Elastic IP address // (MovingToVpc | RestoringToClassic). - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return for the request in a single page. The // remaining results of the initial request can be seen by sending another request // with the returned NextToken value. This value can be between 5 and 1000; if // MaxResults is given a value outside of this range, an error is returned. // Default: If no value is provided, the default is 1000. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // One or more Elastic IP addresses. - PublicIps []*string + PublicIps []string } type DescribeMovingAddressesOutput struct { // The status for each Elastic IP address. - MovingAddressStatuses []*types.MovingAddressStatus + MovingAddressStatuses []types.MovingAddressStatus // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeNatGateways.go b/service/ec2/api_op_DescribeNatGateways.go index f7f1b82d4d8..b2e75f2faa0 100644 --- a/service/ec2/api_op_DescribeNatGateways.go +++ b/service/ec2/api_op_DescribeNatGateways.go @@ -33,7 +33,7 @@ type DescribeNatGatewaysInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -57,14 +57,14 @@ type DescribeNatGatewaysInput struct { // // * // vpc-id - The ID of the VPC in which the NAT gateway resides. - Filter []*types.Filter + Filter []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // One or more NAT gateway IDs. - NatGatewayIds []*string + NatGatewayIds []string // The token for the next page of results. NextToken *string @@ -73,7 +73,7 @@ type DescribeNatGatewaysInput struct { type DescribeNatGatewaysOutput struct { // Information about the NAT gateways. - NatGateways []*types.NatGateway + NatGateways []types.NatGateway // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeNetworkAcls.go b/service/ec2/api_op_DescribeNetworkAcls.go index 07f8c00eef8..78351079110 100644 --- a/service/ec2/api_op_DescribeNetworkAcls.go +++ b/service/ec2/api_op_DescribeNetworkAcls.go @@ -35,7 +35,7 @@ type DescribeNetworkAclsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -95,14 +95,14 @@ type DescribeNetworkAclsInput struct { // // * vpc-id - The // ID of the VPC for the network ACL. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // One or more network ACL IDs. Default: Describes all your network ACLs. - NetworkAclIds []*string + NetworkAclIds []string // The token for the next page of results. NextToken *string @@ -111,7 +111,7 @@ type DescribeNetworkAclsInput struct { type DescribeNetworkAclsOutput struct { // Information about one or more network ACLs. - NetworkAcls []*types.NetworkAcl + NetworkAcls []types.NetworkAcl // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeNetworkInterfaceAttribute.go b/service/ec2/api_op_DescribeNetworkInterfaceAttribute.go index e61821ab675..15f3daffa9c 100644 --- a/service/ec2/api_op_DescribeNetworkInterfaceAttribute.go +++ b/service/ec2/api_op_DescribeNetworkInterfaceAttribute.go @@ -43,7 +43,7 @@ type DescribeNetworkInterfaceAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Contains the output of DescribeNetworkInterfaceAttribute. @@ -56,7 +56,7 @@ type DescribeNetworkInterfaceAttributeOutput struct { Description *types.AttributeValue // The security groups associated with the network interface. - Groups []*types.GroupIdentifier + Groups []types.GroupIdentifier // The ID of the network interface. NetworkInterfaceId *string diff --git a/service/ec2/api_op_DescribeNetworkInterfacePermissions.go b/service/ec2/api_op_DescribeNetworkInterfacePermissions.go index 3ca7bf28876..a1e468685e5 100644 --- a/service/ec2/api_op_DescribeNetworkInterfacePermissions.go +++ b/service/ec2/api_op_DescribeNetworkInterfacePermissions.go @@ -47,15 +47,15 @@ type DescribeNetworkInterfacePermissionsInput struct { // * // network-interface-permission.permission - The type of permission // (INSTANCE-ATTACH | EIP-ASSOCIATE). - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. If this // parameter is not specified, up to 50 results are returned by default. - MaxResults *int32 + MaxResults int32 // One or more network interface permission IDs. - NetworkInterfacePermissionIds []*string + NetworkInterfacePermissionIds []string // The token to request the next page of results. NextToken *string @@ -65,7 +65,7 @@ type DescribeNetworkInterfacePermissionsInput struct { type DescribeNetworkInterfacePermissionsOutput struct { // The network interface permissions. - NetworkInterfacePermissions []*types.NetworkInterfacePermission + NetworkInterfacePermissions []types.NetworkInterfacePermission // The token to use to retrieve the next page of results. NextToken *string diff --git a/service/ec2/api_op_DescribeNetworkInterfaces.go b/service/ec2/api_op_DescribeNetworkInterfaces.go index 28e3af28627..f0ca3c374d4 100644 --- a/service/ec2/api_op_DescribeNetworkInterfaces.go +++ b/service/ec2/api_op_DescribeNetworkInterfaces.go @@ -34,7 +34,7 @@ type DescribeNetworkInterfacesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -154,17 +154,17 @@ type DescribeNetworkInterfacesInput struct { // value. // // * vpc-id - The ID of the VPC for the network interface. - Filters []*types.Filter + Filters []types.Filter // The maximum number of items to return for this request. The request returns a // token that you can specify in a subsequent call to get the next set of results. // You cannot specify this parameter and the network interface IDs parameter in the // same request. - MaxResults *int32 + MaxResults int32 // One or more network interface IDs. Default: Describes all your network // interfaces. - NetworkInterfaceIds []*string + NetworkInterfaceIds []string // The token to retrieve the next page of results. NextToken *string @@ -174,7 +174,7 @@ type DescribeNetworkInterfacesInput struct { type DescribeNetworkInterfacesOutput struct { // Information about one or more network interfaces. - NetworkInterfaces []*types.NetworkInterface + NetworkInterfaces []types.NetworkInterface // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribePlacementGroups.go b/service/ec2/api_op_DescribePlacementGroups.go index d6acd43c1e2..521cede22bc 100644 --- a/service/ec2/api_op_DescribePlacementGroups.go +++ b/service/ec2/api_op_DescribePlacementGroups.go @@ -36,7 +36,7 @@ type DescribePlacementGroupsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -58,20 +58,20 @@ type DescribePlacementGroupsInput struct { // * tag-key - The key of a tag assigned to the resource. Use this filter // to find all resources that have a tag with a specific key, regardless of the tag // value. - Filters []*types.Filter + Filters []types.Filter // The IDs of the placement groups. - GroupIds []*string + GroupIds []string // The names of the placement groups. Default: Describes all your placement groups, // or only those otherwise specified. - GroupNames []*string + GroupNames []string } type DescribePlacementGroupsOutput struct { // Information about the placement groups. - PlacementGroups []*types.PlacementGroup + PlacementGroups []types.PlacementGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribePrefixLists.go b/service/ec2/api_op_DescribePrefixLists.go index e9bf0436df6..25e52199f3c 100644 --- a/service/ec2/api_op_DescribePrefixLists.go +++ b/service/ec2/api_op_DescribePrefixLists.go @@ -35,7 +35,7 @@ type DescribePrefixListsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -43,17 +43,17 @@ type DescribePrefixListsInput struct { // // * // prefix-list-name: The name of a prefix list. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // One or more prefix list IDs. - PrefixListIds []*string + PrefixListIds []string } type DescribePrefixListsOutput struct { @@ -63,7 +63,7 @@ type DescribePrefixListsOutput struct { NextToken *string // All available prefix lists. - PrefixLists []*types.PrefixList + PrefixLists []types.PrefixList // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribePrincipalIdFormat.go b/service/ec2/api_op_DescribePrincipalIdFormat.go index f8ac032a8e4..30437d1a44b 100644 --- a/service/ec2/api_op_DescribePrincipalIdFormat.go +++ b/service/ec2/api_op_DescribePrincipalIdFormat.go @@ -45,11 +45,11 @@ type DescribePrincipalIdFormatInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The token to request the next page of results. NextToken *string @@ -62,7 +62,7 @@ type DescribePrincipalIdFormatInput struct { // security-group | snapshot | subnet | subnet-cidr-block-association | volume | // vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | // vpn-connection | vpn-gateway - Resources []*string + Resources []string } type DescribePrincipalIdFormatOutput struct { @@ -72,7 +72,7 @@ type DescribePrincipalIdFormatOutput struct { NextToken *string // Information about the ID format settings for the ARN. - Principals []*types.PrincipalIdFormat + Principals []types.PrincipalIdFormat // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribePublicIpv4Pools.go b/service/ec2/api_op_DescribePublicIpv4Pools.go index b9ebebbf30e..b7c2ba179d4 100644 --- a/service/ec2/api_op_DescribePublicIpv4Pools.go +++ b/service/ec2/api_op_DescribePublicIpv4Pools.go @@ -40,17 +40,17 @@ type DescribePublicIpv4PoolsInput struct { // * tag-key - The key of a tag assigned to the resource. Use this filter // to find all resources assigned a tag with a specific key, regardless of the tag // value. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The IDs of the address pools. - PoolIds []*string + PoolIds []string } type DescribePublicIpv4PoolsOutput struct { @@ -60,7 +60,7 @@ type DescribePublicIpv4PoolsOutput struct { NextToken *string // Information about the address pools. - PublicIpv4Pools []*types.PublicIpv4Pool + PublicIpv4Pools []types.PublicIpv4Pool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeRegions.go b/service/ec2/api_op_DescribeRegions.go index fa5f130b0e2..d4ab0145a7e 100644 --- a/service/ec2/api_op_DescribeRegions.go +++ b/service/ec2/api_op_DescribeRegions.go @@ -36,13 +36,13 @@ type DescribeRegionsInput struct { // Indicates whether to display all Regions, including Regions that are disabled // for your account. - AllRegions *bool + AllRegions bool // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -54,17 +54,17 @@ type DescribeRegionsInput struct { // // * region-name - The name of // the Region (for example, us-east-1). - Filters []*types.Filter + Filters []types.Filter // The names of the Regions. You can specify any Regions, whether they are enabled // and disabled for your account. - RegionNames []*string + RegionNames []string } type DescribeRegionsOutput struct { // Information about the Regions. - Regions []*types.Region + Regions []types.Region // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeReservedInstances.go b/service/ec2/api_op_DescribeReservedInstances.go index 896e5580039..008157cce30 100644 --- a/service/ec2/api_op_DescribeReservedInstances.go +++ b/service/ec2/api_op_DescribeReservedInstances.go @@ -37,7 +37,7 @@ type DescribeReservedInstancesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -92,7 +92,7 @@ type DescribeReservedInstancesInput struct { // * // usage-price - The usage price of the Reserved Instance, per hour (for example, // 0.84). - Filters []*types.Filter + Filters []types.Filter // Describes whether the Reserved Instance is Standard or Convertible. OfferingClass types.OfferingClassType @@ -104,14 +104,14 @@ type DescribeReservedInstancesInput struct { // One or more Reserved Instance IDs. Default: Describes all your Reserved // Instances, or only those otherwise specified. - ReservedInstancesIds []*string + ReservedInstancesIds []string } // Contains the output for DescribeReservedInstances. type DescribeReservedInstancesOutput struct { // A list of Reserved Instances. - ReservedInstances []*types.ReservedInstances + ReservedInstances []types.ReservedInstances // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeReservedInstancesListings.go b/service/ec2/api_op_DescribeReservedInstancesListings.go index 6503960a448..21d39f0a5a7 100644 --- a/service/ec2/api_op_DescribeReservedInstancesListings.go +++ b/service/ec2/api_op_DescribeReservedInstancesListings.go @@ -57,7 +57,7 @@ type DescribeReservedInstancesListingsInput struct { // active | cancelled | closed). // // * status-message - The reason for the status. - Filters []*types.Filter + Filters []types.Filter // One or more Reserved Instance IDs. ReservedInstancesId *string @@ -70,7 +70,7 @@ type DescribeReservedInstancesListingsInput struct { type DescribeReservedInstancesListingsOutput struct { // Information about the Reserved Instance listing. - ReservedInstancesListings []*types.ReservedInstancesListing + ReservedInstancesListings []types.ReservedInstancesListing // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeReservedInstancesModifications.go b/service/ec2/api_op_DescribeReservedInstancesModifications.go index 75816caccc4..8d68290dd70 100644 --- a/service/ec2/api_op_DescribeReservedInstancesModifications.go +++ b/service/ec2/api_op_DescribeReservedInstancesModifications.go @@ -80,13 +80,13 @@ type DescribeReservedInstancesModificationsInput struct { // // * update-date - The time when the // modification request was last updated. - Filters []*types.Filter + Filters []types.Filter // The token to retrieve the next page of results. NextToken *string // IDs for the submitted modification request. - ReservedInstancesModificationIds []*string + ReservedInstancesModificationIds []string } // Contains the output of DescribeReservedInstancesModifications. @@ -97,7 +97,7 @@ type DescribeReservedInstancesModificationsOutput struct { NextToken *string // The Reserved Instance modification information. - ReservedInstancesModifications []*types.ReservedInstancesModification + ReservedInstancesModifications []types.ReservedInstancesModification // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeReservedInstancesOfferings.go b/service/ec2/api_op_DescribeReservedInstancesOfferings.go index b9cc8a61247..cee05ded2db 100644 --- a/service/ec2/api_op_DescribeReservedInstancesOfferings.go +++ b/service/ec2/api_op_DescribeReservedInstancesOfferings.go @@ -46,7 +46,7 @@ type DescribeReservedInstancesOfferingsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -86,10 +86,10 @@ type DescribeReservedInstancesOfferingsInput struct { // // * usage-price // - The usage price of the Reserved Instance, per hour (for example, 0.84). - Filters []*types.Filter + Filters []types.Filter // Include Reserved Instance Marketplace offerings in the response. - IncludeMarketplace *bool + IncludeMarketplace bool // The tenancy of the instances covered by the reservation. A Reserved Instance // with a tenancy of dedicated is applied to instances that run in a VPC on @@ -106,20 +106,20 @@ type DescribeReservedInstancesOfferingsInput struct { // The maximum duration (in seconds) to filter when searching for offerings. // Default: 94608000 (3 years) - MaxDuration *int64 + MaxDuration int64 // The maximum number of instances to filter when searching for offerings. Default: // 20 - MaxInstanceCount *int32 + MaxInstanceCount int32 // The maximum number of results to return for the request in a single page. The // remaining results of the initial request can be seen by sending another request // with the returned NextToken value. The maximum is 100. Default: 100 - MaxResults *int32 + MaxResults int32 // The minimum duration (in seconds) to filter when searching for offerings. // Default: 2592000 (1 month) - MinDuration *int64 + MinDuration int64 // The token to retrieve the next page of results. NextToken *string @@ -137,7 +137,7 @@ type DescribeReservedInstancesOfferingsInput struct { ProductDescription types.RIProductDescription // One or more Reserved Instances offering IDs. - ReservedInstancesOfferingIds []*string + ReservedInstancesOfferingIds []string } // Contains the output of DescribeReservedInstancesOfferings. @@ -148,7 +148,7 @@ type DescribeReservedInstancesOfferingsOutput struct { NextToken *string // A list of Reserved Instances offerings. - ReservedInstancesOfferings []*types.ReservedInstancesOffering + ReservedInstancesOfferings []types.ReservedInstancesOffering // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeRouteTables.go b/service/ec2/api_op_DescribeRouteTables.go index 36e25c217da..63c600df51b 100644 --- a/service/ec2/api_op_DescribeRouteTables.go +++ b/service/ec2/api_op_DescribeRouteTables.go @@ -39,7 +39,7 @@ type DescribeRouteTablesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -114,17 +114,17 @@ type DescribeRouteTablesInput struct { // of the tag value. // // * vpc-id - The ID of the VPC for the route table. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // One or more route table IDs. Default: Describes all your route tables. - RouteTableIds []*string + RouteTableIds []string } // Contains the output of DescribeRouteTables. @@ -135,7 +135,7 @@ type DescribeRouteTablesOutput struct { NextToken *string // Information about one or more route tables. - RouteTables []*types.RouteTable + RouteTables []types.RouteTable // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeScheduledInstanceAvailability.go b/service/ec2/api_op_DescribeScheduledInstanceAvailability.go index a0f5d6557ed..0b3925a7fe9 100644 --- a/service/ec2/api_op_DescribeScheduledInstanceAvailability.go +++ b/service/ec2/api_op_DescribeScheduledInstanceAvailability.go @@ -50,7 +50,7 @@ type DescribeScheduledInstanceAvailabilityInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -64,21 +64,21 @@ type DescribeScheduledInstanceAvailabilityInput struct { // // * platform - // The platform (Linux/UNIX or Windows). - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return in a single call. This value can be // between 5 and 300. The default value is 300. To retrieve the remaining results, // make another call with the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The maximum available duration, in hours. This value must be greater than // MinSlotDurationInHours and less than 1,720. - MaxSlotDurationInHours *int32 + MaxSlotDurationInHours int32 // The minimum available duration, in hours. The minimum required duration is 1,200 // hours per year. For example, the minimum daily schedule is 4 hours, the minimum // weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours. - MinSlotDurationInHours *int32 + MinSlotDurationInHours int32 // The token for the next set of results. NextToken *string @@ -92,7 +92,7 @@ type DescribeScheduledInstanceAvailabilityOutput struct { NextToken *string // Information about the available Scheduled Instances. - ScheduledInstanceAvailabilitySet []*types.ScheduledInstanceAvailability + ScheduledInstanceAvailabilitySet []types.ScheduledInstanceAvailability // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeScheduledInstances.go b/service/ec2/api_op_DescribeScheduledInstances.go index 46c08c38635..a65cfb513d8 100644 --- a/service/ec2/api_op_DescribeScheduledInstances.go +++ b/service/ec2/api_op_DescribeScheduledInstances.go @@ -34,7 +34,7 @@ type DescribeScheduledInstancesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -48,18 +48,18 @@ type DescribeScheduledInstancesInput struct { // // * platform - // The platform (Linux/UNIX or Windows). - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return in a single call. This value can be // between 5 and 300. The default value is 100. To retrieve the remaining results, // make another call with the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. NextToken *string // The Scheduled Instance IDs. - ScheduledInstanceIds []*string + ScheduledInstanceIds []string // The time period for the first schedule to start. SlotStartTimeRange *types.SlotStartTimeRangeRequest @@ -73,7 +73,7 @@ type DescribeScheduledInstancesOutput struct { NextToken *string // Information about the Scheduled Instances. - ScheduledInstanceSet []*types.ScheduledInstance + ScheduledInstanceSet []types.ScheduledInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeSecurityGroupReferences.go b/service/ec2/api_op_DescribeSecurityGroupReferences.go index 69b768729ae..e0b0e8b311e 100644 --- a/service/ec2/api_op_DescribeSecurityGroupReferences.go +++ b/service/ec2/api_op_DescribeSecurityGroupReferences.go @@ -33,19 +33,19 @@ type DescribeSecurityGroupReferencesInput struct { // The IDs of the security groups in your account. // // This member is required. - GroupId []*string + GroupId []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DescribeSecurityGroupReferencesOutput struct { // Information about the VPCs with the referencing security groups. - SecurityGroupReferenceSet []*types.SecurityGroupReference + SecurityGroupReferenceSet []types.SecurityGroupReference // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeSecurityGroups.go b/service/ec2/api_op_DescribeSecurityGroups.go index 1dd4bb21347..b2e7ee2f814 100644 --- a/service/ec2/api_op_DescribeSecurityGroups.go +++ b/service/ec2/api_op_DescribeSecurityGroups.go @@ -39,7 +39,7 @@ type DescribeSecurityGroupsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. If using multiple filters for rules, the results include security // groups for which any combination of rules - not necessarily a single rule - @@ -131,23 +131,23 @@ type DescribeSecurityGroupsInput struct { // // * vpc-id - The ID of the VPC // specified when the security group was created. - Filters []*types.Filter + Filters []types.Filter // The IDs of the security groups. Required for security groups in a nondefault // VPC. Default: Describes all your security groups. - GroupIds []*string + GroupIds []string // [EC2-Classic and default VPC only] The names of the security groups. You can // specify either the security group name or the security group ID. For security // groups in a nondefault VPC, use the group-name filter to describe security // groups by name. Default: Describes all your security groups. - GroupNames []*string + GroupNames []string // The maximum number of results to return in a single call. To retrieve the // remaining results, make another request with the returned NextToken value. This // value can be between 5 and 1000. If this parameter is not specified, then all // results are returned. - MaxResults *int32 + MaxResults int32 // The token to request the next page of results. NextToken *string @@ -160,7 +160,7 @@ type DescribeSecurityGroupsOutput struct { NextToken *string // Information about the security groups. - SecurityGroups []*types.SecurityGroup + SecurityGroups []types.SecurityGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeSnapshotAttribute.go b/service/ec2/api_op_DescribeSnapshotAttribute.go index 13f4339b6ad..ea3d77ce8df 100644 --- a/service/ec2/api_op_DescribeSnapshotAttribute.go +++ b/service/ec2/api_op_DescribeSnapshotAttribute.go @@ -47,17 +47,17 @@ type DescribeSnapshotAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DescribeSnapshotAttributeOutput struct { // The users and groups that have the permissions for creating volumes from the // snapshot. - CreateVolumePermissions []*types.CreateVolumePermission + CreateVolumePermissions []types.CreateVolumePermission // The product codes. - ProductCodes []*types.ProductCode + ProductCodes []types.ProductCode // The ID of the EBS snapshot. SnapshotId *string diff --git a/service/ec2/api_op_DescribeSnapshots.go b/service/ec2/api_op_DescribeSnapshots.go index 6f7248ea598..11f4b4e2695 100644 --- a/service/ec2/api_op_DescribeSnapshots.go +++ b/service/ec2/api_op_DescribeSnapshots.go @@ -74,7 +74,7 @@ type DescribeSnapshotsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -117,7 +117,7 @@ type DescribeSnapshotsInput struct { // // * volume-size - // The size of the volume, in GiB. - Filters []*types.Filter + Filters []types.Filter // The maximum number of snapshot results returned by DescribeSnapshots in // paginated output. When this parameter is used, DescribeSnapshots only returns @@ -128,7 +128,7 @@ type DescribeSnapshotsInput struct { // results are returned. If this parameter is not used, then DescribeSnapshots // returns all results. You cannot specify this parameter and the snapshot IDs // parameter in the same request. - MaxResults *int32 + MaxResults int32 // The NextToken value returned from a previous paginated DescribeSnapshots request // where MaxResults was used and the results exceeded the value of that parameter. @@ -138,14 +138,14 @@ type DescribeSnapshotsInput struct { // Scopes the results to snapshots with the specified owners. You can specify a // combination of AWS account IDs, self, and amazon. - OwnerIds []*string + OwnerIds []string // The IDs of the AWS accounts that can create volumes from the snapshot. - RestorableByUserIds []*string + RestorableByUserIds []string // The snapshot IDs. Default: Describes the snapshots for which you have create // volume permissions. - SnapshotIds []*string + SnapshotIds []string } type DescribeSnapshotsOutput struct { @@ -157,7 +157,7 @@ type DescribeSnapshotsOutput struct { NextToken *string // Information about the snapshots. - Snapshots []*types.Snapshot + Snapshots []types.Snapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeSpotDatafeedSubscription.go b/service/ec2/api_op_DescribeSpotDatafeedSubscription.go index 38d2cad97cc..db0f9e57ce0 100644 --- a/service/ec2/api_op_DescribeSpotDatafeedSubscription.go +++ b/service/ec2/api_op_DescribeSpotDatafeedSubscription.go @@ -37,7 +37,7 @@ type DescribeSpotDatafeedSubscriptionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Contains the output of DescribeSpotDatafeedSubscription. diff --git a/service/ec2/api_op_DescribeSpotFleetInstances.go b/service/ec2/api_op_DescribeSpotFleetInstances.go index d7959f6de0a..bfebfe11993 100644 --- a/service/ec2/api_op_DescribeSpotFleetInstances.go +++ b/service/ec2/api_op_DescribeSpotFleetInstances.go @@ -39,12 +39,12 @@ type DescribeSpotFleetInstancesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. NextToken *string @@ -55,7 +55,7 @@ type DescribeSpotFleetInstancesOutput struct { // The running instances. This list is refreshed periodically and might be out of // date. - ActiveInstances []*types.ActiveInstance + ActiveInstances []types.ActiveInstance // The token required to retrieve the next set of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeSpotFleetRequestHistory.go b/service/ec2/api_op_DescribeSpotFleetRequestHistory.go index 97107d52374..6758985596e 100644 --- a/service/ec2/api_op_DescribeSpotFleetRequestHistory.go +++ b/service/ec2/api_op_DescribeSpotFleetRequestHistory.go @@ -49,7 +49,7 @@ type DescribeSpotFleetRequestHistoryInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The type of events to describe. By default, all events are described. EventType types.EventType @@ -57,7 +57,7 @@ type DescribeSpotFleetRequestHistoryInput struct { // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. NextToken *string @@ -67,7 +67,7 @@ type DescribeSpotFleetRequestHistoryInput struct { type DescribeSpotFleetRequestHistoryOutput struct { // Information about the events in the history of the Spot Fleet request. - HistoryRecords []*types.HistoryRecord + HistoryRecords []types.HistoryRecord // The last date and time for the events, in UTC format (for example, // YYYY-MM-DDTHH:MM:SSZ). All records up to this time were retrieved. If nextToken diff --git a/service/ec2/api_op_DescribeSpotFleetRequests.go b/service/ec2/api_op_DescribeSpotFleetRequests.go index c2213aa6778..49a0f38c69f 100644 --- a/service/ec2/api_op_DescribeSpotFleetRequests.go +++ b/service/ec2/api_op_DescribeSpotFleetRequests.go @@ -35,18 +35,18 @@ type DescribeSpotFleetRequestsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. NextToken *string // The IDs of the Spot Fleet requests. - SpotFleetRequestIds []*string + SpotFleetRequestIds []string } // Contains the output of DescribeSpotFleetRequests. @@ -57,7 +57,7 @@ type DescribeSpotFleetRequestsOutput struct { NextToken *string // Information about the configuration of your Spot Fleet. - SpotFleetRequestConfigs []*types.SpotFleetRequestConfig + SpotFleetRequestConfigs []types.SpotFleetRequestConfig // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeSpotInstanceRequests.go b/service/ec2/api_op_DescribeSpotInstanceRequests.go index 2985a830c58..97c8aab5302 100644 --- a/service/ec2/api_op_DescribeSpotInstanceRequests.go +++ b/service/ec2/api_op_DescribeSpotInstanceRequests.go @@ -47,7 +47,7 @@ type DescribeSpotInstanceRequestsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -178,19 +178,19 @@ type DescribeSpotInstanceRequestsInput struct { // - The start date of the request. // // * valid-until - The end date of the request. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return in a single call. Specify a value // between 5 and 1000. To retrieve the remaining results, make another call with // the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The token to request the next set of results. This value is null when there are // no more results to return. NextToken *string // One or more Spot Instance request IDs. - SpotInstanceRequestIds []*string + SpotInstanceRequestIds []string } // Contains the output of DescribeSpotInstanceRequests. @@ -201,7 +201,7 @@ type DescribeSpotInstanceRequestsOutput struct { NextToken *string // One or more Spot Instance requests. - SpotInstanceRequests []*types.SpotInstanceRequest + SpotInstanceRequests []types.SpotInstanceRequest // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeSpotPriceHistory.go b/service/ec2/api_op_DescribeSpotPriceHistory.go index 111b36bc8ef..2e8d3c696ce 100644 --- a/service/ec2/api_op_DescribeSpotPriceHistory.go +++ b/service/ec2/api_op_DescribeSpotPriceHistory.go @@ -45,7 +45,7 @@ type DescribeSpotPriceHistoryInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The date and time, up to the current date, from which to stop retrieving the // price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). @@ -71,7 +71,7 @@ type DescribeSpotPriceHistoryInput struct { // * timestamp - The time stamp of the Spot price history, in UTC // format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). // Greater than or less than comparison is not supported. - Filters []*types.Filter + Filters []types.Filter // Filters the results by the specified instance types. InstanceTypes []types.InstanceType @@ -79,13 +79,13 @@ type DescribeSpotPriceHistoryInput struct { // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next set of results. NextToken *string // Filters the results by the specified basic product descriptions. - ProductDescriptions []*string + ProductDescriptions []string // The date and time, up to the past 90 days, from which to start retrieving the // price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). @@ -100,7 +100,7 @@ type DescribeSpotPriceHistoryOutput struct { NextToken *string // The historical Spot prices. - SpotPriceHistory []*types.SpotPrice + SpotPriceHistory []types.SpotPrice // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeStaleSecurityGroups.go b/service/ec2/api_op_DescribeStaleSecurityGroups.go index 45e6cad19b4..fc8b36c51e0 100644 --- a/service/ec2/api_op_DescribeStaleSecurityGroups.go +++ b/service/ec2/api_op_DescribeStaleSecurityGroups.go @@ -41,11 +41,11 @@ type DescribeStaleSecurityGroupsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The maximum number of items to return for this request. The request returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // prior call.) @@ -59,7 +59,7 @@ type DescribeStaleSecurityGroupsOutput struct { NextToken *string // Information about the stale security groups. - StaleSecurityGroupSet []*types.StaleSecurityGroup + StaleSecurityGroupSet []types.StaleSecurityGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeSubnets.go b/service/ec2/api_op_DescribeSubnets.go index 3ae922a1163..aa92436fed2 100644 --- a/service/ec2/api_op_DescribeSubnets.go +++ b/service/ec2/api_op_DescribeSubnets.go @@ -35,7 +35,7 @@ type DescribeSubnetsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -91,17 +91,17 @@ type DescribeSubnetsInput struct { // // * vpc-id - The ID of the VPC for the // subnet. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // One or more subnet IDs. Default: Describes all your subnets. - SubnetIds []*string + SubnetIds []string } type DescribeSubnetsOutput struct { @@ -111,7 +111,7 @@ type DescribeSubnetsOutput struct { NextToken *string // Information about one or more subnets. - Subnets []*types.Subnet + Subnets []types.Subnet // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeTags.go b/service/ec2/api_op_DescribeTags.go index b4e560e7140..8f3a68c9155 100644 --- a/service/ec2/api_op_DescribeTags.go +++ b/service/ec2/api_op_DescribeTags.go @@ -36,7 +36,7 @@ type DescribeTagsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -58,12 +58,12 @@ type DescribeTagsInput struct { // value to find resources with the tag "Owner=TeamA". // // * value - The tag value. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return in a single call. This value can be // between 5 and 1000. To retrieve the remaining results, make another call with // the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string @@ -76,7 +76,7 @@ type DescribeTagsOutput struct { NextToken *string // The tags. - Tags []*types.TagDescription + Tags []types.TagDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeTrafficMirrorFilters.go b/service/ec2/api_op_DescribeTrafficMirrorFilters.go index fdd907b4bfc..bd3150c58f9 100644 --- a/service/ec2/api_op_DescribeTrafficMirrorFilters.go +++ b/service/ec2/api_op_DescribeTrafficMirrorFilters.go @@ -33,7 +33,7 @@ type DescribeTrafficMirrorFiltersInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -42,17 +42,17 @@ type DescribeTrafficMirrorFiltersInput struct { // // * traffic-mirror-filter-id: The ID of the Traffic Mirror // filter. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The ID of the Traffic Mirror filter. - TrafficMirrorFilterIds []*string + TrafficMirrorFilterIds []string } type DescribeTrafficMirrorFiltersOutput struct { @@ -62,7 +62,7 @@ type DescribeTrafficMirrorFiltersOutput struct { NextToken *string // Information about one or more Traffic Mirror filters. - TrafficMirrorFilters []*types.TrafficMirrorFilter + TrafficMirrorFilters []types.TrafficMirrorFilter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeTrafficMirrorSessions.go b/service/ec2/api_op_DescribeTrafficMirrorSessions.go index c0ec7106848..d06b515157f 100644 --- a/service/ec2/api_op_DescribeTrafficMirrorSessions.go +++ b/service/ec2/api_op_DescribeTrafficMirrorSessions.go @@ -34,7 +34,7 @@ type DescribeTrafficMirrorSessionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -63,17 +63,17 @@ type DescribeTrafficMirrorSessionsInput struct { // // * // virtual-network-id: The virtual network ID of the Traffic Mirror session. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The ID of the Traffic Mirror session. - TrafficMirrorSessionIds []*string + TrafficMirrorSessionIds []string } type DescribeTrafficMirrorSessionsOutput struct { @@ -84,7 +84,7 @@ type DescribeTrafficMirrorSessionsOutput struct { // Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror // sessions are described. Alternatively, you can filter the results. - TrafficMirrorSessions []*types.TrafficMirrorSession + TrafficMirrorSessions []types.TrafficMirrorSession // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeTrafficMirrorTargets.go b/service/ec2/api_op_DescribeTrafficMirrorTargets.go index 61576aac1b4..60c11b9c086 100644 --- a/service/ec2/api_op_DescribeTrafficMirrorTargets.go +++ b/service/ec2/api_op_DescribeTrafficMirrorTargets.go @@ -33,7 +33,7 @@ type DescribeTrafficMirrorTargetsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -51,17 +51,17 @@ type DescribeTrafficMirrorTargetsInput struct { // // * // traffic-mirror-target-id: The ID of the Traffic Mirror target. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The ID of the Traffic Mirror targets. - TrafficMirrorTargetIds []*string + TrafficMirrorTargetIds []string } type DescribeTrafficMirrorTargetsOutput struct { @@ -71,7 +71,7 @@ type DescribeTrafficMirrorTargetsOutput struct { NextToken *string // Information about one or more Traffic Mirror targets. - TrafficMirrorTargets []*types.TrafficMirrorTarget + TrafficMirrorTargets []types.TrafficMirrorTarget // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeTransitGatewayAttachments.go b/service/ec2/api_op_DescribeTransitGatewayAttachments.go index 3d26caf502a..b15fdd0b56e 100644 --- a/service/ec2/api_op_DescribeTransitGatewayAttachments.go +++ b/service/ec2/api_op_DescribeTransitGatewayAttachments.go @@ -35,7 +35,7 @@ type DescribeTransitGatewayAttachmentsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -67,17 +67,17 @@ type DescribeTransitGatewayAttachmentsInput struct { // // * transit-gateway-owner-id - The ID of the AWS account that owns the // transit gateway. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The IDs of the attachments. - TransitGatewayAttachmentIds []*string + TransitGatewayAttachmentIds []string } type DescribeTransitGatewayAttachmentsOutput struct { @@ -87,7 +87,7 @@ type DescribeTransitGatewayAttachmentsOutput struct { NextToken *string // Information about the attachments. - TransitGatewayAttachments []*types.TransitGatewayAttachment + TransitGatewayAttachments []types.TransitGatewayAttachment // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeTransitGatewayMulticastDomains.go b/service/ec2/api_op_DescribeTransitGatewayMulticastDomains.go index d73fdf25ef7..b8f85171366 100644 --- a/service/ec2/api_op_DescribeTransitGatewayMulticastDomains.go +++ b/service/ec2/api_op_DescribeTransitGatewayMulticastDomains.go @@ -33,7 +33,7 @@ type DescribeTransitGatewayMulticastDomainsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -46,17 +46,17 @@ type DescribeTransitGatewayMulticastDomainsInput struct { // * // transit-gateway-multicast-domain-id - The ID of the transit gateway multicast // domain. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The ID of the transit gateway multicast domain. - TransitGatewayMulticastDomainIds []*string + TransitGatewayMulticastDomainIds []string } type DescribeTransitGatewayMulticastDomainsOutput struct { @@ -66,7 +66,7 @@ type DescribeTransitGatewayMulticastDomainsOutput struct { NextToken *string // Information about the transit gateway multicast domains. - TransitGatewayMulticastDomains []*types.TransitGatewayMulticastDomain + TransitGatewayMulticastDomains []types.TransitGatewayMulticastDomain // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeTransitGatewayPeeringAttachments.go b/service/ec2/api_op_DescribeTransitGatewayPeeringAttachments.go index a8eaa2550a7..cf4cdee42f0 100644 --- a/service/ec2/api_op_DescribeTransitGatewayPeeringAttachments.go +++ b/service/ec2/api_op_DescribeTransitGatewayPeeringAttachments.go @@ -33,7 +33,7 @@ type DescribeTransitGatewayPeeringAttachmentsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -52,17 +52,17 @@ type DescribeTransitGatewayPeeringAttachmentsInput struct { // rejected | rejecting). // // * transit-gateway-id - The ID of the transit gateway. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // One or more IDs of the transit gateway peering attachments. - TransitGatewayAttachmentIds []*string + TransitGatewayAttachmentIds []string } type DescribeTransitGatewayPeeringAttachmentsOutput struct { @@ -72,7 +72,7 @@ type DescribeTransitGatewayPeeringAttachmentsOutput struct { NextToken *string // The transit gateway peering attachments. - TransitGatewayPeeringAttachments []*types.TransitGatewayPeeringAttachment + TransitGatewayPeeringAttachments []types.TransitGatewayPeeringAttachment // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeTransitGatewayRouteTables.go b/service/ec2/api_op_DescribeTransitGatewayRouteTables.go index 4ba3edc6811..3be1abce6dd 100644 --- a/service/ec2/api_op_DescribeTransitGatewayRouteTables.go +++ b/service/ec2/api_op_DescribeTransitGatewayRouteTables.go @@ -34,7 +34,7 @@ type DescribeTransitGatewayRouteTablesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -53,17 +53,17 @@ type DescribeTransitGatewayRouteTablesInput struct { // // * // transit-gateway-route-table-id - The ID of the transit gateway route table. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The IDs of the transit gateway route tables. - TransitGatewayRouteTableIds []*string + TransitGatewayRouteTableIds []string } type DescribeTransitGatewayRouteTablesOutput struct { @@ -73,7 +73,7 @@ type DescribeTransitGatewayRouteTablesOutput struct { NextToken *string // Information about the transit gateway route tables. - TransitGatewayRouteTables []*types.TransitGatewayRouteTable + TransitGatewayRouteTables []types.TransitGatewayRouteTable // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeTransitGatewayVpcAttachments.go b/service/ec2/api_op_DescribeTransitGatewayVpcAttachments.go index b0618e0c389..f8ec173a5fb 100644 --- a/service/ec2/api_op_DescribeTransitGatewayVpcAttachments.go +++ b/service/ec2/api_op_DescribeTransitGatewayVpcAttachments.go @@ -34,7 +34,7 @@ type DescribeTransitGatewayVpcAttachmentsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -50,17 +50,17 @@ type DescribeTransitGatewayVpcAttachmentsInput struct { // // * vpc-id - // The ID of the VPC. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The IDs of the attachments. - TransitGatewayAttachmentIds []*string + TransitGatewayAttachmentIds []string } type DescribeTransitGatewayVpcAttachmentsOutput struct { @@ -70,7 +70,7 @@ type DescribeTransitGatewayVpcAttachmentsOutput struct { NextToken *string // Information about the VPC attachments. - TransitGatewayVpcAttachments []*types.TransitGatewayVpcAttachment + TransitGatewayVpcAttachments []types.TransitGatewayVpcAttachment // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeTransitGateways.go b/service/ec2/api_op_DescribeTransitGateways.go index b1ecf506543..4fdfaf564e6 100644 --- a/service/ec2/api_op_DescribeTransitGateways.go +++ b/service/ec2/api_op_DescribeTransitGateways.go @@ -34,7 +34,7 @@ type DescribeTransitGatewaysInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -75,17 +75,17 @@ type DescribeTransitGatewaysInput struct { // // * transit-gateway-id - // The ID of the transit gateway. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The IDs of the transit gateways. - TransitGatewayIds []*string + TransitGatewayIds []string } type DescribeTransitGatewaysOutput struct { @@ -95,7 +95,7 @@ type DescribeTransitGatewaysOutput struct { NextToken *string // Information about the transit gateways. - TransitGateways []*types.TransitGateway + TransitGateways []types.TransitGateway // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeVolumeAttribute.go b/service/ec2/api_op_DescribeVolumeAttribute.go index ee23a766fd9..cba39336c24 100644 --- a/service/ec2/api_op_DescribeVolumeAttribute.go +++ b/service/ec2/api_op_DescribeVolumeAttribute.go @@ -46,7 +46,7 @@ type DescribeVolumeAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DescribeVolumeAttributeOutput struct { @@ -55,7 +55,7 @@ type DescribeVolumeAttributeOutput struct { AutoEnableIO *types.AttributeBooleanValue // A list of product codes. - ProductCodes []*types.ProductCode + ProductCodes []types.ProductCode // The ID of the volume. VolumeId *string diff --git a/service/ec2/api_op_DescribeVolumeStatus.go b/service/ec2/api_op_DescribeVolumeStatus.go index 1e7f6eb4bcb..61f1817413e 100644 --- a/service/ec2/api_op_DescribeVolumeStatus.go +++ b/service/ec2/api_op_DescribeVolumeStatus.go @@ -61,7 +61,7 @@ type DescribeVolumeStatusInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -101,7 +101,7 @@ type DescribeVolumeStatusInput struct { // // * volume-status.status - The // status of the volume (ok | impaired | warning | insufficient-data). - Filters []*types.Filter + Filters []types.Filter // The maximum number of volume results returned by DescribeVolumeStatus in // paginated output. When this parameter is used, the request only returns @@ -111,7 +111,7 @@ type DescribeVolumeStatusInput struct { // MaxResults is given a value larger than 1000, only 1000 results are returned. If // this parameter is not used, then DescribeVolumeStatus returns all results. You // cannot specify this parameter and the volume IDs parameter in the same request. - MaxResults *int32 + MaxResults int32 // The NextToken value to include in a future DescribeVolumeStatus request. When // the results of the request exceed MaxResults, this value can be used to retrieve @@ -120,7 +120,7 @@ type DescribeVolumeStatusInput struct { NextToken *string // The IDs of the volumes. Default: Describes all your volumes. - VolumeIds []*string + VolumeIds []string } type DescribeVolumeStatusOutput struct { @@ -130,7 +130,7 @@ type DescribeVolumeStatusOutput struct { NextToken *string // Information about the status of the volumes. - VolumeStatuses []*types.VolumeStatusItem + VolumeStatuses []types.VolumeStatusItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeVolumes.go b/service/ec2/api_op_DescribeVolumes.go index 88ef68ab8f0..bc3aa5f2b2c 100644 --- a/service/ec2/api_op_DescribeVolumes.go +++ b/service/ec2/api_op_DescribeVolumes.go @@ -41,7 +41,7 @@ type DescribeVolumesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -100,7 +100,7 @@ type DescribeVolumesInput struct { // * volume-type - The Amazon EBS volume type. This can be gp2 for // General Purpose SSD, io1 or io2 for Provisioned IOPS SSD, st1 for Throughput // Optimized HDD, sc1 for Cold HDD, or standard for Magnetic volumes. - Filters []*types.Filter + Filters []types.Filter // The maximum number of volume results returned by DescribeVolumes in paginated // output. When this parameter is used, DescribeVolumes only returns MaxResults @@ -110,7 +110,7 @@ type DescribeVolumesInput struct { // if MaxResults is given a value larger than 500, only 500 results are returned. // If this parameter is not used, then DescribeVolumes returns all results. You // cannot specify this parameter and the volume IDs parameter in the same request. - MaxResults *int32 + MaxResults int32 // The NextToken value returned from a previous paginated DescribeVolumes request // where MaxResults was used and the results exceeded the value of that parameter. @@ -119,7 +119,7 @@ type DescribeVolumesInput struct { NextToken *string // The volume IDs. - VolumeIds []*string + VolumeIds []string } type DescribeVolumesOutput struct { @@ -131,7 +131,7 @@ type DescribeVolumesOutput struct { NextToken *string // Information about the volumes. - Volumes []*types.Volume + Volumes []types.Volume // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeVolumesModifications.go b/service/ec2/api_op_DescribeVolumesModifications.go index 45fcb88c0b6..611c1a61c6c 100644 --- a/service/ec2/api_op_DescribeVolumesModifications.go +++ b/service/ec2/api_op_DescribeVolumesModifications.go @@ -42,7 +42,7 @@ type DescribeVolumesModificationsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. // @@ -77,17 +77,17 @@ type DescribeVolumesModificationsInput struct { // enabled (true | false). // // * volume-id - The ID of the volume. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results (up to a limit of 500) to be returned in a // paginated request. - MaxResults *int32 + MaxResults int32 // The nextToken value returned by a previous paginated request. NextToken *string // The IDs of the volumes. - VolumeIds []*string + VolumeIds []string } type DescribeVolumesModificationsOutput struct { @@ -96,7 +96,7 @@ type DescribeVolumesModificationsOutput struct { NextToken *string // Information about the volume modifications. - VolumesModifications []*types.VolumeModification + VolumesModifications []types.VolumeModification // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeVpcAttribute.go b/service/ec2/api_op_DescribeVpcAttribute.go index ae986f20306..88291ee0bd9 100644 --- a/service/ec2/api_op_DescribeVpcAttribute.go +++ b/service/ec2/api_op_DescribeVpcAttribute.go @@ -44,7 +44,7 @@ type DescribeVpcAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DescribeVpcAttributeOutput struct { diff --git a/service/ec2/api_op_DescribeVpcClassicLink.go b/service/ec2/api_op_DescribeVpcClassicLink.go index df9e5e88ac9..fb695f0324e 100644 --- a/service/ec2/api_op_DescribeVpcClassicLink.go +++ b/service/ec2/api_op_DescribeVpcClassicLink.go @@ -33,7 +33,7 @@ type DescribeVpcClassicLinkInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -49,16 +49,16 @@ type DescribeVpcClassicLinkInput struct { // * tag-key - The key of a tag assigned to the resource. // Use this filter to find all resources assigned a tag with a specific key, // regardless of the tag value. - Filters []*types.Filter + Filters []types.Filter // One or more VPCs for which you want to describe the ClassicLink status. - VpcIds []*string + VpcIds []string } type DescribeVpcClassicLinkOutput struct { // The ClassicLink status of one or more VPCs. - Vpcs []*types.VpcClassicLink + Vpcs []types.VpcClassicLink // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go b/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go index b5ee9a51a9f..e8657eefba3 100644 --- a/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go +++ b/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go @@ -38,13 +38,13 @@ type DescribeVpcClassicLinkDnsSupportInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // One or more VPC IDs. - VpcIds []*string + VpcIds []string } type DescribeVpcClassicLinkDnsSupportOutput struct { @@ -54,7 +54,7 @@ type DescribeVpcClassicLinkDnsSupportOutput struct { NextToken *string // Information about the ClassicLink DNS support status of the VPCs. - Vpcs []*types.ClassicLinkDnsSupport + Vpcs []types.ClassicLinkDnsSupport // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeVpcEndpointConnectionNotifications.go b/service/ec2/api_op_DescribeVpcEndpointConnectionNotifications.go index 00a597a6d2c..ceeb41aebe8 100644 --- a/service/ec2/api_op_DescribeVpcEndpointConnectionNotifications.go +++ b/service/ec2/api_op_DescribeVpcEndpointConnectionNotifications.go @@ -37,7 +37,7 @@ type DescribeVpcEndpointConnectionNotificationsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -57,11 +57,11 @@ type DescribeVpcEndpointConnectionNotificationsInput struct { // // * vpc-endpoint-id - // The ID of the VPC endpoint. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return in a single call. To retrieve the // remaining results, make another request with the returned NextToken value. - MaxResults *int32 + MaxResults int32 // The token to request the next page of results. NextToken *string @@ -70,7 +70,7 @@ type DescribeVpcEndpointConnectionNotificationsInput struct { type DescribeVpcEndpointConnectionNotificationsOutput struct { // One or more notifications. - ConnectionNotificationSet []*types.ConnectionNotification + ConnectionNotificationSet []types.ConnectionNotification // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeVpcEndpointConnections.go b/service/ec2/api_op_DescribeVpcEndpointConnections.go index 8f305de5b0e..5c053635d9b 100644 --- a/service/ec2/api_op_DescribeVpcEndpointConnections.go +++ b/service/ec2/api_op_DescribeVpcEndpointConnections.go @@ -34,7 +34,7 @@ type DescribeVpcEndpointConnectionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -49,13 +49,13 @@ type DescribeVpcEndpointConnectionsInput struct { // // * vpc-endpoint-id - The ID // of the endpoint. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return for the request in a single page. The // remaining results of the initial request can be seen by sending another request // with the returned NextToken value. This value can be between 5 and 1,000; if // MaxResults is given a value larger than 1,000, only 1,000 results are returned. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string @@ -68,7 +68,7 @@ type DescribeVpcEndpointConnectionsOutput struct { NextToken *string // Information about one or more VPC endpoint connections. - VpcEndpointConnections []*types.VpcEndpointConnection + VpcEndpointConnections []types.VpcEndpointConnection // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeVpcEndpointServiceConfigurations.go b/service/ec2/api_op_DescribeVpcEndpointServiceConfigurations.go index c6fa72b2c09..372cad26581 100644 --- a/service/ec2/api_op_DescribeVpcEndpointServiceConfigurations.go +++ b/service/ec2/api_op_DescribeVpcEndpointServiceConfigurations.go @@ -34,7 +34,7 @@ type DescribeVpcEndpointServiceConfigurationsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -55,19 +55,19 @@ type DescribeVpcEndpointServiceConfigurationsInput struct { // * tag-key - The key of a tag assigned to the // resource. Use this filter to find all resources assigned a tag with a specific // key, regardless of the tag value. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return for the request in a single page. The // remaining results of the initial request can be seen by sending another request // with the returned NextToken value. This value can be between 5 and 1,000; if // MaxResults is given a value larger than 1,000, only 1,000 results are returned. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string // The IDs of one or more services. - ServiceIds []*string + ServiceIds []string } type DescribeVpcEndpointServiceConfigurationsOutput struct { @@ -77,7 +77,7 @@ type DescribeVpcEndpointServiceConfigurationsOutput struct { NextToken *string // Information about one or more services. - ServiceConfigurations []*types.ServiceConfiguration + ServiceConfigurations []types.ServiceConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeVpcEndpointServicePermissions.go b/service/ec2/api_op_DescribeVpcEndpointServicePermissions.go index d96c4b7e648..5ac140b40f8 100644 --- a/service/ec2/api_op_DescribeVpcEndpointServicePermissions.go +++ b/service/ec2/api_op_DescribeVpcEndpointServicePermissions.go @@ -39,7 +39,7 @@ type DescribeVpcEndpointServicePermissionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -47,13 +47,13 @@ type DescribeVpcEndpointServicePermissionsInput struct { // // * principal-type // - The principal type (All | Service | OrganizationUnit | Account | User | Role). - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return for the request in a single page. The // remaining results of the initial request can be seen by sending another request // with the returned NextToken value. This value can be between 5 and 1,000; if // MaxResults is given a value larger than 1,000, only 1,000 results are returned. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string @@ -62,7 +62,7 @@ type DescribeVpcEndpointServicePermissionsInput struct { type DescribeVpcEndpointServicePermissionsOutput struct { // Information about one or more allowed principals. - AllowedPrincipals []*types.AllowedPrincipal + AllowedPrincipals []types.AllowedPrincipal // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_DescribeVpcEndpointServices.go b/service/ec2/api_op_DescribeVpcEndpointServices.go index a53fb8f42d4..db2f5c6a787 100644 --- a/service/ec2/api_op_DescribeVpcEndpointServices.go +++ b/service/ec2/api_op_DescribeVpcEndpointServices.go @@ -34,7 +34,7 @@ type DescribeVpcEndpointServicesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -49,19 +49,19 @@ type DescribeVpcEndpointServicesInput struct { // * tag-key - The // key of a tag assigned to the resource. Use this filter to find all resources // assigned a tag with a specific key, regardless of the tag value. - Filters []*types.Filter + Filters []types.Filter // The maximum number of items to return for this request. The request returns a // token that you can specify in a subsequent call to get the next set of results. // Constraint: If the value is greater than 1,000, we return only 1,000 items. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // prior call.) NextToken *string // One or more service names. - ServiceNames []*string + ServiceNames []string } // Contains the output of DescribeVpcEndpointServices. @@ -72,10 +72,10 @@ type DescribeVpcEndpointServicesOutput struct { NextToken *string // Information about the service. - ServiceDetails []*types.ServiceDetail + ServiceDetails []types.ServiceDetail // A list of supported services. - ServiceNames []*string + ServiceNames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeVpcEndpoints.go b/service/ec2/api_op_DescribeVpcEndpoints.go index 429314e2dcb..e2748646e28 100644 --- a/service/ec2/api_op_DescribeVpcEndpoints.go +++ b/service/ec2/api_op_DescribeVpcEndpoints.go @@ -34,7 +34,7 @@ type DescribeVpcEndpointsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -58,19 +58,19 @@ type DescribeVpcEndpointsInput struct { // * tag-key - The // key of a tag assigned to the resource. Use this filter to find all resources // assigned a tag with a specific key, regardless of the tag value. - Filters []*types.Filter + Filters []types.Filter // The maximum number of items to return for this request. The request returns a // token that you can specify in a subsequent call to get the next set of results. // Constraint: If the value is greater than 1,000, we return only 1,000 items. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // prior call.) NextToken *string // One or more endpoint IDs. - VpcEndpointIds []*string + VpcEndpointIds []string } // Contains the output of DescribeVpcEndpoints. @@ -81,7 +81,7 @@ type DescribeVpcEndpointsOutput struct { NextToken *string // Information about the endpoints. - VpcEndpoints []*types.VpcEndpoint + VpcEndpoints []types.VpcEndpoint // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeVpcPeeringConnections.go b/service/ec2/api_op_DescribeVpcPeeringConnections.go index 3b24f693d56..329813e56b8 100644 --- a/service/ec2/api_op_DescribeVpcPeeringConnections.go +++ b/service/ec2/api_op_DescribeVpcPeeringConnections.go @@ -33,7 +33,7 @@ type DescribeVpcPeeringConnectionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -77,18 +77,18 @@ type DescribeVpcPeeringConnectionsInput struct { // // * // vpc-peering-connection-id - The ID of the VPC peering connection. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // One or more VPC peering connection IDs. Default: Describes all your VPC peering // connections. - VpcPeeringConnectionIds []*string + VpcPeeringConnectionIds []string } type DescribeVpcPeeringConnectionsOutput struct { @@ -98,7 +98,7 @@ type DescribeVpcPeeringConnectionsOutput struct { NextToken *string // Information about the VPC peering connections. - VpcPeeringConnections []*types.VpcPeeringConnection + VpcPeeringConnections []types.VpcPeeringConnection // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeVpcs.go b/service/ec2/api_op_DescribeVpcs.go index 2b6dea35a2e..b63e980cb6e 100644 --- a/service/ec2/api_op_DescribeVpcs.go +++ b/service/ec2/api_op_DescribeVpcs.go @@ -33,7 +33,7 @@ type DescribeVpcsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -88,17 +88,17 @@ type DescribeVpcsInput struct { // // * vpc-id - The // ID of the VPC. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // One or more VPC IDs. Default: Describes all your VPCs. - VpcIds []*string + VpcIds []string } type DescribeVpcsOutput struct { @@ -108,7 +108,7 @@ type DescribeVpcsOutput struct { NextToken *string // Information about one or more VPCs. - Vpcs []*types.Vpc + Vpcs []types.Vpc // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeVpnConnections.go b/service/ec2/api_op_DescribeVpnConnections.go index 34e367ef69b..aec4af2ccf1 100644 --- a/service/ec2/api_op_DescribeVpnConnections.go +++ b/service/ec2/api_op_DescribeVpnConnections.go @@ -36,7 +36,7 @@ type DescribeVpnConnectionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -81,17 +81,17 @@ type DescribeVpnConnectionsInput struct { // // * transit-gateway-id - The ID of a // transit gateway associated with the VPN connection. - Filters []*types.Filter + Filters []types.Filter // One or more VPN connection IDs. Default: Describes your VPN connections. - VpnConnectionIds []*string + VpnConnectionIds []string } // Contains the output of DescribeVpnConnections. type DescribeVpnConnectionsOutput struct { // Information about one or more VPN connections. - VpnConnections []*types.VpnConnection + VpnConnections []types.VpnConnection // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DescribeVpnGateways.go b/service/ec2/api_op_DescribeVpnGateways.go index 778d79eb341..0557816c05c 100644 --- a/service/ec2/api_op_DescribeVpnGateways.go +++ b/service/ec2/api_op_DescribeVpnGateways.go @@ -37,7 +37,7 @@ type DescribeVpnGatewaysInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. // @@ -72,18 +72,18 @@ type DescribeVpnGatewaysInput struct { // // * vpn-gateway-id - The ID of the // virtual private gateway. - Filters []*types.Filter + Filters []types.Filter // One or more virtual private gateway IDs. Default: Describes all your virtual // private gateways. - VpnGatewayIds []*string + VpnGatewayIds []string } // Contains the output of DescribeVpnGateways. type DescribeVpnGatewaysOutput struct { // Information about one or more virtual private gateways. - VpnGateways []*types.VpnGateway + VpnGateways []types.VpnGateway // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DetachClassicLinkVpc.go b/service/ec2/api_op_DetachClassicLinkVpc.go index 4d19668c30f..14e67f68e88 100644 --- a/service/ec2/api_op_DetachClassicLinkVpc.go +++ b/service/ec2/api_op_DetachClassicLinkVpc.go @@ -44,13 +44,13 @@ type DetachClassicLinkVpcInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DetachClassicLinkVpcOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DetachInternetGateway.go b/service/ec2/api_op_DetachInternetGateway.go index b7796930884..323b7ba3920 100644 --- a/service/ec2/api_op_DetachInternetGateway.go +++ b/service/ec2/api_op_DetachInternetGateway.go @@ -44,7 +44,7 @@ type DetachInternetGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DetachInternetGatewayOutput struct { diff --git a/service/ec2/api_op_DetachNetworkInterface.go b/service/ec2/api_op_DetachNetworkInterface.go index dce8d2e704b..694ed7b36ec 100644 --- a/service/ec2/api_op_DetachNetworkInterface.go +++ b/service/ec2/api_op_DetachNetworkInterface.go @@ -38,7 +38,7 @@ type DetachNetworkInterfaceInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Specifies whether to force a detachment. // @@ -56,7 +56,7 @@ type DetachNetworkInterfaceInput struct { // might not get updated. This means that the attributes associated with the // detached network interface might still be visible. The instance metadata will // get updated when you stop and start the instance. - Force *bool + Force bool } type DetachNetworkInterfaceOutput struct { diff --git a/service/ec2/api_op_DetachVolume.go b/service/ec2/api_op_DetachVolume.go index 979d4c36a78..9a76e657188 100644 --- a/service/ec2/api_op_DetachVolume.go +++ b/service/ec2/api_op_DetachVolume.go @@ -53,7 +53,7 @@ type DetachVolumeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Forces detachment if the previous detachment attempt did not occur cleanly (for // example, logging into an instance, unmounting the volume, and detaching @@ -62,7 +62,7 @@ type DetachVolumeInput struct { // instance won't have an opportunity to flush file system caches or file system // metadata. If you use this option, you must perform file system check and repair // procedures. - Force *bool + Force bool // The ID of the instance. If you are detaching a Multi-Attach enabled volume, you // must specify an instance ID. @@ -76,7 +76,7 @@ type DetachVolumeOutput struct { AttachTime *time.Time // Indicates whether the EBS volume is deleted on instance termination. - DeleteOnTermination *bool + DeleteOnTermination bool // The device name. Device *string diff --git a/service/ec2/api_op_DetachVpnGateway.go b/service/ec2/api_op_DetachVpnGateway.go index eb49aa310d1..c6561754f61 100644 --- a/service/ec2/api_op_DetachVpnGateway.go +++ b/service/ec2/api_op_DetachVpnGateway.go @@ -49,7 +49,7 @@ type DetachVpnGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DetachVpnGatewayOutput struct { diff --git a/service/ec2/api_op_DisableEbsEncryptionByDefault.go b/service/ec2/api_op_DisableEbsEncryptionByDefault.go index 51a6d486caf..353c0a9666a 100644 --- a/service/ec2/api_op_DisableEbsEncryptionByDefault.go +++ b/service/ec2/api_op_DisableEbsEncryptionByDefault.go @@ -38,13 +38,13 @@ type DisableEbsEncryptionByDefaultInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DisableEbsEncryptionByDefaultOutput struct { // The updated status of encryption by default. - EbsEncryptionByDefault *bool + EbsEncryptionByDefault bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DisableFastSnapshotRestores.go b/service/ec2/api_op_DisableFastSnapshotRestores.go index 934513c1cdb..6589ae3edfc 100644 --- a/service/ec2/api_op_DisableFastSnapshotRestores.go +++ b/service/ec2/api_op_DisableFastSnapshotRestores.go @@ -33,29 +33,29 @@ type DisableFastSnapshotRestoresInput struct { // One or more Availability Zones. For example, us-east-2a. // // This member is required. - AvailabilityZones []*string + AvailabilityZones []string // The IDs of one or more snapshots. For example, snap-1234567890abcdef0. // // This member is required. - SourceSnapshotIds []*string + SourceSnapshotIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DisableFastSnapshotRestoresOutput struct { // Information about the snapshots for which fast snapshot restores were // successfully disabled. - Successful []*types.DisableFastSnapshotRestoreSuccessItem + Successful []types.DisableFastSnapshotRestoreSuccessItem // Information about the snapshots for which fast snapshot restores could not be // disabled. - Unsuccessful []*types.DisableFastSnapshotRestoreErrorItem + Unsuccessful []types.DisableFastSnapshotRestoreErrorItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DisableTransitGatewayRouteTablePropagation.go b/service/ec2/api_op_DisableTransitGatewayRouteTablePropagation.go index 762af2e24a8..4c5d9edeb1d 100644 --- a/service/ec2/api_op_DisableTransitGatewayRouteTablePropagation.go +++ b/service/ec2/api_op_DisableTransitGatewayRouteTablePropagation.go @@ -44,7 +44,7 @@ type DisableTransitGatewayRouteTablePropagationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DisableTransitGatewayRouteTablePropagationOutput struct { diff --git a/service/ec2/api_op_DisableVgwRoutePropagation.go b/service/ec2/api_op_DisableVgwRoutePropagation.go index 1764b3fbf6e..6161e45a4f7 100644 --- a/service/ec2/api_op_DisableVgwRoutePropagation.go +++ b/service/ec2/api_op_DisableVgwRoutePropagation.go @@ -44,7 +44,7 @@ type DisableVgwRoutePropagationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DisableVgwRoutePropagationOutput struct { diff --git a/service/ec2/api_op_DisableVpcClassicLink.go b/service/ec2/api_op_DisableVpcClassicLink.go index c879b0332fb..c684a220e45 100644 --- a/service/ec2/api_op_DisableVpcClassicLink.go +++ b/service/ec2/api_op_DisableVpcClassicLink.go @@ -38,13 +38,13 @@ type DisableVpcClassicLinkInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DisableVpcClassicLinkOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go b/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go index 049364bf2da..528ea65748b 100644 --- a/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go +++ b/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go @@ -40,7 +40,7 @@ type DisableVpcClassicLinkDnsSupportInput struct { type DisableVpcClassicLinkDnsSupportOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DisassociateAddress.go b/service/ec2/api_op_DisassociateAddress.go index d3bebc194d3..b86ea6ed38a 100644 --- a/service/ec2/api_op_DisassociateAddress.go +++ b/service/ec2/api_op_DisassociateAddress.go @@ -40,7 +40,7 @@ type DisassociateAddressInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // [EC2-Classic] The Elastic IP address. Required for EC2-Classic. PublicIp *string diff --git a/service/ec2/api_op_DisassociateClientVpnTargetNetwork.go b/service/ec2/api_op_DisassociateClientVpnTargetNetwork.go index 4651d5b86fa..aa9e53ec1a4 100644 --- a/service/ec2/api_op_DisassociateClientVpnTargetNetwork.go +++ b/service/ec2/api_op_DisassociateClientVpnTargetNetwork.go @@ -55,7 +55,7 @@ type DisassociateClientVpnTargetNetworkInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DisassociateClientVpnTargetNetworkOutput struct { diff --git a/service/ec2/api_op_DisassociateEnclaveCertificateIamRole.go b/service/ec2/api_op_DisassociateEnclaveCertificateIamRole.go index 654305affc6..1e49ff50d28 100644 --- a/service/ec2/api_op_DisassociateEnclaveCertificateIamRole.go +++ b/service/ec2/api_op_DisassociateEnclaveCertificateIamRole.go @@ -40,7 +40,7 @@ type DisassociateEnclaveCertificateIamRoleInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ARN of the IAM role to disassociate. RoleArn *string @@ -49,7 +49,7 @@ type DisassociateEnclaveCertificateIamRoleInput struct { type DisassociateEnclaveCertificateIamRoleOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_DisassociateRouteTable.go b/service/ec2/api_op_DisassociateRouteTable.go index fec794a6365..ce309a770f3 100644 --- a/service/ec2/api_op_DisassociateRouteTable.go +++ b/service/ec2/api_op_DisassociateRouteTable.go @@ -43,7 +43,7 @@ type DisassociateRouteTableInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DisassociateRouteTableOutput struct { diff --git a/service/ec2/api_op_DisassociateTransitGatewayMulticastDomain.go b/service/ec2/api_op_DisassociateTransitGatewayMulticastDomain.go index f94a8f6bf07..3ee537b74d1 100644 --- a/service/ec2/api_op_DisassociateTransitGatewayMulticastDomain.go +++ b/service/ec2/api_op_DisassociateTransitGatewayMulticastDomain.go @@ -33,10 +33,10 @@ type DisassociateTransitGatewayMulticastDomainInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The IDs of the subnets; - SubnetIds []*string + SubnetIds []string // The ID of the attachment. TransitGatewayAttachmentId *string diff --git a/service/ec2/api_op_DisassociateTransitGatewayRouteTable.go b/service/ec2/api_op_DisassociateTransitGatewayRouteTable.go index 24ffd57eeaf..258788dcafd 100644 --- a/service/ec2/api_op_DisassociateTransitGatewayRouteTable.go +++ b/service/ec2/api_op_DisassociateTransitGatewayRouteTable.go @@ -43,7 +43,7 @@ type DisassociateTransitGatewayRouteTableInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type DisassociateTransitGatewayRouteTableOutput struct { diff --git a/service/ec2/api_op_EnableEbsEncryptionByDefault.go b/service/ec2/api_op_EnableEbsEncryptionByDefault.go index b5464b8e031..7ba3dd1551a 100644 --- a/service/ec2/api_op_EnableEbsEncryptionByDefault.go +++ b/service/ec2/api_op_EnableEbsEncryptionByDefault.go @@ -43,13 +43,13 @@ type EnableEbsEncryptionByDefaultInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type EnableEbsEncryptionByDefaultOutput struct { // The updated status of encryption by default. - EbsEncryptionByDefault *bool + EbsEncryptionByDefault bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_EnableFastSnapshotRestores.go b/service/ec2/api_op_EnableFastSnapshotRestores.go index ffbd392e29a..f7c84e14e64 100644 --- a/service/ec2/api_op_EnableFastSnapshotRestores.go +++ b/service/ec2/api_op_EnableFastSnapshotRestores.go @@ -39,30 +39,30 @@ type EnableFastSnapshotRestoresInput struct { // One or more Availability Zones. For example, us-east-2a. // // This member is required. - AvailabilityZones []*string + AvailabilityZones []string // The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can // specify a snapshot that was shared with you from another AWS account. // // This member is required. - SourceSnapshotIds []*string + SourceSnapshotIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type EnableFastSnapshotRestoresOutput struct { // Information about the snapshots for which fast snapshot restores were // successfully enabled. - Successful []*types.EnableFastSnapshotRestoreSuccessItem + Successful []types.EnableFastSnapshotRestoreSuccessItem // Information about the snapshots for which fast snapshot restores could not be // enabled. - Unsuccessful []*types.EnableFastSnapshotRestoreErrorItem + Unsuccessful []types.EnableFastSnapshotRestoreErrorItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_EnableTransitGatewayRouteTablePropagation.go b/service/ec2/api_op_EnableTransitGatewayRouteTablePropagation.go index edab1e91b92..8aaec1a0e7a 100644 --- a/service/ec2/api_op_EnableTransitGatewayRouteTablePropagation.go +++ b/service/ec2/api_op_EnableTransitGatewayRouteTablePropagation.go @@ -44,7 +44,7 @@ type EnableTransitGatewayRouteTablePropagationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type EnableTransitGatewayRouteTablePropagationOutput struct { diff --git a/service/ec2/api_op_EnableVgwRoutePropagation.go b/service/ec2/api_op_EnableVgwRoutePropagation.go index 244083e2a13..430cd4a03df 100644 --- a/service/ec2/api_op_EnableVgwRoutePropagation.go +++ b/service/ec2/api_op_EnableVgwRoutePropagation.go @@ -47,7 +47,7 @@ type EnableVgwRoutePropagationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type EnableVgwRoutePropagationOutput struct { diff --git a/service/ec2/api_op_EnableVolumeIO.go b/service/ec2/api_op_EnableVolumeIO.go index 48a2c7b6edc..564d18f61dd 100644 --- a/service/ec2/api_op_EnableVolumeIO.go +++ b/service/ec2/api_op_EnableVolumeIO.go @@ -38,7 +38,7 @@ type EnableVolumeIOInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type EnableVolumeIOOutput struct { diff --git a/service/ec2/api_op_EnableVpcClassicLink.go b/service/ec2/api_op_EnableVpcClassicLink.go index 6c9e08e54d1..ab0a6c6be3d 100644 --- a/service/ec2/api_op_EnableVpcClassicLink.go +++ b/service/ec2/api_op_EnableVpcClassicLink.go @@ -44,13 +44,13 @@ type EnableVpcClassicLinkInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type EnableVpcClassicLinkOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go b/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go index 9e8c53db364..41c3708b97e 100644 --- a/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go +++ b/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go @@ -43,7 +43,7 @@ type EnableVpcClassicLinkDnsSupportInput struct { type EnableVpcClassicLinkDnsSupportOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ExportClientVpnClientCertificateRevocationList.go b/service/ec2/api_op_ExportClientVpnClientCertificateRevocationList.go index 2035b677046..81da0e0de48 100644 --- a/service/ec2/api_op_ExportClientVpnClientCertificateRevocationList.go +++ b/service/ec2/api_op_ExportClientVpnClientCertificateRevocationList.go @@ -39,7 +39,7 @@ type ExportClientVpnClientCertificateRevocationListInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ExportClientVpnClientCertificateRevocationListOutput struct { diff --git a/service/ec2/api_op_ExportClientVpnClientConfiguration.go b/service/ec2/api_op_ExportClientVpnClientConfiguration.go index ec7dd519d25..abc518ec8cf 100644 --- a/service/ec2/api_op_ExportClientVpnClientConfiguration.go +++ b/service/ec2/api_op_ExportClientVpnClientConfiguration.go @@ -40,7 +40,7 @@ type ExportClientVpnClientConfigurationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ExportClientVpnClientConfigurationOutput struct { diff --git a/service/ec2/api_op_ExportImage.go b/service/ec2/api_op_ExportImage.go index 208b355cdec..0d73b7682ec 100644 --- a/service/ec2/api_op_ExportImage.go +++ b/service/ec2/api_op_ExportImage.go @@ -60,7 +60,7 @@ type ExportImageInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The name of the role that grants VM Import/Export permission to export images to // your Amazon S3 bucket. If this parameter is not specified, the default role is @@ -68,7 +68,7 @@ type ExportImageInput struct { RoleName *string // The tags to apply to the image being exported. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type ExportImageOutput struct { @@ -103,7 +103,7 @@ type ExportImageOutput struct { StatusMessage *string // Any tags assigned to the image being exported. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ExportTransitGatewayRoutes.go b/service/ec2/api_op_ExportTransitGatewayRoutes.go index 8282688a49c..385a895647f 100644 --- a/service/ec2/api_op_ExportTransitGatewayRoutes.go +++ b/service/ec2/api_op_ExportTransitGatewayRoutes.go @@ -48,7 +48,7 @@ type ExportTransitGatewayRoutesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -80,7 +80,7 @@ type ExportTransitGatewayRoutesInput struct { // The CIDR range. // // * type - The type of route (propagated | static). - Filters []*types.Filter + Filters []types.Filter } type ExportTransitGatewayRoutesOutput struct { diff --git a/service/ec2/api_op_GetAssociatedEnclaveCertificateIamRoles.go b/service/ec2/api_op_GetAssociatedEnclaveCertificateIamRoles.go index 2dea2d52b40..3e0124d7a19 100644 --- a/service/ec2/api_op_GetAssociatedEnclaveCertificateIamRoles.go +++ b/service/ec2/api_op_GetAssociatedEnclaveCertificateIamRoles.go @@ -41,13 +41,13 @@ type GetAssociatedEnclaveCertificateIamRolesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type GetAssociatedEnclaveCertificateIamRolesOutput struct { // Information about the associated IAM roles. - AssociatedRoles []*types.AssociatedRole + AssociatedRoles []types.AssociatedRole // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_GetAssociatedIpv6PoolCidrs.go b/service/ec2/api_op_GetAssociatedIpv6PoolCidrs.go index 1f046debc42..97a1a300e62 100644 --- a/service/ec2/api_op_GetAssociatedIpv6PoolCidrs.go +++ b/service/ec2/api_op_GetAssociatedIpv6PoolCidrs.go @@ -39,11 +39,11 @@ type GetAssociatedIpv6PoolCidrsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -52,7 +52,7 @@ type GetAssociatedIpv6PoolCidrsInput struct { type GetAssociatedIpv6PoolCidrsOutput struct { // Information about the IPv6 CIDR block associations. - Ipv6CidrAssociations []*types.Ipv6CidrAssociation + Ipv6CidrAssociations []types.Ipv6CidrAssociation // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_GetCapacityReservationUsage.go b/service/ec2/api_op_GetCapacityReservationUsage.go index a43122dc207..9a775216500 100644 --- a/service/ec2/api_op_GetCapacityReservationUsage.go +++ b/service/ec2/api_op_GetCapacityReservationUsage.go @@ -41,14 +41,14 @@ type GetCapacityReservationUsageInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the returned // nextToken value. This value can be between 5 and 500. If maxResults is given a // larger value than 500, you receive an error. Valid range: Minimum value of 1. // Maximum value of 1000. - MaxResults *int32 + MaxResults int32 // The token to use to retrieve the next page of results. NextToken *string @@ -58,7 +58,7 @@ type GetCapacityReservationUsageOutput struct { // The remaining capacity. Indicates the number of instances that can be launched // in the Capacity Reservation. - AvailableInstanceCount *int32 + AvailableInstanceCount int32 // The ID of the Capacity Reservation. CapacityReservationId *string @@ -67,7 +67,7 @@ type GetCapacityReservationUsageOutput struct { InstanceType *string // Information about the Capacity Reservation usage. - InstanceUsages []*types.InstanceUsage + InstanceUsages []types.InstanceUsage // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. @@ -97,7 +97,7 @@ type GetCapacityReservationUsageOutput struct { State types.CapacityReservationState // The number of instances for which the Capacity Reservation reserves capacity. - TotalInstanceCount *int32 + TotalInstanceCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_GetCoipPoolUsage.go b/service/ec2/api_op_GetCoipPoolUsage.go index 21db1e479f5..97b7e989335 100644 --- a/service/ec2/api_op_GetCoipPoolUsage.go +++ b/service/ec2/api_op_GetCoipPoolUsage.go @@ -38,7 +38,7 @@ type GetCoipPoolUsageInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The filters. The following are the possible values: // @@ -51,11 +51,11 @@ type GetCoipPoolUsageInput struct { // coip-address-usage.aws-service // // * coip-address-usage.co-ip - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -64,7 +64,7 @@ type GetCoipPoolUsageInput struct { type GetCoipPoolUsageOutput struct { // Information about the address usage. - CoipAddressUsages []*types.CoipAddressUsage + CoipAddressUsages []types.CoipAddressUsage // The ID of the customer-owned address pool. CoipPoolId *string diff --git a/service/ec2/api_op_GetConsoleOutput.go b/service/ec2/api_op_GetConsoleOutput.go index b7b830564d0..1775118eb79 100644 --- a/service/ec2/api_op_GetConsoleOutput.go +++ b/service/ec2/api_op_GetConsoleOutput.go @@ -50,11 +50,11 @@ type GetConsoleOutputInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // When enabled, retrieves the latest console output for the instance. Default: // disabled (false) - Latest *bool + Latest bool } type GetConsoleOutputOutput struct { diff --git a/service/ec2/api_op_GetConsoleScreenshot.go b/service/ec2/api_op_GetConsoleScreenshot.go index e5aa6e70e0a..30562d7a2cf 100644 --- a/service/ec2/api_op_GetConsoleScreenshot.go +++ b/service/ec2/api_op_GetConsoleScreenshot.go @@ -38,11 +38,11 @@ type GetConsoleScreenshotInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // When set to true, acts as keystroke input and wakes up an instance that's in // standby or "sleep" mode. - WakeUp *bool + WakeUp bool } type GetConsoleScreenshotOutput struct { diff --git a/service/ec2/api_op_GetDefaultCreditSpecification.go b/service/ec2/api_op_GetDefaultCreditSpecification.go index 57dc2709cea..e35497a5579 100644 --- a/service/ec2/api_op_GetDefaultCreditSpecification.go +++ b/service/ec2/api_op_GetDefaultCreditSpecification.go @@ -41,7 +41,7 @@ type GetDefaultCreditSpecificationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type GetDefaultCreditSpecificationOutput struct { diff --git a/service/ec2/api_op_GetEbsDefaultKmsKeyId.go b/service/ec2/api_op_GetEbsDefaultKmsKeyId.go index 94c7c168dc5..8e6e997e307 100644 --- a/service/ec2/api_op_GetEbsDefaultKmsKeyId.go +++ b/service/ec2/api_op_GetEbsDefaultKmsKeyId.go @@ -37,7 +37,7 @@ type GetEbsDefaultKmsKeyIdInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type GetEbsDefaultKmsKeyIdOutput struct { diff --git a/service/ec2/api_op_GetEbsEncryptionByDefault.go b/service/ec2/api_op_GetEbsEncryptionByDefault.go index 2bd2ba289d3..566feed1fa3 100644 --- a/service/ec2/api_op_GetEbsEncryptionByDefault.go +++ b/service/ec2/api_op_GetEbsEncryptionByDefault.go @@ -35,13 +35,13 @@ type GetEbsEncryptionByDefaultInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type GetEbsEncryptionByDefaultOutput struct { // Indicates whether encryption by default is enabled. - EbsEncryptionByDefault *bool + EbsEncryptionByDefault bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_GetGroupsForCapacityReservation.go b/service/ec2/api_op_GetGroupsForCapacityReservation.go index a7b67df5bd3..360706f6b48 100644 --- a/service/ec2/api_op_GetGroupsForCapacityReservation.go +++ b/service/ec2/api_op_GetGroupsForCapacityReservation.go @@ -38,13 +38,13 @@ type GetGroupsForCapacityReservationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the returned // nextToken value. This value can be between 5 and 500. If maxResults is given a // larger value than 500, you receive an error. - MaxResults *int32 + MaxResults int32 // The token to use to retrieve the next page of results. NextToken *string @@ -54,7 +54,7 @@ type GetGroupsForCapacityReservationOutput struct { // Information about the resource groups to which the Capacity Reservation has been // added. - CapacityReservationGroups []*types.CapacityReservationGroup + CapacityReservationGroups []types.CapacityReservationGroup // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_GetHostReservationPurchasePreview.go b/service/ec2/api_op_GetHostReservationPurchasePreview.go index e61128abf17..98d10154ff0 100644 --- a/service/ec2/api_op_GetHostReservationPurchasePreview.go +++ b/service/ec2/api_op_GetHostReservationPurchasePreview.go @@ -35,7 +35,7 @@ type GetHostReservationPurchasePreviewInput struct { // The IDs of the Dedicated Hosts with which the reservation is associated. // // This member is required. - HostIdSet []*string + HostIdSet []string // The offering ID of the reservation. // @@ -51,7 +51,7 @@ type GetHostReservationPurchasePreviewOutput struct { // The purchase information of the Dedicated Host reservation and the Dedicated // Hosts associated with it. - Purchase []*types.Purchase + Purchase []types.Purchase // The potential total hourly price of the reservation per hour. TotalHourlyPrice *string diff --git a/service/ec2/api_op_GetLaunchTemplateData.go b/service/ec2/api_op_GetLaunchTemplateData.go index ec5e3c0beb3..72270585b77 100644 --- a/service/ec2/api_op_GetLaunchTemplateData.go +++ b/service/ec2/api_op_GetLaunchTemplateData.go @@ -44,7 +44,7 @@ type GetLaunchTemplateDataInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type GetLaunchTemplateDataOutput struct { diff --git a/service/ec2/api_op_GetManagedPrefixListAssociations.go b/service/ec2/api_op_GetManagedPrefixListAssociations.go index 02e52369fc6..8b136e23daa 100644 --- a/service/ec2/api_op_GetManagedPrefixListAssociations.go +++ b/service/ec2/api_op_GetManagedPrefixListAssociations.go @@ -39,11 +39,11 @@ type GetManagedPrefixListAssociationsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -56,7 +56,7 @@ type GetManagedPrefixListAssociationsOutput struct { NextToken *string // Information about the associations. - PrefixListAssociations []*types.PrefixListAssociation + PrefixListAssociations []types.PrefixListAssociation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_GetManagedPrefixListEntries.go b/service/ec2/api_op_GetManagedPrefixListEntries.go index f994f1dd9cf..6a0d2f76ff6 100644 --- a/service/ec2/api_op_GetManagedPrefixListEntries.go +++ b/service/ec2/api_op_GetManagedPrefixListEntries.go @@ -38,24 +38,24 @@ type GetManagedPrefixListEntriesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The version of the prefix list for which to return the entries. The default is // the current version. - TargetVersion *int64 + TargetVersion int64 } type GetManagedPrefixListEntriesOutput struct { // Information about the prefix list entries. - Entries []*types.PrefixListEntry + Entries []types.PrefixListEntry // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_GetPasswordData.go b/service/ec2/api_op_GetPasswordData.go index 0c302dfd080..1a9bdd96f2d 100644 --- a/service/ec2/api_op_GetPasswordData.go +++ b/service/ec2/api_op_GetPasswordData.go @@ -52,7 +52,7 @@ type GetPasswordDataInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type GetPasswordDataOutput struct { diff --git a/service/ec2/api_op_GetReservedInstancesExchangeQuote.go b/service/ec2/api_op_GetReservedInstancesExchangeQuote.go index 55a30580e71..c6359ee373a 100644 --- a/service/ec2/api_op_GetReservedInstancesExchangeQuote.go +++ b/service/ec2/api_op_GetReservedInstancesExchangeQuote.go @@ -37,17 +37,17 @@ type GetReservedInstancesExchangeQuoteInput struct { // The IDs of the Convertible Reserved Instances to exchange. // // This member is required. - ReservedInstanceIds []*string + ReservedInstanceIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The configuration of the target Convertible Reserved Instance to exchange for // your current Convertible Reserved Instances. - TargetConfigurations []*types.TargetConfigurationRequest + TargetConfigurations []types.TargetConfigurationRequest } // Contains the output of GetReservedInstancesExchangeQuote. @@ -57,7 +57,7 @@ type GetReservedInstancesExchangeQuoteOutput struct { CurrencyCode *string // If true, the exchange is valid. If false, the exchange cannot be completed. - IsValidExchange *bool + IsValidExchange bool // The new end date of the reservation term. OutputReservedInstancesWillExpireAt *time.Time @@ -69,13 +69,13 @@ type GetReservedInstancesExchangeQuoteOutput struct { ReservedInstanceValueRollup *types.ReservationValue // The configuration of your Convertible Reserved Instances. - ReservedInstanceValueSet []*types.ReservedInstanceReservationValue + ReservedInstanceValueSet []types.ReservedInstanceReservationValue // The cost associated with the Reserved Instance. TargetConfigurationValueRollup *types.ReservationValue // The values of the target Convertible Reserved Instances. - TargetConfigurationValueSet []*types.TargetReservationValue + TargetConfigurationValueSet []types.TargetReservationValue // Describes the reason why the exchange cannot be completed. ValidationFailureReason *string diff --git a/service/ec2/api_op_GetTransitGatewayAttachmentPropagations.go b/service/ec2/api_op_GetTransitGatewayAttachmentPropagations.go index 61800fe0253..b5f3d8b54e0 100644 --- a/service/ec2/api_op_GetTransitGatewayAttachmentPropagations.go +++ b/service/ec2/api_op_GetTransitGatewayAttachmentPropagations.go @@ -39,17 +39,17 @@ type GetTransitGatewayAttachmentPropagationsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // // * transit-gateway-route-table-id // - The ID of the transit gateway route table. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -62,7 +62,7 @@ type GetTransitGatewayAttachmentPropagationsOutput struct { NextToken *string // Information about the propagation route tables. - TransitGatewayAttachmentPropagations []*types.TransitGatewayAttachmentPropagation + TransitGatewayAttachmentPropagations []types.TransitGatewayAttachmentPropagation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_GetTransitGatewayMulticastDomainAssociations.go b/service/ec2/api_op_GetTransitGatewayMulticastDomainAssociations.go index 0221fde3761..d98dd8f9d8b 100644 --- a/service/ec2/api_op_GetTransitGatewayMulticastDomainAssociations.go +++ b/service/ec2/api_op_GetTransitGatewayMulticastDomainAssociations.go @@ -34,7 +34,7 @@ type GetTransitGatewayMulticastDomainAssociationsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -52,11 +52,11 @@ type GetTransitGatewayMulticastDomainAssociationsInput struct { // // * transit-gateway-attachment-id - The id of the transit gateway // attachment. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -68,7 +68,7 @@ type GetTransitGatewayMulticastDomainAssociationsInput struct { type GetTransitGatewayMulticastDomainAssociationsOutput struct { // Information about the multicast domain associations. - MulticastDomainAssociations []*types.TransitGatewayMulticastDomainAssociation + MulticastDomainAssociations []types.TransitGatewayMulticastDomainAssociation // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_GetTransitGatewayPrefixListReferences.go b/service/ec2/api_op_GetTransitGatewayPrefixListReferences.go index dfc5b70e62f..bcd84821ab0 100644 --- a/service/ec2/api_op_GetTransitGatewayPrefixListReferences.go +++ b/service/ec2/api_op_GetTransitGatewayPrefixListReferences.go @@ -39,7 +39,7 @@ type GetTransitGatewayPrefixListReferencesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -63,11 +63,11 @@ type GetTransitGatewayPrefixListReferencesInput struct { // // * state - The // state of the prefix list reference (pending | available | modifying | deleting). - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -80,7 +80,7 @@ type GetTransitGatewayPrefixListReferencesOutput struct { NextToken *string // Information about the prefix list references. - TransitGatewayPrefixListReferences []*types.TransitGatewayPrefixListReference + TransitGatewayPrefixListReferences []types.TransitGatewayPrefixListReference // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_GetTransitGatewayRouteTableAssociations.go b/service/ec2/api_op_GetTransitGatewayRouteTableAssociations.go index 04bc3057b46..0d8dd42d6e5 100644 --- a/service/ec2/api_op_GetTransitGatewayRouteTableAssociations.go +++ b/service/ec2/api_op_GetTransitGatewayRouteTableAssociations.go @@ -39,7 +39,7 @@ type GetTransitGatewayRouteTableAssociationsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -51,11 +51,11 @@ type GetTransitGatewayRouteTableAssociationsInput struct { // // * transit-gateway-attachment-id - The ID of // the attachment. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -64,7 +64,7 @@ type GetTransitGatewayRouteTableAssociationsInput struct { type GetTransitGatewayRouteTableAssociationsOutput struct { // Information about the associations. - Associations []*types.TransitGatewayRouteTableAssociation + Associations []types.TransitGatewayRouteTableAssociation // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_GetTransitGatewayRouteTablePropagations.go b/service/ec2/api_op_GetTransitGatewayRouteTablePropagations.go index bb82edab26e..712404c4080 100644 --- a/service/ec2/api_op_GetTransitGatewayRouteTablePropagations.go +++ b/service/ec2/api_op_GetTransitGatewayRouteTablePropagations.go @@ -39,7 +39,7 @@ type GetTransitGatewayRouteTablePropagationsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -51,11 +51,11 @@ type GetTransitGatewayRouteTablePropagationsInput struct { // // * transit-gateway-attachment-id - The ID of // the attachment. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -68,7 +68,7 @@ type GetTransitGatewayRouteTablePropagationsOutput struct { NextToken *string // Information about the route table propagations. - TransitGatewayRouteTablePropagations []*types.TransitGatewayRouteTablePropagation + TransitGatewayRouteTablePropagations []types.TransitGatewayRouteTablePropagation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ImportClientVpnClientCertificateRevocationList.go b/service/ec2/api_op_ImportClientVpnClientCertificateRevocationList.go index eca2b33606a..58f296ca3db 100644 --- a/service/ec2/api_op_ImportClientVpnClientCertificateRevocationList.go +++ b/service/ec2/api_op_ImportClientVpnClientCertificateRevocationList.go @@ -49,13 +49,13 @@ type ImportClientVpnClientCertificateRevocationListInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ImportClientVpnClientCertificateRevocationListOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ImportImage.go b/service/ec2/api_op_ImportImage.go index 2108634545e..10f2d5924e7 100644 --- a/service/ec2/api_op_ImportImage.go +++ b/service/ec2/api_op_ImportImage.go @@ -46,13 +46,13 @@ type ImportImageInput struct { Description *string // Information about the disk containers. - DiskContainers []*types.ImageDiskContainer + DiskContainers []types.ImageDiskContainer // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Specifies whether the destination AMI of the imported image should be encrypted. // The default CMK for EBS is used unless you specify a non-default AWS Key @@ -60,7 +60,7 @@ type ImportImageInput struct { // Amazon EBS Encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. - Encrypted *bool + Encrypted bool // The target hypervisor platform. Valid values: xen Hypervisor *string @@ -99,7 +99,7 @@ type ImportImageInput struct { KmsKeyId *string // The ARNs of the license configurations. - LicenseSpecifications []*types.ImportImageLicenseConfigurationRequest + LicenseSpecifications []types.ImportImageLicenseConfigurationRequest // The license type to be used for the Amazon Machine Image (AMI) after importing. // By default, we detect the source-system operating system (OS) and apply the @@ -119,7 +119,7 @@ type ImportImageInput struct { RoleName *string // The tags to apply to the image being imported. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type ImportImageOutput struct { @@ -131,7 +131,7 @@ type ImportImageOutput struct { Description *string // Indicates whether the AMI is encrypted. - Encrypted *bool + Encrypted bool // The target hypervisor of the import task. Hypervisor *string @@ -147,7 +147,7 @@ type ImportImageOutput struct { KmsKeyId *string // The ARNs of the license configurations. - LicenseSpecifications []*types.ImportImageLicenseConfigurationResponse + LicenseSpecifications []types.ImportImageLicenseConfigurationResponse // The license type of the virtual machine. LicenseType *string @@ -159,7 +159,7 @@ type ImportImageOutput struct { Progress *string // Information about the snapshots. - SnapshotDetails []*types.SnapshotDetail + SnapshotDetails []types.SnapshotDetail // A brief status of the task. Status *string @@ -168,7 +168,7 @@ type ImportImageOutput struct { StatusMessage *string // Any tags assigned to the image being imported. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ImportInstance.go b/service/ec2/api_op_ImportInstance.go index 9ce66810637..c11ddcc4cf9 100644 --- a/service/ec2/api_op_ImportInstance.go +++ b/service/ec2/api_op_ImportInstance.go @@ -45,13 +45,13 @@ type ImportInstanceInput struct { Description *string // The disk image. - DiskImages []*types.DiskImage + DiskImages []types.DiskImage // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The launch specification. LaunchSpecification *types.ImportInstanceLaunchSpecification diff --git a/service/ec2/api_op_ImportKeyPair.go b/service/ec2/api_op_ImportKeyPair.go index 03d8b1e4b90..a4c8f0434e0 100644 --- a/service/ec2/api_op_ImportKeyPair.go +++ b/service/ec2/api_op_ImportKeyPair.go @@ -51,10 +51,10 @@ type ImportKeyPairInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to apply to the imported key pair. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type ImportKeyPairOutput struct { @@ -69,7 +69,7 @@ type ImportKeyPairOutput struct { KeyPairId *string // The tags applied to the imported key pair. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ImportSnapshot.go b/service/ec2/api_op_ImportSnapshot.go index c947e584e7d..ebdb8696049 100644 --- a/service/ec2/api_op_ImportSnapshot.go +++ b/service/ec2/api_op_ImportSnapshot.go @@ -45,7 +45,7 @@ type ImportSnapshotInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Specifies whether the destination snapshot of the imported image should be // encrypted. The default CMK for EBS is used unless you specify a non-default AWS @@ -53,7 +53,7 @@ type ImportSnapshotInput struct { // Amazon EBS Encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. - Encrypted *bool + Encrypted bool // An identifier for the symmetric AWS Key Management Service (AWS KMS) customer // master key (CMK) to use when creating the encrypted snapshot. This parameter is @@ -92,7 +92,7 @@ type ImportSnapshotInput struct { RoleName *string // The tags to apply to the snapshot being imported. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type ImportSnapshotOutput struct { @@ -107,7 +107,7 @@ type ImportSnapshotOutput struct { SnapshotTaskDetail *types.SnapshotTaskDetail // Any tags assigned to the snapshot being imported. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ImportVolume.go b/service/ec2/api_op_ImportVolume.go index 8e0aaa1a94a..5598db8c4c1 100644 --- a/service/ec2/api_op_ImportVolume.go +++ b/service/ec2/api_op_ImportVolume.go @@ -56,7 +56,7 @@ type ImportVolumeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ImportVolumeOutput struct { diff --git a/service/ec2/api_op_ModifyAvailabilityZoneGroup.go b/service/ec2/api_op_ModifyAvailabilityZoneGroup.go index afd31ac8fa9..27642d704c6 100644 --- a/service/ec2/api_op_ModifyAvailabilityZoneGroup.go +++ b/service/ec2/api_op_ModifyAvailabilityZoneGroup.go @@ -50,13 +50,13 @@ type ModifyAvailabilityZoneGroupInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ModifyAvailabilityZoneGroupOutput struct { // Is true if the request succeeds, and an error otherwise. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyCapacityReservation.go b/service/ec2/api_op_ModifyCapacityReservation.go index a048408fb0c..76b2b20010a 100644 --- a/service/ec2/api_op_ModifyCapacityReservation.go +++ b/service/ec2/api_op_ModifyCapacityReservation.go @@ -44,7 +44,7 @@ type ModifyCapacityReservationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The date and time at which the Capacity Reservation expires. When a Capacity // Reservation expires, the reserved capacity is released and you can no longer @@ -69,13 +69,13 @@ type ModifyCapacityReservationInput struct { EndDateType types.EndDateType // The number of instances for which to reserve capacity. - InstanceCount *int32 + InstanceCount int32 } type ModifyCapacityReservationOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyClientVpnEndpoint.go b/service/ec2/api_op_ModifyClientVpnEndpoint.go index 76df9f50f46..242cd0448f3 100644 --- a/service/ec2/api_op_ModifyClientVpnEndpoint.go +++ b/service/ec2/api_op_ModifyClientVpnEndpoint.go @@ -62,10 +62,10 @@ type ModifyClientVpnEndpointInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The IDs of one or more security groups to apply to the target network. - SecurityGroupIds []*string + SecurityGroupIds []string // Specify whether to enable the self-service portal for the Client VPN endpoint. SelfServicePortal types.SelfServicePortal @@ -78,20 +78,20 @@ type ModifyClientVpnEndpointInput struct { // VPN endpoints, see Split-Tunnel AWS Client VPN Endpoint // (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html) // in the AWS Client VPN Administrator Guide. - SplitTunnel *bool + SplitTunnel bool // The ID of the VPC to associate with the Client VPN endpoint. VpcId *string // The port number to assign to the Client VPN endpoint for TCP and UDP traffic. // Valid Values: 443 | 1194 Default Value: 443 - VpnPort *int32 + VpnPort int32 } type ModifyClientVpnEndpointOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyDefaultCreditSpecification.go b/service/ec2/api_op_ModifyDefaultCreditSpecification.go index 0b2c93ef3ad..ddbe67c9fe1 100644 --- a/service/ec2/api_op_ModifyDefaultCreditSpecification.go +++ b/service/ec2/api_op_ModifyDefaultCreditSpecification.go @@ -56,7 +56,7 @@ type ModifyDefaultCreditSpecificationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ModifyDefaultCreditSpecificationOutput struct { diff --git a/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go b/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go index 6f43f97d5c0..2ec7ac2960e 100644 --- a/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go +++ b/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go @@ -67,7 +67,7 @@ type ModifyEbsDefaultKmsKeyIdInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ModifyEbsDefaultKmsKeyIdOutput struct { diff --git a/service/ec2/api_op_ModifyFleet.go b/service/ec2/api_op_ModifyFleet.go index faf6f39cbae..1acfa78a5b9 100644 --- a/service/ec2/api_op_ModifyFleet.go +++ b/service/ec2/api_op_ModifyFleet.go @@ -65,20 +65,20 @@ type ModifyFleetInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Indicates whether running instances should be terminated if the total target // capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. ExcessCapacityTerminationPolicy types.FleetExcessCapacityTerminationPolicy // The launch template and overrides. - LaunchTemplateConfigs []*types.FleetLaunchTemplateConfigRequest + LaunchTemplateConfigs []types.FleetLaunchTemplateConfigRequest } type ModifyFleetOutput struct { // Is true if the request succeeds, and an error otherwise. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyFpgaImageAttribute.go b/service/ec2/api_op_ModifyFpgaImageAttribute.go index 9ca41ff2212..ecc2f9a0e34 100644 --- a/service/ec2/api_op_ModifyFpgaImageAttribute.go +++ b/service/ec2/api_op_ModifyFpgaImageAttribute.go @@ -44,7 +44,7 @@ type ModifyFpgaImageAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The load permission for the AFI. LoadPermission *types.LoadPermissionModifications @@ -57,15 +57,15 @@ type ModifyFpgaImageAttributeInput struct { // The product codes. After you add a product code to an AFI, it can't be removed. // This parameter is valid only when modifying the productCodes attribute. - ProductCodes []*string + ProductCodes []string // The user groups. This parameter is valid only when modifying the loadPermission // attribute. - UserGroups []*string + UserGroups []string // The AWS account IDs. This parameter is valid only when modifying the // loadPermission attribute. - UserIds []*string + UserIds []string } type ModifyFpgaImageAttributeOutput struct { diff --git a/service/ec2/api_op_ModifyHosts.go b/service/ec2/api_op_ModifyHosts.go index 0b8658d56f3..a83038ba7fc 100644 --- a/service/ec2/api_op_ModifyHosts.go +++ b/service/ec2/api_op_ModifyHosts.go @@ -40,7 +40,7 @@ type ModifyHostsInput struct { // The IDs of the Dedicated Hosts to modify. // // This member is required. - HostIds []*string + HostIds []string // Specify whether to enable or disable auto-placement. AutoPlacement types.AutoPlacement @@ -70,11 +70,11 @@ type ModifyHostsInput struct { type ModifyHostsOutput struct { // The IDs of the Dedicated Hosts that were successfully modified. - Successful []*string + Successful []string // The IDs of the Dedicated Hosts that could not be modified. Check whether the // setting you requested can be used. - Unsuccessful []*types.UnsuccessfulItem + Unsuccessful []types.UnsuccessfulItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyIdFormat.go b/service/ec2/api_op_ModifyIdFormat.go index 0d26427dc00..f2a4a7e0b28 100644 --- a/service/ec2/api_op_ModifyIdFormat.go +++ b/service/ec2/api_op_ModifyIdFormat.go @@ -64,7 +64,7 @@ type ModifyIdFormatInput struct { // Indicate whether the resource should use longer IDs (17-character IDs). // // This member is required. - UseLongIds *bool + UseLongIds bool } type ModifyIdFormatOutput struct { diff --git a/service/ec2/api_op_ModifyIdentityIdFormat.go b/service/ec2/api_op_ModifyIdentityIdFormat.go index 91c5bdb09c6..ff8cbf20e90 100644 --- a/service/ec2/api_op_ModifyIdentityIdFormat.go +++ b/service/ec2/api_op_ModifyIdentityIdFormat.go @@ -69,7 +69,7 @@ type ModifyIdentityIdFormatInput struct { // Indicates whether the resource should use longer IDs (17-character IDs) // // This member is required. - UseLongIds *bool + UseLongIds bool } type ModifyIdentityIdFormatOutput struct { diff --git a/service/ec2/api_op_ModifyImageAttribute.go b/service/ec2/api_op_ModifyImageAttribute.go index 6b96d407ef4..e5d24696bf3 100644 --- a/service/ec2/api_op_ModifyImageAttribute.go +++ b/service/ec2/api_op_ModifyImageAttribute.go @@ -52,7 +52,7 @@ type ModifyImageAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // A new launch permission for the AMI. LaunchPermission *types.LaunchPermissionModifications @@ -63,15 +63,15 @@ type ModifyImageAttributeInput struct { // The DevPay product codes. After you add a product code to an AMI, it can't be // removed. - ProductCodes []*string + ProductCodes []string // The user groups. This parameter can be used only when the Attribute parameter is // launchPermission. - UserGroups []*string + UserGroups []string // The AWS account IDs. This parameter can be used only when the Attribute // parameter is launchPermission. - UserIds []*string + UserIds []string // The value of the attribute being modified. This parameter can be used only when // the Attribute parameter is description or productCodes. diff --git a/service/ec2/api_op_ModifyInstanceAttribute.go b/service/ec2/api_op_ModifyInstanceAttribute.go index e4633a06eea..ebdf5e5923c 100644 --- a/service/ec2/api_op_ModifyInstanceAttribute.go +++ b/service/ec2/api_op_ModifyInstanceAttribute.go @@ -54,7 +54,7 @@ type ModifyInstanceAttributeInput struct { // see Updating the block device mapping when launching an instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM) // in the Amazon Elastic Compute Cloud User Guide. - BlockDeviceMappings []*types.InstanceBlockDeviceMappingSpecification + BlockDeviceMappings []types.InstanceBlockDeviceMappingSpecification // If the value is true, you can't terminate the instance using the Amazon EC2 // console, CLI, or API; otherwise, you can. You cannot use this parameter for Spot @@ -65,7 +65,7 @@ type ModifyInstanceAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Specifies whether the instance is optimized for Amazon EBS I/O. This // optimization provides dedicated throughput to Amazon EBS and an optimized @@ -82,7 +82,7 @@ type ModifyInstanceAttributeInput struct { // [EC2-VPC] Changes the security groups of the instance. You must specify at least // one security group, even if it's just the default security group for the VPC. // You must specify the security group ID, not the security group name. - Groups []*string + Groups []string // Specifies whether an instance stops or terminates when you initiate shutdown // from the instance (using the operating system command for system shutdown). diff --git a/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go b/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go index 9e070c75ee6..da090811122 100644 --- a/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go +++ b/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go @@ -46,13 +46,13 @@ type ModifyInstanceCapacityReservationAttributesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ModifyInstanceCapacityReservationAttributesOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyInstanceCreditSpecification.go b/service/ec2/api_op_ModifyInstanceCreditSpecification.go index 566a9b726c5..f584b9b5753 100644 --- a/service/ec2/api_op_ModifyInstanceCreditSpecification.go +++ b/service/ec2/api_op_ModifyInstanceCreditSpecification.go @@ -36,7 +36,7 @@ type ModifyInstanceCreditSpecificationInput struct { // Information about the credit option for CPU usage. // // This member is required. - InstanceCreditSpecifications []*types.InstanceCreditSpecificationRequest + InstanceCreditSpecifications []types.InstanceCreditSpecificationRequest // A unique, case-sensitive token that you provide to ensure idempotency of your // modification request. For more information, see Ensuring Idempotency @@ -47,18 +47,18 @@ type ModifyInstanceCreditSpecificationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ModifyInstanceCreditSpecificationOutput struct { // Information about the instances whose credit option for CPU usage was // successfully modified. - SuccessfulInstanceCreditSpecifications []*types.SuccessfulInstanceCreditSpecificationItem + SuccessfulInstanceCreditSpecifications []types.SuccessfulInstanceCreditSpecificationItem // Information about the instances whose credit option for CPU usage was not // modified. - UnsuccessfulInstanceCreditSpecifications []*types.UnsuccessfulInstanceCreditSpecificationItem + UnsuccessfulInstanceCreditSpecifications []types.UnsuccessfulInstanceCreditSpecificationItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyInstanceEventStartTime.go b/service/ec2/api_op_ModifyInstanceEventStartTime.go index 9f61b497100..8bcc1643a27 100644 --- a/service/ec2/api_op_ModifyInstanceEventStartTime.go +++ b/service/ec2/api_op_ModifyInstanceEventStartTime.go @@ -49,7 +49,7 @@ type ModifyInstanceEventStartTimeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ModifyInstanceEventStartTimeOutput struct { diff --git a/service/ec2/api_op_ModifyInstanceMetadataOptions.go b/service/ec2/api_op_ModifyInstanceMetadataOptions.go index 5cf67ade1dc..085e1c28061 100644 --- a/service/ec2/api_op_ModifyInstanceMetadataOptions.go +++ b/service/ec2/api_op_ModifyInstanceMetadataOptions.go @@ -45,7 +45,7 @@ type ModifyInstanceMetadataOptionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // This parameter enables or disables the HTTP metadata endpoint on your instances. // If the parameter is not specified, the existing state is maintained. If you @@ -57,7 +57,7 @@ type ModifyInstanceMetadataOptionsInput struct { // larger the number, the further instance metadata requests can travel. If no // parameter is specified, the existing state is maintained. Possible values: // Integers from 1 to 64 - HttpPutResponseHopLimit *int32 + HttpPutResponseHopLimit int32 // The state of token usage for your instance metadata requests. If the parameter // is not specified in the request, the default state is optional. If the state is diff --git a/service/ec2/api_op_ModifyInstancePlacement.go b/service/ec2/api_op_ModifyInstancePlacement.go index 020a8eaf42d..83f6106399c 100644 --- a/service/ec2/api_op_ModifyInstancePlacement.go +++ b/service/ec2/api_op_ModifyInstancePlacement.go @@ -75,7 +75,7 @@ type ModifyInstancePlacementInput struct { HostResourceGroupArn *string // Reserved for future use. - PartitionNumber *int32 + PartitionNumber int32 // The tenancy for the instance. Tenancy types.HostTenancy @@ -84,7 +84,7 @@ type ModifyInstancePlacementInput struct { type ModifyInstancePlacementOutput struct { // Is true if the request succeeds, and an error otherwise. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyLaunchTemplate.go b/service/ec2/api_op_ModifyLaunchTemplate.go index d05ae3da1c2..da8fde35e05 100644 --- a/service/ec2/api_op_ModifyLaunchTemplate.go +++ b/service/ec2/api_op_ModifyLaunchTemplate.go @@ -44,7 +44,7 @@ type ModifyLaunchTemplateInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the launch template. You must specify either the launch template ID or // launch template name in the request. diff --git a/service/ec2/api_op_ModifyManagedPrefixList.go b/service/ec2/api_op_ModifyManagedPrefixList.go index f761d59843f..876ba29969d 100644 --- a/service/ec2/api_op_ModifyManagedPrefixList.go +++ b/service/ec2/api_op_ModifyManagedPrefixList.go @@ -38,22 +38,22 @@ type ModifyManagedPrefixListInput struct { PrefixListId *string // One or more entries to add to the prefix list. - AddEntries []*types.AddPrefixListEntry + AddEntries []types.AddPrefixListEntry // The current version of the prefix list. - CurrentVersion *int64 + CurrentVersion int64 // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // A name for the prefix list. PrefixListName *string // One or more entries to remove from the prefix list. - RemoveEntries []*types.RemovePrefixListEntry + RemoveEntries []types.RemovePrefixListEntry } type ModifyManagedPrefixListOutput struct { diff --git a/service/ec2/api_op_ModifyNetworkInterfaceAttribute.go b/service/ec2/api_op_ModifyNetworkInterfaceAttribute.go index 19645c1983f..796f4c1dff9 100644 --- a/service/ec2/api_op_ModifyNetworkInterfaceAttribute.go +++ b/service/ec2/api_op_ModifyNetworkInterfaceAttribute.go @@ -48,13 +48,13 @@ type ModifyNetworkInterfaceAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Changes the security groups for the network interface. The new set of groups you // specify replaces the current set. You must specify at least one group, even if // it's just the default security group in the VPC. You must specify the ID of the // security group, not the name. - Groups []*string + Groups []string // Indicates whether source/destination checking is enabled. A value of true means // checking is enabled, and false means checking is disabled. This value must be diff --git a/service/ec2/api_op_ModifyReservedInstances.go b/service/ec2/api_op_ModifyReservedInstances.go index 075a773007e..c3fd77c2784 100644 --- a/service/ec2/api_op_ModifyReservedInstances.go +++ b/service/ec2/api_op_ModifyReservedInstances.go @@ -39,12 +39,12 @@ type ModifyReservedInstancesInput struct { // The IDs of the Reserved Instances to modify. // // This member is required. - ReservedInstancesIds []*string + ReservedInstancesIds []string // The configuration settings for the Reserved Instances to modify. // // This member is required. - TargetConfigurations []*types.ReservedInstancesConfiguration + TargetConfigurations []types.ReservedInstancesConfiguration // A unique, case-sensitive token you provide to ensure idempotency of your // modification request. For more information, see Ensuring Idempotency diff --git a/service/ec2/api_op_ModifySnapshotAttribute.go b/service/ec2/api_op_ModifySnapshotAttribute.go index 9d7cf137a16..2757aa6fc5e 100644 --- a/service/ec2/api_op_ModifySnapshotAttribute.go +++ b/service/ec2/api_op_ModifySnapshotAttribute.go @@ -55,16 +55,16 @@ type ModifySnapshotAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The group to modify for the snapshot. - GroupNames []*string + GroupNames []string // The type of operation to perform to the attribute. OperationType types.OperationType // The account ID to modify for the snapshot. - UserIds []*string + UserIds []string } type ModifySnapshotAttributeOutput struct { diff --git a/service/ec2/api_op_ModifySpotFleetRequest.go b/service/ec2/api_op_ModifySpotFleetRequest.go index d56d8210786..4f19f36a516 100644 --- a/service/ec2/api_op_ModifySpotFleetRequest.go +++ b/service/ec2/api_op_ModifySpotFleetRequest.go @@ -66,20 +66,20 @@ type ModifySpotFleetRequestInput struct { // specified a launch template (LaunchTemplateConfigs) in your Spot Fleet request. // If you specified LaunchSpecifications in your Spot Fleet request, then omit this // parameter. - LaunchTemplateConfigs []*types.LaunchTemplateConfig + LaunchTemplateConfigs []types.LaunchTemplateConfig // The number of On-Demand Instances in the fleet. - OnDemandTargetCapacity *int32 + OnDemandTargetCapacity int32 // The size of the fleet. - TargetCapacity *int32 + TargetCapacity int32 } // Contains the output of ModifySpotFleetRequest. type ModifySpotFleetRequestOutput struct { // Is true if the request succeeds, and an error otherwise. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyTrafficMirrorFilterNetworkServices.go b/service/ec2/api_op_ModifyTrafficMirrorFilterNetworkServices.go index 8ca578d6335..2361c457de5 100644 --- a/service/ec2/api_op_ModifyTrafficMirrorFilterNetworkServices.go +++ b/service/ec2/api_op_ModifyTrafficMirrorFilterNetworkServices.go @@ -49,7 +49,7 @@ type ModifyTrafficMirrorFilterNetworkServicesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The network service, for example Amazon DNS, that you no longer want to mirror. RemoveNetworkServices []types.TrafficMirrorNetworkService diff --git a/service/ec2/api_op_ModifyTrafficMirrorFilterRule.go b/service/ec2/api_op_ModifyTrafficMirrorFilterRule.go index 08da8daf679..c9bed49f049 100644 --- a/service/ec2/api_op_ModifyTrafficMirrorFilterRule.go +++ b/service/ec2/api_op_ModifyTrafficMirrorFilterRule.go @@ -48,10 +48,10 @@ type ModifyTrafficMirrorFilterRuleInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The protocol, for example TCP, to assign to the Traffic Mirror rule. - Protocol *int32 + Protocol int32 // The properties that you want to remove from the Traffic Mirror filter rule. When // you remove a property from a Traffic Mirror filter rule, the property is set to @@ -64,7 +64,7 @@ type ModifyTrafficMirrorFilterRuleInput struct { // The number of the Traffic Mirror rule. This number must be unique for each // Traffic Mirror rule in a given direction. The rules are processed in ascending // order by rule number. - RuleNumber *int32 + RuleNumber int32 // The source CIDR block to assign to the Traffic Mirror rule. SourceCidrBlock *string diff --git a/service/ec2/api_op_ModifyTrafficMirrorSession.go b/service/ec2/api_op_ModifyTrafficMirrorSession.go index d55c9fb169b..ad7203bfa4b 100644 --- a/service/ec2/api_op_ModifyTrafficMirrorSession.go +++ b/service/ec2/api_op_ModifyTrafficMirrorSession.go @@ -41,14 +41,14 @@ type ModifyTrafficMirrorSessionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The number of bytes in each packet to mirror. These are bytes after the VXLAN // header. To mirror a subset, set this to the length (in bytes) to mirror. For // example, if you set this value to 100, then the first 100 bytes that meet the // filter criteria are copied to the target. Do not specify this parameter when you // want to mirror the entire packet. - PacketLength *int32 + PacketLength int32 // The properties that you want to remove from the Traffic Mirror session. When you // remove a property from a Traffic Mirror session, the property is set to the @@ -58,7 +58,7 @@ type ModifyTrafficMirrorSessionInput struct { // The session number determines the order in which sessions are evaluated when an // interface is used by multiple sessions. The first session with a matching filter // is the one that mirrors the packets. Valid values are 1-32766. - SessionNumber *int32 + SessionNumber int32 // The ID of the Traffic Mirror filter. TrafficMirrorFilterId *string @@ -68,7 +68,7 @@ type ModifyTrafficMirrorSessionInput struct { TrafficMirrorTargetId *string // The virtual network ID of the Traffic Mirror session. - VirtualNetworkId *int32 + VirtualNetworkId int32 } type ModifyTrafficMirrorSessionOutput struct { diff --git a/service/ec2/api_op_ModifyTransitGateway.go b/service/ec2/api_op_ModifyTransitGateway.go index 453f41765a3..cc99a09d589 100644 --- a/service/ec2/api_op_ModifyTransitGateway.go +++ b/service/ec2/api_op_ModifyTransitGateway.go @@ -43,7 +43,7 @@ type ModifyTransitGatewayInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The options to modify. Options *types.ModifyTransitGatewayOptions diff --git a/service/ec2/api_op_ModifyTransitGatewayPrefixListReference.go b/service/ec2/api_op_ModifyTransitGatewayPrefixListReference.go index 1dfca2c3497..6ecfdc660c5 100644 --- a/service/ec2/api_op_ModifyTransitGatewayPrefixListReference.go +++ b/service/ec2/api_op_ModifyTransitGatewayPrefixListReference.go @@ -41,13 +41,13 @@ type ModifyTransitGatewayPrefixListReferenceInput struct { TransitGatewayRouteTableId *string // Indicates whether to drop traffic that matches this route. - Blackhole *bool + Blackhole bool // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the attachment to which traffic is routed. TransitGatewayAttachmentId *string diff --git a/service/ec2/api_op_ModifyTransitGatewayVpcAttachment.go b/service/ec2/api_op_ModifyTransitGatewayVpcAttachment.go index 47c4ba736f2..ca7ab40ebc3 100644 --- a/service/ec2/api_op_ModifyTransitGatewayVpcAttachment.go +++ b/service/ec2/api_op_ModifyTransitGatewayVpcAttachment.go @@ -36,19 +36,19 @@ type ModifyTransitGatewayVpcAttachmentInput struct { // The IDs of one or more subnets to add. You can specify at most one subnet per // Availability Zone. - AddSubnetIds []*string + AddSubnetIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The new VPC attachment options. You cannot modify the IPv6 options. Options *types.ModifyTransitGatewayVpcAttachmentRequestOptions // The IDs of one or more subnets to remove. - RemoveSubnetIds []*string + RemoveSubnetIds []string } type ModifyTransitGatewayVpcAttachmentOutput struct { diff --git a/service/ec2/api_op_ModifyVolume.go b/service/ec2/api_op_ModifyVolume.go index 200c81ef20d..d9111615da5 100644 --- a/service/ec2/api_op_ModifyVolume.go +++ b/service/ec2/api_op_ModifyVolume.go @@ -72,21 +72,21 @@ type ModifyVolumeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The target IOPS rate of the volume. This is only valid for Provisioned IOPS SSD // (io1 and io2) volumes. For moreinformation, see Provisioned IOPS SSD (io1 and // io2) volumes // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops). // Default: If no IOPS value is specified, the existing value is retained. - Iops *int32 + Iops int32 // The target size of the volume, in GiB. The target volume size must be greater // than or equal to than the existing size of the volume. For information about // available EBS volume sizes, see Amazon EBS Volume Types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html). // Default: If no size is specified, the existing size is retained. - Size *int32 + Size int32 // The target EBS volume type of the volume. Default: If no type is specified, the // existing type is retained. diff --git a/service/ec2/api_op_ModifyVolumeAttribute.go b/service/ec2/api_op_ModifyVolumeAttribute.go index 08e576a2e35..80302162c59 100644 --- a/service/ec2/api_op_ModifyVolumeAttribute.go +++ b/service/ec2/api_op_ModifyVolumeAttribute.go @@ -47,7 +47,7 @@ type ModifyVolumeAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ModifyVolumeAttributeOutput struct { diff --git a/service/ec2/api_op_ModifyVpcEndpoint.go b/service/ec2/api_op_ModifyVpcEndpoint.go index 5aa245dd7e9..9d3770a4101 100644 --- a/service/ec2/api_op_ModifyVpcEndpoint.go +++ b/service/ec2/api_op_ModifyVpcEndpoint.go @@ -39,20 +39,20 @@ type ModifyVpcEndpointInput struct { VpcEndpointId *string // (Gateway endpoint) One or more route tables IDs to associate with the endpoint. - AddRouteTableIds []*string + AddRouteTableIds []string // (Interface endpoint) One or more security group IDs to associate with the // network interface. - AddSecurityGroupIds []*string + AddSecurityGroupIds []string // (Interface endpoint) One or more subnet IDs in which to serve the endpoint. - AddSubnetIds []*string + AddSubnetIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // A policy to attach to the endpoint that controls access to the service. The // policy must be in valid JSON format. @@ -60,28 +60,28 @@ type ModifyVpcEndpointInput struct { // (Interface endpoint) Indicates whether a private hosted zone is associated with // the VPC. - PrivateDnsEnabled *bool + PrivateDnsEnabled bool // (Gateway endpoint) One or more route table IDs to disassociate from the // endpoint. - RemoveRouteTableIds []*string + RemoveRouteTableIds []string // (Interface endpoint) One or more security group IDs to disassociate from the // network interface. - RemoveSecurityGroupIds []*string + RemoveSecurityGroupIds []string // (Interface endpoint) One or more subnets IDs in which to remove the endpoint. - RemoveSubnetIds []*string + RemoveSubnetIds []string // (Gateway endpoint) Specify true to reset the policy document to the default // policy. The default policy allows full access to the service. - ResetPolicy *bool + ResetPolicy bool } type ModifyVpcEndpointOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyVpcEndpointConnectionNotification.go b/service/ec2/api_op_ModifyVpcEndpointConnectionNotification.go index 1ae25c12524..927f835f5f0 100644 --- a/service/ec2/api_op_ModifyVpcEndpointConnectionNotification.go +++ b/service/ec2/api_op_ModifyVpcEndpointConnectionNotification.go @@ -37,7 +37,7 @@ type ModifyVpcEndpointConnectionNotificationInput struct { // One or more events for the endpoint. Valid values are Accept, Connect, Delete, // and Reject. - ConnectionEvents []*string + ConnectionEvents []string // The ARN for the SNS topic for the notification. ConnectionNotificationArn *string @@ -46,13 +46,13 @@ type ModifyVpcEndpointConnectionNotificationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ModifyVpcEndpointConnectionNotificationOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - ReturnValue *bool + ReturnValue bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go b/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go index 64a4439a303..7e96732d419 100644 --- a/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go +++ b/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go @@ -42,33 +42,33 @@ type ModifyVpcEndpointServiceConfigurationInput struct { // Indicates whether requests to create an endpoint to your service must be // accepted. - AcceptanceRequired *bool + AcceptanceRequired bool // The Amazon Resource Names (ARNs) of Network Load Balancers to add to your // service configuration. - AddNetworkLoadBalancerArns []*string + AddNetworkLoadBalancerArns []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The private DNS name to assign to the endpoint service. PrivateDnsName *string // The Amazon Resource Names (ARNs) of Network Load Balancers to remove from your // service configuration. - RemoveNetworkLoadBalancerArns []*string + RemoveNetworkLoadBalancerArns []string // Removes the private DNS name of the endpoint service. - RemovePrivateDnsName *bool + RemovePrivateDnsName bool } type ModifyVpcEndpointServiceConfigurationOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyVpcEndpointServicePermissions.go b/service/ec2/api_op_ModifyVpcEndpointServicePermissions.go index e97c3386137..9429ce66f6d 100644 --- a/service/ec2/api_op_ModifyVpcEndpointServicePermissions.go +++ b/service/ec2/api_op_ModifyVpcEndpointServicePermissions.go @@ -42,23 +42,23 @@ type ModifyVpcEndpointServicePermissionsInput struct { // The Amazon Resource Names (ARN) of one or more principals. Permissions are // granted to the principals in this list. To grant permissions to all principals, // specify an asterisk (*). - AddAllowedPrincipals []*string + AddAllowedPrincipals []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The Amazon Resource Names (ARN) of one or more principals. Permissions are // revoked for principals in this list. - RemoveAllowedPrincipals []*string + RemoveAllowedPrincipals []string } type ModifyVpcEndpointServicePermissionsOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - ReturnValue *bool + ReturnValue bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go b/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go index eda81b352cc..20f224151b8 100644 --- a/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go +++ b/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go @@ -66,7 +66,7 @@ type ModifyVpcPeeringConnectionOptionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The VPC peering connection options for the requester VPC. RequesterPeeringConnectionOptions *types.PeeringConnectionOptionsRequest diff --git a/service/ec2/api_op_ModifyVpcTenancy.go b/service/ec2/api_op_ModifyVpcTenancy.go index 190d407d7cd..e0456da495c 100644 --- a/service/ec2/api_op_ModifyVpcTenancy.go +++ b/service/ec2/api_op_ModifyVpcTenancy.go @@ -51,13 +51,13 @@ type ModifyVpcTenancyInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ModifyVpcTenancyOutput struct { // Returns true if the request succeeds; otherwise, returns an error. - ReturnValue *bool + ReturnValue bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ModifyVpnConnection.go b/service/ec2/api_op_ModifyVpnConnection.go index 8042cf843ae..ffe4b74ca75 100644 --- a/service/ec2/api_op_ModifyVpnConnection.go +++ b/service/ec2/api_op_ModifyVpnConnection.go @@ -75,7 +75,7 @@ type ModifyVpnConnectionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the transit gateway. TransitGatewayId *string diff --git a/service/ec2/api_op_ModifyVpnConnectionOptions.go b/service/ec2/api_op_ModifyVpnConnectionOptions.go index dcdd3fd4876..81b41562bf4 100644 --- a/service/ec2/api_op_ModifyVpnConnectionOptions.go +++ b/service/ec2/api_op_ModifyVpnConnectionOptions.go @@ -41,7 +41,7 @@ type ModifyVpnConnectionOptionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. // Default: 0.0.0.0/0 diff --git a/service/ec2/api_op_ModifyVpnTunnelCertificate.go b/service/ec2/api_op_ModifyVpnTunnelCertificate.go index 92bac166d25..f33e59a9496 100644 --- a/service/ec2/api_op_ModifyVpnTunnelCertificate.go +++ b/service/ec2/api_op_ModifyVpnTunnelCertificate.go @@ -43,7 +43,7 @@ type ModifyVpnTunnelCertificateInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ModifyVpnTunnelCertificateOutput struct { diff --git a/service/ec2/api_op_ModifyVpnTunnelOptions.go b/service/ec2/api_op_ModifyVpnTunnelOptions.go index 4edcb989657..be3f937cc81 100644 --- a/service/ec2/api_op_ModifyVpnTunnelOptions.go +++ b/service/ec2/api_op_ModifyVpnTunnelOptions.go @@ -53,7 +53,7 @@ type ModifyVpnTunnelOptionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ModifyVpnTunnelOptionsOutput struct { diff --git a/service/ec2/api_op_MonitorInstances.go b/service/ec2/api_op_MonitorInstances.go index 495ecc3fa61..94fb868aa91 100644 --- a/service/ec2/api_op_MonitorInstances.go +++ b/service/ec2/api_op_MonitorInstances.go @@ -36,19 +36,19 @@ type MonitorInstancesInput struct { // The IDs of the instances. // // This member is required. - InstanceIds []*string + InstanceIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type MonitorInstancesOutput struct { // The monitoring information. - InstanceMonitorings []*types.InstanceMonitoring + InstanceMonitorings []types.InstanceMonitoring // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_MoveAddressToVpc.go b/service/ec2/api_op_MoveAddressToVpc.go index 17385b9dbf1..6130c8c7b3e 100644 --- a/service/ec2/api_op_MoveAddressToVpc.go +++ b/service/ec2/api_op_MoveAddressToVpc.go @@ -44,7 +44,7 @@ type MoveAddressToVpcInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type MoveAddressToVpcOutput struct { diff --git a/service/ec2/api_op_ProvisionByoipCidr.go b/service/ec2/api_op_ProvisionByoipCidr.go index a67d5bbacbe..dbd2d94d857 100644 --- a/service/ec2/api_op_ProvisionByoipCidr.go +++ b/service/ec2/api_op_ProvisionByoipCidr.go @@ -63,14 +63,14 @@ type ProvisionByoipCidrInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The tags to apply to the address pool. - PoolTagSpecifications []*types.TagSpecification + PoolTagSpecifications []types.TagSpecification // (IPv6 only) Indicate whether the address range will be publicly advertised to // the internet. Default: true - PubliclyAdvertisable *bool + PubliclyAdvertisable bool } type ProvisionByoipCidrOutput struct { diff --git a/service/ec2/api_op_PurchaseHostReservation.go b/service/ec2/api_op_PurchaseHostReservation.go index ea1a326648c..3b1c8bdfb17 100644 --- a/service/ec2/api_op_PurchaseHostReservation.go +++ b/service/ec2/api_op_PurchaseHostReservation.go @@ -35,7 +35,7 @@ type PurchaseHostReservationInput struct { // The IDs of the Dedicated Hosts with which the reservation will be associated. // // This member is required. - HostIdSet []*string + HostIdSet []string // The ID of the offering. // @@ -60,7 +60,7 @@ type PurchaseHostReservationInput struct { LimitPrice *string // The tags to apply to the Dedicated Host Reservation during purchase. - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification } type PurchaseHostReservationOutput struct { @@ -75,7 +75,7 @@ type PurchaseHostReservationOutput struct { CurrencyCode types.CurrencyCodeValues // Describes the details of the purchase. - Purchase []*types.Purchase + Purchase []types.Purchase // The total hourly price of the reservation calculated per hour. TotalHourlyPrice *string diff --git a/service/ec2/api_op_PurchaseReservedInstancesOffering.go b/service/ec2/api_op_PurchaseReservedInstancesOffering.go index b98b63832d6..5f8b8e7ae61 100644 --- a/service/ec2/api_op_PurchaseReservedInstancesOffering.go +++ b/service/ec2/api_op_PurchaseReservedInstancesOffering.go @@ -45,7 +45,7 @@ type PurchaseReservedInstancesOfferingInput struct { // The number of Reserved Instances to purchase. // // This member is required. - InstanceCount *int32 + InstanceCount int32 // The ID of the Reserved Instance offering to purchase. // @@ -56,7 +56,7 @@ type PurchaseReservedInstancesOfferingInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Specified for Reserved Instance Marketplace offerings to limit the total order // and ensure that the Reserved Instances are not purchased at unexpected prices. diff --git a/service/ec2/api_op_PurchaseScheduledInstances.go b/service/ec2/api_op_PurchaseScheduledInstances.go index 68b467a8ff6..c18d60da6b6 100644 --- a/service/ec2/api_op_PurchaseScheduledInstances.go +++ b/service/ec2/api_op_PurchaseScheduledInstances.go @@ -40,7 +40,7 @@ type PurchaseScheduledInstancesInput struct { // The purchase requests. // // This member is required. - PurchaseRequests []*types.PurchaseRequest + PurchaseRequests []types.PurchaseRequest // Unique, case-sensitive identifier that ensures the idempotency of the request. // For more information, see Ensuring Idempotency @@ -51,14 +51,14 @@ type PurchaseScheduledInstancesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Contains the output of PurchaseScheduledInstances. type PurchaseScheduledInstancesOutput struct { // Information about the Scheduled Instances. - ScheduledInstanceSet []*types.ScheduledInstance + ScheduledInstanceSet []types.ScheduledInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_RebootInstances.go b/service/ec2/api_op_RebootInstances.go index 2e8e4b92d3c..6b65180c773 100644 --- a/service/ec2/api_op_RebootInstances.go +++ b/service/ec2/api_op_RebootInstances.go @@ -38,13 +38,13 @@ type RebootInstancesInput struct { // The instance IDs. // // This member is required. - InstanceIds []*string + InstanceIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type RebootInstancesOutput struct { diff --git a/service/ec2/api_op_RegisterImage.go b/service/ec2/api_op_RegisterImage.go index 656b7c5229f..efc2585aeb9 100644 --- a/service/ec2/api_op_RegisterImage.go +++ b/service/ec2/api_op_RegisterImage.go @@ -85,10 +85,10 @@ type RegisterImageInput struct { // The billing product codes. Your account must be authorized to specify billing // product codes. Otherwise, you can use the AWS Marketplace to bill for the use of // an AMI. - BillingProducts []*string + BillingProducts []string // The block device mapping entries. - BlockDeviceMappings []*types.BlockDeviceMapping + BlockDeviceMappings []types.BlockDeviceMapping // A description for your AMI. Description *string @@ -97,13 +97,13 @@ type RegisterImageInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Set to true to enable enhanced networking with ENA for the AMI and any instances // that you launch from the AMI. This option is supported only for HVM AMIs. // Specifying this option with a PV AMI can make instances launched from the AMI // unreachable. - EnaSupport *bool + EnaSupport bool // The full path to your AMI manifest in Amazon S3 storage. The specified bucket // must have the aws-exec-read canned access control list (ACL) to ensure that it diff --git a/service/ec2/api_op_RegisterInstanceEventNotificationAttributes.go b/service/ec2/api_op_RegisterInstanceEventNotificationAttributes.go index 12796dc5481..66ae23fb40b 100644 --- a/service/ec2/api_op_RegisterInstanceEventNotificationAttributes.go +++ b/service/ec2/api_op_RegisterInstanceEventNotificationAttributes.go @@ -34,7 +34,7 @@ type RegisterInstanceEventNotificationAttributesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Information about the tag keys to register. InstanceTagAttribute *types.RegisterInstanceTagAttributeRequest diff --git a/service/ec2/api_op_RegisterTransitGatewayMulticastGroupMembers.go b/service/ec2/api_op_RegisterTransitGatewayMulticastGroupMembers.go index 713d0ef8da6..10f28ebae16 100644 --- a/service/ec2/api_op_RegisterTransitGatewayMulticastGroupMembers.go +++ b/service/ec2/api_op_RegisterTransitGatewayMulticastGroupMembers.go @@ -41,14 +41,14 @@ type RegisterTransitGatewayMulticastGroupMembersInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The IP address assigned to the transit gateway multicast group. GroupIpAddress *string // The group members' network interface IDs to register with the transit gateway // multicast group. - NetworkInterfaceIds []*string + NetworkInterfaceIds []string // The ID of the transit gateway multicast domain. TransitGatewayMulticastDomainId *string diff --git a/service/ec2/api_op_RegisterTransitGatewayMulticastGroupSources.go b/service/ec2/api_op_RegisterTransitGatewayMulticastGroupSources.go index a9cf6f9b84f..cbc9ca6112c 100644 --- a/service/ec2/api_op_RegisterTransitGatewayMulticastGroupSources.go +++ b/service/ec2/api_op_RegisterTransitGatewayMulticastGroupSources.go @@ -41,14 +41,14 @@ type RegisterTransitGatewayMulticastGroupSourcesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The IP address assigned to the transit gateway multicast group. GroupIpAddress *string // The group sources' network interface IDs to register with the transit gateway // multicast group. - NetworkInterfaceIds []*string + NetworkInterfaceIds []string // The ID of the transit gateway multicast domain. TransitGatewayMulticastDomainId *string diff --git a/service/ec2/api_op_RejectTransitGatewayPeeringAttachment.go b/service/ec2/api_op_RejectTransitGatewayPeeringAttachment.go index d30c0de5b0b..5ce7610ce9b 100644 --- a/service/ec2/api_op_RejectTransitGatewayPeeringAttachment.go +++ b/service/ec2/api_op_RejectTransitGatewayPeeringAttachment.go @@ -38,7 +38,7 @@ type RejectTransitGatewayPeeringAttachmentInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type RejectTransitGatewayPeeringAttachmentOutput struct { diff --git a/service/ec2/api_op_RejectTransitGatewayVpcAttachment.go b/service/ec2/api_op_RejectTransitGatewayVpcAttachment.go index 6076464461f..8a94d58ca99 100644 --- a/service/ec2/api_op_RejectTransitGatewayVpcAttachment.go +++ b/service/ec2/api_op_RejectTransitGatewayVpcAttachment.go @@ -41,7 +41,7 @@ type RejectTransitGatewayVpcAttachmentInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type RejectTransitGatewayVpcAttachmentOutput struct { diff --git a/service/ec2/api_op_RejectVpcEndpointConnections.go b/service/ec2/api_op_RejectVpcEndpointConnections.go index 6a8d7500cf7..b64927aded7 100644 --- a/service/ec2/api_op_RejectVpcEndpointConnections.go +++ b/service/ec2/api_op_RejectVpcEndpointConnections.go @@ -38,19 +38,19 @@ type RejectVpcEndpointConnectionsInput struct { // The IDs of one or more VPC endpoints. // // This member is required. - VpcEndpointIds []*string + VpcEndpointIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type RejectVpcEndpointConnectionsOutput struct { // Information about the endpoints that were not rejected, if applicable. - Unsuccessful []*types.UnsuccessfulItem + Unsuccessful []types.UnsuccessfulItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_RejectVpcPeeringConnection.go b/service/ec2/api_op_RejectVpcPeeringConnection.go index bf7133feb6e..d5cff5bc58b 100644 --- a/service/ec2/api_op_RejectVpcPeeringConnection.go +++ b/service/ec2/api_op_RejectVpcPeeringConnection.go @@ -41,13 +41,13 @@ type RejectVpcPeeringConnectionInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type RejectVpcPeeringConnectionOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ReleaseAddress.go b/service/ec2/api_op_ReleaseAddress.go index 360a2cc492e..88a39e4ac88 100644 --- a/service/ec2/api_op_ReleaseAddress.go +++ b/service/ec2/api_op_ReleaseAddress.go @@ -46,7 +46,7 @@ type ReleaseAddressInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The set of Availability Zones, Local Zones, or Wavelength Zones from which AWS // advertises IP addresses. If you provide an incorrect network border group, you diff --git a/service/ec2/api_op_ReleaseHosts.go b/service/ec2/api_op_ReleaseHosts.go index f6ca52758ca..f81da5b6027 100644 --- a/service/ec2/api_op_ReleaseHosts.go +++ b/service/ec2/api_op_ReleaseHosts.go @@ -40,17 +40,17 @@ type ReleaseHostsInput struct { // The IDs of the Dedicated Hosts to release. // // This member is required. - HostIds []*string + HostIds []string } type ReleaseHostsOutput struct { // The IDs of the Dedicated Hosts that were successfully released. - Successful []*string + Successful []string // The IDs of the Dedicated Hosts that could not be released, including an error // message. - Unsuccessful []*types.UnsuccessfulItem + Unsuccessful []types.UnsuccessfulItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ReplaceNetworkAclAssociation.go b/service/ec2/api_op_ReplaceNetworkAclAssociation.go index 907b4741147..9615fe7492f 100644 --- a/service/ec2/api_op_ReplaceNetworkAclAssociation.go +++ b/service/ec2/api_op_ReplaceNetworkAclAssociation.go @@ -47,7 +47,7 @@ type ReplaceNetworkAclAssociationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ReplaceNetworkAclAssociationOutput struct { diff --git a/service/ec2/api_op_ReplaceNetworkAclEntry.go b/service/ec2/api_op_ReplaceNetworkAclEntry.go index a6f11c654d4..9aeb68202aa 100644 --- a/service/ec2/api_op_ReplaceNetworkAclEntry.go +++ b/service/ec2/api_op_ReplaceNetworkAclEntry.go @@ -35,7 +35,7 @@ type ReplaceNetworkAclEntryInput struct { // we replace the ingress rule. // // This member is required. - Egress *bool + Egress bool // The ID of the ACL. // @@ -61,7 +61,7 @@ type ReplaceNetworkAclEntryInput struct { // The rule number of the entry to replace. // // This member is required. - RuleNumber *int32 + RuleNumber int32 // The IPv4 network range to allow or deny, in CIDR notation (for example // 172.16.0.0/24). @@ -71,7 +71,7 @@ type ReplaceNetworkAclEntryInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol // 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block. diff --git a/service/ec2/api_op_ReplaceRoute.go b/service/ec2/api_op_ReplaceRoute.go index 306d778153a..97e392d41bb 100644 --- a/service/ec2/api_op_ReplaceRoute.go +++ b/service/ec2/api_op_ReplaceRoute.go @@ -56,7 +56,7 @@ type ReplaceRouteInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // [IPv6 traffic only] The ID of an egress-only internet gateway. EgressOnlyInternetGatewayId *string @@ -71,7 +71,7 @@ type ReplaceRouteInput struct { LocalGatewayId *string // Specifies whether to reset the local route to its default target (local). - LocalTarget *bool + LocalTarget bool // [IPv4 traffic only] The ID of a NAT gateway. NatGatewayId *string diff --git a/service/ec2/api_op_ReplaceRouteTableAssociation.go b/service/ec2/api_op_ReplaceRouteTableAssociation.go index 71c6f45edcd..e63cc619525 100644 --- a/service/ec2/api_op_ReplaceRouteTableAssociation.go +++ b/service/ec2/api_op_ReplaceRouteTableAssociation.go @@ -50,7 +50,7 @@ type ReplaceRouteTableAssociationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ReplaceRouteTableAssociationOutput struct { diff --git a/service/ec2/api_op_ReplaceTransitGatewayRoute.go b/service/ec2/api_op_ReplaceTransitGatewayRoute.go index 5615ef1607a..787bba21649 100644 --- a/service/ec2/api_op_ReplaceTransitGatewayRoute.go +++ b/service/ec2/api_op_ReplaceTransitGatewayRoute.go @@ -41,13 +41,13 @@ type ReplaceTransitGatewayRouteInput struct { TransitGatewayRouteTableId *string // Indicates whether traffic matching this route is to be dropped. - Blackhole *bool + Blackhole bool // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the attachment. TransitGatewayAttachmentId *string diff --git a/service/ec2/api_op_ReportInstanceStatus.go b/service/ec2/api_op_ReportInstanceStatus.go index 5da5bf763b5..371be58aaaf 100644 --- a/service/ec2/api_op_ReportInstanceStatus.go +++ b/service/ec2/api_op_ReportInstanceStatus.go @@ -38,7 +38,7 @@ type ReportInstanceStatusInput struct { // The instances. // // This member is required. - Instances []*string + Instances []string // The reason codes that describe the health state of your instance. // @@ -85,7 +85,7 @@ type ReportInstanceStatusInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The time at which the reported instance health state ended. EndTime *time.Time diff --git a/service/ec2/api_op_RequestSpotFleet.go b/service/ec2/api_op_RequestSpotFleet.go index e1326a264ac..2fce8b95984 100644 --- a/service/ec2/api_op_RequestSpotFleet.go +++ b/service/ec2/api_op_RequestSpotFleet.go @@ -56,7 +56,7 @@ type RequestSpotFleetInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } // Contains the output of RequestSpotFleet. diff --git a/service/ec2/api_op_RequestSpotInstances.go b/service/ec2/api_op_RequestSpotInstances.go index f4316c73201..76691159b6b 100644 --- a/service/ec2/api_op_RequestSpotInstances.go +++ b/service/ec2/api_op_RequestSpotInstances.go @@ -61,7 +61,7 @@ type RequestSpotInstancesInput struct { // Availability Zone group or a launch group if you specify a duration. New // accounts or accounts with no previous billing history with AWS are not eligible // for Spot Instances with a defined duration (also known as Spot blocks). - BlockDurationMinutes *int32 + BlockDurationMinutes int32 // Unique, case-sensitive identifier that you provide to ensure the idempotency of // the request. For more information, see How to Ensure Idempotency @@ -73,10 +73,10 @@ type RequestSpotInstancesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The maximum number of Spot Instances to launch. Default: 1 - InstanceCount *int32 + InstanceCount int32 // The behavior when a Spot Instance is interrupted. The default is terminate. InstanceInterruptionBehavior types.InstanceInterruptionBehavior @@ -98,7 +98,7 @@ type RequestSpotInstancesInput struct { // request fails. To tag the Spot Instance request after it has been created, see // CreateTags // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // The Spot Instance request type. Default: one-time Type types.SpotInstanceType @@ -129,7 +129,7 @@ type RequestSpotInstancesInput struct { type RequestSpotInstancesOutput struct { // One or more Spot Instance requests. - SpotInstanceRequests []*types.SpotInstanceRequest + SpotInstanceRequests []types.SpotInstanceRequest // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go b/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go index 4b794a57d06..155fcf49982 100644 --- a/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go +++ b/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go @@ -38,7 +38,7 @@ type ResetEbsDefaultKmsKeyIdInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ResetEbsDefaultKmsKeyIdOutput struct { diff --git a/service/ec2/api_op_ResetFpgaImageAttribute.go b/service/ec2/api_op_ResetFpgaImageAttribute.go index 035efda9499..62dbcd894b6 100644 --- a/service/ec2/api_op_ResetFpgaImageAttribute.go +++ b/service/ec2/api_op_ResetFpgaImageAttribute.go @@ -42,13 +42,13 @@ type ResetFpgaImageAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ResetFpgaImageAttributeOutput struct { // Is true if the request succeeds, and an error otherwise. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_ResetImageAttribute.go b/service/ec2/api_op_ResetImageAttribute.go index aa4f8205515..5a6d7ad1c29 100644 --- a/service/ec2/api_op_ResetImageAttribute.go +++ b/service/ec2/api_op_ResetImageAttribute.go @@ -46,7 +46,7 @@ type ResetImageAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ResetImageAttributeOutput struct { diff --git a/service/ec2/api_op_ResetInstanceAttribute.go b/service/ec2/api_op_ResetInstanceAttribute.go index 737bd8f7fe3..6203ea2dc9c 100644 --- a/service/ec2/api_op_ResetInstanceAttribute.go +++ b/service/ec2/api_op_ResetInstanceAttribute.go @@ -52,7 +52,7 @@ type ResetInstanceAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ResetInstanceAttributeOutput struct { diff --git a/service/ec2/api_op_ResetNetworkInterfaceAttribute.go b/service/ec2/api_op_ResetNetworkInterfaceAttribute.go index ad17388ffc7..bc0406a7507 100644 --- a/service/ec2/api_op_ResetNetworkInterfaceAttribute.go +++ b/service/ec2/api_op_ResetNetworkInterfaceAttribute.go @@ -39,7 +39,7 @@ type ResetNetworkInterfaceAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The source/destination checking attribute. Resets the value to true. SourceDestCheck *string diff --git a/service/ec2/api_op_ResetSnapshotAttribute.go b/service/ec2/api_op_ResetSnapshotAttribute.go index b579e36a53f..435745028d6 100644 --- a/service/ec2/api_op_ResetSnapshotAttribute.go +++ b/service/ec2/api_op_ResetSnapshotAttribute.go @@ -47,7 +47,7 @@ type ResetSnapshotAttributeInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type ResetSnapshotAttributeOutput struct { diff --git a/service/ec2/api_op_RestoreAddressToClassic.go b/service/ec2/api_op_RestoreAddressToClassic.go index 5cccddea14c..ba0223185e0 100644 --- a/service/ec2/api_op_RestoreAddressToClassic.go +++ b/service/ec2/api_op_RestoreAddressToClassic.go @@ -41,7 +41,7 @@ type RestoreAddressToClassicInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type RestoreAddressToClassicOutput struct { diff --git a/service/ec2/api_op_RestoreManagedPrefixListVersion.go b/service/ec2/api_op_RestoreManagedPrefixListVersion.go index 1247739f0b1..96bf90af355 100644 --- a/service/ec2/api_op_RestoreManagedPrefixListVersion.go +++ b/service/ec2/api_op_RestoreManagedPrefixListVersion.go @@ -33,7 +33,7 @@ type RestoreManagedPrefixListVersionInput struct { // The current version number for the prefix list. // // This member is required. - CurrentVersion *int64 + CurrentVersion int64 // The ID of the prefix list. // @@ -43,13 +43,13 @@ type RestoreManagedPrefixListVersionInput struct { // The version to restore. // // This member is required. - PreviousVersion *int64 + PreviousVersion int64 // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type RestoreManagedPrefixListVersionOutput struct { diff --git a/service/ec2/api_op_RevokeClientVpnIngress.go b/service/ec2/api_op_RevokeClientVpnIngress.go index f84c67956da..a0f72e84e49 100644 --- a/service/ec2/api_op_RevokeClientVpnIngress.go +++ b/service/ec2/api_op_RevokeClientVpnIngress.go @@ -48,10 +48,10 @@ type RevokeClientVpnIngressInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Indicates whether access should be revoked for all clients. - RevokeAllGroups *bool + RevokeAllGroups bool } type RevokeClientVpnIngressOutput struct { diff --git a/service/ec2/api_op_RevokeSecurityGroupEgress.go b/service/ec2/api_op_RevokeSecurityGroupEgress.go index e899a32f12b..c941d7975c1 100644 --- a/service/ec2/api_op_RevokeSecurityGroupEgress.go +++ b/service/ec2/api_op_RevokeSecurityGroupEgress.go @@ -54,14 +54,14 @@ type RevokeSecurityGroupEgressInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Not supported. Use a set of IP permissions to specify the port. - FromPort *int32 + FromPort int32 // The sets of IP permissions. You can't specify a destination security group and a // CIDR IP address range in the same set of permissions. - IpPermissions []*types.IpPermission + IpPermissions []types.IpPermission // Not supported. Use a set of IP permissions to specify the protocol name or // number. @@ -76,18 +76,18 @@ type RevokeSecurityGroupEgressInput struct { SourceSecurityGroupOwnerId *string // Not supported. Use a set of IP permissions to specify the port. - ToPort *int32 + ToPort int32 } type RevokeSecurityGroupEgressOutput struct { // Returns true if the request succeeds; otherwise, returns an error. - Return *bool + Return bool // The outbound rules that were unknown to the service. In some cases, // unknownIpPermissionSet might be in a different format from the request // parameter. - UnknownIpPermissions []*types.IpPermission + UnknownIpPermissions []types.IpPermission // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_RevokeSecurityGroupIngress.go b/service/ec2/api_op_RevokeSecurityGroupIngress.go index 85d69304101..04ae334b680 100644 --- a/service/ec2/api_op_RevokeSecurityGroupIngress.go +++ b/service/ec2/api_op_RevokeSecurityGroupIngress.go @@ -48,11 +48,11 @@ type RevokeSecurityGroupIngressInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The start of port range for the TCP and UDP protocols, or an ICMP type number. // For the ICMP type number, use -1 to specify all ICMP types. - FromPort *int32 + FromPort int32 // The ID of the security group. You must specify either the security group ID or // the security group name in the request. For security groups in a nondefault VPC, @@ -65,7 +65,7 @@ type RevokeSecurityGroupIngressInput struct { // The sets of IP permissions. You can't specify a source security group and a CIDR // IP address range in the same set of permissions. - IpPermissions []*types.IpPermission + IpPermissions []types.IpPermission // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). Use @@ -90,18 +90,18 @@ type RevokeSecurityGroupIngressInput struct { // The end of port range for the TCP and UDP protocols, or an ICMP code number. For // the ICMP code number, use -1 to specify all ICMP codes for the ICMP type. - ToPort *int32 + ToPort int32 } type RevokeSecurityGroupIngressOutput struct { // Returns true if the request succeeds; otherwise, returns an error. - Return *bool + Return bool // The inbound rules that were unknown to the service. In some cases, // unknownIpPermissionSet might be in a different format from the request // parameter. - UnknownIpPermissions []*types.IpPermission + UnknownIpPermissions []types.IpPermission // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_RunInstances.go b/service/ec2/api_op_RunInstances.go index 46983ce0ff3..7ffd6e75d67 100644 --- a/service/ec2/api_op_RunInstances.go +++ b/service/ec2/api_op_RunInstances.go @@ -97,7 +97,7 @@ type RunInstancesInput struct { // the Amazon EC2 FAQ. // // This member is required. - MaxCount *int32 + MaxCount int32 // The minimum number of instances to launch. If you specify a minimum that is more // instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 @@ -109,13 +109,13 @@ type RunInstancesInput struct { // the Amazon EC2 General FAQ. // // This member is required. - MinCount *int32 + MinCount int32 // Reserved. AdditionalInfo *string // The block device mapping entries. - BlockDeviceMappings []*types.BlockDeviceMapping + BlockDeviceMappings []types.BlockDeviceMapping // Information about the Capacity Reservation targeting option. If you do not // specify this parameter, the instance's Capacity Reservation preference defaults @@ -154,20 +154,20 @@ type RunInstancesInput struct { // Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you // can terminate the instance by running the shutdown command from the instance. // Default: false - DisableApiTermination *bool + DisableApiTermination bool // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Indicates whether the instance is optimized for Amazon EBS I/O. This // optimization provides dedicated throughput to Amazon EBS and an optimized // configuration stack to provide optimal Amazon EBS I/O performance. This // optimization isn't available with all instance types. Additional usage charges // apply when using an EBS-optimized instance. Default: false - EbsOptimized *bool + EbsOptimized bool // An elastic GPU to associate with the instance. An Elastic GPU is a GPU resource // that you can attach to your Windows instance to accelerate the graphics @@ -175,13 +175,13 @@ type RunInstancesInput struct { // GPUs // (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html) // in the Amazon Elastic Compute Cloud User Guide. - ElasticGpuSpecification []*types.ElasticGpuSpecification + ElasticGpuSpecification []types.ElasticGpuSpecification // An elastic inference accelerator to associate with the instance. Elastic // inference accelerators are a resource you can attach to your Amazon EC2 // instances to accelerate your Deep Learning (DL) inference workloads. You cannot // specify accelerators from different generations in the same request. - ElasticInferenceAccelerators []*types.ElasticInferenceAccelerator + ElasticInferenceAccelerators []types.ElasticInferenceAccelerator // Indicates whether the instance is enabled for AWS Nitro Enclaves. For more // information, see AWS Nitro Enclaves @@ -228,14 +228,14 @@ type RunInstancesInput struct { // in the same request. You can specify this option if you've specified a minimum // number of instances to launch. You cannot specify this option and the network // interfaces option in the same request. - Ipv6AddressCount *int32 + Ipv6AddressCount int32 // [EC2-VPC] The IPv6 addresses from the range of the subnet to associate with the // primary network interface. You cannot specify this option and the option to // assign a number of IPv6 addresses in the same request. You cannot specify this // option if you've specified a minimum number of instances to launch. You cannot // specify this option and the network interfaces option in the same request. - Ipv6Addresses []*types.InstanceIpv6Address + Ipv6Addresses []types.InstanceIpv6Address // The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and // RAM disks. For more information, see PV-GRUB @@ -257,7 +257,7 @@ type RunInstancesInput struct { LaunchTemplate *types.LaunchTemplateSpecification // The license configurations. - LicenseSpecifications []*types.LicenseConfigurationRequest + LicenseSpecifications []types.LicenseConfigurationRequest // The metadata options for the instance. For more information, see Instance // metadata and user data @@ -270,7 +270,7 @@ type RunInstancesInput struct { // The network interfaces to associate with the instance. If you specify a network // interface, you must specify any security groups and subnets as part of the // network interface. - NetworkInterfaces []*types.InstanceNetworkInterfaceSpecification + NetworkInterfaces []types.InstanceNetworkInterfaceSpecification // The placement for the instance. Placement *types.Placement @@ -298,13 +298,13 @@ type RunInstancesInput struct { // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html). // If you specify a network interface, you must specify any security groups as part // of the network interface. - SecurityGroupIds []*string + SecurityGroupIds []string // [EC2-Classic, default VPC] The names of the security groups. For a nondefault // VPC, you must use security group IDs instead. If you specify a network // interface, you must specify any security groups as part of the network // interface. Default: Amazon EC2 uses the default security group. - SecurityGroups []*string + SecurityGroups []string // [EC2-VPC] The ID of the subnet to launch the instance into. If you specify a // network interface, you must specify any subnets as part of the network @@ -316,7 +316,7 @@ type RunInstancesInput struct { // that are created during launch. To tag a resource after it has been created, see // CreateTags // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). - TagSpecifications []*types.TagSpecification + TagSpecifications []types.TagSpecification // The user data to make available to the instance. For more information, see // Running commands on your Linux instance at launch @@ -335,10 +335,10 @@ type RunInstancesInput struct { type RunInstancesOutput struct { // [EC2-Classic only] The security groups. - Groups []*types.GroupIdentifier + Groups []types.GroupIdentifier // The instances. - Instances []*types.Instance + Instances []types.Instance // The ID of the AWS account that owns the reservation. OwnerId *string diff --git a/service/ec2/api_op_RunScheduledInstances.go b/service/ec2/api_op_RunScheduledInstances.go index de291157381..e30304d435d 100644 --- a/service/ec2/api_op_RunScheduledInstances.go +++ b/service/ec2/api_op_RunScheduledInstances.go @@ -59,17 +59,17 @@ type RunScheduledInstancesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The number of instances. Default: 1 - InstanceCount *int32 + InstanceCount int32 } // Contains the output of RunScheduledInstances. type RunScheduledInstancesOutput struct { // The IDs of the newly launched instances. - InstanceIdSet []*string + InstanceIdSet []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_SearchLocalGatewayRoutes.go b/service/ec2/api_op_SearchLocalGatewayRoutes.go index d206fffcd18..47f9de2b4b5 100644 --- a/service/ec2/api_op_SearchLocalGatewayRoutes.go +++ b/service/ec2/api_op_SearchLocalGatewayRoutes.go @@ -32,7 +32,7 @@ type SearchLocalGatewayRoutesInput struct { // One or more filters. // // This member is required. - Filters []*types.Filter + Filters []types.Filter // The ID of the local gateway route table. // @@ -43,7 +43,7 @@ type SearchLocalGatewayRoutesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. @@ -60,7 +60,7 @@ type SearchLocalGatewayRoutesOutput struct { NextToken *string // Information about the routes. - Routes []*types.LocalGatewayRoute + Routes []types.LocalGatewayRoute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_SearchTransitGatewayMulticastGroups.go b/service/ec2/api_op_SearchTransitGatewayMulticastGroups.go index 07fc8624008..e9feac282e1 100644 --- a/service/ec2/api_op_SearchTransitGatewayMulticastGroups.go +++ b/service/ec2/api_op_SearchTransitGatewayMulticastGroups.go @@ -34,7 +34,7 @@ type SearchTransitGatewayMulticastGroupsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // One or more filters. The possible values are: // @@ -67,11 +67,11 @@ type SearchTransitGatewayMulticastGroupsInput struct { // // * transit-gateway-attachment-id - The id of // the transit gateway attachment. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string @@ -83,7 +83,7 @@ type SearchTransitGatewayMulticastGroupsInput struct { type SearchTransitGatewayMulticastGroupsOutput struct { // Information about the transit gateway multicast group. - MulticastGroups []*types.TransitGatewayMulticastGroup + MulticastGroups []types.TransitGatewayMulticastGroup // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. diff --git a/service/ec2/api_op_SearchTransitGatewayRoutes.go b/service/ec2/api_op_SearchTransitGatewayRoutes.go index e2f5a62ebc5..df8a1cb5116 100644 --- a/service/ec2/api_op_SearchTransitGatewayRoutes.go +++ b/service/ec2/api_op_SearchTransitGatewayRoutes.go @@ -65,7 +65,7 @@ type SearchTransitGatewayRoutesInput struct { // (propagated | static). // // This member is required. - Filters []*types.Filter + Filters []types.Filter // The ID of the transit gateway route table. // @@ -76,19 +76,19 @@ type SearchTransitGatewayRoutesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The maximum number of routes to return. - MaxResults *int32 + MaxResults int32 } type SearchTransitGatewayRoutesOutput struct { // Indicates whether there are additional routes available. - AdditionalRoutesAvailable *bool + AdditionalRoutesAvailable bool // Information about the routes. - Routes []*types.TransitGatewayRoute + Routes []types.TransitGatewayRoute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_SendDiagnosticInterrupt.go b/service/ec2/api_op_SendDiagnosticInterrupt.go index c4b7d218d43..52d1d1dddee 100644 --- a/service/ec2/api_op_SendDiagnosticInterrupt.go +++ b/service/ec2/api_op_SendDiagnosticInterrupt.go @@ -51,7 +51,7 @@ type SendDiagnosticInterruptInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type SendDiagnosticInterruptOutput struct { diff --git a/service/ec2/api_op_StartInstances.go b/service/ec2/api_op_StartInstances.go index 8b8b40ef8d2..0141ca2a034 100644 --- a/service/ec2/api_op_StartInstances.go +++ b/service/ec2/api_op_StartInstances.go @@ -49,7 +49,7 @@ type StartInstancesInput struct { // The IDs of the instances. // // This member is required. - InstanceIds []*string + InstanceIds []string // Reserved. AdditionalInfo *string @@ -58,13 +58,13 @@ type StartInstancesInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type StartInstancesOutput struct { // Information about the started instances. - StartingInstances []*types.InstanceStateChange + StartingInstances []types.InstanceStateChange // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_StartVpcEndpointServicePrivateDnsVerification.go b/service/ec2/api_op_StartVpcEndpointServicePrivateDnsVerification.go index 164fb986639..a2f4761f79f 100644 --- a/service/ec2/api_op_StartVpcEndpointServicePrivateDnsVerification.go +++ b/service/ec2/api_op_StartVpcEndpointServicePrivateDnsVerification.go @@ -44,13 +44,13 @@ type StartVpcEndpointServicePrivateDnsVerificationInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type StartVpcEndpointServicePrivateDnsVerificationOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - ReturnValue *bool + ReturnValue bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_StopInstances.go b/service/ec2/api_op_StopInstances.go index 95caf71f3dc..6c6487c07a5 100644 --- a/service/ec2/api_op_StopInstances.go +++ b/service/ec2/api_op_StopInstances.go @@ -72,32 +72,32 @@ type StopInstancesInput struct { // The IDs of the instances. // // This member is required. - InstanceIds []*string + InstanceIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // Forces the instances to stop. The instances do not have an opportunity to flush // file system caches or file system metadata. If you use this option, you must // perform file system check and repair procedures. This option is not recommended // for Windows instances. Default: false - Force *bool + Force bool // Hibernates the instance if the instance was enabled for hibernation at launch. // If the instance cannot hibernate successfully, a normal shutdown occurs. For // more information, see Hibernate your instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the // Amazon Elastic Compute Cloud User Guide. Default: false - Hibernate *bool + Hibernate bool } type StopInstancesOutput struct { // Information about the stopped instances. - StoppingInstances []*types.InstanceStateChange + StoppingInstances []types.InstanceStateChange // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_TerminateClientVpnConnections.go b/service/ec2/api_op_TerminateClientVpnConnections.go index be6e3766dba..a44bb426cf1 100644 --- a/service/ec2/api_op_TerminateClientVpnConnections.go +++ b/service/ec2/api_op_TerminateClientVpnConnections.go @@ -43,7 +43,7 @@ type TerminateClientVpnConnectionsInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The name of the user who initiated the connection. Use this option to terminate // all active connections for the specified user. This option can only be used if @@ -57,7 +57,7 @@ type TerminateClientVpnConnectionsOutput struct { ClientVpnEndpointId *string // The current state of the client connections. - ConnectionStatuses []*types.TerminateConnectionStatus + ConnectionStatuses []types.TerminateConnectionStatus // The user who established the terminated client connections. Username *string diff --git a/service/ec2/api_op_TerminateInstances.go b/service/ec2/api_op_TerminateInstances.go index bf117f2fbf6..d2221bb553c 100644 --- a/service/ec2/api_op_TerminateInstances.go +++ b/service/ec2/api_op_TerminateInstances.go @@ -51,19 +51,19 @@ type TerminateInstancesInput struct { // breaking up this request into smaller batches. // // This member is required. - InstanceIds []*string + InstanceIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type TerminateInstancesOutput struct { // Information about the terminated instances. - TerminatingInstances []*types.InstanceStateChange + TerminatingInstances []types.InstanceStateChange // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_UnassignIpv6Addresses.go b/service/ec2/api_op_UnassignIpv6Addresses.go index 721f1b332d1..6212e766846 100644 --- a/service/ec2/api_op_UnassignIpv6Addresses.go +++ b/service/ec2/api_op_UnassignIpv6Addresses.go @@ -31,7 +31,7 @@ type UnassignIpv6AddressesInput struct { // The IPv6 addresses to unassign from the network interface. // // This member is required. - Ipv6Addresses []*string + Ipv6Addresses []string // The ID of the network interface. // @@ -45,7 +45,7 @@ type UnassignIpv6AddressesOutput struct { NetworkInterfaceId *string // The IPv6 addresses that have been unassigned from the network interface. - UnassignedIpv6Addresses []*string + UnassignedIpv6Addresses []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_UnassignPrivateIpAddresses.go b/service/ec2/api_op_UnassignPrivateIpAddresses.go index a18281b59a2..bdf5ae48997 100644 --- a/service/ec2/api_op_UnassignPrivateIpAddresses.go +++ b/service/ec2/api_op_UnassignPrivateIpAddresses.go @@ -38,7 +38,7 @@ type UnassignPrivateIpAddressesInput struct { // can specify this option multiple times to unassign more than one IP address. // // This member is required. - PrivateIpAddresses []*string + PrivateIpAddresses []string } type UnassignPrivateIpAddressesOutput struct { diff --git a/service/ec2/api_op_UnmonitorInstances.go b/service/ec2/api_op_UnmonitorInstances.go index b0cfcb38cc3..06934fa3f76 100644 --- a/service/ec2/api_op_UnmonitorInstances.go +++ b/service/ec2/api_op_UnmonitorInstances.go @@ -35,19 +35,19 @@ type UnmonitorInstancesInput struct { // The IDs of the instances. // // This member is required. - InstanceIds []*string + InstanceIds []string // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type UnmonitorInstancesOutput struct { // The monitoring information. - InstanceMonitorings []*types.InstanceMonitoring + InstanceMonitorings []types.InstanceMonitoring // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsEgress.go b/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsEgress.go index 15db762f7dc..298553ecd4c 100644 --- a/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsEgress.go +++ b/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsEgress.go @@ -36,13 +36,13 @@ type UpdateSecurityGroupRuleDescriptionsEgressInput struct { // The IP permissions for the security group rule. // // This member is required. - IpPermissions []*types.IpPermission + IpPermissions []types.IpPermission // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the security group. You must specify either the security group ID or // the security group name in the request. For security groups in a nondefault VPC, @@ -57,7 +57,7 @@ type UpdateSecurityGroupRuleDescriptionsEgressInput struct { type UpdateSecurityGroupRuleDescriptionsEgressOutput struct { // Returns true if the request succeeds; otherwise, returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsIngress.go b/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsIngress.go index bb7682f8c59..f1454f68dde 100644 --- a/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsIngress.go +++ b/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsIngress.go @@ -36,13 +36,13 @@ type UpdateSecurityGroupRuleDescriptionsIngressInput struct { // The IP permissions for the security group rule. // // This member is required. - IpPermissions []*types.IpPermission + IpPermissions []types.IpPermission // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool // The ID of the security group. You must specify either the security group ID or // the security group name in the request. For security groups in a nondefault VPC, @@ -57,7 +57,7 @@ type UpdateSecurityGroupRuleDescriptionsIngressInput struct { type UpdateSecurityGroupRuleDescriptionsIngressOutput struct { // Returns true if the request succeeds; otherwise, returns an error. - Return *bool + Return bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2/api_op_WithdrawByoipCidr.go b/service/ec2/api_op_WithdrawByoipCidr.go index 749584ca606..93d205c98d7 100644 --- a/service/ec2/api_op_WithdrawByoipCidr.go +++ b/service/ec2/api_op_WithdrawByoipCidr.go @@ -41,7 +41,7 @@ type WithdrawByoipCidrInput struct { // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. - DryRun *bool + DryRun bool } type WithdrawByoipCidrOutput struct { diff --git a/service/ec2/deserializers.go b/service/ec2/deserializers.go index 2f30566c725..51dae968104 100644 --- a/service/ec2/deserializers.go +++ b/service/ec2/deserializers.go @@ -38551,7 +38551,7 @@ func awsEc2query_deserializeDocumentAccountAttribute(v **types.AccountAttribute, } if val != nil { xtv := string(val) - sv.AttributeName = &xtv + sv.AttributeName = ptr.String(xtv) } case strings.EqualFold("attributeValueSet", t.Name.Local): @@ -38570,13 +38570,13 @@ func awsEc2query_deserializeDocumentAccountAttribute(v **types.AccountAttribute, return nil } -func awsEc2query_deserializeDocumentAccountAttributeList(v *[]*types.AccountAttribute, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAccountAttributeList(v *[]types.AccountAttribute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AccountAttribute + var sv []types.AccountAttribute if *v == nil { - sv = make([]*types.AccountAttribute, 0) + sv = make([]types.AccountAttribute, 0) } else { sv = *v } @@ -38592,11 +38592,13 @@ func awsEc2query_deserializeDocumentAccountAttributeList(v *[]*types.AccountAttr } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.AccountAttribute + var col types.AccountAttribute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAccountAttribute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentAccountAttribute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -38609,23 +38611,25 @@ func awsEc2query_deserializeDocumentAccountAttributeList(v *[]*types.AccountAttr return nil } -func awsEc2query_deserializeDocumentAccountAttributeListUnwrapped(v *[]*types.AccountAttribute, decoder smithyxml.NodeDecoder) error { - var sv []*types.AccountAttribute +func awsEc2query_deserializeDocumentAccountAttributeListUnwrapped(v *[]types.AccountAttribute, decoder smithyxml.NodeDecoder) error { + var sv []types.AccountAttribute if *v == nil { - sv = make([]*types.AccountAttribute, 0) + sv = make([]types.AccountAttribute, 0) } else { sv = *v } switch { default: - var mv *types.AccountAttribute + var mv types.AccountAttribute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAccountAttribute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentAccountAttribute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -38666,7 +38670,7 @@ func awsEc2query_deserializeDocumentAccountAttributeValue(v **types.AccountAttri } if val != nil { xtv := string(val) - sv.AttributeValue = &xtv + sv.AttributeValue = ptr.String(xtv) } default: @@ -38679,13 +38683,13 @@ func awsEc2query_deserializeDocumentAccountAttributeValue(v **types.AccountAttri return nil } -func awsEc2query_deserializeDocumentAccountAttributeValueList(v *[]*types.AccountAttributeValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAccountAttributeValueList(v *[]types.AccountAttributeValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AccountAttributeValue + var sv []types.AccountAttributeValue if *v == nil { - sv = make([]*types.AccountAttributeValue, 0) + sv = make([]types.AccountAttributeValue, 0) } else { sv = *v } @@ -38701,11 +38705,13 @@ func awsEc2query_deserializeDocumentAccountAttributeValueList(v *[]*types.Accoun } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.AccountAttributeValue + var col types.AccountAttributeValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAccountAttributeValue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentAccountAttributeValue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -38718,23 +38724,25 @@ func awsEc2query_deserializeDocumentAccountAttributeValueList(v *[]*types.Accoun return nil } -func awsEc2query_deserializeDocumentAccountAttributeValueListUnwrapped(v *[]*types.AccountAttributeValue, decoder smithyxml.NodeDecoder) error { - var sv []*types.AccountAttributeValue +func awsEc2query_deserializeDocumentAccountAttributeValueListUnwrapped(v *[]types.AccountAttributeValue, decoder smithyxml.NodeDecoder) error { + var sv []types.AccountAttributeValue if *v == nil { - sv = make([]*types.AccountAttributeValue, 0) + sv = make([]types.AccountAttributeValue, 0) } else { sv = *v } switch { default: - var mv *types.AccountAttributeValue + var mv types.AccountAttributeValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAccountAttributeValue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentAccountAttributeValue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -38788,7 +38796,7 @@ func awsEc2query_deserializeDocumentActiveInstance(v **types.ActiveInstance, dec } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("instanceType", t.Name.Local): @@ -38804,7 +38812,7 @@ func awsEc2query_deserializeDocumentActiveInstance(v **types.ActiveInstance, dec } if val != nil { xtv := string(val) - sv.InstanceType = &xtv + sv.InstanceType = ptr.String(xtv) } case strings.EqualFold("spotInstanceRequestId", t.Name.Local): @@ -38820,7 +38828,7 @@ func awsEc2query_deserializeDocumentActiveInstance(v **types.ActiveInstance, dec } if val != nil { xtv := string(val) - sv.SpotInstanceRequestId = &xtv + sv.SpotInstanceRequestId = ptr.String(xtv) } default: @@ -38833,13 +38841,13 @@ func awsEc2query_deserializeDocumentActiveInstance(v **types.ActiveInstance, dec return nil } -func awsEc2query_deserializeDocumentActiveInstanceSet(v *[]*types.ActiveInstance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentActiveInstanceSet(v *[]types.ActiveInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ActiveInstance + var sv []types.ActiveInstance if *v == nil { - sv = make([]*types.ActiveInstance, 0) + sv = make([]types.ActiveInstance, 0) } else { sv = *v } @@ -38855,11 +38863,13 @@ func awsEc2query_deserializeDocumentActiveInstanceSet(v *[]*types.ActiveInstance } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ActiveInstance + var col types.ActiveInstance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentActiveInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentActiveInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -38872,23 +38882,25 @@ func awsEc2query_deserializeDocumentActiveInstanceSet(v *[]*types.ActiveInstance return nil } -func awsEc2query_deserializeDocumentActiveInstanceSetUnwrapped(v *[]*types.ActiveInstance, decoder smithyxml.NodeDecoder) error { - var sv []*types.ActiveInstance +func awsEc2query_deserializeDocumentActiveInstanceSetUnwrapped(v *[]types.ActiveInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.ActiveInstance if *v == nil { - sv = make([]*types.ActiveInstance, 0) + sv = make([]types.ActiveInstance, 0) } else { sv = *v } switch { default: - var mv *types.ActiveInstance + var mv types.ActiveInstance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentActiveInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentActiveInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -38929,7 +38941,7 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } if val != nil { xtv := string(val) - sv.AllocationId = &xtv + sv.AllocationId = ptr.String(xtv) } case strings.EqualFold("associationId", t.Name.Local): @@ -38945,7 +38957,7 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } if val != nil { xtv := string(val) - sv.AssociationId = &xtv + sv.AssociationId = ptr.String(xtv) } case strings.EqualFold("carrierIp", t.Name.Local): @@ -38961,7 +38973,7 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } if val != nil { xtv := string(val) - sv.CarrierIp = &xtv + sv.CarrierIp = ptr.String(xtv) } case strings.EqualFold("customerOwnedIp", t.Name.Local): @@ -38977,7 +38989,7 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } if val != nil { xtv := string(val) - sv.CustomerOwnedIp = &xtv + sv.CustomerOwnedIp = ptr.String(xtv) } case strings.EqualFold("customerOwnedIpv4Pool", t.Name.Local): @@ -38993,7 +39005,7 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } if val != nil { xtv := string(val) - sv.CustomerOwnedIpv4Pool = &xtv + sv.CustomerOwnedIpv4Pool = ptr.String(xtv) } case strings.EqualFold("domain", t.Name.Local): @@ -39022,7 +39034,7 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("networkBorderGroup", t.Name.Local): @@ -39038,7 +39050,7 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } if val != nil { xtv := string(val) - sv.NetworkBorderGroup = &xtv + sv.NetworkBorderGroup = ptr.String(xtv) } case strings.EqualFold("networkInterfaceId", t.Name.Local): @@ -39054,7 +39066,7 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } case strings.EqualFold("networkInterfaceOwnerId", t.Name.Local): @@ -39070,7 +39082,7 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } if val != nil { xtv := string(val) - sv.NetworkInterfaceOwnerId = &xtv + sv.NetworkInterfaceOwnerId = ptr.String(xtv) } case strings.EqualFold("privateIpAddress", t.Name.Local): @@ -39086,7 +39098,7 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } if val != nil { xtv := string(val) - sv.PrivateIpAddress = &xtv + sv.PrivateIpAddress = ptr.String(xtv) } case strings.EqualFold("publicIp", t.Name.Local): @@ -39102,7 +39114,7 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } if val != nil { xtv := string(val) - sv.PublicIp = &xtv + sv.PublicIp = ptr.String(xtv) } case strings.EqualFold("publicIpv4Pool", t.Name.Local): @@ -39118,7 +39130,7 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } if val != nil { xtv := string(val) - sv.PublicIpv4Pool = &xtv + sv.PublicIpv4Pool = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -39137,13 +39149,13 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml return nil } -func awsEc2query_deserializeDocumentAddressList(v *[]*types.Address, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAddressList(v *[]types.Address, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Address + var sv []types.Address if *v == nil { - sv = make([]*types.Address, 0) + sv = make([]types.Address, 0) } else { sv = *v } @@ -39159,11 +39171,13 @@ func awsEc2query_deserializeDocumentAddressList(v *[]*types.Address, decoder smi } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Address + var col types.Address nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAddress(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentAddress(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -39176,23 +39190,25 @@ func awsEc2query_deserializeDocumentAddressList(v *[]*types.Address, decoder smi return nil } -func awsEc2query_deserializeDocumentAddressListUnwrapped(v *[]*types.Address, decoder smithyxml.NodeDecoder) error { - var sv []*types.Address +func awsEc2query_deserializeDocumentAddressListUnwrapped(v *[]types.Address, decoder smithyxml.NodeDecoder) error { + var sv []types.Address if *v == nil { - sv = make([]*types.Address, 0) + sv = make([]types.Address, 0) } else { sv = *v } switch { default: - var mv *types.Address + var mv types.Address t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAddress(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentAddress(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -39233,7 +39249,7 @@ func awsEc2query_deserializeDocumentAllowedPrincipal(v **types.AllowedPrincipal, } if val != nil { xtv := string(val) - sv.Principal = &xtv + sv.Principal = ptr.String(xtv) } case strings.EqualFold("principalType", t.Name.Local): @@ -39259,13 +39275,13 @@ func awsEc2query_deserializeDocumentAllowedPrincipal(v **types.AllowedPrincipal, return nil } -func awsEc2query_deserializeDocumentAllowedPrincipalSet(v *[]*types.AllowedPrincipal, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAllowedPrincipalSet(v *[]types.AllowedPrincipal, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AllowedPrincipal + var sv []types.AllowedPrincipal if *v == nil { - sv = make([]*types.AllowedPrincipal, 0) + sv = make([]types.AllowedPrincipal, 0) } else { sv = *v } @@ -39281,11 +39297,13 @@ func awsEc2query_deserializeDocumentAllowedPrincipalSet(v *[]*types.AllowedPrinc } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.AllowedPrincipal + var col types.AllowedPrincipal nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAllowedPrincipal(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentAllowedPrincipal(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -39298,23 +39316,25 @@ func awsEc2query_deserializeDocumentAllowedPrincipalSet(v *[]*types.AllowedPrinc return nil } -func awsEc2query_deserializeDocumentAllowedPrincipalSetUnwrapped(v *[]*types.AllowedPrincipal, decoder smithyxml.NodeDecoder) error { - var sv []*types.AllowedPrincipal +func awsEc2query_deserializeDocumentAllowedPrincipalSetUnwrapped(v *[]types.AllowedPrincipal, decoder smithyxml.NodeDecoder) error { + var sv []types.AllowedPrincipal if *v == nil { - sv = make([]*types.AllowedPrincipal, 0) + sv = make([]types.AllowedPrincipal, 0) } else { sv = *v } switch { default: - var mv *types.AllowedPrincipal + var mv types.AllowedPrincipal t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAllowedPrincipal(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentAllowedPrincipal(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -39431,7 +39451,7 @@ func awsEc2query_deserializeDocumentAssignedPrivateIpAddress(v **types.AssignedP } if val != nil { xtv := string(val) - sv.PrivateIpAddress = &xtv + sv.PrivateIpAddress = ptr.String(xtv) } default: @@ -39444,13 +39464,13 @@ func awsEc2query_deserializeDocumentAssignedPrivateIpAddress(v **types.AssignedP return nil } -func awsEc2query_deserializeDocumentAssignedPrivateIpAddressList(v *[]*types.AssignedPrivateIpAddress, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAssignedPrivateIpAddressList(v *[]types.AssignedPrivateIpAddress, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AssignedPrivateIpAddress + var sv []types.AssignedPrivateIpAddress if *v == nil { - sv = make([]*types.AssignedPrivateIpAddress, 0) + sv = make([]types.AssignedPrivateIpAddress, 0) } else { sv = *v } @@ -39466,11 +39486,13 @@ func awsEc2query_deserializeDocumentAssignedPrivateIpAddressList(v *[]*types.Ass } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.AssignedPrivateIpAddress + var col types.AssignedPrivateIpAddress nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAssignedPrivateIpAddress(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentAssignedPrivateIpAddress(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -39483,23 +39505,25 @@ func awsEc2query_deserializeDocumentAssignedPrivateIpAddressList(v *[]*types.Ass return nil } -func awsEc2query_deserializeDocumentAssignedPrivateIpAddressListUnwrapped(v *[]*types.AssignedPrivateIpAddress, decoder smithyxml.NodeDecoder) error { - var sv []*types.AssignedPrivateIpAddress +func awsEc2query_deserializeDocumentAssignedPrivateIpAddressListUnwrapped(v *[]types.AssignedPrivateIpAddress, decoder smithyxml.NodeDecoder) error { + var sv []types.AssignedPrivateIpAddress if *v == nil { - sv = make([]*types.AssignedPrivateIpAddress, 0) + sv = make([]types.AssignedPrivateIpAddress, 0) } else { sv = *v } switch { default: - var mv *types.AssignedPrivateIpAddress + var mv types.AssignedPrivateIpAddress t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAssignedPrivateIpAddress(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentAssignedPrivateIpAddress(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -39540,7 +39564,7 @@ func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, dec } if val != nil { xtv := string(val) - sv.AssociatedRoleArn = &xtv + sv.AssociatedRoleArn = ptr.String(xtv) } case strings.EqualFold("certificateS3BucketName", t.Name.Local): @@ -39556,7 +39580,7 @@ func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, dec } if val != nil { xtv := string(val) - sv.CertificateS3BucketName = &xtv + sv.CertificateS3BucketName = ptr.String(xtv) } case strings.EqualFold("certificateS3ObjectKey", t.Name.Local): @@ -39572,7 +39596,7 @@ func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, dec } if val != nil { xtv := string(val) - sv.CertificateS3ObjectKey = &xtv + sv.CertificateS3ObjectKey = ptr.String(xtv) } case strings.EqualFold("encryptionKmsKeyId", t.Name.Local): @@ -39588,7 +39612,7 @@ func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, dec } if val != nil { xtv := string(val) - sv.EncryptionKmsKeyId = &xtv + sv.EncryptionKmsKeyId = ptr.String(xtv) } default: @@ -39601,13 +39625,13 @@ func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, dec return nil } -func awsEc2query_deserializeDocumentAssociatedRolesList(v *[]*types.AssociatedRole, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAssociatedRolesList(v *[]types.AssociatedRole, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AssociatedRole + var sv []types.AssociatedRole if *v == nil { - sv = make([]*types.AssociatedRole, 0) + sv = make([]types.AssociatedRole, 0) } else { sv = *v } @@ -39623,11 +39647,13 @@ func awsEc2query_deserializeDocumentAssociatedRolesList(v *[]*types.AssociatedRo } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.AssociatedRole + var col types.AssociatedRole nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAssociatedRole(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentAssociatedRole(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -39640,23 +39666,25 @@ func awsEc2query_deserializeDocumentAssociatedRolesList(v *[]*types.AssociatedRo return nil } -func awsEc2query_deserializeDocumentAssociatedRolesListUnwrapped(v *[]*types.AssociatedRole, decoder smithyxml.NodeDecoder) error { - var sv []*types.AssociatedRole +func awsEc2query_deserializeDocumentAssociatedRolesListUnwrapped(v *[]types.AssociatedRole, decoder smithyxml.NodeDecoder) error { + var sv []types.AssociatedRole if *v == nil { - sv = make([]*types.AssociatedRole, 0) + sv = make([]types.AssociatedRole, 0) } else { sv = *v } switch { default: - var mv *types.AssociatedRole + var mv types.AssociatedRole t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAssociatedRole(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentAssociatedRole(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -39697,7 +39725,7 @@ func awsEc2query_deserializeDocumentAssociatedTargetNetwork(v **types.Associated } if val != nil { xtv := string(val) - sv.NetworkId = &xtv + sv.NetworkId = ptr.String(xtv) } case strings.EqualFold("networkType", t.Name.Local): @@ -39723,13 +39751,13 @@ func awsEc2query_deserializeDocumentAssociatedTargetNetwork(v **types.Associated return nil } -func awsEc2query_deserializeDocumentAssociatedTargetNetworkSet(v *[]*types.AssociatedTargetNetwork, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAssociatedTargetNetworkSet(v *[]types.AssociatedTargetNetwork, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AssociatedTargetNetwork + var sv []types.AssociatedTargetNetwork if *v == nil { - sv = make([]*types.AssociatedTargetNetwork, 0) + sv = make([]types.AssociatedTargetNetwork, 0) } else { sv = *v } @@ -39745,11 +39773,13 @@ func awsEc2query_deserializeDocumentAssociatedTargetNetworkSet(v *[]*types.Assoc } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.AssociatedTargetNetwork + var col types.AssociatedTargetNetwork nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAssociatedTargetNetwork(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentAssociatedTargetNetwork(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -39762,23 +39792,25 @@ func awsEc2query_deserializeDocumentAssociatedTargetNetworkSet(v *[]*types.Assoc return nil } -func awsEc2query_deserializeDocumentAssociatedTargetNetworkSetUnwrapped(v *[]*types.AssociatedTargetNetwork, decoder smithyxml.NodeDecoder) error { - var sv []*types.AssociatedTargetNetwork +func awsEc2query_deserializeDocumentAssociatedTargetNetworkSetUnwrapped(v *[]types.AssociatedTargetNetwork, decoder smithyxml.NodeDecoder) error { + var sv []types.AssociatedTargetNetwork if *v == nil { - sv = make([]*types.AssociatedTargetNetwork, 0) + sv = make([]types.AssociatedTargetNetwork, 0) } else { sv = *v } switch { default: - var mv *types.AssociatedTargetNetwork + var mv types.AssociatedTargetNetwork t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAssociatedTargetNetwork(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentAssociatedTargetNetwork(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -39832,7 +39864,7 @@ func awsEc2query_deserializeDocumentAssociationStatus(v **types.AssociationStatu } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -39880,7 +39912,7 @@ func awsEc2query_deserializeDocumentAttributeBooleanValue(v **types.AttributeBoo if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Value = &xtv + sv.Value = xtv } default: @@ -39928,7 +39960,7 @@ func awsEc2query_deserializeDocumentAttributeValue(v **types.AttributeValue, dec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -39976,7 +40008,7 @@ func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRul if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AccessAll = &xtv + sv.AccessAll = xtv } case strings.EqualFold("clientVpnEndpointId", t.Name.Local): @@ -39992,7 +40024,7 @@ func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRul } if val != nil { xtv := string(val) - sv.ClientVpnEndpointId = &xtv + sv.ClientVpnEndpointId = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -40008,7 +40040,7 @@ func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRul } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("destinationCidr", t.Name.Local): @@ -40024,7 +40056,7 @@ func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRul } if val != nil { xtv := string(val) - sv.DestinationCidr = &xtv + sv.DestinationCidr = ptr.String(xtv) } case strings.EqualFold("groupId", t.Name.Local): @@ -40040,7 +40072,7 @@ func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRul } if val != nil { xtv := string(val) - sv.GroupId = &xtv + sv.GroupId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -40059,13 +40091,13 @@ func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRul return nil } -func awsEc2query_deserializeDocumentAuthorizationRuleSet(v *[]*types.AuthorizationRule, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAuthorizationRuleSet(v *[]types.AuthorizationRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AuthorizationRule + var sv []types.AuthorizationRule if *v == nil { - sv = make([]*types.AuthorizationRule, 0) + sv = make([]types.AuthorizationRule, 0) } else { sv = *v } @@ -40081,11 +40113,13 @@ func awsEc2query_deserializeDocumentAuthorizationRuleSet(v *[]*types.Authorizati } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.AuthorizationRule + var col types.AuthorizationRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAuthorizationRule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentAuthorizationRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -40098,23 +40132,25 @@ func awsEc2query_deserializeDocumentAuthorizationRuleSet(v *[]*types.Authorizati return nil } -func awsEc2query_deserializeDocumentAuthorizationRuleSetUnwrapped(v *[]*types.AuthorizationRule, decoder smithyxml.NodeDecoder) error { - var sv []*types.AuthorizationRule +func awsEc2query_deserializeDocumentAuthorizationRuleSetUnwrapped(v *[]types.AuthorizationRule, decoder smithyxml.NodeDecoder) error { + var sv []types.AuthorizationRule if *v == nil { - sv = make([]*types.AuthorizationRule, 0) + sv = make([]types.AuthorizationRule, 0) } else { sv = *v } switch { default: - var mv *types.AuthorizationRule + var mv types.AuthorizationRule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAuthorizationRule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentAuthorizationRule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -40155,7 +40191,7 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } case strings.EqualFold("messageSet", t.Name.Local): @@ -40177,7 +40213,7 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.NetworkBorderGroup = &xtv + sv.NetworkBorderGroup = ptr.String(xtv) } case strings.EqualFold("optInStatus", t.Name.Local): @@ -40206,7 +40242,7 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.ParentZoneId = &xtv + sv.ParentZoneId = ptr.String(xtv) } case strings.EqualFold("parentZoneName", t.Name.Local): @@ -40222,7 +40258,7 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.ParentZoneName = &xtv + sv.ParentZoneName = ptr.String(xtv) } case strings.EqualFold("regionName", t.Name.Local): @@ -40238,7 +40274,7 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.RegionName = &xtv + sv.RegionName = ptr.String(xtv) } case strings.EqualFold("zoneState", t.Name.Local): @@ -40267,7 +40303,7 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.ZoneId = &xtv + sv.ZoneId = ptr.String(xtv) } case strings.EqualFold("zoneName", t.Name.Local): @@ -40283,7 +40319,7 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.ZoneName = &xtv + sv.ZoneName = ptr.String(xtv) } case strings.EqualFold("zoneType", t.Name.Local): @@ -40299,7 +40335,7 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.ZoneType = &xtv + sv.ZoneType = ptr.String(xtv) } default: @@ -40312,13 +40348,13 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, return nil } -func awsEc2query_deserializeDocumentAvailabilityZoneList(v *[]*types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAvailabilityZoneList(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AvailabilityZone + var sv []types.AvailabilityZone if *v == nil { - sv = make([]*types.AvailabilityZone, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } @@ -40334,11 +40370,13 @@ func awsEc2query_deserializeDocumentAvailabilityZoneList(v *[]*types.Availabilit } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.AvailabilityZone + var col types.AvailabilityZone nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAvailabilityZone(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -40351,23 +40389,25 @@ func awsEc2query_deserializeDocumentAvailabilityZoneList(v *[]*types.Availabilit return nil } -func awsEc2query_deserializeDocumentAvailabilityZoneListUnwrapped(v *[]*types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { - var sv []*types.AvailabilityZone +func awsEc2query_deserializeDocumentAvailabilityZoneListUnwrapped(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { + var sv []types.AvailabilityZone if *v == nil { - sv = make([]*types.AvailabilityZone, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } switch { default: - var mv *types.AvailabilityZone + var mv types.AvailabilityZone t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAvailabilityZone(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -40408,7 +40448,7 @@ func awsEc2query_deserializeDocumentAvailabilityZoneMessage(v **types.Availabili } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -40421,13 +40461,13 @@ func awsEc2query_deserializeDocumentAvailabilityZoneMessage(v **types.Availabili return nil } -func awsEc2query_deserializeDocumentAvailabilityZoneMessageList(v *[]*types.AvailabilityZoneMessage, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAvailabilityZoneMessageList(v *[]types.AvailabilityZoneMessage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AvailabilityZoneMessage + var sv []types.AvailabilityZoneMessage if *v == nil { - sv = make([]*types.AvailabilityZoneMessage, 0) + sv = make([]types.AvailabilityZoneMessage, 0) } else { sv = *v } @@ -40443,11 +40483,13 @@ func awsEc2query_deserializeDocumentAvailabilityZoneMessageList(v *[]*types.Avai } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.AvailabilityZoneMessage + var col types.AvailabilityZoneMessage nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAvailabilityZoneMessage(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentAvailabilityZoneMessage(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -40460,23 +40502,25 @@ func awsEc2query_deserializeDocumentAvailabilityZoneMessageList(v *[]*types.Avai return nil } -func awsEc2query_deserializeDocumentAvailabilityZoneMessageListUnwrapped(v *[]*types.AvailabilityZoneMessage, decoder smithyxml.NodeDecoder) error { - var sv []*types.AvailabilityZoneMessage +func awsEc2query_deserializeDocumentAvailabilityZoneMessageListUnwrapped(v *[]types.AvailabilityZoneMessage, decoder smithyxml.NodeDecoder) error { + var sv []types.AvailabilityZoneMessage if *v == nil { - sv = make([]*types.AvailabilityZoneMessage, 0) + sv = make([]types.AvailabilityZoneMessage, 0) } else { sv = *v } switch { default: - var mv *types.AvailabilityZoneMessage + var mv types.AvailabilityZoneMessage t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAvailabilityZoneMessage(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentAvailabilityZoneMessage(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -40524,7 +40568,7 @@ func awsEc2query_deserializeDocumentAvailableCapacity(v **types.AvailableCapacit if err != nil { return err } - sv.AvailableVCpus = ptr.Int32(int32(i64)) + sv.AvailableVCpus = int32(i64) } default: @@ -40537,13 +40581,13 @@ func awsEc2query_deserializeDocumentAvailableCapacity(v **types.AvailableCapacit return nil } -func awsEc2query_deserializeDocumentAvailableInstanceCapacityList(v *[]*types.InstanceCapacity, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAvailableInstanceCapacityList(v *[]types.InstanceCapacity, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceCapacity + var sv []types.InstanceCapacity if *v == nil { - sv = make([]*types.InstanceCapacity, 0) + sv = make([]types.InstanceCapacity, 0) } else { sv = *v } @@ -40559,11 +40603,13 @@ func awsEc2query_deserializeDocumentAvailableInstanceCapacityList(v *[]*types.In } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceCapacity + var col types.InstanceCapacity nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceCapacity(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceCapacity(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -40576,23 +40622,25 @@ func awsEc2query_deserializeDocumentAvailableInstanceCapacityList(v *[]*types.In return nil } -func awsEc2query_deserializeDocumentAvailableInstanceCapacityListUnwrapped(v *[]*types.InstanceCapacity, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceCapacity +func awsEc2query_deserializeDocumentAvailableInstanceCapacityListUnwrapped(v *[]types.InstanceCapacity, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceCapacity if *v == nil { - sv = make([]*types.InstanceCapacity, 0) + sv = make([]types.InstanceCapacity, 0) } else { sv = *v } switch { default: - var mv *types.InstanceCapacity + var mv types.InstanceCapacity t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceCapacity(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceCapacity(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -40633,7 +40681,7 @@ func awsEc2query_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapp } if val != nil { xtv := string(val) - sv.DeviceName = &xtv + sv.DeviceName = ptr.String(xtv) } case strings.EqualFold("ebs", t.Name.Local): @@ -40655,7 +40703,7 @@ func awsEc2query_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapp } if val != nil { xtv := string(val) - sv.NoDevice = &xtv + sv.NoDevice = ptr.String(xtv) } case strings.EqualFold("virtualName", t.Name.Local): @@ -40671,7 +40719,7 @@ func awsEc2query_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapp } if val != nil { xtv := string(val) - sv.VirtualName = &xtv + sv.VirtualName = ptr.String(xtv) } default: @@ -40684,13 +40732,13 @@ func awsEc2query_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapp return nil } -func awsEc2query_deserializeDocumentBlockDeviceMappingList(v *[]*types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentBlockDeviceMappingList(v *[]types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.BlockDeviceMapping + var sv []types.BlockDeviceMapping if *v == nil { - sv = make([]*types.BlockDeviceMapping, 0) + sv = make([]types.BlockDeviceMapping, 0) } else { sv = *v } @@ -40706,11 +40754,13 @@ func awsEc2query_deserializeDocumentBlockDeviceMappingList(v *[]*types.BlockDevi } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.BlockDeviceMapping + var col types.BlockDeviceMapping nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentBlockDeviceMapping(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -40723,23 +40773,25 @@ func awsEc2query_deserializeDocumentBlockDeviceMappingList(v *[]*types.BlockDevi return nil } -func awsEc2query_deserializeDocumentBlockDeviceMappingListUnwrapped(v *[]*types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { - var sv []*types.BlockDeviceMapping +func awsEc2query_deserializeDocumentBlockDeviceMappingListUnwrapped(v *[]types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { + var sv []types.BlockDeviceMapping if *v == nil { - sv = make([]*types.BlockDeviceMapping, 0) + sv = make([]types.BlockDeviceMapping, 0) } else { sv = *v } switch { default: - var mv *types.BlockDeviceMapping + var mv types.BlockDeviceMapping t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentBlockDeviceMapping(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -40780,7 +40832,7 @@ func awsEc2query_deserializeDocumentBundleTask(v **types.BundleTask, decoder smi } if val != nil { xtv := string(val) - sv.BundleId = &xtv + sv.BundleId = ptr.String(xtv) } case strings.EqualFold("error", t.Name.Local): @@ -40802,7 +40854,7 @@ func awsEc2query_deserializeDocumentBundleTask(v **types.BundleTask, decoder smi } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("progress", t.Name.Local): @@ -40818,7 +40870,7 @@ func awsEc2query_deserializeDocumentBundleTask(v **types.BundleTask, decoder smi } if val != nil { xtv := string(val) - sv.Progress = &xtv + sv.Progress = ptr.String(xtv) } case strings.EqualFold("startTime", t.Name.Local): @@ -40835,7 +40887,7 @@ func awsEc2query_deserializeDocumentBundleTask(v **types.BundleTask, decoder smi if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("state", t.Name.Local): @@ -40871,7 +40923,7 @@ func awsEc2query_deserializeDocumentBundleTask(v **types.BundleTask, decoder smi if err != nil { return err } - sv.UpdateTime = &t + sv.UpdateTime = ptr.Time(t) } default: @@ -40919,7 +40971,7 @@ func awsEc2query_deserializeDocumentBundleTaskError(v **types.BundleTaskError, d } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -40935,7 +40987,7 @@ func awsEc2query_deserializeDocumentBundleTaskError(v **types.BundleTaskError, d } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -40948,13 +41000,13 @@ func awsEc2query_deserializeDocumentBundleTaskError(v **types.BundleTaskError, d return nil } -func awsEc2query_deserializeDocumentBundleTaskList(v *[]*types.BundleTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentBundleTaskList(v *[]types.BundleTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.BundleTask + var sv []types.BundleTask if *v == nil { - sv = make([]*types.BundleTask, 0) + sv = make([]types.BundleTask, 0) } else { sv = *v } @@ -40970,11 +41022,13 @@ func awsEc2query_deserializeDocumentBundleTaskList(v *[]*types.BundleTask, decod } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.BundleTask + var col types.BundleTask nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentBundleTask(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentBundleTask(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -40987,23 +41041,25 @@ func awsEc2query_deserializeDocumentBundleTaskList(v *[]*types.BundleTask, decod return nil } -func awsEc2query_deserializeDocumentBundleTaskListUnwrapped(v *[]*types.BundleTask, decoder smithyxml.NodeDecoder) error { - var sv []*types.BundleTask +func awsEc2query_deserializeDocumentBundleTaskListUnwrapped(v *[]types.BundleTask, decoder smithyxml.NodeDecoder) error { + var sv []types.BundleTask if *v == nil { - sv = make([]*types.BundleTask, 0) + sv = make([]types.BundleTask, 0) } else { sv = *v } switch { default: - var mv *types.BundleTask + var mv types.BundleTask t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentBundleTask(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentBundleTask(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -41044,7 +41100,7 @@ func awsEc2query_deserializeDocumentByoipCidr(v **types.ByoipCidr, decoder smith } if val != nil { xtv := string(val) - sv.Cidr = &xtv + sv.Cidr = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -41060,7 +41116,7 @@ func awsEc2query_deserializeDocumentByoipCidr(v **types.ByoipCidr, decoder smith } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -41089,7 +41145,7 @@ func awsEc2query_deserializeDocumentByoipCidr(v **types.ByoipCidr, decoder smith } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } default: @@ -41102,13 +41158,13 @@ func awsEc2query_deserializeDocumentByoipCidr(v **types.ByoipCidr, decoder smith return nil } -func awsEc2query_deserializeDocumentByoipCidrSet(v *[]*types.ByoipCidr, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentByoipCidrSet(v *[]types.ByoipCidr, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ByoipCidr + var sv []types.ByoipCidr if *v == nil { - sv = make([]*types.ByoipCidr, 0) + sv = make([]types.ByoipCidr, 0) } else { sv = *v } @@ -41124,11 +41180,13 @@ func awsEc2query_deserializeDocumentByoipCidrSet(v *[]*types.ByoipCidr, decoder } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ByoipCidr + var col types.ByoipCidr nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentByoipCidr(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentByoipCidr(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -41141,23 +41199,25 @@ func awsEc2query_deserializeDocumentByoipCidrSet(v *[]*types.ByoipCidr, decoder return nil } -func awsEc2query_deserializeDocumentByoipCidrSetUnwrapped(v *[]*types.ByoipCidr, decoder smithyxml.NodeDecoder) error { - var sv []*types.ByoipCidr +func awsEc2query_deserializeDocumentByoipCidrSetUnwrapped(v *[]types.ByoipCidr, decoder smithyxml.NodeDecoder) error { + var sv []types.ByoipCidr if *v == nil { - sv = make([]*types.ByoipCidr, 0) + sv = make([]types.ByoipCidr, 0) } else { sv = *v } switch { default: - var mv *types.ByoipCidr + var mv types.ByoipCidr t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentByoipCidr(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentByoipCidr(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -41198,7 +41258,7 @@ func awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(v **types.Cance } if val != nil { xtv := string(val) - sv.SpotInstanceRequestId = &xtv + sv.SpotInstanceRequestId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -41224,13 +41284,13 @@ func awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(v **types.Cance return nil } -func awsEc2query_deserializeDocumentCancelledSpotInstanceRequestList(v *[]*types.CancelledSpotInstanceRequest, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCancelledSpotInstanceRequestList(v *[]types.CancelledSpotInstanceRequest, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CancelledSpotInstanceRequest + var sv []types.CancelledSpotInstanceRequest if *v == nil { - sv = make([]*types.CancelledSpotInstanceRequest, 0) + sv = make([]types.CancelledSpotInstanceRequest, 0) } else { sv = *v } @@ -41246,11 +41306,13 @@ func awsEc2query_deserializeDocumentCancelledSpotInstanceRequestList(v *[]*types } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.CancelledSpotInstanceRequest + var col types.CancelledSpotInstanceRequest nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -41263,23 +41325,25 @@ func awsEc2query_deserializeDocumentCancelledSpotInstanceRequestList(v *[]*types return nil } -func awsEc2query_deserializeDocumentCancelledSpotInstanceRequestListUnwrapped(v *[]*types.CancelledSpotInstanceRequest, decoder smithyxml.NodeDecoder) error { - var sv []*types.CancelledSpotInstanceRequest +func awsEc2query_deserializeDocumentCancelledSpotInstanceRequestListUnwrapped(v *[]types.CancelledSpotInstanceRequest, decoder smithyxml.NodeDecoder) error { + var sv []types.CancelledSpotInstanceRequest if *v == nil { - sv = make([]*types.CancelledSpotInstanceRequest, 0) + sv = make([]types.CancelledSpotInstanceRequest, 0) } else { sv = *v } switch { default: - var mv *types.CancelledSpotInstanceRequest + var mv types.CancelledSpotInstanceRequest t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -41333,7 +41397,7 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsError(v **types.Cance } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -41387,7 +41451,7 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(v **types.C } if val != nil { xtv := string(val) - sv.SpotFleetRequestId = &xtv + sv.SpotFleetRequestId = ptr.String(xtv) } default: @@ -41400,13 +41464,13 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(v **types.C return nil } -func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSet(v *[]*types.CancelSpotFleetRequestsErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSet(v *[]types.CancelSpotFleetRequestsErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CancelSpotFleetRequestsErrorItem + var sv []types.CancelSpotFleetRequestsErrorItem if *v == nil { - sv = make([]*types.CancelSpotFleetRequestsErrorItem, 0) + sv = make([]types.CancelSpotFleetRequestsErrorItem, 0) } else { sv = *v } @@ -41422,11 +41486,13 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSet(v *[]*types. } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.CancelSpotFleetRequestsErrorItem + var col types.CancelSpotFleetRequestsErrorItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -41439,23 +41505,25 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSet(v *[]*types. return nil } -func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSetUnwrapped(v *[]*types.CancelSpotFleetRequestsErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.CancelSpotFleetRequestsErrorItem +func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSetUnwrapped(v *[]types.CancelSpotFleetRequestsErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.CancelSpotFleetRequestsErrorItem if *v == nil { - sv = make([]*types.CancelSpotFleetRequestsErrorItem, 0) + sv = make([]types.CancelSpotFleetRequestsErrorItem, 0) } else { sv = *v } switch { default: - var mv *types.CancelSpotFleetRequestsErrorItem + var mv types.CancelSpotFleetRequestsErrorItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -41522,7 +41590,7 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(v **types } if val != nil { xtv := string(val) - sv.SpotFleetRequestId = &xtv + sv.SpotFleetRequestId = ptr.String(xtv) } default: @@ -41535,13 +41603,13 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(v **types return nil } -func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSet(v *[]*types.CancelSpotFleetRequestsSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSet(v *[]types.CancelSpotFleetRequestsSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CancelSpotFleetRequestsSuccessItem + var sv []types.CancelSpotFleetRequestsSuccessItem if *v == nil { - sv = make([]*types.CancelSpotFleetRequestsSuccessItem, 0) + sv = make([]types.CancelSpotFleetRequestsSuccessItem, 0) } else { sv = *v } @@ -41557,11 +41625,13 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSet(v *[]*type } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.CancelSpotFleetRequestsSuccessItem + var col types.CancelSpotFleetRequestsSuccessItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -41574,23 +41644,25 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSet(v *[]*type return nil } -func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSetUnwrapped(v *[]*types.CancelSpotFleetRequestsSuccessItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.CancelSpotFleetRequestsSuccessItem +func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSetUnwrapped(v *[]types.CancelSpotFleetRequestsSuccessItem, decoder smithyxml.NodeDecoder) error { + var sv []types.CancelSpotFleetRequestsSuccessItem if *v == nil { - sv = make([]*types.CancelSpotFleetRequestsSuccessItem, 0) + sv = make([]types.CancelSpotFleetRequestsSuccessItem, 0) } else { sv = *v } switch { default: - var mv *types.CancelSpotFleetRequestsSuccessItem + var mv types.CancelSpotFleetRequestsSuccessItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -41631,7 +41703,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("availabilityZoneId", t.Name.Local): @@ -41647,7 +41719,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv } if val != nil { xtv := string(val) - sv.AvailabilityZoneId = &xtv + sv.AvailabilityZoneId = ptr.String(xtv) } case strings.EqualFold("availableInstanceCount", t.Name.Local): @@ -41664,7 +41736,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv if err != nil { return err } - sv.AvailableInstanceCount = ptr.Int32(int32(i64)) + sv.AvailableInstanceCount = int32(i64) } case strings.EqualFold("capacityReservationArn", t.Name.Local): @@ -41680,7 +41752,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv } if val != nil { xtv := string(val) - sv.CapacityReservationArn = &xtv + sv.CapacityReservationArn = ptr.String(xtv) } case strings.EqualFold("capacityReservationId", t.Name.Local): @@ -41696,7 +41768,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv } if val != nil { xtv := string(val) - sv.CapacityReservationId = &xtv + sv.CapacityReservationId = ptr.String(xtv) } case strings.EqualFold("createDate", t.Name.Local): @@ -41713,7 +41785,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("ebsOptimized", t.Name.Local): @@ -41729,7 +41801,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsOptimized = &xtv + sv.EbsOptimized = xtv } case strings.EqualFold("endDate", t.Name.Local): @@ -41746,7 +41818,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv if err != nil { return err } - sv.EndDate = &t + sv.EndDate = ptr.Time(t) } case strings.EqualFold("endDateType", t.Name.Local): @@ -41775,7 +41847,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EphemeralStorage = &xtv + sv.EphemeralStorage = xtv } case strings.EqualFold("instanceMatchCriteria", t.Name.Local): @@ -41817,7 +41889,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv } if val != nil { xtv := string(val) - sv.InstanceType = &xtv + sv.InstanceType = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -41833,7 +41905,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -41882,7 +41954,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv if err != nil { return err } - sv.TotalInstanceCount = ptr.Int32(int32(i64)) + sv.TotalInstanceCount = int32(i64) } default: @@ -41930,7 +42002,7 @@ func awsEc2query_deserializeDocumentCapacityReservationGroup(v **types.CapacityR } if val != nil { xtv := string(val) - sv.GroupArn = &xtv + sv.GroupArn = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -41946,7 +42018,7 @@ func awsEc2query_deserializeDocumentCapacityReservationGroup(v **types.CapacityR } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } default: @@ -41959,13 +42031,13 @@ func awsEc2query_deserializeDocumentCapacityReservationGroup(v **types.CapacityR return nil } -func awsEc2query_deserializeDocumentCapacityReservationGroupSet(v *[]*types.CapacityReservationGroup, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityReservationGroupSet(v *[]types.CapacityReservationGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CapacityReservationGroup + var sv []types.CapacityReservationGroup if *v == nil { - sv = make([]*types.CapacityReservationGroup, 0) + sv = make([]types.CapacityReservationGroup, 0) } else { sv = *v } @@ -41981,11 +42053,13 @@ func awsEc2query_deserializeDocumentCapacityReservationGroupSet(v *[]*types.Capa } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.CapacityReservationGroup + var col types.CapacityReservationGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCapacityReservationGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCapacityReservationGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -41998,23 +42072,25 @@ func awsEc2query_deserializeDocumentCapacityReservationGroupSet(v *[]*types.Capa return nil } -func awsEc2query_deserializeDocumentCapacityReservationGroupSetUnwrapped(v *[]*types.CapacityReservationGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.CapacityReservationGroup +func awsEc2query_deserializeDocumentCapacityReservationGroupSetUnwrapped(v *[]types.CapacityReservationGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.CapacityReservationGroup if *v == nil { - sv = make([]*types.CapacityReservationGroup, 0) + sv = make([]types.CapacityReservationGroup, 0) } else { sv = *v } switch { default: - var mv *types.CapacityReservationGroup + var mv types.CapacityReservationGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCapacityReservationGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentCapacityReservationGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -42065,13 +42141,13 @@ func awsEc2query_deserializeDocumentCapacityReservationOptions(v **types.Capacit return nil } -func awsEc2query_deserializeDocumentCapacityReservationSet(v *[]*types.CapacityReservation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityReservationSet(v *[]types.CapacityReservation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CapacityReservation + var sv []types.CapacityReservation if *v == nil { - sv = make([]*types.CapacityReservation, 0) + sv = make([]types.CapacityReservation, 0) } else { sv = *v } @@ -42087,11 +42163,13 @@ func awsEc2query_deserializeDocumentCapacityReservationSet(v *[]*types.CapacityR } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.CapacityReservation + var col types.CapacityReservation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCapacityReservation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCapacityReservation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -42104,23 +42182,25 @@ func awsEc2query_deserializeDocumentCapacityReservationSet(v *[]*types.CapacityR return nil } -func awsEc2query_deserializeDocumentCapacityReservationSetUnwrapped(v *[]*types.CapacityReservation, decoder smithyxml.NodeDecoder) error { - var sv []*types.CapacityReservation +func awsEc2query_deserializeDocumentCapacityReservationSetUnwrapped(v *[]types.CapacityReservation, decoder smithyxml.NodeDecoder) error { + var sv []types.CapacityReservation if *v == nil { - sv = make([]*types.CapacityReservation, 0) + sv = make([]types.CapacityReservation, 0) } else { sv = *v } switch { default: - var mv *types.CapacityReservation + var mv types.CapacityReservation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCapacityReservation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentCapacityReservation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -42212,7 +42292,7 @@ func awsEc2query_deserializeDocumentCapacityReservationTargetResponse(v **types. } if val != nil { xtv := string(val) - sv.CapacityReservationId = &xtv + sv.CapacityReservationId = ptr.String(xtv) } case strings.EqualFold("capacityReservationResourceGroupArn", t.Name.Local): @@ -42228,7 +42308,7 @@ func awsEc2query_deserializeDocumentCapacityReservationTargetResponse(v **types. } if val != nil { xtv := string(val) - sv.CapacityReservationResourceGroupArn = &xtv + sv.CapacityReservationResourceGroupArn = ptr.String(xtv) } default: @@ -42276,7 +42356,7 @@ func awsEc2query_deserializeDocumentCarrierGateway(v **types.CarrierGateway, dec } if val != nil { xtv := string(val) - sv.CarrierGatewayId = &xtv + sv.CarrierGatewayId = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -42292,7 +42372,7 @@ func awsEc2query_deserializeDocumentCarrierGateway(v **types.CarrierGateway, dec } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -42327,7 +42407,7 @@ func awsEc2query_deserializeDocumentCarrierGateway(v **types.CarrierGateway, dec } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -42340,13 +42420,13 @@ func awsEc2query_deserializeDocumentCarrierGateway(v **types.CarrierGateway, dec return nil } -func awsEc2query_deserializeDocumentCarrierGatewaySet(v *[]*types.CarrierGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCarrierGatewaySet(v *[]types.CarrierGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CarrierGateway + var sv []types.CarrierGateway if *v == nil { - sv = make([]*types.CarrierGateway, 0) + sv = make([]types.CarrierGateway, 0) } else { sv = *v } @@ -42362,11 +42442,13 @@ func awsEc2query_deserializeDocumentCarrierGatewaySet(v *[]*types.CarrierGateway } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.CarrierGateway + var col types.CarrierGateway nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCarrierGateway(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCarrierGateway(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -42379,23 +42461,25 @@ func awsEc2query_deserializeDocumentCarrierGatewaySet(v *[]*types.CarrierGateway return nil } -func awsEc2query_deserializeDocumentCarrierGatewaySetUnwrapped(v *[]*types.CarrierGateway, decoder smithyxml.NodeDecoder) error { - var sv []*types.CarrierGateway +func awsEc2query_deserializeDocumentCarrierGatewaySetUnwrapped(v *[]types.CarrierGateway, decoder smithyxml.NodeDecoder) error { + var sv []types.CarrierGateway if *v == nil { - sv = make([]*types.CarrierGateway, 0) + sv = make([]types.CarrierGateway, 0) } else { sv = *v } switch { default: - var mv *types.CarrierGateway + var mv types.CarrierGateway t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCarrierGateway(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentCarrierGateway(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -42436,7 +42520,7 @@ func awsEc2query_deserializeDocumentCertificateAuthentication(v **types.Certific } if val != nil { xtv := string(val) - sv.ClientRootCertificateChain = &xtv + sv.ClientRootCertificateChain = ptr.String(xtv) } default: @@ -42484,7 +42568,7 @@ func awsEc2query_deserializeDocumentCidrBlock(v **types.CidrBlock, decoder smith } if val != nil { xtv := string(val) - sv.CidrBlock = &xtv + sv.CidrBlock = ptr.String(xtv) } default: @@ -42497,13 +42581,13 @@ func awsEc2query_deserializeDocumentCidrBlock(v **types.CidrBlock, decoder smith return nil } -func awsEc2query_deserializeDocumentCidrBlockSet(v *[]*types.CidrBlock, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCidrBlockSet(v *[]types.CidrBlock, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CidrBlock + var sv []types.CidrBlock if *v == nil { - sv = make([]*types.CidrBlock, 0) + sv = make([]types.CidrBlock, 0) } else { sv = *v } @@ -42519,11 +42603,13 @@ func awsEc2query_deserializeDocumentCidrBlockSet(v *[]*types.CidrBlock, decoder } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.CidrBlock + var col types.CidrBlock nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCidrBlock(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCidrBlock(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -42536,23 +42622,25 @@ func awsEc2query_deserializeDocumentCidrBlockSet(v *[]*types.CidrBlock, decoder return nil } -func awsEc2query_deserializeDocumentCidrBlockSetUnwrapped(v *[]*types.CidrBlock, decoder smithyxml.NodeDecoder) error { - var sv []*types.CidrBlock +func awsEc2query_deserializeDocumentCidrBlockSetUnwrapped(v *[]types.CidrBlock, decoder smithyxml.NodeDecoder) error { + var sv []types.CidrBlock if *v == nil { - sv = make([]*types.CidrBlock, 0) + sv = make([]types.CidrBlock, 0) } else { sv = *v } switch { default: - var mv *types.CidrBlock + var mv types.CidrBlock t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCidrBlock(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentCidrBlock(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -42593,7 +42681,7 @@ func awsEc2query_deserializeDocumentClassicLinkDnsSupport(v **types.ClassicLinkD if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ClassicLinkDnsSupported = &xtv + sv.ClassicLinkDnsSupported = xtv } case strings.EqualFold("vpcId", t.Name.Local): @@ -42609,7 +42697,7 @@ func awsEc2query_deserializeDocumentClassicLinkDnsSupport(v **types.ClassicLinkD } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -42622,13 +42710,13 @@ func awsEc2query_deserializeDocumentClassicLinkDnsSupport(v **types.ClassicLinkD return nil } -func awsEc2query_deserializeDocumentClassicLinkDnsSupportList(v *[]*types.ClassicLinkDnsSupport, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClassicLinkDnsSupportList(v *[]types.ClassicLinkDnsSupport, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClassicLinkDnsSupport + var sv []types.ClassicLinkDnsSupport if *v == nil { - sv = make([]*types.ClassicLinkDnsSupport, 0) + sv = make([]types.ClassicLinkDnsSupport, 0) } else { sv = *v } @@ -42644,11 +42732,13 @@ func awsEc2query_deserializeDocumentClassicLinkDnsSupportList(v *[]*types.Classi } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ClassicLinkDnsSupport + var col types.ClassicLinkDnsSupport nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClassicLinkDnsSupport(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentClassicLinkDnsSupport(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -42661,23 +42751,25 @@ func awsEc2query_deserializeDocumentClassicLinkDnsSupportList(v *[]*types.Classi return nil } -func awsEc2query_deserializeDocumentClassicLinkDnsSupportListUnwrapped(v *[]*types.ClassicLinkDnsSupport, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClassicLinkDnsSupport +func awsEc2query_deserializeDocumentClassicLinkDnsSupportListUnwrapped(v *[]types.ClassicLinkDnsSupport, decoder smithyxml.NodeDecoder) error { + var sv []types.ClassicLinkDnsSupport if *v == nil { - sv = make([]*types.ClassicLinkDnsSupport, 0) + sv = make([]types.ClassicLinkDnsSupport, 0) } else { sv = *v } switch { default: - var mv *types.ClassicLinkDnsSupport + var mv types.ClassicLinkDnsSupport t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClassicLinkDnsSupport(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentClassicLinkDnsSupport(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -42724,7 +42816,7 @@ func awsEc2query_deserializeDocumentClassicLinkInstance(v **types.ClassicLinkIns } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -42746,7 +42838,7 @@ func awsEc2query_deserializeDocumentClassicLinkInstance(v **types.ClassicLinkIns } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -42759,13 +42851,13 @@ func awsEc2query_deserializeDocumentClassicLinkInstance(v **types.ClassicLinkIns return nil } -func awsEc2query_deserializeDocumentClassicLinkInstanceList(v *[]*types.ClassicLinkInstance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClassicLinkInstanceList(v *[]types.ClassicLinkInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClassicLinkInstance + var sv []types.ClassicLinkInstance if *v == nil { - sv = make([]*types.ClassicLinkInstance, 0) + sv = make([]types.ClassicLinkInstance, 0) } else { sv = *v } @@ -42781,11 +42873,13 @@ func awsEc2query_deserializeDocumentClassicLinkInstanceList(v *[]*types.ClassicL } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ClassicLinkInstance + var col types.ClassicLinkInstance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClassicLinkInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentClassicLinkInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -42798,23 +42892,25 @@ func awsEc2query_deserializeDocumentClassicLinkInstanceList(v *[]*types.ClassicL return nil } -func awsEc2query_deserializeDocumentClassicLinkInstanceListUnwrapped(v *[]*types.ClassicLinkInstance, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClassicLinkInstance +func awsEc2query_deserializeDocumentClassicLinkInstanceListUnwrapped(v *[]types.ClassicLinkInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.ClassicLinkInstance if *v == nil { - sv = make([]*types.ClassicLinkInstance, 0) + sv = make([]types.ClassicLinkInstance, 0) } else { sv = *v } switch { default: - var mv *types.ClassicLinkInstance + var mv types.ClassicLinkInstance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClassicLinkInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentClassicLinkInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -42855,7 +42951,7 @@ func awsEc2query_deserializeDocumentClassicLoadBalancer(v **types.ClassicLoadBal } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -42868,13 +42964,13 @@ func awsEc2query_deserializeDocumentClassicLoadBalancer(v **types.ClassicLoadBal return nil } -func awsEc2query_deserializeDocumentClassicLoadBalancers(v *[]*types.ClassicLoadBalancer, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClassicLoadBalancers(v *[]types.ClassicLoadBalancer, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClassicLoadBalancer + var sv []types.ClassicLoadBalancer if *v == nil { - sv = make([]*types.ClassicLoadBalancer, 0) + sv = make([]types.ClassicLoadBalancer, 0) } else { sv = *v } @@ -42890,11 +42986,13 @@ func awsEc2query_deserializeDocumentClassicLoadBalancers(v *[]*types.ClassicLoad } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ClassicLoadBalancer + var col types.ClassicLoadBalancer nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClassicLoadBalancer(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentClassicLoadBalancer(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -42907,23 +43005,25 @@ func awsEc2query_deserializeDocumentClassicLoadBalancers(v *[]*types.ClassicLoad return nil } -func awsEc2query_deserializeDocumentClassicLoadBalancersUnwrapped(v *[]*types.ClassicLoadBalancer, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClassicLoadBalancer +func awsEc2query_deserializeDocumentClassicLoadBalancersUnwrapped(v *[]types.ClassicLoadBalancer, decoder smithyxml.NodeDecoder) error { + var sv []types.ClassicLoadBalancer if *v == nil { - sv = make([]*types.ClassicLoadBalancer, 0) + sv = make([]types.ClassicLoadBalancer, 0) } else { sv = *v } switch { default: - var mv *types.ClassicLoadBalancer + var mv types.ClassicLoadBalancer t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClassicLoadBalancer(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentClassicLoadBalancer(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -43015,7 +43115,7 @@ func awsEc2query_deserializeDocumentClientCertificateRevocationListStatus(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -43091,13 +43191,13 @@ func awsEc2query_deserializeDocumentClientVpnAuthentication(v **types.ClientVpnA return nil } -func awsEc2query_deserializeDocumentClientVpnAuthenticationList(v *[]*types.ClientVpnAuthentication, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnAuthenticationList(v *[]types.ClientVpnAuthentication, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClientVpnAuthentication + var sv []types.ClientVpnAuthentication if *v == nil { - sv = make([]*types.ClientVpnAuthentication, 0) + sv = make([]types.ClientVpnAuthentication, 0) } else { sv = *v } @@ -43113,11 +43213,13 @@ func awsEc2query_deserializeDocumentClientVpnAuthenticationList(v *[]*types.Clie } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ClientVpnAuthentication + var col types.ClientVpnAuthentication nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnAuthentication(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentClientVpnAuthentication(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -43130,23 +43232,25 @@ func awsEc2query_deserializeDocumentClientVpnAuthenticationList(v *[]*types.Clie return nil } -func awsEc2query_deserializeDocumentClientVpnAuthenticationListUnwrapped(v *[]*types.ClientVpnAuthentication, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClientVpnAuthentication +func awsEc2query_deserializeDocumentClientVpnAuthenticationListUnwrapped(v *[]types.ClientVpnAuthentication, decoder smithyxml.NodeDecoder) error { + var sv []types.ClientVpnAuthentication if *v == nil { - sv = make([]*types.ClientVpnAuthentication, 0) + sv = make([]types.ClientVpnAuthentication, 0) } else { sv = *v } switch { default: - var mv *types.ClientVpnAuthentication + var mv types.ClientVpnAuthentication t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnAuthentication(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentClientVpnAuthentication(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -43200,7 +43304,7 @@ func awsEc2query_deserializeDocumentClientVpnAuthorizationRuleStatus(v **types.C } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -43248,7 +43352,7 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } if val != nil { xtv := string(val) - sv.ClientIp = &xtv + sv.ClientIp = ptr.String(xtv) } case strings.EqualFold("clientVpnEndpointId", t.Name.Local): @@ -43264,7 +43368,7 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } if val != nil { xtv := string(val) - sv.ClientVpnEndpointId = &xtv + sv.ClientVpnEndpointId = ptr.String(xtv) } case strings.EqualFold("commonName", t.Name.Local): @@ -43280,7 +43384,7 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } if val != nil { xtv := string(val) - sv.CommonName = &xtv + sv.CommonName = ptr.String(xtv) } case strings.EqualFold("connectionEndTime", t.Name.Local): @@ -43296,7 +43400,7 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } if val != nil { xtv := string(val) - sv.ConnectionEndTime = &xtv + sv.ConnectionEndTime = ptr.String(xtv) } case strings.EqualFold("connectionEstablishedTime", t.Name.Local): @@ -43312,7 +43416,7 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } if val != nil { xtv := string(val) - sv.ConnectionEstablishedTime = &xtv + sv.ConnectionEstablishedTime = ptr.String(xtv) } case strings.EqualFold("connectionId", t.Name.Local): @@ -43328,7 +43432,7 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } if val != nil { xtv := string(val) - sv.ConnectionId = &xtv + sv.ConnectionId = ptr.String(xtv) } case strings.EqualFold("egressBytes", t.Name.Local): @@ -43344,7 +43448,7 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } if val != nil { xtv := string(val) - sv.EgressBytes = &xtv + sv.EgressBytes = ptr.String(xtv) } case strings.EqualFold("egressPackets", t.Name.Local): @@ -43360,7 +43464,7 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } if val != nil { xtv := string(val) - sv.EgressPackets = &xtv + sv.EgressPackets = ptr.String(xtv) } case strings.EqualFold("ingressBytes", t.Name.Local): @@ -43376,7 +43480,7 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } if val != nil { xtv := string(val) - sv.IngressBytes = &xtv + sv.IngressBytes = ptr.String(xtv) } case strings.EqualFold("ingressPackets", t.Name.Local): @@ -43392,7 +43496,7 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } if val != nil { xtv := string(val) - sv.IngressPackets = &xtv + sv.IngressPackets = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -43414,7 +43518,7 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } if val != nil { xtv := string(val) - sv.Timestamp = &xtv + sv.Timestamp = ptr.String(xtv) } case strings.EqualFold("username", t.Name.Local): @@ -43430,7 +43534,7 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } if val != nil { xtv := string(val) - sv.Username = &xtv + sv.Username = ptr.String(xtv) } default: @@ -43443,13 +43547,13 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne return nil } -func awsEc2query_deserializeDocumentClientVpnConnectionSet(v *[]*types.ClientVpnConnection, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnConnectionSet(v *[]types.ClientVpnConnection, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClientVpnConnection + var sv []types.ClientVpnConnection if *v == nil { - sv = make([]*types.ClientVpnConnection, 0) + sv = make([]types.ClientVpnConnection, 0) } else { sv = *v } @@ -43465,11 +43569,13 @@ func awsEc2query_deserializeDocumentClientVpnConnectionSet(v *[]*types.ClientVpn } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ClientVpnConnection + var col types.ClientVpnConnection nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnConnection(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentClientVpnConnection(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -43482,23 +43588,25 @@ func awsEc2query_deserializeDocumentClientVpnConnectionSet(v *[]*types.ClientVpn return nil } -func awsEc2query_deserializeDocumentClientVpnConnectionSetUnwrapped(v *[]*types.ClientVpnConnection, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClientVpnConnection +func awsEc2query_deserializeDocumentClientVpnConnectionSetUnwrapped(v *[]types.ClientVpnConnection, decoder smithyxml.NodeDecoder) error { + var sv []types.ClientVpnConnection if *v == nil { - sv = make([]*types.ClientVpnConnection, 0) + sv = make([]types.ClientVpnConnection, 0) } else { sv = *v } switch { default: - var mv *types.ClientVpnConnection + var mv types.ClientVpnConnection t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnConnection(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentClientVpnConnection(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -43552,7 +43660,7 @@ func awsEc2query_deserializeDocumentClientVpnConnectionStatus(v **types.ClientVp } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -43612,7 +43720,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } if val != nil { xtv := string(val) - sv.ClientCidrBlock = &xtv + sv.ClientCidrBlock = ptr.String(xtv) } case strings.EqualFold("clientVpnEndpointId", t.Name.Local): @@ -43628,7 +43736,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } if val != nil { xtv := string(val) - sv.ClientVpnEndpointId = &xtv + sv.ClientVpnEndpointId = ptr.String(xtv) } case strings.EqualFold("connectionLogOptions", t.Name.Local): @@ -43650,7 +43758,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } if val != nil { xtv := string(val) - sv.CreationTime = &xtv + sv.CreationTime = ptr.String(xtv) } case strings.EqualFold("deletionTime", t.Name.Local): @@ -43666,7 +43774,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } if val != nil { xtv := string(val) - sv.DeletionTime = &xtv + sv.DeletionTime = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -43682,7 +43790,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("dnsName", t.Name.Local): @@ -43698,7 +43806,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } if val != nil { xtv := string(val) - sv.DnsName = &xtv + sv.DnsName = ptr.String(xtv) } case strings.EqualFold("dnsServer", t.Name.Local): @@ -43726,7 +43834,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } if val != nil { xtv := string(val) - sv.SelfServicePortalUrl = &xtv + sv.SelfServicePortalUrl = ptr.String(xtv) } case strings.EqualFold("serverCertificateArn", t.Name.Local): @@ -43742,7 +43850,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } if val != nil { xtv := string(val) - sv.ServerCertificateArn = &xtv + sv.ServerCertificateArn = ptr.String(xtv) } case strings.EqualFold("splitTunnel", t.Name.Local): @@ -43758,7 +43866,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SplitTunnel = &xtv + sv.SplitTunnel = xtv } case strings.EqualFold("status", t.Name.Local): @@ -43799,7 +43907,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } case strings.EqualFold("vpnPort", t.Name.Local): @@ -43816,7 +43924,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin if err != nil { return err } - sv.VpnPort = ptr.Int32(int32(i64)) + sv.VpnPort = int32(i64) } case strings.EqualFold("vpnProtocol", t.Name.Local): @@ -43890,7 +43998,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpointStatus(v **types.ClientVpnE } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -43938,7 +44046,7 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec } if val != nil { xtv := string(val) - sv.ClientVpnEndpointId = &xtv + sv.ClientVpnEndpointId = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -43954,7 +44062,7 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("destinationCidr", t.Name.Local): @@ -43970,7 +44078,7 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec } if val != nil { xtv := string(val) - sv.DestinationCidr = &xtv + sv.DestinationCidr = ptr.String(xtv) } case strings.EqualFold("origin", t.Name.Local): @@ -43986,7 +44094,7 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec } if val != nil { xtv := string(val) - sv.Origin = &xtv + sv.Origin = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -44008,7 +44116,7 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec } if val != nil { xtv := string(val) - sv.TargetSubnet = &xtv + sv.TargetSubnet = ptr.String(xtv) } case strings.EqualFold("type", t.Name.Local): @@ -44024,7 +44132,7 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec } if val != nil { xtv := string(val) - sv.Type = &xtv + sv.Type = ptr.String(xtv) } default: @@ -44037,13 +44145,13 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec return nil } -func awsEc2query_deserializeDocumentClientVpnRouteSet(v *[]*types.ClientVpnRoute, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnRouteSet(v *[]types.ClientVpnRoute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClientVpnRoute + var sv []types.ClientVpnRoute if *v == nil { - sv = make([]*types.ClientVpnRoute, 0) + sv = make([]types.ClientVpnRoute, 0) } else { sv = *v } @@ -44059,11 +44167,13 @@ func awsEc2query_deserializeDocumentClientVpnRouteSet(v *[]*types.ClientVpnRoute } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ClientVpnRoute + var col types.ClientVpnRoute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnRoute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentClientVpnRoute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -44076,23 +44186,25 @@ func awsEc2query_deserializeDocumentClientVpnRouteSet(v *[]*types.ClientVpnRoute return nil } -func awsEc2query_deserializeDocumentClientVpnRouteSetUnwrapped(v *[]*types.ClientVpnRoute, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClientVpnRoute +func awsEc2query_deserializeDocumentClientVpnRouteSetUnwrapped(v *[]types.ClientVpnRoute, decoder smithyxml.NodeDecoder) error { + var sv []types.ClientVpnRoute if *v == nil { - sv = make([]*types.ClientVpnRoute, 0) + sv = make([]types.ClientVpnRoute, 0) } else { sv = *v } switch { default: - var mv *types.ClientVpnRoute + var mv types.ClientVpnRoute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnRoute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentClientVpnRoute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -44146,7 +44258,7 @@ func awsEc2query_deserializeDocumentClientVpnRouteStatus(v **types.ClientVpnRout } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -44159,13 +44271,13 @@ func awsEc2query_deserializeDocumentClientVpnRouteStatus(v **types.ClientVpnRout return nil } -func awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSet(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -44183,20 +44295,17 @@ func awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSet(v *[]*string, de decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -44209,17 +44318,17 @@ func awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSet(v *[]*string, de return nil } -func awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSetUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -44227,14 +44336,11 @@ func awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSetUnwrapped(v *[]*s return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -44276,7 +44382,7 @@ func awsEc2query_deserializeDocumentCoipAddressUsage(v **types.CoipAddressUsage, } if val != nil { xtv := string(val) - sv.AllocationId = &xtv + sv.AllocationId = ptr.String(xtv) } case strings.EqualFold("awsAccountId", t.Name.Local): @@ -44292,7 +44398,7 @@ func awsEc2query_deserializeDocumentCoipAddressUsage(v **types.CoipAddressUsage, } if val != nil { xtv := string(val) - sv.AwsAccountId = &xtv + sv.AwsAccountId = ptr.String(xtv) } case strings.EqualFold("awsService", t.Name.Local): @@ -44308,7 +44414,7 @@ func awsEc2query_deserializeDocumentCoipAddressUsage(v **types.CoipAddressUsage, } if val != nil { xtv := string(val) - sv.AwsService = &xtv + sv.AwsService = ptr.String(xtv) } case strings.EqualFold("coIp", t.Name.Local): @@ -44324,7 +44430,7 @@ func awsEc2query_deserializeDocumentCoipAddressUsage(v **types.CoipAddressUsage, } if val != nil { xtv := string(val) - sv.CoIp = &xtv + sv.CoIp = ptr.String(xtv) } default: @@ -44337,13 +44443,13 @@ func awsEc2query_deserializeDocumentCoipAddressUsage(v **types.CoipAddressUsage, return nil } -func awsEc2query_deserializeDocumentCoipAddressUsageSet(v *[]*types.CoipAddressUsage, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCoipAddressUsageSet(v *[]types.CoipAddressUsage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CoipAddressUsage + var sv []types.CoipAddressUsage if *v == nil { - sv = make([]*types.CoipAddressUsage, 0) + sv = make([]types.CoipAddressUsage, 0) } else { sv = *v } @@ -44359,11 +44465,13 @@ func awsEc2query_deserializeDocumentCoipAddressUsageSet(v *[]*types.CoipAddressU } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.CoipAddressUsage + var col types.CoipAddressUsage nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCoipAddressUsage(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCoipAddressUsage(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -44376,23 +44484,25 @@ func awsEc2query_deserializeDocumentCoipAddressUsageSet(v *[]*types.CoipAddressU return nil } -func awsEc2query_deserializeDocumentCoipAddressUsageSetUnwrapped(v *[]*types.CoipAddressUsage, decoder smithyxml.NodeDecoder) error { - var sv []*types.CoipAddressUsage +func awsEc2query_deserializeDocumentCoipAddressUsageSetUnwrapped(v *[]types.CoipAddressUsage, decoder smithyxml.NodeDecoder) error { + var sv []types.CoipAddressUsage if *v == nil { - sv = make([]*types.CoipAddressUsage, 0) + sv = make([]types.CoipAddressUsage, 0) } else { sv = *v } switch { default: - var mv *types.CoipAddressUsage + var mv types.CoipAddressUsage t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCoipAddressUsage(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentCoipAddressUsage(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -44433,7 +44543,7 @@ func awsEc2query_deserializeDocumentCoipPool(v **types.CoipPool, decoder smithyx } if val != nil { xtv := string(val) - sv.LocalGatewayRouteTableId = &xtv + sv.LocalGatewayRouteTableId = ptr.String(xtv) } case strings.EqualFold("poolArn", t.Name.Local): @@ -44449,7 +44559,7 @@ func awsEc2query_deserializeDocumentCoipPool(v **types.CoipPool, decoder smithyx } if val != nil { xtv := string(val) - sv.PoolArn = &xtv + sv.PoolArn = ptr.String(xtv) } case strings.EqualFold("poolCidrSet", t.Name.Local): @@ -44471,7 +44581,7 @@ func awsEc2query_deserializeDocumentCoipPool(v **types.CoipPool, decoder smithyx } if val != nil { xtv := string(val) - sv.PoolId = &xtv + sv.PoolId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -44490,13 +44600,13 @@ func awsEc2query_deserializeDocumentCoipPool(v **types.CoipPool, decoder smithyx return nil } -func awsEc2query_deserializeDocumentCoipPoolSet(v *[]*types.CoipPool, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCoipPoolSet(v *[]types.CoipPool, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CoipPool + var sv []types.CoipPool if *v == nil { - sv = make([]*types.CoipPool, 0) + sv = make([]types.CoipPool, 0) } else { sv = *v } @@ -44512,11 +44622,13 @@ func awsEc2query_deserializeDocumentCoipPoolSet(v *[]*types.CoipPool, decoder sm } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.CoipPool + var col types.CoipPool nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCoipPool(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCoipPool(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -44529,23 +44641,25 @@ func awsEc2query_deserializeDocumentCoipPoolSet(v *[]*types.CoipPool, decoder sm return nil } -func awsEc2query_deserializeDocumentCoipPoolSetUnwrapped(v *[]*types.CoipPool, decoder smithyxml.NodeDecoder) error { - var sv []*types.CoipPool +func awsEc2query_deserializeDocumentCoipPoolSetUnwrapped(v *[]types.CoipPool, decoder smithyxml.NodeDecoder) error { + var sv []types.CoipPool if *v == nil { - sv = make([]*types.CoipPool, 0) + sv = make([]types.CoipPool, 0) } else { sv = *v } switch { default: - var mv *types.CoipPool + var mv types.CoipPool t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCoipPool(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentCoipPool(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -44586,7 +44700,7 @@ func awsEc2query_deserializeDocumentConnectionLogResponseOptions(v **types.Conne } if val != nil { xtv := string(val) - sv.CloudwatchLogGroup = &xtv + sv.CloudwatchLogGroup = ptr.String(xtv) } case strings.EqualFold("CloudwatchLogStream", t.Name.Local): @@ -44602,7 +44716,7 @@ func awsEc2query_deserializeDocumentConnectionLogResponseOptions(v **types.Conne } if val != nil { xtv := string(val) - sv.CloudwatchLogStream = &xtv + sv.CloudwatchLogStream = ptr.String(xtv) } case strings.EqualFold("Enabled", t.Name.Local): @@ -44618,7 +44732,7 @@ func awsEc2query_deserializeDocumentConnectionLogResponseOptions(v **types.Conne if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } default: @@ -44672,7 +44786,7 @@ func awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionN } if val != nil { xtv := string(val) - sv.ConnectionNotificationArn = &xtv + sv.ConnectionNotificationArn = ptr.String(xtv) } case strings.EqualFold("connectionNotificationId", t.Name.Local): @@ -44688,7 +44802,7 @@ func awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionN } if val != nil { xtv := string(val) - sv.ConnectionNotificationId = &xtv + sv.ConnectionNotificationId = ptr.String(xtv) } case strings.EqualFold("connectionNotificationState", t.Name.Local): @@ -44730,7 +44844,7 @@ func awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionN } if val != nil { xtv := string(val) - sv.ServiceId = &xtv + sv.ServiceId = ptr.String(xtv) } case strings.EqualFold("vpcEndpointId", t.Name.Local): @@ -44746,7 +44860,7 @@ func awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionN } if val != nil { xtv := string(val) - sv.VpcEndpointId = &xtv + sv.VpcEndpointId = ptr.String(xtv) } default: @@ -44759,13 +44873,13 @@ func awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionN return nil } -func awsEc2query_deserializeDocumentConnectionNotificationSet(v *[]*types.ConnectionNotification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentConnectionNotificationSet(v *[]types.ConnectionNotification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ConnectionNotification + var sv []types.ConnectionNotification if *v == nil { - sv = make([]*types.ConnectionNotification, 0) + sv = make([]types.ConnectionNotification, 0) } else { sv = *v } @@ -44781,11 +44895,13 @@ func awsEc2query_deserializeDocumentConnectionNotificationSet(v *[]*types.Connec } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ConnectionNotification + var col types.ConnectionNotification nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentConnectionNotification(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentConnectionNotification(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -44798,23 +44914,25 @@ func awsEc2query_deserializeDocumentConnectionNotificationSet(v *[]*types.Connec return nil } -func awsEc2query_deserializeDocumentConnectionNotificationSetUnwrapped(v *[]*types.ConnectionNotification, decoder smithyxml.NodeDecoder) error { - var sv []*types.ConnectionNotification +func awsEc2query_deserializeDocumentConnectionNotificationSetUnwrapped(v *[]types.ConnectionNotification, decoder smithyxml.NodeDecoder) error { + var sv []types.ConnectionNotification if *v == nil { - sv = make([]*types.ConnectionNotification, 0) + sv = make([]types.ConnectionNotification, 0) } else { sv = *v } switch { default: - var mv *types.ConnectionNotification + var mv types.ConnectionNotification t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentConnectionNotification(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentConnectionNotification(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -44855,7 +44973,7 @@ func awsEc2query_deserializeDocumentConversionTask(v **types.ConversionTask, dec } if val != nil { xtv := string(val) - sv.ConversionTaskId = &xtv + sv.ConversionTaskId = ptr.String(xtv) } case strings.EqualFold("expirationTime", t.Name.Local): @@ -44871,7 +44989,7 @@ func awsEc2query_deserializeDocumentConversionTask(v **types.ConversionTask, dec } if val != nil { xtv := string(val) - sv.ExpirationTime = &xtv + sv.ExpirationTime = ptr.String(xtv) } case strings.EqualFold("importInstance", t.Name.Local): @@ -44912,7 +45030,7 @@ func awsEc2query_deserializeDocumentConversionTask(v **types.ConversionTask, dec } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -44931,13 +45049,13 @@ func awsEc2query_deserializeDocumentConversionTask(v **types.ConversionTask, dec return nil } -func awsEc2query_deserializeDocumentCoreCountList(v *[]*int32, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCoreCountList(v *[]int32, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*int32 + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } @@ -44955,7 +45073,7 @@ func awsEc2query_deserializeDocumentCoreCountList(v *[]*int32, decoder smithyxml decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *int32 + var col int32 val, done, err := decoder.Value() if err != nil { return err @@ -44969,7 +45087,7 @@ func awsEc2query_deserializeDocumentCoreCountList(v *[]*int32, decoder smithyxml if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } sv = append(sv, col) } else { @@ -44982,17 +45100,17 @@ func awsEc2query_deserializeDocumentCoreCountList(v *[]*int32, decoder smithyxml return nil } -func awsEc2query_deserializeDocumentCoreCountListUnwrapped(v *[]*int32, decoder smithyxml.NodeDecoder) error { - var sv []*int32 +func awsEc2query_deserializeDocumentCoreCountListUnwrapped(v *[]int32, decoder smithyxml.NodeDecoder) error { + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } switch { default: - var mv *int32 + var mv int32 t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -45008,7 +45126,7 @@ func awsEc2query_deserializeDocumentCoreCountListUnwrapped(v *[]*int32, decoder if err != nil { return err } - mv = ptr.Int32(int32(i64)) + mv = int32(i64) } sv = append(sv, mv) } @@ -45051,7 +45169,7 @@ func awsEc2query_deserializeDocumentCpuOptions(v **types.CpuOptions, decoder smi if err != nil { return err } - sv.CoreCount = ptr.Int32(int32(i64)) + sv.CoreCount = int32(i64) } case strings.EqualFold("threadsPerCore", t.Name.Local): @@ -45068,7 +45186,7 @@ func awsEc2query_deserializeDocumentCpuOptions(v **types.CpuOptions, decoder smi if err != nil { return err } - sv.ThreadsPerCore = ptr.Int32(int32(i64)) + sv.ThreadsPerCore = int32(i64) } default: @@ -45116,7 +45234,7 @@ func awsEc2query_deserializeDocumentCreateFleetError(v **types.CreateFleetError, } if val != nil { xtv := string(val) - sv.ErrorCode = &xtv + sv.ErrorCode = ptr.String(xtv) } case strings.EqualFold("errorMessage", t.Name.Local): @@ -45132,7 +45250,7 @@ func awsEc2query_deserializeDocumentCreateFleetError(v **types.CreateFleetError, } if val != nil { xtv := string(val) - sv.ErrorMessage = &xtv + sv.ErrorMessage = ptr.String(xtv) } case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local): @@ -45164,13 +45282,13 @@ func awsEc2query_deserializeDocumentCreateFleetError(v **types.CreateFleetError, return nil } -func awsEc2query_deserializeDocumentCreateFleetErrorsSet(v *[]*types.CreateFleetError, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCreateFleetErrorsSet(v *[]types.CreateFleetError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CreateFleetError + var sv []types.CreateFleetError if *v == nil { - sv = make([]*types.CreateFleetError, 0) + sv = make([]types.CreateFleetError, 0) } else { sv = *v } @@ -45186,11 +45304,13 @@ func awsEc2query_deserializeDocumentCreateFleetErrorsSet(v *[]*types.CreateFleet } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.CreateFleetError + var col types.CreateFleetError nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCreateFleetError(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCreateFleetError(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -45203,23 +45323,25 @@ func awsEc2query_deserializeDocumentCreateFleetErrorsSet(v *[]*types.CreateFleet return nil } -func awsEc2query_deserializeDocumentCreateFleetErrorsSetUnwrapped(v *[]*types.CreateFleetError, decoder smithyxml.NodeDecoder) error { - var sv []*types.CreateFleetError +func awsEc2query_deserializeDocumentCreateFleetErrorsSetUnwrapped(v *[]types.CreateFleetError, decoder smithyxml.NodeDecoder) error { + var sv []types.CreateFleetError if *v == nil { - sv = make([]*types.CreateFleetError, 0) + sv = make([]types.CreateFleetError, 0) } else { sv = *v } switch { default: - var mv *types.CreateFleetError + var mv types.CreateFleetError t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCreateFleetError(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentCreateFleetError(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -45308,13 +45430,13 @@ func awsEc2query_deserializeDocumentCreateFleetInstance(v **types.CreateFleetIns return nil } -func awsEc2query_deserializeDocumentCreateFleetInstancesSet(v *[]*types.CreateFleetInstance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCreateFleetInstancesSet(v *[]types.CreateFleetInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CreateFleetInstance + var sv []types.CreateFleetInstance if *v == nil { - sv = make([]*types.CreateFleetInstance, 0) + sv = make([]types.CreateFleetInstance, 0) } else { sv = *v } @@ -45330,11 +45452,13 @@ func awsEc2query_deserializeDocumentCreateFleetInstancesSet(v *[]*types.CreateFl } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.CreateFleetInstance + var col types.CreateFleetInstance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCreateFleetInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCreateFleetInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -45347,23 +45471,25 @@ func awsEc2query_deserializeDocumentCreateFleetInstancesSet(v *[]*types.CreateFl return nil } -func awsEc2query_deserializeDocumentCreateFleetInstancesSetUnwrapped(v *[]*types.CreateFleetInstance, decoder smithyxml.NodeDecoder) error { - var sv []*types.CreateFleetInstance +func awsEc2query_deserializeDocumentCreateFleetInstancesSetUnwrapped(v *[]types.CreateFleetInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.CreateFleetInstance if *v == nil { - sv = make([]*types.CreateFleetInstance, 0) + sv = make([]types.CreateFleetInstance, 0) } else { sv = *v } switch { default: - var mv *types.CreateFleetInstance + var mv types.CreateFleetInstance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCreateFleetInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentCreateFleetInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -45417,7 +45543,7 @@ func awsEc2query_deserializeDocumentCreateVolumePermission(v **types.CreateVolum } if val != nil { xtv := string(val) - sv.UserId = &xtv + sv.UserId = ptr.String(xtv) } default: @@ -45430,13 +45556,13 @@ func awsEc2query_deserializeDocumentCreateVolumePermission(v **types.CreateVolum return nil } -func awsEc2query_deserializeDocumentCreateVolumePermissionList(v *[]*types.CreateVolumePermission, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCreateVolumePermissionList(v *[]types.CreateVolumePermission, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CreateVolumePermission + var sv []types.CreateVolumePermission if *v == nil { - sv = make([]*types.CreateVolumePermission, 0) + sv = make([]types.CreateVolumePermission, 0) } else { sv = *v } @@ -45452,11 +45578,13 @@ func awsEc2query_deserializeDocumentCreateVolumePermissionList(v *[]*types.Creat } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.CreateVolumePermission + var col types.CreateVolumePermission nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCreateVolumePermission(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCreateVolumePermission(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -45469,23 +45597,25 @@ func awsEc2query_deserializeDocumentCreateVolumePermissionList(v *[]*types.Creat return nil } -func awsEc2query_deserializeDocumentCreateVolumePermissionListUnwrapped(v *[]*types.CreateVolumePermission, decoder smithyxml.NodeDecoder) error { - var sv []*types.CreateVolumePermission +func awsEc2query_deserializeDocumentCreateVolumePermissionListUnwrapped(v *[]types.CreateVolumePermission, decoder smithyxml.NodeDecoder) error { + var sv []types.CreateVolumePermission if *v == nil { - sv = make([]*types.CreateVolumePermission, 0) + sv = make([]types.CreateVolumePermission, 0) } else { sv = *v } switch { default: - var mv *types.CreateVolumePermission + var mv types.CreateVolumePermission t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCreateVolumePermission(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentCreateVolumePermission(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -45526,7 +45656,7 @@ func awsEc2query_deserializeDocumentCreditSpecification(v **types.CreditSpecific } if val != nil { xtv := string(val) - sv.CpuCredits = &xtv + sv.CpuCredits = ptr.String(xtv) } default: @@ -45574,7 +45704,7 @@ func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, d } if val != nil { xtv := string(val) - sv.BgpAsn = &xtv + sv.BgpAsn = ptr.String(xtv) } case strings.EqualFold("certificateArn", t.Name.Local): @@ -45590,7 +45720,7 @@ func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, d } if val != nil { xtv := string(val) - sv.CertificateArn = &xtv + sv.CertificateArn = ptr.String(xtv) } case strings.EqualFold("customerGatewayId", t.Name.Local): @@ -45606,7 +45736,7 @@ func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, d } if val != nil { xtv := string(val) - sv.CustomerGatewayId = &xtv + sv.CustomerGatewayId = ptr.String(xtv) } case strings.EqualFold("deviceName", t.Name.Local): @@ -45622,7 +45752,7 @@ func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, d } if val != nil { xtv := string(val) - sv.DeviceName = &xtv + sv.DeviceName = ptr.String(xtv) } case strings.EqualFold("ipAddress", t.Name.Local): @@ -45638,7 +45768,7 @@ func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, d } if val != nil { xtv := string(val) - sv.IpAddress = &xtv + sv.IpAddress = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -45654,7 +45784,7 @@ func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, d } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -45676,7 +45806,7 @@ func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, d } if val != nil { xtv := string(val) - sv.Type = &xtv + sv.Type = ptr.String(xtv) } default: @@ -45689,13 +45819,13 @@ func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, d return nil } -func awsEc2query_deserializeDocumentCustomerGatewayList(v *[]*types.CustomerGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCustomerGatewayList(v *[]types.CustomerGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CustomerGateway + var sv []types.CustomerGateway if *v == nil { - sv = make([]*types.CustomerGateway, 0) + sv = make([]types.CustomerGateway, 0) } else { sv = *v } @@ -45711,11 +45841,13 @@ func awsEc2query_deserializeDocumentCustomerGatewayList(v *[]*types.CustomerGate } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.CustomerGateway + var col types.CustomerGateway nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCustomerGateway(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCustomerGateway(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -45728,23 +45860,25 @@ func awsEc2query_deserializeDocumentCustomerGatewayList(v *[]*types.CustomerGate return nil } -func awsEc2query_deserializeDocumentCustomerGatewayListUnwrapped(v *[]*types.CustomerGateway, decoder smithyxml.NodeDecoder) error { - var sv []*types.CustomerGateway +func awsEc2query_deserializeDocumentCustomerGatewayListUnwrapped(v *[]types.CustomerGateway, decoder smithyxml.NodeDecoder) error { + var sv []types.CustomerGateway if *v == nil { - sv = make([]*types.CustomerGateway, 0) + sv = make([]types.CustomerGateway, 0) } else { sv = *v } switch { default: - var mv *types.CustomerGateway + var mv types.CustomerGateway t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCustomerGateway(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentCustomerGateway(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -45798,7 +45932,7 @@ func awsEc2query_deserializeDocumentDeleteFleetError(v **types.DeleteFleetError, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -45852,7 +45986,7 @@ func awsEc2query_deserializeDocumentDeleteFleetErrorItem(v **types.DeleteFleetEr } if val != nil { xtv := string(val) - sv.FleetId = &xtv + sv.FleetId = ptr.String(xtv) } default: @@ -45865,13 +45999,13 @@ func awsEc2query_deserializeDocumentDeleteFleetErrorItem(v **types.DeleteFleetEr return nil } -func awsEc2query_deserializeDocumentDeleteFleetErrorSet(v *[]*types.DeleteFleetErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDeleteFleetErrorSet(v *[]types.DeleteFleetErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DeleteFleetErrorItem + var sv []types.DeleteFleetErrorItem if *v == nil { - sv = make([]*types.DeleteFleetErrorItem, 0) + sv = make([]types.DeleteFleetErrorItem, 0) } else { sv = *v } @@ -45887,11 +46021,13 @@ func awsEc2query_deserializeDocumentDeleteFleetErrorSet(v *[]*types.DeleteFleetE } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DeleteFleetErrorItem + var col types.DeleteFleetErrorItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDeleteFleetErrorItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDeleteFleetErrorItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -45904,23 +46040,25 @@ func awsEc2query_deserializeDocumentDeleteFleetErrorSet(v *[]*types.DeleteFleetE return nil } -func awsEc2query_deserializeDocumentDeleteFleetErrorSetUnwrapped(v *[]*types.DeleteFleetErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.DeleteFleetErrorItem +func awsEc2query_deserializeDocumentDeleteFleetErrorSetUnwrapped(v *[]types.DeleteFleetErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DeleteFleetErrorItem if *v == nil { - sv = make([]*types.DeleteFleetErrorItem, 0) + sv = make([]types.DeleteFleetErrorItem, 0) } else { sv = *v } switch { default: - var mv *types.DeleteFleetErrorItem + var mv types.DeleteFleetErrorItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDeleteFleetErrorItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDeleteFleetErrorItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -45974,7 +46112,7 @@ func awsEc2query_deserializeDocumentDeleteFleetSuccessItem(v **types.DeleteFleet } if val != nil { xtv := string(val) - sv.FleetId = &xtv + sv.FleetId = ptr.String(xtv) } case strings.EqualFold("previousFleetState", t.Name.Local): @@ -46000,13 +46138,13 @@ func awsEc2query_deserializeDocumentDeleteFleetSuccessItem(v **types.DeleteFleet return nil } -func awsEc2query_deserializeDocumentDeleteFleetSuccessSet(v *[]*types.DeleteFleetSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDeleteFleetSuccessSet(v *[]types.DeleteFleetSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DeleteFleetSuccessItem + var sv []types.DeleteFleetSuccessItem if *v == nil { - sv = make([]*types.DeleteFleetSuccessItem, 0) + sv = make([]types.DeleteFleetSuccessItem, 0) } else { sv = *v } @@ -46022,11 +46160,13 @@ func awsEc2query_deserializeDocumentDeleteFleetSuccessSet(v *[]*types.DeleteFlee } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DeleteFleetSuccessItem + var col types.DeleteFleetSuccessItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDeleteFleetSuccessItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDeleteFleetSuccessItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -46039,23 +46179,25 @@ func awsEc2query_deserializeDocumentDeleteFleetSuccessSet(v *[]*types.DeleteFlee return nil } -func awsEc2query_deserializeDocumentDeleteFleetSuccessSetUnwrapped(v *[]*types.DeleteFleetSuccessItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.DeleteFleetSuccessItem +func awsEc2query_deserializeDocumentDeleteFleetSuccessSetUnwrapped(v *[]types.DeleteFleetSuccessItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DeleteFleetSuccessItem if *v == nil { - sv = make([]*types.DeleteFleetSuccessItem, 0) + sv = make([]types.DeleteFleetSuccessItem, 0) } else { sv = *v } switch { default: - var mv *types.DeleteFleetSuccessItem + var mv types.DeleteFleetSuccessItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDeleteFleetSuccessItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDeleteFleetSuccessItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -46096,7 +46238,7 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorIte } if val != nil { xtv := string(val) - sv.LaunchTemplateId = &xtv + sv.LaunchTemplateId = ptr.String(xtv) } case strings.EqualFold("launchTemplateName", t.Name.Local): @@ -46112,7 +46254,7 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorIte } if val != nil { xtv := string(val) - sv.LaunchTemplateName = &xtv + sv.LaunchTemplateName = ptr.String(xtv) } case strings.EqualFold("responseError", t.Name.Local): @@ -46135,7 +46277,7 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorIte if err != nil { return err } - sv.VersionNumber = &i64 + sv.VersionNumber = i64 } default: @@ -46148,13 +46290,13 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorIte return nil } -func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSet(v *[]*types.DeleteLaunchTemplateVersionsResponseErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSet(v *[]types.DeleteLaunchTemplateVersionsResponseErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DeleteLaunchTemplateVersionsResponseErrorItem + var sv []types.DeleteLaunchTemplateVersionsResponseErrorItem if *v == nil { - sv = make([]*types.DeleteLaunchTemplateVersionsResponseErrorItem, 0) + sv = make([]types.DeleteLaunchTemplateVersionsResponseErrorItem, 0) } else { sv = *v } @@ -46170,11 +46312,13 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSet } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DeleteLaunchTemplateVersionsResponseErrorItem + var col types.DeleteLaunchTemplateVersionsResponseErrorItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -46187,23 +46331,25 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSet return nil } -func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSetUnwrapped(v *[]*types.DeleteLaunchTemplateVersionsResponseErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.DeleteLaunchTemplateVersionsResponseErrorItem +func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSetUnwrapped(v *[]types.DeleteLaunchTemplateVersionsResponseErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DeleteLaunchTemplateVersionsResponseErrorItem if *v == nil { - sv = make([]*types.DeleteLaunchTemplateVersionsResponseErrorItem, 0) + sv = make([]types.DeleteLaunchTemplateVersionsResponseErrorItem, 0) } else { sv = *v } switch { default: - var mv *types.DeleteLaunchTemplateVersionsResponseErrorItem + var mv types.DeleteLaunchTemplateVersionsResponseErrorItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -46244,7 +46390,7 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessI } if val != nil { xtv := string(val) - sv.LaunchTemplateId = &xtv + sv.LaunchTemplateId = ptr.String(xtv) } case strings.EqualFold("launchTemplateName", t.Name.Local): @@ -46260,7 +46406,7 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessI } if val != nil { xtv := string(val) - sv.LaunchTemplateName = &xtv + sv.LaunchTemplateName = ptr.String(xtv) } case strings.EqualFold("versionNumber", t.Name.Local): @@ -46277,7 +46423,7 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessI if err != nil { return err } - sv.VersionNumber = &i64 + sv.VersionNumber = i64 } default: @@ -46290,13 +46436,13 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessI return nil } -func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessSet(v *[]*types.DeleteLaunchTemplateVersionsResponseSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessSet(v *[]types.DeleteLaunchTemplateVersionsResponseSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DeleteLaunchTemplateVersionsResponseSuccessItem + var sv []types.DeleteLaunchTemplateVersionsResponseSuccessItem if *v == nil { - sv = make([]*types.DeleteLaunchTemplateVersionsResponseSuccessItem, 0) + sv = make([]types.DeleteLaunchTemplateVersionsResponseSuccessItem, 0) } else { sv = *v } @@ -46312,11 +46458,13 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessS } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DeleteLaunchTemplateVersionsResponseSuccessItem + var col types.DeleteLaunchTemplateVersionsResponseSuccessItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -46329,23 +46477,25 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessS return nil } -func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessSetUnwrapped(v *[]*types.DeleteLaunchTemplateVersionsResponseSuccessItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.DeleteLaunchTemplateVersionsResponseSuccessItem +func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessSetUnwrapped(v *[]types.DeleteLaunchTemplateVersionsResponseSuccessItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DeleteLaunchTemplateVersionsResponseSuccessItem if *v == nil { - sv = make([]*types.DeleteLaunchTemplateVersionsResponseSuccessItem, 0) + sv = make([]types.DeleteLaunchTemplateVersionsResponseSuccessItem, 0) } else { sv = *v } switch { default: - var mv *types.DeleteLaunchTemplateVersionsResponseSuccessItem + var mv types.DeleteLaunchTemplateVersionsResponseSuccessItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -46399,7 +46549,7 @@ func awsEc2query_deserializeDocumentDeleteQueuedReservedInstancesError(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -46412,13 +46562,13 @@ func awsEc2query_deserializeDocumentDeleteQueuedReservedInstancesError(v **types return nil } -func awsEc2query_deserializeDocumentDescribeConversionTaskList(v *[]*types.ConversionTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDescribeConversionTaskList(v *[]types.ConversionTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ConversionTask + var sv []types.ConversionTask if *v == nil { - sv = make([]*types.ConversionTask, 0) + sv = make([]types.ConversionTask, 0) } else { sv = *v } @@ -46434,11 +46584,13 @@ func awsEc2query_deserializeDocumentDescribeConversionTaskList(v *[]*types.Conve } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ConversionTask + var col types.ConversionTask nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentConversionTask(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentConversionTask(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -46451,23 +46603,25 @@ func awsEc2query_deserializeDocumentDescribeConversionTaskList(v *[]*types.Conve return nil } -func awsEc2query_deserializeDocumentDescribeConversionTaskListUnwrapped(v *[]*types.ConversionTask, decoder smithyxml.NodeDecoder) error { - var sv []*types.ConversionTask +func awsEc2query_deserializeDocumentDescribeConversionTaskListUnwrapped(v *[]types.ConversionTask, decoder smithyxml.NodeDecoder) error { + var sv []types.ConversionTask if *v == nil { - sv = make([]*types.ConversionTask, 0) + sv = make([]types.ConversionTask, 0) } else { sv = *v } switch { default: - var mv *types.ConversionTask + var mv types.ConversionTask t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentConversionTask(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentConversionTask(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -46508,7 +46662,7 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **t } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("disabledTime", t.Name.Local): @@ -46525,7 +46679,7 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **t if err != nil { return err } - sv.DisabledTime = &t + sv.DisabledTime = ptr.Time(t) } case strings.EqualFold("disablingTime", t.Name.Local): @@ -46542,7 +46696,7 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **t if err != nil { return err } - sv.DisablingTime = &t + sv.DisablingTime = ptr.Time(t) } case strings.EqualFold("enabledTime", t.Name.Local): @@ -46559,7 +46713,7 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **t if err != nil { return err } - sv.EnabledTime = &t + sv.EnabledTime = ptr.Time(t) } case strings.EqualFold("enablingTime", t.Name.Local): @@ -46576,7 +46730,7 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **t if err != nil { return err } - sv.EnablingTime = &t + sv.EnablingTime = ptr.Time(t) } case strings.EqualFold("optimizingTime", t.Name.Local): @@ -46593,7 +46747,7 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **t if err != nil { return err } - sv.OptimizingTime = &t + sv.OptimizingTime = ptr.Time(t) } case strings.EqualFold("ownerAlias", t.Name.Local): @@ -46609,7 +46763,7 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **t } if val != nil { xtv := string(val) - sv.OwnerAlias = &xtv + sv.OwnerAlias = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -46625,7 +46779,7 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **t } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -46641,7 +46795,7 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **t } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -46670,7 +46824,7 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **t } if val != nil { xtv := string(val) - sv.StateTransitionReason = &xtv + sv.StateTransitionReason = ptr.String(xtv) } default: @@ -46683,13 +46837,13 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **t return nil } -func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSet(v *[]*types.DescribeFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSet(v *[]types.DescribeFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DescribeFastSnapshotRestoreSuccessItem + var sv []types.DescribeFastSnapshotRestoreSuccessItem if *v == nil { - sv = make([]*types.DescribeFastSnapshotRestoreSuccessItem, 0) + sv = make([]types.DescribeFastSnapshotRestoreSuccessItem, 0) } else { sv = *v } @@ -46705,11 +46859,13 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSet(v *[]* } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DescribeFastSnapshotRestoreSuccessItem + var col types.DescribeFastSnapshotRestoreSuccessItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -46722,23 +46878,25 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSet(v *[]* return nil } -func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSetUnwrapped(v *[]*types.DescribeFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.DescribeFastSnapshotRestoreSuccessItem +func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSetUnwrapped(v *[]types.DescribeFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DescribeFastSnapshotRestoreSuccessItem if *v == nil { - sv = make([]*types.DescribeFastSnapshotRestoreSuccessItem, 0) + sv = make([]types.DescribeFastSnapshotRestoreSuccessItem, 0) } else { sv = *v } switch { default: - var mv *types.DescribeFastSnapshotRestoreSuccessItem + var mv types.DescribeFastSnapshotRestoreSuccessItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -46779,7 +46937,7 @@ func awsEc2query_deserializeDocumentDescribeFleetError(v **types.DescribeFleetEr } if val != nil { xtv := string(val) - sv.ErrorCode = &xtv + sv.ErrorCode = ptr.String(xtv) } case strings.EqualFold("errorMessage", t.Name.Local): @@ -46795,7 +46953,7 @@ func awsEc2query_deserializeDocumentDescribeFleetError(v **types.DescribeFleetEr } if val != nil { xtv := string(val) - sv.ErrorMessage = &xtv + sv.ErrorMessage = ptr.String(xtv) } case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local): @@ -46827,13 +46985,13 @@ func awsEc2query_deserializeDocumentDescribeFleetError(v **types.DescribeFleetEr return nil } -func awsEc2query_deserializeDocumentDescribeFleetsErrorSet(v *[]*types.DescribeFleetError, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDescribeFleetsErrorSet(v *[]types.DescribeFleetError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DescribeFleetError + var sv []types.DescribeFleetError if *v == nil { - sv = make([]*types.DescribeFleetError, 0) + sv = make([]types.DescribeFleetError, 0) } else { sv = *v } @@ -46849,11 +47007,13 @@ func awsEc2query_deserializeDocumentDescribeFleetsErrorSet(v *[]*types.DescribeF } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DescribeFleetError + var col types.DescribeFleetError nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDescribeFleetError(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDescribeFleetError(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -46866,23 +47026,25 @@ func awsEc2query_deserializeDocumentDescribeFleetsErrorSet(v *[]*types.DescribeF return nil } -func awsEc2query_deserializeDocumentDescribeFleetsErrorSetUnwrapped(v *[]*types.DescribeFleetError, decoder smithyxml.NodeDecoder) error { - var sv []*types.DescribeFleetError +func awsEc2query_deserializeDocumentDescribeFleetsErrorSetUnwrapped(v *[]types.DescribeFleetError, decoder smithyxml.NodeDecoder) error { + var sv []types.DescribeFleetError if *v == nil { - sv = make([]*types.DescribeFleetError, 0) + sv = make([]types.DescribeFleetError, 0) } else { sv = *v } switch { default: - var mv *types.DescribeFleetError + var mv types.DescribeFleetError t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDescribeFleetError(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDescribeFleetError(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -46971,13 +47133,13 @@ func awsEc2query_deserializeDocumentDescribeFleetsInstances(v **types.DescribeFl return nil } -func awsEc2query_deserializeDocumentDescribeFleetsInstancesSet(v *[]*types.DescribeFleetsInstances, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDescribeFleetsInstancesSet(v *[]types.DescribeFleetsInstances, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DescribeFleetsInstances + var sv []types.DescribeFleetsInstances if *v == nil { - sv = make([]*types.DescribeFleetsInstances, 0) + sv = make([]types.DescribeFleetsInstances, 0) } else { sv = *v } @@ -46993,11 +47155,13 @@ func awsEc2query_deserializeDocumentDescribeFleetsInstancesSet(v *[]*types.Descr } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DescribeFleetsInstances + var col types.DescribeFleetsInstances nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDescribeFleetsInstances(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDescribeFleetsInstances(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -47010,23 +47174,25 @@ func awsEc2query_deserializeDocumentDescribeFleetsInstancesSet(v *[]*types.Descr return nil } -func awsEc2query_deserializeDocumentDescribeFleetsInstancesSetUnwrapped(v *[]*types.DescribeFleetsInstances, decoder smithyxml.NodeDecoder) error { - var sv []*types.DescribeFleetsInstances +func awsEc2query_deserializeDocumentDescribeFleetsInstancesSetUnwrapped(v *[]types.DescribeFleetsInstances, decoder smithyxml.NodeDecoder) error { + var sv []types.DescribeFleetsInstances if *v == nil { - sv = make([]*types.DescribeFleetsInstances, 0) + sv = make([]types.DescribeFleetsInstances, 0) } else { sv = *v } switch { default: - var mv *types.DescribeFleetsInstances + var mv types.DescribeFleetsInstances t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDescribeFleetsInstances(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDescribeFleetsInstances(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -47067,7 +47233,7 @@ func awsEc2query_deserializeDocumentDhcpConfiguration(v **types.DhcpConfiguratio } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("valueSet", t.Name.Local): @@ -47086,13 +47252,13 @@ func awsEc2query_deserializeDocumentDhcpConfiguration(v **types.DhcpConfiguratio return nil } -func awsEc2query_deserializeDocumentDhcpConfigurationList(v *[]*types.DhcpConfiguration, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDhcpConfigurationList(v *[]types.DhcpConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DhcpConfiguration + var sv []types.DhcpConfiguration if *v == nil { - sv = make([]*types.DhcpConfiguration, 0) + sv = make([]types.DhcpConfiguration, 0) } else { sv = *v } @@ -47108,11 +47274,13 @@ func awsEc2query_deserializeDocumentDhcpConfigurationList(v *[]*types.DhcpConfig } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DhcpConfiguration + var col types.DhcpConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDhcpConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDhcpConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -47125,35 +47293,37 @@ func awsEc2query_deserializeDocumentDhcpConfigurationList(v *[]*types.DhcpConfig return nil } -func awsEc2query_deserializeDocumentDhcpConfigurationListUnwrapped(v *[]*types.DhcpConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.DhcpConfiguration +func awsEc2query_deserializeDocumentDhcpConfigurationListUnwrapped(v *[]types.DhcpConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.DhcpConfiguration if *v == nil { - sv = make([]*types.DhcpConfiguration, 0) + sv = make([]types.DhcpConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.DhcpConfiguration + var mv types.DhcpConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDhcpConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDhcpConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentDhcpConfigurationValueList(v *[]*types.AttributeValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDhcpConfigurationValueList(v *[]types.AttributeValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AttributeValue + var sv []types.AttributeValue if *v == nil { - sv = make([]*types.AttributeValue, 0) + sv = make([]types.AttributeValue, 0) } else { sv = *v } @@ -47169,11 +47339,13 @@ func awsEc2query_deserializeDocumentDhcpConfigurationValueList(v *[]*types.Attri } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.AttributeValue + var col types.AttributeValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentAttributeValue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -47186,23 +47358,25 @@ func awsEc2query_deserializeDocumentDhcpConfigurationValueList(v *[]*types.Attri return nil } -func awsEc2query_deserializeDocumentDhcpConfigurationValueListUnwrapped(v *[]*types.AttributeValue, decoder smithyxml.NodeDecoder) error { - var sv []*types.AttributeValue +func awsEc2query_deserializeDocumentDhcpConfigurationValueListUnwrapped(v *[]types.AttributeValue, decoder smithyxml.NodeDecoder) error { + var sv []types.AttributeValue if *v == nil { - sv = make([]*types.AttributeValue, 0) + sv = make([]types.AttributeValue, 0) } else { sv = *v } switch { default: - var mv *types.AttributeValue + var mv types.AttributeValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeValue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentAttributeValue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -47249,7 +47423,7 @@ func awsEc2query_deserializeDocumentDhcpOptions(v **types.DhcpOptions, decoder s } if val != nil { xtv := string(val) - sv.DhcpOptionsId = &xtv + sv.DhcpOptionsId = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -47265,7 +47439,7 @@ func awsEc2query_deserializeDocumentDhcpOptions(v **types.DhcpOptions, decoder s } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -47284,13 +47458,13 @@ func awsEc2query_deserializeDocumentDhcpOptions(v **types.DhcpOptions, decoder s return nil } -func awsEc2query_deserializeDocumentDhcpOptionsList(v *[]*types.DhcpOptions, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDhcpOptionsList(v *[]types.DhcpOptions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DhcpOptions + var sv []types.DhcpOptions if *v == nil { - sv = make([]*types.DhcpOptions, 0) + sv = make([]types.DhcpOptions, 0) } else { sv = *v } @@ -47306,11 +47480,13 @@ func awsEc2query_deserializeDocumentDhcpOptionsList(v *[]*types.DhcpOptions, dec } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DhcpOptions + var col types.DhcpOptions nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDhcpOptions(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDhcpOptions(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -47323,23 +47499,25 @@ func awsEc2query_deserializeDocumentDhcpOptionsList(v *[]*types.DhcpOptions, dec return nil } -func awsEc2query_deserializeDocumentDhcpOptionsListUnwrapped(v *[]*types.DhcpOptions, decoder smithyxml.NodeDecoder) error { - var sv []*types.DhcpOptions +func awsEc2query_deserializeDocumentDhcpOptionsListUnwrapped(v *[]types.DhcpOptions, decoder smithyxml.NodeDecoder) error { + var sv []types.DhcpOptions if *v == nil { - sv = make([]*types.DhcpOptions, 0) + sv = make([]types.DhcpOptions, 0) } else { sv = *v } switch { default: - var mv *types.DhcpOptions + var mv types.DhcpOptions t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDhcpOptions(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDhcpOptions(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -47380,7 +47558,7 @@ func awsEc2query_deserializeDocumentDirectoryServiceAuthentication(v **types.Dir } if val != nil { xtv := string(val) - sv.DirectoryId = &xtv + sv.DirectoryId = ptr.String(xtv) } default: @@ -47434,7 +47612,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(v **type } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } default: @@ -47447,13 +47625,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(v **type return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSet(v *[]*types.DisableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSet(v *[]types.DisableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DisableFastSnapshotRestoreErrorItem + var sv []types.DisableFastSnapshotRestoreErrorItem if *v == nil { - sv = make([]*types.DisableFastSnapshotRestoreErrorItem, 0) + sv = make([]types.DisableFastSnapshotRestoreErrorItem, 0) } else { sv = *v } @@ -47469,11 +47647,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSet(v *[]*typ } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DisableFastSnapshotRestoreErrorItem + var col types.DisableFastSnapshotRestoreErrorItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -47486,23 +47666,25 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSet(v *[]*typ return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSetUnwrapped(v *[]*types.DisableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.DisableFastSnapshotRestoreErrorItem +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSetUnwrapped(v *[]types.DisableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DisableFastSnapshotRestoreErrorItem if *v == nil { - sv = make([]*types.DisableFastSnapshotRestoreErrorItem, 0) + sv = make([]types.DisableFastSnapshotRestoreErrorItem, 0) } else { sv = *v } switch { default: - var mv *types.DisableFastSnapshotRestoreErrorItem + var mv types.DisableFastSnapshotRestoreErrorItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -47543,7 +47725,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateError(v **typ } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -47559,7 +47741,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateError(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -47607,7 +47789,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(v * } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("error", t.Name.Local): @@ -47626,13 +47808,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(v * return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSet(v *[]*types.DisableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSet(v *[]types.DisableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DisableFastSnapshotRestoreStateErrorItem + var sv []types.DisableFastSnapshotRestoreStateErrorItem if *v == nil { - sv = make([]*types.DisableFastSnapshotRestoreStateErrorItem, 0) + sv = make([]types.DisableFastSnapshotRestoreStateErrorItem, 0) } else { sv = *v } @@ -47648,11 +47830,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSet(v *[ } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DisableFastSnapshotRestoreStateErrorItem + var col types.DisableFastSnapshotRestoreStateErrorItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -47665,23 +47849,25 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSet(v *[ return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSetUnwrapped(v *[]*types.DisableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.DisableFastSnapshotRestoreStateErrorItem +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSetUnwrapped(v *[]types.DisableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DisableFastSnapshotRestoreStateErrorItem if *v == nil { - sv = make([]*types.DisableFastSnapshotRestoreStateErrorItem, 0) + sv = make([]types.DisableFastSnapshotRestoreStateErrorItem, 0) } else { sv = *v } switch { default: - var mv *types.DisableFastSnapshotRestoreStateErrorItem + var mv types.DisableFastSnapshotRestoreStateErrorItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -47722,7 +47908,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("disabledTime", t.Name.Local): @@ -47739,7 +47925,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty if err != nil { return err } - sv.DisabledTime = &t + sv.DisabledTime = ptr.Time(t) } case strings.EqualFold("disablingTime", t.Name.Local): @@ -47756,7 +47942,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty if err != nil { return err } - sv.DisablingTime = &t + sv.DisablingTime = ptr.Time(t) } case strings.EqualFold("enabledTime", t.Name.Local): @@ -47773,7 +47959,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty if err != nil { return err } - sv.EnabledTime = &t + sv.EnabledTime = ptr.Time(t) } case strings.EqualFold("enablingTime", t.Name.Local): @@ -47790,7 +47976,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty if err != nil { return err } - sv.EnablingTime = &t + sv.EnablingTime = ptr.Time(t) } case strings.EqualFold("optimizingTime", t.Name.Local): @@ -47807,7 +47993,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty if err != nil { return err } - sv.OptimizingTime = &t + sv.OptimizingTime = ptr.Time(t) } case strings.EqualFold("ownerAlias", t.Name.Local): @@ -47823,7 +48009,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty } if val != nil { xtv := string(val) - sv.OwnerAlias = &xtv + sv.OwnerAlias = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -47839,7 +48025,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -47855,7 +48041,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -47884,7 +48070,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty } if val != nil { xtv := string(val) - sv.StateTransitionReason = &xtv + sv.StateTransitionReason = ptr.String(xtv) } default: @@ -47897,13 +48083,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSet(v *[]*types.DisableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSet(v *[]types.DisableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DisableFastSnapshotRestoreSuccessItem + var sv []types.DisableFastSnapshotRestoreSuccessItem if *v == nil { - sv = make([]*types.DisableFastSnapshotRestoreSuccessItem, 0) + sv = make([]types.DisableFastSnapshotRestoreSuccessItem, 0) } else { sv = *v } @@ -47919,11 +48105,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSet(v *[]*t } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DisableFastSnapshotRestoreSuccessItem + var col types.DisableFastSnapshotRestoreSuccessItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -47936,23 +48124,25 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSet(v *[]*t return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSetUnwrapped(v *[]*types.DisableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.DisableFastSnapshotRestoreSuccessItem +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSetUnwrapped(v *[]types.DisableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DisableFastSnapshotRestoreSuccessItem if *v == nil { - sv = make([]*types.DisableFastSnapshotRestoreSuccessItem, 0) + sv = make([]types.DisableFastSnapshotRestoreSuccessItem, 0) } else { sv = *v } switch { default: - var mv *types.DisableFastSnapshotRestoreSuccessItem + var mv types.DisableFastSnapshotRestoreSuccessItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -47993,7 +48183,7 @@ func awsEc2query_deserializeDocumentDiskImageDescription(v **types.DiskImageDesc } if val != nil { xtv := string(val) - sv.Checksum = &xtv + sv.Checksum = ptr.String(xtv) } case strings.EqualFold("format", t.Name.Local): @@ -48022,7 +48212,7 @@ func awsEc2query_deserializeDocumentDiskImageDescription(v **types.DiskImageDesc } if val != nil { xtv := string(val) - sv.ImportManifestUrl = &xtv + sv.ImportManifestUrl = ptr.String(xtv) } case strings.EqualFold("size", t.Name.Local): @@ -48039,7 +48229,7 @@ func awsEc2query_deserializeDocumentDiskImageDescription(v **types.DiskImageDesc if err != nil { return err } - sv.Size = &i64 + sv.Size = i64 } default: @@ -48087,7 +48277,7 @@ func awsEc2query_deserializeDocumentDiskImageVolumeDescription(v **types.DiskIma } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("size", t.Name.Local): @@ -48104,7 +48294,7 @@ func awsEc2query_deserializeDocumentDiskImageVolumeDescription(v **types.DiskIma if err != nil { return err } - sv.Size = &i64 + sv.Size = i64 } default: @@ -48170,7 +48360,7 @@ func awsEc2query_deserializeDocumentDiskInfo(v **types.DiskInfo, decoder smithyx if err != nil { return err } - sv.SizeInGB = &i64 + sv.SizeInGB = ptr.Int64(i64) } case strings.EqualFold("type", t.Name.Local): @@ -48196,13 +48386,13 @@ func awsEc2query_deserializeDocumentDiskInfo(v **types.DiskInfo, decoder smithyx return nil } -func awsEc2query_deserializeDocumentDiskInfoList(v *[]*types.DiskInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDiskInfoList(v *[]types.DiskInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DiskInfo + var sv []types.DiskInfo if *v == nil { - sv = make([]*types.DiskInfo, 0) + sv = make([]types.DiskInfo, 0) } else { sv = *v } @@ -48218,11 +48408,13 @@ func awsEc2query_deserializeDocumentDiskInfoList(v *[]*types.DiskInfo, decoder s } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DiskInfo + var col types.DiskInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDiskInfo(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDiskInfo(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -48235,23 +48427,25 @@ func awsEc2query_deserializeDocumentDiskInfoList(v *[]*types.DiskInfo, decoder s return nil } -func awsEc2query_deserializeDocumentDiskInfoListUnwrapped(v *[]*types.DiskInfo, decoder smithyxml.NodeDecoder) error { - var sv []*types.DiskInfo +func awsEc2query_deserializeDocumentDiskInfoListUnwrapped(v *[]types.DiskInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.DiskInfo if *v == nil { - sv = make([]*types.DiskInfo, 0) + sv = make([]types.DiskInfo, 0) } else { sv = *v } switch { default: - var mv *types.DiskInfo + var mv types.DiskInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDiskInfo(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDiskInfo(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -48292,7 +48486,7 @@ func awsEc2query_deserializeDocumentDnsEntry(v **types.DnsEntry, decoder smithyx } if val != nil { xtv := string(val) - sv.DnsName = &xtv + sv.DnsName = ptr.String(xtv) } case strings.EqualFold("hostedZoneId", t.Name.Local): @@ -48308,7 +48502,7 @@ func awsEc2query_deserializeDocumentDnsEntry(v **types.DnsEntry, decoder smithyx } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } default: @@ -48321,13 +48515,13 @@ func awsEc2query_deserializeDocumentDnsEntry(v **types.DnsEntry, decoder smithyx return nil } -func awsEc2query_deserializeDocumentDnsEntrySet(v *[]*types.DnsEntry, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDnsEntrySet(v *[]types.DnsEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DnsEntry + var sv []types.DnsEntry if *v == nil { - sv = make([]*types.DnsEntry, 0) + sv = make([]types.DnsEntry, 0) } else { sv = *v } @@ -48343,11 +48537,13 @@ func awsEc2query_deserializeDocumentDnsEntrySet(v *[]*types.DnsEntry, decoder sm } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.DnsEntry + var col types.DnsEntry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDnsEntry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDnsEntry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -48360,23 +48556,25 @@ func awsEc2query_deserializeDocumentDnsEntrySet(v *[]*types.DnsEntry, decoder sm return nil } -func awsEc2query_deserializeDocumentDnsEntrySetUnwrapped(v *[]*types.DnsEntry, decoder smithyxml.NodeDecoder) error { - var sv []*types.DnsEntry +func awsEc2query_deserializeDocumentDnsEntrySetUnwrapped(v *[]types.DnsEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.DnsEntry if *v == nil { - sv = make([]*types.DnsEntry, 0) + sv = make([]types.DnsEntry, 0) } else { sv = *v } switch { default: - var mv *types.DnsEntry + var mv types.DnsEntry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDnsEntry(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentDnsEntry(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -48417,7 +48615,7 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = &xtv + sv.DeleteOnTermination = xtv } case strings.EqualFold("encrypted", t.Name.Local): @@ -48433,7 +48631,7 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("iops", t.Name.Local): @@ -48450,7 +48648,7 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec if err != nil { return err } - sv.Iops = ptr.Int32(int32(i64)) + sv.Iops = int32(i64) } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -48466,7 +48664,7 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -48482,7 +48680,7 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("volumeSize", t.Name.Local): @@ -48499,7 +48697,7 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec if err != nil { return err } - sv.VolumeSize = ptr.Int32(int32(i64)) + sv.VolumeSize = int32(i64) } case strings.EqualFold("volumeType", t.Name.Local): @@ -48638,7 +48836,7 @@ func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstance if err != nil { return err } - sv.AttachTime = &t + sv.AttachTime = ptr.Time(t) } case strings.EqualFold("deleteOnTermination", t.Name.Local): @@ -48654,7 +48852,7 @@ func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstance if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = &xtv + sv.DeleteOnTermination = xtv } case strings.EqualFold("status", t.Name.Local): @@ -48683,7 +48881,7 @@ func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstance } if val != nil { xtv := string(val) - sv.VolumeId = &xtv + sv.VolumeId = ptr.String(xtv) } default: @@ -48766,7 +48964,7 @@ func awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo, if err != nil { return err } - sv.BaselineThroughputInMBps = &f64 + sv.BaselineThroughputInMBps = ptr.Float64(f64) } case strings.EqualFold("maximumBandwidthInMbps", t.Name.Local): @@ -48817,7 +49015,7 @@ func awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo, if err != nil { return err } - sv.MaximumThroughputInMBps = &f64 + sv.MaximumThroughputInMBps = ptr.Float64(f64) } default: @@ -48871,7 +49069,7 @@ func awsEc2query_deserializeDocumentEgressOnlyInternetGateway(v **types.EgressOn } if val != nil { xtv := string(val) - sv.EgressOnlyInternetGatewayId = &xtv + sv.EgressOnlyInternetGatewayId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -48890,13 +49088,13 @@ func awsEc2query_deserializeDocumentEgressOnlyInternetGateway(v **types.EgressOn return nil } -func awsEc2query_deserializeDocumentEgressOnlyInternetGatewayList(v *[]*types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEgressOnlyInternetGatewayList(v *[]types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EgressOnlyInternetGateway + var sv []types.EgressOnlyInternetGateway if *v == nil { - sv = make([]*types.EgressOnlyInternetGateway, 0) + sv = make([]types.EgressOnlyInternetGateway, 0) } else { sv = *v } @@ -48912,11 +49110,13 @@ func awsEc2query_deserializeDocumentEgressOnlyInternetGatewayList(v *[]*types.Eg } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.EgressOnlyInternetGateway + var col types.EgressOnlyInternetGateway nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEgressOnlyInternetGateway(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentEgressOnlyInternetGateway(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -48929,23 +49129,25 @@ func awsEc2query_deserializeDocumentEgressOnlyInternetGatewayList(v *[]*types.Eg return nil } -func awsEc2query_deserializeDocumentEgressOnlyInternetGatewayListUnwrapped(v *[]*types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error { - var sv []*types.EgressOnlyInternetGateway +func awsEc2query_deserializeDocumentEgressOnlyInternetGatewayListUnwrapped(v *[]types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error { + var sv []types.EgressOnlyInternetGateway if *v == nil { - sv = make([]*types.EgressOnlyInternetGateway, 0) + sv = make([]types.EgressOnlyInternetGateway, 0) } else { sv = *v } switch { default: - var mv *types.EgressOnlyInternetGateway + var mv types.EgressOnlyInternetGateway t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEgressOnlyInternetGateway(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentEgressOnlyInternetGateway(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -48986,7 +49188,7 @@ func awsEc2query_deserializeDocumentElasticGpuAssociation(v **types.ElasticGpuAs } if val != nil { xtv := string(val) - sv.ElasticGpuAssociationId = &xtv + sv.ElasticGpuAssociationId = ptr.String(xtv) } case strings.EqualFold("elasticGpuAssociationState", t.Name.Local): @@ -49002,7 +49204,7 @@ func awsEc2query_deserializeDocumentElasticGpuAssociation(v **types.ElasticGpuAs } if val != nil { xtv := string(val) - sv.ElasticGpuAssociationState = &xtv + sv.ElasticGpuAssociationState = ptr.String(xtv) } case strings.EqualFold("elasticGpuAssociationTime", t.Name.Local): @@ -49018,7 +49220,7 @@ func awsEc2query_deserializeDocumentElasticGpuAssociation(v **types.ElasticGpuAs } if val != nil { xtv := string(val) - sv.ElasticGpuAssociationTime = &xtv + sv.ElasticGpuAssociationTime = ptr.String(xtv) } case strings.EqualFold("elasticGpuId", t.Name.Local): @@ -49034,7 +49236,7 @@ func awsEc2query_deserializeDocumentElasticGpuAssociation(v **types.ElasticGpuAs } if val != nil { xtv := string(val) - sv.ElasticGpuId = &xtv + sv.ElasticGpuId = ptr.String(xtv) } default: @@ -49047,13 +49249,13 @@ func awsEc2query_deserializeDocumentElasticGpuAssociation(v **types.ElasticGpuAs return nil } -func awsEc2query_deserializeDocumentElasticGpuAssociationList(v *[]*types.ElasticGpuAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentElasticGpuAssociationList(v *[]types.ElasticGpuAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ElasticGpuAssociation + var sv []types.ElasticGpuAssociation if *v == nil { - sv = make([]*types.ElasticGpuAssociation, 0) + sv = make([]types.ElasticGpuAssociation, 0) } else { sv = *v } @@ -49069,11 +49271,13 @@ func awsEc2query_deserializeDocumentElasticGpuAssociationList(v *[]*types.Elasti } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ElasticGpuAssociation + var col types.ElasticGpuAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentElasticGpuAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentElasticGpuAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -49086,23 +49290,25 @@ func awsEc2query_deserializeDocumentElasticGpuAssociationList(v *[]*types.Elasti return nil } -func awsEc2query_deserializeDocumentElasticGpuAssociationListUnwrapped(v *[]*types.ElasticGpuAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.ElasticGpuAssociation +func awsEc2query_deserializeDocumentElasticGpuAssociationListUnwrapped(v *[]types.ElasticGpuAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.ElasticGpuAssociation if *v == nil { - sv = make([]*types.ElasticGpuAssociation, 0) + sv = make([]types.ElasticGpuAssociation, 0) } else { sv = *v } switch { default: - var mv *types.ElasticGpuAssociation + var mv types.ElasticGpuAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentElasticGpuAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentElasticGpuAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -49188,7 +49394,7 @@ func awsEc2query_deserializeDocumentElasticGpus(v **types.ElasticGpus, decoder s } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("elasticGpuHealth", t.Name.Local): @@ -49210,7 +49416,7 @@ func awsEc2query_deserializeDocumentElasticGpus(v **types.ElasticGpus, decoder s } if val != nil { xtv := string(val) - sv.ElasticGpuId = &xtv + sv.ElasticGpuId = ptr.String(xtv) } case strings.EqualFold("elasticGpuState", t.Name.Local): @@ -49239,7 +49445,7 @@ func awsEc2query_deserializeDocumentElasticGpus(v **types.ElasticGpus, decoder s } if val != nil { xtv := string(val) - sv.ElasticGpuType = &xtv + sv.ElasticGpuType = ptr.String(xtv) } case strings.EqualFold("instanceId", t.Name.Local): @@ -49255,7 +49461,7 @@ func awsEc2query_deserializeDocumentElasticGpus(v **types.ElasticGpus, decoder s } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -49274,13 +49480,13 @@ func awsEc2query_deserializeDocumentElasticGpus(v **types.ElasticGpus, decoder s return nil } -func awsEc2query_deserializeDocumentElasticGpuSet(v *[]*types.ElasticGpus, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentElasticGpuSet(v *[]types.ElasticGpus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ElasticGpus + var sv []types.ElasticGpus if *v == nil { - sv = make([]*types.ElasticGpus, 0) + sv = make([]types.ElasticGpus, 0) } else { sv = *v } @@ -49296,11 +49502,13 @@ func awsEc2query_deserializeDocumentElasticGpuSet(v *[]*types.ElasticGpus, decod } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ElasticGpus + var col types.ElasticGpus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentElasticGpus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentElasticGpus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -49313,23 +49521,25 @@ func awsEc2query_deserializeDocumentElasticGpuSet(v *[]*types.ElasticGpus, decod return nil } -func awsEc2query_deserializeDocumentElasticGpuSetUnwrapped(v *[]*types.ElasticGpus, decoder smithyxml.NodeDecoder) error { - var sv []*types.ElasticGpus +func awsEc2query_deserializeDocumentElasticGpuSetUnwrapped(v *[]types.ElasticGpus, decoder smithyxml.NodeDecoder) error { + var sv []types.ElasticGpus if *v == nil { - sv = make([]*types.ElasticGpus, 0) + sv = make([]types.ElasticGpus, 0) } else { sv = *v } switch { default: - var mv *types.ElasticGpus + var mv types.ElasticGpus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentElasticGpus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentElasticGpus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -49370,7 +49580,7 @@ func awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(v **types.El } if val != nil { xtv := string(val) - sv.Type = &xtv + sv.Type = ptr.String(xtv) } default: @@ -49383,13 +49593,13 @@ func awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(v **types.El return nil } -func awsEc2query_deserializeDocumentElasticGpuSpecificationResponseList(v *[]*types.ElasticGpuSpecificationResponse, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentElasticGpuSpecificationResponseList(v *[]types.ElasticGpuSpecificationResponse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ElasticGpuSpecificationResponse + var sv []types.ElasticGpuSpecificationResponse if *v == nil { - sv = make([]*types.ElasticGpuSpecificationResponse, 0) + sv = make([]types.ElasticGpuSpecificationResponse, 0) } else { sv = *v } @@ -49405,11 +49615,13 @@ func awsEc2query_deserializeDocumentElasticGpuSpecificationResponseList(v *[]*ty } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ElasticGpuSpecificationResponse + var col types.ElasticGpuSpecificationResponse nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -49422,23 +49634,25 @@ func awsEc2query_deserializeDocumentElasticGpuSpecificationResponseList(v *[]*ty return nil } -func awsEc2query_deserializeDocumentElasticGpuSpecificationResponseListUnwrapped(v *[]*types.ElasticGpuSpecificationResponse, decoder smithyxml.NodeDecoder) error { - var sv []*types.ElasticGpuSpecificationResponse +func awsEc2query_deserializeDocumentElasticGpuSpecificationResponseListUnwrapped(v *[]types.ElasticGpuSpecificationResponse, decoder smithyxml.NodeDecoder) error { + var sv []types.ElasticGpuSpecificationResponse if *v == nil { - sv = make([]*types.ElasticGpuSpecificationResponse, 0) + sv = make([]types.ElasticGpuSpecificationResponse, 0) } else { sv = *v } switch { default: - var mv *types.ElasticGpuSpecificationResponse + var mv types.ElasticGpuSpecificationResponse t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -49479,7 +49693,7 @@ func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(v **t } if val != nil { xtv := string(val) - sv.ElasticInferenceAcceleratorArn = &xtv + sv.ElasticInferenceAcceleratorArn = ptr.String(xtv) } case strings.EqualFold("elasticInferenceAcceleratorAssociationId", t.Name.Local): @@ -49495,7 +49709,7 @@ func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(v **t } if val != nil { xtv := string(val) - sv.ElasticInferenceAcceleratorAssociationId = &xtv + sv.ElasticInferenceAcceleratorAssociationId = ptr.String(xtv) } case strings.EqualFold("elasticInferenceAcceleratorAssociationState", t.Name.Local): @@ -49511,7 +49725,7 @@ func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(v **t } if val != nil { xtv := string(val) - sv.ElasticInferenceAcceleratorAssociationState = &xtv + sv.ElasticInferenceAcceleratorAssociationState = ptr.String(xtv) } case strings.EqualFold("elasticInferenceAcceleratorAssociationTime", t.Name.Local): @@ -49528,7 +49742,7 @@ func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(v **t if err != nil { return err } - sv.ElasticInferenceAcceleratorAssociationTime = &t + sv.ElasticInferenceAcceleratorAssociationTime = ptr.Time(t) } default: @@ -49541,13 +49755,13 @@ func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(v **t return nil } -func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationList(v *[]*types.ElasticInferenceAcceleratorAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationList(v *[]types.ElasticInferenceAcceleratorAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ElasticInferenceAcceleratorAssociation + var sv []types.ElasticInferenceAcceleratorAssociation if *v == nil { - sv = make([]*types.ElasticInferenceAcceleratorAssociation, 0) + sv = make([]types.ElasticInferenceAcceleratorAssociation, 0) } else { sv = *v } @@ -49563,11 +49777,13 @@ func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationList(v } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ElasticInferenceAcceleratorAssociation + var col types.ElasticInferenceAcceleratorAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -49580,23 +49796,25 @@ func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationList(v return nil } -func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationListUnwrapped(v *[]*types.ElasticInferenceAcceleratorAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.ElasticInferenceAcceleratorAssociation +func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationListUnwrapped(v *[]types.ElasticInferenceAcceleratorAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.ElasticInferenceAcceleratorAssociation if *v == nil { - sv = make([]*types.ElasticInferenceAcceleratorAssociation, 0) + sv = make([]types.ElasticInferenceAcceleratorAssociation, 0) } else { sv = *v } switch { default: - var mv *types.ElasticInferenceAcceleratorAssociation + var mv types.ElasticInferenceAcceleratorAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -49643,7 +49861,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(v **types } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } default: @@ -49656,13 +49874,13 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(v **types return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSet(v *[]*types.EnableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSet(v *[]types.EnableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EnableFastSnapshotRestoreErrorItem + var sv []types.EnableFastSnapshotRestoreErrorItem if *v == nil { - sv = make([]*types.EnableFastSnapshotRestoreErrorItem, 0) + sv = make([]types.EnableFastSnapshotRestoreErrorItem, 0) } else { sv = *v } @@ -49678,11 +49896,13 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSet(v *[]*type } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.EnableFastSnapshotRestoreErrorItem + var col types.EnableFastSnapshotRestoreErrorItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -49695,23 +49915,25 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSet(v *[]*type return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSetUnwrapped(v *[]*types.EnableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.EnableFastSnapshotRestoreErrorItem +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSetUnwrapped(v *[]types.EnableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.EnableFastSnapshotRestoreErrorItem if *v == nil { - sv = make([]*types.EnableFastSnapshotRestoreErrorItem, 0) + sv = make([]types.EnableFastSnapshotRestoreErrorItem, 0) } else { sv = *v } switch { default: - var mv *types.EnableFastSnapshotRestoreErrorItem + var mv types.EnableFastSnapshotRestoreErrorItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -49752,7 +49974,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateError(v **type } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -49768,7 +49990,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateError(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -49816,7 +50038,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(v ** } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("error", t.Name.Local): @@ -49835,13 +50057,13 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(v ** return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSet(v *[]*types.EnableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSet(v *[]types.EnableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EnableFastSnapshotRestoreStateErrorItem + var sv []types.EnableFastSnapshotRestoreStateErrorItem if *v == nil { - sv = make([]*types.EnableFastSnapshotRestoreStateErrorItem, 0) + sv = make([]types.EnableFastSnapshotRestoreStateErrorItem, 0) } else { sv = *v } @@ -49857,11 +50079,13 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSet(v *[] } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.EnableFastSnapshotRestoreStateErrorItem + var col types.EnableFastSnapshotRestoreStateErrorItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -49874,23 +50098,25 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSet(v *[] return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSetUnwrapped(v *[]*types.EnableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.EnableFastSnapshotRestoreStateErrorItem +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSetUnwrapped(v *[]types.EnableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.EnableFastSnapshotRestoreStateErrorItem if *v == nil { - sv = make([]*types.EnableFastSnapshotRestoreStateErrorItem, 0) + sv = make([]types.EnableFastSnapshotRestoreStateErrorItem, 0) } else { sv = *v } switch { default: - var mv *types.EnableFastSnapshotRestoreStateErrorItem + var mv types.EnableFastSnapshotRestoreStateErrorItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -49931,7 +50157,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("disabledTime", t.Name.Local): @@ -49948,7 +50174,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ if err != nil { return err } - sv.DisabledTime = &t + sv.DisabledTime = ptr.Time(t) } case strings.EqualFold("disablingTime", t.Name.Local): @@ -49965,7 +50191,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ if err != nil { return err } - sv.DisablingTime = &t + sv.DisablingTime = ptr.Time(t) } case strings.EqualFold("enabledTime", t.Name.Local): @@ -49982,7 +50208,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ if err != nil { return err } - sv.EnabledTime = &t + sv.EnabledTime = ptr.Time(t) } case strings.EqualFold("enablingTime", t.Name.Local): @@ -49999,7 +50225,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ if err != nil { return err } - sv.EnablingTime = &t + sv.EnablingTime = ptr.Time(t) } case strings.EqualFold("optimizingTime", t.Name.Local): @@ -50016,7 +50242,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ if err != nil { return err } - sv.OptimizingTime = &t + sv.OptimizingTime = ptr.Time(t) } case strings.EqualFold("ownerAlias", t.Name.Local): @@ -50032,7 +50258,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ } if val != nil { xtv := string(val) - sv.OwnerAlias = &xtv + sv.OwnerAlias = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -50048,7 +50274,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -50064,7 +50290,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -50093,7 +50319,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ } if val != nil { xtv := string(val) - sv.StateTransitionReason = &xtv + sv.StateTransitionReason = ptr.String(xtv) } default: @@ -50106,13 +50332,13 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSet(v *[]*types.EnableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSet(v *[]types.EnableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EnableFastSnapshotRestoreSuccessItem + var sv []types.EnableFastSnapshotRestoreSuccessItem if *v == nil { - sv = make([]*types.EnableFastSnapshotRestoreSuccessItem, 0) + sv = make([]types.EnableFastSnapshotRestoreSuccessItem, 0) } else { sv = *v } @@ -50128,11 +50354,13 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSet(v *[]*ty } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.EnableFastSnapshotRestoreSuccessItem + var col types.EnableFastSnapshotRestoreSuccessItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -50145,23 +50373,25 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSet(v *[]*ty return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSetUnwrapped(v *[]*types.EnableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.EnableFastSnapshotRestoreSuccessItem +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSetUnwrapped(v *[]types.EnableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { + var sv []types.EnableFastSnapshotRestoreSuccessItem if *v == nil { - sv = make([]*types.EnableFastSnapshotRestoreSuccessItem, 0) + sv = make([]types.EnableFastSnapshotRestoreSuccessItem, 0) } else { sv = *v } switch { default: - var mv *types.EnableFastSnapshotRestoreSuccessItem + var mv types.EnableFastSnapshotRestoreSuccessItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -50202,7 +50432,7 @@ func awsEc2query_deserializeDocumentEnclaveOptions(v **types.EnclaveOptions, dec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } default: @@ -50215,13 +50445,13 @@ func awsEc2query_deserializeDocumentEnclaveOptions(v **types.EnclaveOptions, dec return nil } -func awsEc2query_deserializeDocumentEndpointSet(v *[]*types.ClientVpnEndpoint, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEndpointSet(v *[]types.ClientVpnEndpoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClientVpnEndpoint + var sv []types.ClientVpnEndpoint if *v == nil { - sv = make([]*types.ClientVpnEndpoint, 0) + sv = make([]types.ClientVpnEndpoint, 0) } else { sv = *v } @@ -50237,11 +50467,13 @@ func awsEc2query_deserializeDocumentEndpointSet(v *[]*types.ClientVpnEndpoint, d } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ClientVpnEndpoint + var col types.ClientVpnEndpoint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnEndpoint(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentClientVpnEndpoint(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -50254,35 +50486,37 @@ func awsEc2query_deserializeDocumentEndpointSet(v *[]*types.ClientVpnEndpoint, d return nil } -func awsEc2query_deserializeDocumentEndpointSetUnwrapped(v *[]*types.ClientVpnEndpoint, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClientVpnEndpoint +func awsEc2query_deserializeDocumentEndpointSetUnwrapped(v *[]types.ClientVpnEndpoint, decoder smithyxml.NodeDecoder) error { + var sv []types.ClientVpnEndpoint if *v == nil { - sv = make([]*types.ClientVpnEndpoint, 0) + sv = make([]types.ClientVpnEndpoint, 0) } else { sv = *v } switch { default: - var mv *types.ClientVpnEndpoint + var mv types.ClientVpnEndpoint t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnEndpoint(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentClientVpnEndpoint(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentErrorSet(v *[]*types.ValidationError, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentErrorSet(v *[]types.ValidationError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ValidationError + var sv []types.ValidationError if *v == nil { - sv = make([]*types.ValidationError, 0) + sv = make([]types.ValidationError, 0) } else { sv = *v } @@ -50298,11 +50532,13 @@ func awsEc2query_deserializeDocumentErrorSet(v *[]*types.ValidationError, decode } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ValidationError + var col types.ValidationError nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentValidationError(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentValidationError(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -50315,23 +50551,25 @@ func awsEc2query_deserializeDocumentErrorSet(v *[]*types.ValidationError, decode return nil } -func awsEc2query_deserializeDocumentErrorSetUnwrapped(v *[]*types.ValidationError, decoder smithyxml.NodeDecoder) error { - var sv []*types.ValidationError +func awsEc2query_deserializeDocumentErrorSetUnwrapped(v *[]types.ValidationError, decoder smithyxml.NodeDecoder) error { + var sv []types.ValidationError if *v == nil { - sv = make([]*types.ValidationError, 0) + sv = make([]types.ValidationError, 0) } else { sv = *v } switch { default: - var mv *types.ValidationError + var mv types.ValidationError t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentValidationError(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentValidationError(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -50372,7 +50610,7 @@ func awsEc2query_deserializeDocumentEventInformation(v **types.EventInformation, } if val != nil { xtv := string(val) - sv.EventDescription = &xtv + sv.EventDescription = ptr.String(xtv) } case strings.EqualFold("eventSubType", t.Name.Local): @@ -50388,7 +50626,7 @@ func awsEc2query_deserializeDocumentEventInformation(v **types.EventInformation, } if val != nil { xtv := string(val) - sv.EventSubType = &xtv + sv.EventSubType = ptr.String(xtv) } case strings.EqualFold("instanceId", t.Name.Local): @@ -50404,7 +50642,7 @@ func awsEc2query_deserializeDocumentEventInformation(v **types.EventInformation, } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } default: @@ -50452,7 +50690,7 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("exportImageTaskId", t.Name.Local): @@ -50468,7 +50706,7 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d } if val != nil { xtv := string(val) - sv.ExportImageTaskId = &xtv + sv.ExportImageTaskId = ptr.String(xtv) } case strings.EqualFold("imageId", t.Name.Local): @@ -50484,7 +50722,7 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } case strings.EqualFold("progress", t.Name.Local): @@ -50500,7 +50738,7 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d } if val != nil { xtv := string(val) - sv.Progress = &xtv + sv.Progress = ptr.String(xtv) } case strings.EqualFold("s3ExportLocation", t.Name.Local): @@ -50522,7 +50760,7 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("statusMessage", t.Name.Local): @@ -50538,7 +50776,7 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -50557,13 +50795,13 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d return nil } -func awsEc2query_deserializeDocumentExportImageTaskList(v *[]*types.ExportImageTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentExportImageTaskList(v *[]types.ExportImageTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ExportImageTask + var sv []types.ExportImageTask if *v == nil { - sv = make([]*types.ExportImageTask, 0) + sv = make([]types.ExportImageTask, 0) } else { sv = *v } @@ -50579,11 +50817,13 @@ func awsEc2query_deserializeDocumentExportImageTaskList(v *[]*types.ExportImageT } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ExportImageTask + var col types.ExportImageTask nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentExportImageTask(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentExportImageTask(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -50596,23 +50836,25 @@ func awsEc2query_deserializeDocumentExportImageTaskList(v *[]*types.ExportImageT return nil } -func awsEc2query_deserializeDocumentExportImageTaskListUnwrapped(v *[]*types.ExportImageTask, decoder smithyxml.NodeDecoder) error { - var sv []*types.ExportImageTask +func awsEc2query_deserializeDocumentExportImageTaskListUnwrapped(v *[]types.ExportImageTask, decoder smithyxml.NodeDecoder) error { + var sv []types.ExportImageTask if *v == nil { - sv = make([]*types.ExportImageTask, 0) + sv = make([]types.ExportImageTask, 0) } else { sv = *v } switch { default: - var mv *types.ExportImageTask + var mv types.ExportImageTask t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentExportImageTask(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentExportImageTask(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -50653,7 +50895,7 @@ func awsEc2query_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("exportTaskId", t.Name.Local): @@ -50669,7 +50911,7 @@ func awsEc2query_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } if val != nil { xtv := string(val) - sv.ExportTaskId = &xtv + sv.ExportTaskId = ptr.String(xtv) } case strings.EqualFold("exportToS3", t.Name.Local): @@ -50710,7 +50952,7 @@ func awsEc2query_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -50729,13 +50971,13 @@ func awsEc2query_deserializeDocumentExportTask(v **types.ExportTask, decoder smi return nil } -func awsEc2query_deserializeDocumentExportTaskList(v *[]*types.ExportTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentExportTaskList(v *[]types.ExportTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ExportTask + var sv []types.ExportTask if *v == nil { - sv = make([]*types.ExportTask, 0) + sv = make([]types.ExportTask, 0) } else { sv = *v } @@ -50751,11 +50993,13 @@ func awsEc2query_deserializeDocumentExportTaskList(v *[]*types.ExportTask, decod } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ExportTask + var col types.ExportTask nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentExportTask(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentExportTask(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -50768,23 +51012,25 @@ func awsEc2query_deserializeDocumentExportTaskList(v *[]*types.ExportTask, decod return nil } -func awsEc2query_deserializeDocumentExportTaskListUnwrapped(v *[]*types.ExportTask, decoder smithyxml.NodeDecoder) error { - var sv []*types.ExportTask +func awsEc2query_deserializeDocumentExportTaskListUnwrapped(v *[]types.ExportTask, decoder smithyxml.NodeDecoder) error { + var sv []types.ExportTask if *v == nil { - sv = make([]*types.ExportTask, 0) + sv = make([]types.ExportTask, 0) } else { sv = *v } switch { default: - var mv *types.ExportTask + var mv types.ExportTask t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentExportTask(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentExportTask(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -50825,7 +51071,7 @@ func awsEc2query_deserializeDocumentExportTaskS3Location(v **types.ExportTaskS3L } if val != nil { xtv := string(val) - sv.S3Bucket = &xtv + sv.S3Bucket = ptr.String(xtv) } case strings.EqualFold("s3Prefix", t.Name.Local): @@ -50841,7 +51087,7 @@ func awsEc2query_deserializeDocumentExportTaskS3Location(v **types.ExportTaskS3L } if val != nil { xtv := string(val) - sv.S3Prefix = &xtv + sv.S3Prefix = ptr.String(xtv) } default: @@ -50915,7 +51161,7 @@ func awsEc2query_deserializeDocumentExportToS3Task(v **types.ExportToS3Task, dec } if val != nil { xtv := string(val) - sv.S3Bucket = &xtv + sv.S3Bucket = ptr.String(xtv) } case strings.EqualFold("s3Key", t.Name.Local): @@ -50931,7 +51177,7 @@ func awsEc2query_deserializeDocumentExportToS3Task(v **types.ExportToS3Task, dec } if val != nil { xtv := string(val) - sv.S3Key = &xtv + sv.S3Key = ptr.String(xtv) } default: @@ -50985,7 +51231,7 @@ func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(v **types.Faile } if val != nil { xtv := string(val) - sv.ReservedInstancesId = &xtv + sv.ReservedInstancesId = ptr.String(xtv) } default: @@ -50998,13 +51244,13 @@ func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(v **types.Faile return nil } -func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSet(v *[]*types.FailedQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSet(v *[]types.FailedQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.FailedQueuedPurchaseDeletion + var sv []types.FailedQueuedPurchaseDeletion if *v == nil { - sv = make([]*types.FailedQueuedPurchaseDeletion, 0) + sv = make([]types.FailedQueuedPurchaseDeletion, 0) } else { sv = *v } @@ -51020,11 +51266,13 @@ func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSet(v *[]*types. } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.FailedQueuedPurchaseDeletion + var col types.FailedQueuedPurchaseDeletion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -51037,23 +51285,25 @@ func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSet(v *[]*types. return nil } -func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSetUnwrapped(v *[]*types.FailedQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { - var sv []*types.FailedQueuedPurchaseDeletion +func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSetUnwrapped(v *[]types.FailedQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { + var sv []types.FailedQueuedPurchaseDeletion if *v == nil { - sv = make([]*types.FailedQueuedPurchaseDeletion, 0) + sv = make([]types.FailedQueuedPurchaseDeletion, 0) } else { sv = *v } switch { default: - var mv *types.FailedQueuedPurchaseDeletion + var mv types.FailedQueuedPurchaseDeletion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -51094,7 +51344,7 @@ func awsEc2query_deserializeDocumentFederatedAuthentication(v **types.FederatedA } if val != nil { xtv := string(val) - sv.SamlProviderArn = &xtv + sv.SamlProviderArn = ptr.String(xtv) } case strings.EqualFold("selfServiceSamlProviderArn", t.Name.Local): @@ -51110,7 +51360,7 @@ func awsEc2query_deserializeDocumentFederatedAuthentication(v **types.FederatedA } if val != nil { xtv := string(val) - sv.SelfServiceSamlProviderArn = &xtv + sv.SelfServiceSamlProviderArn = ptr.String(xtv) } default: @@ -51171,7 +51421,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("createTime", t.Name.Local): @@ -51188,7 +51438,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith if err != nil { return err } - sv.CreateTime = &t + sv.CreateTime = ptr.Time(t) } case strings.EqualFold("errorSet", t.Name.Local): @@ -51223,7 +51473,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith } if val != nil { xtv := string(val) - sv.FleetId = &xtv + sv.FleetId = ptr.String(xtv) } case strings.EqualFold("fleetState", t.Name.Local): @@ -51253,7 +51503,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith if err != nil { return err } - sv.FulfilledCapacity = &f64 + sv.FulfilledCapacity = f64 } case strings.EqualFold("fulfilledOnDemandCapacity", t.Name.Local): @@ -51270,7 +51520,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith if err != nil { return err } - sv.FulfilledOnDemandCapacity = &f64 + sv.FulfilledOnDemandCapacity = f64 } case strings.EqualFold("fleetInstanceSet", t.Name.Local): @@ -51304,7 +51554,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReplaceUnhealthyInstances = &xtv + sv.ReplaceUnhealthyInstances = xtv } case strings.EqualFold("spotOptions", t.Name.Local): @@ -51338,7 +51588,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.TerminateInstancesWithExpiration = &xtv + sv.TerminateInstancesWithExpiration = xtv } case strings.EqualFold("type", t.Name.Local): @@ -51368,7 +51618,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith if err != nil { return err } - sv.ValidFrom = &t + sv.ValidFrom = ptr.Time(t) } case strings.EqualFold("validUntil", t.Name.Local): @@ -51385,7 +51635,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith if err != nil { return err } - sv.ValidUntil = &t + sv.ValidUntil = ptr.Time(t) } default: @@ -51442,13 +51692,13 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(v **types.FleetLau return nil } -func awsEc2query_deserializeDocumentFleetLaunchTemplateConfigList(v *[]*types.FleetLaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFleetLaunchTemplateConfigList(v *[]types.FleetLaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.FleetLaunchTemplateConfig + var sv []types.FleetLaunchTemplateConfig if *v == nil { - sv = make([]*types.FleetLaunchTemplateConfig, 0) + sv = make([]types.FleetLaunchTemplateConfig, 0) } else { sv = *v } @@ -51464,11 +51714,13 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateConfigList(v *[]*types.Fl } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.FleetLaunchTemplateConfig + var col types.FleetLaunchTemplateConfig nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -51481,23 +51733,25 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateConfigList(v *[]*types.Fl return nil } -func awsEc2query_deserializeDocumentFleetLaunchTemplateConfigListUnwrapped(v *[]*types.FleetLaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { - var sv []*types.FleetLaunchTemplateConfig +func awsEc2query_deserializeDocumentFleetLaunchTemplateConfigListUnwrapped(v *[]types.FleetLaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { + var sv []types.FleetLaunchTemplateConfig if *v == nil { - sv = make([]*types.FleetLaunchTemplateConfig, 0) + sv = make([]types.FleetLaunchTemplateConfig, 0) } else { sv = *v } switch { default: - var mv *types.FleetLaunchTemplateConfig + var mv types.FleetLaunchTemplateConfig t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -51538,7 +51792,7 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.Fleet } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("instanceType", t.Name.Local): @@ -51567,7 +51821,7 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.Fleet } if val != nil { xtv := string(val) - sv.MaxPrice = &xtv + sv.MaxPrice = ptr.String(xtv) } case strings.EqualFold("placement", t.Name.Local): @@ -51590,7 +51844,7 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.Fleet if err != nil { return err } - sv.Priority = &f64 + sv.Priority = f64 } case strings.EqualFold("subnetId", t.Name.Local): @@ -51606,7 +51860,7 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.Fleet } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } case strings.EqualFold("weightedCapacity", t.Name.Local): @@ -51623,7 +51877,7 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.Fleet if err != nil { return err } - sv.WeightedCapacity = &f64 + sv.WeightedCapacity = f64 } default: @@ -51636,13 +51890,13 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.Fleet return nil } -func awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesList(v *[]*types.FleetLaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesList(v *[]types.FleetLaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.FleetLaunchTemplateOverrides + var sv []types.FleetLaunchTemplateOverrides if *v == nil { - sv = make([]*types.FleetLaunchTemplateOverrides, 0) + sv = make([]types.FleetLaunchTemplateOverrides, 0) } else { sv = *v } @@ -51658,11 +51912,13 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesList(v *[]*types } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.FleetLaunchTemplateOverrides + var col types.FleetLaunchTemplateOverrides nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -51675,23 +51931,25 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesList(v *[]*types return nil } -func awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesListUnwrapped(v *[]*types.FleetLaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { - var sv []*types.FleetLaunchTemplateOverrides +func awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesListUnwrapped(v *[]types.FleetLaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { + var sv []types.FleetLaunchTemplateOverrides if *v == nil { - sv = make([]*types.FleetLaunchTemplateOverrides, 0) + sv = make([]types.FleetLaunchTemplateOverrides, 0) } else { sv = *v } switch { default: - var mv *types.FleetLaunchTemplateOverrides + var mv types.FleetLaunchTemplateOverrides t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -51732,7 +51990,7 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(v **types.F } if val != nil { xtv := string(val) - sv.LaunchTemplateId = &xtv + sv.LaunchTemplateId = ptr.String(xtv) } case strings.EqualFold("launchTemplateName", t.Name.Local): @@ -51748,7 +52006,7 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(v **types.F } if val != nil { xtv := string(val) - sv.LaunchTemplateName = &xtv + sv.LaunchTemplateName = ptr.String(xtv) } case strings.EqualFold("version", t.Name.Local): @@ -51764,7 +52022,7 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(v **types.F } if val != nil { xtv := string(val) - sv.Version = &xtv + sv.Version = ptr.String(xtv) } default: @@ -51777,13 +52035,13 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(v **types.F return nil } -func awsEc2query_deserializeDocumentFleetSet(v *[]*types.FleetData, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFleetSet(v *[]types.FleetData, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.FleetData + var sv []types.FleetData if *v == nil { - sv = make([]*types.FleetData, 0) + sv = make([]types.FleetData, 0) } else { sv = *v } @@ -51799,11 +52057,13 @@ func awsEc2query_deserializeDocumentFleetSet(v *[]*types.FleetData, decoder smit } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.FleetData + var col types.FleetData nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFleetData(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentFleetData(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -51816,23 +52076,25 @@ func awsEc2query_deserializeDocumentFleetSet(v *[]*types.FleetData, decoder smit return nil } -func awsEc2query_deserializeDocumentFleetSetUnwrapped(v *[]*types.FleetData, decoder smithyxml.NodeDecoder) error { - var sv []*types.FleetData +func awsEc2query_deserializeDocumentFleetSetUnwrapped(v *[]types.FleetData, decoder smithyxml.NodeDecoder) error { + var sv []types.FleetData if *v == nil { - sv = make([]*types.FleetData, 0) + sv = make([]types.FleetData, 0) } else { sv = *v } switch { default: - var mv *types.FleetData + var mv types.FleetData t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFleetData(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentFleetData(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -51874,7 +52136,7 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case strings.EqualFold("deliverLogsErrorMessage", t.Name.Local): @@ -51890,7 +52152,7 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } if val != nil { xtv := string(val) - sv.DeliverLogsErrorMessage = &xtv + sv.DeliverLogsErrorMessage = ptr.String(xtv) } case strings.EqualFold("deliverLogsPermissionArn", t.Name.Local): @@ -51906,7 +52168,7 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } if val != nil { xtv := string(val) - sv.DeliverLogsPermissionArn = &xtv + sv.DeliverLogsPermissionArn = ptr.String(xtv) } case strings.EqualFold("deliverLogsStatus", t.Name.Local): @@ -51922,7 +52184,7 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } if val != nil { xtv := string(val) - sv.DeliverLogsStatus = &xtv + sv.DeliverLogsStatus = ptr.String(xtv) } case strings.EqualFold("flowLogId", t.Name.Local): @@ -51938,7 +52200,7 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } if val != nil { xtv := string(val) - sv.FlowLogId = &xtv + sv.FlowLogId = ptr.String(xtv) } case strings.EqualFold("flowLogStatus", t.Name.Local): @@ -51954,7 +52216,7 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } if val != nil { xtv := string(val) - sv.FlowLogStatus = &xtv + sv.FlowLogStatus = ptr.String(xtv) } case strings.EqualFold("logDestination", t.Name.Local): @@ -51970,7 +52232,7 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } if val != nil { xtv := string(val) - sv.LogDestination = &xtv + sv.LogDestination = ptr.String(xtv) } case strings.EqualFold("logDestinationType", t.Name.Local): @@ -51999,7 +52261,7 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } if val != nil { xtv := string(val) - sv.LogFormat = &xtv + sv.LogFormat = ptr.String(xtv) } case strings.EqualFold("logGroupName", t.Name.Local): @@ -52015,7 +52277,7 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } if val != nil { xtv := string(val) - sv.LogGroupName = &xtv + sv.LogGroupName = ptr.String(xtv) } case strings.EqualFold("maxAggregationInterval", t.Name.Local): @@ -52032,7 +52294,7 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml if err != nil { return err } - sv.MaxAggregationInterval = ptr.Int32(int32(i64)) + sv.MaxAggregationInterval = int32(i64) } case strings.EqualFold("resourceId", t.Name.Local): @@ -52048,7 +52310,7 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -52080,13 +52342,13 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml return nil } -func awsEc2query_deserializeDocumentFlowLogSet(v *[]*types.FlowLog, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFlowLogSet(v *[]types.FlowLog, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.FlowLog + var sv []types.FlowLog if *v == nil { - sv = make([]*types.FlowLog, 0) + sv = make([]types.FlowLog, 0) } else { sv = *v } @@ -52102,11 +52364,13 @@ func awsEc2query_deserializeDocumentFlowLogSet(v *[]*types.FlowLog, decoder smit } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.FlowLog + var col types.FlowLog nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFlowLog(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentFlowLog(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -52119,23 +52383,25 @@ func awsEc2query_deserializeDocumentFlowLogSet(v *[]*types.FlowLog, decoder smit return nil } -func awsEc2query_deserializeDocumentFlowLogSetUnwrapped(v *[]*types.FlowLog, decoder smithyxml.NodeDecoder) error { - var sv []*types.FlowLog +func awsEc2query_deserializeDocumentFlowLogSetUnwrapped(v *[]types.FlowLog, decoder smithyxml.NodeDecoder) error { + var sv []types.FlowLog if *v == nil { - sv = make([]*types.FlowLog, 0) + sv = make([]types.FlowLog, 0) } else { sv = *v } switch { default: - var mv *types.FlowLog + var mv types.FlowLog t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFlowLog(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentFlowLog(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -52193,7 +52459,7 @@ func awsEc2query_deserializeDocumentFpgaDeviceInfo(v **types.FpgaDeviceInfo, dec } if val != nil { xtv := string(val) - sv.Manufacturer = &xtv + sv.Manufacturer = ptr.String(xtv) } case strings.EqualFold("memoryInfo", t.Name.Local): @@ -52215,7 +52481,7 @@ func awsEc2query_deserializeDocumentFpgaDeviceInfo(v **types.FpgaDeviceInfo, dec } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -52228,13 +52494,13 @@ func awsEc2query_deserializeDocumentFpgaDeviceInfo(v **types.FpgaDeviceInfo, dec return nil } -func awsEc2query_deserializeDocumentFpgaDeviceInfoList(v *[]*types.FpgaDeviceInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFpgaDeviceInfoList(v *[]types.FpgaDeviceInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.FpgaDeviceInfo + var sv []types.FpgaDeviceInfo if *v == nil { - sv = make([]*types.FpgaDeviceInfo, 0) + sv = make([]types.FpgaDeviceInfo, 0) } else { sv = *v } @@ -52250,11 +52516,13 @@ func awsEc2query_deserializeDocumentFpgaDeviceInfoList(v *[]*types.FpgaDeviceInf } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.FpgaDeviceInfo + var col types.FpgaDeviceInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFpgaDeviceInfo(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentFpgaDeviceInfo(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -52267,23 +52535,25 @@ func awsEc2query_deserializeDocumentFpgaDeviceInfoList(v *[]*types.FpgaDeviceInf return nil } -func awsEc2query_deserializeDocumentFpgaDeviceInfoListUnwrapped(v *[]*types.FpgaDeviceInfo, decoder smithyxml.NodeDecoder) error { - var sv []*types.FpgaDeviceInfo +func awsEc2query_deserializeDocumentFpgaDeviceInfoListUnwrapped(v *[]types.FpgaDeviceInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.FpgaDeviceInfo if *v == nil { - sv = make([]*types.FpgaDeviceInfo, 0) + sv = make([]types.FpgaDeviceInfo, 0) } else { sv = *v } switch { default: - var mv *types.FpgaDeviceInfo + var mv types.FpgaDeviceInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFpgaDeviceInfo(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentFpgaDeviceInfo(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -52374,7 +52644,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith if err != nil { return err } - sv.CreateTime = &t + sv.CreateTime = ptr.Time(t) } case strings.EqualFold("dataRetentionSupport", t.Name.Local): @@ -52390,7 +52660,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DataRetentionSupport = &xtv + sv.DataRetentionSupport = xtv } case strings.EqualFold("description", t.Name.Local): @@ -52406,7 +52676,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("fpgaImageGlobalId", t.Name.Local): @@ -52422,7 +52692,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith } if val != nil { xtv := string(val) - sv.FpgaImageGlobalId = &xtv + sv.FpgaImageGlobalId = ptr.String(xtv) } case strings.EqualFold("fpgaImageId", t.Name.Local): @@ -52438,7 +52708,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith } if val != nil { xtv := string(val) - sv.FpgaImageId = &xtv + sv.FpgaImageId = ptr.String(xtv) } case strings.EqualFold("name", t.Name.Local): @@ -52454,7 +52724,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("ownerAlias", t.Name.Local): @@ -52470,7 +52740,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith } if val != nil { xtv := string(val) - sv.OwnerAlias = &xtv + sv.OwnerAlias = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -52486,7 +52756,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("pciId", t.Name.Local): @@ -52514,7 +52784,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Public = &xtv + sv.Public = xtv } case strings.EqualFold("shellVersion", t.Name.Local): @@ -52530,7 +52800,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith } if val != nil { xtv := string(val) - sv.ShellVersion = &xtv + sv.ShellVersion = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -52559,7 +52829,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith if err != nil { return err } - sv.UpdateTime = &t + sv.UpdateTime = ptr.Time(t) } default: @@ -52607,7 +52877,7 @@ func awsEc2query_deserializeDocumentFpgaImageAttribute(v **types.FpgaImageAttrib } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("fpgaImageId", t.Name.Local): @@ -52623,7 +52893,7 @@ func awsEc2query_deserializeDocumentFpgaImageAttribute(v **types.FpgaImageAttrib } if val != nil { xtv := string(val) - sv.FpgaImageId = &xtv + sv.FpgaImageId = ptr.String(xtv) } case strings.EqualFold("loadPermissions", t.Name.Local): @@ -52645,7 +52915,7 @@ func awsEc2query_deserializeDocumentFpgaImageAttribute(v **types.FpgaImageAttrib } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("productCodes", t.Name.Local): @@ -52664,13 +52934,13 @@ func awsEc2query_deserializeDocumentFpgaImageAttribute(v **types.FpgaImageAttrib return nil } -func awsEc2query_deserializeDocumentFpgaImageList(v *[]*types.FpgaImage, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFpgaImageList(v *[]types.FpgaImage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.FpgaImage + var sv []types.FpgaImage if *v == nil { - sv = make([]*types.FpgaImage, 0) + sv = make([]types.FpgaImage, 0) } else { sv = *v } @@ -52686,11 +52956,13 @@ func awsEc2query_deserializeDocumentFpgaImageList(v *[]*types.FpgaImage, decoder } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.FpgaImage + var col types.FpgaImage nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFpgaImage(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentFpgaImage(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -52703,23 +52975,25 @@ func awsEc2query_deserializeDocumentFpgaImageList(v *[]*types.FpgaImage, decoder return nil } -func awsEc2query_deserializeDocumentFpgaImageListUnwrapped(v *[]*types.FpgaImage, decoder smithyxml.NodeDecoder) error { - var sv []*types.FpgaImage +func awsEc2query_deserializeDocumentFpgaImageListUnwrapped(v *[]types.FpgaImage, decoder smithyxml.NodeDecoder) error { + var sv []types.FpgaImage if *v == nil { - sv = make([]*types.FpgaImage, 0) + sv = make([]types.FpgaImage, 0) } else { sv = *v } switch { default: - var mv *types.FpgaImage + var mv types.FpgaImage t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFpgaImage(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentFpgaImage(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -52773,7 +53047,7 @@ func awsEc2query_deserializeDocumentFpgaImageState(v **types.FpgaImageState, dec } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -52893,7 +53167,7 @@ func awsEc2query_deserializeDocumentGpuDeviceInfo(v **types.GpuDeviceInfo, decod } if val != nil { xtv := string(val) - sv.Manufacturer = &xtv + sv.Manufacturer = ptr.String(xtv) } case strings.EqualFold("memoryInfo", t.Name.Local): @@ -52915,7 +53189,7 @@ func awsEc2query_deserializeDocumentGpuDeviceInfo(v **types.GpuDeviceInfo, decod } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -52928,13 +53202,13 @@ func awsEc2query_deserializeDocumentGpuDeviceInfo(v **types.GpuDeviceInfo, decod return nil } -func awsEc2query_deserializeDocumentGpuDeviceInfoList(v *[]*types.GpuDeviceInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentGpuDeviceInfoList(v *[]types.GpuDeviceInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.GpuDeviceInfo + var sv []types.GpuDeviceInfo if *v == nil { - sv = make([]*types.GpuDeviceInfo, 0) + sv = make([]types.GpuDeviceInfo, 0) } else { sv = *v } @@ -52950,11 +53224,13 @@ func awsEc2query_deserializeDocumentGpuDeviceInfoList(v *[]*types.GpuDeviceInfo, } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.GpuDeviceInfo + var col types.GpuDeviceInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentGpuDeviceInfo(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentGpuDeviceInfo(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -52967,23 +53243,25 @@ func awsEc2query_deserializeDocumentGpuDeviceInfoList(v *[]*types.GpuDeviceInfo, return nil } -func awsEc2query_deserializeDocumentGpuDeviceInfoListUnwrapped(v *[]*types.GpuDeviceInfo, decoder smithyxml.NodeDecoder) error { - var sv []*types.GpuDeviceInfo +func awsEc2query_deserializeDocumentGpuDeviceInfoListUnwrapped(v *[]types.GpuDeviceInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.GpuDeviceInfo if *v == nil { - sv = make([]*types.GpuDeviceInfo, 0) + sv = make([]types.GpuDeviceInfo, 0) } else { sv = *v } switch { default: - var mv *types.GpuDeviceInfo + var mv types.GpuDeviceInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentGpuDeviceInfo(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentGpuDeviceInfo(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -53128,7 +53406,7 @@ func awsEc2query_deserializeDocumentGroupIdentifier(v **types.GroupIdentifier, d } if val != nil { xtv := string(val) - sv.GroupId = &xtv + sv.GroupId = ptr.String(xtv) } case strings.EqualFold("groupName", t.Name.Local): @@ -53144,7 +53422,7 @@ func awsEc2query_deserializeDocumentGroupIdentifier(v **types.GroupIdentifier, d } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } default: @@ -53157,13 +53435,13 @@ func awsEc2query_deserializeDocumentGroupIdentifier(v **types.GroupIdentifier, d return nil } -func awsEc2query_deserializeDocumentGroupIdentifierList(v *[]*types.GroupIdentifier, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentGroupIdentifierList(v *[]types.GroupIdentifier, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.GroupIdentifier + var sv []types.GroupIdentifier if *v == nil { - sv = make([]*types.GroupIdentifier, 0) + sv = make([]types.GroupIdentifier, 0) } else { sv = *v } @@ -53179,11 +53457,13 @@ func awsEc2query_deserializeDocumentGroupIdentifierList(v *[]*types.GroupIdentif } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.GroupIdentifier + var col types.GroupIdentifier nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentGroupIdentifier(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentGroupIdentifier(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -53196,35 +53476,37 @@ func awsEc2query_deserializeDocumentGroupIdentifierList(v *[]*types.GroupIdentif return nil } -func awsEc2query_deserializeDocumentGroupIdentifierListUnwrapped(v *[]*types.GroupIdentifier, decoder smithyxml.NodeDecoder) error { - var sv []*types.GroupIdentifier +func awsEc2query_deserializeDocumentGroupIdentifierListUnwrapped(v *[]types.GroupIdentifier, decoder smithyxml.NodeDecoder) error { + var sv []types.GroupIdentifier if *v == nil { - sv = make([]*types.GroupIdentifier, 0) + sv = make([]types.GroupIdentifier, 0) } else { sv = *v } switch { default: - var mv *types.GroupIdentifier + var mv types.GroupIdentifier t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentGroupIdentifier(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentGroupIdentifier(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentGroupIdentifierSet(v *[]*types.SecurityGroupIdentifier, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentGroupIdentifierSet(v *[]types.SecurityGroupIdentifier, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SecurityGroupIdentifier + var sv []types.SecurityGroupIdentifier if *v == nil { - sv = make([]*types.SecurityGroupIdentifier, 0) + sv = make([]types.SecurityGroupIdentifier, 0) } else { sv = *v } @@ -53240,11 +53522,13 @@ func awsEc2query_deserializeDocumentGroupIdentifierSet(v *[]*types.SecurityGroup } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SecurityGroupIdentifier + var col types.SecurityGroupIdentifier nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSecurityGroupIdentifier(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSecurityGroupIdentifier(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -53257,35 +53541,37 @@ func awsEc2query_deserializeDocumentGroupIdentifierSet(v *[]*types.SecurityGroup return nil } -func awsEc2query_deserializeDocumentGroupIdentifierSetUnwrapped(v *[]*types.SecurityGroupIdentifier, decoder smithyxml.NodeDecoder) error { - var sv []*types.SecurityGroupIdentifier +func awsEc2query_deserializeDocumentGroupIdentifierSetUnwrapped(v *[]types.SecurityGroupIdentifier, decoder smithyxml.NodeDecoder) error { + var sv []types.SecurityGroupIdentifier if *v == nil { - sv = make([]*types.SecurityGroupIdentifier, 0) + sv = make([]types.SecurityGroupIdentifier, 0) } else { sv = *v } switch { default: - var mv *types.SecurityGroupIdentifier + var mv types.SecurityGroupIdentifier t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSecurityGroupIdentifier(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSecurityGroupIdentifier(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentGroupIdStringList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentGroupIdStringList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -53303,20 +53589,17 @@ func awsEc2query_deserializeDocumentGroupIdStringList(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("groupId", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -53329,17 +53612,17 @@ func awsEc2query_deserializeDocumentGroupIdStringList(v *[]*string, decoder smit return nil } -func awsEc2query_deserializeDocumentGroupIdStringListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentGroupIdStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -53347,14 +53630,11 @@ func awsEc2query_deserializeDocumentGroupIdStringListUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -53396,7 +53676,7 @@ func awsEc2query_deserializeDocumentHibernationOptions(v **types.HibernationOpti if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Configured = &xtv + sv.Configured = xtv } default: @@ -53464,7 +53744,7 @@ func awsEc2query_deserializeDocumentHistoryRecord(v **types.HistoryRecord, decod if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -53532,7 +53812,7 @@ func awsEc2query_deserializeDocumentHistoryRecordEntry(v **types.HistoryRecordEn if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -53545,13 +53825,13 @@ func awsEc2query_deserializeDocumentHistoryRecordEntry(v **types.HistoryRecordEn return nil } -func awsEc2query_deserializeDocumentHistoryRecords(v *[]*types.HistoryRecord, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHistoryRecords(v *[]types.HistoryRecord, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.HistoryRecord + var sv []types.HistoryRecord if *v == nil { - sv = make([]*types.HistoryRecord, 0) + sv = make([]types.HistoryRecord, 0) } else { sv = *v } @@ -53567,11 +53847,13 @@ func awsEc2query_deserializeDocumentHistoryRecords(v *[]*types.HistoryRecord, de } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.HistoryRecord + var col types.HistoryRecord nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHistoryRecord(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentHistoryRecord(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -53584,35 +53866,37 @@ func awsEc2query_deserializeDocumentHistoryRecords(v *[]*types.HistoryRecord, de return nil } -func awsEc2query_deserializeDocumentHistoryRecordsUnwrapped(v *[]*types.HistoryRecord, decoder smithyxml.NodeDecoder) error { - var sv []*types.HistoryRecord +func awsEc2query_deserializeDocumentHistoryRecordsUnwrapped(v *[]types.HistoryRecord, decoder smithyxml.NodeDecoder) error { + var sv []types.HistoryRecord if *v == nil { - sv = make([]*types.HistoryRecord, 0) + sv = make([]types.HistoryRecord, 0) } else { sv = *v } switch { default: - var mv *types.HistoryRecord + var mv types.HistoryRecord t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHistoryRecord(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentHistoryRecord(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentHistoryRecordSet(v *[]*types.HistoryRecordEntry, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHistoryRecordSet(v *[]types.HistoryRecordEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.HistoryRecordEntry + var sv []types.HistoryRecordEntry if *v == nil { - sv = make([]*types.HistoryRecordEntry, 0) + sv = make([]types.HistoryRecordEntry, 0) } else { sv = *v } @@ -53628,11 +53912,13 @@ func awsEc2query_deserializeDocumentHistoryRecordSet(v *[]*types.HistoryRecordEn } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.HistoryRecordEntry + var col types.HistoryRecordEntry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHistoryRecordEntry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentHistoryRecordEntry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -53645,23 +53931,25 @@ func awsEc2query_deserializeDocumentHistoryRecordSet(v *[]*types.HistoryRecordEn return nil } -func awsEc2query_deserializeDocumentHistoryRecordSetUnwrapped(v *[]*types.HistoryRecordEntry, decoder smithyxml.NodeDecoder) error { - var sv []*types.HistoryRecordEntry +func awsEc2query_deserializeDocumentHistoryRecordSetUnwrapped(v *[]types.HistoryRecordEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.HistoryRecordEntry if *v == nil { - sv = make([]*types.HistoryRecordEntry, 0) + sv = make([]types.HistoryRecordEntry, 0) } else { sv = *v } switch { default: - var mv *types.HistoryRecordEntry + var mv types.HistoryRecordEntry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHistoryRecordEntry(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentHistoryRecordEntry(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -53703,7 +53991,7 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD if err != nil { return err } - sv.AllocationTime = &t + sv.AllocationTime = ptr.Time(t) } case strings.EqualFold("allowsMultipleInstanceTypes", t.Name.Local): @@ -53745,7 +54033,7 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("availabilityZoneId", t.Name.Local): @@ -53761,7 +54049,7 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.AvailabilityZoneId = &xtv + sv.AvailabilityZoneId = ptr.String(xtv) } case strings.EqualFold("availableCapacity", t.Name.Local): @@ -53783,7 +54071,7 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("hostId", t.Name.Local): @@ -53799,7 +54087,7 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.HostId = &xtv + sv.HostId = ptr.String(xtv) } case strings.EqualFold("hostProperties", t.Name.Local): @@ -53834,7 +54122,7 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.HostReservationId = &xtv + sv.HostReservationId = ptr.String(xtv) } case strings.EqualFold("instances", t.Name.Local): @@ -53856,7 +54144,7 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MemberOfServiceLinkedResourceGroup = &xtv + sv.MemberOfServiceLinkedResourceGroup = xtv } case strings.EqualFold("ownerId", t.Name.Local): @@ -53872,7 +54160,7 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("releaseTime", t.Name.Local): @@ -53889,7 +54177,7 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD if err != nil { return err } - sv.ReleaseTime = &t + sv.ReleaseTime = ptr.Time(t) } case strings.EqualFold("state", t.Name.Local): @@ -53956,7 +54244,7 @@ func awsEc2query_deserializeDocumentHostInstance(v **types.HostInstance, decoder } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("instanceType", t.Name.Local): @@ -53972,7 +54260,7 @@ func awsEc2query_deserializeDocumentHostInstance(v **types.HostInstance, decoder } if val != nil { xtv := string(val) - sv.InstanceType = &xtv + sv.InstanceType = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -53988,7 +54276,7 @@ func awsEc2query_deserializeDocumentHostInstance(v **types.HostInstance, decoder } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } default: @@ -54001,13 +54289,13 @@ func awsEc2query_deserializeDocumentHostInstance(v **types.HostInstance, decoder return nil } -func awsEc2query_deserializeDocumentHostInstanceList(v *[]*types.HostInstance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHostInstanceList(v *[]types.HostInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.HostInstance + var sv []types.HostInstance if *v == nil { - sv = make([]*types.HostInstance, 0) + sv = make([]types.HostInstance, 0) } else { sv = *v } @@ -54023,11 +54311,13 @@ func awsEc2query_deserializeDocumentHostInstanceList(v *[]*types.HostInstance, d } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.HostInstance + var col types.HostInstance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHostInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentHostInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -54040,35 +54330,37 @@ func awsEc2query_deserializeDocumentHostInstanceList(v *[]*types.HostInstance, d return nil } -func awsEc2query_deserializeDocumentHostInstanceListUnwrapped(v *[]*types.HostInstance, decoder smithyxml.NodeDecoder) error { - var sv []*types.HostInstance +func awsEc2query_deserializeDocumentHostInstanceListUnwrapped(v *[]types.HostInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.HostInstance if *v == nil { - sv = make([]*types.HostInstance, 0) + sv = make([]types.HostInstance, 0) } else { sv = *v } switch { default: - var mv *types.HostInstance + var mv types.HostInstance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHostInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentHostInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentHostList(v *[]*types.Host, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHostList(v *[]types.Host, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Host + var sv []types.Host if *v == nil { - sv = make([]*types.Host, 0) + sv = make([]types.Host, 0) } else { sv = *v } @@ -54084,11 +54376,13 @@ func awsEc2query_deserializeDocumentHostList(v *[]*types.Host, decoder smithyxml } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Host + var col types.Host nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHost(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentHost(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -54101,23 +54395,25 @@ func awsEc2query_deserializeDocumentHostList(v *[]*types.Host, decoder smithyxml return nil } -func awsEc2query_deserializeDocumentHostListUnwrapped(v *[]*types.Host, decoder smithyxml.NodeDecoder) error { - var sv []*types.Host +func awsEc2query_deserializeDocumentHostListUnwrapped(v *[]types.Host, decoder smithyxml.NodeDecoder) error { + var sv []types.Host if *v == nil { - sv = make([]*types.Host, 0) + sv = make([]types.Host, 0) } else { sv = *v } switch { default: - var mv *types.Host + var mv types.Host t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHost(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentHost(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -54172,7 +54468,7 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case strings.EqualFold("hourlyPrice", t.Name.Local): @@ -54188,7 +54484,7 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder } if val != nil { xtv := string(val) - sv.HourlyPrice = &xtv + sv.HourlyPrice = ptr.String(xtv) } case strings.EqualFold("instanceFamily", t.Name.Local): @@ -54204,7 +54500,7 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder } if val != nil { xtv := string(val) - sv.InstanceFamily = &xtv + sv.InstanceFamily = ptr.String(xtv) } case strings.EqualFold("offeringId", t.Name.Local): @@ -54220,7 +54516,7 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder } if val != nil { xtv := string(val) - sv.OfferingId = &xtv + sv.OfferingId = ptr.String(xtv) } case strings.EqualFold("paymentOption", t.Name.Local): @@ -54249,7 +54545,7 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder } if val != nil { xtv := string(val) - sv.UpfrontPrice = &xtv + sv.UpfrontPrice = ptr.String(xtv) } default: @@ -54262,13 +54558,13 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder return nil } -func awsEc2query_deserializeDocumentHostOfferingSet(v *[]*types.HostOffering, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHostOfferingSet(v *[]types.HostOffering, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.HostOffering + var sv []types.HostOffering if *v == nil { - sv = make([]*types.HostOffering, 0) + sv = make([]types.HostOffering, 0) } else { sv = *v } @@ -54284,11 +54580,13 @@ func awsEc2query_deserializeDocumentHostOfferingSet(v *[]*types.HostOffering, de } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.HostOffering + var col types.HostOffering nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHostOffering(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentHostOffering(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -54301,23 +54599,25 @@ func awsEc2query_deserializeDocumentHostOfferingSet(v *[]*types.HostOffering, de return nil } -func awsEc2query_deserializeDocumentHostOfferingSetUnwrapped(v *[]*types.HostOffering, decoder smithyxml.NodeDecoder) error { - var sv []*types.HostOffering +func awsEc2query_deserializeDocumentHostOfferingSetUnwrapped(v *[]types.HostOffering, decoder smithyxml.NodeDecoder) error { + var sv []types.HostOffering if *v == nil { - sv = make([]*types.HostOffering, 0) + sv = make([]types.HostOffering, 0) } else { sv = *v } switch { default: - var mv *types.HostOffering + var mv types.HostOffering t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHostOffering(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentHostOffering(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -54359,7 +54659,7 @@ func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, dec if err != nil { return err } - sv.Cores = ptr.Int32(int32(i64)) + sv.Cores = int32(i64) } case strings.EqualFold("instanceFamily", t.Name.Local): @@ -54375,7 +54675,7 @@ func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, dec } if val != nil { xtv := string(val) - sv.InstanceFamily = &xtv + sv.InstanceFamily = ptr.String(xtv) } case strings.EqualFold("instanceType", t.Name.Local): @@ -54391,7 +54691,7 @@ func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, dec } if val != nil { xtv := string(val) - sv.InstanceType = &xtv + sv.InstanceType = ptr.String(xtv) } case strings.EqualFold("sockets", t.Name.Local): @@ -54408,7 +54708,7 @@ func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, dec if err != nil { return err } - sv.Sockets = ptr.Int32(int32(i64)) + sv.Sockets = int32(i64) } case strings.EqualFold("totalVCpus", t.Name.Local): @@ -54425,7 +54725,7 @@ func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, dec if err != nil { return err } - sv.TotalVCpus = ptr.Int32(int32(i64)) + sv.TotalVCpus = int32(i64) } default: @@ -54474,7 +54774,7 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case strings.EqualFold("currencyCode", t.Name.Local): @@ -54504,7 +54804,7 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case strings.EqualFold("end", t.Name.Local): @@ -54521,7 +54821,7 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d if err != nil { return err } - sv.End = &t + sv.End = ptr.Time(t) } case strings.EqualFold("hostIdSet", t.Name.Local): @@ -54543,7 +54843,7 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d } if val != nil { xtv := string(val) - sv.HostReservationId = &xtv + sv.HostReservationId = ptr.String(xtv) } case strings.EqualFold("hourlyPrice", t.Name.Local): @@ -54559,7 +54859,7 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d } if val != nil { xtv := string(val) - sv.HourlyPrice = &xtv + sv.HourlyPrice = ptr.String(xtv) } case strings.EqualFold("instanceFamily", t.Name.Local): @@ -54575,7 +54875,7 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d } if val != nil { xtv := string(val) - sv.InstanceFamily = &xtv + sv.InstanceFamily = ptr.String(xtv) } case strings.EqualFold("offeringId", t.Name.Local): @@ -54591,7 +54891,7 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d } if val != nil { xtv := string(val) - sv.OfferingId = &xtv + sv.OfferingId = ptr.String(xtv) } case strings.EqualFold("paymentOption", t.Name.Local): @@ -54621,7 +54921,7 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d if err != nil { return err } - sv.Start = &t + sv.Start = ptr.Time(t) } case strings.EqualFold("state", t.Name.Local): @@ -54656,7 +54956,7 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d } if val != nil { xtv := string(val) - sv.UpfrontPrice = &xtv + sv.UpfrontPrice = ptr.String(xtv) } default: @@ -54669,13 +54969,13 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d return nil } -func awsEc2query_deserializeDocumentHostReservationSet(v *[]*types.HostReservation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHostReservationSet(v *[]types.HostReservation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.HostReservation + var sv []types.HostReservation if *v == nil { - sv = make([]*types.HostReservation, 0) + sv = make([]types.HostReservation, 0) } else { sv = *v } @@ -54691,11 +54991,13 @@ func awsEc2query_deserializeDocumentHostReservationSet(v *[]*types.HostReservati } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.HostReservation + var col types.HostReservation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHostReservation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentHostReservation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -54708,23 +55010,25 @@ func awsEc2query_deserializeDocumentHostReservationSet(v *[]*types.HostReservati return nil } -func awsEc2query_deserializeDocumentHostReservationSetUnwrapped(v *[]*types.HostReservation, decoder smithyxml.NodeDecoder) error { - var sv []*types.HostReservation +func awsEc2query_deserializeDocumentHostReservationSetUnwrapped(v *[]types.HostReservation, decoder smithyxml.NodeDecoder) error { + var sv []types.HostReservation if *v == nil { - sv = make([]*types.HostReservation, 0) + sv = make([]types.HostReservation, 0) } else { sv = *v } switch { default: - var mv *types.HostReservation + var mv types.HostReservation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHostReservation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentHostReservation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -54765,7 +55069,7 @@ func awsEc2query_deserializeDocumentIamInstanceProfile(v **types.IamInstanceProf } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("id", t.Name.Local): @@ -54781,7 +55085,7 @@ func awsEc2query_deserializeDocumentIamInstanceProfile(v **types.IamInstanceProf } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } default: @@ -54829,7 +55133,7 @@ func awsEc2query_deserializeDocumentIamInstanceProfileAssociation(v **types.IamI } if val != nil { xtv := string(val) - sv.AssociationId = &xtv + sv.AssociationId = ptr.String(xtv) } case strings.EqualFold("iamInstanceProfile", t.Name.Local): @@ -54851,7 +55155,7 @@ func awsEc2query_deserializeDocumentIamInstanceProfileAssociation(v **types.IamI } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -54881,7 +55185,7 @@ func awsEc2query_deserializeDocumentIamInstanceProfileAssociation(v **types.IamI if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -54894,13 +55198,13 @@ func awsEc2query_deserializeDocumentIamInstanceProfileAssociation(v **types.IamI return nil } -func awsEc2query_deserializeDocumentIamInstanceProfileAssociationSet(v *[]*types.IamInstanceProfileAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIamInstanceProfileAssociationSet(v *[]types.IamInstanceProfileAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.IamInstanceProfileAssociation + var sv []types.IamInstanceProfileAssociation if *v == nil { - sv = make([]*types.IamInstanceProfileAssociation, 0) + sv = make([]types.IamInstanceProfileAssociation, 0) } else { sv = *v } @@ -54916,11 +55220,13 @@ func awsEc2query_deserializeDocumentIamInstanceProfileAssociationSet(v *[]*types } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.IamInstanceProfileAssociation + var col types.IamInstanceProfileAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIamInstanceProfileAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentIamInstanceProfileAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -54933,23 +55239,25 @@ func awsEc2query_deserializeDocumentIamInstanceProfileAssociationSet(v *[]*types return nil } -func awsEc2query_deserializeDocumentIamInstanceProfileAssociationSetUnwrapped(v *[]*types.IamInstanceProfileAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.IamInstanceProfileAssociation +func awsEc2query_deserializeDocumentIamInstanceProfileAssociationSetUnwrapped(v *[]types.IamInstanceProfileAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.IamInstanceProfileAssociation if *v == nil { - sv = make([]*types.IamInstanceProfileAssociation, 0) + sv = make([]types.IamInstanceProfileAssociation, 0) } else { sv = *v } switch { default: - var mv *types.IamInstanceProfileAssociation + var mv types.IamInstanceProfileAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIamInstanceProfileAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentIamInstanceProfileAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -54990,7 +55298,7 @@ func awsEc2query_deserializeDocumentIamInstanceProfileSpecification(v **types.Ia } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("name", t.Name.Local): @@ -55006,7 +55314,7 @@ func awsEc2query_deserializeDocumentIamInstanceProfileSpecification(v **types.Ia } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -55055,7 +55363,7 @@ func awsEc2query_deserializeDocumentIcmpTypeCode(v **types.IcmpTypeCode, decoder if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case strings.EqualFold("type", t.Name.Local): @@ -55072,7 +55380,7 @@ func awsEc2query_deserializeDocumentIcmpTypeCode(v **types.IcmpTypeCode, decoder if err != nil { return err } - sv.Type = ptr.Int32(int32(i64)) + sv.Type = int32(i64) } default: @@ -55121,7 +55429,7 @@ func awsEc2query_deserializeDocumentIdFormat(v **types.IdFormat, decoder smithyx if err != nil { return err } - sv.Deadline = &t + sv.Deadline = ptr.Time(t) } case strings.EqualFold("resource", t.Name.Local): @@ -55137,7 +55445,7 @@ func awsEc2query_deserializeDocumentIdFormat(v **types.IdFormat, decoder smithyx } if val != nil { xtv := string(val) - sv.Resource = &xtv + sv.Resource = ptr.String(xtv) } case strings.EqualFold("useLongIds", t.Name.Local): @@ -55153,7 +55461,7 @@ func awsEc2query_deserializeDocumentIdFormat(v **types.IdFormat, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.UseLongIds = &xtv + sv.UseLongIds = xtv } default: @@ -55166,13 +55474,13 @@ func awsEc2query_deserializeDocumentIdFormat(v **types.IdFormat, decoder smithyx return nil } -func awsEc2query_deserializeDocumentIdFormatList(v *[]*types.IdFormat, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIdFormatList(v *[]types.IdFormat, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.IdFormat + var sv []types.IdFormat if *v == nil { - sv = make([]*types.IdFormat, 0) + sv = make([]types.IdFormat, 0) } else { sv = *v } @@ -55188,11 +55496,13 @@ func awsEc2query_deserializeDocumentIdFormatList(v *[]*types.IdFormat, decoder s } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.IdFormat + var col types.IdFormat nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIdFormat(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentIdFormat(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -55205,35 +55515,37 @@ func awsEc2query_deserializeDocumentIdFormatList(v *[]*types.IdFormat, decoder s return nil } -func awsEc2query_deserializeDocumentIdFormatListUnwrapped(v *[]*types.IdFormat, decoder smithyxml.NodeDecoder) error { - var sv []*types.IdFormat +func awsEc2query_deserializeDocumentIdFormatListUnwrapped(v *[]types.IdFormat, decoder smithyxml.NodeDecoder) error { + var sv []types.IdFormat if *v == nil { - sv = make([]*types.IdFormat, 0) + sv = make([]types.IdFormat, 0) } else { sv = *v } switch { default: - var mv *types.IdFormat + var mv types.IdFormat t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIdFormat(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentIdFormat(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentIKEVersionsList(v *[]*types.IKEVersionsListValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIKEVersionsList(v *[]types.IKEVersionsListValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.IKEVersionsListValue + var sv []types.IKEVersionsListValue if *v == nil { - sv = make([]*types.IKEVersionsListValue, 0) + sv = make([]types.IKEVersionsListValue, 0) } else { sv = *v } @@ -55249,11 +55561,13 @@ func awsEc2query_deserializeDocumentIKEVersionsList(v *[]*types.IKEVersionsListV } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.IKEVersionsListValue + var col types.IKEVersionsListValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIKEVersionsListValue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentIKEVersionsListValue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -55266,23 +55580,25 @@ func awsEc2query_deserializeDocumentIKEVersionsList(v *[]*types.IKEVersionsListV return nil } -func awsEc2query_deserializeDocumentIKEVersionsListUnwrapped(v *[]*types.IKEVersionsListValue, decoder smithyxml.NodeDecoder) error { - var sv []*types.IKEVersionsListValue +func awsEc2query_deserializeDocumentIKEVersionsListUnwrapped(v *[]types.IKEVersionsListValue, decoder smithyxml.NodeDecoder) error { + var sv []types.IKEVersionsListValue if *v == nil { - sv = make([]*types.IKEVersionsListValue, 0) + sv = make([]types.IKEVersionsListValue, 0) } else { sv = *v } switch { default: - var mv *types.IKEVersionsListValue + var mv types.IKEVersionsListValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIKEVersionsListValue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentIKEVersionsListValue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -55323,7 +55639,7 @@ func awsEc2query_deserializeDocumentIKEVersionsListValue(v **types.IKEVersionsLi } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -55390,7 +55706,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.CreationDate = &xtv + sv.CreationDate = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -55406,7 +55722,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("enaSupport", t.Name.Local): @@ -55422,7 +55738,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EnaSupport = &xtv + sv.EnaSupport = xtv } case strings.EqualFold("hypervisor", t.Name.Local): @@ -55451,7 +55767,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } case strings.EqualFold("imageLocation", t.Name.Local): @@ -55467,7 +55783,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.ImageLocation = &xtv + sv.ImageLocation = ptr.String(xtv) } case strings.EqualFold("imageOwnerAlias", t.Name.Local): @@ -55483,7 +55799,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.ImageOwnerAlias = &xtv + sv.ImageOwnerAlias = ptr.String(xtv) } case strings.EqualFold("imageType", t.Name.Local): @@ -55512,7 +55828,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.KernelId = &xtv + sv.KernelId = ptr.String(xtv) } case strings.EqualFold("name", t.Name.Local): @@ -55528,7 +55844,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("imageOwnerId", t.Name.Local): @@ -55544,7 +55860,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("platform", t.Name.Local): @@ -55573,7 +55889,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.PlatformDetails = &xtv + sv.PlatformDetails = ptr.String(xtv) } case strings.EqualFold("productCodes", t.Name.Local): @@ -55595,7 +55911,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Public = &xtv + sv.Public = xtv } case strings.EqualFold("ramdiskId", t.Name.Local): @@ -55611,7 +55927,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.RamdiskId = &xtv + sv.RamdiskId = ptr.String(xtv) } case strings.EqualFold("rootDeviceName", t.Name.Local): @@ -55627,7 +55943,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.RootDeviceName = &xtv + sv.RootDeviceName = ptr.String(xtv) } case strings.EqualFold("rootDeviceType", t.Name.Local): @@ -55656,7 +55972,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.SriovNetSupport = &xtv + sv.SriovNetSupport = ptr.String(xtv) } case strings.EqualFold("imageState", t.Name.Local): @@ -55697,7 +56013,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.UsageOperation = &xtv + sv.UsageOperation = ptr.String(xtv) } case strings.EqualFold("virtualizationType", t.Name.Local): @@ -55723,13 +56039,13 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod return nil } -func awsEc2query_deserializeDocumentImageList(v *[]*types.Image, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImageList(v *[]types.Image, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Image + var sv []types.Image if *v == nil { - sv = make([]*types.Image, 0) + sv = make([]types.Image, 0) } else { sv = *v } @@ -55745,11 +56061,13 @@ func awsEc2query_deserializeDocumentImageList(v *[]*types.Image, decoder smithyx } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Image + var col types.Image nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImage(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentImage(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -55762,23 +56080,25 @@ func awsEc2query_deserializeDocumentImageList(v *[]*types.Image, decoder smithyx return nil } -func awsEc2query_deserializeDocumentImageListUnwrapped(v *[]*types.Image, decoder smithyxml.NodeDecoder) error { - var sv []*types.Image +func awsEc2query_deserializeDocumentImageListUnwrapped(v *[]types.Image, decoder smithyxml.NodeDecoder) error { + var sv []types.Image if *v == nil { - sv = make([]*types.Image, 0) + sv = make([]types.Image, 0) } else { sv = *v } switch { default: - var mv *types.Image + var mv types.Image t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImage(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentImage(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -55819,7 +56139,7 @@ func awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(v ** } if val != nil { xtv := string(val) - sv.LicenseConfigurationArn = &xtv + sv.LicenseConfigurationArn = ptr.String(xtv) } default: @@ -55832,13 +56152,13 @@ func awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(v ** return nil } -func awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponse(v *[]*types.ImportImageLicenseConfigurationResponse, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponse(v *[]types.ImportImageLicenseConfigurationResponse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ImportImageLicenseConfigurationResponse + var sv []types.ImportImageLicenseConfigurationResponse if *v == nil { - sv = make([]*types.ImportImageLicenseConfigurationResponse, 0) + sv = make([]types.ImportImageLicenseConfigurationResponse, 0) } else { sv = *v } @@ -55854,11 +56174,13 @@ func awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponse( } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ImportImageLicenseConfigurationResponse + var col types.ImportImageLicenseConfigurationResponse nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -55871,23 +56193,25 @@ func awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponse( return nil } -func awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponseUnwrapped(v *[]*types.ImportImageLicenseConfigurationResponse, decoder smithyxml.NodeDecoder) error { - var sv []*types.ImportImageLicenseConfigurationResponse +func awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponseUnwrapped(v *[]types.ImportImageLicenseConfigurationResponse, decoder smithyxml.NodeDecoder) error { + var sv []types.ImportImageLicenseConfigurationResponse if *v == nil { - sv = make([]*types.ImportImageLicenseConfigurationResponse, 0) + sv = make([]types.ImportImageLicenseConfigurationResponse, 0) } else { sv = *v } switch { default: - var mv *types.ImportImageLicenseConfigurationResponse + var mv types.ImportImageLicenseConfigurationResponse t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -55928,7 +56252,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } if val != nil { xtv := string(val) - sv.Architecture = &xtv + sv.Architecture = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -55944,7 +56268,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("encrypted", t.Name.Local): @@ -55960,7 +56284,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("hypervisor", t.Name.Local): @@ -55976,7 +56300,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } if val != nil { xtv := string(val) - sv.Hypervisor = &xtv + sv.Hypervisor = ptr.String(xtv) } case strings.EqualFold("imageId", t.Name.Local): @@ -55992,7 +56316,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } case strings.EqualFold("importTaskId", t.Name.Local): @@ -56008,7 +56332,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } if val != nil { xtv := string(val) - sv.ImportTaskId = &xtv + sv.ImportTaskId = ptr.String(xtv) } case strings.EqualFold("kmsKeyId", t.Name.Local): @@ -56024,7 +56348,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("licenseSpecifications", t.Name.Local): @@ -56046,7 +56370,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } if val != nil { xtv := string(val) - sv.LicenseType = &xtv + sv.LicenseType = ptr.String(xtv) } case strings.EqualFold("platform", t.Name.Local): @@ -56062,7 +56386,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } if val != nil { xtv := string(val) - sv.Platform = &xtv + sv.Platform = ptr.String(xtv) } case strings.EqualFold("progress", t.Name.Local): @@ -56078,7 +56402,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } if val != nil { xtv := string(val) - sv.Progress = &xtv + sv.Progress = ptr.String(xtv) } case strings.EqualFold("snapshotDetailSet", t.Name.Local): @@ -56100,7 +56424,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("statusMessage", t.Name.Local): @@ -56116,7 +56440,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -56135,13 +56459,13 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d return nil } -func awsEc2query_deserializeDocumentImportImageTaskList(v *[]*types.ImportImageTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImportImageTaskList(v *[]types.ImportImageTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ImportImageTask + var sv []types.ImportImageTask if *v == nil { - sv = make([]*types.ImportImageTask, 0) + sv = make([]types.ImportImageTask, 0) } else { sv = *v } @@ -56157,11 +56481,13 @@ func awsEc2query_deserializeDocumentImportImageTaskList(v *[]*types.ImportImageT } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ImportImageTask + var col types.ImportImageTask nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImportImageTask(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentImportImageTask(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -56174,23 +56500,25 @@ func awsEc2query_deserializeDocumentImportImageTaskList(v *[]*types.ImportImageT return nil } -func awsEc2query_deserializeDocumentImportImageTaskListUnwrapped(v *[]*types.ImportImageTask, decoder smithyxml.NodeDecoder) error { - var sv []*types.ImportImageTask +func awsEc2query_deserializeDocumentImportImageTaskListUnwrapped(v *[]types.ImportImageTask, decoder smithyxml.NodeDecoder) error { + var sv []types.ImportImageTask if *v == nil { - sv = make([]*types.ImportImageTask, 0) + sv = make([]types.ImportImageTask, 0) } else { sv = *v } switch { default: - var mv *types.ImportImageTask + var mv types.ImportImageTask t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImportImageTask(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentImportImageTask(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -56231,7 +56559,7 @@ func awsEc2query_deserializeDocumentImportInstanceTaskDetails(v **types.ImportIn } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("instanceId", t.Name.Local): @@ -56247,7 +56575,7 @@ func awsEc2query_deserializeDocumentImportInstanceTaskDetails(v **types.ImportIn } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("platform", t.Name.Local): @@ -56314,7 +56642,7 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.Imp } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("bytesConverted", t.Name.Local): @@ -56331,7 +56659,7 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.Imp if err != nil { return err } - sv.BytesConverted = &i64 + sv.BytesConverted = i64 } case strings.EqualFold("description", t.Name.Local): @@ -56347,7 +56675,7 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.Imp } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("image", t.Name.Local): @@ -56369,7 +56697,7 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.Imp } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("statusMessage", t.Name.Local): @@ -56385,7 +56713,7 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.Imp } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } case strings.EqualFold("volume", t.Name.Local): @@ -56404,13 +56732,13 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.Imp return nil } -func awsEc2query_deserializeDocumentImportInstanceVolumeDetailSet(v *[]*types.ImportInstanceVolumeDetailItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImportInstanceVolumeDetailSet(v *[]types.ImportInstanceVolumeDetailItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ImportInstanceVolumeDetailItem + var sv []types.ImportInstanceVolumeDetailItem if *v == nil { - sv = make([]*types.ImportInstanceVolumeDetailItem, 0) + sv = make([]types.ImportInstanceVolumeDetailItem, 0) } else { sv = *v } @@ -56426,11 +56754,13 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailSet(v *[]*types.Im } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ImportInstanceVolumeDetailItem + var col types.ImportInstanceVolumeDetailItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -56443,23 +56773,25 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailSet(v *[]*types.Im return nil } -func awsEc2query_deserializeDocumentImportInstanceVolumeDetailSetUnwrapped(v *[]*types.ImportInstanceVolumeDetailItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.ImportInstanceVolumeDetailItem +func awsEc2query_deserializeDocumentImportInstanceVolumeDetailSetUnwrapped(v *[]types.ImportInstanceVolumeDetailItem, decoder smithyxml.NodeDecoder) error { + var sv []types.ImportInstanceVolumeDetailItem if *v == nil { - sv = make([]*types.ImportInstanceVolumeDetailItem, 0) + sv = make([]types.ImportInstanceVolumeDetailItem, 0) } else { sv = *v } switch { default: - var mv *types.ImportInstanceVolumeDetailItem + var mv types.ImportInstanceVolumeDetailItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -56500,7 +56832,7 @@ func awsEc2query_deserializeDocumentImportSnapshotTask(v **types.ImportSnapshotT } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("importTaskId", t.Name.Local): @@ -56516,7 +56848,7 @@ func awsEc2query_deserializeDocumentImportSnapshotTask(v **types.ImportSnapshotT } if val != nil { xtv := string(val) - sv.ImportTaskId = &xtv + sv.ImportTaskId = ptr.String(xtv) } case strings.EqualFold("snapshotTaskDetail", t.Name.Local): @@ -56541,13 +56873,13 @@ func awsEc2query_deserializeDocumentImportSnapshotTask(v **types.ImportSnapshotT return nil } -func awsEc2query_deserializeDocumentImportSnapshotTaskList(v *[]*types.ImportSnapshotTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImportSnapshotTaskList(v *[]types.ImportSnapshotTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ImportSnapshotTask + var sv []types.ImportSnapshotTask if *v == nil { - sv = make([]*types.ImportSnapshotTask, 0) + sv = make([]types.ImportSnapshotTask, 0) } else { sv = *v } @@ -56563,11 +56895,13 @@ func awsEc2query_deserializeDocumentImportSnapshotTaskList(v *[]*types.ImportSna } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ImportSnapshotTask + var col types.ImportSnapshotTask nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImportSnapshotTask(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentImportSnapshotTask(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -56580,23 +56914,25 @@ func awsEc2query_deserializeDocumentImportSnapshotTaskList(v *[]*types.ImportSna return nil } -func awsEc2query_deserializeDocumentImportSnapshotTaskListUnwrapped(v *[]*types.ImportSnapshotTask, decoder smithyxml.NodeDecoder) error { - var sv []*types.ImportSnapshotTask +func awsEc2query_deserializeDocumentImportSnapshotTaskListUnwrapped(v *[]types.ImportSnapshotTask, decoder smithyxml.NodeDecoder) error { + var sv []types.ImportSnapshotTask if *v == nil { - sv = make([]*types.ImportSnapshotTask, 0) + sv = make([]types.ImportSnapshotTask, 0) } else { sv = *v } switch { default: - var mv *types.ImportSnapshotTask + var mv types.ImportSnapshotTask t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImportSnapshotTask(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentImportSnapshotTask(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -56637,7 +56973,7 @@ func awsEc2query_deserializeDocumentImportVolumeTaskDetails(v **types.ImportVolu } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("bytesConverted", t.Name.Local): @@ -56654,7 +56990,7 @@ func awsEc2query_deserializeDocumentImportVolumeTaskDetails(v **types.ImportVolu if err != nil { return err } - sv.BytesConverted = &i64 + sv.BytesConverted = i64 } case strings.EqualFold("description", t.Name.Local): @@ -56670,7 +57006,7 @@ func awsEc2query_deserializeDocumentImportVolumeTaskDetails(v **types.ImportVolu } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("image", t.Name.Local): @@ -56785,7 +57121,7 @@ func awsEc2query_deserializeDocumentInferenceDeviceInfo(v **types.InferenceDevic } if val != nil { xtv := string(val) - sv.Manufacturer = &xtv + sv.Manufacturer = ptr.String(xtv) } case strings.EqualFold("name", t.Name.Local): @@ -56801,7 +57137,7 @@ func awsEc2query_deserializeDocumentInferenceDeviceInfo(v **types.InferenceDevic } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -56814,13 +57150,13 @@ func awsEc2query_deserializeDocumentInferenceDeviceInfo(v **types.InferenceDevic return nil } -func awsEc2query_deserializeDocumentInferenceDeviceInfoList(v *[]*types.InferenceDeviceInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInferenceDeviceInfoList(v *[]types.InferenceDeviceInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InferenceDeviceInfo + var sv []types.InferenceDeviceInfo if *v == nil { - sv = make([]*types.InferenceDeviceInfo, 0) + sv = make([]types.InferenceDeviceInfo, 0) } else { sv = *v } @@ -56836,11 +57172,13 @@ func awsEc2query_deserializeDocumentInferenceDeviceInfoList(v *[]*types.Inferenc } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.InferenceDeviceInfo + var col types.InferenceDeviceInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInferenceDeviceInfo(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInferenceDeviceInfo(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -56853,23 +57191,25 @@ func awsEc2query_deserializeDocumentInferenceDeviceInfoList(v *[]*types.Inferenc return nil } -func awsEc2query_deserializeDocumentInferenceDeviceInfoListUnwrapped(v *[]*types.InferenceDeviceInfo, decoder smithyxml.NodeDecoder) error { - var sv []*types.InferenceDeviceInfo +func awsEc2query_deserializeDocumentInferenceDeviceInfoListUnwrapped(v *[]types.InferenceDeviceInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.InferenceDeviceInfo if *v == nil { - sv = make([]*types.InferenceDeviceInfo, 0) + sv = make([]types.InferenceDeviceInfo, 0) } else { sv = *v } switch { default: - var mv *types.InferenceDeviceInfo + var mv types.InferenceDeviceInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInferenceDeviceInfo(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInferenceDeviceInfo(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -56911,7 +57251,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx if err != nil { return err } - sv.AmiLaunchIndex = ptr.Int32(int32(i64)) + sv.AmiLaunchIndex = int32(i64) } case strings.EqualFold("architecture", t.Name.Local): @@ -56946,7 +57286,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.CapacityReservationId = &xtv + sv.CapacityReservationId = ptr.String(xtv) } case strings.EqualFold("capacityReservationSpecification", t.Name.Local): @@ -56968,7 +57308,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("cpuOptions", t.Name.Local): @@ -56990,7 +57330,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsOptimized = &xtv + sv.EbsOptimized = xtv } case strings.EqualFold("elasticGpuAssociationSet", t.Name.Local): @@ -57018,7 +57358,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EnaSupport = &xtv + sv.EnaSupport = xtv } case strings.EqualFold("enclaveOptions", t.Name.Local): @@ -57065,7 +57405,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } case strings.EqualFold("instanceId", t.Name.Local): @@ -57081,7 +57421,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("instanceLifecycle", t.Name.Local): @@ -57123,7 +57463,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.KernelId = &xtv + sv.KernelId = ptr.String(xtv) } case strings.EqualFold("keyName", t.Name.Local): @@ -57139,7 +57479,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.KeyName = &xtv + sv.KeyName = ptr.String(xtv) } case strings.EqualFold("launchTime", t.Name.Local): @@ -57156,7 +57496,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx if err != nil { return err } - sv.LaunchTime = &t + sv.LaunchTime = ptr.Time(t) } case strings.EqualFold("licenseSet", t.Name.Local): @@ -57196,7 +57536,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.OutpostArn = &xtv + sv.OutpostArn = ptr.String(xtv) } case strings.EqualFold("placement", t.Name.Local): @@ -57231,7 +57571,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.PrivateDnsName = &xtv + sv.PrivateDnsName = ptr.String(xtv) } case strings.EqualFold("privateIpAddress", t.Name.Local): @@ -57247,7 +57587,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.PrivateIpAddress = &xtv + sv.PrivateIpAddress = ptr.String(xtv) } case strings.EqualFold("productCodes", t.Name.Local): @@ -57269,7 +57609,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.PublicDnsName = &xtv + sv.PublicDnsName = ptr.String(xtv) } case strings.EqualFold("ipAddress", t.Name.Local): @@ -57285,7 +57625,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.PublicIpAddress = &xtv + sv.PublicIpAddress = ptr.String(xtv) } case strings.EqualFold("ramdiskId", t.Name.Local): @@ -57301,7 +57641,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.RamdiskId = &xtv + sv.RamdiskId = ptr.String(xtv) } case strings.EqualFold("rootDeviceName", t.Name.Local): @@ -57317,7 +57657,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.RootDeviceName = &xtv + sv.RootDeviceName = ptr.String(xtv) } case strings.EqualFold("rootDeviceType", t.Name.Local): @@ -57352,7 +57692,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SourceDestCheck = &xtv + sv.SourceDestCheck = xtv } case strings.EqualFold("spotInstanceRequestId", t.Name.Local): @@ -57368,7 +57708,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.SpotInstanceRequestId = &xtv + sv.SpotInstanceRequestId = ptr.String(xtv) } case strings.EqualFold("sriovNetSupport", t.Name.Local): @@ -57384,7 +57724,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.SriovNetSupport = &xtv + sv.SriovNetSupport = ptr.String(xtv) } case strings.EqualFold("instanceState", t.Name.Local): @@ -57412,7 +57752,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.StateTransitionReason = &xtv + sv.StateTransitionReason = ptr.String(xtv) } case strings.EqualFold("subnetId", t.Name.Local): @@ -57428,7 +57768,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -57463,7 +57803,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -57511,7 +57851,7 @@ func awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(v **types.Instanc } if val != nil { xtv := string(val) - sv.DeviceName = &xtv + sv.DeviceName = ptr.String(xtv) } case strings.EqualFold("ebs", t.Name.Local): @@ -57530,13 +57870,13 @@ func awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(v **types.Instanc return nil } -func awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(v *[]*types.InstanceBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(v *[]types.InstanceBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceBlockDeviceMapping + var sv []types.InstanceBlockDeviceMapping if *v == nil { - sv = make([]*types.InstanceBlockDeviceMapping, 0) + sv = make([]types.InstanceBlockDeviceMapping, 0) } else { sv = *v } @@ -57552,11 +57892,13 @@ func awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(v *[]*types.I } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceBlockDeviceMapping + var col types.InstanceBlockDeviceMapping nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -57569,23 +57911,25 @@ func awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(v *[]*types.I return nil } -func awsEc2query_deserializeDocumentInstanceBlockDeviceMappingListUnwrapped(v *[]*types.InstanceBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceBlockDeviceMapping +func awsEc2query_deserializeDocumentInstanceBlockDeviceMappingListUnwrapped(v *[]types.InstanceBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceBlockDeviceMapping if *v == nil { - sv = make([]*types.InstanceBlockDeviceMapping, 0) + sv = make([]types.InstanceBlockDeviceMapping, 0) } else { sv = *v } switch { default: - var mv *types.InstanceBlockDeviceMapping + var mv types.InstanceBlockDeviceMapping t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -57627,7 +57971,7 @@ func awsEc2query_deserializeDocumentInstanceCapacity(v **types.InstanceCapacity, if err != nil { return err } - sv.AvailableCapacity = ptr.Int32(int32(i64)) + sv.AvailableCapacity = int32(i64) } case strings.EqualFold("instanceType", t.Name.Local): @@ -57643,7 +57987,7 @@ func awsEc2query_deserializeDocumentInstanceCapacity(v **types.InstanceCapacity, } if val != nil { xtv := string(val) - sv.InstanceType = &xtv + sv.InstanceType = ptr.String(xtv) } case strings.EqualFold("totalCapacity", t.Name.Local): @@ -57660,7 +58004,7 @@ func awsEc2query_deserializeDocumentInstanceCapacity(v **types.InstanceCapacity, if err != nil { return err } - sv.TotalCapacity = ptr.Int32(int32(i64)) + sv.TotalCapacity = int32(i64) } default: @@ -57709,7 +58053,7 @@ func awsEc2query_deserializeDocumentInstanceCount(v **types.InstanceCount, decod if err != nil { return err } - sv.InstanceCount = ptr.Int32(int32(i64)) + sv.InstanceCount = int32(i64) } case strings.EqualFold("state", t.Name.Local): @@ -57735,13 +58079,13 @@ func awsEc2query_deserializeDocumentInstanceCount(v **types.InstanceCount, decod return nil } -func awsEc2query_deserializeDocumentInstanceCountList(v *[]*types.InstanceCount, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceCountList(v *[]types.InstanceCount, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceCount + var sv []types.InstanceCount if *v == nil { - sv = make([]*types.InstanceCount, 0) + sv = make([]types.InstanceCount, 0) } else { sv = *v } @@ -57757,11 +58101,13 @@ func awsEc2query_deserializeDocumentInstanceCountList(v *[]*types.InstanceCount, } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceCount + var col types.InstanceCount nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceCount(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceCount(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -57774,23 +58120,25 @@ func awsEc2query_deserializeDocumentInstanceCountList(v *[]*types.InstanceCount, return nil } -func awsEc2query_deserializeDocumentInstanceCountListUnwrapped(v *[]*types.InstanceCount, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceCount +func awsEc2query_deserializeDocumentInstanceCountListUnwrapped(v *[]types.InstanceCount, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceCount if *v == nil { - sv = make([]*types.InstanceCount, 0) + sv = make([]types.InstanceCount, 0) } else { sv = *v } switch { default: - var mv *types.InstanceCount + var mv types.InstanceCount t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceCount(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceCount(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -57831,7 +58179,7 @@ func awsEc2query_deserializeDocumentInstanceCreditSpecification(v **types.Instan } if val != nil { xtv := string(val) - sv.CpuCredits = &xtv + sv.CpuCredits = ptr.String(xtv) } case strings.EqualFold("instanceId", t.Name.Local): @@ -57847,7 +58195,7 @@ func awsEc2query_deserializeDocumentInstanceCreditSpecification(v **types.Instan } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } default: @@ -57860,13 +58208,13 @@ func awsEc2query_deserializeDocumentInstanceCreditSpecification(v **types.Instan return nil } -func awsEc2query_deserializeDocumentInstanceCreditSpecificationList(v *[]*types.InstanceCreditSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceCreditSpecificationList(v *[]types.InstanceCreditSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceCreditSpecification + var sv []types.InstanceCreditSpecification if *v == nil { - sv = make([]*types.InstanceCreditSpecification, 0) + sv = make([]types.InstanceCreditSpecification, 0) } else { sv = *v } @@ -57882,11 +58230,13 @@ func awsEc2query_deserializeDocumentInstanceCreditSpecificationList(v *[]*types. } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceCreditSpecification + var col types.InstanceCreditSpecification nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceCreditSpecification(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceCreditSpecification(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -57899,23 +58249,25 @@ func awsEc2query_deserializeDocumentInstanceCreditSpecificationList(v *[]*types. return nil } -func awsEc2query_deserializeDocumentInstanceCreditSpecificationListUnwrapped(v *[]*types.InstanceCreditSpecification, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceCreditSpecification +func awsEc2query_deserializeDocumentInstanceCreditSpecificationListUnwrapped(v *[]types.InstanceCreditSpecification, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceCreditSpecification if *v == nil { - sv = make([]*types.InstanceCreditSpecification, 0) + sv = make([]types.InstanceCreditSpecification, 0) } else { sv = *v } switch { default: - var mv *types.InstanceCreditSpecification + var mv types.InstanceCreditSpecification t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceCreditSpecification(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceCreditSpecification(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -57956,7 +58308,7 @@ func awsEc2query_deserializeDocumentInstanceExportDetails(v **types.InstanceExpo } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("targetEnvironment", t.Name.Local): @@ -58017,7 +58369,7 @@ func awsEc2query_deserializeDocumentInstanceFamilyCreditSpecification(v **types. } if val != nil { xtv := string(val) - sv.CpuCredits = &xtv + sv.CpuCredits = ptr.String(xtv) } case strings.EqualFold("instanceFamily", t.Name.Local): @@ -58043,13 +58395,13 @@ func awsEc2query_deserializeDocumentInstanceFamilyCreditSpecification(v **types. return nil } -func awsEc2query_deserializeDocumentInstanceIdSet(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceIdSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -58067,20 +58419,17 @@ func awsEc2query_deserializeDocumentInstanceIdSet(v *[]*string, decoder smithyxm decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -58093,17 +58442,17 @@ func awsEc2query_deserializeDocumentInstanceIdSet(v *[]*string, decoder smithyxm return nil } -func awsEc2query_deserializeDocumentInstanceIdSetUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentInstanceIdSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -58111,27 +58460,24 @@ func awsEc2query_deserializeDocumentInstanceIdSetUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceIdsSet(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceIdsSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -58149,20 +58495,17 @@ func awsEc2query_deserializeDocumentInstanceIdsSet(v *[]*string, decoder smithyx decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -58175,17 +58518,17 @@ func awsEc2query_deserializeDocumentInstanceIdsSet(v *[]*string, decoder smithyx return nil } -func awsEc2query_deserializeDocumentInstanceIdsSetUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentInstanceIdsSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -58193,14 +58536,11 @@ func awsEc2query_deserializeDocumentInstanceIdsSetUnwrapped(v *[]*string, decode return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -58242,7 +58582,7 @@ func awsEc2query_deserializeDocumentInstanceIpv6Address(v **types.InstanceIpv6Ad } if val != nil { xtv := string(val) - sv.Ipv6Address = &xtv + sv.Ipv6Address = ptr.String(xtv) } default: @@ -58255,13 +58595,13 @@ func awsEc2query_deserializeDocumentInstanceIpv6Address(v **types.InstanceIpv6Ad return nil } -func awsEc2query_deserializeDocumentInstanceIpv6AddressList(v *[]*types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceIpv6AddressList(v *[]types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceIpv6Address + var sv []types.InstanceIpv6Address if *v == nil { - sv = make([]*types.InstanceIpv6Address, 0) + sv = make([]types.InstanceIpv6Address, 0) } else { sv = *v } @@ -58277,11 +58617,13 @@ func awsEc2query_deserializeDocumentInstanceIpv6AddressList(v *[]*types.Instance } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceIpv6Address + var col types.InstanceIpv6Address nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceIpv6Address(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceIpv6Address(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -58294,35 +58636,37 @@ func awsEc2query_deserializeDocumentInstanceIpv6AddressList(v *[]*types.Instance return nil } -func awsEc2query_deserializeDocumentInstanceIpv6AddressListUnwrapped(v *[]*types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceIpv6Address +func awsEc2query_deserializeDocumentInstanceIpv6AddressListUnwrapped(v *[]types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceIpv6Address if *v == nil { - sv = make([]*types.InstanceIpv6Address, 0) + sv = make([]types.InstanceIpv6Address, 0) } else { sv = *v } switch { default: - var mv *types.InstanceIpv6Address + var mv types.InstanceIpv6Address t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceIpv6Address(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceIpv6Address(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceList(v *[]*types.Instance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceList(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Instance + var sv []types.Instance if *v == nil { - sv = make([]*types.Instance, 0) + sv = make([]types.Instance, 0) } else { sv = *v } @@ -58338,11 +58682,13 @@ func awsEc2query_deserializeDocumentInstanceList(v *[]*types.Instance, decoder s } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Instance + var col types.Instance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -58355,23 +58701,25 @@ func awsEc2query_deserializeDocumentInstanceList(v *[]*types.Instance, decoder s return nil } -func awsEc2query_deserializeDocumentInstanceListUnwrapped(v *[]*types.Instance, decoder smithyxml.NodeDecoder) error { - var sv []*types.Instance +func awsEc2query_deserializeDocumentInstanceListUnwrapped(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { + var sv []types.Instance if *v == nil { - sv = make([]*types.Instance, 0) + sv = make([]types.Instance, 0) } else { sv = *v } switch { default: - var mv *types.Instance + var mv types.Instance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -58426,7 +58774,7 @@ func awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(v **types.In if err != nil { return err } - sv.HttpPutResponseHopLimit = ptr.Int32(int32(i64)) + sv.HttpPutResponseHopLimit = int32(i64) } case strings.EqualFold("httpTokens", t.Name.Local): @@ -58500,7 +58848,7 @@ func awsEc2query_deserializeDocumentInstanceMonitoring(v **types.InstanceMonitor } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("monitoring", t.Name.Local): @@ -58519,13 +58867,13 @@ func awsEc2query_deserializeDocumentInstanceMonitoring(v **types.InstanceMonitor return nil } -func awsEc2query_deserializeDocumentInstanceMonitoringList(v *[]*types.InstanceMonitoring, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceMonitoringList(v *[]types.InstanceMonitoring, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceMonitoring + var sv []types.InstanceMonitoring if *v == nil { - sv = make([]*types.InstanceMonitoring, 0) + sv = make([]types.InstanceMonitoring, 0) } else { sv = *v } @@ -58541,11 +58889,13 @@ func awsEc2query_deserializeDocumentInstanceMonitoringList(v *[]*types.InstanceM } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceMonitoring + var col types.InstanceMonitoring nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceMonitoring(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceMonitoring(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -58558,23 +58908,25 @@ func awsEc2query_deserializeDocumentInstanceMonitoringList(v *[]*types.InstanceM return nil } -func awsEc2query_deserializeDocumentInstanceMonitoringListUnwrapped(v *[]*types.InstanceMonitoring, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceMonitoring +func awsEc2query_deserializeDocumentInstanceMonitoringListUnwrapped(v *[]types.InstanceMonitoring, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceMonitoring if *v == nil { - sv = make([]*types.InstanceMonitoring, 0) + sv = make([]types.InstanceMonitoring, 0) } else { sv = *v } switch { default: - var mv *types.InstanceMonitoring + var mv types.InstanceMonitoring t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceMonitoring(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceMonitoring(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -58627,7 +58979,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("groupSet", t.Name.Local): @@ -58649,7 +59001,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN } if val != nil { xtv := string(val) - sv.InterfaceType = &xtv + sv.InterfaceType = ptr.String(xtv) } case strings.EqualFold("ipv6AddressesSet", t.Name.Local): @@ -58671,7 +59023,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN } if val != nil { xtv := string(val) - sv.MacAddress = &xtv + sv.MacAddress = ptr.String(xtv) } case strings.EqualFold("networkInterfaceId", t.Name.Local): @@ -58687,7 +59039,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -58703,7 +59055,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("privateDnsName", t.Name.Local): @@ -58719,7 +59071,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN } if val != nil { xtv := string(val) - sv.PrivateDnsName = &xtv + sv.PrivateDnsName = ptr.String(xtv) } case strings.EqualFold("privateIpAddress", t.Name.Local): @@ -58735,7 +59087,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN } if val != nil { xtv := string(val) - sv.PrivateIpAddress = &xtv + sv.PrivateIpAddress = ptr.String(xtv) } case strings.EqualFold("privateIpAddressesSet", t.Name.Local): @@ -58757,7 +59109,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SourceDestCheck = &xtv + sv.SourceDestCheck = xtv } case strings.EqualFold("status", t.Name.Local): @@ -58786,7 +59138,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } case strings.EqualFold("vpcId", t.Name.Local): @@ -58802,7 +59154,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -58850,7 +59202,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(v **type } if val != nil { xtv := string(val) - sv.CarrierIp = &xtv + sv.CarrierIp = ptr.String(xtv) } case strings.EqualFold("ipOwnerId", t.Name.Local): @@ -58866,7 +59218,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(v **type } if val != nil { xtv := string(val) - sv.IpOwnerId = &xtv + sv.IpOwnerId = ptr.String(xtv) } case strings.EqualFold("publicDnsName", t.Name.Local): @@ -58882,7 +59234,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(v **type } if val != nil { xtv := string(val) - sv.PublicDnsName = &xtv + sv.PublicDnsName = ptr.String(xtv) } case strings.EqualFold("publicIp", t.Name.Local): @@ -58898,7 +59250,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(v **type } if val != nil { xtv := string(val) - sv.PublicIp = &xtv + sv.PublicIp = ptr.String(xtv) } default: @@ -58946,7 +59298,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types } if val != nil { xtv := string(val) - sv.AttachmentId = &xtv + sv.AttachmentId = ptr.String(xtv) } case strings.EqualFold("attachTime", t.Name.Local): @@ -58963,7 +59315,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types if err != nil { return err } - sv.AttachTime = &t + sv.AttachTime = ptr.Time(t) } case strings.EqualFold("deleteOnTermination", t.Name.Local): @@ -58979,7 +59331,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = &xtv + sv.DeleteOnTermination = xtv } case strings.EqualFold("deviceIndex", t.Name.Local): @@ -58996,7 +59348,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types if err != nil { return err } - sv.DeviceIndex = ptr.Int32(int32(i64)) + sv.DeviceIndex = int32(i64) } case strings.EqualFold("status", t.Name.Local): @@ -59022,13 +59374,13 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types return nil } -func awsEc2query_deserializeDocumentInstanceNetworkInterfaceList(v *[]*types.InstanceNetworkInterface, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceNetworkInterfaceList(v *[]types.InstanceNetworkInterface, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceNetworkInterface + var sv []types.InstanceNetworkInterface if *v == nil { - sv = make([]*types.InstanceNetworkInterface, 0) + sv = make([]types.InstanceNetworkInterface, 0) } else { sv = *v } @@ -59044,11 +59396,13 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceList(v *[]*types.Ins } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceNetworkInterface + var col types.InstanceNetworkInterface nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceNetworkInterface(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceNetworkInterface(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -59061,23 +59415,25 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceList(v *[]*types.Ins return nil } -func awsEc2query_deserializeDocumentInstanceNetworkInterfaceListUnwrapped(v *[]*types.InstanceNetworkInterface, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceNetworkInterface +func awsEc2query_deserializeDocumentInstanceNetworkInterfaceListUnwrapped(v *[]types.InstanceNetworkInterface, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceNetworkInterface if *v == nil { - sv = make([]*types.InstanceNetworkInterface, 0) + sv = make([]types.InstanceNetworkInterface, 0) } else { sv = *v } switch { default: - var mv *types.InstanceNetworkInterface + var mv types.InstanceNetworkInterface t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceNetworkInterface(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceNetworkInterface(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -59118,7 +59474,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AssociateCarrierIpAddress = &xtv + sv.AssociateCarrierIpAddress = xtv } case strings.EqualFold("associatePublicIpAddress", t.Name.Local): @@ -59134,7 +59490,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AssociatePublicIpAddress = &xtv + sv.AssociatePublicIpAddress = xtv } case strings.EqualFold("deleteOnTermination", t.Name.Local): @@ -59150,7 +59506,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = &xtv + sv.DeleteOnTermination = xtv } case strings.EqualFold("description", t.Name.Local): @@ -59166,7 +59522,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("deviceIndex", t.Name.Local): @@ -59183,7 +59539,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty if err != nil { return err } - sv.DeviceIndex = ptr.Int32(int32(i64)) + sv.DeviceIndex = int32(i64) } case strings.EqualFold("SecurityGroupId", t.Name.Local): @@ -59205,7 +59561,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } if val != nil { xtv := string(val) - sv.InterfaceType = &xtv + sv.InterfaceType = ptr.String(xtv) } case strings.EqualFold("ipv6AddressCount", t.Name.Local): @@ -59222,7 +59578,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty if err != nil { return err } - sv.Ipv6AddressCount = ptr.Int32(int32(i64)) + sv.Ipv6AddressCount = int32(i64) } case strings.EqualFold("ipv6AddressesSet", t.Name.Local): @@ -59244,7 +59600,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } case strings.EqualFold("privateIpAddress", t.Name.Local): @@ -59260,7 +59616,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } if val != nil { xtv := string(val) - sv.PrivateIpAddress = &xtv + sv.PrivateIpAddress = ptr.String(xtv) } case strings.EqualFold("privateIpAddressesSet", t.Name.Local): @@ -59283,7 +59639,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty if err != nil { return err } - sv.SecondaryPrivateIpAddressCount = ptr.Int32(int32(i64)) + sv.SecondaryPrivateIpAddressCount = int32(i64) } case strings.EqualFold("subnetId", t.Name.Local): @@ -59299,7 +59655,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } default: @@ -59312,13 +59668,13 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty return nil } -func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationList(v *[]*types.InstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationList(v *[]types.InstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceNetworkInterfaceSpecification + var sv []types.InstanceNetworkInterfaceSpecification if *v == nil { - sv = make([]*types.InstanceNetworkInterfaceSpecification, 0) + sv = make([]types.InstanceNetworkInterfaceSpecification, 0) } else { sv = *v } @@ -59334,11 +59690,13 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationList(v } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceNetworkInterfaceSpecification + var col types.InstanceNetworkInterfaceSpecification nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -59351,23 +59709,25 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationList(v return nil } -func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationListUnwrapped(v *[]*types.InstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceNetworkInterfaceSpecification +func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationListUnwrapped(v *[]types.InstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceNetworkInterfaceSpecification if *v == nil { - sv = make([]*types.InstanceNetworkInterfaceSpecification, 0) + sv = make([]types.InstanceNetworkInterfaceSpecification, 0) } else { sv = *v } switch { default: - var mv *types.InstanceNetworkInterfaceSpecification + var mv types.InstanceNetworkInterfaceSpecification t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -59414,7 +59774,7 @@ func awsEc2query_deserializeDocumentInstancePrivateIpAddress(v **types.InstanceP if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Primary = &xtv + sv.Primary = xtv } case strings.EqualFold("privateDnsName", t.Name.Local): @@ -59430,7 +59790,7 @@ func awsEc2query_deserializeDocumentInstancePrivateIpAddress(v **types.InstanceP } if val != nil { xtv := string(val) - sv.PrivateDnsName = &xtv + sv.PrivateDnsName = ptr.String(xtv) } case strings.EqualFold("privateIpAddress", t.Name.Local): @@ -59446,7 +59806,7 @@ func awsEc2query_deserializeDocumentInstancePrivateIpAddress(v **types.InstanceP } if val != nil { xtv := string(val) - sv.PrivateIpAddress = &xtv + sv.PrivateIpAddress = ptr.String(xtv) } default: @@ -59459,13 +59819,13 @@ func awsEc2query_deserializeDocumentInstancePrivateIpAddress(v **types.InstanceP return nil } -func awsEc2query_deserializeDocumentInstancePrivateIpAddressList(v *[]*types.InstancePrivateIpAddress, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstancePrivateIpAddressList(v *[]types.InstancePrivateIpAddress, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstancePrivateIpAddress + var sv []types.InstancePrivateIpAddress if *v == nil { - sv = make([]*types.InstancePrivateIpAddress, 0) + sv = make([]types.InstancePrivateIpAddress, 0) } else { sv = *v } @@ -59481,11 +59841,13 @@ func awsEc2query_deserializeDocumentInstancePrivateIpAddressList(v *[]*types.Ins } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstancePrivateIpAddress + var col types.InstancePrivateIpAddress nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstancePrivateIpAddress(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstancePrivateIpAddress(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -59498,23 +59860,25 @@ func awsEc2query_deserializeDocumentInstancePrivateIpAddressList(v *[]*types.Ins return nil } -func awsEc2query_deserializeDocumentInstancePrivateIpAddressListUnwrapped(v *[]*types.InstancePrivateIpAddress, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstancePrivateIpAddress +func awsEc2query_deserializeDocumentInstancePrivateIpAddressListUnwrapped(v *[]types.InstancePrivateIpAddress, decoder smithyxml.NodeDecoder) error { + var sv []types.InstancePrivateIpAddress if *v == nil { - sv = make([]*types.InstancePrivateIpAddress, 0) + sv = make([]types.InstancePrivateIpAddress, 0) } else { sv = *v } switch { default: - var mv *types.InstancePrivateIpAddress + var mv types.InstancePrivateIpAddress t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstancePrivateIpAddress(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstancePrivateIpAddress(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -59556,7 +59920,7 @@ func awsEc2query_deserializeDocumentInstanceState(v **types.InstanceState, decod if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case strings.EqualFold("name", t.Name.Local): @@ -59623,7 +59987,7 @@ func awsEc2query_deserializeDocumentInstanceStateChange(v **types.InstanceStateC } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("previousState", t.Name.Local): @@ -59642,13 +60006,13 @@ func awsEc2query_deserializeDocumentInstanceStateChange(v **types.InstanceStateC return nil } -func awsEc2query_deserializeDocumentInstanceStateChangeList(v *[]*types.InstanceStateChange, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStateChangeList(v *[]types.InstanceStateChange, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceStateChange + var sv []types.InstanceStateChange if *v == nil { - sv = make([]*types.InstanceStateChange, 0) + sv = make([]types.InstanceStateChange, 0) } else { sv = *v } @@ -59664,11 +60028,13 @@ func awsEc2query_deserializeDocumentInstanceStateChangeList(v *[]*types.Instance } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceStateChange + var col types.InstanceStateChange nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStateChange(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceStateChange(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -59681,23 +60047,25 @@ func awsEc2query_deserializeDocumentInstanceStateChangeList(v *[]*types.Instance return nil } -func awsEc2query_deserializeDocumentInstanceStateChangeListUnwrapped(v *[]*types.InstanceStateChange, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceStateChange +func awsEc2query_deserializeDocumentInstanceStateChangeListUnwrapped(v *[]types.InstanceStateChange, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceStateChange if *v == nil { - sv = make([]*types.InstanceStateChange, 0) + sv = make([]types.InstanceStateChange, 0) } else { sv = *v } switch { default: - var mv *types.InstanceStateChange + var mv types.InstanceStateChange t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStateChange(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceStateChange(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -59738,7 +60106,7 @@ func awsEc2query_deserializeDocumentInstanceStatus(v **types.InstanceStatus, dec } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("eventsSet", t.Name.Local): @@ -59760,7 +60128,7 @@ func awsEc2query_deserializeDocumentInstanceStatus(v **types.InstanceStatus, dec } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("instanceState", t.Name.Local): @@ -59788,7 +60156,7 @@ func awsEc2query_deserializeDocumentInstanceStatus(v **types.InstanceStatus, dec } if val != nil { xtv := string(val) - sv.OutpostArn = &xtv + sv.OutpostArn = ptr.String(xtv) } case strings.EqualFold("systemStatus", t.Name.Local): @@ -59843,7 +60211,7 @@ func awsEc2query_deserializeDocumentInstanceStatusDetails(v **types.InstanceStat if err != nil { return err } - sv.ImpairedSince = &t + sv.ImpairedSince = ptr.Time(t) } case strings.EqualFold("name", t.Name.Local): @@ -59882,13 +60250,13 @@ func awsEc2query_deserializeDocumentInstanceStatusDetails(v **types.InstanceStat return nil } -func awsEc2query_deserializeDocumentInstanceStatusDetailsList(v *[]*types.InstanceStatusDetails, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStatusDetailsList(v *[]types.InstanceStatusDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceStatusDetails + var sv []types.InstanceStatusDetails if *v == nil { - sv = make([]*types.InstanceStatusDetails, 0) + sv = make([]types.InstanceStatusDetails, 0) } else { sv = *v } @@ -59904,11 +60272,13 @@ func awsEc2query_deserializeDocumentInstanceStatusDetailsList(v *[]*types.Instan } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceStatusDetails + var col types.InstanceStatusDetails nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStatusDetails(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceStatusDetails(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -59921,23 +60291,25 @@ func awsEc2query_deserializeDocumentInstanceStatusDetailsList(v *[]*types.Instan return nil } -func awsEc2query_deserializeDocumentInstanceStatusDetailsListUnwrapped(v *[]*types.InstanceStatusDetails, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceStatusDetails +func awsEc2query_deserializeDocumentInstanceStatusDetailsListUnwrapped(v *[]types.InstanceStatusDetails, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceStatusDetails if *v == nil { - sv = make([]*types.InstanceStatusDetails, 0) + sv = make([]types.InstanceStatusDetails, 0) } else { sv = *v } switch { default: - var mv *types.InstanceStatusDetails + var mv types.InstanceStatusDetails t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStatusDetails(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceStatusDetails(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -59991,7 +60363,7 @@ func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatus } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("instanceEventId", t.Name.Local): @@ -60007,7 +60379,7 @@ func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatus } if val != nil { xtv := string(val) - sv.InstanceEventId = &xtv + sv.InstanceEventId = ptr.String(xtv) } case strings.EqualFold("notAfter", t.Name.Local): @@ -60024,7 +60396,7 @@ func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatus if err != nil { return err } - sv.NotAfter = &t + sv.NotAfter = ptr.Time(t) } case strings.EqualFold("notBefore", t.Name.Local): @@ -60041,7 +60413,7 @@ func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatus if err != nil { return err } - sv.NotBefore = &t + sv.NotBefore = ptr.Time(t) } case strings.EqualFold("notBeforeDeadline", t.Name.Local): @@ -60058,7 +60430,7 @@ func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatus if err != nil { return err } - sv.NotBeforeDeadline = &t + sv.NotBeforeDeadline = ptr.Time(t) } default: @@ -60071,13 +60443,13 @@ func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatus return nil } -func awsEc2query_deserializeDocumentInstanceStatusEventList(v *[]*types.InstanceStatusEvent, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStatusEventList(v *[]types.InstanceStatusEvent, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceStatusEvent + var sv []types.InstanceStatusEvent if *v == nil { - sv = make([]*types.InstanceStatusEvent, 0) + sv = make([]types.InstanceStatusEvent, 0) } else { sv = *v } @@ -60093,11 +60465,13 @@ func awsEc2query_deserializeDocumentInstanceStatusEventList(v *[]*types.Instance } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceStatusEvent + var col types.InstanceStatusEvent nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStatusEvent(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceStatusEvent(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -60110,35 +60484,37 @@ func awsEc2query_deserializeDocumentInstanceStatusEventList(v *[]*types.Instance return nil } -func awsEc2query_deserializeDocumentInstanceStatusEventListUnwrapped(v *[]*types.InstanceStatusEvent, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceStatusEvent +func awsEc2query_deserializeDocumentInstanceStatusEventListUnwrapped(v *[]types.InstanceStatusEvent, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceStatusEvent if *v == nil { - sv = make([]*types.InstanceStatusEvent, 0) + sv = make([]types.InstanceStatusEvent, 0) } else { sv = *v } switch { default: - var mv *types.InstanceStatusEvent + var mv types.InstanceStatusEvent t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStatusEvent(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceStatusEvent(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceStatusList(v *[]*types.InstanceStatus, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStatusList(v *[]types.InstanceStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceStatus + var sv []types.InstanceStatus if *v == nil { - sv = make([]*types.InstanceStatus, 0) + sv = make([]types.InstanceStatus, 0) } else { sv = *v } @@ -60154,11 +60530,13 @@ func awsEc2query_deserializeDocumentInstanceStatusList(v *[]*types.InstanceStatu } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceStatus + var col types.InstanceStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -60171,23 +60549,25 @@ func awsEc2query_deserializeDocumentInstanceStatusList(v *[]*types.InstanceStatu return nil } -func awsEc2query_deserializeDocumentInstanceStatusListUnwrapped(v *[]*types.InstanceStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceStatus +func awsEc2query_deserializeDocumentInstanceStatusListUnwrapped(v *[]types.InstanceStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceStatus if *v == nil { - sv = make([]*types.InstanceStatus, 0) + sv = make([]types.InstanceStatus, 0) } else { sv = *v } switch { default: - var mv *types.InstanceStatus + var mv types.InstanceStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -60299,7 +60679,7 @@ func awsEc2query_deserializeDocumentInstanceStorageInfo(v **types.InstanceStorag if err != nil { return err } - sv.TotalSizeInGB = &i64 + sv.TotalSizeInGB = ptr.Int64(i64) } default: @@ -60312,13 +60692,13 @@ func awsEc2query_deserializeDocumentInstanceStorageInfo(v **types.InstanceStorag return nil } -func awsEc2query_deserializeDocumentInstanceTagKeySet(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceTagKeySet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -60336,20 +60716,17 @@ func awsEc2query_deserializeDocumentInstanceTagKeySet(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -60362,17 +60739,17 @@ func awsEc2query_deserializeDocumentInstanceTagKeySet(v *[]*string, decoder smit return nil } -func awsEc2query_deserializeDocumentInstanceTagKeySetUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentInstanceTagKeySetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -60380,14 +60757,11 @@ func awsEc2query_deserializeDocumentInstanceTagKeySetUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -60429,7 +60803,7 @@ func awsEc2query_deserializeDocumentInstanceTagNotificationAttribute(v **types.I if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IncludeAllTagsOfInstance = &xtv + sv.IncludeAllTagsOfInstance = xtv } case strings.EqualFold("instanceTagKeySet", t.Name.Local): @@ -60483,7 +60857,7 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, if err != nil { return fmt.Errorf("expected AutoRecoveryFlag to be of type *bool, got %T instead", val) } - sv.AutoRecoverySupported = &xtv + sv.AutoRecoverySupported = ptr.Bool(xtv) } case strings.EqualFold("bareMetal", t.Name.Local): @@ -60499,7 +60873,7 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, if err != nil { return fmt.Errorf("expected BareMetalFlag to be of type *bool, got %T instead", val) } - sv.BareMetal = &xtv + sv.BareMetal = ptr.Bool(xtv) } case strings.EqualFold("burstablePerformanceSupported", t.Name.Local): @@ -60515,7 +60889,7 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, if err != nil { return fmt.Errorf("expected BurstablePerformanceFlag to be of type *bool, got %T instead", val) } - sv.BurstablePerformanceSupported = &xtv + sv.BurstablePerformanceSupported = ptr.Bool(xtv) } case strings.EqualFold("currentGeneration", t.Name.Local): @@ -60531,7 +60905,7 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, if err != nil { return fmt.Errorf("expected CurrentGenerationFlag to be of type *bool, got %T instead", val) } - sv.CurrentGeneration = &xtv + sv.CurrentGeneration = ptr.Bool(xtv) } case strings.EqualFold("dedicatedHostsSupported", t.Name.Local): @@ -60547,7 +60921,7 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, if err != nil { return fmt.Errorf("expected DedicatedHostFlag to be of type *bool, got %T instead", val) } - sv.DedicatedHostsSupported = &xtv + sv.DedicatedHostsSupported = ptr.Bool(xtv) } case strings.EqualFold("ebsInfo", t.Name.Local): @@ -60575,7 +60949,7 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, if err != nil { return fmt.Errorf("expected FreeTierEligibleFlag to be of type *bool, got %T instead", val) } - sv.FreeTierEligible = &xtv + sv.FreeTierEligible = ptr.Bool(xtv) } case strings.EqualFold("gpuInfo", t.Name.Local): @@ -60597,7 +60971,7 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, if err != nil { return fmt.Errorf("expected HibernationFlag to be of type *bool, got %T instead", val) } - sv.HibernationSupported = &xtv + sv.HibernationSupported = ptr.Bool(xtv) } case strings.EqualFold("hypervisor", t.Name.Local): @@ -60638,7 +61012,7 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, if err != nil { return fmt.Errorf("expected InstanceStorageFlag to be of type *bool, got %T instead", val) } - sv.InstanceStorageSupported = &xtv + sv.InstanceStorageSupported = ptr.Bool(xtv) } case strings.EqualFold("instanceType", t.Name.Local): @@ -60712,13 +61086,13 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, return nil } -func awsEc2query_deserializeDocumentInstanceTypeInfoList(v *[]*types.InstanceTypeInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceTypeInfoList(v *[]types.InstanceTypeInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceTypeInfo + var sv []types.InstanceTypeInfo if *v == nil { - sv = make([]*types.InstanceTypeInfo, 0) + sv = make([]types.InstanceTypeInfo, 0) } else { sv = *v } @@ -60734,11 +61108,13 @@ func awsEc2query_deserializeDocumentInstanceTypeInfoList(v *[]*types.InstanceTyp } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceTypeInfo + var col types.InstanceTypeInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceTypeInfo(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceTypeInfo(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -60751,23 +61127,25 @@ func awsEc2query_deserializeDocumentInstanceTypeInfoList(v *[]*types.InstanceTyp return nil } -func awsEc2query_deserializeDocumentInstanceTypeInfoListUnwrapped(v *[]*types.InstanceTypeInfo, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceTypeInfo +func awsEc2query_deserializeDocumentInstanceTypeInfoListUnwrapped(v *[]types.InstanceTypeInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceTypeInfo if *v == nil { - sv = make([]*types.InstanceTypeInfo, 0) + sv = make([]types.InstanceTypeInfo, 0) } else { sv = *v } switch { default: - var mv *types.InstanceTypeInfo + var mv types.InstanceTypeInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceTypeInfo(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceTypeInfo(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -60821,7 +61199,7 @@ func awsEc2query_deserializeDocumentInstanceTypeOffering(v **types.InstanceTypeO } if val != nil { xtv := string(val) - sv.Location = &xtv + sv.Location = ptr.String(xtv) } case strings.EqualFold("locationType", t.Name.Local): @@ -60847,13 +61225,13 @@ func awsEc2query_deserializeDocumentInstanceTypeOffering(v **types.InstanceTypeO return nil } -func awsEc2query_deserializeDocumentInstanceTypeOfferingsList(v *[]*types.InstanceTypeOffering, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceTypeOfferingsList(v *[]types.InstanceTypeOffering, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceTypeOffering + var sv []types.InstanceTypeOffering if *v == nil { - sv = make([]*types.InstanceTypeOffering, 0) + sv = make([]types.InstanceTypeOffering, 0) } else { sv = *v } @@ -60869,11 +61247,13 @@ func awsEc2query_deserializeDocumentInstanceTypeOfferingsList(v *[]*types.Instan } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceTypeOffering + var col types.InstanceTypeOffering nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceTypeOffering(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceTypeOffering(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -60886,23 +61266,25 @@ func awsEc2query_deserializeDocumentInstanceTypeOfferingsList(v *[]*types.Instan return nil } -func awsEc2query_deserializeDocumentInstanceTypeOfferingsListUnwrapped(v *[]*types.InstanceTypeOffering, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceTypeOffering +func awsEc2query_deserializeDocumentInstanceTypeOfferingsListUnwrapped(v *[]types.InstanceTypeOffering, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceTypeOffering if *v == nil { - sv = make([]*types.InstanceTypeOffering, 0) + sv = make([]types.InstanceTypeOffering, 0) } else { sv = *v } switch { default: - var mv *types.InstanceTypeOffering + var mv types.InstanceTypeOffering t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceTypeOffering(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceTypeOffering(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -60943,7 +61325,7 @@ func awsEc2query_deserializeDocumentInstanceUsage(v **types.InstanceUsage, decod } if val != nil { xtv := string(val) - sv.AccountId = &xtv + sv.AccountId = ptr.String(xtv) } case strings.EqualFold("usedInstanceCount", t.Name.Local): @@ -60960,7 +61342,7 @@ func awsEc2query_deserializeDocumentInstanceUsage(v **types.InstanceUsage, decod if err != nil { return err } - sv.UsedInstanceCount = ptr.Int32(int32(i64)) + sv.UsedInstanceCount = int32(i64) } default: @@ -60973,13 +61355,13 @@ func awsEc2query_deserializeDocumentInstanceUsage(v **types.InstanceUsage, decod return nil } -func awsEc2query_deserializeDocumentInstanceUsageSet(v *[]*types.InstanceUsage, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceUsageSet(v *[]types.InstanceUsage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceUsage + var sv []types.InstanceUsage if *v == nil { - sv = make([]*types.InstanceUsage, 0) + sv = make([]types.InstanceUsage, 0) } else { sv = *v } @@ -60995,11 +61377,13 @@ func awsEc2query_deserializeDocumentInstanceUsageSet(v *[]*types.InstanceUsage, } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InstanceUsage + var col types.InstanceUsage nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceUsage(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceUsage(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -61012,23 +61396,25 @@ func awsEc2query_deserializeDocumentInstanceUsageSet(v *[]*types.InstanceUsage, return nil } -func awsEc2query_deserializeDocumentInstanceUsageSetUnwrapped(v *[]*types.InstanceUsage, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceUsage +func awsEc2query_deserializeDocumentInstanceUsageSetUnwrapped(v *[]types.InstanceUsage, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceUsage if *v == nil { - sv = make([]*types.InstanceUsage, 0) + sv = make([]types.InstanceUsage, 0) } else { sv = *v } switch { default: - var mv *types.InstanceUsage + var mv types.InstanceUsage t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceUsage(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceUsage(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -61075,7 +61461,7 @@ func awsEc2query_deserializeDocumentInternetGateway(v **types.InternetGateway, d } if val != nil { xtv := string(val) - sv.InternetGatewayId = &xtv + sv.InternetGatewayId = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -61091,7 +61477,7 @@ func awsEc2query_deserializeDocumentInternetGateway(v **types.InternetGateway, d } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -61158,7 +61544,7 @@ func awsEc2query_deserializeDocumentInternetGatewayAttachment(v **types.Internet } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -61171,13 +61557,13 @@ func awsEc2query_deserializeDocumentInternetGatewayAttachment(v **types.Internet return nil } -func awsEc2query_deserializeDocumentInternetGatewayAttachmentList(v *[]*types.InternetGatewayAttachment, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInternetGatewayAttachmentList(v *[]types.InternetGatewayAttachment, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InternetGatewayAttachment + var sv []types.InternetGatewayAttachment if *v == nil { - sv = make([]*types.InternetGatewayAttachment, 0) + sv = make([]types.InternetGatewayAttachment, 0) } else { sv = *v } @@ -61193,11 +61579,13 @@ func awsEc2query_deserializeDocumentInternetGatewayAttachmentList(v *[]*types.In } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InternetGatewayAttachment + var col types.InternetGatewayAttachment nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInternetGatewayAttachment(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInternetGatewayAttachment(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -61210,35 +61598,37 @@ func awsEc2query_deserializeDocumentInternetGatewayAttachmentList(v *[]*types.In return nil } -func awsEc2query_deserializeDocumentInternetGatewayAttachmentListUnwrapped(v *[]*types.InternetGatewayAttachment, decoder smithyxml.NodeDecoder) error { - var sv []*types.InternetGatewayAttachment +func awsEc2query_deserializeDocumentInternetGatewayAttachmentListUnwrapped(v *[]types.InternetGatewayAttachment, decoder smithyxml.NodeDecoder) error { + var sv []types.InternetGatewayAttachment if *v == nil { - sv = make([]*types.InternetGatewayAttachment, 0) + sv = make([]types.InternetGatewayAttachment, 0) } else { sv = *v } switch { default: - var mv *types.InternetGatewayAttachment + var mv types.InternetGatewayAttachment t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInternetGatewayAttachment(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInternetGatewayAttachment(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentInternetGatewayList(v *[]*types.InternetGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInternetGatewayList(v *[]types.InternetGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InternetGateway + var sv []types.InternetGateway if *v == nil { - sv = make([]*types.InternetGateway, 0) + sv = make([]types.InternetGateway, 0) } else { sv = *v } @@ -61254,11 +61644,13 @@ func awsEc2query_deserializeDocumentInternetGatewayList(v *[]*types.InternetGate } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.InternetGateway + var col types.InternetGateway nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInternetGateway(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInternetGateway(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -61271,23 +61663,25 @@ func awsEc2query_deserializeDocumentInternetGatewayList(v *[]*types.InternetGate return nil } -func awsEc2query_deserializeDocumentInternetGatewayListUnwrapped(v *[]*types.InternetGateway, decoder smithyxml.NodeDecoder) error { - var sv []*types.InternetGateway +func awsEc2query_deserializeDocumentInternetGatewayListUnwrapped(v *[]types.InternetGateway, decoder smithyxml.NodeDecoder) error { + var sv []types.InternetGateway if *v == nil { - sv = make([]*types.InternetGateway, 0) + sv = make([]types.InternetGateway, 0) } else { sv = *v } switch { default: - var mv *types.InternetGateway + var mv types.InternetGateway t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInternetGateway(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentInternetGateway(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -61329,7 +61723,7 @@ func awsEc2query_deserializeDocumentIpPermission(v **types.IpPermission, decoder if err != nil { return err } - sv.FromPort = ptr.Int32(int32(i64)) + sv.FromPort = int32(i64) } case strings.EqualFold("ipProtocol", t.Name.Local): @@ -61345,7 +61739,7 @@ func awsEc2query_deserializeDocumentIpPermission(v **types.IpPermission, decoder } if val != nil { xtv := string(val) - sv.IpProtocol = &xtv + sv.IpProtocol = ptr.String(xtv) } case strings.EqualFold("ipRanges", t.Name.Local): @@ -61380,7 +61774,7 @@ func awsEc2query_deserializeDocumentIpPermission(v **types.IpPermission, decoder if err != nil { return err } - sv.ToPort = ptr.Int32(int32(i64)) + sv.ToPort = int32(i64) } case strings.EqualFold("groups", t.Name.Local): @@ -61399,13 +61793,13 @@ func awsEc2query_deserializeDocumentIpPermission(v **types.IpPermission, decoder return nil } -func awsEc2query_deserializeDocumentIpPermissionList(v *[]*types.IpPermission, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpPermissionList(v *[]types.IpPermission, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.IpPermission + var sv []types.IpPermission if *v == nil { - sv = make([]*types.IpPermission, 0) + sv = make([]types.IpPermission, 0) } else { sv = *v } @@ -61421,11 +61815,13 @@ func awsEc2query_deserializeDocumentIpPermissionList(v *[]*types.IpPermission, d } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.IpPermission + var col types.IpPermission nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpPermission(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentIpPermission(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -61438,23 +61834,25 @@ func awsEc2query_deserializeDocumentIpPermissionList(v *[]*types.IpPermission, d return nil } -func awsEc2query_deserializeDocumentIpPermissionListUnwrapped(v *[]*types.IpPermission, decoder smithyxml.NodeDecoder) error { - var sv []*types.IpPermission +func awsEc2query_deserializeDocumentIpPermissionListUnwrapped(v *[]types.IpPermission, decoder smithyxml.NodeDecoder) error { + var sv []types.IpPermission if *v == nil { - sv = make([]*types.IpPermission, 0) + sv = make([]types.IpPermission, 0) } else { sv = *v } switch { default: - var mv *types.IpPermission + var mv types.IpPermission t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpPermission(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpPermission(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -61495,7 +61893,7 @@ func awsEc2query_deserializeDocumentIpRange(v **types.IpRange, decoder smithyxml } if val != nil { xtv := string(val) - sv.CidrIp = &xtv + sv.CidrIp = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -61511,7 +61909,7 @@ func awsEc2query_deserializeDocumentIpRange(v **types.IpRange, decoder smithyxml } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } default: @@ -61524,13 +61922,13 @@ func awsEc2query_deserializeDocumentIpRange(v **types.IpRange, decoder smithyxml return nil } -func awsEc2query_deserializeDocumentIpRangeList(v *[]*types.IpRange, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpRangeList(v *[]types.IpRange, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.IpRange + var sv []types.IpRange if *v == nil { - sv = make([]*types.IpRange, 0) + sv = make([]types.IpRange, 0) } else { sv = *v } @@ -61546,11 +61944,13 @@ func awsEc2query_deserializeDocumentIpRangeList(v *[]*types.IpRange, decoder smi } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.IpRange + var col types.IpRange nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpRange(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentIpRange(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -61563,35 +61963,37 @@ func awsEc2query_deserializeDocumentIpRangeList(v *[]*types.IpRange, decoder smi return nil } -func awsEc2query_deserializeDocumentIpRangeListUnwrapped(v *[]*types.IpRange, decoder smithyxml.NodeDecoder) error { - var sv []*types.IpRange +func awsEc2query_deserializeDocumentIpRangeListUnwrapped(v *[]types.IpRange, decoder smithyxml.NodeDecoder) error { + var sv []types.IpRange if *v == nil { - sv = make([]*types.IpRange, 0) + sv = make([]types.IpRange, 0) } else { sv = *v } switch { default: - var mv *types.IpRange + var mv types.IpRange t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpRange(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpRange(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentIpRanges(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpRanges(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -61609,20 +62011,17 @@ func awsEc2query_deserializeDocumentIpRanges(v *[]*string, decoder smithyxml.Nod decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -61635,17 +62034,17 @@ func awsEc2query_deserializeDocumentIpRanges(v *[]*string, decoder smithyxml.Nod return nil } -func awsEc2query_deserializeDocumentIpRangesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentIpRangesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -61653,27 +62052,24 @@ func awsEc2query_deserializeDocumentIpRangesUnwrapped(v *[]*string, decoder smit return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentIpv6AddressList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpv6AddressList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -61691,20 +62087,17 @@ func awsEc2query_deserializeDocumentIpv6AddressList(v *[]*string, decoder smithy decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -61717,17 +62110,17 @@ func awsEc2query_deserializeDocumentIpv6AddressList(v *[]*string, decoder smithy return nil } -func awsEc2query_deserializeDocumentIpv6AddressListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentIpv6AddressListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -61735,14 +62128,11 @@ func awsEc2query_deserializeDocumentIpv6AddressListUnwrapped(v *[]*string, decod return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -61784,7 +62174,7 @@ func awsEc2query_deserializeDocumentIpv6CidrAssociation(v **types.Ipv6CidrAssoci } if val != nil { xtv := string(val) - sv.AssociatedResource = &xtv + sv.AssociatedResource = ptr.String(xtv) } case strings.EqualFold("ipv6Cidr", t.Name.Local): @@ -61800,7 +62190,7 @@ func awsEc2query_deserializeDocumentIpv6CidrAssociation(v **types.Ipv6CidrAssoci } if val != nil { xtv := string(val) - sv.Ipv6Cidr = &xtv + sv.Ipv6Cidr = ptr.String(xtv) } default: @@ -61813,13 +62203,13 @@ func awsEc2query_deserializeDocumentIpv6CidrAssociation(v **types.Ipv6CidrAssoci return nil } -func awsEc2query_deserializeDocumentIpv6CidrAssociationSet(v *[]*types.Ipv6CidrAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpv6CidrAssociationSet(v *[]types.Ipv6CidrAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Ipv6CidrAssociation + var sv []types.Ipv6CidrAssociation if *v == nil { - sv = make([]*types.Ipv6CidrAssociation, 0) + sv = make([]types.Ipv6CidrAssociation, 0) } else { sv = *v } @@ -61835,11 +62225,13 @@ func awsEc2query_deserializeDocumentIpv6CidrAssociationSet(v *[]*types.Ipv6CidrA } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Ipv6CidrAssociation + var col types.Ipv6CidrAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv6CidrAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentIpv6CidrAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -61852,23 +62244,25 @@ func awsEc2query_deserializeDocumentIpv6CidrAssociationSet(v *[]*types.Ipv6CidrA return nil } -func awsEc2query_deserializeDocumentIpv6CidrAssociationSetUnwrapped(v *[]*types.Ipv6CidrAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.Ipv6CidrAssociation +func awsEc2query_deserializeDocumentIpv6CidrAssociationSetUnwrapped(v *[]types.Ipv6CidrAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.Ipv6CidrAssociation if *v == nil { - sv = make([]*types.Ipv6CidrAssociation, 0) + sv = make([]types.Ipv6CidrAssociation, 0) } else { sv = *v } switch { default: - var mv *types.Ipv6CidrAssociation + var mv types.Ipv6CidrAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv6CidrAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpv6CidrAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -61909,7 +62303,7 @@ func awsEc2query_deserializeDocumentIpv6CidrBlock(v **types.Ipv6CidrBlock, decod } if val != nil { xtv := string(val) - sv.Ipv6CidrBlock = &xtv + sv.Ipv6CidrBlock = ptr.String(xtv) } default: @@ -61922,13 +62316,13 @@ func awsEc2query_deserializeDocumentIpv6CidrBlock(v **types.Ipv6CidrBlock, decod return nil } -func awsEc2query_deserializeDocumentIpv6CidrBlockSet(v *[]*types.Ipv6CidrBlock, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpv6CidrBlockSet(v *[]types.Ipv6CidrBlock, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Ipv6CidrBlock + var sv []types.Ipv6CidrBlock if *v == nil { - sv = make([]*types.Ipv6CidrBlock, 0) + sv = make([]types.Ipv6CidrBlock, 0) } else { sv = *v } @@ -61944,11 +62338,13 @@ func awsEc2query_deserializeDocumentIpv6CidrBlockSet(v *[]*types.Ipv6CidrBlock, } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Ipv6CidrBlock + var col types.Ipv6CidrBlock nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv6CidrBlock(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentIpv6CidrBlock(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -61961,23 +62357,25 @@ func awsEc2query_deserializeDocumentIpv6CidrBlockSet(v *[]*types.Ipv6CidrBlock, return nil } -func awsEc2query_deserializeDocumentIpv6CidrBlockSetUnwrapped(v *[]*types.Ipv6CidrBlock, decoder smithyxml.NodeDecoder) error { - var sv []*types.Ipv6CidrBlock +func awsEc2query_deserializeDocumentIpv6CidrBlockSetUnwrapped(v *[]types.Ipv6CidrBlock, decoder smithyxml.NodeDecoder) error { + var sv []types.Ipv6CidrBlock if *v == nil { - sv = make([]*types.Ipv6CidrBlock, 0) + sv = make([]types.Ipv6CidrBlock, 0) } else { sv = *v } switch { default: - var mv *types.Ipv6CidrBlock + var mv types.Ipv6CidrBlock t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv6CidrBlock(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpv6CidrBlock(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -62018,7 +62416,7 @@ func awsEc2query_deserializeDocumentIpv6Pool(v **types.Ipv6Pool, decoder smithyx } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("poolCidrBlockSet", t.Name.Local): @@ -62040,7 +62438,7 @@ func awsEc2query_deserializeDocumentIpv6Pool(v **types.Ipv6Pool, decoder smithyx } if val != nil { xtv := string(val) - sv.PoolId = &xtv + sv.PoolId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -62059,13 +62457,13 @@ func awsEc2query_deserializeDocumentIpv6Pool(v **types.Ipv6Pool, decoder smithyx return nil } -func awsEc2query_deserializeDocumentIpv6PoolSet(v *[]*types.Ipv6Pool, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpv6PoolSet(v *[]types.Ipv6Pool, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Ipv6Pool + var sv []types.Ipv6Pool if *v == nil { - sv = make([]*types.Ipv6Pool, 0) + sv = make([]types.Ipv6Pool, 0) } else { sv = *v } @@ -62081,11 +62479,13 @@ func awsEc2query_deserializeDocumentIpv6PoolSet(v *[]*types.Ipv6Pool, decoder sm } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Ipv6Pool + var col types.Ipv6Pool nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv6Pool(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentIpv6Pool(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -62098,23 +62498,25 @@ func awsEc2query_deserializeDocumentIpv6PoolSet(v *[]*types.Ipv6Pool, decoder sm return nil } -func awsEc2query_deserializeDocumentIpv6PoolSetUnwrapped(v *[]*types.Ipv6Pool, decoder smithyxml.NodeDecoder) error { - var sv []*types.Ipv6Pool +func awsEc2query_deserializeDocumentIpv6PoolSetUnwrapped(v *[]types.Ipv6Pool, decoder smithyxml.NodeDecoder) error { + var sv []types.Ipv6Pool if *v == nil { - sv = make([]*types.Ipv6Pool, 0) + sv = make([]types.Ipv6Pool, 0) } else { sv = *v } switch { default: - var mv *types.Ipv6Pool + var mv types.Ipv6Pool t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv6Pool(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpv6Pool(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -62155,7 +62557,7 @@ func awsEc2query_deserializeDocumentIpv6Range(v **types.Ipv6Range, decoder smith } if val != nil { xtv := string(val) - sv.CidrIpv6 = &xtv + sv.CidrIpv6 = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -62171,7 +62573,7 @@ func awsEc2query_deserializeDocumentIpv6Range(v **types.Ipv6Range, decoder smith } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } default: @@ -62184,13 +62586,13 @@ func awsEc2query_deserializeDocumentIpv6Range(v **types.Ipv6Range, decoder smith return nil } -func awsEc2query_deserializeDocumentIpv6RangeList(v *[]*types.Ipv6Range, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpv6RangeList(v *[]types.Ipv6Range, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Ipv6Range + var sv []types.Ipv6Range if *v == nil { - sv = make([]*types.Ipv6Range, 0) + sv = make([]types.Ipv6Range, 0) } else { sv = *v } @@ -62206,11 +62608,13 @@ func awsEc2query_deserializeDocumentIpv6RangeList(v *[]*types.Ipv6Range, decoder } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Ipv6Range + var col types.Ipv6Range nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv6Range(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentIpv6Range(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -62223,23 +62627,25 @@ func awsEc2query_deserializeDocumentIpv6RangeList(v *[]*types.Ipv6Range, decoder return nil } -func awsEc2query_deserializeDocumentIpv6RangeListUnwrapped(v *[]*types.Ipv6Range, decoder smithyxml.NodeDecoder) error { - var sv []*types.Ipv6Range +func awsEc2query_deserializeDocumentIpv6RangeListUnwrapped(v *[]types.Ipv6Range, decoder smithyxml.NodeDecoder) error { + var sv []types.Ipv6Range if *v == nil { - sv = make([]*types.Ipv6Range, 0) + sv = make([]types.Ipv6Range, 0) } else { sv = *v } switch { default: - var mv *types.Ipv6Range + var mv types.Ipv6Range t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv6Range(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpv6Range(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -62280,7 +62686,7 @@ func awsEc2query_deserializeDocumentKeyPairInfo(v **types.KeyPairInfo, decoder s } if val != nil { xtv := string(val) - sv.KeyFingerprint = &xtv + sv.KeyFingerprint = ptr.String(xtv) } case strings.EqualFold("keyName", t.Name.Local): @@ -62296,7 +62702,7 @@ func awsEc2query_deserializeDocumentKeyPairInfo(v **types.KeyPairInfo, decoder s } if val != nil { xtv := string(val) - sv.KeyName = &xtv + sv.KeyName = ptr.String(xtv) } case strings.EqualFold("keyPairId", t.Name.Local): @@ -62312,7 +62718,7 @@ func awsEc2query_deserializeDocumentKeyPairInfo(v **types.KeyPairInfo, decoder s } if val != nil { xtv := string(val) - sv.KeyPairId = &xtv + sv.KeyPairId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -62331,13 +62737,13 @@ func awsEc2query_deserializeDocumentKeyPairInfo(v **types.KeyPairInfo, decoder s return nil } -func awsEc2query_deserializeDocumentKeyPairList(v *[]*types.KeyPairInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentKeyPairList(v *[]types.KeyPairInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.KeyPairInfo + var sv []types.KeyPairInfo if *v == nil { - sv = make([]*types.KeyPairInfo, 0) + sv = make([]types.KeyPairInfo, 0) } else { sv = *v } @@ -62353,11 +62759,13 @@ func awsEc2query_deserializeDocumentKeyPairList(v *[]*types.KeyPairInfo, decoder } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.KeyPairInfo + var col types.KeyPairInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentKeyPairInfo(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentKeyPairInfo(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -62370,23 +62778,25 @@ func awsEc2query_deserializeDocumentKeyPairList(v *[]*types.KeyPairInfo, decoder return nil } -func awsEc2query_deserializeDocumentKeyPairListUnwrapped(v *[]*types.KeyPairInfo, decoder smithyxml.NodeDecoder) error { - var sv []*types.KeyPairInfo +func awsEc2query_deserializeDocumentKeyPairListUnwrapped(v *[]types.KeyPairInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.KeyPairInfo if *v == nil { - sv = make([]*types.KeyPairInfo, 0) + sv = make([]types.KeyPairInfo, 0) } else { sv = *v } switch { default: - var mv *types.KeyPairInfo + var mv types.KeyPairInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentKeyPairInfo(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentKeyPairInfo(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -62427,7 +62837,7 @@ func awsEc2query_deserializeDocumentLastError(v **types.LastError, decoder smith } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -62443,7 +62853,7 @@ func awsEc2query_deserializeDocumentLastError(v **types.LastError, decoder smith } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -62504,7 +62914,7 @@ func awsEc2query_deserializeDocumentLaunchPermission(v **types.LaunchPermission, } if val != nil { xtv := string(val) - sv.UserId = &xtv + sv.UserId = ptr.String(xtv) } default: @@ -62517,13 +62927,13 @@ func awsEc2query_deserializeDocumentLaunchPermission(v **types.LaunchPermission, return nil } -func awsEc2query_deserializeDocumentLaunchPermissionList(v *[]*types.LaunchPermission, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLaunchPermissionList(v *[]types.LaunchPermission, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchPermission + var sv []types.LaunchPermission if *v == nil { - sv = make([]*types.LaunchPermission, 0) + sv = make([]types.LaunchPermission, 0) } else { sv = *v } @@ -62539,11 +62949,13 @@ func awsEc2query_deserializeDocumentLaunchPermissionList(v *[]*types.LaunchPermi } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LaunchPermission + var col types.LaunchPermission nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchPermission(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLaunchPermission(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -62556,23 +62968,25 @@ func awsEc2query_deserializeDocumentLaunchPermissionList(v *[]*types.LaunchPermi return nil } -func awsEc2query_deserializeDocumentLaunchPermissionListUnwrapped(v *[]*types.LaunchPermission, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchPermission +func awsEc2query_deserializeDocumentLaunchPermissionListUnwrapped(v *[]types.LaunchPermission, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchPermission if *v == nil { - sv = make([]*types.LaunchPermission, 0) + sv = make([]types.LaunchPermission, 0) } else { sv = *v } switch { default: - var mv *types.LaunchPermission + var mv types.LaunchPermission t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchPermission(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLaunchPermission(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -62613,7 +63027,7 @@ func awsEc2query_deserializeDocumentLaunchSpecification(v **types.LaunchSpecific } if val != nil { xtv := string(val) - sv.AddressingType = &xtv + sv.AddressingType = ptr.String(xtv) } case strings.EqualFold("blockDeviceMapping", t.Name.Local): @@ -62635,7 +63049,7 @@ func awsEc2query_deserializeDocumentLaunchSpecification(v **types.LaunchSpecific if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsOptimized = &xtv + sv.EbsOptimized = xtv } case strings.EqualFold("iamInstanceProfile", t.Name.Local): @@ -62657,7 +63071,7 @@ func awsEc2query_deserializeDocumentLaunchSpecification(v **types.LaunchSpecific } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } case strings.EqualFold("instanceType", t.Name.Local): @@ -62686,7 +63100,7 @@ func awsEc2query_deserializeDocumentLaunchSpecification(v **types.LaunchSpecific } if val != nil { xtv := string(val) - sv.KernelId = &xtv + sv.KernelId = ptr.String(xtv) } case strings.EqualFold("keyName", t.Name.Local): @@ -62702,7 +63116,7 @@ func awsEc2query_deserializeDocumentLaunchSpecification(v **types.LaunchSpecific } if val != nil { xtv := string(val) - sv.KeyName = &xtv + sv.KeyName = ptr.String(xtv) } case strings.EqualFold("monitoring", t.Name.Local): @@ -62736,7 +63150,7 @@ func awsEc2query_deserializeDocumentLaunchSpecification(v **types.LaunchSpecific } if val != nil { xtv := string(val) - sv.RamdiskId = &xtv + sv.RamdiskId = ptr.String(xtv) } case strings.EqualFold("groupSet", t.Name.Local): @@ -62758,7 +63172,7 @@ func awsEc2query_deserializeDocumentLaunchSpecification(v **types.LaunchSpecific } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } case strings.EqualFold("userData", t.Name.Local): @@ -62774,7 +63188,7 @@ func awsEc2query_deserializeDocumentLaunchSpecification(v **types.LaunchSpecific } if val != nil { xtv := string(val) - sv.UserData = &xtv + sv.UserData = ptr.String(xtv) } default: @@ -62787,13 +63201,13 @@ func awsEc2query_deserializeDocumentLaunchSpecification(v **types.LaunchSpecific return nil } -func awsEc2query_deserializeDocumentLaunchSpecsList(v *[]*types.SpotFleetLaunchSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLaunchSpecsList(v *[]types.SpotFleetLaunchSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SpotFleetLaunchSpecification + var sv []types.SpotFleetLaunchSpecification if *v == nil { - sv = make([]*types.SpotFleetLaunchSpecification, 0) + sv = make([]types.SpotFleetLaunchSpecification, 0) } else { sv = *v } @@ -62809,11 +63223,13 @@ func awsEc2query_deserializeDocumentLaunchSpecsList(v *[]*types.SpotFleetLaunchS } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SpotFleetLaunchSpecification + var col types.SpotFleetLaunchSpecification nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -62826,23 +63242,25 @@ func awsEc2query_deserializeDocumentLaunchSpecsList(v *[]*types.SpotFleetLaunchS return nil } -func awsEc2query_deserializeDocumentLaunchSpecsListUnwrapped(v *[]*types.SpotFleetLaunchSpecification, decoder smithyxml.NodeDecoder) error { - var sv []*types.SpotFleetLaunchSpecification +func awsEc2query_deserializeDocumentLaunchSpecsListUnwrapped(v *[]types.SpotFleetLaunchSpecification, decoder smithyxml.NodeDecoder) error { + var sv []types.SpotFleetLaunchSpecification if *v == nil { - sv = make([]*types.SpotFleetLaunchSpecification, 0) + sv = make([]types.SpotFleetLaunchSpecification, 0) } else { sv = *v } switch { default: - var mv *types.SpotFleetLaunchSpecification + var mv types.SpotFleetLaunchSpecification t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -62883,7 +63301,7 @@ func awsEc2query_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, dec } if val != nil { xtv := string(val) - sv.CreatedBy = &xtv + sv.CreatedBy = ptr.String(xtv) } case strings.EqualFold("createTime", t.Name.Local): @@ -62900,7 +63318,7 @@ func awsEc2query_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, dec if err != nil { return err } - sv.CreateTime = &t + sv.CreateTime = ptr.Time(t) } case strings.EqualFold("defaultVersionNumber", t.Name.Local): @@ -62917,7 +63335,7 @@ func awsEc2query_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, dec if err != nil { return err } - sv.DefaultVersionNumber = &i64 + sv.DefaultVersionNumber = i64 } case strings.EqualFold("latestVersionNumber", t.Name.Local): @@ -62934,7 +63352,7 @@ func awsEc2query_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, dec if err != nil { return err } - sv.LatestVersionNumber = &i64 + sv.LatestVersionNumber = i64 } case strings.EqualFold("launchTemplateId", t.Name.Local): @@ -62950,7 +63368,7 @@ func awsEc2query_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, dec } if val != nil { xtv := string(val) - sv.LaunchTemplateId = &xtv + sv.LaunchTemplateId = ptr.String(xtv) } case strings.EqualFold("launchTemplateName", t.Name.Local): @@ -62966,7 +63384,7 @@ func awsEc2query_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, dec } if val != nil { xtv := string(val) - sv.LaunchTemplateName = &xtv + sv.LaunchTemplateName = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -63064,7 +63482,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMapping(v **types.L } if val != nil { xtv := string(val) - sv.DeviceName = &xtv + sv.DeviceName = ptr.String(xtv) } case strings.EqualFold("ebs", t.Name.Local): @@ -63086,7 +63504,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMapping(v **types.L } if val != nil { xtv := string(val) - sv.NoDevice = &xtv + sv.NoDevice = ptr.String(xtv) } case strings.EqualFold("virtualName", t.Name.Local): @@ -63102,7 +63520,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMapping(v **types.L } if val != nil { xtv := string(val) - sv.VirtualName = &xtv + sv.VirtualName = ptr.String(xtv) } default: @@ -63115,13 +63533,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMapping(v **types.L return nil } -func awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMappingList(v *[]*types.LaunchTemplateBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMappingList(v *[]types.LaunchTemplateBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchTemplateBlockDeviceMapping + var sv []types.LaunchTemplateBlockDeviceMapping if *v == nil { - sv = make([]*types.LaunchTemplateBlockDeviceMapping, 0) + sv = make([]types.LaunchTemplateBlockDeviceMapping, 0) } else { sv = *v } @@ -63137,11 +63555,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMappingList(v *[]*t } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LaunchTemplateBlockDeviceMapping + var col types.LaunchTemplateBlockDeviceMapping nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMapping(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -63154,23 +63574,25 @@ func awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMappingList(v *[]*t return nil } -func awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMappingListUnwrapped(v *[]*types.LaunchTemplateBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchTemplateBlockDeviceMapping +func awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMappingListUnwrapped(v *[]types.LaunchTemplateBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchTemplateBlockDeviceMapping if *v == nil { - sv = make([]*types.LaunchTemplateBlockDeviceMapping, 0) + sv = make([]types.LaunchTemplateBlockDeviceMapping, 0) } else { sv = *v } switch { default: - var mv *types.LaunchTemplateBlockDeviceMapping + var mv types.LaunchTemplateBlockDeviceMapping t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMapping(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -63271,13 +63693,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateConfig(v **types.LaunchTemplat return nil } -func awsEc2query_deserializeDocumentLaunchTemplateConfigList(v *[]*types.LaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLaunchTemplateConfigList(v *[]types.LaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchTemplateConfig + var sv []types.LaunchTemplateConfig if *v == nil { - sv = make([]*types.LaunchTemplateConfig, 0) + sv = make([]types.LaunchTemplateConfig, 0) } else { sv = *v } @@ -63293,11 +63715,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateConfigList(v *[]*types.LaunchT } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LaunchTemplateConfig + var col types.LaunchTemplateConfig nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateConfig(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLaunchTemplateConfig(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -63310,23 +63734,25 @@ func awsEc2query_deserializeDocumentLaunchTemplateConfigList(v *[]*types.LaunchT return nil } -func awsEc2query_deserializeDocumentLaunchTemplateConfigListUnwrapped(v *[]*types.LaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchTemplateConfig +func awsEc2query_deserializeDocumentLaunchTemplateConfigListUnwrapped(v *[]types.LaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchTemplateConfig if *v == nil { - sv = make([]*types.LaunchTemplateConfig, 0) + sv = make([]types.LaunchTemplateConfig, 0) } else { sv = *v } switch { default: - var mv *types.LaunchTemplateConfig + var mv types.LaunchTemplateConfig t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateConfig(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLaunchTemplateConfig(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -63368,7 +63794,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateCpuOptions(v **types.LaunchTem if err != nil { return err } - sv.CoreCount = ptr.Int32(int32(i64)) + sv.CoreCount = int32(i64) } case strings.EqualFold("threadsPerCore", t.Name.Local): @@ -63385,7 +63811,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateCpuOptions(v **types.LaunchTem if err != nil { return err } - sv.ThreadsPerCore = ptr.Int32(int32(i64)) + sv.ThreadsPerCore = int32(i64) } default: @@ -63433,7 +63859,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateEbsBlockDevice(v **types.Launc if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = &xtv + sv.DeleteOnTermination = xtv } case strings.EqualFold("encrypted", t.Name.Local): @@ -63449,7 +63875,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateEbsBlockDevice(v **types.Launc if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("iops", t.Name.Local): @@ -63466,7 +63892,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateEbsBlockDevice(v **types.Launc if err != nil { return err } - sv.Iops = ptr.Int32(int32(i64)) + sv.Iops = int32(i64) } case strings.EqualFold("kmsKeyId", t.Name.Local): @@ -63482,7 +63908,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateEbsBlockDevice(v **types.Launc } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -63498,7 +63924,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateEbsBlockDevice(v **types.Launc } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("volumeSize", t.Name.Local): @@ -63515,7 +63941,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateEbsBlockDevice(v **types.Launc if err != nil { return err } - sv.VolumeSize = ptr.Int32(int32(i64)) + sv.VolumeSize = int32(i64) } case strings.EqualFold("volumeType", t.Name.Local): @@ -63577,7 +64003,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorRes if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case strings.EqualFold("type", t.Name.Local): @@ -63593,7 +64019,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorRes } if val != nil { xtv := string(val) - sv.Type = &xtv + sv.Type = ptr.String(xtv) } default: @@ -63606,13 +64032,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorRes return nil } -func awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponseList(v *[]*types.LaunchTemplateElasticInferenceAcceleratorResponse, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponseList(v *[]types.LaunchTemplateElasticInferenceAcceleratorResponse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchTemplateElasticInferenceAcceleratorResponse + var sv []types.LaunchTemplateElasticInferenceAcceleratorResponse if *v == nil { - sv = make([]*types.LaunchTemplateElasticInferenceAcceleratorResponse, 0) + sv = make([]types.LaunchTemplateElasticInferenceAcceleratorResponse, 0) } else { sv = *v } @@ -63628,11 +64054,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorRes } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LaunchTemplateElasticInferenceAcceleratorResponse + var col types.LaunchTemplateElasticInferenceAcceleratorResponse nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponse(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponse(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -63645,23 +64073,25 @@ func awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorRes return nil } -func awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponseListUnwrapped(v *[]*types.LaunchTemplateElasticInferenceAcceleratorResponse, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchTemplateElasticInferenceAcceleratorResponse +func awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponseListUnwrapped(v *[]types.LaunchTemplateElasticInferenceAcceleratorResponse, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchTemplateElasticInferenceAcceleratorResponse if *v == nil { - sv = make([]*types.LaunchTemplateElasticInferenceAcceleratorResponse, 0) + sv = make([]types.LaunchTemplateElasticInferenceAcceleratorResponse, 0) } else { sv = *v } switch { default: - var mv *types.LaunchTemplateElasticInferenceAcceleratorResponse + var mv types.LaunchTemplateElasticInferenceAcceleratorResponse t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponse(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponse(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -63702,7 +64132,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateEnclaveOptions(v **types.Launc if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } default: @@ -63750,7 +64180,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateHibernationOptions(v **types.L if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Configured = &xtv + sv.Configured = xtv } default: @@ -63798,7 +64228,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateIamInstanceProfileSpecificatio } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("name", t.Name.Local): @@ -63814,7 +64244,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateIamInstanceProfileSpecificatio } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -63927,7 +64357,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceMetadataOptions(v **ty if err != nil { return err } - sv.HttpPutResponseHopLimit = ptr.Int32(int32(i64)) + sv.HttpPutResponseHopLimit = int32(i64) } case strings.EqualFold("httpTokens", t.Name.Local): @@ -64001,7 +64431,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AssociateCarrierIpAddress = &xtv + sv.AssociateCarrierIpAddress = xtv } case strings.EqualFold("associatePublicIpAddress", t.Name.Local): @@ -64017,7 +64447,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AssociatePublicIpAddress = &xtv + sv.AssociatePublicIpAddress = xtv } case strings.EqualFold("deleteOnTermination", t.Name.Local): @@ -64033,7 +64463,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = &xtv + sv.DeleteOnTermination = xtv } case strings.EqualFold("description", t.Name.Local): @@ -64049,7 +64479,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("deviceIndex", t.Name.Local): @@ -64066,7 +64496,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif if err != nil { return err } - sv.DeviceIndex = ptr.Int32(int32(i64)) + sv.DeviceIndex = int32(i64) } case strings.EqualFold("groupSet", t.Name.Local): @@ -64088,7 +64518,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif } if val != nil { xtv := string(val) - sv.InterfaceType = &xtv + sv.InterfaceType = ptr.String(xtv) } case strings.EqualFold("ipv6AddressCount", t.Name.Local): @@ -64105,7 +64535,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif if err != nil { return err } - sv.Ipv6AddressCount = ptr.Int32(int32(i64)) + sv.Ipv6AddressCount = int32(i64) } case strings.EqualFold("ipv6AddressesSet", t.Name.Local): @@ -64127,7 +64557,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } case strings.EqualFold("privateIpAddress", t.Name.Local): @@ -64143,7 +64573,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif } if val != nil { xtv := string(val) - sv.PrivateIpAddress = &xtv + sv.PrivateIpAddress = ptr.String(xtv) } case strings.EqualFold("privateIpAddressesSet", t.Name.Local): @@ -64166,7 +64596,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif if err != nil { return err } - sv.SecondaryPrivateIpAddressCount = ptr.Int32(int32(i64)) + sv.SecondaryPrivateIpAddressCount = int32(i64) } case strings.EqualFold("subnetId", t.Name.Local): @@ -64182,7 +64612,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } default: @@ -64195,13 +64625,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif return nil } -func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecificationList(v *[]*types.LaunchTemplateInstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecificationList(v *[]types.LaunchTemplateInstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchTemplateInstanceNetworkInterfaceSpecification + var sv []types.LaunchTemplateInstanceNetworkInterfaceSpecification if *v == nil { - sv = make([]*types.LaunchTemplateInstanceNetworkInterfaceSpecification, 0) + sv = make([]types.LaunchTemplateInstanceNetworkInterfaceSpecification, 0) } else { sv = *v } @@ -64217,11 +64647,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LaunchTemplateInstanceNetworkInterfaceSpecification + var col types.LaunchTemplateInstanceNetworkInterfaceSpecification nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecification(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecification(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -64234,23 +64666,25 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif return nil } -func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecificationListUnwrapped(v *[]*types.LaunchTemplateInstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchTemplateInstanceNetworkInterfaceSpecification +func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecificationListUnwrapped(v *[]types.LaunchTemplateInstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchTemplateInstanceNetworkInterfaceSpecification if *v == nil { - sv = make([]*types.LaunchTemplateInstanceNetworkInterfaceSpecification, 0) + sv = make([]types.LaunchTemplateInstanceNetworkInterfaceSpecification, 0) } else { sv = *v } switch { default: - var mv *types.LaunchTemplateInstanceNetworkInterfaceSpecification + var mv types.LaunchTemplateInstanceNetworkInterfaceSpecification t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecification(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecification(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -64291,7 +64725,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateLicenseConfiguration(v **types } if val != nil { xtv := string(val) - sv.LicenseConfigurationArn = &xtv + sv.LicenseConfigurationArn = ptr.String(xtv) } default: @@ -64304,13 +64738,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateLicenseConfiguration(v **types return nil } -func awsEc2query_deserializeDocumentLaunchTemplateLicenseList(v *[]*types.LaunchTemplateLicenseConfiguration, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLaunchTemplateLicenseList(v *[]types.LaunchTemplateLicenseConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchTemplateLicenseConfiguration + var sv []types.LaunchTemplateLicenseConfiguration if *v == nil { - sv = make([]*types.LaunchTemplateLicenseConfiguration, 0) + sv = make([]types.LaunchTemplateLicenseConfiguration, 0) } else { sv = *v } @@ -64326,11 +64760,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateLicenseList(v *[]*types.Launch } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LaunchTemplateLicenseConfiguration + var col types.LaunchTemplateLicenseConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateLicenseConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLaunchTemplateLicenseConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -64343,23 +64779,25 @@ func awsEc2query_deserializeDocumentLaunchTemplateLicenseList(v *[]*types.Launch return nil } -func awsEc2query_deserializeDocumentLaunchTemplateLicenseListUnwrapped(v *[]*types.LaunchTemplateLicenseConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchTemplateLicenseConfiguration +func awsEc2query_deserializeDocumentLaunchTemplateLicenseListUnwrapped(v *[]types.LaunchTemplateLicenseConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchTemplateLicenseConfiguration if *v == nil { - sv = make([]*types.LaunchTemplateLicenseConfiguration, 0) + sv = make([]types.LaunchTemplateLicenseConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.LaunchTemplateLicenseConfiguration + var mv types.LaunchTemplateLicenseConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateLicenseConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLaunchTemplateLicenseConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -64400,7 +64838,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateOverrides(v **types.LaunchTemp } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("instanceType", t.Name.Local): @@ -64430,7 +64868,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateOverrides(v **types.LaunchTemp if err != nil { return err } - sv.Priority = &f64 + sv.Priority = f64 } case strings.EqualFold("spotPrice", t.Name.Local): @@ -64446,7 +64884,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateOverrides(v **types.LaunchTemp } if val != nil { xtv := string(val) - sv.SpotPrice = &xtv + sv.SpotPrice = ptr.String(xtv) } case strings.EqualFold("subnetId", t.Name.Local): @@ -64462,7 +64900,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateOverrides(v **types.LaunchTemp } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } case strings.EqualFold("weightedCapacity", t.Name.Local): @@ -64479,7 +64917,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateOverrides(v **types.LaunchTemp if err != nil { return err } - sv.WeightedCapacity = &f64 + sv.WeightedCapacity = f64 } default: @@ -64492,13 +64930,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateOverrides(v **types.LaunchTemp return nil } -func awsEc2query_deserializeDocumentLaunchTemplateOverridesList(v *[]*types.LaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLaunchTemplateOverridesList(v *[]types.LaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchTemplateOverrides + var sv []types.LaunchTemplateOverrides if *v == nil { - sv = make([]*types.LaunchTemplateOverrides, 0) + sv = make([]types.LaunchTemplateOverrides, 0) } else { sv = *v } @@ -64514,11 +64952,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateOverridesList(v *[]*types.Laun } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LaunchTemplateOverrides + var col types.LaunchTemplateOverrides nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateOverrides(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLaunchTemplateOverrides(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -64531,23 +64971,25 @@ func awsEc2query_deserializeDocumentLaunchTemplateOverridesList(v *[]*types.Laun return nil } -func awsEc2query_deserializeDocumentLaunchTemplateOverridesListUnwrapped(v *[]*types.LaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchTemplateOverrides +func awsEc2query_deserializeDocumentLaunchTemplateOverridesListUnwrapped(v *[]types.LaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchTemplateOverrides if *v == nil { - sv = make([]*types.LaunchTemplateOverrides, 0) + sv = make([]types.LaunchTemplateOverrides, 0) } else { sv = *v } switch { default: - var mv *types.LaunchTemplateOverrides + var mv types.LaunchTemplateOverrides t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateOverrides(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLaunchTemplateOverrides(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -64588,7 +65030,7 @@ func awsEc2query_deserializeDocumentLaunchTemplatePlacement(v **types.LaunchTemp } if val != nil { xtv := string(val) - sv.Affinity = &xtv + sv.Affinity = ptr.String(xtv) } case strings.EqualFold("availabilityZone", t.Name.Local): @@ -64604,7 +65046,7 @@ func awsEc2query_deserializeDocumentLaunchTemplatePlacement(v **types.LaunchTemp } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("groupName", t.Name.Local): @@ -64620,7 +65062,7 @@ func awsEc2query_deserializeDocumentLaunchTemplatePlacement(v **types.LaunchTemp } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } case strings.EqualFold("hostId", t.Name.Local): @@ -64636,7 +65078,7 @@ func awsEc2query_deserializeDocumentLaunchTemplatePlacement(v **types.LaunchTemp } if val != nil { xtv := string(val) - sv.HostId = &xtv + sv.HostId = ptr.String(xtv) } case strings.EqualFold("hostResourceGroupArn", t.Name.Local): @@ -64652,7 +65094,7 @@ func awsEc2query_deserializeDocumentLaunchTemplatePlacement(v **types.LaunchTemp } if val != nil { xtv := string(val) - sv.HostResourceGroupArn = &xtv + sv.HostResourceGroupArn = ptr.String(xtv) } case strings.EqualFold("partitionNumber", t.Name.Local): @@ -64669,7 +65111,7 @@ func awsEc2query_deserializeDocumentLaunchTemplatePlacement(v **types.LaunchTemp if err != nil { return err } - sv.PartitionNumber = ptr.Int32(int32(i64)) + sv.PartitionNumber = int32(i64) } case strings.EqualFold("spreadDomain", t.Name.Local): @@ -64685,7 +65127,7 @@ func awsEc2query_deserializeDocumentLaunchTemplatePlacement(v **types.LaunchTemp } if val != nil { xtv := string(val) - sv.SpreadDomain = &xtv + sv.SpreadDomain = ptr.String(xtv) } case strings.EqualFold("tenancy", t.Name.Local): @@ -64711,13 +65153,13 @@ func awsEc2query_deserializeDocumentLaunchTemplatePlacement(v **types.LaunchTemp return nil } -func awsEc2query_deserializeDocumentLaunchTemplateSet(v *[]*types.LaunchTemplate, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLaunchTemplateSet(v *[]types.LaunchTemplate, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchTemplate + var sv []types.LaunchTemplate if *v == nil { - sv = make([]*types.LaunchTemplate, 0) + sv = make([]types.LaunchTemplate, 0) } else { sv = *v } @@ -64733,11 +65175,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateSet(v *[]*types.LaunchTemplate } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LaunchTemplate + var col types.LaunchTemplate nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplate(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLaunchTemplate(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -64750,23 +65194,25 @@ func awsEc2query_deserializeDocumentLaunchTemplateSet(v *[]*types.LaunchTemplate return nil } -func awsEc2query_deserializeDocumentLaunchTemplateSetUnwrapped(v *[]*types.LaunchTemplate, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchTemplate +func awsEc2query_deserializeDocumentLaunchTemplateSetUnwrapped(v *[]types.LaunchTemplate, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchTemplate if *v == nil { - sv = make([]*types.LaunchTemplate, 0) + sv = make([]types.LaunchTemplate, 0) } else { sv = *v } switch { default: - var mv *types.LaunchTemplate + var mv types.LaunchTemplate t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplate(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLaunchTemplate(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -64807,7 +65253,7 @@ func awsEc2query_deserializeDocumentLaunchTemplatesMonitoring(v **types.LaunchTe if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } default: @@ -64856,7 +65302,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateSpotMarketOptions(v **types.La if err != nil { return err } - sv.BlockDurationMinutes = ptr.Int32(int32(i64)) + sv.BlockDurationMinutes = int32(i64) } case strings.EqualFold("instanceInterruptionBehavior", t.Name.Local): @@ -64885,7 +65331,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateSpotMarketOptions(v **types.La } if val != nil { xtv := string(val) - sv.MaxPrice = &xtv + sv.MaxPrice = ptr.String(xtv) } case strings.EqualFold("spotInstanceType", t.Name.Local): @@ -64915,7 +65361,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateSpotMarketOptions(v **types.La if err != nil { return err } - sv.ValidUntil = &t + sv.ValidUntil = ptr.Time(t) } default: @@ -64979,13 +65425,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateTagSpecification(v **types.Lau return nil } -func awsEc2query_deserializeDocumentLaunchTemplateTagSpecificationList(v *[]*types.LaunchTemplateTagSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLaunchTemplateTagSpecificationList(v *[]types.LaunchTemplateTagSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchTemplateTagSpecification + var sv []types.LaunchTemplateTagSpecification if *v == nil { - sv = make([]*types.LaunchTemplateTagSpecification, 0) + sv = make([]types.LaunchTemplateTagSpecification, 0) } else { sv = *v } @@ -65001,11 +65447,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateTagSpecificationList(v *[]*typ } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LaunchTemplateTagSpecification + var col types.LaunchTemplateTagSpecification nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateTagSpecification(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLaunchTemplateTagSpecification(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -65018,23 +65466,25 @@ func awsEc2query_deserializeDocumentLaunchTemplateTagSpecificationList(v *[]*typ return nil } -func awsEc2query_deserializeDocumentLaunchTemplateTagSpecificationListUnwrapped(v *[]*types.LaunchTemplateTagSpecification, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchTemplateTagSpecification +func awsEc2query_deserializeDocumentLaunchTemplateTagSpecificationListUnwrapped(v *[]types.LaunchTemplateTagSpecification, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchTemplateTagSpecification if *v == nil { - sv = make([]*types.LaunchTemplateTagSpecification, 0) + sv = make([]types.LaunchTemplateTagSpecification, 0) } else { sv = *v } switch { default: - var mv *types.LaunchTemplateTagSpecification + var mv types.LaunchTemplateTagSpecification t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateTagSpecification(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLaunchTemplateTagSpecification(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -65075,7 +65525,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTempla } if val != nil { xtv := string(val) - sv.CreatedBy = &xtv + sv.CreatedBy = ptr.String(xtv) } case strings.EqualFold("createTime", t.Name.Local): @@ -65092,7 +65542,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTempla if err != nil { return err } - sv.CreateTime = &t + sv.CreateTime = ptr.Time(t) } case strings.EqualFold("defaultVersion", t.Name.Local): @@ -65108,7 +65558,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTempla if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DefaultVersion = &xtv + sv.DefaultVersion = xtv } case strings.EqualFold("launchTemplateData", t.Name.Local): @@ -65130,7 +65580,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTempla } if val != nil { xtv := string(val) - sv.LaunchTemplateId = &xtv + sv.LaunchTemplateId = ptr.String(xtv) } case strings.EqualFold("launchTemplateName", t.Name.Local): @@ -65146,7 +65596,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTempla } if val != nil { xtv := string(val) - sv.LaunchTemplateName = &xtv + sv.LaunchTemplateName = ptr.String(xtv) } case strings.EqualFold("versionDescription", t.Name.Local): @@ -65162,7 +65612,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTempla } if val != nil { xtv := string(val) - sv.VersionDescription = &xtv + sv.VersionDescription = ptr.String(xtv) } case strings.EqualFold("versionNumber", t.Name.Local): @@ -65179,7 +65629,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTempla if err != nil { return err } - sv.VersionNumber = &i64 + sv.VersionNumber = i64 } default: @@ -65192,13 +65642,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTempla return nil } -func awsEc2query_deserializeDocumentLaunchTemplateVersionSet(v *[]*types.LaunchTemplateVersion, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLaunchTemplateVersionSet(v *[]types.LaunchTemplateVersion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchTemplateVersion + var sv []types.LaunchTemplateVersion if *v == nil { - sv = make([]*types.LaunchTemplateVersion, 0) + sv = make([]types.LaunchTemplateVersion, 0) } else { sv = *v } @@ -65214,11 +65664,13 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersionSet(v *[]*types.LaunchT } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LaunchTemplateVersion + var col types.LaunchTemplateVersion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateVersion(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLaunchTemplateVersion(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -65231,23 +65683,25 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersionSet(v *[]*types.LaunchT return nil } -func awsEc2query_deserializeDocumentLaunchTemplateVersionSetUnwrapped(v *[]*types.LaunchTemplateVersion, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchTemplateVersion +func awsEc2query_deserializeDocumentLaunchTemplateVersionSetUnwrapped(v *[]types.LaunchTemplateVersion, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchTemplateVersion if *v == nil { - sv = make([]*types.LaunchTemplateVersion, 0) + sv = make([]types.LaunchTemplateVersion, 0) } else { sv = *v } switch { default: - var mv *types.LaunchTemplateVersion + var mv types.LaunchTemplateVersion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateVersion(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLaunchTemplateVersion(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -65288,7 +65742,7 @@ func awsEc2query_deserializeDocumentLicenseConfiguration(v **types.LicenseConfig } if val != nil { xtv := string(val) - sv.LicenseConfigurationArn = &xtv + sv.LicenseConfigurationArn = ptr.String(xtv) } default: @@ -65301,13 +65755,13 @@ func awsEc2query_deserializeDocumentLicenseConfiguration(v **types.LicenseConfig return nil } -func awsEc2query_deserializeDocumentLicenseList(v *[]*types.LicenseConfiguration, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLicenseList(v *[]types.LicenseConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LicenseConfiguration + var sv []types.LicenseConfiguration if *v == nil { - sv = make([]*types.LicenseConfiguration, 0) + sv = make([]types.LicenseConfiguration, 0) } else { sv = *v } @@ -65323,11 +65777,13 @@ func awsEc2query_deserializeDocumentLicenseList(v *[]*types.LicenseConfiguration } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LicenseConfiguration + var col types.LicenseConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLicenseConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLicenseConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -65340,23 +65796,25 @@ func awsEc2query_deserializeDocumentLicenseList(v *[]*types.LicenseConfiguration return nil } -func awsEc2query_deserializeDocumentLicenseListUnwrapped(v *[]*types.LicenseConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.LicenseConfiguration +func awsEc2query_deserializeDocumentLicenseListUnwrapped(v *[]types.LicenseConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.LicenseConfiguration if *v == nil { - sv = make([]*types.LicenseConfiguration, 0) + sv = make([]types.LicenseConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.LicenseConfiguration + var mv types.LicenseConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLicenseConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLicenseConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -65454,7 +65912,7 @@ func awsEc2query_deserializeDocumentLoadPermission(v **types.LoadPermission, dec } if val != nil { xtv := string(val) - sv.UserId = &xtv + sv.UserId = ptr.String(xtv) } default: @@ -65467,13 +65925,13 @@ func awsEc2query_deserializeDocumentLoadPermission(v **types.LoadPermission, dec return nil } -func awsEc2query_deserializeDocumentLoadPermissionList(v *[]*types.LoadPermission, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLoadPermissionList(v *[]types.LoadPermission, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LoadPermission + var sv []types.LoadPermission if *v == nil { - sv = make([]*types.LoadPermission, 0) + sv = make([]types.LoadPermission, 0) } else { sv = *v } @@ -65489,11 +65947,13 @@ func awsEc2query_deserializeDocumentLoadPermissionList(v *[]*types.LoadPermissio } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LoadPermission + var col types.LoadPermission nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLoadPermission(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLoadPermission(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -65506,23 +65966,25 @@ func awsEc2query_deserializeDocumentLoadPermissionList(v *[]*types.LoadPermissio return nil } -func awsEc2query_deserializeDocumentLoadPermissionListUnwrapped(v *[]*types.LoadPermission, decoder smithyxml.NodeDecoder) error { - var sv []*types.LoadPermission +func awsEc2query_deserializeDocumentLoadPermissionListUnwrapped(v *[]types.LoadPermission, decoder smithyxml.NodeDecoder) error { + var sv []types.LoadPermission if *v == nil { - sv = make([]*types.LoadPermission, 0) + sv = make([]types.LoadPermission, 0) } else { sv = *v } switch { default: - var mv *types.LoadPermission + var mv types.LoadPermission t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLoadPermission(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLoadPermission(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -65563,7 +66025,7 @@ func awsEc2query_deserializeDocumentLocalGateway(v **types.LocalGateway, decoder } if val != nil { xtv := string(val) - sv.LocalGatewayId = &xtv + sv.LocalGatewayId = ptr.String(xtv) } case strings.EqualFold("outpostArn", t.Name.Local): @@ -65579,7 +66041,7 @@ func awsEc2query_deserializeDocumentLocalGateway(v **types.LocalGateway, decoder } if val != nil { xtv := string(val) - sv.OutpostArn = &xtv + sv.OutpostArn = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -65595,7 +66057,7 @@ func awsEc2query_deserializeDocumentLocalGateway(v **types.LocalGateway, decoder } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -65611,7 +66073,7 @@ func awsEc2query_deserializeDocumentLocalGateway(v **types.LocalGateway, decoder } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -65665,7 +66127,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRoute(v **types.LocalGatewayRout } if val != nil { xtv := string(val) - sv.DestinationCidrBlock = &xtv + sv.DestinationCidrBlock = ptr.String(xtv) } case strings.EqualFold("localGatewayRouteTableArn", t.Name.Local): @@ -65681,7 +66143,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRoute(v **types.LocalGatewayRout } if val != nil { xtv := string(val) - sv.LocalGatewayRouteTableArn = &xtv + sv.LocalGatewayRouteTableArn = ptr.String(xtv) } case strings.EqualFold("localGatewayRouteTableId", t.Name.Local): @@ -65697,7 +66159,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRoute(v **types.LocalGatewayRout } if val != nil { xtv := string(val) - sv.LocalGatewayRouteTableId = &xtv + sv.LocalGatewayRouteTableId = ptr.String(xtv) } case strings.EqualFold("localGatewayVirtualInterfaceGroupId", t.Name.Local): @@ -65713,7 +66175,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRoute(v **types.LocalGatewayRout } if val != nil { xtv := string(val) - sv.LocalGatewayVirtualInterfaceGroupId = &xtv + sv.LocalGatewayVirtualInterfaceGroupId = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -65729,7 +66191,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRoute(v **types.LocalGatewayRout } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -65768,13 +66230,13 @@ func awsEc2query_deserializeDocumentLocalGatewayRoute(v **types.LocalGatewayRout return nil } -func awsEc2query_deserializeDocumentLocalGatewayRouteList(v *[]*types.LocalGatewayRoute, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLocalGatewayRouteList(v *[]types.LocalGatewayRoute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LocalGatewayRoute + var sv []types.LocalGatewayRoute if *v == nil { - sv = make([]*types.LocalGatewayRoute, 0) + sv = make([]types.LocalGatewayRoute, 0) } else { sv = *v } @@ -65790,11 +66252,13 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteList(v *[]*types.LocalGatew } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LocalGatewayRoute + var col types.LocalGatewayRoute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGatewayRoute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLocalGatewayRoute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -65807,23 +66271,25 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteList(v *[]*types.LocalGatew return nil } -func awsEc2query_deserializeDocumentLocalGatewayRouteListUnwrapped(v *[]*types.LocalGatewayRoute, decoder smithyxml.NodeDecoder) error { - var sv []*types.LocalGatewayRoute +func awsEc2query_deserializeDocumentLocalGatewayRouteListUnwrapped(v *[]types.LocalGatewayRoute, decoder smithyxml.NodeDecoder) error { + var sv []types.LocalGatewayRoute if *v == nil { - sv = make([]*types.LocalGatewayRoute, 0) + sv = make([]types.LocalGatewayRoute, 0) } else { sv = *v } switch { default: - var mv *types.LocalGatewayRoute + var mv types.LocalGatewayRoute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGatewayRoute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLocalGatewayRoute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -65864,7 +66330,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTable(v **types.LocalGatewa } if val != nil { xtv := string(val) - sv.LocalGatewayId = &xtv + sv.LocalGatewayId = ptr.String(xtv) } case strings.EqualFold("localGatewayRouteTableArn", t.Name.Local): @@ -65880,7 +66346,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTable(v **types.LocalGatewa } if val != nil { xtv := string(val) - sv.LocalGatewayRouteTableArn = &xtv + sv.LocalGatewayRouteTableArn = ptr.String(xtv) } case strings.EqualFold("localGatewayRouteTableId", t.Name.Local): @@ -65896,7 +66362,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTable(v **types.LocalGatewa } if val != nil { xtv := string(val) - sv.LocalGatewayRouteTableId = &xtv + sv.LocalGatewayRouteTableId = ptr.String(xtv) } case strings.EqualFold("outpostArn", t.Name.Local): @@ -65912,7 +66378,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTable(v **types.LocalGatewa } if val != nil { xtv := string(val) - sv.OutpostArn = &xtv + sv.OutpostArn = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -65928,7 +66394,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTable(v **types.LocalGatewa } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -65944,7 +66410,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTable(v **types.LocalGatewa } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -65963,13 +66429,13 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTable(v **types.LocalGatewa return nil } -func awsEc2query_deserializeDocumentLocalGatewayRouteTableSet(v *[]*types.LocalGatewayRouteTable, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLocalGatewayRouteTableSet(v *[]types.LocalGatewayRouteTable, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LocalGatewayRouteTable + var sv []types.LocalGatewayRouteTable if *v == nil { - sv = make([]*types.LocalGatewayRouteTable, 0) + sv = make([]types.LocalGatewayRouteTable, 0) } else { sv = *v } @@ -65985,11 +66451,13 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableSet(v *[]*types.LocalG } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LocalGatewayRouteTable + var col types.LocalGatewayRouteTable nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGatewayRouteTable(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLocalGatewayRouteTable(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -66002,23 +66470,25 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableSet(v *[]*types.LocalG return nil } -func awsEc2query_deserializeDocumentLocalGatewayRouteTableSetUnwrapped(v *[]*types.LocalGatewayRouteTable, decoder smithyxml.NodeDecoder) error { - var sv []*types.LocalGatewayRouteTable +func awsEc2query_deserializeDocumentLocalGatewayRouteTableSetUnwrapped(v *[]types.LocalGatewayRouteTable, decoder smithyxml.NodeDecoder) error { + var sv []types.LocalGatewayRouteTable if *v == nil { - sv = make([]*types.LocalGatewayRouteTable, 0) + sv = make([]types.LocalGatewayRouteTable, 0) } else { sv = *v } switch { default: - var mv *types.LocalGatewayRouteTable + var mv types.LocalGatewayRouteTable t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGatewayRouteTable(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLocalGatewayRouteTable(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -66059,7 +66529,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupA } if val != nil { xtv := string(val) - sv.LocalGatewayId = &xtv + sv.LocalGatewayId = ptr.String(xtv) } case strings.EqualFold("localGatewayRouteTableArn", t.Name.Local): @@ -66075,7 +66545,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupA } if val != nil { xtv := string(val) - sv.LocalGatewayRouteTableArn = &xtv + sv.LocalGatewayRouteTableArn = ptr.String(xtv) } case strings.EqualFold("localGatewayRouteTableId", t.Name.Local): @@ -66091,7 +66561,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupA } if val != nil { xtv := string(val) - sv.LocalGatewayRouteTableId = &xtv + sv.LocalGatewayRouteTableId = ptr.String(xtv) } case strings.EqualFold("localGatewayRouteTableVirtualInterfaceGroupAssociationId", t.Name.Local): @@ -66107,7 +66577,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupA } if val != nil { xtv := string(val) - sv.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId = &xtv + sv.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId = ptr.String(xtv) } case strings.EqualFold("localGatewayVirtualInterfaceGroupId", t.Name.Local): @@ -66123,7 +66593,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupA } if val != nil { xtv := string(val) - sv.LocalGatewayVirtualInterfaceGroupId = &xtv + sv.LocalGatewayVirtualInterfaceGroupId = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -66139,7 +66609,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupA } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -66155,7 +66625,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupA } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -66174,13 +66644,13 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupA return nil } -func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociationSet(v *[]*types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociationSet(v *[]types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation + var sv []types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation if *v == nil { - sv = make([]*types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation, 0) + sv = make([]types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation, 0) } else { sv = *v } @@ -66196,11 +66666,13 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupA } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation + var col types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -66213,23 +66685,25 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupA return nil } -func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociationSetUnwrapped(v *[]*types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation +func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociationSetUnwrapped(v *[]types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation if *v == nil { - sv = make([]*types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation, 0) + sv = make([]types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation, 0) } else { sv = *v } switch { default: - var mv *types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation + var mv types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -66270,7 +66744,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(v **typ } if val != nil { xtv := string(val) - sv.LocalGatewayId = &xtv + sv.LocalGatewayId = ptr.String(xtv) } case strings.EqualFold("localGatewayRouteTableArn", t.Name.Local): @@ -66286,7 +66760,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(v **typ } if val != nil { xtv := string(val) - sv.LocalGatewayRouteTableArn = &xtv + sv.LocalGatewayRouteTableArn = ptr.String(xtv) } case strings.EqualFold("localGatewayRouteTableId", t.Name.Local): @@ -66302,7 +66776,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(v **typ } if val != nil { xtv := string(val) - sv.LocalGatewayRouteTableId = &xtv + sv.LocalGatewayRouteTableId = ptr.String(xtv) } case strings.EqualFold("localGatewayRouteTableVpcAssociationId", t.Name.Local): @@ -66318,7 +66792,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(v **typ } if val != nil { xtv := string(val) - sv.LocalGatewayRouteTableVpcAssociationId = &xtv + sv.LocalGatewayRouteTableVpcAssociationId = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -66334,7 +66808,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(v **typ } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -66350,7 +66824,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(v **typ } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -66372,7 +66846,7 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(v **typ } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -66385,13 +66859,13 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(v **typ return nil } -func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociationSet(v *[]*types.LocalGatewayRouteTableVpcAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociationSet(v *[]types.LocalGatewayRouteTableVpcAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LocalGatewayRouteTableVpcAssociation + var sv []types.LocalGatewayRouteTableVpcAssociation if *v == nil { - sv = make([]*types.LocalGatewayRouteTableVpcAssociation, 0) + sv = make([]types.LocalGatewayRouteTableVpcAssociation, 0) } else { sv = *v } @@ -66407,11 +66881,13 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociationSet(v *[ } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LocalGatewayRouteTableVpcAssociation + var col types.LocalGatewayRouteTableVpcAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -66424,35 +66900,37 @@ func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociationSet(v *[ return nil } -func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociationSetUnwrapped(v *[]*types.LocalGatewayRouteTableVpcAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.LocalGatewayRouteTableVpcAssociation +func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociationSetUnwrapped(v *[]types.LocalGatewayRouteTableVpcAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.LocalGatewayRouteTableVpcAssociation if *v == nil { - sv = make([]*types.LocalGatewayRouteTableVpcAssociation, 0) + sv = make([]types.LocalGatewayRouteTableVpcAssociation, 0) } else { sv = *v } switch { default: - var mv *types.LocalGatewayRouteTableVpcAssociation + var mv types.LocalGatewayRouteTableVpcAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentLocalGatewaySet(v *[]*types.LocalGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLocalGatewaySet(v *[]types.LocalGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LocalGateway + var sv []types.LocalGateway if *v == nil { - sv = make([]*types.LocalGateway, 0) + sv = make([]types.LocalGateway, 0) } else { sv = *v } @@ -66468,11 +66946,13 @@ func awsEc2query_deserializeDocumentLocalGatewaySet(v *[]*types.LocalGateway, de } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LocalGateway + var col types.LocalGateway nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGateway(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLocalGateway(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -66485,23 +66965,25 @@ func awsEc2query_deserializeDocumentLocalGatewaySet(v *[]*types.LocalGateway, de return nil } -func awsEc2query_deserializeDocumentLocalGatewaySetUnwrapped(v *[]*types.LocalGateway, decoder smithyxml.NodeDecoder) error { - var sv []*types.LocalGateway +func awsEc2query_deserializeDocumentLocalGatewaySetUnwrapped(v *[]types.LocalGateway, decoder smithyxml.NodeDecoder) error { + var sv []types.LocalGateway if *v == nil { - sv = make([]*types.LocalGateway, 0) + sv = make([]types.LocalGateway, 0) } else { sv = *v } switch { default: - var mv *types.LocalGateway + var mv types.LocalGateway t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGateway(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLocalGateway(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -66542,7 +67024,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(v **types.Local } if val != nil { xtv := string(val) - sv.LocalAddress = &xtv + sv.LocalAddress = ptr.String(xtv) } case strings.EqualFold("localBgpAsn", t.Name.Local): @@ -66559,7 +67041,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(v **types.Local if err != nil { return err } - sv.LocalBgpAsn = ptr.Int32(int32(i64)) + sv.LocalBgpAsn = int32(i64) } case strings.EqualFold("localGatewayId", t.Name.Local): @@ -66575,7 +67057,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(v **types.Local } if val != nil { xtv := string(val) - sv.LocalGatewayId = &xtv + sv.LocalGatewayId = ptr.String(xtv) } case strings.EqualFold("localGatewayVirtualInterfaceId", t.Name.Local): @@ -66591,7 +67073,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(v **types.Local } if val != nil { xtv := string(val) - sv.LocalGatewayVirtualInterfaceId = &xtv + sv.LocalGatewayVirtualInterfaceId = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -66607,7 +67089,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(v **types.Local } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("peerAddress", t.Name.Local): @@ -66623,7 +67105,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(v **types.Local } if val != nil { xtv := string(val) - sv.PeerAddress = &xtv + sv.PeerAddress = ptr.String(xtv) } case strings.EqualFold("peerBgpAsn", t.Name.Local): @@ -66640,7 +67122,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(v **types.Local if err != nil { return err } - sv.PeerBgpAsn = ptr.Int32(int32(i64)) + sv.PeerBgpAsn = int32(i64) } case strings.EqualFold("tagSet", t.Name.Local): @@ -66663,7 +67145,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(v **types.Local if err != nil { return err } - sv.Vlan = ptr.Int32(int32(i64)) + sv.Vlan = int32(i64) } default: @@ -66711,7 +67193,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroup(v **types. } if val != nil { xtv := string(val) - sv.LocalGatewayId = &xtv + sv.LocalGatewayId = ptr.String(xtv) } case strings.EqualFold("localGatewayVirtualInterfaceGroupId", t.Name.Local): @@ -66727,7 +67209,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroup(v **types. } if val != nil { xtv := string(val) - sv.LocalGatewayVirtualInterfaceGroupId = &xtv + sv.LocalGatewayVirtualInterfaceGroupId = ptr.String(xtv) } case strings.EqualFold("localGatewayVirtualInterfaceIdSet", t.Name.Local): @@ -66749,7 +67231,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroup(v **types. } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -66768,13 +67250,13 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroup(v **types. return nil } -func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroupSet(v *[]*types.LocalGatewayVirtualInterfaceGroup, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroupSet(v *[]types.LocalGatewayVirtualInterfaceGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LocalGatewayVirtualInterfaceGroup + var sv []types.LocalGatewayVirtualInterfaceGroup if *v == nil { - sv = make([]*types.LocalGatewayVirtualInterfaceGroup, 0) + sv = make([]types.LocalGatewayVirtualInterfaceGroup, 0) } else { sv = *v } @@ -66790,11 +67272,13 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroupSet(v *[]*t } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LocalGatewayVirtualInterfaceGroup + var col types.LocalGatewayVirtualInterfaceGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -66807,35 +67291,37 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroupSet(v *[]*t return nil } -func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroupSetUnwrapped(v *[]*types.LocalGatewayVirtualInterfaceGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.LocalGatewayVirtualInterfaceGroup +func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroupSetUnwrapped(v *[]types.LocalGatewayVirtualInterfaceGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.LocalGatewayVirtualInterfaceGroup if *v == nil { - sv = make([]*types.LocalGatewayVirtualInterfaceGroup, 0) + sv = make([]types.LocalGatewayVirtualInterfaceGroup, 0) } else { sv = *v } switch { default: - var mv *types.LocalGatewayVirtualInterfaceGroup + var mv types.LocalGatewayVirtualInterfaceGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceIdSet(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceIdSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -66853,20 +67339,17 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceIdSet(v *[]*stri decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -66879,17 +67362,17 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceIdSet(v *[]*stri return nil } -func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceIdSetUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceIdSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -66897,27 +67380,24 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceIdSetUnwrapped(v return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceSet(v *[]*types.LocalGatewayVirtualInterface, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceSet(v *[]types.LocalGatewayVirtualInterface, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LocalGatewayVirtualInterface + var sv []types.LocalGatewayVirtualInterface if *v == nil { - sv = make([]*types.LocalGatewayVirtualInterface, 0) + sv = make([]types.LocalGatewayVirtualInterface, 0) } else { sv = *v } @@ -66933,11 +67413,13 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceSet(v *[]*types. } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.LocalGatewayVirtualInterface + var col types.LocalGatewayVirtualInterface nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -66950,23 +67432,25 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceSet(v *[]*types. return nil } -func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceSetUnwrapped(v *[]*types.LocalGatewayVirtualInterface, decoder smithyxml.NodeDecoder) error { - var sv []*types.LocalGatewayVirtualInterface +func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceSetUnwrapped(v *[]types.LocalGatewayVirtualInterface, decoder smithyxml.NodeDecoder) error { + var sv []types.LocalGatewayVirtualInterface if *v == nil { - sv = make([]*types.LocalGatewayVirtualInterface, 0) + sv = make([]types.LocalGatewayVirtualInterface, 0) } else { sv = *v } switch { default: - var mv *types.LocalGatewayVirtualInterface + var mv types.LocalGatewayVirtualInterface t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -67007,7 +67491,7 @@ func awsEc2query_deserializeDocumentManagedPrefixList(v **types.ManagedPrefixLis } if val != nil { xtv := string(val) - sv.AddressFamily = &xtv + sv.AddressFamily = ptr.String(xtv) } case strings.EqualFold("maxEntries", t.Name.Local): @@ -67024,7 +67508,7 @@ func awsEc2query_deserializeDocumentManagedPrefixList(v **types.ManagedPrefixLis if err != nil { return err } - sv.MaxEntries = ptr.Int32(int32(i64)) + sv.MaxEntries = int32(i64) } case strings.EqualFold("ownerId", t.Name.Local): @@ -67040,7 +67524,7 @@ func awsEc2query_deserializeDocumentManagedPrefixList(v **types.ManagedPrefixLis } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("prefixListArn", t.Name.Local): @@ -67056,7 +67540,7 @@ func awsEc2query_deserializeDocumentManagedPrefixList(v **types.ManagedPrefixLis } if val != nil { xtv := string(val) - sv.PrefixListArn = &xtv + sv.PrefixListArn = ptr.String(xtv) } case strings.EqualFold("prefixListId", t.Name.Local): @@ -67072,7 +67556,7 @@ func awsEc2query_deserializeDocumentManagedPrefixList(v **types.ManagedPrefixLis } if val != nil { xtv := string(val) - sv.PrefixListId = &xtv + sv.PrefixListId = ptr.String(xtv) } case strings.EqualFold("prefixListName", t.Name.Local): @@ -67088,7 +67572,7 @@ func awsEc2query_deserializeDocumentManagedPrefixList(v **types.ManagedPrefixLis } if val != nil { xtv := string(val) - sv.PrefixListName = &xtv + sv.PrefixListName = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -67117,7 +67601,7 @@ func awsEc2query_deserializeDocumentManagedPrefixList(v **types.ManagedPrefixLis } if val != nil { xtv := string(val) - sv.StateMessage = &xtv + sv.StateMessage = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -67140,7 +67624,7 @@ func awsEc2query_deserializeDocumentManagedPrefixList(v **types.ManagedPrefixLis if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -67153,13 +67637,13 @@ func awsEc2query_deserializeDocumentManagedPrefixList(v **types.ManagedPrefixLis return nil } -func awsEc2query_deserializeDocumentManagedPrefixListSet(v *[]*types.ManagedPrefixList, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentManagedPrefixListSet(v *[]types.ManagedPrefixList, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ManagedPrefixList + var sv []types.ManagedPrefixList if *v == nil { - sv = make([]*types.ManagedPrefixList, 0) + sv = make([]types.ManagedPrefixList, 0) } else { sv = *v } @@ -67175,11 +67659,13 @@ func awsEc2query_deserializeDocumentManagedPrefixListSet(v *[]*types.ManagedPref } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ManagedPrefixList + var col types.ManagedPrefixList nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentManagedPrefixList(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentManagedPrefixList(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -67192,23 +67678,25 @@ func awsEc2query_deserializeDocumentManagedPrefixListSet(v *[]*types.ManagedPref return nil } -func awsEc2query_deserializeDocumentManagedPrefixListSetUnwrapped(v *[]*types.ManagedPrefixList, decoder smithyxml.NodeDecoder) error { - var sv []*types.ManagedPrefixList +func awsEc2query_deserializeDocumentManagedPrefixListSetUnwrapped(v *[]types.ManagedPrefixList, decoder smithyxml.NodeDecoder) error { + var sv []types.ManagedPrefixList if *v == nil { - sv = make([]*types.ManagedPrefixList, 0) + sv = make([]types.ManagedPrefixList, 0) } else { sv = *v } switch { default: - var mv *types.ManagedPrefixList + var mv types.ManagedPrefixList t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentManagedPrefixList(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentManagedPrefixList(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -67250,7 +67738,7 @@ func awsEc2query_deserializeDocumentMemoryInfo(v **types.MemoryInfo, decoder smi if err != nil { return err } - sv.SizeInMiB = &i64 + sv.SizeInMiB = ptr.Int64(i64) } default: @@ -67356,7 +67844,7 @@ func awsEc2query_deserializeDocumentMovingAddressStatus(v **types.MovingAddressS } if val != nil { xtv := string(val) - sv.PublicIp = &xtv + sv.PublicIp = ptr.String(xtv) } default: @@ -67369,13 +67857,13 @@ func awsEc2query_deserializeDocumentMovingAddressStatus(v **types.MovingAddressS return nil } -func awsEc2query_deserializeDocumentMovingAddressStatusSet(v *[]*types.MovingAddressStatus, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentMovingAddressStatusSet(v *[]types.MovingAddressStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.MovingAddressStatus + var sv []types.MovingAddressStatus if *v == nil { - sv = make([]*types.MovingAddressStatus, 0) + sv = make([]types.MovingAddressStatus, 0) } else { sv = *v } @@ -67391,11 +67879,13 @@ func awsEc2query_deserializeDocumentMovingAddressStatusSet(v *[]*types.MovingAdd } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.MovingAddressStatus + var col types.MovingAddressStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentMovingAddressStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentMovingAddressStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -67408,23 +67898,25 @@ func awsEc2query_deserializeDocumentMovingAddressStatusSet(v *[]*types.MovingAdd return nil } -func awsEc2query_deserializeDocumentMovingAddressStatusSetUnwrapped(v *[]*types.MovingAddressStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.MovingAddressStatus +func awsEc2query_deserializeDocumentMovingAddressStatusSetUnwrapped(v *[]types.MovingAddressStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.MovingAddressStatus if *v == nil { - sv = make([]*types.MovingAddressStatus, 0) + sv = make([]types.MovingAddressStatus, 0) } else { sv = *v } switch { default: - var mv *types.MovingAddressStatus + var mv types.MovingAddressStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentMovingAddressStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentMovingAddressStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -67466,7 +67958,7 @@ func awsEc2query_deserializeDocumentNatGateway(v **types.NatGateway, decoder smi if err != nil { return err } - sv.CreateTime = &t + sv.CreateTime = ptr.Time(t) } case strings.EqualFold("deleteTime", t.Name.Local): @@ -67483,7 +67975,7 @@ func awsEc2query_deserializeDocumentNatGateway(v **types.NatGateway, decoder smi if err != nil { return err } - sv.DeleteTime = &t + sv.DeleteTime = ptr.Time(t) } case strings.EqualFold("failureCode", t.Name.Local): @@ -67499,7 +67991,7 @@ func awsEc2query_deserializeDocumentNatGateway(v **types.NatGateway, decoder smi } if val != nil { xtv := string(val) - sv.FailureCode = &xtv + sv.FailureCode = ptr.String(xtv) } case strings.EqualFold("failureMessage", t.Name.Local): @@ -67515,7 +68007,7 @@ func awsEc2query_deserializeDocumentNatGateway(v **types.NatGateway, decoder smi } if val != nil { xtv := string(val) - sv.FailureMessage = &xtv + sv.FailureMessage = ptr.String(xtv) } case strings.EqualFold("natGatewayAddressSet", t.Name.Local): @@ -67537,7 +68029,7 @@ func awsEc2query_deserializeDocumentNatGateway(v **types.NatGateway, decoder smi } if val != nil { xtv := string(val) - sv.NatGatewayId = &xtv + sv.NatGatewayId = ptr.String(xtv) } case strings.EqualFold("provisionedBandwidth", t.Name.Local): @@ -67572,7 +68064,7 @@ func awsEc2query_deserializeDocumentNatGateway(v **types.NatGateway, decoder smi } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -67594,7 +68086,7 @@ func awsEc2query_deserializeDocumentNatGateway(v **types.NatGateway, decoder smi } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -67642,7 +68134,7 @@ func awsEc2query_deserializeDocumentNatGatewayAddress(v **types.NatGatewayAddres } if val != nil { xtv := string(val) - sv.AllocationId = &xtv + sv.AllocationId = ptr.String(xtv) } case strings.EqualFold("networkInterfaceId", t.Name.Local): @@ -67658,7 +68150,7 @@ func awsEc2query_deserializeDocumentNatGatewayAddress(v **types.NatGatewayAddres } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } case strings.EqualFold("privateIp", t.Name.Local): @@ -67674,7 +68166,7 @@ func awsEc2query_deserializeDocumentNatGatewayAddress(v **types.NatGatewayAddres } if val != nil { xtv := string(val) - sv.PrivateIp = &xtv + sv.PrivateIp = ptr.String(xtv) } case strings.EqualFold("publicIp", t.Name.Local): @@ -67690,7 +68182,7 @@ func awsEc2query_deserializeDocumentNatGatewayAddress(v **types.NatGatewayAddres } if val != nil { xtv := string(val) - sv.PublicIp = &xtv + sv.PublicIp = ptr.String(xtv) } default: @@ -67703,13 +68195,13 @@ func awsEc2query_deserializeDocumentNatGatewayAddress(v **types.NatGatewayAddres return nil } -func awsEc2query_deserializeDocumentNatGatewayAddressList(v *[]*types.NatGatewayAddress, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentNatGatewayAddressList(v *[]types.NatGatewayAddress, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NatGatewayAddress + var sv []types.NatGatewayAddress if *v == nil { - sv = make([]*types.NatGatewayAddress, 0) + sv = make([]types.NatGatewayAddress, 0) } else { sv = *v } @@ -67725,11 +68217,13 @@ func awsEc2query_deserializeDocumentNatGatewayAddressList(v *[]*types.NatGateway } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.NatGatewayAddress + var col types.NatGatewayAddress nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNatGatewayAddress(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentNatGatewayAddress(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -67742,35 +68236,37 @@ func awsEc2query_deserializeDocumentNatGatewayAddressList(v *[]*types.NatGateway return nil } -func awsEc2query_deserializeDocumentNatGatewayAddressListUnwrapped(v *[]*types.NatGatewayAddress, decoder smithyxml.NodeDecoder) error { - var sv []*types.NatGatewayAddress +func awsEc2query_deserializeDocumentNatGatewayAddressListUnwrapped(v *[]types.NatGatewayAddress, decoder smithyxml.NodeDecoder) error { + var sv []types.NatGatewayAddress if *v == nil { - sv = make([]*types.NatGatewayAddress, 0) + sv = make([]types.NatGatewayAddress, 0) } else { sv = *v } switch { default: - var mv *types.NatGatewayAddress + var mv types.NatGatewayAddress t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNatGatewayAddress(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentNatGatewayAddress(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentNatGatewayList(v *[]*types.NatGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentNatGatewayList(v *[]types.NatGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NatGateway + var sv []types.NatGateway if *v == nil { - sv = make([]*types.NatGateway, 0) + sv = make([]types.NatGateway, 0) } else { sv = *v } @@ -67786,11 +68282,13 @@ func awsEc2query_deserializeDocumentNatGatewayList(v *[]*types.NatGateway, decod } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.NatGateway + var col types.NatGateway nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNatGateway(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentNatGateway(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -67803,23 +68301,25 @@ func awsEc2query_deserializeDocumentNatGatewayList(v *[]*types.NatGateway, decod return nil } -func awsEc2query_deserializeDocumentNatGatewayListUnwrapped(v *[]*types.NatGateway, decoder smithyxml.NodeDecoder) error { - var sv []*types.NatGateway +func awsEc2query_deserializeDocumentNatGatewayListUnwrapped(v *[]types.NatGateway, decoder smithyxml.NodeDecoder) error { + var sv []types.NatGateway if *v == nil { - sv = make([]*types.NatGateway, 0) + sv = make([]types.NatGateway, 0) } else { sv = *v } switch { default: - var mv *types.NatGateway + var mv types.NatGateway t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNatGateway(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentNatGateway(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -67872,7 +68372,7 @@ func awsEc2query_deserializeDocumentNetworkAcl(v **types.NetworkAcl, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsDefault = &xtv + sv.IsDefault = xtv } case strings.EqualFold("networkAclId", t.Name.Local): @@ -67888,7 +68388,7 @@ func awsEc2query_deserializeDocumentNetworkAcl(v **types.NetworkAcl, decoder smi } if val != nil { xtv := string(val) - sv.NetworkAclId = &xtv + sv.NetworkAclId = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -67904,7 +68404,7 @@ func awsEc2query_deserializeDocumentNetworkAcl(v **types.NetworkAcl, decoder smi } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -67926,7 +68426,7 @@ func awsEc2query_deserializeDocumentNetworkAcl(v **types.NetworkAcl, decoder smi } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -67974,7 +68474,7 @@ func awsEc2query_deserializeDocumentNetworkAclAssociation(v **types.NetworkAclAs } if val != nil { xtv := string(val) - sv.NetworkAclAssociationId = &xtv + sv.NetworkAclAssociationId = ptr.String(xtv) } case strings.EqualFold("networkAclId", t.Name.Local): @@ -67990,7 +68490,7 @@ func awsEc2query_deserializeDocumentNetworkAclAssociation(v **types.NetworkAclAs } if val != nil { xtv := string(val) - sv.NetworkAclId = &xtv + sv.NetworkAclId = ptr.String(xtv) } case strings.EqualFold("subnetId", t.Name.Local): @@ -68006,7 +68506,7 @@ func awsEc2query_deserializeDocumentNetworkAclAssociation(v **types.NetworkAclAs } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } default: @@ -68019,13 +68519,13 @@ func awsEc2query_deserializeDocumentNetworkAclAssociation(v **types.NetworkAclAs return nil } -func awsEc2query_deserializeDocumentNetworkAclAssociationList(v *[]*types.NetworkAclAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentNetworkAclAssociationList(v *[]types.NetworkAclAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NetworkAclAssociation + var sv []types.NetworkAclAssociation if *v == nil { - sv = make([]*types.NetworkAclAssociation, 0) + sv = make([]types.NetworkAclAssociation, 0) } else { sv = *v } @@ -68041,11 +68541,13 @@ func awsEc2query_deserializeDocumentNetworkAclAssociationList(v *[]*types.Networ } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.NetworkAclAssociation + var col types.NetworkAclAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkAclAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentNetworkAclAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -68058,23 +68560,25 @@ func awsEc2query_deserializeDocumentNetworkAclAssociationList(v *[]*types.Networ return nil } -func awsEc2query_deserializeDocumentNetworkAclAssociationListUnwrapped(v *[]*types.NetworkAclAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.NetworkAclAssociation +func awsEc2query_deserializeDocumentNetworkAclAssociationListUnwrapped(v *[]types.NetworkAclAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.NetworkAclAssociation if *v == nil { - sv = make([]*types.NetworkAclAssociation, 0) + sv = make([]types.NetworkAclAssociation, 0) } else { sv = *v } switch { default: - var mv *types.NetworkAclAssociation + var mv types.NetworkAclAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkAclAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentNetworkAclAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -68115,7 +68619,7 @@ func awsEc2query_deserializeDocumentNetworkAclEntry(v **types.NetworkAclEntry, d } if val != nil { xtv := string(val) - sv.CidrBlock = &xtv + sv.CidrBlock = ptr.String(xtv) } case strings.EqualFold("egress", t.Name.Local): @@ -68131,7 +68635,7 @@ func awsEc2query_deserializeDocumentNetworkAclEntry(v **types.NetworkAclEntry, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Egress = &xtv + sv.Egress = xtv } case strings.EqualFold("icmpTypeCode", t.Name.Local): @@ -68153,7 +68657,7 @@ func awsEc2query_deserializeDocumentNetworkAclEntry(v **types.NetworkAclEntry, d } if val != nil { xtv := string(val) - sv.Ipv6CidrBlock = &xtv + sv.Ipv6CidrBlock = ptr.String(xtv) } case strings.EqualFold("portRange", t.Name.Local): @@ -68175,7 +68679,7 @@ func awsEc2query_deserializeDocumentNetworkAclEntry(v **types.NetworkAclEntry, d } if val != nil { xtv := string(val) - sv.Protocol = &xtv + sv.Protocol = ptr.String(xtv) } case strings.EqualFold("ruleAction", t.Name.Local): @@ -68205,7 +68709,7 @@ func awsEc2query_deserializeDocumentNetworkAclEntry(v **types.NetworkAclEntry, d if err != nil { return err } - sv.RuleNumber = ptr.Int32(int32(i64)) + sv.RuleNumber = int32(i64) } default: @@ -68218,13 +68722,13 @@ func awsEc2query_deserializeDocumentNetworkAclEntry(v **types.NetworkAclEntry, d return nil } -func awsEc2query_deserializeDocumentNetworkAclEntryList(v *[]*types.NetworkAclEntry, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentNetworkAclEntryList(v *[]types.NetworkAclEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NetworkAclEntry + var sv []types.NetworkAclEntry if *v == nil { - sv = make([]*types.NetworkAclEntry, 0) + sv = make([]types.NetworkAclEntry, 0) } else { sv = *v } @@ -68240,11 +68744,13 @@ func awsEc2query_deserializeDocumentNetworkAclEntryList(v *[]*types.NetworkAclEn } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.NetworkAclEntry + var col types.NetworkAclEntry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkAclEntry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentNetworkAclEntry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -68257,35 +68763,37 @@ func awsEc2query_deserializeDocumentNetworkAclEntryList(v *[]*types.NetworkAclEn return nil } -func awsEc2query_deserializeDocumentNetworkAclEntryListUnwrapped(v *[]*types.NetworkAclEntry, decoder smithyxml.NodeDecoder) error { - var sv []*types.NetworkAclEntry +func awsEc2query_deserializeDocumentNetworkAclEntryListUnwrapped(v *[]types.NetworkAclEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.NetworkAclEntry if *v == nil { - sv = make([]*types.NetworkAclEntry, 0) + sv = make([]types.NetworkAclEntry, 0) } else { sv = *v } switch { default: - var mv *types.NetworkAclEntry + var mv types.NetworkAclEntry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkAclEntry(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentNetworkAclEntry(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentNetworkAclList(v *[]*types.NetworkAcl, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentNetworkAclList(v *[]types.NetworkAcl, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NetworkAcl + var sv []types.NetworkAcl if *v == nil { - sv = make([]*types.NetworkAcl, 0) + sv = make([]types.NetworkAcl, 0) } else { sv = *v } @@ -68301,11 +68809,13 @@ func awsEc2query_deserializeDocumentNetworkAclList(v *[]*types.NetworkAcl, decod } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.NetworkAcl + var col types.NetworkAcl nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkAcl(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentNetworkAcl(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -68318,23 +68828,25 @@ func awsEc2query_deserializeDocumentNetworkAclList(v *[]*types.NetworkAcl, decod return nil } -func awsEc2query_deserializeDocumentNetworkAclListUnwrapped(v *[]*types.NetworkAcl, decoder smithyxml.NodeDecoder) error { - var sv []*types.NetworkAcl +func awsEc2query_deserializeDocumentNetworkAclListUnwrapped(v *[]types.NetworkAcl, decoder smithyxml.NodeDecoder) error { + var sv []types.NetworkAcl if *v == nil { - sv = make([]*types.NetworkAcl, 0) + sv = make([]types.NetworkAcl, 0) } else { sv = *v } switch { default: - var mv *types.NetworkAcl + var mv types.NetworkAcl t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkAcl(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentNetworkAcl(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -68375,7 +68887,7 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s if err != nil { return fmt.Errorf("expected EfaSupportedFlag to be of type *bool, got %T instead", val) } - sv.EfaSupported = &xtv + sv.EfaSupported = ptr.Bool(xtv) } case strings.EqualFold("enaSupport", t.Name.Local): @@ -68438,7 +68950,7 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s if err != nil { return fmt.Errorf("expected Ipv6Flag to be of type *bool, got %T instead", val) } - sv.Ipv6Supported = &xtv + sv.Ipv6Supported = ptr.Bool(xtv) } case strings.EqualFold("maximumNetworkInterfaces", t.Name.Local): @@ -68471,7 +68983,7 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s } if val != nil { xtv := string(val) - sv.NetworkPerformance = &xtv + sv.NetworkPerformance = ptr.String(xtv) } default: @@ -68531,7 +69043,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -68547,7 +69059,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("groupSet", t.Name.Local): @@ -68588,7 +69100,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, } if val != nil { xtv := string(val) - sv.MacAddress = &xtv + sv.MacAddress = ptr.String(xtv) } case strings.EqualFold("networkInterfaceId", t.Name.Local): @@ -68604,7 +69116,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } case strings.EqualFold("outpostArn", t.Name.Local): @@ -68620,7 +69132,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, } if val != nil { xtv := string(val) - sv.OutpostArn = &xtv + sv.OutpostArn = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -68636,7 +69148,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("privateDnsName", t.Name.Local): @@ -68652,7 +69164,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, } if val != nil { xtv := string(val) - sv.PrivateDnsName = &xtv + sv.PrivateDnsName = ptr.String(xtv) } case strings.EqualFold("privateIpAddress", t.Name.Local): @@ -68668,7 +69180,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, } if val != nil { xtv := string(val) - sv.PrivateIpAddress = &xtv + sv.PrivateIpAddress = ptr.String(xtv) } case strings.EqualFold("privateIpAddressesSet", t.Name.Local): @@ -68690,7 +69202,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, } if val != nil { xtv := string(val) - sv.RequesterId = &xtv + sv.RequesterId = ptr.String(xtv) } case strings.EqualFold("requesterManaged", t.Name.Local): @@ -68706,7 +69218,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.RequesterManaged = &xtv + sv.RequesterManaged = xtv } case strings.EqualFold("sourceDestCheck", t.Name.Local): @@ -68722,7 +69234,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SourceDestCheck = &xtv + sv.SourceDestCheck = xtv } case strings.EqualFold("status", t.Name.Local): @@ -68751,7 +69263,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -68773,7 +69285,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -68821,7 +69333,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAssociation(v **types.Networ } if val != nil { xtv := string(val) - sv.AllocationId = &xtv + sv.AllocationId = ptr.String(xtv) } case strings.EqualFold("associationId", t.Name.Local): @@ -68837,7 +69349,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAssociation(v **types.Networ } if val != nil { xtv := string(val) - sv.AssociationId = &xtv + sv.AssociationId = ptr.String(xtv) } case strings.EqualFold("carrierIp", t.Name.Local): @@ -68853,7 +69365,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAssociation(v **types.Networ } if val != nil { xtv := string(val) - sv.CarrierIp = &xtv + sv.CarrierIp = ptr.String(xtv) } case strings.EqualFold("customerOwnedIp", t.Name.Local): @@ -68869,7 +69381,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAssociation(v **types.Networ } if val != nil { xtv := string(val) - sv.CustomerOwnedIp = &xtv + sv.CustomerOwnedIp = ptr.String(xtv) } case strings.EqualFold("ipOwnerId", t.Name.Local): @@ -68885,7 +69397,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAssociation(v **types.Networ } if val != nil { xtv := string(val) - sv.IpOwnerId = &xtv + sv.IpOwnerId = ptr.String(xtv) } case strings.EqualFold("publicDnsName", t.Name.Local): @@ -68901,7 +69413,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAssociation(v **types.Networ } if val != nil { xtv := string(val) - sv.PublicDnsName = &xtv + sv.PublicDnsName = ptr.String(xtv) } case strings.EqualFold("publicIp", t.Name.Local): @@ -68917,7 +69429,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAssociation(v **types.Networ } if val != nil { xtv := string(val) - sv.PublicIp = &xtv + sv.PublicIp = ptr.String(xtv) } default: @@ -68965,7 +69477,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAttachment(v **types.Network } if val != nil { xtv := string(val) - sv.AttachmentId = &xtv + sv.AttachmentId = ptr.String(xtv) } case strings.EqualFold("attachTime", t.Name.Local): @@ -68982,7 +69494,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAttachment(v **types.Network if err != nil { return err } - sv.AttachTime = &t + sv.AttachTime = ptr.Time(t) } case strings.EqualFold("deleteOnTermination", t.Name.Local): @@ -68998,7 +69510,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAttachment(v **types.Network if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = &xtv + sv.DeleteOnTermination = xtv } case strings.EqualFold("deviceIndex", t.Name.Local): @@ -69015,7 +69527,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAttachment(v **types.Network if err != nil { return err } - sv.DeviceIndex = ptr.Int32(int32(i64)) + sv.DeviceIndex = int32(i64) } case strings.EqualFold("instanceId", t.Name.Local): @@ -69031,7 +69543,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAttachment(v **types.Network } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("instanceOwnerId", t.Name.Local): @@ -69047,7 +69559,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAttachment(v **types.Network } if val != nil { xtv := string(val) - sv.InstanceOwnerId = &xtv + sv.InstanceOwnerId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -69108,7 +69620,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceIpv6Address(v **types.Networ } if val != nil { xtv := string(val) - sv.Ipv6Address = &xtv + sv.Ipv6Address = ptr.String(xtv) } default: @@ -69121,13 +69633,13 @@ func awsEc2query_deserializeDocumentNetworkInterfaceIpv6Address(v **types.Networ return nil } -func awsEc2query_deserializeDocumentNetworkInterfaceIpv6AddressesList(v *[]*types.NetworkInterfaceIpv6Address, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentNetworkInterfaceIpv6AddressesList(v *[]types.NetworkInterfaceIpv6Address, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NetworkInterfaceIpv6Address + var sv []types.NetworkInterfaceIpv6Address if *v == nil { - sv = make([]*types.NetworkInterfaceIpv6Address, 0) + sv = make([]types.NetworkInterfaceIpv6Address, 0) } else { sv = *v } @@ -69143,11 +69655,13 @@ func awsEc2query_deserializeDocumentNetworkInterfaceIpv6AddressesList(v *[]*type } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.NetworkInterfaceIpv6Address + var col types.NetworkInterfaceIpv6Address nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkInterfaceIpv6Address(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentNetworkInterfaceIpv6Address(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -69160,35 +69674,37 @@ func awsEc2query_deserializeDocumentNetworkInterfaceIpv6AddressesList(v *[]*type return nil } -func awsEc2query_deserializeDocumentNetworkInterfaceIpv6AddressesListUnwrapped(v *[]*types.NetworkInterfaceIpv6Address, decoder smithyxml.NodeDecoder) error { - var sv []*types.NetworkInterfaceIpv6Address +func awsEc2query_deserializeDocumentNetworkInterfaceIpv6AddressesListUnwrapped(v *[]types.NetworkInterfaceIpv6Address, decoder smithyxml.NodeDecoder) error { + var sv []types.NetworkInterfaceIpv6Address if *v == nil { - sv = make([]*types.NetworkInterfaceIpv6Address, 0) + sv = make([]types.NetworkInterfaceIpv6Address, 0) } else { sv = *v } switch { default: - var mv *types.NetworkInterfaceIpv6Address + var mv types.NetworkInterfaceIpv6Address t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkInterfaceIpv6Address(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentNetworkInterfaceIpv6Address(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentNetworkInterfaceList(v *[]*types.NetworkInterface, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentNetworkInterfaceList(v *[]types.NetworkInterface, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NetworkInterface + var sv []types.NetworkInterface if *v == nil { - sv = make([]*types.NetworkInterface, 0) + sv = make([]types.NetworkInterface, 0) } else { sv = *v } @@ -69204,11 +69720,13 @@ func awsEc2query_deserializeDocumentNetworkInterfaceList(v *[]*types.NetworkInte } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.NetworkInterface + var col types.NetworkInterface nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkInterface(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentNetworkInterface(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -69221,23 +69739,25 @@ func awsEc2query_deserializeDocumentNetworkInterfaceList(v *[]*types.NetworkInte return nil } -func awsEc2query_deserializeDocumentNetworkInterfaceListUnwrapped(v *[]*types.NetworkInterface, decoder smithyxml.NodeDecoder) error { - var sv []*types.NetworkInterface +func awsEc2query_deserializeDocumentNetworkInterfaceListUnwrapped(v *[]types.NetworkInterface, decoder smithyxml.NodeDecoder) error { + var sv []types.NetworkInterface if *v == nil { - sv = make([]*types.NetworkInterface, 0) + sv = make([]types.NetworkInterface, 0) } else { sv = *v } switch { default: - var mv *types.NetworkInterface + var mv types.NetworkInterface t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkInterface(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentNetworkInterface(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -69278,7 +69798,7 @@ func awsEc2query_deserializeDocumentNetworkInterfacePermission(v **types.Network } if val != nil { xtv := string(val) - sv.AwsAccountId = &xtv + sv.AwsAccountId = ptr.String(xtv) } case strings.EqualFold("awsService", t.Name.Local): @@ -69294,7 +69814,7 @@ func awsEc2query_deserializeDocumentNetworkInterfacePermission(v **types.Network } if val != nil { xtv := string(val) - sv.AwsService = &xtv + sv.AwsService = ptr.String(xtv) } case strings.EqualFold("networkInterfaceId", t.Name.Local): @@ -69310,7 +69830,7 @@ func awsEc2query_deserializeDocumentNetworkInterfacePermission(v **types.Network } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } case strings.EqualFold("networkInterfacePermissionId", t.Name.Local): @@ -69326,7 +69846,7 @@ func awsEc2query_deserializeDocumentNetworkInterfacePermission(v **types.Network } if val != nil { xtv := string(val) - sv.NetworkInterfacePermissionId = &xtv + sv.NetworkInterfacePermissionId = ptr.String(xtv) } case strings.EqualFold("permission", t.Name.Local): @@ -69358,13 +69878,13 @@ func awsEc2query_deserializeDocumentNetworkInterfacePermission(v **types.Network return nil } -func awsEc2query_deserializeDocumentNetworkInterfacePermissionList(v *[]*types.NetworkInterfacePermission, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentNetworkInterfacePermissionList(v *[]types.NetworkInterfacePermission, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NetworkInterfacePermission + var sv []types.NetworkInterfacePermission if *v == nil { - sv = make([]*types.NetworkInterfacePermission, 0) + sv = make([]types.NetworkInterfacePermission, 0) } else { sv = *v } @@ -69380,11 +69900,13 @@ func awsEc2query_deserializeDocumentNetworkInterfacePermissionList(v *[]*types.N } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.NetworkInterfacePermission + var col types.NetworkInterfacePermission nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkInterfacePermission(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentNetworkInterfacePermission(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -69397,23 +69919,25 @@ func awsEc2query_deserializeDocumentNetworkInterfacePermissionList(v *[]*types.N return nil } -func awsEc2query_deserializeDocumentNetworkInterfacePermissionListUnwrapped(v *[]*types.NetworkInterfacePermission, decoder smithyxml.NodeDecoder) error { - var sv []*types.NetworkInterfacePermission +func awsEc2query_deserializeDocumentNetworkInterfacePermissionListUnwrapped(v *[]types.NetworkInterfacePermission, decoder smithyxml.NodeDecoder) error { + var sv []types.NetworkInterfacePermission if *v == nil { - sv = make([]*types.NetworkInterfacePermission, 0) + sv = make([]types.NetworkInterfacePermission, 0) } else { sv = *v } switch { default: - var mv *types.NetworkInterfacePermission + var mv types.NetworkInterfacePermission t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkInterfacePermission(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentNetworkInterfacePermission(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -69467,7 +69991,7 @@ func awsEc2query_deserializeDocumentNetworkInterfacePermissionState(v **types.Ne } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } default: @@ -69521,7 +70045,7 @@ func awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddress(v **types.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Primary = &xtv + sv.Primary = xtv } case strings.EqualFold("privateDnsName", t.Name.Local): @@ -69537,7 +70061,7 @@ func awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddress(v **types.N } if val != nil { xtv := string(val) - sv.PrivateDnsName = &xtv + sv.PrivateDnsName = ptr.String(xtv) } case strings.EqualFold("privateIpAddress", t.Name.Local): @@ -69553,7 +70077,7 @@ func awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddress(v **types.N } if val != nil { xtv := string(val) - sv.PrivateIpAddress = &xtv + sv.PrivateIpAddress = ptr.String(xtv) } default: @@ -69566,13 +70090,13 @@ func awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddress(v **types.N return nil } -func awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddressList(v *[]*types.NetworkInterfacePrivateIpAddress, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddressList(v *[]types.NetworkInterfacePrivateIpAddress, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NetworkInterfacePrivateIpAddress + var sv []types.NetworkInterfacePrivateIpAddress if *v == nil { - sv = make([]*types.NetworkInterfacePrivateIpAddress, 0) + sv = make([]types.NetworkInterfacePrivateIpAddress, 0) } else { sv = *v } @@ -69588,11 +70112,13 @@ func awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddressList(v *[]*t } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.NetworkInterfacePrivateIpAddress + var col types.NetworkInterfacePrivateIpAddress nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddress(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddress(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -69605,35 +70131,37 @@ func awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddressList(v *[]*t return nil } -func awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddressListUnwrapped(v *[]*types.NetworkInterfacePrivateIpAddress, decoder smithyxml.NodeDecoder) error { - var sv []*types.NetworkInterfacePrivateIpAddress +func awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddressListUnwrapped(v *[]types.NetworkInterfacePrivateIpAddress, decoder smithyxml.NodeDecoder) error { + var sv []types.NetworkInterfacePrivateIpAddress if *v == nil { - sv = make([]*types.NetworkInterfacePrivateIpAddress, 0) + sv = make([]types.NetworkInterfacePrivateIpAddress, 0) } else { sv = *v } switch { default: - var mv *types.NetworkInterfacePrivateIpAddress + var mv types.NetworkInterfacePrivateIpAddress t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddress(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddress(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentOccurrenceDaySet(v *[]*int32, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentOccurrenceDaySet(v *[]int32, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*int32 + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } @@ -69651,7 +70179,7 @@ func awsEc2query_deserializeDocumentOccurrenceDaySet(v *[]*int32, decoder smithy decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *int32 + var col int32 val, done, err := decoder.Value() if err != nil { return err @@ -69665,7 +70193,7 @@ func awsEc2query_deserializeDocumentOccurrenceDaySet(v *[]*int32, decoder smithy if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } sv = append(sv, col) } else { @@ -69678,17 +70206,17 @@ func awsEc2query_deserializeDocumentOccurrenceDaySet(v *[]*int32, decoder smithy return nil } -func awsEc2query_deserializeDocumentOccurrenceDaySetUnwrapped(v *[]*int32, decoder smithyxml.NodeDecoder) error { - var sv []*int32 +func awsEc2query_deserializeDocumentOccurrenceDaySetUnwrapped(v *[]int32, decoder smithyxml.NodeDecoder) error { + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } switch { default: - var mv *int32 + var mv int32 t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -69704,7 +70232,7 @@ func awsEc2query_deserializeDocumentOccurrenceDaySetUnwrapped(v *[]*int32, decod if err != nil { return err } - mv = ptr.Int32(int32(i64)) + mv = int32(i64) } sv = append(sv, mv) } @@ -69765,7 +70293,7 @@ func awsEc2query_deserializeDocumentOnDemandOptions(v **types.OnDemandOptions, d } if val != nil { xtv := string(val) - sv.MaxTotalPrice = &xtv + sv.MaxTotalPrice = ptr.String(xtv) } case strings.EqualFold("minTargetCapacity", t.Name.Local): @@ -69782,7 +70310,7 @@ func awsEc2query_deserializeDocumentOnDemandOptions(v **types.OnDemandOptions, d if err != nil { return err } - sv.MinTargetCapacity = ptr.Int32(int32(i64)) + sv.MinTargetCapacity = int32(i64) } case strings.EqualFold("singleAvailabilityZone", t.Name.Local): @@ -69798,7 +70326,7 @@ func awsEc2query_deserializeDocumentOnDemandOptions(v **types.OnDemandOptions, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SingleAvailabilityZone = &xtv + sv.SingleAvailabilityZone = xtv } case strings.EqualFold("singleInstanceType", t.Name.Local): @@ -69814,7 +70342,7 @@ func awsEc2query_deserializeDocumentOnDemandOptions(v **types.OnDemandOptions, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SingleInstanceType = &xtv + sv.SingleInstanceType = xtv } default: @@ -69862,7 +70390,7 @@ func awsEc2query_deserializeDocumentPciId(v **types.PciId, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.DeviceId = &xtv + sv.DeviceId = ptr.String(xtv) } case strings.EqualFold("SubsystemId", t.Name.Local): @@ -69878,7 +70406,7 @@ func awsEc2query_deserializeDocumentPciId(v **types.PciId, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.SubsystemId = &xtv + sv.SubsystemId = ptr.String(xtv) } case strings.EqualFold("SubsystemVendorId", t.Name.Local): @@ -69894,7 +70422,7 @@ func awsEc2query_deserializeDocumentPciId(v **types.PciId, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.SubsystemVendorId = &xtv + sv.SubsystemVendorId = ptr.String(xtv) } case strings.EqualFold("VendorId", t.Name.Local): @@ -69910,7 +70438,7 @@ func awsEc2query_deserializeDocumentPciId(v **types.PciId, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.VendorId = &xtv + sv.VendorId = ptr.String(xtv) } default: @@ -69958,7 +70486,7 @@ func awsEc2query_deserializeDocumentPeeringAttachmentStatus(v **types.PeeringAtt } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -69974,7 +70502,7 @@ func awsEc2query_deserializeDocumentPeeringAttachmentStatus(v **types.PeeringAtt } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -70022,7 +70550,7 @@ func awsEc2query_deserializeDocumentPeeringConnectionOptions(v **types.PeeringCo if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowDnsResolutionFromRemoteVpc = &xtv + sv.AllowDnsResolutionFromRemoteVpc = xtv } case strings.EqualFold("allowEgressFromLocalClassicLinkToRemoteVpc", t.Name.Local): @@ -70038,7 +70566,7 @@ func awsEc2query_deserializeDocumentPeeringConnectionOptions(v **types.PeeringCo if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowEgressFromLocalClassicLinkToRemoteVpc = &xtv + sv.AllowEgressFromLocalClassicLinkToRemoteVpc = xtv } case strings.EqualFold("allowEgressFromLocalVpcToRemoteClassicLink", t.Name.Local): @@ -70054,7 +70582,7 @@ func awsEc2query_deserializeDocumentPeeringConnectionOptions(v **types.PeeringCo if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowEgressFromLocalVpcToRemoteClassicLink = &xtv + sv.AllowEgressFromLocalVpcToRemoteClassicLink = xtv } default: @@ -70102,7 +70630,7 @@ func awsEc2query_deserializeDocumentPeeringTgwInfo(v **types.PeeringTgwInfo, dec } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("region", t.Name.Local): @@ -70118,7 +70646,7 @@ func awsEc2query_deserializeDocumentPeeringTgwInfo(v **types.PeeringTgwInfo, dec } if val != nil { xtv := string(val) - sv.Region = &xtv + sv.Region = ptr.String(xtv) } case strings.EqualFold("transitGatewayId", t.Name.Local): @@ -70134,7 +70662,7 @@ func awsEc2query_deserializeDocumentPeeringTgwInfo(v **types.PeeringTgwInfo, dec } if val != nil { xtv := string(val) - sv.TransitGatewayId = &xtv + sv.TransitGatewayId = ptr.String(xtv) } default: @@ -70147,13 +70675,13 @@ func awsEc2query_deserializeDocumentPeeringTgwInfo(v **types.PeeringTgwInfo, dec return nil } -func awsEc2query_deserializeDocumentPhase1DHGroupNumbersList(v *[]*types.Phase1DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPhase1DHGroupNumbersList(v *[]types.Phase1DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Phase1DHGroupNumbersListValue + var sv []types.Phase1DHGroupNumbersListValue if *v == nil { - sv = make([]*types.Phase1DHGroupNumbersListValue, 0) + sv = make([]types.Phase1DHGroupNumbersListValue, 0) } else { sv = *v } @@ -70169,11 +70697,13 @@ func awsEc2query_deserializeDocumentPhase1DHGroupNumbersList(v *[]*types.Phase1D } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Phase1DHGroupNumbersListValue + var col types.Phase1DHGroupNumbersListValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPhase1DHGroupNumbersListValue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPhase1DHGroupNumbersListValue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -70186,23 +70716,25 @@ func awsEc2query_deserializeDocumentPhase1DHGroupNumbersList(v *[]*types.Phase1D return nil } -func awsEc2query_deserializeDocumentPhase1DHGroupNumbersListUnwrapped(v *[]*types.Phase1DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error { - var sv []*types.Phase1DHGroupNumbersListValue +func awsEc2query_deserializeDocumentPhase1DHGroupNumbersListUnwrapped(v *[]types.Phase1DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error { + var sv []types.Phase1DHGroupNumbersListValue if *v == nil { - sv = make([]*types.Phase1DHGroupNumbersListValue, 0) + sv = make([]types.Phase1DHGroupNumbersListValue, 0) } else { sv = *v } switch { default: - var mv *types.Phase1DHGroupNumbersListValue + var mv types.Phase1DHGroupNumbersListValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPhase1DHGroupNumbersListValue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPhase1DHGroupNumbersListValue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -70244,7 +70776,7 @@ func awsEc2query_deserializeDocumentPhase1DHGroupNumbersListValue(v **types.Phas if err != nil { return err } - sv.Value = ptr.Int32(int32(i64)) + sv.Value = int32(i64) } default: @@ -70257,13 +70789,13 @@ func awsEc2query_deserializeDocumentPhase1DHGroupNumbersListValue(v **types.Phas return nil } -func awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsList(v *[]*types.Phase1EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsList(v *[]types.Phase1EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Phase1EncryptionAlgorithmsListValue + var sv []types.Phase1EncryptionAlgorithmsListValue if *v == nil { - sv = make([]*types.Phase1EncryptionAlgorithmsListValue, 0) + sv = make([]types.Phase1EncryptionAlgorithmsListValue, 0) } else { sv = *v } @@ -70279,11 +70811,13 @@ func awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsList(v *[]*types.P } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Phase1EncryptionAlgorithmsListValue + var col types.Phase1EncryptionAlgorithmsListValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsListValue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsListValue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -70296,23 +70830,25 @@ func awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsList(v *[]*types.P return nil } -func awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsListUnwrapped(v *[]*types.Phase1EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { - var sv []*types.Phase1EncryptionAlgorithmsListValue +func awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsListUnwrapped(v *[]types.Phase1EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { + var sv []types.Phase1EncryptionAlgorithmsListValue if *v == nil { - sv = make([]*types.Phase1EncryptionAlgorithmsListValue, 0) + sv = make([]types.Phase1EncryptionAlgorithmsListValue, 0) } else { sv = *v } switch { default: - var mv *types.Phase1EncryptionAlgorithmsListValue + var mv types.Phase1EncryptionAlgorithmsListValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsListValue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsListValue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -70353,7 +70889,7 @@ func awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsListValue(v **type } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -70366,13 +70902,13 @@ func awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsListValue(v **type return nil } -func awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsList(v *[]*types.Phase1IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsList(v *[]types.Phase1IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Phase1IntegrityAlgorithmsListValue + var sv []types.Phase1IntegrityAlgorithmsListValue if *v == nil { - sv = make([]*types.Phase1IntegrityAlgorithmsListValue, 0) + sv = make([]types.Phase1IntegrityAlgorithmsListValue, 0) } else { sv = *v } @@ -70388,11 +70924,13 @@ func awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsList(v *[]*types.Ph } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Phase1IntegrityAlgorithmsListValue + var col types.Phase1IntegrityAlgorithmsListValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsListValue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsListValue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -70405,23 +70943,25 @@ func awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsList(v *[]*types.Ph return nil } -func awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsListUnwrapped(v *[]*types.Phase1IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { - var sv []*types.Phase1IntegrityAlgorithmsListValue +func awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsListUnwrapped(v *[]types.Phase1IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { + var sv []types.Phase1IntegrityAlgorithmsListValue if *v == nil { - sv = make([]*types.Phase1IntegrityAlgorithmsListValue, 0) + sv = make([]types.Phase1IntegrityAlgorithmsListValue, 0) } else { sv = *v } switch { default: - var mv *types.Phase1IntegrityAlgorithmsListValue + var mv types.Phase1IntegrityAlgorithmsListValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsListValue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsListValue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -70462,7 +71002,7 @@ func awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsListValue(v **types } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -70475,13 +71015,13 @@ func awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsListValue(v **types return nil } -func awsEc2query_deserializeDocumentPhase2DHGroupNumbersList(v *[]*types.Phase2DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPhase2DHGroupNumbersList(v *[]types.Phase2DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Phase2DHGroupNumbersListValue + var sv []types.Phase2DHGroupNumbersListValue if *v == nil { - sv = make([]*types.Phase2DHGroupNumbersListValue, 0) + sv = make([]types.Phase2DHGroupNumbersListValue, 0) } else { sv = *v } @@ -70497,11 +71037,13 @@ func awsEc2query_deserializeDocumentPhase2DHGroupNumbersList(v *[]*types.Phase2D } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Phase2DHGroupNumbersListValue + var col types.Phase2DHGroupNumbersListValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPhase2DHGroupNumbersListValue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPhase2DHGroupNumbersListValue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -70514,23 +71056,25 @@ func awsEc2query_deserializeDocumentPhase2DHGroupNumbersList(v *[]*types.Phase2D return nil } -func awsEc2query_deserializeDocumentPhase2DHGroupNumbersListUnwrapped(v *[]*types.Phase2DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error { - var sv []*types.Phase2DHGroupNumbersListValue +func awsEc2query_deserializeDocumentPhase2DHGroupNumbersListUnwrapped(v *[]types.Phase2DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error { + var sv []types.Phase2DHGroupNumbersListValue if *v == nil { - sv = make([]*types.Phase2DHGroupNumbersListValue, 0) + sv = make([]types.Phase2DHGroupNumbersListValue, 0) } else { sv = *v } switch { default: - var mv *types.Phase2DHGroupNumbersListValue + var mv types.Phase2DHGroupNumbersListValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPhase2DHGroupNumbersListValue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPhase2DHGroupNumbersListValue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -70572,7 +71116,7 @@ func awsEc2query_deserializeDocumentPhase2DHGroupNumbersListValue(v **types.Phas if err != nil { return err } - sv.Value = ptr.Int32(int32(i64)) + sv.Value = int32(i64) } default: @@ -70585,13 +71129,13 @@ func awsEc2query_deserializeDocumentPhase2DHGroupNumbersListValue(v **types.Phas return nil } -func awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsList(v *[]*types.Phase2EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsList(v *[]types.Phase2EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Phase2EncryptionAlgorithmsListValue + var sv []types.Phase2EncryptionAlgorithmsListValue if *v == nil { - sv = make([]*types.Phase2EncryptionAlgorithmsListValue, 0) + sv = make([]types.Phase2EncryptionAlgorithmsListValue, 0) } else { sv = *v } @@ -70607,11 +71151,13 @@ func awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsList(v *[]*types.P } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Phase2EncryptionAlgorithmsListValue + var col types.Phase2EncryptionAlgorithmsListValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsListValue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsListValue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -70624,23 +71170,25 @@ func awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsList(v *[]*types.P return nil } -func awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsListUnwrapped(v *[]*types.Phase2EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { - var sv []*types.Phase2EncryptionAlgorithmsListValue +func awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsListUnwrapped(v *[]types.Phase2EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { + var sv []types.Phase2EncryptionAlgorithmsListValue if *v == nil { - sv = make([]*types.Phase2EncryptionAlgorithmsListValue, 0) + sv = make([]types.Phase2EncryptionAlgorithmsListValue, 0) } else { sv = *v } switch { default: - var mv *types.Phase2EncryptionAlgorithmsListValue + var mv types.Phase2EncryptionAlgorithmsListValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsListValue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsListValue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -70681,7 +71229,7 @@ func awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsListValue(v **type } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -70694,13 +71242,13 @@ func awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsListValue(v **type return nil } -func awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsList(v *[]*types.Phase2IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsList(v *[]types.Phase2IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Phase2IntegrityAlgorithmsListValue + var sv []types.Phase2IntegrityAlgorithmsListValue if *v == nil { - sv = make([]*types.Phase2IntegrityAlgorithmsListValue, 0) + sv = make([]types.Phase2IntegrityAlgorithmsListValue, 0) } else { sv = *v } @@ -70716,11 +71264,13 @@ func awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsList(v *[]*types.Ph } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Phase2IntegrityAlgorithmsListValue + var col types.Phase2IntegrityAlgorithmsListValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsListValue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsListValue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -70733,23 +71283,25 @@ func awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsList(v *[]*types.Ph return nil } -func awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsListUnwrapped(v *[]*types.Phase2IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { - var sv []*types.Phase2IntegrityAlgorithmsListValue +func awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsListUnwrapped(v *[]types.Phase2IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error { + var sv []types.Phase2IntegrityAlgorithmsListValue if *v == nil { - sv = make([]*types.Phase2IntegrityAlgorithmsListValue, 0) + sv = make([]types.Phase2IntegrityAlgorithmsListValue, 0) } else { sv = *v } switch { default: - var mv *types.Phase2IntegrityAlgorithmsListValue + var mv types.Phase2IntegrityAlgorithmsListValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsListValue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsListValue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -70790,7 +71342,7 @@ func awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsListValue(v **types } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -70838,7 +71390,7 @@ func awsEc2query_deserializeDocumentPlacement(v **types.Placement, decoder smith } if val != nil { xtv := string(val) - sv.Affinity = &xtv + sv.Affinity = ptr.String(xtv) } case strings.EqualFold("availabilityZone", t.Name.Local): @@ -70854,7 +71406,7 @@ func awsEc2query_deserializeDocumentPlacement(v **types.Placement, decoder smith } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("groupName", t.Name.Local): @@ -70870,7 +71422,7 @@ func awsEc2query_deserializeDocumentPlacement(v **types.Placement, decoder smith } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } case strings.EqualFold("hostId", t.Name.Local): @@ -70886,7 +71438,7 @@ func awsEc2query_deserializeDocumentPlacement(v **types.Placement, decoder smith } if val != nil { xtv := string(val) - sv.HostId = &xtv + sv.HostId = ptr.String(xtv) } case strings.EqualFold("hostResourceGroupArn", t.Name.Local): @@ -70902,7 +71454,7 @@ func awsEc2query_deserializeDocumentPlacement(v **types.Placement, decoder smith } if val != nil { xtv := string(val) - sv.HostResourceGroupArn = &xtv + sv.HostResourceGroupArn = ptr.String(xtv) } case strings.EqualFold("partitionNumber", t.Name.Local): @@ -70919,7 +71471,7 @@ func awsEc2query_deserializeDocumentPlacement(v **types.Placement, decoder smith if err != nil { return err } - sv.PartitionNumber = ptr.Int32(int32(i64)) + sv.PartitionNumber = int32(i64) } case strings.EqualFold("spreadDomain", t.Name.Local): @@ -70935,7 +71487,7 @@ func awsEc2query_deserializeDocumentPlacement(v **types.Placement, decoder smith } if val != nil { xtv := string(val) - sv.SpreadDomain = &xtv + sv.SpreadDomain = ptr.String(xtv) } case strings.EqualFold("tenancy", t.Name.Local): @@ -70996,7 +71548,7 @@ func awsEc2query_deserializeDocumentPlacementGroup(v **types.PlacementGroup, dec } if val != nil { xtv := string(val) - sv.GroupId = &xtv + sv.GroupId = ptr.String(xtv) } case strings.EqualFold("groupName", t.Name.Local): @@ -71012,7 +71564,7 @@ func awsEc2query_deserializeDocumentPlacementGroup(v **types.PlacementGroup, dec } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } case strings.EqualFold("partitionCount", t.Name.Local): @@ -71029,7 +71581,7 @@ func awsEc2query_deserializeDocumentPlacementGroup(v **types.PlacementGroup, dec if err != nil { return err } - sv.PartitionCount = ptr.Int32(int32(i64)) + sv.PartitionCount = int32(i64) } case strings.EqualFold("state", t.Name.Local): @@ -71112,13 +71664,13 @@ func awsEc2query_deserializeDocumentPlacementGroupInfo(v **types.PlacementGroupI return nil } -func awsEc2query_deserializeDocumentPlacementGroupList(v *[]*types.PlacementGroup, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPlacementGroupList(v *[]types.PlacementGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PlacementGroup + var sv []types.PlacementGroup if *v == nil { - sv = make([]*types.PlacementGroup, 0) + sv = make([]types.PlacementGroup, 0) } else { sv = *v } @@ -71134,11 +71686,13 @@ func awsEc2query_deserializeDocumentPlacementGroupList(v *[]*types.PlacementGrou } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.PlacementGroup + var col types.PlacementGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPlacementGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPlacementGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -71151,23 +71705,25 @@ func awsEc2query_deserializeDocumentPlacementGroupList(v *[]*types.PlacementGrou return nil } -func awsEc2query_deserializeDocumentPlacementGroupListUnwrapped(v *[]*types.PlacementGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.PlacementGroup +func awsEc2query_deserializeDocumentPlacementGroupListUnwrapped(v *[]types.PlacementGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.PlacementGroup if *v == nil { - sv = make([]*types.PlacementGroup, 0) + sv = make([]types.PlacementGroup, 0) } else { sv = *v } switch { default: - var mv *types.PlacementGroup + var mv types.PlacementGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPlacementGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPlacementGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -71284,7 +71840,7 @@ func awsEc2query_deserializeDocumentPlacementResponse(v **types.PlacementRespons } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } default: @@ -71332,7 +71888,7 @@ func awsEc2query_deserializeDocumentPoolCidrBlock(v **types.PoolCidrBlock, decod } if val != nil { xtv := string(val) - sv.Cidr = &xtv + sv.Cidr = ptr.String(xtv) } default: @@ -71345,13 +71901,13 @@ func awsEc2query_deserializeDocumentPoolCidrBlock(v **types.PoolCidrBlock, decod return nil } -func awsEc2query_deserializeDocumentPoolCidrBlocksSet(v *[]*types.PoolCidrBlock, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPoolCidrBlocksSet(v *[]types.PoolCidrBlock, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PoolCidrBlock + var sv []types.PoolCidrBlock if *v == nil { - sv = make([]*types.PoolCidrBlock, 0) + sv = make([]types.PoolCidrBlock, 0) } else { sv = *v } @@ -71367,11 +71923,13 @@ func awsEc2query_deserializeDocumentPoolCidrBlocksSet(v *[]*types.PoolCidrBlock, } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.PoolCidrBlock + var col types.PoolCidrBlock nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPoolCidrBlock(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPoolCidrBlock(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -71384,23 +71942,25 @@ func awsEc2query_deserializeDocumentPoolCidrBlocksSet(v *[]*types.PoolCidrBlock, return nil } -func awsEc2query_deserializeDocumentPoolCidrBlocksSetUnwrapped(v *[]*types.PoolCidrBlock, decoder smithyxml.NodeDecoder) error { - var sv []*types.PoolCidrBlock +func awsEc2query_deserializeDocumentPoolCidrBlocksSetUnwrapped(v *[]types.PoolCidrBlock, decoder smithyxml.NodeDecoder) error { + var sv []types.PoolCidrBlock if *v == nil { - sv = make([]*types.PoolCidrBlock, 0) + sv = make([]types.PoolCidrBlock, 0) } else { sv = *v } switch { default: - var mv *types.PoolCidrBlock + var mv types.PoolCidrBlock t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPoolCidrBlock(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPoolCidrBlock(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -71442,7 +72002,7 @@ func awsEc2query_deserializeDocumentPortRange(v **types.PortRange, decoder smith if err != nil { return err } - sv.From = ptr.Int32(int32(i64)) + sv.From = int32(i64) } case strings.EqualFold("to", t.Name.Local): @@ -71459,7 +72019,7 @@ func awsEc2query_deserializeDocumentPortRange(v **types.PortRange, decoder smith if err != nil { return err } - sv.To = ptr.Int32(int32(i64)) + sv.To = int32(i64) } default: @@ -71513,7 +72073,7 @@ func awsEc2query_deserializeDocumentPrefixList(v **types.PrefixList, decoder smi } if val != nil { xtv := string(val) - sv.PrefixListId = &xtv + sv.PrefixListId = ptr.String(xtv) } case strings.EqualFold("prefixListName", t.Name.Local): @@ -71529,7 +72089,7 @@ func awsEc2query_deserializeDocumentPrefixList(v **types.PrefixList, decoder smi } if val != nil { xtv := string(val) - sv.PrefixListName = &xtv + sv.PrefixListName = ptr.String(xtv) } default: @@ -71577,7 +72137,7 @@ func awsEc2query_deserializeDocumentPrefixListAssociation(v **types.PrefixListAs } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("resourceOwner", t.Name.Local): @@ -71593,7 +72153,7 @@ func awsEc2query_deserializeDocumentPrefixListAssociation(v **types.PrefixListAs } if val != nil { xtv := string(val) - sv.ResourceOwner = &xtv + sv.ResourceOwner = ptr.String(xtv) } default: @@ -71606,13 +72166,13 @@ func awsEc2query_deserializeDocumentPrefixListAssociation(v **types.PrefixListAs return nil } -func awsEc2query_deserializeDocumentPrefixListAssociationSet(v *[]*types.PrefixListAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPrefixListAssociationSet(v *[]types.PrefixListAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PrefixListAssociation + var sv []types.PrefixListAssociation if *v == nil { - sv = make([]*types.PrefixListAssociation, 0) + sv = make([]types.PrefixListAssociation, 0) } else { sv = *v } @@ -71628,11 +72188,13 @@ func awsEc2query_deserializeDocumentPrefixListAssociationSet(v *[]*types.PrefixL } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.PrefixListAssociation + var col types.PrefixListAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrefixListAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPrefixListAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -71645,23 +72207,25 @@ func awsEc2query_deserializeDocumentPrefixListAssociationSet(v *[]*types.PrefixL return nil } -func awsEc2query_deserializeDocumentPrefixListAssociationSetUnwrapped(v *[]*types.PrefixListAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.PrefixListAssociation +func awsEc2query_deserializeDocumentPrefixListAssociationSetUnwrapped(v *[]types.PrefixListAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.PrefixListAssociation if *v == nil { - sv = make([]*types.PrefixListAssociation, 0) + sv = make([]types.PrefixListAssociation, 0) } else { sv = *v } switch { default: - var mv *types.PrefixListAssociation + var mv types.PrefixListAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrefixListAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPrefixListAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -71702,7 +72266,7 @@ func awsEc2query_deserializeDocumentPrefixListEntry(v **types.PrefixListEntry, d } if val != nil { xtv := string(val) - sv.Cidr = &xtv + sv.Cidr = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -71718,7 +72282,7 @@ func awsEc2query_deserializeDocumentPrefixListEntry(v **types.PrefixListEntry, d } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } default: @@ -71731,13 +72295,13 @@ func awsEc2query_deserializeDocumentPrefixListEntry(v **types.PrefixListEntry, d return nil } -func awsEc2query_deserializeDocumentPrefixListEntrySet(v *[]*types.PrefixListEntry, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPrefixListEntrySet(v *[]types.PrefixListEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PrefixListEntry + var sv []types.PrefixListEntry if *v == nil { - sv = make([]*types.PrefixListEntry, 0) + sv = make([]types.PrefixListEntry, 0) } else { sv = *v } @@ -71753,11 +72317,13 @@ func awsEc2query_deserializeDocumentPrefixListEntrySet(v *[]*types.PrefixListEnt } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.PrefixListEntry + var col types.PrefixListEntry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrefixListEntry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPrefixListEntry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -71770,23 +72336,25 @@ func awsEc2query_deserializeDocumentPrefixListEntrySet(v *[]*types.PrefixListEnt return nil } -func awsEc2query_deserializeDocumentPrefixListEntrySetUnwrapped(v *[]*types.PrefixListEntry, decoder smithyxml.NodeDecoder) error { - var sv []*types.PrefixListEntry +func awsEc2query_deserializeDocumentPrefixListEntrySetUnwrapped(v *[]types.PrefixListEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.PrefixListEntry if *v == nil { - sv = make([]*types.PrefixListEntry, 0) + sv = make([]types.PrefixListEntry, 0) } else { sv = *v } switch { default: - var mv *types.PrefixListEntry + var mv types.PrefixListEntry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrefixListEntry(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPrefixListEntry(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -71827,7 +72395,7 @@ func awsEc2query_deserializeDocumentPrefixListId(v **types.PrefixListId, decoder } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("prefixListId", t.Name.Local): @@ -71843,7 +72411,7 @@ func awsEc2query_deserializeDocumentPrefixListId(v **types.PrefixListId, decoder } if val != nil { xtv := string(val) - sv.PrefixListId = &xtv + sv.PrefixListId = ptr.String(xtv) } default: @@ -71856,13 +72424,13 @@ func awsEc2query_deserializeDocumentPrefixListId(v **types.PrefixListId, decoder return nil } -func awsEc2query_deserializeDocumentPrefixListIdList(v *[]*types.PrefixListId, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPrefixListIdList(v *[]types.PrefixListId, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PrefixListId + var sv []types.PrefixListId if *v == nil { - sv = make([]*types.PrefixListId, 0) + sv = make([]types.PrefixListId, 0) } else { sv = *v } @@ -71878,11 +72446,13 @@ func awsEc2query_deserializeDocumentPrefixListIdList(v *[]*types.PrefixListId, d } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.PrefixListId + var col types.PrefixListId nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrefixListId(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPrefixListId(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -71895,35 +72465,37 @@ func awsEc2query_deserializeDocumentPrefixListIdList(v *[]*types.PrefixListId, d return nil } -func awsEc2query_deserializeDocumentPrefixListIdListUnwrapped(v *[]*types.PrefixListId, decoder smithyxml.NodeDecoder) error { - var sv []*types.PrefixListId +func awsEc2query_deserializeDocumentPrefixListIdListUnwrapped(v *[]types.PrefixListId, decoder smithyxml.NodeDecoder) error { + var sv []types.PrefixListId if *v == nil { - sv = make([]*types.PrefixListId, 0) + sv = make([]types.PrefixListId, 0) } else { sv = *v } switch { default: - var mv *types.PrefixListId + var mv types.PrefixListId t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrefixListId(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPrefixListId(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentPrefixListIdSet(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPrefixListIdSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -71941,20 +72513,17 @@ func awsEc2query_deserializeDocumentPrefixListIdSet(v *[]*string, decoder smithy decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -71967,17 +72536,17 @@ func awsEc2query_deserializeDocumentPrefixListIdSet(v *[]*string, decoder smithy return nil } -func awsEc2query_deserializeDocumentPrefixListIdSetUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentPrefixListIdSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -71985,27 +72554,24 @@ func awsEc2query_deserializeDocumentPrefixListIdSetUnwrapped(v *[]*string, decod return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentPrefixListSet(v *[]*types.PrefixList, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPrefixListSet(v *[]types.PrefixList, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PrefixList + var sv []types.PrefixList if *v == nil { - sv = make([]*types.PrefixList, 0) + sv = make([]types.PrefixList, 0) } else { sv = *v } @@ -72021,11 +72587,13 @@ func awsEc2query_deserializeDocumentPrefixListSet(v *[]*types.PrefixList, decode } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.PrefixList + var col types.PrefixList nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrefixList(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPrefixList(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -72038,23 +72606,25 @@ func awsEc2query_deserializeDocumentPrefixListSet(v *[]*types.PrefixList, decode return nil } -func awsEc2query_deserializeDocumentPrefixListSetUnwrapped(v *[]*types.PrefixList, decoder smithyxml.NodeDecoder) error { - var sv []*types.PrefixList +func awsEc2query_deserializeDocumentPrefixListSetUnwrapped(v *[]types.PrefixList, decoder smithyxml.NodeDecoder) error { + var sv []types.PrefixList if *v == nil { - sv = make([]*types.PrefixList, 0) + sv = make([]types.PrefixList, 0) } else { sv = *v } switch { default: - var mv *types.PrefixList + var mv types.PrefixList t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrefixList(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPrefixList(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -72095,7 +72665,7 @@ func awsEc2query_deserializeDocumentPriceSchedule(v **types.PriceSchedule, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Active = &xtv + sv.Active = xtv } case strings.EqualFold("currencyCode", t.Name.Local): @@ -72125,7 +72695,7 @@ func awsEc2query_deserializeDocumentPriceSchedule(v **types.PriceSchedule, decod if err != nil { return err } - sv.Price = &f64 + sv.Price = f64 } case strings.EqualFold("term", t.Name.Local): @@ -72142,7 +72712,7 @@ func awsEc2query_deserializeDocumentPriceSchedule(v **types.PriceSchedule, decod if err != nil { return err } - sv.Term = &i64 + sv.Term = i64 } default: @@ -72155,13 +72725,13 @@ func awsEc2query_deserializeDocumentPriceSchedule(v **types.PriceSchedule, decod return nil } -func awsEc2query_deserializeDocumentPriceScheduleList(v *[]*types.PriceSchedule, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPriceScheduleList(v *[]types.PriceSchedule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PriceSchedule + var sv []types.PriceSchedule if *v == nil { - sv = make([]*types.PriceSchedule, 0) + sv = make([]types.PriceSchedule, 0) } else { sv = *v } @@ -72177,11 +72747,13 @@ func awsEc2query_deserializeDocumentPriceScheduleList(v *[]*types.PriceSchedule, } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.PriceSchedule + var col types.PriceSchedule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPriceSchedule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPriceSchedule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -72194,23 +72766,25 @@ func awsEc2query_deserializeDocumentPriceScheduleList(v *[]*types.PriceSchedule, return nil } -func awsEc2query_deserializeDocumentPriceScheduleListUnwrapped(v *[]*types.PriceSchedule, decoder smithyxml.NodeDecoder) error { - var sv []*types.PriceSchedule +func awsEc2query_deserializeDocumentPriceScheduleListUnwrapped(v *[]types.PriceSchedule, decoder smithyxml.NodeDecoder) error { + var sv []types.PriceSchedule if *v == nil { - sv = make([]*types.PriceSchedule, 0) + sv = make([]types.PriceSchedule, 0) } else { sv = *v } switch { default: - var mv *types.PriceSchedule + var mv types.PriceSchedule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPriceSchedule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPriceSchedule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -72252,7 +72826,7 @@ func awsEc2query_deserializeDocumentPricingDetail(v **types.PricingDetail, decod if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case strings.EqualFold("price", t.Name.Local): @@ -72269,7 +72843,7 @@ func awsEc2query_deserializeDocumentPricingDetail(v **types.PricingDetail, decod if err != nil { return err } - sv.Price = &f64 + sv.Price = f64 } default: @@ -72282,13 +72856,13 @@ func awsEc2query_deserializeDocumentPricingDetail(v **types.PricingDetail, decod return nil } -func awsEc2query_deserializeDocumentPricingDetailsList(v *[]*types.PricingDetail, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPricingDetailsList(v *[]types.PricingDetail, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PricingDetail + var sv []types.PricingDetail if *v == nil { - sv = make([]*types.PricingDetail, 0) + sv = make([]types.PricingDetail, 0) } else { sv = *v } @@ -72304,11 +72878,13 @@ func awsEc2query_deserializeDocumentPricingDetailsList(v *[]*types.PricingDetail } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.PricingDetail + var col types.PricingDetail nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPricingDetail(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPricingDetail(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -72321,23 +72897,25 @@ func awsEc2query_deserializeDocumentPricingDetailsList(v *[]*types.PricingDetail return nil } -func awsEc2query_deserializeDocumentPricingDetailsListUnwrapped(v *[]*types.PricingDetail, decoder smithyxml.NodeDecoder) error { - var sv []*types.PricingDetail +func awsEc2query_deserializeDocumentPricingDetailsListUnwrapped(v *[]types.PricingDetail, decoder smithyxml.NodeDecoder) error { + var sv []types.PricingDetail if *v == nil { - sv = make([]*types.PricingDetail, 0) + sv = make([]types.PricingDetail, 0) } else { sv = *v } switch { default: - var mv *types.PricingDetail + var mv types.PricingDetail t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPricingDetail(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPricingDetail(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -72378,7 +72956,7 @@ func awsEc2query_deserializeDocumentPrincipalIdFormat(v **types.PrincipalIdForma } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("statusSet", t.Name.Local): @@ -72397,13 +72975,13 @@ func awsEc2query_deserializeDocumentPrincipalIdFormat(v **types.PrincipalIdForma return nil } -func awsEc2query_deserializeDocumentPrincipalIdFormatList(v *[]*types.PrincipalIdFormat, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPrincipalIdFormatList(v *[]types.PrincipalIdFormat, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PrincipalIdFormat + var sv []types.PrincipalIdFormat if *v == nil { - sv = make([]*types.PrincipalIdFormat, 0) + sv = make([]types.PrincipalIdFormat, 0) } else { sv = *v } @@ -72419,11 +72997,13 @@ func awsEc2query_deserializeDocumentPrincipalIdFormatList(v *[]*types.PrincipalI } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.PrincipalIdFormat + var col types.PrincipalIdFormat nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrincipalIdFormat(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPrincipalIdFormat(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -72436,23 +73016,25 @@ func awsEc2query_deserializeDocumentPrincipalIdFormatList(v *[]*types.PrincipalI return nil } -func awsEc2query_deserializeDocumentPrincipalIdFormatListUnwrapped(v *[]*types.PrincipalIdFormat, decoder smithyxml.NodeDecoder) error { - var sv []*types.PrincipalIdFormat +func awsEc2query_deserializeDocumentPrincipalIdFormatListUnwrapped(v *[]types.PrincipalIdFormat, decoder smithyxml.NodeDecoder) error { + var sv []types.PrincipalIdFormat if *v == nil { - sv = make([]*types.PrincipalIdFormat, 0) + sv = make([]types.PrincipalIdFormat, 0) } else { sv = *v } switch { default: - var mv *types.PrincipalIdFormat + var mv types.PrincipalIdFormat t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrincipalIdFormat(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPrincipalIdFormat(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -72493,7 +73075,7 @@ func awsEc2query_deserializeDocumentPrivateDnsNameConfiguration(v **types.Privat } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -72522,7 +73104,7 @@ func awsEc2query_deserializeDocumentPrivateDnsNameConfiguration(v **types.Privat } if val != nil { xtv := string(val) - sv.Type = &xtv + sv.Type = ptr.String(xtv) } case strings.EqualFold("value", t.Name.Local): @@ -72538,7 +73120,7 @@ func awsEc2query_deserializeDocumentPrivateDnsNameConfiguration(v **types.Privat } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -72586,7 +73168,7 @@ func awsEc2query_deserializeDocumentPrivateIpAddressSpecification(v **types.Priv if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Primary = &xtv + sv.Primary = xtv } case strings.EqualFold("privateIpAddress", t.Name.Local): @@ -72602,7 +73184,7 @@ func awsEc2query_deserializeDocumentPrivateIpAddressSpecification(v **types.Priv } if val != nil { xtv := string(val) - sv.PrivateIpAddress = &xtv + sv.PrivateIpAddress = ptr.String(xtv) } default: @@ -72615,13 +73197,13 @@ func awsEc2query_deserializeDocumentPrivateIpAddressSpecification(v **types.Priv return nil } -func awsEc2query_deserializeDocumentPrivateIpAddressSpecificationList(v *[]*types.PrivateIpAddressSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPrivateIpAddressSpecificationList(v *[]types.PrivateIpAddressSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PrivateIpAddressSpecification + var sv []types.PrivateIpAddressSpecification if *v == nil { - sv = make([]*types.PrivateIpAddressSpecification, 0) + sv = make([]types.PrivateIpAddressSpecification, 0) } else { sv = *v } @@ -72637,11 +73219,13 @@ func awsEc2query_deserializeDocumentPrivateIpAddressSpecificationList(v *[]*type } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.PrivateIpAddressSpecification + var col types.PrivateIpAddressSpecification nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrivateIpAddressSpecification(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPrivateIpAddressSpecification(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -72654,23 +73238,25 @@ func awsEc2query_deserializeDocumentPrivateIpAddressSpecificationList(v *[]*type return nil } -func awsEc2query_deserializeDocumentPrivateIpAddressSpecificationListUnwrapped(v *[]*types.PrivateIpAddressSpecification, decoder smithyxml.NodeDecoder) error { - var sv []*types.PrivateIpAddressSpecification +func awsEc2query_deserializeDocumentPrivateIpAddressSpecificationListUnwrapped(v *[]types.PrivateIpAddressSpecification, decoder smithyxml.NodeDecoder) error { + var sv []types.PrivateIpAddressSpecification if *v == nil { - sv = make([]*types.PrivateIpAddressSpecification, 0) + sv = make([]types.PrivateIpAddressSpecification, 0) } else { sv = *v } switch { default: - var mv *types.PrivateIpAddressSpecification + var mv types.PrivateIpAddressSpecification t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrivateIpAddressSpecification(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPrivateIpAddressSpecification(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -72718,7 +73304,7 @@ func awsEc2query_deserializeDocumentProcessorInfo(v **types.ProcessorInfo, decod if err != nil { return err } - sv.SustainedClockSpeedInGhz = &f64 + sv.SustainedClockSpeedInGhz = ptr.Float64(f64) } default: @@ -72766,7 +73352,7 @@ func awsEc2query_deserializeDocumentProductCode(v **types.ProductCode, decoder s } if val != nil { xtv := string(val) - sv.ProductCodeId = &xtv + sv.ProductCodeId = ptr.String(xtv) } case strings.EqualFold("type", t.Name.Local): @@ -72792,13 +73378,13 @@ func awsEc2query_deserializeDocumentProductCode(v **types.ProductCode, decoder s return nil } -func awsEc2query_deserializeDocumentProductCodeList(v *[]*types.ProductCode, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentProductCodeList(v *[]types.ProductCode, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ProductCode + var sv []types.ProductCode if *v == nil { - sv = make([]*types.ProductCode, 0) + sv = make([]types.ProductCode, 0) } else { sv = *v } @@ -72814,11 +73400,13 @@ func awsEc2query_deserializeDocumentProductCodeList(v *[]*types.ProductCode, dec } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ProductCode + var col types.ProductCode nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentProductCode(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentProductCode(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -72831,23 +73419,25 @@ func awsEc2query_deserializeDocumentProductCodeList(v *[]*types.ProductCode, dec return nil } -func awsEc2query_deserializeDocumentProductCodeListUnwrapped(v *[]*types.ProductCode, decoder smithyxml.NodeDecoder) error { - var sv []*types.ProductCode +func awsEc2query_deserializeDocumentProductCodeListUnwrapped(v *[]types.ProductCode, decoder smithyxml.NodeDecoder) error { + var sv []types.ProductCode if *v == nil { - sv = make([]*types.ProductCode, 0) + sv = make([]types.ProductCode, 0) } else { sv = *v } switch { default: - var mv *types.ProductCode + var mv types.ProductCode t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentProductCode(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentProductCode(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -72888,7 +73478,7 @@ func awsEc2query_deserializeDocumentPropagatingVgw(v **types.PropagatingVgw, dec } if val != nil { xtv := string(val) - sv.GatewayId = &xtv + sv.GatewayId = ptr.String(xtv) } default: @@ -72901,13 +73491,13 @@ func awsEc2query_deserializeDocumentPropagatingVgw(v **types.PropagatingVgw, dec return nil } -func awsEc2query_deserializeDocumentPropagatingVgwList(v *[]*types.PropagatingVgw, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPropagatingVgwList(v *[]types.PropagatingVgw, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PropagatingVgw + var sv []types.PropagatingVgw if *v == nil { - sv = make([]*types.PropagatingVgw, 0) + sv = make([]types.PropagatingVgw, 0) } else { sv = *v } @@ -72923,11 +73513,13 @@ func awsEc2query_deserializeDocumentPropagatingVgwList(v *[]*types.PropagatingVg } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.PropagatingVgw + var col types.PropagatingVgw nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPropagatingVgw(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPropagatingVgw(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -72940,23 +73532,25 @@ func awsEc2query_deserializeDocumentPropagatingVgwList(v *[]*types.PropagatingVg return nil } -func awsEc2query_deserializeDocumentPropagatingVgwListUnwrapped(v *[]*types.PropagatingVgw, decoder smithyxml.NodeDecoder) error { - var sv []*types.PropagatingVgw +func awsEc2query_deserializeDocumentPropagatingVgwListUnwrapped(v *[]types.PropagatingVgw, decoder smithyxml.NodeDecoder) error { + var sv []types.PropagatingVgw if *v == nil { - sv = make([]*types.PropagatingVgw, 0) + sv = make([]types.PropagatingVgw, 0) } else { sv = *v } switch { default: - var mv *types.PropagatingVgw + var mv types.PropagatingVgw t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPropagatingVgw(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPropagatingVgw(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -72997,7 +73591,7 @@ func awsEc2query_deserializeDocumentProvisionedBandwidth(v **types.ProvisionedBa } if val != nil { xtv := string(val) - sv.Provisioned = &xtv + sv.Provisioned = ptr.String(xtv) } case strings.EqualFold("provisionTime", t.Name.Local): @@ -73014,7 +73608,7 @@ func awsEc2query_deserializeDocumentProvisionedBandwidth(v **types.ProvisionedBa if err != nil { return err } - sv.ProvisionTime = &t + sv.ProvisionTime = ptr.Time(t) } case strings.EqualFold("requested", t.Name.Local): @@ -73030,7 +73624,7 @@ func awsEc2query_deserializeDocumentProvisionedBandwidth(v **types.ProvisionedBa } if val != nil { xtv := string(val) - sv.Requested = &xtv + sv.Requested = ptr.String(xtv) } case strings.EqualFold("requestTime", t.Name.Local): @@ -73047,7 +73641,7 @@ func awsEc2query_deserializeDocumentProvisionedBandwidth(v **types.ProvisionedBa if err != nil { return err } - sv.RequestTime = &t + sv.RequestTime = ptr.Time(t) } case strings.EqualFold("status", t.Name.Local): @@ -73063,7 +73657,7 @@ func awsEc2query_deserializeDocumentProvisionedBandwidth(v **types.ProvisionedBa } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -73111,7 +73705,7 @@ func awsEc2query_deserializeDocumentPublicIpv4Pool(v **types.PublicIpv4Pool, dec } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("networkBorderGroup", t.Name.Local): @@ -73127,7 +73721,7 @@ func awsEc2query_deserializeDocumentPublicIpv4Pool(v **types.PublicIpv4Pool, dec } if val != nil { xtv := string(val) - sv.NetworkBorderGroup = &xtv + sv.NetworkBorderGroup = ptr.String(xtv) } case strings.EqualFold("poolAddressRangeSet", t.Name.Local): @@ -73149,7 +73743,7 @@ func awsEc2query_deserializeDocumentPublicIpv4Pool(v **types.PublicIpv4Pool, dec } if val != nil { xtv := string(val) - sv.PoolId = &xtv + sv.PoolId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -73172,7 +73766,7 @@ func awsEc2query_deserializeDocumentPublicIpv4Pool(v **types.PublicIpv4Pool, dec if err != nil { return err } - sv.TotalAddressCount = ptr.Int32(int32(i64)) + sv.TotalAddressCount = int32(i64) } case strings.EqualFold("totalAvailableAddressCount", t.Name.Local): @@ -73189,7 +73783,7 @@ func awsEc2query_deserializeDocumentPublicIpv4Pool(v **types.PublicIpv4Pool, dec if err != nil { return err } - sv.TotalAvailableAddressCount = ptr.Int32(int32(i64)) + sv.TotalAvailableAddressCount = int32(i64) } default: @@ -73238,7 +73832,7 @@ func awsEc2query_deserializeDocumentPublicIpv4PoolRange(v **types.PublicIpv4Pool if err != nil { return err } - sv.AddressCount = ptr.Int32(int32(i64)) + sv.AddressCount = int32(i64) } case strings.EqualFold("availableAddressCount", t.Name.Local): @@ -73255,7 +73849,7 @@ func awsEc2query_deserializeDocumentPublicIpv4PoolRange(v **types.PublicIpv4Pool if err != nil { return err } - sv.AvailableAddressCount = ptr.Int32(int32(i64)) + sv.AvailableAddressCount = int32(i64) } case strings.EqualFold("firstAddress", t.Name.Local): @@ -73271,7 +73865,7 @@ func awsEc2query_deserializeDocumentPublicIpv4PoolRange(v **types.PublicIpv4Pool } if val != nil { xtv := string(val) - sv.FirstAddress = &xtv + sv.FirstAddress = ptr.String(xtv) } case strings.EqualFold("lastAddress", t.Name.Local): @@ -73287,7 +73881,7 @@ func awsEc2query_deserializeDocumentPublicIpv4PoolRange(v **types.PublicIpv4Pool } if val != nil { xtv := string(val) - sv.LastAddress = &xtv + sv.LastAddress = ptr.String(xtv) } default: @@ -73300,13 +73894,13 @@ func awsEc2query_deserializeDocumentPublicIpv4PoolRange(v **types.PublicIpv4Pool return nil } -func awsEc2query_deserializeDocumentPublicIpv4PoolRangeSet(v *[]*types.PublicIpv4PoolRange, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPublicIpv4PoolRangeSet(v *[]types.PublicIpv4PoolRange, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PublicIpv4PoolRange + var sv []types.PublicIpv4PoolRange if *v == nil { - sv = make([]*types.PublicIpv4PoolRange, 0) + sv = make([]types.PublicIpv4PoolRange, 0) } else { sv = *v } @@ -73322,11 +73916,13 @@ func awsEc2query_deserializeDocumentPublicIpv4PoolRangeSet(v *[]*types.PublicIpv } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.PublicIpv4PoolRange + var col types.PublicIpv4PoolRange nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPublicIpv4PoolRange(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPublicIpv4PoolRange(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -73339,35 +73935,37 @@ func awsEc2query_deserializeDocumentPublicIpv4PoolRangeSet(v *[]*types.PublicIpv return nil } -func awsEc2query_deserializeDocumentPublicIpv4PoolRangeSetUnwrapped(v *[]*types.PublicIpv4PoolRange, decoder smithyxml.NodeDecoder) error { - var sv []*types.PublicIpv4PoolRange +func awsEc2query_deserializeDocumentPublicIpv4PoolRangeSetUnwrapped(v *[]types.PublicIpv4PoolRange, decoder smithyxml.NodeDecoder) error { + var sv []types.PublicIpv4PoolRange if *v == nil { - sv = make([]*types.PublicIpv4PoolRange, 0) + sv = make([]types.PublicIpv4PoolRange, 0) } else { sv = *v } switch { default: - var mv *types.PublicIpv4PoolRange + var mv types.PublicIpv4PoolRange t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPublicIpv4PoolRange(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPublicIpv4PoolRange(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentPublicIpv4PoolSet(v *[]*types.PublicIpv4Pool, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPublicIpv4PoolSet(v *[]types.PublicIpv4Pool, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PublicIpv4Pool + var sv []types.PublicIpv4Pool if *v == nil { - sv = make([]*types.PublicIpv4Pool, 0) + sv = make([]types.PublicIpv4Pool, 0) } else { sv = *v } @@ -73383,11 +73981,13 @@ func awsEc2query_deserializeDocumentPublicIpv4PoolSet(v *[]*types.PublicIpv4Pool } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.PublicIpv4Pool + var col types.PublicIpv4Pool nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPublicIpv4Pool(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPublicIpv4Pool(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -73400,23 +74000,25 @@ func awsEc2query_deserializeDocumentPublicIpv4PoolSet(v *[]*types.PublicIpv4Pool return nil } -func awsEc2query_deserializeDocumentPublicIpv4PoolSetUnwrapped(v *[]*types.PublicIpv4Pool, decoder smithyxml.NodeDecoder) error { - var sv []*types.PublicIpv4Pool +func awsEc2query_deserializeDocumentPublicIpv4PoolSetUnwrapped(v *[]types.PublicIpv4Pool, decoder smithyxml.NodeDecoder) error { + var sv []types.PublicIpv4Pool if *v == nil { - sv = make([]*types.PublicIpv4Pool, 0) + sv = make([]types.PublicIpv4Pool, 0) } else { sv = *v } switch { default: - var mv *types.PublicIpv4Pool + var mv types.PublicIpv4Pool t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPublicIpv4Pool(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPublicIpv4Pool(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -73471,7 +74073,7 @@ func awsEc2query_deserializeDocumentPurchase(v **types.Purchase, decoder smithyx if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case strings.EqualFold("hostIdSet", t.Name.Local): @@ -73493,7 +74095,7 @@ func awsEc2query_deserializeDocumentPurchase(v **types.Purchase, decoder smithyx } if val != nil { xtv := string(val) - sv.HostReservationId = &xtv + sv.HostReservationId = ptr.String(xtv) } case strings.EqualFold("hourlyPrice", t.Name.Local): @@ -73509,7 +74111,7 @@ func awsEc2query_deserializeDocumentPurchase(v **types.Purchase, decoder smithyx } if val != nil { xtv := string(val) - sv.HourlyPrice = &xtv + sv.HourlyPrice = ptr.String(xtv) } case strings.EqualFold("instanceFamily", t.Name.Local): @@ -73525,7 +74127,7 @@ func awsEc2query_deserializeDocumentPurchase(v **types.Purchase, decoder smithyx } if val != nil { xtv := string(val) - sv.InstanceFamily = &xtv + sv.InstanceFamily = ptr.String(xtv) } case strings.EqualFold("paymentOption", t.Name.Local): @@ -73554,7 +74156,7 @@ func awsEc2query_deserializeDocumentPurchase(v **types.Purchase, decoder smithyx } if val != nil { xtv := string(val) - sv.UpfrontPrice = &xtv + sv.UpfrontPrice = ptr.String(xtv) } default: @@ -73567,13 +74169,13 @@ func awsEc2query_deserializeDocumentPurchase(v **types.Purchase, decoder smithyx return nil } -func awsEc2query_deserializeDocumentPurchasedScheduledInstanceSet(v *[]*types.ScheduledInstance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPurchasedScheduledInstanceSet(v *[]types.ScheduledInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ScheduledInstance + var sv []types.ScheduledInstance if *v == nil { - sv = make([]*types.ScheduledInstance, 0) + sv = make([]types.ScheduledInstance, 0) } else { sv = *v } @@ -73589,11 +74191,13 @@ func awsEc2query_deserializeDocumentPurchasedScheduledInstanceSet(v *[]*types.Sc } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ScheduledInstance + var col types.ScheduledInstance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentScheduledInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentScheduledInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -73606,35 +74210,37 @@ func awsEc2query_deserializeDocumentPurchasedScheduledInstanceSet(v *[]*types.Sc return nil } -func awsEc2query_deserializeDocumentPurchasedScheduledInstanceSetUnwrapped(v *[]*types.ScheduledInstance, decoder smithyxml.NodeDecoder) error { - var sv []*types.ScheduledInstance +func awsEc2query_deserializeDocumentPurchasedScheduledInstanceSetUnwrapped(v *[]types.ScheduledInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.ScheduledInstance if *v == nil { - sv = make([]*types.ScheduledInstance, 0) + sv = make([]types.ScheduledInstance, 0) } else { sv = *v } switch { default: - var mv *types.ScheduledInstance + var mv types.ScheduledInstance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentScheduledInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentScheduledInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentPurchaseSet(v *[]*types.Purchase, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentPurchaseSet(v *[]types.Purchase, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Purchase + var sv []types.Purchase if *v == nil { - sv = make([]*types.Purchase, 0) + sv = make([]types.Purchase, 0) } else { sv = *v } @@ -73650,11 +74256,13 @@ func awsEc2query_deserializeDocumentPurchaseSet(v *[]*types.Purchase, decoder sm } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Purchase + var col types.Purchase nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPurchase(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentPurchase(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -73667,23 +74275,25 @@ func awsEc2query_deserializeDocumentPurchaseSet(v *[]*types.Purchase, decoder sm return nil } -func awsEc2query_deserializeDocumentPurchaseSetUnwrapped(v *[]*types.Purchase, decoder smithyxml.NodeDecoder) error { - var sv []*types.Purchase +func awsEc2query_deserializeDocumentPurchaseSetUnwrapped(v *[]types.Purchase, decoder smithyxml.NodeDecoder) error { + var sv []types.Purchase if *v == nil { - sv = make([]*types.Purchase, 0) + sv = make([]types.Purchase, 0) } else { sv = *v } switch { default: - var mv *types.Purchase + var mv types.Purchase t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPurchase(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentPurchase(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -73725,7 +74335,7 @@ func awsEc2query_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d if err != nil { return err } - sv.Amount = &f64 + sv.Amount = f64 } case strings.EqualFold("frequency", t.Name.Local): @@ -73751,13 +74361,13 @@ func awsEc2query_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d return nil } -func awsEc2query_deserializeDocumentRecurringChargesList(v *[]*types.RecurringCharge, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentRecurringChargesList(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RecurringCharge + var sv []types.RecurringCharge if *v == nil { - sv = make([]*types.RecurringCharge, 0) + sv = make([]types.RecurringCharge, 0) } else { sv = *v } @@ -73773,11 +74383,13 @@ func awsEc2query_deserializeDocumentRecurringChargesList(v *[]*types.RecurringCh } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.RecurringCharge + var col types.RecurringCharge nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentRecurringCharge(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentRecurringCharge(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -73790,23 +74402,25 @@ func awsEc2query_deserializeDocumentRecurringChargesList(v *[]*types.RecurringCh return nil } -func awsEc2query_deserializeDocumentRecurringChargesListUnwrapped(v *[]*types.RecurringCharge, decoder smithyxml.NodeDecoder) error { - var sv []*types.RecurringCharge +func awsEc2query_deserializeDocumentRecurringChargesListUnwrapped(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error { + var sv []types.RecurringCharge if *v == nil { - sv = make([]*types.RecurringCharge, 0) + sv = make([]types.RecurringCharge, 0) } else { sv = *v } switch { default: - var mv *types.RecurringCharge + var mv types.RecurringCharge t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentRecurringCharge(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentRecurringCharge(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -73847,7 +74461,7 @@ func awsEc2query_deserializeDocumentRegion(v **types.Region, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("optInStatus", t.Name.Local): @@ -73863,7 +74477,7 @@ func awsEc2query_deserializeDocumentRegion(v **types.Region, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.OptInStatus = &xtv + sv.OptInStatus = ptr.String(xtv) } case strings.EqualFold("regionName", t.Name.Local): @@ -73879,7 +74493,7 @@ func awsEc2query_deserializeDocumentRegion(v **types.Region, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.RegionName = &xtv + sv.RegionName = ptr.String(xtv) } default: @@ -73892,13 +74506,13 @@ func awsEc2query_deserializeDocumentRegion(v **types.Region, decoder smithyxml.N return nil } -func awsEc2query_deserializeDocumentRegionList(v *[]*types.Region, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentRegionList(v *[]types.Region, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Region + var sv []types.Region if *v == nil { - sv = make([]*types.Region, 0) + sv = make([]types.Region, 0) } else { sv = *v } @@ -73914,11 +74528,13 @@ func awsEc2query_deserializeDocumentRegionList(v *[]*types.Region, decoder smith } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Region + var col types.Region nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentRegion(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentRegion(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -73931,23 +74547,25 @@ func awsEc2query_deserializeDocumentRegionList(v *[]*types.Region, decoder smith return nil } -func awsEc2query_deserializeDocumentRegionListUnwrapped(v *[]*types.Region, decoder smithyxml.NodeDecoder) error { - var sv []*types.Region +func awsEc2query_deserializeDocumentRegionListUnwrapped(v *[]types.Region, decoder smithyxml.NodeDecoder) error { + var sv []types.Region if *v == nil { - sv = make([]*types.Region, 0) + sv = make([]types.Region, 0) } else { sv = *v } switch { default: - var mv *types.Region + var mv types.Region t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentRegion(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentRegion(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -74000,7 +74618,7 @@ func awsEc2query_deserializeDocumentReservation(v **types.Reservation, decoder s } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("requesterId", t.Name.Local): @@ -74016,7 +74634,7 @@ func awsEc2query_deserializeDocumentReservation(v **types.Reservation, decoder s } if val != nil { xtv := string(val) - sv.RequesterId = &xtv + sv.RequesterId = ptr.String(xtv) } case strings.EqualFold("reservationId", t.Name.Local): @@ -74032,7 +74650,7 @@ func awsEc2query_deserializeDocumentReservation(v **types.Reservation, decoder s } if val != nil { xtv := string(val) - sv.ReservationId = &xtv + sv.ReservationId = ptr.String(xtv) } default: @@ -74045,13 +74663,13 @@ func awsEc2query_deserializeDocumentReservation(v **types.Reservation, decoder s return nil } -func awsEc2query_deserializeDocumentReservationList(v *[]*types.Reservation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentReservationList(v *[]types.Reservation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Reservation + var sv []types.Reservation if *v == nil { - sv = make([]*types.Reservation, 0) + sv = make([]types.Reservation, 0) } else { sv = *v } @@ -74067,11 +74685,13 @@ func awsEc2query_deserializeDocumentReservationList(v *[]*types.Reservation, dec } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Reservation + var col types.Reservation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentReservation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -74084,23 +74704,25 @@ func awsEc2query_deserializeDocumentReservationList(v *[]*types.Reservation, dec return nil } -func awsEc2query_deserializeDocumentReservationListUnwrapped(v *[]*types.Reservation, decoder smithyxml.NodeDecoder) error { - var sv []*types.Reservation +func awsEc2query_deserializeDocumentReservationListUnwrapped(v *[]types.Reservation, decoder smithyxml.NodeDecoder) error { + var sv []types.Reservation if *v == nil { - sv = make([]*types.Reservation, 0) + sv = make([]types.Reservation, 0) } else { sv = *v } switch { default: - var mv *types.Reservation + var mv types.Reservation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentReservation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -74141,7 +74763,7 @@ func awsEc2query_deserializeDocumentReservationValue(v **types.ReservationValue, } if val != nil { xtv := string(val) - sv.HourlyPrice = &xtv + sv.HourlyPrice = ptr.String(xtv) } case strings.EqualFold("remainingTotalValue", t.Name.Local): @@ -74157,7 +74779,7 @@ func awsEc2query_deserializeDocumentReservationValue(v **types.ReservationValue, } if val != nil { xtv := string(val) - sv.RemainingTotalValue = &xtv + sv.RemainingTotalValue = ptr.String(xtv) } case strings.EqualFold("remainingUpfrontValue", t.Name.Local): @@ -74173,7 +74795,7 @@ func awsEc2query_deserializeDocumentReservationValue(v **types.ReservationValue, } if val != nil { xtv := string(val) - sv.RemainingUpfrontValue = &xtv + sv.RemainingUpfrontValue = ptr.String(xtv) } default: @@ -74227,7 +74849,7 @@ func awsEc2query_deserializeDocumentReservedInstanceReservationValue(v **types.R } if val != nil { xtv := string(val) - sv.ReservedInstanceId = &xtv + sv.ReservedInstanceId = ptr.String(xtv) } default: @@ -74240,13 +74862,13 @@ func awsEc2query_deserializeDocumentReservedInstanceReservationValue(v **types.R return nil } -func awsEc2query_deserializeDocumentReservedInstanceReservationValueSet(v *[]*types.ReservedInstanceReservationValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentReservedInstanceReservationValueSet(v *[]types.ReservedInstanceReservationValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReservedInstanceReservationValue + var sv []types.ReservedInstanceReservationValue if *v == nil { - sv = make([]*types.ReservedInstanceReservationValue, 0) + sv = make([]types.ReservedInstanceReservationValue, 0) } else { sv = *v } @@ -74262,11 +74884,13 @@ func awsEc2query_deserializeDocumentReservedInstanceReservationValueSet(v *[]*ty } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ReservedInstanceReservationValue + var col types.ReservedInstanceReservationValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstanceReservationValue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentReservedInstanceReservationValue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -74279,23 +74903,25 @@ func awsEc2query_deserializeDocumentReservedInstanceReservationValueSet(v *[]*ty return nil } -func awsEc2query_deserializeDocumentReservedInstanceReservationValueSetUnwrapped(v *[]*types.ReservedInstanceReservationValue, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReservedInstanceReservationValue +func awsEc2query_deserializeDocumentReservedInstanceReservationValueSetUnwrapped(v *[]types.ReservedInstanceReservationValue, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedInstanceReservationValue if *v == nil { - sv = make([]*types.ReservedInstanceReservationValue, 0) + sv = make([]types.ReservedInstanceReservationValue, 0) } else { sv = *v } switch { default: - var mv *types.ReservedInstanceReservationValue + var mv types.ReservedInstanceReservationValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstanceReservationValue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentReservedInstanceReservationValue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -74336,7 +74962,7 @@ func awsEc2query_deserializeDocumentReservedInstances(v **types.ReservedInstance } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("currencyCode", t.Name.Local): @@ -74366,7 +74992,7 @@ func awsEc2query_deserializeDocumentReservedInstances(v **types.ReservedInstance if err != nil { return err } - sv.Duration = &i64 + sv.Duration = i64 } case strings.EqualFold("end", t.Name.Local): @@ -74383,7 +75009,7 @@ func awsEc2query_deserializeDocumentReservedInstances(v **types.ReservedInstance if err != nil { return err } - sv.End = &t + sv.End = ptr.Time(t) } case strings.EqualFold("fixedPrice", t.Name.Local): @@ -74400,7 +75026,7 @@ func awsEc2query_deserializeDocumentReservedInstances(v **types.ReservedInstance if err != nil { return err } - sv.FixedPrice = ptr.Float32(float32(f64)) + sv.FixedPrice = float32(f64) } case strings.EqualFold("instanceCount", t.Name.Local): @@ -74417,7 +75043,7 @@ func awsEc2query_deserializeDocumentReservedInstances(v **types.ReservedInstance if err != nil { return err } - sv.InstanceCount = ptr.Int32(int32(i64)) + sv.InstanceCount = int32(i64) } case strings.EqualFold("instanceTenancy", t.Name.Local): @@ -74504,7 +75130,7 @@ func awsEc2query_deserializeDocumentReservedInstances(v **types.ReservedInstance } if val != nil { xtv := string(val) - sv.ReservedInstancesId = &xtv + sv.ReservedInstancesId = ptr.String(xtv) } case strings.EqualFold("scope", t.Name.Local): @@ -74534,7 +75160,7 @@ func awsEc2query_deserializeDocumentReservedInstances(v **types.ReservedInstance if err != nil { return err } - sv.Start = &t + sv.Start = ptr.Time(t) } case strings.EqualFold("state", t.Name.Local): @@ -74570,7 +75196,7 @@ func awsEc2query_deserializeDocumentReservedInstances(v **types.ReservedInstance if err != nil { return err } - sv.UsagePrice = ptr.Float32(float32(f64)) + sv.UsagePrice = float32(f64) } default: @@ -74618,7 +75244,7 @@ func awsEc2query_deserializeDocumentReservedInstancesConfiguration(v **types.Res } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("instanceCount", t.Name.Local): @@ -74635,7 +75261,7 @@ func awsEc2query_deserializeDocumentReservedInstancesConfiguration(v **types.Res if err != nil { return err } - sv.InstanceCount = ptr.Int32(int32(i64)) + sv.InstanceCount = int32(i64) } case strings.EqualFold("instanceType", t.Name.Local): @@ -74664,7 +75290,7 @@ func awsEc2query_deserializeDocumentReservedInstancesConfiguration(v **types.Res } if val != nil { xtv := string(val) - sv.Platform = &xtv + sv.Platform = ptr.String(xtv) } case strings.EqualFold("scope", t.Name.Local): @@ -74725,7 +75351,7 @@ func awsEc2query_deserializeDocumentReservedInstancesId(v **types.ReservedInstan } if val != nil { xtv := string(val) - sv.ReservedInstancesId = &xtv + sv.ReservedInstancesId = ptr.String(xtv) } default: @@ -74738,13 +75364,13 @@ func awsEc2query_deserializeDocumentReservedInstancesId(v **types.ReservedInstan return nil } -func awsEc2query_deserializeDocumentReservedInstancesList(v *[]*types.ReservedInstances, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentReservedInstancesList(v *[]types.ReservedInstances, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReservedInstances + var sv []types.ReservedInstances if *v == nil { - sv = make([]*types.ReservedInstances, 0) + sv = make([]types.ReservedInstances, 0) } else { sv = *v } @@ -74760,11 +75386,13 @@ func awsEc2query_deserializeDocumentReservedInstancesList(v *[]*types.ReservedIn } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ReservedInstances + var col types.ReservedInstances nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstances(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentReservedInstances(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -74777,23 +75405,25 @@ func awsEc2query_deserializeDocumentReservedInstancesList(v *[]*types.ReservedIn return nil } -func awsEc2query_deserializeDocumentReservedInstancesListUnwrapped(v *[]*types.ReservedInstances, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReservedInstances +func awsEc2query_deserializeDocumentReservedInstancesListUnwrapped(v *[]types.ReservedInstances, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedInstances if *v == nil { - sv = make([]*types.ReservedInstances, 0) + sv = make([]types.ReservedInstances, 0) } else { sv = *v } switch { default: - var mv *types.ReservedInstances + var mv types.ReservedInstances t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstances(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentReservedInstances(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -74834,7 +75464,7 @@ func awsEc2query_deserializeDocumentReservedInstancesListing(v **types.ReservedI } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("createDate", t.Name.Local): @@ -74851,7 +75481,7 @@ func awsEc2query_deserializeDocumentReservedInstancesListing(v **types.ReservedI if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("instanceCounts", t.Name.Local): @@ -74879,7 +75509,7 @@ func awsEc2query_deserializeDocumentReservedInstancesListing(v **types.ReservedI } if val != nil { xtv := string(val) - sv.ReservedInstancesId = &xtv + sv.ReservedInstancesId = ptr.String(xtv) } case strings.EqualFold("reservedInstancesListingId", t.Name.Local): @@ -74895,7 +75525,7 @@ func awsEc2query_deserializeDocumentReservedInstancesListing(v **types.ReservedI } if val != nil { xtv := string(val) - sv.ReservedInstancesListingId = &xtv + sv.ReservedInstancesListingId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -74924,7 +75554,7 @@ func awsEc2query_deserializeDocumentReservedInstancesListing(v **types.ReservedI } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -74947,7 +75577,7 @@ func awsEc2query_deserializeDocumentReservedInstancesListing(v **types.ReservedI if err != nil { return err } - sv.UpdateDate = &t + sv.UpdateDate = ptr.Time(t) } default: @@ -74960,13 +75590,13 @@ func awsEc2query_deserializeDocumentReservedInstancesListing(v **types.ReservedI return nil } -func awsEc2query_deserializeDocumentReservedInstancesListingList(v *[]*types.ReservedInstancesListing, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentReservedInstancesListingList(v *[]types.ReservedInstancesListing, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReservedInstancesListing + var sv []types.ReservedInstancesListing if *v == nil { - sv = make([]*types.ReservedInstancesListing, 0) + sv = make([]types.ReservedInstancesListing, 0) } else { sv = *v } @@ -74982,11 +75612,13 @@ func awsEc2query_deserializeDocumentReservedInstancesListingList(v *[]*types.Res } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ReservedInstancesListing + var col types.ReservedInstancesListing nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstancesListing(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentReservedInstancesListing(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -74999,23 +75631,25 @@ func awsEc2query_deserializeDocumentReservedInstancesListingList(v *[]*types.Res return nil } -func awsEc2query_deserializeDocumentReservedInstancesListingListUnwrapped(v *[]*types.ReservedInstancesListing, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReservedInstancesListing +func awsEc2query_deserializeDocumentReservedInstancesListingListUnwrapped(v *[]types.ReservedInstancesListing, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedInstancesListing if *v == nil { - sv = make([]*types.ReservedInstancesListing, 0) + sv = make([]types.ReservedInstancesListing, 0) } else { sv = *v } switch { default: - var mv *types.ReservedInstancesListing + var mv types.ReservedInstancesListing t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstancesListing(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentReservedInstancesListing(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -75056,7 +75690,7 @@ func awsEc2query_deserializeDocumentReservedInstancesModification(v **types.Rese } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("createDate", t.Name.Local): @@ -75073,7 +75707,7 @@ func awsEc2query_deserializeDocumentReservedInstancesModification(v **types.Rese if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("effectiveDate", t.Name.Local): @@ -75090,7 +75724,7 @@ func awsEc2query_deserializeDocumentReservedInstancesModification(v **types.Rese if err != nil { return err } - sv.EffectiveDate = &t + sv.EffectiveDate = ptr.Time(t) } case strings.EqualFold("modificationResultSet", t.Name.Local): @@ -75118,7 +75752,7 @@ func awsEc2query_deserializeDocumentReservedInstancesModification(v **types.Rese } if val != nil { xtv := string(val) - sv.ReservedInstancesModificationId = &xtv + sv.ReservedInstancesModificationId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -75134,7 +75768,7 @@ func awsEc2query_deserializeDocumentReservedInstancesModification(v **types.Rese } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("statusMessage", t.Name.Local): @@ -75150,7 +75784,7 @@ func awsEc2query_deserializeDocumentReservedInstancesModification(v **types.Rese } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } case strings.EqualFold("updateDate", t.Name.Local): @@ -75167,7 +75801,7 @@ func awsEc2query_deserializeDocumentReservedInstancesModification(v **types.Rese if err != nil { return err } - sv.UpdateDate = &t + sv.UpdateDate = ptr.Time(t) } default: @@ -75180,13 +75814,13 @@ func awsEc2query_deserializeDocumentReservedInstancesModification(v **types.Rese return nil } -func awsEc2query_deserializeDocumentReservedInstancesModificationList(v *[]*types.ReservedInstancesModification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentReservedInstancesModificationList(v *[]types.ReservedInstancesModification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReservedInstancesModification + var sv []types.ReservedInstancesModification if *v == nil { - sv = make([]*types.ReservedInstancesModification, 0) + sv = make([]types.ReservedInstancesModification, 0) } else { sv = *v } @@ -75202,11 +75836,13 @@ func awsEc2query_deserializeDocumentReservedInstancesModificationList(v *[]*type } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ReservedInstancesModification + var col types.ReservedInstancesModification nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstancesModification(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentReservedInstancesModification(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -75219,23 +75855,25 @@ func awsEc2query_deserializeDocumentReservedInstancesModificationList(v *[]*type return nil } -func awsEc2query_deserializeDocumentReservedInstancesModificationListUnwrapped(v *[]*types.ReservedInstancesModification, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReservedInstancesModification +func awsEc2query_deserializeDocumentReservedInstancesModificationListUnwrapped(v *[]types.ReservedInstancesModification, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedInstancesModification if *v == nil { - sv = make([]*types.ReservedInstancesModification, 0) + sv = make([]types.ReservedInstancesModification, 0) } else { sv = *v } switch { default: - var mv *types.ReservedInstancesModification + var mv types.ReservedInstancesModification t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstancesModification(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentReservedInstancesModification(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -75276,7 +75914,7 @@ func awsEc2query_deserializeDocumentReservedInstancesModificationResult(v **type } if val != nil { xtv := string(val) - sv.ReservedInstancesId = &xtv + sv.ReservedInstancesId = ptr.String(xtv) } case strings.EqualFold("targetConfiguration", t.Name.Local): @@ -75295,13 +75933,13 @@ func awsEc2query_deserializeDocumentReservedInstancesModificationResult(v **type return nil } -func awsEc2query_deserializeDocumentReservedInstancesModificationResultList(v *[]*types.ReservedInstancesModificationResult, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentReservedInstancesModificationResultList(v *[]types.ReservedInstancesModificationResult, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReservedInstancesModificationResult + var sv []types.ReservedInstancesModificationResult if *v == nil { - sv = make([]*types.ReservedInstancesModificationResult, 0) + sv = make([]types.ReservedInstancesModificationResult, 0) } else { sv = *v } @@ -75317,11 +75955,13 @@ func awsEc2query_deserializeDocumentReservedInstancesModificationResultList(v *[ } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ReservedInstancesModificationResult + var col types.ReservedInstancesModificationResult nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstancesModificationResult(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentReservedInstancesModificationResult(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -75334,23 +75974,25 @@ func awsEc2query_deserializeDocumentReservedInstancesModificationResultList(v *[ return nil } -func awsEc2query_deserializeDocumentReservedInstancesModificationResultListUnwrapped(v *[]*types.ReservedInstancesModificationResult, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReservedInstancesModificationResult +func awsEc2query_deserializeDocumentReservedInstancesModificationResultListUnwrapped(v *[]types.ReservedInstancesModificationResult, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedInstancesModificationResult if *v == nil { - sv = make([]*types.ReservedInstancesModificationResult, 0) + sv = make([]types.ReservedInstancesModificationResult, 0) } else { sv = *v } switch { default: - var mv *types.ReservedInstancesModificationResult + var mv types.ReservedInstancesModificationResult t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstancesModificationResult(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentReservedInstancesModificationResult(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -75391,7 +76033,7 @@ func awsEc2query_deserializeDocumentReservedInstancesOffering(v **types.Reserved } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("currencyCode", t.Name.Local): @@ -75421,7 +76063,7 @@ func awsEc2query_deserializeDocumentReservedInstancesOffering(v **types.Reserved if err != nil { return err } - sv.Duration = &i64 + sv.Duration = i64 } case strings.EqualFold("fixedPrice", t.Name.Local): @@ -75438,7 +76080,7 @@ func awsEc2query_deserializeDocumentReservedInstancesOffering(v **types.Reserved if err != nil { return err } - sv.FixedPrice = ptr.Float32(float32(f64)) + sv.FixedPrice = float32(f64) } case strings.EqualFold("instanceTenancy", t.Name.Local): @@ -75480,7 +76122,7 @@ func awsEc2query_deserializeDocumentReservedInstancesOffering(v **types.Reserved if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Marketplace = &xtv + sv.Marketplace = xtv } case strings.EqualFold("offeringClass", t.Name.Local): @@ -75547,7 +76189,7 @@ func awsEc2query_deserializeDocumentReservedInstancesOffering(v **types.Reserved } if val != nil { xtv := string(val) - sv.ReservedInstancesOfferingId = &xtv + sv.ReservedInstancesOfferingId = ptr.String(xtv) } case strings.EqualFold("scope", t.Name.Local): @@ -75577,7 +76219,7 @@ func awsEc2query_deserializeDocumentReservedInstancesOffering(v **types.Reserved if err != nil { return err } - sv.UsagePrice = ptr.Float32(float32(f64)) + sv.UsagePrice = float32(f64) } default: @@ -75590,13 +76232,13 @@ func awsEc2query_deserializeDocumentReservedInstancesOffering(v **types.Reserved return nil } -func awsEc2query_deserializeDocumentReservedInstancesOfferingList(v *[]*types.ReservedInstancesOffering, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentReservedInstancesOfferingList(v *[]types.ReservedInstancesOffering, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReservedInstancesOffering + var sv []types.ReservedInstancesOffering if *v == nil { - sv = make([]*types.ReservedInstancesOffering, 0) + sv = make([]types.ReservedInstancesOffering, 0) } else { sv = *v } @@ -75612,11 +76254,13 @@ func awsEc2query_deserializeDocumentReservedInstancesOfferingList(v *[]*types.Re } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ReservedInstancesOffering + var col types.ReservedInstancesOffering nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstancesOffering(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentReservedInstancesOffering(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -75629,35 +76273,37 @@ func awsEc2query_deserializeDocumentReservedInstancesOfferingList(v *[]*types.Re return nil } -func awsEc2query_deserializeDocumentReservedInstancesOfferingListUnwrapped(v *[]*types.ReservedInstancesOffering, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReservedInstancesOffering +func awsEc2query_deserializeDocumentReservedInstancesOfferingListUnwrapped(v *[]types.ReservedInstancesOffering, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedInstancesOffering if *v == nil { - sv = make([]*types.ReservedInstancesOffering, 0) + sv = make([]types.ReservedInstancesOffering, 0) } else { sv = *v } switch { default: - var mv *types.ReservedInstancesOffering + var mv types.ReservedInstancesOffering t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstancesOffering(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentReservedInstancesOffering(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentReservedIntancesIds(v *[]*types.ReservedInstancesId, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentReservedIntancesIds(v *[]types.ReservedInstancesId, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReservedInstancesId + var sv []types.ReservedInstancesId if *v == nil { - sv = make([]*types.ReservedInstancesId, 0) + sv = make([]types.ReservedInstancesId, 0) } else { sv = *v } @@ -75673,11 +76319,13 @@ func awsEc2query_deserializeDocumentReservedIntancesIds(v *[]*types.ReservedInst } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ReservedInstancesId + var col types.ReservedInstancesId nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstancesId(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentReservedInstancesId(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -75690,23 +76338,25 @@ func awsEc2query_deserializeDocumentReservedIntancesIds(v *[]*types.ReservedInst return nil } -func awsEc2query_deserializeDocumentReservedIntancesIdsUnwrapped(v *[]*types.ReservedInstancesId, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReservedInstancesId +func awsEc2query_deserializeDocumentReservedIntancesIdsUnwrapped(v *[]types.ReservedInstancesId, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedInstancesId if *v == nil { - sv = make([]*types.ReservedInstancesId, 0) + sv = make([]types.ReservedInstancesId, 0) } else { sv = *v } switch { default: - var mv *types.ReservedInstancesId + var mv types.ReservedInstancesId t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentReservedInstancesId(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentReservedInstancesId(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -75760,7 +76410,7 @@ func awsEc2query_deserializeDocumentResponseError(v **types.ResponseError, decod } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -75773,13 +76423,13 @@ func awsEc2query_deserializeDocumentResponseError(v **types.ResponseError, decod return nil } -func awsEc2query_deserializeDocumentResponseHostIdList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentResponseHostIdList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -75797,20 +76447,17 @@ func awsEc2query_deserializeDocumentResponseHostIdList(v *[]*string, decoder smi decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -75823,17 +76470,17 @@ func awsEc2query_deserializeDocumentResponseHostIdList(v *[]*string, decoder smi return nil } -func awsEc2query_deserializeDocumentResponseHostIdListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentResponseHostIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -75841,27 +76488,24 @@ func awsEc2query_deserializeDocumentResponseHostIdListUnwrapped(v *[]*string, de return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentResponseHostIdSet(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentResponseHostIdSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -75879,20 +76523,17 @@ func awsEc2query_deserializeDocumentResponseHostIdSet(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -75905,17 +76546,17 @@ func awsEc2query_deserializeDocumentResponseHostIdSet(v *[]*string, decoder smit return nil } -func awsEc2query_deserializeDocumentResponseHostIdSetUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentResponseHostIdSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -75923,14 +76564,11 @@ func awsEc2query_deserializeDocumentResponseHostIdSetUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -75996,7 +76634,7 @@ func awsEc2query_deserializeDocumentResponseLaunchTemplateData(v **types.Respons if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DisableApiTermination = &xtv + sv.DisableApiTermination = xtv } case strings.EqualFold("ebsOptimized", t.Name.Local): @@ -76012,7 +76650,7 @@ func awsEc2query_deserializeDocumentResponseLaunchTemplateData(v **types.Respons if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsOptimized = &xtv + sv.EbsOptimized = xtv } case strings.EqualFold("elasticGpuSpecificationSet", t.Name.Local): @@ -76058,7 +76696,7 @@ func awsEc2query_deserializeDocumentResponseLaunchTemplateData(v **types.Respons } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } case strings.EqualFold("instanceInitiatedShutdownBehavior", t.Name.Local): @@ -76106,7 +76744,7 @@ func awsEc2query_deserializeDocumentResponseLaunchTemplateData(v **types.Respons } if val != nil { xtv := string(val) - sv.KernelId = &xtv + sv.KernelId = ptr.String(xtv) } case strings.EqualFold("keyName", t.Name.Local): @@ -76122,7 +76760,7 @@ func awsEc2query_deserializeDocumentResponseLaunchTemplateData(v **types.Respons } if val != nil { xtv := string(val) - sv.KeyName = &xtv + sv.KeyName = ptr.String(xtv) } case strings.EqualFold("licenseSet", t.Name.Local): @@ -76168,7 +76806,7 @@ func awsEc2query_deserializeDocumentResponseLaunchTemplateData(v **types.Respons } if val != nil { xtv := string(val) - sv.RamDiskId = &xtv + sv.RamDiskId = ptr.String(xtv) } case strings.EqualFold("securityGroupIdSet", t.Name.Local): @@ -76202,7 +76840,7 @@ func awsEc2query_deserializeDocumentResponseLaunchTemplateData(v **types.Respons } if val != nil { xtv := string(val) - sv.UserData = &xtv + sv.UserData = ptr.String(xtv) } default: @@ -76326,7 +76964,7 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.CarrierGatewayId = &xtv + sv.CarrierGatewayId = ptr.String(xtv) } case strings.EqualFold("destinationCidrBlock", t.Name.Local): @@ -76342,7 +76980,7 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.DestinationCidrBlock = &xtv + sv.DestinationCidrBlock = ptr.String(xtv) } case strings.EqualFold("destinationIpv6CidrBlock", t.Name.Local): @@ -76358,7 +76996,7 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.DestinationIpv6CidrBlock = &xtv + sv.DestinationIpv6CidrBlock = ptr.String(xtv) } case strings.EqualFold("destinationPrefixListId", t.Name.Local): @@ -76374,7 +77012,7 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.DestinationPrefixListId = &xtv + sv.DestinationPrefixListId = ptr.String(xtv) } case strings.EqualFold("egressOnlyInternetGatewayId", t.Name.Local): @@ -76390,7 +77028,7 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.EgressOnlyInternetGatewayId = &xtv + sv.EgressOnlyInternetGatewayId = ptr.String(xtv) } case strings.EqualFold("gatewayId", t.Name.Local): @@ -76406,7 +77044,7 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.GatewayId = &xtv + sv.GatewayId = ptr.String(xtv) } case strings.EqualFold("instanceId", t.Name.Local): @@ -76422,7 +77060,7 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("instanceOwnerId", t.Name.Local): @@ -76438,7 +77076,7 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.InstanceOwnerId = &xtv + sv.InstanceOwnerId = ptr.String(xtv) } case strings.EqualFold("localGatewayId", t.Name.Local): @@ -76454,7 +77092,7 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.LocalGatewayId = &xtv + sv.LocalGatewayId = ptr.String(xtv) } case strings.EqualFold("natGatewayId", t.Name.Local): @@ -76470,7 +77108,7 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.NatGatewayId = &xtv + sv.NatGatewayId = ptr.String(xtv) } case strings.EqualFold("networkInterfaceId", t.Name.Local): @@ -76486,7 +77124,7 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } case strings.EqualFold("origin", t.Name.Local): @@ -76528,7 +77166,7 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.TransitGatewayId = &xtv + sv.TransitGatewayId = ptr.String(xtv) } case strings.EqualFold("vpcPeeringConnectionId", t.Name.Local): @@ -76544,7 +77182,7 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.VpcPeeringConnectionId = &xtv + sv.VpcPeeringConnectionId = ptr.String(xtv) } default: @@ -76557,13 +77195,13 @@ func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.Nod return nil } -func awsEc2query_deserializeDocumentRouteList(v *[]*types.Route, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentRouteList(v *[]types.Route, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Route + var sv []types.Route if *v == nil { - sv = make([]*types.Route, 0) + sv = make([]types.Route, 0) } else { sv = *v } @@ -76579,11 +77217,13 @@ func awsEc2query_deserializeDocumentRouteList(v *[]*types.Route, decoder smithyx } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Route + var col types.Route nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentRoute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentRoute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -76596,23 +77236,25 @@ func awsEc2query_deserializeDocumentRouteList(v *[]*types.Route, decoder smithyx return nil } -func awsEc2query_deserializeDocumentRouteListUnwrapped(v *[]*types.Route, decoder smithyxml.NodeDecoder) error { - var sv []*types.Route +func awsEc2query_deserializeDocumentRouteListUnwrapped(v *[]types.Route, decoder smithyxml.NodeDecoder) error { + var sv []types.Route if *v == nil { - sv = make([]*types.Route, 0) + sv = make([]types.Route, 0) } else { sv = *v } switch { default: - var mv *types.Route + var mv types.Route t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentRoute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentRoute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -76659,7 +77301,7 @@ func awsEc2query_deserializeDocumentRouteTable(v **types.RouteTable, decoder smi } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("propagatingVgwSet", t.Name.Local): @@ -76687,7 +77329,7 @@ func awsEc2query_deserializeDocumentRouteTable(v **types.RouteTable, decoder smi } if val != nil { xtv := string(val) - sv.RouteTableId = &xtv + sv.RouteTableId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -76709,7 +77351,7 @@ func awsEc2query_deserializeDocumentRouteTable(v **types.RouteTable, decoder smi } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -76763,7 +77405,7 @@ func awsEc2query_deserializeDocumentRouteTableAssociation(v **types.RouteTableAs } if val != nil { xtv := string(val) - sv.GatewayId = &xtv + sv.GatewayId = ptr.String(xtv) } case strings.EqualFold("main", t.Name.Local): @@ -76779,7 +77421,7 @@ func awsEc2query_deserializeDocumentRouteTableAssociation(v **types.RouteTableAs if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Main = &xtv + sv.Main = xtv } case strings.EqualFold("routeTableAssociationId", t.Name.Local): @@ -76795,7 +77437,7 @@ func awsEc2query_deserializeDocumentRouteTableAssociation(v **types.RouteTableAs } if val != nil { xtv := string(val) - sv.RouteTableAssociationId = &xtv + sv.RouteTableAssociationId = ptr.String(xtv) } case strings.EqualFold("routeTableId", t.Name.Local): @@ -76811,7 +77453,7 @@ func awsEc2query_deserializeDocumentRouteTableAssociation(v **types.RouteTableAs } if val != nil { xtv := string(val) - sv.RouteTableId = &xtv + sv.RouteTableId = ptr.String(xtv) } case strings.EqualFold("subnetId", t.Name.Local): @@ -76827,7 +77469,7 @@ func awsEc2query_deserializeDocumentRouteTableAssociation(v **types.RouteTableAs } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } default: @@ -76840,13 +77482,13 @@ func awsEc2query_deserializeDocumentRouteTableAssociation(v **types.RouteTableAs return nil } -func awsEc2query_deserializeDocumentRouteTableAssociationList(v *[]*types.RouteTableAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentRouteTableAssociationList(v *[]types.RouteTableAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RouteTableAssociation + var sv []types.RouteTableAssociation if *v == nil { - sv = make([]*types.RouteTableAssociation, 0) + sv = make([]types.RouteTableAssociation, 0) } else { sv = *v } @@ -76862,11 +77504,13 @@ func awsEc2query_deserializeDocumentRouteTableAssociationList(v *[]*types.RouteT } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.RouteTableAssociation + var col types.RouteTableAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentRouteTableAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentRouteTableAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -76879,23 +77523,25 @@ func awsEc2query_deserializeDocumentRouteTableAssociationList(v *[]*types.RouteT return nil } -func awsEc2query_deserializeDocumentRouteTableAssociationListUnwrapped(v *[]*types.RouteTableAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.RouteTableAssociation +func awsEc2query_deserializeDocumentRouteTableAssociationListUnwrapped(v *[]types.RouteTableAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.RouteTableAssociation if *v == nil { - sv = make([]*types.RouteTableAssociation, 0) + sv = make([]types.RouteTableAssociation, 0) } else { sv = *v } switch { default: - var mv *types.RouteTableAssociation + var mv types.RouteTableAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentRouteTableAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentRouteTableAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -76949,7 +77595,7 @@ func awsEc2query_deserializeDocumentRouteTableAssociationState(v **types.RouteTa } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } default: @@ -76962,13 +77608,13 @@ func awsEc2query_deserializeDocumentRouteTableAssociationState(v **types.RouteTa return nil } -func awsEc2query_deserializeDocumentRouteTableList(v *[]*types.RouteTable, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentRouteTableList(v *[]types.RouteTable, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RouteTable + var sv []types.RouteTable if *v == nil { - sv = make([]*types.RouteTable, 0) + sv = make([]types.RouteTable, 0) } else { sv = *v } @@ -76984,11 +77630,13 @@ func awsEc2query_deserializeDocumentRouteTableList(v *[]*types.RouteTable, decod } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.RouteTable + var col types.RouteTable nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentRouteTable(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentRouteTable(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -77001,23 +77649,25 @@ func awsEc2query_deserializeDocumentRouteTableList(v *[]*types.RouteTable, decod return nil } -func awsEc2query_deserializeDocumentRouteTableListUnwrapped(v *[]*types.RouteTable, decoder smithyxml.NodeDecoder) error { - var sv []*types.RouteTable +func awsEc2query_deserializeDocumentRouteTableListUnwrapped(v *[]types.RouteTable, decoder smithyxml.NodeDecoder) error { + var sv []types.RouteTable if *v == nil { - sv = make([]*types.RouteTable, 0) + sv = make([]types.RouteTable, 0) } else { sv = *v } switch { default: - var mv *types.RouteTable + var mv types.RouteTable t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentRouteTable(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentRouteTable(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -77058,7 +77708,7 @@ func awsEc2query_deserializeDocumentRunInstancesMonitoringEnabled(v **types.RunI if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } default: @@ -77106,7 +77756,7 @@ func awsEc2query_deserializeDocumentS3Storage(v **types.S3Storage, decoder smith } if val != nil { xtv := string(val) - sv.AWSAccessKeyId = &xtv + sv.AWSAccessKeyId = ptr.String(xtv) } case strings.EqualFold("bucket", t.Name.Local): @@ -77122,7 +77772,7 @@ func awsEc2query_deserializeDocumentS3Storage(v **types.S3Storage, decoder smith } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("prefix", t.Name.Local): @@ -77138,7 +77788,7 @@ func awsEc2query_deserializeDocumentS3Storage(v **types.S3Storage, decoder smith } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("uploadPolicy", t.Name.Local): @@ -77175,7 +77825,7 @@ func awsEc2query_deserializeDocumentS3Storage(v **types.S3Storage, decoder smith } if val != nil { xtv := string(val) - sv.UploadPolicySignature = &xtv + sv.UploadPolicySignature = ptr.String(xtv) } default: @@ -77223,7 +77873,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("createDate", t.Name.Local): @@ -77240,7 +77890,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("hourlyPrice", t.Name.Local): @@ -77256,7 +77906,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc } if val != nil { xtv := string(val) - sv.HourlyPrice = &xtv + sv.HourlyPrice = ptr.String(xtv) } case strings.EqualFold("instanceCount", t.Name.Local): @@ -77273,7 +77923,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc if err != nil { return err } - sv.InstanceCount = ptr.Int32(int32(i64)) + sv.InstanceCount = int32(i64) } case strings.EqualFold("instanceType", t.Name.Local): @@ -77289,7 +77939,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc } if val != nil { xtv := string(val) - sv.InstanceType = &xtv + sv.InstanceType = ptr.String(xtv) } case strings.EqualFold("networkPlatform", t.Name.Local): @@ -77305,7 +77955,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc } if val != nil { xtv := string(val) - sv.NetworkPlatform = &xtv + sv.NetworkPlatform = ptr.String(xtv) } case strings.EqualFold("nextSlotStartTime", t.Name.Local): @@ -77322,7 +77972,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc if err != nil { return err } - sv.NextSlotStartTime = &t + sv.NextSlotStartTime = ptr.Time(t) } case strings.EqualFold("platform", t.Name.Local): @@ -77338,7 +77988,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc } if val != nil { xtv := string(val) - sv.Platform = &xtv + sv.Platform = ptr.String(xtv) } case strings.EqualFold("previousSlotEndTime", t.Name.Local): @@ -77355,7 +78005,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc if err != nil { return err } - sv.PreviousSlotEndTime = &t + sv.PreviousSlotEndTime = ptr.Time(t) } case strings.EqualFold("recurrence", t.Name.Local): @@ -77377,7 +78027,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc } if val != nil { xtv := string(val) - sv.ScheduledInstanceId = &xtv + sv.ScheduledInstanceId = ptr.String(xtv) } case strings.EqualFold("slotDurationInHours", t.Name.Local): @@ -77394,7 +78044,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc if err != nil { return err } - sv.SlotDurationInHours = ptr.Int32(int32(i64)) + sv.SlotDurationInHours = int32(i64) } case strings.EqualFold("termEndDate", t.Name.Local): @@ -77411,7 +78061,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc if err != nil { return err } - sv.TermEndDate = &t + sv.TermEndDate = ptr.Time(t) } case strings.EqualFold("termStartDate", t.Name.Local): @@ -77428,7 +78078,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc if err != nil { return err } - sv.TermStartDate = &t + sv.TermStartDate = ptr.Time(t) } case strings.EqualFold("totalScheduledInstanceHours", t.Name.Local): @@ -77445,7 +78095,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc if err != nil { return err } - sv.TotalScheduledInstanceHours = ptr.Int32(int32(i64)) + sv.TotalScheduledInstanceHours = int32(i64) } default: @@ -77493,7 +78143,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("availableInstanceCount", t.Name.Local): @@ -77510,7 +78160,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche if err != nil { return err } - sv.AvailableInstanceCount = ptr.Int32(int32(i64)) + sv.AvailableInstanceCount = int32(i64) } case strings.EqualFold("firstSlotStartTime", t.Name.Local): @@ -77527,7 +78177,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche if err != nil { return err } - sv.FirstSlotStartTime = &t + sv.FirstSlotStartTime = ptr.Time(t) } case strings.EqualFold("hourlyPrice", t.Name.Local): @@ -77543,7 +78193,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche } if val != nil { xtv := string(val) - sv.HourlyPrice = &xtv + sv.HourlyPrice = ptr.String(xtv) } case strings.EqualFold("instanceType", t.Name.Local): @@ -77559,7 +78209,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche } if val != nil { xtv := string(val) - sv.InstanceType = &xtv + sv.InstanceType = ptr.String(xtv) } case strings.EqualFold("maxTermDurationInDays", t.Name.Local): @@ -77576,7 +78226,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche if err != nil { return err } - sv.MaxTermDurationInDays = ptr.Int32(int32(i64)) + sv.MaxTermDurationInDays = int32(i64) } case strings.EqualFold("minTermDurationInDays", t.Name.Local): @@ -77593,7 +78243,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche if err != nil { return err } - sv.MinTermDurationInDays = ptr.Int32(int32(i64)) + sv.MinTermDurationInDays = int32(i64) } case strings.EqualFold("networkPlatform", t.Name.Local): @@ -77609,7 +78259,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche } if val != nil { xtv := string(val) - sv.NetworkPlatform = &xtv + sv.NetworkPlatform = ptr.String(xtv) } case strings.EqualFold("platform", t.Name.Local): @@ -77625,7 +78275,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche } if val != nil { xtv := string(val) - sv.Platform = &xtv + sv.Platform = ptr.String(xtv) } case strings.EqualFold("purchaseToken", t.Name.Local): @@ -77641,7 +78291,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche } if val != nil { xtv := string(val) - sv.PurchaseToken = &xtv + sv.PurchaseToken = ptr.String(xtv) } case strings.EqualFold("recurrence", t.Name.Local): @@ -77664,7 +78314,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche if err != nil { return err } - sv.SlotDurationInHours = ptr.Int32(int32(i64)) + sv.SlotDurationInHours = int32(i64) } case strings.EqualFold("totalScheduledInstanceHours", t.Name.Local): @@ -77681,7 +78331,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche if err != nil { return err } - sv.TotalScheduledInstanceHours = ptr.Int32(int32(i64)) + sv.TotalScheduledInstanceHours = int32(i64) } default: @@ -77694,13 +78344,13 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche return nil } -func awsEc2query_deserializeDocumentScheduledInstanceAvailabilitySet(v *[]*types.ScheduledInstanceAvailability, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentScheduledInstanceAvailabilitySet(v *[]types.ScheduledInstanceAvailability, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ScheduledInstanceAvailability + var sv []types.ScheduledInstanceAvailability if *v == nil { - sv = make([]*types.ScheduledInstanceAvailability, 0) + sv = make([]types.ScheduledInstanceAvailability, 0) } else { sv = *v } @@ -77716,11 +78366,13 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailabilitySet(v *[]*types } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ScheduledInstanceAvailability + var col types.ScheduledInstanceAvailability nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentScheduledInstanceAvailability(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentScheduledInstanceAvailability(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -77733,23 +78385,25 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailabilitySet(v *[]*types return nil } -func awsEc2query_deserializeDocumentScheduledInstanceAvailabilitySetUnwrapped(v *[]*types.ScheduledInstanceAvailability, decoder smithyxml.NodeDecoder) error { - var sv []*types.ScheduledInstanceAvailability +func awsEc2query_deserializeDocumentScheduledInstanceAvailabilitySetUnwrapped(v *[]types.ScheduledInstanceAvailability, decoder smithyxml.NodeDecoder) error { + var sv []types.ScheduledInstanceAvailability if *v == nil { - sv = make([]*types.ScheduledInstanceAvailability, 0) + sv = make([]types.ScheduledInstanceAvailability, 0) } else { sv = *v } switch { default: - var mv *types.ScheduledInstanceAvailability + var mv types.ScheduledInstanceAvailability t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentScheduledInstanceAvailability(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentScheduledInstanceAvailability(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -77790,7 +78444,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceRecurrence(v **types.Schedu } if val != nil { xtv := string(val) - sv.Frequency = &xtv + sv.Frequency = ptr.String(xtv) } case strings.EqualFold("interval", t.Name.Local): @@ -77807,7 +78461,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceRecurrence(v **types.Schedu if err != nil { return err } - sv.Interval = ptr.Int32(int32(i64)) + sv.Interval = int32(i64) } case strings.EqualFold("occurrenceDaySet", t.Name.Local): @@ -77829,7 +78483,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceRecurrence(v **types.Schedu if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.OccurrenceRelativeToEnd = &xtv + sv.OccurrenceRelativeToEnd = xtv } case strings.EqualFold("occurrenceUnit", t.Name.Local): @@ -77845,7 +78499,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceRecurrence(v **types.Schedu } if val != nil { xtv := string(val) - sv.OccurrenceUnit = &xtv + sv.OccurrenceUnit = ptr.String(xtv) } default: @@ -77858,13 +78512,13 @@ func awsEc2query_deserializeDocumentScheduledInstanceRecurrence(v **types.Schedu return nil } -func awsEc2query_deserializeDocumentScheduledInstanceSet(v *[]*types.ScheduledInstance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentScheduledInstanceSet(v *[]types.ScheduledInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ScheduledInstance + var sv []types.ScheduledInstance if *v == nil { - sv = make([]*types.ScheduledInstance, 0) + sv = make([]types.ScheduledInstance, 0) } else { sv = *v } @@ -77880,11 +78534,13 @@ func awsEc2query_deserializeDocumentScheduledInstanceSet(v *[]*types.ScheduledIn } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ScheduledInstance + var col types.ScheduledInstance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentScheduledInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentScheduledInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -77897,23 +78553,25 @@ func awsEc2query_deserializeDocumentScheduledInstanceSet(v *[]*types.ScheduledIn return nil } -func awsEc2query_deserializeDocumentScheduledInstanceSetUnwrapped(v *[]*types.ScheduledInstance, decoder smithyxml.NodeDecoder) error { - var sv []*types.ScheduledInstance +func awsEc2query_deserializeDocumentScheduledInstanceSetUnwrapped(v *[]types.ScheduledInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.ScheduledInstance if *v == nil { - sv = make([]*types.ScheduledInstance, 0) + sv = make([]types.ScheduledInstance, 0) } else { sv = *v } switch { default: - var mv *types.ScheduledInstance + var mv types.ScheduledInstance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentScheduledInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentScheduledInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -77954,7 +78612,7 @@ func awsEc2query_deserializeDocumentSecurityGroup(v **types.SecurityGroup, decod } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("groupId", t.Name.Local): @@ -77970,7 +78628,7 @@ func awsEc2query_deserializeDocumentSecurityGroup(v **types.SecurityGroup, decod } if val != nil { xtv := string(val) - sv.GroupId = &xtv + sv.GroupId = ptr.String(xtv) } case strings.EqualFold("groupName", t.Name.Local): @@ -77986,7 +78644,7 @@ func awsEc2query_deserializeDocumentSecurityGroup(v **types.SecurityGroup, decod } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } case strings.EqualFold("ipPermissions", t.Name.Local): @@ -78014,7 +78672,7 @@ func awsEc2query_deserializeDocumentSecurityGroup(v **types.SecurityGroup, decod } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -78036,7 +78694,7 @@ func awsEc2query_deserializeDocumentSecurityGroup(v **types.SecurityGroup, decod } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -78084,7 +78742,7 @@ func awsEc2query_deserializeDocumentSecurityGroupIdentifier(v **types.SecurityGr } if val != nil { xtv := string(val) - sv.GroupId = &xtv + sv.GroupId = ptr.String(xtv) } case strings.EqualFold("groupName", t.Name.Local): @@ -78100,7 +78758,7 @@ func awsEc2query_deserializeDocumentSecurityGroupIdentifier(v **types.SecurityGr } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } default: @@ -78113,13 +78771,13 @@ func awsEc2query_deserializeDocumentSecurityGroupIdentifier(v **types.SecurityGr return nil } -func awsEc2query_deserializeDocumentSecurityGroupIdStringList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSecurityGroupIdStringList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -78137,20 +78795,17 @@ func awsEc2query_deserializeDocumentSecurityGroupIdStringList(v *[]*string, deco decoder = memberDecoder for { if strings.EqualFold("SecurityGroupId", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -78163,17 +78818,17 @@ func awsEc2query_deserializeDocumentSecurityGroupIdStringList(v *[]*string, deco return nil } -func awsEc2query_deserializeDocumentSecurityGroupIdStringListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentSecurityGroupIdStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -78181,27 +78836,24 @@ func awsEc2query_deserializeDocumentSecurityGroupIdStringListUnwrapped(v *[]*str return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentSecurityGroupList(v *[]*types.SecurityGroup, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSecurityGroupList(v *[]types.SecurityGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SecurityGroup + var sv []types.SecurityGroup if *v == nil { - sv = make([]*types.SecurityGroup, 0) + sv = make([]types.SecurityGroup, 0) } else { sv = *v } @@ -78217,11 +78869,13 @@ func awsEc2query_deserializeDocumentSecurityGroupList(v *[]*types.SecurityGroup, } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SecurityGroup + var col types.SecurityGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSecurityGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -78234,23 +78888,25 @@ func awsEc2query_deserializeDocumentSecurityGroupList(v *[]*types.SecurityGroup, return nil } -func awsEc2query_deserializeDocumentSecurityGroupListUnwrapped(v *[]*types.SecurityGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.SecurityGroup +func awsEc2query_deserializeDocumentSecurityGroupListUnwrapped(v *[]types.SecurityGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.SecurityGroup if *v == nil { - sv = make([]*types.SecurityGroup, 0) + sv = make([]types.SecurityGroup, 0) } else { sv = *v } switch { default: - var mv *types.SecurityGroup + var mv types.SecurityGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSecurityGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -78291,7 +78947,7 @@ func awsEc2query_deserializeDocumentSecurityGroupReference(v **types.SecurityGro } if val != nil { xtv := string(val) - sv.GroupId = &xtv + sv.GroupId = ptr.String(xtv) } case strings.EqualFold("referencingVpcId", t.Name.Local): @@ -78307,7 +78963,7 @@ func awsEc2query_deserializeDocumentSecurityGroupReference(v **types.SecurityGro } if val != nil { xtv := string(val) - sv.ReferencingVpcId = &xtv + sv.ReferencingVpcId = ptr.String(xtv) } case strings.EqualFold("vpcPeeringConnectionId", t.Name.Local): @@ -78323,7 +78979,7 @@ func awsEc2query_deserializeDocumentSecurityGroupReference(v **types.SecurityGro } if val != nil { xtv := string(val) - sv.VpcPeeringConnectionId = &xtv + sv.VpcPeeringConnectionId = ptr.String(xtv) } default: @@ -78336,13 +78992,13 @@ func awsEc2query_deserializeDocumentSecurityGroupReference(v **types.SecurityGro return nil } -func awsEc2query_deserializeDocumentSecurityGroupReferences(v *[]*types.SecurityGroupReference, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSecurityGroupReferences(v *[]types.SecurityGroupReference, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SecurityGroupReference + var sv []types.SecurityGroupReference if *v == nil { - sv = make([]*types.SecurityGroupReference, 0) + sv = make([]types.SecurityGroupReference, 0) } else { sv = *v } @@ -78358,11 +79014,13 @@ func awsEc2query_deserializeDocumentSecurityGroupReferences(v *[]*types.Security } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SecurityGroupReference + var col types.SecurityGroupReference nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSecurityGroupReference(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSecurityGroupReference(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -78375,23 +79033,25 @@ func awsEc2query_deserializeDocumentSecurityGroupReferences(v *[]*types.Security return nil } -func awsEc2query_deserializeDocumentSecurityGroupReferencesUnwrapped(v *[]*types.SecurityGroupReference, decoder smithyxml.NodeDecoder) error { - var sv []*types.SecurityGroupReference +func awsEc2query_deserializeDocumentSecurityGroupReferencesUnwrapped(v *[]types.SecurityGroupReference, decoder smithyxml.NodeDecoder) error { + var sv []types.SecurityGroupReference if *v == nil { - sv = make([]*types.SecurityGroupReference, 0) + sv = make([]types.SecurityGroupReference, 0) } else { sv = *v } switch { default: - var mv *types.SecurityGroupReference + var mv types.SecurityGroupReference t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSecurityGroupReference(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSecurityGroupReference(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -78432,7 +79092,7 @@ func awsEc2query_deserializeDocumentServiceConfiguration(v **types.ServiceConfig if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AcceptanceRequired = &xtv + sv.AcceptanceRequired = xtv } case strings.EqualFold("availabilityZoneSet", t.Name.Local): @@ -78460,7 +79120,7 @@ func awsEc2query_deserializeDocumentServiceConfiguration(v **types.ServiceConfig if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ManagesVpcEndpoints = &xtv + sv.ManagesVpcEndpoints = xtv } case strings.EqualFold("networkLoadBalancerArnSet", t.Name.Local): @@ -78482,7 +79142,7 @@ func awsEc2query_deserializeDocumentServiceConfiguration(v **types.ServiceConfig } if val != nil { xtv := string(val) - sv.PrivateDnsName = &xtv + sv.PrivateDnsName = ptr.String(xtv) } case strings.EqualFold("privateDnsNameConfiguration", t.Name.Local): @@ -78504,7 +79164,7 @@ func awsEc2query_deserializeDocumentServiceConfiguration(v **types.ServiceConfig } if val != nil { xtv := string(val) - sv.ServiceId = &xtv + sv.ServiceId = ptr.String(xtv) } case strings.EqualFold("serviceName", t.Name.Local): @@ -78520,7 +79180,7 @@ func awsEc2query_deserializeDocumentServiceConfiguration(v **types.ServiceConfig } if val != nil { xtv := string(val) - sv.ServiceName = &xtv + sv.ServiceName = ptr.String(xtv) } case strings.EqualFold("serviceState", t.Name.Local): @@ -78558,13 +79218,13 @@ func awsEc2query_deserializeDocumentServiceConfiguration(v **types.ServiceConfig return nil } -func awsEc2query_deserializeDocumentServiceConfigurationSet(v *[]*types.ServiceConfiguration, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentServiceConfigurationSet(v *[]types.ServiceConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ServiceConfiguration + var sv []types.ServiceConfiguration if *v == nil { - sv = make([]*types.ServiceConfiguration, 0) + sv = make([]types.ServiceConfiguration, 0) } else { sv = *v } @@ -78580,11 +79240,13 @@ func awsEc2query_deserializeDocumentServiceConfigurationSet(v *[]*types.ServiceC } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ServiceConfiguration + var col types.ServiceConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentServiceConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentServiceConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -78597,23 +79259,25 @@ func awsEc2query_deserializeDocumentServiceConfigurationSet(v *[]*types.ServiceC return nil } -func awsEc2query_deserializeDocumentServiceConfigurationSetUnwrapped(v *[]*types.ServiceConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.ServiceConfiguration +func awsEc2query_deserializeDocumentServiceConfigurationSetUnwrapped(v *[]types.ServiceConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.ServiceConfiguration if *v == nil { - sv = make([]*types.ServiceConfiguration, 0) + sv = make([]types.ServiceConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.ServiceConfiguration + var mv types.ServiceConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentServiceConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentServiceConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -78654,7 +79318,7 @@ func awsEc2query_deserializeDocumentServiceDetail(v **types.ServiceDetail, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AcceptanceRequired = &xtv + sv.AcceptanceRequired = xtv } case strings.EqualFold("availabilityZoneSet", t.Name.Local): @@ -78682,7 +79346,7 @@ func awsEc2query_deserializeDocumentServiceDetail(v **types.ServiceDetail, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ManagesVpcEndpoints = &xtv + sv.ManagesVpcEndpoints = xtv } case strings.EqualFold("owner", t.Name.Local): @@ -78698,7 +79362,7 @@ func awsEc2query_deserializeDocumentServiceDetail(v **types.ServiceDetail, decod } if val != nil { xtv := string(val) - sv.Owner = &xtv + sv.Owner = ptr.String(xtv) } case strings.EqualFold("privateDnsName", t.Name.Local): @@ -78714,7 +79378,7 @@ func awsEc2query_deserializeDocumentServiceDetail(v **types.ServiceDetail, decod } if val != nil { xtv := string(val) - sv.PrivateDnsName = &xtv + sv.PrivateDnsName = ptr.String(xtv) } case strings.EqualFold("privateDnsNameVerificationState", t.Name.Local): @@ -78743,7 +79407,7 @@ func awsEc2query_deserializeDocumentServiceDetail(v **types.ServiceDetail, decod } if val != nil { xtv := string(val) - sv.ServiceId = &xtv + sv.ServiceId = ptr.String(xtv) } case strings.EqualFold("serviceName", t.Name.Local): @@ -78759,7 +79423,7 @@ func awsEc2query_deserializeDocumentServiceDetail(v **types.ServiceDetail, decod } if val != nil { xtv := string(val) - sv.ServiceName = &xtv + sv.ServiceName = ptr.String(xtv) } case strings.EqualFold("serviceType", t.Name.Local): @@ -78787,7 +79451,7 @@ func awsEc2query_deserializeDocumentServiceDetail(v **types.ServiceDetail, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.VpcEndpointPolicySupported = &xtv + sv.VpcEndpointPolicySupported = xtv } default: @@ -78800,13 +79464,13 @@ func awsEc2query_deserializeDocumentServiceDetail(v **types.ServiceDetail, decod return nil } -func awsEc2query_deserializeDocumentServiceDetailSet(v *[]*types.ServiceDetail, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentServiceDetailSet(v *[]types.ServiceDetail, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ServiceDetail + var sv []types.ServiceDetail if *v == nil { - sv = make([]*types.ServiceDetail, 0) + sv = make([]types.ServiceDetail, 0) } else { sv = *v } @@ -78822,11 +79486,13 @@ func awsEc2query_deserializeDocumentServiceDetailSet(v *[]*types.ServiceDetail, } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ServiceDetail + var col types.ServiceDetail nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentServiceDetail(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentServiceDetail(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -78839,23 +79505,25 @@ func awsEc2query_deserializeDocumentServiceDetailSet(v *[]*types.ServiceDetail, return nil } -func awsEc2query_deserializeDocumentServiceDetailSetUnwrapped(v *[]*types.ServiceDetail, decoder smithyxml.NodeDecoder) error { - var sv []*types.ServiceDetail +func awsEc2query_deserializeDocumentServiceDetailSetUnwrapped(v *[]types.ServiceDetail, decoder smithyxml.NodeDecoder) error { + var sv []types.ServiceDetail if *v == nil { - sv = make([]*types.ServiceDetail, 0) + sv = make([]types.ServiceDetail, 0) } else { sv = *v } switch { default: - var mv *types.ServiceDetail + var mv types.ServiceDetail t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentServiceDetail(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentServiceDetail(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -78906,13 +79574,13 @@ func awsEc2query_deserializeDocumentServiceTypeDetail(v **types.ServiceTypeDetai return nil } -func awsEc2query_deserializeDocumentServiceTypeDetailSet(v *[]*types.ServiceTypeDetail, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentServiceTypeDetailSet(v *[]types.ServiceTypeDetail, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ServiceTypeDetail + var sv []types.ServiceTypeDetail if *v == nil { - sv = make([]*types.ServiceTypeDetail, 0) + sv = make([]types.ServiceTypeDetail, 0) } else { sv = *v } @@ -78928,11 +79596,13 @@ func awsEc2query_deserializeDocumentServiceTypeDetailSet(v *[]*types.ServiceType } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.ServiceTypeDetail + var col types.ServiceTypeDetail nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentServiceTypeDetail(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentServiceTypeDetail(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -78945,23 +79615,25 @@ func awsEc2query_deserializeDocumentServiceTypeDetailSet(v *[]*types.ServiceType return nil } -func awsEc2query_deserializeDocumentServiceTypeDetailSetUnwrapped(v *[]*types.ServiceTypeDetail, decoder smithyxml.NodeDecoder) error { - var sv []*types.ServiceTypeDetail +func awsEc2query_deserializeDocumentServiceTypeDetailSetUnwrapped(v *[]types.ServiceTypeDetail, decoder smithyxml.NodeDecoder) error { + var sv []types.ServiceTypeDetail if *v == nil { - sv = make([]*types.ServiceTypeDetail, 0) + sv = make([]types.ServiceTypeDetail, 0) } else { sv = *v } switch { default: - var mv *types.ServiceTypeDetail + var mv types.ServiceTypeDetail t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentServiceTypeDetail(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentServiceTypeDetail(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -79002,7 +79674,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.DataEncryptionKeyId = &xtv + sv.DataEncryptionKeyId = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -79018,7 +79690,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("encrypted", t.Name.Local): @@ -79034,7 +79706,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("kmsKeyId", t.Name.Local): @@ -79050,7 +79722,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("ownerAlias", t.Name.Local): @@ -79066,7 +79738,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.OwnerAlias = &xtv + sv.OwnerAlias = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -79082,7 +79754,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("progress", t.Name.Local): @@ -79098,7 +79770,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.Progress = &xtv + sv.Progress = ptr.String(xtv) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -79114,7 +79786,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("startTime", t.Name.Local): @@ -79131,7 +79803,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("status", t.Name.Local): @@ -79160,7 +79832,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.StateMessage = &xtv + sv.StateMessage = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -79182,7 +79854,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.VolumeId = &xtv + sv.VolumeId = ptr.String(xtv) } case strings.EqualFold("volumeSize", t.Name.Local): @@ -79199,7 +79871,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.VolumeSize = ptr.Int32(int32(i64)) + sv.VolumeSize = int32(i64) } default: @@ -79247,7 +79919,7 @@ func awsEc2query_deserializeDocumentSnapshotDetail(v **types.SnapshotDetail, dec } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("deviceName", t.Name.Local): @@ -79263,7 +79935,7 @@ func awsEc2query_deserializeDocumentSnapshotDetail(v **types.SnapshotDetail, dec } if val != nil { xtv := string(val) - sv.DeviceName = &xtv + sv.DeviceName = ptr.String(xtv) } case strings.EqualFold("diskImageSize", t.Name.Local): @@ -79280,7 +79952,7 @@ func awsEc2query_deserializeDocumentSnapshotDetail(v **types.SnapshotDetail, dec if err != nil { return err } - sv.DiskImageSize = &f64 + sv.DiskImageSize = f64 } case strings.EqualFold("format", t.Name.Local): @@ -79296,7 +79968,7 @@ func awsEc2query_deserializeDocumentSnapshotDetail(v **types.SnapshotDetail, dec } if val != nil { xtv := string(val) - sv.Format = &xtv + sv.Format = ptr.String(xtv) } case strings.EqualFold("progress", t.Name.Local): @@ -79312,7 +79984,7 @@ func awsEc2query_deserializeDocumentSnapshotDetail(v **types.SnapshotDetail, dec } if val != nil { xtv := string(val) - sv.Progress = &xtv + sv.Progress = ptr.String(xtv) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -79328,7 +80000,7 @@ func awsEc2query_deserializeDocumentSnapshotDetail(v **types.SnapshotDetail, dec } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -79344,7 +80016,7 @@ func awsEc2query_deserializeDocumentSnapshotDetail(v **types.SnapshotDetail, dec } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("statusMessage", t.Name.Local): @@ -79360,7 +80032,7 @@ func awsEc2query_deserializeDocumentSnapshotDetail(v **types.SnapshotDetail, dec } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } case strings.EqualFold("url", t.Name.Local): @@ -79376,7 +80048,7 @@ func awsEc2query_deserializeDocumentSnapshotDetail(v **types.SnapshotDetail, dec } if val != nil { xtv := string(val) - sv.Url = &xtv + sv.Url = ptr.String(xtv) } case strings.EqualFold("userBucket", t.Name.Local): @@ -79395,13 +80067,13 @@ func awsEc2query_deserializeDocumentSnapshotDetail(v **types.SnapshotDetail, dec return nil } -func awsEc2query_deserializeDocumentSnapshotDetailList(v *[]*types.SnapshotDetail, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSnapshotDetailList(v *[]types.SnapshotDetail, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SnapshotDetail + var sv []types.SnapshotDetail if *v == nil { - sv = make([]*types.SnapshotDetail, 0) + sv = make([]types.SnapshotDetail, 0) } else { sv = *v } @@ -79417,11 +80089,13 @@ func awsEc2query_deserializeDocumentSnapshotDetailList(v *[]*types.SnapshotDetai } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SnapshotDetail + var col types.SnapshotDetail nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSnapshotDetail(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSnapshotDetail(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -79434,23 +80108,25 @@ func awsEc2query_deserializeDocumentSnapshotDetailList(v *[]*types.SnapshotDetai return nil } -func awsEc2query_deserializeDocumentSnapshotDetailListUnwrapped(v *[]*types.SnapshotDetail, decoder smithyxml.NodeDecoder) error { - var sv []*types.SnapshotDetail +func awsEc2query_deserializeDocumentSnapshotDetailListUnwrapped(v *[]types.SnapshotDetail, decoder smithyxml.NodeDecoder) error { + var sv []types.SnapshotDetail if *v == nil { - sv = make([]*types.SnapshotDetail, 0) + sv = make([]types.SnapshotDetail, 0) } else { sv = *v } switch { default: - var mv *types.SnapshotDetail + var mv types.SnapshotDetail t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSnapshotDetail(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSnapshotDetail(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -79491,7 +80167,7 @@ func awsEc2query_deserializeDocumentSnapshotInfo(v **types.SnapshotInfo, decoder } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("encrypted", t.Name.Local): @@ -79507,7 +80183,7 @@ func awsEc2query_deserializeDocumentSnapshotInfo(v **types.SnapshotInfo, decoder if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("ownerId", t.Name.Local): @@ -79523,7 +80199,7 @@ func awsEc2query_deserializeDocumentSnapshotInfo(v **types.SnapshotInfo, decoder } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("progress", t.Name.Local): @@ -79539,7 +80215,7 @@ func awsEc2query_deserializeDocumentSnapshotInfo(v **types.SnapshotInfo, decoder } if val != nil { xtv := string(val) - sv.Progress = &xtv + sv.Progress = ptr.String(xtv) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -79555,7 +80231,7 @@ func awsEc2query_deserializeDocumentSnapshotInfo(v **types.SnapshotInfo, decoder } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("startTime", t.Name.Local): @@ -79572,7 +80248,7 @@ func awsEc2query_deserializeDocumentSnapshotInfo(v **types.SnapshotInfo, decoder if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("state", t.Name.Local): @@ -79607,7 +80283,7 @@ func awsEc2query_deserializeDocumentSnapshotInfo(v **types.SnapshotInfo, decoder } if val != nil { xtv := string(val) - sv.VolumeId = &xtv + sv.VolumeId = ptr.String(xtv) } case strings.EqualFold("volumeSize", t.Name.Local): @@ -79624,7 +80300,7 @@ func awsEc2query_deserializeDocumentSnapshotInfo(v **types.SnapshotInfo, decoder if err != nil { return err } - sv.VolumeSize = ptr.Int32(int32(i64)) + sv.VolumeSize = int32(i64) } default: @@ -79637,13 +80313,13 @@ func awsEc2query_deserializeDocumentSnapshotInfo(v **types.SnapshotInfo, decoder return nil } -func awsEc2query_deserializeDocumentSnapshotList(v *[]*types.Snapshot, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSnapshotList(v *[]types.Snapshot, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Snapshot + var sv []types.Snapshot if *v == nil { - sv = make([]*types.Snapshot, 0) + sv = make([]types.Snapshot, 0) } else { sv = *v } @@ -79659,11 +80335,13 @@ func awsEc2query_deserializeDocumentSnapshotList(v *[]*types.Snapshot, decoder s } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Snapshot + var col types.Snapshot nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSnapshot(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSnapshot(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -79676,35 +80354,37 @@ func awsEc2query_deserializeDocumentSnapshotList(v *[]*types.Snapshot, decoder s return nil } -func awsEc2query_deserializeDocumentSnapshotListUnwrapped(v *[]*types.Snapshot, decoder smithyxml.NodeDecoder) error { - var sv []*types.Snapshot +func awsEc2query_deserializeDocumentSnapshotListUnwrapped(v *[]types.Snapshot, decoder smithyxml.NodeDecoder) error { + var sv []types.Snapshot if *v == nil { - sv = make([]*types.Snapshot, 0) + sv = make([]types.Snapshot, 0) } else { sv = *v } switch { default: - var mv *types.Snapshot + var mv types.Snapshot t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSnapshot(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSnapshot(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentSnapshotSet(v *[]*types.SnapshotInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSnapshotSet(v *[]types.SnapshotInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SnapshotInfo + var sv []types.SnapshotInfo if *v == nil { - sv = make([]*types.SnapshotInfo, 0) + sv = make([]types.SnapshotInfo, 0) } else { sv = *v } @@ -79720,11 +80400,13 @@ func awsEc2query_deserializeDocumentSnapshotSet(v *[]*types.SnapshotInfo, decode } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SnapshotInfo + var col types.SnapshotInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSnapshotInfo(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSnapshotInfo(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -79737,23 +80419,25 @@ func awsEc2query_deserializeDocumentSnapshotSet(v *[]*types.SnapshotInfo, decode return nil } -func awsEc2query_deserializeDocumentSnapshotSetUnwrapped(v *[]*types.SnapshotInfo, decoder smithyxml.NodeDecoder) error { - var sv []*types.SnapshotInfo +func awsEc2query_deserializeDocumentSnapshotSetUnwrapped(v *[]types.SnapshotInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.SnapshotInfo if *v == nil { - sv = make([]*types.SnapshotInfo, 0) + sv = make([]types.SnapshotInfo, 0) } else { sv = *v } switch { default: - var mv *types.SnapshotInfo + var mv types.SnapshotInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSnapshotInfo(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSnapshotInfo(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -79794,7 +80478,7 @@ func awsEc2query_deserializeDocumentSnapshotTaskDetail(v **types.SnapshotTaskDet } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("diskImageSize", t.Name.Local): @@ -79811,7 +80495,7 @@ func awsEc2query_deserializeDocumentSnapshotTaskDetail(v **types.SnapshotTaskDet if err != nil { return err } - sv.DiskImageSize = &f64 + sv.DiskImageSize = f64 } case strings.EqualFold("encrypted", t.Name.Local): @@ -79827,7 +80511,7 @@ func awsEc2query_deserializeDocumentSnapshotTaskDetail(v **types.SnapshotTaskDet if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("format", t.Name.Local): @@ -79843,7 +80527,7 @@ func awsEc2query_deserializeDocumentSnapshotTaskDetail(v **types.SnapshotTaskDet } if val != nil { xtv := string(val) - sv.Format = &xtv + sv.Format = ptr.String(xtv) } case strings.EqualFold("kmsKeyId", t.Name.Local): @@ -79859,7 +80543,7 @@ func awsEc2query_deserializeDocumentSnapshotTaskDetail(v **types.SnapshotTaskDet } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("progress", t.Name.Local): @@ -79875,7 +80559,7 @@ func awsEc2query_deserializeDocumentSnapshotTaskDetail(v **types.SnapshotTaskDet } if val != nil { xtv := string(val) - sv.Progress = &xtv + sv.Progress = ptr.String(xtv) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -79891,7 +80575,7 @@ func awsEc2query_deserializeDocumentSnapshotTaskDetail(v **types.SnapshotTaskDet } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -79907,7 +80591,7 @@ func awsEc2query_deserializeDocumentSnapshotTaskDetail(v **types.SnapshotTaskDet } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("statusMessage", t.Name.Local): @@ -79923,7 +80607,7 @@ func awsEc2query_deserializeDocumentSnapshotTaskDetail(v **types.SnapshotTaskDet } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } case strings.EqualFold("url", t.Name.Local): @@ -79939,7 +80623,7 @@ func awsEc2query_deserializeDocumentSnapshotTaskDetail(v **types.SnapshotTaskDet } if val != nil { xtv := string(val) - sv.Url = &xtv + sv.Url = ptr.String(xtv) } case strings.EqualFold("userBucket", t.Name.Local): @@ -79993,7 +80677,7 @@ func awsEc2query_deserializeDocumentSpotDatafeedSubscription(v **types.SpotDataf } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("fault", t.Name.Local): @@ -80015,7 +80699,7 @@ func awsEc2query_deserializeDocumentSpotDatafeedSubscription(v **types.SpotDataf } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("prefix", t.Name.Local): @@ -80031,7 +80715,7 @@ func awsEc2query_deserializeDocumentSpotDatafeedSubscription(v **types.SpotDataf } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -80092,7 +80776,7 @@ func awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(v **types.SpotF } if val != nil { xtv := string(val) - sv.AddressingType = &xtv + sv.AddressingType = ptr.String(xtv) } case strings.EqualFold("blockDeviceMapping", t.Name.Local): @@ -80114,7 +80798,7 @@ func awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(v **types.SpotF if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsOptimized = &xtv + sv.EbsOptimized = xtv } case strings.EqualFold("iamInstanceProfile", t.Name.Local): @@ -80136,7 +80820,7 @@ func awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(v **types.SpotF } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } case strings.EqualFold("instanceType", t.Name.Local): @@ -80165,7 +80849,7 @@ func awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(v **types.SpotF } if val != nil { xtv := string(val) - sv.KernelId = &xtv + sv.KernelId = ptr.String(xtv) } case strings.EqualFold("keyName", t.Name.Local): @@ -80181,7 +80865,7 @@ func awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(v **types.SpotF } if val != nil { xtv := string(val) - sv.KeyName = &xtv + sv.KeyName = ptr.String(xtv) } case strings.EqualFold("monitoring", t.Name.Local): @@ -80215,7 +80899,7 @@ func awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(v **types.SpotF } if val != nil { xtv := string(val) - sv.RamdiskId = &xtv + sv.RamdiskId = ptr.String(xtv) } case strings.EqualFold("groupSet", t.Name.Local): @@ -80237,7 +80921,7 @@ func awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(v **types.SpotF } if val != nil { xtv := string(val) - sv.SpotPrice = &xtv + sv.SpotPrice = ptr.String(xtv) } case strings.EqualFold("subnetId", t.Name.Local): @@ -80253,7 +80937,7 @@ func awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(v **types.SpotF } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } case strings.EqualFold("tagSpecificationSet", t.Name.Local): @@ -80275,7 +80959,7 @@ func awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(v **types.SpotF } if val != nil { xtv := string(val) - sv.UserData = &xtv + sv.UserData = ptr.String(xtv) } case strings.EqualFold("weightedCapacity", t.Name.Local): @@ -80292,7 +80976,7 @@ func awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(v **types.SpotF if err != nil { return err } - sv.WeightedCapacity = &f64 + sv.WeightedCapacity = f64 } default: @@ -80340,7 +81024,7 @@ func awsEc2query_deserializeDocumentSpotFleetMonitoring(v **types.SpotFleetMonit if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } default: @@ -80402,7 +81086,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfig(v **types.SpotFleetRe if err != nil { return err } - sv.CreateTime = &t + sv.CreateTime = ptr.Time(t) } case strings.EqualFold("spotFleetRequestConfig", t.Name.Local): @@ -80424,7 +81108,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfig(v **types.SpotFleetRe } if val != nil { xtv := string(val) - sv.SpotFleetRequestId = &xtv + sv.SpotFleetRequestId = ptr.String(xtv) } case strings.EqualFold("spotFleetRequestState", t.Name.Local): @@ -80504,7 +81188,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("excessCapacityTerminationPolicy", t.Name.Local): @@ -80534,7 +81218,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return err } - sv.FulfilledCapacity = &f64 + sv.FulfilledCapacity = f64 } case strings.EqualFold("iamFleetRole", t.Name.Local): @@ -80550,7 +81234,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle } if val != nil { xtv := string(val) - sv.IamFleetRole = &xtv + sv.IamFleetRole = ptr.String(xtv) } case strings.EqualFold("instanceInterruptionBehavior", t.Name.Local): @@ -80580,7 +81264,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return err } - sv.InstancePoolsToUseCount = ptr.Int32(int32(i64)) + sv.InstancePoolsToUseCount = int32(i64) } case strings.EqualFold("launchSpecifications", t.Name.Local): @@ -80628,7 +81312,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return err } - sv.OnDemandFulfilledCapacity = &f64 + sv.OnDemandFulfilledCapacity = f64 } case strings.EqualFold("onDemandMaxTotalPrice", t.Name.Local): @@ -80644,7 +81328,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle } if val != nil { xtv := string(val) - sv.OnDemandMaxTotalPrice = &xtv + sv.OnDemandMaxTotalPrice = ptr.String(xtv) } case strings.EqualFold("onDemandTargetCapacity", t.Name.Local): @@ -80661,7 +81345,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return err } - sv.OnDemandTargetCapacity = ptr.Int32(int32(i64)) + sv.OnDemandTargetCapacity = int32(i64) } case strings.EqualFold("replaceUnhealthyInstances", t.Name.Local): @@ -80677,7 +81361,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReplaceUnhealthyInstances = &xtv + sv.ReplaceUnhealthyInstances = xtv } case strings.EqualFold("spotMaxTotalPrice", t.Name.Local): @@ -80693,7 +81377,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle } if val != nil { xtv := string(val) - sv.SpotMaxTotalPrice = &xtv + sv.SpotMaxTotalPrice = ptr.String(xtv) } case strings.EqualFold("spotPrice", t.Name.Local): @@ -80709,7 +81393,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle } if val != nil { xtv := string(val) - sv.SpotPrice = &xtv + sv.SpotPrice = ptr.String(xtv) } case strings.EqualFold("TagSpecification", t.Name.Local): @@ -80732,7 +81416,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return err } - sv.TargetCapacity = ptr.Int32(int32(i64)) + sv.TargetCapacity = int32(i64) } case strings.EqualFold("terminateInstancesWithExpiration", t.Name.Local): @@ -80748,7 +81432,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.TerminateInstancesWithExpiration = &xtv + sv.TerminateInstancesWithExpiration = xtv } case strings.EqualFold("type", t.Name.Local): @@ -80778,7 +81462,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return err } - sv.ValidFrom = &t + sv.ValidFrom = ptr.Time(t) } case strings.EqualFold("validUntil", t.Name.Local): @@ -80795,7 +81479,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return err } - sv.ValidUntil = &t + sv.ValidUntil = ptr.Time(t) } default: @@ -80808,13 +81492,13 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle return nil } -func awsEc2query_deserializeDocumentSpotFleetRequestConfigSet(v *[]*types.SpotFleetRequestConfig, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSpotFleetRequestConfigSet(v *[]types.SpotFleetRequestConfig, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SpotFleetRequestConfig + var sv []types.SpotFleetRequestConfig if *v == nil { - sv = make([]*types.SpotFleetRequestConfig, 0) + sv = make([]types.SpotFleetRequestConfig, 0) } else { sv = *v } @@ -80830,11 +81514,13 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigSet(v *[]*types.SpotFl } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SpotFleetRequestConfig + var col types.SpotFleetRequestConfig nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotFleetRequestConfig(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSpotFleetRequestConfig(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -80847,23 +81533,25 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigSet(v *[]*types.SpotFl return nil } -func awsEc2query_deserializeDocumentSpotFleetRequestConfigSetUnwrapped(v *[]*types.SpotFleetRequestConfig, decoder smithyxml.NodeDecoder) error { - var sv []*types.SpotFleetRequestConfig +func awsEc2query_deserializeDocumentSpotFleetRequestConfigSetUnwrapped(v *[]types.SpotFleetRequestConfig, decoder smithyxml.NodeDecoder) error { + var sv []types.SpotFleetRequestConfig if *v == nil { - sv = make([]*types.SpotFleetRequestConfig, 0) + sv = make([]types.SpotFleetRequestConfig, 0) } else { sv = *v } switch { default: - var mv *types.SpotFleetRequestConfig + var mv types.SpotFleetRequestConfig t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotFleetRequestConfig(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSpotFleetRequestConfig(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -80920,13 +81608,13 @@ func awsEc2query_deserializeDocumentSpotFleetTagSpecification(v **types.SpotFlee return nil } -func awsEc2query_deserializeDocumentSpotFleetTagSpecificationList(v *[]*types.SpotFleetTagSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSpotFleetTagSpecificationList(v *[]types.SpotFleetTagSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SpotFleetTagSpecification + var sv []types.SpotFleetTagSpecification if *v == nil { - sv = make([]*types.SpotFleetTagSpecification, 0) + sv = make([]types.SpotFleetTagSpecification, 0) } else { sv = *v } @@ -80942,11 +81630,13 @@ func awsEc2query_deserializeDocumentSpotFleetTagSpecificationList(v *[]*types.Sp } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SpotFleetTagSpecification + var col types.SpotFleetTagSpecification nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotFleetTagSpecification(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSpotFleetTagSpecification(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -80959,23 +81649,25 @@ func awsEc2query_deserializeDocumentSpotFleetTagSpecificationList(v *[]*types.Sp return nil } -func awsEc2query_deserializeDocumentSpotFleetTagSpecificationListUnwrapped(v *[]*types.SpotFleetTagSpecification, decoder smithyxml.NodeDecoder) error { - var sv []*types.SpotFleetTagSpecification +func awsEc2query_deserializeDocumentSpotFleetTagSpecificationListUnwrapped(v *[]types.SpotFleetTagSpecification, decoder smithyxml.NodeDecoder) error { + var sv []types.SpotFleetTagSpecification if *v == nil { - sv = make([]*types.SpotFleetTagSpecification, 0) + sv = make([]types.SpotFleetTagSpecification, 0) } else { sv = *v } switch { default: - var mv *types.SpotFleetTagSpecification + var mv types.SpotFleetTagSpecification t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotFleetTagSpecification(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSpotFleetTagSpecification(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -81016,7 +81708,7 @@ func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRe } if val != nil { xtv := string(val) - sv.ActualBlockHourlyPrice = &xtv + sv.ActualBlockHourlyPrice = ptr.String(xtv) } case strings.EqualFold("availabilityZoneGroup", t.Name.Local): @@ -81032,7 +81724,7 @@ func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRe } if val != nil { xtv := string(val) - sv.AvailabilityZoneGroup = &xtv + sv.AvailabilityZoneGroup = ptr.String(xtv) } case strings.EqualFold("blockDurationMinutes", t.Name.Local): @@ -81049,7 +81741,7 @@ func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRe if err != nil { return err } - sv.BlockDurationMinutes = ptr.Int32(int32(i64)) + sv.BlockDurationMinutes = int32(i64) } case strings.EqualFold("createTime", t.Name.Local): @@ -81066,7 +81758,7 @@ func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRe if err != nil { return err } - sv.CreateTime = &t + sv.CreateTime = ptr.Time(t) } case strings.EqualFold("fault", t.Name.Local): @@ -81088,7 +81780,7 @@ func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRe } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("instanceInterruptionBehavior", t.Name.Local): @@ -81117,7 +81809,7 @@ func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRe } if val != nil { xtv := string(val) - sv.LaunchedAvailabilityZone = &xtv + sv.LaunchedAvailabilityZone = ptr.String(xtv) } case strings.EqualFold("launchGroup", t.Name.Local): @@ -81133,7 +81825,7 @@ func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRe } if val != nil { xtv := string(val) - sv.LaunchGroup = &xtv + sv.LaunchGroup = ptr.String(xtv) } case strings.EqualFold("launchSpecification", t.Name.Local): @@ -81168,7 +81860,7 @@ func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRe } if val != nil { xtv := string(val) - sv.SpotInstanceRequestId = &xtv + sv.SpotInstanceRequestId = ptr.String(xtv) } case strings.EqualFold("spotPrice", t.Name.Local): @@ -81184,7 +81876,7 @@ func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRe } if val != nil { xtv := string(val) - sv.SpotPrice = &xtv + sv.SpotPrice = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -81239,7 +81931,7 @@ func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRe if err != nil { return err } - sv.ValidFrom = &t + sv.ValidFrom = ptr.Time(t) } case strings.EqualFold("validUntil", t.Name.Local): @@ -81256,7 +81948,7 @@ func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRe if err != nil { return err } - sv.ValidUntil = &t + sv.ValidUntil = ptr.Time(t) } default: @@ -81269,13 +81961,13 @@ func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRe return nil } -func awsEc2query_deserializeDocumentSpotInstanceRequestList(v *[]*types.SpotInstanceRequest, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSpotInstanceRequestList(v *[]types.SpotInstanceRequest, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SpotInstanceRequest + var sv []types.SpotInstanceRequest if *v == nil { - sv = make([]*types.SpotInstanceRequest, 0) + sv = make([]types.SpotInstanceRequest, 0) } else { sv = *v } @@ -81291,11 +81983,13 @@ func awsEc2query_deserializeDocumentSpotInstanceRequestList(v *[]*types.SpotInst } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SpotInstanceRequest + var col types.SpotInstanceRequest nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotInstanceRequest(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSpotInstanceRequest(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -81308,23 +82002,25 @@ func awsEc2query_deserializeDocumentSpotInstanceRequestList(v *[]*types.SpotInst return nil } -func awsEc2query_deserializeDocumentSpotInstanceRequestListUnwrapped(v *[]*types.SpotInstanceRequest, decoder smithyxml.NodeDecoder) error { - var sv []*types.SpotInstanceRequest +func awsEc2query_deserializeDocumentSpotInstanceRequestListUnwrapped(v *[]types.SpotInstanceRequest, decoder smithyxml.NodeDecoder) error { + var sv []types.SpotInstanceRequest if *v == nil { - sv = make([]*types.SpotInstanceRequest, 0) + sv = make([]types.SpotInstanceRequest, 0) } else { sv = *v } switch { default: - var mv *types.SpotInstanceRequest + var mv types.SpotInstanceRequest t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotInstanceRequest(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSpotInstanceRequest(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -81365,7 +82061,7 @@ func awsEc2query_deserializeDocumentSpotInstanceStateFault(v **types.SpotInstanc } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -81381,7 +82077,7 @@ func awsEc2query_deserializeDocumentSpotInstanceStateFault(v **types.SpotInstanc } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -81429,7 +82125,7 @@ func awsEc2query_deserializeDocumentSpotInstanceStatus(v **types.SpotInstanceSta } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -81445,7 +82141,7 @@ func awsEc2query_deserializeDocumentSpotInstanceStatus(v **types.SpotInstanceSta } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("updateTime", t.Name.Local): @@ -81462,7 +82158,7 @@ func awsEc2query_deserializeDocumentSpotInstanceStatus(v **types.SpotInstanceSta if err != nil { return err } - sv.UpdateTime = &t + sv.UpdateTime = ptr.Time(t) } default: @@ -81537,7 +82233,7 @@ func awsEc2query_deserializeDocumentSpotOptions(v **types.SpotOptions, decoder s if err != nil { return err } - sv.InstancePoolsToUseCount = ptr.Int32(int32(i64)) + sv.InstancePoolsToUseCount = int32(i64) } case strings.EqualFold("maxTotalPrice", t.Name.Local): @@ -81553,7 +82249,7 @@ func awsEc2query_deserializeDocumentSpotOptions(v **types.SpotOptions, decoder s } if val != nil { xtv := string(val) - sv.MaxTotalPrice = &xtv + sv.MaxTotalPrice = ptr.String(xtv) } case strings.EqualFold("minTargetCapacity", t.Name.Local): @@ -81570,7 +82266,7 @@ func awsEc2query_deserializeDocumentSpotOptions(v **types.SpotOptions, decoder s if err != nil { return err } - sv.MinTargetCapacity = ptr.Int32(int32(i64)) + sv.MinTargetCapacity = int32(i64) } case strings.EqualFold("singleAvailabilityZone", t.Name.Local): @@ -81586,7 +82282,7 @@ func awsEc2query_deserializeDocumentSpotOptions(v **types.SpotOptions, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SingleAvailabilityZone = &xtv + sv.SingleAvailabilityZone = xtv } case strings.EqualFold("singleInstanceType", t.Name.Local): @@ -81602,7 +82298,7 @@ func awsEc2query_deserializeDocumentSpotOptions(v **types.SpotOptions, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SingleInstanceType = &xtv + sv.SingleInstanceType = xtv } default: @@ -81650,7 +82346,7 @@ func awsEc2query_deserializeDocumentSpotPlacement(v **types.SpotPlacement, decod } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("groupName", t.Name.Local): @@ -81666,7 +82362,7 @@ func awsEc2query_deserializeDocumentSpotPlacement(v **types.SpotPlacement, decod } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } case strings.EqualFold("tenancy", t.Name.Local): @@ -81727,7 +82423,7 @@ func awsEc2query_deserializeDocumentSpotPrice(v **types.SpotPrice, decoder smith } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("instanceType", t.Name.Local): @@ -81769,7 +82465,7 @@ func awsEc2query_deserializeDocumentSpotPrice(v **types.SpotPrice, decoder smith } if val != nil { xtv := string(val) - sv.SpotPrice = &xtv + sv.SpotPrice = ptr.String(xtv) } case strings.EqualFold("timestamp", t.Name.Local): @@ -81786,7 +82482,7 @@ func awsEc2query_deserializeDocumentSpotPrice(v **types.SpotPrice, decoder smith if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -81799,13 +82495,13 @@ func awsEc2query_deserializeDocumentSpotPrice(v **types.SpotPrice, decoder smith return nil } -func awsEc2query_deserializeDocumentSpotPriceHistoryList(v *[]*types.SpotPrice, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSpotPriceHistoryList(v *[]types.SpotPrice, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SpotPrice + var sv []types.SpotPrice if *v == nil { - sv = make([]*types.SpotPrice, 0) + sv = make([]types.SpotPrice, 0) } else { sv = *v } @@ -81821,11 +82517,13 @@ func awsEc2query_deserializeDocumentSpotPriceHistoryList(v *[]*types.SpotPrice, } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SpotPrice + var col types.SpotPrice nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotPrice(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSpotPrice(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -81838,23 +82536,25 @@ func awsEc2query_deserializeDocumentSpotPriceHistoryList(v *[]*types.SpotPrice, return nil } -func awsEc2query_deserializeDocumentSpotPriceHistoryListUnwrapped(v *[]*types.SpotPrice, decoder smithyxml.NodeDecoder) error { - var sv []*types.SpotPrice +func awsEc2query_deserializeDocumentSpotPriceHistoryListUnwrapped(v *[]types.SpotPrice, decoder smithyxml.NodeDecoder) error { + var sv []types.SpotPrice if *v == nil { - sv = make([]*types.SpotPrice, 0) + sv = make([]types.SpotPrice, 0) } else { sv = *v } switch { default: - var mv *types.SpotPrice + var mv types.SpotPrice t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotPrice(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSpotPrice(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -81896,7 +82596,7 @@ func awsEc2query_deserializeDocumentStaleIpPermission(v **types.StaleIpPermissio if err != nil { return err } - sv.FromPort = ptr.Int32(int32(i64)) + sv.FromPort = int32(i64) } case strings.EqualFold("ipProtocol", t.Name.Local): @@ -81912,7 +82612,7 @@ func awsEc2query_deserializeDocumentStaleIpPermission(v **types.StaleIpPermissio } if val != nil { xtv := string(val) - sv.IpProtocol = &xtv + sv.IpProtocol = ptr.String(xtv) } case strings.EqualFold("ipRanges", t.Name.Local): @@ -81941,7 +82641,7 @@ func awsEc2query_deserializeDocumentStaleIpPermission(v **types.StaleIpPermissio if err != nil { return err } - sv.ToPort = ptr.Int32(int32(i64)) + sv.ToPort = int32(i64) } case strings.EqualFold("groups", t.Name.Local): @@ -81960,13 +82660,13 @@ func awsEc2query_deserializeDocumentStaleIpPermission(v **types.StaleIpPermissio return nil } -func awsEc2query_deserializeDocumentStaleIpPermissionSet(v *[]*types.StaleIpPermission, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentStaleIpPermissionSet(v *[]types.StaleIpPermission, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StaleIpPermission + var sv []types.StaleIpPermission if *v == nil { - sv = make([]*types.StaleIpPermission, 0) + sv = make([]types.StaleIpPermission, 0) } else { sv = *v } @@ -81982,11 +82682,13 @@ func awsEc2query_deserializeDocumentStaleIpPermissionSet(v *[]*types.StaleIpPerm } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.StaleIpPermission + var col types.StaleIpPermission nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStaleIpPermission(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentStaleIpPermission(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -81999,23 +82701,25 @@ func awsEc2query_deserializeDocumentStaleIpPermissionSet(v *[]*types.StaleIpPerm return nil } -func awsEc2query_deserializeDocumentStaleIpPermissionSetUnwrapped(v *[]*types.StaleIpPermission, decoder smithyxml.NodeDecoder) error { - var sv []*types.StaleIpPermission +func awsEc2query_deserializeDocumentStaleIpPermissionSetUnwrapped(v *[]types.StaleIpPermission, decoder smithyxml.NodeDecoder) error { + var sv []types.StaleIpPermission if *v == nil { - sv = make([]*types.StaleIpPermission, 0) + sv = make([]types.StaleIpPermission, 0) } else { sv = *v } switch { default: - var mv *types.StaleIpPermission + var mv types.StaleIpPermission t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStaleIpPermission(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentStaleIpPermission(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -82056,7 +82760,7 @@ func awsEc2query_deserializeDocumentStaleSecurityGroup(v **types.StaleSecurityGr } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("groupId", t.Name.Local): @@ -82072,7 +82776,7 @@ func awsEc2query_deserializeDocumentStaleSecurityGroup(v **types.StaleSecurityGr } if val != nil { xtv := string(val) - sv.GroupId = &xtv + sv.GroupId = ptr.String(xtv) } case strings.EqualFold("groupName", t.Name.Local): @@ -82088,7 +82792,7 @@ func awsEc2query_deserializeDocumentStaleSecurityGroup(v **types.StaleSecurityGr } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } case strings.EqualFold("staleIpPermissions", t.Name.Local): @@ -82116,7 +82820,7 @@ func awsEc2query_deserializeDocumentStaleSecurityGroup(v **types.StaleSecurityGr } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -82129,13 +82833,13 @@ func awsEc2query_deserializeDocumentStaleSecurityGroup(v **types.StaleSecurityGr return nil } -func awsEc2query_deserializeDocumentStaleSecurityGroupSet(v *[]*types.StaleSecurityGroup, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentStaleSecurityGroupSet(v *[]types.StaleSecurityGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.StaleSecurityGroup + var sv []types.StaleSecurityGroup if *v == nil { - sv = make([]*types.StaleSecurityGroup, 0) + sv = make([]types.StaleSecurityGroup, 0) } else { sv = *v } @@ -82151,11 +82855,13 @@ func awsEc2query_deserializeDocumentStaleSecurityGroupSet(v *[]*types.StaleSecur } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.StaleSecurityGroup + var col types.StaleSecurityGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStaleSecurityGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentStaleSecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -82168,23 +82874,25 @@ func awsEc2query_deserializeDocumentStaleSecurityGroupSet(v *[]*types.StaleSecur return nil } -func awsEc2query_deserializeDocumentStaleSecurityGroupSetUnwrapped(v *[]*types.StaleSecurityGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.StaleSecurityGroup +func awsEc2query_deserializeDocumentStaleSecurityGroupSetUnwrapped(v *[]types.StaleSecurityGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.StaleSecurityGroup if *v == nil { - sv = make([]*types.StaleSecurityGroup, 0) + sv = make([]types.StaleSecurityGroup, 0) } else { sv = *v } switch { default: - var mv *types.StaleSecurityGroup + var mv types.StaleSecurityGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStaleSecurityGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentStaleSecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -82225,7 +82933,7 @@ func awsEc2query_deserializeDocumentStateReason(v **types.StateReason, decoder s } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -82241,7 +82949,7 @@ func awsEc2query_deserializeDocumentStateReason(v **types.StateReason, decoder s } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -82327,7 +83035,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AssignIpv6AddressOnCreation = &xtv + sv.AssignIpv6AddressOnCreation = xtv } case strings.EqualFold("availabilityZone", t.Name.Local): @@ -82343,7 +83051,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("availabilityZoneId", t.Name.Local): @@ -82359,7 +83067,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.AvailabilityZoneId = &xtv + sv.AvailabilityZoneId = ptr.String(xtv) } case strings.EqualFold("availableIpAddressCount", t.Name.Local): @@ -82376,7 +83084,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N if err != nil { return err } - sv.AvailableIpAddressCount = ptr.Int32(int32(i64)) + sv.AvailableIpAddressCount = int32(i64) } case strings.EqualFold("cidrBlock", t.Name.Local): @@ -82392,7 +83100,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.CidrBlock = &xtv + sv.CidrBlock = ptr.String(xtv) } case strings.EqualFold("customerOwnedIpv4Pool", t.Name.Local): @@ -82408,7 +83116,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.CustomerOwnedIpv4Pool = &xtv + sv.CustomerOwnedIpv4Pool = ptr.String(xtv) } case strings.EqualFold("defaultForAz", t.Name.Local): @@ -82424,7 +83132,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DefaultForAz = &xtv + sv.DefaultForAz = xtv } case strings.EqualFold("ipv6CidrBlockAssociationSet", t.Name.Local): @@ -82446,7 +83154,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MapCustomerOwnedIpOnLaunch = &xtv + sv.MapCustomerOwnedIpOnLaunch = xtv } case strings.EqualFold("mapPublicIpOnLaunch", t.Name.Local): @@ -82462,7 +83170,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MapPublicIpOnLaunch = &xtv + sv.MapPublicIpOnLaunch = xtv } case strings.EqualFold("outpostArn", t.Name.Local): @@ -82478,7 +83186,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.OutpostArn = &xtv + sv.OutpostArn = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -82494,7 +83202,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -82523,7 +83231,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.SubnetArn = &xtv + sv.SubnetArn = ptr.String(xtv) } case strings.EqualFold("subnetId", t.Name.Local): @@ -82539,7 +83247,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -82561,7 +83269,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -82622,7 +83330,7 @@ func awsEc2query_deserializeDocumentSubnetAssociation(v **types.SubnetAssociatio } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } default: @@ -82635,13 +83343,13 @@ func awsEc2query_deserializeDocumentSubnetAssociation(v **types.SubnetAssociatio return nil } -func awsEc2query_deserializeDocumentSubnetAssociationList(v *[]*types.SubnetAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSubnetAssociationList(v *[]types.SubnetAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SubnetAssociation + var sv []types.SubnetAssociation if *v == nil { - sv = make([]*types.SubnetAssociation, 0) + sv = make([]types.SubnetAssociation, 0) } else { sv = *v } @@ -82657,11 +83365,13 @@ func awsEc2query_deserializeDocumentSubnetAssociationList(v *[]*types.SubnetAsso } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SubnetAssociation + var col types.SubnetAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSubnetAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSubnetAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -82674,23 +83384,25 @@ func awsEc2query_deserializeDocumentSubnetAssociationList(v *[]*types.SubnetAsso return nil } -func awsEc2query_deserializeDocumentSubnetAssociationListUnwrapped(v *[]*types.SubnetAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.SubnetAssociation +func awsEc2query_deserializeDocumentSubnetAssociationListUnwrapped(v *[]types.SubnetAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.SubnetAssociation if *v == nil { - sv = make([]*types.SubnetAssociation, 0) + sv = make([]types.SubnetAssociation, 0) } else { sv = *v } switch { default: - var mv *types.SubnetAssociation + var mv types.SubnetAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSubnetAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSubnetAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -82744,7 +83456,7 @@ func awsEc2query_deserializeDocumentSubnetCidrBlockState(v **types.SubnetCidrBlo } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } default: @@ -82792,7 +83504,7 @@ func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(v **types.Sub } if val != nil { xtv := string(val) - sv.AssociationId = &xtv + sv.AssociationId = ptr.String(xtv) } case strings.EqualFold("ipv6CidrBlock", t.Name.Local): @@ -82808,7 +83520,7 @@ func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(v **types.Sub } if val != nil { xtv := string(val) - sv.Ipv6CidrBlock = &xtv + sv.Ipv6CidrBlock = ptr.String(xtv) } case strings.EqualFold("ipv6CidrBlockState", t.Name.Local): @@ -82827,13 +83539,13 @@ func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(v **types.Sub return nil } -func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociationSet(v *[]*types.SubnetIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociationSet(v *[]types.SubnetIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SubnetIpv6CidrBlockAssociation + var sv []types.SubnetIpv6CidrBlockAssociation if *v == nil { - sv = make([]*types.SubnetIpv6CidrBlockAssociation, 0) + sv = make([]types.SubnetIpv6CidrBlockAssociation, 0) } else { sv = *v } @@ -82849,11 +83561,13 @@ func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociationSet(v *[]*type } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SubnetIpv6CidrBlockAssociation + var col types.SubnetIpv6CidrBlockAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -82866,35 +83580,37 @@ func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociationSet(v *[]*type return nil } -func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociationSetUnwrapped(v *[]*types.SubnetIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.SubnetIpv6CidrBlockAssociation +func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociationSetUnwrapped(v *[]types.SubnetIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.SubnetIpv6CidrBlockAssociation if *v == nil { - sv = make([]*types.SubnetIpv6CidrBlockAssociation, 0) + sv = make([]types.SubnetIpv6CidrBlockAssociation, 0) } else { sv = *v } switch { default: - var mv *types.SubnetIpv6CidrBlockAssociation + var mv types.SubnetIpv6CidrBlockAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSubnetList(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Subnet + var sv []types.Subnet if *v == nil { - sv = make([]*types.Subnet, 0) + sv = make([]types.Subnet, 0) } else { sv = *v } @@ -82910,11 +83626,13 @@ func awsEc2query_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smith } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Subnet + var col types.Subnet nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSubnet(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSubnet(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -82927,23 +83645,25 @@ func awsEc2query_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smith return nil } -func awsEc2query_deserializeDocumentSubnetListUnwrapped(v *[]*types.Subnet, decoder smithyxml.NodeDecoder) error { - var sv []*types.Subnet +func awsEc2query_deserializeDocumentSubnetListUnwrapped(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error { + var sv []types.Subnet if *v == nil { - sv = make([]*types.Subnet, 0) + sv = make([]types.Subnet, 0) } else { sv = *v } switch { default: - var mv *types.Subnet + var mv types.Subnet t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSubnet(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSubnet(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -82984,7 +83704,7 @@ func awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationItem(v } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } default: @@ -82997,13 +83717,13 @@ func awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationItem(v return nil } -func awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationSet(v *[]*types.SuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationSet(v *[]types.SuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SuccessfulInstanceCreditSpecificationItem + var sv []types.SuccessfulInstanceCreditSpecificationItem if *v == nil { - sv = make([]*types.SuccessfulInstanceCreditSpecificationItem, 0) + sv = make([]types.SuccessfulInstanceCreditSpecificationItem, 0) } else { sv = *v } @@ -83019,11 +83739,13 @@ func awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationSet(v * } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SuccessfulInstanceCreditSpecificationItem + var col types.SuccessfulInstanceCreditSpecificationItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -83036,23 +83758,25 @@ func awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationSet(v * return nil } -func awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationSetUnwrapped(v *[]*types.SuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.SuccessfulInstanceCreditSpecificationItem +func awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationSetUnwrapped(v *[]types.SuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error { + var sv []types.SuccessfulInstanceCreditSpecificationItem if *v == nil { - sv = make([]*types.SuccessfulInstanceCreditSpecificationItem, 0) + sv = make([]types.SuccessfulInstanceCreditSpecificationItem, 0) } else { sv = *v } switch { default: - var mv *types.SuccessfulInstanceCreditSpecificationItem + var mv types.SuccessfulInstanceCreditSpecificationItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -83093,7 +83817,7 @@ func awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletion(v **types.S } if val != nil { xtv := string(val) - sv.ReservedInstancesId = &xtv + sv.ReservedInstancesId = ptr.String(xtv) } default: @@ -83106,13 +83830,13 @@ func awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletion(v **types.S return nil } -func awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletionSet(v *[]*types.SuccessfulQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletionSet(v *[]types.SuccessfulQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SuccessfulQueuedPurchaseDeletion + var sv []types.SuccessfulQueuedPurchaseDeletion if *v == nil { - sv = make([]*types.SuccessfulQueuedPurchaseDeletion, 0) + sv = make([]types.SuccessfulQueuedPurchaseDeletion, 0) } else { sv = *v } @@ -83128,11 +83852,13 @@ func awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletionSet(v *[]*ty } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.SuccessfulQueuedPurchaseDeletion + var col types.SuccessfulQueuedPurchaseDeletion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletion(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletion(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -83145,23 +83871,25 @@ func awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletionSet(v *[]*ty return nil } -func awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletionSetUnwrapped(v *[]*types.SuccessfulQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { - var sv []*types.SuccessfulQueuedPurchaseDeletion +func awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletionSetUnwrapped(v *[]types.SuccessfulQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { + var sv []types.SuccessfulQueuedPurchaseDeletion if *v == nil { - sv = make([]*types.SuccessfulQueuedPurchaseDeletion, 0) + sv = make([]types.SuccessfulQueuedPurchaseDeletion, 0) } else { sv = *v } switch { default: - var mv *types.SuccessfulQueuedPurchaseDeletion + var mv types.SuccessfulQueuedPurchaseDeletion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletion(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletion(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -83202,7 +83930,7 @@ func awsEc2query_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("value", t.Name.Local): @@ -83218,7 +83946,7 @@ func awsEc2query_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -83266,7 +83994,7 @@ func awsEc2query_deserializeDocumentTagDescription(v **types.TagDescription, dec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("resourceId", t.Name.Local): @@ -83282,7 +84010,7 @@ func awsEc2query_deserializeDocumentTagDescription(v **types.TagDescription, dec } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("resourceType", t.Name.Local): @@ -83311,7 +84039,7 @@ func awsEc2query_deserializeDocumentTagDescription(v **types.TagDescription, dec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -83324,13 +84052,13 @@ func awsEc2query_deserializeDocumentTagDescription(v **types.TagDescription, dec return nil } -func awsEc2query_deserializeDocumentTagDescriptionList(v *[]*types.TagDescription, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTagDescriptionList(v *[]types.TagDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TagDescription + var sv []types.TagDescription if *v == nil { - sv = make([]*types.TagDescription, 0) + sv = make([]types.TagDescription, 0) } else { sv = *v } @@ -83346,11 +84074,13 @@ func awsEc2query_deserializeDocumentTagDescriptionList(v *[]*types.TagDescriptio } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TagDescription + var col types.TagDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTagDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -83363,35 +84093,37 @@ func awsEc2query_deserializeDocumentTagDescriptionList(v *[]*types.TagDescriptio return nil } -func awsEc2query_deserializeDocumentTagDescriptionListUnwrapped(v *[]*types.TagDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.TagDescription +func awsEc2query_deserializeDocumentTagDescriptionListUnwrapped(v *[]types.TagDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.TagDescription if *v == nil { - sv = make([]*types.TagDescription, 0) + sv = make([]types.TagDescription, 0) } else { sv = *v } switch { default: - var mv *types.TagDescription + var mv types.TagDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTagDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -83407,11 +84139,13 @@ func awsEc2query_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -83424,23 +84158,25 @@ func awsEc2query_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N return nil } -func awsEc2query_deserializeDocumentTagListUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsEc2query_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -83497,13 +84233,13 @@ func awsEc2query_deserializeDocumentTagSpecification(v **types.TagSpecification, return nil } -func awsEc2query_deserializeDocumentTagSpecificationList(v *[]*types.TagSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTagSpecificationList(v *[]types.TagSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TagSpecification + var sv []types.TagSpecification if *v == nil { - sv = make([]*types.TagSpecification, 0) + sv = make([]types.TagSpecification, 0) } else { sv = *v } @@ -83519,11 +84255,13 @@ func awsEc2query_deserializeDocumentTagSpecificationList(v *[]*types.TagSpecific } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TagSpecification + var col types.TagSpecification nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagSpecification(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTagSpecification(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -83536,23 +84274,25 @@ func awsEc2query_deserializeDocumentTagSpecificationList(v *[]*types.TagSpecific return nil } -func awsEc2query_deserializeDocumentTagSpecificationListUnwrapped(v *[]*types.TagSpecification, decoder smithyxml.NodeDecoder) error { - var sv []*types.TagSpecification +func awsEc2query_deserializeDocumentTagSpecificationListUnwrapped(v *[]types.TagSpecification, decoder smithyxml.NodeDecoder) error { + var sv []types.TagSpecification if *v == nil { - sv = make([]*types.TagSpecification, 0) + sv = make([]types.TagSpecification, 0) } else { sv = *v } switch { default: - var mv *types.TagSpecification + var mv types.TagSpecification t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagSpecification(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTagSpecification(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -83607,7 +84347,7 @@ func awsEc2query_deserializeDocumentTargetCapacitySpecification(v **types.Target if err != nil { return err } - sv.OnDemandTargetCapacity = ptr.Int32(int32(i64)) + sv.OnDemandTargetCapacity = int32(i64) } case strings.EqualFold("spotTargetCapacity", t.Name.Local): @@ -83624,7 +84364,7 @@ func awsEc2query_deserializeDocumentTargetCapacitySpecification(v **types.Target if err != nil { return err } - sv.SpotTargetCapacity = ptr.Int32(int32(i64)) + sv.SpotTargetCapacity = int32(i64) } case strings.EqualFold("totalTargetCapacity", t.Name.Local): @@ -83641,7 +84381,7 @@ func awsEc2query_deserializeDocumentTargetCapacitySpecification(v **types.Target if err != nil { return err } - sv.TotalTargetCapacity = ptr.Int32(int32(i64)) + sv.TotalTargetCapacity = int32(i64) } default: @@ -83690,7 +84430,7 @@ func awsEc2query_deserializeDocumentTargetConfiguration(v **types.TargetConfigur if err != nil { return err } - sv.InstanceCount = ptr.Int32(int32(i64)) + sv.InstanceCount = int32(i64) } case strings.EqualFold("offeringId", t.Name.Local): @@ -83706,7 +84446,7 @@ func awsEc2query_deserializeDocumentTargetConfiguration(v **types.TargetConfigur } if val != nil { xtv := string(val) - sv.OfferingId = &xtv + sv.OfferingId = ptr.String(xtv) } default: @@ -83754,7 +84494,7 @@ func awsEc2query_deserializeDocumentTargetGroup(v **types.TargetGroup, decoder s } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } default: @@ -83767,13 +84507,13 @@ func awsEc2query_deserializeDocumentTargetGroup(v **types.TargetGroup, decoder s return nil } -func awsEc2query_deserializeDocumentTargetGroups(v *[]*types.TargetGroup, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTargetGroups(v *[]types.TargetGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TargetGroup + var sv []types.TargetGroup if *v == nil { - sv = make([]*types.TargetGroup, 0) + sv = make([]types.TargetGroup, 0) } else { sv = *v } @@ -83789,11 +84529,13 @@ func awsEc2query_deserializeDocumentTargetGroups(v *[]*types.TargetGroup, decode } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TargetGroup + var col types.TargetGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTargetGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTargetGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -83806,23 +84548,25 @@ func awsEc2query_deserializeDocumentTargetGroups(v *[]*types.TargetGroup, decode return nil } -func awsEc2query_deserializeDocumentTargetGroupsUnwrapped(v *[]*types.TargetGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.TargetGroup +func awsEc2query_deserializeDocumentTargetGroupsUnwrapped(v *[]types.TargetGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.TargetGroup if *v == nil { - sv = make([]*types.TargetGroup, 0) + sv = make([]types.TargetGroup, 0) } else { sv = *v } switch { default: - var mv *types.TargetGroup + var mv types.TargetGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTargetGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTargetGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -83901,7 +84645,7 @@ func awsEc2query_deserializeDocumentTargetNetwork(v **types.TargetNetwork, decod } if val != nil { xtv := string(val) - sv.AssociationId = &xtv + sv.AssociationId = ptr.String(xtv) } case strings.EqualFold("clientVpnEndpointId", t.Name.Local): @@ -83917,7 +84661,7 @@ func awsEc2query_deserializeDocumentTargetNetwork(v **types.TargetNetwork, decod } if val != nil { xtv := string(val) - sv.ClientVpnEndpointId = &xtv + sv.ClientVpnEndpointId = ptr.String(xtv) } case strings.EqualFold("securityGroups", t.Name.Local): @@ -83945,7 +84689,7 @@ func awsEc2query_deserializeDocumentTargetNetwork(v **types.TargetNetwork, decod } if val != nil { xtv := string(val) - sv.TargetNetworkId = &xtv + sv.TargetNetworkId = ptr.String(xtv) } case strings.EqualFold("vpcId", t.Name.Local): @@ -83961,7 +84705,7 @@ func awsEc2query_deserializeDocumentTargetNetwork(v **types.TargetNetwork, decod } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -83974,13 +84718,13 @@ func awsEc2query_deserializeDocumentTargetNetwork(v **types.TargetNetwork, decod return nil } -func awsEc2query_deserializeDocumentTargetNetworkSet(v *[]*types.TargetNetwork, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTargetNetworkSet(v *[]types.TargetNetwork, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TargetNetwork + var sv []types.TargetNetwork if *v == nil { - sv = make([]*types.TargetNetwork, 0) + sv = make([]types.TargetNetwork, 0) } else { sv = *v } @@ -83996,11 +84740,13 @@ func awsEc2query_deserializeDocumentTargetNetworkSet(v *[]*types.TargetNetwork, } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TargetNetwork + var col types.TargetNetwork nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTargetNetwork(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTargetNetwork(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -84013,23 +84759,25 @@ func awsEc2query_deserializeDocumentTargetNetworkSet(v *[]*types.TargetNetwork, return nil } -func awsEc2query_deserializeDocumentTargetNetworkSetUnwrapped(v *[]*types.TargetNetwork, decoder smithyxml.NodeDecoder) error { - var sv []*types.TargetNetwork +func awsEc2query_deserializeDocumentTargetNetworkSetUnwrapped(v *[]types.TargetNetwork, decoder smithyxml.NodeDecoder) error { + var sv []types.TargetNetwork if *v == nil { - sv = make([]*types.TargetNetwork, 0) + sv = make([]types.TargetNetwork, 0) } else { sv = *v } switch { default: - var mv *types.TargetNetwork + var mv types.TargetNetwork t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTargetNetwork(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTargetNetwork(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -84079,13 +84827,13 @@ func awsEc2query_deserializeDocumentTargetReservationValue(v **types.TargetReser return nil } -func awsEc2query_deserializeDocumentTargetReservationValueSet(v *[]*types.TargetReservationValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTargetReservationValueSet(v *[]types.TargetReservationValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TargetReservationValue + var sv []types.TargetReservationValue if *v == nil { - sv = make([]*types.TargetReservationValue, 0) + sv = make([]types.TargetReservationValue, 0) } else { sv = *v } @@ -84101,11 +84849,13 @@ func awsEc2query_deserializeDocumentTargetReservationValueSet(v *[]*types.Target } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TargetReservationValue + var col types.TargetReservationValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTargetReservationValue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTargetReservationValue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -84118,23 +84868,25 @@ func awsEc2query_deserializeDocumentTargetReservationValueSet(v *[]*types.Target return nil } -func awsEc2query_deserializeDocumentTargetReservationValueSetUnwrapped(v *[]*types.TargetReservationValue, decoder smithyxml.NodeDecoder) error { - var sv []*types.TargetReservationValue +func awsEc2query_deserializeDocumentTargetReservationValueSetUnwrapped(v *[]types.TargetReservationValue, decoder smithyxml.NodeDecoder) error { + var sv []types.TargetReservationValue if *v == nil { - sv = make([]*types.TargetReservationValue, 0) + sv = make([]types.TargetReservationValue, 0) } else { sv = *v } switch { default: - var mv *types.TargetReservationValue + var mv types.TargetReservationValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTargetReservationValue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTargetReservationValue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -84175,7 +84927,7 @@ func awsEc2query_deserializeDocumentTerminateConnectionStatus(v **types.Terminat } if val != nil { xtv := string(val) - sv.ConnectionId = &xtv + sv.ConnectionId = ptr.String(xtv) } case strings.EqualFold("currentStatus", t.Name.Local): @@ -84200,13 +84952,13 @@ func awsEc2query_deserializeDocumentTerminateConnectionStatus(v **types.Terminat return nil } -func awsEc2query_deserializeDocumentTerminateConnectionStatusSet(v *[]*types.TerminateConnectionStatus, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTerminateConnectionStatusSet(v *[]types.TerminateConnectionStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TerminateConnectionStatus + var sv []types.TerminateConnectionStatus if *v == nil { - sv = make([]*types.TerminateConnectionStatus, 0) + sv = make([]types.TerminateConnectionStatus, 0) } else { sv = *v } @@ -84222,11 +84974,13 @@ func awsEc2query_deserializeDocumentTerminateConnectionStatusSet(v *[]*types.Ter } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TerminateConnectionStatus + var col types.TerminateConnectionStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTerminateConnectionStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTerminateConnectionStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -84239,35 +84993,37 @@ func awsEc2query_deserializeDocumentTerminateConnectionStatusSet(v *[]*types.Ter return nil } -func awsEc2query_deserializeDocumentTerminateConnectionStatusSetUnwrapped(v *[]*types.TerminateConnectionStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.TerminateConnectionStatus +func awsEc2query_deserializeDocumentTerminateConnectionStatusSetUnwrapped(v *[]types.TerminateConnectionStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.TerminateConnectionStatus if *v == nil { - sv = make([]*types.TerminateConnectionStatus, 0) + sv = make([]types.TerminateConnectionStatus, 0) } else { sv = *v } switch { default: - var mv *types.TerminateConnectionStatus + var mv types.TerminateConnectionStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTerminateConnectionStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTerminateConnectionStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentThreadsPerCoreList(v *[]*int32, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentThreadsPerCoreList(v *[]int32, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*int32 + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } @@ -84285,7 +85041,7 @@ func awsEc2query_deserializeDocumentThreadsPerCoreList(v *[]*int32, decoder smit decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *int32 + var col int32 val, done, err := decoder.Value() if err != nil { return err @@ -84299,7 +85055,7 @@ func awsEc2query_deserializeDocumentThreadsPerCoreList(v *[]*int32, decoder smit if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } sv = append(sv, col) } else { @@ -84312,17 +85068,17 @@ func awsEc2query_deserializeDocumentThreadsPerCoreList(v *[]*int32, decoder smit return nil } -func awsEc2query_deserializeDocumentThreadsPerCoreListUnwrapped(v *[]*int32, decoder smithyxml.NodeDecoder) error { - var sv []*int32 +func awsEc2query_deserializeDocumentThreadsPerCoreListUnwrapped(v *[]int32, decoder smithyxml.NodeDecoder) error { + var sv []int32 if *v == nil { - sv = make([]*int32, 0) + sv = make([]int32, 0) } else { sv = *v } switch { default: - var mv *int32 + var mv int32 t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -84338,7 +85094,7 @@ func awsEc2query_deserializeDocumentThreadsPerCoreListUnwrapped(v *[]*int32, dec if err != nil { return err } - mv = ptr.Int32(int32(i64)) + mv = int32(i64) } sv = append(sv, mv) } @@ -84380,7 +85136,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilter(v **types.TrafficMirrorF } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("egressFilterRuleSet", t.Name.Local): @@ -84420,7 +85176,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilter(v **types.TrafficMirrorF } if val != nil { xtv := string(val) - sv.TrafficMirrorFilterId = &xtv + sv.TrafficMirrorFilterId = ptr.String(xtv) } default: @@ -84468,7 +85224,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterRule(v **types.TrafficMir } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("destinationCidrBlock", t.Name.Local): @@ -84484,7 +85240,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterRule(v **types.TrafficMir } if val != nil { xtv := string(val) - sv.DestinationCidrBlock = &xtv + sv.DestinationCidrBlock = ptr.String(xtv) } case strings.EqualFold("destinationPortRange", t.Name.Local): @@ -84507,7 +85263,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterRule(v **types.TrafficMir if err != nil { return err } - sv.Protocol = ptr.Int32(int32(i64)) + sv.Protocol = int32(i64) } case strings.EqualFold("ruleAction", t.Name.Local): @@ -84537,7 +85293,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterRule(v **types.TrafficMir if err != nil { return err } - sv.RuleNumber = ptr.Int32(int32(i64)) + sv.RuleNumber = int32(i64) } case strings.EqualFold("sourceCidrBlock", t.Name.Local): @@ -84553,7 +85309,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterRule(v **types.TrafficMir } if val != nil { xtv := string(val) - sv.SourceCidrBlock = &xtv + sv.SourceCidrBlock = ptr.String(xtv) } case strings.EqualFold("sourcePortRange", t.Name.Local): @@ -84588,7 +85344,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterRule(v **types.TrafficMir } if val != nil { xtv := string(val) - sv.TrafficMirrorFilterId = &xtv + sv.TrafficMirrorFilterId = ptr.String(xtv) } case strings.EqualFold("trafficMirrorFilterRuleId", t.Name.Local): @@ -84604,7 +85360,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterRule(v **types.TrafficMir } if val != nil { xtv := string(val) - sv.TrafficMirrorFilterRuleId = &xtv + sv.TrafficMirrorFilterRuleId = ptr.String(xtv) } default: @@ -84617,13 +85373,13 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterRule(v **types.TrafficMir return nil } -func awsEc2query_deserializeDocumentTrafficMirrorFilterRuleList(v *[]*types.TrafficMirrorFilterRule, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTrafficMirrorFilterRuleList(v *[]types.TrafficMirrorFilterRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TrafficMirrorFilterRule + var sv []types.TrafficMirrorFilterRule if *v == nil { - sv = make([]*types.TrafficMirrorFilterRule, 0) + sv = make([]types.TrafficMirrorFilterRule, 0) } else { sv = *v } @@ -84639,11 +85395,13 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterRuleList(v *[]*types.Traf } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TrafficMirrorFilterRule + var col types.TrafficMirrorFilterRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -84656,35 +85414,37 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterRuleList(v *[]*types.Traf return nil } -func awsEc2query_deserializeDocumentTrafficMirrorFilterRuleListUnwrapped(v *[]*types.TrafficMirrorFilterRule, decoder smithyxml.NodeDecoder) error { - var sv []*types.TrafficMirrorFilterRule +func awsEc2query_deserializeDocumentTrafficMirrorFilterRuleListUnwrapped(v *[]types.TrafficMirrorFilterRule, decoder smithyxml.NodeDecoder) error { + var sv []types.TrafficMirrorFilterRule if *v == nil { - sv = make([]*types.TrafficMirrorFilterRule, 0) + sv = make([]types.TrafficMirrorFilterRule, 0) } else { sv = *v } switch { default: - var mv *types.TrafficMirrorFilterRule + var mv types.TrafficMirrorFilterRule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentTrafficMirrorFilterSet(v *[]*types.TrafficMirrorFilter, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTrafficMirrorFilterSet(v *[]types.TrafficMirrorFilter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TrafficMirrorFilter + var sv []types.TrafficMirrorFilter if *v == nil { - sv = make([]*types.TrafficMirrorFilter, 0) + sv = make([]types.TrafficMirrorFilter, 0) } else { sv = *v } @@ -84700,11 +85460,13 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterSet(v *[]*types.TrafficMi } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TrafficMirrorFilter + var col types.TrafficMirrorFilter nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorFilter(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTrafficMirrorFilter(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -84717,23 +85479,25 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterSet(v *[]*types.TrafficMi return nil } -func awsEc2query_deserializeDocumentTrafficMirrorFilterSetUnwrapped(v *[]*types.TrafficMirrorFilter, decoder smithyxml.NodeDecoder) error { - var sv []*types.TrafficMirrorFilter +func awsEc2query_deserializeDocumentTrafficMirrorFilterSetUnwrapped(v *[]types.TrafficMirrorFilter, decoder smithyxml.NodeDecoder) error { + var sv []types.TrafficMirrorFilter if *v == nil { - sv = make([]*types.TrafficMirrorFilter, 0) + sv = make([]types.TrafficMirrorFilter, 0) } else { sv = *v } switch { default: - var mv *types.TrafficMirrorFilter + var mv types.TrafficMirrorFilter t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorFilter(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTrafficMirrorFilter(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -84851,7 +85615,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorPortRange(v **types.TrafficMirr if err != nil { return err } - sv.FromPort = ptr.Int32(int32(i64)) + sv.FromPort = int32(i64) } case strings.EqualFold("toPort", t.Name.Local): @@ -84868,7 +85632,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorPortRange(v **types.TrafficMirr if err != nil { return err } - sv.ToPort = ptr.Int32(int32(i64)) + sv.ToPort = int32(i64) } default: @@ -84916,7 +85680,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirror } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("networkInterfaceId", t.Name.Local): @@ -84932,7 +85696,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirror } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -84948,7 +85712,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirror } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("packetLength", t.Name.Local): @@ -84965,7 +85729,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirror if err != nil { return err } - sv.PacketLength = ptr.Int32(int32(i64)) + sv.PacketLength = int32(i64) } case strings.EqualFold("sessionNumber", t.Name.Local): @@ -84982,7 +85746,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirror if err != nil { return err } - sv.SessionNumber = ptr.Int32(int32(i64)) + sv.SessionNumber = int32(i64) } case strings.EqualFold("tagSet", t.Name.Local): @@ -85004,7 +85768,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirror } if val != nil { xtv := string(val) - sv.TrafficMirrorFilterId = &xtv + sv.TrafficMirrorFilterId = ptr.String(xtv) } case strings.EqualFold("trafficMirrorSessionId", t.Name.Local): @@ -85020,7 +85784,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirror } if val != nil { xtv := string(val) - sv.TrafficMirrorSessionId = &xtv + sv.TrafficMirrorSessionId = ptr.String(xtv) } case strings.EqualFold("trafficMirrorTargetId", t.Name.Local): @@ -85036,7 +85800,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirror } if val != nil { xtv := string(val) - sv.TrafficMirrorTargetId = &xtv + sv.TrafficMirrorTargetId = ptr.String(xtv) } case strings.EqualFold("virtualNetworkId", t.Name.Local): @@ -85053,7 +85817,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirror if err != nil { return err } - sv.VirtualNetworkId = ptr.Int32(int32(i64)) + sv.VirtualNetworkId = int32(i64) } default: @@ -85066,13 +85830,13 @@ func awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirror return nil } -func awsEc2query_deserializeDocumentTrafficMirrorSessionSet(v *[]*types.TrafficMirrorSession, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTrafficMirrorSessionSet(v *[]types.TrafficMirrorSession, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TrafficMirrorSession + var sv []types.TrafficMirrorSession if *v == nil { - sv = make([]*types.TrafficMirrorSession, 0) + sv = make([]types.TrafficMirrorSession, 0) } else { sv = *v } @@ -85088,11 +85852,13 @@ func awsEc2query_deserializeDocumentTrafficMirrorSessionSet(v *[]*types.TrafficM } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TrafficMirrorSession + var col types.TrafficMirrorSession nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorSession(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTrafficMirrorSession(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -85105,23 +85871,25 @@ func awsEc2query_deserializeDocumentTrafficMirrorSessionSet(v *[]*types.TrafficM return nil } -func awsEc2query_deserializeDocumentTrafficMirrorSessionSetUnwrapped(v *[]*types.TrafficMirrorSession, decoder smithyxml.NodeDecoder) error { - var sv []*types.TrafficMirrorSession +func awsEc2query_deserializeDocumentTrafficMirrorSessionSetUnwrapped(v *[]types.TrafficMirrorSession, decoder smithyxml.NodeDecoder) error { + var sv []types.TrafficMirrorSession if *v == nil { - sv = make([]*types.TrafficMirrorSession, 0) + sv = make([]types.TrafficMirrorSession, 0) } else { sv = *v } switch { default: - var mv *types.TrafficMirrorSession + var mv types.TrafficMirrorSession t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorSession(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTrafficMirrorSession(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -85162,7 +85930,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorTarget(v **types.TrafficMirrorT } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("networkInterfaceId", t.Name.Local): @@ -85178,7 +85946,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorTarget(v **types.TrafficMirrorT } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } case strings.EqualFold("networkLoadBalancerArn", t.Name.Local): @@ -85194,7 +85962,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorTarget(v **types.TrafficMirrorT } if val != nil { xtv := string(val) - sv.NetworkLoadBalancerArn = &xtv + sv.NetworkLoadBalancerArn = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -85210,7 +85978,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorTarget(v **types.TrafficMirrorT } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -85232,7 +86000,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorTarget(v **types.TrafficMirrorT } if val != nil { xtv := string(val) - sv.TrafficMirrorTargetId = &xtv + sv.TrafficMirrorTargetId = ptr.String(xtv) } case strings.EqualFold("type", t.Name.Local): @@ -85258,13 +86026,13 @@ func awsEc2query_deserializeDocumentTrafficMirrorTarget(v **types.TrafficMirrorT return nil } -func awsEc2query_deserializeDocumentTrafficMirrorTargetSet(v *[]*types.TrafficMirrorTarget, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTrafficMirrorTargetSet(v *[]types.TrafficMirrorTarget, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TrafficMirrorTarget + var sv []types.TrafficMirrorTarget if *v == nil { - sv = make([]*types.TrafficMirrorTarget, 0) + sv = make([]types.TrafficMirrorTarget, 0) } else { sv = *v } @@ -85280,11 +86048,13 @@ func awsEc2query_deserializeDocumentTrafficMirrorTargetSet(v *[]*types.TrafficMi } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TrafficMirrorTarget + var col types.TrafficMirrorTarget nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorTarget(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTrafficMirrorTarget(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -85297,23 +86067,25 @@ func awsEc2query_deserializeDocumentTrafficMirrorTargetSet(v *[]*types.TrafficMi return nil } -func awsEc2query_deserializeDocumentTrafficMirrorTargetSetUnwrapped(v *[]*types.TrafficMirrorTarget, decoder smithyxml.NodeDecoder) error { - var sv []*types.TrafficMirrorTarget +func awsEc2query_deserializeDocumentTrafficMirrorTargetSetUnwrapped(v *[]types.TrafficMirrorTarget, decoder smithyxml.NodeDecoder) error { + var sv []types.TrafficMirrorTarget if *v == nil { - sv = make([]*types.TrafficMirrorTarget, 0) + sv = make([]types.TrafficMirrorTarget, 0) } else { sv = *v } switch { default: - var mv *types.TrafficMirrorTarget + var mv types.TrafficMirrorTarget t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorTarget(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTrafficMirrorTarget(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -85355,7 +86127,7 @@ func awsEc2query_deserializeDocumentTransitGateway(v **types.TransitGateway, dec if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case strings.EqualFold("description", t.Name.Local): @@ -85371,7 +86143,7 @@ func awsEc2query_deserializeDocumentTransitGateway(v **types.TransitGateway, dec } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("options", t.Name.Local): @@ -85393,7 +86165,7 @@ func awsEc2query_deserializeDocumentTransitGateway(v **types.TransitGateway, dec } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -85428,7 +86200,7 @@ func awsEc2query_deserializeDocumentTransitGateway(v **types.TransitGateway, dec } if val != nil { xtv := string(val) - sv.TransitGatewayArn = &xtv + sv.TransitGatewayArn = ptr.String(xtv) } case strings.EqualFold("transitGatewayId", t.Name.Local): @@ -85444,7 +86216,7 @@ func awsEc2query_deserializeDocumentTransitGateway(v **types.TransitGateway, dec } if val != nil { xtv := string(val) - sv.TransitGatewayId = &xtv + sv.TransitGatewayId = ptr.String(xtv) } default: @@ -85492,7 +86264,7 @@ func awsEc2query_deserializeDocumentTransitGatewayAssociation(v **types.TransitG } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("resourceType", t.Name.Local): @@ -85534,7 +86306,7 @@ func awsEc2query_deserializeDocumentTransitGatewayAssociation(v **types.TransitG } if val != nil { xtv := string(val) - sv.TransitGatewayAttachmentId = &xtv + sv.TransitGatewayAttachmentId = ptr.String(xtv) } case strings.EqualFold("transitGatewayRouteTableId", t.Name.Local): @@ -85550,7 +86322,7 @@ func awsEc2query_deserializeDocumentTransitGatewayAssociation(v **types.TransitG } if val != nil { xtv := string(val) - sv.TransitGatewayRouteTableId = &xtv + sv.TransitGatewayRouteTableId = ptr.String(xtv) } default: @@ -85605,7 +86377,7 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachment(v **types.TransitGa if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case strings.EqualFold("resourceId", t.Name.Local): @@ -85621,7 +86393,7 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachment(v **types.TransitGa } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("resourceOwnerId", t.Name.Local): @@ -85637,7 +86409,7 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachment(v **types.TransitGa } if val != nil { xtv := string(val) - sv.ResourceOwnerId = &xtv + sv.ResourceOwnerId = ptr.String(xtv) } case strings.EqualFold("resourceType", t.Name.Local): @@ -85685,7 +86457,7 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachment(v **types.TransitGa } if val != nil { xtv := string(val) - sv.TransitGatewayAttachmentId = &xtv + sv.TransitGatewayAttachmentId = ptr.String(xtv) } case strings.EqualFold("transitGatewayId", t.Name.Local): @@ -85701,7 +86473,7 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachment(v **types.TransitGa } if val != nil { xtv := string(val) - sv.TransitGatewayId = &xtv + sv.TransitGatewayId = ptr.String(xtv) } case strings.EqualFold("transitGatewayOwnerId", t.Name.Local): @@ -85717,7 +86489,7 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachment(v **types.TransitGa } if val != nil { xtv := string(val) - sv.TransitGatewayOwnerId = &xtv + sv.TransitGatewayOwnerId = ptr.String(xtv) } default: @@ -85778,7 +86550,7 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachmentAssociation(v **type } if val != nil { xtv := string(val) - sv.TransitGatewayRouteTableId = &xtv + sv.TransitGatewayRouteTableId = ptr.String(xtv) } default: @@ -85791,13 +86563,13 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachmentAssociation(v **type return nil } -func awsEc2query_deserializeDocumentTransitGatewayAttachmentList(v *[]*types.TransitGatewayAttachment, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayAttachmentList(v *[]types.TransitGatewayAttachment, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGatewayAttachment + var sv []types.TransitGatewayAttachment if *v == nil { - sv = make([]*types.TransitGatewayAttachment, 0) + sv = make([]types.TransitGatewayAttachment, 0) } else { sv = *v } @@ -85813,11 +86585,13 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachmentList(v *[]*types.Tra } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGatewayAttachment + var col types.TransitGatewayAttachment nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayAttachment(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGatewayAttachment(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -85830,23 +86604,25 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachmentList(v *[]*types.Tra return nil } -func awsEc2query_deserializeDocumentTransitGatewayAttachmentListUnwrapped(v *[]*types.TransitGatewayAttachment, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGatewayAttachment +func awsEc2query_deserializeDocumentTransitGatewayAttachmentListUnwrapped(v *[]types.TransitGatewayAttachment, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGatewayAttachment if *v == nil { - sv = make([]*types.TransitGatewayAttachment, 0) + sv = make([]types.TransitGatewayAttachment, 0) } else { sv = *v } switch { default: - var mv *types.TransitGatewayAttachment + var mv types.TransitGatewayAttachment t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayAttachment(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGatewayAttachment(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -85900,7 +86676,7 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagation(v **type } if val != nil { xtv := string(val) - sv.TransitGatewayRouteTableId = &xtv + sv.TransitGatewayRouteTableId = ptr.String(xtv) } default: @@ -85913,13 +86689,13 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagation(v **type return nil } -func awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagationList(v *[]*types.TransitGatewayAttachmentPropagation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagationList(v *[]types.TransitGatewayAttachmentPropagation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGatewayAttachmentPropagation + var sv []types.TransitGatewayAttachmentPropagation if *v == nil { - sv = make([]*types.TransitGatewayAttachmentPropagation, 0) + sv = make([]types.TransitGatewayAttachmentPropagation, 0) } else { sv = *v } @@ -85935,11 +86711,13 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagationList(v *[ } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGatewayAttachmentPropagation + var col types.TransitGatewayAttachmentPropagation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -85952,35 +86730,37 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagationList(v *[ return nil } -func awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagationListUnwrapped(v *[]*types.TransitGatewayAttachmentPropagation, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGatewayAttachmentPropagation +func awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagationListUnwrapped(v *[]types.TransitGatewayAttachmentPropagation, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGatewayAttachmentPropagation if *v == nil { - sv = make([]*types.TransitGatewayAttachmentPropagation, 0) + sv = make([]types.TransitGatewayAttachmentPropagation, 0) } else { sv = *v } switch { default: - var mv *types.TransitGatewayAttachmentPropagation + var mv types.TransitGatewayAttachmentPropagation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentTransitGatewayList(v *[]*types.TransitGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayList(v *[]types.TransitGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGateway + var sv []types.TransitGateway if *v == nil { - sv = make([]*types.TransitGateway, 0) + sv = make([]types.TransitGateway, 0) } else { sv = *v } @@ -85996,11 +86776,13 @@ func awsEc2query_deserializeDocumentTransitGatewayList(v *[]*types.TransitGatewa } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGateway + var col types.TransitGateway nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGateway(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGateway(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -86013,23 +86795,25 @@ func awsEc2query_deserializeDocumentTransitGatewayList(v *[]*types.TransitGatewa return nil } -func awsEc2query_deserializeDocumentTransitGatewayListUnwrapped(v *[]*types.TransitGateway, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGateway +func awsEc2query_deserializeDocumentTransitGatewayListUnwrapped(v *[]types.TransitGateway, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGateway if *v == nil { - sv = make([]*types.TransitGateway, 0) + sv = make([]types.TransitGateway, 0) } else { sv = *v } switch { default: - var mv *types.TransitGateway + var mv types.TransitGateway t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGateway(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGateway(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -86076,7 +86860,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDeregisteredGroupMemb } if val != nil { xtv := string(val) - sv.GroupIpAddress = &xtv + sv.GroupIpAddress = ptr.String(xtv) } case strings.EqualFold("transitGatewayMulticastDomainId", t.Name.Local): @@ -86092,7 +86876,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDeregisteredGroupMemb } if val != nil { xtv := string(val) - sv.TransitGatewayMulticastDomainId = &xtv + sv.TransitGatewayMulticastDomainId = ptr.String(xtv) } default: @@ -86146,7 +86930,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDeregisteredGroupSour } if val != nil { xtv := string(val) - sv.GroupIpAddress = &xtv + sv.GroupIpAddress = ptr.String(xtv) } case strings.EqualFold("transitGatewayMulticastDomainId", t.Name.Local): @@ -86162,7 +86946,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDeregisteredGroupSour } if val != nil { xtv := string(val) - sv.TransitGatewayMulticastDomainId = &xtv + sv.TransitGatewayMulticastDomainId = ptr.String(xtv) } default: @@ -86211,7 +86995,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomain(v **types.Tran if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case strings.EqualFold("state", t.Name.Local): @@ -86246,7 +87030,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomain(v **types.Tran } if val != nil { xtv := string(val) - sv.TransitGatewayId = &xtv + sv.TransitGatewayId = ptr.String(xtv) } case strings.EqualFold("transitGatewayMulticastDomainId", t.Name.Local): @@ -86262,7 +87046,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomain(v **types.Tran } if val != nil { xtv := string(val) - sv.TransitGatewayMulticastDomainId = &xtv + sv.TransitGatewayMulticastDomainId = ptr.String(xtv) } default: @@ -86310,7 +87094,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociation(v * } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("resourceType", t.Name.Local): @@ -86345,7 +87129,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociation(v * } if val != nil { xtv := string(val) - sv.TransitGatewayAttachmentId = &xtv + sv.TransitGatewayAttachmentId = ptr.String(xtv) } default: @@ -86358,13 +87142,13 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociation(v * return nil } -func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociationList(v *[]*types.TransitGatewayMulticastDomainAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociationList(v *[]types.TransitGatewayMulticastDomainAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGatewayMulticastDomainAssociation + var sv []types.TransitGatewayMulticastDomainAssociation if *v == nil { - sv = make([]*types.TransitGatewayMulticastDomainAssociation, 0) + sv = make([]types.TransitGatewayMulticastDomainAssociation, 0) } else { sv = *v } @@ -86380,11 +87164,13 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociationList } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGatewayMulticastDomainAssociation + var col types.TransitGatewayMulticastDomainAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -86397,23 +87183,25 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociationList return nil } -func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociationListUnwrapped(v *[]*types.TransitGatewayMulticastDomainAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGatewayMulticastDomainAssociation +func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociationListUnwrapped(v *[]types.TransitGatewayMulticastDomainAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGatewayMulticastDomainAssociation if *v == nil { - sv = make([]*types.TransitGatewayMulticastDomainAssociation, 0) + sv = make([]types.TransitGatewayMulticastDomainAssociation, 0) } else { sv = *v } switch { default: - var mv *types.TransitGatewayMulticastDomainAssociation + var mv types.TransitGatewayMulticastDomainAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -86454,7 +87242,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociations(v } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("resourceType", t.Name.Local): @@ -86489,7 +87277,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociations(v } if val != nil { xtv := string(val) - sv.TransitGatewayAttachmentId = &xtv + sv.TransitGatewayAttachmentId = ptr.String(xtv) } case strings.EqualFold("transitGatewayMulticastDomainId", t.Name.Local): @@ -86505,7 +87293,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociations(v } if val != nil { xtv := string(val) - sv.TransitGatewayMulticastDomainId = &xtv + sv.TransitGatewayMulticastDomainId = ptr.String(xtv) } default: @@ -86518,13 +87306,13 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociations(v return nil } -func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainList(v *[]*types.TransitGatewayMulticastDomain, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainList(v *[]types.TransitGatewayMulticastDomain, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGatewayMulticastDomain + var sv []types.TransitGatewayMulticastDomain if *v == nil { - sv = make([]*types.TransitGatewayMulticastDomain, 0) + sv = make([]types.TransitGatewayMulticastDomain, 0) } else { sv = *v } @@ -86540,11 +87328,13 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainList(v *[]*type } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGatewayMulticastDomain + var col types.TransitGatewayMulticastDomain nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomain(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomain(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -86557,23 +87347,25 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainList(v *[]*type return nil } -func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainListUnwrapped(v *[]*types.TransitGatewayMulticastDomain, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGatewayMulticastDomain +func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainListUnwrapped(v *[]types.TransitGatewayMulticastDomain, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGatewayMulticastDomain if *v == nil { - sv = make([]*types.TransitGatewayMulticastDomain, 0) + sv = make([]types.TransitGatewayMulticastDomain, 0) } else { sv = *v } switch { default: - var mv *types.TransitGatewayMulticastDomain + var mv types.TransitGatewayMulticastDomain t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomain(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomain(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -86614,7 +87406,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(v **types.Trans } if val != nil { xtv := string(val) - sv.GroupIpAddress = &xtv + sv.GroupIpAddress = ptr.String(xtv) } case strings.EqualFold("groupMember", t.Name.Local): @@ -86630,7 +87422,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(v **types.Trans if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.GroupMember = &xtv + sv.GroupMember = xtv } case strings.EqualFold("groupSource", t.Name.Local): @@ -86646,7 +87438,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(v **types.Trans if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.GroupSource = &xtv + sv.GroupSource = xtv } case strings.EqualFold("memberType", t.Name.Local): @@ -86675,7 +87467,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(v **types.Trans } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } case strings.EqualFold("resourceId", t.Name.Local): @@ -86691,7 +87483,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(v **types.Trans } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("resourceType", t.Name.Local): @@ -86733,7 +87525,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(v **types.Trans } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local): @@ -86749,7 +87541,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(v **types.Trans } if val != nil { xtv := string(val) - sv.TransitGatewayAttachmentId = &xtv + sv.TransitGatewayAttachmentId = ptr.String(xtv) } default: @@ -86762,13 +87554,13 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(v **types.Trans return nil } -func awsEc2query_deserializeDocumentTransitGatewayMulticastGroupList(v *[]*types.TransitGatewayMulticastGroup, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayMulticastGroupList(v *[]types.TransitGatewayMulticastGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGatewayMulticastGroup + var sv []types.TransitGatewayMulticastGroup if *v == nil { - sv = make([]*types.TransitGatewayMulticastGroup, 0) + sv = make([]types.TransitGatewayMulticastGroup, 0) } else { sv = *v } @@ -86784,11 +87576,13 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastGroupList(v *[]*types } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGatewayMulticastGroup + var col types.TransitGatewayMulticastGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -86801,23 +87595,25 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastGroupList(v *[]*types return nil } -func awsEc2query_deserializeDocumentTransitGatewayMulticastGroupListUnwrapped(v *[]*types.TransitGatewayMulticastGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGatewayMulticastGroup +func awsEc2query_deserializeDocumentTransitGatewayMulticastGroupListUnwrapped(v *[]types.TransitGatewayMulticastGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGatewayMulticastGroup if *v == nil { - sv = make([]*types.TransitGatewayMulticastGroup, 0) + sv = make([]types.TransitGatewayMulticastGroup, 0) } else { sv = *v } switch { default: - var mv *types.TransitGatewayMulticastGroup + var mv types.TransitGatewayMulticastGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -86858,7 +87654,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastRegisteredGroupMember } if val != nil { xtv := string(val) - sv.GroupIpAddress = &xtv + sv.GroupIpAddress = ptr.String(xtv) } case strings.EqualFold("registeredNetworkInterfaceIds", t.Name.Local): @@ -86880,7 +87676,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastRegisteredGroupMember } if val != nil { xtv := string(val) - sv.TransitGatewayMulticastDomainId = &xtv + sv.TransitGatewayMulticastDomainId = ptr.String(xtv) } default: @@ -86928,7 +87724,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastRegisteredGroupSource } if val != nil { xtv := string(val) - sv.GroupIpAddress = &xtv + sv.GroupIpAddress = ptr.String(xtv) } case strings.EqualFold("registeredNetworkInterfaceIds", t.Name.Local): @@ -86950,7 +87746,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastRegisteredGroupSource } if val != nil { xtv := string(val) - sv.TransitGatewayMulticastDomainId = &xtv + sv.TransitGatewayMulticastDomainId = ptr.String(xtv) } default: @@ -86999,7 +87795,7 @@ func awsEc2query_deserializeDocumentTransitGatewayOptions(v **types.TransitGatew if err != nil { return err } - sv.AmazonSideAsn = &i64 + sv.AmazonSideAsn = i64 } case strings.EqualFold("associationDefaultRouteTableId", t.Name.Local): @@ -87015,7 +87811,7 @@ func awsEc2query_deserializeDocumentTransitGatewayOptions(v **types.TransitGatew } if val != nil { xtv := string(val) - sv.AssociationDefaultRouteTableId = &xtv + sv.AssociationDefaultRouteTableId = ptr.String(xtv) } case strings.EqualFold("autoAcceptSharedAttachments", t.Name.Local): @@ -87096,7 +87892,7 @@ func awsEc2query_deserializeDocumentTransitGatewayOptions(v **types.TransitGatew } if val != nil { xtv := string(val) - sv.PropagationDefaultRouteTableId = &xtv + sv.PropagationDefaultRouteTableId = ptr.String(xtv) } case strings.EqualFold("vpnEcmpSupport", t.Name.Local): @@ -87164,7 +87960,7 @@ func awsEc2query_deserializeDocumentTransitGatewayPeeringAttachment(v **types.Tr if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case strings.EqualFold("requesterTgwInfo", t.Name.Local): @@ -87211,7 +88007,7 @@ func awsEc2query_deserializeDocumentTransitGatewayPeeringAttachment(v **types.Tr } if val != nil { xtv := string(val) - sv.TransitGatewayAttachmentId = &xtv + sv.TransitGatewayAttachmentId = ptr.String(xtv) } default: @@ -87224,13 +88020,13 @@ func awsEc2query_deserializeDocumentTransitGatewayPeeringAttachment(v **types.Tr return nil } -func awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentList(v *[]*types.TransitGatewayPeeringAttachment, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentList(v *[]types.TransitGatewayPeeringAttachment, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGatewayPeeringAttachment + var sv []types.TransitGatewayPeeringAttachment if *v == nil { - sv = make([]*types.TransitGatewayPeeringAttachment, 0) + sv = make([]types.TransitGatewayPeeringAttachment, 0) } else { sv = *v } @@ -87246,11 +88042,13 @@ func awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentList(v *[]*ty } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGatewayPeeringAttachment + var col types.TransitGatewayPeeringAttachment nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayPeeringAttachment(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGatewayPeeringAttachment(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -87263,23 +88061,25 @@ func awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentList(v *[]*ty return nil } -func awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentListUnwrapped(v *[]*types.TransitGatewayPeeringAttachment, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGatewayPeeringAttachment +func awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentListUnwrapped(v *[]types.TransitGatewayPeeringAttachment, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGatewayPeeringAttachment if *v == nil { - sv = make([]*types.TransitGatewayPeeringAttachment, 0) + sv = make([]types.TransitGatewayPeeringAttachment, 0) } else { sv = *v } switch { default: - var mv *types.TransitGatewayPeeringAttachment + var mv types.TransitGatewayPeeringAttachment t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayPeeringAttachment(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGatewayPeeringAttachment(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -87320,7 +88120,7 @@ func awsEc2query_deserializeDocumentTransitGatewayPrefixListAttachment(v **types } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("resourceType", t.Name.Local): @@ -87349,7 +88149,7 @@ func awsEc2query_deserializeDocumentTransitGatewayPrefixListAttachment(v **types } if val != nil { xtv := string(val) - sv.TransitGatewayAttachmentId = &xtv + sv.TransitGatewayAttachmentId = ptr.String(xtv) } default: @@ -87397,7 +88197,7 @@ func awsEc2query_deserializeDocumentTransitGatewayPrefixListReference(v **types. if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Blackhole = &xtv + sv.Blackhole = xtv } case strings.EqualFold("prefixListId", t.Name.Local): @@ -87413,7 +88213,7 @@ func awsEc2query_deserializeDocumentTransitGatewayPrefixListReference(v **types. } if val != nil { xtv := string(val) - sv.PrefixListId = &xtv + sv.PrefixListId = ptr.String(xtv) } case strings.EqualFold("prefixListOwnerId", t.Name.Local): @@ -87429,7 +88229,7 @@ func awsEc2query_deserializeDocumentTransitGatewayPrefixListReference(v **types. } if val != nil { xtv := string(val) - sv.PrefixListOwnerId = &xtv + sv.PrefixListOwnerId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -87464,7 +88264,7 @@ func awsEc2query_deserializeDocumentTransitGatewayPrefixListReference(v **types. } if val != nil { xtv := string(val) - sv.TransitGatewayRouteTableId = &xtv + sv.TransitGatewayRouteTableId = ptr.String(xtv) } default: @@ -87477,13 +88277,13 @@ func awsEc2query_deserializeDocumentTransitGatewayPrefixListReference(v **types. return nil } -func awsEc2query_deserializeDocumentTransitGatewayPrefixListReferenceSet(v *[]*types.TransitGatewayPrefixListReference, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayPrefixListReferenceSet(v *[]types.TransitGatewayPrefixListReference, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGatewayPrefixListReference + var sv []types.TransitGatewayPrefixListReference if *v == nil { - sv = make([]*types.TransitGatewayPrefixListReference, 0) + sv = make([]types.TransitGatewayPrefixListReference, 0) } else { sv = *v } @@ -87499,11 +88299,13 @@ func awsEc2query_deserializeDocumentTransitGatewayPrefixListReferenceSet(v *[]*t } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGatewayPrefixListReference + var col types.TransitGatewayPrefixListReference nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayPrefixListReference(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGatewayPrefixListReference(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -87516,23 +88318,25 @@ func awsEc2query_deserializeDocumentTransitGatewayPrefixListReferenceSet(v *[]*t return nil } -func awsEc2query_deserializeDocumentTransitGatewayPrefixListReferenceSetUnwrapped(v *[]*types.TransitGatewayPrefixListReference, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGatewayPrefixListReference +func awsEc2query_deserializeDocumentTransitGatewayPrefixListReferenceSetUnwrapped(v *[]types.TransitGatewayPrefixListReference, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGatewayPrefixListReference if *v == nil { - sv = make([]*types.TransitGatewayPrefixListReference, 0) + sv = make([]types.TransitGatewayPrefixListReference, 0) } else { sv = *v } switch { default: - var mv *types.TransitGatewayPrefixListReference + var mv types.TransitGatewayPrefixListReference t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayPrefixListReference(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGatewayPrefixListReference(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -87573,7 +88377,7 @@ func awsEc2query_deserializeDocumentTransitGatewayPropagation(v **types.TransitG } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("resourceType", t.Name.Local): @@ -87615,7 +88419,7 @@ func awsEc2query_deserializeDocumentTransitGatewayPropagation(v **types.TransitG } if val != nil { xtv := string(val) - sv.TransitGatewayAttachmentId = &xtv + sv.TransitGatewayAttachmentId = ptr.String(xtv) } case strings.EqualFold("transitGatewayRouteTableId", t.Name.Local): @@ -87631,7 +88435,7 @@ func awsEc2query_deserializeDocumentTransitGatewayPropagation(v **types.TransitG } if val != nil { xtv := string(val) - sv.TransitGatewayRouteTableId = &xtv + sv.TransitGatewayRouteTableId = ptr.String(xtv) } default: @@ -87679,7 +88483,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRoute(v **types.TransitGateway } if val != nil { xtv := string(val) - sv.DestinationCidrBlock = &xtv + sv.DestinationCidrBlock = ptr.String(xtv) } case strings.EqualFold("prefixListId", t.Name.Local): @@ -87695,7 +88499,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRoute(v **types.TransitGateway } if val != nil { xtv := string(val) - sv.PrefixListId = &xtv + sv.PrefixListId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -87775,7 +88579,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteAttachment(v **types.Tran } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("resourceType", t.Name.Local): @@ -87804,7 +88608,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteAttachment(v **types.Tran } if val != nil { xtv := string(val) - sv.TransitGatewayAttachmentId = &xtv + sv.TransitGatewayAttachmentId = ptr.String(xtv) } default: @@ -87817,13 +88621,13 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteAttachment(v **types.Tran return nil } -func awsEc2query_deserializeDocumentTransitGatewayRouteAttachmentList(v *[]*types.TransitGatewayRouteAttachment, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayRouteAttachmentList(v *[]types.TransitGatewayRouteAttachment, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGatewayRouteAttachment + var sv []types.TransitGatewayRouteAttachment if *v == nil { - sv = make([]*types.TransitGatewayRouteAttachment, 0) + sv = make([]types.TransitGatewayRouteAttachment, 0) } else { sv = *v } @@ -87839,11 +88643,13 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteAttachmentList(v *[]*type } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGatewayRouteAttachment + var col types.TransitGatewayRouteAttachment nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteAttachment(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGatewayRouteAttachment(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -87856,35 +88662,37 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteAttachmentList(v *[]*type return nil } -func awsEc2query_deserializeDocumentTransitGatewayRouteAttachmentListUnwrapped(v *[]*types.TransitGatewayRouteAttachment, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGatewayRouteAttachment +func awsEc2query_deserializeDocumentTransitGatewayRouteAttachmentListUnwrapped(v *[]types.TransitGatewayRouteAttachment, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGatewayRouteAttachment if *v == nil { - sv = make([]*types.TransitGatewayRouteAttachment, 0) + sv = make([]types.TransitGatewayRouteAttachment, 0) } else { sv = *v } switch { default: - var mv *types.TransitGatewayRouteAttachment + var mv types.TransitGatewayRouteAttachment t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteAttachment(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGatewayRouteAttachment(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentTransitGatewayRouteList(v *[]*types.TransitGatewayRoute, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayRouteList(v *[]types.TransitGatewayRoute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGatewayRoute + var sv []types.TransitGatewayRoute if *v == nil { - sv = make([]*types.TransitGatewayRoute, 0) + sv = make([]types.TransitGatewayRoute, 0) } else { sv = *v } @@ -87900,11 +88708,13 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteList(v *[]*types.TransitG } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGatewayRoute + var col types.TransitGatewayRoute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRoute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGatewayRoute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -87917,23 +88727,25 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteList(v *[]*types.TransitG return nil } -func awsEc2query_deserializeDocumentTransitGatewayRouteListUnwrapped(v *[]*types.TransitGatewayRoute, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGatewayRoute +func awsEc2query_deserializeDocumentTransitGatewayRouteListUnwrapped(v *[]types.TransitGatewayRoute, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGatewayRoute if *v == nil { - sv = make([]*types.TransitGatewayRoute, 0) + sv = make([]types.TransitGatewayRoute, 0) } else { sv = *v } switch { default: - var mv *types.TransitGatewayRoute + var mv types.TransitGatewayRoute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRoute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGatewayRoute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -87975,7 +88787,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTable(v **types.TransitGa if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case strings.EqualFold("defaultAssociationRouteTable", t.Name.Local): @@ -87991,7 +88803,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTable(v **types.TransitGa if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DefaultAssociationRouteTable = &xtv + sv.DefaultAssociationRouteTable = xtv } case strings.EqualFold("defaultPropagationRouteTable", t.Name.Local): @@ -88007,7 +88819,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTable(v **types.TransitGa if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DefaultPropagationRouteTable = &xtv + sv.DefaultPropagationRouteTable = xtv } case strings.EqualFold("state", t.Name.Local): @@ -88042,7 +88854,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTable(v **types.TransitGa } if val != nil { xtv := string(val) - sv.TransitGatewayId = &xtv + sv.TransitGatewayId = ptr.String(xtv) } case strings.EqualFold("transitGatewayRouteTableId", t.Name.Local): @@ -88058,7 +88870,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTable(v **types.TransitGa } if val != nil { xtv := string(val) - sv.TransitGatewayRouteTableId = &xtv + sv.TransitGatewayRouteTableId = ptr.String(xtv) } default: @@ -88106,7 +88918,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociation(v **type } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("resourceType", t.Name.Local): @@ -88148,7 +88960,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociation(v **type } if val != nil { xtv := string(val) - sv.TransitGatewayAttachmentId = &xtv + sv.TransitGatewayAttachmentId = ptr.String(xtv) } default: @@ -88161,13 +88973,13 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociation(v **type return nil } -func awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociationList(v *[]*types.TransitGatewayRouteTableAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociationList(v *[]types.TransitGatewayRouteTableAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGatewayRouteTableAssociation + var sv []types.TransitGatewayRouteTableAssociation if *v == nil { - sv = make([]*types.TransitGatewayRouteTableAssociation, 0) + sv = make([]types.TransitGatewayRouteTableAssociation, 0) } else { sv = *v } @@ -88183,11 +88995,13 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociationList(v *[ } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGatewayRouteTableAssociation + var col types.TransitGatewayRouteTableAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -88200,35 +89014,37 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociationList(v *[ return nil } -func awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociationListUnwrapped(v *[]*types.TransitGatewayRouteTableAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGatewayRouteTableAssociation +func awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociationListUnwrapped(v *[]types.TransitGatewayRouteTableAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGatewayRouteTableAssociation if *v == nil { - sv = make([]*types.TransitGatewayRouteTableAssociation, 0) + sv = make([]types.TransitGatewayRouteTableAssociation, 0) } else { sv = *v } switch { default: - var mv *types.TransitGatewayRouteTableAssociation + var mv types.TransitGatewayRouteTableAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentTransitGatewayRouteTableList(v *[]*types.TransitGatewayRouteTable, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayRouteTableList(v *[]types.TransitGatewayRouteTable, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGatewayRouteTable + var sv []types.TransitGatewayRouteTable if *v == nil { - sv = make([]*types.TransitGatewayRouteTable, 0) + sv = make([]types.TransitGatewayRouteTable, 0) } else { sv = *v } @@ -88244,11 +89060,13 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTableList(v *[]*types.Tra } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGatewayRouteTable + var col types.TransitGatewayRouteTable nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteTable(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGatewayRouteTable(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -88261,23 +89079,25 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTableList(v *[]*types.Tra return nil } -func awsEc2query_deserializeDocumentTransitGatewayRouteTableListUnwrapped(v *[]*types.TransitGatewayRouteTable, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGatewayRouteTable +func awsEc2query_deserializeDocumentTransitGatewayRouteTableListUnwrapped(v *[]types.TransitGatewayRouteTable, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGatewayRouteTable if *v == nil { - sv = make([]*types.TransitGatewayRouteTable, 0) + sv = make([]types.TransitGatewayRouteTable, 0) } else { sv = *v } switch { default: - var mv *types.TransitGatewayRouteTable + var mv types.TransitGatewayRouteTable t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteTable(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGatewayRouteTable(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -88318,7 +89138,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagation(v **type } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("resourceType", t.Name.Local): @@ -88360,7 +89180,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagation(v **type } if val != nil { xtv := string(val) - sv.TransitGatewayAttachmentId = &xtv + sv.TransitGatewayAttachmentId = ptr.String(xtv) } default: @@ -88373,13 +89193,13 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagation(v **type return nil } -func awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagationList(v *[]*types.TransitGatewayRouteTablePropagation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagationList(v *[]types.TransitGatewayRouteTablePropagation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGatewayRouteTablePropagation + var sv []types.TransitGatewayRouteTablePropagation if *v == nil { - sv = make([]*types.TransitGatewayRouteTablePropagation, 0) + sv = make([]types.TransitGatewayRouteTablePropagation, 0) } else { sv = *v } @@ -88395,11 +89215,13 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagationList(v *[ } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGatewayRouteTablePropagation + var col types.TransitGatewayRouteTablePropagation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -88412,23 +89234,25 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagationList(v *[ return nil } -func awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagationListUnwrapped(v *[]*types.TransitGatewayRouteTablePropagation, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGatewayRouteTablePropagation +func awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagationListUnwrapped(v *[]types.TransitGatewayRouteTablePropagation, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGatewayRouteTablePropagation if *v == nil { - sv = make([]*types.TransitGatewayRouteTablePropagation, 0) + sv = make([]types.TransitGatewayRouteTablePropagation, 0) } else { sv = *v } switch { default: - var mv *types.TransitGatewayRouteTablePropagation + var mv types.TransitGatewayRouteTablePropagation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -88470,7 +89294,7 @@ func awsEc2query_deserializeDocumentTransitGatewayVpcAttachment(v **types.Transi if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case strings.EqualFold("options", t.Name.Local): @@ -88517,7 +89341,7 @@ func awsEc2query_deserializeDocumentTransitGatewayVpcAttachment(v **types.Transi } if val != nil { xtv := string(val) - sv.TransitGatewayAttachmentId = &xtv + sv.TransitGatewayAttachmentId = ptr.String(xtv) } case strings.EqualFold("transitGatewayId", t.Name.Local): @@ -88533,7 +89357,7 @@ func awsEc2query_deserializeDocumentTransitGatewayVpcAttachment(v **types.Transi } if val != nil { xtv := string(val) - sv.TransitGatewayId = &xtv + sv.TransitGatewayId = ptr.String(xtv) } case strings.EqualFold("vpcId", t.Name.Local): @@ -88549,7 +89373,7 @@ func awsEc2query_deserializeDocumentTransitGatewayVpcAttachment(v **types.Transi } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } case strings.EqualFold("vpcOwnerId", t.Name.Local): @@ -88565,7 +89389,7 @@ func awsEc2query_deserializeDocumentTransitGatewayVpcAttachment(v **types.Transi } if val != nil { xtv := string(val) - sv.VpcOwnerId = &xtv + sv.VpcOwnerId = ptr.String(xtv) } default: @@ -88578,13 +89402,13 @@ func awsEc2query_deserializeDocumentTransitGatewayVpcAttachment(v **types.Transi return nil } -func awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentList(v *[]*types.TransitGatewayVpcAttachment, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentList(v *[]types.TransitGatewayVpcAttachment, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TransitGatewayVpcAttachment + var sv []types.TransitGatewayVpcAttachment if *v == nil { - sv = make([]*types.TransitGatewayVpcAttachment, 0) + sv = make([]types.TransitGatewayVpcAttachment, 0) } else { sv = *v } @@ -88600,11 +89424,13 @@ func awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentList(v *[]*types. } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TransitGatewayVpcAttachment + var col types.TransitGatewayVpcAttachment nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayVpcAttachment(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTransitGatewayVpcAttachment(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -88617,23 +89443,25 @@ func awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentList(v *[]*types. return nil } -func awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentListUnwrapped(v *[]*types.TransitGatewayVpcAttachment, decoder smithyxml.NodeDecoder) error { - var sv []*types.TransitGatewayVpcAttachment +func awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentListUnwrapped(v *[]types.TransitGatewayVpcAttachment, decoder smithyxml.NodeDecoder) error { + var sv []types.TransitGatewayVpcAttachment if *v == nil { - sv = make([]*types.TransitGatewayVpcAttachment, 0) + sv = make([]types.TransitGatewayVpcAttachment, 0) } else { sv = *v } switch { default: - var mv *types.TransitGatewayVpcAttachment + var mv types.TransitGatewayVpcAttachment t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayVpcAttachment(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTransitGatewayVpcAttachment(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -88745,7 +89573,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder } if val != nil { xtv := string(val) - sv.DpdTimeoutAction = &xtv + sv.DpdTimeoutAction = ptr.String(xtv) } case strings.EqualFold("dpdTimeoutSeconds", t.Name.Local): @@ -88762,7 +89590,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder if err != nil { return err } - sv.DpdTimeoutSeconds = ptr.Int32(int32(i64)) + sv.DpdTimeoutSeconds = int32(i64) } case strings.EqualFold("ikeVersionSet", t.Name.Local): @@ -88784,7 +89612,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder } if val != nil { xtv := string(val) - sv.OutsideIpAddress = &xtv + sv.OutsideIpAddress = ptr.String(xtv) } case strings.EqualFold("phase1DHGroupNumberSet", t.Name.Local): @@ -88819,7 +89647,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder if err != nil { return err } - sv.Phase1LifetimeSeconds = ptr.Int32(int32(i64)) + sv.Phase1LifetimeSeconds = int32(i64) } case strings.EqualFold("phase2DHGroupNumberSet", t.Name.Local): @@ -88854,7 +89682,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder if err != nil { return err } - sv.Phase2LifetimeSeconds = ptr.Int32(int32(i64)) + sv.Phase2LifetimeSeconds = int32(i64) } case strings.EqualFold("preSharedKey", t.Name.Local): @@ -88870,7 +89698,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder } if val != nil { xtv := string(val) - sv.PreSharedKey = &xtv + sv.PreSharedKey = ptr.String(xtv) } case strings.EqualFold("rekeyFuzzPercentage", t.Name.Local): @@ -88887,7 +89715,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder if err != nil { return err } - sv.RekeyFuzzPercentage = ptr.Int32(int32(i64)) + sv.RekeyFuzzPercentage = int32(i64) } case strings.EqualFold("rekeyMarginTimeSeconds", t.Name.Local): @@ -88904,7 +89732,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder if err != nil { return err } - sv.RekeyMarginTimeSeconds = ptr.Int32(int32(i64)) + sv.RekeyMarginTimeSeconds = int32(i64) } case strings.EqualFold("replayWindowSize", t.Name.Local): @@ -88921,7 +89749,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder if err != nil { return err } - sv.ReplayWindowSize = ptr.Int32(int32(i64)) + sv.ReplayWindowSize = int32(i64) } case strings.EqualFold("startupAction", t.Name.Local): @@ -88937,7 +89765,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder } if val != nil { xtv := string(val) - sv.StartupAction = &xtv + sv.StartupAction = ptr.String(xtv) } case strings.EqualFold("tunnelInsideCidr", t.Name.Local): @@ -88953,7 +89781,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder } if val != nil { xtv := string(val) - sv.TunnelInsideCidr = &xtv + sv.TunnelInsideCidr = ptr.String(xtv) } case strings.EqualFold("tunnelInsideIpv6Cidr", t.Name.Local): @@ -88969,7 +89797,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder } if val != nil { xtv := string(val) - sv.TunnelInsideIpv6Cidr = &xtv + sv.TunnelInsideIpv6Cidr = ptr.String(xtv) } default: @@ -88982,13 +89810,13 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder return nil } -func awsEc2query_deserializeDocumentTunnelOptionsList(v *[]*types.TunnelOption, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentTunnelOptionsList(v *[]types.TunnelOption, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TunnelOption + var sv []types.TunnelOption if *v == nil { - sv = make([]*types.TunnelOption, 0) + sv = make([]types.TunnelOption, 0) } else { sv = *v } @@ -89004,11 +89832,13 @@ func awsEc2query_deserializeDocumentTunnelOptionsList(v *[]*types.TunnelOption, } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.TunnelOption + var col types.TunnelOption nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTunnelOption(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentTunnelOption(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -89021,23 +89851,25 @@ func awsEc2query_deserializeDocumentTunnelOptionsList(v *[]*types.TunnelOption, return nil } -func awsEc2query_deserializeDocumentTunnelOptionsListUnwrapped(v *[]*types.TunnelOption, decoder smithyxml.NodeDecoder) error { - var sv []*types.TunnelOption +func awsEc2query_deserializeDocumentTunnelOptionsListUnwrapped(v *[]types.TunnelOption, decoder smithyxml.NodeDecoder) error { + var sv []types.TunnelOption if *v == nil { - sv = make([]*types.TunnelOption, 0) + sv = make([]types.TunnelOption, 0) } else { sv = *v } switch { default: - var mv *types.TunnelOption + var mv types.TunnelOption t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTunnelOption(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentTunnelOption(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -89084,7 +89916,7 @@ func awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationItem( } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } default: @@ -89145,7 +89977,7 @@ func awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationItemE } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -89158,13 +89990,13 @@ func awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationItemE return nil } -func awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationSet(v *[]*types.UnsuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationSet(v *[]types.UnsuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UnsuccessfulInstanceCreditSpecificationItem + var sv []types.UnsuccessfulInstanceCreditSpecificationItem if *v == nil { - sv = make([]*types.UnsuccessfulInstanceCreditSpecificationItem, 0) + sv = make([]types.UnsuccessfulInstanceCreditSpecificationItem, 0) } else { sv = *v } @@ -89180,11 +90012,13 @@ func awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationSet(v } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.UnsuccessfulInstanceCreditSpecificationItem + var col types.UnsuccessfulInstanceCreditSpecificationItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -89197,23 +90031,25 @@ func awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationSet(v return nil } -func awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationSetUnwrapped(v *[]*types.UnsuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.UnsuccessfulInstanceCreditSpecificationItem +func awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationSetUnwrapped(v *[]types.UnsuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error { + var sv []types.UnsuccessfulInstanceCreditSpecificationItem if *v == nil { - sv = make([]*types.UnsuccessfulInstanceCreditSpecificationItem, 0) + sv = make([]types.UnsuccessfulInstanceCreditSpecificationItem, 0) } else { sv = *v } switch { default: - var mv *types.UnsuccessfulInstanceCreditSpecificationItem + var mv types.UnsuccessfulInstanceCreditSpecificationItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -89260,7 +90096,7 @@ func awsEc2query_deserializeDocumentUnsuccessfulItem(v **types.UnsuccessfulItem, } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } default: @@ -89308,7 +90144,7 @@ func awsEc2query_deserializeDocumentUnsuccessfulItemError(v **types.Unsuccessful } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -89324,7 +90160,7 @@ func awsEc2query_deserializeDocumentUnsuccessfulItemError(v **types.Unsuccessful } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -89337,13 +90173,13 @@ func awsEc2query_deserializeDocumentUnsuccessfulItemError(v **types.Unsuccessful return nil } -func awsEc2query_deserializeDocumentUnsuccessfulItemList(v *[]*types.UnsuccessfulItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentUnsuccessfulItemList(v *[]types.UnsuccessfulItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UnsuccessfulItem + var sv []types.UnsuccessfulItem if *v == nil { - sv = make([]*types.UnsuccessfulItem, 0) + sv = make([]types.UnsuccessfulItem, 0) } else { sv = *v } @@ -89359,11 +90195,13 @@ func awsEc2query_deserializeDocumentUnsuccessfulItemList(v *[]*types.Unsuccessfu } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.UnsuccessfulItem + var col types.UnsuccessfulItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentUnsuccessfulItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentUnsuccessfulItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -89376,35 +90214,37 @@ func awsEc2query_deserializeDocumentUnsuccessfulItemList(v *[]*types.Unsuccessfu return nil } -func awsEc2query_deserializeDocumentUnsuccessfulItemListUnwrapped(v *[]*types.UnsuccessfulItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.UnsuccessfulItem +func awsEc2query_deserializeDocumentUnsuccessfulItemListUnwrapped(v *[]types.UnsuccessfulItem, decoder smithyxml.NodeDecoder) error { + var sv []types.UnsuccessfulItem if *v == nil { - sv = make([]*types.UnsuccessfulItem, 0) + sv = make([]types.UnsuccessfulItem, 0) } else { sv = *v } switch { default: - var mv *types.UnsuccessfulItem + var mv types.UnsuccessfulItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentUnsuccessfulItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentUnsuccessfulItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentUnsuccessfulItemSet(v *[]*types.UnsuccessfulItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentUnsuccessfulItemSet(v *[]types.UnsuccessfulItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UnsuccessfulItem + var sv []types.UnsuccessfulItem if *v == nil { - sv = make([]*types.UnsuccessfulItem, 0) + sv = make([]types.UnsuccessfulItem, 0) } else { sv = *v } @@ -89420,11 +90260,13 @@ func awsEc2query_deserializeDocumentUnsuccessfulItemSet(v *[]*types.Unsuccessful } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.UnsuccessfulItem + var col types.UnsuccessfulItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentUnsuccessfulItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentUnsuccessfulItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -89437,23 +90279,25 @@ func awsEc2query_deserializeDocumentUnsuccessfulItemSet(v *[]*types.Unsuccessful return nil } -func awsEc2query_deserializeDocumentUnsuccessfulItemSetUnwrapped(v *[]*types.UnsuccessfulItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.UnsuccessfulItem +func awsEc2query_deserializeDocumentUnsuccessfulItemSetUnwrapped(v *[]types.UnsuccessfulItem, decoder smithyxml.NodeDecoder) error { + var sv []types.UnsuccessfulItem if *v == nil { - sv = make([]*types.UnsuccessfulItem, 0) + sv = make([]types.UnsuccessfulItem, 0) } else { sv = *v } switch { default: - var mv *types.UnsuccessfulItem + var mv types.UnsuccessfulItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentUnsuccessfulItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentUnsuccessfulItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -89570,7 +90414,7 @@ func awsEc2query_deserializeDocumentUserBucketDetails(v **types.UserBucketDetail } if val != nil { xtv := string(val) - sv.S3Bucket = &xtv + sv.S3Bucket = ptr.String(xtv) } case strings.EqualFold("s3Key", t.Name.Local): @@ -89586,7 +90430,7 @@ func awsEc2query_deserializeDocumentUserBucketDetails(v **types.UserBucketDetail } if val != nil { xtv := string(val) - sv.S3Key = &xtv + sv.S3Key = ptr.String(xtv) } default: @@ -89634,7 +90478,7 @@ func awsEc2query_deserializeDocumentUserIdGroupPair(v **types.UserIdGroupPair, d } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("groupId", t.Name.Local): @@ -89650,7 +90494,7 @@ func awsEc2query_deserializeDocumentUserIdGroupPair(v **types.UserIdGroupPair, d } if val != nil { xtv := string(val) - sv.GroupId = &xtv + sv.GroupId = ptr.String(xtv) } case strings.EqualFold("groupName", t.Name.Local): @@ -89666,7 +90510,7 @@ func awsEc2query_deserializeDocumentUserIdGroupPair(v **types.UserIdGroupPair, d } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } case strings.EqualFold("peeringStatus", t.Name.Local): @@ -89682,7 +90526,7 @@ func awsEc2query_deserializeDocumentUserIdGroupPair(v **types.UserIdGroupPair, d } if val != nil { xtv := string(val) - sv.PeeringStatus = &xtv + sv.PeeringStatus = ptr.String(xtv) } case strings.EqualFold("userId", t.Name.Local): @@ -89698,7 +90542,7 @@ func awsEc2query_deserializeDocumentUserIdGroupPair(v **types.UserIdGroupPair, d } if val != nil { xtv := string(val) - sv.UserId = &xtv + sv.UserId = ptr.String(xtv) } case strings.EqualFold("vpcId", t.Name.Local): @@ -89714,7 +90558,7 @@ func awsEc2query_deserializeDocumentUserIdGroupPair(v **types.UserIdGroupPair, d } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } case strings.EqualFold("vpcPeeringConnectionId", t.Name.Local): @@ -89730,7 +90574,7 @@ func awsEc2query_deserializeDocumentUserIdGroupPair(v **types.UserIdGroupPair, d } if val != nil { xtv := string(val) - sv.VpcPeeringConnectionId = &xtv + sv.VpcPeeringConnectionId = ptr.String(xtv) } default: @@ -89743,13 +90587,13 @@ func awsEc2query_deserializeDocumentUserIdGroupPair(v **types.UserIdGroupPair, d return nil } -func awsEc2query_deserializeDocumentUserIdGroupPairList(v *[]*types.UserIdGroupPair, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentUserIdGroupPairList(v *[]types.UserIdGroupPair, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UserIdGroupPair + var sv []types.UserIdGroupPair if *v == nil { - sv = make([]*types.UserIdGroupPair, 0) + sv = make([]types.UserIdGroupPair, 0) } else { sv = *v } @@ -89765,11 +90609,13 @@ func awsEc2query_deserializeDocumentUserIdGroupPairList(v *[]*types.UserIdGroupP } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.UserIdGroupPair + var col types.UserIdGroupPair nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentUserIdGroupPair(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentUserIdGroupPair(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -89782,35 +90628,37 @@ func awsEc2query_deserializeDocumentUserIdGroupPairList(v *[]*types.UserIdGroupP return nil } -func awsEc2query_deserializeDocumentUserIdGroupPairListUnwrapped(v *[]*types.UserIdGroupPair, decoder smithyxml.NodeDecoder) error { - var sv []*types.UserIdGroupPair +func awsEc2query_deserializeDocumentUserIdGroupPairListUnwrapped(v *[]types.UserIdGroupPair, decoder smithyxml.NodeDecoder) error { + var sv []types.UserIdGroupPair if *v == nil { - sv = make([]*types.UserIdGroupPair, 0) + sv = make([]types.UserIdGroupPair, 0) } else { sv = *v } switch { default: - var mv *types.UserIdGroupPair + var mv types.UserIdGroupPair t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentUserIdGroupPair(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentUserIdGroupPair(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentUserIdGroupPairSet(v *[]*types.UserIdGroupPair, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentUserIdGroupPairSet(v *[]types.UserIdGroupPair, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UserIdGroupPair + var sv []types.UserIdGroupPair if *v == nil { - sv = make([]*types.UserIdGroupPair, 0) + sv = make([]types.UserIdGroupPair, 0) } else { sv = *v } @@ -89826,11 +90674,13 @@ func awsEc2query_deserializeDocumentUserIdGroupPairSet(v *[]*types.UserIdGroupPa } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.UserIdGroupPair + var col types.UserIdGroupPair nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentUserIdGroupPair(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentUserIdGroupPair(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -89843,23 +90693,25 @@ func awsEc2query_deserializeDocumentUserIdGroupPairSet(v *[]*types.UserIdGroupPa return nil } -func awsEc2query_deserializeDocumentUserIdGroupPairSetUnwrapped(v *[]*types.UserIdGroupPair, decoder smithyxml.NodeDecoder) error { - var sv []*types.UserIdGroupPair +func awsEc2query_deserializeDocumentUserIdGroupPairSetUnwrapped(v *[]types.UserIdGroupPair, decoder smithyxml.NodeDecoder) error { + var sv []types.UserIdGroupPair if *v == nil { - sv = make([]*types.UserIdGroupPair, 0) + sv = make([]types.UserIdGroupPair, 0) } else { sv = *v } switch { default: - var mv *types.UserIdGroupPair + var mv types.UserIdGroupPair t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentUserIdGroupPair(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentUserIdGroupPair(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -89900,7 +90752,7 @@ func awsEc2query_deserializeDocumentValidationError(v **types.ValidationError, d } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -89916,7 +90768,7 @@ func awsEc2query_deserializeDocumentValidationError(v **types.ValidationError, d } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -89967,13 +90819,13 @@ func awsEc2query_deserializeDocumentValidationWarning(v **types.ValidationWarnin return nil } -func awsEc2query_deserializeDocumentValueStringList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentValueStringList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -89991,20 +90843,17 @@ func awsEc2query_deserializeDocumentValueStringList(v *[]*string, decoder smithy decoder = memberDecoder for { if strings.EqualFold("item", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -90017,17 +90866,17 @@ func awsEc2query_deserializeDocumentValueStringList(v *[]*string, decoder smithy return nil } -func awsEc2query_deserializeDocumentValueStringListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsEc2query_deserializeDocumentValueStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -90035,14 +90884,11 @@ func awsEc2query_deserializeDocumentValueStringListUnwrapped(v *[]*string, decod return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -90180,7 +91026,7 @@ func awsEc2query_deserializeDocumentVgwTelemetry(v **types.VgwTelemetry, decoder if err != nil { return err } - sv.AcceptedRouteCount = ptr.Int32(int32(i64)) + sv.AcceptedRouteCount = int32(i64) } case strings.EqualFold("certificateArn", t.Name.Local): @@ -90196,7 +91042,7 @@ func awsEc2query_deserializeDocumentVgwTelemetry(v **types.VgwTelemetry, decoder } if val != nil { xtv := string(val) - sv.CertificateArn = &xtv + sv.CertificateArn = ptr.String(xtv) } case strings.EqualFold("lastStatusChange", t.Name.Local): @@ -90213,7 +91059,7 @@ func awsEc2query_deserializeDocumentVgwTelemetry(v **types.VgwTelemetry, decoder if err != nil { return err } - sv.LastStatusChange = &t + sv.LastStatusChange = ptr.Time(t) } case strings.EqualFold("outsideIpAddress", t.Name.Local): @@ -90229,7 +91075,7 @@ func awsEc2query_deserializeDocumentVgwTelemetry(v **types.VgwTelemetry, decoder } if val != nil { xtv := string(val) - sv.OutsideIpAddress = &xtv + sv.OutsideIpAddress = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -90258,7 +91104,7 @@ func awsEc2query_deserializeDocumentVgwTelemetry(v **types.VgwTelemetry, decoder } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } default: @@ -90271,13 +91117,13 @@ func awsEc2query_deserializeDocumentVgwTelemetry(v **types.VgwTelemetry, decoder return nil } -func awsEc2query_deserializeDocumentVgwTelemetryList(v *[]*types.VgwTelemetry, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVgwTelemetryList(v *[]types.VgwTelemetry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VgwTelemetry + var sv []types.VgwTelemetry if *v == nil { - sv = make([]*types.VgwTelemetry, 0) + sv = make([]types.VgwTelemetry, 0) } else { sv = *v } @@ -90293,11 +91139,13 @@ func awsEc2query_deserializeDocumentVgwTelemetryList(v *[]*types.VgwTelemetry, d } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VgwTelemetry + var col types.VgwTelemetry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVgwTelemetry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVgwTelemetry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -90310,23 +91158,25 @@ func awsEc2query_deserializeDocumentVgwTelemetryList(v *[]*types.VgwTelemetry, d return nil } -func awsEc2query_deserializeDocumentVgwTelemetryListUnwrapped(v *[]*types.VgwTelemetry, decoder smithyxml.NodeDecoder) error { - var sv []*types.VgwTelemetry +func awsEc2query_deserializeDocumentVgwTelemetryListUnwrapped(v *[]types.VgwTelemetry, decoder smithyxml.NodeDecoder) error { + var sv []types.VgwTelemetry if *v == nil { - sv = make([]*types.VgwTelemetry, 0) + sv = make([]types.VgwTelemetry, 0) } else { sv = *v } switch { default: - var mv *types.VgwTelemetry + var mv types.VgwTelemetry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVgwTelemetry(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVgwTelemetry(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -90449,7 +91299,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("createTime", t.Name.Local): @@ -90466,7 +91316,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N if err != nil { return err } - sv.CreateTime = &t + sv.CreateTime = ptr.Time(t) } case strings.EqualFold("encrypted", t.Name.Local): @@ -90482,7 +91332,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("fastRestored", t.Name.Local): @@ -90498,7 +91348,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FastRestored = &xtv + sv.FastRestored = xtv } case strings.EqualFold("iops", t.Name.Local): @@ -90515,7 +91365,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N if err != nil { return err } - sv.Iops = ptr.Int32(int32(i64)) + sv.Iops = int32(i64) } case strings.EqualFold("kmsKeyId", t.Name.Local): @@ -90531,7 +91381,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("multiAttachEnabled", t.Name.Local): @@ -90547,7 +91397,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MultiAttachEnabled = &xtv + sv.MultiAttachEnabled = xtv } case strings.EqualFold("outpostArn", t.Name.Local): @@ -90563,7 +91413,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.OutpostArn = &xtv + sv.OutpostArn = ptr.String(xtv) } case strings.EqualFold("size", t.Name.Local): @@ -90580,7 +91430,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N if err != nil { return err } - sv.Size = ptr.Int32(int32(i64)) + sv.Size = int32(i64) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -90596,7 +91446,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -90631,7 +91481,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.VolumeId = &xtv + sv.VolumeId = ptr.String(xtv) } case strings.EqualFold("volumeType", t.Name.Local): @@ -90693,7 +91543,7 @@ func awsEc2query_deserializeDocumentVolumeAttachment(v **types.VolumeAttachment, if err != nil { return err } - sv.AttachTime = &t + sv.AttachTime = ptr.Time(t) } case strings.EqualFold("deleteOnTermination", t.Name.Local): @@ -90709,7 +91559,7 @@ func awsEc2query_deserializeDocumentVolumeAttachment(v **types.VolumeAttachment, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = &xtv + sv.DeleteOnTermination = xtv } case strings.EqualFold("device", t.Name.Local): @@ -90725,7 +91575,7 @@ func awsEc2query_deserializeDocumentVolumeAttachment(v **types.VolumeAttachment, } if val != nil { xtv := string(val) - sv.Device = &xtv + sv.Device = ptr.String(xtv) } case strings.EqualFold("instanceId", t.Name.Local): @@ -90741,7 +91591,7 @@ func awsEc2query_deserializeDocumentVolumeAttachment(v **types.VolumeAttachment, } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -90770,7 +91620,7 @@ func awsEc2query_deserializeDocumentVolumeAttachment(v **types.VolumeAttachment, } if val != nil { xtv := string(val) - sv.VolumeId = &xtv + sv.VolumeId = ptr.String(xtv) } default: @@ -90783,13 +91633,13 @@ func awsEc2query_deserializeDocumentVolumeAttachment(v **types.VolumeAttachment, return nil } -func awsEc2query_deserializeDocumentVolumeAttachmentList(v *[]*types.VolumeAttachment, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVolumeAttachmentList(v *[]types.VolumeAttachment, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VolumeAttachment + var sv []types.VolumeAttachment if *v == nil { - sv = make([]*types.VolumeAttachment, 0) + sv = make([]types.VolumeAttachment, 0) } else { sv = *v } @@ -90805,11 +91655,13 @@ func awsEc2query_deserializeDocumentVolumeAttachmentList(v *[]*types.VolumeAttac } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VolumeAttachment + var col types.VolumeAttachment nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeAttachment(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVolumeAttachment(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -90822,35 +91674,37 @@ func awsEc2query_deserializeDocumentVolumeAttachmentList(v *[]*types.VolumeAttac return nil } -func awsEc2query_deserializeDocumentVolumeAttachmentListUnwrapped(v *[]*types.VolumeAttachment, decoder smithyxml.NodeDecoder) error { - var sv []*types.VolumeAttachment +func awsEc2query_deserializeDocumentVolumeAttachmentListUnwrapped(v *[]types.VolumeAttachment, decoder smithyxml.NodeDecoder) error { + var sv []types.VolumeAttachment if *v == nil { - sv = make([]*types.VolumeAttachment, 0) + sv = make([]types.VolumeAttachment, 0) } else { sv = *v } switch { default: - var mv *types.VolumeAttachment + var mv types.VolumeAttachment t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeAttachment(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVolumeAttachment(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentVolumeList(v *[]*types.Volume, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVolumeList(v *[]types.Volume, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Volume + var sv []types.Volume if *v == nil { - sv = make([]*types.Volume, 0) + sv = make([]types.Volume, 0) } else { sv = *v } @@ -90866,11 +91720,13 @@ func awsEc2query_deserializeDocumentVolumeList(v *[]*types.Volume, decoder smith } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Volume + var col types.Volume nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolume(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVolume(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -90883,23 +91739,25 @@ func awsEc2query_deserializeDocumentVolumeList(v *[]*types.Volume, decoder smith return nil } -func awsEc2query_deserializeDocumentVolumeListUnwrapped(v *[]*types.Volume, decoder smithyxml.NodeDecoder) error { - var sv []*types.Volume +func awsEc2query_deserializeDocumentVolumeListUnwrapped(v *[]types.Volume, decoder smithyxml.NodeDecoder) error { + var sv []types.Volume if *v == nil { - sv = make([]*types.Volume, 0) + sv = make([]types.Volume, 0) } else { sv = *v } switch { default: - var mv *types.Volume + var mv types.Volume t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolume(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVolume(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -90941,7 +91799,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case strings.EqualFold("modificationState", t.Name.Local): @@ -90971,7 +91829,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.OriginalIops = ptr.Int32(int32(i64)) + sv.OriginalIops = int32(i64) } case strings.EqualFold("originalSize", t.Name.Local): @@ -90988,7 +91846,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.OriginalSize = ptr.Int32(int32(i64)) + sv.OriginalSize = int32(i64) } case strings.EqualFold("originalVolumeType", t.Name.Local): @@ -91018,7 +91876,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.Progress = &i64 + sv.Progress = i64 } case strings.EqualFold("startTime", t.Name.Local): @@ -91035,7 +91893,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("statusMessage", t.Name.Local): @@ -91051,7 +91909,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } case strings.EqualFold("targetIops", t.Name.Local): @@ -91068,7 +91926,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.TargetIops = ptr.Int32(int32(i64)) + sv.TargetIops = int32(i64) } case strings.EqualFold("targetSize", t.Name.Local): @@ -91085,7 +91943,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.TargetSize = ptr.Int32(int32(i64)) + sv.TargetSize = int32(i64) } case strings.EqualFold("targetVolumeType", t.Name.Local): @@ -91114,7 +91972,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat } if val != nil { xtv := string(val) - sv.VolumeId = &xtv + sv.VolumeId = ptr.String(xtv) } default: @@ -91127,13 +91985,13 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat return nil } -func awsEc2query_deserializeDocumentVolumeModificationList(v *[]*types.VolumeModification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVolumeModificationList(v *[]types.VolumeModification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VolumeModification + var sv []types.VolumeModification if *v == nil { - sv = make([]*types.VolumeModification, 0) + sv = make([]types.VolumeModification, 0) } else { sv = *v } @@ -91149,11 +92007,13 @@ func awsEc2query_deserializeDocumentVolumeModificationList(v *[]*types.VolumeMod } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VolumeModification + var col types.VolumeModification nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeModification(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVolumeModification(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -91166,23 +92026,25 @@ func awsEc2query_deserializeDocumentVolumeModificationList(v *[]*types.VolumeMod return nil } -func awsEc2query_deserializeDocumentVolumeModificationListUnwrapped(v *[]*types.VolumeModification, decoder smithyxml.NodeDecoder) error { - var sv []*types.VolumeModification +func awsEc2query_deserializeDocumentVolumeModificationListUnwrapped(v *[]types.VolumeModification, decoder smithyxml.NodeDecoder) error { + var sv []types.VolumeModification if *v == nil { - sv = make([]*types.VolumeModification, 0) + sv = make([]types.VolumeModification, 0) } else { sv = *v } switch { default: - var mv *types.VolumeModification + var mv types.VolumeModification t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeModification(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVolumeModification(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -91223,7 +92085,7 @@ func awsEc2query_deserializeDocumentVolumeStatusAction(v **types.VolumeStatusAct } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -91239,7 +92101,7 @@ func awsEc2query_deserializeDocumentVolumeStatusAction(v **types.VolumeStatusAct } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("eventId", t.Name.Local): @@ -91255,7 +92117,7 @@ func awsEc2query_deserializeDocumentVolumeStatusAction(v **types.VolumeStatusAct } if val != nil { xtv := string(val) - sv.EventId = &xtv + sv.EventId = ptr.String(xtv) } case strings.EqualFold("eventType", t.Name.Local): @@ -91271,7 +92133,7 @@ func awsEc2query_deserializeDocumentVolumeStatusAction(v **types.VolumeStatusAct } if val != nil { xtv := string(val) - sv.EventType = &xtv + sv.EventType = ptr.String(xtv) } default: @@ -91284,13 +92146,13 @@ func awsEc2query_deserializeDocumentVolumeStatusAction(v **types.VolumeStatusAct return nil } -func awsEc2query_deserializeDocumentVolumeStatusActionsList(v *[]*types.VolumeStatusAction, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVolumeStatusActionsList(v *[]types.VolumeStatusAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VolumeStatusAction + var sv []types.VolumeStatusAction if *v == nil { - sv = make([]*types.VolumeStatusAction, 0) + sv = make([]types.VolumeStatusAction, 0) } else { sv = *v } @@ -91306,11 +92168,13 @@ func awsEc2query_deserializeDocumentVolumeStatusActionsList(v *[]*types.VolumeSt } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VolumeStatusAction + var col types.VolumeStatusAction nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeStatusAction(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVolumeStatusAction(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -91323,23 +92187,25 @@ func awsEc2query_deserializeDocumentVolumeStatusActionsList(v *[]*types.VolumeSt return nil } -func awsEc2query_deserializeDocumentVolumeStatusActionsListUnwrapped(v *[]*types.VolumeStatusAction, decoder smithyxml.NodeDecoder) error { - var sv []*types.VolumeStatusAction +func awsEc2query_deserializeDocumentVolumeStatusActionsListUnwrapped(v *[]types.VolumeStatusAction, decoder smithyxml.NodeDecoder) error { + var sv []types.VolumeStatusAction if *v == nil { - sv = make([]*types.VolumeStatusAction, 0) + sv = make([]types.VolumeStatusAction, 0) } else { sv = *v } switch { default: - var mv *types.VolumeStatusAction + var mv types.VolumeStatusAction t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeStatusAction(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVolumeStatusAction(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -91380,7 +92246,7 @@ func awsEc2query_deserializeDocumentVolumeStatusAttachmentStatus(v **types.Volum } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("ioPerformance", t.Name.Local): @@ -91396,7 +92262,7 @@ func awsEc2query_deserializeDocumentVolumeStatusAttachmentStatus(v **types.Volum } if val != nil { xtv := string(val) - sv.IoPerformance = &xtv + sv.IoPerformance = ptr.String(xtv) } default: @@ -91409,13 +92275,13 @@ func awsEc2query_deserializeDocumentVolumeStatusAttachmentStatus(v **types.Volum return nil } -func awsEc2query_deserializeDocumentVolumeStatusAttachmentStatusList(v *[]*types.VolumeStatusAttachmentStatus, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVolumeStatusAttachmentStatusList(v *[]types.VolumeStatusAttachmentStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VolumeStatusAttachmentStatus + var sv []types.VolumeStatusAttachmentStatus if *v == nil { - sv = make([]*types.VolumeStatusAttachmentStatus, 0) + sv = make([]types.VolumeStatusAttachmentStatus, 0) } else { sv = *v } @@ -91431,11 +92297,13 @@ func awsEc2query_deserializeDocumentVolumeStatusAttachmentStatusList(v *[]*types } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VolumeStatusAttachmentStatus + var col types.VolumeStatusAttachmentStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeStatusAttachmentStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVolumeStatusAttachmentStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -91448,23 +92316,25 @@ func awsEc2query_deserializeDocumentVolumeStatusAttachmentStatusList(v *[]*types return nil } -func awsEc2query_deserializeDocumentVolumeStatusAttachmentStatusListUnwrapped(v *[]*types.VolumeStatusAttachmentStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.VolumeStatusAttachmentStatus +func awsEc2query_deserializeDocumentVolumeStatusAttachmentStatusListUnwrapped(v *[]types.VolumeStatusAttachmentStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.VolumeStatusAttachmentStatus if *v == nil { - sv = make([]*types.VolumeStatusAttachmentStatus, 0) + sv = make([]types.VolumeStatusAttachmentStatus, 0) } else { sv = *v } switch { default: - var mv *types.VolumeStatusAttachmentStatus + var mv types.VolumeStatusAttachmentStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeStatusAttachmentStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVolumeStatusAttachmentStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -91518,7 +92388,7 @@ func awsEc2query_deserializeDocumentVolumeStatusDetails(v **types.VolumeStatusDe } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -91531,13 +92401,13 @@ func awsEc2query_deserializeDocumentVolumeStatusDetails(v **types.VolumeStatusDe return nil } -func awsEc2query_deserializeDocumentVolumeStatusDetailsList(v *[]*types.VolumeStatusDetails, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVolumeStatusDetailsList(v *[]types.VolumeStatusDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VolumeStatusDetails + var sv []types.VolumeStatusDetails if *v == nil { - sv = make([]*types.VolumeStatusDetails, 0) + sv = make([]types.VolumeStatusDetails, 0) } else { sv = *v } @@ -91553,11 +92423,13 @@ func awsEc2query_deserializeDocumentVolumeStatusDetailsList(v *[]*types.VolumeSt } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VolumeStatusDetails + var col types.VolumeStatusDetails nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeStatusDetails(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVolumeStatusDetails(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -91570,23 +92442,25 @@ func awsEc2query_deserializeDocumentVolumeStatusDetailsList(v *[]*types.VolumeSt return nil } -func awsEc2query_deserializeDocumentVolumeStatusDetailsListUnwrapped(v *[]*types.VolumeStatusDetails, decoder smithyxml.NodeDecoder) error { - var sv []*types.VolumeStatusDetails +func awsEc2query_deserializeDocumentVolumeStatusDetailsListUnwrapped(v *[]types.VolumeStatusDetails, decoder smithyxml.NodeDecoder) error { + var sv []types.VolumeStatusDetails if *v == nil { - sv = make([]*types.VolumeStatusDetails, 0) + sv = make([]types.VolumeStatusDetails, 0) } else { sv = *v } switch { default: - var mv *types.VolumeStatusDetails + var mv types.VolumeStatusDetails t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeStatusDetails(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVolumeStatusDetails(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -91627,7 +92501,7 @@ func awsEc2query_deserializeDocumentVolumeStatusEvent(v **types.VolumeStatusEven } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("eventId", t.Name.Local): @@ -91643,7 +92517,7 @@ func awsEc2query_deserializeDocumentVolumeStatusEvent(v **types.VolumeStatusEven } if val != nil { xtv := string(val) - sv.EventId = &xtv + sv.EventId = ptr.String(xtv) } case strings.EqualFold("eventType", t.Name.Local): @@ -91659,7 +92533,7 @@ func awsEc2query_deserializeDocumentVolumeStatusEvent(v **types.VolumeStatusEven } if val != nil { xtv := string(val) - sv.EventType = &xtv + sv.EventType = ptr.String(xtv) } case strings.EqualFold("instanceId", t.Name.Local): @@ -91675,7 +92549,7 @@ func awsEc2query_deserializeDocumentVolumeStatusEvent(v **types.VolumeStatusEven } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("notAfter", t.Name.Local): @@ -91692,7 +92566,7 @@ func awsEc2query_deserializeDocumentVolumeStatusEvent(v **types.VolumeStatusEven if err != nil { return err } - sv.NotAfter = &t + sv.NotAfter = ptr.Time(t) } case strings.EqualFold("notBefore", t.Name.Local): @@ -91709,7 +92583,7 @@ func awsEc2query_deserializeDocumentVolumeStatusEvent(v **types.VolumeStatusEven if err != nil { return err } - sv.NotBefore = &t + sv.NotBefore = ptr.Time(t) } default: @@ -91722,13 +92596,13 @@ func awsEc2query_deserializeDocumentVolumeStatusEvent(v **types.VolumeStatusEven return nil } -func awsEc2query_deserializeDocumentVolumeStatusEventsList(v *[]*types.VolumeStatusEvent, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVolumeStatusEventsList(v *[]types.VolumeStatusEvent, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VolumeStatusEvent + var sv []types.VolumeStatusEvent if *v == nil { - sv = make([]*types.VolumeStatusEvent, 0) + sv = make([]types.VolumeStatusEvent, 0) } else { sv = *v } @@ -91744,11 +92618,13 @@ func awsEc2query_deserializeDocumentVolumeStatusEventsList(v *[]*types.VolumeSta } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VolumeStatusEvent + var col types.VolumeStatusEvent nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeStatusEvent(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVolumeStatusEvent(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -91761,23 +92637,25 @@ func awsEc2query_deserializeDocumentVolumeStatusEventsList(v *[]*types.VolumeSta return nil } -func awsEc2query_deserializeDocumentVolumeStatusEventsListUnwrapped(v *[]*types.VolumeStatusEvent, decoder smithyxml.NodeDecoder) error { - var sv []*types.VolumeStatusEvent +func awsEc2query_deserializeDocumentVolumeStatusEventsListUnwrapped(v *[]types.VolumeStatusEvent, decoder smithyxml.NodeDecoder) error { + var sv []types.VolumeStatusEvent if *v == nil { - sv = make([]*types.VolumeStatusEvent, 0) + sv = make([]types.VolumeStatusEvent, 0) } else { sv = *v } switch { default: - var mv *types.VolumeStatusEvent + var mv types.VolumeStatusEvent t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeStatusEvent(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVolumeStatusEvent(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -91881,7 +92759,7 @@ func awsEc2query_deserializeDocumentVolumeStatusItem(v **types.VolumeStatusItem, } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("eventsSet", t.Name.Local): @@ -91903,7 +92781,7 @@ func awsEc2query_deserializeDocumentVolumeStatusItem(v **types.VolumeStatusItem, } if val != nil { xtv := string(val) - sv.OutpostArn = &xtv + sv.OutpostArn = ptr.String(xtv) } case strings.EqualFold("volumeId", t.Name.Local): @@ -91919,7 +92797,7 @@ func awsEc2query_deserializeDocumentVolumeStatusItem(v **types.VolumeStatusItem, } if val != nil { xtv := string(val) - sv.VolumeId = &xtv + sv.VolumeId = ptr.String(xtv) } case strings.EqualFold("volumeStatus", t.Name.Local): @@ -91938,13 +92816,13 @@ func awsEc2query_deserializeDocumentVolumeStatusItem(v **types.VolumeStatusItem, return nil } -func awsEc2query_deserializeDocumentVolumeStatusList(v *[]*types.VolumeStatusItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVolumeStatusList(v *[]types.VolumeStatusItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VolumeStatusItem + var sv []types.VolumeStatusItem if *v == nil { - sv = make([]*types.VolumeStatusItem, 0) + sv = make([]types.VolumeStatusItem, 0) } else { sv = *v } @@ -91960,11 +92838,13 @@ func awsEc2query_deserializeDocumentVolumeStatusList(v *[]*types.VolumeStatusIte } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VolumeStatusItem + var col types.VolumeStatusItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeStatusItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVolumeStatusItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -91977,23 +92857,25 @@ func awsEc2query_deserializeDocumentVolumeStatusList(v *[]*types.VolumeStatusIte return nil } -func awsEc2query_deserializeDocumentVolumeStatusListUnwrapped(v *[]*types.VolumeStatusItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.VolumeStatusItem +func awsEc2query_deserializeDocumentVolumeStatusListUnwrapped(v *[]types.VolumeStatusItem, decoder smithyxml.NodeDecoder) error { + var sv []types.VolumeStatusItem if *v == nil { - sv = make([]*types.VolumeStatusItem, 0) + sv = make([]types.VolumeStatusItem, 0) } else { sv = *v } switch { default: - var mv *types.VolumeStatusItem + var mv types.VolumeStatusItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeStatusItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVolumeStatusItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -92034,7 +92916,7 @@ func awsEc2query_deserializeDocumentVpc(v **types.Vpc, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.CidrBlock = &xtv + sv.CidrBlock = ptr.String(xtv) } case strings.EqualFold("cidrBlockAssociationSet", t.Name.Local): @@ -92056,7 +92938,7 @@ func awsEc2query_deserializeDocumentVpc(v **types.Vpc, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.DhcpOptionsId = &xtv + sv.DhcpOptionsId = ptr.String(xtv) } case strings.EqualFold("instanceTenancy", t.Name.Local): @@ -92091,7 +92973,7 @@ func awsEc2query_deserializeDocumentVpc(v **types.Vpc, decoder smithyxml.NodeDec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsDefault = &xtv + sv.IsDefault = xtv } case strings.EqualFold("ownerId", t.Name.Local): @@ -92107,7 +92989,7 @@ func awsEc2query_deserializeDocumentVpc(v **types.Vpc, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -92142,7 +93024,7 @@ func awsEc2query_deserializeDocumentVpc(v **types.Vpc, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -92203,7 +93085,7 @@ func awsEc2query_deserializeDocumentVpcAttachment(v **types.VpcAttachment, decod } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -92216,13 +93098,13 @@ func awsEc2query_deserializeDocumentVpcAttachment(v **types.VpcAttachment, decod return nil } -func awsEc2query_deserializeDocumentVpcAttachmentList(v *[]*types.VpcAttachment, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVpcAttachmentList(v *[]types.VpcAttachment, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpcAttachment + var sv []types.VpcAttachment if *v == nil { - sv = make([]*types.VpcAttachment, 0) + sv = make([]types.VpcAttachment, 0) } else { sv = *v } @@ -92238,11 +93120,13 @@ func awsEc2query_deserializeDocumentVpcAttachmentList(v *[]*types.VpcAttachment, } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VpcAttachment + var col types.VpcAttachment nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcAttachment(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVpcAttachment(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -92255,23 +93139,25 @@ func awsEc2query_deserializeDocumentVpcAttachmentList(v *[]*types.VpcAttachment, return nil } -func awsEc2query_deserializeDocumentVpcAttachmentListUnwrapped(v *[]*types.VpcAttachment, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpcAttachment +func awsEc2query_deserializeDocumentVpcAttachmentListUnwrapped(v *[]types.VpcAttachment, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcAttachment if *v == nil { - sv = make([]*types.VpcAttachment, 0) + sv = make([]types.VpcAttachment, 0) } else { sv = *v } switch { default: - var mv *types.VpcAttachment + var mv types.VpcAttachment t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcAttachment(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVpcAttachment(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -92312,7 +93198,7 @@ func awsEc2query_deserializeDocumentVpcCidrBlockAssociation(v **types.VpcCidrBlo } if val != nil { xtv := string(val) - sv.AssociationId = &xtv + sv.AssociationId = ptr.String(xtv) } case strings.EqualFold("cidrBlock", t.Name.Local): @@ -92328,7 +93214,7 @@ func awsEc2query_deserializeDocumentVpcCidrBlockAssociation(v **types.VpcCidrBlo } if val != nil { xtv := string(val) - sv.CidrBlock = &xtv + sv.CidrBlock = ptr.String(xtv) } case strings.EqualFold("cidrBlockState", t.Name.Local): @@ -92347,13 +93233,13 @@ func awsEc2query_deserializeDocumentVpcCidrBlockAssociation(v **types.VpcCidrBlo return nil } -func awsEc2query_deserializeDocumentVpcCidrBlockAssociationSet(v *[]*types.VpcCidrBlockAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVpcCidrBlockAssociationSet(v *[]types.VpcCidrBlockAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpcCidrBlockAssociation + var sv []types.VpcCidrBlockAssociation if *v == nil { - sv = make([]*types.VpcCidrBlockAssociation, 0) + sv = make([]types.VpcCidrBlockAssociation, 0) } else { sv = *v } @@ -92369,11 +93255,13 @@ func awsEc2query_deserializeDocumentVpcCidrBlockAssociationSet(v *[]*types.VpcCi } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VpcCidrBlockAssociation + var col types.VpcCidrBlockAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcCidrBlockAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVpcCidrBlockAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -92386,23 +93274,25 @@ func awsEc2query_deserializeDocumentVpcCidrBlockAssociationSet(v *[]*types.VpcCi return nil } -func awsEc2query_deserializeDocumentVpcCidrBlockAssociationSetUnwrapped(v *[]*types.VpcCidrBlockAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpcCidrBlockAssociation +func awsEc2query_deserializeDocumentVpcCidrBlockAssociationSetUnwrapped(v *[]types.VpcCidrBlockAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcCidrBlockAssociation if *v == nil { - sv = make([]*types.VpcCidrBlockAssociation, 0) + sv = make([]types.VpcCidrBlockAssociation, 0) } else { sv = *v } switch { default: - var mv *types.VpcCidrBlockAssociation + var mv types.VpcCidrBlockAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcCidrBlockAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVpcCidrBlockAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -92456,7 +93346,7 @@ func awsEc2query_deserializeDocumentVpcCidrBlockState(v **types.VpcCidrBlockStat } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } default: @@ -92504,7 +93394,7 @@ func awsEc2query_deserializeDocumentVpcClassicLink(v **types.VpcClassicLink, dec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ClassicLinkEnabled = &xtv + sv.ClassicLinkEnabled = xtv } case strings.EqualFold("tagSet", t.Name.Local): @@ -92526,7 +93416,7 @@ func awsEc2query_deserializeDocumentVpcClassicLink(v **types.VpcClassicLink, dec } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -92539,13 +93429,13 @@ func awsEc2query_deserializeDocumentVpcClassicLink(v **types.VpcClassicLink, dec return nil } -func awsEc2query_deserializeDocumentVpcClassicLinkList(v *[]*types.VpcClassicLink, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVpcClassicLinkList(v *[]types.VpcClassicLink, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpcClassicLink + var sv []types.VpcClassicLink if *v == nil { - sv = make([]*types.VpcClassicLink, 0) + sv = make([]types.VpcClassicLink, 0) } else { sv = *v } @@ -92561,11 +93451,13 @@ func awsEc2query_deserializeDocumentVpcClassicLinkList(v *[]*types.VpcClassicLin } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VpcClassicLink + var col types.VpcClassicLink nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcClassicLink(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVpcClassicLink(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -92578,23 +93470,25 @@ func awsEc2query_deserializeDocumentVpcClassicLinkList(v *[]*types.VpcClassicLin return nil } -func awsEc2query_deserializeDocumentVpcClassicLinkListUnwrapped(v *[]*types.VpcClassicLink, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpcClassicLink +func awsEc2query_deserializeDocumentVpcClassicLinkListUnwrapped(v *[]types.VpcClassicLink, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcClassicLink if *v == nil { - sv = make([]*types.VpcClassicLink, 0) + sv = make([]types.VpcClassicLink, 0) } else { sv = *v } switch { default: - var mv *types.VpcClassicLink + var mv types.VpcClassicLink t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcClassicLink(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVpcClassicLink(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -92636,7 +93530,7 @@ func awsEc2query_deserializeDocumentVpcEndpoint(v **types.VpcEndpoint, decoder s if err != nil { return err } - sv.CreationTimestamp = &t + sv.CreationTimestamp = ptr.Time(t) } case strings.EqualFold("dnsEntrySet", t.Name.Local): @@ -92676,7 +93570,7 @@ func awsEc2query_deserializeDocumentVpcEndpoint(v **types.VpcEndpoint, decoder s } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("policyDocument", t.Name.Local): @@ -92692,7 +93586,7 @@ func awsEc2query_deserializeDocumentVpcEndpoint(v **types.VpcEndpoint, decoder s } if val != nil { xtv := string(val) - sv.PolicyDocument = &xtv + sv.PolicyDocument = ptr.String(xtv) } case strings.EqualFold("privateDnsEnabled", t.Name.Local): @@ -92708,7 +93602,7 @@ func awsEc2query_deserializeDocumentVpcEndpoint(v **types.VpcEndpoint, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.PrivateDnsEnabled = &xtv + sv.PrivateDnsEnabled = xtv } case strings.EqualFold("requesterManaged", t.Name.Local): @@ -92724,7 +93618,7 @@ func awsEc2query_deserializeDocumentVpcEndpoint(v **types.VpcEndpoint, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.RequesterManaged = &xtv + sv.RequesterManaged = xtv } case strings.EqualFold("routeTableIdSet", t.Name.Local): @@ -92746,7 +93640,7 @@ func awsEc2query_deserializeDocumentVpcEndpoint(v **types.VpcEndpoint, decoder s } if val != nil { xtv := string(val) - sv.ServiceName = &xtv + sv.ServiceName = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -92787,7 +93681,7 @@ func awsEc2query_deserializeDocumentVpcEndpoint(v **types.VpcEndpoint, decoder s } if val != nil { xtv := string(val) - sv.VpcEndpointId = &xtv + sv.VpcEndpointId = ptr.String(xtv) } case strings.EqualFold("vpcEndpointType", t.Name.Local): @@ -92816,7 +93710,7 @@ func awsEc2query_deserializeDocumentVpcEndpoint(v **types.VpcEndpoint, decoder s } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -92865,7 +93759,7 @@ func awsEc2query_deserializeDocumentVpcEndpointConnection(v **types.VpcEndpointC if err != nil { return err } - sv.CreationTimestamp = &t + sv.CreationTimestamp = ptr.Time(t) } case strings.EqualFold("dnsEntrySet", t.Name.Local): @@ -92893,7 +93787,7 @@ func awsEc2query_deserializeDocumentVpcEndpointConnection(v **types.VpcEndpointC } if val != nil { xtv := string(val) - sv.ServiceId = &xtv + sv.ServiceId = ptr.String(xtv) } case strings.EqualFold("vpcEndpointId", t.Name.Local): @@ -92909,7 +93803,7 @@ func awsEc2query_deserializeDocumentVpcEndpointConnection(v **types.VpcEndpointC } if val != nil { xtv := string(val) - sv.VpcEndpointId = &xtv + sv.VpcEndpointId = ptr.String(xtv) } case strings.EqualFold("vpcEndpointOwner", t.Name.Local): @@ -92925,7 +93819,7 @@ func awsEc2query_deserializeDocumentVpcEndpointConnection(v **types.VpcEndpointC } if val != nil { xtv := string(val) - sv.VpcEndpointOwner = &xtv + sv.VpcEndpointOwner = ptr.String(xtv) } case strings.EqualFold("vpcEndpointState", t.Name.Local): @@ -92951,13 +93845,13 @@ func awsEc2query_deserializeDocumentVpcEndpointConnection(v **types.VpcEndpointC return nil } -func awsEc2query_deserializeDocumentVpcEndpointConnectionSet(v *[]*types.VpcEndpointConnection, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVpcEndpointConnectionSet(v *[]types.VpcEndpointConnection, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpcEndpointConnection + var sv []types.VpcEndpointConnection if *v == nil { - sv = make([]*types.VpcEndpointConnection, 0) + sv = make([]types.VpcEndpointConnection, 0) } else { sv = *v } @@ -92973,11 +93867,13 @@ func awsEc2query_deserializeDocumentVpcEndpointConnectionSet(v *[]*types.VpcEndp } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VpcEndpointConnection + var col types.VpcEndpointConnection nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcEndpointConnection(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVpcEndpointConnection(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -92990,35 +93886,37 @@ func awsEc2query_deserializeDocumentVpcEndpointConnectionSet(v *[]*types.VpcEndp return nil } -func awsEc2query_deserializeDocumentVpcEndpointConnectionSetUnwrapped(v *[]*types.VpcEndpointConnection, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpcEndpointConnection +func awsEc2query_deserializeDocumentVpcEndpointConnectionSetUnwrapped(v *[]types.VpcEndpointConnection, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcEndpointConnection if *v == nil { - sv = make([]*types.VpcEndpointConnection, 0) + sv = make([]types.VpcEndpointConnection, 0) } else { sv = *v } switch { default: - var mv *types.VpcEndpointConnection + var mv types.VpcEndpointConnection t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcEndpointConnection(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVpcEndpointConnection(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentVpcEndpointSet(v *[]*types.VpcEndpoint, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVpcEndpointSet(v *[]types.VpcEndpoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpcEndpoint + var sv []types.VpcEndpoint if *v == nil { - sv = make([]*types.VpcEndpoint, 0) + sv = make([]types.VpcEndpoint, 0) } else { sv = *v } @@ -93034,11 +93932,13 @@ func awsEc2query_deserializeDocumentVpcEndpointSet(v *[]*types.VpcEndpoint, deco } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VpcEndpoint + var col types.VpcEndpoint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcEndpoint(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVpcEndpoint(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -93051,23 +93951,25 @@ func awsEc2query_deserializeDocumentVpcEndpointSet(v *[]*types.VpcEndpoint, deco return nil } -func awsEc2query_deserializeDocumentVpcEndpointSetUnwrapped(v *[]*types.VpcEndpoint, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpcEndpoint +func awsEc2query_deserializeDocumentVpcEndpointSetUnwrapped(v *[]types.VpcEndpoint, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcEndpoint if *v == nil { - sv = make([]*types.VpcEndpoint, 0) + sv = make([]types.VpcEndpoint, 0) } else { sv = *v } switch { default: - var mv *types.VpcEndpoint + var mv types.VpcEndpoint t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcEndpoint(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVpcEndpoint(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -93108,7 +94010,7 @@ func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(v **types.VpcIpv } if val != nil { xtv := string(val) - sv.AssociationId = &xtv + sv.AssociationId = ptr.String(xtv) } case strings.EqualFold("ipv6CidrBlock", t.Name.Local): @@ -93124,7 +94026,7 @@ func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(v **types.VpcIpv } if val != nil { xtv := string(val) - sv.Ipv6CidrBlock = &xtv + sv.Ipv6CidrBlock = ptr.String(xtv) } case strings.EqualFold("ipv6CidrBlockState", t.Name.Local): @@ -93146,7 +94048,7 @@ func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(v **types.VpcIpv } if val != nil { xtv := string(val) - sv.Ipv6Pool = &xtv + sv.Ipv6Pool = ptr.String(xtv) } case strings.EqualFold("networkBorderGroup", t.Name.Local): @@ -93162,7 +94064,7 @@ func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(v **types.VpcIpv } if val != nil { xtv := string(val) - sv.NetworkBorderGroup = &xtv + sv.NetworkBorderGroup = ptr.String(xtv) } default: @@ -93175,13 +94077,13 @@ func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(v **types.VpcIpv return nil } -func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociationSet(v *[]*types.VpcIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociationSet(v *[]types.VpcIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpcIpv6CidrBlockAssociation + var sv []types.VpcIpv6CidrBlockAssociation if *v == nil { - sv = make([]*types.VpcIpv6CidrBlockAssociation, 0) + sv = make([]types.VpcIpv6CidrBlockAssociation, 0) } else { sv = *v } @@ -93197,11 +94099,13 @@ func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociationSet(v *[]*types.V } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VpcIpv6CidrBlockAssociation + var col types.VpcIpv6CidrBlockAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -93214,35 +94118,37 @@ func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociationSet(v *[]*types.V return nil } -func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociationSetUnwrapped(v *[]*types.VpcIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpcIpv6CidrBlockAssociation +func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociationSetUnwrapped(v *[]types.VpcIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcIpv6CidrBlockAssociation if *v == nil { - sv = make([]*types.VpcIpv6CidrBlockAssociation, 0) + sv = make([]types.VpcIpv6CidrBlockAssociation, 0) } else { sv = *v } switch { default: - var mv *types.VpcIpv6CidrBlockAssociation + var mv types.VpcIpv6CidrBlockAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentVpcList(v *[]*types.Vpc, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVpcList(v *[]types.Vpc, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Vpc + var sv []types.Vpc if *v == nil { - sv = make([]*types.Vpc, 0) + sv = make([]types.Vpc, 0) } else { sv = *v } @@ -93258,11 +94164,13 @@ func awsEc2query_deserializeDocumentVpcList(v *[]*types.Vpc, decoder smithyxml.N } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.Vpc + var col types.Vpc nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpc(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVpc(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -93275,23 +94183,25 @@ func awsEc2query_deserializeDocumentVpcList(v *[]*types.Vpc, decoder smithyxml.N return nil } -func awsEc2query_deserializeDocumentVpcListUnwrapped(v *[]*types.Vpc, decoder smithyxml.NodeDecoder) error { - var sv []*types.Vpc +func awsEc2query_deserializeDocumentVpcListUnwrapped(v *[]types.Vpc, decoder smithyxml.NodeDecoder) error { + var sv []types.Vpc if *v == nil { - sv = make([]*types.Vpc, 0) + sv = make([]types.Vpc, 0) } else { sv = *v } switch { default: - var mv *types.Vpc + var mv types.Vpc t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpc(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVpc(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -93339,7 +94249,7 @@ func awsEc2query_deserializeDocumentVpcPeeringConnection(v **types.VpcPeeringCon if err != nil { return err } - sv.ExpirationTime = &t + sv.ExpirationTime = ptr.Time(t) } case strings.EqualFold("requesterVpcInfo", t.Name.Local): @@ -93373,7 +94283,7 @@ func awsEc2query_deserializeDocumentVpcPeeringConnection(v **types.VpcPeeringCon } if val != nil { xtv := string(val) - sv.VpcPeeringConnectionId = &xtv + sv.VpcPeeringConnectionId = ptr.String(xtv) } default: @@ -93386,13 +94296,13 @@ func awsEc2query_deserializeDocumentVpcPeeringConnection(v **types.VpcPeeringCon return nil } -func awsEc2query_deserializeDocumentVpcPeeringConnectionList(v *[]*types.VpcPeeringConnection, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVpcPeeringConnectionList(v *[]types.VpcPeeringConnection, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpcPeeringConnection + var sv []types.VpcPeeringConnection if *v == nil { - sv = make([]*types.VpcPeeringConnection, 0) + sv = make([]types.VpcPeeringConnection, 0) } else { sv = *v } @@ -93408,11 +94318,13 @@ func awsEc2query_deserializeDocumentVpcPeeringConnectionList(v *[]*types.VpcPeer } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VpcPeeringConnection + var col types.VpcPeeringConnection nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcPeeringConnection(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVpcPeeringConnection(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -93425,23 +94337,25 @@ func awsEc2query_deserializeDocumentVpcPeeringConnectionList(v *[]*types.VpcPeer return nil } -func awsEc2query_deserializeDocumentVpcPeeringConnectionListUnwrapped(v *[]*types.VpcPeeringConnection, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpcPeeringConnection +func awsEc2query_deserializeDocumentVpcPeeringConnectionListUnwrapped(v *[]types.VpcPeeringConnection, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcPeeringConnection if *v == nil { - sv = make([]*types.VpcPeeringConnection, 0) + sv = make([]types.VpcPeeringConnection, 0) } else { sv = *v } switch { default: - var mv *types.VpcPeeringConnection + var mv types.VpcPeeringConnection t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpcPeeringConnection(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVpcPeeringConnection(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -93482,7 +94396,7 @@ func awsEc2query_deserializeDocumentVpcPeeringConnectionOptionsDescription(v **t if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowDnsResolutionFromRemoteVpc = &xtv + sv.AllowDnsResolutionFromRemoteVpc = xtv } case strings.EqualFold("allowEgressFromLocalClassicLinkToRemoteVpc", t.Name.Local): @@ -93498,7 +94412,7 @@ func awsEc2query_deserializeDocumentVpcPeeringConnectionOptionsDescription(v **t if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowEgressFromLocalClassicLinkToRemoteVpc = &xtv + sv.AllowEgressFromLocalClassicLinkToRemoteVpc = xtv } case strings.EqualFold("allowEgressFromLocalVpcToRemoteClassicLink", t.Name.Local): @@ -93514,7 +94428,7 @@ func awsEc2query_deserializeDocumentVpcPeeringConnectionOptionsDescription(v **t if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowEgressFromLocalVpcToRemoteClassicLink = &xtv + sv.AllowEgressFromLocalVpcToRemoteClassicLink = xtv } default: @@ -93575,7 +94489,7 @@ func awsEc2query_deserializeDocumentVpcPeeringConnectionStateReason(v **types.Vp } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -93623,7 +94537,7 @@ func awsEc2query_deserializeDocumentVpcPeeringConnectionVpcInfo(v **types.VpcPee } if val != nil { xtv := string(val) - sv.CidrBlock = &xtv + sv.CidrBlock = ptr.String(xtv) } case strings.EqualFold("cidrBlockSet", t.Name.Local): @@ -93651,7 +94565,7 @@ func awsEc2query_deserializeDocumentVpcPeeringConnectionVpcInfo(v **types.VpcPee } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("peeringOptions", t.Name.Local): @@ -93673,7 +94587,7 @@ func awsEc2query_deserializeDocumentVpcPeeringConnectionVpcInfo(v **types.VpcPee } if val != nil { xtv := string(val) - sv.Region = &xtv + sv.Region = ptr.String(xtv) } case strings.EqualFold("vpcId", t.Name.Local): @@ -93689,7 +94603,7 @@ func awsEc2query_deserializeDocumentVpcPeeringConnectionVpcInfo(v **types.VpcPee } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -93737,7 +94651,7 @@ func awsEc2query_deserializeDocumentVpnConnection(v **types.VpnConnection, decod } if val != nil { xtv := string(val) - sv.Category = &xtv + sv.Category = ptr.String(xtv) } case strings.EqualFold("customerGatewayConfiguration", t.Name.Local): @@ -93753,7 +94667,7 @@ func awsEc2query_deserializeDocumentVpnConnection(v **types.VpnConnection, decod } if val != nil { xtv := string(val) - sv.CustomerGatewayConfiguration = &xtv + sv.CustomerGatewayConfiguration = ptr.String(xtv) } case strings.EqualFold("customerGatewayId", t.Name.Local): @@ -93769,7 +94683,7 @@ func awsEc2query_deserializeDocumentVpnConnection(v **types.VpnConnection, decod } if val != nil { xtv := string(val) - sv.CustomerGatewayId = &xtv + sv.CustomerGatewayId = ptr.String(xtv) } case strings.EqualFold("options", t.Name.Local): @@ -93816,7 +94730,7 @@ func awsEc2query_deserializeDocumentVpnConnection(v **types.VpnConnection, decod } if val != nil { xtv := string(val) - sv.TransitGatewayId = &xtv + sv.TransitGatewayId = ptr.String(xtv) } case strings.EqualFold("type", t.Name.Local): @@ -93851,7 +94765,7 @@ func awsEc2query_deserializeDocumentVpnConnection(v **types.VpnConnection, decod } if val != nil { xtv := string(val) - sv.VpnConnectionId = &xtv + sv.VpnConnectionId = ptr.String(xtv) } case strings.EqualFold("vpnGatewayId", t.Name.Local): @@ -93867,7 +94781,7 @@ func awsEc2query_deserializeDocumentVpnConnection(v **types.VpnConnection, decod } if val != nil { xtv := string(val) - sv.VpnGatewayId = &xtv + sv.VpnGatewayId = ptr.String(xtv) } default: @@ -93880,13 +94794,13 @@ func awsEc2query_deserializeDocumentVpnConnection(v **types.VpnConnection, decod return nil } -func awsEc2query_deserializeDocumentVpnConnectionList(v *[]*types.VpnConnection, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVpnConnectionList(v *[]types.VpnConnection, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpnConnection + var sv []types.VpnConnection if *v == nil { - sv = make([]*types.VpnConnection, 0) + sv = make([]types.VpnConnection, 0) } else { sv = *v } @@ -93902,11 +94816,13 @@ func awsEc2query_deserializeDocumentVpnConnectionList(v *[]*types.VpnConnection, } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VpnConnection + var col types.VpnConnection nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpnConnection(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVpnConnection(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -93919,23 +94835,25 @@ func awsEc2query_deserializeDocumentVpnConnectionList(v *[]*types.VpnConnection, return nil } -func awsEc2query_deserializeDocumentVpnConnectionListUnwrapped(v *[]*types.VpnConnection, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpnConnection +func awsEc2query_deserializeDocumentVpnConnectionListUnwrapped(v *[]types.VpnConnection, decoder smithyxml.NodeDecoder) error { + var sv []types.VpnConnection if *v == nil { - sv = make([]*types.VpnConnection, 0) + sv = make([]types.VpnConnection, 0) } else { sv = *v } switch { default: - var mv *types.VpnConnection + var mv types.VpnConnection t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpnConnection(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVpnConnection(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -93976,7 +94894,7 @@ func awsEc2query_deserializeDocumentVpnConnectionOptions(v **types.VpnConnection if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EnableAcceleration = &xtv + sv.EnableAcceleration = xtv } case strings.EqualFold("localIpv4NetworkCidr", t.Name.Local): @@ -93992,7 +94910,7 @@ func awsEc2query_deserializeDocumentVpnConnectionOptions(v **types.VpnConnection } if val != nil { xtv := string(val) - sv.LocalIpv4NetworkCidr = &xtv + sv.LocalIpv4NetworkCidr = ptr.String(xtv) } case strings.EqualFold("localIpv6NetworkCidr", t.Name.Local): @@ -94008,7 +94926,7 @@ func awsEc2query_deserializeDocumentVpnConnectionOptions(v **types.VpnConnection } if val != nil { xtv := string(val) - sv.LocalIpv6NetworkCidr = &xtv + sv.LocalIpv6NetworkCidr = ptr.String(xtv) } case strings.EqualFold("remoteIpv4NetworkCidr", t.Name.Local): @@ -94024,7 +94942,7 @@ func awsEc2query_deserializeDocumentVpnConnectionOptions(v **types.VpnConnection } if val != nil { xtv := string(val) - sv.RemoteIpv4NetworkCidr = &xtv + sv.RemoteIpv4NetworkCidr = ptr.String(xtv) } case strings.EqualFold("remoteIpv6NetworkCidr", t.Name.Local): @@ -94040,7 +94958,7 @@ func awsEc2query_deserializeDocumentVpnConnectionOptions(v **types.VpnConnection } if val != nil { xtv := string(val) - sv.RemoteIpv6NetworkCidr = &xtv + sv.RemoteIpv6NetworkCidr = ptr.String(xtv) } case strings.EqualFold("staticRoutesOnly", t.Name.Local): @@ -94056,7 +94974,7 @@ func awsEc2query_deserializeDocumentVpnConnectionOptions(v **types.VpnConnection if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.StaticRoutesOnly = &xtv + sv.StaticRoutesOnly = xtv } case strings.EqualFold("tunnelInsideIpVersion", t.Name.Local): @@ -94124,7 +95042,7 @@ func awsEc2query_deserializeDocumentVpnGateway(v **types.VpnGateway, decoder smi if err != nil { return err } - sv.AmazonSideAsn = &i64 + sv.AmazonSideAsn = i64 } case strings.EqualFold("availabilityZone", t.Name.Local): @@ -94140,7 +95058,7 @@ func awsEc2query_deserializeDocumentVpnGateway(v **types.VpnGateway, decoder smi } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -94194,7 +95112,7 @@ func awsEc2query_deserializeDocumentVpnGateway(v **types.VpnGateway, decoder smi } if val != nil { xtv := string(val) - sv.VpnGatewayId = &xtv + sv.VpnGatewayId = ptr.String(xtv) } default: @@ -94207,13 +95125,13 @@ func awsEc2query_deserializeDocumentVpnGateway(v **types.VpnGateway, decoder smi return nil } -func awsEc2query_deserializeDocumentVpnGatewayList(v *[]*types.VpnGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVpnGatewayList(v *[]types.VpnGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpnGateway + var sv []types.VpnGateway if *v == nil { - sv = make([]*types.VpnGateway, 0) + sv = make([]types.VpnGateway, 0) } else { sv = *v } @@ -94229,11 +95147,13 @@ func awsEc2query_deserializeDocumentVpnGatewayList(v *[]*types.VpnGateway, decod } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VpnGateway + var col types.VpnGateway nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpnGateway(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVpnGateway(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -94246,23 +95166,25 @@ func awsEc2query_deserializeDocumentVpnGatewayList(v *[]*types.VpnGateway, decod return nil } -func awsEc2query_deserializeDocumentVpnGatewayListUnwrapped(v *[]*types.VpnGateway, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpnGateway +func awsEc2query_deserializeDocumentVpnGatewayListUnwrapped(v *[]types.VpnGateway, decoder smithyxml.NodeDecoder) error { + var sv []types.VpnGateway if *v == nil { - sv = make([]*types.VpnGateway, 0) + sv = make([]types.VpnGateway, 0) } else { sv = *v } switch { default: - var mv *types.VpnGateway + var mv types.VpnGateway t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpnGateway(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVpnGateway(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -94303,7 +95225,7 @@ func awsEc2query_deserializeDocumentVpnStaticRoute(v **types.VpnStaticRoute, dec } if val != nil { xtv := string(val) - sv.DestinationCidrBlock = &xtv + sv.DestinationCidrBlock = ptr.String(xtv) } case strings.EqualFold("source", t.Name.Local): @@ -94342,13 +95264,13 @@ func awsEc2query_deserializeDocumentVpnStaticRoute(v **types.VpnStaticRoute, dec return nil } -func awsEc2query_deserializeDocumentVpnStaticRouteList(v *[]*types.VpnStaticRoute, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentVpnStaticRouteList(v *[]types.VpnStaticRoute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpnStaticRoute + var sv []types.VpnStaticRoute if *v == nil { - sv = make([]*types.VpnStaticRoute, 0) + sv = make([]types.VpnStaticRoute, 0) } else { sv = *v } @@ -94364,11 +95286,13 @@ func awsEc2query_deserializeDocumentVpnStaticRouteList(v *[]*types.VpnStaticRout } for { if strings.EqualFold("item", t.Name.Local) { - var col *types.VpnStaticRoute + var col types.VpnStaticRoute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpnStaticRoute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentVpnStaticRoute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -94381,23 +95305,25 @@ func awsEc2query_deserializeDocumentVpnStaticRouteList(v *[]*types.VpnStaticRout return nil } -func awsEc2query_deserializeDocumentVpnStaticRouteListUnwrapped(v *[]*types.VpnStaticRoute, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpnStaticRoute +func awsEc2query_deserializeDocumentVpnStaticRouteListUnwrapped(v *[]types.VpnStaticRoute, decoder smithyxml.NodeDecoder) error { + var sv []types.VpnStaticRoute if *v == nil { - sv = make([]*types.VpnStaticRoute, 0) + sv = make([]types.VpnStaticRoute, 0) } else { sv = *v } switch { default: - var mv *types.VpnStaticRoute + var mv types.VpnStaticRoute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpnStaticRoute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsEc2query_deserializeDocumentVpnStaticRoute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -94438,7 +95364,7 @@ func awsEc2query_deserializeOpDocumentAcceptReservedInstancesExchangeQuoteOutput } if val != nil { xtv := string(val) - sv.ExchangeId = &xtv + sv.ExchangeId = ptr.String(xtv) } default: @@ -94676,7 +95602,7 @@ func awsEc2query_deserializeOpDocumentAllocateAddressOutput(v **AllocateAddressO } if val != nil { xtv := string(val) - sv.AllocationId = &xtv + sv.AllocationId = ptr.String(xtv) } case strings.EqualFold("carrierIp", t.Name.Local): @@ -94692,7 +95618,7 @@ func awsEc2query_deserializeOpDocumentAllocateAddressOutput(v **AllocateAddressO } if val != nil { xtv := string(val) - sv.CarrierIp = &xtv + sv.CarrierIp = ptr.String(xtv) } case strings.EqualFold("customerOwnedIp", t.Name.Local): @@ -94708,7 +95634,7 @@ func awsEc2query_deserializeOpDocumentAllocateAddressOutput(v **AllocateAddressO } if val != nil { xtv := string(val) - sv.CustomerOwnedIp = &xtv + sv.CustomerOwnedIp = ptr.String(xtv) } case strings.EqualFold("customerOwnedIpv4Pool", t.Name.Local): @@ -94724,7 +95650,7 @@ func awsEc2query_deserializeOpDocumentAllocateAddressOutput(v **AllocateAddressO } if val != nil { xtv := string(val) - sv.CustomerOwnedIpv4Pool = &xtv + sv.CustomerOwnedIpv4Pool = ptr.String(xtv) } case strings.EqualFold("domain", t.Name.Local): @@ -94753,7 +95679,7 @@ func awsEc2query_deserializeOpDocumentAllocateAddressOutput(v **AllocateAddressO } if val != nil { xtv := string(val) - sv.NetworkBorderGroup = &xtv + sv.NetworkBorderGroup = ptr.String(xtv) } case strings.EqualFold("publicIp", t.Name.Local): @@ -94769,7 +95695,7 @@ func awsEc2query_deserializeOpDocumentAllocateAddressOutput(v **AllocateAddressO } if val != nil { xtv := string(val) - sv.PublicIp = &xtv + sv.PublicIp = ptr.String(xtv) } case strings.EqualFold("publicIpv4Pool", t.Name.Local): @@ -94785,7 +95711,7 @@ func awsEc2query_deserializeOpDocumentAllocateAddressOutput(v **AllocateAddressO } if val != nil { xtv := string(val) - sv.PublicIpv4Pool = &xtv + sv.PublicIpv4Pool = ptr.String(xtv) } default: @@ -94915,7 +95841,7 @@ func awsEc2query_deserializeOpDocumentAssignIpv6AddressesOutput(v **AssignIpv6Ad } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } default: @@ -94969,7 +95895,7 @@ func awsEc2query_deserializeOpDocumentAssignPrivateIpAddressesOutput(v **AssignP } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } default: @@ -95017,7 +95943,7 @@ func awsEc2query_deserializeOpDocumentAssociateAddressOutput(v **AssociateAddres } if val != nil { xtv := string(val) - sv.AssociationId = &xtv + sv.AssociationId = ptr.String(xtv) } default: @@ -95065,7 +95991,7 @@ func awsEc2query_deserializeOpDocumentAssociateClientVpnTargetNetworkOutput(v ** } if val != nil { xtv := string(val) - sv.AssociationId = &xtv + sv.AssociationId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -95151,7 +96077,7 @@ func awsEc2query_deserializeOpDocumentAssociateEnclaveCertificateIamRoleOutput(v } if val != nil { xtv := string(val) - sv.CertificateS3BucketName = &xtv + sv.CertificateS3BucketName = ptr.String(xtv) } case strings.EqualFold("certificateS3ObjectKey", t.Name.Local): @@ -95167,7 +96093,7 @@ func awsEc2query_deserializeOpDocumentAssociateEnclaveCertificateIamRoleOutput(v } if val != nil { xtv := string(val) - sv.CertificateS3ObjectKey = &xtv + sv.CertificateS3ObjectKey = ptr.String(xtv) } case strings.EqualFold("encryptionKmsKeyId", t.Name.Local): @@ -95183,7 +96109,7 @@ func awsEc2query_deserializeOpDocumentAssociateEnclaveCertificateIamRoleOutput(v } if val != nil { xtv := string(val) - sv.EncryptionKmsKeyId = &xtv + sv.EncryptionKmsKeyId = ptr.String(xtv) } default: @@ -95269,7 +96195,7 @@ func awsEc2query_deserializeOpDocumentAssociateRouteTableOutput(v **AssociateRou } if val != nil { xtv := string(val) - sv.AssociationId = &xtv + sv.AssociationId = ptr.String(xtv) } case strings.EqualFold("associationState", t.Name.Local): @@ -95329,7 +96255,7 @@ func awsEc2query_deserializeOpDocumentAssociateSubnetCidrBlockOutput(v **Associa } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } default: @@ -95465,7 +96391,7 @@ func awsEc2query_deserializeOpDocumentAssociateVpcCidrBlockOutput(v **AssociateV } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -95513,7 +96439,7 @@ func awsEc2query_deserializeOpDocumentAttachClassicLinkVpcOutput(v **AttachClass if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -95593,7 +96519,7 @@ func awsEc2query_deserializeOpDocumentAttachNetworkInterfaceOutput(v **AttachNet } if val != nil { xtv := string(val) - sv.AttachmentId = &xtv + sv.AttachmentId = ptr.String(xtv) } default: @@ -95642,7 +96568,7 @@ func awsEc2query_deserializeOpDocumentAttachVolumeOutput(v **AttachVolumeOutput, if err != nil { return err } - sv.AttachTime = &t + sv.AttachTime = ptr.Time(t) } case strings.EqualFold("deleteOnTermination", t.Name.Local): @@ -95658,7 +96584,7 @@ func awsEc2query_deserializeOpDocumentAttachVolumeOutput(v **AttachVolumeOutput, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = &xtv + sv.DeleteOnTermination = xtv } case strings.EqualFold("device", t.Name.Local): @@ -95674,7 +96600,7 @@ func awsEc2query_deserializeOpDocumentAttachVolumeOutput(v **AttachVolumeOutput, } if val != nil { xtv := string(val) - sv.Device = &xtv + sv.Device = ptr.String(xtv) } case strings.EqualFold("instanceId", t.Name.Local): @@ -95690,7 +96616,7 @@ func awsEc2query_deserializeOpDocumentAttachVolumeOutput(v **AttachVolumeOutput, } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -95719,7 +96645,7 @@ func awsEc2query_deserializeOpDocumentAttachVolumeOutput(v **AttachVolumeOutput, } if val != nil { xtv := string(val) - sv.VolumeId = &xtv + sv.VolumeId = ptr.String(xtv) } default: @@ -95983,7 +96909,7 @@ func awsEc2query_deserializeOpDocumentCancelCapacityReservationOutput(v **Cancel if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -96095,7 +97021,7 @@ func awsEc2query_deserializeOpDocumentCancelImportTaskOutput(v **CancelImportTas } if val != nil { xtv := string(val) - sv.ImportTaskId = &xtv + sv.ImportTaskId = ptr.String(xtv) } case strings.EqualFold("previousState", t.Name.Local): @@ -96111,7 +97037,7 @@ func awsEc2query_deserializeOpDocumentCancelImportTaskOutput(v **CancelImportTas } if val != nil { xtv := string(val) - sv.PreviousState = &xtv + sv.PreviousState = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -96127,7 +97053,7 @@ func awsEc2query_deserializeOpDocumentCancelImportTaskOutput(v **CancelImportTas } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } default: @@ -96295,7 +97221,7 @@ func awsEc2query_deserializeOpDocumentConfirmProductInstanceOutput(v **ConfirmPr } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("return", t.Name.Local): @@ -96311,7 +97237,7 @@ func awsEc2query_deserializeOpDocumentConfirmProductInstanceOutput(v **ConfirmPr if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -96359,7 +97285,7 @@ func awsEc2query_deserializeOpDocumentCopyFpgaImageOutput(v **CopyFpgaImageOutpu } if val != nil { xtv := string(val) - sv.FpgaImageId = &xtv + sv.FpgaImageId = ptr.String(xtv) } default: @@ -96407,7 +97333,7 @@ func awsEc2query_deserializeOpDocumentCopyImageOutput(v **CopyImageOutput, decod } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } default: @@ -96455,7 +97381,7 @@ func awsEc2query_deserializeOpDocumentCopySnapshotOutput(v **CopySnapshotOutput, } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -96585,7 +97511,7 @@ func awsEc2query_deserializeOpDocumentCreateClientVpnEndpointOutput(v **CreateCl } if val != nil { xtv := string(val) - sv.ClientVpnEndpointId = &xtv + sv.ClientVpnEndpointId = ptr.String(xtv) } case strings.EqualFold("dnsName", t.Name.Local): @@ -96601,7 +97527,7 @@ func awsEc2query_deserializeOpDocumentCreateClientVpnEndpointOutput(v **CreateCl } if val != nil { xtv := string(val) - sv.DnsName = &xtv + sv.DnsName = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -96845,7 +97771,7 @@ func awsEc2query_deserializeOpDocumentCreateEgressOnlyInternetGatewayOutput(v ** } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("egressOnlyInternetGateway", t.Name.Local): @@ -96905,7 +97831,7 @@ func awsEc2query_deserializeOpDocumentCreateFleetOutput(v **CreateFleetOutput, d } if val != nil { xtv := string(val) - sv.FleetId = &xtv + sv.FleetId = ptr.String(xtv) } case strings.EqualFold("fleetInstanceSet", t.Name.Local): @@ -96959,7 +97885,7 @@ func awsEc2query_deserializeOpDocumentCreateFlowLogsOutput(v **CreateFlowLogsOut } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("flowLogIdSet", t.Name.Local): @@ -97019,7 +97945,7 @@ func awsEc2query_deserializeOpDocumentCreateFpgaImageOutput(v **CreateFpgaImageO } if val != nil { xtv := string(val) - sv.FpgaImageGlobalId = &xtv + sv.FpgaImageGlobalId = ptr.String(xtv) } case strings.EqualFold("fpgaImageId", t.Name.Local): @@ -97035,7 +97961,7 @@ func awsEc2query_deserializeOpDocumentCreateFpgaImageOutput(v **CreateFpgaImageO } if val != nil { xtv := string(val) - sv.FpgaImageId = &xtv + sv.FpgaImageId = ptr.String(xtv) } default: @@ -97083,7 +98009,7 @@ func awsEc2query_deserializeOpDocumentCreateImageOutput(v **CreateImageOutput, d } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } default: @@ -97207,7 +98133,7 @@ func awsEc2query_deserializeOpDocumentCreateKeyPairOutput(v **CreateKeyPairOutpu } if val != nil { xtv := string(val) - sv.KeyFingerprint = &xtv + sv.KeyFingerprint = ptr.String(xtv) } case strings.EqualFold("keyMaterial", t.Name.Local): @@ -97223,7 +98149,7 @@ func awsEc2query_deserializeOpDocumentCreateKeyPairOutput(v **CreateKeyPairOutpu } if val != nil { xtv := string(val) - sv.KeyMaterial = &xtv + sv.KeyMaterial = ptr.String(xtv) } case strings.EqualFold("keyName", t.Name.Local): @@ -97239,7 +98165,7 @@ func awsEc2query_deserializeOpDocumentCreateKeyPairOutput(v **CreateKeyPairOutpu } if val != nil { xtv := string(val) - sv.KeyName = &xtv + sv.KeyName = ptr.String(xtv) } case strings.EqualFold("keyPairId", t.Name.Local): @@ -97255,7 +98181,7 @@ func awsEc2query_deserializeOpDocumentCreateKeyPairOutput(v **CreateKeyPairOutpu } if val != nil { xtv := string(val) - sv.KeyPairId = &xtv + sv.KeyPairId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -97511,7 +98437,7 @@ func awsEc2query_deserializeOpDocumentCreateNatGatewayOutput(v **CreateNatGatewa } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("natGateway", t.Name.Local): @@ -97787,7 +98713,7 @@ func awsEc2query_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -97873,7 +98799,7 @@ func awsEc2query_deserializeOpDocumentCreateSecurityGroupOutput(v **CreateSecuri } if val != nil { xtv := string(val) - sv.GroupId = &xtv + sv.GroupId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -97927,7 +98853,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut } if val != nil { xtv := string(val) - sv.DataEncryptionKeyId = &xtv + sv.DataEncryptionKeyId = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -97943,7 +98869,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("encrypted", t.Name.Local): @@ -97959,7 +98885,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("kmsKeyId", t.Name.Local): @@ -97975,7 +98901,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("ownerAlias", t.Name.Local): @@ -97991,7 +98917,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut } if val != nil { xtv := string(val) - sv.OwnerAlias = &xtv + sv.OwnerAlias = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -98007,7 +98933,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("progress", t.Name.Local): @@ -98023,7 +98949,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut } if val != nil { xtv := string(val) - sv.Progress = &xtv + sv.Progress = ptr.String(xtv) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -98039,7 +98965,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("startTime", t.Name.Local): @@ -98056,7 +98982,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("status", t.Name.Local): @@ -98085,7 +99011,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut } if val != nil { xtv := string(val) - sv.StateMessage = &xtv + sv.StateMessage = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -98107,7 +99033,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut } if val != nil { xtv := string(val) - sv.VolumeId = &xtv + sv.VolumeId = ptr.String(xtv) } case strings.EqualFold("volumeSize", t.Name.Local): @@ -98124,7 +99050,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut if err != nil { return err } - sv.VolumeSize = ptr.Int32(int32(i64)) + sv.VolumeSize = int32(i64) } default: @@ -98318,7 +99244,7 @@ func awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterOutput(v **Create } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("trafficMirrorFilter", t.Name.Local): @@ -98372,7 +99298,7 @@ func awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterRuleOutput(v **Cr } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("trafficMirrorFilterRule", t.Name.Local): @@ -98426,7 +99352,7 @@ func awsEc2query_deserializeOpDocumentCreateTrafficMirrorSessionOutput(v **Creat } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("trafficMirrorSession", t.Name.Local): @@ -98480,7 +99406,7 @@ func awsEc2query_deserializeOpDocumentCreateTrafficMirrorTargetOutput(v **Create } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("trafficMirrorTarget", t.Name.Local): @@ -98806,7 +99732,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("createTime", t.Name.Local): @@ -98823,7 +99749,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, if err != nil { return err } - sv.CreateTime = &t + sv.CreateTime = ptr.Time(t) } case strings.EqualFold("encrypted", t.Name.Local): @@ -98839,7 +99765,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("fastRestored", t.Name.Local): @@ -98855,7 +99781,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FastRestored = &xtv + sv.FastRestored = xtv } case strings.EqualFold("iops", t.Name.Local): @@ -98872,7 +99798,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, if err != nil { return err } - sv.Iops = ptr.Int32(int32(i64)) + sv.Iops = int32(i64) } case strings.EqualFold("kmsKeyId", t.Name.Local): @@ -98888,7 +99814,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("multiAttachEnabled", t.Name.Local): @@ -98904,7 +99830,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MultiAttachEnabled = &xtv + sv.MultiAttachEnabled = xtv } case strings.EqualFold("outpostArn", t.Name.Local): @@ -98920,7 +99846,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, } if val != nil { xtv := string(val) - sv.OutpostArn = &xtv + sv.OutpostArn = ptr.String(xtv) } case strings.EqualFold("size", t.Name.Local): @@ -98937,7 +99863,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, if err != nil { return err } - sv.Size = ptr.Int32(int32(i64)) + sv.Size = int32(i64) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -98953,7 +99879,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -98988,7 +99914,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, } if val != nil { xtv := string(val) - sv.VolumeId = &xtv + sv.VolumeId = ptr.String(xtv) } case strings.EqualFold("volumeType", t.Name.Local): @@ -99049,7 +99975,7 @@ func awsEc2query_deserializeOpDocumentCreateVpcEndpointConnectionNotificationOut } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("connectionNotification", t.Name.Local): @@ -99103,7 +100029,7 @@ func awsEc2query_deserializeOpDocumentCreateVpcEndpointOutput(v **CreateVpcEndpo } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("vpcEndpoint", t.Name.Local): @@ -99157,7 +100083,7 @@ func awsEc2query_deserializeOpDocumentCreateVpcEndpointServiceConfigurationOutpu } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("serviceConfiguration", t.Name.Local): @@ -99573,7 +100499,7 @@ func awsEc2query_deserializeOpDocumentDeleteEgressOnlyInternetGatewayOutput(v ** if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnCode = &xtv + sv.ReturnCode = xtv } default: @@ -99703,7 +100629,7 @@ func awsEc2query_deserializeOpDocumentDeleteFpgaImageOutput(v **DeleteFpgaImageO if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -100011,7 +100937,7 @@ func awsEc2query_deserializeOpDocumentDeleteNatGatewayOutput(v **DeleteNatGatewa } if val != nil { xtv := string(val) - sv.NatGatewayId = &xtv + sv.NatGatewayId = ptr.String(xtv) } default: @@ -100155,7 +101081,7 @@ func awsEc2query_deserializeOpDocumentDeleteNetworkInterfacePermissionOutput(v * if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -100503,7 +101429,7 @@ func awsEc2query_deserializeOpDocumentDeleteTrafficMirrorFilterOutput(v **Delete } if val != nil { xtv := string(val) - sv.TrafficMirrorFilterId = &xtv + sv.TrafficMirrorFilterId = ptr.String(xtv) } default: @@ -100551,7 +101477,7 @@ func awsEc2query_deserializeOpDocumentDeleteTrafficMirrorFilterRuleOutput(v **De } if val != nil { xtv := string(val) - sv.TrafficMirrorFilterRuleId = &xtv + sv.TrafficMirrorFilterRuleId = ptr.String(xtv) } default: @@ -100599,7 +101525,7 @@ func awsEc2query_deserializeOpDocumentDeleteTrafficMirrorSessionOutput(v **Delet } if val != nil { xtv := string(val) - sv.TrafficMirrorSessionId = &xtv + sv.TrafficMirrorSessionId = ptr.String(xtv) } default: @@ -100647,7 +101573,7 @@ func awsEc2query_deserializeOpDocumentDeleteTrafficMirrorTargetOutput(v **Delete } if val != nil { xtv := string(val) - sv.TrafficMirrorTargetId = &xtv + sv.TrafficMirrorTargetId = ptr.String(xtv) } default: @@ -101139,7 +102065,7 @@ func awsEc2query_deserializeOpDocumentDeleteVpcPeeringConnectionOutput(v **Delet if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -101549,7 +102475,7 @@ func awsEc2query_deserializeOpDocumentDescribeAggregateIdFormatOutput(v **Descri if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.UseLongIdsAggregated = &xtv + sv.UseLongIdsAggregated = xtv } default: @@ -101679,7 +102605,7 @@ func awsEc2query_deserializeOpDocumentDescribeByoipCidrsOutput(v **DescribeByoip } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -101733,7 +102659,7 @@ func awsEc2query_deserializeOpDocumentDescribeCapacityReservationsOutput(v **Des } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -101787,7 +102713,7 @@ func awsEc2query_deserializeOpDocumentDescribeCarrierGatewaysOutput(v **Describe } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -101841,7 +102767,7 @@ func awsEc2query_deserializeOpDocumentDescribeClassicLinkInstancesOutput(v **Des } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -101895,7 +102821,7 @@ func awsEc2query_deserializeOpDocumentDescribeClientVpnAuthorizationRulesOutput( } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -101949,7 +102875,7 @@ func awsEc2query_deserializeOpDocumentDescribeClientVpnConnectionsOutput(v **Des } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -102003,7 +102929,7 @@ func awsEc2query_deserializeOpDocumentDescribeClientVpnEndpointsOutput(v **Descr } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -102051,7 +102977,7 @@ func awsEc2query_deserializeOpDocumentDescribeClientVpnRoutesOutput(v **Describe } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("routes", t.Name.Local): @@ -102111,7 +103037,7 @@ func awsEc2query_deserializeOpDocumentDescribeClientVpnTargetNetworksOutput(v ** } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -102165,7 +103091,7 @@ func awsEc2query_deserializeOpDocumentDescribeCoipPoolsOutput(v **DescribeCoipPo } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -102295,7 +103221,7 @@ func awsEc2query_deserializeOpDocumentDescribeDhcpOptionsOutput(v **DescribeDhcp } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -102349,7 +103275,7 @@ func awsEc2query_deserializeOpDocumentDescribeEgressOnlyInternetGatewaysOutput(v } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -102404,7 +103330,7 @@ func awsEc2query_deserializeOpDocumentDescribeElasticGpusOutput(v **DescribeElas if err != nil { return err } - sv.MaxResults = ptr.Int32(int32(i64)) + sv.MaxResults = int32(i64) } case strings.EqualFold("nextToken", t.Name.Local): @@ -102420,7 +103346,7 @@ func awsEc2query_deserializeOpDocumentDescribeElasticGpusOutput(v **DescribeElas } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -102474,7 +103400,7 @@ func awsEc2query_deserializeOpDocumentDescribeExportImageTasksOutput(v **Describ } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -102566,7 +103492,7 @@ func awsEc2query_deserializeOpDocumentDescribeFastSnapshotRestoresOutput(v **Des } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -102614,7 +103540,7 @@ func awsEc2query_deserializeOpDocumentDescribeFleetHistoryOutput(v **DescribeFle } if val != nil { xtv := string(val) - sv.FleetId = &xtv + sv.FleetId = ptr.String(xtv) } case strings.EqualFold("historyRecordSet", t.Name.Local): @@ -102637,7 +103563,7 @@ func awsEc2query_deserializeOpDocumentDescribeFleetHistoryOutput(v **DescribeFle if err != nil { return err } - sv.LastEvaluatedTime = &t + sv.LastEvaluatedTime = ptr.Time(t) } case strings.EqualFold("nextToken", t.Name.Local): @@ -102653,7 +103579,7 @@ func awsEc2query_deserializeOpDocumentDescribeFleetHistoryOutput(v **DescribeFle } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("startTime", t.Name.Local): @@ -102670,7 +103596,7 @@ func awsEc2query_deserializeOpDocumentDescribeFleetHistoryOutput(v **DescribeFle if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } default: @@ -102724,7 +103650,7 @@ func awsEc2query_deserializeOpDocumentDescribeFleetInstancesOutput(v **DescribeF } if val != nil { xtv := string(val) - sv.FleetId = &xtv + sv.FleetId = ptr.String(xtv) } case strings.EqualFold("nextToken", t.Name.Local): @@ -102740,7 +103666,7 @@ func awsEc2query_deserializeOpDocumentDescribeFleetInstancesOutput(v **DescribeF } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -102794,7 +103720,7 @@ func awsEc2query_deserializeOpDocumentDescribeFleetsOutput(v **DescribeFleetsOut } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -102848,7 +103774,7 @@ func awsEc2query_deserializeOpDocumentDescribeFlowLogsOutput(v **DescribeFlowLog } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -102940,7 +103866,7 @@ func awsEc2query_deserializeOpDocumentDescribeFpgaImagesOutput(v **DescribeFpgaI } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -102988,7 +103914,7 @@ func awsEc2query_deserializeOpDocumentDescribeHostReservationOfferingsOutput(v * } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("offeringSet", t.Name.Local): @@ -103048,7 +103974,7 @@ func awsEc2query_deserializeOpDocumentDescribeHostReservationsOutput(v **Describ } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -103102,7 +104028,7 @@ func awsEc2query_deserializeOpDocumentDescribeHostsOutput(v **DescribeHostsOutpu } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -103156,7 +104082,7 @@ func awsEc2query_deserializeOpDocumentDescribeIamInstanceProfileAssociationsOutp } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -103292,7 +104218,7 @@ func awsEc2query_deserializeOpDocumentDescribeImageAttributeOutput(v **DescribeI } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } case strings.EqualFold("kernel", t.Name.Local): @@ -103414,7 +104340,7 @@ func awsEc2query_deserializeOpDocumentDescribeImportImageTasksOutput(v **Describ } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -103468,7 +104394,7 @@ func awsEc2query_deserializeOpDocumentDescribeImportSnapshotTasksOutput(v **Desc } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -103552,7 +104478,7 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceAttributeOutput(v **Descri } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("instanceInitiatedShutdownBehavior", t.Name.Local): @@ -103660,7 +104586,7 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceCreditSpecificationsOutput } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -103746,7 +104672,7 @@ func awsEc2query_deserializeOpDocumentDescribeInstancesOutput(v **DescribeInstan } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("reservationSet", t.Name.Local): @@ -103806,7 +104732,7 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceStatusOutput(v **DescribeI } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -103860,7 +104786,7 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceTypeOfferingsOutput(v **De } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -103914,7 +104840,7 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceTypesOutput(v **DescribeIn } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -103968,7 +104894,7 @@ func awsEc2query_deserializeOpDocumentDescribeInternetGatewaysOutput(v **Describ } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104022,7 +104948,7 @@ func awsEc2query_deserializeOpDocumentDescribeIpv6PoolsOutput(v **DescribeIpv6Po } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104114,7 +105040,7 @@ func awsEc2query_deserializeOpDocumentDescribeLaunchTemplatesOutput(v **Describe } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104168,7 +105094,7 @@ func awsEc2query_deserializeOpDocumentDescribeLaunchTemplateVersionsOutput(v **D } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104222,7 +105148,7 @@ func awsEc2query_deserializeOpDocumentDescribeLocalGatewayRouteTablesOutput(v ** } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104276,7 +105202,7 @@ func awsEc2query_deserializeOpDocumentDescribeLocalGatewayRouteTableVirtualInter } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104330,7 +105256,7 @@ func awsEc2query_deserializeOpDocumentDescribeLocalGatewayRouteTableVpcAssociati } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104384,7 +105310,7 @@ func awsEc2query_deserializeOpDocumentDescribeLocalGatewaysOutput(v **DescribeLo } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104438,7 +105364,7 @@ func awsEc2query_deserializeOpDocumentDescribeLocalGatewayVirtualInterfaceGroups } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104492,7 +105418,7 @@ func awsEc2query_deserializeOpDocumentDescribeLocalGatewayVirtualInterfacesOutpu } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104540,7 +105466,7 @@ func awsEc2query_deserializeOpDocumentDescribeManagedPrefixListsOutput(v **Descr } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("prefixListSet", t.Name.Local): @@ -104600,7 +105526,7 @@ func awsEc2query_deserializeOpDocumentDescribeMovingAddressesOutput(v **Describe } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104654,7 +105580,7 @@ func awsEc2query_deserializeOpDocumentDescribeNatGatewaysOutput(v **DescribeNatG } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104708,7 +105634,7 @@ func awsEc2query_deserializeOpDocumentDescribeNetworkAclsOutput(v **DescribeNetw } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104774,7 +105700,7 @@ func awsEc2query_deserializeOpDocumentDescribeNetworkInterfaceAttributeOutput(v } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } case strings.EqualFold("sourceDestCheck", t.Name.Local): @@ -104834,7 +105760,7 @@ func awsEc2query_deserializeOpDocumentDescribeNetworkInterfacePermissionsOutput( } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104888,7 +105814,7 @@ func awsEc2query_deserializeOpDocumentDescribeNetworkInterfacesOutput(v **Descri } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -104974,7 +105900,7 @@ func awsEc2query_deserializeOpDocumentDescribePrefixListsOutput(v **DescribePref } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("prefixListSet", t.Name.Local): @@ -105028,7 +105954,7 @@ func awsEc2query_deserializeOpDocumentDescribePrincipalIdFormatOutput(v **Descri } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("principalSet", t.Name.Local): @@ -105082,7 +106008,7 @@ func awsEc2query_deserializeOpDocumentDescribePublicIpv4PoolsOutput(v **Describe } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("publicIpv4PoolSet", t.Name.Local): @@ -105212,7 +106138,7 @@ func awsEc2query_deserializeOpDocumentDescribeReservedInstancesModificationsOutp } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("reservedInstancesModificationsSet", t.Name.Local): @@ -105266,7 +106192,7 @@ func awsEc2query_deserializeOpDocumentDescribeReservedInstancesOfferingsOutput(v } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("reservedInstancesOfferingsSet", t.Name.Local): @@ -105358,7 +106284,7 @@ func awsEc2query_deserializeOpDocumentDescribeRouteTablesOutput(v **DescribeRout } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("routeTableSet", t.Name.Local): @@ -105412,7 +106338,7 @@ func awsEc2query_deserializeOpDocumentDescribeScheduledInstanceAvailabilityOutpu } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("scheduledInstanceAvailabilitySet", t.Name.Local): @@ -105466,7 +106392,7 @@ func awsEc2query_deserializeOpDocumentDescribeScheduledInstancesOutput(v **Descr } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("scheduledInstanceSet", t.Name.Local): @@ -105558,7 +106484,7 @@ func awsEc2query_deserializeOpDocumentDescribeSecurityGroupsOutput(v **DescribeS } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("securityGroupInfo", t.Name.Local): @@ -105624,7 +106550,7 @@ func awsEc2query_deserializeOpDocumentDescribeSnapshotAttributeOutput(v **Descri } if val != nil { xtv := string(val) - sv.SnapshotId = &xtv + sv.SnapshotId = ptr.String(xtv) } default: @@ -105672,7 +106598,7 @@ func awsEc2query_deserializeOpDocumentDescribeSnapshotsOutput(v **DescribeSnapsh } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("snapshotSet", t.Name.Local): @@ -105770,7 +106696,7 @@ func awsEc2query_deserializeOpDocumentDescribeSpotFleetInstancesOutput(v **Descr } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("spotFleetRequestId", t.Name.Local): @@ -105786,7 +106712,7 @@ func awsEc2query_deserializeOpDocumentDescribeSpotFleetInstancesOutput(v **Descr } if val != nil { xtv := string(val) - sv.SpotFleetRequestId = &xtv + sv.SpotFleetRequestId = ptr.String(xtv) } default: @@ -105841,7 +106767,7 @@ func awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestHistoryOutput(v ** if err != nil { return err } - sv.LastEvaluatedTime = &t + sv.LastEvaluatedTime = ptr.Time(t) } case strings.EqualFold("nextToken", t.Name.Local): @@ -105857,7 +106783,7 @@ func awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestHistoryOutput(v ** } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("spotFleetRequestId", t.Name.Local): @@ -105873,7 +106799,7 @@ func awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestHistoryOutput(v ** } if val != nil { xtv := string(val) - sv.SpotFleetRequestId = &xtv + sv.SpotFleetRequestId = ptr.String(xtv) } case strings.EqualFold("startTime", t.Name.Local): @@ -105890,7 +106816,7 @@ func awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestHistoryOutput(v ** if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } default: @@ -105938,7 +106864,7 @@ func awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestsOutput(v **Descri } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("spotFleetRequestConfigSet", t.Name.Local): @@ -105992,7 +106918,7 @@ func awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(v **Des } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("spotInstanceRequestSet", t.Name.Local): @@ -106046,7 +106972,7 @@ func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **Describ } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("spotPriceHistorySet", t.Name.Local): @@ -106100,7 +107026,7 @@ func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **Desc } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("staleSecurityGroupSet", t.Name.Local): @@ -106154,7 +107080,7 @@ func awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(v **DescribeSubnetsO } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("subnetSet", t.Name.Local): @@ -106208,7 +107134,7 @@ func awsEc2query_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -106262,7 +107188,7 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(v **Des } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("trafficMirrorFilterSet", t.Name.Local): @@ -106316,7 +107242,7 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(v **De } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("trafficMirrorSessionSet", t.Name.Local): @@ -106370,7 +107296,7 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(v **Des } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("trafficMirrorTargetSet", t.Name.Local): @@ -106424,7 +107350,7 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(v } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("transitGatewayAttachments", t.Name.Local): @@ -106478,7 +107404,7 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutp } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("transitGatewayMulticastDomains", t.Name.Local): @@ -106532,7 +107458,7 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOu } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("transitGatewayPeeringAttachments", t.Name.Local): @@ -106586,7 +107512,7 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("transitGatewayRouteTables", t.Name.Local): @@ -106640,7 +107566,7 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **Describe } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("transitGatewaySet", t.Name.Local): @@ -106694,7 +107620,7 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("transitGatewayVpcAttachments", t.Name.Local): @@ -106760,7 +107686,7 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **Describe } if val != nil { xtv := string(val) - sv.VolumeId = &xtv + sv.VolumeId = ptr.String(xtv) } default: @@ -106808,7 +107734,7 @@ func awsEc2query_deserializeOpDocumentDescribeVolumesModificationsOutput(v **Des } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("volumeModificationSet", t.Name.Local): @@ -106862,7 +107788,7 @@ func awsEc2query_deserializeOpDocumentDescribeVolumesOutput(v **DescribeVolumesO } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("volumeSet", t.Name.Local): @@ -106916,7 +107842,7 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(v **DescribeVol } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("volumeStatusSet", t.Name.Local): @@ -106982,7 +107908,7 @@ func awsEc2query_deserializeOpDocumentDescribeVpcAttributeOutput(v **DescribeVpc } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -107030,7 +107956,7 @@ func awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkDnsSupportOutput(v * } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("vpcs", t.Name.Local): @@ -107128,7 +108054,7 @@ func awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionNotifications } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -107176,7 +108102,7 @@ func awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionsOutput(v **D } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("vpcEndpointConnectionSet", t.Name.Local): @@ -107230,7 +108156,7 @@ func awsEc2query_deserializeOpDocumentDescribeVpcEndpointServiceConfigurationsOu } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("serviceConfigurationSet", t.Name.Local): @@ -107290,7 +108216,7 @@ func awsEc2query_deserializeOpDocumentDescribeVpcEndpointServicePermissionsOutpu } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -107338,7 +108264,7 @@ func awsEc2query_deserializeOpDocumentDescribeVpcEndpointServicesOutput(v **Desc } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("serviceDetailSet", t.Name.Local): @@ -107398,7 +108324,7 @@ func awsEc2query_deserializeOpDocumentDescribeVpcEndpointsOutput(v **DescribeVpc } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("vpcEndpointSet", t.Name.Local): @@ -107452,7 +108378,7 @@ func awsEc2query_deserializeOpDocumentDescribeVpcPeeringConnectionsOutput(v **De } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("vpcPeeringConnectionSet", t.Name.Local): @@ -107506,7 +108432,7 @@ func awsEc2query_deserializeOpDocumentDescribeVpcsOutput(v **DescribeVpcsOutput, } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("vpcSet", t.Name.Local): @@ -107636,7 +108562,7 @@ func awsEc2query_deserializeOpDocumentDetachClassicLinkVpcOutput(v **DetachClass if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -107749,7 +108675,7 @@ func awsEc2query_deserializeOpDocumentDetachVolumeOutput(v **DetachVolumeOutput, if err != nil { return err } - sv.AttachTime = &t + sv.AttachTime = ptr.Time(t) } case strings.EqualFold("deleteOnTermination", t.Name.Local): @@ -107765,7 +108691,7 @@ func awsEc2query_deserializeOpDocumentDetachVolumeOutput(v **DetachVolumeOutput, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = &xtv + sv.DeleteOnTermination = xtv } case strings.EqualFold("device", t.Name.Local): @@ -107781,7 +108707,7 @@ func awsEc2query_deserializeOpDocumentDetachVolumeOutput(v **DetachVolumeOutput, } if val != nil { xtv := string(val) - sv.Device = &xtv + sv.Device = ptr.String(xtv) } case strings.EqualFold("instanceId", t.Name.Local): @@ -107797,7 +108723,7 @@ func awsEc2query_deserializeOpDocumentDetachVolumeOutput(v **DetachVolumeOutput, } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -107826,7 +108752,7 @@ func awsEc2query_deserializeOpDocumentDetachVolumeOutput(v **DetachVolumeOutput, } if val != nil { xtv := string(val) - sv.VolumeId = &xtv + sv.VolumeId = ptr.String(xtv) } default: @@ -107906,7 +108832,7 @@ func awsEc2query_deserializeOpDocumentDisableEbsEncryptionByDefaultOutput(v **Di if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsEncryptionByDefault = &xtv + sv.EbsEncryptionByDefault = xtv } default: @@ -108068,7 +108994,7 @@ func awsEc2query_deserializeOpDocumentDisableVpcClassicLinkDnsSupportOutput(v ** if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -108116,7 +109042,7 @@ func awsEc2query_deserializeOpDocumentDisableVpcClassicLinkOutput(v **DisableVpc if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -108196,7 +109122,7 @@ func awsEc2query_deserializeOpDocumentDisassociateClientVpnTargetNetworkOutput(v } if val != nil { xtv := string(val) - sv.AssociationId = &xtv + sv.AssociationId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -108250,7 +109176,7 @@ func awsEc2query_deserializeOpDocumentDisassociateEnclaveCertificateIamRoleOutpu if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -108374,7 +109300,7 @@ func awsEc2query_deserializeOpDocumentDisassociateSubnetCidrBlockOutput(v **Disa } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } default: @@ -108510,7 +109436,7 @@ func awsEc2query_deserializeOpDocumentDisassociateVpcCidrBlockOutput(v **Disasso } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -108558,7 +109484,7 @@ func awsEc2query_deserializeOpDocumentEnableEbsEncryptionByDefaultOutput(v **Ena if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsEncryptionByDefault = &xtv + sv.EbsEncryptionByDefault = xtv } default: @@ -108752,7 +109678,7 @@ func awsEc2query_deserializeOpDocumentEnableVpcClassicLinkDnsSupportOutput(v **E if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -108800,7 +109726,7 @@ func awsEc2query_deserializeOpDocumentEnableVpcClassicLinkOutput(v **EnableVpcCl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -108848,7 +109774,7 @@ func awsEc2query_deserializeOpDocumentExportClientVpnClientCertificateRevocation } if val != nil { xtv := string(val) - sv.CertificateRevocationList = &xtv + sv.CertificateRevocationList = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -108902,7 +109828,7 @@ func awsEc2query_deserializeOpDocumentExportClientVpnClientConfigurationOutput(v } if val != nil { xtv := string(val) - sv.ClientConfiguration = &xtv + sv.ClientConfiguration = ptr.String(xtv) } default: @@ -108950,7 +109876,7 @@ func awsEc2query_deserializeOpDocumentExportImageOutput(v **ExportImageOutput, d } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("diskImageFormat", t.Name.Local): @@ -108979,7 +109905,7 @@ func awsEc2query_deserializeOpDocumentExportImageOutput(v **ExportImageOutput, d } if val != nil { xtv := string(val) - sv.ExportImageTaskId = &xtv + sv.ExportImageTaskId = ptr.String(xtv) } case strings.EqualFold("imageId", t.Name.Local): @@ -108995,7 +109921,7 @@ func awsEc2query_deserializeOpDocumentExportImageOutput(v **ExportImageOutput, d } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } case strings.EqualFold("progress", t.Name.Local): @@ -109011,7 +109937,7 @@ func awsEc2query_deserializeOpDocumentExportImageOutput(v **ExportImageOutput, d } if val != nil { xtv := string(val) - sv.Progress = &xtv + sv.Progress = ptr.String(xtv) } case strings.EqualFold("roleName", t.Name.Local): @@ -109027,7 +109953,7 @@ func awsEc2query_deserializeOpDocumentExportImageOutput(v **ExportImageOutput, d } if val != nil { xtv := string(val) - sv.RoleName = &xtv + sv.RoleName = ptr.String(xtv) } case strings.EqualFold("s3ExportLocation", t.Name.Local): @@ -109049,7 +109975,7 @@ func awsEc2query_deserializeOpDocumentExportImageOutput(v **ExportImageOutput, d } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("statusMessage", t.Name.Local): @@ -109065,7 +109991,7 @@ func awsEc2query_deserializeOpDocumentExportImageOutput(v **ExportImageOutput, d } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -109119,7 +110045,7 @@ func awsEc2query_deserializeOpDocumentExportTransitGatewayRoutesOutput(v **Expor } if val != nil { xtv := string(val) - sv.S3Location = &xtv + sv.S3Location = ptr.String(xtv) } default: @@ -109211,7 +110137,7 @@ func awsEc2query_deserializeOpDocumentGetAssociatedIpv6PoolCidrsOutput(v **GetAs } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -109260,7 +110186,7 @@ func awsEc2query_deserializeOpDocumentGetCapacityReservationUsageOutput(v **GetC if err != nil { return err } - sv.AvailableInstanceCount = ptr.Int32(int32(i64)) + sv.AvailableInstanceCount = int32(i64) } case strings.EqualFold("capacityReservationId", t.Name.Local): @@ -109276,7 +110202,7 @@ func awsEc2query_deserializeOpDocumentGetCapacityReservationUsageOutput(v **GetC } if val != nil { xtv := string(val) - sv.CapacityReservationId = &xtv + sv.CapacityReservationId = ptr.String(xtv) } case strings.EqualFold("instanceType", t.Name.Local): @@ -109292,7 +110218,7 @@ func awsEc2query_deserializeOpDocumentGetCapacityReservationUsageOutput(v **GetC } if val != nil { xtv := string(val) - sv.InstanceType = &xtv + sv.InstanceType = ptr.String(xtv) } case strings.EqualFold("instanceUsageSet", t.Name.Local): @@ -109314,7 +110240,7 @@ func awsEc2query_deserializeOpDocumentGetCapacityReservationUsageOutput(v **GetC } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -109344,7 +110270,7 @@ func awsEc2query_deserializeOpDocumentGetCapacityReservationUsageOutput(v **GetC if err != nil { return err } - sv.TotalInstanceCount = ptr.Int32(int32(i64)) + sv.TotalInstanceCount = int32(i64) } default: @@ -109398,7 +110324,7 @@ func awsEc2query_deserializeOpDocumentGetCoipPoolUsageOutput(v **GetCoipPoolUsag } if val != nil { xtv := string(val) - sv.CoipPoolId = &xtv + sv.CoipPoolId = ptr.String(xtv) } case strings.EqualFold("localGatewayRouteTableId", t.Name.Local): @@ -109414,7 +110340,7 @@ func awsEc2query_deserializeOpDocumentGetCoipPoolUsageOutput(v **GetCoipPoolUsag } if val != nil { xtv := string(val) - sv.LocalGatewayRouteTableId = &xtv + sv.LocalGatewayRouteTableId = ptr.String(xtv) } default: @@ -109462,7 +110388,7 @@ func awsEc2query_deserializeOpDocumentGetConsoleOutputOutput(v **GetConsoleOutpu } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("output", t.Name.Local): @@ -109478,7 +110404,7 @@ func awsEc2query_deserializeOpDocumentGetConsoleOutputOutput(v **GetConsoleOutpu } if val != nil { xtv := string(val) - sv.Output = &xtv + sv.Output = ptr.String(xtv) } case strings.EqualFold("timestamp", t.Name.Local): @@ -109495,7 +110421,7 @@ func awsEc2query_deserializeOpDocumentGetConsoleOutputOutput(v **GetConsoleOutpu if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -109543,7 +110469,7 @@ func awsEc2query_deserializeOpDocumentGetConsoleScreenshotOutput(v **GetConsoleS } if val != nil { xtv := string(val) - sv.ImageData = &xtv + sv.ImageData = ptr.String(xtv) } case strings.EqualFold("instanceId", t.Name.Local): @@ -109559,7 +110485,7 @@ func awsEc2query_deserializeOpDocumentGetConsoleScreenshotOutput(v **GetConsoleS } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } default: @@ -109645,7 +110571,7 @@ func awsEc2query_deserializeOpDocumentGetEbsDefaultKmsKeyIdOutput(v **GetEbsDefa } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } default: @@ -109693,7 +110619,7 @@ func awsEc2query_deserializeOpDocumentGetEbsEncryptionByDefaultOutput(v **GetEbs if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsEncryptionByDefault = &xtv + sv.EbsEncryptionByDefault = xtv } default: @@ -109747,7 +110673,7 @@ func awsEc2query_deserializeOpDocumentGetGroupsForCapacityReservationOutput(v ** } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -109814,7 +110740,7 @@ func awsEc2query_deserializeOpDocumentGetHostReservationPurchasePreviewOutput(v } if val != nil { xtv := string(val) - sv.TotalHourlyPrice = &xtv + sv.TotalHourlyPrice = ptr.String(xtv) } case strings.EqualFold("totalUpfrontPrice", t.Name.Local): @@ -109830,7 +110756,7 @@ func awsEc2query_deserializeOpDocumentGetHostReservationPurchasePreviewOutput(v } if val != nil { xtv := string(val) - sv.TotalUpfrontPrice = &xtv + sv.TotalUpfrontPrice = ptr.String(xtv) } default: @@ -109916,7 +110842,7 @@ func awsEc2query_deserializeOpDocumentGetManagedPrefixListAssociationsOutput(v * } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("prefixListAssociationSet", t.Name.Local): @@ -109976,7 +110902,7 @@ func awsEc2query_deserializeOpDocumentGetManagedPrefixListEntriesOutput(v **GetM } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -110024,7 +110950,7 @@ func awsEc2query_deserializeOpDocumentGetPasswordDataOutput(v **GetPasswordDataO } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("passwordData", t.Name.Local): @@ -110040,7 +110966,7 @@ func awsEc2query_deserializeOpDocumentGetPasswordDataOutput(v **GetPasswordDataO } if val != nil { xtv := string(val) - sv.PasswordData = &xtv + sv.PasswordData = ptr.String(xtv) } case strings.EqualFold("timestamp", t.Name.Local): @@ -110057,7 +110983,7 @@ func awsEc2query_deserializeOpDocumentGetPasswordDataOutput(v **GetPasswordDataO if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -110105,7 +111031,7 @@ func awsEc2query_deserializeOpDocumentGetReservedInstancesExchangeQuoteOutput(v } if val != nil { xtv := string(val) - sv.CurrencyCode = &xtv + sv.CurrencyCode = ptr.String(xtv) } case strings.EqualFold("isValidExchange", t.Name.Local): @@ -110121,7 +111047,7 @@ func awsEc2query_deserializeOpDocumentGetReservedInstancesExchangeQuoteOutput(v if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsValidExchange = &xtv + sv.IsValidExchange = xtv } case strings.EqualFold("outputReservedInstancesWillExpireAt", t.Name.Local): @@ -110138,7 +111064,7 @@ func awsEc2query_deserializeOpDocumentGetReservedInstancesExchangeQuoteOutput(v if err != nil { return err } - sv.OutputReservedInstancesWillExpireAt = &t + sv.OutputReservedInstancesWillExpireAt = ptr.Time(t) } case strings.EqualFold("paymentDue", t.Name.Local): @@ -110154,7 +111080,7 @@ func awsEc2query_deserializeOpDocumentGetReservedInstancesExchangeQuoteOutput(v } if val != nil { xtv := string(val) - sv.PaymentDue = &xtv + sv.PaymentDue = ptr.String(xtv) } case strings.EqualFold("reservedInstanceValueRollup", t.Name.Local): @@ -110194,7 +111120,7 @@ func awsEc2query_deserializeOpDocumentGetReservedInstancesExchangeQuoteOutput(v } if val != nil { xtv := string(val) - sv.ValidationFailureReason = &xtv + sv.ValidationFailureReason = ptr.String(xtv) } default: @@ -110242,7 +111168,7 @@ func awsEc2query_deserializeOpDocumentGetTransitGatewayAttachmentPropagationsOut } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("transitGatewayAttachmentPropagations", t.Name.Local): @@ -110302,7 +111228,7 @@ func awsEc2query_deserializeOpDocumentGetTransitGatewayMulticastDomainAssociatio } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -110350,7 +111276,7 @@ func awsEc2query_deserializeOpDocumentGetTransitGatewayPrefixListReferencesOutpu } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("transitGatewayPrefixListReferenceSet", t.Name.Local): @@ -110410,7 +111336,7 @@ func awsEc2query_deserializeOpDocumentGetTransitGatewayRouteTableAssociationsOut } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -110458,7 +111384,7 @@ func awsEc2query_deserializeOpDocumentGetTransitGatewayRouteTablePropagationsOut } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("transitGatewayRouteTablePropagations", t.Name.Local): @@ -110512,7 +111438,7 @@ func awsEc2query_deserializeOpDocumentImportClientVpnClientCertificateRevocation if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -110560,7 +111486,7 @@ func awsEc2query_deserializeOpDocumentImportImageOutput(v **ImportImageOutput, d } if val != nil { xtv := string(val) - sv.Architecture = &xtv + sv.Architecture = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -110576,7 +111502,7 @@ func awsEc2query_deserializeOpDocumentImportImageOutput(v **ImportImageOutput, d } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("encrypted", t.Name.Local): @@ -110592,7 +111518,7 @@ func awsEc2query_deserializeOpDocumentImportImageOutput(v **ImportImageOutput, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("hypervisor", t.Name.Local): @@ -110608,7 +111534,7 @@ func awsEc2query_deserializeOpDocumentImportImageOutput(v **ImportImageOutput, d } if val != nil { xtv := string(val) - sv.Hypervisor = &xtv + sv.Hypervisor = ptr.String(xtv) } case strings.EqualFold("imageId", t.Name.Local): @@ -110624,7 +111550,7 @@ func awsEc2query_deserializeOpDocumentImportImageOutput(v **ImportImageOutput, d } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } case strings.EqualFold("importTaskId", t.Name.Local): @@ -110640,7 +111566,7 @@ func awsEc2query_deserializeOpDocumentImportImageOutput(v **ImportImageOutput, d } if val != nil { xtv := string(val) - sv.ImportTaskId = &xtv + sv.ImportTaskId = ptr.String(xtv) } case strings.EqualFold("kmsKeyId", t.Name.Local): @@ -110656,7 +111582,7 @@ func awsEc2query_deserializeOpDocumentImportImageOutput(v **ImportImageOutput, d } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("licenseSpecifications", t.Name.Local): @@ -110678,7 +111604,7 @@ func awsEc2query_deserializeOpDocumentImportImageOutput(v **ImportImageOutput, d } if val != nil { xtv := string(val) - sv.LicenseType = &xtv + sv.LicenseType = ptr.String(xtv) } case strings.EqualFold("platform", t.Name.Local): @@ -110694,7 +111620,7 @@ func awsEc2query_deserializeOpDocumentImportImageOutput(v **ImportImageOutput, d } if val != nil { xtv := string(val) - sv.Platform = &xtv + sv.Platform = ptr.String(xtv) } case strings.EqualFold("progress", t.Name.Local): @@ -110710,7 +111636,7 @@ func awsEc2query_deserializeOpDocumentImportImageOutput(v **ImportImageOutput, d } if val != nil { xtv := string(val) - sv.Progress = &xtv + sv.Progress = ptr.String(xtv) } case strings.EqualFold("snapshotDetailSet", t.Name.Local): @@ -110732,7 +111658,7 @@ func awsEc2query_deserializeOpDocumentImportImageOutput(v **ImportImageOutput, d } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("statusMessage", t.Name.Local): @@ -110748,7 +111674,7 @@ func awsEc2query_deserializeOpDocumentImportImageOutput(v **ImportImageOutput, d } if val != nil { xtv := string(val) - sv.StatusMessage = &xtv + sv.StatusMessage = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -110840,7 +111766,7 @@ func awsEc2query_deserializeOpDocumentImportKeyPairOutput(v **ImportKeyPairOutpu } if val != nil { xtv := string(val) - sv.KeyFingerprint = &xtv + sv.KeyFingerprint = ptr.String(xtv) } case strings.EqualFold("keyName", t.Name.Local): @@ -110856,7 +111782,7 @@ func awsEc2query_deserializeOpDocumentImportKeyPairOutput(v **ImportKeyPairOutpu } if val != nil { xtv := string(val) - sv.KeyName = &xtv + sv.KeyName = ptr.String(xtv) } case strings.EqualFold("keyPairId", t.Name.Local): @@ -110872,7 +111798,7 @@ func awsEc2query_deserializeOpDocumentImportKeyPairOutput(v **ImportKeyPairOutpu } if val != nil { xtv := string(val) - sv.KeyPairId = &xtv + sv.KeyPairId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -110926,7 +111852,7 @@ func awsEc2query_deserializeOpDocumentImportSnapshotOutput(v **ImportSnapshotOut } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("importTaskId", t.Name.Local): @@ -110942,7 +111868,7 @@ func awsEc2query_deserializeOpDocumentImportSnapshotOutput(v **ImportSnapshotOut } if val != nil { xtv := string(val) - sv.ImportTaskId = &xtv + sv.ImportTaskId = ptr.String(xtv) } case strings.EqualFold("snapshotTaskDetail", t.Name.Local): @@ -111040,7 +111966,7 @@ func awsEc2query_deserializeOpDocumentModifyAvailabilityZoneGroupOutput(v **Modi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -111088,7 +112014,7 @@ func awsEc2query_deserializeOpDocumentModifyCapacityReservationOutput(v **Modify if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -111136,7 +112062,7 @@ func awsEc2query_deserializeOpDocumentModifyClientVpnEndpointOutput(v **ModifyCl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -111222,7 +112148,7 @@ func awsEc2query_deserializeOpDocumentModifyEbsDefaultKmsKeyIdOutput(v **ModifyE } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } default: @@ -111270,7 +112196,7 @@ func awsEc2query_deserializeOpDocumentModifyFleetOutput(v **ModifyFleetOutput, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -111528,7 +112454,7 @@ func awsEc2query_deserializeOpDocumentModifyInstanceCapacityReservationAttribute if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -111658,7 +112584,7 @@ func awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(v **Mo } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("instanceMetadataOptions", t.Name.Local): @@ -111712,7 +112638,7 @@ func awsEc2query_deserializeOpDocumentModifyInstancePlacementOutput(v **ModifyIn if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -111868,7 +112794,7 @@ func awsEc2query_deserializeOpDocumentModifyReservedInstancesOutput(v **ModifyRe } if val != nil { xtv := string(val) - sv.ReservedInstancesModificationId = &xtv + sv.ReservedInstancesModificationId = ptr.String(xtv) } default: @@ -111948,7 +112874,7 @@ func awsEc2query_deserializeOpDocumentModifySpotFleetRequestOutput(v **ModifySpo if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -112358,7 +113284,7 @@ func awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOut if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnValue = &xtv + sv.ReturnValue = xtv } default: @@ -112406,7 +113332,7 @@ func awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(v **ModifyVpcEndpo if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -112454,7 +113380,7 @@ func awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutpu if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -112502,7 +113428,7 @@ func awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput( if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnValue = &xtv + sv.ReturnValue = xtv } default: @@ -112594,7 +113520,7 @@ func awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(v **ModifyVpcTenanc if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnValue = &xtv + sv.ReturnValue = xtv } default: @@ -112832,7 +113758,7 @@ func awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(v **MoveAddressToVp } if val != nil { xtv := string(val) - sv.AllocationId = &xtv + sv.AllocationId = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -112931,7 +113857,7 @@ func awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(v **Purchase } if val != nil { xtv := string(val) - sv.ClientToken = &xtv + sv.ClientToken = ptr.String(xtv) } case strings.EqualFold("currencyCode", t.Name.Local): @@ -112966,7 +113892,7 @@ func awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(v **Purchase } if val != nil { xtv := string(val) - sv.TotalHourlyPrice = &xtv + sv.TotalHourlyPrice = ptr.String(xtv) } case strings.EqualFold("totalUpfrontPrice", t.Name.Local): @@ -112982,7 +113908,7 @@ func awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(v **Purchase } if val != nil { xtv := string(val) - sv.TotalUpfrontPrice = &xtv + sv.TotalUpfrontPrice = ptr.String(xtv) } default: @@ -113030,7 +113956,7 @@ func awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(v } if val != nil { xtv := string(val) - sv.ReservedInstancesId = &xtv + sv.ReservedInstancesId = ptr.String(xtv) } default: @@ -113148,7 +114074,7 @@ func awsEc2query_deserializeOpDocumentRegisterImageOutput(v **RegisterImageOutpu } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } default: @@ -113424,7 +114350,7 @@ func awsEc2query_deserializeOpDocumentRejectVpcPeeringConnectionOutput(v **Rejec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -113586,7 +114512,7 @@ func awsEc2query_deserializeOpDocumentReplaceNetworkAclAssociationOutput(v **Rep } if val != nil { xtv := string(val) - sv.NewAssociationId = &xtv + sv.NewAssociationId = ptr.String(xtv) } default: @@ -113704,7 +114630,7 @@ func awsEc2query_deserializeOpDocumentReplaceRouteTableAssociationOutput(v **Rep } if val != nil { xtv := string(val) - sv.NewAssociationId = &xtv + sv.NewAssociationId = ptr.String(xtv) } default: @@ -113822,7 +114748,7 @@ func awsEc2query_deserializeOpDocumentRequestSpotFleetOutput(v **RequestSpotFlee } if val != nil { xtv := string(val) - sv.SpotFleetRequestId = &xtv + sv.SpotFleetRequestId = ptr.String(xtv) } default: @@ -113908,7 +114834,7 @@ func awsEc2query_deserializeOpDocumentResetEbsDefaultKmsKeyIdOutput(v **ResetEbs } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } default: @@ -113956,7 +114882,7 @@ func awsEc2query_deserializeOpDocumentResetFpgaImageAttributeOutput(v **ResetFpg if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -114132,7 +115058,7 @@ func awsEc2query_deserializeOpDocumentRestoreAddressToClassicOutput(v **RestoreA } if val != nil { xtv := string(val) - sv.PublicIp = &xtv + sv.PublicIp = ptr.String(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -114269,7 +115195,7 @@ func awsEc2query_deserializeOpDocumentRevokeSecurityGroupEgressOutput(v **Revoke if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } case strings.EqualFold("unknownIpPermissionSet", t.Name.Local): @@ -114323,7 +115249,7 @@ func awsEc2query_deserializeOpDocumentRevokeSecurityGroupIngressOutput(v **Revok if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } case strings.EqualFold("unknownIpPermissionSet", t.Name.Local): @@ -114389,7 +115315,7 @@ func awsEc2query_deserializeOpDocumentRunInstancesOutput(v **RunInstancesOutput, } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("requesterId", t.Name.Local): @@ -114405,7 +115331,7 @@ func awsEc2query_deserializeOpDocumentRunInstancesOutput(v **RunInstancesOutput, } if val != nil { xtv := string(val) - sv.RequesterId = &xtv + sv.RequesterId = ptr.String(xtv) } case strings.EqualFold("reservationId", t.Name.Local): @@ -114421,7 +115347,7 @@ func awsEc2query_deserializeOpDocumentRunInstancesOutput(v **RunInstancesOutput, } if val != nil { xtv := string(val) - sv.ReservationId = &xtv + sv.ReservationId = ptr.String(xtv) } default: @@ -114507,7 +115433,7 @@ func awsEc2query_deserializeOpDocumentSearchLocalGatewayRoutesOutput(v **SearchL } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("routeSet", t.Name.Local): @@ -114567,7 +115493,7 @@ func awsEc2query_deserializeOpDocumentSearchTransitGatewayMulticastGroupsOutput( } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -114615,7 +115541,7 @@ func awsEc2query_deserializeOpDocumentSearchTransitGatewayRoutesOutput(v **Searc if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AdditionalRoutesAvailable = &xtv + sv.AdditionalRoutesAvailable = xtv } case strings.EqualFold("routeSet", t.Name.Local): @@ -114739,7 +115665,7 @@ func awsEc2query_deserializeOpDocumentStartVpcEndpointServicePrivateDnsVerificat if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnValue = &xtv + sv.ReturnValue = xtv } default: @@ -114825,7 +115751,7 @@ func awsEc2query_deserializeOpDocumentTerminateClientVpnConnectionsOutput(v **Te } if val != nil { xtv := string(val) - sv.ClientVpnEndpointId = &xtv + sv.ClientVpnEndpointId = ptr.String(xtv) } case strings.EqualFold("connectionStatuses", t.Name.Local): @@ -114847,7 +115773,7 @@ func awsEc2query_deserializeOpDocumentTerminateClientVpnConnectionsOutput(v **Te } if val != nil { xtv := string(val) - sv.Username = &xtv + sv.Username = ptr.String(xtv) } default: @@ -114933,7 +115859,7 @@ func awsEc2query_deserializeOpDocumentUnassignIpv6AddressesOutput(v **UnassignIp } if val != nil { xtv := string(val) - sv.NetworkInterfaceId = &xtv + sv.NetworkInterfaceId = ptr.String(xtv) } case strings.EqualFold("unassignedIpv6Addresses", t.Name.Local): @@ -115057,7 +115983,7 @@ func awsEc2query_deserializeOpDocumentUpdateSecurityGroupRuleDescriptionsEgressO if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: @@ -115105,7 +116031,7 @@ func awsEc2query_deserializeOpDocumentUpdateSecurityGroupRuleDescriptionsIngress if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = &xtv + sv.Return = xtv } default: diff --git a/service/ec2/go.mod b/service/ec2/go.mod index 94f50277a10..101e2fcda5a 100644 --- a/service/ec2/go.mod +++ b/service/ec2/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/ec2 go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v0.1.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v0.1.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/ec2/internal/customizations/unit_test.go b/service/ec2/internal/customizations/unit_test.go index 2dc1e0be8fa..4c68b753ca3 100644 --- a/service/ec2/internal/customizations/unit_test.go +++ b/service/ec2/internal/customizations/unit_test.go @@ -12,7 +12,6 @@ import ( "github.com/aws/aws-sdk-go-v2/service/ec2" "github.com/awslabs/smithy-go" - "github.com/awslabs/smithy-go/ptr" ) func Test_EmptyResponse(t *testing.T) { @@ -58,8 +57,8 @@ func Test_EmptyResponse(t *testing.T) { client := ec2.NewFromConfig(cfg) params := &ec2.DeleteFleetsInput{ - FleetIds: ptr.StringSlice([]string{"mockid"}), - TerminateInstances: aws.Bool(true), + FleetIds: []string{"mockid"}, + TerminateInstances: true, } _, err := client.DeleteFleets(ctx, params) if c.expectError { diff --git a/service/ec2/serializers.go b/service/ec2/serializers.go index 3662463daac..4df923b6541 100644 --- a/service/ec2/serializers.go +++ b/service/ec2/serializers.go @@ -23292,18 +23292,15 @@ func awsEc2query_serializeDocumentAccountAttributeNameStringList(v []types.Accou return nil } -func awsEc2query_serializeDocumentAddPrefixListEntries(v []*types.AddPrefixListEntry, value query.Value) error { +func awsEc2query_serializeDocumentAddPrefixListEntries(v []types.AddPrefixListEntry, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentAddPrefixListEntry(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentAddPrefixListEntry(&v[i], av); err != nil { return err } } @@ -23327,34 +23324,28 @@ func awsEc2query_serializeDocumentAddPrefixListEntry(v *types.AddPrefixListEntry return nil } -func awsEc2query_serializeDocumentAllocationIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentAllocationIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("AllocationId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentAssociationIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentAssociationIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("AssociationId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -23363,9 +23354,9 @@ func awsEc2query_serializeDocumentAttributeBooleanValue(v *types.AttributeBoolea object := value.Object() _ = object - if v.Value != nil { + if v.Value { objectKey := object.Key("Value") - objectKey.Boolean(*v.Value) + objectKey.Boolean(v.Value) } return nil @@ -23383,34 +23374,28 @@ func awsEc2query_serializeDocumentAttributeValue(v *types.AttributeValue, value return nil } -func awsEc2query_serializeDocumentAvailabilityZoneStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentAvailabilityZoneStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("AvailabilityZone") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentBillingProductList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentBillingProductList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -23456,70 +23441,58 @@ func awsEc2query_serializeDocumentBlockDeviceMapping(v *types.BlockDeviceMapping return nil } -func awsEc2query_serializeDocumentBlockDeviceMappingList(v []*types.BlockDeviceMapping, value query.Value) error { +func awsEc2query_serializeDocumentBlockDeviceMappingList(v []types.BlockDeviceMapping, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentBlockDeviceMapping(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentBlockDeviceMapping(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentBlockDeviceMappingRequestList(v []*types.BlockDeviceMapping, value query.Value) error { +func awsEc2query_serializeDocumentBlockDeviceMappingRequestList(v []types.BlockDeviceMapping, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("BlockDeviceMapping") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentBlockDeviceMapping(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentBlockDeviceMapping(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentBundleIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentBundleIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("BundleId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentCapacityReservationIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentCapacityReservationIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -23572,18 +23545,15 @@ func awsEc2query_serializeDocumentCapacityReservationTarget(v *types.CapacityRes return nil } -func awsEc2query_serializeDocumentCarrierGatewayIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentCarrierGatewayIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -23629,18 +23599,15 @@ func awsEc2query_serializeDocumentClassicLoadBalancer(v *types.ClassicLoadBalanc return nil } -func awsEc2query_serializeDocumentClassicLoadBalancers(v []*types.ClassicLoadBalancer, value query.Value) error { +func awsEc2query_serializeDocumentClassicLoadBalancers(v []types.ClassicLoadBalancer, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentClassicLoadBalancer(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentClassicLoadBalancer(&v[i], av); err != nil { return err } } @@ -23675,9 +23642,9 @@ func awsEc2query_serializeDocumentClientData(v *types.ClientData, value query.Va objectKey.String(smithytime.FormatDateTime(*v.UploadEnd)) } - if v.UploadSize != nil { + if v.UploadSize != 0 { objectKey := object.Key("UploadSize") - objectKey.Double(*v.UploadSize) + objectKey.Double(v.UploadSize) } if v.UploadStart != nil { @@ -23721,68 +23688,56 @@ func awsEc2query_serializeDocumentClientVpnAuthenticationRequest(v *types.Client return nil } -func awsEc2query_serializeDocumentClientVpnAuthenticationRequestList(v []*types.ClientVpnAuthenticationRequest, value query.Value) error { +func awsEc2query_serializeDocumentClientVpnAuthenticationRequestList(v []types.ClientVpnAuthenticationRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentClientVpnAuthenticationRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentClientVpnAuthenticationRequest(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentClientVpnEndpointIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentClientVpnEndpointIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentClientVpnSecurityGroupIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentClientVpnSecurityGroupIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentCoipPoolIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentCoipPoolIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -23801,42 +23756,36 @@ func awsEc2query_serializeDocumentConnectionLogOptions(v *types.ConnectionLogOpt objectKey.String(*v.CloudwatchLogStream) } - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } return nil } -func awsEc2query_serializeDocumentConnectionNotificationIdsList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentConnectionNotificationIdsList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentConversionIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentConversionIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -23845,14 +23794,14 @@ func awsEc2query_serializeDocumentCpuOptionsRequest(v *types.CpuOptionsRequest, object := value.Object() _ = object - if v.CoreCount != nil { + if v.CoreCount != 0 { objectKey := object.Key("CoreCount") - objectKey.Integer(*v.CoreCount) + objectKey.Integer(v.CoreCount) } - if v.ThreadsPerCore != nil { + if v.ThreadsPerCore != 0 { objectKey := object.Key("ThreadsPerCore") - objectKey.Integer(*v.ThreadsPerCore) + objectKey.Integer(v.ThreadsPerCore) } return nil @@ -23897,18 +23846,15 @@ func awsEc2query_serializeDocumentCreateVolumePermission(v *types.CreateVolumePe return nil } -func awsEc2query_serializeDocumentCreateVolumePermissionList(v []*types.CreateVolumePermission, value query.Value) error { +func awsEc2query_serializeDocumentCreateVolumePermissionList(v []types.CreateVolumePermission, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentCreateVolumePermission(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentCreateVolumePermission(&v[i], av); err != nil { return err } } @@ -23948,34 +23894,28 @@ func awsEc2query_serializeDocumentCreditSpecificationRequest(v *types.CreditSpec return nil } -func awsEc2query_serializeDocumentCustomerGatewayIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentCustomerGatewayIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("CustomerGatewayId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentDeleteQueuedReservedInstancesIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentDeleteQueuedReservedInstancesIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -23984,9 +23924,9 @@ func awsEc2query_serializeDocumentDeregisterInstanceTagAttributeRequest(v *types object := value.Object() _ = object - if v.IncludeAllTagsOfInstance != nil { + if v.IncludeAllTagsOfInstance { objectKey := object.Key("IncludeAllTagsOfInstance") - objectKey.Boolean(*v.IncludeAllTagsOfInstance) + objectKey.Boolean(v.IncludeAllTagsOfInstance) } if v.InstanceTagKeys != nil { @@ -23999,18 +23939,15 @@ func awsEc2query_serializeDocumentDeregisterInstanceTagAttributeRequest(v *types return nil } -func awsEc2query_serializeDocumentDhcpOptionsIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentDhcpOptionsIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("DhcpOptionsId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -24057,9 +23994,9 @@ func awsEc2query_serializeDocumentDiskImageDetail(v *types.DiskImageDetail, valu object := value.Object() _ = object - if v.Bytes != nil { + if v.Bytes != 0 { objectKey := object.Key("Bytes") - objectKey.Long(*v.Bytes) + objectKey.Long(v.Bytes) } if len(v.Format) > 0 { @@ -24075,18 +24012,15 @@ func awsEc2query_serializeDocumentDiskImageDetail(v *types.DiskImageDetail, valu return nil } -func awsEc2query_serializeDocumentDiskImageList(v []*types.DiskImage, value query.Value) error { +func awsEc2query_serializeDocumentDiskImageList(v []types.DiskImage, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentDiskImage(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentDiskImage(&v[i], av); err != nil { return err } } @@ -24104,9 +24038,9 @@ func awsEc2query_serializeDocumentDnsServersOptionsModifyStructure(v *types.DnsS } } - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } return nil @@ -24116,19 +24050,19 @@ func awsEc2query_serializeDocumentEbsBlockDevice(v *types.EbsBlockDevice, value object := value.Object() _ = object - if v.DeleteOnTermination != nil { + if v.DeleteOnTermination { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(*v.DeleteOnTermination) + objectKey.Boolean(v.DeleteOnTermination) } - if v.Encrypted != nil { + if v.Encrypted { objectKey := object.Key("Encrypted") - objectKey.Boolean(*v.Encrypted) + objectKey.Boolean(v.Encrypted) } - if v.Iops != nil { + if v.Iops != 0 { objectKey := object.Key("Iops") - objectKey.Integer(*v.Iops) + objectKey.Integer(v.Iops) } if v.KmsKeyId != nil { @@ -24141,9 +24075,9 @@ func awsEc2query_serializeDocumentEbsBlockDevice(v *types.EbsBlockDevice, value objectKey.String(*v.SnapshotId) } - if v.VolumeSize != nil { + if v.VolumeSize != 0 { objectKey := object.Key("VolumeSize") - objectKey.Integer(*v.VolumeSize) + objectKey.Integer(v.VolumeSize) } if len(v.VolumeType) > 0 { @@ -24158,9 +24092,9 @@ func awsEc2query_serializeDocumentEbsInstanceBlockDeviceSpecification(v *types.E object := value.Object() _ = object - if v.DeleteOnTermination != nil { + if v.DeleteOnTermination { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(*v.DeleteOnTermination) + objectKey.Boolean(v.DeleteOnTermination) } if v.VolumeId != nil { @@ -24171,34 +24105,28 @@ func awsEc2query_serializeDocumentEbsInstanceBlockDeviceSpecification(v *types.E return nil } -func awsEc2query_serializeDocumentEgressOnlyInternetGatewayIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentEgressOnlyInternetGatewayIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentElasticGpuIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentElasticGpuIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -24215,36 +24143,30 @@ func awsEc2query_serializeDocumentElasticGpuSpecification(v *types.ElasticGpuSpe return nil } -func awsEc2query_serializeDocumentElasticGpuSpecificationList(v []*types.ElasticGpuSpecification, value query.Value) error { +func awsEc2query_serializeDocumentElasticGpuSpecificationList(v []types.ElasticGpuSpecification, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ElasticGpuSpecification") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentElasticGpuSpecification(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentElasticGpuSpecification(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentElasticGpuSpecifications(v []*types.ElasticGpuSpecification, value query.Value) error { +func awsEc2query_serializeDocumentElasticGpuSpecifications(v []types.ElasticGpuSpecification, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentElasticGpuSpecification(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentElasticGpuSpecification(&v[i], av); err != nil { return err } } @@ -24255,9 +24177,9 @@ func awsEc2query_serializeDocumentElasticInferenceAccelerator(v *types.ElasticIn object := value.Object() _ = object - if v.Count != nil { + if v.Count != 0 { objectKey := object.Key("Count") - objectKey.Integer(*v.Count) + objectKey.Integer(v.Count) } if v.Type != nil { @@ -24268,18 +24190,15 @@ func awsEc2query_serializeDocumentElasticInferenceAccelerator(v *types.ElasticIn return nil } -func awsEc2query_serializeDocumentElasticInferenceAccelerators(v []*types.ElasticInferenceAccelerator, value query.Value) error { +func awsEc2query_serializeDocumentElasticInferenceAccelerators(v []types.ElasticInferenceAccelerator, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentElasticInferenceAccelerator(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentElasticInferenceAccelerator(&v[i], av); err != nil { return err } } @@ -24290,58 +24209,49 @@ func awsEc2query_serializeDocumentEnclaveOptionsRequest(v *types.EnclaveOptionsR object := value.Object() _ = object - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } return nil } -func awsEc2query_serializeDocumentExecutableByStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentExecutableByStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ExecutableBy") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentExportImageTaskIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentExportImageTaskIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ExportImageTaskId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentExportTaskIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentExportTaskIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ExportTaskId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -24426,52 +24336,43 @@ func awsEc2query_serializeDocumentFilter(v *types.Filter, value query.Value) err return nil } -func awsEc2query_serializeDocumentFilterList(v []*types.Filter, value query.Value) error { +func awsEc2query_serializeDocumentFilterList(v []types.Filter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Filter") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentFilter(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentFleetIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentFleetIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentFleetLaunchTemplateConfigListRequest(v []*types.FleetLaunchTemplateConfigRequest, value query.Value) error { +func awsEc2query_serializeDocumentFleetLaunchTemplateConfigListRequest(v []types.FleetLaunchTemplateConfigRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentFleetLaunchTemplateConfigRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentFleetLaunchTemplateConfigRequest(&v[i], av); err != nil { return err } } @@ -24499,18 +24400,15 @@ func awsEc2query_serializeDocumentFleetLaunchTemplateConfigRequest(v *types.Flee return nil } -func awsEc2query_serializeDocumentFleetLaunchTemplateOverridesListRequest(v []*types.FleetLaunchTemplateOverridesRequest, value query.Value) error { +func awsEc2query_serializeDocumentFleetLaunchTemplateOverridesListRequest(v []types.FleetLaunchTemplateOverridesRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentFleetLaunchTemplateOverridesRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentFleetLaunchTemplateOverridesRequest(&v[i], av); err != nil { return err } } @@ -24543,9 +24441,9 @@ func awsEc2query_serializeDocumentFleetLaunchTemplateOverridesRequest(v *types.F } } - if v.Priority != nil { + if v.Priority != 0 { objectKey := object.Key("Priority") - objectKey.Double(*v.Priority) + objectKey.Double(v.Priority) } if v.SubnetId != nil { @@ -24553,9 +24451,9 @@ func awsEc2query_serializeDocumentFleetLaunchTemplateOverridesRequest(v *types.F objectKey.String(*v.SubnetId) } - if v.WeightedCapacity != nil { + if v.WeightedCapacity != 0 { objectKey := object.Key("WeightedCapacity") - objectKey.Double(*v.WeightedCapacity) + objectKey.Double(v.WeightedCapacity) } return nil @@ -24605,50 +24503,41 @@ func awsEc2query_serializeDocumentFleetLaunchTemplateSpecificationRequest(v *typ return nil } -func awsEc2query_serializeDocumentFlowLogIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentFlowLogIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentFlowLogResourceIds(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentFlowLogResourceIds(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentFpgaImageIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentFpgaImageIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -24670,68 +24559,56 @@ func awsEc2query_serializeDocumentGroupIdentifier(v *types.GroupIdentifier, valu return nil } -func awsEc2query_serializeDocumentGroupIdentifierList(v []*types.GroupIdentifier, value query.Value) error { +func awsEc2query_serializeDocumentGroupIdentifierList(v []types.GroupIdentifier, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentGroupIdentifier(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentGroupIdentifier(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentGroupIds(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentGroupIds(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentGroupIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentGroupIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("GroupId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentGroupNameStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentGroupNameStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("GroupName") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -24740,26 +24617,23 @@ func awsEc2query_serializeDocumentHibernationOptionsRequest(v *types.Hibernation object := value.Object() _ = object - if v.Configured != nil { + if v.Configured { objectKey := object.Key("Configured") - objectKey.Boolean(*v.Configured) + objectKey.Boolean(v.Configured) } return nil } -func awsEc2query_serializeDocumentHostReservationIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentHostReservationIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -24785,31 +24659,28 @@ func awsEc2query_serializeDocumentIcmpTypeCode(v *types.IcmpTypeCode, value quer object := value.Object() _ = object - if v.Code != nil { + if v.Code != 0 { objectKey := object.Key("Code") - objectKey.Integer(*v.Code) + objectKey.Integer(v.Code) } - if v.Type != nil { + if v.Type != 0 { objectKey := object.Key("Type") - objectKey.Integer(*v.Type) + objectKey.Integer(v.Type) } return nil } -func awsEc2query_serializeDocumentIKEVersionsRequestList(v []*types.IKEVersionsRequestListValue, value query.Value) error { +func awsEc2query_serializeDocumentIKEVersionsRequestList(v []types.IKEVersionsRequestListValue, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentIKEVersionsRequestListValue(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentIKEVersionsRequestListValue(&v[i], av); err != nil { return err } } @@ -24867,36 +24738,30 @@ func awsEc2query_serializeDocumentImageDiskContainer(v *types.ImageDiskContainer return nil } -func awsEc2query_serializeDocumentImageDiskContainerList(v []*types.ImageDiskContainer, value query.Value) error { +func awsEc2query_serializeDocumentImageDiskContainerList(v []types.ImageDiskContainer, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentImageDiskContainer(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentImageDiskContainer(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentImageIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentImageIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ImageId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -24913,18 +24778,15 @@ func awsEc2query_serializeDocumentImportImageLicenseConfigurationRequest(v *type return nil } -func awsEc2query_serializeDocumentImportImageLicenseSpecificationListRequest(v []*types.ImportImageLicenseConfigurationRequest, value query.Value) error { +func awsEc2query_serializeDocumentImportImageLicenseSpecificationListRequest(v []types.ImportImageLicenseConfigurationRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentImportImageLicenseConfigurationRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentImportImageLicenseConfigurationRequest(&v[i], av); err != nil { return err } } @@ -24969,9 +24831,9 @@ func awsEc2query_serializeDocumentImportInstanceLaunchSpecification(v *types.Imp objectKey.String(string(v.InstanceType)) } - if v.Monitoring != nil { + if v.Monitoring { objectKey := object.Key("Monitoring") - objectKey.Boolean(*v.Monitoring) + objectKey.Boolean(v.Monitoring) } if v.Placement != nil { @@ -25001,34 +24863,28 @@ func awsEc2query_serializeDocumentImportInstanceLaunchSpecification(v *types.Imp return nil } -func awsEc2query_serializeDocumentImportSnapshotTaskIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentImportSnapshotTaskIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ImportTaskId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentImportTaskIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentImportTaskIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ImportTaskId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -25062,36 +24918,30 @@ func awsEc2query_serializeDocumentInstanceBlockDeviceMappingSpecification(v *typ return nil } -func awsEc2query_serializeDocumentInstanceBlockDeviceMappingSpecificationList(v []*types.InstanceBlockDeviceMappingSpecification, value query.Value) error { +func awsEc2query_serializeDocumentInstanceBlockDeviceMappingSpecificationList(v []types.InstanceBlockDeviceMappingSpecification, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentInstanceBlockDeviceMappingSpecification(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentInstanceBlockDeviceMappingSpecification(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentInstanceCreditSpecificationListRequest(v []*types.InstanceCreditSpecificationRequest, value query.Value) error { +func awsEc2query_serializeDocumentInstanceCreditSpecificationListRequest(v []types.InstanceCreditSpecificationRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentInstanceCreditSpecificationRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentInstanceCreditSpecificationRequest(&v[i], av); err != nil { return err } } @@ -25115,18 +24965,15 @@ func awsEc2query_serializeDocumentInstanceCreditSpecificationRequest(v *types.In return nil } -func awsEc2query_serializeDocumentInstanceIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentInstanceIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("InstanceId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -25143,36 +24990,30 @@ func awsEc2query_serializeDocumentInstanceIpv6Address(v *types.InstanceIpv6Addre return nil } -func awsEc2query_serializeDocumentInstanceIpv6AddressList(v []*types.InstanceIpv6Address, value query.Value) error { +func awsEc2query_serializeDocumentInstanceIpv6AddressList(v []types.InstanceIpv6Address, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentInstanceIpv6Address(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentInstanceIpv6Address(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentInstanceIpv6AddressListRequest(v []*types.InstanceIpv6AddressRequest, value query.Value) error { +func awsEc2query_serializeDocumentInstanceIpv6AddressListRequest(v []types.InstanceIpv6AddressRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("InstanceIpv6Address") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentInstanceIpv6AddressRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentInstanceIpv6AddressRequest(&v[i], av); err != nil { return err } } @@ -25219,9 +25060,9 @@ func awsEc2query_serializeDocumentInstanceMetadataOptionsRequest(v *types.Instan objectKey.String(string(v.HttpEndpoint)) } - if v.HttpPutResponseHopLimit != nil { + if v.HttpPutResponseHopLimit != 0 { objectKey := object.Key("HttpPutResponseHopLimit") - objectKey.Integer(*v.HttpPutResponseHopLimit) + objectKey.Integer(v.HttpPutResponseHopLimit) } if len(v.HttpTokens) > 0 { @@ -25236,19 +25077,19 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types object := value.Object() _ = object - if v.AssociateCarrierIpAddress != nil { + if v.AssociateCarrierIpAddress { objectKey := object.Key("AssociateCarrierIpAddress") - objectKey.Boolean(*v.AssociateCarrierIpAddress) + objectKey.Boolean(v.AssociateCarrierIpAddress) } - if v.AssociatePublicIpAddress != nil { + if v.AssociatePublicIpAddress { objectKey := object.Key("AssociatePublicIpAddress") - objectKey.Boolean(*v.AssociatePublicIpAddress) + objectKey.Boolean(v.AssociatePublicIpAddress) } - if v.DeleteOnTermination != nil { + if v.DeleteOnTermination { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(*v.DeleteOnTermination) + objectKey.Boolean(v.DeleteOnTermination) } if v.Description != nil { @@ -25256,9 +25097,9 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types objectKey.String(*v.Description) } - if v.DeviceIndex != nil { + if v.DeviceIndex != 0 { objectKey := object.Key("DeviceIndex") - objectKey.Integer(*v.DeviceIndex) + objectKey.Integer(v.DeviceIndex) } if v.Groups != nil { @@ -25273,9 +25114,9 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types objectKey.String(*v.InterfaceType) } - if v.Ipv6AddressCount != nil { + if v.Ipv6AddressCount != 0 { objectKey := object.Key("Ipv6AddressCount") - objectKey.Integer(*v.Ipv6AddressCount) + objectKey.Integer(v.Ipv6AddressCount) } if v.Ipv6Addresses != nil { @@ -25302,9 +25143,9 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types } } - if v.SecondaryPrivateIpAddressCount != nil { + if v.SecondaryPrivateIpAddressCount != 0 { objectKey := object.Key("SecondaryPrivateIpAddressCount") - objectKey.Integer(*v.SecondaryPrivateIpAddressCount) + objectKey.Integer(v.SecondaryPrivateIpAddressCount) } if v.SubnetId != nil { @@ -25315,18 +25156,15 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types return nil } -func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecificationList(v []*types.InstanceNetworkInterfaceSpecification, value query.Value) error { +func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecificationList(v []types.InstanceNetworkInterfaceSpecification, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(&v[i], av); err != nil { return err } } @@ -25337,9 +25175,9 @@ func awsEc2query_serializeDocumentInstanceSpecification(v *types.InstanceSpecifi object := value.Object() _ = object - if v.ExcludeBootVolume != nil { + if v.ExcludeBootVolume { objectKey := object.Key("ExcludeBootVolume") - objectKey.Boolean(*v.ExcludeBootVolume) + objectKey.Boolean(v.ExcludeBootVolume) } if v.InstanceId != nil { @@ -25350,18 +25188,15 @@ func awsEc2query_serializeDocumentInstanceSpecification(v *types.InstanceSpecifi return nil } -func awsEc2query_serializeDocumentInstanceTagKeySet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentInstanceTagKeySet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -25379,18 +25214,15 @@ func awsEc2query_serializeDocumentInstanceTypeList(v []types.InstanceType, value return nil } -func awsEc2query_serializeDocumentInternetGatewayIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentInternetGatewayIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -25399,9 +25231,9 @@ func awsEc2query_serializeDocumentIpPermission(v *types.IpPermission, value quer object := value.Object() _ = object - if v.FromPort != nil { + if v.FromPort != 0 { objectKey := object.Key("FromPort") - objectKey.Integer(*v.FromPort) + objectKey.Integer(v.FromPort) } if v.IpProtocol != nil { @@ -25430,9 +25262,9 @@ func awsEc2query_serializeDocumentIpPermission(v *types.IpPermission, value quer } } - if v.ToPort != nil { + if v.ToPort != 0 { objectKey := object.Key("ToPort") - objectKey.Integer(*v.ToPort) + objectKey.Integer(v.ToPort) } if v.UserIdGroupPairs != nil { @@ -25445,18 +25277,15 @@ func awsEc2query_serializeDocumentIpPermission(v *types.IpPermission, value quer return nil } -func awsEc2query_serializeDocumentIpPermissionList(v []*types.IpPermission, value query.Value) error { +func awsEc2query_serializeDocumentIpPermissionList(v []types.IpPermission, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentIpPermission(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentIpPermission(&v[i], av); err != nil { return err } } @@ -25480,52 +25309,43 @@ func awsEc2query_serializeDocumentIpRange(v *types.IpRange, value query.Value) e return nil } -func awsEc2query_serializeDocumentIpRangeList(v []*types.IpRange, value query.Value) error { +func awsEc2query_serializeDocumentIpRangeList(v []types.IpRange, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentIpRange(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentIpRange(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentIpv6AddressList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentIpv6AddressList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentIpv6PoolIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentIpv6PoolIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -25547,52 +25367,43 @@ func awsEc2query_serializeDocumentIpv6Range(v *types.Ipv6Range, value query.Valu return nil } -func awsEc2query_serializeDocumentIpv6RangeList(v []*types.Ipv6Range, value query.Value) error { +func awsEc2query_serializeDocumentIpv6RangeList(v []types.Ipv6Range, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentIpv6Range(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentIpv6Range(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentKeyNameStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentKeyNameStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("KeyName") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentKeyPairIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentKeyPairIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("KeyPairId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -25614,18 +25425,15 @@ func awsEc2query_serializeDocumentLaunchPermission(v *types.LaunchPermission, va return nil } -func awsEc2query_serializeDocumentLaunchPermissionList(v []*types.LaunchPermission, value query.Value) error { +func awsEc2query_serializeDocumentLaunchPermissionList(v []types.LaunchPermission, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentLaunchPermission(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentLaunchPermission(&v[i], av); err != nil { return err } } @@ -25653,18 +25461,15 @@ func awsEc2query_serializeDocumentLaunchPermissionModifications(v *types.LaunchP return nil } -func awsEc2query_serializeDocumentLaunchSpecsList(v []*types.SpotFleetLaunchSpecification, value query.Value) error { +func awsEc2query_serializeDocumentLaunchSpecsList(v []types.SpotFleetLaunchSpecification, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentSpotFleetLaunchSpecification(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentSpotFleetLaunchSpecification(&v[i], av); err != nil { return err } } @@ -25700,18 +25505,15 @@ func awsEc2query_serializeDocumentLaunchTemplateBlockDeviceMappingRequest(v *typ return nil } -func awsEc2query_serializeDocumentLaunchTemplateBlockDeviceMappingRequestList(v []*types.LaunchTemplateBlockDeviceMappingRequest, value query.Value) error { +func awsEc2query_serializeDocumentLaunchTemplateBlockDeviceMappingRequestList(v []types.LaunchTemplateBlockDeviceMappingRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("BlockDeviceMapping") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentLaunchTemplateBlockDeviceMappingRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentLaunchTemplateBlockDeviceMappingRequest(&v[i], av); err != nil { return err } } @@ -25758,18 +25560,15 @@ func awsEc2query_serializeDocumentLaunchTemplateConfig(v *types.LaunchTemplateCo return nil } -func awsEc2query_serializeDocumentLaunchTemplateConfigList(v []*types.LaunchTemplateConfig, value query.Value) error { +func awsEc2query_serializeDocumentLaunchTemplateConfigList(v []types.LaunchTemplateConfig, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentLaunchTemplateConfig(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentLaunchTemplateConfig(&v[i], av); err != nil { return err } } @@ -25780,14 +25579,14 @@ func awsEc2query_serializeDocumentLaunchTemplateCpuOptionsRequest(v *types.Launc object := value.Object() _ = object - if v.CoreCount != nil { + if v.CoreCount != 0 { objectKey := object.Key("CoreCount") - objectKey.Integer(*v.CoreCount) + objectKey.Integer(v.CoreCount) } - if v.ThreadsPerCore != nil { + if v.ThreadsPerCore != 0 { objectKey := object.Key("ThreadsPerCore") - objectKey.Integer(*v.ThreadsPerCore) + objectKey.Integer(v.ThreadsPerCore) } return nil @@ -25797,19 +25596,19 @@ func awsEc2query_serializeDocumentLaunchTemplateEbsBlockDeviceRequest(v *types.L object := value.Object() _ = object - if v.DeleteOnTermination != nil { + if v.DeleteOnTermination { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(*v.DeleteOnTermination) + objectKey.Boolean(v.DeleteOnTermination) } - if v.Encrypted != nil { + if v.Encrypted { objectKey := object.Key("Encrypted") - objectKey.Boolean(*v.Encrypted) + objectKey.Boolean(v.Encrypted) } - if v.Iops != nil { + if v.Iops != 0 { objectKey := object.Key("Iops") - objectKey.Integer(*v.Iops) + objectKey.Integer(v.Iops) } if v.KmsKeyId != nil { @@ -25822,9 +25621,9 @@ func awsEc2query_serializeDocumentLaunchTemplateEbsBlockDeviceRequest(v *types.L objectKey.String(*v.SnapshotId) } - if v.VolumeSize != nil { + if v.VolumeSize != 0 { objectKey := object.Key("VolumeSize") - objectKey.Integer(*v.VolumeSize) + objectKey.Integer(v.VolumeSize) } if len(v.VolumeType) > 0 { @@ -25839,9 +25638,9 @@ func awsEc2query_serializeDocumentLaunchTemplateElasticInferenceAccelerator(v *t object := value.Object() _ = object - if v.Count != nil { + if v.Count != 0 { objectKey := object.Key("Count") - objectKey.Integer(*v.Count) + objectKey.Integer(v.Count) } if v.Type != nil { @@ -25852,18 +25651,15 @@ func awsEc2query_serializeDocumentLaunchTemplateElasticInferenceAccelerator(v *t return nil } -func awsEc2query_serializeDocumentLaunchTemplateElasticInferenceAcceleratorList(v []*types.LaunchTemplateElasticInferenceAccelerator, value query.Value) error { +func awsEc2query_serializeDocumentLaunchTemplateElasticInferenceAcceleratorList(v []types.LaunchTemplateElasticInferenceAccelerator, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentLaunchTemplateElasticInferenceAccelerator(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentLaunchTemplateElasticInferenceAccelerator(&v[i], av); err != nil { return err } } @@ -25874,9 +25670,9 @@ func awsEc2query_serializeDocumentLaunchTemplateEnclaveOptionsRequest(v *types.L object := value.Object() _ = object - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } return nil @@ -25886,9 +25682,9 @@ func awsEc2query_serializeDocumentLaunchTemplateHibernationOptionsRequest(v *typ object := value.Object() _ = object - if v.Configured != nil { + if v.Configured { objectKey := object.Key("Configured") - objectKey.Boolean(*v.Configured) + objectKey.Boolean(v.Configured) } return nil @@ -25911,18 +25707,15 @@ func awsEc2query_serializeDocumentLaunchTemplateIamInstanceProfileSpecificationR return nil } -func awsEc2query_serializeDocumentLaunchTemplateIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentLaunchTemplateIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -25955,9 +25748,9 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceMetadataOptionsRequest(v objectKey.String(string(v.HttpEndpoint)) } - if v.HttpPutResponseHopLimit != nil { + if v.HttpPutResponseHopLimit != 0 { objectKey := object.Key("HttpPutResponseHopLimit") - objectKey.Integer(*v.HttpPutResponseHopLimit) + objectKey.Integer(v.HttpPutResponseHopLimit) } if len(v.HttpTokens) > 0 { @@ -25972,19 +25765,19 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific object := value.Object() _ = object - if v.AssociateCarrierIpAddress != nil { + if v.AssociateCarrierIpAddress { objectKey := object.Key("AssociateCarrierIpAddress") - objectKey.Boolean(*v.AssociateCarrierIpAddress) + objectKey.Boolean(v.AssociateCarrierIpAddress) } - if v.AssociatePublicIpAddress != nil { + if v.AssociatePublicIpAddress { objectKey := object.Key("AssociatePublicIpAddress") - objectKey.Boolean(*v.AssociatePublicIpAddress) + objectKey.Boolean(v.AssociatePublicIpAddress) } - if v.DeleteOnTermination != nil { + if v.DeleteOnTermination { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(*v.DeleteOnTermination) + objectKey.Boolean(v.DeleteOnTermination) } if v.Description != nil { @@ -25992,9 +25785,9 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific objectKey.String(*v.Description) } - if v.DeviceIndex != nil { + if v.DeviceIndex != 0 { objectKey := object.Key("DeviceIndex") - objectKey.Integer(*v.DeviceIndex) + objectKey.Integer(v.DeviceIndex) } if v.Groups != nil { @@ -26009,9 +25802,9 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific objectKey.String(*v.InterfaceType) } - if v.Ipv6AddressCount != nil { + if v.Ipv6AddressCount != 0 { objectKey := object.Key("Ipv6AddressCount") - objectKey.Integer(*v.Ipv6AddressCount) + objectKey.Integer(v.Ipv6AddressCount) } if v.Ipv6Addresses != nil { @@ -26038,9 +25831,9 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific } } - if v.SecondaryPrivateIpAddressCount != nil { + if v.SecondaryPrivateIpAddressCount != 0 { objectKey := object.Key("SecondaryPrivateIpAddressCount") - objectKey.Integer(*v.SecondaryPrivateIpAddressCount) + objectKey.Integer(v.SecondaryPrivateIpAddressCount) } if v.SubnetId != nil { @@ -26051,18 +25844,15 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific return nil } -func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecificationRequestList(v []*types.LaunchTemplateInstanceNetworkInterfaceSpecificationRequest, value query.Value) error { +func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecificationRequestList(v []types.LaunchTemplateInstanceNetworkInterfaceSpecificationRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("InstanceNetworkInterfaceSpecification") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecificationRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecificationRequest(&v[i], av); err != nil { return err } } @@ -26081,36 +25871,30 @@ func awsEc2query_serializeDocumentLaunchTemplateLicenseConfigurationRequest(v *t return nil } -func awsEc2query_serializeDocumentLaunchTemplateLicenseSpecificationListRequest(v []*types.LaunchTemplateLicenseConfigurationRequest, value query.Value) error { +func awsEc2query_serializeDocumentLaunchTemplateLicenseSpecificationListRequest(v []types.LaunchTemplateLicenseConfigurationRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentLaunchTemplateLicenseConfigurationRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentLaunchTemplateLicenseConfigurationRequest(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentLaunchTemplateNameStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentLaunchTemplateNameStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -26129,9 +25913,9 @@ func awsEc2query_serializeDocumentLaunchTemplateOverrides(v *types.LaunchTemplat objectKey.String(string(v.InstanceType)) } - if v.Priority != nil { + if v.Priority != 0 { objectKey := object.Key("Priority") - objectKey.Double(*v.Priority) + objectKey.Double(v.Priority) } if v.SpotPrice != nil { @@ -26144,26 +25928,23 @@ func awsEc2query_serializeDocumentLaunchTemplateOverrides(v *types.LaunchTemplat objectKey.String(*v.SubnetId) } - if v.WeightedCapacity != nil { + if v.WeightedCapacity != 0 { objectKey := object.Key("WeightedCapacity") - objectKey.Double(*v.WeightedCapacity) + objectKey.Double(v.WeightedCapacity) } return nil } -func awsEc2query_serializeDocumentLaunchTemplateOverridesList(v []*types.LaunchTemplateOverrides, value query.Value) error { +func awsEc2query_serializeDocumentLaunchTemplateOverridesList(v []types.LaunchTemplateOverrides, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentLaunchTemplateOverrides(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentLaunchTemplateOverrides(&v[i], av); err != nil { return err } } @@ -26199,9 +25980,9 @@ func awsEc2query_serializeDocumentLaunchTemplatePlacementRequest(v *types.Launch objectKey.String(*v.HostResourceGroupArn) } - if v.PartitionNumber != nil { + if v.PartitionNumber != 0 { objectKey := object.Key("PartitionNumber") - objectKey.Integer(*v.PartitionNumber) + objectKey.Integer(v.PartitionNumber) } if v.SpreadDomain != nil { @@ -26221,9 +26002,9 @@ func awsEc2query_serializeDocumentLaunchTemplatesMonitoringRequest(v *types.Laun object := value.Object() _ = object - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } return nil @@ -26255,9 +26036,9 @@ func awsEc2query_serializeDocumentLaunchTemplateSpotMarketOptionsRequest(v *type object := value.Object() _ = object - if v.BlockDurationMinutes != nil { + if v.BlockDurationMinutes != 0 { objectKey := object.Key("BlockDurationMinutes") - objectKey.Integer(*v.BlockDurationMinutes) + objectKey.Integer(v.BlockDurationMinutes) } if len(v.InstanceInterruptionBehavior) > 0 { @@ -26302,18 +26083,15 @@ func awsEc2query_serializeDocumentLaunchTemplateTagSpecificationRequest(v *types return nil } -func awsEc2query_serializeDocumentLaunchTemplateTagSpecificationRequestList(v []*types.LaunchTemplateTagSpecificationRequest, value query.Value) error { +func awsEc2query_serializeDocumentLaunchTemplateTagSpecificationRequestList(v []types.LaunchTemplateTagSpecificationRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("LaunchTemplateTagSpecificationRequest") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentLaunchTemplateTagSpecificationRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentLaunchTemplateTagSpecificationRequest(&v[i], av); err != nil { return err } } @@ -26332,18 +26110,15 @@ func awsEc2query_serializeDocumentLicenseConfigurationRequest(v *types.LicenseCo return nil } -func awsEc2query_serializeDocumentLicenseSpecificationListRequest(v []*types.LicenseConfigurationRequest, value query.Value) error { +func awsEc2query_serializeDocumentLicenseSpecificationListRequest(v []types.LicenseConfigurationRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentLicenseConfigurationRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentLicenseConfigurationRequest(&v[i], av); err != nil { return err } } @@ -26371,18 +26146,15 @@ func awsEc2query_serializeDocumentLoadBalancersConfig(v *types.LoadBalancersConf return nil } -func awsEc2query_serializeDocumentLoadPermissionListRequest(v []*types.LoadPermissionRequest, value query.Value) error { +func awsEc2query_serializeDocumentLoadPermissionListRequest(v []types.LoadPermissionRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentLoadPermissionRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentLoadPermissionRequest(&v[i], av); err != nil { return err } } @@ -26427,98 +26199,80 @@ func awsEc2query_serializeDocumentLoadPermissionRequest(v *types.LoadPermissionR return nil } -func awsEc2query_serializeDocumentLocalGatewayIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentLocalGatewayIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentLocalGatewayRouteTableIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentLocalGatewayRouteTableIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociationIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociationIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentLocalGatewayRouteTableVpcAssociationIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentLocalGatewayRouteTableVpcAssociationIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentLocalGatewayVirtualInterfaceGroupIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentLocalGatewayVirtualInterfaceGroupIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentLocalGatewayVirtualInterfaceIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentLocalGatewayVirtualInterfaceIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -26596,9 +26350,9 @@ func awsEc2query_serializeDocumentModifyVpnTunnelOptionsSpecification(v *types.M objectKey.String(*v.DPDTimeoutAction) } - if v.DPDTimeoutSeconds != nil { + if v.DPDTimeoutSeconds != 0 { objectKey := object.Key("DPDTimeoutSeconds") - objectKey.Integer(*v.DPDTimeoutSeconds) + objectKey.Integer(v.DPDTimeoutSeconds) } if v.IKEVersions != nil { @@ -26629,9 +26383,9 @@ func awsEc2query_serializeDocumentModifyVpnTunnelOptionsSpecification(v *types.M } } - if v.Phase1LifetimeSeconds != nil { + if v.Phase1LifetimeSeconds != 0 { objectKey := object.Key("Phase1LifetimeSeconds") - objectKey.Integer(*v.Phase1LifetimeSeconds) + objectKey.Integer(v.Phase1LifetimeSeconds) } if v.Phase2DHGroupNumbers != nil { @@ -26655,9 +26409,9 @@ func awsEc2query_serializeDocumentModifyVpnTunnelOptionsSpecification(v *types.M } } - if v.Phase2LifetimeSeconds != nil { + if v.Phase2LifetimeSeconds != 0 { objectKey := object.Key("Phase2LifetimeSeconds") - objectKey.Integer(*v.Phase2LifetimeSeconds) + objectKey.Integer(v.Phase2LifetimeSeconds) } if v.PreSharedKey != nil { @@ -26665,19 +26419,19 @@ func awsEc2query_serializeDocumentModifyVpnTunnelOptionsSpecification(v *types.M objectKey.String(*v.PreSharedKey) } - if v.RekeyFuzzPercentage != nil { + if v.RekeyFuzzPercentage != 0 { objectKey := object.Key("RekeyFuzzPercentage") - objectKey.Integer(*v.RekeyFuzzPercentage) + objectKey.Integer(v.RekeyFuzzPercentage) } - if v.RekeyMarginTimeSeconds != nil { + if v.RekeyMarginTimeSeconds != 0 { objectKey := object.Key("RekeyMarginTimeSeconds") - objectKey.Integer(*v.RekeyMarginTimeSeconds) + objectKey.Integer(v.RekeyMarginTimeSeconds) } - if v.ReplayWindowSize != nil { + if v.ReplayWindowSize != 0 { objectKey := object.Key("ReplayWindowSize") - objectKey.Integer(*v.ReplayWindowSize) + objectKey.Integer(v.ReplayWindowSize) } if v.StartupAction != nil { @@ -26698,34 +26452,28 @@ func awsEc2query_serializeDocumentModifyVpnTunnelOptionsSpecification(v *types.M return nil } -func awsEc2query_serializeDocumentNatGatewayIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentNatGatewayIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentNetworkAclIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentNetworkAclIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -26739,42 +26487,36 @@ func awsEc2query_serializeDocumentNetworkInterfaceAttachmentChanges(v *types.Net objectKey.String(*v.AttachmentId) } - if v.DeleteOnTermination != nil { + if v.DeleteOnTermination { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(*v.DeleteOnTermination) + objectKey.Boolean(v.DeleteOnTermination) } return nil } -func awsEc2query_serializeDocumentNetworkInterfaceIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentNetworkInterfaceIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentNetworkInterfacePermissionIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentNetworkInterfacePermissionIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -26798,36 +26540,30 @@ func awsEc2query_serializeDocumentNewDhcpConfiguration(v *types.NewDhcpConfigura return nil } -func awsEc2query_serializeDocumentNewDhcpConfigurationList(v []*types.NewDhcpConfiguration, value query.Value) error { +func awsEc2query_serializeDocumentNewDhcpConfigurationList(v []types.NewDhcpConfiguration, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentNewDhcpConfiguration(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentNewDhcpConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentOccurrenceDayRequestSet(v []*int32, value query.Value) error { +func awsEc2query_serializeDocumentOccurrenceDayRequestSet(v []int32, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("OccurenceDay") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.Integer(*v[i]) + av.Integer(v[i]) } return nil } @@ -26853,36 +26589,33 @@ func awsEc2query_serializeDocumentOnDemandOptionsRequest(v *types.OnDemandOption objectKey.String(*v.MaxTotalPrice) } - if v.MinTargetCapacity != nil { + if v.MinTargetCapacity != 0 { objectKey := object.Key("MinTargetCapacity") - objectKey.Integer(*v.MinTargetCapacity) + objectKey.Integer(v.MinTargetCapacity) } - if v.SingleAvailabilityZone != nil { + if v.SingleAvailabilityZone { objectKey := object.Key("SingleAvailabilityZone") - objectKey.Boolean(*v.SingleAvailabilityZone) + objectKey.Boolean(v.SingleAvailabilityZone) } - if v.SingleInstanceType != nil { + if v.SingleInstanceType { objectKey := object.Key("SingleInstanceType") - objectKey.Boolean(*v.SingleInstanceType) + objectKey.Boolean(v.SingleInstanceType) } return nil } -func awsEc2query_serializeDocumentOwnerStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentOwnerStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Owner") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -26891,36 +26624,33 @@ func awsEc2query_serializeDocumentPeeringConnectionOptionsRequest(v *types.Peeri object := value.Object() _ = object - if v.AllowDnsResolutionFromRemoteVpc != nil { + if v.AllowDnsResolutionFromRemoteVpc { objectKey := object.Key("AllowDnsResolutionFromRemoteVpc") - objectKey.Boolean(*v.AllowDnsResolutionFromRemoteVpc) + objectKey.Boolean(v.AllowDnsResolutionFromRemoteVpc) } - if v.AllowEgressFromLocalClassicLinkToRemoteVpc != nil { + if v.AllowEgressFromLocalClassicLinkToRemoteVpc { objectKey := object.Key("AllowEgressFromLocalClassicLinkToRemoteVpc") - objectKey.Boolean(*v.AllowEgressFromLocalClassicLinkToRemoteVpc) + objectKey.Boolean(v.AllowEgressFromLocalClassicLinkToRemoteVpc) } - if v.AllowEgressFromLocalVpcToRemoteClassicLink != nil { + if v.AllowEgressFromLocalVpcToRemoteClassicLink { objectKey := object.Key("AllowEgressFromLocalVpcToRemoteClassicLink") - objectKey.Boolean(*v.AllowEgressFromLocalVpcToRemoteClassicLink) + objectKey.Boolean(v.AllowEgressFromLocalVpcToRemoteClassicLink) } return nil } -func awsEc2query_serializeDocumentPhase1DHGroupNumbersRequestList(v []*types.Phase1DHGroupNumbersRequestListValue, value query.Value) error { +func awsEc2query_serializeDocumentPhase1DHGroupNumbersRequestList(v []types.Phase1DHGroupNumbersRequestListValue, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentPhase1DHGroupNumbersRequestListValue(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentPhase1DHGroupNumbersRequestListValue(&v[i], av); err != nil { return err } } @@ -26931,26 +26661,23 @@ func awsEc2query_serializeDocumentPhase1DHGroupNumbersRequestListValue(v *types. object := value.Object() _ = object - if v.Value != nil { + if v.Value != 0 { objectKey := object.Key("Value") - objectKey.Integer(*v.Value) + objectKey.Integer(v.Value) } return nil } -func awsEc2query_serializeDocumentPhase1EncryptionAlgorithmsRequestList(v []*types.Phase1EncryptionAlgorithmsRequestListValue, value query.Value) error { +func awsEc2query_serializeDocumentPhase1EncryptionAlgorithmsRequestList(v []types.Phase1EncryptionAlgorithmsRequestListValue, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentPhase1EncryptionAlgorithmsRequestListValue(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentPhase1EncryptionAlgorithmsRequestListValue(&v[i], av); err != nil { return err } } @@ -26969,18 +26696,15 @@ func awsEc2query_serializeDocumentPhase1EncryptionAlgorithmsRequestListValue(v * return nil } -func awsEc2query_serializeDocumentPhase1IntegrityAlgorithmsRequestList(v []*types.Phase1IntegrityAlgorithmsRequestListValue, value query.Value) error { +func awsEc2query_serializeDocumentPhase1IntegrityAlgorithmsRequestList(v []types.Phase1IntegrityAlgorithmsRequestListValue, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentPhase1IntegrityAlgorithmsRequestListValue(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentPhase1IntegrityAlgorithmsRequestListValue(&v[i], av); err != nil { return err } } @@ -26999,18 +26723,15 @@ func awsEc2query_serializeDocumentPhase1IntegrityAlgorithmsRequestListValue(v *t return nil } -func awsEc2query_serializeDocumentPhase2DHGroupNumbersRequestList(v []*types.Phase2DHGroupNumbersRequestListValue, value query.Value) error { +func awsEc2query_serializeDocumentPhase2DHGroupNumbersRequestList(v []types.Phase2DHGroupNumbersRequestListValue, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentPhase2DHGroupNumbersRequestListValue(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentPhase2DHGroupNumbersRequestListValue(&v[i], av); err != nil { return err } } @@ -27021,26 +26742,23 @@ func awsEc2query_serializeDocumentPhase2DHGroupNumbersRequestListValue(v *types. object := value.Object() _ = object - if v.Value != nil { + if v.Value != 0 { objectKey := object.Key("Value") - objectKey.Integer(*v.Value) + objectKey.Integer(v.Value) } return nil } -func awsEc2query_serializeDocumentPhase2EncryptionAlgorithmsRequestList(v []*types.Phase2EncryptionAlgorithmsRequestListValue, value query.Value) error { +func awsEc2query_serializeDocumentPhase2EncryptionAlgorithmsRequestList(v []types.Phase2EncryptionAlgorithmsRequestListValue, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentPhase2EncryptionAlgorithmsRequestListValue(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentPhase2EncryptionAlgorithmsRequestListValue(&v[i], av); err != nil { return err } } @@ -27059,18 +26777,15 @@ func awsEc2query_serializeDocumentPhase2EncryptionAlgorithmsRequestListValue(v * return nil } -func awsEc2query_serializeDocumentPhase2IntegrityAlgorithmsRequestList(v []*types.Phase2IntegrityAlgorithmsRequestListValue, value query.Value) error { +func awsEc2query_serializeDocumentPhase2IntegrityAlgorithmsRequestList(v []types.Phase2IntegrityAlgorithmsRequestListValue, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentPhase2IntegrityAlgorithmsRequestListValue(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentPhase2IntegrityAlgorithmsRequestListValue(&v[i], av); err != nil { return err } } @@ -27118,9 +26833,9 @@ func awsEc2query_serializeDocumentPlacement(v *types.Placement, value query.Valu objectKey.String(*v.HostResourceGroupArn) } - if v.PartitionNumber != nil { + if v.PartitionNumber != 0 { objectKey := object.Key("PartitionNumber") - objectKey.Integer(*v.PartitionNumber) + objectKey.Integer(v.PartitionNumber) } if v.SpreadDomain != nil { @@ -27136,34 +26851,28 @@ func awsEc2query_serializeDocumentPlacement(v *types.Placement, value query.Valu return nil } -func awsEc2query_serializeDocumentPlacementGroupIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentPlacementGroupIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("GroupId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentPlacementGroupStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentPlacementGroupStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -27172,14 +26881,14 @@ func awsEc2query_serializeDocumentPortRange(v *types.PortRange, value query.Valu object := value.Object() _ = object - if v.From != nil { + if v.From != 0 { objectKey := object.Key("From") - objectKey.Integer(*v.From) + objectKey.Integer(v.From) } - if v.To != nil { + if v.To != 0 { objectKey := object.Key("To") - objectKey.Integer(*v.To) + objectKey.Integer(v.To) } return nil @@ -27202,36 +26911,30 @@ func awsEc2query_serializeDocumentPrefixListId(v *types.PrefixListId, value quer return nil } -func awsEc2query_serializeDocumentPrefixListIdList(v []*types.PrefixListId, value query.Value) error { +func awsEc2query_serializeDocumentPrefixListIdList(v []types.PrefixListId, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentPrefixListId(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentPrefixListId(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentPrefixListResourceIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentPrefixListResourceIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -27245,49 +26948,43 @@ func awsEc2query_serializeDocumentPriceScheduleSpecification(v *types.PriceSched objectKey.String(string(v.CurrencyCode)) } - if v.Price != nil { + if v.Price != 0 { objectKey := object.Key("Price") - objectKey.Double(*v.Price) + objectKey.Double(v.Price) } - if v.Term != nil { + if v.Term != 0 { objectKey := object.Key("Term") - objectKey.Long(*v.Term) + objectKey.Long(v.Term) } return nil } -func awsEc2query_serializeDocumentPriceScheduleSpecificationList(v []*types.PriceScheduleSpecification, value query.Value) error { +func awsEc2query_serializeDocumentPriceScheduleSpecificationList(v []types.PriceScheduleSpecification, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentPriceScheduleSpecification(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentPriceScheduleSpecification(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentPrivateIpAddressConfigSet(v []*types.ScheduledInstancesPrivateIpAddressConfig, value query.Value) error { +func awsEc2query_serializeDocumentPrivateIpAddressConfigSet(v []types.ScheduledInstancesPrivateIpAddressConfig, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("PrivateIpAddressConfigSet") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentScheduledInstancesPrivateIpAddressConfig(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentScheduledInstancesPrivateIpAddressConfig(&v[i], av); err != nil { return err } } @@ -27298,9 +26995,9 @@ func awsEc2query_serializeDocumentPrivateIpAddressSpecification(v *types.Private object := value.Object() _ = object - if v.Primary != nil { + if v.Primary { objectKey := object.Key("Primary") - objectKey.Boolean(*v.Primary) + objectKey.Boolean(v.Primary) } if v.PrivateIpAddress != nil { @@ -27311,100 +27008,82 @@ func awsEc2query_serializeDocumentPrivateIpAddressSpecification(v *types.Private return nil } -func awsEc2query_serializeDocumentPrivateIpAddressSpecificationList(v []*types.PrivateIpAddressSpecification, value query.Value) error { +func awsEc2query_serializeDocumentPrivateIpAddressSpecificationList(v []types.PrivateIpAddressSpecification, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentPrivateIpAddressSpecification(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentPrivateIpAddressSpecification(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentPrivateIpAddressStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentPrivateIpAddressStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("PrivateIpAddress") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentProductCodeStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentProductCodeStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ProductCode") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentProductDescriptionList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentProductDescriptionList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentPublicIpStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentPublicIpStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("PublicIp") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentPublicIpv4PoolIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentPublicIpv4PoolIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -27413,9 +27092,9 @@ func awsEc2query_serializeDocumentPurchaseRequest(v *types.PurchaseRequest, valu object := value.Object() _ = object - if v.InstanceCount != nil { + if v.InstanceCount != 0 { objectKey := object.Key("InstanceCount") - objectKey.Integer(*v.InstanceCount) + objectKey.Integer(v.InstanceCount) } if v.PurchaseToken != nil { @@ -27426,18 +27105,15 @@ func awsEc2query_serializeDocumentPurchaseRequest(v *types.PurchaseRequest, valu return nil } -func awsEc2query_serializeDocumentPurchaseRequestSet(v []*types.PurchaseRequest, value query.Value) error { +func awsEc2query_serializeDocumentPurchaseRequestSet(v []types.PurchaseRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("PurchaseRequest") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentPurchaseRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentPurchaseRequest(&v[i], av); err != nil { return err } } @@ -27457,18 +27133,15 @@ func awsEc2query_serializeDocumentReasonCodesList(v []types.ReportInstanceReason return nil } -func awsEc2query_serializeDocumentRegionNameStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentRegionNameStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("RegionName") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -27477,9 +27150,9 @@ func awsEc2query_serializeDocumentRegisterInstanceTagAttributeRequest(v *types.R object := value.Object() _ = object - if v.IncludeAllTagsOfInstance != nil { + if v.IncludeAllTagsOfInstance { objectKey := object.Key("IncludeAllTagsOfInstance") - objectKey.Boolean(*v.IncludeAllTagsOfInstance) + objectKey.Boolean(v.IncludeAllTagsOfInstance) } if v.InstanceTagKeys != nil { @@ -27492,18 +27165,15 @@ func awsEc2query_serializeDocumentRegisterInstanceTagAttributeRequest(v *types.R return nil } -func awsEc2query_serializeDocumentRemovePrefixListEntries(v []*types.RemovePrefixListEntry, value query.Value) error { +func awsEc2query_serializeDocumentRemovePrefixListEntries(v []types.RemovePrefixListEntry, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentRemovePrefixListEntry(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentRemovePrefixListEntry(&v[i], av); err != nil { return err } } @@ -27522,34 +27192,28 @@ func awsEc2query_serializeDocumentRemovePrefixListEntry(v *types.RemovePrefixLis return nil } -func awsEc2query_serializeDocumentRequestHostIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentRequestHostIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentRequestHostIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentRequestHostIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -27599,14 +27263,14 @@ func awsEc2query_serializeDocumentRequestLaunchTemplateData(v *types.RequestLaun } } - if v.DisableApiTermination != nil { + if v.DisableApiTermination { objectKey := object.Key("DisableApiTermination") - objectKey.Boolean(*v.DisableApiTermination) + objectKey.Boolean(v.DisableApiTermination) } - if v.EbsOptimized != nil { + if v.EbsOptimized { objectKey := object.Key("EbsOptimized") - objectKey.Boolean(*v.EbsOptimized) + objectKey.Boolean(v.EbsOptimized) } if v.ElasticGpuSpecifications != nil { @@ -27761,9 +27425,9 @@ func awsEc2query_serializeDocumentRequestSpotLaunchSpecification(v *types.Reques } } - if v.EbsOptimized != nil { + if v.EbsOptimized { objectKey := object.Key("EbsOptimized") - objectKey.Boolean(*v.EbsOptimized) + objectKey.Boolean(v.EbsOptimized) } if v.IamInstanceProfile != nil { @@ -27846,50 +27510,41 @@ func awsEc2query_serializeDocumentRequestSpotLaunchSpecification(v *types.Reques return nil } -func awsEc2query_serializeDocumentRequestSpotLaunchSpecificationSecurityGroupIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentRequestSpotLaunchSpecificationSecurityGroupIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentRequestSpotLaunchSpecificationSecurityGroupList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentRequestSpotLaunchSpecificationSecurityGroupList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentReservedInstanceIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentReservedInstanceIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ReservedInstanceId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -27898,9 +27553,9 @@ func awsEc2query_serializeDocumentReservedInstanceLimitPrice(v *types.ReservedIn object := value.Object() _ = object - if v.Amount != nil { + if v.Amount != 0 { objectKey := object.Key("Amount") - objectKey.Double(*v.Amount) + objectKey.Double(v.Amount) } if len(v.CurrencyCode) > 0 { @@ -27920,9 +27575,9 @@ func awsEc2query_serializeDocumentReservedInstancesConfiguration(v *types.Reserv objectKey.String(*v.AvailabilityZone) } - if v.InstanceCount != nil { + if v.InstanceCount != 0 { objectKey := object.Key("InstanceCount") - objectKey.Integer(*v.InstanceCount) + objectKey.Integer(v.InstanceCount) } if len(v.InstanceType) > 0 { @@ -27943,132 +27598,108 @@ func awsEc2query_serializeDocumentReservedInstancesConfiguration(v *types.Reserv return nil } -func awsEc2query_serializeDocumentReservedInstancesConfigurationList(v []*types.ReservedInstancesConfiguration, value query.Value) error { +func awsEc2query_serializeDocumentReservedInstancesConfigurationList(v []types.ReservedInstancesConfiguration, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentReservedInstancesConfiguration(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentReservedInstancesConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentReservedInstancesIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentReservedInstancesIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ReservedInstancesId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentReservedInstancesModificationIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentReservedInstancesModificationIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ReservedInstancesModificationId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentReservedInstancesOfferingIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentReservedInstancesOfferingIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentResourceIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentResourceIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentResourceList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentResourceList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentRestorableByStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentRestorableByStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentRouteTableIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentRouteTableIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -28077,9 +27708,9 @@ func awsEc2query_serializeDocumentRunInstancesMonitoringEnabled(v *types.RunInst object := value.Object() _ = object - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } return nil @@ -28117,18 +27748,15 @@ func awsEc2query_serializeDocumentS3Storage(v *types.S3Storage, value query.Valu return nil } -func awsEc2query_serializeDocumentScheduledInstanceIdRequestSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentScheduledInstanceIdRequestSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ScheduledInstanceId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -28142,9 +27770,9 @@ func awsEc2query_serializeDocumentScheduledInstanceRecurrenceRequest(v *types.Sc objectKey.String(*v.Frequency) } - if v.Interval != nil { + if v.Interval != 0 { objectKey := object.Key("Interval") - objectKey.Integer(*v.Interval) + objectKey.Integer(v.Interval) } if v.OccurrenceDays != nil { @@ -28154,9 +27782,9 @@ func awsEc2query_serializeDocumentScheduledInstanceRecurrenceRequest(v *types.Sc } } - if v.OccurrenceRelativeToEnd != nil { + if v.OccurrenceRelativeToEnd { objectKey := object.Key("OccurrenceRelativeToEnd") - objectKey.Boolean(*v.OccurrenceRelativeToEnd) + objectKey.Boolean(v.OccurrenceRelativeToEnd) } if v.OccurrenceUnit != nil { @@ -28196,18 +27824,15 @@ func awsEc2query_serializeDocumentScheduledInstancesBlockDeviceMapping(v *types. return nil } -func awsEc2query_serializeDocumentScheduledInstancesBlockDeviceMappingSet(v []*types.ScheduledInstancesBlockDeviceMapping, value query.Value) error { +func awsEc2query_serializeDocumentScheduledInstancesBlockDeviceMappingSet(v []types.ScheduledInstancesBlockDeviceMapping, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("BlockDeviceMapping") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentScheduledInstancesBlockDeviceMapping(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentScheduledInstancesBlockDeviceMapping(&v[i], av); err != nil { return err } } @@ -28218,19 +27843,19 @@ func awsEc2query_serializeDocumentScheduledInstancesEbs(v *types.ScheduledInstan object := value.Object() _ = object - if v.DeleteOnTermination != nil { + if v.DeleteOnTermination { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(*v.DeleteOnTermination) + objectKey.Boolean(v.DeleteOnTermination) } - if v.Encrypted != nil { + if v.Encrypted { objectKey := object.Key("Encrypted") - objectKey.Boolean(*v.Encrypted) + objectKey.Boolean(v.Encrypted) } - if v.Iops != nil { + if v.Iops != 0 { objectKey := object.Key("Iops") - objectKey.Integer(*v.Iops) + objectKey.Integer(v.Iops) } if v.SnapshotId != nil { @@ -28238,9 +27863,9 @@ func awsEc2query_serializeDocumentScheduledInstancesEbs(v *types.ScheduledInstan objectKey.String(*v.SnapshotId) } - if v.VolumeSize != nil { + if v.VolumeSize != 0 { objectKey := object.Key("VolumeSize") - objectKey.Integer(*v.VolumeSize) + objectKey.Integer(v.VolumeSize) } if v.VolumeType != nil { @@ -28280,18 +27905,15 @@ func awsEc2query_serializeDocumentScheduledInstancesIpv6Address(v *types.Schedul return nil } -func awsEc2query_serializeDocumentScheduledInstancesIpv6AddressList(v []*types.ScheduledInstancesIpv6Address, value query.Value) error { +func awsEc2query_serializeDocumentScheduledInstancesIpv6AddressList(v []types.ScheduledInstancesIpv6Address, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Ipv6Address") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentScheduledInstancesIpv6Address(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentScheduledInstancesIpv6Address(&v[i], av); err != nil { return err } } @@ -28309,9 +27931,9 @@ func awsEc2query_serializeDocumentScheduledInstancesLaunchSpecification(v *types } } - if v.EbsOptimized != nil { + if v.EbsOptimized { objectKey := object.Key("EbsOptimized") - objectKey.Boolean(*v.EbsOptimized) + objectKey.Boolean(v.EbsOptimized) } if v.IamInstanceProfile != nil { @@ -28391,9 +28013,9 @@ func awsEc2query_serializeDocumentScheduledInstancesMonitoring(v *types.Schedule object := value.Object() _ = object - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } return nil @@ -28403,14 +28025,14 @@ func awsEc2query_serializeDocumentScheduledInstancesNetworkInterface(v *types.Sc object := value.Object() _ = object - if v.AssociatePublicIpAddress != nil { + if v.AssociatePublicIpAddress { objectKey := object.Key("AssociatePublicIpAddress") - objectKey.Boolean(*v.AssociatePublicIpAddress) + objectKey.Boolean(v.AssociatePublicIpAddress) } - if v.DeleteOnTermination != nil { + if v.DeleteOnTermination { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(*v.DeleteOnTermination) + objectKey.Boolean(v.DeleteOnTermination) } if v.Description != nil { @@ -28418,9 +28040,9 @@ func awsEc2query_serializeDocumentScheduledInstancesNetworkInterface(v *types.Sc objectKey.String(*v.Description) } - if v.DeviceIndex != nil { + if v.DeviceIndex != 0 { objectKey := object.Key("DeviceIndex") - objectKey.Integer(*v.DeviceIndex) + objectKey.Integer(v.DeviceIndex) } if v.Groups != nil { @@ -28430,9 +28052,9 @@ func awsEc2query_serializeDocumentScheduledInstancesNetworkInterface(v *types.Sc } } - if v.Ipv6AddressCount != nil { + if v.Ipv6AddressCount != 0 { objectKey := object.Key("Ipv6AddressCount") - objectKey.Integer(*v.Ipv6AddressCount) + objectKey.Integer(v.Ipv6AddressCount) } if v.Ipv6Addresses != nil { @@ -28459,9 +28081,9 @@ func awsEc2query_serializeDocumentScheduledInstancesNetworkInterface(v *types.Sc } } - if v.SecondaryPrivateIpAddressCount != nil { + if v.SecondaryPrivateIpAddressCount != 0 { objectKey := object.Key("SecondaryPrivateIpAddressCount") - objectKey.Integer(*v.SecondaryPrivateIpAddressCount) + objectKey.Integer(v.SecondaryPrivateIpAddressCount) } if v.SubnetId != nil { @@ -28472,18 +28094,15 @@ func awsEc2query_serializeDocumentScheduledInstancesNetworkInterface(v *types.Sc return nil } -func awsEc2query_serializeDocumentScheduledInstancesNetworkInterfaceSet(v []*types.ScheduledInstancesNetworkInterface, value query.Value) error { +func awsEc2query_serializeDocumentScheduledInstancesNetworkInterfaceSet(v []types.ScheduledInstancesNetworkInterface, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("NetworkInterface") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentScheduledInstancesNetworkInterface(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentScheduledInstancesNetworkInterface(&v[i], av); err != nil { return err } } @@ -28511,9 +28130,9 @@ func awsEc2query_serializeDocumentScheduledInstancesPrivateIpAddressConfig(v *ty object := value.Object() _ = object - if v.Primary != nil { + if v.Primary { objectKey := object.Key("Primary") - objectKey.Boolean(*v.Primary) + objectKey.Boolean(v.Primary) } if v.PrivateIpAddress != nil { @@ -28524,50 +28143,41 @@ func awsEc2query_serializeDocumentScheduledInstancesPrivateIpAddressConfig(v *ty return nil } -func awsEc2query_serializeDocumentScheduledInstancesSecurityGroupIdSet(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentScheduledInstancesSecurityGroupIdSet(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SecurityGroupId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentSecurityGroupIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentSecurityGroupIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SecurityGroupId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentSecurityGroupStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentSecurityGroupStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SecurityGroup") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -28635,18 +28245,15 @@ func awsEc2query_serializeDocumentSnapshotDiskContainer(v *types.SnapshotDiskCon return nil } -func awsEc2query_serializeDocumentSnapshotIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentSnapshotIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SnapshotId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -28667,9 +28274,9 @@ func awsEc2query_serializeDocumentSpotFleetLaunchSpecification(v *types.SpotFlee } } - if v.EbsOptimized != nil { + if v.EbsOptimized { objectKey := object.Key("EbsOptimized") - objectKey.Boolean(*v.EbsOptimized) + objectKey.Boolean(v.EbsOptimized) } if v.IamInstanceProfile != nil { @@ -28754,9 +28361,9 @@ func awsEc2query_serializeDocumentSpotFleetLaunchSpecification(v *types.SpotFlee objectKey.String(*v.UserData) } - if v.WeightedCapacity != nil { + if v.WeightedCapacity != 0 { objectKey := object.Key("WeightedCapacity") - objectKey.Double(*v.WeightedCapacity) + objectKey.Double(v.WeightedCapacity) } return nil @@ -28766,9 +28373,9 @@ func awsEc2query_serializeDocumentSpotFleetMonitoring(v *types.SpotFleetMonitori object := value.Object() _ = object - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } return nil @@ -28793,9 +28400,9 @@ func awsEc2query_serializeDocumentSpotFleetRequestConfigData(v *types.SpotFleetR objectKey.String(string(v.ExcessCapacityTerminationPolicy)) } - if v.FulfilledCapacity != nil { + if v.FulfilledCapacity != 0 { objectKey := object.Key("FulfilledCapacity") - objectKey.Double(*v.FulfilledCapacity) + objectKey.Double(v.FulfilledCapacity) } if v.IamFleetRole != nil { @@ -28808,9 +28415,9 @@ func awsEc2query_serializeDocumentSpotFleetRequestConfigData(v *types.SpotFleetR objectKey.String(string(v.InstanceInterruptionBehavior)) } - if v.InstancePoolsToUseCount != nil { + if v.InstancePoolsToUseCount != 0 { objectKey := object.Key("InstancePoolsToUseCount") - objectKey.Integer(*v.InstancePoolsToUseCount) + objectKey.Integer(v.InstancePoolsToUseCount) } if v.LaunchSpecifications != nil { @@ -28839,9 +28446,9 @@ func awsEc2query_serializeDocumentSpotFleetRequestConfigData(v *types.SpotFleetR objectKey.String(string(v.OnDemandAllocationStrategy)) } - if v.OnDemandFulfilledCapacity != nil { + if v.OnDemandFulfilledCapacity != 0 { objectKey := object.Key("OnDemandFulfilledCapacity") - objectKey.Double(*v.OnDemandFulfilledCapacity) + objectKey.Double(v.OnDemandFulfilledCapacity) } if v.OnDemandMaxTotalPrice != nil { @@ -28849,14 +28456,14 @@ func awsEc2query_serializeDocumentSpotFleetRequestConfigData(v *types.SpotFleetR objectKey.String(*v.OnDemandMaxTotalPrice) } - if v.OnDemandTargetCapacity != nil { + if v.OnDemandTargetCapacity != 0 { objectKey := object.Key("OnDemandTargetCapacity") - objectKey.Integer(*v.OnDemandTargetCapacity) + objectKey.Integer(v.OnDemandTargetCapacity) } - if v.ReplaceUnhealthyInstances != nil { + if v.ReplaceUnhealthyInstances { objectKey := object.Key("ReplaceUnhealthyInstances") - objectKey.Boolean(*v.ReplaceUnhealthyInstances) + objectKey.Boolean(v.ReplaceUnhealthyInstances) } if v.SpotMaxTotalPrice != nil { @@ -28876,14 +28483,14 @@ func awsEc2query_serializeDocumentSpotFleetRequestConfigData(v *types.SpotFleetR } } - if v.TargetCapacity != nil { + if v.TargetCapacity != 0 { objectKey := object.Key("TargetCapacity") - objectKey.Integer(*v.TargetCapacity) + objectKey.Integer(v.TargetCapacity) } - if v.TerminateInstancesWithExpiration != nil { + if v.TerminateInstancesWithExpiration { objectKey := object.Key("TerminateInstancesWithExpiration") - objectKey.Boolean(*v.TerminateInstancesWithExpiration) + objectKey.Boolean(v.TerminateInstancesWithExpiration) } if len(v.Type) > 0 { @@ -28904,18 +28511,15 @@ func awsEc2query_serializeDocumentSpotFleetRequestConfigData(v *types.SpotFleetR return nil } -func awsEc2query_serializeDocumentSpotFleetRequestIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentSpotFleetRequestIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -28939,36 +28543,30 @@ func awsEc2query_serializeDocumentSpotFleetTagSpecification(v *types.SpotFleetTa return nil } -func awsEc2query_serializeDocumentSpotFleetTagSpecificationList(v []*types.SpotFleetTagSpecification, value query.Value) error { +func awsEc2query_serializeDocumentSpotFleetTagSpecificationList(v []types.SpotFleetTagSpecification, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentSpotFleetTagSpecification(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentSpotFleetTagSpecification(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentSpotInstanceRequestIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentSpotInstanceRequestIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SpotInstanceRequestId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -28977,9 +28575,9 @@ func awsEc2query_serializeDocumentSpotMarketOptions(v *types.SpotMarketOptions, object := value.Object() _ = object - if v.BlockDurationMinutes != nil { + if v.BlockDurationMinutes != 0 { objectKey := object.Key("BlockDurationMinutes") - objectKey.Integer(*v.BlockDurationMinutes) + objectKey.Integer(v.BlockDurationMinutes) } if len(v.InstanceInterruptionBehavior) > 0 { @@ -29019,9 +28617,9 @@ func awsEc2query_serializeDocumentSpotOptionsRequest(v *types.SpotOptionsRequest objectKey.String(string(v.InstanceInterruptionBehavior)) } - if v.InstancePoolsToUseCount != nil { + if v.InstancePoolsToUseCount != 0 { objectKey := object.Key("InstancePoolsToUseCount") - objectKey.Integer(*v.InstancePoolsToUseCount) + objectKey.Integer(v.InstancePoolsToUseCount) } if v.MaxTotalPrice != nil { @@ -29029,19 +28627,19 @@ func awsEc2query_serializeDocumentSpotOptionsRequest(v *types.SpotOptionsRequest objectKey.String(*v.MaxTotalPrice) } - if v.MinTargetCapacity != nil { + if v.MinTargetCapacity != 0 { objectKey := object.Key("MinTargetCapacity") - objectKey.Integer(*v.MinTargetCapacity) + objectKey.Integer(v.MinTargetCapacity) } - if v.SingleAvailabilityZone != nil { + if v.SingleAvailabilityZone { objectKey := object.Key("SingleAvailabilityZone") - objectKey.Boolean(*v.SingleAvailabilityZone) + objectKey.Boolean(v.SingleAvailabilityZone) } - if v.SingleInstanceType != nil { + if v.SingleInstanceType { objectKey := object.Key("SingleInstanceType") - objectKey.Boolean(*v.SingleInstanceType) + objectKey.Boolean(v.SingleInstanceType) } return nil @@ -29100,18 +28698,15 @@ func awsEc2query_serializeDocumentStorageLocation(v *types.StorageLocation, valu return nil } -func awsEc2query_serializeDocumentSubnetIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentSubnetIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SubnetId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -29133,18 +28728,15 @@ func awsEc2query_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsEc2query_serializeDocumentTagList(v []*types.Tag, value query.Value) error { +func awsEc2query_serializeDocumentTagList(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentTag(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -29170,18 +28762,15 @@ func awsEc2query_serializeDocumentTagSpecification(v *types.TagSpecification, va return nil } -func awsEc2query_serializeDocumentTagSpecificationList(v []*types.TagSpecification, value query.Value) error { +func awsEc2query_serializeDocumentTagSpecificationList(v []types.TagSpecification, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentTagSpecification(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentTagSpecification(&v[i], av); err != nil { return err } } @@ -29197,19 +28786,19 @@ func awsEc2query_serializeDocumentTargetCapacitySpecificationRequest(v *types.Ta objectKey.String(string(v.DefaultTargetCapacityType)) } - if v.OnDemandTargetCapacity != nil { + if v.OnDemandTargetCapacity != 0 { objectKey := object.Key("OnDemandTargetCapacity") - objectKey.Integer(*v.OnDemandTargetCapacity) + objectKey.Integer(v.OnDemandTargetCapacity) } - if v.SpotTargetCapacity != nil { + if v.SpotTargetCapacity != 0 { objectKey := object.Key("SpotTargetCapacity") - objectKey.Integer(*v.SpotTargetCapacity) + objectKey.Integer(v.SpotTargetCapacity) } - if v.TotalTargetCapacity != nil { + if v.TotalTargetCapacity != 0 { objectKey := object.Key("TotalTargetCapacity") - objectKey.Integer(*v.TotalTargetCapacity) + objectKey.Integer(v.TotalTargetCapacity) } return nil @@ -29219,9 +28808,9 @@ func awsEc2query_serializeDocumentTargetConfigurationRequest(v *types.TargetConf object := value.Object() _ = object - if v.InstanceCount != nil { + if v.InstanceCount != 0 { objectKey := object.Key("InstanceCount") - objectKey.Integer(*v.InstanceCount) + objectKey.Integer(v.InstanceCount) } if v.OfferingId != nil { @@ -29232,18 +28821,15 @@ func awsEc2query_serializeDocumentTargetConfigurationRequest(v *types.TargetConf return nil } -func awsEc2query_serializeDocumentTargetConfigurationRequestSet(v []*types.TargetConfigurationRequest, value query.Value) error { +func awsEc2query_serializeDocumentTargetConfigurationRequestSet(v []types.TargetConfigurationRequest, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("TargetConfigurationRequest") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentTargetConfigurationRequest(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentTargetConfigurationRequest(&v[i], av); err != nil { return err } } @@ -29262,18 +28848,15 @@ func awsEc2query_serializeDocumentTargetGroup(v *types.TargetGroup, value query. return nil } -func awsEc2query_serializeDocumentTargetGroups(v []*types.TargetGroup, value query.Value) error { +func awsEc2query_serializeDocumentTargetGroups(v []types.TargetGroup, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentTargetGroup(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentTargetGroup(&v[i], av); err != nil { return err } } @@ -29294,18 +28877,15 @@ func awsEc2query_serializeDocumentTargetGroupsConfig(v *types.TargetGroupsConfig return nil } -func awsEc2query_serializeDocumentTrafficMirrorFilterIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentTrafficMirrorFilterIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -29340,14 +28920,14 @@ func awsEc2query_serializeDocumentTrafficMirrorPortRangeRequest(v *types.Traffic object := value.Object() _ = object - if v.FromPort != nil { + if v.FromPort != 0 { objectKey := object.Key("FromPort") - objectKey.Integer(*v.FromPort) + objectKey.Integer(v.FromPort) } - if v.ToPort != nil { + if v.ToPort != 0 { objectKey := object.Key("ToPort") - objectKey.Integer(*v.ToPort) + objectKey.Integer(v.ToPort) } return nil @@ -29366,98 +28946,80 @@ func awsEc2query_serializeDocumentTrafficMirrorSessionFieldList(v []types.Traffi return nil } -func awsEc2query_serializeDocumentTrafficMirrorSessionIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentTrafficMirrorSessionIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentTrafficMirrorTargetIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentTrafficMirrorTargetIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentTransitGatewayAttachmentIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentTransitGatewayAttachmentIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentTransitGatewayIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentTransitGatewayIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentTransitGatewayMulticastDomainIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentTransitGatewayMulticastDomainIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentTransitGatewayNetworkInterfaceIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentTransitGatewayNetworkInterfaceIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -29466,9 +29028,9 @@ func awsEc2query_serializeDocumentTransitGatewayRequestOptions(v *types.TransitG object := value.Object() _ = object - if v.AmazonSideAsn != nil { + if v.AmazonSideAsn != 0 { objectKey := object.Key("AmazonSideAsn") - objectKey.Long(*v.AmazonSideAsn) + objectKey.Long(v.AmazonSideAsn) } if len(v.AutoAcceptSharedAttachments) > 0 { @@ -29504,34 +29066,28 @@ func awsEc2query_serializeDocumentTransitGatewayRequestOptions(v *types.TransitG return nil } -func awsEc2query_serializeDocumentTransitGatewayRouteTableIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentTransitGatewayRouteTableIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentTransitGatewaySubnetIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentTransitGatewaySubnetIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -29565,18 +29121,15 @@ func awsEc2query_serializeDocumentUserData(v *types.UserData, value query.Value) return nil } -func awsEc2query_serializeDocumentUserGroupStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentUserGroupStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("UserGroup") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -29623,68 +29176,56 @@ func awsEc2query_serializeDocumentUserIdGroupPair(v *types.UserIdGroupPair, valu return nil } -func awsEc2query_serializeDocumentUserIdGroupPairList(v []*types.UserIdGroupPair, value query.Value) error { +func awsEc2query_serializeDocumentUserIdGroupPairList(v []types.UserIdGroupPair, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentUserIdGroupPair(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentUserIdGroupPair(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentUserIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentUserIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("UserId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentValueStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentValueStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentVersionStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentVersionStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -29693,170 +29234,140 @@ func awsEc2query_serializeDocumentVolumeDetail(v *types.VolumeDetail, value quer object := value.Object() _ = object - if v.Size != nil { + if v.Size != 0 { objectKey := object.Key("Size") - objectKey.Long(*v.Size) + objectKey.Long(v.Size) } return nil } -func awsEc2query_serializeDocumentVolumeIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentVolumeIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("VolumeId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentVpcClassicLinkIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentVpcClassicLinkIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("VpcId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentVpcEndpointIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentVpcEndpointIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentVpcEndpointRouteTableIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentVpcEndpointRouteTableIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentVpcEndpointSecurityGroupIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentVpcEndpointSecurityGroupIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentVpcEndpointServiceIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentVpcEndpointServiceIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentVpcEndpointSubnetIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentVpcEndpointSubnetIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentVpcIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentVpcIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("VpcId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentVpcPeeringConnectionIdList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentVpcPeeringConnectionIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentVpnConnectionIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentVpnConnectionIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("VpnConnectionId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -29865,9 +29376,9 @@ func awsEc2query_serializeDocumentVpnConnectionOptionsSpecification(v *types.Vpn object := value.Object() _ = object - if v.EnableAcceleration != nil { + if v.EnableAcceleration { objectKey := object.Key("EnableAcceleration") - objectKey.Boolean(*v.EnableAcceleration) + objectKey.Boolean(v.EnableAcceleration) } if v.LocalIpv4NetworkCidr != nil { @@ -29890,9 +29401,9 @@ func awsEc2query_serializeDocumentVpnConnectionOptionsSpecification(v *types.Vpn objectKey.String(*v.RemoteIpv6NetworkCidr) } - if v.StaticRoutesOnly != nil { + if v.StaticRoutesOnly { objectKey := object.Key("StaticRoutesOnly") - objectKey.Boolean(*v.StaticRoutesOnly) + objectKey.Boolean(v.StaticRoutesOnly) } if len(v.TunnelInsideIpVersion) > 0 { @@ -29910,18 +29421,15 @@ func awsEc2query_serializeDocumentVpnConnectionOptionsSpecification(v *types.Vpn return nil } -func awsEc2query_serializeDocumentVpnGatewayIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentVpnGatewayIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("VpnGatewayId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -29935,9 +29443,9 @@ func awsEc2query_serializeDocumentVpnTunnelOptionsSpecification(v *types.VpnTunn objectKey.String(*v.DPDTimeoutAction) } - if v.DPDTimeoutSeconds != nil { + if v.DPDTimeoutSeconds != 0 { objectKey := object.Key("DPDTimeoutSeconds") - objectKey.Integer(*v.DPDTimeoutSeconds) + objectKey.Integer(v.DPDTimeoutSeconds) } if v.IKEVersions != nil { @@ -29968,9 +29476,9 @@ func awsEc2query_serializeDocumentVpnTunnelOptionsSpecification(v *types.VpnTunn } } - if v.Phase1LifetimeSeconds != nil { + if v.Phase1LifetimeSeconds != 0 { objectKey := object.Key("Phase1LifetimeSeconds") - objectKey.Integer(*v.Phase1LifetimeSeconds) + objectKey.Integer(v.Phase1LifetimeSeconds) } if v.Phase2DHGroupNumbers != nil { @@ -29994,9 +29502,9 @@ func awsEc2query_serializeDocumentVpnTunnelOptionsSpecification(v *types.VpnTunn } } - if v.Phase2LifetimeSeconds != nil { + if v.Phase2LifetimeSeconds != 0 { objectKey := object.Key("Phase2LifetimeSeconds") - objectKey.Integer(*v.Phase2LifetimeSeconds) + objectKey.Integer(v.Phase2LifetimeSeconds) } if v.PreSharedKey != nil { @@ -30004,19 +29512,19 @@ func awsEc2query_serializeDocumentVpnTunnelOptionsSpecification(v *types.VpnTunn objectKey.String(*v.PreSharedKey) } - if v.RekeyFuzzPercentage != nil { + if v.RekeyFuzzPercentage != 0 { objectKey := object.Key("RekeyFuzzPercentage") - objectKey.Integer(*v.RekeyFuzzPercentage) + objectKey.Integer(v.RekeyFuzzPercentage) } - if v.RekeyMarginTimeSeconds != nil { + if v.RekeyMarginTimeSeconds != 0 { objectKey := object.Key("RekeyMarginTimeSeconds") - objectKey.Integer(*v.RekeyMarginTimeSeconds) + objectKey.Integer(v.RekeyMarginTimeSeconds) } - if v.ReplayWindowSize != nil { + if v.ReplayWindowSize != 0 { objectKey := object.Key("ReplayWindowSize") - objectKey.Integer(*v.ReplayWindowSize) + objectKey.Integer(v.ReplayWindowSize) } if v.StartupAction != nil { @@ -30037,52 +29545,43 @@ func awsEc2query_serializeDocumentVpnTunnelOptionsSpecification(v *types.VpnTunn return nil } -func awsEc2query_serializeDocumentVpnTunnelOptionsSpecificationsList(v []*types.VpnTunnelOptionsSpecification, value query.Value) error { +func awsEc2query_serializeDocumentVpnTunnelOptionsSpecificationsList(v []types.VpnTunnelOptionsSpecification, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsEc2query_serializeDocumentVpnTunnelOptionsSpecification(v[i], av); err != nil { + if err := awsEc2query_serializeDocumentVpnTunnelOptionsSpecification(&v[i], av); err != nil { return err } } return nil } -func awsEc2query_serializeDocumentZoneIdStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentZoneIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ZoneId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsEc2query_serializeDocumentZoneNameStringList(v []*string, value query.Value) error { +func awsEc2query_serializeDocumentZoneNameStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ZoneName") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -30091,9 +29590,9 @@ func awsEc2query_serializeOpDocumentAcceptReservedInstancesExchangeQuoteInput(v object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ReservedInstanceIds != nil { @@ -30117,9 +29616,9 @@ func awsEc2query_serializeOpDocumentAcceptTransitGatewayPeeringAttachmentInput(v object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -30134,9 +29633,9 @@ func awsEc2query_serializeOpDocumentAcceptTransitGatewayVpcAttachmentInput(v *Ac object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -30151,9 +29650,9 @@ func awsEc2query_serializeOpDocumentAcceptVpcEndpointConnectionsInput(v *AcceptV object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ServiceId != nil { @@ -30175,9 +29674,9 @@ func awsEc2query_serializeOpDocumentAcceptVpcPeeringConnectionInput(v *AcceptVpc object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpcPeeringConnectionId != nil { @@ -30197,9 +29696,9 @@ func awsEc2query_serializeOpDocumentAdvertiseByoipCidrInput(v *AdvertiseByoipCid objectKey.String(*v.Cidr) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -30224,9 +29723,9 @@ func awsEc2query_serializeOpDocumentAllocateAddressInput(v *AllocateAddressInput objectKey.String(string(v.Domain)) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.NetworkBorderGroup != nil { @@ -30276,9 +29775,9 @@ func awsEc2query_serializeOpDocumentAllocateHostsInput(v *AllocateHostsInput, va objectKey.String(*v.InstanceType) } - if v.Quantity != nil { + if v.Quantity != 0 { objectKey := object.Key("Quantity") - objectKey.Integer(*v.Quantity) + objectKey.Integer(v.Quantity) } if v.TagSpecifications != nil { @@ -30300,9 +29799,9 @@ func awsEc2query_serializeOpDocumentApplySecurityGroupsToClientVpnTargetNetworkI objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SecurityGroupIds != nil { @@ -30324,9 +29823,9 @@ func awsEc2query_serializeOpDocumentAssignIpv6AddressesInput(v *AssignIpv6Addres object := value.Object() _ = object - if v.Ipv6AddressCount != nil { + if v.Ipv6AddressCount != 0 { objectKey := object.Key("Ipv6AddressCount") - objectKey.Integer(*v.Ipv6AddressCount) + objectKey.Integer(v.Ipv6AddressCount) } if v.Ipv6Addresses != nil { @@ -30348,9 +29847,9 @@ func awsEc2query_serializeOpDocumentAssignPrivateIpAddressesInput(v *AssignPriva object := value.Object() _ = object - if v.AllowReassignment != nil { + if v.AllowReassignment { objectKey := object.Key("AllowReassignment") - objectKey.Boolean(*v.AllowReassignment) + objectKey.Boolean(v.AllowReassignment) } if v.NetworkInterfaceId != nil { @@ -30365,9 +29864,9 @@ func awsEc2query_serializeOpDocumentAssignPrivateIpAddressesInput(v *AssignPriva } } - if v.SecondaryPrivateIpAddressCount != nil { + if v.SecondaryPrivateIpAddressCount != 0 { objectKey := object.Key("SecondaryPrivateIpAddressCount") - objectKey.Integer(*v.SecondaryPrivateIpAddressCount) + objectKey.Integer(v.SecondaryPrivateIpAddressCount) } return nil @@ -30382,14 +29881,14 @@ func awsEc2query_serializeOpDocumentAssociateAddressInput(v *AssociateAddressInp objectKey.String(*v.AllocationId) } - if v.AllowReassociation != nil { + if v.AllowReassociation { objectKey := object.Key("AllowReassociation") - objectKey.Boolean(*v.AllowReassociation) + objectKey.Boolean(v.AllowReassociation) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -30429,9 +29928,9 @@ func awsEc2query_serializeOpDocumentAssociateClientVpnTargetNetworkInput(v *Asso objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SubnetId != nil { @@ -30451,9 +29950,9 @@ func awsEc2query_serializeOpDocumentAssociateDhcpOptionsInput(v *AssociateDhcpOp objectKey.String(*v.DhcpOptionsId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpcId != nil { @@ -30473,9 +29972,9 @@ func awsEc2query_serializeOpDocumentAssociateEnclaveCertificateIamRoleInput(v *A objectKey.String(*v.CertificateArn) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.RoleArn != nil { @@ -30509,9 +30008,9 @@ func awsEc2query_serializeOpDocumentAssociateRouteTableInput(v *AssociateRouteTa object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GatewayId != nil { @@ -30553,9 +30052,9 @@ func awsEc2query_serializeOpDocumentAssociateTransitGatewayMulticastDomainInput( object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SubnetIds != nil { @@ -30582,9 +30081,9 @@ func awsEc2query_serializeOpDocumentAssociateTransitGatewayRouteTableInput(v *As object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -30604,9 +30103,9 @@ func awsEc2query_serializeOpDocumentAssociateVpcCidrBlockInput(v *AssociateVpcCi object := value.Object() _ = object - if v.AmazonProvidedIpv6CidrBlock != nil { + if v.AmazonProvidedIpv6CidrBlock { objectKey := object.Key("AmazonProvidedIpv6CidrBlock") - objectKey.Boolean(*v.AmazonProvidedIpv6CidrBlock) + objectKey.Boolean(v.AmazonProvidedIpv6CidrBlock) } if v.CidrBlock != nil { @@ -30641,9 +30140,9 @@ func awsEc2query_serializeOpDocumentAttachClassicLinkVpcInput(v *AttachClassicLi object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Groups != nil { @@ -30670,9 +30169,9 @@ func awsEc2query_serializeOpDocumentAttachInternetGatewayInput(v *AttachInternet object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InternetGatewayId != nil { @@ -30692,14 +30191,14 @@ func awsEc2query_serializeOpDocumentAttachNetworkInterfaceInput(v *AttachNetwork object := value.Object() _ = object - if v.DeviceIndex != nil { + if v.DeviceIndex != 0 { objectKey := object.Key("DeviceIndex") - objectKey.Integer(*v.DeviceIndex) + objectKey.Integer(v.DeviceIndex) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -30724,9 +30223,9 @@ func awsEc2query_serializeOpDocumentAttachVolumeInput(v *AttachVolumeInput, valu objectKey.String(*v.Device) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -30746,9 +30245,9 @@ func awsEc2query_serializeOpDocumentAttachVpnGatewayInput(v *AttachVpnGatewayInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpcId != nil { @@ -30773,9 +30272,9 @@ func awsEc2query_serializeOpDocumentAuthorizeClientVpnIngressInput(v *AuthorizeC objectKey.String(*v.AccessGroupId) } - if v.AuthorizeAllGroups != nil { + if v.AuthorizeAllGroups { objectKey := object.Key("AuthorizeAllGroups") - objectKey.Boolean(*v.AuthorizeAllGroups) + objectKey.Boolean(v.AuthorizeAllGroups) } if v.ClientToken != nil { @@ -30793,9 +30292,9 @@ func awsEc2query_serializeOpDocumentAuthorizeClientVpnIngressInput(v *AuthorizeC objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TargetNetworkCidr != nil { @@ -30815,14 +30314,14 @@ func awsEc2query_serializeOpDocumentAuthorizeSecurityGroupEgressInput(v *Authori objectKey.String(*v.CidrIp) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.FromPort != nil { + if v.FromPort != 0 { objectKey := object.Key("FromPort") - objectKey.Integer(*v.FromPort) + objectKey.Integer(v.FromPort) } if v.GroupId != nil { @@ -30852,9 +30351,9 @@ func awsEc2query_serializeOpDocumentAuthorizeSecurityGroupEgressInput(v *Authori objectKey.String(*v.SourceSecurityGroupOwnerId) } - if v.ToPort != nil { + if v.ToPort != 0 { objectKey := object.Key("ToPort") - objectKey.Integer(*v.ToPort) + objectKey.Integer(v.ToPort) } return nil @@ -30869,14 +30368,14 @@ func awsEc2query_serializeOpDocumentAuthorizeSecurityGroupIngressInput(v *Author objectKey.String(*v.CidrIp) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.FromPort != nil { + if v.FromPort != 0 { objectKey := object.Key("FromPort") - objectKey.Integer(*v.FromPort) + objectKey.Integer(v.FromPort) } if v.GroupId != nil { @@ -30911,9 +30410,9 @@ func awsEc2query_serializeOpDocumentAuthorizeSecurityGroupIngressInput(v *Author objectKey.String(*v.SourceSecurityGroupOwnerId) } - if v.ToPort != nil { + if v.ToPort != 0 { objectKey := object.Key("ToPort") - objectKey.Integer(*v.ToPort) + objectKey.Integer(v.ToPort) } return nil @@ -30923,9 +30422,9 @@ func awsEc2query_serializeOpDocumentBundleInstanceInput(v *BundleInstanceInput, object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -30952,9 +30451,9 @@ func awsEc2query_serializeOpDocumentCancelBundleTaskInput(v *CancelBundleTaskInp objectKey.String(*v.BundleId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -30969,9 +30468,9 @@ func awsEc2query_serializeOpDocumentCancelCapacityReservationInput(v *CancelCapa objectKey.String(*v.CapacityReservationId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -30986,9 +30485,9 @@ func awsEc2query_serializeOpDocumentCancelConversionTaskInput(v *CancelConversio objectKey.String(*v.ConversionTaskId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ReasonMessage != nil { @@ -31020,9 +30519,9 @@ func awsEc2query_serializeOpDocumentCancelImportTaskInput(v *CancelImportTaskInp objectKey.String(*v.CancelReason) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ImportTaskId != nil { @@ -31049,9 +30548,9 @@ func awsEc2query_serializeOpDocumentCancelSpotFleetRequestsInput(v *CancelSpotFl object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SpotFleetRequestIds != nil { @@ -31061,9 +30560,9 @@ func awsEc2query_serializeOpDocumentCancelSpotFleetRequestsInput(v *CancelSpotFl } } - if v.TerminateInstances != nil { + if v.TerminateInstances { objectKey := object.Key("TerminateInstances") - objectKey.Boolean(*v.TerminateInstances) + objectKey.Boolean(v.TerminateInstances) } return nil @@ -31073,9 +30572,9 @@ func awsEc2query_serializeOpDocumentCancelSpotInstanceRequestsInput(v *CancelSpo object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SpotInstanceRequestIds != nil { @@ -31092,9 +30591,9 @@ func awsEc2query_serializeOpDocumentConfirmProductInstanceInput(v *ConfirmProduc object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -31124,9 +30623,9 @@ func awsEc2query_serializeOpDocumentCopyFpgaImageInput(v *CopyFpgaImageInput, va objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Name != nil { @@ -31161,14 +30660,14 @@ func awsEc2query_serializeOpDocumentCopyImageInput(v *CopyImageInput, value quer objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Encrypted != nil { + if v.Encrypted { objectKey := object.Key("Encrypted") - objectKey.Boolean(*v.Encrypted) + objectKey.Boolean(v.Encrypted) } if v.KmsKeyId != nil { @@ -31208,14 +30707,14 @@ func awsEc2query_serializeOpDocumentCopySnapshotInput(v *CopySnapshotInput, valu objectKey.String(*v.destinationRegion) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Encrypted != nil { + if v.Encrypted { objectKey := object.Key("Encrypted") - objectKey.Boolean(*v.Encrypted) + objectKey.Boolean(v.Encrypted) } if v.KmsKeyId != nil { @@ -31267,14 +30766,14 @@ func awsEc2query_serializeOpDocumentCreateCapacityReservationInput(v *CreateCapa objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.EbsOptimized != nil { + if v.EbsOptimized { objectKey := object.Key("EbsOptimized") - objectKey.Boolean(*v.EbsOptimized) + objectKey.Boolean(v.EbsOptimized) } if v.EndDate != nil { @@ -31287,14 +30786,14 @@ func awsEc2query_serializeOpDocumentCreateCapacityReservationInput(v *CreateCapa objectKey.String(string(v.EndDateType)) } - if v.EphemeralStorage != nil { + if v.EphemeralStorage { objectKey := object.Key("EphemeralStorage") - objectKey.Boolean(*v.EphemeralStorage) + objectKey.Boolean(v.EphemeralStorage) } - if v.InstanceCount != nil { + if v.InstanceCount != 0 { objectKey := object.Key("InstanceCount") - objectKey.Integer(*v.InstanceCount) + objectKey.Integer(v.InstanceCount) } if len(v.InstanceMatchCriteria) > 0 { @@ -31336,9 +30835,9 @@ func awsEc2query_serializeOpDocumentCreateCarrierGatewayInput(v *CreateCarrierGa objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TagSpecifications != nil { @@ -31396,9 +30895,9 @@ func awsEc2query_serializeOpDocumentCreateClientVpnEndpointInput(v *CreateClient } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SecurityGroupIds != nil { @@ -31418,9 +30917,9 @@ func awsEc2query_serializeOpDocumentCreateClientVpnEndpointInput(v *CreateClient objectKey.String(*v.ServerCertificateArn) } - if v.SplitTunnel != nil { + if v.SplitTunnel { objectKey := object.Key("SplitTunnel") - objectKey.Boolean(*v.SplitTunnel) + objectKey.Boolean(v.SplitTunnel) } if v.TagSpecifications != nil { @@ -31440,9 +30939,9 @@ func awsEc2query_serializeOpDocumentCreateClientVpnEndpointInput(v *CreateClient objectKey.String(*v.VpcId) } - if v.VpnPort != nil { + if v.VpnPort != 0 { objectKey := object.Key("VpnPort") - objectKey.Integer(*v.VpnPort) + objectKey.Integer(v.VpnPort) } return nil @@ -31472,9 +30971,9 @@ func awsEc2query_serializeOpDocumentCreateClientVpnRouteInput(v *CreateClientVpn objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TargetVpcSubnetId != nil { @@ -31489,9 +30988,9 @@ func awsEc2query_serializeOpDocumentCreateCustomerGatewayInput(v *CreateCustomer object := value.Object() _ = object - if v.BgpAsn != nil { + if v.BgpAsn != 0 { objectKey := object.Key("BgpAsn") - objectKey.Integer(*v.BgpAsn) + objectKey.Integer(v.BgpAsn) } if v.CertificateArn != nil { @@ -31504,9 +31003,9 @@ func awsEc2query_serializeOpDocumentCreateCustomerGatewayInput(v *CreateCustomer objectKey.String(*v.DeviceName) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PublicIp != nil { @@ -31538,9 +31037,9 @@ func awsEc2query_serializeOpDocumentCreateDefaultSubnetInput(v *CreateDefaultSub objectKey.String(*v.AvailabilityZone) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -31550,9 +31049,9 @@ func awsEc2query_serializeOpDocumentCreateDefaultVpcInput(v *CreateDefaultVpcInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -31569,9 +31068,9 @@ func awsEc2query_serializeOpDocumentCreateDhcpOptionsInput(v *CreateDhcpOptionsI } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TagSpecifications != nil { @@ -31593,9 +31092,9 @@ func awsEc2query_serializeOpDocumentCreateEgressOnlyInternetGatewayInput(v *Crea objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TagSpecifications != nil { @@ -31622,9 +31121,9 @@ func awsEc2query_serializeOpDocumentCreateFleetInput(v *CreateFleetInput, value objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if len(v.ExcessCapacityTerminationPolicy) > 0 { @@ -31646,9 +31145,9 @@ func awsEc2query_serializeOpDocumentCreateFleetInput(v *CreateFleetInput, value } } - if v.ReplaceUnhealthyInstances != nil { + if v.ReplaceUnhealthyInstances { objectKey := object.Key("ReplaceUnhealthyInstances") - objectKey.Boolean(*v.ReplaceUnhealthyInstances) + objectKey.Boolean(v.ReplaceUnhealthyInstances) } if v.SpotOptions != nil { @@ -31672,9 +31171,9 @@ func awsEc2query_serializeOpDocumentCreateFleetInput(v *CreateFleetInput, value } } - if v.TerminateInstancesWithExpiration != nil { + if v.TerminateInstancesWithExpiration { objectKey := object.Key("TerminateInstancesWithExpiration") - objectKey.Boolean(*v.TerminateInstancesWithExpiration) + objectKey.Boolean(v.TerminateInstancesWithExpiration) } if len(v.Type) > 0 { @@ -31709,9 +31208,9 @@ func awsEc2query_serializeOpDocumentCreateFlowLogsInput(v *CreateFlowLogsInput, objectKey.String(*v.DeliverLogsPermissionArn) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.LogDestination != nil { @@ -31734,9 +31233,9 @@ func awsEc2query_serializeOpDocumentCreateFlowLogsInput(v *CreateFlowLogsInput, objectKey.String(*v.LogGroupName) } - if v.MaxAggregationInterval != nil { + if v.MaxAggregationInterval != 0 { objectKey := object.Key("MaxAggregationInterval") - objectKey.Integer(*v.MaxAggregationInterval) + objectKey.Integer(v.MaxAggregationInterval) } if v.ResourceIds != nil { @@ -31780,9 +31279,9 @@ func awsEc2query_serializeOpDocumentCreateFpgaImageInput(v *CreateFpgaImageInput objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InputStorageLocation != nil { @@ -31830,9 +31329,9 @@ func awsEc2query_serializeOpDocumentCreateImageInput(v *CreateImageInput, value objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -31845,9 +31344,9 @@ func awsEc2query_serializeOpDocumentCreateImageInput(v *CreateImageInput, value objectKey.String(*v.Name) } - if v.NoReboot != nil { + if v.NoReboot { objectKey := object.Key("NoReboot") - objectKey.Boolean(*v.NoReboot) + objectKey.Boolean(v.NoReboot) } return nil @@ -31893,9 +31392,9 @@ func awsEc2query_serializeOpDocumentCreateInternetGatewayInput(v *CreateInternet object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TagSpecifications != nil { @@ -31912,9 +31411,9 @@ func awsEc2query_serializeOpDocumentCreateKeyPairInput(v *CreateKeyPairInput, va object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.KeyName != nil { @@ -31941,9 +31440,9 @@ func awsEc2query_serializeOpDocumentCreateLaunchTemplateInput(v *CreateLaunchTem objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.LaunchTemplateData != nil { @@ -31982,9 +31481,9 @@ func awsEc2query_serializeOpDocumentCreateLaunchTemplateVersionInput(v *CreateLa objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.LaunchTemplateData != nil { @@ -32026,9 +31525,9 @@ func awsEc2query_serializeOpDocumentCreateLocalGatewayRouteInput(v *CreateLocalG objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.LocalGatewayRouteTableId != nil { @@ -32048,9 +31547,9 @@ func awsEc2query_serializeOpDocumentCreateLocalGatewayRouteTableVpcAssociationIn object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.LocalGatewayRouteTableId != nil { @@ -32087,9 +31586,9 @@ func awsEc2query_serializeOpDocumentCreateManagedPrefixListInput(v *CreateManage objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Entries != nil { @@ -32099,9 +31598,9 @@ func awsEc2query_serializeOpDocumentCreateManagedPrefixListInput(v *CreateManage } } - if v.MaxEntries != nil { + if v.MaxEntries != 0 { objectKey := object.Key("MaxEntries") - objectKey.Integer(*v.MaxEntries) + objectKey.Integer(v.MaxEntries) } if v.PrefixListName != nil { @@ -32133,9 +31632,9 @@ func awsEc2query_serializeOpDocumentCreateNatGatewayInput(v *CreateNatGatewayInp objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SubnetId != nil { @@ -32162,14 +31661,14 @@ func awsEc2query_serializeOpDocumentCreateNetworkAclEntryInput(v *CreateNetworkA objectKey.String(*v.CidrBlock) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Egress != nil { + if v.Egress { objectKey := object.Key("Egress") - objectKey.Boolean(*v.Egress) + objectKey.Boolean(v.Egress) } if v.IcmpTypeCode != nil { @@ -32206,9 +31705,9 @@ func awsEc2query_serializeOpDocumentCreateNetworkAclEntryInput(v *CreateNetworkA objectKey.String(string(v.RuleAction)) } - if v.RuleNumber != nil { + if v.RuleNumber != 0 { objectKey := object.Key("RuleNumber") - objectKey.Integer(*v.RuleNumber) + objectKey.Integer(v.RuleNumber) } return nil @@ -32218,9 +31717,9 @@ func awsEc2query_serializeOpDocumentCreateNetworkAclInput(v *CreateNetworkAclInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TagSpecifications != nil { @@ -32247,9 +31746,9 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(v *CreateNetwork objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Groups != nil { @@ -32264,9 +31763,9 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(v *CreateNetwork objectKey.String(string(v.InterfaceType)) } - if v.Ipv6AddressCount != nil { + if v.Ipv6AddressCount != 0 { objectKey := object.Key("Ipv6AddressCount") - objectKey.Integer(*v.Ipv6AddressCount) + objectKey.Integer(v.Ipv6AddressCount) } if v.Ipv6Addresses != nil { @@ -32288,9 +31787,9 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(v *CreateNetwork } } - if v.SecondaryPrivateIpAddressCount != nil { + if v.SecondaryPrivateIpAddressCount != 0 { objectKey := object.Key("SecondaryPrivateIpAddressCount") - objectKey.Integer(*v.SecondaryPrivateIpAddressCount) + objectKey.Integer(v.SecondaryPrivateIpAddressCount) } if v.SubnetId != nil { @@ -32322,9 +31821,9 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfacePermissionInput(v *Cre objectKey.String(*v.AwsService) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.NetworkInterfaceId != nil { @@ -32344,9 +31843,9 @@ func awsEc2query_serializeOpDocumentCreatePlacementGroupInput(v *CreatePlacement object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GroupName != nil { @@ -32354,9 +31853,9 @@ func awsEc2query_serializeOpDocumentCreatePlacementGroupInput(v *CreatePlacement objectKey.String(*v.GroupName) } - if v.PartitionCount != nil { + if v.PartitionCount != 0 { objectKey := object.Key("PartitionCount") - objectKey.Integer(*v.PartitionCount) + objectKey.Integer(v.PartitionCount) } if len(v.Strategy) > 0 { @@ -32383,9 +31882,9 @@ func awsEc2query_serializeOpDocumentCreateReservedInstancesListingInput(v *Creat objectKey.String(*v.ClientToken) } - if v.InstanceCount != nil { + if v.InstanceCount != 0 { objectKey := object.Key("InstanceCount") - objectKey.Integer(*v.InstanceCount) + objectKey.Integer(v.InstanceCount) } if v.PriceSchedules != nil { @@ -32427,9 +31926,9 @@ func awsEc2query_serializeOpDocumentCreateRouteInput(v *CreateRouteInput, value objectKey.String(*v.DestinationPrefixListId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.EgressOnlyInternetGatewayId != nil { @@ -32484,9 +31983,9 @@ func awsEc2query_serializeOpDocumentCreateRouteTableInput(v *CreateRouteTableInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TagSpecifications != nil { @@ -32513,9 +32012,9 @@ func awsEc2query_serializeOpDocumentCreateSecurityGroupInput(v *CreateSecurityGr objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GroupName != nil { @@ -32547,9 +32046,9 @@ func awsEc2query_serializeOpDocumentCreateSnapshotInput(v *CreateSnapshotInput, objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TagSpecifications != nil { @@ -32581,9 +32080,9 @@ func awsEc2query_serializeOpDocumentCreateSnapshotsInput(v *CreateSnapshotsInput objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceSpecification != nil { @@ -32612,9 +32111,9 @@ func awsEc2query_serializeOpDocumentCreateSpotDatafeedSubscriptionInput(v *Creat objectKey.String(*v.Bucket) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Prefix != nil { @@ -32644,9 +32143,9 @@ func awsEc2query_serializeOpDocumentCreateSubnetInput(v *CreateSubnetInput, valu objectKey.String(*v.CidrBlock) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Ipv6CidrBlock != nil { @@ -32678,9 +32177,9 @@ func awsEc2query_serializeOpDocumentCreateTagsInput(v *CreateTagsInput, value qu object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Resources != nil { @@ -32714,9 +32213,9 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorFilterInput(v *CreateTraf objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TagSpecifications != nil { @@ -32755,14 +32254,14 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorFilterRuleInput(v *Create } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Protocol != nil { + if v.Protocol != 0 { objectKey := object.Key("Protocol") - objectKey.Integer(*v.Protocol) + objectKey.Integer(v.Protocol) } if len(v.RuleAction) > 0 { @@ -32770,9 +32269,9 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorFilterRuleInput(v *Create objectKey.String(string(v.RuleAction)) } - if v.RuleNumber != nil { + if v.RuleNumber != 0 { objectKey := object.Key("RuleNumber") - objectKey.Integer(*v.RuleNumber) + objectKey.Integer(v.RuleNumber) } if v.SourceCidrBlock != nil { @@ -32814,9 +32313,9 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorSessionInput(v *CreateTra objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.NetworkInterfaceId != nil { @@ -32824,14 +32323,14 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorSessionInput(v *CreateTra objectKey.String(*v.NetworkInterfaceId) } - if v.PacketLength != nil { + if v.PacketLength != 0 { objectKey := object.Key("PacketLength") - objectKey.Integer(*v.PacketLength) + objectKey.Integer(v.PacketLength) } - if v.SessionNumber != nil { + if v.SessionNumber != 0 { objectKey := object.Key("SessionNumber") - objectKey.Integer(*v.SessionNumber) + objectKey.Integer(v.SessionNumber) } if v.TagSpecifications != nil { @@ -32851,9 +32350,9 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorSessionInput(v *CreateTra objectKey.String(*v.TrafficMirrorTargetId) } - if v.VirtualNetworkId != nil { + if v.VirtualNetworkId != 0 { objectKey := object.Key("VirtualNetworkId") - objectKey.Integer(*v.VirtualNetworkId) + objectKey.Integer(v.VirtualNetworkId) } return nil @@ -32873,9 +32372,9 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorTargetInput(v *CreateTraf objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.NetworkInterfaceId != nil { @@ -32907,9 +32406,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayInput(v *CreateTransitGa objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Options != nil { @@ -32933,9 +32432,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayMulticastDomainInput(v * object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TagSpecifications != nil { @@ -32957,9 +32456,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayPeeringAttachmentInput(v object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PeerAccountId != nil { @@ -32996,14 +32495,14 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayPrefixListReferenceInput object := value.Object() _ = object - if v.Blackhole != nil { + if v.Blackhole { objectKey := object.Key("Blackhole") - objectKey.Boolean(*v.Blackhole) + objectKey.Boolean(v.Blackhole) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PrefixListId != nil { @@ -33028,9 +32527,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayRouteInput(v *CreateTran object := value.Object() _ = object - if v.Blackhole != nil { + if v.Blackhole { objectKey := object.Key("Blackhole") - objectKey.Boolean(*v.Blackhole) + objectKey.Boolean(v.Blackhole) } if v.DestinationCidrBlock != nil { @@ -33038,9 +32537,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayRouteInput(v *CreateTran objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -33060,9 +32559,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayRouteTableInput(v *Creat object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TagSpecifications != nil { @@ -33084,9 +32583,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayVpcAttachmentInput(v *Cr object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Options != nil { @@ -33132,19 +32631,19 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu objectKey.String(*v.AvailabilityZone) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Encrypted != nil { + if v.Encrypted { objectKey := object.Key("Encrypted") - objectKey.Boolean(*v.Encrypted) + objectKey.Boolean(v.Encrypted) } - if v.Iops != nil { + if v.Iops != 0 { objectKey := object.Key("Iops") - objectKey.Integer(*v.Iops) + objectKey.Integer(v.Iops) } if v.KmsKeyId != nil { @@ -33152,9 +32651,9 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu objectKey.String(*v.KmsKeyId) } - if v.MultiAttachEnabled != nil { + if v.MultiAttachEnabled { objectKey := object.Key("MultiAttachEnabled") - objectKey.Boolean(*v.MultiAttachEnabled) + objectKey.Boolean(v.MultiAttachEnabled) } if v.OutpostArn != nil { @@ -33162,9 +32661,9 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu objectKey.String(*v.OutpostArn) } - if v.Size != nil { + if v.Size != 0 { objectKey := object.Key("Size") - objectKey.Integer(*v.Size) + objectKey.Integer(v.Size) } if v.SnapshotId != nil { @@ -33208,9 +32707,9 @@ func awsEc2query_serializeOpDocumentCreateVpcEndpointConnectionNotificationInput objectKey.String(*v.ConnectionNotificationArn) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ServiceId != nil { @@ -33235,9 +32734,9 @@ func awsEc2query_serializeOpDocumentCreateVpcEndpointInput(v *CreateVpcEndpointI objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PolicyDocument != nil { @@ -33245,9 +32744,9 @@ func awsEc2query_serializeOpDocumentCreateVpcEndpointInput(v *CreateVpcEndpointI objectKey.String(*v.PolicyDocument) } - if v.PrivateDnsEnabled != nil { + if v.PrivateDnsEnabled { objectKey := object.Key("PrivateDnsEnabled") - objectKey.Boolean(*v.PrivateDnsEnabled) + objectKey.Boolean(v.PrivateDnsEnabled) } if v.RouteTableIds != nil { @@ -33300,9 +32799,9 @@ func awsEc2query_serializeOpDocumentCreateVpcEndpointServiceConfigurationInput(v object := value.Object() _ = object - if v.AcceptanceRequired != nil { + if v.AcceptanceRequired { objectKey := object.Key("AcceptanceRequired") - objectKey.Boolean(*v.AcceptanceRequired) + objectKey.Boolean(v.AcceptanceRequired) } if v.ClientToken != nil { @@ -33310,9 +32809,9 @@ func awsEc2query_serializeOpDocumentCreateVpcEndpointServiceConfigurationInput(v objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.NetworkLoadBalancerArns != nil { @@ -33341,9 +32840,9 @@ func awsEc2query_serializeOpDocumentCreateVpcInput(v *CreateVpcInput, value quer object := value.Object() _ = object - if v.AmazonProvidedIpv6CidrBlock != nil { + if v.AmazonProvidedIpv6CidrBlock { objectKey := object.Key("AmazonProvidedIpv6CidrBlock") - objectKey.Boolean(*v.AmazonProvidedIpv6CidrBlock) + objectKey.Boolean(v.AmazonProvidedIpv6CidrBlock) } if v.CidrBlock != nil { @@ -33351,9 +32850,9 @@ func awsEc2query_serializeOpDocumentCreateVpcInput(v *CreateVpcInput, value quer objectKey.String(*v.CidrBlock) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if len(v.InstanceTenancy) > 0 { @@ -33390,9 +32889,9 @@ func awsEc2query_serializeOpDocumentCreateVpcPeeringConnectionInput(v *CreateVpc object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PeerOwnerId != nil { @@ -33434,9 +32933,9 @@ func awsEc2query_serializeOpDocumentCreateVpnConnectionInput(v *CreateVpnConnect objectKey.String(*v.CustomerGatewayId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Options != nil { @@ -33492,9 +32991,9 @@ func awsEc2query_serializeOpDocumentCreateVpnGatewayInput(v *CreateVpnGatewayInp object := value.Object() _ = object - if v.AmazonSideAsn != nil { + if v.AmazonSideAsn != 0 { objectKey := object.Key("AmazonSideAsn") - objectKey.Long(*v.AmazonSideAsn) + objectKey.Long(v.AmazonSideAsn) } if v.AvailabilityZone != nil { @@ -33502,9 +33001,9 @@ func awsEc2query_serializeOpDocumentCreateVpnGatewayInput(v *CreateVpnGatewayInp objectKey.String(*v.AvailabilityZone) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TagSpecifications != nil { @@ -33531,9 +33030,9 @@ func awsEc2query_serializeOpDocumentDeleteCarrierGatewayInput(v *DeleteCarrierGa objectKey.String(*v.CarrierGatewayId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -33548,9 +33047,9 @@ func awsEc2query_serializeOpDocumentDeleteClientVpnEndpointInput(v *DeleteClient objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -33570,9 +33069,9 @@ func awsEc2query_serializeOpDocumentDeleteClientVpnRouteInput(v *DeleteClientVpn objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TargetVpcSubnetId != nil { @@ -33592,9 +33091,9 @@ func awsEc2query_serializeOpDocumentDeleteCustomerGatewayInput(v *DeleteCustomer objectKey.String(*v.CustomerGatewayId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -33609,9 +33108,9 @@ func awsEc2query_serializeOpDocumentDeleteDhcpOptionsInput(v *DeleteDhcpOptionsI objectKey.String(*v.DhcpOptionsId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -33621,9 +33120,9 @@ func awsEc2query_serializeOpDocumentDeleteEgressOnlyInternetGatewayInput(v *Dele object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.EgressOnlyInternetGatewayId != nil { @@ -33638,9 +33137,9 @@ func awsEc2query_serializeOpDocumentDeleteFleetsInput(v *DeleteFleetsInput, valu object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.FleetIds != nil { @@ -33650,9 +33149,9 @@ func awsEc2query_serializeOpDocumentDeleteFleetsInput(v *DeleteFleetsInput, valu } } - if v.TerminateInstances != nil { + if v.TerminateInstances { objectKey := object.Key("TerminateInstances") - objectKey.Boolean(*v.TerminateInstances) + objectKey.Boolean(v.TerminateInstances) } return nil @@ -33662,9 +33161,9 @@ func awsEc2query_serializeOpDocumentDeleteFlowLogsInput(v *DeleteFlowLogsInput, object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.FlowLogIds != nil { @@ -33681,9 +33180,9 @@ func awsEc2query_serializeOpDocumentDeleteFpgaImageInput(v *DeleteFpgaImageInput object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.FpgaImageId != nil { @@ -33698,9 +33197,9 @@ func awsEc2query_serializeOpDocumentDeleteInternetGatewayInput(v *DeleteInternet object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InternetGatewayId != nil { @@ -33715,9 +33214,9 @@ func awsEc2query_serializeOpDocumentDeleteKeyPairInput(v *DeleteKeyPairInput, va object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.KeyName != nil { @@ -33737,9 +33236,9 @@ func awsEc2query_serializeOpDocumentDeleteLaunchTemplateInput(v *DeleteLaunchTem object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.LaunchTemplateId != nil { @@ -33759,9 +33258,9 @@ func awsEc2query_serializeOpDocumentDeleteLaunchTemplateVersionsInput(v *DeleteL object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.LaunchTemplateId != nil { @@ -33793,9 +33292,9 @@ func awsEc2query_serializeOpDocumentDeleteLocalGatewayRouteInput(v *DeleteLocalG objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.LocalGatewayRouteTableId != nil { @@ -33810,9 +33309,9 @@ func awsEc2query_serializeOpDocumentDeleteLocalGatewayRouteTableVpcAssociationIn object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.LocalGatewayRouteTableVpcAssociationId != nil { @@ -33827,9 +33326,9 @@ func awsEc2query_serializeOpDocumentDeleteManagedPrefixListInput(v *DeleteManage object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PrefixListId != nil { @@ -33844,9 +33343,9 @@ func awsEc2query_serializeOpDocumentDeleteNatGatewayInput(v *DeleteNatGatewayInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.NatGatewayId != nil { @@ -33861,14 +33360,14 @@ func awsEc2query_serializeOpDocumentDeleteNetworkAclEntryInput(v *DeleteNetworkA object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Egress != nil { + if v.Egress { objectKey := object.Key("Egress") - objectKey.Boolean(*v.Egress) + objectKey.Boolean(v.Egress) } if v.NetworkAclId != nil { @@ -33876,9 +33375,9 @@ func awsEc2query_serializeOpDocumentDeleteNetworkAclEntryInput(v *DeleteNetworkA objectKey.String(*v.NetworkAclId) } - if v.RuleNumber != nil { + if v.RuleNumber != 0 { objectKey := object.Key("RuleNumber") - objectKey.Integer(*v.RuleNumber) + objectKey.Integer(v.RuleNumber) } return nil @@ -33888,9 +33387,9 @@ func awsEc2query_serializeOpDocumentDeleteNetworkAclInput(v *DeleteNetworkAclInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.NetworkAclId != nil { @@ -33905,9 +33404,9 @@ func awsEc2query_serializeOpDocumentDeleteNetworkInterfaceInput(v *DeleteNetwork object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.NetworkInterfaceId != nil { @@ -33922,14 +33421,14 @@ func awsEc2query_serializeOpDocumentDeleteNetworkInterfacePermissionInput(v *Del object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Force != nil { + if v.Force { objectKey := object.Key("Force") - objectKey.Boolean(*v.Force) + objectKey.Boolean(v.Force) } if v.NetworkInterfacePermissionId != nil { @@ -33944,9 +33443,9 @@ func awsEc2query_serializeOpDocumentDeletePlacementGroupInput(v *DeletePlacement object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GroupName != nil { @@ -33961,9 +33460,9 @@ func awsEc2query_serializeOpDocumentDeleteQueuedReservedInstancesInput(v *Delete object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ReservedInstancesIds != nil { @@ -33995,9 +33494,9 @@ func awsEc2query_serializeOpDocumentDeleteRouteInput(v *DeleteRouteInput, value objectKey.String(*v.DestinationPrefixListId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.RouteTableId != nil { @@ -34012,9 +33511,9 @@ func awsEc2query_serializeOpDocumentDeleteRouteTableInput(v *DeleteRouteTableInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.RouteTableId != nil { @@ -34029,9 +33528,9 @@ func awsEc2query_serializeOpDocumentDeleteSecurityGroupInput(v *DeleteSecurityGr object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GroupId != nil { @@ -34051,9 +33550,9 @@ func awsEc2query_serializeOpDocumentDeleteSnapshotInput(v *DeleteSnapshotInput, object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SnapshotId != nil { @@ -34068,9 +33567,9 @@ func awsEc2query_serializeOpDocumentDeleteSpotDatafeedSubscriptionInput(v *Delet object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -34080,9 +33579,9 @@ func awsEc2query_serializeOpDocumentDeleteSubnetInput(v *DeleteSubnetInput, valu object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SubnetId != nil { @@ -34097,9 +33596,9 @@ func awsEc2query_serializeOpDocumentDeleteTagsInput(v *DeleteTagsInput, value qu object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Resources != nil { @@ -34123,9 +33622,9 @@ func awsEc2query_serializeOpDocumentDeleteTrafficMirrorFilterInput(v *DeleteTraf object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TrafficMirrorFilterId != nil { @@ -34140,9 +33639,9 @@ func awsEc2query_serializeOpDocumentDeleteTrafficMirrorFilterRuleInput(v *Delete object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TrafficMirrorFilterRuleId != nil { @@ -34157,9 +33656,9 @@ func awsEc2query_serializeOpDocumentDeleteTrafficMirrorSessionInput(v *DeleteTra object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TrafficMirrorSessionId != nil { @@ -34174,9 +33673,9 @@ func awsEc2query_serializeOpDocumentDeleteTrafficMirrorTargetInput(v *DeleteTraf object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TrafficMirrorTargetId != nil { @@ -34191,9 +33690,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayInput(v *DeleteTransitGa object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayId != nil { @@ -34208,9 +33707,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayMulticastDomainInput(v * object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayMulticastDomainId != nil { @@ -34225,9 +33724,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayPeeringAttachmentInput(v object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -34242,9 +33741,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayPrefixListReferenceInput object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PrefixListId != nil { @@ -34269,9 +33768,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayRouteInput(v *DeleteTran objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayRouteTableId != nil { @@ -34286,9 +33785,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayRouteTableInput(v *Delet object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayRouteTableId != nil { @@ -34303,9 +33802,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayVpcAttachmentInput(v *De object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -34320,9 +33819,9 @@ func awsEc2query_serializeOpDocumentDeleteVolumeInput(v *DeleteVolumeInput, valu object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VolumeId != nil { @@ -34344,9 +33843,9 @@ func awsEc2query_serializeOpDocumentDeleteVpcEndpointConnectionNotificationsInpu } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -34356,9 +33855,9 @@ func awsEc2query_serializeOpDocumentDeleteVpcEndpointServiceConfigurationsInput( object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ServiceIds != nil { @@ -34375,9 +33874,9 @@ func awsEc2query_serializeOpDocumentDeleteVpcEndpointsInput(v *DeleteVpcEndpoint object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpcEndpointIds != nil { @@ -34394,9 +33893,9 @@ func awsEc2query_serializeOpDocumentDeleteVpcInput(v *DeleteVpcInput, value quer object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpcId != nil { @@ -34411,9 +33910,9 @@ func awsEc2query_serializeOpDocumentDeleteVpcPeeringConnectionInput(v *DeleteVpc object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpcPeeringConnectionId != nil { @@ -34428,9 +33927,9 @@ func awsEc2query_serializeOpDocumentDeleteVpnConnectionInput(v *DeleteVpnConnect object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpnConnectionId != nil { @@ -34462,9 +33961,9 @@ func awsEc2query_serializeOpDocumentDeleteVpnGatewayInput(v *DeleteVpnGatewayInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpnGatewayId != nil { @@ -34484,9 +33983,9 @@ func awsEc2query_serializeOpDocumentDeprovisionByoipCidrInput(v *DeprovisionByoi objectKey.String(*v.Cidr) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -34496,9 +33995,9 @@ func awsEc2query_serializeOpDocumentDeregisterImageInput(v *DeregisterImageInput object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ImageId != nil { @@ -34513,9 +34012,9 @@ func awsEc2query_serializeOpDocumentDeregisterInstanceEventNotificationAttribute object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceTagAttribute != nil { @@ -34532,9 +34031,9 @@ func awsEc2query_serializeOpDocumentDeregisterTransitGatewayMulticastGroupMember object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GroupIpAddress != nil { @@ -34561,9 +34060,9 @@ func awsEc2query_serializeOpDocumentDeregisterTransitGatewayMulticastGroupSource object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GroupIpAddress != nil { @@ -34597,9 +34096,9 @@ func awsEc2query_serializeOpDocumentDescribeAccountAttributesInput(v *DescribeAc } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -34616,9 +34115,9 @@ func awsEc2query_serializeOpDocumentDescribeAddressesInput(v *DescribeAddressesI } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -34642,9 +34141,9 @@ func awsEc2query_serializeOpDocumentDescribeAggregateIdFormatInput(v *DescribeAg object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -34654,14 +34153,14 @@ func awsEc2query_serializeOpDocumentDescribeAvailabilityZonesInput(v *DescribeAv object := value.Object() _ = object - if v.AllAvailabilityZones != nil { + if v.AllAvailabilityZones { objectKey := object.Key("AllAvailabilityZones") - objectKey.Boolean(*v.AllAvailabilityZones) + objectKey.Boolean(v.AllAvailabilityZones) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -34699,9 +34198,9 @@ func awsEc2query_serializeOpDocumentDescribeBundleTasksInput(v *DescribeBundleTa } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -34718,14 +34217,14 @@ func awsEc2query_serializeOpDocumentDescribeByoipCidrsInput(v *DescribeByoipCidr object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -34747,9 +34246,9 @@ func awsEc2query_serializeOpDocumentDescribeCapacityReservationsInput(v *Describ } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -34759,9 +34258,9 @@ func awsEc2query_serializeOpDocumentDescribeCapacityReservationsInput(v *Describ } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -34783,9 +34282,9 @@ func awsEc2query_serializeOpDocumentDescribeCarrierGatewaysInput(v *DescribeCarr } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -34795,9 +34294,9 @@ func awsEc2query_serializeOpDocumentDescribeCarrierGatewaysInput(v *DescribeCarr } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -34812,9 +34311,9 @@ func awsEc2query_serializeOpDocumentDescribeClassicLinkInstancesInput(v *Describ object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -34831,9 +34330,9 @@ func awsEc2query_serializeOpDocumentDescribeClassicLinkInstancesInput(v *Describ } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -34853,9 +34352,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnAuthorizationRulesInput(v * objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -34865,9 +34364,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnAuthorizationRulesInput(v * } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -34887,9 +34386,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnConnectionsInput(v *Describ objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -34899,9 +34398,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnConnectionsInput(v *Describ } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -34923,9 +34422,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnEndpointsInput(v *DescribeC } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -34935,9 +34434,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnEndpointsInput(v *DescribeC } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -34957,9 +34456,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnRoutesInput(v *DescribeClie objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -34969,9 +34468,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnRoutesInput(v *DescribeClie } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -34998,9 +34497,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnTargetNetworksInput(v *Desc objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35010,9 +34509,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnTargetNetworksInput(v *Desc } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35027,9 +34526,9 @@ func awsEc2query_serializeOpDocumentDescribeCoipPoolsInput(v *DescribeCoipPoolsI object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35039,9 +34538,9 @@ func awsEc2query_serializeOpDocumentDescribeCoipPoolsInput(v *DescribeCoipPoolsI } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35070,9 +34569,9 @@ func awsEc2query_serializeOpDocumentDescribeConversionTasksInput(v *DescribeConv } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -35089,9 +34588,9 @@ func awsEc2query_serializeOpDocumentDescribeCustomerGatewaysInput(v *DescribeCus } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35115,9 +34614,9 @@ func awsEc2query_serializeOpDocumentDescribeDhcpOptionsInput(v *DescribeDhcpOpti } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35127,9 +34626,9 @@ func awsEc2query_serializeOpDocumentDescribeDhcpOptionsInput(v *DescribeDhcpOpti } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35144,9 +34643,9 @@ func awsEc2query_serializeOpDocumentDescribeEgressOnlyInternetGatewaysInput(v *D object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.EgressOnlyInternetGatewayIds != nil { @@ -35163,9 +34662,9 @@ func awsEc2query_serializeOpDocumentDescribeEgressOnlyInternetGatewaysInput(v *D } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35180,9 +34679,9 @@ func awsEc2query_serializeOpDocumentDescribeElasticGpusInput(v *DescribeElasticG object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ElasticGpuIds != nil { @@ -35199,9 +34698,9 @@ func awsEc2query_serializeOpDocumentDescribeElasticGpusInput(v *DescribeElasticG } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35216,9 +34715,9 @@ func awsEc2query_serializeOpDocumentDescribeExportImageTasksInput(v *DescribeExp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ExportImageTaskIds != nil { @@ -35235,9 +34734,9 @@ func awsEc2query_serializeOpDocumentDescribeExportImageTasksInput(v *DescribeExp } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35273,9 +34772,9 @@ func awsEc2query_serializeOpDocumentDescribeFastSnapshotRestoresInput(v *Describ object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35302,9 +34801,9 @@ func awsEc2query_serializeOpDocumentDescribeFleetHistoryInput(v *DescribeFleetHi object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if len(v.EventType) > 0 { @@ -35317,9 +34816,9 @@ func awsEc2query_serializeOpDocumentDescribeFleetHistoryInput(v *DescribeFleetHi objectKey.String(*v.FleetId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35339,9 +34838,9 @@ func awsEc2query_serializeOpDocumentDescribeFleetInstancesInput(v *DescribeFleet object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35356,9 +34855,9 @@ func awsEc2query_serializeOpDocumentDescribeFleetInstancesInput(v *DescribeFleet objectKey.String(*v.FleetId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35373,9 +34872,9 @@ func awsEc2query_serializeOpDocumentDescribeFleetsInput(v *DescribeFleetsInput, object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35392,9 +34891,9 @@ func awsEc2query_serializeOpDocumentDescribeFleetsInput(v *DescribeFleetsInput, } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35409,9 +34908,9 @@ func awsEc2query_serializeOpDocumentDescribeFlowLogsInput(v *DescribeFlowLogsInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filter != nil { @@ -35428,9 +34927,9 @@ func awsEc2query_serializeOpDocumentDescribeFlowLogsInput(v *DescribeFlowLogsInp } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35450,9 +34949,9 @@ func awsEc2query_serializeOpDocumentDescribeFpgaImageAttributeInput(v *DescribeF objectKey.String(string(v.Attribute)) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.FpgaImageId != nil { @@ -35467,9 +34966,9 @@ func awsEc2query_serializeOpDocumentDescribeFpgaImagesInput(v *DescribeFpgaImage object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35486,9 +34985,9 @@ func awsEc2query_serializeOpDocumentDescribeFpgaImagesInput(v *DescribeFpgaImage } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35517,19 +35016,19 @@ func awsEc2query_serializeOpDocumentDescribeHostReservationOfferingsInput(v *Des } } - if v.MaxDuration != nil { + if v.MaxDuration != 0 { objectKey := object.Key("MaxDuration") - objectKey.Integer(*v.MaxDuration) + objectKey.Integer(v.MaxDuration) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } - if v.MinDuration != nil { + if v.MinDuration != 0 { objectKey := object.Key("MinDuration") - objectKey.Integer(*v.MinDuration) + objectKey.Integer(v.MinDuration) } if v.NextToken != nil { @@ -35563,9 +35062,9 @@ func awsEc2query_serializeOpDocumentDescribeHostReservationsInput(v *DescribeHos } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35594,9 +35093,9 @@ func awsEc2query_serializeOpDocumentDescribeHostsInput(v *DescribeHostsInput, va } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35625,9 +35124,9 @@ func awsEc2query_serializeOpDocumentDescribeIamInstanceProfileAssociationsInput( } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35676,9 +35175,9 @@ func awsEc2query_serializeOpDocumentDescribeImageAttributeInput(v *DescribeImage objectKey.String(string(v.Attribute)) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ImageId != nil { @@ -35693,9 +35192,9 @@ func awsEc2query_serializeOpDocumentDescribeImagesInput(v *DescribeImagesInput, object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ExecutableUsers != nil { @@ -35733,9 +35232,9 @@ func awsEc2query_serializeOpDocumentDescribeImportImageTasksInput(v *DescribeImp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35752,9 +35251,9 @@ func awsEc2query_serializeOpDocumentDescribeImportImageTasksInput(v *DescribeImp } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35769,9 +35268,9 @@ func awsEc2query_serializeOpDocumentDescribeImportSnapshotTasksInput(v *Describe object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35788,9 +35287,9 @@ func awsEc2query_serializeOpDocumentDescribeImportSnapshotTasksInput(v *Describe } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35810,9 +35309,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceAttributeInput(v *DescribeIn objectKey.String(string(v.Attribute)) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -35827,9 +35326,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceCreditSpecificationsInput(v object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35846,9 +35345,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceCreditSpecificationsInput(v } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35863,9 +35362,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceEventNotificationAttributesI object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -35875,9 +35374,9 @@ func awsEc2query_serializeOpDocumentDescribeInstancesInput(v *DescribeInstancesI object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35894,9 +35393,9 @@ func awsEc2query_serializeOpDocumentDescribeInstancesInput(v *DescribeInstancesI } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35911,9 +35410,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceStatusInput(v *DescribeInsta object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35923,9 +35422,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceStatusInput(v *DescribeInsta } } - if v.IncludeAllInstances != nil { + if v.IncludeAllInstances { objectKey := object.Key("IncludeAllInstances") - objectKey.Boolean(*v.IncludeAllInstances) + objectKey.Boolean(v.IncludeAllInstances) } if v.InstanceIds != nil { @@ -35935,9 +35434,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceStatusInput(v *DescribeInsta } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -35952,9 +35451,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceTypeOfferingsInput(v *Descri object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -35986,9 +35485,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceTypesInput(v *DescribeInstan object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36022,9 +35521,9 @@ func awsEc2query_serializeOpDocumentDescribeInternetGatewaysInput(v *DescribeInt object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36041,9 +35540,9 @@ func awsEc2query_serializeOpDocumentDescribeInternetGatewaysInput(v *DescribeInt } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36058,9 +35557,9 @@ func awsEc2query_serializeOpDocumentDescribeIpv6PoolsInput(v *DescribeIpv6PoolsI object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36070,9 +35569,9 @@ func awsEc2query_serializeOpDocumentDescribeIpv6PoolsInput(v *DescribeIpv6PoolsI } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36094,9 +35593,9 @@ func awsEc2query_serializeOpDocumentDescribeKeyPairsInput(v *DescribeKeyPairsInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36127,9 +35626,9 @@ func awsEc2query_serializeOpDocumentDescribeLaunchTemplatesInput(v *DescribeLaun object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36153,9 +35652,9 @@ func awsEc2query_serializeOpDocumentDescribeLaunchTemplatesInput(v *DescribeLaun } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36170,9 +35669,9 @@ func awsEc2query_serializeOpDocumentDescribeLaunchTemplateVersionsInput(v *Descr object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36192,9 +35691,9 @@ func awsEc2query_serializeOpDocumentDescribeLaunchTemplateVersionsInput(v *Descr objectKey.String(*v.LaunchTemplateName) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.MaxVersion != nil { @@ -36226,9 +35725,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTablesInput(v *Desc object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36245,9 +35744,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTablesInput(v *Desc } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36262,9 +35761,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTableVirtualInterfa object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36281,9 +35780,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTableVirtualInterfa } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36298,9 +35797,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTableVpcAssociation object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36317,9 +35816,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTableVpcAssociation } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36334,9 +35833,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewaysInput(v *DescribeLocalG object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36353,9 +35852,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewaysInput(v *DescribeLocalG } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36370,9 +35869,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayVirtualInterfaceGroupsIn object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36389,9 +35888,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayVirtualInterfaceGroupsIn } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36406,9 +35905,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayVirtualInterfacesInput(v object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36425,9 +35924,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayVirtualInterfacesInput(v } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36442,9 +35941,9 @@ func awsEc2query_serializeOpDocumentDescribeManagedPrefixListsInput(v *DescribeM object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36454,9 +35953,9 @@ func awsEc2query_serializeOpDocumentDescribeManagedPrefixListsInput(v *DescribeM } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36478,9 +35977,9 @@ func awsEc2query_serializeOpDocumentDescribeMovingAddressesInput(v *DescribeMovi object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36490,9 +35989,9 @@ func awsEc2query_serializeOpDocumentDescribeMovingAddressesInput(v *DescribeMovi } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36514,9 +36013,9 @@ func awsEc2query_serializeOpDocumentDescribeNatGatewaysInput(v *DescribeNatGatew object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filter != nil { @@ -36526,9 +36025,9 @@ func awsEc2query_serializeOpDocumentDescribeNatGatewaysInput(v *DescribeNatGatew } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NatGatewayIds != nil { @@ -36550,9 +36049,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkAclsInput(v *DescribeNetworkA object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36562,9 +36061,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkAclsInput(v *DescribeNetworkA } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NetworkAclIds != nil { @@ -36591,9 +36090,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkInterfaceAttributeInput(v *De objectKey.String(string(v.Attribute)) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.NetworkInterfaceId != nil { @@ -36615,9 +36114,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkInterfacePermissionsInput(v * } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NetworkInterfacePermissionIds != nil { @@ -36639,9 +36138,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkInterfacesInput(v *DescribeNe object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36651,9 +36150,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkInterfacesInput(v *DescribeNe } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NetworkInterfaceIds != nil { @@ -36675,9 +36174,9 @@ func awsEc2query_serializeOpDocumentDescribePlacementGroupsInput(v *DescribePlac object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36708,9 +36207,9 @@ func awsEc2query_serializeOpDocumentDescribePrefixListsInput(v *DescribePrefixLi object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36720,9 +36219,9 @@ func awsEc2query_serializeOpDocumentDescribePrefixListsInput(v *DescribePrefixLi } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36744,14 +36243,14 @@ func awsEc2query_serializeOpDocumentDescribePrincipalIdFormatInput(v *DescribePr object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36780,9 +36279,9 @@ func awsEc2query_serializeOpDocumentDescribePublicIpv4PoolsInput(v *DescribePubl } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -36804,14 +36303,14 @@ func awsEc2query_serializeOpDocumentDescribeRegionsInput(v *DescribeRegionsInput object := value.Object() _ = object - if v.AllRegions != nil { + if v.AllRegions { objectKey := object.Key("AllRegions") - objectKey.Boolean(*v.AllRegions) + objectKey.Boolean(v.AllRegions) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36835,9 +36334,9 @@ func awsEc2query_serializeOpDocumentDescribeReservedInstancesInput(v *DescribeRe object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36926,9 +36425,9 @@ func awsEc2query_serializeOpDocumentDescribeReservedInstancesOfferingsInput(v *D objectKey.String(*v.AvailabilityZone) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -36938,9 +36437,9 @@ func awsEc2query_serializeOpDocumentDescribeReservedInstancesOfferingsInput(v *D } } - if v.IncludeMarketplace != nil { + if v.IncludeMarketplace { objectKey := object.Key("IncludeMarketplace") - objectKey.Boolean(*v.IncludeMarketplace) + objectKey.Boolean(v.IncludeMarketplace) } if len(v.InstanceTenancy) > 0 { @@ -36953,24 +36452,24 @@ func awsEc2query_serializeOpDocumentDescribeReservedInstancesOfferingsInput(v *D objectKey.String(string(v.InstanceType)) } - if v.MaxDuration != nil { + if v.MaxDuration != 0 { objectKey := object.Key("MaxDuration") - objectKey.Long(*v.MaxDuration) + objectKey.Long(v.MaxDuration) } - if v.MaxInstanceCount != nil { + if v.MaxInstanceCount != 0 { objectKey := object.Key("MaxInstanceCount") - objectKey.Integer(*v.MaxInstanceCount) + objectKey.Integer(v.MaxInstanceCount) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } - if v.MinDuration != nil { + if v.MinDuration != 0 { objectKey := object.Key("MinDuration") - objectKey.Long(*v.MinDuration) + objectKey.Long(v.MinDuration) } if v.NextToken != nil { @@ -37007,9 +36506,9 @@ func awsEc2query_serializeOpDocumentDescribeRouteTablesInput(v *DescribeRouteTab object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37019,9 +36518,9 @@ func awsEc2query_serializeOpDocumentDescribeRouteTablesInput(v *DescribeRouteTab } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37043,9 +36542,9 @@ func awsEc2query_serializeOpDocumentDescribeScheduledInstanceAvailabilityInput(v object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37062,19 +36561,19 @@ func awsEc2query_serializeOpDocumentDescribeScheduledInstanceAvailabilityInput(v } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } - if v.MaxSlotDurationInHours != nil { + if v.MaxSlotDurationInHours != 0 { objectKey := object.Key("MaxSlotDurationInHours") - objectKey.Integer(*v.MaxSlotDurationInHours) + objectKey.Integer(v.MaxSlotDurationInHours) } - if v.MinSlotDurationInHours != nil { + if v.MinSlotDurationInHours != 0 { objectKey := object.Key("MinSlotDurationInHours") - objectKey.Integer(*v.MinSlotDurationInHours) + objectKey.Integer(v.MinSlotDurationInHours) } if v.NextToken != nil { @@ -37096,9 +36595,9 @@ func awsEc2query_serializeOpDocumentDescribeScheduledInstancesInput(v *DescribeS object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37108,9 +36607,9 @@ func awsEc2query_serializeOpDocumentDescribeScheduledInstancesInput(v *DescribeS } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37139,9 +36638,9 @@ func awsEc2query_serializeOpDocumentDescribeSecurityGroupReferencesInput(v *Desc object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GroupId != nil { @@ -37158,9 +36657,9 @@ func awsEc2query_serializeOpDocumentDescribeSecurityGroupsInput(v *DescribeSecur object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37184,9 +36683,9 @@ func awsEc2query_serializeOpDocumentDescribeSecurityGroupsInput(v *DescribeSecur } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37206,9 +36705,9 @@ func awsEc2query_serializeOpDocumentDescribeSnapshotAttributeInput(v *DescribeSn objectKey.String(string(v.Attribute)) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SnapshotId != nil { @@ -37223,9 +36722,9 @@ func awsEc2query_serializeOpDocumentDescribeSnapshotsInput(v *DescribeSnapshotsI object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37235,9 +36734,9 @@ func awsEc2query_serializeOpDocumentDescribeSnapshotsInput(v *DescribeSnapshotsI } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37273,9 +36772,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotDatafeedSubscriptionInput(v *Des object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -37285,14 +36784,14 @@ func awsEc2query_serializeOpDocumentDescribeSpotFleetInstancesInput(v *DescribeS object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37312,9 +36811,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotFleetRequestHistoryInput(v *Desc object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if len(v.EventType) > 0 { @@ -37322,9 +36821,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotFleetRequestHistoryInput(v *Desc objectKey.String(string(v.EventType)) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37349,14 +36848,14 @@ func awsEc2query_serializeOpDocumentDescribeSpotFleetRequestsInput(v *DescribeSp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37378,9 +36877,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotInstanceRequestsInput(v *Describ object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37390,9 +36889,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotInstanceRequestsInput(v *Describ } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37419,9 +36918,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotPriceHistoryInput(v *DescribeSpo objectKey.String(*v.AvailabilityZone) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.EndTime != nil { @@ -37443,9 +36942,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotPriceHistoryInput(v *DescribeSpo } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37472,14 +36971,14 @@ func awsEc2query_serializeOpDocumentDescribeStaleSecurityGroupsInput(v *Describe object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37499,9 +36998,9 @@ func awsEc2query_serializeOpDocumentDescribeSubnetsInput(v *DescribeSubnetsInput object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37511,9 +37010,9 @@ func awsEc2query_serializeOpDocumentDescribeSubnetsInput(v *DescribeSubnetsInput } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37535,9 +37034,9 @@ func awsEc2query_serializeOpDocumentDescribeTagsInput(v *DescribeTagsInput, valu object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37547,9 +37046,9 @@ func awsEc2query_serializeOpDocumentDescribeTagsInput(v *DescribeTagsInput, valu } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37564,9 +37063,9 @@ func awsEc2query_serializeOpDocumentDescribeTrafficMirrorFiltersInput(v *Describ object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37576,9 +37075,9 @@ func awsEc2query_serializeOpDocumentDescribeTrafficMirrorFiltersInput(v *Describ } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37600,9 +37099,9 @@ func awsEc2query_serializeOpDocumentDescribeTrafficMirrorSessionsInput(v *Descri object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37612,9 +37111,9 @@ func awsEc2query_serializeOpDocumentDescribeTrafficMirrorSessionsInput(v *Descri } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37636,9 +37135,9 @@ func awsEc2query_serializeOpDocumentDescribeTrafficMirrorTargetsInput(v *Describ object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37648,9 +37147,9 @@ func awsEc2query_serializeOpDocumentDescribeTrafficMirrorTargetsInput(v *Describ } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37672,9 +37171,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayAttachmentsInput(v *De object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37684,9 +37183,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayAttachmentsInput(v *De } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37708,9 +37207,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayMulticastDomainsInput( object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37720,9 +37219,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayMulticastDomainsInput( } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37744,9 +37243,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayPeeringAttachmentsInpu object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37756,9 +37255,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayPeeringAttachmentsInpu } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37780,9 +37279,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayRouteTablesInput(v *De object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37792,9 +37291,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayRouteTablesInput(v *De } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37816,9 +37315,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewaysInput(v *DescribeTran object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37828,9 +37327,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewaysInput(v *DescribeTran } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37852,9 +37351,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayVpcAttachmentsInput(v object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37864,9 +37363,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayVpcAttachmentsInput(v } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37893,9 +37392,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumeAttributeInput(v *DescribeVolu objectKey.String(string(v.Attribute)) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VolumeId != nil { @@ -37910,9 +37409,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumesInput(v *DescribeVolumesInput object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37922,9 +37421,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumesInput(v *DescribeVolumesInput } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37946,9 +37445,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumesModificationsInput(v *Describ object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37958,9 +37457,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumesModificationsInput(v *Describ } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -37982,9 +37481,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumeStatusInput(v *DescribeVolumeS object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -37994,9 +37493,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumeStatusInput(v *DescribeVolumeS } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -38023,9 +37522,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcAttributeInput(v *DescribeVpcAttr objectKey.String(string(v.Attribute)) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpcId != nil { @@ -38040,9 +37539,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcClassicLinkDnsSupportInput(v *Des object := value.Object() _ = object - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -38064,9 +37563,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcClassicLinkInput(v *DescribeVpcCl object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -38095,9 +37594,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionNotificationsIn objectKey.String(*v.ConnectionNotificationId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -38107,9 +37606,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionNotificationsIn } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -38124,9 +37623,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionsInput(v *Descr object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -38136,9 +37635,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionsInput(v *Descr } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -38153,9 +37652,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointServiceConfigurationsInpu object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -38165,9 +37664,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointServiceConfigurationsInpu } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -38189,9 +37688,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointServicePermissionsInput(v object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -38201,9 +37700,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointServicePermissionsInput(v } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -38223,9 +37722,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointServicesInput(v *Describe object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -38235,9 +37734,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointServicesInput(v *Describe } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -38259,9 +37758,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointsInput(v *DescribeVpcEndp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -38271,9 +37770,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointsInput(v *DescribeVpcEndp } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -38295,9 +37794,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcPeeringConnectionsInput(v *Descri object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -38307,9 +37806,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcPeeringConnectionsInput(v *Descri } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -38331,9 +37830,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcsInput(v *DescribeVpcsInput, valu object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -38343,9 +37842,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcsInput(v *DescribeVpcsInput, valu } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -38367,9 +37866,9 @@ func awsEc2query_serializeOpDocumentDescribeVpnConnectionsInput(v *DescribeVpnCo object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -38393,9 +37892,9 @@ func awsEc2query_serializeOpDocumentDescribeVpnGatewaysInput(v *DescribeVpnGatew object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -38419,9 +37918,9 @@ func awsEc2query_serializeOpDocumentDetachClassicLinkVpcInput(v *DetachClassicLi object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -38441,9 +37940,9 @@ func awsEc2query_serializeOpDocumentDetachInternetGatewayInput(v *DetachInternet object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InternetGatewayId != nil { @@ -38468,14 +37967,14 @@ func awsEc2query_serializeOpDocumentDetachNetworkInterfaceInput(v *DetachNetwork objectKey.String(*v.AttachmentId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Force != nil { + if v.Force { objectKey := object.Key("Force") - objectKey.Boolean(*v.Force) + objectKey.Boolean(v.Force) } return nil @@ -38490,14 +37989,14 @@ func awsEc2query_serializeOpDocumentDetachVolumeInput(v *DetachVolumeInput, valu objectKey.String(*v.Device) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Force != nil { + if v.Force { objectKey := object.Key("Force") - objectKey.Boolean(*v.Force) + objectKey.Boolean(v.Force) } if v.InstanceId != nil { @@ -38517,9 +38016,9 @@ func awsEc2query_serializeOpDocumentDetachVpnGatewayInput(v *DetachVpnGatewayInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpcId != nil { @@ -38539,9 +38038,9 @@ func awsEc2query_serializeOpDocumentDisableEbsEncryptionByDefaultInput(v *Disabl object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -38558,9 +38057,9 @@ func awsEc2query_serializeOpDocumentDisableFastSnapshotRestoresInput(v *DisableF } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SourceSnapshotIds != nil { @@ -38577,9 +38076,9 @@ func awsEc2query_serializeOpDocumentDisableTransitGatewayRouteTablePropagationIn object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -38599,9 +38098,9 @@ func awsEc2query_serializeOpDocumentDisableVgwRoutePropagationInput(v *DisableVg object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GatewayId != nil { @@ -38633,9 +38132,9 @@ func awsEc2query_serializeOpDocumentDisableVpcClassicLinkInput(v *DisableVpcClas object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpcId != nil { @@ -38655,9 +38154,9 @@ func awsEc2query_serializeOpDocumentDisassociateAddressInput(v *DisassociateAddr objectKey.String(*v.AssociationId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PublicIp != nil { @@ -38682,9 +38181,9 @@ func awsEc2query_serializeOpDocumentDisassociateClientVpnTargetNetworkInput(v *D objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -38699,9 +38198,9 @@ func awsEc2query_serializeOpDocumentDisassociateEnclaveCertificateIamRoleInput(v objectKey.String(*v.CertificateArn) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.RoleArn != nil { @@ -38733,9 +38232,9 @@ func awsEc2query_serializeOpDocumentDisassociateRouteTableInput(v *DisassociateR objectKey.String(*v.AssociationId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -38757,9 +38256,9 @@ func awsEc2query_serializeOpDocumentDisassociateTransitGatewayMulticastDomainInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SubnetIds != nil { @@ -38786,9 +38285,9 @@ func awsEc2query_serializeOpDocumentDisassociateTransitGatewayRouteTableInput(v object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -38820,9 +38319,9 @@ func awsEc2query_serializeOpDocumentEnableEbsEncryptionByDefaultInput(v *EnableE object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -38839,9 +38338,9 @@ func awsEc2query_serializeOpDocumentEnableFastSnapshotRestoresInput(v *EnableFas } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SourceSnapshotIds != nil { @@ -38858,9 +38357,9 @@ func awsEc2query_serializeOpDocumentEnableTransitGatewayRouteTablePropagationInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -38880,9 +38379,9 @@ func awsEc2query_serializeOpDocumentEnableVgwRoutePropagationInput(v *EnableVgwR object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GatewayId != nil { @@ -38902,9 +38401,9 @@ func awsEc2query_serializeOpDocumentEnableVolumeIOInput(v *EnableVolumeIOInput, object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VolumeId != nil { @@ -38931,9 +38430,9 @@ func awsEc2query_serializeOpDocumentEnableVpcClassicLinkInput(v *EnableVpcClassi object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpcId != nil { @@ -38953,9 +38452,9 @@ func awsEc2query_serializeOpDocumentExportClientVpnClientCertificateRevocationLi objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -38970,9 +38469,9 @@ func awsEc2query_serializeOpDocumentExportClientVpnClientConfigurationInput(v *E objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -38997,9 +38496,9 @@ func awsEc2query_serializeOpDocumentExportImageInput(v *ExportImageInput, value objectKey.String(string(v.DiskImageFormat)) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ImageId != nil { @@ -39033,9 +38532,9 @@ func awsEc2query_serializeOpDocumentExportTransitGatewayRoutesInput(v *ExportTra object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -39067,9 +38566,9 @@ func awsEc2query_serializeOpDocumentGetAssociatedEnclaveCertificateIamRolesInput objectKey.String(*v.CertificateArn) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -39079,14 +38578,14 @@ func awsEc2query_serializeOpDocumentGetAssociatedIpv6PoolCidrsInput(v *GetAssoci object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -39111,14 +38610,14 @@ func awsEc2query_serializeOpDocumentGetCapacityReservationUsageInput(v *GetCapac objectKey.String(*v.CapacityReservationId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -39133,9 +38632,9 @@ func awsEc2query_serializeOpDocumentGetCoipPoolUsageInput(v *GetCoipPoolUsageInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -39145,9 +38644,9 @@ func awsEc2query_serializeOpDocumentGetCoipPoolUsageInput(v *GetCoipPoolUsageInp } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -39167,9 +38666,9 @@ func awsEc2query_serializeOpDocumentGetConsoleOutputInput(v *GetConsoleOutputInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -39177,9 +38676,9 @@ func awsEc2query_serializeOpDocumentGetConsoleOutputInput(v *GetConsoleOutputInp objectKey.String(*v.InstanceId) } - if v.Latest != nil { + if v.Latest { objectKey := object.Key("Latest") - objectKey.Boolean(*v.Latest) + objectKey.Boolean(v.Latest) } return nil @@ -39189,9 +38688,9 @@ func awsEc2query_serializeOpDocumentGetConsoleScreenshotInput(v *GetConsoleScree object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -39199,9 +38698,9 @@ func awsEc2query_serializeOpDocumentGetConsoleScreenshotInput(v *GetConsoleScree objectKey.String(*v.InstanceId) } - if v.WakeUp != nil { + if v.WakeUp { objectKey := object.Key("WakeUp") - objectKey.Boolean(*v.WakeUp) + objectKey.Boolean(v.WakeUp) } return nil @@ -39211,9 +38710,9 @@ func awsEc2query_serializeOpDocumentGetDefaultCreditSpecificationInput(v *GetDef object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if len(v.InstanceFamily) > 0 { @@ -39228,9 +38727,9 @@ func awsEc2query_serializeOpDocumentGetEbsDefaultKmsKeyIdInput(v *GetEbsDefaultK object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -39240,9 +38739,9 @@ func awsEc2query_serializeOpDocumentGetEbsEncryptionByDefaultInput(v *GetEbsEncr object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -39257,14 +38756,14 @@ func awsEc2query_serializeOpDocumentGetGroupsForCapacityReservationInput(v *GetG objectKey.String(*v.CapacityReservationId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -39298,9 +38797,9 @@ func awsEc2query_serializeOpDocumentGetLaunchTemplateDataInput(v *GetLaunchTempl object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -39315,14 +38814,14 @@ func awsEc2query_serializeOpDocumentGetManagedPrefixListAssociationsInput(v *Get object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -39342,14 +38841,14 @@ func awsEc2query_serializeOpDocumentGetManagedPrefixListEntriesInput(v *GetManag object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -39362,9 +38861,9 @@ func awsEc2query_serializeOpDocumentGetManagedPrefixListEntriesInput(v *GetManag objectKey.String(*v.PrefixListId) } - if v.TargetVersion != nil { + if v.TargetVersion != 0 { objectKey := object.Key("TargetVersion") - objectKey.Long(*v.TargetVersion) + objectKey.Long(v.TargetVersion) } return nil @@ -39374,9 +38873,9 @@ func awsEc2query_serializeOpDocumentGetPasswordDataInput(v *GetPasswordDataInput object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -39391,9 +38890,9 @@ func awsEc2query_serializeOpDocumentGetReservedInstancesExchangeQuoteInput(v *Ge object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ReservedInstanceIds != nil { @@ -39417,9 +38916,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayAttachmentPropagationsInput object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -39429,9 +38928,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayAttachmentPropagationsInput } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -39451,9 +38950,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayMulticastDomainAssociations object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -39463,9 +38962,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayMulticastDomainAssociations } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -39485,9 +38984,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayPrefixListReferencesInput(v object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -39497,9 +38996,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayPrefixListReferencesInput(v } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -39519,9 +39018,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayRouteTableAssociationsInput object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -39531,9 +39030,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayRouteTableAssociationsInput } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -39553,9 +39052,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayRouteTablePropagationsInput object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -39565,9 +39064,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayRouteTablePropagationsInput } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -39597,9 +39096,9 @@ func awsEc2query_serializeOpDocumentImportClientVpnClientCertificateRevocationLi objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -39638,14 +39137,14 @@ func awsEc2query_serializeOpDocumentImportImageInput(v *ImportImageInput, value } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Encrypted != nil { + if v.Encrypted { objectKey := object.Key("Encrypted") - objectKey.Boolean(*v.Encrypted) + objectKey.Boolean(v.Encrypted) } if v.Hypervisor != nil { @@ -39706,9 +39205,9 @@ func awsEc2query_serializeOpDocumentImportInstanceInput(v *ImportInstanceInput, } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.LaunchSpecification != nil { @@ -39730,9 +39229,9 @@ func awsEc2query_serializeOpDocumentImportKeyPairInput(v *ImportKeyPairInput, va object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.KeyName != nil { @@ -39783,14 +39282,14 @@ func awsEc2query_serializeOpDocumentImportSnapshotInput(v *ImportSnapshotInput, } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Encrypted != nil { + if v.Encrypted { objectKey := object.Key("Encrypted") - objectKey.Boolean(*v.Encrypted) + objectKey.Boolean(v.Encrypted) } if v.KmsKeyId != nil { @@ -39827,9 +39326,9 @@ func awsEc2query_serializeOpDocumentImportVolumeInput(v *ImportVolumeInput, valu objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Image != nil { @@ -39853,9 +39352,9 @@ func awsEc2query_serializeOpDocumentModifyAvailabilityZoneGroupInput(v *ModifyAv object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GroupName != nil { @@ -39880,9 +39379,9 @@ func awsEc2query_serializeOpDocumentModifyCapacityReservationInput(v *ModifyCapa objectKey.String(*v.CapacityReservationId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.EndDate != nil { @@ -39895,9 +39394,9 @@ func awsEc2query_serializeOpDocumentModifyCapacityReservationInput(v *ModifyCapa objectKey.String(string(v.EndDateType)) } - if v.InstanceCount != nil { + if v.InstanceCount != 0 { objectKey := object.Key("InstanceCount") - objectKey.Integer(*v.InstanceCount) + objectKey.Integer(v.InstanceCount) } return nil @@ -39931,9 +39430,9 @@ func awsEc2query_serializeOpDocumentModifyClientVpnEndpointInput(v *ModifyClient } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SecurityGroupIds != nil { @@ -39953,9 +39452,9 @@ func awsEc2query_serializeOpDocumentModifyClientVpnEndpointInput(v *ModifyClient objectKey.String(*v.ServerCertificateArn) } - if v.SplitTunnel != nil { + if v.SplitTunnel { objectKey := object.Key("SplitTunnel") - objectKey.Boolean(*v.SplitTunnel) + objectKey.Boolean(v.SplitTunnel) } if v.VpcId != nil { @@ -39963,9 +39462,9 @@ func awsEc2query_serializeOpDocumentModifyClientVpnEndpointInput(v *ModifyClient objectKey.String(*v.VpcId) } - if v.VpnPort != nil { + if v.VpnPort != 0 { objectKey := object.Key("VpnPort") - objectKey.Integer(*v.VpnPort) + objectKey.Integer(v.VpnPort) } return nil @@ -39980,9 +39479,9 @@ func awsEc2query_serializeOpDocumentModifyDefaultCreditSpecificationInput(v *Mod objectKey.String(*v.CpuCredits) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if len(v.InstanceFamily) > 0 { @@ -39997,9 +39496,9 @@ func awsEc2query_serializeOpDocumentModifyEbsDefaultKmsKeyIdInput(v *ModifyEbsDe object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.KmsKeyId != nil { @@ -40014,9 +39513,9 @@ func awsEc2query_serializeOpDocumentModifyFleetInput(v *ModifyFleetInput, value object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if len(v.ExcessCapacityTerminationPolicy) > 0 { @@ -40060,9 +39559,9 @@ func awsEc2query_serializeOpDocumentModifyFpgaImageAttributeInput(v *ModifyFpgaI objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.FpgaImageId != nil { @@ -40159,9 +39658,9 @@ func awsEc2query_serializeOpDocumentModifyIdentityIdFormatInput(v *ModifyIdentit objectKey.String(*v.Resource) } - if v.UseLongIds != nil { + if v.UseLongIds { objectKey := object.Key("UseLongIds") - objectKey.Boolean(*v.UseLongIds) + objectKey.Boolean(v.UseLongIds) } return nil @@ -40176,9 +39675,9 @@ func awsEc2query_serializeOpDocumentModifyIdFormatInput(v *ModifyIdFormatInput, objectKey.String(*v.Resource) } - if v.UseLongIds != nil { + if v.UseLongIds { objectKey := object.Key("UseLongIds") - objectKey.Boolean(*v.UseLongIds) + objectKey.Boolean(v.UseLongIds) } return nil @@ -40200,9 +39699,9 @@ func awsEc2query_serializeOpDocumentModifyImageAttributeInput(v *ModifyImageAttr } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ImageId != nil { @@ -40274,9 +39773,9 @@ func awsEc2query_serializeOpDocumentModifyInstanceAttributeInput(v *ModifyInstan } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.EbsOptimized != nil { @@ -40373,9 +39872,9 @@ func awsEc2query_serializeOpDocumentModifyInstanceCapacityReservationAttributesI } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -40395,9 +39894,9 @@ func awsEc2query_serializeOpDocumentModifyInstanceCreditSpecificationInput(v *Mo objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceCreditSpecifications != nil { @@ -40414,9 +39913,9 @@ func awsEc2query_serializeOpDocumentModifyInstanceEventStartTimeInput(v *ModifyI object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceEventId != nil { @@ -40441,9 +39940,9 @@ func awsEc2query_serializeOpDocumentModifyInstanceMetadataOptionsInput(v *Modify object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if len(v.HttpEndpoint) > 0 { @@ -40451,9 +39950,9 @@ func awsEc2query_serializeOpDocumentModifyInstanceMetadataOptionsInput(v *Modify objectKey.String(string(v.HttpEndpoint)) } - if v.HttpPutResponseHopLimit != nil { + if v.HttpPutResponseHopLimit != 0 { objectKey := object.Key("HttpPutResponseHopLimit") - objectKey.Integer(*v.HttpPutResponseHopLimit) + objectKey.Integer(v.HttpPutResponseHopLimit) } if len(v.HttpTokens) > 0 { @@ -40498,9 +39997,9 @@ func awsEc2query_serializeOpDocumentModifyInstancePlacementInput(v *ModifyInstan objectKey.String(*v.InstanceId) } - if v.PartitionNumber != nil { + if v.PartitionNumber != 0 { objectKey := object.Key("PartitionNumber") - objectKey.Integer(*v.PartitionNumber) + objectKey.Integer(v.PartitionNumber) } if len(v.Tenancy) > 0 { @@ -40525,9 +40024,9 @@ func awsEc2query_serializeOpDocumentModifyLaunchTemplateInput(v *ModifyLaunchTem objectKey.String(*v.DefaultVersion) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.LaunchTemplateId != nil { @@ -40554,14 +40053,14 @@ func awsEc2query_serializeOpDocumentModifyManagedPrefixListInput(v *ModifyManage } } - if v.CurrentVersion != nil { + if v.CurrentVersion != 0 { objectKey := object.Key("CurrentVersion") - objectKey.Long(*v.CurrentVersion) + objectKey.Long(v.CurrentVersion) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PrefixListId != nil { @@ -40602,9 +40101,9 @@ func awsEc2query_serializeOpDocumentModifyNetworkInterfaceAttributeInput(v *Modi } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Groups != nil { @@ -40671,9 +40170,9 @@ func awsEc2query_serializeOpDocumentModifySnapshotAttributeInput(v *ModifySnapsh } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GroupNames != nil { @@ -40719,9 +40218,9 @@ func awsEc2query_serializeOpDocumentModifySpotFleetRequestInput(v *ModifySpotFle } } - if v.OnDemandTargetCapacity != nil { + if v.OnDemandTargetCapacity != 0 { objectKey := object.Key("OnDemandTargetCapacity") - objectKey.Integer(*v.OnDemandTargetCapacity) + objectKey.Integer(v.OnDemandTargetCapacity) } if v.SpotFleetRequestId != nil { @@ -40729,9 +40228,9 @@ func awsEc2query_serializeOpDocumentModifySpotFleetRequestInput(v *ModifySpotFle objectKey.String(*v.SpotFleetRequestId) } - if v.TargetCapacity != nil { + if v.TargetCapacity != 0 { objectKey := object.Key("TargetCapacity") - objectKey.Integer(*v.TargetCapacity) + objectKey.Integer(v.TargetCapacity) } return nil @@ -40786,9 +40285,9 @@ func awsEc2query_serializeOpDocumentModifyTrafficMirrorFilterNetworkServicesInpu } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.RemoveNetworkServices != nil { @@ -40827,14 +40326,14 @@ func awsEc2query_serializeOpDocumentModifyTrafficMirrorFilterRuleInput(v *Modify } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Protocol != nil { + if v.Protocol != 0 { objectKey := object.Key("Protocol") - objectKey.Integer(*v.Protocol) + objectKey.Integer(v.Protocol) } if v.RemoveFields != nil { @@ -40849,9 +40348,9 @@ func awsEc2query_serializeOpDocumentModifyTrafficMirrorFilterRuleInput(v *Modify objectKey.String(string(v.RuleAction)) } - if v.RuleNumber != nil { + if v.RuleNumber != 0 { objectKey := object.Key("RuleNumber") - objectKey.Integer(*v.RuleNumber) + objectKey.Integer(v.RuleNumber) } if v.SourceCidrBlock != nil { @@ -40888,14 +40387,14 @@ func awsEc2query_serializeOpDocumentModifyTrafficMirrorSessionInput(v *ModifyTra objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.PacketLength != nil { + if v.PacketLength != 0 { objectKey := object.Key("PacketLength") - objectKey.Integer(*v.PacketLength) + objectKey.Integer(v.PacketLength) } if v.RemoveFields != nil { @@ -40905,9 +40404,9 @@ func awsEc2query_serializeOpDocumentModifyTrafficMirrorSessionInput(v *ModifyTra } } - if v.SessionNumber != nil { + if v.SessionNumber != 0 { objectKey := object.Key("SessionNumber") - objectKey.Integer(*v.SessionNumber) + objectKey.Integer(v.SessionNumber) } if v.TrafficMirrorFilterId != nil { @@ -40925,9 +40424,9 @@ func awsEc2query_serializeOpDocumentModifyTrafficMirrorSessionInput(v *ModifyTra objectKey.String(*v.TrafficMirrorTargetId) } - if v.VirtualNetworkId != nil { + if v.VirtualNetworkId != 0 { objectKey := object.Key("VirtualNetworkId") - objectKey.Integer(*v.VirtualNetworkId) + objectKey.Integer(v.VirtualNetworkId) } return nil @@ -40942,9 +40441,9 @@ func awsEc2query_serializeOpDocumentModifyTransitGatewayInput(v *ModifyTransitGa objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Options != nil { @@ -40966,14 +40465,14 @@ func awsEc2query_serializeOpDocumentModifyTransitGatewayPrefixListReferenceInput object := value.Object() _ = object - if v.Blackhole != nil { + if v.Blackhole { objectKey := object.Key("Blackhole") - objectKey.Boolean(*v.Blackhole) + objectKey.Boolean(v.Blackhole) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PrefixListId != nil { @@ -41005,9 +40504,9 @@ func awsEc2query_serializeOpDocumentModifyTransitGatewayVpcAttachmentInput(v *Mo } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Options != nil { @@ -41043,9 +40542,9 @@ func awsEc2query_serializeOpDocumentModifyVolumeAttributeInput(v *ModifyVolumeAt } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VolumeId != nil { @@ -41060,19 +40559,19 @@ func awsEc2query_serializeOpDocumentModifyVolumeInput(v *ModifyVolumeInput, valu object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Iops != nil { + if v.Iops != 0 { objectKey := object.Key("Iops") - objectKey.Integer(*v.Iops) + objectKey.Integer(v.Iops) } - if v.Size != nil { + if v.Size != 0 { objectKey := object.Key("Size") - objectKey.Integer(*v.Size) + objectKey.Integer(v.Size) } if v.VolumeId != nil { @@ -41135,9 +40634,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointConnectionNotificationInput objectKey.String(*v.ConnectionNotificationId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -41168,9 +40667,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointInput(v *ModifyVpcEndpointI } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PolicyDocument != nil { @@ -41178,9 +40677,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointInput(v *ModifyVpcEndpointI objectKey.String(*v.PolicyDocument) } - if v.PrivateDnsEnabled != nil { + if v.PrivateDnsEnabled { objectKey := object.Key("PrivateDnsEnabled") - objectKey.Boolean(*v.PrivateDnsEnabled) + objectKey.Boolean(v.PrivateDnsEnabled) } if v.RemoveRouteTableIds != nil { @@ -41204,9 +40703,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointInput(v *ModifyVpcEndpointI } } - if v.ResetPolicy != nil { + if v.ResetPolicy { objectKey := object.Key("ResetPolicy") - objectKey.Boolean(*v.ResetPolicy) + objectKey.Boolean(v.ResetPolicy) } if v.VpcEndpointId != nil { @@ -41221,9 +40720,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointServiceConfigurationInput(v object := value.Object() _ = object - if v.AcceptanceRequired != nil { + if v.AcceptanceRequired { objectKey := object.Key("AcceptanceRequired") - objectKey.Boolean(*v.AcceptanceRequired) + objectKey.Boolean(v.AcceptanceRequired) } if v.AddNetworkLoadBalancerArns != nil { @@ -41233,9 +40732,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointServiceConfigurationInput(v } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PrivateDnsName != nil { @@ -41250,9 +40749,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointServiceConfigurationInput(v } } - if v.RemovePrivateDnsName != nil { + if v.RemovePrivateDnsName { objectKey := object.Key("RemovePrivateDnsName") - objectKey.Boolean(*v.RemovePrivateDnsName) + objectKey.Boolean(v.RemovePrivateDnsName) } if v.ServiceId != nil { @@ -41274,9 +40773,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointServicePermissionsInput(v * } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.RemoveAllowedPrincipals != nil { @@ -41305,9 +40804,9 @@ func awsEc2query_serializeOpDocumentModifyVpcPeeringConnectionOptionsInput(v *Mo } } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.RequesterPeeringConnectionOptions != nil { @@ -41329,9 +40828,9 @@ func awsEc2query_serializeOpDocumentModifyVpcTenancyInput(v *ModifyVpcTenancyInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if len(v.InstanceTenancy) > 0 { @@ -41356,9 +40855,9 @@ func awsEc2query_serializeOpDocumentModifyVpnConnectionInput(v *ModifyVpnConnect objectKey.String(*v.CustomerGatewayId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayId != nil { @@ -41383,9 +40882,9 @@ func awsEc2query_serializeOpDocumentModifyVpnConnectionOptionsInput(v *ModifyVpn object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.LocalIpv4NetworkCidr != nil { @@ -41420,9 +40919,9 @@ func awsEc2query_serializeOpDocumentModifyVpnTunnelCertificateInput(v *ModifyVpn object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpnConnectionId != nil { @@ -41442,9 +40941,9 @@ func awsEc2query_serializeOpDocumentModifyVpnTunnelOptionsInput(v *ModifyVpnTunn object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TunnelOptions != nil { @@ -41471,9 +40970,9 @@ func awsEc2query_serializeOpDocumentMonitorInstancesInput(v *MonitorInstancesInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceIds != nil { @@ -41490,9 +40989,9 @@ func awsEc2query_serializeOpDocumentMoveAddressToVpcInput(v *MoveAddressToVpcInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PublicIp != nil { @@ -41524,9 +41023,9 @@ func awsEc2query_serializeOpDocumentProvisionByoipCidrInput(v *ProvisionByoipCid objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PoolTagSpecifications != nil { @@ -41536,9 +41035,9 @@ func awsEc2query_serializeOpDocumentProvisionByoipCidrInput(v *ProvisionByoipCid } } - if v.PubliclyAdvertisable != nil { + if v.PubliclyAdvertisable { objectKey := object.Key("PubliclyAdvertisable") - objectKey.Boolean(*v.PubliclyAdvertisable) + objectKey.Boolean(v.PubliclyAdvertisable) } return nil @@ -41589,14 +41088,14 @@ func awsEc2query_serializeOpDocumentPurchaseReservedInstancesOfferingInput(v *Pu object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.InstanceCount != nil { + if v.InstanceCount != 0 { objectKey := object.Key("InstanceCount") - objectKey.Integer(*v.InstanceCount) + objectKey.Integer(v.InstanceCount) } if v.LimitPrice != nil { @@ -41628,9 +41127,9 @@ func awsEc2query_serializeOpDocumentPurchaseScheduledInstancesInput(v *PurchaseS objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PurchaseRequests != nil { @@ -41647,9 +41146,9 @@ func awsEc2query_serializeOpDocumentRebootInstancesInput(v *RebootInstancesInput object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceIds != nil { @@ -41690,14 +41189,14 @@ func awsEc2query_serializeOpDocumentRegisterImageInput(v *RegisterImageInput, va objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.EnaSupport != nil { + if v.EnaSupport { objectKey := object.Key("EnaSupport") - objectKey.Boolean(*v.EnaSupport) + objectKey.Boolean(v.EnaSupport) } if v.ImageLocation != nil { @@ -41742,9 +41241,9 @@ func awsEc2query_serializeOpDocumentRegisterInstanceEventNotificationAttributesI object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceTagAttribute != nil { @@ -41761,9 +41260,9 @@ func awsEc2query_serializeOpDocumentRegisterTransitGatewayMulticastGroupMembersI object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GroupIpAddress != nil { @@ -41790,9 +41289,9 @@ func awsEc2query_serializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesI object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GroupIpAddress != nil { @@ -41819,9 +41318,9 @@ func awsEc2query_serializeOpDocumentRejectTransitGatewayPeeringAttachmentInput(v object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -41836,9 +41335,9 @@ func awsEc2query_serializeOpDocumentRejectTransitGatewayVpcAttachmentInput(v *Re object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -41853,9 +41352,9 @@ func awsEc2query_serializeOpDocumentRejectVpcEndpointConnectionsInput(v *RejectV object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ServiceId != nil { @@ -41877,9 +41376,9 @@ func awsEc2query_serializeOpDocumentRejectVpcPeeringConnectionInput(v *RejectVpc object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.VpcPeeringConnectionId != nil { @@ -41899,9 +41398,9 @@ func awsEc2query_serializeOpDocumentReleaseAddressInput(v *ReleaseAddressInput, objectKey.String(*v.AllocationId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.NetworkBorderGroup != nil { @@ -41959,9 +41458,9 @@ func awsEc2query_serializeOpDocumentReplaceNetworkAclAssociationInput(v *Replace objectKey.String(*v.AssociationId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.NetworkAclId != nil { @@ -41981,14 +41480,14 @@ func awsEc2query_serializeOpDocumentReplaceNetworkAclEntryInput(v *ReplaceNetwor objectKey.String(*v.CidrBlock) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Egress != nil { + if v.Egress { objectKey := object.Key("Egress") - objectKey.Boolean(*v.Egress) + objectKey.Boolean(v.Egress) } if v.IcmpTypeCode != nil { @@ -42025,9 +41524,9 @@ func awsEc2query_serializeOpDocumentReplaceNetworkAclEntryInput(v *ReplaceNetwor objectKey.String(string(v.RuleAction)) } - if v.RuleNumber != nil { + if v.RuleNumber != 0 { objectKey := object.Key("RuleNumber") - objectKey.Integer(*v.RuleNumber) + objectKey.Integer(v.RuleNumber) } return nil @@ -42057,9 +41556,9 @@ func awsEc2query_serializeOpDocumentReplaceRouteInput(v *ReplaceRouteInput, valu objectKey.String(*v.DestinationPrefixListId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.EgressOnlyInternetGatewayId != nil { @@ -42082,9 +41581,9 @@ func awsEc2query_serializeOpDocumentReplaceRouteInput(v *ReplaceRouteInput, valu objectKey.String(*v.LocalGatewayId) } - if v.LocalTarget != nil { + if v.LocalTarget { objectKey := object.Key("LocalTarget") - objectKey.Boolean(*v.LocalTarget) + objectKey.Boolean(v.LocalTarget) } if v.NatGatewayId != nil { @@ -42124,9 +41623,9 @@ func awsEc2query_serializeOpDocumentReplaceRouteTableAssociationInput(v *Replace objectKey.String(*v.AssociationId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.RouteTableId != nil { @@ -42141,9 +41640,9 @@ func awsEc2query_serializeOpDocumentReplaceTransitGatewayRouteInput(v *ReplaceTr object := value.Object() _ = object - if v.Blackhole != nil { + if v.Blackhole { objectKey := object.Key("Blackhole") - objectKey.Boolean(*v.Blackhole) + objectKey.Boolean(v.Blackhole) } if v.DestinationCidrBlock != nil { @@ -42151,9 +41650,9 @@ func awsEc2query_serializeOpDocumentReplaceTransitGatewayRouteInput(v *ReplaceTr objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -42178,9 +41677,9 @@ func awsEc2query_serializeOpDocumentReportInstanceStatusInput(v *ReportInstanceS objectKey.String(*v.Description) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.EndTime != nil { @@ -42219,9 +41718,9 @@ func awsEc2query_serializeOpDocumentRequestSpotFleetInput(v *RequestSpotFleetInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SpotFleetRequestConfig != nil { @@ -42243,9 +41742,9 @@ func awsEc2query_serializeOpDocumentRequestSpotInstancesInput(v *RequestSpotInst objectKey.String(*v.AvailabilityZoneGroup) } - if v.BlockDurationMinutes != nil { + if v.BlockDurationMinutes != 0 { objectKey := object.Key("BlockDurationMinutes") - objectKey.Integer(*v.BlockDurationMinutes) + objectKey.Integer(v.BlockDurationMinutes) } if v.ClientToken != nil { @@ -42253,14 +41752,14 @@ func awsEc2query_serializeOpDocumentRequestSpotInstancesInput(v *RequestSpotInst objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.InstanceCount != nil { + if v.InstanceCount != 0 { objectKey := object.Key("InstanceCount") - objectKey.Integer(*v.InstanceCount) + objectKey.Integer(v.InstanceCount) } if len(v.InstanceInterruptionBehavior) > 0 { @@ -42314,9 +41813,9 @@ func awsEc2query_serializeOpDocumentResetEbsDefaultKmsKeyIdInput(v *ResetEbsDefa object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil @@ -42331,9 +41830,9 @@ func awsEc2query_serializeOpDocumentResetFpgaImageAttributeInput(v *ResetFpgaIma objectKey.String(string(v.Attribute)) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.FpgaImageId != nil { @@ -42353,9 +41852,9 @@ func awsEc2query_serializeOpDocumentResetImageAttributeInput(v *ResetImageAttrib objectKey.String(string(v.Attribute)) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ImageId != nil { @@ -42375,9 +41874,9 @@ func awsEc2query_serializeOpDocumentResetInstanceAttributeInput(v *ResetInstance objectKey.String(string(v.Attribute)) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -42392,9 +41891,9 @@ func awsEc2query_serializeOpDocumentResetNetworkInterfaceAttributeInput(v *Reset object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.NetworkInterfaceId != nil { @@ -42419,9 +41918,9 @@ func awsEc2query_serializeOpDocumentResetSnapshotAttributeInput(v *ResetSnapshot objectKey.String(string(v.Attribute)) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.SnapshotId != nil { @@ -42436,9 +41935,9 @@ func awsEc2query_serializeOpDocumentRestoreAddressToClassicInput(v *RestoreAddre object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PublicIp != nil { @@ -42453,14 +41952,14 @@ func awsEc2query_serializeOpDocumentRestoreManagedPrefixListVersionInput(v *Rest object := value.Object() _ = object - if v.CurrentVersion != nil { + if v.CurrentVersion != 0 { objectKey := object.Key("CurrentVersion") - objectKey.Long(*v.CurrentVersion) + objectKey.Long(v.CurrentVersion) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.PrefixListId != nil { @@ -42468,9 +41967,9 @@ func awsEc2query_serializeOpDocumentRestoreManagedPrefixListVersionInput(v *Rest objectKey.String(*v.PrefixListId) } - if v.PreviousVersion != nil { + if v.PreviousVersion != 0 { objectKey := object.Key("PreviousVersion") - objectKey.Long(*v.PreviousVersion) + objectKey.Long(v.PreviousVersion) } return nil @@ -42490,14 +41989,14 @@ func awsEc2query_serializeOpDocumentRevokeClientVpnIngressInput(v *RevokeClientV objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.RevokeAllGroups != nil { + if v.RevokeAllGroups { objectKey := object.Key("RevokeAllGroups") - objectKey.Boolean(*v.RevokeAllGroups) + objectKey.Boolean(v.RevokeAllGroups) } if v.TargetNetworkCidr != nil { @@ -42517,14 +42016,14 @@ func awsEc2query_serializeOpDocumentRevokeSecurityGroupEgressInput(v *RevokeSecu objectKey.String(*v.CidrIp) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.FromPort != nil { + if v.FromPort != 0 { objectKey := object.Key("FromPort") - objectKey.Integer(*v.FromPort) + objectKey.Integer(v.FromPort) } if v.GroupId != nil { @@ -42554,9 +42053,9 @@ func awsEc2query_serializeOpDocumentRevokeSecurityGroupEgressInput(v *RevokeSecu objectKey.String(*v.SourceSecurityGroupOwnerId) } - if v.ToPort != nil { + if v.ToPort != 0 { objectKey := object.Key("ToPort") - objectKey.Integer(*v.ToPort) + objectKey.Integer(v.ToPort) } return nil @@ -42571,14 +42070,14 @@ func awsEc2query_serializeOpDocumentRevokeSecurityGroupIngressInput(v *RevokeSec objectKey.String(*v.CidrIp) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.FromPort != nil { + if v.FromPort != 0 { objectKey := object.Key("FromPort") - objectKey.Integer(*v.FromPort) + objectKey.Integer(v.FromPort) } if v.GroupId != nil { @@ -42613,9 +42112,9 @@ func awsEc2query_serializeOpDocumentRevokeSecurityGroupIngressInput(v *RevokeSec objectKey.String(*v.SourceSecurityGroupOwnerId) } - if v.ToPort != nil { + if v.ToPort != 0 { objectKey := object.Key("ToPort") - objectKey.Integer(*v.ToPort) + objectKey.Integer(v.ToPort) } return nil @@ -42663,19 +42162,19 @@ func awsEc2query_serializeOpDocumentRunInstancesInput(v *RunInstancesInput, valu } } - if v.DisableApiTermination != nil { + if v.DisableApiTermination { objectKey := object.Key("DisableApiTermination") - objectKey.Boolean(*v.DisableApiTermination) + objectKey.Boolean(v.DisableApiTermination) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.EbsOptimized != nil { + if v.EbsOptimized { objectKey := object.Key("EbsOptimized") - objectKey.Boolean(*v.EbsOptimized) + objectKey.Boolean(v.EbsOptimized) } if v.ElasticGpuSpecification != nil { @@ -42735,9 +42234,9 @@ func awsEc2query_serializeOpDocumentRunInstancesInput(v *RunInstancesInput, valu objectKey.String(string(v.InstanceType)) } - if v.Ipv6AddressCount != nil { + if v.Ipv6AddressCount != 0 { objectKey := object.Key("Ipv6AddressCount") - objectKey.Integer(*v.Ipv6AddressCount) + objectKey.Integer(v.Ipv6AddressCount) } if v.Ipv6Addresses != nil { @@ -42771,9 +42270,9 @@ func awsEc2query_serializeOpDocumentRunInstancesInput(v *RunInstancesInput, valu } } - if v.MaxCount != nil { + if v.MaxCount != 0 { objectKey := object.Key("MaxCount") - objectKey.Integer(*v.MaxCount) + objectKey.Integer(v.MaxCount) } if v.MetadataOptions != nil { @@ -42783,9 +42282,9 @@ func awsEc2query_serializeOpDocumentRunInstancesInput(v *RunInstancesInput, valu } } - if v.MinCount != nil { + if v.MinCount != 0 { objectKey := object.Key("MinCount") - objectKey.Integer(*v.MinCount) + objectKey.Integer(v.MinCount) } if v.Monitoring != nil { @@ -42862,14 +42361,14 @@ func awsEc2query_serializeOpDocumentRunScheduledInstancesInput(v *RunScheduledIn objectKey.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.InstanceCount != nil { + if v.InstanceCount != 0 { objectKey := object.Key("InstanceCount") - objectKey.Integer(*v.InstanceCount) + objectKey.Integer(v.InstanceCount) } if v.LaunchSpecification != nil { @@ -42891,9 +42390,9 @@ func awsEc2query_serializeOpDocumentSearchLocalGatewayRoutesInput(v *SearchLocal object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -42925,9 +42424,9 @@ func awsEc2query_serializeOpDocumentSearchTransitGatewayMulticastGroupsInput(v * object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -42937,9 +42436,9 @@ func awsEc2query_serializeOpDocumentSearchTransitGatewayMulticastGroupsInput(v * } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.NextToken != nil { @@ -42959,9 +42458,9 @@ func awsEc2query_serializeOpDocumentSearchTransitGatewayRoutesInput(v *SearchTra object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Filters != nil { @@ -42971,9 +42470,9 @@ func awsEc2query_serializeOpDocumentSearchTransitGatewayRoutesInput(v *SearchTra } } - if v.MaxResults != nil { + if v.MaxResults != 0 { objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + objectKey.Integer(v.MaxResults) } if v.TransitGatewayRouteTableId != nil { @@ -42988,9 +42487,9 @@ func awsEc2query_serializeOpDocumentSendDiagnosticInterruptInput(v *SendDiagnost object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceId != nil { @@ -43010,9 +42509,9 @@ func awsEc2query_serializeOpDocumentStartInstancesInput(v *StartInstancesInput, objectKey.String(*v.AdditionalInfo) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceIds != nil { @@ -43029,9 +42528,9 @@ func awsEc2query_serializeOpDocumentStartVpcEndpointServicePrivateDnsVerificatio object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.ServiceId != nil { @@ -43046,19 +42545,19 @@ func awsEc2query_serializeOpDocumentStopInstancesInput(v *StopInstancesInput, va object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } - if v.Force != nil { + if v.Force { objectKey := object.Key("Force") - objectKey.Boolean(*v.Force) + objectKey.Boolean(v.Force) } - if v.Hibernate != nil { + if v.Hibernate { objectKey := object.Key("Hibernate") - objectKey.Boolean(*v.Hibernate) + objectKey.Boolean(v.Hibernate) } if v.InstanceIds != nil { @@ -43085,9 +42584,9 @@ func awsEc2query_serializeOpDocumentTerminateClientVpnConnectionsInput(v *Termin objectKey.String(*v.ConnectionId) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.Username != nil { @@ -43102,9 +42601,9 @@ func awsEc2query_serializeOpDocumentTerminateInstancesInput(v *TerminateInstance object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceIds != nil { @@ -43159,9 +42658,9 @@ func awsEc2query_serializeOpDocumentUnmonitorInstancesInput(v *UnmonitorInstance object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.InstanceIds != nil { @@ -43178,9 +42677,9 @@ func awsEc2query_serializeOpDocumentUpdateSecurityGroupRuleDescriptionsEgressInp object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GroupId != nil { @@ -43207,9 +42706,9 @@ func awsEc2query_serializeOpDocumentUpdateSecurityGroupRuleDescriptionsIngressIn object := value.Object() _ = object - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } if v.GroupId != nil { @@ -43241,9 +42740,9 @@ func awsEc2query_serializeOpDocumentWithdrawByoipCidrInput(v *WithdrawByoipCidrI objectKey.String(*v.Cidr) } - if v.DryRun != nil { + if v.DryRun { objectKey := object.Key("DryRun") - objectKey.Boolean(*v.DryRun) + objectKey.Boolean(v.DryRun) } return nil diff --git a/service/ec2/types/types.go b/service/ec2/types/types.go index a1796437911..ccbacd957bf 100644 --- a/service/ec2/types/types.go +++ b/service/ec2/types/types.go @@ -13,7 +13,7 @@ type AccountAttribute struct { AttributeName *string // The values for the account attribute. - AttributeValues []*AccountAttributeValue + AttributeValues []AccountAttributeValue } // Describes a value of an account attribute. @@ -100,7 +100,7 @@ type Address struct { PublicIpv4Pool *string // Any tags assigned to the Elastic IP address. - Tags []*Tag + Tags []Tag } // Describes a principal. @@ -163,7 +163,7 @@ type AssociationStatus struct { type AttributeBooleanValue struct { // The attribute value. The valid values are true or false. - Value *bool + Value bool } // Describes a value for a resource attribute that is a String. @@ -177,7 +177,7 @@ type AttributeValue struct { type AuthorizationRule struct { // Indicates whether the authorization rule grants access to all clients. - AccessAll *bool + AccessAll bool // The ID of the Client VPN endpoint with which the authorization rule is // associated. @@ -208,7 +208,7 @@ type AvailabilityZone struct { GroupName *string // Any messages about the Availability Zone, Local Zone, or Wavelength Zone. - Messages []*AvailabilityZoneMessage + Messages []AvailabilityZoneMessage // The name of the network border group. NetworkBorderGroup *string @@ -258,10 +258,10 @@ type AvailableCapacity struct { // on the host's available capacity. For Dedicated Hosts that support multiple // instance types, this parameter represents the number of instances for each // instance size that is supported on the host. - AvailableInstanceCapacity []*InstanceCapacity + AvailableInstanceCapacity []InstanceCapacity // The number of vCPUs available for launching instances onto the Dedicated Host. - AvailableVCpus *int32 + AvailableVCpus int32 } type BlobAttributeValue struct { @@ -404,7 +404,7 @@ type CapacityReservation struct { // The remaining capacity. Indicates the number of instances that can be launched // in the Capacity Reservation. - AvailableInstanceCount *int32 + AvailableInstanceCount int32 // The Amazon Resource Name (ARN) of the Capacity Reservation. CapacityReservationArn *string @@ -420,7 +420,7 @@ type CapacityReservation struct { // configuration stack to provide optimal I/O performance. This optimization isn't // available with all instance types. Additional usage charges apply when using an // EBS- optimized instance. - EbsOptimized *bool + EbsOptimized bool // The date and time at which the Capacity Reservation expires. When a Capacity // Reservation expires, the reserved capacity is released and you can no longer @@ -440,7 +440,7 @@ type CapacityReservation struct { // Indicates whether the Capacity Reservation supports instances with temporary, // block-level storage. - EphemeralStorage *bool + EphemeralStorage bool // Indicates the type of instance launches that the Capacity Reservation accepts. // The options include: @@ -491,7 +491,7 @@ type CapacityReservation struct { State CapacityReservationState // Any tags assigned to the Capacity Reservation. - Tags []*Tag + Tags []Tag // Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can // have one of the following tenancy settings: @@ -506,7 +506,7 @@ type CapacityReservation struct { // The total number of instances for which the Capacity Reservation reserves // capacity. - TotalInstanceCount *int32 + TotalInstanceCount int32 } // Describes a resource group to which a Capacity Reservation has been added. @@ -650,7 +650,7 @@ type CarrierGateway struct { State CarrierGatewayState // The tags assigned to the carrier gateway. - Tags []*Tag + Tags []Tag // The ID of the VPC associated with the carrier gateway. VpcId *string @@ -701,7 +701,7 @@ type CidrBlock struct { type ClassicLinkDnsSupport struct { // Indicates whether ClassicLink DNS support is enabled for the VPC. - ClassicLinkDnsSupported *bool + ClassicLinkDnsSupported bool // The ID of the VPC. VpcId *string @@ -711,13 +711,13 @@ type ClassicLinkDnsSupport struct { type ClassicLinkInstance struct { // A list of security groups. - Groups []*GroupIdentifier + Groups []GroupIdentifier // The ID of the instance. InstanceId *string // Any tags assigned to the instance. - Tags []*Tag + Tags []Tag // The ID of the VPC. VpcId *string @@ -735,7 +735,7 @@ type ClassicLoadBalancer struct { type ClassicLoadBalancersConfig struct { // One or more Classic Load Balancers. - ClassicLoadBalancers []*ClassicLoadBalancer + ClassicLoadBalancers []ClassicLoadBalancer } // Describes the state of a client certificate revocation list. @@ -759,7 +759,7 @@ type ClientData struct { UploadEnd *time.Time // The size of the uploaded disk image, in GiB. - UploadSize *float64 + UploadSize float64 // The time that the disk upload starts. UploadStart *time.Time @@ -876,10 +876,10 @@ type ClientVpnEndpoint struct { // Information about the associated target networks. A target network is a subnet // in a VPC. - AssociatedTargetNetworks []*AssociatedTargetNetwork + AssociatedTargetNetworks []AssociatedTargetNetwork // Information about the authentication method used by the Client VPN endpoint. - AuthenticationOptions []*ClientVpnAuthentication + AuthenticationOptions []ClientVpnAuthentication // The IPv4 address range, in CIDR notation, from which client IP addresses are // assigned. @@ -905,10 +905,10 @@ type ClientVpnEndpoint struct { DnsName *string // Information about the DNS servers to be used for DNS resolution. - DnsServers []*string + DnsServers []string // The IDs of the security groups for the target network. - SecurityGroupIds []*string + SecurityGroupIds []string // The URL of the self-service portal. SelfServicePortalUrl *string @@ -921,13 +921,13 @@ type ClientVpnEndpoint struct { // Endpoint // (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html) // in the AWS Client VPN Administrator Guide. - SplitTunnel *bool + SplitTunnel bool // The current state of the Client VPN endpoint. Status *ClientVpnEndpointStatus // Any tags assigned to the Client VPN endpoint. - Tags []*Tag + Tags []Tag // The transport protocol used by the Client VPN endpoint. TransportProtocol TransportProtocol @@ -936,7 +936,7 @@ type ClientVpnEndpoint struct { VpcId *string // The port number for the Client VPN endpoint. - VpnPort *int32 + VpnPort int32 // The protocol used by the VPN session. VpnProtocol VpnProtocol @@ -1031,13 +1031,13 @@ type CoipPool struct { PoolArn *string // The address ranges of the address pool. - PoolCidrs []*string + PoolCidrs []string // The ID of the address pool. PoolId *string // The tags. - Tags []*Tag + Tags []Tag } // Describes the client connection logging options for the Client VPN endpoint. @@ -1052,7 +1052,7 @@ type ConnectionLogOptions struct { CloudwatchLogStream *string // Indicates whether connection logging is enabled. - Enabled *bool + Enabled bool } // Information about the client connection logging options for a Client VPN @@ -1069,7 +1069,7 @@ type ConnectionLogResponseOptions struct { // Indicates whether client connection logging is enabled for the Client VPN // endpoint. - Enabled *bool + Enabled bool } // Describes a connection notification for a VPC endpoint or VPC endpoint service. @@ -1077,7 +1077,7 @@ type ConnectionNotification struct { // The events for the notification. Valid values are Accept, Connect, Delete, and // Reject. - ConnectionEvents []*string + ConnectionEvents []string // The ARN of the SNS topic for the notification. ConnectionNotificationArn *string @@ -1123,17 +1123,17 @@ type ConversionTask struct { StatusMessage *string // Any tags assigned to the task. - Tags []*Tag + Tags []Tag } // The CPU options for the instance. type CpuOptions struct { // The number of CPU cores for the instance. - CoreCount *int32 + CoreCount int32 // The number of threads per CPU core. - ThreadsPerCore *int32 + ThreadsPerCore int32 } // The CPU options for the instance. Both the core count and threads per core must @@ -1141,11 +1141,11 @@ type CpuOptions struct { type CpuOptionsRequest struct { // The number of CPU cores for the instance. - CoreCount *int32 + CoreCount int32 // The number of threads per CPU core. To disable multithreading for the instance, // specify a value of 1. Otherwise, specify the default value of 2. - ThreadsPerCore *int32 + ThreadsPerCore int32 } // Describes the instances that could not be launched by the fleet. @@ -1175,7 +1175,7 @@ type CreateFleetError struct { type CreateFleetInstance struct { // The IDs of the instances. - InstanceIds []*string + InstanceIds []string // The instance type. InstanceType InstanceType @@ -1223,10 +1223,10 @@ type CreateVolumePermission struct { type CreateVolumePermissionModifications struct { // Adds the specified AWS account ID or group to the list. - Add []*CreateVolumePermission + Add []CreateVolumePermission // Removes the specified AWS account ID or group from the list. - Remove []*CreateVolumePermission + Remove []CreateVolumePermission } // Describes the credit option for CPU usage of a T2, T3, or T3a instance. @@ -1271,7 +1271,7 @@ type CustomerGateway struct { State *string // Any tags assigned to the customer gateway. - Tags []*Tag + Tags []Tag // The type of VPN connection the customer gateway supports (ipsec.1). Type *string @@ -1323,7 +1323,7 @@ type DeleteLaunchTemplateVersionsResponseErrorItem struct { ResponseError *ResponseError // The version number of the launch template. - VersionNumber *int64 + VersionNumber int64 } // Describes a launch template version that was successfully deleted. @@ -1336,7 +1336,7 @@ type DeleteLaunchTemplateVersionsResponseSuccessItem struct { LaunchTemplateName *string // The version number of the launch template. - VersionNumber *int64 + VersionNumber int64 } // Describes the error for a Reserved Instance whose queued purchase could not be @@ -1358,10 +1358,10 @@ type DeregisterInstanceTagAttributeRequest struct { // Indicates whether to deregister all tag keys in the current Region. Specify // false to deregister all tag keys. - IncludeAllTagsOfInstance *bool + IncludeAllTagsOfInstance bool // Information about the tag keys to deregister. - InstanceTagKeys []*string + InstanceTagKeys []string } // Describes fast snapshot restores for a snapshot. @@ -1436,7 +1436,7 @@ type DescribeFleetError struct { type DescribeFleetsInstances struct { // The IDs of the instances. - InstanceIds []*string + InstanceIds []string // The instance type. InstanceType InstanceType @@ -1461,14 +1461,14 @@ type DhcpConfiguration struct { Key *string // One or more values for the DHCP option. - Values []*AttributeValue + Values []AttributeValue } // Describes a set of DHCP options. type DhcpOptions struct { // One or more DHCP options in the set. - DhcpConfigurations []*DhcpConfiguration + DhcpConfigurations []DhcpConfiguration // The ID of the set of DHCP options. DhcpOptionsId *string @@ -1477,7 +1477,7 @@ type DhcpOptions struct { OwnerId *string // Any tags assigned to the DHCP options set. - Tags []*Tag + Tags []Tag } // Describes an Active Directory. @@ -1499,7 +1499,7 @@ type DirectoryServiceAuthenticationRequest struct { type DisableFastSnapshotRestoreErrorItem struct { // The errors. - FastSnapshotRestoreStateErrors []*DisableFastSnapshotRestoreStateErrorItem + FastSnapshotRestoreStateErrors []DisableFastSnapshotRestoreStateErrorItem // The ID of the snapshot. SnapshotId *string @@ -1603,7 +1603,7 @@ type DiskImageDescription struct { ImportManifestUrl *string // The size of the disk image, in GiB. - Size *int64 + Size int64 } // Describes a disk image. @@ -1612,7 +1612,7 @@ type DiskImageDetail struct { // The size of the disk image, in GiB. // // This member is required. - Bytes *int64 + Bytes int64 // The disk image format. // @@ -1639,7 +1639,7 @@ type DiskImageVolumeDescription struct { Id *string // The size of the volume, in GiB. - Size *int64 + Size int64 } // Describes the disk. @@ -1671,11 +1671,11 @@ type DnsServersOptionsModifyStructure struct { // The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can // specify up to two DNS servers. Ensure that the DNS servers can be reached by the // clients. The specified values overwrite the existing values. - CustomDnsServers []*string + CustomDnsServers []string // Indicates whether DNS servers should be used. Specify False to delete the // existing DNS servers. - Enabled *bool + Enabled bool } // Describes a block device for an EBS volume. @@ -1685,7 +1685,7 @@ type EbsBlockDevice struct { // information, see Preserving Amazon EBS volumes on instance termination // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#preserving-volumes-on-termination) // in the Amazon Elastic Compute Cloud User Guide. - DeleteOnTermination *bool + DeleteOnTermination bool // Indicates whether the encryption state of an EBS volume is changed while being // restored from a backing snapshot. The effect of setting the encryption state to @@ -1699,7 +1699,7 @@ type EbsBlockDevice struct { // Supported instance types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances). // This parameter is not returned by . - Encrypted *bool + Encrypted bool // The number of I/O operations per second (IOPS) that the volume supports. For io1 // and io2 volumes, this represents the number of IOPS that are provisioned for the @@ -1717,7 +1717,7 @@ type EbsBlockDevice struct { // Amazon Elastic Compute Cloud User Guide. Condition: This parameter is required // for requests to create io1 and io2 volumes; it is not used in requests to create // gp2, st1, sc1, or standard volumes. - Iops *int32 + Iops int32 // Identifier (key ID, key alias, ID ARN, or alias ARN) for a customer managed CMK // under which the EBS volume is encrypted. This parameter is only supported on @@ -1738,7 +1738,7 @@ type EbsBlockDevice struct { // SSD (io1 and io2), 500-16384 for Throughput Optimized HDD (st1), 500-16384 for // Cold HDD (sc1), and 1-1024 for Magnetic (standard) volumes. If you specify a // snapshot, the volume size must be equal to or larger than the snapshot size. - VolumeSize *int32 + VolumeSize int32 // The volume type. If you set the type to io1 or io2, you must also specify the // Iops parameter. If you set the type to gp2, st1, sc1, or standard, you must omit @@ -1772,7 +1772,7 @@ type EbsInstanceBlockDevice struct { AttachTime *time.Time // Indicates whether the volume is deleted on instance termination. - DeleteOnTermination *bool + DeleteOnTermination bool // The attachment state. Status AttachmentStatus @@ -1786,7 +1786,7 @@ type EbsInstanceBlockDevice struct { type EbsInstanceBlockDeviceSpecification struct { // Indicates whether the volume is deleted on instance termination. - DeleteOnTermination *bool + DeleteOnTermination bool // The ID of the EBS volume. VolumeId *string @@ -1820,13 +1820,13 @@ type EbsOptimizedInfo struct { type EgressOnlyInternetGateway struct { // Information about the attachment of the egress-only internet gateway. - Attachments []*InternetGatewayAttachment + Attachments []InternetGatewayAttachment // The ID of the egress-only internet gateway. EgressOnlyInternetGatewayId *string // The tags assigned to the egress-only internet gateway. - Tags []*Tag + Tags []Tag } // Describes the association between an instance and an Elastic Graphics @@ -1876,7 +1876,7 @@ type ElasticGpus struct { InstanceId *string // The tags assigned to the Elastic Graphics accelerator. - Tags []*Tag + Tags []Tag } // A specification for an Elastic Graphics accelerator. @@ -1910,7 +1910,7 @@ type ElasticInferenceAccelerator struct { // The number of elastic inference accelerators to attach to the instance. Default: // 1 - Count *int32 + Count int32 } // Describes the association between an instance and an elastic inference @@ -1936,7 +1936,7 @@ type ElasticInferenceAcceleratorAssociation struct { type EnableFastSnapshotRestoreErrorItem struct { // The errors. - FastSnapshotRestoreStateErrors []*EnableFastSnapshotRestoreStateErrorItem + FastSnapshotRestoreStateErrors []EnableFastSnapshotRestoreStateErrorItem // The ID of the snapshot. SnapshotId *string @@ -2013,7 +2013,7 @@ type EnclaveOptions struct { // If this parameter is set to true, the instance is enabled for AWS Nitro // Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves. - Enabled *bool + Enabled bool } // Indicates whether the instance is enabled for AWS Nitro Enclaves. For more @@ -2023,7 +2023,7 @@ type EnclaveOptions struct { type EnclaveOptionsRequest struct { // To enable the instance for AWS Nitro Enclaves, set this parameter to true. - Enabled *bool + Enabled bool } // Describes an EC2 Fleet or Spot Fleet event. @@ -2138,7 +2138,7 @@ type ExportImageTask struct { StatusMessage *string // Any tags assigned to the image being exported. - Tags []*Tag + Tags []Tag } // Describes an instance export task. @@ -2163,7 +2163,7 @@ type ExportTask struct { StatusMessage *string // The tags for the export task. - Tags []*Tag + Tags []Tag } // Describes the destination for an export image task. @@ -2293,7 +2293,7 @@ type Filter struct { Name *string // The filter values. Filter values are case-sensitive. - Values []*string + Values []string } // Describes an EC2 Fleet. @@ -2317,7 +2317,7 @@ type FleetData struct { // Information about the instances that could not be launched by the fleet. Valid // only when Type is set to instant. - Errors []*DescribeFleetError + Errors []DescribeFleetError // Indicates whether running instances should be terminated if the target capacity // of the EC2 Fleet is decreased below the current size of the EC2 Fleet. @@ -2331,30 +2331,30 @@ type FleetData struct { // The number of units fulfilled by this request compared to the set target // capacity. - FulfilledCapacity *float64 + FulfilledCapacity float64 // The number of units fulfilled by this request compared to the set target // On-Demand capacity. - FulfilledOnDemandCapacity *float64 + FulfilledOnDemandCapacity float64 // Information about the instances that were launched by the fleet. Valid only when // Type is set to instant. - Instances []*DescribeFleetsInstances + Instances []DescribeFleetsInstances // The launch template and overrides. - LaunchTemplateConfigs []*FleetLaunchTemplateConfig + LaunchTemplateConfigs []FleetLaunchTemplateConfig // The allocation strategy of On-Demand Instances in an EC2 Fleet. OnDemandOptions *OnDemandOptions // Indicates whether EC2 Fleet should replace unhealthy instances. - ReplaceUnhealthyInstances *bool + ReplaceUnhealthyInstances bool // The configuration of Spot Instances in an EC2 Fleet. SpotOptions *SpotOptions // The tags for an EC2 Fleet resource. - Tags []*Tag + Tags []Tag // The number of units to request. You can choose to set the target capacity in // terms of instances or a performance characteristic that is important to your @@ -2364,7 +2364,7 @@ type FleetData struct { // Indicates whether running instances should be terminated when the EC2 Fleet // expires. - TerminateInstancesWithExpiration *bool + TerminateInstancesWithExpiration bool // The type of request. Indicates whether the EC2 Fleet only requests the target // capacity, or also attempts to maintain it. If you request a certain target @@ -2396,7 +2396,7 @@ type FleetLaunchTemplateConfig struct { // Any parameters that you specify override the same parameters in the launch // template. - Overrides []*FleetLaunchTemplateOverrides + Overrides []FleetLaunchTemplateOverrides } // Describes a launch template and overrides. @@ -2408,7 +2408,7 @@ type FleetLaunchTemplateConfigRequest struct { // Any parameters that you specify override the same parameters in the launch // template. - Overrides []*FleetLaunchTemplateOverridesRequest + Overrides []FleetLaunchTemplateOverridesRequest } // Describes overrides for a launch template. @@ -2431,13 +2431,13 @@ type FleetLaunchTemplateOverrides struct { // to use first in fulfilling On-Demand capacity. The highest priority is launched // first. Valid values are whole numbers starting at 0. The lower the number, the // higher the priority. If no number is set, the override has the lowest priority. - Priority *float64 + Priority float64 // The ID of the subnet in which to launch the instances. SubnetId *string // The number of units provided by the specified instance type. - WeightedCapacity *float64 + WeightedCapacity float64 } // Describes overrides for a launch template. @@ -2461,7 +2461,7 @@ type FleetLaunchTemplateOverridesRequest struct { // first. Valid values are whole numbers starting at 0. The lower the number, the // higher the priority. If no number is set, the launch template override has the // lowest priority. - Priority *float64 + Priority float64 // The IDs of the subnets in which to launch the instances. Separate multiple // subnet IDs using commas (for example, subnet-1234abcdeexample1, @@ -2470,7 +2470,7 @@ type FleetLaunchTemplateOverridesRequest struct { SubnetId *string // The number of units provided by the specified instance type. - WeightedCapacity *float64 + WeightedCapacity float64 } // Describes the Amazon EC2 launch template and the launch template version that @@ -2568,13 +2568,13 @@ type FlowLog struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances), // the aggregation interval is always 60 seconds (1 minute) or less, regardless of // the specified value. Valid Values: 60 | 600 - MaxAggregationInterval *int32 + MaxAggregationInterval int32 // The ID of the resource on which the flow log was created. ResourceId *string // The tags for the flow log. - Tags []*Tag + Tags []Tag // The type of traffic captured for the flow log. TrafficType TrafficType @@ -2610,7 +2610,7 @@ type FpgaImage struct { CreateTime *time.Time // Indicates whether data retention support is enabled for the AFI. - DataRetentionSupport *bool + DataRetentionSupport bool // The description of the AFI. Description *string @@ -2635,10 +2635,10 @@ type FpgaImage struct { PciId *PciId // The product codes for the AFI. - ProductCodes []*ProductCode + ProductCodes []ProductCode // Indicates whether the AFI is public. - Public *bool + Public bool // The version of the AWS Shell that was used to create the bitstream. ShellVersion *string @@ -2647,7 +2647,7 @@ type FpgaImage struct { State *FpgaImageState // Any tags assigned to the AFI. - Tags []*Tag + Tags []Tag // The time of the most recent update to the AFI. UpdateTime *time.Time @@ -2663,13 +2663,13 @@ type FpgaImageAttribute struct { FpgaImageId *string // The load permissions. - LoadPermissions []*LoadPermission + LoadPermissions []LoadPermission // The name of the AFI. Name *string // The product codes. - ProductCodes []*ProductCode + ProductCodes []ProductCode } // Describes the state of the bitstream generation process for an Amazon FPGA image @@ -2698,7 +2698,7 @@ type FpgaImageState struct { type FpgaInfo struct { // Describes the FPGAs for the instance type. - Fpgas []*FpgaDeviceInfo + Fpgas []FpgaDeviceInfo // The total memory of all FPGA accelerators for the instance type. TotalFpgaMemoryInMiB *int32 @@ -2731,7 +2731,7 @@ type GpuDeviceMemoryInfo struct { type GpuInfo struct { // Describes the GPU accelerators for the instance type. - Gpus []*GpuDeviceInfo + Gpus []GpuDeviceInfo // The total size of the memory for the GPU accelerators for the instance type. TotalGpuMemoryInMiB *int32 @@ -2757,7 +2757,7 @@ type HibernationOptions struct { // If this parameter is set to true, your instance is enabled for hibernation; // otherwise, it is not enabled for hibernation. - Configured *bool + Configured bool } // Indicates whether your instance is configured for hibernation. This parameter is @@ -2770,7 +2770,7 @@ type HibernationOptionsRequest struct { // If you set this parameter to true, your instance is enabled for hibernation. // Default: false - Configured *bool + Configured bool } // Describes an event in the history of the Spot Fleet request. @@ -2855,12 +2855,12 @@ type Host struct { HostReservationId *string // The IDs and instance type that are currently running on the Dedicated Host. - Instances []*HostInstance + Instances []HostInstance // Indicates whether the Dedicated Host is in a host resource group. If // memberOfServiceLinkedResourceGroup is true, the host is in a host resource // group; otherwise, it is not. - MemberOfServiceLinkedResourceGroup *bool + MemberOfServiceLinkedResourceGroup bool // The ID of the AWS account that owns the Dedicated Host. OwnerId *string @@ -2872,7 +2872,7 @@ type Host struct { State AllocationState // Any tags assigned to the Dedicated Host. - Tags []*Tag + Tags []Tag } // Describes an instance running on a Dedicated Host. @@ -2895,7 +2895,7 @@ type HostOffering struct { CurrencyCode CurrencyCodeValues // The duration of the offering (in seconds). - Duration *int32 + Duration int32 // The hourly price of the offering. HourlyPrice *string @@ -2917,7 +2917,7 @@ type HostOffering struct { type HostProperties struct { // The number of cores on the Dedicated Host. - Cores *int32 + Cores int32 // The instance family supported by the Dedicated Host. For example, m5. InstanceFamily *string @@ -2927,17 +2927,17 @@ type HostProperties struct { InstanceType *string // The number of sockets on the Dedicated Host. - Sockets *int32 + Sockets int32 // The total number of vCPUs on the Dedicated Host. - TotalVCpus *int32 + TotalVCpus int32 } // Details about the Dedicated Host Reservation and associated Dedicated Hosts. type HostReservation struct { // The number of Dedicated Hosts the reservation is associated with. - Count *int32 + Count int32 // The currency in which the upfrontPrice and hourlyPrice amounts are specified. At // this time, the only supported currency is USD. @@ -2945,13 +2945,13 @@ type HostReservation struct { // The length of the reservation's term, specified in seconds. Can be 31536000 (1 // year) | 94608000 (3 years). - Duration *int32 + Duration int32 // The date and time that the reservation ends. End *time.Time // The IDs of the Dedicated Hosts associated with the reservation. - HostIdSet []*string + HostIdSet []string // The ID of the reservation that specifies the associated Dedicated Hosts. HostReservationId *string @@ -2978,7 +2978,7 @@ type HostReservation struct { State ReservationState // Any tags assigned to the Dedicated Host Reservation. - Tags []*Tag + Tags []Tag // The upfront price of the reservation. UpfrontPrice *string @@ -3027,10 +3027,10 @@ type IamInstanceProfileSpecification struct { type IcmpTypeCode struct { // The ICMP code. A value of -1 means all codes for the specified ICMP type. - Code *int32 + Code int32 // The ICMP type. A value of -1 means all types. - Type *int32 + Type int32 } // Describes the ID format for a resource. @@ -3045,7 +3045,7 @@ type IdFormat struct { Resource *string // Indicates whether longer IDs (17-character IDs) are enabled for the resource. - UseLongIds *bool + UseLongIds bool } // The internet key exchange (IKE) version permitted for the VPN tunnel. @@ -3069,7 +3069,7 @@ type Image struct { Architecture ArchitectureValues // Any block device mapping entries. - BlockDeviceMappings []*BlockDeviceMapping + BlockDeviceMappings []BlockDeviceMapping // The date and time the image was created. CreationDate *string @@ -3078,7 +3078,7 @@ type Image struct { Description *string // Specifies whether enhanced networking with ENA is enabled. - EnaSupport *bool + EnaSupport bool // The hypervisor type of the image. Hypervisor HypervisorType @@ -3116,12 +3116,12 @@ type Image struct { PlatformDetails *string // Any product codes associated with the AMI. - ProductCodes []*ProductCode + ProductCodes []ProductCode // Indicates whether the image has public launch permissions. The value is true if // this image has public launch permissions or false if it has only implicit and // explicit launch permissions. - Public *bool + Public bool // The RAM disk associated with the image, if any. Only applicable for machine // images. @@ -3146,7 +3146,7 @@ type Image struct { StateReason *StateReason // Any tags assigned to the image. - Tags []*Tag + Tags []Tag // The operation of the Amazon EC2 instance and the billing code that is associated // with the AMI. usageOperation corresponds to the lineitem/Operation @@ -3211,7 +3211,7 @@ type ImportImageTask struct { Description *string // Indicates whether the image is encrypted. - Encrypted *bool + Encrypted bool // The target hypervisor for the import task. Valid values: xen Hypervisor *string @@ -3228,7 +3228,7 @@ type ImportImageTask struct { // The ARNs of the license configurations that are associated with the import image // task. - LicenseSpecifications []*ImportImageLicenseConfigurationResponse + LicenseSpecifications []ImportImageLicenseConfigurationResponse // The license type of the virtual machine. LicenseType *string @@ -3240,7 +3240,7 @@ type ImportImageTask struct { Progress *string // Information about the snapshots. - SnapshotDetails []*SnapshotDetail + SnapshotDetails []SnapshotDetail // A brief status for the import image task. Status *string @@ -3249,7 +3249,7 @@ type ImportImageTask struct { StatusMessage *string // The tags for the import image task. - Tags []*Tag + Tags []Tag } // Describes the launch specification for VM import. @@ -3262,10 +3262,10 @@ type ImportInstanceLaunchSpecification struct { Architecture ArchitectureValues // The security group IDs. - GroupIds []*string + GroupIds []string // The security group names. - GroupNames []*string + GroupNames []string // Indicates whether an instance stops or terminates when you initiate shutdown // from the instance (using the operating system command for system shutdown). @@ -3278,7 +3278,7 @@ type ImportInstanceLaunchSpecification struct { InstanceType InstanceType // Indicates whether monitoring is enabled. - Monitoring *bool + Monitoring bool // The placement information for the instance. Placement *Placement @@ -3306,7 +3306,7 @@ type ImportInstanceTaskDetails struct { Platform PlatformValues // The volumes. - Volumes []*ImportInstanceVolumeDetailItem + Volumes []ImportInstanceVolumeDetailItem } // Describes an import volume task. @@ -3316,7 +3316,7 @@ type ImportInstanceVolumeDetailItem struct { AvailabilityZone *string // The number of bytes converted so far. - BytesConverted *int64 + BytesConverted int64 // A description of the task. Description *string @@ -3347,7 +3347,7 @@ type ImportSnapshotTask struct { SnapshotTaskDetail *SnapshotTaskDetail // The tags for the import snapshot task. - Tags []*Tag + Tags []Tag } // Describes an import volume task. @@ -3357,7 +3357,7 @@ type ImportVolumeTaskDetails struct { AvailabilityZone *string // The number of bytes converted so far. - BytesConverted *int64 + BytesConverted int64 // The description you provided when starting the import volume task. Description *string @@ -3373,7 +3373,7 @@ type ImportVolumeTaskDetails struct { type InferenceAcceleratorInfo struct { // Describes the Inference accelerators for the instance type. - Accelerators []*InferenceDeviceInfo + Accelerators []InferenceDeviceInfo } // Describes the Inference accelerators for the instance type. @@ -3394,13 +3394,13 @@ type Instance struct { // The AMI launch index, which can be used to find this instance in the launch // group. - AmiLaunchIndex *int32 + AmiLaunchIndex int32 // The architecture of the image. Architecture ArchitectureValues // Any block device mapping entries for the instance. - BlockDeviceMappings []*InstanceBlockDeviceMapping + BlockDeviceMappings []InstanceBlockDeviceMapping // The ID of the Capacity Reservation. CapacityReservationId *string @@ -3420,16 +3420,16 @@ type Instance struct { // configuration stack to provide optimal I/O performance. This optimization isn't // available with all instance types. Additional usage charges apply when using an // EBS Optimized instance. - EbsOptimized *bool + EbsOptimized bool // The Elastic GPU associated with the instance. - ElasticGpuAssociations []*ElasticGpuAssociation + ElasticGpuAssociations []ElasticGpuAssociation // The elastic inference accelerator associated with the instance. - ElasticInferenceAcceleratorAssociations []*ElasticInferenceAcceleratorAssociation + ElasticInferenceAcceleratorAssociations []ElasticInferenceAcceleratorAssociation // Specifies whether enhanced networking with ENA is enabled. - EnaSupport *bool + EnaSupport bool // Indicates whether the instance is enabled for AWS Nitro Enclaves. EnclaveOptions *EnclaveOptions @@ -3467,7 +3467,7 @@ type Instance struct { LaunchTime *time.Time // The license configurations. - Licenses []*LicenseConfiguration + Licenses []LicenseConfiguration // The metadata options for the instance. MetadataOptions *InstanceMetadataOptionsResponse @@ -3476,7 +3476,7 @@ type Instance struct { Monitoring *Monitoring // [EC2-VPC] The network interfaces for the instance. - NetworkInterfaces []*InstanceNetworkInterface + NetworkInterfaces []InstanceNetworkInterface // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -3500,7 +3500,7 @@ type Instance struct { PrivateIpAddress *string // The product codes attached to this instance, if applicable. - ProductCodes []*ProductCode + ProductCodes []ProductCode // (IPv4 only) The public DNS name assigned to the instance. This name is not // available until the instance enters the running state. For EC2-VPC, this name is @@ -3523,7 +3523,7 @@ type Instance struct { RootDeviceType DeviceType // The security groups for the instance. - SecurityGroups []*GroupIdentifier + SecurityGroups []GroupIdentifier // Specifies whether to enable an instance launched in a VPC to perform NAT. This // controls whether source/destination checking is enabled on the instance. A value @@ -3532,7 +3532,7 @@ type Instance struct { // information, see NAT Instances // (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html) // in the Amazon Virtual Private Cloud User Guide. - SourceDestCheck *bool + SourceDestCheck bool // If the request is a Spot Instance request, the ID of the request. SpotInstanceRequestId *string @@ -3554,7 +3554,7 @@ type Instance struct { SubnetId *string // Any tags assigned to the instance. - Tags []*Tag + Tags []Tag // The virtualization type of the instance. VirtualizationType VirtualizationType @@ -3597,21 +3597,21 @@ type InstanceCapacity struct { // The number of instances that can be launched onto the Dedicated Host based on // the host's available capacity. - AvailableCapacity *int32 + AvailableCapacity int32 // The instance type supported by the Dedicated Host. InstanceType *string // The total number of instances that can be launched onto the Dedicated Host if // there are no instances running on it. - TotalCapacity *int32 + TotalCapacity int32 } // Describes a Reserved Instance listing state. type InstanceCount struct { // The number of listed Reserved Instances in the state specified by the state. - InstanceCount *int32 + InstanceCount int32 // The states of the listed Reserved Instances. State ListingState @@ -3696,7 +3696,7 @@ type InstanceMetadataOptionsRequest struct { // The desired HTTP PUT response hop limit for instance metadata requests. The // larger the number, the further instance metadata requests can travel. Default: 1 // Possible values: Integers from 1 to 64 - HttpPutResponseHopLimit *int32 + HttpPutResponseHopLimit int32 // The state of token usage for your instance metadata requests. If the parameter // is not specified in the request, the default state is optional. If the state is @@ -3722,7 +3722,7 @@ type InstanceMetadataOptionsResponse struct { // The desired HTTP PUT response hop limit for instance metadata requests. The // larger the number, the further instance metadata requests can travel. Default: 1 // Possible values: Integers from 1 to 64 - HttpPutResponseHopLimit *int32 + HttpPutResponseHopLimit int32 // The state of token usage for your instance metadata requests. If the parameter // is not specified in the request, the default state is optional. If the state is @@ -3767,13 +3767,13 @@ type InstanceNetworkInterface struct { Description *string // One or more security groups. - Groups []*GroupIdentifier + Groups []GroupIdentifier // Describes the type of network interface. Valid values: interface | efa InterfaceType *string // One or more IPv6 addresses associated with the network interface. - Ipv6Addresses []*InstanceIpv6Address + Ipv6Addresses []InstanceIpv6Address // The MAC address. MacAddress *string @@ -3791,10 +3791,10 @@ type InstanceNetworkInterface struct { PrivateIpAddress *string // One or more private IPv4 addresses associated with the network interface. - PrivateIpAddresses []*InstancePrivateIpAddress + PrivateIpAddresses []InstancePrivateIpAddress // Indicates whether to validate network traffic to or from this network interface. - SourceDestCheck *bool + SourceDestCheck bool // The status of the network interface. Status NetworkInterfaceStatus @@ -3833,10 +3833,10 @@ type InstanceNetworkInterfaceAttachment struct { // Indicates whether the network interface is deleted when the instance is // terminated. - DeleteOnTermination *bool + DeleteOnTermination bool // The index of the device on the instance for the network interface attachment. - DeviceIndex *int32 + DeviceIndex int32 // The attachment state. Status AttachmentStatus @@ -3849,19 +3849,19 @@ type InstanceNetworkInterfaceSpecification struct { // can only assign a carrier IP address to a network interface that is in a subnet // in a Wavelength Zone. For more information about carrier IP addresses, see // Carrier IP addresses in the AWS Wavelength Developer Guide. - AssociateCarrierIpAddress *bool + AssociateCarrierIpAddress bool // Indicates whether to assign a public IPv4 address to an instance you launch in a // VPC. The public IP address can only be assigned to a network interface for eth0, // and can only be assigned to a new network interface, not an existing one. You // cannot specify more than one network interface in the request. If launching into // a default subnet, the default value is true. - AssociatePublicIpAddress *bool + AssociatePublicIpAddress bool // If set to true, the interface is deleted when the instance is terminated. You // can specify true only if creating a new network interface when launching an // instance. - DeleteOnTermination *bool + DeleteOnTermination bool // The description of the network interface. Applies only if creating a network // interface when launching an instance. @@ -3870,11 +3870,11 @@ type InstanceNetworkInterfaceSpecification struct { // The position of the network interface in the attachment order. A primary network // interface has a device index of 0. If you specify a network interface when // launching an instance, you must specify the device index. - DeviceIndex *int32 + DeviceIndex int32 // The IDs of the security groups for the network interface. Applies only if // creating a network interface when launching an instance. - Groups []*string + Groups []string // The type of network interface. To create an Elastic Fabric Adapter (EFA), // specify efa. For more information, see Elastic Fabric Adapter @@ -3888,13 +3888,13 @@ type InstanceNetworkInterfaceSpecification struct { // option and the option to assign specific IPv6 addresses in the same request. You // can specify this option if you've specified a minimum number of instances to // launch. - Ipv6AddressCount *int32 + Ipv6AddressCount int32 // One or more IPv6 addresses to assign to the network interface. You cannot // specify this option and the option to assign a number of IPv6 addresses in the // same request. You cannot specify this option if you've specified a minimum // number of instances to launch. - Ipv6Addresses []*InstanceIpv6Address + Ipv6Addresses []InstanceIpv6Address // The ID of the network interface. If you are creating a Spot Fleet, omit this // parameter because you can’t specify a network interface ID in a launch @@ -3913,7 +3913,7 @@ type InstanceNetworkInterfaceSpecification struct { // option if you're launching more than one instance in a RunInstances // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html) // request. - PrivateIpAddresses []*PrivateIpAddressSpecification + PrivateIpAddresses []PrivateIpAddressSpecification // The number of secondary private IPv4 addresses. You can't specify this option // and specify more than one private IP address using the private IP addresses @@ -3921,7 +3921,7 @@ type InstanceNetworkInterfaceSpecification struct { // instance in a RunInstances // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html) // request. - SecondaryPrivateIpAddressCount *int32 + SecondaryPrivateIpAddressCount int32 // The ID of the subnet associated with the network interface. Applies only if // creating a network interface when launching an instance. @@ -3936,7 +3936,7 @@ type InstancePrivateIpAddress struct { // Indicates whether this IPv4 address is the primary private IP address of the // network interface. - Primary *bool + Primary bool // The private IPv4 DNS name. PrivateDnsName *string @@ -3949,7 +3949,7 @@ type InstancePrivateIpAddress struct { type InstanceSpecification struct { // Excludes the root volume from being snapshotted. - ExcludeBootVolume *bool + ExcludeBootVolume bool // The instance to specify which volumes should be snapshotted. InstanceId *string @@ -3981,7 +3981,7 @@ type InstanceState struct { // // You can ignore the high byte value by zeroing out all of the bits above // 2^8 or 256 in decimal. - Code *int32 + Code int32 // The current state of the instance. Name InstanceStateName @@ -4007,7 +4007,7 @@ type InstanceStatus struct { AvailabilityZone *string // Any scheduled events associated with the instance. - Events []*InstanceStatusEvent + Events []InstanceStatusEvent // The ID of the instance. InstanceId *string @@ -4071,7 +4071,7 @@ type InstanceStatusEvent struct { type InstanceStatusSummary struct { // The system instance health or application instance health. - Details []*InstanceStatusDetails + Details []InstanceStatusDetails // The status. Status SummaryStatus @@ -4081,7 +4081,7 @@ type InstanceStatusSummary struct { type InstanceStorageInfo struct { // Array describing the disks that are available for the instance type. - Disks []*DiskInfo + Disks []DiskInfo // Indicates whether non-volatile memory express (NVMe) is supported for instance // store. @@ -4097,10 +4097,10 @@ type InstanceTagNotificationAttribute struct { // Indicates wheter all tag keys in the current Region are registered to appear in // scheduled event notifications. true indicates that all tag keys in the current // Region are registered. - IncludeAllTagsOfInstance *bool + IncludeAllTagsOfInstance bool // The registered tag keys. - InstanceTagKeys []*string + InstanceTagKeys []string } // Describes the instance type. @@ -4203,14 +4203,14 @@ type InstanceUsage struct { // The number of instances the AWS account currently has in the Capacity // Reservation. - UsedInstanceCount *int32 + UsedInstanceCount int32 } // Describes an internet gateway. type InternetGateway struct { // Any VPCs attached to the internet gateway. - Attachments []*InternetGatewayAttachment + Attachments []InternetGatewayAttachment // The ID of the internet gateway. InternetGatewayId *string @@ -4219,7 +4219,7 @@ type InternetGateway struct { OwnerId *string // Any tags assigned to the internet gateway. - Tags []*Tag + Tags []Tag } // Describes the attachment of a VPC to an internet gateway or an egress-only @@ -4240,7 +4240,7 @@ type IpPermission struct { // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type // number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all // ICMP/ICMPv6 types, you must specify all codes. - FromPort *int32 + FromPort int32 // The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). [VPC @@ -4252,21 +4252,21 @@ type IpPermission struct { IpProtocol *string // The IPv4 ranges. - IpRanges []*IpRange + IpRanges []IpRange // [VPC only] The IPv6 ranges. - Ipv6Ranges []*Ipv6Range + Ipv6Ranges []Ipv6Range // [VPC only] The prefix list IDs. - PrefixListIds []*PrefixListId + PrefixListIds []PrefixListId // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A // value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 // types, you must specify all codes. - ToPort *int32 + ToPort int32 // The security group and AWS account ID pairs. - UserIdGroupPairs []*UserIdGroupPair + UserIdGroupPairs []UserIdGroupPair } // Describes an IPv4 range. @@ -4306,13 +4306,13 @@ type Ipv6Pool struct { Description *string // The CIDR blocks for the address pool. - PoolCidrBlocks []*PoolCidrBlock + PoolCidrBlocks []PoolCidrBlock // The ID of the address pool. PoolId *string // Any tags for the address pool. - Tags []*Tag + Tags []Tag } // [EC2-VPC only] Describes an IPv6 range. @@ -4344,7 +4344,7 @@ type KeyPairInfo struct { KeyPairId *string // Any tags applied to the key pair. - Tags []*Tag + Tags []Tag } // The last error that occurred for a VPC endpoint. @@ -4371,10 +4371,10 @@ type LaunchPermission struct { type LaunchPermissionModifications struct { // The AWS account ID to add to the list of launch permissions for the AMI. - Add []*LaunchPermission + Add []LaunchPermission // The AWS account ID to remove from the list of launch permissions for the AMI. - Remove []*LaunchPermission + Remove []LaunchPermission } // Describes the launch specification for an instance. @@ -4384,14 +4384,14 @@ type LaunchSpecification struct { AddressingType *string // One or more block device mapping entries. - BlockDeviceMappings []*BlockDeviceMapping + BlockDeviceMappings []BlockDeviceMapping // Indicates whether the instance is optimized for EBS I/O. This optimization // provides dedicated throughput to Amazon EBS and an optimized configuration stack // to provide optimal EBS I/O performance. This optimization isn't available with // all instance types. Additional usage charges apply when using an EBS Optimized // instance. Default: false - EbsOptimized *bool + EbsOptimized bool // The IAM instance profile. IamInstanceProfile *IamInstanceProfileSpecification @@ -4413,7 +4413,7 @@ type LaunchSpecification struct { // One or more network interfaces. If you specify a network interface, you must // specify subnet IDs and security group IDs using the network interface. - NetworkInterfaces []*InstanceNetworkInterfaceSpecification + NetworkInterfaces []InstanceNetworkInterfaceSpecification // The placement information for the instance. Placement *SpotPlacement @@ -4424,7 +4424,7 @@ type LaunchSpecification struct { // One or more security groups. When requesting instances in a VPC, you must // specify the IDs of the security groups. When requesting instances in // EC2-Classic, you can specify the names or the IDs of the security groups. - SecurityGroups []*GroupIdentifier + SecurityGroups []GroupIdentifier // The ID of the subnet in which to launch the instance. SubnetId *string @@ -4443,10 +4443,10 @@ type LaunchTemplate struct { CreatedBy *string // The version number of the default version of the launch template. - DefaultVersionNumber *int64 + DefaultVersionNumber int64 // The version number of the latest version of the launch template. - LatestVersionNumber *int64 + LatestVersionNumber int64 // The ID of the launch template. LaunchTemplateId *string @@ -4455,7 +4455,7 @@ type LaunchTemplate struct { LaunchTemplateName *string // The tags for the launch template. - Tags []*Tag + Tags []Tag } // Describes a launch template and overrides. @@ -4555,17 +4555,17 @@ type LaunchTemplateConfig struct { // Any parameters that you specify override the same parameters in the launch // template. - Overrides []*LaunchTemplateOverrides + Overrides []LaunchTemplateOverrides } // The CPU options for the instance. type LaunchTemplateCpuOptions struct { // The number of CPU cores for the instance. - CoreCount *int32 + CoreCount int32 // The number of threads per CPU core. - ThreadsPerCore *int32 + ThreadsPerCore int32 } // The CPU options for the instance. Both the core count and threads per core must @@ -4573,24 +4573,24 @@ type LaunchTemplateCpuOptions struct { type LaunchTemplateCpuOptionsRequest struct { // The number of CPU cores for the instance. - CoreCount *int32 + CoreCount int32 // The number of threads per CPU core. To disable multithreading for the instance, // specify a value of 1. Otherwise, specify the default value of 2. - ThreadsPerCore *int32 + ThreadsPerCore int32 } // Describes a block device for an EBS volume. type LaunchTemplateEbsBlockDevice struct { // Indicates whether the EBS volume is deleted on instance termination. - DeleteOnTermination *bool + DeleteOnTermination bool // Indicates whether the EBS volume is encrypted. - Encrypted *bool + Encrypted bool // The number of I/O operations per second (IOPS) that the volume supports. - Iops *int32 + Iops int32 // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption. KmsKeyId *string @@ -4599,7 +4599,7 @@ type LaunchTemplateEbsBlockDevice struct { SnapshotId *string // The size of the volume, in GiB. - VolumeSize *int32 + VolumeSize int32 // The volume type. VolumeType VolumeType @@ -4609,12 +4609,12 @@ type LaunchTemplateEbsBlockDevice struct { type LaunchTemplateEbsBlockDeviceRequest struct { // Indicates whether the EBS volume is deleted on instance termination. - DeleteOnTermination *bool + DeleteOnTermination bool // Indicates whether the EBS volume is encrypted. Encrypted volumes can only be // attached to instances that support Amazon EBS encryption. If you are creating a // volume from a snapshot, you can't specify an encryption value. - Encrypted *bool + Encrypted bool // The number of I/O operations per second (IOPS) to provision for an io1 or io2 // volume, with a maximum ratio of 50 IOPS/GiB for io1, and 500 IOPS/GiB for io2. @@ -4626,7 +4626,7 @@ type LaunchTemplateEbsBlockDeviceRequest struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) in the // Amazon Elastic Compute Cloud User Guide. This parameter is valid only for // Provisioned IOPS SSD (io1 and io2) volumes. - Iops *int32 + Iops int32 // The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for // encryption. @@ -4637,7 +4637,7 @@ type LaunchTemplateEbsBlockDeviceRequest struct { // The size of the volume, in GiB. Default: If you're creating the volume from a // snapshot and don't specify a volume size, the default is the snapshot size. - VolumeSize *int32 + VolumeSize int32 // The volume type. VolumeType VolumeType @@ -4654,7 +4654,7 @@ type LaunchTemplateElasticInferenceAccelerator struct { // The number of elastic inference accelerators to attach to the instance. Default: // 1 - Count *int32 + Count int32 } // Describes an elastic inference accelerator. @@ -4662,7 +4662,7 @@ type LaunchTemplateElasticInferenceAcceleratorResponse struct { // The number of elastic inference accelerators to attach to the instance. Default: // 1 - Count *int32 + Count int32 // The type of elastic inference accelerator. The possible values are eia1.medium, // eia1.large, and eia1.xlarge. @@ -4674,7 +4674,7 @@ type LaunchTemplateEnclaveOptions struct { // If this parameter is set to true, the instance is enabled for AWS Nitro // Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves. - Enabled *bool + Enabled bool } // Indicates whether the instance is enabled for AWS Nitro Enclaves. For more @@ -4684,7 +4684,7 @@ type LaunchTemplateEnclaveOptions struct { type LaunchTemplateEnclaveOptionsRequest struct { // To enable the instance for AWS Nitro Enclaves, set this parameter to true. - Enabled *bool + Enabled bool } // Indicates whether an instance is configured for hibernation. @@ -4692,7 +4692,7 @@ type LaunchTemplateHibernationOptions struct { // If this parameter is set to true, the instance is enabled for hibernation; // otherwise, it is not enabled for hibernation. - Configured *bool + Configured bool } // Indicates whether the instance is configured for hibernation. This parameter is @@ -4702,7 +4702,7 @@ type LaunchTemplateHibernationOptionsRequest struct { // If you set this parameter to true, the instance is enabled for hibernation. // Default: false - Configured *bool + Configured bool } // Describes an IAM instance profile. @@ -4759,7 +4759,7 @@ type LaunchTemplateInstanceMetadataOptions struct { // The desired HTTP PUT response hop limit for instance metadata requests. The // larger the number, the further instance metadata requests can travel. Default: 1 // Possible values: Integers from 1 to 64 - HttpPutResponseHopLimit *int32 + HttpPutResponseHopLimit int32 // The state of token usage for your instance metadata requests. If the parameter // is not specified in the request, the default state is optional. If the state is @@ -4794,7 +4794,7 @@ type LaunchTemplateInstanceMetadataOptionsRequest struct { // The desired HTTP PUT response hop limit for instance metadata requests. The // larger the number, the further instance metadata requests can travel. Default: 1 // Possible values: Integers from 1 to 64 - HttpPutResponseHopLimit *int32 + HttpPutResponseHopLimit int32 // The state of token usage for your instance metadata requests. If the parameter // is not specified in the request, the default state is optional. If the state is @@ -4818,33 +4818,33 @@ type LaunchTemplateInstanceNetworkInterfaceSpecification struct { // information about Carrier IP addresses, see Carrier IP addresses // (https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip) // in the AWS Wavelength Developer Guide. - AssociateCarrierIpAddress *bool + AssociateCarrierIpAddress bool // Indicates whether to associate a public IPv4 address with eth0 for a new network // interface. - AssociatePublicIpAddress *bool + AssociatePublicIpAddress bool // Indicates whether the network interface is deleted when the instance is // terminated. - DeleteOnTermination *bool + DeleteOnTermination bool // A description for the network interface. Description *string // The device index for the network interface attachment. - DeviceIndex *int32 + DeviceIndex int32 // The IDs of one or more security groups. - Groups []*string + Groups []string // The type of network interface. InterfaceType *string // The number of IPv6 addresses for the network interface. - Ipv6AddressCount *int32 + Ipv6AddressCount int32 // The IPv6 addresses for the network interface. - Ipv6Addresses []*InstanceIpv6Address + Ipv6Addresses []InstanceIpv6Address // The ID of the network interface. NetworkInterfaceId *string @@ -4853,10 +4853,10 @@ type LaunchTemplateInstanceNetworkInterfaceSpecification struct { PrivateIpAddress *string // One or more private IPv4 addresses. - PrivateIpAddresses []*PrivateIpAddressSpecification + PrivateIpAddresses []PrivateIpAddressSpecification // The number of secondary private IPv4 addresses for the network interface. - SecondaryPrivateIpAddressCount *int32 + SecondaryPrivateIpAddressCount int32 // The ID of the subnet for the network interface. SubnetId *string @@ -4871,23 +4871,23 @@ type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { // Carrier IP addresses, see Carrier IP addresses // (https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip) // in the AWS Wavelength Developer Guide. - AssociateCarrierIpAddress *bool + AssociateCarrierIpAddress bool // Associates a public IPv4 address with eth0 for a new network interface. - AssociatePublicIpAddress *bool + AssociatePublicIpAddress bool // Indicates whether the network interface is deleted when the instance is // terminated. - DeleteOnTermination *bool + DeleteOnTermination bool // A description for the network interface. Description *string // The device index for the network interface attachment. - DeviceIndex *int32 + DeviceIndex int32 // The IDs of one or more security groups. - Groups []*string + Groups []string // The type of network interface. To create an Elastic Fabric Adapter (EFA), // specify efa. For more information, see Elastic Fabric Adapter @@ -4899,12 +4899,12 @@ type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { // The number of IPv6 addresses to assign to a network interface. Amazon EC2 // automatically selects the IPv6 addresses from the subnet range. You can't use // this option if specifying specific IPv6 addresses. - Ipv6AddressCount *int32 + Ipv6AddressCount int32 // One or more specific IPv6 addresses from the IPv6 CIDR block range of your // subnet. You can't use this option if you're specifying a number of IPv6 // addresses. - Ipv6Addresses []*InstanceIpv6AddressRequest + Ipv6Addresses []InstanceIpv6AddressRequest // The ID of the network interface. NetworkInterfaceId *string @@ -4913,10 +4913,10 @@ type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { PrivateIpAddress *string // One or more private IPv4 addresses. - PrivateIpAddresses []*PrivateIpAddressSpecification + PrivateIpAddresses []PrivateIpAddressSpecification // The number of secondary private IPv4 addresses to assign to a network interface. - SecondaryPrivateIpAddressCount *int32 + SecondaryPrivateIpAddressCount int32 // The ID of the subnet for the network interface. SubnetId *string @@ -4951,7 +4951,7 @@ type LaunchTemplateOverrides struct { // launched first. Valid values are whole numbers starting at 0. The lower the // number, the higher the priority. If no number is set, the launch template // override has the lowest priority. - Priority *float64 + Priority float64 // The maximum price per unit hour that you are willing to pay for a Spot Instance. SpotPrice *string @@ -4960,7 +4960,7 @@ type LaunchTemplateOverrides struct { SubnetId *string // The number of units provided by the specified instance type. - WeightedCapacity *float64 + WeightedCapacity float64 } // Describes the placement of an instance. @@ -4983,7 +4983,7 @@ type LaunchTemplatePlacement struct { // The number of the partition the instance should launch in. Valid only if the // placement group strategy is set to partition. - PartitionNumber *int32 + PartitionNumber int32 // Reserved for future use. SpreadDomain *string @@ -5014,7 +5014,7 @@ type LaunchTemplatePlacementRequest struct { // The number of the partition the instance should launch in. Valid only if the // placement group strategy is set to partition. - PartitionNumber *int32 + PartitionNumber int32 // Reserved for future use. SpreadDomain *string @@ -5029,7 +5029,7 @@ type LaunchTemplatesMonitoring struct { // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring is // enabled. - Enabled *bool + Enabled bool } // Describes the monitoring for the instance. @@ -5037,7 +5037,7 @@ type LaunchTemplatesMonitoringRequest struct { // Specify true to enable detailed monitoring. Otherwise, basic monitoring is // enabled. - Enabled *bool + Enabled bool } // The launch template to use. You must specify either the launch template ID or @@ -5060,7 +5060,7 @@ type LaunchTemplateSpotMarketOptions struct { // The required duration for the Spot Instances (also known as Spot blocks), in // minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360). - BlockDurationMinutes *int32 + BlockDurationMinutes int32 // The behavior when a Spot Instance is interrupted. InstanceInterruptionBehavior InstanceInterruptionBehavior @@ -5083,7 +5083,7 @@ type LaunchTemplateSpotMarketOptionsRequest struct { // The required duration for the Spot Instances (also known as Spot blocks), in // minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360). - BlockDurationMinutes *int32 + BlockDurationMinutes int32 // The behavior when a Spot Instance is interrupted. The default is terminate. InstanceInterruptionBehavior InstanceInterruptionBehavior @@ -5108,7 +5108,7 @@ type LaunchTemplateTagSpecification struct { ResourceType ResourceType // The tags for the resource. - Tags []*Tag + Tags []Tag } // The tags specification for the launch template. @@ -5121,7 +5121,7 @@ type LaunchTemplateTagSpecificationRequest struct { ResourceType ResourceType // The tags to apply to the resource. - Tags []*Tag + Tags []Tag } // Describes a launch template version. @@ -5134,7 +5134,7 @@ type LaunchTemplateVersion struct { CreatedBy *string // Indicates whether the version is the default version. - DefaultVersion *bool + DefaultVersion bool // Information about the launch template. LaunchTemplateData *ResponseLaunchTemplateData @@ -5149,7 +5149,7 @@ type LaunchTemplateVersion struct { VersionDescription *string // The version number. - VersionNumber *int64 + VersionNumber int64 } // Describes a license configuration. @@ -5191,10 +5191,10 @@ type LoadPermission struct { type LoadPermissionModifications struct { // The load permissions to add. - Add []*LoadPermissionRequest + Add []LoadPermissionRequest // The load permissions to remove. - Remove []*LoadPermissionRequest + Remove []LoadPermissionRequest } // Describes a load permission. @@ -5223,7 +5223,7 @@ type LocalGateway struct { State *string // The tags assigned to the local gateway. - Tags []*Tag + Tags []Tag } // Describes a route for a local gateway route table. @@ -5273,7 +5273,7 @@ type LocalGatewayRouteTable struct { State *string // The tags assigned to the local gateway route table. - Tags []*Tag + Tags []Tag } // Describes an association between a local gateway route table and a virtual @@ -5304,7 +5304,7 @@ type LocalGatewayRouteTableVirtualInterfaceGroupAssociation struct { State *string // The tags assigned to the association. - Tags []*Tag + Tags []Tag } // Describes an association between a local gateway route table and a VPC. @@ -5330,7 +5330,7 @@ type LocalGatewayRouteTableVpcAssociation struct { State *string // The tags assigned to the association. - Tags []*Tag + Tags []Tag // The ID of the VPC. VpcId *string @@ -5344,7 +5344,7 @@ type LocalGatewayVirtualInterface struct { // The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local // gateway. - LocalBgpAsn *int32 + LocalBgpAsn int32 // The ID of the local gateway. LocalGatewayId *string @@ -5359,13 +5359,13 @@ type LocalGatewayVirtualInterface struct { PeerAddress *string // The peer BGP ASN. - PeerBgpAsn *int32 + PeerBgpAsn int32 // The tags assigned to the virtual interface. - Tags []*Tag + Tags []Tag // The ID of the VLAN. - Vlan *int32 + Vlan int32 } // Describes a local gateway virtual interface group. @@ -5378,13 +5378,13 @@ type LocalGatewayVirtualInterfaceGroup struct { LocalGatewayVirtualInterfaceGroupId *string // The IDs of the virtual interfaces. - LocalGatewayVirtualInterfaceIds []*string + LocalGatewayVirtualInterfaceIds []string // The AWS account ID that owns the local gateway virtual interface group. OwnerId *string // The tags assigned to the virtual interface group. - Tags []*Tag + Tags []Tag } // Describes a managed prefix list. @@ -5394,7 +5394,7 @@ type ManagedPrefixList struct { AddressFamily *string // The maximum number of entries for the prefix list. - MaxEntries *int32 + MaxEntries int32 // The ID of the owner of the prefix list. OwnerId *string @@ -5415,10 +5415,10 @@ type ManagedPrefixList struct { StateMessage *string // The tags for the prefix list. - Tags []*Tag + Tags []Tag // The version of the prefix list. - Version *int64 + Version int64 } // Describes the memory for the instance type. @@ -5480,48 +5480,48 @@ type ModifyVpnTunnelOptionsSpecification struct { // The number of seconds after which a DPD timeout occurs. Constraints: A value // between 0 and 30. Default: 30 - DPDTimeoutSeconds *int32 + DPDTimeoutSeconds int32 // The IKE versions that are permitted for the VPN tunnel. Valid values: ikev1 | // ikev2 - IKEVersions []*IKEVersionsRequestListValue + IKEVersions []IKEVersionsRequestListValue // One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel // for phase 1 IKE negotiations. Valid values: 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 // | 21 | 22 | 23 | 24 - Phase1DHGroupNumbers []*Phase1DHGroupNumbersRequestListValue + Phase1DHGroupNumbers []Phase1DHGroupNumbersRequestListValue // One or more encryption algorithms that are permitted for the VPN tunnel for // phase 1 IKE negotiations. Valid values: AES128 | AES256 | AES128-GCM-16 | // AES256-GCM-16 - Phase1EncryptionAlgorithms []*Phase1EncryptionAlgorithmsRequestListValue + Phase1EncryptionAlgorithms []Phase1EncryptionAlgorithmsRequestListValue // One or more integrity algorithms that are permitted for the VPN tunnel for phase // 1 IKE negotiations. Valid values: SHA1 | SHA2-256 | SHA2-384 | SHA2-512 - Phase1IntegrityAlgorithms []*Phase1IntegrityAlgorithmsRequestListValue + Phase1IntegrityAlgorithms []Phase1IntegrityAlgorithmsRequestListValue // The lifetime for phase 1 of the IKE negotiation, in seconds. Constraints: A // value between 900 and 28,800. Default: 28800 - Phase1LifetimeSeconds *int32 + Phase1LifetimeSeconds int32 // One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel // for phase 2 IKE negotiations. Valid values: 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 // | 20 | 21 | 22 | 23 | 24 - Phase2DHGroupNumbers []*Phase2DHGroupNumbersRequestListValue + Phase2DHGroupNumbers []Phase2DHGroupNumbersRequestListValue // One or more encryption algorithms that are permitted for the VPN tunnel for // phase 2 IKE negotiations. Valid values: AES128 | AES256 | AES128-GCM-16 | // AES256-GCM-16 - Phase2EncryptionAlgorithms []*Phase2EncryptionAlgorithmsRequestListValue + Phase2EncryptionAlgorithms []Phase2EncryptionAlgorithmsRequestListValue // One or more integrity algorithms that are permitted for the VPN tunnel for phase // 2 IKE negotiations. Valid values: SHA1 | SHA2-256 | SHA2-384 | SHA2-512 - Phase2IntegrityAlgorithms []*Phase2IntegrityAlgorithmsRequestListValue + Phase2IntegrityAlgorithms []Phase2IntegrityAlgorithmsRequestListValue // The lifetime for phase 2 of the IKE negotiation, in seconds. Constraints: A // value between 900 and 3,600. The value must be less than the value for // Phase1LifetimeSeconds. Default: 3600 - Phase2LifetimeSeconds *int32 + Phase2LifetimeSeconds int32 // The pre-shared key (PSK) to establish initial authentication between the virtual // private gateway and the customer gateway. Constraints: Allowed characters are @@ -5532,17 +5532,17 @@ type ModifyVpnTunnelOptionsSpecification struct { // The percentage of the rekey window (determined by RekeyMarginTimeSeconds) during // which the rekey time is randomly selected. Constraints: A value between 0 and // 100. Default: 100 - RekeyFuzzPercentage *int32 + RekeyFuzzPercentage int32 // The margin time, in seconds, before the phase 2 lifetime expires, during which // the AWS side of the VPN connection performs an IKE rekey. The exact time of the // rekey is randomly selected based on the value for RekeyFuzzPercentage. // Constraints: A value between 60 and half of Phase2LifetimeSeconds. Default: 540 - RekeyMarginTimeSeconds *int32 + RekeyMarginTimeSeconds int32 // The number of packets in an IKE replay window. Constraints: A value between 64 // and 2048. Default: 1024 - ReplayWindowSize *int32 + ReplayWindowSize int32 // The action to take when the establishing the tunnel for the VPN connection. By // default, your customer gateway device must initiate the IKE negotiation and @@ -5639,7 +5639,7 @@ type NatGateway struct { // Information about the IP addresses and network interface associated with the NAT // gateway. - NatGatewayAddresses []*NatGatewayAddress + NatGatewayAddresses []NatGatewayAddress // The ID of the NAT gateway. NatGatewayId *string @@ -5673,7 +5673,7 @@ type NatGateway struct { SubnetId *string // The tags for the NAT gateway. - Tags []*Tag + Tags []Tag // The ID of the VPC in which the NAT gateway is located. VpcId *string @@ -5700,13 +5700,13 @@ type NatGatewayAddress struct { type NetworkAcl struct { // Any associations between the network ACL and one or more subnets - Associations []*NetworkAclAssociation + Associations []NetworkAclAssociation // One or more entries (rules) in the network ACL. - Entries []*NetworkAclEntry + Entries []NetworkAclEntry // Indicates whether this is the default network ACL for the VPC. - IsDefault *bool + IsDefault bool // The ID of the network ACL. NetworkAclId *string @@ -5715,7 +5715,7 @@ type NetworkAcl struct { OwnerId *string // Any tags assigned to the network ACL. - Tags []*Tag + Tags []Tag // The ID of the VPC for the network ACL. VpcId *string @@ -5742,7 +5742,7 @@ type NetworkAclEntry struct { // Indicates whether the rule is an egress rule (applied to traffic leaving the // subnet). - Egress *bool + Egress bool // ICMP protocol: The ICMP type and code. IcmpTypeCode *IcmpTypeCode @@ -5761,7 +5761,7 @@ type NetworkAclEntry struct { // The rule number for the entry. ACL entries are processed in ascending order by // rule number. - RuleNumber *int32 + RuleNumber int32 } // Describes the networking features of the instance type. @@ -5806,13 +5806,13 @@ type NetworkInterface struct { Description *string // Any security groups for the network interface. - Groups []*GroupIdentifier + Groups []GroupIdentifier // The type of network interface. InterfaceType NetworkInterfaceType // The IPv6 addresses associated with the network interface. - Ipv6Addresses []*NetworkInterfaceIpv6Address + Ipv6Addresses []NetworkInterfaceIpv6Address // The MAC address. MacAddress *string @@ -5833,17 +5833,17 @@ type NetworkInterface struct { PrivateIpAddress *string // The private IPv4 addresses associated with the network interface. - PrivateIpAddresses []*NetworkInterfacePrivateIpAddress + PrivateIpAddresses []NetworkInterfacePrivateIpAddress // The ID of the entity that launched the instance on your behalf (for example, AWS // Management Console or Auto Scaling). RequesterId *string // Indicates whether the network interface is being managed by AWS. - RequesterManaged *bool + RequesterManaged bool // Indicates whether traffic to or from the instance is validated. - SourceDestCheck *bool + SourceDestCheck bool // The status of the network interface. Status NetworkInterfaceStatus @@ -5852,7 +5852,7 @@ type NetworkInterface struct { SubnetId *string // Any tags assigned to the network interface. - TagSet []*Tag + TagSet []Tag // The ID of the VPC. VpcId *string @@ -5899,10 +5899,10 @@ type NetworkInterfaceAttachment struct { // Indicates whether the network interface is deleted when the instance is // terminated. - DeleteOnTermination *bool + DeleteOnTermination bool // The device index of the network interface attachment on the instance. - DeviceIndex *int32 + DeviceIndex int32 // The ID of the instance. InstanceId *string @@ -5922,7 +5922,7 @@ type NetworkInterfaceAttachmentChanges struct { // Indicates whether the network interface is deleted when the instance is // terminated. - DeleteOnTermination *bool + DeleteOnTermination bool } // Describes an IPv6 address associated with a network interface. @@ -5973,7 +5973,7 @@ type NetworkInterfacePrivateIpAddress struct { // Indicates whether this IPv4 address is the primary private IPv4 address of the // network interface. - Primary *bool + Primary bool // The private DNS name. PrivateDnsName *string @@ -5989,7 +5989,7 @@ type NewDhcpConfiguration struct { Key *string // One or more values for the DHCP option. - Values []*string + Values []string } // Describes the configuration of On-Demand Instances in an EC2 Fleet. @@ -6012,15 +6012,15 @@ type OnDemandOptions struct { // The minimum target capacity for On-Demand Instances in the fleet. If the minimum // target capacity is not reached, the fleet launches no instances. - MinTargetCapacity *int32 + MinTargetCapacity int32 // Indicates that the fleet launches all On-Demand Instances into a single // Availability Zone. Supported only for fleets of type instant. - SingleAvailabilityZone *bool + SingleAvailabilityZone bool // Indicates that the fleet uses a single instance type to launch all On-Demand // Instances in the fleet. Supported only for fleets of type instant. - SingleInstanceType *bool + SingleInstanceType bool } // Describes the configuration of On-Demand Instances in an EC2 Fleet. @@ -6043,15 +6043,15 @@ type OnDemandOptionsRequest struct { // The minimum target capacity for On-Demand Instances in the fleet. If the minimum // target capacity is not reached, the fleet launches no instances. - MinTargetCapacity *int32 + MinTargetCapacity int32 // Indicates that the fleet launches all On-Demand Instances into a single // Availability Zone. Supported only for fleets of type instant. - SingleAvailabilityZone *bool + SingleAvailabilityZone bool // Indicates that the fleet uses a single instance type to launch all On-Demand // Instances in the fleet. Supported only for fleets of type instant. - SingleInstanceType *bool + SingleInstanceType bool } // Describes the data that identifies an Amazon FPGA image (AFI) on the PCI bus. @@ -6085,15 +6085,15 @@ type PeeringConnectionOptions struct { // If true, the public DNS hostnames of instances in the specified VPC resolve to // private IP addresses when queried from instances in the peer VPC. - AllowDnsResolutionFromRemoteVpc *bool + AllowDnsResolutionFromRemoteVpc bool // If true, enables outbound communication from an EC2-Classic instance that's // linked to a local VPC using ClassicLink to instances in a peer VPC. - AllowEgressFromLocalClassicLinkToRemoteVpc *bool + AllowEgressFromLocalClassicLinkToRemoteVpc bool // If true, enables outbound communication from instances in a local VPC to an // EC2-Classic instance that's linked to a peer VPC using ClassicLink. - AllowEgressFromLocalVpcToRemoteClassicLink *bool + AllowEgressFromLocalVpcToRemoteClassicLink bool } // The VPC peering connection options. @@ -6101,15 +6101,15 @@ type PeeringConnectionOptionsRequest struct { // If true, enables a local VPC to resolve public DNS hostnames to private IP // addresses when queried from instances in the peer VPC. - AllowDnsResolutionFromRemoteVpc *bool + AllowDnsResolutionFromRemoteVpc bool // If true, enables outbound communication from an EC2-Classic instance that's // linked to a local VPC using ClassicLink to instances in a peer VPC. - AllowEgressFromLocalClassicLinkToRemoteVpc *bool + AllowEgressFromLocalClassicLinkToRemoteVpc bool // If true, enables outbound communication from instances in a local VPC to an // EC2-Classic instance that's linked to a peer VPC using ClassicLink. - AllowEgressFromLocalVpcToRemoteClassicLink *bool + AllowEgressFromLocalVpcToRemoteClassicLink bool } // Information about the transit gateway in the peering attachment. @@ -6129,7 +6129,7 @@ type PeeringTgwInfo struct { type Phase1DHGroupNumbersListValue struct { // The Diffie-Hellmann group number. - Value *int32 + Value int32 } // Specifies a Diffie-Hellman group number for the VPN tunnel for phase 1 IKE @@ -6137,7 +6137,7 @@ type Phase1DHGroupNumbersListValue struct { type Phase1DHGroupNumbersRequestListValue struct { // The Diffie-Hellmann group number. - Value *int32 + Value int32 } // The encryption algorithm for phase 1 IKE negotiations. @@ -6174,7 +6174,7 @@ type Phase1IntegrityAlgorithmsRequestListValue struct { type Phase2DHGroupNumbersListValue struct { // The Diffie-Hellmann group number. - Value *int32 + Value int32 } // Specifies a Diffie-Hellman group number for the VPN tunnel for phase 2 IKE @@ -6182,7 +6182,7 @@ type Phase2DHGroupNumbersListValue struct { type Phase2DHGroupNumbersRequestListValue struct { // The Diffie-Hellmann group number. - Value *int32 + Value int32 } // The encryption algorithm for phase 2 IKE negotiations. @@ -6251,7 +6251,7 @@ type Placement struct { // group strategy is set to partition. This parameter is not supported by // CreateFleet // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). - PartitionNumber *int32 + PartitionNumber int32 // Reserved for future use. This parameter is not supported by CreateFleet // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). @@ -6276,7 +6276,7 @@ type PlacementGroup struct { GroupName *string // The number of partitions. Valid only if strategy is set to partition. - PartitionCount *int32 + PartitionCount int32 // The state of the placement group. State PlacementGroupState @@ -6285,7 +6285,7 @@ type PlacementGroup struct { Strategy PlacementStrategy // Any tags applied to the placement group. - Tags []*Tag + Tags []Tag } // Describes the placement group support of the instance type. @@ -6313,17 +6313,17 @@ type PoolCidrBlock struct { type PortRange struct { // The first port in the range. - From *int32 + From int32 // The last port in the range. - To *int32 + To int32 } // Describes prefixes for AWS services. type PrefixList struct { // The IP address range of the AWS service. - Cidrs []*string + Cidrs []string // The ID of the prefix. PrefixListId *string @@ -6375,18 +6375,18 @@ type PriceSchedule struct { // covering the first three months of the remaining term, will be active during // months 5, 4, and 3. Then schedule 2, covering the last two months of the term, // will be active for months 2 and 1. - Active *bool + Active bool // The currency for transacting the Reserved Instance resale. At this time, the // only supported currency is USD. CurrencyCode CurrencyCodeValues // The fixed price for the term. - Price *float64 + Price float64 // The number of months remaining in the reservation. For example, 2 is the second // to the last month before the capacity reservation expires. - Term *int64 + Term int64 } // Describes the price for a Reserved Instance. @@ -6397,21 +6397,21 @@ type PriceScheduleSpecification struct { CurrencyCode CurrencyCodeValues // The fixed price for the term. - Price *float64 + Price float64 // The number of months remaining in the reservation. For example, 2 is the second // to the last month before the capacity reservation expires. - Term *int64 + Term int64 } // Describes a Reserved Instance offering. type PricingDetail struct { // The number of reservations available for the price. - Count *int32 + Count int32 // The price per instance. - Price *float64 + Price float64 } // PrincipalIdFormat description @@ -6421,7 +6421,7 @@ type PrincipalIdFormat struct { Arn *string // PrincipalIdFormatStatuses description - Statuses []*IdFormat + Statuses []IdFormat } // Information about the private DNS name for the service endpoint. For more @@ -6452,7 +6452,7 @@ type PrivateIpAddressSpecification struct { // Indicates whether the private IPv4 address is the primary private IPv4 address. // Only one IPv4 address can be designated as primary. - Primary *bool + Primary bool // The private IPv4 addresses. PrivateIpAddress *string @@ -6528,29 +6528,29 @@ type PublicIpv4Pool struct { NetworkBorderGroup *string // The address ranges. - PoolAddressRanges []*PublicIpv4PoolRange + PoolAddressRanges []PublicIpv4PoolRange // The ID of the address pool. PoolId *string // Any tags for the address pool. - Tags []*Tag + Tags []Tag // The total number of addresses. - TotalAddressCount *int32 + TotalAddressCount int32 // The total number of available addresses. - TotalAvailableAddressCount *int32 + TotalAvailableAddressCount int32 } // Describes an address range of an IPv4 address pool. type PublicIpv4PoolRange struct { // The number of addresses in the range. - AddressCount *int32 + AddressCount int32 // The number of available addresses in the range. - AvailableAddressCount *int32 + AvailableAddressCount int32 // The first IP address in the range. FirstAddress *string @@ -6567,10 +6567,10 @@ type Purchase struct { CurrencyCode CurrencyCodeValues // The duration of the reservation's term in seconds. - Duration *int32 + Duration int32 // The IDs of the Dedicated Hosts associated with the reservation. - HostIdSet []*string + HostIdSet []string // The ID of the reservation. HostReservationId *string @@ -6595,7 +6595,7 @@ type PurchaseRequest struct { // The number of instances. // // This member is required. - InstanceCount *int32 + InstanceCount int32 // The purchase token. // @@ -6607,7 +6607,7 @@ type PurchaseRequest struct { type RecurringCharge struct { // The amount of the recurring charge. - Amount *float64 + Amount float64 // The frequency of the recurring charge. Frequency RecurringChargeFrequency @@ -6635,10 +6635,10 @@ type RegisterInstanceTagAttributeRequest struct { // Indicates whether to register all tag keys in the current Region. Specify true // to register all tag keys. - IncludeAllTagsOfInstance *bool + IncludeAllTagsOfInstance bool // The tag keys to register. - InstanceTagKeys []*string + InstanceTagKeys []string } // An entry for a prefix list. @@ -6654,7 +6654,7 @@ type RemovePrefixListEntry struct { type RequestLaunchTemplateData struct { // The block device mapping. - BlockDeviceMappings []*LaunchTemplateBlockDeviceMappingRequest + BlockDeviceMappings []LaunchTemplateBlockDeviceMappingRequest // The Capacity Reservation targeting option. If you do not specify this parameter, // the instance's Capacity Reservation preference defaults to open, which enables @@ -6678,20 +6678,20 @@ type RequestLaunchTemplateData struct { // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceAttribute.html). // Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you // can terminate the instance by running the shutdown command from the instance. - DisableApiTermination *bool + DisableApiTermination bool // Indicates whether the instance is optimized for Amazon EBS I/O. This // optimization provides dedicated throughput to Amazon EBS and an optimized // configuration stack to provide optimal Amazon EBS I/O performance. This // optimization isn't available with all instance types. Additional usage charges // apply when using an EBS-optimized instance. - EbsOptimized *bool + EbsOptimized bool // An elastic GPU to associate with the instance. - ElasticGpuSpecifications []*ElasticGpuSpecification + ElasticGpuSpecifications []ElasticGpuSpecification // The elastic inference accelerator for the instance. - ElasticInferenceAccelerators []*LaunchTemplateElasticInferenceAccelerator + ElasticInferenceAccelerators []LaunchTemplateElasticInferenceAccelerator // Indicates whether the instance is enabled for AWS Nitro Enclaves. For more // information, see AWS Nitro Enclaves @@ -6745,7 +6745,7 @@ type RequestLaunchTemplateData struct { KeyName *string // The license configurations. - LicenseSpecifications []*LaunchTemplateLicenseConfigurationRequest + LicenseSpecifications []LaunchTemplateLicenseConfigurationRequest // The metadata options for the instance. For more information, see Instance // Metadata and User Data @@ -6758,7 +6758,7 @@ type RequestLaunchTemplateData struct { // One or more network interfaces. If you specify a network interface, you must // specify any security groups and subnets as part of the network interface. - NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecificationRequest + NetworkInterfaces []LaunchTemplateInstanceNetworkInterfaceSpecificationRequest // The placement for the instance. Placement *LaunchTemplatePlacementRequest @@ -6774,19 +6774,19 @@ type RequestLaunchTemplateData struct { // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html). // You cannot specify both a security group ID and security name in the same // request. - SecurityGroupIds []*string + SecurityGroupIds []string // [EC2-Classic, default VPC] One or more security group names. For a nondefault // VPC, you must use security group IDs instead. You cannot specify both a security // group ID and security name in the same request. - SecurityGroups []*string + SecurityGroups []string // The tags to apply to the resources during launch. You can only tag instances and // volumes on launch. The specified tags are applied to all instances or volumes // that are created during launch. To tag a resource after it has been created, see // CreateTags // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). - TagSpecifications []*LaunchTemplateTagSpecificationRequest + TagSpecifications []LaunchTemplateTagSpecificationRequest // The Base64-encoded user data to make available to the instance. For more // information, see Running Commands on Your Linux Instance at Launch @@ -6807,14 +6807,14 @@ type RequestSpotLaunchSpecification struct { // and an encryption value. This is because only blank volumes can be encrypted on // creation. If a snapshot is the basis for a volume, it is not blank and its // encryption status is used for the volume encryption status. - BlockDeviceMappings []*BlockDeviceMapping + BlockDeviceMappings []BlockDeviceMapping // Indicates whether the instance is optimized for EBS I/O. This optimization // provides dedicated throughput to Amazon EBS and an optimized configuration stack // to provide optimal EBS I/O performance. This optimization isn't available with // all instance types. Additional usage charges apply when using an EBS Optimized // instance. Default: false - EbsOptimized *bool + EbsOptimized bool // The IAM instance profile. IamInstanceProfile *IamInstanceProfileSpecification @@ -6837,7 +6837,7 @@ type RequestSpotLaunchSpecification struct { // One or more network interfaces. If you specify a network interface, you must // specify subnet IDs and security group IDs using the network interface. - NetworkInterfaces []*InstanceNetworkInterfaceSpecification + NetworkInterfaces []InstanceNetworkInterfaceSpecification // The placement information for the instance. Placement *SpotPlacement @@ -6846,12 +6846,12 @@ type RequestSpotLaunchSpecification struct { RamdiskId *string // One or more security group IDs. - SecurityGroupIds []*string + SecurityGroupIds []string // One or more security groups. When requesting instances in a VPC, you must // specify the IDs of the security groups. When requesting instances in // EC2-Classic, you can specify the names or the IDs of the security groups. - SecurityGroups []*string + SecurityGroups []string // The IDs of the subnets in which to launch the instance. To specify multiple // subnets, separate them using commas; for example, "subnet-1234abcdeexample1, @@ -6868,10 +6868,10 @@ type RequestSpotLaunchSpecification struct { type Reservation struct { // [EC2-Classic only] The security groups. - Groups []*GroupIdentifier + Groups []GroupIdentifier // The instances. - Instances []*Instance + Instances []Instance // The ID of the AWS account that owns the reservation. OwnerId *string @@ -6903,7 +6903,7 @@ type ReservedInstanceLimitPrice struct { // Used for Reserved Instance Marketplace offerings. Specifies the limit price on // the total order (instanceCount * price). - Amount *float64 + Amount float64 // The currency in which the limitPrice amount is specified. At this time, the only // supported currency is USD. @@ -6931,16 +6931,16 @@ type ReservedInstances struct { CurrencyCode CurrencyCodeValues // The duration of the Reserved Instance, in seconds. - Duration *int64 + Duration int64 // The time when the Reserved Instance expires. End *time.Time // The purchase price of the Reserved Instance. - FixedPrice *float32 + FixedPrice float32 // The number of reservations purchased. - InstanceCount *int32 + InstanceCount int32 // The tenancy of the instance. InstanceTenancy Tenancy @@ -6958,7 +6958,7 @@ type ReservedInstances struct { ProductDescription RIProductDescription // The recurring charge tag assigned to the resource. - RecurringCharges []*RecurringCharge + RecurringCharges []RecurringCharge // The ID of the Reserved Instance. ReservedInstancesId *string @@ -6973,10 +6973,10 @@ type ReservedInstances struct { State ReservedInstanceState // Any tags assigned to the resource. - Tags []*Tag + Tags []Tag // The usage price of the Reserved Instance, per hour. - UsagePrice *float32 + UsagePrice float32 } // Describes the configuration settings for the modified Reserved Instances. @@ -6987,7 +6987,7 @@ type ReservedInstancesConfiguration struct { // The number of modified Reserved Instances. This is a required field for a // request. - InstanceCount *int32 + InstanceCount int32 // The instance type for the modified Reserved Instances. InstanceType InstanceType @@ -7020,10 +7020,10 @@ type ReservedInstancesListing struct { CreateDate *time.Time // The number of instances in this state. - InstanceCounts []*InstanceCount + InstanceCounts []InstanceCount // The price of the Reserved Instance listing. - PriceSchedules []*PriceSchedule + PriceSchedules []PriceSchedule // The ID of the Reserved Instance. ReservedInstancesId *string @@ -7039,7 +7039,7 @@ type ReservedInstancesListing struct { StatusMessage *string // Any tags assigned to the resource. - Tags []*Tag + Tags []Tag // The last modified timestamp of the listing. UpdateDate *time.Time @@ -7061,10 +7061,10 @@ type ReservedInstancesModification struct { // Contains target configurations along with their corresponding new Reserved // Instance IDs. - ModificationResults []*ReservedInstancesModificationResult + ModificationResults []ReservedInstancesModificationResult // The IDs of one or more Reserved Instances. - ReservedInstancesIds []*ReservedInstancesId + ReservedInstancesIds []ReservedInstancesId // A unique ID for the Reserved Instance modification. ReservedInstancesModificationId *string @@ -7103,10 +7103,10 @@ type ReservedInstancesOffering struct { CurrencyCode CurrencyCodeValues // The duration of the Reserved Instance, in seconds. - Duration *int64 + Duration int64 // The purchase price of the Reserved Instance. - FixedPrice *float32 + FixedPrice float32 // The tenancy of the instance. InstanceTenancy Tenancy @@ -7117,7 +7117,7 @@ type ReservedInstancesOffering struct { // Indicates whether the offering is available through the Reserved Instance // Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, // this is true. - Marketplace *bool + Marketplace bool // If convertible it can be exchanged for Reserved Instances of the same or higher // monetary value, with different configurations. If standard, it is not possible @@ -7128,13 +7128,13 @@ type ReservedInstancesOffering struct { OfferingType OfferingTypeValues // The pricing details of the Reserved Instance offering. - PricingDetails []*PricingDetail + PricingDetails []PricingDetail // The Reserved Instance product platform description. ProductDescription RIProductDescription // The recurring charge tag assigned to the resource. - RecurringCharges []*RecurringCharge + RecurringCharges []RecurringCharge // The ID of the Reserved Instance offering. This is the offering ID used in // GetReservedInstancesExchangeQuote to confirm that an exchange can be made. @@ -7145,7 +7145,7 @@ type ReservedInstancesOffering struct { Scope Scope // The usage price of the Reserved Instance, per hour. - UsagePrice *float32 + UsagePrice float32 } // Describes the error that's returned when you cannot delete a launch template @@ -7163,7 +7163,7 @@ type ResponseError struct { type ResponseLaunchTemplateData struct { // The block device mappings. - BlockDeviceMappings []*LaunchTemplateBlockDeviceMapping + BlockDeviceMappings []LaunchTemplateBlockDeviceMapping // Information about the Capacity Reservation targeting option. CapacityReservationSpecification *LaunchTemplateCapacityReservationSpecificationResponse @@ -7179,16 +7179,16 @@ type ResponseLaunchTemplateData struct { // If set to true, indicates that the instance cannot be terminated using the // Amazon EC2 console, command line tool, or API. - DisableApiTermination *bool + DisableApiTermination bool // Indicates whether the instance is optimized for Amazon EBS I/O. - EbsOptimized *bool + EbsOptimized bool // The elastic GPU specification. - ElasticGpuSpecifications []*ElasticGpuSpecificationResponse + ElasticGpuSpecifications []ElasticGpuSpecificationResponse // The elastic inference accelerator for the instance. - ElasticInferenceAccelerators []*LaunchTemplateElasticInferenceAcceleratorResponse + ElasticInferenceAccelerators []LaunchTemplateElasticInferenceAcceleratorResponse // Indicates whether the instance is enabled for AWS Nitro Enclaves. EnclaveOptions *LaunchTemplateEnclaveOptions @@ -7222,7 +7222,7 @@ type ResponseLaunchTemplateData struct { KeyName *string // The license configurations. - LicenseSpecifications []*LaunchTemplateLicenseConfiguration + LicenseSpecifications []LaunchTemplateLicenseConfiguration // The metadata options for the instance. For more information, see Instance // Metadata and User Data @@ -7234,7 +7234,7 @@ type ResponseLaunchTemplateData struct { Monitoring *LaunchTemplatesMonitoring // The network interfaces. - NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecification + NetworkInterfaces []LaunchTemplateInstanceNetworkInterfaceSpecification // The placement of the instance. Placement *LaunchTemplatePlacement @@ -7243,13 +7243,13 @@ type ResponseLaunchTemplateData struct { RamDiskId *string // The security group IDs. - SecurityGroupIds []*string + SecurityGroupIds []string // The security group names. - SecurityGroups []*string + SecurityGroups []string // The tags. - TagSpecifications []*LaunchTemplateTagSpecification + TagSpecifications []LaunchTemplateTagSpecification // The user data for the instance. UserData *string @@ -7319,22 +7319,22 @@ type Route struct { type RouteTable struct { // The associations between the route table and one or more subnets or a gateway. - Associations []*RouteTableAssociation + Associations []RouteTableAssociation // The ID of the AWS account that owns the route table. OwnerId *string // Any virtual private gateway (VGW) propagating routes. - PropagatingVgws []*PropagatingVgw + PropagatingVgws []PropagatingVgw // The ID of the route table. RouteTableId *string // The routes in the route table. - Routes []*Route + Routes []Route // Any tags assigned to the route table. - Tags []*Tag + Tags []Tag // The ID of the VPC. VpcId *string @@ -7350,7 +7350,7 @@ type RouteTableAssociation struct { GatewayId *string // Indicates whether this is the main route table. - Main *bool + Main bool // The ID of the association. RouteTableAssociationId *string @@ -7380,7 +7380,7 @@ type RunInstancesMonitoringEnabled struct { // enabled. // // This member is required. - Enabled *bool + Enabled bool } // Describes the storage parameters for S3 and S3 buckets for an instance @@ -7422,7 +7422,7 @@ type ScheduledInstance struct { HourlyPrice *string // The number of instances. - InstanceCount *int32 + InstanceCount int32 // The instance type. InstanceType *string @@ -7446,7 +7446,7 @@ type ScheduledInstance struct { ScheduledInstanceId *string // The number of hours in the schedule. - SlotDurationInHours *int32 + SlotDurationInHours int32 // The end date for the Scheduled Instance. TermEndDate *time.Time @@ -7455,7 +7455,7 @@ type ScheduledInstance struct { TermStartDate *time.Time // The total number of hours for a single instance for the entire term. - TotalScheduledInstanceHours *int32 + TotalScheduledInstanceHours int32 } // Describes a schedule that is available for your Scheduled Instances. @@ -7465,7 +7465,7 @@ type ScheduledInstanceAvailability struct { AvailabilityZone *string // The number of available instances. - AvailableInstanceCount *int32 + AvailableInstanceCount int32 // The time period for the first schedule to start. FirstSlotStartTime *time.Time @@ -7477,10 +7477,10 @@ type ScheduledInstanceAvailability struct { InstanceType *string // The maximum term. The only possible value is 365 days. - MaxTermDurationInDays *int32 + MaxTermDurationInDays int32 // The minimum term. The only possible value is 365 days. - MinTermDurationInDays *int32 + MinTermDurationInDays int32 // The network platform (EC2-Classic or EC2-VPC). NetworkPlatform *string @@ -7495,10 +7495,10 @@ type ScheduledInstanceAvailability struct { Recurrence *ScheduledInstanceRecurrence // The number of hours in the schedule. - SlotDurationInHours *int32 + SlotDurationInHours int32 // The total number of hours for a single instance for the entire term. - TotalScheduledInstanceHours *int32 + TotalScheduledInstanceHours int32 } // Describes the recurring schedule for a Scheduled Instance. @@ -7509,16 +7509,16 @@ type ScheduledInstanceRecurrence struct { // The interval quantity. The interval unit depends on the value of frequency. For // example, every 2 weeks or every 2 months. - Interval *int32 + Interval int32 // The days. For a monthly schedule, this is one or more days of the month (1-31). // For a weekly schedule, this is one or more days of the week (1-7, where 1 is // Sunday). - OccurrenceDaySet []*int32 + OccurrenceDaySet []int32 // Indicates whether the occurrence is relative to the end of the specified week or // month. - OccurrenceRelativeToEnd *bool + OccurrenceRelativeToEnd bool // The unit for occurrenceDaySet (DayOfWeek or DayOfMonth). OccurrenceUnit *string @@ -7532,17 +7532,17 @@ type ScheduledInstanceRecurrenceRequest struct { // The interval quantity. The interval unit depends on the value of Frequency. For // example, every 2 weeks or every 2 months. - Interval *int32 + Interval int32 // The days. For a monthly schedule, this is one or more days of the month (1-31). // For a weekly schedule, this is one or more days of the week (1-7, where 1 is // Sunday). You can't specify this value with a daily schedule. If the occurrence // is relative to the end of the month, you can specify only a single day. - OccurrenceDays []*int32 + OccurrenceDays []int32 // Indicates whether the occurrence is relative to the end of the specified week or // month. You can't specify this value with a daily schedule. - OccurrenceRelativeToEnd *bool + OccurrenceRelativeToEnd bool // The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required // for a monthly schedule. You can't specify DayOfWeek with a weekly schedule. You @@ -7578,11 +7578,11 @@ type ScheduledInstancesBlockDeviceMapping struct { type ScheduledInstancesEbs struct { // Indicates whether the volume is deleted on instance termination. - DeleteOnTermination *bool + DeleteOnTermination bool // Indicates whether the volume is encrypted. You can attached encrypted volumes // only to instances that support them. - Encrypted *bool + Encrypted bool // The number of I/O operations per second (IOPS) to provision for an io1 or io2 // volume, with a maximum ratio of 50 IOPS/GiB for io1, and 500 IOPS/GiB for io2. @@ -7594,14 +7594,14 @@ type ScheduledInstancesEbs struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) in the // Amazon Elastic Compute Cloud User Guide. This parameter is valid only for // Provisioned IOPS SSD (io1 and io2) volumes. - Iops *int32 + Iops int32 // The ID of the snapshot. SnapshotId *string // The size of the volume, in GiB. Default: If you're creating the volume from a // snapshot and don't specify a volume size, the default is the snapshot size. - VolumeSize *int32 + VolumeSize int32 // The volume type. gp2 for General Purpose SSD, io1 or io2 for Provisioned IOPS // SSD, Throughput Optimized HDD for st1, Cold HDD for sc1, or standard for @@ -7637,14 +7637,14 @@ type ScheduledInstancesLaunchSpecification struct { ImageId *string // The block device mapping entries. - BlockDeviceMappings []*ScheduledInstancesBlockDeviceMapping + BlockDeviceMappings []ScheduledInstancesBlockDeviceMapping // Indicates whether the instances are optimized for EBS I/O. This optimization // provides dedicated throughput to Amazon EBS and an optimized configuration stack // to provide optimal EBS I/O performance. This optimization isn't available with // all instance types. Additional usage charges apply when using an EBS-optimized // instance. Default: false - EbsOptimized *bool + EbsOptimized bool // The IAM instance profile. IamInstanceProfile *ScheduledInstancesIamInstanceProfile @@ -7662,7 +7662,7 @@ type ScheduledInstancesLaunchSpecification struct { Monitoring *ScheduledInstancesMonitoring // The network interfaces. - NetworkInterfaces []*ScheduledInstancesNetworkInterface + NetworkInterfaces []ScheduledInstancesNetworkInterface // The placement information. Placement *ScheduledInstancesPlacement @@ -7671,7 +7671,7 @@ type ScheduledInstancesLaunchSpecification struct { RamdiskId *string // The IDs of the security groups. - SecurityGroupIds []*string + SecurityGroupIds []string // The ID of the subnet in which to launch the instances. SubnetId *string @@ -7684,7 +7684,7 @@ type ScheduledInstancesLaunchSpecification struct { type ScheduledInstancesMonitoring struct { // Indicates whether monitoring is enabled. - Enabled *bool + Enabled bool } // Describes a network interface for a Scheduled Instance. @@ -7695,26 +7695,26 @@ type ScheduledInstancesNetworkInterface struct { // eth0, and can only be assigned to a new network interface, not an existing one. // You cannot specify more than one network interface in the request. If launching // into a default subnet, the default value is true. - AssociatePublicIpAddress *bool + AssociatePublicIpAddress bool // Indicates whether to delete the interface when the instance is terminated. - DeleteOnTermination *bool + DeleteOnTermination bool // The description. Description *string // The index of the device for the network interface attachment. - DeviceIndex *int32 + DeviceIndex int32 // The IDs of the security groups. - Groups []*string + Groups []string // The number of IPv6 addresses to assign to the network interface. The IPv6 // addresses are automatically selected from the subnet range. - Ipv6AddressCount *int32 + Ipv6AddressCount int32 // The specific IPv6 addresses from the subnet range. - Ipv6Addresses []*ScheduledInstancesIpv6Address + Ipv6Addresses []ScheduledInstancesIpv6Address // The ID of the network interface. NetworkInterfaceId *string @@ -7723,10 +7723,10 @@ type ScheduledInstancesNetworkInterface struct { PrivateIpAddress *string // The private IPv4 addresses. - PrivateIpAddressConfigs []*ScheduledInstancesPrivateIpAddressConfig + PrivateIpAddressConfigs []ScheduledInstancesPrivateIpAddressConfig // The number of secondary private IPv4 addresses. - SecondaryPrivateIpAddressCount *int32 + SecondaryPrivateIpAddressCount int32 // The ID of the subnet. SubnetId *string @@ -7747,7 +7747,7 @@ type ScheduledInstancesPrivateIpAddressConfig struct { // Indicates whether this is a primary IPv4 address. Otherwise, this is a secondary // IPv4 address. - Primary *bool + Primary bool // The IPv4 address. PrivateIpAddress *string @@ -7766,16 +7766,16 @@ type SecurityGroup struct { GroupName *string // The inbound rules associated with the security group. - IpPermissions []*IpPermission + IpPermissions []IpPermission // [VPC only] The outbound rules associated with the security group. - IpPermissionsEgress []*IpPermission + IpPermissionsEgress []IpPermission // The AWS account ID of the owner of the security group. OwnerId *string // Any tags assigned to the security group. - Tags []*Tag + Tags []Tag // [VPC only] The ID of the VPC for the security group. VpcId *string @@ -7809,20 +7809,20 @@ type ServiceConfiguration struct { // Indicates whether requests from other AWS accounts to create an endpoint to the // service must first be accepted. - AcceptanceRequired *bool + AcceptanceRequired bool // The Availability Zones in which the service is available. - AvailabilityZones []*string + AvailabilityZones []string // The DNS names for the service. - BaseEndpointDnsNames []*string + BaseEndpointDnsNames []string // Indicates whether the service manages its VPC endpoints. Management of the // service VPC endpoints using the VPC endpoint API is restricted. - ManagesVpcEndpoints *bool + ManagesVpcEndpoints bool // The Amazon Resource Names (ARNs) of the Network Load Balancers for the service. - NetworkLoadBalancerArns []*string + NetworkLoadBalancerArns []string // The private DNS name for the service. PrivateDnsName *string @@ -7840,10 +7840,10 @@ type ServiceConfiguration struct { ServiceState ServiceState // The type of service. - ServiceType []*ServiceTypeDetail + ServiceType []ServiceTypeDetail // Any tags assigned to the service. - Tags []*Tag + Tags []Tag } // Describes a VPC endpoint service. @@ -7851,17 +7851,17 @@ type ServiceDetail struct { // Indicates whether VPC endpoint connection requests to the service must be // accepted by the service owner. - AcceptanceRequired *bool + AcceptanceRequired bool // The Availability Zones in which the service is available. - AvailabilityZones []*string + AvailabilityZones []string // The DNS names for the service. - BaseEndpointDnsNames []*string + BaseEndpointDnsNames []string // Indicates whether the service manages its VPC endpoints. Management of the // service VPC endpoints using the VPC endpoint API is restricted. - ManagesVpcEndpoints *bool + ManagesVpcEndpoints bool // The AWS account ID of the service owner. Owner *string @@ -7880,13 +7880,13 @@ type ServiceDetail struct { ServiceName *string // The type of service. - ServiceType []*ServiceTypeDetail + ServiceType []ServiceTypeDetail // Any tags assigned to the service. - Tags []*Tag + Tags []Tag // Indicates whether the service supports endpoint policies. - VpcEndpointPolicySupported *bool + VpcEndpointPolicySupported bool } // Describes the type of service for a VPC endpoint. @@ -7938,7 +7938,7 @@ type Snapshot struct { Description *string // Indicates whether the snapshot is encrypted. - Encrypted *bool + Encrypted bool // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) // customer master key (CMK) that was used to protect the volume encryption key for @@ -7975,7 +7975,7 @@ type Snapshot struct { StateMessage *string // Any tags assigned to the snapshot. - Tags []*Tag + Tags []Tag // The ID of the volume that was used to create the snapshot. Snapshots created by // the CopySnapshot action have an arbitrary volume ID that should not be used for @@ -7983,7 +7983,7 @@ type Snapshot struct { VolumeId *string // The size of the volume, in GiB. - VolumeSize *int32 + VolumeSize int32 } // Describes the snapshot created from the imported disk. @@ -7996,7 +7996,7 @@ type SnapshotDetail struct { DeviceName *string // The size of the disk in the snapshot, in GiB. - DiskImageSize *float64 + DiskImageSize float64 // The format of the disk image from which the snapshot is created. Format *string @@ -8045,7 +8045,7 @@ type SnapshotInfo struct { Description *string // Indicates whether the snapshot is encrypted. - Encrypted *bool + Encrypted bool // Account id used when creating this snapshot. OwnerId *string @@ -8064,13 +8064,13 @@ type SnapshotInfo struct { State SnapshotState // Tags associated with this snapshot. - Tags []*Tag + Tags []Tag // Source volume from which this snapshot was created. VolumeId *string // Size of the volume from which this snapshot was created. - VolumeSize *int32 + VolumeSize int32 } // Details about the import snapshot task. @@ -8080,10 +8080,10 @@ type SnapshotTaskDetail struct { Description *string // The size of the disk in the snapshot, in GiB. - DiskImageSize *float64 + DiskImageSize float64 // Indicates whether the snapshot is encrypted. - Encrypted *bool + Encrypted bool // The format of the disk image from which the snapshot is created. Format *string @@ -8145,14 +8145,14 @@ type SpotFleetLaunchSpecification struct { // volumes can be encrypted on creation. If a snapshot is the basis for a volume, // it is not blank and its encryption status is used for the volume encryption // status. - BlockDeviceMappings []*BlockDeviceMapping + BlockDeviceMappings []BlockDeviceMapping // Indicates whether the instances are optimized for EBS I/O. This optimization // provides dedicated throughput to Amazon EBS and an optimized configuration stack // to provide optimal EBS I/O performance. This optimization isn't available with // all instance types. Additional usage charges apply when using an EBS Optimized // instance. Default: false - EbsOptimized *bool + EbsOptimized bool // The IAM instance profile. IamInstanceProfile *IamInstanceProfileSpecification @@ -8177,7 +8177,7 @@ type SpotFleetLaunchSpecification struct { // SpotFleetLaunchSpecification currently does not support Elastic Fabric Adapter // (EFA). To specify an EFA, you must use LaunchTemplateConfig // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_LaunchTemplateConfig.html). - NetworkInterfaces []*InstanceNetworkInterfaceSpecification + NetworkInterfaces []InstanceNetworkInterfaceSpecification // The placement information. Placement *SpotPlacement @@ -8191,7 +8191,7 @@ type SpotFleetLaunchSpecification struct { // One or more security groups. When requesting instances in a VPC, you must // specify the IDs of the security groups. When requesting instances in // EC2-Classic, you can specify the names or the IDs of the security groups. - SecurityGroups []*GroupIdentifier + SecurityGroups []GroupIdentifier // The maximum price per unit hour that you are willing to pay for a Spot Instance. // If this value is not specified, the default is the Spot price specified for the @@ -8205,7 +8205,7 @@ type SpotFleetLaunchSpecification struct { SubnetId *string // The tags to apply during creation. - TagSpecifications []*SpotFleetTagSpecification + TagSpecifications []SpotFleetTagSpecification // The Base64-encoded user data that instances use when starting up. UserData *string @@ -8216,14 +8216,14 @@ type SpotFleetLaunchSpecification struct { // divided by this value is not a whole number, Amazon EC2 rounds the number of // instances to the next whole number. If this value is not specified, the default // is 1. - WeightedCapacity *float64 + WeightedCapacity float64 } // Describes whether monitoring is enabled. type SpotFleetMonitoring struct { // Enables monitoring for the instance. Default: false - Enabled *bool + Enabled bool } // Describes a Spot Fleet request. @@ -8249,7 +8249,7 @@ type SpotFleetRequestConfig struct { SpotFleetRequestState BatchState // The tags for a Spot Fleet resource. - Tags []*Tag + Tags []Tag } // Describes the configuration of a Spot Fleet request. @@ -8277,7 +8277,7 @@ type SpotFleetRequestConfigData struct { // capacity later. // // This member is required. - TargetCapacity *int32 + TargetCapacity int32 // Indicates how to allocate the target Spot Instance capacity across the Spot // Instance pools specified by the Spot Fleet request. If the allocation strategy @@ -8302,7 +8302,7 @@ type SpotFleetRequestConfigData struct { // The number of units fulfilled by this request compared to the set target // capacity. You cannot set this value. - FulfilledCapacity *float64 + FulfilledCapacity float64 // The behavior when a Spot Instance is interrupted. The default is terminate. InstanceInterruptionBehavior InstanceInterruptionBehavior @@ -8311,17 +8311,17 @@ type SpotFleetRequestConfigData struct { // Valid only when Spot AllocationStrategy is set to lowest-price. Spot Fleet // selects the cheapest Spot pools and evenly allocates your target Spot capacity // across the number of Spot pools that you specify. - InstancePoolsToUseCount *int32 + InstancePoolsToUseCount int32 // The launch specifications for the Spot Fleet request. If you specify // LaunchSpecifications, you can't specify LaunchTemplateConfigs. If you include // On-Demand capacity in your request, you must use LaunchTemplateConfigs. - LaunchSpecifications []*SpotFleetLaunchSpecification + LaunchSpecifications []SpotFleetLaunchSpecification // The launch template and overrides. If you specify LaunchTemplateConfigs, you // can't specify LaunchSpecifications. If you include On-Demand capacity in your // request, you must use LaunchTemplateConfigs. - LaunchTemplateConfigs []*LaunchTemplateConfig + LaunchTemplateConfigs []LaunchTemplateConfig // One or more Classic Load Balancers and target groups to attach to the Spot Fleet // request. Spot Fleet registers the running Spot Instances with the specified @@ -8340,7 +8340,7 @@ type SpotFleetRequestConfigData struct { // The number of On-Demand units fulfilled by this request compared to the set // target On-Demand capacity. - OnDemandFulfilledCapacity *float64 + OnDemandFulfilledCapacity float64 // The maximum amount per hour for On-Demand Instances that you're willing to pay. // You can use the onDemandMaxTotalPrice parameter, the spotMaxTotalPrice @@ -8356,10 +8356,10 @@ type SpotFleetRequestConfigData struct { // capacity in terms of instances or a performance characteristic that is important // to your application workload, such as vCPUs, memory, or I/O. If the request type // is maintain, you can specify a target capacity of 0 and add capacity later. - OnDemandTargetCapacity *int32 + OnDemandTargetCapacity int32 // Indicates whether Spot Fleet should replace unhealthy instances. - ReplaceUnhealthyInstances *bool + ReplaceUnhealthyInstances bool // The maximum amount per hour for Spot Instances that you're willing to pay. You // can use the spotdMaxTotalPrice parameter, the onDemandMaxTotalPrice parameter, @@ -8385,11 +8385,11 @@ type SpotFleetRequestConfigData struct { // (valid only if you use LaunchSpecifications). For information about tagging // after launch, see Tagging Your Resources // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources). - TagSpecifications []*TagSpecification + TagSpecifications []TagSpecification // Indicates whether running Spot Instances are terminated when the Spot Fleet // request expires. - TerminateInstancesWithExpiration *bool + TerminateInstancesWithExpiration bool // The type of request. Indicates whether the Spot Fleet only requests the target // capacity or also attempts to maintain it. When this value is request, the Spot @@ -8422,7 +8422,7 @@ type SpotFleetTagSpecification struct { ResourceType ResourceType // The tags. - Tags []*Tag + Tags []Tag } // Describes a Spot Instance request. @@ -8438,7 +8438,7 @@ type SpotInstanceRequest struct { AvailabilityZoneGroup *string // The duration for the Spot Instance, in minutes. - BlockDurationMinutes *int32 + BlockDurationMinutes int32 // The date and time when the Spot Instance request was created, in UTC format (for // example, YYYY-MM-DDTHH:MM:SSZ). @@ -8483,7 +8483,7 @@ type SpotInstanceRequest struct { Status *SpotInstanceStatus // Any tags assigned to the resource. - Tags []*Tag + Tags []Tag // The Spot Instance request type. Type SpotInstanceType @@ -8543,7 +8543,7 @@ type SpotMarketOptions struct { // Availability Zone group or a launch group if you specify a duration. New // accounts or accounts with no previous billing history with AWS are not eligible // for Spot Instances with a defined duration (also known as Spot blocks). - BlockDurationMinutes *int32 + BlockDurationMinutes int32 // The behavior when a Spot Instance is interrupted. The default is terminate. InstanceInterruptionBehavior InstanceInterruptionBehavior @@ -8591,22 +8591,22 @@ type SpotOptions struct { // Valid only when AllocationStrategy is set to lowest-price. EC2 Fleet selects the // cheapest Spot pools and evenly allocates your target Spot capacity across the // number of Spot pools that you specify. - InstancePoolsToUseCount *int32 + InstancePoolsToUseCount int32 // The maximum amount per hour for Spot Instances that you're willing to pay. MaxTotalPrice *string // The minimum target capacity for Spot Instances in the fleet. If the minimum // target capacity is not reached, the fleet launches no instances. - MinTargetCapacity *int32 + MinTargetCapacity int32 // Indicates that the fleet launches all Spot Instances into a single Availability // Zone. Supported only for fleets of type instant. - SingleAvailabilityZone *bool + SingleAvailabilityZone bool // Indicates that the fleet uses a single instance type to launch all Spot // Instances in the fleet. Supported only for fleets of type instant. - SingleInstanceType *bool + SingleInstanceType bool } // Describes the configuration of Spot Instances in an EC2 Fleet request. @@ -8629,22 +8629,22 @@ type SpotOptionsRequest struct { // Valid only when Spot AllocationStrategy is set to lowest-price. EC2 Fleet // selects the cheapest Spot pools and evenly allocates your target Spot capacity // across the number of Spot pools that you specify. - InstancePoolsToUseCount *int32 + InstancePoolsToUseCount int32 // The maximum amount per hour for Spot Instances that you're willing to pay. MaxTotalPrice *string // The minimum target capacity for Spot Instances in the fleet. If the minimum // target capacity is not reached, the fleet launches no instances. - MinTargetCapacity *int32 + MinTargetCapacity int32 // Indicates that the fleet launches all Spot Instances into a single Availability // Zone. Supported only for fleets of type instant. - SingleAvailabilityZone *bool + SingleAvailabilityZone bool // Indicates that the fleet uses a single instance type to launch all Spot // Instances in the fleet. Supported only for fleets of type instant. - SingleInstanceType *bool + SingleInstanceType bool } // Describes Spot Instance placement. @@ -8689,25 +8689,25 @@ type StaleIpPermission struct { // The start of the port range for the TCP and UDP protocols, or an ICMP type // number. A value of -1 indicates all ICMP types. - FromPort *int32 + FromPort int32 // The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers) // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). IpProtocol *string // The IP ranges. Not applicable for stale security group rules. - IpRanges []*string + IpRanges []string // The prefix list IDs. Not applicable for stale security group rules. - PrefixListIds []*string + PrefixListIds []string // The end of the port range for the TCP and UDP protocols, or an ICMP type number. // A value of -1 indicates all ICMP types. - ToPort *int32 + ToPort int32 // The security group pairs. Returns the ID of the referenced security group and // VPC, and the ID and status of the VPC peering connection. - UserIdGroupPairs []*UserIdGroupPair + UserIdGroupPairs []UserIdGroupPair } // Describes a stale security group (a security group that contains stale rules). @@ -8723,10 +8723,10 @@ type StaleSecurityGroup struct { GroupName *string // Information about the stale inbound rules in the security group. - StaleIpPermissions []*StaleIpPermission + StaleIpPermissions []StaleIpPermission // Information about the stale outbound rules in the security group. - StaleIpPermissionsEgress []*StaleIpPermission + StaleIpPermissionsEgress []StaleIpPermission // The ID of the VPC for the security group. VpcId *string @@ -8807,7 +8807,7 @@ type Subnet struct { // Indicates whether a network interface created in this subnet (including a // network interface created by RunInstances) receives an IPv6 address. - AssignIpv6AddressOnCreation *bool + AssignIpv6AddressOnCreation bool // The Availability Zone of the subnet. AvailabilityZone *string @@ -8817,7 +8817,7 @@ type Subnet struct { // The number of unused private IPv4 addresses in the subnet. The IPv4 addresses // for any stopped instances are considered unavailable. - AvailableIpAddressCount *int32 + AvailableIpAddressCount int32 // The IPv4 CIDR block assigned to the subnet. CidrBlock *string @@ -8826,19 +8826,19 @@ type Subnet struct { CustomerOwnedIpv4Pool *string // Indicates whether this is the default subnet for the Availability Zone. - DefaultForAz *bool + DefaultForAz bool // Information about the IPv6 CIDR blocks associated with the subnet. - Ipv6CidrBlockAssociationSet []*SubnetIpv6CidrBlockAssociation + Ipv6CidrBlockAssociationSet []SubnetIpv6CidrBlockAssociation // Indicates whether a network interface created in this subnet (including a // network interface created by RunInstances) receives a customer-owned IPv4 // address. - MapCustomerOwnedIpOnLaunch *bool + MapCustomerOwnedIpOnLaunch bool // Indicates whether instances launched in this subnet receive a public IPv4 // address. - MapPublicIpOnLaunch *bool + MapPublicIpOnLaunch bool // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -8856,7 +8856,7 @@ type Subnet struct { SubnetId *string // Any tags assigned to the subnet. - Tags []*Tag + Tags []Tag // The ID of the VPC the subnet is in. VpcId *string @@ -8958,7 +8958,7 @@ type TagSpecification struct { ResourceType ResourceType // The tags to apply to the resource. - Tags []*Tag + Tags []Tag } // The number of units to request. You can choose to set the target capacity in @@ -8983,14 +8983,14 @@ type TargetCapacitySpecification struct { // The number of On-Demand units to request. If you specify a target capacity for // Spot units, you cannot specify a target capacity for On-Demand units. - OnDemandTargetCapacity *int32 + OnDemandTargetCapacity int32 // The maximum number of Spot units to launch. If you specify a target capacity for // On-Demand units, you cannot specify a target capacity for Spot units. - SpotTargetCapacity *int32 + SpotTargetCapacity int32 // The number of units to request, filled using DefaultTargetCapacityType. - TotalTargetCapacity *int32 + TotalTargetCapacity int32 } // The number of units to request. You can choose to set the target capacity as the @@ -9013,16 +9013,16 @@ type TargetCapacitySpecificationRequest struct { // The number of units to request, filled using DefaultTargetCapacityType. // // This member is required. - TotalTargetCapacity *int32 + TotalTargetCapacity int32 // The default TotalTargetCapacity, which is either Spot or On-Demand. DefaultTargetCapacityType DefaultTargetCapacityType // The number of On-Demand units to request. - OnDemandTargetCapacity *int32 + OnDemandTargetCapacity int32 // The number of Spot units to request. - SpotTargetCapacity *int32 + SpotTargetCapacity int32 } // Information about the Convertible Reserved Instance offering. @@ -9030,7 +9030,7 @@ type TargetConfiguration struct { // The number of instances the Convertible Reserved Instance offering can be // applied to. This parameter is reserved and cannot be specified in a request - InstanceCount *int32 + InstanceCount int32 // The ID of the Convertible Reserved Instance offering. OfferingId *string @@ -9046,7 +9046,7 @@ type TargetConfigurationRequest struct { // The number of instances the Covertible Reserved Instance offering can be applied // to. This parameter is reserved and cannot be specified in a request - InstanceCount *int32 + InstanceCount int32 } // Describes a load balancer target group. @@ -9061,7 +9061,7 @@ type TargetGroup struct { type TargetGroupsConfig struct { // One or more target groups. - TargetGroups []*TargetGroup + TargetGroups []TargetGroup } // Describes a target network associated with a Client VPN endpoint. @@ -9074,7 +9074,7 @@ type TargetNetwork struct { ClientVpnEndpointId *string // The IDs of the security groups applied to the target network association. - SecurityGroups []*string + SecurityGroups []string // The current state of the target network association. Status *AssociationStatus @@ -9120,17 +9120,17 @@ type TrafficMirrorFilter struct { // Information about the egress rules that are associated with the Traffic Mirror // filter. - EgressFilterRules []*TrafficMirrorFilterRule + EgressFilterRules []TrafficMirrorFilterRule // Information about the ingress rules that are associated with the Traffic Mirror // filter. - IngressFilterRules []*TrafficMirrorFilterRule + IngressFilterRules []TrafficMirrorFilterRule // The network service traffic that is associated with the Traffic Mirror filter. NetworkServices []TrafficMirrorNetworkService // The tags assigned to the Traffic Mirror filter. - Tags []*Tag + Tags []Tag // The ID of the Traffic Mirror filter. TrafficMirrorFilterId *string @@ -9149,13 +9149,13 @@ type TrafficMirrorFilterRule struct { DestinationPortRange *TrafficMirrorPortRange // The protocol assigned to the Traffic Mirror rule. - Protocol *int32 + Protocol int32 // The action assigned to the Traffic Mirror rule. RuleAction TrafficMirrorRuleAction // The rule number of the Traffic Mirror rule. - RuleNumber *int32 + RuleNumber int32 // The source CIDR block assigned to the Traffic Mirror rule. SourceCidrBlock *string @@ -9178,11 +9178,11 @@ type TrafficMirrorPortRange struct { // The start of the Traffic Mirror port range. This applies to the TCP and UDP // protocols. - FromPort *int32 + FromPort int32 // The end of the Traffic Mirror port range. This applies to the TCP and UDP // protocols. - ToPort *int32 + ToPort int32 } // Information about the Traffic Mirror filter rule port range. @@ -9190,11 +9190,11 @@ type TrafficMirrorPortRangeRequest struct { // The first port in the Traffic Mirror port range. This applies to the TCP and UDP // protocols. - FromPort *int32 + FromPort int32 // The last port in the Traffic Mirror port range. This applies to the TCP and UDP // protocols. - ToPort *int32 + ToPort int32 } // Describes a Traffic Mirror session. @@ -9214,15 +9214,15 @@ type TrafficMirrorSession struct { // For example, if you set this value to 100, then the first 100 bytes that meet // the filter criteria are copied to the target. Do not specify this parameter when // you want to mirror the entire packet - PacketLength *int32 + PacketLength int32 // The session number determines the order in which sessions are evaluated when an // interface is used by multiple sessions. The first session with a matching filter // is the one that mirrors the packets. Valid values are 1-32766. - SessionNumber *int32 + SessionNumber int32 // The tags assigned to the Traffic Mirror session. - Tags []*Tag + Tags []Tag // The ID of the Traffic Mirror filter. TrafficMirrorFilterId *string @@ -9234,7 +9234,7 @@ type TrafficMirrorSession struct { TrafficMirrorTargetId *string // The virtual network ID associated with the Traffic Mirror session. - VirtualNetworkId *int32 + VirtualNetworkId int32 } // Describes a Traffic Mirror target. @@ -9253,7 +9253,7 @@ type TrafficMirrorTarget struct { OwnerId *string // The tags assigned to the Traffic Mirror target. - Tags []*Tag + Tags []Tag // The ID of the Traffic Mirror target. TrafficMirrorTargetId *string @@ -9281,7 +9281,7 @@ type TransitGateway struct { State TransitGatewayState // The tags for the transit gateway. - Tags []*Tag + Tags []Tag // The Amazon Resource Name (ARN) of the transit gateway. TransitGatewayArn *string @@ -9332,7 +9332,7 @@ type TransitGatewayAttachment struct { State TransitGatewayAttachmentState // The tags for the attachment. - Tags []*Tag + Tags []Tag // The ID of the attachment. TransitGatewayAttachmentId *string @@ -9368,7 +9368,7 @@ type TransitGatewayAttachmentPropagation struct { type TransitGatewayMulticastDeregisteredGroupMembers struct { // The network interface IDs of the deregistered members. - DeregisteredNetworkInterfaceIds []*string + DeregisteredNetworkInterfaceIds []string // The IP address assigned to the transit gateway multicast group. GroupIpAddress *string @@ -9381,7 +9381,7 @@ type TransitGatewayMulticastDeregisteredGroupMembers struct { type TransitGatewayMulticastDeregisteredGroupSources struct { // The network interface IDs of the non-registered members. - DeregisteredNetworkInterfaceIds []*string + DeregisteredNetworkInterfaceIds []string // The IP address assigned to the transit gateway multicast group. GroupIpAddress *string @@ -9400,7 +9400,7 @@ type TransitGatewayMulticastDomain struct { State TransitGatewayMulticastDomainState // The tags for the transit gateway multicast domain. - Tags []*Tag + Tags []Tag // The ID of the transit gateway. TransitGatewayId *string @@ -9435,7 +9435,7 @@ type TransitGatewayMulticastDomainAssociations struct { ResourceType TransitGatewayAttachmentResourceType // The subnets associated with the multicast domain. - Subnets []*SubnetAssociation + Subnets []SubnetAssociation // The ID of the transit gateway attachment. TransitGatewayAttachmentId *string @@ -9451,10 +9451,10 @@ type TransitGatewayMulticastGroup struct { GroupIpAddress *string // Indicates that the resource is a transit gateway multicast group member. - GroupMember *bool + GroupMember bool // Indicates that the resource is a transit gateway multicast group member. - GroupSource *bool + GroupSource bool // The member type (for example, static). MemberType MembershipType @@ -9485,7 +9485,7 @@ type TransitGatewayMulticastRegisteredGroupMembers struct { GroupIpAddress *string // The ID of the registered network interfaces. - RegisteredNetworkInterfaceIds []*string + RegisteredNetworkInterfaceIds []string // The ID of the transit gateway multicast domain. TransitGatewayMulticastDomainId *string @@ -9499,7 +9499,7 @@ type TransitGatewayMulticastRegisteredGroupSources struct { // The IDs of the network interfaces members registered with the transit gateway // multicast group. - RegisteredNetworkInterfaceIds []*string + RegisteredNetworkInterfaceIds []string // The ID of the transit gateway multicast domain. TransitGatewayMulticastDomainId *string @@ -9511,7 +9511,7 @@ type TransitGatewayOptions struct { // A private Autonomous System Number (ASN) for the Amazon side of a BGP session. // The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for // 32-bit ASNs. - AmazonSideAsn *int64 + AmazonSideAsn int64 // The ID of the default association route table. AssociationDefaultRouteTableId *string @@ -9560,7 +9560,7 @@ type TransitGatewayPeeringAttachment struct { Status *PeeringAttachmentStatus // The tags for the transit gateway peering attachment. - Tags []*Tag + Tags []Tag // The ID of the transit gateway peering attachment. TransitGatewayAttachmentId *string @@ -9583,7 +9583,7 @@ type TransitGatewayPrefixListAttachment struct { type TransitGatewayPrefixListReference struct { // Indicates whether traffic that matches this route is dropped. - Blackhole *bool + Blackhole bool // The ID of the prefix list. PrefixListId *string @@ -9626,7 +9626,7 @@ type TransitGatewayRequestOptions struct { // A private Autonomous System Number (ASN) for the Amazon side of a BGP session. // The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for // 32-bit ASNs. The default is 64512. - AmazonSideAsn *int64 + AmazonSideAsn int64 // Enable or disable automatic acceptance of attachment requests. Disabled by // default. @@ -9663,7 +9663,7 @@ type TransitGatewayRoute struct { State TransitGatewayRouteState // The attachments. - TransitGatewayAttachments []*TransitGatewayRouteAttachment + TransitGatewayAttachments []TransitGatewayRouteAttachment // The route type. Type TransitGatewayRouteType @@ -9690,17 +9690,17 @@ type TransitGatewayRouteTable struct { // Indicates whether this is the default association route table for the transit // gateway. - DefaultAssociationRouteTable *bool + DefaultAssociationRouteTable bool // Indicates whether this is the default propagation route table for the transit // gateway. - DefaultPropagationRouteTable *bool + DefaultPropagationRouteTable bool // The state of the transit gateway route table. State TransitGatewayRouteTableState // Any tags assigned to the route table. - Tags []*Tag + Tags []Tag // The ID of the transit gateway. TransitGatewayId *string @@ -9756,10 +9756,10 @@ type TransitGatewayVpcAttachment struct { State TransitGatewayAttachmentState // The IDs of the subnets. - SubnetIds []*string + SubnetIds []string // The tags for the VPC attachment. - Tags []*Tag + Tags []Tag // The ID of the attachment. TransitGatewayAttachmentId *string @@ -9794,43 +9794,43 @@ type TunnelOption struct { DpdTimeoutAction *string // The number of seconds after which a DPD timeout occurs. - DpdTimeoutSeconds *int32 + DpdTimeoutSeconds int32 // The IKE versions that are permitted for the VPN tunnel. - IkeVersions []*IKEVersionsListValue + IkeVersions []IKEVersionsListValue // The external IP address of the VPN tunnel. OutsideIpAddress *string // The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 1 IKE // negotiations. - Phase1DHGroupNumbers []*Phase1DHGroupNumbersListValue + Phase1DHGroupNumbers []Phase1DHGroupNumbersListValue // The permitted encryption algorithms for the VPN tunnel for phase 1 IKE // negotiations. - Phase1EncryptionAlgorithms []*Phase1EncryptionAlgorithmsListValue + Phase1EncryptionAlgorithms []Phase1EncryptionAlgorithmsListValue // The permitted integrity algorithms for the VPN tunnel for phase 1 IKE // negotiations. - Phase1IntegrityAlgorithms []*Phase1IntegrityAlgorithmsListValue + Phase1IntegrityAlgorithms []Phase1IntegrityAlgorithmsListValue // The lifetime for phase 1 of the IKE negotiation, in seconds. - Phase1LifetimeSeconds *int32 + Phase1LifetimeSeconds int32 // The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 2 IKE // negotiations. - Phase2DHGroupNumbers []*Phase2DHGroupNumbersListValue + Phase2DHGroupNumbers []Phase2DHGroupNumbersListValue // The permitted encryption algorithms for the VPN tunnel for phase 2 IKE // negotiations. - Phase2EncryptionAlgorithms []*Phase2EncryptionAlgorithmsListValue + Phase2EncryptionAlgorithms []Phase2EncryptionAlgorithmsListValue // The permitted integrity algorithms for the VPN tunnel for phase 2 IKE // negotiations. - Phase2IntegrityAlgorithms []*Phase2IntegrityAlgorithmsListValue + Phase2IntegrityAlgorithms []Phase2IntegrityAlgorithmsListValue // The lifetime for phase 2 of the IKE negotiation, in seconds. - Phase2LifetimeSeconds *int32 + Phase2LifetimeSeconds int32 // The pre-shared key (PSK) to establish initial authentication between the virtual // private gateway and the customer gateway. @@ -9838,14 +9838,14 @@ type TunnelOption struct { // The percentage of the rekey window determined by RekeyMarginTimeSeconds during // which the rekey time is randomly selected. - RekeyFuzzPercentage *int32 + RekeyFuzzPercentage int32 // The margin time, in seconds, before the phase 2 lifetime expires, during which // the AWS side of the VPN connection performs an IKE rekey. - RekeyMarginTimeSeconds *int32 + RekeyMarginTimeSeconds int32 // The number of packets in an IKE replay window. - ReplayWindowSize *int32 + ReplayWindowSize int32 // The action to take when the establishing the VPN tunnels for a VPN connection. StartupAction *string @@ -9987,7 +9987,7 @@ type ValidationError struct { type ValidationWarning struct { // The error codes and error messages. - Errors []*ValidationError + Errors []ValidationError } // Describes the vCPU configurations for the instance type. @@ -10003,18 +10003,18 @@ type VCpuInfo struct { DefaultVCpus *int32 // List of the valid number of cores that can be configured for the instance type. - ValidCores []*int32 + ValidCores []int32 // List of the valid number of threads per core that can be configured for the // instance type. - ValidThreadsPerCore []*int32 + ValidThreadsPerCore []int32 } // Describes telemetry for a VPN tunnel. type VgwTelemetry struct { // The number of accepted routes. - AcceptedRouteCount *int32 + AcceptedRouteCount int32 // The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate. CertificateArn *string @@ -10037,7 +10037,7 @@ type VgwTelemetry struct { type Volume struct { // Information about the volume attachments. - Attachments []*VolumeAttachment + Attachments []VolumeAttachment // The Availability Zone for the volume. AvailabilityZone *string @@ -10046,10 +10046,10 @@ type Volume struct { CreateTime *time.Time // Indicates whether the volume is encrypted. - Encrypted *bool + Encrypted bool // Indicates whether the volume was created using fast snapshot restore. - FastRestored *bool + FastRestored bool // The number of I/O operations per second (IOPS) that the volume supports. For // Provisioned IOPS SSD volumes, this represents the number of IOPS that are @@ -10065,7 +10065,7 @@ type Volume struct { // Other instance families guarantee performance up to 32,000 IOPS. Condition: This // parameter is required for requests to create io1 and io2 volumes; it is not used // in requests to create gp2, st1, sc1, or standard volumes. - Iops *int32 + Iops int32 // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) // customer master key (CMK) that was used to protect the volume encryption key for @@ -10073,13 +10073,13 @@ type Volume struct { KmsKeyId *string // Indicates whether Amazon EBS Multi-Attach is enabled. - MultiAttachEnabled *bool + MultiAttachEnabled bool // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string // The size of the volume, in GiBs. - Size *int32 + Size int32 // The snapshot from which the volume was created, if applicable. SnapshotId *string @@ -10088,7 +10088,7 @@ type Volume struct { State VolumeState // Any tags assigned to the volume. - Tags []*Tag + Tags []Tag // The ID of the volume. VolumeId *string @@ -10106,7 +10106,7 @@ type VolumeAttachment struct { AttachTime *time.Time // Indicates whether the EBS volume is deleted on instance termination. - DeleteOnTermination *bool + DeleteOnTermination bool // The device name. Device *string @@ -10127,7 +10127,7 @@ type VolumeDetail struct { // The size of the volume, in GiB. // // This member is required. - Size *int64 + Size int64 } // Describes the modification status of an EBS volume. If the volume has never been @@ -10142,16 +10142,16 @@ type VolumeModification struct { ModificationState VolumeModificationState // The original IOPS rate of the volume. - OriginalIops *int32 + OriginalIops int32 // The original size of the volume, in GiB. - OriginalSize *int32 + OriginalSize int32 // The original EBS volume type of the volume. OriginalVolumeType VolumeType // The modification progress, from 0 to 100 percent complete. - Progress *int64 + Progress int64 // The modification start time. StartTime *time.Time @@ -10160,10 +10160,10 @@ type VolumeModification struct { StatusMessage *string // The target IOPS rate of the volume. - TargetIops *int32 + TargetIops int32 // The target size of the volume, in GiB. - TargetSize *int32 + TargetSize int32 // The target EBS volume type of the volume. TargetVolumeType VolumeType @@ -10234,7 +10234,7 @@ type VolumeStatusEvent struct { type VolumeStatusInfo struct { // The details of the volume status. - Details []*VolumeStatusDetails + Details []VolumeStatusDetails // The status of the volume. Status VolumeStatusInfoStatus @@ -10244,16 +10244,16 @@ type VolumeStatusInfo struct { type VolumeStatusItem struct { // The details of the operation. - Actions []*VolumeStatusAction + Actions []VolumeStatusAction // Information about the instances to which the volume is attached. - AttachmentStatuses []*VolumeStatusAttachmentStatus + AttachmentStatuses []VolumeStatusAttachmentStatus // The Availability Zone of the volume. AvailabilityZone *string // A list of events associated with the volume. - Events []*VolumeStatusEvent + Events []VolumeStatusEvent // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -10272,7 +10272,7 @@ type Vpc struct { CidrBlock *string // Information about the IPv4 CIDR blocks associated with the VPC. - CidrBlockAssociationSet []*VpcCidrBlockAssociation + CidrBlockAssociationSet []VpcCidrBlockAssociation // The ID of the set of DHCP options you've associated with the VPC. DhcpOptionsId *string @@ -10281,10 +10281,10 @@ type Vpc struct { InstanceTenancy Tenancy // Information about the IPv6 CIDR blocks associated with the VPC. - Ipv6CidrBlockAssociationSet []*VpcIpv6CidrBlockAssociation + Ipv6CidrBlockAssociationSet []VpcIpv6CidrBlockAssociation // Indicates whether the VPC is the default VPC. - IsDefault *bool + IsDefault bool // The ID of the AWS account that owns the VPC. OwnerId *string @@ -10293,7 +10293,7 @@ type Vpc struct { State VpcState // Any tags assigned to the VPC. - Tags []*Tag + Tags []Tag // The ID of the VPC. VpcId *string @@ -10336,10 +10336,10 @@ type VpcCidrBlockState struct { type VpcClassicLink struct { // Indicates whether the VPC is enabled for ClassicLink. - ClassicLinkEnabled *bool + ClassicLinkEnabled bool // Any tags assigned to the VPC. - Tags []*Tag + Tags []Tag // The ID of the VPC. VpcId *string @@ -10352,17 +10352,17 @@ type VpcEndpoint struct { CreationTimestamp *time.Time // (Interface endpoint) The DNS entries for the endpoint. - DnsEntries []*DnsEntry + DnsEntries []DnsEntry // (Interface endpoint) Information about the security groups that are associated // with the network interface. - Groups []*SecurityGroupIdentifier + Groups []SecurityGroupIdentifier // The last error that occurred for VPC endpoint. LastError *LastError // (Interface endpoint) One or more network interfaces for the endpoint. - NetworkInterfaceIds []*string + NetworkInterfaceIds []string // The ID of the AWS account that owns the VPC endpoint. OwnerId *string @@ -10372,13 +10372,13 @@ type VpcEndpoint struct { // (Interface endpoint) Indicates whether the VPC is associated with a private // hosted zone. - PrivateDnsEnabled *bool + PrivateDnsEnabled bool // Indicates whether the VPC endpoint is being managed by its service. - RequesterManaged *bool + RequesterManaged bool // (Gateway endpoint) One or more route tables associated with the endpoint. - RouteTableIds []*string + RouteTableIds []string // The name of the service to which the endpoint is associated. ServiceName *string @@ -10387,10 +10387,10 @@ type VpcEndpoint struct { State State // (Interface endpoint) One or more subnets in which the endpoint is located. - SubnetIds []*string + SubnetIds []string // Any tags assigned to the VPC endpoint. - Tags []*Tag + Tags []Tag // The ID of the VPC endpoint. VpcEndpointId *string @@ -10409,10 +10409,10 @@ type VpcEndpointConnection struct { CreationTimestamp *time.Time // The DNS entries for the VPC endpoint. - DnsEntries []*DnsEntry + DnsEntries []DnsEntry // The Amazon Resource Names (ARNs) of the network load balancers for the service. - NetworkLoadBalancerArns []*string + NetworkLoadBalancerArns []string // The ID of the service to which the endpoint is connected. ServiceId *string @@ -10466,7 +10466,7 @@ type VpcPeeringConnection struct { Status *VpcPeeringConnectionStateReason // Any tags assigned to the resource. - Tags []*Tag + Tags []Tag // The ID of the VPC peering connection. VpcPeeringConnectionId *string @@ -10477,15 +10477,15 @@ type VpcPeeringConnectionOptionsDescription struct { // Indicates whether a local VPC can resolve public DNS hostnames to private IP // addresses when queried from instances in a peer VPC. - AllowDnsResolutionFromRemoteVpc *bool + AllowDnsResolutionFromRemoteVpc bool // Indicates whether a local ClassicLink connection can communicate with the peer // VPC over the VPC peering connection. - AllowEgressFromLocalClassicLinkToRemoteVpc *bool + AllowEgressFromLocalClassicLinkToRemoteVpc bool // Indicates whether a local VPC can communicate with a ClassicLink connection in // the peer VPC over the VPC peering connection. - AllowEgressFromLocalVpcToRemoteClassicLink *bool + AllowEgressFromLocalVpcToRemoteClassicLink bool } // Describes the status of a VPC peering connection. @@ -10505,10 +10505,10 @@ type VpcPeeringConnectionVpcInfo struct { CidrBlock *string // Information about the IPv4 CIDR blocks for the VPC. - CidrBlockSet []*CidrBlock + CidrBlockSet []CidrBlock // The IPv6 CIDR block for the VPC. - Ipv6CidrBlockSet []*Ipv6CidrBlock + Ipv6CidrBlockSet []Ipv6CidrBlock // The AWS account ID of the VPC owner. OwnerId *string @@ -10544,13 +10544,13 @@ type VpnConnection struct { Options *VpnConnectionOptions // The static routes associated with the VPN connection. - Routes []*VpnStaticRoute + Routes []VpnStaticRoute // The current state of the VPN connection. State VpnState // Any tags assigned to the VPN connection. - Tags []*Tag + Tags []Tag // The ID of the transit gateway associated with the VPN connection. TransitGatewayId *string @@ -10559,7 +10559,7 @@ type VpnConnection struct { Type GatewayType // Information about the VPN tunnel. - VgwTelemetry []*VgwTelemetry + VgwTelemetry []VgwTelemetry // The ID of the VPN connection. VpnConnectionId *string @@ -10572,7 +10572,7 @@ type VpnConnection struct { type VpnConnectionOptions struct { // Indicates whether acceleration is enabled for the VPN connection. - EnableAcceleration *bool + EnableAcceleration bool // The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. LocalIpv4NetworkCidr *string @@ -10588,20 +10588,20 @@ type VpnConnectionOptions struct { // Indicates whether the VPN connection uses static routes only. Static routes must // be used for devices that don't support BGP. - StaticRoutesOnly *bool + StaticRoutesOnly bool // Indicates whether the VPN tunnels process IPv4 or IPv6 traffic. TunnelInsideIpVersion TunnelInsideIpVersion // Indicates the VPN tunnel options. - TunnelOptions []*TunnelOption + TunnelOptions []TunnelOption } // Describes VPN connection options. type VpnConnectionOptionsSpecification struct { // Indicate whether to enable acceleration for the VPN connection. Default: false - EnableAcceleration *bool + EnableAcceleration bool // The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. // Default: 0.0.0.0/0 @@ -10620,20 +10620,20 @@ type VpnConnectionOptionsSpecification struct { // Indicate whether the VPN connection uses static routes only. If you are creating // a VPN connection for a device that does not support BGP, you must specify true. // Use CreateVpnConnectionRoute to create a static route. Default: false - StaticRoutesOnly *bool + StaticRoutesOnly bool // Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. Default: ipv4 TunnelInsideIpVersion TunnelInsideIpVersion // The tunnel options for the VPN connection. - TunnelOptions []*VpnTunnelOptionsSpecification + TunnelOptions []VpnTunnelOptionsSpecification } // Describes a virtual private gateway. type VpnGateway struct { // The private Autonomous System Number (ASN) for the Amazon side of a BGP session. - AmazonSideAsn *int64 + AmazonSideAsn int64 // The Availability Zone where the virtual private gateway was created, if // applicable. This field may be empty or not returned. @@ -10643,13 +10643,13 @@ type VpnGateway struct { State VpnState // Any tags assigned to the virtual private gateway. - Tags []*Tag + Tags []Tag // The type of VPN connection the virtual private gateway supports. Type GatewayType // Any VPCs attached to the virtual private gateway. - VpcAttachments []*VpcAttachment + VpcAttachments []VpcAttachment // The ID of the virtual private gateway. VpnGatewayId *string @@ -10678,48 +10678,48 @@ type VpnTunnelOptionsSpecification struct { // The number of seconds after which a DPD timeout occurs. Constraints: A value // between 0 and 30. Default: 30 - DPDTimeoutSeconds *int32 + DPDTimeoutSeconds int32 // The IKE versions that are permitted for the VPN tunnel. Valid values: ikev1 | // ikev2 - IKEVersions []*IKEVersionsRequestListValue + IKEVersions []IKEVersionsRequestListValue // One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel // for phase 1 IKE negotiations. Valid values: 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 // | 21 | 22 | 23 | 24 - Phase1DHGroupNumbers []*Phase1DHGroupNumbersRequestListValue + Phase1DHGroupNumbers []Phase1DHGroupNumbersRequestListValue // One or more encryption algorithms that are permitted for the VPN tunnel for // phase 1 IKE negotiations. Valid values: AES128 | AES256 | AES128-GCM-16 | // AES256-GCM-16 - Phase1EncryptionAlgorithms []*Phase1EncryptionAlgorithmsRequestListValue + Phase1EncryptionAlgorithms []Phase1EncryptionAlgorithmsRequestListValue // One or more integrity algorithms that are permitted for the VPN tunnel for phase // 1 IKE negotiations. Valid values: SHA1 | SHA2-256 | SHA2-384 | SHA2-512 - Phase1IntegrityAlgorithms []*Phase1IntegrityAlgorithmsRequestListValue + Phase1IntegrityAlgorithms []Phase1IntegrityAlgorithmsRequestListValue // The lifetime for phase 1 of the IKE negotiation, in seconds. Constraints: A // value between 900 and 28,800. Default: 28800 - Phase1LifetimeSeconds *int32 + Phase1LifetimeSeconds int32 // One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel // for phase 2 IKE negotiations. Valid values: 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 // | 20 | 21 | 22 | 23 | 24 - Phase2DHGroupNumbers []*Phase2DHGroupNumbersRequestListValue + Phase2DHGroupNumbers []Phase2DHGroupNumbersRequestListValue // One or more encryption algorithms that are permitted for the VPN tunnel for // phase 2 IKE negotiations. Valid values: AES128 | AES256 | AES128-GCM-16 | // AES256-GCM-16 - Phase2EncryptionAlgorithms []*Phase2EncryptionAlgorithmsRequestListValue + Phase2EncryptionAlgorithms []Phase2EncryptionAlgorithmsRequestListValue // One or more integrity algorithms that are permitted for the VPN tunnel for phase // 2 IKE negotiations. Valid values: SHA1 | SHA2-256 | SHA2-384 | SHA2-512 - Phase2IntegrityAlgorithms []*Phase2IntegrityAlgorithmsRequestListValue + Phase2IntegrityAlgorithms []Phase2IntegrityAlgorithmsRequestListValue // The lifetime for phase 2 of the IKE negotiation, in seconds. Constraints: A // value between 900 and 3,600. The value must be less than the value for // Phase1LifetimeSeconds. Default: 3600 - Phase2LifetimeSeconds *int32 + Phase2LifetimeSeconds int32 // The pre-shared key (PSK) to establish initial authentication between the virtual // private gateway and customer gateway. Constraints: Allowed characters are @@ -10730,17 +10730,17 @@ type VpnTunnelOptionsSpecification struct { // The percentage of the rekey window (determined by RekeyMarginTimeSeconds) during // which the rekey time is randomly selected. Constraints: A value between 0 and // 100. Default: 100 - RekeyFuzzPercentage *int32 + RekeyFuzzPercentage int32 // The margin time, in seconds, before the phase 2 lifetime expires, during which // the AWS side of the VPN connection performs an IKE rekey. The exact time of the // rekey is randomly selected based on the value for RekeyFuzzPercentage. // Constraints: A value between 60 and half of Phase2LifetimeSeconds. Default: 540 - RekeyMarginTimeSeconds *int32 + RekeyMarginTimeSeconds int32 // The number of packets in an IKE replay window. Constraints: A value between 64 // and 2048. Default: 1024 - ReplayWindowSize *int32 + ReplayWindowSize int32 // The action to take when the establishing the tunnel for the VPN connection. By // default, your customer gateway device must initiate the IKE negotiation and diff --git a/service/ec2/validators.go b/service/ec2/validators.go index 3e7824af4af..4e5d4f3fba9 100644 --- a/service/ec2/validators.go +++ b/service/ec2/validators.go @@ -6898,13 +6898,13 @@ func addOpWithdrawByoipCidrValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpWithdrawByoipCidr{}, middleware.After) } -func validateAddPrefixListEntries(v []*types.AddPrefixListEntry) error { +func validateAddPrefixListEntries(v []types.AddPrefixListEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AddPrefixListEntries"} for i := range v { - if err := validateAddPrefixListEntry(v[i]); err != nil { + if err := validateAddPrefixListEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -6996,9 +6996,6 @@ func validateDiskImageDetail(v *types.DiskImageDetail) error { if v.ImportManifestUrl == nil { invalidParams.Add(smithy.NewErrParamRequired("ImportManifestUrl")) } - if v.Bytes == nil { - invalidParams.Add(smithy.NewErrParamRequired("Bytes")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7006,13 +7003,13 @@ func validateDiskImageDetail(v *types.DiskImageDetail) error { } } -func validateDiskImageList(v []*types.DiskImage) error { +func validateDiskImageList(v []types.DiskImage) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DiskImageList"} for i := range v { - if err := validateDiskImage(v[i]); err != nil { + if err := validateDiskImage(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -7038,13 +7035,13 @@ func validateElasticGpuSpecification(v *types.ElasticGpuSpecification) error { } } -func validateElasticGpuSpecificationList(v []*types.ElasticGpuSpecification) error { +func validateElasticGpuSpecificationList(v []types.ElasticGpuSpecification) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ElasticGpuSpecificationList"} for i := range v { - if err := validateElasticGpuSpecification(v[i]); err != nil { + if err := validateElasticGpuSpecification(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -7055,13 +7052,13 @@ func validateElasticGpuSpecificationList(v []*types.ElasticGpuSpecification) err } } -func validateElasticGpuSpecifications(v []*types.ElasticGpuSpecification) error { +func validateElasticGpuSpecifications(v []types.ElasticGpuSpecification) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ElasticGpuSpecifications"} for i := range v { - if err := validateElasticGpuSpecification(v[i]); err != nil { + if err := validateElasticGpuSpecification(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -7087,13 +7084,13 @@ func validateElasticInferenceAccelerator(v *types.ElasticInferenceAccelerator) e } } -func validateElasticInferenceAccelerators(v []*types.ElasticInferenceAccelerator) error { +func validateElasticInferenceAccelerators(v []types.ElasticInferenceAccelerator) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ElasticInferenceAccelerators"} for i := range v { - if err := validateElasticInferenceAccelerator(v[i]); err != nil { + if err := validateElasticInferenceAccelerator(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -7134,13 +7131,13 @@ func validateLaunchTemplateElasticInferenceAccelerator(v *types.LaunchTemplateEl } } -func validateLaunchTemplateElasticInferenceAcceleratorList(v []*types.LaunchTemplateElasticInferenceAccelerator) error { +func validateLaunchTemplateElasticInferenceAcceleratorList(v []types.LaunchTemplateElasticInferenceAccelerator) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LaunchTemplateElasticInferenceAcceleratorList"} for i := range v { - if err := validateLaunchTemplateElasticInferenceAccelerator(v[i]); err != nil { + if err := validateLaunchTemplateElasticInferenceAccelerator(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -7159,9 +7156,6 @@ func validatePurchaseRequest(v *types.PurchaseRequest) error { if v.PurchaseToken == nil { invalidParams.Add(smithy.NewErrParamRequired("PurchaseToken")) } - if v.InstanceCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("InstanceCount")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7169,13 +7163,13 @@ func validatePurchaseRequest(v *types.PurchaseRequest) error { } } -func validatePurchaseRequestSet(v []*types.PurchaseRequest) error { +func validatePurchaseRequestSet(v []types.PurchaseRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PurchaseRequestSet"} for i := range v { - if err := validatePurchaseRequest(v[i]); err != nil { + if err := validatePurchaseRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -7186,13 +7180,13 @@ func validatePurchaseRequestSet(v []*types.PurchaseRequest) error { } } -func validateRemovePrefixListEntries(v []*types.RemovePrefixListEntry) error { +func validateRemovePrefixListEntries(v []types.RemovePrefixListEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RemovePrefixListEntries"} for i := range v { - if err := validateRemovePrefixListEntry(v[i]); err != nil { + if err := validateRemovePrefixListEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -7267,9 +7261,6 @@ func validateRunInstancesMonitoringEnabled(v *types.RunInstancesMonitoringEnable return nil } invalidParams := smithy.InvalidParamsError{Context: "RunInstancesMonitoringEnabled"} - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7315,9 +7306,6 @@ func validateSpotFleetRequestConfigData(v *types.SpotFleetRequestConfigData) err return nil } invalidParams := smithy.InvalidParamsError{Context: "SpotFleetRequestConfigData"} - if v.TargetCapacity == nil { - invalidParams.Add(smithy.NewErrParamRequired("TargetCapacity")) - } if v.IamFleetRole == nil { invalidParams.Add(smithy.NewErrParamRequired("IamFleetRole")) } @@ -7333,9 +7321,6 @@ func validateTargetCapacitySpecificationRequest(v *types.TargetCapacitySpecifica return nil } invalidParams := smithy.InvalidParamsError{Context: "TargetCapacitySpecificationRequest"} - if v.TotalTargetCapacity == nil { - invalidParams.Add(smithy.NewErrParamRequired("TotalTargetCapacity")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7358,13 +7343,13 @@ func validateTargetConfigurationRequest(v *types.TargetConfigurationRequest) err } } -func validateTargetConfigurationRequestSet(v []*types.TargetConfigurationRequest) error { +func validateTargetConfigurationRequestSet(v []types.TargetConfigurationRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TargetConfigurationRequestSet"} for i := range v { - if err := validateTargetConfigurationRequest(v[i]); err != nil { + if err := validateTargetConfigurationRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -7380,9 +7365,6 @@ func validateVolumeDetail(v *types.VolumeDetail) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "VolumeDetail"} - if v.Size == nil { - invalidParams.Add(smithy.NewErrParamRequired("Size")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7481,9 +7463,6 @@ func validateOpAllocateHostsInput(v *AllocateHostsInput) error { if v.AvailabilityZone == nil { invalidParams.Add(smithy.NewErrParamRequired("AvailabilityZone")) } - if v.Quantity == nil { - invalidParams.Add(smithy.NewErrParamRequired("Quantity")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7709,9 +7688,6 @@ func validateOpAttachNetworkInterfaceInput(v *AttachNetworkInterfaceInput) error if v.NetworkInterfaceId == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkInterfaceId")) } - if v.DeviceIndex == nil { - invalidParams.Add(smithy.NewErrParamRequired("DeviceIndex")) - } if v.InstanceId == nil { invalidParams.Add(smithy.NewErrParamRequired("InstanceId")) } @@ -7892,9 +7868,6 @@ func validateOpCancelSpotFleetRequestsInput(v *CancelSpotFleetRequestsInput) err return nil } invalidParams := smithy.InvalidParamsError{Context: "CancelSpotFleetRequestsInput"} - if v.TerminateInstances == nil { - invalidParams.Add(smithy.NewErrParamRequired("TerminateInstances")) - } if v.SpotFleetRequestIds == nil { invalidParams.Add(smithy.NewErrParamRequired("SpotFleetRequestIds")) } @@ -8003,9 +7976,6 @@ func validateOpCreateCapacityReservationInput(v *CreateCapacityReservationInput) if v.InstanceType == nil { invalidParams.Add(smithy.NewErrParamRequired("InstanceType")) } - if v.InstanceCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("InstanceCount")) - } if len(v.InstancePlatform) == 0 { invalidParams.Add(smithy.NewErrParamRequired("InstancePlatform")) } @@ -8084,9 +8054,6 @@ func validateOpCreateCustomerGatewayInput(v *CreateCustomerGatewayInput) error { if len(v.Type) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Type")) } - if v.BgpAsn == nil { - invalidParams.Add(smithy.NewErrParamRequired("BgpAsn")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -8338,9 +8305,6 @@ func validateOpCreateManagedPrefixListInput(v *CreateManagedPrefixListInput) err if v.PrefixListName == nil { invalidParams.Add(smithy.NewErrParamRequired("PrefixListName")) } - if v.MaxEntries == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxEntries")) - } if v.AddressFamily == nil { invalidParams.Add(smithy.NewErrParamRequired("AddressFamily")) } @@ -8380,15 +8344,9 @@ func validateOpCreateNetworkAclEntryInput(v *CreateNetworkAclEntryInput) error { if len(v.RuleAction) == 0 { invalidParams.Add(smithy.NewErrParamRequired("RuleAction")) } - if v.RuleNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("RuleNumber")) - } if v.NetworkAclId == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkAclId")) } - if v.Egress == nil { - invalidParams.Add(smithy.NewErrParamRequired("Egress")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -8449,9 +8407,6 @@ func validateOpCreateReservedInstancesListingInput(v *CreateReservedInstancesLis return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateReservedInstancesListingInput"} - if v.InstanceCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("InstanceCount")) - } if v.ReservedInstancesId == nil { invalidParams.Add(smithy.NewErrParamRequired("ReservedInstancesId")) } @@ -8614,9 +8569,6 @@ func validateOpCreateTrafficMirrorFilterRuleInput(v *CreateTrafficMirrorFilterRu if v.SourceCidrBlock == nil { invalidParams.Add(smithy.NewErrParamRequired("SourceCidrBlock")) } - if v.RuleNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("RuleNumber")) - } if v.DestinationCidrBlock == nil { invalidParams.Add(smithy.NewErrParamRequired("DestinationCidrBlock")) } @@ -8641,9 +8593,6 @@ func validateOpCreateTrafficMirrorSessionInput(v *CreateTrafficMirrorSessionInpu if v.TrafficMirrorFilterId == nil { invalidParams.Add(smithy.NewErrParamRequired("TrafficMirrorFilterId")) } - if v.SessionNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("SessionNumber")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -8995,9 +8944,6 @@ func validateOpDeleteFleetsInput(v *DeleteFleetsInput) error { if v.FleetIds == nil { invalidParams.Add(smithy.NewErrParamRequired("FleetIds")) } - if v.TerminateInstances == nil { - invalidParams.Add(smithy.NewErrParamRequired("TerminateInstances")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -9136,12 +9082,6 @@ func validateOpDeleteNetworkAclEntryInput(v *DeleteNetworkAclEntryInput) error { if v.NetworkAclId == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkAclId")) } - if v.Egress == nil { - invalidParams.Add(smithy.NewErrParamRequired("Egress")) - } - if v.RuleNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("RuleNumber")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -9643,9 +9583,6 @@ func validateOpDescribeByoipCidrsInput(v *DescribeByoipCidrsInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribeByoipCidrsInput"} - if v.MaxResults == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxResults")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -10876,9 +10813,6 @@ func validateOpModifyIdentityIdFormatInput(v *ModifyIdentityIdFormatInput) error return nil } invalidParams := smithy.InvalidParamsError{Context: "ModifyIdentityIdFormatInput"} - if v.UseLongIds == nil { - invalidParams.Add(smithy.NewErrParamRequired("UseLongIds")) - } if v.PrincipalArn == nil { invalidParams.Add(smithy.NewErrParamRequired("PrincipalArn")) } @@ -10897,9 +10831,6 @@ func validateOpModifyIdFormatInput(v *ModifyIdFormatInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ModifyIdFormatInput"} - if v.UseLongIds == nil { - invalidParams.Add(smithy.NewErrParamRequired("UseLongIds")) - } if v.Resource == nil { invalidParams.Add(smithy.NewErrParamRequired("Resource")) } @@ -11503,9 +11434,6 @@ func validateOpPurchaseReservedInstancesOfferingInput(v *PurchaseReservedInstanc if v.ReservedInstancesOfferingId == nil { invalidParams.Add(smithy.NewErrParamRequired("ReservedInstancesOfferingId")) } - if v.InstanceCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("InstanceCount")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -11684,12 +11612,6 @@ func validateOpReplaceNetworkAclEntryInput(v *ReplaceNetworkAclEntryInput) error if v.NetworkAclId == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkAclId")) } - if v.RuleNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("RuleNumber")) - } - if v.Egress == nil { - invalidParams.Add(smithy.NewErrParamRequired("Egress")) - } if v.Protocol == nil { invalidParams.Add(smithy.NewErrParamRequired("Protocol")) } @@ -11915,15 +11837,9 @@ func validateOpRestoreManagedPrefixListVersionInput(v *RestoreManagedPrefixListV return nil } invalidParams := smithy.InvalidParamsError{Context: "RestoreManagedPrefixListVersionInput"} - if v.CurrentVersion == nil { - invalidParams.Add(smithy.NewErrParamRequired("CurrentVersion")) - } if v.PrefixListId == nil { invalidParams.Add(smithy.NewErrParamRequired("PrefixListId")) } - if v.PreviousVersion == nil { - invalidParams.Add(smithy.NewErrParamRequired("PreviousVersion")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -11989,12 +11905,6 @@ func validateOpRunInstancesInput(v *RunInstancesInput) error { invalidParams.AddNested("ElasticInferenceAccelerators", err.(smithy.InvalidParamsError)) } } - if v.MaxCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxCount")) - } - if v.MinCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("MinCount")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/ec2instanceconnect/api_op_SendSSHPublicKey.go b/service/ec2instanceconnect/api_op_SendSSHPublicKey.go index b06b3355077..1a23234b2d4 100644 --- a/service/ec2instanceconnect/api_op_SendSSHPublicKey.go +++ b/service/ec2instanceconnect/api_op_SendSSHPublicKey.go @@ -58,7 +58,7 @@ type SendSSHPublicKeyOutput struct { RequestId *string // Indicates request success. - Success *bool + Success bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ec2instanceconnect/deserializers.go b/service/ec2instanceconnect/deserializers.go index 5d81df90517..e903fe0d08a 100644 --- a/service/ec2instanceconnect/deserializers.go +++ b/service/ec2instanceconnect/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -343,7 +344,7 @@ func awsAwsjson11_deserializeDocumentAuthException(v **types.AuthException, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -383,7 +384,7 @@ func awsAwsjson11_deserializeDocumentEC2InstanceNotFoundException(v **types.EC2I if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -423,7 +424,7 @@ func awsAwsjson11_deserializeDocumentInvalidArgsException(v **types.InvalidArgsE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -463,7 +464,7 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -503,7 +504,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -543,7 +544,7 @@ func awsAwsjson11_deserializeOpDocumentSendSSHPublicKeyOutput(v **SendSSHPublicK if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "Success": @@ -552,7 +553,7 @@ func awsAwsjson11_deserializeOpDocumentSendSSHPublicKeyOutput(v **SendSSHPublicK if !ok { return fmt.Errorf("expected Success to be of type *bool, got %T instead", value) } - sv.Success = &jtv + sv.Success = jtv } default: diff --git a/service/ec2instanceconnect/go.mod b/service/ec2instanceconnect/go.mod index b781bd97cdd..eeb4bae5c88 100644 --- a/service/ec2instanceconnect/go.mod +++ b/service/ec2instanceconnect/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/ec2instanceconnect go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/ecr/api_op_BatchCheckLayerAvailability.go b/service/ecr/api_op_BatchCheckLayerAvailability.go index d801cb83d18..86181385d38 100644 --- a/service/ecr/api_op_BatchCheckLayerAvailability.go +++ b/service/ecr/api_op_BatchCheckLayerAvailability.go @@ -37,7 +37,7 @@ type BatchCheckLayerAvailabilityInput struct { // The digests of the image layers to check. // // This member is required. - LayerDigests []*string + LayerDigests []string // The name of the repository that is associated with the image layers to check. // @@ -52,11 +52,11 @@ type BatchCheckLayerAvailabilityInput struct { type BatchCheckLayerAvailabilityOutput struct { // Any failures associated with the call. - Failures []*types.LayerFailure + Failures []types.LayerFailure // A list of image layer objects corresponding to the image layer references in the // request. - Layers []*types.Layer + Layers []types.Layer // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecr/api_op_BatchDeleteImage.go b/service/ecr/api_op_BatchDeleteImage.go index 1adff1a2ff8..91ec5617011 100644 --- a/service/ecr/api_op_BatchDeleteImage.go +++ b/service/ecr/api_op_BatchDeleteImage.go @@ -39,7 +39,7 @@ type BatchDeleteImageInput struct { // the imageIds reference is imageTag=tag or imageDigest=digest. // // This member is required. - ImageIds []*types.ImageIdentifier + ImageIds []types.ImageIdentifier // The repository that contains the image to delete. // @@ -54,10 +54,10 @@ type BatchDeleteImageInput struct { type BatchDeleteImageOutput struct { // Any failures associated with the call. - Failures []*types.ImageFailure + Failures []types.ImageFailure // The image IDs of the deleted images. - ImageIds []*types.ImageIdentifier + ImageIds []types.ImageIdentifier // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecr/api_op_BatchGetImage.go b/service/ecr/api_op_BatchGetImage.go index c226865afa5..8daaf59148c 100644 --- a/service/ecr/api_op_BatchGetImage.go +++ b/service/ecr/api_op_BatchGetImage.go @@ -35,7 +35,7 @@ type BatchGetImageInput struct { // of the imageIds reference is imageTag=tag or imageDigest=digest. // // This member is required. - ImageIds []*types.ImageIdentifier + ImageIds []types.ImageIdentifier // The repository that contains the images to describe. // @@ -46,7 +46,7 @@ type BatchGetImageInput struct { // application/vnd.docker.distribution.manifest.v1+json | // application/vnd.docker.distribution.manifest.v2+json | // application/vnd.oci.image.manifest.v1+json - AcceptedMediaTypes []*string + AcceptedMediaTypes []string // The AWS account ID associated with the registry that contains the images to // describe. If you do not specify a registry, the default registry is assumed. @@ -56,10 +56,10 @@ type BatchGetImageInput struct { type BatchGetImageOutput struct { // Any failures associated with the call. - Failures []*types.ImageFailure + Failures []types.ImageFailure // A list of image objects corresponding to the image references in the request. - Images []*types.Image + Images []types.Image // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecr/api_op_CompleteLayerUpload.go b/service/ecr/api_op_CompleteLayerUpload.go index 356417f0f3e..b30e1eae203 100644 --- a/service/ecr/api_op_CompleteLayerUpload.go +++ b/service/ecr/api_op_CompleteLayerUpload.go @@ -37,7 +37,7 @@ type CompleteLayerUploadInput struct { // The sha256 digest of the image layer. // // This member is required. - LayerDigests []*string + LayerDigests []string // The name of the repository to associate with the image layer. // diff --git a/service/ecr/api_op_CreateRepository.go b/service/ecr/api_op_CreateRepository.go index 9c23c3b2b24..53fa2b7ab98 100644 --- a/service/ecr/api_op_CreateRepository.go +++ b/service/ecr/api_op_CreateRepository.go @@ -57,7 +57,7 @@ type CreateRepositoryInput struct { // organize them. Each tag consists of a key and an optional value, both of which // you define. Tag keys can have a maximum character length of 128 characters, and // tag values can have a maximum length of 256 characters. - Tags []*types.Tag + Tags []types.Tag } type CreateRepositoryOutput struct { diff --git a/service/ecr/api_op_DeleteRepository.go b/service/ecr/api_op_DeleteRepository.go index 5f3e2ed6467..ef896715954 100644 --- a/service/ecr/api_op_DeleteRepository.go +++ b/service/ecr/api_op_DeleteRepository.go @@ -36,7 +36,7 @@ type DeleteRepositoryInput struct { RepositoryName *string // If a repository contains images, forces the deletion. - Force *bool + Force bool // The AWS account ID associated with the registry that contains the repository to // delete. If you do not specify a registry, the default registry is assumed. diff --git a/service/ecr/api_op_DescribeImages.go b/service/ecr/api_op_DescribeImages.go index 7c25be700bc..91410124a04 100644 --- a/service/ecr/api_op_DescribeImages.go +++ b/service/ecr/api_op_DescribeImages.go @@ -42,7 +42,7 @@ type DescribeImagesInput struct { Filter *types.DescribeImagesFilter // The list of image IDs for the requested repository. - ImageIds []*types.ImageIdentifier + ImageIds []types.ImageIdentifier // The maximum number of repository results returned by DescribeImages in paginated // output. When this parameter is used, DescribeImages only returns maxResults @@ -70,7 +70,7 @@ type DescribeImagesInput struct { type DescribeImagesOutput struct { // A list of ImageDetail objects that contain data about the image. - ImageDetails []*types.ImageDetail + ImageDetails []types.ImageDetail // The nextToken value to include in a future DescribeImages request. When the // results of a DescribeImages request exceed maxResults, this value can be used to diff --git a/service/ecr/api_op_DescribeRepositories.go b/service/ecr/api_op_DescribeRepositories.go index 364a3113a9d..e24731ca04a 100644 --- a/service/ecr/api_op_DescribeRepositories.go +++ b/service/ecr/api_op_DescribeRepositories.go @@ -56,7 +56,7 @@ type DescribeRepositoriesInput struct { // A list of repositories to describe. If this parameter is omitted, then all // repositories in a registry are described. - RepositoryNames []*string + RepositoryNames []string } type DescribeRepositoriesOutput struct { @@ -68,7 +68,7 @@ type DescribeRepositoriesOutput struct { NextToken *string // A list of repository objects corresponding to valid repositories. - Repositories []*types.Repository + Repositories []types.Repository // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecr/api_op_GetAuthorizationToken.go b/service/ecr/api_op_GetAuthorizationToken.go index f09df87f82d..772292e193d 100644 --- a/service/ecr/api_op_GetAuthorizationToken.go +++ b/service/ecr/api_op_GetAuthorizationToken.go @@ -40,14 +40,14 @@ type GetAuthorizationTokenInput struct { // A list of AWS account IDs that are associated with the registries for which to // get AuthorizationData objects. If you do not specify a registry, the default // registry is assumed. - RegistryIds []*string + RegistryIds []string } type GetAuthorizationTokenOutput struct { // A list of authorization token data objects that correspond to the registryIds // values in the request. - AuthorizationData []*types.AuthorizationData + AuthorizationData []types.AuthorizationData // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecr/api_op_GetLifecyclePolicyPreview.go b/service/ecr/api_op_GetLifecyclePolicyPreview.go index 965fa49b6a4..f36f1e98e04 100644 --- a/service/ecr/api_op_GetLifecyclePolicyPreview.go +++ b/service/ecr/api_op_GetLifecyclePolicyPreview.go @@ -40,7 +40,7 @@ type GetLifecyclePolicyPreviewInput struct { Filter *types.LifecyclePolicyPreviewFilter // The list of imageIDs to be included. - ImageIds []*types.ImageIdentifier + ImageIds []types.ImageIdentifier // The maximum number of repository results returned by // GetLifecyclePolicyPreviewRequest in
 paginated output. When this parameter is @@ -79,7 +79,7 @@ type GetLifecyclePolicyPreviewOutput struct { NextToken *string // The results of the lifecycle policy preview request. - PreviewResults []*types.LifecyclePolicyPreviewResult + PreviewResults []types.LifecyclePolicyPreviewResult // The registry ID associated with the request. RegistryId *string diff --git a/service/ecr/api_op_ListImages.go b/service/ecr/api_op_ListImages.go index 9458b5f49dd..73c5b0eb3fd 100644 --- a/service/ecr/api_op_ListImages.go +++ b/service/ecr/api_op_ListImages.go @@ -68,7 +68,7 @@ type ListImagesInput struct { type ListImagesOutput struct { // The list of image IDs for the requested repository. - ImageIds []*types.ImageIdentifier + ImageIds []types.ImageIdentifier // The nextToken value to include in a future ListImages request. When the results // of a ListImages request exceed maxResults, this value can be used to retrieve diff --git a/service/ecr/api_op_ListTagsForResource.go b/service/ecr/api_op_ListTagsForResource.go index 8afafb4d4d2..c3ff9cf9bac 100644 --- a/service/ecr/api_op_ListTagsForResource.go +++ b/service/ecr/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags for the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecr/api_op_SetRepositoryPolicy.go b/service/ecr/api_op_SetRepositoryPolicy.go index 22f59320fd9..bfb202b29d6 100644 --- a/service/ecr/api_op_SetRepositoryPolicy.go +++ b/service/ecr/api_op_SetRepositoryPolicy.go @@ -48,7 +48,7 @@ type SetRepositoryPolicyInput struct { // from setting another policy in the future, you must force the // SetRepositoryPolicy operation. This is intended to prevent accidental repository // lock outs. - Force *bool + Force bool // The AWS account ID associated with the registry that contains the repository. If // you do not specify a registry, the default registry is assumed. diff --git a/service/ecr/api_op_TagResource.go b/service/ecr/api_op_TagResource.go index 8222ccb4a70..7c6e1bf176f 100644 --- a/service/ecr/api_op_TagResource.go +++ b/service/ecr/api_op_TagResource.go @@ -41,7 +41,7 @@ type TagResourceInput struct { // maximum length of 256 characters. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/ecr/api_op_UntagResource.go b/service/ecr/api_op_UntagResource.go index a7617569ddb..8ff197bfffd 100644 --- a/service/ecr/api_op_UntagResource.go +++ b/service/ecr/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // The keys of the tags to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/ecr/deserializers.go b/service/ecr/deserializers.go index a8e47c884fd..2b8ba0b0c12 100644 --- a/service/ecr/deserializers.go +++ b/service/ecr/deserializers.go @@ -4546,7 +4546,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf if !ok { return fmt.Errorf("expected AttributeKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -4555,7 +4555,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4567,7 +4567,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf return nil } -func awsAwsjson11_deserializeDocumentAttributeList(v *[]*types.Attribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttributeList(v *[]types.Attribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4580,18 +4580,20 @@ func awsAwsjson11_deserializeDocumentAttributeList(v *[]*types.Attribute, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Attribute + var cv []types.Attribute if *v == nil { - cv = []*types.Attribute{} + cv = []types.Attribute{} } else { cv = *v } for _, value := range shape { - var col *types.Attribute - if err := awsAwsjson11_deserializeDocumentAttribute(&col, value); err != nil { + var col types.Attribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4627,7 +4629,7 @@ func awsAwsjson11_deserializeDocumentAuthorizationData(v **types.AuthorizationDa if !ok { return fmt.Errorf("expected Base64 to be of type string, got %T instead", value) } - sv.AuthorizationToken = &jtv + sv.AuthorizationToken = ptr.String(jtv) } case "expiresAt": @@ -4649,7 +4651,7 @@ func awsAwsjson11_deserializeDocumentAuthorizationData(v **types.AuthorizationDa if !ok { return fmt.Errorf("expected ProxyEndpoint to be of type string, got %T instead", value) } - sv.ProxyEndpoint = &jtv + sv.ProxyEndpoint = ptr.String(jtv) } default: @@ -4661,7 +4663,7 @@ func awsAwsjson11_deserializeDocumentAuthorizationData(v **types.AuthorizationDa return nil } -func awsAwsjson11_deserializeDocumentAuthorizationDataList(v *[]*types.AuthorizationData, value interface{}) error { +func awsAwsjson11_deserializeDocumentAuthorizationDataList(v *[]types.AuthorizationData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4674,18 +4676,20 @@ func awsAwsjson11_deserializeDocumentAuthorizationDataList(v *[]*types.Authoriza return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AuthorizationData + var cv []types.AuthorizationData if *v == nil { - cv = []*types.AuthorizationData{} + cv = []types.AuthorizationData{} } else { cv = *v } for _, value := range shape { - var col *types.AuthorizationData - if err := awsAwsjson11_deserializeDocumentAuthorizationData(&col, value); err != nil { + var col types.AuthorizationData + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAuthorizationData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4721,7 +4725,7 @@ func awsAwsjson11_deserializeDocumentEmptyUploadException(v **types.EmptyUploadE if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4770,7 +4774,7 @@ func awsAwsjson11_deserializeDocumentEncryptionConfiguration(v **types.Encryptio if !ok { return fmt.Errorf("expected KmsKey to be of type string, got %T instead", value) } - sv.KmsKey = &jtv + sv.KmsKey = ptr.String(jtv) } default: @@ -4782,7 +4786,7 @@ func awsAwsjson11_deserializeDocumentEncryptionConfiguration(v **types.Encryptio return nil } -func awsAwsjson11_deserializeDocumentFindingSeverityCounts(v *map[string]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentFindingSeverityCounts(v *map[string]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4795,15 +4799,15 @@ func awsAwsjson11_deserializeDocumentFindingSeverityCounts(v *map[string]*int32, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*int32 + var mv map[string]int32 if *v == nil { - mv = map[string]*int32{} + mv = map[string]int32{} } else { mv = *v } for key, value := range shape { - var parsedVal *int32 + var parsedVal int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -4813,7 +4817,7 @@ func awsAwsjson11_deserializeDocumentFindingSeverityCounts(v *map[string]*int32, if err != nil { return err } - parsedVal = ptr.Int32(int32(i64)) + parsedVal = int32(i64) } mv[key] = parsedVal @@ -4855,7 +4859,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected ImageManifest to be of type string, got %T instead", value) } - sv.ImageManifest = &jtv + sv.ImageManifest = ptr.String(jtv) } case "imageManifestMediaType": @@ -4864,7 +4868,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected MediaType to be of type string, got %T instead", value) } - sv.ImageManifestMediaType = &jtv + sv.ImageManifestMediaType = ptr.String(jtv) } case "registryId": @@ -4873,7 +4877,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -4882,7 +4886,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -4922,7 +4926,7 @@ func awsAwsjson11_deserializeDocumentImageAlreadyExistsException(v **types.Image if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4962,7 +4966,7 @@ func awsAwsjson11_deserializeDocumentImageDetail(v **types.ImageDetail, value in if !ok { return fmt.Errorf("expected MediaType to be of type string, got %T instead", value) } - sv.ArtifactMediaType = &jtv + sv.ArtifactMediaType = ptr.String(jtv) } case "imageDigest": @@ -4971,7 +4975,7 @@ func awsAwsjson11_deserializeDocumentImageDetail(v **types.ImageDetail, value in if !ok { return fmt.Errorf("expected ImageDigest to be of type string, got %T instead", value) } - sv.ImageDigest = &jtv + sv.ImageDigest = ptr.String(jtv) } case "imageManifestMediaType": @@ -4980,7 +4984,7 @@ func awsAwsjson11_deserializeDocumentImageDetail(v **types.ImageDetail, value in if !ok { return fmt.Errorf("expected MediaType to be of type string, got %T instead", value) } - sv.ImageManifestMediaType = &jtv + sv.ImageManifestMediaType = ptr.String(jtv) } case "imagePushedAt": @@ -5016,7 +5020,7 @@ func awsAwsjson11_deserializeDocumentImageDetail(v **types.ImageDetail, value in if err != nil { return err } - sv.ImageSizeInBytes = &i64 + sv.ImageSizeInBytes = ptr.Int64(i64) } case "imageTags": @@ -5030,7 +5034,7 @@ func awsAwsjson11_deserializeDocumentImageDetail(v **types.ImageDetail, value in if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -5039,7 +5043,7 @@ func awsAwsjson11_deserializeDocumentImageDetail(v **types.ImageDetail, value in if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -5051,7 +5055,7 @@ func awsAwsjson11_deserializeDocumentImageDetail(v **types.ImageDetail, value in return nil } -func awsAwsjson11_deserializeDocumentImageDetailList(v *[]*types.ImageDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentImageDetailList(v *[]types.ImageDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5064,18 +5068,20 @@ func awsAwsjson11_deserializeDocumentImageDetailList(v *[]*types.ImageDetail, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImageDetail + var cv []types.ImageDetail if *v == nil { - cv = []*types.ImageDetail{} + cv = []types.ImageDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ImageDetail - if err := awsAwsjson11_deserializeDocumentImageDetail(&col, value); err != nil { + var col types.ImageDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImageDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5111,7 +5117,7 @@ func awsAwsjson11_deserializeDocumentImageDigestDoesNotMatchException(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5160,7 +5166,7 @@ func awsAwsjson11_deserializeDocumentImageFailure(v **types.ImageFailure, value if !ok { return fmt.Errorf("expected ImageFailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "imageId": @@ -5177,7 +5183,7 @@ func awsAwsjson11_deserializeDocumentImageFailure(v **types.ImageFailure, value return nil } -func awsAwsjson11_deserializeDocumentImageFailureList(v *[]*types.ImageFailure, value interface{}) error { +func awsAwsjson11_deserializeDocumentImageFailureList(v *[]types.ImageFailure, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5190,18 +5196,20 @@ func awsAwsjson11_deserializeDocumentImageFailureList(v *[]*types.ImageFailure, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImageFailure + var cv []types.ImageFailure if *v == nil { - cv = []*types.ImageFailure{} + cv = []types.ImageFailure{} } else { cv = *v } for _, value := range shape { - var col *types.ImageFailure - if err := awsAwsjson11_deserializeDocumentImageFailure(&col, value); err != nil { + var col types.ImageFailure + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImageFailure(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5237,7 +5245,7 @@ func awsAwsjson11_deserializeDocumentImageIdentifier(v **types.ImageIdentifier, if !ok { return fmt.Errorf("expected ImageDigest to be of type string, got %T instead", value) } - sv.ImageDigest = &jtv + sv.ImageDigest = ptr.String(jtv) } case "imageTag": @@ -5246,7 +5254,7 @@ func awsAwsjson11_deserializeDocumentImageIdentifier(v **types.ImageIdentifier, if !ok { return fmt.Errorf("expected ImageTag to be of type string, got %T instead", value) } - sv.ImageTag = &jtv + sv.ImageTag = ptr.String(jtv) } default: @@ -5258,7 +5266,7 @@ func awsAwsjson11_deserializeDocumentImageIdentifier(v **types.ImageIdentifier, return nil } -func awsAwsjson11_deserializeDocumentImageIdentifierList(v *[]*types.ImageIdentifier, value interface{}) error { +func awsAwsjson11_deserializeDocumentImageIdentifierList(v *[]types.ImageIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5271,18 +5279,20 @@ func awsAwsjson11_deserializeDocumentImageIdentifierList(v *[]*types.ImageIdenti return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImageIdentifier + var cv []types.ImageIdentifier if *v == nil { - cv = []*types.ImageIdentifier{} + cv = []types.ImageIdentifier{} } else { cv = *v } for _, value := range shape { - var col *types.ImageIdentifier - if err := awsAwsjson11_deserializeDocumentImageIdentifier(&col, value); err != nil { + var col types.ImageIdentifier + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImageIdentifier(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5290,7 +5300,7 @@ func awsAwsjson11_deserializeDocumentImageIdentifierList(v *[]*types.ImageIdenti return nil } -func awsAwsjson11_deserializeDocumentImageList(v *[]*types.Image, value interface{}) error { +func awsAwsjson11_deserializeDocumentImageList(v *[]types.Image, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5303,18 +5313,20 @@ func awsAwsjson11_deserializeDocumentImageList(v *[]*types.Image, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Image + var cv []types.Image if *v == nil { - cv = []*types.Image{} + cv = []types.Image{} } else { cv = *v } for _, value := range shape { - var col *types.Image - if err := awsAwsjson11_deserializeDocumentImage(&col, value); err != nil { + var col types.Image + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5350,7 +5362,7 @@ func awsAwsjson11_deserializeDocumentImageNotFoundException(v **types.ImageNotFo if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5395,7 +5407,7 @@ func awsAwsjson11_deserializeDocumentImageScanFinding(v **types.ImageScanFinding if !ok { return fmt.Errorf("expected FindingDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "name": @@ -5404,7 +5416,7 @@ func awsAwsjson11_deserializeDocumentImageScanFinding(v **types.ImageScanFinding if !ok { return fmt.Errorf("expected FindingName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "severity": @@ -5422,7 +5434,7 @@ func awsAwsjson11_deserializeDocumentImageScanFinding(v **types.ImageScanFinding if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.Uri = &jtv + sv.Uri = ptr.String(jtv) } default: @@ -5434,7 +5446,7 @@ func awsAwsjson11_deserializeDocumentImageScanFinding(v **types.ImageScanFinding return nil } -func awsAwsjson11_deserializeDocumentImageScanFindingList(v *[]*types.ImageScanFinding, value interface{}) error { +func awsAwsjson11_deserializeDocumentImageScanFindingList(v *[]types.ImageScanFinding, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5447,18 +5459,20 @@ func awsAwsjson11_deserializeDocumentImageScanFindingList(v *[]*types.ImageScanF return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImageScanFinding + var cv []types.ImageScanFinding if *v == nil { - cv = []*types.ImageScanFinding{} + cv = []types.ImageScanFinding{} } else { cv = *v } for _, value := range shape { - var col *types.ImageScanFinding - if err := awsAwsjson11_deserializeDocumentImageScanFinding(&col, value); err != nil { + var col types.ImageScanFinding + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImageScanFinding(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5623,7 +5637,7 @@ func awsAwsjson11_deserializeDocumentImageScanningConfiguration(v **types.ImageS if !ok { return fmt.Errorf("expected ScanOnPushFlag to be of type *bool, got %T instead", value) } - sv.ScanOnPush = &jtv + sv.ScanOnPush = jtv } default: @@ -5663,7 +5677,7 @@ func awsAwsjson11_deserializeDocumentImageScanStatus(v **types.ImageScanStatus, if !ok { return fmt.Errorf("expected ScanStatusDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "status": @@ -5712,7 +5726,7 @@ func awsAwsjson11_deserializeDocumentImageTagAlreadyExistsException(v **types.Im if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5724,7 +5738,7 @@ func awsAwsjson11_deserializeDocumentImageTagAlreadyExistsException(v **types.Im return nil } -func awsAwsjson11_deserializeDocumentImageTagList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentImageTagList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5737,21 +5751,21 @@ func awsAwsjson11_deserializeDocumentImageTagList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ImageTag to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5788,7 +5802,7 @@ func awsAwsjson11_deserializeDocumentInvalidLayerException(v **types.InvalidLaye if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5832,7 +5846,7 @@ func awsAwsjson11_deserializeDocumentInvalidLayerPartException(v **types.Invalid if err != nil { return err } - sv.LastValidByteReceived = &i64 + sv.LastValidByteReceived = ptr.Int64(i64) } case "message": @@ -5841,7 +5855,7 @@ func awsAwsjson11_deserializeDocumentInvalidLayerPartException(v **types.Invalid if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "registryId": @@ -5850,7 +5864,7 @@ func awsAwsjson11_deserializeDocumentInvalidLayerPartException(v **types.Invalid if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -5859,7 +5873,7 @@ func awsAwsjson11_deserializeDocumentInvalidLayerPartException(v **types.Invalid if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } case "uploadId": @@ -5868,7 +5882,7 @@ func awsAwsjson11_deserializeDocumentInvalidLayerPartException(v **types.Invalid if !ok { return fmt.Errorf("expected UploadId to be of type string, got %T instead", value) } - sv.UploadId = &jtv + sv.UploadId = ptr.String(jtv) } default: @@ -5908,7 +5922,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5948,7 +5962,7 @@ func awsAwsjson11_deserializeDocumentInvalidTagParameterException(v **types.Inva if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5988,7 +6002,7 @@ func awsAwsjson11_deserializeDocumentKmsException(v **types.KmsException, value if !ok { return fmt.Errorf("expected KmsError to be of type string, got %T instead", value) } - sv.KmsError = &jtv + sv.KmsError = ptr.String(jtv) } case "message": @@ -5997,7 +6011,7 @@ func awsAwsjson11_deserializeDocumentKmsException(v **types.KmsException, value if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6046,7 +6060,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected LayerDigest to be of type string, got %T instead", value) } - sv.LayerDigest = &jtv + sv.LayerDigest = ptr.String(jtv) } case "layerSize": @@ -6059,7 +6073,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if err != nil { return err } - sv.LayerSize = &i64 + sv.LayerSize = ptr.Int64(i64) } case "mediaType": @@ -6068,7 +6082,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected MediaType to be of type string, got %T instead", value) } - sv.MediaType = &jtv + sv.MediaType = ptr.String(jtv) } default: @@ -6108,7 +6122,7 @@ func awsAwsjson11_deserializeDocumentLayerAlreadyExistsException(v **types.Layer if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6157,7 +6171,7 @@ func awsAwsjson11_deserializeDocumentLayerFailure(v **types.LayerFailure, value if !ok { return fmt.Errorf("expected LayerFailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "layerDigest": @@ -6166,7 +6180,7 @@ func awsAwsjson11_deserializeDocumentLayerFailure(v **types.LayerFailure, value if !ok { return fmt.Errorf("expected BatchedOperationLayerDigest to be of type string, got %T instead", value) } - sv.LayerDigest = &jtv + sv.LayerDigest = ptr.String(jtv) } default: @@ -6178,7 +6192,7 @@ func awsAwsjson11_deserializeDocumentLayerFailure(v **types.LayerFailure, value return nil } -func awsAwsjson11_deserializeDocumentLayerFailureList(v *[]*types.LayerFailure, value interface{}) error { +func awsAwsjson11_deserializeDocumentLayerFailureList(v *[]types.LayerFailure, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6191,18 +6205,20 @@ func awsAwsjson11_deserializeDocumentLayerFailureList(v *[]*types.LayerFailure, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LayerFailure + var cv []types.LayerFailure if *v == nil { - cv = []*types.LayerFailure{} + cv = []types.LayerFailure{} } else { cv = *v } for _, value := range shape { - var col *types.LayerFailure - if err := awsAwsjson11_deserializeDocumentLayerFailure(&col, value); err != nil { + var col types.LayerFailure + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLayerFailure(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6238,7 +6254,7 @@ func awsAwsjson11_deserializeDocumentLayerInaccessibleException(v **types.LayerI if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6250,7 +6266,7 @@ func awsAwsjson11_deserializeDocumentLayerInaccessibleException(v **types.LayerI return nil } -func awsAwsjson11_deserializeDocumentLayerList(v *[]*types.Layer, value interface{}) error { +func awsAwsjson11_deserializeDocumentLayerList(v *[]types.Layer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6263,18 +6279,20 @@ func awsAwsjson11_deserializeDocumentLayerList(v *[]*types.Layer, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Layer + var cv []types.Layer if *v == nil { - cv = []*types.Layer{} + cv = []types.Layer{} } else { cv = *v } for _, value := range shape { - var col *types.Layer - if err := awsAwsjson11_deserializeDocumentLayer(&col, value); err != nil { + var col types.Layer + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLayer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6310,7 +6328,7 @@ func awsAwsjson11_deserializeDocumentLayerPartTooSmallException(v **types.LayerP if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6350,7 +6368,7 @@ func awsAwsjson11_deserializeDocumentLayersNotFoundException(v **types.LayersNot if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6390,7 +6408,7 @@ func awsAwsjson11_deserializeDocumentLifecyclePolicyNotFoundException(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6430,7 +6448,7 @@ func awsAwsjson11_deserializeDocumentLifecyclePolicyPreviewInProgressException(v if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6470,7 +6488,7 @@ func awsAwsjson11_deserializeDocumentLifecyclePolicyPreviewNotFoundException(v * if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6528,7 +6546,7 @@ func awsAwsjson11_deserializeDocumentLifecyclePolicyPreviewResult(v **types.Life if !ok { return fmt.Errorf("expected ImageDigest to be of type string, got %T instead", value) } - sv.ImageDigest = &jtv + sv.ImageDigest = ptr.String(jtv) } case "imagePushedAt": @@ -6558,7 +6576,7 @@ func awsAwsjson11_deserializeDocumentLifecyclePolicyPreviewResult(v **types.Life return nil } -func awsAwsjson11_deserializeDocumentLifecyclePolicyPreviewResultList(v *[]*types.LifecyclePolicyPreviewResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentLifecyclePolicyPreviewResultList(v *[]types.LifecyclePolicyPreviewResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6571,18 +6589,20 @@ func awsAwsjson11_deserializeDocumentLifecyclePolicyPreviewResultList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LifecyclePolicyPreviewResult + var cv []types.LifecyclePolicyPreviewResult if *v == nil { - cv = []*types.LifecyclePolicyPreviewResult{} + cv = []types.LifecyclePolicyPreviewResult{} } else { cv = *v } for _, value := range shape { - var col *types.LifecyclePolicyPreviewResult - if err := awsAwsjson11_deserializeDocumentLifecyclePolicyPreviewResult(&col, value); err != nil { + var col types.LifecyclePolicyPreviewResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLifecyclePolicyPreviewResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6702,7 +6722,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6742,7 +6762,7 @@ func awsAwsjson11_deserializeDocumentReferencedImagesNotFoundException(v **types if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6814,7 +6834,7 @@ func awsAwsjson11_deserializeDocumentRepository(v **types.Repository, value inte if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryArn": @@ -6823,7 +6843,7 @@ func awsAwsjson11_deserializeDocumentRepository(v **types.Repository, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RepositoryArn = &jtv + sv.RepositoryArn = ptr.String(jtv) } case "repositoryName": @@ -6832,7 +6852,7 @@ func awsAwsjson11_deserializeDocumentRepository(v **types.Repository, value inte if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } case "repositoryUri": @@ -6841,7 +6861,7 @@ func awsAwsjson11_deserializeDocumentRepository(v **types.Repository, value inte if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.RepositoryUri = &jtv + sv.RepositoryUri = ptr.String(jtv) } default: @@ -6881,7 +6901,7 @@ func awsAwsjson11_deserializeDocumentRepositoryAlreadyExistsException(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6893,7 +6913,7 @@ func awsAwsjson11_deserializeDocumentRepositoryAlreadyExistsException(v **types. return nil } -func awsAwsjson11_deserializeDocumentRepositoryList(v *[]*types.Repository, value interface{}) error { +func awsAwsjson11_deserializeDocumentRepositoryList(v *[]types.Repository, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6906,18 +6926,20 @@ func awsAwsjson11_deserializeDocumentRepositoryList(v *[]*types.Repository, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Repository + var cv []types.Repository if *v == nil { - cv = []*types.Repository{} + cv = []types.Repository{} } else { cv = *v } for _, value := range shape { - var col *types.Repository - if err := awsAwsjson11_deserializeDocumentRepository(&col, value); err != nil { + var col types.Repository + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRepository(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6953,7 +6975,7 @@ func awsAwsjson11_deserializeDocumentRepositoryNotEmptyException(v **types.Repos if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6993,7 +7015,7 @@ func awsAwsjson11_deserializeDocumentRepositoryNotFoundException(v **types.Repos if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7033,7 +7055,7 @@ func awsAwsjson11_deserializeDocumentRepositoryPolicyNotFoundException(v **types if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7073,7 +7095,7 @@ func awsAwsjson11_deserializeDocumentScanNotFoundException(v **types.ScanNotFoun if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7113,7 +7135,7 @@ func awsAwsjson11_deserializeDocumentServerException(v **types.ServerException, if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7153,7 +7175,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -7162,7 +7184,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -7174,7 +7196,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7187,18 +7209,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7234,7 +7258,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7274,7 +7298,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedImageTypeException(v **types.Uns if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7314,7 +7338,7 @@ func awsAwsjson11_deserializeDocumentUploadNotFoundException(v **types.UploadNot if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7477,7 +7501,7 @@ func awsAwsjson11_deserializeOpDocumentCompleteLayerUploadOutput(v **CompleteLay if !ok { return fmt.Errorf("expected LayerDigest to be of type string, got %T instead", value) } - sv.LayerDigest = &jtv + sv.LayerDigest = ptr.String(jtv) } case "registryId": @@ -7486,7 +7510,7 @@ func awsAwsjson11_deserializeOpDocumentCompleteLayerUploadOutput(v **CompleteLay if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -7495,7 +7519,7 @@ func awsAwsjson11_deserializeOpDocumentCompleteLayerUploadOutput(v **CompleteLay if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } case "uploadId": @@ -7504,7 +7528,7 @@ func awsAwsjson11_deserializeOpDocumentCompleteLayerUploadOutput(v **CompleteLay if !ok { return fmt.Errorf("expected UploadId to be of type string, got %T instead", value) } - sv.UploadId = &jtv + sv.UploadId = ptr.String(jtv) } default: @@ -7593,7 +7617,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLifecyclePolicyOutput(v **DeleteLif if !ok { return fmt.Errorf("expected LifecyclePolicyText to be of type string, got %T instead", value) } - sv.LifecyclePolicyText = &jtv + sv.LifecyclePolicyText = ptr.String(jtv) } case "registryId": @@ -7602,7 +7626,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLifecyclePolicyOutput(v **DeleteLif if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -7611,7 +7635,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLifecyclePolicyOutput(v **DeleteLif if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -7687,7 +7711,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRepositoryPolicyOutput(v **DeleteRe if !ok { return fmt.Errorf("expected RepositoryPolicyText to be of type string, got %T instead", value) } - sv.PolicyText = &jtv + sv.PolicyText = ptr.String(jtv) } case "registryId": @@ -7696,7 +7720,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRepositoryPolicyOutput(v **DeleteRe if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -7705,7 +7729,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRepositoryPolicyOutput(v **DeleteRe if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -7760,7 +7784,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageScanFindingsOutput(v **Descr if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "registryId": @@ -7769,7 +7793,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageScanFindingsOutput(v **Descr if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -7778,7 +7802,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageScanFindingsOutput(v **Descr if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -7823,7 +7847,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImagesOutput(v **DescribeImagesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7863,7 +7887,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRepositoriesOutput(v **DescribeRe if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "repositories": @@ -7944,7 +7968,7 @@ func awsAwsjson11_deserializeOpDocumentGetDownloadUrlForLayerOutput(v **GetDownl if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.DownloadUrl = &jtv + sv.DownloadUrl = ptr.String(jtv) } case "layerDigest": @@ -7953,7 +7977,7 @@ func awsAwsjson11_deserializeOpDocumentGetDownloadUrlForLayerOutput(v **GetDownl if !ok { return fmt.Errorf("expected LayerDigest to be of type string, got %T instead", value) } - sv.LayerDigest = &jtv + sv.LayerDigest = ptr.String(jtv) } default: @@ -8006,7 +8030,7 @@ func awsAwsjson11_deserializeOpDocumentGetLifecyclePolicyOutput(v **GetLifecycle if !ok { return fmt.Errorf("expected LifecyclePolicyText to be of type string, got %T instead", value) } - sv.LifecyclePolicyText = &jtv + sv.LifecyclePolicyText = ptr.String(jtv) } case "registryId": @@ -8015,7 +8039,7 @@ func awsAwsjson11_deserializeOpDocumentGetLifecyclePolicyOutput(v **GetLifecycle if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -8024,7 +8048,7 @@ func awsAwsjson11_deserializeOpDocumentGetLifecyclePolicyOutput(v **GetLifecycle if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -8064,7 +8088,7 @@ func awsAwsjson11_deserializeOpDocumentGetLifecyclePolicyPreviewOutput(v **GetLi if !ok { return fmt.Errorf("expected LifecyclePolicyText to be of type string, got %T instead", value) } - sv.LifecyclePolicyText = &jtv + sv.LifecyclePolicyText = ptr.String(jtv) } case "nextToken": @@ -8073,7 +8097,7 @@ func awsAwsjson11_deserializeOpDocumentGetLifecyclePolicyPreviewOutput(v **GetLi if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "previewResults": @@ -8087,7 +8111,7 @@ func awsAwsjson11_deserializeOpDocumentGetLifecyclePolicyPreviewOutput(v **GetLi if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -8096,7 +8120,7 @@ func awsAwsjson11_deserializeOpDocumentGetLifecyclePolicyPreviewOutput(v **GetLi if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } case "status": @@ -8150,7 +8174,7 @@ func awsAwsjson11_deserializeOpDocumentGetRepositoryPolicyOutput(v **GetReposito if !ok { return fmt.Errorf("expected RepositoryPolicyText to be of type string, got %T instead", value) } - sv.PolicyText = &jtv + sv.PolicyText = ptr.String(jtv) } case "registryId": @@ -8159,7 +8183,7 @@ func awsAwsjson11_deserializeOpDocumentGetRepositoryPolicyOutput(v **GetReposito if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -8168,7 +8192,7 @@ func awsAwsjson11_deserializeOpDocumentGetRepositoryPolicyOutput(v **GetReposito if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -8212,7 +8236,7 @@ func awsAwsjson11_deserializeOpDocumentInitiateLayerUploadOutput(v **InitiateLay if err != nil { return err } - sv.PartSize = &i64 + sv.PartSize = ptr.Int64(i64) } case "uploadId": @@ -8221,7 +8245,7 @@ func awsAwsjson11_deserializeOpDocumentInitiateLayerUploadOutput(v **InitiateLay if !ok { return fmt.Errorf("expected UploadId to be of type string, got %T instead", value) } - sv.UploadId = &jtv + sv.UploadId = ptr.String(jtv) } default: @@ -8266,7 +8290,7 @@ func awsAwsjson11_deserializeOpDocumentListImagesOutput(v **ListImagesOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8383,7 +8407,7 @@ func awsAwsjson11_deserializeOpDocumentPutImageScanningConfigurationOutput(v **P if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -8392,7 +8416,7 @@ func awsAwsjson11_deserializeOpDocumentPutImageScanningConfigurationOutput(v **P if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -8441,7 +8465,7 @@ func awsAwsjson11_deserializeOpDocumentPutImageTagMutabilityOutput(v **PutImageT if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -8450,7 +8474,7 @@ func awsAwsjson11_deserializeOpDocumentPutImageTagMutabilityOutput(v **PutImageT if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -8490,7 +8514,7 @@ func awsAwsjson11_deserializeOpDocumentPutLifecyclePolicyOutput(v **PutLifecycle if !ok { return fmt.Errorf("expected LifecyclePolicyText to be of type string, got %T instead", value) } - sv.LifecyclePolicyText = &jtv + sv.LifecyclePolicyText = ptr.String(jtv) } case "registryId": @@ -8499,7 +8523,7 @@ func awsAwsjson11_deserializeOpDocumentPutLifecyclePolicyOutput(v **PutLifecycle if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -8508,7 +8532,7 @@ func awsAwsjson11_deserializeOpDocumentPutLifecyclePolicyOutput(v **PutLifecycle if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -8548,7 +8572,7 @@ func awsAwsjson11_deserializeOpDocumentSetRepositoryPolicyOutput(v **SetReposito if !ok { return fmt.Errorf("expected RepositoryPolicyText to be of type string, got %T instead", value) } - sv.PolicyText = &jtv + sv.PolicyText = ptr.String(jtv) } case "registryId": @@ -8557,7 +8581,7 @@ func awsAwsjson11_deserializeOpDocumentSetRepositoryPolicyOutput(v **SetReposito if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -8566,7 +8590,7 @@ func awsAwsjson11_deserializeOpDocumentSetRepositoryPolicyOutput(v **SetReposito if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -8616,7 +8640,7 @@ func awsAwsjson11_deserializeOpDocumentStartImageScanOutput(v **StartImageScanOu if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -8625,7 +8649,7 @@ func awsAwsjson11_deserializeOpDocumentStartImageScanOutput(v **StartImageScanOu if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } default: @@ -8665,7 +8689,7 @@ func awsAwsjson11_deserializeOpDocumentStartLifecyclePolicyPreviewOutput(v **Sta if !ok { return fmt.Errorf("expected LifecyclePolicyText to be of type string, got %T instead", value) } - sv.LifecyclePolicyText = &jtv + sv.LifecyclePolicyText = ptr.String(jtv) } case "registryId": @@ -8674,7 +8698,7 @@ func awsAwsjson11_deserializeOpDocumentStartLifecyclePolicyPreviewOutput(v **Sta if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -8683,7 +8707,7 @@ func awsAwsjson11_deserializeOpDocumentStartLifecyclePolicyPreviewOutput(v **Sta if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } case "status": @@ -8798,7 +8822,7 @@ func awsAwsjson11_deserializeOpDocumentUploadLayerPartOutput(v **UploadLayerPart if err != nil { return err } - sv.LastByteReceived = &i64 + sv.LastByteReceived = ptr.Int64(i64) } case "registryId": @@ -8807,7 +8831,7 @@ func awsAwsjson11_deserializeOpDocumentUploadLayerPartOutput(v **UploadLayerPart if !ok { return fmt.Errorf("expected RegistryId to be of type string, got %T instead", value) } - sv.RegistryId = &jtv + sv.RegistryId = ptr.String(jtv) } case "repositoryName": @@ -8816,7 +8840,7 @@ func awsAwsjson11_deserializeOpDocumentUploadLayerPartOutput(v **UploadLayerPart if !ok { return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) } - sv.RepositoryName = &jtv + sv.RepositoryName = ptr.String(jtv) } case "uploadId": @@ -8825,7 +8849,7 @@ func awsAwsjson11_deserializeOpDocumentUploadLayerPartOutput(v **UploadLayerPart if !ok { return fmt.Errorf("expected UploadId to be of type string, got %T instead", value) } - sv.UploadId = &jtv + sv.UploadId = ptr.String(jtv) } default: diff --git a/service/ecr/go.mod b/service/ecr/go.mod index f20f3484e61..82cb95320c8 100644 --- a/service/ecr/go.mod +++ b/service/ecr/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/ecr go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/ecr/serializers.go b/service/ecr/serializers.go index 77ecff66008..5dcb9431d25 100644 --- a/service/ecr/serializers.go +++ b/service/ecr/serializers.go @@ -1347,17 +1347,13 @@ func (m *awsAwsjson11_serializeOpUploadLayerPart) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentBatchedOperationLayerDigestList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBatchedOperationLayerDigestList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1391,17 +1387,13 @@ func awsAwsjson11_serializeDocumentEncryptionConfiguration(v *types.EncryptionCo return nil } -func awsAwsjson11_serializeDocumentGetAuthorizationTokenRegistryIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGetAuthorizationTokenRegistryIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1423,17 +1415,13 @@ func awsAwsjson11_serializeDocumentImageIdentifier(v *types.ImageIdentifier, val return nil } -func awsAwsjson11_serializeDocumentImageIdentifierList(v []*types.ImageIdentifier, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentImageIdentifierList(v []types.ImageIdentifier, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentImageIdentifier(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentImageIdentifier(&v[i], av); err != nil { return err } } @@ -1444,25 +1432,21 @@ func awsAwsjson11_serializeDocumentImageScanningConfiguration(v *types.ImageScan object := value.Object() defer object.Close() - if v.ScanOnPush != nil { + if v.ScanOnPush { ok := object.Key("scanOnPush") - ok.Boolean(*v.ScanOnPush) + ok.Boolean(v.ScanOnPush) } return nil } -func awsAwsjson11_serializeDocumentLayerDigestList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLayerDigestList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1491,32 +1475,24 @@ func awsAwsjson11_serializeDocumentListImagesFilter(v *types.ListImagesFilter, v return nil } -func awsAwsjson11_serializeDocumentMediaTypeList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMediaTypeList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentRepositoryNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRepositoryNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1538,32 +1514,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -1737,9 +1705,9 @@ func awsAwsjson11_serializeOpDocumentDeleteRepositoryInput(v *DeleteRepositoryIn object := value.Object() defer object.Close() - if v.Force != nil { + if v.Force { ok := object.Key("force") - ok.Boolean(*v.Force) + ok.Boolean(v.Force) } if v.RegistryId != nil { @@ -2159,9 +2127,9 @@ func awsAwsjson11_serializeOpDocumentSetRepositoryPolicyInput(v *SetRepositoryPo object := value.Object() defer object.Close() - if v.Force != nil { + if v.Force { ok := object.Key("force") - ok.Boolean(*v.Force) + ok.Boolean(v.Force) } if v.PolicyText != nil { diff --git a/service/ecr/types/types.go b/service/ecr/types/types.go index 20f9d7701ce..a2e3e96e1b8 100644 --- a/service/ecr/types/types.go +++ b/service/ecr/types/types.go @@ -134,7 +134,7 @@ type ImageDetail struct { ImageSizeInBytes *int64 // The list of tags associated with this image. - ImageTags []*string + ImageTags []string // The AWS account ID associated with the registry to which this image belongs. RegistryId *string @@ -170,7 +170,7 @@ type ImageIdentifier struct { type ImageScanFinding struct { // A collection of attributes of the host from which the finding is generated. - Attributes []*Attribute + Attributes []Attribute // The description of the finding. Description *string @@ -189,10 +189,10 @@ type ImageScanFinding struct { type ImageScanFindings struct { // The image vulnerability counts, sorted by severity. - FindingSeverityCounts map[string]*int32 + FindingSeverityCounts map[string]int32 // The findings from the image scan. - Findings []*ImageScanFinding + Findings []ImageScanFinding // The time of the last completed image scan. ImageScanCompletedAt *time.Time @@ -205,7 +205,7 @@ type ImageScanFindings struct { type ImageScanFindingsSummary struct { // The image vulnerability counts, sorted by severity. - FindingSeverityCounts map[string]*int32 + FindingSeverityCounts map[string]int32 // The time of the last completed image scan. ImageScanCompletedAt *time.Time @@ -221,7 +221,7 @@ type ImageScanningConfiguration struct { // repository. If set to true, images will be scanned after being pushed. If this // parameter is not specified, it will default to false and images will not be // scanned unless a scan is manually started with the StartImageScan API. - ScanOnPush *bool + ScanOnPush bool } // The current status of an image scan. @@ -289,7 +289,7 @@ type LifecyclePolicyPreviewResult struct { ImagePushedAt *time.Time // The list of tags associated with this image. - ImageTags []*string + ImageTags []string } // The summary of the lifecycle policy preview request. diff --git a/service/ecs/api_op_CreateCapacityProvider.go b/service/ecs/api_op_CreateCapacityProvider.go index 57f076ab2ff..3be115f2558 100644 --- a/service/ecs/api_op_CreateCapacityProvider.go +++ b/service/ecs/api_op_CreateCapacityProvider.go @@ -74,7 +74,7 @@ type CreateCapacityProviderInput struct { // of such as a prefix for either keys or values as it is reserved for AWS use. You // cannot edit or delete tag keys or values with this prefix. Tags with this prefix // do not count against your tags per resource limit. - Tags []*types.Tag + Tags []types.Tag } type CreateCapacityProviderOutput struct { diff --git a/service/ecs/api_op_CreateCluster.go b/service/ecs/api_op_CreateCluster.go index 581da1bc026..0b0d086bdb9 100644 --- a/service/ecs/api_op_CreateCluster.go +++ b/service/ecs/api_op_CreateCluster.go @@ -47,7 +47,7 @@ type CreateClusterInput struct { // are available to all accounts and only need to be associated with a cluster to // be used. The PutClusterCapacityProviders API operation is used to update the // list of available capacity providers for a cluster after the cluster is created. - CapacityProviders []*string + CapacityProviders []string // The name of your cluster. If you do not specify a name for your cluster, you // create a cluster named default. Up to 255 letters (uppercase and lowercase), @@ -70,13 +70,13 @@ type CreateClusterInput struct { // with a cluster to be used. If a default capacity provider strategy is not // defined for a cluster during creation, it can be defined later with the // PutClusterCapacityProviders API operation. - DefaultCapacityProviderStrategy []*types.CapacityProviderStrategyItem + DefaultCapacityProviderStrategy []types.CapacityProviderStrategyItem // The setting to use when creating a cluster. This parameter is used to enable // CloudWatch Container Insights for a cluster. If this value is specified, it will // override the containerInsights value set with PutAccountSetting or // PutAccountSettingDefault. - Settings []*types.ClusterSetting + Settings []types.ClusterSetting // The metadata that you apply to the cluster to help you categorize and organize // them. Each tag consists of a key and an optional value, both of which you @@ -106,7 +106,7 @@ type CreateClusterInput struct { // of such as a prefix for either keys or values as it is reserved for AWS use. You // cannot edit or delete tag keys or values with this prefix. Tags with this prefix // do not count against your tags per resource limit. - Tags []*types.Tag + Tags []types.Tag } type CreateClusterOutput struct { diff --git a/service/ecs/api_op_CreateService.go b/service/ecs/api_op_CreateService.go index 6c21fa6660d..4327e8db283 100644 --- a/service/ecs/api_op_CreateService.go +++ b/service/ecs/api_op_CreateService.go @@ -152,7 +152,7 @@ type CreateServiceInput struct { // with a cluster to be used. The PutClusterCapacityProviders API operation is used // to update the list of available capacity providers for a cluster after the // cluster is created. - CapacityProviderStrategy []*types.CapacityProviderStrategyItem + CapacityProviderStrategy []types.CapacityProviderStrategyItem // Unique, case-sensitive identifier that you provide to ensure the idempotency of // the request. Up to 32 ASCII characters are allowed. @@ -178,7 +178,7 @@ type CreateServiceInput struct { // service. For more information, see Tagging Your Amazon ECS Resources // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) // in the Amazon Elastic Container Service Developer Guide. - EnableECSManagedTags *bool + EnableECSManagedTags bool // The period of time, in seconds, that the Amazon ECS service scheduler should // ignore unhealthy Elastic Load Balancing target health checks after a task has @@ -240,7 +240,7 @@ type CreateServiceInput struct { // you must choose ip as the target type, not instance, because tasks that use the // awsvpc network mode are associated with an elastic network interface, not an // Amazon EC2 instance. - LoadBalancers []*types.LoadBalancer + LoadBalancers []types.LoadBalancer // The network configuration for the service. This parameter is required for task // definitions that use the awsvpc network mode to receive their own elastic @@ -253,11 +253,11 @@ type CreateServiceInput struct { // An array of placement constraint objects to use for tasks in your service. You // can specify a maximum of 10 constraints per task (this limit includes // constraints in the task definition and those specified at runtime). - PlacementConstraints []*types.PlacementConstraint + PlacementConstraints []types.PlacementConstraint // The placement strategy objects to use for tasks in your service. You can specify // a maximum of five strategy rules per service. - PlacementStrategy []*types.PlacementStrategy + PlacementStrategy []types.PlacementStrategy // The platform version that your tasks in the service are running on. A platform // version is specified only for tasks using the Fargate launch type. If one isn't @@ -325,7 +325,7 @@ type CreateServiceInput struct { // Service discovery is supported for Fargate tasks if you are using platform // version v1.1.0 or later. For more information, see AWS Fargate Platform Versions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html). - ServiceRegistries []*types.ServiceRegistry + ServiceRegistries []types.ServiceRegistry // The metadata that you apply to the service to help you categorize and organize // them. Each tag consists of a key and an optional value, both of which you @@ -356,7 +356,7 @@ type CreateServiceInput struct { // values as it is reserved for AWS use. You cannot edit or delete tag keys or // values with this prefix. Tags with this prefix do not count against your tags // per resource limit. - Tags []*types.Tag + Tags []types.Tag // The family and revision (family:revision) or full ARN of the task definition to // run in your service. If a revision is not specified, the latest ACTIVE revision diff --git a/service/ecs/api_op_CreateTaskSet.go b/service/ecs/api_op_CreateTaskSet.go index 20f1dececaf..243962e7533 100644 --- a/service/ecs/api_op_CreateTaskSet.go +++ b/service/ecs/api_op_CreateTaskSet.go @@ -67,7 +67,7 @@ type CreateTaskSetInput struct { // with a cluster to be used. The PutClusterCapacityProviders API operation is used // to update the list of available capacity providers for a cluster after the // cluster is created. - CapacityProviderStrategy []*types.CapacityProviderStrategyItem + CapacityProviderStrategy []types.CapacityProviderStrategyItem // Unique, case-sensitive identifier that you provide to ensure the idempotency of // the request. Up to 32 ASCII characters are allowed. @@ -89,7 +89,7 @@ type CreateTaskSetInput struct { // A load balancer object representing the load balancer to use with the task set. // The supported load balancer types are either an Application Load Balancer or a // Network Load Balancer. - LoadBalancers []*types.LoadBalancer + LoadBalancers []types.LoadBalancer // An object representing the network configuration for a task or service. NetworkConfiguration *types.NetworkConfiguration @@ -106,7 +106,7 @@ type CreateTaskSetInput struct { // The details of the service discovery registries to assign to this task set. For // more information, see Service Discovery // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html). - ServiceRegistries []*types.ServiceRegistry + ServiceRegistries []types.ServiceRegistry // The metadata that you apply to the task set to help you categorize and organize // them. Each tag consists of a key and an optional value, both of which you @@ -137,7 +137,7 @@ type CreateTaskSetInput struct { // values as it is reserved for AWS use. You cannot edit or delete tag keys or // values with this prefix. Tags with this prefix do not count against your tags // per resource limit. - Tags []*types.Tag + Tags []types.Tag } type CreateTaskSetOutput struct { diff --git a/service/ecs/api_op_DeleteAttributes.go b/service/ecs/api_op_DeleteAttributes.go index 90e9ab076fd..fad0d5d36c4 100644 --- a/service/ecs/api_op_DeleteAttributes.go +++ b/service/ecs/api_op_DeleteAttributes.go @@ -35,7 +35,7 @@ type DeleteAttributesInput struct { // you must also specify the target type. // // This member is required. - Attributes []*types.Attribute + Attributes []types.Attribute // The short name or full Amazon Resource Name (ARN) of the cluster that contains // the resource to delete attributes. If you do not specify a cluster, the default @@ -46,7 +46,7 @@ type DeleteAttributesInput struct { type DeleteAttributesOutput struct { // A list of attribute objects that were successfully deleted from your resource. - Attributes []*types.Attribute + Attributes []types.Attribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_DescribeCapacityProviders.go b/service/ecs/api_op_DescribeCapacityProviders.go index 8199fa65b37..26864f65a82 100644 --- a/service/ecs/api_op_DescribeCapacityProviders.go +++ b/service/ecs/api_op_DescribeCapacityProviders.go @@ -31,7 +31,7 @@ type DescribeCapacityProvidersInput struct { // The short name or full Amazon Resource Name (ARN) of one or more capacity // providers. Up to 100 capacity providers can be described in an action. - CapacityProviders []*string + CapacityProviders []string // Specifies whether or not you want to see the resource tags for the capacity // provider. If TAGS is specified, the tags are included in the response. If this @@ -60,10 +60,10 @@ type DescribeCapacityProvidersInput struct { type DescribeCapacityProvidersOutput struct { // The list of capacity providers. - CapacityProviders []*types.CapacityProvider + CapacityProviders []types.CapacityProvider // Any failures associated with the call. - Failures []*types.Failure + Failures []types.Failure // The nextToken value to include in a future DescribeCapacityProviders request. // When the results of a DescribeCapacityProviders request exceed maxResults, this diff --git a/service/ecs/api_op_DescribeClusters.go b/service/ecs/api_op_DescribeClusters.go index 7512158d96e..0c59bdd50f1 100644 --- a/service/ecs/api_op_DescribeClusters.go +++ b/service/ecs/api_op_DescribeClusters.go @@ -31,7 +31,7 @@ type DescribeClustersInput struct { // A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) // entries. If you do not specify a cluster, the default cluster is assumed. - Clusters []*string + Clusters []string // Whether to include additional information about your clusters in the response. // If this field is omitted, the attachments, statistics, and tags are not @@ -68,10 +68,10 @@ type DescribeClustersInput struct { type DescribeClustersOutput struct { // The list of clusters. - Clusters []*types.Cluster + Clusters []types.Cluster // Any failures associated with the call. - Failures []*types.Failure + Failures []types.Failure // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_DescribeContainerInstances.go b/service/ecs/api_op_DescribeContainerInstances.go index 2928b93f24b..c6b9e2b45d8 100644 --- a/service/ecs/api_op_DescribeContainerInstances.go +++ b/service/ecs/api_op_DescribeContainerInstances.go @@ -34,7 +34,7 @@ type DescribeContainerInstancesInput struct { // entries. // // This member is required. - ContainerInstances []*string + ContainerInstances []string // The short name or full Amazon Resource Name (ARN) of the cluster that hosts the // container instances to describe. If you do not specify a cluster, the default @@ -52,10 +52,10 @@ type DescribeContainerInstancesInput struct { type DescribeContainerInstancesOutput struct { // The list of container instances. - ContainerInstances []*types.ContainerInstance + ContainerInstances []types.ContainerInstance // Any failures associated with the call. - Failures []*types.Failure + Failures []types.Failure // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_DescribeServices.go b/service/ecs/api_op_DescribeServices.go index 6302e46d504..8e8553ea34f 100644 --- a/service/ecs/api_op_DescribeServices.go +++ b/service/ecs/api_op_DescribeServices.go @@ -33,7 +33,7 @@ type DescribeServicesInput struct { // a single operation. // // This member is required. - Services []*string + Services []string // The short name or full Amazon Resource Name (ARN)the cluster that hosts the // service to describe. If you do not specify a cluster, the default cluster is @@ -50,10 +50,10 @@ type DescribeServicesInput struct { type DescribeServicesOutput struct { // Any failures associated with the call. - Failures []*types.Failure + Failures []types.Failure // The list of services described. - Services []*types.Service + Services []types.Service // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_DescribeTaskDefinition.go b/service/ecs/api_op_DescribeTaskDefinition.go index 70ba2e62eb4..cdf8d66596a 100644 --- a/service/ecs/api_op_DescribeTaskDefinition.go +++ b/service/ecs/api_op_DescribeTaskDefinition.go @@ -75,7 +75,7 @@ type DescribeTaskDefinitionOutput struct { // of such as a prefix for either keys or values as it is reserved for AWS use. You // cannot edit or delete tag keys or values with this prefix. Tags with this prefix // do not count against your tags per resource limit. - Tags []*types.Tag + Tags []types.Tag // The full task definition description. TaskDefinition *types.TaskDefinition diff --git a/service/ecs/api_op_DescribeTaskSets.go b/service/ecs/api_op_DescribeTaskSets.go index 8be142bc6ce..552707aadf3 100644 --- a/service/ecs/api_op_DescribeTaskSets.go +++ b/service/ecs/api_op_DescribeTaskSets.go @@ -51,16 +51,16 @@ type DescribeTaskSetsInput struct { Include []types.TaskSetField // The ID or full Amazon Resource Name (ARN) of task sets to describe. - TaskSets []*string + TaskSets []string } type DescribeTaskSetsOutput struct { // Any failures associated with the call. - Failures []*types.Failure + Failures []types.Failure // The list of task sets described. - TaskSets []*types.TaskSet + TaskSets []types.TaskSet // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_DescribeTasks.go b/service/ecs/api_op_DescribeTasks.go index 8b1ecb744e2..60e34c99a3a 100644 --- a/service/ecs/api_op_DescribeTasks.go +++ b/service/ecs/api_op_DescribeTasks.go @@ -32,7 +32,7 @@ type DescribeTasksInput struct { // A list of up to 100 task IDs or full ARN entries. // // This member is required. - Tasks []*string + Tasks []string // The short name or full Amazon Resource Name (ARN) of the cluster that hosts the // task or tasks to describe. If you do not specify a cluster, the default cluster @@ -49,10 +49,10 @@ type DescribeTasksInput struct { type DescribeTasksOutput struct { // Any failures associated with the call. - Failures []*types.Failure + Failures []types.Failure // The list of tasks. - Tasks []*types.Task + Tasks []types.Task // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_ListAccountSettings.go b/service/ecs/api_op_ListAccountSettings.go index 7440760556b..a95b4637889 100644 --- a/service/ecs/api_op_ListAccountSettings.go +++ b/service/ecs/api_op_ListAccountSettings.go @@ -33,7 +33,7 @@ type ListAccountSettingsInput struct { // settings for the root user or the default setting for the principalArn are // returned. If false, the account settings for the principalArn are returned if // they are set. Otherwise, no account settings are returned. - EffectiveSettings *bool + EffectiveSettings bool // The maximum number of account setting results returned by ListAccountSettings in // paginated output. When this parameter is used, ListAccountSettings only returns @@ -42,7 +42,7 @@ type ListAccountSettingsInput struct { // ListAccountSettings request with the returned nextToken value. This value can be // between 1 and 10. If this parameter is not used, then ListAccountSettings // returns up to 10 results and a nextToken value if applicable. - MaxResults *int32 + MaxResults int32 // The name of the account setting you want to list the settings for. Name types.SettingName @@ -74,7 +74,7 @@ type ListAccountSettingsOutput struct { NextToken *string // The account settings for the resource. - Settings []*types.Setting + Settings []types.Setting // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_ListAttributes.go b/service/ecs/api_op_ListAttributes.go index e63fb9ade93..aa41bffd27b 100644 --- a/service/ecs/api_op_ListAttributes.go +++ b/service/ecs/api_op_ListAttributes.go @@ -72,7 +72,7 @@ type ListAttributesInput struct { type ListAttributesOutput struct { // A list of attribute objects that meet the criteria of the request. - Attributes []*types.Attribute + Attributes []types.Attribute // The nextToken value to include in a future ListAttributes request. When the // results of a ListAttributes request exceed maxResults, this value can be used to diff --git a/service/ecs/api_op_ListClusters.go b/service/ecs/api_op_ListClusters.go index 5db53eb06bf..f8205f0fc2b 100644 --- a/service/ecs/api_op_ListClusters.go +++ b/service/ecs/api_op_ListClusters.go @@ -50,7 +50,7 @@ type ListClustersOutput struct { // The list of full Amazon Resource Name (ARN) entries for each cluster associated // with your account. - ClusterArns []*string + ClusterArns []string // The nextToken value to include in a future ListClusters request. When the // results of a ListClusters request exceed maxResults, this value can be used to diff --git a/service/ecs/api_op_ListContainerInstances.go b/service/ecs/api_op_ListContainerInstances.go index c428f1354c1..57755283e58 100644 --- a/service/ecs/api_op_ListContainerInstances.go +++ b/service/ecs/api_op_ListContainerInstances.go @@ -75,7 +75,7 @@ type ListContainerInstancesOutput struct { // The list of container instances with full ARN entries for each container // instance associated with the specified cluster. - ContainerInstanceArns []*string + ContainerInstanceArns []string // The nextToken value to include in a future ListContainerInstances request. When // the results of a ListContainerInstances request exceed maxResults, this value diff --git a/service/ecs/api_op_ListServices.go b/service/ecs/api_op_ListServices.go index fcb6cb063bc..1b50aa8e4b3 100644 --- a/service/ecs/api_op_ListServices.go +++ b/service/ecs/api_op_ListServices.go @@ -68,7 +68,7 @@ type ListServicesOutput struct { // The list of full ARN entries for each service associated with the specified // cluster. - ServiceArns []*string + ServiceArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_ListTagsForResource.go b/service/ecs/api_op_ListTagsForResource.go index f0ccba82f82..aead3e3f988 100644 --- a/service/ecs/api_op_ListTagsForResource.go +++ b/service/ecs/api_op_ListTagsForResource.go @@ -40,7 +40,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags for the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_ListTaskDefinitionFamilies.go b/service/ecs/api_op_ListTaskDefinitionFamilies.go index 5e96b53c80c..6d3b2e04d74 100644 --- a/service/ecs/api_op_ListTaskDefinitionFamilies.go +++ b/service/ecs/api_op_ListTaskDefinitionFamilies.go @@ -71,7 +71,7 @@ type ListTaskDefinitionFamiliesOutput struct { // The list of task definition family names that match the // ListTaskDefinitionFamilies request. - Families []*string + Families []string // The nextToken value to include in a future ListTaskDefinitionFamilies request. // When the results of a ListTaskDefinitionFamilies request exceed maxResults, this diff --git a/service/ecs/api_op_ListTaskDefinitions.go b/service/ecs/api_op_ListTaskDefinitions.go index 6c8abcb592e..b99b9813522 100644 --- a/service/ecs/api_op_ListTaskDefinitions.go +++ b/service/ecs/api_op_ListTaskDefinitions.go @@ -79,7 +79,7 @@ type ListTaskDefinitionsOutput struct { // The list of task definition Amazon Resource Name (ARN) entries for the // ListTaskDefinitions request. - TaskDefinitionArns []*string + TaskDefinitionArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_ListTasks.go b/service/ecs/api_op_ListTasks.go index a4c74c6a08c..e29c7447285 100644 --- a/service/ecs/api_op_ListTasks.go +++ b/service/ecs/api_op_ListTasks.go @@ -94,7 +94,7 @@ type ListTasksOutput struct { NextToken *string // The list of task ARN entries for the ListTasks request. - TaskArns []*string + TaskArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_PutAttributes.go b/service/ecs/api_op_PutAttributes.go index b19efc369d4..f01e0b4e0e7 100644 --- a/service/ecs/api_op_PutAttributes.go +++ b/service/ecs/api_op_PutAttributes.go @@ -38,7 +38,7 @@ type PutAttributesInput struct { // attributes per resource. You can specify up to 10 attributes in a single call. // // This member is required. - Attributes []*types.Attribute + Attributes []types.Attribute // The short name or full Amazon Resource Name (ARN) of the cluster that contains // the resource to apply attributes. If you do not specify a cluster, the default @@ -49,7 +49,7 @@ type PutAttributesInput struct { type PutAttributesOutput struct { // The attributes applied to your resource. - Attributes []*types.Attribute + Attributes []types.Attribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_PutClusterCapacityProviders.go b/service/ecs/api_op_PutClusterCapacityProviders.go index d7b69ce28b2..6cd4f25b188 100644 --- a/service/ecs/api_op_PutClusterCapacityProviders.go +++ b/service/ecs/api_op_PutClusterCapacityProviders.go @@ -50,7 +50,7 @@ type PutClusterCapacityProvidersInput struct { // with a cluster to be used. // // This member is required. - CapacityProviders []*string + CapacityProviders []string // The short name or full Amazon Resource Name (ARN) of the cluster to modify the // capacity provider settings for. If you do not specify a cluster, the default @@ -75,7 +75,7 @@ type PutClusterCapacityProvidersInput struct { // with a cluster to be used. // // This member is required. - DefaultCapacityProviderStrategy []*types.CapacityProviderStrategyItem + DefaultCapacityProviderStrategy []types.CapacityProviderStrategyItem } type PutClusterCapacityProvidersOutput struct { diff --git a/service/ecs/api_op_RegisterContainerInstance.go b/service/ecs/api_op_RegisterContainerInstance.go index 32506b7a188..ee8fcb30714 100644 --- a/service/ecs/api_op_RegisterContainerInstance.go +++ b/service/ecs/api_op_RegisterContainerInstance.go @@ -32,7 +32,7 @@ func (c *Client) RegisterContainerInstance(ctx context.Context, params *Register type RegisterContainerInstanceInput struct { // The container instance attributes that this container instance supports. - Attributes []*types.Attribute + Attributes []types.Attribute // The short name or full Amazon Resource Name (ARN) of the cluster with which to // register your container instance. If you do not specify a cluster, the default @@ -54,7 +54,7 @@ type RegisterContainerInstanceInput struct { // The devices that are available on the container instance. The only supported // device type is a GPU. - PlatformDevices []*types.PlatformDevice + PlatformDevices []types.PlatformDevice // The metadata that you apply to the container instance to help you categorize and // organize them. Each tag consists of a key and an optional value, both of which @@ -84,10 +84,10 @@ type RegisterContainerInstanceInput struct { // of such as a prefix for either keys or values as it is reserved for AWS use. You // cannot edit or delete tag keys or values with this prefix. Tags with this prefix // do not count against your tags per resource limit. - Tags []*types.Tag + Tags []types.Tag // The resources available on the instance. - TotalResources []*types.Resource + TotalResources []types.Resource // The version information for the Amazon ECS container agent and Docker daemon // running on the container instance. diff --git a/service/ecs/api_op_RegisterTaskDefinition.go b/service/ecs/api_op_RegisterTaskDefinition.go index 0b9ae4257f7..4489a8ae809 100644 --- a/service/ecs/api_op_RegisterTaskDefinition.go +++ b/service/ecs/api_op_RegisterTaskDefinition.go @@ -54,7 +54,7 @@ type RegisterTaskDefinitionInput struct { // containers that make up your task. // // This member is required. - ContainerDefinitions []*types.ContainerDefinition + ContainerDefinitions []types.ContainerDefinition // You must specify a family for a task definition, which allows you to track // multiple versions of the same task definition. The family is used as a name for @@ -102,7 +102,7 @@ type RegisterTaskDefinitionInput struct { ExecutionRoleArn *string // The Elastic Inference accelerators to use for the containers in the task. - InferenceAccelerators []*types.InferenceAccelerator + InferenceAccelerators []types.InferenceAccelerator // The IPC resource namespace to use for the containers in the task. The valid // values are host, task, or none. If host is specified, then all containers within @@ -208,7 +208,7 @@ type RegisterTaskDefinitionInput struct { // An array of placement constraint objects to use for the task. You can specify a // maximum of 10 constraints per task (this limit includes constraints in the task // definition and those specified at runtime). - PlacementConstraints []*types.TaskDefinitionPlacementConstraint + PlacementConstraints []types.TaskDefinitionPlacementConstraint // The configuration details for the App Mesh proxy. For tasks using the EC2 launch // type, the container instances require at least version 1.26.0 of the container @@ -255,7 +255,7 @@ type RegisterTaskDefinitionInput struct { // of such as a prefix for either keys or values as it is reserved for AWS use. You // cannot edit or delete tag keys or values with this prefix. Tags with this prefix // do not count against your tags per resource limit. - Tags []*types.Tag + Tags []types.Tag // The short name or full Amazon Resource Name (ARN) of the IAM role that // containers in this task can assume. All containers in this task are granted the @@ -267,13 +267,13 @@ type RegisterTaskDefinitionInput struct { // A list of volume definitions in JSON format that containers in your task may // use. - Volumes []*types.Volume + Volumes []types.Volume } type RegisterTaskDefinitionOutput struct { // The list of tags associated with the task definition. - Tags []*types.Tag + Tags []types.Tag // The full description of the registered task definition. TaskDefinition *types.TaskDefinition diff --git a/service/ecs/api_op_RunTask.go b/service/ecs/api_op_RunTask.go index 7214f6013ad..80d9a94a1b7 100644 --- a/service/ecs/api_op_RunTask.go +++ b/service/ecs/api_op_RunTask.go @@ -77,7 +77,7 @@ type RunTaskInput struct { // with a cluster to be used. The PutClusterCapacityProviders API operation is used // to update the list of available capacity providers for a cluster after the // cluster is created. - CapacityProviderStrategy []*types.CapacityProviderStrategyItem + CapacityProviderStrategy []types.CapacityProviderStrategyItem // The short name or full Amazon Resource Name (ARN) of the cluster on which to run // your task. If you do not specify a cluster, the default cluster is assumed. @@ -91,7 +91,7 @@ type RunTaskInput struct { // information, see Tagging Your Amazon ECS Resources // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) // in the Amazon Elastic Container Service Developer Guide. - EnableECSManagedTags *bool + EnableECSManagedTags bool // The name of the task group to associate with the task. The default value is the // family name of the task definition (for example, family:my-family-name). @@ -125,11 +125,11 @@ type RunTaskInput struct { // An array of placement constraint objects to use for the task. You can specify up // to 10 constraints per task (including constraints in the task definition and // those specified at runtime). - PlacementConstraints []*types.PlacementConstraint + PlacementConstraints []types.PlacementConstraint // The placement strategy objects to use for the task. You can specify a maximum of // five strategy rules per task. - PlacementStrategy []*types.PlacementStrategy + PlacementStrategy []types.PlacementStrategy // The platform version the task should run. A platform version is only specified // for tasks using the Fargate launch type. If one is not specified, the LATEST @@ -187,17 +187,17 @@ type RunTaskInput struct { // of such as a prefix for either keys or values as it is reserved for AWS use. You // cannot edit or delete tag keys or values with this prefix. Tags with this prefix // do not count against your tags per resource limit. - Tags []*types.Tag + Tags []types.Tag } type RunTaskOutput struct { // Any failures associated with the call. - Failures []*types.Failure + Failures []types.Failure // A full description of the tasks that were run. The tasks that were successfully // placed on your cluster are described here. - Tasks []*types.Task + Tasks []types.Task // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_StartTask.go b/service/ecs/api_op_StartTask.go index 3cf762cc180..de61aa19034 100644 --- a/service/ecs/api_op_StartTask.go +++ b/service/ecs/api_op_StartTask.go @@ -38,7 +38,7 @@ type StartTaskInput struct { // instances. // // This member is required. - ContainerInstances []*string + ContainerInstances []string // The family and revision (family:revision) or full ARN of the task definition to // start. If a revision is not specified, the latest ACTIVE revision is used. @@ -55,7 +55,7 @@ type StartTaskInput struct { // information, see Tagging Your Amazon ECS Resources // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) // in the Amazon Elastic Container Service Developer Guide. - EnableECSManagedTags *bool + EnableECSManagedTags bool // The name of the task group to associate with the task. The default value is the // family name of the task definition (for example, family:my-family-name). @@ -120,17 +120,17 @@ type StartTaskInput struct { // of such as a prefix for either keys or values as it is reserved for AWS use. You // cannot edit or delete tag keys or values with this prefix. Tags with this prefix // do not count against your tags per resource limit. - Tags []*types.Tag + Tags []types.Tag } type StartTaskOutput struct { // Any failures associated with the call. - Failures []*types.Failure + Failures []types.Failure // A full description of the tasks that were started. Each task that was // successfully placed on your container instances is described. - Tasks []*types.Task + Tasks []types.Task // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_SubmitAttachmentStateChanges.go b/service/ecs/api_op_SubmitAttachmentStateChanges.go index 443aa2890bc..ccdf9ff3fc1 100644 --- a/service/ecs/api_op_SubmitAttachmentStateChanges.go +++ b/service/ecs/api_op_SubmitAttachmentStateChanges.go @@ -33,7 +33,7 @@ type SubmitAttachmentStateChangesInput struct { // Any attachments associated with the state change request. // // This member is required. - Attachments []*types.AttachmentStateChange + Attachments []types.AttachmentStateChange // The short name or full ARN of the cluster that hosts the container instance the // attachment belongs to. diff --git a/service/ecs/api_op_SubmitContainerStateChange.go b/service/ecs/api_op_SubmitContainerStateChange.go index b4be9a281f2..5eb4f49731e 100644 --- a/service/ecs/api_op_SubmitContainerStateChange.go +++ b/service/ecs/api_op_SubmitContainerStateChange.go @@ -40,7 +40,7 @@ type SubmitContainerStateChangeInput struct { ExitCode *int32 // The network bindings of the container. - NetworkBindings []*types.NetworkBinding + NetworkBindings []types.NetworkBinding // The reason for the state change request. Reason *string diff --git a/service/ecs/api_op_SubmitTaskStateChange.go b/service/ecs/api_op_SubmitTaskStateChange.go index c5f6e51f0c8..f273d770f2a 100644 --- a/service/ecs/api_op_SubmitTaskStateChange.go +++ b/service/ecs/api_op_SubmitTaskStateChange.go @@ -32,14 +32,14 @@ func (c *Client) SubmitTaskStateChange(ctx context.Context, params *SubmitTaskSt type SubmitTaskStateChangeInput struct { // Any attachments associated with the state change request. - Attachments []*types.AttachmentStateChange + Attachments []types.AttachmentStateChange // The short name or full Amazon Resource Name (ARN) of the cluster that hosts the // task. Cluster *string // Any containers associated with the state change request. - Containers []*types.ContainerStateChange + Containers []types.ContainerStateChange // The Unix timestamp for when the task execution stopped. ExecutionStoppedAt *time.Time diff --git a/service/ecs/api_op_TagResource.go b/service/ecs/api_op_TagResource.go index ddb74a18c1b..c1f7f25f59e 100644 --- a/service/ecs/api_op_TagResource.go +++ b/service/ecs/api_op_TagResource.go @@ -68,7 +68,7 @@ type TagResourceInput struct { // do not count against your tags per resource limit. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/ecs/api_op_UntagResource.go b/service/ecs/api_op_UntagResource.go index 2c4dbd41db2..452c72575a5 100644 --- a/service/ecs/api_op_UntagResource.go +++ b/service/ecs/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // The keys of the tags to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/ecs/api_op_UpdateClusterSettings.go b/service/ecs/api_op_UpdateClusterSettings.go index 253bef78ed0..d76a45ff32d 100644 --- a/service/ecs/api_op_UpdateClusterSettings.go +++ b/service/ecs/api_op_UpdateClusterSettings.go @@ -40,7 +40,7 @@ type UpdateClusterSettingsInput struct { // PutAccountSettingDefault. // // This member is required. - Settings []*types.ClusterSetting + Settings []types.ClusterSetting } type UpdateClusterSettingsOutput struct { diff --git a/service/ecs/api_op_UpdateContainerInstancesState.go b/service/ecs/api_op_UpdateContainerInstancesState.go index 96a3737cd5c..9d81d22fe71 100644 --- a/service/ecs/api_op_UpdateContainerInstancesState.go +++ b/service/ecs/api_op_UpdateContainerInstancesState.go @@ -73,7 +73,7 @@ type UpdateContainerInstancesStateInput struct { // A list of container instance IDs or full ARN entries. // // This member is required. - ContainerInstances []*string + ContainerInstances []string // The container instance state with which to update the container instance. The // only valid values for this action are ACTIVE and DRAINING. A container instance @@ -94,10 +94,10 @@ type UpdateContainerInstancesStateInput struct { type UpdateContainerInstancesStateOutput struct { // The list of container instances. - ContainerInstances []*types.ContainerInstance + ContainerInstances []types.ContainerInstance // Any failures associated with the call. - Failures []*types.Failure + Failures []types.Failure // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ecs/api_op_UpdateService.go b/service/ecs/api_op_UpdateService.go index dbca9a5a66a..27cb0e4b06d 100644 --- a/service/ecs/api_op_UpdateService.go +++ b/service/ecs/api_op_UpdateService.go @@ -146,7 +146,7 @@ type UpdateServiceInput struct { // with a cluster to be used. The PutClusterCapacityProviders API operation is used // to update the list of available capacity providers for a cluster after the // cluster is created. - CapacityProviderStrategy []*types.CapacityProviderStrategyItem + CapacityProviderStrategy []types.CapacityProviderStrategyItem // The short name or full Amazon Resource Name (ARN) of the cluster that your // service is running on. If you do not specify a cluster, the default cluster is @@ -166,7 +166,7 @@ type UpdateServiceInput struct { // definition changes. For example, you can update a service's tasks to use a newer // Docker image with the same image/tag combination (my_image:latest) or to roll // Fargate tasks onto a newer platform version. - ForceNewDeployment *bool + ForceNewDeployment bool // The period of time, in seconds, that the Amazon ECS service scheduler should // ignore unhealthy Elastic Load Balancing target health checks after a task has @@ -189,7 +189,7 @@ type UpdateServiceInput struct { // constraints, specify an empty array. You can specify a maximum of 10 constraints // per task (this limit includes constraints in the task definition and those // specified at runtime). - PlacementConstraints []*types.PlacementConstraint + PlacementConstraints []types.PlacementConstraint // The task placement strategy objects to update the service to use. If no value is // specified, the existing placement strategy for the service will remain @@ -197,7 +197,7 @@ type UpdateServiceInput struct { // strategy defined for the service. To remove an existing placement strategy, // specify an empty object. You can specify a maximum of five strategy rules per // service. - PlacementStrategy []*types.PlacementStrategy + PlacementStrategy []types.PlacementStrategy // The platform version on which your tasks in the service are running. A platform // version is only specified for tasks using the Fargate launch type. If a platform diff --git a/service/ecs/deserializers.go b/service/ecs/deserializers.go index 553fb447aa4..4f76eed7840 100644 --- a/service/ecs/deserializers.go +++ b/service/ecs/deserializers.go @@ -6828,7 +6828,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6873,7 +6873,7 @@ func awsAwsjson11_deserializeDocumentAttachment(v **types.Attachment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "status": @@ -6882,7 +6882,7 @@ func awsAwsjson11_deserializeDocumentAttachment(v **types.Attachment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "type": @@ -6891,7 +6891,7 @@ func awsAwsjson11_deserializeDocumentAttachment(v **types.Attachment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -6903,7 +6903,7 @@ func awsAwsjson11_deserializeDocumentAttachment(v **types.Attachment, value inte return nil } -func awsAwsjson11_deserializeDocumentAttachmentDetails(v *[]*types.KeyValuePair, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttachmentDetails(v *[]types.KeyValuePair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6916,18 +6916,20 @@ func awsAwsjson11_deserializeDocumentAttachmentDetails(v *[]*types.KeyValuePair, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyValuePair + var cv []types.KeyValuePair if *v == nil { - cv = []*types.KeyValuePair{} + cv = []types.KeyValuePair{} } else { cv = *v } for _, value := range shape { - var col *types.KeyValuePair - if err := awsAwsjson11_deserializeDocumentKeyValuePair(&col, value); err != nil { + var col types.KeyValuePair + destAddr := &col + if err := awsAwsjson11_deserializeDocumentKeyValuePair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6935,7 +6937,7 @@ func awsAwsjson11_deserializeDocumentAttachmentDetails(v *[]*types.KeyValuePair, return nil } -func awsAwsjson11_deserializeDocumentAttachments(v *[]*types.Attachment, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttachments(v *[]types.Attachment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6948,18 +6950,20 @@ func awsAwsjson11_deserializeDocumentAttachments(v *[]*types.Attachment, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Attachment + var cv []types.Attachment if *v == nil { - cv = []*types.Attachment{} + cv = []types.Attachment{} } else { cv = *v } for _, value := range shape { - var col *types.Attachment - if err := awsAwsjson11_deserializeDocumentAttachment(&col, value); err != nil { + var col types.Attachment + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttachment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6995,7 +6999,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "targetId": @@ -7004,7 +7008,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } case "targetType": @@ -7022,7 +7026,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -7062,7 +7066,7 @@ func awsAwsjson11_deserializeDocumentAttributeLimitExceededException(v **types.A if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7074,7 +7078,7 @@ func awsAwsjson11_deserializeDocumentAttributeLimitExceededException(v **types.A return nil } -func awsAwsjson11_deserializeDocumentAttributes(v *[]*types.Attribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttributes(v *[]types.Attribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7087,18 +7091,20 @@ func awsAwsjson11_deserializeDocumentAttributes(v *[]*types.Attribute, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Attribute + var cv []types.Attribute if *v == nil { - cv = []*types.Attribute{} + cv = []types.Attribute{} } else { cv = *v } for _, value := range shape { - var col *types.Attribute - if err := awsAwsjson11_deserializeDocumentAttribute(&col, value); err != nil { + var col types.Attribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7134,7 +7140,7 @@ func awsAwsjson11_deserializeDocumentAutoScalingGroupProvider(v **types.AutoScal if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AutoScalingGroupArn = &jtv + sv.AutoScalingGroupArn = ptr.String(jtv) } case "managedScaling": @@ -7238,7 +7244,7 @@ func awsAwsjson11_deserializeDocumentBlockedException(v **types.BlockedException if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7283,7 +7289,7 @@ func awsAwsjson11_deserializeDocumentCapacityProvider(v **types.CapacityProvider if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CapacityProviderArn = &jtv + sv.CapacityProviderArn = ptr.String(jtv) } case "name": @@ -7292,7 +7298,7 @@ func awsAwsjson11_deserializeDocumentCapacityProvider(v **types.CapacityProvider if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -7324,7 +7330,7 @@ func awsAwsjson11_deserializeDocumentCapacityProvider(v **types.CapacityProvider if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UpdateStatusReason = &jtv + sv.UpdateStatusReason = ptr.String(jtv) } default: @@ -7336,7 +7342,7 @@ func awsAwsjson11_deserializeDocumentCapacityProvider(v **types.CapacityProvider return nil } -func awsAwsjson11_deserializeDocumentCapacityProviders(v *[]*types.CapacityProvider, value interface{}) error { +func awsAwsjson11_deserializeDocumentCapacityProviders(v *[]types.CapacityProvider, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7349,18 +7355,20 @@ func awsAwsjson11_deserializeDocumentCapacityProviders(v *[]*types.CapacityProvi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CapacityProvider + var cv []types.CapacityProvider if *v == nil { - cv = []*types.CapacityProvider{} + cv = []types.CapacityProvider{} } else { cv = *v } for _, value := range shape { - var col *types.CapacityProvider - if err := awsAwsjson11_deserializeDocumentCapacityProvider(&col, value); err != nil { + var col types.CapacityProvider + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCapacityProvider(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7368,7 +7376,7 @@ func awsAwsjson11_deserializeDocumentCapacityProviders(v *[]*types.CapacityProvi return nil } -func awsAwsjson11_deserializeDocumentCapacityProviderStrategy(v *[]*types.CapacityProviderStrategyItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentCapacityProviderStrategy(v *[]types.CapacityProviderStrategyItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7381,18 +7389,20 @@ func awsAwsjson11_deserializeDocumentCapacityProviderStrategy(v *[]*types.Capaci return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CapacityProviderStrategyItem + var cv []types.CapacityProviderStrategyItem if *v == nil { - cv = []*types.CapacityProviderStrategyItem{} + cv = []types.CapacityProviderStrategyItem{} } else { cv = *v } for _, value := range shape { - var col *types.CapacityProviderStrategyItem - if err := awsAwsjson11_deserializeDocumentCapacityProviderStrategyItem(&col, value); err != nil { + var col types.CapacityProviderStrategyItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCapacityProviderStrategyItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7432,7 +7442,7 @@ func awsAwsjson11_deserializeDocumentCapacityProviderStrategyItem(v **types.Capa if err != nil { return err } - sv.Base = ptr.Int32(int32(i64)) + sv.Base = int32(i64) } case "capacityProvider": @@ -7441,7 +7451,7 @@ func awsAwsjson11_deserializeDocumentCapacityProviderStrategyItem(v **types.Capa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CapacityProvider = &jtv + sv.CapacityProvider = ptr.String(jtv) } case "weight": @@ -7454,7 +7464,7 @@ func awsAwsjson11_deserializeDocumentCapacityProviderStrategyItem(v **types.Capa if err != nil { return err } - sv.Weight = ptr.Int32(int32(i64)) + sv.Weight = int32(i64) } default: @@ -7494,7 +7504,7 @@ func awsAwsjson11_deserializeDocumentClientException(v **types.ClientException, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7538,7 +7548,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if err != nil { return err } - sv.ActiveServicesCount = ptr.Int32(int32(i64)) + sv.ActiveServicesCount = int32(i64) } case "attachments": @@ -7552,7 +7562,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AttachmentsStatus = &jtv + sv.AttachmentsStatus = ptr.String(jtv) } case "capacityProviders": @@ -7566,7 +7576,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "clusterName": @@ -7575,7 +7585,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "defaultCapacityProviderStrategy": @@ -7593,7 +7603,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if err != nil { return err } - sv.PendingTasksCount = ptr.Int32(int32(i64)) + sv.PendingTasksCount = int32(i64) } case "registeredContainerInstancesCount": @@ -7606,7 +7616,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if err != nil { return err } - sv.RegisteredContainerInstancesCount = ptr.Int32(int32(i64)) + sv.RegisteredContainerInstancesCount = int32(i64) } case "runningTasksCount": @@ -7619,7 +7629,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if err != nil { return err } - sv.RunningTasksCount = ptr.Int32(int32(i64)) + sv.RunningTasksCount = int32(i64) } case "settings": @@ -7638,7 +7648,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "tags": @@ -7683,7 +7693,7 @@ func awsAwsjson11_deserializeDocumentClusterContainsContainerInstancesException( if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7723,7 +7733,7 @@ func awsAwsjson11_deserializeDocumentClusterContainsServicesException(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7763,7 +7773,7 @@ func awsAwsjson11_deserializeDocumentClusterContainsTasksException(v **types.Clu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7803,7 +7813,7 @@ func awsAwsjson11_deserializeDocumentClusterNotFoundException(v **types.ClusterN if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7815,7 +7825,7 @@ func awsAwsjson11_deserializeDocumentClusterNotFoundException(v **types.ClusterN return nil } -func awsAwsjson11_deserializeDocumentClusters(v *[]*types.Cluster, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusters(v *[]types.Cluster, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7828,18 +7838,20 @@ func awsAwsjson11_deserializeDocumentClusters(v *[]*types.Cluster, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Cluster + var cv []types.Cluster if *v == nil { - cv = []*types.Cluster{} + cv = []types.Cluster{} } else { cv = *v } for _, value := range shape { - var col *types.Cluster - if err := awsAwsjson11_deserializeDocumentCluster(&col, value); err != nil { + var col types.Cluster + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCluster(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7884,7 +7896,7 @@ func awsAwsjson11_deserializeDocumentClusterSetting(v **types.ClusterSetting, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -7896,7 +7908,7 @@ func awsAwsjson11_deserializeDocumentClusterSetting(v **types.ClusterSetting, va return nil } -func awsAwsjson11_deserializeDocumentClusterSettings(v *[]*types.ClusterSetting, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusterSettings(v *[]types.ClusterSetting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7909,18 +7921,20 @@ func awsAwsjson11_deserializeDocumentClusterSettings(v *[]*types.ClusterSetting, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ClusterSetting + var cv []types.ClusterSetting if *v == nil { - cv = []*types.ClusterSetting{} + cv = []types.ClusterSetting{} } else { cv = *v } for _, value := range shape { - var col *types.ClusterSetting - if err := awsAwsjson11_deserializeDocumentClusterSetting(&col, value); err != nil { + var col types.ClusterSetting + destAddr := &col + if err := awsAwsjson11_deserializeDocumentClusterSetting(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7992,7 +8006,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerArn = &jtv + sv.ContainerArn = ptr.String(jtv) } case "cpu": @@ -8001,7 +8015,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Cpu = &jtv + sv.Cpu = ptr.String(jtv) } case "exitCode": @@ -8037,7 +8051,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Image = &jtv + sv.Image = ptr.String(jtv) } case "imageDigest": @@ -8046,7 +8060,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ImageDigest = &jtv + sv.ImageDigest = ptr.String(jtv) } case "lastStatus": @@ -8055,7 +8069,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastStatus = &jtv + sv.LastStatus = ptr.String(jtv) } case "memory": @@ -8064,7 +8078,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Memory = &jtv + sv.Memory = ptr.String(jtv) } case "memoryReservation": @@ -8073,7 +8087,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MemoryReservation = &jtv + sv.MemoryReservation = ptr.String(jtv) } case "name": @@ -8082,7 +8096,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "networkBindings": @@ -8101,7 +8115,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "runtimeId": @@ -8110,7 +8124,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RuntimeId = &jtv + sv.RuntimeId = ptr.String(jtv) } case "taskArn": @@ -8119,7 +8133,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TaskArn = &jtv + sv.TaskArn = ptr.String(jtv) } default: @@ -8168,7 +8182,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if err != nil { return err } - sv.Cpu = ptr.Int32(int32(i64)) + sv.Cpu = int32(i64) } case "dependsOn": @@ -8182,7 +8196,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.DisableNetworking = &jtv + sv.DisableNetworking = ptr.Bool(jtv) } case "dnsSearchDomains": @@ -8226,7 +8240,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.Essential = &jtv + sv.Essential = ptr.Bool(jtv) } case "extraHosts": @@ -8250,7 +8264,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Hostname = &jtv + sv.Hostname = ptr.String(jtv) } case "image": @@ -8259,7 +8273,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Image = &jtv + sv.Image = ptr.String(jtv) } case "interactive": @@ -8268,7 +8282,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.Interactive = &jtv + sv.Interactive = ptr.Bool(jtv) } case "links": @@ -8323,7 +8337,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "portMappings": @@ -8337,7 +8351,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.Privileged = &jtv + sv.Privileged = ptr.Bool(jtv) } case "pseudoTerminal": @@ -8346,7 +8360,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.PseudoTerminal = &jtv + sv.PseudoTerminal = ptr.Bool(jtv) } case "readonlyRootFilesystem": @@ -8355,7 +8369,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.ReadonlyRootFilesystem = &jtv + sv.ReadonlyRootFilesystem = ptr.Bool(jtv) } case "repositoryCredentials": @@ -8415,7 +8429,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.User = &jtv + sv.User = ptr.String(jtv) } case "volumesFrom": @@ -8429,7 +8443,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.WorkingDirectory = &jtv + sv.WorkingDirectory = ptr.String(jtv) } default: @@ -8441,7 +8455,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi return nil } -func awsAwsjson11_deserializeDocumentContainerDefinitions(v *[]*types.ContainerDefinition, value interface{}) error { +func awsAwsjson11_deserializeDocumentContainerDefinitions(v *[]types.ContainerDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8454,18 +8468,20 @@ func awsAwsjson11_deserializeDocumentContainerDefinitions(v *[]*types.ContainerD return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContainerDefinition + var cv []types.ContainerDefinition if *v == nil { - cv = []*types.ContainerDefinition{} + cv = []types.ContainerDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.ContainerDefinition - if err := awsAwsjson11_deserializeDocumentContainerDefinition(&col, value); err != nil { + var col types.ContainerDefinition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContainerDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8473,7 +8489,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinitions(v *[]*types.ContainerD return nil } -func awsAwsjson11_deserializeDocumentContainerDependencies(v *[]*types.ContainerDependency, value interface{}) error { +func awsAwsjson11_deserializeDocumentContainerDependencies(v *[]types.ContainerDependency, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8486,18 +8502,20 @@ func awsAwsjson11_deserializeDocumentContainerDependencies(v *[]*types.Container return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContainerDependency + var cv []types.ContainerDependency if *v == nil { - cv = []*types.ContainerDependency{} + cv = []types.ContainerDependency{} } else { cv = *v } for _, value := range shape { - var col *types.ContainerDependency - if err := awsAwsjson11_deserializeDocumentContainerDependency(&col, value); err != nil { + var col types.ContainerDependency + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContainerDependency(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8542,7 +8560,7 @@ func awsAwsjson11_deserializeDocumentContainerDependency(v **types.ContainerDepe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerName = &jtv + sv.ContainerName = ptr.String(jtv) } default: @@ -8582,7 +8600,7 @@ func awsAwsjson11_deserializeDocumentContainerInstance(v **types.ContainerInstan if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AgentConnected = &jtv + sv.AgentConnected = jtv } case "agentUpdateStatus": @@ -8610,7 +8628,7 @@ func awsAwsjson11_deserializeDocumentContainerInstance(v **types.ContainerInstan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CapacityProviderName = &jtv + sv.CapacityProviderName = ptr.String(jtv) } case "containerInstanceArn": @@ -8619,7 +8637,7 @@ func awsAwsjson11_deserializeDocumentContainerInstance(v **types.ContainerInstan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerInstanceArn = &jtv + sv.ContainerInstanceArn = ptr.String(jtv) } case "ec2InstanceId": @@ -8628,7 +8646,7 @@ func awsAwsjson11_deserializeDocumentContainerInstance(v **types.ContainerInstan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Ec2InstanceId = &jtv + sv.Ec2InstanceId = ptr.String(jtv) } case "pendingTasksCount": @@ -8641,7 +8659,7 @@ func awsAwsjson11_deserializeDocumentContainerInstance(v **types.ContainerInstan if err != nil { return err } - sv.PendingTasksCount = ptr.Int32(int32(i64)) + sv.PendingTasksCount = int32(i64) } case "registeredAt": @@ -8677,7 +8695,7 @@ func awsAwsjson11_deserializeDocumentContainerInstance(v **types.ContainerInstan if err != nil { return err } - sv.RunningTasksCount = ptr.Int32(int32(i64)) + sv.RunningTasksCount = int32(i64) } case "status": @@ -8686,7 +8704,7 @@ func awsAwsjson11_deserializeDocumentContainerInstance(v **types.ContainerInstan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "statusReason": @@ -8695,7 +8713,7 @@ func awsAwsjson11_deserializeDocumentContainerInstance(v **types.ContainerInstan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } case "tags": @@ -8713,7 +8731,7 @@ func awsAwsjson11_deserializeDocumentContainerInstance(v **types.ContainerInstan if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } case "versionInfo": @@ -8730,7 +8748,7 @@ func awsAwsjson11_deserializeDocumentContainerInstance(v **types.ContainerInstan return nil } -func awsAwsjson11_deserializeDocumentContainerInstances(v *[]*types.ContainerInstance, value interface{}) error { +func awsAwsjson11_deserializeDocumentContainerInstances(v *[]types.ContainerInstance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8743,18 +8761,20 @@ func awsAwsjson11_deserializeDocumentContainerInstances(v *[]*types.ContainerIns return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContainerInstance + var cv []types.ContainerInstance if *v == nil { - cv = []*types.ContainerInstance{} + cv = []types.ContainerInstance{} } else { cv = *v } for _, value := range shape { - var col *types.ContainerInstance - if err := awsAwsjson11_deserializeDocumentContainerInstance(&col, value); err != nil { + var col types.ContainerInstance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContainerInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8844,7 +8864,7 @@ func awsAwsjson11_deserializeDocumentContainerOverride(v **types.ContainerOverri if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceRequirements": @@ -8861,7 +8881,7 @@ func awsAwsjson11_deserializeDocumentContainerOverride(v **types.ContainerOverri return nil } -func awsAwsjson11_deserializeDocumentContainerOverrides(v *[]*types.ContainerOverride, value interface{}) error { +func awsAwsjson11_deserializeDocumentContainerOverrides(v *[]types.ContainerOverride, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8874,18 +8894,20 @@ func awsAwsjson11_deserializeDocumentContainerOverrides(v *[]*types.ContainerOve return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContainerOverride + var cv []types.ContainerOverride if *v == nil { - cv = []*types.ContainerOverride{} + cv = []types.ContainerOverride{} } else { cv = *v } for _, value := range shape { - var col *types.ContainerOverride - if err := awsAwsjson11_deserializeDocumentContainerOverride(&col, value); err != nil { + var col types.ContainerOverride + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContainerOverride(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8893,7 +8915,7 @@ func awsAwsjson11_deserializeDocumentContainerOverrides(v *[]*types.ContainerOve return nil } -func awsAwsjson11_deserializeDocumentContainers(v *[]*types.Container, value interface{}) error { +func awsAwsjson11_deserializeDocumentContainers(v *[]types.Container, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8906,18 +8928,20 @@ func awsAwsjson11_deserializeDocumentContainers(v *[]*types.Container, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Container + var cv []types.Container if *v == nil { - cv = []*types.Container{} + cv = []types.Container{} } else { cv = *v } for _, value := range shape { - var col *types.Container - if err := awsAwsjson11_deserializeDocumentContainer(&col, value); err != nil { + var col types.Container + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContainer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8975,7 +8999,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if err != nil { return err } - sv.DesiredCount = ptr.Int32(int32(i64)) + sv.DesiredCount = int32(i64) } case "id": @@ -8984,7 +9008,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "launchType": @@ -9011,7 +9035,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if err != nil { return err } - sv.PendingCount = ptr.Int32(int32(i64)) + sv.PendingCount = int32(i64) } case "platformVersion": @@ -9020,7 +9044,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PlatformVersion = &jtv + sv.PlatformVersion = ptr.String(jtv) } case "runningCount": @@ -9033,7 +9057,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if err != nil { return err } - sv.RunningCount = ptr.Int32(int32(i64)) + sv.RunningCount = int32(i64) } case "status": @@ -9042,7 +9066,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "taskDefinition": @@ -9051,7 +9075,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TaskDefinition = &jtv + sv.TaskDefinition = ptr.String(jtv) } case "updatedAt": @@ -9173,7 +9197,7 @@ func awsAwsjson11_deserializeDocumentDeploymentController(v **types.DeploymentCo return nil } -func awsAwsjson11_deserializeDocumentDeployments(v *[]*types.Deployment, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeployments(v *[]types.Deployment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9186,18 +9210,20 @@ func awsAwsjson11_deserializeDocumentDeployments(v *[]*types.Deployment, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Deployment + var cv []types.Deployment if *v == nil { - cv = []*types.Deployment{} + cv = []types.Deployment{} } else { cv = *v } for _, value := range shape { - var col *types.Deployment - if err := awsAwsjson11_deserializeDocumentDeployment(&col, value); err != nil { + var col types.Deployment + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeployment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9233,7 +9259,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerPath = &jtv + sv.ContainerPath = ptr.String(jtv) } case "hostPath": @@ -9242,7 +9268,7 @@ func awsAwsjson11_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HostPath = &jtv + sv.HostPath = ptr.String(jtv) } case "permissions": @@ -9295,7 +9321,7 @@ func awsAwsjson11_deserializeDocumentDeviceCgroupPermissions(v *[]types.DeviceCg return nil } -func awsAwsjson11_deserializeDocumentDevicesList(v *[]*types.Device, value interface{}) error { +func awsAwsjson11_deserializeDocumentDevicesList(v *[]types.Device, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9308,18 +9334,20 @@ func awsAwsjson11_deserializeDocumentDevicesList(v *[]*types.Device, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Device + var cv []types.Device if *v == nil { - cv = []*types.Device{} + cv = []types.Device{} } else { cv = *v } for _, value := range shape { - var col *types.Device - if err := awsAwsjson11_deserializeDocumentDevice(&col, value); err != nil { + var col types.Device + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDevice(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9327,7 +9355,7 @@ func awsAwsjson11_deserializeDocumentDevicesList(v *[]*types.Device, value inter return nil } -func awsAwsjson11_deserializeDocumentDockerLabelsMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDockerLabelsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9340,21 +9368,21 @@ func awsAwsjson11_deserializeDocumentDockerLabelsMap(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -9391,7 +9419,7 @@ func awsAwsjson11_deserializeDocumentDockerVolumeConfiguration(v **types.DockerV if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.Autoprovision = &jtv + sv.Autoprovision = ptr.Bool(jtv) } case "driver": @@ -9400,7 +9428,7 @@ func awsAwsjson11_deserializeDocumentDockerVolumeConfiguration(v **types.DockerV if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Driver = &jtv + sv.Driver = ptr.String(jtv) } case "driverOpts": @@ -9459,7 +9487,7 @@ func awsAwsjson11_deserializeDocumentEFSAuthorizationConfig(v **types.EFSAuthori if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccessPointId = &jtv + sv.AccessPointId = ptr.String(jtv) } case "iam": @@ -9513,7 +9541,7 @@ func awsAwsjson11_deserializeDocumentEFSVolumeConfiguration(v **types.EFSVolumeC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "rootDirectory": @@ -9522,7 +9550,7 @@ func awsAwsjson11_deserializeDocumentEFSVolumeConfiguration(v **types.EFSVolumeC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RootDirectory = &jtv + sv.RootDirectory = ptr.String(jtv) } case "transitEncryption": @@ -9593,7 +9621,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentFile(v **types.EnvironmentFile, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -9605,7 +9633,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentFile(v **types.EnvironmentFile, return nil } -func awsAwsjson11_deserializeDocumentEnvironmentFiles(v *[]*types.EnvironmentFile, value interface{}) error { +func awsAwsjson11_deserializeDocumentEnvironmentFiles(v *[]types.EnvironmentFile, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9618,18 +9646,20 @@ func awsAwsjson11_deserializeDocumentEnvironmentFiles(v *[]*types.EnvironmentFil return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EnvironmentFile + var cv []types.EnvironmentFile if *v == nil { - cv = []*types.EnvironmentFile{} + cv = []types.EnvironmentFile{} } else { cv = *v } for _, value := range shape { - var col *types.EnvironmentFile - if err := awsAwsjson11_deserializeDocumentEnvironmentFile(&col, value); err != nil { + var col types.EnvironmentFile + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEnvironmentFile(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9637,7 +9667,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentFiles(v *[]*types.EnvironmentFil return nil } -func awsAwsjson11_deserializeDocumentEnvironmentVariables(v *[]*types.KeyValuePair, value interface{}) error { +func awsAwsjson11_deserializeDocumentEnvironmentVariables(v *[]types.KeyValuePair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9650,18 +9680,20 @@ func awsAwsjson11_deserializeDocumentEnvironmentVariables(v *[]*types.KeyValuePa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyValuePair + var cv []types.KeyValuePair if *v == nil { - cv = []*types.KeyValuePair{} + cv = []types.KeyValuePair{} } else { cv = *v } for _, value := range shape { - var col *types.KeyValuePair - if err := awsAwsjson11_deserializeDocumentKeyValuePair(&col, value); err != nil { + var col types.KeyValuePair + destAddr := &col + if err := awsAwsjson11_deserializeDocumentKeyValuePair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9697,7 +9729,7 @@ func awsAwsjson11_deserializeDocumentFailure(v **types.Failure, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "detail": @@ -9706,7 +9738,7 @@ func awsAwsjson11_deserializeDocumentFailure(v **types.Failure, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Detail = &jtv + sv.Detail = ptr.String(jtv) } case "reason": @@ -9715,7 +9747,7 @@ func awsAwsjson11_deserializeDocumentFailure(v **types.Failure, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } default: @@ -9727,7 +9759,7 @@ func awsAwsjson11_deserializeDocumentFailure(v **types.Failure, value interface{ return nil } -func awsAwsjson11_deserializeDocumentFailures(v *[]*types.Failure, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailures(v *[]types.Failure, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9740,18 +9772,20 @@ func awsAwsjson11_deserializeDocumentFailures(v *[]*types.Failure, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Failure + var cv []types.Failure if *v == nil { - cv = []*types.Failure{} + cv = []types.Failure{} } else { cv = *v } for _, value := range shape { - var col *types.Failure - if err := awsAwsjson11_deserializeDocumentFailure(&col, value); err != nil { + var col types.Failure + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailure(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9804,7 +9838,7 @@ func awsAwsjson11_deserializeDocumentFirelensConfiguration(v **types.FirelensCon return nil } -func awsAwsjson11_deserializeDocumentFirelensConfigurationOptionsMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentFirelensConfigurationOptionsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9817,21 +9851,21 @@ func awsAwsjson11_deserializeDocumentFirelensConfigurationOptionsMap(v *map[stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -9840,7 +9874,7 @@ func awsAwsjson11_deserializeDocumentFirelensConfigurationOptionsMap(v *map[stri return nil } -func awsAwsjson11_deserializeDocumentGpuIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentGpuIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9853,21 +9887,21 @@ func awsAwsjson11_deserializeDocumentGpuIds(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -9992,7 +10026,7 @@ func awsAwsjson11_deserializeDocumentHostEntry(v **types.HostEntry, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Hostname = &jtv + sv.Hostname = ptr.String(jtv) } case "ipAddress": @@ -10001,7 +10035,7 @@ func awsAwsjson11_deserializeDocumentHostEntry(v **types.HostEntry, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } default: @@ -10013,7 +10047,7 @@ func awsAwsjson11_deserializeDocumentHostEntry(v **types.HostEntry, value interf return nil } -func awsAwsjson11_deserializeDocumentHostEntryList(v *[]*types.HostEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentHostEntryList(v *[]types.HostEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10026,18 +10060,20 @@ func awsAwsjson11_deserializeDocumentHostEntryList(v *[]*types.HostEntry, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HostEntry + var cv []types.HostEntry if *v == nil { - cv = []*types.HostEntry{} + cv = []types.HostEntry{} } else { cv = *v } for _, value := range shape { - var col *types.HostEntry - if err := awsAwsjson11_deserializeDocumentHostEntry(&col, value); err != nil { + var col types.HostEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHostEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10073,7 +10109,7 @@ func awsAwsjson11_deserializeDocumentHostVolumeProperties(v **types.HostVolumePr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourcePath = &jtv + sv.SourcePath = ptr.String(jtv) } default: @@ -10113,7 +10149,7 @@ func awsAwsjson11_deserializeDocumentInferenceAccelerator(v **types.InferenceAcc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeviceName = &jtv + sv.DeviceName = ptr.String(jtv) } case "deviceType": @@ -10122,7 +10158,7 @@ func awsAwsjson11_deserializeDocumentInferenceAccelerator(v **types.InferenceAcc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeviceType = &jtv + sv.DeviceType = ptr.String(jtv) } default: @@ -10162,7 +10198,7 @@ func awsAwsjson11_deserializeDocumentInferenceAcceleratorOverride(v **types.Infe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeviceName = &jtv + sv.DeviceName = ptr.String(jtv) } case "deviceType": @@ -10171,7 +10207,7 @@ func awsAwsjson11_deserializeDocumentInferenceAcceleratorOverride(v **types.Infe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeviceType = &jtv + sv.DeviceType = ptr.String(jtv) } default: @@ -10183,7 +10219,7 @@ func awsAwsjson11_deserializeDocumentInferenceAcceleratorOverride(v **types.Infe return nil } -func awsAwsjson11_deserializeDocumentInferenceAcceleratorOverrides(v *[]*types.InferenceAcceleratorOverride, value interface{}) error { +func awsAwsjson11_deserializeDocumentInferenceAcceleratorOverrides(v *[]types.InferenceAcceleratorOverride, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10196,18 +10232,20 @@ func awsAwsjson11_deserializeDocumentInferenceAcceleratorOverrides(v *[]*types.I return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InferenceAcceleratorOverride + var cv []types.InferenceAcceleratorOverride if *v == nil { - cv = []*types.InferenceAcceleratorOverride{} + cv = []types.InferenceAcceleratorOverride{} } else { cv = *v } for _, value := range shape { - var col *types.InferenceAcceleratorOverride - if err := awsAwsjson11_deserializeDocumentInferenceAcceleratorOverride(&col, value); err != nil { + var col types.InferenceAcceleratorOverride + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInferenceAcceleratorOverride(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10215,7 +10253,7 @@ func awsAwsjson11_deserializeDocumentInferenceAcceleratorOverrides(v *[]*types.I return nil } -func awsAwsjson11_deserializeDocumentInferenceAccelerators(v *[]*types.InferenceAccelerator, value interface{}) error { +func awsAwsjson11_deserializeDocumentInferenceAccelerators(v *[]types.InferenceAccelerator, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10228,18 +10266,20 @@ func awsAwsjson11_deserializeDocumentInferenceAccelerators(v *[]*types.Inference return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InferenceAccelerator + var cv []types.InferenceAccelerator if *v == nil { - cv = []*types.InferenceAccelerator{} + cv = []types.InferenceAccelerator{} } else { cv = *v } for _, value := range shape { - var col *types.InferenceAccelerator - if err := awsAwsjson11_deserializeDocumentInferenceAccelerator(&col, value); err != nil { + var col types.InferenceAccelerator + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInferenceAccelerator(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10275,7 +10315,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10356,7 +10396,7 @@ func awsAwsjson11_deserializeDocumentKeyValuePair(v **types.KeyValuePair, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "value": @@ -10365,7 +10405,7 @@ func awsAwsjson11_deserializeDocumentKeyValuePair(v **types.KeyValuePair, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -10405,7 +10445,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10455,7 +10495,7 @@ func awsAwsjson11_deserializeDocumentLinuxParameters(v **types.LinuxParameters, if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.InitProcessEnabled = &jtv + sv.InitProcessEnabled = ptr.Bool(jtv) } case "maxSwap": @@ -10539,7 +10579,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancer(v **types.LoadBalancer, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerName = &jtv + sv.ContainerName = ptr.String(jtv) } case "containerPort": @@ -10561,7 +10601,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancer(v **types.LoadBalancer, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LoadBalancerName = &jtv + sv.LoadBalancerName = ptr.String(jtv) } case "targetGroupArn": @@ -10570,7 +10610,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancer(v **types.LoadBalancer, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TargetGroupArn = &jtv + sv.TargetGroupArn = ptr.String(jtv) } default: @@ -10582,7 +10622,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancer(v **types.LoadBalancer, value return nil } -func awsAwsjson11_deserializeDocumentLoadBalancers(v *[]*types.LoadBalancer, value interface{}) error { +func awsAwsjson11_deserializeDocumentLoadBalancers(v *[]types.LoadBalancer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10595,18 +10635,20 @@ func awsAwsjson11_deserializeDocumentLoadBalancers(v *[]*types.LoadBalancer, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LoadBalancer + var cv []types.LoadBalancer if *v == nil { - cv = []*types.LoadBalancer{} + cv = []types.LoadBalancer{} } else { cv = *v } for _, value := range shape { - var col *types.LoadBalancer - if err := awsAwsjson11_deserializeDocumentLoadBalancer(&col, value); err != nil { + var col types.LoadBalancer + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLoadBalancer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10664,7 +10706,7 @@ func awsAwsjson11_deserializeDocumentLogConfiguration(v **types.LogConfiguration return nil } -func awsAwsjson11_deserializeDocumentLogConfigurationOptionsMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogConfigurationOptionsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10677,21 +10719,21 @@ func awsAwsjson11_deserializeDocumentLogConfigurationOptionsMap(v *map[string]*s return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -10807,7 +10849,7 @@ func awsAwsjson11_deserializeDocumentMissingVersionException(v **types.MissingVe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10847,7 +10889,7 @@ func awsAwsjson11_deserializeDocumentMountPoint(v **types.MountPoint, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerPath = &jtv + sv.ContainerPath = ptr.String(jtv) } case "readOnly": @@ -10856,7 +10898,7 @@ func awsAwsjson11_deserializeDocumentMountPoint(v **types.MountPoint, value inte if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.ReadOnly = &jtv + sv.ReadOnly = ptr.Bool(jtv) } case "sourceVolume": @@ -10865,7 +10907,7 @@ func awsAwsjson11_deserializeDocumentMountPoint(v **types.MountPoint, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceVolume = &jtv + sv.SourceVolume = ptr.String(jtv) } default: @@ -10877,7 +10919,7 @@ func awsAwsjson11_deserializeDocumentMountPoint(v **types.MountPoint, value inte return nil } -func awsAwsjson11_deserializeDocumentMountPointList(v *[]*types.MountPoint, value interface{}) error { +func awsAwsjson11_deserializeDocumentMountPointList(v *[]types.MountPoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10890,18 +10932,20 @@ func awsAwsjson11_deserializeDocumentMountPointList(v *[]*types.MountPoint, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MountPoint + var cv []types.MountPoint if *v == nil { - cv = []*types.MountPoint{} + cv = []types.MountPoint{} } else { cv = *v } for _, value := range shape { - var col *types.MountPoint - if err := awsAwsjson11_deserializeDocumentMountPoint(&col, value); err != nil { + var col types.MountPoint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMountPoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10937,7 +10981,7 @@ func awsAwsjson11_deserializeDocumentNetworkBinding(v **types.NetworkBinding, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BindIP = &jtv + sv.BindIP = ptr.String(jtv) } case "containerPort": @@ -10984,7 +11028,7 @@ func awsAwsjson11_deserializeDocumentNetworkBinding(v **types.NetworkBinding, va return nil } -func awsAwsjson11_deserializeDocumentNetworkBindings(v *[]*types.NetworkBinding, value interface{}) error { +func awsAwsjson11_deserializeDocumentNetworkBindings(v *[]types.NetworkBinding, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10997,18 +11041,20 @@ func awsAwsjson11_deserializeDocumentNetworkBindings(v *[]*types.NetworkBinding, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NetworkBinding + var cv []types.NetworkBinding if *v == nil { - cv = []*types.NetworkBinding{} + cv = []types.NetworkBinding{} } else { cv = *v } for _, value := range shape { - var col *types.NetworkBinding - if err := awsAwsjson11_deserializeDocumentNetworkBinding(&col, value); err != nil { + var col types.NetworkBinding + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNetworkBinding(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11080,7 +11126,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AttachmentId = &jtv + sv.AttachmentId = ptr.String(jtv) } case "ipv6Address": @@ -11089,7 +11135,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Ipv6Address = &jtv + sv.Ipv6Address = ptr.String(jtv) } case "privateIpv4Address": @@ -11098,7 +11144,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrivateIpv4Address = &jtv + sv.PrivateIpv4Address = ptr.String(jtv) } default: @@ -11110,7 +11156,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface return nil } -func awsAwsjson11_deserializeDocumentNetworkInterfaces(v *[]*types.NetworkInterface, value interface{}) error { +func awsAwsjson11_deserializeDocumentNetworkInterfaces(v *[]types.NetworkInterface, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11123,18 +11169,20 @@ func awsAwsjson11_deserializeDocumentNetworkInterfaces(v *[]*types.NetworkInterf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NetworkInterface + var cv []types.NetworkInterface if *v == nil { - cv = []*types.NetworkInterface{} + cv = []types.NetworkInterface{} } else { cv = *v } for _, value := range shape { - var col *types.NetworkInterface - if err := awsAwsjson11_deserializeDocumentNetworkInterface(&col, value); err != nil { + var col types.NetworkInterface + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNetworkInterface(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11170,7 +11218,7 @@ func awsAwsjson11_deserializeDocumentNoUpdateAvailableException(v **types.NoUpda if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11210,7 +11258,7 @@ func awsAwsjson11_deserializeDocumentPlacementConstraint(v **types.PlacementCons if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Expression = &jtv + sv.Expression = ptr.String(jtv) } case "type": @@ -11231,7 +11279,7 @@ func awsAwsjson11_deserializeDocumentPlacementConstraint(v **types.PlacementCons return nil } -func awsAwsjson11_deserializeDocumentPlacementConstraints(v *[]*types.PlacementConstraint, value interface{}) error { +func awsAwsjson11_deserializeDocumentPlacementConstraints(v *[]types.PlacementConstraint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11244,18 +11292,20 @@ func awsAwsjson11_deserializeDocumentPlacementConstraints(v *[]*types.PlacementC return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PlacementConstraint + var cv []types.PlacementConstraint if *v == nil { - cv = []*types.PlacementConstraint{} + cv = []types.PlacementConstraint{} } else { cv = *v } for _, value := range shape { - var col *types.PlacementConstraint - if err := awsAwsjson11_deserializeDocumentPlacementConstraint(&col, value); err != nil { + var col types.PlacementConstraint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPlacementConstraint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11263,7 +11313,7 @@ func awsAwsjson11_deserializeDocumentPlacementConstraints(v *[]*types.PlacementC return nil } -func awsAwsjson11_deserializeDocumentPlacementStrategies(v *[]*types.PlacementStrategy, value interface{}) error { +func awsAwsjson11_deserializeDocumentPlacementStrategies(v *[]types.PlacementStrategy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11276,18 +11326,20 @@ func awsAwsjson11_deserializeDocumentPlacementStrategies(v *[]*types.PlacementSt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PlacementStrategy + var cv []types.PlacementStrategy if *v == nil { - cv = []*types.PlacementStrategy{} + cv = []types.PlacementStrategy{} } else { cv = *v } for _, value := range shape { - var col *types.PlacementStrategy - if err := awsAwsjson11_deserializeDocumentPlacementStrategy(&col, value); err != nil { + var col types.PlacementStrategy + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPlacementStrategy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11323,7 +11375,7 @@ func awsAwsjson11_deserializeDocumentPlacementStrategy(v **types.PlacementStrate if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Field = &jtv + sv.Field = ptr.String(jtv) } case "type": @@ -11372,7 +11424,7 @@ func awsAwsjson11_deserializeDocumentPlatformTaskDefinitionIncompatibilityExcept if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11412,7 +11464,7 @@ func awsAwsjson11_deserializeDocumentPlatformUnknownException(v **types.Platform if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11490,7 +11542,7 @@ func awsAwsjson11_deserializeDocumentPortMapping(v **types.PortMapping, value in return nil } -func awsAwsjson11_deserializeDocumentPortMappingList(v *[]*types.PortMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentPortMappingList(v *[]types.PortMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11503,18 +11555,20 @@ func awsAwsjson11_deserializeDocumentPortMappingList(v *[]*types.PortMapping, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PortMapping + var cv []types.PortMapping if *v == nil { - cv = []*types.PortMapping{} + cv = []types.PortMapping{} } else { cv = *v } for _, value := range shape { - var col *types.PortMapping - if err := awsAwsjson11_deserializeDocumentPortMapping(&col, value); err != nil { + var col types.PortMapping + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPortMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11550,7 +11604,7 @@ func awsAwsjson11_deserializeDocumentProxyConfiguration(v **types.ProxyConfigura if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerName = &jtv + sv.ContainerName = ptr.String(jtv) } case "properties": @@ -11576,7 +11630,7 @@ func awsAwsjson11_deserializeDocumentProxyConfiguration(v **types.ProxyConfigura return nil } -func awsAwsjson11_deserializeDocumentProxyConfigurationProperties(v *[]*types.KeyValuePair, value interface{}) error { +func awsAwsjson11_deserializeDocumentProxyConfigurationProperties(v *[]types.KeyValuePair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11589,18 +11643,20 @@ func awsAwsjson11_deserializeDocumentProxyConfigurationProperties(v *[]*types.Ke return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyValuePair + var cv []types.KeyValuePair if *v == nil { - cv = []*types.KeyValuePair{} + cv = []types.KeyValuePair{} } else { cv = *v } for _, value := range shape { - var col *types.KeyValuePair - if err := awsAwsjson11_deserializeDocumentKeyValuePair(&col, value); err != nil { + var col types.KeyValuePair + destAddr := &col + if err := awsAwsjson11_deserializeDocumentKeyValuePair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11636,7 +11692,7 @@ func awsAwsjson11_deserializeDocumentRepositoryCredentials(v **types.RepositoryC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CredentialsParameter = &jtv + sv.CredentialsParameter = ptr.String(jtv) } default: @@ -11648,7 +11704,7 @@ func awsAwsjson11_deserializeDocumentRepositoryCredentials(v **types.RepositoryC return nil } -func awsAwsjson11_deserializeDocumentRequiresAttributes(v *[]*types.Attribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentRequiresAttributes(v *[]types.Attribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11661,18 +11717,20 @@ func awsAwsjson11_deserializeDocumentRequiresAttributes(v *[]*types.Attribute, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Attribute + var cv []types.Attribute if *v == nil { - cv = []*types.Attribute{} + cv = []types.Attribute{} } else { cv = *v } for _, value := range shape { - var col *types.Attribute - if err := awsAwsjson11_deserializeDocumentAttribute(&col, value); err != nil { + var col types.Attribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11712,7 +11770,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac if err != nil { return err } - sv.DoubleValue = &f64 + sv.DoubleValue = f64 } case "integerValue": @@ -11725,7 +11783,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac if err != nil { return err } - sv.IntegerValue = ptr.Int32(int32(i64)) + sv.IntegerValue = int32(i64) } case "longValue": @@ -11738,7 +11796,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac if err != nil { return err } - sv.LongValue = &i64 + sv.LongValue = i64 } case "name": @@ -11747,7 +11805,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "stringSetValue": @@ -11761,7 +11819,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11801,7 +11859,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11841,7 +11899,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11890,7 +11948,7 @@ func awsAwsjson11_deserializeDocumentResourceRequirement(v **types.ResourceRequi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -11902,7 +11960,7 @@ func awsAwsjson11_deserializeDocumentResourceRequirement(v **types.ResourceRequi return nil } -func awsAwsjson11_deserializeDocumentResourceRequirements(v *[]*types.ResourceRequirement, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceRequirements(v *[]types.ResourceRequirement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11915,18 +11973,20 @@ func awsAwsjson11_deserializeDocumentResourceRequirements(v *[]*types.ResourceRe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceRequirement + var cv []types.ResourceRequirement if *v == nil { - cv = []*types.ResourceRequirement{} + cv = []types.ResourceRequirement{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceRequirement - if err := awsAwsjson11_deserializeDocumentResourceRequirement(&col, value); err != nil { + var col types.ResourceRequirement + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceRequirement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11934,7 +11994,7 @@ func awsAwsjson11_deserializeDocumentResourceRequirements(v *[]*types.ResourceRe return nil } -func awsAwsjson11_deserializeDocumentResources(v *[]*types.Resource, value interface{}) error { +func awsAwsjson11_deserializeDocumentResources(v *[]types.Resource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11947,18 +12007,20 @@ func awsAwsjson11_deserializeDocumentResources(v *[]*types.Resource, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Resource + var cv []types.Resource if *v == nil { - cv = []*types.Resource{} + cv = []types.Resource{} } else { cv = *v } for _, value := range shape { - var col *types.Resource - if err := awsAwsjson11_deserializeDocumentResource(&col, value); err != nil { + var col types.Resource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12007,7 +12069,7 @@ func awsAwsjson11_deserializeDocumentScale(v **types.Scale, value interface{}) e if err != nil { return err } - sv.Value = &f64 + sv.Value = f64 } default: @@ -12047,7 +12109,7 @@ func awsAwsjson11_deserializeDocumentSecret(v **types.Secret, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "valueFrom": @@ -12056,7 +12118,7 @@ func awsAwsjson11_deserializeDocumentSecret(v **types.Secret, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ValueFrom = &jtv + sv.ValueFrom = ptr.String(jtv) } default: @@ -12068,7 +12130,7 @@ func awsAwsjson11_deserializeDocumentSecret(v **types.Secret, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentSecretList(v *[]*types.Secret, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecretList(v *[]types.Secret, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12081,18 +12143,20 @@ func awsAwsjson11_deserializeDocumentSecretList(v *[]*types.Secret, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Secret + var cv []types.Secret if *v == nil { - cv = []*types.Secret{} + cv = []types.Secret{} } else { cv = *v } for _, value := range shape { - var col *types.Secret - if err := awsAwsjson11_deserializeDocumentSecret(&col, value); err != nil { + var col types.Secret + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSecret(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12128,7 +12192,7 @@ func awsAwsjson11_deserializeDocumentServerException(v **types.ServerException, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12173,7 +12237,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "createdAt": @@ -12195,7 +12259,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "deploymentConfiguration": @@ -12223,7 +12287,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if err != nil { return err } - sv.DesiredCount = ptr.Int32(int32(i64)) + sv.DesiredCount = int32(i64) } case "enableECSManagedTags": @@ -12232,7 +12296,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableECSManagedTags = &jtv + sv.EnableECSManagedTags = jtv } case "events": @@ -12282,7 +12346,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if err != nil { return err } - sv.PendingCount = ptr.Int32(int32(i64)) + sv.PendingCount = int32(i64) } case "placementConstraints": @@ -12301,7 +12365,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PlatformVersion = &jtv + sv.PlatformVersion = ptr.String(jtv) } case "propagateTags": @@ -12319,7 +12383,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "runningCount": @@ -12332,7 +12396,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if err != nil { return err } - sv.RunningCount = ptr.Int32(int32(i64)) + sv.RunningCount = int32(i64) } case "schedulingStrategy": @@ -12350,7 +12414,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceArn = &jtv + sv.ServiceArn = ptr.String(jtv) } case "serviceName": @@ -12359,7 +12423,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } case "serviceRegistries": @@ -12373,7 +12437,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "tags": @@ -12387,7 +12451,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TaskDefinition = &jtv + sv.TaskDefinition = ptr.String(jtv) } case "taskSets": @@ -12445,7 +12509,7 @@ func awsAwsjson11_deserializeDocumentServiceEvent(v **types.ServiceEvent, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "message": @@ -12454,7 +12518,7 @@ func awsAwsjson11_deserializeDocumentServiceEvent(v **types.ServiceEvent, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12466,7 +12530,7 @@ func awsAwsjson11_deserializeDocumentServiceEvent(v **types.ServiceEvent, value return nil } -func awsAwsjson11_deserializeDocumentServiceEvents(v *[]*types.ServiceEvent, value interface{}) error { +func awsAwsjson11_deserializeDocumentServiceEvents(v *[]types.ServiceEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12479,18 +12543,20 @@ func awsAwsjson11_deserializeDocumentServiceEvents(v *[]*types.ServiceEvent, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServiceEvent + var cv []types.ServiceEvent if *v == nil { - cv = []*types.ServiceEvent{} + cv = []types.ServiceEvent{} } else { cv = *v } for _, value := range shape { - var col *types.ServiceEvent - if err := awsAwsjson11_deserializeDocumentServiceEvent(&col, value); err != nil { + var col types.ServiceEvent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServiceEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12526,7 +12592,7 @@ func awsAwsjson11_deserializeDocumentServiceNotActiveException(v **types.Service if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12566,7 +12632,7 @@ func awsAwsjson11_deserializeDocumentServiceNotFoundException(v **types.ServiceN if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12578,7 +12644,7 @@ func awsAwsjson11_deserializeDocumentServiceNotFoundException(v **types.ServiceN return nil } -func awsAwsjson11_deserializeDocumentServiceRegistries(v *[]*types.ServiceRegistry, value interface{}) error { +func awsAwsjson11_deserializeDocumentServiceRegistries(v *[]types.ServiceRegistry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12591,18 +12657,20 @@ func awsAwsjson11_deserializeDocumentServiceRegistries(v *[]*types.ServiceRegist return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServiceRegistry + var cv []types.ServiceRegistry if *v == nil { - cv = []*types.ServiceRegistry{} + cv = []types.ServiceRegistry{} } else { cv = *v } for _, value := range shape { - var col *types.ServiceRegistry - if err := awsAwsjson11_deserializeDocumentServiceRegistry(&col, value); err != nil { + var col types.ServiceRegistry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServiceRegistry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12638,7 +12706,7 @@ func awsAwsjson11_deserializeDocumentServiceRegistry(v **types.ServiceRegistry, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerName = &jtv + sv.ContainerName = ptr.String(jtv) } case "containerPort": @@ -12673,7 +12741,7 @@ func awsAwsjson11_deserializeDocumentServiceRegistry(v **types.ServiceRegistry, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegistryArn = &jtv + sv.RegistryArn = ptr.String(jtv) } default: @@ -12685,7 +12753,7 @@ func awsAwsjson11_deserializeDocumentServiceRegistry(v **types.ServiceRegistry, return nil } -func awsAwsjson11_deserializeDocumentServices(v *[]*types.Service, value interface{}) error { +func awsAwsjson11_deserializeDocumentServices(v *[]types.Service, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12698,18 +12766,20 @@ func awsAwsjson11_deserializeDocumentServices(v *[]*types.Service, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Service + var cv []types.Service if *v == nil { - cv = []*types.Service{} + cv = []types.Service{} } else { cv = *v } for _, value := range shape { - var col *types.Service - if err := awsAwsjson11_deserializeDocumentService(&col, value); err != nil { + var col types.Service + destAddr := &col + if err := awsAwsjson11_deserializeDocumentService(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12754,7 +12824,7 @@ func awsAwsjson11_deserializeDocumentSetting(v **types.Setting, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrincipalArn = &jtv + sv.PrincipalArn = ptr.String(jtv) } case "value": @@ -12763,7 +12833,7 @@ func awsAwsjson11_deserializeDocumentSetting(v **types.Setting, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -12775,7 +12845,7 @@ func awsAwsjson11_deserializeDocumentSetting(v **types.Setting, value interface{ return nil } -func awsAwsjson11_deserializeDocumentSettings(v *[]*types.Setting, value interface{}) error { +func awsAwsjson11_deserializeDocumentSettings(v *[]types.Setting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12788,18 +12858,20 @@ func awsAwsjson11_deserializeDocumentSettings(v *[]*types.Setting, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Setting + var cv []types.Setting if *v == nil { - cv = []*types.Setting{} + cv = []types.Setting{} } else { cv = *v } for _, value := range shape { - var col *types.Setting - if err := awsAwsjson11_deserializeDocumentSetting(&col, value); err != nil { + var col types.Setting + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSetting(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12807,7 +12879,7 @@ func awsAwsjson11_deserializeDocumentSettings(v *[]*types.Setting, value interfa return nil } -func awsAwsjson11_deserializeDocumentStatistics(v *[]*types.KeyValuePair, value interface{}) error { +func awsAwsjson11_deserializeDocumentStatistics(v *[]types.KeyValuePair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12820,18 +12892,20 @@ func awsAwsjson11_deserializeDocumentStatistics(v *[]*types.KeyValuePair, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyValuePair + var cv []types.KeyValuePair if *v == nil { - cv = []*types.KeyValuePair{} + cv = []types.KeyValuePair{} } else { cv = *v } for _, value := range shape { - var col *types.KeyValuePair - if err := awsAwsjson11_deserializeDocumentKeyValuePair(&col, value); err != nil { + var col types.KeyValuePair + destAddr := &col + if err := awsAwsjson11_deserializeDocumentKeyValuePair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12839,7 +12913,7 @@ func awsAwsjson11_deserializeDocumentStatistics(v *[]*types.KeyValuePair, value return nil } -func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12852,21 +12926,21 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -12875,7 +12949,7 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentStringMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12888,21 +12962,21 @@ func awsAwsjson11_deserializeDocumentStringMap(v *map[string]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -12939,7 +13013,7 @@ func awsAwsjson11_deserializeDocumentSystemControl(v **types.SystemControl, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "value": @@ -12948,7 +13022,7 @@ func awsAwsjson11_deserializeDocumentSystemControl(v **types.SystemControl, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -12960,7 +13034,7 @@ func awsAwsjson11_deserializeDocumentSystemControl(v **types.SystemControl, valu return nil } -func awsAwsjson11_deserializeDocumentSystemControls(v *[]*types.SystemControl, value interface{}) error { +func awsAwsjson11_deserializeDocumentSystemControls(v *[]types.SystemControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12973,18 +13047,20 @@ func awsAwsjson11_deserializeDocumentSystemControls(v *[]*types.SystemControl, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SystemControl + var cv []types.SystemControl if *v == nil { - cv = []*types.SystemControl{} + cv = []types.SystemControl{} } else { cv = *v } for _, value := range shape { - var col *types.SystemControl - if err := awsAwsjson11_deserializeDocumentSystemControl(&col, value); err != nil { + var col types.SystemControl + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSystemControl(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13020,7 +13096,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -13029,7 +13105,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -13041,7 +13117,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13054,18 +13130,20 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13101,7 +13179,7 @@ func awsAwsjson11_deserializeDocumentTargetNotFoundException(v **types.TargetNot if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13151,7 +13229,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "capacityProviderName": @@ -13160,7 +13238,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CapacityProviderName = &jtv + sv.CapacityProviderName = ptr.String(jtv) } case "clusterArn": @@ -13169,7 +13247,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "connectivity": @@ -13200,7 +13278,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerInstanceArn = &jtv + sv.ContainerInstanceArn = ptr.String(jtv) } case "containers": @@ -13214,7 +13292,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Cpu = &jtv + sv.Cpu = ptr.String(jtv) } case "createdAt": @@ -13236,7 +13314,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DesiredStatus = &jtv + sv.DesiredStatus = ptr.String(jtv) } case "executionStoppedAt": @@ -13258,7 +13336,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Group = &jtv + sv.Group = ptr.String(jtv) } case "healthStatus": @@ -13281,7 +13359,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastStatus = &jtv + sv.LastStatus = ptr.String(jtv) } case "launchType": @@ -13299,7 +13377,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Memory = &jtv + sv.Memory = ptr.String(jtv) } case "overrides": @@ -13313,7 +13391,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PlatformVersion = &jtv + sv.PlatformVersion = ptr.String(jtv) } case "pullStartedAt": @@ -13361,7 +13439,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StartedBy = &jtv + sv.StartedBy = ptr.String(jtv) } case "stopCode": @@ -13392,7 +13470,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StoppedReason = &jtv + sv.StoppedReason = ptr.String(jtv) } case "stoppingAt": @@ -13419,7 +13497,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TaskArn = &jtv + sv.TaskArn = ptr.String(jtv) } case "taskDefinitionArn": @@ -13428,7 +13506,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TaskDefinitionArn = &jtv + sv.TaskDefinitionArn = ptr.String(jtv) } case "version": @@ -13441,7 +13519,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -13491,7 +13569,7 @@ func awsAwsjson11_deserializeDocumentTaskDefinition(v **types.TaskDefinition, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Cpu = &jtv + sv.Cpu = ptr.String(jtv) } case "executionRoleArn": @@ -13500,7 +13578,7 @@ func awsAwsjson11_deserializeDocumentTaskDefinition(v **types.TaskDefinition, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExecutionRoleArn = &jtv + sv.ExecutionRoleArn = ptr.String(jtv) } case "family": @@ -13509,7 +13587,7 @@ func awsAwsjson11_deserializeDocumentTaskDefinition(v **types.TaskDefinition, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Family = &jtv + sv.Family = ptr.String(jtv) } case "inferenceAccelerators": @@ -13532,7 +13610,7 @@ func awsAwsjson11_deserializeDocumentTaskDefinition(v **types.TaskDefinition, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Memory = &jtv + sv.Memory = ptr.String(jtv) } case "networkMode": @@ -13583,7 +13661,7 @@ func awsAwsjson11_deserializeDocumentTaskDefinition(v **types.TaskDefinition, va if err != nil { return err } - sv.Revision = ptr.Int32(int32(i64)) + sv.Revision = int32(i64) } case "status": @@ -13601,7 +13679,7 @@ func awsAwsjson11_deserializeDocumentTaskDefinition(v **types.TaskDefinition, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TaskDefinitionArn = &jtv + sv.TaskDefinitionArn = ptr.String(jtv) } case "taskRoleArn": @@ -13610,7 +13688,7 @@ func awsAwsjson11_deserializeDocumentTaskDefinition(v **types.TaskDefinition, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TaskRoleArn = &jtv + sv.TaskRoleArn = ptr.String(jtv) } case "volumes": @@ -13655,7 +13733,7 @@ func awsAwsjson11_deserializeDocumentTaskDefinitionPlacementConstraint(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Expression = &jtv + sv.Expression = ptr.String(jtv) } case "type": @@ -13676,7 +13754,7 @@ func awsAwsjson11_deserializeDocumentTaskDefinitionPlacementConstraint(v **types return nil } -func awsAwsjson11_deserializeDocumentTaskDefinitionPlacementConstraints(v *[]*types.TaskDefinitionPlacementConstraint, value interface{}) error { +func awsAwsjson11_deserializeDocumentTaskDefinitionPlacementConstraints(v *[]types.TaskDefinitionPlacementConstraint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13689,18 +13767,20 @@ func awsAwsjson11_deserializeDocumentTaskDefinitionPlacementConstraints(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TaskDefinitionPlacementConstraint + var cv []types.TaskDefinitionPlacementConstraint if *v == nil { - cv = []*types.TaskDefinitionPlacementConstraint{} + cv = []types.TaskDefinitionPlacementConstraint{} } else { cv = *v } for _, value := range shape { - var col *types.TaskDefinitionPlacementConstraint - if err := awsAwsjson11_deserializeDocumentTaskDefinitionPlacementConstraint(&col, value); err != nil { + var col types.TaskDefinitionPlacementConstraint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTaskDefinitionPlacementConstraint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13741,7 +13821,7 @@ func awsAwsjson11_deserializeDocumentTaskOverride(v **types.TaskOverride, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Cpu = &jtv + sv.Cpu = ptr.String(jtv) } case "executionRoleArn": @@ -13750,7 +13830,7 @@ func awsAwsjson11_deserializeDocumentTaskOverride(v **types.TaskOverride, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExecutionRoleArn = &jtv + sv.ExecutionRoleArn = ptr.String(jtv) } case "inferenceAcceleratorOverrides": @@ -13764,7 +13844,7 @@ func awsAwsjson11_deserializeDocumentTaskOverride(v **types.TaskOverride, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Memory = &jtv + sv.Memory = ptr.String(jtv) } case "taskRoleArn": @@ -13773,7 +13853,7 @@ func awsAwsjson11_deserializeDocumentTaskOverride(v **types.TaskOverride, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TaskRoleArn = &jtv + sv.TaskRoleArn = ptr.String(jtv) } default: @@ -13785,7 +13865,7 @@ func awsAwsjson11_deserializeDocumentTaskOverride(v **types.TaskOverride, value return nil } -func awsAwsjson11_deserializeDocumentTasks(v *[]*types.Task, value interface{}) error { +func awsAwsjson11_deserializeDocumentTasks(v *[]types.Task, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13798,18 +13878,20 @@ func awsAwsjson11_deserializeDocumentTasks(v *[]*types.Task, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Task + var cv []types.Task if *v == nil { - cv = []*types.Task{} + cv = []types.Task{} } else { cv = *v } for _, value := range shape { - var col *types.Task - if err := awsAwsjson11_deserializeDocumentTask(&col, value); err != nil { + var col types.Task + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTask(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13850,7 +13932,7 @@ func awsAwsjson11_deserializeDocumentTaskSet(v **types.TaskSet, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "computedDesiredCount": @@ -13863,7 +13945,7 @@ func awsAwsjson11_deserializeDocumentTaskSet(v **types.TaskSet, value interface{ if err != nil { return err } - sv.ComputedDesiredCount = ptr.Int32(int32(i64)) + sv.ComputedDesiredCount = int32(i64) } case "createdAt": @@ -13885,7 +13967,7 @@ func awsAwsjson11_deserializeDocumentTaskSet(v **types.TaskSet, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExternalId = &jtv + sv.ExternalId = ptr.String(jtv) } case "id": @@ -13894,7 +13976,7 @@ func awsAwsjson11_deserializeDocumentTaskSet(v **types.TaskSet, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "launchType": @@ -13926,7 +14008,7 @@ func awsAwsjson11_deserializeDocumentTaskSet(v **types.TaskSet, value interface{ if err != nil { return err } - sv.PendingCount = ptr.Int32(int32(i64)) + sv.PendingCount = int32(i64) } case "platformVersion": @@ -13935,7 +14017,7 @@ func awsAwsjson11_deserializeDocumentTaskSet(v **types.TaskSet, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PlatformVersion = &jtv + sv.PlatformVersion = ptr.String(jtv) } case "runningCount": @@ -13948,7 +14030,7 @@ func awsAwsjson11_deserializeDocumentTaskSet(v **types.TaskSet, value interface{ if err != nil { return err } - sv.RunningCount = ptr.Int32(int32(i64)) + sv.RunningCount = int32(i64) } case "scale": @@ -13962,7 +14044,7 @@ func awsAwsjson11_deserializeDocumentTaskSet(v **types.TaskSet, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceArn = &jtv + sv.ServiceArn = ptr.String(jtv) } case "serviceRegistries": @@ -13998,7 +14080,7 @@ func awsAwsjson11_deserializeDocumentTaskSet(v **types.TaskSet, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StartedBy = &jtv + sv.StartedBy = ptr.String(jtv) } case "status": @@ -14007,7 +14089,7 @@ func awsAwsjson11_deserializeDocumentTaskSet(v **types.TaskSet, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "tags": @@ -14021,7 +14103,7 @@ func awsAwsjson11_deserializeDocumentTaskSet(v **types.TaskSet, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TaskDefinition = &jtv + sv.TaskDefinition = ptr.String(jtv) } case "taskSetArn": @@ -14030,7 +14112,7 @@ func awsAwsjson11_deserializeDocumentTaskSet(v **types.TaskSet, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TaskSetArn = &jtv + sv.TaskSetArn = ptr.String(jtv) } case "updatedAt": @@ -14083,7 +14165,7 @@ func awsAwsjson11_deserializeDocumentTaskSetNotFoundException(v **types.TaskSetN if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14095,7 +14177,7 @@ func awsAwsjson11_deserializeDocumentTaskSetNotFoundException(v **types.TaskSetN return nil } -func awsAwsjson11_deserializeDocumentTaskSets(v *[]*types.TaskSet, value interface{}) error { +func awsAwsjson11_deserializeDocumentTaskSets(v *[]types.TaskSet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14108,18 +14190,20 @@ func awsAwsjson11_deserializeDocumentTaskSets(v *[]*types.TaskSet, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TaskSet + var cv []types.TaskSet if *v == nil { - cv = []*types.TaskSet{} + cv = []types.TaskSet{} } else { cv = *v } for _, value := range shape { - var col *types.TaskSet - if err := awsAwsjson11_deserializeDocumentTaskSet(&col, value); err != nil { + var col types.TaskSet + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTaskSet(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14155,7 +14239,7 @@ func awsAwsjson11_deserializeDocumentTmpfs(v **types.Tmpfs, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContainerPath = &jtv + sv.ContainerPath = ptr.String(jtv) } case "mountOptions": @@ -14173,7 +14257,7 @@ func awsAwsjson11_deserializeDocumentTmpfs(v **types.Tmpfs, value interface{}) e if err != nil { return err } - sv.Size = ptr.Int32(int32(i64)) + sv.Size = int32(i64) } default: @@ -14185,7 +14269,7 @@ func awsAwsjson11_deserializeDocumentTmpfs(v **types.Tmpfs, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentTmpfsList(v *[]*types.Tmpfs, value interface{}) error { +func awsAwsjson11_deserializeDocumentTmpfsList(v *[]types.Tmpfs, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14198,18 +14282,20 @@ func awsAwsjson11_deserializeDocumentTmpfsList(v *[]*types.Tmpfs, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tmpfs + var cv []types.Tmpfs if *v == nil { - cv = []*types.Tmpfs{} + cv = []types.Tmpfs{} } else { cv = *v } for _, value := range shape { - var col *types.Tmpfs - if err := awsAwsjson11_deserializeDocumentTmpfs(&col, value); err != nil { + var col types.Tmpfs + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTmpfs(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14249,7 +14335,7 @@ func awsAwsjson11_deserializeDocumentUlimit(v **types.Ulimit, value interface{}) if err != nil { return err } - sv.HardLimit = ptr.Int32(int32(i64)) + sv.HardLimit = int32(i64) } case "name": @@ -14271,7 +14357,7 @@ func awsAwsjson11_deserializeDocumentUlimit(v **types.Ulimit, value interface{}) if err != nil { return err } - sv.SoftLimit = ptr.Int32(int32(i64)) + sv.SoftLimit = int32(i64) } default: @@ -14283,7 +14369,7 @@ func awsAwsjson11_deserializeDocumentUlimit(v **types.Ulimit, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentUlimitList(v *[]*types.Ulimit, value interface{}) error { +func awsAwsjson11_deserializeDocumentUlimitList(v *[]types.Ulimit, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14296,18 +14382,20 @@ func awsAwsjson11_deserializeDocumentUlimitList(v *[]*types.Ulimit, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Ulimit + var cv []types.Ulimit if *v == nil { - cv = []*types.Ulimit{} + cv = []types.Ulimit{} } else { cv = *v } for _, value := range shape { - var col *types.Ulimit - if err := awsAwsjson11_deserializeDocumentUlimit(&col, value); err != nil { + var col types.Ulimit + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUlimit(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14343,7 +14431,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedFeatureException(v **types.Unsup if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14383,7 +14471,7 @@ func awsAwsjson11_deserializeDocumentUpdateInProgressException(v **types.UpdateI if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14423,7 +14511,7 @@ func awsAwsjson11_deserializeDocumentVersionInfo(v **types.VersionInfo, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AgentHash = &jtv + sv.AgentHash = ptr.String(jtv) } case "agentVersion": @@ -14432,7 +14520,7 @@ func awsAwsjson11_deserializeDocumentVersionInfo(v **types.VersionInfo, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AgentVersion = &jtv + sv.AgentVersion = ptr.String(jtv) } case "dockerVersion": @@ -14441,7 +14529,7 @@ func awsAwsjson11_deserializeDocumentVersionInfo(v **types.VersionInfo, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DockerVersion = &jtv + sv.DockerVersion = ptr.String(jtv) } default: @@ -14496,7 +14584,7 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -14536,7 +14624,7 @@ func awsAwsjson11_deserializeDocumentVolumeFrom(v **types.VolumeFrom, value inte if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.ReadOnly = &jtv + sv.ReadOnly = ptr.Bool(jtv) } case "sourceContainer": @@ -14545,7 +14633,7 @@ func awsAwsjson11_deserializeDocumentVolumeFrom(v **types.VolumeFrom, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceContainer = &jtv + sv.SourceContainer = ptr.String(jtv) } default: @@ -14557,7 +14645,7 @@ func awsAwsjson11_deserializeDocumentVolumeFrom(v **types.VolumeFrom, value inte return nil } -func awsAwsjson11_deserializeDocumentVolumeFromList(v *[]*types.VolumeFrom, value interface{}) error { +func awsAwsjson11_deserializeDocumentVolumeFromList(v *[]types.VolumeFrom, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14570,18 +14658,20 @@ func awsAwsjson11_deserializeDocumentVolumeFromList(v *[]*types.VolumeFrom, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VolumeFrom + var cv []types.VolumeFrom if *v == nil { - cv = []*types.VolumeFrom{} + cv = []types.VolumeFrom{} } else { cv = *v } for _, value := range shape { - var col *types.VolumeFrom - if err := awsAwsjson11_deserializeDocumentVolumeFrom(&col, value); err != nil { + var col types.VolumeFrom + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVolumeFrom(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14589,7 +14679,7 @@ func awsAwsjson11_deserializeDocumentVolumeFromList(v *[]*types.VolumeFrom, valu return nil } -func awsAwsjson11_deserializeDocumentVolumeList(v *[]*types.Volume, value interface{}) error { +func awsAwsjson11_deserializeDocumentVolumeList(v *[]types.Volume, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14602,18 +14692,20 @@ func awsAwsjson11_deserializeDocumentVolumeList(v *[]*types.Volume, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Volume + var cv []types.Volume if *v == nil { - cv = []*types.Volume{} + cv = []types.Volume{} } else { cv = *v } for _, value := range shape { - var col *types.Volume - if err := awsAwsjson11_deserializeDocumentVolume(&col, value); err != nil { + var col types.Volume + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVolume(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15091,7 +15183,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCapacityProvidersOutput(v **Descr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -15377,7 +15469,7 @@ func awsAwsjson11_deserializeOpDocumentDiscoverPollEndpointOutput(v **DiscoverPo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Endpoint = &jtv + sv.Endpoint = ptr.String(jtv) } case "telemetryEndpoint": @@ -15386,7 +15478,7 @@ func awsAwsjson11_deserializeOpDocumentDiscoverPollEndpointOutput(v **DiscoverPo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TelemetryEndpoint = &jtv + sv.TelemetryEndpoint = ptr.String(jtv) } default: @@ -15426,7 +15518,7 @@ func awsAwsjson11_deserializeOpDocumentListAccountSettingsOutput(v **ListAccount if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "settings": @@ -15476,7 +15568,7 @@ func awsAwsjson11_deserializeOpDocumentListAttributesOutput(v **ListAttributesOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -15521,7 +15613,7 @@ func awsAwsjson11_deserializeOpDocumentListClustersOutput(v **ListClustersOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -15566,7 +15658,7 @@ func awsAwsjson11_deserializeOpDocumentListContainerInstancesOutput(v **ListCont if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -15606,7 +15698,7 @@ func awsAwsjson11_deserializeOpDocumentListServicesOutput(v **ListServicesOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "serviceArns": @@ -15692,7 +15784,7 @@ func awsAwsjson11_deserializeOpDocumentListTaskDefinitionFamiliesOutput(v **List if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -15732,7 +15824,7 @@ func awsAwsjson11_deserializeOpDocumentListTaskDefinitionsOutput(v **ListTaskDef if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "taskDefinitionArns": @@ -15777,7 +15869,7 @@ func awsAwsjson11_deserializeOpDocumentListTasksOutput(v **ListTasksOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "taskArns": @@ -16161,7 +16253,7 @@ func awsAwsjson11_deserializeOpDocumentSubmitAttachmentStateChangesOutput(v **Su if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Acknowledgment = &jtv + sv.Acknowledgment = ptr.String(jtv) } default: @@ -16201,7 +16293,7 @@ func awsAwsjson11_deserializeOpDocumentSubmitContainerStateChangeOutput(v **Subm if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Acknowledgment = &jtv + sv.Acknowledgment = ptr.String(jtv) } default: @@ -16241,7 +16333,7 @@ func awsAwsjson11_deserializeOpDocumentSubmitTaskStateChangeOutput(v **SubmitTas if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Acknowledgment = &jtv + sv.Acknowledgment = ptr.String(jtv) } default: diff --git a/service/ecs/go.mod b/service/ecs/go.mod index 770a0cff6af..48d46482876 100644 --- a/service/ecs/go.mod +++ b/service/ecs/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/ecs go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/ecs/serializers.go b/service/ecs/serializers.go index fab0ee2486c..829d16303a5 100644 --- a/service/ecs/serializers.go +++ b/service/ecs/serializers.go @@ -2285,17 +2285,13 @@ func awsAwsjson11_serializeDocumentAttachmentStateChange(v *types.AttachmentStat return nil } -func awsAwsjson11_serializeDocumentAttachmentStateChanges(v []*types.AttachmentStateChange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttachmentStateChanges(v []types.AttachmentStateChange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAttachmentStateChange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAttachmentStateChange(&v[i], av); err != nil { return err } } @@ -2329,17 +2325,13 @@ func awsAwsjson11_serializeDocumentAttribute(v *types.Attribute, value smithyjso return nil } -func awsAwsjson11_serializeDocumentAttributes(v []*types.Attribute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttributes(v []types.Attribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAttribute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAttribute(&v[i], av); err != nil { return err } } @@ -2407,17 +2399,13 @@ func awsAwsjson11_serializeDocumentCapacityProviderFieldList(v []types.CapacityP return nil } -func awsAwsjson11_serializeDocumentCapacityProviderStrategy(v []*types.CapacityProviderStrategyItem, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCapacityProviderStrategy(v []types.CapacityProviderStrategyItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCapacityProviderStrategyItem(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCapacityProviderStrategyItem(&v[i], av); err != nil { return err } } @@ -2428,9 +2416,9 @@ func awsAwsjson11_serializeDocumentCapacityProviderStrategyItem(v *types.Capacit object := value.Object() defer object.Close() - if v.Base != nil { + if v.Base != 0 { ok := object.Key("base") - ok.Integer(*v.Base) + ok.Integer(v.Base) } if v.CapacityProvider != nil { @@ -2438,9 +2426,9 @@ func awsAwsjson11_serializeDocumentCapacityProviderStrategyItem(v *types.Capacit ok.String(*v.CapacityProvider) } - if v.Weight != nil { + if v.Weight != 0 { ok := object.Key("weight") - ok.Integer(*v.Weight) + ok.Integer(v.Weight) } return nil @@ -2474,17 +2462,13 @@ func awsAwsjson11_serializeDocumentClusterSetting(v *types.ClusterSetting, value return nil } -func awsAwsjson11_serializeDocumentClusterSettings(v []*types.ClusterSetting, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentClusterSettings(v []types.ClusterSetting, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentClusterSetting(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentClusterSetting(&v[i], av); err != nil { return err } } @@ -2513,9 +2497,9 @@ func awsAwsjson11_serializeDocumentContainerDefinition(v *types.ContainerDefinit } } - if v.Cpu != nil { + if v.Cpu != 0 { ok := object.Key("cpu") - ok.Integer(*v.Cpu) + ok.Integer(v.Cpu) } if v.DependsOn != nil { @@ -2750,34 +2734,26 @@ func awsAwsjson11_serializeDocumentContainerDefinition(v *types.ContainerDefinit return nil } -func awsAwsjson11_serializeDocumentContainerDefinitions(v []*types.ContainerDefinition, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentContainerDefinitions(v []types.ContainerDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentContainerDefinition(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentContainerDefinition(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentContainerDependencies(v []*types.ContainerDependency, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentContainerDependencies(v []types.ContainerDependency, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentContainerDependency(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentContainerDependency(&v[i], av); err != nil { return err } } @@ -2867,17 +2843,13 @@ func awsAwsjson11_serializeDocumentContainerOverride(v *types.ContainerOverride, return nil } -func awsAwsjson11_serializeDocumentContainerOverrides(v []*types.ContainerOverride, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentContainerOverrides(v []types.ContainerOverride, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentContainerOverride(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentContainerOverride(&v[i], av); err != nil { return err } } @@ -2928,17 +2900,13 @@ func awsAwsjson11_serializeDocumentContainerStateChange(v *types.ContainerStateC return nil } -func awsAwsjson11_serializeDocumentContainerStateChanges(v []*types.ContainerStateChange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentContainerStateChanges(v []types.ContainerStateChange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentContainerStateChange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentContainerStateChange(&v[i], av); err != nil { return err } } @@ -3009,34 +2977,26 @@ func awsAwsjson11_serializeDocumentDeviceCgroupPermissions(v []types.DeviceCgrou return nil } -func awsAwsjson11_serializeDocumentDevicesList(v []*types.Device, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDevicesList(v []types.Device, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDevice(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDevice(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentDockerLabelsMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDockerLabelsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3145,34 +3105,26 @@ func awsAwsjson11_serializeDocumentEnvironmentFile(v *types.EnvironmentFile, val return nil } -func awsAwsjson11_serializeDocumentEnvironmentFiles(v []*types.EnvironmentFile, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEnvironmentFiles(v []types.EnvironmentFile, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEnvironmentFile(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEnvironmentFile(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentEnvironmentVariables(v []*types.KeyValuePair, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEnvironmentVariables(v []types.KeyValuePair, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentKeyValuePair(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentKeyValuePair(&v[i], av); err != nil { return err } } @@ -3198,17 +3150,13 @@ func awsAwsjson11_serializeDocumentFirelensConfiguration(v *types.FirelensConfig return nil } -func awsAwsjson11_serializeDocumentFirelensConfigurationOptionsMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFirelensConfigurationOptionsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3264,17 +3212,13 @@ func awsAwsjson11_serializeDocumentHostEntry(v *types.HostEntry, value smithyjso return nil } -func awsAwsjson11_serializeDocumentHostEntryList(v []*types.HostEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHostEntryList(v []types.HostEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentHostEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentHostEntry(&v[i], av); err != nil { return err } } @@ -3327,34 +3271,26 @@ func awsAwsjson11_serializeDocumentInferenceAcceleratorOverride(v *types.Inferen return nil } -func awsAwsjson11_serializeDocumentInferenceAcceleratorOverrides(v []*types.InferenceAcceleratorOverride, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInferenceAcceleratorOverrides(v []types.InferenceAcceleratorOverride, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInferenceAcceleratorOverride(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInferenceAcceleratorOverride(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentInferenceAccelerators(v []*types.InferenceAccelerator, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInferenceAccelerators(v []types.InferenceAccelerator, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInferenceAccelerator(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInferenceAccelerator(&v[i], av); err != nil { return err } } @@ -3474,17 +3410,13 @@ func awsAwsjson11_serializeDocumentLoadBalancer(v *types.LoadBalancer, value smi return nil } -func awsAwsjson11_serializeDocumentLoadBalancers(v []*types.LoadBalancer, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLoadBalancers(v []types.LoadBalancer, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentLoadBalancer(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentLoadBalancer(&v[i], av); err != nil { return err } } @@ -3517,17 +3449,13 @@ func awsAwsjson11_serializeDocumentLogConfiguration(v *types.LogConfiguration, v return nil } -func awsAwsjson11_serializeDocumentLogConfigurationOptionsMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLogConfigurationOptionsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3581,17 +3509,13 @@ func awsAwsjson11_serializeDocumentMountPoint(v *types.MountPoint, value smithyj return nil } -func awsAwsjson11_serializeDocumentMountPointList(v []*types.MountPoint, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMountPointList(v []types.MountPoint, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMountPoint(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMountPoint(&v[i], av); err != nil { return err } } @@ -3625,17 +3549,13 @@ func awsAwsjson11_serializeDocumentNetworkBinding(v *types.NetworkBinding, value return nil } -func awsAwsjson11_serializeDocumentNetworkBindings(v []*types.NetworkBinding, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNetworkBindings(v []types.NetworkBinding, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentNetworkBinding(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentNetworkBinding(&v[i], av); err != nil { return err } } @@ -3673,34 +3593,26 @@ func awsAwsjson11_serializeDocumentPlacementConstraint(v *types.PlacementConstra return nil } -func awsAwsjson11_serializeDocumentPlacementConstraints(v []*types.PlacementConstraint, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPlacementConstraints(v []types.PlacementConstraint, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPlacementConstraint(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPlacementConstraint(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentPlacementStrategies(v []*types.PlacementStrategy, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPlacementStrategies(v []types.PlacementStrategy, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPlacementStrategy(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPlacementStrategy(&v[i], av); err != nil { return err } } @@ -3741,17 +3653,13 @@ func awsAwsjson11_serializeDocumentPlatformDevice(v *types.PlatformDevice, value return nil } -func awsAwsjson11_serializeDocumentPlatformDevices(v []*types.PlatformDevice, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPlatformDevices(v []types.PlatformDevice, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPlatformDevice(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPlatformDevice(&v[i], av); err != nil { return err } } @@ -3780,17 +3688,13 @@ func awsAwsjson11_serializeDocumentPortMapping(v *types.PortMapping, value smith return nil } -func awsAwsjson11_serializeDocumentPortMappingList(v []*types.PortMapping, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPortMappingList(v []types.PortMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPortMapping(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPortMapping(&v[i], av); err != nil { return err } } @@ -3821,17 +3725,13 @@ func awsAwsjson11_serializeDocumentProxyConfiguration(v *types.ProxyConfiguratio return nil } -func awsAwsjson11_serializeDocumentProxyConfigurationProperties(v []*types.KeyValuePair, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProxyConfigurationProperties(v []types.KeyValuePair, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentKeyValuePair(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentKeyValuePair(&v[i], av); err != nil { return err } } @@ -3854,19 +3754,19 @@ func awsAwsjson11_serializeDocumentResource(v *types.Resource, value smithyjson. object := value.Object() defer object.Close() - if v.DoubleValue != nil { + if v.DoubleValue != 0 { ok := object.Key("doubleValue") - ok.Double(*v.DoubleValue) + ok.Double(v.DoubleValue) } - if v.IntegerValue != nil { + if v.IntegerValue != 0 { ok := object.Key("integerValue") - ok.Integer(*v.IntegerValue) + ok.Integer(v.IntegerValue) } - if v.LongValue != nil { + if v.LongValue != 0 { ok := object.Key("longValue") - ok.Long(*v.LongValue) + ok.Long(v.LongValue) } if v.Name != nil { @@ -3906,34 +3806,26 @@ func awsAwsjson11_serializeDocumentResourceRequirement(v *types.ResourceRequirem return nil } -func awsAwsjson11_serializeDocumentResourceRequirements(v []*types.ResourceRequirement, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceRequirements(v []types.ResourceRequirement, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentResourceRequirement(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentResourceRequirement(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentResources(v []*types.Resource, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResources(v []types.Resource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentResource(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentResource(&v[i], av); err != nil { return err } } @@ -3949,9 +3841,9 @@ func awsAwsjson11_serializeDocumentScale(v *types.Scale, value smithyjson.Value) ok.String(string(v.Unit)) } - if v.Value != nil { + if v.Value != 0 { ok := object.Key("value") - ok.Double(*v.Value) + ok.Double(v.Value) } return nil @@ -3974,17 +3866,13 @@ func awsAwsjson11_serializeDocumentSecret(v *types.Secret, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentSecretList(v []*types.Secret, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecretList(v []types.Secret, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSecret(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSecret(&v[i], av); err != nil { return err } } @@ -4002,17 +3890,13 @@ func awsAwsjson11_serializeDocumentServiceFieldList(v []types.ServiceField, valu return nil } -func awsAwsjson11_serializeDocumentServiceRegistries(v []*types.ServiceRegistry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServiceRegistries(v []types.ServiceRegistry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentServiceRegistry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentServiceRegistry(&v[i], av); err != nil { return err } } @@ -4046,32 +3930,24 @@ func awsAwsjson11_serializeDocumentServiceRegistry(v *types.ServiceRegistry, val return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentStringMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -4093,17 +3969,13 @@ func awsAwsjson11_serializeDocumentSystemControl(v *types.SystemControl, value s return nil } -func awsAwsjson11_serializeDocumentSystemControls(v []*types.SystemControl, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSystemControls(v []types.SystemControl, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSystemControl(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSystemControl(&v[i], av); err != nil { return err } } @@ -4127,32 +3999,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -4187,17 +4051,13 @@ func awsAwsjson11_serializeDocumentTaskDefinitionPlacementConstraint(v *types.Ta return nil } -func awsAwsjson11_serializeDocumentTaskDefinitionPlacementConstraints(v []*types.TaskDefinitionPlacementConstraint, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTaskDefinitionPlacementConstraints(v []types.TaskDefinitionPlacementConstraint, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTaskDefinitionPlacementConstraint(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTaskDefinitionPlacementConstraint(&v[i], av); err != nil { return err } } @@ -4283,25 +4143,21 @@ func awsAwsjson11_serializeDocumentTmpfs(v *types.Tmpfs, value smithyjson.Value) } } - if v.Size != nil { + if v.Size != 0 { ok := object.Key("size") - ok.Integer(*v.Size) + ok.Integer(v.Size) } return nil } -func awsAwsjson11_serializeDocumentTmpfsList(v []*types.Tmpfs, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTmpfsList(v []types.Tmpfs, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTmpfs(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTmpfs(&v[i], av); err != nil { return err } } @@ -4312,9 +4168,9 @@ func awsAwsjson11_serializeDocumentUlimit(v *types.Ulimit, value smithyjson.Valu object := value.Object() defer object.Close() - if v.HardLimit != nil { + if v.HardLimit != 0 { ok := object.Key("hardLimit") - ok.Integer(*v.HardLimit) + ok.Integer(v.HardLimit) } if len(v.Name) > 0 { @@ -4322,25 +4178,21 @@ func awsAwsjson11_serializeDocumentUlimit(v *types.Ulimit, value smithyjson.Valu ok.String(string(v.Name)) } - if v.SoftLimit != nil { + if v.SoftLimit != 0 { ok := object.Key("softLimit") - ok.Integer(*v.SoftLimit) + ok.Integer(v.SoftLimit) } return nil } -func awsAwsjson11_serializeDocumentUlimitList(v []*types.Ulimit, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentUlimitList(v []types.Ulimit, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentUlimit(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentUlimit(&v[i], av); err != nil { return err } } @@ -4419,34 +4271,26 @@ func awsAwsjson11_serializeDocumentVolumeFrom(v *types.VolumeFrom, value smithyj return nil } -func awsAwsjson11_serializeDocumentVolumeFromList(v []*types.VolumeFrom, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVolumeFromList(v []types.VolumeFrom, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentVolumeFrom(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentVolumeFrom(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentVolumeList(v []*types.Volume, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVolumeList(v []types.Volume, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentVolume(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentVolume(&v[i], av); err != nil { return err } } @@ -4559,9 +4403,9 @@ func awsAwsjson11_serializeOpDocumentCreateServiceInput(v *CreateServiceInput, v ok.Integer(*v.DesiredCount) } - if v.EnableECSManagedTags != nil { + if v.EnableECSManagedTags { ok := object.Key("enableECSManagedTags") - ok.Boolean(*v.EnableECSManagedTags) + ok.Boolean(v.EnableECSManagedTags) } if v.HealthCheckGracePeriodSeconds != nil { @@ -5077,14 +4921,14 @@ func awsAwsjson11_serializeOpDocumentListAccountSettingsInput(v *ListAccountSett object := value.Object() defer object.Close() - if v.EffectiveSettings != nil { + if v.EffectiveSettings { ok := object.Key("effectiveSettings") - ok.Boolean(*v.EffectiveSettings) + ok.Boolean(v.EffectiveSettings) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if len(v.Name) > 0 { @@ -5614,9 +5458,9 @@ func awsAwsjson11_serializeOpDocumentRunTaskInput(v *RunTaskInput, value smithyj ok.Integer(*v.Count) } - if v.EnableECSManagedTags != nil { + if v.EnableECSManagedTags { ok := object.Key("enableECSManagedTags") - ok.Boolean(*v.EnableECSManagedTags) + ok.Boolean(v.EnableECSManagedTags) } if v.Group != nil { @@ -5708,9 +5552,9 @@ func awsAwsjson11_serializeOpDocumentStartTaskInput(v *StartTaskInput, value smi } } - if v.EnableECSManagedTags != nil { + if v.EnableECSManagedTags { ok := object.Key("enableECSManagedTags") - ok.Boolean(*v.EnableECSManagedTags) + ok.Boolean(v.EnableECSManagedTags) } if v.Group != nil { @@ -6034,9 +5878,9 @@ func awsAwsjson11_serializeOpDocumentUpdateServiceInput(v *UpdateServiceInput, v ok.Integer(*v.DesiredCount) } - if v.ForceNewDeployment != nil { + if v.ForceNewDeployment { ok := object.Key("forceNewDeployment") - ok.Boolean(*v.ForceNewDeployment) + ok.Boolean(v.ForceNewDeployment) } if v.HealthCheckGracePeriodSeconds != nil { diff --git a/service/ecs/types/types.go b/service/ecs/types/types.go index c1fcd921602..dc953a7a2e0 100644 --- a/service/ecs/types/types.go +++ b/service/ecs/types/types.go @@ -12,7 +12,7 @@ type Attachment struct { // Details of the attachment. For elastic network interfaces, this includes the // network interface ID, the MAC address, the subnet ID, and the private IPv4 // address. - Details []*KeyValuePair + Details []KeyValuePair // The unique identifier for the attachment. Id *string @@ -101,7 +101,7 @@ type AwsVpcConfiguration struct { // from the same VPC. // // This member is required. - Subnets []*string + Subnets []string // Whether the task's elastic network interface receives a public IP address. The // default value is DISABLED. @@ -111,7 +111,7 @@ type AwsVpcConfiguration struct { // security group, the default security group for the VPC is used. There is a limit // of 5 security groups that can be specified per AwsVpcConfiguration. All // specified security groups must be from the same VPC. - SecurityGroups []*string + SecurityGroups []string } // The details of a capacity provider. @@ -159,7 +159,7 @@ type CapacityProvider struct { // of such as a prefix for either keys or values as it is reserved for AWS use. You // cannot edit or delete tag keys or values with this prefix. Tags with this prefix // do not count against your tags per resource limit. - Tags []*Tag + Tags []Tag // The update status of the capacity provider. The following are the possible // states that will be returned. DELETE_IN_PROGRESS The capacity provider is in the @@ -185,7 +185,7 @@ type CapacityProviderStrategyItem struct { // The base value designates how many tasks, at a minimum, to run on the specified // capacity provider. Only one capacity provider in a capacity provider strategy // can have a base defined. - Base *int32 + Base int32 // The weight value designates the relative percentage of the total number of tasks // launched that should use the specified capacity provider. For example, if you @@ -195,7 +195,7 @@ type CapacityProviderStrategyItem struct { // capacityProviderA and a weight of 4 for capacityProviderB, then for every one // task that is run using capacityProviderA, four tasks would use // capacityProviderB. - Weight *int32 + Weight int32 } // A regional grouping of one or more container instances on which you can run task @@ -206,12 +206,12 @@ type Cluster struct { // The number of services that are running on the cluster in an ACTIVE state. You // can view these services with ListServices. - ActiveServicesCount *int32 + ActiveServicesCount int32 // The resources attached to a cluster. When using a capacity provider with a // cluster, the Auto Scaling plan that is created will be returned as a cluster // attachment. - Attachments []*Attachment + Attachments []Attachment // The status of the capacity providers associated with the cluster. The following // are the states that will be returned: UPDATE_IN_PROGRESS The available capacity @@ -221,7 +221,7 @@ type Cluster struct { AttachmentsStatus *string // The capacity providers associated with the cluster. - CapacityProviders []*string + CapacityProviders []string // The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the // arn:aws:ecs namespace, followed by the Region of the cluster, the AWS account ID @@ -235,21 +235,21 @@ type Cluster struct { // The default capacity provider strategy for the cluster. When services or tasks // are run in the cluster with no launch type or capacity provider strategy // specified, the default capacity provider strategy is used. - DefaultCapacityProviderStrategy []*CapacityProviderStrategyItem + DefaultCapacityProviderStrategy []CapacityProviderStrategyItem // The number of tasks in the cluster that are in the PENDING state. - PendingTasksCount *int32 + PendingTasksCount int32 // The number of container instances registered into the cluster. This includes // container instances in both ACTIVE and DRAINING status. - RegisteredContainerInstancesCount *int32 + RegisteredContainerInstancesCount int32 // The number of tasks in the cluster that are in the RUNNING state. - RunningTasksCount *int32 + RunningTasksCount int32 // The settings for the cluster. This parameter indicates whether CloudWatch // Container Insights is enabled or disabled for a cluster. - Settings []*ClusterSetting + Settings []ClusterSetting // Additional information about your clusters that are separated by launch type, // including: @@ -272,7 +272,7 @@ type Cluster struct { // // * // drainingFargateServiceCount - Statistics []*KeyValuePair + Statistics []KeyValuePair // The status of the cluster. The following are the possible states that will be // returned. ACTIVE The cluster is ready to accept tasks and if applicable you can @@ -316,7 +316,7 @@ type Cluster struct { // of such as a prefix for either keys or values as it is reserved for AWS use. You // cannot edit or delete tag keys or values with this prefix. Tags with this prefix // do not count against your tags per resource limit. - Tags []*Tag + Tags []Tag } // The settings to use when creating a cluster. This parameter is used to enable @@ -350,7 +350,7 @@ type Container struct { ExitCode *int32 // The IDs of each GPU assigned to the container. - GpuIds []*string + GpuIds []string // The health status of the container. If health checks are not configured for this // container in its task definition, then it reports the health status as UNKNOWN. @@ -376,10 +376,10 @@ type Container struct { Name *string // The network bindings associated with the container. - NetworkBindings []*NetworkBinding + NetworkBindings []NetworkBinding // The network interfaces associated with the container. - NetworkInterfaces []*NetworkInterface + NetworkInterfaces []NetworkInterface // A short (255 max characters) human-readable string to provide additional details // about a running or stopped container. @@ -404,7 +404,7 @@ type ContainerDefinition struct { // For more information, see https://docs.docker.com/engine/reference/builder/#cmd // (https://docs.docker.com/engine/reference/builder/#cmd). If there are multiple // arguments, each argument should be a separated string in the array. - Command []*string + Command []string // The number of cpu units reserved for the container. This parameter maps to // CpuShares in the Create a container @@ -448,7 +448,7 @@ type ContainerDefinition struct { // On Windows container instances, the CPU limit is // enforced as an absolute limit, or a quota. Windows containers only have access // to the specified amount of CPU that is described in the task definition. - Cpu *int32 + Cpu int32 // The dependencies defined for container startup and shutdown. A container can // contain multiple dependencies. When a dependency is defined for container @@ -467,7 +467,7 @@ type ContainerDefinition struct { // in the Amazon Elastic Container Service Developer Guide. For tasks using the // Fargate launch type, the task or service requires platform version 1.3.0 or // later. - DependsOn []*ContainerDependency + DependsOn []ContainerDependency // When this parameter is true, networking is disabled within the container. This // parameter maps to NetworkDisabled in the Create a container @@ -483,7 +483,7 @@ type ContainerDefinition struct { // --dns-search option to docker run // (https://docs.docker.com/engine/reference/run/). This parameter is not supported // for Windows containers. - DnsSearchDomains []*string + DnsSearchDomains []string // A list of DNS servers that are presented to the container. This parameter maps // to Dns in the Create a container @@ -491,7 +491,7 @@ type ContainerDefinition struct { // the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and the --dns // option to docker run (https://docs.docker.com/engine/reference/run/). This // parameter is not supported for Windows containers. - DnsServers []*string + DnsServers []string // A key/value map of labels to add to the container. This parameter maps to Labels // in the Create a container @@ -502,7 +502,7 @@ type ContainerDefinition struct { // container instance. To check the Docker Remote API version on your container // instance, log in to your container instance and run the following command: sudo // docker version --format '{{.Server.APIVersion}}' - DockerLabels map[string]*string + DockerLabels map[string]string // A list of strings to provide custom labels for SELinux and AppArmor multi-level // security systems. This field is not valid for containers in tasks using the @@ -523,7 +523,7 @@ type ContainerDefinition struct { // ECS Container Agent Configuration // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) // in the Amazon Elastic Container Service Developer Guide. - DockerSecurityOptions []*string + DockerSecurityOptions []string // Early versions of the Amazon ECS container agent do not properly handle // entryPoint parameters. If you have problems using entryPoint, update your @@ -536,7 +536,7 @@ type ContainerDefinition struct { // (https://docs.docker.com/engine/reference/run/). For more information, see // https://docs.docker.com/engine/reference/builder/#entrypoint // (https://docs.docker.com/engine/reference/builder/#entrypoint). - EntryPoint []*string + EntryPoint []string // The environment variables to pass to a container. This parameter maps to Env in // the Create a container @@ -545,7 +545,7 @@ type ContainerDefinition struct { // option to docker run (https://docs.docker.com/engine/reference/run/). We do not // recommend using plaintext environment variables for sensitive information, such // as credential data. - Environment []*KeyValuePair + Environment []KeyValuePair // A list of files containing the environment variables to pass to a container. // This parameter maps to the --env-file option to docker run @@ -564,7 +564,7 @@ type ContainerDefinition struct { // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html) // in the Amazon Elastic Container Service Developer Guide. This field is not valid // for containers in tasks using the Fargate launch type. - EnvironmentFiles []*EnvironmentFile + EnvironmentFiles []EnvironmentFile // If the essential parameter of a container is marked as true, and that container // fails or stops for any reason, all other containers that are part of the task @@ -586,7 +586,7 @@ type ContainerDefinition struct { // --add-host option to docker run (https://docs.docker.com/engine/reference/run/). // This parameter is not supported for Windows containers or tasks that use the // awsvpc network mode. - ExtraHosts []*HostEntry + ExtraHosts []HostEntry // The FireLens configuration for the container. This is used to specify and // configure a log router for container logs. For more information, see Custom Log @@ -669,7 +669,7 @@ type ContainerDefinition struct { // collocated on a single container instance may be able to communicate with each // other without requiring links or host port mappings. Network isolation is // achieved on the container instance using security groups and VPC settings. - Links []*string + Links []string // Linux-specific modifications that are applied to the container, such as Linux // kernel capabilities. For more information see KernelCapabilities. This parameter @@ -757,7 +757,7 @@ type ContainerDefinition struct { // Windows containers can mount whole directories on the same drive as // $env:ProgramData. Windows containers cannot mount directories on a different // drive, and mount point cannot be across drives. - MountPoints []*MountPoint + MountPoints []MountPoint // The name of a container. If you are linking multiple containers together in a // task definition, the name of one container can be entered in the links of @@ -788,7 +788,7 @@ type ContainerDefinition struct { // container description for a selected task in the Amazon ECS console. The // assignments are also visible in the networkBindings section DescribeTasks // responses. - PortMappings []*PortMapping + PortMappings []PortMapping // When this parameter is true, the container is given elevated privileges on the // host container instance (similar to the root user). This parameter maps to @@ -821,13 +821,13 @@ type ContainerDefinition struct { // The type and amount of a resource to assign to a container. The only supported // resource is a GPU. - ResourceRequirements []*ResourceRequirement + ResourceRequirements []ResourceRequirement // The secrets to pass to the container. For more information, see Specifying // Sensitive Data // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html) // in the Amazon Elastic Container Service Developer Guide. - Secrets []*Secret + Secrets []Secret // Time duration (in seconds) to wait before giving up on resolving dependencies // for a container. For example, you specify two containers in a task definition @@ -893,7 +893,7 @@ type ContainerDefinition struct { // that is started last determines which systemControls parameters take effect. For // tasks that use the host network mode, it changes the container instance's // namespaced kernel parameters as well as the containers. - SystemControls []*SystemControl + SystemControls []SystemControl // A list of ulimits to set in the container. If a ulimit value is specified in a // task definition, it will override the default values set by Docker. This @@ -907,7 +907,7 @@ type ContainerDefinition struct { // in to your container instance and run the following command: sudo docker version // --format '{{.Server.APIVersion}}' This parameter is not supported for Windows // containers. - Ulimits []*Ulimit + Ulimits []Ulimit // The user name to use inside the container. This parameter maps to User in the // Create a container @@ -939,7 +939,7 @@ type ContainerDefinition struct { // the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and the // --volumes-from option to docker run // (https://docs.docker.com/engine/reference/run/). - VolumesFrom []*VolumeFrom + VolumesFrom []VolumeFrom // The working directory in which to run commands inside the container. This // parameter maps to WorkingDir in the Create a container @@ -1005,7 +1005,7 @@ type ContainerInstance struct { // This parameter returns true if the agent is connected to Amazon ECS. Registered // instances with an agent that may be unhealthy or stopped return false. Only // instances connected to an agent can accept placement requests. - AgentConnected *bool + AgentConnected bool // The status of the most recent agent update. If an update has never been // requested, this value is NULL. @@ -1013,12 +1013,12 @@ type ContainerInstance struct { // The resources attached to a container instance, such as elastic network // interfaces. - Attachments []*Attachment + Attachments []Attachment // The attributes set for the container instance, either by the Amazon ECS // container agent at instance registration or manually with the PutAttributes // operation. - Attributes []*Attribute + Attributes []Attribute // The capacity provider associated with the container instance. CapacityProviderName *string @@ -1034,7 +1034,7 @@ type ContainerInstance struct { Ec2InstanceId *string // The number of tasks on the container instance that are in the PENDING status. - PendingTasksCount *int32 + PendingTasksCount int32 // The Unix timestamp for when the container instance was registered. RegisteredAt *time.Time @@ -1046,7 +1046,7 @@ type ContainerInstance struct { // resource types, this parameter describes the ports that were reserved by the // Amazon ECS container agent when it registered the container instance with Amazon // ECS. - RegisteredResources []*Resource + RegisteredResources []Resource // For CPU and memory resource types, this parameter describes the remaining CPU // and memory that has not already been allocated to tasks and is therefore @@ -1055,10 +1055,10 @@ type ContainerInstance struct { // registration time) and any task containers that have reserved port mappings on // the host (with the host or bridge network mode). Any port that is not specified // here is available for new tasks. - RemainingResources []*Resource + RemainingResources []Resource // The number of tasks on the container instance that are in the RUNNING status. - RunningTasksCount *int32 + RunningTasksCount int32 // The status of the container instance. The valid values are REGISTERING, // REGISTRATION_FAILED, ACTIVE, INACTIVE, DEREGISTERING, or DRAINING. If your @@ -1109,7 +1109,7 @@ type ContainerInstance struct { // of such as a prefix for either keys or values as it is reserved for AWS use. You // cannot edit or delete tag keys or values with this prefix. Tags with this prefix // do not count against your tags per resource limit. - Tags []*Tag + Tags []Tag // The version counter for the container instance. Every time a container instance // experiences a change that triggers a CloudWatch event, the version counter is @@ -1118,7 +1118,7 @@ type ContainerInstance struct { // reported by the Amazon ECS APIs with the version reported in CloudWatch Events // for the container instance (inside the detail object) to verify that the version // in your event stream is current. - Version *int64 + Version int64 // The version information for the Amazon ECS container agent and Docker daemon // running on the container instance. @@ -1133,7 +1133,7 @@ type ContainerOverride struct { // The command to send to the container that overrides the default command from the // Docker image or the task definition. You must also specify a container name. - Command []*string + Command []string // The number of cpu units reserved for the container, instead of the default value // from the task definition. You must also specify a container name. @@ -1143,11 +1143,11 @@ type ContainerOverride struct { // variables, which are added to the container at launch, or you can override the // existing environment variables from the Docker image or the task definition. You // must also specify a container name. - Environment []*KeyValuePair + Environment []KeyValuePair // A list of files containing the environment variables to pass to a container, // instead of the value from the container definition. - EnvironmentFiles []*EnvironmentFile + EnvironmentFiles []EnvironmentFile // The hard limit (in MiB) of memory to present to the container, instead of the // default value from the task definition. If your container attempts to exceed the @@ -1165,7 +1165,7 @@ type ContainerOverride struct { // The type and amount of a resource to assign to a container, instead of the // default value from the task definition. The only supported resource is a GPU. - ResourceRequirements []*ResourceRequirement + ResourceRequirements []ResourceRequirement } // An object representing a change in state for a container. @@ -1182,7 +1182,7 @@ type ContainerStateChange struct { ImageDigest *string // Any network bindings associated with the container. - NetworkBindings []*NetworkBinding + NetworkBindings []NetworkBinding // The reason for the state change. Reason *string @@ -1199,14 +1199,14 @@ type ContainerStateChange struct { type Deployment struct { // The capacity provider strategy that the deployment is using. - CapacityProviderStrategy []*CapacityProviderStrategyItem + CapacityProviderStrategy []CapacityProviderStrategyItem // The Unix timestamp for when the service deployment was created. CreatedAt *time.Time // The most recent desired count of tasks that was specified for the service to // deploy or maintain. - DesiredCount *int32 + DesiredCount int32 // The ID of the deployment. Id *string @@ -1222,7 +1222,7 @@ type Deployment struct { NetworkConfiguration *NetworkConfiguration // The number of tasks in the deployment that are in the PENDING status. - PendingCount *int32 + PendingCount int32 // The platform version on which your tasks in the service are running. A platform // version is only specified for tasks using the Fargate launch type. If one is not @@ -1233,7 +1233,7 @@ type Deployment struct { PlatformVersion *string // The number of tasks in the deployment that are in the RUNNING status. - RunningCount *int32 + RunningCount int32 // The status of the deployment. The following describes each state: PRIMARY The // most recent deployment of a service. ACTIVE A service deployment that still has @@ -1364,7 +1364,7 @@ type DockerVolumeConfiguration struct { // the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and the xxopt // option to docker volume create // (https://docs.docker.com/engine/reference/commandline/volume_create/). - DriverOpts map[string]*string + DriverOpts map[string]string // Custom metadata to add to your Docker volume. This parameter maps to Labels in // the Create a volume @@ -1372,7 +1372,7 @@ type DockerVolumeConfiguration struct { // the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and the // xxlabel option to docker volume create // (https://docs.docker.com/engine/reference/commandline/volume_create/). - Labels map[string]*string + Labels map[string]string // The scope for the Docker volume that determines its lifecycle. Docker volumes // that are scoped to a task are automatically provisioned when the task starts and @@ -1502,7 +1502,7 @@ type FirelensConfiguration struct { // Configuration // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html#firelens-taskdef) // in the Amazon Elastic Container Service Developer Guide. - Options map[string]*string + Options map[string]string } // An object representing a container health check. Health check parameters that @@ -1568,7 +1568,7 @@ type HealthCheck struct { // the Docker Remote API (https://docs.docker.com/engine/api/v1.35/). // // This member is required. - Command []*string + Command []string // The time period in seconds between each health check execution. You may specify // between 5 and 300 seconds. The default value is 30 seconds. @@ -1682,7 +1682,7 @@ type KernelCapabilities struct { // "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | // "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | // "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM" - Add []*string + Add []string // The Linux capabilities for the container that have been removed from the default // configuration provided by Docker. This parameter maps to CapDrop in the Create a @@ -1697,7 +1697,7 @@ type KernelCapabilities struct { // "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | // "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | // "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM" - Drop []*string + Drop []string } // A key-value pair object. @@ -1729,7 +1729,7 @@ type LinuxParameters struct { // --device option to docker run (https://docs.docker.com/engine/reference/run/). // If you are using tasks that use the Fargate launch type, the devices parameter // is not supported. - Devices []*Device + Devices []Device // Run an init process inside the container that forwards signals and reaps // processes. This parameter maps to the --init option to docker run @@ -1772,7 +1772,7 @@ type LinuxParameters struct { // parameter maps to the --tmpfs option to docker run // (https://docs.docker.com/engine/reference/run/). If you are using tasks that use // the Fargate launch type, the tmpfs parameter is not supported. - Tmpfs []*Tmpfs + Tmpfs []Tmpfs } // The load balancer configuration to use with a service or task set. For specific @@ -1884,13 +1884,13 @@ type LogConfiguration struct { // check the Docker Remote API version on your container instance, log in to your // container instance and run the following command: sudo docker version --format // '{{.Server.APIVersion}}' - Options map[string]*string + Options map[string]string // The secrets to pass to the log configuration. For more information, see // Specifying Sensitive Data // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html) // in the Amazon Elastic Container Service Developer Guide. - SecretOptions []*Secret + SecretOptions []Secret } // The managed scaling settings for the Auto Scaling group capacity provider. When @@ -2141,7 +2141,7 @@ type ProxyConfiguration struct { // * EgressIgnoredIPs - (Required) The // egress traffic going to the specified IP addresses is ignored and not redirected // to the ProxyEgressPort. It can be an empty list. - Properties []*KeyValuePair + Properties []KeyValuePair // The proxy type. The only supported value is APPMESH. Type ProxyConfigurationType @@ -2165,14 +2165,14 @@ type Resource struct { // When the doubleValue type is set, the value of the resource must be a double // precision floating-point type. - DoubleValue *float64 + DoubleValue float64 // When the integerValue type is set, the value of the resource must be an integer. - IntegerValue *int32 + IntegerValue int32 // When the longValue type is set, the value of the resource must be an extended // precision floating-point type. - LongValue *int64 + LongValue int64 // The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP, or a // user-defined resource. @@ -2180,7 +2180,7 @@ type Resource struct { // When the stringSetValue type is set, the value of the resource must be a string // type. - StringSetValue []*string + StringSetValue []string // The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET. Type *string @@ -2221,7 +2221,7 @@ type Scale struct { // The value, specified as a percent total of a service's desiredCount, to scale // the task set. Accepted values are numbers between 0 and 100. - Value *float64 + Value float64 } // An object representing the secret to expose to your container. Secrets can be @@ -2260,7 +2260,7 @@ type Secret struct { type Service struct { // The capacity provider strategy associated with the service. - CapacityProviderStrategy []*CapacityProviderStrategyItem + CapacityProviderStrategy []CapacityProviderStrategyItem // The Amazon Resource Name (ARN) of the cluster that hosts the service. ClusterArn *string @@ -2281,22 +2281,22 @@ type Service struct { DeploymentController *DeploymentController // The current state of deployments for the service. - Deployments []*Deployment + Deployments []Deployment // The desired number of instantiations of the task definition to keep running on // the service. This value is specified when the service is created with // CreateService, and it can be modified with UpdateService. - DesiredCount *int32 + DesiredCount int32 // Specifies whether to enable Amazon ECS managed tags for the tasks in the // service. For more information, see Tagging Your Amazon ECS Resources // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) // in the Amazon Elastic Container Service Developer Guide. - EnableECSManagedTags *bool + EnableECSManagedTags bool // The event stream for your service. A maximum of 100 of the latest events are // displayed. - Events []*ServiceEvent + Events []ServiceEvent // The period of time, in seconds, that the Amazon ECS service scheduler ignores // unhealthy Elastic Load Balancing target health checks after a task has first @@ -2313,20 +2313,20 @@ type Service struct { // A list of Elastic Load Balancing load balancer objects, containing the load // balancer name, the container name (as it appears in a container definition), and // the container port to access from the load balancer. - LoadBalancers []*LoadBalancer + LoadBalancers []LoadBalancer // The VPC subnet and security group configuration for tasks that receive their own // elastic network interface by using the awsvpc networking mode. NetworkConfiguration *NetworkConfiguration // The number of tasks in the cluster that are in the PENDING state. - PendingCount *int32 + PendingCount int32 // The placement constraints for the tasks in the service. - PlacementConstraints []*PlacementConstraint + PlacementConstraints []PlacementConstraint // The placement strategy that determines how tasks for the service are placed. - PlacementStrategy []*PlacementStrategy + PlacementStrategy []PlacementStrategy // The platform version on which to run your service. A platform version is only // specified for tasks using the Fargate launch type. If one is not specified, the @@ -2346,7 +2346,7 @@ type Service struct { RoleArn *string // The number of tasks in the cluster that are in the RUNNING state. - RunningCount *int32 + RunningCount int32 // The scheduling strategy to use for the service. For more information, see // Services @@ -2382,7 +2382,7 @@ type Service struct { // The details of the service discovery registries to assign to this service. For // more information, see Service Discovery // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html). - ServiceRegistries []*ServiceRegistry + ServiceRegistries []ServiceRegistry // The status of the service. The valid values are ACTIVE, DRAINING, or INACTIVE. Status *string @@ -2415,7 +2415,7 @@ type Service struct { // of such as a prefix for either keys or values as it is reserved for AWS use. You // cannot edit or delete tag keys or values with this prefix. Tags with this prefix // do not count against your tags per resource limit. - Tags []*Tag + Tags []Tag // The task definition to use for tasks in the service. This value is specified // when the service is created with CreateService, and it can be modified with @@ -2426,7 +2426,7 @@ type Service struct { // EXTERNAL deployment. An Amazon ECS task set includes details such as the desired // number of tasks, how many tasks are running, and whether the task set serves // production traffic. - TaskSets []*TaskSet + TaskSets []TaskSet } // Details on an event associated with a service. @@ -2558,10 +2558,10 @@ type Task struct { // The Elastic Network Adapter associated with the task if the task uses the awsvpc // network mode. - Attachments []*Attachment + Attachments []Attachment // The attributes of the task - Attributes []*Attribute + Attributes []Attribute // The availability zone of the task. AvailabilityZone *string @@ -2582,7 +2582,7 @@ type Task struct { ContainerInstanceArn *string // The containers associated with the task. - Containers []*Container + Containers []Container // The number of CPU units used by the task as expressed in a task definition. It // can be expressed as an integer using CPU units, for example 1024. It can also be @@ -2639,7 +2639,7 @@ type Task struct { HealthStatus HealthStatus // The Elastic Inference accelerator associated with the task. - InferenceAccelerators []*InferenceAccelerator + InferenceAccelerators []InferenceAccelerator // The last known status of the task. For more information, see Task Lifecycle // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-lifecycle.html). @@ -2746,7 +2746,7 @@ type Task struct { // of such as a prefix for either keys or values as it is reserved for AWS use. You // cannot edit or delete tag keys or values with this prefix. Tags with this prefix // do not count against your tags per resource limit. - Tags []*Tag + Tags []Tag // The Amazon Resource Name (ARN) of the task. TaskArn *string @@ -2760,7 +2760,7 @@ type Task struct { // the version of a task reported by the Amazon ECS API actions with the version // reported in CloudWatch Events for the task (inside the detail object) to verify // that the version in your event stream is current. - Version *int64 + Version int64 } // The details of a task definition which describes the container and volume @@ -2780,7 +2780,7 @@ type TaskDefinition struct { // definition parameters and defaults, see Amazon ECS Task Definitions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html) // in the Amazon Elastic Container Service Developer Guide. - ContainerDefinitions []*ContainerDefinition + ContainerDefinitions []ContainerDefinition // The number of cpu units used by the task. If you are using the EC2 launch type, // this field is optional and any value can be used. If you are using the Fargate @@ -2822,7 +2822,7 @@ type TaskDefinition struct { Family *string // The Elastic Inference accelerator associated with the task. - InferenceAccelerators []*InferenceAccelerator + InferenceAccelerators []InferenceAccelerator // The IPC resource namespace to use for the containers in the task. The valid // values are host, task, or none. If host is specified, then all containers within @@ -2924,7 +2924,7 @@ type TaskDefinition struct { // An array of placement constraint objects to use for tasks. This field is not // valid if you are using the Fargate launch type for your task. - PlacementConstraints []*TaskDefinitionPlacementConstraint + PlacementConstraints []TaskDefinitionPlacementConstraint // The configuration details for the App Mesh proxy. Your Amazon ECS container // instances require at least version 1.26.0 of the container agent and at least @@ -2938,7 +2938,7 @@ type TaskDefinition struct { // The container instance attributes required by your task. This field is not valid // if you are using the Fargate launch type for your task. - RequiresAttributes []*Attribute + RequiresAttributes []Attribute // The launch type the task requires. If no value is specified, it will default to // EC2. Valid values include EC2 and FARGATE. @@ -2949,7 +2949,7 @@ type TaskDefinition struct { // the first time, the revision is 1. Each time that you register a new revision of // a task definition in the same family, the revision value always increases by // one, even if you have deregistered previous revisions in this family. - Revision *int32 + Revision int32 // The status of the task definition. Status TaskDefinitionStatus @@ -2976,7 +2976,7 @@ type TaskDefinition struct { // Definitions // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html) // in the Amazon Elastic Container Service Developer Guide. - Volumes []*Volume + Volumes []Volume } // An object representing a constraint on task placement in the task definition. @@ -3001,7 +3001,7 @@ type TaskDefinitionPlacementConstraint struct { type TaskOverride struct { // One or more container overrides sent to a task. - ContainerOverrides []*ContainerOverride + ContainerOverrides []ContainerOverride // The cpu override for the task. Cpu *string @@ -3011,7 +3011,7 @@ type TaskOverride struct { ExecutionRoleArn *string // The Elastic Inference accelerator override for the task. - InferenceAcceleratorOverrides []*InferenceAcceleratorOverride + InferenceAcceleratorOverrides []InferenceAcceleratorOverride // The memory override for the task. Memory *string @@ -3029,7 +3029,7 @@ type TaskOverride struct { type TaskSet struct { // The capacity provider strategy associated with the task set. - CapacityProviderStrategy []*CapacityProviderStrategyItem + CapacityProviderStrategy []CapacityProviderStrategyItem // The Amazon Resource Name (ARN) of the cluster that the service that hosts the // task set exists in. @@ -3039,7 +3039,7 @@ type TaskSet struct { // the service's desiredCount by the task set's scale percentage. The result is // always rounded up. For example, if the computed desired count is 1.2, it rounds // up to 2 tasks. - ComputedDesiredCount *int32 + ComputedDesiredCount int32 // The Unix timestamp for when the task set was created. CreatedAt *time.Time @@ -3061,7 +3061,7 @@ type TaskSet struct { LaunchType LaunchType // Details on a load balancer that is used with a task set. - LoadBalancers []*LoadBalancer + LoadBalancers []LoadBalancer // The network configuration for the task set. NetworkConfiguration *NetworkConfiguration @@ -3070,7 +3070,7 @@ type TaskSet struct { // deployment. A task in the PENDING state is preparing to enter the RUNNING state. // A task set enters the PENDING status when it launches for the first time or when // it is restarted after being in the STOPPED state. - PendingCount *int32 + PendingCount int32 // The platform version on which the tasks in the task set are running. A platform // version is only specified for tasks using the Fargate launch type. If one is not @@ -3082,7 +3082,7 @@ type TaskSet struct { // The number of tasks in the task set that are in the RUNNING status during a // deployment. A task in the RUNNING state is running and ready for use. - RunningCount *int32 + RunningCount int32 // A floating-point percentage of the desired number of tasks to place and keep // running in the task set. @@ -3094,7 +3094,7 @@ type TaskSet struct { // The details of the service discovery registries to assign to this task set. For // more information, see Service Discovery // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html). - ServiceRegistries []*ServiceRegistry + ServiceRegistries []ServiceRegistry // The stability status, which indicates whether the task set has reached a steady // state. If the following conditions are met, the task set will be in @@ -3157,7 +3157,7 @@ type TaskSet struct { // of such as a prefix for either keys or values as it is reserved for AWS use. You // cannot edit or delete tag keys or values with this prefix. Tags with this prefix // do not count against your tags per resource limit. - Tags []*Tag + Tags []Tag // The task definition the task set is using. TaskDefinition *string @@ -3180,7 +3180,7 @@ type Tmpfs struct { // The size (in MiB) of the tmpfs volume. // // This member is required. - Size *int32 + Size int32 // The list of tmpfs volume mount options. Valid values: "defaults" | "ro" | "rw" | // "suid" | "nosuid" | "dev" | "nodev" | "exec" | "noexec" | "sync" | "async" | @@ -3189,7 +3189,7 @@ type Tmpfs struct { // "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime" | // "norelatime" | "strictatime" | "nostrictatime" | "mode" | "uid" | "gid" | // "nr_inodes" | "nr_blocks" | "mpol" - MountOptions []*string + MountOptions []string } // The ulimit settings to pass to the container. @@ -3198,7 +3198,7 @@ type Ulimit struct { // The hard limit for the ulimit type. // // This member is required. - HardLimit *int32 + HardLimit int32 // The type of the ulimit. // @@ -3208,7 +3208,7 @@ type Ulimit struct { // The soft limit for the ulimit type. // // This member is required. - SoftLimit *int32 + SoftLimit int32 } // The Docker and Amazon ECS container agent version information about a container diff --git a/service/ecs/validators.go b/service/ecs/validators.go index 7630665ad1b..913500087d1 100644 --- a/service/ecs/validators.go +++ b/service/ecs/validators.go @@ -940,13 +940,13 @@ func validateAttachmentStateChange(v *types.AttachmentStateChange) error { } } -func validateAttachmentStateChanges(v []*types.AttachmentStateChange) error { +func validateAttachmentStateChanges(v []types.AttachmentStateChange) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AttachmentStateChanges"} for i := range v { - if err := validateAttachmentStateChange(v[i]); err != nil { + if err := validateAttachmentStateChange(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -972,13 +972,13 @@ func validateAttribute(v *types.Attribute) error { } } -func validateAttributes(v []*types.Attribute) error { +func validateAttributes(v []types.Attribute) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Attributes"} for i := range v { - if err := validateAttribute(v[i]); err != nil { + if err := validateAttribute(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1019,13 +1019,13 @@ func validateAwsVpcConfiguration(v *types.AwsVpcConfiguration) error { } } -func validateCapacityProviderStrategy(v []*types.CapacityProviderStrategyItem) error { +func validateCapacityProviderStrategy(v []types.CapacityProviderStrategyItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CapacityProviderStrategy"} for i := range v { - if err := validateCapacityProviderStrategyItem(v[i]); err != nil { + if err := validateCapacityProviderStrategyItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1118,13 +1118,13 @@ func validateContainerDefinition(v *types.ContainerDefinition) error { } } -func validateContainerDefinitions(v []*types.ContainerDefinition) error { +func validateContainerDefinitions(v []types.ContainerDefinition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ContainerDefinitions"} for i := range v { - if err := validateContainerDefinition(v[i]); err != nil { + if err := validateContainerDefinition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1135,13 +1135,13 @@ func validateContainerDefinitions(v []*types.ContainerDefinition) error { } } -func validateContainerDependencies(v []*types.ContainerDependency) error { +func validateContainerDependencies(v []types.ContainerDependency) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ContainerDependencies"} for i := range v { - if err := validateContainerDependency(v[i]); err != nil { + if err := validateContainerDependency(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1192,13 +1192,13 @@ func validateContainerOverride(v *types.ContainerOverride) error { } } -func validateContainerOverrides(v []*types.ContainerOverride) error { +func validateContainerOverrides(v []types.ContainerOverride) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ContainerOverrides"} for i := range v { - if err := validateContainerOverride(v[i]); err != nil { + if err := validateContainerOverride(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1239,13 +1239,13 @@ func validateDevice(v *types.Device) error { } } -func validateDevicesList(v []*types.Device) error { +func validateDevicesList(v []types.Device) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DevicesList"} for i := range v { - if err := validateDevice(v[i]); err != nil { + if err := validateDevice(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1289,13 +1289,13 @@ func validateEnvironmentFile(v *types.EnvironmentFile) error { } } -func validateEnvironmentFiles(v []*types.EnvironmentFile) error { +func validateEnvironmentFiles(v []types.EnvironmentFile) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "EnvironmentFiles"} for i := range v { - if err := validateEnvironmentFile(v[i]); err != nil { + if err := validateEnvironmentFile(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1354,13 +1354,13 @@ func validateHostEntry(v *types.HostEntry) error { } } -func validateHostEntryList(v []*types.HostEntry) error { +func validateHostEntryList(v []types.HostEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "HostEntryList"} for i := range v { - if err := validateHostEntry(v[i]); err != nil { + if err := validateHostEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1389,13 +1389,13 @@ func validateInferenceAccelerator(v *types.InferenceAccelerator) error { } } -func validateInferenceAccelerators(v []*types.InferenceAccelerator) error { +func validateInferenceAccelerators(v []types.InferenceAccelerator) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InferenceAccelerators"} for i := range v { - if err := validateInferenceAccelerator(v[i]); err != nil { + if err := validateInferenceAccelerator(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1483,13 +1483,13 @@ func validatePlatformDevice(v *types.PlatformDevice) error { } } -func validatePlatformDevices(v []*types.PlatformDevice) error { +func validatePlatformDevices(v []types.PlatformDevice) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PlatformDevices"} for i := range v { - if err := validatePlatformDevice(v[i]); err != nil { + if err := validatePlatformDevice(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1548,13 +1548,13 @@ func validateResourceRequirement(v *types.ResourceRequirement) error { } } -func validateResourceRequirements(v []*types.ResourceRequirement) error { +func validateResourceRequirements(v []types.ResourceRequirement) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceRequirements"} for i := range v { - if err := validateResourceRequirement(v[i]); err != nil { + if err := validateResourceRequirement(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1583,13 +1583,13 @@ func validateSecret(v *types.Secret) error { } } -func validateSecretList(v []*types.Secret) error { +func validateSecretList(v []types.Secret) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SecretList"} for i := range v { - if err := validateSecret(v[i]); err != nil { + if err := validateSecret(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1622,9 +1622,6 @@ func validateTmpfs(v *types.Tmpfs) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tmpfs"} - if v.Size == nil { - invalidParams.Add(smithy.NewErrParamRequired("Size")) - } if v.ContainerPath == nil { invalidParams.Add(smithy.NewErrParamRequired("ContainerPath")) } @@ -1635,13 +1632,13 @@ func validateTmpfs(v *types.Tmpfs) error { } } -func validateTmpfsList(v []*types.Tmpfs) error { +func validateTmpfsList(v []types.Tmpfs) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TmpfsList"} for i := range v { - if err := validateTmpfs(v[i]); err != nil { + if err := validateTmpfs(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1657,15 +1654,9 @@ func validateUlimit(v *types.Ulimit) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "Ulimit"} - if v.HardLimit == nil { - invalidParams.Add(smithy.NewErrParamRequired("HardLimit")) - } if len(v.Name) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Name")) } - if v.SoftLimit == nil { - invalidParams.Add(smithy.NewErrParamRequired("SoftLimit")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1673,13 +1664,13 @@ func validateUlimit(v *types.Ulimit) error { } } -func validateUlimitList(v []*types.Ulimit) error { +func validateUlimitList(v []types.Ulimit) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UlimitList"} for i := range v { - if err := validateUlimit(v[i]); err != nil { + if err := validateUlimit(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1707,13 +1698,13 @@ func validateVolume(v *types.Volume) error { } } -func validateVolumeList(v []*types.Volume) error { +func validateVolumeList(v []types.Volume) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "VolumeList"} for i := range v { - if err := validateVolume(v[i]); err != nil { + if err := validateVolume(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/efs/api_op_CreateAccessPoint.go b/service/efs/api_op_CreateAccessPoint.go index 0e5485ad4cd..d26c548e2fa 100644 --- a/service/efs/api_op_CreateAccessPoint.go +++ b/service/efs/api_op_CreateAccessPoint.go @@ -64,7 +64,7 @@ type CreateAccessPointInput struct { RootDirectory *types.RootDirectory // Creates tags associated with the access point. Each tag is a key-value pair. - Tags []*types.Tag + Tags []types.Tag } // Provides a description of an EFS file system access point. @@ -101,7 +101,7 @@ type CreateAccessPointOutput struct { RootDirectory *types.RootDirectory // The tags associated with the access point, presented as an array of Tag objects. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/efs/api_op_CreateFileSystem.go b/service/efs/api_op_CreateFileSystem.go index 5d9210a4ed0..35619765aba 100644 --- a/service/efs/api_op_CreateFileSystem.go +++ b/service/efs/api_op_CreateFileSystem.go @@ -127,7 +127,7 @@ type CreateFileSystemInput struct { // A value that specifies to create one or more tags associated with the file // system. Each tag is a user-defined key-value pair. Name your file system on // creation by including a "Key":"Name","Value":"{value}" key-value pair. - Tags []*types.Tag + Tags []types.Tag // The throughput mode for the file system to be created. There are two throughput // modes to choose from for your file system: bursting and provisioned. If you set @@ -169,7 +169,7 @@ type CreateFileSystemOutput struct { // information, see CreateMountTarget. // // This member is required. - NumberOfMountTargets *int32 + NumberOfMountTargets int32 // The AWS account that created the file system. If the file system was created by // an IAM user, the parent account to which the user belongs is the owner. @@ -198,7 +198,7 @@ type CreateFileSystemOutput struct { // The tags associated with the file system, presented as an array of Tag objects. // // This member is required. - Tags []*types.Tag + Tags []types.Tag // A Boolean value that, if true, indicates that the file system is encrypted. Encrypted *bool diff --git a/service/efs/api_op_CreateMountTarget.go b/service/efs/api_op_CreateMountTarget.go index c4d93469d77..fcd1aa1c98a 100644 --- a/service/efs/api_op_CreateMountTarget.go +++ b/service/efs/api_op_CreateMountTarget.go @@ -144,7 +144,7 @@ type CreateMountTargetInput struct { // Up to five VPC security group IDs, of the form sg-xxxxxxxx. These must be for // the same VPC as subnet specified. - SecurityGroups []*string + SecurityGroups []string } // Provides a description of a mount target. diff --git a/service/efs/api_op_CreateTags.go b/service/efs/api_op_CreateTags.go index 7ba26dab750..d452918500a 100644 --- a/service/efs/api_op_CreateTags.go +++ b/service/efs/api_op_CreateTags.go @@ -44,7 +44,7 @@ type CreateTagsInput struct { // An array of Tag objects to add. Each Tag object is a key-value pair. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type CreateTagsOutput struct { diff --git a/service/efs/api_op_DeleteTags.go b/service/efs/api_op_DeleteTags.go index d9886bf3589..199683e38c0 100644 --- a/service/efs/api_op_DeleteTags.go +++ b/service/efs/api_op_DeleteTags.go @@ -43,7 +43,7 @@ type DeleteTagsInput struct { // A list of tag keys to delete. // // This member is required. - TagKeys []*string + TagKeys []string } type DeleteTagsOutput struct { diff --git a/service/efs/api_op_DescribeAccessPoints.go b/service/efs/api_op_DescribeAccessPoints.go index dd87bdeeab4..15402d03d09 100644 --- a/service/efs/api_op_DescribeAccessPoints.go +++ b/service/efs/api_op_DescribeAccessPoints.go @@ -54,7 +54,7 @@ type DescribeAccessPointsInput struct { type DescribeAccessPointsOutput struct { // An array of access point descriptions. - AccessPoints []*types.AccessPointDescription + AccessPoints []types.AccessPointDescription // Present if there are more access points than returned in the response. You can // use the NextMarker in the subsequent request to fetch the additional diff --git a/service/efs/api_op_DescribeFileSystems.go b/service/efs/api_op_DescribeFileSystems.go index 9421a05aa33..c814b7b7d15 100644 --- a/service/efs/api_op_DescribeFileSystems.go +++ b/service/efs/api_op_DescribeFileSystems.go @@ -69,7 +69,7 @@ type DescribeFileSystemsInput struct { type DescribeFileSystemsOutput struct { // An array of file system descriptions. - FileSystems []*types.FileSystemDescription + FileSystems []types.FileSystemDescription // Present if provided by caller in the request (String). Marker *string diff --git a/service/efs/api_op_DescribeLifecycleConfiguration.go b/service/efs/api_op_DescribeLifecycleConfiguration.go index 3b1855248ef..f6003b6ecec 100644 --- a/service/efs/api_op_DescribeLifecycleConfiguration.go +++ b/service/efs/api_op_DescribeLifecycleConfiguration.go @@ -45,7 +45,7 @@ type DescribeLifecycleConfigurationOutput struct { // An array of lifecycle management policies. Currently, EFS supports a maximum of // one policy per file system. - LifecyclePolicies []*types.LifecyclePolicy + LifecyclePolicies []types.LifecyclePolicy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/efs/api_op_DescribeMountTargetSecurityGroups.go b/service/efs/api_op_DescribeMountTargetSecurityGroups.go index 7a634896355..63633e299d2 100644 --- a/service/efs/api_op_DescribeMountTargetSecurityGroups.go +++ b/service/efs/api_op_DescribeMountTargetSecurityGroups.go @@ -50,7 +50,7 @@ type DescribeMountTargetSecurityGroupsOutput struct { // An array of security groups. // // This member is required. - SecurityGroups []*string + SecurityGroups []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/efs/api_op_DescribeMountTargets.go b/service/efs/api_op_DescribeMountTargets.go index 180fec9e49b..325dea1204f 100644 --- a/service/efs/api_op_DescribeMountTargets.go +++ b/service/efs/api_op_DescribeMountTargets.go @@ -70,7 +70,7 @@ type DescribeMountTargetsOutput struct { // Returns the file system's mount targets as an array of MountTargetDescription // objects. - MountTargets []*types.MountTargetDescription + MountTargets []types.MountTargetDescription // If a value is present, there are more mount targets to return. In a subsequent // request, you can provide Marker in your request with this value to retrieve the diff --git a/service/efs/api_op_DescribeTags.go b/service/efs/api_op_DescribeTags.go index 6e0458ffc07..3f4daf26843 100644 --- a/service/efs/api_op_DescribeTags.go +++ b/service/efs/api_op_DescribeTags.go @@ -57,7 +57,7 @@ type DescribeTagsOutput struct { // Returns tags associated with the file system as an array of Tag objects. // // This member is required. - Tags []*types.Tag + Tags []types.Tag // If the request included a Marker, the response returns that value in this field. Marker *string diff --git a/service/efs/api_op_ListTagsForResource.go b/service/efs/api_op_ListTagsForResource.go index 6cda5136de5..ff2d51e764e 100644 --- a/service/efs/api_op_ListTagsForResource.go +++ b/service/efs/api_op_ListTagsForResource.go @@ -53,7 +53,7 @@ type ListTagsForResourceOutput struct { NextToken *string // An array of the tags for the specified EFS resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/efs/api_op_ModifyMountTargetSecurityGroups.go b/service/efs/api_op_ModifyMountTargetSecurityGroups.go index 185d68cf18c..4811f16eae4 100644 --- a/service/efs/api_op_ModifyMountTargetSecurityGroups.go +++ b/service/efs/api_op_ModifyMountTargetSecurityGroups.go @@ -48,7 +48,7 @@ type ModifyMountTargetSecurityGroupsInput struct { MountTargetId *string // An array of up to five VPC security group IDs. - SecurityGroups []*string + SecurityGroups []string } type ModifyMountTargetSecurityGroupsOutput struct { diff --git a/service/efs/api_op_PutFileSystemPolicy.go b/service/efs/api_op_PutFileSystemPolicy.go index 7f54b9fe454..7adbbf1960b 100644 --- a/service/efs/api_op_PutFileSystemPolicy.go +++ b/service/efs/api_op_PutFileSystemPolicy.go @@ -58,7 +58,7 @@ type PutFileSystemPolicyInput struct { // BypassPolicyLockoutSafetyCheck to True only when you intend to prevent the // principal that is making the request from making a subsequent // PutFileSystemPolicy request on the file system. The default value is False. - BypassPolicyLockoutSafetyCheck *bool + BypassPolicyLockoutSafetyCheck bool } type PutFileSystemPolicyOutput struct { diff --git a/service/efs/api_op_PutLifecycleConfiguration.go b/service/efs/api_op_PutLifecycleConfiguration.go index 14c3dcddc69..85b35c46230 100644 --- a/service/efs/api_op_PutLifecycleConfiguration.go +++ b/service/efs/api_op_PutLifecycleConfiguration.go @@ -64,14 +64,14 @@ type PutLifecycleConfigurationInput struct { // Infrequent Access storage class. // // This member is required. - LifecyclePolicies []*types.LifecyclePolicy + LifecyclePolicies []types.LifecyclePolicy } type PutLifecycleConfigurationOutput struct { // An array of lifecycle management policies. Currently, EFS supports a maximum of // one policy per file system. - LifecyclePolicies []*types.LifecyclePolicy + LifecyclePolicies []types.LifecyclePolicy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/efs/api_op_TagResource.go b/service/efs/api_op_TagResource.go index 3fd612f5403..7a92761bb5f 100644 --- a/service/efs/api_op_TagResource.go +++ b/service/efs/api_op_TagResource.go @@ -39,7 +39,7 @@ type TagResourceInput struct { // // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/efs/api_op_UntagResource.go b/service/efs/api_op_UntagResource.go index a8b1f8f57f8..f7497dfe858 100644 --- a/service/efs/api_op_UntagResource.go +++ b/service/efs/api_op_UntagResource.go @@ -39,7 +39,7 @@ type UntagResourceInput struct { // EFS resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/efs/api_op_UpdateFileSystem.go b/service/efs/api_op_UpdateFileSystem.go index dfe79eb42ec..c4b709e0165 100644 --- a/service/efs/api_op_UpdateFileSystem.go +++ b/service/efs/api_op_UpdateFileSystem.go @@ -78,7 +78,7 @@ type UpdateFileSystemOutput struct { // information, see CreateMountTarget. // // This member is required. - NumberOfMountTargets *int32 + NumberOfMountTargets int32 // The AWS account that created the file system. If the file system was created by // an IAM user, the parent account to which the user belongs is the owner. @@ -107,7 +107,7 @@ type UpdateFileSystemOutput struct { // The tags associated with the file system, presented as an array of Tag objects. // // This member is required. - Tags []*types.Tag + Tags []types.Tag // A Boolean value that, if true, indicates that the file system is encrypted. Encrypted *bool diff --git a/service/efs/deserializers.go b/service/efs/deserializers.go index 01af7dc5666..966d320fdfd 100644 --- a/service/efs/deserializers.go +++ b/service/efs/deserializers.go @@ -173,7 +173,7 @@ func awsRestjson1_deserializeOpDocumentCreateAccessPointOutput(v **CreateAccessP if !ok { return fmt.Errorf("expected AccessPointArn to be of type string, got %T instead", value) } - sv.AccessPointArn = &jtv + sv.AccessPointArn = ptr.String(jtv) } case "AccessPointId": @@ -182,7 +182,7 @@ func awsRestjson1_deserializeOpDocumentCreateAccessPointOutput(v **CreateAccessP if !ok { return fmt.Errorf("expected AccessPointId to be of type string, got %T instead", value) } - sv.AccessPointId = &jtv + sv.AccessPointId = ptr.String(jtv) } case "ClientToken": @@ -191,7 +191,7 @@ func awsRestjson1_deserializeOpDocumentCreateAccessPointOutput(v **CreateAccessP if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "FileSystemId": @@ -200,7 +200,7 @@ func awsRestjson1_deserializeOpDocumentCreateAccessPointOutput(v **CreateAccessP if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "LifeCycleState": @@ -218,7 +218,7 @@ func awsRestjson1_deserializeOpDocumentCreateAccessPointOutput(v **CreateAccessP if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OwnerId": @@ -227,7 +227,7 @@ func awsRestjson1_deserializeOpDocumentCreateAccessPointOutput(v **CreateAccessP if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "PosixUser": @@ -421,7 +421,7 @@ func awsRestjson1_deserializeOpDocumentCreateFileSystemOutput(v **CreateFileSyst if !ok { return fmt.Errorf("expected CreationToken to be of type string, got %T instead", value) } - sv.CreationToken = &jtv + sv.CreationToken = ptr.String(jtv) } case "Encrypted": @@ -430,7 +430,7 @@ func awsRestjson1_deserializeOpDocumentCreateFileSystemOutput(v **CreateFileSyst if !ok { return fmt.Errorf("expected Encrypted to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = ptr.Bool(jtv) } case "FileSystemArn": @@ -439,7 +439,7 @@ func awsRestjson1_deserializeOpDocumentCreateFileSystemOutput(v **CreateFileSyst if !ok { return fmt.Errorf("expected FileSystemArn to be of type string, got %T instead", value) } - sv.FileSystemArn = &jtv + sv.FileSystemArn = ptr.String(jtv) } case "FileSystemId": @@ -448,7 +448,7 @@ func awsRestjson1_deserializeOpDocumentCreateFileSystemOutput(v **CreateFileSyst if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "KmsKeyId": @@ -457,7 +457,7 @@ func awsRestjson1_deserializeOpDocumentCreateFileSystemOutput(v **CreateFileSyst if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LifeCycleState": @@ -475,7 +475,7 @@ func awsRestjson1_deserializeOpDocumentCreateFileSystemOutput(v **CreateFileSyst if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NumberOfMountTargets": @@ -488,7 +488,7 @@ func awsRestjson1_deserializeOpDocumentCreateFileSystemOutput(v **CreateFileSyst if err != nil { return err } - sv.NumberOfMountTargets = ptr.Int32(int32(i64)) + sv.NumberOfMountTargets = int32(i64) } case "OwnerId": @@ -497,7 +497,7 @@ func awsRestjson1_deserializeOpDocumentCreateFileSystemOutput(v **CreateFileSyst if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "PerformanceMode": @@ -519,7 +519,7 @@ func awsRestjson1_deserializeOpDocumentCreateFileSystemOutput(v **CreateFileSyst if err != nil { return err } - sv.ProvisionedThroughputInMibps = &f64 + sv.ProvisionedThroughputInMibps = ptr.Float64(f64) } case "SizeInBytes": @@ -722,7 +722,7 @@ func awsRestjson1_deserializeOpDocumentCreateMountTargetOutput(v **CreateMountTa if !ok { return fmt.Errorf("expected AvailabilityZoneId to be of type string, got %T instead", value) } - sv.AvailabilityZoneId = &jtv + sv.AvailabilityZoneId = ptr.String(jtv) } case "AvailabilityZoneName": @@ -731,7 +731,7 @@ func awsRestjson1_deserializeOpDocumentCreateMountTargetOutput(v **CreateMountTa if !ok { return fmt.Errorf("expected AvailabilityZoneName to be of type string, got %T instead", value) } - sv.AvailabilityZoneName = &jtv + sv.AvailabilityZoneName = ptr.String(jtv) } case "FileSystemId": @@ -740,7 +740,7 @@ func awsRestjson1_deserializeOpDocumentCreateMountTargetOutput(v **CreateMountTa if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "IpAddress": @@ -749,7 +749,7 @@ func awsRestjson1_deserializeOpDocumentCreateMountTargetOutput(v **CreateMountTa if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "LifeCycleState": @@ -767,7 +767,7 @@ func awsRestjson1_deserializeOpDocumentCreateMountTargetOutput(v **CreateMountTa if !ok { return fmt.Errorf("expected MountTargetId to be of type string, got %T instead", value) } - sv.MountTargetId = &jtv + sv.MountTargetId = ptr.String(jtv) } case "NetworkInterfaceId": @@ -776,7 +776,7 @@ func awsRestjson1_deserializeOpDocumentCreateMountTargetOutput(v **CreateMountTa if !ok { return fmt.Errorf("expected NetworkInterfaceId to be of type string, got %T instead", value) } - sv.NetworkInterfaceId = &jtv + sv.NetworkInterfaceId = ptr.String(jtv) } case "OwnerId": @@ -785,7 +785,7 @@ func awsRestjson1_deserializeOpDocumentCreateMountTargetOutput(v **CreateMountTa if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "SubnetId": @@ -794,7 +794,7 @@ func awsRestjson1_deserializeOpDocumentCreateMountTargetOutput(v **CreateMountTa if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "VpcId": @@ -803,7 +803,7 @@ func awsRestjson1_deserializeOpDocumentCreateMountTargetOutput(v **CreateMountTa if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -1508,7 +1508,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAccessPointsOutput(v **DescribeAc if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1824,7 +1824,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFileSystemPolicyOutput(v **Descri if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "Policy": @@ -1833,7 +1833,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFileSystemPolicyOutput(v **Descri if !ok { return fmt.Errorf("expected Policy to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -1995,7 +1995,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFileSystemsOutput(v **DescribeFil if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "NextMarker": @@ -2004,7 +2004,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFileSystemsOutput(v **DescribeFil if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -2320,7 +2320,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMountTargetsOutput(v **DescribeMo if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "MountTargets": @@ -2334,7 +2334,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMountTargetsOutput(v **DescribeMo if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -2647,7 +2647,7 @@ func awsRestjson1_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "NextMarker": @@ -2656,7 +2656,7 @@ func awsRestjson1_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "Tags": @@ -2821,7 +2821,7 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -3243,7 +3243,7 @@ func awsRestjson1_deserializeOpDocumentPutFileSystemPolicyOutput(v **PutFileSyst if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "Policy": @@ -3252,7 +3252,7 @@ func awsRestjson1_deserializeOpDocumentPutFileSystemPolicyOutput(v **PutFileSyst if !ok { return fmt.Errorf("expected Policy to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -3774,7 +3774,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFileSystemOutput(v **UpdateFileSyst if !ok { return fmt.Errorf("expected CreationToken to be of type string, got %T instead", value) } - sv.CreationToken = &jtv + sv.CreationToken = ptr.String(jtv) } case "Encrypted": @@ -3783,7 +3783,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFileSystemOutput(v **UpdateFileSyst if !ok { return fmt.Errorf("expected Encrypted to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = ptr.Bool(jtv) } case "FileSystemArn": @@ -3792,7 +3792,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFileSystemOutput(v **UpdateFileSyst if !ok { return fmt.Errorf("expected FileSystemArn to be of type string, got %T instead", value) } - sv.FileSystemArn = &jtv + sv.FileSystemArn = ptr.String(jtv) } case "FileSystemId": @@ -3801,7 +3801,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFileSystemOutput(v **UpdateFileSyst if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "KmsKeyId": @@ -3810,7 +3810,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFileSystemOutput(v **UpdateFileSyst if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LifeCycleState": @@ -3828,7 +3828,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFileSystemOutput(v **UpdateFileSyst if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NumberOfMountTargets": @@ -3841,7 +3841,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFileSystemOutput(v **UpdateFileSyst if err != nil { return err } - sv.NumberOfMountTargets = ptr.Int32(int32(i64)) + sv.NumberOfMountTargets = int32(i64) } case "OwnerId": @@ -3850,7 +3850,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFileSystemOutput(v **UpdateFileSyst if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "PerformanceMode": @@ -3872,7 +3872,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFileSystemOutput(v **UpdateFileSyst if err != nil { return err } - sv.ProvisionedThroughputInMibps = &f64 + sv.ProvisionedThroughputInMibps = ptr.Float64(f64) } case "SizeInBytes": @@ -4903,7 +4903,7 @@ func awsRestjson1_deserializeDocumentAccessPointAlreadyExists(v **types.AccessPo if !ok { return fmt.Errorf("expected AccessPointId to be of type string, got %T instead", value) } - sv.AccessPointId = &jtv + sv.AccessPointId = ptr.String(jtv) } case "ErrorCode": @@ -4912,7 +4912,7 @@ func awsRestjson1_deserializeDocumentAccessPointAlreadyExists(v **types.AccessPo if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -4921,7 +4921,7 @@ func awsRestjson1_deserializeDocumentAccessPointAlreadyExists(v **types.AccessPo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4961,7 +4961,7 @@ func awsRestjson1_deserializeDocumentAccessPointDescription(v **types.AccessPoin if !ok { return fmt.Errorf("expected AccessPointArn to be of type string, got %T instead", value) } - sv.AccessPointArn = &jtv + sv.AccessPointArn = ptr.String(jtv) } case "AccessPointId": @@ -4970,7 +4970,7 @@ func awsRestjson1_deserializeDocumentAccessPointDescription(v **types.AccessPoin if !ok { return fmt.Errorf("expected AccessPointId to be of type string, got %T instead", value) } - sv.AccessPointId = &jtv + sv.AccessPointId = ptr.String(jtv) } case "ClientToken": @@ -4979,7 +4979,7 @@ func awsRestjson1_deserializeDocumentAccessPointDescription(v **types.AccessPoin if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "FileSystemId": @@ -4988,7 +4988,7 @@ func awsRestjson1_deserializeDocumentAccessPointDescription(v **types.AccessPoin if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "LifeCycleState": @@ -5006,7 +5006,7 @@ func awsRestjson1_deserializeDocumentAccessPointDescription(v **types.AccessPoin if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OwnerId": @@ -5015,7 +5015,7 @@ func awsRestjson1_deserializeDocumentAccessPointDescription(v **types.AccessPoin if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "PosixUser": @@ -5042,7 +5042,7 @@ func awsRestjson1_deserializeDocumentAccessPointDescription(v **types.AccessPoin return nil } -func awsRestjson1_deserializeDocumentAccessPointDescriptions(v *[]*types.AccessPointDescription, value interface{}) error { +func awsRestjson1_deserializeDocumentAccessPointDescriptions(v *[]types.AccessPointDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5055,18 +5055,20 @@ func awsRestjson1_deserializeDocumentAccessPointDescriptions(v *[]*types.AccessP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AccessPointDescription + var cv []types.AccessPointDescription if *v == nil { - cv = []*types.AccessPointDescription{} + cv = []types.AccessPointDescription{} } else { cv = *v } for _, value := range shape { - var col *types.AccessPointDescription - if err := awsRestjson1_deserializeDocumentAccessPointDescription(&col, value); err != nil { + var col types.AccessPointDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentAccessPointDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5102,7 +5104,7 @@ func awsRestjson1_deserializeDocumentAccessPointLimitExceeded(v **types.AccessPo if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -5111,7 +5113,7 @@ func awsRestjson1_deserializeDocumentAccessPointLimitExceeded(v **types.AccessPo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5151,7 +5153,7 @@ func awsRestjson1_deserializeDocumentAccessPointNotFound(v **types.AccessPointNo if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -5160,7 +5162,7 @@ func awsRestjson1_deserializeDocumentAccessPointNotFound(v **types.AccessPointNo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5240,7 +5242,7 @@ func awsRestjson1_deserializeDocumentBadRequest(v **types.BadRequest, value inte if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -5249,7 +5251,7 @@ func awsRestjson1_deserializeDocumentBadRequest(v **types.BadRequest, value inte if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5293,7 +5295,7 @@ func awsRestjson1_deserializeDocumentCreationInfo(v **types.CreationInfo, value if err != nil { return err } - sv.OwnerGid = &i64 + sv.OwnerGid = ptr.Int64(i64) } case "OwnerUid": @@ -5306,7 +5308,7 @@ func awsRestjson1_deserializeDocumentCreationInfo(v **types.CreationInfo, value if err != nil { return err } - sv.OwnerUid = &i64 + sv.OwnerUid = ptr.Int64(i64) } case "Permissions": @@ -5315,7 +5317,7 @@ func awsRestjson1_deserializeDocumentCreationInfo(v **types.CreationInfo, value if !ok { return fmt.Errorf("expected Permissions to be of type string, got %T instead", value) } - sv.Permissions = &jtv + sv.Permissions = ptr.String(jtv) } default: @@ -5355,7 +5357,7 @@ func awsRestjson1_deserializeDocumentDependencyTimeout(v **types.DependencyTimeo if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -5364,7 +5366,7 @@ func awsRestjson1_deserializeDocumentDependencyTimeout(v **types.DependencyTimeo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5404,7 +5406,7 @@ func awsRestjson1_deserializeDocumentFileSystemAlreadyExists(v **types.FileSyste if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "FileSystemId": @@ -5413,7 +5415,7 @@ func awsRestjson1_deserializeDocumentFileSystemAlreadyExists(v **types.FileSyste if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "Message": @@ -5422,7 +5424,7 @@ func awsRestjson1_deserializeDocumentFileSystemAlreadyExists(v **types.FileSyste if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5475,7 +5477,7 @@ func awsRestjson1_deserializeDocumentFileSystemDescription(v **types.FileSystemD if !ok { return fmt.Errorf("expected CreationToken to be of type string, got %T instead", value) } - sv.CreationToken = &jtv + sv.CreationToken = ptr.String(jtv) } case "Encrypted": @@ -5484,7 +5486,7 @@ func awsRestjson1_deserializeDocumentFileSystemDescription(v **types.FileSystemD if !ok { return fmt.Errorf("expected Encrypted to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = ptr.Bool(jtv) } case "FileSystemArn": @@ -5493,7 +5495,7 @@ func awsRestjson1_deserializeDocumentFileSystemDescription(v **types.FileSystemD if !ok { return fmt.Errorf("expected FileSystemArn to be of type string, got %T instead", value) } - sv.FileSystemArn = &jtv + sv.FileSystemArn = ptr.String(jtv) } case "FileSystemId": @@ -5502,7 +5504,7 @@ func awsRestjson1_deserializeDocumentFileSystemDescription(v **types.FileSystemD if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "KmsKeyId": @@ -5511,7 +5513,7 @@ func awsRestjson1_deserializeDocumentFileSystemDescription(v **types.FileSystemD if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LifeCycleState": @@ -5529,7 +5531,7 @@ func awsRestjson1_deserializeDocumentFileSystemDescription(v **types.FileSystemD if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NumberOfMountTargets": @@ -5542,7 +5544,7 @@ func awsRestjson1_deserializeDocumentFileSystemDescription(v **types.FileSystemD if err != nil { return err } - sv.NumberOfMountTargets = ptr.Int32(int32(i64)) + sv.NumberOfMountTargets = int32(i64) } case "OwnerId": @@ -5551,7 +5553,7 @@ func awsRestjson1_deserializeDocumentFileSystemDescription(v **types.FileSystemD if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "PerformanceMode": @@ -5573,7 +5575,7 @@ func awsRestjson1_deserializeDocumentFileSystemDescription(v **types.FileSystemD if err != nil { return err } - sv.ProvisionedThroughputInMibps = &f64 + sv.ProvisionedThroughputInMibps = ptr.Float64(f64) } case "SizeInBytes": @@ -5604,7 +5606,7 @@ func awsRestjson1_deserializeDocumentFileSystemDescription(v **types.FileSystemD return nil } -func awsRestjson1_deserializeDocumentFileSystemDescriptions(v *[]*types.FileSystemDescription, value interface{}) error { +func awsRestjson1_deserializeDocumentFileSystemDescriptions(v *[]types.FileSystemDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5617,18 +5619,20 @@ func awsRestjson1_deserializeDocumentFileSystemDescriptions(v *[]*types.FileSyst return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FileSystemDescription + var cv []types.FileSystemDescription if *v == nil { - cv = []*types.FileSystemDescription{} + cv = []types.FileSystemDescription{} } else { cv = *v } for _, value := range shape { - var col *types.FileSystemDescription - if err := awsRestjson1_deserializeDocumentFileSystemDescription(&col, value); err != nil { + var col types.FileSystemDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentFileSystemDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5664,7 +5668,7 @@ func awsRestjson1_deserializeDocumentFileSystemInUse(v **types.FileSystemInUse, if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -5673,7 +5677,7 @@ func awsRestjson1_deserializeDocumentFileSystemInUse(v **types.FileSystemInUse, if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5713,7 +5717,7 @@ func awsRestjson1_deserializeDocumentFileSystemLimitExceeded(v **types.FileSyste if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -5722,7 +5726,7 @@ func awsRestjson1_deserializeDocumentFileSystemLimitExceeded(v **types.FileSyste if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5762,7 +5766,7 @@ func awsRestjson1_deserializeDocumentFileSystemNotFound(v **types.FileSystemNotF if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -5771,7 +5775,7 @@ func awsRestjson1_deserializeDocumentFileSystemNotFound(v **types.FileSystemNotF if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5828,7 +5832,7 @@ func awsRestjson1_deserializeDocumentFileSystemSize(v **types.FileSystemSize, va if err != nil { return err } - sv.Value = &i64 + sv.Value = i64 } case "ValueInIA": @@ -5841,7 +5845,7 @@ func awsRestjson1_deserializeDocumentFileSystemSize(v **types.FileSystemSize, va if err != nil { return err } - sv.ValueInIA = &i64 + sv.ValueInIA = ptr.Int64(i64) } case "ValueInStandard": @@ -5854,7 +5858,7 @@ func awsRestjson1_deserializeDocumentFileSystemSize(v **types.FileSystemSize, va if err != nil { return err } - sv.ValueInStandard = &i64 + sv.ValueInStandard = ptr.Int64(i64) } default: @@ -5894,7 +5898,7 @@ func awsRestjson1_deserializeDocumentIncorrectFileSystemLifeCycleState(v **types if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -5903,7 +5907,7 @@ func awsRestjson1_deserializeDocumentIncorrectFileSystemLifeCycleState(v **types if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5943,7 +5947,7 @@ func awsRestjson1_deserializeDocumentIncorrectMountTargetState(v **types.Incorre if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -5952,7 +5956,7 @@ func awsRestjson1_deserializeDocumentIncorrectMountTargetState(v **types.Incorre if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5992,7 +5996,7 @@ func awsRestjson1_deserializeDocumentInsufficientThroughputCapacity(v **types.In if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -6001,7 +6005,7 @@ func awsRestjson1_deserializeDocumentInsufficientThroughputCapacity(v **types.In if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6041,7 +6045,7 @@ func awsRestjson1_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -6050,7 +6054,7 @@ func awsRestjson1_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6090,7 +6094,7 @@ func awsRestjson1_deserializeDocumentInvalidPolicyException(v **types.InvalidPol if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -6099,7 +6103,7 @@ func awsRestjson1_deserializeDocumentInvalidPolicyException(v **types.InvalidPol if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6139,7 +6143,7 @@ func awsRestjson1_deserializeDocumentIpAddressInUse(v **types.IpAddressInUse, va if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -6148,7 +6152,7 @@ func awsRestjson1_deserializeDocumentIpAddressInUse(v **types.IpAddressInUse, va if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6160,7 +6164,7 @@ func awsRestjson1_deserializeDocumentIpAddressInUse(v **types.IpAddressInUse, va return nil } -func awsRestjson1_deserializeDocumentLifecyclePolicies(v *[]*types.LifecyclePolicy, value interface{}) error { +func awsRestjson1_deserializeDocumentLifecyclePolicies(v *[]types.LifecyclePolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6173,18 +6177,20 @@ func awsRestjson1_deserializeDocumentLifecyclePolicies(v *[]*types.LifecyclePoli return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LifecyclePolicy + var cv []types.LifecyclePolicy if *v == nil { - cv = []*types.LifecyclePolicy{} + cv = []types.LifecyclePolicy{} } else { cv = *v } for _, value := range shape { - var col *types.LifecyclePolicy - if err := awsRestjson1_deserializeDocumentLifecyclePolicy(&col, value); err != nil { + var col types.LifecyclePolicy + destAddr := &col + if err := awsRestjson1_deserializeDocumentLifecyclePolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6260,7 +6266,7 @@ func awsRestjson1_deserializeDocumentMountTargetConflict(v **types.MountTargetCo if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -6269,7 +6275,7 @@ func awsRestjson1_deserializeDocumentMountTargetConflict(v **types.MountTargetCo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6309,7 +6315,7 @@ func awsRestjson1_deserializeDocumentMountTargetDescription(v **types.MountTarge if !ok { return fmt.Errorf("expected AvailabilityZoneId to be of type string, got %T instead", value) } - sv.AvailabilityZoneId = &jtv + sv.AvailabilityZoneId = ptr.String(jtv) } case "AvailabilityZoneName": @@ -6318,7 +6324,7 @@ func awsRestjson1_deserializeDocumentMountTargetDescription(v **types.MountTarge if !ok { return fmt.Errorf("expected AvailabilityZoneName to be of type string, got %T instead", value) } - sv.AvailabilityZoneName = &jtv + sv.AvailabilityZoneName = ptr.String(jtv) } case "FileSystemId": @@ -6327,7 +6333,7 @@ func awsRestjson1_deserializeDocumentMountTargetDescription(v **types.MountTarge if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "IpAddress": @@ -6336,7 +6342,7 @@ func awsRestjson1_deserializeDocumentMountTargetDescription(v **types.MountTarge if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "LifeCycleState": @@ -6354,7 +6360,7 @@ func awsRestjson1_deserializeDocumentMountTargetDescription(v **types.MountTarge if !ok { return fmt.Errorf("expected MountTargetId to be of type string, got %T instead", value) } - sv.MountTargetId = &jtv + sv.MountTargetId = ptr.String(jtv) } case "NetworkInterfaceId": @@ -6363,7 +6369,7 @@ func awsRestjson1_deserializeDocumentMountTargetDescription(v **types.MountTarge if !ok { return fmt.Errorf("expected NetworkInterfaceId to be of type string, got %T instead", value) } - sv.NetworkInterfaceId = &jtv + sv.NetworkInterfaceId = ptr.String(jtv) } case "OwnerId": @@ -6372,7 +6378,7 @@ func awsRestjson1_deserializeDocumentMountTargetDescription(v **types.MountTarge if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "SubnetId": @@ -6381,7 +6387,7 @@ func awsRestjson1_deserializeDocumentMountTargetDescription(v **types.MountTarge if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "VpcId": @@ -6390,7 +6396,7 @@ func awsRestjson1_deserializeDocumentMountTargetDescription(v **types.MountTarge if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -6402,7 +6408,7 @@ func awsRestjson1_deserializeDocumentMountTargetDescription(v **types.MountTarge return nil } -func awsRestjson1_deserializeDocumentMountTargetDescriptions(v *[]*types.MountTargetDescription, value interface{}) error { +func awsRestjson1_deserializeDocumentMountTargetDescriptions(v *[]types.MountTargetDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6415,18 +6421,20 @@ func awsRestjson1_deserializeDocumentMountTargetDescriptions(v *[]*types.MountTa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MountTargetDescription + var cv []types.MountTargetDescription if *v == nil { - cv = []*types.MountTargetDescription{} + cv = []types.MountTargetDescription{} } else { cv = *v } for _, value := range shape { - var col *types.MountTargetDescription - if err := awsRestjson1_deserializeDocumentMountTargetDescription(&col, value); err != nil { + var col types.MountTargetDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentMountTargetDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6462,7 +6470,7 @@ func awsRestjson1_deserializeDocumentMountTargetNotFound(v **types.MountTargetNo if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -6471,7 +6479,7 @@ func awsRestjson1_deserializeDocumentMountTargetNotFound(v **types.MountTargetNo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6511,7 +6519,7 @@ func awsRestjson1_deserializeDocumentNetworkInterfaceLimitExceeded(v **types.Net if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -6520,7 +6528,7 @@ func awsRestjson1_deserializeDocumentNetworkInterfaceLimitExceeded(v **types.Net if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6560,7 +6568,7 @@ func awsRestjson1_deserializeDocumentNoFreeAddressesInSubnet(v **types.NoFreeAdd if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -6569,7 +6577,7 @@ func awsRestjson1_deserializeDocumentNoFreeAddressesInSubnet(v **types.NoFreeAdd if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6609,7 +6617,7 @@ func awsRestjson1_deserializeDocumentPolicyNotFound(v **types.PolicyNotFound, va if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -6618,7 +6626,7 @@ func awsRestjson1_deserializeDocumentPolicyNotFound(v **types.PolicyNotFound, va if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6662,7 +6670,7 @@ func awsRestjson1_deserializeDocumentPosixUser(v **types.PosixUser, value interf if err != nil { return err } - sv.Gid = &i64 + sv.Gid = ptr.Int64(i64) } case "SecondaryGids": @@ -6680,7 +6688,7 @@ func awsRestjson1_deserializeDocumentPosixUser(v **types.PosixUser, value interf if err != nil { return err } - sv.Uid = &i64 + sv.Uid = ptr.Int64(i64) } default: @@ -6725,7 +6733,7 @@ func awsRestjson1_deserializeDocumentRootDirectory(v **types.RootDirectory, valu if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } default: @@ -6737,7 +6745,7 @@ func awsRestjson1_deserializeDocumentRootDirectory(v **types.RootDirectory, valu return nil } -func awsRestjson1_deserializeDocumentSecondaryGids(v *[]*int64, value interface{}) error { +func awsRestjson1_deserializeDocumentSecondaryGids(v *[]int64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6750,15 +6758,15 @@ func awsRestjson1_deserializeDocumentSecondaryGids(v *[]*int64, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int64 + var cv []int64 if *v == nil { - cv = []*int64{} + cv = []int64{} } else { cv = *v } for _, value := range shape { - var col *int64 + var col int64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -6768,7 +6776,7 @@ func awsRestjson1_deserializeDocumentSecondaryGids(v *[]*int64, value interface{ if err != nil { return err } - col = &i64 + col = i64 } cv = append(cv, col) @@ -6805,7 +6813,7 @@ func awsRestjson1_deserializeDocumentSecurityGroupLimitExceeded(v **types.Securi if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -6814,7 +6822,7 @@ func awsRestjson1_deserializeDocumentSecurityGroupLimitExceeded(v **types.Securi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6854,7 +6862,7 @@ func awsRestjson1_deserializeDocumentSecurityGroupNotFound(v **types.SecurityGro if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -6863,7 +6871,7 @@ func awsRestjson1_deserializeDocumentSecurityGroupNotFound(v **types.SecurityGro if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6875,7 +6883,7 @@ func awsRestjson1_deserializeDocumentSecurityGroupNotFound(v **types.SecurityGro return nil } -func awsRestjson1_deserializeDocumentSecurityGroups(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityGroups(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6888,21 +6896,21 @@ func awsRestjson1_deserializeDocumentSecurityGroups(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecurityGroup to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6939,7 +6947,7 @@ func awsRestjson1_deserializeDocumentSubnetNotFound(v **types.SubnetNotFound, va if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -6948,7 +6956,7 @@ func awsRestjson1_deserializeDocumentSubnetNotFound(v **types.SubnetNotFound, va if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6988,7 +6996,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -6997,7 +7005,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -7009,7 +7017,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7022,18 +7030,20 @@ func awsRestjson1_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7069,7 +7079,7 @@ func awsRestjson1_deserializeDocumentThroughputLimitExceeded(v **types.Throughpu if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -7078,7 +7088,7 @@ func awsRestjson1_deserializeDocumentThroughputLimitExceeded(v **types.Throughpu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7118,7 +7128,7 @@ func awsRestjson1_deserializeDocumentTooManyRequests(v **types.TooManyRequests, if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -7127,7 +7137,7 @@ func awsRestjson1_deserializeDocumentTooManyRequests(v **types.TooManyRequests, if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7167,7 +7177,7 @@ func awsRestjson1_deserializeDocumentUnsupportedAvailabilityZone(v **types.Unsup if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -7176,7 +7186,7 @@ func awsRestjson1_deserializeDocumentUnsupportedAvailabilityZone(v **types.Unsup if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7216,7 +7226,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -7225,7 +7235,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/efs/go.mod b/service/efs/go.mod index 50366dc739b..3f6ab3a8a5d 100644 --- a/service/efs/go.mod +++ b/service/efs/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/efs go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/efs/serializers.go b/service/efs/serializers.go index 087fc6803b5..fee6db2daf5 100644 --- a/service/efs/serializers.go +++ b/service/efs/serializers.go @@ -370,13 +370,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateTagsInput(v *CreateTagsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FileSystemId == nil { + if v.FileSystemId == nil || len(*v.FileSystemId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} } if v.FileSystemId != nil { - if len(*v.FileSystemId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} - } if err := encoder.SetURI("FileSystemId").String(*v.FileSystemId); err != nil { return err } @@ -450,13 +447,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAccessPointInput(v *DeleteAccessP return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccessPointId == nil { + if v.AccessPointId == nil || len(*v.AccessPointId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AccessPointId must not be empty")} } if v.AccessPointId != nil { - if len(*v.AccessPointId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AccessPointId must not be empty")} - } if err := encoder.SetURI("AccessPointId").String(*v.AccessPointId); err != nil { return err } @@ -516,13 +510,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFileSystemInput(v *DeleteFileSyst return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FileSystemId == nil { + if v.FileSystemId == nil || len(*v.FileSystemId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} } if v.FileSystemId != nil { - if len(*v.FileSystemId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} - } if err := encoder.SetURI("FileSystemId").String(*v.FileSystemId); err != nil { return err } @@ -582,13 +573,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFileSystemPolicyInput(v *DeleteFi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FileSystemId == nil { + if v.FileSystemId == nil || len(*v.FileSystemId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} } if v.FileSystemId != nil { - if len(*v.FileSystemId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} - } if err := encoder.SetURI("FileSystemId").String(*v.FileSystemId); err != nil { return err } @@ -648,13 +636,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMountTargetInput(v *DeleteMountTa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MountTargetId == nil { + if v.MountTargetId == nil || len(*v.MountTargetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MountTargetId must not be empty")} } if v.MountTargetId != nil { - if len(*v.MountTargetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MountTargetId must not be empty")} - } if err := encoder.SetURI("MountTargetId").String(*v.MountTargetId); err != nil { return err } @@ -725,13 +710,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteTagsInput(v *DeleteTagsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FileSystemId == nil { + if v.FileSystemId == nil || len(*v.FileSystemId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} } if v.FileSystemId != nil { - if len(*v.FileSystemId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} - } if err := encoder.SetURI("FileSystemId").String(*v.FileSystemId); err != nil { return err } @@ -875,13 +857,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeBackupPolicyInput(v *DescribeBa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FileSystemId == nil { + if v.FileSystemId == nil || len(*v.FileSystemId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} } if v.FileSystemId != nil { - if len(*v.FileSystemId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} - } if err := encoder.SetURI("FileSystemId").String(*v.FileSystemId); err != nil { return err } @@ -941,13 +920,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeFileSystemPolicyInput(v *Descri return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FileSystemId == nil { + if v.FileSystemId == nil || len(*v.FileSystemId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} } if v.FileSystemId != nil { - if len(*v.FileSystemId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} - } if err := encoder.SetURI("FileSystemId").String(*v.FileSystemId); err != nil { return err } @@ -1077,13 +1053,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeLifecycleConfigurationInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FileSystemId == nil { + if v.FileSystemId == nil || len(*v.FileSystemId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} } if v.FileSystemId != nil { - if len(*v.FileSystemId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} - } if err := encoder.SetURI("FileSystemId").String(*v.FileSystemId); err != nil { return err } @@ -1217,13 +1190,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeMountTargetSecurityGroupsInput( return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MountTargetId == nil { + if v.MountTargetId == nil || len(*v.MountTargetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MountTargetId must not be empty")} } if v.MountTargetId != nil { - if len(*v.MountTargetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MountTargetId must not be empty")} - } if err := encoder.SetURI("MountTargetId").String(*v.MountTargetId); err != nil { return err } @@ -1283,13 +1253,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeTagsInput(v *DescribeTagsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FileSystemId == nil { + if v.FileSystemId == nil || len(*v.FileSystemId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} } if v.FileSystemId != nil { - if len(*v.FileSystemId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} - } if err := encoder.SetURI("FileSystemId").String(*v.FileSystemId); err != nil { return err } @@ -1365,13 +1332,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor encoder.SetQuery("NextToken").String(*v.NextToken) } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} - } if err := encoder.SetURI("ResourceId").String(*v.ResourceId); err != nil { return err } @@ -1442,13 +1406,10 @@ func awsRestjson1_serializeOpHttpBindingsModifyMountTargetSecurityGroupsInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MountTargetId == nil { + if v.MountTargetId == nil || len(*v.MountTargetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MountTargetId must not be empty")} } if v.MountTargetId != nil { - if len(*v.MountTargetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MountTargetId must not be empty")} - } if err := encoder.SetURI("MountTargetId").String(*v.MountTargetId); err != nil { return err } @@ -1533,13 +1494,10 @@ func awsRestjson1_serializeOpHttpBindingsPutBackupPolicyInput(v *PutBackupPolicy return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FileSystemId == nil { + if v.FileSystemId == nil || len(*v.FileSystemId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} } if v.FileSystemId != nil { - if len(*v.FileSystemId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} - } if err := encoder.SetURI("FileSystemId").String(*v.FileSystemId); err != nil { return err } @@ -1624,13 +1582,10 @@ func awsRestjson1_serializeOpHttpBindingsPutFileSystemPolicyInput(v *PutFileSyst return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FileSystemId == nil { + if v.FileSystemId == nil || len(*v.FileSystemId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} } if v.FileSystemId != nil { - if len(*v.FileSystemId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} - } if err := encoder.SetURI("FileSystemId").String(*v.FileSystemId); err != nil { return err } @@ -1643,9 +1598,9 @@ func awsRestjson1_serializeOpDocumentPutFileSystemPolicyInput(v *PutFileSystemPo object := value.Object() defer object.Close() - if v.BypassPolicyLockoutSafetyCheck != nil { + if v.BypassPolicyLockoutSafetyCheck { ok := object.Key("BypassPolicyLockoutSafetyCheck") - ok.Boolean(*v.BypassPolicyLockoutSafetyCheck) + ok.Boolean(v.BypassPolicyLockoutSafetyCheck) } if v.Policy != nil { @@ -1718,13 +1673,10 @@ func awsRestjson1_serializeOpHttpBindingsPutLifecycleConfigurationInput(v *PutLi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FileSystemId == nil { + if v.FileSystemId == nil || len(*v.FileSystemId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} } if v.FileSystemId != nil { - if len(*v.FileSystemId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} - } if err := encoder.SetURI("FileSystemId").String(*v.FileSystemId); err != nil { return err } @@ -1809,13 +1761,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} - } if err := encoder.SetURI("ResourceId").String(*v.ResourceId); err != nil { return err } @@ -1889,13 +1838,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} - } if err := encoder.SetURI("ResourceId").String(*v.ResourceId); err != nil { return err } @@ -1903,10 +1849,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1975,13 +1918,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFileSystemInput(v *UpdateFileSyst return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FileSystemId == nil { + if v.FileSystemId == nil || len(*v.FileSystemId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} } if v.FileSystemId != nil { - if len(*v.FileSystemId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FileSystemId must not be empty")} - } if err := encoder.SetURI("FileSystemId").String(*v.FileSystemId); err != nil { return err } @@ -2041,17 +1981,13 @@ func awsRestjson1_serializeDocumentCreationInfo(v *types.CreationInfo, value smi return nil } -func awsRestjson1_serializeDocumentLifecyclePolicies(v []*types.LifecyclePolicy, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLifecyclePolicies(v []types.LifecyclePolicy, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentLifecyclePolicy(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentLifecyclePolicy(&v[i], av); err != nil { return err } } @@ -2113,32 +2049,24 @@ func awsRestjson1_serializeDocumentRootDirectory(v *types.RootDirectory, value s return nil } -func awsRestjson1_serializeDocumentSecondaryGids(v []*int64, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSecondaryGids(v []int64, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Long(*v[i]) + av.Long(v[i]) } return nil } -func awsRestjson1_serializeDocumentSecurityGroups(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSecurityGroups(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2160,32 +2088,24 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/efs/types/types.go b/service/efs/types/types.go index f45060589de..371b6ba3e55 100644 --- a/service/efs/types/types.go +++ b/service/efs/types/types.go @@ -40,7 +40,7 @@ type AccessPointDescription struct { RootDirectory *RootDirectory // The tags associated with the access point, presented as an array of Tag objects. - Tags []*Tag + Tags []Tag } // The backup policy for the file system, showing the curent status. If ENABLED, @@ -121,7 +121,7 @@ type FileSystemDescription struct { // information, see CreateMountTarget. // // This member is required. - NumberOfMountTargets *int32 + NumberOfMountTargets int32 // The AWS account that created the file system. If the file system was created by // an IAM user, the parent account to which the user belongs is the owner. @@ -150,7 +150,7 @@ type FileSystemDescription struct { // The tags associated with the file system, presented as an array of Tag objects. // // This member is required. - Tags []*Tag + Tags []Tag // A Boolean value that, if true, indicates that the file system is encrypted. Encrypted *bool @@ -199,7 +199,7 @@ type FileSystemSize struct { // The latest known metered size (in bytes) of data stored in the file system. // // This member is required. - Value *int64 + Value int64 // The time at which the size of data, returned in the Value field, was determined. // The value is the integer number of seconds since 1970-01-01T00:00:00Z. @@ -289,7 +289,7 @@ type PosixUser struct { // Secondary POSIX group IDs used for all file system operations using this access // point. - SecondaryGids []*int64 + SecondaryGids []int64 } // Specifies the directory on the Amazon EFS file system that the access point diff --git a/service/efs/validators.go b/service/efs/validators.go index 7a9c84d2cf7..e588332316f 100644 --- a/service/efs/validators.go +++ b/service/efs/validators.go @@ -627,13 +627,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/eks/api_op_CreateCluster.go b/service/eks/api_op_CreateCluster.go index df11ca171d7..11e1a377cba 100644 --- a/service/eks/api_op_CreateCluster.go +++ b/service/eks/api_op_CreateCluster.go @@ -95,7 +95,7 @@ type CreateClusterInput struct { ClientRequestToken *string // The encryption configuration for the cluster. - EncryptionConfig []*types.EncryptionConfig + EncryptionConfig []types.EncryptionConfig // The Kubernetes network configuration for the cluster. KubernetesNetworkConfig *types.KubernetesNetworkConfigRequest @@ -112,7 +112,7 @@ type CreateClusterInput struct { // The metadata to apply to the cluster to assist with categorization and // organization. Each tag consists of a key and an optional value, both of which // you define. - Tags map[string]*string + Tags map[string]string // The desired Kubernetes version for your cluster. If you don't specify a value // here, the latest version available in Amazon EKS is used. diff --git a/service/eks/api_op_CreateFargateProfile.go b/service/eks/api_op_CreateFargateProfile.go index 51b9aefc364..bebdf83610a 100644 --- a/service/eks/api_op_CreateFargateProfile.go +++ b/service/eks/api_op_CreateFargateProfile.go @@ -84,19 +84,19 @@ type CreateFargateProfileInput struct { // The selectors to match for pods to use this Fargate profile. Each selector must // have an associated namespace. Optionally, you can also specify labels for a // namespace. You may specify up to five selectors in a Fargate profile. - Selectors []*types.FargateProfileSelector + Selectors []types.FargateProfileSelector // The IDs of subnets to launch your pods into. At this time, pods running on // Fargate are not assigned public IP addresses, so only private subnets (with no // direct route to an Internet Gateway) are accepted for this parameter. - Subnets []*string + Subnets []string // The metadata to apply to the Fargate profile to assist with categorization and // organization. Each tag consists of a key and an optional value, both of which // you define. Fargate profile tags do not propagate to any other resources // associated with the Fargate profile, such as the pods that are scheduled with // it. - Tags map[string]*string + Tags map[string]string } type CreateFargateProfileOutput struct { diff --git a/service/eks/api_op_CreateNodegroup.go b/service/eks/api_op_CreateNodegroup.go index ad48d2c5871..73033689993 100644 --- a/service/eks/api_op_CreateNodegroup.go +++ b/service/eks/api_op_CreateNodegroup.go @@ -82,7 +82,7 @@ type CreateNodegroupInput struct { // in the Amazon EKS User Guide. // // This member is required. - Subnets []*string + Subnets []string // The AMI type for your node group. GPU instance types should use the // AL2_x86_64_GPU AMI type. Non-GPU instances should use the AL2_x86_64 AMI type. @@ -115,11 +115,11 @@ type CreateNodegroupInput struct { // templates with Amazon EKS, see Launch template support // (https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) in the // Amazon EKS User Guide. - InstanceTypes []*string + InstanceTypes []string // The Kubernetes labels to be applied to the nodes in the node group when they are // created. - Labels map[string]*string + Labels map[string]string // An object representing a node group's launch template specification. If // specified, then do not specify instanceTypes, diskSize, or remoteAccess and make @@ -156,7 +156,7 @@ type CreateNodegroupInput struct { // organization. Each tag consists of a key and an optional value, both of which // you define. Node group tags do not propagate to any other resources associated // with the node group, such as the Amazon EC2 instances or subnets. - Tags map[string]*string + Tags map[string]string // The Kubernetes version to use for your managed nodes. By default, the Kubernetes // version of the cluster is used, and this is the only accepted specified value. diff --git a/service/eks/api_op_ListClusters.go b/service/eks/api_op_ListClusters.go index c35e8b643b6..0a0e60b900a 100644 --- a/service/eks/api_op_ListClusters.go +++ b/service/eks/api_op_ListClusters.go @@ -49,7 +49,7 @@ type ListClustersInput struct { type ListClustersOutput struct { // A list of all of the clusters for your account in the specified Region. - Clusters []*string + Clusters []string // The nextToken value to include in a future ListClusters request. When the // results of a ListClusters request exceed maxResults, you can use this value to diff --git a/service/eks/api_op_ListFargateProfiles.go b/service/eks/api_op_ListFargateProfiles.go index a8d3db2df29..867d7cd7a38 100644 --- a/service/eks/api_op_ListFargateProfiles.go +++ b/service/eks/api_op_ListFargateProfiles.go @@ -54,7 +54,7 @@ type ListFargateProfilesInput struct { type ListFargateProfilesOutput struct { // A list of all of the Fargate profiles associated with the specified cluster. - FargateProfileNames []*string + FargateProfileNames []string // The nextToken value to include in a future ListFargateProfiles request. When the // results of a ListFargateProfiles request exceed maxResults, you can use this diff --git a/service/eks/api_op_ListNodegroups.go b/service/eks/api_op_ListNodegroups.go index eb85a328442..a3bab0793e7 100644 --- a/service/eks/api_op_ListNodegroups.go +++ b/service/eks/api_op_ListNodegroups.go @@ -60,7 +60,7 @@ type ListNodegroupsOutput struct { NextToken *string // A list of all of the node groups associated with the specified cluster. - Nodegroups []*string + Nodegroups []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eks/api_op_ListTagsForResource.go b/service/eks/api_op_ListTagsForResource.go index 61d6010e299..92ccf525bcd 100644 --- a/service/eks/api_op_ListTagsForResource.go +++ b/service/eks/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags for the resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eks/api_op_ListUpdates.go b/service/eks/api_op_ListUpdates.go index 9a90cf969f7..58691b4a48a 100644 --- a/service/eks/api_op_ListUpdates.go +++ b/service/eks/api_op_ListUpdates.go @@ -62,7 +62,7 @@ type ListUpdatesOutput struct { NextToken *string // A list of all the updates for the specified cluster and Region. - UpdateIds []*string + UpdateIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eks/api_op_TagResource.go b/service/eks/api_op_TagResource.go index abe3ed4bb03..5e23416a63c 100644 --- a/service/eks/api_op_TagResource.go +++ b/service/eks/api_op_TagResource.go @@ -43,7 +43,7 @@ type TagResourceInput struct { // The tags to add to the resource. A tag is an array of key-value pairs. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/eks/api_op_UntagResource.go b/service/eks/api_op_UntagResource.go index f03817e7066..bb25be9ba3e 100644 --- a/service/eks/api_op_UntagResource.go +++ b/service/eks/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // The keys of the tags to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/eks/api_op_UpdateNodegroupVersion.go b/service/eks/api_op_UpdateNodegroupVersion.go index e5810dca002..17d535365de 100644 --- a/service/eks/api_op_UpdateNodegroupVersion.go +++ b/service/eks/api_op_UpdateNodegroupVersion.go @@ -67,7 +67,7 @@ type UpdateNodegroupVersionInput struct { // to a pod disruption budget issue. If an update fails because pods could not be // drained, you can force the update after it fails to terminate the old node // whether or not any pods are running on the node. - Force *bool + Force bool // An object representing a node group's launch template specification. You can // only update a node group using a launch template if the node group was diff --git a/service/eks/deserializers.go b/service/eks/deserializers.go index 3dc770ba40f..1d4a4437106 100644 --- a/service/eks/deserializers.go +++ b/service/eks/deserializers.go @@ -1768,7 +1768,7 @@ func awsRestjson1_deserializeOpDocumentListClustersOutput(v **ListClustersOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1933,7 +1933,7 @@ func awsRestjson1_deserializeOpDocumentListFargateProfilesOutput(v **ListFargate if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2096,7 +2096,7 @@ func awsRestjson1_deserializeOpDocumentListNodegroupsOutput(v **ListNodegroupsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "nodegroups": @@ -2411,7 +2411,7 @@ func awsRestjson1_deserializeOpDocumentListUpdatesOutput(v **ListUpdatesOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "updateIds": @@ -3672,7 +3672,7 @@ func awsRestjson1_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -3684,7 +3684,7 @@ func awsRestjson1_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup return nil } -func awsRestjson1_deserializeDocumentAutoScalingGroupList(v *[]*types.AutoScalingGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentAutoScalingGroupList(v *[]types.AutoScalingGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3697,18 +3697,20 @@ func awsRestjson1_deserializeDocumentAutoScalingGroupList(v *[]*types.AutoScalin return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutoScalingGroup + var cv []types.AutoScalingGroup if *v == nil { - cv = []*types.AutoScalingGroup{} + cv = []types.AutoScalingGroup{} } else { cv = *v } for _, value := range shape { - var col *types.AutoScalingGroup - if err := awsRestjson1_deserializeDocumentAutoScalingGroup(&col, value); err != nil { + var col types.AutoScalingGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentAutoScalingGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3744,7 +3746,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3784,7 +3786,7 @@ func awsRestjson1_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Data = &jtv + sv.Data = ptr.String(jtv) } default: @@ -3824,7 +3826,7 @@ func awsRestjson1_deserializeDocumentClientException(v **types.ClientException, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "message": @@ -3833,7 +3835,7 @@ func awsRestjson1_deserializeDocumentClientException(v **types.ClientException, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "nodegroupName": @@ -3842,7 +3844,7 @@ func awsRestjson1_deserializeDocumentClientException(v **types.ClientException, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodegroupName = &jtv + sv.NodegroupName = ptr.String(jtv) } default: @@ -3882,7 +3884,7 @@ func awsRestjson1_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "certificateAuthority": @@ -3896,7 +3898,7 @@ func awsRestjson1_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "createdAt": @@ -3923,7 +3925,7 @@ func awsRestjson1_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Endpoint = &jtv + sv.Endpoint = ptr.String(jtv) } case "identity": @@ -3947,7 +3949,7 @@ func awsRestjson1_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "platformVersion": @@ -3956,7 +3958,7 @@ func awsRestjson1_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PlatformVersion = &jtv + sv.PlatformVersion = ptr.String(jtv) } case "resourcesVpcConfig": @@ -3970,7 +3972,7 @@ func awsRestjson1_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "status": @@ -3993,7 +3995,7 @@ func awsRestjson1_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -4046,7 +4048,7 @@ func awsRestjson1_deserializeDocumentEncryptionConfig(v **types.EncryptionConfig return nil } -func awsRestjson1_deserializeDocumentEncryptionConfigList(v *[]*types.EncryptionConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentEncryptionConfigList(v *[]types.EncryptionConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4059,18 +4061,20 @@ func awsRestjson1_deserializeDocumentEncryptionConfigList(v *[]*types.Encryption return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EncryptionConfig + var cv []types.EncryptionConfig if *v == nil { - cv = []*types.EncryptionConfig{} + cv = []types.EncryptionConfig{} } else { cv = *v } for _, value := range shape { - var col *types.EncryptionConfig - if err := awsRestjson1_deserializeDocumentEncryptionConfig(&col, value); err != nil { + var col types.EncryptionConfig + destAddr := &col + if err := awsRestjson1_deserializeDocumentEncryptionConfig(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4115,7 +4119,7 @@ func awsRestjson1_deserializeDocumentErrorDetail(v **types.ErrorDetail, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "resourceIds": @@ -4132,7 +4136,7 @@ func awsRestjson1_deserializeDocumentErrorDetail(v **types.ErrorDetail, value in return nil } -func awsRestjson1_deserializeDocumentErrorDetails(v *[]*types.ErrorDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentErrorDetails(v *[]types.ErrorDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4145,18 +4149,20 @@ func awsRestjson1_deserializeDocumentErrorDetails(v *[]*types.ErrorDetail, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ErrorDetail + var cv []types.ErrorDetail if *v == nil { - cv = []*types.ErrorDetail{} + cv = []types.ErrorDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ErrorDetail - if err := awsRestjson1_deserializeDocumentErrorDetail(&col, value); err != nil { + var col types.ErrorDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentErrorDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4192,7 +4198,7 @@ func awsRestjson1_deserializeDocumentFargateProfile(v **types.FargateProfile, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "createdAt": @@ -4214,7 +4220,7 @@ func awsRestjson1_deserializeDocumentFargateProfile(v **types.FargateProfile, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FargateProfileArn = &jtv + sv.FargateProfileArn = ptr.String(jtv) } case "fargateProfileName": @@ -4223,7 +4229,7 @@ func awsRestjson1_deserializeDocumentFargateProfile(v **types.FargateProfile, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FargateProfileName = &jtv + sv.FargateProfileName = ptr.String(jtv) } case "podExecutionRoleArn": @@ -4232,7 +4238,7 @@ func awsRestjson1_deserializeDocumentFargateProfile(v **types.FargateProfile, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PodExecutionRoleArn = &jtv + sv.PodExecutionRoleArn = ptr.String(jtv) } case "selectors": @@ -4268,7 +4274,7 @@ func awsRestjson1_deserializeDocumentFargateProfile(v **types.FargateProfile, va return nil } -func awsRestjson1_deserializeDocumentFargateProfileLabel(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentFargateProfileLabel(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4281,21 +4287,21 @@ func awsRestjson1_deserializeDocumentFargateProfileLabel(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -4337,7 +4343,7 @@ func awsRestjson1_deserializeDocumentFargateProfileSelector(v **types.FargatePro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } default: @@ -4349,7 +4355,7 @@ func awsRestjson1_deserializeDocumentFargateProfileSelector(v **types.FargatePro return nil } -func awsRestjson1_deserializeDocumentFargateProfileSelectors(v *[]*types.FargateProfileSelector, value interface{}) error { +func awsRestjson1_deserializeDocumentFargateProfileSelectors(v *[]types.FargateProfileSelector, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4362,18 +4368,20 @@ func awsRestjson1_deserializeDocumentFargateProfileSelectors(v *[]*types.Fargate return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FargateProfileSelector + var cv []types.FargateProfileSelector if *v == nil { - cv = []*types.FargateProfileSelector{} + cv = []types.FargateProfileSelector{} } else { cv = *v } for _, value := range shape { - var col *types.FargateProfileSelector - if err := awsRestjson1_deserializeDocumentFargateProfileSelector(&col, value); err != nil { + var col types.FargateProfileSelector + destAddr := &col + if err := awsRestjson1_deserializeDocumentFargateProfileSelector(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4445,7 +4453,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "fargateProfileName": @@ -4454,7 +4462,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FargateProfileName = &jtv + sv.FargateProfileName = ptr.String(jtv) } case "message": @@ -4463,7 +4471,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "nodegroupName": @@ -4472,7 +4480,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodegroupName = &jtv + sv.NodegroupName = ptr.String(jtv) } default: @@ -4512,7 +4520,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "message": @@ -4521,7 +4529,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "nodegroupName": @@ -4530,7 +4538,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodegroupName = &jtv + sv.NodegroupName = ptr.String(jtv) } default: @@ -4579,7 +4587,7 @@ func awsRestjson1_deserializeDocumentIssue(v **types.Issue, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceIds": @@ -4596,7 +4604,7 @@ func awsRestjson1_deserializeDocumentIssue(v **types.Issue, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentIssueList(v *[]*types.Issue, value interface{}) error { +func awsRestjson1_deserializeDocumentIssueList(v *[]types.Issue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4609,18 +4617,20 @@ func awsRestjson1_deserializeDocumentIssueList(v *[]*types.Issue, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Issue + var cv []types.Issue if *v == nil { - cv = []*types.Issue{} + cv = []types.Issue{} } else { cv = *v } for _, value := range shape { - var col *types.Issue - if err := awsRestjson1_deserializeDocumentIssue(&col, value); err != nil { + var col types.Issue + destAddr := &col + if err := awsRestjson1_deserializeDocumentIssue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4656,7 +4666,7 @@ func awsRestjson1_deserializeDocumentKubernetesNetworkConfigResponse(v **types.K if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceIpv4Cidr = &jtv + sv.ServiceIpv4Cidr = ptr.String(jtv) } default: @@ -4668,7 +4678,7 @@ func awsRestjson1_deserializeDocumentKubernetesNetworkConfigResponse(v **types.K return nil } -func awsRestjson1_deserializeDocumentLabelsMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentLabelsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4681,21 +4691,21 @@ func awsRestjson1_deserializeDocumentLabelsMap(v *map[string]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected labelValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -4732,7 +4742,7 @@ func awsRestjson1_deserializeDocumentLaunchTemplateSpecification(v **types.Launc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -4741,7 +4751,7 @@ func awsRestjson1_deserializeDocumentLaunchTemplateSpecification(v **types.Launc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "version": @@ -4750,7 +4760,7 @@ func awsRestjson1_deserializeDocumentLaunchTemplateSpecification(v **types.Launc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -4826,7 +4836,7 @@ func awsRestjson1_deserializeDocumentLogSetup(v **types.LogSetup, value interfac if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } case "types": @@ -4843,7 +4853,7 @@ func awsRestjson1_deserializeDocumentLogSetup(v **types.LogSetup, value interfac return nil } -func awsRestjson1_deserializeDocumentLogSetups(v *[]*types.LogSetup, value interface{}) error { +func awsRestjson1_deserializeDocumentLogSetups(v *[]types.LogSetup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4856,18 +4866,20 @@ func awsRestjson1_deserializeDocumentLogSetups(v *[]*types.LogSetup, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LogSetup + var cv []types.LogSetup if *v == nil { - cv = []*types.LogSetup{} + cv = []types.LogSetup{} } else { cv = *v } for _, value := range shape { - var col *types.LogSetup - if err := awsRestjson1_deserializeDocumentLogSetup(&col, value); err != nil { + var col types.LogSetup + destAddr := &col + if err := awsRestjson1_deserializeDocumentLogSetup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4948,7 +4960,7 @@ func awsRestjson1_deserializeDocumentNodegroup(v **types.Nodegroup, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "createdAt": @@ -5016,7 +5028,7 @@ func awsRestjson1_deserializeDocumentNodegroup(v **types.Nodegroup, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodegroupArn = &jtv + sv.NodegroupArn = ptr.String(jtv) } case "nodegroupName": @@ -5025,7 +5037,7 @@ func awsRestjson1_deserializeDocumentNodegroup(v **types.Nodegroup, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodegroupName = &jtv + sv.NodegroupName = ptr.String(jtv) } case "nodeRole": @@ -5034,7 +5046,7 @@ func awsRestjson1_deserializeDocumentNodegroup(v **types.Nodegroup, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodeRole = &jtv + sv.NodeRole = ptr.String(jtv) } case "releaseVersion": @@ -5043,7 +5055,7 @@ func awsRestjson1_deserializeDocumentNodegroup(v **types.Nodegroup, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReleaseVersion = &jtv + sv.ReleaseVersion = ptr.String(jtv) } case "remoteAccess": @@ -5086,7 +5098,7 @@ func awsRestjson1_deserializeDocumentNodegroup(v **types.Nodegroup, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -5167,7 +5179,7 @@ func awsRestjson1_deserializeDocumentNodegroupResources(v **types.NodegroupResou if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RemoteAccessSecurityGroup = &jtv + sv.RemoteAccessSecurityGroup = ptr.String(jtv) } default: @@ -5277,7 +5289,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5317,7 +5329,7 @@ func awsRestjson1_deserializeDocumentOIDC(v **types.OIDC, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Issuer = &jtv + sv.Issuer = ptr.String(jtv) } default: @@ -5357,7 +5369,7 @@ func awsRestjson1_deserializeDocumentProvider(v **types.Provider, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KeyArn = &jtv + sv.KeyArn = ptr.String(jtv) } default: @@ -5397,7 +5409,7 @@ func awsRestjson1_deserializeDocumentRemoteAccessConfig(v **types.RemoteAccessCo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Ec2SshKey = &jtv + sv.Ec2SshKey = ptr.String(jtv) } case "sourceSecurityGroups": @@ -5442,7 +5454,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "message": @@ -5451,7 +5463,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "nodegroupName": @@ -5460,7 +5472,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodegroupName = &jtv + sv.NodegroupName = ptr.String(jtv) } default: @@ -5500,7 +5512,7 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "message": @@ -5509,7 +5521,7 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "nodegroupName": @@ -5518,7 +5530,7 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodegroupName = &jtv + sv.NodegroupName = ptr.String(jtv) } default: @@ -5558,7 +5570,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "fargateProfileName": @@ -5567,7 +5579,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FargateProfileName = &jtv + sv.FargateProfileName = ptr.String(jtv) } case "message": @@ -5576,7 +5588,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "nodegroupName": @@ -5585,7 +5597,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodegroupName = &jtv + sv.NodegroupName = ptr.String(jtv) } default: @@ -5625,7 +5637,7 @@ func awsRestjson1_deserializeDocumentServerException(v **types.ServerException, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "message": @@ -5634,7 +5646,7 @@ func awsRestjson1_deserializeDocumentServerException(v **types.ServerException, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "nodegroupName": @@ -5643,7 +5655,7 @@ func awsRestjson1_deserializeDocumentServerException(v **types.ServerException, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodegroupName = &jtv + sv.NodegroupName = ptr.String(jtv) } default: @@ -5683,7 +5695,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5695,7 +5707,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi return nil } -func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5708,21 +5720,21 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -5731,7 +5743,7 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5744,21 +5756,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -5795,7 +5807,7 @@ func awsRestjson1_deserializeDocumentUnsupportedAvailabilityZoneException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "message": @@ -5804,7 +5816,7 @@ func awsRestjson1_deserializeDocumentUnsupportedAvailabilityZoneException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "nodegroupName": @@ -5813,7 +5825,7 @@ func awsRestjson1_deserializeDocumentUnsupportedAvailabilityZoneException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NodegroupName = &jtv + sv.NodegroupName = ptr.String(jtv) } case "validZones": @@ -5876,7 +5888,7 @@ func awsRestjson1_deserializeDocumentUpdate(v **types.Update, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "params": @@ -5948,7 +5960,7 @@ func awsRestjson1_deserializeDocumentUpdateParam(v **types.UpdateParam, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5960,7 +5972,7 @@ func awsRestjson1_deserializeDocumentUpdateParam(v **types.UpdateParam, value in return nil } -func awsRestjson1_deserializeDocumentUpdateParams(v *[]*types.UpdateParam, value interface{}) error { +func awsRestjson1_deserializeDocumentUpdateParams(v *[]types.UpdateParam, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5973,18 +5985,20 @@ func awsRestjson1_deserializeDocumentUpdateParams(v *[]*types.UpdateParam, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UpdateParam + var cv []types.UpdateParam if *v == nil { - cv = []*types.UpdateParam{} + cv = []types.UpdateParam{} } else { cv = *v } for _, value := range shape { - var col *types.UpdateParam - if err := awsRestjson1_deserializeDocumentUpdateParam(&col, value); err != nil { + var col types.UpdateParam + destAddr := &col + if err := awsRestjson1_deserializeDocumentUpdateParam(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6020,7 +6034,7 @@ func awsRestjson1_deserializeDocumentVpcConfigResponse(v **types.VpcConfigRespon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterSecurityGroupId = &jtv + sv.ClusterSecurityGroupId = ptr.String(jtv) } case "endpointPrivateAccess": @@ -6029,7 +6043,7 @@ func awsRestjson1_deserializeDocumentVpcConfigResponse(v **types.VpcConfigRespon if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EndpointPrivateAccess = &jtv + sv.EndpointPrivateAccess = jtv } case "endpointPublicAccess": @@ -6038,7 +6052,7 @@ func awsRestjson1_deserializeDocumentVpcConfigResponse(v **types.VpcConfigRespon if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EndpointPublicAccess = &jtv + sv.EndpointPublicAccess = jtv } case "publicAccessCidrs": @@ -6062,7 +6076,7 @@ func awsRestjson1_deserializeDocumentVpcConfigResponse(v **types.VpcConfigRespon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: diff --git a/service/eks/go.mod b/service/eks/go.mod index 598c9855544..d7beeef5a1b 100644 --- a/service/eks/go.mod +++ b/service/eks/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/eks go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/eks/serializers.go b/service/eks/serializers.go index e59df2d8b99..ae92fa29cf8 100644 --- a/service/eks/serializers.go +++ b/service/eks/serializers.go @@ -199,13 +199,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateFargateProfileInput(v *CreateFarg return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterName == nil { + if v.ClusterName == nil || len(*v.ClusterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} } if v.ClusterName != nil { - if len(*v.ClusterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} - } if err := encoder.SetURI("clusterName").String(*v.ClusterName); err != nil { return err } @@ -319,13 +316,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateNodegroupInput(v *CreateNodegroup return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterName == nil { + if v.ClusterName == nil || len(*v.ClusterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} } if v.ClusterName != nil { - if len(*v.ClusterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} - } if err := encoder.SetURI("clusterName").String(*v.ClusterName); err != nil { return err } @@ -476,13 +470,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteClusterInput(v *DeleteClusterInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -542,25 +533,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFargateProfileInput(v *DeleteFarg return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterName == nil { + if v.ClusterName == nil || len(*v.ClusterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} } if v.ClusterName != nil { - if len(*v.ClusterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} - } if err := encoder.SetURI("clusterName").String(*v.ClusterName); err != nil { return err } } - if v.FargateProfileName == nil { + if v.FargateProfileName == nil || len(*v.FargateProfileName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member fargateProfileName must not be empty")} } if v.FargateProfileName != nil { - if len(*v.FargateProfileName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member fargateProfileName must not be empty")} - } if err := encoder.SetURI("fargateProfileName").String(*v.FargateProfileName); err != nil { return err } @@ -620,25 +605,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteNodegroupInput(v *DeleteNodegroup return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterName == nil { + if v.ClusterName == nil || len(*v.ClusterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} } if v.ClusterName != nil { - if len(*v.ClusterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} - } if err := encoder.SetURI("clusterName").String(*v.ClusterName); err != nil { return err } } - if v.NodegroupName == nil { + if v.NodegroupName == nil || len(*v.NodegroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member nodegroupName must not be empty")} } if v.NodegroupName != nil { - if len(*v.NodegroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member nodegroupName must not be empty")} - } if err := encoder.SetURI("nodegroupName").String(*v.NodegroupName); err != nil { return err } @@ -698,13 +677,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeClusterInput(v *DescribeCluster return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -764,25 +740,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeFargateProfileInput(v *Describe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterName == nil { + if v.ClusterName == nil || len(*v.ClusterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} } if v.ClusterName != nil { - if len(*v.ClusterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} - } if err := encoder.SetURI("clusterName").String(*v.ClusterName); err != nil { return err } } - if v.FargateProfileName == nil { + if v.FargateProfileName == nil || len(*v.FargateProfileName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member fargateProfileName must not be empty")} } if v.FargateProfileName != nil { - if len(*v.FargateProfileName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member fargateProfileName must not be empty")} - } if err := encoder.SetURI("fargateProfileName").String(*v.FargateProfileName); err != nil { return err } @@ -842,25 +812,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeNodegroupInput(v *DescribeNodeg return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterName == nil { + if v.ClusterName == nil || len(*v.ClusterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} } if v.ClusterName != nil { - if len(*v.ClusterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} - } if err := encoder.SetURI("clusterName").String(*v.ClusterName); err != nil { return err } } - if v.NodegroupName == nil { + if v.NodegroupName == nil || len(*v.NodegroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member nodegroupName must not be empty")} } if v.NodegroupName != nil { - if len(*v.NodegroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member nodegroupName must not be empty")} - } if err := encoder.SetURI("nodegroupName").String(*v.NodegroupName); err != nil { return err } @@ -920,13 +884,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeUpdateInput(v *DescribeUpdateIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -936,13 +897,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeUpdateInput(v *DescribeUpdateIn encoder.SetQuery("nodegroupName").String(*v.NodegroupName) } - if v.UpdateId == nil { + if v.UpdateId == nil || len(*v.UpdateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member updateId must not be empty")} } if v.UpdateId != nil { - if len(*v.UpdateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member updateId must not be empty")} - } if err := encoder.SetURI("updateId").String(*v.UpdateId); err != nil { return err } @@ -1064,13 +1022,10 @@ func awsRestjson1_serializeOpHttpBindingsListFargateProfilesInput(v *ListFargate return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterName == nil { + if v.ClusterName == nil || len(*v.ClusterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} } if v.ClusterName != nil { - if len(*v.ClusterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} - } if err := encoder.SetURI("clusterName").String(*v.ClusterName); err != nil { return err } @@ -1138,13 +1093,10 @@ func awsRestjson1_serializeOpHttpBindingsListNodegroupsInput(v *ListNodegroupsIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterName == nil { + if v.ClusterName == nil || len(*v.ClusterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} } if v.ClusterName != nil { - if len(*v.ClusterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} - } if err := encoder.SetURI("clusterName").String(*v.ClusterName); err != nil { return err } @@ -1212,13 +1164,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1282,13 +1231,10 @@ func awsRestjson1_serializeOpHttpBindingsListUpdatesInput(v *ListUpdatesInput, e encoder.SetQuery("maxResults").Integer(*v.MaxResults) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -1367,13 +1313,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1447,13 +1390,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1461,10 +1401,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1533,13 +1470,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateClusterConfigInput(v *UpdateClust return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -1636,13 +1570,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateClusterVersionInput(v *UpdateClus return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -1730,25 +1661,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateNodegroupConfigInput(v *UpdateNod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterName == nil { + if v.ClusterName == nil || len(*v.ClusterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} } if v.ClusterName != nil { - if len(*v.ClusterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} - } if err := encoder.SetURI("clusterName").String(*v.ClusterName); err != nil { return err } } - if v.NodegroupName == nil { + if v.NodegroupName == nil || len(*v.NodegroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member nodegroupName must not be empty")} } if v.NodegroupName != nil { - if len(*v.NodegroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member nodegroupName must not be empty")} - } if err := encoder.SetURI("nodegroupName").String(*v.NodegroupName); err != nil { return err } @@ -1845,25 +1770,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateNodegroupVersionInput(v *UpdateNo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterName == nil { + if v.ClusterName == nil || len(*v.ClusterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} } if v.ClusterName != nil { - if len(*v.ClusterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member clusterName must not be empty")} - } if err := encoder.SetURI("clusterName").String(*v.ClusterName); err != nil { return err } } - if v.NodegroupName == nil { + if v.NodegroupName == nil || len(*v.NodegroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member nodegroupName must not be empty")} } if v.NodegroupName != nil { - if len(*v.NodegroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member nodegroupName must not be empty")} - } if err := encoder.SetURI("nodegroupName").String(*v.NodegroupName); err != nil { return err } @@ -1881,9 +1800,9 @@ func awsRestjson1_serializeOpDocumentUpdateNodegroupVersionInput(v *UpdateNodegr ok.String(*v.ClientRequestToken) } - if v.Force != nil { + if v.Force { ok := object.Key("force") - ok.Boolean(*v.Force) + ok.Boolean(v.Force) } if v.LaunchTemplate != nil { @@ -1927,34 +1846,26 @@ func awsRestjson1_serializeDocumentEncryptionConfig(v *types.EncryptionConfig, v return nil } -func awsRestjson1_serializeDocumentEncryptionConfigList(v []*types.EncryptionConfig, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEncryptionConfigList(v []types.EncryptionConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentEncryptionConfig(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentEncryptionConfig(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentFargateProfileLabel(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFargateProfileLabel(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1978,17 +1889,13 @@ func awsRestjson1_serializeDocumentFargateProfileSelector(v *types.FargateProfil return nil } -func awsRestjson1_serializeDocumentFargateProfileSelectors(v []*types.FargateProfileSelector, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFargateProfileSelectors(v []types.FargateProfileSelector, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentFargateProfileSelector(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFargateProfileSelector(&v[i], av); err != nil { return err } } @@ -2007,32 +1914,24 @@ func awsRestjson1_serializeDocumentKubernetesNetworkConfigRequest(v *types.Kuber return nil } -func awsRestjson1_serializeDocumentLabelsKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLabelsKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentLabelsMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLabelsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2092,17 +1991,13 @@ func awsRestjson1_serializeDocumentLogSetup(v *types.LogSetup, value smithyjson. return nil } -func awsRestjson1_serializeDocumentLogSetups(v []*types.LogSetup, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLogSetups(v []types.LogSetup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentLogSetup(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentLogSetup(&v[i], av); err != nil { return err } } @@ -2173,32 +2068,24 @@ func awsRestjson1_serializeDocumentRemoteAccessConfig(v *types.RemoteAccessConfi return nil } -func awsRestjson1_serializeDocumentStringList(v []*string, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/eks/types/errors.go b/service/eks/types/errors.go index 9c0c3920e63..55e490963aa 100644 --- a/service/eks/types/errors.go +++ b/service/eks/types/errors.go @@ -215,7 +215,7 @@ func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return sm type UnsupportedAvailabilityZoneException struct { Message *string - ValidZones []*string + ValidZones []string ClusterName *string NodegroupName *string } diff --git a/service/eks/types/types.go b/service/eks/types/types.go index 0e0786a7f07..37738acd06e 100644 --- a/service/eks/types/types.go +++ b/service/eks/types/types.go @@ -40,7 +40,7 @@ type Cluster struct { CreatedAt *time.Time // The encryption configuration for the cluster. - EncryptionConfig []*EncryptionConfig + EncryptionConfig []EncryptionConfig // The endpoint for your Kubernetes API server. Endpoint *string @@ -83,7 +83,7 @@ type Cluster struct { // organization. Each tag consists of a key and an optional value, both of which // you define. Cluster tags do not propagate to any other resources associated with // the cluster. - Tags map[string]*string + Tags map[string]string // The Kubernetes server version for the cluster. Version *string @@ -97,7 +97,7 @@ type EncryptionConfig struct { Provider *Provider // Specifies the resources to be encrypted. The only supported value is "secrets". - Resources []*string + Resources []string } // An object representing an error when an asynchronous operation fails. @@ -132,7 +132,7 @@ type ErrorDetail struct { ErrorMessage *string // An optional field that contains the resource IDs associated with the error. - ResourceIds []*string + ResourceIds []string } // An object representing an AWS Fargate profile. @@ -158,20 +158,20 @@ type FargateProfile struct { PodExecutionRoleArn *string // The selectors to match for pods to use this Fargate profile. - Selectors []*FargateProfileSelector + Selectors []FargateProfileSelector // The current status of the Fargate profile. Status FargateProfileStatus // The IDs of subnets to launch pods into. - Subnets []*string + Subnets []string // The metadata applied to the Fargate profile to assist with categorization and // organization. Each tag consists of a key and an optional value, both of which // you define. Fargate profile tags do not propagate to any other resources // associated with the Fargate profile, such as the pods that are scheduled with // it. - Tags map[string]*string + Tags map[string]string } // An object representing an AWS Fargate profile selector. @@ -179,7 +179,7 @@ type FargateProfileSelector struct { // The Kubernetes labels that the selector should match. A pod must contain all of // the labels that are specified in the selector for it to be considered a match. - Labels map[string]*string + Labels map[string]string // The Kubernetes namespace that the selector should match. Namespace *string @@ -267,7 +267,7 @@ type Issue struct { Message *string // The AWS resources that are afflicted by this issue. - ResourceIds []*string + ResourceIds []string } // The Kubernetes network configuration for the cluster. @@ -339,7 +339,7 @@ type LaunchTemplateSpecification struct { type Logging struct { // The cluster control plane logging configuration for your cluster. - ClusterLogging []*LogSetup + ClusterLogging []LogSetup } // An object representing the enabled or disabled Kubernetes control plane logs for @@ -382,12 +382,12 @@ type Nodegroup struct { // If the node group wasn't deployed with a launch template, then this is the // instance type that is associated with the node group. If the node group was // deployed with a launch template, then this is null. - InstanceTypes []*string + InstanceTypes []string // The Kubernetes labels applied to the nodes in the node group. Only labels that // are applied with the Amazon EKS API are shown here. There may be other // Kubernetes labels applied to the nodes in this group. - Labels map[string]*string + Labels map[string]string // If a launch template was used to create the node group, then this is the launch // template that was used. @@ -432,13 +432,13 @@ type Nodegroup struct { // The subnets that were specified for the Auto Scaling group that is associated // with your node group. - Subnets []*string + Subnets []string // The metadata applied to the node group to assist with categorization and // organization. Each tag consists of a key and an optional value, both of which // you define. Node group tags do not propagate to any other resources associated // with the node group, such as the Amazon EC2 instances or subnets. - Tags map[string]*string + Tags map[string]string // The Kubernetes version of the managed node group. Version *string @@ -448,7 +448,7 @@ type Nodegroup struct { type NodegroupHealth struct { // Any issues that are associated with the node group. - Issues []*Issue + Issues []Issue } // An object representing the resources associated with the node group, such as @@ -456,7 +456,7 @@ type NodegroupHealth struct { type NodegroupResources struct { // The Auto Scaling groups associated with the node group. - AutoScalingGroups []*AutoScalingGroup + AutoScalingGroups []AutoScalingGroup // The remote access security group associated with the node group. This security // group controls SSH access to the worker nodes. @@ -517,7 +517,7 @@ type RemoteAccessConfig struct { // to the internet (0.0.0.0/0). For more information, see Security Groups for Your // VPC (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html) // in the Amazon Virtual Private Cloud User Guide. - SourceSecurityGroups []*string + SourceSecurityGroups []string } // An object representing an asynchronous update. @@ -527,13 +527,13 @@ type Update struct { CreatedAt *time.Time // Any errors associated with a Failed update. - Errors []*ErrorDetail + Errors []ErrorDetail // A UUID that is used to track the update. Id *string // A key-value map that contains the parameters associated with the update. - Params []*UpdateParam + Params []UpdateParam // The current status of the update. Status UpdateStatus @@ -546,10 +546,10 @@ type Update struct { type UpdateLabelsPayload struct { // Kubernetes labels to be added or updated. - AddOrUpdateLabels map[string]*string + AddOrUpdateLabels map[string]string // Kubernetes labels to be removed. - RemoveLabels []*string + RemoveLabels []string } // An object representing the details of an update request. @@ -594,18 +594,18 @@ type VpcConfigRequest struct { // more information, see Amazon EKS Cluster Endpoint Access Control // (https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html) in the // Amazon EKS User Guide . - PublicAccessCidrs []*string + PublicAccessCidrs []string // Specify one or more security groups for the cross-account elastic network // interfaces that Amazon EKS creates to use to allow communication between your // worker nodes and the Kubernetes control plane. If you don't specify a security // group, the default security group for your VPC is used. - SecurityGroupIds []*string + SecurityGroupIds []string // Specify subnets for your Amazon EKS worker nodes. Amazon EKS creates // cross-account elastic network interfaces in these subnets to allow communication // between your worker nodes and the Kubernetes control plane. - SubnetIds []*string + SubnetIds []string } // An object representing an Amazon EKS cluster VPC configuration response. @@ -626,13 +626,13 @@ type VpcConfigResponse struct { // Endpoint Access Control // (https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html) in the // Amazon EKS User Guide . - EndpointPrivateAccess *bool + EndpointPrivateAccess bool // This parameter indicates whether the Amazon EKS public API server endpoint is // enabled. If the Amazon EKS public API server endpoint is disabled, your // cluster's Kubernetes API server can only receive requests that originate from // within the cluster VPC. - EndpointPublicAccess *bool + EndpointPublicAccess bool // The CIDR blocks that are allowed access to your cluster's public Kubernetes API // server endpoint. Communication to the endpoint from addresses outside of the @@ -642,15 +642,15 @@ type VpcConfigResponse struct { // information, see Amazon EKS Cluster Endpoint Access Control // (https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html) in the // Amazon EKS User Guide . - PublicAccessCidrs []*string + PublicAccessCidrs []string // The security groups associated with the cross-account elastic network interfaces // that are used to allow communication between your worker nodes and the // Kubernetes control plane. - SecurityGroupIds []*string + SecurityGroupIds []string // The subnets associated with your cluster. - SubnetIds []*string + SubnetIds []string // The VPC associated with your cluster. VpcId *string diff --git a/service/elasticache/api_op_AddTagsToResource.go b/service/elasticache/api_op_AddTagsToResource.go index c293b015dd7..abad21b9067 100644 --- a/service/elasticache/api_op_AddTagsToResource.go +++ b/service/elasticache/api_op_AddTagsToResource.go @@ -54,7 +54,7 @@ type AddTagsToResourceInput struct { // key-value pair. A tag key must be accompanied by a tag value. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } // Represents the output from the AddTagsToResource, ListTagsForResource, and @@ -62,7 +62,7 @@ type AddTagsToResourceInput struct { type AddTagsToResourceOutput struct { // A list of cost allocation tags as key-value pairs. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_BatchApplyUpdateAction.go b/service/elasticache/api_op_BatchApplyUpdateAction.go index f7b553f21cf..a458ab343b4 100644 --- a/service/elasticache/api_op_BatchApplyUpdateAction.go +++ b/service/elasticache/api_op_BatchApplyUpdateAction.go @@ -37,19 +37,19 @@ type BatchApplyUpdateActionInput struct { ServiceUpdateName *string // The cache cluster IDs - CacheClusterIds []*string + CacheClusterIds []string // The replication group IDs - ReplicationGroupIds []*string + ReplicationGroupIds []string } type BatchApplyUpdateActionOutput struct { // Update actions that have been processed successfully - ProcessedUpdateActions []*types.ProcessedUpdateAction + ProcessedUpdateActions []types.ProcessedUpdateAction // Update actions that haven't been processed successfully - UnprocessedUpdateActions []*types.UnprocessedUpdateAction + UnprocessedUpdateActions []types.UnprocessedUpdateAction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_BatchStopUpdateAction.go b/service/elasticache/api_op_BatchStopUpdateAction.go index e7718c1a123..f348d6c1d1a 100644 --- a/service/elasticache/api_op_BatchStopUpdateAction.go +++ b/service/elasticache/api_op_BatchStopUpdateAction.go @@ -37,19 +37,19 @@ type BatchStopUpdateActionInput struct { ServiceUpdateName *string // The cache cluster IDs - CacheClusterIds []*string + CacheClusterIds []string // The replication group IDs - ReplicationGroupIds []*string + ReplicationGroupIds []string } type BatchStopUpdateActionOutput struct { // Update actions that have been processed successfully - ProcessedUpdateActions []*types.ProcessedUpdateAction + ProcessedUpdateActions []types.ProcessedUpdateAction // Update actions that haven't been processed successfully - UnprocessedUpdateActions []*types.UnprocessedUpdateAction + UnprocessedUpdateActions []types.UnprocessedUpdateAction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_CompleteMigration.go b/service/elasticache/api_op_CompleteMigration.go index f11fff2baee..7b441009ddf 100644 --- a/service/elasticache/api_op_CompleteMigration.go +++ b/service/elasticache/api_op_CompleteMigration.go @@ -37,7 +37,7 @@ type CompleteMigrationInput struct { // Forces the migration to stop without ensuring that data is in sync. It is // recommended to use this option only to abort the migration and not recommended // when application wants to continue migration to ElastiCache. - Force *bool + Force bool } type CompleteMigrationOutput struct { diff --git a/service/elasticache/api_op_CreateCacheCluster.go b/service/elasticache/api_op_CreateCacheCluster.go index 116cc78acda..77e92a2ad17 100644 --- a/service/elasticache/api_op_CreateCacheCluster.go +++ b/service/elasticache/api_op_CreateCacheCluster.go @@ -148,7 +148,7 @@ type CreateCacheClusterInput struct { // A list of security group names to associate with this cluster. Use this // parameter only when you are creating a cluster outside of an Amazon Virtual // Private Cloud (Amazon VPC). - CacheSecurityGroupNames []*string + CacheSecurityGroupNames []string // The name of the subnet group to be used for the cluster. Use this parameter only // when you are creating a cluster in an Amazon Virtual Private Cloud (Amazon VPC). @@ -206,7 +206,7 @@ type CreateCacheClusterInput struct { // the value of NumCacheNodes. If you want all the nodes in the same Availability // Zone, use PreferredAvailabilityZone instead, or repeat the Availability Zone // multiple times in the list. Default: System chosen Availability Zones. - PreferredAvailabilityZones []*string + PreferredAvailabilityZones []string // Specifies the weekly time range during which maintenance on the cluster is // performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H @@ -238,7 +238,7 @@ type CreateCacheClusterInput struct { PreferredOutpostArn *string // The outpost ARNs in which the cache cluster is created. - PreferredOutpostArns []*string + PreferredOutpostArns []string // The ID of the replication group to which this cluster should belong. If this // parameter is specified, the cluster is added to the specified replication group @@ -253,7 +253,7 @@ type CreateCacheClusterInput struct { // One or more VPC security groups associated with the cluster. Use this parameter // only when you are creating a cluster in an Amazon Virtual Private Cloud (Amazon // VPC). - SecurityGroupIds []*string + SecurityGroupIds []string // A single-element string list containing an Amazon Resource Name (ARN) that // uniquely identifies a Redis RDB snapshot file stored in Amazon S3. The snapshot @@ -261,7 +261,7 @@ type CreateCacheClusterInput struct { // the ARN cannot contain any commas. This parameter is only valid if the Engine // parameter is redis. Example of an Amazon S3 ARN: // arn:aws:s3:::my_bucket/snapshot1.rdb - SnapshotArns []*string + SnapshotArns []string // The name of a Redis snapshot from which to restore data into the new node group // (shard). The snapshot status changes to restoring while the new node group @@ -283,7 +283,7 @@ type CreateCacheClusterInput struct { SnapshotWindow *string // A list of cost allocation tags to be added to this resource. - Tags []*types.Tag + Tags []types.Tag } type CreateCacheClusterOutput struct { diff --git a/service/elasticache/api_op_CreateCacheSubnetGroup.go b/service/elasticache/api_op_CreateCacheSubnetGroup.go index fa19de61c29..b1c9f8f8d3f 100644 --- a/service/elasticache/api_op_CreateCacheSubnetGroup.go +++ b/service/elasticache/api_op_CreateCacheSubnetGroup.go @@ -46,7 +46,7 @@ type CreateCacheSubnetGroupInput struct { // A list of VPC subnet IDs for the cache subnet group. // // This member is required. - SubnetIds []*string + SubnetIds []string } type CreateCacheSubnetGroupOutput struct { diff --git a/service/elasticache/api_op_CreateReplicationGroup.go b/service/elasticache/api_op_CreateReplicationGroup.go index 314d5945906..1dfc30e9a11 100644 --- a/service/elasticache/api_op_CreateReplicationGroup.go +++ b/service/elasticache/api_op_CreateReplicationGroup.go @@ -185,7 +185,7 @@ type CreateReplicationGroupInput struct { CacheParameterGroupName *string // A list of cache security group names to associate with this replication group. - CacheSecurityGroupNames []*string + CacheSecurityGroupNames []string // The name of the cache subnet group to be used for the replication group. If // you're going to launch your cluster in an Amazon VPC, you need to create a @@ -229,7 +229,7 @@ type CreateReplicationGroupInput struct { // mode enabled) cluster from a S3 rdb file. You must configure each node group // (shard) using this parameter because you must specify the slots for each node // group. - NodeGroupConfiguration []*types.NodeGroupConfiguration + NodeGroupConfiguration []types.NodeGroupConfiguration // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) // topic to which notifications are sent. The Amazon SNS topic owner must be the @@ -263,7 +263,7 @@ type CreateReplicationGroupInput struct { // in Availability Zones associated with the subnets in the selected subnet group. // The number of Availability Zones listed must equal the value of // NumCacheClusters. Default: system chosen Availability Zones. - PreferredCacheClusterAZs []*string + PreferredCacheClusterAZs []string // Specifies the weekly time range during which maintenance on the cluster is // performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H @@ -304,7 +304,7 @@ type CreateReplicationGroupInput struct { // One or more Amazon VPC security groups associated with this replication group. // Use this parameter only when you are creating a replication group in an Amazon // Virtual Private Cloud (Amazon VPC). - SecurityGroupIds []*string + SecurityGroupIds []string // A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB // snapshot files stored in Amazon S3. The snapshot files are used to populate the @@ -313,7 +313,7 @@ type CreateReplicationGroupInput struct { // shards) specified by the parameter NumNodeGroups or the number of node groups // configured by NodeGroupConfiguration regardless of the number of ARNs specified // here. Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb - SnapshotArns []*string + SnapshotArns []string // The name of a snapshot from which to restore data into the new replication // group. The snapshot status changes to restoring while the new replication group @@ -335,7 +335,7 @@ type CreateReplicationGroupInput struct { // comma-separated key,value pairs (e.g. Key=myKey, Value=myKeyValue. You can // include multiple tags as shown following: Key=myKey, Value=myKeyValue // Key=mySecondKey, Value=mySecondKeyValue. - Tags []*types.Tag + Tags []types.Tag // A flag that enables in-transit encryption when set to true. You cannot modify // the value of TransitEncryptionEnabled after the cluster is created. To enable @@ -350,7 +350,7 @@ type CreateReplicationGroupInput struct { TransitEncryptionEnabled *bool // The list of user groups to associate with the replication group. - UserGroupIds []*string + UserGroupIds []string } type CreateReplicationGroupOutput struct { diff --git a/service/elasticache/api_op_CreateUser.go b/service/elasticache/api_op_CreateUser.go index 402ebad3047..de7331b0cdc 100644 --- a/service/elasticache/api_op_CreateUser.go +++ b/service/elasticache/api_op_CreateUser.go @@ -56,7 +56,7 @@ type CreateUserInput struct { // Passwords used for this user account. You can create up to two passwords for // each user. - Passwords []*string + Passwords []string } type CreateUserOutput struct { @@ -77,7 +77,7 @@ type CreateUserOutput struct { Status *string // Returns a list of the user group IDs the user belongs to. - UserGroupIds []*string + UserGroupIds []string // The ID of the user. UserId *string diff --git a/service/elasticache/api_op_CreateUserGroup.go b/service/elasticache/api_op_CreateUserGroup.go index d32db675f88..866852fb993 100644 --- a/service/elasticache/api_op_CreateUserGroup.go +++ b/service/elasticache/api_op_CreateUserGroup.go @@ -42,7 +42,7 @@ type CreateUserGroupInput struct { UserGroupId *string // The list of user IDs that belong to the user group. - UserIds []*string + UserIds []string } type CreateUserGroupOutput struct { @@ -57,7 +57,7 @@ type CreateUserGroupOutput struct { PendingChanges *types.UserGroupPendingChanges // A list of replication groups that the user group can access. - ReplicationGroups []*string + ReplicationGroups []string // Indicates user group status. Can be "creating", "active", "modifying", // "deleting". @@ -67,7 +67,7 @@ type CreateUserGroupOutput struct { UserGroupId *string // The list of user IDs that belong to the user group. - UserIds []*string + UserIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_DecreaseNodeGroupsInGlobalReplicationGroup.go b/service/elasticache/api_op_DecreaseNodeGroupsInGlobalReplicationGroup.go index 8cb62a3673b..430a32d3e4d 100644 --- a/service/elasticache/api_op_DecreaseNodeGroupsInGlobalReplicationGroup.go +++ b/service/elasticache/api_op_DecreaseNodeGroupsInGlobalReplicationGroup.go @@ -33,7 +33,7 @@ type DecreaseNodeGroupsInGlobalReplicationGroupInput struct { // the only permitted value for this parameter is true. // // This member is required. - ApplyImmediately *bool + ApplyImmediately bool // The name of the Global Datastore // @@ -44,21 +44,21 @@ type DecreaseNodeGroupsInGlobalReplicationGroupInput struct { // shard configuration // // This member is required. - NodeGroupCount *int32 + NodeGroupCount int32 // If the value of NodeGroupCount is less than the current number of node groups // (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. // NodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster. // ElastiCache for Redis will attempt to remove all node groups listed by // NodeGroupsToRemove from the cluster. - GlobalNodeGroupsToRemove []*string + GlobalNodeGroupsToRemove []string // If the value of NodeGroupCount is less than the current number of node groups // (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. // NodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster. // ElastiCache for Redis will attempt to remove all node groups listed by // NodeGroupsToRemove from the cluster. - GlobalNodeGroupsToRetain []*string + GlobalNodeGroupsToRetain []string } type DecreaseNodeGroupsInGlobalReplicationGroupOutput struct { diff --git a/service/elasticache/api_op_DecreaseReplicaCount.go b/service/elasticache/api_op_DecreaseReplicaCount.go index 2564c4bba28..32c2437502c 100644 --- a/service/elasticache/api_op_DecreaseReplicaCount.go +++ b/service/elasticache/api_op_DecreaseReplicaCount.go @@ -36,7 +36,7 @@ type DecreaseReplicaCountInput struct { // ApplyImmediately=False is not currently supported. // // This member is required. - ApplyImmediately *bool + ApplyImmediately bool // The id of the replication group from which you want to remove replica nodes. // @@ -65,11 +65,11 @@ type DecreaseReplicaCountInput struct { // A list of ConfigureShard objects that can be used to configure each shard in a // Redis (cluster mode enabled) replication group. The ConfigureShard has three // members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones. - ReplicaConfiguration []*types.ConfigureShard + ReplicaConfiguration []types.ConfigureShard // A list of the node ids to remove from the replication group or node group // (shard). - ReplicasToRemove []*string + ReplicasToRemove []string } type DecreaseReplicaCountOutput struct { diff --git a/service/elasticache/api_op_DeleteGlobalReplicationGroup.go b/service/elasticache/api_op_DeleteGlobalReplicationGroup.go index 1dc857e1e69..c9b3effb56d 100644 --- a/service/elasticache/api_op_DeleteGlobalReplicationGroup.go +++ b/service/elasticache/api_op_DeleteGlobalReplicationGroup.go @@ -52,7 +52,7 @@ type DeleteGlobalReplicationGroupInput struct { // The primary replication group is retained as a standalone replication group. // // This member is required. - RetainPrimaryReplicationGroup *bool + RetainPrimaryReplicationGroup bool } type DeleteGlobalReplicationGroupOutput struct { diff --git a/service/elasticache/api_op_DeleteUser.go b/service/elasticache/api_op_DeleteUser.go index 85e6972ea25..82c5d42fe96 100644 --- a/service/elasticache/api_op_DeleteUser.go +++ b/service/elasticache/api_op_DeleteUser.go @@ -56,7 +56,7 @@ type DeleteUserOutput struct { Status *string // Returns a list of the user group IDs the user belongs to. - UserGroupIds []*string + UserGroupIds []string // The ID of the user. UserId *string diff --git a/service/elasticache/api_op_DeleteUserGroup.go b/service/elasticache/api_op_DeleteUserGroup.go index 10b41b86534..8901b3ee9ba 100644 --- a/service/elasticache/api_op_DeleteUserGroup.go +++ b/service/elasticache/api_op_DeleteUserGroup.go @@ -50,7 +50,7 @@ type DeleteUserGroupOutput struct { PendingChanges *types.UserGroupPendingChanges // A list of replication groups that the user group can access. - ReplicationGroups []*string + ReplicationGroups []string // Indicates user group status. Can be "creating", "active", "modifying", // "deleting". @@ -60,7 +60,7 @@ type DeleteUserGroupOutput struct { UserGroupId *string // The list of user IDs that belong to the user group. - UserIds []*string + UserIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_DescribeCacheClusters.go b/service/elasticache/api_op_DescribeCacheClusters.go index e2df30c4dea..a0962671bbe 100644 --- a/service/elasticache/api_op_DescribeCacheClusters.go +++ b/service/elasticache/api_op_DescribeCacheClusters.go @@ -75,7 +75,7 @@ type DescribeCacheClustersOutput struct { // A list of clusters. Each item in the list contains detailed information about // one cluster. - CacheClusters []*types.CacheCluster + CacheClusters []types.CacheCluster // Provides an identifier to allow retrieval of paginated results. Marker *string diff --git a/service/elasticache/api_op_DescribeCacheEngineVersions.go b/service/elasticache/api_op_DescribeCacheEngineVersions.go index 4b1dcd82029..3bceaf3fd6c 100644 --- a/service/elasticache/api_op_DescribeCacheEngineVersions.go +++ b/service/elasticache/api_op_DescribeCacheEngineVersions.go @@ -45,7 +45,7 @@ type DescribeCacheEngineVersionsInput struct { // If true, specifies that only the default version of the specified engine or // engine and major version combination is to be returned. - DefaultOnly *bool + DefaultOnly bool // The cache engine to return. Valid values: memcached | redis Engine *string @@ -71,7 +71,7 @@ type DescribeCacheEngineVersionsOutput struct { // A list of cache engine version details. Each element in the list contains // detailed information about one cache engine version. - CacheEngineVersions []*types.CacheEngineVersion + CacheEngineVersions []types.CacheEngineVersion // Provides an identifier to allow retrieval of paginated results. Marker *string diff --git a/service/elasticache/api_op_DescribeCacheParameterGroups.go b/service/elasticache/api_op_DescribeCacheParameterGroups.go index a2e22448c0e..059346b665f 100644 --- a/service/elasticache/api_op_DescribeCacheParameterGroups.go +++ b/service/elasticache/api_op_DescribeCacheParameterGroups.go @@ -52,7 +52,7 @@ type DescribeCacheParameterGroupsOutput struct { // A list of cache parameter groups. Each element in the list contains detailed // information about one cache parameter group. - CacheParameterGroups []*types.CacheParameterGroup + CacheParameterGroups []types.CacheParameterGroup // Provides an identifier to allow retrieval of paginated results. Marker *string diff --git a/service/elasticache/api_op_DescribeCacheParameters.go b/service/elasticache/api_op_DescribeCacheParameters.go index 7c75e4c3d7c..611c82d499f 100644 --- a/service/elasticache/api_op_DescribeCacheParameters.go +++ b/service/elasticache/api_op_DescribeCacheParameters.go @@ -56,13 +56,13 @@ type DescribeCacheParametersOutput struct { // A list of parameters specific to a particular cache node type. Each element in // the list contains detailed information about one parameter. - CacheNodeTypeSpecificParameters []*types.CacheNodeTypeSpecificParameter + CacheNodeTypeSpecificParameters []types.CacheNodeTypeSpecificParameter // Provides an identifier to allow retrieval of paginated results. Marker *string // A list of Parameter instances. - Parameters []*types.Parameter + Parameters []types.Parameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_DescribeCacheSecurityGroups.go b/service/elasticache/api_op_DescribeCacheSecurityGroups.go index d287bbb2e90..eadf77dea1a 100644 --- a/service/elasticache/api_op_DescribeCacheSecurityGroups.go +++ b/service/elasticache/api_op_DescribeCacheSecurityGroups.go @@ -53,7 +53,7 @@ type DescribeCacheSecurityGroupsOutput struct { // A list of cache security groups. Each element in the list contains detailed // information about one group. - CacheSecurityGroups []*types.CacheSecurityGroup + CacheSecurityGroups []types.CacheSecurityGroup // Provides an identifier to allow retrieval of paginated results. Marker *string diff --git a/service/elasticache/api_op_DescribeCacheSubnetGroups.go b/service/elasticache/api_op_DescribeCacheSubnetGroups.go index 62ec63071d5..125ad74ef95 100644 --- a/service/elasticache/api_op_DescribeCacheSubnetGroups.go +++ b/service/elasticache/api_op_DescribeCacheSubnetGroups.go @@ -54,7 +54,7 @@ type DescribeCacheSubnetGroupsOutput struct { // A list of cache subnet groups. Each element in the list contains detailed // information about one group. - CacheSubnetGroups []*types.CacheSubnetGroup + CacheSubnetGroups []types.CacheSubnetGroup // Provides an identifier to allow retrieval of paginated results. Marker *string diff --git a/service/elasticache/api_op_DescribeEvents.go b/service/elasticache/api_op_DescribeEvents.go index ad0d6d23185..e0c96fa2d0f 100644 --- a/service/elasticache/api_op_DescribeEvents.go +++ b/service/elasticache/api_op_DescribeEvents.go @@ -72,7 +72,7 @@ type DescribeEventsOutput struct { // A list of events. Each element in the list contains detailed information about // one event. - Events []*types.Event + Events []types.Event // Provides an identifier to allow retrieval of paginated results. Marker *string diff --git a/service/elasticache/api_op_DescribeGlobalReplicationGroups.go b/service/elasticache/api_op_DescribeGlobalReplicationGroups.go index 067af5c9d14..7d73688bb7d 100644 --- a/service/elasticache/api_op_DescribeGlobalReplicationGroups.go +++ b/service/elasticache/api_op_DescribeGlobalReplicationGroups.go @@ -51,7 +51,7 @@ type DescribeGlobalReplicationGroupsInput struct { type DescribeGlobalReplicationGroupsOutput struct { // Indicates the slot configuration and global identifier for each slice group. - GlobalReplicationGroups []*types.GlobalReplicationGroup + GlobalReplicationGroups []types.GlobalReplicationGroup // An optional marker returned from a prior request. Use this marker for pagination // of results from this operation. If this parameter is specified, the response diff --git a/service/elasticache/api_op_DescribeReplicationGroups.go b/service/elasticache/api_op_DescribeReplicationGroups.go index 7759cb36b53..082bce3621b 100644 --- a/service/elasticache/api_op_DescribeReplicationGroups.go +++ b/service/elasticache/api_op_DescribeReplicationGroups.go @@ -58,7 +58,7 @@ type DescribeReplicationGroupsOutput struct { // A list of replication groups. Each item in the list contains detailed // information about one replication group. - ReplicationGroups []*types.ReplicationGroup + ReplicationGroups []types.ReplicationGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_DescribeReservedCacheNodes.go b/service/elasticache/api_op_DescribeReservedCacheNodes.go index 8db137e0b6d..d9c5f53c083 100644 --- a/service/elasticache/api_op_DescribeReservedCacheNodes.go +++ b/service/elasticache/api_op_DescribeReservedCacheNodes.go @@ -142,7 +142,7 @@ type DescribeReservedCacheNodesOutput struct { // A list of reserved cache nodes. Each element in the list contains detailed // information about one node. - ReservedCacheNodes []*types.ReservedCacheNode + ReservedCacheNodes []types.ReservedCacheNode // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_DescribeReservedCacheNodesOfferings.go b/service/elasticache/api_op_DescribeReservedCacheNodesOfferings.go index c605b83c9b3..65c6f0575b0 100644 --- a/service/elasticache/api_op_DescribeReservedCacheNodesOfferings.go +++ b/service/elasticache/api_op_DescribeReservedCacheNodesOfferings.go @@ -137,7 +137,7 @@ type DescribeReservedCacheNodesOfferingsOutput struct { // A list of reserved cache node offerings. Each element in the list contains // detailed information about one offering. - ReservedCacheNodesOfferings []*types.ReservedCacheNodesOffering + ReservedCacheNodesOfferings []types.ReservedCacheNodesOffering // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_DescribeServiceUpdates.go b/service/elasticache/api_op_DescribeServiceUpdates.go index 21aff90a3fa..cf3f090bff1 100644 --- a/service/elasticache/api_op_DescribeServiceUpdates.go +++ b/service/elasticache/api_op_DescribeServiceUpdates.go @@ -54,7 +54,7 @@ type DescribeServiceUpdatesOutput struct { Marker *string // A list of service updates - ServiceUpdates []*types.ServiceUpdate + ServiceUpdates []types.ServiceUpdate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_DescribeSnapshots.go b/service/elasticache/api_op_DescribeSnapshots.go index a9ba23955ab..555f784ed83 100644 --- a/service/elasticache/api_op_DescribeSnapshots.go +++ b/service/elasticache/api_op_DescribeSnapshots.go @@ -79,7 +79,7 @@ type DescribeSnapshotsOutput struct { // A list of snapshots. Each item in the list contains detailed information about // one snapshot. - Snapshots []*types.Snapshot + Snapshots []types.Snapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_DescribeUpdateActions.go b/service/elasticache/api_op_DescribeUpdateActions.go index c8c8aa4094c..2200a8cbbf9 100644 --- a/service/elasticache/api_op_DescribeUpdateActions.go +++ b/service/elasticache/api_op_DescribeUpdateActions.go @@ -30,7 +30,7 @@ func (c *Client) DescribeUpdateActions(ctx context.Context, params *DescribeUpda type DescribeUpdateActionsInput struct { // The cache cluster IDs - CacheClusterIds []*string + CacheClusterIds []string // The Elasticache engine to which the update applies. Either Redis or Memcached Engine *string @@ -45,7 +45,7 @@ type DescribeUpdateActionsInput struct { MaxRecords *int32 // The replication group IDs - ReplicationGroupIds []*string + ReplicationGroupIds []string // The unique ID of the service update ServiceUpdateName *string @@ -73,7 +73,7 @@ type DescribeUpdateActionsOutput struct { Marker *string // Returns a list of update actions - UpdateActions []*types.UpdateAction + UpdateActions []types.UpdateAction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_DescribeUserGroups.go b/service/elasticache/api_op_DescribeUserGroups.go index 1d00c74a738..80a8d859d96 100644 --- a/service/elasticache/api_op_DescribeUserGroups.go +++ b/service/elasticache/api_op_DescribeUserGroups.go @@ -53,7 +53,7 @@ type DescribeUserGroupsOutput struct { Marker *string // Returns a list of user groups. - UserGroups []*types.UserGroup + UserGroups []types.UserGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_DescribeUsers.go b/service/elasticache/api_op_DescribeUsers.go index 2af333f42f6..30830bbaa93 100644 --- a/service/elasticache/api_op_DescribeUsers.go +++ b/service/elasticache/api_op_DescribeUsers.go @@ -33,7 +33,7 @@ type DescribeUsersInput struct { Engine *string // Filter to determine the list of User IDs to return. - Filters []*types.Filter + Filters []types.Filter // An optional marker returned from a prior request. Use this marker for pagination // of results from this operation. If this parameter is specified, the response @@ -59,7 +59,7 @@ type DescribeUsersOutput struct { Marker *string // A list of users. - Users []*types.User + Users []types.User // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_IncreaseNodeGroupsInGlobalReplicationGroup.go b/service/elasticache/api_op_IncreaseNodeGroupsInGlobalReplicationGroup.go index 76ebd0f1651..1b289451a11 100644 --- a/service/elasticache/api_op_IncreaseNodeGroupsInGlobalReplicationGroup.go +++ b/service/elasticache/api_op_IncreaseNodeGroupsInGlobalReplicationGroup.go @@ -33,7 +33,7 @@ type IncreaseNodeGroupsInGlobalReplicationGroupInput struct { // value for this parameter is true. // // This member is required. - ApplyImmediately *bool + ApplyImmediately bool // The name of the Global Datastore // @@ -43,11 +43,11 @@ type IncreaseNodeGroupsInGlobalReplicationGroupInput struct { // The number of node groups you wish to add // // This member is required. - NodeGroupCount *int32 + NodeGroupCount int32 // Describes the replication group IDs, the AWS regions where they are stored and // the shard configuration for each that comprise the Global Datastore - RegionalConfigurations []*types.RegionalConfiguration + RegionalConfigurations []types.RegionalConfiguration } type IncreaseNodeGroupsInGlobalReplicationGroupOutput struct { diff --git a/service/elasticache/api_op_IncreaseReplicaCount.go b/service/elasticache/api_op_IncreaseReplicaCount.go index b50c3901e9e..267368da84a 100644 --- a/service/elasticache/api_op_IncreaseReplicaCount.go +++ b/service/elasticache/api_op_IncreaseReplicaCount.go @@ -36,7 +36,7 @@ type IncreaseReplicaCountInput struct { // ApplyImmediately=False is not currently supported. // // This member is required. - ApplyImmediately *bool + ApplyImmediately bool // The id of the replication group to which you want to add replica nodes. // @@ -53,7 +53,7 @@ type IncreaseReplicaCountInput struct { // A list of ConfigureShard objects that can be used to configure each shard in a // Redis (cluster mode enabled) replication group. The ConfigureShard has three // members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones. - ReplicaConfiguration []*types.ConfigureShard + ReplicaConfiguration []types.ConfigureShard } type IncreaseReplicaCountOutput struct { diff --git a/service/elasticache/api_op_ListAllowedNodeTypeModifications.go b/service/elasticache/api_op_ListAllowedNodeTypeModifications.go index 8f1113454ac..58915a5dc29 100644 --- a/service/elasticache/api_op_ListAllowedNodeTypeModifications.go +++ b/service/elasticache/api_op_ListAllowedNodeTypeModifications.go @@ -55,13 +55,13 @@ type ListAllowedNodeTypeModificationsOutput struct { // use to scale your cluster or replication group. When scaling down a Redis // cluster or replication group using ModifyCacheCluster or ModifyReplicationGroup, // use a value from this list for the CacheNodeType parameter. - ScaleDownModifications []*string + ScaleDownModifications []string // A string list, each element of which specifies a cache node type which you can // use to scale your cluster or replication group. When scaling up a Redis cluster // or replication group using ModifyCacheCluster or ModifyReplicationGroup, use a // value from this list for the CacheNodeType parameter. - ScaleUpModifications []*string + ScaleUpModifications []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_ListTagsForResource.go b/service/elasticache/api_op_ListTagsForResource.go index 2c480cf3190..df08f735bd0 100644 --- a/service/elasticache/api_op_ListTagsForResource.go +++ b/service/elasticache/api_op_ListTagsForResource.go @@ -52,7 +52,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // A list of cost allocation tags as key-value pairs. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_ModifyCacheCluster.go b/service/elasticache/api_op_ModifyCacheCluster.go index 168caba66d7..546a7693b39 100644 --- a/service/elasticache/api_op_ModifyCacheCluster.go +++ b/service/elasticache/api_op_ModifyCacheCluster.go @@ -53,7 +53,7 @@ type ModifyCacheClusterInput struct { // reboot, whichever occurs first. If you perform a ModifyCacheCluster before a // pending modification is applied, the pending modification is replaced by the // newer modification. Valid values: true | false Default: false - ApplyImmediately *bool + ApplyImmediately bool // Reserved parameter. The password used to access a password protected server. // This parameter must be specified with the auth-token-update parameter. Password @@ -94,7 +94,7 @@ type ModifyCacheClusterInput struct { // NumCacheNodes in the request. For example: If you have 3 active cache nodes, 7 // pending cache nodes, and the number of cache nodes in this ModifyCacheCluster // call is 5, you must list 2 (7 - 5) cache node IDs to remove. - CacheNodeIdsToRemove []*string + CacheNodeIdsToRemove []string // A valid cache node type that you want to scale this cluster up to. CacheNodeType *string @@ -109,7 +109,7 @@ type ModifyCacheClusterInput struct { // with clusters that are created outside of an Amazon Virtual Private Cloud // (Amazon VPC). Constraints: Must contain no more than 255 alphanumeric // characters. Must not be "Default". - CacheSecurityGroupNames []*string + CacheSecurityGroupNames []string // The upgraded version of the cache engine to be run on the cache nodes. // Important: You can upgrade to a newer engine version (see Selecting a Cache @@ -192,7 +192,7 @@ type ModifyCacheClusterInput struct { // the new create request is Apply Immediately - Yes, all creates are performed // immediately. If the new create request is Apply Immediately - No, all creates // are pending. - NewAvailabilityZones []*string + NewAvailabilityZones []string // The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications // are sent. The Amazon SNS topic owner must be same as the cluster owner. @@ -255,7 +255,7 @@ type ModifyCacheClusterInput struct { // Specifies the VPC Security Groups associated with the cluster. This parameter // can be used only with clusters that are created in an Amazon Virtual Private // Cloud (Amazon VPC). - SecurityGroupIds []*string + SecurityGroupIds []string // The number of days for which ElastiCache retains automatic cluster snapshots // before deleting them. For example, if you set SnapshotRetentionLimit to 5, a diff --git a/service/elasticache/api_op_ModifyCacheParameterGroup.go b/service/elasticache/api_op_ModifyCacheParameterGroup.go index 8bf137daeb2..3b0199a0624 100644 --- a/service/elasticache/api_op_ModifyCacheParameterGroup.go +++ b/service/elasticache/api_op_ModifyCacheParameterGroup.go @@ -42,7 +42,7 @@ type ModifyCacheParameterGroupInput struct { // maximum of 20 parameters may be modified per request. // // This member is required. - ParameterNameValues []*types.ParameterNameValue + ParameterNameValues []types.ParameterNameValue } // Represents the output of one of the following operations: diff --git a/service/elasticache/api_op_ModifyCacheSubnetGroup.go b/service/elasticache/api_op_ModifyCacheSubnetGroup.go index c824bd98656..90e2ba23db4 100644 --- a/service/elasticache/api_op_ModifyCacheSubnetGroup.go +++ b/service/elasticache/api_op_ModifyCacheSubnetGroup.go @@ -41,7 +41,7 @@ type ModifyCacheSubnetGroupInput struct { CacheSubnetGroupDescription *string // The EC2 subnet IDs for the cache subnet group. - SubnetIds []*string + SubnetIds []string } type ModifyCacheSubnetGroupOutput struct { diff --git a/service/elasticache/api_op_ModifyGlobalReplicationGroup.go b/service/elasticache/api_op_ModifyGlobalReplicationGroup.go index 61c08b69556..8b3172990fd 100644 --- a/service/elasticache/api_op_ModifyGlobalReplicationGroup.go +++ b/service/elasticache/api_op_ModifyGlobalReplicationGroup.go @@ -35,7 +35,7 @@ type ModifyGlobalReplicationGroupInput struct { // PreferredMaintenceWindow. // // This member is required. - ApplyImmediately *bool + ApplyImmediately bool // The name of the Global Datastore // diff --git a/service/elasticache/api_op_ModifyReplicationGroup.go b/service/elasticache/api_op_ModifyReplicationGroup.go index 267b2c63bc1..6ce13ae37f7 100644 --- a/service/elasticache/api_op_ModifyReplicationGroup.go +++ b/service/elasticache/api_op_ModifyReplicationGroup.go @@ -52,7 +52,7 @@ type ModifyReplicationGroupInput struct { // changes to the nodes in the replication group are applied on the next // maintenance reboot, or the next failure reboot, whichever occurs first. Valid // values: true | false Default: false - ApplyImmediately *bool + ApplyImmediately bool // Reserved parameter. The password used to access a password protected server. // This parameter must be specified with the auth-token-update-strategy parameter. @@ -103,7 +103,7 @@ type ModifyReplicationGroupInput struct { // This parameter can be used only with replication group containing clusters // running outside of an Amazon Virtual Private Cloud (Amazon VPC). Constraints: // Must contain no more than 255 alphanumeric characters. Must not be Default. - CacheSecurityGroupNames []*string + CacheSecurityGroupNames []string // The upgraded version of the cache engine to be run on the clusters in the // replication group. Important: You can upgrade to a newer engine version (see @@ -170,7 +170,7 @@ type ModifyReplicationGroupInput struct { // Specifies the VPC Security Groups associated with the clusters in the // replication group. This parameter can be used only with replication group // containing clusters running in an Amazon Virtual Private Cloud (Amazon VPC). - SecurityGroupIds []*string + SecurityGroupIds []string // The number of days for which ElastiCache retains automatic node group (shard) // snapshots before deleting them. For example, if you set SnapshotRetentionLimit @@ -191,11 +191,11 @@ type ModifyReplicationGroupInput struct { SnapshottingClusterId *string // A list of user group IDs. - UserGroupIdsToAdd []*string + UserGroupIdsToAdd []string // A list of users groups to remove, meaning the users in the group no longer can // access thereplication group. - UserGroupIdsToRemove []*string + UserGroupIdsToRemove []string } type ModifyReplicationGroupOutput struct { diff --git a/service/elasticache/api_op_ModifyReplicationGroupShardConfiguration.go b/service/elasticache/api_op_ModifyReplicationGroupShardConfiguration.go index 28ee2cdcfca..bd172b705f8 100644 --- a/service/elasticache/api_op_ModifyReplicationGroupShardConfiguration.go +++ b/service/elasticache/api_op_ModifyReplicationGroupShardConfiguration.go @@ -35,13 +35,13 @@ type ModifyReplicationGroupShardConfigurationInput struct { // the only permitted value for this parameter is true. Value: true // // This member is required. - ApplyImmediately *bool + ApplyImmediately bool // The number of node groups (shards) that results from the modification of the // shard configuration. // // This member is required. - NodeGroupCount *int32 + NodeGroupCount int32 // The name of the Redis (cluster mode enabled) cluster (replication group) on // which the shards are to be configured. @@ -54,14 +54,14 @@ type ModifyReplicationGroupShardConfigurationInput struct { // NodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster. // ElastiCache for Redis will attempt to remove all node groups listed by // NodeGroupsToRemove from the cluster. - NodeGroupsToRemove []*string + NodeGroupsToRemove []string // If the value of NodeGroupCount is less than the current number of node groups // (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. // NodeGroupsToRetain is a list of NodeGroupIds to retain in the cluster. // ElastiCache for Redis will attempt to remove all node groups except those listed // by NodeGroupsToRetain from the cluster. - NodeGroupsToRetain []*string + NodeGroupsToRetain []string // Specifies the preferred availability zones for each node group in the cluster. // If the value of NodeGroupCount is greater than the current number of node groups @@ -69,7 +69,7 @@ type ModifyReplicationGroupShardConfigurationInput struct { // of the cluster's shards. If you omit this parameter ElastiCache selects // availability zones for you. You can specify this parameter only if the value of // NodeGroupCount is greater than the current number of node groups (shards). - ReshardingConfiguration []*types.ReshardingConfiguration + ReshardingConfiguration []types.ReshardingConfiguration } type ModifyReplicationGroupShardConfigurationOutput struct { diff --git a/service/elasticache/api_op_ModifyUser.go b/service/elasticache/api_op_ModifyUser.go index a6584b82ae3..b374f3dbc34 100644 --- a/service/elasticache/api_op_ModifyUser.go +++ b/service/elasticache/api_op_ModifyUser.go @@ -44,7 +44,7 @@ type ModifyUserInput struct { NoPasswordRequired *bool // The passwords belonging to the user account. You are allowed up to two. - Passwords []*string + Passwords []string } type ModifyUserOutput struct { @@ -65,7 +65,7 @@ type ModifyUserOutput struct { Status *string // Returns a list of the user group IDs the user belongs to. - UserGroupIds []*string + UserGroupIds []string // The ID of the user. UserId *string diff --git a/service/elasticache/api_op_ModifyUserGroup.go b/service/elasticache/api_op_ModifyUserGroup.go index 71787e545e1..654c69c1a24 100644 --- a/service/elasticache/api_op_ModifyUserGroup.go +++ b/service/elasticache/api_op_ModifyUserGroup.go @@ -35,10 +35,10 @@ type ModifyUserGroupInput struct { UserGroupId *string // The list of user IDs to add to the user group. - UserIdsToAdd []*string + UserIdsToAdd []string // The list of user IDs to remove from the user group. - UserIdsToRemove []*string + UserIdsToRemove []string } type ModifyUserGroupOutput struct { @@ -53,7 +53,7 @@ type ModifyUserGroupOutput struct { PendingChanges *types.UserGroupPendingChanges // A list of replication groups that the user group can access. - ReplicationGroups []*string + ReplicationGroups []string // Indicates user group status. Can be "creating", "active", "modifying", // "deleting". @@ -63,7 +63,7 @@ type ModifyUserGroupOutput struct { UserGroupId *string // The list of user IDs that belong to the user group. - UserIds []*string + UserIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_RebalanceSlotsInGlobalReplicationGroup.go b/service/elasticache/api_op_RebalanceSlotsInGlobalReplicationGroup.go index 17a1286556e..893ea80c7d4 100644 --- a/service/elasticache/api_op_RebalanceSlotsInGlobalReplicationGroup.go +++ b/service/elasticache/api_op_RebalanceSlotsInGlobalReplicationGroup.go @@ -33,7 +33,7 @@ type RebalanceSlotsInGlobalReplicationGroupInput struct { // If True, redistribution is applied immediately. // // This member is required. - ApplyImmediately *bool + ApplyImmediately bool // The name of the Global Datastore // diff --git a/service/elasticache/api_op_RebootCacheCluster.go b/service/elasticache/api_op_RebootCacheCluster.go index 2d5eb0a3f59..fb5bb65760b 100644 --- a/service/elasticache/api_op_RebootCacheCluster.go +++ b/service/elasticache/api_op_RebootCacheCluster.go @@ -50,7 +50,7 @@ type RebootCacheClusterInput struct { // 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs. // // This member is required. - CacheNodeIdsToReboot []*string + CacheNodeIdsToReboot []string } type RebootCacheClusterOutput struct { diff --git a/service/elasticache/api_op_RemoveTagsFromResource.go b/service/elasticache/api_op_RemoveTagsFromResource.go index 18d0c434c7c..eb444d6a7e0 100644 --- a/service/elasticache/api_op_RemoveTagsFromResource.go +++ b/service/elasticache/api_op_RemoveTagsFromResource.go @@ -43,7 +43,7 @@ type RemoveTagsFromResourceInput struct { // A list of TagKeys identifying the tags you want removed from the named resource. // // This member is required. - TagKeys []*string + TagKeys []string } // Represents the output from the AddTagsToResource, ListTagsForResource, and @@ -51,7 +51,7 @@ type RemoveTagsFromResourceInput struct { type RemoveTagsFromResourceOutput struct { // A list of cost allocation tags as key-value pairs. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticache/api_op_ResetCacheParameterGroup.go b/service/elasticache/api_op_ResetCacheParameterGroup.go index 8048f9546ac..cbdb607f206 100644 --- a/service/elasticache/api_op_ResetCacheParameterGroup.go +++ b/service/elasticache/api_op_ResetCacheParameterGroup.go @@ -42,12 +42,12 @@ type ResetCacheParameterGroupInput struct { // ResetAllParameters is true, do not use ParameterNameValues. If // ResetAllParameters is false, you must specify the name of at least one parameter // to reset. - ParameterNameValues []*types.ParameterNameValue + ParameterNameValues []types.ParameterNameValue // If true, all parameters in the cache parameter group are reset to their default // values. If false, only the parameters listed by ParameterNameValues are reset to // their default values. Valid values: true | false - ResetAllParameters *bool + ResetAllParameters bool } // Represents the output of one of the following operations: diff --git a/service/elasticache/api_op_StartMigration.go b/service/elasticache/api_op_StartMigration.go index 3ec998d6301..639bcd5a66f 100644 --- a/service/elasticache/api_op_StartMigration.go +++ b/service/elasticache/api_op_StartMigration.go @@ -33,7 +33,7 @@ type StartMigrationInput struct { // disabled), list should have only one element. // // This member is required. - CustomerNodeEndpointList []*types.CustomerNodeEndpoint + CustomerNodeEndpointList []types.CustomerNodeEndpoint // The ID of the replication group to which data should be migrated. // diff --git a/service/elasticache/deserializers.go b/service/elasticache/deserializers.go index 54fcf3ad877..65b0f479e6a 100644 --- a/service/elasticache/deserializers.go +++ b/service/elasticache/deserializers.go @@ -9267,7 +9267,7 @@ func awsAwsquery_deserializeDocumentAPICallRateForCustomerExceededFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9377,7 +9377,7 @@ func awsAwsquery_deserializeDocumentAuthorizationAlreadyExistsFault(v **types.Au } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9425,7 +9425,7 @@ func awsAwsquery_deserializeDocumentAuthorizationNotFoundFault(v **types.Authori } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9473,7 +9473,7 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -9486,13 +9486,13 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, return nil } -func awsAwsquery_deserializeDocumentAvailabilityZonesList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailabilityZonesList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -9510,20 +9510,17 @@ func awsAwsquery_deserializeDocumentAvailabilityZonesList(v *[]*string, decoder decoder = memberDecoder for { if strings.EqualFold("AvailabilityZone", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -9536,17 +9533,17 @@ func awsAwsquery_deserializeDocumentAvailabilityZonesList(v *[]*string, decoder return nil } -func awsAwsquery_deserializeDocumentAvailabilityZonesListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAvailabilityZonesListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -9554,14 +9551,11 @@ func awsAwsquery_deserializeDocumentAvailabilityZonesListUnwrapped(v *[]*string, return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -9603,7 +9597,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("AtRestEncryptionEnabled", t.Name.Local): @@ -9619,7 +9613,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.AtRestEncryptionEnabled = &xtv + sv.AtRestEncryptionEnabled = ptr.Bool(xtv) } case strings.EqualFold("AuthTokenEnabled", t.Name.Local): @@ -9635,7 +9629,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.AuthTokenEnabled = &xtv + sv.AuthTokenEnabled = ptr.Bool(xtv) } case strings.EqualFold("AuthTokenLastModifiedDate", t.Name.Local): @@ -9652,7 +9646,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder if err != nil { return err } - sv.AuthTokenLastModifiedDate = &t + sv.AuthTokenLastModifiedDate = ptr.Time(t) } case strings.EqualFold("AutoMinorVersionUpgrade", t.Name.Local): @@ -9668,7 +9662,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AutoMinorVersionUpgrade = &xtv + sv.AutoMinorVersionUpgrade = xtv } case strings.EqualFold("CacheClusterCreateTime", t.Name.Local): @@ -9685,7 +9679,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder if err != nil { return err } - sv.CacheClusterCreateTime = &t + sv.CacheClusterCreateTime = ptr.Time(t) } case strings.EqualFold("CacheClusterId", t.Name.Local): @@ -9701,7 +9695,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } if val != nil { xtv := string(val) - sv.CacheClusterId = &xtv + sv.CacheClusterId = ptr.String(xtv) } case strings.EqualFold("CacheClusterStatus", t.Name.Local): @@ -9717,7 +9711,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } if val != nil { xtv := string(val) - sv.CacheClusterStatus = &xtv + sv.CacheClusterStatus = ptr.String(xtv) } case strings.EqualFold("CacheNodes", t.Name.Local): @@ -9739,7 +9733,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } if val != nil { xtv := string(val) - sv.CacheNodeType = &xtv + sv.CacheNodeType = ptr.String(xtv) } case strings.EqualFold("CacheParameterGroup", t.Name.Local): @@ -9767,7 +9761,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } if val != nil { xtv := string(val) - sv.CacheSubnetGroupName = &xtv + sv.CacheSubnetGroupName = ptr.String(xtv) } case strings.EqualFold("ClientDownloadLandingPage", t.Name.Local): @@ -9783,7 +9777,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } if val != nil { xtv := string(val) - sv.ClientDownloadLandingPage = &xtv + sv.ClientDownloadLandingPage = ptr.String(xtv) } case strings.EqualFold("ConfigurationEndpoint", t.Name.Local): @@ -9805,7 +9799,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -9821,7 +9815,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("NotificationConfiguration", t.Name.Local): @@ -9866,7 +9860,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } if val != nil { xtv := string(val) - sv.PreferredAvailabilityZone = &xtv + sv.PreferredAvailabilityZone = ptr.String(xtv) } case strings.EqualFold("PreferredMaintenanceWindow", t.Name.Local): @@ -9882,7 +9876,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } if val != nil { xtv := string(val) - sv.PreferredMaintenanceWindow = &xtv + sv.PreferredMaintenanceWindow = ptr.String(xtv) } case strings.EqualFold("PreferredOutpostArn", t.Name.Local): @@ -9898,7 +9892,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } if val != nil { xtv := string(val) - sv.PreferredOutpostArn = &xtv + sv.PreferredOutpostArn = ptr.String(xtv) } case strings.EqualFold("ReplicationGroupId", t.Name.Local): @@ -9914,7 +9908,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } if val != nil { xtv := string(val) - sv.ReplicationGroupId = &xtv + sv.ReplicationGroupId = ptr.String(xtv) } case strings.EqualFold("SecurityGroups", t.Name.Local): @@ -9953,7 +9947,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder } if val != nil { xtv := string(val) - sv.SnapshotWindow = &xtv + sv.SnapshotWindow = ptr.String(xtv) } case strings.EqualFold("TransitEncryptionEnabled", t.Name.Local): @@ -9969,7 +9963,7 @@ func awsAwsquery_deserializeDocumentCacheCluster(v **types.CacheCluster, decoder if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.TransitEncryptionEnabled = &xtv + sv.TransitEncryptionEnabled = ptr.Bool(xtv) } default: @@ -10017,7 +10011,7 @@ func awsAwsquery_deserializeDocumentCacheClusterAlreadyExistsFault(v **types.Cac } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10030,13 +10024,13 @@ func awsAwsquery_deserializeDocumentCacheClusterAlreadyExistsFault(v **types.Cac return nil } -func awsAwsquery_deserializeDocumentCacheClusterList(v *[]*types.CacheCluster, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheClusterList(v *[]types.CacheCluster, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CacheCluster + var sv []types.CacheCluster if *v == nil { - sv = make([]*types.CacheCluster, 0) + sv = make([]types.CacheCluster, 0) } else { sv = *v } @@ -10052,11 +10046,13 @@ func awsAwsquery_deserializeDocumentCacheClusterList(v *[]*types.CacheCluster, d } for { if strings.EqualFold("CacheCluster", t.Name.Local) { - var col *types.CacheCluster + var col types.CacheCluster nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheCluster(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheCluster(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10069,23 +10065,25 @@ func awsAwsquery_deserializeDocumentCacheClusterList(v *[]*types.CacheCluster, d return nil } -func awsAwsquery_deserializeDocumentCacheClusterListUnwrapped(v *[]*types.CacheCluster, decoder smithyxml.NodeDecoder) error { - var sv []*types.CacheCluster +func awsAwsquery_deserializeDocumentCacheClusterListUnwrapped(v *[]types.CacheCluster, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheCluster if *v == nil { - sv = make([]*types.CacheCluster, 0) + sv = make([]types.CacheCluster, 0) } else { sv = *v } switch { default: - var mv *types.CacheCluster + var mv types.CacheCluster t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheCluster(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheCluster(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10126,7 +10124,7 @@ func awsAwsquery_deserializeDocumentCacheClusterNotFoundFault(v **types.CacheClu } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10174,7 +10172,7 @@ func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVers } if val != nil { xtv := string(val) - sv.CacheEngineDescription = &xtv + sv.CacheEngineDescription = ptr.String(xtv) } case strings.EqualFold("CacheEngineVersionDescription", t.Name.Local): @@ -10190,7 +10188,7 @@ func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVers } if val != nil { xtv := string(val) - sv.CacheEngineVersionDescription = &xtv + sv.CacheEngineVersionDescription = ptr.String(xtv) } case strings.EqualFold("CacheParameterGroupFamily", t.Name.Local): @@ -10206,7 +10204,7 @@ func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVers } if val != nil { xtv := string(val) - sv.CacheParameterGroupFamily = &xtv + sv.CacheParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -10222,7 +10220,7 @@ func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVers } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -10238,7 +10236,7 @@ func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVers } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } default: @@ -10251,13 +10249,13 @@ func awsAwsquery_deserializeDocumentCacheEngineVersion(v **types.CacheEngineVers return nil } -func awsAwsquery_deserializeDocumentCacheEngineVersionList(v *[]*types.CacheEngineVersion, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheEngineVersionList(v *[]types.CacheEngineVersion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CacheEngineVersion + var sv []types.CacheEngineVersion if *v == nil { - sv = make([]*types.CacheEngineVersion, 0) + sv = make([]types.CacheEngineVersion, 0) } else { sv = *v } @@ -10273,11 +10271,13 @@ func awsAwsquery_deserializeDocumentCacheEngineVersionList(v *[]*types.CacheEngi } for { if strings.EqualFold("CacheEngineVersion", t.Name.Local) { - var col *types.CacheEngineVersion + var col types.CacheEngineVersion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheEngineVersion(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheEngineVersion(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10290,23 +10290,25 @@ func awsAwsquery_deserializeDocumentCacheEngineVersionList(v *[]*types.CacheEngi return nil } -func awsAwsquery_deserializeDocumentCacheEngineVersionListUnwrapped(v *[]*types.CacheEngineVersion, decoder smithyxml.NodeDecoder) error { - var sv []*types.CacheEngineVersion +func awsAwsquery_deserializeDocumentCacheEngineVersionListUnwrapped(v *[]types.CacheEngineVersion, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheEngineVersion if *v == nil { - sv = make([]*types.CacheEngineVersion, 0) + sv = make([]types.CacheEngineVersion, 0) } else { sv = *v } switch { default: - var mv *types.CacheEngineVersion + var mv types.CacheEngineVersion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheEngineVersion(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheEngineVersion(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10348,7 +10350,7 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith if err != nil { return err } - sv.CacheNodeCreateTime = &t + sv.CacheNodeCreateTime = ptr.Time(t) } case strings.EqualFold("CacheNodeId", t.Name.Local): @@ -10364,7 +10366,7 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith } if val != nil { xtv := string(val) - sv.CacheNodeId = &xtv + sv.CacheNodeId = ptr.String(xtv) } case strings.EqualFold("CacheNodeStatus", t.Name.Local): @@ -10380,7 +10382,7 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith } if val != nil { xtv := string(val) - sv.CacheNodeStatus = &xtv + sv.CacheNodeStatus = ptr.String(xtv) } case strings.EqualFold("CustomerAvailabilityZone", t.Name.Local): @@ -10396,7 +10398,7 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith } if val != nil { xtv := string(val) - sv.CustomerAvailabilityZone = &xtv + sv.CustomerAvailabilityZone = ptr.String(xtv) } case strings.EqualFold("CustomerOutpostArn", t.Name.Local): @@ -10412,7 +10414,7 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith } if val != nil { xtv := string(val) - sv.CustomerOutpostArn = &xtv + sv.CustomerOutpostArn = ptr.String(xtv) } case strings.EqualFold("Endpoint", t.Name.Local): @@ -10434,7 +10436,7 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith } if val != nil { xtv := string(val) - sv.ParameterGroupStatus = &xtv + sv.ParameterGroupStatus = ptr.String(xtv) } case strings.EqualFold("SourceCacheNodeId", t.Name.Local): @@ -10450,7 +10452,7 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith } if val != nil { xtv := string(val) - sv.SourceCacheNodeId = &xtv + sv.SourceCacheNodeId = ptr.String(xtv) } default: @@ -10463,13 +10465,13 @@ func awsAwsquery_deserializeDocumentCacheNode(v **types.CacheNode, decoder smith return nil } -func awsAwsquery_deserializeDocumentCacheNodeIdsList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheNodeIdsList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -10487,20 +10489,17 @@ func awsAwsquery_deserializeDocumentCacheNodeIdsList(v *[]*string, decoder smith decoder = memberDecoder for { if strings.EqualFold("CacheNodeId", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -10513,17 +10512,17 @@ func awsAwsquery_deserializeDocumentCacheNodeIdsList(v *[]*string, decoder smith return nil } -func awsAwsquery_deserializeDocumentCacheNodeIdsListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentCacheNodeIdsListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -10531,27 +10530,24 @@ func awsAwsquery_deserializeDocumentCacheNodeIdsListUnwrapped(v *[]*string, deco return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentCacheNodeList(v *[]*types.CacheNode, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheNodeList(v *[]types.CacheNode, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CacheNode + var sv []types.CacheNode if *v == nil { - sv = make([]*types.CacheNode, 0) + sv = make([]types.CacheNode, 0) } else { sv = *v } @@ -10567,11 +10563,13 @@ func awsAwsquery_deserializeDocumentCacheNodeList(v *[]*types.CacheNode, decoder } for { if strings.EqualFold("CacheNode", t.Name.Local) { - var col *types.CacheNode + var col types.CacheNode nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheNode(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheNode(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10584,23 +10582,25 @@ func awsAwsquery_deserializeDocumentCacheNodeList(v *[]*types.CacheNode, decoder return nil } -func awsAwsquery_deserializeDocumentCacheNodeListUnwrapped(v *[]*types.CacheNode, decoder smithyxml.NodeDecoder) error { - var sv []*types.CacheNode +func awsAwsquery_deserializeDocumentCacheNodeListUnwrapped(v *[]types.CacheNode, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheNode if *v == nil { - sv = make([]*types.CacheNode, 0) + sv = make([]types.CacheNode, 0) } else { sv = *v } switch { default: - var mv *types.CacheNode + var mv types.CacheNode t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheNode(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheNode(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10641,7 +10641,7 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac } if val != nil { xtv := string(val) - sv.AllowedValues = &xtv + sv.AllowedValues = ptr.String(xtv) } case strings.EqualFold("CacheNodeTypeSpecificValues", t.Name.Local): @@ -10676,7 +10676,7 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac } if val != nil { xtv := string(val) - sv.DataType = &xtv + sv.DataType = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -10692,7 +10692,7 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("IsModifiable", t.Name.Local): @@ -10708,7 +10708,7 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsModifiable = &xtv + sv.IsModifiable = xtv } case strings.EqualFold("MinimumEngineVersion", t.Name.Local): @@ -10724,7 +10724,7 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac } if val != nil { xtv := string(val) - sv.MinimumEngineVersion = &xtv + sv.MinimumEngineVersion = ptr.String(xtv) } case strings.EqualFold("ParameterName", t.Name.Local): @@ -10740,7 +10740,7 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac } if val != nil { xtv := string(val) - sv.ParameterName = &xtv + sv.ParameterName = ptr.String(xtv) } case strings.EqualFold("Source", t.Name.Local): @@ -10756,7 +10756,7 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac } if val != nil { xtv := string(val) - sv.Source = &xtv + sv.Source = ptr.String(xtv) } default: @@ -10769,13 +10769,13 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(v **types.Cac return nil } -func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersList(v *[]*types.CacheNodeTypeSpecificParameter, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersList(v *[]types.CacheNodeTypeSpecificParameter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CacheNodeTypeSpecificParameter + var sv []types.CacheNodeTypeSpecificParameter if *v == nil { - sv = make([]*types.CacheNodeTypeSpecificParameter, 0) + sv = make([]types.CacheNodeTypeSpecificParameter, 0) } else { sv = *v } @@ -10791,11 +10791,13 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersList(v *[]*ty } for { if strings.EqualFold("CacheNodeTypeSpecificParameter", t.Name.Local) { - var col *types.CacheNodeTypeSpecificParameter + var col types.CacheNodeTypeSpecificParameter nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10808,23 +10810,25 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersList(v *[]*ty return nil } -func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersListUnwrapped(v *[]*types.CacheNodeTypeSpecificParameter, decoder smithyxml.NodeDecoder) error { - var sv []*types.CacheNodeTypeSpecificParameter +func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParametersListUnwrapped(v *[]types.CacheNodeTypeSpecificParameter, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheNodeTypeSpecificParameter if *v == nil { - sv = make([]*types.CacheNodeTypeSpecificParameter, 0) + sv = make([]types.CacheNodeTypeSpecificParameter, 0) } else { sv = *v } switch { default: - var mv *types.CacheNodeTypeSpecificParameter + var mv types.CacheNodeTypeSpecificParameter t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificParameter(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10865,7 +10869,7 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(v **types.CacheNo } if val != nil { xtv := string(val) - sv.CacheNodeType = &xtv + sv.CacheNodeType = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -10881,7 +10885,7 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(v **types.CacheNo } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -10894,13 +10898,13 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(v **types.CacheNo return nil } -func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueList(v *[]*types.CacheNodeTypeSpecificValue, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueList(v *[]types.CacheNodeTypeSpecificValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CacheNodeTypeSpecificValue + var sv []types.CacheNodeTypeSpecificValue if *v == nil { - sv = make([]*types.CacheNodeTypeSpecificValue, 0) + sv = make([]types.CacheNodeTypeSpecificValue, 0) } else { sv = *v } @@ -10916,11 +10920,13 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueList(v *[]*types.C } for { if strings.EqualFold("CacheNodeTypeSpecificValue", t.Name.Local) { - var col *types.CacheNodeTypeSpecificValue + var col types.CacheNodeTypeSpecificValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10933,23 +10939,25 @@ func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueList(v *[]*types.C return nil } -func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueListUnwrapped(v *[]*types.CacheNodeTypeSpecificValue, decoder smithyxml.NodeDecoder) error { - var sv []*types.CacheNodeTypeSpecificValue +func awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValueListUnwrapped(v *[]types.CacheNodeTypeSpecificValue, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheNodeTypeSpecificValue if *v == nil { - sv = make([]*types.CacheNodeTypeSpecificValue, 0) + sv = make([]types.CacheNodeTypeSpecificValue, 0) } else { sv = *v } switch { default: - var mv *types.CacheNodeTypeSpecificValue + var mv types.CacheNodeTypeSpecificValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheNodeTypeSpecificValue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10990,7 +10998,7 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(v **types.CacheNodeUpd } if val != nil { xtv := string(val) - sv.CacheNodeId = &xtv + sv.CacheNodeId = ptr.String(xtv) } case strings.EqualFold("NodeDeletionDate", t.Name.Local): @@ -11007,7 +11015,7 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(v **types.CacheNodeUpd if err != nil { return err } - sv.NodeDeletionDate = &t + sv.NodeDeletionDate = ptr.Time(t) } case strings.EqualFold("NodeUpdateEndDate", t.Name.Local): @@ -11024,7 +11032,7 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(v **types.CacheNodeUpd if err != nil { return err } - sv.NodeUpdateEndDate = &t + sv.NodeUpdateEndDate = ptr.Time(t) } case strings.EqualFold("NodeUpdateInitiatedBy", t.Name.Local): @@ -11054,7 +11062,7 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(v **types.CacheNodeUpd if err != nil { return err } - sv.NodeUpdateInitiatedDate = &t + sv.NodeUpdateInitiatedDate = ptr.Time(t) } case strings.EqualFold("NodeUpdateStartDate", t.Name.Local): @@ -11071,7 +11079,7 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(v **types.CacheNodeUpd if err != nil { return err } - sv.NodeUpdateStartDate = &t + sv.NodeUpdateStartDate = ptr.Time(t) } case strings.EqualFold("NodeUpdateStatus", t.Name.Local): @@ -11101,7 +11109,7 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(v **types.CacheNodeUpd if err != nil { return err } - sv.NodeUpdateStatusModifiedDate = &t + sv.NodeUpdateStatusModifiedDate = ptr.Time(t) } default: @@ -11114,13 +11122,13 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(v **types.CacheNodeUpd return nil } -func awsAwsquery_deserializeDocumentCacheNodeUpdateStatusList(v *[]*types.CacheNodeUpdateStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheNodeUpdateStatusList(v *[]types.CacheNodeUpdateStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CacheNodeUpdateStatus + var sv []types.CacheNodeUpdateStatus if *v == nil { - sv = make([]*types.CacheNodeUpdateStatus, 0) + sv = make([]types.CacheNodeUpdateStatus, 0) } else { sv = *v } @@ -11136,11 +11144,13 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatusList(v *[]*types.CacheN } for { if strings.EqualFold("CacheNodeUpdateStatus", t.Name.Local) { - var col *types.CacheNodeUpdateStatus + var col types.CacheNodeUpdateStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11153,23 +11163,25 @@ func awsAwsquery_deserializeDocumentCacheNodeUpdateStatusList(v *[]*types.CacheN return nil } -func awsAwsquery_deserializeDocumentCacheNodeUpdateStatusListUnwrapped(v *[]*types.CacheNodeUpdateStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.CacheNodeUpdateStatus +func awsAwsquery_deserializeDocumentCacheNodeUpdateStatusListUnwrapped(v *[]types.CacheNodeUpdateStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheNodeUpdateStatus if *v == nil { - sv = make([]*types.CacheNodeUpdateStatus, 0) + sv = make([]types.CacheNodeUpdateStatus, 0) } else { sv = *v } switch { default: - var mv *types.CacheNodeUpdateStatus + var mv types.CacheNodeUpdateStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheNodeUpdateStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11210,7 +11222,7 @@ func awsAwsquery_deserializeDocumentCacheParameterGroup(v **types.CacheParameter } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("CacheParameterGroupFamily", t.Name.Local): @@ -11226,7 +11238,7 @@ func awsAwsquery_deserializeDocumentCacheParameterGroup(v **types.CacheParameter } if val != nil { xtv := string(val) - sv.CacheParameterGroupFamily = &xtv + sv.CacheParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("CacheParameterGroupName", t.Name.Local): @@ -11242,7 +11254,7 @@ func awsAwsquery_deserializeDocumentCacheParameterGroup(v **types.CacheParameter } if val != nil { xtv := string(val) - sv.CacheParameterGroupName = &xtv + sv.CacheParameterGroupName = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -11258,7 +11270,7 @@ func awsAwsquery_deserializeDocumentCacheParameterGroup(v **types.CacheParameter } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("IsGlobal", t.Name.Local): @@ -11274,7 +11286,7 @@ func awsAwsquery_deserializeDocumentCacheParameterGroup(v **types.CacheParameter if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsGlobal = &xtv + sv.IsGlobal = xtv } default: @@ -11322,7 +11334,7 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupAlreadyExistsFault(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11335,13 +11347,13 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupAlreadyExistsFault(v **ty return nil } -func awsAwsquery_deserializeDocumentCacheParameterGroupList(v *[]*types.CacheParameterGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheParameterGroupList(v *[]types.CacheParameterGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CacheParameterGroup + var sv []types.CacheParameterGroup if *v == nil { - sv = make([]*types.CacheParameterGroup, 0) + sv = make([]types.CacheParameterGroup, 0) } else { sv = *v } @@ -11357,11 +11369,13 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupList(v *[]*types.CachePar } for { if strings.EqualFold("CacheParameterGroup", t.Name.Local) { - var col *types.CacheParameterGroup + var col types.CacheParameterGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheParameterGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11374,23 +11388,25 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupList(v *[]*types.CachePar return nil } -func awsAwsquery_deserializeDocumentCacheParameterGroupListUnwrapped(v *[]*types.CacheParameterGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.CacheParameterGroup +func awsAwsquery_deserializeDocumentCacheParameterGroupListUnwrapped(v *[]types.CacheParameterGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheParameterGroup if *v == nil { - sv = make([]*types.CacheParameterGroup, 0) + sv = make([]types.CacheParameterGroup, 0) } else { sv = *v } switch { default: - var mv *types.CacheParameterGroup + var mv types.CacheParameterGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheParameterGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11431,7 +11447,7 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupNotFoundFault(v **types.C } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11479,7 +11495,7 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupQuotaExceededFault(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11533,7 +11549,7 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupStatus(v **types.CachePar } if val != nil { xtv := string(val) - sv.CacheParameterGroupName = &xtv + sv.CacheParameterGroupName = ptr.String(xtv) } case strings.EqualFold("ParameterApplyStatus", t.Name.Local): @@ -11549,7 +11565,7 @@ func awsAwsquery_deserializeDocumentCacheParameterGroupStatus(v **types.CachePar } if val != nil { xtv := string(val) - sv.ParameterApplyStatus = &xtv + sv.ParameterApplyStatus = ptr.String(xtv) } default: @@ -11597,7 +11613,7 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroup(v **types.CacheSecurityGr } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("CacheSecurityGroupName", t.Name.Local): @@ -11613,7 +11629,7 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroup(v **types.CacheSecurityGr } if val != nil { xtv := string(val) - sv.CacheSecurityGroupName = &xtv + sv.CacheSecurityGroupName = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -11629,7 +11645,7 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroup(v **types.CacheSecurityGr } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("EC2SecurityGroups", t.Name.Local): @@ -11651,7 +11667,7 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroup(v **types.CacheSecurityGr } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } default: @@ -11699,7 +11715,7 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupAlreadyExistsFault(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11747,7 +11763,7 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(v **types.Cache } if val != nil { xtv := string(val) - sv.CacheSecurityGroupName = &xtv + sv.CacheSecurityGroupName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -11763,7 +11779,7 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(v **types.Cache } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -11776,13 +11792,13 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(v **types.Cache return nil } -func awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipList(v *[]*types.CacheSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipList(v *[]types.CacheSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CacheSecurityGroupMembership + var sv []types.CacheSecurityGroupMembership if *v == nil { - sv = make([]*types.CacheSecurityGroupMembership, 0) + sv = make([]types.CacheSecurityGroupMembership, 0) } else { sv = *v } @@ -11798,11 +11814,13 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipList(v *[]*types } for { if strings.EqualFold("CacheSecurityGroup", t.Name.Local) { - var col *types.CacheSecurityGroupMembership + var col types.CacheSecurityGroupMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11815,23 +11833,25 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipList(v *[]*types return nil } -func awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipListUnwrapped(v *[]*types.CacheSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { - var sv []*types.CacheSecurityGroupMembership +func awsAwsquery_deserializeDocumentCacheSecurityGroupMembershipListUnwrapped(v *[]types.CacheSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheSecurityGroupMembership if *v == nil { - sv = make([]*types.CacheSecurityGroupMembership, 0) + sv = make([]types.CacheSecurityGroupMembership, 0) } else { sv = *v } switch { default: - var mv *types.CacheSecurityGroupMembership + var mv types.CacheSecurityGroupMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11872,7 +11892,7 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupNotFoundFault(v **types.Ca } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11920,7 +11940,7 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupQuotaExceededFault(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11933,13 +11953,13 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroupQuotaExceededFault(v **typ return nil } -func awsAwsquery_deserializeDocumentCacheSecurityGroups(v *[]*types.CacheSecurityGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSecurityGroups(v *[]types.CacheSecurityGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CacheSecurityGroup + var sv []types.CacheSecurityGroup if *v == nil { - sv = make([]*types.CacheSecurityGroup, 0) + sv = make([]types.CacheSecurityGroup, 0) } else { sv = *v } @@ -11955,11 +11975,13 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroups(v *[]*types.CacheSecurit } for { if strings.EqualFold("CacheSecurityGroup", t.Name.Local) { - var col *types.CacheSecurityGroup + var col types.CacheSecurityGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheSecurityGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheSecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11972,23 +11994,25 @@ func awsAwsquery_deserializeDocumentCacheSecurityGroups(v *[]*types.CacheSecurit return nil } -func awsAwsquery_deserializeDocumentCacheSecurityGroupsUnwrapped(v *[]*types.CacheSecurityGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.CacheSecurityGroup +func awsAwsquery_deserializeDocumentCacheSecurityGroupsUnwrapped(v *[]types.CacheSecurityGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheSecurityGroup if *v == nil { - sv = make([]*types.CacheSecurityGroup, 0) + sv = make([]types.CacheSecurityGroup, 0) } else { sv = *v } switch { default: - var mv *types.CacheSecurityGroup + var mv types.CacheSecurityGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheSecurityGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheSecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12029,7 +12053,7 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroup(v **types.CacheSubnetGroup, } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("CacheSubnetGroupDescription", t.Name.Local): @@ -12045,7 +12069,7 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroup(v **types.CacheSubnetGroup, } if val != nil { xtv := string(val) - sv.CacheSubnetGroupDescription = &xtv + sv.CacheSubnetGroupDescription = ptr.String(xtv) } case strings.EqualFold("CacheSubnetGroupName", t.Name.Local): @@ -12061,7 +12085,7 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroup(v **types.CacheSubnetGroup, } if val != nil { xtv := string(val) - sv.CacheSubnetGroupName = &xtv + sv.CacheSubnetGroupName = ptr.String(xtv) } case strings.EqualFold("Subnets", t.Name.Local): @@ -12083,7 +12107,7 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroup(v **types.CacheSubnetGroup, } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -12131,7 +12155,7 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupAlreadyExistsFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12179,7 +12203,7 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupInUse(v **types.CacheSubnetG } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12227,7 +12251,7 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupNotFoundFault(v **types.Cach } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12275,7 +12299,7 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupQuotaExceededFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12288,13 +12312,13 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroupQuotaExceededFault(v **types return nil } -func awsAwsquery_deserializeDocumentCacheSubnetGroups(v *[]*types.CacheSubnetGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCacheSubnetGroups(v *[]types.CacheSubnetGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CacheSubnetGroup + var sv []types.CacheSubnetGroup if *v == nil { - sv = make([]*types.CacheSubnetGroup, 0) + sv = make([]types.CacheSubnetGroup, 0) } else { sv = *v } @@ -12310,11 +12334,13 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroups(v *[]*types.CacheSubnetGro } for { if strings.EqualFold("CacheSubnetGroup", t.Name.Local) { - var col *types.CacheSubnetGroup + var col types.CacheSubnetGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheSubnetGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCacheSubnetGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12327,23 +12353,25 @@ func awsAwsquery_deserializeDocumentCacheSubnetGroups(v *[]*types.CacheSubnetGro return nil } -func awsAwsquery_deserializeDocumentCacheSubnetGroupsUnwrapped(v *[]*types.CacheSubnetGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.CacheSubnetGroup +func awsAwsquery_deserializeDocumentCacheSubnetGroupsUnwrapped(v *[]types.CacheSubnetGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheSubnetGroup if *v == nil { - sv = make([]*types.CacheSubnetGroup, 0) + sv = make([]types.CacheSubnetGroup, 0) } else { sv = *v } switch { default: - var mv *types.CacheSubnetGroup + var mv types.CacheSubnetGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCacheSubnetGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCacheSubnetGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12384,7 +12412,7 @@ func awsAwsquery_deserializeDocumentCacheSubnetQuotaExceededFault(v **types.Cach } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12397,13 +12425,13 @@ func awsAwsquery_deserializeDocumentCacheSubnetQuotaExceededFault(v **types.Cach return nil } -func awsAwsquery_deserializeDocumentClusterIdList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClusterIdList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -12421,20 +12449,17 @@ func awsAwsquery_deserializeDocumentClusterIdList(v *[]*string, decoder smithyxm decoder = memberDecoder for { if strings.EqualFold("ClusterId", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -12447,17 +12472,17 @@ func awsAwsquery_deserializeDocumentClusterIdList(v *[]*string, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentClusterIdListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentClusterIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -12465,14 +12490,11 @@ func awsAwsquery_deserializeDocumentClusterIdListUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -12514,7 +12536,7 @@ func awsAwsquery_deserializeDocumentClusterQuotaForCustomerExceededFault(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12562,7 +12584,7 @@ func awsAwsquery_deserializeDocumentDefaultUserAssociatedToUserGroupFault(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12610,7 +12632,7 @@ func awsAwsquery_deserializeDocumentDefaultUserRequired(v **types.DefaultUserReq } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12658,7 +12680,7 @@ func awsAwsquery_deserializeDocumentDuplicateUserNameFault(v **types.DuplicateUs } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12706,7 +12728,7 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, } if val != nil { xtv := string(val) - sv.EC2SecurityGroupName = &xtv + sv.EC2SecurityGroupName = ptr.String(xtv) } case strings.EqualFold("EC2SecurityGroupOwnerId", t.Name.Local): @@ -12722,7 +12744,7 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, } if val != nil { xtv := string(val) - sv.EC2SecurityGroupOwnerId = &xtv + sv.EC2SecurityGroupOwnerId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -12738,7 +12760,7 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -12751,13 +12773,13 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, return nil } -func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]*types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EC2SecurityGroup + var sv []types.EC2SecurityGroup if *v == nil { - sv = make([]*types.EC2SecurityGroup, 0) + sv = make([]types.EC2SecurityGroup, 0) } else { sv = *v } @@ -12773,11 +12795,13 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]*types.EC2Security } for { if strings.EqualFold("EC2SecurityGroup", t.Name.Local) { - var col *types.EC2SecurityGroup + var col types.EC2SecurityGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12790,23 +12814,25 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]*types.EC2Security return nil } -func awsAwsquery_deserializeDocumentEC2SecurityGroupListUnwrapped(v *[]*types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.EC2SecurityGroup +func awsAwsquery_deserializeDocumentEC2SecurityGroupListUnwrapped(v *[]types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.EC2SecurityGroup if *v == nil { - sv = make([]*types.EC2SecurityGroup, 0) + sv = make([]types.EC2SecurityGroup, 0) } else { sv = *v } switch { default: - var mv *types.EC2SecurityGroup + var mv types.EC2SecurityGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12847,7 +12873,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx } if val != nil { xtv := string(val) - sv.Address = &xtv + sv.Address = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -12864,7 +12890,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -12918,7 +12944,7 @@ func awsAwsquery_deserializeDocumentEngineDefaults(v **types.EngineDefaults, dec } if val != nil { xtv := string(val) - sv.CacheParameterGroupFamily = &xtv + sv.CacheParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("Marker", t.Name.Local): @@ -12934,7 +12960,7 @@ func awsAwsquery_deserializeDocumentEngineDefaults(v **types.EngineDefaults, dec } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): @@ -12989,7 +13015,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod if err != nil { return err } - sv.Date = &t + sv.Date = ptr.Time(t) } case strings.EqualFold("Message", t.Name.Local): @@ -13005,7 +13031,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("SourceIdentifier", t.Name.Local): @@ -13021,7 +13047,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.SourceIdentifier = &xtv + sv.SourceIdentifier = ptr.String(xtv) } case strings.EqualFold("SourceType", t.Name.Local): @@ -13047,13 +13073,13 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventList(v *[]types.Event, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Event + var sv []types.Event if *v == nil { - sv = make([]*types.Event, 0) + sv = make([]types.Event, 0) } else { sv = *v } @@ -13069,11 +13095,13 @@ func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyx } for { if strings.EqualFold("Event", t.Name.Local) { - var col *types.Event + var col types.Event nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEvent(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13086,23 +13114,25 @@ func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentEventListUnwrapped(v *[]*types.Event, decoder smithyxml.NodeDecoder) error { - var sv []*types.Event +func awsAwsquery_deserializeDocumentEventListUnwrapped(v *[]types.Event, decoder smithyxml.NodeDecoder) error { + var sv []types.Event if *v == nil { - sv = make([]*types.Event, 0) + sv = make([]types.Event, 0) } else { sv = *v } switch { default: - var mv *types.Event + var mv types.Event t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEvent(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13143,7 +13173,7 @@ func awsAwsquery_deserializeDocumentGlobalNodeGroup(v **types.GlobalNodeGroup, d } if val != nil { xtv := string(val) - sv.GlobalNodeGroupId = &xtv + sv.GlobalNodeGroupId = ptr.String(xtv) } case strings.EqualFold("Slots", t.Name.Local): @@ -13159,7 +13189,7 @@ func awsAwsquery_deserializeDocumentGlobalNodeGroup(v **types.GlobalNodeGroup, d } if val != nil { xtv := string(val) - sv.Slots = &xtv + sv.Slots = ptr.String(xtv) } default: @@ -13172,13 +13202,13 @@ func awsAwsquery_deserializeDocumentGlobalNodeGroup(v **types.GlobalNodeGroup, d return nil } -func awsAwsquery_deserializeDocumentGlobalNodeGroupList(v *[]*types.GlobalNodeGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalNodeGroupList(v *[]types.GlobalNodeGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.GlobalNodeGroup + var sv []types.GlobalNodeGroup if *v == nil { - sv = make([]*types.GlobalNodeGroup, 0) + sv = make([]types.GlobalNodeGroup, 0) } else { sv = *v } @@ -13194,11 +13224,13 @@ func awsAwsquery_deserializeDocumentGlobalNodeGroupList(v *[]*types.GlobalNodeGr } for { if strings.EqualFold("GlobalNodeGroup", t.Name.Local) { - var col *types.GlobalNodeGroup + var col types.GlobalNodeGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGlobalNodeGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentGlobalNodeGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13211,23 +13243,25 @@ func awsAwsquery_deserializeDocumentGlobalNodeGroupList(v *[]*types.GlobalNodeGr return nil } -func awsAwsquery_deserializeDocumentGlobalNodeGroupListUnwrapped(v *[]*types.GlobalNodeGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.GlobalNodeGroup +func awsAwsquery_deserializeDocumentGlobalNodeGroupListUnwrapped(v *[]types.GlobalNodeGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.GlobalNodeGroup if *v == nil { - sv = make([]*types.GlobalNodeGroup, 0) + sv = make([]types.GlobalNodeGroup, 0) } else { sv = *v } switch { default: - var mv *types.GlobalNodeGroup + var mv types.GlobalNodeGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGlobalNodeGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentGlobalNodeGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13268,7 +13302,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("AtRestEncryptionEnabled", t.Name.Local): @@ -13284,7 +13318,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.AtRestEncryptionEnabled = &xtv + sv.AtRestEncryptionEnabled = ptr.Bool(xtv) } case strings.EqualFold("AuthTokenEnabled", t.Name.Local): @@ -13300,7 +13334,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.AuthTokenEnabled = &xtv + sv.AuthTokenEnabled = ptr.Bool(xtv) } case strings.EqualFold("CacheNodeType", t.Name.Local): @@ -13316,7 +13350,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli } if val != nil { xtv := string(val) - sv.CacheNodeType = &xtv + sv.CacheNodeType = ptr.String(xtv) } case strings.EqualFold("ClusterEnabled", t.Name.Local): @@ -13332,7 +13366,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.ClusterEnabled = &xtv + sv.ClusterEnabled = ptr.Bool(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -13348,7 +13382,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -13364,7 +13398,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("GlobalNodeGroups", t.Name.Local): @@ -13386,7 +13420,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli } if val != nil { xtv := string(val) - sv.GlobalReplicationGroupDescription = &xtv + sv.GlobalReplicationGroupDescription = ptr.String(xtv) } case strings.EqualFold("GlobalReplicationGroupId", t.Name.Local): @@ -13402,7 +13436,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli } if val != nil { xtv := string(val) - sv.GlobalReplicationGroupId = &xtv + sv.GlobalReplicationGroupId = ptr.String(xtv) } case strings.EqualFold("Members", t.Name.Local): @@ -13424,7 +13458,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("TransitEncryptionEnabled", t.Name.Local): @@ -13440,7 +13474,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroup(v **types.GlobalRepli if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.TransitEncryptionEnabled = &xtv + sv.TransitEncryptionEnabled = ptr.Bool(xtv) } default: @@ -13488,7 +13522,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupAlreadyExistsFault(v * } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13536,7 +13570,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupInfo(v **types.GlobalR } if val != nil { xtv := string(val) - sv.GlobalReplicationGroupId = &xtv + sv.GlobalReplicationGroupId = ptr.String(xtv) } case strings.EqualFold("GlobalReplicationGroupMemberRole", t.Name.Local): @@ -13552,7 +13586,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupInfo(v **types.GlobalR } if val != nil { xtv := string(val) - sv.GlobalReplicationGroupMemberRole = &xtv + sv.GlobalReplicationGroupMemberRole = ptr.String(xtv) } default: @@ -13565,13 +13599,13 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupInfo(v **types.GlobalR return nil } -func awsAwsquery_deserializeDocumentGlobalReplicationGroupList(v *[]*types.GlobalReplicationGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalReplicationGroupList(v *[]types.GlobalReplicationGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.GlobalReplicationGroup + var sv []types.GlobalReplicationGroup if *v == nil { - sv = make([]*types.GlobalReplicationGroup, 0) + sv = make([]types.GlobalReplicationGroup, 0) } else { sv = *v } @@ -13587,11 +13621,13 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupList(v *[]*types.Globa } for { if strings.EqualFold("GlobalReplicationGroup", t.Name.Local) { - var col *types.GlobalReplicationGroup + var col types.GlobalReplicationGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGlobalReplicationGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentGlobalReplicationGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13604,23 +13640,25 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupList(v *[]*types.Globa return nil } -func awsAwsquery_deserializeDocumentGlobalReplicationGroupListUnwrapped(v *[]*types.GlobalReplicationGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.GlobalReplicationGroup +func awsAwsquery_deserializeDocumentGlobalReplicationGroupListUnwrapped(v *[]types.GlobalReplicationGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.GlobalReplicationGroup if *v == nil { - sv = make([]*types.GlobalReplicationGroup, 0) + sv = make([]types.GlobalReplicationGroup, 0) } else { sv = *v } switch { default: - var mv *types.GlobalReplicationGroup + var mv types.GlobalReplicationGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGlobalReplicationGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentGlobalReplicationGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13674,7 +13712,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(v **types.Globa } if val != nil { xtv := string(val) - sv.ReplicationGroupId = &xtv + sv.ReplicationGroupId = ptr.String(xtv) } case strings.EqualFold("ReplicationGroupRegion", t.Name.Local): @@ -13690,7 +13728,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(v **types.Globa } if val != nil { xtv := string(val) - sv.ReplicationGroupRegion = &xtv + sv.ReplicationGroupRegion = ptr.String(xtv) } case strings.EqualFold("Role", t.Name.Local): @@ -13706,7 +13744,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(v **types.Globa } if val != nil { xtv := string(val) - sv.Role = &xtv + sv.Role = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -13722,7 +13760,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(v **types.Globa } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -13735,13 +13773,13 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(v **types.Globa return nil } -func awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberList(v *[]*types.GlobalReplicationGroupMember, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberList(v *[]types.GlobalReplicationGroupMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.GlobalReplicationGroupMember + var sv []types.GlobalReplicationGroupMember if *v == nil { - sv = make([]*types.GlobalReplicationGroupMember, 0) + sv = make([]types.GlobalReplicationGroupMember, 0) } else { sv = *v } @@ -13757,11 +13795,13 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberList(v *[]*types } for { if strings.EqualFold("GlobalReplicationGroupMember", t.Name.Local) { - var col *types.GlobalReplicationGroupMember + var col types.GlobalReplicationGroupMember nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13774,23 +13814,25 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberList(v *[]*types return nil } -func awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberListUnwrapped(v *[]*types.GlobalReplicationGroupMember, decoder smithyxml.NodeDecoder) error { - var sv []*types.GlobalReplicationGroupMember +func awsAwsquery_deserializeDocumentGlobalReplicationGroupMemberListUnwrapped(v *[]types.GlobalReplicationGroupMember, decoder smithyxml.NodeDecoder) error { + var sv []types.GlobalReplicationGroupMember if *v == nil { - sv = make([]*types.GlobalReplicationGroupMember, 0) + sv = make([]types.GlobalReplicationGroupMember, 0) } else { sv = *v } switch { default: - var mv *types.GlobalReplicationGroupMember + var mv types.GlobalReplicationGroupMember t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentGlobalReplicationGroupMember(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13831,7 +13873,7 @@ func awsAwsquery_deserializeDocumentGlobalReplicationGroupNotFoundFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13879,7 +13921,7 @@ func awsAwsquery_deserializeDocumentInsufficientCacheClusterCapacityFault(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13927,7 +13969,7 @@ func awsAwsquery_deserializeDocumentInvalidARNFault(v **types.InvalidARNFault, d } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13975,7 +14017,7 @@ func awsAwsquery_deserializeDocumentInvalidCacheClusterStateFault(v **types.Inva } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14023,7 +14065,7 @@ func awsAwsquery_deserializeDocumentInvalidCacheParameterGroupStateFault(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14071,7 +14113,7 @@ func awsAwsquery_deserializeDocumentInvalidCacheSecurityGroupStateFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14119,7 +14161,7 @@ func awsAwsquery_deserializeDocumentInvalidGlobalReplicationGroupStateFault(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14167,7 +14209,7 @@ func awsAwsquery_deserializeDocumentInvalidKMSKeyFault(v **types.InvalidKMSKeyFa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14215,7 +14257,7 @@ func awsAwsquery_deserializeDocumentInvalidParameterCombinationException(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14263,7 +14305,7 @@ func awsAwsquery_deserializeDocumentInvalidParameterValueException(v **types.Inv } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14311,7 +14353,7 @@ func awsAwsquery_deserializeDocumentInvalidReplicationGroupStateFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14359,7 +14401,7 @@ func awsAwsquery_deserializeDocumentInvalidSnapshotStateFault(v **types.InvalidS } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14407,7 +14449,7 @@ func awsAwsquery_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, decod } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14455,7 +14497,7 @@ func awsAwsquery_deserializeDocumentInvalidUserGroupStateFault(v **types.Invalid } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14503,7 +14545,7 @@ func awsAwsquery_deserializeDocumentInvalidUserStateFault(v **types.InvalidUserS } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14551,7 +14593,7 @@ func awsAwsquery_deserializeDocumentInvalidVPCNetworkStateFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14599,7 +14641,7 @@ func awsAwsquery_deserializeDocumentNodeGroup(v **types.NodeGroup, decoder smith } if val != nil { xtv := string(val) - sv.NodeGroupId = &xtv + sv.NodeGroupId = ptr.String(xtv) } case strings.EqualFold("NodeGroupMembers", t.Name.Local): @@ -14633,7 +14675,7 @@ func awsAwsquery_deserializeDocumentNodeGroup(v **types.NodeGroup, decoder smith } if val != nil { xtv := string(val) - sv.Slots = &xtv + sv.Slots = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -14649,7 +14691,7 @@ func awsAwsquery_deserializeDocumentNodeGroup(v **types.NodeGroup, decoder smith } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -14697,7 +14739,7 @@ func awsAwsquery_deserializeDocumentNodeGroupConfiguration(v **types.NodeGroupCo } if val != nil { xtv := string(val) - sv.NodeGroupId = &xtv + sv.NodeGroupId = ptr.String(xtv) } case strings.EqualFold("PrimaryAvailabilityZone", t.Name.Local): @@ -14713,7 +14755,7 @@ func awsAwsquery_deserializeDocumentNodeGroupConfiguration(v **types.NodeGroupCo } if val != nil { xtv := string(val) - sv.PrimaryAvailabilityZone = &xtv + sv.PrimaryAvailabilityZone = ptr.String(xtv) } case strings.EqualFold("PrimaryOutpostArn", t.Name.Local): @@ -14729,7 +14771,7 @@ func awsAwsquery_deserializeDocumentNodeGroupConfiguration(v **types.NodeGroupCo } if val != nil { xtv := string(val) - sv.PrimaryOutpostArn = &xtv + sv.PrimaryOutpostArn = ptr.String(xtv) } case strings.EqualFold("ReplicaAvailabilityZones", t.Name.Local): @@ -14774,7 +14816,7 @@ func awsAwsquery_deserializeDocumentNodeGroupConfiguration(v **types.NodeGroupCo } if val != nil { xtv := string(val) - sv.Slots = &xtv + sv.Slots = ptr.String(xtv) } default: @@ -14787,13 +14829,13 @@ func awsAwsquery_deserializeDocumentNodeGroupConfiguration(v **types.NodeGroupCo return nil } -func awsAwsquery_deserializeDocumentNodeGroupList(v *[]*types.NodeGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeGroupList(v *[]types.NodeGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NodeGroup + var sv []types.NodeGroup if *v == nil { - sv = make([]*types.NodeGroup, 0) + sv = make([]types.NodeGroup, 0) } else { sv = *v } @@ -14809,11 +14851,13 @@ func awsAwsquery_deserializeDocumentNodeGroupList(v *[]*types.NodeGroup, decoder } for { if strings.EqualFold("NodeGroup", t.Name.Local) { - var col *types.NodeGroup + var col types.NodeGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentNodeGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14826,23 +14870,25 @@ func awsAwsquery_deserializeDocumentNodeGroupList(v *[]*types.NodeGroup, decoder return nil } -func awsAwsquery_deserializeDocumentNodeGroupListUnwrapped(v *[]*types.NodeGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.NodeGroup +func awsAwsquery_deserializeDocumentNodeGroupListUnwrapped(v *[]types.NodeGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.NodeGroup if *v == nil { - sv = make([]*types.NodeGroup, 0) + sv = make([]types.NodeGroup, 0) } else { sv = *v } switch { default: - var mv *types.NodeGroup + var mv types.NodeGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentNodeGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -14883,7 +14929,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMember(v **types.NodeGroupMember, d } if val != nil { xtv := string(val) - sv.CacheClusterId = &xtv + sv.CacheClusterId = ptr.String(xtv) } case strings.EqualFold("CacheNodeId", t.Name.Local): @@ -14899,7 +14945,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMember(v **types.NodeGroupMember, d } if val != nil { xtv := string(val) - sv.CacheNodeId = &xtv + sv.CacheNodeId = ptr.String(xtv) } case strings.EqualFold("CurrentRole", t.Name.Local): @@ -14915,7 +14961,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMember(v **types.NodeGroupMember, d } if val != nil { xtv := string(val) - sv.CurrentRole = &xtv + sv.CurrentRole = ptr.String(xtv) } case strings.EqualFold("PreferredAvailabilityZone", t.Name.Local): @@ -14931,7 +14977,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMember(v **types.NodeGroupMember, d } if val != nil { xtv := string(val) - sv.PreferredAvailabilityZone = &xtv + sv.PreferredAvailabilityZone = ptr.String(xtv) } case strings.EqualFold("PreferredOutpostArn", t.Name.Local): @@ -14947,7 +14993,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMember(v **types.NodeGroupMember, d } if val != nil { xtv := string(val) - sv.PreferredOutpostArn = &xtv + sv.PreferredOutpostArn = ptr.String(xtv) } case strings.EqualFold("ReadEndpoint", t.Name.Local): @@ -14966,13 +15012,13 @@ func awsAwsquery_deserializeDocumentNodeGroupMember(v **types.NodeGroupMember, d return nil } -func awsAwsquery_deserializeDocumentNodeGroupMemberList(v *[]*types.NodeGroupMember, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeGroupMemberList(v *[]types.NodeGroupMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NodeGroupMember + var sv []types.NodeGroupMember if *v == nil { - sv = make([]*types.NodeGroupMember, 0) + sv = make([]types.NodeGroupMember, 0) } else { sv = *v } @@ -14988,11 +15034,13 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberList(v *[]*types.NodeGroupMem } for { if strings.EqualFold("NodeGroupMember", t.Name.Local) { - var col *types.NodeGroupMember + var col types.NodeGroupMember nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeGroupMember(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentNodeGroupMember(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15005,23 +15053,25 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberList(v *[]*types.NodeGroupMem return nil } -func awsAwsquery_deserializeDocumentNodeGroupMemberListUnwrapped(v *[]*types.NodeGroupMember, decoder smithyxml.NodeDecoder) error { - var sv []*types.NodeGroupMember +func awsAwsquery_deserializeDocumentNodeGroupMemberListUnwrapped(v *[]types.NodeGroupMember, decoder smithyxml.NodeDecoder) error { + var sv []types.NodeGroupMember if *v == nil { - sv = make([]*types.NodeGroupMember, 0) + sv = make([]types.NodeGroupMember, 0) } else { sv = *v } switch { default: - var mv *types.NodeGroupMember + var mv types.NodeGroupMember t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeGroupMember(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentNodeGroupMember(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15062,7 +15112,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGr } if val != nil { xtv := string(val) - sv.CacheClusterId = &xtv + sv.CacheClusterId = ptr.String(xtv) } case strings.EqualFold("CacheNodeId", t.Name.Local): @@ -15078,7 +15128,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGr } if val != nil { xtv := string(val) - sv.CacheNodeId = &xtv + sv.CacheNodeId = ptr.String(xtv) } case strings.EqualFold("NodeDeletionDate", t.Name.Local): @@ -15095,7 +15145,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGr if err != nil { return err } - sv.NodeDeletionDate = &t + sv.NodeDeletionDate = ptr.Time(t) } case strings.EqualFold("NodeUpdateEndDate", t.Name.Local): @@ -15112,7 +15162,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGr if err != nil { return err } - sv.NodeUpdateEndDate = &t + sv.NodeUpdateEndDate = ptr.Time(t) } case strings.EqualFold("NodeUpdateInitiatedBy", t.Name.Local): @@ -15142,7 +15192,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGr if err != nil { return err } - sv.NodeUpdateInitiatedDate = &t + sv.NodeUpdateInitiatedDate = ptr.Time(t) } case strings.EqualFold("NodeUpdateStartDate", t.Name.Local): @@ -15159,7 +15209,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGr if err != nil { return err } - sv.NodeUpdateStartDate = &t + sv.NodeUpdateStartDate = ptr.Time(t) } case strings.EqualFold("NodeUpdateStatus", t.Name.Local): @@ -15189,7 +15239,7 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGr if err != nil { return err } - sv.NodeUpdateStatusModifiedDate = &t + sv.NodeUpdateStatusModifiedDate = ptr.Time(t) } default: @@ -15202,13 +15252,13 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(v **types.NodeGr return nil } -func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusList(v *[]*types.NodeGroupMemberUpdateStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusList(v *[]types.NodeGroupMemberUpdateStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NodeGroupMemberUpdateStatus + var sv []types.NodeGroupMemberUpdateStatus if *v == nil { - sv = make([]*types.NodeGroupMemberUpdateStatus, 0) + sv = make([]types.NodeGroupMemberUpdateStatus, 0) } else { sv = *v } @@ -15224,11 +15274,13 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusList(v *[]*types. } for { if strings.EqualFold("NodeGroupMemberUpdateStatus", t.Name.Local) { - var col *types.NodeGroupMemberUpdateStatus + var col types.NodeGroupMemberUpdateStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15241,23 +15293,25 @@ func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusList(v *[]*types. return nil } -func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusListUnwrapped(v *[]*types.NodeGroupMemberUpdateStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.NodeGroupMemberUpdateStatus +func awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatusListUnwrapped(v *[]types.NodeGroupMemberUpdateStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.NodeGroupMemberUpdateStatus if *v == nil { - sv = make([]*types.NodeGroupMemberUpdateStatus, 0) + sv = make([]types.NodeGroupMemberUpdateStatus, 0) } else { sv = *v } switch { default: - var mv *types.NodeGroupMemberUpdateStatus + var mv types.NodeGroupMemberUpdateStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentNodeGroupMemberUpdateStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15298,7 +15352,7 @@ func awsAwsquery_deserializeDocumentNodeGroupNotFoundFault(v **types.NodeGroupNo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15346,7 +15400,7 @@ func awsAwsquery_deserializeDocumentNodeGroupsPerReplicationGroupQuotaExceededFa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15394,7 +15448,7 @@ func awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(v **types.NodeGroupUpd } if val != nil { xtv := string(val) - sv.NodeGroupId = &xtv + sv.NodeGroupId = ptr.String(xtv) } case strings.EqualFold("NodeGroupMemberUpdateStatus", t.Name.Local): @@ -15413,13 +15467,13 @@ func awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(v **types.NodeGroupUpd return nil } -func awsAwsquery_deserializeDocumentNodeGroupUpdateStatusList(v *[]*types.NodeGroupUpdateStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeGroupUpdateStatusList(v *[]types.NodeGroupUpdateStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NodeGroupUpdateStatus + var sv []types.NodeGroupUpdateStatus if *v == nil { - sv = make([]*types.NodeGroupUpdateStatus, 0) + sv = make([]types.NodeGroupUpdateStatus, 0) } else { sv = *v } @@ -15435,11 +15489,13 @@ func awsAwsquery_deserializeDocumentNodeGroupUpdateStatusList(v *[]*types.NodeGr } for { if strings.EqualFold("NodeGroupUpdateStatus", t.Name.Local) { - var col *types.NodeGroupUpdateStatus + var col types.NodeGroupUpdateStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15452,23 +15508,25 @@ func awsAwsquery_deserializeDocumentNodeGroupUpdateStatusList(v *[]*types.NodeGr return nil } -func awsAwsquery_deserializeDocumentNodeGroupUpdateStatusListUnwrapped(v *[]*types.NodeGroupUpdateStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.NodeGroupUpdateStatus +func awsAwsquery_deserializeDocumentNodeGroupUpdateStatusListUnwrapped(v *[]types.NodeGroupUpdateStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.NodeGroupUpdateStatus if *v == nil { - sv = make([]*types.NodeGroupUpdateStatus, 0) + sv = make([]types.NodeGroupUpdateStatus, 0) } else { sv = *v } switch { default: - var mv *types.NodeGroupUpdateStatus + var mv types.NodeGroupUpdateStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentNodeGroupUpdateStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15509,7 +15567,7 @@ func awsAwsquery_deserializeDocumentNodeQuotaForClusterExceededFault(v **types.N } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15557,7 +15615,7 @@ func awsAwsquery_deserializeDocumentNodeQuotaForCustomerExceededFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15605,7 +15663,7 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder } if val != nil { xtv := string(val) - sv.CacheClusterId = &xtv + sv.CacheClusterId = ptr.String(xtv) } case strings.EqualFold("CacheNodeCreateTime", t.Name.Local): @@ -15622,7 +15680,7 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder if err != nil { return err } - sv.CacheNodeCreateTime = &t + sv.CacheNodeCreateTime = ptr.Time(t) } case strings.EqualFold("CacheNodeId", t.Name.Local): @@ -15638,7 +15696,7 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder } if val != nil { xtv := string(val) - sv.CacheNodeId = &xtv + sv.CacheNodeId = ptr.String(xtv) } case strings.EqualFold("CacheSize", t.Name.Local): @@ -15654,7 +15712,7 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder } if val != nil { xtv := string(val) - sv.CacheSize = &xtv + sv.CacheSize = ptr.String(xtv) } case strings.EqualFold("NodeGroupConfiguration", t.Name.Local): @@ -15676,7 +15734,7 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder } if val != nil { xtv := string(val) - sv.NodeGroupId = &xtv + sv.NodeGroupId = ptr.String(xtv) } case strings.EqualFold("SnapshotCreateTime", t.Name.Local): @@ -15693,7 +15751,7 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder if err != nil { return err } - sv.SnapshotCreateTime = &t + sv.SnapshotCreateTime = ptr.Time(t) } default: @@ -15706,13 +15764,13 @@ func awsAwsquery_deserializeDocumentNodeSnapshot(v **types.NodeSnapshot, decoder return nil } -func awsAwsquery_deserializeDocumentNodeSnapshotList(v *[]*types.NodeSnapshot, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeSnapshotList(v *[]types.NodeSnapshot, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NodeSnapshot + var sv []types.NodeSnapshot if *v == nil { - sv = make([]*types.NodeSnapshot, 0) + sv = make([]types.NodeSnapshot, 0) } else { sv = *v } @@ -15728,11 +15786,13 @@ func awsAwsquery_deserializeDocumentNodeSnapshotList(v *[]*types.NodeSnapshot, d } for { if strings.EqualFold("NodeSnapshot", t.Name.Local) { - var col *types.NodeSnapshot + var col types.NodeSnapshot nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeSnapshot(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentNodeSnapshot(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15745,35 +15805,37 @@ func awsAwsquery_deserializeDocumentNodeSnapshotList(v *[]*types.NodeSnapshot, d return nil } -func awsAwsquery_deserializeDocumentNodeSnapshotListUnwrapped(v *[]*types.NodeSnapshot, decoder smithyxml.NodeDecoder) error { - var sv []*types.NodeSnapshot +func awsAwsquery_deserializeDocumentNodeSnapshotListUnwrapped(v *[]types.NodeSnapshot, decoder smithyxml.NodeDecoder) error { + var sv []types.NodeSnapshot if *v == nil { - sv = make([]*types.NodeSnapshot, 0) + sv = make([]types.NodeSnapshot, 0) } else { sv = *v } switch { default: - var mv *types.NodeSnapshot + var mv types.NodeSnapshot t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeSnapshot(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentNodeSnapshot(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentNodeTypeList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeTypeList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -15791,20 +15853,17 @@ func awsAwsquery_deserializeDocumentNodeTypeList(v *[]*string, decoder smithyxml decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -15817,17 +15876,17 @@ func awsAwsquery_deserializeDocumentNodeTypeList(v *[]*string, decoder smithyxml return nil } -func awsAwsquery_deserializeDocumentNodeTypeListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentNodeTypeListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -15835,14 +15894,11 @@ func awsAwsquery_deserializeDocumentNodeTypeListUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -15884,7 +15940,7 @@ func awsAwsquery_deserializeDocumentNoOperationFault(v **types.NoOperationFault, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15932,7 +15988,7 @@ func awsAwsquery_deserializeDocumentNotificationConfiguration(v **types.Notifica } if val != nil { xtv := string(val) - sv.TopicArn = &xtv + sv.TopicArn = ptr.String(xtv) } case strings.EqualFold("TopicStatus", t.Name.Local): @@ -15948,7 +16004,7 @@ func awsAwsquery_deserializeDocumentNotificationConfiguration(v **types.Notifica } if val != nil { xtv := string(val) - sv.TopicStatus = &xtv + sv.TopicStatus = ptr.String(xtv) } default: @@ -15961,13 +16017,13 @@ func awsAwsquery_deserializeDocumentNotificationConfiguration(v **types.Notifica return nil } -func awsAwsquery_deserializeDocumentOutpostArnsList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOutpostArnsList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -15985,20 +16041,17 @@ func awsAwsquery_deserializeDocumentOutpostArnsList(v *[]*string, decoder smithy decoder = memberDecoder for { if strings.EqualFold("OutpostArn", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -16011,17 +16064,17 @@ func awsAwsquery_deserializeDocumentOutpostArnsList(v *[]*string, decoder smithy return nil } -func awsAwsquery_deserializeDocumentOutpostArnsListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentOutpostArnsListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -16029,14 +16082,11 @@ func awsAwsquery_deserializeDocumentOutpostArnsListUnwrapped(v *[]*string, decod return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -16078,7 +16128,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.AllowedValues = &xtv + sv.AllowedValues = ptr.String(xtv) } case strings.EqualFold("ChangeType", t.Name.Local): @@ -16107,7 +16157,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.DataType = &xtv + sv.DataType = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -16123,7 +16173,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("IsModifiable", t.Name.Local): @@ -16139,7 +16189,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsModifiable = &xtv + sv.IsModifiable = xtv } case strings.EqualFold("MinimumEngineVersion", t.Name.Local): @@ -16155,7 +16205,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.MinimumEngineVersion = &xtv + sv.MinimumEngineVersion = ptr.String(xtv) } case strings.EqualFold("ParameterName", t.Name.Local): @@ -16171,7 +16221,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ParameterName = &xtv + sv.ParameterName = ptr.String(xtv) } case strings.EqualFold("ParameterValue", t.Name.Local): @@ -16187,7 +16237,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ParameterValue = &xtv + sv.ParameterValue = ptr.String(xtv) } case strings.EqualFold("Source", t.Name.Local): @@ -16203,7 +16253,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.Source = &xtv + sv.Source = ptr.String(xtv) } default: @@ -16216,13 +16266,13 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith return nil } -func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentParametersList(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Parameter + var sv []types.Parameter if *v == nil { - sv = make([]*types.Parameter, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } @@ -16238,11 +16288,13 @@ func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decode } for { if strings.EqualFold("Parameter", t.Name.Local) { - var col *types.Parameter + var col types.Parameter nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameter(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16255,23 +16307,25 @@ func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decode return nil } -func awsAwsquery_deserializeDocumentParametersListUnwrapped(v *[]*types.Parameter, decoder smithyxml.NodeDecoder) error { - var sv []*types.Parameter +func awsAwsquery_deserializeDocumentParametersListUnwrapped(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { + var sv []types.Parameter if *v == nil { - sv = make([]*types.Parameter, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } switch { default: - var mv *types.Parameter + var mv types.Parameter t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameter(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16331,7 +16385,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.CacheNodeType = &xtv + sv.CacheNodeType = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -16347,7 +16401,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("NumCacheNodes", t.Name.Local): @@ -16412,7 +16466,7 @@ func awsAwsquery_deserializeDocumentProcessedUpdateAction(v **types.ProcessedUpd } if val != nil { xtv := string(val) - sv.CacheClusterId = &xtv + sv.CacheClusterId = ptr.String(xtv) } case strings.EqualFold("ReplicationGroupId", t.Name.Local): @@ -16428,7 +16482,7 @@ func awsAwsquery_deserializeDocumentProcessedUpdateAction(v **types.ProcessedUpd } if val != nil { xtv := string(val) - sv.ReplicationGroupId = &xtv + sv.ReplicationGroupId = ptr.String(xtv) } case strings.EqualFold("ServiceUpdateName", t.Name.Local): @@ -16444,7 +16498,7 @@ func awsAwsquery_deserializeDocumentProcessedUpdateAction(v **types.ProcessedUpd } if val != nil { xtv := string(val) - sv.ServiceUpdateName = &xtv + sv.ServiceUpdateName = ptr.String(xtv) } case strings.EqualFold("UpdateActionStatus", t.Name.Local): @@ -16470,13 +16524,13 @@ func awsAwsquery_deserializeDocumentProcessedUpdateAction(v **types.ProcessedUpd return nil } -func awsAwsquery_deserializeDocumentProcessedUpdateActionList(v *[]*types.ProcessedUpdateAction, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentProcessedUpdateActionList(v *[]types.ProcessedUpdateAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ProcessedUpdateAction + var sv []types.ProcessedUpdateAction if *v == nil { - sv = make([]*types.ProcessedUpdateAction, 0) + sv = make([]types.ProcessedUpdateAction, 0) } else { sv = *v } @@ -16492,11 +16546,13 @@ func awsAwsquery_deserializeDocumentProcessedUpdateActionList(v *[]*types.Proces } for { if strings.EqualFold("ProcessedUpdateAction", t.Name.Local) { - var col *types.ProcessedUpdateAction + var col types.ProcessedUpdateAction nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentProcessedUpdateAction(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentProcessedUpdateAction(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16509,23 +16565,25 @@ func awsAwsquery_deserializeDocumentProcessedUpdateActionList(v *[]*types.Proces return nil } -func awsAwsquery_deserializeDocumentProcessedUpdateActionListUnwrapped(v *[]*types.ProcessedUpdateAction, decoder smithyxml.NodeDecoder) error { - var sv []*types.ProcessedUpdateAction +func awsAwsquery_deserializeDocumentProcessedUpdateActionListUnwrapped(v *[]types.ProcessedUpdateAction, decoder smithyxml.NodeDecoder) error { + var sv []types.ProcessedUpdateAction if *v == nil { - sv = make([]*types.ProcessedUpdateAction, 0) + sv = make([]types.ProcessedUpdateAction, 0) } else { sv = *v } switch { default: - var mv *types.ProcessedUpdateAction + var mv types.ProcessedUpdateAction t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentProcessedUpdateAction(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentProcessedUpdateAction(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16567,7 +16625,7 @@ func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d if err != nil { return err } - sv.RecurringChargeAmount = &f64 + sv.RecurringChargeAmount = f64 } case strings.EqualFold("RecurringChargeFrequency", t.Name.Local): @@ -16583,7 +16641,7 @@ func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d } if val != nil { xtv := string(val) - sv.RecurringChargeFrequency = &xtv + sv.RecurringChargeFrequency = ptr.String(xtv) } default: @@ -16596,13 +16654,13 @@ func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d return nil } -func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]*types.RecurringCharge, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RecurringCharge + var sv []types.RecurringCharge if *v == nil { - sv = make([]*types.RecurringCharge, 0) + sv = make([]types.RecurringCharge, 0) } else { sv = *v } @@ -16618,11 +16676,13 @@ func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]*types.RecurringCha } for { if strings.EqualFold("RecurringCharge", t.Name.Local) { - var col *types.RecurringCharge + var col types.RecurringCharge nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRecurringCharge(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentRecurringCharge(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16635,23 +16695,25 @@ func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]*types.RecurringCha return nil } -func awsAwsquery_deserializeDocumentRecurringChargeListUnwrapped(v *[]*types.RecurringCharge, decoder smithyxml.NodeDecoder) error { - var sv []*types.RecurringCharge +func awsAwsquery_deserializeDocumentRecurringChargeListUnwrapped(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error { + var sv []types.RecurringCharge if *v == nil { - sv = make([]*types.RecurringCharge, 0) + sv = make([]types.RecurringCharge, 0) } else { sv = *v } switch { default: - var mv *types.RecurringCharge + var mv types.RecurringCharge t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRecurringCharge(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRecurringCharge(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16692,7 +16754,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("AtRestEncryptionEnabled", t.Name.Local): @@ -16708,7 +16770,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.AtRestEncryptionEnabled = &xtv + sv.AtRestEncryptionEnabled = ptr.Bool(xtv) } case strings.EqualFold("AuthTokenEnabled", t.Name.Local): @@ -16724,7 +16786,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.AuthTokenEnabled = &xtv + sv.AuthTokenEnabled = ptr.Bool(xtv) } case strings.EqualFold("AuthTokenLastModifiedDate", t.Name.Local): @@ -16741,7 +16803,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, if err != nil { return err } - sv.AuthTokenLastModifiedDate = &t + sv.AuthTokenLastModifiedDate = ptr.Time(t) } case strings.EqualFold("AutomaticFailover", t.Name.Local): @@ -16770,7 +16832,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } if val != nil { xtv := string(val) - sv.CacheNodeType = &xtv + sv.CacheNodeType = ptr.String(xtv) } case strings.EqualFold("ClusterEnabled", t.Name.Local): @@ -16786,7 +16848,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.ClusterEnabled = &xtv + sv.ClusterEnabled = ptr.Bool(xtv) } case strings.EqualFold("ConfigurationEndpoint", t.Name.Local): @@ -16808,7 +16870,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("GlobalReplicationGroupInfo", t.Name.Local): @@ -16830,7 +16892,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("MemberClusters", t.Name.Local): @@ -16883,7 +16945,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } if val != nil { xtv := string(val) - sv.ReplicationGroupId = &xtv + sv.ReplicationGroupId = ptr.String(xtv) } case strings.EqualFold("SnapshotRetentionLimit", t.Name.Local): @@ -16916,7 +16978,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } if val != nil { xtv := string(val) - sv.SnapshottingClusterId = &xtv + sv.SnapshottingClusterId = ptr.String(xtv) } case strings.EqualFold("SnapshotWindow", t.Name.Local): @@ -16932,7 +16994,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } if val != nil { xtv := string(val) - sv.SnapshotWindow = &xtv + sv.SnapshotWindow = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -16948,7 +17010,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("TransitEncryptionEnabled", t.Name.Local): @@ -16964,7 +17026,7 @@ func awsAwsquery_deserializeDocumentReplicationGroup(v **types.ReplicationGroup, if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.TransitEncryptionEnabled = &xtv + sv.TransitEncryptionEnabled = ptr.Bool(xtv) } case strings.EqualFold("UserGroupIds", t.Name.Local): @@ -17018,7 +17080,7 @@ func awsAwsquery_deserializeDocumentReplicationGroupAlreadyExistsFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17066,7 +17128,7 @@ func awsAwsquery_deserializeDocumentReplicationGroupAlreadyUnderMigrationFault(v } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17079,13 +17141,13 @@ func awsAwsquery_deserializeDocumentReplicationGroupAlreadyUnderMigrationFault(v return nil } -func awsAwsquery_deserializeDocumentReplicationGroupList(v *[]*types.ReplicationGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReplicationGroupList(v *[]types.ReplicationGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReplicationGroup + var sv []types.ReplicationGroup if *v == nil { - sv = make([]*types.ReplicationGroup, 0) + sv = make([]types.ReplicationGroup, 0) } else { sv = *v } @@ -17101,11 +17163,13 @@ func awsAwsquery_deserializeDocumentReplicationGroupList(v *[]*types.Replication } for { if strings.EqualFold("ReplicationGroup", t.Name.Local) { - var col *types.ReplicationGroup + var col types.ReplicationGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReplicationGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentReplicationGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17118,23 +17182,25 @@ func awsAwsquery_deserializeDocumentReplicationGroupList(v *[]*types.Replication return nil } -func awsAwsquery_deserializeDocumentReplicationGroupListUnwrapped(v *[]*types.ReplicationGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReplicationGroup +func awsAwsquery_deserializeDocumentReplicationGroupListUnwrapped(v *[]types.ReplicationGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.ReplicationGroup if *v == nil { - sv = make([]*types.ReplicationGroup, 0) + sv = make([]types.ReplicationGroup, 0) } else { sv = *v } switch { default: - var mv *types.ReplicationGroup + var mv types.ReplicationGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReplicationGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentReplicationGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17175,7 +17241,7 @@ func awsAwsquery_deserializeDocumentReplicationGroupNotFoundFault(v **types.Repl } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17223,7 +17289,7 @@ func awsAwsquery_deserializeDocumentReplicationGroupNotUnderMigrationFault(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17236,13 +17302,13 @@ func awsAwsquery_deserializeDocumentReplicationGroupNotUnderMigrationFault(v **t return nil } -func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -17260,20 +17326,17 @@ func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnList(v *[]*string, decoder = memberDecoder for { if strings.EqualFold("ReplicationGroupOutpostArn", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -17286,17 +17349,17 @@ func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnList(v *[]*string, return nil } -func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -17304,14 +17367,11 @@ func awsAwsquery_deserializeDocumentReplicationGroupOutpostArnListUnwrapped(v *[ return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -17379,7 +17439,7 @@ func awsAwsquery_deserializeDocumentReplicationGroupPendingModifiedValues(v **ty } if val != nil { xtv := string(val) - sv.PrimaryClusterId = &xtv + sv.PrimaryClusterId = ptr.String(xtv) } case strings.EqualFold("Resharding", t.Name.Local): @@ -17440,7 +17500,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod if err != nil { return err } - sv.CacheNodeCount = ptr.Int32(int32(i64)) + sv.CacheNodeCount = int32(i64) } case strings.EqualFold("CacheNodeType", t.Name.Local): @@ -17456,7 +17516,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } if val != nil { xtv := string(val) - sv.CacheNodeType = &xtv + sv.CacheNodeType = ptr.String(xtv) } case strings.EqualFold("Duration", t.Name.Local): @@ -17473,7 +17533,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case strings.EqualFold("FixedPrice", t.Name.Local): @@ -17490,7 +17550,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod if err != nil { return err } - sv.FixedPrice = &f64 + sv.FixedPrice = f64 } case strings.EqualFold("OfferingType", t.Name.Local): @@ -17506,7 +17566,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } if val != nil { xtv := string(val) - sv.OfferingType = &xtv + sv.OfferingType = ptr.String(xtv) } case strings.EqualFold("ProductDescription", t.Name.Local): @@ -17522,7 +17582,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } if val != nil { xtv := string(val) - sv.ProductDescription = &xtv + sv.ProductDescription = ptr.String(xtv) } case strings.EqualFold("RecurringCharges", t.Name.Local): @@ -17544,7 +17604,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } if val != nil { xtv := string(val) - sv.ReservationARN = &xtv + sv.ReservationARN = ptr.String(xtv) } case strings.EqualFold("ReservedCacheNodeId", t.Name.Local): @@ -17560,7 +17620,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } if val != nil { xtv := string(val) - sv.ReservedCacheNodeId = &xtv + sv.ReservedCacheNodeId = ptr.String(xtv) } case strings.EqualFold("ReservedCacheNodesOfferingId", t.Name.Local): @@ -17576,7 +17636,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } if val != nil { xtv := string(val) - sv.ReservedCacheNodesOfferingId = &xtv + sv.ReservedCacheNodesOfferingId = ptr.String(xtv) } case strings.EqualFold("StartTime", t.Name.Local): @@ -17593,7 +17653,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("State", t.Name.Local): @@ -17609,7 +17669,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } case strings.EqualFold("UsagePrice", t.Name.Local): @@ -17626,7 +17686,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNode(v **types.ReservedCacheNod if err != nil { return err } - sv.UsagePrice = &f64 + sv.UsagePrice = f64 } default: @@ -17674,7 +17734,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNodeAlreadyExistsFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17687,13 +17747,13 @@ func awsAwsquery_deserializeDocumentReservedCacheNodeAlreadyExistsFault(v **type return nil } -func awsAwsquery_deserializeDocumentReservedCacheNodeList(v *[]*types.ReservedCacheNode, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReservedCacheNodeList(v *[]types.ReservedCacheNode, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReservedCacheNode + var sv []types.ReservedCacheNode if *v == nil { - sv = make([]*types.ReservedCacheNode, 0) + sv = make([]types.ReservedCacheNode, 0) } else { sv = *v } @@ -17709,11 +17769,13 @@ func awsAwsquery_deserializeDocumentReservedCacheNodeList(v *[]*types.ReservedCa } for { if strings.EqualFold("ReservedCacheNode", t.Name.Local) { - var col *types.ReservedCacheNode + var col types.ReservedCacheNode nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReservedCacheNode(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentReservedCacheNode(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17726,23 +17788,25 @@ func awsAwsquery_deserializeDocumentReservedCacheNodeList(v *[]*types.ReservedCa return nil } -func awsAwsquery_deserializeDocumentReservedCacheNodeListUnwrapped(v *[]*types.ReservedCacheNode, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReservedCacheNode +func awsAwsquery_deserializeDocumentReservedCacheNodeListUnwrapped(v *[]types.ReservedCacheNode, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedCacheNode if *v == nil { - sv = make([]*types.ReservedCacheNode, 0) + sv = make([]types.ReservedCacheNode, 0) } else { sv = *v } switch { default: - var mv *types.ReservedCacheNode + var mv types.ReservedCacheNode t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReservedCacheNode(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentReservedCacheNode(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17783,7 +17847,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNodeNotFoundFault(v **types.Res } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17831,7 +17895,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNodeQuotaExceededFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17879,7 +17943,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve } if val != nil { xtv := string(val) - sv.CacheNodeType = &xtv + sv.CacheNodeType = ptr.String(xtv) } case strings.EqualFold("Duration", t.Name.Local): @@ -17896,7 +17960,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case strings.EqualFold("FixedPrice", t.Name.Local): @@ -17913,7 +17977,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve if err != nil { return err } - sv.FixedPrice = &f64 + sv.FixedPrice = f64 } case strings.EqualFold("OfferingType", t.Name.Local): @@ -17929,7 +17993,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve } if val != nil { xtv := string(val) - sv.OfferingType = &xtv + sv.OfferingType = ptr.String(xtv) } case strings.EqualFold("ProductDescription", t.Name.Local): @@ -17945,7 +18009,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve } if val != nil { xtv := string(val) - sv.ProductDescription = &xtv + sv.ProductDescription = ptr.String(xtv) } case strings.EqualFold("RecurringCharges", t.Name.Local): @@ -17967,7 +18031,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve } if val != nil { xtv := string(val) - sv.ReservedCacheNodesOfferingId = &xtv + sv.ReservedCacheNodesOfferingId = ptr.String(xtv) } case strings.EqualFold("UsagePrice", t.Name.Local): @@ -17984,7 +18048,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve if err != nil { return err } - sv.UsagePrice = &f64 + sv.UsagePrice = f64 } default: @@ -17997,13 +18061,13 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOffering(v **types.Reserve return nil } -func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingList(v *[]*types.ReservedCacheNodesOffering, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingList(v *[]types.ReservedCacheNodesOffering, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReservedCacheNodesOffering + var sv []types.ReservedCacheNodesOffering if *v == nil { - sv = make([]*types.ReservedCacheNodesOffering, 0) + sv = make([]types.ReservedCacheNodesOffering, 0) } else { sv = *v } @@ -18019,11 +18083,13 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingList(v *[]*types.R } for { if strings.EqualFold("ReservedCacheNodesOffering", t.Name.Local) { - var col *types.ReservedCacheNodesOffering + var col types.ReservedCacheNodesOffering nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReservedCacheNodesOffering(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentReservedCacheNodesOffering(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18036,23 +18102,25 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingList(v *[]*types.R return nil } -func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingListUnwrapped(v *[]*types.ReservedCacheNodesOffering, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReservedCacheNodesOffering +func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingListUnwrapped(v *[]types.ReservedCacheNodesOffering, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedCacheNodesOffering if *v == nil { - sv = make([]*types.ReservedCacheNodesOffering, 0) + sv = make([]types.ReservedCacheNodesOffering, 0) } else { sv = *v } switch { default: - var mv *types.ReservedCacheNodesOffering + var mv types.ReservedCacheNodesOffering t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReservedCacheNodesOffering(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentReservedCacheNodesOffering(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18093,7 +18161,7 @@ func awsAwsquery_deserializeDocumentReservedCacheNodesOfferingNotFoundFault(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18179,7 +18247,7 @@ func awsAwsquery_deserializeDocumentSecurityGroupMembership(v **types.SecurityGr } if val != nil { xtv := string(val) - sv.SecurityGroupId = &xtv + sv.SecurityGroupId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -18195,7 +18263,7 @@ func awsAwsquery_deserializeDocumentSecurityGroupMembership(v **types.SecurityGr } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -18208,13 +18276,13 @@ func awsAwsquery_deserializeDocumentSecurityGroupMembership(v **types.SecurityGr return nil } -func awsAwsquery_deserializeDocumentSecurityGroupMembershipList(v *[]*types.SecurityGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSecurityGroupMembershipList(v *[]types.SecurityGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SecurityGroupMembership + var sv []types.SecurityGroupMembership if *v == nil { - sv = make([]*types.SecurityGroupMembership, 0) + sv = make([]types.SecurityGroupMembership, 0) } else { sv = *v } @@ -18230,11 +18298,13 @@ func awsAwsquery_deserializeDocumentSecurityGroupMembershipList(v *[]*types.Secu } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.SecurityGroupMembership + var col types.SecurityGroupMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSecurityGroupMembership(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18247,23 +18317,25 @@ func awsAwsquery_deserializeDocumentSecurityGroupMembershipList(v *[]*types.Secu return nil } -func awsAwsquery_deserializeDocumentSecurityGroupMembershipListUnwrapped(v *[]*types.SecurityGroupMembership, decoder smithyxml.NodeDecoder) error { - var sv []*types.SecurityGroupMembership +func awsAwsquery_deserializeDocumentSecurityGroupMembershipListUnwrapped(v *[]types.SecurityGroupMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.SecurityGroupMembership if *v == nil { - sv = make([]*types.SecurityGroupMembership, 0) + sv = make([]types.SecurityGroupMembership, 0) } else { sv = *v } switch { default: - var mv *types.SecurityGroupMembership + var mv types.SecurityGroupMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSecurityGroupMembership(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18304,7 +18376,7 @@ func awsAwsquery_deserializeDocumentServiceLinkedRoleNotFoundFault(v **types.Ser } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18352,7 +18424,7 @@ func awsAwsquery_deserializeDocumentServiceUpdate(v **types.ServiceUpdate, decod if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.AutoUpdateAfterRecommendedApplyByDate = &xtv + sv.AutoUpdateAfterRecommendedApplyByDate = ptr.Bool(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -18368,7 +18440,7 @@ func awsAwsquery_deserializeDocumentServiceUpdate(v **types.ServiceUpdate, decod } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -18384,7 +18456,7 @@ func awsAwsquery_deserializeDocumentServiceUpdate(v **types.ServiceUpdate, decod } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("EstimatedUpdateTime", t.Name.Local): @@ -18400,7 +18472,7 @@ func awsAwsquery_deserializeDocumentServiceUpdate(v **types.ServiceUpdate, decod } if val != nil { xtv := string(val) - sv.EstimatedUpdateTime = &xtv + sv.EstimatedUpdateTime = ptr.String(xtv) } case strings.EqualFold("ServiceUpdateDescription", t.Name.Local): @@ -18416,7 +18488,7 @@ func awsAwsquery_deserializeDocumentServiceUpdate(v **types.ServiceUpdate, decod } if val != nil { xtv := string(val) - sv.ServiceUpdateDescription = &xtv + sv.ServiceUpdateDescription = ptr.String(xtv) } case strings.EqualFold("ServiceUpdateEndDate", t.Name.Local): @@ -18433,7 +18505,7 @@ func awsAwsquery_deserializeDocumentServiceUpdate(v **types.ServiceUpdate, decod if err != nil { return err } - sv.ServiceUpdateEndDate = &t + sv.ServiceUpdateEndDate = ptr.Time(t) } case strings.EqualFold("ServiceUpdateName", t.Name.Local): @@ -18449,7 +18521,7 @@ func awsAwsquery_deserializeDocumentServiceUpdate(v **types.ServiceUpdate, decod } if val != nil { xtv := string(val) - sv.ServiceUpdateName = &xtv + sv.ServiceUpdateName = ptr.String(xtv) } case strings.EqualFold("ServiceUpdateRecommendedApplyByDate", t.Name.Local): @@ -18466,7 +18538,7 @@ func awsAwsquery_deserializeDocumentServiceUpdate(v **types.ServiceUpdate, decod if err != nil { return err } - sv.ServiceUpdateRecommendedApplyByDate = &t + sv.ServiceUpdateRecommendedApplyByDate = ptr.Time(t) } case strings.EqualFold("ServiceUpdateReleaseDate", t.Name.Local): @@ -18483,7 +18555,7 @@ func awsAwsquery_deserializeDocumentServiceUpdate(v **types.ServiceUpdate, decod if err != nil { return err } - sv.ServiceUpdateReleaseDate = &t + sv.ServiceUpdateReleaseDate = ptr.Time(t) } case strings.EqualFold("ServiceUpdateSeverity", t.Name.Local): @@ -18535,13 +18607,13 @@ func awsAwsquery_deserializeDocumentServiceUpdate(v **types.ServiceUpdate, decod return nil } -func awsAwsquery_deserializeDocumentServiceUpdateList(v *[]*types.ServiceUpdate, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentServiceUpdateList(v *[]types.ServiceUpdate, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ServiceUpdate + var sv []types.ServiceUpdate if *v == nil { - sv = make([]*types.ServiceUpdate, 0) + sv = make([]types.ServiceUpdate, 0) } else { sv = *v } @@ -18557,11 +18629,13 @@ func awsAwsquery_deserializeDocumentServiceUpdateList(v *[]*types.ServiceUpdate, } for { if strings.EqualFold("ServiceUpdate", t.Name.Local) { - var col *types.ServiceUpdate + var col types.ServiceUpdate nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentServiceUpdate(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentServiceUpdate(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18574,23 +18648,25 @@ func awsAwsquery_deserializeDocumentServiceUpdateList(v *[]*types.ServiceUpdate, return nil } -func awsAwsquery_deserializeDocumentServiceUpdateListUnwrapped(v *[]*types.ServiceUpdate, decoder smithyxml.NodeDecoder) error { - var sv []*types.ServiceUpdate +func awsAwsquery_deserializeDocumentServiceUpdateListUnwrapped(v *[]types.ServiceUpdate, decoder smithyxml.NodeDecoder) error { + var sv []types.ServiceUpdate if *v == nil { - sv = make([]*types.ServiceUpdate, 0) + sv = make([]types.ServiceUpdate, 0) } else { sv = *v } switch { default: - var mv *types.ServiceUpdate + var mv types.ServiceUpdate t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentServiceUpdate(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentServiceUpdate(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18631,7 +18707,7 @@ func awsAwsquery_deserializeDocumentServiceUpdateNotFoundFault(v **types.Service } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18680,7 +18756,7 @@ func awsAwsquery_deserializeDocumentSlotMigration(v **types.SlotMigration, decod if err != nil { return err } - sv.ProgressPercentage = &f64 + sv.ProgressPercentage = f64 } default: @@ -18728,7 +18804,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("AutomaticFailover", t.Name.Local): @@ -18757,7 +18833,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AutoMinorVersionUpgrade = &xtv + sv.AutoMinorVersionUpgrade = xtv } case strings.EqualFold("CacheClusterCreateTime", t.Name.Local): @@ -18774,7 +18850,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.CacheClusterCreateTime = &t + sv.CacheClusterCreateTime = ptr.Time(t) } case strings.EqualFold("CacheClusterId", t.Name.Local): @@ -18790,7 +18866,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.CacheClusterId = &xtv + sv.CacheClusterId = ptr.String(xtv) } case strings.EqualFold("CacheNodeType", t.Name.Local): @@ -18806,7 +18882,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.CacheNodeType = &xtv + sv.CacheNodeType = ptr.String(xtv) } case strings.EqualFold("CacheParameterGroupName", t.Name.Local): @@ -18822,7 +18898,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.CacheParameterGroupName = &xtv + sv.CacheParameterGroupName = ptr.String(xtv) } case strings.EqualFold("CacheSubnetGroupName", t.Name.Local): @@ -18838,7 +18914,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.CacheSubnetGroupName = &xtv + sv.CacheSubnetGroupName = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -18854,7 +18930,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -18870,7 +18946,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -18886,7 +18962,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("NodeSnapshots", t.Name.Local): @@ -18959,7 +19035,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.PreferredAvailabilityZone = &xtv + sv.PreferredAvailabilityZone = ptr.String(xtv) } case strings.EqualFold("PreferredMaintenanceWindow", t.Name.Local): @@ -18975,7 +19051,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.PreferredMaintenanceWindow = &xtv + sv.PreferredMaintenanceWindow = ptr.String(xtv) } case strings.EqualFold("PreferredOutpostArn", t.Name.Local): @@ -18991,7 +19067,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.PreferredOutpostArn = &xtv + sv.PreferredOutpostArn = ptr.String(xtv) } case strings.EqualFold("ReplicationGroupDescription", t.Name.Local): @@ -19007,7 +19083,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.ReplicationGroupDescription = &xtv + sv.ReplicationGroupDescription = ptr.String(xtv) } case strings.EqualFold("ReplicationGroupId", t.Name.Local): @@ -19023,7 +19099,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.ReplicationGroupId = &xtv + sv.ReplicationGroupId = ptr.String(xtv) } case strings.EqualFold("SnapshotName", t.Name.Local): @@ -19039,7 +19115,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.SnapshotName = &xtv + sv.SnapshotName = ptr.String(xtv) } case strings.EqualFold("SnapshotRetentionLimit", t.Name.Local): @@ -19072,7 +19148,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.SnapshotSource = &xtv + sv.SnapshotSource = ptr.String(xtv) } case strings.EqualFold("SnapshotStatus", t.Name.Local): @@ -19088,7 +19164,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.SnapshotStatus = &xtv + sv.SnapshotStatus = ptr.String(xtv) } case strings.EqualFold("SnapshotWindow", t.Name.Local): @@ -19104,7 +19180,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.SnapshotWindow = &xtv + sv.SnapshotWindow = ptr.String(xtv) } case strings.EqualFold("TopicArn", t.Name.Local): @@ -19120,7 +19196,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.TopicArn = &xtv + sv.TopicArn = ptr.String(xtv) } case strings.EqualFold("VpcId", t.Name.Local): @@ -19136,7 +19212,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -19184,7 +19260,7 @@ func awsAwsquery_deserializeDocumentSnapshotAlreadyExistsFault(v **types.Snapsho } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19232,7 +19308,7 @@ func awsAwsquery_deserializeDocumentSnapshotFeatureNotSupportedFault(v **types.S } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19245,13 +19321,13 @@ func awsAwsquery_deserializeDocumentSnapshotFeatureNotSupportedFault(v **types.S return nil } -func awsAwsquery_deserializeDocumentSnapshotList(v *[]*types.Snapshot, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSnapshotList(v *[]types.Snapshot, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Snapshot + var sv []types.Snapshot if *v == nil { - sv = make([]*types.Snapshot, 0) + sv = make([]types.Snapshot, 0) } else { sv = *v } @@ -19267,11 +19343,13 @@ func awsAwsquery_deserializeDocumentSnapshotList(v *[]*types.Snapshot, decoder s } for { if strings.EqualFold("Snapshot", t.Name.Local) { - var col *types.Snapshot + var col types.Snapshot nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSnapshot(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSnapshot(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19284,23 +19362,25 @@ func awsAwsquery_deserializeDocumentSnapshotList(v *[]*types.Snapshot, decoder s return nil } -func awsAwsquery_deserializeDocumentSnapshotListUnwrapped(v *[]*types.Snapshot, decoder smithyxml.NodeDecoder) error { - var sv []*types.Snapshot +func awsAwsquery_deserializeDocumentSnapshotListUnwrapped(v *[]types.Snapshot, decoder smithyxml.NodeDecoder) error { + var sv []types.Snapshot if *v == nil { - sv = make([]*types.Snapshot, 0) + sv = make([]types.Snapshot, 0) } else { sv = *v } switch { default: - var mv *types.Snapshot + var mv types.Snapshot t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSnapshot(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSnapshot(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19341,7 +19421,7 @@ func awsAwsquery_deserializeDocumentSnapshotNotFoundFault(v **types.SnapshotNotF } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19389,7 +19469,7 @@ func awsAwsquery_deserializeDocumentSnapshotQuotaExceededFault(v **types.Snapsho } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19443,7 +19523,7 @@ func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.SubnetIdentifier = &xtv + sv.SubnetIdentifier = ptr.String(xtv) } case strings.EqualFold("SubnetOutpost", t.Name.Local): @@ -19497,7 +19577,7 @@ func awsAwsquery_deserializeDocumentSubnetInUse(v **types.SubnetInUse, decoder s } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19510,13 +19590,13 @@ func awsAwsquery_deserializeDocumentSubnetInUse(v **types.SubnetInUse, decoder s return nil } -func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSubnetList(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Subnet + var sv []types.Subnet if *v == nil { - sv = make([]*types.Subnet, 0) + sv = make([]types.Subnet, 0) } else { sv = *v } @@ -19532,11 +19612,13 @@ func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smith } for { if strings.EqualFold("Subnet", t.Name.Local) { - var col *types.Subnet + var col types.Subnet nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubnet(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSubnet(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19549,23 +19631,25 @@ func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smith return nil } -func awsAwsquery_deserializeDocumentSubnetListUnwrapped(v *[]*types.Subnet, decoder smithyxml.NodeDecoder) error { - var sv []*types.Subnet +func awsAwsquery_deserializeDocumentSubnetListUnwrapped(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error { + var sv []types.Subnet if *v == nil { - sv = make([]*types.Subnet, 0) + sv = make([]types.Subnet, 0) } else { sv = *v } switch { default: - var mv *types.Subnet + var mv types.Subnet t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubnet(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSubnet(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19606,7 +19690,7 @@ func awsAwsquery_deserializeDocumentSubnetNotAllowedFault(v **types.SubnetNotAll } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19654,7 +19738,7 @@ func awsAwsquery_deserializeDocumentSubnetOutpost(v **types.SubnetOutpost, decod } if val != nil { xtv := string(val) - sv.SubnetOutpostArn = &xtv + sv.SubnetOutpostArn = ptr.String(xtv) } default: @@ -19702,7 +19786,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -19718,7 +19802,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -19731,13 +19815,13 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec return nil } -func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -19753,11 +19837,13 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N } for { if strings.EqualFold("Tag", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19770,23 +19856,25 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19827,7 +19915,7 @@ func awsAwsquery_deserializeDocumentTagNotFoundFault(v **types.TagNotFoundFault, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19875,7 +19963,7 @@ func awsAwsquery_deserializeDocumentTagQuotaPerResourceExceeded(v **types.TagQuo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19923,7 +20011,7 @@ func awsAwsquery_deserializeDocumentTestFailoverNotAvailableFault(v **types.Test } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19936,13 +20024,13 @@ func awsAwsquery_deserializeDocumentTestFailoverNotAvailableFault(v **types.Test return nil } -func awsAwsquery_deserializeDocumentUGReplicationGroupIdList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentUGReplicationGroupIdList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -19960,20 +20048,17 @@ func awsAwsquery_deserializeDocumentUGReplicationGroupIdList(v *[]*string, decod decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -19986,17 +20071,17 @@ func awsAwsquery_deserializeDocumentUGReplicationGroupIdList(v *[]*string, decod return nil } -func awsAwsquery_deserializeDocumentUGReplicationGroupIdListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentUGReplicationGroupIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -20004,14 +20089,11 @@ func awsAwsquery_deserializeDocumentUGReplicationGroupIdListUnwrapped(v *[]*stri return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -20053,7 +20135,7 @@ func awsAwsquery_deserializeDocumentUnprocessedUpdateAction(v **types.Unprocesse } if val != nil { xtv := string(val) - sv.CacheClusterId = &xtv + sv.CacheClusterId = ptr.String(xtv) } case strings.EqualFold("ErrorMessage", t.Name.Local): @@ -20069,7 +20151,7 @@ func awsAwsquery_deserializeDocumentUnprocessedUpdateAction(v **types.Unprocesse } if val != nil { xtv := string(val) - sv.ErrorMessage = &xtv + sv.ErrorMessage = ptr.String(xtv) } case strings.EqualFold("ErrorType", t.Name.Local): @@ -20085,7 +20167,7 @@ func awsAwsquery_deserializeDocumentUnprocessedUpdateAction(v **types.Unprocesse } if val != nil { xtv := string(val) - sv.ErrorType = &xtv + sv.ErrorType = ptr.String(xtv) } case strings.EqualFold("ReplicationGroupId", t.Name.Local): @@ -20101,7 +20183,7 @@ func awsAwsquery_deserializeDocumentUnprocessedUpdateAction(v **types.Unprocesse } if val != nil { xtv := string(val) - sv.ReplicationGroupId = &xtv + sv.ReplicationGroupId = ptr.String(xtv) } case strings.EqualFold("ServiceUpdateName", t.Name.Local): @@ -20117,7 +20199,7 @@ func awsAwsquery_deserializeDocumentUnprocessedUpdateAction(v **types.Unprocesse } if val != nil { xtv := string(val) - sv.ServiceUpdateName = &xtv + sv.ServiceUpdateName = ptr.String(xtv) } default: @@ -20130,13 +20212,13 @@ func awsAwsquery_deserializeDocumentUnprocessedUpdateAction(v **types.Unprocesse return nil } -func awsAwsquery_deserializeDocumentUnprocessedUpdateActionList(v *[]*types.UnprocessedUpdateAction, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentUnprocessedUpdateActionList(v *[]types.UnprocessedUpdateAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UnprocessedUpdateAction + var sv []types.UnprocessedUpdateAction if *v == nil { - sv = make([]*types.UnprocessedUpdateAction, 0) + sv = make([]types.UnprocessedUpdateAction, 0) } else { sv = *v } @@ -20152,11 +20234,13 @@ func awsAwsquery_deserializeDocumentUnprocessedUpdateActionList(v *[]*types.Unpr } for { if strings.EqualFold("UnprocessedUpdateAction", t.Name.Local) { - var col *types.UnprocessedUpdateAction + var col types.UnprocessedUpdateAction nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUnprocessedUpdateAction(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentUnprocessedUpdateAction(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20169,23 +20253,25 @@ func awsAwsquery_deserializeDocumentUnprocessedUpdateActionList(v *[]*types.Unpr return nil } -func awsAwsquery_deserializeDocumentUnprocessedUpdateActionListUnwrapped(v *[]*types.UnprocessedUpdateAction, decoder smithyxml.NodeDecoder) error { - var sv []*types.UnprocessedUpdateAction +func awsAwsquery_deserializeDocumentUnprocessedUpdateActionListUnwrapped(v *[]types.UnprocessedUpdateAction, decoder smithyxml.NodeDecoder) error { + var sv []types.UnprocessedUpdateAction if *v == nil { - sv = make([]*types.UnprocessedUpdateAction, 0) + sv = make([]types.UnprocessedUpdateAction, 0) } else { sv = *v } switch { default: - var mv *types.UnprocessedUpdateAction + var mv types.UnprocessedUpdateAction t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUnprocessedUpdateAction(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentUnprocessedUpdateAction(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -20226,7 +20312,7 @@ func awsAwsquery_deserializeDocumentUpdateAction(v **types.UpdateAction, decoder } if val != nil { xtv := string(val) - sv.CacheClusterId = &xtv + sv.CacheClusterId = ptr.String(xtv) } case strings.EqualFold("CacheNodeUpdateStatus", t.Name.Local): @@ -20248,7 +20334,7 @@ func awsAwsquery_deserializeDocumentUpdateAction(v **types.UpdateAction, decoder } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EstimatedUpdateTime", t.Name.Local): @@ -20264,7 +20350,7 @@ func awsAwsquery_deserializeDocumentUpdateAction(v **types.UpdateAction, decoder } if val != nil { xtv := string(val) - sv.EstimatedUpdateTime = &xtv + sv.EstimatedUpdateTime = ptr.String(xtv) } case strings.EqualFold("NodeGroupUpdateStatus", t.Name.Local): @@ -20286,7 +20372,7 @@ func awsAwsquery_deserializeDocumentUpdateAction(v **types.UpdateAction, decoder } if val != nil { xtv := string(val) - sv.NodesUpdated = &xtv + sv.NodesUpdated = ptr.String(xtv) } case strings.EqualFold("ReplicationGroupId", t.Name.Local): @@ -20302,7 +20388,7 @@ func awsAwsquery_deserializeDocumentUpdateAction(v **types.UpdateAction, decoder } if val != nil { xtv := string(val) - sv.ReplicationGroupId = &xtv + sv.ReplicationGroupId = ptr.String(xtv) } case strings.EqualFold("ServiceUpdateName", t.Name.Local): @@ -20318,7 +20404,7 @@ func awsAwsquery_deserializeDocumentUpdateAction(v **types.UpdateAction, decoder } if val != nil { xtv := string(val) - sv.ServiceUpdateName = &xtv + sv.ServiceUpdateName = ptr.String(xtv) } case strings.EqualFold("ServiceUpdateRecommendedApplyByDate", t.Name.Local): @@ -20335,7 +20421,7 @@ func awsAwsquery_deserializeDocumentUpdateAction(v **types.UpdateAction, decoder if err != nil { return err } - sv.ServiceUpdateRecommendedApplyByDate = &t + sv.ServiceUpdateRecommendedApplyByDate = ptr.Time(t) } case strings.EqualFold("ServiceUpdateReleaseDate", t.Name.Local): @@ -20352,7 +20438,7 @@ func awsAwsquery_deserializeDocumentUpdateAction(v **types.UpdateAction, decoder if err != nil { return err } - sv.ServiceUpdateReleaseDate = &t + sv.ServiceUpdateReleaseDate = ptr.Time(t) } case strings.EqualFold("ServiceUpdateSeverity", t.Name.Local): @@ -20421,7 +20507,7 @@ func awsAwsquery_deserializeDocumentUpdateAction(v **types.UpdateAction, decoder if err != nil { return err } - sv.UpdateActionAvailableDate = &t + sv.UpdateActionAvailableDate = ptr.Time(t) } case strings.EqualFold("UpdateActionStatus", t.Name.Local): @@ -20451,7 +20537,7 @@ func awsAwsquery_deserializeDocumentUpdateAction(v **types.UpdateAction, decoder if err != nil { return err } - sv.UpdateActionStatusModifiedDate = &t + sv.UpdateActionStatusModifiedDate = ptr.Time(t) } default: @@ -20464,13 +20550,13 @@ func awsAwsquery_deserializeDocumentUpdateAction(v **types.UpdateAction, decoder return nil } -func awsAwsquery_deserializeDocumentUpdateActionList(v *[]*types.UpdateAction, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentUpdateActionList(v *[]types.UpdateAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UpdateAction + var sv []types.UpdateAction if *v == nil { - sv = make([]*types.UpdateAction, 0) + sv = make([]types.UpdateAction, 0) } else { sv = *v } @@ -20486,11 +20572,13 @@ func awsAwsquery_deserializeDocumentUpdateActionList(v *[]*types.UpdateAction, d } for { if strings.EqualFold("UpdateAction", t.Name.Local) { - var col *types.UpdateAction + var col types.UpdateAction nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUpdateAction(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentUpdateAction(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20503,23 +20591,25 @@ func awsAwsquery_deserializeDocumentUpdateActionList(v *[]*types.UpdateAction, d return nil } -func awsAwsquery_deserializeDocumentUpdateActionListUnwrapped(v *[]*types.UpdateAction, decoder smithyxml.NodeDecoder) error { - var sv []*types.UpdateAction +func awsAwsquery_deserializeDocumentUpdateActionListUnwrapped(v *[]types.UpdateAction, decoder smithyxml.NodeDecoder) error { + var sv []types.UpdateAction if *v == nil { - sv = make([]*types.UpdateAction, 0) + sv = make([]types.UpdateAction, 0) } else { sv = *v } switch { default: - var mv *types.UpdateAction + var mv types.UpdateAction t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUpdateAction(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentUpdateAction(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -20560,7 +20650,7 @@ func awsAwsquery_deserializeDocumentUser(v **types.User, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.AccessString = &xtv + sv.AccessString = ptr.String(xtv) } case strings.EqualFold("ARN", t.Name.Local): @@ -20576,7 +20666,7 @@ func awsAwsquery_deserializeDocumentUser(v **types.User, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("Authentication", t.Name.Local): @@ -20598,7 +20688,7 @@ func awsAwsquery_deserializeDocumentUser(v **types.User, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -20614,7 +20704,7 @@ func awsAwsquery_deserializeDocumentUser(v **types.User, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("UserGroupIds", t.Name.Local): @@ -20636,7 +20726,7 @@ func awsAwsquery_deserializeDocumentUser(v **types.User, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.UserId = &xtv + sv.UserId = ptr.String(xtv) } case strings.EqualFold("UserName", t.Name.Local): @@ -20652,7 +20742,7 @@ func awsAwsquery_deserializeDocumentUser(v **types.User, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -20700,7 +20790,7 @@ func awsAwsquery_deserializeDocumentUserAlreadyExistsFault(v **types.UserAlready } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20748,7 +20838,7 @@ func awsAwsquery_deserializeDocumentUserGroup(v **types.UserGroup, decoder smith } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -20764,7 +20854,7 @@ func awsAwsquery_deserializeDocumentUserGroup(v **types.UserGroup, decoder smith } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("PendingChanges", t.Name.Local): @@ -20792,7 +20882,7 @@ func awsAwsquery_deserializeDocumentUserGroup(v **types.UserGroup, decoder smith } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("UserGroupId", t.Name.Local): @@ -20808,7 +20898,7 @@ func awsAwsquery_deserializeDocumentUserGroup(v **types.UserGroup, decoder smith } if val != nil { xtv := string(val) - sv.UserGroupId = &xtv + sv.UserGroupId = ptr.String(xtv) } case strings.EqualFold("UserIds", t.Name.Local): @@ -20862,7 +20952,7 @@ func awsAwsquery_deserializeDocumentUserGroupAlreadyExistsFault(v **types.UserGr } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20875,13 +20965,13 @@ func awsAwsquery_deserializeDocumentUserGroupAlreadyExistsFault(v **types.UserGr return nil } -func awsAwsquery_deserializeDocumentUserGroupIdList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentUserGroupIdList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -20899,20 +20989,17 @@ func awsAwsquery_deserializeDocumentUserGroupIdList(v *[]*string, decoder smithy decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -20925,17 +21012,17 @@ func awsAwsquery_deserializeDocumentUserGroupIdList(v *[]*string, decoder smithy return nil } -func awsAwsquery_deserializeDocumentUserGroupIdListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentUserGroupIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -20943,27 +21030,24 @@ func awsAwsquery_deserializeDocumentUserGroupIdListUnwrapped(v *[]*string, decod return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentUserGroupList(v *[]*types.UserGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentUserGroupList(v *[]types.UserGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UserGroup + var sv []types.UserGroup if *v == nil { - sv = make([]*types.UserGroup, 0) + sv = make([]types.UserGroup, 0) } else { sv = *v } @@ -20979,11 +21063,13 @@ func awsAwsquery_deserializeDocumentUserGroupList(v *[]*types.UserGroup, decoder } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.UserGroup + var col types.UserGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUserGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentUserGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20996,23 +21082,25 @@ func awsAwsquery_deserializeDocumentUserGroupList(v *[]*types.UserGroup, decoder return nil } -func awsAwsquery_deserializeDocumentUserGroupListUnwrapped(v *[]*types.UserGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.UserGroup +func awsAwsquery_deserializeDocumentUserGroupListUnwrapped(v *[]types.UserGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.UserGroup if *v == nil { - sv = make([]*types.UserGroup, 0) + sv = make([]types.UserGroup, 0) } else { sv = *v } switch { default: - var mv *types.UserGroup + var mv types.UserGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUserGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentUserGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -21053,7 +21141,7 @@ func awsAwsquery_deserializeDocumentUserGroupNotFoundFault(v **types.UserGroupNo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21145,7 +21233,7 @@ func awsAwsquery_deserializeDocumentUserGroupQuotaExceededFault(v **types.UserGr } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21202,13 +21290,13 @@ func awsAwsquery_deserializeDocumentUserGroupsUpdateStatus(v **types.UserGroupsU return nil } -func awsAwsquery_deserializeDocumentUserIdList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentUserIdList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -21226,20 +21314,17 @@ func awsAwsquery_deserializeDocumentUserIdList(v *[]*string, decoder smithyxml.N decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -21252,17 +21337,17 @@ func awsAwsquery_deserializeDocumentUserIdList(v *[]*string, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentUserIdListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentUserIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -21270,27 +21355,24 @@ func awsAwsquery_deserializeDocumentUserIdListUnwrapped(v *[]*string, decoder sm return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentUserList(v *[]*types.User, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentUserList(v *[]types.User, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.User + var sv []types.User if *v == nil { - sv = make([]*types.User, 0) + sv = make([]types.User, 0) } else { sv = *v } @@ -21306,11 +21388,13 @@ func awsAwsquery_deserializeDocumentUserList(v *[]*types.User, decoder smithyxml } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.User + var col types.User nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUser(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentUser(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21323,23 +21407,25 @@ func awsAwsquery_deserializeDocumentUserList(v *[]*types.User, decoder smithyxml return nil } -func awsAwsquery_deserializeDocumentUserListUnwrapped(v *[]*types.User, decoder smithyxml.NodeDecoder) error { - var sv []*types.User +func awsAwsquery_deserializeDocumentUserListUnwrapped(v *[]types.User, decoder smithyxml.NodeDecoder) error { + var sv []types.User if *v == nil { - sv = make([]*types.User, 0) + sv = make([]types.User, 0) } else { sv = *v } switch { default: - var mv *types.User + var mv types.User t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUser(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentUser(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -21380,7 +21466,7 @@ func awsAwsquery_deserializeDocumentUserNotFoundFault(v **types.UserNotFoundFaul } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21428,7 +21514,7 @@ func awsAwsquery_deserializeDocumentUserQuotaExceededFault(v **types.UserQuotaEx } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21982,7 +22068,7 @@ func awsAwsquery_deserializeOpDocumentCreateUserGroupOutput(v **CreateUserGroupO } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -21998,7 +22084,7 @@ func awsAwsquery_deserializeOpDocumentCreateUserGroupOutput(v **CreateUserGroupO } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("PendingChanges", t.Name.Local): @@ -22026,7 +22112,7 @@ func awsAwsquery_deserializeOpDocumentCreateUserGroupOutput(v **CreateUserGroupO } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("UserGroupId", t.Name.Local): @@ -22042,7 +22128,7 @@ func awsAwsquery_deserializeOpDocumentCreateUserGroupOutput(v **CreateUserGroupO } if val != nil { xtv := string(val) - sv.UserGroupId = &xtv + sv.UserGroupId = ptr.String(xtv) } case strings.EqualFold("UserIds", t.Name.Local): @@ -22096,7 +22182,7 @@ func awsAwsquery_deserializeOpDocumentCreateUserOutput(v **CreateUserOutput, dec } if val != nil { xtv := string(val) - sv.AccessString = &xtv + sv.AccessString = ptr.String(xtv) } case strings.EqualFold("ARN", t.Name.Local): @@ -22112,7 +22198,7 @@ func awsAwsquery_deserializeOpDocumentCreateUserOutput(v **CreateUserOutput, dec } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("Authentication", t.Name.Local): @@ -22134,7 +22220,7 @@ func awsAwsquery_deserializeOpDocumentCreateUserOutput(v **CreateUserOutput, dec } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -22150,7 +22236,7 @@ func awsAwsquery_deserializeOpDocumentCreateUserOutput(v **CreateUserOutput, dec } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("UserGroupIds", t.Name.Local): @@ -22172,7 +22258,7 @@ func awsAwsquery_deserializeOpDocumentCreateUserOutput(v **CreateUserOutput, dec } if val != nil { xtv := string(val) - sv.UserId = &xtv + sv.UserId = ptr.String(xtv) } case strings.EqualFold("UserName", t.Name.Local): @@ -22188,7 +22274,7 @@ func awsAwsquery_deserializeOpDocumentCreateUserOutput(v **CreateUserOutput, dec } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -22560,7 +22646,7 @@ func awsAwsquery_deserializeOpDocumentDeleteUserGroupOutput(v **DeleteUserGroupO } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -22576,7 +22662,7 @@ func awsAwsquery_deserializeOpDocumentDeleteUserGroupOutput(v **DeleteUserGroupO } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("PendingChanges", t.Name.Local): @@ -22604,7 +22690,7 @@ func awsAwsquery_deserializeOpDocumentDeleteUserGroupOutput(v **DeleteUserGroupO } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("UserGroupId", t.Name.Local): @@ -22620,7 +22706,7 @@ func awsAwsquery_deserializeOpDocumentDeleteUserGroupOutput(v **DeleteUserGroupO } if val != nil { xtv := string(val) - sv.UserGroupId = &xtv + sv.UserGroupId = ptr.String(xtv) } case strings.EqualFold("UserIds", t.Name.Local): @@ -22674,7 +22760,7 @@ func awsAwsquery_deserializeOpDocumentDeleteUserOutput(v **DeleteUserOutput, dec } if val != nil { xtv := string(val) - sv.AccessString = &xtv + sv.AccessString = ptr.String(xtv) } case strings.EqualFold("ARN", t.Name.Local): @@ -22690,7 +22776,7 @@ func awsAwsquery_deserializeOpDocumentDeleteUserOutput(v **DeleteUserOutput, dec } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("Authentication", t.Name.Local): @@ -22712,7 +22798,7 @@ func awsAwsquery_deserializeOpDocumentDeleteUserOutput(v **DeleteUserOutput, dec } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -22728,7 +22814,7 @@ func awsAwsquery_deserializeOpDocumentDeleteUserOutput(v **DeleteUserOutput, dec } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("UserGroupIds", t.Name.Local): @@ -22750,7 +22836,7 @@ func awsAwsquery_deserializeOpDocumentDeleteUserOutput(v **DeleteUserOutput, dec } if val != nil { xtv := string(val) - sv.UserId = &xtv + sv.UserId = ptr.String(xtv) } case strings.EqualFold("UserName", t.Name.Local): @@ -22766,7 +22852,7 @@ func awsAwsquery_deserializeOpDocumentDeleteUserOutput(v **DeleteUserOutput, dec } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -22820,7 +22906,7 @@ func awsAwsquery_deserializeOpDocumentDescribeCacheClustersOutput(v **DescribeCa } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -22874,7 +22960,7 @@ func awsAwsquery_deserializeOpDocumentDescribeCacheEngineVersionsOutput(v **Desc } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -22928,7 +23014,7 @@ func awsAwsquery_deserializeOpDocumentDescribeCacheParameterGroupsOutput(v **Des } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -22982,7 +23068,7 @@ func awsAwsquery_deserializeOpDocumentDescribeCacheParametersOutput(v **Describe } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): @@ -23042,7 +23128,7 @@ func awsAwsquery_deserializeOpDocumentDescribeCacheSecurityGroupsOutput(v **Desc } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -23096,7 +23182,7 @@ func awsAwsquery_deserializeOpDocumentDescribeCacheSubnetGroupsOutput(v **Descri } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -23188,7 +23274,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEventsOutput(v **DescribeEventsOut } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -23242,7 +23328,7 @@ func awsAwsquery_deserializeOpDocumentDescribeGlobalReplicationGroupsOutput(v ** } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -23290,7 +23376,7 @@ func awsAwsquery_deserializeOpDocumentDescribeReplicationGroupsOutput(v **Descri } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ReplicationGroups", t.Name.Local): @@ -23344,7 +23430,7 @@ func awsAwsquery_deserializeOpDocumentDescribeReservedCacheNodesOfferingsOutput( } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ReservedCacheNodesOfferings", t.Name.Local): @@ -23398,7 +23484,7 @@ func awsAwsquery_deserializeOpDocumentDescribeReservedCacheNodesOutput(v **Descr } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ReservedCacheNodes", t.Name.Local): @@ -23452,7 +23538,7 @@ func awsAwsquery_deserializeOpDocumentDescribeServiceUpdatesOutput(v **DescribeS } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ServiceUpdates", t.Name.Local): @@ -23506,7 +23592,7 @@ func awsAwsquery_deserializeOpDocumentDescribeSnapshotsOutput(v **DescribeSnapsh } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Snapshots", t.Name.Local): @@ -23560,7 +23646,7 @@ func awsAwsquery_deserializeOpDocumentDescribeUpdateActionsOutput(v **DescribeUp } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("UpdateActions", t.Name.Local): @@ -23614,7 +23700,7 @@ func awsAwsquery_deserializeOpDocumentDescribeUserGroupsOutput(v **DescribeUserG } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("UserGroups", t.Name.Local): @@ -23668,7 +23754,7 @@ func awsAwsquery_deserializeOpDocumentDescribeUsersOutput(v **DescribeUsersOutpu } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Users", t.Name.Local): @@ -23994,7 +24080,7 @@ func awsAwsquery_deserializeOpDocumentModifyCacheParameterGroupOutput(v **Modify } if val != nil { xtv := string(val) - sv.CacheParameterGroupName = &xtv + sv.CacheParameterGroupName = ptr.String(xtv) } default: @@ -24194,7 +24280,7 @@ func awsAwsquery_deserializeOpDocumentModifyUserGroupOutput(v **ModifyUserGroupO } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -24210,7 +24296,7 @@ func awsAwsquery_deserializeOpDocumentModifyUserGroupOutput(v **ModifyUserGroupO } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("PendingChanges", t.Name.Local): @@ -24238,7 +24324,7 @@ func awsAwsquery_deserializeOpDocumentModifyUserGroupOutput(v **ModifyUserGroupO } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("UserGroupId", t.Name.Local): @@ -24254,7 +24340,7 @@ func awsAwsquery_deserializeOpDocumentModifyUserGroupOutput(v **ModifyUserGroupO } if val != nil { xtv := string(val) - sv.UserGroupId = &xtv + sv.UserGroupId = ptr.String(xtv) } case strings.EqualFold("UserIds", t.Name.Local): @@ -24308,7 +24394,7 @@ func awsAwsquery_deserializeOpDocumentModifyUserOutput(v **ModifyUserOutput, dec } if val != nil { xtv := string(val) - sv.AccessString = &xtv + sv.AccessString = ptr.String(xtv) } case strings.EqualFold("ARN", t.Name.Local): @@ -24324,7 +24410,7 @@ func awsAwsquery_deserializeOpDocumentModifyUserOutput(v **ModifyUserOutput, dec } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } case strings.EqualFold("Authentication", t.Name.Local): @@ -24346,7 +24432,7 @@ func awsAwsquery_deserializeOpDocumentModifyUserOutput(v **ModifyUserOutput, dec } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -24362,7 +24448,7 @@ func awsAwsquery_deserializeOpDocumentModifyUserOutput(v **ModifyUserOutput, dec } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("UserGroupIds", t.Name.Local): @@ -24384,7 +24470,7 @@ func awsAwsquery_deserializeOpDocumentModifyUserOutput(v **ModifyUserOutput, dec } if val != nil { xtv := string(val) - sv.UserId = &xtv + sv.UserId = ptr.String(xtv) } case strings.EqualFold("UserName", t.Name.Local): @@ -24400,7 +24486,7 @@ func awsAwsquery_deserializeOpDocumentModifyUserOutput(v **ModifyUserOutput, dec } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -24600,7 +24686,7 @@ func awsAwsquery_deserializeOpDocumentResetCacheParameterGroupOutput(v **ResetCa } if val != nil { xtv := string(val) - sv.CacheParameterGroupName = &xtv + sv.CacheParameterGroupName = ptr.String(xtv) } default: diff --git a/service/elasticache/go.mod b/service/elasticache/go.mod index 04a16b59aff..a9cfe2c3bac 100644 --- a/service/elasticache/go.mod +++ b/service/elasticache/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/elasticache go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/elasticache/serializers.go b/service/elasticache/serializers.go index 6c83f5b70a9..35e4fc78139 100644 --- a/service/elasticache/serializers.go +++ b/service/elasticache/serializers.go @@ -3589,66 +3589,54 @@ func (m *awsAwsquery_serializeOpTestFailover) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentAvailabilityZonesList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAvailabilityZonesList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("AvailabilityZone") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentCacheClusterIdList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentCacheClusterIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentCacheNodeIdsList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentCacheNodeIdsList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("CacheNodeId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentCacheSecurityGroupNameList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentCacheSecurityGroupNameList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("CacheSecurityGroupName") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3657,9 +3645,9 @@ func awsAwsquery_serializeDocumentConfigureShard(v *types.ConfigureShard, value object := value.Object() _ = object - if v.NewReplicaCount != nil { + if v.NewReplicaCount != 0 { objectKey := object.Key("NewReplicaCount") - objectKey.Integer(*v.NewReplicaCount) + objectKey.Integer(v.NewReplicaCount) } if v.NodeGroupId != nil { @@ -3701,18 +3689,15 @@ func awsAwsquery_serializeDocumentCustomerNodeEndpoint(v *types.CustomerNodeEndp return nil } -func awsAwsquery_serializeDocumentCustomerNodeEndpointList(v []*types.CustomerNodeEndpoint, value query.Value) error { +func awsAwsquery_serializeDocumentCustomerNodeEndpointList(v []types.CustomerNodeEndpoint, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentCustomerNodeEndpoint(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentCustomerNodeEndpoint(&v[i], av); err != nil { return err } } @@ -3738,68 +3723,56 @@ func awsAwsquery_serializeDocumentFilter(v *types.Filter, value query.Value) err return nil } -func awsAwsquery_serializeDocumentFilterList(v []*types.Filter, value query.Value) error { +func awsAwsquery_serializeDocumentFilterList(v []types.Filter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentFilterValueList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentFilterValueList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentGlobalNodeGroupIdList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentGlobalNodeGroupIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("GlobalNodeGroupId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentKeyList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentKeyList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3850,68 +3823,56 @@ func awsAwsquery_serializeDocumentNodeGroupConfiguration(v *types.NodeGroupConfi return nil } -func awsAwsquery_serializeDocumentNodeGroupConfigurationList(v []*types.NodeGroupConfiguration, value query.Value) error { +func awsAwsquery_serializeDocumentNodeGroupConfigurationList(v []types.NodeGroupConfiguration, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("NodeGroupConfiguration") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentNodeGroupConfiguration(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentNodeGroupConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentNodeGroupsToRemoveList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentNodeGroupsToRemoveList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("NodeGroupToRemove") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentNodeGroupsToRetainList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentNodeGroupsToRetainList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("NodeGroupToRetain") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentOutpostArnsList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentOutpostArnsList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("OutpostArn") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3933,68 +3894,56 @@ func awsAwsquery_serializeDocumentParameterNameValue(v *types.ParameterNameValue return nil } -func awsAwsquery_serializeDocumentParameterNameValueList(v []*types.ParameterNameValue, value query.Value) error { +func awsAwsquery_serializeDocumentParameterNameValueList(v []types.ParameterNameValue, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ParameterNameValue") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentParameterNameValue(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentParameterNameValue(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentPasswordListInput(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentPasswordListInput(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentPreferredAvailabilityZoneList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentPreferredAvailabilityZoneList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("PreferredAvailabilityZone") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentPreferredOutpostArnList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentPreferredOutpostArnList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("PreferredOutpostArn") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4023,70 +3972,58 @@ func awsAwsquery_serializeDocumentRegionalConfiguration(v *types.RegionalConfigu return nil } -func awsAwsquery_serializeDocumentRegionalConfigurationList(v []*types.RegionalConfiguration, value query.Value) error { +func awsAwsquery_serializeDocumentRegionalConfigurationList(v []types.RegionalConfiguration, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("RegionalConfiguration") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentRegionalConfiguration(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentRegionalConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentRemoveReplicasList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentRemoveReplicasList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentReplicaConfigurationList(v []*types.ConfigureShard, value query.Value) error { +func awsAwsquery_serializeDocumentReplicaConfigurationList(v []types.ConfigureShard, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ConfigureShard") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentConfigureShard(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentConfigureShard(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentReplicationGroupIdList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentReplicationGroupIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4110,36 +4047,30 @@ func awsAwsquery_serializeDocumentReshardingConfiguration(v *types.ReshardingCon return nil } -func awsAwsquery_serializeDocumentReshardingConfigurationList(v []*types.ReshardingConfiguration, value query.Value) error { +func awsAwsquery_serializeDocumentReshardingConfigurationList(v []types.ReshardingConfiguration, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ReshardingConfiguration") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentReshardingConfiguration(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentReshardingConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentSecurityGroupIdsList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSecurityGroupIdsList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SecurityGroupId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4157,34 +4088,28 @@ func awsAwsquery_serializeDocumentServiceUpdateStatusList(v []types.ServiceUpdat return nil } -func awsAwsquery_serializeDocumentSnapshotArnsList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSnapshotArnsList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SnapshotArn") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentSubnetIdentifierList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSubnetIdentifierList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SubnetIdentifier") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4206,18 +4131,15 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTagList(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTagList(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Tag") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -4254,50 +4176,41 @@ func awsAwsquery_serializeDocumentUpdateActionStatusList(v []types.UpdateActionS return nil } -func awsAwsquery_serializeDocumentUserGroupIdList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentUserGroupIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentUserGroupIdListInput(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentUserGroupIdListInput(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentUserIdListInput(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentUserIdListInput(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4399,9 +4312,9 @@ func awsAwsquery_serializeOpDocumentCompleteMigrationInput(v *CompleteMigrationI object := value.Object() _ = object - if v.Force != nil { + if v.Force { objectKey := object.Key("Force") - objectKey.Boolean(*v.Force) + objectKey.Boolean(v.Force) } if v.ReplicationGroupId != nil { @@ -4948,9 +4861,9 @@ func awsAwsquery_serializeOpDocumentDecreaseNodeGroupsInGlobalReplicationGroupIn object := value.Object() _ = object - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.GlobalNodeGroupsToRemove != nil { @@ -4972,9 +4885,9 @@ func awsAwsquery_serializeOpDocumentDecreaseNodeGroupsInGlobalReplicationGroupIn objectKey.String(*v.GlobalReplicationGroupId) } - if v.NodeGroupCount != nil { + if v.NodeGroupCount != 0 { objectKey := object.Key("NodeGroupCount") - objectKey.Integer(*v.NodeGroupCount) + objectKey.Integer(v.NodeGroupCount) } return nil @@ -4984,9 +4897,9 @@ func awsAwsquery_serializeOpDocumentDecreaseReplicaCountInput(v *DecreaseReplica object := value.Object() _ = object - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.NewReplicaCount != nil { @@ -5078,9 +4991,9 @@ func awsAwsquery_serializeOpDocumentDeleteGlobalReplicationGroupInput(v *DeleteG objectKey.String(*v.GlobalReplicationGroupId) } - if v.RetainPrimaryReplicationGroup != nil { + if v.RetainPrimaryReplicationGroup { objectKey := object.Key("RetainPrimaryReplicationGroup") - objectKey.Boolean(*v.RetainPrimaryReplicationGroup) + objectKey.Boolean(v.RetainPrimaryReplicationGroup) } return nil @@ -5185,9 +5098,9 @@ func awsAwsquery_serializeOpDocumentDescribeCacheEngineVersionsInput(v *Describe objectKey.String(*v.CacheParameterGroupFamily) } - if v.DefaultOnly != nil { + if v.DefaultOnly { objectKey := object.Key("DefaultOnly") - objectKey.Boolean(*v.DefaultOnly) + objectKey.Boolean(v.DefaultOnly) } if v.Engine != nil { @@ -5750,9 +5663,9 @@ func awsAwsquery_serializeOpDocumentIncreaseNodeGroupsInGlobalReplicationGroupIn object := value.Object() _ = object - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.GlobalReplicationGroupId != nil { @@ -5760,9 +5673,9 @@ func awsAwsquery_serializeOpDocumentIncreaseNodeGroupsInGlobalReplicationGroupIn objectKey.String(*v.GlobalReplicationGroupId) } - if v.NodeGroupCount != nil { + if v.NodeGroupCount != 0 { objectKey := object.Key("NodeGroupCount") - objectKey.Integer(*v.NodeGroupCount) + objectKey.Integer(v.NodeGroupCount) } if v.RegionalConfigurations != nil { @@ -5779,9 +5692,9 @@ func awsAwsquery_serializeOpDocumentIncreaseReplicaCountInput(v *IncreaseReplica object := value.Object() _ = object - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.NewReplicaCount != nil { @@ -5837,9 +5750,9 @@ func awsAwsquery_serializeOpDocumentModifyCacheClusterInput(v *ModifyCacheCluste object := value.Object() _ = object - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.AuthToken != nil { @@ -5990,9 +5903,9 @@ func awsAwsquery_serializeOpDocumentModifyGlobalReplicationGroupInput(v *ModifyG object := value.Object() _ = object - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.AutomaticFailoverEnabled != nil { @@ -6027,9 +5940,9 @@ func awsAwsquery_serializeOpDocumentModifyReplicationGroupInput(v *ModifyReplica object := value.Object() _ = object - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.AuthToken != nil { @@ -6162,14 +6075,14 @@ func awsAwsquery_serializeOpDocumentModifyReplicationGroupShardConfigurationInpu object := value.Object() _ = object - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } - if v.NodeGroupCount != nil { + if v.NodeGroupCount != 0 { objectKey := object.Key("NodeGroupCount") - objectKey.Integer(*v.NodeGroupCount) + objectKey.Integer(v.NodeGroupCount) } if v.NodeGroupsToRemove != nil { @@ -6287,9 +6200,9 @@ func awsAwsquery_serializeOpDocumentRebalanceSlotsInGlobalReplicationGroupInput( object := value.Object() _ = object - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.GlobalReplicationGroupId != nil { @@ -6354,9 +6267,9 @@ func awsAwsquery_serializeOpDocumentResetCacheParameterGroupInput(v *ResetCacheP } } - if v.ResetAllParameters != nil { + if v.ResetAllParameters { objectKey := object.Key("ResetAllParameters") - objectKey.Boolean(*v.ResetAllParameters) + objectKey.Boolean(v.ResetAllParameters) } return nil diff --git a/service/elasticache/types/types.go b/service/elasticache/types/types.go index f9c2b6b11bb..ffc37741744 100644 --- a/service/elasticache/types/types.go +++ b/service/elasticache/types/types.go @@ -44,7 +44,7 @@ type CacheCluster struct { AuthTokenLastModifiedDate *time.Time // This parameter is currently disabled. - AutoMinorVersionUpgrade *bool + AutoMinorVersionUpgrade bool // The date and time when the cluster was created. CacheClusterCreateTime *time.Time @@ -125,14 +125,14 @@ type CacheCluster struct { CacheNodeType *string // A list of cache nodes that are members of the cluster. - CacheNodes []*CacheNode + CacheNodes []CacheNode // Status of the cache parameter group. CacheParameterGroup *CacheParameterGroupStatus // A list of cache security group elements, composed of name and status // sub-elements. - CacheSecurityGroups []*CacheSecurityGroupMembership + CacheSecurityGroups []CacheSecurityGroupMembership // The name of the cache subnet group associated with the cluster. CacheSubnetGroupName *string @@ -201,7 +201,7 @@ type CacheCluster struct { ReplicationGroupId *string // A list of VPC Security Groups associated with the cluster. - SecurityGroups []*SecurityGroupMembership + SecurityGroups []SecurityGroupMembership // The number of days for which ElastiCache retains automatic cluster snapshots // before deleting them. For example, if you set SnapshotRetentionLimit to 5, a @@ -347,7 +347,7 @@ type CacheNodeTypeSpecificParameter struct { AllowedValues *string // A list of cache node types and their corresponding values for this parameter. - CacheNodeTypeSpecificValues []*CacheNodeTypeSpecificValue + CacheNodeTypeSpecificValues []CacheNodeTypeSpecificValue // Indicates whether a change to the parameter is applied immediately or requires a // reboot for the change to be applied. You can force a reboot or wait until the @@ -364,7 +364,7 @@ type CacheNodeTypeSpecificParameter struct { // Indicates whether (true) or not (false) the parameter can be modified. Some // parameters have security or operational implications that prevent them from // being changed. - IsModifiable *bool + IsModifiable bool // The earliest cache engine version to which the parameter can apply. MinimumEngineVersion *string @@ -433,7 +433,7 @@ type CacheParameterGroup struct { Description *string // Indicates whether the parameter group is associated with a Global Datastore - IsGlobal *bool + IsGlobal bool } // Status of the cache parameter group. @@ -441,7 +441,7 @@ type CacheParameterGroupStatus struct { // A list of the cache node IDs which need to be rebooted for parameter changes to // be applied. A node ID is a numeric identifier (0001, 0002, etc.). - CacheNodeIdsToReboot []*string + CacheNodeIdsToReboot []string // The name of the cache parameter group. CacheParameterGroupName *string @@ -472,7 +472,7 @@ type CacheSecurityGroup struct { // A list of Amazon EC2 security groups that are associated with this cache // security group. - EC2SecurityGroups []*EC2SecurityGroup + EC2SecurityGroups []EC2SecurityGroup // The AWS account ID of the cache security group owner. OwnerId *string @@ -508,7 +508,7 @@ type CacheSubnetGroup struct { CacheSubnetGroupName *string // A list of subnets associated with the cache subnet group. - Subnets []*Subnet + Subnets []Subnet // The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group. VpcId *string @@ -535,7 +535,7 @@ type ConfigureShard struct { // will not be able to failover to a replica if your primary node fails) // // This member is required. - NewReplicaCount *int32 + NewReplicaCount int32 // The 4-digit id for the node group you are configuring. For Redis (cluster mode // disabled) replication groups, the node group id is always 0001. To find a Redis @@ -551,10 +551,10 @@ type ConfigureShard struct { // to account for the primary node. If this member of ReplicaConfiguration is // omitted, ElastiCache for Redis selects the availability zone for each of the // replicas. - PreferredAvailabilityZones []*string + PreferredAvailabilityZones []string // The outpost ARNs in which the cache cluster is created. - PreferredOutpostArns []*string + PreferredOutpostArns []string } // The endpoint from which data should be migrated. @@ -588,7 +588,7 @@ type Endpoint struct { Address *string // The port number that the cache engine is listening on. - Port *int32 + Port int32 } // Represents the output of a DescribeEngineDefaultParameters operation. @@ -596,7 +596,7 @@ type EngineDefaults struct { // A list of parameters specific to a particular cache node type. Each element in // the list contains detailed information about one parameter. - CacheNodeTypeSpecificParameters []*CacheNodeTypeSpecificParameter + CacheNodeTypeSpecificParameters []CacheNodeTypeSpecificParameter // Specifies the name of the cache parameter group family to which the engine // default parameters apply. Valid values are: memcached1.4 | memcached1.5 | @@ -607,7 +607,7 @@ type EngineDefaults struct { Marker *string // Contains a list of engine default parameters. - Parameters []*Parameter + Parameters []Parameter } // Represents a single occurrence of something interesting within the system. Some @@ -641,7 +641,7 @@ type Filter struct { // The property values to filter on. For example, "user-123". // // This member is required. - Values []*string + Values []string } // Indicates the slot configuration and global identifier for a slice group. @@ -691,7 +691,7 @@ type GlobalReplicationGroup struct { EngineVersion *string // Indicates the slot configuration and global identifier for each slice group. - GlobalNodeGroups []*GlobalNodeGroup + GlobalNodeGroups []GlobalNodeGroup // The optional description of the Global Datastore GlobalReplicationGroupDescription *string @@ -700,7 +700,7 @@ type GlobalReplicationGroup struct { GlobalReplicationGroupId *string // The replication groups that comprise the Global Datastore. - Members []*GlobalReplicationGroupMember + Members []GlobalReplicationGroupMember // The status of the Global Datastore Status *string @@ -758,7 +758,7 @@ type NodeGroup struct { // A list containing information about individual nodes within the node group // (shard). - NodeGroupMembers []*NodeGroupMember + NodeGroupMembers []NodeGroupMember // The endpoint of the primary node in this node group (shard). PrimaryEndpoint *Endpoint @@ -793,13 +793,13 @@ type NodeGroupConfiguration struct { // A list of Availability Zones to be used for the read replicas. The number of // Availability Zones in this list must match the value of ReplicaCount or // ReplicasPerNodeGroup if not specified. - ReplicaAvailabilityZones []*string + ReplicaAvailabilityZones []string // The number of read replica nodes in this node group (shard). ReplicaCount *int32 // The outpost ARN of the node replicas. - ReplicaOutpostArns []*string + ReplicaOutpostArns []string // A string that specifies the keyspace for a particular node group. Keyspaces // range from 0 to 16,383. The string is in the format startkey-endkey. Example: @@ -872,7 +872,7 @@ type NodeGroupUpdateStatus struct { NodeGroupId *string // The status of the service update on the node group member - NodeGroupMemberUpdateStatus []*NodeGroupMemberUpdateStatus + NodeGroupMemberUpdateStatus []NodeGroupMemberUpdateStatus } // Represents an individual cache node in a snapshot of a cluster. @@ -935,7 +935,7 @@ type Parameter struct { // Indicates whether (true) or not (false) the parameter can be modified. Some // parameters have security or operational implications that prevent them from // being changed. - IsModifiable *bool + IsModifiable bool // The earliest cache engine version to which the parameter can apply. MinimumEngineVersion *string @@ -969,7 +969,7 @@ type PendingModifiedValues struct { // A list of cache node IDs that are being removed (or will be removed) from the // cluster. A node ID is a 4-digit numeric identifier (0001, 0002, etc.). - CacheNodeIdsToRemove []*string + CacheNodeIdsToRemove []string // The cache node type that this cluster or replication group is scaled to. CacheNodeType *string @@ -1004,7 +1004,7 @@ type ProcessedUpdateAction struct { type RecurringCharge struct { // The monetary amount of the recurring charge. - RecurringChargeAmount *float64 + RecurringChargeAmount float64 // The frequency of the recurring charge. RecurringChargeFrequency *string @@ -1027,7 +1027,7 @@ type RegionalConfiguration struct { // a node group in the resharded cluster. // // This member is required. - ReshardingConfiguration []*ReshardingConfiguration + ReshardingConfiguration []ReshardingConfiguration } // Contains all of the attributes of a specific Redis replication group. @@ -1077,10 +1077,10 @@ type ReplicationGroup struct { KmsKeyId *string // The names of all the cache clusters that are part of this replication group. - MemberClusters []*string + MemberClusters []string // The outpost ARNs of the replication group's member clusters. - MemberClustersOutpostArns []*string + MemberClustersOutpostArns []string // A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For // more information, see Minimizing Downtime: Multi-AZ @@ -1091,7 +1091,7 @@ type ReplicationGroup struct { // disabled) replication groups, this is a single-element list. For Redis (cluster // mode enabled) replication groups, the list contains an entry for each node group // (shard). - NodeGroups []*NodeGroup + NodeGroups []NodeGroup // A group of settings to be applied to the replication group, either immediately // or during the next maintenance window. @@ -1128,7 +1128,7 @@ type ReplicationGroup struct { TransitEncryptionEnabled *bool // The list of user group IDs that have access to the replication group. - UserGroupIds []*string + UserGroupIds []string } // The settings to be applied to the Redis replication group, either immediately or @@ -1156,7 +1156,7 @@ type ReplicationGroupPendingModifiedValues struct { type ReservedCacheNode struct { // The number of cache nodes that have been reserved. - CacheNodeCount *int32 + CacheNodeCount int32 // The cache node type for the reserved cache nodes. The following node types are // supported by ElastiCache. Generally speaking, the current generation types @@ -1225,10 +1225,10 @@ type ReservedCacheNode struct { CacheNodeType *string // The duration of the reservation in seconds. - Duration *int32 + Duration int32 // The fixed price charged for this reserved cache node. - FixedPrice *float64 + FixedPrice float64 // The offering type of this reserved cache node. OfferingType *string @@ -1237,7 +1237,7 @@ type ReservedCacheNode struct { ProductDescription *string // The recurring price charged to run this reserved cache node. - RecurringCharges []*RecurringCharge + RecurringCharges []RecurringCharge // The Amazon Resource Name (ARN) of the reserved cache node. Example: // arn:aws:elasticache:us-east-1:123456789012:reserved-instance:ri-2017-03-27-08-33-25-582 @@ -1256,7 +1256,7 @@ type ReservedCacheNode struct { State *string // The hourly price charged for this reserved cache node. - UsagePrice *float64 + UsagePrice float64 } // Describes all of the attributes of a reserved cache node offering. @@ -1329,10 +1329,10 @@ type ReservedCacheNodesOffering struct { CacheNodeType *string // The duration of the offering. in seconds. - Duration *int32 + Duration int32 // The fixed price charged for this offering. - FixedPrice *float64 + FixedPrice float64 // The offering type. OfferingType *string @@ -1341,13 +1341,13 @@ type ReservedCacheNodesOffering struct { ProductDescription *string // The recurring price charged to run this reserved cache node. - RecurringCharges []*RecurringCharge + RecurringCharges []RecurringCharge // A unique identifier for the reserved cache node offering. ReservedCacheNodesOfferingId *string // The hourly price charged for this offering. - UsagePrice *float64 + UsagePrice float64 } // A list of PreferredAvailabilityZones objects that specifies the configuration of @@ -1359,7 +1359,7 @@ type ReshardingConfiguration struct { NodeGroupId *string // A list of preferred availability zones for the nodes in this cluster. - PreferredAvailabilityZones []*string + PreferredAvailabilityZones []string } // The status of an online resharding operation. @@ -1429,7 +1429,7 @@ type ServiceUpdate struct { type SlotMigration struct { // The percentage of the slot migration that is complete. - ProgressPercentage *float64 + ProgressPercentage float64 } // Represents a copy of an entire Redis cluster as of the time when the snapshot @@ -1440,7 +1440,7 @@ type Snapshot struct { ARN *string // This parameter is currently disabled. - AutoMinorVersionUpgrade *bool + AutoMinorVersionUpgrade bool // Indicates the status of automatic failover for the source Redis replication // group. @@ -1534,7 +1534,7 @@ type Snapshot struct { KmsKeyId *string // A list of the cache nodes in the source cluster. - NodeSnapshots []*NodeSnapshot + NodeSnapshots []NodeSnapshot // The number of cache nodes in the source cluster. For clusters running Redis, // this value must be 1. For clusters running Memcached, this value must be between @@ -1689,7 +1689,7 @@ type UpdateAction struct { CacheClusterId *string // The status of the service update on the cache node - CacheNodeUpdateStatus []*CacheNodeUpdateStatus + CacheNodeUpdateStatus []CacheNodeUpdateStatus // The Elasticache engine to which the update applies. Either Redis or Memcached Engine *string @@ -1698,7 +1698,7 @@ type UpdateAction struct { EstimatedUpdateTime *string // The status of the service update on the node group - NodeGroupUpdateStatus []*NodeGroupUpdateStatus + NodeGroupUpdateStatus []NodeGroupUpdateStatus // The progress of the service update on the replication group NodesUpdated *string @@ -1760,7 +1760,7 @@ type User struct { Status *string // Returns a list of the user group IDs the user belongs to. - UserGroupIds []*string + UserGroupIds []string // The ID of the user. UserId *string @@ -1781,7 +1781,7 @@ type UserGroup struct { PendingChanges *UserGroupPendingChanges // A list of replication groups that the user group can access. - ReplicationGroups []*string + ReplicationGroups []string // Indicates user group status. Can be "creating", "active", "modifying", // "deleting". @@ -1791,25 +1791,25 @@ type UserGroup struct { UserGroupId *string // The list of user IDs that belong to the user group. - UserIds []*string + UserIds []string } // Returns the updates being applied to the user group. type UserGroupPendingChanges struct { // The list of user IDs to add. - UserIdsToAdd []*string + UserIdsToAdd []string // The list of user group IDs ro remove. - UserIdsToRemove []*string + UserIdsToRemove []string } // The status of the user group update. type UserGroupsUpdateStatus struct { // The list of user group IDs to add. - UserGroupIdsToAdd []*string + UserGroupIdsToAdd []string // The list of user group IDs to remove. - UserGroupIdsToRemove []*string + UserGroupIdsToRemove []string } diff --git a/service/elasticache/validators.go b/service/elasticache/validators.go index dacdec6d742..7c70cb1cc8b 100644 --- a/service/elasticache/validators.go +++ b/service/elasticache/validators.go @@ -1218,9 +1218,6 @@ func validateConfigureShard(v *types.ConfigureShard) error { if v.NodeGroupId == nil { invalidParams.Add(smithy.NewErrParamRequired("NodeGroupId")) } - if v.NewReplicaCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("NewReplicaCount")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1246,13 +1243,13 @@ func validateFilter(v *types.Filter) error { } } -func validateFilterList(v []*types.Filter) error { +func validateFilterList(v []types.Filter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FilterList"} for i := range v { - if err := validateFilter(v[i]); err != nil { + if err := validateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1284,13 +1281,13 @@ func validateRegionalConfiguration(v *types.RegionalConfiguration) error { } } -func validateRegionalConfigurationList(v []*types.RegionalConfiguration) error { +func validateRegionalConfigurationList(v []types.RegionalConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RegionalConfigurationList"} for i := range v { - if err := validateRegionalConfiguration(v[i]); err != nil { + if err := validateRegionalConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1301,13 +1298,13 @@ func validateRegionalConfigurationList(v []*types.RegionalConfiguration) error { } } -func validateReplicaConfigurationList(v []*types.ConfigureShard) error { +func validateReplicaConfigurationList(v []types.ConfigureShard) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReplicaConfigurationList"} for i := range v { - if err := validateConfigureShard(v[i]); err != nil { + if err := validateConfigureShard(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1593,12 +1590,6 @@ func validateOpDecreaseNodeGroupsInGlobalReplicationGroupInput(v *DecreaseNodeGr return nil } invalidParams := smithy.InvalidParamsError{Context: "DecreaseNodeGroupsInGlobalReplicationGroupInput"} - if v.ApplyImmediately == nil { - invalidParams.Add(smithy.NewErrParamRequired("ApplyImmediately")) - } - if v.NodeGroupCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("NodeGroupCount")) - } if v.GlobalReplicationGroupId == nil { invalidParams.Add(smithy.NewErrParamRequired("GlobalReplicationGroupId")) } @@ -1614,9 +1605,6 @@ func validateOpDecreaseReplicaCountInput(v *DecreaseReplicaCountInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "DecreaseReplicaCountInput"} - if v.ApplyImmediately == nil { - invalidParams.Add(smithy.NewErrParamRequired("ApplyImmediately")) - } if v.ReplicationGroupId == nil { invalidParams.Add(smithy.NewErrParamRequired("ReplicationGroupId")) } @@ -1697,9 +1685,6 @@ func validateOpDeleteGlobalReplicationGroupInput(v *DeleteGlobalReplicationGroup return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteGlobalReplicationGroupInput"} - if v.RetainPrimaryReplicationGroup == nil { - invalidParams.Add(smithy.NewErrParamRequired("RetainPrimaryReplicationGroup")) - } if v.GlobalReplicationGroupId == nil { invalidParams.Add(smithy.NewErrParamRequired("GlobalReplicationGroupId")) } @@ -1864,9 +1849,6 @@ func validateOpIncreaseNodeGroupsInGlobalReplicationGroupInput(v *IncreaseNodeGr return nil } invalidParams := smithy.InvalidParamsError{Context: "IncreaseNodeGroupsInGlobalReplicationGroupInput"} - if v.NodeGroupCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("NodeGroupCount")) - } if v.GlobalReplicationGroupId == nil { invalidParams.Add(smithy.NewErrParamRequired("GlobalReplicationGroupId")) } @@ -1875,9 +1857,6 @@ func validateOpIncreaseNodeGroupsInGlobalReplicationGroupInput(v *IncreaseNodeGr invalidParams.AddNested("RegionalConfigurations", err.(smithy.InvalidParamsError)) } } - if v.ApplyImmediately == nil { - invalidParams.Add(smithy.NewErrParamRequired("ApplyImmediately")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1893,9 +1872,6 @@ func validateOpIncreaseReplicaCountInput(v *IncreaseReplicaCountInput) error { if v.ReplicationGroupId == nil { invalidParams.Add(smithy.NewErrParamRequired("ReplicationGroupId")) } - if v.ApplyImmediately == nil { - invalidParams.Add(smithy.NewErrParamRequired("ApplyImmediately")) - } if v.ReplicaConfiguration != nil { if err := validateReplicaConfigurationList(v.ReplicaConfiguration); err != nil { invalidParams.AddNested("ReplicaConfiguration", err.(smithy.InvalidParamsError)) @@ -1976,9 +1952,6 @@ func validateOpModifyGlobalReplicationGroupInput(v *ModifyGlobalReplicationGroup return nil } invalidParams := smithy.InvalidParamsError{Context: "ModifyGlobalReplicationGroupInput"} - if v.ApplyImmediately == nil { - invalidParams.Add(smithy.NewErrParamRequired("ApplyImmediately")) - } if v.GlobalReplicationGroupId == nil { invalidParams.Add(smithy.NewErrParamRequired("GlobalReplicationGroupId")) } @@ -2012,12 +1985,6 @@ func validateOpModifyReplicationGroupShardConfigurationInput(v *ModifyReplicatio if v.ReplicationGroupId == nil { invalidParams.Add(smithy.NewErrParamRequired("ReplicationGroupId")) } - if v.NodeGroupCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("NodeGroupCount")) - } - if v.ApplyImmediately == nil { - invalidParams.Add(smithy.NewErrParamRequired("ApplyImmediately")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2075,9 +2042,6 @@ func validateOpRebalanceSlotsInGlobalReplicationGroupInput(v *RebalanceSlotsInGl return nil } invalidParams := smithy.InvalidParamsError{Context: "RebalanceSlotsInGlobalReplicationGroupInput"} - if v.ApplyImmediately == nil { - invalidParams.Add(smithy.NewErrParamRequired("ApplyImmediately")) - } if v.GlobalReplicationGroupId == nil { invalidParams.Add(smithy.NewErrParamRequired("GlobalReplicationGroupId")) } diff --git a/service/elasticbeanstalk/api_op_ComposeEnvironments.go b/service/elasticbeanstalk/api_op_ComposeEnvironments.go index f8ddd6d56ea..94bbef8bed2 100644 --- a/service/elasticbeanstalk/api_op_ComposeEnvironments.go +++ b/service/elasticbeanstalk/api_op_ComposeEnvironments.go @@ -50,14 +50,14 @@ type ComposeEnvironmentsInput struct { // belong to the target application. Each source bundle must include an environment // manifest that specifies the name of the environment and the name of the solution // stack to use, and optionally can specify environment links to create. - VersionLabels []*string + VersionLabels []string } // Result message containing a list of environment descriptions. type ComposeEnvironmentsOutput struct { // Returns an EnvironmentDescription list. - Environments []*types.EnvironmentDescription + Environments []types.EnvironmentDescription // In a paginated request, the token that you can pass in a subsequent request to // get the next response page. diff --git a/service/elasticbeanstalk/api_op_CreateApplication.go b/service/elasticbeanstalk/api_op_CreateApplication.go index cd168015b92..a6c90827624 100644 --- a/service/elasticbeanstalk/api_op_CreateApplication.go +++ b/service/elasticbeanstalk/api_op_CreateApplication.go @@ -46,7 +46,7 @@ type CreateApplicationInput struct { // Specifies the tags applied to the application. Elastic Beanstalk applies these // tags only to the application. Environments that you create in the application // don't inherit the tags. - Tags []*types.Tag + Tags []types.Tag } // Result message containing a single description of an application. diff --git a/service/elasticbeanstalk/api_op_CreateApplicationVersion.go b/service/elasticbeanstalk/api_op_CreateApplicationVersion.go index cbed3bd3216..63d72ca5e08 100644 --- a/service/elasticbeanstalk/api_op_CreateApplicationVersion.go +++ b/service/elasticbeanstalk/api_op_CreateApplicationVersion.go @@ -89,7 +89,7 @@ type CreateApplicationVersionInput struct { // Specifies the tags applied to the application version. Elastic Beanstalk applies // these tags only to the application version. Environments that use the // application version don't inherit the tags. - Tags []*types.Tag + Tags []types.Tag } // Result message wrapping a single description of an application version. diff --git a/service/elasticbeanstalk/api_op_CreateConfigurationTemplate.go b/service/elasticbeanstalk/api_op_CreateConfigurationTemplate.go index 06ee04a8630..fe48f1657e9 100644 --- a/service/elasticbeanstalk/api_op_CreateConfigurationTemplate.go +++ b/service/elasticbeanstalk/api_op_CreateConfigurationTemplate.go @@ -70,7 +70,7 @@ type CreateConfigurationTemplateInput struct { // Beanstalk configuration options, see Option Values // (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html) in // the AWS Elastic Beanstalk Developer Guide. - OptionSettings []*types.ConfigurationOptionSetting + OptionSettings []types.ConfigurationOptionSetting // The Amazon Resource Name (ARN) of the custom platform. For more information, see // Custom Platforms @@ -104,7 +104,7 @@ type CreateConfigurationTemplateInput struct { SourceConfiguration *types.SourceConfiguration // Specifies the tags applied to the configuration template. - Tags []*types.Tag + Tags []types.Tag } // Describes the settings for a configuration set. @@ -144,7 +144,7 @@ type CreateConfigurationTemplateOutput struct { EnvironmentName *string // A list of the configuration options and their values in this configuration set. - OptionSettings []*types.ConfigurationOptionSetting + OptionSettings []types.ConfigurationOptionSetting // The ARN of the platform version. PlatformArn *string diff --git a/service/elasticbeanstalk/api_op_CreateEnvironment.go b/service/elasticbeanstalk/api_op_CreateEnvironment.go index eecdf9df38b..2ab7d95da18 100644 --- a/service/elasticbeanstalk/api_op_CreateEnvironment.go +++ b/service/elasticbeanstalk/api_op_CreateEnvironment.go @@ -76,11 +76,11 @@ type CreateEnvironmentInput struct { // the requested value in the configuration set for the new environment. These // override the values obtained from the solution stack or the configuration // template. - OptionSettings []*types.ConfigurationOptionSetting + OptionSettings []types.ConfigurationOptionSetting // A list of custom user-defined configuration options to remove from the // configuration set for this new environment. - OptionsToRemove []*types.OptionSpecification + OptionsToRemove []types.OptionSpecification // The Amazon Resource Name (ARN) of the custom platform to use with the // environment. For more information, see Custom Platforms @@ -99,7 +99,7 @@ type CreateEnvironmentInput struct { SolutionStackName *string // Specifies the tags applied to resources in the environment. - Tags []*types.Tag + Tags []types.Tag // The name of the Elastic Beanstalk configuration template to use with the // environment. If you specify TemplateName, then don't specify SolutionStackName. @@ -151,7 +151,7 @@ type CreateEnvironmentOutput struct { EnvironmentId *string // A list of links to other environments in the same group. - EnvironmentLinks []*types.EnvironmentLink + EnvironmentLinks []types.EnvironmentLink // The name of this environment. EnvironmentName *string diff --git a/service/elasticbeanstalk/api_op_CreatePlatformVersion.go b/service/elasticbeanstalk/api_op_CreatePlatformVersion.go index 9b9011da0a4..d203aefba9b 100644 --- a/service/elasticbeanstalk/api_op_CreatePlatformVersion.go +++ b/service/elasticbeanstalk/api_op_CreatePlatformVersion.go @@ -49,12 +49,12 @@ type CreatePlatformVersionInput struct { EnvironmentName *string // The configuration option settings to apply to the builder environment. - OptionSettings []*types.ConfigurationOptionSetting + OptionSettings []types.ConfigurationOptionSetting // Specifies the tags applied to the new platform version. Elastic Beanstalk // applies these tags only to the platform version. Environments that you create // using the platform version don't inherit the tags. - Tags []*types.Tag + Tags []types.Tag } type CreatePlatformVersionOutput struct { diff --git a/service/elasticbeanstalk/api_op_DescribeApplicationVersions.go b/service/elasticbeanstalk/api_op_DescribeApplicationVersions.go index 45713283c68..40d122dcac2 100644 --- a/service/elasticbeanstalk/api_op_DescribeApplicationVersions.go +++ b/service/elasticbeanstalk/api_op_DescribeApplicationVersions.go @@ -46,14 +46,14 @@ type DescribeApplicationVersionsInput struct { NextToken *string // Specify a version label to show a specific application version. - VersionLabels []*string + VersionLabels []string } // Result message wrapping a list of application version descriptions. type DescribeApplicationVersionsOutput struct { // List of ApplicationVersionDescription objects sorted in order of creation. - ApplicationVersions []*types.ApplicationVersionDescription + ApplicationVersions []types.ApplicationVersionDescription // In a paginated request, the token that you can pass in a subsequent request to // get the next response page. diff --git a/service/elasticbeanstalk/api_op_DescribeApplications.go b/service/elasticbeanstalk/api_op_DescribeApplications.go index 3643e6dce46..c9b43a56d55 100644 --- a/service/elasticbeanstalk/api_op_DescribeApplications.go +++ b/service/elasticbeanstalk/api_op_DescribeApplications.go @@ -32,14 +32,14 @@ type DescribeApplicationsInput struct { // If specified, AWS Elastic Beanstalk restricts the returned descriptions to only // include those with the specified names. - ApplicationNames []*string + ApplicationNames []string } // Result message containing a list of application descriptions. type DescribeApplicationsOutput struct { // This parameter contains a list of ApplicationDescription. - Applications []*types.ApplicationDescription + Applications []types.ApplicationDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticbeanstalk/api_op_DescribeConfigurationOptions.go b/service/elasticbeanstalk/api_op_DescribeConfigurationOptions.go index e133f13f258..116ba8c3093 100644 --- a/service/elasticbeanstalk/api_op_DescribeConfigurationOptions.go +++ b/service/elasticbeanstalk/api_op_DescribeConfigurationOptions.go @@ -43,7 +43,7 @@ type DescribeConfigurationOptionsInput struct { EnvironmentName *string // If specified, restricts the descriptions to only the specified options. - Options []*types.OptionSpecification + Options []types.OptionSpecification // The ARN of the custom platform. PlatformArn *string @@ -60,7 +60,7 @@ type DescribeConfigurationOptionsInput struct { type DescribeConfigurationOptionsOutput struct { // A list of ConfigurationOptionDescription. - Options []*types.ConfigurationOptionDescription + Options []types.ConfigurationOptionDescription // The ARN of the platform version. PlatformArn *string diff --git a/service/elasticbeanstalk/api_op_DescribeConfigurationSettings.go b/service/elasticbeanstalk/api_op_DescribeConfigurationSettings.go index 738a23d4b51..9d574063318 100644 --- a/service/elasticbeanstalk/api_op_DescribeConfigurationSettings.go +++ b/service/elasticbeanstalk/api_op_DescribeConfigurationSettings.go @@ -64,7 +64,7 @@ type DescribeConfigurationSettingsInput struct { type DescribeConfigurationSettingsOutput struct { // A list of ConfigurationSettingsDescription. - ConfigurationSettings []*types.ConfigurationSettingsDescription + ConfigurationSettings []types.ConfigurationSettingsDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticbeanstalk/api_op_DescribeEnvironmentHealth.go b/service/elasticbeanstalk/api_op_DescribeEnvironmentHealth.go index 060e29c9890..78b0025cc41 100644 --- a/service/elasticbeanstalk/api_op_DescribeEnvironmentHealth.go +++ b/service/elasticbeanstalk/api_op_DescribeEnvironmentHealth.go @@ -54,7 +54,7 @@ type DescribeEnvironmentHealthOutput struct { // Descriptions of the data that contributed to the environment's current health // status. - Causes []*string + Causes []string // The health color // (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html) diff --git a/service/elasticbeanstalk/api_op_DescribeEnvironmentManagedActionHistory.go b/service/elasticbeanstalk/api_op_DescribeEnvironmentManagedActionHistory.go index b7713045a53..fd691c2a61e 100644 --- a/service/elasticbeanstalk/api_op_DescribeEnvironmentManagedActionHistory.go +++ b/service/elasticbeanstalk/api_op_DescribeEnvironmentManagedActionHistory.go @@ -37,7 +37,7 @@ type DescribeEnvironmentManagedActionHistoryInput struct { EnvironmentName *string // The maximum number of items to return for a single request. - MaxItems *int32 + MaxItems int32 // The pagination token returned by a previous request. NextToken *string @@ -47,7 +47,7 @@ type DescribeEnvironmentManagedActionHistoryInput struct { type DescribeEnvironmentManagedActionHistoryOutput struct { // A list of completed and failed managed actions. - ManagedActionHistoryItems []*types.ManagedActionHistoryItem + ManagedActionHistoryItems []types.ManagedActionHistoryItem // A pagination token that you pass to DescribeEnvironmentManagedActionHistory to // get the next page of results. diff --git a/service/elasticbeanstalk/api_op_DescribeEnvironmentManagedActions.go b/service/elasticbeanstalk/api_op_DescribeEnvironmentManagedActions.go index a33e70b34ff..23ff1a2c7f7 100644 --- a/service/elasticbeanstalk/api_op_DescribeEnvironmentManagedActions.go +++ b/service/elasticbeanstalk/api_op_DescribeEnvironmentManagedActions.go @@ -44,7 +44,7 @@ type DescribeEnvironmentManagedActionsInput struct { type DescribeEnvironmentManagedActionsOutput struct { // A list of upcoming and in-progress managed actions. - ManagedActions []*types.ManagedAction + ManagedActions []types.ManagedAction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticbeanstalk/api_op_DescribeEnvironments.go b/service/elasticbeanstalk/api_op_DescribeEnvironments.go index 7a8213e9f46..32688deeaf2 100644 --- a/service/elasticbeanstalk/api_op_DescribeEnvironments.go +++ b/service/elasticbeanstalk/api_op_DescribeEnvironments.go @@ -37,11 +37,11 @@ type DescribeEnvironmentsInput struct { // If specified, AWS Elastic Beanstalk restricts the returned descriptions to // include only those that have the specified IDs. - EnvironmentIds []*string + EnvironmentIds []string // If specified, AWS Elastic Beanstalk restricts the returned descriptions to // include only those that have the specified names. - EnvironmentNames []*string + EnvironmentNames []string // Indicates whether to include deleted environments: true: Environments that have // been deleted after IncludedDeletedBackTo are displayed. false: Do not include @@ -72,7 +72,7 @@ type DescribeEnvironmentsInput struct { type DescribeEnvironmentsOutput struct { // Returns an EnvironmentDescription list. - Environments []*types.EnvironmentDescription + Environments []types.EnvironmentDescription // In a paginated request, the token that you can pass in a subsequent request to // get the next response page. diff --git a/service/elasticbeanstalk/api_op_DescribeEvents.go b/service/elasticbeanstalk/api_op_DescribeEvents.go index a1386288541..481cc9be02e 100644 --- a/service/elasticbeanstalk/api_op_DescribeEvents.go +++ b/service/elasticbeanstalk/api_op_DescribeEvents.go @@ -85,7 +85,7 @@ type DescribeEventsInput struct { type DescribeEventsOutput struct { // A list of EventDescription. - Events []*types.EventDescription + Events []types.EventDescription // If returned, this indicates that there are more results to obtain. Use this // token in the next DescribeEvents call to get the next batch of events. diff --git a/service/elasticbeanstalk/api_op_DescribeInstancesHealth.go b/service/elasticbeanstalk/api_op_DescribeInstancesHealth.go index 485def93cd1..7c1763af0de 100644 --- a/service/elasticbeanstalk/api_op_DescribeInstancesHealth.go +++ b/service/elasticbeanstalk/api_op_DescribeInstancesHealth.go @@ -54,7 +54,7 @@ type DescribeInstancesHealthOutput struct { // Detailed health information about each instance. The output differs slightly // between Linux and Windows environments. There is a difference in the members // that are supported under the type. - InstanceHealthList []*types.SingleInstanceHealth + InstanceHealthList []types.SingleInstanceHealth // Pagination token for the next page of results, if available. NextToken *string diff --git a/service/elasticbeanstalk/api_op_ListAvailableSolutionStacks.go b/service/elasticbeanstalk/api_op_ListAvailableSolutionStacks.go index 7ae2df45f44..72f6655529c 100644 --- a/service/elasticbeanstalk/api_op_ListAvailableSolutionStacks.go +++ b/service/elasticbeanstalk/api_op_ListAvailableSolutionStacks.go @@ -35,10 +35,10 @@ type ListAvailableSolutionStacksInput struct { type ListAvailableSolutionStacksOutput struct { // A list of available solution stacks and their SolutionStackDescription. - SolutionStackDetails []*types.SolutionStackDescription + SolutionStackDetails []types.SolutionStackDescription // A list of available solution stacks. - SolutionStacks []*string + SolutionStacks []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticbeanstalk/api_op_ListPlatformBranches.go b/service/elasticbeanstalk/api_op_ListPlatformBranches.go index e845c74d02f..085480bf5ce 100644 --- a/service/elasticbeanstalk/api_op_ListPlatformBranches.go +++ b/service/elasticbeanstalk/api_op_ListPlatformBranches.go @@ -66,7 +66,7 @@ type ListPlatformBranchesInput struct { // // Array size: limited to 10 SearchFilter // objects. Within each SearchFilter item, the Values array is limited to 10 items. - Filters []*types.SearchFilter + Filters []types.SearchFilter // The maximum number of platform branch values returned in one call. MaxRecords *int32 @@ -85,7 +85,7 @@ type ListPlatformBranchesOutput struct { NextToken *string // Summary information about the platform branches. - PlatformBranchSummaryList []*types.PlatformBranchSummary + PlatformBranchSummaryList []types.PlatformBranchSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticbeanstalk/api_op_ListPlatformVersions.go b/service/elasticbeanstalk/api_op_ListPlatformVersions.go index 097a450f5c6..0e2d789dd07 100644 --- a/service/elasticbeanstalk/api_op_ListPlatformVersions.go +++ b/service/elasticbeanstalk/api_op_ListPlatformVersions.go @@ -36,7 +36,7 @@ type ListPlatformVersionsInput struct { // Criteria for restricting the resulting list of platform versions. The filter is // interpreted as a logical conjunction (AND) of the separate PlatformFilter terms. - Filters []*types.PlatformFilter + Filters []types.PlatformFilter // The maximum number of platform version values returned in one call. MaxRecords *int32 @@ -55,7 +55,7 @@ type ListPlatformVersionsOutput struct { NextToken *string // Summary information about the platform versions. - PlatformSummaryList []*types.PlatformSummary + PlatformSummaryList []types.PlatformSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticbeanstalk/api_op_ListTagsForResource.go b/service/elasticbeanstalk/api_op_ListTagsForResource.go index 26cce7b39c4..c5892356d22 100644 --- a/service/elasticbeanstalk/api_op_ListTagsForResource.go +++ b/service/elasticbeanstalk/api_op_ListTagsForResource.go @@ -47,7 +47,7 @@ type ListTagsForResourceOutput struct { ResourceArn *string // A list of tag key-value pairs. - ResourceTags []*types.Tag + ResourceTags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticbeanstalk/api_op_RetrieveEnvironmentInfo.go b/service/elasticbeanstalk/api_op_RetrieveEnvironmentInfo.go index 5c679efa95a..5f171487f68 100644 --- a/service/elasticbeanstalk/api_op_RetrieveEnvironmentInfo.go +++ b/service/elasticbeanstalk/api_op_RetrieveEnvironmentInfo.go @@ -55,7 +55,7 @@ type RetrieveEnvironmentInfoInput struct { type RetrieveEnvironmentInfoOutput struct { // The EnvironmentInfoDescription of the environment. - EnvironmentInfo []*types.EnvironmentInfoDescription + EnvironmentInfo []types.EnvironmentInfoDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticbeanstalk/api_op_TerminateEnvironment.go b/service/elasticbeanstalk/api_op_TerminateEnvironment.go index 313c12e569e..75e37620887 100644 --- a/service/elasticbeanstalk/api_op_TerminateEnvironment.go +++ b/service/elasticbeanstalk/api_op_TerminateEnvironment.go @@ -97,7 +97,7 @@ type TerminateEnvironmentOutput struct { EnvironmentId *string // A list of links to other environments in the same group. - EnvironmentLinks []*types.EnvironmentLink + EnvironmentLinks []types.EnvironmentLink // The name of this environment. EnvironmentName *string diff --git a/service/elasticbeanstalk/api_op_UpdateConfigurationTemplate.go b/service/elasticbeanstalk/api_op_UpdateConfigurationTemplate.go index 633b3202181..442550b32f5 100644 --- a/service/elasticbeanstalk/api_op_UpdateConfigurationTemplate.go +++ b/service/elasticbeanstalk/api_op_UpdateConfigurationTemplate.go @@ -55,11 +55,11 @@ type UpdateConfigurationTemplateInput struct { // A list of configuration option settings to update with the new specified option // value. - OptionSettings []*types.ConfigurationOptionSetting + OptionSettings []types.ConfigurationOptionSetting // A list of configuration options to remove from the configuration set. // Constraint: You can remove only UserDefined configuration options. - OptionsToRemove []*types.OptionSpecification + OptionsToRemove []types.OptionSpecification } // Describes the settings for a configuration set. @@ -99,7 +99,7 @@ type UpdateConfigurationTemplateOutput struct { EnvironmentName *string // A list of the configuration options and their values in this configuration set. - OptionSettings []*types.ConfigurationOptionSetting + OptionSettings []types.ConfigurationOptionSetting // The ARN of the platform version. PlatformArn *string diff --git a/service/elasticbeanstalk/api_op_UpdateEnvironment.go b/service/elasticbeanstalk/api_op_UpdateEnvironment.go index 19155800398..8bfa52e3ae9 100644 --- a/service/elasticbeanstalk/api_op_UpdateEnvironment.go +++ b/service/elasticbeanstalk/api_op_UpdateEnvironment.go @@ -68,11 +68,11 @@ type UpdateEnvironmentInput struct { // If specified, AWS Elastic Beanstalk updates the configuration set associated // with the running environment and sets the specified configuration options to the // requested value. - OptionSettings []*types.ConfigurationOptionSetting + OptionSettings []types.ConfigurationOptionSetting // A list of custom user-defined configuration options to remove from the // configuration set for this environment. - OptionsToRemove []*types.OptionSpecification + OptionsToRemove []types.OptionSpecification // The ARN of the platform, if used. PlatformArn *string @@ -132,7 +132,7 @@ type UpdateEnvironmentOutput struct { EnvironmentId *string // A list of links to other environments in the same group. - EnvironmentLinks []*types.EnvironmentLink + EnvironmentLinks []types.EnvironmentLink // The name of this environment. EnvironmentName *string diff --git a/service/elasticbeanstalk/api_op_UpdateTagsForResource.go b/service/elasticbeanstalk/api_op_UpdateTagsForResource.go index df258dcd3ef..d0678b3ce46 100644 --- a/service/elasticbeanstalk/api_op_UpdateTagsForResource.go +++ b/service/elasticbeanstalk/api_op_UpdateTagsForResource.go @@ -50,11 +50,11 @@ type UpdateTagsForResourceInput struct { // A list of tags to add or update. If a key of an existing tag is added, the tag's // value is updated. Specify at least one of these parameters: TagsToAdd, // TagsToRemove. - TagsToAdd []*types.Tag + TagsToAdd []types.Tag // A list of tag keys to remove. If a tag key doesn't exist, it is silently // ignored. Specify at least one of these parameters: TagsToAdd, TagsToRemove. - TagsToRemove []*string + TagsToRemove []string } type UpdateTagsForResourceOutput struct { diff --git a/service/elasticbeanstalk/api_op_ValidateConfigurationSettings.go b/service/elasticbeanstalk/api_op_ValidateConfigurationSettings.go index a3be6080888..002f66909fd 100644 --- a/service/elasticbeanstalk/api_op_ValidateConfigurationSettings.go +++ b/service/elasticbeanstalk/api_op_ValidateConfigurationSettings.go @@ -42,7 +42,7 @@ type ValidateConfigurationSettingsInput struct { // A list of the options and desired values to evaluate. // // This member is required. - OptionSettings []*types.ConfigurationOptionSetting + OptionSettings []types.ConfigurationOptionSetting // The name of the environment to validate the settings against. Condition: You // cannot specify both this and a configuration template name. @@ -57,7 +57,7 @@ type ValidateConfigurationSettingsInput struct { type ValidateConfigurationSettingsOutput struct { // A list of ValidationMessage. - Messages []*types.ValidationMessage + Messages []types.ValidationMessage // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticbeanstalk/deserializers.go b/service/elasticbeanstalk/deserializers.go index 29b381a411b..31a9bf2cdd5 100644 --- a/service/elasticbeanstalk/deserializers.go +++ b/service/elasticbeanstalk/deserializers.go @@ -5250,7 +5250,7 @@ func awsAwsquery_deserializeDocumentApplicationDescription(v **types.Application } if val != nil { xtv := string(val) - sv.ApplicationArn = &xtv + sv.ApplicationArn = ptr.String(xtv) } case strings.EqualFold("ApplicationName", t.Name.Local): @@ -5266,7 +5266,7 @@ func awsAwsquery_deserializeDocumentApplicationDescription(v **types.Application } if val != nil { xtv := string(val) - sv.ApplicationName = &xtv + sv.ApplicationName = ptr.String(xtv) } case strings.EqualFold("ConfigurationTemplates", t.Name.Local): @@ -5289,7 +5289,7 @@ func awsAwsquery_deserializeDocumentApplicationDescription(v **types.Application if err != nil { return err } - sv.DateCreated = &t + sv.DateCreated = ptr.Time(t) } case strings.EqualFold("DateUpdated", t.Name.Local): @@ -5306,7 +5306,7 @@ func awsAwsquery_deserializeDocumentApplicationDescription(v **types.Application if err != nil { return err } - sv.DateUpdated = &t + sv.DateUpdated = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -5322,7 +5322,7 @@ func awsAwsquery_deserializeDocumentApplicationDescription(v **types.Application } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("ResourceLifecycleConfig", t.Name.Local): @@ -5347,13 +5347,13 @@ func awsAwsquery_deserializeDocumentApplicationDescription(v **types.Application return nil } -func awsAwsquery_deserializeDocumentApplicationDescriptionList(v *[]*types.ApplicationDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentApplicationDescriptionList(v *[]types.ApplicationDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ApplicationDescription + var sv []types.ApplicationDescription if *v == nil { - sv = make([]*types.ApplicationDescription, 0) + sv = make([]types.ApplicationDescription, 0) } else { sv = *v } @@ -5369,11 +5369,13 @@ func awsAwsquery_deserializeDocumentApplicationDescriptionList(v *[]*types.Appli } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ApplicationDescription + var col types.ApplicationDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentApplicationDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentApplicationDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5386,23 +5388,25 @@ func awsAwsquery_deserializeDocumentApplicationDescriptionList(v *[]*types.Appli return nil } -func awsAwsquery_deserializeDocumentApplicationDescriptionListUnwrapped(v *[]*types.ApplicationDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.ApplicationDescription +func awsAwsquery_deserializeDocumentApplicationDescriptionListUnwrapped(v *[]types.ApplicationDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.ApplicationDescription if *v == nil { - sv = make([]*types.ApplicationDescription, 0) + sv = make([]types.ApplicationDescription, 0) } else { sv = *v } switch { default: - var mv *types.ApplicationDescription + var mv types.ApplicationDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentApplicationDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentApplicationDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5467,7 +5471,7 @@ func awsAwsquery_deserializeDocumentApplicationMetrics(v **types.ApplicationMetr if err != nil { return err } - sv.RequestCount = ptr.Int32(int32(i64)) + sv.RequestCount = int32(i64) } case strings.EqualFold("StatusCodes", t.Name.Local): @@ -5521,7 +5525,7 @@ func awsAwsquery_deserializeDocumentApplicationResourceLifecycleConfig(v **types } if val != nil { xtv := string(val) - sv.ServiceRole = &xtv + sv.ServiceRole = ptr.String(xtv) } case strings.EqualFold("VersionLifecycleConfig", t.Name.Local): @@ -5575,7 +5579,7 @@ func awsAwsquery_deserializeDocumentApplicationVersionDescription(v **types.Appl } if val != nil { xtv := string(val) - sv.ApplicationName = &xtv + sv.ApplicationName = ptr.String(xtv) } case strings.EqualFold("ApplicationVersionArn", t.Name.Local): @@ -5591,7 +5595,7 @@ func awsAwsquery_deserializeDocumentApplicationVersionDescription(v **types.Appl } if val != nil { xtv := string(val) - sv.ApplicationVersionArn = &xtv + sv.ApplicationVersionArn = ptr.String(xtv) } case strings.EqualFold("BuildArn", t.Name.Local): @@ -5607,7 +5611,7 @@ func awsAwsquery_deserializeDocumentApplicationVersionDescription(v **types.Appl } if val != nil { xtv := string(val) - sv.BuildArn = &xtv + sv.BuildArn = ptr.String(xtv) } case strings.EqualFold("DateCreated", t.Name.Local): @@ -5624,7 +5628,7 @@ func awsAwsquery_deserializeDocumentApplicationVersionDescription(v **types.Appl if err != nil { return err } - sv.DateCreated = &t + sv.DateCreated = ptr.Time(t) } case strings.EqualFold("DateUpdated", t.Name.Local): @@ -5641,7 +5645,7 @@ func awsAwsquery_deserializeDocumentApplicationVersionDescription(v **types.Appl if err != nil { return err } - sv.DateUpdated = &t + sv.DateUpdated = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -5657,7 +5661,7 @@ func awsAwsquery_deserializeDocumentApplicationVersionDescription(v **types.Appl } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("SourceBuildInformation", t.Name.Local): @@ -5698,7 +5702,7 @@ func awsAwsquery_deserializeDocumentApplicationVersionDescription(v **types.Appl } if val != nil { xtv := string(val) - sv.VersionLabel = &xtv + sv.VersionLabel = ptr.String(xtv) } default: @@ -5711,13 +5715,13 @@ func awsAwsquery_deserializeDocumentApplicationVersionDescription(v **types.Appl return nil } -func awsAwsquery_deserializeDocumentApplicationVersionDescriptionList(v *[]*types.ApplicationVersionDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentApplicationVersionDescriptionList(v *[]types.ApplicationVersionDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ApplicationVersionDescription + var sv []types.ApplicationVersionDescription if *v == nil { - sv = make([]*types.ApplicationVersionDescription, 0) + sv = make([]types.ApplicationVersionDescription, 0) } else { sv = *v } @@ -5733,11 +5737,13 @@ func awsAwsquery_deserializeDocumentApplicationVersionDescriptionList(v *[]*type } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ApplicationVersionDescription + var col types.ApplicationVersionDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentApplicationVersionDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentApplicationVersionDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5750,23 +5756,25 @@ func awsAwsquery_deserializeDocumentApplicationVersionDescriptionList(v *[]*type return nil } -func awsAwsquery_deserializeDocumentApplicationVersionDescriptionListUnwrapped(v *[]*types.ApplicationVersionDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.ApplicationVersionDescription +func awsAwsquery_deserializeDocumentApplicationVersionDescriptionListUnwrapped(v *[]types.ApplicationVersionDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.ApplicationVersionDescription if *v == nil { - sv = make([]*types.ApplicationVersionDescription, 0) + sv = make([]types.ApplicationVersionDescription, 0) } else { sv = *v } switch { default: - var mv *types.ApplicationVersionDescription + var mv types.ApplicationVersionDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentApplicationVersionDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentApplicationVersionDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5851,7 +5859,7 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -5864,13 +5872,13 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, return nil } -func awsAwsquery_deserializeDocumentAutoScalingGroupList(v *[]*types.AutoScalingGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAutoScalingGroupList(v *[]types.AutoScalingGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AutoScalingGroup + var sv []types.AutoScalingGroup if *v == nil { - sv = make([]*types.AutoScalingGroup, 0) + sv = make([]types.AutoScalingGroup, 0) } else { sv = *v } @@ -5886,11 +5894,13 @@ func awsAwsquery_deserializeDocumentAutoScalingGroupList(v *[]*types.AutoScaling } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AutoScalingGroup + var col types.AutoScalingGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAutoScalingGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAutoScalingGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5903,35 +5913,37 @@ func awsAwsquery_deserializeDocumentAutoScalingGroupList(v *[]*types.AutoScaling return nil } -func awsAwsquery_deserializeDocumentAutoScalingGroupListUnwrapped(v *[]*types.AutoScalingGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.AutoScalingGroup +func awsAwsquery_deserializeDocumentAutoScalingGroupListUnwrapped(v *[]types.AutoScalingGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.AutoScalingGroup if *v == nil { - sv = make([]*types.AutoScalingGroup, 0) + sv = make([]types.AutoScalingGroup, 0) } else { sv = *v } switch { default: - var mv *types.AutoScalingGroup + var mv types.AutoScalingGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAutoScalingGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAutoScalingGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAvailableSolutionStackDetailsList(v *[]*types.SolutionStackDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailableSolutionStackDetailsList(v *[]types.SolutionStackDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SolutionStackDescription + var sv []types.SolutionStackDescription if *v == nil { - sv = make([]*types.SolutionStackDescription, 0) + sv = make([]types.SolutionStackDescription, 0) } else { sv = *v } @@ -5947,11 +5959,13 @@ func awsAwsquery_deserializeDocumentAvailableSolutionStackDetailsList(v *[]*type } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.SolutionStackDescription + var col types.SolutionStackDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSolutionStackDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSolutionStackDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5964,35 +5978,37 @@ func awsAwsquery_deserializeDocumentAvailableSolutionStackDetailsList(v *[]*type return nil } -func awsAwsquery_deserializeDocumentAvailableSolutionStackDetailsListUnwrapped(v *[]*types.SolutionStackDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.SolutionStackDescription +func awsAwsquery_deserializeDocumentAvailableSolutionStackDetailsListUnwrapped(v *[]types.SolutionStackDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.SolutionStackDescription if *v == nil { - sv = make([]*types.SolutionStackDescription, 0) + sv = make([]types.SolutionStackDescription, 0) } else { sv = *v } switch { default: - var mv *types.SolutionStackDescription + var mv types.SolutionStackDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSolutionStackDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSolutionStackDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAvailableSolutionStackNamesList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailableSolutionStackNamesList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -6010,20 +6026,17 @@ func awsAwsquery_deserializeDocumentAvailableSolutionStackNamesList(v *[]*string decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -6036,17 +6049,17 @@ func awsAwsquery_deserializeDocumentAvailableSolutionStackNamesList(v *[]*string return nil } -func awsAwsquery_deserializeDocumentAvailableSolutionStackNamesListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAvailableSolutionStackNamesListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -6054,14 +6067,11 @@ func awsAwsquery_deserializeDocumentAvailableSolutionStackNamesListUnwrapped(v * return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -6103,7 +6113,7 @@ func awsAwsquery_deserializeDocumentBuilder(v **types.Builder, decoder smithyxml } if val != nil { xtv := string(val) - sv.ARN = &xtv + sv.ARN = ptr.String(xtv) } default: @@ -6116,13 +6126,13 @@ func awsAwsquery_deserializeDocumentBuilder(v **types.Builder, decoder smithyxml return nil } -func awsAwsquery_deserializeDocumentCauses(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCauses(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -6140,20 +6150,17 @@ func awsAwsquery_deserializeDocumentCauses(v *[]*string, decoder smithyxml.NodeD decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -6166,17 +6173,17 @@ func awsAwsquery_deserializeDocumentCauses(v *[]*string, decoder smithyxml.NodeD return nil } -func awsAwsquery_deserializeDocumentCausesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentCausesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -6184,14 +6191,11 @@ func awsAwsquery_deserializeDocumentCausesUnwrapped(v *[]*string, decoder smithy return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -6233,7 +6237,7 @@ func awsAwsquery_deserializeDocumentCodeBuildNotInServiceRegionException(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6281,7 +6285,7 @@ func awsAwsquery_deserializeDocumentConfigurationOptionDescription(v **types.Con } if val != nil { xtv := string(val) - sv.ChangeSeverity = &xtv + sv.ChangeSeverity = ptr.String(xtv) } case strings.EqualFold("DefaultValue", t.Name.Local): @@ -6297,7 +6301,7 @@ func awsAwsquery_deserializeDocumentConfigurationOptionDescription(v **types.Con } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("MaxLength", t.Name.Local): @@ -6364,7 +6368,7 @@ func awsAwsquery_deserializeDocumentConfigurationOptionDescription(v **types.Con } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Namespace", t.Name.Local): @@ -6380,7 +6384,7 @@ func awsAwsquery_deserializeDocumentConfigurationOptionDescription(v **types.Con } if val != nil { xtv := string(val) - sv.Namespace = &xtv + sv.Namespace = ptr.String(xtv) } case strings.EqualFold("Regex", t.Name.Local): @@ -6402,7 +6406,7 @@ func awsAwsquery_deserializeDocumentConfigurationOptionDescription(v **types.Con if err != nil { return fmt.Errorf("expected UserDefinedOption to be of type *bool, got %T instead", val) } - sv.UserDefined = &xtv + sv.UserDefined = ptr.Bool(xtv) } case strings.EqualFold("ValueOptions", t.Name.Local): @@ -6434,13 +6438,13 @@ func awsAwsquery_deserializeDocumentConfigurationOptionDescription(v **types.Con return nil } -func awsAwsquery_deserializeDocumentConfigurationOptionDescriptionsList(v *[]*types.ConfigurationOptionDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentConfigurationOptionDescriptionsList(v *[]types.ConfigurationOptionDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ConfigurationOptionDescription + var sv []types.ConfigurationOptionDescription if *v == nil { - sv = make([]*types.ConfigurationOptionDescription, 0) + sv = make([]types.ConfigurationOptionDescription, 0) } else { sv = *v } @@ -6456,11 +6460,13 @@ func awsAwsquery_deserializeDocumentConfigurationOptionDescriptionsList(v *[]*ty } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ConfigurationOptionDescription + var col types.ConfigurationOptionDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentConfigurationOptionDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentConfigurationOptionDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6473,35 +6479,37 @@ func awsAwsquery_deserializeDocumentConfigurationOptionDescriptionsList(v *[]*ty return nil } -func awsAwsquery_deserializeDocumentConfigurationOptionDescriptionsListUnwrapped(v *[]*types.ConfigurationOptionDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.ConfigurationOptionDescription +func awsAwsquery_deserializeDocumentConfigurationOptionDescriptionsListUnwrapped(v *[]types.ConfigurationOptionDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.ConfigurationOptionDescription if *v == nil { - sv = make([]*types.ConfigurationOptionDescription, 0) + sv = make([]types.ConfigurationOptionDescription, 0) } else { sv = *v } switch { default: - var mv *types.ConfigurationOptionDescription + var mv types.ConfigurationOptionDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentConfigurationOptionDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentConfigurationOptionDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentConfigurationOptionPossibleValues(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentConfigurationOptionPossibleValues(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -6519,20 +6527,17 @@ func awsAwsquery_deserializeDocumentConfigurationOptionPossibleValues(v *[]*stri decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -6545,17 +6550,17 @@ func awsAwsquery_deserializeDocumentConfigurationOptionPossibleValues(v *[]*stri return nil } -func awsAwsquery_deserializeDocumentConfigurationOptionPossibleValuesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentConfigurationOptionPossibleValuesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -6563,14 +6568,11 @@ func awsAwsquery_deserializeDocumentConfigurationOptionPossibleValuesUnwrapped(v return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -6612,7 +6614,7 @@ func awsAwsquery_deserializeDocumentConfigurationOptionSetting(v **types.Configu } if val != nil { xtv := string(val) - sv.Namespace = &xtv + sv.Namespace = ptr.String(xtv) } case strings.EqualFold("OptionName", t.Name.Local): @@ -6628,7 +6630,7 @@ func awsAwsquery_deserializeDocumentConfigurationOptionSetting(v **types.Configu } if val != nil { xtv := string(val) - sv.OptionName = &xtv + sv.OptionName = ptr.String(xtv) } case strings.EqualFold("ResourceName", t.Name.Local): @@ -6644,7 +6646,7 @@ func awsAwsquery_deserializeDocumentConfigurationOptionSetting(v **types.Configu } if val != nil { xtv := string(val) - sv.ResourceName = &xtv + sv.ResourceName = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -6660,7 +6662,7 @@ func awsAwsquery_deserializeDocumentConfigurationOptionSetting(v **types.Configu } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -6673,13 +6675,13 @@ func awsAwsquery_deserializeDocumentConfigurationOptionSetting(v **types.Configu return nil } -func awsAwsquery_deserializeDocumentConfigurationOptionSettingsList(v *[]*types.ConfigurationOptionSetting, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentConfigurationOptionSettingsList(v *[]types.ConfigurationOptionSetting, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ConfigurationOptionSetting + var sv []types.ConfigurationOptionSetting if *v == nil { - sv = make([]*types.ConfigurationOptionSetting, 0) + sv = make([]types.ConfigurationOptionSetting, 0) } else { sv = *v } @@ -6695,11 +6697,13 @@ func awsAwsquery_deserializeDocumentConfigurationOptionSettingsList(v *[]*types. } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ConfigurationOptionSetting + var col types.ConfigurationOptionSetting nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentConfigurationOptionSetting(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentConfigurationOptionSetting(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6712,23 +6716,25 @@ func awsAwsquery_deserializeDocumentConfigurationOptionSettingsList(v *[]*types. return nil } -func awsAwsquery_deserializeDocumentConfigurationOptionSettingsListUnwrapped(v *[]*types.ConfigurationOptionSetting, decoder smithyxml.NodeDecoder) error { - var sv []*types.ConfigurationOptionSetting +func awsAwsquery_deserializeDocumentConfigurationOptionSettingsListUnwrapped(v *[]types.ConfigurationOptionSetting, decoder smithyxml.NodeDecoder) error { + var sv []types.ConfigurationOptionSetting if *v == nil { - sv = make([]*types.ConfigurationOptionSetting, 0) + sv = make([]types.ConfigurationOptionSetting, 0) } else { sv = *v } switch { default: - var mv *types.ConfigurationOptionSetting + var mv types.ConfigurationOptionSetting t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentConfigurationOptionSetting(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentConfigurationOptionSetting(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6769,7 +6775,7 @@ func awsAwsquery_deserializeDocumentConfigurationSettingsDescription(v **types.C } if val != nil { xtv := string(val) - sv.ApplicationName = &xtv + sv.ApplicationName = ptr.String(xtv) } case strings.EqualFold("DateCreated", t.Name.Local): @@ -6786,7 +6792,7 @@ func awsAwsquery_deserializeDocumentConfigurationSettingsDescription(v **types.C if err != nil { return err } - sv.DateCreated = &t + sv.DateCreated = ptr.Time(t) } case strings.EqualFold("DateUpdated", t.Name.Local): @@ -6803,7 +6809,7 @@ func awsAwsquery_deserializeDocumentConfigurationSettingsDescription(v **types.C if err != nil { return err } - sv.DateUpdated = &t + sv.DateUpdated = ptr.Time(t) } case strings.EqualFold("DeploymentStatus", t.Name.Local): @@ -6832,7 +6838,7 @@ func awsAwsquery_deserializeDocumentConfigurationSettingsDescription(v **types.C } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("EnvironmentName", t.Name.Local): @@ -6848,7 +6854,7 @@ func awsAwsquery_deserializeDocumentConfigurationSettingsDescription(v **types.C } if val != nil { xtv := string(val) - sv.EnvironmentName = &xtv + sv.EnvironmentName = ptr.String(xtv) } case strings.EqualFold("OptionSettings", t.Name.Local): @@ -6870,7 +6876,7 @@ func awsAwsquery_deserializeDocumentConfigurationSettingsDescription(v **types.C } if val != nil { xtv := string(val) - sv.PlatformArn = &xtv + sv.PlatformArn = ptr.String(xtv) } case strings.EqualFold("SolutionStackName", t.Name.Local): @@ -6886,7 +6892,7 @@ func awsAwsquery_deserializeDocumentConfigurationSettingsDescription(v **types.C } if val != nil { xtv := string(val) - sv.SolutionStackName = &xtv + sv.SolutionStackName = ptr.String(xtv) } case strings.EqualFold("TemplateName", t.Name.Local): @@ -6902,7 +6908,7 @@ func awsAwsquery_deserializeDocumentConfigurationSettingsDescription(v **types.C } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } default: @@ -6915,13 +6921,13 @@ func awsAwsquery_deserializeDocumentConfigurationSettingsDescription(v **types.C return nil } -func awsAwsquery_deserializeDocumentConfigurationSettingsDescriptionList(v *[]*types.ConfigurationSettingsDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentConfigurationSettingsDescriptionList(v *[]types.ConfigurationSettingsDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ConfigurationSettingsDescription + var sv []types.ConfigurationSettingsDescription if *v == nil { - sv = make([]*types.ConfigurationSettingsDescription, 0) + sv = make([]types.ConfigurationSettingsDescription, 0) } else { sv = *v } @@ -6937,11 +6943,13 @@ func awsAwsquery_deserializeDocumentConfigurationSettingsDescriptionList(v *[]*t } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ConfigurationSettingsDescription + var col types.ConfigurationSettingsDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentConfigurationSettingsDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentConfigurationSettingsDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6954,35 +6962,37 @@ func awsAwsquery_deserializeDocumentConfigurationSettingsDescriptionList(v *[]*t return nil } -func awsAwsquery_deserializeDocumentConfigurationSettingsDescriptionListUnwrapped(v *[]*types.ConfigurationSettingsDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.ConfigurationSettingsDescription +func awsAwsquery_deserializeDocumentConfigurationSettingsDescriptionListUnwrapped(v *[]types.ConfigurationSettingsDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.ConfigurationSettingsDescription if *v == nil { - sv = make([]*types.ConfigurationSettingsDescription, 0) + sv = make([]types.ConfigurationSettingsDescription, 0) } else { sv = *v } switch { default: - var mv *types.ConfigurationSettingsDescription + var mv types.ConfigurationSettingsDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentConfigurationSettingsDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentConfigurationSettingsDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentConfigurationTemplateNamesList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentConfigurationTemplateNamesList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -7000,20 +7010,17 @@ func awsAwsquery_deserializeDocumentConfigurationTemplateNamesList(v *[]*string, decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -7026,17 +7033,17 @@ func awsAwsquery_deserializeDocumentConfigurationTemplateNamesList(v *[]*string, return nil } -func awsAwsquery_deserializeDocumentConfigurationTemplateNamesListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentConfigurationTemplateNamesListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7044,14 +7051,11 @@ func awsAwsquery_deserializeDocumentConfigurationTemplateNamesListUnwrapped(v *[ return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -7094,7 +7098,7 @@ func awsAwsquery_deserializeDocumentCPUUtilization(v **types.CPUUtilization, dec if err != nil { return err } - sv.Idle = &f64 + sv.Idle = ptr.Float64(f64) } case strings.EqualFold("IOWait", t.Name.Local): @@ -7111,7 +7115,7 @@ func awsAwsquery_deserializeDocumentCPUUtilization(v **types.CPUUtilization, dec if err != nil { return err } - sv.IOWait = &f64 + sv.IOWait = ptr.Float64(f64) } case strings.EqualFold("IRQ", t.Name.Local): @@ -7128,7 +7132,7 @@ func awsAwsquery_deserializeDocumentCPUUtilization(v **types.CPUUtilization, dec if err != nil { return err } - sv.IRQ = &f64 + sv.IRQ = ptr.Float64(f64) } case strings.EqualFold("Nice", t.Name.Local): @@ -7145,7 +7149,7 @@ func awsAwsquery_deserializeDocumentCPUUtilization(v **types.CPUUtilization, dec if err != nil { return err } - sv.Nice = &f64 + sv.Nice = ptr.Float64(f64) } case strings.EqualFold("Privileged", t.Name.Local): @@ -7162,7 +7166,7 @@ func awsAwsquery_deserializeDocumentCPUUtilization(v **types.CPUUtilization, dec if err != nil { return err } - sv.Privileged = &f64 + sv.Privileged = ptr.Float64(f64) } case strings.EqualFold("SoftIRQ", t.Name.Local): @@ -7179,7 +7183,7 @@ func awsAwsquery_deserializeDocumentCPUUtilization(v **types.CPUUtilization, dec if err != nil { return err } - sv.SoftIRQ = &f64 + sv.SoftIRQ = ptr.Float64(f64) } case strings.EqualFold("System", t.Name.Local): @@ -7196,7 +7200,7 @@ func awsAwsquery_deserializeDocumentCPUUtilization(v **types.CPUUtilization, dec if err != nil { return err } - sv.System = &f64 + sv.System = ptr.Float64(f64) } case strings.EqualFold("User", t.Name.Local): @@ -7213,7 +7217,7 @@ func awsAwsquery_deserializeDocumentCPUUtilization(v **types.CPUUtilization, dec if err != nil { return err } - sv.User = &f64 + sv.User = ptr.Float64(f64) } default: @@ -7261,7 +7265,7 @@ func awsAwsquery_deserializeDocumentCustomAmi(v **types.CustomAmi, decoder smith } if val != nil { xtv := string(val) - sv.ImageId = &xtv + sv.ImageId = ptr.String(xtv) } case strings.EqualFold("VirtualizationType", t.Name.Local): @@ -7277,7 +7281,7 @@ func awsAwsquery_deserializeDocumentCustomAmi(v **types.CustomAmi, decoder smith } if val != nil { xtv := string(val) - sv.VirtualizationType = &xtv + sv.VirtualizationType = ptr.String(xtv) } default: @@ -7290,13 +7294,13 @@ func awsAwsquery_deserializeDocumentCustomAmi(v **types.CustomAmi, decoder smith return nil } -func awsAwsquery_deserializeDocumentCustomAmiList(v *[]*types.CustomAmi, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCustomAmiList(v *[]types.CustomAmi, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CustomAmi + var sv []types.CustomAmi if *v == nil { - sv = make([]*types.CustomAmi, 0) + sv = make([]types.CustomAmi, 0) } else { sv = *v } @@ -7312,11 +7316,13 @@ func awsAwsquery_deserializeDocumentCustomAmiList(v *[]*types.CustomAmi, decoder } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.CustomAmi + var col types.CustomAmi nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCustomAmi(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCustomAmi(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7329,23 +7335,25 @@ func awsAwsquery_deserializeDocumentCustomAmiList(v *[]*types.CustomAmi, decoder return nil } -func awsAwsquery_deserializeDocumentCustomAmiListUnwrapped(v *[]*types.CustomAmi, decoder smithyxml.NodeDecoder) error { - var sv []*types.CustomAmi +func awsAwsquery_deserializeDocumentCustomAmiListUnwrapped(v *[]types.CustomAmi, decoder smithyxml.NodeDecoder) error { + var sv []types.CustomAmi if *v == nil { - sv = make([]*types.CustomAmi, 0) + sv = make([]types.CustomAmi, 0) } else { sv = *v } switch { default: - var mv *types.CustomAmi + var mv types.CustomAmi t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCustomAmi(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCustomAmi(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -7387,7 +7395,7 @@ func awsAwsquery_deserializeDocumentDeployment(v **types.Deployment, decoder smi if err != nil { return err } - sv.DeploymentId = &i64 + sv.DeploymentId = ptr.Int64(i64) } case strings.EqualFold("DeploymentTime", t.Name.Local): @@ -7404,7 +7412,7 @@ func awsAwsquery_deserializeDocumentDeployment(v **types.Deployment, decoder smi if err != nil { return err } - sv.DeploymentTime = &t + sv.DeploymentTime = ptr.Time(t) } case strings.EqualFold("Status", t.Name.Local): @@ -7420,7 +7428,7 @@ func awsAwsquery_deserializeDocumentDeployment(v **types.Deployment, decoder smi } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("VersionLabel", t.Name.Local): @@ -7436,7 +7444,7 @@ func awsAwsquery_deserializeDocumentDeployment(v **types.Deployment, decoder smi } if val != nil { xtv := string(val) - sv.VersionLabel = &xtv + sv.VersionLabel = ptr.String(xtv) } default: @@ -7484,7 +7492,7 @@ func awsAwsquery_deserializeDocumentElasticBeanstalkServiceException(v **types.E } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7532,7 +7540,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment if err != nil { return fmt.Errorf("expected AbortableOperationInProgress to be of type *bool, got %T instead", val) } - sv.AbortableOperationInProgress = &xtv + sv.AbortableOperationInProgress = ptr.Bool(xtv) } case strings.EqualFold("ApplicationName", t.Name.Local): @@ -7548,7 +7556,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment } if val != nil { xtv := string(val) - sv.ApplicationName = &xtv + sv.ApplicationName = ptr.String(xtv) } case strings.EqualFold("CNAME", t.Name.Local): @@ -7564,7 +7572,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment } if val != nil { xtv := string(val) - sv.CNAME = &xtv + sv.CNAME = ptr.String(xtv) } case strings.EqualFold("DateCreated", t.Name.Local): @@ -7581,7 +7589,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment if err != nil { return err } - sv.DateCreated = &t + sv.DateCreated = ptr.Time(t) } case strings.EqualFold("DateUpdated", t.Name.Local): @@ -7598,7 +7606,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment if err != nil { return err } - sv.DateUpdated = &t + sv.DateUpdated = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -7614,7 +7622,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("EndpointURL", t.Name.Local): @@ -7630,7 +7638,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment } if val != nil { xtv := string(val) - sv.EndpointURL = &xtv + sv.EndpointURL = ptr.String(xtv) } case strings.EqualFold("EnvironmentArn", t.Name.Local): @@ -7646,7 +7654,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment } if val != nil { xtv := string(val) - sv.EnvironmentArn = &xtv + sv.EnvironmentArn = ptr.String(xtv) } case strings.EqualFold("EnvironmentId", t.Name.Local): @@ -7662,7 +7670,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment } if val != nil { xtv := string(val) - sv.EnvironmentId = &xtv + sv.EnvironmentId = ptr.String(xtv) } case strings.EqualFold("EnvironmentLinks", t.Name.Local): @@ -7684,7 +7692,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment } if val != nil { xtv := string(val) - sv.EnvironmentName = &xtv + sv.EnvironmentName = ptr.String(xtv) } case strings.EqualFold("Health", t.Name.Local): @@ -7726,7 +7734,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment } if val != nil { xtv := string(val) - sv.OperationsRole = &xtv + sv.OperationsRole = ptr.String(xtv) } case strings.EqualFold("PlatformArn", t.Name.Local): @@ -7742,7 +7750,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment } if val != nil { xtv := string(val) - sv.PlatformArn = &xtv + sv.PlatformArn = ptr.String(xtv) } case strings.EqualFold("Resources", t.Name.Local): @@ -7764,7 +7772,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment } if val != nil { xtv := string(val) - sv.SolutionStackName = &xtv + sv.SolutionStackName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -7793,7 +7801,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } case strings.EqualFold("Tier", t.Name.Local): @@ -7815,7 +7823,7 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment } if val != nil { xtv := string(val) - sv.VersionLabel = &xtv + sv.VersionLabel = ptr.String(xtv) } default: @@ -7828,13 +7836,13 @@ func awsAwsquery_deserializeDocumentEnvironmentDescription(v **types.Environment return nil } -func awsAwsquery_deserializeDocumentEnvironmentDescriptionsList(v *[]*types.EnvironmentDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEnvironmentDescriptionsList(v *[]types.EnvironmentDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EnvironmentDescription + var sv []types.EnvironmentDescription if *v == nil { - sv = make([]*types.EnvironmentDescription, 0) + sv = make([]types.EnvironmentDescription, 0) } else { sv = *v } @@ -7850,11 +7858,13 @@ func awsAwsquery_deserializeDocumentEnvironmentDescriptionsList(v *[]*types.Envi } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.EnvironmentDescription + var col types.EnvironmentDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEnvironmentDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEnvironmentDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7867,23 +7877,25 @@ func awsAwsquery_deserializeDocumentEnvironmentDescriptionsList(v *[]*types.Envi return nil } -func awsAwsquery_deserializeDocumentEnvironmentDescriptionsListUnwrapped(v *[]*types.EnvironmentDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.EnvironmentDescription +func awsAwsquery_deserializeDocumentEnvironmentDescriptionsListUnwrapped(v *[]types.EnvironmentDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.EnvironmentDescription if *v == nil { - sv = make([]*types.EnvironmentDescription, 0) + sv = make([]types.EnvironmentDescription, 0) } else { sv = *v } switch { default: - var mv *types.EnvironmentDescription + var mv types.EnvironmentDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEnvironmentDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEnvironmentDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -7924,7 +7936,7 @@ func awsAwsquery_deserializeDocumentEnvironmentInfoDescription(v **types.Environ } if val != nil { xtv := string(val) - sv.Ec2InstanceId = &xtv + sv.Ec2InstanceId = ptr.String(xtv) } case strings.EqualFold("InfoType", t.Name.Local): @@ -7953,7 +7965,7 @@ func awsAwsquery_deserializeDocumentEnvironmentInfoDescription(v **types.Environ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("SampleTimestamp", t.Name.Local): @@ -7970,7 +7982,7 @@ func awsAwsquery_deserializeDocumentEnvironmentInfoDescription(v **types.Environ if err != nil { return err } - sv.SampleTimestamp = &t + sv.SampleTimestamp = ptr.Time(t) } default: @@ -7983,13 +7995,13 @@ func awsAwsquery_deserializeDocumentEnvironmentInfoDescription(v **types.Environ return nil } -func awsAwsquery_deserializeDocumentEnvironmentInfoDescriptionList(v *[]*types.EnvironmentInfoDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEnvironmentInfoDescriptionList(v *[]types.EnvironmentInfoDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EnvironmentInfoDescription + var sv []types.EnvironmentInfoDescription if *v == nil { - sv = make([]*types.EnvironmentInfoDescription, 0) + sv = make([]types.EnvironmentInfoDescription, 0) } else { sv = *v } @@ -8005,11 +8017,13 @@ func awsAwsquery_deserializeDocumentEnvironmentInfoDescriptionList(v *[]*types.E } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.EnvironmentInfoDescription + var col types.EnvironmentInfoDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEnvironmentInfoDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEnvironmentInfoDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8022,23 +8036,25 @@ func awsAwsquery_deserializeDocumentEnvironmentInfoDescriptionList(v *[]*types.E return nil } -func awsAwsquery_deserializeDocumentEnvironmentInfoDescriptionListUnwrapped(v *[]*types.EnvironmentInfoDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.EnvironmentInfoDescription +func awsAwsquery_deserializeDocumentEnvironmentInfoDescriptionListUnwrapped(v *[]types.EnvironmentInfoDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.EnvironmentInfoDescription if *v == nil { - sv = make([]*types.EnvironmentInfoDescription, 0) + sv = make([]types.EnvironmentInfoDescription, 0) } else { sv = *v } switch { default: - var mv *types.EnvironmentInfoDescription + var mv types.EnvironmentInfoDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEnvironmentInfoDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEnvironmentInfoDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8079,7 +8095,7 @@ func awsAwsquery_deserializeDocumentEnvironmentLink(v **types.EnvironmentLink, d } if val != nil { xtv := string(val) - sv.EnvironmentName = &xtv + sv.EnvironmentName = ptr.String(xtv) } case strings.EqualFold("LinkName", t.Name.Local): @@ -8095,7 +8111,7 @@ func awsAwsquery_deserializeDocumentEnvironmentLink(v **types.EnvironmentLink, d } if val != nil { xtv := string(val) - sv.LinkName = &xtv + sv.LinkName = ptr.String(xtv) } default: @@ -8108,13 +8124,13 @@ func awsAwsquery_deserializeDocumentEnvironmentLink(v **types.EnvironmentLink, d return nil } -func awsAwsquery_deserializeDocumentEnvironmentLinks(v *[]*types.EnvironmentLink, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEnvironmentLinks(v *[]types.EnvironmentLink, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EnvironmentLink + var sv []types.EnvironmentLink if *v == nil { - sv = make([]*types.EnvironmentLink, 0) + sv = make([]types.EnvironmentLink, 0) } else { sv = *v } @@ -8130,11 +8146,13 @@ func awsAwsquery_deserializeDocumentEnvironmentLinks(v *[]*types.EnvironmentLink } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.EnvironmentLink + var col types.EnvironmentLink nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEnvironmentLink(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEnvironmentLink(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8147,23 +8165,25 @@ func awsAwsquery_deserializeDocumentEnvironmentLinks(v *[]*types.EnvironmentLink return nil } -func awsAwsquery_deserializeDocumentEnvironmentLinksUnwrapped(v *[]*types.EnvironmentLink, decoder smithyxml.NodeDecoder) error { - var sv []*types.EnvironmentLink +func awsAwsquery_deserializeDocumentEnvironmentLinksUnwrapped(v *[]types.EnvironmentLink, decoder smithyxml.NodeDecoder) error { + var sv []types.EnvironmentLink if *v == nil { - sv = make([]*types.EnvironmentLink, 0) + sv = make([]types.EnvironmentLink, 0) } else { sv = *v } switch { default: - var mv *types.EnvironmentLink + var mv types.EnvironmentLink t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEnvironmentLink(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEnvironmentLink(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8210,7 +8230,7 @@ func awsAwsquery_deserializeDocumentEnvironmentResourceDescription(v **types.Env } if val != nil { xtv := string(val) - sv.EnvironmentName = &xtv + sv.EnvironmentName = ptr.String(xtv) } case strings.EqualFold("Instances", t.Name.Local): @@ -8332,7 +8352,7 @@ func awsAwsquery_deserializeDocumentEnvironmentTier(v **types.EnvironmentTier, d } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Type", t.Name.Local): @@ -8348,7 +8368,7 @@ func awsAwsquery_deserializeDocumentEnvironmentTier(v **types.EnvironmentTier, d } if val != nil { xtv := string(val) - sv.Type = &xtv + sv.Type = ptr.String(xtv) } case strings.EqualFold("Version", t.Name.Local): @@ -8364,7 +8384,7 @@ func awsAwsquery_deserializeDocumentEnvironmentTier(v **types.EnvironmentTier, d } if val != nil { xtv := string(val) - sv.Version = &xtv + sv.Version = ptr.String(xtv) } default: @@ -8412,7 +8432,7 @@ func awsAwsquery_deserializeDocumentEventDescription(v **types.EventDescription, } if val != nil { xtv := string(val) - sv.ApplicationName = &xtv + sv.ApplicationName = ptr.String(xtv) } case strings.EqualFold("EnvironmentName", t.Name.Local): @@ -8428,7 +8448,7 @@ func awsAwsquery_deserializeDocumentEventDescription(v **types.EventDescription, } if val != nil { xtv := string(val) - sv.EnvironmentName = &xtv + sv.EnvironmentName = ptr.String(xtv) } case strings.EqualFold("EventDate", t.Name.Local): @@ -8445,7 +8465,7 @@ func awsAwsquery_deserializeDocumentEventDescription(v **types.EventDescription, if err != nil { return err } - sv.EventDate = &t + sv.EventDate = ptr.Time(t) } case strings.EqualFold("Message", t.Name.Local): @@ -8461,7 +8481,7 @@ func awsAwsquery_deserializeDocumentEventDescription(v **types.EventDescription, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("PlatformArn", t.Name.Local): @@ -8477,7 +8497,7 @@ func awsAwsquery_deserializeDocumentEventDescription(v **types.EventDescription, } if val != nil { xtv := string(val) - sv.PlatformArn = &xtv + sv.PlatformArn = ptr.String(xtv) } case strings.EqualFold("RequestId", t.Name.Local): @@ -8493,7 +8513,7 @@ func awsAwsquery_deserializeDocumentEventDescription(v **types.EventDescription, } if val != nil { xtv := string(val) - sv.RequestId = &xtv + sv.RequestId = ptr.String(xtv) } case strings.EqualFold("Severity", t.Name.Local): @@ -8522,7 +8542,7 @@ func awsAwsquery_deserializeDocumentEventDescription(v **types.EventDescription, } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } case strings.EqualFold("VersionLabel", t.Name.Local): @@ -8538,7 +8558,7 @@ func awsAwsquery_deserializeDocumentEventDescription(v **types.EventDescription, } if val != nil { xtv := string(val) - sv.VersionLabel = &xtv + sv.VersionLabel = ptr.String(xtv) } default: @@ -8551,13 +8571,13 @@ func awsAwsquery_deserializeDocumentEventDescription(v **types.EventDescription, return nil } -func awsAwsquery_deserializeDocumentEventDescriptionList(v *[]*types.EventDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventDescriptionList(v *[]types.EventDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EventDescription + var sv []types.EventDescription if *v == nil { - sv = make([]*types.EventDescription, 0) + sv = make([]types.EventDescription, 0) } else { sv = *v } @@ -8573,11 +8593,13 @@ func awsAwsquery_deserializeDocumentEventDescriptionList(v *[]*types.EventDescri } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.EventDescription + var col types.EventDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEventDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8590,23 +8612,25 @@ func awsAwsquery_deserializeDocumentEventDescriptionList(v *[]*types.EventDescri return nil } -func awsAwsquery_deserializeDocumentEventDescriptionListUnwrapped(v *[]*types.EventDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.EventDescription +func awsAwsquery_deserializeDocumentEventDescriptionListUnwrapped(v *[]types.EventDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.EventDescription if *v == nil { - sv = make([]*types.EventDescription, 0) + sv = make([]types.EventDescription, 0) } else { sv = *v } switch { default: - var mv *types.EventDescription + var mv types.EventDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEventDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8647,7 +8671,7 @@ func awsAwsquery_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } default: @@ -8660,13 +8684,13 @@ func awsAwsquery_deserializeDocumentInstance(v **types.Instance, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentInstanceHealthList(v *[]*types.SingleInstanceHealth, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInstanceHealthList(v *[]types.SingleInstanceHealth, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SingleInstanceHealth + var sv []types.SingleInstanceHealth if *v == nil { - sv = make([]*types.SingleInstanceHealth, 0) + sv = make([]types.SingleInstanceHealth, 0) } else { sv = *v } @@ -8682,11 +8706,13 @@ func awsAwsquery_deserializeDocumentInstanceHealthList(v *[]*types.SingleInstanc } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.SingleInstanceHealth + var col types.SingleInstanceHealth nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSingleInstanceHealth(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSingleInstanceHealth(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8699,23 +8725,25 @@ func awsAwsquery_deserializeDocumentInstanceHealthList(v *[]*types.SingleInstanc return nil } -func awsAwsquery_deserializeDocumentInstanceHealthListUnwrapped(v *[]*types.SingleInstanceHealth, decoder smithyxml.NodeDecoder) error { - var sv []*types.SingleInstanceHealth +func awsAwsquery_deserializeDocumentInstanceHealthListUnwrapped(v *[]types.SingleInstanceHealth, decoder smithyxml.NodeDecoder) error { + var sv []types.SingleInstanceHealth if *v == nil { - sv = make([]*types.SingleInstanceHealth, 0) + sv = make([]types.SingleInstanceHealth, 0) } else { sv = *v } switch { default: - var mv *types.SingleInstanceHealth + var mv types.SingleInstanceHealth t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSingleInstanceHealth(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSingleInstanceHealth(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8889,13 +8917,13 @@ func awsAwsquery_deserializeDocumentInstanceHealthSummary(v **types.InstanceHeal return nil } -func awsAwsquery_deserializeDocumentInstanceList(v *[]*types.Instance, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInstanceList(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Instance + var sv []types.Instance if *v == nil { - sv = make([]*types.Instance, 0) + sv = make([]types.Instance, 0) } else { sv = *v } @@ -8911,11 +8939,13 @@ func awsAwsquery_deserializeDocumentInstanceList(v *[]*types.Instance, decoder s } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Instance + var col types.Instance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8928,23 +8958,25 @@ func awsAwsquery_deserializeDocumentInstanceList(v *[]*types.Instance, decoder s return nil } -func awsAwsquery_deserializeDocumentInstanceListUnwrapped(v *[]*types.Instance, decoder smithyxml.NodeDecoder) error { - var sv []*types.Instance +func awsAwsquery_deserializeDocumentInstanceListUnwrapped(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { + var sv []types.Instance if *v == nil { - sv = make([]*types.Instance, 0) + sv = make([]types.Instance, 0) } else { sv = *v } switch { default: - var mv *types.Instance + var mv types.Instance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8985,7 +9017,7 @@ func awsAwsquery_deserializeDocumentInsufficientPrivilegesException(v **types.In } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9033,7 +9065,7 @@ func awsAwsquery_deserializeDocumentInvalidRequestException(v **types.InvalidReq } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9082,7 +9114,7 @@ func awsAwsquery_deserializeDocumentLatency(v **types.Latency, decoder smithyxml if err != nil { return err } - sv.P10 = &f64 + sv.P10 = ptr.Float64(f64) } case strings.EqualFold("P50", t.Name.Local): @@ -9099,7 +9131,7 @@ func awsAwsquery_deserializeDocumentLatency(v **types.Latency, decoder smithyxml if err != nil { return err } - sv.P50 = &f64 + sv.P50 = ptr.Float64(f64) } case strings.EqualFold("P75", t.Name.Local): @@ -9116,7 +9148,7 @@ func awsAwsquery_deserializeDocumentLatency(v **types.Latency, decoder smithyxml if err != nil { return err } - sv.P75 = &f64 + sv.P75 = ptr.Float64(f64) } case strings.EqualFold("P85", t.Name.Local): @@ -9133,7 +9165,7 @@ func awsAwsquery_deserializeDocumentLatency(v **types.Latency, decoder smithyxml if err != nil { return err } - sv.P85 = &f64 + sv.P85 = ptr.Float64(f64) } case strings.EqualFold("P90", t.Name.Local): @@ -9150,7 +9182,7 @@ func awsAwsquery_deserializeDocumentLatency(v **types.Latency, decoder smithyxml if err != nil { return err } - sv.P90 = &f64 + sv.P90 = ptr.Float64(f64) } case strings.EqualFold("P95", t.Name.Local): @@ -9167,7 +9199,7 @@ func awsAwsquery_deserializeDocumentLatency(v **types.Latency, decoder smithyxml if err != nil { return err } - sv.P95 = &f64 + sv.P95 = ptr.Float64(f64) } case strings.EqualFold("P99", t.Name.Local): @@ -9184,7 +9216,7 @@ func awsAwsquery_deserializeDocumentLatency(v **types.Latency, decoder smithyxml if err != nil { return err } - sv.P99 = &f64 + sv.P99 = ptr.Float64(f64) } case strings.EqualFold("P999", t.Name.Local): @@ -9201,7 +9233,7 @@ func awsAwsquery_deserializeDocumentLatency(v **types.Latency, decoder smithyxml if err != nil { return err } - sv.P999 = &f64 + sv.P999 = ptr.Float64(f64) } default: @@ -9249,7 +9281,7 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -9262,13 +9294,13 @@ func awsAwsquery_deserializeDocumentLaunchConfiguration(v **types.LaunchConfigur return nil } -func awsAwsquery_deserializeDocumentLaunchConfigurationList(v *[]*types.LaunchConfiguration, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLaunchConfigurationList(v *[]types.LaunchConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchConfiguration + var sv []types.LaunchConfiguration if *v == nil { - sv = make([]*types.LaunchConfiguration, 0) + sv = make([]types.LaunchConfiguration, 0) } else { sv = *v } @@ -9284,11 +9316,13 @@ func awsAwsquery_deserializeDocumentLaunchConfigurationList(v *[]*types.LaunchCo } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LaunchConfiguration + var col types.LaunchConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLaunchConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLaunchConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9301,23 +9335,25 @@ func awsAwsquery_deserializeDocumentLaunchConfigurationList(v *[]*types.LaunchCo return nil } -func awsAwsquery_deserializeDocumentLaunchConfigurationListUnwrapped(v *[]*types.LaunchConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchConfiguration +func awsAwsquery_deserializeDocumentLaunchConfigurationListUnwrapped(v *[]types.LaunchConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchConfiguration if *v == nil { - sv = make([]*types.LaunchConfiguration, 0) + sv = make([]types.LaunchConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.LaunchConfiguration + var mv types.LaunchConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLaunchConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLaunchConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9358,7 +9394,7 @@ func awsAwsquery_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, dec } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } default: @@ -9371,13 +9407,13 @@ func awsAwsquery_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, dec return nil } -func awsAwsquery_deserializeDocumentLaunchTemplateList(v *[]*types.LaunchTemplate, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLaunchTemplateList(v *[]types.LaunchTemplate, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LaunchTemplate + var sv []types.LaunchTemplate if *v == nil { - sv = make([]*types.LaunchTemplate, 0) + sv = make([]types.LaunchTemplate, 0) } else { sv = *v } @@ -9393,11 +9429,13 @@ func awsAwsquery_deserializeDocumentLaunchTemplateList(v *[]*types.LaunchTemplat } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LaunchTemplate + var col types.LaunchTemplate nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLaunchTemplate(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLaunchTemplate(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9410,23 +9448,25 @@ func awsAwsquery_deserializeDocumentLaunchTemplateList(v *[]*types.LaunchTemplat return nil } -func awsAwsquery_deserializeDocumentLaunchTemplateListUnwrapped(v *[]*types.LaunchTemplate, decoder smithyxml.NodeDecoder) error { - var sv []*types.LaunchTemplate +func awsAwsquery_deserializeDocumentLaunchTemplateListUnwrapped(v *[]types.LaunchTemplate, decoder smithyxml.NodeDecoder) error { + var sv []types.LaunchTemplate if *v == nil { - sv = make([]*types.LaunchTemplate, 0) + sv = make([]types.LaunchTemplate, 0) } else { sv = *v } switch { default: - var mv *types.LaunchTemplate + var mv types.LaunchTemplate t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLaunchTemplate(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLaunchTemplate(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9468,7 +9508,7 @@ func awsAwsquery_deserializeDocumentListener(v **types.Listener, decoder smithyx if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case strings.EqualFold("Protocol", t.Name.Local): @@ -9484,7 +9524,7 @@ func awsAwsquery_deserializeDocumentListener(v **types.Listener, decoder smithyx } if val != nil { xtv := string(val) - sv.Protocol = &xtv + sv.Protocol = ptr.String(xtv) } default: @@ -9497,13 +9537,13 @@ func awsAwsquery_deserializeDocumentListener(v **types.Listener, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentLoadAverage(v *[]*float64, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLoadAverage(v *[]float64, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*float64 + var sv []float64 if *v == nil { - sv = make([]*float64, 0) + sv = make([]float64, 0) } else { sv = *v } @@ -9521,7 +9561,7 @@ func awsAwsquery_deserializeDocumentLoadAverage(v *[]*float64, decoder smithyxml decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *float64 + var col float64 val, done, err := decoder.Value() if err != nil { return err @@ -9535,7 +9575,7 @@ func awsAwsquery_deserializeDocumentLoadAverage(v *[]*float64, decoder smithyxml if err != nil { return err } - col = &f64 + col = f64 } sv = append(sv, col) } else { @@ -9548,17 +9588,17 @@ func awsAwsquery_deserializeDocumentLoadAverage(v *[]*float64, decoder smithyxml return nil } -func awsAwsquery_deserializeDocumentLoadAverageUnwrapped(v *[]*float64, decoder smithyxml.NodeDecoder) error { - var sv []*float64 +func awsAwsquery_deserializeDocumentLoadAverageUnwrapped(v *[]float64, decoder smithyxml.NodeDecoder) error { + var sv []float64 if *v == nil { - sv = make([]*float64, 0) + sv = make([]float64, 0) } else { sv = *v } switch { default: - var mv *float64 + var mv float64 t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -9574,7 +9614,7 @@ func awsAwsquery_deserializeDocumentLoadAverageUnwrapped(v *[]*float64, decoder if err != nil { return err } - mv = &f64 + mv = f64 } sv = append(sv, mv) } @@ -9616,7 +9656,7 @@ func awsAwsquery_deserializeDocumentLoadBalancer(v **types.LoadBalancer, decoder } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -9664,7 +9704,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerDescription(v **types.LoadBalanc } if val != nil { xtv := string(val) - sv.Domain = &xtv + sv.Domain = ptr.String(xtv) } case strings.EqualFold("Listeners", t.Name.Local): @@ -9686,7 +9726,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerDescription(v **types.LoadBalanc } if val != nil { xtv := string(val) - sv.LoadBalancerName = &xtv + sv.LoadBalancerName = ptr.String(xtv) } default: @@ -9699,13 +9739,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerDescription(v **types.LoadBalanc return nil } -func awsAwsquery_deserializeDocumentLoadBalancerList(v *[]*types.LoadBalancer, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLoadBalancerList(v *[]types.LoadBalancer, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LoadBalancer + var sv []types.LoadBalancer if *v == nil { - sv = make([]*types.LoadBalancer, 0) + sv = make([]types.LoadBalancer, 0) } else { sv = *v } @@ -9721,11 +9761,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerList(v *[]*types.LoadBalancer, d } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LoadBalancer + var col types.LoadBalancer nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancer(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLoadBalancer(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9738,35 +9780,37 @@ func awsAwsquery_deserializeDocumentLoadBalancerList(v *[]*types.LoadBalancer, d return nil } -func awsAwsquery_deserializeDocumentLoadBalancerListUnwrapped(v *[]*types.LoadBalancer, decoder smithyxml.NodeDecoder) error { - var sv []*types.LoadBalancer +func awsAwsquery_deserializeDocumentLoadBalancerListUnwrapped(v *[]types.LoadBalancer, decoder smithyxml.NodeDecoder) error { + var sv []types.LoadBalancer if *v == nil { - sv = make([]*types.LoadBalancer, 0) + sv = make([]types.LoadBalancer, 0) } else { sv = *v } switch { default: - var mv *types.LoadBalancer + var mv types.LoadBalancer t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancer(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLoadBalancer(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentLoadBalancerListenersDescription(v *[]*types.Listener, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLoadBalancerListenersDescription(v *[]types.Listener, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Listener + var sv []types.Listener if *v == nil { - sv = make([]*types.Listener, 0) + sv = make([]types.Listener, 0) } else { sv = *v } @@ -9782,11 +9826,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerListenersDescription(v *[]*types } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Listener + var col types.Listener nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListener(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentListener(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9799,23 +9845,25 @@ func awsAwsquery_deserializeDocumentLoadBalancerListenersDescription(v *[]*types return nil } -func awsAwsquery_deserializeDocumentLoadBalancerListenersDescriptionUnwrapped(v *[]*types.Listener, decoder smithyxml.NodeDecoder) error { - var sv []*types.Listener +func awsAwsquery_deserializeDocumentLoadBalancerListenersDescriptionUnwrapped(v *[]types.Listener, decoder smithyxml.NodeDecoder) error { + var sv []types.Listener if *v == nil { - sv = make([]*types.Listener, 0) + sv = make([]types.Listener, 0) } else { sv = *v } switch { default: - var mv *types.Listener + var mv types.Listener t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListener(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentListener(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9856,7 +9904,7 @@ func awsAwsquery_deserializeDocumentManagedAction(v **types.ManagedAction, decod } if val != nil { xtv := string(val) - sv.ActionDescription = &xtv + sv.ActionDescription = ptr.String(xtv) } case strings.EqualFold("ActionId", t.Name.Local): @@ -9872,7 +9920,7 @@ func awsAwsquery_deserializeDocumentManagedAction(v **types.ManagedAction, decod } if val != nil { xtv := string(val) - sv.ActionId = &xtv + sv.ActionId = ptr.String(xtv) } case strings.EqualFold("ActionType", t.Name.Local): @@ -9915,7 +9963,7 @@ func awsAwsquery_deserializeDocumentManagedAction(v **types.ManagedAction, decod if err != nil { return err } - sv.WindowStartTime = &t + sv.WindowStartTime = ptr.Time(t) } default: @@ -9963,7 +10011,7 @@ func awsAwsquery_deserializeDocumentManagedActionHistoryItem(v **types.ManagedAc } if val != nil { xtv := string(val) - sv.ActionDescription = &xtv + sv.ActionDescription = ptr.String(xtv) } case strings.EqualFold("ActionId", t.Name.Local): @@ -9979,7 +10027,7 @@ func awsAwsquery_deserializeDocumentManagedActionHistoryItem(v **types.ManagedAc } if val != nil { xtv := string(val) - sv.ActionId = &xtv + sv.ActionId = ptr.String(xtv) } case strings.EqualFold("ActionType", t.Name.Local): @@ -10009,7 +10057,7 @@ func awsAwsquery_deserializeDocumentManagedActionHistoryItem(v **types.ManagedAc if err != nil { return err } - sv.ExecutedTime = &t + sv.ExecutedTime = ptr.Time(t) } case strings.EqualFold("FailureDescription", t.Name.Local): @@ -10025,7 +10073,7 @@ func awsAwsquery_deserializeDocumentManagedActionHistoryItem(v **types.ManagedAc } if val != nil { xtv := string(val) - sv.FailureDescription = &xtv + sv.FailureDescription = ptr.String(xtv) } case strings.EqualFold("FailureType", t.Name.Local): @@ -10055,7 +10103,7 @@ func awsAwsquery_deserializeDocumentManagedActionHistoryItem(v **types.ManagedAc if err != nil { return err } - sv.FinishedTime = &t + sv.FinishedTime = ptr.Time(t) } case strings.EqualFold("Status", t.Name.Local): @@ -10081,13 +10129,13 @@ func awsAwsquery_deserializeDocumentManagedActionHistoryItem(v **types.ManagedAc return nil } -func awsAwsquery_deserializeDocumentManagedActionHistoryItems(v *[]*types.ManagedActionHistoryItem, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentManagedActionHistoryItems(v *[]types.ManagedActionHistoryItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ManagedActionHistoryItem + var sv []types.ManagedActionHistoryItem if *v == nil { - sv = make([]*types.ManagedActionHistoryItem, 0) + sv = make([]types.ManagedActionHistoryItem, 0) } else { sv = *v } @@ -10103,11 +10151,13 @@ func awsAwsquery_deserializeDocumentManagedActionHistoryItems(v *[]*types.Manage } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ManagedActionHistoryItem + var col types.ManagedActionHistoryItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentManagedActionHistoryItem(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentManagedActionHistoryItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10120,23 +10170,25 @@ func awsAwsquery_deserializeDocumentManagedActionHistoryItems(v *[]*types.Manage return nil } -func awsAwsquery_deserializeDocumentManagedActionHistoryItemsUnwrapped(v *[]*types.ManagedActionHistoryItem, decoder smithyxml.NodeDecoder) error { - var sv []*types.ManagedActionHistoryItem +func awsAwsquery_deserializeDocumentManagedActionHistoryItemsUnwrapped(v *[]types.ManagedActionHistoryItem, decoder smithyxml.NodeDecoder) error { + var sv []types.ManagedActionHistoryItem if *v == nil { - sv = make([]*types.ManagedActionHistoryItem, 0) + sv = make([]types.ManagedActionHistoryItem, 0) } else { sv = *v } switch { default: - var mv *types.ManagedActionHistoryItem + var mv types.ManagedActionHistoryItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentManagedActionHistoryItem(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentManagedActionHistoryItem(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10177,7 +10229,7 @@ func awsAwsquery_deserializeDocumentManagedActionInvalidStateException(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10190,13 +10242,13 @@ func awsAwsquery_deserializeDocumentManagedActionInvalidStateException(v **types return nil } -func awsAwsquery_deserializeDocumentManagedActions(v *[]*types.ManagedAction, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentManagedActions(v *[]types.ManagedAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ManagedAction + var sv []types.ManagedAction if *v == nil { - sv = make([]*types.ManagedAction, 0) + sv = make([]types.ManagedAction, 0) } else { sv = *v } @@ -10212,11 +10264,13 @@ func awsAwsquery_deserializeDocumentManagedActions(v *[]*types.ManagedAction, de } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ManagedAction + var col types.ManagedAction nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentManagedAction(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentManagedAction(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10229,23 +10283,25 @@ func awsAwsquery_deserializeDocumentManagedActions(v *[]*types.ManagedAction, de return nil } -func awsAwsquery_deserializeDocumentManagedActionsUnwrapped(v *[]*types.ManagedAction, decoder smithyxml.NodeDecoder) error { - var sv []*types.ManagedAction +func awsAwsquery_deserializeDocumentManagedActionsUnwrapped(v *[]types.ManagedAction, decoder smithyxml.NodeDecoder) error { + var sv []types.ManagedAction if *v == nil { - sv = make([]*types.ManagedAction, 0) + sv = make([]types.ManagedAction, 0) } else { sv = *v } switch { default: - var mv *types.ManagedAction + var mv types.ManagedAction t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentManagedAction(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentManagedAction(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10286,7 +10342,7 @@ func awsAwsquery_deserializeDocumentMaxAgeRule(v **types.MaxAgeRule, decoder smi if err != nil { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", val) } - sv.DeleteSourceFromS3 = &xtv + sv.DeleteSourceFromS3 = ptr.Bool(xtv) } case strings.EqualFold("Enabled", t.Name.Local): @@ -10302,7 +10358,7 @@ func awsAwsquery_deserializeDocumentMaxAgeRule(v **types.MaxAgeRule, decoder smi if err != nil { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("MaxAgeInDays", t.Name.Local): @@ -10367,7 +10423,7 @@ func awsAwsquery_deserializeDocumentMaxCountRule(v **types.MaxCountRule, decoder if err != nil { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", val) } - sv.DeleteSourceFromS3 = &xtv + sv.DeleteSourceFromS3 = ptr.Bool(xtv) } case strings.EqualFold("Enabled", t.Name.Local): @@ -10383,7 +10439,7 @@ func awsAwsquery_deserializeDocumentMaxCountRule(v **types.MaxCountRule, decoder if err != nil { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("MaxCount", t.Name.Local): @@ -10448,7 +10504,7 @@ func awsAwsquery_deserializeDocumentOperationInProgressException(v **types.Opera } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10496,7 +10552,7 @@ func awsAwsquery_deserializeDocumentOptionRestrictionRegex(v **types.OptionRestr } if val != nil { xtv := string(val) - sv.Label = &xtv + sv.Label = ptr.String(xtv) } case strings.EqualFold("Pattern", t.Name.Local): @@ -10512,7 +10568,7 @@ func awsAwsquery_deserializeDocumentOptionRestrictionRegex(v **types.OptionRestr } if val != nil { xtv := string(val) - sv.Pattern = &xtv + sv.Pattern = ptr.String(xtv) } default: @@ -10560,7 +10616,7 @@ func awsAwsquery_deserializeDocumentPlatformBranchSummary(v **types.PlatformBran } if val != nil { xtv := string(val) - sv.BranchName = &xtv + sv.BranchName = ptr.String(xtv) } case strings.EqualFold("BranchOrder", t.Name.Local): @@ -10577,7 +10633,7 @@ func awsAwsquery_deserializeDocumentPlatformBranchSummary(v **types.PlatformBran if err != nil { return err } - sv.BranchOrder = ptr.Int32(int32(i64)) + sv.BranchOrder = int32(i64) } case strings.EqualFold("LifecycleState", t.Name.Local): @@ -10593,7 +10649,7 @@ func awsAwsquery_deserializeDocumentPlatformBranchSummary(v **types.PlatformBran } if val != nil { xtv := string(val) - sv.LifecycleState = &xtv + sv.LifecycleState = ptr.String(xtv) } case strings.EqualFold("PlatformName", t.Name.Local): @@ -10609,7 +10665,7 @@ func awsAwsquery_deserializeDocumentPlatformBranchSummary(v **types.PlatformBran } if val != nil { xtv := string(val) - sv.PlatformName = &xtv + sv.PlatformName = ptr.String(xtv) } case strings.EqualFold("SupportedTierList", t.Name.Local): @@ -10628,13 +10684,13 @@ func awsAwsquery_deserializeDocumentPlatformBranchSummary(v **types.PlatformBran return nil } -func awsAwsquery_deserializeDocumentPlatformBranchSummaryList(v *[]*types.PlatformBranchSummary, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPlatformBranchSummaryList(v *[]types.PlatformBranchSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PlatformBranchSummary + var sv []types.PlatformBranchSummary if *v == nil { - sv = make([]*types.PlatformBranchSummary, 0) + sv = make([]types.PlatformBranchSummary, 0) } else { sv = *v } @@ -10650,11 +10706,13 @@ func awsAwsquery_deserializeDocumentPlatformBranchSummaryList(v *[]*types.Platfo } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PlatformBranchSummary + var col types.PlatformBranchSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPlatformBranchSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPlatformBranchSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10667,23 +10725,25 @@ func awsAwsquery_deserializeDocumentPlatformBranchSummaryList(v *[]*types.Platfo return nil } -func awsAwsquery_deserializeDocumentPlatformBranchSummaryListUnwrapped(v *[]*types.PlatformBranchSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.PlatformBranchSummary +func awsAwsquery_deserializeDocumentPlatformBranchSummaryListUnwrapped(v *[]types.PlatformBranchSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.PlatformBranchSummary if *v == nil { - sv = make([]*types.PlatformBranchSummary, 0) + sv = make([]types.PlatformBranchSummary, 0) } else { sv = *v } switch { default: - var mv *types.PlatformBranchSummary + var mv types.PlatformBranchSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPlatformBranchSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPlatformBranchSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10731,7 +10791,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri if err != nil { return err } - sv.DateCreated = &t + sv.DateCreated = ptr.Time(t) } case strings.EqualFold("DateUpdated", t.Name.Local): @@ -10748,7 +10808,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri if err != nil { return err } - sv.DateUpdated = &t + sv.DateUpdated = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -10764,7 +10824,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("Frameworks", t.Name.Local): @@ -10786,7 +10846,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri } if val != nil { xtv := string(val) - sv.Maintainer = &xtv + sv.Maintainer = ptr.String(xtv) } case strings.EqualFold("OperatingSystemName", t.Name.Local): @@ -10802,7 +10862,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri } if val != nil { xtv := string(val) - sv.OperatingSystemName = &xtv + sv.OperatingSystemName = ptr.String(xtv) } case strings.EqualFold("OperatingSystemVersion", t.Name.Local): @@ -10818,7 +10878,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri } if val != nil { xtv := string(val) - sv.OperatingSystemVersion = &xtv + sv.OperatingSystemVersion = ptr.String(xtv) } case strings.EqualFold("PlatformArn", t.Name.Local): @@ -10834,7 +10894,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri } if val != nil { xtv := string(val) - sv.PlatformArn = &xtv + sv.PlatformArn = ptr.String(xtv) } case strings.EqualFold("PlatformBranchLifecycleState", t.Name.Local): @@ -10850,7 +10910,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri } if val != nil { xtv := string(val) - sv.PlatformBranchLifecycleState = &xtv + sv.PlatformBranchLifecycleState = ptr.String(xtv) } case strings.EqualFold("PlatformBranchName", t.Name.Local): @@ -10866,7 +10926,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri } if val != nil { xtv := string(val) - sv.PlatformBranchName = &xtv + sv.PlatformBranchName = ptr.String(xtv) } case strings.EqualFold("PlatformCategory", t.Name.Local): @@ -10882,7 +10942,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri } if val != nil { xtv := string(val) - sv.PlatformCategory = &xtv + sv.PlatformCategory = ptr.String(xtv) } case strings.EqualFold("PlatformLifecycleState", t.Name.Local): @@ -10898,7 +10958,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri } if val != nil { xtv := string(val) - sv.PlatformLifecycleState = &xtv + sv.PlatformLifecycleState = ptr.String(xtv) } case strings.EqualFold("PlatformName", t.Name.Local): @@ -10914,7 +10974,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri } if val != nil { xtv := string(val) - sv.PlatformName = &xtv + sv.PlatformName = ptr.String(xtv) } case strings.EqualFold("PlatformOwner", t.Name.Local): @@ -10930,7 +10990,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri } if val != nil { xtv := string(val) - sv.PlatformOwner = &xtv + sv.PlatformOwner = ptr.String(xtv) } case strings.EqualFold("PlatformStatus", t.Name.Local): @@ -10959,7 +11019,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri } if val != nil { xtv := string(val) - sv.PlatformVersion = &xtv + sv.PlatformVersion = ptr.String(xtv) } case strings.EqualFold("ProgrammingLanguages", t.Name.Local): @@ -10981,7 +11041,7 @@ func awsAwsquery_deserializeDocumentPlatformDescription(v **types.PlatformDescri } if val != nil { xtv := string(val) - sv.SolutionStackName = &xtv + sv.SolutionStackName = ptr.String(xtv) } case strings.EqualFold("SupportedAddonList", t.Name.Local): @@ -11041,7 +11101,7 @@ func awsAwsquery_deserializeDocumentPlatformFramework(v **types.PlatformFramewor } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Version", t.Name.Local): @@ -11057,7 +11117,7 @@ func awsAwsquery_deserializeDocumentPlatformFramework(v **types.PlatformFramewor } if val != nil { xtv := string(val) - sv.Version = &xtv + sv.Version = ptr.String(xtv) } default: @@ -11070,13 +11130,13 @@ func awsAwsquery_deserializeDocumentPlatformFramework(v **types.PlatformFramewor return nil } -func awsAwsquery_deserializeDocumentPlatformFrameworks(v *[]*types.PlatformFramework, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPlatformFrameworks(v *[]types.PlatformFramework, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PlatformFramework + var sv []types.PlatformFramework if *v == nil { - sv = make([]*types.PlatformFramework, 0) + sv = make([]types.PlatformFramework, 0) } else { sv = *v } @@ -11092,11 +11152,13 @@ func awsAwsquery_deserializeDocumentPlatformFrameworks(v *[]*types.PlatformFrame } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PlatformFramework + var col types.PlatformFramework nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPlatformFramework(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPlatformFramework(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11109,23 +11171,25 @@ func awsAwsquery_deserializeDocumentPlatformFrameworks(v *[]*types.PlatformFrame return nil } -func awsAwsquery_deserializeDocumentPlatformFrameworksUnwrapped(v *[]*types.PlatformFramework, decoder smithyxml.NodeDecoder) error { - var sv []*types.PlatformFramework +func awsAwsquery_deserializeDocumentPlatformFrameworksUnwrapped(v *[]types.PlatformFramework, decoder smithyxml.NodeDecoder) error { + var sv []types.PlatformFramework if *v == nil { - sv = make([]*types.PlatformFramework, 0) + sv = make([]types.PlatformFramework, 0) } else { sv = *v } switch { default: - var mv *types.PlatformFramework + var mv types.PlatformFramework t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPlatformFramework(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPlatformFramework(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11166,7 +11230,7 @@ func awsAwsquery_deserializeDocumentPlatformProgrammingLanguage(v **types.Platfo } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Version", t.Name.Local): @@ -11182,7 +11246,7 @@ func awsAwsquery_deserializeDocumentPlatformProgrammingLanguage(v **types.Platfo } if val != nil { xtv := string(val) - sv.Version = &xtv + sv.Version = ptr.String(xtv) } default: @@ -11195,13 +11259,13 @@ func awsAwsquery_deserializeDocumentPlatformProgrammingLanguage(v **types.Platfo return nil } -func awsAwsquery_deserializeDocumentPlatformProgrammingLanguages(v *[]*types.PlatformProgrammingLanguage, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPlatformProgrammingLanguages(v *[]types.PlatformProgrammingLanguage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PlatformProgrammingLanguage + var sv []types.PlatformProgrammingLanguage if *v == nil { - sv = make([]*types.PlatformProgrammingLanguage, 0) + sv = make([]types.PlatformProgrammingLanguage, 0) } else { sv = *v } @@ -11217,11 +11281,13 @@ func awsAwsquery_deserializeDocumentPlatformProgrammingLanguages(v *[]*types.Pla } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PlatformProgrammingLanguage + var col types.PlatformProgrammingLanguage nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPlatformProgrammingLanguage(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPlatformProgrammingLanguage(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11234,23 +11300,25 @@ func awsAwsquery_deserializeDocumentPlatformProgrammingLanguages(v *[]*types.Pla return nil } -func awsAwsquery_deserializeDocumentPlatformProgrammingLanguagesUnwrapped(v *[]*types.PlatformProgrammingLanguage, decoder smithyxml.NodeDecoder) error { - var sv []*types.PlatformProgrammingLanguage +func awsAwsquery_deserializeDocumentPlatformProgrammingLanguagesUnwrapped(v *[]types.PlatformProgrammingLanguage, decoder smithyxml.NodeDecoder) error { + var sv []types.PlatformProgrammingLanguage if *v == nil { - sv = make([]*types.PlatformProgrammingLanguage, 0) + sv = make([]types.PlatformProgrammingLanguage, 0) } else { sv = *v } switch { default: - var mv *types.PlatformProgrammingLanguage + var mv types.PlatformProgrammingLanguage t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPlatformProgrammingLanguage(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPlatformProgrammingLanguage(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11291,7 +11359,7 @@ func awsAwsquery_deserializeDocumentPlatformSummary(v **types.PlatformSummary, d } if val != nil { xtv := string(val) - sv.OperatingSystemName = &xtv + sv.OperatingSystemName = ptr.String(xtv) } case strings.EqualFold("OperatingSystemVersion", t.Name.Local): @@ -11307,7 +11375,7 @@ func awsAwsquery_deserializeDocumentPlatformSummary(v **types.PlatformSummary, d } if val != nil { xtv := string(val) - sv.OperatingSystemVersion = &xtv + sv.OperatingSystemVersion = ptr.String(xtv) } case strings.EqualFold("PlatformArn", t.Name.Local): @@ -11323,7 +11391,7 @@ func awsAwsquery_deserializeDocumentPlatformSummary(v **types.PlatformSummary, d } if val != nil { xtv := string(val) - sv.PlatformArn = &xtv + sv.PlatformArn = ptr.String(xtv) } case strings.EqualFold("PlatformBranchLifecycleState", t.Name.Local): @@ -11339,7 +11407,7 @@ func awsAwsquery_deserializeDocumentPlatformSummary(v **types.PlatformSummary, d } if val != nil { xtv := string(val) - sv.PlatformBranchLifecycleState = &xtv + sv.PlatformBranchLifecycleState = ptr.String(xtv) } case strings.EqualFold("PlatformBranchName", t.Name.Local): @@ -11355,7 +11423,7 @@ func awsAwsquery_deserializeDocumentPlatformSummary(v **types.PlatformSummary, d } if val != nil { xtv := string(val) - sv.PlatformBranchName = &xtv + sv.PlatformBranchName = ptr.String(xtv) } case strings.EqualFold("PlatformCategory", t.Name.Local): @@ -11371,7 +11439,7 @@ func awsAwsquery_deserializeDocumentPlatformSummary(v **types.PlatformSummary, d } if val != nil { xtv := string(val) - sv.PlatformCategory = &xtv + sv.PlatformCategory = ptr.String(xtv) } case strings.EqualFold("PlatformLifecycleState", t.Name.Local): @@ -11387,7 +11455,7 @@ func awsAwsquery_deserializeDocumentPlatformSummary(v **types.PlatformSummary, d } if val != nil { xtv := string(val) - sv.PlatformLifecycleState = &xtv + sv.PlatformLifecycleState = ptr.String(xtv) } case strings.EqualFold("PlatformOwner", t.Name.Local): @@ -11403,7 +11471,7 @@ func awsAwsquery_deserializeDocumentPlatformSummary(v **types.PlatformSummary, d } if val != nil { xtv := string(val) - sv.PlatformOwner = &xtv + sv.PlatformOwner = ptr.String(xtv) } case strings.EqualFold("PlatformStatus", t.Name.Local): @@ -11432,7 +11500,7 @@ func awsAwsquery_deserializeDocumentPlatformSummary(v **types.PlatformSummary, d } if val != nil { xtv := string(val) - sv.PlatformVersion = &xtv + sv.PlatformVersion = ptr.String(xtv) } case strings.EqualFold("SupportedAddonList", t.Name.Local): @@ -11457,13 +11525,13 @@ func awsAwsquery_deserializeDocumentPlatformSummary(v **types.PlatformSummary, d return nil } -func awsAwsquery_deserializeDocumentPlatformSummaryList(v *[]*types.PlatformSummary, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPlatformSummaryList(v *[]types.PlatformSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PlatformSummary + var sv []types.PlatformSummary if *v == nil { - sv = make([]*types.PlatformSummary, 0) + sv = make([]types.PlatformSummary, 0) } else { sv = *v } @@ -11479,11 +11547,13 @@ func awsAwsquery_deserializeDocumentPlatformSummaryList(v *[]*types.PlatformSumm } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PlatformSummary + var col types.PlatformSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPlatformSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPlatformSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11496,23 +11566,25 @@ func awsAwsquery_deserializeDocumentPlatformSummaryList(v *[]*types.PlatformSumm return nil } -func awsAwsquery_deserializeDocumentPlatformSummaryListUnwrapped(v *[]*types.PlatformSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.PlatformSummary +func awsAwsquery_deserializeDocumentPlatformSummaryListUnwrapped(v *[]types.PlatformSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.PlatformSummary if *v == nil { - sv = make([]*types.PlatformSummary, 0) + sv = make([]types.PlatformSummary, 0) } else { sv = *v } switch { default: - var mv *types.PlatformSummary + var mv types.PlatformSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPlatformSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPlatformSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11553,7 +11625,7 @@ func awsAwsquery_deserializeDocumentPlatformVersionStillReferencedException(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11601,7 +11673,7 @@ func awsAwsquery_deserializeDocumentQueue(v **types.Queue, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("URL", t.Name.Local): @@ -11617,7 +11689,7 @@ func awsAwsquery_deserializeDocumentQueue(v **types.Queue, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.URL = &xtv + sv.URL = ptr.String(xtv) } default: @@ -11630,13 +11702,13 @@ func awsAwsquery_deserializeDocumentQueue(v **types.Queue, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentQueueList(v *[]*types.Queue, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentQueueList(v *[]types.Queue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Queue + var sv []types.Queue if *v == nil { - sv = make([]*types.Queue, 0) + sv = make([]types.Queue, 0) } else { sv = *v } @@ -11652,11 +11724,13 @@ func awsAwsquery_deserializeDocumentQueueList(v *[]*types.Queue, decoder smithyx } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Queue + var col types.Queue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentQueue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentQueue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11669,23 +11743,25 @@ func awsAwsquery_deserializeDocumentQueueList(v *[]*types.Queue, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentQueueListUnwrapped(v *[]*types.Queue, decoder smithyxml.NodeDecoder) error { - var sv []*types.Queue +func awsAwsquery_deserializeDocumentQueueListUnwrapped(v *[]types.Queue, decoder smithyxml.NodeDecoder) error { + var sv []types.Queue if *v == nil { - sv = make([]*types.Queue, 0) + sv = make([]types.Queue, 0) } else { sv = *v } switch { default: - var mv *types.Queue + var mv types.Queue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentQueue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentQueue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11726,7 +11802,7 @@ func awsAwsquery_deserializeDocumentResourceNotFoundException(v **types.Resource } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11885,7 +11961,7 @@ func awsAwsquery_deserializeDocumentResourceTypeNotSupportedException(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11933,7 +12009,7 @@ func awsAwsquery_deserializeDocumentS3Location(v **types.S3Location, decoder smi } if val != nil { xtv := string(val) - sv.S3Bucket = &xtv + sv.S3Bucket = ptr.String(xtv) } case strings.EqualFold("S3Key", t.Name.Local): @@ -11949,7 +12025,7 @@ func awsAwsquery_deserializeDocumentS3Location(v **types.S3Location, decoder smi } if val != nil { xtv := string(val) - sv.S3Key = &xtv + sv.S3Key = ptr.String(xtv) } default: @@ -11997,7 +12073,7 @@ func awsAwsquery_deserializeDocumentS3LocationNotInServiceRegionException(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12045,7 +12121,7 @@ func awsAwsquery_deserializeDocumentS3SubscriptionRequiredException(v **types.S3 } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12099,7 +12175,7 @@ func awsAwsquery_deserializeDocumentSingleInstanceHealth(v **types.SingleInstanc } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("Causes", t.Name.Local): @@ -12121,7 +12197,7 @@ func awsAwsquery_deserializeDocumentSingleInstanceHealth(v **types.SingleInstanc } if val != nil { xtv := string(val) - sv.Color = &xtv + sv.Color = ptr.String(xtv) } case strings.EqualFold("Deployment", t.Name.Local): @@ -12143,7 +12219,7 @@ func awsAwsquery_deserializeDocumentSingleInstanceHealth(v **types.SingleInstanc } if val != nil { xtv := string(val) - sv.HealthStatus = &xtv + sv.HealthStatus = ptr.String(xtv) } case strings.EqualFold("InstanceId", t.Name.Local): @@ -12159,7 +12235,7 @@ func awsAwsquery_deserializeDocumentSingleInstanceHealth(v **types.SingleInstanc } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("InstanceType", t.Name.Local): @@ -12175,7 +12251,7 @@ func awsAwsquery_deserializeDocumentSingleInstanceHealth(v **types.SingleInstanc } if val != nil { xtv := string(val) - sv.InstanceType = &xtv + sv.InstanceType = ptr.String(xtv) } case strings.EqualFold("LaunchedAt", t.Name.Local): @@ -12192,7 +12268,7 @@ func awsAwsquery_deserializeDocumentSingleInstanceHealth(v **types.SingleInstanc if err != nil { return err } - sv.LaunchedAt = &t + sv.LaunchedAt = ptr.Time(t) } case strings.EqualFold("System", t.Name.Local): @@ -12252,7 +12328,7 @@ func awsAwsquery_deserializeDocumentSolutionStackDescription(v **types.SolutionS } if val != nil { xtv := string(val) - sv.SolutionStackName = &xtv + sv.SolutionStackName = ptr.String(xtv) } default: @@ -12265,13 +12341,13 @@ func awsAwsquery_deserializeDocumentSolutionStackDescription(v **types.SolutionS return nil } -func awsAwsquery_deserializeDocumentSolutionStackFileTypeList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSolutionStackFileTypeList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -12289,20 +12365,17 @@ func awsAwsquery_deserializeDocumentSolutionStackFileTypeList(v *[]*string, deco decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -12315,17 +12388,17 @@ func awsAwsquery_deserializeDocumentSolutionStackFileTypeList(v *[]*string, deco return nil } -func awsAwsquery_deserializeDocumentSolutionStackFileTypeListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentSolutionStackFileTypeListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -12333,14 +12406,11 @@ func awsAwsquery_deserializeDocumentSolutionStackFileTypeListUnwrapped(v *[]*str return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -12382,7 +12452,7 @@ func awsAwsquery_deserializeDocumentSourceBuildInformation(v **types.SourceBuild } if val != nil { xtv := string(val) - sv.SourceLocation = &xtv + sv.SourceLocation = ptr.String(xtv) } case strings.EqualFold("SourceRepository", t.Name.Local): @@ -12456,7 +12526,7 @@ func awsAwsquery_deserializeDocumentSourceBundleDeletionException(v **types.Sour } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12569,13 +12639,13 @@ func awsAwsquery_deserializeDocumentStatusCodes(v **types.StatusCodes, decoder s return nil } -func awsAwsquery_deserializeDocumentSupportedAddonList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSupportedAddonList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -12593,20 +12663,17 @@ func awsAwsquery_deserializeDocumentSupportedAddonList(v *[]*string, decoder smi decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -12619,17 +12686,17 @@ func awsAwsquery_deserializeDocumentSupportedAddonList(v *[]*string, decoder smi return nil } -func awsAwsquery_deserializeDocumentSupportedAddonListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentSupportedAddonListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -12637,27 +12704,24 @@ func awsAwsquery_deserializeDocumentSupportedAddonListUnwrapped(v *[]*string, de return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentSupportedTierList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSupportedTierList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -12675,20 +12739,17 @@ func awsAwsquery_deserializeDocumentSupportedTierList(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -12701,17 +12762,17 @@ func awsAwsquery_deserializeDocumentSupportedTierList(v *[]*string, decoder smit return nil } -func awsAwsquery_deserializeDocumentSupportedTierListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentSupportedTierListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -12719,14 +12780,11 @@ func awsAwsquery_deserializeDocumentSupportedTierListUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -12812,7 +12870,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -12828,7 +12886,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -12841,13 +12899,13 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec return nil } -func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -12863,11 +12921,13 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12880,23 +12940,25 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12937,7 +12999,7 @@ func awsAwsquery_deserializeDocumentTooManyApplicationsException(v **types.TooMa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12985,7 +13047,7 @@ func awsAwsquery_deserializeDocumentTooManyApplicationVersionsException(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13033,7 +13095,7 @@ func awsAwsquery_deserializeDocumentTooManyBucketsException(v **types.TooManyBuc } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13081,7 +13143,7 @@ func awsAwsquery_deserializeDocumentTooManyConfigurationTemplatesException(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13129,7 +13191,7 @@ func awsAwsquery_deserializeDocumentTooManyEnvironmentsException(v **types.TooMa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13177,7 +13239,7 @@ func awsAwsquery_deserializeDocumentTooManyPlatformsException(v **types.TooManyP } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13225,7 +13287,7 @@ func awsAwsquery_deserializeDocumentTooManyTagsException(v **types.TooManyTagsEx } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13273,7 +13335,7 @@ func awsAwsquery_deserializeDocumentTrigger(v **types.Trigger, decoder smithyxml } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -13286,13 +13348,13 @@ func awsAwsquery_deserializeDocumentTrigger(v **types.Trigger, decoder smithyxml return nil } -func awsAwsquery_deserializeDocumentTriggerList(v *[]*types.Trigger, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTriggerList(v *[]types.Trigger, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Trigger + var sv []types.Trigger if *v == nil { - sv = make([]*types.Trigger, 0) + sv = make([]types.Trigger, 0) } else { sv = *v } @@ -13308,11 +13370,13 @@ func awsAwsquery_deserializeDocumentTriggerList(v *[]*types.Trigger, decoder smi } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Trigger + var col types.Trigger nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTrigger(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTrigger(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13325,23 +13389,25 @@ func awsAwsquery_deserializeDocumentTriggerList(v *[]*types.Trigger, decoder smi return nil } -func awsAwsquery_deserializeDocumentTriggerListUnwrapped(v *[]*types.Trigger, decoder smithyxml.NodeDecoder) error { - var sv []*types.Trigger +func awsAwsquery_deserializeDocumentTriggerListUnwrapped(v *[]types.Trigger, decoder smithyxml.NodeDecoder) error { + var sv []types.Trigger if *v == nil { - sv = make([]*types.Trigger, 0) + sv = make([]types.Trigger, 0) } else { sv = *v } switch { default: - var mv *types.Trigger + var mv types.Trigger t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTrigger(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTrigger(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13382,7 +13448,7 @@ func awsAwsquery_deserializeDocumentValidationMessage(v **types.ValidationMessag } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("Namespace", t.Name.Local): @@ -13398,7 +13464,7 @@ func awsAwsquery_deserializeDocumentValidationMessage(v **types.ValidationMessag } if val != nil { xtv := string(val) - sv.Namespace = &xtv + sv.Namespace = ptr.String(xtv) } case strings.EqualFold("OptionName", t.Name.Local): @@ -13414,7 +13480,7 @@ func awsAwsquery_deserializeDocumentValidationMessage(v **types.ValidationMessag } if val != nil { xtv := string(val) - sv.OptionName = &xtv + sv.OptionName = ptr.String(xtv) } case strings.EqualFold("Severity", t.Name.Local): @@ -13440,13 +13506,13 @@ func awsAwsquery_deserializeDocumentValidationMessage(v **types.ValidationMessag return nil } -func awsAwsquery_deserializeDocumentValidationMessagesList(v *[]*types.ValidationMessage, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentValidationMessagesList(v *[]types.ValidationMessage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ValidationMessage + var sv []types.ValidationMessage if *v == nil { - sv = make([]*types.ValidationMessage, 0) + sv = make([]types.ValidationMessage, 0) } else { sv = *v } @@ -13462,11 +13528,13 @@ func awsAwsquery_deserializeDocumentValidationMessagesList(v *[]*types.Validatio } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ValidationMessage + var col types.ValidationMessage nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentValidationMessage(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentValidationMessage(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13479,35 +13547,37 @@ func awsAwsquery_deserializeDocumentValidationMessagesList(v *[]*types.Validatio return nil } -func awsAwsquery_deserializeDocumentValidationMessagesListUnwrapped(v *[]*types.ValidationMessage, decoder smithyxml.NodeDecoder) error { - var sv []*types.ValidationMessage +func awsAwsquery_deserializeDocumentValidationMessagesListUnwrapped(v *[]types.ValidationMessage, decoder smithyxml.NodeDecoder) error { + var sv []types.ValidationMessage if *v == nil { - sv = make([]*types.ValidationMessage, 0) + sv = make([]types.ValidationMessage, 0) } else { sv = *v } switch { default: - var mv *types.ValidationMessage + var mv types.ValidationMessage t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentValidationMessage(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentValidationMessage(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentVersionLabelsList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentVersionLabelsList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -13525,20 +13595,17 @@ func awsAwsquery_deserializeDocumentVersionLabelsList(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -13551,17 +13618,17 @@ func awsAwsquery_deserializeDocumentVersionLabelsList(v *[]*string, decoder smit return nil } -func awsAwsquery_deserializeDocumentVersionLabelsListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentVersionLabelsListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -13569,14 +13636,11 @@ func awsAwsquery_deserializeDocumentVersionLabelsListUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -13650,7 +13714,7 @@ func awsAwsquery_deserializeOpDocumentApplyEnvironmentManagedActionOutput(v **Ap } if val != nil { xtv := string(val) - sv.ActionDescription = &xtv + sv.ActionDescription = ptr.String(xtv) } case strings.EqualFold("ActionId", t.Name.Local): @@ -13666,7 +13730,7 @@ func awsAwsquery_deserializeOpDocumentApplyEnvironmentManagedActionOutput(v **Ap } if val != nil { xtv := string(val) - sv.ActionId = &xtv + sv.ActionId = ptr.String(xtv) } case strings.EqualFold("ActionType", t.Name.Local): @@ -13695,7 +13759,7 @@ func awsAwsquery_deserializeOpDocumentApplyEnvironmentManagedActionOutput(v **Ap } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -13775,7 +13839,7 @@ func awsAwsquery_deserializeOpDocumentCheckDNSAvailabilityOutput(v **CheckDNSAva if err != nil { return fmt.Errorf("expected CnameAvailability to be of type *bool, got %T instead", val) } - sv.Available = &xtv + sv.Available = ptr.Bool(xtv) } case strings.EqualFold("FullyQualifiedCNAME", t.Name.Local): @@ -13791,7 +13855,7 @@ func awsAwsquery_deserializeOpDocumentCheckDNSAvailabilityOutput(v **CheckDNSAva } if val != nil { xtv := string(val) - sv.FullyQualifiedCNAME = &xtv + sv.FullyQualifiedCNAME = ptr.String(xtv) } default: @@ -13845,7 +13909,7 @@ func awsAwsquery_deserializeOpDocumentComposeEnvironmentsOutput(v **ComposeEnvir } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -13969,7 +14033,7 @@ func awsAwsquery_deserializeOpDocumentCreateConfigurationTemplateOutput(v **Crea } if val != nil { xtv := string(val) - sv.ApplicationName = &xtv + sv.ApplicationName = ptr.String(xtv) } case strings.EqualFold("DateCreated", t.Name.Local): @@ -13986,7 +14050,7 @@ func awsAwsquery_deserializeOpDocumentCreateConfigurationTemplateOutput(v **Crea if err != nil { return err } - sv.DateCreated = &t + sv.DateCreated = ptr.Time(t) } case strings.EqualFold("DateUpdated", t.Name.Local): @@ -14003,7 +14067,7 @@ func awsAwsquery_deserializeOpDocumentCreateConfigurationTemplateOutput(v **Crea if err != nil { return err } - sv.DateUpdated = &t + sv.DateUpdated = ptr.Time(t) } case strings.EqualFold("DeploymentStatus", t.Name.Local): @@ -14032,7 +14096,7 @@ func awsAwsquery_deserializeOpDocumentCreateConfigurationTemplateOutput(v **Crea } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("EnvironmentName", t.Name.Local): @@ -14048,7 +14112,7 @@ func awsAwsquery_deserializeOpDocumentCreateConfigurationTemplateOutput(v **Crea } if val != nil { xtv := string(val) - sv.EnvironmentName = &xtv + sv.EnvironmentName = ptr.String(xtv) } case strings.EqualFold("OptionSettings", t.Name.Local): @@ -14070,7 +14134,7 @@ func awsAwsquery_deserializeOpDocumentCreateConfigurationTemplateOutput(v **Crea } if val != nil { xtv := string(val) - sv.PlatformArn = &xtv + sv.PlatformArn = ptr.String(xtv) } case strings.EqualFold("SolutionStackName", t.Name.Local): @@ -14086,7 +14150,7 @@ func awsAwsquery_deserializeOpDocumentCreateConfigurationTemplateOutput(v **Crea } if val != nil { xtv := string(val) - sv.SolutionStackName = &xtv + sv.SolutionStackName = ptr.String(xtv) } case strings.EqualFold("TemplateName", t.Name.Local): @@ -14102,7 +14166,7 @@ func awsAwsquery_deserializeOpDocumentCreateConfigurationTemplateOutput(v **Crea } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } default: @@ -14150,7 +14214,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm if err != nil { return fmt.Errorf("expected AbortableOperationInProgress to be of type *bool, got %T instead", val) } - sv.AbortableOperationInProgress = &xtv + sv.AbortableOperationInProgress = ptr.Bool(xtv) } case strings.EqualFold("ApplicationName", t.Name.Local): @@ -14166,7 +14230,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm } if val != nil { xtv := string(val) - sv.ApplicationName = &xtv + sv.ApplicationName = ptr.String(xtv) } case strings.EqualFold("CNAME", t.Name.Local): @@ -14182,7 +14246,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm } if val != nil { xtv := string(val) - sv.CNAME = &xtv + sv.CNAME = ptr.String(xtv) } case strings.EqualFold("DateCreated", t.Name.Local): @@ -14199,7 +14263,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm if err != nil { return err } - sv.DateCreated = &t + sv.DateCreated = ptr.Time(t) } case strings.EqualFold("DateUpdated", t.Name.Local): @@ -14216,7 +14280,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm if err != nil { return err } - sv.DateUpdated = &t + sv.DateUpdated = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -14232,7 +14296,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("EndpointURL", t.Name.Local): @@ -14248,7 +14312,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm } if val != nil { xtv := string(val) - sv.EndpointURL = &xtv + sv.EndpointURL = ptr.String(xtv) } case strings.EqualFold("EnvironmentArn", t.Name.Local): @@ -14264,7 +14328,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm } if val != nil { xtv := string(val) - sv.EnvironmentArn = &xtv + sv.EnvironmentArn = ptr.String(xtv) } case strings.EqualFold("EnvironmentId", t.Name.Local): @@ -14280,7 +14344,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm } if val != nil { xtv := string(val) - sv.EnvironmentId = &xtv + sv.EnvironmentId = ptr.String(xtv) } case strings.EqualFold("EnvironmentLinks", t.Name.Local): @@ -14302,7 +14366,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm } if val != nil { xtv := string(val) - sv.EnvironmentName = &xtv + sv.EnvironmentName = ptr.String(xtv) } case strings.EqualFold("Health", t.Name.Local): @@ -14344,7 +14408,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm } if val != nil { xtv := string(val) - sv.OperationsRole = &xtv + sv.OperationsRole = ptr.String(xtv) } case strings.EqualFold("PlatformArn", t.Name.Local): @@ -14360,7 +14424,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm } if val != nil { xtv := string(val) - sv.PlatformArn = &xtv + sv.PlatformArn = ptr.String(xtv) } case strings.EqualFold("Resources", t.Name.Local): @@ -14382,7 +14446,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm } if val != nil { xtv := string(val) - sv.SolutionStackName = &xtv + sv.SolutionStackName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -14411,7 +14475,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } case strings.EqualFold("Tier", t.Name.Local): @@ -14433,7 +14497,7 @@ func awsAwsquery_deserializeOpDocumentCreateEnvironmentOutput(v **CreateEnvironm } if val != nil { xtv := string(val) - sv.VersionLabel = &xtv + sv.VersionLabel = ptr.String(xtv) } default: @@ -14525,7 +14589,7 @@ func awsAwsquery_deserializeOpDocumentCreateStorageLocationOutput(v **CreateStor } if val != nil { xtv := string(val) - sv.S3Bucket = &xtv + sv.S3Bucket = ptr.String(xtv) } default: @@ -14821,7 +14885,7 @@ func awsAwsquery_deserializeOpDocumentDescribeApplicationVersionsOutput(v **Desc } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -14875,7 +14939,7 @@ func awsAwsquery_deserializeOpDocumentDescribeConfigurationOptionsOutput(v **Des } if val != nil { xtv := string(val) - sv.PlatformArn = &xtv + sv.PlatformArn = ptr.String(xtv) } case strings.EqualFold("SolutionStackName", t.Name.Local): @@ -14891,7 +14955,7 @@ func awsAwsquery_deserializeOpDocumentDescribeConfigurationOptionsOutput(v **Des } if val != nil { xtv := string(val) - sv.SolutionStackName = &xtv + sv.SolutionStackName = ptr.String(xtv) } default: @@ -14989,7 +15053,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEnvironmentHealthOutput(v **Descri } if val != nil { xtv := string(val) - sv.Color = &xtv + sv.Color = ptr.String(xtv) } case strings.EqualFold("EnvironmentName", t.Name.Local): @@ -15005,7 +15069,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEnvironmentHealthOutput(v **Descri } if val != nil { xtv := string(val) - sv.EnvironmentName = &xtv + sv.EnvironmentName = ptr.String(xtv) } case strings.EqualFold("HealthStatus", t.Name.Local): @@ -15021,7 +15085,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEnvironmentHealthOutput(v **Descri } if val != nil { xtv := string(val) - sv.HealthStatus = &xtv + sv.HealthStatus = ptr.String(xtv) } case strings.EqualFold("InstancesHealth", t.Name.Local): @@ -15044,7 +15108,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEnvironmentHealthOutput(v **Descri if err != nil { return err } - sv.RefreshedAt = &t + sv.RefreshedAt = ptr.Time(t) } case strings.EqualFold("Status", t.Name.Local): @@ -15111,7 +15175,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEnvironmentManagedActionHistoryOut } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -15241,7 +15305,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEnvironmentsOutput(v **DescribeEnv } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -15295,7 +15359,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEventsOutput(v **DescribeEventsOut } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -15349,7 +15413,7 @@ func awsAwsquery_deserializeOpDocumentDescribeInstancesHealthOutput(v **Describe } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("RefreshedAt", t.Name.Local): @@ -15366,7 +15430,7 @@ func awsAwsquery_deserializeOpDocumentDescribeInstancesHealthOutput(v **Describe if err != nil { return err } - sv.RefreshedAt = &t + sv.RefreshedAt = ptr.Time(t) } default: @@ -15528,7 +15592,7 @@ func awsAwsquery_deserializeOpDocumentListPlatformBranchesOutput(v **ListPlatfor } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("PlatformBranchSummaryList", t.Name.Local): @@ -15582,7 +15646,7 @@ func awsAwsquery_deserializeOpDocumentListPlatformVersionsOutput(v **ListPlatfor } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("PlatformSummaryList", t.Name.Local): @@ -15636,7 +15700,7 @@ func awsAwsquery_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForR } if val != nil { xtv := string(val) - sv.ResourceArn = &xtv + sv.ResourceArn = ptr.String(xtv) } case strings.EqualFold("ResourceTags", t.Name.Local): @@ -15856,7 +15920,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn if err != nil { return fmt.Errorf("expected AbortableOperationInProgress to be of type *bool, got %T instead", val) } - sv.AbortableOperationInProgress = &xtv + sv.AbortableOperationInProgress = ptr.Bool(xtv) } case strings.EqualFold("ApplicationName", t.Name.Local): @@ -15872,7 +15936,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn } if val != nil { xtv := string(val) - sv.ApplicationName = &xtv + sv.ApplicationName = ptr.String(xtv) } case strings.EqualFold("CNAME", t.Name.Local): @@ -15888,7 +15952,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn } if val != nil { xtv := string(val) - sv.CNAME = &xtv + sv.CNAME = ptr.String(xtv) } case strings.EqualFold("DateCreated", t.Name.Local): @@ -15905,7 +15969,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn if err != nil { return err } - sv.DateCreated = &t + sv.DateCreated = ptr.Time(t) } case strings.EqualFold("DateUpdated", t.Name.Local): @@ -15922,7 +15986,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn if err != nil { return err } - sv.DateUpdated = &t + sv.DateUpdated = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -15938,7 +16002,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("EndpointURL", t.Name.Local): @@ -15954,7 +16018,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn } if val != nil { xtv := string(val) - sv.EndpointURL = &xtv + sv.EndpointURL = ptr.String(xtv) } case strings.EqualFold("EnvironmentArn", t.Name.Local): @@ -15970,7 +16034,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn } if val != nil { xtv := string(val) - sv.EnvironmentArn = &xtv + sv.EnvironmentArn = ptr.String(xtv) } case strings.EqualFold("EnvironmentId", t.Name.Local): @@ -15986,7 +16050,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn } if val != nil { xtv := string(val) - sv.EnvironmentId = &xtv + sv.EnvironmentId = ptr.String(xtv) } case strings.EqualFold("EnvironmentLinks", t.Name.Local): @@ -16008,7 +16072,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn } if val != nil { xtv := string(val) - sv.EnvironmentName = &xtv + sv.EnvironmentName = ptr.String(xtv) } case strings.EqualFold("Health", t.Name.Local): @@ -16050,7 +16114,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn } if val != nil { xtv := string(val) - sv.OperationsRole = &xtv + sv.OperationsRole = ptr.String(xtv) } case strings.EqualFold("PlatformArn", t.Name.Local): @@ -16066,7 +16130,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn } if val != nil { xtv := string(val) - sv.PlatformArn = &xtv + sv.PlatformArn = ptr.String(xtv) } case strings.EqualFold("Resources", t.Name.Local): @@ -16088,7 +16152,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn } if val != nil { xtv := string(val) - sv.SolutionStackName = &xtv + sv.SolutionStackName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -16117,7 +16181,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } case strings.EqualFold("Tier", t.Name.Local): @@ -16139,7 +16203,7 @@ func awsAwsquery_deserializeOpDocumentTerminateEnvironmentOutput(v **TerminateEn } if val != nil { xtv := string(val) - sv.VersionLabel = &xtv + sv.VersionLabel = ptr.String(xtv) } default: @@ -16225,7 +16289,7 @@ func awsAwsquery_deserializeOpDocumentUpdateApplicationResourceLifecycleOutput(v } if val != nil { xtv := string(val) - sv.ApplicationName = &xtv + sv.ApplicationName = ptr.String(xtv) } case strings.EqualFold("ResourceLifecycleConfig", t.Name.Local): @@ -16317,7 +16381,7 @@ func awsAwsquery_deserializeOpDocumentUpdateConfigurationTemplateOutput(v **Upda } if val != nil { xtv := string(val) - sv.ApplicationName = &xtv + sv.ApplicationName = ptr.String(xtv) } case strings.EqualFold("DateCreated", t.Name.Local): @@ -16334,7 +16398,7 @@ func awsAwsquery_deserializeOpDocumentUpdateConfigurationTemplateOutput(v **Upda if err != nil { return err } - sv.DateCreated = &t + sv.DateCreated = ptr.Time(t) } case strings.EqualFold("DateUpdated", t.Name.Local): @@ -16351,7 +16415,7 @@ func awsAwsquery_deserializeOpDocumentUpdateConfigurationTemplateOutput(v **Upda if err != nil { return err } - sv.DateUpdated = &t + sv.DateUpdated = ptr.Time(t) } case strings.EqualFold("DeploymentStatus", t.Name.Local): @@ -16380,7 +16444,7 @@ func awsAwsquery_deserializeOpDocumentUpdateConfigurationTemplateOutput(v **Upda } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("EnvironmentName", t.Name.Local): @@ -16396,7 +16460,7 @@ func awsAwsquery_deserializeOpDocumentUpdateConfigurationTemplateOutput(v **Upda } if val != nil { xtv := string(val) - sv.EnvironmentName = &xtv + sv.EnvironmentName = ptr.String(xtv) } case strings.EqualFold("OptionSettings", t.Name.Local): @@ -16418,7 +16482,7 @@ func awsAwsquery_deserializeOpDocumentUpdateConfigurationTemplateOutput(v **Upda } if val != nil { xtv := string(val) - sv.PlatformArn = &xtv + sv.PlatformArn = ptr.String(xtv) } case strings.EqualFold("SolutionStackName", t.Name.Local): @@ -16434,7 +16498,7 @@ func awsAwsquery_deserializeOpDocumentUpdateConfigurationTemplateOutput(v **Upda } if val != nil { xtv := string(val) - sv.SolutionStackName = &xtv + sv.SolutionStackName = ptr.String(xtv) } case strings.EqualFold("TemplateName", t.Name.Local): @@ -16450,7 +16514,7 @@ func awsAwsquery_deserializeOpDocumentUpdateConfigurationTemplateOutput(v **Upda } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } default: @@ -16498,7 +16562,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm if err != nil { return fmt.Errorf("expected AbortableOperationInProgress to be of type *bool, got %T instead", val) } - sv.AbortableOperationInProgress = &xtv + sv.AbortableOperationInProgress = ptr.Bool(xtv) } case strings.EqualFold("ApplicationName", t.Name.Local): @@ -16514,7 +16578,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm } if val != nil { xtv := string(val) - sv.ApplicationName = &xtv + sv.ApplicationName = ptr.String(xtv) } case strings.EqualFold("CNAME", t.Name.Local): @@ -16530,7 +16594,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm } if val != nil { xtv := string(val) - sv.CNAME = &xtv + sv.CNAME = ptr.String(xtv) } case strings.EqualFold("DateCreated", t.Name.Local): @@ -16547,7 +16611,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm if err != nil { return err } - sv.DateCreated = &t + sv.DateCreated = ptr.Time(t) } case strings.EqualFold("DateUpdated", t.Name.Local): @@ -16564,7 +16628,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm if err != nil { return err } - sv.DateUpdated = &t + sv.DateUpdated = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -16580,7 +16644,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("EndpointURL", t.Name.Local): @@ -16596,7 +16660,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm } if val != nil { xtv := string(val) - sv.EndpointURL = &xtv + sv.EndpointURL = ptr.String(xtv) } case strings.EqualFold("EnvironmentArn", t.Name.Local): @@ -16612,7 +16676,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm } if val != nil { xtv := string(val) - sv.EnvironmentArn = &xtv + sv.EnvironmentArn = ptr.String(xtv) } case strings.EqualFold("EnvironmentId", t.Name.Local): @@ -16628,7 +16692,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm } if val != nil { xtv := string(val) - sv.EnvironmentId = &xtv + sv.EnvironmentId = ptr.String(xtv) } case strings.EqualFold("EnvironmentLinks", t.Name.Local): @@ -16650,7 +16714,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm } if val != nil { xtv := string(val) - sv.EnvironmentName = &xtv + sv.EnvironmentName = ptr.String(xtv) } case strings.EqualFold("Health", t.Name.Local): @@ -16692,7 +16756,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm } if val != nil { xtv := string(val) - sv.OperationsRole = &xtv + sv.OperationsRole = ptr.String(xtv) } case strings.EqualFold("PlatformArn", t.Name.Local): @@ -16708,7 +16772,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm } if val != nil { xtv := string(val) - sv.PlatformArn = &xtv + sv.PlatformArn = ptr.String(xtv) } case strings.EqualFold("Resources", t.Name.Local): @@ -16730,7 +16794,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm } if val != nil { xtv := string(val) - sv.SolutionStackName = &xtv + sv.SolutionStackName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -16759,7 +16823,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } case strings.EqualFold("Tier", t.Name.Local): @@ -16781,7 +16845,7 @@ func awsAwsquery_deserializeOpDocumentUpdateEnvironmentOutput(v **UpdateEnvironm } if val != nil { xtv := string(val) - sv.VersionLabel = &xtv + sv.VersionLabel = ptr.String(xtv) } default: diff --git a/service/elasticbeanstalk/go.mod b/service/elasticbeanstalk/go.mod index b697afac8de..de366bb67a8 100644 --- a/service/elasticbeanstalk/go.mod +++ b/service/elasticbeanstalk/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/elasticbeanstalk/serializers.go b/service/elasticbeanstalk/serializers.go index bb8e4c66c06..0b08a6e3494 100644 --- a/service/elasticbeanstalk/serializers.go +++ b/service/elasticbeanstalk/serializers.go @@ -2593,18 +2593,15 @@ func (m *awsAwsquery_serializeOpValidateConfigurationSettings) HandleSerialize(c return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentApplicationNamesList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentApplicationNamesList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2708,18 +2705,15 @@ func awsAwsquery_serializeDocumentConfigurationOptionSetting(v *types.Configurat return nil } -func awsAwsquery_serializeDocumentConfigurationOptionSettingsList(v []*types.ConfigurationOptionSetting, value query.Value) error { +func awsAwsquery_serializeDocumentConfigurationOptionSettingsList(v []types.ConfigurationOptionSetting, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentConfigurationOptionSetting(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentConfigurationOptionSetting(&v[i], av); err != nil { return err } } @@ -2739,34 +2733,28 @@ func awsAwsquery_serializeDocumentEnvironmentHealthAttributes(v []types.Environm return nil } -func awsAwsquery_serializeDocumentEnvironmentIdList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentEnvironmentIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentEnvironmentNamesList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentEnvironmentNamesList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2872,18 +2860,15 @@ func awsAwsquery_serializeDocumentOptionSpecification(v *types.OptionSpecificati return nil } -func awsAwsquery_serializeDocumentOptionsSpecifierList(v []*types.OptionSpecification, value query.Value) error { +func awsAwsquery_serializeDocumentOptionsSpecifierList(v []types.OptionSpecification, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentOptionSpecification(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentOptionSpecification(&v[i], av); err != nil { return err } } @@ -2914,36 +2899,30 @@ func awsAwsquery_serializeDocumentPlatformFilter(v *types.PlatformFilter, value return nil } -func awsAwsquery_serializeDocumentPlatformFilters(v []*types.PlatformFilter, value query.Value) error { +func awsAwsquery_serializeDocumentPlatformFilters(v []types.PlatformFilter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentPlatformFilter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentPlatformFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentPlatformFilterValueList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentPlatformFilterValueList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2989,36 +2968,30 @@ func awsAwsquery_serializeDocumentSearchFilter(v *types.SearchFilter, value quer return nil } -func awsAwsquery_serializeDocumentSearchFilters(v []*types.SearchFilter, value query.Value) error { +func awsAwsquery_serializeDocumentSearchFilters(v []types.SearchFilter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentSearchFilter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentSearchFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentSearchFilterValues(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSearchFilterValues(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3079,86 +3052,71 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTagKeyList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentTagKeyList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentTagList(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTagList(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentTags(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTags(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentVersionLabels(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentVersionLabels(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentVersionLabelsList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentVersionLabelsList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3773,9 +3731,9 @@ func awsAwsquery_serializeOpDocumentDescribeEnvironmentManagedActionHistoryInput objectKey.String(*v.EnvironmentName) } - if v.MaxItems != nil { + if v.MaxItems != 0 { objectKey := object.Key("MaxItems") - objectKey.Integer(*v.MaxItems) + objectKey.Integer(v.MaxItems) } if v.NextToken != nil { diff --git a/service/elasticbeanstalk/types/types.go b/service/elasticbeanstalk/types/types.go index ab6bb22e6d3..50180343407 100644 --- a/service/elasticbeanstalk/types/types.go +++ b/service/elasticbeanstalk/types/types.go @@ -16,7 +16,7 @@ type ApplicationDescription struct { ApplicationName *string // The names of the configuration templates associated with this application. - ConfigurationTemplates []*string + ConfigurationTemplates []string // The date when the application was created. DateCreated *time.Time @@ -31,7 +31,7 @@ type ApplicationDescription struct { ResourceLifecycleConfig *ApplicationResourceLifecycleConfig // The names of the versions for this application. - Versions []*string + Versions []string } // Application request metrics for an AWS Elastic Beanstalk environment. @@ -48,7 +48,7 @@ type ApplicationMetrics struct { // Average number of requests handled by the web server per second over the last 10 // seconds. - RequestCount *int32 + RequestCount int32 // Represents the percentage of requests over the last 10 seconds that resulted in // each type of status code response. @@ -260,7 +260,7 @@ type ConfigurationOptionDescription struct { UserDefined *bool // If specified, values for the configuration option are selected from this list. - ValueOptions []*string + ValueOptions []string // An indication of which type of values this option has and whether it is // allowable to select one or more than one of the possible values: @@ -339,7 +339,7 @@ type ConfigurationSettingsDescription struct { EnvironmentName *string // A list of the configuration options and their values in this configuration set. - OptionSettings []*ConfigurationOptionSetting + OptionSettings []ConfigurationOptionSetting // The ARN of the platform version. PlatformArn *string @@ -457,7 +457,7 @@ type EnvironmentDescription struct { EnvironmentId *string // A list of links to other environments in the same group. - EnvironmentLinks []*EnvironmentLink + EnvironmentLinks []EnvironmentLink // The name of this environment. EnvironmentName *string @@ -569,28 +569,28 @@ type EnvironmentLink struct { type EnvironmentResourceDescription struct { // The AutoScalingGroups used by this environment. - AutoScalingGroups []*AutoScalingGroup + AutoScalingGroups []AutoScalingGroup // The name of the environment. EnvironmentName *string // The Amazon EC2 instances used by this environment. - Instances []*Instance + Instances []Instance // The Auto Scaling launch configurations in use by this environment. - LaunchConfigurations []*LaunchConfiguration + LaunchConfigurations []LaunchConfiguration // The Amazon EC2 launch templates in use by this environment. - LaunchTemplates []*LaunchTemplate + LaunchTemplates []LaunchTemplate // The LoadBalancers in use by this environment. - LoadBalancers []*LoadBalancer + LoadBalancers []LoadBalancer // The queues used by this environment. - Queues []*Queue + Queues []Queue // The AutoScaling triggers in use by this environment. - Triggers []*Trigger + Triggers []Trigger } // Describes the AWS resources in use by this environment. This data is not live @@ -756,7 +756,7 @@ type LaunchTemplate struct { type Listener struct { // The port that is used by the Listener. - Port *int32 + Port int32 // The protocol that is used by the Listener. Protocol *string @@ -776,7 +776,7 @@ type LoadBalancerDescription struct { Domain *string // A list of Listeners used by the LoadBalancer. - Listeners []*Listener + Listeners []Listener // The name of the LoadBalancer. LoadBalancerName *string @@ -900,7 +900,7 @@ type PlatformBranchSummary struct { // added to a platform. This can be helpful, for example, if your code calls the // ListPlatformBranches action and then displays a list of platform branches. A // larger BranchOrder value designates a newer platform branch within the platform. - BranchOrder *int32 + BranchOrder int32 // The support life cycle state of the platform branch. Possible values: beta | // supported | deprecated | retired @@ -911,14 +911,14 @@ type PlatformBranchSummary struct { // The environment tiers that platform versions in this branch support. Possible // values: WebServer/Standard | Worker/SQS/HTTP - SupportedTierList []*string + SupportedTierList []string } // Detailed information about a platform version. type PlatformDescription struct { // The custom AMIs supported by the platform version. - CustomAmiList []*CustomAmi + CustomAmiList []CustomAmi // The date when the platform version was created. DateCreated *time.Time @@ -930,7 +930,7 @@ type PlatformDescription struct { Description *string // The frameworks supported by the platform version. - Frameworks []*PlatformFramework + Frameworks []PlatformFramework // Information about the maintainer of the platform version. Maintainer *string @@ -973,16 +973,16 @@ type PlatformDescription struct { PlatformVersion *string // The programming languages supported by the platform version. - ProgrammingLanguages []*PlatformProgrammingLanguage + ProgrammingLanguages []PlatformProgrammingLanguage // The name of the solution stack used by the platform version. SolutionStackName *string // The additions supported by the platform version. - SupportedAddonList []*string + SupportedAddonList []string // The tiers supported by the platform version. - SupportedTierList []*string + SupportedTierList []string } // Describes criteria to restrict the results when listing platform versions. The @@ -1013,7 +1013,7 @@ type PlatformFilter struct { // // * SupportedAddon: Log/S3 | // Monitoring/Healthd | WorkerDaemon/SQSD - Values []*string + Values []string } // A framework supported by the platform. @@ -1074,10 +1074,10 @@ type PlatformSummary struct { PlatformVersion *string // The additions associated with the platform version. - SupportedAddonList []*string + SupportedAddonList []string // The tiers in which the platform version runs. - SupportedTierList []*string + SupportedTierList []string } // Describes a queue. @@ -1150,7 +1150,7 @@ type SearchFilter struct { // The list of values applied to the Attribute and Operator attributes. Number of // values and valid values vary by Attribute. - Values []*string + Values []string } // Detailed health information about an Amazon EC2 instance in your Elastic @@ -1165,7 +1165,7 @@ type SingleInstanceHealth struct { // Represents the causes, which provide more information about the current health // status. - Causes []*string + Causes []string // Represents the color indicator that gives you information about the health of // the EC2 instance. For more information, see Health Colors and Statuses @@ -1197,7 +1197,7 @@ type SingleInstanceHealth struct { type SolutionStackDescription struct { // The permitted file types allowed for a solution stack. - PermittedFileTypes []*string + PermittedFileTypes []string // The name of the solution stack. SolutionStackName *string @@ -1280,7 +1280,7 @@ type SystemStatus struct { // Load average in the last 1-minute, 5-minute, and 15-minute periods. For more // information, see Operating System Metrics // (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-metrics.html#health-enhanced-metrics-os). - LoadAverage []*float64 + LoadAverage []float64 } // Describes a tag applied to a resource in an environment. diff --git a/service/elasticinference/api_op_DescribeAcceleratorOfferings.go b/service/elasticinference/api_op_DescribeAcceleratorOfferings.go index c1d7798cf80..d09d8f7568e 100644 --- a/service/elasticinference/api_op_DescribeAcceleratorOfferings.go +++ b/service/elasticinference/api_op_DescribeAcceleratorOfferings.go @@ -41,13 +41,13 @@ type DescribeAcceleratorOfferingsInput struct { LocationType types.LocationType // The list of accelerator types to describe. - AcceleratorTypes []*string + AcceleratorTypes []string } type DescribeAcceleratorOfferingsOutput struct { // The list of accelerator type offerings for a specific location. - AcceleratorTypeOfferings []*types.AcceleratorTypeOffering + AcceleratorTypeOfferings []types.AcceleratorTypeOffering // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticinference/api_op_DescribeAcceleratorTypes.go b/service/elasticinference/api_op_DescribeAcceleratorTypes.go index 0509918f8b9..95d4cff0489 100644 --- a/service/elasticinference/api_op_DescribeAcceleratorTypes.go +++ b/service/elasticinference/api_op_DescribeAcceleratorTypes.go @@ -34,7 +34,7 @@ type DescribeAcceleratorTypesInput struct { type DescribeAcceleratorTypesOutput struct { // The available accelerator types. - AcceleratorTypes []*types.AcceleratorType + AcceleratorTypes []types.AcceleratorType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticinference/api_op_DescribeAccelerators.go b/service/elasticinference/api_op_DescribeAccelerators.go index a0b04e16098..c87a16eea0f 100644 --- a/service/elasticinference/api_op_DescribeAccelerators.go +++ b/service/elasticinference/api_op_DescribeAccelerators.go @@ -31,19 +31,19 @@ func (c *Client) DescribeAccelerators(ctx context.Context, params *DescribeAccel type DescribeAcceleratorsInput struct { // The IDs of the accelerators to describe. - AcceleratorIds []*string + AcceleratorIds []string // One or more filters. Filter names and values are case-sensitive. Valid filter // names are: accelerator-types: can provide a list of accelerator type names to // filter for. instance-id: can provide a list of EC2 instance ids to filter for. - Filters []*types.Filter + Filters []types.Filter // The total number of items to return in the command's output. If the total number // of items available is more than the value specified, a NextToken is provided in // the command's output. To resume pagination, provide the NextToken value in the // starting-token argument of a subsequent command. Do not use the NextToken // response element directly outside of the AWS CLI. - MaxResults *int32 + MaxResults int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -53,7 +53,7 @@ type DescribeAcceleratorsInput struct { type DescribeAcceleratorsOutput struct { // The details of the Elastic Inference Accelerators. - AcceleratorSet []*types.ElasticInferenceAccelerator + AcceleratorSet []types.ElasticInferenceAccelerator // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. diff --git a/service/elasticinference/api_op_ListTagsForResource.go b/service/elasticinference/api_op_ListTagsForResource.go index cac261b444c..9b3834b8549 100644 --- a/service/elasticinference/api_op_ListTagsForResource.go +++ b/service/elasticinference/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags of the Elastic Inference Accelerator. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticinference/api_op_TagResource.go b/service/elasticinference/api_op_TagResource.go index a3525a4ba3c..37449d390a4 100644 --- a/service/elasticinference/api_op_TagResource.go +++ b/service/elasticinference/api_op_TagResource.go @@ -36,7 +36,7 @@ type TagResourceInput struct { // The tags to add to the Elastic Inference Accelerator. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/elasticinference/api_op_UntagResource.go b/service/elasticinference/api_op_UntagResource.go index f939c53cf0d..f1999774c6a 100644 --- a/service/elasticinference/api_op_UntagResource.go +++ b/service/elasticinference/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The list of tags to remove from the Elastic Inference Accelerator. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/elasticinference/deserializers.go b/service/elasticinference/deserializers.go index b9b3c21f0e3..3264aa147ab 100644 --- a/service/elasticinference/deserializers.go +++ b/service/elasticinference/deserializers.go @@ -321,7 +321,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAcceleratorsOutput(v **DescribeAc if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -947,7 +947,7 @@ func awsRestjson1_deserializeDocumentAcceleratorType(v **types.AcceleratorType, if !ok { return fmt.Errorf("expected AcceleratorTypeName to be of type string, got %T instead", value) } - sv.AcceleratorTypeName = &jtv + sv.AcceleratorTypeName = ptr.String(jtv) } case "memoryInfo": @@ -969,7 +969,7 @@ func awsRestjson1_deserializeDocumentAcceleratorType(v **types.AcceleratorType, return nil } -func awsRestjson1_deserializeDocumentAcceleratorTypeList(v *[]*types.AcceleratorType, value interface{}) error { +func awsRestjson1_deserializeDocumentAcceleratorTypeList(v *[]types.AcceleratorType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -982,18 +982,20 @@ func awsRestjson1_deserializeDocumentAcceleratorTypeList(v *[]*types.Accelerator return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AcceleratorType + var cv []types.AcceleratorType if *v == nil { - cv = []*types.AcceleratorType{} + cv = []types.AcceleratorType{} } else { cv = *v } for _, value := range shape { - var col *types.AcceleratorType - if err := awsRestjson1_deserializeDocumentAcceleratorType(&col, value); err != nil { + var col types.AcceleratorType + destAddr := &col + if err := awsRestjson1_deserializeDocumentAcceleratorType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1029,7 +1031,7 @@ func awsRestjson1_deserializeDocumentAcceleratorTypeOffering(v **types.Accelerat if !ok { return fmt.Errorf("expected AcceleratorTypeName to be of type string, got %T instead", value) } - sv.AcceleratorType = &jtv + sv.AcceleratorType = ptr.String(jtv) } case "location": @@ -1038,7 +1040,7 @@ func awsRestjson1_deserializeDocumentAcceleratorTypeOffering(v **types.Accelerat if !ok { return fmt.Errorf("expected Location to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "locationType": @@ -1059,7 +1061,7 @@ func awsRestjson1_deserializeDocumentAcceleratorTypeOffering(v **types.Accelerat return nil } -func awsRestjson1_deserializeDocumentAcceleratorTypeOfferingList(v *[]*types.AcceleratorTypeOffering, value interface{}) error { +func awsRestjson1_deserializeDocumentAcceleratorTypeOfferingList(v *[]types.AcceleratorTypeOffering, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1072,18 +1074,20 @@ func awsRestjson1_deserializeDocumentAcceleratorTypeOfferingList(v *[]*types.Acc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AcceleratorTypeOffering + var cv []types.AcceleratorTypeOffering if *v == nil { - cv = []*types.AcceleratorTypeOffering{} + cv = []types.AcceleratorTypeOffering{} } else { cv = *v } for _, value := range shape { - var col *types.AcceleratorTypeOffering - if err := awsRestjson1_deserializeDocumentAcceleratorTypeOffering(&col, value); err != nil { + var col types.AcceleratorTypeOffering + destAddr := &col + if err := awsRestjson1_deserializeDocumentAcceleratorTypeOffering(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1119,7 +1123,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1164,7 +1168,7 @@ func awsRestjson1_deserializeDocumentElasticInferenceAccelerator(v **types.Elast if !ok { return fmt.Errorf("expected AcceleratorId to be of type string, got %T instead", value) } - sv.AcceleratorId = &jtv + sv.AcceleratorId = ptr.String(jtv) } case "acceleratorType": @@ -1173,7 +1177,7 @@ func awsRestjson1_deserializeDocumentElasticInferenceAccelerator(v **types.Elast if !ok { return fmt.Errorf("expected AcceleratorTypeName to be of type string, got %T instead", value) } - sv.AcceleratorType = &jtv + sv.AcceleratorType = ptr.String(jtv) } case "attachedResource": @@ -1182,7 +1186,7 @@ func awsRestjson1_deserializeDocumentElasticInferenceAccelerator(v **types.Elast if !ok { return fmt.Errorf("expected ResourceARN2 to be of type string, got %T instead", value) } - sv.AttachedResource = &jtv + sv.AttachedResource = ptr.String(jtv) } case "availabilityZone": @@ -1191,7 +1195,7 @@ func awsRestjson1_deserializeDocumentElasticInferenceAccelerator(v **types.Elast if !ok { return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } default: @@ -1231,7 +1235,7 @@ func awsRestjson1_deserializeDocumentElasticInferenceAcceleratorHealth(v **types if !ok { return fmt.Errorf("expected AcceleratorHealthStatus to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -1243,7 +1247,7 @@ func awsRestjson1_deserializeDocumentElasticInferenceAcceleratorHealth(v **types return nil } -func awsRestjson1_deserializeDocumentElasticInferenceAcceleratorSet(v *[]*types.ElasticInferenceAccelerator, value interface{}) error { +func awsRestjson1_deserializeDocumentElasticInferenceAcceleratorSet(v *[]types.ElasticInferenceAccelerator, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1256,18 +1260,20 @@ func awsRestjson1_deserializeDocumentElasticInferenceAcceleratorSet(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ElasticInferenceAccelerator + var cv []types.ElasticInferenceAccelerator if *v == nil { - cv = []*types.ElasticInferenceAccelerator{} + cv = []types.ElasticInferenceAccelerator{} } else { cv = *v } for _, value := range shape { - var col *types.ElasticInferenceAccelerator - if err := awsRestjson1_deserializeDocumentElasticInferenceAccelerator(&col, value); err != nil { + var col types.ElasticInferenceAccelerator + destAddr := &col + if err := awsRestjson1_deserializeDocumentElasticInferenceAccelerator(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1303,7 +1309,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1343,7 +1349,7 @@ func awsRestjson1_deserializeDocumentKeyValuePair(v **types.KeyValuePair, value if !ok { return fmt.Errorf("expected Key to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -1356,7 +1362,7 @@ func awsRestjson1_deserializeDocumentKeyValuePair(v **types.KeyValuePair, value if err != nil { return err } - sv.Value = ptr.Int32(int32(i64)) + sv.Value = int32(i64) } default: @@ -1400,7 +1406,7 @@ func awsRestjson1_deserializeDocumentMemoryInfo(v **types.MemoryInfo, value inte if err != nil { return err } - sv.SizeInMiB = ptr.Int32(int32(i64)) + sv.SizeInMiB = int32(i64) } default: @@ -1440,7 +1446,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1452,7 +1458,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1465,21 +1471,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -1488,7 +1494,7 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return nil } -func awsRestjson1_deserializeDocumentThroughputInfoList(v *[]*types.KeyValuePair, value interface{}) error { +func awsRestjson1_deserializeDocumentThroughputInfoList(v *[]types.KeyValuePair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1501,18 +1507,20 @@ func awsRestjson1_deserializeDocumentThroughputInfoList(v *[]*types.KeyValuePair return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyValuePair + var cv []types.KeyValuePair if *v == nil { - cv = []*types.KeyValuePair{} + cv = []types.KeyValuePair{} } else { cv = *v } for _, value := range shape { - var col *types.KeyValuePair - if err := awsRestjson1_deserializeDocumentKeyValuePair(&col, value); err != nil { + var col types.KeyValuePair + destAddr := &col + if err := awsRestjson1_deserializeDocumentKeyValuePair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/elasticinference/go.mod b/service/elasticinference/go.mod index bddd1491d25..a04c7dc44c4 100644 --- a/service/elasticinference/go.mod +++ b/service/elasticinference/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/elasticinference go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/elasticinference/serializers.go b/service/elasticinference/serializers.go index 31ebbf66d89..36319658994 100644 --- a/service/elasticinference/serializers.go +++ b/service/elasticinference/serializers.go @@ -173,9 +173,9 @@ func awsRestjson1_serializeOpDocumentDescribeAcceleratorsInput(v *DescribeAccele } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -287,13 +287,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -364,13 +361,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -444,13 +438,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -458,42 +449,31 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } return nil } -func awsRestjson1_serializeDocumentAcceleratorIdList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAcceleratorIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentAcceleratorTypeNameList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAcceleratorTypeNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -517,49 +497,37 @@ func awsRestjson1_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentFilterList(v []*types.Filter, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentValueStringList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentValueStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/elasticinference/types/types.go b/service/elasticinference/types/types.go index a9ac785b2dd..ae03d186d2c 100644 --- a/service/elasticinference/types/types.go +++ b/service/elasticinference/types/types.go @@ -12,7 +12,7 @@ type AcceleratorType struct { MemoryInfo *MemoryInfo // The throughput information of the Elastic Inference Accelerator type. - ThroughputInfo []*KeyValuePair + ThroughputInfo []KeyValuePair } // The offering for an Elastic Inference Accelerator type. @@ -69,7 +69,7 @@ type Filter struct { Name *string // The values for the filter of the Elastic Inference Accelerator list. - Values []*string + Values []string } // A throughput entry for an Elastic Inference Accelerator type. @@ -81,12 +81,12 @@ type KeyValuePair struct { Key *string // The throughput value of the Elastic Inference Accelerator type. - Value *int32 + Value int32 } // The memory information of an Elastic Inference Accelerator type. type MemoryInfo struct { // The size in mebibytes of the Elastic Inference Accelerator type. - SizeInMiB *int32 + SizeInMiB int32 } diff --git a/service/elasticloadbalancing/api_op_AddTags.go b/service/elasticloadbalancing/api_op_AddTags.go index 78e218a111b..3739146e4db 100644 --- a/service/elasticloadbalancing/api_op_AddTags.go +++ b/service/elasticloadbalancing/api_op_AddTags.go @@ -38,12 +38,12 @@ type AddTagsInput struct { // The name of the load balancer. You can specify one load balancer only. // // This member is required. - LoadBalancerNames []*string + LoadBalancerNames []string // The tags. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } // Contains the output of AddTags. diff --git a/service/elasticloadbalancing/api_op_ApplySecurityGroupsToLoadBalancer.go b/service/elasticloadbalancing/api_op_ApplySecurityGroupsToLoadBalancer.go index 7963f8b15a0..d557cc8347e 100644 --- a/service/elasticloadbalancing/api_op_ApplySecurityGroupsToLoadBalancer.go +++ b/service/elasticloadbalancing/api_op_ApplySecurityGroupsToLoadBalancer.go @@ -43,14 +43,14 @@ type ApplySecurityGroupsToLoadBalancerInput struct { // you cannot specify the name of the security group. // // This member is required. - SecurityGroups []*string + SecurityGroups []string } // Contains the output of ApplySecurityGroupsToLoadBalancer. type ApplySecurityGroupsToLoadBalancerOutput struct { // The IDs of the security groups associated with the load balancer. - SecurityGroups []*string + SecurityGroups []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancing/api_op_AttachLoadBalancerToSubnets.go b/service/elasticloadbalancing/api_op_AttachLoadBalancerToSubnets.go index 47f94031637..c06eede3c2a 100644 --- a/service/elasticloadbalancing/api_op_AttachLoadBalancerToSubnets.go +++ b/service/elasticloadbalancing/api_op_AttachLoadBalancerToSubnets.go @@ -43,14 +43,14 @@ type AttachLoadBalancerToSubnetsInput struct { // Zone. // // This member is required. - Subnets []*string + Subnets []string } // Contains the output of AttachLoadBalancerToSubnets. type AttachLoadBalancerToSubnetsOutput struct { // The IDs of the subnets attached to the load balancer. - Subnets []*string + Subnets []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancing/api_op_CreateLoadBalancer.go b/service/elasticloadbalancing/api_op_CreateLoadBalancer.go index a9bcdeaf199..7e129306f7d 100644 --- a/service/elasticloadbalancing/api_op_CreateLoadBalancer.go +++ b/service/elasticloadbalancing/api_op_CreateLoadBalancer.go @@ -46,7 +46,7 @@ type CreateLoadBalancerInput struct { // in the Classic Load Balancers Guide. // // This member is required. - Listeners []*types.Listener + Listeners []types.Listener // The name of the load balancer. This name must be unique within your set of load // balancers for the region, must have a maximum of 32 characters, must contain @@ -58,7 +58,7 @@ type CreateLoadBalancerInput struct { // One or more Availability Zones from the same region as the load balancer. You // must specify at least one Availability Zone. You can add more Availability Zones // after you create the load balancer using EnableAvailabilityZonesForLoadBalancer. - AvailabilityZones []*string + AvailabilityZones []string // The type of a load balancer. Valid only for load balancers in a VPC. By default, // Elastic Load Balancing creates an Internet-facing load balancer with a DNS name @@ -70,17 +70,17 @@ type CreateLoadBalancerInput struct { Scheme *string // The IDs of the security groups to assign to the load balancer. - SecurityGroups []*string + SecurityGroups []string // The IDs of the subnets in your VPC to attach to the load balancer. Specify one // subnet per Availability Zone specified in AvailabilityZones. - Subnets []*string + Subnets []string // A list of tags to assign to the load balancer. For more information about // tagging your load balancer, see Tag Your Classic Load Balancer // (https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html) // in the Classic Load Balancers Guide. - Tags []*types.Tag + Tags []types.Tag } // Contains the output for CreateLoadBalancer. diff --git a/service/elasticloadbalancing/api_op_CreateLoadBalancerListeners.go b/service/elasticloadbalancing/api_op_CreateLoadBalancerListeners.go index 6b04fd0ba0d..b1be887c55c 100644 --- a/service/elasticloadbalancing/api_op_CreateLoadBalancerListeners.go +++ b/service/elasticloadbalancing/api_op_CreateLoadBalancerListeners.go @@ -38,7 +38,7 @@ type CreateLoadBalancerListenersInput struct { // The listeners. // // This member is required. - Listeners []*types.Listener + Listeners []types.Listener // The name of the load balancer. // diff --git a/service/elasticloadbalancing/api_op_CreateLoadBalancerPolicy.go b/service/elasticloadbalancing/api_op_CreateLoadBalancerPolicy.go index ce9bf3bcd9f..7b9a81b306c 100644 --- a/service/elasticloadbalancing/api_op_CreateLoadBalancerPolicy.go +++ b/service/elasticloadbalancing/api_op_CreateLoadBalancerPolicy.go @@ -50,7 +50,7 @@ type CreateLoadBalancerPolicyInput struct { PolicyTypeName *string // The policy attributes. - PolicyAttributes []*types.PolicyAttribute + PolicyAttributes []types.PolicyAttribute } // Contains the output of CreateLoadBalancerPolicy. diff --git a/service/elasticloadbalancing/api_op_DeleteLoadBalancerListeners.go b/service/elasticloadbalancing/api_op_DeleteLoadBalancerListeners.go index 4c889e1eb51..a19beef6676 100644 --- a/service/elasticloadbalancing/api_op_DeleteLoadBalancerListeners.go +++ b/service/elasticloadbalancing/api_op_DeleteLoadBalancerListeners.go @@ -37,7 +37,7 @@ type DeleteLoadBalancerListenersInput struct { // The client port numbers of the listeners. // // This member is required. - LoadBalancerPorts []*int32 + LoadBalancerPorts []int32 } // Contains the output of DeleteLoadBalancerListeners. diff --git a/service/elasticloadbalancing/api_op_DeregisterInstancesFromLoadBalancer.go b/service/elasticloadbalancing/api_op_DeregisterInstancesFromLoadBalancer.go index e4a41cfcf0c..88dbbe813ef 100644 --- a/service/elasticloadbalancing/api_op_DeregisterInstancesFromLoadBalancer.go +++ b/service/elasticloadbalancing/api_op_DeregisterInstancesFromLoadBalancer.go @@ -39,7 +39,7 @@ type DeregisterInstancesFromLoadBalancerInput struct { // The IDs of the instances. // // This member is required. - Instances []*types.Instance + Instances []types.Instance // The name of the load balancer. // @@ -51,7 +51,7 @@ type DeregisterInstancesFromLoadBalancerInput struct { type DeregisterInstancesFromLoadBalancerOutput struct { // The remaining instances registered with the load balancer. - Instances []*types.Instance + Instances []types.Instance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancing/api_op_DescribeAccountLimits.go b/service/elasticloadbalancing/api_op_DescribeAccountLimits.go index 6a5e46d1a31..34332a67385 100644 --- a/service/elasticloadbalancing/api_op_DescribeAccountLimits.go +++ b/service/elasticloadbalancing/api_op_DescribeAccountLimits.go @@ -43,7 +43,7 @@ type DescribeAccountLimitsInput struct { type DescribeAccountLimitsOutput struct { // Information about the limits. - Limits []*types.Limit + Limits []types.Limit // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. diff --git a/service/elasticloadbalancing/api_op_DescribeInstanceHealth.go b/service/elasticloadbalancing/api_op_DescribeInstanceHealth.go index c72ad429450..b37b0990d2f 100644 --- a/service/elasticloadbalancing/api_op_DescribeInstanceHealth.go +++ b/service/elasticloadbalancing/api_op_DescribeInstanceHealth.go @@ -40,14 +40,14 @@ type DescribeInstanceHealthInput struct { LoadBalancerName *string // The IDs of the instances. - Instances []*types.Instance + Instances []types.Instance } // Contains the output for DescribeInstanceHealth. type DescribeInstanceHealthOutput struct { // Information about the health of the instances. - InstanceStates []*types.InstanceState + InstanceStates []types.InstanceState // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancing/api_op_DescribeLoadBalancerPolicies.go b/service/elasticloadbalancing/api_op_DescribeLoadBalancerPolicies.go index ba42c522974..2e61a417178 100644 --- a/service/elasticloadbalancing/api_op_DescribeLoadBalancerPolicies.go +++ b/service/elasticloadbalancing/api_op_DescribeLoadBalancerPolicies.go @@ -40,14 +40,14 @@ type DescribeLoadBalancerPoliciesInput struct { LoadBalancerName *string // The names of the policies. - PolicyNames []*string + PolicyNames []string } // Contains the output of DescribeLoadBalancerPolicies. type DescribeLoadBalancerPoliciesOutput struct { // Information about the policies. - PolicyDescriptions []*types.PolicyDescription + PolicyDescriptions []types.PolicyDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancing/api_op_DescribeLoadBalancerPolicyTypes.go b/service/elasticloadbalancing/api_op_DescribeLoadBalancerPolicyTypes.go index 3443cbb8262..fdf5e8554c2 100644 --- a/service/elasticloadbalancing/api_op_DescribeLoadBalancerPolicyTypes.go +++ b/service/elasticloadbalancing/api_op_DescribeLoadBalancerPolicyTypes.go @@ -39,14 +39,14 @@ type DescribeLoadBalancerPolicyTypesInput struct { // The names of the policy types. If no names are specified, describes all policy // types defined by Elastic Load Balancing. - PolicyTypeNames []*string + PolicyTypeNames []string } // Contains the output of DescribeLoadBalancerPolicyTypes. type DescribeLoadBalancerPolicyTypesOutput struct { // Information about the policy types. - PolicyTypeDescriptions []*types.PolicyTypeDescription + PolicyTypeDescriptions []types.PolicyTypeDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancing/api_op_DescribeLoadBalancers.go b/service/elasticloadbalancing/api_op_DescribeLoadBalancers.go index 6fb2542b212..7aa1934f171 100644 --- a/service/elasticloadbalancing/api_op_DescribeLoadBalancers.go +++ b/service/elasticloadbalancing/api_op_DescribeLoadBalancers.go @@ -32,7 +32,7 @@ func (c *Client) DescribeLoadBalancers(ctx context.Context, params *DescribeLoad type DescribeLoadBalancersInput struct { // The names of the load balancers. - LoadBalancerNames []*string + LoadBalancerNames []string // The marker for the next set of results. (You received this marker from a // previous call.) @@ -47,7 +47,7 @@ type DescribeLoadBalancersInput struct { type DescribeLoadBalancersOutput struct { // Information about the load balancers. - LoadBalancerDescriptions []*types.LoadBalancerDescription + LoadBalancerDescriptions []types.LoadBalancerDescription // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. diff --git a/service/elasticloadbalancing/api_op_DescribeTags.go b/service/elasticloadbalancing/api_op_DescribeTags.go index 9926fcd2030..fcdfc89b9b3 100644 --- a/service/elasticloadbalancing/api_op_DescribeTags.go +++ b/service/elasticloadbalancing/api_op_DescribeTags.go @@ -33,14 +33,14 @@ type DescribeTagsInput struct { // The names of the load balancers. // // This member is required. - LoadBalancerNames []*string + LoadBalancerNames []string } // Contains the output for DescribeTags. type DescribeTagsOutput struct { // Information about the tags. - TagDescriptions []*types.TagDescription + TagDescriptions []types.TagDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancing/api_op_DetachLoadBalancerFromSubnets.go b/service/elasticloadbalancing/api_op_DetachLoadBalancerFromSubnets.go index edc04a1db0b..e4634532558 100644 --- a/service/elasticloadbalancing/api_op_DetachLoadBalancerFromSubnets.go +++ b/service/elasticloadbalancing/api_op_DetachLoadBalancerFromSubnets.go @@ -40,14 +40,14 @@ type DetachLoadBalancerFromSubnetsInput struct { // The IDs of the subnets. // // This member is required. - Subnets []*string + Subnets []string } // Contains the output of DetachLoadBalancerFromSubnets. type DetachLoadBalancerFromSubnetsOutput struct { // The IDs of the remaining subnets for the load balancer. - Subnets []*string + Subnets []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancing/api_op_DisableAvailabilityZonesForLoadBalancer.go b/service/elasticloadbalancing/api_op_DisableAvailabilityZonesForLoadBalancer.go index f50993a9693..c3ef4a2ff34 100644 --- a/service/elasticloadbalancing/api_op_DisableAvailabilityZonesForLoadBalancer.go +++ b/service/elasticloadbalancing/api_op_DisableAvailabilityZonesForLoadBalancer.go @@ -41,7 +41,7 @@ type DisableAvailabilityZonesForLoadBalancerInput struct { // The Availability Zones. // // This member is required. - AvailabilityZones []*string + AvailabilityZones []string // The name of the load balancer. // @@ -53,7 +53,7 @@ type DisableAvailabilityZonesForLoadBalancerInput struct { type DisableAvailabilityZonesForLoadBalancerOutput struct { // The remaining Availability Zones for the load balancer. - AvailabilityZones []*string + AvailabilityZones []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancing/api_op_EnableAvailabilityZonesForLoadBalancer.go b/service/elasticloadbalancing/api_op_EnableAvailabilityZonesForLoadBalancer.go index 7c77b609da5..d04475ba2de 100644 --- a/service/elasticloadbalancing/api_op_EnableAvailabilityZonesForLoadBalancer.go +++ b/service/elasticloadbalancing/api_op_EnableAvailabilityZonesForLoadBalancer.go @@ -38,7 +38,7 @@ type EnableAvailabilityZonesForLoadBalancerInput struct { // The Availability Zones. These must be in the same region as the load balancer. // // This member is required. - AvailabilityZones []*string + AvailabilityZones []string // The name of the load balancer. // @@ -50,7 +50,7 @@ type EnableAvailabilityZonesForLoadBalancerInput struct { type EnableAvailabilityZonesForLoadBalancerOutput struct { // The updated list of Availability Zones for the load balancer. - AvailabilityZones []*string + AvailabilityZones []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancing/api_op_RegisterInstancesWithLoadBalancer.go b/service/elasticloadbalancing/api_op_RegisterInstancesWithLoadBalancer.go index 9b677ab29dd..e7f92c2a785 100644 --- a/service/elasticloadbalancing/api_op_RegisterInstancesWithLoadBalancer.go +++ b/service/elasticloadbalancing/api_op_RegisterInstancesWithLoadBalancer.go @@ -50,7 +50,7 @@ type RegisterInstancesWithLoadBalancerInput struct { // The IDs of the instances. // // This member is required. - Instances []*types.Instance + Instances []types.Instance // The name of the load balancer. // @@ -62,7 +62,7 @@ type RegisterInstancesWithLoadBalancerInput struct { type RegisterInstancesWithLoadBalancerOutput struct { // The updated list of instances for the load balancer. - Instances []*types.Instance + Instances []types.Instance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancing/api_op_RemoveTags.go b/service/elasticloadbalancing/api_op_RemoveTags.go index 4fa7584bf9f..a880a2e361e 100644 --- a/service/elasticloadbalancing/api_op_RemoveTags.go +++ b/service/elasticloadbalancing/api_op_RemoveTags.go @@ -34,12 +34,12 @@ type RemoveTagsInput struct { // name. // // This member is required. - LoadBalancerNames []*string + LoadBalancerNames []string // The list of tag keys to remove. // // This member is required. - Tags []*types.TagKeyOnly + Tags []types.TagKeyOnly } // Contains the output of RemoveTags. diff --git a/service/elasticloadbalancing/api_op_SetLoadBalancerListenerSSLCertificate.go b/service/elasticloadbalancing/api_op_SetLoadBalancerListenerSSLCertificate.go index 2bd8ed0701e..32a1e466860 100644 --- a/service/elasticloadbalancing/api_op_SetLoadBalancerListenerSSLCertificate.go +++ b/service/elasticloadbalancing/api_op_SetLoadBalancerListenerSSLCertificate.go @@ -42,7 +42,7 @@ type SetLoadBalancerListenerSSLCertificateInput struct { // The port that uses the specified SSL certificate. // // This member is required. - LoadBalancerPort *int32 + LoadBalancerPort int32 // The Amazon Resource Name (ARN) of the SSL certificate. // diff --git a/service/elasticloadbalancing/api_op_SetLoadBalancerPoliciesForBackendServer.go b/service/elasticloadbalancing/api_op_SetLoadBalancerPoliciesForBackendServer.go index c1a0cab56de..21c73f68630 100644 --- a/service/elasticloadbalancing/api_op_SetLoadBalancerPoliciesForBackendServer.go +++ b/service/elasticloadbalancing/api_op_SetLoadBalancerPoliciesForBackendServer.go @@ -56,7 +56,7 @@ type SetLoadBalancerPoliciesForBackendServerInput struct { // removed from the EC2 instance. // // This member is required. - PolicyNames []*string + PolicyNames []string } // Contains the output of SetLoadBalancerPoliciesForBackendServer. diff --git a/service/elasticloadbalancing/api_op_SetLoadBalancerPoliciesOfListener.go b/service/elasticloadbalancing/api_op_SetLoadBalancerPoliciesOfListener.go index 2fa37f299d3..390f132ee1f 100644 --- a/service/elasticloadbalancing/api_op_SetLoadBalancerPoliciesOfListener.go +++ b/service/elasticloadbalancing/api_op_SetLoadBalancerPoliciesOfListener.go @@ -46,14 +46,14 @@ type SetLoadBalancerPoliciesOfListenerInput struct { // The external port of the load balancer. // // This member is required. - LoadBalancerPort *int32 + LoadBalancerPort int32 // The names of the policies. This list must include all policies to be enabled. If // you omit a policy that is currently enabled, it is disabled. If the list is // empty, all current policies are disabled. // // This member is required. - PolicyNames []*string + PolicyNames []string } // Contains the output of SetLoadBalancePoliciesOfListener. diff --git a/service/elasticloadbalancing/deserializers.go b/service/elasticloadbalancing/deserializers.go index c34ad5b6555..cf2c7f32131 100644 --- a/service/elasticloadbalancing/deserializers.go +++ b/service/elasticloadbalancing/deserializers.go @@ -3734,7 +3734,7 @@ func awsAwsquery_deserializeDocumentAccessLog(v **types.AccessLog, decoder smith if err != nil { return fmt.Errorf("expected AccessLogEnabled to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } case strings.EqualFold("S3BucketName", t.Name.Local): @@ -3750,7 +3750,7 @@ func awsAwsquery_deserializeDocumentAccessLog(v **types.AccessLog, decoder smith } if val != nil { xtv := string(val) - sv.S3BucketName = &xtv + sv.S3BucketName = ptr.String(xtv) } case strings.EqualFold("S3BucketPrefix", t.Name.Local): @@ -3766,7 +3766,7 @@ func awsAwsquery_deserializeDocumentAccessLog(v **types.AccessLog, decoder smith } if val != nil { xtv := string(val) - sv.S3BucketPrefix = &xtv + sv.S3BucketPrefix = ptr.String(xtv) } default: @@ -3814,7 +3814,7 @@ func awsAwsquery_deserializeDocumentAccessPointNotFoundException(v **types.Acces } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -3862,7 +3862,7 @@ func awsAwsquery_deserializeDocumentAdditionalAttribute(v **types.AdditionalAttr } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -3878,7 +3878,7 @@ func awsAwsquery_deserializeDocumentAdditionalAttribute(v **types.AdditionalAttr } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -3891,13 +3891,13 @@ func awsAwsquery_deserializeDocumentAdditionalAttribute(v **types.AdditionalAttr return nil } -func awsAwsquery_deserializeDocumentAdditionalAttributes(v *[]*types.AdditionalAttribute, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAdditionalAttributes(v *[]types.AdditionalAttribute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AdditionalAttribute + var sv []types.AdditionalAttribute if *v == nil { - sv = make([]*types.AdditionalAttribute, 0) + sv = make([]types.AdditionalAttribute, 0) } else { sv = *v } @@ -3913,11 +3913,13 @@ func awsAwsquery_deserializeDocumentAdditionalAttributes(v *[]*types.AdditionalA } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AdditionalAttribute + var col types.AdditionalAttribute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAdditionalAttribute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAdditionalAttribute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -3930,35 +3932,37 @@ func awsAwsquery_deserializeDocumentAdditionalAttributes(v *[]*types.AdditionalA return nil } -func awsAwsquery_deserializeDocumentAdditionalAttributesUnwrapped(v *[]*types.AdditionalAttribute, decoder smithyxml.NodeDecoder) error { - var sv []*types.AdditionalAttribute +func awsAwsquery_deserializeDocumentAdditionalAttributesUnwrapped(v *[]types.AdditionalAttribute, decoder smithyxml.NodeDecoder) error { + var sv []types.AdditionalAttribute if *v == nil { - sv = make([]*types.AdditionalAttribute, 0) + sv = make([]types.AdditionalAttribute, 0) } else { sv = *v } switch { default: - var mv *types.AdditionalAttribute + var mv types.AdditionalAttribute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAdditionalAttribute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAdditionalAttribute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAppCookieStickinessPolicies(v *[]*types.AppCookieStickinessPolicy, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAppCookieStickinessPolicies(v *[]types.AppCookieStickinessPolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AppCookieStickinessPolicy + var sv []types.AppCookieStickinessPolicy if *v == nil { - sv = make([]*types.AppCookieStickinessPolicy, 0) + sv = make([]types.AppCookieStickinessPolicy, 0) } else { sv = *v } @@ -3974,11 +3978,13 @@ func awsAwsquery_deserializeDocumentAppCookieStickinessPolicies(v *[]*types.AppC } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AppCookieStickinessPolicy + var col types.AppCookieStickinessPolicy nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAppCookieStickinessPolicy(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAppCookieStickinessPolicy(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -3991,23 +3997,25 @@ func awsAwsquery_deserializeDocumentAppCookieStickinessPolicies(v *[]*types.AppC return nil } -func awsAwsquery_deserializeDocumentAppCookieStickinessPoliciesUnwrapped(v *[]*types.AppCookieStickinessPolicy, decoder smithyxml.NodeDecoder) error { - var sv []*types.AppCookieStickinessPolicy +func awsAwsquery_deserializeDocumentAppCookieStickinessPoliciesUnwrapped(v *[]types.AppCookieStickinessPolicy, decoder smithyxml.NodeDecoder) error { + var sv []types.AppCookieStickinessPolicy if *v == nil { - sv = make([]*types.AppCookieStickinessPolicy, 0) + sv = make([]types.AppCookieStickinessPolicy, 0) } else { sv = *v } switch { default: - var mv *types.AppCookieStickinessPolicy + var mv types.AppCookieStickinessPolicy t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAppCookieStickinessPolicy(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAppCookieStickinessPolicy(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -4048,7 +4056,7 @@ func awsAwsquery_deserializeDocumentAppCookieStickinessPolicy(v **types.AppCooki } if val != nil { xtv := string(val) - sv.CookieName = &xtv + sv.CookieName = ptr.String(xtv) } case strings.EqualFold("PolicyName", t.Name.Local): @@ -4064,7 +4072,7 @@ func awsAwsquery_deserializeDocumentAppCookieStickinessPolicy(v **types.AppCooki } if val != nil { xtv := string(val) - sv.PolicyName = &xtv + sv.PolicyName = ptr.String(xtv) } default: @@ -4077,13 +4085,13 @@ func awsAwsquery_deserializeDocumentAppCookieStickinessPolicy(v **types.AppCooki return nil } -func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -4101,20 +4109,17 @@ func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -4127,17 +4132,17 @@ func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smit return nil } -func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -4145,14 +4150,11 @@ func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -4195,7 +4197,7 @@ func awsAwsquery_deserializeDocumentBackendServerDescription(v **types.BackendSe if err != nil { return err } - sv.InstancePort = ptr.Int32(int32(i64)) + sv.InstancePort = int32(i64) } case strings.EqualFold("PolicyNames", t.Name.Local): @@ -4214,13 +4216,13 @@ func awsAwsquery_deserializeDocumentBackendServerDescription(v **types.BackendSe return nil } -func awsAwsquery_deserializeDocumentBackendServerDescriptions(v *[]*types.BackendServerDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentBackendServerDescriptions(v *[]types.BackendServerDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.BackendServerDescription + var sv []types.BackendServerDescription if *v == nil { - sv = make([]*types.BackendServerDescription, 0) + sv = make([]types.BackendServerDescription, 0) } else { sv = *v } @@ -4236,11 +4238,13 @@ func awsAwsquery_deserializeDocumentBackendServerDescriptions(v *[]*types.Backen } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.BackendServerDescription + var col types.BackendServerDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentBackendServerDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentBackendServerDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -4253,23 +4257,25 @@ func awsAwsquery_deserializeDocumentBackendServerDescriptions(v *[]*types.Backen return nil } -func awsAwsquery_deserializeDocumentBackendServerDescriptionsUnwrapped(v *[]*types.BackendServerDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.BackendServerDescription +func awsAwsquery_deserializeDocumentBackendServerDescriptionsUnwrapped(v *[]types.BackendServerDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.BackendServerDescription if *v == nil { - sv = make([]*types.BackendServerDescription, 0) + sv = make([]types.BackendServerDescription, 0) } else { sv = *v } switch { default: - var mv *types.BackendServerDescription + var mv types.BackendServerDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentBackendServerDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentBackendServerDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -4310,7 +4316,7 @@ func awsAwsquery_deserializeDocumentCertificateNotFoundException(v **types.Certi } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4358,7 +4364,7 @@ func awsAwsquery_deserializeDocumentConnectionDraining(v **types.ConnectionDrain if err != nil { return fmt.Errorf("expected ConnectionDrainingEnabled to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } case strings.EqualFold("Timeout", t.Name.Local): @@ -4472,7 +4478,7 @@ func awsAwsquery_deserializeDocumentCrossZoneLoadBalancing(v **types.CrossZoneLo if err != nil { return fmt.Errorf("expected CrossZoneLoadBalancingEnabled to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } default: @@ -4520,7 +4526,7 @@ func awsAwsquery_deserializeDocumentDependencyThrottleException(v **types.Depend } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4568,7 +4574,7 @@ func awsAwsquery_deserializeDocumentDuplicateAccessPointNameException(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4616,7 +4622,7 @@ func awsAwsquery_deserializeDocumentDuplicateListenerException(v **types.Duplica } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4664,7 +4670,7 @@ func awsAwsquery_deserializeDocumentDuplicatePolicyNameException(v **types.Dupli } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4712,7 +4718,7 @@ func awsAwsquery_deserializeDocumentDuplicateTagKeysException(v **types.Duplicat } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4761,7 +4767,7 @@ func awsAwsquery_deserializeDocumentHealthCheck(v **types.HealthCheck, decoder s if err != nil { return err } - sv.HealthyThreshold = ptr.Int32(int32(i64)) + sv.HealthyThreshold = int32(i64) } case strings.EqualFold("Interval", t.Name.Local): @@ -4778,7 +4784,7 @@ func awsAwsquery_deserializeDocumentHealthCheck(v **types.HealthCheck, decoder s if err != nil { return err } - sv.Interval = ptr.Int32(int32(i64)) + sv.Interval = int32(i64) } case strings.EqualFold("Target", t.Name.Local): @@ -4794,7 +4800,7 @@ func awsAwsquery_deserializeDocumentHealthCheck(v **types.HealthCheck, decoder s } if val != nil { xtv := string(val) - sv.Target = &xtv + sv.Target = ptr.String(xtv) } case strings.EqualFold("Timeout", t.Name.Local): @@ -4811,7 +4817,7 @@ func awsAwsquery_deserializeDocumentHealthCheck(v **types.HealthCheck, decoder s if err != nil { return err } - sv.Timeout = ptr.Int32(int32(i64)) + sv.Timeout = int32(i64) } case strings.EqualFold("UnhealthyThreshold", t.Name.Local): @@ -4828,7 +4834,7 @@ func awsAwsquery_deserializeDocumentHealthCheck(v **types.HealthCheck, decoder s if err != nil { return err } - sv.UnhealthyThreshold = ptr.Int32(int32(i64)) + sv.UnhealthyThreshold = int32(i64) } default: @@ -4876,7 +4882,7 @@ func awsAwsquery_deserializeDocumentInstance(v **types.Instance, decoder smithyx } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } default: @@ -4889,13 +4895,13 @@ func awsAwsquery_deserializeDocumentInstance(v **types.Instance, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentInstances(v *[]*types.Instance, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInstances(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Instance + var sv []types.Instance if *v == nil { - sv = make([]*types.Instance, 0) + sv = make([]types.Instance, 0) } else { sv = *v } @@ -4911,11 +4917,13 @@ func awsAwsquery_deserializeDocumentInstances(v *[]*types.Instance, decoder smit } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Instance + var col types.Instance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -4928,23 +4936,25 @@ func awsAwsquery_deserializeDocumentInstances(v *[]*types.Instance, decoder smit return nil } -func awsAwsquery_deserializeDocumentInstancesUnwrapped(v *[]*types.Instance, decoder smithyxml.NodeDecoder) error { - var sv []*types.Instance +func awsAwsquery_deserializeDocumentInstancesUnwrapped(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { + var sv []types.Instance if *v == nil { - sv = make([]*types.Instance, 0) + sv = make([]types.Instance, 0) } else { sv = *v } switch { default: - var mv *types.Instance + var mv types.Instance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -4985,7 +4995,7 @@ func awsAwsquery_deserializeDocumentInstanceState(v **types.InstanceState, decod } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("InstanceId", t.Name.Local): @@ -5001,7 +5011,7 @@ func awsAwsquery_deserializeDocumentInstanceState(v **types.InstanceState, decod } if val != nil { xtv := string(val) - sv.InstanceId = &xtv + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("ReasonCode", t.Name.Local): @@ -5017,7 +5027,7 @@ func awsAwsquery_deserializeDocumentInstanceState(v **types.InstanceState, decod } if val != nil { xtv := string(val) - sv.ReasonCode = &xtv + sv.ReasonCode = ptr.String(xtv) } case strings.EqualFold("State", t.Name.Local): @@ -5033,7 +5043,7 @@ func awsAwsquery_deserializeDocumentInstanceState(v **types.InstanceState, decod } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } default: @@ -5046,13 +5056,13 @@ func awsAwsquery_deserializeDocumentInstanceState(v **types.InstanceState, decod return nil } -func awsAwsquery_deserializeDocumentInstanceStates(v *[]*types.InstanceState, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInstanceStates(v *[]types.InstanceState, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceState + var sv []types.InstanceState if *v == nil { - sv = make([]*types.InstanceState, 0) + sv = make([]types.InstanceState, 0) } else { sv = *v } @@ -5068,11 +5078,13 @@ func awsAwsquery_deserializeDocumentInstanceStates(v *[]*types.InstanceState, de } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.InstanceState + var col types.InstanceState nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstanceState(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentInstanceState(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5085,23 +5097,25 @@ func awsAwsquery_deserializeDocumentInstanceStates(v *[]*types.InstanceState, de return nil } -func awsAwsquery_deserializeDocumentInstanceStatesUnwrapped(v *[]*types.InstanceState, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceState +func awsAwsquery_deserializeDocumentInstanceStatesUnwrapped(v *[]types.InstanceState, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceState if *v == nil { - sv = make([]*types.InstanceState, 0) + sv = make([]types.InstanceState, 0) } else { sv = *v } switch { default: - var mv *types.InstanceState + var mv types.InstanceState t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstanceState(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentInstanceState(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5142,7 +5156,7 @@ func awsAwsquery_deserializeDocumentInvalidConfigurationRequestException(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5190,7 +5204,7 @@ func awsAwsquery_deserializeDocumentInvalidEndPointException(v **types.InvalidEn } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5238,7 +5252,7 @@ func awsAwsquery_deserializeDocumentInvalidSchemeException(v **types.InvalidSche } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5286,7 +5300,7 @@ func awsAwsquery_deserializeDocumentInvalidSecurityGroupException(v **types.Inva } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5334,7 +5348,7 @@ func awsAwsquery_deserializeDocumentInvalidSubnetException(v **types.InvalidSubn } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5347,13 +5361,13 @@ func awsAwsquery_deserializeDocumentInvalidSubnetException(v **types.InvalidSubn return nil } -func awsAwsquery_deserializeDocumentLBCookieStickinessPolicies(v *[]*types.LBCookieStickinessPolicy, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLBCookieStickinessPolicies(v *[]types.LBCookieStickinessPolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LBCookieStickinessPolicy + var sv []types.LBCookieStickinessPolicy if *v == nil { - sv = make([]*types.LBCookieStickinessPolicy, 0) + sv = make([]types.LBCookieStickinessPolicy, 0) } else { sv = *v } @@ -5369,11 +5383,13 @@ func awsAwsquery_deserializeDocumentLBCookieStickinessPolicies(v *[]*types.LBCoo } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LBCookieStickinessPolicy + var col types.LBCookieStickinessPolicy nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLBCookieStickinessPolicy(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLBCookieStickinessPolicy(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5386,23 +5402,25 @@ func awsAwsquery_deserializeDocumentLBCookieStickinessPolicies(v *[]*types.LBCoo return nil } -func awsAwsquery_deserializeDocumentLBCookieStickinessPoliciesUnwrapped(v *[]*types.LBCookieStickinessPolicy, decoder smithyxml.NodeDecoder) error { - var sv []*types.LBCookieStickinessPolicy +func awsAwsquery_deserializeDocumentLBCookieStickinessPoliciesUnwrapped(v *[]types.LBCookieStickinessPolicy, decoder smithyxml.NodeDecoder) error { + var sv []types.LBCookieStickinessPolicy if *v == nil { - sv = make([]*types.LBCookieStickinessPolicy, 0) + sv = make([]types.LBCookieStickinessPolicy, 0) } else { sv = *v } switch { default: - var mv *types.LBCookieStickinessPolicy + var mv types.LBCookieStickinessPolicy t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLBCookieStickinessPolicy(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLBCookieStickinessPolicy(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5444,7 +5462,7 @@ func awsAwsquery_deserializeDocumentLBCookieStickinessPolicy(v **types.LBCookieS if err != nil { return err } - sv.CookieExpirationPeriod = &i64 + sv.CookieExpirationPeriod = ptr.Int64(i64) } case strings.EqualFold("PolicyName", t.Name.Local): @@ -5460,7 +5478,7 @@ func awsAwsquery_deserializeDocumentLBCookieStickinessPolicy(v **types.LBCookieS } if val != nil { xtv := string(val) - sv.PolicyName = &xtv + sv.PolicyName = ptr.String(xtv) } default: @@ -5508,7 +5526,7 @@ func awsAwsquery_deserializeDocumentLimit(v **types.Limit, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Max = &xtv + sv.Max = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -5524,7 +5542,7 @@ func awsAwsquery_deserializeDocumentLimit(v **types.Limit, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -5537,13 +5555,13 @@ func awsAwsquery_deserializeDocumentLimit(v **types.Limit, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentLimits(v *[]*types.Limit, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLimits(v *[]types.Limit, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Limit + var sv []types.Limit if *v == nil { - sv = make([]*types.Limit, 0) + sv = make([]types.Limit, 0) } else { sv = *v } @@ -5559,11 +5577,13 @@ func awsAwsquery_deserializeDocumentLimits(v *[]*types.Limit, decoder smithyxml. } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Limit + var col types.Limit nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLimit(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLimit(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5576,23 +5596,25 @@ func awsAwsquery_deserializeDocumentLimits(v *[]*types.Limit, decoder smithyxml. return nil } -func awsAwsquery_deserializeDocumentLimitsUnwrapped(v *[]*types.Limit, decoder smithyxml.NodeDecoder) error { - var sv []*types.Limit +func awsAwsquery_deserializeDocumentLimitsUnwrapped(v *[]types.Limit, decoder smithyxml.NodeDecoder) error { + var sv []types.Limit if *v == nil { - sv = make([]*types.Limit, 0) + sv = make([]types.Limit, 0) } else { sv = *v } switch { default: - var mv *types.Limit + var mv types.Limit t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLimit(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLimit(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5634,7 +5656,7 @@ func awsAwsquery_deserializeDocumentListener(v **types.Listener, decoder smithyx if err != nil { return err } - sv.InstancePort = ptr.Int32(int32(i64)) + sv.InstancePort = int32(i64) } case strings.EqualFold("InstanceProtocol", t.Name.Local): @@ -5650,7 +5672,7 @@ func awsAwsquery_deserializeDocumentListener(v **types.Listener, decoder smithyx } if val != nil { xtv := string(val) - sv.InstanceProtocol = &xtv + sv.InstanceProtocol = ptr.String(xtv) } case strings.EqualFold("LoadBalancerPort", t.Name.Local): @@ -5667,7 +5689,7 @@ func awsAwsquery_deserializeDocumentListener(v **types.Listener, decoder smithyx if err != nil { return err } - sv.LoadBalancerPort = ptr.Int32(int32(i64)) + sv.LoadBalancerPort = int32(i64) } case strings.EqualFold("Protocol", t.Name.Local): @@ -5683,7 +5705,7 @@ func awsAwsquery_deserializeDocumentListener(v **types.Listener, decoder smithyx } if val != nil { xtv := string(val) - sv.Protocol = &xtv + sv.Protocol = ptr.String(xtv) } case strings.EqualFold("SSLCertificateId", t.Name.Local): @@ -5699,7 +5721,7 @@ func awsAwsquery_deserializeDocumentListener(v **types.Listener, decoder smithyx } if val != nil { xtv := string(val) - sv.SSLCertificateId = &xtv + sv.SSLCertificateId = ptr.String(xtv) } default: @@ -5756,13 +5778,13 @@ func awsAwsquery_deserializeDocumentListenerDescription(v **types.ListenerDescri return nil } -func awsAwsquery_deserializeDocumentListenerDescriptions(v *[]*types.ListenerDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentListenerDescriptions(v *[]types.ListenerDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ListenerDescription + var sv []types.ListenerDescription if *v == nil { - sv = make([]*types.ListenerDescription, 0) + sv = make([]types.ListenerDescription, 0) } else { sv = *v } @@ -5778,11 +5800,13 @@ func awsAwsquery_deserializeDocumentListenerDescriptions(v *[]*types.ListenerDes } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ListenerDescription + var col types.ListenerDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListenerDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentListenerDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5795,23 +5819,25 @@ func awsAwsquery_deserializeDocumentListenerDescriptions(v *[]*types.ListenerDes return nil } -func awsAwsquery_deserializeDocumentListenerDescriptionsUnwrapped(v *[]*types.ListenerDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.ListenerDescription +func awsAwsquery_deserializeDocumentListenerDescriptionsUnwrapped(v *[]types.ListenerDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.ListenerDescription if *v == nil { - sv = make([]*types.ListenerDescription, 0) + sv = make([]types.ListenerDescription, 0) } else { sv = *v } switch { default: - var mv *types.ListenerDescription + var mv types.ListenerDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListenerDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentListenerDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5852,7 +5878,7 @@ func awsAwsquery_deserializeDocumentListenerNotFoundException(v **types.Listener } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5900,7 +5926,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerAttributeNotFoundException(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6022,7 +6048,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerDescription(v **types.LoadBalanc } if val != nil { xtv := string(val) - sv.CanonicalHostedZoneName = &xtv + sv.CanonicalHostedZoneName = ptr.String(xtv) } case strings.EqualFold("CanonicalHostedZoneNameID", t.Name.Local): @@ -6038,7 +6064,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerDescription(v **types.LoadBalanc } if val != nil { xtv := string(val) - sv.CanonicalHostedZoneNameID = &xtv + sv.CanonicalHostedZoneNameID = ptr.String(xtv) } case strings.EqualFold("CreatedTime", t.Name.Local): @@ -6055,7 +6081,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerDescription(v **types.LoadBalanc if err != nil { return err } - sv.CreatedTime = &t + sv.CreatedTime = ptr.Time(t) } case strings.EqualFold("DNSName", t.Name.Local): @@ -6071,7 +6097,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerDescription(v **types.LoadBalanc } if val != nil { xtv := string(val) - sv.DNSName = &xtv + sv.DNSName = ptr.String(xtv) } case strings.EqualFold("HealthCheck", t.Name.Local): @@ -6105,7 +6131,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerDescription(v **types.LoadBalanc } if val != nil { xtv := string(val) - sv.LoadBalancerName = &xtv + sv.LoadBalancerName = ptr.String(xtv) } case strings.EqualFold("Policies", t.Name.Local): @@ -6127,7 +6153,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerDescription(v **types.LoadBalanc } if val != nil { xtv := string(val) - sv.Scheme = &xtv + sv.Scheme = ptr.String(xtv) } case strings.EqualFold("SecurityGroups", t.Name.Local): @@ -6161,7 +6187,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerDescription(v **types.LoadBalanc } if val != nil { xtv := string(val) - sv.VPCId = &xtv + sv.VPCId = ptr.String(xtv) } default: @@ -6174,13 +6200,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerDescription(v **types.LoadBalanc return nil } -func awsAwsquery_deserializeDocumentLoadBalancerDescriptions(v *[]*types.LoadBalancerDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLoadBalancerDescriptions(v *[]types.LoadBalancerDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LoadBalancerDescription + var sv []types.LoadBalancerDescription if *v == nil { - sv = make([]*types.LoadBalancerDescription, 0) + sv = make([]types.LoadBalancerDescription, 0) } else { sv = *v } @@ -6196,11 +6222,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerDescriptions(v *[]*types.LoadBal } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LoadBalancerDescription + var col types.LoadBalancerDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLoadBalancerDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6213,23 +6241,25 @@ func awsAwsquery_deserializeDocumentLoadBalancerDescriptions(v *[]*types.LoadBal return nil } -func awsAwsquery_deserializeDocumentLoadBalancerDescriptionsUnwrapped(v *[]*types.LoadBalancerDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.LoadBalancerDescription +func awsAwsquery_deserializeDocumentLoadBalancerDescriptionsUnwrapped(v *[]types.LoadBalancerDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.LoadBalancerDescription if *v == nil { - sv = make([]*types.LoadBalancerDescription, 0) + sv = make([]types.LoadBalancerDescription, 0) } else { sv = *v } switch { default: - var mv *types.LoadBalancerDescription + var mv types.LoadBalancerDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLoadBalancerDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6270,7 +6300,7 @@ func awsAwsquery_deserializeDocumentOperationNotPermittedException(v **types.Ope } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6368,7 +6398,7 @@ func awsAwsquery_deserializeDocumentPolicyAttributeDescription(v **types.PolicyA } if val != nil { xtv := string(val) - sv.AttributeName = &xtv + sv.AttributeName = ptr.String(xtv) } case strings.EqualFold("AttributeValue", t.Name.Local): @@ -6384,7 +6414,7 @@ func awsAwsquery_deserializeDocumentPolicyAttributeDescription(v **types.PolicyA } if val != nil { xtv := string(val) - sv.AttributeValue = &xtv + sv.AttributeValue = ptr.String(xtv) } default: @@ -6397,13 +6427,13 @@ func awsAwsquery_deserializeDocumentPolicyAttributeDescription(v **types.PolicyA return nil } -func awsAwsquery_deserializeDocumentPolicyAttributeDescriptions(v *[]*types.PolicyAttributeDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyAttributeDescriptions(v *[]types.PolicyAttributeDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PolicyAttributeDescription + var sv []types.PolicyAttributeDescription if *v == nil { - sv = make([]*types.PolicyAttributeDescription, 0) + sv = make([]types.PolicyAttributeDescription, 0) } else { sv = *v } @@ -6419,11 +6449,13 @@ func awsAwsquery_deserializeDocumentPolicyAttributeDescriptions(v *[]*types.Poli } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PolicyAttributeDescription + var col types.PolicyAttributeDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyAttributeDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPolicyAttributeDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6436,23 +6468,25 @@ func awsAwsquery_deserializeDocumentPolicyAttributeDescriptions(v *[]*types.Poli return nil } -func awsAwsquery_deserializeDocumentPolicyAttributeDescriptionsUnwrapped(v *[]*types.PolicyAttributeDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.PolicyAttributeDescription +func awsAwsquery_deserializeDocumentPolicyAttributeDescriptionsUnwrapped(v *[]types.PolicyAttributeDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.PolicyAttributeDescription if *v == nil { - sv = make([]*types.PolicyAttributeDescription, 0) + sv = make([]types.PolicyAttributeDescription, 0) } else { sv = *v } switch { default: - var mv *types.PolicyAttributeDescription + var mv types.PolicyAttributeDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyAttributeDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPolicyAttributeDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6493,7 +6527,7 @@ func awsAwsquery_deserializeDocumentPolicyAttributeTypeDescription(v **types.Pol } if val != nil { xtv := string(val) - sv.AttributeName = &xtv + sv.AttributeName = ptr.String(xtv) } case strings.EqualFold("AttributeType", t.Name.Local): @@ -6509,7 +6543,7 @@ func awsAwsquery_deserializeDocumentPolicyAttributeTypeDescription(v **types.Pol } if val != nil { xtv := string(val) - sv.AttributeType = &xtv + sv.AttributeType = ptr.String(xtv) } case strings.EqualFold("Cardinality", t.Name.Local): @@ -6525,7 +6559,7 @@ func awsAwsquery_deserializeDocumentPolicyAttributeTypeDescription(v **types.Pol } if val != nil { xtv := string(val) - sv.Cardinality = &xtv + sv.Cardinality = ptr.String(xtv) } case strings.EqualFold("DefaultValue", t.Name.Local): @@ -6541,7 +6575,7 @@ func awsAwsquery_deserializeDocumentPolicyAttributeTypeDescription(v **types.Pol } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -6557,7 +6591,7 @@ func awsAwsquery_deserializeDocumentPolicyAttributeTypeDescription(v **types.Pol } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } default: @@ -6570,13 +6604,13 @@ func awsAwsquery_deserializeDocumentPolicyAttributeTypeDescription(v **types.Pol return nil } -func awsAwsquery_deserializeDocumentPolicyAttributeTypeDescriptions(v *[]*types.PolicyAttributeTypeDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyAttributeTypeDescriptions(v *[]types.PolicyAttributeTypeDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PolicyAttributeTypeDescription + var sv []types.PolicyAttributeTypeDescription if *v == nil { - sv = make([]*types.PolicyAttributeTypeDescription, 0) + sv = make([]types.PolicyAttributeTypeDescription, 0) } else { sv = *v } @@ -6592,11 +6626,13 @@ func awsAwsquery_deserializeDocumentPolicyAttributeTypeDescriptions(v *[]*types. } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PolicyAttributeTypeDescription + var col types.PolicyAttributeTypeDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyAttributeTypeDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPolicyAttributeTypeDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6609,23 +6645,25 @@ func awsAwsquery_deserializeDocumentPolicyAttributeTypeDescriptions(v *[]*types. return nil } -func awsAwsquery_deserializeDocumentPolicyAttributeTypeDescriptionsUnwrapped(v *[]*types.PolicyAttributeTypeDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.PolicyAttributeTypeDescription +func awsAwsquery_deserializeDocumentPolicyAttributeTypeDescriptionsUnwrapped(v *[]types.PolicyAttributeTypeDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.PolicyAttributeTypeDescription if *v == nil { - sv = make([]*types.PolicyAttributeTypeDescription, 0) + sv = make([]types.PolicyAttributeTypeDescription, 0) } else { sv = *v } switch { default: - var mv *types.PolicyAttributeTypeDescription + var mv types.PolicyAttributeTypeDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyAttributeTypeDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPolicyAttributeTypeDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6672,7 +6710,7 @@ func awsAwsquery_deserializeDocumentPolicyDescription(v **types.PolicyDescriptio } if val != nil { xtv := string(val) - sv.PolicyName = &xtv + sv.PolicyName = ptr.String(xtv) } case strings.EqualFold("PolicyTypeName", t.Name.Local): @@ -6688,7 +6726,7 @@ func awsAwsquery_deserializeDocumentPolicyDescription(v **types.PolicyDescriptio } if val != nil { xtv := string(val) - sv.PolicyTypeName = &xtv + sv.PolicyTypeName = ptr.String(xtv) } default: @@ -6701,13 +6739,13 @@ func awsAwsquery_deserializeDocumentPolicyDescription(v **types.PolicyDescriptio return nil } -func awsAwsquery_deserializeDocumentPolicyDescriptions(v *[]*types.PolicyDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyDescriptions(v *[]types.PolicyDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PolicyDescription + var sv []types.PolicyDescription if *v == nil { - sv = make([]*types.PolicyDescription, 0) + sv = make([]types.PolicyDescription, 0) } else { sv = *v } @@ -6723,11 +6761,13 @@ func awsAwsquery_deserializeDocumentPolicyDescriptions(v *[]*types.PolicyDescrip } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PolicyDescription + var col types.PolicyDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPolicyDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6740,35 +6780,37 @@ func awsAwsquery_deserializeDocumentPolicyDescriptions(v *[]*types.PolicyDescrip return nil } -func awsAwsquery_deserializeDocumentPolicyDescriptionsUnwrapped(v *[]*types.PolicyDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.PolicyDescription +func awsAwsquery_deserializeDocumentPolicyDescriptionsUnwrapped(v *[]types.PolicyDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.PolicyDescription if *v == nil { - sv = make([]*types.PolicyDescription, 0) + sv = make([]types.PolicyDescription, 0) } else { sv = *v } switch { default: - var mv *types.PolicyDescription + var mv types.PolicyDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPolicyDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentPolicyNames(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyNames(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -6786,20 +6828,17 @@ func awsAwsquery_deserializeDocumentPolicyNames(v *[]*string, decoder smithyxml. decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -6812,17 +6851,17 @@ func awsAwsquery_deserializeDocumentPolicyNames(v *[]*string, decoder smithyxml. return nil } -func awsAwsquery_deserializeDocumentPolicyNamesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentPolicyNamesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -6830,14 +6869,11 @@ func awsAwsquery_deserializeDocumentPolicyNamesUnwrapped(v *[]*string, decoder s return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -6879,7 +6915,7 @@ func awsAwsquery_deserializeDocumentPolicyNotFoundException(v **types.PolicyNotF } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6927,7 +6963,7 @@ func awsAwsquery_deserializeDocumentPolicyTypeDescription(v **types.PolicyTypeDe } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("PolicyAttributeTypeDescriptions", t.Name.Local): @@ -6949,7 +6985,7 @@ func awsAwsquery_deserializeDocumentPolicyTypeDescription(v **types.PolicyTypeDe } if val != nil { xtv := string(val) - sv.PolicyTypeName = &xtv + sv.PolicyTypeName = ptr.String(xtv) } default: @@ -6962,13 +6998,13 @@ func awsAwsquery_deserializeDocumentPolicyTypeDescription(v **types.PolicyTypeDe return nil } -func awsAwsquery_deserializeDocumentPolicyTypeDescriptions(v *[]*types.PolicyTypeDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyTypeDescriptions(v *[]types.PolicyTypeDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PolicyTypeDescription + var sv []types.PolicyTypeDescription if *v == nil { - sv = make([]*types.PolicyTypeDescription, 0) + sv = make([]types.PolicyTypeDescription, 0) } else { sv = *v } @@ -6984,11 +7020,13 @@ func awsAwsquery_deserializeDocumentPolicyTypeDescriptions(v *[]*types.PolicyTyp } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PolicyTypeDescription + var col types.PolicyTypeDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyTypeDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPolicyTypeDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7001,23 +7039,25 @@ func awsAwsquery_deserializeDocumentPolicyTypeDescriptions(v *[]*types.PolicyTyp return nil } -func awsAwsquery_deserializeDocumentPolicyTypeDescriptionsUnwrapped(v *[]*types.PolicyTypeDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.PolicyTypeDescription +func awsAwsquery_deserializeDocumentPolicyTypeDescriptionsUnwrapped(v *[]types.PolicyTypeDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.PolicyTypeDescription if *v == nil { - sv = make([]*types.PolicyTypeDescription, 0) + sv = make([]types.PolicyTypeDescription, 0) } else { sv = *v } switch { default: - var mv *types.PolicyTypeDescription + var mv types.PolicyTypeDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyTypeDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPolicyTypeDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -7058,7 +7098,7 @@ func awsAwsquery_deserializeDocumentPolicyTypeNotFoundException(v **types.Policy } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7071,13 +7111,13 @@ func awsAwsquery_deserializeDocumentPolicyTypeNotFoundException(v **types.Policy return nil } -func awsAwsquery_deserializeDocumentSecurityGroups(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSecurityGroups(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -7095,20 +7135,17 @@ func awsAwsquery_deserializeDocumentSecurityGroups(v *[]*string, decoder smithyx decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -7121,17 +7158,17 @@ func awsAwsquery_deserializeDocumentSecurityGroups(v *[]*string, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentSecurityGroupsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentSecurityGroupsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7139,14 +7176,11 @@ func awsAwsquery_deserializeDocumentSecurityGroupsUnwrapped(v *[]*string, decode return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -7188,7 +7222,7 @@ func awsAwsquery_deserializeDocumentSourceSecurityGroup(v **types.SourceSecurity } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } case strings.EqualFold("OwnerAlias", t.Name.Local): @@ -7204,7 +7238,7 @@ func awsAwsquery_deserializeDocumentSourceSecurityGroup(v **types.SourceSecurity } if val != nil { xtv := string(val) - sv.OwnerAlias = &xtv + sv.OwnerAlias = ptr.String(xtv) } default: @@ -7252,7 +7286,7 @@ func awsAwsquery_deserializeDocumentSubnetNotFoundException(v **types.SubnetNotF } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7265,13 +7299,13 @@ func awsAwsquery_deserializeDocumentSubnetNotFoundException(v **types.SubnetNotF return nil } -func awsAwsquery_deserializeDocumentSubnets(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSubnets(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -7289,20 +7323,17 @@ func awsAwsquery_deserializeDocumentSubnets(v *[]*string, decoder smithyxml.Node decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -7315,17 +7346,17 @@ func awsAwsquery_deserializeDocumentSubnets(v *[]*string, decoder smithyxml.Node return nil } -func awsAwsquery_deserializeDocumentSubnetsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentSubnetsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7333,14 +7364,11 @@ func awsAwsquery_deserializeDocumentSubnetsUnwrapped(v *[]*string, decoder smith return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -7382,7 +7410,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -7398,7 +7426,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -7446,7 +7474,7 @@ func awsAwsquery_deserializeDocumentTagDescription(v **types.TagDescription, dec } if val != nil { xtv := string(val) - sv.LoadBalancerName = &xtv + sv.LoadBalancerName = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -7465,13 +7493,13 @@ func awsAwsquery_deserializeDocumentTagDescription(v **types.TagDescription, dec return nil } -func awsAwsquery_deserializeDocumentTagDescriptions(v *[]*types.TagDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagDescriptions(v *[]types.TagDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TagDescription + var sv []types.TagDescription if *v == nil { - sv = make([]*types.TagDescription, 0) + sv = make([]types.TagDescription, 0) } else { sv = *v } @@ -7487,11 +7515,13 @@ func awsAwsquery_deserializeDocumentTagDescriptions(v *[]*types.TagDescription, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.TagDescription + var col types.TagDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTagDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTagDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7504,35 +7534,37 @@ func awsAwsquery_deserializeDocumentTagDescriptions(v *[]*types.TagDescription, return nil } -func awsAwsquery_deserializeDocumentTagDescriptionsUnwrapped(v *[]*types.TagDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.TagDescription +func awsAwsquery_deserializeDocumentTagDescriptionsUnwrapped(v *[]types.TagDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.TagDescription if *v == nil { - sv = make([]*types.TagDescription, 0) + sv = make([]types.TagDescription, 0) } else { sv = *v } switch { default: - var mv *types.TagDescription + var mv types.TagDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTagDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTagDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -7548,11 +7580,13 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7565,23 +7599,25 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -7622,7 +7658,7 @@ func awsAwsquery_deserializeDocumentTooManyAccessPointsException(v **types.TooMa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7670,7 +7706,7 @@ func awsAwsquery_deserializeDocumentTooManyPoliciesException(v **types.TooManyPo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7718,7 +7754,7 @@ func awsAwsquery_deserializeDocumentTooManyTagsException(v **types.TooManyTagsEx } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7766,7 +7802,7 @@ func awsAwsquery_deserializeDocumentUnsupportedProtocolException(v **types.Unsup } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8056,7 +8092,7 @@ func awsAwsquery_deserializeOpDocumentCreateLoadBalancerOutput(v **CreateLoadBal } if val != nil { xtv := string(val) - sv.DNSName = &xtv + sv.DNSName = ptr.String(xtv) } default: @@ -8276,7 +8312,7 @@ func awsAwsquery_deserializeOpDocumentDescribeAccountLimitsOutput(v **DescribeAc } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } default: @@ -8482,7 +8518,7 @@ func awsAwsquery_deserializeOpDocumentDescribeLoadBalancersOutput(v **DescribeLo } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } default: @@ -8688,7 +8724,7 @@ func awsAwsquery_deserializeOpDocumentModifyLoadBalancerAttributesOutput(v **Mod } if val != nil { xtv := string(val) - sv.LoadBalancerName = &xtv + sv.LoadBalancerName = ptr.String(xtv) } default: diff --git a/service/elasticloadbalancing/go.mod b/service/elasticloadbalancing/go.mod index 6162f6a638e..e9ccad330b0 100644 --- a/service/elasticloadbalancing/go.mod +++ b/service/elasticloadbalancing/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/elasticloadbalancing/serializers.go b/service/elasticloadbalancing/serializers.go index 23814119413..3cb1183c9c9 100644 --- a/service/elasticloadbalancing/serializers.go +++ b/service/elasticloadbalancing/serializers.go @@ -1617,9 +1617,9 @@ func awsAwsquery_serializeDocumentAccessLog(v *types.AccessLog, value query.Valu objectKey.Integer(*v.EmitInterval) } - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } if v.S3BucketName != nil { @@ -1652,36 +1652,30 @@ func awsAwsquery_serializeDocumentAdditionalAttribute(v *types.AdditionalAttribu return nil } -func awsAwsquery_serializeDocumentAdditionalAttributes(v []*types.AdditionalAttribute, value query.Value) error { +func awsAwsquery_serializeDocumentAdditionalAttributes(v []types.AdditionalAttribute, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentAdditionalAttribute(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentAdditionalAttribute(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentAvailabilityZones(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAvailabilityZones(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1690,9 +1684,9 @@ func awsAwsquery_serializeDocumentConnectionDraining(v *types.ConnectionDraining object := value.Object() _ = object - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } if v.Timeout != nil { @@ -1719,9 +1713,9 @@ func awsAwsquery_serializeDocumentCrossZoneLoadBalancing(v *types.CrossZoneLoadB object := value.Object() _ = object - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } return nil @@ -1731,14 +1725,14 @@ func awsAwsquery_serializeDocumentHealthCheck(v *types.HealthCheck, value query. object := value.Object() _ = object - if v.HealthyThreshold != nil { + if v.HealthyThreshold != 0 { objectKey := object.Key("HealthyThreshold") - objectKey.Integer(*v.HealthyThreshold) + objectKey.Integer(v.HealthyThreshold) } - if v.Interval != nil { + if v.Interval != 0 { objectKey := object.Key("Interval") - objectKey.Integer(*v.Interval) + objectKey.Integer(v.Interval) } if v.Target != nil { @@ -1746,14 +1740,14 @@ func awsAwsquery_serializeDocumentHealthCheck(v *types.HealthCheck, value query. objectKey.String(*v.Target) } - if v.Timeout != nil { + if v.Timeout != 0 { objectKey := object.Key("Timeout") - objectKey.Integer(*v.Timeout) + objectKey.Integer(v.Timeout) } - if v.UnhealthyThreshold != nil { + if v.UnhealthyThreshold != 0 { objectKey := object.Key("UnhealthyThreshold") - objectKey.Integer(*v.UnhealthyThreshold) + objectKey.Integer(v.UnhealthyThreshold) } return nil @@ -1771,18 +1765,15 @@ func awsAwsquery_serializeDocumentInstance(v *types.Instance, value query.Value) return nil } -func awsAwsquery_serializeDocumentInstances(v []*types.Instance, value query.Value) error { +func awsAwsquery_serializeDocumentInstances(v []types.Instance, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentInstance(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentInstance(&v[i], av); err != nil { return err } } @@ -1793,9 +1784,9 @@ func awsAwsquery_serializeDocumentListener(v *types.Listener, value query.Value) object := value.Object() _ = object - if v.InstancePort != nil { + if v.InstancePort != 0 { objectKey := object.Key("InstancePort") - objectKey.Integer(*v.InstancePort) + objectKey.Integer(v.InstancePort) } if v.InstanceProtocol != nil { @@ -1803,9 +1794,9 @@ func awsAwsquery_serializeDocumentListener(v *types.Listener, value query.Value) objectKey.String(*v.InstanceProtocol) } - if v.LoadBalancerPort != nil { + if v.LoadBalancerPort != 0 { objectKey := object.Key("LoadBalancerPort") - objectKey.Integer(*v.LoadBalancerPort) + objectKey.Integer(v.LoadBalancerPort) } if v.Protocol != nil { @@ -1821,18 +1812,15 @@ func awsAwsquery_serializeDocumentListener(v *types.Listener, value query.Value) return nil } -func awsAwsquery_serializeDocumentListeners(v []*types.Listener, value query.Value) error { +func awsAwsquery_serializeDocumentListeners(v []types.Listener, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentListener(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentListener(&v[i], av); err != nil { return err } } @@ -1881,34 +1869,28 @@ func awsAwsquery_serializeDocumentLoadBalancerAttributes(v *types.LoadBalancerAt return nil } -func awsAwsquery_serializeDocumentLoadBalancerNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentLoadBalancerNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentLoadBalancerNamesMax20(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentLoadBalancerNamesMax20(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1930,100 +1912,82 @@ func awsAwsquery_serializeDocumentPolicyAttribute(v *types.PolicyAttribute, valu return nil } -func awsAwsquery_serializeDocumentPolicyAttributes(v []*types.PolicyAttribute, value query.Value) error { +func awsAwsquery_serializeDocumentPolicyAttributes(v []types.PolicyAttribute, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentPolicyAttribute(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentPolicyAttribute(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentPolicyNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentPolicyNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentPolicyTypeNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentPolicyTypeNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentPorts(v []*int32, value query.Value) error { +func awsAwsquery_serializeDocumentPorts(v []int32, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.Integer(*v[i]) + av.Integer(v[i]) } return nil } -func awsAwsquery_serializeDocumentSecurityGroups(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSecurityGroups(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentSubnets(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSubnets(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2045,18 +2009,15 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTagKeyList(v []*types.TagKeyOnly, value query.Value) error { +func awsAwsquery_serializeDocumentTagKeyList(v []types.TagKeyOnly, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTagKeyOnly(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTagKeyOnly(&v[i], av); err != nil { return err } } @@ -2075,18 +2036,15 @@ func awsAwsquery_serializeDocumentTagKeyOnly(v *types.TagKeyOnly, value query.Va return nil } -func awsAwsquery_serializeDocumentTagList(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTagList(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2626,9 +2584,9 @@ func awsAwsquery_serializeOpDocumentSetLoadBalancerListenerSSLCertificateInput(v objectKey.String(*v.LoadBalancerName) } - if v.LoadBalancerPort != nil { + if v.LoadBalancerPort != 0 { objectKey := object.Key("LoadBalancerPort") - objectKey.Integer(*v.LoadBalancerPort) + objectKey.Integer(v.LoadBalancerPort) } if v.SSLCertificateId != nil { @@ -2672,9 +2630,9 @@ func awsAwsquery_serializeOpDocumentSetLoadBalancerPoliciesOfListenerInput(v *Se objectKey.String(*v.LoadBalancerName) } - if v.LoadBalancerPort != nil { + if v.LoadBalancerPort != 0 { objectKey := object.Key("LoadBalancerPort") - objectKey.Integer(*v.LoadBalancerPort) + objectKey.Integer(v.LoadBalancerPort) } if v.PolicyNames != nil { diff --git a/service/elasticloadbalancing/types/types.go b/service/elasticloadbalancing/types/types.go index 417d3488100..04dd4583d3f 100644 --- a/service/elasticloadbalancing/types/types.go +++ b/service/elasticloadbalancing/types/types.go @@ -12,7 +12,7 @@ type AccessLog struct { // Specifies whether access logs are enabled for the load balancer. // // This member is required. - Enabled *bool + Enabled bool // The interval for publishing the access logs. You can specify an interval of // either 5 minutes or 60 minutes. Default: 60 minutes @@ -57,10 +57,10 @@ type AppCookieStickinessPolicy struct { type BackendServerDescription struct { // The port on which the EC2 instance is listening. - InstancePort *int32 + InstancePort int32 // The names of the policies enabled for the EC2 instance. - PolicyNames []*string + PolicyNames []string } // Information about the ConnectionDraining attribute. @@ -69,7 +69,7 @@ type ConnectionDraining struct { // Specifies whether connection draining is enabled for the load balancer. // // This member is required. - Enabled *bool + Enabled bool // The maximum time, in seconds, to keep the existing connections open before // deregistering the instances. @@ -92,7 +92,7 @@ type CrossZoneLoadBalancing struct { // Specifies whether cross-zone load balancing is enabled for the load balancer. // // This member is required. - Enabled *bool + Enabled bool } // Information about a health check. @@ -102,13 +102,13 @@ type HealthCheck struct { // instance to the Healthy state. // // This member is required. - HealthyThreshold *int32 + HealthyThreshold int32 // The approximate interval, in seconds, between health checks of an individual // instance. // // This member is required. - Interval *int32 + Interval int32 // The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The // range of valid ports is one (1) through 65535. TCP is the default, specified as @@ -130,13 +130,13 @@ type HealthCheck struct { // check. This value must be less than the Interval value. // // This member is required. - Timeout *int32 + Timeout int32 // The number of consecutive health check failures required before moving the // instance to the Unhealthy state. // // This member is required. - UnhealthyThreshold *int32 + UnhealthyThreshold int32 } // The ID of an EC2 instance. @@ -238,14 +238,14 @@ type Listener struct { // The port on which the instance is listening. // // This member is required. - InstancePort *int32 + InstancePort int32 // The port on which the load balancer is listening. On EC2-VPC, you can specify // any port from the range 1-65535. On EC2-Classic, you can specify any port from // the following list: 25, 80, 443, 465, 587, 1024-65535. // // This member is required. - LoadBalancerPort *int32 + LoadBalancerPort int32 // The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or // SSL. @@ -274,7 +274,7 @@ type ListenerDescription struct { Listener *Listener // The policies. If there are no policies enabled, the list is empty. - PolicyNames []*string + PolicyNames []string } // The attributes for a load balancer. @@ -288,7 +288,7 @@ type LoadBalancerAttributes struct { AccessLog *AccessLog // Any additional attributes. - AdditionalAttributes []*AdditionalAttribute + AdditionalAttributes []AdditionalAttribute // If enabled, the load balancer allows existing requests to complete before the // load balancer shifts traffic away from a deregistered or unhealthy instance. For @@ -318,10 +318,10 @@ type LoadBalancerAttributes struct { type LoadBalancerDescription struct { // The Availability Zones for the load balancer. - AvailabilityZones []*string + AvailabilityZones []string // Information about your EC2 instances. - BackendServerDescriptions []*BackendServerDescription + BackendServerDescriptions []BackendServerDescription // The DNS name of the load balancer. For more information, see Configure a Custom // Domain Name @@ -342,10 +342,10 @@ type LoadBalancerDescription struct { HealthCheck *HealthCheck // The IDs of the instances for the load balancer. - Instances []*Instance + Instances []Instance // The listeners for the load balancer. - ListenerDescriptions []*ListenerDescription + ListenerDescriptions []ListenerDescription // The name of the load balancer. LoadBalancerName *string @@ -361,7 +361,7 @@ type LoadBalancerDescription struct { // The security groups for the load balancer. Valid only for load balancers in a // VPC. - SecurityGroups []*string + SecurityGroups []string // The security group for the load balancer, which you can use as part of your // inbound rules for your registered instances. To only allow traffic from load @@ -370,7 +370,7 @@ type LoadBalancerDescription struct { SourceSecurityGroup *SourceSecurityGroup // The IDs of the subnets for the load balancer. - Subnets []*string + Subnets []string // The ID of the VPC for the load balancer. VPCId *string @@ -380,13 +380,13 @@ type LoadBalancerDescription struct { type Policies struct { // The stickiness policies created using CreateAppCookieStickinessPolicy. - AppCookieStickinessPolicies []*AppCookieStickinessPolicy + AppCookieStickinessPolicies []AppCookieStickinessPolicy // The stickiness policies created using CreateLBCookieStickinessPolicy. - LBCookieStickinessPolicies []*LBCookieStickinessPolicy + LBCookieStickinessPolicies []LBCookieStickinessPolicy // The policies other than the stickiness policies. - OtherPolicies []*string + OtherPolicies []string } // Information about a policy attribute. @@ -443,7 +443,7 @@ type PolicyAttributeTypeDescription struct { type PolicyDescription struct { // The policy attributes. - PolicyAttributeDescriptions []*PolicyAttributeDescription + PolicyAttributeDescriptions []PolicyAttributeDescription // The name of the policy. PolicyName *string @@ -460,7 +460,7 @@ type PolicyTypeDescription struct { // The description of the policy attributes associated with the policies defined by // Elastic Load Balancing. - PolicyAttributeTypeDescriptions []*PolicyAttributeTypeDescription + PolicyAttributeTypeDescriptions []PolicyAttributeTypeDescription // The name of the policy type. PolicyTypeName *string @@ -495,7 +495,7 @@ type TagDescription struct { LoadBalancerName *string // The tags. - Tags []*Tag + Tags []Tag } // The key of a tag. diff --git a/service/elasticloadbalancing/validators.go b/service/elasticloadbalancing/validators.go index 1bb3936843e..46648eae94d 100644 --- a/service/elasticloadbalancing/validators.go +++ b/service/elasticloadbalancing/validators.go @@ -615,9 +615,6 @@ func validateAccessLog(v *types.AccessLog) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "AccessLog"} - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -630,9 +627,6 @@ func validateConnectionDraining(v *types.ConnectionDraining) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ConnectionDraining"} - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -660,9 +654,6 @@ func validateCrossZoneLoadBalancing(v *types.CrossZoneLoadBalancing) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CrossZoneLoadBalancing"} - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -675,21 +666,9 @@ func validateHealthCheck(v *types.HealthCheck) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "HealthCheck"} - if v.HealthyThreshold == nil { - invalidParams.Add(smithy.NewErrParamRequired("HealthyThreshold")) - } - if v.UnhealthyThreshold == nil { - invalidParams.Add(smithy.NewErrParamRequired("UnhealthyThreshold")) - } if v.Target == nil { invalidParams.Add(smithy.NewErrParamRequired("Target")) } - if v.Interval == nil { - invalidParams.Add(smithy.NewErrParamRequired("Interval")) - } - if v.Timeout == nil { - invalidParams.Add(smithy.NewErrParamRequired("Timeout")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -702,12 +681,6 @@ func validateListener(v *types.Listener) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "Listener"} - if v.LoadBalancerPort == nil { - invalidParams.Add(smithy.NewErrParamRequired("LoadBalancerPort")) - } - if v.InstancePort == nil { - invalidParams.Add(smithy.NewErrParamRequired("InstancePort")) - } if v.Protocol == nil { invalidParams.Add(smithy.NewErrParamRequired("Protocol")) } @@ -718,13 +691,13 @@ func validateListener(v *types.Listener) error { } } -func validateListeners(v []*types.Listener) error { +func validateListeners(v []types.Listener) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Listeners"} for i := range v { - if err := validateListener(v[i]); err != nil { + if err := validateListener(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -782,13 +755,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1219,9 +1192,6 @@ func validateOpSetLoadBalancerListenerSSLCertificateInput(v *SetLoadBalancerList return nil } invalidParams := smithy.InvalidParamsError{Context: "SetLoadBalancerListenerSSLCertificateInput"} - if v.LoadBalancerPort == nil { - invalidParams.Add(smithy.NewErrParamRequired("LoadBalancerPort")) - } if v.SSLCertificateId == nil { invalidParams.Add(smithy.NewErrParamRequired("SSLCertificateId")) } @@ -1267,9 +1237,6 @@ func validateOpSetLoadBalancerPoliciesOfListenerInput(v *SetLoadBalancerPolicies if v.LoadBalancerName == nil { invalidParams.Add(smithy.NewErrParamRequired("LoadBalancerName")) } - if v.LoadBalancerPort == nil { - invalidParams.Add(smithy.NewErrParamRequired("LoadBalancerPort")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/elasticloadbalancingv2/api_op_AddListenerCertificates.go b/service/elasticloadbalancingv2/api_op_AddListenerCertificates.go index 00ea908a985..a3451365be4 100644 --- a/service/elasticloadbalancingv2/api_op_AddListenerCertificates.go +++ b/service/elasticloadbalancingv2/api_op_AddListenerCertificates.go @@ -41,7 +41,7 @@ type AddListenerCertificatesInput struct { // CertificateArn to the certificate ARN but do not set IsDefault. // // This member is required. - Certificates []*types.Certificate + Certificates []types.Certificate // The Amazon Resource Name (ARN) of the listener. // @@ -52,7 +52,7 @@ type AddListenerCertificatesInput struct { type AddListenerCertificatesOutput struct { // Information about the certificates in the certificate list. - Certificates []*types.Certificate + Certificates []types.Certificate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_AddTags.go b/service/elasticloadbalancingv2/api_op_AddTags.go index 40e6d33074a..8d6e3b7dc98 100644 --- a/service/elasticloadbalancingv2/api_op_AddTags.go +++ b/service/elasticloadbalancingv2/api_op_AddTags.go @@ -37,12 +37,12 @@ type AddTagsInput struct { // The Amazon Resource Name (ARN) of the resource. // // This member is required. - ResourceArns []*string + ResourceArns []string // The tags. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type AddTagsOutput struct { diff --git a/service/elasticloadbalancingv2/api_op_CreateListener.go b/service/elasticloadbalancingv2/api_op_CreateListener.go index f5122804b25..eae8f5c5a94 100644 --- a/service/elasticloadbalancingv2/api_op_CreateListener.go +++ b/service/elasticloadbalancingv2/api_op_CreateListener.go @@ -44,7 +44,7 @@ type CreateListenerInput struct { // The actions for the default rule. // // This member is required. - DefaultActions []*types.Action + DefaultActions []types.Action // The Amazon Resource Name (ARN) of the load balancer. // @@ -81,13 +81,13 @@ type CreateListenerInput struct { // For more information, see ALPN Policies // (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html#alpn-policies) // in the Network Load Balancers Guide. - AlpnPolicy []*string + AlpnPolicy []string // [HTTPS and TLS listeners] The default certificate for the listener. You must // provide exactly one certificate. Set CertificateArn to the certificate ARN but // do not set IsDefault. To create a certificate list for the listener, use // AddListenerCertificates. - Certificates []*types.Certificate + Certificates []types.Certificate // [HTTPS and TLS listeners] The security policy that defines which protocols and // ciphers are supported. The following are the possible values: @@ -124,13 +124,13 @@ type CreateListenerInput struct { SslPolicy *string // The tags to assign to the listener. - Tags []*types.Tag + Tags []types.Tag } type CreateListenerOutput struct { // Information about the listener. - Listeners []*types.Listener + Listeners []types.Listener // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_CreateLoadBalancer.go b/service/elasticloadbalancingv2/api_op_CreateLoadBalancer.go index 3ef71516b7f..e504d2031b6 100644 --- a/service/elasticloadbalancingv2/api_op_CreateLoadBalancer.go +++ b/service/elasticloadbalancingv2/api_op_CreateLoadBalancer.go @@ -77,7 +77,7 @@ type CreateLoadBalancerInput struct { // [Application Load Balancers] The IDs of the security groups for the load // balancer. - SecurityGroups []*string + SecurityGroups []string // The IDs of the public subnets. You can specify only one subnet per Availability // Zone. You must specify either subnets or subnet mappings. [Application Load @@ -90,7 +90,7 @@ type CreateLoadBalancerInput struct { // addresses for your internet-facing load balancer. For internal load balancers, // you can specify one private IP address per subnet from the IPv4 range of the // subnet. - SubnetMappings []*types.SubnetMapping + SubnetMappings []types.SubnetMapping // The IDs of the public subnets. You can specify only one subnet per Availability // Zone. You must specify either subnets or subnet mappings. [Application Load @@ -99,10 +99,10 @@ type CreateLoadBalancerInput struct { // [Application Load Balancers on Local Zones] You can specify subnets from one or // more Local Zones. [Network Load Balancers] You can specify subnets from one or // more Availability Zones. - Subnets []*string + Subnets []string // The tags to assign to the load balancer. - Tags []*types.Tag + Tags []types.Tag // The type of load balancer. The default is application. Type types.LoadBalancerTypeEnum @@ -111,7 +111,7 @@ type CreateLoadBalancerInput struct { type CreateLoadBalancerOutput struct { // Information about the load balancer. - LoadBalancers []*types.LoadBalancer + LoadBalancers []types.LoadBalancer // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_CreateRule.go b/service/elasticloadbalancingv2/api_op_CreateRule.go index c5873d36404..38632d8cb30 100644 --- a/service/elasticloadbalancingv2/api_op_CreateRule.go +++ b/service/elasticloadbalancingv2/api_op_CreateRule.go @@ -41,12 +41,12 @@ type CreateRuleInput struct { // The actions. // // This member is required. - Actions []*types.Action + Actions []types.Action // The conditions. // // This member is required. - Conditions []*types.RuleCondition + Conditions []types.RuleCondition // The Amazon Resource Name (ARN) of the listener. // @@ -59,13 +59,13 @@ type CreateRuleInput struct { Priority *int32 // The tags to assign to the rule. - Tags []*types.Tag + Tags []types.Tag } type CreateRuleOutput struct { // Information about the rule. - Rules []*types.Rule + Rules []types.Rule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_CreateTargetGroup.go b/service/elasticloadbalancingv2/api_op_CreateTargetGroup.go index 8e734cabba9..661c4de1823 100644 --- a/service/elasticloadbalancingv2/api_op_CreateTargetGroup.go +++ b/service/elasticloadbalancingv2/api_op_CreateTargetGroup.go @@ -114,7 +114,7 @@ type CreateTargetGroupInput struct { ProtocolVersion *string // The tags to assign to the target group. - Tags []*types.Tag + Tags []types.Tag // The type of target that you must specify when registering targets with this // target group. You can't specify targets for a target group using more than one @@ -147,7 +147,7 @@ type CreateTargetGroupInput struct { type CreateTargetGroupOutput struct { // Information about the target group. - TargetGroups []*types.TargetGroup + TargetGroups []types.TargetGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_DeregisterTargets.go b/service/elasticloadbalancingv2/api_op_DeregisterTargets.go index 4cb42b72fea..a3b89f6833a 100644 --- a/service/elasticloadbalancingv2/api_op_DeregisterTargets.go +++ b/service/elasticloadbalancingv2/api_op_DeregisterTargets.go @@ -39,7 +39,7 @@ type DeregisterTargetsInput struct { // must specify both the target ID and the port when you deregister it. // // This member is required. - Targets []*types.TargetDescription + Targets []types.TargetDescription } type DeregisterTargetsOutput struct { diff --git a/service/elasticloadbalancingv2/api_op_DescribeAccountLimits.go b/service/elasticloadbalancingv2/api_op_DescribeAccountLimits.go index bcb5a7bf9f6..e0ad14434e7 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeAccountLimits.go +++ b/service/elasticloadbalancingv2/api_op_DescribeAccountLimits.go @@ -45,7 +45,7 @@ type DescribeAccountLimitsInput struct { type DescribeAccountLimitsOutput struct { // Information about the limits. - Limits []*types.Limit + Limits []types.Limit // If there are additional results, this is the marker for the next set of results. // Otherwise, this is null. diff --git a/service/elasticloadbalancingv2/api_op_DescribeListenerCertificates.go b/service/elasticloadbalancingv2/api_op_DescribeListenerCertificates.go index 42d2858a23c..039d1638ad9 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeListenerCertificates.go +++ b/service/elasticloadbalancingv2/api_op_DescribeListenerCertificates.go @@ -50,7 +50,7 @@ type DescribeListenerCertificatesInput struct { type DescribeListenerCertificatesOutput struct { // Information about the certificates. - Certificates []*types.Certificate + Certificates []types.Certificate // If there are additional results, this is the marker for the next set of results. // Otherwise, this is null. diff --git a/service/elasticloadbalancingv2/api_op_DescribeListeners.go b/service/elasticloadbalancingv2/api_op_DescribeListeners.go index f6e6887d00f..378c561a0b6 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeListeners.go +++ b/service/elasticloadbalancingv2/api_op_DescribeListeners.go @@ -34,7 +34,7 @@ func (c *Client) DescribeListeners(ctx context.Context, params *DescribeListener type DescribeListenersInput struct { // The Amazon Resource Names (ARN) of the listeners. - ListenerArns []*string + ListenerArns []string // The Amazon Resource Name (ARN) of the load balancer. LoadBalancerArn *string @@ -50,7 +50,7 @@ type DescribeListenersInput struct { type DescribeListenersOutput struct { // Information about the listeners. - Listeners []*types.Listener + Listeners []types.Listener // If there are additional results, this is the marker for the next set of results. // Otherwise, this is null. diff --git a/service/elasticloadbalancingv2/api_op_DescribeLoadBalancerAttributes.go b/service/elasticloadbalancingv2/api_op_DescribeLoadBalancerAttributes.go index 3e8e7ded43e..0d95370f2f1 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeLoadBalancerAttributes.go +++ b/service/elasticloadbalancingv2/api_op_DescribeLoadBalancerAttributes.go @@ -43,7 +43,7 @@ type DescribeLoadBalancerAttributesInput struct { type DescribeLoadBalancerAttributesOutput struct { // Information about the load balancer attributes. - Attributes []*types.LoadBalancerAttribute + Attributes []types.LoadBalancerAttribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go b/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go index 99507aa39bc..7081836745b 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go +++ b/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go @@ -33,14 +33,14 @@ type DescribeLoadBalancersInput struct { // The Amazon Resource Names (ARN) of the load balancers. You can specify up to 20 // load balancers in a single call. - LoadBalancerArns []*string + LoadBalancerArns []string // The marker for the next set of results. (You received this marker from a // previous call.) Marker *string // The names of the load balancers. - Names []*string + Names []string // The maximum number of results to return with this call. PageSize *int32 @@ -49,7 +49,7 @@ type DescribeLoadBalancersInput struct { type DescribeLoadBalancersOutput struct { // Information about the load balancers. - LoadBalancers []*types.LoadBalancer + LoadBalancers []types.LoadBalancer // If there are additional results, this is the marker for the next set of results. // Otherwise, this is null. diff --git a/service/elasticloadbalancingv2/api_op_DescribeRules.go b/service/elasticloadbalancingv2/api_op_DescribeRules.go index ca23e22c4c3..1982644a7f9 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeRules.go +++ b/service/elasticloadbalancingv2/api_op_DescribeRules.go @@ -41,7 +41,7 @@ type DescribeRulesInput struct { PageSize *int32 // The Amazon Resource Names (ARN) of the rules. - RuleArns []*string + RuleArns []string } type DescribeRulesOutput struct { @@ -51,7 +51,7 @@ type DescribeRulesOutput struct { NextMarker *string // Information about the rules. - Rules []*types.Rule + Rules []types.Rule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_DescribeSSLPolicies.go b/service/elasticloadbalancingv2/api_op_DescribeSSLPolicies.go index b81864235d7..3775dfe92a1 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeSSLPolicies.go +++ b/service/elasticloadbalancingv2/api_op_DescribeSSLPolicies.go @@ -37,7 +37,7 @@ type DescribeSSLPoliciesInput struct { Marker *string // The names of the policies. - Names []*string + Names []string // The maximum number of results to return with this call. PageSize *int32 @@ -50,7 +50,7 @@ type DescribeSSLPoliciesOutput struct { NextMarker *string // Information about the security policies. - SslPolicies []*types.SslPolicy + SslPolicies []types.SslPolicy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_DescribeTags.go b/service/elasticloadbalancingv2/api_op_DescribeTags.go index 49b001e2ccc..3d76e435b5a 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeTags.go +++ b/service/elasticloadbalancingv2/api_op_DescribeTags.go @@ -35,13 +35,13 @@ type DescribeTagsInput struct { // resources in a single call. // // This member is required. - ResourceArns []*string + ResourceArns []string } type DescribeTagsOutput struct { // Information about the tags. - TagDescriptions []*types.TagDescription + TagDescriptions []types.TagDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_DescribeTargetGroupAttributes.go b/service/elasticloadbalancingv2/api_op_DescribeTargetGroupAttributes.go index e5eb21027a7..1d1dc984231 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeTargetGroupAttributes.go +++ b/service/elasticloadbalancingv2/api_op_DescribeTargetGroupAttributes.go @@ -43,7 +43,7 @@ type DescribeTargetGroupAttributesInput struct { type DescribeTargetGroupAttributesOutput struct { // Information about the target group attributes - Attributes []*types.TargetGroupAttribute + Attributes []types.TargetGroupAttribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_DescribeTargetGroups.go b/service/elasticloadbalancingv2/api_op_DescribeTargetGroups.go index 6eb28ab0324..e28aa08e6a7 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeTargetGroups.go +++ b/service/elasticloadbalancingv2/api_op_DescribeTargetGroups.go @@ -42,13 +42,13 @@ type DescribeTargetGroupsInput struct { Marker *string // The names of the target groups. - Names []*string + Names []string // The maximum number of results to return with this call. PageSize *int32 // The Amazon Resource Names (ARN) of the target groups. - TargetGroupArns []*string + TargetGroupArns []string } type DescribeTargetGroupsOutput struct { @@ -58,7 +58,7 @@ type DescribeTargetGroupsOutput struct { NextMarker *string // Information about the target groups. - TargetGroups []*types.TargetGroup + TargetGroups []types.TargetGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go b/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go index ad60929b15f..68bdacb8c77 100644 --- a/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go +++ b/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go @@ -35,13 +35,13 @@ type DescribeTargetHealthInput struct { TargetGroupArn *string // The targets. - Targets []*types.TargetDescription + Targets []types.TargetDescription } type DescribeTargetHealthOutput struct { // Information about the health of the targets. - TargetHealthDescriptions []*types.TargetHealthDescription + TargetHealthDescriptions []types.TargetHealthDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_ModifyListener.go b/service/elasticloadbalancingv2/api_op_ModifyListener.go index cfa192159d6..0bd1dc88515 100644 --- a/service/elasticloadbalancingv2/api_op_ModifyListener.go +++ b/service/elasticloadbalancingv2/api_op_ModifyListener.go @@ -59,15 +59,15 @@ type ModifyListenerInput struct { // For more information, see ALPN Policies // (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-tls-listener.html#alpn-policies) // in the Network Load Balancers Guide. - AlpnPolicy []*string + AlpnPolicy []string // [HTTPS and TLS listeners] The default certificate for the listener. You must // provide exactly one certificate. Set CertificateArn to the certificate ARN but // do not set IsDefault. To create a certificate list, use AddListenerCertificates. - Certificates []*types.Certificate + Certificates []types.Certificate // The actions for the default rule. - DefaultActions []*types.Action + DefaultActions []types.Action // The port for connections from clients to the load balancer. Port *int32 @@ -115,7 +115,7 @@ type ModifyListenerInput struct { type ModifyListenerOutput struct { // Information about the modified listener. - Listeners []*types.Listener + Listeners []types.Listener // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_ModifyLoadBalancerAttributes.go b/service/elasticloadbalancingv2/api_op_ModifyLoadBalancerAttributes.go index fbc683b7386..834bc4d396c 100644 --- a/service/elasticloadbalancingv2/api_op_ModifyLoadBalancerAttributes.go +++ b/service/elasticloadbalancingv2/api_op_ModifyLoadBalancerAttributes.go @@ -35,7 +35,7 @@ type ModifyLoadBalancerAttributesInput struct { // The load balancer attributes. // // This member is required. - Attributes []*types.LoadBalancerAttribute + Attributes []types.LoadBalancerAttribute // The Amazon Resource Name (ARN) of the load balancer. // @@ -46,7 +46,7 @@ type ModifyLoadBalancerAttributesInput struct { type ModifyLoadBalancerAttributesOutput struct { // Information about the load balancer attributes. - Attributes []*types.LoadBalancerAttribute + Attributes []types.LoadBalancerAttribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_ModifyRule.go b/service/elasticloadbalancingv2/api_op_ModifyRule.go index 16467552c4b..285f82139b6 100644 --- a/service/elasticloadbalancingv2/api_op_ModifyRule.go +++ b/service/elasticloadbalancingv2/api_op_ModifyRule.go @@ -39,16 +39,16 @@ type ModifyRuleInput struct { RuleArn *string // The actions. - Actions []*types.Action + Actions []types.Action // The conditions. - Conditions []*types.RuleCondition + Conditions []types.RuleCondition } type ModifyRuleOutput struct { // Information about the modified rule. - Rules []*types.Rule + Rules []types.Rule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_ModifyTargetGroup.go b/service/elasticloadbalancingv2/api_op_ModifyTargetGroup.go index ede50b12096..ec3778e6324 100644 --- a/service/elasticloadbalancingv2/api_op_ModifyTargetGroup.go +++ b/service/elasticloadbalancingv2/api_op_ModifyTargetGroup.go @@ -84,7 +84,7 @@ type ModifyTargetGroupInput struct { type ModifyTargetGroupOutput struct { // Information about the modified target group. - TargetGroups []*types.TargetGroup + TargetGroups []types.TargetGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_ModifyTargetGroupAttributes.go b/service/elasticloadbalancingv2/api_op_ModifyTargetGroupAttributes.go index 6b3cde4c5c8..4eaab1faa7a 100644 --- a/service/elasticloadbalancingv2/api_op_ModifyTargetGroupAttributes.go +++ b/service/elasticloadbalancingv2/api_op_ModifyTargetGroupAttributes.go @@ -32,7 +32,7 @@ type ModifyTargetGroupAttributesInput struct { // The attributes. // // This member is required. - Attributes []*types.TargetGroupAttribute + Attributes []types.TargetGroupAttribute // The Amazon Resource Name (ARN) of the target group. // @@ -43,7 +43,7 @@ type ModifyTargetGroupAttributesInput struct { type ModifyTargetGroupAttributesOutput struct { // Information about the attributes. - Attributes []*types.TargetGroupAttribute + Attributes []types.TargetGroupAttribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_RegisterTargets.go b/service/elasticloadbalancingv2/api_op_RegisterTargets.go index d788b5a9ff8..4f3211ed9d6 100644 --- a/service/elasticloadbalancingv2/api_op_RegisterTargets.go +++ b/service/elasticloadbalancingv2/api_op_RegisterTargets.go @@ -46,7 +46,7 @@ type RegisterTargetsInput struct { // The targets. // // This member is required. - Targets []*types.TargetDescription + Targets []types.TargetDescription } type RegisterTargetsOutput struct { diff --git a/service/elasticloadbalancingv2/api_op_RemoveListenerCertificates.go b/service/elasticloadbalancingv2/api_op_RemoveListenerCertificates.go index d7aa1886125..74a6c2a581e 100644 --- a/service/elasticloadbalancingv2/api_op_RemoveListenerCertificates.go +++ b/service/elasticloadbalancingv2/api_op_RemoveListenerCertificates.go @@ -36,7 +36,7 @@ type RemoveListenerCertificatesInput struct { // CertificateArn to the certificate ARN but do not set IsDefault. // // This member is required. - Certificates []*types.Certificate + Certificates []types.Certificate // The Amazon Resource Name (ARN) of the listener. // diff --git a/service/elasticloadbalancingv2/api_op_RemoveTags.go b/service/elasticloadbalancingv2/api_op_RemoveTags.go index b6c2451740a..713931173e6 100644 --- a/service/elasticloadbalancingv2/api_op_RemoveTags.go +++ b/service/elasticloadbalancingv2/api_op_RemoveTags.go @@ -34,12 +34,12 @@ type RemoveTagsInput struct { // The Amazon Resource Name (ARN) of the resource. // // This member is required. - ResourceArns []*string + ResourceArns []string // The tag keys for the tags to remove. // // This member is required. - TagKeys []*string + TagKeys []string } type RemoveTagsOutput struct { diff --git a/service/elasticloadbalancingv2/api_op_SetRulePriorities.go b/service/elasticloadbalancingv2/api_op_SetRulePriorities.go index 5b445f85ec7..c4330baef6d 100644 --- a/service/elasticloadbalancingv2/api_op_SetRulePriorities.go +++ b/service/elasticloadbalancingv2/api_op_SetRulePriorities.go @@ -34,13 +34,13 @@ type SetRulePrioritiesInput struct { // The rule priorities. // // This member is required. - RulePriorities []*types.RulePriorityPair + RulePriorities []types.RulePriorityPair } type SetRulePrioritiesOutput struct { // Information about the rules. - Rules []*types.Rule + Rules []types.Rule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_SetSecurityGroups.go b/service/elasticloadbalancingv2/api_op_SetSecurityGroups.go index fa30853fc2f..649949d194e 100644 --- a/service/elasticloadbalancingv2/api_op_SetSecurityGroups.go +++ b/service/elasticloadbalancingv2/api_op_SetSecurityGroups.go @@ -38,13 +38,13 @@ type SetSecurityGroupsInput struct { // The IDs of the security groups. // // This member is required. - SecurityGroups []*string + SecurityGroups []string } type SetSecurityGroupsOutput struct { // The IDs of the security groups associated with the load balancer. - SecurityGroupIds []*string + SecurityGroupIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/api_op_SetSubnets.go b/service/elasticloadbalancingv2/api_op_SetSubnets.go index 256accd311d..068ab6f5307 100644 --- a/service/elasticloadbalancingv2/api_op_SetSubnets.go +++ b/service/elasticloadbalancingv2/api_op_SetSubnets.go @@ -46,18 +46,18 @@ type SetSubnetsInput struct { // IP addresses for your internet-facing load balancer, you can specify one Elastic // IP address per subnet. For internal load balancers, you can specify one private // IP address per subnet from the IPv4 range of the subnet. - SubnetMappings []*types.SubnetMapping + SubnetMappings []types.SubnetMapping // The IDs of the public subnets. You must specify subnets from at least two // Availability Zones. You can specify only one subnet per Availability Zone. You // must specify either subnets or subnet mappings. - Subnets []*string + Subnets []string } type SetSubnetsOutput struct { // Information about the subnets. - AvailabilityZones []*types.AvailabilityZone + AvailabilityZones []types.AvailabilityZone // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticloadbalancingv2/deserializers.go b/service/elasticloadbalancingv2/deserializers.go index f24772ecc9f..703342e9131 100644 --- a/service/elasticloadbalancingv2/deserializers.go +++ b/service/elasticloadbalancingv2/deserializers.go @@ -4925,7 +4925,7 @@ func awsAwsquery_deserializeDocumentAction(v **types.Action, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.TargetGroupArn = &xtv + sv.TargetGroupArn = ptr.String(xtv) } case strings.EqualFold("Type", t.Name.Local): @@ -4951,13 +4951,13 @@ func awsAwsquery_deserializeDocumentAction(v **types.Action, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentActions(v *[]*types.Action, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentActions(v *[]types.Action, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Action + var sv []types.Action if *v == nil { - sv = make([]*types.Action, 0) + sv = make([]types.Action, 0) } else { sv = *v } @@ -4973,11 +4973,13 @@ func awsAwsquery_deserializeDocumentActions(v *[]*types.Action, decoder smithyxm } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Action + var col types.Action nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAction(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAction(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -4990,23 +4992,25 @@ func awsAwsquery_deserializeDocumentActions(v *[]*types.Action, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentActionsUnwrapped(v *[]*types.Action, decoder smithyxml.NodeDecoder) error { - var sv []*types.Action +func awsAwsquery_deserializeDocumentActionsUnwrapped(v *[]types.Action, decoder smithyxml.NodeDecoder) error { + var sv []types.Action if *v == nil { - sv = make([]*types.Action, 0) + sv = make([]types.Action, 0) } else { sv = *v } switch { default: - var mv *types.Action + var mv types.Action t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAction(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAction(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5047,7 +5051,7 @@ func awsAwsquery_deserializeDocumentAllocationIdNotFoundException(v **types.Allo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5060,13 +5064,13 @@ func awsAwsquery_deserializeDocumentAllocationIdNotFoundException(v **types.Allo return nil } -func awsAwsquery_deserializeDocumentAlpnPolicyName(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAlpnPolicyName(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -5084,20 +5088,17 @@ func awsAwsquery_deserializeDocumentAlpnPolicyName(v *[]*string, decoder smithyx decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -5110,17 +5111,17 @@ func awsAwsquery_deserializeDocumentAlpnPolicyName(v *[]*string, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentAlpnPolicyNameUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAlpnPolicyNameUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -5128,14 +5129,11 @@ func awsAwsquery_deserializeDocumentAlpnPolicyNameUnwrapped(v *[]*string, decode return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -5177,7 +5175,7 @@ func awsAwsquery_deserializeDocumentALPNPolicyNotSupportedException(v **types.AL } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5190,13 +5188,13 @@ func awsAwsquery_deserializeDocumentALPNPolicyNotSupportedException(v **types.AL return nil } -func awsAwsquery_deserializeDocumentAuthenticateCognitoActionAuthenticationRequestExtraParams(v *map[string]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAuthenticateCognitoActionAuthenticationRequestExtraParams(v *map[string]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*string + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } @@ -5220,23 +5218,23 @@ func awsAwsquery_deserializeDocumentAuthenticateCognitoActionAuthenticationReque return nil } -func awsAwsquery_deserializeDocumentAuthenticateCognitoActionAuthenticationRequestExtraParamsUnwrapped(v *map[string]*string, decoder smithyxml.NodeDecoder) error { - var sv map[string]*string +func awsAwsquery_deserializeDocumentAuthenticateCognitoActionAuthenticationRequestExtraParamsUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } - var ek *string - var ev *string + var ek string + var ev string for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -5246,14 +5244,11 @@ func awsAwsquery_deserializeDocumentAuthenticateCognitoActionAuthenticationReque return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): @@ -5262,14 +5257,11 @@ func awsAwsquery_deserializeDocumentAuthenticateCognitoActionAuthenticationReque return err } if done { - if val == nil { - ev = ptr.String("") - } break } if val != nil { xtv := string(val) - ev = &xtv + ev = xtv } default: @@ -5334,7 +5326,7 @@ func awsAwsquery_deserializeDocumentAuthenticateCognitoActionConfig(v **types.Au } if val != nil { xtv := string(val) - sv.Scope = &xtv + sv.Scope = ptr.String(xtv) } case strings.EqualFold("SessionCookieName", t.Name.Local): @@ -5350,7 +5342,7 @@ func awsAwsquery_deserializeDocumentAuthenticateCognitoActionConfig(v **types.Au } if val != nil { xtv := string(val) - sv.SessionCookieName = &xtv + sv.SessionCookieName = ptr.String(xtv) } case strings.EqualFold("SessionTimeout", t.Name.Local): @@ -5367,7 +5359,7 @@ func awsAwsquery_deserializeDocumentAuthenticateCognitoActionConfig(v **types.Au if err != nil { return err } - sv.SessionTimeout = &i64 + sv.SessionTimeout = ptr.Int64(i64) } case strings.EqualFold("UserPoolArn", t.Name.Local): @@ -5383,7 +5375,7 @@ func awsAwsquery_deserializeDocumentAuthenticateCognitoActionConfig(v **types.Au } if val != nil { xtv := string(val) - sv.UserPoolArn = &xtv + sv.UserPoolArn = ptr.String(xtv) } case strings.EqualFold("UserPoolClientId", t.Name.Local): @@ -5399,7 +5391,7 @@ func awsAwsquery_deserializeDocumentAuthenticateCognitoActionConfig(v **types.Au } if val != nil { xtv := string(val) - sv.UserPoolClientId = &xtv + sv.UserPoolClientId = ptr.String(xtv) } case strings.EqualFold("UserPoolDomain", t.Name.Local): @@ -5415,7 +5407,7 @@ func awsAwsquery_deserializeDocumentAuthenticateCognitoActionConfig(v **types.Au } if val != nil { xtv := string(val) - sv.UserPoolDomain = &xtv + sv.UserPoolDomain = ptr.String(xtv) } default: @@ -5428,13 +5420,13 @@ func awsAwsquery_deserializeDocumentAuthenticateCognitoActionConfig(v **types.Au return nil } -func awsAwsquery_deserializeDocumentAuthenticateOidcActionAuthenticationRequestExtraParams(v *map[string]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAuthenticateOidcActionAuthenticationRequestExtraParams(v *map[string]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*string + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } @@ -5458,23 +5450,23 @@ func awsAwsquery_deserializeDocumentAuthenticateOidcActionAuthenticationRequestE return nil } -func awsAwsquery_deserializeDocumentAuthenticateOidcActionAuthenticationRequestExtraParamsUnwrapped(v *map[string]*string, decoder smithyxml.NodeDecoder) error { - var sv map[string]*string +func awsAwsquery_deserializeDocumentAuthenticateOidcActionAuthenticationRequestExtraParamsUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } - var ek *string - var ev *string + var ek string + var ev string for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -5484,14 +5476,11 @@ func awsAwsquery_deserializeDocumentAuthenticateOidcActionAuthenticationRequestE return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): @@ -5500,14 +5489,11 @@ func awsAwsquery_deserializeDocumentAuthenticateOidcActionAuthenticationRequestE return err } if done { - if val == nil { - ev = ptr.String("") - } break } if val != nil { xtv := string(val) - ev = &xtv + ev = xtv } default: @@ -5559,7 +5545,7 @@ func awsAwsquery_deserializeDocumentAuthenticateOidcActionConfig(v **types.Authe } if val != nil { xtv := string(val) - sv.AuthorizationEndpoint = &xtv + sv.AuthorizationEndpoint = ptr.String(xtv) } case strings.EqualFold("ClientId", t.Name.Local): @@ -5575,7 +5561,7 @@ func awsAwsquery_deserializeDocumentAuthenticateOidcActionConfig(v **types.Authe } if val != nil { xtv := string(val) - sv.ClientId = &xtv + sv.ClientId = ptr.String(xtv) } case strings.EqualFold("ClientSecret", t.Name.Local): @@ -5591,7 +5577,7 @@ func awsAwsquery_deserializeDocumentAuthenticateOidcActionConfig(v **types.Authe } if val != nil { xtv := string(val) - sv.ClientSecret = &xtv + sv.ClientSecret = ptr.String(xtv) } case strings.EqualFold("Issuer", t.Name.Local): @@ -5607,7 +5593,7 @@ func awsAwsquery_deserializeDocumentAuthenticateOidcActionConfig(v **types.Authe } if val != nil { xtv := string(val) - sv.Issuer = &xtv + sv.Issuer = ptr.String(xtv) } case strings.EqualFold("OnUnauthenticatedRequest", t.Name.Local): @@ -5636,7 +5622,7 @@ func awsAwsquery_deserializeDocumentAuthenticateOidcActionConfig(v **types.Authe } if val != nil { xtv := string(val) - sv.Scope = &xtv + sv.Scope = ptr.String(xtv) } case strings.EqualFold("SessionCookieName", t.Name.Local): @@ -5652,7 +5638,7 @@ func awsAwsquery_deserializeDocumentAuthenticateOidcActionConfig(v **types.Authe } if val != nil { xtv := string(val) - sv.SessionCookieName = &xtv + sv.SessionCookieName = ptr.String(xtv) } case strings.EqualFold("SessionTimeout", t.Name.Local): @@ -5669,7 +5655,7 @@ func awsAwsquery_deserializeDocumentAuthenticateOidcActionConfig(v **types.Authe if err != nil { return err } - sv.SessionTimeout = &i64 + sv.SessionTimeout = ptr.Int64(i64) } case strings.EqualFold("TokenEndpoint", t.Name.Local): @@ -5685,7 +5671,7 @@ func awsAwsquery_deserializeDocumentAuthenticateOidcActionConfig(v **types.Authe } if val != nil { xtv := string(val) - sv.TokenEndpoint = &xtv + sv.TokenEndpoint = ptr.String(xtv) } case strings.EqualFold("UseExistingClientSecret", t.Name.Local): @@ -5701,7 +5687,7 @@ func awsAwsquery_deserializeDocumentAuthenticateOidcActionConfig(v **types.Authe if err != nil { return fmt.Errorf("expected AuthenticateOidcActionUseExistingClientSecret to be of type *bool, got %T instead", val) } - sv.UseExistingClientSecret = &xtv + sv.UseExistingClientSecret = ptr.Bool(xtv) } case strings.EqualFold("UserInfoEndpoint", t.Name.Local): @@ -5717,7 +5703,7 @@ func awsAwsquery_deserializeDocumentAuthenticateOidcActionConfig(v **types.Authe } if val != nil { xtv := string(val) - sv.UserInfoEndpoint = &xtv + sv.UserInfoEndpoint = ptr.String(xtv) } default: @@ -5771,7 +5757,7 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.OutpostId = &xtv + sv.OutpostId = ptr.String(xtv) } case strings.EqualFold("SubnetId", t.Name.Local): @@ -5787,7 +5773,7 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.SubnetId = &xtv + sv.SubnetId = ptr.String(xtv) } case strings.EqualFold("ZoneName", t.Name.Local): @@ -5803,7 +5789,7 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.ZoneName = &xtv + sv.ZoneName = ptr.String(xtv) } default: @@ -5851,7 +5837,7 @@ func awsAwsquery_deserializeDocumentAvailabilityZoneNotSupportedException(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5864,13 +5850,13 @@ func awsAwsquery_deserializeDocumentAvailabilityZoneNotSupportedException(v **ty return nil } -func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AvailabilityZone + var sv []types.AvailabilityZone if *v == nil { - sv = make([]*types.AvailabilityZone, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } @@ -5886,11 +5872,13 @@ func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*types.AvailabilityZo } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AvailabilityZone + var col types.AvailabilityZone nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZone(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5903,23 +5891,25 @@ func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*types.AvailabilityZo return nil } -func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]*types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { - var sv []*types.AvailabilityZone +func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { + var sv []types.AvailabilityZone if *v == nil { - sv = make([]*types.AvailabilityZone, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } switch { default: - var mv *types.AvailabilityZone + var mv types.AvailabilityZone t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZone(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5960,7 +5950,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s } if val != nil { xtv := string(val) - sv.CertificateArn = &xtv + sv.CertificateArn = ptr.String(xtv) } case strings.EqualFold("IsDefault", t.Name.Local): @@ -5976,7 +5966,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s if err != nil { return fmt.Errorf("expected Default to be of type *bool, got %T instead", val) } - sv.IsDefault = &xtv + sv.IsDefault = ptr.Bool(xtv) } default: @@ -5989,13 +5979,13 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s return nil } -func awsAwsquery_deserializeDocumentCertificateList(v *[]*types.Certificate, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCertificateList(v *[]types.Certificate, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Certificate + var sv []types.Certificate if *v == nil { - sv = make([]*types.Certificate, 0) + sv = make([]types.Certificate, 0) } else { sv = *v } @@ -6011,11 +6001,13 @@ func awsAwsquery_deserializeDocumentCertificateList(v *[]*types.Certificate, dec } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Certificate + var col types.Certificate nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCertificate(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCertificate(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6028,23 +6020,25 @@ func awsAwsquery_deserializeDocumentCertificateList(v *[]*types.Certificate, dec return nil } -func awsAwsquery_deserializeDocumentCertificateListUnwrapped(v *[]*types.Certificate, decoder smithyxml.NodeDecoder) error { - var sv []*types.Certificate +func awsAwsquery_deserializeDocumentCertificateListUnwrapped(v *[]types.Certificate, decoder smithyxml.NodeDecoder) error { + var sv []types.Certificate if *v == nil { - sv = make([]*types.Certificate, 0) + sv = make([]types.Certificate, 0) } else { sv = *v } switch { default: - var mv *types.Certificate + var mv types.Certificate t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCertificate(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCertificate(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6085,7 +6079,7 @@ func awsAwsquery_deserializeDocumentCertificateNotFoundException(v **types.Certi } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6133,7 +6127,7 @@ func awsAwsquery_deserializeDocumentCipher(v **types.Cipher, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Priority", t.Name.Local): @@ -6150,7 +6144,7 @@ func awsAwsquery_deserializeDocumentCipher(v **types.Cipher, decoder smithyxml.N if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } default: @@ -6163,13 +6157,13 @@ func awsAwsquery_deserializeDocumentCipher(v **types.Cipher, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentCiphers(v *[]*types.Cipher, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCiphers(v *[]types.Cipher, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Cipher + var sv []types.Cipher if *v == nil { - sv = make([]*types.Cipher, 0) + sv = make([]types.Cipher, 0) } else { sv = *v } @@ -6185,11 +6179,13 @@ func awsAwsquery_deserializeDocumentCiphers(v *[]*types.Cipher, decoder smithyxm } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Cipher + var col types.Cipher nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCipher(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCipher(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6202,23 +6198,25 @@ func awsAwsquery_deserializeDocumentCiphers(v *[]*types.Cipher, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentCiphersUnwrapped(v *[]*types.Cipher, decoder smithyxml.NodeDecoder) error { - var sv []*types.Cipher +func awsAwsquery_deserializeDocumentCiphersUnwrapped(v *[]types.Cipher, decoder smithyxml.NodeDecoder) error { + var sv []types.Cipher if *v == nil { - sv = make([]*types.Cipher, 0) + sv = make([]types.Cipher, 0) } else { sv = *v } switch { default: - var mv *types.Cipher + var mv types.Cipher t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCipher(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCipher(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6259,7 +6257,7 @@ func awsAwsquery_deserializeDocumentDuplicateListenerException(v **types.Duplica } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6307,7 +6305,7 @@ func awsAwsquery_deserializeDocumentDuplicateLoadBalancerNameException(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6355,7 +6353,7 @@ func awsAwsquery_deserializeDocumentDuplicateTagKeysException(v **types.Duplicat } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6403,7 +6401,7 @@ func awsAwsquery_deserializeDocumentDuplicateTargetGroupNameException(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6451,7 +6449,7 @@ func awsAwsquery_deserializeDocumentFixedResponseActionConfig(v **types.FixedRes } if val != nil { xtv := string(val) - sv.ContentType = &xtv + sv.ContentType = ptr.String(xtv) } case strings.EqualFold("MessageBody", t.Name.Local): @@ -6467,7 +6465,7 @@ func awsAwsquery_deserializeDocumentFixedResponseActionConfig(v **types.FixedRes } if val != nil { xtv := string(val) - sv.MessageBody = &xtv + sv.MessageBody = ptr.String(xtv) } case strings.EqualFold("StatusCode", t.Name.Local): @@ -6483,7 +6481,7 @@ func awsAwsquery_deserializeDocumentFixedResponseActionConfig(v **types.FixedRes } if val != nil { xtv := string(val) - sv.StatusCode = &xtv + sv.StatusCode = ptr.String(xtv) } default: @@ -6575,7 +6573,7 @@ func awsAwsquery_deserializeDocumentHealthUnavailableException(v **types.HealthU } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6661,7 +6659,7 @@ func awsAwsquery_deserializeDocumentHttpHeaderConditionConfig(v **types.HttpHead } if val != nil { xtv := string(val) - sv.HttpHeaderName = &xtv + sv.HttpHeaderName = ptr.String(xtv) } case strings.EqualFold("Values", t.Name.Local): @@ -6753,7 +6751,7 @@ func awsAwsquery_deserializeDocumentIncompatibleProtocolsException(v **types.Inc } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6801,7 +6799,7 @@ func awsAwsquery_deserializeDocumentInvalidConfigurationRequestException(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6849,7 +6847,7 @@ func awsAwsquery_deserializeDocumentInvalidLoadBalancerActionException(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6897,7 +6895,7 @@ func awsAwsquery_deserializeDocumentInvalidSchemeException(v **types.InvalidSche } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6945,7 +6943,7 @@ func awsAwsquery_deserializeDocumentInvalidSecurityGroupException(v **types.Inva } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6993,7 +6991,7 @@ func awsAwsquery_deserializeDocumentInvalidSubnetException(v **types.InvalidSubn } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7041,7 +7039,7 @@ func awsAwsquery_deserializeDocumentInvalidTargetException(v **types.InvalidTarg } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7089,7 +7087,7 @@ func awsAwsquery_deserializeDocumentLimit(v **types.Limit, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Max = &xtv + sv.Max = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -7105,7 +7103,7 @@ func awsAwsquery_deserializeDocumentLimit(v **types.Limit, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -7118,13 +7116,13 @@ func awsAwsquery_deserializeDocumentLimit(v **types.Limit, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentLimits(v *[]*types.Limit, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLimits(v *[]types.Limit, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Limit + var sv []types.Limit if *v == nil { - sv = make([]*types.Limit, 0) + sv = make([]types.Limit, 0) } else { sv = *v } @@ -7140,11 +7138,13 @@ func awsAwsquery_deserializeDocumentLimits(v *[]*types.Limit, decoder smithyxml. } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Limit + var col types.Limit nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLimit(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLimit(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7157,23 +7157,25 @@ func awsAwsquery_deserializeDocumentLimits(v *[]*types.Limit, decoder smithyxml. return nil } -func awsAwsquery_deserializeDocumentLimitsUnwrapped(v *[]*types.Limit, decoder smithyxml.NodeDecoder) error { - var sv []*types.Limit +func awsAwsquery_deserializeDocumentLimitsUnwrapped(v *[]types.Limit, decoder smithyxml.NodeDecoder) error { + var sv []types.Limit if *v == nil { - sv = make([]*types.Limit, 0) + sv = make([]types.Limit, 0) } else { sv = *v } switch { default: - var mv *types.Limit + var mv types.Limit t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLimit(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLimit(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -7232,7 +7234,7 @@ func awsAwsquery_deserializeDocumentListener(v **types.Listener, decoder smithyx } if val != nil { xtv := string(val) - sv.ListenerArn = &xtv + sv.ListenerArn = ptr.String(xtv) } case strings.EqualFold("LoadBalancerArn", t.Name.Local): @@ -7248,7 +7250,7 @@ func awsAwsquery_deserializeDocumentListener(v **types.Listener, decoder smithyx } if val != nil { xtv := string(val) - sv.LoadBalancerArn = &xtv + sv.LoadBalancerArn = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -7294,7 +7296,7 @@ func awsAwsquery_deserializeDocumentListener(v **types.Listener, decoder smithyx } if val != nil { xtv := string(val) - sv.SslPolicy = &xtv + sv.SslPolicy = ptr.String(xtv) } default: @@ -7342,7 +7344,7 @@ func awsAwsquery_deserializeDocumentListenerNotFoundException(v **types.Listener } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -7355,13 +7357,13 @@ func awsAwsquery_deserializeDocumentListenerNotFoundException(v **types.Listener return nil } -func awsAwsquery_deserializeDocumentListeners(v *[]*types.Listener, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentListeners(v *[]types.Listener, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Listener + var sv []types.Listener if *v == nil { - sv = make([]*types.Listener, 0) + sv = make([]types.Listener, 0) } else { sv = *v } @@ -7377,11 +7379,13 @@ func awsAwsquery_deserializeDocumentListeners(v *[]*types.Listener, decoder smit } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Listener + var col types.Listener nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListener(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentListener(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7394,35 +7398,37 @@ func awsAwsquery_deserializeDocumentListeners(v *[]*types.Listener, decoder smit return nil } -func awsAwsquery_deserializeDocumentListenersUnwrapped(v *[]*types.Listener, decoder smithyxml.NodeDecoder) error { - var sv []*types.Listener +func awsAwsquery_deserializeDocumentListenersUnwrapped(v *[]types.Listener, decoder smithyxml.NodeDecoder) error { + var sv []types.Listener if *v == nil { - sv = make([]*types.Listener, 0) + sv = make([]types.Listener, 0) } else { sv = *v } switch { default: - var mv *types.Listener + var mv types.Listener t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListener(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentListener(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentListOfString(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentListOfString(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -7440,20 +7446,17 @@ func awsAwsquery_deserializeDocumentListOfString(v *[]*string, decoder smithyxml decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -7466,17 +7469,17 @@ func awsAwsquery_deserializeDocumentListOfString(v *[]*string, decoder smithyxml return nil } -func awsAwsquery_deserializeDocumentListOfStringUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentListOfStringUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7484,14 +7487,11 @@ func awsAwsquery_deserializeDocumentListOfStringUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -7539,7 +7539,7 @@ func awsAwsquery_deserializeDocumentLoadBalancer(v **types.LoadBalancer, decoder } if val != nil { xtv := string(val) - sv.CanonicalHostedZoneId = &xtv + sv.CanonicalHostedZoneId = ptr.String(xtv) } case strings.EqualFold("CreatedTime", t.Name.Local): @@ -7556,7 +7556,7 @@ func awsAwsquery_deserializeDocumentLoadBalancer(v **types.LoadBalancer, decoder if err != nil { return err } - sv.CreatedTime = &t + sv.CreatedTime = ptr.Time(t) } case strings.EqualFold("CustomerOwnedIpv4Pool", t.Name.Local): @@ -7572,7 +7572,7 @@ func awsAwsquery_deserializeDocumentLoadBalancer(v **types.LoadBalancer, decoder } if val != nil { xtv := string(val) - sv.CustomerOwnedIpv4Pool = &xtv + sv.CustomerOwnedIpv4Pool = ptr.String(xtv) } case strings.EqualFold("DNSName", t.Name.Local): @@ -7588,7 +7588,7 @@ func awsAwsquery_deserializeDocumentLoadBalancer(v **types.LoadBalancer, decoder } if val != nil { xtv := string(val) - sv.DNSName = &xtv + sv.DNSName = ptr.String(xtv) } case strings.EqualFold("IpAddressType", t.Name.Local): @@ -7617,7 +7617,7 @@ func awsAwsquery_deserializeDocumentLoadBalancer(v **types.LoadBalancer, decoder } if val != nil { xtv := string(val) - sv.LoadBalancerArn = &xtv + sv.LoadBalancerArn = ptr.String(xtv) } case strings.EqualFold("LoadBalancerName", t.Name.Local): @@ -7633,7 +7633,7 @@ func awsAwsquery_deserializeDocumentLoadBalancer(v **types.LoadBalancer, decoder } if val != nil { xtv := string(val) - sv.LoadBalancerName = &xtv + sv.LoadBalancerName = ptr.String(xtv) } case strings.EqualFold("Scheme", t.Name.Local): @@ -7687,7 +7687,7 @@ func awsAwsquery_deserializeDocumentLoadBalancer(v **types.LoadBalancer, decoder } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -7735,7 +7735,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerAddress(v **types.LoadBalancerAd } if val != nil { xtv := string(val) - sv.AllocationId = &xtv + sv.AllocationId = ptr.String(xtv) } case strings.EqualFold("IpAddress", t.Name.Local): @@ -7751,7 +7751,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerAddress(v **types.LoadBalancerAd } if val != nil { xtv := string(val) - sv.IpAddress = &xtv + sv.IpAddress = ptr.String(xtv) } case strings.EqualFold("PrivateIPv4Address", t.Name.Local): @@ -7767,7 +7767,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerAddress(v **types.LoadBalancerAd } if val != nil { xtv := string(val) - sv.PrivateIPv4Address = &xtv + sv.PrivateIPv4Address = ptr.String(xtv) } default: @@ -7780,13 +7780,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerAddress(v **types.LoadBalancerAd return nil } -func awsAwsquery_deserializeDocumentLoadBalancerAddresses(v *[]*types.LoadBalancerAddress, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLoadBalancerAddresses(v *[]types.LoadBalancerAddress, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LoadBalancerAddress + var sv []types.LoadBalancerAddress if *v == nil { - sv = make([]*types.LoadBalancerAddress, 0) + sv = make([]types.LoadBalancerAddress, 0) } else { sv = *v } @@ -7802,11 +7802,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerAddresses(v *[]*types.LoadBalanc } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LoadBalancerAddress + var col types.LoadBalancerAddress nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerAddress(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLoadBalancerAddress(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7819,35 +7821,37 @@ func awsAwsquery_deserializeDocumentLoadBalancerAddresses(v *[]*types.LoadBalanc return nil } -func awsAwsquery_deserializeDocumentLoadBalancerAddressesUnwrapped(v *[]*types.LoadBalancerAddress, decoder smithyxml.NodeDecoder) error { - var sv []*types.LoadBalancerAddress +func awsAwsquery_deserializeDocumentLoadBalancerAddressesUnwrapped(v *[]types.LoadBalancerAddress, decoder smithyxml.NodeDecoder) error { + var sv []types.LoadBalancerAddress if *v == nil { - sv = make([]*types.LoadBalancerAddress, 0) + sv = make([]types.LoadBalancerAddress, 0) } else { sv = *v } switch { default: - var mv *types.LoadBalancerAddress + var mv types.LoadBalancerAddress t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerAddress(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLoadBalancerAddress(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentLoadBalancerArns(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLoadBalancerArns(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -7865,20 +7869,17 @@ func awsAwsquery_deserializeDocumentLoadBalancerArns(v *[]*string, decoder smith decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -7891,17 +7892,17 @@ func awsAwsquery_deserializeDocumentLoadBalancerArns(v *[]*string, decoder smith return nil } -func awsAwsquery_deserializeDocumentLoadBalancerArnsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentLoadBalancerArnsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -7909,14 +7910,11 @@ func awsAwsquery_deserializeDocumentLoadBalancerArnsUnwrapped(v *[]*string, deco return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -7958,7 +7956,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerAttribute(v **types.LoadBalancer } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -7974,7 +7972,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerAttribute(v **types.LoadBalancer } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -7987,13 +7985,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerAttribute(v **types.LoadBalancer return nil } -func awsAwsquery_deserializeDocumentLoadBalancerAttributes(v *[]*types.LoadBalancerAttribute, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLoadBalancerAttributes(v *[]types.LoadBalancerAttribute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LoadBalancerAttribute + var sv []types.LoadBalancerAttribute if *v == nil { - sv = make([]*types.LoadBalancerAttribute, 0) + sv = make([]types.LoadBalancerAttribute, 0) } else { sv = *v } @@ -8009,11 +8007,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerAttributes(v *[]*types.LoadBalan } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LoadBalancerAttribute + var col types.LoadBalancerAttribute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerAttribute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLoadBalancerAttribute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8026,23 +8026,25 @@ func awsAwsquery_deserializeDocumentLoadBalancerAttributes(v *[]*types.LoadBalan return nil } -func awsAwsquery_deserializeDocumentLoadBalancerAttributesUnwrapped(v *[]*types.LoadBalancerAttribute, decoder smithyxml.NodeDecoder) error { - var sv []*types.LoadBalancerAttribute +func awsAwsquery_deserializeDocumentLoadBalancerAttributesUnwrapped(v *[]types.LoadBalancerAttribute, decoder smithyxml.NodeDecoder) error { + var sv []types.LoadBalancerAttribute if *v == nil { - sv = make([]*types.LoadBalancerAttribute, 0) + sv = make([]types.LoadBalancerAttribute, 0) } else { sv = *v } switch { default: - var mv *types.LoadBalancerAttribute + var mv types.LoadBalancerAttribute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerAttribute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLoadBalancerAttribute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8083,7 +8085,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerNotFoundException(v **types.Load } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8096,13 +8098,13 @@ func awsAwsquery_deserializeDocumentLoadBalancerNotFoundException(v **types.Load return nil } -func awsAwsquery_deserializeDocumentLoadBalancers(v *[]*types.LoadBalancer, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLoadBalancers(v *[]types.LoadBalancer, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LoadBalancer + var sv []types.LoadBalancer if *v == nil { - sv = make([]*types.LoadBalancer, 0) + sv = make([]types.LoadBalancer, 0) } else { sv = *v } @@ -8118,11 +8120,13 @@ func awsAwsquery_deserializeDocumentLoadBalancers(v *[]*types.LoadBalancer, deco } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LoadBalancer + var col types.LoadBalancer nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancer(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentLoadBalancer(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8135,23 +8139,25 @@ func awsAwsquery_deserializeDocumentLoadBalancers(v *[]*types.LoadBalancer, deco return nil } -func awsAwsquery_deserializeDocumentLoadBalancersUnwrapped(v *[]*types.LoadBalancer, decoder smithyxml.NodeDecoder) error { - var sv []*types.LoadBalancer +func awsAwsquery_deserializeDocumentLoadBalancersUnwrapped(v *[]types.LoadBalancer, decoder smithyxml.NodeDecoder) error { + var sv []types.LoadBalancer if *v == nil { - sv = make([]*types.LoadBalancer, 0) + sv = make([]types.LoadBalancer, 0) } else { sv = *v } switch { default: - var mv *types.LoadBalancer + var mv types.LoadBalancer t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancer(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentLoadBalancer(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8205,7 +8211,7 @@ func awsAwsquery_deserializeDocumentLoadBalancerState(v **types.LoadBalancerStat } if val != nil { xtv := string(val) - sv.Reason = &xtv + sv.Reason = ptr.String(xtv) } default: @@ -8253,7 +8259,7 @@ func awsAwsquery_deserializeDocumentMatcher(v **types.Matcher, decoder smithyxml } if val != nil { xtv := string(val) - sv.GrpcCode = &xtv + sv.GrpcCode = ptr.String(xtv) } case strings.EqualFold("HttpCode", t.Name.Local): @@ -8269,7 +8275,7 @@ func awsAwsquery_deserializeDocumentMatcher(v **types.Matcher, decoder smithyxml } if val != nil { xtv := string(val) - sv.HttpCode = &xtv + sv.HttpCode = ptr.String(xtv) } default: @@ -8317,7 +8323,7 @@ func awsAwsquery_deserializeDocumentOperationNotPermittedException(v **types.Ope } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8403,7 +8409,7 @@ func awsAwsquery_deserializeDocumentPriorityInUseException(v **types.PriorityInU } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8489,7 +8495,7 @@ func awsAwsquery_deserializeDocumentQueryStringKeyValuePair(v **types.QueryStrin } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -8505,7 +8511,7 @@ func awsAwsquery_deserializeDocumentQueryStringKeyValuePair(v **types.QueryStrin } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -8518,13 +8524,13 @@ func awsAwsquery_deserializeDocumentQueryStringKeyValuePair(v **types.QueryStrin return nil } -func awsAwsquery_deserializeDocumentQueryStringKeyValuePairList(v *[]*types.QueryStringKeyValuePair, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentQueryStringKeyValuePairList(v *[]types.QueryStringKeyValuePair, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.QueryStringKeyValuePair + var sv []types.QueryStringKeyValuePair if *v == nil { - sv = make([]*types.QueryStringKeyValuePair, 0) + sv = make([]types.QueryStringKeyValuePair, 0) } else { sv = *v } @@ -8540,11 +8546,13 @@ func awsAwsquery_deserializeDocumentQueryStringKeyValuePairList(v *[]*types.Quer } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.QueryStringKeyValuePair + var col types.QueryStringKeyValuePair nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentQueryStringKeyValuePair(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentQueryStringKeyValuePair(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8557,23 +8565,25 @@ func awsAwsquery_deserializeDocumentQueryStringKeyValuePairList(v *[]*types.Quer return nil } -func awsAwsquery_deserializeDocumentQueryStringKeyValuePairListUnwrapped(v *[]*types.QueryStringKeyValuePair, decoder smithyxml.NodeDecoder) error { - var sv []*types.QueryStringKeyValuePair +func awsAwsquery_deserializeDocumentQueryStringKeyValuePairListUnwrapped(v *[]types.QueryStringKeyValuePair, decoder smithyxml.NodeDecoder) error { + var sv []types.QueryStringKeyValuePair if *v == nil { - sv = make([]*types.QueryStringKeyValuePair, 0) + sv = make([]types.QueryStringKeyValuePair, 0) } else { sv = *v } switch { default: - var mv *types.QueryStringKeyValuePair + var mv types.QueryStringKeyValuePair t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentQueryStringKeyValuePair(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentQueryStringKeyValuePair(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8614,7 +8624,7 @@ func awsAwsquery_deserializeDocumentRedirectActionConfig(v **types.RedirectActio } if val != nil { xtv := string(val) - sv.Host = &xtv + sv.Host = ptr.String(xtv) } case strings.EqualFold("Path", t.Name.Local): @@ -8630,7 +8640,7 @@ func awsAwsquery_deserializeDocumentRedirectActionConfig(v **types.RedirectActio } if val != nil { xtv := string(val) - sv.Path = &xtv + sv.Path = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -8646,7 +8656,7 @@ func awsAwsquery_deserializeDocumentRedirectActionConfig(v **types.RedirectActio } if val != nil { xtv := string(val) - sv.Port = &xtv + sv.Port = ptr.String(xtv) } case strings.EqualFold("Protocol", t.Name.Local): @@ -8662,7 +8672,7 @@ func awsAwsquery_deserializeDocumentRedirectActionConfig(v **types.RedirectActio } if val != nil { xtv := string(val) - sv.Protocol = &xtv + sv.Protocol = ptr.String(xtv) } case strings.EqualFold("Query", t.Name.Local): @@ -8678,7 +8688,7 @@ func awsAwsquery_deserializeDocumentRedirectActionConfig(v **types.RedirectActio } if val != nil { xtv := string(val) - sv.Query = &xtv + sv.Query = ptr.String(xtv) } case strings.EqualFold("StatusCode", t.Name.Local): @@ -8739,7 +8749,7 @@ func awsAwsquery_deserializeDocumentResourceInUseException(v **types.ResourceInU } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8799,7 +8809,7 @@ func awsAwsquery_deserializeDocumentRule(v **types.Rule, decoder smithyxml.NodeD if err != nil { return fmt.Errorf("expected IsDefault to be of type *bool, got %T instead", val) } - sv.IsDefault = &xtv + sv.IsDefault = xtv } case strings.EqualFold("Priority", t.Name.Local): @@ -8815,7 +8825,7 @@ func awsAwsquery_deserializeDocumentRule(v **types.Rule, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.Priority = &xtv + sv.Priority = ptr.String(xtv) } case strings.EqualFold("RuleArn", t.Name.Local): @@ -8831,7 +8841,7 @@ func awsAwsquery_deserializeDocumentRule(v **types.Rule, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.RuleArn = &xtv + sv.RuleArn = ptr.String(xtv) } default: @@ -8879,7 +8889,7 @@ func awsAwsquery_deserializeDocumentRuleCondition(v **types.RuleCondition, decod } if val != nil { xtv := string(val) - sv.Field = &xtv + sv.Field = ptr.String(xtv) } case strings.EqualFold("HostHeaderConfig", t.Name.Local): @@ -8934,13 +8944,13 @@ func awsAwsquery_deserializeDocumentRuleCondition(v **types.RuleCondition, decod return nil } -func awsAwsquery_deserializeDocumentRuleConditionList(v *[]*types.RuleCondition, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRuleConditionList(v *[]types.RuleCondition, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RuleCondition + var sv []types.RuleCondition if *v == nil { - sv = make([]*types.RuleCondition, 0) + sv = make([]types.RuleCondition, 0) } else { sv = *v } @@ -8956,11 +8966,13 @@ func awsAwsquery_deserializeDocumentRuleConditionList(v *[]*types.RuleCondition, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.RuleCondition + var col types.RuleCondition nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRuleCondition(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentRuleCondition(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8973,23 +8985,25 @@ func awsAwsquery_deserializeDocumentRuleConditionList(v *[]*types.RuleCondition, return nil } -func awsAwsquery_deserializeDocumentRuleConditionListUnwrapped(v *[]*types.RuleCondition, decoder smithyxml.NodeDecoder) error { - var sv []*types.RuleCondition +func awsAwsquery_deserializeDocumentRuleConditionListUnwrapped(v *[]types.RuleCondition, decoder smithyxml.NodeDecoder) error { + var sv []types.RuleCondition if *v == nil { - sv = make([]*types.RuleCondition, 0) + sv = make([]types.RuleCondition, 0) } else { sv = *v } switch { default: - var mv *types.RuleCondition + var mv types.RuleCondition t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRuleCondition(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRuleCondition(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9030,7 +9044,7 @@ func awsAwsquery_deserializeDocumentRuleNotFoundException(v **types.RuleNotFound } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9043,13 +9057,13 @@ func awsAwsquery_deserializeDocumentRuleNotFoundException(v **types.RuleNotFound return nil } -func awsAwsquery_deserializeDocumentRules(v *[]*types.Rule, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRules(v *[]types.Rule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Rule + var sv []types.Rule if *v == nil { - sv = make([]*types.Rule, 0) + sv = make([]types.Rule, 0) } else { sv = *v } @@ -9065,11 +9079,13 @@ func awsAwsquery_deserializeDocumentRules(v *[]*types.Rule, decoder smithyxml.No } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Rule + var col types.Rule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9082,35 +9098,37 @@ func awsAwsquery_deserializeDocumentRules(v *[]*types.Rule, decoder smithyxml.No return nil } -func awsAwsquery_deserializeDocumentRulesUnwrapped(v *[]*types.Rule, decoder smithyxml.NodeDecoder) error { - var sv []*types.Rule +func awsAwsquery_deserializeDocumentRulesUnwrapped(v *[]types.Rule, decoder smithyxml.NodeDecoder) error { + var sv []types.Rule if *v == nil { - sv = make([]*types.Rule, 0) + sv = make([]types.Rule, 0) } else { sv = *v } switch { default: - var mv *types.Rule + var mv types.Rule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentSecurityGroups(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSecurityGroups(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -9128,20 +9146,17 @@ func awsAwsquery_deserializeDocumentSecurityGroups(v *[]*string, decoder smithyx decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -9154,17 +9169,17 @@ func awsAwsquery_deserializeDocumentSecurityGroups(v *[]*string, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentSecurityGroupsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentSecurityGroupsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -9172,14 +9187,11 @@ func awsAwsquery_deserializeDocumentSecurityGroupsUnwrapped(v *[]*string, decode return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -9224,13 +9236,13 @@ func awsAwsquery_deserializeDocumentSourceIpConditionConfig(v **types.SourceIpCo return nil } -func awsAwsquery_deserializeDocumentSslPolicies(v *[]*types.SslPolicy, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSslPolicies(v *[]types.SslPolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SslPolicy + var sv []types.SslPolicy if *v == nil { - sv = make([]*types.SslPolicy, 0) + sv = make([]types.SslPolicy, 0) } else { sv = *v } @@ -9246,11 +9258,13 @@ func awsAwsquery_deserializeDocumentSslPolicies(v *[]*types.SslPolicy, decoder s } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.SslPolicy + var col types.SslPolicy nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSslPolicy(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSslPolicy(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9263,23 +9277,25 @@ func awsAwsquery_deserializeDocumentSslPolicies(v *[]*types.SslPolicy, decoder s return nil } -func awsAwsquery_deserializeDocumentSslPoliciesUnwrapped(v *[]*types.SslPolicy, decoder smithyxml.NodeDecoder) error { - var sv []*types.SslPolicy +func awsAwsquery_deserializeDocumentSslPoliciesUnwrapped(v *[]types.SslPolicy, decoder smithyxml.NodeDecoder) error { + var sv []types.SslPolicy if *v == nil { - sv = make([]*types.SslPolicy, 0) + sv = make([]types.SslPolicy, 0) } else { sv = *v } switch { default: - var mv *types.SslPolicy + var mv types.SslPolicy t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSslPolicy(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSslPolicy(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9326,7 +9342,7 @@ func awsAwsquery_deserializeDocumentSslPolicy(v **types.SslPolicy, decoder smith } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("SslProtocols", t.Name.Local): @@ -9380,7 +9396,7 @@ func awsAwsquery_deserializeDocumentSSLPolicyNotFoundException(v **types.SSLPoli } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9393,13 +9409,13 @@ func awsAwsquery_deserializeDocumentSSLPolicyNotFoundException(v **types.SSLPoli return nil } -func awsAwsquery_deserializeDocumentSslProtocols(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSslProtocols(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -9417,20 +9433,17 @@ func awsAwsquery_deserializeDocumentSslProtocols(v *[]*string, decoder smithyxml decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -9443,17 +9456,17 @@ func awsAwsquery_deserializeDocumentSslProtocols(v *[]*string, decoder smithyxml return nil } -func awsAwsquery_deserializeDocumentSslProtocolsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentSslProtocolsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -9461,14 +9474,11 @@ func awsAwsquery_deserializeDocumentSslProtocolsUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -9510,7 +9520,7 @@ func awsAwsquery_deserializeDocumentSubnetNotFoundException(v **types.SubnetNotF } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9558,7 +9568,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -9574,7 +9584,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -9622,7 +9632,7 @@ func awsAwsquery_deserializeDocumentTagDescription(v **types.TagDescription, dec } if val != nil { xtv := string(val) - sv.ResourceArn = &xtv + sv.ResourceArn = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -9641,13 +9651,13 @@ func awsAwsquery_deserializeDocumentTagDescription(v **types.TagDescription, dec return nil } -func awsAwsquery_deserializeDocumentTagDescriptions(v *[]*types.TagDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagDescriptions(v *[]types.TagDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TagDescription + var sv []types.TagDescription if *v == nil { - sv = make([]*types.TagDescription, 0) + sv = make([]types.TagDescription, 0) } else { sv = *v } @@ -9663,11 +9673,13 @@ func awsAwsquery_deserializeDocumentTagDescriptions(v *[]*types.TagDescription, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.TagDescription + var col types.TagDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTagDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTagDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9680,35 +9692,37 @@ func awsAwsquery_deserializeDocumentTagDescriptions(v *[]*types.TagDescription, return nil } -func awsAwsquery_deserializeDocumentTagDescriptionsUnwrapped(v *[]*types.TagDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.TagDescription +func awsAwsquery_deserializeDocumentTagDescriptionsUnwrapped(v *[]types.TagDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.TagDescription if *v == nil { - sv = make([]*types.TagDescription, 0) + sv = make([]types.TagDescription, 0) } else { sv = *v } switch { default: - var mv *types.TagDescription + var mv types.TagDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTagDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTagDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -9724,11 +9738,13 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9741,23 +9757,25 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9798,7 +9816,7 @@ func awsAwsquery_deserializeDocumentTargetDescription(v **types.TargetDescriptio } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -9814,7 +9832,7 @@ func awsAwsquery_deserializeDocumentTargetDescription(v **types.TargetDescriptio } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -9879,7 +9897,7 @@ func awsAwsquery_deserializeDocumentTargetGroup(v **types.TargetGroup, decoder s if err != nil { return fmt.Errorf("expected HealthCheckEnabled to be of type *bool, got %T instead", val) } - sv.HealthCheckEnabled = &xtv + sv.HealthCheckEnabled = ptr.Bool(xtv) } case strings.EqualFold("HealthCheckIntervalSeconds", t.Name.Local): @@ -9912,7 +9930,7 @@ func awsAwsquery_deserializeDocumentTargetGroup(v **types.TargetGroup, decoder s } if val != nil { xtv := string(val) - sv.HealthCheckPath = &xtv + sv.HealthCheckPath = ptr.String(xtv) } case strings.EqualFold("HealthCheckPort", t.Name.Local): @@ -9928,7 +9946,7 @@ func awsAwsquery_deserializeDocumentTargetGroup(v **types.TargetGroup, decoder s } if val != nil { xtv := string(val) - sv.HealthCheckPort = &xtv + sv.HealthCheckPort = ptr.String(xtv) } case strings.EqualFold("HealthCheckProtocol", t.Name.Local): @@ -10033,7 +10051,7 @@ func awsAwsquery_deserializeDocumentTargetGroup(v **types.TargetGroup, decoder s } if val != nil { xtv := string(val) - sv.ProtocolVersion = &xtv + sv.ProtocolVersion = ptr.String(xtv) } case strings.EqualFold("TargetGroupArn", t.Name.Local): @@ -10049,7 +10067,7 @@ func awsAwsquery_deserializeDocumentTargetGroup(v **types.TargetGroup, decoder s } if val != nil { xtv := string(val) - sv.TargetGroupArn = &xtv + sv.TargetGroupArn = ptr.String(xtv) } case strings.EqualFold("TargetGroupName", t.Name.Local): @@ -10065,7 +10083,7 @@ func awsAwsquery_deserializeDocumentTargetGroup(v **types.TargetGroup, decoder s } if val != nil { xtv := string(val) - sv.TargetGroupName = &xtv + sv.TargetGroupName = ptr.String(xtv) } case strings.EqualFold("TargetType", t.Name.Local): @@ -10111,7 +10129,7 @@ func awsAwsquery_deserializeDocumentTargetGroup(v **types.TargetGroup, decoder s } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -10159,7 +10177,7 @@ func awsAwsquery_deserializeDocumentTargetGroupAssociationLimitException(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10207,7 +10225,7 @@ func awsAwsquery_deserializeDocumentTargetGroupAttribute(v **types.TargetGroupAt } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -10223,7 +10241,7 @@ func awsAwsquery_deserializeDocumentTargetGroupAttribute(v **types.TargetGroupAt } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -10236,13 +10254,13 @@ func awsAwsquery_deserializeDocumentTargetGroupAttribute(v **types.TargetGroupAt return nil } -func awsAwsquery_deserializeDocumentTargetGroupAttributes(v *[]*types.TargetGroupAttribute, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTargetGroupAttributes(v *[]types.TargetGroupAttribute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TargetGroupAttribute + var sv []types.TargetGroupAttribute if *v == nil { - sv = make([]*types.TargetGroupAttribute, 0) + sv = make([]types.TargetGroupAttribute, 0) } else { sv = *v } @@ -10258,11 +10276,13 @@ func awsAwsquery_deserializeDocumentTargetGroupAttributes(v *[]*types.TargetGrou } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.TargetGroupAttribute + var col types.TargetGroupAttribute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetGroupAttribute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTargetGroupAttribute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10275,35 +10295,37 @@ func awsAwsquery_deserializeDocumentTargetGroupAttributes(v *[]*types.TargetGrou return nil } -func awsAwsquery_deserializeDocumentTargetGroupAttributesUnwrapped(v *[]*types.TargetGroupAttribute, decoder smithyxml.NodeDecoder) error { - var sv []*types.TargetGroupAttribute +func awsAwsquery_deserializeDocumentTargetGroupAttributesUnwrapped(v *[]types.TargetGroupAttribute, decoder smithyxml.NodeDecoder) error { + var sv []types.TargetGroupAttribute if *v == nil { - sv = make([]*types.TargetGroupAttribute, 0) + sv = make([]types.TargetGroupAttribute, 0) } else { sv = *v } switch { default: - var mv *types.TargetGroupAttribute + var mv types.TargetGroupAttribute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetGroupAttribute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTargetGroupAttribute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentTargetGroupList(v *[]*types.TargetGroupTuple, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTargetGroupList(v *[]types.TargetGroupTuple, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TargetGroupTuple + var sv []types.TargetGroupTuple if *v == nil { - sv = make([]*types.TargetGroupTuple, 0) + sv = make([]types.TargetGroupTuple, 0) } else { sv = *v } @@ -10319,11 +10341,13 @@ func awsAwsquery_deserializeDocumentTargetGroupList(v *[]*types.TargetGroupTuple } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.TargetGroupTuple + var col types.TargetGroupTuple nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetGroupTuple(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTargetGroupTuple(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10336,23 +10360,25 @@ func awsAwsquery_deserializeDocumentTargetGroupList(v *[]*types.TargetGroupTuple return nil } -func awsAwsquery_deserializeDocumentTargetGroupListUnwrapped(v *[]*types.TargetGroupTuple, decoder smithyxml.NodeDecoder) error { - var sv []*types.TargetGroupTuple +func awsAwsquery_deserializeDocumentTargetGroupListUnwrapped(v *[]types.TargetGroupTuple, decoder smithyxml.NodeDecoder) error { + var sv []types.TargetGroupTuple if *v == nil { - sv = make([]*types.TargetGroupTuple, 0) + sv = make([]types.TargetGroupTuple, 0) } else { sv = *v } switch { default: - var mv *types.TargetGroupTuple + var mv types.TargetGroupTuple t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetGroupTuple(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTargetGroupTuple(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10393,7 +10419,7 @@ func awsAwsquery_deserializeDocumentTargetGroupNotFoundException(v **types.Targe } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10406,13 +10432,13 @@ func awsAwsquery_deserializeDocumentTargetGroupNotFoundException(v **types.Targe return nil } -func awsAwsquery_deserializeDocumentTargetGroups(v *[]*types.TargetGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTargetGroups(v *[]types.TargetGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TargetGroup + var sv []types.TargetGroup if *v == nil { - sv = make([]*types.TargetGroup, 0) + sv = make([]types.TargetGroup, 0) } else { sv = *v } @@ -10428,11 +10454,13 @@ func awsAwsquery_deserializeDocumentTargetGroups(v *[]*types.TargetGroup, decode } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.TargetGroup + var col types.TargetGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTargetGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10445,23 +10473,25 @@ func awsAwsquery_deserializeDocumentTargetGroups(v *[]*types.TargetGroup, decode return nil } -func awsAwsquery_deserializeDocumentTargetGroupsUnwrapped(v *[]*types.TargetGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.TargetGroup +func awsAwsquery_deserializeDocumentTargetGroupsUnwrapped(v *[]types.TargetGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.TargetGroup if *v == nil { - sv = make([]*types.TargetGroup, 0) + sv = make([]types.TargetGroup, 0) } else { sv = *v } switch { default: - var mv *types.TargetGroup + var mv types.TargetGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTargetGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10519,7 +10549,7 @@ func awsAwsquery_deserializeDocumentTargetGroupStickinessConfig(v **types.Target if err != nil { return fmt.Errorf("expected TargetGroupStickinessEnabled to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = ptr.Bool(xtv) } default: @@ -10567,7 +10597,7 @@ func awsAwsquery_deserializeDocumentTargetGroupTuple(v **types.TargetGroupTuple, } if val != nil { xtv := string(val) - sv.TargetGroupArn = &xtv + sv.TargetGroupArn = ptr.String(xtv) } case strings.EqualFold("Weight", t.Name.Local): @@ -10632,7 +10662,7 @@ func awsAwsquery_deserializeDocumentTargetHealth(v **types.TargetHealth, decoder } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("Reason", t.Name.Local): @@ -10706,7 +10736,7 @@ func awsAwsquery_deserializeDocumentTargetHealthDescription(v **types.TargetHeal } if val != nil { xtv := string(val) - sv.HealthCheckPort = &xtv + sv.HealthCheckPort = ptr.String(xtv) } case strings.EqualFold("Target", t.Name.Local): @@ -10731,13 +10761,13 @@ func awsAwsquery_deserializeDocumentTargetHealthDescription(v **types.TargetHeal return nil } -func awsAwsquery_deserializeDocumentTargetHealthDescriptions(v *[]*types.TargetHealthDescription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTargetHealthDescriptions(v *[]types.TargetHealthDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TargetHealthDescription + var sv []types.TargetHealthDescription if *v == nil { - sv = make([]*types.TargetHealthDescription, 0) + sv = make([]types.TargetHealthDescription, 0) } else { sv = *v } @@ -10753,11 +10783,13 @@ func awsAwsquery_deserializeDocumentTargetHealthDescriptions(v *[]*types.TargetH } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.TargetHealthDescription + var col types.TargetHealthDescription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetHealthDescription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTargetHealthDescription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10770,23 +10802,25 @@ func awsAwsquery_deserializeDocumentTargetHealthDescriptions(v *[]*types.TargetH return nil } -func awsAwsquery_deserializeDocumentTargetHealthDescriptionsUnwrapped(v *[]*types.TargetHealthDescription, decoder smithyxml.NodeDecoder) error { - var sv []*types.TargetHealthDescription +func awsAwsquery_deserializeDocumentTargetHealthDescriptionsUnwrapped(v *[]types.TargetHealthDescription, decoder smithyxml.NodeDecoder) error { + var sv []types.TargetHealthDescription if *v == nil { - sv = make([]*types.TargetHealthDescription, 0) + sv = make([]types.TargetHealthDescription, 0) } else { sv = *v } switch { default: - var mv *types.TargetHealthDescription + var mv types.TargetHealthDescription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetHealthDescription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTargetHealthDescription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10827,7 +10861,7 @@ func awsAwsquery_deserializeDocumentTooManyActionsException(v **types.TooManyAct } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10875,7 +10909,7 @@ func awsAwsquery_deserializeDocumentTooManyCertificatesException(v **types.TooMa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10923,7 +10957,7 @@ func awsAwsquery_deserializeDocumentTooManyListenersException(v **types.TooManyL } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10971,7 +11005,7 @@ func awsAwsquery_deserializeDocumentTooManyLoadBalancersException(v **types.TooM } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11019,7 +11053,7 @@ func awsAwsquery_deserializeDocumentTooManyRegistrationsForTargetIdException(v * } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11067,7 +11101,7 @@ func awsAwsquery_deserializeDocumentTooManyRulesException(v **types.TooManyRules } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11115,7 +11149,7 @@ func awsAwsquery_deserializeDocumentTooManyTagsException(v **types.TooManyTagsEx } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11163,7 +11197,7 @@ func awsAwsquery_deserializeDocumentTooManyTargetGroupsException(v **types.TooMa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11211,7 +11245,7 @@ func awsAwsquery_deserializeDocumentTooManyTargetsException(v **types.TooManyTar } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11259,7 +11293,7 @@ func awsAwsquery_deserializeDocumentTooManyUniqueTargetGroupsPerLoadBalancerExce } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11307,7 +11341,7 @@ func awsAwsquery_deserializeDocumentUnsupportedProtocolException(v **types.Unsup } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11743,7 +11777,7 @@ func awsAwsquery_deserializeOpDocumentDescribeAccountLimitsOutput(v **DescribeAc } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } default: @@ -11797,7 +11831,7 @@ func awsAwsquery_deserializeOpDocumentDescribeListenerCertificatesOutput(v **Des } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } default: @@ -11851,7 +11885,7 @@ func awsAwsquery_deserializeOpDocumentDescribeListenersOutput(v **DescribeListen } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } default: @@ -11943,7 +11977,7 @@ func awsAwsquery_deserializeOpDocumentDescribeLoadBalancersOutput(v **DescribeLo } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } default: @@ -11991,7 +12025,7 @@ func awsAwsquery_deserializeOpDocumentDescribeRulesOutput(v **DescribeRulesOutpu } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("Rules", t.Name.Local): @@ -12045,7 +12079,7 @@ func awsAwsquery_deserializeOpDocumentDescribeSSLPoliciesOutput(v **DescribeSSLP } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("SslPolicies", t.Name.Local): @@ -12175,7 +12209,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTargetGroupsOutput(v **DescribeTar } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("TargetGroups", t.Name.Local): diff --git a/service/elasticloadbalancingv2/go.mod b/service/elasticloadbalancingv2/go.mod index 1ee3be2abee..a72d9a8877b 100644 --- a/service/elasticloadbalancingv2/go.mod +++ b/service/elasticloadbalancingv2/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/elasticloadbalancingv2/serializers.go b/service/elasticloadbalancingv2/serializers.go index 210457ccd99..869f5669134 100644 --- a/service/elasticloadbalancingv2/serializers.go +++ b/service/elasticloadbalancingv2/serializers.go @@ -1941,41 +1941,35 @@ func awsAwsquery_serializeDocumentAction(v *types.Action, value query.Value) err return nil } -func awsAwsquery_serializeDocumentActions(v []*types.Action, value query.Value) error { +func awsAwsquery_serializeDocumentActions(v []types.Action, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentAction(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentAction(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentAlpnPolicyName(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAlpnPolicyName(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentAuthenticateCognitoActionAuthenticationRequestExtraParams(v map[string]*string, value query.Value) error { +func awsAwsquery_serializeDocumentAuthenticateCognitoActionAuthenticationRequestExtraParams(v map[string]string, value query.Value) error { if len(v) == 0 { return nil } @@ -1988,11 +1982,8 @@ func awsAwsquery_serializeDocumentAuthenticateCognitoActionAuthenticationRequest sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2046,7 +2037,7 @@ func awsAwsquery_serializeDocumentAuthenticateCognitoActionConfig(v *types.Authe return nil } -func awsAwsquery_serializeDocumentAuthenticateOidcActionAuthenticationRequestExtraParams(v map[string]*string, value query.Value) error { +func awsAwsquery_serializeDocumentAuthenticateOidcActionAuthenticationRequestExtraParams(v map[string]string, value query.Value) error { if len(v) == 0 { return nil } @@ -2059,11 +2050,8 @@ func awsAwsquery_serializeDocumentAuthenticateOidcActionAuthenticationRequestExt sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2154,18 +2142,15 @@ func awsAwsquery_serializeDocumentCertificate(v *types.Certificate, value query. return nil } -func awsAwsquery_serializeDocumentCertificateList(v []*types.Certificate, value query.Value) error { +func awsAwsquery_serializeDocumentCertificateList(v []types.Certificate, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentCertificate(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentCertificate(&v[i], av); err != nil { return err } } @@ -2262,50 +2247,41 @@ func awsAwsquery_serializeDocumentHttpRequestMethodConditionConfig(v *types.Http return nil } -func awsAwsquery_serializeDocumentListenerArns(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentListenerArns(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentListOfString(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentListOfString(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentLoadBalancerArns(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentLoadBalancerArns(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2327,36 +2303,30 @@ func awsAwsquery_serializeDocumentLoadBalancerAttribute(v *types.LoadBalancerAtt return nil } -func awsAwsquery_serializeDocumentLoadBalancerAttributes(v []*types.LoadBalancerAttribute, value query.Value) error { +func awsAwsquery_serializeDocumentLoadBalancerAttributes(v []types.LoadBalancerAttribute, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentLoadBalancerAttribute(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentLoadBalancerAttribute(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentLoadBalancerNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentLoadBalancerNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2423,18 +2393,15 @@ func awsAwsquery_serializeDocumentQueryStringKeyValuePair(v *types.QueryStringKe return nil } -func awsAwsquery_serializeDocumentQueryStringKeyValuePairList(v []*types.QueryStringKeyValuePair, value query.Value) error { +func awsAwsquery_serializeDocumentQueryStringKeyValuePairList(v []types.QueryStringKeyValuePair, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentQueryStringKeyValuePair(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentQueryStringKeyValuePair(&v[i], av); err != nil { return err } } @@ -2478,34 +2445,28 @@ func awsAwsquery_serializeDocumentRedirectActionConfig(v *types.RedirectActionCo return nil } -func awsAwsquery_serializeDocumentResourceArns(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentResourceArns(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentRuleArns(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentRuleArns(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2571,36 +2532,30 @@ func awsAwsquery_serializeDocumentRuleCondition(v *types.RuleCondition, value qu return nil } -func awsAwsquery_serializeDocumentRuleConditionList(v []*types.RuleCondition, value query.Value) error { +func awsAwsquery_serializeDocumentRuleConditionList(v []types.RuleCondition, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentRuleCondition(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentRuleCondition(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentRulePriorityList(v []*types.RulePriorityPair, value query.Value) error { +func awsAwsquery_serializeDocumentRulePriorityList(v []types.RulePriorityPair, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentRulePriorityPair(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentRulePriorityPair(&v[i], av); err != nil { return err } } @@ -2624,18 +2579,15 @@ func awsAwsquery_serializeDocumentRulePriorityPair(v *types.RulePriorityPair, va return nil } -func awsAwsquery_serializeDocumentSecurityGroups(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSecurityGroups(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2654,18 +2606,15 @@ func awsAwsquery_serializeDocumentSourceIpConditionConfig(v *types.SourceIpCondi return nil } -func awsAwsquery_serializeDocumentSslPolicyNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSslPolicyNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2692,36 +2641,30 @@ func awsAwsquery_serializeDocumentSubnetMapping(v *types.SubnetMapping, value qu return nil } -func awsAwsquery_serializeDocumentSubnetMappings(v []*types.SubnetMapping, value query.Value) error { +func awsAwsquery_serializeDocumentSubnetMappings(v []types.SubnetMapping, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentSubnetMapping(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentSubnetMapping(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentSubnets(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSubnets(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2743,34 +2686,28 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTagKeys(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentTagKeys(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentTagList(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTagList(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2799,36 +2736,30 @@ func awsAwsquery_serializeDocumentTargetDescription(v *types.TargetDescription, return nil } -func awsAwsquery_serializeDocumentTargetDescriptions(v []*types.TargetDescription, value query.Value) error { +func awsAwsquery_serializeDocumentTargetDescriptions(v []types.TargetDescription, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTargetDescription(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTargetDescription(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentTargetGroupArns(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentTargetGroupArns(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2850,54 +2781,45 @@ func awsAwsquery_serializeDocumentTargetGroupAttribute(v *types.TargetGroupAttri return nil } -func awsAwsquery_serializeDocumentTargetGroupAttributes(v []*types.TargetGroupAttribute, value query.Value) error { +func awsAwsquery_serializeDocumentTargetGroupAttributes(v []types.TargetGroupAttribute, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTargetGroupAttribute(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTargetGroupAttribute(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentTargetGroupList(v []*types.TargetGroupTuple, value query.Value) error { +func awsAwsquery_serializeDocumentTargetGroupList(v []types.TargetGroupTuple, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTargetGroupTuple(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTargetGroupTuple(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentTargetGroupNames(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentTargetGroupNames(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/elasticloadbalancingv2/types/types.go b/service/elasticloadbalancingv2/types/types.go index e09aad42b85..e10c702d67a 100644 --- a/service/elasticloadbalancingv2/types/types.go +++ b/service/elasticloadbalancingv2/types/types.go @@ -71,7 +71,7 @@ type AuthenticateCognitoActionConfig struct { // The query parameters (up to 10) to include in the redirect request to the // authorization endpoint. - AuthenticationRequestExtraParams map[string]*string + AuthenticationRequestExtraParams map[string]string // The behavior if the user is not authenticated. The following are possible // values: @@ -134,7 +134,7 @@ type AuthenticateOidcActionConfig struct { // The query parameters (up to 10) to include in the redirect request to the // authorization endpoint. - AuthenticationRequestExtraParams map[string]*string + AuthenticationRequestExtraParams map[string]string // The OAuth 2.0 client secret. This parameter is required if you are creating a // rule. If you are modifying a rule, you can omit this parameter if you set @@ -178,7 +178,7 @@ type AvailabilityZone struct { // you can specify one Elastic IP address per Availability Zone when you create an // internal-facing load balancer. For internal load balancers, you can specify a // private IP address from the IPv4 range of the subnet. - LoadBalancerAddresses []*LoadBalancerAddress + LoadBalancerAddresses []LoadBalancerAddress // [Application Load Balancers on Outposts] The ID of the Outpost. OutpostId *string @@ -210,7 +210,7 @@ type Cipher struct { Name *string // The priority of the cipher. - Priority *int32 + Priority int32 } // Information about an action that returns a custom HTTP response. @@ -237,7 +237,7 @@ type ForwardActionConfig struct { // One or more target groups. For Network Load Balancers, you can specify a single // target group. - TargetGroups []*TargetGroupTuple + TargetGroups []TargetGroupTuple } // Information about a host header condition. @@ -248,7 +248,7 @@ type HostHeaderConditionConfig struct { // * (matches 0 or more characters) and ? (matches exactly 1 character). If you // specify multiple strings, the condition is satisfied if one of the strings // matches the host name. - Values []*string + Values []string } // Information about an HTTP header condition. There is a set of standard HTTP @@ -270,7 +270,7 @@ type HttpHeaderConditionConfig struct { // If you specify multiple strings, the condition is satisfied if one of the // strings matches the value of the HTTP header. To require that all of the strings // are a match, create one condition per string. - Values []*string + Values []string } // Information about an HTTP method condition. HTTP defines a set of request @@ -287,7 +287,7 @@ type HttpRequestMethodConditionConfig struct { // of the strings matches the HTTP request method. We recommend that you route GET // and HEAD requests in the same way, because the response to a HEAD request may be // cached. - Values []*string + Values []string } // Information about an Elastic Load Balancing resource limit for your AWS account. @@ -338,13 +338,13 @@ type Listener struct { // [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) // policy. - AlpnPolicy []*string + AlpnPolicy []string // [HTTPS or TLS listener] The default certificate for the listener. - Certificates []*Certificate + Certificates []Certificate // The default actions for the listener. - DefaultActions []*Action + DefaultActions []Action // The Amazon Resource Name (ARN) of the listener. ListenerArn *string @@ -367,7 +367,7 @@ type Listener struct { type LoadBalancer struct { // The subnets for the load balancer. - AvailabilityZones []*AvailabilityZone + AvailabilityZones []AvailabilityZone // The ID of the Amazon Route 53 hosted zone associated with the load balancer. CanonicalHostedZoneId *string @@ -404,7 +404,7 @@ type LoadBalancer struct { Scheme LoadBalancerSchemeEnum // The IDs of the security groups for the load balancer. - SecurityGroups []*string + SecurityGroups []string // The state of the load balancer. State *LoadBalancerState @@ -524,7 +524,7 @@ type PathPatternConditionConfig struct { // condition is satisfied if one of them matches the request URL. The path pattern // is compared only to the path of the URL, not to its query string. To compare // against the query string, use QueryStringConditionConfig. - Values []*string + Values []string } // Information about a query string condition. The query string component of a URI @@ -541,7 +541,7 @@ type QueryStringConditionConfig struct { // character in a query string, you must escape these characters in Values using a // '\' character. If you specify multiple key/value pairs or values, the condition // is satisfied if one of them is found in the query string. - Values []*QueryStringKeyValuePair + Values []QueryStringKeyValuePair } // Information about a key/value pair. @@ -609,15 +609,15 @@ type Rule struct { // The actions. Each rule must include exactly one of the following types of // actions: forward, redirect, or fixed-response, and it must be the last action to // be performed. - Actions []*Action + Actions []Action // The conditions. Each rule can include zero or one of the following conditions: // http-request-method, host-header, path-pattern, and source-ip, and zero or more // of the following conditions: http-header and query-string. - Conditions []*RuleCondition + Conditions []RuleCondition // Indicates whether this is the default rule. - IsDefault *bool + IsDefault bool // The priority. Priority *string @@ -704,7 +704,7 @@ type RuleCondition struct { // // * ? (matches exactly 1 // character) - Values []*string + Values []string } // Information about the priorities for the rules for a listener. @@ -729,20 +729,20 @@ type SourceIpConditionConfig struct { // the CIDR blocks. This condition is not satisfied by the addresses in the // X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, // use HttpHeaderConditionConfig. - Values []*string + Values []string } // Information about a policy used for SSL negotiation. type SslPolicy struct { // The ciphers. - Ciphers []*Cipher + Ciphers []Cipher // The name of the policy. Name *string // The protocols. - SslProtocols []*string + SslProtocols []string } // Information about a subnet mapping. @@ -778,7 +778,7 @@ type TagDescription struct { ResourceArn *string // Information about the tags. - Tags []*Tag + Tags []Tag } // Information about a target. @@ -838,7 +838,7 @@ type TargetGroup struct { // The Amazon Resource Names (ARN) of the load balancers that route traffic to this // target group. - LoadBalancerArns []*string + LoadBalancerArns []string // The HTTP or gRPC codes to use when checking for a successful response from a // target. diff --git a/service/elasticloadbalancingv2/validators.go b/service/elasticloadbalancingv2/validators.go index 1378c0d2245..edc9a1b0ee5 100644 --- a/service/elasticloadbalancingv2/validators.go +++ b/service/elasticloadbalancingv2/validators.go @@ -717,13 +717,13 @@ func validateAction(v *types.Action) error { } } -func validateActions(v []*types.Action) error { +func validateActions(v []types.Action) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Actions"} for i := range v { - if err := validateAction(v[i]); err != nil { + if err := validateAction(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -827,13 +827,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -859,13 +859,13 @@ func validateTargetDescription(v *types.TargetDescription) error { } } -func validateTargetDescriptions(v []*types.TargetDescription) error { +func validateTargetDescriptions(v []types.TargetDescription) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TargetDescriptions"} for i := range v { - if err := validateTargetDescription(v[i]); err != nil { + if err := validateTargetDescription(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/elasticsearchservice/api_op_AddTags.go b/service/elasticsearchservice/api_op_AddTags.go index e3c5030c682..6e3b0e8eb56 100644 --- a/service/elasticsearchservice/api_op_AddTags.go +++ b/service/elasticsearchservice/api_op_AddTags.go @@ -42,7 +42,7 @@ type AddTagsInput struct { // List of Tag that need to be added for the Elasticsearch domain. // // This member is required. - TagList []*types.Tag + TagList []types.Tag } type AddTagsOutput struct { diff --git a/service/elasticsearchservice/api_op_CreateElasticsearchDomain.go b/service/elasticsearchservice/api_op_CreateElasticsearchDomain.go index 14b5987ce6c..c6bb217e755 100644 --- a/service/elasticsearchservice/api_op_CreateElasticsearchDomain.go +++ b/service/elasticsearchservice/api_op_CreateElasticsearchDomain.go @@ -48,7 +48,7 @@ type CreateElasticsearchDomainInput struct { // true. See Configuration Advanced Options // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options) // for more information. - AdvancedOptions map[string]*string + AdvancedOptions map[string]string // Specifies advanced security options. AdvancedSecurityOptions *types.AdvancedSecurityOptionsInput @@ -80,7 +80,7 @@ type CreateElasticsearchDomainInput struct { // Map of LogType and LogPublishingOption, each containing options to publish a // given type of Elasticsearch log. - LogPublishingOptions map[string]*types.LogPublishingOption + LogPublishingOptions map[string]types.LogPublishingOption // Specifies the NodeToNodeEncryptionOptions. NodeToNodeEncryptionOptions *types.NodeToNodeEncryptionOptions diff --git a/service/elasticsearchservice/api_op_DescribeElasticsearchDomains.go b/service/elasticsearchservice/api_op_DescribeElasticsearchDomains.go index a5dc0a2369a..1ca957b6a8e 100644 --- a/service/elasticsearchservice/api_op_DescribeElasticsearchDomains.go +++ b/service/elasticsearchservice/api_op_DescribeElasticsearchDomains.go @@ -35,7 +35,7 @@ type DescribeElasticsearchDomainsInput struct { // The Elasticsearch domains for which you want information. // // This member is required. - DomainNames []*string + DomainNames []string } // The result of a DescribeElasticsearchDomains request. Contains the status of the @@ -45,7 +45,7 @@ type DescribeElasticsearchDomainsOutput struct { // The status of the domains requested in the DescribeElasticsearchDomains request. // // This member is required. - DomainStatusList []*types.ElasticsearchDomainStatus + DomainStatusList []types.ElasticsearchDomainStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticsearchservice/api_op_DescribeElasticsearchInstanceTypeLimits.go b/service/elasticsearchservice/api_op_DescribeElasticsearchInstanceTypeLimits.go index ff214963d3a..37f6fcc1922 100644 --- a/service/elasticsearchservice/api_op_DescribeElasticsearchInstanceTypeLimits.go +++ b/service/elasticsearchservice/api_op_DescribeElasticsearchInstanceTypeLimits.go @@ -65,7 +65,7 @@ type DescribeElasticsearchInstanceTypeLimitsOutput struct { // // * ultra_warm: If the given InstanceType is used as warm // node - LimitsByRole map[string]*types.Limits + LimitsByRole map[string]types.Limits // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticsearchservice/api_op_DescribeInboundCrossClusterSearchConnections.go b/service/elasticsearchservice/api_op_DescribeInboundCrossClusterSearchConnections.go index b019d68e717..5a9af83faa5 100644 --- a/service/elasticsearchservice/api_op_DescribeInboundCrossClusterSearchConnections.go +++ b/service/elasticsearchservice/api_op_DescribeInboundCrossClusterSearchConnections.go @@ -46,11 +46,11 @@ type DescribeInboundCrossClusterSearchConnectionsInput struct { // // * // destination-domain-info.domain-name - Filters []*types.Filter + Filters []types.Filter // Set this value to limit the number of results returned. If not specified, // defaults to 100. - MaxResults *int32 + MaxResults int32 // NextToken is sent in case the earlier API call results contain the NextToken. It // is used for pagination. @@ -63,7 +63,7 @@ type DescribeInboundCrossClusterSearchConnectionsOutput struct { // Consists of list of InboundCrossClusterSearchConnection matching the specified // filter criteria. - CrossClusterSearchConnections []*types.InboundCrossClusterSearchConnection + CrossClusterSearchConnections []types.InboundCrossClusterSearchConnection // If more results are available and NextToken is present, make the next request to // the same API with the received NextToken to paginate the remaining results. diff --git a/service/elasticsearchservice/api_op_DescribeOutboundCrossClusterSearchConnections.go b/service/elasticsearchservice/api_op_DescribeOutboundCrossClusterSearchConnections.go index 62f4dc5c3a4..bd8f5277c28 100644 --- a/service/elasticsearchservice/api_op_DescribeOutboundCrossClusterSearchConnections.go +++ b/service/elasticsearchservice/api_op_DescribeOutboundCrossClusterSearchConnections.go @@ -46,11 +46,11 @@ type DescribeOutboundCrossClusterSearchConnectionsInput struct { // // * // source-domain-info.domain-name - Filters []*types.Filter + Filters []types.Filter // Set this value to limit the number of results returned. If not specified, // defaults to 100. - MaxResults *int32 + MaxResults int32 // NextToken is sent in case the earlier API call results contain the NextToken. It // is used for pagination. @@ -63,7 +63,7 @@ type DescribeOutboundCrossClusterSearchConnectionsOutput struct { // Consists of list of OutboundCrossClusterSearchConnection matching the specified // filter criteria. - CrossClusterSearchConnections []*types.OutboundCrossClusterSearchConnection + CrossClusterSearchConnections []types.OutboundCrossClusterSearchConnection // If more results are available and NextToken is present, make the next request to // the same API with the received NextToken to paginate the remaining results. diff --git a/service/elasticsearchservice/api_op_DescribePackages.go b/service/elasticsearchservice/api_op_DescribePackages.go index a24caa65906..18b977600d3 100644 --- a/service/elasticsearchservice/api_op_DescribePackages.go +++ b/service/elasticsearchservice/api_op_DescribePackages.go @@ -32,10 +32,10 @@ func (c *Client) DescribePackages(ctx context.Context, params *DescribePackagesI type DescribePackagesInput struct { // Only returns packages that match the DescribePackagesFilterList values. - Filters []*types.DescribePackagesFilter + Filters []types.DescribePackagesFilter // Limits results to a maximum number of packages. - MaxResults *int32 + MaxResults int32 // Used for pagination. Only necessary if a previous API call includes a non-null // NextToken value. If provided, returns results for the next page. @@ -47,7 +47,7 @@ type DescribePackagesOutput struct { NextToken *string // List of PackageDetails objects. - PackageDetailsList []*types.PackageDetails + PackageDetailsList []types.PackageDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstanceOfferings.go b/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstanceOfferings.go index f3cbc7d8499..afd5d173b53 100644 --- a/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstanceOfferings.go +++ b/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstanceOfferings.go @@ -32,7 +32,7 @@ type DescribeReservedElasticsearchInstanceOfferingsInput struct { // Set this value to limit the number of results returned. If not specified, // defaults to 100. - MaxResults *int32 + MaxResults int32 // NextToken should be sent in case if earlier API call produced result containing // NextToken. It is used for pagination. @@ -50,7 +50,7 @@ type DescribeReservedElasticsearchInstanceOfferingsOutput struct { NextToken *string // List of reserved Elasticsearch instance offerings - ReservedElasticsearchInstanceOfferings []*types.ReservedElasticsearchInstanceOffering + ReservedElasticsearchInstanceOfferings []types.ReservedElasticsearchInstanceOffering // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstances.go b/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstances.go index 6581be7e1bd..c172059849a 100644 --- a/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstances.go +++ b/service/elasticsearchservice/api_op_DescribeReservedElasticsearchInstances.go @@ -32,7 +32,7 @@ type DescribeReservedElasticsearchInstancesInput struct { // Set this value to limit the number of results returned. If not specified, // defaults to 100. - MaxResults *int32 + MaxResults int32 // NextToken should be sent in case if earlier API call produced result containing // NextToken. It is used for pagination. @@ -50,7 +50,7 @@ type DescribeReservedElasticsearchInstancesOutput struct { NextToken *string // List of reserved Elasticsearch instances. - ReservedElasticsearchInstances []*types.ReservedElasticsearchInstance + ReservedElasticsearchInstances []types.ReservedElasticsearchInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticsearchservice/api_op_GetCompatibleElasticsearchVersions.go b/service/elasticsearchservice/api_op_GetCompatibleElasticsearchVersions.go index 7415eea6058..b16d46a1cc4 100644 --- a/service/elasticsearchservice/api_op_GetCompatibleElasticsearchVersions.go +++ b/service/elasticsearchservice/api_op_GetCompatibleElasticsearchVersions.go @@ -45,7 +45,7 @@ type GetCompatibleElasticsearchVersionsOutput struct { // A map of compatible Elasticsearch versions returned as part of the // GetCompatibleElasticsearchVersions operation. - CompatibleElasticsearchVersions []*types.CompatibleVersionsMap + CompatibleElasticsearchVersions []types.CompatibleVersionsMap // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticsearchservice/api_op_GetUpgradeHistory.go b/service/elasticsearchservice/api_op_GetUpgradeHistory.go index 7f8912e1ca4..017516c007d 100644 --- a/service/elasticsearchservice/api_op_GetUpgradeHistory.go +++ b/service/elasticsearchservice/api_op_GetUpgradeHistory.go @@ -40,7 +40,7 @@ type GetUpgradeHistoryInput struct { DomainName *string // Set this value to limit the number of results returned. - MaxResults *int32 + MaxResults int32 // Paginated APIs accepts NextToken input to returns next page results and provides // a NextToken output in the response which can be used by the client to retrieve @@ -58,7 +58,7 @@ type GetUpgradeHistoryOutput struct { // A list of UpgradeHistory objects corresponding to each Upgrade or Upgrade // Eligibility Check performed on a domain returned as part of // GetUpgradeHistoryResponse object. - UpgradeHistories []*types.UpgradeHistory + UpgradeHistories []types.UpgradeHistory // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticsearchservice/api_op_ListDomainNames.go b/service/elasticsearchservice/api_op_ListDomainNames.go index 778267fd0bd..5dbe1ccdd75 100644 --- a/service/elasticsearchservice/api_op_ListDomainNames.go +++ b/service/elasticsearchservice/api_op_ListDomainNames.go @@ -36,7 +36,7 @@ type ListDomainNamesInput struct { type ListDomainNamesOutput struct { // List of Elasticsearch domain names. - DomainNames []*types.DomainInfo + DomainNames []types.DomainInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticsearchservice/api_op_ListDomainsForPackage.go b/service/elasticsearchservice/api_op_ListDomainsForPackage.go index 8c9c8b507cf..aa7b2de9df3 100644 --- a/service/elasticsearchservice/api_op_ListDomainsForPackage.go +++ b/service/elasticsearchservice/api_op_ListDomainsForPackage.go @@ -36,7 +36,7 @@ type ListDomainsForPackageInput struct { PackageID *string // Limits results to a maximum number of domains. - MaxResults *int32 + MaxResults int32 // Used for pagination. Only necessary if a previous API call includes a non-null // NextToken value. If provided, returns results for the next page. @@ -47,7 +47,7 @@ type ListDomainsForPackageInput struct { type ListDomainsForPackageOutput struct { // List of DomainPackageDetails objects. - DomainPackageDetailsList []*types.DomainPackageDetails + DomainPackageDetailsList []types.DomainPackageDetails NextToken *string diff --git a/service/elasticsearchservice/api_op_ListElasticsearchInstanceTypes.go b/service/elasticsearchservice/api_op_ListElasticsearchInstanceTypes.go index ab8114975cd..fc487f00180 100644 --- a/service/elasticsearchservice/api_op_ListElasticsearchInstanceTypes.go +++ b/service/elasticsearchservice/api_op_ListElasticsearchInstanceTypes.go @@ -44,7 +44,7 @@ type ListElasticsearchInstanceTypesInput struct { // Set this value to limit the number of results returned. Value provided must be // greater than 30 else it wont be honored. - MaxResults *int32 + MaxResults int32 // NextToken should be sent in case if earlier API call produced result containing // NextToken. It is used for pagination. diff --git a/service/elasticsearchservice/api_op_ListElasticsearchVersions.go b/service/elasticsearchservice/api_op_ListElasticsearchVersions.go index 1c501d7cdbc..27245e3a26a 100644 --- a/service/elasticsearchservice/api_op_ListElasticsearchVersions.go +++ b/service/elasticsearchservice/api_op_ListElasticsearchVersions.go @@ -35,7 +35,7 @@ type ListElasticsearchVersionsInput struct { // Set this value to limit the number of results returned. Value provided must be // greater than 10 else it wont be honored. - MaxResults *int32 + MaxResults int32 // Paginated APIs accepts NextToken input to returns next page results and provides // a NextToken output in the response which can be used by the client to retrieve @@ -48,7 +48,7 @@ type ListElasticsearchVersionsInput struct { type ListElasticsearchVersionsOutput struct { // List of supported elastic search versions. - ElasticsearchVersions []*string + ElasticsearchVersions []string // Paginated APIs accepts NextToken input to returns next page results and provides // a NextToken output in the response which can be used by the client to retrieve diff --git a/service/elasticsearchservice/api_op_ListPackagesForDomain.go b/service/elasticsearchservice/api_op_ListPackagesForDomain.go index 42c7959dde2..8c9354a6285 100644 --- a/service/elasticsearchservice/api_op_ListPackagesForDomain.go +++ b/service/elasticsearchservice/api_op_ListPackagesForDomain.go @@ -36,7 +36,7 @@ type ListPackagesForDomainInput struct { DomainName *string // Limits results to a maximum number of packages. - MaxResults *int32 + MaxResults int32 // Used for pagination. Only necessary if a previous API call includes a non-null // NextToken value. If provided, returns results for the next page. @@ -47,7 +47,7 @@ type ListPackagesForDomainInput struct { type ListPackagesForDomainOutput struct { // List of DomainPackageDetails objects. - DomainPackageDetailsList []*types.DomainPackageDetails + DomainPackageDetailsList []types.DomainPackageDetails // Pagination token that needs to be supplied to the next call to get the next page // of results. diff --git a/service/elasticsearchservice/api_op_ListTags.go b/service/elasticsearchservice/api_op_ListTags.go index 82671f8b7ba..4ba9c6322b6 100644 --- a/service/elasticsearchservice/api_op_ListTags.go +++ b/service/elasticsearchservice/api_op_ListTags.go @@ -44,7 +44,7 @@ type ListTagsInput struct { type ListTagsOutput struct { // List of Tag for the requested Elasticsearch domain. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elasticsearchservice/api_op_PurchaseReservedElasticsearchInstanceOffering.go b/service/elasticsearchservice/api_op_PurchaseReservedElasticsearchInstanceOffering.go index c5ba0afe320..1386943c1f3 100644 --- a/service/elasticsearchservice/api_op_PurchaseReservedElasticsearchInstanceOffering.go +++ b/service/elasticsearchservice/api_op_PurchaseReservedElasticsearchInstanceOffering.go @@ -40,7 +40,7 @@ type PurchaseReservedElasticsearchInstanceOfferingInput struct { ReservedElasticsearchInstanceOfferingId *string // The number of Elasticsearch instances to reserve. - InstanceCount *int32 + InstanceCount int32 } // Represents the output of a PurchaseReservedElasticsearchInstanceOffering diff --git a/service/elasticsearchservice/api_op_RemoveTags.go b/service/elasticsearchservice/api_op_RemoveTags.go index 92725e6e47b..29058bf6315 100644 --- a/service/elasticsearchservice/api_op_RemoveTags.go +++ b/service/elasticsearchservice/api_op_RemoveTags.go @@ -40,7 +40,7 @@ type RemoveTagsInput struct { // domain. // // This member is required. - TagKeys []*string + TagKeys []string } type RemoveTagsOutput struct { diff --git a/service/elasticsearchservice/api_op_UpdateElasticsearchDomainConfig.go b/service/elasticsearchservice/api_op_UpdateElasticsearchDomainConfig.go index 78e31f58734..953e2f8d479 100644 --- a/service/elasticsearchservice/api_op_UpdateElasticsearchDomainConfig.go +++ b/service/elasticsearchservice/api_op_UpdateElasticsearchDomainConfig.go @@ -45,7 +45,7 @@ type UpdateElasticsearchDomainConfigInput struct { // default, the value is true. See Configuration Advanced Options // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options) // for more information. - AdvancedOptions map[string]*string + AdvancedOptions map[string]string // Specifies advanced security options. AdvancedSecurityOptions *types.AdvancedSecurityOptionsInput @@ -67,7 +67,7 @@ type UpdateElasticsearchDomainConfigInput struct { // Map of LogType and LogPublishingOption, each containing options to publish a // given type of Elasticsearch log. - LogPublishingOptions map[string]*types.LogPublishingOption + LogPublishingOptions map[string]types.LogPublishingOption // Option to set the time, in UTC format, for the daily automated snapshot. Default // value is 0 hours. diff --git a/service/elasticsearchservice/deserializers.go b/service/elasticsearchservice/deserializers.go index 106d95e28cc..4030896e67a 100644 --- a/service/elasticsearchservice/deserializers.go +++ b/service/elasticsearchservice/deserializers.go @@ -895,7 +895,7 @@ func awsRestjson1_deserializeOpDocumentCreateOutboundCrossClusterSearchConnectio if !ok { return fmt.Errorf("expected ConnectionAlias to be of type string, got %T instead", value) } - sv.ConnectionAlias = &jtv + sv.ConnectionAlias = ptr.String(jtv) } case "ConnectionStatus": @@ -909,7 +909,7 @@ func awsRestjson1_deserializeOpDocumentCreateOutboundCrossClusterSearchConnectio if !ok { return fmt.Errorf("expected CrossClusterSearchConnectionId to be of type string, got %T instead", value) } - sv.CrossClusterSearchConnectionId = &jtv + sv.CrossClusterSearchConnectionId = ptr.String(jtv) } case "DestinationDomainInfo": @@ -2577,7 +2577,7 @@ func awsRestjson1_deserializeOpDocumentDescribeInboundCrossClusterSearchConnecti if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2736,7 +2736,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOutboundCrossClusterSearchConnect if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2899,7 +2899,7 @@ func awsRestjson1_deserializeOpDocumentDescribePackagesOutput(v **DescribePackag if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PackageDetailsList": @@ -3064,7 +3064,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservedElasticsearchInstanceOffe if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ReservedElasticsearchInstanceOfferings": @@ -3229,7 +3229,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservedElasticsearchInstancesOut if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ReservedElasticsearchInstances": @@ -3718,7 +3718,7 @@ func awsRestjson1_deserializeOpDocumentGetUpgradeHistoryOutput(v **GetUpgradeHis if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "UpgradeHistories": @@ -3895,7 +3895,7 @@ func awsRestjson1_deserializeOpDocumentGetUpgradeStatusOutput(v **GetUpgradeStat if !ok { return fmt.Errorf("expected UpgradeName to be of type string, got %T instead", value) } - sv.UpgradeName = &jtv + sv.UpgradeName = ptr.String(jtv) } case "UpgradeStep": @@ -4222,7 +4222,7 @@ func awsRestjson1_deserializeOpDocumentListDomainsForPackageOutput(v **ListDomai if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4387,7 +4387,7 @@ func awsRestjson1_deserializeOpDocumentListElasticsearchInstanceTypesOutput(v ** if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4552,7 +4552,7 @@ func awsRestjson1_deserializeOpDocumentListElasticsearchVersionsOutput(v **ListE if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4720,7 +4720,7 @@ func awsRestjson1_deserializeOpDocumentListPackagesForDomainOutput(v **ListPacka if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5042,7 +5042,7 @@ func awsRestjson1_deserializeOpDocumentPurchaseReservedElasticsearchInstanceOffe if !ok { return fmt.Errorf("expected ReservationToken to be of type string, got %T instead", value) } - sv.ReservationName = &jtv + sv.ReservationName = ptr.String(jtv) } case "ReservedElasticsearchInstanceId": @@ -5051,7 +5051,7 @@ func awsRestjson1_deserializeOpDocumentPurchaseReservedElasticsearchInstanceOffe if !ok { return fmt.Errorf("expected GUID to be of type string, got %T instead", value) } - sv.ReservedElasticsearchInstanceId = &jtv + sv.ReservedElasticsearchInstanceId = ptr.String(jtv) } default: @@ -5774,7 +5774,7 @@ func awsRestjson1_deserializeOpDocumentUpgradeElasticsearchDomainOutput(v **Upgr if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "PerformCheckOnly": @@ -5783,7 +5783,7 @@ func awsRestjson1_deserializeOpDocumentUpgradeElasticsearchDomainOutput(v **Upgr if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.PerformCheckOnly = &jtv + sv.PerformCheckOnly = ptr.Bool(jtv) } case "TargetVersion": @@ -5792,7 +5792,7 @@ func awsRestjson1_deserializeOpDocumentUpgradeElasticsearchDomainOutput(v **Upgr if !ok { return fmt.Errorf("expected ElasticsearchVersionString to be of type string, got %T instead", value) } - sv.TargetVersion = &jtv + sv.TargetVersion = ptr.String(jtv) } default: @@ -6228,7 +6228,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6268,7 +6268,7 @@ func awsRestjson1_deserializeDocumentAccessPoliciesStatus(v **types.AccessPolici if !ok { return fmt.Errorf("expected PolicyDocument to be of type string, got %T instead", value) } - sv.Options = &jtv + sv.Options = ptr.String(jtv) } case "Status": @@ -6313,7 +6313,7 @@ func awsRestjson1_deserializeDocumentAdditionalLimit(v **types.AdditionalLimit, if !ok { return fmt.Errorf("expected LimitName to be of type string, got %T instead", value) } - sv.LimitName = &jtv + sv.LimitName = ptr.String(jtv) } case "LimitValues": @@ -6330,7 +6330,7 @@ func awsRestjson1_deserializeDocumentAdditionalLimit(v **types.AdditionalLimit, return nil } -func awsRestjson1_deserializeDocumentAdditionalLimitList(v *[]*types.AdditionalLimit, value interface{}) error { +func awsRestjson1_deserializeDocumentAdditionalLimitList(v *[]types.AdditionalLimit, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6343,18 +6343,20 @@ func awsRestjson1_deserializeDocumentAdditionalLimitList(v *[]*types.AdditionalL return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AdditionalLimit + var cv []types.AdditionalLimit if *v == nil { - cv = []*types.AdditionalLimit{} + cv = []types.AdditionalLimit{} } else { cv = *v } for _, value := range shape { - var col *types.AdditionalLimit - if err := awsRestjson1_deserializeDocumentAdditionalLimit(&col, value); err != nil { + var col types.AdditionalLimit + destAddr := &col + if err := awsRestjson1_deserializeDocumentAdditionalLimit(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6362,7 +6364,7 @@ func awsRestjson1_deserializeDocumentAdditionalLimitList(v *[]*types.AdditionalL return nil } -func awsRestjson1_deserializeDocumentAdvancedOptions(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAdvancedOptions(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6375,21 +6377,21 @@ func awsRestjson1_deserializeDocumentAdvancedOptions(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -6467,7 +6469,7 @@ func awsRestjson1_deserializeDocumentAdvancedSecurityOptions(v **types.AdvancedS if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } case "InternalUserDatabaseEnabled": @@ -6476,7 +6478,7 @@ func awsRestjson1_deserializeDocumentAdvancedSecurityOptions(v **types.AdvancedS if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.InternalUserDatabaseEnabled = &jtv + sv.InternalUserDatabaseEnabled = ptr.Bool(jtv) } default: @@ -6557,7 +6559,7 @@ func awsRestjson1_deserializeDocumentBaseException(v **types.BaseException, valu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6597,7 +6599,7 @@ func awsRestjson1_deserializeDocumentCognitoOptions(v **types.CognitoOptions, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } case "IdentityPoolId": @@ -6606,7 +6608,7 @@ func awsRestjson1_deserializeDocumentCognitoOptions(v **types.CognitoOptions, va if !ok { return fmt.Errorf("expected IdentityPoolId to be of type string, got %T instead", value) } - sv.IdentityPoolId = &jtv + sv.IdentityPoolId = ptr.String(jtv) } case "RoleArn": @@ -6615,7 +6617,7 @@ func awsRestjson1_deserializeDocumentCognitoOptions(v **types.CognitoOptions, va if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "UserPoolId": @@ -6624,7 +6626,7 @@ func awsRestjson1_deserializeDocumentCognitoOptions(v **types.CognitoOptions, va if !ok { return fmt.Errorf("expected UserPoolId to be of type string, got %T instead", value) } - sv.UserPoolId = &jtv + sv.UserPoolId = ptr.String(jtv) } default: @@ -6677,7 +6679,7 @@ func awsRestjson1_deserializeDocumentCognitoOptionsStatus(v **types.CognitoOptio return nil } -func awsRestjson1_deserializeDocumentCompatibleElasticsearchVersionsList(v *[]*types.CompatibleVersionsMap, value interface{}) error { +func awsRestjson1_deserializeDocumentCompatibleElasticsearchVersionsList(v *[]types.CompatibleVersionsMap, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6690,18 +6692,20 @@ func awsRestjson1_deserializeDocumentCompatibleElasticsearchVersionsList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CompatibleVersionsMap + var cv []types.CompatibleVersionsMap if *v == nil { - cv = []*types.CompatibleVersionsMap{} + cv = []types.CompatibleVersionsMap{} } else { cv = *v } for _, value := range shape { - var col *types.CompatibleVersionsMap - if err := awsRestjson1_deserializeDocumentCompatibleVersionsMap(&col, value); err != nil { + var col types.CompatibleVersionsMap + destAddr := &col + if err := awsRestjson1_deserializeDocumentCompatibleVersionsMap(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6737,7 +6741,7 @@ func awsRestjson1_deserializeDocumentCompatibleVersionsMap(v **types.CompatibleV if !ok { return fmt.Errorf("expected ElasticsearchVersionString to be of type string, got %T instead", value) } - sv.SourceVersion = &jtv + sv.SourceVersion = ptr.String(jtv) } case "TargetVersions": @@ -6782,7 +6786,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6822,7 +6826,7 @@ func awsRestjson1_deserializeDocumentDisabledOperationException(v **types.Disabl if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6862,7 +6866,7 @@ func awsRestjson1_deserializeDocumentDomainEndpointOptions(v **types.DomainEndpo if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnforceHTTPS = &jtv + sv.EnforceHTTPS = ptr.Bool(jtv) } case "TLSSecurityPolicy": @@ -6952,7 +6956,7 @@ func awsRestjson1_deserializeDocumentDomainInfo(v **types.DomainInfo, value inte if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } default: @@ -6964,7 +6968,7 @@ func awsRestjson1_deserializeDocumentDomainInfo(v **types.DomainInfo, value inte return nil } -func awsRestjson1_deserializeDocumentDomainInfoList(v *[]*types.DomainInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainInfoList(v *[]types.DomainInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6977,18 +6981,20 @@ func awsRestjson1_deserializeDocumentDomainInfoList(v *[]*types.DomainInfo, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainInfo + var cv []types.DomainInfo if *v == nil { - cv = []*types.DomainInfo{} + cv = []types.DomainInfo{} } else { cv = *v } for _, value := range shape { - var col *types.DomainInfo - if err := awsRestjson1_deserializeDocumentDomainInfo(&col, value); err != nil { + var col types.DomainInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7024,7 +7030,7 @@ func awsRestjson1_deserializeDocumentDomainInformation(v **types.DomainInformati if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "OwnerId": @@ -7033,7 +7039,7 @@ func awsRestjson1_deserializeDocumentDomainInformation(v **types.DomainInformati if !ok { return fmt.Errorf("expected OwnerId to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "Region": @@ -7042,7 +7048,7 @@ func awsRestjson1_deserializeDocumentDomainInformation(v **types.DomainInformati if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } default: @@ -7082,7 +7088,7 @@ func awsRestjson1_deserializeDocumentDomainPackageDetails(v **types.DomainPackag if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "DomainPackageStatus": @@ -7118,7 +7124,7 @@ func awsRestjson1_deserializeDocumentDomainPackageDetails(v **types.DomainPackag if !ok { return fmt.Errorf("expected PackageID to be of type string, got %T instead", value) } - sv.PackageID = &jtv + sv.PackageID = ptr.String(jtv) } case "PackageName": @@ -7127,7 +7133,7 @@ func awsRestjson1_deserializeDocumentDomainPackageDetails(v **types.DomainPackag if !ok { return fmt.Errorf("expected PackageName to be of type string, got %T instead", value) } - sv.PackageName = &jtv + sv.PackageName = ptr.String(jtv) } case "PackageType": @@ -7145,7 +7151,7 @@ func awsRestjson1_deserializeDocumentDomainPackageDetails(v **types.DomainPackag if !ok { return fmt.Errorf("expected ReferencePath to be of type string, got %T instead", value) } - sv.ReferencePath = &jtv + sv.ReferencePath = ptr.String(jtv) } default: @@ -7157,7 +7163,7 @@ func awsRestjson1_deserializeDocumentDomainPackageDetails(v **types.DomainPackag return nil } -func awsRestjson1_deserializeDocumentDomainPackageDetailsList(v *[]*types.DomainPackageDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainPackageDetailsList(v *[]types.DomainPackageDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7170,18 +7176,20 @@ func awsRestjson1_deserializeDocumentDomainPackageDetailsList(v *[]*types.Domain return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainPackageDetails + var cv []types.DomainPackageDetails if *v == nil { - cv = []*types.DomainPackageDetails{} + cv = []types.DomainPackageDetails{} } else { cv = *v } for _, value := range shape { - var col *types.DomainPackageDetails - if err := awsRestjson1_deserializeDocumentDomainPackageDetails(&col, value); err != nil { + var col types.DomainPackageDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainPackageDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7217,7 +7225,7 @@ func awsRestjson1_deserializeDocumentEBSOptions(v **types.EBSOptions, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EBSEnabled = &jtv + sv.EBSEnabled = ptr.Bool(jtv) } case "Iops": @@ -7346,7 +7354,7 @@ func awsRestjson1_deserializeDocumentElasticsearchClusterConfig(v **types.Elasti if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DedicatedMasterEnabled = &jtv + sv.DedicatedMasterEnabled = ptr.Bool(jtv) } case "DedicatedMasterType": @@ -7399,7 +7407,7 @@ func awsRestjson1_deserializeDocumentElasticsearchClusterConfig(v **types.Elasti if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.WarmEnabled = &jtv + sv.WarmEnabled = ptr.Bool(jtv) } case "WarmType": @@ -7422,7 +7430,7 @@ func awsRestjson1_deserializeDocumentElasticsearchClusterConfig(v **types.Elasti if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ZoneAwarenessEnabled = &jtv + sv.ZoneAwarenessEnabled = ptr.Bool(jtv) } default: @@ -7599,7 +7607,7 @@ func awsRestjson1_deserializeDocumentElasticsearchDomainStatus(v **types.Elastic if !ok { return fmt.Errorf("expected PolicyDocument to be of type string, got %T instead", value) } - sv.AccessPolicies = &jtv + sv.AccessPolicies = ptr.String(jtv) } case "AdvancedOptions": @@ -7618,7 +7626,7 @@ func awsRestjson1_deserializeDocumentElasticsearchDomainStatus(v **types.Elastic if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "CognitoOptions": @@ -7632,7 +7640,7 @@ func awsRestjson1_deserializeDocumentElasticsearchDomainStatus(v **types.Elastic if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Created = &jtv + sv.Created = ptr.Bool(jtv) } case "Deleted": @@ -7641,7 +7649,7 @@ func awsRestjson1_deserializeDocumentElasticsearchDomainStatus(v **types.Elastic if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Deleted = &jtv + sv.Deleted = ptr.Bool(jtv) } case "DomainEndpointOptions": @@ -7655,7 +7663,7 @@ func awsRestjson1_deserializeDocumentElasticsearchDomainStatus(v **types.Elastic if !ok { return fmt.Errorf("expected DomainId to be of type string, got %T instead", value) } - sv.DomainId = &jtv + sv.DomainId = ptr.String(jtv) } case "DomainName": @@ -7664,7 +7672,7 @@ func awsRestjson1_deserializeDocumentElasticsearchDomainStatus(v **types.Elastic if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "EBSOptions": @@ -7683,7 +7691,7 @@ func awsRestjson1_deserializeDocumentElasticsearchDomainStatus(v **types.Elastic if !ok { return fmt.Errorf("expected ElasticsearchVersionString to be of type string, got %T instead", value) } - sv.ElasticsearchVersion = &jtv + sv.ElasticsearchVersion = ptr.String(jtv) } case "EncryptionAtRestOptions": @@ -7697,7 +7705,7 @@ func awsRestjson1_deserializeDocumentElasticsearchDomainStatus(v **types.Elastic if !ok { return fmt.Errorf("expected ServiceUrl to be of type string, got %T instead", value) } - sv.Endpoint = &jtv + sv.Endpoint = ptr.String(jtv) } case "Endpoints": @@ -7721,7 +7729,7 @@ func awsRestjson1_deserializeDocumentElasticsearchDomainStatus(v **types.Elastic if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Processing = &jtv + sv.Processing = ptr.Bool(jtv) } case "ServiceSoftwareOptions": @@ -7740,7 +7748,7 @@ func awsRestjson1_deserializeDocumentElasticsearchDomainStatus(v **types.Elastic if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.UpgradeProcessing = &jtv + sv.UpgradeProcessing = ptr.Bool(jtv) } case "VPCOptions": @@ -7757,7 +7765,7 @@ func awsRestjson1_deserializeDocumentElasticsearchDomainStatus(v **types.Elastic return nil } -func awsRestjson1_deserializeDocumentElasticsearchDomainStatusList(v *[]*types.ElasticsearchDomainStatus, value interface{}) error { +func awsRestjson1_deserializeDocumentElasticsearchDomainStatusList(v *[]types.ElasticsearchDomainStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7770,18 +7778,20 @@ func awsRestjson1_deserializeDocumentElasticsearchDomainStatusList(v *[]*types.E return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ElasticsearchDomainStatus + var cv []types.ElasticsearchDomainStatus if *v == nil { - cv = []*types.ElasticsearchDomainStatus{} + cv = []types.ElasticsearchDomainStatus{} } else { cv = *v } for _, value := range shape { - var col *types.ElasticsearchDomainStatus - if err := awsRestjson1_deserializeDocumentElasticsearchDomainStatus(&col, value); err != nil { + var col types.ElasticsearchDomainStatus + destAddr := &col + if err := awsRestjson1_deserializeDocumentElasticsearchDomainStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7825,7 +7835,7 @@ func awsRestjson1_deserializeDocumentElasticsearchInstanceTypeList(v *[]types.ES return nil } -func awsRestjson1_deserializeDocumentElasticsearchVersionList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentElasticsearchVersionList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7838,21 +7848,21 @@ func awsRestjson1_deserializeDocumentElasticsearchVersionList(v *[]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ElasticsearchVersionString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7889,7 +7899,7 @@ func awsRestjson1_deserializeDocumentElasticsearchVersionStatus(v **types.Elasti if !ok { return fmt.Errorf("expected ElasticsearchVersionString to be of type string, got %T instead", value) } - sv.Options = &jtv + sv.Options = ptr.String(jtv) } case "Status": @@ -7934,7 +7944,7 @@ func awsRestjson1_deserializeDocumentEncryptionAtRestOptions(v **types.Encryptio if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } case "KmsKeyId": @@ -7943,7 +7953,7 @@ func awsRestjson1_deserializeDocumentEncryptionAtRestOptions(v **types.Encryptio if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } default: @@ -7996,7 +8006,7 @@ func awsRestjson1_deserializeDocumentEncryptionAtRestOptionsStatus(v **types.Enc return nil } -func awsRestjson1_deserializeDocumentEndpointsMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentEndpointsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8009,21 +8019,21 @@ func awsRestjson1_deserializeDocumentEndpointsMap(v *map[string]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ServiceUrl to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -8060,7 +8070,7 @@ func awsRestjson1_deserializeDocumentErrorDetails(v **types.ErrorDetails, value if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "ErrorType": @@ -8069,7 +8079,7 @@ func awsRestjson1_deserializeDocumentErrorDetails(v **types.ErrorDetails, value if !ok { return fmt.Errorf("expected ErrorType to be of type string, got %T instead", value) } - sv.ErrorType = &jtv + sv.ErrorType = ptr.String(jtv) } default: @@ -8114,7 +8124,7 @@ func awsRestjson1_deserializeDocumentInboundCrossClusterSearchConnection(v **typ if !ok { return fmt.Errorf("expected CrossClusterSearchConnectionId to be of type string, got %T instead", value) } - sv.CrossClusterSearchConnectionId = &jtv + sv.CrossClusterSearchConnectionId = ptr.String(jtv) } case "DestinationDomainInfo": @@ -8136,7 +8146,7 @@ func awsRestjson1_deserializeDocumentInboundCrossClusterSearchConnection(v **typ return nil } -func awsRestjson1_deserializeDocumentInboundCrossClusterSearchConnections(v *[]*types.InboundCrossClusterSearchConnection, value interface{}) error { +func awsRestjson1_deserializeDocumentInboundCrossClusterSearchConnections(v *[]types.InboundCrossClusterSearchConnection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8149,18 +8159,20 @@ func awsRestjson1_deserializeDocumentInboundCrossClusterSearchConnections(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InboundCrossClusterSearchConnection + var cv []types.InboundCrossClusterSearchConnection if *v == nil { - cv = []*types.InboundCrossClusterSearchConnection{} + cv = []types.InboundCrossClusterSearchConnection{} } else { cv = *v } for _, value := range shape { - var col *types.InboundCrossClusterSearchConnection - if err := awsRestjson1_deserializeDocumentInboundCrossClusterSearchConnection(&col, value); err != nil { + var col types.InboundCrossClusterSearchConnection + destAddr := &col + if err := awsRestjson1_deserializeDocumentInboundCrossClusterSearchConnection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8196,7 +8208,7 @@ func awsRestjson1_deserializeDocumentInboundCrossClusterSearchConnectionStatus(v if !ok { return fmt.Errorf("expected CrossClusterSearchConnectionStatusMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "StatusCode": @@ -8249,7 +8261,7 @@ func awsRestjson1_deserializeDocumentInstanceCountLimits(v **types.InstanceCount if err != nil { return err } - sv.MaximumInstanceCount = ptr.Int32(int32(i64)) + sv.MaximumInstanceCount = int32(i64) } case "MinimumInstanceCount": @@ -8262,7 +8274,7 @@ func awsRestjson1_deserializeDocumentInstanceCountLimits(v **types.InstanceCount if err != nil { return err } - sv.MinimumInstanceCount = ptr.Int32(int32(i64)) + sv.MinimumInstanceCount = int32(i64) } default: @@ -8338,7 +8350,7 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8378,7 +8390,7 @@ func awsRestjson1_deserializeDocumentInvalidPaginationTokenException(v **types.I if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8418,7 +8430,7 @@ func awsRestjson1_deserializeDocumentInvalidTypeException(v **types.InvalidTypeE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8430,7 +8442,7 @@ func awsRestjson1_deserializeDocumentInvalidTypeException(v **types.InvalidTypeE return nil } -func awsRestjson1_deserializeDocumentIssues(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentIssues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8443,21 +8455,21 @@ func awsRestjson1_deserializeDocumentIssues(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Issue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8494,7 +8506,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8552,7 +8564,7 @@ func awsRestjson1_deserializeDocumentLimits(v **types.Limits, value interface{}) return nil } -func awsRestjson1_deserializeDocumentLimitsByRole(v *map[string]*types.Limits, value interface{}) error { +func awsRestjson1_deserializeDocumentLimitsByRole(v *map[string]types.Limits, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8565,18 +8577,21 @@ func awsRestjson1_deserializeDocumentLimitsByRole(v *map[string]*types.Limits, v return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.Limits + var mv map[string]types.Limits if *v == nil { - mv = map[string]*types.Limits{} + mv = map[string]types.Limits{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.Limits - if err := awsRestjson1_deserializeDocumentLimits(&parsedVal, value); err != nil { + var parsedVal types.Limits + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentLimits(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -8584,7 +8599,7 @@ func awsRestjson1_deserializeDocumentLimitsByRole(v *map[string]*types.Limits, v return nil } -func awsRestjson1_deserializeDocumentLimitValueList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentLimitValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8597,21 +8612,21 @@ func awsRestjson1_deserializeDocumentLimitValueList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected LimitValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8648,7 +8663,7 @@ func awsRestjson1_deserializeDocumentLogPublishingOption(v **types.LogPublishing if !ok { return fmt.Errorf("expected CloudWatchLogsLogGroupArn to be of type string, got %T instead", value) } - sv.CloudWatchLogsLogGroupArn = &jtv + sv.CloudWatchLogsLogGroupArn = ptr.String(jtv) } case "Enabled": @@ -8657,7 +8672,7 @@ func awsRestjson1_deserializeDocumentLogPublishingOption(v **types.LogPublishing if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } default: @@ -8669,7 +8684,7 @@ func awsRestjson1_deserializeDocumentLogPublishingOption(v **types.LogPublishing return nil } -func awsRestjson1_deserializeDocumentLogPublishingOptions(v *map[string]*types.LogPublishingOption, value interface{}) error { +func awsRestjson1_deserializeDocumentLogPublishingOptions(v *map[string]types.LogPublishingOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8682,18 +8697,21 @@ func awsRestjson1_deserializeDocumentLogPublishingOptions(v *map[string]*types.L return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.LogPublishingOption + var mv map[string]types.LogPublishingOption if *v == nil { - mv = map[string]*types.LogPublishingOption{} + mv = map[string]types.LogPublishingOption{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.LogPublishingOption - if err := awsRestjson1_deserializeDocumentLogPublishingOption(&parsedVal, value); err != nil { + var parsedVal types.LogPublishingOption + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentLogPublishingOption(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -8770,7 +8788,7 @@ func awsRestjson1_deserializeDocumentNodeToNodeEncryptionOptions(v **types.NodeT if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } default: @@ -8864,7 +8882,7 @@ func awsRestjson1_deserializeDocumentOptionStatus(v **types.OptionStatus, value if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.PendingDeletion = &jtv + sv.PendingDeletion = ptr.Bool(jtv) } case "State": @@ -8899,7 +8917,7 @@ func awsRestjson1_deserializeDocumentOptionStatus(v **types.OptionStatus, value if err != nil { return err } - sv.UpdateVersion = ptr.Int32(int32(i64)) + sv.UpdateVersion = int32(i64) } default: @@ -8939,7 +8957,7 @@ func awsRestjson1_deserializeDocumentOutboundCrossClusterSearchConnection(v **ty if !ok { return fmt.Errorf("expected ConnectionAlias to be of type string, got %T instead", value) } - sv.ConnectionAlias = &jtv + sv.ConnectionAlias = ptr.String(jtv) } case "ConnectionStatus": @@ -8953,7 +8971,7 @@ func awsRestjson1_deserializeDocumentOutboundCrossClusterSearchConnection(v **ty if !ok { return fmt.Errorf("expected CrossClusterSearchConnectionId to be of type string, got %T instead", value) } - sv.CrossClusterSearchConnectionId = &jtv + sv.CrossClusterSearchConnectionId = ptr.String(jtv) } case "DestinationDomainInfo": @@ -8975,7 +8993,7 @@ func awsRestjson1_deserializeDocumentOutboundCrossClusterSearchConnection(v **ty return nil } -func awsRestjson1_deserializeDocumentOutboundCrossClusterSearchConnections(v *[]*types.OutboundCrossClusterSearchConnection, value interface{}) error { +func awsRestjson1_deserializeDocumentOutboundCrossClusterSearchConnections(v *[]types.OutboundCrossClusterSearchConnection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8988,18 +9006,20 @@ func awsRestjson1_deserializeDocumentOutboundCrossClusterSearchConnections(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutboundCrossClusterSearchConnection + var cv []types.OutboundCrossClusterSearchConnection if *v == nil { - cv = []*types.OutboundCrossClusterSearchConnection{} + cv = []types.OutboundCrossClusterSearchConnection{} } else { cv = *v } for _, value := range shape { - var col *types.OutboundCrossClusterSearchConnection - if err := awsRestjson1_deserializeDocumentOutboundCrossClusterSearchConnection(&col, value); err != nil { + var col types.OutboundCrossClusterSearchConnection + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutboundCrossClusterSearchConnection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9035,7 +9055,7 @@ func awsRestjson1_deserializeDocumentOutboundCrossClusterSearchConnectionStatus( if !ok { return fmt.Errorf("expected CrossClusterSearchConnectionStatusMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "StatusCode": @@ -9102,7 +9122,7 @@ func awsRestjson1_deserializeDocumentPackageDetails(v **types.PackageDetails, va if !ok { return fmt.Errorf("expected PackageDescription to be of type string, got %T instead", value) } - sv.PackageDescription = &jtv + sv.PackageDescription = ptr.String(jtv) } case "PackageID": @@ -9111,7 +9131,7 @@ func awsRestjson1_deserializeDocumentPackageDetails(v **types.PackageDetails, va if !ok { return fmt.Errorf("expected PackageID to be of type string, got %T instead", value) } - sv.PackageID = &jtv + sv.PackageID = ptr.String(jtv) } case "PackageName": @@ -9120,7 +9140,7 @@ func awsRestjson1_deserializeDocumentPackageDetails(v **types.PackageDetails, va if !ok { return fmt.Errorf("expected PackageName to be of type string, got %T instead", value) } - sv.PackageName = &jtv + sv.PackageName = ptr.String(jtv) } case "PackageStatus": @@ -9150,7 +9170,7 @@ func awsRestjson1_deserializeDocumentPackageDetails(v **types.PackageDetails, va return nil } -func awsRestjson1_deserializeDocumentPackageDetailsList(v *[]*types.PackageDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentPackageDetailsList(v *[]types.PackageDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9163,18 +9183,20 @@ func awsRestjson1_deserializeDocumentPackageDetailsList(v *[]*types.PackageDetai return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PackageDetails + var cv []types.PackageDetails if *v == nil { - cv = []*types.PackageDetails{} + cv = []types.PackageDetails{} } else { cv = *v } for _, value := range shape { - var col *types.PackageDetails - if err := awsRestjson1_deserializeDocumentPackageDetails(&col, value); err != nil { + var col types.PackageDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentPackageDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9214,7 +9236,7 @@ func awsRestjson1_deserializeDocumentRecurringCharge(v **types.RecurringCharge, if err != nil { return err } - sv.RecurringChargeAmount = &f64 + sv.RecurringChargeAmount = ptr.Float64(f64) } case "RecurringChargeFrequency": @@ -9223,7 +9245,7 @@ func awsRestjson1_deserializeDocumentRecurringCharge(v **types.RecurringCharge, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RecurringChargeFrequency = &jtv + sv.RecurringChargeFrequency = ptr.String(jtv) } default: @@ -9235,7 +9257,7 @@ func awsRestjson1_deserializeDocumentRecurringCharge(v **types.RecurringCharge, return nil } -func awsRestjson1_deserializeDocumentRecurringChargeList(v *[]*types.RecurringCharge, value interface{}) error { +func awsRestjson1_deserializeDocumentRecurringChargeList(v *[]types.RecurringCharge, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9248,18 +9270,20 @@ func awsRestjson1_deserializeDocumentRecurringChargeList(v *[]*types.RecurringCh return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecurringCharge + var cv []types.RecurringCharge if *v == nil { - cv = []*types.RecurringCharge{} + cv = []types.RecurringCharge{} } else { cv = *v } for _, value := range shape { - var col *types.RecurringCharge - if err := awsRestjson1_deserializeDocumentRecurringCharge(&col, value); err != nil { + var col types.RecurringCharge + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecurringCharge(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9295,7 +9319,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstance(v **types.Res if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "Duration": @@ -9308,7 +9332,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstance(v **types.Res if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "ElasticsearchInstanceCount": @@ -9321,7 +9345,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstance(v **types.Res if err != nil { return err } - sv.ElasticsearchInstanceCount = ptr.Int32(int32(i64)) + sv.ElasticsearchInstanceCount = int32(i64) } case "ElasticsearchInstanceType": @@ -9343,7 +9367,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstance(v **types.Res if err != nil { return err } - sv.FixedPrice = &f64 + sv.FixedPrice = ptr.Float64(f64) } case "PaymentOption": @@ -9366,7 +9390,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstance(v **types.Res if !ok { return fmt.Errorf("expected ReservationToken to be of type string, got %T instead", value) } - sv.ReservationName = &jtv + sv.ReservationName = ptr.String(jtv) } case "ReservedElasticsearchInstanceId": @@ -9375,7 +9399,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstance(v **types.Res if !ok { return fmt.Errorf("expected GUID to be of type string, got %T instead", value) } - sv.ReservedElasticsearchInstanceId = &jtv + sv.ReservedElasticsearchInstanceId = ptr.String(jtv) } case "ReservedElasticsearchInstanceOfferingId": @@ -9384,7 +9408,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstance(v **types.Res if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReservedElasticsearchInstanceOfferingId = &jtv + sv.ReservedElasticsearchInstanceOfferingId = ptr.String(jtv) } case "StartTime": @@ -9406,7 +9430,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstance(v **types.Res if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } case "UsagePrice": @@ -9419,7 +9443,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstance(v **types.Res if err != nil { return err } - sv.UsagePrice = &f64 + sv.UsagePrice = ptr.Float64(f64) } default: @@ -9431,7 +9455,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstance(v **types.Res return nil } -func awsRestjson1_deserializeDocumentReservedElasticsearchInstanceList(v *[]*types.ReservedElasticsearchInstance, value interface{}) error { +func awsRestjson1_deserializeDocumentReservedElasticsearchInstanceList(v *[]types.ReservedElasticsearchInstance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9444,18 +9468,20 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstanceList(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReservedElasticsearchInstance + var cv []types.ReservedElasticsearchInstance if *v == nil { - cv = []*types.ReservedElasticsearchInstance{} + cv = []types.ReservedElasticsearchInstance{} } else { cv = *v } for _, value := range shape { - var col *types.ReservedElasticsearchInstance - if err := awsRestjson1_deserializeDocumentReservedElasticsearchInstance(&col, value); err != nil { + var col types.ReservedElasticsearchInstance + destAddr := &col + if err := awsRestjson1_deserializeDocumentReservedElasticsearchInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9491,7 +9517,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstanceOffering(v **t if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "Duration": @@ -9504,7 +9530,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstanceOffering(v **t if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "ElasticsearchInstanceType": @@ -9526,7 +9552,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstanceOffering(v **t if err != nil { return err } - sv.FixedPrice = &f64 + sv.FixedPrice = ptr.Float64(f64) } case "PaymentOption": @@ -9549,7 +9575,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstanceOffering(v **t if !ok { return fmt.Errorf("expected GUID to be of type string, got %T instead", value) } - sv.ReservedElasticsearchInstanceOfferingId = &jtv + sv.ReservedElasticsearchInstanceOfferingId = ptr.String(jtv) } case "UsagePrice": @@ -9562,7 +9588,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstanceOffering(v **t if err != nil { return err } - sv.UsagePrice = &f64 + sv.UsagePrice = ptr.Float64(f64) } default: @@ -9574,7 +9600,7 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstanceOffering(v **t return nil } -func awsRestjson1_deserializeDocumentReservedElasticsearchInstanceOfferingList(v *[]*types.ReservedElasticsearchInstanceOffering, value interface{}) error { +func awsRestjson1_deserializeDocumentReservedElasticsearchInstanceOfferingList(v *[]types.ReservedElasticsearchInstanceOffering, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9587,18 +9613,20 @@ func awsRestjson1_deserializeDocumentReservedElasticsearchInstanceOfferingList(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReservedElasticsearchInstanceOffering + var cv []types.ReservedElasticsearchInstanceOffering if *v == nil { - cv = []*types.ReservedElasticsearchInstanceOffering{} + cv = []types.ReservedElasticsearchInstanceOffering{} } else { cv = *v } for _, value := range shape { - var col *types.ReservedElasticsearchInstanceOffering - if err := awsRestjson1_deserializeDocumentReservedElasticsearchInstanceOffering(&col, value); err != nil { + var col types.ReservedElasticsearchInstanceOffering + destAddr := &col + if err := awsRestjson1_deserializeDocumentReservedElasticsearchInstanceOffering(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9634,7 +9662,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9674,7 +9702,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9727,7 +9755,7 @@ func awsRestjson1_deserializeDocumentServiceSoftwareOptions(v **types.ServiceSof if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Cancellable = &jtv + sv.Cancellable = ptr.Bool(jtv) } case "CurrentVersion": @@ -9736,7 +9764,7 @@ func awsRestjson1_deserializeDocumentServiceSoftwareOptions(v **types.ServiceSof if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CurrentVersion = &jtv + sv.CurrentVersion = ptr.String(jtv) } case "Description": @@ -9745,7 +9773,7 @@ func awsRestjson1_deserializeDocumentServiceSoftwareOptions(v **types.ServiceSof if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "NewVersion": @@ -9754,7 +9782,7 @@ func awsRestjson1_deserializeDocumentServiceSoftwareOptions(v **types.ServiceSof if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NewVersion = &jtv + sv.NewVersion = ptr.String(jtv) } case "OptionalDeployment": @@ -9763,7 +9791,7 @@ func awsRestjson1_deserializeDocumentServiceSoftwareOptions(v **types.ServiceSof if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.OptionalDeployment = &jtv + sv.OptionalDeployment = ptr.Bool(jtv) } case "UpdateAvailable": @@ -9772,7 +9800,7 @@ func awsRestjson1_deserializeDocumentServiceSoftwareOptions(v **types.ServiceSof if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.UpdateAvailable = &jtv + sv.UpdateAvailable = ptr.Bool(jtv) } case "UpdateStatus": @@ -9906,7 +9934,7 @@ func awsRestjson1_deserializeDocumentStorageType(v **types.StorageType, value in if !ok { return fmt.Errorf("expected StorageSubTypeName to be of type string, got %T instead", value) } - sv.StorageSubTypeName = &jtv + sv.StorageSubTypeName = ptr.String(jtv) } case "StorageTypeLimits": @@ -9920,7 +9948,7 @@ func awsRestjson1_deserializeDocumentStorageType(v **types.StorageType, value in if !ok { return fmt.Errorf("expected StorageTypeName to be of type string, got %T instead", value) } - sv.StorageTypeName = &jtv + sv.StorageTypeName = ptr.String(jtv) } default: @@ -9960,7 +9988,7 @@ func awsRestjson1_deserializeDocumentStorageTypeLimit(v **types.StorageTypeLimit if !ok { return fmt.Errorf("expected LimitName to be of type string, got %T instead", value) } - sv.LimitName = &jtv + sv.LimitName = ptr.String(jtv) } case "LimitValues": @@ -9977,7 +10005,7 @@ func awsRestjson1_deserializeDocumentStorageTypeLimit(v **types.StorageTypeLimit return nil } -func awsRestjson1_deserializeDocumentStorageTypeLimitList(v *[]*types.StorageTypeLimit, value interface{}) error { +func awsRestjson1_deserializeDocumentStorageTypeLimitList(v *[]types.StorageTypeLimit, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9990,18 +10018,20 @@ func awsRestjson1_deserializeDocumentStorageTypeLimitList(v *[]*types.StorageTyp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StorageTypeLimit + var cv []types.StorageTypeLimit if *v == nil { - cv = []*types.StorageTypeLimit{} + cv = []types.StorageTypeLimit{} } else { cv = *v } for _, value := range shape { - var col *types.StorageTypeLimit - if err := awsRestjson1_deserializeDocumentStorageTypeLimit(&col, value); err != nil { + var col types.StorageTypeLimit + destAddr := &col + if err := awsRestjson1_deserializeDocumentStorageTypeLimit(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10009,7 +10039,7 @@ func awsRestjson1_deserializeDocumentStorageTypeLimitList(v *[]*types.StorageTyp return nil } -func awsRestjson1_deserializeDocumentStorageTypeList(v *[]*types.StorageType, value interface{}) error { +func awsRestjson1_deserializeDocumentStorageTypeList(v *[]types.StorageType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10022,18 +10052,20 @@ func awsRestjson1_deserializeDocumentStorageTypeList(v *[]*types.StorageType, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StorageType + var cv []types.StorageType if *v == nil { - cv = []*types.StorageType{} + cv = []types.StorageType{} } else { cv = *v } for _, value := range shape { - var col *types.StorageType - if err := awsRestjson1_deserializeDocumentStorageType(&col, value); err != nil { + var col types.StorageType + destAddr := &col + if err := awsRestjson1_deserializeDocumentStorageType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10041,7 +10073,7 @@ func awsRestjson1_deserializeDocumentStorageTypeList(v *[]*types.StorageType, va return nil } -func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10054,21 +10086,21 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -10105,7 +10137,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -10114,7 +10146,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -10126,7 +10158,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10139,18 +10171,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10204,7 +10238,7 @@ func awsRestjson1_deserializeDocumentUpgradeHistory(v **types.UpgradeHistory, va if !ok { return fmt.Errorf("expected UpgradeName to be of type string, got %T instead", value) } - sv.UpgradeName = &jtv + sv.UpgradeName = ptr.String(jtv) } case "UpgradeStatus": @@ -10225,7 +10259,7 @@ func awsRestjson1_deserializeDocumentUpgradeHistory(v **types.UpgradeHistory, va return nil } -func awsRestjson1_deserializeDocumentUpgradeHistoryList(v *[]*types.UpgradeHistory, value interface{}) error { +func awsRestjson1_deserializeDocumentUpgradeHistoryList(v *[]types.UpgradeHistory, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10238,18 +10272,20 @@ func awsRestjson1_deserializeDocumentUpgradeHistoryList(v *[]*types.UpgradeHisto return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UpgradeHistory + var cv []types.UpgradeHistory if *v == nil { - cv = []*types.UpgradeHistory{} + cv = []types.UpgradeHistory{} } else { cv = *v } for _, value := range shape { - var col *types.UpgradeHistory - if err := awsRestjson1_deserializeDocumentUpgradeHistory(&col, value); err != nil { + var col types.UpgradeHistory + destAddr := &col + if err := awsRestjson1_deserializeDocumentUpgradeHistory(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10294,7 +10330,7 @@ func awsRestjson1_deserializeDocumentUpgradeStepItem(v **types.UpgradeStepItem, if err != nil { return err } - sv.ProgressPercent = &f64 + sv.ProgressPercent = ptr.Float64(f64) } case "UpgradeStep": @@ -10324,7 +10360,7 @@ func awsRestjson1_deserializeDocumentUpgradeStepItem(v **types.UpgradeStepItem, return nil } -func awsRestjson1_deserializeDocumentUpgradeStepsList(v *[]*types.UpgradeStepItem, value interface{}) error { +func awsRestjson1_deserializeDocumentUpgradeStepsList(v *[]types.UpgradeStepItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10337,18 +10373,20 @@ func awsRestjson1_deserializeDocumentUpgradeStepsList(v *[]*types.UpgradeStepIte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UpgradeStepItem + var cv []types.UpgradeStepItem if *v == nil { - cv = []*types.UpgradeStepItem{} + cv = []types.UpgradeStepItem{} } else { cv = *v } for _, value := range shape { - var col *types.UpgradeStepItem - if err := awsRestjson1_deserializeDocumentUpgradeStepItem(&col, value); err != nil { + var col types.UpgradeStepItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentUpgradeStepItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10384,7 +10422,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10439,7 +10477,7 @@ func awsRestjson1_deserializeDocumentVPCDerivedInfo(v **types.VPCDerivedInfo, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VPCId = &jtv + sv.VPCId = ptr.String(jtv) } default: diff --git a/service/elasticsearchservice/go.mod b/service/elasticsearchservice/go.mod index e1ca84445d3..0711a4d3715 100644 --- a/service/elasticsearchservice/go.mod +++ b/service/elasticsearchservice/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/elasticsearchservice go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/elasticsearchservice/serializers.go b/service/elasticsearchservice/serializers.go index 37636a57b00..242922ad73c 100644 --- a/service/elasticsearchservice/serializers.go +++ b/service/elasticsearchservice/serializers.go @@ -65,13 +65,10 @@ func awsRestjson1_serializeOpHttpBindingsAcceptInboundCrossClusterSearchConnecti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CrossClusterSearchConnectionId == nil { + if v.CrossClusterSearchConnectionId == nil || len(*v.CrossClusterSearchConnectionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CrossClusterSearchConnectionId must not be empty")} } if v.CrossClusterSearchConnectionId != nil { - if len(*v.CrossClusterSearchConnectionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CrossClusterSearchConnectionId must not be empty")} - } if err := encoder.SetURI("CrossClusterSearchConnectionId").String(*v.CrossClusterSearchConnectionId); err != nil { return err } @@ -211,25 +208,19 @@ func awsRestjson1_serializeOpHttpBindingsAssociatePackageInput(v *AssociatePacka return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } } - if v.PackageID == nil { + if v.PackageID == nil || len(*v.PackageID) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PackageID must not be empty")} } if v.PackageID != nil { - if len(*v.PackageID) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PackageID must not be empty")} - } if err := encoder.SetURI("PackageID").String(*v.PackageID); err != nil { return err } @@ -699,13 +690,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteElasticsearchDomainInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } @@ -815,13 +803,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteInboundCrossClusterSearchConnecti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CrossClusterSearchConnectionId == nil { + if v.CrossClusterSearchConnectionId == nil || len(*v.CrossClusterSearchConnectionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CrossClusterSearchConnectionId must not be empty")} } if v.CrossClusterSearchConnectionId != nil { - if len(*v.CrossClusterSearchConnectionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CrossClusterSearchConnectionId must not be empty")} - } if err := encoder.SetURI("CrossClusterSearchConnectionId").String(*v.CrossClusterSearchConnectionId); err != nil { return err } @@ -881,13 +866,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteOutboundCrossClusterSearchConnect return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CrossClusterSearchConnectionId == nil { + if v.CrossClusterSearchConnectionId == nil || len(*v.CrossClusterSearchConnectionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CrossClusterSearchConnectionId must not be empty")} } if v.CrossClusterSearchConnectionId != nil { - if len(*v.CrossClusterSearchConnectionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CrossClusterSearchConnectionId must not be empty")} - } if err := encoder.SetURI("CrossClusterSearchConnectionId").String(*v.CrossClusterSearchConnectionId); err != nil { return err } @@ -947,13 +929,10 @@ func awsRestjson1_serializeOpHttpBindingsDeletePackageInput(v *DeletePackageInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PackageID == nil { + if v.PackageID == nil || len(*v.PackageID) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PackageID must not be empty")} } if v.PackageID != nil { - if len(*v.PackageID) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PackageID must not be empty")} - } if err := encoder.SetURI("PackageID").String(*v.PackageID); err != nil { return err } @@ -1013,13 +992,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeElasticsearchDomainInput(v *Des return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } @@ -1079,13 +1055,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeElasticsearchDomainConfigInput( return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } @@ -1224,13 +1197,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeElasticsearchInstanceTypeLimits encoder.SetQuery("domainName").String(*v.DomainName) } - if v.ElasticsearchVersion == nil { + if v.ElasticsearchVersion == nil || len(*v.ElasticsearchVersion) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ElasticsearchVersion must not be empty")} } if v.ElasticsearchVersion != nil { - if len(*v.ElasticsearchVersion) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ElasticsearchVersion must not be empty")} - } if err := encoder.SetURI("ElasticsearchVersion").String(*v.ElasticsearchVersion); err != nil { return err } @@ -1240,9 +1210,6 @@ func awsRestjson1_serializeOpHttpBindingsDescribeElasticsearchInstanceTypeLimits return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceType must not be empty")} } if len(v.InstanceType) > 0 { - if len(string(v.InstanceType)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceType must not be empty")} - } if err := encoder.SetURI("InstanceType").String(string(v.InstanceType)); err != nil { return err } @@ -1323,9 +1290,9 @@ func awsRestjson1_serializeOpDocumentDescribeInboundCrossClusterSearchConnection } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1408,9 +1375,9 @@ func awsRestjson1_serializeOpDocumentDescribeOutboundCrossClusterSearchConnectio } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1493,9 +1460,9 @@ func awsRestjson1_serializeOpDocumentDescribePackagesInput(v *DescribePackagesIn } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1557,8 +1524,8 @@ func awsRestjson1_serializeOpHttpBindingsDescribeReservedElasticsearchInstanceOf return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1623,8 +1590,8 @@ func awsRestjson1_serializeOpHttpBindingsDescribeReservedElasticsearchInstancesI return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1689,25 +1656,19 @@ func awsRestjson1_serializeOpHttpBindingsDissociatePackageInput(v *DissociatePac return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } } - if v.PackageID == nil { + if v.PackageID == nil || len(*v.PackageID) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PackageID must not be empty")} } if v.PackageID != nil { - if len(*v.PackageID) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PackageID must not be empty")} - } if err := encoder.SetURI("PackageID").String(*v.PackageID); err != nil { return err } @@ -1825,20 +1786,17 @@ func awsRestjson1_serializeOpHttpBindingsGetUpgradeHistoryInput(v *GetUpgradeHis return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1899,13 +1857,10 @@ func awsRestjson1_serializeOpHttpBindingsGetUpgradeStatusInput(v *GetUpgradeStat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } @@ -2015,21 +1970,18 @@ func awsRestjson1_serializeOpHttpBindingsListDomainsForPackageInput(v *ListDomai return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.PackageID == nil { + if v.PackageID == nil || len(*v.PackageID) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PackageID must not be empty")} } if v.PackageID != nil { - if len(*v.PackageID) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PackageID must not be empty")} - } if err := encoder.SetURI("PackageID").String(*v.PackageID); err != nil { return err } @@ -2093,20 +2045,17 @@ func awsRestjson1_serializeOpHttpBindingsListElasticsearchInstanceTypesInput(v * encoder.SetQuery("domainName").String(*v.DomainName) } - if v.ElasticsearchVersion == nil { + if v.ElasticsearchVersion == nil || len(*v.ElasticsearchVersion) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ElasticsearchVersion must not be empty")} } if v.ElasticsearchVersion != nil { - if len(*v.ElasticsearchVersion) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ElasticsearchVersion must not be empty")} - } if err := encoder.SetURI("ElasticsearchVersion").String(*v.ElasticsearchVersion); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2167,8 +2116,8 @@ func awsRestjson1_serializeOpHttpBindingsListElasticsearchVersionsInput(v *ListE return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2229,20 +2178,17 @@ func awsRestjson1_serializeOpHttpBindingsListPackagesForDomainInput(v *ListPacka return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2375,9 +2321,9 @@ func awsRestjson1_serializeOpDocumentPurchaseReservedElasticsearchInstanceOfferi object := value.Object() defer object.Close() - if v.InstanceCount != nil { + if v.InstanceCount != 0 { ok := object.Key("InstanceCount") - ok.Integer(*v.InstanceCount) + ok.Integer(v.InstanceCount) } if v.ReservationName != nil { @@ -2444,13 +2390,10 @@ func awsRestjson1_serializeOpHttpBindingsRejectInboundCrossClusterSearchConnecti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CrossClusterSearchConnectionId == nil { + if v.CrossClusterSearchConnectionId == nil || len(*v.CrossClusterSearchConnectionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CrossClusterSearchConnectionId must not be empty")} } if v.CrossClusterSearchConnectionId != nil { - if len(*v.CrossClusterSearchConnectionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CrossClusterSearchConnectionId must not be empty")} - } if err := encoder.SetURI("CrossClusterSearchConnectionId").String(*v.CrossClusterSearchConnectionId); err != nil { return err } @@ -2674,13 +2617,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateElasticsearchDomainConfigInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil { + 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 len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } @@ -2847,17 +2787,13 @@ func awsRestjson1_serializeOpDocumentUpgradeElasticsearchDomainInput(v *UpgradeE return nil } -func awsRestjson1_serializeDocumentAdvancedOptions(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAdvancedOptions(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2932,34 +2868,26 @@ func awsRestjson1_serializeDocumentDescribePackagesFilter(v *types.DescribePacka return nil } -func awsRestjson1_serializeDocumentDescribePackagesFilterList(v []*types.DescribePackagesFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDescribePackagesFilterList(v []types.DescribePackagesFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDescribePackagesFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDescribePackagesFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentDescribePackagesFilterValues(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDescribePackagesFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3003,17 +2931,13 @@ func awsRestjson1_serializeDocumentDomainInformation(v *types.DomainInformation, return nil } -func awsRestjson1_serializeDocumentDomainNameList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDomainNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3140,17 +3064,13 @@ func awsRestjson1_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentFilterList(v []*types.Filter, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFilter(&v[i], av); err != nil { return err } } @@ -3174,17 +3094,14 @@ func awsRestjson1_serializeDocumentLogPublishingOption(v *types.LogPublishingOpt return nil } -func awsRestjson1_serializeDocumentLogPublishingOptions(v map[string]*types.LogPublishingOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLogPublishingOptions(v map[string]types.LogPublishingOption, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentLogPublishingOption(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentLogPublishingOption(&mapVar, om); err != nil { return err } } @@ -3254,17 +3171,13 @@ func awsRestjson1_serializeDocumentSnapshotOptions(v *types.SnapshotOptions, val return nil } -func awsRestjson1_serializeDocumentStringList(v []*string, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3286,34 +3199,26 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentValueStringList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentValueStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/elasticsearchservice/types/types.go b/service/elasticsearchservice/types/types.go index eeb8f5b6a0f..8185bbda39d 100644 --- a/service/elasticsearchservice/types/types.go +++ b/service/elasticsearchservice/types/types.go @@ -47,7 +47,7 @@ type AdditionalLimit struct { LimitName *string // Value for given AdditionalLimit$LimitName . - LimitValues []*string + LimitValues []string } // Status of the advanced options for the specified Elasticsearch domain. @@ -71,7 +71,7 @@ type AdvancedOptionsStatus struct { // Specifies the status of advanced options for the specified Elasticsearch domain. // // This member is required. - Options map[string]*string + Options map[string]string // Specifies the status of OptionStatus for advanced options for the specified // Elasticsearch domain. @@ -165,7 +165,7 @@ type CompatibleVersionsMap struct { SourceVersion *string // List of supported elastic search versions. - TargetVersions []*string + TargetVersions []string } // Filter to apply in DescribePackage response. @@ -175,7 +175,7 @@ type DescribePackagesFilter struct { Name DescribePackagesFilterName // A list of values for the specified field. - Value []*string + Value []string } // Options to configure endpoint for the Elasticsearch domain. @@ -436,7 +436,7 @@ type ElasticsearchDomainStatus struct { AccessPolicies *string // Specifies the status of the AdvancedOptions - AdvancedOptions map[string]*string + AdvancedOptions map[string]string // The current status of the Elasticsearch domain's advanced security options. AdvancedSecurityOptions *AdvancedSecurityOptions @@ -476,10 +476,10 @@ type ElasticsearchDomainStatus struct { // Map containing the Elasticsearch domain endpoints used to submit index and // search requests. Example key, value: // 'vpc','vpc-endpoint-h2dsd34efgyghrtguk5gt6j2foh4.us-east-1.es.amazonaws.com'. - Endpoints map[string]*string + Endpoints map[string]string // Log publishing options for the given domain. - LogPublishingOptions map[string]*LogPublishingOption + LogPublishingOptions map[string]LogPublishingOption // Specifies the status of the NodeToNodeEncryptionOptions. NodeToNodeEncryptionOptions *NodeToNodeEncryptionOptions @@ -563,7 +563,7 @@ type Filter struct { Name *string // Contains one or more values for the filter. - Values []*string + Values []string } // Specifies details of an inbound connection. @@ -616,10 +616,10 @@ type InboundCrossClusterSearchConnectionStatus struct { type InstanceCountLimits struct { // Maximum number of Instances that can be instantiated for given InstanceType. - MaximumInstanceCount *int32 + MaximumInstanceCount int32 // Minimum number of Instances that can be instantiated for given InstanceType. - MinimumInstanceCount *int32 + MinimumInstanceCount int32 } // InstanceLimits represents the list of instance related attributes that are @@ -639,7 +639,7 @@ type Limits struct { // List of additional limits that are specific to a given InstanceType and for each // of it's InstanceRole . - AdditionalLimits []*AdditionalLimit + AdditionalLimits []AdditionalLimit // InstanceLimits represents the list of instance related attributes that are // available for given InstanceType. @@ -647,7 +647,7 @@ type Limits struct { // StorageType represents the list of storage related types and attributes that are // available for given InstanceType. - StorageTypes []*StorageType + StorageTypes []StorageType } // Log Publishing option that is set for given domain. @@ -673,7 +673,7 @@ type LogPublishingOption struct { type LogPublishingOptionsStatus struct { // The log publishing options configured for the Elasticsearch domain. - Options map[string]*LogPublishingOption + Options map[string]LogPublishingOption // The status of the log publishing options for the Elasticsearch domain. See // OptionStatus for the status information that's included. @@ -741,7 +741,7 @@ type OptionStatus struct { PendingDeletion *bool // Specifies the latest version for the entity. - UpdateVersion *int32 + UpdateVersion int32 } // Specifies details of an outbound connection. @@ -852,10 +852,10 @@ type ReservedElasticsearchInstance struct { CurrencyCode *string // The duration, in seconds, for which the Elasticsearch instance is reserved. - Duration *int32 + Duration int32 // The number of Elasticsearch instances that have been reserved. - ElasticsearchInstanceCount *int32 + ElasticsearchInstanceCount int32 // The Elasticsearch instance type offered by the reserved instance offering. ElasticsearchInstanceType ESPartitionInstanceType @@ -869,7 +869,7 @@ type ReservedElasticsearchInstance struct { // The charge to your account regardless of whether you are creating any domains // using the instance offering. - RecurringCharges []*RecurringCharge + RecurringCharges []RecurringCharge // The customer-specified identifier to track this reservation. ReservationName *string @@ -899,7 +899,7 @@ type ReservedElasticsearchInstanceOffering struct { // The duration, in seconds, for which the offering will reserve the Elasticsearch // instance. - Duration *int32 + Duration int32 // The Elasticsearch instance type offered by the reserved instance offering. ElasticsearchInstanceType ESPartitionInstanceType @@ -913,7 +913,7 @@ type ReservedElasticsearchInstanceOffering struct { // The charge to your account regardless of whether you are creating any domains // using the instance offering. - RecurringCharges []*RecurringCharge + RecurringCharges []RecurringCharge // The Elasticsearch reserved instance offering identifier. ReservedElasticsearchInstanceOfferingId *string @@ -998,7 +998,7 @@ type StorageType struct { StorageSubTypeName *string // List of limits that are applicable for given storage type. - StorageTypeLimits []*StorageTypeLimit + StorageTypeLimits []StorageTypeLimit // Type of the storage. List of available storage options: // @@ -1035,7 +1035,7 @@ type StorageTypeLimit struct { LimitName *string // Values for the StorageTypeLimit$LimitName . - LimitValues []*string + LimitValues []string } // Specifies a key value pair for a resource tag. @@ -1065,7 +1065,7 @@ type UpgradeHistory struct { // A list of UpgradeStepItem s representing information about each step performed // as pard of a specific Upgrade or Upgrade Eligibility Check. - StepsList []*UpgradeStepItem + StepsList []UpgradeStepItem // A string that describes the update briefly UpgradeName *string @@ -1088,7 +1088,7 @@ type UpgradeStepItem struct { // A list of strings containing detailed information about the errors encountered // in a particular step. - Issues []*string + Issues []string // The Floating point value representing progress percentage of a particular step. ProgressPercent *float64 @@ -1124,13 +1124,13 @@ type VPCDerivedInfo struct { // The availability zones for the Elasticsearch domain. Exists only if the domain // was created with VPCOptions. - AvailabilityZones []*string + AvailabilityZones []string // Specifies the security groups for VPC endpoint. - SecurityGroupIds []*string + SecurityGroupIds []string // Specifies the subnets for VPC endpoint. - SubnetIds []*string + SubnetIds []string // The VPC Id for the Elasticsearch domain. Exists only if the domain was created // with VPCOptions. @@ -1157,10 +1157,10 @@ type VPCDerivedInfoStatus struct { type VPCOptions struct { // Specifies the security groups for VPC endpoint. - SecurityGroupIds []*string + SecurityGroupIds []string // Specifies the subnets for VPC endpoint. - SubnetIds []*string + SubnetIds []string } // Specifies the zone awareness configuration for the domain cluster, such as the diff --git a/service/elasticsearchservice/validators.go b/service/elasticsearchservice/validators.go index 5491bece09d..3f3e18409f5 100644 --- a/service/elasticsearchservice/validators.go +++ b/service/elasticsearchservice/validators.go @@ -715,13 +715,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/elastictranscoder/api_op_CreateJob.go b/service/elastictranscoder/api_op_CreateJob.go index 679b6881e58..dd2be25ceb9 100644 --- a/service/elastictranscoder/api_op_CreateJob.go +++ b/service/elastictranscoder/api_op_CreateJob.go @@ -48,7 +48,7 @@ type CreateJobInput struct { // A section of the request body that provides information about the files that are // being transcoded. - Inputs []*types.JobInput + Inputs []types.JobInput // A section of the request body that provides information about the transcoded // (target) file. We strongly recommend that you use the Outputs syntax instead of @@ -63,19 +63,19 @@ type CreateJobInput struct { // A section of the request body that provides information about the transcoded // (target) files. We recommend that you use the Outputs syntax instead of the // Output syntax. - Outputs []*types.CreateJobOutput + Outputs []types.CreateJobOutput // If you specify a preset in PresetId for which the value of Container is fmp4 // (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the // master playlists that you want Elastic Transcoder to create. The maximum number // of master playlists in a job is 30. - Playlists []*types.CreateJobPlaylist + Playlists []types.CreateJobPlaylist // User-defined metadata that you want to associate with an Elastic Transcoder job. // You specify metadata in key/value pairs, and you can add up to 10 key/value // pairs per job. Elastic Transcoder does not guarantee that key/value pairs are // returned in the same order in which you specify them. - UserMetadata map[string]*string + UserMetadata map[string]string } // The CreateJobResponse structure. diff --git a/service/elastictranscoder/api_op_CreatePipeline.go b/service/elastictranscoder/api_op_CreatePipeline.go index 69450890d20..9e26b623d59 100644 --- a/service/elastictranscoder/api_op_CreatePipeline.go +++ b/service/elastictranscoder/api_op_CreatePipeline.go @@ -252,7 +252,7 @@ type CreatePipelineOutput struct { // not in the same region as the pipeline. Using resources in the same region, such // as your Amazon S3 buckets, Amazon SNS notification topics, and AWS KMS key, // reduces processing time and prevents cross-regional charges. - Warnings []*types.Warning + Warnings []types.Warning // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elastictranscoder/api_op_ListJobsByPipeline.go b/service/elastictranscoder/api_op_ListJobsByPipeline.go index d394082eb11..c649d936a61 100644 --- a/service/elastictranscoder/api_op_ListJobsByPipeline.go +++ b/service/elastictranscoder/api_op_ListJobsByPipeline.go @@ -51,7 +51,7 @@ type ListJobsByPipelineInput struct { type ListJobsByPipelineOutput struct { // An array of Job objects that are in the specified pipeline. - Jobs []*types.Job + Jobs []types.Job // A value that you use to access the second and subsequent pages of results, if // any. When the jobs in the specified pipeline fit on one page or when you've diff --git a/service/elastictranscoder/api_op_ListJobsByStatus.go b/service/elastictranscoder/api_op_ListJobsByStatus.go index e100bbc2978..87c5b5eb2df 100644 --- a/service/elastictranscoder/api_op_ListJobsByStatus.go +++ b/service/elastictranscoder/api_op_ListJobsByStatus.go @@ -52,7 +52,7 @@ type ListJobsByStatusInput struct { type ListJobsByStatusOutput struct { // An array of Job objects that have the specified status. - Jobs []*types.Job + Jobs []types.Job // A value that you use to access the second and subsequent pages of results, if // any. When the jobs in the specified pipeline fit on one page or when you've diff --git a/service/elastictranscoder/api_op_ListPipelines.go b/service/elastictranscoder/api_op_ListPipelines.go index 53d33cc4aa3..32407fbb4f8 100644 --- a/service/elastictranscoder/api_op_ListPipelines.go +++ b/service/elastictranscoder/api_op_ListPipelines.go @@ -50,7 +50,7 @@ type ListPipelinesOutput struct { NextPageToken *string // An array of Pipeline objects. - Pipelines []*types.Pipeline + Pipelines []types.Pipeline // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elastictranscoder/api_op_ListPresets.go b/service/elastictranscoder/api_op_ListPresets.go index a5b7defe4ec..cbe9ada5171 100644 --- a/service/elastictranscoder/api_op_ListPresets.go +++ b/service/elastictranscoder/api_op_ListPresets.go @@ -50,7 +50,7 @@ type ListPresetsOutput struct { NextPageToken *string // An array of Preset objects. - Presets []*types.Preset + Presets []types.Preset // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elastictranscoder/api_op_ReadPipeline.go b/service/elastictranscoder/api_op_ReadPipeline.go index 4d719ccda58..e03e8b8ba80 100644 --- a/service/elastictranscoder/api_op_ReadPipeline.go +++ b/service/elastictranscoder/api_op_ReadPipeline.go @@ -46,7 +46,7 @@ type ReadPipelineOutput struct { // not in the same region as the pipeline. Using resources in the same region, such // as your Amazon S3 buckets, Amazon SNS notification topics, and AWS KMS key, // reduces processing time and prevents cross-regional charges. - Warnings []*types.Warning + Warnings []types.Warning // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elastictranscoder/api_op_TestRole.go b/service/elastictranscoder/api_op_TestRole.go index b5c0e96be57..aafb4d2829e 100644 --- a/service/elastictranscoder/api_op_TestRole.go +++ b/service/elastictranscoder/api_op_TestRole.go @@ -56,7 +56,7 @@ type TestRoleInput struct { // that you want the action to send a test notification to. // // This member is required. - Topics []*string + Topics []string } // The TestRoleResponse structure. @@ -64,7 +64,7 @@ type TestRoleOutput struct { // If the Success element contains false, this value is an array of one or more // error messages that were generated during the test process. - Messages []*string + Messages []string // If the operation is successful, this value is true; otherwise, the value is // false. diff --git a/service/elastictranscoder/api_op_UpdatePipeline.go b/service/elastictranscoder/api_op_UpdatePipeline.go index 2bec0b4c815..6f5255eb0ed 100644 --- a/service/elastictranscoder/api_op_UpdatePipeline.go +++ b/service/elastictranscoder/api_op_UpdatePipeline.go @@ -223,7 +223,7 @@ type UpdatePipelineOutput struct { // not in the same region as the pipeline. Using resources in the same region, such // as your Amazon S3 buckets, Amazon SNS notification topics, and AWS KMS key, // reduces processing time and prevents cross-regional charges. - Warnings []*types.Warning + Warnings []types.Warning // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/elastictranscoder/deserializers.go b/service/elastictranscoder/deserializers.go index 69307c42912..0c7060c01db 100644 --- a/service/elastictranscoder/deserializers.go +++ b/service/elastictranscoder/deserializers.go @@ -601,7 +601,7 @@ func awsRestjson1_deserializeOpDocumentCreatePresetOutput(v **CreatePresetOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Warning = &jtv + sv.Warning = ptr.String(jtv) } default: @@ -962,7 +962,7 @@ func awsRestjson1_deserializeOpDocumentListJobsByPipelineOutput(v **ListJobsByPi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -1130,7 +1130,7 @@ func awsRestjson1_deserializeOpDocumentListJobsByStatusOutput(v **ListJobsByStat if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -1290,7 +1290,7 @@ func awsRestjson1_deserializeOpDocumentListPipelinesOutput(v **ListPipelinesOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "Pipelines": @@ -1455,7 +1455,7 @@ func awsRestjson1_deserializeOpDocumentListPresetsOutput(v **ListPresetsOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "Presets": @@ -2110,7 +2110,7 @@ func awsRestjson1_deserializeOpDocumentTestRoleOutput(v **TestRoleOutput, value if !ok { return fmt.Errorf("expected Success to be of type string, got %T instead", value) } - sv.Success = &jtv + sv.Success = ptr.String(jtv) } default: @@ -2865,7 +2865,7 @@ func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Respo return output } -func awsRestjson1_deserializeDocumentAccessControls(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAccessControls(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2878,21 +2878,21 @@ func awsRestjson1_deserializeDocumentAccessControls(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AccessControl to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2929,7 +2929,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2969,7 +2969,7 @@ func awsRestjson1_deserializeDocumentArtwork(v **types.Artwork, value interface{ if !ok { return fmt.Errorf("expected JpgOrPng to be of type string, got %T instead", value) } - sv.AlbumArtFormat = &jtv + sv.AlbumArtFormat = ptr.String(jtv) } case "Encryption": @@ -2983,7 +2983,7 @@ func awsRestjson1_deserializeDocumentArtwork(v **types.Artwork, value interface{ if !ok { return fmt.Errorf("expected WatermarkKey to be of type string, got %T instead", value) } - sv.InputKey = &jtv + sv.InputKey = ptr.String(jtv) } case "MaxHeight": @@ -2992,7 +2992,7 @@ func awsRestjson1_deserializeDocumentArtwork(v **types.Artwork, value interface{ if !ok { return fmt.Errorf("expected DigitsOrAuto to be of type string, got %T instead", value) } - sv.MaxHeight = &jtv + sv.MaxHeight = ptr.String(jtv) } case "MaxWidth": @@ -3001,7 +3001,7 @@ func awsRestjson1_deserializeDocumentArtwork(v **types.Artwork, value interface{ if !ok { return fmt.Errorf("expected DigitsOrAuto to be of type string, got %T instead", value) } - sv.MaxWidth = &jtv + sv.MaxWidth = ptr.String(jtv) } case "PaddingPolicy": @@ -3010,7 +3010,7 @@ func awsRestjson1_deserializeDocumentArtwork(v **types.Artwork, value interface{ if !ok { return fmt.Errorf("expected PaddingPolicy to be of type string, got %T instead", value) } - sv.PaddingPolicy = &jtv + sv.PaddingPolicy = ptr.String(jtv) } case "SizingPolicy": @@ -3019,7 +3019,7 @@ func awsRestjson1_deserializeDocumentArtwork(v **types.Artwork, value interface{ if !ok { return fmt.Errorf("expected SizingPolicy to be of type string, got %T instead", value) } - sv.SizingPolicy = &jtv + sv.SizingPolicy = ptr.String(jtv) } default: @@ -3031,7 +3031,7 @@ func awsRestjson1_deserializeDocumentArtwork(v **types.Artwork, value interface{ return nil } -func awsRestjson1_deserializeDocumentArtworks(v *[]*types.Artwork, value interface{}) error { +func awsRestjson1_deserializeDocumentArtworks(v *[]types.Artwork, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3044,18 +3044,20 @@ func awsRestjson1_deserializeDocumentArtworks(v *[]*types.Artwork, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Artwork + var cv []types.Artwork if *v == nil { - cv = []*types.Artwork{} + cv = []types.Artwork{} } else { cv = *v } for _, value := range shape { - var col *types.Artwork - if err := awsRestjson1_deserializeDocumentArtwork(&col, value); err != nil { + var col types.Artwork + destAddr := &col + if err := awsRestjson1_deserializeDocumentArtwork(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3091,7 +3093,7 @@ func awsRestjson1_deserializeDocumentAudioCodecOptions(v **types.AudioCodecOptio if !ok { return fmt.Errorf("expected AudioBitDepth to be of type string, got %T instead", value) } - sv.BitDepth = &jtv + sv.BitDepth = ptr.String(jtv) } case "BitOrder": @@ -3100,7 +3102,7 @@ func awsRestjson1_deserializeDocumentAudioCodecOptions(v **types.AudioCodecOptio if !ok { return fmt.Errorf("expected AudioBitOrder to be of type string, got %T instead", value) } - sv.BitOrder = &jtv + sv.BitOrder = ptr.String(jtv) } case "Profile": @@ -3109,7 +3111,7 @@ func awsRestjson1_deserializeDocumentAudioCodecOptions(v **types.AudioCodecOptio if !ok { return fmt.Errorf("expected AudioCodecProfile to be of type string, got %T instead", value) } - sv.Profile = &jtv + sv.Profile = ptr.String(jtv) } case "Signed": @@ -3118,7 +3120,7 @@ func awsRestjson1_deserializeDocumentAudioCodecOptions(v **types.AudioCodecOptio if !ok { return fmt.Errorf("expected AudioSigned to be of type string, got %T instead", value) } - sv.Signed = &jtv + sv.Signed = ptr.String(jtv) } default: @@ -3158,7 +3160,7 @@ func awsRestjson1_deserializeDocumentAudioParameters(v **types.AudioParameters, if !ok { return fmt.Errorf("expected AudioPackingMode to be of type string, got %T instead", value) } - sv.AudioPackingMode = &jtv + sv.AudioPackingMode = ptr.String(jtv) } case "BitRate": @@ -3167,7 +3169,7 @@ func awsRestjson1_deserializeDocumentAudioParameters(v **types.AudioParameters, if !ok { return fmt.Errorf("expected AudioBitRate to be of type string, got %T instead", value) } - sv.BitRate = &jtv + sv.BitRate = ptr.String(jtv) } case "Channels": @@ -3176,7 +3178,7 @@ func awsRestjson1_deserializeDocumentAudioParameters(v **types.AudioParameters, if !ok { return fmt.Errorf("expected AudioChannels to be of type string, got %T instead", value) } - sv.Channels = &jtv + sv.Channels = ptr.String(jtv) } case "Codec": @@ -3185,7 +3187,7 @@ func awsRestjson1_deserializeDocumentAudioParameters(v **types.AudioParameters, if !ok { return fmt.Errorf("expected AudioCodec to be of type string, got %T instead", value) } - sv.Codec = &jtv + sv.Codec = ptr.String(jtv) } case "CodecOptions": @@ -3199,7 +3201,7 @@ func awsRestjson1_deserializeDocumentAudioParameters(v **types.AudioParameters, if !ok { return fmt.Errorf("expected AudioSampleRate to be of type string, got %T instead", value) } - sv.SampleRate = &jtv + sv.SampleRate = ptr.String(jtv) } default: @@ -3244,7 +3246,7 @@ func awsRestjson1_deserializeDocumentCaptionFormat(v **types.CaptionFormat, valu if !ok { return fmt.Errorf("expected CaptionFormatFormat to be of type string, got %T instead", value) } - sv.Format = &jtv + sv.Format = ptr.String(jtv) } case "Pattern": @@ -3253,7 +3255,7 @@ func awsRestjson1_deserializeDocumentCaptionFormat(v **types.CaptionFormat, valu if !ok { return fmt.Errorf("expected CaptionFormatPattern to be of type string, got %T instead", value) } - sv.Pattern = &jtv + sv.Pattern = ptr.String(jtv) } default: @@ -3265,7 +3267,7 @@ func awsRestjson1_deserializeDocumentCaptionFormat(v **types.CaptionFormat, valu return nil } -func awsRestjson1_deserializeDocumentCaptionFormats(v *[]*types.CaptionFormat, value interface{}) error { +func awsRestjson1_deserializeDocumentCaptionFormats(v *[]types.CaptionFormat, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3278,18 +3280,20 @@ func awsRestjson1_deserializeDocumentCaptionFormats(v *[]*types.CaptionFormat, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CaptionFormat + var cv []types.CaptionFormat if *v == nil { - cv = []*types.CaptionFormat{} + cv = []types.CaptionFormat{} } else { cv = *v } for _, value := range shape { - var col *types.CaptionFormat - if err := awsRestjson1_deserializeDocumentCaptionFormat(&col, value); err != nil { + var col types.CaptionFormat + destAddr := &col + if err := awsRestjson1_deserializeDocumentCaptionFormat(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3335,7 +3339,7 @@ func awsRestjson1_deserializeDocumentCaptions(v **types.Captions, value interfac if !ok { return fmt.Errorf("expected CaptionMergePolicy to be of type string, got %T instead", value) } - sv.MergePolicy = &jtv + sv.MergePolicy = ptr.String(jtv) } default: @@ -3380,7 +3384,7 @@ func awsRestjson1_deserializeDocumentCaptionSource(v **types.CaptionSource, valu if !ok { return fmt.Errorf("expected LongKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Label": @@ -3389,7 +3393,7 @@ func awsRestjson1_deserializeDocumentCaptionSource(v **types.CaptionSource, valu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Label = &jtv + sv.Label = ptr.String(jtv) } case "Language": @@ -3398,7 +3402,7 @@ func awsRestjson1_deserializeDocumentCaptionSource(v **types.CaptionSource, valu if !ok { return fmt.Errorf("expected Key to be of type string, got %T instead", value) } - sv.Language = &jtv + sv.Language = ptr.String(jtv) } case "TimeOffset": @@ -3407,7 +3411,7 @@ func awsRestjson1_deserializeDocumentCaptionSource(v **types.CaptionSource, valu if !ok { return fmt.Errorf("expected TimeOffset to be of type string, got %T instead", value) } - sv.TimeOffset = &jtv + sv.TimeOffset = ptr.String(jtv) } default: @@ -3419,7 +3423,7 @@ func awsRestjson1_deserializeDocumentCaptionSource(v **types.CaptionSource, valu return nil } -func awsRestjson1_deserializeDocumentCaptionSources(v *[]*types.CaptionSource, value interface{}) error { +func awsRestjson1_deserializeDocumentCaptionSources(v *[]types.CaptionSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3432,18 +3436,20 @@ func awsRestjson1_deserializeDocumentCaptionSources(v *[]*types.CaptionSource, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CaptionSource + var cv []types.CaptionSource if *v == nil { - cv = []*types.CaptionSource{} + cv = []types.CaptionSource{} } else { cv = *v } for _, value := range shape { - var col *types.CaptionSource - if err := awsRestjson1_deserializeDocumentCaptionSource(&col, value); err != nil { + var col types.CaptionSource + destAddr := &col + if err := awsRestjson1_deserializeDocumentCaptionSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3487,7 +3493,7 @@ func awsRestjson1_deserializeDocumentClip(v **types.Clip, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentCodecOptions(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentCodecOptions(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3500,21 +3506,21 @@ func awsRestjson1_deserializeDocumentCodecOptions(v *map[string]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected CodecOption to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -3523,7 +3529,7 @@ func awsRestjson1_deserializeDocumentCodecOptions(v *map[string]*string, value i return nil } -func awsRestjson1_deserializeDocumentComposition(v *[]*types.Clip, value interface{}) error { +func awsRestjson1_deserializeDocumentComposition(v *[]types.Clip, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3536,18 +3542,20 @@ func awsRestjson1_deserializeDocumentComposition(v *[]*types.Clip, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Clip + var cv []types.Clip if *v == nil { - cv = []*types.Clip{} + cv = []types.Clip{} } else { cv = *v } for _, value := range shape { - var col *types.Clip - if err := awsRestjson1_deserializeDocumentClip(&col, value); err != nil { + var col types.Clip + destAddr := &col + if err := awsRestjson1_deserializeDocumentClip(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3587,7 +3595,7 @@ func awsRestjson1_deserializeDocumentDetectedProperties(v **types.DetectedProper if err != nil { return err } - sv.DurationMillis = &i64 + sv.DurationMillis = ptr.Int64(i64) } case "FileSize": @@ -3600,7 +3608,7 @@ func awsRestjson1_deserializeDocumentDetectedProperties(v **types.DetectedProper if err != nil { return err } - sv.FileSize = &i64 + sv.FileSize = ptr.Int64(i64) } case "FrameRate": @@ -3609,7 +3617,7 @@ func awsRestjson1_deserializeDocumentDetectedProperties(v **types.DetectedProper if !ok { return fmt.Errorf("expected FloatString to be of type string, got %T instead", value) } - sv.FrameRate = &jtv + sv.FrameRate = ptr.String(jtv) } case "Height": @@ -3675,7 +3683,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte if !ok { return fmt.Errorf("expected ZeroTo255String to be of type string, got %T instead", value) } - sv.InitializationVector = &jtv + sv.InitializationVector = ptr.String(jtv) } case "Key": @@ -3684,7 +3692,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte if !ok { return fmt.Errorf("expected Base64EncodedString to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "KeyMd5": @@ -3693,7 +3701,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte if !ok { return fmt.Errorf("expected Base64EncodedString to be of type string, got %T instead", value) } - sv.KeyMd5 = &jtv + sv.KeyMd5 = ptr.String(jtv) } case "Mode": @@ -3702,7 +3710,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte if !ok { return fmt.Errorf("expected EncryptionMode to be of type string, got %T instead", value) } - sv.Mode = &jtv + sv.Mode = ptr.String(jtv) } default: @@ -3714,7 +3722,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte return nil } -func awsRestjson1_deserializeDocumentExceptionMessages(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentExceptionMessages(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3727,21 +3735,21 @@ func awsRestjson1_deserializeDocumentExceptionMessages(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -3778,7 +3786,7 @@ func awsRestjson1_deserializeDocumentHlsContentProtection(v **types.HlsContentPr if !ok { return fmt.Errorf("expected ZeroTo255String to be of type string, got %T instead", value) } - sv.InitializationVector = &jtv + sv.InitializationVector = ptr.String(jtv) } case "Key": @@ -3787,7 +3795,7 @@ func awsRestjson1_deserializeDocumentHlsContentProtection(v **types.HlsContentPr if !ok { return fmt.Errorf("expected Base64EncodedString to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "KeyMd5": @@ -3796,7 +3804,7 @@ func awsRestjson1_deserializeDocumentHlsContentProtection(v **types.HlsContentPr if !ok { return fmt.Errorf("expected Base64EncodedString to be of type string, got %T instead", value) } - sv.KeyMd5 = &jtv + sv.KeyMd5 = ptr.String(jtv) } case "KeyStoragePolicy": @@ -3805,7 +3813,7 @@ func awsRestjson1_deserializeDocumentHlsContentProtection(v **types.HlsContentPr if !ok { return fmt.Errorf("expected KeyStoragePolicy to be of type string, got %T instead", value) } - sv.KeyStoragePolicy = &jtv + sv.KeyStoragePolicy = ptr.String(jtv) } case "LicenseAcquisitionUrl": @@ -3814,7 +3822,7 @@ func awsRestjson1_deserializeDocumentHlsContentProtection(v **types.HlsContentPr if !ok { return fmt.Errorf("expected ZeroTo512String to be of type string, got %T instead", value) } - sv.LicenseAcquisitionUrl = &jtv + sv.LicenseAcquisitionUrl = ptr.String(jtv) } case "Method": @@ -3823,7 +3831,7 @@ func awsRestjson1_deserializeDocumentHlsContentProtection(v **types.HlsContentPr if !ok { return fmt.Errorf("expected HlsContentProtectionMethod to be of type string, got %T instead", value) } - sv.Method = &jtv + sv.Method = ptr.String(jtv) } default: @@ -3863,7 +3871,7 @@ func awsRestjson1_deserializeDocumentIncompatibleVersionException(v **types.Inco if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3908,7 +3916,7 @@ func awsRestjson1_deserializeDocumentInputCaptions(v **types.InputCaptions, valu if !ok { return fmt.Errorf("expected CaptionMergePolicy to be of type string, got %T instead", value) } - sv.MergePolicy = &jtv + sv.MergePolicy = ptr.String(jtv) } default: @@ -3948,7 +3956,7 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3988,7 +3996,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -3997,7 +4005,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Input": @@ -4021,7 +4029,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected Key to be of type string, got %T instead", value) } - sv.OutputKeyPrefix = &jtv + sv.OutputKeyPrefix = ptr.String(jtv) } case "Outputs": @@ -4035,7 +4043,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.PipelineId = &jtv + sv.PipelineId = ptr.String(jtv) } case "Playlists": @@ -4049,7 +4057,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected JobStatus to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "Timing": @@ -4104,7 +4112,7 @@ func awsRestjson1_deserializeDocumentJobAlbumArt(v **types.JobAlbumArt, value in if !ok { return fmt.Errorf("expected MergePolicy to be of type string, got %T instead", value) } - sv.MergePolicy = &jtv + sv.MergePolicy = ptr.String(jtv) } default: @@ -4144,7 +4152,7 @@ func awsRestjson1_deserializeDocumentJobInput(v **types.JobInput, value interfac if !ok { return fmt.Errorf("expected AspectRatio to be of type string, got %T instead", value) } - sv.AspectRatio = &jtv + sv.AspectRatio = ptr.String(jtv) } case "Container": @@ -4153,7 +4161,7 @@ func awsRestjson1_deserializeDocumentJobInput(v **types.JobInput, value interfac if !ok { return fmt.Errorf("expected JobContainer to be of type string, got %T instead", value) } - sv.Container = &jtv + sv.Container = ptr.String(jtv) } case "DetectedProperties": @@ -4172,7 +4180,7 @@ func awsRestjson1_deserializeDocumentJobInput(v **types.JobInput, value interfac if !ok { return fmt.Errorf("expected FrameRate to be of type string, got %T instead", value) } - sv.FrameRate = &jtv + sv.FrameRate = ptr.String(jtv) } case "InputCaptions": @@ -4186,7 +4194,7 @@ func awsRestjson1_deserializeDocumentJobInput(v **types.JobInput, value interfac if !ok { return fmt.Errorf("expected Interlaced to be of type string, got %T instead", value) } - sv.Interlaced = &jtv + sv.Interlaced = ptr.String(jtv) } case "Key": @@ -4195,7 +4203,7 @@ func awsRestjson1_deserializeDocumentJobInput(v **types.JobInput, value interfac if !ok { return fmt.Errorf("expected LongKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Resolution": @@ -4204,7 +4212,7 @@ func awsRestjson1_deserializeDocumentJobInput(v **types.JobInput, value interfac if !ok { return fmt.Errorf("expected Resolution to be of type string, got %T instead", value) } - sv.Resolution = &jtv + sv.Resolution = ptr.String(jtv) } case "TimeSpan": @@ -4221,7 +4229,7 @@ func awsRestjson1_deserializeDocumentJobInput(v **types.JobInput, value interfac return nil } -func awsRestjson1_deserializeDocumentJobInputs(v *[]*types.JobInput, value interface{}) error { +func awsRestjson1_deserializeDocumentJobInputs(v *[]types.JobInput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4234,18 +4242,20 @@ func awsRestjson1_deserializeDocumentJobInputs(v *[]*types.JobInput, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobInput + var cv []types.JobInput if *v == nil { - cv = []*types.JobInput{} + cv = []types.JobInput{} } else { cv = *v } for _, value := range shape { - var col *types.JobInput - if err := awsRestjson1_deserializeDocumentJobInput(&col, value); err != nil { + var col types.JobInput + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobInput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4286,7 +4296,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AppliedColorSpaceConversion = &jtv + sv.AppliedColorSpaceConversion = ptr.String(jtv) } case "Captions": @@ -4309,7 +4319,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf if err != nil { return err } - sv.Duration = &i64 + sv.Duration = ptr.Int64(i64) } case "DurationMillis": @@ -4322,7 +4332,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf if err != nil { return err } - sv.DurationMillis = &i64 + sv.DurationMillis = ptr.Int64(i64) } case "Encryption": @@ -4340,7 +4350,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf if err != nil { return err } - sv.FileSize = &i64 + sv.FileSize = ptr.Int64(i64) } case "FrameRate": @@ -4349,7 +4359,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf if !ok { return fmt.Errorf("expected FloatString to be of type string, got %T instead", value) } - sv.FrameRate = &jtv + sv.FrameRate = ptr.String(jtv) } case "Height": @@ -4371,7 +4381,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Key": @@ -4380,7 +4390,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf if !ok { return fmt.Errorf("expected Key to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "PresetId": @@ -4389,7 +4399,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.PresetId = &jtv + sv.PresetId = ptr.String(jtv) } case "Rotate": @@ -4398,7 +4408,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf if !ok { return fmt.Errorf("expected Rotate to be of type string, got %T instead", value) } - sv.Rotate = &jtv + sv.Rotate = ptr.String(jtv) } case "SegmentDuration": @@ -4407,7 +4417,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf if !ok { return fmt.Errorf("expected FloatString to be of type string, got %T instead", value) } - sv.SegmentDuration = &jtv + sv.SegmentDuration = ptr.String(jtv) } case "Status": @@ -4416,7 +4426,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf if !ok { return fmt.Errorf("expected JobStatus to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "StatusDetail": @@ -4425,7 +4435,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.StatusDetail = &jtv + sv.StatusDetail = ptr.String(jtv) } case "ThumbnailEncryption": @@ -4439,7 +4449,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf if !ok { return fmt.Errorf("expected ThumbnailPattern to be of type string, got %T instead", value) } - sv.ThumbnailPattern = &jtv + sv.ThumbnailPattern = ptr.String(jtv) } case "Watermarks": @@ -4469,7 +4479,7 @@ func awsRestjson1_deserializeDocumentJobOutput(v **types.JobOutput, value interf return nil } -func awsRestjson1_deserializeDocumentJobOutputs(v *[]*types.JobOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentJobOutputs(v *[]types.JobOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4482,18 +4492,20 @@ func awsRestjson1_deserializeDocumentJobOutputs(v *[]*types.JobOutput, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobOutput + var cv []types.JobOutput if *v == nil { - cv = []*types.JobOutput{} + cv = []types.JobOutput{} } else { cv = *v } for _, value := range shape { - var col *types.JobOutput - if err := awsRestjson1_deserializeDocumentJobOutput(&col, value); err != nil { + var col types.JobOutput + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobOutput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4501,7 +4513,7 @@ func awsRestjson1_deserializeDocumentJobOutputs(v *[]*types.JobOutput, value int return nil } -func awsRestjson1_deserializeDocumentJobs(v *[]*types.Job, value interface{}) error { +func awsRestjson1_deserializeDocumentJobs(v *[]types.Job, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4514,18 +4526,20 @@ func awsRestjson1_deserializeDocumentJobs(v *[]*types.Job, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Job + var cv []types.Job if *v == nil { - cv = []*types.Job{} + cv = []types.Job{} } else { cv = *v } for _, value := range shape { - var col *types.Job - if err := awsRestjson1_deserializeDocumentJob(&col, value); err != nil { + var col types.Job + destAddr := &col + if err := awsRestjson1_deserializeDocumentJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4566,7 +4580,7 @@ func awsRestjson1_deserializeDocumentJobWatermark(v **types.JobWatermark, value if !ok { return fmt.Errorf("expected WatermarkKey to be of type string, got %T instead", value) } - sv.InputKey = &jtv + sv.InputKey = ptr.String(jtv) } case "PresetWatermarkId": @@ -4575,7 +4589,7 @@ func awsRestjson1_deserializeDocumentJobWatermark(v **types.JobWatermark, value if !ok { return fmt.Errorf("expected PresetWatermarkId to be of type string, got %T instead", value) } - sv.PresetWatermarkId = &jtv + sv.PresetWatermarkId = ptr.String(jtv) } default: @@ -4587,7 +4601,7 @@ func awsRestjson1_deserializeDocumentJobWatermark(v **types.JobWatermark, value return nil } -func awsRestjson1_deserializeDocumentJobWatermarks(v *[]*types.JobWatermark, value interface{}) error { +func awsRestjson1_deserializeDocumentJobWatermarks(v *[]types.JobWatermark, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4600,18 +4614,20 @@ func awsRestjson1_deserializeDocumentJobWatermarks(v *[]*types.JobWatermark, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobWatermark + var cv []types.JobWatermark if *v == nil { - cv = []*types.JobWatermark{} + cv = []types.JobWatermark{} } else { cv = *v } for _, value := range shape { - var col *types.JobWatermark - if err := awsRestjson1_deserializeDocumentJobWatermark(&col, value); err != nil { + var col types.JobWatermark + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobWatermark(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4647,7 +4663,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4687,7 +4703,7 @@ func awsRestjson1_deserializeDocumentNotifications(v **types.Notifications, valu if !ok { return fmt.Errorf("expected SnsTopic to be of type string, got %T instead", value) } - sv.Completed = &jtv + sv.Completed = ptr.String(jtv) } case "Error": @@ -4696,7 +4712,7 @@ func awsRestjson1_deserializeDocumentNotifications(v **types.Notifications, valu if !ok { return fmt.Errorf("expected SnsTopic to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } case "Progressing": @@ -4705,7 +4721,7 @@ func awsRestjson1_deserializeDocumentNotifications(v **types.Notifications, valu if !ok { return fmt.Errorf("expected SnsTopic to be of type string, got %T instead", value) } - sv.Progressing = &jtv + sv.Progressing = ptr.String(jtv) } case "Warning": @@ -4714,7 +4730,7 @@ func awsRestjson1_deserializeDocumentNotifications(v **types.Notifications, valu if !ok { return fmt.Errorf("expected SnsTopic to be of type string, got %T instead", value) } - sv.Warning = &jtv + sv.Warning = ptr.String(jtv) } default: @@ -4726,7 +4742,7 @@ func awsRestjson1_deserializeDocumentNotifications(v **types.Notifications, valu return nil } -func awsRestjson1_deserializeDocumentOutputKeys(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentOutputKeys(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4739,21 +4755,21 @@ func awsRestjson1_deserializeDocumentOutputKeys(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Key to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4795,7 +4811,7 @@ func awsRestjson1_deserializeDocumentPermission(v **types.Permission, value inte if !ok { return fmt.Errorf("expected Grantee to be of type string, got %T instead", value) } - sv.Grantee = &jtv + sv.Grantee = ptr.String(jtv) } case "GranteeType": @@ -4804,7 +4820,7 @@ func awsRestjson1_deserializeDocumentPermission(v **types.Permission, value inte if !ok { return fmt.Errorf("expected GranteeType to be of type string, got %T instead", value) } - sv.GranteeType = &jtv + sv.GranteeType = ptr.String(jtv) } default: @@ -4816,7 +4832,7 @@ func awsRestjson1_deserializeDocumentPermission(v **types.Permission, value inte return nil } -func awsRestjson1_deserializeDocumentPermissions(v *[]*types.Permission, value interface{}) error { +func awsRestjson1_deserializeDocumentPermissions(v *[]types.Permission, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4829,18 +4845,20 @@ func awsRestjson1_deserializeDocumentPermissions(v *[]*types.Permission, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Permission + var cv []types.Permission if *v == nil { - cv = []*types.Permission{} + cv = []types.Permission{} } else { cv = *v } for _, value := range shape { - var col *types.Permission - if err := awsRestjson1_deserializeDocumentPermission(&col, value); err != nil { + var col types.Permission + destAddr := &col + if err := awsRestjson1_deserializeDocumentPermission(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4876,7 +4894,7 @@ func awsRestjson1_deserializeDocumentPipeline(v **types.Pipeline, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AwsKmsKeyArn": @@ -4885,7 +4903,7 @@ func awsRestjson1_deserializeDocumentPipeline(v **types.Pipeline, value interfac if !ok { return fmt.Errorf("expected KeyArn to be of type string, got %T instead", value) } - sv.AwsKmsKeyArn = &jtv + sv.AwsKmsKeyArn = ptr.String(jtv) } case "ContentConfig": @@ -4899,7 +4917,7 @@ func awsRestjson1_deserializeDocumentPipeline(v **types.Pipeline, value interfac if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "InputBucket": @@ -4908,7 +4926,7 @@ func awsRestjson1_deserializeDocumentPipeline(v **types.Pipeline, value interfac if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.InputBucket = &jtv + sv.InputBucket = ptr.String(jtv) } case "Name": @@ -4917,7 +4935,7 @@ func awsRestjson1_deserializeDocumentPipeline(v **types.Pipeline, value interfac if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Notifications": @@ -4931,7 +4949,7 @@ func awsRestjson1_deserializeDocumentPipeline(v **types.Pipeline, value interfac if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.OutputBucket = &jtv + sv.OutputBucket = ptr.String(jtv) } case "Role": @@ -4940,7 +4958,7 @@ func awsRestjson1_deserializeDocumentPipeline(v **types.Pipeline, value interfac if !ok { return fmt.Errorf("expected Role to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "Status": @@ -4949,7 +4967,7 @@ func awsRestjson1_deserializeDocumentPipeline(v **types.Pipeline, value interfac if !ok { return fmt.Errorf("expected PipelineStatus to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "ThumbnailConfig": @@ -4994,7 +5012,7 @@ func awsRestjson1_deserializeDocumentPipelineOutputConfig(v **types.PipelineOutp if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "Permissions": @@ -5008,7 +5026,7 @@ func awsRestjson1_deserializeDocumentPipelineOutputConfig(v **types.PipelineOutp if !ok { return fmt.Errorf("expected StorageClass to be of type string, got %T instead", value) } - sv.StorageClass = &jtv + sv.StorageClass = ptr.String(jtv) } default: @@ -5020,7 +5038,7 @@ func awsRestjson1_deserializeDocumentPipelineOutputConfig(v **types.PipelineOutp return nil } -func awsRestjson1_deserializeDocumentPipelines(v *[]*types.Pipeline, value interface{}) error { +func awsRestjson1_deserializeDocumentPipelines(v *[]types.Pipeline, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5033,18 +5051,20 @@ func awsRestjson1_deserializeDocumentPipelines(v *[]*types.Pipeline, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Pipeline + var cv []types.Pipeline if *v == nil { - cv = []*types.Pipeline{} + cv = []types.Pipeline{} } else { cv = *v } for _, value := range shape { - var col *types.Pipeline - if err := awsRestjson1_deserializeDocumentPipeline(&col, value); err != nil { + var col types.Pipeline + destAddr := &col + if err := awsRestjson1_deserializeDocumentPipeline(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5080,7 +5100,7 @@ func awsRestjson1_deserializeDocumentPlaylist(v **types.Playlist, value interfac if !ok { return fmt.Errorf("expected PlaylistFormat to be of type string, got %T instead", value) } - sv.Format = &jtv + sv.Format = ptr.String(jtv) } case "HlsContentProtection": @@ -5094,7 +5114,7 @@ func awsRestjson1_deserializeDocumentPlaylist(v **types.Playlist, value interfac if !ok { return fmt.Errorf("expected Filename to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OutputKeys": @@ -5113,7 +5133,7 @@ func awsRestjson1_deserializeDocumentPlaylist(v **types.Playlist, value interfac if !ok { return fmt.Errorf("expected JobStatus to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "StatusDetail": @@ -5122,7 +5142,7 @@ func awsRestjson1_deserializeDocumentPlaylist(v **types.Playlist, value interfac if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.StatusDetail = &jtv + sv.StatusDetail = ptr.String(jtv) } default: @@ -5134,7 +5154,7 @@ func awsRestjson1_deserializeDocumentPlaylist(v **types.Playlist, value interfac return nil } -func awsRestjson1_deserializeDocumentPlaylists(v *[]*types.Playlist, value interface{}) error { +func awsRestjson1_deserializeDocumentPlaylists(v *[]types.Playlist, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5147,18 +5167,20 @@ func awsRestjson1_deserializeDocumentPlaylists(v *[]*types.Playlist, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Playlist + var cv []types.Playlist if *v == nil { - cv = []*types.Playlist{} + cv = []types.Playlist{} } else { cv = *v } for _, value := range shape { - var col *types.Playlist - if err := awsRestjson1_deserializeDocumentPlaylist(&col, value); err != nil { + var col types.Playlist + destAddr := &col + if err := awsRestjson1_deserializeDocumentPlaylist(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5194,7 +5216,7 @@ func awsRestjson1_deserializeDocumentPlayReadyDrm(v **types.PlayReadyDrm, value if !ok { return fmt.Errorf("expected PlayReadyDrmFormatString to be of type string, got %T instead", value) } - sv.Format = &jtv + sv.Format = ptr.String(jtv) } case "InitializationVector": @@ -5203,7 +5225,7 @@ func awsRestjson1_deserializeDocumentPlayReadyDrm(v **types.PlayReadyDrm, value if !ok { return fmt.Errorf("expected ZeroTo255String to be of type string, got %T instead", value) } - sv.InitializationVector = &jtv + sv.InitializationVector = ptr.String(jtv) } case "Key": @@ -5212,7 +5234,7 @@ func awsRestjson1_deserializeDocumentPlayReadyDrm(v **types.PlayReadyDrm, value if !ok { return fmt.Errorf("expected NonEmptyBase64EncodedString to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "KeyId": @@ -5221,7 +5243,7 @@ func awsRestjson1_deserializeDocumentPlayReadyDrm(v **types.PlayReadyDrm, value if !ok { return fmt.Errorf("expected KeyIdGuid to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "KeyMd5": @@ -5230,7 +5252,7 @@ func awsRestjson1_deserializeDocumentPlayReadyDrm(v **types.PlayReadyDrm, value if !ok { return fmt.Errorf("expected NonEmptyBase64EncodedString to be of type string, got %T instead", value) } - sv.KeyMd5 = &jtv + sv.KeyMd5 = ptr.String(jtv) } case "LicenseAcquisitionUrl": @@ -5239,7 +5261,7 @@ func awsRestjson1_deserializeDocumentPlayReadyDrm(v **types.PlayReadyDrm, value if !ok { return fmt.Errorf("expected OneTo512String to be of type string, got %T instead", value) } - sv.LicenseAcquisitionUrl = &jtv + sv.LicenseAcquisitionUrl = ptr.String(jtv) } default: @@ -5279,7 +5301,7 @@ func awsRestjson1_deserializeDocumentPreset(v **types.Preset, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Audio": @@ -5293,7 +5315,7 @@ func awsRestjson1_deserializeDocumentPreset(v **types.Preset, value interface{}) if !ok { return fmt.Errorf("expected PresetContainer to be of type string, got %T instead", value) } - sv.Container = &jtv + sv.Container = ptr.String(jtv) } case "Description": @@ -5302,7 +5324,7 @@ func awsRestjson1_deserializeDocumentPreset(v **types.Preset, value interface{}) if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -5311,7 +5333,7 @@ func awsRestjson1_deserializeDocumentPreset(v **types.Preset, value interface{}) if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -5320,7 +5342,7 @@ func awsRestjson1_deserializeDocumentPreset(v **types.Preset, value interface{}) if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Thumbnails": @@ -5334,7 +5356,7 @@ func awsRestjson1_deserializeDocumentPreset(v **types.Preset, value interface{}) if !ok { return fmt.Errorf("expected PresetType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "Video": @@ -5351,7 +5373,7 @@ func awsRestjson1_deserializeDocumentPreset(v **types.Preset, value interface{}) return nil } -func awsRestjson1_deserializeDocumentPresets(v *[]*types.Preset, value interface{}) error { +func awsRestjson1_deserializeDocumentPresets(v *[]types.Preset, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5364,18 +5386,20 @@ func awsRestjson1_deserializeDocumentPresets(v *[]*types.Preset, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Preset + var cv []types.Preset if *v == nil { - cv = []*types.Preset{} + cv = []types.Preset{} } else { cv = *v } for _, value := range shape { - var col *types.Preset - if err := awsRestjson1_deserializeDocumentPreset(&col, value); err != nil { + var col types.Preset + destAddr := &col + if err := awsRestjson1_deserializeDocumentPreset(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5411,7 +5435,7 @@ func awsRestjson1_deserializeDocumentPresetWatermark(v **types.PresetWatermark, if !ok { return fmt.Errorf("expected HorizontalAlign to be of type string, got %T instead", value) } - sv.HorizontalAlign = &jtv + sv.HorizontalAlign = ptr.String(jtv) } case "HorizontalOffset": @@ -5420,7 +5444,7 @@ func awsRestjson1_deserializeDocumentPresetWatermark(v **types.PresetWatermark, if !ok { return fmt.Errorf("expected PixelsOrPercent to be of type string, got %T instead", value) } - sv.HorizontalOffset = &jtv + sv.HorizontalOffset = ptr.String(jtv) } case "Id": @@ -5429,7 +5453,7 @@ func awsRestjson1_deserializeDocumentPresetWatermark(v **types.PresetWatermark, if !ok { return fmt.Errorf("expected PresetWatermarkId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "MaxHeight": @@ -5438,7 +5462,7 @@ func awsRestjson1_deserializeDocumentPresetWatermark(v **types.PresetWatermark, if !ok { return fmt.Errorf("expected PixelsOrPercent to be of type string, got %T instead", value) } - sv.MaxHeight = &jtv + sv.MaxHeight = ptr.String(jtv) } case "MaxWidth": @@ -5447,7 +5471,7 @@ func awsRestjson1_deserializeDocumentPresetWatermark(v **types.PresetWatermark, if !ok { return fmt.Errorf("expected PixelsOrPercent to be of type string, got %T instead", value) } - sv.MaxWidth = &jtv + sv.MaxWidth = ptr.String(jtv) } case "Opacity": @@ -5456,7 +5480,7 @@ func awsRestjson1_deserializeDocumentPresetWatermark(v **types.PresetWatermark, if !ok { return fmt.Errorf("expected Opacity to be of type string, got %T instead", value) } - sv.Opacity = &jtv + sv.Opacity = ptr.String(jtv) } case "SizingPolicy": @@ -5465,7 +5489,7 @@ func awsRestjson1_deserializeDocumentPresetWatermark(v **types.PresetWatermark, if !ok { return fmt.Errorf("expected WatermarkSizingPolicy to be of type string, got %T instead", value) } - sv.SizingPolicy = &jtv + sv.SizingPolicy = ptr.String(jtv) } case "Target": @@ -5474,7 +5498,7 @@ func awsRestjson1_deserializeDocumentPresetWatermark(v **types.PresetWatermark, if !ok { return fmt.Errorf("expected Target to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } case "VerticalAlign": @@ -5483,7 +5507,7 @@ func awsRestjson1_deserializeDocumentPresetWatermark(v **types.PresetWatermark, if !ok { return fmt.Errorf("expected VerticalAlign to be of type string, got %T instead", value) } - sv.VerticalAlign = &jtv + sv.VerticalAlign = ptr.String(jtv) } case "VerticalOffset": @@ -5492,7 +5516,7 @@ func awsRestjson1_deserializeDocumentPresetWatermark(v **types.PresetWatermark, if !ok { return fmt.Errorf("expected PixelsOrPercent to be of type string, got %T instead", value) } - sv.VerticalOffset = &jtv + sv.VerticalOffset = ptr.String(jtv) } default: @@ -5504,7 +5528,7 @@ func awsRestjson1_deserializeDocumentPresetWatermark(v **types.PresetWatermark, return nil } -func awsRestjson1_deserializeDocumentPresetWatermarks(v *[]*types.PresetWatermark, value interface{}) error { +func awsRestjson1_deserializeDocumentPresetWatermarks(v *[]types.PresetWatermark, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5517,18 +5541,20 @@ func awsRestjson1_deserializeDocumentPresetWatermarks(v *[]*types.PresetWatermar return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PresetWatermark + var cv []types.PresetWatermark if *v == nil { - cv = []*types.PresetWatermark{} + cv = []types.PresetWatermark{} } else { cv = *v } for _, value := range shape { - var col *types.PresetWatermark - if err := awsRestjson1_deserializeDocumentPresetWatermark(&col, value); err != nil { + var col types.PresetWatermark + destAddr := &col + if err := awsRestjson1_deserializeDocumentPresetWatermark(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5564,7 +5590,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5604,7 +5630,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5644,7 +5670,7 @@ func awsRestjson1_deserializeDocumentThumbnails(v **types.Thumbnails, value inte if !ok { return fmt.Errorf("expected AspectRatio to be of type string, got %T instead", value) } - sv.AspectRatio = &jtv + sv.AspectRatio = ptr.String(jtv) } case "Format": @@ -5653,7 +5679,7 @@ func awsRestjson1_deserializeDocumentThumbnails(v **types.Thumbnails, value inte if !ok { return fmt.Errorf("expected JpgOrPng to be of type string, got %T instead", value) } - sv.Format = &jtv + sv.Format = ptr.String(jtv) } case "Interval": @@ -5662,7 +5688,7 @@ func awsRestjson1_deserializeDocumentThumbnails(v **types.Thumbnails, value inte if !ok { return fmt.Errorf("expected Digits to be of type string, got %T instead", value) } - sv.Interval = &jtv + sv.Interval = ptr.String(jtv) } case "MaxHeight": @@ -5671,7 +5697,7 @@ func awsRestjson1_deserializeDocumentThumbnails(v **types.Thumbnails, value inte if !ok { return fmt.Errorf("expected DigitsOrAuto to be of type string, got %T instead", value) } - sv.MaxHeight = &jtv + sv.MaxHeight = ptr.String(jtv) } case "MaxWidth": @@ -5680,7 +5706,7 @@ func awsRestjson1_deserializeDocumentThumbnails(v **types.Thumbnails, value inte if !ok { return fmt.Errorf("expected DigitsOrAuto to be of type string, got %T instead", value) } - sv.MaxWidth = &jtv + sv.MaxWidth = ptr.String(jtv) } case "PaddingPolicy": @@ -5689,7 +5715,7 @@ func awsRestjson1_deserializeDocumentThumbnails(v **types.Thumbnails, value inte if !ok { return fmt.Errorf("expected PaddingPolicy to be of type string, got %T instead", value) } - sv.PaddingPolicy = &jtv + sv.PaddingPolicy = ptr.String(jtv) } case "Resolution": @@ -5698,7 +5724,7 @@ func awsRestjson1_deserializeDocumentThumbnails(v **types.Thumbnails, value inte if !ok { return fmt.Errorf("expected ThumbnailResolution to be of type string, got %T instead", value) } - sv.Resolution = &jtv + sv.Resolution = ptr.String(jtv) } case "SizingPolicy": @@ -5707,7 +5733,7 @@ func awsRestjson1_deserializeDocumentThumbnails(v **types.Thumbnails, value inte if !ok { return fmt.Errorf("expected SizingPolicy to be of type string, got %T instead", value) } - sv.SizingPolicy = &jtv + sv.SizingPolicy = ptr.String(jtv) } default: @@ -5747,7 +5773,7 @@ func awsRestjson1_deserializeDocumentTimeSpan(v **types.TimeSpan, value interfac if !ok { return fmt.Errorf("expected Time to be of type string, got %T instead", value) } - sv.Duration = &jtv + sv.Duration = ptr.String(jtv) } case "StartTime": @@ -5756,7 +5782,7 @@ func awsRestjson1_deserializeDocumentTimeSpan(v **types.TimeSpan, value interfac if !ok { return fmt.Errorf("expected Time to be of type string, got %T instead", value) } - sv.StartTime = &jtv + sv.StartTime = ptr.String(jtv) } default: @@ -5800,7 +5826,7 @@ func awsRestjson1_deserializeDocumentTiming(v **types.Timing, value interface{}) if err != nil { return err } - sv.FinishTimeMillis = &i64 + sv.FinishTimeMillis = ptr.Int64(i64) } case "StartTimeMillis": @@ -5813,7 +5839,7 @@ func awsRestjson1_deserializeDocumentTiming(v **types.Timing, value interface{}) if err != nil { return err } - sv.StartTimeMillis = &i64 + sv.StartTimeMillis = ptr.Int64(i64) } case "SubmitTimeMillis": @@ -5826,7 +5852,7 @@ func awsRestjson1_deserializeDocumentTiming(v **types.Timing, value interface{}) if err != nil { return err } - sv.SubmitTimeMillis = &i64 + sv.SubmitTimeMillis = ptr.Int64(i64) } default: @@ -5838,7 +5864,7 @@ func awsRestjson1_deserializeDocumentTiming(v **types.Timing, value interface{}) return nil } -func awsRestjson1_deserializeDocumentUserMetadata(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentUserMetadata(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5851,21 +5877,21 @@ func awsRestjson1_deserializeDocumentUserMetadata(v *map[string]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -5902,7 +5928,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5942,7 +5968,7 @@ func awsRestjson1_deserializeDocumentVideoParameters(v **types.VideoParameters, if !ok { return fmt.Errorf("expected AspectRatio to be of type string, got %T instead", value) } - sv.AspectRatio = &jtv + sv.AspectRatio = ptr.String(jtv) } case "BitRate": @@ -5951,7 +5977,7 @@ func awsRestjson1_deserializeDocumentVideoParameters(v **types.VideoParameters, if !ok { return fmt.Errorf("expected VideoBitRate to be of type string, got %T instead", value) } - sv.BitRate = &jtv + sv.BitRate = ptr.String(jtv) } case "Codec": @@ -5960,7 +5986,7 @@ func awsRestjson1_deserializeDocumentVideoParameters(v **types.VideoParameters, if !ok { return fmt.Errorf("expected VideoCodec to be of type string, got %T instead", value) } - sv.Codec = &jtv + sv.Codec = ptr.String(jtv) } case "CodecOptions": @@ -5974,7 +6000,7 @@ func awsRestjson1_deserializeDocumentVideoParameters(v **types.VideoParameters, if !ok { return fmt.Errorf("expected AspectRatio to be of type string, got %T instead", value) } - sv.DisplayAspectRatio = &jtv + sv.DisplayAspectRatio = ptr.String(jtv) } case "FixedGOP": @@ -5983,7 +6009,7 @@ func awsRestjson1_deserializeDocumentVideoParameters(v **types.VideoParameters, if !ok { return fmt.Errorf("expected FixedGOP to be of type string, got %T instead", value) } - sv.FixedGOP = &jtv + sv.FixedGOP = ptr.String(jtv) } case "FrameRate": @@ -5992,7 +6018,7 @@ func awsRestjson1_deserializeDocumentVideoParameters(v **types.VideoParameters, if !ok { return fmt.Errorf("expected FrameRate to be of type string, got %T instead", value) } - sv.FrameRate = &jtv + sv.FrameRate = ptr.String(jtv) } case "KeyframesMaxDist": @@ -6001,7 +6027,7 @@ func awsRestjson1_deserializeDocumentVideoParameters(v **types.VideoParameters, if !ok { return fmt.Errorf("expected KeyframesMaxDist to be of type string, got %T instead", value) } - sv.KeyframesMaxDist = &jtv + sv.KeyframesMaxDist = ptr.String(jtv) } case "MaxFrameRate": @@ -6010,7 +6036,7 @@ func awsRestjson1_deserializeDocumentVideoParameters(v **types.VideoParameters, if !ok { return fmt.Errorf("expected MaxFrameRate to be of type string, got %T instead", value) } - sv.MaxFrameRate = &jtv + sv.MaxFrameRate = ptr.String(jtv) } case "MaxHeight": @@ -6019,7 +6045,7 @@ func awsRestjson1_deserializeDocumentVideoParameters(v **types.VideoParameters, if !ok { return fmt.Errorf("expected DigitsOrAuto to be of type string, got %T instead", value) } - sv.MaxHeight = &jtv + sv.MaxHeight = ptr.String(jtv) } case "MaxWidth": @@ -6028,7 +6054,7 @@ func awsRestjson1_deserializeDocumentVideoParameters(v **types.VideoParameters, if !ok { return fmt.Errorf("expected DigitsOrAuto to be of type string, got %T instead", value) } - sv.MaxWidth = &jtv + sv.MaxWidth = ptr.String(jtv) } case "PaddingPolicy": @@ -6037,7 +6063,7 @@ func awsRestjson1_deserializeDocumentVideoParameters(v **types.VideoParameters, if !ok { return fmt.Errorf("expected PaddingPolicy to be of type string, got %T instead", value) } - sv.PaddingPolicy = &jtv + sv.PaddingPolicy = ptr.String(jtv) } case "Resolution": @@ -6046,7 +6072,7 @@ func awsRestjson1_deserializeDocumentVideoParameters(v **types.VideoParameters, if !ok { return fmt.Errorf("expected Resolution to be of type string, got %T instead", value) } - sv.Resolution = &jtv + sv.Resolution = ptr.String(jtv) } case "SizingPolicy": @@ -6055,7 +6081,7 @@ func awsRestjson1_deserializeDocumentVideoParameters(v **types.VideoParameters, if !ok { return fmt.Errorf("expected SizingPolicy to be of type string, got %T instead", value) } - sv.SizingPolicy = &jtv + sv.SizingPolicy = ptr.String(jtv) } case "Watermarks": @@ -6100,7 +6126,7 @@ func awsRestjson1_deserializeDocumentWarning(v **types.Warning, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -6109,7 +6135,7 @@ func awsRestjson1_deserializeDocumentWarning(v **types.Warning, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6121,7 +6147,7 @@ func awsRestjson1_deserializeDocumentWarning(v **types.Warning, value interface{ return nil } -func awsRestjson1_deserializeDocumentWarnings(v *[]*types.Warning, value interface{}) error { +func awsRestjson1_deserializeDocumentWarnings(v *[]types.Warning, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6134,18 +6160,20 @@ func awsRestjson1_deserializeDocumentWarnings(v *[]*types.Warning, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Warning + var cv []types.Warning if *v == nil { - cv = []*types.Warning{} + cv = []types.Warning{} } else { cv = *v } for _, value := range shape { - var col *types.Warning - if err := awsRestjson1_deserializeDocumentWarning(&col, value); err != nil { + var col types.Warning + destAddr := &col + if err := awsRestjson1_deserializeDocumentWarning(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/elastictranscoder/go.mod b/service/elastictranscoder/go.mod index 383be683259..b16de4304bf 100644 --- a/service/elastictranscoder/go.mod +++ b/service/elastictranscoder/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/elastictranscoder go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/elastictranscoder/serializers.go b/service/elastictranscoder/serializers.go index 8334fa62110..a950b87a389 100644 --- a/service/elastictranscoder/serializers.go +++ b/service/elastictranscoder/serializers.go @@ -65,13 +65,10 @@ func awsRestjson1_serializeOpHttpBindingsCancelJobInput(v *CancelJobInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -469,13 +466,10 @@ func awsRestjson1_serializeOpHttpBindingsDeletePipelineInput(v *DeletePipelineIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -535,13 +529,10 @@ func awsRestjson1_serializeOpHttpBindingsDeletePresetInput(v *DeletePresetInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -609,13 +600,10 @@ func awsRestjson1_serializeOpHttpBindingsListJobsByPipelineInput(v *ListJobsByPi encoder.SetQuery("PageToken").String(*v.PageToken) } - if v.PipelineId == nil { + if v.PipelineId == nil || len(*v.PipelineId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PipelineId must not be empty")} } if v.PipelineId != nil { - if len(*v.PipelineId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PipelineId must not be empty")} - } if err := encoder.SetURI("PipelineId").String(*v.PipelineId); err != nil { return err } @@ -683,13 +671,10 @@ func awsRestjson1_serializeOpHttpBindingsListJobsByStatusInput(v *ListJobsByStat encoder.SetQuery("PageToken").String(*v.PageToken) } - if v.Status == nil { + if v.Status == nil || len(*v.Status) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Status must not be empty")} } if v.Status != nil { - if len(*v.Status) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Status must not be empty")} - } if err := encoder.SetURI("Status").String(*v.Status); err != nil { return err } @@ -873,13 +858,10 @@ func awsRestjson1_serializeOpHttpBindingsReadJobInput(v *ReadJobInput, encoder * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -939,13 +921,10 @@ func awsRestjson1_serializeOpHttpBindingsReadPipelineInput(v *ReadPipelineInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1005,13 +984,10 @@ func awsRestjson1_serializeOpHttpBindingsReadPresetInput(v *ReadPresetInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1172,13 +1148,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdatePipelineInput(v *UpdatePipelineIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1297,13 +1270,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdatePipelineNotificationsInput(v *Upd return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1388,13 +1358,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdatePipelineStatusInput(v *UpdatePipe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1415,17 +1382,13 @@ func awsRestjson1_serializeOpDocumentUpdatePipelineStatusInput(v *UpdatePipeline return nil } -func awsRestjson1_serializeDocumentAccessControls(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAccessControls(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1474,17 +1437,13 @@ func awsRestjson1_serializeDocumentArtwork(v *types.Artwork, value smithyjson.Va return nil } -func awsRestjson1_serializeDocumentArtworks(v []*types.Artwork, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentArtworks(v []types.Artwork, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentArtwork(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentArtwork(&v[i], av); err != nil { return err } } @@ -1581,17 +1540,13 @@ func awsRestjson1_serializeDocumentCaptionFormat(v *types.CaptionFormat, value s return nil } -func awsRestjson1_serializeDocumentCaptionFormats(v []*types.CaptionFormat, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCaptionFormats(v []types.CaptionFormat, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCaptionFormat(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCaptionFormat(&v[i], av); err != nil { return err } } @@ -1658,17 +1613,13 @@ func awsRestjson1_serializeDocumentCaptionSource(v *types.CaptionSource, value s return nil } -func awsRestjson1_serializeDocumentCaptionSources(v []*types.CaptionSource, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCaptionSources(v []types.CaptionSource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCaptionSource(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCaptionSource(&v[i], av); err != nil { return err } } @@ -1689,32 +1640,24 @@ func awsRestjson1_serializeDocumentClip(v *types.Clip, value smithyjson.Value) e return nil } -func awsRestjson1_serializeDocumentCodecOptions(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCodecOptions(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentComposition(v []*types.Clip, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentComposition(v []types.Clip, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentClip(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentClip(&v[i], av); err != nil { return err } } @@ -1795,17 +1738,13 @@ func awsRestjson1_serializeDocumentCreateJobOutput(v *types.CreateJobOutput, val return nil } -func awsRestjson1_serializeDocumentCreateJobOutputs(v []*types.CreateJobOutput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCreateJobOutputs(v []types.CreateJobOutput, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCreateJobOutput(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCreateJobOutput(&v[i], av); err != nil { return err } } @@ -1850,17 +1789,13 @@ func awsRestjson1_serializeDocumentCreateJobPlaylist(v *types.CreateJobPlaylist, return nil } -func awsRestjson1_serializeDocumentCreateJobPlaylists(v []*types.CreateJobPlaylist, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCreateJobPlaylists(v []types.CreateJobPlaylist, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCreateJobPlaylist(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCreateJobPlaylist(&v[i], av); err != nil { return err } } @@ -2066,17 +2001,13 @@ func awsRestjson1_serializeDocumentJobInput(v *types.JobInput, value smithyjson. return nil } -func awsRestjson1_serializeDocumentJobInputs(v []*types.JobInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentJobInputs(v []types.JobInput, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentJobInput(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentJobInput(&v[i], av); err != nil { return err } } @@ -2107,17 +2038,13 @@ func awsRestjson1_serializeDocumentJobWatermark(v *types.JobWatermark, value smi return nil } -func awsRestjson1_serializeDocumentJobWatermarks(v []*types.JobWatermark, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentJobWatermarks(v []types.JobWatermark, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentJobWatermark(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentJobWatermark(&v[i], av); err != nil { return err } } @@ -2151,17 +2078,13 @@ func awsRestjson1_serializeDocumentNotifications(v *types.Notifications, value s return nil } -func awsRestjson1_serializeDocumentOutputKeys(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentOutputKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2190,17 +2113,13 @@ func awsRestjson1_serializeDocumentPermission(v *types.Permission, value smithyj return nil } -func awsRestjson1_serializeDocumentPermissions(v []*types.Permission, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPermissions(v []types.Permission, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentPermission(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentPermission(&v[i], av); err != nil { return err } } @@ -2325,34 +2244,26 @@ func awsRestjson1_serializeDocumentPresetWatermark(v *types.PresetWatermark, val return nil } -func awsRestjson1_serializeDocumentPresetWatermarks(v []*types.PresetWatermark, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPresetWatermarks(v []types.PresetWatermark, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentPresetWatermark(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentPresetWatermark(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentSnsTopics(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSnsTopics(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2421,17 +2332,13 @@ func awsRestjson1_serializeDocumentTimeSpan(v *types.TimeSpan, value smithyjson. return nil } -func awsRestjson1_serializeDocumentUserMetadata(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentUserMetadata(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/elastictranscoder/types/types.go b/service/elastictranscoder/types/types.go index fab791ecf52..39288bde65e 100644 --- a/service/elastictranscoder/types/types.go +++ b/service/elastictranscoder/types/types.go @@ -342,11 +342,11 @@ type Captions struct { // The array of file formats for the output captions. If you leave this value // blank, Elastic Transcoder returns an error. - CaptionFormats []*CaptionFormat + CaptionFormats []CaptionFormat // Source files for the input sidecar captions used during the transcoding process. // To omit all sidecar captions, leave CaptionSources blank. - CaptionSources []*CaptionSource + CaptionSources []CaptionSource // A policy that determines how Elastic Transcoder handles the existence of // multiple captions. @@ -464,7 +464,7 @@ type CreateJobOutput struct { // The Composition object contains settings for the clips that make up an output // file. For the current release, you can only specify settings for a single clip // per output file. The Composition object cannot be null. - Composition []*Clip + Composition []Clip // You can specify encryption settings for any output files that you want to use // for a transcoding job. This includes the output file and any watermarks, @@ -541,7 +541,7 @@ type CreateJobOutput struct { // video during transcoding. You can specify up to four watermarks for each output. // Settings for each watermark must be defined in the preset for the current // output. - Watermarks []*JobWatermark + Watermarks []JobWatermark } // Information about the master playlist. @@ -593,7 +593,7 @@ type CreateJobPlaylist struct { // settings must be the same for all outputs in the playlist. For Smooth playlists, // the Audio:Profile, Video:Profile, and Video:FrameRate to Video:KeyframesMaxDist // ratio must be the same for all outputs. - OutputKeys []*string + OutputKeys []string // The DRM settings, if any, that you want Elastic Transcoder to apply to the // output files associated with this playlist. @@ -734,7 +734,7 @@ type InputCaptions struct { // Source files for the input sidecar captions used during the transcoding process. // To omit all sidecar captions, leave CaptionSources blank. - CaptionSources []*CaptionSource + CaptionSources []CaptionSource // A policy that determines how Elastic Transcoder handles the existence of // multiple captions. @@ -777,7 +777,7 @@ type Job struct { // Information about the files that you're transcoding. If you specified multiple // files for this job, Elastic Transcoder stitches the files together to make one // output. - Inputs []*JobInput + Inputs []JobInput // If you specified one output for a job, information about that output. If you // specified multiple outputs for a job, the Output object lists information about @@ -799,7 +799,7 @@ type Job struct { // request. You can create a maximum of 30 outputs per job. If you specify more // than one output for a job, Elastic Transcoder creates the files for each output // in the order in which you specify them in the job. - Outputs []*JobOutput + Outputs []JobOutput // The Id of the pipeline that you want Elastic Transcoder to use for transcoding. // The pipeline determines several settings, including the Amazon S3 bucket from @@ -812,7 +812,7 @@ type Job struct { // (MPEG-TS), Playlists contains information about the master playlists that you // want Elastic Transcoder to create. The maximum number of master playlists in a // job is 30. - Playlists []*Playlist + Playlists []Playlist // The status of the job: Submitted, Progressing, Complete, Canceled, or Error. Status *string @@ -834,7 +834,7 @@ type Job struct { // // * // The following symbols: _.:/=+-%@ - UserMetadata map[string]*string + UserMetadata map[string]string } // The .jpg or .png file associated with an audio file. @@ -842,7 +842,7 @@ type JobAlbumArt struct { // The file to be used as album art. There can be multiple artworks associated with // an audio file, to a maximum of 20. Valid formats are .jpg and .png - Artwork []*Artwork + Artwork []Artwork // A policy that determines how Elastic Transcoder handles the existence of // multiple album artwork files. @@ -1003,7 +1003,7 @@ type JobOutput struct { // The Composition object contains settings for the clips that make up an output // file. For the current release, you can only specify settings for a single clip // per output file. The Composition object cannot be null. - Composition []*Clip + Composition []Clip // Duration of the output file, in seconds. Duration *int64 @@ -1136,7 +1136,7 @@ type JobOutput struct { // Transcoder to place all watermarks in the same location, the second watermark // that you add covers the first one, the third one covers the second, and the // fourth one covers the third. - Watermarks []*JobWatermark + Watermarks []JobWatermark // Specifies the width of the output file in pixels. Width *int32 @@ -1206,7 +1206,7 @@ type Permission struct { // * // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the // thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. - Access []*string + Access []string // The AWS user or group that you want to have access to transcoded files and // playlists. To identify the user or group, you can specify the canonical user ID @@ -1433,7 +1433,7 @@ type PipelineOutputConfig struct { // omit Permissions, Elastic Transcoder grants full control over the transcoded // files and playlists to the owner of the role specified by Role, and grants no // other permissions to any other user or group. - Permissions []*Permission + Permissions []Permission // The Amazon S3 storage class, Standard or ReducedRedundancy, that you want // Elastic Transcoder to assign to the video files and playlists that it stores in @@ -1496,7 +1496,7 @@ type Playlist struct { // caption settings must be the same for all outputs in the playlist. For Smooth // playlists, the Audio:Profile, Video:Profile, and Video:FrameRate to // Video:KeyframesMaxDist ratio must be the same for all outputs. - OutputKeys []*string + OutputKeys []string // The DRM settings, if any, that you want Elastic Transcoder to apply to the // output files associated with this playlist. @@ -2030,7 +2030,7 @@ type VideoParameters struct { // information of every horizontal line and every other vertical line. LoopCount // (Gif Only) The number of times you want the output gif to loop. Valid values // include Infinite and integers between 0 and 100, inclusive. - CodecOptions map[string]*string + CodecOptions map[string]string // The value that Elastic Transcoder adds to the metadata in the output file. DisplayAspectRatio *string @@ -2245,7 +2245,7 @@ type VideoParameters struct { // videos. You can specify fewer graphics in the job than you specify watermark // settings in the preset, which allows you to use the same preset for up to four // watermarks that have different dimensions. - Watermarks []*PresetWatermark + Watermarks []PresetWatermark } // Elastic Transcoder returns a warning if the resources used by your pipeline are diff --git a/service/emr/api_op_AddInstanceGroups.go b/service/emr/api_op_AddInstanceGroups.go index 90d82b460b1..bd6a0cd8139 100644 --- a/service/emr/api_op_AddInstanceGroups.go +++ b/service/emr/api_op_AddInstanceGroups.go @@ -33,7 +33,7 @@ type AddInstanceGroupsInput struct { // Instance groups to add. // // This member is required. - InstanceGroups []*types.InstanceGroupConfig + InstanceGroups []types.InstanceGroupConfig // Job flow in which to add the instance groups. // @@ -48,7 +48,7 @@ type AddInstanceGroupsOutput struct { ClusterArn *string // Instance group IDs of the newly created instance groups. - InstanceGroupIds []*string + InstanceGroupIds []string // The job flow ID in which the instance groups are added. JobFlowId *string diff --git a/service/emr/api_op_AddJobFlowSteps.go b/service/emr/api_op_AddJobFlowSteps.go index dad6b895673..92019011f63 100644 --- a/service/emr/api_op_AddJobFlowSteps.go +++ b/service/emr/api_op_AddJobFlowSteps.go @@ -55,14 +55,14 @@ type AddJobFlowStepsInput struct { // A list of StepConfig to be executed by the job flow. // // This member is required. - Steps []*types.StepConfig + Steps []types.StepConfig } // The output for the AddJobFlowSteps operation. type AddJobFlowStepsOutput struct { // The identifiers of the list of steps added to the job flow. - StepIds []*string + StepIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/emr/api_op_AddTags.go b/service/emr/api_op_AddTags.go index 0553e23d525..9aefeb0d53b 100644 --- a/service/emr/api_op_AddTags.go +++ b/service/emr/api_op_AddTags.go @@ -45,7 +45,7 @@ type AddTagsInput struct { // characters. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } // This output indicates the result of adding tags to a resource. diff --git a/service/emr/api_op_CancelSteps.go b/service/emr/api_op_CancelSteps.go index 19614c1a8ae..a21d5b32039 100644 --- a/service/emr/api_op_CancelSteps.go +++ b/service/emr/api_op_CancelSteps.go @@ -45,7 +45,7 @@ type CancelStepsInput struct { // the specified cluster. // // This member is required. - StepIds []*string + StepIds []string // The option to choose for cancelling RUNNING steps. By default, the value is // SEND_INTERRUPT. @@ -57,7 +57,7 @@ type CancelStepsOutput struct { // A list of CancelStepsInfo, which shows the status of specified cancel requests // for each StepID specified. - CancelStepsInfoList []*types.CancelStepsInfo + CancelStepsInfoList []types.CancelStepsInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/emr/api_op_DescribeJobFlows.go b/service/emr/api_op_DescribeJobFlows.go index 743d9005cf4..cc883137dd1 100644 --- a/service/emr/api_op_DescribeJobFlows.go +++ b/service/emr/api_op_DescribeJobFlows.go @@ -54,7 +54,7 @@ type DescribeJobFlowsInput struct { CreatedBefore *time.Time // Return only job flows whose job flow ID is contained in this list. - JobFlowIds []*string + JobFlowIds []string // Return only job flows whose state is contained in this list. JobFlowStates []types.JobFlowExecutionState @@ -64,7 +64,7 @@ type DescribeJobFlowsInput struct { type DescribeJobFlowsOutput struct { // A list of job flows matching the parameters supplied. - JobFlows []*types.JobFlowDetail + JobFlows []types.JobFlowDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/emr/api_op_ListBootstrapActions.go b/service/emr/api_op_ListBootstrapActions.go index 92d55c7dcaa..4f9156efe35 100644 --- a/service/emr/api_op_ListBootstrapActions.go +++ b/service/emr/api_op_ListBootstrapActions.go @@ -43,7 +43,7 @@ type ListBootstrapActionsInput struct { type ListBootstrapActionsOutput struct { // The bootstrap actions associated with the cluster. - BootstrapActions []*types.Command + BootstrapActions []types.Command // The pagination token that indicates the next set of results to retrieve. Marker *string diff --git a/service/emr/api_op_ListClusters.go b/service/emr/api_op_ListClusters.go index 7f8dfe39392..026270028d7 100644 --- a/service/emr/api_op_ListClusters.go +++ b/service/emr/api_op_ListClusters.go @@ -54,7 +54,7 @@ type ListClustersInput struct { type ListClustersOutput struct { // The list of clusters for the account based on the given filters. - Clusters []*types.ClusterSummary + Clusters []types.ClusterSummary // The pagination token that indicates the next set of results to retrieve. Marker *string diff --git a/service/emr/api_op_ListInstanceFleets.go b/service/emr/api_op_ListInstanceFleets.go index 2f31d7c0ff2..1e005afdbef 100644 --- a/service/emr/api_op_ListInstanceFleets.go +++ b/service/emr/api_op_ListInstanceFleets.go @@ -43,7 +43,7 @@ type ListInstanceFleetsInput struct { type ListInstanceFleetsOutput struct { // The list of instance fleets for the cluster and given filters. - InstanceFleets []*types.InstanceFleet + InstanceFleets []types.InstanceFleet // The pagination token that indicates the next set of results to retrieve. Marker *string diff --git a/service/emr/api_op_ListInstanceGroups.go b/service/emr/api_op_ListInstanceGroups.go index bf1a105391d..416331b46ea 100644 --- a/service/emr/api_op_ListInstanceGroups.go +++ b/service/emr/api_op_ListInstanceGroups.go @@ -43,7 +43,7 @@ type ListInstanceGroupsInput struct { type ListInstanceGroupsOutput struct { // The list of instance groups for the cluster and given filters. - InstanceGroups []*types.InstanceGroup + InstanceGroups []types.InstanceGroup // The pagination token that indicates the next set of results to retrieve. Marker *string diff --git a/service/emr/api_op_ListInstances.go b/service/emr/api_op_ListInstances.go index 24211679f26..18bc36c66fc 100644 --- a/service/emr/api_op_ListInstances.go +++ b/service/emr/api_op_ListInstances.go @@ -62,7 +62,7 @@ type ListInstancesInput struct { type ListInstancesOutput struct { // The list of instances for the cluster and given filters. - Instances []*types.Instance + Instances []types.Instance // The pagination token that indicates the next set of results to retrieve. Marker *string diff --git a/service/emr/api_op_ListNotebookExecutions.go b/service/emr/api_op_ListNotebookExecutions.go index e13595fa146..42dda4d5e93 100644 --- a/service/emr/api_op_ListNotebookExecutions.go +++ b/service/emr/api_op_ListNotebookExecutions.go @@ -90,7 +90,7 @@ type ListNotebookExecutionsOutput struct { Marker *string // A list of notebook executions. - NotebookExecutions []*types.NotebookExecutionSummary + NotebookExecutions []types.NotebookExecutionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/emr/api_op_ListSecurityConfigurations.go b/service/emr/api_op_ListSecurityConfigurations.go index a88870b6d76..9501df27556 100644 --- a/service/emr/api_op_ListSecurityConfigurations.go +++ b/service/emr/api_op_ListSecurityConfigurations.go @@ -44,7 +44,7 @@ type ListSecurityConfigurationsOutput struct { Marker *string // The creation date and time, and name, of each security configuration. - SecurityConfigurations []*types.SecurityConfigurationSummary + SecurityConfigurations []types.SecurityConfigurationSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/emr/api_op_ListSteps.go b/service/emr/api_op_ListSteps.go index 34522fbdc63..43549e40001 100644 --- a/service/emr/api_op_ListSteps.go +++ b/service/emr/api_op_ListSteps.go @@ -43,7 +43,7 @@ type ListStepsInput struct { // The filter to limit the step list based on the identifier of the steps. You can // specify a maximum of ten Step IDs. The character constraint applies to the // overall length of the array. - StepIds []*string + StepIds []string // The filter to limit the step list based on certain states. StepStates []types.StepState @@ -57,7 +57,7 @@ type ListStepsOutput struct { Marker *string // The filtered list of steps for the cluster. - Steps []*types.StepSummary + Steps []types.StepSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/emr/api_op_ModifyInstanceGroups.go b/service/emr/api_op_ModifyInstanceGroups.go index 7b5bfe22314..ea56676e1ae 100644 --- a/service/emr/api_op_ModifyInstanceGroups.go +++ b/service/emr/api_op_ModifyInstanceGroups.go @@ -37,7 +37,7 @@ type ModifyInstanceGroupsInput struct { ClusterId *string // Instance groups to change. - InstanceGroups []*types.InstanceGroupModifyConfig + InstanceGroups []types.InstanceGroupModifyConfig } type ModifyInstanceGroupsOutput struct { diff --git a/service/emr/api_op_RemoveTags.go b/service/emr/api_op_RemoveTags.go index a454a29a766..94cf72b3b03 100644 --- a/service/emr/api_op_RemoveTags.go +++ b/service/emr/api_op_RemoveTags.go @@ -42,7 +42,7 @@ type RemoveTagsInput struct { // A list of tag keys to remove from a resource. // // This member is required. - TagKeys []*string + TagKeys []string } // This output indicates the result of removing tags from a resource. diff --git a/service/emr/api_op_RunJobFlow.go b/service/emr/api_op_RunJobFlow.go index 773354cc7c3..c5dfec697c1 100644 --- a/service/emr/api_op_RunJobFlow.go +++ b/service/emr/api_op_RunJobFlow.go @@ -73,7 +73,7 @@ type RunJobFlowInput struct { // For a list of applications available for each Amazon EMR release version, see // the Amazon EMR Release Guide // (https://docs.aws.amazon.com/emr/latest/ReleaseGuide/). - Applications []*types.Application + Applications []types.Application // An IAM role for automatic scaling policies. The default role is // EMR_AutoScaling_DefaultRole. The IAM role provides permissions that the @@ -82,11 +82,11 @@ type RunJobFlowInput struct { AutoScalingRole *string // A list of bootstrap actions to run before Hadoop starts on the cluster nodes. - BootstrapActions []*types.BootstrapActionConfig + BootstrapActions []types.BootstrapActionConfig // For Amazon EMR releases 4.0 and later. The list of configurations supplied for // the EMR cluster you are creating. - Configurations []*types.Configuration + Configurations []types.Configuration // Available only in Amazon EMR version 5.7.0 and later. The ID of a custom Amazon // EBS-backed Linux AMI. If specified, Amazon EMR uses this AMI when it launches @@ -163,10 +163,10 @@ type RunJobFlowInput struct { // // * "ganglia" - launch the // cluster with the Ganglia Monitoring System installed. - NewSupportedProducts []*types.SupportedProductConfig + NewSupportedProducts []types.SupportedProductConfig // The specified placement group configuration for an Amazon EMR cluster. - PlacementGroupConfigs []*types.PlacementGroupConfig + PlacementGroupConfigs []types.PlacementGroupConfig // The Amazon EMR release label, which determines the version of open-source // application packages installed on the cluster. Release labels are in the form @@ -212,7 +212,7 @@ type RunJobFlowInput struct { StepConcurrencyLevel *int32 // A list of steps to run. - Steps []*types.StepConfig + Steps []types.StepConfig // For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use // Applications. A list of strings that indicates third-party software to use. For @@ -224,17 +224,17 @@ type RunJobFlowInput struct { // Edition. // // * "mapr-m5" - launch the job flow using MapR M5 Edition. - SupportedProducts []*string + SupportedProducts []string // A list of tags to associate with a cluster and propagate to Amazon EC2 // instances. - Tags []*types.Tag + Tags []types.Tag // A value of true indicates that all IAM users in the AWS account can perform // cluster actions if they have the proper IAM policy permissions. This is the // default. A value of false indicates that only the IAM user who created the // cluster can perform actions. - VisibleToAllUsers *bool + VisibleToAllUsers bool } // The result of the RunJobFlow operation. diff --git a/service/emr/api_op_SetTerminationProtection.go b/service/emr/api_op_SetTerminationProtection.go index 233eb7eef0d..3c9e5ef3149 100644 --- a/service/emr/api_op_SetTerminationProtection.go +++ b/service/emr/api_op_SetTerminationProtection.go @@ -49,14 +49,14 @@ type SetTerminationProtectionInput struct { // DescribeJobFlows . // // This member is required. - JobFlowIds []*string + JobFlowIds []string // A Boolean that indicates whether to protect the cluster and prevent the Amazon // EC2 instances in the cluster from shutting down due to API calls, user // intervention, or job-flow error. // // This member is required. - TerminationProtected *bool + TerminationProtected bool } type SetTerminationProtectionOutput struct { diff --git a/service/emr/api_op_SetVisibleToAllUsers.go b/service/emr/api_op_SetVisibleToAllUsers.go index a8b01bbe6da..af84779a389 100644 --- a/service/emr/api_op_SetVisibleToAllUsers.go +++ b/service/emr/api_op_SetVisibleToAllUsers.go @@ -40,7 +40,7 @@ type SetVisibleToAllUsersInput struct { // The unique identifier of the job flow (cluster). // // This member is required. - JobFlowIds []*string + JobFlowIds []string // A value of true indicates that all IAM users in the AWS account can perform // cluster actions if they have the proper IAM policy permissions. This is the @@ -48,7 +48,7 @@ type SetVisibleToAllUsersInput struct { // cluster can perform actions. // // This member is required. - VisibleToAllUsers *bool + VisibleToAllUsers bool } type SetVisibleToAllUsersOutput struct { diff --git a/service/emr/api_op_StartNotebookExecution.go b/service/emr/api_op_StartNotebookExecution.go index 860190ed7da..8ef8710e6bf 100644 --- a/service/emr/api_op_StartNotebookExecution.go +++ b/service/emr/api_op_StartNotebookExecution.go @@ -70,7 +70,7 @@ type StartNotebookExecutionInput struct { // A list of tags associated with a notebook execution. Tags are user-defined key // value pairs that consist of a required key string with a maximum of 128 // characters and an optional value string with a maximum of 256 characters. - Tags []*types.Tag + Tags []types.Tag } type StartNotebookExecutionOutput struct { diff --git a/service/emr/api_op_TerminateJobFlows.go b/service/emr/api_op_TerminateJobFlows.go index 5ea0f856f0c..cc6fa9456d6 100644 --- a/service/emr/api_op_TerminateJobFlows.go +++ b/service/emr/api_op_TerminateJobFlows.go @@ -39,7 +39,7 @@ type TerminateJobFlowsInput struct { // A list of job flows to be shutdown. // // This member is required. - JobFlowIds []*string + JobFlowIds []string } type TerminateJobFlowsOutput struct { diff --git a/service/emr/deserializers.go b/service/emr/deserializers.go index 3c937d54228..274d67ad8f6 100644 --- a/service/emr/deserializers.go +++ b/service/emr/deserializers.go @@ -4326,7 +4326,7 @@ func awsAwsjson11_deserializeDocumentApplication(v **types.Application, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Version": @@ -4335,7 +4335,7 @@ func awsAwsjson11_deserializeDocumentApplication(v **types.Application, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -4347,7 +4347,7 @@ func awsAwsjson11_deserializeDocumentApplication(v **types.Application, value in return nil } -func awsAwsjson11_deserializeDocumentApplicationList(v *[]*types.Application, value interface{}) error { +func awsAwsjson11_deserializeDocumentApplicationList(v *[]types.Application, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4360,18 +4360,20 @@ func awsAwsjson11_deserializeDocumentApplicationList(v *[]*types.Application, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Application + var cv []types.Application if *v == nil { - cv = []*types.Application{} + cv = []types.Application{} } else { cv = *v } for _, value := range shape { - var col *types.Application - if err := awsAwsjson11_deserializeDocumentApplication(&col, value); err != nil { + var col types.Application + destAddr := &col + if err := awsAwsjson11_deserializeDocumentApplication(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4462,7 +4464,7 @@ func awsAwsjson11_deserializeDocumentAutoScalingPolicyStateChangeReason(v **type if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4547,7 +4549,7 @@ func awsAwsjson11_deserializeDocumentBlockPublicAccessConfiguration(v **types.Bl if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.BlockPublicSecurityGroupRules = &jtv + sv.BlockPublicSecurityGroupRules = jtv } case "Classification": @@ -4556,7 +4558,7 @@ func awsAwsjson11_deserializeDocumentBlockPublicAccessConfiguration(v **types.Bl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Classification = &jtv + sv.Classification = ptr.String(jtv) } case "Configurations": @@ -4611,7 +4613,7 @@ func awsAwsjson11_deserializeDocumentBlockPublicAccessConfigurationMetadata(v ** if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.CreatedByArn = &jtv + sv.CreatedByArn = ptr.String(jtv) } case "CreationDateTime": @@ -4664,7 +4666,7 @@ func awsAwsjson11_deserializeDocumentBootstrapActionConfig(v **types.BootstrapAc if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ScriptBootstrapAction": @@ -4717,7 +4719,7 @@ func awsAwsjson11_deserializeDocumentBootstrapActionDetail(v **types.BootstrapAc return nil } -func awsAwsjson11_deserializeDocumentBootstrapActionDetailList(v *[]*types.BootstrapActionDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentBootstrapActionDetailList(v *[]types.BootstrapActionDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4730,18 +4732,20 @@ func awsAwsjson11_deserializeDocumentBootstrapActionDetailList(v *[]*types.Boots return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BootstrapActionDetail + var cv []types.BootstrapActionDetail if *v == nil { - cv = []*types.BootstrapActionDetail{} + cv = []types.BootstrapActionDetail{} } else { cv = *v } for _, value := range shape { - var col *types.BootstrapActionDetail - if err := awsAwsjson11_deserializeDocumentBootstrapActionDetail(&col, value); err != nil { + var col types.BootstrapActionDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBootstrapActionDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4777,7 +4781,7 @@ func awsAwsjson11_deserializeDocumentCancelStepsInfo(v **types.CancelStepsInfo, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "Status": @@ -4795,7 +4799,7 @@ func awsAwsjson11_deserializeDocumentCancelStepsInfo(v **types.CancelStepsInfo, if !ok { return fmt.Errorf("expected StepId to be of type string, got %T instead", value) } - sv.StepId = &jtv + sv.StepId = ptr.String(jtv) } default: @@ -4807,7 +4811,7 @@ func awsAwsjson11_deserializeDocumentCancelStepsInfo(v **types.CancelStepsInfo, return nil } -func awsAwsjson11_deserializeDocumentCancelStepsInfoList(v *[]*types.CancelStepsInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentCancelStepsInfoList(v *[]types.CancelStepsInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4820,18 +4824,20 @@ func awsAwsjson11_deserializeDocumentCancelStepsInfoList(v *[]*types.CancelSteps return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CancelStepsInfo + var cv []types.CancelStepsInfo if *v == nil { - cv = []*types.CancelStepsInfo{} + cv = []types.CancelStepsInfo{} } else { cv = *v } for _, value := range shape { - var col *types.CancelStepsInfo - if err := awsAwsjson11_deserializeDocumentCancelStepsInfo(&col, value); err != nil { + var col types.CancelStepsInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCancelStepsInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4894,7 +4900,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchAlarmDefinition(v **types.CloudWa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Namespace": @@ -4903,7 +4909,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchAlarmDefinition(v **types.CloudWa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "Period": @@ -4938,7 +4944,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchAlarmDefinition(v **types.CloudWa if err != nil { return err } - sv.Threshold = &f64 + sv.Threshold = ptr.Float64(f64) } case "Unit": @@ -4992,7 +4998,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.AutoScalingRole = &jtv + sv.AutoScalingRole = ptr.String(jtv) } case "AutoTerminate": @@ -5001,7 +5007,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoTerminate = &jtv + sv.AutoTerminate = jtv } case "ClusterArn": @@ -5010,7 +5016,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "Configurations": @@ -5024,7 +5030,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.CustomAmiId = &jtv + sv.CustomAmiId = ptr.String(jtv) } case "EbsRootVolumeSize": @@ -5051,7 +5057,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "InstanceCollectionType": @@ -5074,7 +5080,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LogEncryptionKmsKeyId = &jtv + sv.LogEncryptionKmsKeyId = ptr.String(jtv) } case "LogUri": @@ -5083,7 +5089,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LogUri = &jtv + sv.LogUri = ptr.String(jtv) } case "MasterPublicDnsName": @@ -5092,7 +5098,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MasterPublicDnsName = &jtv + sv.MasterPublicDnsName = ptr.String(jtv) } case "Name": @@ -5101,7 +5107,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NormalizedInstanceHours": @@ -5123,7 +5129,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected OptionalArnType to be of type string, got %T instead", value) } - sv.OutpostArn = &jtv + sv.OutpostArn = ptr.String(jtv) } case "PlacementGroups": @@ -5137,7 +5143,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReleaseLabel = &jtv + sv.ReleaseLabel = ptr.String(jtv) } case "RepoUpgradeOnBoot": @@ -5155,7 +5161,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestedAmiVersion = &jtv + sv.RequestedAmiVersion = ptr.String(jtv) } case "RunningAmiVersion": @@ -5164,7 +5170,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RunningAmiVersion = &jtv + sv.RunningAmiVersion = ptr.String(jtv) } case "ScaleDownBehavior": @@ -5182,7 +5188,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.SecurityConfiguration = &jtv + sv.SecurityConfiguration = ptr.String(jtv) } case "ServiceRole": @@ -5191,7 +5197,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } case "Status": @@ -5223,7 +5229,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.TerminationProtected = &jtv + sv.TerminationProtected = jtv } case "VisibleToAllUsers": @@ -5232,7 +5238,7 @@ func awsAwsjson11_deserializeDocumentCluster(v **types.Cluster, value interface{ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.VisibleToAllUsers = &jtv + sv.VisibleToAllUsers = jtv } default: @@ -5281,7 +5287,7 @@ func awsAwsjson11_deserializeDocumentClusterStateChangeReason(v **types.ClusterS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5371,7 +5377,7 @@ func awsAwsjson11_deserializeDocumentClusterSummary(v **types.ClusterSummary, va if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "Id": @@ -5380,7 +5386,7 @@ func awsAwsjson11_deserializeDocumentClusterSummary(v **types.ClusterSummary, va if !ok { return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -5389,7 +5395,7 @@ func awsAwsjson11_deserializeDocumentClusterSummary(v **types.ClusterSummary, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NormalizedInstanceHours": @@ -5411,7 +5417,7 @@ func awsAwsjson11_deserializeDocumentClusterSummary(v **types.ClusterSummary, va if !ok { return fmt.Errorf("expected OptionalArnType to be of type string, got %T instead", value) } - sv.OutpostArn = &jtv + sv.OutpostArn = ptr.String(jtv) } case "Status": @@ -5428,7 +5434,7 @@ func awsAwsjson11_deserializeDocumentClusterSummary(v **types.ClusterSummary, va return nil } -func awsAwsjson11_deserializeDocumentClusterSummaryList(v *[]*types.ClusterSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusterSummaryList(v *[]types.ClusterSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5441,18 +5447,20 @@ func awsAwsjson11_deserializeDocumentClusterSummaryList(v *[]*types.ClusterSumma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ClusterSummary + var cv []types.ClusterSummary if *v == nil { - cv = []*types.ClusterSummary{} + cv = []types.ClusterSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ClusterSummary - if err := awsAwsjson11_deserializeDocumentClusterSummary(&col, value); err != nil { + var col types.ClusterSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentClusterSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5563,7 +5571,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ScriptPath": @@ -5572,7 +5580,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ScriptPath = &jtv + sv.ScriptPath = ptr.String(jtv) } default: @@ -5584,7 +5592,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ return nil } -func awsAwsjson11_deserializeDocumentCommandList(v *[]*types.Command, value interface{}) error { +func awsAwsjson11_deserializeDocumentCommandList(v *[]types.Command, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5597,18 +5605,20 @@ func awsAwsjson11_deserializeDocumentCommandList(v *[]*types.Command, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Command + var cv []types.Command if *v == nil { - cv = []*types.Command{} + cv = []types.Command{} } else { cv = *v } for _, value := range shape { - var col *types.Command - if err := awsAwsjson11_deserializeDocumentCommand(&col, value); err != nil { + var col types.Command + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCommand(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5736,7 +5746,7 @@ func awsAwsjson11_deserializeDocumentConfiguration(v **types.Configuration, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Classification = &jtv + sv.Classification = ptr.String(jtv) } case "Configurations": @@ -5758,7 +5768,7 @@ func awsAwsjson11_deserializeDocumentConfiguration(v **types.Configuration, valu return nil } -func awsAwsjson11_deserializeDocumentConfigurationList(v *[]*types.Configuration, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfigurationList(v *[]types.Configuration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5771,18 +5781,20 @@ func awsAwsjson11_deserializeDocumentConfigurationList(v *[]*types.Configuration return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Configuration + var cv []types.Configuration if *v == nil { - cv = []*types.Configuration{} + cv = []types.Configuration{} } else { cv = *v } for _, value := range shape { - var col *types.Configuration - if err := awsAwsjson11_deserializeDocumentConfiguration(&col, value); err != nil { + var col types.Configuration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5818,7 +5830,7 @@ func awsAwsjson11_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Device = &jtv + sv.Device = ptr.String(jtv) } case "VolumeSpecification": @@ -5835,7 +5847,7 @@ func awsAwsjson11_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, va return nil } -func awsAwsjson11_deserializeDocumentEbsBlockDeviceList(v *[]*types.EbsBlockDevice, value interface{}) error { +func awsAwsjson11_deserializeDocumentEbsBlockDeviceList(v *[]types.EbsBlockDevice, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5848,18 +5860,20 @@ func awsAwsjson11_deserializeDocumentEbsBlockDeviceList(v *[]*types.EbsBlockDevi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EbsBlockDevice + var cv []types.EbsBlockDevice if *v == nil { - cv = []*types.EbsBlockDevice{} + cv = []types.EbsBlockDevice{} } else { cv = *v } for _, value := range shape { - var col *types.EbsBlockDevice - if err := awsAwsjson11_deserializeDocumentEbsBlockDevice(&col, value); err != nil { + var col types.EbsBlockDevice + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEbsBlockDevice(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5895,7 +5909,7 @@ func awsAwsjson11_deserializeDocumentEbsVolume(v **types.EbsVolume, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Device = &jtv + sv.Device = ptr.String(jtv) } case "VolumeId": @@ -5904,7 +5918,7 @@ func awsAwsjson11_deserializeDocumentEbsVolume(v **types.EbsVolume, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VolumeId = &jtv + sv.VolumeId = ptr.String(jtv) } default: @@ -5916,7 +5930,7 @@ func awsAwsjson11_deserializeDocumentEbsVolume(v **types.EbsVolume, value interf return nil } -func awsAwsjson11_deserializeDocumentEbsVolumeList(v *[]*types.EbsVolume, value interface{}) error { +func awsAwsjson11_deserializeDocumentEbsVolumeList(v *[]types.EbsVolume, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5929,18 +5943,20 @@ func awsAwsjson11_deserializeDocumentEbsVolumeList(v *[]*types.EbsVolume, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EbsVolume + var cv []types.EbsVolume if *v == nil { - cv = []*types.EbsVolume{} + cv = []types.EbsVolume{} } else { cv = *v } for _, value := range shape { - var col *types.EbsVolume - if err := awsAwsjson11_deserializeDocumentEbsVolume(&col, value); err != nil { + var col types.EbsVolume + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEbsVolume(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5986,7 +6002,7 @@ func awsAwsjson11_deserializeDocumentEc2InstanceAttributes(v **types.Ec2Instance if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Ec2AvailabilityZone = &jtv + sv.Ec2AvailabilityZone = ptr.String(jtv) } case "Ec2KeyName": @@ -5995,7 +6011,7 @@ func awsAwsjson11_deserializeDocumentEc2InstanceAttributes(v **types.Ec2Instance if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Ec2KeyName = &jtv + sv.Ec2KeyName = ptr.String(jtv) } case "Ec2SubnetId": @@ -6004,7 +6020,7 @@ func awsAwsjson11_deserializeDocumentEc2InstanceAttributes(v **types.Ec2Instance if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Ec2SubnetId = &jtv + sv.Ec2SubnetId = ptr.String(jtv) } case "EmrManagedMasterSecurityGroup": @@ -6013,7 +6029,7 @@ func awsAwsjson11_deserializeDocumentEc2InstanceAttributes(v **types.Ec2Instance if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EmrManagedMasterSecurityGroup = &jtv + sv.EmrManagedMasterSecurityGroup = ptr.String(jtv) } case "EmrManagedSlaveSecurityGroup": @@ -6022,7 +6038,7 @@ func awsAwsjson11_deserializeDocumentEc2InstanceAttributes(v **types.Ec2Instance if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EmrManagedSlaveSecurityGroup = &jtv + sv.EmrManagedSlaveSecurityGroup = ptr.String(jtv) } case "IamInstanceProfile": @@ -6031,7 +6047,7 @@ func awsAwsjson11_deserializeDocumentEc2InstanceAttributes(v **types.Ec2Instance if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IamInstanceProfile = &jtv + sv.IamInstanceProfile = ptr.String(jtv) } case "RequestedEc2AvailabilityZones": @@ -6050,7 +6066,7 @@ func awsAwsjson11_deserializeDocumentEc2InstanceAttributes(v **types.Ec2Instance if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceAccessSecurityGroup = &jtv + sv.ServiceAccessSecurityGroup = ptr.String(jtv) } default: @@ -6062,7 +6078,7 @@ func awsAwsjson11_deserializeDocumentEc2InstanceAttributes(v **types.Ec2Instance return nil } -func awsAwsjson11_deserializeDocumentEC2InstanceIdsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentEC2InstanceIdsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6075,21 +6091,21 @@ func awsAwsjson11_deserializeDocumentEC2InstanceIdsList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6126,7 +6142,7 @@ func awsAwsjson11_deserializeDocumentExecutionEngineConfig(v **types.ExecutionEn if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "MasterInstanceSecurityGroupId": @@ -6135,7 +6151,7 @@ func awsAwsjson11_deserializeDocumentExecutionEngineConfig(v **types.ExecutionEn if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.MasterInstanceSecurityGroupId = &jtv + sv.MasterInstanceSecurityGroupId = ptr.String(jtv) } case "Type": @@ -6184,7 +6200,7 @@ func awsAwsjson11_deserializeDocumentFailureDetails(v **types.FailureDetails, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LogFile = &jtv + sv.LogFile = ptr.String(jtv) } case "Message": @@ -6193,7 +6209,7 @@ func awsAwsjson11_deserializeDocumentFailureDetails(v **types.FailureDetails, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Reason": @@ -6202,7 +6218,7 @@ func awsAwsjson11_deserializeDocumentFailureDetails(v **types.FailureDetails, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } default: @@ -6247,7 +6263,7 @@ func awsAwsjson11_deserializeDocumentHadoopJarStepConfig(v **types.HadoopJarStep if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.Jar = &jtv + sv.Jar = ptr.String(jtv) } case "MainClass": @@ -6256,7 +6272,7 @@ func awsAwsjson11_deserializeDocumentHadoopJarStepConfig(v **types.HadoopJarStep if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.MainClass = &jtv + sv.MainClass = ptr.String(jtv) } case "Properties": @@ -6306,7 +6322,7 @@ func awsAwsjson11_deserializeDocumentHadoopStepConfig(v **types.HadoopStepConfig if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Jar = &jtv + sv.Jar = ptr.String(jtv) } case "MainClass": @@ -6315,7 +6331,7 @@ func awsAwsjson11_deserializeDocumentHadoopStepConfig(v **types.HadoopStepConfig if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MainClass = &jtv + sv.MainClass = ptr.String(jtv) } case "Properties": @@ -6365,7 +6381,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.Ec2InstanceId = &jtv + sv.Ec2InstanceId = ptr.String(jtv) } case "Id": @@ -6374,7 +6390,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "InstanceFleetId": @@ -6383,7 +6399,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected InstanceFleetId to be of type string, got %T instead", value) } - sv.InstanceFleetId = &jtv + sv.InstanceFleetId = ptr.String(jtv) } case "InstanceGroupId": @@ -6392,7 +6408,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceGroupId = &jtv + sv.InstanceGroupId = ptr.String(jtv) } case "InstanceType": @@ -6401,7 +6417,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected InstanceType to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "Market": @@ -6419,7 +6435,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrivateDnsName = &jtv + sv.PrivateDnsName = ptr.String(jtv) } case "PrivateIpAddress": @@ -6428,7 +6444,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrivateIpAddress = &jtv + sv.PrivateIpAddress = ptr.String(jtv) } case "PublicDnsName": @@ -6437,7 +6453,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PublicDnsName = &jtv + sv.PublicDnsName = ptr.String(jtv) } case "PublicIpAddress": @@ -6446,7 +6462,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PublicIpAddress = &jtv + sv.PublicIpAddress = ptr.String(jtv) } case "Status": @@ -6491,7 +6507,7 @@ func awsAwsjson11_deserializeDocumentInstanceFleet(v **types.InstanceFleet, valu if !ok { return fmt.Errorf("expected InstanceFleetId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "InstanceFleetType": @@ -6519,7 +6535,7 @@ func awsAwsjson11_deserializeDocumentInstanceFleet(v **types.InstanceFleet, valu if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ProvisionedOnDemandCapacity": @@ -6588,7 +6604,7 @@ func awsAwsjson11_deserializeDocumentInstanceFleet(v **types.InstanceFleet, valu return nil } -func awsAwsjson11_deserializeDocumentInstanceFleetList(v *[]*types.InstanceFleet, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceFleetList(v *[]types.InstanceFleet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6601,18 +6617,20 @@ func awsAwsjson11_deserializeDocumentInstanceFleetList(v *[]*types.InstanceFleet return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceFleet + var cv []types.InstanceFleet if *v == nil { - cv = []*types.InstanceFleet{} + cv = []types.InstanceFleet{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceFleet - if err := awsAwsjson11_deserializeDocumentInstanceFleet(&col, value); err != nil { + var col types.InstanceFleet + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceFleet(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6698,7 +6716,7 @@ func awsAwsjson11_deserializeDocumentInstanceFleetStateChangeReason(v **types.In if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6863,7 +6881,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroup(v **types.InstanceGroup, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BidPrice = &jtv + sv.BidPrice = ptr.String(jtv) } case "Configurations": @@ -6881,7 +6899,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroup(v **types.InstanceGroup, valu if err != nil { return err } - sv.ConfigurationsVersion = &i64 + sv.ConfigurationsVersion = i64 } case "EbsBlockDevices": @@ -6895,7 +6913,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroup(v **types.InstanceGroup, valu if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.EbsOptimized = &jtv + sv.EbsOptimized = ptr.Bool(jtv) } case "Id": @@ -6904,7 +6922,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroup(v **types.InstanceGroup, valu if !ok { return fmt.Errorf("expected InstanceGroupId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "InstanceGroupType": @@ -6922,7 +6940,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroup(v **types.InstanceGroup, valu if !ok { return fmt.Errorf("expected InstanceType to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "LastSuccessfullyAppliedConfigurations": @@ -6940,7 +6958,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroup(v **types.InstanceGroup, valu if err != nil { return err } - sv.LastSuccessfullyAppliedConfigurationsVersion = &i64 + sv.LastSuccessfullyAppliedConfigurationsVersion = i64 } case "Market": @@ -6958,7 +6976,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroup(v **types.InstanceGroup, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RequestedInstanceCount": @@ -7034,7 +7052,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroupDetail(v **types.InstanceGroup if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.BidPrice = &jtv + sv.BidPrice = ptr.String(jtv) } case "CreationDateTime": @@ -7069,7 +7087,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroupDetail(v **types.InstanceGroup if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.InstanceGroupId = &jtv + sv.InstanceGroupId = ptr.String(jtv) } case "InstanceRequestCount": @@ -7113,7 +7131,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroupDetail(v **types.InstanceGroup if !ok { return fmt.Errorf("expected InstanceType to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "LastStateChangeReason": @@ -7122,7 +7140,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroupDetail(v **types.InstanceGroup if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.LastStateChangeReason = &jtv + sv.LastStateChangeReason = ptr.String(jtv) } case "Market": @@ -7140,7 +7158,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroupDetail(v **types.InstanceGroup if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ReadyDateTime": @@ -7187,7 +7205,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroupDetail(v **types.InstanceGroup return nil } -func awsAwsjson11_deserializeDocumentInstanceGroupDetailList(v *[]*types.InstanceGroupDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceGroupDetailList(v *[]types.InstanceGroupDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7200,18 +7218,20 @@ func awsAwsjson11_deserializeDocumentInstanceGroupDetailList(v *[]*types.Instanc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceGroupDetail + var cv []types.InstanceGroupDetail if *v == nil { - cv = []*types.InstanceGroupDetail{} + cv = []types.InstanceGroupDetail{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceGroupDetail - if err := awsAwsjson11_deserializeDocumentInstanceGroupDetail(&col, value); err != nil { + var col types.InstanceGroupDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceGroupDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7219,7 +7239,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroupDetailList(v *[]*types.Instanc return nil } -func awsAwsjson11_deserializeDocumentInstanceGroupIdsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceGroupIdsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7232,21 +7252,21 @@ func awsAwsjson11_deserializeDocumentInstanceGroupIdsList(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7255,7 +7275,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroupIdsList(v *[]*string, value in return nil } -func awsAwsjson11_deserializeDocumentInstanceGroupList(v *[]*types.InstanceGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceGroupList(v *[]types.InstanceGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7268,18 +7288,20 @@ func awsAwsjson11_deserializeDocumentInstanceGroupList(v *[]*types.InstanceGroup return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceGroup + var cv []types.InstanceGroup if *v == nil { - cv = []*types.InstanceGroup{} + cv = []types.InstanceGroup{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceGroup - if err := awsAwsjson11_deserializeDocumentInstanceGroup(&col, value); err != nil { + var col types.InstanceGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7324,7 +7346,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroupStateChangeReason(v **types.In if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7456,7 +7478,7 @@ func awsAwsjson11_deserializeDocumentInstanceGroupTimeline(v **types.InstanceGro return nil } -func awsAwsjson11_deserializeDocumentInstanceList(v *[]*types.Instance, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceList(v *[]types.Instance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7469,18 +7491,20 @@ func awsAwsjson11_deserializeDocumentInstanceList(v *[]*types.Instance, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Instance + var cv []types.Instance if *v == nil { - cv = []*types.Instance{} + cv = []types.Instance{} } else { cv = *v } for _, value := range shape { - var col *types.Instance - if err := awsAwsjson11_deserializeDocumentInstance(&col, value); err != nil { + var col types.Instance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7579,7 +7603,7 @@ func awsAwsjson11_deserializeDocumentInstanceStateChangeReason(v **types.Instanc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7739,7 +7763,7 @@ func awsAwsjson11_deserializeDocumentInstanceTypeSpecification(v **types.Instanc if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.BidPrice = &jtv + sv.BidPrice = ptr.String(jtv) } case "BidPriceAsPercentageOfOnDemandPrice": @@ -7752,7 +7776,7 @@ func awsAwsjson11_deserializeDocumentInstanceTypeSpecification(v **types.Instanc if err != nil { return err } - sv.BidPriceAsPercentageOfOnDemandPrice = &f64 + sv.BidPriceAsPercentageOfOnDemandPrice = ptr.Float64(f64) } case "Configurations": @@ -7771,7 +7795,7 @@ func awsAwsjson11_deserializeDocumentInstanceTypeSpecification(v **types.Instanc if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.EbsOptimized = &jtv + sv.EbsOptimized = ptr.Bool(jtv) } case "InstanceType": @@ -7780,7 +7804,7 @@ func awsAwsjson11_deserializeDocumentInstanceTypeSpecification(v **types.Instanc if !ok { return fmt.Errorf("expected InstanceType to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "WeightedCapacity": @@ -7805,7 +7829,7 @@ func awsAwsjson11_deserializeDocumentInstanceTypeSpecification(v **types.Instanc return nil } -func awsAwsjson11_deserializeDocumentInstanceTypeSpecificationList(v *[]*types.InstanceTypeSpecification, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceTypeSpecificationList(v *[]types.InstanceTypeSpecification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7818,18 +7842,20 @@ func awsAwsjson11_deserializeDocumentInstanceTypeSpecificationList(v *[]*types.I return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceTypeSpecification + var cv []types.InstanceTypeSpecification if *v == nil { - cv = []*types.InstanceTypeSpecification{} + cv = []types.InstanceTypeSpecification{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceTypeSpecification - if err := awsAwsjson11_deserializeDocumentInstanceTypeSpecification(&col, value); err != nil { + var col types.InstanceTypeSpecification + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceTypeSpecification(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7896,7 +7922,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7936,7 +7962,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "Message": @@ -7945,7 +7971,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7985,7 +8011,7 @@ func awsAwsjson11_deserializeDocumentJobFlowDetail(v **types.JobFlowDetail, valu if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.AmiVersion = &jtv + sv.AmiVersion = ptr.String(jtv) } case "AutoScalingRole": @@ -7994,7 +8020,7 @@ func awsAwsjson11_deserializeDocumentJobFlowDetail(v **types.JobFlowDetail, valu if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.AutoScalingRole = &jtv + sv.AutoScalingRole = ptr.String(jtv) } case "BootstrapActions": @@ -8018,7 +8044,7 @@ func awsAwsjson11_deserializeDocumentJobFlowDetail(v **types.JobFlowDetail, valu if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.JobFlowId = &jtv + sv.JobFlowId = ptr.String(jtv) } case "JobFlowRole": @@ -8027,7 +8053,7 @@ func awsAwsjson11_deserializeDocumentJobFlowDetail(v **types.JobFlowDetail, valu if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.JobFlowRole = &jtv + sv.JobFlowRole = ptr.String(jtv) } case "LogEncryptionKmsKeyId": @@ -8036,7 +8062,7 @@ func awsAwsjson11_deserializeDocumentJobFlowDetail(v **types.JobFlowDetail, valu if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.LogEncryptionKmsKeyId = &jtv + sv.LogEncryptionKmsKeyId = ptr.String(jtv) } case "LogUri": @@ -8045,7 +8071,7 @@ func awsAwsjson11_deserializeDocumentJobFlowDetail(v **types.JobFlowDetail, valu if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.LogUri = &jtv + sv.LogUri = ptr.String(jtv) } case "Name": @@ -8054,7 +8080,7 @@ func awsAwsjson11_deserializeDocumentJobFlowDetail(v **types.JobFlowDetail, valu if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ScaleDownBehavior": @@ -8072,7 +8098,7 @@ func awsAwsjson11_deserializeDocumentJobFlowDetail(v **types.JobFlowDetail, valu if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } case "Steps": @@ -8091,7 +8117,7 @@ func awsAwsjson11_deserializeDocumentJobFlowDetail(v **types.JobFlowDetail, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.VisibleToAllUsers = &jtv + sv.VisibleToAllUsers = jtv } default: @@ -8103,7 +8129,7 @@ func awsAwsjson11_deserializeDocumentJobFlowDetail(v **types.JobFlowDetail, valu return nil } -func awsAwsjson11_deserializeDocumentJobFlowDetailList(v *[]*types.JobFlowDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentJobFlowDetailList(v *[]types.JobFlowDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8116,18 +8142,20 @@ func awsAwsjson11_deserializeDocumentJobFlowDetailList(v *[]*types.JobFlowDetail return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobFlowDetail + var cv []types.JobFlowDetail if *v == nil { - cv = []*types.JobFlowDetail{} + cv = []types.JobFlowDetail{} } else { cv = *v } for _, value := range shape { - var col *types.JobFlowDetail - if err := awsAwsjson11_deserializeDocumentJobFlowDetail(&col, value); err != nil { + var col types.JobFlowDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentJobFlowDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8189,7 +8217,7 @@ func awsAwsjson11_deserializeDocumentJobFlowExecutionStatusDetail(v **types.JobF if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.LastStateChangeReason = &jtv + sv.LastStateChangeReason = ptr.String(jtv) } case "ReadyDateTime": @@ -8264,7 +8292,7 @@ func awsAwsjson11_deserializeDocumentJobFlowInstancesDetail(v **types.JobFlowIns if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.Ec2KeyName = &jtv + sv.Ec2KeyName = ptr.String(jtv) } case "Ec2SubnetId": @@ -8273,7 +8301,7 @@ func awsAwsjson11_deserializeDocumentJobFlowInstancesDetail(v **types.JobFlowIns if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.Ec2SubnetId = &jtv + sv.Ec2SubnetId = ptr.String(jtv) } case "HadoopVersion": @@ -8282,7 +8310,7 @@ func awsAwsjson11_deserializeDocumentJobFlowInstancesDetail(v **types.JobFlowIns if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.HadoopVersion = &jtv + sv.HadoopVersion = ptr.String(jtv) } case "InstanceCount": @@ -8309,7 +8337,7 @@ func awsAwsjson11_deserializeDocumentJobFlowInstancesDetail(v **types.JobFlowIns if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.KeepJobFlowAliveWhenNoSteps = &jtv + sv.KeepJobFlowAliveWhenNoSteps = jtv } case "MasterInstanceId": @@ -8318,7 +8346,7 @@ func awsAwsjson11_deserializeDocumentJobFlowInstancesDetail(v **types.JobFlowIns if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.MasterInstanceId = &jtv + sv.MasterInstanceId = ptr.String(jtv) } case "MasterInstanceType": @@ -8327,7 +8355,7 @@ func awsAwsjson11_deserializeDocumentJobFlowInstancesDetail(v **types.JobFlowIns if !ok { return fmt.Errorf("expected InstanceType to be of type string, got %T instead", value) } - sv.MasterInstanceType = &jtv + sv.MasterInstanceType = ptr.String(jtv) } case "MasterPublicDnsName": @@ -8336,7 +8364,7 @@ func awsAwsjson11_deserializeDocumentJobFlowInstancesDetail(v **types.JobFlowIns if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.MasterPublicDnsName = &jtv + sv.MasterPublicDnsName = ptr.String(jtv) } case "NormalizedInstanceHours": @@ -8363,7 +8391,7 @@ func awsAwsjson11_deserializeDocumentJobFlowInstancesDetail(v **types.JobFlowIns if !ok { return fmt.Errorf("expected InstanceType to be of type string, got %T instead", value) } - sv.SlaveInstanceType = &jtv + sv.SlaveInstanceType = ptr.String(jtv) } case "TerminationProtected": @@ -8372,7 +8400,7 @@ func awsAwsjson11_deserializeDocumentJobFlowInstancesDetail(v **types.JobFlowIns if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.TerminationProtected = &jtv + sv.TerminationProtected = jtv } default: @@ -8412,7 +8440,7 @@ func awsAwsjson11_deserializeDocumentKerberosAttributes(v **types.KerberosAttrib if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.ADDomainJoinPassword = &jtv + sv.ADDomainJoinPassword = ptr.String(jtv) } case "ADDomainJoinUser": @@ -8421,7 +8449,7 @@ func awsAwsjson11_deserializeDocumentKerberosAttributes(v **types.KerberosAttrib if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.ADDomainJoinUser = &jtv + sv.ADDomainJoinUser = ptr.String(jtv) } case "CrossRealmTrustPrincipalPassword": @@ -8430,7 +8458,7 @@ func awsAwsjson11_deserializeDocumentKerberosAttributes(v **types.KerberosAttrib if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.CrossRealmTrustPrincipalPassword = &jtv + sv.CrossRealmTrustPrincipalPassword = ptr.String(jtv) } case "KdcAdminPassword": @@ -8439,7 +8467,7 @@ func awsAwsjson11_deserializeDocumentKerberosAttributes(v **types.KerberosAttrib if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.KdcAdminPassword = &jtv + sv.KdcAdminPassword = ptr.String(jtv) } case "Realm": @@ -8448,7 +8476,7 @@ func awsAwsjson11_deserializeDocumentKerberosAttributes(v **types.KerberosAttrib if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.Realm = &jtv + sv.Realm = ptr.String(jtv) } default: @@ -8488,7 +8516,7 @@ func awsAwsjson11_deserializeDocumentKeyValue(v **types.KeyValue, value interfac if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -8497,7 +8525,7 @@ func awsAwsjson11_deserializeDocumentKeyValue(v **types.KeyValue, value interfac if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8509,7 +8537,7 @@ func awsAwsjson11_deserializeDocumentKeyValue(v **types.KeyValue, value interfac return nil } -func awsAwsjson11_deserializeDocumentKeyValueList(v *[]*types.KeyValue, value interface{}) error { +func awsAwsjson11_deserializeDocumentKeyValueList(v *[]types.KeyValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8522,18 +8550,20 @@ func awsAwsjson11_deserializeDocumentKeyValueList(v *[]*types.KeyValue, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyValue + var cv []types.KeyValue if *v == nil { - cv = []*types.KeyValue{} + cv = []types.KeyValue{} } else { cv = *v } for _, value := range shape { - var col *types.KeyValue - if err := awsAwsjson11_deserializeDocumentKeyValue(&col, value); err != nil { + var col types.KeyValue + destAddr := &col + if err := awsAwsjson11_deserializeDocumentKeyValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8605,7 +8635,7 @@ func awsAwsjson11_deserializeDocumentMetricDimension(v **types.MetricDimension, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -8614,7 +8644,7 @@ func awsAwsjson11_deserializeDocumentMetricDimension(v **types.MetricDimension, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8626,7 +8656,7 @@ func awsAwsjson11_deserializeDocumentMetricDimension(v **types.MetricDimension, return nil } -func awsAwsjson11_deserializeDocumentMetricDimensionList(v *[]*types.MetricDimension, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricDimensionList(v *[]types.MetricDimension, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8639,18 +8669,20 @@ func awsAwsjson11_deserializeDocumentMetricDimensionList(v *[]*types.MetricDimen return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MetricDimension + var cv []types.MetricDimension if *v == nil { - cv = []*types.MetricDimension{} + cv = []types.MetricDimension{} } else { cv = *v } for _, value := range shape { - var col *types.MetricDimension - if err := awsAwsjson11_deserializeDocumentMetricDimension(&col, value); err != nil { + var col types.MetricDimension + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMetricDimension(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8686,7 +8718,7 @@ func awsAwsjson11_deserializeDocumentNotebookExecution(v **types.NotebookExecuti if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "EditorId": @@ -8695,7 +8727,7 @@ func awsAwsjson11_deserializeDocumentNotebookExecution(v **types.NotebookExecuti if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.EditorId = &jtv + sv.EditorId = ptr.String(jtv) } case "EndTime": @@ -8722,7 +8754,7 @@ func awsAwsjson11_deserializeDocumentNotebookExecution(v **types.NotebookExecuti if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.LastStateChangeReason = &jtv + sv.LastStateChangeReason = ptr.String(jtv) } case "NotebookExecutionId": @@ -8731,7 +8763,7 @@ func awsAwsjson11_deserializeDocumentNotebookExecution(v **types.NotebookExecuti if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.NotebookExecutionId = &jtv + sv.NotebookExecutionId = ptr.String(jtv) } case "NotebookExecutionName": @@ -8740,7 +8772,7 @@ func awsAwsjson11_deserializeDocumentNotebookExecution(v **types.NotebookExecuti if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.NotebookExecutionName = &jtv + sv.NotebookExecutionName = ptr.String(jtv) } case "NotebookInstanceSecurityGroupId": @@ -8749,7 +8781,7 @@ func awsAwsjson11_deserializeDocumentNotebookExecution(v **types.NotebookExecuti if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.NotebookInstanceSecurityGroupId = &jtv + sv.NotebookInstanceSecurityGroupId = ptr.String(jtv) } case "NotebookParams": @@ -8758,7 +8790,7 @@ func awsAwsjson11_deserializeDocumentNotebookExecution(v **types.NotebookExecuti if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.NotebookParams = &jtv + sv.NotebookParams = ptr.String(jtv) } case "OutputNotebookURI": @@ -8767,7 +8799,7 @@ func awsAwsjson11_deserializeDocumentNotebookExecution(v **types.NotebookExecuti if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.OutputNotebookURI = &jtv + sv.OutputNotebookURI = ptr.String(jtv) } case "StartTime": @@ -8834,7 +8866,7 @@ func awsAwsjson11_deserializeDocumentNotebookExecutionSummary(v **types.Notebook if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.EditorId = &jtv + sv.EditorId = ptr.String(jtv) } case "EndTime": @@ -8856,7 +8888,7 @@ func awsAwsjson11_deserializeDocumentNotebookExecutionSummary(v **types.Notebook if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.NotebookExecutionId = &jtv + sv.NotebookExecutionId = ptr.String(jtv) } case "NotebookExecutionName": @@ -8865,7 +8897,7 @@ func awsAwsjson11_deserializeDocumentNotebookExecutionSummary(v **types.Notebook if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.NotebookExecutionName = &jtv + sv.NotebookExecutionName = ptr.String(jtv) } case "StartTime": @@ -8899,7 +8931,7 @@ func awsAwsjson11_deserializeDocumentNotebookExecutionSummary(v **types.Notebook return nil } -func awsAwsjson11_deserializeDocumentNotebookExecutionSummaryList(v *[]*types.NotebookExecutionSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentNotebookExecutionSummaryList(v *[]types.NotebookExecutionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8912,18 +8944,20 @@ func awsAwsjson11_deserializeDocumentNotebookExecutionSummaryList(v *[]*types.No return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NotebookExecutionSummary + var cv []types.NotebookExecutionSummary if *v == nil { - cv = []*types.NotebookExecutionSummary{} + cv = []types.NotebookExecutionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.NotebookExecutionSummary - if err := awsAwsjson11_deserializeDocumentNotebookExecutionSummary(&col, value); err != nil { + var col types.NotebookExecutionSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNotebookExecutionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9020,7 +9054,7 @@ func awsAwsjson11_deserializeDocumentPlacementGroupConfig(v **types.PlacementGro return nil } -func awsAwsjson11_deserializeDocumentPlacementGroupConfigList(v *[]*types.PlacementGroupConfig, value interface{}) error { +func awsAwsjson11_deserializeDocumentPlacementGroupConfigList(v *[]types.PlacementGroupConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9033,18 +9067,20 @@ func awsAwsjson11_deserializeDocumentPlacementGroupConfigList(v *[]*types.Placem return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PlacementGroupConfig + var cv []types.PlacementGroupConfig if *v == nil { - cv = []*types.PlacementGroupConfig{} + cv = []types.PlacementGroupConfig{} } else { cv = *v } for _, value := range shape { - var col *types.PlacementGroupConfig - if err := awsAwsjson11_deserializeDocumentPlacementGroupConfig(&col, value); err != nil { + var col types.PlacementGroupConfig + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPlacementGroupConfig(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9080,7 +9116,7 @@ func awsAwsjson11_deserializeDocumentPlacementType(v **types.PlacementType, valu if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "AvailabilityZones": @@ -9154,7 +9190,7 @@ func awsAwsjson11_deserializeDocumentPortRange(v **types.PortRange, value interf return nil } -func awsAwsjson11_deserializeDocumentPortRanges(v *[]*types.PortRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentPortRanges(v *[]types.PortRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9167,18 +9203,20 @@ func awsAwsjson11_deserializeDocumentPortRanges(v *[]*types.PortRange, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PortRange + var cv []types.PortRange if *v == nil { - cv = []*types.PortRange{} + cv = []types.PortRange{} } else { cv = *v } for _, value := range shape { - var col *types.PortRange - if err := awsAwsjson11_deserializeDocumentPortRange(&col, value); err != nil { + var col types.PortRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPortRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9321,7 +9359,7 @@ func awsAwsjson11_deserializeDocumentScalingRule(v **types.ScalingRule, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -9330,7 +9368,7 @@ func awsAwsjson11_deserializeDocumentScalingRule(v **types.ScalingRule, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Trigger": @@ -9347,7 +9385,7 @@ func awsAwsjson11_deserializeDocumentScalingRule(v **types.ScalingRule, value in return nil } -func awsAwsjson11_deserializeDocumentScalingRuleList(v *[]*types.ScalingRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentScalingRuleList(v *[]types.ScalingRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9360,18 +9398,20 @@ func awsAwsjson11_deserializeDocumentScalingRuleList(v *[]*types.ScalingRule, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ScalingRule + var cv []types.ScalingRule if *v == nil { - cv = []*types.ScalingRule{} + cv = []types.ScalingRule{} } else { cv = *v } for _, value := range shape { - var col *types.ScalingRule - if err := awsAwsjson11_deserializeDocumentScalingRule(&col, value); err != nil { + var col types.ScalingRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentScalingRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9448,7 +9488,7 @@ func awsAwsjson11_deserializeDocumentScriptBootstrapActionConfig(v **types.Scrip if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } default: @@ -9460,7 +9500,7 @@ func awsAwsjson11_deserializeDocumentScriptBootstrapActionConfig(v **types.Scrip return nil } -func awsAwsjson11_deserializeDocumentSecurityConfigurationList(v *[]*types.SecurityConfigurationSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityConfigurationList(v *[]types.SecurityConfigurationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9473,18 +9513,20 @@ func awsAwsjson11_deserializeDocumentSecurityConfigurationList(v *[]*types.Secur return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SecurityConfigurationSummary + var cv []types.SecurityConfigurationSummary if *v == nil { - cv = []*types.SecurityConfigurationSummary{} + cv = []types.SecurityConfigurationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SecurityConfigurationSummary - if err := awsAwsjson11_deserializeDocumentSecurityConfigurationSummary(&col, value); err != nil { + var col types.SecurityConfigurationSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSecurityConfigurationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9533,7 +9575,7 @@ func awsAwsjson11_deserializeDocumentSecurityConfigurationSummary(v **types.Secu if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -9777,7 +9819,7 @@ func awsAwsjson11_deserializeDocumentStep(v **types.Step, value interface{}) err if !ok { return fmt.Errorf("expected StepId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -9786,7 +9828,7 @@ func awsAwsjson11_deserializeDocumentStep(v **types.Step, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -9845,7 +9887,7 @@ func awsAwsjson11_deserializeDocumentStepConfig(v **types.StepConfig, value inte if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -9898,7 +9940,7 @@ func awsAwsjson11_deserializeDocumentStepDetail(v **types.StepDetail, value inte return nil } -func awsAwsjson11_deserializeDocumentStepDetailList(v *[]*types.StepDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentStepDetailList(v *[]types.StepDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9911,18 +9953,20 @@ func awsAwsjson11_deserializeDocumentStepDetailList(v *[]*types.StepDetail, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StepDetail + var cv []types.StepDetail if *v == nil { - cv = []*types.StepDetail{} + cv = []types.StepDetail{} } else { cv = *v } for _, value := range shape { - var col *types.StepDetail - if err := awsAwsjson11_deserializeDocumentStepDetail(&col, value); err != nil { + var col types.StepDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStepDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9984,7 +10028,7 @@ func awsAwsjson11_deserializeDocumentStepExecutionStatusDetail(v **types.StepExe if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.LastStateChangeReason = &jtv + sv.LastStateChangeReason = ptr.String(jtv) } case "StartDateTime": @@ -10018,7 +10062,7 @@ func awsAwsjson11_deserializeDocumentStepExecutionStatusDetail(v **types.StepExe return nil } -func awsAwsjson11_deserializeDocumentStepIdsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStepIdsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10031,21 +10075,21 @@ func awsAwsjson11_deserializeDocumentStepIdsList(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10091,7 +10135,7 @@ func awsAwsjson11_deserializeDocumentStepStateChangeReason(v **types.StepStateCh if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10200,7 +10244,7 @@ func awsAwsjson11_deserializeDocumentStepSummary(v **types.StepSummary, value in if !ok { return fmt.Errorf("expected StepId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -10209,7 +10253,7 @@ func awsAwsjson11_deserializeDocumentStepSummary(v **types.StepSummary, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -10226,7 +10270,7 @@ func awsAwsjson11_deserializeDocumentStepSummary(v **types.StepSummary, value in return nil } -func awsAwsjson11_deserializeDocumentStepSummaryList(v *[]*types.StepSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentStepSummaryList(v *[]types.StepSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10239,18 +10283,20 @@ func awsAwsjson11_deserializeDocumentStepSummaryList(v *[]*types.StepSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StepSummary + var cv []types.StepSummary if *v == nil { - cv = []*types.StepSummary{} + cv = []types.StepSummary{} } else { cv = *v } for _, value := range shape { - var col *types.StepSummary - if err := awsAwsjson11_deserializeDocumentStepSummary(&col, value); err != nil { + var col types.StepSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStepSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10328,7 +10374,7 @@ func awsAwsjson11_deserializeDocumentStepTimeline(v **types.StepTimeline, value return nil } -func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10341,21 +10387,21 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -10364,7 +10410,7 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentStringMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10377,21 +10423,21 @@ func awsAwsjson11_deserializeDocumentStringMap(v *map[string]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -10400,7 +10446,7 @@ func awsAwsjson11_deserializeDocumentStringMap(v *map[string]*string, value inte return nil } -func awsAwsjson11_deserializeDocumentSupportedProductsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSupportedProductsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10413,21 +10459,21 @@ func awsAwsjson11_deserializeDocumentSupportedProductsList(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10464,7 +10510,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -10473,7 +10519,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -10485,7 +10531,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10498,18 +10544,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10571,7 +10619,7 @@ func awsAwsjson11_deserializeDocumentVolumeSpecification(v **types.VolumeSpecifi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VolumeType = &jtv + sv.VolumeType = ptr.String(jtv) } default: @@ -10583,7 +10631,7 @@ func awsAwsjson11_deserializeDocumentVolumeSpecification(v **types.VolumeSpecifi return nil } -func awsAwsjson11_deserializeDocumentXmlStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentXmlStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10596,21 +10644,21 @@ func awsAwsjson11_deserializeDocumentXmlStringList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10619,7 +10667,7 @@ func awsAwsjson11_deserializeDocumentXmlStringList(v *[]*string, value interface return nil } -func awsAwsjson11_deserializeDocumentXmlStringMaxLen256List(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentXmlStringMaxLen256List(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10632,21 +10680,21 @@ func awsAwsjson11_deserializeDocumentXmlStringMaxLen256List(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10683,7 +10731,7 @@ func awsAwsjson11_deserializeOpDocumentAddInstanceFleetOutput(v **AddInstanceFle if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "ClusterId": @@ -10692,7 +10740,7 @@ func awsAwsjson11_deserializeOpDocumentAddInstanceFleetOutput(v **AddInstanceFle if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.ClusterId = &jtv + sv.ClusterId = ptr.String(jtv) } case "InstanceFleetId": @@ -10701,7 +10749,7 @@ func awsAwsjson11_deserializeOpDocumentAddInstanceFleetOutput(v **AddInstanceFle if !ok { return fmt.Errorf("expected InstanceFleetId to be of type string, got %T instead", value) } - sv.InstanceFleetId = &jtv + sv.InstanceFleetId = ptr.String(jtv) } default: @@ -10741,7 +10789,7 @@ func awsAwsjson11_deserializeOpDocumentAddInstanceGroupsOutput(v **AddInstanceGr if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "InstanceGroupIds": @@ -10755,7 +10803,7 @@ func awsAwsjson11_deserializeOpDocumentAddInstanceGroupsOutput(v **AddInstanceGr if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.JobFlowId = &jtv + sv.JobFlowId = ptr.String(jtv) } default: @@ -10911,7 +10959,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSecurityConfigurationOutput(v **Cre if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -11103,7 +11151,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSecurityConfigurationOutput(v **D if !ok { return fmt.Errorf("expected XmlString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SecurityConfiguration": @@ -11112,7 +11160,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSecurityConfigurationOutput(v **D if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SecurityConfiguration = &jtv + sv.SecurityConfiguration = ptr.String(jtv) } default: @@ -11270,7 +11318,7 @@ func awsAwsjson11_deserializeOpDocumentListBootstrapActionsOutput(v **ListBootst if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -11315,7 +11363,7 @@ func awsAwsjson11_deserializeOpDocumentListClustersOutput(v **ListClustersOutput if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -11360,7 +11408,7 @@ func awsAwsjson11_deserializeOpDocumentListInstanceFleetsOutput(v **ListInstance if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -11405,7 +11453,7 @@ func awsAwsjson11_deserializeOpDocumentListInstanceGroupsOutput(v **ListInstance if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -11450,7 +11498,7 @@ func awsAwsjson11_deserializeOpDocumentListInstancesOutput(v **ListInstancesOutp if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -11490,7 +11538,7 @@ func awsAwsjson11_deserializeOpDocumentListNotebookExecutionsOutput(v **ListNote if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "NotebookExecutions": @@ -11535,7 +11583,7 @@ func awsAwsjson11_deserializeOpDocumentListSecurityConfigurationsOutput(v **List if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "SecurityConfigurations": @@ -11580,7 +11628,7 @@ func awsAwsjson11_deserializeOpDocumentListStepsOutput(v **ListStepsOutput, valu if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "Steps": @@ -11736,7 +11784,7 @@ func awsAwsjson11_deserializeOpDocumentPutAutoScalingPolicyOutput(v **PutAutoSca if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "ClusterId": @@ -11745,7 +11793,7 @@ func awsAwsjson11_deserializeOpDocumentPutAutoScalingPolicyOutput(v **PutAutoSca if !ok { return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) } - sv.ClusterId = &jtv + sv.ClusterId = ptr.String(jtv) } case "InstanceGroupId": @@ -11754,7 +11802,7 @@ func awsAwsjson11_deserializeOpDocumentPutAutoScalingPolicyOutput(v **PutAutoSca if !ok { return fmt.Errorf("expected InstanceGroupId to be of type string, got %T instead", value) } - sv.InstanceGroupId = &jtv + sv.InstanceGroupId = ptr.String(jtv) } default: @@ -11949,7 +11997,7 @@ func awsAwsjson11_deserializeOpDocumentRunJobFlowOutput(v **RunJobFlowOutput, va if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "JobFlowId": @@ -11958,7 +12006,7 @@ func awsAwsjson11_deserializeOpDocumentRunJobFlowOutput(v **RunJobFlowOutput, va if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.JobFlowId = &jtv + sv.JobFlowId = ptr.String(jtv) } default: @@ -12060,7 +12108,7 @@ func awsAwsjson11_deserializeOpDocumentStartNotebookExecutionOutput(v **StartNot if !ok { return fmt.Errorf("expected XmlStringMaxLen256 to be of type string, got %T instead", value) } - sv.NotebookExecutionId = &jtv + sv.NotebookExecutionId = ptr.String(jtv) } default: diff --git a/service/emr/go.mod b/service/emr/go.mod index 0601593b5dd..6345759c629 100644 --- a/service/emr/go.mod +++ b/service/emr/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/emr go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/emr/serializers.go b/service/emr/serializers.go index cde2a7ff9b7..a9bf78743b2 100644 --- a/service/emr/serializers.go +++ b/service/emr/serializers.go @@ -1740,17 +1740,13 @@ func awsAwsjson11_serializeDocumentApplication(v *types.Application, value smith return nil } -func awsAwsjson11_serializeDocumentApplicationList(v []*types.Application, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentApplicationList(v []types.Application, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentApplication(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentApplication(&v[i], av); err != nil { return err } } @@ -1782,9 +1778,9 @@ func awsAwsjson11_serializeDocumentBlockPublicAccessConfiguration(v *types.Block object := value.Object() defer object.Close() - if v.BlockPublicSecurityGroupRules != nil { + if v.BlockPublicSecurityGroupRules { ok := object.Key("BlockPublicSecurityGroupRules") - ok.Boolean(*v.BlockPublicSecurityGroupRules) + ok.Boolean(v.BlockPublicSecurityGroupRules) } if v.Classification != nil { @@ -1835,17 +1831,13 @@ func awsAwsjson11_serializeDocumentBootstrapActionConfig(v *types.BootstrapActio return nil } -func awsAwsjson11_serializeDocumentBootstrapActionConfigList(v []*types.BootstrapActionConfig, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBootstrapActionConfigList(v []types.BootstrapActionConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentBootstrapActionConfig(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentBootstrapActionConfig(&v[i], av); err != nil { return err } } @@ -1975,17 +1967,13 @@ func awsAwsjson11_serializeDocumentConfiguration(v *types.Configuration, value s return nil } -func awsAwsjson11_serializeDocumentConfigurationList(v []*types.Configuration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConfigurationList(v []types.Configuration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentConfiguration(&v[i], av); err != nil { return err } } @@ -2011,17 +1999,13 @@ func awsAwsjson11_serializeDocumentEbsBlockDeviceConfig(v *types.EbsBlockDeviceC return nil } -func awsAwsjson11_serializeDocumentEbsBlockDeviceConfigList(v []*types.EbsBlockDeviceConfig, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEbsBlockDeviceConfigList(v []types.EbsBlockDeviceConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEbsBlockDeviceConfig(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEbsBlockDeviceConfig(&v[i], av); err != nil { return err } } @@ -2047,32 +2031,24 @@ func awsAwsjson11_serializeDocumentEbsConfiguration(v *types.EbsConfiguration, v return nil } -func awsAwsjson11_serializeDocumentEC2InstanceIdsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEC2InstanceIdsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentEC2InstanceIdsToTerminateList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEC2InstanceIdsToTerminateList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2171,17 +2147,13 @@ func awsAwsjson11_serializeDocumentInstanceFleetConfig(v *types.InstanceFleetCon return nil } -func awsAwsjson11_serializeDocumentInstanceFleetConfigList(v []*types.InstanceFleetConfig, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceFleetConfigList(v []types.InstanceFleetConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInstanceFleetConfig(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInstanceFleetConfig(&v[i], av); err != nil { return err } } @@ -2289,17 +2261,13 @@ func awsAwsjson11_serializeDocumentInstanceGroupConfig(v *types.InstanceGroupCon return nil } -func awsAwsjson11_serializeDocumentInstanceGroupConfigList(v []*types.InstanceGroupConfig, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceGroupConfigList(v []types.InstanceGroupConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInstanceGroupConfig(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInstanceGroupConfig(&v[i], av); err != nil { return err } } @@ -2344,17 +2312,13 @@ func awsAwsjson11_serializeDocumentInstanceGroupModifyConfig(v *types.InstanceGr return nil } -func awsAwsjson11_serializeDocumentInstanceGroupModifyConfigList(v []*types.InstanceGroupModifyConfig, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceGroupModifyConfigList(v []types.InstanceGroupModifyConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInstanceGroupModifyConfig(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInstanceGroupModifyConfig(&v[i], av); err != nil { return err } } @@ -2450,17 +2414,13 @@ func awsAwsjson11_serializeDocumentInstanceTypeConfig(v *types.InstanceTypeConfi return nil } -func awsAwsjson11_serializeDocumentInstanceTypeConfigList(v []*types.InstanceTypeConfig, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceTypeConfigList(v []types.InstanceTypeConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInstanceTypeConfig(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInstanceTypeConfig(&v[i], av); err != nil { return err } } @@ -2547,9 +2507,9 @@ func awsAwsjson11_serializeDocumentJobFlowInstancesConfig(v *types.JobFlowInstan } } - if v.KeepJobFlowAliveWhenNoSteps != nil { + if v.KeepJobFlowAliveWhenNoSteps { ok := object.Key("KeepJobFlowAliveWhenNoSteps") - ok.Boolean(*v.KeepJobFlowAliveWhenNoSteps) + ok.Boolean(v.KeepJobFlowAliveWhenNoSteps) } if v.MasterInstanceType != nil { @@ -2574,9 +2534,9 @@ func awsAwsjson11_serializeDocumentJobFlowInstancesConfig(v *types.JobFlowInstan ok.String(*v.SlaveInstanceType) } - if v.TerminationProtected != nil { + if v.TerminationProtected { ok := object.Key("TerminationProtected") - ok.Boolean(*v.TerminationProtected) + ok.Boolean(v.TerminationProtected) } return nil @@ -2631,17 +2591,13 @@ func awsAwsjson11_serializeDocumentKeyValue(v *types.KeyValue, value smithyjson. return nil } -func awsAwsjson11_serializeDocumentKeyValueList(v []*types.KeyValue, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentKeyValueList(v []types.KeyValue, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentKeyValue(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentKeyValue(&v[i], av); err != nil { return err } } @@ -2679,34 +2635,26 @@ func awsAwsjson11_serializeDocumentMetricDimension(v *types.MetricDimension, val return nil } -func awsAwsjson11_serializeDocumentMetricDimensionList(v []*types.MetricDimension, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMetricDimensionList(v []types.MetricDimension, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMetricDimension(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMetricDimension(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentNewSupportedProductsList(v []*types.SupportedProductConfig, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNewSupportedProductsList(v []types.SupportedProductConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSupportedProductConfig(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSupportedProductConfig(&v[i], av); err != nil { return err } } @@ -2742,17 +2690,13 @@ func awsAwsjson11_serializeDocumentPlacementGroupConfig(v *types.PlacementGroupC return nil } -func awsAwsjson11_serializeDocumentPlacementGroupConfigList(v []*types.PlacementGroupConfig, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPlacementGroupConfigList(v []types.PlacementGroupConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPlacementGroupConfig(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPlacementGroupConfig(&v[i], av); err != nil { return err } } @@ -2795,17 +2739,13 @@ func awsAwsjson11_serializeDocumentPortRange(v *types.PortRange, value smithyjso return nil } -func awsAwsjson11_serializeDocumentPortRanges(v []*types.PortRange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPortRanges(v []types.PortRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPortRange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPortRange(&v[i], av); err != nil { return err } } @@ -2879,17 +2819,13 @@ func awsAwsjson11_serializeDocumentScalingRule(v *types.ScalingRule, value smith return nil } -func awsAwsjson11_serializeDocumentScalingRuleList(v []*types.ScalingRule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentScalingRuleList(v []types.ScalingRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentScalingRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentScalingRule(&v[i], av); err != nil { return err } } @@ -2929,17 +2865,13 @@ func awsAwsjson11_serializeDocumentScriptBootstrapActionConfig(v *types.ScriptBo return nil } -func awsAwsjson11_serializeDocumentSecurityGroupsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecurityGroupsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3036,34 +2968,26 @@ func awsAwsjson11_serializeDocumentStepConfig(v *types.StepConfig, value smithyj return nil } -func awsAwsjson11_serializeDocumentStepConfigList(v []*types.StepConfig, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStepConfigList(v []types.StepConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentStepConfig(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentStepConfig(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentStepIdsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStepIdsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3079,32 +3003,24 @@ func awsAwsjson11_serializeDocumentStepStateList(v []types.StepState, value smit return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentStringMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3128,17 +3044,13 @@ func awsAwsjson11_serializeDocumentSupportedProductConfig(v *types.SupportedProd return nil } -func awsAwsjson11_serializeDocumentSupportedProductsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSupportedProductsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3160,17 +3072,13 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -3199,32 +3107,24 @@ func awsAwsjson11_serializeDocumentVolumeSpecification(v *types.VolumeSpecificat return nil } -func awsAwsjson11_serializeDocumentXmlStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentXmlStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentXmlStringMaxLen256List(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentXmlStringMaxLen256List(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3978,9 +3878,9 @@ func awsAwsjson11_serializeOpDocumentRunJobFlowInput(v *RunJobFlowInput, value s } } - if v.VisibleToAllUsers != nil { + if v.VisibleToAllUsers { ok := object.Key("VisibleToAllUsers") - ok.Boolean(*v.VisibleToAllUsers) + ok.Boolean(v.VisibleToAllUsers) } return nil @@ -3997,9 +3897,9 @@ func awsAwsjson11_serializeOpDocumentSetTerminationProtectionInput(v *SetTermina } } - if v.TerminationProtected != nil { + if v.TerminationProtected { ok := object.Key("TerminationProtected") - ok.Boolean(*v.TerminationProtected) + ok.Boolean(v.TerminationProtected) } return nil @@ -4016,9 +3916,9 @@ func awsAwsjson11_serializeOpDocumentSetVisibleToAllUsersInput(v *SetVisibleToAl } } - if v.VisibleToAllUsers != nil { + if v.VisibleToAllUsers { ok := object.Key("VisibleToAllUsers") - ok.Boolean(*v.VisibleToAllUsers) + ok.Boolean(v.VisibleToAllUsers) } return nil diff --git a/service/emr/types/types.go b/service/emr/types/types.go index c6113ccbdbf..781ea0164d8 100644 --- a/service/emr/types/types.go +++ b/service/emr/types/types.go @@ -20,10 +20,10 @@ type Application struct { // This option is for advanced users only. This is meta information about // third-party applications that third-party vendors use for testing purposes. - AdditionalInfo map[string]*string + AdditionalInfo map[string]string // Arguments for Amazon EMR to pass to the application. - Args []*string + Args []string // The name of the application. Name *string @@ -48,7 +48,7 @@ type AutoScalingPolicy struct { // The scale-in and scale-out rules that comprise the automatic scaling policy. // // This member is required. - Rules []*ScalingRule + Rules []ScalingRule } // An automatic scaling policy for a core instance group or task instance group in @@ -63,7 +63,7 @@ type AutoScalingPolicyDescription struct { Constraints *ScalingConstraints // The scale-in and scale-out rules that comprise the automatic scaling policy. - Rules []*ScalingRule + Rules []ScalingRule // The status of an automatic scaling policy. Status *AutoScalingPolicyStatus @@ -105,13 +105,13 @@ type BlockPublicAccessConfiguration struct { // before July 2019. For accounts created after this, the default is true. // // This member is required. - BlockPublicSecurityGroupRules *bool + BlockPublicSecurityGroupRules bool // The classification within a configuration. Classification *string // A list of additional configurations to apply within a configuration object. - Configurations []*Configuration + Configurations []Configuration // Specifies ports and port ranges that are permitted to have security group rules // that allow inbound traffic from all public sources. For example, if Port 23 @@ -120,10 +120,10 @@ type BlockPublicAccessConfiguration struct { // rule that allows inbound traffic on Port 23 from IPv4 0.0.0.0/0 or IPv6 port // ::/0 as the source. By default, Port 22, which is used for SSH access to the // cluster EC2 instances, is in the list of PermittedPublicSecurityGroupRuleRanges. - PermittedPublicSecurityGroupRuleRanges []*PortRange + PermittedPublicSecurityGroupRuleRanges []PortRange // A set of properties specified within a configuration classification. - Properties map[string]*string + Properties map[string]string } // Properties that describe the AWS principal that created the @@ -209,7 +209,7 @@ type CloudWatchAlarmDefinition struct { Threshold *float64 // A CloudWatch metric dimension. - Dimensions []*MetricDimension + Dimensions []MetricDimension // The number of periods, in five-minute increments, during which the alarm // condition must exist before the alarm triggers automatic scaling activity. The @@ -233,7 +233,7 @@ type CloudWatchAlarmDefinition struct { type Cluster struct { // The applications installed on this cluster. - Applications []*Application + Applications []Application // An IAM role for automatic scaling policies. The default role is // EMR_AutoScaling_DefaultRole. The IAM role provides permissions that the @@ -242,14 +242,14 @@ type Cluster struct { AutoScalingRole *string // Specifies whether the cluster should terminate after completing all steps. - AutoTerminate *bool + AutoTerminate bool // The Amazon Resource Name of the cluster. ClusterArn *string // Applies only to Amazon EMR releases 4.x and later. The list of Configurations // supplied to the EMR cluster. - Configurations []*Configuration + Configurations []Configuration // Available only in Amazon EMR version 5.7.0 and later. The ID of a custom Amazon // EBS-backed Linux AMI if the cluster uses a custom AMI. @@ -307,7 +307,7 @@ type Cluster struct { OutpostArn *string // Placement group configured for an Amazon EMR cluster. - PlacementGroups []*PlacementGroupConfig + PlacementGroups []PlacementGroupConfig // The Amazon EMR release label, which determines the version of open-source // application packages installed on the cluster. Release labels are in the form @@ -359,12 +359,12 @@ type Cluster struct { StepConcurrencyLevel *int32 // A list of tags associated with a cluster. - Tags []*Tag + Tags []Tag // Indicates whether Amazon EMR will lock the cluster to prevent the EC2 instances // from being terminated by an API call or user intervention, or in the event of a // cluster error. - TerminationProtected *bool + TerminationProtected bool // Indicates whether the cluster is visible to all IAM users of the AWS account // associated with the cluster. The default value, true, indicates that all IAM @@ -374,7 +374,7 @@ type Cluster struct { // using the SetVisibleToAllUsers action. You can override the default value of // true when you create a cluster by using the VisibleToAllUsers parameter of the // RunJobFlow action. - VisibleToAllUsers *bool + VisibleToAllUsers bool } // The reason that the cluster changed to its current state. @@ -445,7 +445,7 @@ type ClusterTimeline struct { type Command struct { // Arguments for Amazon EMR to pass to the command for execution. - Args []*string + Args []string // The name of the command. Name *string @@ -511,10 +511,10 @@ type Configuration struct { Classification *string // A list of additional configurations to apply within a configuration object. - Configurations []*Configuration + Configurations []Configuration // A set of properties specified within a configuration classification. - Properties map[string]*string + Properties map[string]string } // Configuration of requested EBS block device associated with the instance group. @@ -547,7 +547,7 @@ type EbsBlockDeviceConfig struct { type EbsConfiguration struct { // An array of Amazon EBS volume specifications attached to a cluster instance. - EbsBlockDeviceConfigs []*EbsBlockDeviceConfig + EbsBlockDeviceConfigs []EbsBlockDeviceConfig // Indicates whether an Amazon EBS volume is EBS-optimized. EbsOptimized *bool @@ -568,10 +568,10 @@ type EbsVolume struct { type Ec2InstanceAttributes struct { // A list of additional Amazon EC2 security group IDs for the master node. - AdditionalMasterSecurityGroups []*string + AdditionalMasterSecurityGroups []string // A list of additional Amazon EC2 security group IDs for the core and task nodes. - AdditionalSlaveSecurityGroups []*string + AdditionalSlaveSecurityGroups []string // The Availability Zone in which the cluster will run. Ec2AvailabilityZone *string @@ -603,7 +603,7 @@ type Ec2InstanceAttributes struct { // that Availability Zone. If you do not specify this value, Amazon EMR chooses the // Availability Zone for you. RequestedEc2SubnetIDs and // RequestedEc2AvailabilityZones cannot be specified together. - RequestedEc2AvailabilityZones []*string + RequestedEc2AvailabilityZones []string // Applies to clusters configured with the instance fleets option. Specifies the // unique identifier of one or more Amazon EC2 subnets in which to launch EC2 @@ -616,7 +616,7 @@ type Ec2InstanceAttributes struct { // supported, and no Subnet is specified, Amazon EMR chooses the subnet for you. // RequestedEc2SubnetIDs and RequestedEc2AvailabilityZones cannot be specified // together. - RequestedEc2SubnetIds []*string + RequestedEc2SubnetIds []string // The identifier of the Amazon EC2 security group for the Amazon EMR service to // access clusters in VPC private subnets. @@ -675,7 +675,7 @@ type HadoopJarStepConfig struct { // A list of command line arguments passed to the JAR file's main function when // executed. - Args []*string + Args []string // The name of the main class in the specified Java file. If not specified, the JAR // file should specify a Main-Class in its manifest file. @@ -683,7 +683,7 @@ type HadoopJarStepConfig struct { // A list of Java properties that are set when the step runs. You can use these // properties to pass key value pairs to your main function. - Properties []*KeyValue + Properties []KeyValue } // A cluster step consisting of a JAR file whose main function will be executed. @@ -693,7 +693,7 @@ type HadoopStepConfig struct { // The list of command line arguments to pass to the JAR file's main function for // execution. - Args []*string + Args []string // The path to the JAR file that runs during the step. Jar *string @@ -704,14 +704,14 @@ type HadoopStepConfig struct { // The list of Java properties that are set when the step runs. You can use these // properties to pass key value pairs to your main function. - Properties map[string]*string + Properties map[string]string } // Represents an EC2 instance provisioned as part of cluster. type Instance struct { // The list of EBS volumes that are attached to this instance. - EbsVolumes []*EbsVolume + EbsVolumes []EbsVolume // The unique identifier of the instance in Amazon EC2. Ec2InstanceId *string @@ -764,7 +764,7 @@ type InstanceFleet struct { // The specification for the instance types that comprise an instance fleet. Up to // five unique instance specifications may be defined for each instance fleet. - InstanceTypeSpecifications []*InstanceTypeSpecification + InstanceTypeSpecifications []InstanceTypeSpecification // Describes the launch specification for an instance fleet. LaunchSpecifications *InstanceFleetProvisioningSpecifications @@ -836,7 +836,7 @@ type InstanceFleetConfig struct { // The instance type configurations that define the EC2 instances in the instance // fleet. - InstanceTypeConfigs []*InstanceTypeConfig + InstanceTypeConfigs []InstanceTypeConfig // The launch specification for the instance fleet. LaunchSpecifications *InstanceFleetProvisioningSpecifications @@ -1001,14 +1001,14 @@ type InstanceGroup struct { // Amazon EMR releases 4.x or later. The list of configurations supplied for an EMR // cluster instance group. You can specify a separate configuration for each // instance group (master, core, and task). - Configurations []*Configuration + Configurations []Configuration // The version number of the requested configuration specification for this // instance group. - ConfigurationsVersion *int64 + ConfigurationsVersion int64 // The EBS block devices that are mapped to this instance group. - EbsBlockDevices []*EbsBlockDevice + EbsBlockDevices []EbsBlockDevice // If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an // optimized configuration stack and provides additional, dedicated capacity for @@ -1026,11 +1026,11 @@ type InstanceGroup struct { // A list of configurations that were successfully applied for an instance group // last time. - LastSuccessfullyAppliedConfigurations []*Configuration + LastSuccessfullyAppliedConfigurations []Configuration // The version number of a configuration specification that was successfully // applied for an instance group last time. - LastSuccessfullyAppliedConfigurationsVersion *int64 + LastSuccessfullyAppliedConfigurationsVersion int64 // The marketplace to provision instances for this group. Valid values are // ON_DEMAND or SPOT. @@ -1084,7 +1084,7 @@ type InstanceGroupConfig struct { // Amazon EMR releases 4.x or later. The list of configurations supplied for an EMR // cluster instance group. You can specify a separate configuration for each // instance group (master, core, and task). - Configurations []*Configuration + Configurations []Configuration // EBS configurations that will be attached to each EC2 instance in the instance // group. @@ -1169,11 +1169,11 @@ type InstanceGroupModifyConfig struct { InstanceGroupId *string // A list of new or modified configurations to apply for an instance group. - Configurations []*Configuration + Configurations []Configuration // The EC2 InstanceIds to terminate. After you terminate the instances, the // instance group will not return to its original requested size. - EC2InstanceIdsToTerminate []*string + EC2InstanceIdsToTerminate []string // Target size for the instance group. InstanceCount *int32 @@ -1227,10 +1227,10 @@ type InstanceResizePolicy struct { InstanceTerminationTimeout *int32 // Specific list of instances to be protected when shrinking an instance group. - InstancesToProtect []*string + InstancesToProtect []string // Specific list of instances to be terminated when shrinking an instance group. - InstancesToTerminate []*string + InstancesToTerminate []string } // The details of the status change reason for the instance. @@ -1295,7 +1295,7 @@ type InstanceTypeConfig struct { // A configuration classification that applies when provisioning cluster instances, // which can include configurations for applications and software that run on the // cluster. - Configurations []*Configuration + Configurations []Configuration // The configuration of Amazon Elastic Block Storage (EBS) attached to each // instance as defined by InstanceType. @@ -1324,11 +1324,11 @@ type InstanceTypeSpecification struct { // A configuration classification that applies when provisioning cluster instances, // which can include configurations for applications and software bundled with // Amazon EMR. - Configurations []*Configuration + Configurations []Configuration // The configuration of Amazon Elastic Block Storage (EBS) attached to each // instance as defined by InstanceType. - EbsBlockDevices []*EbsBlockDevice + EbsBlockDevices []EbsBlockDevice // Evaluates to TRUE when the specified InstanceType is EBS-optimized. EbsOptimized *bool @@ -1377,7 +1377,7 @@ type JobFlowDetail struct { AutoScalingRole *string // A list of the bootstrap actions run by the job flow. - BootstrapActions []*BootstrapActionDetail + BootstrapActions []BootstrapActionDetail // The IAM role that was specified when the job flow was launched. The EC2 // instances of the job flow assume this role. @@ -1411,12 +1411,12 @@ type JobFlowDetail struct { ServiceRole *string // A list of steps run by the job flow. - Steps []*StepDetail + Steps []StepDetail // A list of strings set by third party software when the job flow is launched. If // you are not using third party software to manage the job flow this value is // empty. - SupportedProducts []*string + SupportedProducts []string // Indicates whether the cluster is visible to all IAM users of the AWS account // associated with the cluster. The default value, true, indicates that all IAM @@ -1426,7 +1426,7 @@ type JobFlowDetail struct { // using the SetVisibleToAllUsers action. You can override the default value of // true when you create a cluster by using the VisibleToAllUsers parameter of the // RunJobFlow action. - VisibleToAllUsers *bool + VisibleToAllUsers bool } // Describes the status of the cluster (job flow). @@ -1465,10 +1465,10 @@ type JobFlowExecutionStatusDetail struct { type JobFlowInstancesConfig struct { // A list of additional Amazon EC2 security group IDs for the master node. - AdditionalMasterSecurityGroups []*string + AdditionalMasterSecurityGroups []string // A list of additional Amazon EC2 security group IDs for the core and task nodes. - AdditionalSlaveSecurityGroups []*string + AdditionalSlaveSecurityGroups []string // The name of the EC2 key pair that can be used to ssh to the master node as the // user called "hadoop." @@ -1485,7 +1485,7 @@ type JobFlowInstancesConfig struct { // subnet IDs are specified, Amazon EMR evaluates them and launches instances in // the optimal subnet. The instance fleet configuration is available only in Amazon // EMR versions 4.8.0 and later, excluding 5.0.x versions. - Ec2SubnetIds []*string + Ec2SubnetIds []string // The identifier of the Amazon EC2 security group for the master node. EmrManagedMasterSecurityGroup *string @@ -1507,14 +1507,14 @@ type JobFlowInstancesConfig struct { // The instance fleet configuration is available only in Amazon EMR versions 4.8.0 // and later, excluding 5.0.x versions. Describes the EC2 instances and instance // configurations for clusters that use the instance fleet configuration. - InstanceFleets []*InstanceFleetConfig + InstanceFleets []InstanceFleetConfig // Configuration for the instance groups in a cluster. - InstanceGroups []*InstanceGroupConfig + InstanceGroups []InstanceGroupConfig // Specifies whether the cluster should remain available after completing all // steps. - KeepJobFlowAliveWhenNoSteps *bool + KeepJobFlowAliveWhenNoSteps bool // The EC2 instance type of the master node. MasterInstanceType *string @@ -1532,7 +1532,7 @@ type JobFlowInstancesConfig struct { // Specifies whether to lock the cluster to prevent the Amazon EC2 instances from // being terminated by API call, user intervention, or in the event of a job-flow // error. - TerminationProtected *bool + TerminationProtected bool } // Specify the type of Amazon EC2 instances that the cluster (job flow) runs on. @@ -1567,11 +1567,11 @@ type JobFlowInstancesDetail struct { HadoopVersion *string // Details about the instance groups in a cluster. - InstanceGroups []*InstanceGroupDetail + InstanceGroups []InstanceGroupDetail // Specifies whether the cluster should remain available after completing all // steps. - KeepJobFlowAliveWhenNoSteps *bool + KeepJobFlowAliveWhenNoSteps bool // The Amazon EC2 instance identifier of the master node. MasterInstanceId *string @@ -1594,7 +1594,7 @@ type JobFlowInstancesDetail struct { // Specifies whether the Amazon EC2 instances in the cluster are protected from // termination by API calls, user intervention, or in the event of a job-flow // error. - TerminationProtected *bool + TerminationProtected bool } // Attributes for Kerberos configuration when Kerberos authentication is enabled @@ -1748,7 +1748,7 @@ type NotebookExecution struct { // A list of tags associated with a notebook execution. Tags are user-defined key // value pairs that consist of a required key string with a maximum of 128 // characters and an optional value string with a maximum of 256 characters. - Tags []*Tag + Tags []Tag } // @@ -1850,7 +1850,7 @@ type PlacementType struct { // for instance fleets, while AvailabilityZone (singular) is used for uniform // instance groups. The instance fleet configuration is available only in Amazon // EMR versions 4.8.0 and later, excluding 5.0.x versions. - AvailabilityZones []*string + AvailabilityZones []string } // A list of port ranges that are permitted to allow inbound traffic from all @@ -1949,7 +1949,7 @@ type ScriptBootstrapActionConfig struct { Path *string // A list of command line arguments to pass to the bootstrap action script. - Args []*string + Args []string } // The creation date and time, and name, of a security configuration. @@ -2196,7 +2196,7 @@ type StepTimeline struct { type SupportedProductConfig struct { // The list of user-supplied arguments. - Args []*string + Args []string // The name of the product configuration. Name *string diff --git a/service/emr/validators.go b/service/emr/validators.go index 842e3c3b89f..a6eef1a6e6a 100644 --- a/service/emr/validators.go +++ b/service/emr/validators.go @@ -809,9 +809,6 @@ func validateBlockPublicAccessConfiguration(v *types.BlockPublicAccessConfigurat return nil } invalidParams := smithy.InvalidParamsError{Context: "BlockPublicAccessConfiguration"} - if v.BlockPublicSecurityGroupRules == nil { - invalidParams.Add(smithy.NewErrParamRequired("BlockPublicSecurityGroupRules")) - } if v.PermittedPublicSecurityGroupRuleRanges != nil { if err := validatePortRanges(v.PermittedPublicSecurityGroupRuleRanges); err != nil { invalidParams.AddNested("PermittedPublicSecurityGroupRuleRanges", err.(smithy.InvalidParamsError)) @@ -846,13 +843,13 @@ func validateBootstrapActionConfig(v *types.BootstrapActionConfig) error { } } -func validateBootstrapActionConfigList(v []*types.BootstrapActionConfig) error { +func validateBootstrapActionConfigList(v []types.BootstrapActionConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BootstrapActionConfigList"} for i := range v { - if err := validateBootstrapActionConfig(v[i]); err != nil { + if err := validateBootstrapActionConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -927,13 +924,13 @@ func validateEbsBlockDeviceConfig(v *types.EbsBlockDeviceConfig) error { } } -func validateEbsBlockDeviceConfigList(v []*types.EbsBlockDeviceConfig) error { +func validateEbsBlockDeviceConfigList(v []types.EbsBlockDeviceConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "EbsBlockDeviceConfigList"} for i := range v { - if err := validateEbsBlockDeviceConfig(v[i]); err != nil { + if err := validateEbsBlockDeviceConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1016,13 +1013,13 @@ func validateInstanceFleetConfig(v *types.InstanceFleetConfig) error { } } -func validateInstanceFleetConfigList(v []*types.InstanceFleetConfig) error { +func validateInstanceFleetConfigList(v []types.InstanceFleetConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InstanceFleetConfigList"} for i := range v { - if err := validateInstanceFleetConfig(v[i]); err != nil { + if err := validateInstanceFleetConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1101,13 +1098,13 @@ func validateInstanceGroupConfig(v *types.InstanceGroupConfig) error { } } -func validateInstanceGroupConfigList(v []*types.InstanceGroupConfig) error { +func validateInstanceGroupConfigList(v []types.InstanceGroupConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InstanceGroupConfigList"} for i := range v { - if err := validateInstanceGroupConfig(v[i]); err != nil { + if err := validateInstanceGroupConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1133,13 +1130,13 @@ func validateInstanceGroupModifyConfig(v *types.InstanceGroupModifyConfig) error } } -func validateInstanceGroupModifyConfigList(v []*types.InstanceGroupModifyConfig) error { +func validateInstanceGroupModifyConfigList(v []types.InstanceGroupModifyConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InstanceGroupModifyConfigList"} for i := range v { - if err := validateInstanceGroupModifyConfig(v[i]); err != nil { + if err := validateInstanceGroupModifyConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1170,13 +1167,13 @@ func validateInstanceTypeConfig(v *types.InstanceTypeConfig) error { } } -func validateInstanceTypeConfigList(v []*types.InstanceTypeConfig) error { +func validateInstanceTypeConfigList(v []types.InstanceTypeConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InstanceTypeConfigList"} for i := range v { - if err := validateInstanceTypeConfig(v[i]); err != nil { + if err := validateInstanceTypeConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1274,13 +1271,13 @@ func validatePlacementGroupConfig(v *types.PlacementGroupConfig) error { } } -func validatePlacementGroupConfigList(v []*types.PlacementGroupConfig) error { +func validatePlacementGroupConfigList(v []types.PlacementGroupConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PlacementGroupConfigList"} for i := range v { - if err := validatePlacementGroupConfig(v[i]); err != nil { + if err := validatePlacementGroupConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1306,13 +1303,13 @@ func validatePortRange(v *types.PortRange) error { } } -func validatePortRanges(v []*types.PortRange) error { +func validatePortRanges(v []types.PortRange) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PortRanges"} for i := range v { - if err := validatePortRange(v[i]); err != nil { + if err := validatePortRange(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1389,13 +1386,13 @@ func validateScalingRule(v *types.ScalingRule) error { } } -func validateScalingRuleList(v []*types.ScalingRule) error { +func validateScalingRuleList(v []types.ScalingRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ScalingRuleList"} for i := range v { - if err := validateScalingRule(v[i]); err != nil { + if err := validateScalingRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1495,13 +1492,13 @@ func validateStepConfig(v *types.StepConfig) error { } } -func validateStepConfigList(v []*types.StepConfig) error { +func validateStepConfigList(v []types.StepConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "StepConfigList"} for i := range v { - if err := validateStepConfig(v[i]); err != nil { + if err := validateStepConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2041,9 +2038,6 @@ func validateOpSetTerminationProtectionInput(v *SetTerminationProtectionInput) e return nil } invalidParams := smithy.InvalidParamsError{Context: "SetTerminationProtectionInput"} - if v.TerminationProtected == nil { - invalidParams.Add(smithy.NewErrParamRequired("TerminationProtected")) - } if v.JobFlowIds == nil { invalidParams.Add(smithy.NewErrParamRequired("JobFlowIds")) } @@ -2062,9 +2056,6 @@ func validateOpSetVisibleToAllUsersInput(v *SetVisibleToAllUsersInput) error { if v.JobFlowIds == nil { invalidParams.Add(smithy.NewErrParamRequired("JobFlowIds")) } - if v.VisibleToAllUsers == nil { - invalidParams.Add(smithy.NewErrParamRequired("VisibleToAllUsers")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/eventbridge/api_op_CreateEventBus.go b/service/eventbridge/api_op_CreateEventBus.go index 871d0136823..732e074f5f3 100644 --- a/service/eventbridge/api_op_CreateEventBus.go +++ b/service/eventbridge/api_op_CreateEventBus.go @@ -45,7 +45,7 @@ type CreateEventBusInput struct { EventSourceName *string // Tags to associate with the event bus. - Tags []*types.Tag + Tags []types.Tag } type CreateEventBusOutput struct { diff --git a/service/eventbridge/api_op_DeleteRule.go b/service/eventbridge/api_op_DeleteRule.go index 383702b0c7c..35350500b5c 100644 --- a/service/eventbridge/api_op_DeleteRule.go +++ b/service/eventbridge/api_op_DeleteRule.go @@ -49,7 +49,7 @@ type DeleteRuleInput struct { // that are not managed rules. You can check whether a rule is a managed rule by // using DescribeRule or ListRules and checking the ManagedBy field of the // response. - Force *bool + Force bool } type DeleteRuleOutput struct { diff --git a/service/eventbridge/api_op_ListEventBuses.go b/service/eventbridge/api_op_ListEventBuses.go index 74478a0ef1e..f6e2df50de7 100644 --- a/service/eventbridge/api_op_ListEventBuses.go +++ b/service/eventbridge/api_op_ListEventBuses.go @@ -46,7 +46,7 @@ type ListEventBusesInput struct { type ListEventBusesOutput struct { // This list of event buses. - EventBuses []*types.EventBus + EventBuses []types.EventBus // A token you can use in a subsequent operation to retrieve the next set of // results. diff --git a/service/eventbridge/api_op_ListEventSources.go b/service/eventbridge/api_op_ListEventSources.go index c913298a5af..2afef0321dd 100644 --- a/service/eventbridge/api_op_ListEventSources.go +++ b/service/eventbridge/api_op_ListEventSources.go @@ -47,7 +47,7 @@ type ListEventSourcesInput struct { type ListEventSourcesOutput struct { // The list of event sources. - EventSources []*types.EventSource + EventSources []types.EventSource // A token you can use in a subsequent operation to retrieve the next set of // results. diff --git a/service/eventbridge/api_op_ListPartnerEventSourceAccounts.go b/service/eventbridge/api_op_ListPartnerEventSourceAccounts.go index afacebc25f7..dba6756cfef 100644 --- a/service/eventbridge/api_op_ListPartnerEventSourceAccounts.go +++ b/service/eventbridge/api_op_ListPartnerEventSourceAccounts.go @@ -53,7 +53,7 @@ type ListPartnerEventSourceAccountsOutput struct { NextToken *string // The list of partner event sources returned by the operation. - PartnerEventSourceAccounts []*types.PartnerEventSourceAccount + PartnerEventSourceAccounts []types.PartnerEventSourceAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eventbridge/api_op_ListPartnerEventSources.go b/service/eventbridge/api_op_ListPartnerEventSources.go index a074ef4b85f..f358dd8783d 100644 --- a/service/eventbridge/api_op_ListPartnerEventSources.go +++ b/service/eventbridge/api_op_ListPartnerEventSources.go @@ -53,7 +53,7 @@ type ListPartnerEventSourcesOutput struct { NextToken *string // The list of partner event sources returned by the operation. - PartnerEventSources []*types.PartnerEventSource + PartnerEventSources []types.PartnerEventSource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eventbridge/api_op_ListRuleNamesByTarget.go b/service/eventbridge/api_op_ListRuleNamesByTarget.go index 1529d587468..caf41eb5980 100644 --- a/service/eventbridge/api_op_ListRuleNamesByTarget.go +++ b/service/eventbridge/api_op_ListRuleNamesByTarget.go @@ -52,7 +52,7 @@ type ListRuleNamesByTargetOutput struct { NextToken *string // The names of the rules that can invoke the given target. - RuleNames []*string + RuleNames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eventbridge/api_op_ListRules.go b/service/eventbridge/api_op_ListRules.go index 6b64e987422..ae41452c8be 100644 --- a/service/eventbridge/api_op_ListRules.go +++ b/service/eventbridge/api_op_ListRules.go @@ -53,7 +53,7 @@ type ListRulesOutput struct { NextToken *string // The rules that match the specified criteria. - Rules []*types.Rule + Rules []types.Rule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eventbridge/api_op_ListTagsForResource.go b/service/eventbridge/api_op_ListTagsForResource.go index 514ea5a9679..c29b9d68f1d 100644 --- a/service/eventbridge/api_op_ListTagsForResource.go +++ b/service/eventbridge/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The list of tag keys and values associated with the resource you specified - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eventbridge/api_op_ListTargetsByRule.go b/service/eventbridge/api_op_ListTargetsByRule.go index f7586897a83..0cf4074e25d 100644 --- a/service/eventbridge/api_op_ListTargetsByRule.go +++ b/service/eventbridge/api_op_ListTargetsByRule.go @@ -52,7 +52,7 @@ type ListTargetsByRuleOutput struct { NextToken *string // The targets assigned to the rule. - Targets []*types.Target + Targets []types.Target // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eventbridge/api_op_PutEvents.go b/service/eventbridge/api_op_PutEvents.go index 7ec9e75870f..6a6a0f958d4 100644 --- a/service/eventbridge/api_op_PutEvents.go +++ b/service/eventbridge/api_op_PutEvents.go @@ -34,7 +34,7 @@ type PutEventsInput struct { // associated with the event, and so on. // // This member is required. - Entries []*types.PutEventsRequestEntry + Entries []types.PutEventsRequestEntry } type PutEventsOutput struct { @@ -42,10 +42,10 @@ type PutEventsOutput struct { // The successfully and unsuccessfully ingested events results. If the ingestion // was successful, the entry has the event ID in it. Otherwise, you can use the // error code and error message to identify the problem with the entry. - Entries []*types.PutEventsResultEntry + Entries []types.PutEventsResultEntry // The number of failed entries. - FailedEntryCount *int32 + FailedEntryCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eventbridge/api_op_PutPartnerEvents.go b/service/eventbridge/api_op_PutPartnerEvents.go index 25cad96a0a3..a83c08c1d64 100644 --- a/service/eventbridge/api_op_PutPartnerEvents.go +++ b/service/eventbridge/api_op_PutPartnerEvents.go @@ -33,18 +33,18 @@ type PutPartnerEventsInput struct { // The list of events to write to the event bus. // // This member is required. - Entries []*types.PutPartnerEventsRequestEntry + Entries []types.PutPartnerEventsRequestEntry } type PutPartnerEventsOutput struct { // The list of events from this operation that were successfully written to the // partner event bus. - Entries []*types.PutPartnerEventsResultEntry + Entries []types.PutPartnerEventsResultEntry // The number of events from this operation that could not be written to the // partner event bus. - FailedEntryCount *int32 + FailedEntryCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eventbridge/api_op_PutRule.go b/service/eventbridge/api_op_PutRule.go index d582b5e6e58..1539ffe7988 100644 --- a/service/eventbridge/api_op_PutRule.go +++ b/service/eventbridge/api_op_PutRule.go @@ -96,7 +96,7 @@ type PutRuleInput struct { State types.RuleState // The list of key-value pairs to associate with the rule. - Tags []*types.Tag + Tags []types.Tag } type PutRuleOutput struct { diff --git a/service/eventbridge/api_op_PutTargets.go b/service/eventbridge/api_op_PutTargets.go index 6652370f0e3..76c77c92c77 100644 --- a/service/eventbridge/api_op_PutTargets.go +++ b/service/eventbridge/api_op_PutTargets.go @@ -143,7 +143,7 @@ type PutTargetsInput struct { // The targets to update or add to the rule. // // This member is required. - Targets []*types.Target + Targets []types.Target // The name of the event bus associated with the rule. If you omit this, the // default event bus is used. @@ -153,10 +153,10 @@ type PutTargetsInput struct { type PutTargetsOutput struct { // The failed target entries. - FailedEntries []*types.PutTargetsResultEntry + FailedEntries []types.PutTargetsResultEntry // The number of failed entries. - FailedEntryCount *int32 + FailedEntryCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eventbridge/api_op_RemoveTargets.go b/service/eventbridge/api_op_RemoveTargets.go index 859a9b3762e..6248ae9ec27 100644 --- a/service/eventbridge/api_op_RemoveTargets.go +++ b/service/eventbridge/api_op_RemoveTargets.go @@ -38,7 +38,7 @@ type RemoveTargetsInput struct { // The IDs of the targets to remove from the rule. // // This member is required. - Ids []*string + Ids []string // The name of the rule. // @@ -53,16 +53,16 @@ type RemoveTargetsInput struct { // that are not managed rules. You can check whether a rule is a managed rule by // using DescribeRule or ListRules and checking the ManagedBy field of the // response. - Force *bool + Force bool } type RemoveTargetsOutput struct { // The failed target entries. - FailedEntries []*types.RemoveTargetsResultEntry + FailedEntries []types.RemoveTargetsResultEntry // The number of failed entries. - FailedEntryCount *int32 + FailedEntryCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eventbridge/api_op_TagResource.go b/service/eventbridge/api_op_TagResource.go index 29d935359b4..3971bffdd6b 100644 --- a/service/eventbridge/api_op_TagResource.go +++ b/service/eventbridge/api_op_TagResource.go @@ -47,7 +47,7 @@ type TagResourceInput struct { // The list of key-value pairs to associate with the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/eventbridge/api_op_TestEventPattern.go b/service/eventbridge/api_op_TestEventPattern.go index 68c48e3e08b..2f2a791e21b 100644 --- a/service/eventbridge/api_op_TestEventPattern.go +++ b/service/eventbridge/api_op_TestEventPattern.go @@ -48,7 +48,7 @@ type TestEventPatternInput struct { type TestEventPatternOutput struct { // Indicates whether the event matches the event pattern. - Result *bool + Result bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/eventbridge/api_op_UntagResource.go b/service/eventbridge/api_op_UntagResource.go index 85bb880ccd2..afb833333b5 100644 --- a/service/eventbridge/api_op_UntagResource.go +++ b/service/eventbridge/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // The list of tag keys to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/eventbridge/deserializers.go b/service/eventbridge/deserializers.go index 43f95e8ed37..5523c6d7b56 100644 --- a/service/eventbridge/deserializers.go +++ b/service/eventbridge/deserializers.go @@ -4099,7 +4099,7 @@ func awsAwsjson11_deserializeDocumentBatchArrayProperties(v **types.BatchArrayPr if err != nil { return err } - sv.Size = ptr.Int32(int32(i64)) + sv.Size = int32(i64) } default: @@ -4144,7 +4144,7 @@ func awsAwsjson11_deserializeDocumentBatchParameters(v **types.BatchParameters, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobDefinition = &jtv + sv.JobDefinition = ptr.String(jtv) } case "JobName": @@ -4153,7 +4153,7 @@ func awsAwsjson11_deserializeDocumentBatchParameters(v **types.BatchParameters, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "RetryStrategy": @@ -4202,7 +4202,7 @@ func awsAwsjson11_deserializeDocumentBatchRetryStrategy(v **types.BatchRetryStra if err != nil { return err } - sv.Attempts = ptr.Int32(int32(i64)) + sv.Attempts = int32(i64) } default: @@ -4242,7 +4242,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4282,7 +4282,7 @@ func awsAwsjson11_deserializeDocumentDeadLetterConfig(v **types.DeadLetterConfig if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -4322,7 +4322,7 @@ func awsAwsjson11_deserializeDocumentEcsParameters(v **types.EcsParameters, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Group = &jtv + sv.Group = ptr.String(jtv) } case "LaunchType": @@ -4345,7 +4345,7 @@ func awsAwsjson11_deserializeDocumentEcsParameters(v **types.EcsParameters, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PlatformVersion = &jtv + sv.PlatformVersion = ptr.String(jtv) } case "TaskCount": @@ -4367,7 +4367,7 @@ func awsAwsjson11_deserializeDocumentEcsParameters(v **types.EcsParameters, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.TaskDefinitionArn = &jtv + sv.TaskDefinitionArn = ptr.String(jtv) } default: @@ -4407,7 +4407,7 @@ func awsAwsjson11_deserializeDocumentEventBus(v **types.EventBus, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Name": @@ -4416,7 +4416,7 @@ func awsAwsjson11_deserializeDocumentEventBus(v **types.EventBus, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Policy": @@ -4425,7 +4425,7 @@ func awsAwsjson11_deserializeDocumentEventBus(v **types.EventBus, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -4437,7 +4437,7 @@ func awsAwsjson11_deserializeDocumentEventBus(v **types.EventBus, value interfac return nil } -func awsAwsjson11_deserializeDocumentEventBusList(v *[]*types.EventBus, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventBusList(v *[]types.EventBus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4450,18 +4450,20 @@ func awsAwsjson11_deserializeDocumentEventBusList(v *[]*types.EventBus, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventBus + var cv []types.EventBus if *v == nil { - cv = []*types.EventBus{} + cv = []types.EventBus{} } else { cv = *v } for _, value := range shape { - var col *types.EventBus - if err := awsAwsjson11_deserializeDocumentEventBus(&col, value); err != nil { + var col types.EventBus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventBus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4497,7 +4499,7 @@ func awsAwsjson11_deserializeDocumentEventSource(v **types.EventSource, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedBy": @@ -4506,7 +4508,7 @@ func awsAwsjson11_deserializeDocumentEventSource(v **types.EventSource, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "CreationTime": @@ -4541,7 +4543,7 @@ func awsAwsjson11_deserializeDocumentEventSource(v **types.EventSource, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -4562,7 +4564,7 @@ func awsAwsjson11_deserializeDocumentEventSource(v **types.EventSource, value in return nil } -func awsAwsjson11_deserializeDocumentEventSourceList(v *[]*types.EventSource, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventSourceList(v *[]types.EventSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4575,18 +4577,20 @@ func awsAwsjson11_deserializeDocumentEventSourceList(v *[]*types.EventSource, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventSource + var cv []types.EventSource if *v == nil { - cv = []*types.EventSource{} + cv = []types.EventSource{} } else { cv = *v } for _, value := range shape { - var col *types.EventSource - if err := awsAwsjson11_deserializeDocumentEventSource(&col, value); err != nil { + var col types.EventSource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4594,7 +4598,7 @@ func awsAwsjson11_deserializeDocumentEventSourceList(v *[]*types.EventSource, va return nil } -func awsAwsjson11_deserializeDocumentHeaderParametersMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentHeaderParametersMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4607,21 +4611,21 @@ func awsAwsjson11_deserializeDocumentHeaderParametersMap(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HeaderValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -4709,7 +4713,7 @@ func awsAwsjson11_deserializeDocumentInputTransformer(v **types.InputTransformer if !ok { return fmt.Errorf("expected TransformerInput to be of type string, got %T instead", value) } - sv.InputTemplate = &jtv + sv.InputTemplate = ptr.String(jtv) } default: @@ -4749,7 +4753,7 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4789,7 +4793,7 @@ func awsAwsjson11_deserializeDocumentInvalidEventPatternException(v **types.Inva if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4829,7 +4833,7 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4869,7 +4873,7 @@ func awsAwsjson11_deserializeDocumentKinesisParameters(v **types.KinesisParamete if !ok { return fmt.Errorf("expected TargetPartitionKeyPath to be of type string, got %T instead", value) } - sv.PartitionKeyPath = &jtv + sv.PartitionKeyPath = ptr.String(jtv) } default: @@ -4909,7 +4913,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4949,7 +4953,7 @@ func awsAwsjson11_deserializeDocumentManagedRuleException(v **types.ManagedRuleE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5025,7 +5029,7 @@ func awsAwsjson11_deserializeDocumentOperationDisabledException(v **types.Operat if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5065,7 +5069,7 @@ func awsAwsjson11_deserializeDocumentPartnerEventSource(v **types.PartnerEventSo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Name": @@ -5074,7 +5078,7 @@ func awsAwsjson11_deserializeDocumentPartnerEventSource(v **types.PartnerEventSo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5114,7 +5118,7 @@ func awsAwsjson11_deserializeDocumentPartnerEventSourceAccount(v **types.Partner if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.Account = &jtv + sv.Account = ptr.String(jtv) } case "CreationTime": @@ -5161,7 +5165,7 @@ func awsAwsjson11_deserializeDocumentPartnerEventSourceAccount(v **types.Partner return nil } -func awsAwsjson11_deserializeDocumentPartnerEventSourceAccountList(v *[]*types.PartnerEventSourceAccount, value interface{}) error { +func awsAwsjson11_deserializeDocumentPartnerEventSourceAccountList(v *[]types.PartnerEventSourceAccount, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5174,18 +5178,20 @@ func awsAwsjson11_deserializeDocumentPartnerEventSourceAccountList(v *[]*types.P return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PartnerEventSourceAccount + var cv []types.PartnerEventSourceAccount if *v == nil { - cv = []*types.PartnerEventSourceAccount{} + cv = []types.PartnerEventSourceAccount{} } else { cv = *v } for _, value := range shape { - var col *types.PartnerEventSourceAccount - if err := awsAwsjson11_deserializeDocumentPartnerEventSourceAccount(&col, value); err != nil { + var col types.PartnerEventSourceAccount + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPartnerEventSourceAccount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5193,7 +5199,7 @@ func awsAwsjson11_deserializeDocumentPartnerEventSourceAccountList(v *[]*types.P return nil } -func awsAwsjson11_deserializeDocumentPartnerEventSourceList(v *[]*types.PartnerEventSource, value interface{}) error { +func awsAwsjson11_deserializeDocumentPartnerEventSourceList(v *[]types.PartnerEventSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5206,18 +5212,20 @@ func awsAwsjson11_deserializeDocumentPartnerEventSourceList(v *[]*types.PartnerE return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PartnerEventSource + var cv []types.PartnerEventSource if *v == nil { - cv = []*types.PartnerEventSource{} + cv = []types.PartnerEventSource{} } else { cv = *v } for _, value := range shape { - var col *types.PartnerEventSource - if err := awsAwsjson11_deserializeDocumentPartnerEventSource(&col, value); err != nil { + var col types.PartnerEventSource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPartnerEventSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5225,7 +5233,7 @@ func awsAwsjson11_deserializeDocumentPartnerEventSourceList(v *[]*types.PartnerE return nil } -func awsAwsjson11_deserializeDocumentPathParameterList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPathParameterList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5238,21 +5246,21 @@ func awsAwsjson11_deserializeDocumentPathParameterList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PathParameter to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5289,7 +5297,7 @@ func awsAwsjson11_deserializeDocumentPolicyLengthExceededException(v **types.Pol if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5329,7 +5337,7 @@ func awsAwsjson11_deserializeDocumentPutEventsResultEntry(v **types.PutEventsRes if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -5338,7 +5346,7 @@ func awsAwsjson11_deserializeDocumentPutEventsResultEntry(v **types.PutEventsRes if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "EventId": @@ -5347,7 +5355,7 @@ func awsAwsjson11_deserializeDocumentPutEventsResultEntry(v **types.PutEventsRes if !ok { return fmt.Errorf("expected EventId to be of type string, got %T instead", value) } - sv.EventId = &jtv + sv.EventId = ptr.String(jtv) } default: @@ -5359,7 +5367,7 @@ func awsAwsjson11_deserializeDocumentPutEventsResultEntry(v **types.PutEventsRes return nil } -func awsAwsjson11_deserializeDocumentPutEventsResultEntryList(v *[]*types.PutEventsResultEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentPutEventsResultEntryList(v *[]types.PutEventsResultEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5372,18 +5380,20 @@ func awsAwsjson11_deserializeDocumentPutEventsResultEntryList(v *[]*types.PutEve return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PutEventsResultEntry + var cv []types.PutEventsResultEntry if *v == nil { - cv = []*types.PutEventsResultEntry{} + cv = []types.PutEventsResultEntry{} } else { cv = *v } for _, value := range shape { - var col *types.PutEventsResultEntry - if err := awsAwsjson11_deserializeDocumentPutEventsResultEntry(&col, value); err != nil { + var col types.PutEventsResultEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPutEventsResultEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5419,7 +5429,7 @@ func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntry(v **types.PutPa if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -5428,7 +5438,7 @@ func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntry(v **types.PutPa if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "EventId": @@ -5437,7 +5447,7 @@ func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntry(v **types.PutPa if !ok { return fmt.Errorf("expected EventId to be of type string, got %T instead", value) } - sv.EventId = &jtv + sv.EventId = ptr.String(jtv) } default: @@ -5449,7 +5459,7 @@ func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntry(v **types.PutPa return nil } -func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntryList(v *[]*types.PutPartnerEventsResultEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntryList(v *[]types.PutPartnerEventsResultEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5462,18 +5472,20 @@ func awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntryList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PutPartnerEventsResultEntry + var cv []types.PutPartnerEventsResultEntry if *v == nil { - cv = []*types.PutPartnerEventsResultEntry{} + cv = []types.PutPartnerEventsResultEntry{} } else { cv = *v } for _, value := range shape { - var col *types.PutPartnerEventsResultEntry - if err := awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntry(&col, value); err != nil { + var col types.PutPartnerEventsResultEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPutPartnerEventsResultEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5509,7 +5521,7 @@ func awsAwsjson11_deserializeDocumentPutTargetsResultEntry(v **types.PutTargetsR if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -5518,7 +5530,7 @@ func awsAwsjson11_deserializeDocumentPutTargetsResultEntry(v **types.PutTargetsR if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "TargetId": @@ -5527,7 +5539,7 @@ func awsAwsjson11_deserializeDocumentPutTargetsResultEntry(v **types.PutTargetsR if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } default: @@ -5539,7 +5551,7 @@ func awsAwsjson11_deserializeDocumentPutTargetsResultEntry(v **types.PutTargetsR return nil } -func awsAwsjson11_deserializeDocumentPutTargetsResultEntryList(v *[]*types.PutTargetsResultEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentPutTargetsResultEntryList(v *[]types.PutTargetsResultEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5552,18 +5564,20 @@ func awsAwsjson11_deserializeDocumentPutTargetsResultEntryList(v *[]*types.PutTa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PutTargetsResultEntry + var cv []types.PutTargetsResultEntry if *v == nil { - cv = []*types.PutTargetsResultEntry{} + cv = []types.PutTargetsResultEntry{} } else { cv = *v } for _, value := range shape { - var col *types.PutTargetsResultEntry - if err := awsAwsjson11_deserializeDocumentPutTargetsResultEntry(&col, value); err != nil { + var col types.PutTargetsResultEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPutTargetsResultEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5571,7 +5585,7 @@ func awsAwsjson11_deserializeDocumentPutTargetsResultEntryList(v *[]*types.PutTa return nil } -func awsAwsjson11_deserializeDocumentQueryStringParametersMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentQueryStringParametersMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5584,21 +5598,21 @@ func awsAwsjson11_deserializeDocumentQueryStringParametersMap(v *map[string]*str return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected QueryStringValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -5635,7 +5649,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDataParameters(v **types.RedshiftDa if !ok { return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "DbUser": @@ -5644,7 +5658,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDataParameters(v **types.RedshiftDa if !ok { return fmt.Errorf("expected DbUser to be of type string, got %T instead", value) } - sv.DbUser = &jtv + sv.DbUser = ptr.String(jtv) } case "SecretManagerArn": @@ -5653,7 +5667,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDataParameters(v **types.RedshiftDa if !ok { return fmt.Errorf("expected RedshiftSecretManagerArn to be of type string, got %T instead", value) } - sv.SecretManagerArn = &jtv + sv.SecretManagerArn = ptr.String(jtv) } case "Sql": @@ -5662,7 +5676,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDataParameters(v **types.RedshiftDa if !ok { return fmt.Errorf("expected Sql to be of type string, got %T instead", value) } - sv.Sql = &jtv + sv.Sql = ptr.String(jtv) } case "StatementName": @@ -5671,7 +5685,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDataParameters(v **types.RedshiftDa if !ok { return fmt.Errorf("expected StatementName to be of type string, got %T instead", value) } - sv.StatementName = &jtv + sv.StatementName = ptr.String(jtv) } case "WithEvent": @@ -5680,7 +5694,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDataParameters(v **types.RedshiftDa if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.WithEvent = &jtv + sv.WithEvent = jtv } default: @@ -5720,7 +5734,7 @@ func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntry(v **types.RemoveTa if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -5729,7 +5743,7 @@ func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntry(v **types.RemoveTa if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "TargetId": @@ -5738,7 +5752,7 @@ func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntry(v **types.RemoveTa if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } default: @@ -5750,7 +5764,7 @@ func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntry(v **types.RemoveTa return nil } -func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntryList(v *[]*types.RemoveTargetsResultEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntryList(v *[]types.RemoveTargetsResultEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5763,18 +5777,20 @@ func awsAwsjson11_deserializeDocumentRemoveTargetsResultEntryList(v *[]*types.Re return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RemoveTargetsResultEntry + var cv []types.RemoveTargetsResultEntry if *v == nil { - cv = []*types.RemoveTargetsResultEntry{} + cv = []types.RemoveTargetsResultEntry{} } else { cv = *v } for _, value := range shape { - var col *types.RemoveTargetsResultEntry - if err := awsAwsjson11_deserializeDocumentRemoveTargetsResultEntry(&col, value); err != nil { + var col types.RemoveTargetsResultEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRemoveTargetsResultEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5810,7 +5826,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5850,7 +5866,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5947,7 +5963,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Description": @@ -5956,7 +5972,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected RuleDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EventBusName": @@ -5965,7 +5981,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected EventBusName to be of type string, got %T instead", value) } - sv.EventBusName = &jtv + sv.EventBusName = ptr.String(jtv) } case "EventPattern": @@ -5974,7 +5990,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected EventPattern to be of type string, got %T instead", value) } - sv.EventPattern = &jtv + sv.EventPattern = ptr.String(jtv) } case "ManagedBy": @@ -5983,7 +5999,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected ManagedBy to be of type string, got %T instead", value) } - sv.ManagedBy = &jtv + sv.ManagedBy = ptr.String(jtv) } case "Name": @@ -5992,7 +6008,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected RuleName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RoleArn": @@ -6001,7 +6017,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "ScheduleExpression": @@ -6010,7 +6026,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected ScheduleExpression to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } case "State": @@ -6031,7 +6047,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentRuleNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuleNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6044,21 +6060,21 @@ func awsAwsjson11_deserializeDocumentRuleNameList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RuleName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6067,7 +6083,7 @@ func awsAwsjson11_deserializeDocumentRuleNameList(v *[]*string, value interface{ return nil } -func awsAwsjson11_deserializeDocumentRuleResponseList(v *[]*types.Rule, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuleResponseList(v *[]types.Rule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6080,18 +6096,20 @@ func awsAwsjson11_deserializeDocumentRuleResponseList(v *[]*types.Rule, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Rule + var cv []types.Rule if *v == nil { - cv = []*types.Rule{} + cv = []types.Rule{} } else { cv = *v } for _, value := range shape { - var col *types.Rule - if err := awsAwsjson11_deserializeDocumentRule(&col, value); err != nil { + var col types.Rule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6163,7 +6181,7 @@ func awsAwsjson11_deserializeDocumentRunCommandTarget(v **types.RunCommandTarget if !ok { return fmt.Errorf("expected RunCommandTargetKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Values": @@ -6180,7 +6198,7 @@ func awsAwsjson11_deserializeDocumentRunCommandTarget(v **types.RunCommandTarget return nil } -func awsAwsjson11_deserializeDocumentRunCommandTargets(v *[]*types.RunCommandTarget, value interface{}) error { +func awsAwsjson11_deserializeDocumentRunCommandTargets(v *[]types.RunCommandTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6193,18 +6211,20 @@ func awsAwsjson11_deserializeDocumentRunCommandTargets(v *[]*types.RunCommandTar return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RunCommandTarget + var cv []types.RunCommandTarget if *v == nil { - cv = []*types.RunCommandTarget{} + cv = []types.RunCommandTarget{} } else { cv = *v } for _, value := range shape { - var col *types.RunCommandTarget - if err := awsAwsjson11_deserializeDocumentRunCommandTarget(&col, value); err != nil { + var col types.RunCommandTarget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRunCommandTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6212,7 +6232,7 @@ func awsAwsjson11_deserializeDocumentRunCommandTargets(v *[]*types.RunCommandTar return nil } -func awsAwsjson11_deserializeDocumentRunCommandTargetValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRunCommandTargetValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6225,21 +6245,21 @@ func awsAwsjson11_deserializeDocumentRunCommandTargetValues(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RunCommandTargetValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6276,7 +6296,7 @@ func awsAwsjson11_deserializeDocumentSqsParameters(v **types.SqsParameters, valu if !ok { return fmt.Errorf("expected MessageGroupId to be of type string, got %T instead", value) } - sv.MessageGroupId = &jtv + sv.MessageGroupId = ptr.String(jtv) } default: @@ -6288,7 +6308,7 @@ func awsAwsjson11_deserializeDocumentSqsParameters(v **types.SqsParameters, valu return nil } -func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6301,21 +6321,21 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -6352,7 +6372,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -6361,7 +6381,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6373,7 +6393,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6386,18 +6406,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6433,7 +6455,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) if !ok { return fmt.Errorf("expected TargetArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "BatchParameters": @@ -6462,7 +6484,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Input": @@ -6471,7 +6493,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) if !ok { return fmt.Errorf("expected TargetInput to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "InputPath": @@ -6480,7 +6502,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) if !ok { return fmt.Errorf("expected TargetInputPath to be of type string, got %T instead", value) } - sv.InputPath = &jtv + sv.InputPath = ptr.String(jtv) } case "InputTransformer": @@ -6509,7 +6531,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "RunCommandParameters": @@ -6531,7 +6553,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentTargetList(v *[]*types.Target, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetList(v *[]types.Target, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6544,18 +6566,20 @@ func awsAwsjson11_deserializeDocumentTargetList(v *[]*types.Target, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Target + var cv []types.Target if *v == nil { - cv = []*types.Target{} + cv = []types.Target{} } else { cv = *v } for _, value := range shape { - var col *types.Target - if err := awsAwsjson11_deserializeDocumentTarget(&col, value); err != nil { + var col types.Target + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6563,7 +6587,7 @@ func awsAwsjson11_deserializeDocumentTargetList(v *[]*types.Target, value interf return nil } -func awsAwsjson11_deserializeDocumentTransformerPaths(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTransformerPaths(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6576,21 +6600,21 @@ func awsAwsjson11_deserializeDocumentTransformerPaths(v *map[string]*string, val return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TargetInputPath to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -6658,7 +6682,7 @@ func awsAwsjson11_deserializeOpDocumentCreateEventBusOutput(v **CreateEventBusOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EventBusArn = &jtv + sv.EventBusArn = ptr.String(jtv) } default: @@ -6698,7 +6722,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePartnerEventSourceOutput(v **Create if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EventSourceArn = &jtv + sv.EventSourceArn = ptr.String(jtv) } default: @@ -6862,7 +6886,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventBusOutput(v **DescribeEventB if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Name": @@ -6871,7 +6895,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventBusOutput(v **DescribeEventB if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Policy": @@ -6880,7 +6904,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventBusOutput(v **DescribeEventB if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -6920,7 +6944,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventSourceOutput(v **DescribeEve if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedBy": @@ -6929,7 +6953,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventSourceOutput(v **DescribeEve if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "CreationTime": @@ -6964,7 +6988,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventSourceOutput(v **DescribeEve if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -7013,7 +7037,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePartnerEventSourceOutput(v **Desc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Name": @@ -7022,7 +7046,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePartnerEventSourceOutput(v **Desc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7062,7 +7086,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Description": @@ -7071,7 +7095,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected RuleDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EventBusName": @@ -7080,7 +7104,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected EventBusName to be of type string, got %T instead", value) } - sv.EventBusName = &jtv + sv.EventBusName = ptr.String(jtv) } case "EventPattern": @@ -7089,7 +7113,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected EventPattern to be of type string, got %T instead", value) } - sv.EventPattern = &jtv + sv.EventPattern = ptr.String(jtv) } case "ManagedBy": @@ -7098,7 +7122,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected ManagedBy to be of type string, got %T instead", value) } - sv.ManagedBy = &jtv + sv.ManagedBy = ptr.String(jtv) } case "Name": @@ -7107,7 +7131,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected RuleName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RoleArn": @@ -7116,7 +7140,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "ScheduleExpression": @@ -7125,7 +7149,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRuleOutput(v **DescribeRuleOutput if !ok { return fmt.Errorf("expected ScheduleExpression to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } case "State": @@ -7241,7 +7265,7 @@ func awsAwsjson11_deserializeOpDocumentListEventBusesOutput(v **ListEventBusesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7286,7 +7310,7 @@ func awsAwsjson11_deserializeOpDocumentListEventSourcesOutput(v **ListEventSourc if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7326,7 +7350,7 @@ func awsAwsjson11_deserializeOpDocumentListPartnerEventSourceAccountsOutput(v ** if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PartnerEventSourceAccounts": @@ -7371,7 +7395,7 @@ func awsAwsjson11_deserializeOpDocumentListPartnerEventSourcesOutput(v **ListPar if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PartnerEventSources": @@ -7416,7 +7440,7 @@ func awsAwsjson11_deserializeOpDocumentListRuleNamesByTargetOutput(v **ListRuleN if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RuleNames": @@ -7461,7 +7485,7 @@ func awsAwsjson11_deserializeOpDocumentListRulesOutput(v **ListRulesOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Rules": @@ -7542,7 +7566,7 @@ func awsAwsjson11_deserializeOpDocumentListTargetsByRuleOutput(v **ListTargetsBy if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Targets": @@ -7596,7 +7620,7 @@ func awsAwsjson11_deserializeOpDocumentPutEventsOutput(v **PutEventsOutput, valu if err != nil { return err } - sv.FailedEntryCount = ptr.Int32(int32(i64)) + sv.FailedEntryCount = int32(i64) } default: @@ -7645,7 +7669,7 @@ func awsAwsjson11_deserializeOpDocumentPutPartnerEventsOutput(v **PutPartnerEven if err != nil { return err } - sv.FailedEntryCount = ptr.Int32(int32(i64)) + sv.FailedEntryCount = int32(i64) } default: @@ -7716,7 +7740,7 @@ func awsAwsjson11_deserializeOpDocumentPutRuleOutput(v **PutRuleOutput, value in if !ok { return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) } - sv.RuleArn = &jtv + sv.RuleArn = ptr.String(jtv) } default: @@ -7765,7 +7789,7 @@ func awsAwsjson11_deserializeOpDocumentPutTargetsOutput(v **PutTargetsOutput, va if err != nil { return err } - sv.FailedEntryCount = ptr.Int32(int32(i64)) + sv.FailedEntryCount = int32(i64) } default: @@ -7845,7 +7869,7 @@ func awsAwsjson11_deserializeOpDocumentRemoveTargetsOutput(v **RemoveTargetsOutp if err != nil { return err } - sv.FailedEntryCount = ptr.Int32(int32(i64)) + sv.FailedEntryCount = int32(i64) } default: @@ -7916,7 +7940,7 @@ func awsAwsjson11_deserializeOpDocumentTestEventPatternOutput(v **TestEventPatte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Result = &jtv + sv.Result = jtv } default: diff --git a/service/eventbridge/go.mod b/service/eventbridge/go.mod index ba9f95e14da..b2a2e692c57 100644 --- a/service/eventbridge/go.mod +++ b/service/eventbridge/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/eventbridge go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/eventbridge/serializers.go b/service/eventbridge/serializers.go index 33c389733cb..6773da76ea2 100644 --- a/service/eventbridge/serializers.go +++ b/service/eventbridge/serializers.go @@ -1470,9 +1470,9 @@ func awsAwsjson11_serializeDocumentBatchArrayProperties(v *types.BatchArrayPrope object := value.Object() defer object.Close() - if v.Size != nil { + if v.Size != 0 { ok := object.Key("Size") - ok.Integer(*v.Size) + ok.Integer(v.Size) } return nil @@ -1513,9 +1513,9 @@ func awsAwsjson11_serializeDocumentBatchRetryStrategy(v *types.BatchRetryStrateg object := value.Object() defer object.Close() - if v.Attempts != nil { + if v.Attempts != 0 { ok := object.Key("Attempts") - ok.Integer(*v.Attempts) + ok.Integer(v.Attempts) } return nil @@ -1594,32 +1594,24 @@ func awsAwsjson11_serializeDocumentEcsParameters(v *types.EcsParameters, value s return nil } -func awsAwsjson11_serializeDocumentEventResourceList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEventResourceList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentHeaderParametersMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHeaderParametersMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1697,17 +1689,13 @@ func awsAwsjson11_serializeDocumentNetworkConfiguration(v *types.NetworkConfigur return nil } -func awsAwsjson11_serializeDocumentPathParameterList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPathParameterList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1751,17 +1739,13 @@ func awsAwsjson11_serializeDocumentPutEventsRequestEntry(v *types.PutEventsReque return nil } -func awsAwsjson11_serializeDocumentPutEventsRequestEntryList(v []*types.PutEventsRequestEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPutEventsRequestEntryList(v []types.PutEventsRequestEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPutEventsRequestEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPutEventsRequestEntry(&v[i], av); err != nil { return err } } @@ -1802,34 +1786,26 @@ func awsAwsjson11_serializeDocumentPutPartnerEventsRequestEntry(v *types.PutPart return nil } -func awsAwsjson11_serializeDocumentPutPartnerEventsRequestEntryList(v []*types.PutPartnerEventsRequestEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPutPartnerEventsRequestEntryList(v []types.PutPartnerEventsRequestEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPutPartnerEventsRequestEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPutPartnerEventsRequestEntry(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentQueryStringParametersMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentQueryStringParametersMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1863,9 +1839,9 @@ func awsAwsjson11_serializeDocumentRedshiftDataParameters(v *types.RedshiftDataP ok.String(*v.StatementName) } - if v.WithEvent != nil { + if v.WithEvent { ok := object.Key("WithEvent") - ok.Boolean(*v.WithEvent) + ok.Boolean(v.WithEvent) } return nil @@ -1921,34 +1897,26 @@ func awsAwsjson11_serializeDocumentRunCommandTarget(v *types.RunCommandTarget, v return nil } -func awsAwsjson11_serializeDocumentRunCommandTargets(v []*types.RunCommandTarget, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRunCommandTargets(v []types.RunCommandTarget, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRunCommandTarget(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRunCommandTarget(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentRunCommandTargetValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRunCommandTargetValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1965,17 +1933,13 @@ func awsAwsjson11_serializeDocumentSqsParameters(v *types.SqsParameters, value s return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1997,32 +1961,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2131,49 +2087,37 @@ func awsAwsjson11_serializeDocumentTarget(v *types.Target, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentTargetIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTargetList(v []*types.Target, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetList(v []types.Target, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTarget(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTarget(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTransformerPaths(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTransformerPaths(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2281,9 +2225,9 @@ func awsAwsjson11_serializeOpDocumentDeleteRuleInput(v *DeleteRuleInput, value s ok.String(*v.EventBusName) } - if v.Force != nil { + if v.Force { ok := object.Key("Force") - ok.Boolean(*v.Force) + ok.Boolean(v.Force) } if v.Name != nil { @@ -2723,9 +2667,9 @@ func awsAwsjson11_serializeOpDocumentRemoveTargetsInput(v *RemoveTargetsInput, v ok.String(*v.EventBusName) } - if v.Force != nil { + if v.Force { ok := object.Key("Force") - ok.Boolean(*v.Force) + ok.Boolean(v.Force) } if v.Ids != nil { diff --git a/service/eventbridge/types/types.go b/service/eventbridge/types/types.go index f29410ea81a..d82a642efc0 100644 --- a/service/eventbridge/types/types.go +++ b/service/eventbridge/types/types.go @@ -15,7 +15,7 @@ type AwsVpcConfiguration struct { // same VPC. You can specify as many as 16 subnets. // // This member is required. - Subnets []*string + Subnets []string // Specifies whether the task's elastic network interface receives a public IP // address. You can specify ENABLED only when LaunchType in EcsParameters is set to @@ -26,7 +26,7 @@ type AwsVpcConfiguration struct { // must all be in the same VPC. You can specify as many as five security groups. If // you do not specify a security group, the default security group for the VPC is // used. - SecurityGroups []*string + SecurityGroups []string } // The array properties for the submitted job, such as the size of the array. The @@ -37,7 +37,7 @@ type BatchArrayProperties struct { // The size of the array, if this is an array batch job. Valid values are integers // between 2 and 10,000. - Size *int32 + Size int32 } // The custom parameters to be used when the target is an AWS Batch job. @@ -75,7 +75,7 @@ type BatchRetryStrategy struct { // The number of times to attempt to retry, if the job fails. Valid values are // 1–10. - Attempts *int32 + Attempts int32 } // A JSON string which you can use to limit the event bus permissions you are @@ -207,15 +207,15 @@ type HttpParameters struct { // The headers that need to be sent as part of request invoking the API Gateway // REST API. - HeaderParameters map[string]*string + HeaderParameters map[string]string // The path parameter values to be used to populate API Gateway REST API path // wildcards ("*"). - PathParameterValues []*string + PathParameterValues []string // The query string keys/values that need to be sent as part of request invoking // the API Gateway REST API. - QueryStringParameters map[string]*string + QueryStringParameters map[string]string } // Contains the parameters needed for you to provide custom input to a target based @@ -264,7 +264,7 @@ type InputTransformer struct { // target. InputPathsMap is an array key-value pairs, where each value is a valid // JSON path. You can have as many as 10 key-value pairs. You must use JSON dot // notation, not bracket notation. The keys cannot start with "AWS." - InputPathsMap map[string]*string + InputPathsMap map[string]string } // This object enables you to specify a JSON path to extract from the event and use @@ -340,7 +340,7 @@ type PutEventsRequestEntry struct { // AWS resources, identified by Amazon Resource Name (ARN), which the event // primarily concerns. Any number, including zero, may be present. - Resources []*string + Resources []string // The source of the event. Source *string @@ -376,7 +376,7 @@ type PutPartnerEventsRequestEntry struct { // AWS resources, identified by Amazon Resource Name (ARN), which the event // primarily concerns. Any number, including zero, may be present. - Resources []*string + Resources []string // The event source that is generating the evntry. Source *string @@ -441,7 +441,7 @@ type RedshiftDataParameters struct { // Indicates whether to send an event back to EventBridge after the SQL statement // runs. - WithEvent *bool + WithEvent bool } // Represents a target that failed to be removed from a rule. @@ -513,7 +513,7 @@ type RunCommandParameters struct { // either an array of InstanceIds or a tag. // // This member is required. - RunCommandTargets []*RunCommandTarget + RunCommandTargets []RunCommandTarget } // Information about the EC2 instances that are to be sent the command, specified @@ -530,7 +530,7 @@ type RunCommandTarget struct { // Values is a list of Amazon EC2 instance IDs. // // This member is required. - Values []*string + Values []string } // This structure includes the custom parameter to be used when the target is an diff --git a/service/eventbridge/validators.go b/service/eventbridge/validators.go index 9b54422bf4f..9ff2460e8c0 100644 --- a/service/eventbridge/validators.go +++ b/service/eventbridge/validators.go @@ -834,13 +834,13 @@ func validateRunCommandTarget(v *types.RunCommandTarget) error { } } -func validateRunCommandTargets(v []*types.RunCommandTarget) error { +func validateRunCommandTargets(v []types.RunCommandTarget) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RunCommandTargets"} for i := range v { - if err := validateRunCommandTarget(v[i]); err != nil { + if err := validateRunCommandTarget(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -869,13 +869,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -934,13 +934,13 @@ func validateTarget(v *types.Target) error { } } -func validateTargetList(v []*types.Target) error { +func validateTargetList(v []types.Target) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TargetList"} for i := range v { - if err := validateTarget(v[i]); err != nil { + if err := validateTarget(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/firehose/api_op_CreateDeliveryStream.go b/service/firehose/api_op_CreateDeliveryStream.go index c8d2e7ea73e..3ea7d679c73 100644 --- a/service/firehose/api_op_CreateDeliveryStream.go +++ b/service/firehose/api_op_CreateDeliveryStream.go @@ -140,7 +140,7 @@ type CreateDeliveryStreamInput struct { // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) // in the AWS Billing and Cost Management User Guide. You can specify up to 50 tags // when creating a delivery stream. - Tags []*types.Tag + Tags []types.Tag } type CreateDeliveryStreamOutput struct { diff --git a/service/firehose/api_op_ListDeliveryStreams.go b/service/firehose/api_op_ListDeliveryStreams.go index edc677f4895..cb1bcf27641 100644 --- a/service/firehose/api_op_ListDeliveryStreams.go +++ b/service/firehose/api_op_ListDeliveryStreams.go @@ -63,7 +63,7 @@ type ListDeliveryStreamsOutput struct { // The names of the delivery streams. // // This member is required. - DeliveryStreamNames []*string + DeliveryStreamNames []string // Indicates whether there are more delivery streams available to list. // diff --git a/service/firehose/api_op_ListTagsForDeliveryStream.go b/service/firehose/api_op_ListTagsForDeliveryStream.go index e13cc9ab35e..77dd5023a5e 100644 --- a/service/firehose/api_op_ListTagsForDeliveryStream.go +++ b/service/firehose/api_op_ListTagsForDeliveryStream.go @@ -60,7 +60,7 @@ type ListTagsForDeliveryStreamOutput struct { // after ExclusiveStartTagKey and up to the specified Limit. // // This member is required. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/firehose/api_op_PutRecordBatch.go b/service/firehose/api_op_PutRecordBatch.go index c24016f26ca..f9a42ece8ed 100644 --- a/service/firehose/api_op_PutRecordBatch.go +++ b/service/firehose/api_op_PutRecordBatch.go @@ -82,7 +82,7 @@ type PutRecordBatchInput struct { // One or more records. // // This member is required. - Records []*types.Record + Records []types.Record } type PutRecordBatchOutput struct { @@ -98,7 +98,7 @@ type PutRecordBatchOutput struct { // same as the index used in the request array. // // This member is required. - RequestResponses []*types.PutRecordBatchResponseEntry + RequestResponses []types.PutRecordBatchResponseEntry // Indicates whether server-side encryption (SSE) was enabled during this // operation. diff --git a/service/firehose/api_op_TagDeliveryStream.go b/service/firehose/api_op_TagDeliveryStream.go index 554c6f8eecc..3a2799aebcb 100644 --- a/service/firehose/api_op_TagDeliveryStream.go +++ b/service/firehose/api_op_TagDeliveryStream.go @@ -46,7 +46,7 @@ type TagDeliveryStreamInput struct { // A set of key-value pairs to use to create the tags. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagDeliveryStreamOutput struct { diff --git a/service/firehose/api_op_UntagDeliveryStream.go b/service/firehose/api_op_UntagDeliveryStream.go index 895aba9a1a9..48d0b855785 100644 --- a/service/firehose/api_op_UntagDeliveryStream.go +++ b/service/firehose/api_op_UntagDeliveryStream.go @@ -39,7 +39,7 @@ type UntagDeliveryStreamInput struct { // A list of tag keys. Each corresponding tag is removed from the delivery stream. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagDeliveryStreamOutput struct { diff --git a/service/firehose/deserializers.go b/service/firehose/deserializers.go index 0693aeed75f..ed826b8d8ba 100644 --- a/service/firehose/deserializers.go +++ b/service/firehose/deserializers.go @@ -1762,7 +1762,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptions(v **types.CloudWat if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } case "LogGroupName": @@ -1771,7 +1771,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptions(v **types.CloudWat if !ok { return fmt.Errorf("expected LogGroupName to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } case "LogStreamName": @@ -1780,7 +1780,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptions(v **types.CloudWat if !ok { return fmt.Errorf("expected LogStreamName to be of type string, got %T instead", value) } - sv.LogStreamName = &jtv + sv.LogStreamName = ptr.String(jtv) } default: @@ -1792,7 +1792,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptions(v **types.CloudWat return nil } -func awsAwsjson11_deserializeDocumentColumnToJsonKeyMappings(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentColumnToJsonKeyMappings(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1805,21 +1805,21 @@ func awsAwsjson11_deserializeDocumentColumnToJsonKeyMappings(v *map[string]*stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -1856,7 +1856,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1896,7 +1896,7 @@ func awsAwsjson11_deserializeDocumentCopyCommand(v **types.CopyCommand, value in if !ok { return fmt.Errorf("expected CopyOptions to be of type string, got %T instead", value) } - sv.CopyOptions = &jtv + sv.CopyOptions = ptr.String(jtv) } case "DataTableColumns": @@ -1905,7 +1905,7 @@ func awsAwsjson11_deserializeDocumentCopyCommand(v **types.CopyCommand, value in if !ok { return fmt.Errorf("expected DataTableColumns to be of type string, got %T instead", value) } - sv.DataTableColumns = &jtv + sv.DataTableColumns = ptr.String(jtv) } case "DataTableName": @@ -1914,7 +1914,7 @@ func awsAwsjson11_deserializeDocumentCopyCommand(v **types.CopyCommand, value in if !ok { return fmt.Errorf("expected DataTableName to be of type string, got %T instead", value) } - sv.DataTableName = &jtv + sv.DataTableName = ptr.String(jtv) } default: @@ -1954,7 +1954,7 @@ func awsAwsjson11_deserializeDocumentDataFormatConversionConfiguration(v **types if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } case "InputFormatConfiguration": @@ -2022,7 +2022,7 @@ func awsAwsjson11_deserializeDocumentDeliveryStreamDescription(v **types.Deliver if !ok { return fmt.Errorf("expected DeliveryStreamARN to be of type string, got %T instead", value) } - sv.DeliveryStreamARN = &jtv + sv.DeliveryStreamARN = ptr.String(jtv) } case "DeliveryStreamEncryptionConfiguration": @@ -2036,7 +2036,7 @@ func awsAwsjson11_deserializeDocumentDeliveryStreamDescription(v **types.Deliver if !ok { return fmt.Errorf("expected DeliveryStreamName to be of type string, got %T instead", value) } - sv.DeliveryStreamName = &jtv + sv.DeliveryStreamName = ptr.String(jtv) } case "DeliveryStreamStatus": @@ -2073,7 +2073,7 @@ func awsAwsjson11_deserializeDocumentDeliveryStreamDescription(v **types.Deliver if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.HasMoreDestinations = &jtv + sv.HasMoreDestinations = ptr.Bool(jtv) } case "LastUpdateTimestamp": @@ -2100,7 +2100,7 @@ func awsAwsjson11_deserializeDocumentDeliveryStreamDescription(v **types.Deliver if !ok { return fmt.Errorf("expected DeliveryStreamVersionId to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -2145,7 +2145,7 @@ func awsAwsjson11_deserializeDocumentDeliveryStreamEncryptionConfiguration(v **t if !ok { return fmt.Errorf("expected AWSKMSKeyARN to be of type string, got %T instead", value) } - sv.KeyARN = &jtv + sv.KeyARN = ptr.String(jtv) } case "KeyType": @@ -2175,7 +2175,7 @@ func awsAwsjson11_deserializeDocumentDeliveryStreamEncryptionConfiguration(v **t return nil } -func awsAwsjson11_deserializeDocumentDeliveryStreamNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeliveryStreamNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2188,21 +2188,21 @@ func awsAwsjson11_deserializeDocumentDeliveryStreamNameList(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DeliveryStreamName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2280,7 +2280,7 @@ func awsAwsjson11_deserializeDocumentDestinationDescription(v **types.Destinatio if !ok { return fmt.Errorf("expected DestinationId to be of type string, got %T instead", value) } - sv.DestinationId = &jtv + sv.DestinationId = ptr.String(jtv) } case "ElasticsearchDestinationDescription": @@ -2322,7 +2322,7 @@ func awsAwsjson11_deserializeDocumentDestinationDescription(v **types.Destinatio return nil } -func awsAwsjson11_deserializeDocumentDestinationDescriptionList(v *[]*types.DestinationDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentDestinationDescriptionList(v *[]types.DestinationDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2335,18 +2335,20 @@ func awsAwsjson11_deserializeDocumentDestinationDescriptionList(v *[]*types.Dest return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DestinationDescription + var cv []types.DestinationDescription if *v == nil { - cv = []*types.DestinationDescription{} + cv = []types.DestinationDescription{} } else { cv = *v } for _, value := range shape { - var col *types.DestinationDescription - if err := awsAwsjson11_deserializeDocumentDestinationDescription(&col, value); err != nil { + var col types.DestinationDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDestinationDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2449,7 +2451,7 @@ func awsAwsjson11_deserializeDocumentElasticsearchDestinationDescription(v **typ if !ok { return fmt.Errorf("expected ElasticsearchClusterEndpoint to be of type string, got %T instead", value) } - sv.ClusterEndpoint = &jtv + sv.ClusterEndpoint = ptr.String(jtv) } case "DomainARN": @@ -2458,7 +2460,7 @@ func awsAwsjson11_deserializeDocumentElasticsearchDestinationDescription(v **typ if !ok { return fmt.Errorf("expected ElasticsearchDomainARN to be of type string, got %T instead", value) } - sv.DomainARN = &jtv + sv.DomainARN = ptr.String(jtv) } case "IndexName": @@ -2467,7 +2469,7 @@ func awsAwsjson11_deserializeDocumentElasticsearchDestinationDescription(v **typ if !ok { return fmt.Errorf("expected ElasticsearchIndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "IndexRotationPeriod": @@ -2495,7 +2497,7 @@ func awsAwsjson11_deserializeDocumentElasticsearchDestinationDescription(v **typ if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } case "S3BackupMode": @@ -2518,7 +2520,7 @@ func awsAwsjson11_deserializeDocumentElasticsearchDestinationDescription(v **typ if !ok { return fmt.Errorf("expected ElasticsearchTypeName to be of type string, got %T instead", value) } - sv.TypeName = &jtv + sv.TypeName = ptr.String(jtv) } case "VpcConfigurationDescription": @@ -2652,7 +2654,7 @@ func awsAwsjson11_deserializeDocumentExtendedS3DestinationDescription(v **types. if !ok { return fmt.Errorf("expected BucketARN to be of type string, got %T instead", value) } - sv.BucketARN = &jtv + sv.BucketARN = ptr.String(jtv) } case "BufferingHints": @@ -2690,7 +2692,7 @@ func awsAwsjson11_deserializeDocumentExtendedS3DestinationDescription(v **types. if !ok { return fmt.Errorf("expected ErrorOutputPrefix to be of type string, got %T instead", value) } - sv.ErrorOutputPrefix = &jtv + sv.ErrorOutputPrefix = ptr.String(jtv) } case "Prefix": @@ -2699,7 +2701,7 @@ func awsAwsjson11_deserializeDocumentExtendedS3DestinationDescription(v **types. if !ok { return fmt.Errorf("expected Prefix to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } case "ProcessingConfiguration": @@ -2713,7 +2715,7 @@ func awsAwsjson11_deserializeDocumentExtendedS3DestinationDescription(v **types. if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } case "S3BackupDescription": @@ -2767,7 +2769,7 @@ func awsAwsjson11_deserializeDocumentFailureDescription(v **types.FailureDescrip if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "Type": @@ -2909,7 +2911,7 @@ func awsAwsjson11_deserializeDocumentHttpEndpointCommonAttribute(v **types.HttpE if !ok { return fmt.Errorf("expected HttpEndpointAttributeName to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "AttributeValue": @@ -2918,7 +2920,7 @@ func awsAwsjson11_deserializeDocumentHttpEndpointCommonAttribute(v **types.HttpE if !ok { return fmt.Errorf("expected HttpEndpointAttributeValue to be of type string, got %T instead", value) } - sv.AttributeValue = &jtv + sv.AttributeValue = ptr.String(jtv) } default: @@ -2930,7 +2932,7 @@ func awsAwsjson11_deserializeDocumentHttpEndpointCommonAttribute(v **types.HttpE return nil } -func awsAwsjson11_deserializeDocumentHttpEndpointCommonAttributesList(v *[]*types.HttpEndpointCommonAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentHttpEndpointCommonAttributesList(v *[]types.HttpEndpointCommonAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2943,18 +2945,20 @@ func awsAwsjson11_deserializeDocumentHttpEndpointCommonAttributesList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HttpEndpointCommonAttribute + var cv []types.HttpEndpointCommonAttribute if *v == nil { - cv = []*types.HttpEndpointCommonAttribute{} + cv = []types.HttpEndpointCommonAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.HttpEndpointCommonAttribute - if err := awsAwsjson11_deserializeDocumentHttpEndpointCommonAttribute(&col, value); err != nil { + var col types.HttpEndpointCommonAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHttpEndpointCommonAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2990,7 +2994,7 @@ func awsAwsjson11_deserializeDocumentHttpEndpointDescription(v **types.HttpEndpo if !ok { return fmt.Errorf("expected HttpEndpointName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Url": @@ -2999,7 +3003,7 @@ func awsAwsjson11_deserializeDocumentHttpEndpointDescription(v **types.HttpEndpo if !ok { return fmt.Errorf("expected HttpEndpointUrl to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -3069,7 +3073,7 @@ func awsAwsjson11_deserializeDocumentHttpEndpointDestinationDescription(v **type if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } case "S3BackupMode": @@ -3248,7 +3252,7 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3288,7 +3292,7 @@ func awsAwsjson11_deserializeDocumentInvalidKMSResourceException(v **types.Inval if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -3297,7 +3301,7 @@ func awsAwsjson11_deserializeDocumentInvalidKMSResourceException(v **types.Inval if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3350,7 +3354,7 @@ func awsAwsjson11_deserializeDocumentKinesisStreamSourceDescription(v **types.Ki if !ok { return fmt.Errorf("expected KinesisStreamARN to be of type string, got %T instead", value) } - sv.KinesisStreamARN = &jtv + sv.KinesisStreamARN = ptr.String(jtv) } case "RoleARN": @@ -3359,7 +3363,7 @@ func awsAwsjson11_deserializeDocumentKinesisStreamSourceDescription(v **types.Ki if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -3399,7 +3403,7 @@ func awsAwsjson11_deserializeDocumentKMSEncryptionConfig(v **types.KMSEncryption if !ok { return fmt.Errorf("expected AWSKMSKeyARN to be of type string, got %T instead", value) } - sv.AWSKMSKeyARN = &jtv + sv.AWSKMSKeyARN = ptr.String(jtv) } default: @@ -3439,7 +3443,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3451,7 +3455,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson11_deserializeDocumentListOfNonEmptyStrings(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfNonEmptyStrings(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3464,21 +3468,21 @@ func awsAwsjson11_deserializeDocumentListOfNonEmptyStrings(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3487,7 +3491,7 @@ func awsAwsjson11_deserializeDocumentListOfNonEmptyStrings(v *[]*string, value i return nil } -func awsAwsjson11_deserializeDocumentListOfNonEmptyStringsWithoutWhitespace(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfNonEmptyStringsWithoutWhitespace(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3500,21 +3504,21 @@ func awsAwsjson11_deserializeDocumentListOfNonEmptyStringsWithoutWhitespace(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyStringWithoutWhitespace to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3523,7 +3527,7 @@ func awsAwsjson11_deserializeDocumentListOfNonEmptyStringsWithoutWhitespace(v *[ return nil } -func awsAwsjson11_deserializeDocumentListTagsForDeliveryStreamOutputTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentListTagsForDeliveryStreamOutputTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3536,18 +3540,20 @@ func awsAwsjson11_deserializeDocumentListTagsForDeliveryStreamOutputTagList(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3583,7 +3589,7 @@ func awsAwsjson11_deserializeDocumentOpenXJsonSerDe(v **types.OpenXJsonSerDe, va if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.CaseInsensitive = &jtv + sv.CaseInsensitive = ptr.Bool(jtv) } case "ColumnToJsonKeyMappings": @@ -3597,7 +3603,7 @@ func awsAwsjson11_deserializeDocumentOpenXJsonSerDe(v **types.OpenXJsonSerDe, va if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.ConvertDotsInJsonKeysToUnderscores = &jtv + sv.ConvertDotsInJsonKeysToUnderscores = ptr.Bool(jtv) } default: @@ -3659,7 +3665,7 @@ func awsAwsjson11_deserializeDocumentOrcSerDe(v **types.OrcSerDe, value interfac if err != nil { return err } - sv.BloomFilterFalsePositiveProbability = &f64 + sv.BloomFilterFalsePositiveProbability = ptr.Float64(f64) } case "Compression": @@ -3681,7 +3687,7 @@ func awsAwsjson11_deserializeDocumentOrcSerDe(v **types.OrcSerDe, value interfac if err != nil { return err } - sv.DictionaryKeyThreshold = &f64 + sv.DictionaryKeyThreshold = ptr.Float64(f64) } case "EnablePadding": @@ -3690,7 +3696,7 @@ func awsAwsjson11_deserializeDocumentOrcSerDe(v **types.OrcSerDe, value interfac if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.EnablePadding = &jtv + sv.EnablePadding = ptr.Bool(jtv) } case "FormatVersion": @@ -3712,7 +3718,7 @@ func awsAwsjson11_deserializeDocumentOrcSerDe(v **types.OrcSerDe, value interfac if err != nil { return err } - sv.PaddingTolerance = &f64 + sv.PaddingTolerance = ptr.Float64(f64) } case "RowIndexStride": @@ -3836,7 +3842,7 @@ func awsAwsjson11_deserializeDocumentParquetSerDe(v **types.ParquetSerDe, value if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.EnableDictionaryCompression = &jtv + sv.EnableDictionaryCompression = ptr.Bool(jtv) } case "MaxPaddingBytes": @@ -3911,7 +3917,7 @@ func awsAwsjson11_deserializeDocumentProcessingConfiguration(v **types.Processin if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } case "Processors": @@ -3973,7 +3979,7 @@ func awsAwsjson11_deserializeDocumentProcessor(v **types.Processor, value interf return nil } -func awsAwsjson11_deserializeDocumentProcessorList(v *[]*types.Processor, value interface{}) error { +func awsAwsjson11_deserializeDocumentProcessorList(v *[]types.Processor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3986,18 +3992,20 @@ func awsAwsjson11_deserializeDocumentProcessorList(v *[]*types.Processor, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Processor + var cv []types.Processor if *v == nil { - cv = []*types.Processor{} + cv = []types.Processor{} } else { cv = *v } for _, value := range shape { - var col *types.Processor - if err := awsAwsjson11_deserializeDocumentProcessor(&col, value); err != nil { + var col types.Processor + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProcessor(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4042,7 +4050,7 @@ func awsAwsjson11_deserializeDocumentProcessorParameter(v **types.ProcessorParam if !ok { return fmt.Errorf("expected ProcessorParameterValue to be of type string, got %T instead", value) } - sv.ParameterValue = &jtv + sv.ParameterValue = ptr.String(jtv) } default: @@ -4054,7 +4062,7 @@ func awsAwsjson11_deserializeDocumentProcessorParameter(v **types.ProcessorParam return nil } -func awsAwsjson11_deserializeDocumentProcessorParameterList(v *[]*types.ProcessorParameter, value interface{}) error { +func awsAwsjson11_deserializeDocumentProcessorParameterList(v *[]types.ProcessorParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4067,18 +4075,20 @@ func awsAwsjson11_deserializeDocumentProcessorParameterList(v *[]*types.Processo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProcessorParameter + var cv []types.ProcessorParameter if *v == nil { - cv = []*types.ProcessorParameter{} + cv = []types.ProcessorParameter{} } else { cv = *v } for _, value := range shape { - var col *types.ProcessorParameter - if err := awsAwsjson11_deserializeDocumentProcessorParameter(&col, value); err != nil { + var col types.ProcessorParameter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProcessorParameter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4114,7 +4124,7 @@ func awsAwsjson11_deserializeDocumentPutRecordBatchResponseEntry(v **types.PutRe if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -4123,7 +4133,7 @@ func awsAwsjson11_deserializeDocumentPutRecordBatchResponseEntry(v **types.PutRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "RecordId": @@ -4132,7 +4142,7 @@ func awsAwsjson11_deserializeDocumentPutRecordBatchResponseEntry(v **types.PutRe if !ok { return fmt.Errorf("expected PutResponseRecordId to be of type string, got %T instead", value) } - sv.RecordId = &jtv + sv.RecordId = ptr.String(jtv) } default: @@ -4144,7 +4154,7 @@ func awsAwsjson11_deserializeDocumentPutRecordBatchResponseEntry(v **types.PutRe return nil } -func awsAwsjson11_deserializeDocumentPutRecordBatchResponseEntryList(v *[]*types.PutRecordBatchResponseEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentPutRecordBatchResponseEntryList(v *[]types.PutRecordBatchResponseEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4157,18 +4167,20 @@ func awsAwsjson11_deserializeDocumentPutRecordBatchResponseEntryList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PutRecordBatchResponseEntry + var cv []types.PutRecordBatchResponseEntry if *v == nil { - cv = []*types.PutRecordBatchResponseEntry{} + cv = []types.PutRecordBatchResponseEntry{} } else { cv = *v } for _, value := range shape { - var col *types.PutRecordBatchResponseEntry - if err := awsAwsjson11_deserializeDocumentPutRecordBatchResponseEntry(&col, value); err != nil { + var col types.PutRecordBatchResponseEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPutRecordBatchResponseEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4209,7 +4221,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDestinationDescription(v **types.Re if !ok { return fmt.Errorf("expected ClusterJDBCURL to be of type string, got %T instead", value) } - sv.ClusterJDBCURL = &jtv + sv.ClusterJDBCURL = ptr.String(jtv) } case "CopyCommand": @@ -4233,7 +4245,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDestinationDescription(v **types.Re if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } case "S3BackupDescription": @@ -4261,7 +4273,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDestinationDescription(v **types.Re if !ok { return fmt.Errorf("expected Username to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -4345,7 +4357,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4385,7 +4397,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4425,7 +4437,7 @@ func awsAwsjson11_deserializeDocumentS3DestinationDescription(v **types.S3Destin if !ok { return fmt.Errorf("expected BucketARN to be of type string, got %T instead", value) } - sv.BucketARN = &jtv + sv.BucketARN = ptr.String(jtv) } case "BufferingHints": @@ -4458,7 +4470,7 @@ func awsAwsjson11_deserializeDocumentS3DestinationDescription(v **types.S3Destin if !ok { return fmt.Errorf("expected ErrorOutputPrefix to be of type string, got %T instead", value) } - sv.ErrorOutputPrefix = &jtv + sv.ErrorOutputPrefix = ptr.String(jtv) } case "Prefix": @@ -4467,7 +4479,7 @@ func awsAwsjson11_deserializeDocumentS3DestinationDescription(v **types.S3Destin if !ok { return fmt.Errorf("expected Prefix to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } case "RoleARN": @@ -4476,7 +4488,7 @@ func awsAwsjson11_deserializeDocumentS3DestinationDescription(v **types.S3Destin if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -4516,7 +4528,7 @@ func awsAwsjson11_deserializeDocumentSchemaConfiguration(v **types.SchemaConfigu if !ok { return fmt.Errorf("expected NonEmptyStringWithoutWhitespace to be of type string, got %T instead", value) } - sv.CatalogId = &jtv + sv.CatalogId = ptr.String(jtv) } case "DatabaseName": @@ -4525,7 +4537,7 @@ func awsAwsjson11_deserializeDocumentSchemaConfiguration(v **types.SchemaConfigu if !ok { return fmt.Errorf("expected NonEmptyStringWithoutWhitespace to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "Region": @@ -4534,7 +4546,7 @@ func awsAwsjson11_deserializeDocumentSchemaConfiguration(v **types.SchemaConfigu if !ok { return fmt.Errorf("expected NonEmptyStringWithoutWhitespace to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "RoleARN": @@ -4543,7 +4555,7 @@ func awsAwsjson11_deserializeDocumentSchemaConfiguration(v **types.SchemaConfigu if !ok { return fmt.Errorf("expected NonEmptyStringWithoutWhitespace to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } case "TableName": @@ -4552,7 +4564,7 @@ func awsAwsjson11_deserializeDocumentSchemaConfiguration(v **types.SchemaConfigu if !ok { return fmt.Errorf("expected NonEmptyStringWithoutWhitespace to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "VersionId": @@ -4561,7 +4573,7 @@ func awsAwsjson11_deserializeDocumentSchemaConfiguration(v **types.SchemaConfigu if !ok { return fmt.Errorf("expected NonEmptyStringWithoutWhitespace to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -4573,7 +4585,7 @@ func awsAwsjson11_deserializeDocumentSchemaConfiguration(v **types.SchemaConfigu return nil } -func awsAwsjson11_deserializeDocumentSecurityGroupIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityGroupIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4586,21 +4598,21 @@ func awsAwsjson11_deserializeDocumentSecurityGroupIdList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyStringWithoutWhitespace to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4678,7 +4690,7 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4772,7 +4784,7 @@ func awsAwsjson11_deserializeDocumentSplunkDestinationDescription(v **types.Splu if !ok { return fmt.Errorf("expected HECEndpoint to be of type string, got %T instead", value) } - sv.HECEndpoint = &jtv + sv.HECEndpoint = ptr.String(jtv) } case "HECEndpointType": @@ -4790,7 +4802,7 @@ func awsAwsjson11_deserializeDocumentSplunkDestinationDescription(v **types.Splu if !ok { return fmt.Errorf("expected HECToken to be of type string, got %T instead", value) } - sv.HECToken = &jtv + sv.HECToken = ptr.String(jtv) } case "ProcessingConfiguration": @@ -4870,7 +4882,7 @@ func awsAwsjson11_deserializeDocumentSplunkRetryOptions(v **types.SplunkRetryOpt return nil } -func awsAwsjson11_deserializeDocumentSubnetIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnetIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4883,21 +4895,21 @@ func awsAwsjson11_deserializeDocumentSubnetIdList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyStringWithoutWhitespace to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4934,7 +4946,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -4943,7 +4955,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4983,7 +4995,7 @@ func awsAwsjson11_deserializeDocumentVpcConfigurationDescription(v **types.VpcCo if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } case "SecurityGroupIds": @@ -5002,7 +5014,7 @@ func awsAwsjson11_deserializeDocumentVpcConfigurationDescription(v **types.VpcCo if !ok { return fmt.Errorf("expected NonEmptyStringWithoutWhitespace to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -5042,7 +5054,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDeliveryStreamOutput(v **CreateDeli if !ok { return fmt.Errorf("expected DeliveryStreamARN to be of type string, got %T instead", value) } - sv.DeliveryStreamARN = &jtv + sv.DeliveryStreamARN = ptr.String(jtv) } default: @@ -5154,7 +5166,7 @@ func awsAwsjson11_deserializeOpDocumentListDeliveryStreamsOutput(v **ListDeliver if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.HasMoreDeliveryStreams = &jtv + sv.HasMoreDeliveryStreams = ptr.Bool(jtv) } default: @@ -5194,7 +5206,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForDeliveryStreamOutput(v **ListT if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.HasMoreTags = &jtv + sv.HasMoreTags = ptr.Bool(jtv) } case "Tags": @@ -5239,7 +5251,7 @@ func awsAwsjson11_deserializeOpDocumentPutRecordBatchOutput(v **PutRecordBatchOu if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = ptr.Bool(jtv) } case "FailedPutCount": @@ -5297,7 +5309,7 @@ func awsAwsjson11_deserializeOpDocumentPutRecordOutput(v **PutRecordOutput, valu if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = ptr.Bool(jtv) } case "RecordId": @@ -5306,7 +5318,7 @@ func awsAwsjson11_deserializeOpDocumentPutRecordOutput(v **PutRecordOutput, valu if !ok { return fmt.Errorf("expected PutResponseRecordId to be of type string, got %T instead", value) } - sv.RecordId = &jtv + sv.RecordId = ptr.String(jtv) } default: diff --git a/service/firehose/go.mod b/service/firehose/go.mod index 96cd9961ec3..60d5248dc14 100644 --- a/service/firehose/go.mod +++ b/service/firehose/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/firehose go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/firehose/serializers.go b/service/firehose/serializers.go index eb80b412272..ecf14ac89c3 100644 --- a/service/firehose/serializers.go +++ b/service/firehose/serializers.go @@ -604,17 +604,13 @@ func awsAwsjson11_serializeDocumentCloudWatchLoggingOptions(v *types.CloudWatchL return nil } -func awsAwsjson11_serializeDocumentColumnToJsonKeyMappings(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentColumnToJsonKeyMappings(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1122,17 +1118,13 @@ func awsAwsjson11_serializeDocumentHttpEndpointCommonAttribute(v *types.HttpEndp return nil } -func awsAwsjson11_serializeDocumentHttpEndpointCommonAttributesList(v []*types.HttpEndpointCommonAttribute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHttpEndpointCommonAttributesList(v []types.HttpEndpointCommonAttribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentHttpEndpointCommonAttribute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentHttpEndpointCommonAttribute(&v[i], av); err != nil { return err } } @@ -1367,32 +1359,24 @@ func awsAwsjson11_serializeDocumentKMSEncryptionConfig(v *types.KMSEncryptionCon return nil } -func awsAwsjson11_serializeDocumentListOfNonEmptyStrings(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentListOfNonEmptyStrings(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentListOfNonEmptyStringsWithoutWhitespace(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentListOfNonEmptyStringsWithoutWhitespace(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1569,17 +1553,13 @@ func awsAwsjson11_serializeDocumentProcessor(v *types.Processor, value smithyjso return nil } -func awsAwsjson11_serializeDocumentProcessorList(v []*types.Processor, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProcessorList(v []types.Processor, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentProcessor(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentProcessor(&v[i], av); err != nil { return err } } @@ -1603,34 +1583,26 @@ func awsAwsjson11_serializeDocumentProcessorParameter(v *types.ProcessorParamete return nil } -func awsAwsjson11_serializeDocumentProcessorParameterList(v []*types.ProcessorParameter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProcessorParameterList(v []types.ProcessorParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentProcessorParameter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentProcessorParameter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentPutRecordBatchRequestEntryList(v []*types.Record, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPutRecordBatchRequestEntryList(v []types.Record, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRecord(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRecord(&v[i], av); err != nil { return err } } @@ -1952,17 +1924,13 @@ func awsAwsjson11_serializeDocumentSchemaConfiguration(v *types.SchemaConfigurat return nil } -func awsAwsjson11_serializeDocumentSecurityGroupIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecurityGroupIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2120,17 +2088,13 @@ func awsAwsjson11_serializeDocumentSplunkRetryOptions(v *types.SplunkRetryOption return nil } -func awsAwsjson11_serializeDocumentSubnetIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnetIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2152,34 +2116,26 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagDeliveryStreamInputTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagDeliveryStreamInputTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/firehose/types/types.go b/service/firehose/types/types.go index f2939882044..a4a8051927c 100644 --- a/service/firehose/types/types.go +++ b/service/firehose/types/types.go @@ -137,7 +137,7 @@ type DeliveryStreamDescription struct { // The destinations. // // This member is required. - Destinations []*DestinationDescription + Destinations []DestinationDescription // Indicates whether there are more destinations available to list. // @@ -723,7 +723,7 @@ type HiveJsonSerDe struct { // You can also use the special value millis to parse timestamps in epoch // milliseconds. If you don't specify a format, Kinesis Data Firehose uses // java.sql.Timestamp::valueOf by default. - TimestampFormats []*string + TimestampFormats []string } // Describes the buffering options that can be applied before data is delivered to @@ -921,7 +921,7 @@ type HttpEndpointDestinationUpdate struct { type HttpEndpointRequestConfiguration struct { // Describes the metadata sent to the HTTP endpoint destination. - CommonAttributes []*HttpEndpointCommonAttribute + CommonAttributes []HttpEndpointCommonAttribute // Kinesis Data Firehose uses the content encoding to compress the body of a // request before sending the request to the destination. For more information, see @@ -1019,7 +1019,7 @@ type OpenXJsonSerDe struct { // is useful when the JSON contains keys that are Hive keywords. For example, // timestamp is a Hive keyword. If you have a JSON key named timestamp, set this // parameter to {"ts": "timestamp"} to map this key to a column named ts. - ColumnToJsonKeyMappings map[string]*string + ColumnToJsonKeyMappings map[string]string // When set to true, specifies that the names of the keys include dots and that you // want Kinesis Data Firehose to replace them with underscores. This is useful @@ -1041,7 +1041,7 @@ type OrcSerDe struct { // The column names for which you want Kinesis Data Firehose to create bloom // filters. The default is null. - BloomFilterColumns []*string + BloomFilterColumns []string // The Bloom filter false positive probability (FPP). The lower the FPP, the bigger // the Bloom filter. The default value is 0.05, the minimum is 0, and the maximum @@ -1137,7 +1137,7 @@ type ProcessingConfiguration struct { Enabled *bool // The data processors. - Processors []*Processor + Processors []Processor } // Describes a data processor. @@ -1149,7 +1149,7 @@ type Processor struct { Type ProcessorType // The processor parameters. - Parameters []*ProcessorParameter + Parameters []ProcessorParameter } // Describes the processor parameter. @@ -1762,7 +1762,7 @@ type VpcConfiguration struct { // in the Amazon VPC documentation. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // The IDs of the subnets that you want Kinesis Data Firehose to use to create ENIs // in the VPC of the Amazon ES destination. Make sure that the routing tables and @@ -1780,7 +1780,7 @@ type VpcConfiguration struct { // in the Amazon VPC Quotas topic. // // This member is required. - SubnetIds []*string + SubnetIds []string } // The details of the VPC of the Amazon ES destination. @@ -1832,7 +1832,7 @@ type VpcConfigurationDescription struct { // in the Amazon VPC documentation. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // The IDs of the subnets that Kinesis Data Firehose uses to create ENIs in the VPC // of the Amazon ES destination. Make sure that the routing tables and inbound and @@ -1850,7 +1850,7 @@ type VpcConfigurationDescription struct { // in the Amazon VPC Quotas topic. // // This member is required. - SubnetIds []*string + SubnetIds []string // The ID of the Amazon ES destination's VPC. // diff --git a/service/firehose/validators.go b/service/firehose/validators.go index 08eb41a6b9f..ff0f25db4de 100644 --- a/service/firehose/validators.go +++ b/service/firehose/validators.go @@ -456,13 +456,13 @@ func validateHttpEndpointCommonAttribute(v *types.HttpEndpointCommonAttribute) e } } -func validateHttpEndpointCommonAttributesList(v []*types.HttpEndpointCommonAttribute) error { +func validateHttpEndpointCommonAttributesList(v []types.HttpEndpointCommonAttribute) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "HttpEndpointCommonAttributesList"} for i := range v { - if err := validateHttpEndpointCommonAttribute(v[i]); err != nil { + if err := validateHttpEndpointCommonAttribute(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -643,13 +643,13 @@ func validateProcessor(v *types.Processor) error { } } -func validateProcessorList(v []*types.Processor) error { +func validateProcessorList(v []types.Processor) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ProcessorList"} for i := range v { - if err := validateProcessor(v[i]); err != nil { + if err := validateProcessor(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -678,13 +678,13 @@ func validateProcessorParameter(v *types.ProcessorParameter) error { } } -func validateProcessorParameterList(v []*types.ProcessorParameter) error { +func validateProcessorParameterList(v []types.ProcessorParameter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ProcessorParameterList"} for i := range v { - if err := validateProcessorParameter(v[i]); err != nil { + if err := validateProcessorParameter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -695,13 +695,13 @@ func validateProcessorParameterList(v []*types.ProcessorParameter) error { } } -func validatePutRecordBatchRequestEntryList(v []*types.Record) error { +func validatePutRecordBatchRequestEntryList(v []types.Record) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PutRecordBatchRequestEntryList"} for i := range v { - if err := validateRecord(v[i]); err != nil { + if err := validateRecord(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -917,13 +917,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagDeliveryStreamInputTagList(v []*types.Tag) error { +func validateTagDeliveryStreamInputTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagDeliveryStreamInputTagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/fms/api_op_DeletePolicy.go b/service/fms/api_op_DeletePolicy.go index ca137577692..2f873feb955 100644 --- a/service/fms/api_op_DeletePolicy.go +++ b/service/fms/api_op_DeletePolicy.go @@ -63,7 +63,7 @@ type DeletePolicyInput struct { // with specific tags are in scope of the policy, those accounts and resources are // handled by the policy. All others are out of scope. If you don't specify tags or // accounts, all resources are in scope. - DeleteAllPolicyResources *bool + DeleteAllPolicyResources bool } type DeletePolicyOutput struct { diff --git a/service/fms/api_op_GetAppsList.go b/service/fms/api_op_GetAppsList.go index 02bd974790a..d63e851c1fe 100644 --- a/service/fms/api_op_GetAppsList.go +++ b/service/fms/api_op_GetAppsList.go @@ -37,7 +37,7 @@ type GetAppsListInput struct { // Specifies whether the list to retrieve is a default list owned by AWS Firewall // Manager. - DefaultList *bool + DefaultList bool } type GetAppsListOutput struct { diff --git a/service/fms/api_op_GetProtocolsList.go b/service/fms/api_op_GetProtocolsList.go index db3bf91d3dd..65ed16e4441 100644 --- a/service/fms/api_op_GetProtocolsList.go +++ b/service/fms/api_op_GetProtocolsList.go @@ -36,7 +36,7 @@ type GetProtocolsListInput struct { // Specifies whether the list to retrieve is a default list owned by AWS Firewall // Manager. - DefaultList *bool + DefaultList bool } type GetProtocolsListOutput struct { diff --git a/service/fms/api_op_ListAppsLists.go b/service/fms/api_op_ListAppsLists.go index c86349db8bf..f971f87b5d1 100644 --- a/service/fms/api_op_ListAppsLists.go +++ b/service/fms/api_op_ListAppsLists.go @@ -40,7 +40,7 @@ type ListAppsListsInput struct { // Specifies whether the lists to retrieve are default lists owned by AWS Firewall // Manager. - DefaultLists *bool + DefaultLists bool // If you specify a value for MaxResults in your list request, and you have more // objects than the maximum, AWS Firewall Manager returns this token in the @@ -52,7 +52,7 @@ type ListAppsListsInput struct { type ListAppsListsOutput struct { // An array of AppsListDataSummary objects. - AppsLists []*types.AppsListDataSummary + AppsLists []types.AppsListDataSummary // If you specify a value for MaxResults in your list request, and you have more // objects than the maximum, AWS Firewall Manager returns this token in the diff --git a/service/fms/api_op_ListComplianceStatus.go b/service/fms/api_op_ListComplianceStatus.go index 3805d6efae9..fede24612cf 100644 --- a/service/fms/api_op_ListComplianceStatus.go +++ b/service/fms/api_op_ListComplianceStatus.go @@ -62,7 +62,7 @@ type ListComplianceStatusOutput struct { NextToken *string // An array of PolicyComplianceStatus objects. - PolicyComplianceStatusList []*types.PolicyComplianceStatus + PolicyComplianceStatusList []types.PolicyComplianceStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/fms/api_op_ListMemberAccounts.go b/service/fms/api_op_ListMemberAccounts.go index 9bc39711e06..71c418c9ae4 100644 --- a/service/fms/api_op_ListMemberAccounts.go +++ b/service/fms/api_op_ListMemberAccounts.go @@ -48,7 +48,7 @@ type ListMemberAccountsInput struct { type ListMemberAccountsOutput struct { // An array of account IDs. - MemberAccounts []*string + MemberAccounts []string // If you have more member account IDs than the number that you specified for // MaxResults in the request, the response includes a NextToken value. To list more diff --git a/service/fms/api_op_ListPolicies.go b/service/fms/api_op_ListPolicies.go index 0cb6db076b1..f240100ec76 100644 --- a/service/fms/api_op_ListPolicies.go +++ b/service/fms/api_op_ListPolicies.go @@ -53,7 +53,7 @@ type ListPoliciesOutput struct { NextToken *string // An array of PolicySummary objects. - PolicyList []*types.PolicySummary + PolicyList []types.PolicySummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/fms/api_op_ListProtocolsLists.go b/service/fms/api_op_ListProtocolsLists.go index 4bd15be343e..a613e5d7c6f 100644 --- a/service/fms/api_op_ListProtocolsLists.go +++ b/service/fms/api_op_ListProtocolsLists.go @@ -40,7 +40,7 @@ type ListProtocolsListsInput struct { // Specifies whether the lists to retrieve are default lists owned by AWS Firewall // Manager. - DefaultLists *bool + DefaultLists bool // If you specify a value for MaxResults in your list request, and you have more // objects than the maximum, AWS Firewall Manager returns this token in the @@ -58,7 +58,7 @@ type ListProtocolsListsOutput struct { NextToken *string // An array of ProtocolsListDataSummary objects. - ProtocolsLists []*types.ProtocolsListDataSummary + ProtocolsLists []types.ProtocolsListDataSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/fms/api_op_ListTagsForResource.go b/service/fms/api_op_ListTagsForResource.go index 639692dd8e0..24af15b5f4a 100644 --- a/service/fms/api_op_ListTagsForResource.go +++ b/service/fms/api_op_ListTagsForResource.go @@ -40,7 +40,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags associated with the resource. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/fms/api_op_PutAppsList.go b/service/fms/api_op_PutAppsList.go index 7d8bc8cffb3..ea52b53e870 100644 --- a/service/fms/api_op_PutAppsList.go +++ b/service/fms/api_op_PutAppsList.go @@ -35,7 +35,7 @@ type PutAppsListInput struct { AppsList *types.AppsListData // The tags associated with the resource. - TagList []*types.Tag + TagList []types.Tag } type PutAppsListOutput struct { diff --git a/service/fms/api_op_PutPolicy.go b/service/fms/api_op_PutPolicy.go index aae1f22174a..b7e44f62c64 100644 --- a/service/fms/api_op_PutPolicy.go +++ b/service/fms/api_op_PutPolicy.go @@ -57,7 +57,7 @@ type PutPolicyInput struct { Policy *types.Policy // The tags to add to the AWS resource. - TagList []*types.Tag + TagList []types.Tag } type PutPolicyOutput struct { diff --git a/service/fms/api_op_PutProtocolsList.go b/service/fms/api_op_PutProtocolsList.go index bf91556c80e..1a5ed65073b 100644 --- a/service/fms/api_op_PutProtocolsList.go +++ b/service/fms/api_op_PutProtocolsList.go @@ -35,7 +35,7 @@ type PutProtocolsListInput struct { ProtocolsList *types.ProtocolsListData // The tags associated with the resource. - TagList []*types.Tag + TagList []types.Tag } type PutProtocolsListOutput struct { diff --git a/service/fms/api_op_TagResource.go b/service/fms/api_op_TagResource.go index c6616e972e0..f5668e94cd3 100644 --- a/service/fms/api_op_TagResource.go +++ b/service/fms/api_op_TagResource.go @@ -39,7 +39,7 @@ type TagResourceInput struct { // The tags to add to the resource. // // This member is required. - TagList []*types.Tag + TagList []types.Tag } type TagResourceOutput struct { diff --git a/service/fms/api_op_UntagResource.go b/service/fms/api_op_UntagResource.go index 3d4dfa6aa2a..1194c06e0ad 100644 --- a/service/fms/api_op_UntagResource.go +++ b/service/fms/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // The keys of the tags to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/fms/deserializers.go b/service/fms/deserializers.go index 8e3f5ee2ad3..3d4e19431e5 100644 --- a/service/fms/deserializers.go +++ b/service/fms/deserializers.go @@ -3341,7 +3341,7 @@ func awsAwsjson11_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.AppName = &jtv + sv.AppName = ptr.String(jtv) } case "Port": @@ -3354,7 +3354,7 @@ func awsAwsjson11_deserializeDocumentApp(v **types.App, value interface{}) error if err != nil { return err } - sv.Port = &i64 + sv.Port = ptr.Int64(i64) } case "Protocol": @@ -3363,7 +3363,7 @@ func awsAwsjson11_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected Protocol to be of type string, got %T instead", value) } - sv.Protocol = &jtv + sv.Protocol = ptr.String(jtv) } default: @@ -3375,7 +3375,7 @@ func awsAwsjson11_deserializeDocumentApp(v **types.App, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentAppsList(v *[]*types.App, value interface{}) error { +func awsAwsjson11_deserializeDocumentAppsList(v *[]types.App, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3388,18 +3388,20 @@ func awsAwsjson11_deserializeDocumentAppsList(v *[]*types.App, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.App + var cv []types.App if *v == nil { - cv = []*types.App{} + cv = []types.App{} } else { cv = *v } for _, value := range shape { - var col *types.App - if err := awsAwsjson11_deserializeDocumentApp(&col, value); err != nil { + var col types.App + destAddr := &col + if err := awsAwsjson11_deserializeDocumentApp(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3466,7 +3468,7 @@ func awsAwsjson11_deserializeDocumentAppsListData(v **types.AppsListData, value if !ok { return fmt.Errorf("expected ListId to be of type string, got %T instead", value) } - sv.ListId = &jtv + sv.ListId = ptr.String(jtv) } case "ListName": @@ -3475,7 +3477,7 @@ func awsAwsjson11_deserializeDocumentAppsListData(v **types.AppsListData, value if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ListName = &jtv + sv.ListName = ptr.String(jtv) } case "ListUpdateToken": @@ -3484,7 +3486,7 @@ func awsAwsjson11_deserializeDocumentAppsListData(v **types.AppsListData, value if !ok { return fmt.Errorf("expected UpdateToken to be of type string, got %T instead", value) } - sv.ListUpdateToken = &jtv + sv.ListUpdateToken = ptr.String(jtv) } case "PreviousAppsList": @@ -3534,7 +3536,7 @@ func awsAwsjson11_deserializeDocumentAppsListDataSummary(v **types.AppsListDataS if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ListArn = &jtv + sv.ListArn = ptr.String(jtv) } case "ListId": @@ -3543,7 +3545,7 @@ func awsAwsjson11_deserializeDocumentAppsListDataSummary(v **types.AppsListDataS if !ok { return fmt.Errorf("expected ListId to be of type string, got %T instead", value) } - sv.ListId = &jtv + sv.ListId = ptr.String(jtv) } case "ListName": @@ -3552,7 +3554,7 @@ func awsAwsjson11_deserializeDocumentAppsListDataSummary(v **types.AppsListDataS if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ListName = &jtv + sv.ListName = ptr.String(jtv) } default: @@ -3564,7 +3566,7 @@ func awsAwsjson11_deserializeDocumentAppsListDataSummary(v **types.AppsListDataS return nil } -func awsAwsjson11_deserializeDocumentAppsListsData(v *[]*types.AppsListDataSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentAppsListsData(v *[]types.AppsListDataSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3577,18 +3579,20 @@ func awsAwsjson11_deserializeDocumentAppsListsData(v *[]*types.AppsListDataSumma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AppsListDataSummary + var cv []types.AppsListDataSummary if *v == nil { - cv = []*types.AppsListDataSummary{} + cv = []types.AppsListDataSummary{} } else { cv = *v } for _, value := range shape { - var col *types.AppsListDataSummary - if err := awsAwsjson11_deserializeDocumentAppsListDataSummary(&col, value); err != nil { + var col types.AppsListDataSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAppsListDataSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3629,7 +3633,7 @@ func awsAwsjson11_deserializeDocumentAwsEc2InstanceViolation(v **types.AwsEc2Ins if !ok { return fmt.Errorf("expected ViolationTarget to be of type string, got %T instead", value) } - sv.ViolationTarget = &jtv + sv.ViolationTarget = ptr.String(jtv) } default: @@ -3674,7 +3678,7 @@ func awsAwsjson11_deserializeDocumentAwsEc2NetworkInterfaceViolation(v **types.A if !ok { return fmt.Errorf("expected ViolationTarget to be of type string, got %T instead", value) } - sv.ViolationTarget = &jtv + sv.ViolationTarget = ptr.String(jtv) } default: @@ -3686,7 +3690,7 @@ func awsAwsjson11_deserializeDocumentAwsEc2NetworkInterfaceViolation(v **types.A return nil } -func awsAwsjson11_deserializeDocumentAwsEc2NetworkInterfaceViolations(v *[]*types.AwsEc2NetworkInterfaceViolation, value interface{}) error { +func awsAwsjson11_deserializeDocumentAwsEc2NetworkInterfaceViolations(v *[]types.AwsEc2NetworkInterfaceViolation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3699,18 +3703,20 @@ func awsAwsjson11_deserializeDocumentAwsEc2NetworkInterfaceViolations(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsEc2NetworkInterfaceViolation + var cv []types.AwsEc2NetworkInterfaceViolation if *v == nil { - cv = []*types.AwsEc2NetworkInterfaceViolation{} + cv = []types.AwsEc2NetworkInterfaceViolation{} } else { cv = *v } for _, value := range shape { - var col *types.AwsEc2NetworkInterfaceViolation - if err := awsAwsjson11_deserializeDocumentAwsEc2NetworkInterfaceViolation(&col, value); err != nil { + var col types.AwsEc2NetworkInterfaceViolation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAwsEc2NetworkInterfaceViolation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3756,7 +3762,7 @@ func awsAwsjson11_deserializeDocumentAwsVPCSecurityGroupViolation(v **types.AwsV if !ok { return fmt.Errorf("expected ViolationTarget to be of type string, got %T instead", value) } - sv.ViolationTarget = &jtv + sv.ViolationTarget = ptr.String(jtv) } case "ViolationTargetDescription": @@ -3765,7 +3771,7 @@ func awsAwsjson11_deserializeDocumentAwsVPCSecurityGroupViolation(v **types.AwsV if !ok { return fmt.Errorf("expected LengthBoundedString to be of type string, got %T instead", value) } - sv.ViolationTargetDescription = &jtv + sv.ViolationTargetDescription = ptr.String(jtv) } default: @@ -3805,7 +3811,7 @@ func awsAwsjson11_deserializeDocumentComplianceViolator(v **types.ComplianceViol if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -3814,7 +3820,7 @@ func awsAwsjson11_deserializeDocumentComplianceViolator(v **types.ComplianceViol if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "ViolationReason": @@ -3835,7 +3841,7 @@ func awsAwsjson11_deserializeDocumentComplianceViolator(v **types.ComplianceViol return nil } -func awsAwsjson11_deserializeDocumentComplianceViolators(v *[]*types.ComplianceViolator, value interface{}) error { +func awsAwsjson11_deserializeDocumentComplianceViolators(v *[]types.ComplianceViolator, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3848,18 +3854,20 @@ func awsAwsjson11_deserializeDocumentComplianceViolators(v *[]*types.ComplianceV return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComplianceViolator + var cv []types.ComplianceViolator if *v == nil { - cv = []*types.ComplianceViolator{} + cv = []types.ComplianceViolator{} } else { cv = *v } for _, value := range shape { - var col *types.ComplianceViolator - if err := awsAwsjson11_deserializeDocumentComplianceViolator(&col, value); err != nil { + var col types.ComplianceViolator + destAddr := &col + if err := awsAwsjson11_deserializeDocumentComplianceViolator(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3867,7 +3875,7 @@ func awsAwsjson11_deserializeDocumentComplianceViolators(v *[]*types.ComplianceV return nil } -func awsAwsjson11_deserializeDocumentCustomerPolicyScopeIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCustomerPolicyScopeIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3880,21 +3888,21 @@ func awsAwsjson11_deserializeDocumentCustomerPolicyScopeIdList(v *[]*string, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected CustomerPolicyScopeId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3903,7 +3911,7 @@ func awsAwsjson11_deserializeDocumentCustomerPolicyScopeIdList(v *[]*string, val return nil } -func awsAwsjson11_deserializeDocumentCustomerPolicyScopeMap(v *map[string][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCustomerPolicyScopeMap(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3916,18 +3924,20 @@ func awsAwsjson11_deserializeDocumentCustomerPolicyScopeMap(v *map[string][]*str return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsAwsjson11_deserializeDocumentCustomerPolicyScopeIdList(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentCustomerPolicyScopeIdList(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -3972,7 +3982,7 @@ func awsAwsjson11_deserializeDocumentEvaluationResult(v **types.EvaluationResult if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EvaluationLimitExceeded = &jtv + sv.EvaluationLimitExceeded = jtv } case "ViolatorCount": @@ -3985,7 +3995,7 @@ func awsAwsjson11_deserializeDocumentEvaluationResult(v **types.EvaluationResult if err != nil { return err } - sv.ViolatorCount = &i64 + sv.ViolatorCount = i64 } default: @@ -3997,7 +4007,7 @@ func awsAwsjson11_deserializeDocumentEvaluationResult(v **types.EvaluationResult return nil } -func awsAwsjson11_deserializeDocumentEvaluationResults(v *[]*types.EvaluationResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentEvaluationResults(v *[]types.EvaluationResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4010,18 +4020,20 @@ func awsAwsjson11_deserializeDocumentEvaluationResults(v *[]*types.EvaluationRes return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EvaluationResult + var cv []types.EvaluationResult if *v == nil { - cv = []*types.EvaluationResult{} + cv = []types.EvaluationResult{} } else { cv = *v } for _, value := range shape { - var col *types.EvaluationResult - if err := awsAwsjson11_deserializeDocumentEvaluationResult(&col, value); err != nil { + var col types.EvaluationResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEvaluationResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4057,7 +4069,7 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4097,7 +4109,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4137,7 +4149,7 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4177,7 +4189,7 @@ func awsAwsjson11_deserializeDocumentInvalidTypeException(v **types.InvalidTypeE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4189,7 +4201,7 @@ func awsAwsjson11_deserializeDocumentInvalidTypeException(v **types.InvalidTypeE return nil } -func awsAwsjson11_deserializeDocumentIssueInfoMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIssueInfoMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4202,21 +4214,21 @@ func awsAwsjson11_deserializeDocumentIssueInfoMap(v *map[string]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DetailedInfo to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -4253,7 +4265,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4265,7 +4277,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson11_deserializeDocumentMemberAccounts(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentMemberAccounts(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4278,21 +4290,21 @@ func awsAwsjson11_deserializeDocumentMemberAccounts(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4329,7 +4341,7 @@ func awsAwsjson11_deserializeDocumentPartialMatch(v **types.PartialMatch, value if !ok { return fmt.Errorf("expected ReferenceRule to be of type string, got %T instead", value) } - sv.Reference = &jtv + sv.Reference = ptr.String(jtv) } case "TargetViolationReasons": @@ -4346,7 +4358,7 @@ func awsAwsjson11_deserializeDocumentPartialMatch(v **types.PartialMatch, value return nil } -func awsAwsjson11_deserializeDocumentPartialMatches(v *[]*types.PartialMatch, value interface{}) error { +func awsAwsjson11_deserializeDocumentPartialMatches(v *[]types.PartialMatch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4359,18 +4371,20 @@ func awsAwsjson11_deserializeDocumentPartialMatches(v *[]*types.PartialMatch, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PartialMatch + var cv []types.PartialMatch if *v == nil { - cv = []*types.PartialMatch{} + cv = []types.PartialMatch{} } else { cv = *v } for _, value := range shape { - var col *types.PartialMatch - if err := awsAwsjson11_deserializeDocumentPartialMatch(&col, value); err != nil { + var col types.PartialMatch + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPartialMatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4411,7 +4425,7 @@ func awsAwsjson11_deserializeDocumentPolicy(v **types.Policy, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ExcludeResourceTags = &jtv + sv.ExcludeResourceTags = jtv } case "IncludeMap": @@ -4425,7 +4439,7 @@ func awsAwsjson11_deserializeDocumentPolicy(v **types.Policy, value interface{}) if !ok { return fmt.Errorf("expected PolicyId to be of type string, got %T instead", value) } - sv.PolicyId = &jtv + sv.PolicyId = ptr.String(jtv) } case "PolicyName": @@ -4434,7 +4448,7 @@ func awsAwsjson11_deserializeDocumentPolicy(v **types.Policy, value interface{}) if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } case "PolicyUpdateToken": @@ -4443,7 +4457,7 @@ func awsAwsjson11_deserializeDocumentPolicy(v **types.Policy, value interface{}) if !ok { return fmt.Errorf("expected PolicyUpdateToken to be of type string, got %T instead", value) } - sv.PolicyUpdateToken = &jtv + sv.PolicyUpdateToken = ptr.String(jtv) } case "RemediationEnabled": @@ -4452,7 +4466,7 @@ func awsAwsjson11_deserializeDocumentPolicy(v **types.Policy, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RemediationEnabled = &jtv + sv.RemediationEnabled = jtv } case "ResourceTags": @@ -4466,7 +4480,7 @@ func awsAwsjson11_deserializeDocumentPolicy(v **types.Policy, value interface{}) if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "ResourceTypeList": @@ -4516,7 +4530,7 @@ func awsAwsjson11_deserializeDocumentPolicyComplianceDetail(v **types.PolicyComp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EvaluationLimitExceeded = &jtv + sv.EvaluationLimitExceeded = jtv } case "ExpiredAt": @@ -4543,7 +4557,7 @@ func awsAwsjson11_deserializeDocumentPolicyComplianceDetail(v **types.PolicyComp if !ok { return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) } - sv.MemberAccount = &jtv + sv.MemberAccount = ptr.String(jtv) } case "PolicyId": @@ -4552,7 +4566,7 @@ func awsAwsjson11_deserializeDocumentPolicyComplianceDetail(v **types.PolicyComp if !ok { return fmt.Errorf("expected PolicyId to be of type string, got %T instead", value) } - sv.PolicyId = &jtv + sv.PolicyId = ptr.String(jtv) } case "PolicyOwner": @@ -4561,7 +4575,7 @@ func awsAwsjson11_deserializeDocumentPolicyComplianceDetail(v **types.PolicyComp if !ok { return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) } - sv.PolicyOwner = &jtv + sv.PolicyOwner = ptr.String(jtv) } case "Violators": @@ -4629,7 +4643,7 @@ func awsAwsjson11_deserializeDocumentPolicyComplianceStatus(v **types.PolicyComp if !ok { return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) } - sv.MemberAccount = &jtv + sv.MemberAccount = ptr.String(jtv) } case "PolicyId": @@ -4638,7 +4652,7 @@ func awsAwsjson11_deserializeDocumentPolicyComplianceStatus(v **types.PolicyComp if !ok { return fmt.Errorf("expected PolicyId to be of type string, got %T instead", value) } - sv.PolicyId = &jtv + sv.PolicyId = ptr.String(jtv) } case "PolicyName": @@ -4647,7 +4661,7 @@ func awsAwsjson11_deserializeDocumentPolicyComplianceStatus(v **types.PolicyComp if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } case "PolicyOwner": @@ -4656,7 +4670,7 @@ func awsAwsjson11_deserializeDocumentPolicyComplianceStatus(v **types.PolicyComp if !ok { return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) } - sv.PolicyOwner = &jtv + sv.PolicyOwner = ptr.String(jtv) } default: @@ -4668,7 +4682,7 @@ func awsAwsjson11_deserializeDocumentPolicyComplianceStatus(v **types.PolicyComp return nil } -func awsAwsjson11_deserializeDocumentPolicyComplianceStatusList(v *[]*types.PolicyComplianceStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentPolicyComplianceStatusList(v *[]types.PolicyComplianceStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4681,18 +4695,20 @@ func awsAwsjson11_deserializeDocumentPolicyComplianceStatusList(v *[]*types.Poli return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PolicyComplianceStatus + var cv []types.PolicyComplianceStatus if *v == nil { - cv = []*types.PolicyComplianceStatus{} + cv = []types.PolicyComplianceStatus{} } else { cv = *v } for _, value := range shape { - var col *types.PolicyComplianceStatus - if err := awsAwsjson11_deserializeDocumentPolicyComplianceStatus(&col, value); err != nil { + var col types.PolicyComplianceStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPolicyComplianceStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4728,7 +4744,7 @@ func awsAwsjson11_deserializeDocumentPolicySummary(v **types.PolicySummary, valu if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } case "PolicyId": @@ -4737,7 +4753,7 @@ func awsAwsjson11_deserializeDocumentPolicySummary(v **types.PolicySummary, valu if !ok { return fmt.Errorf("expected PolicyId to be of type string, got %T instead", value) } - sv.PolicyId = &jtv + sv.PolicyId = ptr.String(jtv) } case "PolicyName": @@ -4746,7 +4762,7 @@ func awsAwsjson11_deserializeDocumentPolicySummary(v **types.PolicySummary, valu if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } case "RemediationEnabled": @@ -4755,7 +4771,7 @@ func awsAwsjson11_deserializeDocumentPolicySummary(v **types.PolicySummary, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RemediationEnabled = &jtv + sv.RemediationEnabled = jtv } case "ResourceType": @@ -4764,7 +4780,7 @@ func awsAwsjson11_deserializeDocumentPolicySummary(v **types.PolicySummary, valu if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "SecurityServiceType": @@ -4785,7 +4801,7 @@ func awsAwsjson11_deserializeDocumentPolicySummary(v **types.PolicySummary, valu return nil } -func awsAwsjson11_deserializeDocumentPolicySummaryList(v *[]*types.PolicySummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentPolicySummaryList(v *[]types.PolicySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4798,18 +4814,20 @@ func awsAwsjson11_deserializeDocumentPolicySummaryList(v *[]*types.PolicySummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PolicySummary + var cv []types.PolicySummary if *v == nil { - cv = []*types.PolicySummary{} + cv = []types.PolicySummary{} } else { cv = *v } for _, value := range shape { - var col *types.PolicySummary - if err := awsAwsjson11_deserializeDocumentPolicySummary(&col, value); err != nil { + var col types.PolicySummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPolicySummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4817,7 +4835,7 @@ func awsAwsjson11_deserializeDocumentPolicySummaryList(v *[]*types.PolicySummary return nil } -func awsAwsjson11_deserializeDocumentPreviousAppsList(v *map[string][]*types.App, value interface{}) error { +func awsAwsjson11_deserializeDocumentPreviousAppsList(v *map[string][]types.App, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4830,18 +4848,20 @@ func awsAwsjson11_deserializeDocumentPreviousAppsList(v *map[string][]*types.App return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*types.App + var mv map[string][]types.App if *v == nil { - mv = map[string][]*types.App{} + mv = map[string][]types.App{} } else { mv = *v } for key, value := range shape { - var parsedVal []*types.App - if err := awsAwsjson11_deserializeDocumentAppsList(&parsedVal, value); err != nil { + var parsedVal []types.App + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentAppsList(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -4849,7 +4869,7 @@ func awsAwsjson11_deserializeDocumentPreviousAppsList(v *map[string][]*types.App return nil } -func awsAwsjson11_deserializeDocumentPreviousProtocolsList(v *map[string][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPreviousProtocolsList(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4862,18 +4882,20 @@ func awsAwsjson11_deserializeDocumentPreviousProtocolsList(v *map[string][]*stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsAwsjson11_deserializeDocumentProtocolsList(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentProtocolsList(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -4881,7 +4903,7 @@ func awsAwsjson11_deserializeDocumentPreviousProtocolsList(v *map[string][]*stri return nil } -func awsAwsjson11_deserializeDocumentProtocolsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentProtocolsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4894,21 +4916,21 @@ func awsAwsjson11_deserializeDocumentProtocolsList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Protocol to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4971,7 +4993,7 @@ func awsAwsjson11_deserializeDocumentProtocolsListData(v **types.ProtocolsListDa if !ok { return fmt.Errorf("expected ListId to be of type string, got %T instead", value) } - sv.ListId = &jtv + sv.ListId = ptr.String(jtv) } case "ListName": @@ -4980,7 +5002,7 @@ func awsAwsjson11_deserializeDocumentProtocolsListData(v **types.ProtocolsListDa if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ListName = &jtv + sv.ListName = ptr.String(jtv) } case "ListUpdateToken": @@ -4989,7 +5011,7 @@ func awsAwsjson11_deserializeDocumentProtocolsListData(v **types.ProtocolsListDa if !ok { return fmt.Errorf("expected UpdateToken to be of type string, got %T instead", value) } - sv.ListUpdateToken = &jtv + sv.ListUpdateToken = ptr.String(jtv) } case "PreviousProtocolsList": @@ -5039,7 +5061,7 @@ func awsAwsjson11_deserializeDocumentProtocolsListDataSummary(v **types.Protocol if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ListArn = &jtv + sv.ListArn = ptr.String(jtv) } case "ListId": @@ -5048,7 +5070,7 @@ func awsAwsjson11_deserializeDocumentProtocolsListDataSummary(v **types.Protocol if !ok { return fmt.Errorf("expected ListId to be of type string, got %T instead", value) } - sv.ListId = &jtv + sv.ListId = ptr.String(jtv) } case "ListName": @@ -5057,7 +5079,7 @@ func awsAwsjson11_deserializeDocumentProtocolsListDataSummary(v **types.Protocol if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ListName = &jtv + sv.ListName = ptr.String(jtv) } case "ProtocolsList": @@ -5074,7 +5096,7 @@ func awsAwsjson11_deserializeDocumentProtocolsListDataSummary(v **types.Protocol return nil } -func awsAwsjson11_deserializeDocumentProtocolsListsData(v *[]*types.ProtocolsListDataSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentProtocolsListsData(v *[]types.ProtocolsListDataSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5087,18 +5109,20 @@ func awsAwsjson11_deserializeDocumentProtocolsListsData(v *[]*types.ProtocolsLis return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProtocolsListDataSummary + var cv []types.ProtocolsListDataSummary if *v == nil { - cv = []*types.ProtocolsListDataSummary{} + cv = []types.ProtocolsListDataSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProtocolsListDataSummary - if err := awsAwsjson11_deserializeDocumentProtocolsListDataSummary(&col, value); err != nil { + var col types.ProtocolsListDataSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProtocolsListDataSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5106,7 +5130,7 @@ func awsAwsjson11_deserializeDocumentProtocolsListsData(v *[]*types.ProtocolsLis return nil } -func awsAwsjson11_deserializeDocumentResourceIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5119,21 +5143,21 @@ func awsAwsjson11_deserializeDocumentResourceIdList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5170,7 +5194,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5210,7 +5234,7 @@ func awsAwsjson11_deserializeDocumentResourceTag(v **types.ResourceTag, value in if !ok { return fmt.Errorf("expected ResourceTagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -5219,7 +5243,7 @@ func awsAwsjson11_deserializeDocumentResourceTag(v **types.ResourceTag, value in if !ok { return fmt.Errorf("expected ResourceTagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5231,7 +5255,7 @@ func awsAwsjson11_deserializeDocumentResourceTag(v **types.ResourceTag, value in return nil } -func awsAwsjson11_deserializeDocumentResourceTags(v *[]*types.ResourceTag, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceTags(v *[]types.ResourceTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5244,18 +5268,20 @@ func awsAwsjson11_deserializeDocumentResourceTags(v *[]*types.ResourceTag, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceTag + var cv []types.ResourceTag if *v == nil { - cv = []*types.ResourceTag{} + cv = []types.ResourceTag{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceTag - if err := awsAwsjson11_deserializeDocumentResourceTag(&col, value); err != nil { + var col types.ResourceTag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5263,7 +5289,7 @@ func awsAwsjson11_deserializeDocumentResourceTags(v *[]*types.ResourceTag, value return nil } -func awsAwsjson11_deserializeDocumentResourceTypeList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceTypeList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5276,21 +5302,21 @@ func awsAwsjson11_deserializeDocumentResourceTypeList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5345,7 +5371,7 @@ func awsAwsjson11_deserializeDocumentResourceViolation(v **types.ResourceViolati return nil } -func awsAwsjson11_deserializeDocumentResourceViolations(v *[]*types.ResourceViolation, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceViolations(v *[]types.ResourceViolation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5358,18 +5384,20 @@ func awsAwsjson11_deserializeDocumentResourceViolations(v *[]*types.ResourceViol return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceViolation + var cv []types.ResourceViolation if *v == nil { - cv = []*types.ResourceViolation{} + cv = []types.ResourceViolation{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceViolation - if err := awsAwsjson11_deserializeDocumentResourceViolation(&col, value); err != nil { + var col types.ResourceViolation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceViolation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5405,7 +5433,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroupRemediationAction(v **types.Se if !ok { return fmt.Errorf("expected RemediationActionDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "IsDefaultAction": @@ -5414,7 +5442,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroupRemediationAction(v **types.Se if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsDefaultAction = &jtv + sv.IsDefaultAction = jtv } case "RemediationActionType": @@ -5440,7 +5468,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroupRemediationAction(v **types.Se return nil } -func awsAwsjson11_deserializeDocumentSecurityGroupRemediationActions(v *[]*types.SecurityGroupRemediationAction, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityGroupRemediationActions(v *[]types.SecurityGroupRemediationAction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5453,18 +5481,20 @@ func awsAwsjson11_deserializeDocumentSecurityGroupRemediationActions(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SecurityGroupRemediationAction + var cv []types.SecurityGroupRemediationAction if *v == nil { - cv = []*types.SecurityGroupRemediationAction{} + cv = []types.SecurityGroupRemediationAction{} } else { cv = *v } for _, value := range shape { - var col *types.SecurityGroupRemediationAction - if err := awsAwsjson11_deserializeDocumentSecurityGroupRemediationAction(&col, value); err != nil { + var col types.SecurityGroupRemediationAction + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSecurityGroupRemediationAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5504,7 +5534,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroupRuleDescription(v **types.Secu if err != nil { return err } - sv.FromPort = &i64 + sv.FromPort = ptr.Int64(i64) } case "IPV4Range": @@ -5513,7 +5543,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroupRuleDescription(v **types.Secu if !ok { return fmt.Errorf("expected CIDR to be of type string, got %T instead", value) } - sv.IPV4Range = &jtv + sv.IPV4Range = ptr.String(jtv) } case "IPV6Range": @@ -5522,7 +5552,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroupRuleDescription(v **types.Secu if !ok { return fmt.Errorf("expected CIDR to be of type string, got %T instead", value) } - sv.IPV6Range = &jtv + sv.IPV6Range = ptr.String(jtv) } case "PrefixListId": @@ -5531,7 +5561,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroupRuleDescription(v **types.Secu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.PrefixListId = &jtv + sv.PrefixListId = ptr.String(jtv) } case "Protocol": @@ -5540,7 +5570,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroupRuleDescription(v **types.Secu if !ok { return fmt.Errorf("expected LengthBoundedString to be of type string, got %T instead", value) } - sv.Protocol = &jtv + sv.Protocol = ptr.String(jtv) } case "ToPort": @@ -5553,7 +5583,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroupRuleDescription(v **types.Secu if err != nil { return err } - sv.ToPort = &i64 + sv.ToPort = ptr.Int64(i64) } default: @@ -5593,7 +5623,7 @@ func awsAwsjson11_deserializeDocumentSecurityServicePolicyData(v **types.Securit if !ok { return fmt.Errorf("expected ManagedServiceData to be of type string, got %T instead", value) } - sv.ManagedServiceData = &jtv + sv.ManagedServiceData = ptr.String(jtv) } case "Type": @@ -5642,7 +5672,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -5651,7 +5681,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5663,7 +5693,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5676,18 +5706,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5695,7 +5727,7 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentTargetViolationReasons(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetViolationReasons(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5708,21 +5740,21 @@ func awsAwsjson11_deserializeDocumentTargetViolationReasons(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TargetViolationReason to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5759,7 +5791,7 @@ func awsAwsjson11_deserializeDocumentViolationDetail(v **types.ViolationDetail, if !ok { return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) } - sv.MemberAccount = &jtv + sv.MemberAccount = ptr.String(jtv) } case "PolicyId": @@ -5768,7 +5800,7 @@ func awsAwsjson11_deserializeDocumentViolationDetail(v **types.ViolationDetail, if !ok { return fmt.Errorf("expected PolicyId to be of type string, got %T instead", value) } - sv.PolicyId = &jtv + sv.PolicyId = ptr.String(jtv) } case "ResourceDescription": @@ -5777,7 +5809,7 @@ func awsAwsjson11_deserializeDocumentViolationDetail(v **types.ViolationDetail, if !ok { return fmt.Errorf("expected LengthBoundedString to be of type string, got %T instead", value) } - sv.ResourceDescription = &jtv + sv.ResourceDescription = ptr.String(jtv) } case "ResourceId": @@ -5786,7 +5818,7 @@ func awsAwsjson11_deserializeDocumentViolationDetail(v **types.ViolationDetail, if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceTags": @@ -5800,7 +5832,7 @@ func awsAwsjson11_deserializeDocumentViolationDetail(v **types.ViolationDetail, if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "ResourceViolations": @@ -6031,7 +6063,7 @@ func awsAwsjson11_deserializeOpDocumentGetAdminAccountOutput(v **GetAdminAccount if !ok { return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) } - sv.AdminAccount = &jtv + sv.AdminAccount = ptr.String(jtv) } case "RoleStatus": @@ -6085,7 +6117,7 @@ func awsAwsjson11_deserializeOpDocumentGetAppsListOutput(v **GetAppsListOutput, if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.AppsListArn = &jtv + sv.AppsListArn = ptr.String(jtv) } default: @@ -6161,7 +6193,7 @@ func awsAwsjson11_deserializeOpDocumentGetNotificationChannelOutput(v **GetNotif if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.SnsRoleName = &jtv + sv.SnsRoleName = ptr.String(jtv) } case "SnsTopicArn": @@ -6170,7 +6202,7 @@ func awsAwsjson11_deserializeOpDocumentGetNotificationChannelOutput(v **GetNotif if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.SnsTopicArn = &jtv + sv.SnsTopicArn = ptr.String(jtv) } default: @@ -6215,7 +6247,7 @@ func awsAwsjson11_deserializeOpDocumentGetPolicyOutput(v **GetPolicyOutput, valu if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } default: @@ -6255,7 +6287,7 @@ func awsAwsjson11_deserializeOpDocumentGetProtectionStatusOutput(v **GetProtecti if !ok { return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) } - sv.AdminAccountId = &jtv + sv.AdminAccountId = ptr.String(jtv) } case "Data": @@ -6264,7 +6296,7 @@ func awsAwsjson11_deserializeOpDocumentGetProtectionStatusOutput(v **GetProtecti if !ok { return fmt.Errorf("expected ProtectionData to be of type string, got %T instead", value) } - sv.Data = &jtv + sv.Data = ptr.String(jtv) } case "NextToken": @@ -6273,7 +6305,7 @@ func awsAwsjson11_deserializeOpDocumentGetProtectionStatusOutput(v **GetProtecti if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ServiceType": @@ -6327,7 +6359,7 @@ func awsAwsjson11_deserializeOpDocumentGetProtocolsListOutput(v **GetProtocolsLi if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ProtocolsListArn = &jtv + sv.ProtocolsListArn = ptr.String(jtv) } default: @@ -6408,7 +6440,7 @@ func awsAwsjson11_deserializeOpDocumentListAppsListsOutput(v **ListAppsListsOutp if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6448,7 +6480,7 @@ func awsAwsjson11_deserializeOpDocumentListComplianceStatusOutput(v **ListCompli if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PolicyComplianceStatusList": @@ -6498,7 +6530,7 @@ func awsAwsjson11_deserializeOpDocumentListMemberAccountsOutput(v **ListMemberAc if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6538,7 +6570,7 @@ func awsAwsjson11_deserializeOpDocumentListPoliciesOutput(v **ListPoliciesOutput if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PolicyList": @@ -6583,7 +6615,7 @@ func awsAwsjson11_deserializeOpDocumentListProtocolsListsOutput(v **ListProtocol if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ProtocolsLists": @@ -6669,7 +6701,7 @@ func awsAwsjson11_deserializeOpDocumentPutAppsListOutput(v **PutAppsListOutput, if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.AppsListArn = &jtv + sv.AppsListArn = ptr.String(jtv) } default: @@ -6745,7 +6777,7 @@ func awsAwsjson11_deserializeOpDocumentPutPolicyOutput(v **PutPolicyOutput, valu if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } default: @@ -6790,7 +6822,7 @@ func awsAwsjson11_deserializeOpDocumentPutProtocolsListOutput(v **PutProtocolsLi if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ProtocolsListArn = &jtv + sv.ProtocolsListArn = ptr.String(jtv) } default: diff --git a/service/fms/go.mod b/service/fms/go.mod index f26d07301ef..a2190594634 100644 --- a/service/fms/go.mod +++ b/service/fms/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/fms go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/fms/serializers.go b/service/fms/serializers.go index cd0f695bcb3..1c04656c266 100644 --- a/service/fms/serializers.go +++ b/service/fms/serializers.go @@ -1204,17 +1204,13 @@ func awsAwsjson11_serializeDocumentApp(v *types.App, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentAppsList(v []*types.App, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAppsList(v []types.App, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentApp(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentApp(&v[i], av); err != nil { return err } } @@ -1267,29 +1263,24 @@ func awsAwsjson11_serializeDocumentAppsListData(v *types.AppsListData, value smi return nil } -func awsAwsjson11_serializeDocumentCustomerPolicyScopeIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCustomerPolicyScopeIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentCustomerPolicyScopeMap(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCustomerPolicyScopeMap(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentCustomerPolicyScopeIdList(v[key], om); err != nil { @@ -1310,9 +1301,9 @@ func awsAwsjson11_serializeDocumentPolicy(v *types.Policy, value smithyjson.Valu } } - if v.ExcludeResourceTags != nil { + if v.ExcludeResourceTags { ok := object.Key("ExcludeResourceTags") - ok.Boolean(*v.ExcludeResourceTags) + ok.Boolean(v.ExcludeResourceTags) } if v.IncludeMap != nil { @@ -1337,9 +1328,9 @@ func awsAwsjson11_serializeDocumentPolicy(v *types.Policy, value smithyjson.Valu ok.String(*v.PolicyUpdateToken) } - if v.RemediationEnabled != nil { + if v.RemediationEnabled { ok := object.Key("RemediationEnabled") - ok.Boolean(*v.RemediationEnabled) + ok.Boolean(v.RemediationEnabled) } if v.ResourceTags != nil { @@ -1371,14 +1362,13 @@ func awsAwsjson11_serializeDocumentPolicy(v *types.Policy, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentPreviousAppsList(v map[string][]*types.App, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPreviousAppsList(v map[string][]types.App, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentAppsList(v[key], om); err != nil { @@ -1388,14 +1378,13 @@ func awsAwsjson11_serializeDocumentPreviousAppsList(v map[string][]*types.App, v return nil } -func awsAwsjson11_serializeDocumentPreviousProtocolsList(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPreviousProtocolsList(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentProtocolsList(v[key], om); err != nil { @@ -1405,17 +1394,13 @@ func awsAwsjson11_serializeDocumentPreviousProtocolsList(v map[string][]*string, return nil } -func awsAwsjson11_serializeDocumentProtocolsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProtocolsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1483,34 +1468,26 @@ func awsAwsjson11_serializeDocumentResourceTag(v *types.ResourceTag, value smith return nil } -func awsAwsjson11_serializeDocumentResourceTags(v []*types.ResourceTag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceTags(v []types.ResourceTag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentResourceTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentResourceTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentResourceTypeList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceTypeList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1549,32 +1526,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -1616,9 +1585,9 @@ func awsAwsjson11_serializeOpDocumentDeletePolicyInput(v *DeletePolicyInput, val object := value.Object() defer object.Close() - if v.DeleteAllPolicyResources != nil { + if v.DeleteAllPolicyResources { ok := object.Key("DeleteAllPolicyResources") - ok.Boolean(*v.DeleteAllPolicyResources) + ok.Boolean(v.DeleteAllPolicyResources) } if v.PolicyId != nil { @@ -1659,9 +1628,9 @@ func awsAwsjson11_serializeOpDocumentGetAppsListInput(v *GetAppsListInput, value object := value.Object() defer object.Close() - if v.DefaultList != nil { + if v.DefaultList { ok := object.Key("DefaultList") - ok.Boolean(*v.DefaultList) + ok.Boolean(v.DefaultList) } if v.ListId != nil { @@ -1749,9 +1718,9 @@ func awsAwsjson11_serializeOpDocumentGetProtocolsListInput(v *GetProtocolsListIn object := value.Object() defer object.Close() - if v.DefaultList != nil { + if v.DefaultList { ok := object.Key("DefaultList") - ok.Boolean(*v.DefaultList) + ok.Boolean(v.DefaultList) } if v.ListId != nil { @@ -1793,9 +1762,9 @@ func awsAwsjson11_serializeOpDocumentListAppsListsInput(v *ListAppsListsInput, v object := value.Object() defer object.Close() - if v.DefaultLists != nil { + if v.DefaultLists { ok := object.Key("DefaultLists") - ok.Boolean(*v.DefaultLists) + ok.Boolean(v.DefaultLists) } if v.MaxResults != nil { @@ -1871,9 +1840,9 @@ func awsAwsjson11_serializeOpDocumentListProtocolsListsInput(v *ListProtocolsLis object := value.Object() defer object.Close() - if v.DefaultLists != nil { + if v.DefaultLists { ok := object.Key("DefaultLists") - ok.Boolean(*v.DefaultLists) + ok.Boolean(v.DefaultLists) } if v.MaxResults != nil { diff --git a/service/fms/types/types.go b/service/fms/types/types.go index 72fcbc034a3..3ec69098dd0 100644 --- a/service/fms/types/types.go +++ b/service/fms/types/types.go @@ -33,7 +33,7 @@ type AppsListData struct { // An array of applications in the AWS Firewall Manager applications list. // // This member is required. - AppsList []*App + AppsList []App // The name of the AWS Firewall Manager applications list. // @@ -55,14 +55,14 @@ type AppsListData struct { ListUpdateToken *string // A map of previous version numbers to their corresponding App object arrays. - PreviousAppsList map[string][]*App + PreviousAppsList map[string][]App } // Details of the AWS Firewall Manager applications list. type AppsListDataSummary struct { // An array of App objects in the AWS Firewall Manager applications list. - AppsList []*App + AppsList []App // The Amazon Resource Name (ARN) of the applications list. ListArn *string @@ -78,7 +78,7 @@ type AppsListDataSummary struct { type AwsEc2InstanceViolation struct { // Violations for network interfaces associated with the EC2 instance. - AwsEc2NetworkInterfaceViolations []*AwsEc2NetworkInterfaceViolation + AwsEc2NetworkInterfaceViolations []AwsEc2NetworkInterfaceViolation // The resource ID of the EC2 instance. ViolationTarget *string @@ -89,7 +89,7 @@ type AwsEc2NetworkInterfaceViolation struct { // List of security groups that violate the rules specified in the master security // group of the AWS Firewall Manager policy. - ViolatingSecurityGroups []*string + ViolatingSecurityGroups []string // The resource ID of the network interface. ViolationTarget *string @@ -101,10 +101,10 @@ type AwsVPCSecurityGroupViolation struct { // List of rules specified in the security group of the AWS Firewall Manager policy // that partially match the ViolationTarget rule. - PartialMatches []*PartialMatch + PartialMatches []PartialMatch // Remediation options for the rule specified in the ViolationTarget. - PossibleSecurityGroupRemediationActions []*SecurityGroupRemediationAction + PossibleSecurityGroupRemediationActions []SecurityGroupRemediationAction // The security group rule that is being evaluated. ViolationTarget *string @@ -140,14 +140,14 @@ type EvaluationResult struct { // Indicates that over 100 resources are noncompliant with the AWS Firewall Manager // policy. - EvaluationLimitExceeded *bool + EvaluationLimitExceeded bool // The number of resources that are noncompliant with the specified policy. For AWS // WAF and Shield Advanced policies, a resource is considered noncompliant if it is // not associated with the policy. For security group policies, a resource is // considered noncompliant if it doesn't comply with the rules of the policy and // remediation is disabled or not possible. - ViolatorCount *int64 + ViolatorCount int64 } // The reference rule that partially matches the ViolationTarget rule and violation @@ -159,7 +159,7 @@ type PartialMatch struct { Reference *string // The violation reason. - TargetViolationReasons []*string + TargetViolationReasons []string } // An AWS Firewall Manager policy. @@ -170,7 +170,7 @@ type Policy struct { // is not null, only resources with the specified tags are in scope of the policy. // // This member is required. - ExcludeResourceTags *bool + ExcludeResourceTags bool // The name of the AWS Firewall Manager policy. // @@ -180,7 +180,7 @@ type Policy struct { // Indicates if the policy should be automatically applied to new resources. // // This member is required. - RemediationEnabled *bool + RemediationEnabled bool // The type of resource protected by or in scope of the policy. This is in the // format shown in the AWS Resource Types Reference @@ -222,7 +222,7 @@ type Policy struct { // together in a single map, separated with a comma. For example, the following is // a valid map: {“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, // “ouid112”]}. - ExcludeMap map[string][]*string + ExcludeMap map[string][]string // Specifies the AWS account IDs and AWS Organizations organizational units (OUs) // to include in the policy. Specifying an OU is the equivalent of specifying all @@ -246,7 +246,7 @@ type Policy struct { // together in a single map, separated with a comma. For example, the following is // a valid map: {“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, // “ouid112”]}. - IncludeMap map[string][]*string + IncludeMap map[string][]string // The ID of the AWS Firewall Manager policy. PolicyId *string @@ -258,10 +258,10 @@ type Policy struct { PolicyUpdateToken *string // An array of ResourceTag objects. - ResourceTags []*ResourceTag + ResourceTags []ResourceTag // An array of ResourceType. - ResourceTypeList []*string + ResourceTypeList []string } // Describes the noncompliant resources in a member account for a specific AWS @@ -271,7 +271,7 @@ type PolicyComplianceDetail struct { // Indicates if over 100 resources are noncompliant with the AWS Firewall Manager // policy. - EvaluationLimitExceeded *bool + EvaluationLimitExceeded bool // A timestamp that indicates when the returned information should be considered // out of date. @@ -281,7 +281,7 @@ type PolicyComplianceDetail struct { // that are causing a resource to be noncompliant. The details include the name of // the dependent service and the error message received that indicates the problem // with the service. - IssueInfoMap map[string]*string + IssueInfoMap map[string]string // The AWS account ID. MemberAccount *string @@ -294,7 +294,7 @@ type PolicyComplianceDetail struct { // An array of resources that aren't protected by the AWS WAF or Shield Advanced // policy or that aren't in compliance with the security group policy. - Violators []*ComplianceViolator + Violators []ComplianceViolator } // Indicates whether the account is compliant with the specified policy. An account @@ -304,13 +304,13 @@ type PolicyComplianceDetail struct { type PolicyComplianceStatus struct { // An array of EvaluationResult objects. - EvaluationResults []*EvaluationResult + EvaluationResults []EvaluationResult // Details about problems with dependent services, such as AWS WAF or AWS Config, // that are causing a resource to be noncompliant. The details include the name of // the dependent service and the error message received that indicates the problem // with the service. - IssueInfoMap map[string]*string + IssueInfoMap map[string]string // Timestamp of the last update to the EvaluationResult objects. LastUpdated *time.Time @@ -341,7 +341,7 @@ type PolicySummary struct { PolicyName *string // Indicates if the policy should be automatically applied to new resources. - RemediationEnabled *bool + RemediationEnabled bool // The type of resource protected by or in scope of the policy. This is in the // format shown in the AWS Resource Types Reference @@ -371,7 +371,7 @@ type ProtocolsListData struct { // An array of protocols in the AWS Firewall Manager protocols list. // // This member is required. - ProtocolsList []*string + ProtocolsList []string // The time that the AWS Firewall Manager protocols list was created. CreateTime *time.Time @@ -388,7 +388,7 @@ type ProtocolsListData struct { ListUpdateToken *string // A map of previous version numbers to their corresponding protocol arrays. - PreviousProtocolsList map[string][]*string + PreviousProtocolsList map[string][]string } // Details of the AWS Firewall Manager protocols list. @@ -404,7 +404,7 @@ type ProtocolsListDataSummary struct { ListName *string // An array of protocols in the AWS Firewall Manager protocols list. - ProtocolsList []*string + ProtocolsList []string } // The resource tags that AWS Firewall Manager uses to determine if a particular @@ -446,7 +446,7 @@ type SecurityGroupRemediationAction struct { Description *string // Indicates if the current action is the default action. - IsDefaultAction *bool + IsDefaultAction bool // The remediation action that will be performed. RemediationActionType RemediationActionType @@ -576,11 +576,11 @@ type ViolationDetail struct { // List of violations for the requested resource. // // This member is required. - ResourceViolations []*ResourceViolation + ResourceViolations []ResourceViolation // Brief description for the requested resource. ResourceDescription *string // The ResourceTag objects associated with the resource. - ResourceTags []*Tag + ResourceTags []Tag } diff --git a/service/fms/validators.go b/service/fms/validators.go index 6474856a153..12b28ae4537 100644 --- a/service/fms/validators.go +++ b/service/fms/validators.go @@ -511,13 +511,13 @@ func validateApp(v *types.App) error { } } -func validateAppsList(v []*types.App) error { +func validateAppsList(v []types.App) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AppsList"} for i := range v { - if err := validateApp(v[i]); err != nil { + if err := validateApp(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -560,9 +560,6 @@ func validatePolicy(v *types.Policy) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "Policy"} - if v.ExcludeResourceTags == nil { - invalidParams.Add(smithy.NewErrParamRequired("ExcludeResourceTags")) - } if v.ResourceTags != nil { if err := validateResourceTags(v.ResourceTags); err != nil { invalidParams.AddNested("ResourceTags", err.(smithy.InvalidParamsError)) @@ -581,9 +578,6 @@ func validatePolicy(v *types.Policy) error { invalidParams.AddNested("SecurityServicePolicyData", err.(smithy.InvalidParamsError)) } } - if v.RemediationEnabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("RemediationEnabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -591,7 +585,7 @@ func validatePolicy(v *types.Policy) error { } } -func validatePreviousAppsList(v map[string][]*types.App) error { +func validatePreviousAppsList(v map[string][]types.App) error { if v == nil { return nil } @@ -641,13 +635,13 @@ func validateResourceTag(v *types.ResourceTag) error { } } -func validateResourceTags(v []*types.ResourceTag) error { +func validateResourceTags(v []types.ResourceTag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceTags"} for i := range v { - if err := validateResourceTag(v[i]); err != nil { + if err := validateResourceTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -691,13 +685,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/forecast/api_op_CreateDataset.go b/service/forecast/api_op_CreateDataset.go index 7e90d9fff94..0cbd1a08191 100644 --- a/service/forecast/api_op_CreateDataset.go +++ b/service/forecast/api_op_CreateDataset.go @@ -125,7 +125,7 @@ type CreateDatasetInput struct { // has aws as its prefix but the key does not, then Forecast considers it to be a // user tag and will count against the limit of 50 tags. Tags with only the key // prefix of aws do not count against your tags per resource limit. - Tags []*types.Tag + Tags []types.Tag } type CreateDatasetOutput struct { diff --git a/service/forecast/api_op_CreateDatasetGroup.go b/service/forecast/api_op_CreateDatasetGroup.go index 72a4d9c1a02..0a7a7999aec 100644 --- a/service/forecast/api_op_CreateDatasetGroup.go +++ b/service/forecast/api_op_CreateDatasetGroup.go @@ -55,7 +55,7 @@ type CreateDatasetGroupInput struct { // An array of Amazon Resource Names (ARNs) of the datasets that you want to // include in the dataset group. - DatasetArns []*string + DatasetArns []string // The optional metadata that you apply to the dataset group to help you categorize // and organize them. Each tag consists of a key and an optional value, both of @@ -87,7 +87,7 @@ type CreateDatasetGroupInput struct { // has aws as its prefix but the key does not, then Forecast considers it to be a // user tag and will count against the limit of 50 tags. Tags with only the key // prefix of aws do not count against your tags per resource limit. - Tags []*types.Tag + Tags []types.Tag } type CreateDatasetGroupOutput struct { diff --git a/service/forecast/api_op_CreateDatasetImportJob.go b/service/forecast/api_op_CreateDatasetImportJob.go index 3f7ac9eb362..1f01b91a109 100644 --- a/service/forecast/api_op_CreateDatasetImportJob.go +++ b/service/forecast/api_op_CreateDatasetImportJob.go @@ -99,7 +99,7 @@ type CreateDatasetImportJobInput struct { // considers it to be a user tag and will count against the limit of 50 tags. Tags // with only the key prefix of aws do not count against your tags per resource // limit. - Tags []*types.Tag + Tags []types.Tag // The format of timestamps in the dataset. The format that you specify depends on // the DataFrequency specified when the dataset was created. The following formats diff --git a/service/forecast/api_op_CreateForecast.go b/service/forecast/api_op_CreateForecast.go index e2d4b211c81..7b7de3d1395 100644 --- a/service/forecast/api_op_CreateForecast.go +++ b/service/forecast/api_op_CreateForecast.go @@ -56,7 +56,7 @@ type CreateForecastInput struct { // (increments of .01 only) and mean. The mean forecast is different from the // median (0.50) when the distribution is not symmetric (for example, Beta and // Negative Binomial). The default value is ["0.1", "0.5", "0.9"]. - ForecastTypes []*string + ForecastTypes []string // The optional metadata that you apply to the forecast to help you categorize and // organize them. Each tag consists of a key and an optional value, both of which @@ -88,7 +88,7 @@ type CreateForecastInput struct { // has aws as its prefix but the key does not, then Forecast considers it to be a // user tag and will count against the limit of 50 tags. Tags with only the key // prefix of aws do not count against your tags per resource limit. - Tags []*types.Tag + Tags []types.Tag } type CreateForecastOutput struct { diff --git a/service/forecast/api_op_CreateForecastExportJob.go b/service/forecast/api_op_CreateForecastExportJob.go index eb6928857c2..402790c1711 100644 --- a/service/forecast/api_op_CreateForecastExportJob.go +++ b/service/forecast/api_op_CreateForecastExportJob.go @@ -89,7 +89,7 @@ type CreateForecastExportJobInput struct { // considers it to be a user tag and will count against the limit of 50 tags. Tags // with only the key prefix of aws do not count against your tags per resource // limit. - Tags []*types.Tag + Tags []types.Tag } type CreateForecastExportJobOutput struct { diff --git a/service/forecast/api_op_CreatePredictor.go b/service/forecast/api_op_CreatePredictor.go index 9b56d53fcdc..42100c0713b 100644 --- a/service/forecast/api_op_CreatePredictor.go +++ b/service/forecast/api_op_CreatePredictor.go @@ -178,12 +178,12 @@ type CreatePredictorInput struct { // has aws as its prefix but the key does not, then Forecast considers it to be a // user tag and will count against the limit of 50 tags. Tags with only the key // prefix of aws do not count against your tags per resource limit. - Tags []*types.Tag + Tags []types.Tag // The hyperparameters to override for model training. The hyperparameters that you // can override are listed in the individual algorithms. For the list of supported // algorithms, see aws-forecast-choosing-recipes. - TrainingParameters map[string]*string + TrainingParameters map[string]string } type CreatePredictorOutput struct { diff --git a/service/forecast/api_op_DescribeDatasetGroup.go b/service/forecast/api_op_DescribeDatasetGroup.go index 6a312ee97c4..966a115f8be 100644 --- a/service/forecast/api_op_DescribeDatasetGroup.go +++ b/service/forecast/api_op_DescribeDatasetGroup.go @@ -54,7 +54,7 @@ type DescribeDatasetGroupOutput struct { // An array of Amazon Resource Names (ARNs) of the datasets contained in the // dataset group. - DatasetArns []*string + DatasetArns []string // The ARN of the dataset group. DatasetGroupArn *string diff --git a/service/forecast/api_op_DescribeDatasetImportJob.go b/service/forecast/api_op_DescribeDatasetImportJob.go index 52013fa6e16..8211e91802f 100644 --- a/service/forecast/api_op_DescribeDatasetImportJob.go +++ b/service/forecast/api_op_DescribeDatasetImportJob.go @@ -77,7 +77,7 @@ type DescribeDatasetImportJobOutput struct { DatasetImportJobName *string // Statistical information about each field in the input data. - FieldStatistics map[string]*types.Statistics + FieldStatistics map[string]types.Statistics // The last time that the dataset was modified. The time depends on the status of // the job, as follows: diff --git a/service/forecast/api_op_DescribeForecast.go b/service/forecast/api_op_DescribeForecast.go index 980ed549b93..435d8556b3a 100644 --- a/service/forecast/api_op_DescribeForecast.go +++ b/service/forecast/api_op_DescribeForecast.go @@ -64,7 +64,7 @@ type DescribeForecastOutput struct { ForecastName *string // The quantiles at which probabilistic forecasts were generated. - ForecastTypes []*string + ForecastTypes []string // Initially, the same as CreationTime (status is CREATE_PENDING). Updated when // inference (creating the forecast) starts (status changed to CREATE_IN_PROGRESS), diff --git a/service/forecast/api_op_DescribePredictor.go b/service/forecast/api_op_DescribePredictor.go index ea09edcf2c2..2a1891218a8 100644 --- a/service/forecast/api_op_DescribePredictor.go +++ b/service/forecast/api_op_DescribePredictor.go @@ -60,14 +60,14 @@ type DescribePredictorOutput struct { AlgorithmArn *string // When PerformAutoML is specified, the ARN of the chosen algorithm. - AutoMLAlgorithmArns []*string + AutoMLAlgorithmArns []string // When the model training task was created. CreationTime *time.Time // An array of the ARNs of the dataset import jobs used to import training data for // the predictor. - DatasetImportJobArns []*string + DatasetImportJobArns []string // An AWS Key Management Service (KMS) key and the AWS Identity and Access // Management (IAM) role that Amazon Forecast can assume to access the key. @@ -140,7 +140,7 @@ type DescribePredictorOutput struct { // using the AutoML algorithm or if HPO is turned on while using the DeepAR+ // algorithms, the optimized values for the chosen hyperparameters are returned. // For more information, see aws-forecast-choosing-recipes. - TrainingParameters map[string]*string + TrainingParameters map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/forecast/api_op_GetAccuracyMetrics.go b/service/forecast/api_op_GetAccuracyMetrics.go index 47bb244e0a4..fc9375dfffd 100644 --- a/service/forecast/api_op_GetAccuracyMetrics.go +++ b/service/forecast/api_op_GetAccuracyMetrics.go @@ -51,7 +51,7 @@ type GetAccuracyMetricsInput struct { type GetAccuracyMetricsOutput struct { // An array of results from evaluating the predictor. - PredictorEvaluationResults []*types.EvaluationResult + PredictorEvaluationResults []types.EvaluationResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/forecast/api_op_ListDatasetGroups.go b/service/forecast/api_op_ListDatasetGroups.go index c7ece5c186f..17a418cc570 100644 --- a/service/forecast/api_op_ListDatasetGroups.go +++ b/service/forecast/api_op_ListDatasetGroups.go @@ -45,7 +45,7 @@ type ListDatasetGroupsInput struct { type ListDatasetGroupsOutput struct { // An array of objects that summarize each dataset group's properties. - DatasetGroups []*types.DatasetGroupSummary + DatasetGroups []types.DatasetGroupSummary // If the response is truncated, Amazon Forecast returns this token. To retrieve // the next set of results, use the token in the next request. diff --git a/service/forecast/api_op_ListDatasetImportJobs.go b/service/forecast/api_op_ListDatasetImportJobs.go index 8f6e68ee273..b0cd8fe663e 100644 --- a/service/forecast/api_op_ListDatasetImportJobs.go +++ b/service/forecast/api_op_ListDatasetImportJobs.go @@ -52,7 +52,7 @@ type ListDatasetImportJobsInput struct { // example, to list all dataset import jobs whose status is ACTIVE, you specify the // following filter: "Filters": [ { "Condition": "IS", "Key": "Status", "Value": // "ACTIVE" } ] - Filters []*types.Filter + Filters []types.Filter // The number of items to return in the response. MaxResults *int32 @@ -66,7 +66,7 @@ type ListDatasetImportJobsInput struct { type ListDatasetImportJobsOutput struct { // An array of objects that summarize each dataset import job's properties. - DatasetImportJobs []*types.DatasetImportJobSummary + DatasetImportJobs []types.DatasetImportJobSummary // If the response is truncated, Amazon Forecast returns this token. To retrieve // the next set of results, use the token in the next request. diff --git a/service/forecast/api_op_ListDatasets.go b/service/forecast/api_op_ListDatasets.go index eb041271278..95c701b0f30 100644 --- a/service/forecast/api_op_ListDatasets.go +++ b/service/forecast/api_op_ListDatasets.go @@ -44,7 +44,7 @@ type ListDatasetsInput struct { type ListDatasetsOutput struct { // An array of objects that summarize each dataset's properties. - Datasets []*types.DatasetSummary + Datasets []types.DatasetSummary // If the response is truncated, Amazon Forecast returns this token. To retrieve // the next set of results, use the token in the next request. diff --git a/service/forecast/api_op_ListForecastExportJobs.go b/service/forecast/api_op_ListForecastExportJobs.go index 480088286d4..2b108d9b9c2 100644 --- a/service/forecast/api_op_ListForecastExportJobs.go +++ b/service/forecast/api_op_ListForecastExportJobs.go @@ -53,7 +53,7 @@ type ListForecastExportJobsInput struct { // named electricityforecast, specify the following filter: "Filters": [ { // "Condition": "IS", "Key": "ForecastArn", "Value": // "arn:aws:forecast:us-west-2::forecast/electricityforecast" } ] - Filters []*types.Filter + Filters []types.Filter // The number of items to return in the response. MaxResults *int32 @@ -67,7 +67,7 @@ type ListForecastExportJobsInput struct { type ListForecastExportJobsOutput struct { // An array of objects that summarize each export job's properties. - ForecastExportJobs []*types.ForecastExportJobSummary + ForecastExportJobs []types.ForecastExportJobSummary // If the response is truncated, Amazon Forecast returns this token. To retrieve // the next set of results, use the token in the next request. diff --git a/service/forecast/api_op_ListForecasts.go b/service/forecast/api_op_ListForecasts.go index f8358b9c279..6eab765186d 100644 --- a/service/forecast/api_op_ListForecasts.go +++ b/service/forecast/api_op_ListForecasts.go @@ -52,7 +52,7 @@ type ListForecastsInput struct { // For example, to list all forecasts whose status is // not ACTIVE, you would specify: "Filters": [ { "Condition": "IS_NOT", "Key": // "Status", "Value": "ACTIVE" } ] - Filters []*types.Filter + Filters []types.Filter // The number of items to return in the response. MaxResults *int32 @@ -66,7 +66,7 @@ type ListForecastsInput struct { type ListForecastsOutput struct { // An array of objects that summarize each forecast's properties. - Forecasts []*types.ForecastSummary + Forecasts []types.ForecastSummary // If the response is truncated, Amazon Forecast returns this token. To retrieve // the next set of results, use the token in the next request. diff --git a/service/forecast/api_op_ListPredictors.go b/service/forecast/api_op_ListPredictors.go index c529e8cc847..bb4e6c9276e 100644 --- a/service/forecast/api_op_ListPredictors.go +++ b/service/forecast/api_op_ListPredictors.go @@ -52,7 +52,7 @@ type ListPredictorsInput struct { // For example, to list all predictors whose status is ACTIVE, you would // specify: "Filters": [ { "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } // ] - Filters []*types.Filter + Filters []types.Filter // The number of items to return in the response. MaxResults *int32 @@ -70,7 +70,7 @@ type ListPredictorsOutput struct { NextToken *string // An array of objects that summarize each predictor's properties. - Predictors []*types.PredictorSummary + Predictors []types.PredictorSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/forecast/api_op_ListTagsForResource.go b/service/forecast/api_op_ListTagsForResource.go index faa511c607a..551d4ea9de1 100644 --- a/service/forecast/api_op_ListTagsForResource.go +++ b/service/forecast/api_op_ListTagsForResource.go @@ -40,7 +40,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags for the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/forecast/api_op_TagResource.go b/service/forecast/api_op_TagResource.go index e30e836cd23..cf7b71878b6 100644 --- a/service/forecast/api_op_TagResource.go +++ b/service/forecast/api_op_TagResource.go @@ -70,7 +70,7 @@ type TagResourceInput struct { // prefix of aws do not count against your tags per resource limit. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/forecast/api_op_UntagResource.go b/service/forecast/api_op_UntagResource.go index 9b6d02c4c81..f9766e9f399 100644 --- a/service/forecast/api_op_UntagResource.go +++ b/service/forecast/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // The keys of the tags to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/forecast/api_op_UpdateDatasetGroup.go b/service/forecast/api_op_UpdateDatasetGroup.go index 022dd5f36fb..e7a1817eb91 100644 --- a/service/forecast/api_op_UpdateDatasetGroup.go +++ b/service/forecast/api_op_UpdateDatasetGroup.go @@ -34,7 +34,7 @@ type UpdateDatasetGroupInput struct { // dataset group. // // This member is required. - DatasetArns []*string + DatasetArns []string // The ARN of the dataset group. // diff --git a/service/forecast/deserializers.go b/service/forecast/deserializers.go index 250d00be4e2..032fe7822f8 100644 --- a/service/forecast/deserializers.go +++ b/service/forecast/deserializers.go @@ -3604,7 +3604,7 @@ func awsAwsjson11_deserializeErrorResourceNotFoundException(response *smithyhttp return output } -func awsAwsjson11_deserializeDocumentArnList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3617,21 +3617,21 @@ func awsAwsjson11_deserializeDocumentArnList(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -3668,7 +3668,7 @@ func awsAwsjson11_deserializeDocumentCategoricalParameterRange(v **types.Categor if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Values": @@ -3685,7 +3685,7 @@ func awsAwsjson11_deserializeDocumentCategoricalParameterRange(v **types.Categor return nil } -func awsAwsjson11_deserializeDocumentCategoricalParameterRanges(v *[]*types.CategoricalParameterRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentCategoricalParameterRanges(v *[]types.CategoricalParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3698,18 +3698,20 @@ func awsAwsjson11_deserializeDocumentCategoricalParameterRanges(v *[]*types.Cate return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CategoricalParameterRange + var cv []types.CategoricalParameterRange if *v == nil { - cv = []*types.CategoricalParameterRange{} + cv = []types.CategoricalParameterRange{} } else { cv = *v } for _, value := range shape { - var col *types.CategoricalParameterRange - if err := awsAwsjson11_deserializeDocumentCategoricalParameterRange(&col, value); err != nil { + var col types.CategoricalParameterRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCategoricalParameterRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3749,7 +3751,7 @@ func awsAwsjson11_deserializeDocumentContinuousParameterRange(v **types.Continuo if err != nil { return err } - sv.MaxValue = &f64 + sv.MaxValue = ptr.Float64(f64) } case "MinValue": @@ -3762,7 +3764,7 @@ func awsAwsjson11_deserializeDocumentContinuousParameterRange(v **types.Continuo if err != nil { return err } - sv.MinValue = &f64 + sv.MinValue = ptr.Float64(f64) } case "Name": @@ -3771,7 +3773,7 @@ func awsAwsjson11_deserializeDocumentContinuousParameterRange(v **types.Continuo if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ScalingType": @@ -3792,7 +3794,7 @@ func awsAwsjson11_deserializeDocumentContinuousParameterRange(v **types.Continuo return nil } -func awsAwsjson11_deserializeDocumentContinuousParameterRanges(v *[]*types.ContinuousParameterRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentContinuousParameterRanges(v *[]types.ContinuousParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3805,18 +3807,20 @@ func awsAwsjson11_deserializeDocumentContinuousParameterRanges(v *[]*types.Conti return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContinuousParameterRange + var cv []types.ContinuousParameterRange if *v == nil { - cv = []*types.ContinuousParameterRange{} + cv = []types.ContinuousParameterRange{} } else { cv = *v } for _, value := range shape { - var col *types.ContinuousParameterRange - if err := awsAwsjson11_deserializeDocumentContinuousParameterRange(&col, value); err != nil { + var col types.ContinuousParameterRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContinuousParameterRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3860,7 +3864,7 @@ func awsAwsjson11_deserializeDocumentDataDestination(v **types.DataDestination, return nil } -func awsAwsjson11_deserializeDocumentDatasetGroups(v *[]*types.DatasetGroupSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentDatasetGroups(v *[]types.DatasetGroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3873,18 +3877,20 @@ func awsAwsjson11_deserializeDocumentDatasetGroups(v *[]*types.DatasetGroupSumma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetGroupSummary + var cv []types.DatasetGroupSummary if *v == nil { - cv = []*types.DatasetGroupSummary{} + cv = []types.DatasetGroupSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetGroupSummary - if err := awsAwsjson11_deserializeDocumentDatasetGroupSummary(&col, value); err != nil { + var col types.DatasetGroupSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDatasetGroupSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3933,7 +3939,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroupSummary(v **types.DatasetGroupS if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "DatasetGroupName": @@ -3942,7 +3948,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroupSummary(v **types.DatasetGroupS if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.DatasetGroupName = &jtv + sv.DatasetGroupName = ptr.String(jtv) } case "LastModificationTime": @@ -3967,7 +3973,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroupSummary(v **types.DatasetGroupS return nil } -func awsAwsjson11_deserializeDocumentDatasetImportJobs(v *[]*types.DatasetImportJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentDatasetImportJobs(v *[]types.DatasetImportJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3980,18 +3986,20 @@ func awsAwsjson11_deserializeDocumentDatasetImportJobs(v *[]*types.DatasetImport return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetImportJobSummary + var cv []types.DatasetImportJobSummary if *v == nil { - cv = []*types.DatasetImportJobSummary{} + cv = []types.DatasetImportJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetImportJobSummary - if err := awsAwsjson11_deserializeDocumentDatasetImportJobSummary(&col, value); err != nil { + var col types.DatasetImportJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDatasetImportJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4040,7 +4048,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJobSummary(v **types.DatasetIm if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetImportJobArn = &jtv + sv.DatasetImportJobArn = ptr.String(jtv) } case "DatasetImportJobName": @@ -4049,7 +4057,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJobSummary(v **types.DatasetIm if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.DatasetImportJobName = &jtv + sv.DatasetImportJobName = ptr.String(jtv) } case "DataSource": @@ -4076,7 +4084,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJobSummary(v **types.DatasetIm if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Status": @@ -4085,7 +4093,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJobSummary(v **types.DatasetIm if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -4097,7 +4105,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJobSummary(v **types.DatasetIm return nil } -func awsAwsjson11_deserializeDocumentDatasets(v *[]*types.DatasetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentDatasets(v *[]types.DatasetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4110,18 +4118,20 @@ func awsAwsjson11_deserializeDocumentDatasets(v *[]*types.DatasetSummary, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetSummary + var cv []types.DatasetSummary if *v == nil { - cv = []*types.DatasetSummary{} + cv = []types.DatasetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetSummary - if err := awsAwsjson11_deserializeDocumentDatasetSummary(&col, value); err != nil { + var col types.DatasetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDatasetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4170,7 +4180,7 @@ func awsAwsjson11_deserializeDocumentDatasetSummary(v **types.DatasetSummary, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetArn = &jtv + sv.DatasetArn = ptr.String(jtv) } case "DatasetName": @@ -4179,7 +4189,7 @@ func awsAwsjson11_deserializeDocumentDatasetSummary(v **types.DatasetSummary, va if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.DatasetName = &jtv + sv.DatasetName = ptr.String(jtv) } case "DatasetType": @@ -4286,7 +4296,7 @@ func awsAwsjson11_deserializeDocumentEncryptionConfig(v **types.EncryptionConfig if !ok { return fmt.Errorf("expected KMSKeyArn to be of type string, got %T instead", value) } - sv.KMSKeyArn = &jtv + sv.KMSKeyArn = ptr.String(jtv) } case "RoleArn": @@ -4295,7 +4305,7 @@ func awsAwsjson11_deserializeDocumentEncryptionConfig(v **types.EncryptionConfig if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -4392,7 +4402,7 @@ func awsAwsjson11_deserializeDocumentEvaluationResult(v **types.EvaluationResult if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AlgorithmArn = &jtv + sv.AlgorithmArn = ptr.String(jtv) } case "TestWindows": @@ -4437,7 +4447,7 @@ func awsAwsjson11_deserializeDocumentFeaturization(v **types.Featurization, valu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "FeaturizationPipeline": @@ -4492,7 +4502,7 @@ func awsAwsjson11_deserializeDocumentFeaturizationConfig(v **types.Featurization if !ok { return fmt.Errorf("expected Frequency to be of type string, got %T instead", value) } - sv.ForecastFrequency = &jtv + sv.ForecastFrequency = ptr.String(jtv) } default: @@ -4549,7 +4559,7 @@ func awsAwsjson11_deserializeDocumentFeaturizationMethod(v **types.Featurization return nil } -func awsAwsjson11_deserializeDocumentFeaturizationMethodParameters(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentFeaturizationMethodParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4562,21 +4572,21 @@ func awsAwsjson11_deserializeDocumentFeaturizationMethodParameters(v *map[string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -4585,7 +4595,7 @@ func awsAwsjson11_deserializeDocumentFeaturizationMethodParameters(v *map[string return nil } -func awsAwsjson11_deserializeDocumentFeaturizationPipeline(v *[]*types.FeaturizationMethod, value interface{}) error { +func awsAwsjson11_deserializeDocumentFeaturizationPipeline(v *[]types.FeaturizationMethod, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4598,18 +4608,20 @@ func awsAwsjson11_deserializeDocumentFeaturizationPipeline(v *[]*types.Featuriza return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FeaturizationMethod + var cv []types.FeaturizationMethod if *v == nil { - cv = []*types.FeaturizationMethod{} + cv = []types.FeaturizationMethod{} } else { cv = *v } for _, value := range shape { - var col *types.FeaturizationMethod - if err := awsAwsjson11_deserializeDocumentFeaturizationMethod(&col, value); err != nil { + var col types.FeaturizationMethod + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFeaturizationMethod(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4617,7 +4629,7 @@ func awsAwsjson11_deserializeDocumentFeaturizationPipeline(v *[]*types.Featuriza return nil } -func awsAwsjson11_deserializeDocumentFeaturizations(v *[]*types.Featurization, value interface{}) error { +func awsAwsjson11_deserializeDocumentFeaturizations(v *[]types.Featurization, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4630,18 +4642,20 @@ func awsAwsjson11_deserializeDocumentFeaturizations(v *[]*types.Featurization, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Featurization + var cv []types.Featurization if *v == nil { - cv = []*types.Featurization{} + cv = []types.Featurization{} } else { cv = *v } for _, value := range shape { - var col *types.Featurization - if err := awsAwsjson11_deserializeDocumentFeaturization(&col, value); err != nil { + var col types.Featurization + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFeaturization(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4649,7 +4663,7 @@ func awsAwsjson11_deserializeDocumentFeaturizations(v *[]*types.Featurization, v return nil } -func awsAwsjson11_deserializeDocumentFieldStatistics(v *map[string]*types.Statistics, value interface{}) error { +func awsAwsjson11_deserializeDocumentFieldStatistics(v *map[string]types.Statistics, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4662,18 +4676,21 @@ func awsAwsjson11_deserializeDocumentFieldStatistics(v *map[string]*types.Statis return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.Statistics + var mv map[string]types.Statistics if *v == nil { - mv = map[string]*types.Statistics{} + mv = map[string]types.Statistics{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.Statistics - if err := awsAwsjson11_deserializeDocumentStatistics(&parsedVal, value); err != nil { + var parsedVal types.Statistics + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentStatistics(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -4681,7 +4698,7 @@ func awsAwsjson11_deserializeDocumentFieldStatistics(v *map[string]*types.Statis return nil } -func awsAwsjson11_deserializeDocumentForecastDimensions(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentForecastDimensions(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4694,21 +4711,21 @@ func awsAwsjson11_deserializeDocumentForecastDimensions(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4717,7 +4734,7 @@ func awsAwsjson11_deserializeDocumentForecastDimensions(v *[]*string, value inte return nil } -func awsAwsjson11_deserializeDocumentForecastExportJobs(v *[]*types.ForecastExportJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentForecastExportJobs(v *[]types.ForecastExportJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4730,18 +4747,20 @@ func awsAwsjson11_deserializeDocumentForecastExportJobs(v *[]*types.ForecastExpo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ForecastExportJobSummary + var cv []types.ForecastExportJobSummary if *v == nil { - cv = []*types.ForecastExportJobSummary{} + cv = []types.ForecastExportJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ForecastExportJobSummary - if err := awsAwsjson11_deserializeDocumentForecastExportJobSummary(&col, value); err != nil { + var col types.ForecastExportJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentForecastExportJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4795,7 +4814,7 @@ func awsAwsjson11_deserializeDocumentForecastExportJobSummary(v **types.Forecast if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ForecastExportJobArn = &jtv + sv.ForecastExportJobArn = ptr.String(jtv) } case "ForecastExportJobName": @@ -4804,7 +4823,7 @@ func awsAwsjson11_deserializeDocumentForecastExportJobSummary(v **types.Forecast if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ForecastExportJobName = &jtv + sv.ForecastExportJobName = ptr.String(jtv) } case "LastModificationTime": @@ -4826,7 +4845,7 @@ func awsAwsjson11_deserializeDocumentForecastExportJobSummary(v **types.Forecast if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Status": @@ -4835,7 +4854,7 @@ func awsAwsjson11_deserializeDocumentForecastExportJobSummary(v **types.Forecast if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -4847,7 +4866,7 @@ func awsAwsjson11_deserializeDocumentForecastExportJobSummary(v **types.Forecast return nil } -func awsAwsjson11_deserializeDocumentForecasts(v *[]*types.ForecastSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentForecasts(v *[]types.ForecastSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4860,18 +4879,20 @@ func awsAwsjson11_deserializeDocumentForecasts(v *[]*types.ForecastSummary, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ForecastSummary + var cv []types.ForecastSummary if *v == nil { - cv = []*types.ForecastSummary{} + cv = []types.ForecastSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ForecastSummary - if err := awsAwsjson11_deserializeDocumentForecastSummary(&col, value); err != nil { + var col types.ForecastSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentForecastSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4920,7 +4941,7 @@ func awsAwsjson11_deserializeDocumentForecastSummary(v **types.ForecastSummary, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "ForecastArn": @@ -4929,7 +4950,7 @@ func awsAwsjson11_deserializeDocumentForecastSummary(v **types.ForecastSummary, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ForecastArn = &jtv + sv.ForecastArn = ptr.String(jtv) } case "ForecastName": @@ -4938,7 +4959,7 @@ func awsAwsjson11_deserializeDocumentForecastSummary(v **types.ForecastSummary, if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ForecastName = &jtv + sv.ForecastName = ptr.String(jtv) } case "LastModificationTime": @@ -4960,7 +4981,7 @@ func awsAwsjson11_deserializeDocumentForecastSummary(v **types.ForecastSummary, if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "PredictorArn": @@ -4969,7 +4990,7 @@ func awsAwsjson11_deserializeDocumentForecastSummary(v **types.ForecastSummary, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PredictorArn = &jtv + sv.PredictorArn = ptr.String(jtv) } case "Status": @@ -4978,7 +4999,7 @@ func awsAwsjson11_deserializeDocumentForecastSummary(v **types.ForecastSummary, if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -4990,7 +5011,7 @@ func awsAwsjson11_deserializeDocumentForecastSummary(v **types.ForecastSummary, return nil } -func awsAwsjson11_deserializeDocumentForecastTypes(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentForecastTypes(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5003,21 +5024,21 @@ func awsAwsjson11_deserializeDocumentForecastTypes(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ForecastType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5090,7 +5111,7 @@ func awsAwsjson11_deserializeDocumentInputDataConfig(v **types.InputDataConfig, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "SupplementaryFeatures": @@ -5161,7 +5182,7 @@ func awsAwsjson11_deserializeDocumentIntegerParameterRange(v **types.IntegerPara if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ScalingType": @@ -5182,7 +5203,7 @@ func awsAwsjson11_deserializeDocumentIntegerParameterRange(v **types.IntegerPara return nil } -func awsAwsjson11_deserializeDocumentIntegerParameterRanges(v *[]*types.IntegerParameterRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentIntegerParameterRanges(v *[]types.IntegerParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5195,18 +5216,20 @@ func awsAwsjson11_deserializeDocumentIntegerParameterRanges(v *[]*types.IntegerP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IntegerParameterRange + var cv []types.IntegerParameterRange if *v == nil { - cv = []*types.IntegerParameterRange{} + cv = []types.IntegerParameterRange{} } else { cv = *v } for _, value := range shape { - var col *types.IntegerParameterRange - if err := awsAwsjson11_deserializeDocumentIntegerParameterRange(&col, value); err != nil { + var col types.IntegerParameterRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIntegerParameterRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5242,7 +5265,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5282,7 +5305,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5322,7 +5345,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5366,7 +5389,7 @@ func awsAwsjson11_deserializeDocumentMetrics(v **types.Metrics, value interface{ if err != nil { return err } - sv.RMSE = &f64 + sv.RMSE = ptr.Float64(f64) } case "WeightedQuantileLosses": @@ -5429,7 +5452,7 @@ func awsAwsjson11_deserializeDocumentParameterRanges(v **types.ParameterRanges, return nil } -func awsAwsjson11_deserializeDocumentPredictorEvaluationResults(v *[]*types.EvaluationResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentPredictorEvaluationResults(v *[]types.EvaluationResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5442,18 +5465,20 @@ func awsAwsjson11_deserializeDocumentPredictorEvaluationResults(v *[]*types.Eval return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EvaluationResult + var cv []types.EvaluationResult if *v == nil { - cv = []*types.EvaluationResult{} + cv = []types.EvaluationResult{} } else { cv = *v } for _, value := range shape { - var col *types.EvaluationResult - if err := awsAwsjson11_deserializeDocumentEvaluationResult(&col, value); err != nil { + var col types.EvaluationResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEvaluationResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5489,7 +5514,7 @@ func awsAwsjson11_deserializeDocumentPredictorExecution(v **types.PredictorExecu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AlgorithmArn = &jtv + sv.AlgorithmArn = ptr.String(jtv) } case "TestWindows": @@ -5542,7 +5567,7 @@ func awsAwsjson11_deserializeDocumentPredictorExecutionDetails(v **types.Predict return nil } -func awsAwsjson11_deserializeDocumentPredictorExecutions(v *[]*types.PredictorExecution, value interface{}) error { +func awsAwsjson11_deserializeDocumentPredictorExecutions(v *[]types.PredictorExecution, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5555,18 +5580,20 @@ func awsAwsjson11_deserializeDocumentPredictorExecutions(v *[]*types.PredictorEx return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PredictorExecution + var cv []types.PredictorExecution if *v == nil { - cv = []*types.PredictorExecution{} + cv = []types.PredictorExecution{} } else { cv = *v } for _, value := range shape { - var col *types.PredictorExecution - if err := awsAwsjson11_deserializeDocumentPredictorExecution(&col, value); err != nil { + var col types.PredictorExecution + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPredictorExecution(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5574,7 +5601,7 @@ func awsAwsjson11_deserializeDocumentPredictorExecutions(v *[]*types.PredictorEx return nil } -func awsAwsjson11_deserializeDocumentPredictors(v *[]*types.PredictorSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentPredictors(v *[]types.PredictorSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5587,18 +5614,20 @@ func awsAwsjson11_deserializeDocumentPredictors(v *[]*types.PredictorSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PredictorSummary + var cv []types.PredictorSummary if *v == nil { - cv = []*types.PredictorSummary{} + cv = []types.PredictorSummary{} } else { cv = *v } for _, value := range shape { - var col *types.PredictorSummary - if err := awsAwsjson11_deserializeDocumentPredictorSummary(&col, value); err != nil { + var col types.PredictorSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPredictorSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5647,7 +5676,7 @@ func awsAwsjson11_deserializeDocumentPredictorSummary(v **types.PredictorSummary if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "LastModificationTime": @@ -5669,7 +5698,7 @@ func awsAwsjson11_deserializeDocumentPredictorSummary(v **types.PredictorSummary if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "PredictorArn": @@ -5678,7 +5707,7 @@ func awsAwsjson11_deserializeDocumentPredictorSummary(v **types.PredictorSummary if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.PredictorArn = &jtv + sv.PredictorArn = ptr.String(jtv) } case "PredictorName": @@ -5687,7 +5716,7 @@ func awsAwsjson11_deserializeDocumentPredictorSummary(v **types.PredictorSummary if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.PredictorName = &jtv + sv.PredictorName = ptr.String(jtv) } case "Status": @@ -5696,7 +5725,7 @@ func awsAwsjson11_deserializeDocumentPredictorSummary(v **types.PredictorSummary if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -5736,7 +5765,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5776,7 +5805,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5816,7 +5845,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5856,7 +5885,7 @@ func awsAwsjson11_deserializeDocumentS3Config(v **types.S3Config, value interfac if !ok { return fmt.Errorf("expected KMSKeyArn to be of type string, got %T instead", value) } - sv.KMSKeyArn = &jtv + sv.KMSKeyArn = ptr.String(jtv) } case "Path": @@ -5865,7 +5894,7 @@ func awsAwsjson11_deserializeDocumentS3Config(v **types.S3Config, value interfac if !ok { return fmt.Errorf("expected S3Path to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "RoleArn": @@ -5874,7 +5903,7 @@ func awsAwsjson11_deserializeDocumentS3Config(v **types.S3Config, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -5950,7 +5979,7 @@ func awsAwsjson11_deserializeDocumentSchemaAttribute(v **types.SchemaAttribute, if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "AttributeType": @@ -5971,7 +6000,7 @@ func awsAwsjson11_deserializeDocumentSchemaAttribute(v **types.SchemaAttribute, return nil } -func awsAwsjson11_deserializeDocumentSchemaAttributes(v *[]*types.SchemaAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentSchemaAttributes(v *[]types.SchemaAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5984,18 +6013,20 @@ func awsAwsjson11_deserializeDocumentSchemaAttributes(v *[]*types.SchemaAttribut return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SchemaAttribute + var cv []types.SchemaAttribute if *v == nil { - cv = []*types.SchemaAttribute{} + cv = []types.SchemaAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.SchemaAttribute - if err := awsAwsjson11_deserializeDocumentSchemaAttribute(&col, value); err != nil { + var col types.SchemaAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSchemaAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6035,7 +6066,7 @@ func awsAwsjson11_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.Avg = &f64 + sv.Avg = ptr.Float64(f64) } case "Count": @@ -6096,7 +6127,7 @@ func awsAwsjson11_deserializeDocumentStatistics(v **types.Statistics, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Max = &jtv + sv.Max = ptr.String(jtv) } case "Min": @@ -6105,7 +6136,7 @@ func awsAwsjson11_deserializeDocumentStatistics(v **types.Statistics, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Min = &jtv + sv.Min = ptr.String(jtv) } case "Stddev": @@ -6118,7 +6149,7 @@ func awsAwsjson11_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.Stddev = &f64 + sv.Stddev = ptr.Float64(f64) } default: @@ -6158,7 +6189,7 @@ func awsAwsjson11_deserializeDocumentSupplementaryFeature(v **types.Supplementar if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Value": @@ -6167,7 +6198,7 @@ func awsAwsjson11_deserializeDocumentSupplementaryFeature(v **types.Supplementar if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6179,7 +6210,7 @@ func awsAwsjson11_deserializeDocumentSupplementaryFeature(v **types.Supplementar return nil } -func awsAwsjson11_deserializeDocumentSupplementaryFeatures(v *[]*types.SupplementaryFeature, value interface{}) error { +func awsAwsjson11_deserializeDocumentSupplementaryFeatures(v *[]types.SupplementaryFeature, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6192,18 +6223,20 @@ func awsAwsjson11_deserializeDocumentSupplementaryFeatures(v *[]*types.Supplemen return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SupplementaryFeature + var cv []types.SupplementaryFeature if *v == nil { - cv = []*types.SupplementaryFeature{} + cv = []types.SupplementaryFeature{} } else { cv = *v } for _, value := range shape { - var col *types.SupplementaryFeature - if err := awsAwsjson11_deserializeDocumentSupplementaryFeature(&col, value); err != nil { + var col types.SupplementaryFeature + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSupplementaryFeature(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6239,7 +6272,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -6248,7 +6281,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6260,7 +6293,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6273,18 +6306,20 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6292,7 +6327,7 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return nil } -func awsAwsjson11_deserializeDocumentTestWindowDetails(v *[]*types.TestWindowSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentTestWindowDetails(v *[]types.TestWindowSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6305,18 +6340,20 @@ func awsAwsjson11_deserializeDocumentTestWindowDetails(v *[]*types.TestWindowSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TestWindowSummary + var cv []types.TestWindowSummary if *v == nil { - cv = []*types.TestWindowSummary{} + cv = []types.TestWindowSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TestWindowSummary - if err := awsAwsjson11_deserializeDocumentTestWindowSummary(&col, value); err != nil { + var col types.TestWindowSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTestWindowSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6324,7 +6361,7 @@ func awsAwsjson11_deserializeDocumentTestWindowDetails(v *[]*types.TestWindowSum return nil } -func awsAwsjson11_deserializeDocumentTestWindows(v *[]*types.WindowSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentTestWindows(v *[]types.WindowSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6337,18 +6374,20 @@ func awsAwsjson11_deserializeDocumentTestWindows(v *[]*types.WindowSummary, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WindowSummary + var cv []types.WindowSummary if *v == nil { - cv = []*types.WindowSummary{} + cv = []types.WindowSummary{} } else { cv = *v } for _, value := range shape { - var col *types.WindowSummary - if err := awsAwsjson11_deserializeDocumentWindowSummary(&col, value); err != nil { + var col types.WindowSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWindowSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6384,7 +6423,7 @@ func awsAwsjson11_deserializeDocumentTestWindowSummary(v **types.TestWindowSumma if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Status": @@ -6393,7 +6432,7 @@ func awsAwsjson11_deserializeDocumentTestWindowSummary(v **types.TestWindowSumma if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "TestWindowEnd": @@ -6431,7 +6470,7 @@ func awsAwsjson11_deserializeDocumentTestWindowSummary(v **types.TestWindowSumma return nil } -func awsAwsjson11_deserializeDocumentTrainingParameters(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrainingParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6444,21 +6483,21 @@ func awsAwsjson11_deserializeDocumentTrainingParameters(v *map[string]*string, v return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -6467,7 +6506,7 @@ func awsAwsjson11_deserializeDocumentTrainingParameters(v *map[string]*string, v return nil } -func awsAwsjson11_deserializeDocumentValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6480,21 +6519,21 @@ func awsAwsjson11_deserializeDocumentValues(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6535,7 +6574,7 @@ func awsAwsjson11_deserializeDocumentWeightedQuantileLoss(v **types.WeightedQuan if err != nil { return err } - sv.LossValue = &f64 + sv.LossValue = ptr.Float64(f64) } case "Quantile": @@ -6548,7 +6587,7 @@ func awsAwsjson11_deserializeDocumentWeightedQuantileLoss(v **types.WeightedQuan if err != nil { return err } - sv.Quantile = &f64 + sv.Quantile = ptr.Float64(f64) } default: @@ -6560,7 +6599,7 @@ func awsAwsjson11_deserializeDocumentWeightedQuantileLoss(v **types.WeightedQuan return nil } -func awsAwsjson11_deserializeDocumentWeightedQuantileLosses(v *[]*types.WeightedQuantileLoss, value interface{}) error { +func awsAwsjson11_deserializeDocumentWeightedQuantileLosses(v *[]types.WeightedQuantileLoss, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6573,18 +6612,20 @@ func awsAwsjson11_deserializeDocumentWeightedQuantileLosses(v *[]*types.Weighted return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WeightedQuantileLoss + var cv []types.WeightedQuantileLoss if *v == nil { - cv = []*types.WeightedQuantileLoss{} + cv = []types.WeightedQuantileLoss{} } else { cv = *v } for _, value := range shape { - var col *types.WeightedQuantileLoss - if err := awsAwsjson11_deserializeDocumentWeightedQuantileLoss(&col, value); err != nil { + var col types.WeightedQuantileLoss + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWeightedQuantileLoss(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6704,7 +6745,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDatasetGroupOutput(v **CreateDatase if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } default: @@ -6744,7 +6785,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDatasetImportJobOutput(v **CreateDa if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetImportJobArn = &jtv + sv.DatasetImportJobArn = ptr.String(jtv) } default: @@ -6784,7 +6825,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDatasetOutput(v **CreateDatasetOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetArn = &jtv + sv.DatasetArn = ptr.String(jtv) } default: @@ -6824,7 +6865,7 @@ func awsAwsjson11_deserializeOpDocumentCreateForecastExportJobOutput(v **CreateF if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ForecastExportJobArn = &jtv + sv.ForecastExportJobArn = ptr.String(jtv) } default: @@ -6864,7 +6905,7 @@ func awsAwsjson11_deserializeOpDocumentCreateForecastOutput(v **CreateForecastOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ForecastArn = &jtv + sv.ForecastArn = ptr.String(jtv) } default: @@ -6904,7 +6945,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePredictorOutput(v **CreatePredictor if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.PredictorArn = &jtv + sv.PredictorArn = ptr.String(jtv) } default: @@ -7148,7 +7189,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetGroupOutput(v **DescribeDa if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "DatasetGroupName": @@ -7157,7 +7198,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetGroupOutput(v **DescribeDa if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.DatasetGroupName = &jtv + sv.DatasetGroupName = ptr.String(jtv) } case "Domain": @@ -7188,7 +7229,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetGroupOutput(v **DescribeDa if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -7241,7 +7282,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetImportJobOutput(v **Descri if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetArn = &jtv + sv.DatasetArn = ptr.String(jtv) } case "DatasetImportJobArn": @@ -7250,7 +7291,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetImportJobOutput(v **Descri if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetImportJobArn = &jtv + sv.DatasetImportJobArn = ptr.String(jtv) } case "DatasetImportJobName": @@ -7259,7 +7300,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetImportJobOutput(v **Descri if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.DatasetImportJobName = &jtv + sv.DatasetImportJobName = ptr.String(jtv) } case "DataSize": @@ -7272,7 +7313,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetImportJobOutput(v **Descri if err != nil { return err } - sv.DataSize = &f64 + sv.DataSize = ptr.Float64(f64) } case "DataSource": @@ -7304,7 +7345,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetImportJobOutput(v **Descri if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Status": @@ -7313,7 +7354,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetImportJobOutput(v **Descri if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "TimestampFormat": @@ -7322,7 +7363,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetImportJobOutput(v **Descri if !ok { return fmt.Errorf("expected TimestampFormat to be of type string, got %T instead", value) } - sv.TimestampFormat = &jtv + sv.TimestampFormat = ptr.String(jtv) } default: @@ -7375,7 +7416,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDataset if !ok { return fmt.Errorf("expected Frequency to be of type string, got %T instead", value) } - sv.DataFrequency = &jtv + sv.DataFrequency = ptr.String(jtv) } case "DatasetArn": @@ -7384,7 +7425,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDataset if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetArn = &jtv + sv.DatasetArn = ptr.String(jtv) } case "DatasetName": @@ -7393,7 +7434,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDataset if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.DatasetName = &jtv + sv.DatasetName = ptr.String(jtv) } case "DatasetType": @@ -7443,7 +7484,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDataset if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -7501,7 +7542,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeForecastExportJobOutput(v **Descr if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ForecastArn = &jtv + sv.ForecastArn = ptr.String(jtv) } case "ForecastExportJobArn": @@ -7510,7 +7551,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeForecastExportJobOutput(v **Descr if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ForecastExportJobArn = &jtv + sv.ForecastExportJobArn = ptr.String(jtv) } case "ForecastExportJobName": @@ -7519,7 +7560,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeForecastExportJobOutput(v **Descr if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ForecastExportJobName = &jtv + sv.ForecastExportJobName = ptr.String(jtv) } case "LastModificationTime": @@ -7541,7 +7582,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeForecastExportJobOutput(v **Descr if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Status": @@ -7550,7 +7591,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeForecastExportJobOutput(v **Descr if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -7603,7 +7644,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeForecastOutput(v **DescribeForeca if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "ForecastArn": @@ -7612,7 +7653,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeForecastOutput(v **DescribeForeca if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ForecastArn = &jtv + sv.ForecastArn = ptr.String(jtv) } case "ForecastName": @@ -7621,7 +7662,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeForecastOutput(v **DescribeForeca if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ForecastName = &jtv + sv.ForecastName = ptr.String(jtv) } case "ForecastTypes": @@ -7648,7 +7689,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeForecastOutput(v **DescribeForeca if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "PredictorArn": @@ -7657,7 +7698,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeForecastOutput(v **DescribeForeca if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.PredictorArn = &jtv + sv.PredictorArn = ptr.String(jtv) } case "Status": @@ -7666,7 +7707,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeForecastOutput(v **DescribeForeca if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -7706,7 +7747,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePredictorOutput(v **DescribePredi if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AlgorithmArn = &jtv + sv.AlgorithmArn = ptr.String(jtv) } case "AutoMLAlgorithmArns": @@ -7789,7 +7830,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePredictorOutput(v **DescribePredi if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "PerformAutoML": @@ -7798,7 +7839,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePredictorOutput(v **DescribePredi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.PerformAutoML = &jtv + sv.PerformAutoML = ptr.Bool(jtv) } case "PerformHPO": @@ -7807,7 +7848,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePredictorOutput(v **DescribePredi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.PerformHPO = &jtv + sv.PerformHPO = ptr.Bool(jtv) } case "PredictorArn": @@ -7816,7 +7857,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePredictorOutput(v **DescribePredi if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.PredictorArn = &jtv + sv.PredictorArn = ptr.String(jtv) } case "PredictorExecutionDetails": @@ -7830,7 +7871,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePredictorOutput(v **DescribePredi if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.PredictorName = &jtv + sv.PredictorName = ptr.String(jtv) } case "Status": @@ -7839,7 +7880,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePredictorOutput(v **DescribePredi if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "TrainingParameters": @@ -7925,7 +7966,7 @@ func awsAwsjson11_deserializeOpDocumentListDatasetGroupsOutput(v **ListDatasetGr if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7970,7 +8011,7 @@ func awsAwsjson11_deserializeOpDocumentListDatasetImportJobsOutput(v **ListDatas if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8015,7 +8056,7 @@ func awsAwsjson11_deserializeOpDocumentListDatasetsOutput(v **ListDatasetsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8060,7 +8101,7 @@ func awsAwsjson11_deserializeOpDocumentListForecastExportJobsOutput(v **ListFore if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8105,7 +8146,7 @@ func awsAwsjson11_deserializeOpDocumentListForecastsOutput(v **ListForecastsOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8145,7 +8186,7 @@ func awsAwsjson11_deserializeOpDocumentListPredictorsOutput(v **ListPredictorsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Predictors": diff --git a/service/forecast/go.mod b/service/forecast/go.mod index b531d1794b2..bbd0d6767da 100644 --- a/service/forecast/go.mod +++ b/service/forecast/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/forecast go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/forecast/serializers.go b/service/forecast/serializers.go index d3f7e1ff3dd..3e3e7028952 100644 --- a/service/forecast/serializers.go +++ b/service/forecast/serializers.go @@ -1347,17 +1347,13 @@ func (m *awsAwsjson11_serializeOpUpdateDatasetGroup) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1381,17 +1377,13 @@ func awsAwsjson11_serializeDocumentCategoricalParameterRange(v *types.Categorica return nil } -func awsAwsjson11_serializeDocumentCategoricalParameterRanges(v []*types.CategoricalParameterRange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCategoricalParameterRanges(v []types.CategoricalParameterRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCategoricalParameterRange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCategoricalParameterRange(&v[i], av); err != nil { return err } } @@ -1425,17 +1417,13 @@ func awsAwsjson11_serializeDocumentContinuousParameterRange(v *types.ContinuousP return nil } -func awsAwsjson11_serializeDocumentContinuousParameterRanges(v []*types.ContinuousParameterRange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentContinuousParameterRanges(v []types.ContinuousParameterRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentContinuousParameterRange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentContinuousParameterRange(&v[i], av); err != nil { return err } } @@ -1568,49 +1556,37 @@ func awsAwsjson11_serializeDocumentFeaturizationMethod(v *types.FeaturizationMet return nil } -func awsAwsjson11_serializeDocumentFeaturizationMethodParameters(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFeaturizationMethodParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentFeaturizationPipeline(v []*types.FeaturizationMethod, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFeaturizationPipeline(v []types.FeaturizationMethod, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFeaturizationMethod(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFeaturizationMethod(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentFeaturizations(v []*types.Featurization, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFeaturizations(v []types.Featurization, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFeaturization(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFeaturization(&v[i], av); err != nil { return err } } @@ -1639,49 +1615,37 @@ func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentFilters(v []*types.Filter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilters(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentForecastDimensions(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentForecastDimensions(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentForecastTypes(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentForecastTypes(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1746,17 +1710,13 @@ func awsAwsjson11_serializeDocumentIntegerParameterRange(v *types.IntegerParamet return nil } -func awsAwsjson11_serializeDocumentIntegerParameterRanges(v []*types.IntegerParameterRange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIntegerParameterRanges(v []types.IntegerParameterRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentIntegerParameterRange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentIntegerParameterRange(&v[i], av); err != nil { return err } } @@ -1844,17 +1804,13 @@ func awsAwsjson11_serializeDocumentSchemaAttribute(v *types.SchemaAttribute, val return nil } -func awsAwsjson11_serializeDocumentSchemaAttributes(v []*types.SchemaAttribute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSchemaAttributes(v []types.SchemaAttribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSchemaAttribute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSchemaAttribute(&v[i], av); err != nil { return err } } @@ -1878,17 +1834,13 @@ func awsAwsjson11_serializeDocumentSupplementaryFeature(v *types.SupplementaryFe return nil } -func awsAwsjson11_serializeDocumentSupplementaryFeatures(v []*types.SupplementaryFeature, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSupplementaryFeatures(v []types.SupplementaryFeature, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSupplementaryFeature(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSupplementaryFeature(&v[i], av); err != nil { return err } } @@ -1912,64 +1864,48 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTrainingParameters(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTrainingParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/forecast/types/types.go b/service/forecast/types/types.go index 4c7efe1ec75..93a167035f4 100644 --- a/service/forecast/types/types.go +++ b/service/forecast/types/types.go @@ -18,7 +18,7 @@ type CategoricalParameterRange struct { // A list of the tunable categories for the hyperparameter. // // This member is required. - Values []*string + Values []string } // Specifies a continuous hyperparameter and it's range of tunable values. This @@ -226,7 +226,7 @@ type EvaluationResult struct { // The array of test windows used for evaluating the algorithm. The // NumberOfBacktestWindows from the EvaluationParameters object determines the // number of windows in the array. - TestWindows []*WindowSummary + TestWindows []WindowSummary } // Provides featurization (transformation) information for a dataset field. This @@ -258,7 +258,7 @@ type Featurization struct { // An array of one FeaturizationMethod object that specifies the feature // transformation method. - FeaturizationPipeline []*FeaturizationMethod + FeaturizationPipeline []FeaturizationMethod } // In a CreatePredictor operation, the specified algorithm trains a model using the @@ -287,7 +287,7 @@ type FeaturizationConfig struct { // An array of featurization (transformation) information for the fields of a // dataset. - Featurizations []*Featurization + Featurizations []Featurization // An array of dimension (field) names that specify how to group the generated // forecast. For example, suppose that you are generating a forecast for item sales @@ -297,7 +297,7 @@ type FeaturizationConfig struct { // dataset don't need to be specified in the CreatePredictor request. All forecast // dimensions specified in the RELATED_TIME_SERIES dataset must be specified in the // CreatePredictor request. - ForecastDimensions []*string + ForecastDimensions []string } // Provides information about the method that featurizes (transforms) a dataset @@ -345,7 +345,7 @@ type FeaturizationMethod struct { // median, mean, min, max // // * futurefill: zero, value, median, mean, min, max - FeaturizationMethodParameters map[string]*string + FeaturizationMethodParameters map[string]string } // Describes a filter for choosing a subset of objects. Each filter consists of a @@ -483,7 +483,7 @@ type InputDataConfig struct { // An array of supplementary features. The only supported feature is a holiday // calendar. - SupplementaryFeatures []*SupplementaryFeature + SupplementaryFeatures []SupplementaryFeature } // Specifies an integer hyperparameter and it's range of tunable values. This @@ -530,7 +530,7 @@ type Metrics struct { // An array of weighted quantile losses. Quantiles divide a probability // distribution into regions of equal probability. The distribution in this case is // the loss function. - WeightedQuantileLosses []*WeightedQuantileLoss + WeightedQuantileLosses []WeightedQuantileLoss } // Specifies the categorical, continuous, and integer hyperparameters, and their @@ -540,13 +540,13 @@ type Metrics struct { type ParameterRanges struct { // Specifies the tunable range for each categorical hyperparameter. - CategoricalParameterRanges []*CategoricalParameterRange + CategoricalParameterRanges []CategoricalParameterRange // Specifies the tunable range for each continuous hyperparameter. - ContinuousParameterRanges []*ContinuousParameterRange + ContinuousParameterRanges []ContinuousParameterRange // Specifies the tunable range for each integer hyperparameter. - IntegerParameterRanges []*IntegerParameterRange + IntegerParameterRanges []IntegerParameterRange } // The algorithm used to perform a backtest and the status of those tests. @@ -558,7 +558,7 @@ type PredictorExecution struct { // An array of test windows used to evaluate the algorithm. The // NumberOfBacktestWindows from the object determines the number of windows in the // array. - TestWindows []*TestWindowSummary + TestWindows []TestWindowSummary } // Contains details on the backtests performed to evaluate the accuracy of the @@ -570,7 +570,7 @@ type PredictorExecutionDetails struct { // An array of the backtests performed to evaluate the accuracy of the predictor // against a particular algorithm. The NumberOfBacktestWindows from the object // determines the number of windows in the array. - PredictorExecutions []*PredictorExecution + PredictorExecutions []PredictorExecution } // Provides a summary of the predictor properties that are used in the @@ -649,7 +649,7 @@ type S3Config struct { type Schema struct { // An array of attributes specifying the name and type of each field in a dataset. - Attributes []*SchemaAttribute + Attributes []SchemaAttribute } // An attribute of a schema, which defines a dataset field. A schema attribute is diff --git a/service/forecast/validators.go b/service/forecast/validators.go index 9e26ab3f1b4..382c820d388 100644 --- a/service/forecast/validators.go +++ b/service/forecast/validators.go @@ -676,13 +676,13 @@ func validateCategoricalParameterRange(v *types.CategoricalParameterRange) error } } -func validateCategoricalParameterRanges(v []*types.CategoricalParameterRange) error { +func validateCategoricalParameterRanges(v []types.CategoricalParameterRange) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CategoricalParameterRanges"} for i := range v { - if err := validateCategoricalParameterRange(v[i]); err != nil { + if err := validateCategoricalParameterRange(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -714,13 +714,13 @@ func validateContinuousParameterRange(v *types.ContinuousParameterRange) error { } } -func validateContinuousParameterRanges(v []*types.ContinuousParameterRange) error { +func validateContinuousParameterRanges(v []types.ContinuousParameterRange) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ContinuousParameterRanges"} for i := range v { - if err := validateContinuousParameterRange(v[i]); err != nil { + if err := validateContinuousParameterRange(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -842,13 +842,13 @@ func validateFeaturizationMethod(v *types.FeaturizationMethod) error { } } -func validateFeaturizationPipeline(v []*types.FeaturizationMethod) error { +func validateFeaturizationPipeline(v []types.FeaturizationMethod) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FeaturizationPipeline"} for i := range v { - if err := validateFeaturizationMethod(v[i]); err != nil { + if err := validateFeaturizationMethod(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -859,13 +859,13 @@ func validateFeaturizationPipeline(v []*types.FeaturizationMethod) error { } } -func validateFeaturizations(v []*types.Featurization) error { +func validateFeaturizations(v []types.Featurization) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Featurizations"} for i := range v { - if err := validateFeaturization(v[i]); err != nil { + if err := validateFeaturization(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -897,13 +897,13 @@ func validateFilter(v *types.Filter) error { } } -func validateFilters(v []*types.Filter) error { +func validateFilters(v []types.Filter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Filters"} for i := range v { - if err := validateFilter(v[i]); err != nil { + if err := validateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -972,13 +972,13 @@ func validateIntegerParameterRange(v *types.IntegerParameterRange) error { } } -func validateIntegerParameterRanges(v []*types.IntegerParameterRange) error { +func validateIntegerParameterRanges(v []types.IntegerParameterRange) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "IntegerParameterRanges"} for i := range v { - if err := validateIntegerParameterRange(v[i]); err != nil { + if err := validateIntegerParameterRange(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1052,13 +1052,13 @@ func validateSupplementaryFeature(v *types.SupplementaryFeature) error { } } -func validateSupplementaryFeatures(v []*types.SupplementaryFeature) error { +func validateSupplementaryFeatures(v []types.SupplementaryFeature) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SupplementaryFeatures"} for i := range v { - if err := validateSupplementaryFeature(v[i]); err != nil { + if err := validateSupplementaryFeature(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1087,13 +1087,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/forecastquery/api_op_QueryForecast.go b/service/forecastquery/api_op_QueryForecast.go index 4e20a8d1d2a..b9645f4d706 100644 --- a/service/forecastquery/api_op_QueryForecast.go +++ b/service/forecastquery/api_op_QueryForecast.go @@ -46,7 +46,7 @@ type QueryForecastInput struct { // operation. // // This member is required. - Filters map[string]*string + Filters map[string]string // The Amazon Resource Name (ARN) of the forecast to query. // diff --git a/service/forecastquery/deserializers.go b/service/forecastquery/deserializers.go index 6c25dd099f3..ebaee0c31e7 100644 --- a/service/forecastquery/deserializers.go +++ b/service/forecastquery/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -343,7 +344,7 @@ func awsAwsjson11_deserializeDocumentDataPoint(v **types.DataPoint, value interf if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.Timestamp = &jtv + sv.Timestamp = ptr.String(jtv) } case "Value": @@ -356,7 +357,7 @@ func awsAwsjson11_deserializeDocumentDataPoint(v **types.DataPoint, value interf if err != nil { return err } - sv.Value = &f64 + sv.Value = ptr.Float64(f64) } default: @@ -432,7 +433,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -472,7 +473,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -512,7 +513,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -524,7 +525,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson11_deserializeDocumentPredictions(v *map[string][]*types.DataPoint, value interface{}) error { +func awsAwsjson11_deserializeDocumentPredictions(v *map[string][]types.DataPoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -537,18 +538,20 @@ func awsAwsjson11_deserializeDocumentPredictions(v *map[string][]*types.DataPoin return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*types.DataPoint + var mv map[string][]types.DataPoint if *v == nil { - mv = map[string][]*types.DataPoint{} + mv = map[string][]types.DataPoint{} } else { mv = *v } for key, value := range shape { - var parsedVal []*types.DataPoint - if err := awsAwsjson11_deserializeDocumentTimeSeries(&parsedVal, value); err != nil { + var parsedVal []types.DataPoint + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentTimeSeries(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -584,7 +587,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -624,7 +627,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -636,7 +639,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsAwsjson11_deserializeDocumentTimeSeries(v *[]*types.DataPoint, value interface{}) error { +func awsAwsjson11_deserializeDocumentTimeSeries(v *[]types.DataPoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -649,18 +652,20 @@ func awsAwsjson11_deserializeDocumentTimeSeries(v *[]*types.DataPoint, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataPoint + var cv []types.DataPoint if *v == nil { - cv = []*types.DataPoint{} + cv = []types.DataPoint{} } else { cv = *v } for _, value := range shape { - var col *types.DataPoint - if err := awsAwsjson11_deserializeDocumentDataPoint(&col, value); err != nil { + var col types.DataPoint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataPoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/forecastquery/go.mod b/service/forecastquery/go.mod index fb859e11ee3..5d049c27d2c 100644 --- a/service/forecastquery/go.mod +++ b/service/forecastquery/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/forecastquery go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/forecastquery/serializers.go b/service/forecastquery/serializers.go index 24e0ca3408d..3f6ca161936 100644 --- a/service/forecastquery/serializers.go +++ b/service/forecastquery/serializers.go @@ -58,17 +58,13 @@ func (m *awsAwsjson11_serializeOpQueryForecast) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentFilters(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/forecastquery/types/types.go b/service/forecastquery/types/types.go index 52f9db516e8..88d812e0bd9 100644 --- a/service/forecastquery/types/types.go +++ b/service/forecastquery/types/types.go @@ -30,5 +30,5 @@ type Forecast struct { // (https://docs.aws.amazon.com/forecast/latest/dg/API_CreateForecast.html) // operation to change the values. The values will vary depending on how this is // set, with a minimum of 1 and a maximum of 5. - Predictions map[string][]*DataPoint + Predictions map[string][]DataPoint } diff --git a/service/frauddetector/api_op_BatchCreateVariable.go b/service/frauddetector/api_op_BatchCreateVariable.go index 10221645cac..2910e3850e1 100644 --- a/service/frauddetector/api_op_BatchCreateVariable.go +++ b/service/frauddetector/api_op_BatchCreateVariable.go @@ -32,16 +32,16 @@ type BatchCreateVariableInput struct { // The list of variables for the batch create variable request. // // This member is required. - VariableEntries []*types.VariableEntry + VariableEntries []types.VariableEntry // A collection of key and value pairs. - Tags []*types.Tag + Tags []types.Tag } type BatchCreateVariableOutput struct { // Provides the errors for the BatchCreateVariable request. - Errors []*types.BatchCreateVariableError + Errors []types.BatchCreateVariableError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/frauddetector/api_op_BatchGetVariable.go b/service/frauddetector/api_op_BatchGetVariable.go index 1e20ea2bbd7..bb021ad4809 100644 --- a/service/frauddetector/api_op_BatchGetVariable.go +++ b/service/frauddetector/api_op_BatchGetVariable.go @@ -32,16 +32,16 @@ type BatchGetVariableInput struct { // The list of variable names to get. // // This member is required. - Names []*string + Names []string } type BatchGetVariableOutput struct { // The errors from the request. - Errors []*types.BatchGetVariableError + Errors []types.BatchGetVariableError // The returned variables. - Variables []*types.Variable + Variables []types.Variable // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/frauddetector/api_op_CreateDetectorVersion.go b/service/frauddetector/api_op_CreateDetectorVersion.go index 585eecd7bd6..989e6419ae3 100644 --- a/service/frauddetector/api_op_CreateDetectorVersion.go +++ b/service/frauddetector/api_op_CreateDetectorVersion.go @@ -37,16 +37,16 @@ type CreateDetectorVersionInput struct { // The rules to include in the detector version. // // This member is required. - Rules []*types.Rule + Rules []types.Rule // The description of the detector version. Description *string // The Amazon Sagemaker model endpoints to include in the detector version. - ExternalModelEndpoints []*string + ExternalModelEndpoints []string // The model versions to include in the detector version. - ModelVersions []*types.ModelVersion + ModelVersions []types.ModelVersion // The rule execution mode for the rules included in the detector version. You can // define and edit the rule mode at the detector version level, when it is in draft @@ -58,7 +58,7 @@ type CreateDetectorVersionInput struct { RuleExecutionMode types.RuleExecutionMode // A collection of key and value pairs. - Tags []*types.Tag + Tags []types.Tag } type CreateDetectorVersionOutput struct { diff --git a/service/frauddetector/api_op_CreateModel.go b/service/frauddetector/api_op_CreateModel.go index 2bcc80d0936..e4ec89d137d 100644 --- a/service/frauddetector/api_op_CreateModel.go +++ b/service/frauddetector/api_op_CreateModel.go @@ -48,7 +48,7 @@ type CreateModelInput struct { Description *string // A collection of key and value pairs. - Tags []*types.Tag + Tags []types.Tag } type CreateModelOutput struct { diff --git a/service/frauddetector/api_op_CreateModelVersion.go b/service/frauddetector/api_op_CreateModelVersion.go index 2aea56a8e78..eff1898e6b0 100644 --- a/service/frauddetector/api_op_CreateModelVersion.go +++ b/service/frauddetector/api_op_CreateModelVersion.go @@ -54,7 +54,7 @@ type CreateModelVersionInput struct { ExternalEventsDetail *types.ExternalEventsDetail // A collection of key and value pairs. - Tags []*types.Tag + Tags []types.Tag } type CreateModelVersionOutput struct { diff --git a/service/frauddetector/api_op_CreateRule.go b/service/frauddetector/api_op_CreateRule.go index 6537473bb78..61da0715042 100644 --- a/service/frauddetector/api_op_CreateRule.go +++ b/service/frauddetector/api_op_CreateRule.go @@ -47,7 +47,7 @@ type CreateRuleInput struct { // The outcome or outcomes returned when the rule expression matches. // // This member is required. - Outcomes []*string + Outcomes []string // The rule ID. // @@ -58,7 +58,7 @@ type CreateRuleInput struct { Description *string // A collection of key and value pairs. - Tags []*types.Tag + Tags []types.Tag } type CreateRuleOutput struct { diff --git a/service/frauddetector/api_op_CreateVariable.go b/service/frauddetector/api_op_CreateVariable.go index 7cee5558660..54484deab0d 100644 --- a/service/frauddetector/api_op_CreateVariable.go +++ b/service/frauddetector/api_op_CreateVariable.go @@ -53,7 +53,7 @@ type CreateVariableInput struct { Description *string // A collection of key and value pairs. - Tags []*types.Tag + Tags []types.Tag // The variable type. For more information see Variable types // (https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types). diff --git a/service/frauddetector/api_op_DescribeDetector.go b/service/frauddetector/api_op_DescribeDetector.go index 1830f7efa58..0f3fae5c5f4 100644 --- a/service/frauddetector/api_op_DescribeDetector.go +++ b/service/frauddetector/api_op_DescribeDetector.go @@ -50,7 +50,7 @@ type DescribeDetectorOutput struct { DetectorId *string // The status and description for each detector version. - DetectorVersionSummaries []*types.DetectorVersionSummary + DetectorVersionSummaries []types.DetectorVersionSummary // The next token to be used for subsequent requests. NextToken *string diff --git a/service/frauddetector/api_op_DescribeModelVersions.go b/service/frauddetector/api_op_DescribeModelVersions.go index e45c61eacc9..0f8a1918efb 100644 --- a/service/frauddetector/api_op_DescribeModelVersions.go +++ b/service/frauddetector/api_op_DescribeModelVersions.go @@ -50,7 +50,7 @@ type DescribeModelVersionsInput struct { type DescribeModelVersionsOutput struct { // The model version details. - ModelVersionDetails []*types.ModelVersionDetail + ModelVersionDetails []types.ModelVersionDetail // The next token. NextToken *string diff --git a/service/frauddetector/api_op_GetDetectorVersion.go b/service/frauddetector/api_op_GetDetectorVersion.go index 57f46f8b760..2682f8e68f7 100644 --- a/service/frauddetector/api_op_GetDetectorVersion.go +++ b/service/frauddetector/api_op_GetDetectorVersion.go @@ -58,13 +58,13 @@ type GetDetectorVersionOutput struct { DetectorVersionId *string // The Amazon SageMaker model endpoints included in the detector version. - ExternalModelEndpoints []*string + ExternalModelEndpoints []string // The timestamp when the detector version was last updated. LastUpdatedTime *string // The model versions included in the detector version. - ModelVersions []*types.ModelVersion + ModelVersions []types.ModelVersion // The execution mode of the rule in the dectector FIRST_MATCHED indicates that // Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at @@ -75,7 +75,7 @@ type GetDetectorVersionOutput struct { RuleExecutionMode types.RuleExecutionMode // The rules included in the detector version. - Rules []*types.Rule + Rules []types.Rule // The status of the detector version. Status types.DetectorVersionStatus diff --git a/service/frauddetector/api_op_GetDetectors.go b/service/frauddetector/api_op_GetDetectors.go index db42c450dd4..1afc18fe7ca 100644 --- a/service/frauddetector/api_op_GetDetectors.go +++ b/service/frauddetector/api_op_GetDetectors.go @@ -47,7 +47,7 @@ type GetDetectorsInput struct { type GetDetectorsOutput struct { // The detectors. - Detectors []*types.Detector + Detectors []types.Detector // The next page token. NextToken *string diff --git a/service/frauddetector/api_op_GetEntityTypes.go b/service/frauddetector/api_op_GetEntityTypes.go index af9520548c4..204aef0c65a 100644 --- a/service/frauddetector/api_op_GetEntityTypes.go +++ b/service/frauddetector/api_op_GetEntityTypes.go @@ -47,7 +47,7 @@ type GetEntityTypesInput struct { type GetEntityTypesOutput struct { // An array of entity types. - EntityTypes []*types.EntityType + EntityTypes []types.EntityType // The next page token. NextToken *string diff --git a/service/frauddetector/api_op_GetEventPrediction.go b/service/frauddetector/api_op_GetEventPrediction.go index aa8f20d7197..4512d1dbca9 100644 --- a/service/frauddetector/api_op_GetEventPrediction.go +++ b/service/frauddetector/api_op_GetEventPrediction.go @@ -40,7 +40,7 @@ type GetEventPredictionInput struct { // "UNKNOWN." // // This member is required. - Entities []*types.Entity + Entities []types.Entity // The unique ID used to identify the event. // @@ -62,13 +62,13 @@ type GetEventPredictionInput struct { // sending for evaluation. // // This member is required. - EventVariables map[string]*string + EventVariables map[string]string // The detector version ID. DetectorVersionId *string // The Amazon SageMaker model endpoint input data blobs. - ExternalModelEndpointDataBlobs map[string]*types.ModelEndpointDataBlob + ExternalModelEndpointDataBlobs map[string]types.ModelEndpointDataBlob } type GetEventPredictionOutput struct { @@ -78,10 +78,10 @@ type GetEventPredictionOutput struct { // directly related to the false positive rate (FPR). For example, a score of 600 // corresponds to an estimated 10% false positive rate whereas a score of 900 // corresponds to an estimated 2% false positive rate. - ModelScores []*types.ModelScores + ModelScores []types.ModelScores // The results. - RuleResults []*types.RuleResult + RuleResults []types.RuleResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/frauddetector/api_op_GetEventTypes.go b/service/frauddetector/api_op_GetEventTypes.go index 7c99b5350b1..ab719bd0ca1 100644 --- a/service/frauddetector/api_op_GetEventTypes.go +++ b/service/frauddetector/api_op_GetEventTypes.go @@ -47,7 +47,7 @@ type GetEventTypesInput struct { type GetEventTypesOutput struct { // An array of event types. - EventTypes []*types.EventType + EventTypes []types.EventType // The next page token. NextToken *string diff --git a/service/frauddetector/api_op_GetExternalModels.go b/service/frauddetector/api_op_GetExternalModels.go index 6ea37c911a4..e267abeea0e 100644 --- a/service/frauddetector/api_op_GetExternalModels.go +++ b/service/frauddetector/api_op_GetExternalModels.go @@ -47,7 +47,7 @@ type GetExternalModelsInput struct { type GetExternalModelsOutput struct { // Gets the Amazon SageMaker models. - ExternalModels []*types.ExternalModel + ExternalModels []types.ExternalModel // The next page token to be used in subsequent requests. NextToken *string diff --git a/service/frauddetector/api_op_GetLabels.go b/service/frauddetector/api_op_GetLabels.go index 009e6b918c9..946a761e4f2 100644 --- a/service/frauddetector/api_op_GetLabels.go +++ b/service/frauddetector/api_op_GetLabels.go @@ -47,7 +47,7 @@ type GetLabelsInput struct { type GetLabelsOutput struct { // An array of labels. - Labels []*types.Label + Labels []types.Label // The next page token. NextToken *string diff --git a/service/frauddetector/api_op_GetModels.go b/service/frauddetector/api_op_GetModels.go index 37064041269..25cd7508f41 100644 --- a/service/frauddetector/api_op_GetModels.go +++ b/service/frauddetector/api_op_GetModels.go @@ -52,7 +52,7 @@ type GetModelsInput struct { type GetModelsOutput struct { // The array of models. - Models []*types.Model + Models []types.Model // The next page token to be used in subsequent requests. NextToken *string diff --git a/service/frauddetector/api_op_GetOutcomes.go b/service/frauddetector/api_op_GetOutcomes.go index 7147a74f11e..3223bde48e4 100644 --- a/service/frauddetector/api_op_GetOutcomes.go +++ b/service/frauddetector/api_op_GetOutcomes.go @@ -49,7 +49,7 @@ type GetOutcomesOutput struct { NextToken *string // The outcomes. - Outcomes []*types.Outcome + Outcomes []types.Outcome // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/frauddetector/api_op_GetRules.go b/service/frauddetector/api_op_GetRules.go index dd35cd69339..2a22386d5fa 100644 --- a/service/frauddetector/api_op_GetRules.go +++ b/service/frauddetector/api_op_GetRules.go @@ -60,7 +60,7 @@ type GetRulesOutput struct { NextToken *string // The details of the requested rule. - RuleDetails []*types.RuleDetail + RuleDetails []types.RuleDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/frauddetector/api_op_GetVariables.go b/service/frauddetector/api_op_GetVariables.go index c9b28b59a9d..7bf84eb26d2 100644 --- a/service/frauddetector/api_op_GetVariables.go +++ b/service/frauddetector/api_op_GetVariables.go @@ -50,7 +50,7 @@ type GetVariablesOutput struct { NextToken *string // The names of the variables returned. - Variables []*types.Variable + Variables []types.Variable // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/frauddetector/api_op_ListTagsForResource.go b/service/frauddetector/api_op_ListTagsForResource.go index 02f3267e12e..66b8e6a5825 100644 --- a/service/frauddetector/api_op_ListTagsForResource.go +++ b/service/frauddetector/api_op_ListTagsForResource.go @@ -49,7 +49,7 @@ type ListTagsForResourceOutput struct { NextToken *string // A collection of key and value pairs. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/frauddetector/api_op_PutDetector.go b/service/frauddetector/api_op_PutDetector.go index 023407ab4ac..87b1bac6802 100644 --- a/service/frauddetector/api_op_PutDetector.go +++ b/service/frauddetector/api_op_PutDetector.go @@ -43,7 +43,7 @@ type PutDetectorInput struct { Description *string // A collection of key and value pairs. - Tags []*types.Tag + Tags []types.Tag } type PutDetectorOutput struct { diff --git a/service/frauddetector/api_op_PutEntityType.go b/service/frauddetector/api_op_PutEntityType.go index 0f6e9559725..8cf75bd2751 100644 --- a/service/frauddetector/api_op_PutEntityType.go +++ b/service/frauddetector/api_op_PutEntityType.go @@ -41,7 +41,7 @@ type PutEntityTypeInput struct { Description *string // A collection of key and value pairs. - Tags []*types.Tag + Tags []types.Tag } type PutEntityTypeOutput struct { diff --git a/service/frauddetector/api_op_PutEventType.go b/service/frauddetector/api_op_PutEventType.go index f03277856c6..c4d652be7f4 100644 --- a/service/frauddetector/api_op_PutEventType.go +++ b/service/frauddetector/api_op_PutEventType.go @@ -39,12 +39,12 @@ type PutEventTypeInput struct { // account. // // This member is required. - EntityTypes []*string + EntityTypes []string // The event type variables. // // This member is required. - EventVariables []*string + EventVariables []string // The name. // @@ -55,10 +55,10 @@ type PutEventTypeInput struct { Description *string // The event type labels. - Labels []*string + Labels []string // A collection of key and value pairs. - Tags []*types.Tag + Tags []types.Tag } type PutEventTypeOutput struct { diff --git a/service/frauddetector/api_op_PutExternalModel.go b/service/frauddetector/api_op_PutExternalModel.go index 0039532f5ca..492bbc0dbe1 100644 --- a/service/frauddetector/api_op_PutExternalModel.go +++ b/service/frauddetector/api_op_PutExternalModel.go @@ -62,7 +62,7 @@ type PutExternalModelInput struct { OutputConfiguration *types.ModelOutputConfiguration // A collection of key and value pairs. - Tags []*types.Tag + Tags []types.Tag } type PutExternalModelOutput struct { diff --git a/service/frauddetector/api_op_PutLabel.go b/service/frauddetector/api_op_PutLabel.go index 63eaaa0b37a..b6951d00c47 100644 --- a/service/frauddetector/api_op_PutLabel.go +++ b/service/frauddetector/api_op_PutLabel.go @@ -40,7 +40,7 @@ type PutLabelInput struct { Description *string // - Tags []*types.Tag + Tags []types.Tag } type PutLabelOutput struct { diff --git a/service/frauddetector/api_op_PutOutcome.go b/service/frauddetector/api_op_PutOutcome.go index 1881e77c788..0e867ee286d 100644 --- a/service/frauddetector/api_op_PutOutcome.go +++ b/service/frauddetector/api_op_PutOutcome.go @@ -38,7 +38,7 @@ type PutOutcomeInput struct { Description *string // A collection of key and value pairs. - Tags []*types.Tag + Tags []types.Tag } type PutOutcomeOutput struct { diff --git a/service/frauddetector/api_op_TagResource.go b/service/frauddetector/api_op_TagResource.go index ff24cc3a12e..9131bc3577b 100644 --- a/service/frauddetector/api_op_TagResource.go +++ b/service/frauddetector/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // The tags to assign to the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/frauddetector/api_op_UntagResource.go b/service/frauddetector/api_op_UntagResource.go index 67157572403..193badbd7bf 100644 --- a/service/frauddetector/api_op_UntagResource.go +++ b/service/frauddetector/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The resource ARN. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/frauddetector/api_op_UpdateDetectorVersion.go b/service/frauddetector/api_op_UpdateDetectorVersion.go index 659cd0018e9..95d81c766ca 100644 --- a/service/frauddetector/api_op_UpdateDetectorVersion.go +++ b/service/frauddetector/api_op_UpdateDetectorVersion.go @@ -44,18 +44,18 @@ type UpdateDetectorVersionInput struct { // The Amazon SageMaker model endpoints to include in the detector version. // // This member is required. - ExternalModelEndpoints []*string + ExternalModelEndpoints []string // The rules to include in the detector version. // // This member is required. - Rules []*types.Rule + Rules []types.Rule // The detector version description. Description *string // The model versions to include in the detector version. - ModelVersions []*types.ModelVersion + ModelVersions []types.ModelVersion // The rule execution mode to add to the detector. If you specify FIRST_MATCHED, // Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at diff --git a/service/frauddetector/api_op_UpdateModelVersion.go b/service/frauddetector/api_op_UpdateModelVersion.go index 3d4e64586b3..ea95c2d402d 100644 --- a/service/frauddetector/api_op_UpdateModelVersion.go +++ b/service/frauddetector/api_op_UpdateModelVersion.go @@ -52,7 +52,7 @@ type UpdateModelVersionInput struct { ExternalEventsDetail *types.ExternalEventsDetail // A collection of key and value pairs. - Tags []*types.Tag + Tags []types.Tag } type UpdateModelVersionOutput struct { diff --git a/service/frauddetector/api_op_UpdateRuleVersion.go b/service/frauddetector/api_op_UpdateRuleVersion.go index 2728f43c5a4..73651127329 100644 --- a/service/frauddetector/api_op_UpdateRuleVersion.go +++ b/service/frauddetector/api_op_UpdateRuleVersion.go @@ -43,7 +43,7 @@ type UpdateRuleVersionInput struct { // The outcomes. // // This member is required. - Outcomes []*string + Outcomes []string // The rule to update. // @@ -54,7 +54,7 @@ type UpdateRuleVersionInput struct { Description *string // The tags to assign to the rule version. - Tags []*types.Tag + Tags []types.Tag } type UpdateRuleVersionOutput struct { diff --git a/service/frauddetector/deserializers.go b/service/frauddetector/deserializers.go index 01b86c6ba15..ce60c5841cb 100644 --- a/service/frauddetector/deserializers.go +++ b/service/frauddetector/deserializers.go @@ -5683,7 +5683,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5727,7 +5727,7 @@ func awsAwsjson11_deserializeDocumentBatchCreateVariableError(v **types.BatchCre if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -5736,7 +5736,7 @@ func awsAwsjson11_deserializeDocumentBatchCreateVariableError(v **types.BatchCre if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "name": @@ -5745,7 +5745,7 @@ func awsAwsjson11_deserializeDocumentBatchCreateVariableError(v **types.BatchCre if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5757,7 +5757,7 @@ func awsAwsjson11_deserializeDocumentBatchCreateVariableError(v **types.BatchCre return nil } -func awsAwsjson11_deserializeDocumentBatchCreateVariableErrorList(v *[]*types.BatchCreateVariableError, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchCreateVariableErrorList(v *[]types.BatchCreateVariableError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5770,18 +5770,20 @@ func awsAwsjson11_deserializeDocumentBatchCreateVariableErrorList(v *[]*types.Ba return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchCreateVariableError + var cv []types.BatchCreateVariableError if *v == nil { - cv = []*types.BatchCreateVariableError{} + cv = []types.BatchCreateVariableError{} } else { cv = *v } for _, value := range shape { - var col *types.BatchCreateVariableError - if err := awsAwsjson11_deserializeDocumentBatchCreateVariableError(&col, value); err != nil { + var col types.BatchCreateVariableError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchCreateVariableError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5821,7 +5823,7 @@ func awsAwsjson11_deserializeDocumentBatchGetVariableError(v **types.BatchGetVar if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -5830,7 +5832,7 @@ func awsAwsjson11_deserializeDocumentBatchGetVariableError(v **types.BatchGetVar if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "name": @@ -5839,7 +5841,7 @@ func awsAwsjson11_deserializeDocumentBatchGetVariableError(v **types.BatchGetVar if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5851,7 +5853,7 @@ func awsAwsjson11_deserializeDocumentBatchGetVariableError(v **types.BatchGetVar return nil } -func awsAwsjson11_deserializeDocumentBatchGetVariableErrorList(v *[]*types.BatchGetVariableError, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchGetVariableErrorList(v *[]types.BatchGetVariableError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5864,18 +5866,20 @@ func awsAwsjson11_deserializeDocumentBatchGetVariableErrorList(v *[]*types.Batch return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchGetVariableError + var cv []types.BatchGetVariableError if *v == nil { - cv = []*types.BatchGetVariableError{} + cv = []types.BatchGetVariableError{} } else { cv = *v } for _, value := range shape { - var col *types.BatchGetVariableError - if err := awsAwsjson11_deserializeDocumentBatchGetVariableError(&col, value); err != nil { + var col types.BatchGetVariableError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchGetVariableError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5911,7 +5915,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5923,7 +5927,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti return nil } -func awsAwsjson11_deserializeDocumentCsvIndexToVariableMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCsvIndexToVariableMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5936,21 +5940,21 @@ func awsAwsjson11_deserializeDocumentCsvIndexToVariableMap(v *map[string]*string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -6028,7 +6032,7 @@ func awsAwsjson11_deserializeDocumentDetector(v **types.Detector, value interfac if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdTime": @@ -6037,7 +6041,7 @@ func awsAwsjson11_deserializeDocumentDetector(v **types.Detector, value interfac if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "description": @@ -6046,7 +6050,7 @@ func awsAwsjson11_deserializeDocumentDetector(v **types.Detector, value interfac if !ok { return fmt.Errorf("expected description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "detectorId": @@ -6055,7 +6059,7 @@ func awsAwsjson11_deserializeDocumentDetector(v **types.Detector, value interfac if !ok { return fmt.Errorf("expected identifier to be of type string, got %T instead", value) } - sv.DetectorId = &jtv + sv.DetectorId = ptr.String(jtv) } case "eventTypeName": @@ -6064,7 +6068,7 @@ func awsAwsjson11_deserializeDocumentDetector(v **types.Detector, value interfac if !ok { return fmt.Errorf("expected identifier to be of type string, got %T instead", value) } - sv.EventTypeName = &jtv + sv.EventTypeName = ptr.String(jtv) } case "lastUpdatedTime": @@ -6073,7 +6077,7 @@ func awsAwsjson11_deserializeDocumentDetector(v **types.Detector, value interfac if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.LastUpdatedTime = &jtv + sv.LastUpdatedTime = ptr.String(jtv) } default: @@ -6085,7 +6089,7 @@ func awsAwsjson11_deserializeDocumentDetector(v **types.Detector, value interfac return nil } -func awsAwsjson11_deserializeDocumentDetectorList(v *[]*types.Detector, value interface{}) error { +func awsAwsjson11_deserializeDocumentDetectorList(v *[]types.Detector, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6098,18 +6102,20 @@ func awsAwsjson11_deserializeDocumentDetectorList(v *[]*types.Detector, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Detector + var cv []types.Detector if *v == nil { - cv = []*types.Detector{} + cv = []types.Detector{} } else { cv = *v } for _, value := range shape { - var col *types.Detector - if err := awsAwsjson11_deserializeDocumentDetector(&col, value); err != nil { + var col types.Detector + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDetector(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6145,7 +6151,7 @@ func awsAwsjson11_deserializeDocumentDetectorVersionSummary(v **types.DetectorVe if !ok { return fmt.Errorf("expected description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "detectorVersionId": @@ -6154,7 +6160,7 @@ func awsAwsjson11_deserializeDocumentDetectorVersionSummary(v **types.DetectorVe if !ok { return fmt.Errorf("expected nonEmptyString to be of type string, got %T instead", value) } - sv.DetectorVersionId = &jtv + sv.DetectorVersionId = ptr.String(jtv) } case "lastUpdatedTime": @@ -6163,7 +6169,7 @@ func awsAwsjson11_deserializeDocumentDetectorVersionSummary(v **types.DetectorVe if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.LastUpdatedTime = &jtv + sv.LastUpdatedTime = ptr.String(jtv) } case "status": @@ -6184,7 +6190,7 @@ func awsAwsjson11_deserializeDocumentDetectorVersionSummary(v **types.DetectorVe return nil } -func awsAwsjson11_deserializeDocumentDetectorVersionSummaryList(v *[]*types.DetectorVersionSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentDetectorVersionSummaryList(v *[]types.DetectorVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6197,18 +6203,20 @@ func awsAwsjson11_deserializeDocumentDetectorVersionSummaryList(v *[]*types.Dete return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DetectorVersionSummary + var cv []types.DetectorVersionSummary if *v == nil { - cv = []*types.DetectorVersionSummary{} + cv = []types.DetectorVersionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DetectorVersionSummary - if err := awsAwsjson11_deserializeDocumentDetectorVersionSummary(&col, value); err != nil { + var col types.DetectorVersionSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDetectorVersionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6244,7 +6252,7 @@ func awsAwsjson11_deserializeDocumentEntityType(v **types.EntityType, value inte if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdTime": @@ -6253,7 +6261,7 @@ func awsAwsjson11_deserializeDocumentEntityType(v **types.EntityType, value inte if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "description": @@ -6262,7 +6270,7 @@ func awsAwsjson11_deserializeDocumentEntityType(v **types.EntityType, value inte if !ok { return fmt.Errorf("expected description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastUpdatedTime": @@ -6271,7 +6279,7 @@ func awsAwsjson11_deserializeDocumentEntityType(v **types.EntityType, value inte if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.LastUpdatedTime = &jtv + sv.LastUpdatedTime = ptr.String(jtv) } case "name": @@ -6280,7 +6288,7 @@ func awsAwsjson11_deserializeDocumentEntityType(v **types.EntityType, value inte if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -6292,7 +6300,7 @@ func awsAwsjson11_deserializeDocumentEntityType(v **types.EntityType, value inte return nil } -func awsAwsjson11_deserializeDocumentEntityTypeList(v *[]*types.EntityType, value interface{}) error { +func awsAwsjson11_deserializeDocumentEntityTypeList(v *[]types.EntityType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6305,18 +6313,20 @@ func awsAwsjson11_deserializeDocumentEntityTypeList(v *[]*types.EntityType, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EntityType + var cv []types.EntityType if *v == nil { - cv = []*types.EntityType{} + cv = []types.EntityType{} } else { cv = *v } for _, value := range shape { - var col *types.EntityType - if err := awsAwsjson11_deserializeDocumentEntityType(&col, value); err != nil { + var col types.EntityType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEntityType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6352,7 +6362,7 @@ func awsAwsjson11_deserializeDocumentEventType(v **types.EventType, value interf if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdTime": @@ -6361,7 +6371,7 @@ func awsAwsjson11_deserializeDocumentEventType(v **types.EventType, value interf if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "description": @@ -6370,7 +6380,7 @@ func awsAwsjson11_deserializeDocumentEventType(v **types.EventType, value interf if !ok { return fmt.Errorf("expected description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "entityTypes": @@ -6394,7 +6404,7 @@ func awsAwsjson11_deserializeDocumentEventType(v **types.EventType, value interf if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.LastUpdatedTime = &jtv + sv.LastUpdatedTime = ptr.String(jtv) } case "name": @@ -6403,7 +6413,7 @@ func awsAwsjson11_deserializeDocumentEventType(v **types.EventType, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -6415,7 +6425,7 @@ func awsAwsjson11_deserializeDocumentEventType(v **types.EventType, value interf return nil } -func awsAwsjson11_deserializeDocumentEventTypeList(v *[]*types.EventType, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventTypeList(v *[]types.EventType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6428,18 +6438,20 @@ func awsAwsjson11_deserializeDocumentEventTypeList(v *[]*types.EventType, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventType + var cv []types.EventType if *v == nil { - cv = []*types.EventType{} + cv = []types.EventType{} } else { cv = *v } for _, value := range shape { - var col *types.EventType - if err := awsAwsjson11_deserializeDocumentEventType(&col, value); err != nil { + var col types.EventType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6475,7 +6487,7 @@ func awsAwsjson11_deserializeDocumentExternalEventsDetail(v **types.ExternalEven if !ok { return fmt.Errorf("expected iamRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } case "dataLocation": @@ -6484,7 +6496,7 @@ func awsAwsjson11_deserializeDocumentExternalEventsDetail(v **types.ExternalEven if !ok { return fmt.Errorf("expected s3BucketLocation to be of type string, got %T instead", value) } - sv.DataLocation = &jtv + sv.DataLocation = ptr.String(jtv) } default: @@ -6524,7 +6536,7 @@ func awsAwsjson11_deserializeDocumentExternalModel(v **types.ExternalModel, valu if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdTime": @@ -6533,7 +6545,7 @@ func awsAwsjson11_deserializeDocumentExternalModel(v **types.ExternalModel, valu if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "inputConfiguration": @@ -6547,7 +6559,7 @@ func awsAwsjson11_deserializeDocumentExternalModel(v **types.ExternalModel, valu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.InvokeModelEndpointRoleArn = &jtv + sv.InvokeModelEndpointRoleArn = ptr.String(jtv) } case "lastUpdatedTime": @@ -6556,7 +6568,7 @@ func awsAwsjson11_deserializeDocumentExternalModel(v **types.ExternalModel, valu if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.LastUpdatedTime = &jtv + sv.LastUpdatedTime = ptr.String(jtv) } case "modelEndpoint": @@ -6565,7 +6577,7 @@ func awsAwsjson11_deserializeDocumentExternalModel(v **types.ExternalModel, valu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ModelEndpoint = &jtv + sv.ModelEndpoint = ptr.String(jtv) } case "modelEndpointStatus": @@ -6600,7 +6612,7 @@ func awsAwsjson11_deserializeDocumentExternalModel(v **types.ExternalModel, valu return nil } -func awsAwsjson11_deserializeDocumentExternalModelList(v *[]*types.ExternalModel, value interface{}) error { +func awsAwsjson11_deserializeDocumentExternalModelList(v *[]types.ExternalModel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6613,18 +6625,20 @@ func awsAwsjson11_deserializeDocumentExternalModelList(v *[]*types.ExternalModel return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExternalModel + var cv []types.ExternalModel if *v == nil { - cv = []*types.ExternalModel{} + cv = []types.ExternalModel{} } else { cv = *v } for _, value := range shape { - var col *types.ExternalModel - if err := awsAwsjson11_deserializeDocumentExternalModel(&col, value); err != nil { + var col types.ExternalModel + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExternalModel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6660,7 +6674,7 @@ func awsAwsjson11_deserializeDocumentFieldValidationMessage(v **types.FieldValid if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "fieldName": @@ -6669,7 +6683,7 @@ func awsAwsjson11_deserializeDocumentFieldValidationMessage(v **types.FieldValid if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.FieldName = &jtv + sv.FieldName = ptr.String(jtv) } case "identifier": @@ -6678,7 +6692,7 @@ func awsAwsjson11_deserializeDocumentFieldValidationMessage(v **types.FieldValid if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Identifier = &jtv + sv.Identifier = ptr.String(jtv) } case "title": @@ -6687,7 +6701,7 @@ func awsAwsjson11_deserializeDocumentFieldValidationMessage(v **types.FieldValid if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } case "type": @@ -6696,7 +6710,7 @@ func awsAwsjson11_deserializeDocumentFieldValidationMessage(v **types.FieldValid if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -6708,7 +6722,7 @@ func awsAwsjson11_deserializeDocumentFieldValidationMessage(v **types.FieldValid return nil } -func awsAwsjson11_deserializeDocumentFieldValidationMessageList(v *[]*types.FieldValidationMessage, value interface{}) error { +func awsAwsjson11_deserializeDocumentFieldValidationMessageList(v *[]types.FieldValidationMessage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6721,18 +6735,20 @@ func awsAwsjson11_deserializeDocumentFieldValidationMessageList(v *[]*types.Fiel return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FieldValidationMessage + var cv []types.FieldValidationMessage if *v == nil { - cv = []*types.FieldValidationMessage{} + cv = []types.FieldValidationMessage{} } else { cv = *v } for _, value := range shape { - var col *types.FieldValidationMessage - if err := awsAwsjson11_deserializeDocumentFieldValidationMessage(&col, value); err != nil { + var col types.FieldValidationMessage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFieldValidationMessage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6768,7 +6784,7 @@ func awsAwsjson11_deserializeDocumentFileValidationMessage(v **types.FileValidat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "title": @@ -6777,7 +6793,7 @@ func awsAwsjson11_deserializeDocumentFileValidationMessage(v **types.FileValidat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } case "type": @@ -6786,7 +6802,7 @@ func awsAwsjson11_deserializeDocumentFileValidationMessage(v **types.FileValidat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -6798,7 +6814,7 @@ func awsAwsjson11_deserializeDocumentFileValidationMessage(v **types.FileValidat return nil } -func awsAwsjson11_deserializeDocumentFileValidationMessageList(v *[]*types.FileValidationMessage, value interface{}) error { +func awsAwsjson11_deserializeDocumentFileValidationMessageList(v *[]types.FileValidationMessage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6811,18 +6827,20 @@ func awsAwsjson11_deserializeDocumentFileValidationMessageList(v *[]*types.FileV return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FileValidationMessage + var cv []types.FileValidationMessage if *v == nil { - cv = []*types.FileValidationMessage{} + cv = []types.FileValidationMessage{} } else { cv = *v } for _, value := range shape { - var col *types.FileValidationMessage - if err := awsAwsjson11_deserializeDocumentFileValidationMessage(&col, value); err != nil { + var col types.FileValidationMessage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFileValidationMessage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6858,7 +6876,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6870,7 +6888,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS return nil } -func awsAwsjson11_deserializeDocumentJsonKeyToVariableMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentJsonKeyToVariableMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6883,21 +6901,21 @@ func awsAwsjson11_deserializeDocumentJsonKeyToVariableMap(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -6934,7 +6952,7 @@ func awsAwsjson11_deserializeDocumentKMSKey(v **types.KMSKey, value interface{}) if !ok { return fmt.Errorf("expected KmsEncryptionKeyArn to be of type string, got %T instead", value) } - sv.KmsEncryptionKeyArn = &jtv + sv.KmsEncryptionKeyArn = ptr.String(jtv) } default: @@ -6974,7 +6992,7 @@ func awsAwsjson11_deserializeDocumentLabel(v **types.Label, value interface{}) e if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdTime": @@ -6983,7 +7001,7 @@ func awsAwsjson11_deserializeDocumentLabel(v **types.Label, value interface{}) e if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "description": @@ -6992,7 +7010,7 @@ func awsAwsjson11_deserializeDocumentLabel(v **types.Label, value interface{}) e if !ok { return fmt.Errorf("expected description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastUpdatedTime": @@ -7001,7 +7019,7 @@ func awsAwsjson11_deserializeDocumentLabel(v **types.Label, value interface{}) e if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.LastUpdatedTime = &jtv + sv.LastUpdatedTime = ptr.String(jtv) } case "name": @@ -7010,7 +7028,7 @@ func awsAwsjson11_deserializeDocumentLabel(v **types.Label, value interface{}) e if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7022,7 +7040,7 @@ func awsAwsjson11_deserializeDocumentLabel(v **types.Label, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentLabelList(v *[]*types.Label, value interface{}) error { +func awsAwsjson11_deserializeDocumentLabelList(v *[]types.Label, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7035,18 +7053,20 @@ func awsAwsjson11_deserializeDocumentLabelList(v *[]*types.Label, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Label + var cv []types.Label if *v == nil { - cv = []*types.Label{} + cv = []types.Label{} } else { cv = *v } for _, value := range shape { - var col *types.Label - if err := awsAwsjson11_deserializeDocumentLabel(&col, value); err != nil { + var col types.Label + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLabel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7054,7 +7074,7 @@ func awsAwsjson11_deserializeDocumentLabelList(v *[]*types.Label, value interfac return nil } -func awsAwsjson11_deserializeDocumentLabelMapper(v *map[string][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLabelMapper(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7067,18 +7087,20 @@ func awsAwsjson11_deserializeDocumentLabelMapper(v *map[string][]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsAwsjson11_deserializeDocumentListOfStrings(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentListOfStrings(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -7122,7 +7144,7 @@ func awsAwsjson11_deserializeDocumentLabelSchema(v **types.LabelSchema, value in return nil } -func awsAwsjson11_deserializeDocumentListOfModelScores(v *[]*types.ModelScores, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfModelScores(v *[]types.ModelScores, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7135,18 +7157,20 @@ func awsAwsjson11_deserializeDocumentListOfModelScores(v *[]*types.ModelScores, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ModelScores + var cv []types.ModelScores if *v == nil { - cv = []*types.ModelScores{} + cv = []types.ModelScores{} } else { cv = *v } for _, value := range shape { - var col *types.ModelScores - if err := awsAwsjson11_deserializeDocumentModelScores(&col, value); err != nil { + var col types.ModelScores + destAddr := &col + if err := awsAwsjson11_deserializeDocumentModelScores(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7154,7 +7178,7 @@ func awsAwsjson11_deserializeDocumentListOfModelScores(v *[]*types.ModelScores, return nil } -func awsAwsjson11_deserializeDocumentListOfModelVersions(v *[]*types.ModelVersion, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfModelVersions(v *[]types.ModelVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7167,18 +7191,20 @@ func awsAwsjson11_deserializeDocumentListOfModelVersions(v *[]*types.ModelVersio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ModelVersion + var cv []types.ModelVersion if *v == nil { - cv = []*types.ModelVersion{} + cv = []types.ModelVersion{} } else { cv = *v } for _, value := range shape { - var col *types.ModelVersion - if err := awsAwsjson11_deserializeDocumentModelVersion(&col, value); err != nil { + var col types.ModelVersion + destAddr := &col + if err := awsAwsjson11_deserializeDocumentModelVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7186,7 +7212,7 @@ func awsAwsjson11_deserializeDocumentListOfModelVersions(v *[]*types.ModelVersio return nil } -func awsAwsjson11_deserializeDocumentListOfRuleResults(v *[]*types.RuleResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfRuleResults(v *[]types.RuleResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7199,18 +7225,20 @@ func awsAwsjson11_deserializeDocumentListOfRuleResults(v *[]*types.RuleResult, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RuleResult + var cv []types.RuleResult if *v == nil { - cv = []*types.RuleResult{} + cv = []types.RuleResult{} } else { cv = *v } for _, value := range shape { - var col *types.RuleResult - if err := awsAwsjson11_deserializeDocumentRuleResult(&col, value); err != nil { + var col types.RuleResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRuleResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7218,7 +7246,7 @@ func awsAwsjson11_deserializeDocumentListOfRuleResults(v *[]*types.RuleResult, v return nil } -func awsAwsjson11_deserializeDocumentListOfStrings(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentListOfStrings(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7231,21 +7259,21 @@ func awsAwsjson11_deserializeDocumentListOfStrings(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -7337,7 +7365,7 @@ func awsAwsjson11_deserializeDocumentMetricDataPoint(v **types.MetricDataPoint, return nil } -func awsAwsjson11_deserializeDocumentMetricDataPointsList(v *[]*types.MetricDataPoint, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricDataPointsList(v *[]types.MetricDataPoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7350,18 +7378,20 @@ func awsAwsjson11_deserializeDocumentMetricDataPointsList(v *[]*types.MetricData return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MetricDataPoint + var cv []types.MetricDataPoint if *v == nil { - cv = []*types.MetricDataPoint{} + cv = []types.MetricDataPoint{} } else { cv = *v } for _, value := range shape { - var col *types.MetricDataPoint - if err := awsAwsjson11_deserializeDocumentMetricDataPoint(&col, value); err != nil { + var col types.MetricDataPoint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMetricDataPoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7397,7 +7427,7 @@ func awsAwsjson11_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdTime": @@ -7406,7 +7436,7 @@ func awsAwsjson11_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "description": @@ -7415,7 +7445,7 @@ func awsAwsjson11_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "eventTypeName": @@ -7424,7 +7454,7 @@ func awsAwsjson11_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.EventTypeName = &jtv + sv.EventTypeName = ptr.String(jtv) } case "lastUpdatedTime": @@ -7433,7 +7463,7 @@ func awsAwsjson11_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.LastUpdatedTime = &jtv + sv.LastUpdatedTime = ptr.String(jtv) } case "modelId": @@ -7442,7 +7472,7 @@ func awsAwsjson11_deserializeDocumentModel(v **types.Model, value interface{}) e if !ok { return fmt.Errorf("expected modelIdentifier to be of type string, got %T instead", value) } - sv.ModelId = &jtv + sv.ModelId = ptr.String(jtv) } case "modelType": @@ -7491,7 +7521,7 @@ func awsAwsjson11_deserializeDocumentModelInputConfiguration(v **types.ModelInpu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CsvInputTemplate = &jtv + sv.CsvInputTemplate = ptr.String(jtv) } case "eventTypeName": @@ -7500,7 +7530,7 @@ func awsAwsjson11_deserializeDocumentModelInputConfiguration(v **types.ModelInpu if !ok { return fmt.Errorf("expected identifier to be of type string, got %T instead", value) } - sv.EventTypeName = &jtv + sv.EventTypeName = ptr.String(jtv) } case "format": @@ -7518,7 +7548,7 @@ func awsAwsjson11_deserializeDocumentModelInputConfiguration(v **types.ModelInpu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.JsonInputTemplate = &jtv + sv.JsonInputTemplate = ptr.String(jtv) } case "useEventVariables": @@ -7527,7 +7557,7 @@ func awsAwsjson11_deserializeDocumentModelInputConfiguration(v **types.ModelInpu if !ok { return fmt.Errorf("expected UseEventVariables to be of type *bool, got %T instead", value) } - sv.UseEventVariables = &jtv + sv.UseEventVariables = ptr.Bool(jtv) } default: @@ -7539,7 +7569,7 @@ func awsAwsjson11_deserializeDocumentModelInputConfiguration(v **types.ModelInpu return nil } -func awsAwsjson11_deserializeDocumentModelList(v *[]*types.Model, value interface{}) error { +func awsAwsjson11_deserializeDocumentModelList(v *[]types.Model, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7552,18 +7582,20 @@ func awsAwsjson11_deserializeDocumentModelList(v *[]*types.Model, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Model + var cv []types.Model if *v == nil { - cv = []*types.Model{} + cv = []types.Model{} } else { cv = *v } for _, value := range shape { - var col *types.Model - if err := awsAwsjson11_deserializeDocumentModel(&col, value); err != nil { + var col types.Model + destAddr := &col + if err := awsAwsjson11_deserializeDocumentModel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7621,7 +7653,7 @@ func awsAwsjson11_deserializeDocumentModelOutputConfiguration(v **types.ModelOut return nil } -func awsAwsjson11_deserializeDocumentModelPredictionMap(v *map[string]*float32, value interface{}) error { +func awsAwsjson11_deserializeDocumentModelPredictionMap(v *map[string]float32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7634,15 +7666,15 @@ func awsAwsjson11_deserializeDocumentModelPredictionMap(v *map[string]*float32, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*float32 + var mv map[string]float32 if *v == nil { - mv = map[string]*float32{} + mv = map[string]float32{} } else { mv = *v } for key, value := range shape { - var parsedVal *float32 + var parsedVal float32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -7652,7 +7684,7 @@ func awsAwsjson11_deserializeDocumentModelPredictionMap(v *map[string]*float32, if err != nil { return err } - parsedVal = ptr.Float32(float32(f64)) + parsedVal = float32(f64) } mv[key] = parsedVal @@ -7730,7 +7762,7 @@ func awsAwsjson11_deserializeDocumentModelVersion(v **types.ModelVersion, value if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "modelId": @@ -7739,7 +7771,7 @@ func awsAwsjson11_deserializeDocumentModelVersion(v **types.ModelVersion, value if !ok { return fmt.Errorf("expected modelIdentifier to be of type string, got %T instead", value) } - sv.ModelId = &jtv + sv.ModelId = ptr.String(jtv) } case "modelType": @@ -7757,7 +7789,7 @@ func awsAwsjson11_deserializeDocumentModelVersion(v **types.ModelVersion, value if !ok { return fmt.Errorf("expected nonEmptyString to be of type string, got %T instead", value) } - sv.ModelVersionNumber = &jtv + sv.ModelVersionNumber = ptr.String(jtv) } default: @@ -7797,7 +7829,7 @@ func awsAwsjson11_deserializeDocumentModelVersionDetail(v **types.ModelVersionDe if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdTime": @@ -7806,7 +7838,7 @@ func awsAwsjson11_deserializeDocumentModelVersionDetail(v **types.ModelVersionDe if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "externalEventsDetail": @@ -7820,7 +7852,7 @@ func awsAwsjson11_deserializeDocumentModelVersionDetail(v **types.ModelVersionDe if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.LastUpdatedTime = &jtv + sv.LastUpdatedTime = ptr.String(jtv) } case "modelId": @@ -7829,7 +7861,7 @@ func awsAwsjson11_deserializeDocumentModelVersionDetail(v **types.ModelVersionDe if !ok { return fmt.Errorf("expected modelIdentifier to be of type string, got %T instead", value) } - sv.ModelId = &jtv + sv.ModelId = ptr.String(jtv) } case "modelType": @@ -7847,7 +7879,7 @@ func awsAwsjson11_deserializeDocumentModelVersionDetail(v **types.ModelVersionDe if !ok { return fmt.Errorf("expected floatVersionString to be of type string, got %T instead", value) } - sv.ModelVersionNumber = &jtv + sv.ModelVersionNumber = ptr.String(jtv) } case "status": @@ -7856,7 +7888,7 @@ func awsAwsjson11_deserializeDocumentModelVersionDetail(v **types.ModelVersionDe if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "trainingDataSchema": @@ -7887,7 +7919,7 @@ func awsAwsjson11_deserializeDocumentModelVersionDetail(v **types.ModelVersionDe return nil } -func awsAwsjson11_deserializeDocumentModelVersionDetailList(v *[]*types.ModelVersionDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentModelVersionDetailList(v *[]types.ModelVersionDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7900,18 +7932,20 @@ func awsAwsjson11_deserializeDocumentModelVersionDetailList(v *[]*types.ModelVer return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ModelVersionDetail + var cv []types.ModelVersionDetail if *v == nil { - cv = []*types.ModelVersionDetail{} + cv = []types.ModelVersionDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ModelVersionDetail - if err := awsAwsjson11_deserializeDocumentModelVersionDetail(&col, value); err != nil { + var col types.ModelVersionDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentModelVersionDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7919,7 +7953,7 @@ func awsAwsjson11_deserializeDocumentModelVersionDetailList(v *[]*types.ModelVer return nil } -func awsAwsjson11_deserializeDocumentNonEmptyListOfStrings(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentNonEmptyListOfStrings(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7932,21 +7966,21 @@ func awsAwsjson11_deserializeDocumentNonEmptyListOfStrings(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -7983,7 +8017,7 @@ func awsAwsjson11_deserializeDocumentOutcome(v **types.Outcome, value interface{ if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdTime": @@ -7992,7 +8026,7 @@ func awsAwsjson11_deserializeDocumentOutcome(v **types.Outcome, value interface{ if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "description": @@ -8001,7 +8035,7 @@ func awsAwsjson11_deserializeDocumentOutcome(v **types.Outcome, value interface{ if !ok { return fmt.Errorf("expected description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastUpdatedTime": @@ -8010,7 +8044,7 @@ func awsAwsjson11_deserializeDocumentOutcome(v **types.Outcome, value interface{ if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.LastUpdatedTime = &jtv + sv.LastUpdatedTime = ptr.String(jtv) } case "name": @@ -8019,7 +8053,7 @@ func awsAwsjson11_deserializeDocumentOutcome(v **types.Outcome, value interface{ if !ok { return fmt.Errorf("expected identifier to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8031,7 +8065,7 @@ func awsAwsjson11_deserializeDocumentOutcome(v **types.Outcome, value interface{ return nil } -func awsAwsjson11_deserializeDocumentOutcomeList(v *[]*types.Outcome, value interface{}) error { +func awsAwsjson11_deserializeDocumentOutcomeList(v *[]types.Outcome, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8044,18 +8078,20 @@ func awsAwsjson11_deserializeDocumentOutcomeList(v *[]*types.Outcome, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Outcome + var cv []types.Outcome if *v == nil { - cv = []*types.Outcome{} + cv = []types.Outcome{} } else { cv = *v } for _, value := range shape { - var col *types.Outcome - if err := awsAwsjson11_deserializeDocumentOutcome(&col, value); err != nil { + var col types.Outcome + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOutcome(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8091,7 +8127,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8131,7 +8167,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected identifier to be of type string, got %T instead", value) } - sv.DetectorId = &jtv + sv.DetectorId = ptr.String(jtv) } case "ruleId": @@ -8140,7 +8176,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected identifier to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } case "ruleVersion": @@ -8149,7 +8185,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected wholeNumberVersionString to be of type string, got %T instead", value) } - sv.RuleVersion = &jtv + sv.RuleVersion = ptr.String(jtv) } default: @@ -8189,7 +8225,7 @@ func awsAwsjson11_deserializeDocumentRuleDetail(v **types.RuleDetail, value inte if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdTime": @@ -8198,7 +8234,7 @@ func awsAwsjson11_deserializeDocumentRuleDetail(v **types.RuleDetail, value inte if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "description": @@ -8207,7 +8243,7 @@ func awsAwsjson11_deserializeDocumentRuleDetail(v **types.RuleDetail, value inte if !ok { return fmt.Errorf("expected description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "detectorId": @@ -8216,7 +8252,7 @@ func awsAwsjson11_deserializeDocumentRuleDetail(v **types.RuleDetail, value inte if !ok { return fmt.Errorf("expected identifier to be of type string, got %T instead", value) } - sv.DetectorId = &jtv + sv.DetectorId = ptr.String(jtv) } case "expression": @@ -8225,7 +8261,7 @@ func awsAwsjson11_deserializeDocumentRuleDetail(v **types.RuleDetail, value inte if !ok { return fmt.Errorf("expected ruleExpression to be of type string, got %T instead", value) } - sv.Expression = &jtv + sv.Expression = ptr.String(jtv) } case "language": @@ -8243,7 +8279,7 @@ func awsAwsjson11_deserializeDocumentRuleDetail(v **types.RuleDetail, value inte if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.LastUpdatedTime = &jtv + sv.LastUpdatedTime = ptr.String(jtv) } case "outcomes": @@ -8257,7 +8293,7 @@ func awsAwsjson11_deserializeDocumentRuleDetail(v **types.RuleDetail, value inte if !ok { return fmt.Errorf("expected identifier to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } case "ruleVersion": @@ -8266,7 +8302,7 @@ func awsAwsjson11_deserializeDocumentRuleDetail(v **types.RuleDetail, value inte if !ok { return fmt.Errorf("expected wholeNumberVersionString to be of type string, got %T instead", value) } - sv.RuleVersion = &jtv + sv.RuleVersion = ptr.String(jtv) } default: @@ -8278,7 +8314,7 @@ func awsAwsjson11_deserializeDocumentRuleDetail(v **types.RuleDetail, value inte return nil } -func awsAwsjson11_deserializeDocumentRuleDetailList(v *[]*types.RuleDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuleDetailList(v *[]types.RuleDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8291,18 +8327,20 @@ func awsAwsjson11_deserializeDocumentRuleDetailList(v *[]*types.RuleDetail, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RuleDetail + var cv []types.RuleDetail if *v == nil { - cv = []*types.RuleDetail{} + cv = []types.RuleDetail{} } else { cv = *v } for _, value := range shape { - var col *types.RuleDetail - if err := awsAwsjson11_deserializeDocumentRuleDetail(&col, value); err != nil { + var col types.RuleDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRuleDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8310,7 +8348,7 @@ func awsAwsjson11_deserializeDocumentRuleDetailList(v *[]*types.RuleDetail, valu return nil } -func awsAwsjson11_deserializeDocumentRuleList(v *[]*types.Rule, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuleList(v *[]types.Rule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8323,18 +8361,20 @@ func awsAwsjson11_deserializeDocumentRuleList(v *[]*types.Rule, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Rule + var cv []types.Rule if *v == nil { - cv = []*types.Rule{} + cv = []types.Rule{} } else { cv = *v } for _, value := range shape { - var col *types.Rule - if err := awsAwsjson11_deserializeDocumentRule(&col, value); err != nil { + var col types.Rule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8375,7 +8415,7 @@ func awsAwsjson11_deserializeDocumentRuleResult(v **types.RuleResult, value inte if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } default: @@ -8415,7 +8455,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected tagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -8424,7 +8464,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected tagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8436,7 +8476,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8449,18 +8489,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8496,7 +8538,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8667,7 +8709,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8707,7 +8749,7 @@ func awsAwsjson11_deserializeDocumentVariable(v **types.Variable, value interfac if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdTime": @@ -8716,7 +8758,7 @@ func awsAwsjson11_deserializeDocumentVariable(v **types.Variable, value interfac if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "dataSource": @@ -8743,7 +8785,7 @@ func awsAwsjson11_deserializeDocumentVariable(v **types.Variable, value interfac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.DefaultValue = &jtv + sv.DefaultValue = ptr.String(jtv) } case "description": @@ -8752,7 +8794,7 @@ func awsAwsjson11_deserializeDocumentVariable(v **types.Variable, value interfac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastUpdatedTime": @@ -8761,7 +8803,7 @@ func awsAwsjson11_deserializeDocumentVariable(v **types.Variable, value interfac if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.LastUpdatedTime = &jtv + sv.LastUpdatedTime = ptr.String(jtv) } case "name": @@ -8770,7 +8812,7 @@ func awsAwsjson11_deserializeDocumentVariable(v **types.Variable, value interfac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "variableType": @@ -8779,7 +8821,7 @@ func awsAwsjson11_deserializeDocumentVariable(v **types.Variable, value interfac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VariableType = &jtv + sv.VariableType = ptr.String(jtv) } default: @@ -8791,7 +8833,7 @@ func awsAwsjson11_deserializeDocumentVariable(v **types.Variable, value interfac return nil } -func awsAwsjson11_deserializeDocumentVariableList(v *[]*types.Variable, value interface{}) error { +func awsAwsjson11_deserializeDocumentVariableList(v *[]types.Variable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8804,18 +8846,20 @@ func awsAwsjson11_deserializeDocumentVariableList(v *[]*types.Variable, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Variable + var cv []types.Variable if *v == nil { - cv = []*types.Variable{} + cv = []types.Variable{} } else { cv = *v } for _, value := range shape { - var col *types.Variable - if err := awsAwsjson11_deserializeDocumentVariable(&col, value); err != nil { + var col types.Variable + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVariable(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8928,7 +8972,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDetectorVersionOutput(v **CreateDet if !ok { return fmt.Errorf("expected identifier to be of type string, got %T instead", value) } - sv.DetectorId = &jtv + sv.DetectorId = ptr.String(jtv) } case "detectorVersionId": @@ -8937,7 +8981,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDetectorVersionOutput(v **CreateDet if !ok { return fmt.Errorf("expected nonEmptyString to be of type string, got %T instead", value) } - sv.DetectorVersionId = &jtv + sv.DetectorVersionId = ptr.String(jtv) } case "status": @@ -9017,7 +9061,7 @@ func awsAwsjson11_deserializeOpDocumentCreateModelVersionOutput(v **CreateModelV if !ok { return fmt.Errorf("expected modelIdentifier to be of type string, got %T instead", value) } - sv.ModelId = &jtv + sv.ModelId = ptr.String(jtv) } case "modelType": @@ -9035,7 +9079,7 @@ func awsAwsjson11_deserializeOpDocumentCreateModelVersionOutput(v **CreateModelV if !ok { return fmt.Errorf("expected nonEmptyString to be of type string, got %T instead", value) } - sv.ModelVersionNumber = &jtv + sv.ModelVersionNumber = ptr.String(jtv) } case "status": @@ -9044,7 +9088,7 @@ func awsAwsjson11_deserializeOpDocumentCreateModelVersionOutput(v **CreateModelV if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -9275,7 +9319,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDetectorOutput(v **DescribeDetect if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "detectorId": @@ -9284,7 +9328,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDetectorOutput(v **DescribeDetect if !ok { return fmt.Errorf("expected identifier to be of type string, got %T instead", value) } - sv.DetectorId = &jtv + sv.DetectorId = ptr.String(jtv) } case "detectorVersionSummaries": @@ -9298,7 +9342,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDetectorOutput(v **DescribeDetect if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9343,7 +9387,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeModelVersionsOutput(v **DescribeM if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9388,7 +9432,7 @@ func awsAwsjson11_deserializeOpDocumentGetDetectorsOutput(v **GetDetectorsOutput if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9428,7 +9472,7 @@ func awsAwsjson11_deserializeOpDocumentGetDetectorVersionOutput(v **GetDetectorV if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdTime": @@ -9437,7 +9481,7 @@ func awsAwsjson11_deserializeOpDocumentGetDetectorVersionOutput(v **GetDetectorV if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "description": @@ -9446,7 +9490,7 @@ func awsAwsjson11_deserializeOpDocumentGetDetectorVersionOutput(v **GetDetectorV if !ok { return fmt.Errorf("expected description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "detectorId": @@ -9455,7 +9499,7 @@ func awsAwsjson11_deserializeOpDocumentGetDetectorVersionOutput(v **GetDetectorV if !ok { return fmt.Errorf("expected identifier to be of type string, got %T instead", value) } - sv.DetectorId = &jtv + sv.DetectorId = ptr.String(jtv) } case "detectorVersionId": @@ -9464,7 +9508,7 @@ func awsAwsjson11_deserializeOpDocumentGetDetectorVersionOutput(v **GetDetectorV if !ok { return fmt.Errorf("expected wholeNumberVersionString to be of type string, got %T instead", value) } - sv.DetectorVersionId = &jtv + sv.DetectorVersionId = ptr.String(jtv) } case "externalModelEndpoints": @@ -9478,7 +9522,7 @@ func awsAwsjson11_deserializeOpDocumentGetDetectorVersionOutput(v **GetDetectorV if !ok { return fmt.Errorf("expected time to be of type string, got %T instead", value) } - sv.LastUpdatedTime = &jtv + sv.LastUpdatedTime = ptr.String(jtv) } case "modelVersions": @@ -9551,7 +9595,7 @@ func awsAwsjson11_deserializeOpDocumentGetEntityTypesOutput(v **GetEntityTypesOu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9637,7 +9681,7 @@ func awsAwsjson11_deserializeOpDocumentGetEventTypesOutput(v **GetEventTypesOutp if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9682,7 +9726,7 @@ func awsAwsjson11_deserializeOpDocumentGetExternalModelsOutput(v **GetExternalMo if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9763,7 +9807,7 @@ func awsAwsjson11_deserializeOpDocumentGetLabelsOutput(v **GetLabelsOutput, valu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9808,7 +9852,7 @@ func awsAwsjson11_deserializeOpDocumentGetModelsOutput(v **GetModelsOutput, valu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9848,7 +9892,7 @@ func awsAwsjson11_deserializeOpDocumentGetModelVersionOutput(v **GetModelVersion if !ok { return fmt.Errorf("expected fraudDetectorArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "externalEventsDetail": @@ -9862,7 +9906,7 @@ func awsAwsjson11_deserializeOpDocumentGetModelVersionOutput(v **GetModelVersion if !ok { return fmt.Errorf("expected modelIdentifier to be of type string, got %T instead", value) } - sv.ModelId = &jtv + sv.ModelId = ptr.String(jtv) } case "modelType": @@ -9880,7 +9924,7 @@ func awsAwsjson11_deserializeOpDocumentGetModelVersionOutput(v **GetModelVersion if !ok { return fmt.Errorf("expected floatVersionString to be of type string, got %T instead", value) } - sv.ModelVersionNumber = &jtv + sv.ModelVersionNumber = ptr.String(jtv) } case "status": @@ -9889,7 +9933,7 @@ func awsAwsjson11_deserializeOpDocumentGetModelVersionOutput(v **GetModelVersion if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "trainingDataSchema": @@ -9943,7 +9987,7 @@ func awsAwsjson11_deserializeOpDocumentGetOutcomesOutput(v **GetOutcomesOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "outcomes": @@ -9988,7 +10032,7 @@ func awsAwsjson11_deserializeOpDocumentGetRulesOutput(v **GetRulesOutput, value if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ruleDetails": @@ -10033,7 +10077,7 @@ func awsAwsjson11_deserializeOpDocumentGetVariablesOutput(v **GetVariablesOutput if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "variables": @@ -10078,7 +10122,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tags": @@ -10526,7 +10570,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateModelVersionOutput(v **UpdateModelV if !ok { return fmt.Errorf("expected modelIdentifier to be of type string, got %T instead", value) } - sv.ModelId = &jtv + sv.ModelId = ptr.String(jtv) } case "modelType": @@ -10544,7 +10588,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateModelVersionOutput(v **UpdateModelV if !ok { return fmt.Errorf("expected floatVersionString to be of type string, got %T instead", value) } - sv.ModelVersionNumber = &jtv + sv.ModelVersionNumber = ptr.String(jtv) } case "status": @@ -10553,7 +10597,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateModelVersionOutput(v **UpdateModelV if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: diff --git a/service/frauddetector/go.mod b/service/frauddetector/go.mod index 9692b56fcac..69a711ca12d 100644 --- a/service/frauddetector/go.mod +++ b/service/frauddetector/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/frauddetector go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/frauddetector/serializers.go b/service/frauddetector/serializers.go index 61b0446ece9..74d70235dcd 100644 --- a/service/frauddetector/serializers.go +++ b/service/frauddetector/serializers.go @@ -2076,17 +2076,13 @@ func (m *awsAwsjson11_serializeOpUpdateVariable) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentCsvIndexToVariableMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCsvIndexToVariableMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2108,17 +2104,13 @@ func awsAwsjson11_serializeDocumentEntity(v *types.Entity, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentEventVariableMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEventVariableMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2140,46 +2132,38 @@ func awsAwsjson11_serializeDocumentExternalEventsDetail(v *types.ExternalEventsD return nil } -func awsAwsjson11_serializeDocumentExternalModelEndpointDataBlobMap(v map[string]*types.ModelEndpointDataBlob, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExternalModelEndpointDataBlobMap(v map[string]types.ModelEndpointDataBlob, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson11_serializeDocumentModelEndpointDataBlob(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson11_serializeDocumentModelEndpointDataBlob(&mapVar, om); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentJsonKeyToVariableMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentJsonKeyToVariableMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentLabelMapper(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLabelMapper(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentListOfStrings(v[key], om); err != nil { @@ -2203,51 +2187,39 @@ func awsAwsjson11_serializeDocumentLabelSchema(v *types.LabelSchema, value smith return nil } -func awsAwsjson11_serializeDocumentListOfEntities(v []*types.Entity, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentListOfEntities(v []types.Entity, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEntity(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEntity(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentListOfModelVersions(v []*types.ModelVersion, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentListOfModelVersions(v []types.ModelVersion, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentModelVersion(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentModelVersion(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentListOfStrings(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentListOfStrings(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2354,32 +2326,24 @@ func awsAwsjson11_serializeDocumentModelVersion(v *types.ModelVersion, value smi return nil } -func awsAwsjson11_serializeDocumentNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentNonEmptyListOfStrings(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNonEmptyListOfStrings(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2406,17 +2370,13 @@ func awsAwsjson11_serializeDocumentRule(v *types.Rule, value smithyjson.Value) e return nil } -func awsAwsjson11_serializeDocumentRuleList(v []*types.Rule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRuleList(v []types.Rule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRule(&v[i], av); err != nil { return err } } @@ -2440,32 +2400,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2530,17 +2482,13 @@ func awsAwsjson11_serializeDocumentVariableEntry(v *types.VariableEntry, value s return nil } -func awsAwsjson11_serializeDocumentVariableEntryList(v []*types.VariableEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVariableEntryList(v []types.VariableEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentVariableEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentVariableEntry(&v[i], av); err != nil { return err } } diff --git a/service/frauddetector/types/types.go b/service/frauddetector/types/types.go index 77a3d60212a..e8877cf3591 100644 --- a/service/frauddetector/types/types.go +++ b/service/frauddetector/types/types.go @@ -6,7 +6,7 @@ package types type BatchCreateVariableError struct { // The error code. - Code *int32 + Code int32 // The error message. Message *string @@ -19,7 +19,7 @@ type BatchCreateVariableError struct { type BatchGetVariableError struct { // The error code. - Code *int32 + Code int32 // The error message. Message *string @@ -32,10 +32,10 @@ type BatchGetVariableError struct { type DataValidationMetrics struct { // The field-specific model training validation messages. - FieldLevelMessages []*FieldValidationMessage + FieldLevelMessages []FieldValidationMessage // The file-specific model training validation messages. - FileLevelMessages []*FileValidationMessage + FileLevelMessages []FileValidationMessage } // The detector. @@ -123,13 +123,13 @@ type EventType struct { Description *string // The event type entity types. - EntityTypes []*string + EntityTypes []string // The event type event variables. - EventVariables []*string + EventVariables []string // The event type labels. - Labels []*string + Labels []string // Timestamp of when the event type was last updated. LastUpdatedTime *string @@ -254,7 +254,7 @@ type LabelSchema struct { // variants from your event type for a single Amazon Fraud Detector label. // // This member is required. - LabelMapper map[string][]*string + LabelMapper map[string][]string } // Model performance metrics data points. @@ -351,11 +351,11 @@ type ModelOutputConfiguration struct { // A map of CSV index values in the SageMaker response to the Amazon Fraud Detector // variables. - CsvIndexToVariableMap map[string]*string + CsvIndexToVariableMap map[string]string // A map of JSON keys in response from SageMaker to the Amazon Fraud Detector // variables. - JsonKeyToVariableMap map[string]*string + JsonKeyToVariableMap map[string]string } // The fraud prediction scores. @@ -365,7 +365,7 @@ type ModelScores struct { ModelVersion *ModelVersion // The model's fraud prediction scores. - Scores map[string]*float32 + Scores map[string]float32 } // The model version. @@ -490,7 +490,7 @@ type RuleDetail struct { LastUpdatedTime *string // The rule outcomes. - Outcomes []*string + Outcomes []string // The rule ID. RuleId *string @@ -503,7 +503,7 @@ type RuleDetail struct { type RuleResult struct { // The outcomes of the matched rule, based on the rule execution mode. - Outcomes []*string + Outcomes []string // The rule ID that was matched, based on the rule execution mode. RuleId *string @@ -534,7 +534,7 @@ type TrainingDataSchema struct { // The training data schema variables. // // This member is required. - ModelVariables []*string + ModelVariables []string } // The training metric details. @@ -546,7 +546,7 @@ type TrainingMetrics struct { Auc *float32 // The data points details. - MetricDataPoints []*MetricDataPoint + MetricDataPoints []MetricDataPoint } // The training result details. diff --git a/service/frauddetector/validators.go b/service/frauddetector/validators.go index f79d616b06a..18aaed569b2 100644 --- a/service/frauddetector/validators.go +++ b/service/frauddetector/validators.go @@ -901,13 +901,13 @@ func validateLabelSchema(v *types.LabelSchema) error { } } -func validateListOfEntities(v []*types.Entity) error { +func validateListOfEntities(v []types.Entity) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfEntities"} for i := range v { - if err := validateEntity(v[i]); err != nil { + if err := validateEntity(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -918,13 +918,13 @@ func validateListOfEntities(v []*types.Entity) error { } } -func validateListOfModelVersions(v []*types.ModelVersion) error { +func validateListOfModelVersions(v []types.ModelVersion) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfModelVersions"} for i := range v { - if err := validateModelVersion(v[i]); err != nil { + if err := validateModelVersion(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1007,13 +1007,13 @@ func validateRule(v *types.Rule) error { } } -func validateRuleList(v []*types.Rule) error { +func validateRuleList(v []types.Rule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RuleList"} for i := range v { - if err := validateRule(v[i]); err != nil { + if err := validateRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1042,13 +1042,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/fsx/api_op_CreateBackup.go b/service/fsx/api_op_CreateBackup.go index 4872f417e6b..32038e922d0 100644 --- a/service/fsx/api_op_CreateBackup.go +++ b/service/fsx/api_op_CreateBackup.go @@ -83,7 +83,7 @@ type CreateBackupInput struct { // CopyTagsToBackups to true, and you specify one or more tags using the // CreateBackup action, no existing file system tags are copied from the file // system to the backup. - Tags []*types.Tag + Tags []types.Tag } // The response object for the CreateBackup operation. diff --git a/service/fsx/api_op_CreateDataRepositoryTask.go b/service/fsx/api_op_CreateDataRepositoryTask.go index f333bae2a03..abb412e21eb 100644 --- a/service/fsx/api_op_CreateDataRepositoryTask.go +++ b/service/fsx/api_op_CreateDataRepositoryTask.go @@ -71,10 +71,10 @@ type CreateDataRepositoryTaskInput struct { // file system. If the mount point is /mnt/fsx and /mnt/fsx/path1 is a directory or // file on the file system you want to export, then the path to provide is path1. // If a path that you provide isn't valid, the task fails. - Paths []*string + Paths []string // A list of Tag values, with a maximum of 50 elements. - Tags []*types.Tag + Tags []types.Tag } type CreateDataRepositoryTaskOutput struct { diff --git a/service/fsx/api_op_CreateFileSystem.go b/service/fsx/api_op_CreateFileSystem.go index fca6a365761..b44343a9630 100644 --- a/service/fsx/api_op_CreateFileSystem.go +++ b/service/fsx/api_op_CreateFileSystem.go @@ -96,7 +96,7 @@ type CreateFileSystemInput struct { // Zone. // // This member is required. - SubnetIds []*string + SubnetIds []string // A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent // creation. This string is automatically filled on your behalf when you use the @@ -119,7 +119,7 @@ type CreateFileSystemInput struct { // A list of IDs specifying the security groups to apply to all network interfaces // created for file system access. This list isn't returned in later requests to // describe the file system. - SecurityGroupIds []*string + SecurityGroupIds []string // Sets the storage type for the file system you're creating. Valid values are SSD // and HDD. @@ -141,7 +141,7 @@ type CreateFileSystemInput struct { // The tags to apply to the file system being created. The key value of the Name // tag appears in the console as the file system name. - Tags []*types.Tag + Tags []types.Tag // The Microsoft Windows configuration for the file system being created. WindowsConfiguration *types.CreateFileSystemWindowsConfiguration diff --git a/service/fsx/api_op_CreateFileSystemFromBackup.go b/service/fsx/api_op_CreateFileSystemFromBackup.go index 15c87c45adf..9efb8218d58 100644 --- a/service/fsx/api_op_CreateFileSystemFromBackup.go +++ b/service/fsx/api_op_CreateFileSystemFromBackup.go @@ -72,7 +72,7 @@ type CreateFileSystemFromBackupInput struct { // ID. The file server is launched in that subnet's Availability Zone. // // This member is required. - SubnetIds []*string + SubnetIds []string // A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent // creation. This string is automatically filled on your behalf when you use the @@ -86,7 +86,7 @@ type CreateFileSystemFromBackupInput struct { // interfaces created for file system access. These security groups apply to all // network interfaces. This value isn't returned in later DescribeFileSystem // requests. - SecurityGroupIds []*string + SecurityGroupIds []string // Sets the storage type for the Windows file system you're creating from a backup. // Valid values are SSD and HDD. @@ -107,7 +107,7 @@ type CreateFileSystemFromBackupInput struct { // The tags to be applied to the file system at file system creation. The key value // of the Name tag appears in the console as the file system name. - Tags []*types.Tag + Tags []types.Tag // The configuration for this Microsoft Windows file system. WindowsConfiguration *types.CreateFileSystemWindowsConfiguration diff --git a/service/fsx/api_op_DescribeBackups.go b/service/fsx/api_op_DescribeBackups.go index be907b77d53..9242b15f25f 100644 --- a/service/fsx/api_op_DescribeBackups.go +++ b/service/fsx/api_op_DescribeBackups.go @@ -51,10 +51,10 @@ type DescribeBackupsInput struct { // IDs of the backups you want to retrieve (String). This overrides any filters. If // any IDs are not found, BackupNotFound will be thrown. - BackupIds []*string + BackupIds []string // Filters structure. Supported names are file-system-id and backup-type. - Filters []*types.Filter + Filters []types.Filter // Maximum number of backups to return in the response (integer). This parameter // value must be greater than 0. The number of items that Amazon FSx returns is the @@ -72,7 +72,7 @@ type DescribeBackupsInput struct { type DescribeBackupsOutput struct { // Any array of backups. - Backups []*types.Backup + Backups []types.Backup // This is present if there are more backups than returned in the response // (String). You can use the NextToken value in the later request to fetch the diff --git a/service/fsx/api_op_DescribeDataRepositoryTasks.go b/service/fsx/api_op_DescribeDataRepositoryTasks.go index f1a0f68b70a..8119d4f57cb 100644 --- a/service/fsx/api_op_DescribeDataRepositoryTasks.go +++ b/service/fsx/api_op_DescribeDataRepositoryTasks.go @@ -42,7 +42,7 @@ type DescribeDataRepositoryTasksInput struct { // (Optional) You can use filters to narrow the DescribeDataRepositoryTasks // response to include just tasks for specific file systems, or tasks in a specific // lifecycle state. - Filters []*types.DataRepositoryTaskFilter + Filters []types.DataRepositoryTaskFilter // The maximum number of resources to return in the response. This value must be an // integer greater than zero. @@ -54,13 +54,13 @@ type DescribeDataRepositoryTasksInput struct { NextToken *string // (Optional) IDs of the tasks whose descriptions you want to retrieve (String). - TaskIds []*string + TaskIds []string } type DescribeDataRepositoryTasksOutput struct { // The collection of data repository task descriptions returned. - DataRepositoryTasks []*types.DataRepositoryTask + DataRepositoryTasks []types.DataRepositoryTask // (Optional) Opaque pagination token returned from a previous operation (String). // If present, this token indicates from what point you can continue processing the diff --git a/service/fsx/api_op_DescribeFileSystems.go b/service/fsx/api_op_DescribeFileSystems.go index 2330129fc58..0cdc850e8bb 100644 --- a/service/fsx/api_op_DescribeFileSystems.go +++ b/service/fsx/api_op_DescribeFileSystems.go @@ -51,7 +51,7 @@ func (c *Client) DescribeFileSystems(ctx context.Context, params *DescribeFileSy type DescribeFileSystemsInput struct { // IDs of the file systems whose descriptions you want to retrieve (String). - FileSystemIds []*string + FileSystemIds []string // Maximum number of file systems to return in the response (integer). This // parameter value must be greater than 0. The number of items that Amazon FSx @@ -69,7 +69,7 @@ type DescribeFileSystemsInput struct { type DescribeFileSystemsOutput struct { // An array of file system descriptions. - FileSystems []*types.FileSystem + FileSystems []types.FileSystem // Present if there are more file systems than returned in the response (String). // You can use the NextToken value in the later request to fetch the descriptions. diff --git a/service/fsx/api_op_ListTagsForResource.go b/service/fsx/api_op_ListTagsForResource.go index d131de76ced..23aa9ba08dc 100644 --- a/service/fsx/api_op_ListTagsForResource.go +++ b/service/fsx/api_op_ListTagsForResource.go @@ -72,7 +72,7 @@ type ListTagsForResourceOutput struct { NextToken *string // A list of tags on the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/fsx/api_op_TagResource.go b/service/fsx/api_op_TagResource.go index 5d00af12411..de3f22d55db 100644 --- a/service/fsx/api_op_TagResource.go +++ b/service/fsx/api_op_TagResource.go @@ -39,7 +39,7 @@ type TagResourceInput struct { // value is replaced by the one specified in this parameter. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } // The response object for the TagResource operation. diff --git a/service/fsx/api_op_UntagResource.go b/service/fsx/api_op_UntagResource.go index f97c8417024..c815cdb3939 100644 --- a/service/fsx/api_op_UntagResource.go +++ b/service/fsx/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // exist, the call will still succeed to be idempotent. // // This member is required. - TagKeys []*string + TagKeys []string } // The response object for UntagResource action. diff --git a/service/fsx/deserializers.go b/service/fsx/deserializers.go index 4080773f323..b2853bb393e 100644 --- a/service/fsx/deserializers.go +++ b/service/fsx/deserializers.go @@ -2540,7 +2540,7 @@ func awsAwsjson11_deserializeDocumentActiveDirectoryBackupAttributes(v **types.A if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.ActiveDirectoryId = &jtv + sv.ActiveDirectoryId = ptr.String(jtv) } case "DomainName": @@ -2549,7 +2549,7 @@ func awsAwsjson11_deserializeDocumentActiveDirectoryBackupAttributes(v **types.A if !ok { return fmt.Errorf("expected ActiveDirectoryFullyQualifiedName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } default: @@ -2589,7 +2589,7 @@ func awsAwsjson11_deserializeDocumentActiveDirectoryError(v **types.ActiveDirect if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.ActiveDirectoryId = &jtv + sv.ActiveDirectoryId = ptr.String(jtv) } case "Message": @@ -2598,7 +2598,7 @@ func awsAwsjson11_deserializeDocumentActiveDirectoryError(v **types.ActiveDirect if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -2732,7 +2732,7 @@ func awsAwsjson11_deserializeDocumentAdministrativeActionFailureDetails(v **type if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2744,7 +2744,7 @@ func awsAwsjson11_deserializeDocumentAdministrativeActionFailureDetails(v **type return nil } -func awsAwsjson11_deserializeDocumentAdministrativeActions(v *[]*types.AdministrativeAction, value interface{}) error { +func awsAwsjson11_deserializeDocumentAdministrativeActions(v *[]types.AdministrativeAction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2757,18 +2757,20 @@ func awsAwsjson11_deserializeDocumentAdministrativeActions(v *[]*types.Administr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AdministrativeAction + var cv []types.AdministrativeAction if *v == nil { - cv = []*types.AdministrativeAction{} + cv = []types.AdministrativeAction{} } else { cv = *v } for _, value := range shape { - var col *types.AdministrativeAction - if err := awsAwsjson11_deserializeDocumentAdministrativeAction(&col, value); err != nil { + var col types.AdministrativeAction + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAdministrativeAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2804,7 +2806,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) } - sv.BackupId = &jtv + sv.BackupId = ptr.String(jtv) } case "CreationTime": @@ -2841,7 +2843,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "Lifecycle": @@ -2872,7 +2874,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "Tags": @@ -2926,7 +2928,7 @@ func awsAwsjson11_deserializeDocumentBackupFailureDetails(v **types.BackupFailur if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2966,7 +2968,7 @@ func awsAwsjson11_deserializeDocumentBackupInProgress(v **types.BackupInProgress if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3006,7 +3008,7 @@ func awsAwsjson11_deserializeDocumentBackupNotFound(v **types.BackupNotFound, va if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3046,7 +3048,7 @@ func awsAwsjson11_deserializeDocumentBackupRestoring(v **types.BackupRestoring, if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "Message": @@ -3055,7 +3057,7 @@ func awsAwsjson11_deserializeDocumentBackupRestoring(v **types.BackupRestoring, if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3067,7 +3069,7 @@ func awsAwsjson11_deserializeDocumentBackupRestoring(v **types.BackupRestoring, return nil } -func awsAwsjson11_deserializeDocumentBackups(v *[]*types.Backup, value interface{}) error { +func awsAwsjson11_deserializeDocumentBackups(v *[]types.Backup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3080,18 +3082,20 @@ func awsAwsjson11_deserializeDocumentBackups(v *[]*types.Backup, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Backup + var cv []types.Backup if *v == nil { - cv = []*types.Backup{} + cv = []types.Backup{} } else { cv = *v } for _, value := range shape { - var col *types.Backup - if err := awsAwsjson11_deserializeDocumentBackup(&col, value); err != nil { + var col types.Backup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBackup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3127,7 +3131,7 @@ func awsAwsjson11_deserializeDocumentBadRequest(v **types.BadRequest, value inte if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3167,7 +3171,7 @@ func awsAwsjson11_deserializeDocumentCompletionReport(v **types.CompletionReport if !ok { return fmt.Errorf("expected Flag to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } case "Format": @@ -3185,7 +3189,7 @@ func awsAwsjson11_deserializeDocumentCompletionReport(v **types.CompletionReport if !ok { return fmt.Errorf("expected ArchivePath to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "Scope": @@ -3243,7 +3247,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryConfiguration(v **types.DataR if !ok { return fmt.Errorf("expected ArchivePath to be of type string, got %T instead", value) } - sv.ExportPath = &jtv + sv.ExportPath = ptr.String(jtv) } case "FailureDetails": @@ -3270,7 +3274,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryConfiguration(v **types.DataR if !ok { return fmt.Errorf("expected ArchivePath to be of type string, got %T instead", value) } - sv.ImportPath = &jtv + sv.ImportPath = ptr.String(jtv) } case "Lifecycle": @@ -3319,7 +3323,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryFailureDetails(v **types.Data if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3390,7 +3394,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTask(v **types.DataRepository if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "Lifecycle": @@ -3418,7 +3422,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTask(v **types.DataRepository if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "StartTime": @@ -3450,7 +3454,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTask(v **types.DataRepository if !ok { return fmt.Errorf("expected TaskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } case "Type": @@ -3499,7 +3503,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskEnded(v **types.DataRepos if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3539,7 +3543,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskExecuting(v **types.DataR if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3579,7 +3583,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskFailureDetails(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3619,7 +3623,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskNotFound(v **types.DataRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3631,7 +3635,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskNotFound(v **types.DataRe return nil } -func awsAwsjson11_deserializeDocumentDataRepositoryTaskPaths(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataRepositoryTaskPaths(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3644,21 +3648,21 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskPaths(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DataRepositoryTaskPath to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3667,7 +3671,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskPaths(v *[]*string, value return nil } -func awsAwsjson11_deserializeDocumentDataRepositoryTasks(v *[]*types.DataRepositoryTask, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataRepositoryTasks(v *[]types.DataRepositoryTask, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3680,18 +3684,20 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTasks(v *[]*types.DataReposit return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataRepositoryTask + var cv []types.DataRepositoryTask if *v == nil { - cv = []*types.DataRepositoryTask{} + cv = []types.DataRepositoryTask{} } else { cv = *v } for _, value := range shape { - var col *types.DataRepositoryTask - if err := awsAwsjson11_deserializeDocumentDataRepositoryTask(&col, value); err != nil { + var col types.DataRepositoryTask + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataRepositoryTask(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3731,7 +3737,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskStatus(v **types.DataRepo if err != nil { return err } - sv.FailedCount = &i64 + sv.FailedCount = ptr.Int64(i64) } case "LastUpdatedTime": @@ -3757,7 +3763,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskStatus(v **types.DataRepo if err != nil { return err } - sv.SucceededCount = &i64 + sv.SucceededCount = ptr.Int64(i64) } case "TotalCount": @@ -3770,7 +3776,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskStatus(v **types.DataRepo if err != nil { return err } - sv.TotalCount = &i64 + sv.TotalCount = ptr.Int64(i64) } default: @@ -3810,7 +3816,7 @@ func awsAwsjson11_deserializeDocumentDeleteFileSystemLustreResponse(v **types.De if !ok { return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) } - sv.FinalBackupId = &jtv + sv.FinalBackupId = ptr.String(jtv) } case "FinalBackupTags": @@ -3855,7 +3861,7 @@ func awsAwsjson11_deserializeDocumentDeleteFileSystemWindowsResponse(v **types.D if !ok { return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) } - sv.FinalBackupId = &jtv + sv.FinalBackupId = ptr.String(jtv) } case "FinalBackupTags": @@ -3872,7 +3878,7 @@ func awsAwsjson11_deserializeDocumentDeleteFileSystemWindowsResponse(v **types.D return nil } -func awsAwsjson11_deserializeDocumentDnsIps(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDnsIps(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3885,21 +3891,21 @@ func awsAwsjson11_deserializeDocumentDnsIps(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3954,7 +3960,7 @@ func awsAwsjson11_deserializeDocumentFileSystem(v **types.FileSystem, value inte if !ok { return fmt.Errorf("expected DNSName to be of type string, got %T instead", value) } - sv.DNSName = &jtv + sv.DNSName = ptr.String(jtv) } case "FailureDetails": @@ -3968,7 +3974,7 @@ func awsAwsjson11_deserializeDocumentFileSystem(v **types.FileSystem, value inte if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "FileSystemType": @@ -3986,7 +3992,7 @@ func awsAwsjson11_deserializeDocumentFileSystem(v **types.FileSystem, value inte if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "Lifecycle": @@ -4014,7 +4020,7 @@ func awsAwsjson11_deserializeDocumentFileSystem(v **types.FileSystem, value inte if !ok { return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "ResourceARN": @@ -4023,7 +4029,7 @@ func awsAwsjson11_deserializeDocumentFileSystem(v **types.FileSystem, value inte if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "StorageCapacity": @@ -4064,7 +4070,7 @@ func awsAwsjson11_deserializeDocumentFileSystem(v **types.FileSystem, value inte if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } case "WindowsConfiguration": @@ -4109,7 +4115,7 @@ func awsAwsjson11_deserializeDocumentFileSystemFailureDetails(v **types.FileSyst if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4185,7 +4191,7 @@ func awsAwsjson11_deserializeDocumentFileSystemNotFound(v **types.FileSystemNotF if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4197,7 +4203,7 @@ func awsAwsjson11_deserializeDocumentFileSystemNotFound(v **types.FileSystemNotF return nil } -func awsAwsjson11_deserializeDocumentFileSystems(v *[]*types.FileSystem, value interface{}) error { +func awsAwsjson11_deserializeDocumentFileSystems(v *[]types.FileSystem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4210,18 +4216,20 @@ func awsAwsjson11_deserializeDocumentFileSystems(v *[]*types.FileSystem, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FileSystem + var cv []types.FileSystem if *v == nil { - cv = []*types.FileSystem{} + cv = []types.FileSystem{} } else { cv = *v } for _, value := range shape { - var col *types.FileSystem - if err := awsAwsjson11_deserializeDocumentFileSystem(&col, value); err != nil { + var col types.FileSystem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFileSystem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4257,7 +4265,7 @@ func awsAwsjson11_deserializeDocumentIncompatibleParameterError(v **types.Incomp if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Parameter": @@ -4266,7 +4274,7 @@ func awsAwsjson11_deserializeDocumentIncompatibleParameterError(v **types.Incomp if !ok { return fmt.Errorf("expected Parameter to be of type string, got %T instead", value) } - sv.Parameter = &jtv + sv.Parameter = ptr.String(jtv) } default: @@ -4306,7 +4314,7 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4346,7 +4354,7 @@ func awsAwsjson11_deserializeDocumentInvalidExportPath(v **types.InvalidExportPa if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4386,7 +4394,7 @@ func awsAwsjson11_deserializeDocumentInvalidImportPath(v **types.InvalidImportPa if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4426,7 +4434,7 @@ func awsAwsjson11_deserializeDocumentInvalidNetworkSettings(v **types.InvalidNet if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - sv.InvalidSecurityGroupId = &jtv + sv.InvalidSecurityGroupId = ptr.String(jtv) } case "InvalidSubnetId": @@ -4435,7 +4443,7 @@ func awsAwsjson11_deserializeDocumentInvalidNetworkSettings(v **types.InvalidNet if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - sv.InvalidSubnetId = &jtv + sv.InvalidSubnetId = ptr.String(jtv) } case "Message": @@ -4444,7 +4452,7 @@ func awsAwsjson11_deserializeDocumentInvalidNetworkSettings(v **types.InvalidNet if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4484,7 +4492,7 @@ func awsAwsjson11_deserializeDocumentInvalidPerUnitStorageThroughput(v **types.I if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4537,7 +4545,7 @@ func awsAwsjson11_deserializeDocumentLustreFileSystemConfiguration(v **types.Lus if !ok { return fmt.Errorf("expected Flag to be of type *bool, got %T instead", value) } - sv.CopyTagsToBackups = &jtv + sv.CopyTagsToBackups = ptr.Bool(jtv) } case "DailyAutomaticBackupStartTime": @@ -4546,7 +4554,7 @@ func awsAwsjson11_deserializeDocumentLustreFileSystemConfiguration(v **types.Lus if !ok { return fmt.Errorf("expected DailyTime to be of type string, got %T instead", value) } - sv.DailyAutomaticBackupStartTime = &jtv + sv.DailyAutomaticBackupStartTime = ptr.String(jtv) } case "DataRepositoryConfiguration": @@ -4578,7 +4586,7 @@ func awsAwsjson11_deserializeDocumentLustreFileSystemConfiguration(v **types.Lus if !ok { return fmt.Errorf("expected LustreFileSystemMountName to be of type string, got %T instead", value) } - sv.MountName = &jtv + sv.MountName = ptr.String(jtv) } case "PerUnitStorageThroughput": @@ -4600,7 +4608,7 @@ func awsAwsjson11_deserializeDocumentLustreFileSystemConfiguration(v **types.Lus if !ok { return fmt.Errorf("expected WeeklyTime to be of type string, got %T instead", value) } - sv.WeeklyMaintenanceStartTime = &jtv + sv.WeeklyMaintenanceStartTime = ptr.String(jtv) } default: @@ -4640,7 +4648,7 @@ func awsAwsjson11_deserializeDocumentMissingFileSystemConfiguration(v **types.Mi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4652,7 +4660,7 @@ func awsAwsjson11_deserializeDocumentMissingFileSystemConfiguration(v **types.Mi return nil } -func awsAwsjson11_deserializeDocumentNetworkInterfaceIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentNetworkInterfaceIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4665,21 +4673,21 @@ func awsAwsjson11_deserializeDocumentNetworkInterfaceIds(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NetworkInterfaceId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4716,7 +4724,7 @@ func awsAwsjson11_deserializeDocumentNotServiceResourceError(v **types.NotServic if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceARN": @@ -4725,7 +4733,7 @@ func awsAwsjson11_deserializeDocumentNotServiceResourceError(v **types.NotServic if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } default: @@ -4765,7 +4773,7 @@ func awsAwsjson11_deserializeDocumentResourceDoesNotSupportTagging(v **types.Res if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceARN": @@ -4774,7 +4782,7 @@ func awsAwsjson11_deserializeDocumentResourceDoesNotSupportTagging(v **types.Res if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } default: @@ -4814,7 +4822,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFound(v **types.ResourceNotFound if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceARN": @@ -4823,7 +4831,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFound(v **types.ResourceNotFound if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } default: @@ -4868,7 +4876,7 @@ func awsAwsjson11_deserializeDocumentSelfManagedActiveDirectoryAttributes(v **ty if !ok { return fmt.Errorf("expected ActiveDirectoryFullyQualifiedName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "FileSystemAdministratorsGroup": @@ -4877,7 +4885,7 @@ func awsAwsjson11_deserializeDocumentSelfManagedActiveDirectoryAttributes(v **ty if !ok { return fmt.Errorf("expected FileSystemAdministratorsGroupName to be of type string, got %T instead", value) } - sv.FileSystemAdministratorsGroup = &jtv + sv.FileSystemAdministratorsGroup = ptr.String(jtv) } case "OrganizationalUnitDistinguishedName": @@ -4886,7 +4894,7 @@ func awsAwsjson11_deserializeDocumentSelfManagedActiveDirectoryAttributes(v **ty if !ok { return fmt.Errorf("expected OrganizationalUnitDistinguishedName to be of type string, got %T instead", value) } - sv.OrganizationalUnitDistinguishedName = &jtv + sv.OrganizationalUnitDistinguishedName = ptr.String(jtv) } case "UserName": @@ -4895,7 +4903,7 @@ func awsAwsjson11_deserializeDocumentSelfManagedActiveDirectoryAttributes(v **ty if !ok { return fmt.Errorf("expected DirectoryUserName to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -4944,7 +4952,7 @@ func awsAwsjson11_deserializeDocumentServiceLimitExceeded(v **types.ServiceLimit if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4956,7 +4964,7 @@ func awsAwsjson11_deserializeDocumentServiceLimitExceeded(v **types.ServiceLimit return nil } -func awsAwsjson11_deserializeDocumentSubnetIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnetIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4969,21 +4977,21 @@ func awsAwsjson11_deserializeDocumentSubnetIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5020,7 +5028,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -5029,7 +5037,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5041,7 +5049,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5054,18 +5062,20 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5101,7 +5111,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperation(v **types.UnsupportedO if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5141,7 +5151,7 @@ func awsAwsjson11_deserializeDocumentWindowsFileSystemConfiguration(v **types.Wi if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.ActiveDirectoryId = &jtv + sv.ActiveDirectoryId = ptr.String(jtv) } case "AutomaticBackupRetentionDays": @@ -5163,7 +5173,7 @@ func awsAwsjson11_deserializeDocumentWindowsFileSystemConfiguration(v **types.Wi if !ok { return fmt.Errorf("expected Flag to be of type *bool, got %T instead", value) } - sv.CopyTagsToBackups = &jtv + sv.CopyTagsToBackups = ptr.Bool(jtv) } case "DailyAutomaticBackupStartTime": @@ -5172,7 +5182,7 @@ func awsAwsjson11_deserializeDocumentWindowsFileSystemConfiguration(v **types.Wi if !ok { return fmt.Errorf("expected DailyTime to be of type string, got %T instead", value) } - sv.DailyAutomaticBackupStartTime = &jtv + sv.DailyAutomaticBackupStartTime = ptr.String(jtv) } case "DeploymentType": @@ -5195,7 +5205,7 @@ func awsAwsjson11_deserializeDocumentWindowsFileSystemConfiguration(v **types.Wi if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.PreferredFileServerIp = &jtv + sv.PreferredFileServerIp = ptr.String(jtv) } case "PreferredSubnetId": @@ -5204,7 +5214,7 @@ func awsAwsjson11_deserializeDocumentWindowsFileSystemConfiguration(v **types.Wi if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - sv.PreferredSubnetId = &jtv + sv.PreferredSubnetId = ptr.String(jtv) } case "RemoteAdministrationEndpoint": @@ -5213,7 +5223,7 @@ func awsAwsjson11_deserializeDocumentWindowsFileSystemConfiguration(v **types.Wi if !ok { return fmt.Errorf("expected DNSName to be of type string, got %T instead", value) } - sv.RemoteAdministrationEndpoint = &jtv + sv.RemoteAdministrationEndpoint = ptr.String(jtv) } case "SelfManagedActiveDirectoryConfiguration": @@ -5240,7 +5250,7 @@ func awsAwsjson11_deserializeDocumentWindowsFileSystemConfiguration(v **types.Wi if !ok { return fmt.Errorf("expected WeeklyTime to be of type string, got %T instead", value) } - sv.WeeklyMaintenanceStartTime = &jtv + sv.WeeklyMaintenanceStartTime = ptr.String(jtv) } default: @@ -5289,7 +5299,7 @@ func awsAwsjson11_deserializeOpDocumentCancelDataRepositoryTaskOutput(v **Cancel if !ok { return fmt.Errorf("expected TaskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } default: @@ -5473,7 +5483,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteBackupOutput(v **DeleteBackupOutput if !ok { return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) } - sv.BackupId = &jtv + sv.BackupId = ptr.String(jtv) } case "Lifecycle": @@ -5522,7 +5532,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteFileSystemOutput(v **DeleteFileSyst if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "Lifecycle": @@ -5586,7 +5596,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBackupsOutput(v **DescribeBackups if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5631,7 +5641,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDataRepositoryTasksOutput(v **Des if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5676,7 +5686,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFileSystemsOutput(v **DescribeFil if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5716,7 +5726,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": diff --git a/service/fsx/go.mod b/service/fsx/go.mod index 0f1b01350ad..f2d48345bc8 100644 --- a/service/fsx/go.mod +++ b/service/fsx/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/fsx go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/fsx/serializers.go b/service/fsx/serializers.go index b3f509c43cc..6eb501754e6 100644 --- a/service/fsx/serializers.go +++ b/service/fsx/serializers.go @@ -657,17 +657,13 @@ func (m *awsAwsjson11_serializeOpUpdateFileSystem) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentBackupIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBackupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -834,49 +830,37 @@ func awsAwsjson11_serializeDocumentDataRepositoryTaskFilter(v *types.DataReposit return nil } -func awsAwsjson11_serializeDocumentDataRepositoryTaskFilters(v []*types.DataRepositoryTaskFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDataRepositoryTaskFilters(v []types.DataRepositoryTaskFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDataRepositoryTaskFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDataRepositoryTaskFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentDataRepositoryTaskFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDataRepositoryTaskFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentDataRepositoryTaskPaths(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDataRepositoryTaskPaths(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -919,32 +903,24 @@ func awsAwsjson11_serializeDocumentDeleteFileSystemWindowsConfiguration(v *types return nil } -func awsAwsjson11_serializeDocumentDnsIps(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDnsIps(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentFileSystemIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFileSystemIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -968,49 +944,37 @@ func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentFilters(v []*types.Filter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilters(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1078,17 +1042,13 @@ func awsAwsjson11_serializeDocumentSelfManagedActiveDirectoryConfigurationUpdate return nil } -func awsAwsjson11_serializeDocumentSubnetIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnetIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1110,49 +1070,37 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTaskIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTaskIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/fsx/types/types.go b/service/fsx/types/types.go index 7d505962182..c1ad796b910 100644 --- a/service/fsx/types/types.go +++ b/service/fsx/types/types.go @@ -144,7 +144,7 @@ type Backup struct { ResourceARN *string // Tags associated with a particular file system. - Tags []*Tag + Tags []Tag } // If backup creation fails, this structure contains the details of that failure. @@ -536,7 +536,7 @@ type DataRepositoryTask struct { // task, the paths specify which data to export to the linked data repository. // (Default) If Paths is not specified, Amazon FSx uses the file system root // directory. - Paths []*string + Paths []string // Provides a report detailing the data repository task results of the files // processed that match the criteria specified in the report Scope parameter. FSx @@ -561,7 +561,7 @@ type DataRepositoryTask struct { Status *DataRepositoryTaskStatus // A list of Tag values, with a maximum of 50 elements. - Tags []*Tag + Tags []Tag } // Provides information about why a data repository task failed. Only populated @@ -592,7 +592,7 @@ type DataRepositoryTaskFilter struct { // Use Values to include the specific file system IDs and task lifecycle states for // the filters you are using. - Values []*string + Values []string } // Provides the task status showing a running total of the total number of files to @@ -623,7 +623,7 @@ type DeleteFileSystemLustreConfiguration struct { // to the final backup. If you have set the file system property CopyTagsToBackups // to true, and you specify one or more FinalBackupTags when deleting a file // system, Amazon FSx will not copy any existing file system tags to the backup. - FinalBackupTags []*Tag + FinalBackupTags []Tag // Set SkipFinalBackup to false if you want to take a final backup of the file // system you are deleting. By default, Amazon FSx will not take a final backup on @@ -639,7 +639,7 @@ type DeleteFileSystemLustreResponse struct { FinalBackupId *string // The set of tags applied to the final backup. - FinalBackupTags []*Tag + FinalBackupTags []Tag } // The configuration object for the Microsoft Windows file system used in the @@ -647,7 +647,7 @@ type DeleteFileSystemLustreResponse struct { type DeleteFileSystemWindowsConfiguration struct { // A set of tags for your final backup. - FinalBackupTags []*Tag + FinalBackupTags []Tag // By default, Amazon FSx for Windows takes a final backup on your behalf when the // DeleteFileSystem operation is invoked. Doing this helps protect you from data @@ -664,7 +664,7 @@ type DeleteFileSystemWindowsResponse struct { FinalBackupId *string // The set of tags applied to the final backup. - FinalBackupTags []*Tag + FinalBackupTags []Tag } // A description of a specific Amazon FSx file system. @@ -673,7 +673,7 @@ type FileSystem struct { // A list of administrative actions for the file system that are in process or // waiting to be processed. Administrative actions describe changes to the Windows // file system that you have initiated using the UpdateFileSystem action. - AdministrativeActions []*AdministrativeAction + AdministrativeActions []AdministrativeAction // The time that the file system was created, in seconds (since // 1970-01-01T00:00:00Z), also known as Unix time. @@ -736,7 +736,7 @@ type FileSystem struct { // Amazon EC2 User Guide. For an Amazon FSx for Windows File Server file system, // you can have one network interface ID. For an Amazon FSx for Lustre file system, // you can have more than one. - NetworkInterfaceIds []*string + NetworkInterfaceIds []string // The AWS account that created the file system. If the file system was created by // an AWS Identity and Access Management (IAM) user, the AWS account to which the @@ -762,13 +762,13 @@ type FileSystem struct { // file systems, this is the ID of the subnet that contains the endpoint for the // file system. For MULTI_AZ_1 Windows file systems, the endpoint for the file // system is available in the PreferredSubnetID. - SubnetIds []*string + SubnetIds []string // The tags to associate with the file system. For more information, see Tagging // Your Amazon EC2 Resources // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the // Amazon EC2 User Guide. - Tags []*Tag + Tags []Tag // The ID of the primary VPC for the file system. VpcId *string @@ -794,7 +794,7 @@ type Filter struct { // The values of the filter. These are all the values for any of the applied // filters. - Values []*string + Values []string } // The configuration for the Amazon FSx for Lustre file system. @@ -866,7 +866,7 @@ type SelfManagedActiveDirectoryAttributes struct { // A list of up to two IP addresses of DNS servers or domain controllers in the // self-managed AD directory. - DnsIps []*string + DnsIps []string // The fully qualified domain name of the self-managed AD directory. DomainName *string @@ -904,7 +904,7 @@ type SelfManagedActiveDirectoryConfiguration struct { // 192.168.255.255 (192.168/16 prefix) // // This member is required. - DnsIps []*string + DnsIps []string // The fully qualified domain name of the self-managed AD directory, such as // corp.example.com. @@ -952,7 +952,7 @@ type SelfManagedActiveDirectoryConfigurationUpdates struct { // A list of up to two IP addresses of DNS servers or domain controllers in the // self-managed AD directory. - DnsIps []*string + DnsIps []string // The password for the service account on your self-managed AD domain that Amazon // FSx will use to join to your AD domain. diff --git a/service/fsx/validators.go b/service/fsx/validators.go index 3442a68e4e2..5133389d2ac 100644 --- a/service/fsx/validators.go +++ b/service/fsx/validators.go @@ -385,13 +385,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/gamelift/api_op_AcceptMatch.go b/service/gamelift/api_op_AcceptMatch.go index c9386eaca7b..3bf87b29e94 100644 --- a/service/gamelift/api_op_AcceptMatch.go +++ b/service/gamelift/api_op_AcceptMatch.go @@ -71,7 +71,7 @@ type AcceptMatchInput struct { // include one or multiple player IDs. // // This member is required. - PlayerIds []*string + PlayerIds []string // A unique identifier for a matchmaking ticket. The ticket must be in status // REQUIRES_ACCEPTANCE; otherwise this request will fail. diff --git a/service/gamelift/api_op_CreateAlias.go b/service/gamelift/api_op_CreateAlias.go index 87cf8d266b8..7cb451f654c 100644 --- a/service/gamelift/api_op_CreateAlias.go +++ b/service/gamelift/api_op_CreateAlias.go @@ -78,7 +78,7 @@ type CreateAliasInput struct { // TagResource, UntagResource, and ListTagsForResource to add, remove, and view // tags. The maximum tag limit may be lower than stated. See the AWS General // Reference for actual tagging limits. - Tags []*types.Tag + Tags []types.Tag } // Represents the returned data in response to a request operation. diff --git a/service/gamelift/api_op_CreateBuild.go b/service/gamelift/api_op_CreateBuild.go index bbc1ce6be00..9f245e56aa4 100644 --- a/service/gamelift/api_op_CreateBuild.go +++ b/service/gamelift/api_op_CreateBuild.go @@ -101,7 +101,7 @@ type CreateBuildInput struct { // TagResource, UntagResource, and ListTagsForResource to add, remove, and view // tags. The maximum tag limit may be lower than stated. See the AWS General // Reference for actual tagging limits. - Tags []*types.Tag + Tags []types.Tag // Version information that is associated with a build or script. Version strings // do not need to be unique. You can use UpdateBuild to change this value later. diff --git a/service/gamelift/api_op_CreateFleet.go b/service/gamelift/api_op_CreateFleet.go index 8776cb07e34..fda2a1af45f 100644 --- a/service/gamelift/api_op_CreateFleet.go +++ b/service/gamelift/api_op_CreateFleet.go @@ -132,7 +132,7 @@ type CreateFleetInput struct { // accept connections. For Realtime Servers fleets, Amazon GameLift automatically // sets TCP and UDP ranges for use by the Realtime servers. You can specify // multiple permission settings or add more by updating the fleet. - EC2InboundPermissions []*types.IpPermission + EC2InboundPermissions []types.IpPermission // Indicates whether to use On-Demand instances or Spot instances for this fleet. // If empty, the default is ON_DEMAND. Both categories of instances use identical @@ -156,13 +156,13 @@ type CreateFleetInput struct { // server API ProcessReady() and specify one or more directory paths in // logParameters. See more information in the Server API Reference // (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api-ref.html#gamelift-sdk-server-api-ref-dataypes-process). - LogPaths []*string + LogPaths []string // The name of an Amazon CloudWatch metric group to add this fleet to. A metric // group aggregates the metrics for all fleets in the group. Specify an existing // metric group name, or provide a new name to create a new metric group. A fleet // can only be included in one metric group at a time. - MetricGroups []*string + MetricGroups []string // A game session protection policy to apply to all instances in this fleet. If // this parameter is not set, instances in this fleet default to no protection. You @@ -233,7 +233,7 @@ type CreateFleetInput struct { // TagResource, UntagResource, and ListTagsForResource to add, remove, and view // tags. The maximum tag limit may be lower than stated. See the AWS General // Reference for actual tagging limits. - Tags []*types.Tag + Tags []types.Tag } // Represents the returned data in response to a request operation. diff --git a/service/gamelift/api_op_CreateGameServerGroup.go b/service/gamelift/api_op_CreateGameServerGroup.go index c851e7395c8..b4e8a667d74 100644 --- a/service/gamelift/api_op_CreateGameServerGroup.go +++ b/service/gamelift/api_op_CreateGameServerGroup.go @@ -103,7 +103,7 @@ type CreateGameServerGroupInput struct { // in the Amazon EC2 Auto Scaling User Guide. // // This member is required. - InstanceDefinitions []*types.InstanceDefinition + InstanceDefinitions []types.InstanceDefinition // The EC2 launch template that contains configuration settings and game server // code to be deployed to all instances in the game server group. You can specify @@ -190,7 +190,7 @@ type CreateGameServerGroupInput struct { // UntagResource, and ListTagsForResource to add, remove, and view tags, // respectively. The maximum tag limit may be lower than stated. See the AWS // General Reference for actual tagging limits. - Tags []*types.Tag + Tags []types.Tag // A list of virtual private cloud (VPC) subnets to use with instances in the game // server group. By default, all GameLift FleetIQ-supported Availability Zones are @@ -198,7 +198,7 @@ type CreateGameServerGroupInput struct { // property cannot be updated after the game server group is created, and the // corresponding Auto Scaling group will always use the property value that is set // with this request, even if the Auto Scaling group is updated directly - VpcSubnets []*string + VpcSubnets []string } type CreateGameServerGroupOutput struct { diff --git a/service/gamelift/api_op_CreateGameSession.go b/service/gamelift/api_op_CreateGameSession.go index 96caa908eb8..46412ba2315 100644 --- a/service/gamelift/api_op_CreateGameSession.go +++ b/service/gamelift/api_op_CreateGameSession.go @@ -99,7 +99,7 @@ type CreateGameSessionInput struct { // properties are passed to a game server process in the GameSession object with a // request to start a new game session (see Start a Game Session // (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession)). - GameProperties []*types.GameProperty + GameProperties []types.GameProperty // Set of custom game session properties, formatted as a single string value. This // data is passed to a game server process in the GameSession object with a request diff --git a/service/gamelift/api_op_CreateGameSessionQueue.go b/service/gamelift/api_op_CreateGameSessionQueue.go index 75ac538ecf2..28db3e2c223 100644 --- a/service/gamelift/api_op_CreateGameSessionQueue.go +++ b/service/gamelift/api_op_CreateGameSessionQueue.go @@ -77,7 +77,7 @@ type CreateGameSessionQueueInput struct { // A list of fleets that can be used to fulfill game session placement requests in // the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN. // Destinations are listed in default preference order. - Destinations []*types.GameSessionQueueDestination + Destinations []types.GameSessionQueueDestination // A collection of latency policies to apply when processing game sessions // placement requests with player latency information. Multiple policies are @@ -89,7 +89,7 @@ type CreateGameSessionQueueInput struct { // policy for the remainder of the placement. A player latency policy must set a // value for MaximumIndividualPlayerLatencyMilliseconds. If none is set, this API // request fails. - PlayerLatencyPolicies []*types.PlayerLatencyPolicy + PlayerLatencyPolicies []types.PlayerLatencyPolicy // A list of labels to assign to the new game session queue resource. Tags are // developer-defined key-value pairs. Tagging AWS resources are useful for resource @@ -100,7 +100,7 @@ type CreateGameSessionQueueInput struct { // UntagResource, and ListTagsForResource to add, remove, and view tags. The // maximum tag limit may be lower than stated. See the AWS General Reference for // actual tagging limits. - Tags []*types.Tag + Tags []types.Tag // The maximum time, in seconds, that a new game session placement request remains // in the queue. When a request exceeds this time, the game session placement diff --git a/service/gamelift/api_op_CreateMatchmakingConfiguration.go b/service/gamelift/api_op_CreateMatchmakingConfiguration.go index b0de1551aac..39183234f47 100644 --- a/service/gamelift/api_op_CreateMatchmakingConfiguration.go +++ b/service/gamelift/api_op_CreateMatchmakingConfiguration.go @@ -82,7 +82,7 @@ type CreateMatchmakingConfigurationInput struct { // configuration. Queues can be located in any Region. // // This member is required. - GameSessionQueueArns []*string + GameSessionQueueArns []string // A unique identifier for a matchmaking configuration. This name is used to // identify the configuration associated with a matchmaking request or ticket. @@ -136,7 +136,7 @@ type CreateMatchmakingConfigurationInput struct { // (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession)). // This information is added to the new GameSession object that is created for a // successful match. - GameProperties []*types.GameProperty + GameProperties []types.GameProperty // A set of custom game session properties, formatted as a single string value. // This data is passed to a game server process in the GameSession object with a @@ -158,7 +158,7 @@ type CreateMatchmakingConfigurationInput struct { // UntagResource, and ListTagsForResource to add, remove, and view tags. The // maximum tag limit may be lower than stated. See the AWS General Reference for // actual tagging limits. - Tags []*types.Tag + Tags []types.Tag } // Represents the returned data in response to a request operation. diff --git a/service/gamelift/api_op_CreateMatchmakingRuleSet.go b/service/gamelift/api_op_CreateMatchmakingRuleSet.go index e04c56cc4dd..6fee10273c4 100644 --- a/service/gamelift/api_op_CreateMatchmakingRuleSet.go +++ b/service/gamelift/api_op_CreateMatchmakingRuleSet.go @@ -94,7 +94,7 @@ type CreateMatchmakingRuleSetInput struct { // UntagResource, and ListTagsForResource to add, remove, and view tags. The // maximum tag limit may be lower than stated. See the AWS General Reference for // actual tagging limits. - Tags []*types.Tag + Tags []types.Tag } // Represents the returned data in response to a request operation. diff --git a/service/gamelift/api_op_CreatePlayerSessions.go b/service/gamelift/api_op_CreatePlayerSessions.go index 295e71a61f6..91146bc2d04 100644 --- a/service/gamelift/api_op_CreatePlayerSessions.go +++ b/service/gamelift/api_op_CreatePlayerSessions.go @@ -64,20 +64,20 @@ type CreatePlayerSessionsInput struct { // List of unique identifiers for the players to be added. // // This member is required. - PlayerIds []*string + PlayerIds []string // Map of string pairs, each specifying a player ID and a set of developer-defined // information related to the player. Amazon GameLift does not use this data, so it // can be formatted as needed for use in the game. Player data strings for player // IDs not included in the PlayerIds parameter are ignored. - PlayerDataMap map[string]*string + PlayerDataMap map[string]string } // Represents the returned data in response to a request operation. type CreatePlayerSessionsOutput struct { // A collection of player session objects created for the added players. - PlayerSessions []*types.PlayerSession + PlayerSessions []types.PlayerSession // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/gamelift/api_op_CreateScript.go b/service/gamelift/api_op_CreateScript.go index f2a0bc84aa3..8e72af1c826 100644 --- a/service/gamelift/api_op_CreateScript.go +++ b/service/gamelift/api_op_CreateScript.go @@ -89,7 +89,7 @@ type CreateScriptInput struct { // UntagResource, and ListTagsForResource to add, remove, and view tags. The // maximum tag limit may be lower than stated. See the AWS General Reference for // actual tagging limits. - Tags []*types.Tag + Tags []types.Tag // The version that is associated with a build or script. Version strings do not // need to be unique. You can use UpdateScript to change this value later. diff --git a/service/gamelift/api_op_DescribeEC2InstanceLimits.go b/service/gamelift/api_op_DescribeEC2InstanceLimits.go index 94949ef718d..746e33c4392 100644 --- a/service/gamelift/api_op_DescribeEC2InstanceLimits.go +++ b/service/gamelift/api_op_DescribeEC2InstanceLimits.go @@ -70,7 +70,7 @@ type DescribeEC2InstanceLimitsInput struct { type DescribeEC2InstanceLimitsOutput struct { // The maximum number of instances for the specified instance type. - EC2InstanceLimits []*types.EC2InstanceLimit + EC2InstanceLimits []types.EC2InstanceLimit // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/gamelift/api_op_DescribeFleetAttributes.go b/service/gamelift/api_op_DescribeFleetAttributes.go index ecabb3a8a3e..b6f3a4d8f59 100644 --- a/service/gamelift/api_op_DescribeFleetAttributes.go +++ b/service/gamelift/api_op_DescribeFleetAttributes.go @@ -77,7 +77,7 @@ type DescribeFleetAttributesInput struct { // do not include this parameter. If the list of fleet identifiers includes fleets // that don't currently exist, the request succeeds but no attributes for that // fleet are returned. - FleetIds []*string + FleetIds []string // The maximum number of results to return. Use this parameter with NextToken to // get results as a set of sequential pages. This parameter is ignored when the @@ -96,7 +96,7 @@ type DescribeFleetAttributesOutput struct { // A collection of objects containing attribute metadata for each requested fleet // ID. Attribute objects are returned only for fleets that currently exist. - FleetAttributes []*types.FleetAttributes + FleetAttributes []types.FleetAttributes // Token that indicates where to resume retrieving results on the next call to this // operation. If no token is returned, these results represent the end of the list. diff --git a/service/gamelift/api_op_DescribeFleetCapacity.go b/service/gamelift/api_op_DescribeFleetCapacity.go index aba781a3acf..e7a9992f3da 100644 --- a/service/gamelift/api_op_DescribeFleetCapacity.go +++ b/service/gamelift/api_op_DescribeFleetCapacity.go @@ -78,7 +78,7 @@ type DescribeFleetCapacityInput struct { // A unique identifier for a fleet(s) to retrieve capacity information for. You can // use either the fleet ID or ARN value. - FleetIds []*string + FleetIds []string // The maximum number of results to return. Use this parameter with NextToken to // get results as a set of sequential pages. This parameter is ignored when the @@ -97,7 +97,7 @@ type DescribeFleetCapacityOutput struct { // A collection of objects containing capacity information for each requested fleet // ID. Leave this parameter empty to retrieve capacity information for all fleets. - FleetCapacity []*types.FleetCapacity + FleetCapacity []types.FleetCapacity // Token that indicates where to resume retrieving results on the next call to this // operation. If no token is returned, these results represent the end of the list. diff --git a/service/gamelift/api_op_DescribeFleetEvents.go b/service/gamelift/api_op_DescribeFleetEvents.go index ececfd2ceac..9608b1c3fc0 100644 --- a/service/gamelift/api_op_DescribeFleetEvents.go +++ b/service/gamelift/api_op_DescribeFleetEvents.go @@ -98,7 +98,7 @@ type DescribeFleetEventsInput struct { type DescribeFleetEventsOutput struct { // A collection of objects containing event log entries for the specified fleet. - Events []*types.Event + Events []types.Event // Token that indicates where to resume retrieving results on the next call to this // operation. If no token is returned, these results represent the end of the list. diff --git a/service/gamelift/api_op_DescribeFleetPortSettings.go b/service/gamelift/api_op_DescribeFleetPortSettings.go index d3cb43520a0..83eec9b119e 100644 --- a/service/gamelift/api_op_DescribeFleetPortSettings.go +++ b/service/gamelift/api_op_DescribeFleetPortSettings.go @@ -81,7 +81,7 @@ type DescribeFleetPortSettingsInput struct { type DescribeFleetPortSettingsOutput struct { // The port settings for the requested fleet ID. - InboundPermissions []*types.IpPermission + InboundPermissions []types.IpPermission // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/gamelift/api_op_DescribeFleetUtilization.go b/service/gamelift/api_op_DescribeFleetUtilization.go index a37a5bae40a..1c891c06596 100644 --- a/service/gamelift/api_op_DescribeFleetUtilization.go +++ b/service/gamelift/api_op_DescribeFleetUtilization.go @@ -79,7 +79,7 @@ type DescribeFleetUtilizationInput struct { // do not include this parameter. If the list of fleet identifiers includes fleets // that don't currently exist, the request succeeds but no attributes for that // fleet are returned. - FleetIds []*string + FleetIds []string // The maximum number of results to return. Use this parameter with NextToken to // get results as a set of sequential pages. This parameter is ignored when the @@ -98,7 +98,7 @@ type DescribeFleetUtilizationOutput struct { // A collection of objects containing utilization information for each requested // fleet ID. - FleetUtilization []*types.FleetUtilization + FleetUtilization []types.FleetUtilization // Token that indicates where to resume retrieving results on the next call to this // operation. If no token is returned, these results represent the end of the list. diff --git a/service/gamelift/api_op_DescribeGameServerInstances.go b/service/gamelift/api_op_DescribeGameServerInstances.go index b917e314259..7f90159d611 100644 --- a/service/gamelift/api_op_DescribeGameServerInstances.go +++ b/service/gamelift/api_op_DescribeGameServerInstances.go @@ -71,7 +71,7 @@ type DescribeGameServerInstancesInput struct { // The EC2 instance IDs that you want to retrieve status on. EC2 instance IDs use a // 17-character format, for example: i-1234567890abcdef0. To retrieve all instances // in the game server group, leave this parameter empty. - InstanceIds []*string + InstanceIds []string // The maximum number of results to return. Use this parameter with NextToken to // get results as a set of sequential segments. @@ -86,7 +86,7 @@ type DescribeGameServerInstancesInput struct { type DescribeGameServerInstancesOutput struct { // The collection of requested game server instances. - GameServerInstances []*types.GameServerInstance + GameServerInstances []types.GameServerInstance // A token that indicates where to resume retrieving results on the next call to // this operation. If no token is returned, these results represent the end of the diff --git a/service/gamelift/api_op_DescribeGameSessionDetails.go b/service/gamelift/api_op_DescribeGameSessionDetails.go index ca513127e95..d246b7ebfa5 100644 --- a/service/gamelift/api_op_DescribeGameSessionDetails.go +++ b/service/gamelift/api_op_DescribeGameSessionDetails.go @@ -92,7 +92,7 @@ type DescribeGameSessionDetailsOutput struct { // A collection of objects containing game session properties and the protection // policy currently in force for each session matching the request. - GameSessionDetails []*types.GameSessionDetail + GameSessionDetails []types.GameSessionDetail // Token that indicates where to resume retrieving results on the next call to this // operation. If no token is returned, these results represent the end of the list. diff --git a/service/gamelift/api_op_DescribeGameSessionQueues.go b/service/gamelift/api_op_DescribeGameSessionQueues.go index 89ff9f2ff03..988e04cc628 100644 --- a/service/gamelift/api_op_DescribeGameSessionQueues.go +++ b/service/gamelift/api_op_DescribeGameSessionQueues.go @@ -51,7 +51,7 @@ type DescribeGameSessionQueuesInput struct { // A list of queue names to retrieve information for. You can use either the queue // ID or ARN value. To request settings for all queues, leave this parameter empty. - Names []*string + Names []string // A token that indicates the start of the next sequential page of results. Use the // token that is returned with a previous call to this operation. To start at the @@ -63,7 +63,7 @@ type DescribeGameSessionQueuesInput struct { type DescribeGameSessionQueuesOutput struct { // A collection of objects that describe the requested game session queues. - GameSessionQueues []*types.GameSessionQueue + GameSessionQueues []types.GameSessionQueue // A token that indicates where to resume retrieving results on the next call to // this operation. If no token is returned, these results represent the end of the diff --git a/service/gamelift/api_op_DescribeGameSessions.go b/service/gamelift/api_op_DescribeGameSessions.go index 11ecc867783..9bfce9a4d7e 100644 --- a/service/gamelift/api_op_DescribeGameSessions.go +++ b/service/gamelift/api_op_DescribeGameSessions.go @@ -92,7 +92,7 @@ type DescribeGameSessionsOutput struct { // A collection of objects containing game session properties for each session // matching the request. - GameSessions []*types.GameSession + GameSessions []types.GameSession // Token that indicates where to resume retrieving results on the next call to this // operation. If no token is returned, these results represent the end of the list. diff --git a/service/gamelift/api_op_DescribeInstances.go b/service/gamelift/api_op_DescribeInstances.go index bc0a7cbd896..1cd9066b549 100644 --- a/service/gamelift/api_op_DescribeInstances.go +++ b/service/gamelift/api_op_DescribeInstances.go @@ -68,7 +68,7 @@ type DescribeInstancesInput struct { type DescribeInstancesOutput struct { // A collection of objects containing properties for each instance returned. - Instances []*types.Instance + Instances []types.Instance // Token that indicates where to resume retrieving results on the next call to this // operation. If no token is returned, these results represent the end of the list. diff --git a/service/gamelift/api_op_DescribeMatchmaking.go b/service/gamelift/api_op_DescribeMatchmaking.go index fbb508d7cec..4e210c32672 100644 --- a/service/gamelift/api_op_DescribeMatchmaking.go +++ b/service/gamelift/api_op_DescribeMatchmaking.go @@ -60,14 +60,14 @@ type DescribeMatchmakingInput struct { // values. // // This member is required. - TicketIds []*string + TicketIds []string } // Represents the returned data in response to a request operation. type DescribeMatchmakingOutput struct { // A collection of existing matchmaking ticket objects matching the request. - TicketList []*types.MatchmakingTicket + TicketList []types.MatchmakingTicket // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/gamelift/api_op_DescribeMatchmakingConfigurations.go b/service/gamelift/api_op_DescribeMatchmakingConfigurations.go index d7adabfdc8b..9a18d1e755e 100644 --- a/service/gamelift/api_op_DescribeMatchmakingConfigurations.go +++ b/service/gamelift/api_op_DescribeMatchmakingConfigurations.go @@ -66,7 +66,7 @@ type DescribeMatchmakingConfigurationsInput struct { // A unique identifier for a matchmaking configuration(s) to retrieve. You can use // either the configuration name or ARN value. To request all existing // configurations, leave this parameter empty. - Names []*string + Names []string // A token that indicates the start of the next sequential page of results. Use the // token that is returned with a previous call to this operation. To start at the @@ -83,7 +83,7 @@ type DescribeMatchmakingConfigurationsInput struct { type DescribeMatchmakingConfigurationsOutput struct { // A collection of requested matchmaking configurations. - Configurations []*types.MatchmakingConfiguration + Configurations []types.MatchmakingConfiguration // A token that indicates where to resume retrieving results on the next call to // this operation. If no token is returned, these results represent the end of the diff --git a/service/gamelift/api_op_DescribeMatchmakingRuleSets.go b/service/gamelift/api_op_DescribeMatchmakingRuleSets.go index e3d64c9c95b..6ef68d29f21 100644 --- a/service/gamelift/api_op_DescribeMatchmakingRuleSets.go +++ b/service/gamelift/api_op_DescribeMatchmakingRuleSets.go @@ -67,7 +67,7 @@ type DescribeMatchmakingRuleSetsInput struct { // A list of one or more matchmaking rule set names to retrieve details for. (Note: // The rule set name is different from the optional "name" field in the rule set // body.) You can use either the rule set name or ARN value. - Names []*string + Names []string // A token that indicates the start of the next sequential page of results. Use the // token that is returned with a previous call to this operation. To start at the @@ -81,7 +81,7 @@ type DescribeMatchmakingRuleSetsOutput struct { // A collection of requested matchmaking rule set objects. // // This member is required. - RuleSets []*types.MatchmakingRuleSet + RuleSets []types.MatchmakingRuleSet // A token that indicates where to resume retrieving results on the next call to // this operation. If no token is returned, these results represent the end of the diff --git a/service/gamelift/api_op_DescribePlayerSessions.go b/service/gamelift/api_op_DescribePlayerSessions.go index fe64e51da2d..8304a778cce 100644 --- a/service/gamelift/api_op_DescribePlayerSessions.go +++ b/service/gamelift/api_op_DescribePlayerSessions.go @@ -103,7 +103,7 @@ type DescribePlayerSessionsOutput struct { // A collection of objects containing properties for each player session that // matches the request. - PlayerSessions []*types.PlayerSession + PlayerSessions []types.PlayerSession // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/gamelift/api_op_DescribeScalingPolicies.go b/service/gamelift/api_op_DescribeScalingPolicies.go index 1953f1f4623..3657492c549 100644 --- a/service/gamelift/api_op_DescribeScalingPolicies.go +++ b/service/gamelift/api_op_DescribeScalingPolicies.go @@ -110,7 +110,7 @@ type DescribeScalingPoliciesOutput struct { NextToken *string // A collection of objects containing the scaling policies matching the request. - ScalingPolicies []*types.ScalingPolicy + ScalingPolicies []types.ScalingPolicy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/gamelift/api_op_DescribeVpcPeeringAuthorizations.go b/service/gamelift/api_op_DescribeVpcPeeringAuthorizations.go index 411a8ebf97c..af7bc27a7ff 100644 --- a/service/gamelift/api_op_DescribeVpcPeeringAuthorizations.go +++ b/service/gamelift/api_op_DescribeVpcPeeringAuthorizations.go @@ -51,7 +51,7 @@ type DescribeVpcPeeringAuthorizationsOutput struct { // A collection of objects that describe all valid VPC peering operations for the // current AWS account. - VpcPeeringAuthorizations []*types.VpcPeeringAuthorization + VpcPeeringAuthorizations []types.VpcPeeringAuthorization // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/gamelift/api_op_DescribeVpcPeeringConnections.go b/service/gamelift/api_op_DescribeVpcPeeringConnections.go index 91bf4414f7f..704410ccefb 100644 --- a/service/gamelift/api_op_DescribeVpcPeeringConnections.go +++ b/service/gamelift/api_op_DescribeVpcPeeringConnections.go @@ -59,7 +59,7 @@ type DescribeVpcPeeringConnectionsInput struct { type DescribeVpcPeeringConnectionsOutput struct { // A collection of VPC peering connection records that match the request. - VpcPeeringConnections []*types.VpcPeeringConnection + VpcPeeringConnections []types.VpcPeeringConnection // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/gamelift/api_op_ListAliases.go b/service/gamelift/api_op_ListAliases.go index 60739191689..1bcd0dc1cdf 100644 --- a/service/gamelift/api_op_ListAliases.go +++ b/service/gamelift/api_op_ListAliases.go @@ -77,7 +77,7 @@ type ListAliasesInput struct { type ListAliasesOutput struct { // A collection of alias resources that match the request parameters. - Aliases []*types.Alias + Aliases []types.Alias // A token that indicates where to resume retrieving results on the next call to // this operation. If no token is returned, these results represent the end of the diff --git a/service/gamelift/api_op_ListBuilds.go b/service/gamelift/api_op_ListBuilds.go index 5ee6f0ca07f..97d45f306ce 100644 --- a/service/gamelift/api_op_ListBuilds.go +++ b/service/gamelift/api_op_ListBuilds.go @@ -76,7 +76,7 @@ type ListBuildsInput struct { type ListBuildsOutput struct { // A collection of build resources that match the request. - Builds []*types.Build + Builds []types.Build // Token that indicates where to resume retrieving results on the next call to this // operation. If no token is returned, these results represent the end of the list. diff --git a/service/gamelift/api_op_ListFleets.go b/service/gamelift/api_op_ListFleets.go index df4db5bc665..73ab60fa5b2 100644 --- a/service/gamelift/api_op_ListFleets.go +++ b/service/gamelift/api_op_ListFleets.go @@ -76,7 +76,7 @@ type ListFleetsOutput struct { // Set of fleet IDs matching the list request. You can retrieve additional // information about all returned fleets by passing this result set to a call to // DescribeFleetAttributes, DescribeFleetCapacity, or DescribeFleetUtilization. - FleetIds []*string + FleetIds []string // Token that indicates where to resume retrieving results on the next call to this // operation. If no token is returned, these results represent the end of the list. diff --git a/service/gamelift/api_op_ListGameServerGroups.go b/service/gamelift/api_op_ListGameServerGroups.go index 9c9044fe4b6..3471ef7a7ce 100644 --- a/service/gamelift/api_op_ListGameServerGroups.go +++ b/service/gamelift/api_op_ListGameServerGroups.go @@ -65,7 +65,7 @@ type ListGameServerGroupsInput struct { type ListGameServerGroupsOutput struct { // A collection of game server group objects that match the request. - GameServerGroups []*types.GameServerGroup + GameServerGroups []types.GameServerGroup // A token that indicates where to resume retrieving results on the next call to // this operation. If no token is returned, these results represent the end of the diff --git a/service/gamelift/api_op_ListGameServers.go b/service/gamelift/api_op_ListGameServers.go index 3bf646fc58e..e7f74819d21 100644 --- a/service/gamelift/api_op_ListGameServers.go +++ b/service/gamelift/api_op_ListGameServers.go @@ -74,7 +74,7 @@ type ListGameServersInput struct { type ListGameServersOutput struct { // A collection of game server objects that match the request. - GameServers []*types.GameServer + GameServers []types.GameServer // A token that indicates where to resume retrieving results on the next call to // this operation. If no token is returned, these results represent the end of the diff --git a/service/gamelift/api_op_ListScripts.go b/service/gamelift/api_op_ListScripts.go index d0ff1882bcd..54d8f044f04 100644 --- a/service/gamelift/api_op_ListScripts.go +++ b/service/gamelift/api_op_ListScripts.go @@ -61,7 +61,7 @@ type ListScriptsOutput struct { NextToken *string // A set of properties describing the requested script. - Scripts []*types.Script + Scripts []types.Script // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/gamelift/api_op_ListTagsForResource.go b/service/gamelift/api_op_ListTagsForResource.go index 4600c2ae845..34ad1ea361f 100644 --- a/service/gamelift/api_op_ListTagsForResource.go +++ b/service/gamelift/api_op_ListTagsForResource.go @@ -74,7 +74,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The collection of tags that have been assigned to the specified resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/gamelift/api_op_PutScalingPolicy.go b/service/gamelift/api_op_PutScalingPolicy.go index 6216c48db5a..04a7091d2dc 100644 --- a/service/gamelift/api_op_PutScalingPolicy.go +++ b/service/gamelift/api_op_PutScalingPolicy.go @@ -185,7 +185,7 @@ type PutScalingPolicyInput struct { PolicyType types.PolicyType // Amount of adjustment to make, based on the scaling adjustment type. - ScalingAdjustment *int32 + ScalingAdjustment int32 // The type of adjustment to make to a fleet's instance count (see // FleetCapacity): @@ -207,7 +207,7 @@ type PutScalingPolicyInput struct { TargetConfiguration *types.TargetConfiguration // Metric value used to trigger a scaling event. - Threshold *float64 + Threshold float64 } // Represents the returned data in response to a request operation. diff --git a/service/gamelift/api_op_SearchGameSessions.go b/service/gamelift/api_op_SearchGameSessions.go index d4917a6bc47..fae2995df93 100644 --- a/service/gamelift/api_op_SearchGameSessions.go +++ b/service/gamelift/api_op_SearchGameSessions.go @@ -188,7 +188,7 @@ type SearchGameSessionsOutput struct { // A collection of objects containing game session properties for each session // matching the request. - GameSessions []*types.GameSession + GameSessions []types.GameSession // Token that indicates where to resume retrieving results on the next call to this // operation. If no token is returned, these results represent the end of the list. diff --git a/service/gamelift/api_op_StartGameSessionPlacement.go b/service/gamelift/api_op_StartGameSessionPlacement.go index 5995e767e7b..92f2e1545f7 100644 --- a/service/gamelift/api_op_StartGameSessionPlacement.go +++ b/service/gamelift/api_op_StartGameSessionPlacement.go @@ -111,13 +111,13 @@ type StartGameSessionPlacementInput struct { PlacementId *string // Set of information on each player to create a player session for. - DesiredPlayerSessions []*types.DesiredPlayerSession + DesiredPlayerSessions []types.DesiredPlayerSession // Set of custom properties for a game session, formatted as key:value pairs. These // properties are passed to a game server process in the GameSession object with a // request to start a new game session (see Start a Game Session // (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession)). - GameProperties []*types.GameProperty + GameProperties []types.GameProperty // Set of custom game session properties, formatted as a single string value. This // data is passed to a game server process in the GameSession object with a request @@ -133,7 +133,7 @@ type StartGameSessionPlacementInput struct { // a player experiences when connected to AWS Regions. This information is used to // try to place the new game session where it can offer the best possible gameplay // experience for the players. - PlayerLatencies []*types.PlayerLatency + PlayerLatencies []types.PlayerLatency } // Represents the returned data in response to a request operation. diff --git a/service/gamelift/api_op_StartMatchBackfill.go b/service/gamelift/api_op_StartMatchBackfill.go index b8414d0c2fa..dbc43fbe295 100644 --- a/service/gamelift/api_op_StartMatchBackfill.go +++ b/service/gamelift/api_op_StartMatchBackfill.go @@ -98,7 +98,7 @@ type StartMatchBackfillInput struct { // include latency values for any other Region. // // This member is required. - Players []*types.Player + Players []types.Player // A unique identifier for a matchmaking ticket. If no ticket ID is specified here, // Amazon GameLift will generate one in the form of a UUID. Use this identifier to diff --git a/service/gamelift/api_op_StartMatchmaking.go b/service/gamelift/api_op_StartMatchmaking.go index a11b19c2052..375aab4cd09 100644 --- a/service/gamelift/api_op_StartMatchmaking.go +++ b/service/gamelift/api_op_StartMatchmaking.go @@ -108,7 +108,7 @@ type StartMatchmakingInput struct { // of the team the player is assigned to. // // This member is required. - Players []*types.Player + Players []types.Player // A unique identifier for a matchmaking ticket. If no ticket ID is specified here, // Amazon GameLift will generate one in the form of a UUID. Use this identifier to diff --git a/service/gamelift/api_op_TagResource.go b/service/gamelift/api_op_TagResource.go index fadadec4b60..0e252d78531 100644 --- a/service/gamelift/api_op_TagResource.go +++ b/service/gamelift/api_op_TagResource.go @@ -81,7 +81,7 @@ type TagResourceInput struct { // tagging limits. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/gamelift/api_op_UntagResource.go b/service/gamelift/api_op_UntagResource.go index 0dddc9a0687..9d6413a750b 100644 --- a/service/gamelift/api_op_UntagResource.go +++ b/service/gamelift/api_op_UntagResource.go @@ -77,7 +77,7 @@ type UntagResourceInput struct { // tag key identifies which tag to remove. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/gamelift/api_op_UpdateFleetAttributes.go b/service/gamelift/api_op_UpdateFleetAttributes.go index a24f1afe5ee..84363852474 100644 --- a/service/gamelift/api_op_UpdateFleetAttributes.go +++ b/service/gamelift/api_op_UpdateFleetAttributes.go @@ -71,7 +71,7 @@ type UpdateFleetAttributesInput struct { // metric group is to aggregate metrics from multiple fleets. Use an existing // metric group name to add this fleet to the group. Or use a new name to create a // new metric group. A fleet can only be included in one metric group at a time. - MetricGroups []*string + MetricGroups []string // A descriptive label that is associated with a fleet. Fleet names do not need to // be unique. diff --git a/service/gamelift/api_op_UpdateFleetPortSettings.go b/service/gamelift/api_op_UpdateFleetPortSettings.go index b5df2548762..821f8b47b03 100644 --- a/service/gamelift/api_op_UpdateFleetPortSettings.go +++ b/service/gamelift/api_op_UpdateFleetPortSettings.go @@ -67,10 +67,10 @@ type UpdateFleetPortSettingsInput struct { FleetId *string // A collection of port settings to be added to the fleet resource. - InboundPermissionAuthorizations []*types.IpPermission + InboundPermissionAuthorizations []types.IpPermission // A collection of port settings to be removed from the fleet resource. - InboundPermissionRevocations []*types.IpPermission + InboundPermissionRevocations []types.IpPermission } // Represents the returned data in response to a request operation. diff --git a/service/gamelift/api_op_UpdateGameServerGroup.go b/service/gamelift/api_op_UpdateGameServerGroup.go index ed64acf04bf..35bb978b3d0 100644 --- a/service/gamelift/api_op_UpdateGameServerGroup.go +++ b/service/gamelift/api_op_UpdateGameServerGroup.go @@ -107,7 +107,7 @@ type UpdateGameServerGroupInput struct { // Instance Weighting for Amazon EC2 Auto Scaling // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-weighting.html) // in the Amazon EC2 Auto Scaling User Guide. - InstanceDefinitions []*types.InstanceDefinition + InstanceDefinitions []types.InstanceDefinition // The Amazon Resource Name (ARN // (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html)) for an IAM diff --git a/service/gamelift/api_op_UpdateGameSessionQueue.go b/service/gamelift/api_op_UpdateGameSessionQueue.go index 803bb12a129..472af5b1a23 100644 --- a/service/gamelift/api_op_UpdateGameSessionQueue.go +++ b/service/gamelift/api_op_UpdateGameSessionQueue.go @@ -54,7 +54,7 @@ type UpdateGameSessionQueueInput struct { // the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN. // Destinations are listed in default preference order. When updating this list, // provide a complete list of destinations. - Destinations []*types.GameSessionQueueDestination + Destinations []types.GameSessionQueueDestination // A collection of latency policies to apply when processing game sessions // placement requests with player latency information. Multiple policies are @@ -65,7 +65,7 @@ type UpdateGameSessionQueueInput struct { // might enforce a 60-second policy followed by a 120-second policy, and then no // policy for the remainder of the placement. When updating policies, provide a // complete collection of policies. - PlayerLatencyPolicies []*types.PlayerLatencyPolicy + PlayerLatencyPolicies []types.PlayerLatencyPolicy // The maximum time, in seconds, that a new game session placement request remains // in the queue. When a request exceeds this time, the game session placement diff --git a/service/gamelift/api_op_UpdateMatchmakingConfiguration.go b/service/gamelift/api_op_UpdateMatchmakingConfiguration.go index 3cbf098663b..6b44666f017 100644 --- a/service/gamelift/api_op_UpdateMatchmakingConfiguration.go +++ b/service/gamelift/api_op_UpdateMatchmakingConfiguration.go @@ -97,7 +97,7 @@ type UpdateMatchmakingConfigurationInput struct { // (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession)). // This information is added to the new GameSession object that is created for a // successful match. - GameProperties []*types.GameProperty + GameProperties []types.GameProperty // A set of custom game session properties, formatted as a single string value. // This data is passed to a game server process in the GameSession object with a @@ -113,7 +113,7 @@ type UpdateMatchmakingConfigurationInput struct { // identifies it. ARNs are unique across all Regions. These queues are used when // placing game sessions for matches that are created with this matchmaking // configuration. Queues can be located in any Region. - GameSessionQueueArns []*string + GameSessionQueueArns []string // An SNS topic ARN that is set up to receive matchmaking notifications. See // Setting up Notifications for Matchmaking diff --git a/service/gamelift/deserializers.go b/service/gamelift/deserializers.go index 11a9cbd081f..1e36d7bd21b 100644 --- a/service/gamelift/deserializers.go +++ b/service/gamelift/deserializers.go @@ -11492,7 +11492,7 @@ func awsAwsjson11_deserializeDocumentAlias(v **types.Alias, value interface{}) e if !ok { return fmt.Errorf("expected AliasArn to be of type string, got %T instead", value) } - sv.AliasArn = &jtv + sv.AliasArn = ptr.String(jtv) } case "AliasId": @@ -11501,7 +11501,7 @@ func awsAwsjson11_deserializeDocumentAlias(v **types.Alias, value interface{}) e if !ok { return fmt.Errorf("expected AliasId to be of type string, got %T instead", value) } - sv.AliasId = &jtv + sv.AliasId = ptr.String(jtv) } case "CreationTime": @@ -11523,7 +11523,7 @@ func awsAwsjson11_deserializeDocumentAlias(v **types.Alias, value interface{}) e if !ok { return fmt.Errorf("expected FreeText to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LastUpdatedTime": @@ -11545,7 +11545,7 @@ func awsAwsjson11_deserializeDocumentAlias(v **types.Alias, value interface{}) e if !ok { return fmt.Errorf("expected NonBlankAndLengthConstraintString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RoutingStrategy": @@ -11562,7 +11562,7 @@ func awsAwsjson11_deserializeDocumentAlias(v **types.Alias, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentAliasList(v *[]*types.Alias, value interface{}) error { +func awsAwsjson11_deserializeDocumentAliasList(v *[]types.Alias, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11575,18 +11575,20 @@ func awsAwsjson11_deserializeDocumentAliasList(v *[]*types.Alias, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Alias + var cv []types.Alias if *v == nil { - cv = []*types.Alias{} + cv = []types.Alias{} } else { cv = *v } for _, value := range shape { - var col *types.Alias - if err := awsAwsjson11_deserializeDocumentAlias(&col, value); err != nil { + var col types.Alias + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAlias(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11626,7 +11628,7 @@ func awsAwsjson11_deserializeDocumentAttributeValue(v **types.AttributeValue, va if err != nil { return err } - sv.N = &f64 + sv.N = ptr.Float64(f64) } case "S": @@ -11635,7 +11637,7 @@ func awsAwsjson11_deserializeDocumentAttributeValue(v **types.AttributeValue, va if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.S = &jtv + sv.S = ptr.String(jtv) } case "SDM": @@ -11685,7 +11687,7 @@ func awsAwsjson11_deserializeDocumentAwsCredentials(v **types.AwsCredentials, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AccessKeyId = &jtv + sv.AccessKeyId = ptr.String(jtv) } case "SecretAccessKey": @@ -11694,7 +11696,7 @@ func awsAwsjson11_deserializeDocumentAwsCredentials(v **types.AwsCredentials, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SecretAccessKey = &jtv + sv.SecretAccessKey = ptr.String(jtv) } case "SessionToken": @@ -11703,7 +11705,7 @@ func awsAwsjson11_deserializeDocumentAwsCredentials(v **types.AwsCredentials, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SessionToken = &jtv + sv.SessionToken = ptr.String(jtv) } default: @@ -11743,7 +11745,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected BuildArn to be of type string, got %T instead", value) } - sv.BuildArn = &jtv + sv.BuildArn = ptr.String(jtv) } case "BuildId": @@ -11752,7 +11754,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected BuildId to be of type string, got %T instead", value) } - sv.BuildId = &jtv + sv.BuildId = ptr.String(jtv) } case "CreationTime": @@ -11774,7 +11776,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected FreeText to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OperatingSystem": @@ -11796,7 +11798,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if err != nil { return err } - sv.SizeOnDisk = &i64 + sv.SizeOnDisk = ptr.Int64(i64) } case "Status": @@ -11814,7 +11816,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e if !ok { return fmt.Errorf("expected FreeText to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -11826,7 +11828,7 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentBuildList(v *[]*types.Build, value interface{}) error { +func awsAwsjson11_deserializeDocumentBuildList(v *[]types.Build, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11839,18 +11841,20 @@ func awsAwsjson11_deserializeDocumentBuildList(v *[]*types.Build, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Build + var cv []types.Build if *v == nil { - cv = []*types.Build{} + cv = []types.Build{} } else { cv = *v } for _, value := range shape { - var col *types.Build - if err := awsAwsjson11_deserializeDocumentBuild(&col, value); err != nil { + var col types.Build + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBuild(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11926,7 +11930,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12126,7 +12130,7 @@ func awsAwsjson11_deserializeDocumentEC2InstanceLimit(v **types.EC2InstanceLimit return nil } -func awsAwsjson11_deserializeDocumentEC2InstanceLimitList(v *[]*types.EC2InstanceLimit, value interface{}) error { +func awsAwsjson11_deserializeDocumentEC2InstanceLimitList(v *[]types.EC2InstanceLimit, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12139,18 +12143,20 @@ func awsAwsjson11_deserializeDocumentEC2InstanceLimitList(v *[]*types.EC2Instanc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EC2InstanceLimit + var cv []types.EC2InstanceLimit if *v == nil { - cv = []*types.EC2InstanceLimit{} + cv = []types.EC2InstanceLimit{} } else { cv = *v } for _, value := range shape { - var col *types.EC2InstanceLimit - if err := awsAwsjson11_deserializeDocumentEC2InstanceLimit(&col, value); err != nil { + var col types.EC2InstanceLimit + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEC2InstanceLimit(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12195,7 +12201,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.EventId = &jtv + sv.EventId = ptr.String(jtv) } case "EventTime": @@ -12217,7 +12223,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "PreSignedLogUrl": @@ -12226,7 +12232,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.PreSignedLogUrl = &jtv + sv.PreSignedLogUrl = ptr.String(jtv) } case "ResourceId": @@ -12235,7 +12241,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } default: @@ -12247,7 +12253,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentEventList(v *[]*types.Event, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventList(v *[]types.Event, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12260,18 +12266,20 @@ func awsAwsjson11_deserializeDocumentEventList(v *[]*types.Event, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Event + var cv []types.Event if *v == nil { - cv = []*types.Event{} + cv = []types.Event{} } else { cv = *v } for _, value := range shape { - var col *types.Event - if err := awsAwsjson11_deserializeDocumentEvent(&col, value); err != nil { + var col types.Event + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12343,7 +12351,7 @@ func awsAwsjson11_deserializeDocumentFleetAttributes(v **types.FleetAttributes, if !ok { return fmt.Errorf("expected BuildArn to be of type string, got %T instead", value) } - sv.BuildArn = &jtv + sv.BuildArn = ptr.String(jtv) } case "BuildId": @@ -12352,7 +12360,7 @@ func awsAwsjson11_deserializeDocumentFleetAttributes(v **types.FleetAttributes, if !ok { return fmt.Errorf("expected BuildId to be of type string, got %T instead", value) } - sv.BuildId = &jtv + sv.BuildId = ptr.String(jtv) } case "CertificateConfiguration": @@ -12379,7 +12387,7 @@ func awsAwsjson11_deserializeDocumentFleetAttributes(v **types.FleetAttributes, if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "FleetArn": @@ -12388,7 +12396,7 @@ func awsAwsjson11_deserializeDocumentFleetAttributes(v **types.FleetAttributes, if !ok { return fmt.Errorf("expected FleetArn to be of type string, got %T instead", value) } - sv.FleetArn = &jtv + sv.FleetArn = ptr.String(jtv) } case "FleetId": @@ -12397,7 +12405,7 @@ func awsAwsjson11_deserializeDocumentFleetAttributes(v **types.FleetAttributes, if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } case "FleetType": @@ -12415,7 +12423,7 @@ func awsAwsjson11_deserializeDocumentFleetAttributes(v **types.FleetAttributes, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceRoleArn = &jtv + sv.InstanceRoleArn = ptr.String(jtv) } case "InstanceType": @@ -12443,7 +12451,7 @@ func awsAwsjson11_deserializeDocumentFleetAttributes(v **types.FleetAttributes, if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NewGameSessionProtectionPolicy": @@ -12475,7 +12483,7 @@ func awsAwsjson11_deserializeDocumentFleetAttributes(v **types.FleetAttributes, if !ok { return fmt.Errorf("expected ScriptArn to be of type string, got %T instead", value) } - sv.ScriptArn = &jtv + sv.ScriptArn = ptr.String(jtv) } case "ScriptId": @@ -12484,7 +12492,7 @@ func awsAwsjson11_deserializeDocumentFleetAttributes(v **types.FleetAttributes, if !ok { return fmt.Errorf("expected ScriptId to be of type string, got %T instead", value) } - sv.ScriptId = &jtv + sv.ScriptId = ptr.String(jtv) } case "ServerLaunchParameters": @@ -12493,7 +12501,7 @@ func awsAwsjson11_deserializeDocumentFleetAttributes(v **types.FleetAttributes, if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.ServerLaunchParameters = &jtv + sv.ServerLaunchParameters = ptr.String(jtv) } case "ServerLaunchPath": @@ -12502,7 +12510,7 @@ func awsAwsjson11_deserializeDocumentFleetAttributes(v **types.FleetAttributes, if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.ServerLaunchPath = &jtv + sv.ServerLaunchPath = ptr.String(jtv) } case "Status": @@ -12541,7 +12549,7 @@ func awsAwsjson11_deserializeDocumentFleetAttributes(v **types.FleetAttributes, return nil } -func awsAwsjson11_deserializeDocumentFleetAttributesList(v *[]*types.FleetAttributes, value interface{}) error { +func awsAwsjson11_deserializeDocumentFleetAttributesList(v *[]types.FleetAttributes, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12554,18 +12562,20 @@ func awsAwsjson11_deserializeDocumentFleetAttributesList(v *[]*types.FleetAttrib return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FleetAttributes + var cv []types.FleetAttributes if *v == nil { - cv = []*types.FleetAttributes{} + cv = []types.FleetAttributes{} } else { cv = *v } for _, value := range shape { - var col *types.FleetAttributes - if err := awsAwsjson11_deserializeDocumentFleetAttributes(&col, value); err != nil { + var col types.FleetAttributes + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFleetAttributes(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12601,7 +12611,7 @@ func awsAwsjson11_deserializeDocumentFleetCapacity(v **types.FleetCapacity, valu if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } case "InstanceCounts": @@ -12655,7 +12665,7 @@ func awsAwsjson11_deserializeDocumentFleetCapacityExceededException(v **types.Fl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12667,7 +12677,7 @@ func awsAwsjson11_deserializeDocumentFleetCapacityExceededException(v **types.Fl return nil } -func awsAwsjson11_deserializeDocumentFleetCapacityList(v *[]*types.FleetCapacity, value interface{}) error { +func awsAwsjson11_deserializeDocumentFleetCapacityList(v *[]types.FleetCapacity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12680,18 +12690,20 @@ func awsAwsjson11_deserializeDocumentFleetCapacityList(v *[]*types.FleetCapacity return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FleetCapacity + var cv []types.FleetCapacity if *v == nil { - cv = []*types.FleetCapacity{} + cv = []types.FleetCapacity{} } else { cv = *v } for _, value := range shape { - var col *types.FleetCapacity - if err := awsAwsjson11_deserializeDocumentFleetCapacity(&col, value); err != nil { + var col types.FleetCapacity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFleetCapacity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12699,7 +12711,7 @@ func awsAwsjson11_deserializeDocumentFleetCapacityList(v *[]*types.FleetCapacity return nil } -func awsAwsjson11_deserializeDocumentFleetIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentFleetIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12712,21 +12724,21 @@ func awsAwsjson11_deserializeDocumentFleetIdList(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -12802,7 +12814,7 @@ func awsAwsjson11_deserializeDocumentFleetUtilization(v **types.FleetUtilization if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } case "MaximumPlayerSessionCount": @@ -12827,7 +12839,7 @@ func awsAwsjson11_deserializeDocumentFleetUtilization(v **types.FleetUtilization return nil } -func awsAwsjson11_deserializeDocumentFleetUtilizationList(v *[]*types.FleetUtilization, value interface{}) error { +func awsAwsjson11_deserializeDocumentFleetUtilizationList(v *[]types.FleetUtilization, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12840,18 +12852,20 @@ func awsAwsjson11_deserializeDocumentFleetUtilizationList(v *[]*types.FleetUtili return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FleetUtilization + var cv []types.FleetUtilization if *v == nil { - cv = []*types.FleetUtilization{} + cv = []types.FleetUtilization{} } else { cv = *v } for _, value := range shape { - var col *types.FleetUtilization - if err := awsAwsjson11_deserializeDocumentFleetUtilization(&col, value); err != nil { + var col types.FleetUtilization + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFleetUtilization(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12887,7 +12901,7 @@ func awsAwsjson11_deserializeDocumentGameProperty(v **types.GameProperty, value if !ok { return fmt.Errorf("expected GamePropertyKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -12896,7 +12910,7 @@ func awsAwsjson11_deserializeDocumentGameProperty(v **types.GameProperty, value if !ok { return fmt.Errorf("expected GamePropertyValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -12908,7 +12922,7 @@ func awsAwsjson11_deserializeDocumentGameProperty(v **types.GameProperty, value return nil } -func awsAwsjson11_deserializeDocumentGamePropertyList(v *[]*types.GameProperty, value interface{}) error { +func awsAwsjson11_deserializeDocumentGamePropertyList(v *[]types.GameProperty, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12921,18 +12935,20 @@ func awsAwsjson11_deserializeDocumentGamePropertyList(v *[]*types.GameProperty, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GameProperty + var cv []types.GameProperty if *v == nil { - cv = []*types.GameProperty{} + cv = []types.GameProperty{} } else { cv = *v } for _, value := range shape { - var col *types.GameProperty - if err := awsAwsjson11_deserializeDocumentGameProperty(&col, value); err != nil { + var col types.GameProperty + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGameProperty(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12977,7 +12993,7 @@ func awsAwsjson11_deserializeDocumentGameServer(v **types.GameServer, value inte if !ok { return fmt.Errorf("expected GameServerConnectionInfo to be of type string, got %T instead", value) } - sv.ConnectionInfo = &jtv + sv.ConnectionInfo = ptr.String(jtv) } case "GameServerData": @@ -12986,7 +13002,7 @@ func awsAwsjson11_deserializeDocumentGameServer(v **types.GameServer, value inte if !ok { return fmt.Errorf("expected GameServerData to be of type string, got %T instead", value) } - sv.GameServerData = &jtv + sv.GameServerData = ptr.String(jtv) } case "GameServerGroupArn": @@ -12995,7 +13011,7 @@ func awsAwsjson11_deserializeDocumentGameServer(v **types.GameServer, value inte if !ok { return fmt.Errorf("expected GameServerGroupArn to be of type string, got %T instead", value) } - sv.GameServerGroupArn = &jtv + sv.GameServerGroupArn = ptr.String(jtv) } case "GameServerGroupName": @@ -13004,7 +13020,7 @@ func awsAwsjson11_deserializeDocumentGameServer(v **types.GameServer, value inte if !ok { return fmt.Errorf("expected GameServerGroupName to be of type string, got %T instead", value) } - sv.GameServerGroupName = &jtv + sv.GameServerGroupName = ptr.String(jtv) } case "GameServerId": @@ -13013,7 +13029,7 @@ func awsAwsjson11_deserializeDocumentGameServer(v **types.GameServer, value inte if !ok { return fmt.Errorf("expected GameServerId to be of type string, got %T instead", value) } - sv.GameServerId = &jtv + sv.GameServerId = ptr.String(jtv) } case "InstanceId": @@ -13022,7 +13038,7 @@ func awsAwsjson11_deserializeDocumentGameServer(v **types.GameServer, value inte if !ok { return fmt.Errorf("expected GameServerInstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "LastClaimTime": @@ -13110,7 +13126,7 @@ func awsAwsjson11_deserializeDocumentGameServerGroup(v **types.GameServerGroup, if !ok { return fmt.Errorf("expected AutoScalingGroupArn to be of type string, got %T instead", value) } - sv.AutoScalingGroupArn = &jtv + sv.AutoScalingGroupArn = ptr.String(jtv) } case "BalancingStrategy": @@ -13141,7 +13157,7 @@ func awsAwsjson11_deserializeDocumentGameServerGroup(v **types.GameServerGroup, if !ok { return fmt.Errorf("expected GameServerGroupArn to be of type string, got %T instead", value) } - sv.GameServerGroupArn = &jtv + sv.GameServerGroupArn = ptr.String(jtv) } case "GameServerGroupName": @@ -13150,7 +13166,7 @@ func awsAwsjson11_deserializeDocumentGameServerGroup(v **types.GameServerGroup, if !ok { return fmt.Errorf("expected GameServerGroupName to be of type string, got %T instead", value) } - sv.GameServerGroupName = &jtv + sv.GameServerGroupName = ptr.String(jtv) } case "GameServerProtectionPolicy": @@ -13186,7 +13202,7 @@ func awsAwsjson11_deserializeDocumentGameServerGroup(v **types.GameServerGroup, if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "Status": @@ -13204,7 +13220,7 @@ func awsAwsjson11_deserializeDocumentGameServerGroup(v **types.GameServerGroup, if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } case "SuspendedActions": @@ -13257,7 +13273,7 @@ func awsAwsjson11_deserializeDocumentGameServerGroupActions(v *[]types.GameServe return nil } -func awsAwsjson11_deserializeDocumentGameServerGroups(v *[]*types.GameServerGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentGameServerGroups(v *[]types.GameServerGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13270,18 +13286,20 @@ func awsAwsjson11_deserializeDocumentGameServerGroups(v *[]*types.GameServerGrou return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GameServerGroup + var cv []types.GameServerGroup if *v == nil { - cv = []*types.GameServerGroup{} + cv = []types.GameServerGroup{} } else { cv = *v } for _, value := range shape { - var col *types.GameServerGroup - if err := awsAwsjson11_deserializeDocumentGameServerGroup(&col, value); err != nil { + var col types.GameServerGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGameServerGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13317,7 +13335,7 @@ func awsAwsjson11_deserializeDocumentGameServerInstance(v **types.GameServerInst if !ok { return fmt.Errorf("expected GameServerGroupArn to be of type string, got %T instead", value) } - sv.GameServerGroupArn = &jtv + sv.GameServerGroupArn = ptr.String(jtv) } case "GameServerGroupName": @@ -13326,7 +13344,7 @@ func awsAwsjson11_deserializeDocumentGameServerInstance(v **types.GameServerInst if !ok { return fmt.Errorf("expected GameServerGroupName to be of type string, got %T instead", value) } - sv.GameServerGroupName = &jtv + sv.GameServerGroupName = ptr.String(jtv) } case "InstanceId": @@ -13335,7 +13353,7 @@ func awsAwsjson11_deserializeDocumentGameServerInstance(v **types.GameServerInst if !ok { return fmt.Errorf("expected GameServerInstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "InstanceStatus": @@ -13356,7 +13374,7 @@ func awsAwsjson11_deserializeDocumentGameServerInstance(v **types.GameServerInst return nil } -func awsAwsjson11_deserializeDocumentGameServerInstances(v *[]*types.GameServerInstance, value interface{}) error { +func awsAwsjson11_deserializeDocumentGameServerInstances(v *[]types.GameServerInstance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13369,18 +13387,20 @@ func awsAwsjson11_deserializeDocumentGameServerInstances(v *[]*types.GameServerI return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GameServerInstance + var cv []types.GameServerInstance if *v == nil { - cv = []*types.GameServerInstance{} + cv = []types.GameServerInstance{} } else { cv = *v } for _, value := range shape { - var col *types.GameServerInstance - if err := awsAwsjson11_deserializeDocumentGameServerInstance(&col, value); err != nil { + var col types.GameServerInstance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGameServerInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13388,7 +13408,7 @@ func awsAwsjson11_deserializeDocumentGameServerInstances(v *[]*types.GameServerI return nil } -func awsAwsjson11_deserializeDocumentGameServers(v *[]*types.GameServer, value interface{}) error { +func awsAwsjson11_deserializeDocumentGameServers(v *[]types.GameServer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13401,18 +13421,20 @@ func awsAwsjson11_deserializeDocumentGameServers(v *[]*types.GameServer, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GameServer + var cv []types.GameServer if *v == nil { - cv = []*types.GameServer{} + cv = []types.GameServer{} } else { cv = *v } for _, value := range shape { - var col *types.GameServer - if err := awsAwsjson11_deserializeDocumentGameServer(&col, value); err != nil { + var col types.GameServer + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGameServer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13461,7 +13483,7 @@ func awsAwsjson11_deserializeDocumentGameSession(v **types.GameSession, value in if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.CreatorId = &jtv + sv.CreatorId = ptr.String(jtv) } case "CurrentPlayerSessionCount": @@ -13483,7 +13505,7 @@ func awsAwsjson11_deserializeDocumentGameSession(v **types.GameSession, value in if !ok { return fmt.Errorf("expected DnsName to be of type string, got %T instead", value) } - sv.DnsName = &jtv + sv.DnsName = ptr.String(jtv) } case "FleetArn": @@ -13492,7 +13514,7 @@ func awsAwsjson11_deserializeDocumentGameSession(v **types.GameSession, value in if !ok { return fmt.Errorf("expected FleetArn to be of type string, got %T instead", value) } - sv.FleetArn = &jtv + sv.FleetArn = ptr.String(jtv) } case "FleetId": @@ -13501,7 +13523,7 @@ func awsAwsjson11_deserializeDocumentGameSession(v **types.GameSession, value in if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } case "GameProperties": @@ -13515,7 +13537,7 @@ func awsAwsjson11_deserializeDocumentGameSession(v **types.GameSession, value in if !ok { return fmt.Errorf("expected GameSessionData to be of type string, got %T instead", value) } - sv.GameSessionData = &jtv + sv.GameSessionData = ptr.String(jtv) } case "GameSessionId": @@ -13524,7 +13546,7 @@ func awsAwsjson11_deserializeDocumentGameSession(v **types.GameSession, value in if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.GameSessionId = &jtv + sv.GameSessionId = ptr.String(jtv) } case "IpAddress": @@ -13533,7 +13555,7 @@ func awsAwsjson11_deserializeDocumentGameSession(v **types.GameSession, value in if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "MatchmakerData": @@ -13542,7 +13564,7 @@ func awsAwsjson11_deserializeDocumentGameSession(v **types.GameSession, value in if !ok { return fmt.Errorf("expected MatchmakerData to be of type string, got %T instead", value) } - sv.MatchmakerData = &jtv + sv.MatchmakerData = ptr.String(jtv) } case "MaximumPlayerSessionCount": @@ -13564,7 +13586,7 @@ func awsAwsjson11_deserializeDocumentGameSession(v **types.GameSession, value in if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PlayerSessionCreationPolicy": @@ -13657,7 +13679,7 @@ func awsAwsjson11_deserializeDocumentGameSessionConnectionInfo(v **types.GameSes if !ok { return fmt.Errorf("expected DnsName to be of type string, got %T instead", value) } - sv.DnsName = &jtv + sv.DnsName = ptr.String(jtv) } case "GameSessionArn": @@ -13666,7 +13688,7 @@ func awsAwsjson11_deserializeDocumentGameSessionConnectionInfo(v **types.GameSes if !ok { return fmt.Errorf("expected ArnStringModel to be of type string, got %T instead", value) } - sv.GameSessionArn = &jtv + sv.GameSessionArn = ptr.String(jtv) } case "IpAddress": @@ -13675,7 +13697,7 @@ func awsAwsjson11_deserializeDocumentGameSessionConnectionInfo(v **types.GameSes if !ok { return fmt.Errorf("expected StringModel to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "MatchedPlayerSessions": @@ -13750,7 +13772,7 @@ func awsAwsjson11_deserializeDocumentGameSessionDetail(v **types.GameSessionDeta return nil } -func awsAwsjson11_deserializeDocumentGameSessionDetailList(v *[]*types.GameSessionDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentGameSessionDetailList(v *[]types.GameSessionDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13763,18 +13785,20 @@ func awsAwsjson11_deserializeDocumentGameSessionDetailList(v *[]*types.GameSessi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GameSessionDetail + var cv []types.GameSessionDetail if *v == nil { - cv = []*types.GameSessionDetail{} + cv = []types.GameSessionDetail{} } else { cv = *v } for _, value := range shape { - var col *types.GameSessionDetail - if err := awsAwsjson11_deserializeDocumentGameSessionDetail(&col, value); err != nil { + var col types.GameSessionDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGameSessionDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13810,7 +13834,7 @@ func awsAwsjson11_deserializeDocumentGameSessionFullException(v **types.GameSess if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13822,7 +13846,7 @@ func awsAwsjson11_deserializeDocumentGameSessionFullException(v **types.GameSess return nil } -func awsAwsjson11_deserializeDocumentGameSessionList(v *[]*types.GameSession, value interface{}) error { +func awsAwsjson11_deserializeDocumentGameSessionList(v *[]types.GameSession, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13835,18 +13859,20 @@ func awsAwsjson11_deserializeDocumentGameSessionList(v *[]*types.GameSession, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GameSession + var cv []types.GameSession if *v == nil { - cv = []*types.GameSession{} + cv = []types.GameSession{} } else { cv = *v } for _, value := range shape { - var col *types.GameSession - if err := awsAwsjson11_deserializeDocumentGameSession(&col, value); err != nil { + var col types.GameSession + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGameSession(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13882,7 +13908,7 @@ func awsAwsjson11_deserializeDocumentGameSessionPlacement(v **types.GameSessionP if !ok { return fmt.Errorf("expected DnsName to be of type string, got %T instead", value) } - sv.DnsName = &jtv + sv.DnsName = ptr.String(jtv) } case "EndTime": @@ -13909,7 +13935,7 @@ func awsAwsjson11_deserializeDocumentGameSessionPlacement(v **types.GameSessionP if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.GameSessionArn = &jtv + sv.GameSessionArn = ptr.String(jtv) } case "GameSessionData": @@ -13918,7 +13944,7 @@ func awsAwsjson11_deserializeDocumentGameSessionPlacement(v **types.GameSessionP if !ok { return fmt.Errorf("expected GameSessionData to be of type string, got %T instead", value) } - sv.GameSessionData = &jtv + sv.GameSessionData = ptr.String(jtv) } case "GameSessionId": @@ -13927,7 +13953,7 @@ func awsAwsjson11_deserializeDocumentGameSessionPlacement(v **types.GameSessionP if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.GameSessionId = &jtv + sv.GameSessionId = ptr.String(jtv) } case "GameSessionName": @@ -13936,7 +13962,7 @@ func awsAwsjson11_deserializeDocumentGameSessionPlacement(v **types.GameSessionP if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.GameSessionName = &jtv + sv.GameSessionName = ptr.String(jtv) } case "GameSessionQueueName": @@ -13945,7 +13971,7 @@ func awsAwsjson11_deserializeDocumentGameSessionPlacement(v **types.GameSessionP if !ok { return fmt.Errorf("expected GameSessionQueueName to be of type string, got %T instead", value) } - sv.GameSessionQueueName = &jtv + sv.GameSessionQueueName = ptr.String(jtv) } case "GameSessionRegion": @@ -13954,7 +13980,7 @@ func awsAwsjson11_deserializeDocumentGameSessionPlacement(v **types.GameSessionP if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.GameSessionRegion = &jtv + sv.GameSessionRegion = ptr.String(jtv) } case "IpAddress": @@ -13963,7 +13989,7 @@ func awsAwsjson11_deserializeDocumentGameSessionPlacement(v **types.GameSessionP if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "MatchmakerData": @@ -13972,7 +13998,7 @@ func awsAwsjson11_deserializeDocumentGameSessionPlacement(v **types.GameSessionP if !ok { return fmt.Errorf("expected MatchmakerData to be of type string, got %T instead", value) } - sv.MatchmakerData = &jtv + sv.MatchmakerData = ptr.String(jtv) } case "MaximumPlayerSessionCount": @@ -13999,7 +14025,7 @@ func awsAwsjson11_deserializeDocumentGameSessionPlacement(v **types.GameSessionP if !ok { return fmt.Errorf("expected IdStringModel to be of type string, got %T instead", value) } - sv.PlacementId = &jtv + sv.PlacementId = ptr.String(jtv) } case "PlayerLatencies": @@ -14084,7 +14110,7 @@ func awsAwsjson11_deserializeDocumentGameSessionQueue(v **types.GameSessionQueue if !ok { return fmt.Errorf("expected GameSessionQueueArn to be of type string, got %T instead", value) } - sv.GameSessionQueueArn = &jtv + sv.GameSessionQueueArn = ptr.String(jtv) } case "Name": @@ -14093,7 +14119,7 @@ func awsAwsjson11_deserializeDocumentGameSessionQueue(v **types.GameSessionQueue if !ok { return fmt.Errorf("expected GameSessionQueueName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PlayerLatencyPolicies": @@ -14151,7 +14177,7 @@ func awsAwsjson11_deserializeDocumentGameSessionQueueDestination(v **types.GameS if !ok { return fmt.Errorf("expected ArnStringModel to be of type string, got %T instead", value) } - sv.DestinationArn = &jtv + sv.DestinationArn = ptr.String(jtv) } default: @@ -14163,7 +14189,7 @@ func awsAwsjson11_deserializeDocumentGameSessionQueueDestination(v **types.GameS return nil } -func awsAwsjson11_deserializeDocumentGameSessionQueueDestinationList(v *[]*types.GameSessionQueueDestination, value interface{}) error { +func awsAwsjson11_deserializeDocumentGameSessionQueueDestinationList(v *[]types.GameSessionQueueDestination, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14176,18 +14202,20 @@ func awsAwsjson11_deserializeDocumentGameSessionQueueDestinationList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GameSessionQueueDestination + var cv []types.GameSessionQueueDestination if *v == nil { - cv = []*types.GameSessionQueueDestination{} + cv = []types.GameSessionQueueDestination{} } else { cv = *v } for _, value := range shape { - var col *types.GameSessionQueueDestination - if err := awsAwsjson11_deserializeDocumentGameSessionQueueDestination(&col, value); err != nil { + var col types.GameSessionQueueDestination + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGameSessionQueueDestination(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14195,7 +14223,7 @@ func awsAwsjson11_deserializeDocumentGameSessionQueueDestinationList(v *[]*types return nil } -func awsAwsjson11_deserializeDocumentGameSessionQueueList(v *[]*types.GameSessionQueue, value interface{}) error { +func awsAwsjson11_deserializeDocumentGameSessionQueueList(v *[]types.GameSessionQueue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14208,18 +14236,20 @@ func awsAwsjson11_deserializeDocumentGameSessionQueueList(v *[]*types.GameSessio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GameSessionQueue + var cv []types.GameSessionQueue if *v == nil { - cv = []*types.GameSessionQueue{} + cv = []types.GameSessionQueue{} } else { cv = *v } for _, value := range shape { - var col *types.GameSessionQueue - if err := awsAwsjson11_deserializeDocumentGameSessionQueue(&col, value); err != nil { + var col types.GameSessionQueue + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGameSessionQueue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14255,7 +14285,7 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14308,7 +14338,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected DnsName to be of type string, got %T instead", value) } - sv.DnsName = &jtv + sv.DnsName = ptr.String(jtv) } case "FleetId": @@ -14317,7 +14347,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } case "InstanceId": @@ -14326,7 +14356,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "IpAddress": @@ -14335,7 +14365,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "OperatingSystem": @@ -14407,7 +14437,7 @@ func awsAwsjson11_deserializeDocumentInstanceAccess(v **types.InstanceAccess, va if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } case "InstanceId": @@ -14416,7 +14446,7 @@ func awsAwsjson11_deserializeDocumentInstanceAccess(v **types.InstanceAccess, va if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "IpAddress": @@ -14425,7 +14455,7 @@ func awsAwsjson11_deserializeDocumentInstanceAccess(v **types.InstanceAccess, va if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "OperatingSystem": @@ -14474,7 +14504,7 @@ func awsAwsjson11_deserializeDocumentInstanceCredentials(v **types.InstanceCrede if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Secret = &jtv + sv.Secret = ptr.String(jtv) } case "UserName": @@ -14483,7 +14513,7 @@ func awsAwsjson11_deserializeDocumentInstanceCredentials(v **types.InstanceCrede if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -14532,7 +14562,7 @@ func awsAwsjson11_deserializeDocumentInstanceDefinition(v **types.InstanceDefini if !ok { return fmt.Errorf("expected WeightedCapacity to be of type string, got %T instead", value) } - sv.WeightedCapacity = &jtv + sv.WeightedCapacity = ptr.String(jtv) } default: @@ -14544,7 +14574,7 @@ func awsAwsjson11_deserializeDocumentInstanceDefinition(v **types.InstanceDefini return nil } -func awsAwsjson11_deserializeDocumentInstanceDefinitions(v *[]*types.InstanceDefinition, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceDefinitions(v *[]types.InstanceDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14557,18 +14587,20 @@ func awsAwsjson11_deserializeDocumentInstanceDefinitions(v *[]*types.InstanceDef return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceDefinition + var cv []types.InstanceDefinition if *v == nil { - cv = []*types.InstanceDefinition{} + cv = []types.InstanceDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceDefinition - if err := awsAwsjson11_deserializeDocumentInstanceDefinition(&col, value); err != nil { + var col types.InstanceDefinition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14576,7 +14608,7 @@ func awsAwsjson11_deserializeDocumentInstanceDefinitions(v *[]*types.InstanceDef return nil } -func awsAwsjson11_deserializeDocumentInstanceList(v *[]*types.Instance, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceList(v *[]types.Instance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14589,18 +14621,20 @@ func awsAwsjson11_deserializeDocumentInstanceList(v *[]*types.Instance, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Instance + var cv []types.Instance if *v == nil { - cv = []*types.Instance{} + cv = []types.Instance{} } else { cv = *v } for _, value := range shape { - var col *types.Instance - if err := awsAwsjson11_deserializeDocumentInstance(&col, value); err != nil { + var col types.Instance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14636,7 +14670,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14676,7 +14710,7 @@ func awsAwsjson11_deserializeDocumentInvalidFleetStatusException(v **types.Inval if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14716,7 +14750,7 @@ func awsAwsjson11_deserializeDocumentInvalidGameSessionStatusException(v **types if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14756,7 +14790,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14809,7 +14843,7 @@ func awsAwsjson11_deserializeDocumentIpPermission(v **types.IpPermission, value if !ok { return fmt.Errorf("expected NonBlankString to be of type string, got %T instead", value) } - sv.IpRange = &jtv + sv.IpRange = ptr.String(jtv) } case "Protocol": @@ -14843,7 +14877,7 @@ func awsAwsjson11_deserializeDocumentIpPermission(v **types.IpPermission, value return nil } -func awsAwsjson11_deserializeDocumentIpPermissionsList(v *[]*types.IpPermission, value interface{}) error { +func awsAwsjson11_deserializeDocumentIpPermissionsList(v *[]types.IpPermission, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14856,18 +14890,20 @@ func awsAwsjson11_deserializeDocumentIpPermissionsList(v *[]*types.IpPermission, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IpPermission + var cv []types.IpPermission if *v == nil { - cv = []*types.IpPermission{} + cv = []types.IpPermission{} } else { cv = *v } for _, value := range shape { - var col *types.IpPermission - if err := awsAwsjson11_deserializeDocumentIpPermission(&col, value); err != nil { + var col types.IpPermission + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIpPermission(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14875,7 +14911,7 @@ func awsAwsjson11_deserializeDocumentIpPermissionsList(v *[]*types.IpPermission, return nil } -func awsAwsjson11_deserializeDocumentLatencyMap(v *map[string]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentLatencyMap(v *map[string]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14888,15 +14924,15 @@ func awsAwsjson11_deserializeDocumentLatencyMap(v *map[string]*int32, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*int32 + var mv map[string]int32 if *v == nil { - mv = map[string]*int32{} + mv = map[string]int32{} } else { mv = *v } for key, value := range shape { - var parsedVal *int32 + var parsedVal int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -14906,7 +14942,7 @@ func awsAwsjson11_deserializeDocumentLatencyMap(v *map[string]*int32, value inte if err != nil { return err } - parsedVal = ptr.Int32(int32(i64)) + parsedVal = int32(i64) } mv[key] = parsedVal @@ -14943,7 +14979,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14983,7 +15019,7 @@ func awsAwsjson11_deserializeDocumentMatchedPlayerSession(v **types.MatchedPlaye if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.PlayerId = &jtv + sv.PlayerId = ptr.String(jtv) } case "PlayerSessionId": @@ -14992,7 +15028,7 @@ func awsAwsjson11_deserializeDocumentMatchedPlayerSession(v **types.MatchedPlaye if !ok { return fmt.Errorf("expected PlayerSessionId to be of type string, got %T instead", value) } - sv.PlayerSessionId = &jtv + sv.PlayerSessionId = ptr.String(jtv) } default: @@ -15004,7 +15040,7 @@ func awsAwsjson11_deserializeDocumentMatchedPlayerSession(v **types.MatchedPlaye return nil } -func awsAwsjson11_deserializeDocumentMatchedPlayerSessionList(v *[]*types.MatchedPlayerSession, value interface{}) error { +func awsAwsjson11_deserializeDocumentMatchedPlayerSessionList(v *[]types.MatchedPlayerSession, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15017,18 +15053,20 @@ func awsAwsjson11_deserializeDocumentMatchedPlayerSessionList(v *[]*types.Matche return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MatchedPlayerSession + var cv []types.MatchedPlayerSession if *v == nil { - cv = []*types.MatchedPlayerSession{} + cv = []types.MatchedPlayerSession{} } else { cv = *v } for _, value := range shape { - var col *types.MatchedPlayerSession - if err := awsAwsjson11_deserializeDocumentMatchedPlayerSession(&col, value); err != nil { + var col types.MatchedPlayerSession + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMatchedPlayerSession(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15064,7 +15102,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingConfiguration(v **types.Matchmak if !ok { return fmt.Errorf("expected BooleanModel to be of type *bool, got %T instead", value) } - sv.AcceptanceRequired = &jtv + sv.AcceptanceRequired = ptr.Bool(jtv) } case "AcceptanceTimeoutSeconds": @@ -15108,7 +15146,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingConfiguration(v **types.Matchmak if !ok { return fmt.Errorf("expected MatchmakingConfigurationArn to be of type string, got %T instead", value) } - sv.ConfigurationArn = &jtv + sv.ConfigurationArn = ptr.String(jtv) } case "CreationTime": @@ -15130,7 +15168,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingConfiguration(v **types.Matchmak if !ok { return fmt.Errorf("expected CustomEventData to be of type string, got %T instead", value) } - sv.CustomEventData = &jtv + sv.CustomEventData = ptr.String(jtv) } case "Description": @@ -15139,7 +15177,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingConfiguration(v **types.Matchmak if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "GameProperties": @@ -15153,7 +15191,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingConfiguration(v **types.Matchmak if !ok { return fmt.Errorf("expected GameSessionData to be of type string, got %T instead", value) } - sv.GameSessionData = &jtv + sv.GameSessionData = ptr.String(jtv) } case "GameSessionQueueArns": @@ -15167,7 +15205,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingConfiguration(v **types.Matchmak if !ok { return fmt.Errorf("expected MatchmakingIdStringModel to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NotificationTarget": @@ -15176,7 +15214,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingConfiguration(v **types.Matchmak if !ok { return fmt.Errorf("expected SnsArnStringModel to be of type string, got %T instead", value) } - sv.NotificationTarget = &jtv + sv.NotificationTarget = ptr.String(jtv) } case "RequestTimeoutSeconds": @@ -15198,7 +15236,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingConfiguration(v **types.Matchmak if !ok { return fmt.Errorf("expected MatchmakingRuleSetArn to be of type string, got %T instead", value) } - sv.RuleSetArn = &jtv + sv.RuleSetArn = ptr.String(jtv) } case "RuleSetName": @@ -15207,7 +15245,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingConfiguration(v **types.Matchmak if !ok { return fmt.Errorf("expected MatchmakingIdStringModel to be of type string, got %T instead", value) } - sv.RuleSetName = &jtv + sv.RuleSetName = ptr.String(jtv) } default: @@ -15219,7 +15257,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingConfiguration(v **types.Matchmak return nil } -func awsAwsjson11_deserializeDocumentMatchmakingConfigurationList(v *[]*types.MatchmakingConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentMatchmakingConfigurationList(v *[]types.MatchmakingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15232,18 +15270,20 @@ func awsAwsjson11_deserializeDocumentMatchmakingConfigurationList(v *[]*types.Ma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MatchmakingConfiguration + var cv []types.MatchmakingConfiguration if *v == nil { - cv = []*types.MatchmakingConfiguration{} + cv = []types.MatchmakingConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.MatchmakingConfiguration - if err := awsAwsjson11_deserializeDocumentMatchmakingConfiguration(&col, value); err != nil { + var col types.MatchmakingConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMatchmakingConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15292,7 +15332,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingRuleSet(v **types.MatchmakingRul if !ok { return fmt.Errorf("expected MatchmakingRuleSetArn to be of type string, got %T instead", value) } - sv.RuleSetArn = &jtv + sv.RuleSetArn = ptr.String(jtv) } case "RuleSetBody": @@ -15301,7 +15341,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingRuleSet(v **types.MatchmakingRul if !ok { return fmt.Errorf("expected RuleSetBody to be of type string, got %T instead", value) } - sv.RuleSetBody = &jtv + sv.RuleSetBody = ptr.String(jtv) } case "RuleSetName": @@ -15310,7 +15350,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingRuleSet(v **types.MatchmakingRul if !ok { return fmt.Errorf("expected MatchmakingIdStringModel to be of type string, got %T instead", value) } - sv.RuleSetName = &jtv + sv.RuleSetName = ptr.String(jtv) } default: @@ -15322,7 +15362,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingRuleSet(v **types.MatchmakingRul return nil } -func awsAwsjson11_deserializeDocumentMatchmakingRuleSetList(v *[]*types.MatchmakingRuleSet, value interface{}) error { +func awsAwsjson11_deserializeDocumentMatchmakingRuleSetList(v *[]types.MatchmakingRuleSet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15335,18 +15375,20 @@ func awsAwsjson11_deserializeDocumentMatchmakingRuleSetList(v *[]*types.Matchmak return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MatchmakingRuleSet + var cv []types.MatchmakingRuleSet if *v == nil { - cv = []*types.MatchmakingRuleSet{} + cv = []types.MatchmakingRuleSet{} } else { cv = *v } for _, value := range shape { - var col *types.MatchmakingRuleSet - if err := awsAwsjson11_deserializeDocumentMatchmakingRuleSet(&col, value); err != nil { + var col types.MatchmakingRuleSet + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMatchmakingRuleSet(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15382,7 +15424,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingTicket(v **types.MatchmakingTick if !ok { return fmt.Errorf("expected MatchmakingConfigurationArn to be of type string, got %T instead", value) } - sv.ConfigurationArn = &jtv + sv.ConfigurationArn = ptr.String(jtv) } case "ConfigurationName": @@ -15391,7 +15433,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingTicket(v **types.MatchmakingTick if !ok { return fmt.Errorf("expected MatchmakingIdStringModel to be of type string, got %T instead", value) } - sv.ConfigurationName = &jtv + sv.ConfigurationName = ptr.String(jtv) } case "EndTime": @@ -15458,7 +15500,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingTicket(v **types.MatchmakingTick if !ok { return fmt.Errorf("expected StringModel to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "StatusReason": @@ -15467,7 +15509,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingTicket(v **types.MatchmakingTick if !ok { return fmt.Errorf("expected StringModel to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } case "TicketId": @@ -15476,7 +15518,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingTicket(v **types.MatchmakingTick if !ok { return fmt.Errorf("expected MatchmakingIdStringModel to be of type string, got %T instead", value) } - sv.TicketId = &jtv + sv.TicketId = ptr.String(jtv) } default: @@ -15488,7 +15530,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingTicket(v **types.MatchmakingTick return nil } -func awsAwsjson11_deserializeDocumentMatchmakingTicketList(v *[]*types.MatchmakingTicket, value interface{}) error { +func awsAwsjson11_deserializeDocumentMatchmakingTicketList(v *[]types.MatchmakingTicket, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15501,18 +15543,20 @@ func awsAwsjson11_deserializeDocumentMatchmakingTicketList(v *[]*types.Matchmaki return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MatchmakingTicket + var cv []types.MatchmakingTicket if *v == nil { - cv = []*types.MatchmakingTicket{} + cv = []types.MatchmakingTicket{} } else { cv = *v } for _, value := range shape { - var col *types.MatchmakingTicket - if err := awsAwsjson11_deserializeDocumentMatchmakingTicket(&col, value); err != nil { + var col types.MatchmakingTicket + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMatchmakingTicket(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15520,7 +15564,7 @@ func awsAwsjson11_deserializeDocumentMatchmakingTicketList(v *[]*types.Matchmaki return nil } -func awsAwsjson11_deserializeDocumentMetricGroupList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricGroupList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15533,21 +15577,21 @@ func awsAwsjson11_deserializeDocumentMetricGroupList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected MetricGroup to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -15584,7 +15628,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15624,7 +15668,7 @@ func awsAwsjson11_deserializeDocumentOutOfCapacityException(v **types.OutOfCapac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15664,7 +15708,7 @@ func awsAwsjson11_deserializeDocumentPlacedPlayerSession(v **types.PlacedPlayerS if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.PlayerId = &jtv + sv.PlayerId = ptr.String(jtv) } case "PlayerSessionId": @@ -15673,7 +15717,7 @@ func awsAwsjson11_deserializeDocumentPlacedPlayerSession(v **types.PlacedPlayerS if !ok { return fmt.Errorf("expected PlayerSessionId to be of type string, got %T instead", value) } - sv.PlayerSessionId = &jtv + sv.PlayerSessionId = ptr.String(jtv) } default: @@ -15685,7 +15729,7 @@ func awsAwsjson11_deserializeDocumentPlacedPlayerSession(v **types.PlacedPlayerS return nil } -func awsAwsjson11_deserializeDocumentPlacedPlayerSessionList(v *[]*types.PlacedPlayerSession, value interface{}) error { +func awsAwsjson11_deserializeDocumentPlacedPlayerSessionList(v *[]types.PlacedPlayerSession, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15698,18 +15742,20 @@ func awsAwsjson11_deserializeDocumentPlacedPlayerSessionList(v *[]*types.PlacedP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PlacedPlayerSession + var cv []types.PlacedPlayerSession if *v == nil { - cv = []*types.PlacedPlayerSession{} + cv = []types.PlacedPlayerSession{} } else { cv = *v } for _, value := range shape { - var col *types.PlacedPlayerSession - if err := awsAwsjson11_deserializeDocumentPlacedPlayerSession(&col, value); err != nil { + var col types.PlacedPlayerSession + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPlacedPlayerSession(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15755,7 +15801,7 @@ func awsAwsjson11_deserializeDocumentPlayer(v **types.Player, value interface{}) if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.PlayerId = &jtv + sv.PlayerId = ptr.String(jtv) } case "Team": @@ -15764,7 +15810,7 @@ func awsAwsjson11_deserializeDocumentPlayer(v **types.Player, value interface{}) if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.Team = &jtv + sv.Team = ptr.String(jtv) } default: @@ -15776,7 +15822,7 @@ func awsAwsjson11_deserializeDocumentPlayer(v **types.Player, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentPlayerAttributeMap(v *map[string]*types.AttributeValue, value interface{}) error { +func awsAwsjson11_deserializeDocumentPlayerAttributeMap(v *map[string]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15789,18 +15835,21 @@ func awsAwsjson11_deserializeDocumentPlayerAttributeMap(v *map[string]*types.Att return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AttributeValue + var mv map[string]types.AttributeValue if *v == nil { - mv = map[string]*types.AttributeValue{} + mv = map[string]types.AttributeValue{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AttributeValue - if err := awsAwsjson11_deserializeDocumentAttributeValue(&parsedVal, value); err != nil { + var parsedVal types.AttributeValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentAttributeValue(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -15840,7 +15889,7 @@ func awsAwsjson11_deserializeDocumentPlayerLatency(v **types.PlayerLatency, valu if err != nil { return err } - sv.LatencyInMilliseconds = ptr.Float32(float32(f64)) + sv.LatencyInMilliseconds = float32(f64) } case "PlayerId": @@ -15849,7 +15898,7 @@ func awsAwsjson11_deserializeDocumentPlayerLatency(v **types.PlayerLatency, valu if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.PlayerId = &jtv + sv.PlayerId = ptr.String(jtv) } case "RegionIdentifier": @@ -15858,7 +15907,7 @@ func awsAwsjson11_deserializeDocumentPlayerLatency(v **types.PlayerLatency, valu if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.RegionIdentifier = &jtv + sv.RegionIdentifier = ptr.String(jtv) } default: @@ -15870,7 +15919,7 @@ func awsAwsjson11_deserializeDocumentPlayerLatency(v **types.PlayerLatency, valu return nil } -func awsAwsjson11_deserializeDocumentPlayerLatencyList(v *[]*types.PlayerLatency, value interface{}) error { +func awsAwsjson11_deserializeDocumentPlayerLatencyList(v *[]types.PlayerLatency, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15883,18 +15932,20 @@ func awsAwsjson11_deserializeDocumentPlayerLatencyList(v *[]*types.PlayerLatency return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PlayerLatency + var cv []types.PlayerLatency if *v == nil { - cv = []*types.PlayerLatency{} + cv = []types.PlayerLatency{} } else { cv = *v } for _, value := range shape { - var col *types.PlayerLatency - if err := awsAwsjson11_deserializeDocumentPlayerLatency(&col, value); err != nil { + var col types.PlayerLatency + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPlayerLatency(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15959,7 +16010,7 @@ func awsAwsjson11_deserializeDocumentPlayerLatencyPolicy(v **types.PlayerLatency return nil } -func awsAwsjson11_deserializeDocumentPlayerLatencyPolicyList(v *[]*types.PlayerLatencyPolicy, value interface{}) error { +func awsAwsjson11_deserializeDocumentPlayerLatencyPolicyList(v *[]types.PlayerLatencyPolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15972,18 +16023,20 @@ func awsAwsjson11_deserializeDocumentPlayerLatencyPolicyList(v *[]*types.PlayerL return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PlayerLatencyPolicy + var cv []types.PlayerLatencyPolicy if *v == nil { - cv = []*types.PlayerLatencyPolicy{} + cv = []types.PlayerLatencyPolicy{} } else { cv = *v } for _, value := range shape { - var col *types.PlayerLatencyPolicy - if err := awsAwsjson11_deserializeDocumentPlayerLatencyPolicy(&col, value); err != nil { + var col types.PlayerLatencyPolicy + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPlayerLatencyPolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15991,7 +16044,7 @@ func awsAwsjson11_deserializeDocumentPlayerLatencyPolicyList(v *[]*types.PlayerL return nil } -func awsAwsjson11_deserializeDocumentPlayerList(v *[]*types.Player, value interface{}) error { +func awsAwsjson11_deserializeDocumentPlayerList(v *[]types.Player, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16004,18 +16057,20 @@ func awsAwsjson11_deserializeDocumentPlayerList(v *[]*types.Player, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Player + var cv []types.Player if *v == nil { - cv = []*types.Player{} + cv = []types.Player{} } else { cv = *v } for _, value := range shape { - var col *types.Player - if err := awsAwsjson11_deserializeDocumentPlayer(&col, value); err != nil { + var col types.Player + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPlayer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16064,7 +16119,7 @@ func awsAwsjson11_deserializeDocumentPlayerSession(v **types.PlayerSession, valu if !ok { return fmt.Errorf("expected DnsName to be of type string, got %T instead", value) } - sv.DnsName = &jtv + sv.DnsName = ptr.String(jtv) } case "FleetArn": @@ -16073,7 +16128,7 @@ func awsAwsjson11_deserializeDocumentPlayerSession(v **types.PlayerSession, valu if !ok { return fmt.Errorf("expected FleetArn to be of type string, got %T instead", value) } - sv.FleetArn = &jtv + sv.FleetArn = ptr.String(jtv) } case "FleetId": @@ -16082,7 +16137,7 @@ func awsAwsjson11_deserializeDocumentPlayerSession(v **types.PlayerSession, valu if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } case "GameSessionId": @@ -16091,7 +16146,7 @@ func awsAwsjson11_deserializeDocumentPlayerSession(v **types.PlayerSession, valu if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.GameSessionId = &jtv + sv.GameSessionId = ptr.String(jtv) } case "IpAddress": @@ -16100,7 +16155,7 @@ func awsAwsjson11_deserializeDocumentPlayerSession(v **types.PlayerSession, valu if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "PlayerData": @@ -16109,7 +16164,7 @@ func awsAwsjson11_deserializeDocumentPlayerSession(v **types.PlayerSession, valu if !ok { return fmt.Errorf("expected PlayerData to be of type string, got %T instead", value) } - sv.PlayerData = &jtv + sv.PlayerData = ptr.String(jtv) } case "PlayerId": @@ -16118,7 +16173,7 @@ func awsAwsjson11_deserializeDocumentPlayerSession(v **types.PlayerSession, valu if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.PlayerId = &jtv + sv.PlayerId = ptr.String(jtv) } case "PlayerSessionId": @@ -16127,7 +16182,7 @@ func awsAwsjson11_deserializeDocumentPlayerSession(v **types.PlayerSession, valu if !ok { return fmt.Errorf("expected PlayerSessionId to be of type string, got %T instead", value) } - sv.PlayerSessionId = &jtv + sv.PlayerSessionId = ptr.String(jtv) } case "Port": @@ -16174,7 +16229,7 @@ func awsAwsjson11_deserializeDocumentPlayerSession(v **types.PlayerSession, valu return nil } -func awsAwsjson11_deserializeDocumentPlayerSessionList(v *[]*types.PlayerSession, value interface{}) error { +func awsAwsjson11_deserializeDocumentPlayerSessionList(v *[]types.PlayerSession, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16187,18 +16242,20 @@ func awsAwsjson11_deserializeDocumentPlayerSessionList(v *[]*types.PlayerSession return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PlayerSession + var cv []types.PlayerSession if *v == nil { - cv = []*types.PlayerSession{} + cv = []types.PlayerSession{} } else { cv = *v } for _, value := range shape { - var col *types.PlayerSession - if err := awsAwsjson11_deserializeDocumentPlayerSession(&col, value); err != nil { + var col types.PlayerSession + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPlayerSession(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16206,7 +16263,7 @@ func awsAwsjson11_deserializeDocumentPlayerSessionList(v *[]*types.PlayerSession return nil } -func awsAwsjson11_deserializeDocumentQueueArnsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentQueueArnsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16219,21 +16276,21 @@ func awsAwsjson11_deserializeDocumentQueueArnsList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ArnStringModel to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -16327,7 +16384,7 @@ func awsAwsjson11_deserializeDocumentRoutingStrategy(v **types.RoutingStrategy, if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } case "Message": @@ -16336,7 +16393,7 @@ func awsAwsjson11_deserializeDocumentRoutingStrategy(v **types.RoutingStrategy, if !ok { return fmt.Errorf("expected FreeText to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -16447,7 +16504,7 @@ func awsAwsjson11_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "Key": @@ -16456,7 +16513,7 @@ func awsAwsjson11_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "ObjectVersion": @@ -16465,7 +16522,7 @@ func awsAwsjson11_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ObjectVersion = &jtv + sv.ObjectVersion = ptr.String(jtv) } case "RoleArn": @@ -16474,7 +16531,7 @@ func awsAwsjson11_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -16536,7 +16593,7 @@ func awsAwsjson11_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, valu if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } case "MetricName": @@ -16554,7 +16611,7 @@ func awsAwsjson11_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, valu if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PolicyType": @@ -16576,7 +16633,7 @@ func awsAwsjson11_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, valu if err != nil { return err } - sv.ScalingAdjustment = ptr.Int32(int32(i64)) + sv.ScalingAdjustment = int32(i64) } case "ScalingAdjustmentType": @@ -16612,7 +16669,7 @@ func awsAwsjson11_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, valu if err != nil { return err } - sv.Threshold = &f64 + sv.Threshold = f64 } default: @@ -16624,7 +16681,7 @@ func awsAwsjson11_deserializeDocumentScalingPolicy(v **types.ScalingPolicy, valu return nil } -func awsAwsjson11_deserializeDocumentScalingPolicyList(v *[]*types.ScalingPolicy, value interface{}) error { +func awsAwsjson11_deserializeDocumentScalingPolicyList(v *[]types.ScalingPolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16637,18 +16694,20 @@ func awsAwsjson11_deserializeDocumentScalingPolicyList(v *[]*types.ScalingPolicy return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ScalingPolicy + var cv []types.ScalingPolicy if *v == nil { - cv = []*types.ScalingPolicy{} + cv = []types.ScalingPolicy{} } else { cv = *v } for _, value := range shape { - var col *types.ScalingPolicy - if err := awsAwsjson11_deserializeDocumentScalingPolicy(&col, value); err != nil { + var col types.ScalingPolicy + destAddr := &col + if err := awsAwsjson11_deserializeDocumentScalingPolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16697,7 +16756,7 @@ func awsAwsjson11_deserializeDocumentScript(v **types.Script, value interface{}) if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ScriptArn": @@ -16706,7 +16765,7 @@ func awsAwsjson11_deserializeDocumentScript(v **types.Script, value interface{}) if !ok { return fmt.Errorf("expected ScriptArn to be of type string, got %T instead", value) } - sv.ScriptArn = &jtv + sv.ScriptArn = ptr.String(jtv) } case "ScriptId": @@ -16715,7 +16774,7 @@ func awsAwsjson11_deserializeDocumentScript(v **types.Script, value interface{}) if !ok { return fmt.Errorf("expected ScriptId to be of type string, got %T instead", value) } - sv.ScriptId = &jtv + sv.ScriptId = ptr.String(jtv) } case "SizeOnDisk": @@ -16728,7 +16787,7 @@ func awsAwsjson11_deserializeDocumentScript(v **types.Script, value interface{}) if err != nil { return err } - sv.SizeOnDisk = &i64 + sv.SizeOnDisk = ptr.Int64(i64) } case "StorageLocation": @@ -16742,7 +16801,7 @@ func awsAwsjson11_deserializeDocumentScript(v **types.Script, value interface{}) if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -16754,7 +16813,7 @@ func awsAwsjson11_deserializeDocumentScript(v **types.Script, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentScriptList(v *[]*types.Script, value interface{}) error { +func awsAwsjson11_deserializeDocumentScriptList(v *[]types.Script, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16767,18 +16826,20 @@ func awsAwsjson11_deserializeDocumentScriptList(v *[]*types.Script, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Script + var cv []types.Script if *v == nil { - cv = []*types.Script{} + cv = []types.Script{} } else { cv = *v } for _, value := range shape { - var col *types.Script - if err := awsAwsjson11_deserializeDocumentScript(&col, value); err != nil { + var col types.Script + destAddr := &col + if err := awsAwsjson11_deserializeDocumentScript(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16827,7 +16888,7 @@ func awsAwsjson11_deserializeDocumentServerProcess(v **types.ServerProcess, valu if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.LaunchPath = &jtv + sv.LaunchPath = ptr.String(jtv) } case "Parameters": @@ -16836,7 +16897,7 @@ func awsAwsjson11_deserializeDocumentServerProcess(v **types.ServerProcess, valu if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.Parameters = &jtv + sv.Parameters = ptr.String(jtv) } default: @@ -16848,7 +16909,7 @@ func awsAwsjson11_deserializeDocumentServerProcess(v **types.ServerProcess, valu return nil } -func awsAwsjson11_deserializeDocumentServerProcessList(v *[]*types.ServerProcess, value interface{}) error { +func awsAwsjson11_deserializeDocumentServerProcessList(v *[]types.ServerProcess, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16861,18 +16922,20 @@ func awsAwsjson11_deserializeDocumentServerProcessList(v *[]*types.ServerProcess return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServerProcess + var cv []types.ServerProcess if *v == nil { - cv = []*types.ServerProcess{} + cv = []types.ServerProcess{} } else { cv = *v } for _, value := range shape { - var col *types.ServerProcess - if err := awsAwsjson11_deserializeDocumentServerProcess(&col, value); err != nil { + var col types.ServerProcess + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServerProcess(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16880,7 +16943,7 @@ func awsAwsjson11_deserializeDocumentServerProcessList(v *[]*types.ServerProcess return nil } -func awsAwsjson11_deserializeDocumentStringDoubleMap(v *map[string]*float64, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringDoubleMap(v *map[string]float64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16893,15 +16956,15 @@ func awsAwsjson11_deserializeDocumentStringDoubleMap(v *map[string]*float64, val return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*float64 + var mv map[string]float64 if *v == nil { - mv = map[string]*float64{} + mv = map[string]float64{} } else { mv = *v } for key, value := range shape { - var parsedVal *float64 + var parsedVal float64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -16911,7 +16974,7 @@ func awsAwsjson11_deserializeDocumentStringDoubleMap(v *map[string]*float64, val if err != nil { return err } - parsedVal = &f64 + parsedVal = f64 } mv[key] = parsedVal @@ -16920,7 +16983,7 @@ func awsAwsjson11_deserializeDocumentStringDoubleMap(v *map[string]*float64, val return nil } -func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16933,21 +16996,21 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -16984,7 +17047,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -16993,7 +17056,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -17033,7 +17096,7 @@ func awsAwsjson11_deserializeDocumentTaggingFailedException(v **types.TaggingFai if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17045,7 +17108,7 @@ func awsAwsjson11_deserializeDocumentTaggingFailedException(v **types.TaggingFai return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17058,18 +17121,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17109,7 +17174,7 @@ func awsAwsjson11_deserializeDocumentTargetConfiguration(v **types.TargetConfigu if err != nil { return err } - sv.TargetValue = &f64 + sv.TargetValue = f64 } default: @@ -17149,7 +17214,7 @@ func awsAwsjson11_deserializeDocumentTerminalRoutingStrategyException(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17189,7 +17254,7 @@ func awsAwsjson11_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17229,7 +17294,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedRegionException(v **types.Unsupp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17295,7 +17360,7 @@ func awsAwsjson11_deserializeDocumentVpcPeeringAuthorization(v **types.VpcPeerin if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.GameLiftAwsAccountId = &jtv + sv.GameLiftAwsAccountId = ptr.String(jtv) } case "PeerVpcAwsAccountId": @@ -17304,7 +17369,7 @@ func awsAwsjson11_deserializeDocumentVpcPeeringAuthorization(v **types.VpcPeerin if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.PeerVpcAwsAccountId = &jtv + sv.PeerVpcAwsAccountId = ptr.String(jtv) } case "PeerVpcId": @@ -17313,7 +17378,7 @@ func awsAwsjson11_deserializeDocumentVpcPeeringAuthorization(v **types.VpcPeerin if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.PeerVpcId = &jtv + sv.PeerVpcId = ptr.String(jtv) } default: @@ -17325,7 +17390,7 @@ func awsAwsjson11_deserializeDocumentVpcPeeringAuthorization(v **types.VpcPeerin return nil } -func awsAwsjson11_deserializeDocumentVpcPeeringAuthorizationList(v *[]*types.VpcPeeringAuthorization, value interface{}) error { +func awsAwsjson11_deserializeDocumentVpcPeeringAuthorizationList(v *[]types.VpcPeeringAuthorization, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17338,18 +17403,20 @@ func awsAwsjson11_deserializeDocumentVpcPeeringAuthorizationList(v *[]*types.Vpc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VpcPeeringAuthorization + var cv []types.VpcPeeringAuthorization if *v == nil { - cv = []*types.VpcPeeringAuthorization{} + cv = []types.VpcPeeringAuthorization{} } else { cv = *v } for _, value := range shape { - var col *types.VpcPeeringAuthorization - if err := awsAwsjson11_deserializeDocumentVpcPeeringAuthorization(&col, value); err != nil { + var col types.VpcPeeringAuthorization + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVpcPeeringAuthorization(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17385,7 +17452,7 @@ func awsAwsjson11_deserializeDocumentVpcPeeringConnection(v **types.VpcPeeringCo if !ok { return fmt.Errorf("expected FleetArn to be of type string, got %T instead", value) } - sv.FleetArn = &jtv + sv.FleetArn = ptr.String(jtv) } case "FleetId": @@ -17394,7 +17461,7 @@ func awsAwsjson11_deserializeDocumentVpcPeeringConnection(v **types.VpcPeeringCo if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } case "GameLiftVpcId": @@ -17403,7 +17470,7 @@ func awsAwsjson11_deserializeDocumentVpcPeeringConnection(v **types.VpcPeeringCo if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.GameLiftVpcId = &jtv + sv.GameLiftVpcId = ptr.String(jtv) } case "IpV4CidrBlock": @@ -17412,7 +17479,7 @@ func awsAwsjson11_deserializeDocumentVpcPeeringConnection(v **types.VpcPeeringCo if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.IpV4CidrBlock = &jtv + sv.IpV4CidrBlock = ptr.String(jtv) } case "PeerVpcId": @@ -17421,7 +17488,7 @@ func awsAwsjson11_deserializeDocumentVpcPeeringConnection(v **types.VpcPeeringCo if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.PeerVpcId = &jtv + sv.PeerVpcId = ptr.String(jtv) } case "Status": @@ -17435,7 +17502,7 @@ func awsAwsjson11_deserializeDocumentVpcPeeringConnection(v **types.VpcPeeringCo if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.VpcPeeringConnectionId = &jtv + sv.VpcPeeringConnectionId = ptr.String(jtv) } default: @@ -17447,7 +17514,7 @@ func awsAwsjson11_deserializeDocumentVpcPeeringConnection(v **types.VpcPeeringCo return nil } -func awsAwsjson11_deserializeDocumentVpcPeeringConnectionList(v *[]*types.VpcPeeringConnection, value interface{}) error { +func awsAwsjson11_deserializeDocumentVpcPeeringConnectionList(v *[]types.VpcPeeringConnection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17460,18 +17527,20 @@ func awsAwsjson11_deserializeDocumentVpcPeeringConnectionList(v *[]*types.VpcPee return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VpcPeeringConnection + var cv []types.VpcPeeringConnection if *v == nil { - cv = []*types.VpcPeeringConnection{} + cv = []types.VpcPeeringConnection{} } else { cv = *v } for _, value := range shape { - var col *types.VpcPeeringConnection - if err := awsAwsjson11_deserializeDocumentVpcPeeringConnection(&col, value); err != nil { + var col types.VpcPeeringConnection + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVpcPeeringConnection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17507,7 +17576,7 @@ func awsAwsjson11_deserializeDocumentVpcPeeringConnectionStatus(v **types.VpcPee if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -17516,7 +17585,7 @@ func awsAwsjson11_deserializeDocumentVpcPeeringConnectionStatus(v **types.VpcPee if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18586,7 +18655,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFleetAttributesOutput(v **Describ if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -18631,7 +18700,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFleetCapacityOutput(v **DescribeF if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -18676,7 +18745,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFleetEventsOutput(v **DescribeFle if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -18757,7 +18826,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFleetUtilizationOutput(v **Descri if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -18838,7 +18907,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGameServerInstancesOutput(v **Des if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -18919,7 +18988,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGameSessionDetailsOutput(v **Desc if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -19000,7 +19069,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGameSessionQueuesOutput(v **Descr if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -19045,7 +19114,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGameSessionsOutput(v **DescribeGa if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -19090,7 +19159,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeInstancesOutput(v **DescribeInsta if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -19135,7 +19204,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMatchmakingConfigurationsOutput(v if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -19211,7 +19280,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMatchmakingRuleSetsOutput(v **Des if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RuleSets": @@ -19256,7 +19325,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePlayerSessionsOutput(v **Describe if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PlayerSessions": @@ -19337,7 +19406,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeScalingPoliciesOutput(v **Describ if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ScalingPolicies": @@ -19490,7 +19559,7 @@ func awsAwsjson11_deserializeOpDocumentGetGameSessionLogUrlOutput(v **GetGameSes if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.PreSignedUrl = &jtv + sv.PreSignedUrl = ptr.String(jtv) } default: @@ -19571,7 +19640,7 @@ func awsAwsjson11_deserializeOpDocumentListAliasesOutput(v **ListAliasesOutput, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -19616,7 +19685,7 @@ func awsAwsjson11_deserializeOpDocumentListBuildsOutput(v **ListBuildsOutput, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -19661,7 +19730,7 @@ func awsAwsjson11_deserializeOpDocumentListFleetsOutput(v **ListFleetsOutput, va if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -19706,7 +19775,7 @@ func awsAwsjson11_deserializeOpDocumentListGameServerGroupsOutput(v **ListGameSe if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -19751,7 +19820,7 @@ func awsAwsjson11_deserializeOpDocumentListGameServersOutput(v **ListGameServers if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -19791,7 +19860,7 @@ func awsAwsjson11_deserializeOpDocumentListScriptsOutput(v **ListScriptsOutput, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Scripts": @@ -19872,7 +19941,7 @@ func awsAwsjson11_deserializeOpDocumentPutScalingPolicyOutput(v **PutScalingPoli if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -19989,7 +20058,7 @@ func awsAwsjson11_deserializeOpDocumentResolveAliasOutput(v **ResolveAliasOutput if !ok { return fmt.Errorf("expected FleetArn to be of type string, got %T instead", value) } - sv.FleetArn = &jtv + sv.FleetArn = ptr.String(jtv) } case "FleetId": @@ -19998,7 +20067,7 @@ func awsAwsjson11_deserializeOpDocumentResolveAliasOutput(v **ResolveAliasOutput if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } default: @@ -20079,7 +20148,7 @@ func awsAwsjson11_deserializeOpDocumentSearchGameSessionsOutput(v **SearchGameSe if !ok { return fmt.Errorf("expected NonZeroAndMaxString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20526,7 +20595,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateFleetAttributesOutput(v **UpdateFle if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } default: @@ -20566,7 +20635,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateFleetCapacityOutput(v **UpdateFleet if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } default: @@ -20606,7 +20675,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateFleetPortSettingsOutput(v **UpdateF if !ok { return fmt.Errorf("expected FleetId to be of type string, got %T instead", value) } - sv.FleetId = &jtv + sv.FleetId = ptr.String(jtv) } default: @@ -20898,7 +20967,7 @@ func awsAwsjson11_deserializeOpDocumentValidateMatchmakingRuleSetOutput(v **Vali if !ok { return fmt.Errorf("expected BooleanModel to be of type *bool, got %T instead", value) } - sv.Valid = &jtv + sv.Valid = ptr.Bool(jtv) } default: diff --git a/service/gamelift/go.mod b/service/gamelift/go.mod index 88bbc8b25c6..2bf4d641249 100644 --- a/service/gamelift/go.mod +++ b/service/gamelift/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/gamelift go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/gamelift/serializers.go b/service/gamelift/serializers.go index c756952945c..77019d521f4 100644 --- a/service/gamelift/serializers.go +++ b/service/gamelift/serializers.go @@ -4207,17 +4207,13 @@ func awsAwsjson11_serializeDocumentDesiredPlayerSession(v *types.DesiredPlayerSe return nil } -func awsAwsjson11_serializeDocumentDesiredPlayerSessionList(v []*types.DesiredPlayerSession, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDesiredPlayerSessionList(v []types.DesiredPlayerSession, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDesiredPlayerSession(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDesiredPlayerSession(&v[i], av); err != nil { return err } } @@ -4235,17 +4231,13 @@ func awsAwsjson11_serializeDocumentFleetActionList(v []types.FleetAction, value return nil } -func awsAwsjson11_serializeDocumentFleetIdOrArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFleetIdOrArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4267,17 +4259,13 @@ func awsAwsjson11_serializeDocumentGameProperty(v *types.GameProperty, value smi return nil } -func awsAwsjson11_serializeDocumentGamePropertyList(v []*types.GameProperty, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGamePropertyList(v []types.GameProperty, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentGameProperty(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentGameProperty(&v[i], av); err != nil { return err } } @@ -4314,17 +4302,13 @@ func awsAwsjson11_serializeDocumentGameServerGroupAutoScalingPolicy(v *types.Gam return nil } -func awsAwsjson11_serializeDocumentGameServerInstanceIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGameServerInstanceIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4341,34 +4325,26 @@ func awsAwsjson11_serializeDocumentGameSessionQueueDestination(v *types.GameSess return nil } -func awsAwsjson11_serializeDocumentGameSessionQueueDestinationList(v []*types.GameSessionQueueDestination, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGameSessionQueueDestinationList(v []types.GameSessionQueueDestination, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentGameSessionQueueDestination(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentGameSessionQueueDestination(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentGameSessionQueueNameOrArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGameSessionQueueNameOrArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4390,17 +4366,13 @@ func awsAwsjson11_serializeDocumentInstanceDefinition(v *types.InstanceDefinitio return nil } -func awsAwsjson11_serializeDocumentInstanceDefinitions(v []*types.InstanceDefinition, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceDefinitions(v []types.InstanceDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInstanceDefinition(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInstanceDefinition(&v[i], av); err != nil { return err } } @@ -4434,34 +4406,26 @@ func awsAwsjson11_serializeDocumentIpPermission(v *types.IpPermission, value smi return nil } -func awsAwsjson11_serializeDocumentIpPermissionsList(v []*types.IpPermission, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIpPermissionsList(v []types.IpPermission, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentIpPermission(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentIpPermission(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentLatencyMap(v map[string]*int32, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLatencyMap(v map[string]int32, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.Integer(*v[key]) + om.Integer(v[key]) } return nil } @@ -4488,62 +4452,46 @@ func awsAwsjson11_serializeDocumentLaunchTemplateSpecification(v *types.LaunchTe return nil } -func awsAwsjson11_serializeDocumentMatchmakingConfigurationNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMatchmakingConfigurationNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentMatchmakingIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMatchmakingIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentMatchmakingRuleSetNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMatchmakingRuleSetNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentMetricGroupList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMetricGroupList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4579,49 +4527,38 @@ func awsAwsjson11_serializeDocumentPlayer(v *types.Player, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentPlayerAttributeMap(v map[string]*types.AttributeValue, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPlayerAttributeMap(v map[string]types.AttributeValue, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAttributeValue(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson11_serializeDocumentAttributeValue(&mapVar, om); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentPlayerDataMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPlayerDataMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentPlayerIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPlayerIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4630,9 +4567,9 @@ func awsAwsjson11_serializeDocumentPlayerLatency(v *types.PlayerLatency, value s object := value.Object() defer object.Close() - if v.LatencyInMilliseconds != nil { + if v.LatencyInMilliseconds != 0 { ok := object.Key("LatencyInMilliseconds") - ok.Float(*v.LatencyInMilliseconds) + ok.Float(v.LatencyInMilliseconds) } if v.PlayerId != nil { @@ -4648,17 +4585,13 @@ func awsAwsjson11_serializeDocumentPlayerLatency(v *types.PlayerLatency, value s return nil } -func awsAwsjson11_serializeDocumentPlayerLatencyList(v []*types.PlayerLatency, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPlayerLatencyList(v []types.PlayerLatency, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPlayerLatency(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPlayerLatency(&v[i], av); err != nil { return err } } @@ -4682,51 +4615,39 @@ func awsAwsjson11_serializeDocumentPlayerLatencyPolicy(v *types.PlayerLatencyPol return nil } -func awsAwsjson11_serializeDocumentPlayerLatencyPolicyList(v []*types.PlayerLatencyPolicy, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPlayerLatencyPolicyList(v []types.PlayerLatencyPolicy, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPlayerLatencyPolicy(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPlayerLatencyPolicy(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentPlayerList(v []*types.Player, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPlayerList(v []types.Player, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPlayer(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPlayer(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentQueueArnsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentQueueArnsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4843,49 +4764,37 @@ func awsAwsjson11_serializeDocumentServerProcess(v *types.ServerProcess, value s return nil } -func awsAwsjson11_serializeDocumentServerProcessList(v []*types.ServerProcess, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServerProcessList(v []types.ServerProcess, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentServerProcess(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentServerProcess(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentStringDoubleMap(v map[string]*float64, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringDoubleMap(v map[string]float64, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.Double(*v[key]) + om.Double(v[key]) } return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4907,32 +4816,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -4943,9 +4844,9 @@ func awsAwsjson11_serializeDocumentTargetConfiguration(v *types.TargetConfigurat object := value.Object() defer object.Close() - if v.TargetValue != nil { + if v.TargetValue != 0 { ok := object.Key("TargetValue") - ok.Double(*v.TargetValue) + ok.Double(v.TargetValue) } return nil @@ -4963,17 +4864,13 @@ func awsAwsjson11_serializeDocumentTargetTrackingConfiguration(v *types.TargetTr return nil } -func awsAwsjson11_serializeDocumentVpcSubnets(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVpcSubnets(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6503,9 +6400,9 @@ func awsAwsjson11_serializeOpDocumentPutScalingPolicyInput(v *PutScalingPolicyIn ok.String(string(v.PolicyType)) } - if v.ScalingAdjustment != nil { + if v.ScalingAdjustment != 0 { ok := object.Key("ScalingAdjustment") - ok.Integer(*v.ScalingAdjustment) + ok.Integer(v.ScalingAdjustment) } if len(v.ScalingAdjustmentType) > 0 { @@ -6520,9 +6417,9 @@ func awsAwsjson11_serializeOpDocumentPutScalingPolicyInput(v *PutScalingPolicyIn } } - if v.Threshold != nil { + if v.Threshold != 0 { ok := object.Key("Threshold") - ok.Double(*v.Threshold) + ok.Double(v.Threshold) } return nil diff --git a/service/gamelift/types/types.go b/service/gamelift/types/types.go index 32fdb482b13..828b8566a45 100644 --- a/service/gamelift/types/types.go +++ b/service/gamelift/types/types.go @@ -66,12 +66,12 @@ type AttributeValue struct { // For a map of up to 10 data type:value pairs. Maximum length for each string // value is 100 characters. - SDM map[string]*float64 + SDM map[string]float64 // For a list of up to 10 strings. Maximum length for each string is 100 // characters. Duplicate values are not recognized; all occurrences of the repeated // value after the first of a repeated value are ignored. - SL []*string + SL []string } // Temporary access credentials used for uploading game build files to Amazon @@ -452,13 +452,13 @@ type FleetAttributes struct { // uploads logs that are stored on each instance at C:\game\logs (for Windows) or // /local/game/logs (for Linux). Use the Amazon GameLift console to access stored // logs. - LogPaths []*string + LogPaths []string // Names of metric groups that this fleet is included in. In Amazon CloudWatch, you // can view metrics for an individual fleet or aggregated metrics for fleets that // are in a fleet metric group. A fleet can be included in only one metric group at // a time. - MetricGroups []*string + MetricGroups []string // A descriptive label that is associated with a fleet. Fleet names do not need to // be unique. @@ -787,7 +787,7 @@ type GameServerGroup struct { // The set of EC2 instance types that GameLift FleetIQ can use when balancing and // automatically scaling instances in the corresponding Auto Scaling group. - InstanceDefinitions []*InstanceDefinition + InstanceDefinitions []InstanceDefinition // A timestamp that indicates when this game server group was last updated. LastUpdatedTime *time.Time @@ -987,7 +987,7 @@ type GameSession struct { // (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession)). // You can search for active game sessions based on this custom data with // SearchGameSessions. - GameProperties []*GameProperty + GameProperties []GameProperty // Set of custom game session properties, formatted as a single string value. This // data is passed to a game server process in the GameSession object with a request @@ -1079,7 +1079,7 @@ type GameSessionConnectionInfo struct { // A collection of player session IDs, one for each player ID that was included in // the original matchmaking request. - MatchedPlayerSessions []*MatchedPlayerSession + MatchedPlayerSessions []MatchedPlayerSession // Port number for the game session. To connect to a Amazon GameLift game server, // an app needs both the IP address and port number. @@ -1138,7 +1138,7 @@ type GameSessionPlacement struct { // properties are passed to a game server process in the GameSession object with a // request to start a new game session (see Start a Game Session // (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession)). - GameProperties []*GameProperty + GameProperties []GameProperty // Identifier for the game session created by this placement request. This value is // set once the new game session is placed (placement status is FULFILLED). This @@ -1193,14 +1193,14 @@ type GameSessionPlacement struct { // information includes the player ID (as provided in the placement request) and // the corresponding player session ID. Retrieve full player sessions by calling // DescribePlayerSessions with the player session ID. - PlacedPlayerSessions []*PlacedPlayerSession + PlacedPlayerSessions []PlacedPlayerSession // A unique identifier for a game session placement. PlacementId *string // Set of values, expressed in milliseconds, indicating the amount of latency that // a player experiences when connected to AWS Regions. - PlayerLatencies []*PlayerLatency + PlayerLatencies []PlayerLatency // Port number for the game session. To connect to a Amazon GameLift game server, // an app needs both the IP address and port number. This value is set once the new @@ -1266,7 +1266,7 @@ type GameSessionQueue struct { // A list of fleets that can be used to fulfill game session placement requests in // the queue. Fleets are identified by either a fleet ARN or a fleet alias ARN. // Destinations are listed in default preference order. - Destinations []*GameSessionQueueDestination + Destinations []GameSessionQueueDestination // Amazon Resource Name (ARN // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)) @@ -1287,7 +1287,7 @@ type GameSessionQueue struct { // policy is enforced consecutively for its duration period. For example, a queue // might enforce a 60-second policy followed by a 120-second policy, and then no // policy for the remainder of the placement. - PlayerLatencyPolicies []*PlayerLatencyPolicy + PlayerLatencyPolicies []PlayerLatencyPolicy // The maximum time, in seconds, that a new game session placement request remains // in the queue. When a request exceeds this time, the game session placement @@ -1544,7 +1544,7 @@ type MatchmakingConfiguration struct { // (https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession)). // This information is added to the new GameSession object that is created for a // successful match. - GameProperties []*GameProperty + GameProperties []GameProperty // A set of custom game session properties, formatted as a single string value. // This data is passed to a game server process in the GameSession object with a @@ -1560,7 +1560,7 @@ type MatchmakingConfiguration struct { // identifies it. ARNs are unique across all Regions. GameLift uses the listed // queues when placing game sessions for matches that are created with this // matchmaking configuration. Queues can be located in any Region. - GameSessionQueueArns []*string + GameSessionQueueArns []string // A unique identifier for a matchmaking configuration. This name is used to // identify the configuration associated with a matchmaking request or ticket. @@ -1678,7 +1678,7 @@ type MatchmakingTicket struct { // are identified by a unique player ID and may include latency data for use during // matchmaking. If the ticket is in status COMPLETED, the Player objects include // the team the players were assigned to in the resulting match. - Players []*Player + Players []Player // Time stamp indicating when this matchmaking request was received. Format is a // number expressed in Unix time as milliseconds (for example "1469498468.057"). @@ -1774,13 +1774,13 @@ type Player struct { // report latency in order to be matched. If no latency is reported in this // scenario, FlexMatch assumes that no Regions are available to the player and the // ticket is not matchable. - LatencyInMs map[string]*int32 + LatencyInMs map[string]int32 // A collection of key:value pairs containing player information for use in // matchmaking. Player attribute keys must match the playerAttributes used in a // matchmaking rule set. Example: "PlayerAttributes": {"skill": {"N": "23"}, // "gameMode": {"S": "deathmatch"}}. - PlayerAttributes map[string]*AttributeValue + PlayerAttributes map[string]AttributeValue // A unique identifier for a player PlayerId *string @@ -1800,7 +1800,7 @@ type PlayerLatency struct { // Amount of time that represents the time lag experienced by the player when // connected to the specified Region. - LatencyInMilliseconds *float32 + LatencyInMilliseconds float32 // A unique identifier for a player associated with the latency data. PlayerId *string @@ -2030,7 +2030,7 @@ type RuntimeConfiguration struct { // A collection of server process configurations that describe which server // processes to run on each instance in a fleet. - ServerProcesses []*ServerProcess + ServerProcesses []ServerProcess } // The location in S3 where build or script files are stored for access by Amazon @@ -2153,7 +2153,7 @@ type ScalingPolicy struct { PolicyType PolicyType // Amount of adjustment to make, based on the scaling adjustment type. - ScalingAdjustment *int32 + ScalingAdjustment int32 // The type of adjustment to make to a fleet's instance count (see // FleetCapacity): @@ -2201,7 +2201,7 @@ type ScalingPolicy struct { TargetConfiguration *TargetConfiguration // Metric value used to trigger a scaling event. - Threshold *float64 + Threshold float64 } // Properties describing a Realtime script. Related operations @@ -2346,7 +2346,7 @@ type TargetConfiguration struct { // idle and ready for new game sessions). // // This member is required. - TargetValue *float64 + TargetValue float64 } // This data type is used with the Amazon GameLift FleetIQ and game server groups. diff --git a/service/gamelift/validators.go b/service/gamelift/validators.go index ae6d6fd0244..0aae7377825 100644 --- a/service/gamelift/validators.go +++ b/service/gamelift/validators.go @@ -1771,13 +1771,13 @@ func validateGameProperty(v *types.GameProperty) error { } } -func validateGamePropertyList(v []*types.GameProperty) error { +func validateGamePropertyList(v []types.GameProperty) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GamePropertyList"} for i := range v { - if err := validateGameProperty(v[i]); err != nil { + if err := validateGameProperty(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1822,13 +1822,13 @@ func validateInstanceDefinition(v *types.InstanceDefinition) error { } } -func validateInstanceDefinitions(v []*types.InstanceDefinition) error { +func validateInstanceDefinitions(v []types.InstanceDefinition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InstanceDefinitions"} for i := range v { - if err := validateInstanceDefinition(v[i]); err != nil { + if err := validateInstanceDefinition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1863,13 +1863,13 @@ func validateIpPermission(v *types.IpPermission) error { } } -func validateIpPermissionsList(v []*types.IpPermission) error { +func validateIpPermissionsList(v []types.IpPermission) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "IpPermissionsList"} for i := range v { - if err := validateIpPermission(v[i]); err != nil { + if err := validateIpPermission(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1915,13 +1915,13 @@ func validateServerProcess(v *types.ServerProcess) error { } } -func validateServerProcessList(v []*types.ServerProcess) error { +func validateServerProcessList(v []types.ServerProcess) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ServerProcessList"} for i := range v { - if err := validateServerProcess(v[i]); err != nil { + if err := validateServerProcess(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1950,13 +1950,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1972,9 +1972,6 @@ func validateTargetConfiguration(v *types.TargetConfiguration) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "TargetConfiguration"} - if v.TargetValue == nil { - invalidParams.Add(smithy.NewErrParamRequired("TargetValue")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/glacier/api_op_AddTagsToVault.go b/service/glacier/api_op_AddTagsToVault.go index 9e49d106c65..9664962e5f4 100644 --- a/service/glacier/api_op_AddTagsToVault.go +++ b/service/glacier/api_op_AddTagsToVault.go @@ -52,7 +52,7 @@ type AddTagsToVaultInput struct { // The tags to add to the vault. Each tag is composed of a key and a value. The // value can be an empty string. - Tags map[string]*string + Tags map[string]string } type AddTagsToVaultOutput struct { diff --git a/service/glacier/api_op_DescribeJob.go b/service/glacier/api_op_DescribeJob.go index bbb2ac9195c..af5b13252f1 100644 --- a/service/glacier/api_op_DescribeJob.go +++ b/service/glacier/api_op_DescribeJob.go @@ -90,7 +90,7 @@ type DescribeJobOutput struct { // The job status. When a job is completed, you get the job's output using Get Job // Output (GET output). - Completed *bool + Completed bool // The UTC time that the job request completed. While the job is in progress, the // value is null. diff --git a/service/glacier/api_op_DescribeVault.go b/service/glacier/api_op_DescribeVault.go index b1b18c5c7db..f941e1d6a46 100644 --- a/service/glacier/api_op_DescribeVault.go +++ b/service/glacier/api_op_DescribeVault.go @@ -82,12 +82,12 @@ type DescribeVaultOutput struct { // The number of archives in the vault as of the last inventory date. This field // will return null if an inventory has not yet run on the vault, for example if // you just created the vault. - NumberOfArchives *int64 + NumberOfArchives int64 // Total size, in bytes, of the archives in the vault as of the last inventory // date. This field will return null if an inventory has not yet run on the vault, // for example if you just created the vault. - SizeInBytes *int64 + SizeInBytes int64 // The Amazon Resource Name (ARN) of the vault. VaultARN *string diff --git a/service/glacier/api_op_GetJobOutput.go b/service/glacier/api_op_GetJobOutput.go index f25aaf02037..add59d11c26 100644 --- a/service/glacier/api_op_GetJobOutput.go +++ b/service/glacier/api_op_GetJobOutput.go @@ -164,7 +164,7 @@ type GetJobOutputOutput struct { // The HTTP response code for a job output request. The value depends on whether a // range was specified in the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glacier/api_op_ListJobs.go b/service/glacier/api_op_ListJobs.go index d2cdc1a617c..b6f06ff42f7 100644 --- a/service/glacier/api_op_ListJobs.go +++ b/service/glacier/api_op_ListJobs.go @@ -95,7 +95,7 @@ type ListJobsInput struct { type ListJobsOutput struct { // A list of job objects. Each job object contains metadata describing the job. - JobList []*types.GlacierJobDescription + JobList []types.GlacierJobDescription // An opaque string used for pagination that specifies the job at which the listing // of jobs should begin. You get the marker value from a previous List Jobs diff --git a/service/glacier/api_op_ListMultipartUploads.go b/service/glacier/api_op_ListMultipartUploads.go index 2a5531e3a23..2b7106361d1 100644 --- a/service/glacier/api_op_ListMultipartUploads.go +++ b/service/glacier/api_op_ListMultipartUploads.go @@ -92,7 +92,7 @@ type ListMultipartUploadsOutput struct { Marker *string // A list of in-progress multipart uploads. - UploadsList []*types.UploadListElement + UploadsList []types.UploadListElement // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glacier/api_op_ListParts.go b/service/glacier/api_op_ListParts.go index 559621f068c..e09c26a06c7 100644 --- a/service/glacier/api_op_ListParts.go +++ b/service/glacier/api_op_ListParts.go @@ -105,11 +105,11 @@ type ListPartsOutput struct { // The part size in bytes. This is the same value that you specified in the // Initiate Multipart Upload request. - PartSizeInBytes *int64 + PartSizeInBytes int64 // A list of the part sizes of the multipart upload. Each object in the array // contains a RangeBytes and sha256-tree-hash name/value pair. - Parts []*types.PartListElement + Parts []types.PartListElement // The Amazon Resource Name (ARN) of the vault to which the multipart upload was // initiated. diff --git a/service/glacier/api_op_ListProvisionedCapacity.go b/service/glacier/api_op_ListProvisionedCapacity.go index 06124cd8bdf..28f259d6c8d 100644 --- a/service/glacier/api_op_ListProvisionedCapacity.go +++ b/service/glacier/api_op_ListProvisionedCapacity.go @@ -43,7 +43,7 @@ type ListProvisionedCapacityInput struct { type ListProvisionedCapacityOutput struct { // The response body contains the following JSON fields. - ProvisionedCapacityList []*types.ProvisionedCapacityDescription + ProvisionedCapacityList []types.ProvisionedCapacityDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glacier/api_op_ListTagsForVault.go b/service/glacier/api_op_ListTagsForVault.go index 748d4143b1c..34f2ce413b4 100644 --- a/service/glacier/api_op_ListTagsForVault.go +++ b/service/glacier/api_op_ListTagsForVault.go @@ -52,7 +52,7 @@ type ListTagsForVaultInput struct { type ListTagsForVaultOutput struct { // The tags attached to the vault. Each tag is composed of a key and a value. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glacier/api_op_ListVaults.go b/service/glacier/api_op_ListVaults.go index 4cdc1b1bd9b..0030a573710 100644 --- a/service/glacier/api_op_ListVaults.go +++ b/service/glacier/api_op_ListVaults.go @@ -79,7 +79,7 @@ type ListVaultsOutput struct { Marker *string // List of vaults. - VaultList []*types.DescribeVaultOutput + VaultList []types.DescribeVaultOutput // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glacier/api_op_RemoveTagsFromVault.go b/service/glacier/api_op_RemoveTagsFromVault.go index 5a720e223c4..01ae967c3b5 100644 --- a/service/glacier/api_op_RemoveTagsFromVault.go +++ b/service/glacier/api_op_RemoveTagsFromVault.go @@ -49,7 +49,7 @@ type RemoveTagsFromVaultInput struct { VaultName *string // A list of tag keys. Each corresponding tag is removed from the vault. - TagKeys []*string + TagKeys []string } type RemoveTagsFromVaultOutput struct { diff --git a/service/glacier/deserializers.go b/service/glacier/deserializers.go index 41cd7adaa9c..1a9321f778d 100644 --- a/service/glacier/deserializers.go +++ b/service/glacier/deserializers.go @@ -1144,7 +1144,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ArchiveId = &jtv + sv.ArchiveId = ptr.String(jtv) } case "ArchiveSHA256TreeHash": @@ -1153,7 +1153,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ArchiveSHA256TreeHash = &jtv + sv.ArchiveSHA256TreeHash = ptr.String(jtv) } case "ArchiveSizeInBytes": @@ -1166,7 +1166,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if err != nil { return err } - sv.ArchiveSizeInBytes = &i64 + sv.ArchiveSizeInBytes = ptr.Int64(i64) } case "Completed": @@ -1175,7 +1175,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.Completed = &jtv + sv.Completed = jtv } case "CompletionDate": @@ -1184,7 +1184,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CompletionDate = &jtv + sv.CompletionDate = ptr.String(jtv) } case "CreationDate": @@ -1193,7 +1193,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "InventoryRetrievalParameters": @@ -1211,7 +1211,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if err != nil { return err } - sv.InventorySizeInBytes = &i64 + sv.InventorySizeInBytes = ptr.Int64(i64) } case "JobDescription": @@ -1220,7 +1220,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.JobDescription = &jtv + sv.JobDescription = ptr.String(jtv) } case "JobId": @@ -1229,7 +1229,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobOutputPath": @@ -1238,7 +1238,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.JobOutputPath = &jtv + sv.JobOutputPath = ptr.String(jtv) } case "OutputLocation": @@ -1252,7 +1252,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.RetrievalByteRange = &jtv + sv.RetrievalByteRange = ptr.String(jtv) } case "SelectParameters": @@ -1266,7 +1266,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SHA256TreeHash = &jtv + sv.SHA256TreeHash = ptr.String(jtv) } case "SNSTopic": @@ -1275,7 +1275,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SNSTopic = &jtv + sv.SNSTopic = ptr.String(jtv) } case "StatusCode": @@ -1293,7 +1293,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "Tier": @@ -1302,7 +1302,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Tier = &jtv + sv.Tier = ptr.String(jtv) } case "VaultARN": @@ -1311,7 +1311,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VaultARN = &jtv + sv.VaultARN = ptr.String(jtv) } default: @@ -1471,7 +1471,7 @@ func awsRestjson1_deserializeOpDocumentDescribeVaultOutput(v **DescribeVaultOutp if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "LastInventoryDate": @@ -1480,7 +1480,7 @@ func awsRestjson1_deserializeOpDocumentDescribeVaultOutput(v **DescribeVaultOutp if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.LastInventoryDate = &jtv + sv.LastInventoryDate = ptr.String(jtv) } case "NumberOfArchives": @@ -1493,7 +1493,7 @@ func awsRestjson1_deserializeOpDocumentDescribeVaultOutput(v **DescribeVaultOutp if err != nil { return err } - sv.NumberOfArchives = &i64 + sv.NumberOfArchives = i64 } case "SizeInBytes": @@ -1506,7 +1506,7 @@ func awsRestjson1_deserializeOpDocumentDescribeVaultOutput(v **DescribeVaultOutp if err != nil { return err } - sv.SizeInBytes = &i64 + sv.SizeInBytes = i64 } case "VaultARN": @@ -1515,7 +1515,7 @@ func awsRestjson1_deserializeOpDocumentDescribeVaultOutput(v **DescribeVaultOutp if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VaultARN = &jtv + sv.VaultARN = ptr.String(jtv) } case "VaultName": @@ -1524,7 +1524,7 @@ func awsRestjson1_deserializeOpDocumentDescribeVaultOutput(v **DescribeVaultOutp if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VaultName = &jtv + sv.VaultName = ptr.String(jtv) } default: @@ -1821,7 +1821,7 @@ func awsRestjson1_deserializeOpHttpBindingsGetJobOutputOutput(v *GetJobOutputOut v.ContentType = ptr.String(headerValues[0]) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -2138,7 +2138,7 @@ func awsRestjson1_deserializeOpDocumentGetVaultLockOutput(v **GetVaultLockOutput if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "ExpirationDate": @@ -2147,7 +2147,7 @@ func awsRestjson1_deserializeOpDocumentGetVaultLockOutput(v **GetVaultLockOutput if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ExpirationDate = &jtv + sv.ExpirationDate = ptr.String(jtv) } case "Policy": @@ -2156,7 +2156,7 @@ func awsRestjson1_deserializeOpDocumentGetVaultLockOutput(v **GetVaultLockOutput if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "State": @@ -2165,7 +2165,7 @@ func awsRestjson1_deserializeOpDocumentGetVaultLockOutput(v **GetVaultLockOutput if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } default: @@ -2837,7 +2837,7 @@ func awsRestjson1_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, value if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -2997,7 +2997,7 @@ func awsRestjson1_deserializeOpDocumentListMultipartUploadsOutput(v **ListMultip if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "UploadsList": @@ -3162,7 +3162,7 @@ func awsRestjson1_deserializeOpDocumentListPartsOutput(v **ListPartsOutput, valu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ArchiveDescription = &jtv + sv.ArchiveDescription = ptr.String(jtv) } case "CreationDate": @@ -3171,7 +3171,7 @@ func awsRestjson1_deserializeOpDocumentListPartsOutput(v **ListPartsOutput, valu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Marker": @@ -3180,7 +3180,7 @@ func awsRestjson1_deserializeOpDocumentListPartsOutput(v **ListPartsOutput, valu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "MultipartUploadId": @@ -3189,7 +3189,7 @@ func awsRestjson1_deserializeOpDocumentListPartsOutput(v **ListPartsOutput, valu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.MultipartUploadId = &jtv + sv.MultipartUploadId = ptr.String(jtv) } case "Parts": @@ -3207,7 +3207,7 @@ func awsRestjson1_deserializeOpDocumentListPartsOutput(v **ListPartsOutput, valu if err != nil { return err } - sv.PartSizeInBytes = &i64 + sv.PartSizeInBytes = i64 } case "VaultARN": @@ -3216,7 +3216,7 @@ func awsRestjson1_deserializeOpDocumentListPartsOutput(v **ListPartsOutput, valu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VaultARN = &jtv + sv.VaultARN = ptr.String(jtv) } default: @@ -3685,7 +3685,7 @@ func awsRestjson1_deserializeOpDocumentListVaultsOutput(v **ListVaultsOutput, va if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "VaultList": @@ -4700,7 +4700,7 @@ func awsRestjson1_deserializeErrorServiceUnavailableException(response *smithyht return output } -func awsRestjson1_deserializeDocumentAccessControlPolicyList(v *[]*types.Grant, value interface{}) error { +func awsRestjson1_deserializeDocumentAccessControlPolicyList(v *[]types.Grant, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4713,18 +4713,20 @@ func awsRestjson1_deserializeDocumentAccessControlPolicyList(v *[]*types.Grant, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Grant + var cv []types.Grant if *v == nil { - cv = []*types.Grant{} + cv = []types.Grant{} } else { cv = *v } for _, value := range shape { - var col *types.Grant - if err := awsRestjson1_deserializeDocumentGrant(&col, value); err != nil { + var col types.Grant + destAddr := &col + if err := awsRestjson1_deserializeDocumentGrant(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4760,7 +4762,7 @@ func awsRestjson1_deserializeDocumentCSVInput(v **types.CSVInput, value interfac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Comments = &jtv + sv.Comments = ptr.String(jtv) } case "FieldDelimiter": @@ -4769,7 +4771,7 @@ func awsRestjson1_deserializeDocumentCSVInput(v **types.CSVInput, value interfac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.FieldDelimiter = &jtv + sv.FieldDelimiter = ptr.String(jtv) } case "FileHeaderInfo": @@ -4787,7 +4789,7 @@ func awsRestjson1_deserializeDocumentCSVInput(v **types.CSVInput, value interfac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.QuoteCharacter = &jtv + sv.QuoteCharacter = ptr.String(jtv) } case "QuoteEscapeCharacter": @@ -4796,7 +4798,7 @@ func awsRestjson1_deserializeDocumentCSVInput(v **types.CSVInput, value interfac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.QuoteEscapeCharacter = &jtv + sv.QuoteEscapeCharacter = ptr.String(jtv) } case "RecordDelimiter": @@ -4805,7 +4807,7 @@ func awsRestjson1_deserializeDocumentCSVInput(v **types.CSVInput, value interfac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.RecordDelimiter = &jtv + sv.RecordDelimiter = ptr.String(jtv) } default: @@ -4845,7 +4847,7 @@ func awsRestjson1_deserializeDocumentCSVOutput(v **types.CSVOutput, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.FieldDelimiter = &jtv + sv.FieldDelimiter = ptr.String(jtv) } case "QuoteCharacter": @@ -4854,7 +4856,7 @@ func awsRestjson1_deserializeDocumentCSVOutput(v **types.CSVOutput, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.QuoteCharacter = &jtv + sv.QuoteCharacter = ptr.String(jtv) } case "QuoteEscapeCharacter": @@ -4863,7 +4865,7 @@ func awsRestjson1_deserializeDocumentCSVOutput(v **types.CSVOutput, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.QuoteEscapeCharacter = &jtv + sv.QuoteEscapeCharacter = ptr.String(jtv) } case "QuoteFields": @@ -4881,7 +4883,7 @@ func awsRestjson1_deserializeDocumentCSVOutput(v **types.CSVOutput, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.RecordDelimiter = &jtv + sv.RecordDelimiter = ptr.String(jtv) } default: @@ -4961,7 +4963,7 @@ func awsRestjson1_deserializeDocumentDataRetrievalRule(v **types.DataRetrievalRu if err != nil { return err } - sv.BytesPerHour = &i64 + sv.BytesPerHour = ptr.Int64(i64) } case "Strategy": @@ -4970,7 +4972,7 @@ func awsRestjson1_deserializeDocumentDataRetrievalRule(v **types.DataRetrievalRu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Strategy = &jtv + sv.Strategy = ptr.String(jtv) } default: @@ -4982,7 +4984,7 @@ func awsRestjson1_deserializeDocumentDataRetrievalRule(v **types.DataRetrievalRu return nil } -func awsRestjson1_deserializeDocumentDataRetrievalRulesList(v *[]*types.DataRetrievalRule, value interface{}) error { +func awsRestjson1_deserializeDocumentDataRetrievalRulesList(v *[]types.DataRetrievalRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4995,18 +4997,20 @@ func awsRestjson1_deserializeDocumentDataRetrievalRulesList(v *[]*types.DataRetr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataRetrievalRule + var cv []types.DataRetrievalRule if *v == nil { - cv = []*types.DataRetrievalRule{} + cv = []types.DataRetrievalRule{} } else { cv = *v } for _, value := range shape { - var col *types.DataRetrievalRule - if err := awsRestjson1_deserializeDocumentDataRetrievalRule(&col, value); err != nil { + var col types.DataRetrievalRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataRetrievalRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5042,7 +5046,7 @@ func awsRestjson1_deserializeDocumentDescribeVaultOutput(v **types.DescribeVault if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "LastInventoryDate": @@ -5051,7 +5055,7 @@ func awsRestjson1_deserializeDocumentDescribeVaultOutput(v **types.DescribeVault if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.LastInventoryDate = &jtv + sv.LastInventoryDate = ptr.String(jtv) } case "NumberOfArchives": @@ -5064,7 +5068,7 @@ func awsRestjson1_deserializeDocumentDescribeVaultOutput(v **types.DescribeVault if err != nil { return err } - sv.NumberOfArchives = &i64 + sv.NumberOfArchives = i64 } case "SizeInBytes": @@ -5077,7 +5081,7 @@ func awsRestjson1_deserializeDocumentDescribeVaultOutput(v **types.DescribeVault if err != nil { return err } - sv.SizeInBytes = &i64 + sv.SizeInBytes = i64 } case "VaultARN": @@ -5086,7 +5090,7 @@ func awsRestjson1_deserializeDocumentDescribeVaultOutput(v **types.DescribeVault if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VaultARN = &jtv + sv.VaultARN = ptr.String(jtv) } case "VaultName": @@ -5095,7 +5099,7 @@ func awsRestjson1_deserializeDocumentDescribeVaultOutput(v **types.DescribeVault if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VaultName = &jtv + sv.VaultName = ptr.String(jtv) } default: @@ -5144,7 +5148,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.KMSContext = &jtv + sv.KMSContext = ptr.String(jtv) } case "KMSKeyId": @@ -5153,7 +5157,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.KMSKeyId = &jtv + sv.KMSKeyId = ptr.String(jtv) } default: @@ -5202,7 +5206,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ArchiveId = &jtv + sv.ArchiveId = ptr.String(jtv) } case "ArchiveSHA256TreeHash": @@ -5211,7 +5215,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ArchiveSHA256TreeHash = &jtv + sv.ArchiveSHA256TreeHash = ptr.String(jtv) } case "ArchiveSizeInBytes": @@ -5224,7 +5228,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if err != nil { return err } - sv.ArchiveSizeInBytes = &i64 + sv.ArchiveSizeInBytes = ptr.Int64(i64) } case "Completed": @@ -5233,7 +5237,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.Completed = &jtv + sv.Completed = jtv } case "CompletionDate": @@ -5242,7 +5246,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CompletionDate = &jtv + sv.CompletionDate = ptr.String(jtv) } case "CreationDate": @@ -5251,7 +5255,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "InventoryRetrievalParameters": @@ -5269,7 +5273,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if err != nil { return err } - sv.InventorySizeInBytes = &i64 + sv.InventorySizeInBytes = ptr.Int64(i64) } case "JobDescription": @@ -5278,7 +5282,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.JobDescription = &jtv + sv.JobDescription = ptr.String(jtv) } case "JobId": @@ -5287,7 +5291,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobOutputPath": @@ -5296,7 +5300,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.JobOutputPath = &jtv + sv.JobOutputPath = ptr.String(jtv) } case "OutputLocation": @@ -5310,7 +5314,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.RetrievalByteRange = &jtv + sv.RetrievalByteRange = ptr.String(jtv) } case "SelectParameters": @@ -5324,7 +5328,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SHA256TreeHash = &jtv + sv.SHA256TreeHash = ptr.String(jtv) } case "SNSTopic": @@ -5333,7 +5337,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SNSTopic = &jtv + sv.SNSTopic = ptr.String(jtv) } case "StatusCode": @@ -5351,7 +5355,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "Tier": @@ -5360,7 +5364,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Tier = &jtv + sv.Tier = ptr.String(jtv) } case "VaultARN": @@ -5369,7 +5373,7 @@ func awsRestjson1_deserializeDocumentGlacierJobDescription(v **types.GlacierJobD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VaultARN = &jtv + sv.VaultARN = ptr.String(jtv) } default: @@ -5454,7 +5458,7 @@ func awsRestjson1_deserializeDocumentGrantee(v **types.Grantee, value interface{ if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "EmailAddress": @@ -5463,7 +5467,7 @@ func awsRestjson1_deserializeDocumentGrantee(v **types.Grantee, value interface{ if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "ID": @@ -5472,7 +5476,7 @@ func awsRestjson1_deserializeDocumentGrantee(v **types.Grantee, value interface{ if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ID = &jtv + sv.ID = ptr.String(jtv) } case "Type": @@ -5490,7 +5494,7 @@ func awsRestjson1_deserializeDocumentGrantee(v **types.Grantee, value interface{ if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.URI = &jtv + sv.URI = ptr.String(jtv) } default: @@ -5502,7 +5506,7 @@ func awsRestjson1_deserializeDocumentGrantee(v **types.Grantee, value interface{ return nil } -func awsRestjson1_deserializeDocumentHashmap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentHashmap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5515,21 +5519,21 @@ func awsRestjson1_deserializeDocumentHashmap(v *map[string]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -5602,7 +5606,7 @@ func awsRestjson1_deserializeDocumentInsufficientCapacityException(v **types.Ins if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -5611,7 +5615,7 @@ func awsRestjson1_deserializeDocumentInsufficientCapacityException(v **types.Ins if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "type": @@ -5620,7 +5624,7 @@ func awsRestjson1_deserializeDocumentInsufficientCapacityException(v **types.Ins if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -5660,7 +5664,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -5669,7 +5673,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "type": @@ -5678,7 +5682,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -5718,7 +5722,7 @@ func awsRestjson1_deserializeDocumentInventoryRetrievalJobDescription(v **types. if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.EndDate = &jtv + sv.EndDate = ptr.String(jtv) } case "Format": @@ -5727,7 +5731,7 @@ func awsRestjson1_deserializeDocumentInventoryRetrievalJobDescription(v **types. if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Format = &jtv + sv.Format = ptr.String(jtv) } case "Limit": @@ -5736,7 +5740,7 @@ func awsRestjson1_deserializeDocumentInventoryRetrievalJobDescription(v **types. if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Limit = &jtv + sv.Limit = ptr.String(jtv) } case "Marker": @@ -5745,7 +5749,7 @@ func awsRestjson1_deserializeDocumentInventoryRetrievalJobDescription(v **types. if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "StartDate": @@ -5754,7 +5758,7 @@ func awsRestjson1_deserializeDocumentInventoryRetrievalJobDescription(v **types. if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.StartDate = &jtv + sv.StartDate = ptr.String(jtv) } default: @@ -5766,7 +5770,7 @@ func awsRestjson1_deserializeDocumentInventoryRetrievalJobDescription(v **types. return nil } -func awsRestjson1_deserializeDocumentJobList(v *[]*types.GlacierJobDescription, value interface{}) error { +func awsRestjson1_deserializeDocumentJobList(v *[]types.GlacierJobDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5779,18 +5783,20 @@ func awsRestjson1_deserializeDocumentJobList(v *[]*types.GlacierJobDescription, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GlacierJobDescription + var cv []types.GlacierJobDescription if *v == nil { - cv = []*types.GlacierJobDescription{} + cv = []types.GlacierJobDescription{} } else { cv = *v } for _, value := range shape { - var col *types.GlacierJobDescription - if err := awsRestjson1_deserializeDocumentGlacierJobDescription(&col, value); err != nil { + var col types.GlacierJobDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentGlacierJobDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5826,7 +5832,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -5835,7 +5841,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "type": @@ -5844,7 +5850,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -5884,7 +5890,7 @@ func awsRestjson1_deserializeDocumentMissingParameterValueException(v **types.Mi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -5893,7 +5899,7 @@ func awsRestjson1_deserializeDocumentMissingParameterValueException(v **types.Mi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "type": @@ -5902,7 +5908,7 @@ func awsRestjson1_deserializeDocumentMissingParameterValueException(v **types.Mi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -5914,7 +5920,7 @@ func awsRestjson1_deserializeDocumentMissingParameterValueException(v **types.Mi return nil } -func awsRestjson1_deserializeDocumentNotificationEventList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentNotificationEventList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5927,21 +5933,21 @@ func awsRestjson1_deserializeDocumentNotificationEventList(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -6022,7 +6028,7 @@ func awsRestjson1_deserializeDocumentOutputSerialization(v **types.OutputSeriali return nil } -func awsRestjson1_deserializeDocumentPartList(v *[]*types.PartListElement, value interface{}) error { +func awsRestjson1_deserializeDocumentPartList(v *[]types.PartListElement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6035,18 +6041,20 @@ func awsRestjson1_deserializeDocumentPartList(v *[]*types.PartListElement, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PartListElement + var cv []types.PartListElement if *v == nil { - cv = []*types.PartListElement{} + cv = []types.PartListElement{} } else { cv = *v } for _, value := range shape { - var col *types.PartListElement - if err := awsRestjson1_deserializeDocumentPartListElement(&col, value); err != nil { + var col types.PartListElement + destAddr := &col + if err := awsRestjson1_deserializeDocumentPartListElement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6082,7 +6090,7 @@ func awsRestjson1_deserializeDocumentPartListElement(v **types.PartListElement, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.RangeInBytes = &jtv + sv.RangeInBytes = ptr.String(jtv) } case "SHA256TreeHash": @@ -6091,7 +6099,7 @@ func awsRestjson1_deserializeDocumentPartListElement(v **types.PartListElement, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SHA256TreeHash = &jtv + sv.SHA256TreeHash = ptr.String(jtv) } default: @@ -6131,7 +6139,7 @@ func awsRestjson1_deserializeDocumentPolicyEnforcedException(v **types.PolicyEnf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -6140,7 +6148,7 @@ func awsRestjson1_deserializeDocumentPolicyEnforcedException(v **types.PolicyEnf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "type": @@ -6149,7 +6157,7 @@ func awsRestjson1_deserializeDocumentPolicyEnforcedException(v **types.PolicyEnf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -6189,7 +6197,7 @@ func awsRestjson1_deserializeDocumentProvisionedCapacityDescription(v **types.Pr if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CapacityId = &jtv + sv.CapacityId = ptr.String(jtv) } case "ExpirationDate": @@ -6198,7 +6206,7 @@ func awsRestjson1_deserializeDocumentProvisionedCapacityDescription(v **types.Pr if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ExpirationDate = &jtv + sv.ExpirationDate = ptr.String(jtv) } case "StartDate": @@ -6207,7 +6215,7 @@ func awsRestjson1_deserializeDocumentProvisionedCapacityDescription(v **types.Pr if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.StartDate = &jtv + sv.StartDate = ptr.String(jtv) } default: @@ -6219,7 +6227,7 @@ func awsRestjson1_deserializeDocumentProvisionedCapacityDescription(v **types.Pr return nil } -func awsRestjson1_deserializeDocumentProvisionedCapacityList(v *[]*types.ProvisionedCapacityDescription, value interface{}) error { +func awsRestjson1_deserializeDocumentProvisionedCapacityList(v *[]types.ProvisionedCapacityDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6232,18 +6240,20 @@ func awsRestjson1_deserializeDocumentProvisionedCapacityList(v *[]*types.Provisi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProvisionedCapacityDescription + var cv []types.ProvisionedCapacityDescription if *v == nil { - cv = []*types.ProvisionedCapacityDescription{} + cv = []types.ProvisionedCapacityDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ProvisionedCapacityDescription - if err := awsRestjson1_deserializeDocumentProvisionedCapacityDescription(&col, value); err != nil { + var col types.ProvisionedCapacityDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentProvisionedCapacityDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6279,7 +6289,7 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -6288,7 +6298,7 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "type": @@ -6297,7 +6307,7 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -6337,7 +6347,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -6346,7 +6356,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "type": @@ -6355,7 +6365,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -6400,7 +6410,7 @@ func awsRestjson1_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "CannedACL": @@ -6423,7 +6433,7 @@ func awsRestjson1_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } case "StorageClass": @@ -6482,7 +6492,7 @@ func awsRestjson1_deserializeDocumentSelectParameters(v **types.SelectParameters if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Expression = &jtv + sv.Expression = ptr.String(jtv) } case "ExpressionType": @@ -6541,7 +6551,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -6550,7 +6560,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "type": @@ -6559,7 +6569,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -6571,7 +6581,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6584,21 +6594,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -6635,7 +6645,7 @@ func awsRestjson1_deserializeDocumentUploadListElement(v **types.UploadListEleme if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ArchiveDescription = &jtv + sv.ArchiveDescription = ptr.String(jtv) } case "CreationDate": @@ -6644,7 +6654,7 @@ func awsRestjson1_deserializeDocumentUploadListElement(v **types.UploadListEleme if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "MultipartUploadId": @@ -6653,7 +6663,7 @@ func awsRestjson1_deserializeDocumentUploadListElement(v **types.UploadListEleme if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.MultipartUploadId = &jtv + sv.MultipartUploadId = ptr.String(jtv) } case "PartSizeInBytes": @@ -6666,7 +6676,7 @@ func awsRestjson1_deserializeDocumentUploadListElement(v **types.UploadListEleme if err != nil { return err } - sv.PartSizeInBytes = &i64 + sv.PartSizeInBytes = i64 } case "VaultARN": @@ -6675,7 +6685,7 @@ func awsRestjson1_deserializeDocumentUploadListElement(v **types.UploadListEleme if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VaultARN = &jtv + sv.VaultARN = ptr.String(jtv) } default: @@ -6687,7 +6697,7 @@ func awsRestjson1_deserializeDocumentUploadListElement(v **types.UploadListEleme return nil } -func awsRestjson1_deserializeDocumentUploadsList(v *[]*types.UploadListElement, value interface{}) error { +func awsRestjson1_deserializeDocumentUploadsList(v *[]types.UploadListElement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6700,18 +6710,20 @@ func awsRestjson1_deserializeDocumentUploadsList(v *[]*types.UploadListElement, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UploadListElement + var cv []types.UploadListElement if *v == nil { - cv = []*types.UploadListElement{} + cv = []types.UploadListElement{} } else { cv = *v } for _, value := range shape { - var col *types.UploadListElement - if err := awsRestjson1_deserializeDocumentUploadListElement(&col, value); err != nil { + var col types.UploadListElement + destAddr := &col + if err := awsRestjson1_deserializeDocumentUploadListElement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6747,7 +6759,7 @@ func awsRestjson1_deserializeDocumentVaultAccessPolicy(v **types.VaultAccessPoli if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -6759,7 +6771,7 @@ func awsRestjson1_deserializeDocumentVaultAccessPolicy(v **types.VaultAccessPoli return nil } -func awsRestjson1_deserializeDocumentVaultList(v *[]*types.DescribeVaultOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentVaultList(v *[]types.DescribeVaultOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6772,18 +6784,20 @@ func awsRestjson1_deserializeDocumentVaultList(v *[]*types.DescribeVaultOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DescribeVaultOutput + var cv []types.DescribeVaultOutput if *v == nil { - cv = []*types.DescribeVaultOutput{} + cv = []types.DescribeVaultOutput{} } else { cv = *v } for _, value := range shape { - var col *types.DescribeVaultOutput - if err := awsRestjson1_deserializeDocumentDescribeVaultOutput(&col, value); err != nil { + var col types.DescribeVaultOutput + destAddr := &col + if err := awsRestjson1_deserializeDocumentDescribeVaultOutput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6824,7 +6838,7 @@ func awsRestjson1_deserializeDocumentVaultNotificationConfig(v **types.VaultNoti if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SNSTopic = &jtv + sv.SNSTopic = ptr.String(jtv) } default: diff --git a/service/glacier/go.mod b/service/glacier/go.mod index 8db40df19dd..f43d4779b51 100644 --- a/service/glacier/go.mod +++ b/service/glacier/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/glacier go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/glacier/serializers.go b/service/glacier/serializers.go index 09e625ec02d..bdd2171a5fb 100644 --- a/service/glacier/serializers.go +++ b/service/glacier/serializers.go @@ -65,37 +65,28 @@ func awsRestjson1_serializeOpHttpBindingsAbortMultipartUploadInput(v *AbortMulti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.UploadId == nil { + if v.UploadId == nil || len(*v.UploadId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member uploadId must not be empty")} } if v.UploadId != nil { - if len(*v.UploadId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member uploadId must not be empty")} - } if err := encoder.SetURI("uploadId").String(*v.UploadId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -155,25 +146,19 @@ func awsRestjson1_serializeOpHttpBindingsAbortVaultLockInput(v *AbortVaultLockIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -244,25 +229,19 @@ func awsRestjson1_serializeOpHttpBindingsAddTagsToVaultInput(v *AddTagsToVaultIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -336,51 +315,38 @@ func awsRestjson1_serializeOpHttpBindingsCompleteMultipartUploadInput(v *Complet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.ArchiveSize != nil { + if v.ArchiveSize != nil && len(*v.ArchiveSize) > 0 { locationName := "X-Amz-Archive-Size" - if len(*v.ArchiveSize) > 0 { - encoder.SetHeader(locationName).String(*v.ArchiveSize) - } + encoder.SetHeader(locationName).String(*v.ArchiveSize) } - if v.Checksum != nil { + if v.Checksum != nil && len(*v.Checksum) > 0 { locationName := "X-Amz-Sha256-Tree-Hash" - if len(*v.Checksum) > 0 { - encoder.SetHeader(locationName).String(*v.Checksum) - } + encoder.SetHeader(locationName).String(*v.Checksum) } - if v.UploadId == nil { + if v.UploadId == nil || len(*v.UploadId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member uploadId must not be empty")} } if v.UploadId != nil { - if len(*v.UploadId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member uploadId must not be empty")} - } if err := encoder.SetURI("uploadId").String(*v.UploadId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -440,37 +406,28 @@ func awsRestjson1_serializeOpHttpBindingsCompleteVaultLockInput(v *CompleteVault return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.LockId == nil { + if v.LockId == nil || len(*v.LockId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member lockId must not be empty")} } if v.LockId != nil { - if len(*v.LockId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member lockId must not be empty")} - } if err := encoder.SetURI("lockId").String(*v.LockId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -530,25 +487,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateVaultInput(v *CreateVaultInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -608,37 +559,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteArchiveInput(v *DeleteArchiveInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.ArchiveId == nil { + if v.ArchiveId == nil || len(*v.ArchiveId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member archiveId must not be empty")} } if v.ArchiveId != nil { - if len(*v.ArchiveId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member archiveId must not be empty")} - } if err := encoder.SetURI("archiveId").String(*v.ArchiveId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -698,25 +640,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVaultInput(v *DeleteVaultInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -776,25 +712,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVaultAccessPolicyInput(v *DeleteV return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -854,25 +784,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVaultNotificationsInput(v *Delete return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -932,37 +856,28 @@ func awsRestjson1_serializeOpHttpBindingsDescribeJobInput(v *DescribeJobInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -1022,25 +937,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeVaultInput(v *DescribeVaultInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -1100,13 +1009,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDataRetrievalPolicyInput(v *GetDataR return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } @@ -1166,44 +1072,33 @@ func awsRestjson1_serializeOpHttpBindingsGetJobOutputInput(v *GetJobOutputInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } } - if v.Range != nil { + if v.Range != nil && len(*v.Range) > 0 { locationName := "Range" - if len(*v.Range) > 0 { - encoder.SetHeader(locationName).String(*v.Range) - } + encoder.SetHeader(locationName).String(*v.Range) } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -1263,25 +1158,19 @@ func awsRestjson1_serializeOpHttpBindingsGetVaultAccessPolicyInput(v *GetVaultAc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -1341,25 +1230,19 @@ func awsRestjson1_serializeOpHttpBindingsGetVaultLockInput(v *GetVaultLockInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -1419,25 +1302,19 @@ func awsRestjson1_serializeOpHttpBindingsGetVaultNotificationsInput(v *GetVaultN return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -1512,25 +1389,19 @@ func awsRestjson1_serializeOpHttpBindingsInitiateJobInput(v *InitiateJobInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -1590,39 +1461,29 @@ func awsRestjson1_serializeOpHttpBindingsInitiateMultipartUploadInput(v *Initiat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.ArchiveDescription != nil { + if v.ArchiveDescription != nil && len(*v.ArchiveDescription) > 0 { locationName := "X-Amz-Archive-Description" - if len(*v.ArchiveDescription) > 0 { - encoder.SetHeader(locationName).String(*v.ArchiveDescription) - } + encoder.SetHeader(locationName).String(*v.ArchiveDescription) } - if v.PartSize != nil { + if v.PartSize != nil && len(*v.PartSize) > 0 { locationName := "X-Amz-Part-Size" - if len(*v.PartSize) > 0 { - encoder.SetHeader(locationName).String(*v.PartSize) - } + encoder.SetHeader(locationName).String(*v.PartSize) } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -1697,25 +1558,19 @@ func awsRestjson1_serializeOpHttpBindingsInitiateVaultLockInput(v *InitiateVault return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -1775,13 +1630,10 @@ func awsRestjson1_serializeOpHttpBindingsListJobsInput(v *ListJobsInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } @@ -1803,13 +1655,10 @@ func awsRestjson1_serializeOpHttpBindingsListJobsInput(v *ListJobsInput, encoder encoder.SetQuery("statuscode").String(*v.Statuscode) } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -1869,13 +1718,10 @@ func awsRestjson1_serializeOpHttpBindingsListMultipartUploadsInput(v *ListMultip return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } @@ -1889,13 +1735,10 @@ func awsRestjson1_serializeOpHttpBindingsListMultipartUploadsInput(v *ListMultip encoder.SetQuery("marker").String(*v.Marker) } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -1955,13 +1798,10 @@ func awsRestjson1_serializeOpHttpBindingsListPartsInput(v *ListPartsInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } @@ -1975,25 +1815,19 @@ func awsRestjson1_serializeOpHttpBindingsListPartsInput(v *ListPartsInput, encod encoder.SetQuery("marker").String(*v.Marker) } - if v.UploadId == nil { + if v.UploadId == nil || len(*v.UploadId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member uploadId must not be empty")} } if v.UploadId != nil { - if len(*v.UploadId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member uploadId must not be empty")} - } if err := encoder.SetURI("uploadId").String(*v.UploadId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -2053,13 +1887,10 @@ func awsRestjson1_serializeOpHttpBindingsListProvisionedCapacityInput(v *ListPro return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } @@ -2119,25 +1950,19 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForVaultInput(v *ListTagsForVau return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -2197,13 +2022,10 @@ func awsRestjson1_serializeOpHttpBindingsListVaultsInput(v *ListVaultsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } @@ -2271,13 +2093,10 @@ func awsRestjson1_serializeOpHttpBindingsPurchaseProvisionedCapacityInput(v *Pur return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } @@ -2348,25 +2167,19 @@ func awsRestjson1_serializeOpHttpBindingsRemoveTagsFromVaultInput(v *RemoveTagsF return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -2451,13 +2264,10 @@ func awsRestjson1_serializeOpHttpBindingsSetDataRetrievalPolicyInput(v *SetDataR return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } @@ -2546,25 +2356,19 @@ func awsRestjson1_serializeOpHttpBindingsSetVaultAccessPolicyInput(v *SetVaultAc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -2639,25 +2443,19 @@ func awsRestjson1_serializeOpHttpBindingsSetVaultNotificationsInput(v *SetVaultN return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -2728,39 +2526,29 @@ func awsRestjson1_serializeOpHttpBindingsUploadArchiveInput(v *UploadArchiveInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.ArchiveDescription != nil { + if v.ArchiveDescription != nil && len(*v.ArchiveDescription) > 0 { locationName := "X-Amz-Archive-Description" - if len(*v.ArchiveDescription) > 0 { - encoder.SetHeader(locationName).String(*v.ArchiveDescription) - } + encoder.SetHeader(locationName).String(*v.ArchiveDescription) } - if v.Checksum != nil { + if v.Checksum != nil && len(*v.Checksum) > 0 { locationName := "X-Amz-Sha256-Tree-Hash" - if len(*v.Checksum) > 0 { - encoder.SetHeader(locationName).String(*v.Checksum) - } + encoder.SetHeader(locationName).String(*v.Checksum) } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -2831,51 +2619,38 @@ func awsRestjson1_serializeOpHttpBindingsUploadMultipartPartInput(v *UploadMulti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId == nil { + if v.AccountId == nil || len(*v.AccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} } if v.AccountId != nil { - if len(*v.AccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accountId must not be empty")} - } if err := encoder.SetURI("accountId").String(*v.AccountId); err != nil { return err } } - if v.Checksum != nil { + if v.Checksum != nil && len(*v.Checksum) > 0 { locationName := "X-Amz-Sha256-Tree-Hash" - if len(*v.Checksum) > 0 { - encoder.SetHeader(locationName).String(*v.Checksum) - } + encoder.SetHeader(locationName).String(*v.Checksum) } - if v.Range != nil { + if v.Range != nil && len(*v.Range) > 0 { locationName := "Content-Range" - if len(*v.Range) > 0 { - encoder.SetHeader(locationName).String(*v.Range) - } + encoder.SetHeader(locationName).String(*v.Range) } - if v.UploadId == nil { + if v.UploadId == nil || len(*v.UploadId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member uploadId must not be empty")} } if v.UploadId != nil { - if len(*v.UploadId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member uploadId must not be empty")} - } if err := encoder.SetURI("uploadId").String(*v.UploadId); err != nil { return err } } - if v.VaultName == nil { + if v.VaultName == nil || len(*v.VaultName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} } if v.VaultName != nil { - if len(*v.VaultName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member vaultName must not be empty")} - } if err := encoder.SetURI("vaultName").String(*v.VaultName); err != nil { return err } @@ -2884,17 +2659,13 @@ func awsRestjson1_serializeOpHttpBindingsUploadMultipartPartInput(v *UploadMulti return nil } -func awsRestjson1_serializeDocumentAccessControlPolicyList(v []*types.Grant, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAccessControlPolicyList(v []types.Grant, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentGrant(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentGrant(&v[i], av); err != nil { return err } } @@ -3001,17 +2772,13 @@ func awsRestjson1_serializeDocumentDataRetrievalRule(v *types.DataRetrievalRule, return nil } -func awsRestjson1_serializeDocumentDataRetrievalRulesList(v []*types.DataRetrievalRule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataRetrievalRulesList(v []types.DataRetrievalRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDataRetrievalRule(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDataRetrievalRule(&v[i], av); err != nil { return err } } @@ -3091,17 +2858,13 @@ func awsRestjson1_serializeDocumentGrantee(v *types.Grantee, value smithyjson.Va return nil } -func awsRestjson1_serializeDocumentHashmap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHashmap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3210,17 +2973,13 @@ func awsRestjson1_serializeDocumentJobParameters(v *types.JobParameters, value s return nil } -func awsRestjson1_serializeDocumentNotificationEventList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNotificationEventList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3339,32 +3098,24 @@ func awsRestjson1_serializeDocumentSelectParameters(v *types.SelectParameters, v return nil } -func awsRestjson1_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/glacier/types/types.go b/service/glacier/types/types.go index 58ca1a84a12..2bb36ef709e 100644 --- a/service/glacier/types/types.go +++ b/service/glacier/types/types.go @@ -55,7 +55,7 @@ type DataRetrievalPolicy struct { // The policy rule. Although this is a list type, currently there must be only one // rule, which contains a Strategy field and optionally a BytesPerHour field. - Rules []*DataRetrievalRule + Rules []DataRetrievalRule } // Data retrieval policy rule. @@ -88,12 +88,12 @@ type DescribeVaultOutput struct { // The number of archives in the vault as of the last inventory date. This field // will return null if an inventory has not yet run on the vault, for example if // you just created the vault. - NumberOfArchives *int64 + NumberOfArchives int64 // Total size, in bytes, of the archives in the vault as of the last inventory // date. This field will return null if an inventory has not yet run on the vault, // for example if you just created the vault. - SizeInBytes *int64 + SizeInBytes int64 // The Amazon Resource Name (ARN) of the vault. VaultARN *string @@ -142,7 +142,7 @@ type GlacierJobDescription struct { // The job status. When a job is completed, you get the job's output using Get Job // Output (GET output). - Completed *bool + Completed bool // The UTC time that the job request completed. While the job is in progress, the // value is null. @@ -412,7 +412,7 @@ type ProvisionedCapacityDescription struct { type S3Location struct { // A list of grants that control access to the staged results. - AccessControlList []*Grant + AccessControlList []Grant // The name of the Amazon S3 bucket where the job results are stored. BucketName *string @@ -431,10 +431,10 @@ type S3Location struct { StorageClass StorageClass // The tag-set that is applied to the job results. - Tagging map[string]*string + Tagging map[string]string // A map of metadata to store with the job results in Amazon S3. - UserMetadata map[string]*string + UserMetadata map[string]string } // Contains information about the parameters used for a select. @@ -469,7 +469,7 @@ type UploadListElement struct { // The part size, in bytes, specified in the Initiate Multipart Upload request. // This is the size of all the parts in the upload except the last part, which may // be smaller than this size. - PartSizeInBytes *int64 + PartSizeInBytes int64 // The Amazon Resource Name (ARN) of the vault that contains the archive. VaultARN *string @@ -494,7 +494,7 @@ type VaultNotificationConfig struct { // A list of one or more events for which Amazon S3 Glacier will send a // notification to the specified Amazon SNS topic. - Events []*string + Events []string // The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name // (ARN). diff --git a/service/glacier/validators.go b/service/glacier/validators.go index fff7758ebb2..9f68a7d18a0 100644 --- a/service/glacier/validators.go +++ b/service/glacier/validators.go @@ -802,13 +802,13 @@ func addOpUploadMultipartPartValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpUploadMultipartPart{}, middleware.After) } -func validateAccessControlPolicyList(v []*types.Grant) error { +func validateAccessControlPolicyList(v []types.Grant) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AccessControlPolicyList"} for i := range v { - if err := validateGrant(v[i]); err != nil { + if err := validateGrant(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/globalaccelerator/api_op_CreateAccelerator.go b/service/globalaccelerator/api_op_CreateAccelerator.go index 9716516ca83..cb5699bcee3 100644 --- a/service/globalaccelerator/api_op_CreateAccelerator.go +++ b/service/globalaccelerator/api_op_CreateAccelerator.go @@ -69,13 +69,13 @@ type CreateAcceleratorInput struct { // addresses. For more information, see Bring Your Own IP Addresses (BYOIP) // (https://docs.aws.amazon.com/global-accelerator/latest/dg/using-byoip.html) in // the AWS Global Accelerator Developer Guide. - IpAddresses []*string + IpAddresses []string // Create tags for an accelerator. For more information, see Tagging in AWS Global // Accelerator // (https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) // in the AWS Global Accelerator Developer Guide. - Tags []*types.Tag + Tags []types.Tag } type CreateAcceleratorOutput struct { diff --git a/service/globalaccelerator/api_op_CreateEndpointGroup.go b/service/globalaccelerator/api_op_CreateEndpointGroup.go index 4e0c97c14d3..1324b8c4b96 100644 --- a/service/globalaccelerator/api_op_CreateEndpointGroup.go +++ b/service/globalaccelerator/api_op_CreateEndpointGroup.go @@ -51,7 +51,7 @@ type CreateEndpointGroupInput struct { ListenerArn *string // The list of endpoint objects. - EndpointConfigurations []*types.EndpointConfiguration + EndpointConfigurations []types.EndpointConfiguration // The time—10 seconds or 30 seconds—between each health check for an endpoint. The // default value is 30. @@ -78,7 +78,7 @@ type CreateEndpointGroupInput struct { // endpoints. For more information, see Port overrides // (https://docs.aws.amazon.com/global-accelerator/latest/dg/about-endpoint-groups-port-override.html) // in the AWS Global Accelerator Developer Guide. - PortOverrides []*types.PortOverride + PortOverrides []types.PortOverride // The number of consecutive health checks required to set the state of a healthy // endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default diff --git a/service/globalaccelerator/api_op_CreateListener.go b/service/globalaccelerator/api_op_CreateListener.go index d94814e7856..4cf3a8aa9bb 100644 --- a/service/globalaccelerator/api_op_CreateListener.go +++ b/service/globalaccelerator/api_op_CreateListener.go @@ -48,7 +48,7 @@ type CreateListenerInput struct { // accelerator. // // This member is required. - PortRanges []*types.PortRange + PortRanges []types.PortRange // The protocol for connections from clients to your accelerator. // diff --git a/service/globalaccelerator/api_op_ListAccelerators.go b/service/globalaccelerator/api_op_ListAccelerators.go index 7f3846556d0..f31a1ebdef3 100644 --- a/service/globalaccelerator/api_op_ListAccelerators.go +++ b/service/globalaccelerator/api_op_ListAccelerators.go @@ -42,7 +42,7 @@ type ListAcceleratorsInput struct { type ListAcceleratorsOutput struct { // The list of accelerators for a customer account. - Accelerators []*types.Accelerator + Accelerators []types.Accelerator // The token for the next set of results. You receive this token from a previous // call. diff --git a/service/globalaccelerator/api_op_ListByoipCidrs.go b/service/globalaccelerator/api_op_ListByoipCidrs.go index ff1f11cc898..c1f717d2e04 100644 --- a/service/globalaccelerator/api_op_ListByoipCidrs.go +++ b/service/globalaccelerator/api_op_ListByoipCidrs.go @@ -43,7 +43,7 @@ type ListByoipCidrsInput struct { type ListByoipCidrsOutput struct { // Information about your address ranges. - ByoipCidrs []*types.ByoipCidr + ByoipCidrs []types.ByoipCidr // The token for the next page of results. NextToken *string diff --git a/service/globalaccelerator/api_op_ListEndpointGroups.go b/service/globalaccelerator/api_op_ListEndpointGroups.go index 37d9f4a3a1a..f819ced2575 100644 --- a/service/globalaccelerator/api_op_ListEndpointGroups.go +++ b/service/globalaccelerator/api_op_ListEndpointGroups.go @@ -47,7 +47,7 @@ type ListEndpointGroupsInput struct { type ListEndpointGroupsOutput struct { // The list of the endpoint groups associated with a listener. - EndpointGroups []*types.EndpointGroup + EndpointGroups []types.EndpointGroup // The token for the next set of results. You receive this token from a previous // call. diff --git a/service/globalaccelerator/api_op_ListListeners.go b/service/globalaccelerator/api_op_ListListeners.go index 1a96916531c..594c87bdbc9 100644 --- a/service/globalaccelerator/api_op_ListListeners.go +++ b/service/globalaccelerator/api_op_ListListeners.go @@ -48,7 +48,7 @@ type ListListenersInput struct { type ListListenersOutput struct { // The list of listeners for an accelerator. - Listeners []*types.Listener + Listeners []types.Listener // The token for the next set of results. You receive this token from a previous // call. diff --git a/service/globalaccelerator/api_op_ListTagsForResource.go b/service/globalaccelerator/api_op_ListTagsForResource.go index 9280b2d0705..1eb84fd9b88 100644 --- a/service/globalaccelerator/api_op_ListTagsForResource.go +++ b/service/globalaccelerator/api_op_ListTagsForResource.go @@ -43,7 +43,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // Root level tag for the Tags parameters. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/globalaccelerator/api_op_TagResource.go b/service/globalaccelerator/api_op_TagResource.go index a8973374e53..c5bb051f15d 100644 --- a/service/globalaccelerator/api_op_TagResource.go +++ b/service/globalaccelerator/api_op_TagResource.go @@ -43,7 +43,7 @@ type TagResourceInput struct { // define. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/globalaccelerator/api_op_UntagResource.go b/service/globalaccelerator/api_op_UntagResource.go index 114ed3fa3a3..8634931390f 100644 --- a/service/globalaccelerator/api_op_UntagResource.go +++ b/service/globalaccelerator/api_op_UntagResource.go @@ -43,7 +43,7 @@ type UntagResourceInput struct { // The tag key pairs that you want to remove from the specified resources. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/globalaccelerator/api_op_UpdateEndpointGroup.go b/service/globalaccelerator/api_op_UpdateEndpointGroup.go index 1bdde728e99..e177d820cb0 100644 --- a/service/globalaccelerator/api_op_UpdateEndpointGroup.go +++ b/service/globalaccelerator/api_op_UpdateEndpointGroup.go @@ -38,7 +38,7 @@ type UpdateEndpointGroupInput struct { // The list of endpoint objects. A resource must be valid and active when you add // it as an endpoint. - EndpointConfigurations []*types.EndpointConfiguration + EndpointConfigurations []types.EndpointConfiguration // The time—10 seconds or 30 seconds—between each health check for an endpoint. The // default value is 30. @@ -65,7 +65,7 @@ type UpdateEndpointGroupInput struct { // endpoints. For more information, see Port overrides // (https://docs.aws.amazon.com/global-accelerator/latest/dg/about-endpoint-groups-port-override.html) // in the AWS Global Accelerator Developer Guide. - PortOverrides []*types.PortOverride + PortOverrides []types.PortOverride // The number of consecutive health checks required to set the state of a healthy // endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default diff --git a/service/globalaccelerator/api_op_UpdateListener.go b/service/globalaccelerator/api_op_UpdateListener.go index 62d364315d8..fcaae389289 100644 --- a/service/globalaccelerator/api_op_UpdateListener.go +++ b/service/globalaccelerator/api_op_UpdateListener.go @@ -54,7 +54,7 @@ type UpdateListenerInput struct { // The updated list of port ranges for the connections from clients to the // accelerator. - PortRanges []*types.PortRange + PortRanges []types.PortRange // The updated protocol for the connections from clients to the accelerator. Protocol types.Protocol diff --git a/service/globalaccelerator/deserializers.go b/service/globalaccelerator/deserializers.go index 0a413bdab67..5da7cbfd787 100644 --- a/service/globalaccelerator/deserializers.go +++ b/service/globalaccelerator/deserializers.go @@ -3572,7 +3572,7 @@ func awsAwsjson11_deserializeDocumentAccelerator(v **types.Accelerator, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AcceleratorArn = &jtv + sv.AcceleratorArn = ptr.String(jtv) } case "CreatedTime": @@ -3594,7 +3594,7 @@ func awsAwsjson11_deserializeDocumentAccelerator(v **types.Accelerator, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.DnsName = &jtv + sv.DnsName = ptr.String(jtv) } case "Enabled": @@ -3603,7 +3603,7 @@ func awsAwsjson11_deserializeDocumentAccelerator(v **types.Accelerator, value in if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } case "IpAddressType": @@ -3639,7 +3639,7 @@ func awsAwsjson11_deserializeDocumentAccelerator(v **types.Accelerator, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -3688,7 +3688,7 @@ func awsAwsjson11_deserializeDocumentAcceleratorAttributes(v **types.Accelerator if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.FlowLogsEnabled = &jtv + sv.FlowLogsEnabled = ptr.Bool(jtv) } case "FlowLogsS3Bucket": @@ -3697,7 +3697,7 @@ func awsAwsjson11_deserializeDocumentAcceleratorAttributes(v **types.Accelerator if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FlowLogsS3Bucket = &jtv + sv.FlowLogsS3Bucket = ptr.String(jtv) } case "FlowLogsS3Prefix": @@ -3706,7 +3706,7 @@ func awsAwsjson11_deserializeDocumentAcceleratorAttributes(v **types.Accelerator if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FlowLogsS3Prefix = &jtv + sv.FlowLogsS3Prefix = ptr.String(jtv) } default: @@ -3746,7 +3746,7 @@ func awsAwsjson11_deserializeDocumentAcceleratorNotDisabledException(v **types.A if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3786,7 +3786,7 @@ func awsAwsjson11_deserializeDocumentAcceleratorNotFoundException(v **types.Acce if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3798,7 +3798,7 @@ func awsAwsjson11_deserializeDocumentAcceleratorNotFoundException(v **types.Acce return nil } -func awsAwsjson11_deserializeDocumentAccelerators(v *[]*types.Accelerator, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccelerators(v *[]types.Accelerator, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3811,18 +3811,20 @@ func awsAwsjson11_deserializeDocumentAccelerators(v *[]*types.Accelerator, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Accelerator + var cv []types.Accelerator if *v == nil { - cv = []*types.Accelerator{} + cv = []types.Accelerator{} } else { cv = *v } for _, value := range shape { - var col *types.Accelerator - if err := awsAwsjson11_deserializeDocumentAccelerator(&col, value); err != nil { + var col types.Accelerator + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAccelerator(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3858,7 +3860,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3898,7 +3900,7 @@ func awsAwsjson11_deserializeDocumentAssociatedEndpointGroupFoundException(v **t if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3938,7 +3940,7 @@ func awsAwsjson11_deserializeDocumentAssociatedListenerFoundException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3978,7 +3980,7 @@ func awsAwsjson11_deserializeDocumentByoipCidr(v **types.ByoipCidr, value interf if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Cidr = &jtv + sv.Cidr = ptr.String(jtv) } case "Events": @@ -4032,7 +4034,7 @@ func awsAwsjson11_deserializeDocumentByoipCidrEvent(v **types.ByoipCidrEvent, va if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Timestamp": @@ -4057,7 +4059,7 @@ func awsAwsjson11_deserializeDocumentByoipCidrEvent(v **types.ByoipCidrEvent, va return nil } -func awsAwsjson11_deserializeDocumentByoipCidrEvents(v *[]*types.ByoipCidrEvent, value interface{}) error { +func awsAwsjson11_deserializeDocumentByoipCidrEvents(v *[]types.ByoipCidrEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4070,18 +4072,20 @@ func awsAwsjson11_deserializeDocumentByoipCidrEvents(v *[]*types.ByoipCidrEvent, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ByoipCidrEvent + var cv []types.ByoipCidrEvent if *v == nil { - cv = []*types.ByoipCidrEvent{} + cv = []types.ByoipCidrEvent{} } else { cv = *v } for _, value := range shape { - var col *types.ByoipCidrEvent - if err := awsAwsjson11_deserializeDocumentByoipCidrEvent(&col, value); err != nil { + var col types.ByoipCidrEvent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentByoipCidrEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4117,7 +4121,7 @@ func awsAwsjson11_deserializeDocumentByoipCidrNotFoundException(v **types.ByoipC if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4129,7 +4133,7 @@ func awsAwsjson11_deserializeDocumentByoipCidrNotFoundException(v **types.ByoipC return nil } -func awsAwsjson11_deserializeDocumentByoipCidrs(v *[]*types.ByoipCidr, value interface{}) error { +func awsAwsjson11_deserializeDocumentByoipCidrs(v *[]types.ByoipCidr, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4142,18 +4146,20 @@ func awsAwsjson11_deserializeDocumentByoipCidrs(v *[]*types.ByoipCidr, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ByoipCidr + var cv []types.ByoipCidr if *v == nil { - cv = []*types.ByoipCidr{} + cv = []types.ByoipCidr{} } else { cv = *v } for _, value := range shape { - var col *types.ByoipCidr - if err := awsAwsjson11_deserializeDocumentByoipCidr(&col, value); err != nil { + var col types.ByoipCidr + destAddr := &col + if err := awsAwsjson11_deserializeDocumentByoipCidr(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4189,7 +4195,7 @@ func awsAwsjson11_deserializeDocumentEndpointDescription(v **types.EndpointDescr if !ok { return fmt.Errorf("expected GenericBoolean to be of type *bool, got %T instead", value) } - sv.ClientIPPreservationEnabled = &jtv + sv.ClientIPPreservationEnabled = ptr.Bool(jtv) } case "EndpointId": @@ -4198,7 +4204,7 @@ func awsAwsjson11_deserializeDocumentEndpointDescription(v **types.EndpointDescr if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EndpointId = &jtv + sv.EndpointId = ptr.String(jtv) } case "HealthReason": @@ -4207,7 +4213,7 @@ func awsAwsjson11_deserializeDocumentEndpointDescription(v **types.EndpointDescr if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.HealthReason = &jtv + sv.HealthReason = ptr.String(jtv) } case "HealthState": @@ -4241,7 +4247,7 @@ func awsAwsjson11_deserializeDocumentEndpointDescription(v **types.EndpointDescr return nil } -func awsAwsjson11_deserializeDocumentEndpointDescriptions(v *[]*types.EndpointDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentEndpointDescriptions(v *[]types.EndpointDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4254,18 +4260,20 @@ func awsAwsjson11_deserializeDocumentEndpointDescriptions(v *[]*types.EndpointDe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EndpointDescription + var cv []types.EndpointDescription if *v == nil { - cv = []*types.EndpointDescription{} + cv = []types.EndpointDescription{} } else { cv = *v } for _, value := range shape { - var col *types.EndpointDescription - if err := awsAwsjson11_deserializeDocumentEndpointDescription(&col, value); err != nil { + var col types.EndpointDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEndpointDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4306,7 +4314,7 @@ func awsAwsjson11_deserializeDocumentEndpointGroup(v **types.EndpointGroup, valu if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EndpointGroupArn = &jtv + sv.EndpointGroupArn = ptr.String(jtv) } case "EndpointGroupRegion": @@ -4315,7 +4323,7 @@ func awsAwsjson11_deserializeDocumentEndpointGroup(v **types.EndpointGroup, valu if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EndpointGroupRegion = &jtv + sv.EndpointGroupRegion = ptr.String(jtv) } case "HealthCheckIntervalSeconds": @@ -4337,7 +4345,7 @@ func awsAwsjson11_deserializeDocumentEndpointGroup(v **types.EndpointGroup, valu if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.HealthCheckPath = &jtv + sv.HealthCheckPath = ptr.String(jtv) } case "HealthCheckPort": @@ -4430,7 +4438,7 @@ func awsAwsjson11_deserializeDocumentEndpointGroupAlreadyExistsException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4470,7 +4478,7 @@ func awsAwsjson11_deserializeDocumentEndpointGroupNotFoundException(v **types.En if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4482,7 +4490,7 @@ func awsAwsjson11_deserializeDocumentEndpointGroupNotFoundException(v **types.En return nil } -func awsAwsjson11_deserializeDocumentEndpointGroups(v *[]*types.EndpointGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentEndpointGroups(v *[]types.EndpointGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4495,18 +4503,20 @@ func awsAwsjson11_deserializeDocumentEndpointGroups(v *[]*types.EndpointGroup, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EndpointGroup + var cv []types.EndpointGroup if *v == nil { - cv = []*types.EndpointGroup{} + cv = []types.EndpointGroup{} } else { cv = *v } for _, value := range shape { - var col *types.EndpointGroup - if err := awsAwsjson11_deserializeDocumentEndpointGroup(&col, value); err != nil { + var col types.EndpointGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEndpointGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4542,7 +4552,7 @@ func awsAwsjson11_deserializeDocumentIncorrectCidrStateException(v **types.Incor if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4582,7 +4592,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceErrorException(v **types.Int if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4622,7 +4632,7 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4662,7 +4672,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4702,7 +4712,7 @@ func awsAwsjson11_deserializeDocumentInvalidPortRangeException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4714,7 +4724,7 @@ func awsAwsjson11_deserializeDocumentInvalidPortRangeException(v **types.Invalid return nil } -func awsAwsjson11_deserializeDocumentIpAddresses(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIpAddresses(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4727,21 +4737,21 @@ func awsAwsjson11_deserializeDocumentIpAddresses(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4783,7 +4793,7 @@ func awsAwsjson11_deserializeDocumentIpSet(v **types.IpSet, value interface{}) e if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.IpFamily = &jtv + sv.IpFamily = ptr.String(jtv) } default: @@ -4795,7 +4805,7 @@ func awsAwsjson11_deserializeDocumentIpSet(v **types.IpSet, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentIpSets(v *[]*types.IpSet, value interface{}) error { +func awsAwsjson11_deserializeDocumentIpSets(v *[]types.IpSet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4808,18 +4818,20 @@ func awsAwsjson11_deserializeDocumentIpSets(v *[]*types.IpSet, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IpSet + var cv []types.IpSet if *v == nil { - cv = []*types.IpSet{} + cv = []types.IpSet{} } else { cv = *v } for _, value := range shape { - var col *types.IpSet - if err := awsAwsjson11_deserializeDocumentIpSet(&col, value); err != nil { + var col types.IpSet + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIpSet(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4855,7 +4867,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4904,7 +4916,7 @@ func awsAwsjson11_deserializeDocumentListener(v **types.Listener, value interfac if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.ListenerArn = &jtv + sv.ListenerArn = ptr.String(jtv) } case "PortRanges": @@ -4958,7 +4970,7 @@ func awsAwsjson11_deserializeDocumentListenerNotFoundException(v **types.Listene if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4970,7 +4982,7 @@ func awsAwsjson11_deserializeDocumentListenerNotFoundException(v **types.Listene return nil } -func awsAwsjson11_deserializeDocumentListeners(v *[]*types.Listener, value interface{}) error { +func awsAwsjson11_deserializeDocumentListeners(v *[]types.Listener, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4983,18 +4995,20 @@ func awsAwsjson11_deserializeDocumentListeners(v *[]*types.Listener, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Listener + var cv []types.Listener if *v == nil { - cv = []*types.Listener{} + cv = []types.Listener{} } else { cv = *v } for _, value := range shape { - var col *types.Listener - if err := awsAwsjson11_deserializeDocumentListener(&col, value); err != nil { + var col types.Listener + destAddr := &col + if err := awsAwsjson11_deserializeDocumentListener(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5059,7 +5073,7 @@ func awsAwsjson11_deserializeDocumentPortOverride(v **types.PortOverride, value return nil } -func awsAwsjson11_deserializeDocumentPortOverrides(v *[]*types.PortOverride, value interface{}) error { +func awsAwsjson11_deserializeDocumentPortOverrides(v *[]types.PortOverride, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5072,18 +5086,20 @@ func awsAwsjson11_deserializeDocumentPortOverrides(v *[]*types.PortOverride, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PortOverride + var cv []types.PortOverride if *v == nil { - cv = []*types.PortOverride{} + cv = []types.PortOverride{} } else { cv = *v } for _, value := range shape { - var col *types.PortOverride - if err := awsAwsjson11_deserializeDocumentPortOverride(&col, value); err != nil { + var col types.PortOverride + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPortOverride(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5148,7 +5164,7 @@ func awsAwsjson11_deserializeDocumentPortRange(v **types.PortRange, value interf return nil } -func awsAwsjson11_deserializeDocumentPortRanges(v *[]*types.PortRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentPortRanges(v *[]types.PortRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5161,18 +5177,20 @@ func awsAwsjson11_deserializeDocumentPortRanges(v *[]*types.PortRange, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PortRange + var cv []types.PortRange if *v == nil { - cv = []*types.PortRange{} + cv = []types.PortRange{} } else { cv = *v } for _, value := range shape { - var col *types.PortRange - if err := awsAwsjson11_deserializeDocumentPortRange(&col, value); err != nil { + var col types.PortRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPortRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5208,7 +5226,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -5217,7 +5235,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5229,7 +5247,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5242,18 +5260,20 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5711,7 +5731,7 @@ func awsAwsjson11_deserializeOpDocumentListAcceleratorsOutput(v **ListAccelerato if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5756,7 +5776,7 @@ func awsAwsjson11_deserializeOpDocumentListByoipCidrsOutput(v **ListByoipCidrsOu if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5801,7 +5821,7 @@ func awsAwsjson11_deserializeOpDocumentListEndpointGroupsOutput(v **ListEndpoint if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5846,7 +5866,7 @@ func awsAwsjson11_deserializeOpDocumentListListenersOutput(v **ListListenersOutp if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: diff --git a/service/globalaccelerator/go.mod b/service/globalaccelerator/go.mod index 7aac3e2ccd9..ccdd8462e11 100644 --- a/service/globalaccelerator/go.mod +++ b/service/globalaccelerator/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/globalaccelerator go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/globalaccelerator/serializers.go b/service/globalaccelerator/serializers.go index 348d7c6c43c..c44b1deb95b 100644 --- a/service/globalaccelerator/serializers.go +++ b/service/globalaccelerator/serializers.go @@ -1202,34 +1202,26 @@ func awsAwsjson11_serializeDocumentEndpointConfiguration(v *types.EndpointConfig return nil } -func awsAwsjson11_serializeDocumentEndpointConfigurations(v []*types.EndpointConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEndpointConfigurations(v []types.EndpointConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEndpointConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEndpointConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentIpAddresses(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIpAddresses(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1251,17 +1243,13 @@ func awsAwsjson11_serializeDocumentPortOverride(v *types.PortOverride, value smi return nil } -func awsAwsjson11_serializeDocumentPortOverrides(v []*types.PortOverride, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPortOverrides(v []types.PortOverride, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPortOverride(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPortOverride(&v[i], av); err != nil { return err } } @@ -1285,17 +1273,13 @@ func awsAwsjson11_serializeDocumentPortRange(v *types.PortRange, value smithyjso return nil } -func awsAwsjson11_serializeDocumentPortRanges(v []*types.PortRange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPortRanges(v []types.PortRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPortRange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPortRange(&v[i], av); err != nil { return err } } @@ -1319,32 +1303,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/globalaccelerator/types/types.go b/service/globalaccelerator/types/types.go index 3136863ac50..654836d0e20 100644 --- a/service/globalaccelerator/types/types.go +++ b/service/globalaccelerator/types/types.go @@ -36,7 +36,7 @@ type Accelerator struct { IpAddressType IpAddressType // The static IP addresses that Global Accelerator associates with the accelerator. - IpSets []*IpSet + IpSets []IpSet // The date and time that the accelerator was last modified. LastModifiedTime *time.Time @@ -129,7 +129,7 @@ type ByoipCidr struct { // A history of status changes for an IP address range that you bring to AWS Global // Accelerator through bring your own IP address (BYOIP). - Events []*ByoipCidrEvent + Events []ByoipCidrEvent // The state of the address pool. State ByoipCidrState @@ -265,7 +265,7 @@ type EndpointDescription struct { type EndpointGroup struct { // The list of endpoint objects. - EndpointDescriptions []*EndpointDescription + EndpointDescriptions []EndpointDescription // The Amazon Resource Name (ARN) of the endpoint group. EndpointGroupArn *string @@ -296,7 +296,7 @@ type EndpointGroup struct { // endpoint. Using a port override lets you to map a list of external destination // ports (that your users send traffic to) to a list of internal destination ports // that you want an application endpoint to receive traffic on. - PortOverrides []*PortOverride + PortOverrides []PortOverride // The number of consecutive health checks required to set the state of a healthy // endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default @@ -316,7 +316,7 @@ type IpSet struct { // The array of IP addresses in the IP address set. An IP address set can have a // maximum of two IP addresses. - IpAddresses []*string + IpAddresses []string // The types of IP addresses included in this IP set. IpFamily *string @@ -346,7 +346,7 @@ type Listener struct { ListenerArn *string // The list of port ranges for the connections from clients to the accelerator. - PortRanges []*PortRange + PortRanges []PortRange // The protocol for the connections from clients to the accelerator. Protocol Protocol diff --git a/service/globalaccelerator/validators.go b/service/globalaccelerator/validators.go index c880ea88ae4..ed1a84ce0c6 100644 --- a/service/globalaccelerator/validators.go +++ b/service/globalaccelerator/validators.go @@ -598,13 +598,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/glue/api_op_BatchCreatePartition.go b/service/glue/api_op_BatchCreatePartition.go index ece93c002fc..eecd717af52 100644 --- a/service/glue/api_op_BatchCreatePartition.go +++ b/service/glue/api_op_BatchCreatePartition.go @@ -37,7 +37,7 @@ type BatchCreatePartitionInput struct { // A list of PartitionInput structures that define the partitions to be created. // // This member is required. - PartitionInputList []*types.PartitionInput + PartitionInputList []types.PartitionInput // The name of the metadata table in which the partition is to be created. // @@ -52,7 +52,7 @@ type BatchCreatePartitionInput struct { type BatchCreatePartitionOutput struct { // The errors encountered when trying to create the requested partitions. - Errors []*types.PartitionError + Errors []types.PartitionError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_BatchDeleteConnection.go b/service/glue/api_op_BatchDeleteConnection.go index 2700b631a40..a23477ab000 100644 --- a/service/glue/api_op_BatchDeleteConnection.go +++ b/service/glue/api_op_BatchDeleteConnection.go @@ -32,7 +32,7 @@ type BatchDeleteConnectionInput struct { // A list of names of the connections to delete. // // This member is required. - ConnectionNameList []*string + ConnectionNameList []string // The ID of the Data Catalog in which the connections reside. If none is provided, // the AWS account ID is used by default. @@ -43,10 +43,10 @@ type BatchDeleteConnectionOutput struct { // A map of the names of connections that were not successfully deleted to error // details. - Errors map[string]*types.ErrorDetail + Errors map[string]types.ErrorDetail // A list of names of the connection definitions that were successfully deleted. - Succeeded []*string + Succeeded []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_BatchDeletePartition.go b/service/glue/api_op_BatchDeletePartition.go index 4e57a5b350a..3651ffd2e89 100644 --- a/service/glue/api_op_BatchDeletePartition.go +++ b/service/glue/api_op_BatchDeletePartition.go @@ -37,7 +37,7 @@ type BatchDeletePartitionInput struct { // A list of PartitionInput structures that define the partitions to be deleted. // // This member is required. - PartitionsToDelete []*types.PartitionValueList + PartitionsToDelete []types.PartitionValueList // The name of the table that contains the partitions to be deleted. // @@ -52,7 +52,7 @@ type BatchDeletePartitionInput struct { type BatchDeletePartitionOutput struct { // The errors encountered when trying to delete the requested partitions. - Errors []*types.PartitionError + Errors []types.PartitionError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_BatchDeleteTable.go b/service/glue/api_op_BatchDeleteTable.go index 7a42f0c31d3..0a4e371e1e6 100644 --- a/service/glue/api_op_BatchDeleteTable.go +++ b/service/glue/api_op_BatchDeleteTable.go @@ -44,7 +44,7 @@ type BatchDeleteTableInput struct { // A list of the table to delete. // // This member is required. - TablesToDelete []*string + TablesToDelete []string // The ID of the Data Catalog where the table resides. If none is provided, the AWS // account ID is used by default. @@ -54,7 +54,7 @@ type BatchDeleteTableInput struct { type BatchDeleteTableOutput struct { // A list of errors encountered in attempting to delete the specified tables. - Errors []*types.TableError + Errors []types.TableError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_BatchDeleteTableVersion.go b/service/glue/api_op_BatchDeleteTableVersion.go index 6248b03e3e7..3865b838292 100644 --- a/service/glue/api_op_BatchDeleteTableVersion.go +++ b/service/glue/api_op_BatchDeleteTableVersion.go @@ -44,7 +44,7 @@ type BatchDeleteTableVersionInput struct { // representation of an integer. Each version is incremented by 1. // // This member is required. - VersionIds []*string + VersionIds []string // The ID of the Data Catalog where the tables reside. If none is provided, the AWS // account ID is used by default. @@ -55,7 +55,7 @@ type BatchDeleteTableVersionOutput struct { // A list of errors encountered while trying to delete the specified table // versions. - Errors []*types.TableVersionError + Errors []types.TableVersionError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_BatchGetCrawlers.go b/service/glue/api_op_BatchGetCrawlers.go index 851f9a1343f..cdc6658caa8 100644 --- a/service/glue/api_op_BatchGetCrawlers.go +++ b/service/glue/api_op_BatchGetCrawlers.go @@ -36,16 +36,16 @@ type BatchGetCrawlersInput struct { // operation. // // This member is required. - CrawlerNames []*string + CrawlerNames []string } type BatchGetCrawlersOutput struct { // A list of crawler definitions. - Crawlers []*types.Crawler + Crawlers []types.Crawler // A list of names of crawlers that were not found. - CrawlersNotFound []*string + CrawlersNotFound []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_BatchGetDevEndpoints.go b/service/glue/api_op_BatchGetDevEndpoints.go index 698f92e9532..eccf7085eb6 100644 --- a/service/glue/api_op_BatchGetDevEndpoints.go +++ b/service/glue/api_op_BatchGetDevEndpoints.go @@ -36,16 +36,16 @@ type BatchGetDevEndpointsInput struct { // ListDevEndpoint operation. // // This member is required. - DevEndpointNames []*string + DevEndpointNames []string } type BatchGetDevEndpointsOutput struct { // A list of DevEndpoint definitions. - DevEndpoints []*types.DevEndpoint + DevEndpoints []types.DevEndpoint // A list of DevEndpoints not found. - DevEndpointsNotFound []*string + DevEndpointsNotFound []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_BatchGetJobs.go b/service/glue/api_op_BatchGetJobs.go index 493a85ea3c5..db57317e080 100644 --- a/service/glue/api_op_BatchGetJobs.go +++ b/service/glue/api_op_BatchGetJobs.go @@ -36,16 +36,16 @@ type BatchGetJobsInput struct { // operation. // // This member is required. - JobNames []*string + JobNames []string } type BatchGetJobsOutput struct { // A list of job definitions. - Jobs []*types.Job + Jobs []types.Job // A list of names of jobs not found. - JobsNotFound []*string + JobsNotFound []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_BatchGetPartition.go b/service/glue/api_op_BatchGetPartition.go index 202c9011506..15319a70dc1 100644 --- a/service/glue/api_op_BatchGetPartition.go +++ b/service/glue/api_op_BatchGetPartition.go @@ -37,7 +37,7 @@ type BatchGetPartitionInput struct { // A list of partition values identifying the partitions to retrieve. // // This member is required. - PartitionsToGet []*types.PartitionValueList + PartitionsToGet []types.PartitionValueList // The name of the partitions' table. // @@ -52,11 +52,11 @@ type BatchGetPartitionInput struct { type BatchGetPartitionOutput struct { // A list of the requested partitions. - Partitions []*types.Partition + Partitions []types.Partition // A list of the partition values in the request for which partitions were not // returned. - UnprocessedKeys []*types.PartitionValueList + UnprocessedKeys []types.PartitionValueList // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_BatchGetTriggers.go b/service/glue/api_op_BatchGetTriggers.go index c7263fd94bd..8eae67d0d70 100644 --- a/service/glue/api_op_BatchGetTriggers.go +++ b/service/glue/api_op_BatchGetTriggers.go @@ -36,16 +36,16 @@ type BatchGetTriggersInput struct { // operation. // // This member is required. - TriggerNames []*string + TriggerNames []string } type BatchGetTriggersOutput struct { // A list of trigger definitions. - Triggers []*types.Trigger + Triggers []types.Trigger // A list of names of triggers not found. - TriggersNotFound []*string + TriggersNotFound []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_BatchGetWorkflows.go b/service/glue/api_op_BatchGetWorkflows.go index 1f54de0bd81..d9a52b28ebd 100644 --- a/service/glue/api_op_BatchGetWorkflows.go +++ b/service/glue/api_op_BatchGetWorkflows.go @@ -36,7 +36,7 @@ type BatchGetWorkflowsInput struct { // operation. // // This member is required. - Names []*string + Names []string // Specifies whether to include a graph when returning the workflow resource // metadata. @@ -46,10 +46,10 @@ type BatchGetWorkflowsInput struct { type BatchGetWorkflowsOutput struct { // A list of names of workflows not found. - MissingWorkflows []*string + MissingWorkflows []string // A list of workflow resource metadata. - Workflows []*types.Workflow + Workflows []types.Workflow // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_BatchStopJobRun.go b/service/glue/api_op_BatchStopJobRun.go index 793c86c4af6..870243ce0a2 100644 --- a/service/glue/api_op_BatchStopJobRun.go +++ b/service/glue/api_op_BatchStopJobRun.go @@ -37,17 +37,17 @@ type BatchStopJobRunInput struct { // A list of the JobRunIds that should be stopped for that job definition. // // This member is required. - JobRunIds []*string + JobRunIds []string } type BatchStopJobRunOutput struct { // A list of the errors that were encountered in trying to stop JobRuns, including // the JobRunId for which each error was encountered and details about the error. - Errors []*types.BatchStopJobRunError + Errors []types.BatchStopJobRunError // A list of the JobRuns that were successfully submitted for stopping. - SuccessfulSubmissions []*types.BatchStopJobRunSuccessfulSubmission + SuccessfulSubmissions []types.BatchStopJobRunSuccessfulSubmission // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_BatchUpdatePartition.go b/service/glue/api_op_BatchUpdatePartition.go index 2207152fdb1..7a935d991df 100644 --- a/service/glue/api_op_BatchUpdatePartition.go +++ b/service/glue/api_op_BatchUpdatePartition.go @@ -37,7 +37,7 @@ type BatchUpdatePartitionInput struct { // A list of up to 100 BatchUpdatePartitionRequestEntry objects to update. // // This member is required. - Entries []*types.BatchUpdatePartitionRequestEntry + Entries []types.BatchUpdatePartitionRequestEntry // The name of the metadata table in which the partition is to be updated. // @@ -53,7 +53,7 @@ type BatchUpdatePartitionOutput struct { // The errors encountered when trying to update the requested partitions. A list of // BatchUpdatePartitionFailureEntry objects. - Errors []*types.BatchUpdatePartitionFailureEntry + Errors []types.BatchUpdatePartitionFailureEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_CreateCrawler.go b/service/glue/api_op_CreateCrawler.go index 005b85bc254..6418d7a5e85 100644 --- a/service/glue/api_op_CreateCrawler.go +++ b/service/glue/api_op_CreateCrawler.go @@ -50,7 +50,7 @@ type CreateCrawlerInput struct { // A list of custom classifiers that the user has registered. By default, all // built-in classifiers are included in a crawl, but these custom classifiers // always override the default classifiers for a given classification. - Classifiers []*string + Classifiers []string // Crawler configuration information. This versioned JSON string allows users to // specify aspects of a crawler's behavior. For more information, see Configuring a @@ -88,7 +88,7 @@ type CreateCrawlerInput struct { // the crawler. For more information about tags in AWS Glue, see AWS Tags in AWS // Glue (https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html) in the // developer guide. - Tags map[string]*string + Tags map[string]string } type CreateCrawlerOutput struct { diff --git a/service/glue/api_op_CreateDevEndpoint.go b/service/glue/api_op_CreateDevEndpoint.go index 9019fbdef67..a1a611fb455 100644 --- a/service/glue/api_op_CreateDevEndpoint.go +++ b/service/glue/api_op_CreateDevEndpoint.go @@ -41,7 +41,7 @@ type CreateDevEndpointInput struct { RoleArn *string // A map of arguments used to configure the DevEndpoint. - Arguments map[string]*string + Arguments map[string]string // The path to one or more Java .jar files in an S3 bucket that should be loaded in // your DevEndpoint. @@ -68,7 +68,7 @@ type CreateDevEndpointInput struct { // The number of AWS Glue Data Processing Units (DPUs) to allocate to this // DevEndpoint. - NumberOfNodes *int32 + NumberOfNodes int32 // The number of workers of a defined workerType that are allocated to the // development endpoint. The maximum number of workers you can define are 299 for @@ -87,14 +87,14 @@ type CreateDevEndpointInput struct { // to be able to set a list of public keys. Call the UpdateDevEndpoint API with the // public key content in the deletePublicKeys attribute, and the list of new keys // in the addPublicKeys attribute. - PublicKeys []*string + PublicKeys []string // The name of the SecurityConfiguration structure to be used with this // DevEndpoint. SecurityConfiguration *string // Security group IDs for the security groups to be used by the new DevEndpoint. - SecurityGroupIds []*string + SecurityGroupIds []string // The subnet ID for the new DevEndpoint to use. SubnetId *string @@ -103,7 +103,7 @@ type CreateDevEndpointInput struct { // DevEndpoint. For more information about tags in AWS Glue, see AWS Tags in AWS // Glue (https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html) in the // developer guide. - Tags map[string]*string + Tags map[string]string // The type of predefined worker that is allocated to the development endpoint. // Accepts a value of Standard, G.1X, or G.2X. @@ -143,7 +143,7 @@ type CreateDevEndpointOutput struct { // development endpoints by using the Arguments parameter in the CreateDevEndpoint // or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to // Python 2. - Arguments map[string]*string + Arguments map[string]string // The AWS Availability Zone where this DevEndpoint is located. AvailabilityZone *string @@ -172,7 +172,7 @@ type CreateDevEndpointOutput struct { // The number of AWS Glue Data Processing Units (DPUs) allocated to this // DevEndpoint. - NumberOfNodes *int32 + NumberOfNodes int32 // The number of workers of a defined workerType that are allocated to the // development endpoint. @@ -186,7 +186,7 @@ type CreateDevEndpointOutput struct { SecurityConfiguration *string // The security groups assigned to the new DevEndpoint. - SecurityGroupIds []*string + SecurityGroupIds []string // The current status of the new DevEndpoint. Status *string @@ -205,7 +205,7 @@ type CreateDevEndpointOutput struct { YarnEndpointAddress *string // The Apache Zeppelin port for the remote Apache Spark interpreter. - ZeppelinRemoteSparkInterpreterPort *int32 + ZeppelinRemoteSparkInterpreterPort int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_CreateJob.go b/service/glue/api_op_CreateJob.go index b096470bf76..b5ae9c3caca 100644 --- a/service/glue/api_op_CreateJob.go +++ b/service/glue/api_op_CreateJob.go @@ -50,7 +50,7 @@ type CreateJobInput struct { // that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more // information, see the AWS Glue pricing page // (https://aws.amazon.com/glue/pricing/). - AllocatedCapacity *int32 + AllocatedCapacity int32 // The connections used for this job. Connections *types.ConnectionsList @@ -64,7 +64,7 @@ type CreateJobInput struct { // Glue consumes to set up your job, see the Special Parameters Used by AWS Glue // (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html) // topic in the developer guide. - DefaultArguments map[string]*string + DefaultArguments map[string]string // Description of the job being defined. Description *string @@ -104,10 +104,10 @@ type CreateJobInput struct { MaxCapacity *float64 // The maximum number of times to retry this job if it fails. - MaxRetries *int32 + MaxRetries int32 // Non-overridable arguments for this job, specified as name-value pairs. - NonOverridableArguments map[string]*string + NonOverridableArguments map[string]string // Specifies configuration properties of a job notification. NotificationProperty *types.NotificationProperty @@ -124,7 +124,7 @@ type CreateJobInput struct { // more information about tags in AWS Glue, see AWS Tags in AWS Glue // (https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html) in the developer // guide. - Tags map[string]*string + Tags map[string]string // The job timeout in minutes. This is the maximum time that a job run can consume // resources before it is terminated and enters TIMEOUT status. The default is diff --git a/service/glue/api_op_CreateMLTransform.go b/service/glue/api_op_CreateMLTransform.go index 8e5cbc060a3..aba1cfbd6b4 100644 --- a/service/glue/api_op_CreateMLTransform.go +++ b/service/glue/api_op_CreateMLTransform.go @@ -42,7 +42,7 @@ type CreateMLTransformInput struct { // A list of AWS Glue table definitions used by the transform. // // This member is required. - InputRecordTables []*types.GlueTable + InputRecordTables []types.GlueTable // The unique name that you give the transform when you create it. // @@ -123,7 +123,7 @@ type CreateMLTransformInput struct { // Glue, see AWS Tags in AWS Glue // (https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html) in the developer // guide. - Tags map[string]*string + Tags map[string]string // The timeout of the task run for this transform in minutes. This is the maximum // time that a task run for this transform can consume resources before it is diff --git a/service/glue/api_op_CreateScript.go b/service/glue/api_op_CreateScript.go index 325a456aff2..0c1c2bec50e 100644 --- a/service/glue/api_op_CreateScript.go +++ b/service/glue/api_op_CreateScript.go @@ -30,10 +30,10 @@ func (c *Client) CreateScript(ctx context.Context, params *CreateScriptInput, op type CreateScriptInput struct { // A list of the edges in the DAG. - DagEdges []*types.CodeGenEdge + DagEdges []types.CodeGenEdge // A list of the nodes in the DAG. - DagNodes []*types.CodeGenNode + DagNodes []types.CodeGenNode // The programming language of the resulting code from the DAG. Language types.Language diff --git a/service/glue/api_op_CreateTable.go b/service/glue/api_op_CreateTable.go index eb6e9b473fd..e2f399add07 100644 --- a/service/glue/api_op_CreateTable.go +++ b/service/glue/api_op_CreateTable.go @@ -45,7 +45,7 @@ type CreateTableInput struct { CatalogId *string // A list of partition indexes, PartitionIndex structures, to create in the table. - PartitionIndexes []*types.PartitionIndex + PartitionIndexes []types.PartitionIndex } type CreateTableOutput struct { diff --git a/service/glue/api_op_CreateTrigger.go b/service/glue/api_op_CreateTrigger.go index c4dd68e7863..22706b95bbc 100644 --- a/service/glue/api_op_CreateTrigger.go +++ b/service/glue/api_op_CreateTrigger.go @@ -32,7 +32,7 @@ type CreateTriggerInput struct { // The actions initiated by this trigger when it fires. // // This member is required. - Actions []*types.Action + Actions []types.Action // The name of the trigger. // @@ -60,13 +60,13 @@ type CreateTriggerInput struct { // Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is // not supported for ON_DEMAND triggers. - StartOnCreation *bool + StartOnCreation bool // The tags to use with this trigger. You may use tags to limit access to the // trigger. For more information about tags in AWS Glue, see AWS Tags in AWS Glue // (https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html) in the developer // guide. - Tags map[string]*string + Tags map[string]string // The name of the workflow associated with the trigger. WorkflowName *string diff --git a/service/glue/api_op_CreateWorkflow.go b/service/glue/api_op_CreateWorkflow.go index 7f2cb8dad1d..5c4750946cc 100644 --- a/service/glue/api_op_CreateWorkflow.go +++ b/service/glue/api_op_CreateWorkflow.go @@ -35,7 +35,7 @@ type CreateWorkflowInput struct { Name *string // A collection of properties to be used as part of each execution of the workflow. - DefaultRunProperties map[string]*string + DefaultRunProperties map[string]string // A description of the workflow. Description *string @@ -47,7 +47,7 @@ type CreateWorkflowInput struct { MaxConcurrentRuns *int32 // The tags to be used with this workflow. - Tags map[string]*string + Tags map[string]string } type CreateWorkflowOutput struct { diff --git a/service/glue/api_op_DeleteColumnStatisticsForPartition.go b/service/glue/api_op_DeleteColumnStatisticsForPartition.go index ba48ace553d..735409cf4f4 100644 --- a/service/glue/api_op_DeleteColumnStatisticsForPartition.go +++ b/service/glue/api_op_DeleteColumnStatisticsForPartition.go @@ -42,7 +42,7 @@ type DeleteColumnStatisticsForPartitionInput struct { // A list of partition values identifying the partition. // // This member is required. - PartitionValues []*string + PartitionValues []string // The name of the partitions' table. // diff --git a/service/glue/api_op_DeletePartition.go b/service/glue/api_op_DeletePartition.go index cbec01c94b6..11e221da5cb 100644 --- a/service/glue/api_op_DeletePartition.go +++ b/service/glue/api_op_DeletePartition.go @@ -36,7 +36,7 @@ type DeletePartitionInput struct { // The values that define the partition. // // This member is required. - PartitionValues []*string + PartitionValues []string // The name of the table that contains the partition to be deleted. // diff --git a/service/glue/api_op_GetClassifiers.go b/service/glue/api_op_GetClassifiers.go index 5be3b17009c..355c9fa354c 100644 --- a/service/glue/api_op_GetClassifiers.go +++ b/service/glue/api_op_GetClassifiers.go @@ -39,7 +39,7 @@ type GetClassifiersInput struct { type GetClassifiersOutput struct { // The requested list of classifier objects. - Classifiers []*types.Classifier + Classifiers []types.Classifier // A continuation token. NextToken *string diff --git a/service/glue/api_op_GetColumnStatisticsForPartition.go b/service/glue/api_op_GetColumnStatisticsForPartition.go index 0290ad3a4b8..8bec53f6657 100644 --- a/service/glue/api_op_GetColumnStatisticsForPartition.go +++ b/service/glue/api_op_GetColumnStatisticsForPartition.go @@ -33,7 +33,7 @@ type GetColumnStatisticsForPartitionInput struct { // A list of the column names. // // This member is required. - ColumnNames []*string + ColumnNames []string // The name of the catalog database where the partitions reside. // @@ -43,7 +43,7 @@ type GetColumnStatisticsForPartitionInput struct { // A list of partition values identifying the partition. // // This member is required. - PartitionValues []*string + PartitionValues []string // The name of the partitions' table. // @@ -58,10 +58,10 @@ type GetColumnStatisticsForPartitionInput struct { type GetColumnStatisticsForPartitionOutput struct { // List of ColumnStatistics that failed to be retrieved. - ColumnStatisticsList []*types.ColumnStatistics + ColumnStatisticsList []types.ColumnStatistics // Error occurred during retrieving column statistics data. - Errors []*types.ColumnError + Errors []types.ColumnError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetColumnStatisticsForTable.go b/service/glue/api_op_GetColumnStatisticsForTable.go index 4baf75ddc24..94448da3829 100644 --- a/service/glue/api_op_GetColumnStatisticsForTable.go +++ b/service/glue/api_op_GetColumnStatisticsForTable.go @@ -33,7 +33,7 @@ type GetColumnStatisticsForTableInput struct { // A list of the column names. // // This member is required. - ColumnNames []*string + ColumnNames []string // The name of the catalog database where the partitions reside. // @@ -53,10 +53,10 @@ type GetColumnStatisticsForTableInput struct { type GetColumnStatisticsForTableOutput struct { // List of ColumnStatistics that failed to be retrieved. - ColumnStatisticsList []*types.ColumnStatistics + ColumnStatisticsList []types.ColumnStatistics // List of ColumnStatistics that failed to be retrieved. - Errors []*types.ColumnError + Errors []types.ColumnError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetConnection.go b/service/glue/api_op_GetConnection.go index 8a368516549..8d55740566c 100644 --- a/service/glue/api_op_GetConnection.go +++ b/service/glue/api_op_GetConnection.go @@ -43,7 +43,7 @@ type GetConnectionInput struct { // and does not display the password. Set this parameter when the caller might not // have permission to use the AWS KMS key to decrypt the password, but it does have // permission to access the rest of the connection properties. - HidePassword *bool + HidePassword bool } type GetConnectionOutput struct { diff --git a/service/glue/api_op_GetConnections.go b/service/glue/api_op_GetConnections.go index 35e168d808e..9f603274664 100644 --- a/service/glue/api_op_GetConnections.go +++ b/service/glue/api_op_GetConnections.go @@ -41,7 +41,7 @@ type GetConnectionsInput struct { // and does not display the password. Set this parameter when the caller might not // have permission to use the AWS KMS key to decrypt the password, but it does have // permission to access the rest of the connection properties. - HidePassword *bool + HidePassword bool // The maximum number of connections to return in one response. MaxResults *int32 @@ -53,7 +53,7 @@ type GetConnectionsInput struct { type GetConnectionsOutput struct { // A list of requested connection definitions. - ConnectionList []*types.Connection + ConnectionList []types.Connection // A continuation token, if the list of connections returned does not include the // last of the filtered connections. diff --git a/service/glue/api_op_GetCrawlerMetrics.go b/service/glue/api_op_GetCrawlerMetrics.go index 4bb5c4f4dad..a3b4e7c7bee 100644 --- a/service/glue/api_op_GetCrawlerMetrics.go +++ b/service/glue/api_op_GetCrawlerMetrics.go @@ -30,7 +30,7 @@ func (c *Client) GetCrawlerMetrics(ctx context.Context, params *GetCrawlerMetric type GetCrawlerMetricsInput struct { // A list of the names of crawlers about which to retrieve metrics. - CrawlerNameList []*string + CrawlerNameList []string // The maximum size of a list to return. MaxResults *int32 @@ -42,7 +42,7 @@ type GetCrawlerMetricsInput struct { type GetCrawlerMetricsOutput struct { // A list of metrics for the specified crawler. - CrawlerMetricsList []*types.CrawlerMetrics + CrawlerMetricsList []types.CrawlerMetrics // A continuation token, if the returned list does not contain the last metric // available. diff --git a/service/glue/api_op_GetCrawlers.go b/service/glue/api_op_GetCrawlers.go index 7ce6ff51ea6..4179286e053 100644 --- a/service/glue/api_op_GetCrawlers.go +++ b/service/glue/api_op_GetCrawlers.go @@ -39,7 +39,7 @@ type GetCrawlersInput struct { type GetCrawlersOutput struct { // A list of crawler metadata. - Crawlers []*types.Crawler + Crawlers []types.Crawler // A continuation token, if the returned list has not reached the end of those // defined in this customer account. diff --git a/service/glue/api_op_GetDatabases.go b/service/glue/api_op_GetDatabases.go index 04b9e836890..eaee6500ac6 100644 --- a/service/glue/api_op_GetDatabases.go +++ b/service/glue/api_op_GetDatabases.go @@ -56,7 +56,7 @@ type GetDatabasesOutput struct { // A list of Database objects from the specified catalog. // // This member is required. - DatabaseList []*types.Database + DatabaseList []types.Database // A continuation token for paginating the returned list of tokens, returned if the // current segment of the list is not the last. diff --git a/service/glue/api_op_GetDataflowGraph.go b/service/glue/api_op_GetDataflowGraph.go index 1c2882db2d7..ab09ce2899c 100644 --- a/service/glue/api_op_GetDataflowGraph.go +++ b/service/glue/api_op_GetDataflowGraph.go @@ -36,10 +36,10 @@ type GetDataflowGraphInput struct { type GetDataflowGraphOutput struct { // A list of the edges in the resulting DAG. - DagEdges []*types.CodeGenEdge + DagEdges []types.CodeGenEdge // A list of the nodes in the resulting DAG. - DagNodes []*types.CodeGenNode + DagNodes []types.CodeGenNode // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetDevEndpoints.go b/service/glue/api_op_GetDevEndpoints.go index 250870a4660..748fa1362ef 100644 --- a/service/glue/api_op_GetDevEndpoints.go +++ b/service/glue/api_op_GetDevEndpoints.go @@ -43,7 +43,7 @@ type GetDevEndpointsInput struct { type GetDevEndpointsOutput struct { // A list of DevEndpoint definitions. - DevEndpoints []*types.DevEndpoint + DevEndpoints []types.DevEndpoint // A continuation token, if not all DevEndpoint definitions have yet been returned. NextToken *string diff --git a/service/glue/api_op_GetJobRun.go b/service/glue/api_op_GetJobRun.go index 870c62fe45e..f8f29a2aac6 100644 --- a/service/glue/api_op_GetJobRun.go +++ b/service/glue/api_op_GetJobRun.go @@ -40,7 +40,7 @@ type GetJobRunInput struct { RunId *string // True if a list of predecessor runs should be returned. - PredecessorsIncluded *bool + PredecessorsIncluded bool } type GetJobRunOutput struct { diff --git a/service/glue/api_op_GetJobRuns.go b/service/glue/api_op_GetJobRuns.go index 52f1efc2fe7..b6e9f1fa9a3 100644 --- a/service/glue/api_op_GetJobRuns.go +++ b/service/glue/api_op_GetJobRuns.go @@ -44,7 +44,7 @@ type GetJobRunsInput struct { type GetJobRunsOutput struct { // A list of job-run metadata objects. - JobRuns []*types.JobRun + JobRuns []types.JobRun // A continuation token, if not all requested job runs have been returned. NextToken *string diff --git a/service/glue/api_op_GetJobs.go b/service/glue/api_op_GetJobs.go index bce53e951b2..5161600fb28 100644 --- a/service/glue/api_op_GetJobs.go +++ b/service/glue/api_op_GetJobs.go @@ -39,7 +39,7 @@ type GetJobsInput struct { type GetJobsOutput struct { // A list of job definitions. - Jobs []*types.Job + Jobs []types.Job // A continuation token, if not all job definitions have yet been returned. NextToken *string diff --git a/service/glue/api_op_GetMLTaskRun.go b/service/glue/api_op_GetMLTaskRun.go index 0302cfe89be..761a7fdf547 100644 --- a/service/glue/api_op_GetMLTaskRun.go +++ b/service/glue/api_op_GetMLTaskRun.go @@ -54,7 +54,7 @@ type GetMLTaskRunOutput struct { ErrorString *string // The amount of time (in seconds) that the task run consumed resources. - ExecutionTime *int32 + ExecutionTime int32 // The date and time when this task run was last modified. LastModifiedOn *time.Time diff --git a/service/glue/api_op_GetMLTaskRuns.go b/service/glue/api_op_GetMLTaskRuns.go index f7de2a0c965..67ddccdc8f4 100644 --- a/service/glue/api_op_GetMLTaskRuns.go +++ b/service/glue/api_op_GetMLTaskRuns.go @@ -58,7 +58,7 @@ type GetMLTaskRunsOutput struct { NextToken *string // A list of task runs that are associated with the transform. - TaskRuns []*types.TaskRun + TaskRuns []types.TaskRun // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetMLTransform.go b/service/glue/api_op_GetMLTransform.go index 229ca5ca79b..2b782cad858 100644 --- a/service/glue/api_op_GetMLTransform.go +++ b/service/glue/api_op_GetMLTransform.go @@ -61,10 +61,10 @@ type GetMLTransformOutput struct { GlueVersion *string // A list of AWS Glue table definitions used by the transform. - InputRecordTables []*types.GlueTable + InputRecordTables []types.GlueTable // The number of labels available for this transform. - LabelCount *int32 + LabelCount int32 // The date and time when the transform was last modified. LastModifiedOn *time.Time @@ -98,7 +98,7 @@ type GetMLTransformOutput struct { // The Map object that represents the schema that this transform accepts. Has an // upper bound of 100 columns. - Schema []*types.SchemaColumn + Schema []types.SchemaColumn // The last known status of the transform (to indicate whether it can be used or // not). One of "NOT_READY", "READY", or "DELETING". diff --git a/service/glue/api_op_GetMLTransforms.go b/service/glue/api_op_GetMLTransforms.go index 1a669d8b4be..9b3ae6b341d 100644 --- a/service/glue/api_op_GetMLTransforms.go +++ b/service/glue/api_op_GetMLTransforms.go @@ -51,7 +51,7 @@ type GetMLTransformsOutput struct { // A list of machine learning transforms. // // This member is required. - Transforms []*types.MLTransform + Transforms []types.MLTransform // A pagination token, if more results are available. NextToken *string diff --git a/service/glue/api_op_GetMapping.go b/service/glue/api_op_GetMapping.go index 2d3fddf5312..b81841c5853 100644 --- a/service/glue/api_op_GetMapping.go +++ b/service/glue/api_op_GetMapping.go @@ -38,7 +38,7 @@ type GetMappingInput struct { Location *types.Location // A list of target tables. - Sinks []*types.CatalogEntry + Sinks []types.CatalogEntry } type GetMappingOutput struct { @@ -46,7 +46,7 @@ type GetMappingOutput struct { // A list of mappings to the specified targets. // // This member is required. - Mapping []*types.MappingEntry + Mapping []types.MappingEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetPartition.go b/service/glue/api_op_GetPartition.go index aab5ec180bd..63d1de73beb 100644 --- a/service/glue/api_op_GetPartition.go +++ b/service/glue/api_op_GetPartition.go @@ -37,7 +37,7 @@ type GetPartitionInput struct { // The values that define the partition. // // This member is required. - PartitionValues []*string + PartitionValues []string // The name of the partition's table. // diff --git a/service/glue/api_op_GetPartitionIndexes.go b/service/glue/api_op_GetPartitionIndexes.go index 67378518b2e..8ebb0e304ff 100644 --- a/service/glue/api_op_GetPartitionIndexes.go +++ b/service/glue/api_op_GetPartitionIndexes.go @@ -54,7 +54,7 @@ type GetPartitionIndexesOutput struct { NextToken *string // A list of index descriptors. - PartitionIndexDescriptorList []*types.PartitionIndexDescriptor + PartitionIndexDescriptorList []types.PartitionIndexDescriptor // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetPartitions.go b/service/glue/api_op_GetPartitions.go index 9fb132e915f..15a28e7a8f2 100644 --- a/service/glue/api_op_GetPartitions.go +++ b/service/glue/api_op_GetPartitions.go @@ -107,7 +107,7 @@ type GetPartitionsOutput struct { NextToken *string // A list of requested partitions. - Partitions []*types.Partition + Partitions []types.Partition // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetPlan.go b/service/glue/api_op_GetPlan.go index 12b4bd3f080..25c78c71050 100644 --- a/service/glue/api_op_GetPlan.go +++ b/service/glue/api_op_GetPlan.go @@ -32,7 +32,7 @@ type GetPlanInput struct { // The list of mappings from a source table to target tables. // // This member is required. - Mapping []*types.MappingEntry + Mapping []types.MappingEntry // The source table. // @@ -46,7 +46,7 @@ type GetPlanInput struct { // inferSchema to true or false for the default script generated by an AWS Glue // job. For example, to set inferSchema to true, pass the following key value pair: // --additional-plan-options-map '{"inferSchema":"true"}' - AdditionalPlanOptionsMap map[string]*string + AdditionalPlanOptionsMap map[string]string // The programming language of the code to perform the mapping. Language types.Language @@ -55,7 +55,7 @@ type GetPlanInput struct { Location *types.Location // The target tables. - Sinks []*types.CatalogEntry + Sinks []types.CatalogEntry } type GetPlanOutput struct { diff --git a/service/glue/api_op_GetResourcePolicies.go b/service/glue/api_op_GetResourcePolicies.go index 007a25b9140..3f34f04c990 100644 --- a/service/glue/api_op_GetResourcePolicies.go +++ b/service/glue/api_op_GetResourcePolicies.go @@ -44,7 +44,7 @@ type GetResourcePoliciesOutput struct { // A list of the individual resource policies and the account-level resource // policy. - GetResourcePoliciesResponseList []*types.GluePolicy + GetResourcePoliciesResponseList []types.GluePolicy // A continuation token, if the returned list does not contain the last resource // policy available. diff --git a/service/glue/api_op_GetSecurityConfigurations.go b/service/glue/api_op_GetSecurityConfigurations.go index f938e83b402..c2dfc3d3922 100644 --- a/service/glue/api_op_GetSecurityConfigurations.go +++ b/service/glue/api_op_GetSecurityConfigurations.go @@ -42,7 +42,7 @@ type GetSecurityConfigurationsOutput struct { NextToken *string // A list of security configurations. - SecurityConfigurations []*types.SecurityConfiguration + SecurityConfigurations []types.SecurityConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetTableVersions.go b/service/glue/api_op_GetTableVersions.go index 72dd2ec09ac..cb980451e0d 100644 --- a/service/glue/api_op_GetTableVersions.go +++ b/service/glue/api_op_GetTableVersions.go @@ -59,7 +59,7 @@ type GetTableVersionsOutput struct { NextToken *string // A list of strings identifying available versions of the specified table. - TableVersions []*types.TableVersion + TableVersions []types.TableVersion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetTables.go b/service/glue/api_op_GetTables.go index 59dd533bb20..7a4a7eded94 100644 --- a/service/glue/api_op_GetTables.go +++ b/service/glue/api_op_GetTables.go @@ -56,7 +56,7 @@ type GetTablesOutput struct { NextToken *string // A list of the requested Table objects. - TableList []*types.Table + TableList []types.Table // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetTags.go b/service/glue/api_op_GetTags.go index 9b19b5fb0c6..3c5a58bc5f5 100644 --- a/service/glue/api_op_GetTags.go +++ b/service/glue/api_op_GetTags.go @@ -37,7 +37,7 @@ type GetTagsInput struct { type GetTagsOutput struct { // The requested tags. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetTriggers.go b/service/glue/api_op_GetTriggers.go index 6cb42f89c4d..7c086b5ca5f 100644 --- a/service/glue/api_op_GetTriggers.go +++ b/service/glue/api_op_GetTriggers.go @@ -46,7 +46,7 @@ type GetTriggersOutput struct { NextToken *string // A list of triggers for the specified job. - Triggers []*types.Trigger + Triggers []types.Trigger // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetUserDefinedFunctions.go b/service/glue/api_op_GetUserDefinedFunctions.go index 5c5b3589b25..75361487302 100644 --- a/service/glue/api_op_GetUserDefinedFunctions.go +++ b/service/glue/api_op_GetUserDefinedFunctions.go @@ -57,7 +57,7 @@ type GetUserDefinedFunctionsOutput struct { NextToken *string // A list of requested function definitions. - UserDefinedFunctions []*types.UserDefinedFunction + UserDefinedFunctions []types.UserDefinedFunction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetWorkflowRunProperties.go b/service/glue/api_op_GetWorkflowRunProperties.go index f64f40da9f6..f7743634157 100644 --- a/service/glue/api_op_GetWorkflowRunProperties.go +++ b/service/glue/api_op_GetWorkflowRunProperties.go @@ -42,7 +42,7 @@ type GetWorkflowRunPropertiesInput struct { type GetWorkflowRunPropertiesOutput struct { // The workflow run properties which were set during the specified run. - RunProperties map[string]*string + RunProperties map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_GetWorkflowRuns.go b/service/glue/api_op_GetWorkflowRuns.go index eb9effede32..aeb38859129 100644 --- a/service/glue/api_op_GetWorkflowRuns.go +++ b/service/glue/api_op_GetWorkflowRuns.go @@ -50,7 +50,7 @@ type GetWorkflowRunsOutput struct { NextToken *string // A list of workflow run metadata objects. - Runs []*types.WorkflowRun + Runs []types.WorkflowRun // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_ListCrawlers.go b/service/glue/api_op_ListCrawlers.go index f356d70936c..5706665d7d4 100644 --- a/service/glue/api_op_ListCrawlers.go +++ b/service/glue/api_op_ListCrawlers.go @@ -40,14 +40,14 @@ type ListCrawlersInput struct { NextToken *string // Specifies to return only these tagged resources. - Tags map[string]*string + Tags map[string]string } type ListCrawlersOutput struct { // The names of all crawlers in the account, or the crawlers with the specified // tags. - CrawlerNames []*string + CrawlerNames []string // A continuation token, if the returned list does not contain the last metric // available. diff --git a/service/glue/api_op_ListDevEndpoints.go b/service/glue/api_op_ListDevEndpoints.go index 46950a9ca32..9e68293fc57 100644 --- a/service/glue/api_op_ListDevEndpoints.go +++ b/service/glue/api_op_ListDevEndpoints.go @@ -40,14 +40,14 @@ type ListDevEndpointsInput struct { NextToken *string // Specifies to return only these tagged resources. - Tags map[string]*string + Tags map[string]string } type ListDevEndpointsOutput struct { // The names of all the DevEndpoints in the account, or the DevEndpoints with the // specified tags. - DevEndpointNames []*string + DevEndpointNames []string // A continuation token, if the returned list does not contain the last metric // available. diff --git a/service/glue/api_op_ListJobs.go b/service/glue/api_op_ListJobs.go index f7f27936764..3c812f45e73 100644 --- a/service/glue/api_op_ListJobs.go +++ b/service/glue/api_op_ListJobs.go @@ -40,13 +40,13 @@ type ListJobsInput struct { NextToken *string // Specifies to return only these tagged resources. - Tags map[string]*string + Tags map[string]string } type ListJobsOutput struct { // The names of all jobs in the account, or the jobs with the specified tags. - JobNames []*string + JobNames []string // A continuation token, if the returned list does not contain the last metric // available. diff --git a/service/glue/api_op_ListMLTransforms.go b/service/glue/api_op_ListMLTransforms.go index 918df95fecd..e2cc9abef35 100644 --- a/service/glue/api_op_ListMLTransforms.go +++ b/service/glue/api_op_ListMLTransforms.go @@ -46,7 +46,7 @@ type ListMLTransformsInput struct { Sort *types.TransformSortCriteria // Specifies to return only these tagged resources. - Tags map[string]*string + Tags map[string]string } type ListMLTransformsOutput struct { @@ -55,7 +55,7 @@ type ListMLTransformsOutput struct { // machine learning transforms with the specified tags. // // This member is required. - TransformIds []*string + TransformIds []string // A continuation token, if the returned list does not contain the last metric // available. diff --git a/service/glue/api_op_ListTriggers.go b/service/glue/api_op_ListTriggers.go index d06a3664867..b810b2e94c3 100644 --- a/service/glue/api_op_ListTriggers.go +++ b/service/glue/api_op_ListTriggers.go @@ -44,7 +44,7 @@ type ListTriggersInput struct { NextToken *string // Specifies to return only these tagged resources. - Tags map[string]*string + Tags map[string]string } type ListTriggersOutput struct { @@ -55,7 +55,7 @@ type ListTriggersOutput struct { // The names of all triggers in the account, or the triggers with the specified // tags. - TriggerNames []*string + TriggerNames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_ListWorkflows.go b/service/glue/api_op_ListWorkflows.go index 752dab033b2..f22392aee11 100644 --- a/service/glue/api_op_ListWorkflows.go +++ b/service/glue/api_op_ListWorkflows.go @@ -41,7 +41,7 @@ type ListWorkflowsOutput struct { NextToken *string // List of names of workflows in the account. - Workflows []*string + Workflows []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_PutWorkflowRunProperties.go b/service/glue/api_op_PutWorkflowRunProperties.go index cb52424d65d..60dba3964d1 100644 --- a/service/glue/api_op_PutWorkflowRunProperties.go +++ b/service/glue/api_op_PutWorkflowRunProperties.go @@ -43,7 +43,7 @@ type PutWorkflowRunPropertiesInput struct { // The properties to put for the specified run. // // This member is required. - RunProperties map[string]*string + RunProperties map[string]string } type PutWorkflowRunPropertiesOutput struct { diff --git a/service/glue/api_op_ResumeWorkflowRun.go b/service/glue/api_op_ResumeWorkflowRun.go index 15bbc813e9e..a65b9010ab6 100644 --- a/service/glue/api_op_ResumeWorkflowRun.go +++ b/service/glue/api_op_ResumeWorkflowRun.go @@ -39,7 +39,7 @@ type ResumeWorkflowRunInput struct { // be restarted must have a run attempt in the original run. // // This member is required. - NodeIds []*string + NodeIds []string // The ID of the workflow run to resume. // @@ -50,7 +50,7 @@ type ResumeWorkflowRunInput struct { type ResumeWorkflowRunOutput struct { // A list of the node IDs for the nodes that were actually restarted. - NodeIds []*string + NodeIds []string // The new ID assigned to the resumed workflow run. Each resume of a workflow run // will have a new run ID. diff --git a/service/glue/api_op_SearchTables.go b/service/glue/api_op_SearchTables.go index eb295f91368..82e586ec1ae 100644 --- a/service/glue/api_op_SearchTables.go +++ b/service/glue/api_op_SearchTables.go @@ -49,7 +49,7 @@ type SearchTablesInput struct { // into tokens. Then each token is exact-match compared with the Value member of // PropertyPredicate. For example, if Key=Name and Value=link, tables named // customer-link and xx-link-yy are returned, but xxlinkyy is not returned. - Filters []*types.PropertyPredicate + Filters []types.PropertyPredicate // The maximum number of tables to return in a single response. MaxResults *int32 @@ -73,7 +73,7 @@ type SearchTablesInput struct { // A list of criteria for sorting the results by a field name, in an ascending or // descending order. - SortCriteria []*types.SortCriterion + SortCriteria []types.SortCriterion } type SearchTablesOutput struct { @@ -83,7 +83,7 @@ type SearchTablesOutput struct { // A list of the requested Table objects. The SearchTables response returns only // the tables that you have access to. - TableList []*types.Table + TableList []types.Table // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_StartImportLabelsTaskRun.go b/service/glue/api_op_StartImportLabelsTaskRun.go index 43f584aaf5e..42368ae29ab 100644 --- a/service/glue/api_op_StartImportLabelsTaskRun.go +++ b/service/glue/api_op_StartImportLabelsTaskRun.go @@ -61,7 +61,7 @@ type StartImportLabelsTaskRunInput struct { TransformId *string // Indicates whether to overwrite your existing labels. - ReplaceAllLabels *bool + ReplaceAllLabels bool } type StartImportLabelsTaskRunOutput struct { diff --git a/service/glue/api_op_StartJobRun.go b/service/glue/api_op_StartJobRun.go index 70f179fe897..5017faf5960 100644 --- a/service/glue/api_op_StartJobRun.go +++ b/service/glue/api_op_StartJobRun.go @@ -40,7 +40,7 @@ type StartJobRunInput struct { // that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more // information, see the AWS Glue pricing page // (https://docs.aws.amazon.com/https:/aws.amazon.com/glue/pricing/). - AllocatedCapacity *int32 + AllocatedCapacity int32 // The job arguments specifically for this run. For this job run, they replace the // default arguments set in the job definition itself. You can specify arguments @@ -52,7 +52,7 @@ type StartJobRunInput struct { // Glue consumes to set up your job, see the Special Parameters Used by AWS Glue // (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html) // topic in the developer guide. - Arguments map[string]*string + Arguments map[string]string // The ID of a previous JobRun to retry. JobRunId *string diff --git a/service/glue/api_op_TagResource.go b/service/glue/api_op_TagResource.go index 3b7a712582d..5d34828cb31 100644 --- a/service/glue/api_op_TagResource.go +++ b/service/glue/api_op_TagResource.go @@ -41,7 +41,7 @@ type TagResourceInput struct { // Tags to add to this resource. // // This member is required. - TagsToAdd map[string]*string + TagsToAdd map[string]string } type TagResourceOutput struct { diff --git a/service/glue/api_op_UntagResource.go b/service/glue/api_op_UntagResource.go index b89b3a341fb..61af53adbb6 100644 --- a/service/glue/api_op_UntagResource.go +++ b/service/glue/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // Tags to remove from this resource. // // This member is required. - TagsToRemove []*string + TagsToRemove []string } type UntagResourceOutput struct { diff --git a/service/glue/api_op_UpdateColumnStatisticsForPartition.go b/service/glue/api_op_UpdateColumnStatisticsForPartition.go index 56fd9ce3079..561d90effdf 100644 --- a/service/glue/api_op_UpdateColumnStatisticsForPartition.go +++ b/service/glue/api_op_UpdateColumnStatisticsForPartition.go @@ -33,7 +33,7 @@ type UpdateColumnStatisticsForPartitionInput struct { // A list of the column statistics. // // This member is required. - ColumnStatisticsList []*types.ColumnStatistics + ColumnStatisticsList []types.ColumnStatistics // The name of the catalog database where the partitions reside. // @@ -43,7 +43,7 @@ type UpdateColumnStatisticsForPartitionInput struct { // A list of partition values identifying the partition. // // This member is required. - PartitionValues []*string + PartitionValues []string // The name of the partitions' table. // @@ -58,7 +58,7 @@ type UpdateColumnStatisticsForPartitionInput struct { type UpdateColumnStatisticsForPartitionOutput struct { // Error occurred during updating column statistics data. - Errors []*types.ColumnStatisticsError + Errors []types.ColumnStatisticsError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_UpdateColumnStatisticsForTable.go b/service/glue/api_op_UpdateColumnStatisticsForTable.go index 4a23152c688..b698fbccb1d 100644 --- a/service/glue/api_op_UpdateColumnStatisticsForTable.go +++ b/service/glue/api_op_UpdateColumnStatisticsForTable.go @@ -33,7 +33,7 @@ type UpdateColumnStatisticsForTableInput struct { // A list of the column statistics. // // This member is required. - ColumnStatisticsList []*types.ColumnStatistics + ColumnStatisticsList []types.ColumnStatistics // The name of the catalog database where the partitions reside. // @@ -53,7 +53,7 @@ type UpdateColumnStatisticsForTableInput struct { type UpdateColumnStatisticsForTableOutput struct { // List of ColumnStatisticsErrors. - Errors []*types.ColumnStatisticsError + Errors []types.ColumnStatisticsError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/glue/api_op_UpdateCrawler.go b/service/glue/api_op_UpdateCrawler.go index 7e6640e0d32..5774a5d792f 100644 --- a/service/glue/api_op_UpdateCrawler.go +++ b/service/glue/api_op_UpdateCrawler.go @@ -38,7 +38,7 @@ type UpdateCrawlerInput struct { // A list of custom classifiers that the user has registered. By default, all // built-in classifiers are included in a crawl, but these custom classifiers // always override the default classifiers for a given classification. - Classifiers []*string + Classifiers []string // Crawler configuration information. This versioned JSON string allows users to // specify aspects of a crawler's behavior. For more information, see Configuring a diff --git a/service/glue/api_op_UpdateDevEndpoint.go b/service/glue/api_op_UpdateDevEndpoint.go index 7012197ad6f..b119797104d 100644 --- a/service/glue/api_op_UpdateDevEndpoint.go +++ b/service/glue/api_op_UpdateDevEndpoint.go @@ -48,27 +48,27 @@ type UpdateDevEndpointInput struct { // version of Python support for development endpoints by using the Arguments // parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments // are provided, the version defaults to Python 2. - AddArguments map[string]*string + AddArguments map[string]string // The list of public keys for the DevEndpoint to use. - AddPublicKeys []*string + AddPublicKeys []string // Custom Python or Java libraries to be loaded in the DevEndpoint. CustomLibraries *types.DevEndpointCustomLibraries // The list of argument keys to be deleted from the map of arguments used to // configure the DevEndpoint. - DeleteArguments []*string + DeleteArguments []string // The list of public keys to be deleted from the DevEndpoint. - DeletePublicKeys []*string + DeletePublicKeys []string // The public key for the DevEndpoint to use. PublicKey *string // True if the list of custom libraries to be loaded in the development endpoint // needs to be updated, or False if otherwise. - UpdateEtlLibraries *bool + UpdateEtlLibraries bool } type UpdateDevEndpointOutput struct { diff --git a/service/glue/api_op_UpdatePartition.go b/service/glue/api_op_UpdatePartition.go index 5b9eb656f5b..3c7ccb6536f 100644 --- a/service/glue/api_op_UpdatePartition.go +++ b/service/glue/api_op_UpdatePartition.go @@ -44,7 +44,7 @@ type UpdatePartitionInput struct { // List of partition key values that define the partition to update. // // This member is required. - PartitionValueList []*string + PartitionValueList []string // The name of the table in which the partition to be updated is located. // diff --git a/service/glue/api_op_UpdateWorkflow.go b/service/glue/api_op_UpdateWorkflow.go index 4e04ff631e6..4476bd1bfc0 100644 --- a/service/glue/api_op_UpdateWorkflow.go +++ b/service/glue/api_op_UpdateWorkflow.go @@ -34,7 +34,7 @@ type UpdateWorkflowInput struct { Name *string // A collection of properties to be used as part of each execution of the workflow. - DefaultRunProperties map[string]*string + DefaultRunProperties map[string]string // The description of the workflow. Description *string diff --git a/service/glue/deserializers.go b/service/glue/deserializers.go index c6057147f10..ef17ac61090 100644 --- a/service/glue/deserializers.go +++ b/service/glue/deserializers.go @@ -17214,7 +17214,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17259,7 +17259,7 @@ func awsAwsjson11_deserializeDocumentAction(v **types.Action, value interface{}) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.CrawlerName = &jtv + sv.CrawlerName = ptr.String(jtv) } case "JobName": @@ -17268,7 +17268,7 @@ func awsAwsjson11_deserializeDocumentAction(v **types.Action, value interface{}) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "NotificationProperty": @@ -17282,7 +17282,7 @@ func awsAwsjson11_deserializeDocumentAction(v **types.Action, value interface{}) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.SecurityConfiguration = &jtv + sv.SecurityConfiguration = ptr.String(jtv) } case "Timeout": @@ -17307,7 +17307,7 @@ func awsAwsjson11_deserializeDocumentAction(v **types.Action, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentActionList(v *[]*types.Action, value interface{}) error { +func awsAwsjson11_deserializeDocumentActionList(v *[]types.Action, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17320,18 +17320,20 @@ func awsAwsjson11_deserializeDocumentActionList(v *[]*types.Action, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Action + var cv []types.Action if *v == nil { - cv = []*types.Action{} + cv = []types.Action{} } else { cv = *v } for _, value := range shape { - var col *types.Action - if err := awsAwsjson11_deserializeDocumentAction(&col, value); err != nil { + var col types.Action + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17367,7 +17369,7 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17379,7 +17381,7 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi return nil } -func awsAwsjson11_deserializeDocumentBatchGetPartitionValueList(v *[]*types.PartitionValueList, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchGetPartitionValueList(v *[]types.PartitionValueList, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17392,18 +17394,20 @@ func awsAwsjson11_deserializeDocumentBatchGetPartitionValueList(v *[]*types.Part return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PartitionValueList + var cv []types.PartitionValueList if *v == nil { - cv = []*types.PartitionValueList{} + cv = []types.PartitionValueList{} } else { cv = *v } for _, value := range shape { - var col *types.PartitionValueList - if err := awsAwsjson11_deserializeDocumentPartitionValueList(&col, value); err != nil { + var col types.PartitionValueList + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPartitionValueList(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17444,7 +17448,7 @@ func awsAwsjson11_deserializeDocumentBatchStopJobRunError(v **types.BatchStopJob if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "JobRunId": @@ -17453,7 +17457,7 @@ func awsAwsjson11_deserializeDocumentBatchStopJobRunError(v **types.BatchStopJob if !ok { return fmt.Errorf("expected IdString to be of type string, got %T instead", value) } - sv.JobRunId = &jtv + sv.JobRunId = ptr.String(jtv) } default: @@ -17465,7 +17469,7 @@ func awsAwsjson11_deserializeDocumentBatchStopJobRunError(v **types.BatchStopJob return nil } -func awsAwsjson11_deserializeDocumentBatchStopJobRunErrorList(v *[]*types.BatchStopJobRunError, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchStopJobRunErrorList(v *[]types.BatchStopJobRunError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17478,18 +17482,20 @@ func awsAwsjson11_deserializeDocumentBatchStopJobRunErrorList(v *[]*types.BatchS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchStopJobRunError + var cv []types.BatchStopJobRunError if *v == nil { - cv = []*types.BatchStopJobRunError{} + cv = []types.BatchStopJobRunError{} } else { cv = *v } for _, value := range shape { - var col *types.BatchStopJobRunError - if err := awsAwsjson11_deserializeDocumentBatchStopJobRunError(&col, value); err != nil { + var col types.BatchStopJobRunError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchStopJobRunError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17525,7 +17531,7 @@ func awsAwsjson11_deserializeDocumentBatchStopJobRunSuccessfulSubmission(v **typ if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "JobRunId": @@ -17534,7 +17540,7 @@ func awsAwsjson11_deserializeDocumentBatchStopJobRunSuccessfulSubmission(v **typ if !ok { return fmt.Errorf("expected IdString to be of type string, got %T instead", value) } - sv.JobRunId = &jtv + sv.JobRunId = ptr.String(jtv) } default: @@ -17546,7 +17552,7 @@ func awsAwsjson11_deserializeDocumentBatchStopJobRunSuccessfulSubmission(v **typ return nil } -func awsAwsjson11_deserializeDocumentBatchStopJobRunSuccessfulSubmissionList(v *[]*types.BatchStopJobRunSuccessfulSubmission, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchStopJobRunSuccessfulSubmissionList(v *[]types.BatchStopJobRunSuccessfulSubmission, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17559,18 +17565,20 @@ func awsAwsjson11_deserializeDocumentBatchStopJobRunSuccessfulSubmissionList(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchStopJobRunSuccessfulSubmission + var cv []types.BatchStopJobRunSuccessfulSubmission if *v == nil { - cv = []*types.BatchStopJobRunSuccessfulSubmission{} + cv = []types.BatchStopJobRunSuccessfulSubmission{} } else { cv = *v } for _, value := range shape { - var col *types.BatchStopJobRunSuccessfulSubmission - if err := awsAwsjson11_deserializeDocumentBatchStopJobRunSuccessfulSubmission(&col, value); err != nil { + var col types.BatchStopJobRunSuccessfulSubmission + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchStopJobRunSuccessfulSubmission(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17619,7 +17627,7 @@ func awsAwsjson11_deserializeDocumentBatchUpdatePartitionFailureEntry(v **types. return nil } -func awsAwsjson11_deserializeDocumentBatchUpdatePartitionFailureList(v *[]*types.BatchUpdatePartitionFailureEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchUpdatePartitionFailureList(v *[]types.BatchUpdatePartitionFailureEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17632,18 +17640,20 @@ func awsAwsjson11_deserializeDocumentBatchUpdatePartitionFailureList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchUpdatePartitionFailureEntry + var cv []types.BatchUpdatePartitionFailureEntry if *v == nil { - cv = []*types.BatchUpdatePartitionFailureEntry{} + cv = []types.BatchUpdatePartitionFailureEntry{} } else { cv = *v } for _, value := range shape { - var col *types.BatchUpdatePartitionFailureEntry - if err := awsAwsjson11_deserializeDocumentBatchUpdatePartitionFailureEntry(&col, value); err != nil { + var col types.BatchUpdatePartitionFailureEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchUpdatePartitionFailureEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17683,7 +17693,7 @@ func awsAwsjson11_deserializeDocumentBinaryColumnStatisticsData(v **types.Binary if err != nil { return err } - sv.AverageLength = &f64 + sv.AverageLength = f64 } case "MaximumLength": @@ -17696,7 +17706,7 @@ func awsAwsjson11_deserializeDocumentBinaryColumnStatisticsData(v **types.Binary if err != nil { return err } - sv.MaximumLength = &i64 + sv.MaximumLength = i64 } case "NumberOfNulls": @@ -17709,7 +17719,7 @@ func awsAwsjson11_deserializeDocumentBinaryColumnStatisticsData(v **types.Binary if err != nil { return err } - sv.NumberOfNulls = &i64 + sv.NumberOfNulls = i64 } default: @@ -17753,7 +17763,7 @@ func awsAwsjson11_deserializeDocumentBooleanColumnStatisticsData(v **types.Boole if err != nil { return err } - sv.NumberOfFalses = &i64 + sv.NumberOfFalses = i64 } case "NumberOfNulls": @@ -17766,7 +17776,7 @@ func awsAwsjson11_deserializeDocumentBooleanColumnStatisticsData(v **types.Boole if err != nil { return err } - sv.NumberOfNulls = &i64 + sv.NumberOfNulls = i64 } case "NumberOfTrues": @@ -17779,7 +17789,7 @@ func awsAwsjson11_deserializeDocumentBooleanColumnStatisticsData(v **types.Boole if err != nil { return err } - sv.NumberOfTrues = &i64 + sv.NumberOfTrues = i64 } default: @@ -17791,7 +17801,7 @@ func awsAwsjson11_deserializeDocumentBooleanColumnStatisticsData(v **types.Boole return nil } -func awsAwsjson11_deserializeDocumentBoundedPartitionValueList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentBoundedPartitionValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17804,21 +17814,21 @@ func awsAwsjson11_deserializeDocumentBoundedPartitionValueList(v *[]*string, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ValueString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -17855,7 +17865,7 @@ func awsAwsjson11_deserializeDocumentCatalogImportStatus(v **types.CatalogImport if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ImportCompleted = &jtv + sv.ImportCompleted = jtv } case "ImportedBy": @@ -17864,7 +17874,7 @@ func awsAwsjson11_deserializeDocumentCatalogImportStatus(v **types.CatalogImport if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.ImportedBy = &jtv + sv.ImportedBy = ptr.String(jtv) } case "ImportTime": @@ -17889,7 +17899,7 @@ func awsAwsjson11_deserializeDocumentCatalogImportStatus(v **types.CatalogImport return nil } -func awsAwsjson11_deserializeDocumentCatalogTablesList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCatalogTablesList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17902,21 +17912,21 @@ func awsAwsjson11_deserializeDocumentCatalogTablesList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -17953,7 +17963,7 @@ func awsAwsjson11_deserializeDocumentCatalogTarget(v **types.CatalogTarget, valu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "Tables": @@ -17970,7 +17980,7 @@ func awsAwsjson11_deserializeDocumentCatalogTarget(v **types.CatalogTarget, valu return nil } -func awsAwsjson11_deserializeDocumentCatalogTargetList(v *[]*types.CatalogTarget, value interface{}) error { +func awsAwsjson11_deserializeDocumentCatalogTargetList(v *[]types.CatalogTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17983,18 +17993,20 @@ func awsAwsjson11_deserializeDocumentCatalogTargetList(v *[]*types.CatalogTarget return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CatalogTarget + var cv []types.CatalogTarget if *v == nil { - cv = []*types.CatalogTarget{} + cv = []types.CatalogTarget{} } else { cv = *v } for _, value := range shape { - var col *types.CatalogTarget - if err := awsAwsjson11_deserializeDocumentCatalogTarget(&col, value); err != nil { + var col types.CatalogTarget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCatalogTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18053,7 +18065,7 @@ func awsAwsjson11_deserializeDocumentClassifier(v **types.Classifier, value inte return nil } -func awsAwsjson11_deserializeDocumentClassifierList(v *[]*types.Classifier, value interface{}) error { +func awsAwsjson11_deserializeDocumentClassifierList(v *[]types.Classifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18066,18 +18078,20 @@ func awsAwsjson11_deserializeDocumentClassifierList(v *[]*types.Classifier, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Classifier + var cv []types.Classifier if *v == nil { - cv = []*types.Classifier{} + cv = []types.Classifier{} } else { cv = *v } for _, value := range shape { - var col *types.Classifier - if err := awsAwsjson11_deserializeDocumentClassifier(&col, value); err != nil { + var col types.Classifier + destAddr := &col + if err := awsAwsjson11_deserializeDocumentClassifier(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18085,7 +18099,7 @@ func awsAwsjson11_deserializeDocumentClassifierList(v *[]*types.Classifier, valu return nil } -func awsAwsjson11_deserializeDocumentClassifierNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentClassifierNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18098,21 +18112,21 @@ func awsAwsjson11_deserializeDocumentClassifierNameList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -18158,7 +18172,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchEncryption(v **types.CloudWatchEn if !ok { return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } default: @@ -18198,7 +18212,7 @@ func awsAwsjson11_deserializeDocumentCodeGenEdge(v **types.CodeGenEdge, value in if !ok { return fmt.Errorf("expected CodeGenIdentifier to be of type string, got %T instead", value) } - sv.Source = &jtv + sv.Source = ptr.String(jtv) } case "Target": @@ -18207,7 +18221,7 @@ func awsAwsjson11_deserializeDocumentCodeGenEdge(v **types.CodeGenEdge, value in if !ok { return fmt.Errorf("expected CodeGenIdentifier to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } case "TargetParameter": @@ -18216,7 +18230,7 @@ func awsAwsjson11_deserializeDocumentCodeGenEdge(v **types.CodeGenEdge, value in if !ok { return fmt.Errorf("expected CodeGenArgName to be of type string, got %T instead", value) } - sv.TargetParameter = &jtv + sv.TargetParameter = ptr.String(jtv) } default: @@ -18261,7 +18275,7 @@ func awsAwsjson11_deserializeDocumentCodeGenNode(v **types.CodeGenNode, value in if !ok { return fmt.Errorf("expected CodeGenIdentifier to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LineNumber": @@ -18274,7 +18288,7 @@ func awsAwsjson11_deserializeDocumentCodeGenNode(v **types.CodeGenNode, value in if err != nil { return err } - sv.LineNumber = ptr.Int32(int32(i64)) + sv.LineNumber = int32(i64) } case "NodeType": @@ -18283,7 +18297,7 @@ func awsAwsjson11_deserializeDocumentCodeGenNode(v **types.CodeGenNode, value in if !ok { return fmt.Errorf("expected CodeGenNodeType to be of type string, got %T instead", value) } - sv.NodeType = &jtv + sv.NodeType = ptr.String(jtv) } default: @@ -18323,7 +18337,7 @@ func awsAwsjson11_deserializeDocumentCodeGenNodeArg(v **types.CodeGenNodeArg, va if !ok { return fmt.Errorf("expected CodeGenArgName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Param": @@ -18332,7 +18346,7 @@ func awsAwsjson11_deserializeDocumentCodeGenNodeArg(v **types.CodeGenNodeArg, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Param = &jtv + sv.Param = jtv } case "Value": @@ -18341,7 +18355,7 @@ func awsAwsjson11_deserializeDocumentCodeGenNodeArg(v **types.CodeGenNodeArg, va if !ok { return fmt.Errorf("expected CodeGenArgValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -18353,7 +18367,7 @@ func awsAwsjson11_deserializeDocumentCodeGenNodeArg(v **types.CodeGenNodeArg, va return nil } -func awsAwsjson11_deserializeDocumentCodeGenNodeArgs(v *[]*types.CodeGenNodeArg, value interface{}) error { +func awsAwsjson11_deserializeDocumentCodeGenNodeArgs(v *[]types.CodeGenNodeArg, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18366,18 +18380,20 @@ func awsAwsjson11_deserializeDocumentCodeGenNodeArgs(v *[]*types.CodeGenNodeArg, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CodeGenNodeArg + var cv []types.CodeGenNodeArg if *v == nil { - cv = []*types.CodeGenNodeArg{} + cv = []types.CodeGenNodeArg{} } else { cv = *v } for _, value := range shape { - var col *types.CodeGenNodeArg - if err := awsAwsjson11_deserializeDocumentCodeGenNodeArg(&col, value); err != nil { + var col types.CodeGenNodeArg + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCodeGenNodeArg(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18413,7 +18429,7 @@ func awsAwsjson11_deserializeDocumentColumn(v **types.Column, value interface{}) if !ok { return fmt.Errorf("expected CommentString to be of type string, got %T instead", value) } - sv.Comment = &jtv + sv.Comment = ptr.String(jtv) } case "Name": @@ -18422,7 +18438,7 @@ func awsAwsjson11_deserializeDocumentColumn(v **types.Column, value interface{}) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Parameters": @@ -18436,7 +18452,7 @@ func awsAwsjson11_deserializeDocumentColumn(v **types.Column, value interface{}) if !ok { return fmt.Errorf("expected ColumnTypeString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -18476,7 +18492,7 @@ func awsAwsjson11_deserializeDocumentColumnError(v **types.ColumnError, value in if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.ColumnName = &jtv + sv.ColumnName = ptr.String(jtv) } case "Error": @@ -18493,7 +18509,7 @@ func awsAwsjson11_deserializeDocumentColumnError(v **types.ColumnError, value in return nil } -func awsAwsjson11_deserializeDocumentColumnErrors(v *[]*types.ColumnError, value interface{}) error { +func awsAwsjson11_deserializeDocumentColumnErrors(v *[]types.ColumnError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18506,18 +18522,20 @@ func awsAwsjson11_deserializeDocumentColumnErrors(v *[]*types.ColumnError, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnError + var cv []types.ColumnError if *v == nil { - cv = []*types.ColumnError{} + cv = []types.ColumnError{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnError - if err := awsAwsjson11_deserializeDocumentColumnError(&col, value); err != nil { + var col types.ColumnError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentColumnError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18525,7 +18543,7 @@ func awsAwsjson11_deserializeDocumentColumnErrors(v *[]*types.ColumnError, value return nil } -func awsAwsjson11_deserializeDocumentColumnList(v *[]*types.Column, value interface{}) error { +func awsAwsjson11_deserializeDocumentColumnList(v *[]types.Column, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18538,18 +18556,20 @@ func awsAwsjson11_deserializeDocumentColumnList(v *[]*types.Column, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Column + var cv []types.Column if *v == nil { - cv = []*types.Column{} + cv = []types.Column{} } else { cv = *v } for _, value := range shape { - var col *types.Column - if err := awsAwsjson11_deserializeDocumentColumn(&col, value); err != nil { + var col types.Column + destAddr := &col + if err := awsAwsjson11_deserializeDocumentColumn(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18598,7 +18618,7 @@ func awsAwsjson11_deserializeDocumentColumnStatistics(v **types.ColumnStatistics if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.ColumnName = &jtv + sv.ColumnName = ptr.String(jtv) } case "ColumnType": @@ -18607,7 +18627,7 @@ func awsAwsjson11_deserializeDocumentColumnStatistics(v **types.ColumnStatistics if !ok { return fmt.Errorf("expected TypeString to be of type string, got %T instead", value) } - sv.ColumnType = &jtv + sv.ColumnType = ptr.String(jtv) } case "StatisticsData": @@ -18740,7 +18760,7 @@ func awsAwsjson11_deserializeDocumentColumnStatisticsError(v **types.ColumnStati return nil } -func awsAwsjson11_deserializeDocumentColumnStatisticsErrors(v *[]*types.ColumnStatisticsError, value interface{}) error { +func awsAwsjson11_deserializeDocumentColumnStatisticsErrors(v *[]types.ColumnStatisticsError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18753,18 +18773,20 @@ func awsAwsjson11_deserializeDocumentColumnStatisticsErrors(v *[]*types.ColumnSt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnStatisticsError + var cv []types.ColumnStatisticsError if *v == nil { - cv = []*types.ColumnStatisticsError{} + cv = []types.ColumnStatisticsError{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnStatisticsError - if err := awsAwsjson11_deserializeDocumentColumnStatisticsError(&col, value); err != nil { + var col types.ColumnStatisticsError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentColumnStatisticsError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18772,7 +18794,7 @@ func awsAwsjson11_deserializeDocumentColumnStatisticsErrors(v *[]*types.ColumnSt return nil } -func awsAwsjson11_deserializeDocumentColumnStatisticsList(v *[]*types.ColumnStatistics, value interface{}) error { +func awsAwsjson11_deserializeDocumentColumnStatisticsList(v *[]types.ColumnStatistics, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18785,18 +18807,20 @@ func awsAwsjson11_deserializeDocumentColumnStatisticsList(v *[]*types.ColumnStat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnStatistics + var cv []types.ColumnStatistics if *v == nil { - cv = []*types.ColumnStatistics{} + cv = []types.ColumnStatistics{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnStatistics - if err := awsAwsjson11_deserializeDocumentColumnStatistics(&col, value); err != nil { + var col types.ColumnStatistics + destAddr := &col + if err := awsAwsjson11_deserializeDocumentColumnStatistics(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18804,7 +18828,7 @@ func awsAwsjson11_deserializeDocumentColumnStatisticsList(v *[]*types.ColumnStat return nil } -func awsAwsjson11_deserializeDocumentColumnValueStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentColumnValueStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18817,21 +18841,21 @@ func awsAwsjson11_deserializeDocumentColumnValueStringList(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ColumnValuesString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -18868,7 +18892,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18908,7 +18932,7 @@ func awsAwsjson11_deserializeDocumentConcurrentRunsExceededException(v **types.C if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18948,7 +18972,7 @@ func awsAwsjson11_deserializeDocumentCondition(v **types.Condition, value interf if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.CrawlerName = &jtv + sv.CrawlerName = ptr.String(jtv) } case "CrawlState": @@ -18966,7 +18990,7 @@ func awsAwsjson11_deserializeDocumentCondition(v **types.Condition, value interf if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "LogicalOperator": @@ -19024,7 +19048,7 @@ func awsAwsjson11_deserializeDocumentConditionCheckFailureException(v **types.Co if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19036,7 +19060,7 @@ func awsAwsjson11_deserializeDocumentConditionCheckFailureException(v **types.Co return nil } -func awsAwsjson11_deserializeDocumentConditionList(v *[]*types.Condition, value interface{}) error { +func awsAwsjson11_deserializeDocumentConditionList(v *[]types.Condition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19049,18 +19073,20 @@ func awsAwsjson11_deserializeDocumentConditionList(v *[]*types.Condition, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Condition + var cv []types.Condition if *v == nil { - cv = []*types.Condition{} + cv = []types.Condition{} } else { cv = *v } for _, value := range shape { - var col *types.Condition - if err := awsAwsjson11_deserializeDocumentCondition(&col, value); err != nil { + var col types.Condition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCondition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19096,7 +19122,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19140,7 +19166,7 @@ func awsAwsjson11_deserializeDocumentConfusionMatrix(v **types.ConfusionMatrix, if err != nil { return err } - sv.NumFalseNegatives = &i64 + sv.NumFalseNegatives = ptr.Int64(i64) } case "NumFalsePositives": @@ -19153,7 +19179,7 @@ func awsAwsjson11_deserializeDocumentConfusionMatrix(v **types.ConfusionMatrix, if err != nil { return err } - sv.NumFalsePositives = &i64 + sv.NumFalsePositives = ptr.Int64(i64) } case "NumTrueNegatives": @@ -19166,7 +19192,7 @@ func awsAwsjson11_deserializeDocumentConfusionMatrix(v **types.ConfusionMatrix, if err != nil { return err } - sv.NumTrueNegatives = &i64 + sv.NumTrueNegatives = ptr.Int64(i64) } case "NumTruePositives": @@ -19179,7 +19205,7 @@ func awsAwsjson11_deserializeDocumentConfusionMatrix(v **types.ConfusionMatrix, if err != nil { return err } - sv.NumTruePositives = &i64 + sv.NumTruePositives = ptr.Int64(i64) } default: @@ -19246,7 +19272,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LastUpdatedBy": @@ -19255,7 +19281,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.LastUpdatedBy = &jtv + sv.LastUpdatedBy = ptr.String(jtv) } case "LastUpdatedTime": @@ -19282,7 +19308,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PhysicalConnectionRequirements": @@ -19299,7 +19325,7 @@ func awsAwsjson11_deserializeDocumentConnection(v **types.Connection, value inte return nil } -func awsAwsjson11_deserializeDocumentConnectionList(v *[]*types.Connection, value interface{}) error { +func awsAwsjson11_deserializeDocumentConnectionList(v *[]types.Connection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19312,18 +19338,20 @@ func awsAwsjson11_deserializeDocumentConnectionList(v *[]*types.Connection, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Connection + var cv []types.Connection if *v == nil { - cv = []*types.Connection{} + cv = []types.Connection{} } else { cv = *v } for _, value := range shape { - var col *types.Connection - if err := awsAwsjson11_deserializeDocumentConnection(&col, value); err != nil { + var col types.Connection + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConnection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19359,7 +19387,7 @@ func awsAwsjson11_deserializeDocumentConnectionPasswordEncryption(v **types.Conn if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.AwsKmsKeyId = &jtv + sv.AwsKmsKeyId = ptr.String(jtv) } case "ReturnConnectionPasswordEncrypted": @@ -19368,7 +19396,7 @@ func awsAwsjson11_deserializeDocumentConnectionPasswordEncryption(v **types.Conn if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ReturnConnectionPasswordEncrypted = &jtv + sv.ReturnConnectionPasswordEncrypted = jtv } default: @@ -19380,7 +19408,7 @@ func awsAwsjson11_deserializeDocumentConnectionPasswordEncryption(v **types.Conn return nil } -func awsAwsjson11_deserializeDocumentConnectionProperties(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentConnectionProperties(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19393,21 +19421,21 @@ func awsAwsjson11_deserializeDocumentConnectionProperties(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ValueString to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -19493,7 +19521,7 @@ func awsAwsjson11_deserializeDocumentCrawl(v **types.Crawl, value interface{}) e if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "LogGroup": @@ -19502,7 +19530,7 @@ func awsAwsjson11_deserializeDocumentCrawl(v **types.Crawl, value interface{}) e if !ok { return fmt.Errorf("expected LogGroup to be of type string, got %T instead", value) } - sv.LogGroup = &jtv + sv.LogGroup = ptr.String(jtv) } case "LogStream": @@ -19511,7 +19539,7 @@ func awsAwsjson11_deserializeDocumentCrawl(v **types.Crawl, value interface{}) e if !ok { return fmt.Errorf("expected LogStream to be of type string, got %T instead", value) } - sv.LogStream = &jtv + sv.LogStream = ptr.String(jtv) } case "StartedOn": @@ -19578,7 +19606,7 @@ func awsAwsjson11_deserializeDocumentCrawler(v **types.Crawler, value interface{ if !ok { return fmt.Errorf("expected CrawlerConfiguration to be of type string, got %T instead", value) } - sv.Configuration = &jtv + sv.Configuration = ptr.String(jtv) } case "CrawlElapsedTime": @@ -19591,7 +19619,7 @@ func awsAwsjson11_deserializeDocumentCrawler(v **types.Crawler, value interface{ if err != nil { return err } - sv.CrawlElapsedTime = &i64 + sv.CrawlElapsedTime = i64 } case "CrawlerSecurityConfiguration": @@ -19600,7 +19628,7 @@ func awsAwsjson11_deserializeDocumentCrawler(v **types.Crawler, value interface{ if !ok { return fmt.Errorf("expected CrawlerSecurityConfiguration to be of type string, got %T instead", value) } - sv.CrawlerSecurityConfiguration = &jtv + sv.CrawlerSecurityConfiguration = ptr.String(jtv) } case "CreationTime": @@ -19622,7 +19650,7 @@ func awsAwsjson11_deserializeDocumentCrawler(v **types.Crawler, value interface{ if !ok { return fmt.Errorf("expected DatabaseName to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "Description": @@ -19631,7 +19659,7 @@ func awsAwsjson11_deserializeDocumentCrawler(v **types.Crawler, value interface{ if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LastCrawl": @@ -19658,7 +19686,7 @@ func awsAwsjson11_deserializeDocumentCrawler(v **types.Crawler, value interface{ if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RecrawlPolicy": @@ -19672,7 +19700,7 @@ func awsAwsjson11_deserializeDocumentCrawler(v **types.Crawler, value interface{ if !ok { return fmt.Errorf("expected Role to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "Schedule": @@ -19700,7 +19728,7 @@ func awsAwsjson11_deserializeDocumentCrawler(v **types.Crawler, value interface{ if !ok { return fmt.Errorf("expected TablePrefix to be of type string, got %T instead", value) } - sv.TablePrefix = &jtv + sv.TablePrefix = ptr.String(jtv) } case "Targets": @@ -19718,7 +19746,7 @@ func awsAwsjson11_deserializeDocumentCrawler(v **types.Crawler, value interface{ if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -19730,7 +19758,7 @@ func awsAwsjson11_deserializeDocumentCrawler(v **types.Crawler, value interface{ return nil } -func awsAwsjson11_deserializeDocumentCrawlerList(v *[]*types.Crawler, value interface{}) error { +func awsAwsjson11_deserializeDocumentCrawlerList(v *[]types.Crawler, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19743,18 +19771,20 @@ func awsAwsjson11_deserializeDocumentCrawlerList(v *[]*types.Crawler, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Crawler + var cv []types.Crawler if *v == nil { - cv = []*types.Crawler{} + cv = []types.Crawler{} } else { cv = *v } for _, value := range shape { - var col *types.Crawler - if err := awsAwsjson11_deserializeDocumentCrawler(&col, value); err != nil { + var col types.Crawler + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCrawler(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19790,7 +19820,7 @@ func awsAwsjson11_deserializeDocumentCrawlerMetrics(v **types.CrawlerMetrics, va if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.CrawlerName = &jtv + sv.CrawlerName = ptr.String(jtv) } case "LastRuntimeSeconds": @@ -19803,7 +19833,7 @@ func awsAwsjson11_deserializeDocumentCrawlerMetrics(v **types.CrawlerMetrics, va if err != nil { return err } - sv.LastRuntimeSeconds = &f64 + sv.LastRuntimeSeconds = f64 } case "MedianRuntimeSeconds": @@ -19816,7 +19846,7 @@ func awsAwsjson11_deserializeDocumentCrawlerMetrics(v **types.CrawlerMetrics, va if err != nil { return err } - sv.MedianRuntimeSeconds = &f64 + sv.MedianRuntimeSeconds = f64 } case "StillEstimating": @@ -19825,7 +19855,7 @@ func awsAwsjson11_deserializeDocumentCrawlerMetrics(v **types.CrawlerMetrics, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.StillEstimating = &jtv + sv.StillEstimating = jtv } case "TablesCreated": @@ -19838,7 +19868,7 @@ func awsAwsjson11_deserializeDocumentCrawlerMetrics(v **types.CrawlerMetrics, va if err != nil { return err } - sv.TablesCreated = ptr.Int32(int32(i64)) + sv.TablesCreated = int32(i64) } case "TablesDeleted": @@ -19851,7 +19881,7 @@ func awsAwsjson11_deserializeDocumentCrawlerMetrics(v **types.CrawlerMetrics, va if err != nil { return err } - sv.TablesDeleted = ptr.Int32(int32(i64)) + sv.TablesDeleted = int32(i64) } case "TablesUpdated": @@ -19864,7 +19894,7 @@ func awsAwsjson11_deserializeDocumentCrawlerMetrics(v **types.CrawlerMetrics, va if err != nil { return err } - sv.TablesUpdated = ptr.Int32(int32(i64)) + sv.TablesUpdated = int32(i64) } case "TimeLeftSeconds": @@ -19877,7 +19907,7 @@ func awsAwsjson11_deserializeDocumentCrawlerMetrics(v **types.CrawlerMetrics, va if err != nil { return err } - sv.TimeLeftSeconds = &f64 + sv.TimeLeftSeconds = f64 } default: @@ -19889,7 +19919,7 @@ func awsAwsjson11_deserializeDocumentCrawlerMetrics(v **types.CrawlerMetrics, va return nil } -func awsAwsjson11_deserializeDocumentCrawlerMetricsList(v *[]*types.CrawlerMetrics, value interface{}) error { +func awsAwsjson11_deserializeDocumentCrawlerMetricsList(v *[]types.CrawlerMetrics, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19902,18 +19932,20 @@ func awsAwsjson11_deserializeDocumentCrawlerMetricsList(v *[]*types.CrawlerMetri return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CrawlerMetrics + var cv []types.CrawlerMetrics if *v == nil { - cv = []*types.CrawlerMetrics{} + cv = []types.CrawlerMetrics{} } else { cv = *v } for _, value := range shape { - var col *types.CrawlerMetrics - if err := awsAwsjson11_deserializeDocumentCrawlerMetrics(&col, value); err != nil { + var col types.CrawlerMetrics + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCrawlerMetrics(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19921,7 +19953,7 @@ func awsAwsjson11_deserializeDocumentCrawlerMetricsList(v *[]*types.CrawlerMetri return nil } -func awsAwsjson11_deserializeDocumentCrawlerNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCrawlerNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19934,21 +19966,21 @@ func awsAwsjson11_deserializeDocumentCrawlerNameList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -20021,7 +20053,7 @@ func awsAwsjson11_deserializeDocumentCrawlerNotRunningException(v **types.Crawle if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20061,7 +20093,7 @@ func awsAwsjson11_deserializeDocumentCrawlerRunningException(v **types.CrawlerRu if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20101,7 +20133,7 @@ func awsAwsjson11_deserializeDocumentCrawlerStoppingException(v **types.CrawlerS if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20169,7 +20201,7 @@ func awsAwsjson11_deserializeDocumentCrawlerTargets(v **types.CrawlerTargets, va return nil } -func awsAwsjson11_deserializeDocumentCrawlList(v *[]*types.Crawl, value interface{}) error { +func awsAwsjson11_deserializeDocumentCrawlList(v *[]types.Crawl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20182,18 +20214,20 @@ func awsAwsjson11_deserializeDocumentCrawlList(v *[]*types.Crawl, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Crawl + var cv []types.Crawl if *v == nil { - cv = []*types.Crawl{} + cv = []types.Crawl{} } else { cv = *v } for _, value := range shape { - var col *types.Crawl - if err := awsAwsjson11_deserializeDocumentCrawl(&col, value); err != nil { + var col types.Crawl + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCrawl(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20229,7 +20263,7 @@ func awsAwsjson11_deserializeDocumentCsvClassifier(v **types.CsvClassifier, valu if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.AllowSingleColumn = &jtv + sv.AllowSingleColumn = ptr.Bool(jtv) } case "ContainsHeader": @@ -20260,7 +20294,7 @@ func awsAwsjson11_deserializeDocumentCsvClassifier(v **types.CsvClassifier, valu if !ok { return fmt.Errorf("expected CsvColumnDelimiter to be of type string, got %T instead", value) } - sv.Delimiter = &jtv + sv.Delimiter = ptr.String(jtv) } case "DisableValueTrimming": @@ -20269,7 +20303,7 @@ func awsAwsjson11_deserializeDocumentCsvClassifier(v **types.CsvClassifier, valu if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.DisableValueTrimming = &jtv + sv.DisableValueTrimming = ptr.Bool(jtv) } case "Header": @@ -20296,7 +20330,7 @@ func awsAwsjson11_deserializeDocumentCsvClassifier(v **types.CsvClassifier, valu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "QuoteSymbol": @@ -20305,7 +20339,7 @@ func awsAwsjson11_deserializeDocumentCsvClassifier(v **types.CsvClassifier, valu if !ok { return fmt.Errorf("expected CsvQuoteSymbol to be of type string, got %T instead", value) } - sv.QuoteSymbol = &jtv + sv.QuoteSymbol = ptr.String(jtv) } case "Version": @@ -20318,7 +20352,7 @@ func awsAwsjson11_deserializeDocumentCsvClassifier(v **types.CsvClassifier, valu if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -20330,7 +20364,7 @@ func awsAwsjson11_deserializeDocumentCsvClassifier(v **types.CsvClassifier, valu return nil } -func awsAwsjson11_deserializeDocumentCsvHeader(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCsvHeader(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20343,21 +20377,21 @@ func awsAwsjson11_deserializeDocumentCsvHeader(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -20366,7 +20400,7 @@ func awsAwsjson11_deserializeDocumentCsvHeader(v *[]*string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentDagEdges(v *[]*types.CodeGenEdge, value interface{}) error { +func awsAwsjson11_deserializeDocumentDagEdges(v *[]types.CodeGenEdge, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20379,18 +20413,20 @@ func awsAwsjson11_deserializeDocumentDagEdges(v *[]*types.CodeGenEdge, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CodeGenEdge + var cv []types.CodeGenEdge if *v == nil { - cv = []*types.CodeGenEdge{} + cv = []types.CodeGenEdge{} } else { cv = *v } for _, value := range shape { - var col *types.CodeGenEdge - if err := awsAwsjson11_deserializeDocumentCodeGenEdge(&col, value); err != nil { + var col types.CodeGenEdge + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCodeGenEdge(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20398,7 +20434,7 @@ func awsAwsjson11_deserializeDocumentDagEdges(v *[]*types.CodeGenEdge, value int return nil } -func awsAwsjson11_deserializeDocumentDagNodes(v *[]*types.CodeGenNode, value interface{}) error { +func awsAwsjson11_deserializeDocumentDagNodes(v *[]types.CodeGenNode, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20411,18 +20447,20 @@ func awsAwsjson11_deserializeDocumentDagNodes(v *[]*types.CodeGenNode, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CodeGenNode + var cv []types.CodeGenNode if *v == nil { - cv = []*types.CodeGenNode{} + cv = []types.CodeGenNode{} } else { cv = *v } for _, value := range shape { - var col *types.CodeGenNode - if err := awsAwsjson11_deserializeDocumentCodeGenNode(&col, value); err != nil { + var col types.CodeGenNode + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCodeGenNode(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20458,7 +20496,7 @@ func awsAwsjson11_deserializeDocumentDatabase(v **types.Database, value interfac if !ok { return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) } - sv.CatalogId = &jtv + sv.CatalogId = ptr.String(jtv) } case "CreateTableDefaultPermissions": @@ -20485,7 +20523,7 @@ func awsAwsjson11_deserializeDocumentDatabase(v **types.Database, value interfac if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LocationUri": @@ -20494,7 +20532,7 @@ func awsAwsjson11_deserializeDocumentDatabase(v **types.Database, value interfac if !ok { return fmt.Errorf("expected URI to be of type string, got %T instead", value) } - sv.LocationUri = &jtv + sv.LocationUri = ptr.String(jtv) } case "Name": @@ -20503,7 +20541,7 @@ func awsAwsjson11_deserializeDocumentDatabase(v **types.Database, value interfac if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Parameters": @@ -20553,7 +20591,7 @@ func awsAwsjson11_deserializeDocumentDatabaseIdentifier(v **types.DatabaseIdenti if !ok { return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) } - sv.CatalogId = &jtv + sv.CatalogId = ptr.String(jtv) } case "DatabaseName": @@ -20562,7 +20600,7 @@ func awsAwsjson11_deserializeDocumentDatabaseIdentifier(v **types.DatabaseIdenti if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } default: @@ -20574,7 +20612,7 @@ func awsAwsjson11_deserializeDocumentDatabaseIdentifier(v **types.DatabaseIdenti return nil } -func awsAwsjson11_deserializeDocumentDatabaseList(v *[]*types.Database, value interface{}) error { +func awsAwsjson11_deserializeDocumentDatabaseList(v *[]types.Database, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20587,18 +20625,20 @@ func awsAwsjson11_deserializeDocumentDatabaseList(v *[]*types.Database, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Database + var cv []types.Database if *v == nil { - cv = []*types.Database{} + cv = []types.Database{} } else { cv = *v } for _, value := range shape { - var col *types.Database - if err := awsAwsjson11_deserializeDocumentDatabase(&col, value); err != nil { + var col types.Database + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDatabase(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20675,7 +20715,7 @@ func awsAwsjson11_deserializeDocumentDataLakePrincipal(v **types.DataLakePrincip if !ok { return fmt.Errorf("expected DataLakePrincipalString to be of type string, got %T instead", value) } - sv.DataLakePrincipalIdentifier = &jtv + sv.DataLakePrincipalIdentifier = ptr.String(jtv) } default: @@ -20745,7 +20785,7 @@ func awsAwsjson11_deserializeDocumentDateColumnStatisticsData(v **types.DateColu if err != nil { return err } - sv.NumberOfDistinctValues = &i64 + sv.NumberOfDistinctValues = i64 } case "NumberOfNulls": @@ -20758,7 +20798,7 @@ func awsAwsjson11_deserializeDocumentDateColumnStatisticsData(v **types.DateColu if err != nil { return err } - sv.NumberOfNulls = &i64 + sv.NumberOfNulls = i64 } default: @@ -20812,7 +20852,7 @@ func awsAwsjson11_deserializeDocumentDecimalColumnStatisticsData(v **types.Decim if err != nil { return err } - sv.NumberOfDistinctValues = &i64 + sv.NumberOfDistinctValues = i64 } case "NumberOfNulls": @@ -20825,7 +20865,7 @@ func awsAwsjson11_deserializeDocumentDecimalColumnStatisticsData(v **types.Decim if err != nil { return err } - sv.NumberOfNulls = &i64 + sv.NumberOfNulls = i64 } default: @@ -20869,7 +20909,7 @@ func awsAwsjson11_deserializeDocumentDecimalNumber(v **types.DecimalNumber, valu if err != nil { return err } - sv.Scale = ptr.Int32(int32(i64)) + sv.Scale = int32(i64) } case "UnscaledValue": @@ -20927,7 +20967,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "CreatedTimestamp": @@ -20949,7 +20989,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EndpointName = &jtv + sv.EndpointName = ptr.String(jtv) } case "ExtraJarsS3Path": @@ -20958,7 +20998,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.ExtraJarsS3Path = &jtv + sv.ExtraJarsS3Path = ptr.String(jtv) } case "ExtraPythonLibsS3Path": @@ -20967,7 +21007,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.ExtraPythonLibsS3Path = &jtv + sv.ExtraPythonLibsS3Path = ptr.String(jtv) } case "FailureReason": @@ -20976,7 +21016,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "GlueVersion": @@ -20985,7 +21025,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GlueVersionString to be of type string, got %T instead", value) } - sv.GlueVersion = &jtv + sv.GlueVersion = ptr.String(jtv) } case "LastModifiedTimestamp": @@ -21007,7 +21047,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.LastUpdateStatus = &jtv + sv.LastUpdateStatus = ptr.String(jtv) } case "NumberOfNodes": @@ -21020,7 +21060,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if err != nil { return err } - sv.NumberOfNodes = ptr.Int32(int32(i64)) + sv.NumberOfNodes = int32(i64) } case "NumberOfWorkers": @@ -21042,7 +21082,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.PrivateAddress = &jtv + sv.PrivateAddress = ptr.String(jtv) } case "PublicAddress": @@ -21051,7 +21091,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.PublicAddress = &jtv + sv.PublicAddress = ptr.String(jtv) } case "PublicKey": @@ -21060,7 +21100,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.PublicKey = &jtv + sv.PublicKey = ptr.String(jtv) } case "PublicKeys": @@ -21074,7 +21114,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "SecurityConfiguration": @@ -21083,7 +21123,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.SecurityConfiguration = &jtv + sv.SecurityConfiguration = ptr.String(jtv) } case "SecurityGroupIds": @@ -21097,7 +21137,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "SubnetId": @@ -21106,7 +21146,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "VpcId": @@ -21115,7 +21155,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } case "WorkerType": @@ -21133,7 +21173,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.YarnEndpointAddress = &jtv + sv.YarnEndpointAddress = ptr.String(jtv) } case "ZeppelinRemoteSparkInterpreterPort": @@ -21146,7 +21186,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in if err != nil { return err } - sv.ZeppelinRemoteSparkInterpreterPort = ptr.Int32(int32(i64)) + sv.ZeppelinRemoteSparkInterpreterPort = int32(i64) } default: @@ -21158,7 +21198,7 @@ func awsAwsjson11_deserializeDocumentDevEndpoint(v **types.DevEndpoint, value in return nil } -func awsAwsjson11_deserializeDocumentDevEndpointList(v *[]*types.DevEndpoint, value interface{}) error { +func awsAwsjson11_deserializeDocumentDevEndpointList(v *[]types.DevEndpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21171,18 +21211,20 @@ func awsAwsjson11_deserializeDocumentDevEndpointList(v *[]*types.DevEndpoint, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DevEndpoint + var cv []types.DevEndpoint if *v == nil { - cv = []*types.DevEndpoint{} + cv = []types.DevEndpoint{} } else { cv = *v } for _, value := range shape { - var col *types.DevEndpoint - if err := awsAwsjson11_deserializeDocumentDevEndpoint(&col, value); err != nil { + var col types.DevEndpoint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDevEndpoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21190,7 +21232,7 @@ func awsAwsjson11_deserializeDocumentDevEndpointList(v *[]*types.DevEndpoint, va return nil } -func awsAwsjson11_deserializeDocumentDevEndpointNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDevEndpointNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21203,21 +21245,21 @@ func awsAwsjson11_deserializeDocumentDevEndpointNameList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -21226,7 +21268,7 @@ func awsAwsjson11_deserializeDocumentDevEndpointNameList(v *[]*string, value int return nil } -func awsAwsjson11_deserializeDocumentDevEndpointNames(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDevEndpointNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21239,21 +21281,21 @@ func awsAwsjson11_deserializeDocumentDevEndpointNames(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -21294,7 +21336,7 @@ func awsAwsjson11_deserializeDocumentDoubleColumnStatisticsData(v **types.Double if err != nil { return err } - sv.MaximumValue = &f64 + sv.MaximumValue = f64 } case "MinimumValue": @@ -21307,7 +21349,7 @@ func awsAwsjson11_deserializeDocumentDoubleColumnStatisticsData(v **types.Double if err != nil { return err } - sv.MinimumValue = &f64 + sv.MinimumValue = f64 } case "NumberOfDistinctValues": @@ -21320,7 +21362,7 @@ func awsAwsjson11_deserializeDocumentDoubleColumnStatisticsData(v **types.Double if err != nil { return err } - sv.NumberOfDistinctValues = &i64 + sv.NumberOfDistinctValues = i64 } case "NumberOfNulls": @@ -21333,7 +21375,7 @@ func awsAwsjson11_deserializeDocumentDoubleColumnStatisticsData(v **types.Double if err != nil { return err } - sv.NumberOfNulls = &i64 + sv.NumberOfNulls = i64 } default: @@ -21373,7 +21415,7 @@ func awsAwsjson11_deserializeDocumentDynamoDBTarget(v **types.DynamoDBTarget, va if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "scanAll": @@ -21382,7 +21424,7 @@ func awsAwsjson11_deserializeDocumentDynamoDBTarget(v **types.DynamoDBTarget, va if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.ScanAll = &jtv + sv.ScanAll = ptr.Bool(jtv) } case "scanRate": @@ -21395,7 +21437,7 @@ func awsAwsjson11_deserializeDocumentDynamoDBTarget(v **types.DynamoDBTarget, va if err != nil { return err } - sv.ScanRate = &f64 + sv.ScanRate = ptr.Float64(f64) } default: @@ -21407,7 +21449,7 @@ func awsAwsjson11_deserializeDocumentDynamoDBTarget(v **types.DynamoDBTarget, va return nil } -func awsAwsjson11_deserializeDocumentDynamoDBTargetList(v *[]*types.DynamoDBTarget, value interface{}) error { +func awsAwsjson11_deserializeDocumentDynamoDBTargetList(v *[]types.DynamoDBTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21420,18 +21462,20 @@ func awsAwsjson11_deserializeDocumentDynamoDBTargetList(v *[]*types.DynamoDBTarg return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DynamoDBTarget + var cv []types.DynamoDBTarget if *v == nil { - cv = []*types.DynamoDBTarget{} + cv = []types.DynamoDBTarget{} } else { cv = *v } for _, value := range shape { - var col *types.DynamoDBTarget - if err := awsAwsjson11_deserializeDocumentDynamoDBTarget(&col, value); err != nil { + var col types.DynamoDBTarget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDynamoDBTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21467,7 +21511,7 @@ func awsAwsjson11_deserializeDocumentEdge(v **types.Edge, value interface{}) err if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.DestinationId = &jtv + sv.DestinationId = ptr.String(jtv) } case "SourceId": @@ -21476,7 +21520,7 @@ func awsAwsjson11_deserializeDocumentEdge(v **types.Edge, value interface{}) err if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.SourceId = &jtv + sv.SourceId = ptr.String(jtv) } default: @@ -21488,7 +21532,7 @@ func awsAwsjson11_deserializeDocumentEdge(v **types.Edge, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentEdgeList(v *[]*types.Edge, value interface{}) error { +func awsAwsjson11_deserializeDocumentEdgeList(v *[]types.Edge, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21501,18 +21545,20 @@ func awsAwsjson11_deserializeDocumentEdgeList(v *[]*types.Edge, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Edge + var cv []types.Edge if *v == nil { - cv = []*types.Edge{} + cv = []types.Edge{} } else { cv = *v } for _, value := range shape { - var col *types.Edge - if err := awsAwsjson11_deserializeDocumentEdge(&col, value); err != nil { + var col types.Edge + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEdge(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21557,7 +21603,7 @@ func awsAwsjson11_deserializeDocumentEncryptionAtRest(v **types.EncryptionAtRest if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.SseAwsKmsKeyId = &jtv + sv.SseAwsKmsKeyId = ptr.String(jtv) } default: @@ -21643,7 +21689,7 @@ func awsAwsjson11_deserializeDocumentEntityNotFoundException(v **types.EntityNot if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21655,7 +21701,7 @@ func awsAwsjson11_deserializeDocumentEntityNotFoundException(v **types.EntityNot return nil } -func awsAwsjson11_deserializeDocumentErrorByName(v *map[string]*types.ErrorDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentErrorByName(v *map[string]types.ErrorDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21668,18 +21714,21 @@ func awsAwsjson11_deserializeDocumentErrorByName(v *map[string]*types.ErrorDetai return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.ErrorDetail + var mv map[string]types.ErrorDetail if *v == nil { - mv = map[string]*types.ErrorDetail{} + mv = map[string]types.ErrorDetail{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.ErrorDetail - if err := awsAwsjson11_deserializeDocumentErrorDetail(&parsedVal, value); err != nil { + var parsedVal types.ErrorDetail + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentErrorDetail(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -21715,7 +21764,7 @@ func awsAwsjson11_deserializeDocumentErrorDetail(v **types.ErrorDetail, value in if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -21724,7 +21773,7 @@ func awsAwsjson11_deserializeDocumentErrorDetail(v **types.ErrorDetail, value in if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -21813,7 +21862,7 @@ func awsAwsjson11_deserializeDocumentExecutionProperty(v **types.ExecutionProper if err != nil { return err } - sv.MaxConcurrentRuns = ptr.Int32(int32(i64)) + sv.MaxConcurrentRuns = int32(i64) } default: @@ -21853,7 +21902,7 @@ func awsAwsjson11_deserializeDocumentExportLabelsTaskRunProperties(v **types.Exp if !ok { return fmt.Errorf("expected UriString to be of type string, got %T instead", value) } - sv.OutputS3Path = &jtv + sv.OutputS3Path = ptr.String(jtv) } default: @@ -21897,7 +21946,7 @@ func awsAwsjson11_deserializeDocumentFindMatchesMetrics(v **types.FindMatchesMet if err != nil { return err } - sv.AreaUnderPRCurve = &f64 + sv.AreaUnderPRCurve = ptr.Float64(f64) } case "ConfusionMatrix": @@ -21915,7 +21964,7 @@ func awsAwsjson11_deserializeDocumentFindMatchesMetrics(v **types.FindMatchesMet if err != nil { return err } - sv.F1 = &f64 + sv.F1 = ptr.Float64(f64) } case "Precision": @@ -21928,7 +21977,7 @@ func awsAwsjson11_deserializeDocumentFindMatchesMetrics(v **types.FindMatchesMet if err != nil { return err } - sv.Precision = &f64 + sv.Precision = ptr.Float64(f64) } case "Recall": @@ -21941,7 +21990,7 @@ func awsAwsjson11_deserializeDocumentFindMatchesMetrics(v **types.FindMatchesMet if err != nil { return err } - sv.Recall = &f64 + sv.Recall = ptr.Float64(f64) } default: @@ -21985,7 +22034,7 @@ func awsAwsjson11_deserializeDocumentFindMatchesParameters(v **types.FindMatches if err != nil { return err } - sv.AccuracyCostTradeoff = &f64 + sv.AccuracyCostTradeoff = ptr.Float64(f64) } case "EnforceProvidedLabels": @@ -21994,7 +22043,7 @@ func awsAwsjson11_deserializeDocumentFindMatchesParameters(v **types.FindMatches if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.EnforceProvidedLabels = &jtv + sv.EnforceProvidedLabels = ptr.Bool(jtv) } case "PrecisionRecallTradeoff": @@ -22007,7 +22056,7 @@ func awsAwsjson11_deserializeDocumentFindMatchesParameters(v **types.FindMatches if err != nil { return err } - sv.PrecisionRecallTradeoff = &f64 + sv.PrecisionRecallTradeoff = ptr.Float64(f64) } case "PrimaryKeyColumnName": @@ -22016,7 +22065,7 @@ func awsAwsjson11_deserializeDocumentFindMatchesParameters(v **types.FindMatches if !ok { return fmt.Errorf("expected ColumnNameString to be of type string, got %T instead", value) } - sv.PrimaryKeyColumnName = &jtv + sv.PrimaryKeyColumnName = ptr.String(jtv) } default: @@ -22056,7 +22105,7 @@ func awsAwsjson11_deserializeDocumentFindMatchesTaskRunProperties(v **types.Find if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobName": @@ -22065,7 +22114,7 @@ func awsAwsjson11_deserializeDocumentFindMatchesTaskRunProperties(v **types.Find if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "JobRunId": @@ -22074,7 +22123,7 @@ func awsAwsjson11_deserializeDocumentFindMatchesTaskRunProperties(v **types.Find if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.JobRunId = &jtv + sv.JobRunId = ptr.String(jtv) } default: @@ -22086,7 +22135,7 @@ func awsAwsjson11_deserializeDocumentFindMatchesTaskRunProperties(v **types.Find return nil } -func awsAwsjson11_deserializeDocumentGenericMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentGenericMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22099,21 +22148,21 @@ func awsAwsjson11_deserializeDocumentGenericMap(v *map[string]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -22122,7 +22171,7 @@ func awsAwsjson11_deserializeDocumentGenericMap(v *map[string]*string, value int return nil } -func awsAwsjson11_deserializeDocumentGetResourcePoliciesResponseList(v *[]*types.GluePolicy, value interface{}) error { +func awsAwsjson11_deserializeDocumentGetResourcePoliciesResponseList(v *[]types.GluePolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22135,18 +22184,20 @@ func awsAwsjson11_deserializeDocumentGetResourcePoliciesResponseList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GluePolicy + var cv []types.GluePolicy if *v == nil { - cv = []*types.GluePolicy{} + cv = []types.GluePolicy{} } else { cv = *v } for _, value := range shape { - var col *types.GluePolicy - if err := awsAwsjson11_deserializeDocumentGluePolicy(&col, value); err != nil { + var col types.GluePolicy + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGluePolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22154,7 +22205,7 @@ func awsAwsjson11_deserializeDocumentGetResourcePoliciesResponseList(v *[]*types return nil } -func awsAwsjson11_deserializeDocumentGetTableVersionsList(v *[]*types.TableVersion, value interface{}) error { +func awsAwsjson11_deserializeDocumentGetTableVersionsList(v *[]types.TableVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22167,18 +22218,20 @@ func awsAwsjson11_deserializeDocumentGetTableVersionsList(v *[]*types.TableVersi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TableVersion + var cv []types.TableVersion if *v == nil { - cv = []*types.TableVersion{} + cv = []types.TableVersion{} } else { cv = *v } for _, value := range shape { - var col *types.TableVersion - if err := awsAwsjson11_deserializeDocumentTableVersion(&col, value); err != nil { + var col types.TableVersion + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTableVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22214,7 +22267,7 @@ func awsAwsjson11_deserializeDocumentGlueEncryptionException(v **types.GlueEncry if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22267,7 +22320,7 @@ func awsAwsjson11_deserializeDocumentGluePolicy(v **types.GluePolicy, value inte if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.PolicyHash = &jtv + sv.PolicyHash = ptr.String(jtv) } case "PolicyInJson": @@ -22276,7 +22329,7 @@ func awsAwsjson11_deserializeDocumentGluePolicy(v **types.GluePolicy, value inte if !ok { return fmt.Errorf("expected PolicyJsonString to be of type string, got %T instead", value) } - sv.PolicyInJson = &jtv + sv.PolicyInJson = ptr.String(jtv) } case "UpdateTime": @@ -22329,7 +22382,7 @@ func awsAwsjson11_deserializeDocumentGlueTable(v **types.GlueTable, value interf if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.CatalogId = &jtv + sv.CatalogId = ptr.String(jtv) } case "ConnectionName": @@ -22338,7 +22391,7 @@ func awsAwsjson11_deserializeDocumentGlueTable(v **types.GlueTable, value interf if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.ConnectionName = &jtv + sv.ConnectionName = ptr.String(jtv) } case "DatabaseName": @@ -22347,7 +22400,7 @@ func awsAwsjson11_deserializeDocumentGlueTable(v **types.GlueTable, value interf if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "TableName": @@ -22356,7 +22409,7 @@ func awsAwsjson11_deserializeDocumentGlueTable(v **types.GlueTable, value interf if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -22368,7 +22421,7 @@ func awsAwsjson11_deserializeDocumentGlueTable(v **types.GlueTable, value interf return nil } -func awsAwsjson11_deserializeDocumentGlueTables(v *[]*types.GlueTable, value interface{}) error { +func awsAwsjson11_deserializeDocumentGlueTables(v *[]types.GlueTable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22381,18 +22434,20 @@ func awsAwsjson11_deserializeDocumentGlueTables(v *[]*types.GlueTable, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GlueTable + var cv []types.GlueTable if *v == nil { - cv = []*types.GlueTable{} + cv = []types.GlueTable{} } else { cv = *v } for _, value := range shape { - var col *types.GlueTable - if err := awsAwsjson11_deserializeDocumentGlueTable(&col, value); err != nil { + var col types.GlueTable + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGlueTable(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22428,7 +22483,7 @@ func awsAwsjson11_deserializeDocumentGrokClassifier(v **types.GrokClassifier, va if !ok { return fmt.Errorf("expected Classification to be of type string, got %T instead", value) } - sv.Classification = &jtv + sv.Classification = ptr.String(jtv) } case "CreationTime": @@ -22450,7 +22505,7 @@ func awsAwsjson11_deserializeDocumentGrokClassifier(v **types.GrokClassifier, va if !ok { return fmt.Errorf("expected CustomPatterns to be of type string, got %T instead", value) } - sv.CustomPatterns = &jtv + sv.CustomPatterns = ptr.String(jtv) } case "GrokPattern": @@ -22459,7 +22514,7 @@ func awsAwsjson11_deserializeDocumentGrokClassifier(v **types.GrokClassifier, va if !ok { return fmt.Errorf("expected GrokPattern to be of type string, got %T instead", value) } - sv.GrokPattern = &jtv + sv.GrokPattern = ptr.String(jtv) } case "LastUpdated": @@ -22481,7 +22536,7 @@ func awsAwsjson11_deserializeDocumentGrokClassifier(v **types.GrokClassifier, va if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Version": @@ -22494,7 +22549,7 @@ func awsAwsjson11_deserializeDocumentGrokClassifier(v **types.GrokClassifier, va if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -22534,7 +22589,7 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22574,7 +22629,7 @@ func awsAwsjson11_deserializeDocumentIllegalWorkflowStateException(v **types.Ill if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22614,7 +22669,7 @@ func awsAwsjson11_deserializeDocumentImportLabelsTaskRunProperties(v **types.Imp if !ok { return fmt.Errorf("expected UriString to be of type string, got %T instead", value) } - sv.InputS3Path = &jtv + sv.InputS3Path = ptr.String(jtv) } case "Replace": @@ -22623,7 +22678,7 @@ func awsAwsjson11_deserializeDocumentImportLabelsTaskRunProperties(v **types.Imp if !ok { return fmt.Errorf("expected ReplaceBoolean to be of type *bool, got %T instead", value) } - sv.Replace = &jtv + sv.Replace = jtv } default: @@ -22663,7 +22718,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22703,7 +22758,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22743,7 +22798,7 @@ func awsAwsjson11_deserializeDocumentJdbcTarget(v **types.JdbcTarget, value inte if !ok { return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) } - sv.ConnectionName = &jtv + sv.ConnectionName = ptr.String(jtv) } case "Exclusions": @@ -22757,7 +22812,7 @@ func awsAwsjson11_deserializeDocumentJdbcTarget(v **types.JdbcTarget, value inte if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } default: @@ -22769,7 +22824,7 @@ func awsAwsjson11_deserializeDocumentJdbcTarget(v **types.JdbcTarget, value inte return nil } -func awsAwsjson11_deserializeDocumentJdbcTargetList(v *[]*types.JdbcTarget, value interface{}) error { +func awsAwsjson11_deserializeDocumentJdbcTargetList(v *[]types.JdbcTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22782,18 +22837,20 @@ func awsAwsjson11_deserializeDocumentJdbcTargetList(v *[]*types.JdbcTarget, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JdbcTarget + var cv []types.JdbcTarget if *v == nil { - cv = []*types.JdbcTarget{} + cv = []types.JdbcTarget{} } else { cv = *v } for _, value := range shape { - var col *types.JdbcTarget - if err := awsAwsjson11_deserializeDocumentJdbcTarget(&col, value); err != nil { + var col types.JdbcTarget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentJdbcTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22833,7 +22890,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if err != nil { return err } - sv.AllocatedCapacity = ptr.Int32(int32(i64)) + sv.AllocatedCapacity = int32(i64) } case "Command": @@ -22870,7 +22927,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ExecutionProperty": @@ -22884,7 +22941,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected GlueVersionString to be of type string, got %T instead", value) } - sv.GlueVersion = &jtv + sv.GlueVersion = ptr.String(jtv) } case "LastModifiedOn": @@ -22906,7 +22963,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected UriString to be of type string, got %T instead", value) } - sv.LogUri = &jtv + sv.LogUri = ptr.String(jtv) } case "MaxCapacity": @@ -22919,7 +22976,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if err != nil { return err } - sv.MaxCapacity = &f64 + sv.MaxCapacity = ptr.Float64(f64) } case "MaxRetries": @@ -22932,7 +22989,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if err != nil { return err } - sv.MaxRetries = ptr.Int32(int32(i64)) + sv.MaxRetries = int32(i64) } case "Name": @@ -22941,7 +22998,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NonOverridableArguments": @@ -22973,7 +23030,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected RoleString to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "SecurityConfiguration": @@ -22982,7 +23039,7 @@ func awsAwsjson11_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.SecurityConfiguration = &jtv + sv.SecurityConfiguration = ptr.String(jtv) } case "Timeout": @@ -23048,7 +23105,7 @@ func awsAwsjson11_deserializeDocumentJobBookmarkEntry(v **types.JobBookmarkEntry if err != nil { return err } - sv.Attempt = ptr.Int32(int32(i64)) + sv.Attempt = int32(i64) } case "JobBookmark": @@ -23057,7 +23114,7 @@ func awsAwsjson11_deserializeDocumentJobBookmarkEntry(v **types.JobBookmarkEntry if !ok { return fmt.Errorf("expected JsonValue to be of type string, got %T instead", value) } - sv.JobBookmark = &jtv + sv.JobBookmark = ptr.String(jtv) } case "JobName": @@ -23066,7 +23123,7 @@ func awsAwsjson11_deserializeDocumentJobBookmarkEntry(v **types.JobBookmarkEntry if !ok { return fmt.Errorf("expected JobName to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "PreviousRunId": @@ -23075,7 +23132,7 @@ func awsAwsjson11_deserializeDocumentJobBookmarkEntry(v **types.JobBookmarkEntry if !ok { return fmt.Errorf("expected RunId to be of type string, got %T instead", value) } - sv.PreviousRunId = &jtv + sv.PreviousRunId = ptr.String(jtv) } case "Run": @@ -23088,7 +23145,7 @@ func awsAwsjson11_deserializeDocumentJobBookmarkEntry(v **types.JobBookmarkEntry if err != nil { return err } - sv.Run = ptr.Int32(int32(i64)) + sv.Run = int32(i64) } case "RunId": @@ -23097,7 +23154,7 @@ func awsAwsjson11_deserializeDocumentJobBookmarkEntry(v **types.JobBookmarkEntry if !ok { return fmt.Errorf("expected RunId to be of type string, got %T instead", value) } - sv.RunId = &jtv + sv.RunId = ptr.String(jtv) } case "Version": @@ -23110,7 +23167,7 @@ func awsAwsjson11_deserializeDocumentJobBookmarkEntry(v **types.JobBookmarkEntry if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -23159,7 +23216,7 @@ func awsAwsjson11_deserializeDocumentJobBookmarksEncryption(v **types.JobBookmar if !ok { return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } default: @@ -23199,7 +23256,7 @@ func awsAwsjson11_deserializeDocumentJobCommand(v **types.JobCommand, value inte if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PythonVersion": @@ -23208,7 +23265,7 @@ func awsAwsjson11_deserializeDocumentJobCommand(v **types.JobCommand, value inte if !ok { return fmt.Errorf("expected PythonVersionString to be of type string, got %T instead", value) } - sv.PythonVersion = &jtv + sv.PythonVersion = ptr.String(jtv) } case "ScriptLocation": @@ -23217,7 +23274,7 @@ func awsAwsjson11_deserializeDocumentJobCommand(v **types.JobCommand, value inte if !ok { return fmt.Errorf("expected ScriptLocationString to be of type string, got %T instead", value) } - sv.ScriptLocation = &jtv + sv.ScriptLocation = ptr.String(jtv) } default: @@ -23229,7 +23286,7 @@ func awsAwsjson11_deserializeDocumentJobCommand(v **types.JobCommand, value inte return nil } -func awsAwsjson11_deserializeDocumentJobList(v *[]*types.Job, value interface{}) error { +func awsAwsjson11_deserializeDocumentJobList(v *[]types.Job, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23242,18 +23299,20 @@ func awsAwsjson11_deserializeDocumentJobList(v *[]*types.Job, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Job + var cv []types.Job if *v == nil { - cv = []*types.Job{} + cv = []types.Job{} } else { cv = *v } for _, value := range shape { - var col *types.Job - if err := awsAwsjson11_deserializeDocumentJob(&col, value); err != nil { + var col types.Job + destAddr := &col + if err := awsAwsjson11_deserializeDocumentJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23261,7 +23320,7 @@ func awsAwsjson11_deserializeDocumentJobList(v *[]*types.Job, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentJobNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentJobNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23274,21 +23333,21 @@ func awsAwsjson11_deserializeDocumentJobNameList(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -23365,7 +23424,7 @@ func awsAwsjson11_deserializeDocumentJobRun(v **types.JobRun, value interface{}) if err != nil { return err } - sv.AllocatedCapacity = ptr.Int32(int32(i64)) + sv.AllocatedCapacity = int32(i64) } case "Arguments": @@ -23383,7 +23442,7 @@ func awsAwsjson11_deserializeDocumentJobRun(v **types.JobRun, value interface{}) if err != nil { return err } - sv.Attempt = ptr.Int32(int32(i64)) + sv.Attempt = int32(i64) } case "CompletedOn": @@ -23405,7 +23464,7 @@ func awsAwsjson11_deserializeDocumentJobRun(v **types.JobRun, value interface{}) if !ok { return fmt.Errorf("expected ErrorString to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "ExecutionTime": @@ -23418,7 +23477,7 @@ func awsAwsjson11_deserializeDocumentJobRun(v **types.JobRun, value interface{}) if err != nil { return err } - sv.ExecutionTime = ptr.Int32(int32(i64)) + sv.ExecutionTime = int32(i64) } case "GlueVersion": @@ -23427,7 +23486,7 @@ func awsAwsjson11_deserializeDocumentJobRun(v **types.JobRun, value interface{}) if !ok { return fmt.Errorf("expected GlueVersionString to be of type string, got %T instead", value) } - sv.GlueVersion = &jtv + sv.GlueVersion = ptr.String(jtv) } case "Id": @@ -23436,7 +23495,7 @@ func awsAwsjson11_deserializeDocumentJobRun(v **types.JobRun, value interface{}) if !ok { return fmt.Errorf("expected IdString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "JobName": @@ -23445,7 +23504,7 @@ func awsAwsjson11_deserializeDocumentJobRun(v **types.JobRun, value interface{}) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "JobRunState": @@ -23476,7 +23535,7 @@ func awsAwsjson11_deserializeDocumentJobRun(v **types.JobRun, value interface{}) if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } case "MaxCapacity": @@ -23489,7 +23548,7 @@ func awsAwsjson11_deserializeDocumentJobRun(v **types.JobRun, value interface{}) if err != nil { return err } - sv.MaxCapacity = &f64 + sv.MaxCapacity = ptr.Float64(f64) } case "NotificationProperty": @@ -23521,7 +23580,7 @@ func awsAwsjson11_deserializeDocumentJobRun(v **types.JobRun, value interface{}) if !ok { return fmt.Errorf("expected IdString to be of type string, got %T instead", value) } - sv.PreviousRunId = &jtv + sv.PreviousRunId = ptr.String(jtv) } case "SecurityConfiguration": @@ -23530,7 +23589,7 @@ func awsAwsjson11_deserializeDocumentJobRun(v **types.JobRun, value interface{}) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.SecurityConfiguration = &jtv + sv.SecurityConfiguration = ptr.String(jtv) } case "StartedOn": @@ -23565,7 +23624,7 @@ func awsAwsjson11_deserializeDocumentJobRun(v **types.JobRun, value interface{}) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.TriggerName = &jtv + sv.TriggerName = ptr.String(jtv) } case "WorkerType": @@ -23586,7 +23645,7 @@ func awsAwsjson11_deserializeDocumentJobRun(v **types.JobRun, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentJobRunList(v *[]*types.JobRun, value interface{}) error { +func awsAwsjson11_deserializeDocumentJobRunList(v *[]types.JobRun, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23599,18 +23658,20 @@ func awsAwsjson11_deserializeDocumentJobRunList(v *[]*types.JobRun, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobRun + var cv []types.JobRun if *v == nil { - cv = []*types.JobRun{} + cv = []types.JobRun{} } else { cv = *v } for _, value := range shape { - var col *types.JobRun - if err := awsAwsjson11_deserializeDocumentJobRun(&col, value); err != nil { + var col types.JobRun + destAddr := &col + if err := awsAwsjson11_deserializeDocumentJobRun(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23659,7 +23720,7 @@ func awsAwsjson11_deserializeDocumentJsonClassifier(v **types.JsonClassifier, va if !ok { return fmt.Errorf("expected JsonPath to be of type string, got %T instead", value) } - sv.JsonPath = &jtv + sv.JsonPath = ptr.String(jtv) } case "LastUpdated": @@ -23681,7 +23742,7 @@ func awsAwsjson11_deserializeDocumentJsonClassifier(v **types.JsonClassifier, va if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Version": @@ -23694,7 +23755,7 @@ func awsAwsjson11_deserializeDocumentJsonClassifier(v **types.JsonClassifier, va if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -23734,7 +23795,7 @@ func awsAwsjson11_deserializeDocumentKeySchemaElement(v **types.KeySchemaElement if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Type": @@ -23743,7 +23804,7 @@ func awsAwsjson11_deserializeDocumentKeySchemaElement(v **types.KeySchemaElement if !ok { return fmt.Errorf("expected ColumnTypeString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -23755,7 +23816,7 @@ func awsAwsjson11_deserializeDocumentKeySchemaElement(v **types.KeySchemaElement return nil } -func awsAwsjson11_deserializeDocumentKeySchemaElementList(v *[]*types.KeySchemaElement, value interface{}) error { +func awsAwsjson11_deserializeDocumentKeySchemaElementList(v *[]types.KeySchemaElement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23768,18 +23829,20 @@ func awsAwsjson11_deserializeDocumentKeySchemaElementList(v *[]*types.KeySchemaE return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeySchemaElement + var cv []types.KeySchemaElement if *v == nil { - cv = []*types.KeySchemaElement{} + cv = []types.KeySchemaElement{} } else { cv = *v } for _, value := range shape { - var col *types.KeySchemaElement - if err := awsAwsjson11_deserializeDocumentKeySchemaElement(&col, value); err != nil { + var col types.KeySchemaElement + destAddr := &col + if err := awsAwsjson11_deserializeDocumentKeySchemaElement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23815,7 +23878,7 @@ func awsAwsjson11_deserializeDocumentLabelingSetGenerationTaskRunProperties(v ** if !ok { return fmt.Errorf("expected UriString to be of type string, got %T instead", value) } - sv.OutputS3Path = &jtv + sv.OutputS3Path = ptr.String(jtv) } default: @@ -23855,7 +23918,7 @@ func awsAwsjson11_deserializeDocumentLastCrawlInfo(v **types.LastCrawlInfo, valu if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "LogGroup": @@ -23864,7 +23927,7 @@ func awsAwsjson11_deserializeDocumentLastCrawlInfo(v **types.LastCrawlInfo, valu if !ok { return fmt.Errorf("expected LogGroup to be of type string, got %T instead", value) } - sv.LogGroup = &jtv + sv.LogGroup = ptr.String(jtv) } case "LogStream": @@ -23873,7 +23936,7 @@ func awsAwsjson11_deserializeDocumentLastCrawlInfo(v **types.LastCrawlInfo, valu if !ok { return fmt.Errorf("expected LogStream to be of type string, got %T instead", value) } - sv.LogStream = &jtv + sv.LogStream = ptr.String(jtv) } case "MessagePrefix": @@ -23882,7 +23945,7 @@ func awsAwsjson11_deserializeDocumentLastCrawlInfo(v **types.LastCrawlInfo, valu if !ok { return fmt.Errorf("expected MessagePrefix to be of type string, got %T instead", value) } - sv.MessagePrefix = &jtv + sv.MessagePrefix = ptr.String(jtv) } case "StartTime": @@ -23916,7 +23979,7 @@ func awsAwsjson11_deserializeDocumentLastCrawlInfo(v **types.LastCrawlInfo, valu return nil } -func awsAwsjson11_deserializeDocumentLocationMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLocationMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23929,21 +23992,21 @@ func awsAwsjson11_deserializeDocumentLocationMap(v *map[string]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ColumnValuesString to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -23984,7 +24047,7 @@ func awsAwsjson11_deserializeDocumentLongColumnStatisticsData(v **types.LongColu if err != nil { return err } - sv.MaximumValue = &i64 + sv.MaximumValue = i64 } case "MinimumValue": @@ -23997,7 +24060,7 @@ func awsAwsjson11_deserializeDocumentLongColumnStatisticsData(v **types.LongColu if err != nil { return err } - sv.MinimumValue = &i64 + sv.MinimumValue = i64 } case "NumberOfDistinctValues": @@ -24010,7 +24073,7 @@ func awsAwsjson11_deserializeDocumentLongColumnStatisticsData(v **types.LongColu if err != nil { return err } - sv.NumberOfDistinctValues = &i64 + sv.NumberOfDistinctValues = i64 } case "NumberOfNulls": @@ -24023,7 +24086,7 @@ func awsAwsjson11_deserializeDocumentLongColumnStatisticsData(v **types.LongColu if err != nil { return err } - sv.NumberOfNulls = &i64 + sv.NumberOfNulls = i64 } default: @@ -24063,7 +24126,7 @@ func awsAwsjson11_deserializeDocumentMappingEntry(v **types.MappingEntry, value if !ok { return fmt.Errorf("expected SchemaPathString to be of type string, got %T instead", value) } - sv.SourcePath = &jtv + sv.SourcePath = ptr.String(jtv) } case "SourceTable": @@ -24072,7 +24135,7 @@ func awsAwsjson11_deserializeDocumentMappingEntry(v **types.MappingEntry, value if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.SourceTable = &jtv + sv.SourceTable = ptr.String(jtv) } case "SourceType": @@ -24081,7 +24144,7 @@ func awsAwsjson11_deserializeDocumentMappingEntry(v **types.MappingEntry, value if !ok { return fmt.Errorf("expected FieldType to be of type string, got %T instead", value) } - sv.SourceType = &jtv + sv.SourceType = ptr.String(jtv) } case "TargetPath": @@ -24090,7 +24153,7 @@ func awsAwsjson11_deserializeDocumentMappingEntry(v **types.MappingEntry, value if !ok { return fmt.Errorf("expected SchemaPathString to be of type string, got %T instead", value) } - sv.TargetPath = &jtv + sv.TargetPath = ptr.String(jtv) } case "TargetTable": @@ -24099,7 +24162,7 @@ func awsAwsjson11_deserializeDocumentMappingEntry(v **types.MappingEntry, value if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TargetTable = &jtv + sv.TargetTable = ptr.String(jtv) } case "TargetType": @@ -24108,7 +24171,7 @@ func awsAwsjson11_deserializeDocumentMappingEntry(v **types.MappingEntry, value if !ok { return fmt.Errorf("expected FieldType to be of type string, got %T instead", value) } - sv.TargetType = &jtv + sv.TargetType = ptr.String(jtv) } default: @@ -24120,7 +24183,7 @@ func awsAwsjson11_deserializeDocumentMappingEntry(v **types.MappingEntry, value return nil } -func awsAwsjson11_deserializeDocumentMappingList(v *[]*types.MappingEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentMappingList(v *[]types.MappingEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24133,18 +24196,20 @@ func awsAwsjson11_deserializeDocumentMappingList(v *[]*types.MappingEntry, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MappingEntry + var cv []types.MappingEntry if *v == nil { - cv = []*types.MappingEntry{} + cv = []types.MappingEntry{} } else { cv = *v } for _, value := range shape { - var col *types.MappingEntry - if err := awsAwsjson11_deserializeDocumentMappingEntry(&col, value); err != nil { + var col types.MappingEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMappingEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24152,7 +24217,7 @@ func awsAwsjson11_deserializeDocumentMappingList(v *[]*types.MappingEntry, value return nil } -func awsAwsjson11_deserializeDocumentMapValue(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentMapValue(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24165,21 +24230,21 @@ func awsAwsjson11_deserializeDocumentMapValue(v *map[string]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -24188,7 +24253,7 @@ func awsAwsjson11_deserializeDocumentMapValue(v *map[string]*string, value inter return nil } -func awsAwsjson11_deserializeDocumentMatchCriteria(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentMatchCriteria(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24201,21 +24266,21 @@ func awsAwsjson11_deserializeDocumentMatchCriteria(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -24265,7 +24330,7 @@ func awsAwsjson11_deserializeDocumentMLTransform(v **types.MLTransform, value in if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EvaluationMetrics": @@ -24279,7 +24344,7 @@ func awsAwsjson11_deserializeDocumentMLTransform(v **types.MLTransform, value in if !ok { return fmt.Errorf("expected GlueVersionString to be of type string, got %T instead", value) } - sv.GlueVersion = &jtv + sv.GlueVersion = ptr.String(jtv) } case "InputRecordTables": @@ -24297,7 +24362,7 @@ func awsAwsjson11_deserializeDocumentMLTransform(v **types.MLTransform, value in if err != nil { return err } - sv.LabelCount = ptr.Int32(int32(i64)) + sv.LabelCount = int32(i64) } case "LastModifiedOn": @@ -24323,7 +24388,7 @@ func awsAwsjson11_deserializeDocumentMLTransform(v **types.MLTransform, value in if err != nil { return err } - sv.MaxCapacity = &f64 + sv.MaxCapacity = ptr.Float64(f64) } case "MaxRetries": @@ -24345,7 +24410,7 @@ func awsAwsjson11_deserializeDocumentMLTransform(v **types.MLTransform, value in if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NumberOfWorkers": @@ -24372,7 +24437,7 @@ func awsAwsjson11_deserializeDocumentMLTransform(v **types.MLTransform, value in if !ok { return fmt.Errorf("expected RoleString to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "Schema": @@ -24413,7 +24478,7 @@ func awsAwsjson11_deserializeDocumentMLTransform(v **types.MLTransform, value in if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TransformId = &jtv + sv.TransformId = ptr.String(jtv) } case "WorkerType": @@ -24462,7 +24527,7 @@ func awsAwsjson11_deserializeDocumentMLTransformNotReadyException(v **types.MLTr if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24502,7 +24567,7 @@ func awsAwsjson11_deserializeDocumentMLUserDataEncryption(v **types.MLUserDataEn if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "MlUserDataEncryptionMode": @@ -24551,7 +24616,7 @@ func awsAwsjson11_deserializeDocumentMongoDBTarget(v **types.MongoDBTarget, valu if !ok { return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) } - sv.ConnectionName = &jtv + sv.ConnectionName = ptr.String(jtv) } case "Path": @@ -24560,7 +24625,7 @@ func awsAwsjson11_deserializeDocumentMongoDBTarget(v **types.MongoDBTarget, valu if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "ScanAll": @@ -24569,7 +24634,7 @@ func awsAwsjson11_deserializeDocumentMongoDBTarget(v **types.MongoDBTarget, valu if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.ScanAll = &jtv + sv.ScanAll = ptr.Bool(jtv) } default: @@ -24581,7 +24646,7 @@ func awsAwsjson11_deserializeDocumentMongoDBTarget(v **types.MongoDBTarget, valu return nil } -func awsAwsjson11_deserializeDocumentMongoDBTargetList(v *[]*types.MongoDBTarget, value interface{}) error { +func awsAwsjson11_deserializeDocumentMongoDBTargetList(v *[]types.MongoDBTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24594,18 +24659,20 @@ func awsAwsjson11_deserializeDocumentMongoDBTargetList(v *[]*types.MongoDBTarget return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MongoDBTarget + var cv []types.MongoDBTarget if *v == nil { - cv = []*types.MongoDBTarget{} + cv = []types.MongoDBTarget{} } else { cv = *v } for _, value := range shape { - var col *types.MongoDBTarget - if err := awsAwsjson11_deserializeDocumentMongoDBTarget(&col, value); err != nil { + var col types.MongoDBTarget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMongoDBTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24613,7 +24680,7 @@ func awsAwsjson11_deserializeDocumentMongoDBTargetList(v *[]*types.MongoDBTarget return nil } -func awsAwsjson11_deserializeDocumentNameStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentNameStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24626,21 +24693,21 @@ func awsAwsjson11_deserializeDocumentNameStringList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -24687,7 +24754,7 @@ func awsAwsjson11_deserializeDocumentNode(v **types.Node, value interface{}) err if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "TriggerDetails": @@ -24710,7 +24777,7 @@ func awsAwsjson11_deserializeDocumentNode(v **types.Node, value interface{}) err if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.UniqueId = &jtv + sv.UniqueId = ptr.String(jtv) } default: @@ -24722,7 +24789,7 @@ func awsAwsjson11_deserializeDocumentNode(v **types.Node, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentNodeIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentNodeIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24735,21 +24802,21 @@ func awsAwsjson11_deserializeDocumentNodeIdList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -24758,7 +24825,7 @@ func awsAwsjson11_deserializeDocumentNodeIdList(v *[]*string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentNodeList(v *[]*types.Node, value interface{}) error { +func awsAwsjson11_deserializeDocumentNodeList(v *[]types.Node, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24771,18 +24838,20 @@ func awsAwsjson11_deserializeDocumentNodeList(v *[]*types.Node, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Node + var cv []types.Node if *v == nil { - cv = []*types.Node{} + cv = []types.Node{} } else { cv = *v } for _, value := range shape { - var col *types.Node - if err := awsAwsjson11_deserializeDocumentNode(&col, value); err != nil { + var col types.Node + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNode(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24818,7 +24887,7 @@ func awsAwsjson11_deserializeDocumentNoScheduleException(v **types.NoScheduleExc if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24902,7 +24971,7 @@ func awsAwsjson11_deserializeDocumentOperationTimeoutException(v **types.Operati if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24914,7 +24983,7 @@ func awsAwsjson11_deserializeDocumentOperationTimeoutException(v **types.Operati return nil } -func awsAwsjson11_deserializeDocumentOrchestrationStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrchestrationStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24927,21 +24996,21 @@ func awsAwsjson11_deserializeDocumentOrchestrationStringList(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -24978,7 +25047,7 @@ func awsAwsjson11_deserializeDocumentOrder(v **types.Order, value interface{}) e if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Column = &jtv + sv.Column = ptr.String(jtv) } case "SortOrder": @@ -24991,7 +25060,7 @@ func awsAwsjson11_deserializeDocumentOrder(v **types.Order, value interface{}) e if err != nil { return err } - sv.SortOrder = ptr.Int32(int32(i64)) + sv.SortOrder = int32(i64) } default: @@ -25003,7 +25072,7 @@ func awsAwsjson11_deserializeDocumentOrder(v **types.Order, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentOrderList(v *[]*types.Order, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrderList(v *[]types.Order, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25016,18 +25085,20 @@ func awsAwsjson11_deserializeDocumentOrderList(v *[]*types.Order, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Order + var cv []types.Order if *v == nil { - cv = []*types.Order{} + cv = []types.Order{} } else { cv = *v } for _, value := range shape { - var col *types.Order - if err := awsAwsjson11_deserializeDocumentOrder(&col, value); err != nil { + var col types.Order + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrder(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25035,7 +25106,7 @@ func awsAwsjson11_deserializeDocumentOrderList(v *[]*types.Order, value interfac return nil } -func awsAwsjson11_deserializeDocumentParametersMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentParametersMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25048,21 +25119,21 @@ func awsAwsjson11_deserializeDocumentParametersMap(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParametersMapValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -25099,7 +25170,7 @@ func awsAwsjson11_deserializeDocumentPartition(v **types.Partition, value interf if !ok { return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) } - sv.CatalogId = &jtv + sv.CatalogId = ptr.String(jtv) } case "CreationTime": @@ -25121,7 +25192,7 @@ func awsAwsjson11_deserializeDocumentPartition(v **types.Partition, value interf if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "LastAccessTime": @@ -25166,7 +25237,7 @@ func awsAwsjson11_deserializeDocumentPartition(v **types.Partition, value interf if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "Values": @@ -25224,7 +25295,7 @@ func awsAwsjson11_deserializeDocumentPartitionError(v **types.PartitionError, va return nil } -func awsAwsjson11_deserializeDocumentPartitionErrors(v *[]*types.PartitionError, value interface{}) error { +func awsAwsjson11_deserializeDocumentPartitionErrors(v *[]types.PartitionError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25237,18 +25308,20 @@ func awsAwsjson11_deserializeDocumentPartitionErrors(v *[]*types.PartitionError, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PartitionError + var cv []types.PartitionError if *v == nil { - cv = []*types.PartitionError{} + cv = []types.PartitionError{} } else { cv = *v } for _, value := range shape { - var col *types.PartitionError - if err := awsAwsjson11_deserializeDocumentPartitionError(&col, value); err != nil { + var col types.PartitionError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPartitionError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25284,7 +25357,7 @@ func awsAwsjson11_deserializeDocumentPartitionIndexDescriptor(v **types.Partitio if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "IndexStatus": @@ -25310,7 +25383,7 @@ func awsAwsjson11_deserializeDocumentPartitionIndexDescriptor(v **types.Partitio return nil } -func awsAwsjson11_deserializeDocumentPartitionIndexDescriptorList(v *[]*types.PartitionIndexDescriptor, value interface{}) error { +func awsAwsjson11_deserializeDocumentPartitionIndexDescriptorList(v *[]types.PartitionIndexDescriptor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25323,18 +25396,20 @@ func awsAwsjson11_deserializeDocumentPartitionIndexDescriptorList(v *[]*types.Pa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PartitionIndexDescriptor + var cv []types.PartitionIndexDescriptor if *v == nil { - cv = []*types.PartitionIndexDescriptor{} + cv = []types.PartitionIndexDescriptor{} } else { cv = *v } for _, value := range shape { - var col *types.PartitionIndexDescriptor - if err := awsAwsjson11_deserializeDocumentPartitionIndexDescriptor(&col, value); err != nil { + var col types.PartitionIndexDescriptor + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPartitionIndexDescriptor(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25342,7 +25417,7 @@ func awsAwsjson11_deserializeDocumentPartitionIndexDescriptorList(v *[]*types.Pa return nil } -func awsAwsjson11_deserializeDocumentPartitionList(v *[]*types.Partition, value interface{}) error { +func awsAwsjson11_deserializeDocumentPartitionList(v *[]types.Partition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25355,18 +25430,20 @@ func awsAwsjson11_deserializeDocumentPartitionList(v *[]*types.Partition, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Partition + var cv []types.Partition if *v == nil { - cv = []*types.Partition{} + cv = []types.Partition{} } else { cv = *v } for _, value := range shape { - var col *types.Partition - if err := awsAwsjson11_deserializeDocumentPartition(&col, value); err != nil { + var col types.Partition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPartition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25410,7 +25487,7 @@ func awsAwsjson11_deserializeDocumentPartitionValueList(v **types.PartitionValue return nil } -func awsAwsjson11_deserializeDocumentPathList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPathList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25423,21 +25500,21 @@ func awsAwsjson11_deserializeDocumentPathList(v *[]*string, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -25510,7 +25587,7 @@ func awsAwsjson11_deserializeDocumentPhysicalConnectionRequirements(v **types.Ph if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "SecurityGroupIdList": @@ -25524,7 +25601,7 @@ func awsAwsjson11_deserializeDocumentPhysicalConnectionRequirements(v **types.Ph if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } default: @@ -25564,7 +25641,7 @@ func awsAwsjson11_deserializeDocumentPredecessor(v **types.Predecessor, value in if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "RunId": @@ -25573,7 +25650,7 @@ func awsAwsjson11_deserializeDocumentPredecessor(v **types.Predecessor, value in if !ok { return fmt.Errorf("expected IdString to be of type string, got %T instead", value) } - sv.RunId = &jtv + sv.RunId = ptr.String(jtv) } default: @@ -25585,7 +25662,7 @@ func awsAwsjson11_deserializeDocumentPredecessor(v **types.Predecessor, value in return nil } -func awsAwsjson11_deserializeDocumentPredecessorList(v *[]*types.Predecessor, value interface{}) error { +func awsAwsjson11_deserializeDocumentPredecessorList(v *[]types.Predecessor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25598,18 +25675,20 @@ func awsAwsjson11_deserializeDocumentPredecessorList(v *[]*types.Predecessor, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Predecessor + var cv []types.Predecessor if *v == nil { - cv = []*types.Predecessor{} + cv = []types.Predecessor{} } else { cv = *v } for _, value := range shape { - var col *types.Predecessor - if err := awsAwsjson11_deserializeDocumentPredecessor(&col, value); err != nil { + var col types.Predecessor + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPredecessor(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25703,7 +25782,7 @@ func awsAwsjson11_deserializeDocumentPrincipalPermissions(v **types.PrincipalPer return nil } -func awsAwsjson11_deserializeDocumentPrincipalPermissionsList(v *[]*types.PrincipalPermissions, value interface{}) error { +func awsAwsjson11_deserializeDocumentPrincipalPermissionsList(v *[]types.PrincipalPermissions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25716,18 +25795,20 @@ func awsAwsjson11_deserializeDocumentPrincipalPermissionsList(v *[]*types.Princi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PrincipalPermissions + var cv []types.PrincipalPermissions if *v == nil { - cv = []*types.PrincipalPermissions{} + cv = []types.PrincipalPermissions{} } else { cv = *v } for _, value := range shape { - var col *types.PrincipalPermissions - if err := awsAwsjson11_deserializeDocumentPrincipalPermissions(&col, value); err != nil { + var col types.PrincipalPermissions + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPrincipalPermissions(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25735,7 +25816,7 @@ func awsAwsjson11_deserializeDocumentPrincipalPermissionsList(v *[]*types.Princi return nil } -func awsAwsjson11_deserializeDocumentPublicKeysList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPublicKeysList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25748,21 +25829,21 @@ func awsAwsjson11_deserializeDocumentPublicKeysList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -25839,7 +25920,7 @@ func awsAwsjson11_deserializeDocumentResourceNumberLimitExceededException(v **ty if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25888,7 +25969,7 @@ func awsAwsjson11_deserializeDocumentResourceUri(v **types.ResourceUri, value in if !ok { return fmt.Errorf("expected URI to be of type string, got %T instead", value) } - sv.Uri = &jtv + sv.Uri = ptr.String(jtv) } default: @@ -25900,7 +25981,7 @@ func awsAwsjson11_deserializeDocumentResourceUri(v **types.ResourceUri, value in return nil } -func awsAwsjson11_deserializeDocumentResourceUriList(v *[]*types.ResourceUri, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceUriList(v *[]types.ResourceUri, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25913,18 +25994,20 @@ func awsAwsjson11_deserializeDocumentResourceUriList(v *[]*types.ResourceUri, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceUri + var cv []types.ResourceUri if *v == nil { - cv = []*types.ResourceUri{} + cv = []types.ResourceUri{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceUri - if err := awsAwsjson11_deserializeDocumentResourceUri(&col, value); err != nil { + var col types.ResourceUri + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceUri(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25960,7 +26043,7 @@ func awsAwsjson11_deserializeDocumentS3Encryption(v **types.S3Encryption, value if !ok { return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } case "S3EncryptionMode": @@ -25981,7 +26064,7 @@ func awsAwsjson11_deserializeDocumentS3Encryption(v **types.S3Encryption, value return nil } -func awsAwsjson11_deserializeDocumentS3EncryptionList(v *[]*types.S3Encryption, value interface{}) error { +func awsAwsjson11_deserializeDocumentS3EncryptionList(v *[]types.S3Encryption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25994,18 +26077,20 @@ func awsAwsjson11_deserializeDocumentS3EncryptionList(v *[]*types.S3Encryption, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.S3Encryption + var cv []types.S3Encryption if *v == nil { - cv = []*types.S3Encryption{} + cv = []types.S3Encryption{} } else { cv = *v } for _, value := range shape { - var col *types.S3Encryption - if err := awsAwsjson11_deserializeDocumentS3Encryption(&col, value); err != nil { + var col types.S3Encryption + destAddr := &col + if err := awsAwsjson11_deserializeDocumentS3Encryption(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26041,7 +26126,7 @@ func awsAwsjson11_deserializeDocumentS3Target(v **types.S3Target, value interfac if !ok { return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) } - sv.ConnectionName = &jtv + sv.ConnectionName = ptr.String(jtv) } case "Exclusions": @@ -26055,7 +26140,7 @@ func awsAwsjson11_deserializeDocumentS3Target(v **types.S3Target, value interfac if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } default: @@ -26067,7 +26152,7 @@ func awsAwsjson11_deserializeDocumentS3Target(v **types.S3Target, value interfac return nil } -func awsAwsjson11_deserializeDocumentS3TargetList(v *[]*types.S3Target, value interface{}) error { +func awsAwsjson11_deserializeDocumentS3TargetList(v *[]types.S3Target, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26080,18 +26165,20 @@ func awsAwsjson11_deserializeDocumentS3TargetList(v *[]*types.S3Target, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.S3Target + var cv []types.S3Target if *v == nil { - cv = []*types.S3Target{} + cv = []types.S3Target{} } else { cv = *v } for _, value := range shape { - var col *types.S3Target - if err := awsAwsjson11_deserializeDocumentS3Target(&col, value); err != nil { + var col types.S3Target + destAddr := &col + if err := awsAwsjson11_deserializeDocumentS3Target(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26127,7 +26214,7 @@ func awsAwsjson11_deserializeDocumentSchedule(v **types.Schedule, value interfac if !ok { return fmt.Errorf("expected CronExpression to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } case "State": @@ -26176,7 +26263,7 @@ func awsAwsjson11_deserializeDocumentSchedulerNotRunningException(v **types.Sche if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26216,7 +26303,7 @@ func awsAwsjson11_deserializeDocumentSchedulerRunningException(v **types.Schedul if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26256,7 +26343,7 @@ func awsAwsjson11_deserializeDocumentSchedulerTransitioningException(v **types.S if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26345,7 +26432,7 @@ func awsAwsjson11_deserializeDocumentSchemaColumn(v **types.SchemaColumn, value if !ok { return fmt.Errorf("expected ColumnTypeString to be of type string, got %T instead", value) } - sv.DataType = &jtv + sv.DataType = ptr.String(jtv) } case "Name": @@ -26354,7 +26441,7 @@ func awsAwsjson11_deserializeDocumentSchemaColumn(v **types.SchemaColumn, value if !ok { return fmt.Errorf("expected ColumnNameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -26412,7 +26499,7 @@ func awsAwsjson11_deserializeDocumentSecurityConfiguration(v **types.SecurityCon if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -26424,7 +26511,7 @@ func awsAwsjson11_deserializeDocumentSecurityConfiguration(v **types.SecurityCon return nil } -func awsAwsjson11_deserializeDocumentSecurityConfigurationList(v *[]*types.SecurityConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityConfigurationList(v *[]types.SecurityConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26437,18 +26524,20 @@ func awsAwsjson11_deserializeDocumentSecurityConfigurationList(v *[]*types.Secur return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SecurityConfiguration + var cv []types.SecurityConfiguration if *v == nil { - cv = []*types.SecurityConfiguration{} + cv = []types.SecurityConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.SecurityConfiguration - if err := awsAwsjson11_deserializeDocumentSecurityConfiguration(&col, value); err != nil { + var col types.SecurityConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSecurityConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26456,7 +26545,7 @@ func awsAwsjson11_deserializeDocumentSecurityConfigurationList(v *[]*types.Secur return nil } -func awsAwsjson11_deserializeDocumentSecurityGroupIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityGroupIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26469,21 +26558,21 @@ func awsAwsjson11_deserializeDocumentSecurityGroupIdList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -26520,7 +26609,7 @@ func awsAwsjson11_deserializeDocumentSerDeInfo(v **types.SerDeInfo, value interf if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Parameters": @@ -26534,7 +26623,7 @@ func awsAwsjson11_deserializeDocumentSerDeInfo(v **types.SerDeInfo, value interf if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.SerializationLibrary = &jtv + sv.SerializationLibrary = ptr.String(jtv) } default: @@ -26630,7 +26719,7 @@ func awsAwsjson11_deserializeDocumentStorageDescriptor(v **types.StorageDescript if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Compressed = &jtv + sv.Compressed = jtv } case "InputFormat": @@ -26639,7 +26728,7 @@ func awsAwsjson11_deserializeDocumentStorageDescriptor(v **types.StorageDescript if !ok { return fmt.Errorf("expected FormatString to be of type string, got %T instead", value) } - sv.InputFormat = &jtv + sv.InputFormat = ptr.String(jtv) } case "Location": @@ -26648,7 +26737,7 @@ func awsAwsjson11_deserializeDocumentStorageDescriptor(v **types.StorageDescript if !ok { return fmt.Errorf("expected LocationString to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "NumberOfBuckets": @@ -26661,7 +26750,7 @@ func awsAwsjson11_deserializeDocumentStorageDescriptor(v **types.StorageDescript if err != nil { return err } - sv.NumberOfBuckets = ptr.Int32(int32(i64)) + sv.NumberOfBuckets = int32(i64) } case "OutputFormat": @@ -26670,7 +26759,7 @@ func awsAwsjson11_deserializeDocumentStorageDescriptor(v **types.StorageDescript if !ok { return fmt.Errorf("expected FormatString to be of type string, got %T instead", value) } - sv.OutputFormat = &jtv + sv.OutputFormat = ptr.String(jtv) } case "Parameters": @@ -26699,7 +26788,7 @@ func awsAwsjson11_deserializeDocumentStorageDescriptor(v **types.StorageDescript if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.StoredAsSubDirectories = &jtv + sv.StoredAsSubDirectories = jtv } default: @@ -26743,7 +26832,7 @@ func awsAwsjson11_deserializeDocumentStringColumnStatisticsData(v **types.String if err != nil { return err } - sv.AverageLength = &f64 + sv.AverageLength = f64 } case "MaximumLength": @@ -26756,7 +26845,7 @@ func awsAwsjson11_deserializeDocumentStringColumnStatisticsData(v **types.String if err != nil { return err } - sv.MaximumLength = &i64 + sv.MaximumLength = i64 } case "NumberOfDistinctValues": @@ -26769,7 +26858,7 @@ func awsAwsjson11_deserializeDocumentStringColumnStatisticsData(v **types.String if err != nil { return err } - sv.NumberOfDistinctValues = &i64 + sv.NumberOfDistinctValues = i64 } case "NumberOfNulls": @@ -26782,7 +26871,7 @@ func awsAwsjson11_deserializeDocumentStringColumnStatisticsData(v **types.String if err != nil { return err } - sv.NumberOfNulls = &i64 + sv.NumberOfNulls = i64 } default: @@ -26794,7 +26883,7 @@ func awsAwsjson11_deserializeDocumentStringColumnStatisticsData(v **types.String return nil } -func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26807,21 +26896,21 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -26858,7 +26947,7 @@ func awsAwsjson11_deserializeDocumentTable(v **types.Table, value interface{}) e if !ok { return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) } - sv.CatalogId = &jtv + sv.CatalogId = ptr.String(jtv) } case "CreatedBy": @@ -26867,7 +26956,7 @@ func awsAwsjson11_deserializeDocumentTable(v **types.Table, value interface{}) e if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "CreateTime": @@ -26889,7 +26978,7 @@ func awsAwsjson11_deserializeDocumentTable(v **types.Table, value interface{}) e if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "Description": @@ -26898,7 +26987,7 @@ func awsAwsjson11_deserializeDocumentTable(v **types.Table, value interface{}) e if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "IsRegisteredWithLakeFormation": @@ -26907,7 +26996,7 @@ func awsAwsjson11_deserializeDocumentTable(v **types.Table, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsRegisteredWithLakeFormation = &jtv + sv.IsRegisteredWithLakeFormation = jtv } case "LastAccessTime": @@ -26942,7 +27031,7 @@ func awsAwsjson11_deserializeDocumentTable(v **types.Table, value interface{}) e if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Owner": @@ -26951,7 +27040,7 @@ func awsAwsjson11_deserializeDocumentTable(v **types.Table, value interface{}) e if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "Parameters": @@ -26974,7 +27063,7 @@ func awsAwsjson11_deserializeDocumentTable(v **types.Table, value interface{}) e if err != nil { return err } - sv.Retention = ptr.Int32(int32(i64)) + sv.Retention = int32(i64) } case "StorageDescriptor": @@ -26988,7 +27077,7 @@ func awsAwsjson11_deserializeDocumentTable(v **types.Table, value interface{}) e if !ok { return fmt.Errorf("expected TableTypeString to be of type string, got %T instead", value) } - sv.TableType = &jtv + sv.TableType = ptr.String(jtv) } case "TargetTable": @@ -27015,7 +27104,7 @@ func awsAwsjson11_deserializeDocumentTable(v **types.Table, value interface{}) e if !ok { return fmt.Errorf("expected ViewTextString to be of type string, got %T instead", value) } - sv.ViewExpandedText = &jtv + sv.ViewExpandedText = ptr.String(jtv) } case "ViewOriginalText": @@ -27024,7 +27113,7 @@ func awsAwsjson11_deserializeDocumentTable(v **types.Table, value interface{}) e if !ok { return fmt.Errorf("expected ViewTextString to be of type string, got %T instead", value) } - sv.ViewOriginalText = &jtv + sv.ViewOriginalText = ptr.String(jtv) } default: @@ -27069,7 +27158,7 @@ func awsAwsjson11_deserializeDocumentTableError(v **types.TableError, value inte if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -27081,7 +27170,7 @@ func awsAwsjson11_deserializeDocumentTableError(v **types.TableError, value inte return nil } -func awsAwsjson11_deserializeDocumentTableErrors(v *[]*types.TableError, value interface{}) error { +func awsAwsjson11_deserializeDocumentTableErrors(v *[]types.TableError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27094,18 +27183,20 @@ func awsAwsjson11_deserializeDocumentTableErrors(v *[]*types.TableError, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TableError + var cv []types.TableError if *v == nil { - cv = []*types.TableError{} + cv = []types.TableError{} } else { cv = *v } for _, value := range shape { - var col *types.TableError - if err := awsAwsjson11_deserializeDocumentTableError(&col, value); err != nil { + var col types.TableError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTableError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27141,7 +27232,7 @@ func awsAwsjson11_deserializeDocumentTableIdentifier(v **types.TableIdentifier, if !ok { return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) } - sv.CatalogId = &jtv + sv.CatalogId = ptr.String(jtv) } case "DatabaseName": @@ -27150,7 +27241,7 @@ func awsAwsjson11_deserializeDocumentTableIdentifier(v **types.TableIdentifier, if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "Name": @@ -27159,7 +27250,7 @@ func awsAwsjson11_deserializeDocumentTableIdentifier(v **types.TableIdentifier, if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -27171,7 +27262,7 @@ func awsAwsjson11_deserializeDocumentTableIdentifier(v **types.TableIdentifier, return nil } -func awsAwsjson11_deserializeDocumentTableList(v *[]*types.Table, value interface{}) error { +func awsAwsjson11_deserializeDocumentTableList(v *[]types.Table, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27184,18 +27275,20 @@ func awsAwsjson11_deserializeDocumentTableList(v *[]*types.Table, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Table + var cv []types.Table if *v == nil { - cv = []*types.Table{} + cv = []types.Table{} } else { cv = *v } for _, value := range shape { - var col *types.Table - if err := awsAwsjson11_deserializeDocumentTable(&col, value); err != nil { + var col types.Table + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTable(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27236,7 +27329,7 @@ func awsAwsjson11_deserializeDocumentTableVersion(v **types.TableVersion, value if !ok { return fmt.Errorf("expected VersionString to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -27281,7 +27374,7 @@ func awsAwsjson11_deserializeDocumentTableVersionError(v **types.TableVersionErr if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "VersionId": @@ -27290,7 +27383,7 @@ func awsAwsjson11_deserializeDocumentTableVersionError(v **types.TableVersionErr if !ok { return fmt.Errorf("expected VersionString to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -27302,7 +27395,7 @@ func awsAwsjson11_deserializeDocumentTableVersionError(v **types.TableVersionErr return nil } -func awsAwsjson11_deserializeDocumentTableVersionErrors(v *[]*types.TableVersionError, value interface{}) error { +func awsAwsjson11_deserializeDocumentTableVersionErrors(v *[]types.TableVersionError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27315,18 +27408,20 @@ func awsAwsjson11_deserializeDocumentTableVersionErrors(v *[]*types.TableVersion return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TableVersionError + var cv []types.TableVersionError if *v == nil { - cv = []*types.TableVersionError{} + cv = []types.TableVersionError{} } else { cv = *v } for _, value := range shape { - var col *types.TableVersionError - if err := awsAwsjson11_deserializeDocumentTableVersionError(&col, value); err != nil { + var col types.TableVersionError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTableVersionError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27334,7 +27429,7 @@ func awsAwsjson11_deserializeDocumentTableVersionErrors(v *[]*types.TableVersion return nil } -func awsAwsjson11_deserializeDocumentTagsMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27347,21 +27442,21 @@ func awsAwsjson11_deserializeDocumentTagsMap(v *map[string]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -27411,7 +27506,7 @@ func awsAwsjson11_deserializeDocumentTaskRun(v **types.TaskRun, value interface{ if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.ErrorString = &jtv + sv.ErrorString = ptr.String(jtv) } case "ExecutionTime": @@ -27424,7 +27519,7 @@ func awsAwsjson11_deserializeDocumentTaskRun(v **types.TaskRun, value interface{ if err != nil { return err } - sv.ExecutionTime = ptr.Int32(int32(i64)) + sv.ExecutionTime = int32(i64) } case "LastModifiedOn": @@ -27446,7 +27541,7 @@ func awsAwsjson11_deserializeDocumentTaskRun(v **types.TaskRun, value interface{ if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } case "Properties": @@ -27482,7 +27577,7 @@ func awsAwsjson11_deserializeDocumentTaskRun(v **types.TaskRun, value interface{ if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TaskRunId = &jtv + sv.TaskRunId = ptr.String(jtv) } case "TransformId": @@ -27491,7 +27586,7 @@ func awsAwsjson11_deserializeDocumentTaskRun(v **types.TaskRun, value interface{ if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TransformId = &jtv + sv.TransformId = ptr.String(jtv) } default: @@ -27503,7 +27598,7 @@ func awsAwsjson11_deserializeDocumentTaskRun(v **types.TaskRun, value interface{ return nil } -func awsAwsjson11_deserializeDocumentTaskRunList(v *[]*types.TaskRun, value interface{}) error { +func awsAwsjson11_deserializeDocumentTaskRunList(v *[]types.TaskRun, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27516,18 +27611,20 @@ func awsAwsjson11_deserializeDocumentTaskRunList(v *[]*types.TaskRun, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TaskRun + var cv []types.TaskRun if *v == nil { - cv = []*types.TaskRun{} + cv = []types.TaskRun{} } else { cv = *v } for _, value := range shape { - var col *types.TaskRun - if err := awsAwsjson11_deserializeDocumentTaskRun(&col, value); err != nil { + var col types.TaskRun + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTaskRun(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27628,7 +27725,7 @@ func awsAwsjson11_deserializeDocumentTransformEncryption(v **types.TransformEncr if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.TaskRunSecurityConfigurationName = &jtv + sv.TaskRunSecurityConfigurationName = ptr.String(jtv) } default: @@ -27640,7 +27737,7 @@ func awsAwsjson11_deserializeDocumentTransformEncryption(v **types.TransformEncr return nil } -func awsAwsjson11_deserializeDocumentTransformIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTransformIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27653,21 +27750,21 @@ func awsAwsjson11_deserializeDocumentTransformIdList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -27676,7 +27773,7 @@ func awsAwsjson11_deserializeDocumentTransformIdList(v *[]*string, value interfa return nil } -func awsAwsjson11_deserializeDocumentTransformList(v *[]*types.MLTransform, value interface{}) error { +func awsAwsjson11_deserializeDocumentTransformList(v *[]types.MLTransform, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27689,18 +27786,20 @@ func awsAwsjson11_deserializeDocumentTransformList(v *[]*types.MLTransform, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MLTransform + var cv []types.MLTransform if *v == nil { - cv = []*types.MLTransform{} + cv = []types.MLTransform{} } else { cv = *v } for _, value := range shape { - var col *types.MLTransform - if err := awsAwsjson11_deserializeDocumentMLTransform(&col, value); err != nil { + var col types.MLTransform + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMLTransform(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27753,7 +27852,7 @@ func awsAwsjson11_deserializeDocumentTransformParameters(v **types.TransformPara return nil } -func awsAwsjson11_deserializeDocumentTransformSchema(v *[]*types.SchemaColumn, value interface{}) error { +func awsAwsjson11_deserializeDocumentTransformSchema(v *[]types.SchemaColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27766,18 +27865,20 @@ func awsAwsjson11_deserializeDocumentTransformSchema(v *[]*types.SchemaColumn, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SchemaColumn + var cv []types.SchemaColumn if *v == nil { - cv = []*types.SchemaColumn{} + cv = []types.SchemaColumn{} } else { cv = *v } for _, value := range shape { - var col *types.SchemaColumn - if err := awsAwsjson11_deserializeDocumentSchemaColumn(&col, value); err != nil { + var col types.SchemaColumn + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSchemaColumn(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27818,7 +27919,7 @@ func awsAwsjson11_deserializeDocumentTrigger(v **types.Trigger, value interface{ if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -27827,7 +27928,7 @@ func awsAwsjson11_deserializeDocumentTrigger(v **types.Trigger, value interface{ if !ok { return fmt.Errorf("expected IdString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -27836,7 +27937,7 @@ func awsAwsjson11_deserializeDocumentTrigger(v **types.Trigger, value interface{ if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Predicate": @@ -27850,7 +27951,7 @@ func awsAwsjson11_deserializeDocumentTrigger(v **types.Trigger, value interface{ if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Schedule = &jtv + sv.Schedule = ptr.String(jtv) } case "State": @@ -27877,7 +27978,7 @@ func awsAwsjson11_deserializeDocumentTrigger(v **types.Trigger, value interface{ if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.WorkflowName = &jtv + sv.WorkflowName = ptr.String(jtv) } default: @@ -27889,7 +27990,7 @@ func awsAwsjson11_deserializeDocumentTrigger(v **types.Trigger, value interface{ return nil } -func awsAwsjson11_deserializeDocumentTriggerList(v *[]*types.Trigger, value interface{}) error { +func awsAwsjson11_deserializeDocumentTriggerList(v *[]types.Trigger, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27902,18 +28003,20 @@ func awsAwsjson11_deserializeDocumentTriggerList(v *[]*types.Trigger, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Trigger + var cv []types.Trigger if *v == nil { - cv = []*types.Trigger{} + cv = []types.Trigger{} } else { cv = *v } for _, value := range shape { - var col *types.Trigger - if err := awsAwsjson11_deserializeDocumentTrigger(&col, value); err != nil { + var col types.Trigger + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrigger(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27921,7 +28024,7 @@ func awsAwsjson11_deserializeDocumentTriggerList(v *[]*types.Trigger, value inte return nil } -func awsAwsjson11_deserializeDocumentTriggerNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTriggerNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27934,21 +28037,21 @@ func awsAwsjson11_deserializeDocumentTriggerNameList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -28021,7 +28124,7 @@ func awsAwsjson11_deserializeDocumentUserDefinedFunction(v **types.UserDefinedFu if !ok { return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) } - sv.CatalogId = &jtv + sv.CatalogId = ptr.String(jtv) } case "ClassName": @@ -28030,7 +28133,7 @@ func awsAwsjson11_deserializeDocumentUserDefinedFunction(v **types.UserDefinedFu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.ClassName = &jtv + sv.ClassName = ptr.String(jtv) } case "CreateTime": @@ -28052,7 +28155,7 @@ func awsAwsjson11_deserializeDocumentUserDefinedFunction(v **types.UserDefinedFu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "FunctionName": @@ -28061,7 +28164,7 @@ func awsAwsjson11_deserializeDocumentUserDefinedFunction(v **types.UserDefinedFu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.FunctionName = &jtv + sv.FunctionName = ptr.String(jtv) } case "OwnerName": @@ -28070,7 +28173,7 @@ func awsAwsjson11_deserializeDocumentUserDefinedFunction(v **types.UserDefinedFu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.OwnerName = &jtv + sv.OwnerName = ptr.String(jtv) } case "OwnerType": @@ -28096,7 +28199,7 @@ func awsAwsjson11_deserializeDocumentUserDefinedFunction(v **types.UserDefinedFu return nil } -func awsAwsjson11_deserializeDocumentUserDefinedFunctionList(v *[]*types.UserDefinedFunction, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserDefinedFunctionList(v *[]types.UserDefinedFunction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28109,18 +28212,20 @@ func awsAwsjson11_deserializeDocumentUserDefinedFunctionList(v *[]*types.UserDef return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserDefinedFunction + var cv []types.UserDefinedFunction if *v == nil { - cv = []*types.UserDefinedFunction{} + cv = []types.UserDefinedFunction{} } else { cv = *v } for _, value := range shape { - var col *types.UserDefinedFunction - if err := awsAwsjson11_deserializeDocumentUserDefinedFunction(&col, value); err != nil { + var col types.UserDefinedFunction + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUserDefinedFunction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28156,7 +28261,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28168,7 +28273,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc return nil } -func awsAwsjson11_deserializeDocumentValueStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentValueStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28181,21 +28286,21 @@ func awsAwsjson11_deserializeDocumentValueStringList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ValueString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -28232,7 +28337,7 @@ func awsAwsjson11_deserializeDocumentVersionMismatchException(v **types.VersionM if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -28290,7 +28395,7 @@ func awsAwsjson11_deserializeDocumentWorkflow(v **types.Workflow, value interfac if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Graph": @@ -28335,7 +28440,7 @@ func awsAwsjson11_deserializeDocumentWorkflow(v **types.Workflow, value interfac if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -28388,7 +28493,7 @@ func awsAwsjson11_deserializeDocumentWorkflowGraph(v **types.WorkflowGraph, valu return nil } -func awsAwsjson11_deserializeDocumentWorkflowNames(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentWorkflowNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28401,21 +28506,21 @@ func awsAwsjson11_deserializeDocumentWorkflowNames(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -28465,7 +28570,7 @@ func awsAwsjson11_deserializeDocumentWorkflowRun(v **types.WorkflowRun, value in if !ok { return fmt.Errorf("expected ErrorString to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "Graph": @@ -28479,7 +28584,7 @@ func awsAwsjson11_deserializeDocumentWorkflowRun(v **types.WorkflowRun, value in if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PreviousRunId": @@ -28488,7 +28593,7 @@ func awsAwsjson11_deserializeDocumentWorkflowRun(v **types.WorkflowRun, value in if !ok { return fmt.Errorf("expected IdString to be of type string, got %T instead", value) } - sv.PreviousRunId = &jtv + sv.PreviousRunId = ptr.String(jtv) } case "StartedOn": @@ -28524,7 +28629,7 @@ func awsAwsjson11_deserializeDocumentWorkflowRun(v **types.WorkflowRun, value in if !ok { return fmt.Errorf("expected IdString to be of type string, got %T instead", value) } - sv.WorkflowRunId = &jtv + sv.WorkflowRunId = ptr.String(jtv) } case "WorkflowRunProperties": @@ -28541,7 +28646,7 @@ func awsAwsjson11_deserializeDocumentWorkflowRun(v **types.WorkflowRun, value in return nil } -func awsAwsjson11_deserializeDocumentWorkflowRunProperties(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentWorkflowRunProperties(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28554,21 +28659,21 @@ func awsAwsjson11_deserializeDocumentWorkflowRunProperties(v *map[string]*string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -28577,7 +28682,7 @@ func awsAwsjson11_deserializeDocumentWorkflowRunProperties(v *map[string]*string return nil } -func awsAwsjson11_deserializeDocumentWorkflowRuns(v *[]*types.WorkflowRun, value interface{}) error { +func awsAwsjson11_deserializeDocumentWorkflowRuns(v *[]types.WorkflowRun, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28590,18 +28695,20 @@ func awsAwsjson11_deserializeDocumentWorkflowRuns(v *[]*types.WorkflowRun, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorkflowRun + var cv []types.WorkflowRun if *v == nil { - cv = []*types.WorkflowRun{} + cv = []types.WorkflowRun{} } else { cv = *v } for _, value := range shape { - var col *types.WorkflowRun - if err := awsAwsjson11_deserializeDocumentWorkflowRun(&col, value); err != nil { + var col types.WorkflowRun + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkflowRun(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28641,7 +28748,7 @@ func awsAwsjson11_deserializeDocumentWorkflowRunStatistics(v **types.WorkflowRun if err != nil { return err } - sv.FailedActions = ptr.Int32(int32(i64)) + sv.FailedActions = int32(i64) } case "RunningActions": @@ -28654,7 +28761,7 @@ func awsAwsjson11_deserializeDocumentWorkflowRunStatistics(v **types.WorkflowRun if err != nil { return err } - sv.RunningActions = ptr.Int32(int32(i64)) + sv.RunningActions = int32(i64) } case "StoppedActions": @@ -28667,7 +28774,7 @@ func awsAwsjson11_deserializeDocumentWorkflowRunStatistics(v **types.WorkflowRun if err != nil { return err } - sv.StoppedActions = ptr.Int32(int32(i64)) + sv.StoppedActions = int32(i64) } case "SucceededActions": @@ -28680,7 +28787,7 @@ func awsAwsjson11_deserializeDocumentWorkflowRunStatistics(v **types.WorkflowRun if err != nil { return err } - sv.SucceededActions = ptr.Int32(int32(i64)) + sv.SucceededActions = int32(i64) } case "TimeoutActions": @@ -28693,7 +28800,7 @@ func awsAwsjson11_deserializeDocumentWorkflowRunStatistics(v **types.WorkflowRun if err != nil { return err } - sv.TimeoutActions = ptr.Int32(int32(i64)) + sv.TimeoutActions = int32(i64) } case "TotalActions": @@ -28706,7 +28813,7 @@ func awsAwsjson11_deserializeDocumentWorkflowRunStatistics(v **types.WorkflowRun if err != nil { return err } - sv.TotalActions = ptr.Int32(int32(i64)) + sv.TotalActions = int32(i64) } default: @@ -28718,7 +28825,7 @@ func awsAwsjson11_deserializeDocumentWorkflowRunStatistics(v **types.WorkflowRun return nil } -func awsAwsjson11_deserializeDocumentWorkflows(v *[]*types.Workflow, value interface{}) error { +func awsAwsjson11_deserializeDocumentWorkflows(v *[]types.Workflow, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28731,18 +28838,20 @@ func awsAwsjson11_deserializeDocumentWorkflows(v *[]*types.Workflow, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Workflow + var cv []types.Workflow if *v == nil { - cv = []*types.Workflow{} + cv = []types.Workflow{} } else { cv = *v } for _, value := range shape { - var col *types.Workflow - if err := awsAwsjson11_deserializeDocumentWorkflow(&col, value); err != nil { + var col types.Workflow + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkflow(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28778,7 +28887,7 @@ func awsAwsjson11_deserializeDocumentXMLClassifier(v **types.XMLClassifier, valu if !ok { return fmt.Errorf("expected Classification to be of type string, got %T instead", value) } - sv.Classification = &jtv + sv.Classification = ptr.String(jtv) } case "CreationTime": @@ -28813,7 +28922,7 @@ func awsAwsjson11_deserializeDocumentXMLClassifier(v **types.XMLClassifier, valu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RowTag": @@ -28822,7 +28931,7 @@ func awsAwsjson11_deserializeDocumentXMLClassifier(v **types.XMLClassifier, valu if !ok { return fmt.Errorf("expected RowTag to be of type string, got %T instead", value) } - sv.RowTag = &jtv + sv.RowTag = ptr.String(jtv) } case "Version": @@ -28835,7 +28944,7 @@ func awsAwsjson11_deserializeDocumentXMLClassifier(v **types.XMLClassifier, valu if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -29392,7 +29501,7 @@ func awsAwsjson11_deserializeOpDocumentCancelMLTaskRunOutput(v **CancelMLTaskRun if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TaskRunId = &jtv + sv.TaskRunId = ptr.String(jtv) } case "TransformId": @@ -29401,7 +29510,7 @@ func awsAwsjson11_deserializeOpDocumentCancelMLTaskRunOutput(v **CancelMLTaskRun if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TransformId = &jtv + sv.TransformId = ptr.String(jtv) } default: @@ -29570,7 +29679,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "CreatedTimestamp": @@ -29592,7 +29701,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.EndpointName = &jtv + sv.EndpointName = ptr.String(jtv) } case "ExtraJarsS3Path": @@ -29601,7 +29710,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.ExtraJarsS3Path = &jtv + sv.ExtraJarsS3Path = ptr.String(jtv) } case "ExtraPythonLibsS3Path": @@ -29610,7 +29719,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.ExtraPythonLibsS3Path = &jtv + sv.ExtraPythonLibsS3Path = ptr.String(jtv) } case "FailureReason": @@ -29619,7 +29728,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "GlueVersion": @@ -29628,7 +29737,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if !ok { return fmt.Errorf("expected GlueVersionString to be of type string, got %T instead", value) } - sv.GlueVersion = &jtv + sv.GlueVersion = ptr.String(jtv) } case "NumberOfNodes": @@ -29641,7 +29750,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if err != nil { return err } - sv.NumberOfNodes = ptr.Int32(int32(i64)) + sv.NumberOfNodes = int32(i64) } case "NumberOfWorkers": @@ -29663,7 +29772,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "SecurityConfiguration": @@ -29672,7 +29781,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.SecurityConfiguration = &jtv + sv.SecurityConfiguration = ptr.String(jtv) } case "SecurityGroupIds": @@ -29686,7 +29795,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "SubnetId": @@ -29695,7 +29804,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "VpcId": @@ -29704,7 +29813,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } case "WorkerType": @@ -29722,7 +29831,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.YarnEndpointAddress = &jtv + sv.YarnEndpointAddress = ptr.String(jtv) } case "ZeppelinRemoteSparkInterpreterPort": @@ -29735,7 +29844,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDevEndpointOutput(v **CreateDevEndp if err != nil { return err } - sv.ZeppelinRemoteSparkInterpreterPort = ptr.Int32(int32(i64)) + sv.ZeppelinRemoteSparkInterpreterPort = int32(i64) } default: @@ -29775,7 +29884,7 @@ func awsAwsjson11_deserializeOpDocumentCreateJobOutput(v **CreateJobOutput, valu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -29815,7 +29924,7 @@ func awsAwsjson11_deserializeOpDocumentCreateMLTransformOutput(v **CreateMLTrans if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TransformId = &jtv + sv.TransformId = ptr.String(jtv) } default: @@ -29886,7 +29995,7 @@ func awsAwsjson11_deserializeOpDocumentCreateScriptOutput(v **CreateScriptOutput if !ok { return fmt.Errorf("expected PythonScript to be of type string, got %T instead", value) } - sv.PythonScript = &jtv + sv.PythonScript = ptr.String(jtv) } case "ScalaCode": @@ -29895,7 +30004,7 @@ func awsAwsjson11_deserializeOpDocumentCreateScriptOutput(v **CreateScriptOutput if !ok { return fmt.Errorf("expected ScalaCode to be of type string, got %T instead", value) } - sv.ScalaCode = &jtv + sv.ScalaCode = ptr.String(jtv) } default: @@ -29948,7 +30057,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSecurityConfigurationOutput(v **Cre if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -30019,7 +30128,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTriggerOutput(v **CreateTriggerOutp if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -30090,7 +30199,7 @@ func awsAwsjson11_deserializeOpDocumentCreateWorkflowOutput(v **CreateWorkflowOu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -30347,7 +30456,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteJobOutput(v **DeleteJobOutput, valu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } default: @@ -30387,7 +30496,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteMLTransformOutput(v **DeleteMLTrans if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TransformId = &jtv + sv.TransformId = ptr.String(jtv) } default: @@ -30582,7 +30691,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteTriggerOutput(v **DeleteTriggerOutp if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -30653,7 +30762,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteWorkflowOutput(v **DeleteWorkflowOu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -30770,7 +30879,7 @@ func awsAwsjson11_deserializeOpDocumentGetClassifiersOutput(v **GetClassifiersOu if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -30933,7 +31042,7 @@ func awsAwsjson11_deserializeOpDocumentGetConnectionsOutput(v **GetConnectionsOu if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -30978,7 +31087,7 @@ func awsAwsjson11_deserializeOpDocumentGetCrawlerMetricsOutput(v **GetCrawlerMet if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -31059,7 +31168,7 @@ func awsAwsjson11_deserializeOpDocumentGetCrawlersOutput(v **GetCrawlersOutput, if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -31140,7 +31249,7 @@ func awsAwsjson11_deserializeOpDocumentGetDatabasesOutput(v **GetDatabasesOutput if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -31298,7 +31407,7 @@ func awsAwsjson11_deserializeOpDocumentGetDevEndpointsOutput(v **GetDevEndpoints if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -31451,7 +31560,7 @@ func awsAwsjson11_deserializeOpDocumentGetJobRunsOutput(v **GetJobRunsOutput, va if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -31496,7 +31605,7 @@ func awsAwsjson11_deserializeOpDocumentGetJobsOutput(v **GetJobsOutput, value in if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -31585,7 +31694,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTaskRunOutput(v **GetMLTaskRunOutput if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.ErrorString = &jtv + sv.ErrorString = ptr.String(jtv) } case "ExecutionTime": @@ -31598,7 +31707,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTaskRunOutput(v **GetMLTaskRunOutput if err != nil { return err } - sv.ExecutionTime = ptr.Int32(int32(i64)) + sv.ExecutionTime = int32(i64) } case "LastModifiedOn": @@ -31620,7 +31729,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTaskRunOutput(v **GetMLTaskRunOutput if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } case "Properties": @@ -31656,7 +31765,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTaskRunOutput(v **GetMLTaskRunOutput if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TaskRunId = &jtv + sv.TaskRunId = ptr.String(jtv) } case "TransformId": @@ -31665,7 +31774,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTaskRunOutput(v **GetMLTaskRunOutput if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TransformId = &jtv + sv.TransformId = ptr.String(jtv) } default: @@ -31705,7 +31814,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTaskRunsOutput(v **GetMLTaskRunsOutp if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TaskRuns": @@ -31763,7 +31872,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTransformOutput(v **GetMLTransformOu if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EvaluationMetrics": @@ -31777,7 +31886,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTransformOutput(v **GetMLTransformOu if !ok { return fmt.Errorf("expected GlueVersionString to be of type string, got %T instead", value) } - sv.GlueVersion = &jtv + sv.GlueVersion = ptr.String(jtv) } case "InputRecordTables": @@ -31795,7 +31904,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTransformOutput(v **GetMLTransformOu if err != nil { return err } - sv.LabelCount = ptr.Int32(int32(i64)) + sv.LabelCount = int32(i64) } case "LastModifiedOn": @@ -31821,7 +31930,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTransformOutput(v **GetMLTransformOu if err != nil { return err } - sv.MaxCapacity = &f64 + sv.MaxCapacity = ptr.Float64(f64) } case "MaxRetries": @@ -31843,7 +31952,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTransformOutput(v **GetMLTransformOu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NumberOfWorkers": @@ -31870,7 +31979,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTransformOutput(v **GetMLTransformOu if !ok { return fmt.Errorf("expected RoleString to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "Schema": @@ -31911,7 +32020,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTransformOutput(v **GetMLTransformOu if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TransformId = &jtv + sv.TransformId = ptr.String(jtv) } case "WorkerType": @@ -31960,7 +32069,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLTransformsOutput(v **GetMLTransforms if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Transforms": @@ -32005,7 +32114,7 @@ func awsAwsjson11_deserializeOpDocumentGetPartitionIndexesOutput(v **GetPartitio if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PartitionIndexDescriptorList": @@ -32086,7 +32195,7 @@ func awsAwsjson11_deserializeOpDocumentGetPartitionsOutput(v **GetPartitionsOutp if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Partitions": @@ -32131,7 +32240,7 @@ func awsAwsjson11_deserializeOpDocumentGetPlanOutput(v **GetPlanOutput, value in if !ok { return fmt.Errorf("expected PythonScript to be of type string, got %T instead", value) } - sv.PythonScript = &jtv + sv.PythonScript = ptr.String(jtv) } case "ScalaCode": @@ -32140,7 +32249,7 @@ func awsAwsjson11_deserializeOpDocumentGetPlanOutput(v **GetPlanOutput, value in if !ok { return fmt.Errorf("expected ScalaCode to be of type string, got %T instead", value) } - sv.ScalaCode = &jtv + sv.ScalaCode = ptr.String(jtv) } default: @@ -32185,7 +32294,7 @@ func awsAwsjson11_deserializeOpDocumentGetResourcePoliciesOutput(v **GetResource if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -32238,7 +32347,7 @@ func awsAwsjson11_deserializeOpDocumentGetResourcePolicyOutput(v **GetResourcePo if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.PolicyHash = &jtv + sv.PolicyHash = ptr.String(jtv) } case "PolicyInJson": @@ -32247,7 +32356,7 @@ func awsAwsjson11_deserializeOpDocumentGetResourcePolicyOutput(v **GetResourcePo if !ok { return fmt.Errorf("expected PolicyJsonString to be of type string, got %T instead", value) } - sv.PolicyInJson = &jtv + sv.PolicyInJson = ptr.String(jtv) } case "UpdateTime": @@ -32336,7 +32445,7 @@ func awsAwsjson11_deserializeOpDocumentGetSecurityConfigurationsOutput(v **GetSe if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SecurityConfigurations": @@ -32417,7 +32526,7 @@ func awsAwsjson11_deserializeOpDocumentGetTablesOutput(v **GetTablesOutput, valu if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TableList": @@ -32498,7 +32607,7 @@ func awsAwsjson11_deserializeOpDocumentGetTableVersionsOutput(v **GetTableVersio if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TableVersions": @@ -32615,7 +32724,7 @@ func awsAwsjson11_deserializeOpDocumentGetTriggersOutput(v **GetTriggersOutput, if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Triggers": @@ -32696,7 +32805,7 @@ func awsAwsjson11_deserializeOpDocumentGetUserDefinedFunctionsOutput(v **GetUser if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "UserDefinedFunctions": @@ -32849,7 +32958,7 @@ func awsAwsjson11_deserializeOpDocumentGetWorkflowRunsOutput(v **GetWorkflowRuns if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Runs": @@ -32930,7 +33039,7 @@ func awsAwsjson11_deserializeOpDocumentListCrawlersOutput(v **ListCrawlersOutput if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -32975,7 +33084,7 @@ func awsAwsjson11_deserializeOpDocumentListDevEndpointsOutput(v **ListDevEndpoin if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -33020,7 +33129,7 @@ func awsAwsjson11_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, value if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -33060,7 +33169,7 @@ func awsAwsjson11_deserializeOpDocumentListMLTransformsOutput(v **ListMLTransfor if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TransformIds": @@ -33105,7 +33214,7 @@ func awsAwsjson11_deserializeOpDocumentListTriggersOutput(v **ListTriggersOutput if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TriggerNames": @@ -33150,7 +33259,7 @@ func awsAwsjson11_deserializeOpDocumentListWorkflowsOutput(v **ListWorkflowsOutp if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Workflows": @@ -33226,7 +33335,7 @@ func awsAwsjson11_deserializeOpDocumentPutResourcePolicyOutput(v **PutResourcePo if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.PolicyHash = &jtv + sv.PolicyHash = ptr.String(jtv) } default: @@ -33338,7 +33447,7 @@ func awsAwsjson11_deserializeOpDocumentResumeWorkflowRunOutput(v **ResumeWorkflo if !ok { return fmt.Errorf("expected IdString to be of type string, got %T instead", value) } - sv.RunId = &jtv + sv.RunId = ptr.String(jtv) } default: @@ -33378,7 +33487,7 @@ func awsAwsjson11_deserializeOpDocumentSearchTablesOutput(v **SearchTablesOutput if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TableList": @@ -33485,7 +33594,7 @@ func awsAwsjson11_deserializeOpDocumentStartExportLabelsTaskRunOutput(v **StartE if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TaskRunId = &jtv + sv.TaskRunId = ptr.String(jtv) } default: @@ -33525,7 +33634,7 @@ func awsAwsjson11_deserializeOpDocumentStartImportLabelsTaskRunOutput(v **StartI if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TaskRunId = &jtv + sv.TaskRunId = ptr.String(jtv) } default: @@ -33565,7 +33674,7 @@ func awsAwsjson11_deserializeOpDocumentStartJobRunOutput(v **StartJobRunOutput, if !ok { return fmt.Errorf("expected IdString to be of type string, got %T instead", value) } - sv.JobRunId = &jtv + sv.JobRunId = ptr.String(jtv) } default: @@ -33605,7 +33714,7 @@ func awsAwsjson11_deserializeOpDocumentStartMLEvaluationTaskRunOutput(v **StartM if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TaskRunId = &jtv + sv.TaskRunId = ptr.String(jtv) } default: @@ -33645,7 +33754,7 @@ func awsAwsjson11_deserializeOpDocumentStartMLLabelingSetGenerationTaskRunOutput if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TaskRunId = &jtv + sv.TaskRunId = ptr.String(jtv) } default: @@ -33685,7 +33794,7 @@ func awsAwsjson11_deserializeOpDocumentStartTriggerOutput(v **StartTriggerOutput if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -33725,7 +33834,7 @@ func awsAwsjson11_deserializeOpDocumentStartWorkflowRunOutput(v **StartWorkflowR if !ok { return fmt.Errorf("expected IdString to be of type string, got %T instead", value) } - sv.RunId = &jtv + sv.RunId = ptr.String(jtv) } default: @@ -33827,7 +33936,7 @@ func awsAwsjson11_deserializeOpDocumentStopTriggerOutput(v **StopTriggerOutput, if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -34218,7 +34327,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateJobOutput(v **UpdateJobOutput, valu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } default: @@ -34258,7 +34367,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMLTransformOutput(v **UpdateMLTrans if !ok { return fmt.Errorf("expected HashString to be of type string, got %T instead", value) } - sv.TransformId = &jtv + sv.TransformId = ptr.String(jtv) } default: @@ -34427,7 +34536,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateWorkflowOutput(v **UpdateWorkflowOu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: diff --git a/service/glue/go.mod b/service/glue/go.mod index af3fa2b32a0..7c1619d73d9 100644 --- a/service/glue/go.mod +++ b/service/glue/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/glue go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/glue/serializers.go b/service/glue/serializers.go index 773e9397bfd..277af9975a4 100644 --- a/service/glue/serializers.go +++ b/service/glue/serializers.go @@ -6265,113 +6265,85 @@ func awsAwsjson11_serializeDocumentAction(v *types.Action, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentActionList(v []*types.Action, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentActionList(v []types.Action, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAction(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAction(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentAdditionalPlanOptionsMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAdditionalPlanOptionsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentBatchDeletePartitionValueList(v []*types.PartitionValueList, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBatchDeletePartitionValueList(v []types.PartitionValueList, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPartitionValueList(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPartitionValueList(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentBatchDeleteTableNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBatchDeleteTableNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentBatchDeleteTableVersionList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBatchDeleteTableVersionList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentBatchGetPartitionValueList(v []*types.PartitionValueList, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBatchGetPartitionValueList(v []types.PartitionValueList, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPartitionValueList(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPartitionValueList(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentBatchStopJobRunJobRunIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBatchStopJobRunJobRunIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6397,17 +6369,13 @@ func awsAwsjson11_serializeDocumentBatchUpdatePartitionRequestEntry(v *types.Bat return nil } -func awsAwsjson11_serializeDocumentBatchUpdatePartitionRequestEntryList(v []*types.BatchUpdatePartitionRequestEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBatchUpdatePartitionRequestEntryList(v []types.BatchUpdatePartitionRequestEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentBatchUpdatePartitionRequestEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentBatchUpdatePartitionRequestEntry(&v[i], av); err != nil { return err } } @@ -6418,19 +6386,19 @@ func awsAwsjson11_serializeDocumentBinaryColumnStatisticsData(v *types.BinaryCol object := value.Object() defer object.Close() - if v.AverageLength != nil { + if v.AverageLength != 0 { ok := object.Key("AverageLength") - ok.Double(*v.AverageLength) + ok.Double(v.AverageLength) } - if v.MaximumLength != nil { + if v.MaximumLength != 0 { ok := object.Key("MaximumLength") - ok.Long(*v.MaximumLength) + ok.Long(v.MaximumLength) } - if v.NumberOfNulls != nil { + if v.NumberOfNulls != 0 { ok := object.Key("NumberOfNulls") - ok.Long(*v.NumberOfNulls) + ok.Long(v.NumberOfNulls) } return nil @@ -6440,50 +6408,42 @@ func awsAwsjson11_serializeDocumentBooleanColumnStatisticsData(v *types.BooleanC object := value.Object() defer object.Close() - if v.NumberOfFalses != nil { + if v.NumberOfFalses != 0 { ok := object.Key("NumberOfFalses") - ok.Long(*v.NumberOfFalses) + ok.Long(v.NumberOfFalses) } - if v.NumberOfNulls != nil { + if v.NumberOfNulls != 0 { ok := object.Key("NumberOfNulls") - ok.Long(*v.NumberOfNulls) + ok.Long(v.NumberOfNulls) } - if v.NumberOfTrues != nil { + if v.NumberOfTrues != 0 { ok := object.Key("NumberOfTrues") - ok.Long(*v.NumberOfTrues) + ok.Long(v.NumberOfTrues) } return nil } -func awsAwsjson11_serializeDocumentBoundedPartitionValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBoundedPartitionValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentCatalogEntries(v []*types.CatalogEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCatalogEntries(v []types.CatalogEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCatalogEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCatalogEntry(&v[i], av); err != nil { return err } } @@ -6507,17 +6467,13 @@ func awsAwsjson11_serializeDocumentCatalogEntry(v *types.CatalogEntry, value smi return nil } -func awsAwsjson11_serializeDocumentCatalogTablesList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCatalogTablesList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6541,34 +6497,26 @@ func awsAwsjson11_serializeDocumentCatalogTarget(v *types.CatalogTarget, value s return nil } -func awsAwsjson11_serializeDocumentCatalogTargetList(v []*types.CatalogTarget, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCatalogTargetList(v []types.CatalogTarget, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCatalogTarget(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCatalogTarget(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentClassifierNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentClassifierNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6628,9 +6576,9 @@ func awsAwsjson11_serializeDocumentCodeGenNode(v *types.CodeGenNode, value smith ok.String(*v.Id) } - if v.LineNumber != nil { + if v.LineNumber != 0 { ok := object.Key("LineNumber") - ok.Integer(*v.LineNumber) + ok.Integer(v.LineNumber) } if v.NodeType != nil { @@ -6650,9 +6598,9 @@ func awsAwsjson11_serializeDocumentCodeGenNodeArg(v *types.CodeGenNodeArg, value ok.String(*v.Name) } - if v.Param != nil { + if v.Param { ok := object.Key("Param") - ok.Boolean(*v.Param) + ok.Boolean(v.Param) } if v.Value != nil { @@ -6663,17 +6611,13 @@ func awsAwsjson11_serializeDocumentCodeGenNodeArg(v *types.CodeGenNodeArg, value return nil } -func awsAwsjson11_serializeDocumentCodeGenNodeArgs(v []*types.CodeGenNodeArg, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCodeGenNodeArgs(v []types.CodeGenNodeArg, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCodeGenNodeArg(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCodeGenNodeArg(&v[i], av); err != nil { return err } } @@ -6709,17 +6653,13 @@ func awsAwsjson11_serializeDocumentColumn(v *types.Column, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentColumnList(v []*types.Column, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentColumnList(v []types.Column, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentColumn(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentColumn(&v[i], av); err != nil { return err } } @@ -6816,17 +6756,13 @@ func awsAwsjson11_serializeDocumentColumnStatisticsData(v *types.ColumnStatistic return nil } -func awsAwsjson11_serializeDocumentColumnValueStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentColumnValueStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6863,17 +6799,13 @@ func awsAwsjson11_serializeDocumentCondition(v *types.Condition, value smithyjso return nil } -func awsAwsjson11_serializeDocumentConditionList(v []*types.Condition, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConditionList(v []types.Condition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCondition(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCondition(&v[i], av); err != nil { return err } } @@ -6932,25 +6864,21 @@ func awsAwsjson11_serializeDocumentConnectionPasswordEncryption(v *types.Connect ok.String(*v.AwsKmsKeyId) } - if v.ReturnConnectionPasswordEncrypted != nil { + if v.ReturnConnectionPasswordEncrypted { ok := object.Key("ReturnConnectionPasswordEncrypted") - ok.Boolean(*v.ReturnConnectionPasswordEncrypted) + ok.Boolean(v.ReturnConnectionPasswordEncrypted) } return nil } -func awsAwsjson11_serializeDocumentConnectionProperties(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConnectionProperties(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -6969,17 +6897,13 @@ func awsAwsjson11_serializeDocumentConnectionsList(v *types.ConnectionsList, val return nil } -func awsAwsjson11_serializeDocumentCrawlerNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCrawlerNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7136,49 +7060,37 @@ func awsAwsjson11_serializeDocumentCreateXMLClassifierRequest(v *types.CreateXML return nil } -func awsAwsjson11_serializeDocumentCsvHeader(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCsvHeader(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentDagEdges(v []*types.CodeGenEdge, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDagEdges(v []types.CodeGenEdge, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCodeGenEdge(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCodeGenEdge(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentDagNodes(v []*types.CodeGenNode, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDagNodes(v []types.CodeGenNode, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCodeGenNode(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCodeGenNode(&v[i], av); err != nil { return err } } @@ -7292,14 +7204,14 @@ func awsAwsjson11_serializeDocumentDateColumnStatisticsData(v *types.DateColumnS ok.Double(smithytime.FormatEpochSeconds(*v.MinimumValue)) } - if v.NumberOfDistinctValues != nil { + if v.NumberOfDistinctValues != 0 { ok := object.Key("NumberOfDistinctValues") - ok.Long(*v.NumberOfDistinctValues) + ok.Long(v.NumberOfDistinctValues) } - if v.NumberOfNulls != nil { + if v.NumberOfNulls != 0 { ok := object.Key("NumberOfNulls") - ok.Long(*v.NumberOfNulls) + ok.Long(v.NumberOfNulls) } return nil @@ -7323,14 +7235,14 @@ func awsAwsjson11_serializeDocumentDecimalColumnStatisticsData(v *types.DecimalC } } - if v.NumberOfDistinctValues != nil { + if v.NumberOfDistinctValues != 0 { ok := object.Key("NumberOfDistinctValues") - ok.Long(*v.NumberOfDistinctValues) + ok.Long(v.NumberOfDistinctValues) } - if v.NumberOfNulls != nil { + if v.NumberOfNulls != 0 { ok := object.Key("NumberOfNulls") - ok.Long(*v.NumberOfNulls) + ok.Long(v.NumberOfNulls) } return nil @@ -7340,9 +7252,9 @@ func awsAwsjson11_serializeDocumentDecimalNumber(v *types.DecimalNumber, value s object := value.Object() defer object.Close() - if v.Scale != nil { + if v.Scale != 0 { ok := object.Key("Scale") - ok.Integer(*v.Scale) + ok.Integer(v.Scale) } if v.UnscaledValue != nil { @@ -7353,17 +7265,13 @@ func awsAwsjson11_serializeDocumentDecimalNumber(v *types.DecimalNumber, value s return nil } -func awsAwsjson11_serializeDocumentDeleteConnectionNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDeleteConnectionNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7385,17 +7293,13 @@ func awsAwsjson11_serializeDocumentDevEndpointCustomLibraries(v *types.DevEndpoi return nil } -func awsAwsjson11_serializeDocumentDevEndpointNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDevEndpointNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7404,24 +7308,24 @@ func awsAwsjson11_serializeDocumentDoubleColumnStatisticsData(v *types.DoubleCol object := value.Object() defer object.Close() - if v.MaximumValue != nil { + if v.MaximumValue != 0 { ok := object.Key("MaximumValue") - ok.Double(*v.MaximumValue) + ok.Double(v.MaximumValue) } - if v.MinimumValue != nil { + if v.MinimumValue != 0 { ok := object.Key("MinimumValue") - ok.Double(*v.MinimumValue) + ok.Double(v.MinimumValue) } - if v.NumberOfDistinctValues != nil { + if v.NumberOfDistinctValues != 0 { ok := object.Key("NumberOfDistinctValues") - ok.Long(*v.NumberOfDistinctValues) + ok.Long(v.NumberOfDistinctValues) } - if v.NumberOfNulls != nil { + if v.NumberOfNulls != 0 { ok := object.Key("NumberOfNulls") - ok.Long(*v.NumberOfNulls) + ok.Long(v.NumberOfNulls) } return nil @@ -7449,17 +7353,13 @@ func awsAwsjson11_serializeDocumentDynamoDBTarget(v *types.DynamoDBTarget, value return nil } -func awsAwsjson11_serializeDocumentDynamoDBTargetList(v []*types.DynamoDBTarget, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDynamoDBTargetList(v []types.DynamoDBTarget, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDynamoDBTarget(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDynamoDBTarget(&v[i], av); err != nil { return err } } @@ -7515,9 +7415,9 @@ func awsAwsjson11_serializeDocumentExecutionProperty(v *types.ExecutionProperty, object := value.Object() defer object.Close() - if v.MaxConcurrentRuns != nil { + if v.MaxConcurrentRuns != 0 { ok := object.Key("MaxConcurrentRuns") - ok.Integer(*v.MaxConcurrentRuns) + ok.Integer(v.MaxConcurrentRuns) } return nil @@ -7550,32 +7450,24 @@ func awsAwsjson11_serializeDocumentFindMatchesParameters(v *types.FindMatchesPar return nil } -func awsAwsjson11_serializeDocumentGenericMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGenericMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentGetColumnNamesList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGetColumnNamesList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7626,17 +7518,13 @@ func awsAwsjson11_serializeDocumentGlueTable(v *types.GlueTable, value smithyjso return nil } -func awsAwsjson11_serializeDocumentGlueTables(v []*types.GlueTable, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGlueTables(v []types.GlueTable, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentGlueTable(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentGlueTable(&v[i], av); err != nil { return err } } @@ -7667,17 +7555,13 @@ func awsAwsjson11_serializeDocumentJdbcTarget(v *types.JdbcTarget, value smithyj return nil } -func awsAwsjson11_serializeDocumentJdbcTargetList(v []*types.JdbcTarget, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentJdbcTargetList(v []types.JdbcTarget, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentJdbcTarget(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentJdbcTarget(&v[i], av); err != nil { return err } } @@ -7723,17 +7607,13 @@ func awsAwsjson11_serializeDocumentJobCommand(v *types.JobCommand, value smithyj return nil } -func awsAwsjson11_serializeDocumentJobNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentJobNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7742,9 +7622,9 @@ func awsAwsjson11_serializeDocumentJobUpdate(v *types.JobUpdate, value smithyjso object := value.Object() defer object.Close() - if v.AllocatedCapacity != nil { + if v.AllocatedCapacity != 0 { ok := object.Key("AllocatedCapacity") - ok.Integer(*v.AllocatedCapacity) + ok.Integer(v.AllocatedCapacity) } if v.Command != nil { @@ -7795,9 +7675,9 @@ func awsAwsjson11_serializeDocumentJobUpdate(v *types.JobUpdate, value smithyjso ok.Double(*v.MaxCapacity) } - if v.MaxRetries != nil { + if v.MaxRetries != 0 { ok := object.Key("MaxRetries") - ok.Integer(*v.MaxRetries) + ok.Integer(v.MaxRetries) } if v.NonOverridableArguments != nil { @@ -7842,17 +7722,13 @@ func awsAwsjson11_serializeDocumentJobUpdate(v *types.JobUpdate, value smithyjso return nil } -func awsAwsjson11_serializeDocumentKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7885,17 +7761,13 @@ func awsAwsjson11_serializeDocumentLocation(v *types.Location, value smithyjson. return nil } -func awsAwsjson11_serializeDocumentLocationMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLocationMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -7904,24 +7776,24 @@ func awsAwsjson11_serializeDocumentLongColumnStatisticsData(v *types.LongColumnS object := value.Object() defer object.Close() - if v.MaximumValue != nil { + if v.MaximumValue != 0 { ok := object.Key("MaximumValue") - ok.Long(*v.MaximumValue) + ok.Long(v.MaximumValue) } - if v.MinimumValue != nil { + if v.MinimumValue != 0 { ok := object.Key("MinimumValue") - ok.Long(*v.MinimumValue) + ok.Long(v.MinimumValue) } - if v.NumberOfDistinctValues != nil { + if v.NumberOfDistinctValues != 0 { ok := object.Key("NumberOfDistinctValues") - ok.Long(*v.NumberOfDistinctValues) + ok.Long(v.NumberOfDistinctValues) } - if v.NumberOfNulls != nil { + if v.NumberOfNulls != 0 { ok := object.Key("NumberOfNulls") - ok.Long(*v.NumberOfNulls) + ok.Long(v.NumberOfNulls) } return nil @@ -7964,49 +7836,37 @@ func awsAwsjson11_serializeDocumentMappingEntry(v *types.MappingEntry, value smi return nil } -func awsAwsjson11_serializeDocumentMappingList(v []*types.MappingEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMappingList(v []types.MappingEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMappingEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMappingEntry(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentMapValue(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMapValue(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentMatchCriteria(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMatchCriteria(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8050,49 +7910,37 @@ func awsAwsjson11_serializeDocumentMongoDBTarget(v *types.MongoDBTarget, value s return nil } -func awsAwsjson11_serializeDocumentMongoDBTargetList(v []*types.MongoDBTarget, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMongoDBTargetList(v []types.MongoDBTarget, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMongoDBTarget(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMongoDBTarget(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentNameStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNameStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentNodeIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNodeIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8109,17 +7957,13 @@ func awsAwsjson11_serializeDocumentNotificationProperty(v *types.NotificationPro return nil } -func awsAwsjson11_serializeDocumentOrchestrationStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOrchestrationStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8133,42 +7977,34 @@ func awsAwsjson11_serializeDocumentOrder(v *types.Order, value smithyjson.Value) ok.String(*v.Column) } - if v.SortOrder != nil { + if v.SortOrder != 0 { ok := object.Key("SortOrder") - ok.Integer(*v.SortOrder) + ok.Integer(v.SortOrder) } return nil } -func awsAwsjson11_serializeDocumentOrderList(v []*types.Order, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOrderList(v []types.Order, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOrder(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentOrder(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentParametersMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParametersMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -8192,17 +8028,13 @@ func awsAwsjson11_serializeDocumentPartitionIndex(v *types.PartitionIndex, value return nil } -func awsAwsjson11_serializeDocumentPartitionIndexList(v []*types.PartitionIndex, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPartitionIndexList(v []types.PartitionIndex, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPartitionIndex(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPartitionIndex(&v[i], av); err != nil { return err } } @@ -8247,17 +8079,13 @@ func awsAwsjson11_serializeDocumentPartitionInput(v *types.PartitionInput, value return nil } -func awsAwsjson11_serializeDocumentPartitionInputList(v []*types.PartitionInput, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPartitionInputList(v []types.PartitionInput, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPartitionInput(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPartitionInput(&v[i], av); err != nil { return err } } @@ -8278,17 +8106,13 @@ func awsAwsjson11_serializeDocumentPartitionValueList(v *types.PartitionValueLis return nil } -func awsAwsjson11_serializeDocumentPathList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPathList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8368,17 +8192,13 @@ func awsAwsjson11_serializeDocumentPrincipalPermissions(v *types.PrincipalPermis return nil } -func awsAwsjson11_serializeDocumentPrincipalPermissionsList(v []*types.PrincipalPermissions, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPrincipalPermissionsList(v []types.PrincipalPermissions, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPrincipalPermissions(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPrincipalPermissions(&v[i], av); err != nil { return err } } @@ -8407,17 +8227,13 @@ func awsAwsjson11_serializeDocumentPropertyPredicate(v *types.PropertyPredicate, return nil } -func awsAwsjson11_serializeDocumentPublicKeysList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPublicKeysList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8451,17 +8267,13 @@ func awsAwsjson11_serializeDocumentResourceUri(v *types.ResourceUri, value smith return nil } -func awsAwsjson11_serializeDocumentResourceUriList(v []*types.ResourceUri, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceUriList(v []types.ResourceUri, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentResourceUri(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentResourceUri(&v[i], av); err != nil { return err } } @@ -8485,17 +8297,13 @@ func awsAwsjson11_serializeDocumentS3Encryption(v *types.S3Encryption, value smi return nil } -func awsAwsjson11_serializeDocumentS3EncryptionList(v []*types.S3Encryption, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentS3EncryptionList(v []types.S3Encryption, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentS3Encryption(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentS3Encryption(&v[i], av); err != nil { return err } } @@ -8526,17 +8334,13 @@ func awsAwsjson11_serializeDocumentS3Target(v *types.S3Target, value smithyjson. return nil } -func awsAwsjson11_serializeDocumentS3TargetList(v []*types.S3Target, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentS3TargetList(v []types.S3Target, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentS3Target(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentS3Target(&v[i], av); err != nil { return err } } @@ -8577,34 +8381,26 @@ func awsAwsjson11_serializeDocumentSchemaColumn(v *types.SchemaColumn, value smi return nil } -func awsAwsjson11_serializeDocumentSearchPropertyPredicates(v []*types.PropertyPredicate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSearchPropertyPredicates(v []types.PropertyPredicate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPropertyPredicate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPropertyPredicate(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentSecurityGroupIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecurityGroupIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8613,14 +8409,14 @@ func awsAwsjson11_serializeDocumentSegment(v *types.Segment, value smithyjson.Va object := value.Object() defer object.Close() - if v.SegmentNumber != nil { + if v.SegmentNumber != 0 { ok := object.Key("SegmentNumber") - ok.Integer(*v.SegmentNumber) + ok.Integer(v.SegmentNumber) } - if v.TotalSegments != nil { + if v.TotalSegments != 0 { ok := object.Key("TotalSegments") - ok.Integer(*v.TotalSegments) + ok.Integer(v.TotalSegments) } return nil @@ -8678,17 +8474,13 @@ func awsAwsjson11_serializeDocumentSkewedInfo(v *types.SkewedInfo, value smithyj return nil } -func awsAwsjson11_serializeDocumentSortCriteria(v []*types.SortCriterion, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSortCriteria(v []types.SortCriterion, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSortCriterion(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSortCriterion(&v[i], av); err != nil { return err } } @@ -8730,9 +8522,9 @@ func awsAwsjson11_serializeDocumentStorageDescriptor(v *types.StorageDescriptor, } } - if v.Compressed != nil { + if v.Compressed { ok := object.Key("Compressed") - ok.Boolean(*v.Compressed) + ok.Boolean(v.Compressed) } if v.InputFormat != nil { @@ -8745,9 +8537,9 @@ func awsAwsjson11_serializeDocumentStorageDescriptor(v *types.StorageDescriptor, ok.String(*v.Location) } - if v.NumberOfBuckets != nil { + if v.NumberOfBuckets != 0 { ok := object.Key("NumberOfBuckets") - ok.Integer(*v.NumberOfBuckets) + ok.Integer(v.NumberOfBuckets) } if v.OutputFormat != nil { @@ -8783,9 +8575,9 @@ func awsAwsjson11_serializeDocumentStorageDescriptor(v *types.StorageDescriptor, } } - if v.StoredAsSubDirectories != nil { + if v.StoredAsSubDirectories { ok := object.Key("StoredAsSubDirectories") - ok.Boolean(*v.StoredAsSubDirectories) + ok.Boolean(v.StoredAsSubDirectories) } return nil @@ -8795,40 +8587,36 @@ func awsAwsjson11_serializeDocumentStringColumnStatisticsData(v *types.StringCol object := value.Object() defer object.Close() - if v.AverageLength != nil { + if v.AverageLength != 0 { ok := object.Key("AverageLength") - ok.Double(*v.AverageLength) + ok.Double(v.AverageLength) } - if v.MaximumLength != nil { + if v.MaximumLength != 0 { ok := object.Key("MaximumLength") - ok.Long(*v.MaximumLength) + ok.Long(v.MaximumLength) } - if v.NumberOfDistinctValues != nil { + if v.NumberOfDistinctValues != 0 { ok := object.Key("NumberOfDistinctValues") - ok.Long(*v.NumberOfDistinctValues) + ok.Long(v.NumberOfDistinctValues) } - if v.NumberOfNulls != nil { + if v.NumberOfNulls != 0 { ok := object.Key("NumberOfNulls") - ok.Long(*v.NumberOfNulls) + ok.Long(v.NumberOfNulls) } return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8898,9 +8686,9 @@ func awsAwsjson11_serializeDocumentTableInput(v *types.TableInput, value smithyj } } - if v.Retention != nil { + if v.Retention != 0 { ok := object.Key("Retention") - ok.Integer(*v.Retention) + ok.Integer(v.Retention) } if v.StorageDescriptor != nil { @@ -8935,32 +8723,24 @@ func awsAwsjson11_serializeDocumentTableInput(v *types.TableInput, value smithyj return nil } -func awsAwsjson11_serializeDocumentTagKeysList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeysList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagsMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -9101,17 +8881,13 @@ func awsAwsjson11_serializeDocumentTransformParameters(v *types.TransformParamet return nil } -func awsAwsjson11_serializeDocumentTransformSchema(v []*types.SchemaColumn, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTransformSchema(v []types.SchemaColumn, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSchemaColumn(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSchemaColumn(&v[i], av); err != nil { return err } } @@ -9135,17 +8911,13 @@ func awsAwsjson11_serializeDocumentTransformSortCriteria(v *types.TransformSortC return nil } -func awsAwsjson11_serializeDocumentTriggerNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTriggerNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -9186,17 +8958,13 @@ func awsAwsjson11_serializeDocumentTriggerUpdate(v *types.TriggerUpdate, value s return nil } -func awsAwsjson11_serializeDocumentUpdateColumnStatisticsList(v []*types.ColumnStatistics, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentUpdateColumnStatisticsList(v []types.ColumnStatistics, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentColumnStatistics(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentColumnStatistics(&v[i], av); err != nil { return err } } @@ -9347,47 +9115,35 @@ func awsAwsjson11_serializeDocumentUserDefinedFunctionInput(v *types.UserDefined return nil } -func awsAwsjson11_serializeDocumentValueStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentValueStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentWorkflowNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentWorkflowNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentWorkflowRunProperties(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentWorkflowRunProperties(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -9877,9 +9633,9 @@ func awsAwsjson11_serializeOpDocumentCreateDevEndpointInput(v *CreateDevEndpoint ok.String(*v.GlueVersion) } - if v.NumberOfNodes != nil { + if v.NumberOfNodes != 0 { ok := object.Key("NumberOfNodes") - ok.Integer(*v.NumberOfNodes) + ok.Integer(v.NumberOfNodes) } if v.NumberOfWorkers != nil { @@ -9940,9 +9696,9 @@ func awsAwsjson11_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smi object := value.Object() defer object.Close() - if v.AllocatedCapacity != nil { + if v.AllocatedCapacity != 0 { ok := object.Key("AllocatedCapacity") - ok.Integer(*v.AllocatedCapacity) + ok.Integer(v.AllocatedCapacity) } if v.Command != nil { @@ -9993,9 +9749,9 @@ func awsAwsjson11_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smi ok.Double(*v.MaxCapacity) } - if v.MaxRetries != nil { + if v.MaxRetries != 0 { ok := object.Key("MaxRetries") - ok.Integer(*v.MaxRetries) + ok.Integer(v.MaxRetries) } if v.Name != nil { @@ -10270,9 +10026,9 @@ func awsAwsjson11_serializeOpDocumentCreateTriggerInput(v *CreateTriggerInput, v ok.String(*v.Schedule) } - if v.StartOnCreation != nil { + if v.StartOnCreation { ok := object.Key("StartOnCreation") - ok.Boolean(*v.StartOnCreation) + ok.Boolean(v.StartOnCreation) } if v.Tags != nil { @@ -10778,9 +10534,9 @@ func awsAwsjson11_serializeOpDocumentGetConnectionInput(v *GetConnectionInput, v ok.String(*v.CatalogId) } - if v.HidePassword != nil { + if v.HidePassword { ok := object.Key("HidePassword") - ok.Boolean(*v.HidePassword) + ok.Boolean(v.HidePassword) } if v.Name != nil { @@ -10807,9 +10563,9 @@ func awsAwsjson11_serializeOpDocumentGetConnectionsInput(v *GetConnectionsInput, } } - if v.HidePassword != nil { + if v.HidePassword { ok := object.Key("HidePassword") - ok.Boolean(*v.HidePassword) + ok.Boolean(v.HidePassword) } if v.MaxResults != nil { @@ -11013,9 +10769,9 @@ func awsAwsjson11_serializeOpDocumentGetJobRunInput(v *GetJobRunInput, value smi ok.String(*v.JobName) } - if v.PredecessorsIncluded != nil { + if v.PredecessorsIncluded { ok := object.Key("PredecessorsIncluded") - ok.Boolean(*v.PredecessorsIncluded) + ok.Boolean(v.PredecessorsIncluded) } if v.RunId != nil { @@ -12070,9 +11826,9 @@ func awsAwsjson11_serializeOpDocumentStartImportLabelsTaskRunInput(v *StartImpor ok.String(*v.InputS3Path) } - if v.ReplaceAllLabels != nil { + if v.ReplaceAllLabels { ok := object.Key("ReplaceAllLabels") - ok.Boolean(*v.ReplaceAllLabels) + ok.Boolean(v.ReplaceAllLabels) } if v.TransformId != nil { @@ -12087,9 +11843,9 @@ func awsAwsjson11_serializeOpDocumentStartJobRunInput(v *StartJobRunInput, value object := value.Object() defer object.Close() - if v.AllocatedCapacity != nil { + if v.AllocatedCapacity != 0 { ok := object.Key("AllocatedCapacity") - ok.Integer(*v.AllocatedCapacity) + ok.Integer(v.AllocatedCapacity) } if v.Arguments != nil { @@ -12577,9 +12333,9 @@ func awsAwsjson11_serializeOpDocumentUpdateDevEndpointInput(v *UpdateDevEndpoint ok.String(*v.PublicKey) } - if v.UpdateEtlLibraries != nil { + if v.UpdateEtlLibraries { ok := object.Key("UpdateEtlLibraries") - ok.Boolean(*v.UpdateEtlLibraries) + ok.Boolean(v.UpdateEtlLibraries) } return nil diff --git a/service/glue/types/types.go b/service/glue/types/types.go index 9a25c2c05e9..2b6c84fc4a3 100644 --- a/service/glue/types/types.go +++ b/service/glue/types/types.go @@ -19,7 +19,7 @@ type Action struct { // Glue consumes to set up your job, see the Special Parameters Used by AWS Glue // (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html) // topic in the developer guide. - Arguments map[string]*string + Arguments map[string]string // The name of the crawler to be used with this action. CrawlerName *string @@ -70,7 +70,7 @@ type BatchUpdatePartitionFailureEntry struct { ErrorDetail *ErrorDetail // A list of values defining the partitions. - PartitionValueList []*string + PartitionValueList []string } // A structure that contains the values and structure used to update a partition. @@ -84,7 +84,7 @@ type BatchUpdatePartitionRequestEntry struct { // A list of values defining the partitions. // // This member is required. - PartitionValueList []*string + PartitionValueList []string } // Defines column statistics supported for bit sequence data values. @@ -93,17 +93,17 @@ type BinaryColumnStatisticsData struct { // The average bit sequence length in the column. // // This member is required. - AverageLength *float64 + AverageLength float64 // The size of the longest bit sequence in the column. // // This member is required. - MaximumLength *int64 + MaximumLength int64 // The number of null values in the column. // // This member is required. - NumberOfNulls *int64 + NumberOfNulls int64 } // Defines column statistics supported for Boolean data columns. @@ -112,17 +112,17 @@ type BooleanColumnStatisticsData struct { // The number of false values in the column. // // This member is required. - NumberOfFalses *int64 + NumberOfFalses int64 // The number of null values in the column. // // This member is required. - NumberOfNulls *int64 + NumberOfNulls int64 // The number of true values in the column. // // This member is required. - NumberOfTrues *int64 + NumberOfTrues int64 } // Specifies a table definition in the AWS Glue Data Catalog. @@ -143,7 +143,7 @@ type CatalogEntry struct { type CatalogImportStatus struct { // True if the migration has completed, or False otherwise. - ImportCompleted *bool + ImportCompleted bool // The time that the migration was started. ImportTime *time.Time @@ -163,7 +163,7 @@ type CatalogTarget struct { // A list of the tables to be synchronized. // // This member is required. - Tables []*string + Tables []string } // Classifiers are triggered during a crawl task. A classifier checks whether a @@ -222,7 +222,7 @@ type CodeGenNode struct { // Properties of the node, in the form of name-value pairs. // // This member is required. - Args []*CodeGenNodeArg + Args []CodeGenNodeArg // A node identifier that is unique within the node's graph. // @@ -235,7 +235,7 @@ type CodeGenNode struct { NodeType *string // The line number of the node. - LineNumber *int32 + LineNumber int32 } // An argument or property of a node. @@ -252,7 +252,7 @@ type CodeGenNodeArg struct { Value *string // True if the value is used as a parameter. - Param *bool + Param bool } // A column in a Table. @@ -267,7 +267,7 @@ type Column struct { Comment *string // These key-value pairs define properties associated with the column. - Parameters map[string]*string + Parameters map[string]string // The data type of the Column. Type *string @@ -478,7 +478,7 @@ type Connection struct { // KAFKA_SKIP_CUSTOM_CERT_VALIDATION - Whether to skip the validation of the CA // cert file or not. AWS Glue validates for three algorithms: SHA256withRSA, // SHA384withRSA and SHA512withRSA. Default value is "false". - ConnectionProperties map[string]*string + ConnectionProperties map[string]string // The type of the connection. Currently, SFTP is not supported. ConnectionType ConnectionType @@ -496,7 +496,7 @@ type Connection struct { LastUpdatedTime *time.Time // A list of criteria that can be used in selecting this connection. - MatchCriteria []*string + MatchCriteria []string // The name of the connection definition. Name *string @@ -512,7 +512,7 @@ type ConnectionInput struct { // These key-value pairs define parameters for the connection. // // This member is required. - ConnectionProperties map[string]*string + ConnectionProperties map[string]string // The type of the connection. Currently, these types are supported: // @@ -544,7 +544,7 @@ type ConnectionInput struct { Description *string // A list of criteria that can be used in selecting this connection. - MatchCriteria []*string + MatchCriteria []string // A map of physical connection requirements, such as virtual private cloud (VPC) // and SecurityGroup, that are needed to successfully make this connection. @@ -568,7 +568,7 @@ type ConnectionPasswordEncryption struct { // encryption takes effect independently from catalog encryption. // // This member is required. - ReturnConnectionPasswordEncrypted *bool + ReturnConnectionPasswordEncrypted bool // An AWS KMS key that is used to encrypt the connection password. If connection // password protection is enabled, the caller of CreateConnection and @@ -583,7 +583,7 @@ type ConnectionPasswordEncryption struct { type ConnectionsList struct { // A list of connections used by the job. - Connections []*string + Connections []string } // The details of a crawl in the workflow. @@ -615,7 +615,7 @@ type Crawler struct { // A list of UTF-8 strings that specify the custom classifiers that are associated // with the crawler. - Classifiers []*string + Classifiers []string // Crawler configuration information. This versioned JSON string allows users to // specify aspects of a crawler's behavior. For more information, see Configuring a @@ -624,7 +624,7 @@ type Crawler struct { // If the crawler is running, contains the total time elapsed since the last crawl // began. - CrawlElapsedTime *int64 + CrawlElapsedTime int64 // The name of the SecurityConfiguration structure to be used by this crawler. CrawlerSecurityConfiguration *string @@ -672,7 +672,7 @@ type Crawler struct { Targets *CrawlerTargets // The version of the crawler. - Version *int64 + Version int64 } // Metrics for a specified crawler. @@ -682,52 +682,52 @@ type CrawlerMetrics struct { CrawlerName *string // The duration of the crawler's most recent run, in seconds. - LastRuntimeSeconds *float64 + LastRuntimeSeconds float64 // The median duration of this crawler's runs, in seconds. - MedianRuntimeSeconds *float64 + MedianRuntimeSeconds float64 // True if the crawler is still estimating how long it will take to complete this // run. - StillEstimating *bool + StillEstimating bool // The number of tables created by this crawler. - TablesCreated *int32 + TablesCreated int32 // The number of tables deleted by this crawler. - TablesDeleted *int32 + TablesDeleted int32 // The number of tables updated by this crawler. - TablesUpdated *int32 + TablesUpdated int32 // The estimated time left to complete a running crawl. - TimeLeftSeconds *float64 + TimeLeftSeconds float64 } // The details of a Crawler node present in the workflow. type CrawlerNodeDetails struct { // A list of crawls represented by the crawl node. - Crawls []*Crawl + Crawls []Crawl } // Specifies data stores to crawl. type CrawlerTargets struct { // Specifies AWS Glue Data Catalog targets. - CatalogTargets []*CatalogTarget + CatalogTargets []CatalogTarget // Specifies Amazon DynamoDB targets. - DynamoDBTargets []*DynamoDBTarget + DynamoDBTargets []DynamoDBTarget // Specifies JDBC targets. - JdbcTargets []*JdbcTarget + JdbcTargets []JdbcTarget // Specifies Amazon DocumentDB or MongoDB targets. - MongoDBTargets []*MongoDBTarget + MongoDBTargets []MongoDBTarget // Specifies Amazon Simple Storage Service (Amazon S3) targets. - S3Targets []*S3Target + S3Targets []S3Target } // Specifies a custom CSV classifier for CreateClassifier to create. @@ -752,7 +752,7 @@ type CreateCsvClassifierRequest struct { DisableValueTrimming *bool // A list of strings representing column names. - Header []*string + Header []string // A custom symbol to denote what combines content into a single column value. Must // be different from the column delimiter. @@ -844,7 +844,7 @@ type CsvClassifier struct { DisableValueTrimming *bool // A list of strings representing column names. - Header []*string + Header []string // The time that this classifier was last updated. LastUpdated *time.Time @@ -854,7 +854,7 @@ type CsvClassifier struct { QuoteSymbol *string // The version of this classifier. - Version *int64 + Version int64 } // The Database object represents a logical grouping of tables that might reside in @@ -871,7 +871,7 @@ type Database struct { CatalogId *string // Creates a set of default permissions on the table for principals. - CreateTableDefaultPermissions []*PrincipalPermissions + CreateTableDefaultPermissions []PrincipalPermissions // The time at which the metadata database was created in the catalog. CreateTime *time.Time @@ -883,7 +883,7 @@ type Database struct { LocationUri *string // These key-value pairs define parameters and properties of the database. - Parameters map[string]*string + Parameters map[string]string // A DatabaseIdentifier structure that describes a target database for resource // linking. @@ -910,7 +910,7 @@ type DatabaseInput struct { Name *string // Creates a set of default permissions on the table for principals. - CreateTableDefaultPermissions []*PrincipalPermissions + CreateTableDefaultPermissions []PrincipalPermissions // A description of the database. Description *string @@ -920,7 +920,7 @@ type DatabaseInput struct { // These key-value pairs define parameters and properties of the database. These // key-value pairs define parameters and properties of the database. - Parameters map[string]*string + Parameters map[string]string // A DatabaseIdentifier structure that describes a target database for resource // linking. @@ -953,12 +953,12 @@ type DateColumnStatisticsData struct { // The number of distinct values in a column. // // This member is required. - NumberOfDistinctValues *int64 + NumberOfDistinctValues int64 // The number of null values in the column. // // This member is required. - NumberOfNulls *int64 + NumberOfNulls int64 // The highest value in the column. MaximumValue *time.Time @@ -973,12 +973,12 @@ type DecimalColumnStatisticsData struct { // The number of distinct values in a column. // // This member is required. - NumberOfDistinctValues *int64 + NumberOfDistinctValues int64 // The number of null values in the column. // // This member is required. - NumberOfNulls *int64 + NumberOfNulls int64 // The highest value in the column. MaximumValue *DecimalNumber @@ -993,7 +993,7 @@ type DecimalNumber struct { // The scale that determines where the decimal point falls in the unscaled value. // // This member is required. - Scale *int32 + Scale int32 // The unscaled numeric value. // @@ -1019,7 +1019,7 @@ type DevEndpoint struct { // development endpoints by using the Arguments parameter in the CreateDevEndpoint // or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to // Python 2. - Arguments map[string]*string + Arguments map[string]string // The AWS Availability Zone where this DevEndpoint is located. AvailabilityZone *string @@ -1064,7 +1064,7 @@ type DevEndpoint struct { // The number of AWS Glue Data Processing Units (DPUs) allocated to this // DevEndpoint. - NumberOfNodes *int32 + NumberOfNodes int32 // The number of workers of a defined workerType that are allocated to the // development endpoint. The maximum number of workers you can define are 299 for @@ -1092,7 +1092,7 @@ type DevEndpoint struct { // of public keys. Call the UpdateDevEndpoint API operation with the public key // content in the deletePublicKeys attribute, and the list of new keys in the // addPublicKeys attribute. - PublicKeys []*string + PublicKeys []string // The Amazon Resource Name (ARN) of the IAM role used in this DevEndpoint. RoleArn *string @@ -1102,7 +1102,7 @@ type DevEndpoint struct { SecurityConfiguration *string // A list of security group identifiers used in this DevEndpoint. - SecurityGroupIds []*string + SecurityGroupIds []string // The current status of this DevEndpoint. Status *string @@ -1138,7 +1138,7 @@ type DevEndpoint struct { YarnEndpointAddress *string // The Apache Zeppelin port for the remote Apache Spark interpreter. - ZeppelinRemoteSparkInterpreterPort *int32 + ZeppelinRemoteSparkInterpreterPort int32 } // Custom libraries to be loaded into a development endpoint. @@ -1163,18 +1163,18 @@ type DoubleColumnStatisticsData struct { // The number of distinct values in a column. // // This member is required. - NumberOfDistinctValues *int64 + NumberOfDistinctValues int64 // The number of null values in the column. // // This member is required. - NumberOfNulls *int64 + NumberOfNulls int64 // The highest value in the column. - MaximumValue *float64 + MaximumValue float64 // The lowest value in the column. - MinimumValue *float64 + MinimumValue float64 } // Specifies an Amazon DynamoDB table to crawl. @@ -1233,7 +1233,7 @@ type EncryptionConfiguration struct { JobBookmarksEncryption *JobBookmarksEncryption // The encryption configuration for Amazon Simple Storage Service (Amazon S3) data. - S3Encryption []*S3Encryption + S3Encryption []S3Encryption } // Contains details about an error. @@ -1265,7 +1265,7 @@ type ExecutionProperty struct { // The maximum number of concurrent runs allowed for the job. The default is 1. An // error is returned when this threshold is reached. The maximum value you can // specify is controlled by a service limit. - MaxConcurrentRuns *int32 + MaxConcurrentRuns int32 } // Specifies configuration properties for an exporting labels task run. @@ -1374,7 +1374,7 @@ type GetConnectionsFilter struct { // A criteria string that must match the criteria recorded in the connection // definition for that connection definition to be returned. - MatchCriteria []*string + MatchCriteria []string } // A structure for returning a resource policy. @@ -1447,7 +1447,7 @@ type GrokClassifier struct { LastUpdated *time.Time // The version of this classifier. - Version *int64 + Version int64 } // Specifies configuration properties for an importing labels task run. @@ -1458,7 +1458,7 @@ type ImportLabelsTaskRunProperties struct { InputS3Path *string // Indicates whether to overwrite your existing labels. - Replace *bool + Replace bool } // Specifies a JDBC data store to crawl. @@ -1470,7 +1470,7 @@ type JdbcTarget struct { // A list of glob patterns used to exclude from the crawl. For more information, // see Catalog Tables with a Crawler // (https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html). - Exclusions []*string + Exclusions []string // The path of the JDBC target. Path *string @@ -1485,7 +1485,7 @@ type Job struct { // that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more // information, see the AWS Glue pricing page // (https://aws.amazon.com/glue/pricing/). - AllocatedCapacity *int32 + AllocatedCapacity int32 // The JobCommand that executes this job. Command *JobCommand @@ -1505,7 +1505,7 @@ type Job struct { // Glue consumes to set up your job, see the Special Parameters Used by AWS Glue // (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html) // topic in the developer guide. - DefaultArguments map[string]*string + DefaultArguments map[string]string // A description of the job. Description *string @@ -1548,13 +1548,13 @@ type Job struct { MaxCapacity *float64 // The maximum number of times to retry this job after a JobRun fails. - MaxRetries *int32 + MaxRetries int32 // The name you assign to this job definition. Name *string // Non-overridable arguments for this job, specified as name-value pairs. - NonOverridableArguments map[string]*string + NonOverridableArguments map[string]string // Specifies configuration properties of a job notification. NotificationProperty *NotificationProperty @@ -1596,7 +1596,7 @@ type Job struct { type JobBookmarkEntry struct { // The attempt ID number. - Attempt *int32 + Attempt int32 // The bookmark itself. JobBookmark *string @@ -1608,13 +1608,13 @@ type JobBookmarkEntry struct { PreviousRunId *string // The run ID number. - Run *int32 + Run int32 // The run ID number. RunId *string // The version of the job. - Version *int32 + Version int32 } // Specifies how job bookmark data should be encrypted. @@ -1648,7 +1648,7 @@ type JobCommand struct { type JobNodeDetails struct { // The information for the job runs represented by the job node. - JobRuns []*JobRun + JobRuns []JobRun } // Contains information about a job run. @@ -1660,7 +1660,7 @@ type JobRun struct { // that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more // information, see the AWS Glue pricing page // (https://aws.amazon.com/glue/pricing/). - AllocatedCapacity *int32 + AllocatedCapacity int32 // The job arguments associated with this run. For this job run, they replace the // default arguments set in the job definition itself. You can specify arguments @@ -1672,10 +1672,10 @@ type JobRun struct { // Glue consumes to set up your job, see the Special Parameters Used by AWS Glue // (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html) // topic in the developer guide. - Arguments map[string]*string + Arguments map[string]string // The number of the attempt to run this job. - Attempt *int32 + Attempt int32 // The date and time that this job run completed. CompletedOn *time.Time @@ -1684,7 +1684,7 @@ type JobRun struct { ErrorMessage *string // The amount of time (in seconds) that the job run consumed resources. - ExecutionTime *int32 + ExecutionTime int32 // Glue version determines the versions of Apache Spark and Python that AWS Glue // supports. The Python version indicates the version supported for jobs of type @@ -1744,7 +1744,7 @@ type JobRun struct { NumberOfWorkers *int32 // A list of predecessors to this job run. - PredecessorRuns []*Predecessor + PredecessorRuns []Predecessor // The ID of the previous run of this job. For example, the JobRunId specified in // the StartJobRun action. @@ -1790,7 +1790,7 @@ type JobUpdate struct { // consists of 4 vCPUs of compute capacity and 16 GB of memory. For more // information, see the AWS Glue pricing page // (https://aws.amazon.com/glue/pricing/). - AllocatedCapacity *int32 + AllocatedCapacity int32 // The JobCommand that executes this job (required). Command *JobCommand @@ -1807,7 +1807,7 @@ type JobUpdate struct { // Glue consumes to set up your job, see the Special Parameters Used by AWS Glue // (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html) // topic in the developer guide. - DefaultArguments map[string]*string + DefaultArguments map[string]string // Description of the job being defined. Description *string @@ -1846,10 +1846,10 @@ type JobUpdate struct { MaxCapacity *float64 // The maximum number of times to retry this job if it fails. - MaxRetries *int32 + MaxRetries int32 // Non-overridable arguments for this job, specified as name-value pairs. - NonOverridableArguments map[string]*string + NonOverridableArguments map[string]string // Specifies the configuration properties of a job notification. NotificationProperty *NotificationProperty @@ -1911,7 +1911,7 @@ type JsonClassifier struct { LastUpdated *time.Time // The version of this classifier. - Version *int64 + Version int64 } // A partition key pair consisting of a name and a type. @@ -1962,13 +1962,13 @@ type LastCrawlInfo struct { type Location struct { // An Amazon DynamoDB table location. - DynamoDB []*CodeGenNodeArg + DynamoDB []CodeGenNodeArg // A JDBC location. - Jdbc []*CodeGenNodeArg + Jdbc []CodeGenNodeArg // An Amazon Simple Storage Service (Amazon S3) location. - S3 []*CodeGenNodeArg + S3 []CodeGenNodeArg } // Defines column statistics supported for integer data columns. @@ -1977,18 +1977,18 @@ type LongColumnStatisticsData struct { // The number of distinct values in a column. // // This member is required. - NumberOfDistinctValues *int64 + NumberOfDistinctValues int64 // The number of null values in the column. // // This member is required. - NumberOfNulls *int64 + NumberOfNulls int64 // The highest value in the column. - MaximumValue *int64 + MaximumValue int64 // The lowest value in the column. - MinimumValue *int64 + MinimumValue int64 } // Defines a mapping. @@ -2036,12 +2036,12 @@ type MLTransform struct { GlueVersion *string // A list of AWS Glue table definitions used by the transform. - InputRecordTables []*GlueTable + InputRecordTables []GlueTable // A count identifier for the labeling files generated by AWS Glue for this // transform. As you create a better transform, you can iteratively download, // label, and upload the labeling file. - LabelCount *int32 + LabelCount int32 // A timestamp. The last point in time when this machine learning transform was // modified. @@ -2107,7 +2107,7 @@ type MLTransform struct { // A map of key-value pairs representing the columns and data types that this // transform can run against. Has an upper bound of 100 columns. - Schema []*SchemaColumn + Schema []SchemaColumn // The current status of the machine learning transform. Status TransformStatusType @@ -2235,7 +2235,7 @@ type Order struct { // order (==0). // // This member is required. - SortOrder *int32 + SortOrder int32 } // Represents a slice of table data. @@ -2257,7 +2257,7 @@ type Partition struct { LastAnalyzedTime *time.Time // These key-value pairs define partition parameters. - Parameters map[string]*string + Parameters map[string]string // Provides information about the physical location where the partition is stored. StorageDescriptor *StorageDescriptor @@ -2266,7 +2266,7 @@ type Partition struct { TableName *string // The values of the partition. - Values []*string + Values []string } // Contains information about a partition error. @@ -2276,7 +2276,7 @@ type PartitionError struct { ErrorDetail *ErrorDetail // The values that define the partition. - PartitionValues []*string + PartitionValues []string } // A structure for a partition index. @@ -2290,7 +2290,7 @@ type PartitionIndex struct { // The keys for the partition index. // // This member is required. - Keys []*string + Keys []string } // A descriptor for a partition index in a table. @@ -2310,7 +2310,7 @@ type PartitionIndexDescriptor struct { // index. // // This member is required. - Keys []*KeySchemaElement + Keys []KeySchemaElement } // The structure used to create and update a partition. @@ -2323,7 +2323,7 @@ type PartitionInput struct { LastAnalyzedTime *time.Time // These key-value pairs define partition parameters. - Parameters map[string]*string + Parameters map[string]string // Provides information about the physical location where the partition is stored. StorageDescriptor *StorageDescriptor @@ -2333,7 +2333,7 @@ type PartitionInput struct { // the new partition must be passed as an array of String objects that must be // ordered in the same order as the partition keys appearing in the Amazon S3 // prefix. Otherwise AWS Glue will add the values to the wrong keys. - Values []*string + Values []string } // Contains a list of values defining partitions. @@ -2342,7 +2342,7 @@ type PartitionValueList struct { // The list of values. // // This member is required. - Values []*string + Values []string } // Specifies the physical requirements for a connection. @@ -2354,7 +2354,7 @@ type PhysicalConnectionRequirements struct { AvailabilityZone *string // The security group ID list used by the connection. - SecurityGroupIdList []*string + SecurityGroupIdList []string // The subnet ID used by the connection. SubnetId *string @@ -2375,7 +2375,7 @@ type Predecessor struct { type Predicate struct { // A list of the conditions that determine when the trigger will fire. - Conditions []*Condition + Conditions []Condition // An optional field if only one condition is listed. If multiple conditions are // listed, then this field is required. @@ -2451,7 +2451,7 @@ type S3Target struct { // A list of glob patterns used to exclude from the crawl. For more information, // see Catalog Tables with a Crawler // (https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html). - Exclusions []*string + Exclusions []string // The path to the Amazon S3 target. Path *string @@ -2514,12 +2514,12 @@ type Segment struct { // segments is 4, SegmentNumber values range from 0 through 3. // // This member is required. - SegmentNumber *int32 + SegmentNumber int32 // The total number of segments. // // This member is required. - TotalSegments *int32 + TotalSegments int32 } // Information about a serialization/deserialization program (SerDe) that serves as @@ -2530,7 +2530,7 @@ type SerDeInfo struct { Name *string // These key-value pairs define initialization parameters for the SerDe. - Parameters map[string]*string + Parameters map[string]string // Usually the class that implements the SerDe. An example is // org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe. @@ -2542,13 +2542,13 @@ type SerDeInfo struct { type SkewedInfo struct { // A list of names of columns that contain skewed values. - SkewedColumnNames []*string + SkewedColumnNames []string // A mapping of skewed values to the columns that contain them. - SkewedColumnValueLocationMaps map[string]*string + SkewedColumnValueLocationMaps map[string]string // A list of values that appear so frequently as to be considered skewed. - SkewedColumnValues []*string + SkewedColumnValues []string } // Specifies a field to sort by and a sort order. @@ -2566,13 +2566,13 @@ type StorageDescriptor struct { // A list of reducer grouping columns, clustering columns, and bucketing columns in // the table. - BucketColumns []*string + BucketColumns []string // A list of the Columns in the table. - Columns []*Column + Columns []Column // True if the data in the table is compressed, or False if not. - Compressed *bool + Compressed bool // The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a // custom format. @@ -2584,14 +2584,14 @@ type StorageDescriptor struct { Location *string // Must be specified if the table contains any dimension columns. - NumberOfBuckets *int32 + NumberOfBuckets int32 // The output format: SequenceFileOutputFormat (binary), or // IgnoreKeyTextOutputFormat, or a custom format. OutputFormat *string // The user-supplied properties in key-value form. - Parameters map[string]*string + Parameters map[string]string // The serialization/deserialization (SerDe) information. SerdeInfo *SerDeInfo @@ -2600,10 +2600,10 @@ type StorageDescriptor struct { SkewedInfo *SkewedInfo // A list specifying the sort order of each bucket in the table. - SortColumns []*Order + SortColumns []Order // True if the table data is stored in subdirectories, or False if not. - StoredAsSubDirectories *bool + StoredAsSubDirectories bool } // Defines column statistics supported for character sequence data values. @@ -2612,22 +2612,22 @@ type StringColumnStatisticsData struct { // The average string length in the column. // // This member is required. - AverageLength *float64 + AverageLength float64 // The size of the longest string in the column. // // This member is required. - MaximumLength *int64 + MaximumLength int64 // The number of distinct values in a column. // // This member is required. - NumberOfDistinctValues *int64 + NumberOfDistinctValues int64 // The number of null values in the column. // // This member is required. - NumberOfNulls *int64 + NumberOfNulls int64 } // Represents a collection of related data organized in columns and rows. @@ -2655,7 +2655,7 @@ type Table struct { Description *string // Indicates whether the table has been registered with AWS Lake Formation. - IsRegisteredWithLakeFormation *bool + IsRegisteredWithLakeFormation bool // The last time that the table was accessed. This is usually taken from HDFS, and // might not be reliable. @@ -2668,16 +2668,16 @@ type Table struct { Owner *string // These key-value pairs define properties associated with the table. - Parameters map[string]*string + Parameters map[string]string // A list of columns by which the table is partitioned. Only primitive types are // supported as partition keys. When you create a table used by Amazon Athena, and // you do not specify any partitionKeys, you must at least set the value of // partitionKeys to an empty list. For example: "PartitionKeys": [] - PartitionKeys []*Column + PartitionKeys []Column // The retention time for this table. - Retention *int32 + Retention int32 // A storage descriptor containing information about the physical storage of this // table. @@ -2744,16 +2744,16 @@ type TableInput struct { Owner *string // These key-value pairs define properties associated with the table. - Parameters map[string]*string + Parameters map[string]string // A list of columns by which the table is partitioned. Only primitive types are // supported as partition keys. When you create a table used by Amazon Athena, and // you do not specify any partitionKeys, you must at least set the value of // partitionKeys to an empty list. For example: "PartitionKeys": [] - PartitionKeys []*Column + PartitionKeys []Column // The retention time for this table. - Retention *int32 + Retention int32 // A storage descriptor containing information about the physical storage of this // table. @@ -2807,7 +2807,7 @@ type TaskRun struct { ErrorString *string // The amount of time (in seconds) that the task run consumed resources. - ExecutionTime *int32 + ExecutionTime int32 // The last point in time that the requested task run was updated. LastModifiedOn *time.Time @@ -2928,7 +2928,7 @@ type TransformFilterCriteria struct { // key-value pairs representing the schema this transform accepts, where Column is // the name of a column, and Type is the type of the data such as an integer or // string. Has an upper bound of 100 columns. - Schema []*SchemaColumn + Schema []SchemaColumn // Filters the list of machine learning transforms by the last known status of the // transforms (to indicate whether a transform can be used or not). One of @@ -2975,7 +2975,7 @@ type TransformSortCriteria struct { type Trigger struct { // The actions initiated by this trigger. - Actions []*Action + Actions []Action // A description of this trigger. Description *string @@ -3018,7 +3018,7 @@ type TriggerNodeDetails struct { type TriggerUpdate struct { // The actions initiated by this trigger. - Actions []*Action + Actions []Action // A description of this trigger. Description *string @@ -3059,7 +3059,7 @@ type UpdateCsvClassifierRequest struct { DisableValueTrimming *bool // A list of strings representing column names. - Header []*string + Header []string // A custom symbol to denote what combines content into a single column value. It // must be different from the column delimiter. @@ -3143,7 +3143,7 @@ type UserDefinedFunction struct { OwnerType PrincipalType // The resource URIs for the function. - ResourceUris []*ResourceUri + ResourceUris []ResourceUri } // A structure used to create or update a user-defined function. @@ -3162,7 +3162,7 @@ type UserDefinedFunctionInput struct { OwnerType PrincipalType // The resource URIs for the function. - ResourceUris []*ResourceUri + ResourceUris []ResourceUri } // A workflow represents a flow in which AWS Glue components should be executed to @@ -3173,7 +3173,7 @@ type Workflow struct { CreatedOn *time.Time // A collection of properties to be used as part of each execution of the workflow. - DefaultRunProperties map[string]*string + DefaultRunProperties map[string]string // A description of the workflow. Description *string @@ -3205,11 +3205,11 @@ type WorkflowGraph struct { // A list of all the directed connections between the nodes belonging to the // workflow. - Edges []*Edge + Edges []Edge // A list of the the AWS Glue components belong to the workflow represented as // nodes. - Nodes []*Node + Nodes []Node } // A workflow run is an execution of a workflow providing all the runtime @@ -3247,29 +3247,29 @@ type WorkflowRun struct { WorkflowRunId *string // The workflow run properties which were set during the run. - WorkflowRunProperties map[string]*string + WorkflowRunProperties map[string]string } // Workflow run statistics provides statistics about the workflow run. type WorkflowRunStatistics struct { // Total number of Actions that have failed. - FailedActions *int32 + FailedActions int32 // Total number Actions in running state. - RunningActions *int32 + RunningActions int32 // Total number of Actions that have stopped. - StoppedActions *int32 + StoppedActions int32 // Total number of Actions that have succeeded. - SucceededActions *int32 + SucceededActions int32 // Total number of Actions that timed out. - TimeoutActions *int32 + TimeoutActions int32 // Total number of Actions in the workflow run. - TotalActions *int32 + TotalActions int32 } // A classifier for XML content. @@ -3298,5 +3298,5 @@ type XMLClassifier struct { RowTag *string // The version of this classifier. - Version *int64 + Version int64 } diff --git a/service/glue/validators.go b/service/glue/validators.go index e7218af5a0e..75046286223 100644 --- a/service/glue/validators.go +++ b/service/glue/validators.go @@ -2722,13 +2722,13 @@ func addOpUpdateWorkflowValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateWorkflow{}, middleware.After) } -func validateBatchDeletePartitionValueList(v []*types.PartitionValueList) error { +func validateBatchDeletePartitionValueList(v []types.PartitionValueList) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BatchDeletePartitionValueList"} for i := range v { - if err := validatePartitionValueList(v[i]); err != nil { + if err := validatePartitionValueList(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2739,13 +2739,13 @@ func validateBatchDeletePartitionValueList(v []*types.PartitionValueList) error } } -func validateBatchGetPartitionValueList(v []*types.PartitionValueList) error { +func validateBatchGetPartitionValueList(v []types.PartitionValueList) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BatchGetPartitionValueList"} for i := range v { - if err := validatePartitionValueList(v[i]); err != nil { + if err := validatePartitionValueList(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2778,13 +2778,13 @@ func validateBatchUpdatePartitionRequestEntry(v *types.BatchUpdatePartitionReque } } -func validateBatchUpdatePartitionRequestEntryList(v []*types.BatchUpdatePartitionRequestEntry) error { +func validateBatchUpdatePartitionRequestEntryList(v []types.BatchUpdatePartitionRequestEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BatchUpdatePartitionRequestEntryList"} for i := range v { - if err := validateBatchUpdatePartitionRequestEntry(v[i]); err != nil { + if err := validateBatchUpdatePartitionRequestEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2800,15 +2800,6 @@ func validateBinaryColumnStatisticsData(v *types.BinaryColumnStatisticsData) err return nil } invalidParams := smithy.InvalidParamsError{Context: "BinaryColumnStatisticsData"} - if v.AverageLength == nil { - invalidParams.Add(smithy.NewErrParamRequired("AverageLength")) - } - if v.NumberOfNulls == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfNulls")) - } - if v.MaximumLength == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaximumLength")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2821,15 +2812,6 @@ func validateBooleanColumnStatisticsData(v *types.BooleanColumnStatisticsData) e return nil } invalidParams := smithy.InvalidParamsError{Context: "BooleanColumnStatisticsData"} - if v.NumberOfFalses == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfFalses")) - } - if v.NumberOfTrues == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfTrues")) - } - if v.NumberOfNulls == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfNulls")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2837,13 +2819,13 @@ func validateBooleanColumnStatisticsData(v *types.BooleanColumnStatisticsData) e } } -func validateCatalogEntries(v []*types.CatalogEntry) error { +func validateCatalogEntries(v []types.CatalogEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CatalogEntries"} for i := range v { - if err := validateCatalogEntry(v[i]); err != nil { + if err := validateCatalogEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2890,13 +2872,13 @@ func validateCatalogTarget(v *types.CatalogTarget) error { } } -func validateCatalogTargetList(v []*types.CatalogTarget) error { +func validateCatalogTargetList(v []types.CatalogTarget) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CatalogTargetList"} for i := range v { - if err := validateCatalogTarget(v[i]); err != nil { + if err := validateCatalogTarget(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2968,13 +2950,13 @@ func validateCodeGenNodeArg(v *types.CodeGenNodeArg) error { } } -func validateCodeGenNodeArgs(v []*types.CodeGenNodeArg) error { +func validateCodeGenNodeArgs(v []types.CodeGenNodeArg) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CodeGenNodeArgs"} for i := range v { - if err := validateCodeGenNodeArg(v[i]); err != nil { + if err := validateCodeGenNodeArg(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3000,13 +2982,13 @@ func validateColumn(v *types.Column) error { } } -func validateColumnList(v []*types.Column) error { +func validateColumnList(v []types.Column) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ColumnList"} for i := range v { - if err := validateColumn(v[i]); err != nil { + if err := validateColumn(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3121,9 +3103,6 @@ func validateConnectionPasswordEncryption(v *types.ConnectionPasswordEncryption) return nil } invalidParams := smithy.InvalidParamsError{Context: "ConnectionPasswordEncryption"} - if v.ReturnConnectionPasswordEncrypted == nil { - invalidParams.Add(smithy.NewErrParamRequired("ReturnConnectionPasswordEncrypted")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3220,13 +3199,13 @@ func validateCreateXMLClassifierRequest(v *types.CreateXMLClassifierRequest) err } } -func validateDagEdges(v []*types.CodeGenEdge) error { +func validateDagEdges(v []types.CodeGenEdge) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DagEdges"} for i := range v { - if err := validateCodeGenEdge(v[i]); err != nil { + if err := validateCodeGenEdge(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3237,13 +3216,13 @@ func validateDagEdges(v []*types.CodeGenEdge) error { } } -func validateDagNodes(v []*types.CodeGenNode) error { +func validateDagNodes(v []types.CodeGenNode) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DagNodes"} for i := range v { - if err := validateCodeGenNode(v[i]); err != nil { + if err := validateCodeGenNode(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3296,12 +3275,6 @@ func validateDateColumnStatisticsData(v *types.DateColumnStatisticsData) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "DateColumnStatisticsData"} - if v.NumberOfDistinctValues == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfDistinctValues")) - } - if v.NumberOfNulls == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfNulls")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3324,12 +3297,6 @@ func validateDecimalColumnStatisticsData(v *types.DecimalColumnStatisticsData) e invalidParams.AddNested("MinimumValue", err.(smithy.InvalidParamsError)) } } - if v.NumberOfNulls == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfNulls")) - } - if v.NumberOfDistinctValues == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfDistinctValues")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3345,9 +3312,6 @@ func validateDecimalNumber(v *types.DecimalNumber) error { if v.UnscaledValue == nil { invalidParams.Add(smithy.NewErrParamRequired("UnscaledValue")) } - if v.Scale == nil { - invalidParams.Add(smithy.NewErrParamRequired("Scale")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3360,12 +3324,6 @@ func validateDoubleColumnStatisticsData(v *types.DoubleColumnStatisticsData) err return nil } invalidParams := smithy.InvalidParamsError{Context: "DoubleColumnStatisticsData"} - if v.NumberOfDistinctValues == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfDistinctValues")) - } - if v.NumberOfNulls == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfNulls")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3406,13 +3364,13 @@ func validateGlueTable(v *types.GlueTable) error { } } -func validateGlueTables(v []*types.GlueTable) error { +func validateGlueTables(v []types.GlueTable) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GlueTables"} for i := range v { - if err := validateGlueTable(v[i]); err != nil { + if err := validateGlueTable(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3455,12 +3413,6 @@ func validateLongColumnStatisticsData(v *types.LongColumnStatisticsData) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "LongColumnStatisticsData"} - if v.NumberOfDistinctValues == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfDistinctValues")) - } - if v.NumberOfNulls == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfNulls")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3488,9 +3440,6 @@ func validateOrder(v *types.Order) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "Order"} - if v.SortOrder == nil { - invalidParams.Add(smithy.NewErrParamRequired("SortOrder")) - } if v.Column == nil { invalidParams.Add(smithy.NewErrParamRequired("Column")) } @@ -3501,13 +3450,13 @@ func validateOrder(v *types.Order) error { } } -func validateOrderList(v []*types.Order) error { +func validateOrderList(v []types.Order) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OrderList"} for i := range v { - if err := validateOrder(v[i]); err != nil { + if err := validateOrder(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3536,13 +3485,13 @@ func validatePartitionIndex(v *types.PartitionIndex) error { } } -func validatePartitionIndexList(v []*types.PartitionIndex) error { +func validatePartitionIndexList(v []types.PartitionIndex) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PartitionIndexList"} for i := range v { - if err := validatePartitionIndex(v[i]); err != nil { + if err := validatePartitionIndex(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3570,13 +3519,13 @@ func validatePartitionInput(v *types.PartitionInput) error { } } -func validatePartitionInputList(v []*types.PartitionInput) error { +func validatePartitionInputList(v []types.PartitionInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PartitionInputList"} for i := range v { - if err := validatePartitionInput(v[i]); err != nil { + if err := validatePartitionInput(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3607,12 +3556,6 @@ func validateSegment(v *types.Segment) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "Segment"} - if v.SegmentNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("SegmentNumber")) - } - if v.TotalSegments == nil { - invalidParams.Add(smithy.NewErrParamRequired("TotalSegments")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3647,18 +3590,6 @@ func validateStringColumnStatisticsData(v *types.StringColumnStatisticsData) err return nil } invalidParams := smithy.InvalidParamsError{Context: "StringColumnStatisticsData"} - if v.NumberOfDistinctValues == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfDistinctValues")) - } - if v.MaximumLength == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaximumLength")) - } - if v.AverageLength == nil { - invalidParams.Add(smithy.NewErrParamRequired("AverageLength")) - } - if v.NumberOfNulls == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfNulls")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3759,13 +3690,13 @@ func validateTransformSortCriteria(v *types.TransformSortCriteria) error { } } -func validateUpdateColumnStatisticsList(v []*types.ColumnStatistics) error { +func validateUpdateColumnStatisticsList(v []types.ColumnStatistics) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateColumnStatisticsList"} for i := range v { - if err := validateColumnStatistics(v[i]); err != nil { + if err := validateColumnStatistics(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/greengrass/api_op_CreateConnectorDefinition.go b/service/greengrass/api_op_CreateConnectorDefinition.go index 29e09100e99..9d3f16de3fd 100644 --- a/service/greengrass/api_op_CreateConnectorDefinition.go +++ b/service/greengrass/api_op_CreateConnectorDefinition.go @@ -41,7 +41,7 @@ type CreateConnectorDefinitionInput struct { Name *string // Tag(s) to add to the new resource. - Tags map[string]*string + Tags map[string]string } type CreateConnectorDefinitionOutput struct { diff --git a/service/greengrass/api_op_CreateConnectorDefinitionVersion.go b/service/greengrass/api_op_CreateConnectorDefinitionVersion.go index fcc66ef2f39..9b444012990 100644 --- a/service/greengrass/api_op_CreateConnectorDefinitionVersion.go +++ b/service/greengrass/api_op_CreateConnectorDefinitionVersion.go @@ -39,7 +39,7 @@ type CreateConnectorDefinitionVersionInput struct { // A list of references to connectors in this version, with their corresponding // configuration settings. - Connectors []*types.Connector + Connectors []types.Connector } type CreateConnectorDefinitionVersionOutput struct { diff --git a/service/greengrass/api_op_CreateCoreDefinition.go b/service/greengrass/api_op_CreateCoreDefinition.go index 60923158017..e1d1d1d59d3 100644 --- a/service/greengrass/api_op_CreateCoreDefinition.go +++ b/service/greengrass/api_op_CreateCoreDefinition.go @@ -42,7 +42,7 @@ type CreateCoreDefinitionInput struct { Name *string // Tag(s) to add to the new resource. - Tags map[string]*string + Tags map[string]string } type CreateCoreDefinitionOutput struct { diff --git a/service/greengrass/api_op_CreateCoreDefinitionVersion.go b/service/greengrass/api_op_CreateCoreDefinitionVersion.go index fd5a6b5e827..530c06e7a00 100644 --- a/service/greengrass/api_op_CreateCoreDefinitionVersion.go +++ b/service/greengrass/api_op_CreateCoreDefinitionVersion.go @@ -39,7 +39,7 @@ type CreateCoreDefinitionVersionInput struct { AmznClientToken *string // A list of cores in the core definition version. - Cores []*types.Core + Cores []types.Core } type CreateCoreDefinitionVersionOutput struct { diff --git a/service/greengrass/api_op_CreateDeviceDefinition.go b/service/greengrass/api_op_CreateDeviceDefinition.go index 8da8d8a7ef2..7e55fc71a8a 100644 --- a/service/greengrass/api_op_CreateDeviceDefinition.go +++ b/service/greengrass/api_op_CreateDeviceDefinition.go @@ -40,7 +40,7 @@ type CreateDeviceDefinitionInput struct { Name *string // Tag(s) to add to the new resource. - Tags map[string]*string + Tags map[string]string } type CreateDeviceDefinitionOutput struct { diff --git a/service/greengrass/api_op_CreateDeviceDefinitionVersion.go b/service/greengrass/api_op_CreateDeviceDefinitionVersion.go index 167cb924ef5..20b04b56c2e 100644 --- a/service/greengrass/api_op_CreateDeviceDefinitionVersion.go +++ b/service/greengrass/api_op_CreateDeviceDefinitionVersion.go @@ -38,7 +38,7 @@ type CreateDeviceDefinitionVersionInput struct { AmznClientToken *string // A list of devices in the definition version. - Devices []*types.Device + Devices []types.Device } type CreateDeviceDefinitionVersionOutput struct { diff --git a/service/greengrass/api_op_CreateFunctionDefinition.go b/service/greengrass/api_op_CreateFunctionDefinition.go index 1bf0afa6d27..34fa121ede6 100644 --- a/service/greengrass/api_op_CreateFunctionDefinition.go +++ b/service/greengrass/api_op_CreateFunctionDefinition.go @@ -42,7 +42,7 @@ type CreateFunctionDefinitionInput struct { Name *string // Tag(s) to add to the new resource. - Tags map[string]*string + Tags map[string]string } type CreateFunctionDefinitionOutput struct { diff --git a/service/greengrass/api_op_CreateFunctionDefinitionVersion.go b/service/greengrass/api_op_CreateFunctionDefinitionVersion.go index 772178537dc..1b09a1ca870 100644 --- a/service/greengrass/api_op_CreateFunctionDefinitionVersion.go +++ b/service/greengrass/api_op_CreateFunctionDefinitionVersion.go @@ -43,7 +43,7 @@ type CreateFunctionDefinitionVersionInput struct { DefaultConfig *types.FunctionDefaultConfig // A list of Lambda functions in this function definition version. - Functions []*types.Function + Functions []types.Function } type CreateFunctionDefinitionVersionOutput struct { diff --git a/service/greengrass/api_op_CreateGroup.go b/service/greengrass/api_op_CreateGroup.go index 265d56758eb..3ca667edbdf 100644 --- a/service/greengrass/api_op_CreateGroup.go +++ b/service/greengrass/api_op_CreateGroup.go @@ -42,7 +42,7 @@ type CreateGroupInput struct { Name *string // Tag(s) to add to the new resource. - Tags map[string]*string + Tags map[string]string } type CreateGroupOutput struct { diff --git a/service/greengrass/api_op_CreateLoggerDefinition.go b/service/greengrass/api_op_CreateLoggerDefinition.go index 2ee240407bb..a7c95061604 100644 --- a/service/greengrass/api_op_CreateLoggerDefinition.go +++ b/service/greengrass/api_op_CreateLoggerDefinition.go @@ -40,7 +40,7 @@ type CreateLoggerDefinitionInput struct { Name *string // Tag(s) to add to the new resource. - Tags map[string]*string + Tags map[string]string } type CreateLoggerDefinitionOutput struct { diff --git a/service/greengrass/api_op_CreateLoggerDefinitionVersion.go b/service/greengrass/api_op_CreateLoggerDefinitionVersion.go index cebe10b9172..0d9be484655 100644 --- a/service/greengrass/api_op_CreateLoggerDefinitionVersion.go +++ b/service/greengrass/api_op_CreateLoggerDefinitionVersion.go @@ -38,7 +38,7 @@ type CreateLoggerDefinitionVersionInput struct { AmznClientToken *string // A list of loggers. - Loggers []*types.Logger + Loggers []types.Logger } type CreateLoggerDefinitionVersionOutput struct { diff --git a/service/greengrass/api_op_CreateResourceDefinition.go b/service/greengrass/api_op_CreateResourceDefinition.go index 944c67db755..51ff91e0b1e 100644 --- a/service/greengrass/api_op_CreateResourceDefinition.go +++ b/service/greengrass/api_op_CreateResourceDefinition.go @@ -41,7 +41,7 @@ type CreateResourceDefinitionInput struct { Name *string // Tag(s) to add to the new resource. - Tags map[string]*string + Tags map[string]string } type CreateResourceDefinitionOutput struct { diff --git a/service/greengrass/api_op_CreateResourceDefinitionVersion.go b/service/greengrass/api_op_CreateResourceDefinitionVersion.go index 413476147c4..fe660c6a001 100644 --- a/service/greengrass/api_op_CreateResourceDefinitionVersion.go +++ b/service/greengrass/api_op_CreateResourceDefinitionVersion.go @@ -38,7 +38,7 @@ type CreateResourceDefinitionVersionInput struct { AmznClientToken *string // A list of resources. - Resources []*types.Resource + Resources []types.Resource } type CreateResourceDefinitionVersionOutput struct { diff --git a/service/greengrass/api_op_CreateSoftwareUpdateJob.go b/service/greengrass/api_op_CreateSoftwareUpdateJob.go index e9ffa953e64..57cb02bb8f5 100644 --- a/service/greengrass/api_op_CreateSoftwareUpdateJob.go +++ b/service/greengrass/api_op_CreateSoftwareUpdateJob.go @@ -47,7 +47,7 @@ type CreateSoftwareUpdateJobInput struct { // be applied to. // // This member is required. - UpdateTargets []*string + UpdateTargets []string // The architecture of the cores which are the targets of an update. // diff --git a/service/greengrass/api_op_CreateSubscriptionDefinition.go b/service/greengrass/api_op_CreateSubscriptionDefinition.go index 2c8a03038db..235a27856a7 100644 --- a/service/greengrass/api_op_CreateSubscriptionDefinition.go +++ b/service/greengrass/api_op_CreateSubscriptionDefinition.go @@ -41,7 +41,7 @@ type CreateSubscriptionDefinitionInput struct { Name *string // Tag(s) to add to the new resource. - Tags map[string]*string + Tags map[string]string } type CreateSubscriptionDefinitionOutput struct { diff --git a/service/greengrass/api_op_CreateSubscriptionDefinitionVersion.go b/service/greengrass/api_op_CreateSubscriptionDefinitionVersion.go index 78ea0b9866a..236a4822f46 100644 --- a/service/greengrass/api_op_CreateSubscriptionDefinitionVersion.go +++ b/service/greengrass/api_op_CreateSubscriptionDefinitionVersion.go @@ -38,7 +38,7 @@ type CreateSubscriptionDefinitionVersionInput struct { AmznClientToken *string // A list of subscriptions. - Subscriptions []*types.Subscription + Subscriptions []types.Subscription } type CreateSubscriptionDefinitionVersionOutput struct { diff --git a/service/greengrass/api_op_GetBulkDeploymentStatus.go b/service/greengrass/api_op_GetBulkDeploymentStatus.go index 6d8e867b7f3..3e4430fc493 100644 --- a/service/greengrass/api_op_GetBulkDeploymentStatus.go +++ b/service/greengrass/api_op_GetBulkDeploymentStatus.go @@ -47,13 +47,13 @@ type GetBulkDeploymentStatusOutput struct { CreatedAt *string // Error details - ErrorDetails []*types.ErrorDetail + ErrorDetails []types.ErrorDetail // Error message ErrorMessage *string // Tag(s) attached to the resource arn. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_GetConnectivityInfo.go b/service/greengrass/api_op_GetConnectivityInfo.go index ff48866c638..99bded43e24 100644 --- a/service/greengrass/api_op_GetConnectivityInfo.go +++ b/service/greengrass/api_op_GetConnectivityInfo.go @@ -38,7 +38,7 @@ type GetConnectivityInfoInput struct { type GetConnectivityInfoOutput struct { // Connectivity info list. - ConnectivityInfo []*types.ConnectivityInfo + ConnectivityInfo []types.ConnectivityInfo // A message about the connectivity info request. Message *string diff --git a/service/greengrass/api_op_GetConnectorDefinition.go b/service/greengrass/api_op_GetConnectorDefinition.go index 712912a58c3..d5ab3d353ff 100644 --- a/service/greengrass/api_op_GetConnectorDefinition.go +++ b/service/greengrass/api_op_GetConnectorDefinition.go @@ -58,7 +58,7 @@ type GetConnectorDefinitionOutput struct { Name *string // Tag(s) attached to the resource arn. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_GetCoreDefinition.go b/service/greengrass/api_op_GetCoreDefinition.go index 2afaf86bc2f..d8f96df0971 100644 --- a/service/greengrass/api_op_GetCoreDefinition.go +++ b/service/greengrass/api_op_GetCoreDefinition.go @@ -58,7 +58,7 @@ type GetCoreDefinitionOutput struct { Name *string // Tag(s) attached to the resource arn. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_GetDeploymentStatus.go b/service/greengrass/api_op_GetDeploymentStatus.go index 75bf98237e9..b60e82f4e70 100644 --- a/service/greengrass/api_op_GetDeploymentStatus.go +++ b/service/greengrass/api_op_GetDeploymentStatus.go @@ -50,7 +50,7 @@ type GetDeploymentStatusOutput struct { DeploymentType types.DeploymentType // Error details - ErrorDetails []*types.ErrorDetail + ErrorDetails []types.ErrorDetail // Error message ErrorMessage *string diff --git a/service/greengrass/api_op_GetDeviceDefinition.go b/service/greengrass/api_op_GetDeviceDefinition.go index dc0c3223509..8a22f3ec091 100644 --- a/service/greengrass/api_op_GetDeviceDefinition.go +++ b/service/greengrass/api_op_GetDeviceDefinition.go @@ -58,7 +58,7 @@ type GetDeviceDefinitionOutput struct { Name *string // Tag(s) attached to the resource arn. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_GetFunctionDefinition.go b/service/greengrass/api_op_GetFunctionDefinition.go index 5ca4257a69e..79eda9d81b0 100644 --- a/service/greengrass/api_op_GetFunctionDefinition.go +++ b/service/greengrass/api_op_GetFunctionDefinition.go @@ -59,7 +59,7 @@ type GetFunctionDefinitionOutput struct { Name *string // Tag(s) attached to the resource arn. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_GetGroup.go b/service/greengrass/api_op_GetGroup.go index 60f278eeea2..d4c1a8a1d93 100644 --- a/service/greengrass/api_op_GetGroup.go +++ b/service/greengrass/api_op_GetGroup.go @@ -58,7 +58,7 @@ type GetGroupOutput struct { Name *string // Tag(s) attached to the resource arn. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_GetLoggerDefinition.go b/service/greengrass/api_op_GetLoggerDefinition.go index 293f17b6775..e82da814334 100644 --- a/service/greengrass/api_op_GetLoggerDefinition.go +++ b/service/greengrass/api_op_GetLoggerDefinition.go @@ -58,7 +58,7 @@ type GetLoggerDefinitionOutput struct { Name *string // Tag(s) attached to the resource arn. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_GetResourceDefinition.go b/service/greengrass/api_op_GetResourceDefinition.go index e3ea968b022..95d2b937fe3 100644 --- a/service/greengrass/api_op_GetResourceDefinition.go +++ b/service/greengrass/api_op_GetResourceDefinition.go @@ -59,7 +59,7 @@ type GetResourceDefinitionOutput struct { Name *string // Tag(s) attached to the resource arn. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_GetSubscriptionDefinition.go b/service/greengrass/api_op_GetSubscriptionDefinition.go index cdb4c19921c..03c30dc5f4b 100644 --- a/service/greengrass/api_op_GetSubscriptionDefinition.go +++ b/service/greengrass/api_op_GetSubscriptionDefinition.go @@ -58,7 +58,7 @@ type GetSubscriptionDefinitionOutput struct { Name *string // Tag(s) attached to the resource arn. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_ListBulkDeploymentDetailedReports.go b/service/greengrass/api_op_ListBulkDeploymentDetailedReports.go index 540e64eca66..6fadd9a365f 100644 --- a/service/greengrass/api_op_ListBulkDeploymentDetailedReports.go +++ b/service/greengrass/api_op_ListBulkDeploymentDetailedReports.go @@ -46,7 +46,7 @@ type ListBulkDeploymentDetailedReportsInput struct { type ListBulkDeploymentDetailedReportsOutput struct { // A list of the individual group deployments in the bulk deployment operation. - Deployments []*types.BulkDeploymentResult + Deployments []types.BulkDeploymentResult // The token for the next set of results, or ''null'' if there are no additional // results. diff --git a/service/greengrass/api_op_ListBulkDeployments.go b/service/greengrass/api_op_ListBulkDeployments.go index ccbc344844f..3c59b93e350 100644 --- a/service/greengrass/api_op_ListBulkDeployments.go +++ b/service/greengrass/api_op_ListBulkDeployments.go @@ -40,7 +40,7 @@ type ListBulkDeploymentsInput struct { type ListBulkDeploymentsOutput struct { // A list of bulk deployments. - BulkDeployments []*types.BulkDeployment + BulkDeployments []types.BulkDeployment // The token for the next set of results, or ''null'' if there are no additional // results. diff --git a/service/greengrass/api_op_ListConnectorDefinitionVersions.go b/service/greengrass/api_op_ListConnectorDefinitionVersions.go index a9827057cf3..b30b3315bdf 100644 --- a/service/greengrass/api_op_ListConnectorDefinitionVersions.go +++ b/service/greengrass/api_op_ListConnectorDefinitionVersions.go @@ -52,7 +52,7 @@ type ListConnectorDefinitionVersionsOutput struct { NextToken *string // Information about a version. - Versions []*types.VersionInformation + Versions []types.VersionInformation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_ListConnectorDefinitions.go b/service/greengrass/api_op_ListConnectorDefinitions.go index 84b1756189e..14f1ccf9f92 100644 --- a/service/greengrass/api_op_ListConnectorDefinitions.go +++ b/service/greengrass/api_op_ListConnectorDefinitions.go @@ -40,7 +40,7 @@ type ListConnectorDefinitionsInput struct { type ListConnectorDefinitionsOutput struct { // Information about a definition. - Definitions []*types.DefinitionInformation + Definitions []types.DefinitionInformation // The token for the next set of results, or ''null'' if there are no additional // results. diff --git a/service/greengrass/api_op_ListCoreDefinitionVersions.go b/service/greengrass/api_op_ListCoreDefinitionVersions.go index e02da21c28e..32073e606a9 100644 --- a/service/greengrass/api_op_ListCoreDefinitionVersions.go +++ b/service/greengrass/api_op_ListCoreDefinitionVersions.go @@ -49,7 +49,7 @@ type ListCoreDefinitionVersionsOutput struct { NextToken *string // Information about a version. - Versions []*types.VersionInformation + Versions []types.VersionInformation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_ListCoreDefinitions.go b/service/greengrass/api_op_ListCoreDefinitions.go index 5d86e672978..9ec109df5a0 100644 --- a/service/greengrass/api_op_ListCoreDefinitions.go +++ b/service/greengrass/api_op_ListCoreDefinitions.go @@ -40,7 +40,7 @@ type ListCoreDefinitionsInput struct { type ListCoreDefinitionsOutput struct { // Information about a definition. - Definitions []*types.DefinitionInformation + Definitions []types.DefinitionInformation // The token for the next set of results, or ''null'' if there are no additional // results. diff --git a/service/greengrass/api_op_ListDeployments.go b/service/greengrass/api_op_ListDeployments.go index 9b929ff19dc..cf7f6cb4c2d 100644 --- a/service/greengrass/api_op_ListDeployments.go +++ b/service/greengrass/api_op_ListDeployments.go @@ -45,7 +45,7 @@ type ListDeploymentsInput struct { type ListDeploymentsOutput struct { // A list of deployments for the requested groups. - Deployments []*types.Deployment + Deployments []types.Deployment // The token for the next set of results, or ''null'' if there are no additional // results. diff --git a/service/greengrass/api_op_ListDeviceDefinitionVersions.go b/service/greengrass/api_op_ListDeviceDefinitionVersions.go index 32eae79e598..78518014fb0 100644 --- a/service/greengrass/api_op_ListDeviceDefinitionVersions.go +++ b/service/greengrass/api_op_ListDeviceDefinitionVersions.go @@ -49,7 +49,7 @@ type ListDeviceDefinitionVersionsOutput struct { NextToken *string // Information about a version. - Versions []*types.VersionInformation + Versions []types.VersionInformation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_ListDeviceDefinitions.go b/service/greengrass/api_op_ListDeviceDefinitions.go index 0e575f4bcdd..07be1f7f1b3 100644 --- a/service/greengrass/api_op_ListDeviceDefinitions.go +++ b/service/greengrass/api_op_ListDeviceDefinitions.go @@ -40,7 +40,7 @@ type ListDeviceDefinitionsInput struct { type ListDeviceDefinitionsOutput struct { // Information about a definition. - Definitions []*types.DefinitionInformation + Definitions []types.DefinitionInformation // The token for the next set of results, or ''null'' if there are no additional // results. diff --git a/service/greengrass/api_op_ListFunctionDefinitionVersions.go b/service/greengrass/api_op_ListFunctionDefinitionVersions.go index d9e31aceabd..e2bb41e2a59 100644 --- a/service/greengrass/api_op_ListFunctionDefinitionVersions.go +++ b/service/greengrass/api_op_ListFunctionDefinitionVersions.go @@ -49,7 +49,7 @@ type ListFunctionDefinitionVersionsOutput struct { NextToken *string // Information about a version. - Versions []*types.VersionInformation + Versions []types.VersionInformation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_ListFunctionDefinitions.go b/service/greengrass/api_op_ListFunctionDefinitions.go index 16c289bb4ac..8cd55cd14ea 100644 --- a/service/greengrass/api_op_ListFunctionDefinitions.go +++ b/service/greengrass/api_op_ListFunctionDefinitions.go @@ -40,7 +40,7 @@ type ListFunctionDefinitionsInput struct { type ListFunctionDefinitionsOutput struct { // Information about a definition. - Definitions []*types.DefinitionInformation + Definitions []types.DefinitionInformation // The token for the next set of results, or ''null'' if there are no additional // results. diff --git a/service/greengrass/api_op_ListGroupCertificateAuthorities.go b/service/greengrass/api_op_ListGroupCertificateAuthorities.go index 2405389da35..45ff125916f 100644 --- a/service/greengrass/api_op_ListGroupCertificateAuthorities.go +++ b/service/greengrass/api_op_ListGroupCertificateAuthorities.go @@ -38,7 +38,7 @@ type ListGroupCertificateAuthoritiesInput struct { type ListGroupCertificateAuthoritiesOutput struct { // A list of certificate authorities associated with the group. - GroupCertificateAuthorities []*types.GroupCertificateAuthorityProperties + GroupCertificateAuthorities []types.GroupCertificateAuthorityProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_ListGroupVersions.go b/service/greengrass/api_op_ListGroupVersions.go index 9e1de1a3508..24b383af804 100644 --- a/service/greengrass/api_op_ListGroupVersions.go +++ b/service/greengrass/api_op_ListGroupVersions.go @@ -49,7 +49,7 @@ type ListGroupVersionsOutput struct { NextToken *string // Information about a version. - Versions []*types.VersionInformation + Versions []types.VersionInformation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_ListGroups.go b/service/greengrass/api_op_ListGroups.go index ed2bafa70c5..ddae18de1a2 100644 --- a/service/greengrass/api_op_ListGroups.go +++ b/service/greengrass/api_op_ListGroups.go @@ -40,7 +40,7 @@ type ListGroupsInput struct { type ListGroupsOutput struct { // Information about a group. - Groups []*types.GroupInformation + Groups []types.GroupInformation // The token for the next set of results, or ''null'' if there are no additional // results. diff --git a/service/greengrass/api_op_ListLoggerDefinitionVersions.go b/service/greengrass/api_op_ListLoggerDefinitionVersions.go index b46e821f5af..e07e916290d 100644 --- a/service/greengrass/api_op_ListLoggerDefinitionVersions.go +++ b/service/greengrass/api_op_ListLoggerDefinitionVersions.go @@ -49,7 +49,7 @@ type ListLoggerDefinitionVersionsOutput struct { NextToken *string // Information about a version. - Versions []*types.VersionInformation + Versions []types.VersionInformation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_ListLoggerDefinitions.go b/service/greengrass/api_op_ListLoggerDefinitions.go index 324b4abe5aa..50b8beaaadb 100644 --- a/service/greengrass/api_op_ListLoggerDefinitions.go +++ b/service/greengrass/api_op_ListLoggerDefinitions.go @@ -40,7 +40,7 @@ type ListLoggerDefinitionsInput struct { type ListLoggerDefinitionsOutput struct { // Information about a definition. - Definitions []*types.DefinitionInformation + Definitions []types.DefinitionInformation // The token for the next set of results, or ''null'' if there are no additional // results. diff --git a/service/greengrass/api_op_ListResourceDefinitionVersions.go b/service/greengrass/api_op_ListResourceDefinitionVersions.go index a381d916f41..5ad9b0cac0c 100644 --- a/service/greengrass/api_op_ListResourceDefinitionVersions.go +++ b/service/greengrass/api_op_ListResourceDefinitionVersions.go @@ -49,7 +49,7 @@ type ListResourceDefinitionVersionsOutput struct { NextToken *string // Information about a version. - Versions []*types.VersionInformation + Versions []types.VersionInformation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_ListResourceDefinitions.go b/service/greengrass/api_op_ListResourceDefinitions.go index 7ff17409170..0c507b0ec02 100644 --- a/service/greengrass/api_op_ListResourceDefinitions.go +++ b/service/greengrass/api_op_ListResourceDefinitions.go @@ -40,7 +40,7 @@ type ListResourceDefinitionsInput struct { type ListResourceDefinitionsOutput struct { // Information about a definition. - Definitions []*types.DefinitionInformation + Definitions []types.DefinitionInformation // The token for the next set of results, or ''null'' if there are no additional // results. diff --git a/service/greengrass/api_op_ListSubscriptionDefinitionVersions.go b/service/greengrass/api_op_ListSubscriptionDefinitionVersions.go index e80eacc19a1..f356d4a3590 100644 --- a/service/greengrass/api_op_ListSubscriptionDefinitionVersions.go +++ b/service/greengrass/api_op_ListSubscriptionDefinitionVersions.go @@ -49,7 +49,7 @@ type ListSubscriptionDefinitionVersionsOutput struct { NextToken *string // Information about a version. - Versions []*types.VersionInformation + Versions []types.VersionInformation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_ListSubscriptionDefinitions.go b/service/greengrass/api_op_ListSubscriptionDefinitions.go index 9c7e3a998f0..590051df5df 100644 --- a/service/greengrass/api_op_ListSubscriptionDefinitions.go +++ b/service/greengrass/api_op_ListSubscriptionDefinitions.go @@ -40,7 +40,7 @@ type ListSubscriptionDefinitionsInput struct { type ListSubscriptionDefinitionsOutput struct { // Information about a definition. - Definitions []*types.DefinitionInformation + Definitions []types.DefinitionInformation // The token for the next set of results, or ''null'' if there are no additional // results. diff --git a/service/greengrass/api_op_ListTagsForResource.go b/service/greengrass/api_op_ListTagsForResource.go index 91db2d232ca..b48f8c56bb1 100644 --- a/service/greengrass/api_op_ListTagsForResource.go +++ b/service/greengrass/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The key-value pair for the resource tag. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/greengrass/api_op_ResetDeployments.go b/service/greengrass/api_op_ResetDeployments.go index 104bc96e047..47dc5adaf44 100644 --- a/service/greengrass/api_op_ResetDeployments.go +++ b/service/greengrass/api_op_ResetDeployments.go @@ -38,7 +38,7 @@ type ResetDeploymentsInput struct { AmznClientToken *string // If true, performs a best-effort only core reset. - Force *bool + Force bool } type ResetDeploymentsOutput struct { diff --git a/service/greengrass/api_op_StartBulkDeployment.go b/service/greengrass/api_op_StartBulkDeployment.go index 47f79022ac3..37a3275c1e8 100644 --- a/service/greengrass/api_op_StartBulkDeployment.go +++ b/service/greengrass/api_op_StartBulkDeployment.go @@ -55,7 +55,7 @@ type StartBulkDeploymentInput struct { AmznClientToken *string // Tag(s) to add to the new resource. - Tags map[string]*string + Tags map[string]string } type StartBulkDeploymentOutput struct { diff --git a/service/greengrass/api_op_TagResource.go b/service/greengrass/api_op_TagResource.go index d6cf0e9eab1..c6df96acd2f 100644 --- a/service/greengrass/api_op_TagResource.go +++ b/service/greengrass/api_op_TagResource.go @@ -38,7 +38,7 @@ type TagResourceInput struct { ResourceArn *string // The key-value pair for the resource tag. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/greengrass/api_op_UntagResource.go b/service/greengrass/api_op_UntagResource.go index fee9f33704a..8ac81b382c7 100644 --- a/service/greengrass/api_op_UntagResource.go +++ b/service/greengrass/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // An array of tag keys to delete // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/greengrass/api_op_UpdateConnectivityInfo.go b/service/greengrass/api_op_UpdateConnectivityInfo.go index 634e2810bc5..15e61947d43 100644 --- a/service/greengrass/api_op_UpdateConnectivityInfo.go +++ b/service/greengrass/api_op_UpdateConnectivityInfo.go @@ -38,7 +38,7 @@ type UpdateConnectivityInfoInput struct { ThingName *string // A list of connectivity info. - ConnectivityInfo []*types.ConnectivityInfo + ConnectivityInfo []types.ConnectivityInfo } type UpdateConnectivityInfoOutput struct { diff --git a/service/greengrass/deserializers.go b/service/greengrass/deserializers.go index 768daacaf82..82c2d306aa2 100644 --- a/service/greengrass/deserializers.go +++ b/service/greengrass/deserializers.go @@ -160,7 +160,7 @@ func awsRestjson1_deserializeOpDocumentAssociateRoleToGroupOutput(v **AssociateR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AssociatedAt = &jtv + sv.AssociatedAt = ptr.String(jtv) } default: @@ -314,7 +314,7 @@ func awsRestjson1_deserializeOpDocumentAssociateServiceRoleToAccountOutput(v **A if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AssociatedAt = &jtv + sv.AssociatedAt = ptr.String(jtv) } default: @@ -465,7 +465,7 @@ func awsRestjson1_deserializeOpDocumentCreateConnectorDefinitionOutput(v **Creat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -474,7 +474,7 @@ func awsRestjson1_deserializeOpDocumentCreateConnectorDefinitionOutput(v **Creat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -483,7 +483,7 @@ func awsRestjson1_deserializeOpDocumentCreateConnectorDefinitionOutput(v **Creat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -492,7 +492,7 @@ func awsRestjson1_deserializeOpDocumentCreateConnectorDefinitionOutput(v **Creat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -501,7 +501,7 @@ func awsRestjson1_deserializeOpDocumentCreateConnectorDefinitionOutput(v **Creat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -510,7 +510,7 @@ func awsRestjson1_deserializeOpDocumentCreateConnectorDefinitionOutput(v **Creat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -519,7 +519,7 @@ func awsRestjson1_deserializeOpDocumentCreateConnectorDefinitionOutput(v **Creat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -670,7 +670,7 @@ func awsRestjson1_deserializeOpDocumentCreateConnectorDefinitionVersionOutput(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -679,7 +679,7 @@ func awsRestjson1_deserializeOpDocumentCreateConnectorDefinitionVersionOutput(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -688,7 +688,7 @@ func awsRestjson1_deserializeOpDocumentCreateConnectorDefinitionVersionOutput(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Version": @@ -697,7 +697,7 @@ func awsRestjson1_deserializeOpDocumentCreateConnectorDefinitionVersionOutput(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -848,7 +848,7 @@ func awsRestjson1_deserializeOpDocumentCreateCoreDefinitionOutput(v **CreateCore if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -857,7 +857,7 @@ func awsRestjson1_deserializeOpDocumentCreateCoreDefinitionOutput(v **CreateCore if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -866,7 +866,7 @@ func awsRestjson1_deserializeOpDocumentCreateCoreDefinitionOutput(v **CreateCore if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -875,7 +875,7 @@ func awsRestjson1_deserializeOpDocumentCreateCoreDefinitionOutput(v **CreateCore if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -884,7 +884,7 @@ func awsRestjson1_deserializeOpDocumentCreateCoreDefinitionOutput(v **CreateCore if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -893,7 +893,7 @@ func awsRestjson1_deserializeOpDocumentCreateCoreDefinitionOutput(v **CreateCore if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -902,7 +902,7 @@ func awsRestjson1_deserializeOpDocumentCreateCoreDefinitionOutput(v **CreateCore if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -1053,7 +1053,7 @@ func awsRestjson1_deserializeOpDocumentCreateCoreDefinitionVersionOutput(v **Cre if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -1062,7 +1062,7 @@ func awsRestjson1_deserializeOpDocumentCreateCoreDefinitionVersionOutput(v **Cre if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -1071,7 +1071,7 @@ func awsRestjson1_deserializeOpDocumentCreateCoreDefinitionVersionOutput(v **Cre if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Version": @@ -1080,7 +1080,7 @@ func awsRestjson1_deserializeOpDocumentCreateCoreDefinitionVersionOutput(v **Cre if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -1231,7 +1231,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentArn = &jtv + sv.DeploymentArn = ptr.String(jtv) } case "DeploymentId": @@ -1240,7 +1240,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } default: @@ -1391,7 +1391,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeviceDefinitionOutput(v **CreateDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -1400,7 +1400,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeviceDefinitionOutput(v **CreateDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -1409,7 +1409,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeviceDefinitionOutput(v **CreateDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -1418,7 +1418,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeviceDefinitionOutput(v **CreateDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -1427,7 +1427,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeviceDefinitionOutput(v **CreateDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -1436,7 +1436,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeviceDefinitionOutput(v **CreateDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -1445,7 +1445,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeviceDefinitionOutput(v **CreateDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -1596,7 +1596,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeviceDefinitionVersionOutput(v **C if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -1605,7 +1605,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeviceDefinitionVersionOutput(v **C if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -1614,7 +1614,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeviceDefinitionVersionOutput(v **C if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Version": @@ -1623,7 +1623,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeviceDefinitionVersionOutput(v **C if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -1774,7 +1774,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -1783,7 +1783,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -1792,7 +1792,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -1801,7 +1801,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -1810,7 +1810,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -1819,7 +1819,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -1828,7 +1828,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -1979,7 +1979,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionDefinitionVersionOutput(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -1988,7 +1988,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionDefinitionVersionOutput(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -1997,7 +1997,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionDefinitionVersionOutput(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Version": @@ -2006,7 +2006,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionDefinitionVersionOutput(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -2157,7 +2157,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupOutput(v **CreateGroupOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -2166,7 +2166,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupOutput(v **CreateGroupOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -2175,7 +2175,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupOutput(v **CreateGroupOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -2184,7 +2184,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupOutput(v **CreateGroupOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -2193,7 +2193,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupOutput(v **CreateGroupOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -2202,7 +2202,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupOutput(v **CreateGroupOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -2211,7 +2211,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupOutput(v **CreateGroupOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -2365,7 +2365,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupCertificateAuthorityOutput(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.GroupCertificateAuthorityArn = &jtv + sv.GroupCertificateAuthorityArn = ptr.String(jtv) } default: @@ -2516,7 +2516,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupVersionOutput(v **CreateGroupV if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -2525,7 +2525,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupVersionOutput(v **CreateGroupV if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -2534,7 +2534,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupVersionOutput(v **CreateGroupV if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Version": @@ -2543,7 +2543,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupVersionOutput(v **CreateGroupV if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -2694,7 +2694,7 @@ func awsRestjson1_deserializeOpDocumentCreateLoggerDefinitionOutput(v **CreateLo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -2703,7 +2703,7 @@ func awsRestjson1_deserializeOpDocumentCreateLoggerDefinitionOutput(v **CreateLo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -2712,7 +2712,7 @@ func awsRestjson1_deserializeOpDocumentCreateLoggerDefinitionOutput(v **CreateLo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -2721,7 +2721,7 @@ func awsRestjson1_deserializeOpDocumentCreateLoggerDefinitionOutput(v **CreateLo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -2730,7 +2730,7 @@ func awsRestjson1_deserializeOpDocumentCreateLoggerDefinitionOutput(v **CreateLo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -2739,7 +2739,7 @@ func awsRestjson1_deserializeOpDocumentCreateLoggerDefinitionOutput(v **CreateLo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -2748,7 +2748,7 @@ func awsRestjson1_deserializeOpDocumentCreateLoggerDefinitionOutput(v **CreateLo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -2899,7 +2899,7 @@ func awsRestjson1_deserializeOpDocumentCreateLoggerDefinitionVersionOutput(v **C if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -2908,7 +2908,7 @@ func awsRestjson1_deserializeOpDocumentCreateLoggerDefinitionVersionOutput(v **C if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -2917,7 +2917,7 @@ func awsRestjson1_deserializeOpDocumentCreateLoggerDefinitionVersionOutput(v **C if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Version": @@ -2926,7 +2926,7 @@ func awsRestjson1_deserializeOpDocumentCreateLoggerDefinitionVersionOutput(v **C if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -3077,7 +3077,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -3086,7 +3086,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -3095,7 +3095,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -3104,7 +3104,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -3113,7 +3113,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -3122,7 +3122,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -3131,7 +3131,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceDefinitionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -3282,7 +3282,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceDefinitionVersionOutput(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -3291,7 +3291,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceDefinitionVersionOutput(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -3300,7 +3300,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceDefinitionVersionOutput(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Version": @@ -3309,7 +3309,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceDefinitionVersionOutput(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -3463,7 +3463,7 @@ func awsRestjson1_deserializeOpDocumentCreateSoftwareUpdateJobOutput(v **CreateS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.IotJobArn = &jtv + sv.IotJobArn = ptr.String(jtv) } case "IotJobId": @@ -3472,7 +3472,7 @@ func awsRestjson1_deserializeOpDocumentCreateSoftwareUpdateJobOutput(v **CreateS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.IotJobId = &jtv + sv.IotJobId = ptr.String(jtv) } case "PlatformSoftwareVersion": @@ -3481,7 +3481,7 @@ func awsRestjson1_deserializeOpDocumentCreateSoftwareUpdateJobOutput(v **CreateS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PlatformSoftwareVersion = &jtv + sv.PlatformSoftwareVersion = ptr.String(jtv) } default: @@ -3632,7 +3632,7 @@ func awsRestjson1_deserializeOpDocumentCreateSubscriptionDefinitionOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -3641,7 +3641,7 @@ func awsRestjson1_deserializeOpDocumentCreateSubscriptionDefinitionOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -3650,7 +3650,7 @@ func awsRestjson1_deserializeOpDocumentCreateSubscriptionDefinitionOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -3659,7 +3659,7 @@ func awsRestjson1_deserializeOpDocumentCreateSubscriptionDefinitionOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -3668,7 +3668,7 @@ func awsRestjson1_deserializeOpDocumentCreateSubscriptionDefinitionOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -3677,7 +3677,7 @@ func awsRestjson1_deserializeOpDocumentCreateSubscriptionDefinitionOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -3686,7 +3686,7 @@ func awsRestjson1_deserializeOpDocumentCreateSubscriptionDefinitionOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -3837,7 +3837,7 @@ func awsRestjson1_deserializeOpDocumentCreateSubscriptionDefinitionVersionOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -3846,7 +3846,7 @@ func awsRestjson1_deserializeOpDocumentCreateSubscriptionDefinitionVersionOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -3855,7 +3855,7 @@ func awsRestjson1_deserializeOpDocumentCreateSubscriptionDefinitionVersionOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Version": @@ -3864,7 +3864,7 @@ func awsRestjson1_deserializeOpDocumentCreateSubscriptionDefinitionVersionOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -4682,7 +4682,7 @@ func awsRestjson1_deserializeOpDocumentDisassociateRoleFromGroupOutput(v **Disas if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DisassociatedAt = &jtv + sv.DisassociatedAt = ptr.String(jtv) } default: @@ -4833,7 +4833,7 @@ func awsRestjson1_deserializeOpDocumentDisassociateServiceRoleFromAccountOutput( if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DisassociatedAt = &jtv + sv.DisassociatedAt = ptr.String(jtv) } default: @@ -4987,7 +4987,7 @@ func awsRestjson1_deserializeOpDocumentGetAssociatedRoleOutput(v **GetAssociated if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AssociatedAt = &jtv + sv.AssociatedAt = ptr.String(jtv) } case "RoleArn": @@ -4996,7 +4996,7 @@ func awsRestjson1_deserializeOpDocumentGetAssociatedRoleOutput(v **GetAssociated if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -5161,7 +5161,7 @@ func awsRestjson1_deserializeOpDocumentGetBulkDeploymentStatusOutput(v **GetBulk if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "ErrorDetails": @@ -5175,7 +5175,7 @@ func awsRestjson1_deserializeOpDocumentGetBulkDeploymentStatusOutput(v **GetBulk if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "tags": @@ -5339,7 +5339,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectivityInfoOutput(v **GetConnecti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5490,7 +5490,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectorDefinitionOutput(v **GetConne if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -5499,7 +5499,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectorDefinitionOutput(v **GetConne if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -5508,7 +5508,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectorDefinitionOutput(v **GetConne if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -5517,7 +5517,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectorDefinitionOutput(v **GetConne if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -5526,7 +5526,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectorDefinitionOutput(v **GetConne if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -5535,7 +5535,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectorDefinitionOutput(v **GetConne if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -5544,7 +5544,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectorDefinitionOutput(v **GetConne if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -5700,7 +5700,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectorDefinitionVersionOutput(v **G if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -5709,7 +5709,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectorDefinitionVersionOutput(v **G if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Definition": @@ -5723,7 +5723,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectorDefinitionVersionOutput(v **G if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "NextToken": @@ -5732,7 +5732,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectorDefinitionVersionOutput(v **G if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Version": @@ -5741,7 +5741,7 @@ func awsRestjson1_deserializeOpDocumentGetConnectorDefinitionVersionOutput(v **G if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -5892,7 +5892,7 @@ func awsRestjson1_deserializeOpDocumentGetCoreDefinitionOutput(v **GetCoreDefini if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -5901,7 +5901,7 @@ func awsRestjson1_deserializeOpDocumentGetCoreDefinitionOutput(v **GetCoreDefini if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -5910,7 +5910,7 @@ func awsRestjson1_deserializeOpDocumentGetCoreDefinitionOutput(v **GetCoreDefini if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -5919,7 +5919,7 @@ func awsRestjson1_deserializeOpDocumentGetCoreDefinitionOutput(v **GetCoreDefini if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -5928,7 +5928,7 @@ func awsRestjson1_deserializeOpDocumentGetCoreDefinitionOutput(v **GetCoreDefini if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -5937,7 +5937,7 @@ func awsRestjson1_deserializeOpDocumentGetCoreDefinitionOutput(v **GetCoreDefini if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -5946,7 +5946,7 @@ func awsRestjson1_deserializeOpDocumentGetCoreDefinitionOutput(v **GetCoreDefini if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -6102,7 +6102,7 @@ func awsRestjson1_deserializeOpDocumentGetCoreDefinitionVersionOutput(v **GetCor if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -6111,7 +6111,7 @@ func awsRestjson1_deserializeOpDocumentGetCoreDefinitionVersionOutput(v **GetCor if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Definition": @@ -6125,7 +6125,7 @@ func awsRestjson1_deserializeOpDocumentGetCoreDefinitionVersionOutput(v **GetCor if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "NextToken": @@ -6134,7 +6134,7 @@ func awsRestjson1_deserializeOpDocumentGetCoreDefinitionVersionOutput(v **GetCor if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Version": @@ -6143,7 +6143,7 @@ func awsRestjson1_deserializeOpDocumentGetCoreDefinitionVersionOutput(v **GetCor if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -6294,7 +6294,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentStatusOutput(v **GetDeployme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentStatus = &jtv + sv.DeploymentStatus = ptr.String(jtv) } case "DeploymentType": @@ -6317,7 +6317,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentStatusOutput(v **GetDeployme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "UpdatedAt": @@ -6326,7 +6326,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentStatusOutput(v **GetDeployme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.UpdatedAt = &jtv + sv.UpdatedAt = ptr.String(jtv) } default: @@ -6477,7 +6477,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceDefinitionOutput(v **GetDeviceDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -6486,7 +6486,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceDefinitionOutput(v **GetDeviceDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -6495,7 +6495,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceDefinitionOutput(v **GetDeviceDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -6504,7 +6504,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceDefinitionOutput(v **GetDeviceDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -6513,7 +6513,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceDefinitionOutput(v **GetDeviceDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -6522,7 +6522,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceDefinitionOutput(v **GetDeviceDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -6531,7 +6531,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceDefinitionOutput(v **GetDeviceDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -6687,7 +6687,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceDefinitionVersionOutput(v **GetD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -6696,7 +6696,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceDefinitionVersionOutput(v **GetD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Definition": @@ -6710,7 +6710,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceDefinitionVersionOutput(v **GetD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "NextToken": @@ -6719,7 +6719,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceDefinitionVersionOutput(v **GetD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Version": @@ -6728,7 +6728,7 @@ func awsRestjson1_deserializeOpDocumentGetDeviceDefinitionVersionOutput(v **GetD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -6879,7 +6879,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionDefinitionOutput(v **GetFuncti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -6888,7 +6888,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionDefinitionOutput(v **GetFuncti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -6897,7 +6897,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionDefinitionOutput(v **GetFuncti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -6906,7 +6906,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionDefinitionOutput(v **GetFuncti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -6915,7 +6915,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionDefinitionOutput(v **GetFuncti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -6924,7 +6924,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionDefinitionOutput(v **GetFuncti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -6933,7 +6933,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionDefinitionOutput(v **GetFuncti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -7089,7 +7089,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionDefinitionVersionOutput(v **Ge if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -7098,7 +7098,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionDefinitionVersionOutput(v **Ge if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Definition": @@ -7112,7 +7112,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionDefinitionVersionOutput(v **Ge if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "NextToken": @@ -7121,7 +7121,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionDefinitionVersionOutput(v **Ge if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Version": @@ -7130,7 +7130,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionDefinitionVersionOutput(v **Ge if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -7281,7 +7281,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupOutput(v **GetGroupOutput, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -7290,7 +7290,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupOutput(v **GetGroupOutput, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -7299,7 +7299,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupOutput(v **GetGroupOutput, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -7308,7 +7308,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupOutput(v **GetGroupOutput, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -7317,7 +7317,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupOutput(v **GetGroupOutput, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -7326,7 +7326,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupOutput(v **GetGroupOutput, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -7335,7 +7335,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupOutput(v **GetGroupOutput, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -7494,7 +7494,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupCertificateAuthorityOutput(v **Ge if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.GroupCertificateAuthorityArn = &jtv + sv.GroupCertificateAuthorityArn = ptr.String(jtv) } case "GroupCertificateAuthorityId": @@ -7503,7 +7503,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupCertificateAuthorityOutput(v **Ge if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.GroupCertificateAuthorityId = &jtv + sv.GroupCertificateAuthorityId = ptr.String(jtv) } case "PemEncodedCertificate": @@ -7512,7 +7512,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupCertificateAuthorityOutput(v **Ge if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PemEncodedCertificate = &jtv + sv.PemEncodedCertificate = ptr.String(jtv) } default: @@ -7666,7 +7666,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupCertificateConfigurationOutput(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CertificateAuthorityExpiryInMilliseconds = &jtv + sv.CertificateAuthorityExpiryInMilliseconds = ptr.String(jtv) } case "CertificateExpiryInMilliseconds": @@ -7675,7 +7675,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupCertificateConfigurationOutput(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CertificateExpiryInMilliseconds = &jtv + sv.CertificateExpiryInMilliseconds = ptr.String(jtv) } case "GroupId": @@ -7684,7 +7684,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupCertificateConfigurationOutput(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } default: @@ -7835,7 +7835,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupVersionOutput(v **GetGroupVersion if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -7844,7 +7844,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupVersionOutput(v **GetGroupVersion if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Definition": @@ -7858,7 +7858,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupVersionOutput(v **GetGroupVersion if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Version": @@ -7867,7 +7867,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupVersionOutput(v **GetGroupVersion if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -8018,7 +8018,7 @@ func awsRestjson1_deserializeOpDocumentGetLoggerDefinitionOutput(v **GetLoggerDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -8027,7 +8027,7 @@ func awsRestjson1_deserializeOpDocumentGetLoggerDefinitionOutput(v **GetLoggerDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -8036,7 +8036,7 @@ func awsRestjson1_deserializeOpDocumentGetLoggerDefinitionOutput(v **GetLoggerDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -8045,7 +8045,7 @@ func awsRestjson1_deserializeOpDocumentGetLoggerDefinitionOutput(v **GetLoggerDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -8054,7 +8054,7 @@ func awsRestjson1_deserializeOpDocumentGetLoggerDefinitionOutput(v **GetLoggerDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -8063,7 +8063,7 @@ func awsRestjson1_deserializeOpDocumentGetLoggerDefinitionOutput(v **GetLoggerDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -8072,7 +8072,7 @@ func awsRestjson1_deserializeOpDocumentGetLoggerDefinitionOutput(v **GetLoggerDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -8228,7 +8228,7 @@ func awsRestjson1_deserializeOpDocumentGetLoggerDefinitionVersionOutput(v **GetL if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -8237,7 +8237,7 @@ func awsRestjson1_deserializeOpDocumentGetLoggerDefinitionVersionOutput(v **GetL if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Definition": @@ -8251,7 +8251,7 @@ func awsRestjson1_deserializeOpDocumentGetLoggerDefinitionVersionOutput(v **GetL if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Version": @@ -8260,7 +8260,7 @@ func awsRestjson1_deserializeOpDocumentGetLoggerDefinitionVersionOutput(v **GetL if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -8411,7 +8411,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceDefinitionOutput(v **GetResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -8420,7 +8420,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceDefinitionOutput(v **GetResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -8429,7 +8429,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceDefinitionOutput(v **GetResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -8438,7 +8438,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceDefinitionOutput(v **GetResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -8447,7 +8447,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceDefinitionOutput(v **GetResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -8456,7 +8456,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceDefinitionOutput(v **GetResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -8465,7 +8465,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceDefinitionOutput(v **GetResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -8621,7 +8621,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceDefinitionVersionOutput(v **Ge if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -8630,7 +8630,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceDefinitionVersionOutput(v **Ge if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Definition": @@ -8644,7 +8644,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceDefinitionVersionOutput(v **Ge if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Version": @@ -8653,7 +8653,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceDefinitionVersionOutput(v **Ge if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -8804,7 +8804,7 @@ func awsRestjson1_deserializeOpDocumentGetServiceRoleForAccountOutput(v **GetSer if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AssociatedAt = &jtv + sv.AssociatedAt = ptr.String(jtv) } case "RoleArn": @@ -8813,7 +8813,7 @@ func awsRestjson1_deserializeOpDocumentGetServiceRoleForAccountOutput(v **GetSer if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -8964,7 +8964,7 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionDefinitionOutput(v **GetSu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -8973,7 +8973,7 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionDefinitionOutput(v **GetSu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -8982,7 +8982,7 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionDefinitionOutput(v **GetSu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -8991,7 +8991,7 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionDefinitionOutput(v **GetSu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -9000,7 +9000,7 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionDefinitionOutput(v **GetSu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -9009,7 +9009,7 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionDefinitionOutput(v **GetSu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -9018,7 +9018,7 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionDefinitionOutput(v **GetSu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -9174,7 +9174,7 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionDefinitionVersionOutput(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -9183,7 +9183,7 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionDefinitionVersionOutput(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Definition": @@ -9197,7 +9197,7 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionDefinitionVersionOutput(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "NextToken": @@ -9206,7 +9206,7 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionDefinitionVersionOutput(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Version": @@ -9215,7 +9215,7 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionDefinitionVersionOutput(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -9521,7 +9521,7 @@ func awsRestjson1_deserializeOpDocumentListBulkDeploymentDetailedReportsOutput(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9677,7 +9677,7 @@ func awsRestjson1_deserializeOpDocumentListBulkDeploymentsOutput(v **ListBulkDep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9830,7 +9830,7 @@ func awsRestjson1_deserializeOpDocumentListConnectorDefinitionsOutput(v **ListCo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9981,7 +9981,7 @@ func awsRestjson1_deserializeOpDocumentListConnectorDefinitionVersionsOutput(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Versions": @@ -10139,7 +10139,7 @@ func awsRestjson1_deserializeOpDocumentListCoreDefinitionsOutput(v **ListCoreDef if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10290,7 +10290,7 @@ func awsRestjson1_deserializeOpDocumentListCoreDefinitionVersionsOutput(v **List if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Versions": @@ -10451,7 +10451,7 @@ func awsRestjson1_deserializeOpDocumentListDeploymentsOutput(v **ListDeployments if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10604,7 +10604,7 @@ func awsRestjson1_deserializeOpDocumentListDeviceDefinitionsOutput(v **ListDevic if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10755,7 +10755,7 @@ func awsRestjson1_deserializeOpDocumentListDeviceDefinitionVersionsOutput(v **Li if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Versions": @@ -10913,7 +10913,7 @@ func awsRestjson1_deserializeOpDocumentListFunctionDefinitionsOutput(v **ListFun if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11064,7 +11064,7 @@ func awsRestjson1_deserializeOpDocumentListFunctionDefinitionVersionsOutput(v ** if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Versions": @@ -11372,7 +11372,7 @@ func awsRestjson1_deserializeOpDocumentListGroupsOutput(v **ListGroupsOutput, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11523,7 +11523,7 @@ func awsRestjson1_deserializeOpDocumentListGroupVersionsOutput(v **ListGroupVers if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Versions": @@ -11681,7 +11681,7 @@ func awsRestjson1_deserializeOpDocumentListLoggerDefinitionsOutput(v **ListLogge if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11832,7 +11832,7 @@ func awsRestjson1_deserializeOpDocumentListLoggerDefinitionVersionsOutput(v **Li if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Versions": @@ -11990,7 +11990,7 @@ func awsRestjson1_deserializeOpDocumentListResourceDefinitionsOutput(v **ListRes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -12141,7 +12141,7 @@ func awsRestjson1_deserializeOpDocumentListResourceDefinitionVersionsOutput(v ** if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Versions": @@ -12299,7 +12299,7 @@ func awsRestjson1_deserializeOpDocumentListSubscriptionDefinitionsOutput(v **Lis if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -12450,7 +12450,7 @@ func awsRestjson1_deserializeOpDocumentListSubscriptionDefinitionVersionsOutput( if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Versions": @@ -12753,7 +12753,7 @@ func awsRestjson1_deserializeOpDocumentResetDeploymentsOutput(v **ResetDeploymen if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentArn = &jtv + sv.DeploymentArn = ptr.String(jtv) } case "DeploymentId": @@ -12762,7 +12762,7 @@ func awsRestjson1_deserializeOpDocumentResetDeploymentsOutput(v **ResetDeploymen if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } default: @@ -12913,7 +12913,7 @@ func awsRestjson1_deserializeOpDocumentStartBulkDeploymentOutput(v **StartBulkDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BulkDeploymentArn = &jtv + sv.BulkDeploymentArn = ptr.String(jtv) } case "BulkDeploymentId": @@ -12922,7 +12922,7 @@ func awsRestjson1_deserializeOpDocumentStartBulkDeploymentOutput(v **StartBulkDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BulkDeploymentId = &jtv + sv.BulkDeploymentId = ptr.String(jtv) } default: @@ -13325,7 +13325,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConnectivityInfoOutput(v **UpdateCo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Version": @@ -13334,7 +13334,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConnectivityInfoOutput(v **UpdateCo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -13903,7 +13903,7 @@ func awsRestjson1_deserializeOpDocumentUpdateGroupCertificateConfigurationOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CertificateAuthorityExpiryInMilliseconds = &jtv + sv.CertificateAuthorityExpiryInMilliseconds = ptr.String(jtv) } case "CertificateExpiryInMilliseconds": @@ -13912,7 +13912,7 @@ func awsRestjson1_deserializeOpDocumentUpdateGroupCertificateConfigurationOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CertificateExpiryInMilliseconds = &jtv + sv.CertificateExpiryInMilliseconds = ptr.String(jtv) } case "GroupId": @@ -13921,7 +13921,7 @@ func awsRestjson1_deserializeOpDocumentUpdateGroupCertificateConfigurationOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } default: @@ -14340,7 +14340,7 @@ func awsRestjson1_deserializeErrorInternalServerErrorException(response *smithyh return output } -func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14353,21 +14353,21 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -14376,7 +14376,7 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return nil } -func awsRestjson1_deserializeDocument__listOfConnectivityInfo(v *[]*types.ConnectivityInfo, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfConnectivityInfo(v *[]types.ConnectivityInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14389,18 +14389,20 @@ func awsRestjson1_deserializeDocument__listOfConnectivityInfo(v *[]*types.Connec return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConnectivityInfo + var cv []types.ConnectivityInfo if *v == nil { - cv = []*types.ConnectivityInfo{} + cv = []types.ConnectivityInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ConnectivityInfo - if err := awsRestjson1_deserializeDocumentConnectivityInfo(&col, value); err != nil { + var col types.ConnectivityInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentConnectivityInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14408,7 +14410,7 @@ func awsRestjson1_deserializeDocument__listOfConnectivityInfo(v *[]*types.Connec return nil } -func awsRestjson1_deserializeDocument__listOfConnector(v *[]*types.Connector, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfConnector(v *[]types.Connector, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14421,18 +14423,20 @@ func awsRestjson1_deserializeDocument__listOfConnector(v *[]*types.Connector, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Connector + var cv []types.Connector if *v == nil { - cv = []*types.Connector{} + cv = []types.Connector{} } else { cv = *v } for _, value := range shape { - var col *types.Connector - if err := awsRestjson1_deserializeDocumentConnector(&col, value); err != nil { + var col types.Connector + destAddr := &col + if err := awsRestjson1_deserializeDocumentConnector(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14440,7 +14444,7 @@ func awsRestjson1_deserializeDocument__listOfConnector(v *[]*types.Connector, va return nil } -func awsRestjson1_deserializeDocument__listOfCore(v *[]*types.Core, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfCore(v *[]types.Core, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14453,18 +14457,20 @@ func awsRestjson1_deserializeDocument__listOfCore(v *[]*types.Core, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Core + var cv []types.Core if *v == nil { - cv = []*types.Core{} + cv = []types.Core{} } else { cv = *v } for _, value := range shape { - var col *types.Core - if err := awsRestjson1_deserializeDocumentCore(&col, value); err != nil { + var col types.Core + destAddr := &col + if err := awsRestjson1_deserializeDocumentCore(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14472,7 +14478,7 @@ func awsRestjson1_deserializeDocument__listOfCore(v *[]*types.Core, value interf return nil } -func awsRestjson1_deserializeDocument__listOfDefinitionInformation(v *[]*types.DefinitionInformation, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfDefinitionInformation(v *[]types.DefinitionInformation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14485,18 +14491,20 @@ func awsRestjson1_deserializeDocument__listOfDefinitionInformation(v *[]*types.D return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DefinitionInformation + var cv []types.DefinitionInformation if *v == nil { - cv = []*types.DefinitionInformation{} + cv = []types.DefinitionInformation{} } else { cv = *v } for _, value := range shape { - var col *types.DefinitionInformation - if err := awsRestjson1_deserializeDocumentDefinitionInformation(&col, value); err != nil { + var col types.DefinitionInformation + destAddr := &col + if err := awsRestjson1_deserializeDocumentDefinitionInformation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14504,7 +14512,7 @@ func awsRestjson1_deserializeDocument__listOfDefinitionInformation(v *[]*types.D return nil } -func awsRestjson1_deserializeDocument__listOfDevice(v *[]*types.Device, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfDevice(v *[]types.Device, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14517,18 +14525,20 @@ func awsRestjson1_deserializeDocument__listOfDevice(v *[]*types.Device, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Device + var cv []types.Device if *v == nil { - cv = []*types.Device{} + cv = []types.Device{} } else { cv = *v } for _, value := range shape { - var col *types.Device - if err := awsRestjson1_deserializeDocumentDevice(&col, value); err != nil { + var col types.Device + destAddr := &col + if err := awsRestjson1_deserializeDocumentDevice(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14536,7 +14546,7 @@ func awsRestjson1_deserializeDocument__listOfDevice(v *[]*types.Device, value in return nil } -func awsRestjson1_deserializeDocument__listOfFunction(v *[]*types.Function, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfFunction(v *[]types.Function, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14549,18 +14559,20 @@ func awsRestjson1_deserializeDocument__listOfFunction(v *[]*types.Function, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Function + var cv []types.Function if *v == nil { - cv = []*types.Function{} + cv = []types.Function{} } else { cv = *v } for _, value := range shape { - var col *types.Function - if err := awsRestjson1_deserializeDocumentFunction(&col, value); err != nil { + var col types.Function + destAddr := &col + if err := awsRestjson1_deserializeDocumentFunction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14568,7 +14580,7 @@ func awsRestjson1_deserializeDocument__listOfFunction(v *[]*types.Function, valu return nil } -func awsRestjson1_deserializeDocument__listOfGroupCertificateAuthorityProperties(v *[]*types.GroupCertificateAuthorityProperties, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfGroupCertificateAuthorityProperties(v *[]types.GroupCertificateAuthorityProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14581,18 +14593,20 @@ func awsRestjson1_deserializeDocument__listOfGroupCertificateAuthorityProperties return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupCertificateAuthorityProperties + var cv []types.GroupCertificateAuthorityProperties if *v == nil { - cv = []*types.GroupCertificateAuthorityProperties{} + cv = []types.GroupCertificateAuthorityProperties{} } else { cv = *v } for _, value := range shape { - var col *types.GroupCertificateAuthorityProperties - if err := awsRestjson1_deserializeDocumentGroupCertificateAuthorityProperties(&col, value); err != nil { + var col types.GroupCertificateAuthorityProperties + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroupCertificateAuthorityProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14600,7 +14614,7 @@ func awsRestjson1_deserializeDocument__listOfGroupCertificateAuthorityProperties return nil } -func awsRestjson1_deserializeDocument__listOfGroupInformation(v *[]*types.GroupInformation, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfGroupInformation(v *[]types.GroupInformation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14613,18 +14627,20 @@ func awsRestjson1_deserializeDocument__listOfGroupInformation(v *[]*types.GroupI return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupInformation + var cv []types.GroupInformation if *v == nil { - cv = []*types.GroupInformation{} + cv = []types.GroupInformation{} } else { cv = *v } for _, value := range shape { - var col *types.GroupInformation - if err := awsRestjson1_deserializeDocumentGroupInformation(&col, value); err != nil { + var col types.GroupInformation + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroupInformation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14632,7 +14648,7 @@ func awsRestjson1_deserializeDocument__listOfGroupInformation(v *[]*types.GroupI return nil } -func awsRestjson1_deserializeDocument__listOfLogger(v *[]*types.Logger, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfLogger(v *[]types.Logger, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14645,18 +14661,20 @@ func awsRestjson1_deserializeDocument__listOfLogger(v *[]*types.Logger, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Logger + var cv []types.Logger if *v == nil { - cv = []*types.Logger{} + cv = []types.Logger{} } else { cv = *v } for _, value := range shape { - var col *types.Logger - if err := awsRestjson1_deserializeDocumentLogger(&col, value); err != nil { + var col types.Logger + destAddr := &col + if err := awsRestjson1_deserializeDocumentLogger(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14664,7 +14682,7 @@ func awsRestjson1_deserializeDocument__listOfLogger(v *[]*types.Logger, value in return nil } -func awsRestjson1_deserializeDocument__listOfResource(v *[]*types.Resource, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfResource(v *[]types.Resource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14677,18 +14695,20 @@ func awsRestjson1_deserializeDocument__listOfResource(v *[]*types.Resource, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Resource + var cv []types.Resource if *v == nil { - cv = []*types.Resource{} + cv = []types.Resource{} } else { cv = *v } for _, value := range shape { - var col *types.Resource - if err := awsRestjson1_deserializeDocumentResource(&col, value); err != nil { + var col types.Resource + destAddr := &col + if err := awsRestjson1_deserializeDocumentResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14696,7 +14716,7 @@ func awsRestjson1_deserializeDocument__listOfResource(v *[]*types.Resource, valu return nil } -func awsRestjson1_deserializeDocument__listOfResourceAccessPolicy(v *[]*types.ResourceAccessPolicy, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfResourceAccessPolicy(v *[]types.ResourceAccessPolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14709,18 +14729,20 @@ func awsRestjson1_deserializeDocument__listOfResourceAccessPolicy(v *[]*types.Re return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceAccessPolicy + var cv []types.ResourceAccessPolicy if *v == nil { - cv = []*types.ResourceAccessPolicy{} + cv = []types.ResourceAccessPolicy{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceAccessPolicy - if err := awsRestjson1_deserializeDocumentResourceAccessPolicy(&col, value); err != nil { + var col types.ResourceAccessPolicy + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceAccessPolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14728,7 +14750,7 @@ func awsRestjson1_deserializeDocument__listOfResourceAccessPolicy(v *[]*types.Re return nil } -func awsRestjson1_deserializeDocument__listOfSubscription(v *[]*types.Subscription, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfSubscription(v *[]types.Subscription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14741,18 +14763,20 @@ func awsRestjson1_deserializeDocument__listOfSubscription(v *[]*types.Subscripti return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Subscription + var cv []types.Subscription if *v == nil { - cv = []*types.Subscription{} + cv = []types.Subscription{} } else { cv = *v } for _, value := range shape { - var col *types.Subscription - if err := awsRestjson1_deserializeDocumentSubscription(&col, value); err != nil { + var col types.Subscription + destAddr := &col + if err := awsRestjson1_deserializeDocumentSubscription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14760,7 +14784,7 @@ func awsRestjson1_deserializeDocument__listOfSubscription(v *[]*types.Subscripti return nil } -func awsRestjson1_deserializeDocument__listOfVersionInformation(v *[]*types.VersionInformation, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfVersionInformation(v *[]types.VersionInformation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14773,18 +14797,20 @@ func awsRestjson1_deserializeDocument__listOfVersionInformation(v *[]*types.Vers return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VersionInformation + var cv []types.VersionInformation if *v == nil { - cv = []*types.VersionInformation{} + cv = []types.VersionInformation{} } else { cv = *v } for _, value := range shape { - var col *types.VersionInformation - if err := awsRestjson1_deserializeDocumentVersionInformation(&col, value); err != nil { + var col types.VersionInformation + destAddr := &col + if err := awsRestjson1_deserializeDocumentVersionInformation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14792,7 +14818,7 @@ func awsRestjson1_deserializeDocument__listOfVersionInformation(v *[]*types.Vers return nil } -func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14805,21 +14831,21 @@ func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -14861,7 +14887,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14901,7 +14927,7 @@ func awsRestjson1_deserializeDocumentBulkDeployment(v **types.BulkDeployment, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BulkDeploymentArn = &jtv + sv.BulkDeploymentArn = ptr.String(jtv) } case "BulkDeploymentId": @@ -14910,7 +14936,7 @@ func awsRestjson1_deserializeDocumentBulkDeployment(v **types.BulkDeployment, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BulkDeploymentId = &jtv + sv.BulkDeploymentId = ptr.String(jtv) } case "CreatedAt": @@ -14919,7 +14945,7 @@ func awsRestjson1_deserializeDocumentBulkDeployment(v **types.BulkDeployment, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } default: @@ -14963,7 +14989,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentMetrics(v **types.BulkDeploym if err != nil { return err } - sv.InvalidInputRecords = ptr.Int32(int32(i64)) + sv.InvalidInputRecords = int32(i64) } case "RecordsProcessed": @@ -14976,7 +15002,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentMetrics(v **types.BulkDeploym if err != nil { return err } - sv.RecordsProcessed = ptr.Int32(int32(i64)) + sv.RecordsProcessed = int32(i64) } case "RetryAttempts": @@ -14989,7 +15015,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentMetrics(v **types.BulkDeploym if err != nil { return err } - sv.RetryAttempts = ptr.Int32(int32(i64)) + sv.RetryAttempts = int32(i64) } default: @@ -15029,7 +15055,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentResult(v **types.BulkDeployme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "DeploymentArn": @@ -15038,7 +15064,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentResult(v **types.BulkDeployme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentArn = &jtv + sv.DeploymentArn = ptr.String(jtv) } case "DeploymentId": @@ -15047,7 +15073,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentResult(v **types.BulkDeployme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "DeploymentStatus": @@ -15056,7 +15082,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentResult(v **types.BulkDeployme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentStatus = &jtv + sv.DeploymentStatus = ptr.String(jtv) } case "DeploymentType": @@ -15079,7 +15105,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentResult(v **types.BulkDeployme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "GroupArn": @@ -15088,7 +15114,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentResult(v **types.BulkDeployme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.GroupArn = &jtv + sv.GroupArn = ptr.String(jtv) } default: @@ -15100,7 +15126,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentResult(v **types.BulkDeployme return nil } -func awsRestjson1_deserializeDocumentBulkDeploymentResults(v *[]*types.BulkDeploymentResult, value interface{}) error { +func awsRestjson1_deserializeDocumentBulkDeploymentResults(v *[]types.BulkDeploymentResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15113,18 +15139,20 @@ func awsRestjson1_deserializeDocumentBulkDeploymentResults(v *[]*types.BulkDeplo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BulkDeploymentResult + var cv []types.BulkDeploymentResult if *v == nil { - cv = []*types.BulkDeploymentResult{} + cv = []types.BulkDeploymentResult{} } else { cv = *v } for _, value := range shape { - var col *types.BulkDeploymentResult - if err := awsRestjson1_deserializeDocumentBulkDeploymentResult(&col, value); err != nil { + var col types.BulkDeploymentResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentBulkDeploymentResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15132,7 +15160,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentResults(v *[]*types.BulkDeplo return nil } -func awsRestjson1_deserializeDocumentBulkDeployments(v *[]*types.BulkDeployment, value interface{}) error { +func awsRestjson1_deserializeDocumentBulkDeployments(v *[]types.BulkDeployment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15145,18 +15173,20 @@ func awsRestjson1_deserializeDocumentBulkDeployments(v *[]*types.BulkDeployment, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BulkDeployment + var cv []types.BulkDeployment if *v == nil { - cv = []*types.BulkDeployment{} + cv = []types.BulkDeployment{} } else { cv = *v } for _, value := range shape { - var col *types.BulkDeployment - if err := awsRestjson1_deserializeDocumentBulkDeployment(&col, value); err != nil { + var col types.BulkDeployment + destAddr := &col + if err := awsRestjson1_deserializeDocumentBulkDeployment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15192,7 +15222,7 @@ func awsRestjson1_deserializeDocumentConnectivityInfo(v **types.ConnectivityInfo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.HostAddress = &jtv + sv.HostAddress = ptr.String(jtv) } case "Id": @@ -15201,7 +15231,7 @@ func awsRestjson1_deserializeDocumentConnectivityInfo(v **types.ConnectivityInfo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Metadata": @@ -15210,7 +15240,7 @@ func awsRestjson1_deserializeDocumentConnectivityInfo(v **types.ConnectivityInfo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Metadata = &jtv + sv.Metadata = ptr.String(jtv) } case "PortNumber": @@ -15223,7 +15253,7 @@ func awsRestjson1_deserializeDocumentConnectivityInfo(v **types.ConnectivityInfo if err != nil { return err } - sv.PortNumber = ptr.Int32(int32(i64)) + sv.PortNumber = int32(i64) } default: @@ -15263,7 +15293,7 @@ func awsRestjson1_deserializeDocumentConnector(v **types.Connector, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ConnectorArn = &jtv + sv.ConnectorArn = ptr.String(jtv) } case "Id": @@ -15272,7 +15302,7 @@ func awsRestjson1_deserializeDocumentConnector(v **types.Connector, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Parameters": @@ -15353,7 +15383,7 @@ func awsRestjson1_deserializeDocumentCore(v **types.Core, value interface{}) err if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "Id": @@ -15362,7 +15392,7 @@ func awsRestjson1_deserializeDocumentCore(v **types.Core, value interface{}) err if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "SyncShadow": @@ -15371,7 +15401,7 @@ func awsRestjson1_deserializeDocumentCore(v **types.Core, value interface{}) err if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.SyncShadow = &jtv + sv.SyncShadow = jtv } case "ThingArn": @@ -15380,7 +15410,7 @@ func awsRestjson1_deserializeDocumentCore(v **types.Core, value interface{}) err if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ThingArn = &jtv + sv.ThingArn = ptr.String(jtv) } default: @@ -15456,7 +15486,7 @@ func awsRestjson1_deserializeDocumentDefinitionInformation(v **types.DefinitionI if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -15465,7 +15495,7 @@ func awsRestjson1_deserializeDocumentDefinitionInformation(v **types.DefinitionI if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -15474,7 +15504,7 @@ func awsRestjson1_deserializeDocumentDefinitionInformation(v **types.DefinitionI if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -15483,7 +15513,7 @@ func awsRestjson1_deserializeDocumentDefinitionInformation(v **types.DefinitionI if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -15492,7 +15522,7 @@ func awsRestjson1_deserializeDocumentDefinitionInformation(v **types.DefinitionI if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -15501,7 +15531,7 @@ func awsRestjson1_deserializeDocumentDefinitionInformation(v **types.DefinitionI if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -15510,7 +15540,7 @@ func awsRestjson1_deserializeDocumentDefinitionInformation(v **types.DefinitionI if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -15555,7 +15585,7 @@ func awsRestjson1_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "DeploymentArn": @@ -15564,7 +15594,7 @@ func awsRestjson1_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentArn = &jtv + sv.DeploymentArn = ptr.String(jtv) } case "DeploymentId": @@ -15573,7 +15603,7 @@ func awsRestjson1_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "DeploymentType": @@ -15591,7 +15621,7 @@ func awsRestjson1_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.GroupArn = &jtv + sv.GroupArn = ptr.String(jtv) } default: @@ -15603,7 +15633,7 @@ func awsRestjson1_deserializeDocumentDeployment(v **types.Deployment, value inte return nil } -func awsRestjson1_deserializeDocumentDeployments(v *[]*types.Deployment, value interface{}) error { +func awsRestjson1_deserializeDocumentDeployments(v *[]types.Deployment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15616,18 +15646,20 @@ func awsRestjson1_deserializeDocumentDeployments(v *[]*types.Deployment, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Deployment + var cv []types.Deployment if *v == nil { - cv = []*types.Deployment{} + cv = []types.Deployment{} } else { cv = *v } for _, value := range shape { - var col *types.Deployment - if err := awsRestjson1_deserializeDocumentDeployment(&col, value); err != nil { + var col types.Deployment + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeployment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15663,7 +15695,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "Id": @@ -15672,7 +15704,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "SyncShadow": @@ -15681,7 +15713,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.SyncShadow = &jtv + sv.SyncShadow = jtv } case "ThingArn": @@ -15690,7 +15722,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ThingArn = &jtv + sv.ThingArn = ptr.String(jtv) } default: @@ -15766,7 +15798,7 @@ func awsRestjson1_deserializeDocumentErrorDetail(v **types.ErrorDetail, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DetailedErrorCode = &jtv + sv.DetailedErrorCode = ptr.String(jtv) } case "DetailedErrorMessage": @@ -15775,7 +15807,7 @@ func awsRestjson1_deserializeDocumentErrorDetail(v **types.ErrorDetail, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DetailedErrorMessage = &jtv + sv.DetailedErrorMessage = ptr.String(jtv) } default: @@ -15787,7 +15819,7 @@ func awsRestjson1_deserializeDocumentErrorDetail(v **types.ErrorDetail, value in return nil } -func awsRestjson1_deserializeDocumentErrorDetails(v *[]*types.ErrorDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentErrorDetails(v *[]types.ErrorDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15800,18 +15832,20 @@ func awsRestjson1_deserializeDocumentErrorDetails(v *[]*types.ErrorDetail, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ErrorDetail + var cv []types.ErrorDetail if *v == nil { - cv = []*types.ErrorDetail{} + cv = []types.ErrorDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ErrorDetail - if err := awsRestjson1_deserializeDocumentErrorDetail(&col, value); err != nil { + var col types.ErrorDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentErrorDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15847,7 +15881,7 @@ func awsRestjson1_deserializeDocumentFunction(v **types.Function, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "FunctionConfiguration": @@ -15861,7 +15895,7 @@ func awsRestjson1_deserializeDocumentFunction(v **types.Function, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -15915,7 +15949,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ExecArgs = &jtv + sv.ExecArgs = ptr.String(jtv) } case "Executable": @@ -15924,7 +15958,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Executable = &jtv + sv.Executable = ptr.String(jtv) } case "MemorySize": @@ -15937,7 +15971,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if err != nil { return err } - sv.MemorySize = ptr.Int32(int32(i64)) + sv.MemorySize = int32(i64) } case "Pinned": @@ -15946,7 +15980,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Pinned = &jtv + sv.Pinned = jtv } case "Timeout": @@ -15959,7 +15993,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if err != nil { return err } - sv.Timeout = ptr.Int32(int32(i64)) + sv.Timeout = int32(i64) } default: @@ -15999,7 +16033,7 @@ func awsRestjson1_deserializeDocumentFunctionConfigurationEnvironment(v **types. if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AccessSysfs = &jtv + sv.AccessSysfs = jtv } case "Execution": @@ -16225,7 +16259,7 @@ func awsRestjson1_deserializeDocumentFunctionRunAsConfig(v **types.FunctionRunAs if err != nil { return err } - sv.Gid = ptr.Int32(int32(i64)) + sv.Gid = int32(i64) } case "Uid": @@ -16238,7 +16272,7 @@ func awsRestjson1_deserializeDocumentFunctionRunAsConfig(v **types.FunctionRunAs if err != nil { return err } - sv.Uid = ptr.Int32(int32(i64)) + sv.Uid = int32(i64) } default: @@ -16278,7 +16312,7 @@ func awsRestjson1_deserializeDocumentGroupCertificateAuthorityProperties(v **typ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.GroupCertificateAuthorityArn = &jtv + sv.GroupCertificateAuthorityArn = ptr.String(jtv) } case "GroupCertificateAuthorityId": @@ -16287,7 +16321,7 @@ func awsRestjson1_deserializeDocumentGroupCertificateAuthorityProperties(v **typ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.GroupCertificateAuthorityId = &jtv + sv.GroupCertificateAuthorityId = ptr.String(jtv) } default: @@ -16327,7 +16361,7 @@ func awsRestjson1_deserializeDocumentGroupInformation(v **types.GroupInformation if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -16336,7 +16370,7 @@ func awsRestjson1_deserializeDocumentGroupInformation(v **types.GroupInformation if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -16345,7 +16379,7 @@ func awsRestjson1_deserializeDocumentGroupInformation(v **types.GroupInformation if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -16354,7 +16388,7 @@ func awsRestjson1_deserializeDocumentGroupInformation(v **types.GroupInformation if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedTimestamp = &jtv + sv.LastUpdatedTimestamp = ptr.String(jtv) } case "LatestVersion": @@ -16363,7 +16397,7 @@ func awsRestjson1_deserializeDocumentGroupInformation(v **types.GroupInformation if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "LatestVersionArn": @@ -16372,7 +16406,7 @@ func awsRestjson1_deserializeDocumentGroupInformation(v **types.GroupInformation if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LatestVersionArn = &jtv + sv.LatestVersionArn = ptr.String(jtv) } case "Name": @@ -16381,7 +16415,7 @@ func awsRestjson1_deserializeDocumentGroupInformation(v **types.GroupInformation if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -16421,7 +16455,7 @@ func awsRestjson1_deserializeDocumentGroupOwnerSetting(v **types.GroupOwnerSetti if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoAddGroupOwner = &jtv + sv.AutoAddGroupOwner = jtv } case "GroupOwner": @@ -16430,7 +16464,7 @@ func awsRestjson1_deserializeDocumentGroupOwnerSetting(v **types.GroupOwnerSetti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.GroupOwner = &jtv + sv.GroupOwner = ptr.String(jtv) } default: @@ -16470,7 +16504,7 @@ func awsRestjson1_deserializeDocumentGroupVersion(v **types.GroupVersion, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ConnectorDefinitionVersionArn = &jtv + sv.ConnectorDefinitionVersionArn = ptr.String(jtv) } case "CoreDefinitionVersionArn": @@ -16479,7 +16513,7 @@ func awsRestjson1_deserializeDocumentGroupVersion(v **types.GroupVersion, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CoreDefinitionVersionArn = &jtv + sv.CoreDefinitionVersionArn = ptr.String(jtv) } case "DeviceDefinitionVersionArn": @@ -16488,7 +16522,7 @@ func awsRestjson1_deserializeDocumentGroupVersion(v **types.GroupVersion, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeviceDefinitionVersionArn = &jtv + sv.DeviceDefinitionVersionArn = ptr.String(jtv) } case "FunctionDefinitionVersionArn": @@ -16497,7 +16531,7 @@ func awsRestjson1_deserializeDocumentGroupVersion(v **types.GroupVersion, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FunctionDefinitionVersionArn = &jtv + sv.FunctionDefinitionVersionArn = ptr.String(jtv) } case "LoggerDefinitionVersionArn": @@ -16506,7 +16540,7 @@ func awsRestjson1_deserializeDocumentGroupVersion(v **types.GroupVersion, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LoggerDefinitionVersionArn = &jtv + sv.LoggerDefinitionVersionArn = ptr.String(jtv) } case "ResourceDefinitionVersionArn": @@ -16515,7 +16549,7 @@ func awsRestjson1_deserializeDocumentGroupVersion(v **types.GroupVersion, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ResourceDefinitionVersionArn = &jtv + sv.ResourceDefinitionVersionArn = ptr.String(jtv) } case "SubscriptionDefinitionVersionArn": @@ -16524,7 +16558,7 @@ func awsRestjson1_deserializeDocumentGroupVersion(v **types.GroupVersion, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SubscriptionDefinitionVersionArn = &jtv + sv.SubscriptionDefinitionVersionArn = ptr.String(jtv) } default: @@ -16569,7 +16603,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16614,7 +16648,7 @@ func awsRestjson1_deserializeDocumentLocalDeviceResourceData(v **types.LocalDevi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourcePath = &jtv + sv.SourcePath = ptr.String(jtv) } default: @@ -16654,7 +16688,7 @@ func awsRestjson1_deserializeDocumentLocalVolumeResourceData(v **types.LocalVolu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DestinationPath = &jtv + sv.DestinationPath = ptr.String(jtv) } case "GroupOwnerSetting": @@ -16668,7 +16702,7 @@ func awsRestjson1_deserializeDocumentLocalVolumeResourceData(v **types.LocalVolu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourcePath = &jtv + sv.SourcePath = ptr.String(jtv) } default: @@ -16717,7 +16751,7 @@ func awsRestjson1_deserializeDocumentLogger(v **types.Logger, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Level": @@ -16739,7 +16773,7 @@ func awsRestjson1_deserializeDocumentLogger(v **types.Logger, value interface{}) if err != nil { return err } - sv.Space = ptr.Int32(int32(i64)) + sv.Space = int32(i64) } case "Type": @@ -16824,7 +16858,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -16833,7 +16867,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ResourceDataContainer": @@ -16887,7 +16921,7 @@ func awsRestjson1_deserializeDocumentResourceAccessPolicy(v **types.ResourceAcce if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } default: @@ -17019,7 +17053,7 @@ func awsRestjson1_deserializeDocumentResourceDownloadOwnerSetting(v **types.Reso if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.GroupOwner = &jtv + sv.GroupOwner = ptr.String(jtv) } case "GroupPermission": @@ -17104,7 +17138,7 @@ func awsRestjson1_deserializeDocumentS3MachineLearningModelResourceData(v **type if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DestinationPath = &jtv + sv.DestinationPath = ptr.String(jtv) } case "OwnerSetting": @@ -17118,7 +17152,7 @@ func awsRestjson1_deserializeDocumentS3MachineLearningModelResourceData(v **type if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -17158,7 +17192,7 @@ func awsRestjson1_deserializeDocumentSageMakerMachineLearningModelResourceData(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DestinationPath = &jtv + sv.DestinationPath = ptr.String(jtv) } case "OwnerSetting": @@ -17172,7 +17206,7 @@ func awsRestjson1_deserializeDocumentSageMakerMachineLearningModelResourceData(v if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SageMakerJobArn = &jtv + sv.SageMakerJobArn = ptr.String(jtv) } default: @@ -17217,7 +17251,7 @@ func awsRestjson1_deserializeDocumentSecretsManagerSecretResourceData(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } default: @@ -17257,7 +17291,7 @@ func awsRestjson1_deserializeDocumentSubscription(v **types.Subscription, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Source": @@ -17266,7 +17300,7 @@ func awsRestjson1_deserializeDocumentSubscription(v **types.Subscription, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Source = &jtv + sv.Source = ptr.String(jtv) } case "Subject": @@ -17275,7 +17309,7 @@ func awsRestjson1_deserializeDocumentSubscription(v **types.Subscription, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Subject = &jtv + sv.Subject = ptr.String(jtv) } case "Target": @@ -17284,7 +17318,7 @@ func awsRestjson1_deserializeDocumentSubscription(v **types.Subscription, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } default: @@ -17332,7 +17366,7 @@ func awsRestjson1_deserializeDocumentSubscriptionDefinitionVersion(v **types.Sub return nil } -func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17345,21 +17379,21 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -17445,7 +17479,7 @@ func awsRestjson1_deserializeDocumentVersionInformation(v **types.VersionInforma if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTimestamp": @@ -17454,7 +17488,7 @@ func awsRestjson1_deserializeDocumentVersionInformation(v **types.VersionInforma if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTimestamp = &jtv + sv.CreationTimestamp = ptr.String(jtv) } case "Id": @@ -17463,7 +17497,7 @@ func awsRestjson1_deserializeDocumentVersionInformation(v **types.VersionInforma if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Version": @@ -17472,7 +17506,7 @@ func awsRestjson1_deserializeDocumentVersionInformation(v **types.VersionInforma if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: diff --git a/service/greengrass/go.mod b/service/greengrass/go.mod index b9908db5c3b..f5cf7112f80 100644 --- a/service/greengrass/go.mod +++ b/service/greengrass/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/greengrass go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/greengrass/serializers.go b/service/greengrass/serializers.go index 978e5fc95e0..71cc1621e10 100644 --- a/service/greengrass/serializers.go +++ b/service/greengrass/serializers.go @@ -76,13 +76,10 @@ func awsRestjson1_serializeOpHttpBindingsAssociateRoleToGroupInput(v *AssociateR return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -238,11 +235,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateConnectorDefinitionInput(v *Creat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } return nil @@ -336,20 +331,15 @@ func awsRestjson1_serializeOpHttpBindingsCreateConnectorDefinitionVersionInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } - if v.ConnectorDefinitionId == nil { + if v.ConnectorDefinitionId == nil || len(*v.ConnectorDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionId must not be empty")} } if v.ConnectorDefinitionId != nil { - if len(*v.ConnectorDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionId must not be empty")} - } if err := encoder.SetURI("ConnectorDefinitionId").String(*v.ConnectorDefinitionId); err != nil { return err } @@ -434,11 +424,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateCoreDefinitionInput(v *CreateCore return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } return nil @@ -532,20 +520,15 @@ func awsRestjson1_serializeOpHttpBindingsCreateCoreDefinitionVersionInput(v *Cre return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } - if v.CoreDefinitionId == nil { + if v.CoreDefinitionId == nil || len(*v.CoreDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionId must not be empty")} } if v.CoreDefinitionId != nil { - if len(*v.CoreDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionId must not be empty")} - } if err := encoder.SetURI("CoreDefinitionId").String(*v.CoreDefinitionId); err != nil { return err } @@ -630,20 +613,15 @@ func awsRestjson1_serializeOpHttpBindingsCreateDeploymentInput(v *CreateDeployme return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -736,11 +714,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateDeviceDefinitionInput(v *CreateDe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } return nil @@ -834,20 +810,15 @@ func awsRestjson1_serializeOpHttpBindingsCreateDeviceDefinitionVersionInput(v *C return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } - if v.DeviceDefinitionId == nil { + if v.DeviceDefinitionId == nil || len(*v.DeviceDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionId must not be empty")} } if v.DeviceDefinitionId != nil { - if len(*v.DeviceDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionId must not be empty")} - } if err := encoder.SetURI("DeviceDefinitionId").String(*v.DeviceDefinitionId); err != nil { return err } @@ -932,11 +903,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateFunctionDefinitionInput(v *Create return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } return nil @@ -1030,20 +999,15 @@ func awsRestjson1_serializeOpHttpBindingsCreateFunctionDefinitionVersionInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } - if v.FunctionDefinitionId == nil { + if v.FunctionDefinitionId == nil || len(*v.FunctionDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionId must not be empty")} } if v.FunctionDefinitionId != nil { - if len(*v.FunctionDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionId must not be empty")} - } if err := encoder.SetURI("FunctionDefinitionId").String(*v.FunctionDefinitionId); err != nil { return err } @@ -1135,11 +1099,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateGroupInput(v *CreateGroupInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } return nil @@ -1222,20 +1184,15 @@ func awsRestjson1_serializeOpHttpBindingsCreateGroupCertificateAuthorityInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -1306,20 +1263,15 @@ func awsRestjson1_serializeOpHttpBindingsCreateGroupVersionInput(v *CreateGroupV return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -1432,11 +1384,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateLoggerDefinitionInput(v *CreateLo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } return nil @@ -1530,20 +1480,15 @@ func awsRestjson1_serializeOpHttpBindingsCreateLoggerDefinitionVersionInput(v *C return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } - if v.LoggerDefinitionId == nil { + if v.LoggerDefinitionId == nil || len(*v.LoggerDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionId must not be empty")} } if v.LoggerDefinitionId != nil { - if len(*v.LoggerDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionId must not be empty")} - } if err := encoder.SetURI("LoggerDefinitionId").String(*v.LoggerDefinitionId); err != nil { return err } @@ -1628,11 +1573,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateResourceDefinitionInput(v *Create return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } return nil @@ -1726,20 +1669,15 @@ func awsRestjson1_serializeOpHttpBindingsCreateResourceDefinitionVersionInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } - if v.ResourceDefinitionId == nil { + if v.ResourceDefinitionId == nil || len(*v.ResourceDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionId must not be empty")} } if v.ResourceDefinitionId != nil { - if len(*v.ResourceDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionId must not be empty")} - } if err := encoder.SetURI("ResourceDefinitionId").String(*v.ResourceDefinitionId); err != nil { return err } @@ -1824,11 +1762,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateSoftwareUpdateJobInput(v *CreateS return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } return nil @@ -1935,11 +1871,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateSubscriptionDefinitionInput(v *Cr return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } return nil @@ -2033,20 +1967,15 @@ func awsRestjson1_serializeOpHttpBindingsCreateSubscriptionDefinitionVersionInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } - if v.SubscriptionDefinitionId == nil { + if v.SubscriptionDefinitionId == nil || len(*v.SubscriptionDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionId must not be empty")} } if v.SubscriptionDefinitionId != nil { - if len(*v.SubscriptionDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionId must not be empty")} - } if err := encoder.SetURI("SubscriptionDefinitionId").String(*v.SubscriptionDefinitionId); err != nil { return err } @@ -2120,13 +2049,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteConnectorDefinitionInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConnectorDefinitionId == nil { + if v.ConnectorDefinitionId == nil || len(*v.ConnectorDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionId must not be empty")} } if v.ConnectorDefinitionId != nil { - if len(*v.ConnectorDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionId must not be empty")} - } if err := encoder.SetURI("ConnectorDefinitionId").String(*v.ConnectorDefinitionId); err != nil { return err } @@ -2186,13 +2112,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteCoreDefinitionInput(v *DeleteCore return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CoreDefinitionId == nil { + if v.CoreDefinitionId == nil || len(*v.CoreDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionId must not be empty")} } if v.CoreDefinitionId != nil { - if len(*v.CoreDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionId must not be empty")} - } if err := encoder.SetURI("CoreDefinitionId").String(*v.CoreDefinitionId); err != nil { return err } @@ -2252,13 +2175,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDeviceDefinitionInput(v *DeleteDe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceDefinitionId == nil { + if v.DeviceDefinitionId == nil || len(*v.DeviceDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionId must not be empty")} } if v.DeviceDefinitionId != nil { - if len(*v.DeviceDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionId must not be empty")} - } if err := encoder.SetURI("DeviceDefinitionId").String(*v.DeviceDefinitionId); err != nil { return err } @@ -2318,13 +2238,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFunctionDefinitionInput(v *Delete return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionDefinitionId == nil { + if v.FunctionDefinitionId == nil || len(*v.FunctionDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionId must not be empty")} } if v.FunctionDefinitionId != nil { - if len(*v.FunctionDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionId must not be empty")} - } if err := encoder.SetURI("FunctionDefinitionId").String(*v.FunctionDefinitionId); err != nil { return err } @@ -2384,13 +2301,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteGroupInput(v *DeleteGroupInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -2450,13 +2364,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteLoggerDefinitionInput(v *DeleteLo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LoggerDefinitionId == nil { + if v.LoggerDefinitionId == nil || len(*v.LoggerDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionId must not be empty")} } if v.LoggerDefinitionId != nil { - if len(*v.LoggerDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionId must not be empty")} - } if err := encoder.SetURI("LoggerDefinitionId").String(*v.LoggerDefinitionId); err != nil { return err } @@ -2516,13 +2427,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteResourceDefinitionInput(v *Delete return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceDefinitionId == nil { + if v.ResourceDefinitionId == nil || len(*v.ResourceDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionId must not be empty")} } if v.ResourceDefinitionId != nil { - if len(*v.ResourceDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionId must not be empty")} - } if err := encoder.SetURI("ResourceDefinitionId").String(*v.ResourceDefinitionId); err != nil { return err } @@ -2582,13 +2490,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSubscriptionDefinitionInput(v *De return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SubscriptionDefinitionId == nil { + if v.SubscriptionDefinitionId == nil || len(*v.SubscriptionDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionId must not be empty")} } if v.SubscriptionDefinitionId != nil { - if len(*v.SubscriptionDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionId must not be empty")} - } if err := encoder.SetURI("SubscriptionDefinitionId").String(*v.SubscriptionDefinitionId); err != nil { return err } @@ -2648,13 +2553,10 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateRoleFromGroupInput(v *Disas return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -2764,13 +2666,10 @@ func awsRestjson1_serializeOpHttpBindingsGetAssociatedRoleInput(v *GetAssociated return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -2830,13 +2729,10 @@ func awsRestjson1_serializeOpHttpBindingsGetBulkDeploymentStatusInput(v *GetBulk return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BulkDeploymentId == nil { + if v.BulkDeploymentId == nil || len(*v.BulkDeploymentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BulkDeploymentId must not be empty")} } if v.BulkDeploymentId != nil { - if len(*v.BulkDeploymentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BulkDeploymentId must not be empty")} - } if err := encoder.SetURI("BulkDeploymentId").String(*v.BulkDeploymentId); err != nil { return err } @@ -2896,13 +2792,10 @@ func awsRestjson1_serializeOpHttpBindingsGetConnectivityInfoInput(v *GetConnecti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ThingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThingName must not be empty")} - } if err := encoder.SetURI("ThingName").String(*v.ThingName); err != nil { return err } @@ -2962,13 +2855,10 @@ func awsRestjson1_serializeOpHttpBindingsGetConnectorDefinitionInput(v *GetConne return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConnectorDefinitionId == nil { + if v.ConnectorDefinitionId == nil || len(*v.ConnectorDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionId must not be empty")} } if v.ConnectorDefinitionId != nil { - if len(*v.ConnectorDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionId must not be empty")} - } if err := encoder.SetURI("ConnectorDefinitionId").String(*v.ConnectorDefinitionId); err != nil { return err } @@ -3028,25 +2918,19 @@ func awsRestjson1_serializeOpHttpBindingsGetConnectorDefinitionVersionInput(v *G return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConnectorDefinitionId == nil { + if v.ConnectorDefinitionId == nil || len(*v.ConnectorDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionId must not be empty")} } if v.ConnectorDefinitionId != nil { - if len(*v.ConnectorDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionId must not be empty")} - } if err := encoder.SetURI("ConnectorDefinitionId").String(*v.ConnectorDefinitionId); err != nil { return err } } - if v.ConnectorDefinitionVersionId == nil { + if v.ConnectorDefinitionVersionId == nil || len(*v.ConnectorDefinitionVersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionVersionId must not be empty")} } if v.ConnectorDefinitionVersionId != nil { - if len(*v.ConnectorDefinitionVersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionVersionId must not be empty")} - } if err := encoder.SetURI("ConnectorDefinitionVersionId").String(*v.ConnectorDefinitionVersionId); err != nil { return err } @@ -3110,13 +2994,10 @@ func awsRestjson1_serializeOpHttpBindingsGetCoreDefinitionInput(v *GetCoreDefini return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CoreDefinitionId == nil { + if v.CoreDefinitionId == nil || len(*v.CoreDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionId must not be empty")} } if v.CoreDefinitionId != nil { - if len(*v.CoreDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionId must not be empty")} - } if err := encoder.SetURI("CoreDefinitionId").String(*v.CoreDefinitionId); err != nil { return err } @@ -3176,25 +3057,19 @@ func awsRestjson1_serializeOpHttpBindingsGetCoreDefinitionVersionInput(v *GetCor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CoreDefinitionId == nil { + if v.CoreDefinitionId == nil || len(*v.CoreDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionId must not be empty")} } if v.CoreDefinitionId != nil { - if len(*v.CoreDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionId must not be empty")} - } if err := encoder.SetURI("CoreDefinitionId").String(*v.CoreDefinitionId); err != nil { return err } } - if v.CoreDefinitionVersionId == nil { + if v.CoreDefinitionVersionId == nil || len(*v.CoreDefinitionVersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionVersionId must not be empty")} } if v.CoreDefinitionVersionId != nil { - if len(*v.CoreDefinitionVersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionVersionId must not be empty")} - } if err := encoder.SetURI("CoreDefinitionVersionId").String(*v.CoreDefinitionVersionId); err != nil { return err } @@ -3254,25 +3129,19 @@ func awsRestjson1_serializeOpHttpBindingsGetDeploymentStatusInput(v *GetDeployme return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeploymentId == nil { + if v.DeploymentId == nil || len(*v.DeploymentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentId must not be empty")} } if v.DeploymentId != nil { - if len(*v.DeploymentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentId must not be empty")} - } if err := encoder.SetURI("DeploymentId").String(*v.DeploymentId); err != nil { return err } } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -3332,13 +3201,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDeviceDefinitionInput(v *GetDeviceDe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceDefinitionId == nil { + if v.DeviceDefinitionId == nil || len(*v.DeviceDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionId must not be empty")} } if v.DeviceDefinitionId != nil { - if len(*v.DeviceDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionId must not be empty")} - } if err := encoder.SetURI("DeviceDefinitionId").String(*v.DeviceDefinitionId); err != nil { return err } @@ -3398,25 +3264,19 @@ func awsRestjson1_serializeOpHttpBindingsGetDeviceDefinitionVersionInput(v *GetD return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceDefinitionId == nil { + if v.DeviceDefinitionId == nil || len(*v.DeviceDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionId must not be empty")} } if v.DeviceDefinitionId != nil { - if len(*v.DeviceDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionId must not be empty")} - } if err := encoder.SetURI("DeviceDefinitionId").String(*v.DeviceDefinitionId); err != nil { return err } } - if v.DeviceDefinitionVersionId == nil { + if v.DeviceDefinitionVersionId == nil || len(*v.DeviceDefinitionVersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionVersionId must not be empty")} } if v.DeviceDefinitionVersionId != nil { - if len(*v.DeviceDefinitionVersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionVersionId must not be empty")} - } if err := encoder.SetURI("DeviceDefinitionVersionId").String(*v.DeviceDefinitionVersionId); err != nil { return err } @@ -3480,13 +3340,10 @@ func awsRestjson1_serializeOpHttpBindingsGetFunctionDefinitionInput(v *GetFuncti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionDefinitionId == nil { + if v.FunctionDefinitionId == nil || len(*v.FunctionDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionId must not be empty")} } if v.FunctionDefinitionId != nil { - if len(*v.FunctionDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionId must not be empty")} - } if err := encoder.SetURI("FunctionDefinitionId").String(*v.FunctionDefinitionId); err != nil { return err } @@ -3546,25 +3403,19 @@ func awsRestjson1_serializeOpHttpBindingsGetFunctionDefinitionVersionInput(v *Ge return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionDefinitionId == nil { + if v.FunctionDefinitionId == nil || len(*v.FunctionDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionId must not be empty")} } if v.FunctionDefinitionId != nil { - if len(*v.FunctionDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionId must not be empty")} - } if err := encoder.SetURI("FunctionDefinitionId").String(*v.FunctionDefinitionId); err != nil { return err } } - if v.FunctionDefinitionVersionId == nil { + if v.FunctionDefinitionVersionId == nil || len(*v.FunctionDefinitionVersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionVersionId must not be empty")} } if v.FunctionDefinitionVersionId != nil { - if len(*v.FunctionDefinitionVersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionVersionId must not be empty")} - } if err := encoder.SetURI("FunctionDefinitionVersionId").String(*v.FunctionDefinitionVersionId); err != nil { return err } @@ -3628,13 +3479,10 @@ func awsRestjson1_serializeOpHttpBindingsGetGroupInput(v *GetGroupInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -3694,25 +3542,19 @@ func awsRestjson1_serializeOpHttpBindingsGetGroupCertificateAuthorityInput(v *Ge return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CertificateAuthorityId == nil { + if v.CertificateAuthorityId == nil || len(*v.CertificateAuthorityId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CertificateAuthorityId must not be empty")} } if v.CertificateAuthorityId != nil { - if len(*v.CertificateAuthorityId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CertificateAuthorityId must not be empty")} - } if err := encoder.SetURI("CertificateAuthorityId").String(*v.CertificateAuthorityId); err != nil { return err } } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -3772,13 +3614,10 @@ func awsRestjson1_serializeOpHttpBindingsGetGroupCertificateConfigurationInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -3838,25 +3677,19 @@ func awsRestjson1_serializeOpHttpBindingsGetGroupVersionInput(v *GetGroupVersion return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } } - if v.GroupVersionId == nil { + if v.GroupVersionId == nil || len(*v.GroupVersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupVersionId must not be empty")} } if v.GroupVersionId != nil { - if len(*v.GroupVersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupVersionId must not be empty")} - } if err := encoder.SetURI("GroupVersionId").String(*v.GroupVersionId); err != nil { return err } @@ -3916,13 +3749,10 @@ func awsRestjson1_serializeOpHttpBindingsGetLoggerDefinitionInput(v *GetLoggerDe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LoggerDefinitionId == nil { + if v.LoggerDefinitionId == nil || len(*v.LoggerDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionId must not be empty")} } if v.LoggerDefinitionId != nil { - if len(*v.LoggerDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionId must not be empty")} - } if err := encoder.SetURI("LoggerDefinitionId").String(*v.LoggerDefinitionId); err != nil { return err } @@ -3982,25 +3812,19 @@ func awsRestjson1_serializeOpHttpBindingsGetLoggerDefinitionVersionInput(v *GetL return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LoggerDefinitionId == nil { + if v.LoggerDefinitionId == nil || len(*v.LoggerDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionId must not be empty")} } if v.LoggerDefinitionId != nil { - if len(*v.LoggerDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionId must not be empty")} - } if err := encoder.SetURI("LoggerDefinitionId").String(*v.LoggerDefinitionId); err != nil { return err } } - if v.LoggerDefinitionVersionId == nil { + if v.LoggerDefinitionVersionId == nil || len(*v.LoggerDefinitionVersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionVersionId must not be empty")} } if v.LoggerDefinitionVersionId != nil { - if len(*v.LoggerDefinitionVersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionVersionId must not be empty")} - } if err := encoder.SetURI("LoggerDefinitionVersionId").String(*v.LoggerDefinitionVersionId); err != nil { return err } @@ -4064,13 +3888,10 @@ func awsRestjson1_serializeOpHttpBindingsGetResourceDefinitionInput(v *GetResour return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceDefinitionId == nil { + if v.ResourceDefinitionId == nil || len(*v.ResourceDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionId must not be empty")} } if v.ResourceDefinitionId != nil { - if len(*v.ResourceDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionId must not be empty")} - } if err := encoder.SetURI("ResourceDefinitionId").String(*v.ResourceDefinitionId); err != nil { return err } @@ -4130,25 +3951,19 @@ func awsRestjson1_serializeOpHttpBindingsGetResourceDefinitionVersionInput(v *Ge return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceDefinitionId == nil { + if v.ResourceDefinitionId == nil || len(*v.ResourceDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionId must not be empty")} } if v.ResourceDefinitionId != nil { - if len(*v.ResourceDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionId must not be empty")} - } if err := encoder.SetURI("ResourceDefinitionId").String(*v.ResourceDefinitionId); err != nil { return err } } - if v.ResourceDefinitionVersionId == nil { + if v.ResourceDefinitionVersionId == nil || len(*v.ResourceDefinitionVersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionVersionId must not be empty")} } if v.ResourceDefinitionVersionId != nil { - if len(*v.ResourceDefinitionVersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionVersionId must not be empty")} - } if err := encoder.SetURI("ResourceDefinitionVersionId").String(*v.ResourceDefinitionVersionId); err != nil { return err } @@ -4258,13 +4073,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSubscriptionDefinitionInput(v *GetSu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SubscriptionDefinitionId == nil { + if v.SubscriptionDefinitionId == nil || len(*v.SubscriptionDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionId must not be empty")} } if v.SubscriptionDefinitionId != nil { - if len(*v.SubscriptionDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionId must not be empty")} - } if err := encoder.SetURI("SubscriptionDefinitionId").String(*v.SubscriptionDefinitionId); err != nil { return err } @@ -4328,25 +4140,19 @@ func awsRestjson1_serializeOpHttpBindingsGetSubscriptionDefinitionVersionInput(v encoder.SetQuery("NextToken").String(*v.NextToken) } - if v.SubscriptionDefinitionId == nil { + if v.SubscriptionDefinitionId == nil || len(*v.SubscriptionDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionId must not be empty")} } if v.SubscriptionDefinitionId != nil { - if len(*v.SubscriptionDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionId must not be empty")} - } if err := encoder.SetURI("SubscriptionDefinitionId").String(*v.SubscriptionDefinitionId); err != nil { return err } } - if v.SubscriptionDefinitionVersionId == nil { + if v.SubscriptionDefinitionVersionId == nil || len(*v.SubscriptionDefinitionVersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionVersionId must not be empty")} } if v.SubscriptionDefinitionVersionId != nil { - if len(*v.SubscriptionDefinitionVersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionVersionId must not be empty")} - } if err := encoder.SetURI("SubscriptionDefinitionVersionId").String(*v.SubscriptionDefinitionVersionId); err != nil { return err } @@ -4406,13 +4212,10 @@ func awsRestjson1_serializeOpHttpBindingsGetThingRuntimeConfigurationInput(v *Ge return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ThingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThingName must not be empty")} - } if err := encoder.SetURI("ThingName").String(*v.ThingName); err != nil { return err } @@ -4472,13 +4275,10 @@ func awsRestjson1_serializeOpHttpBindingsListBulkDeploymentDetailedReportsInput( return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BulkDeploymentId == nil { + if v.BulkDeploymentId == nil || len(*v.BulkDeploymentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BulkDeploymentId must not be empty")} } if v.BulkDeploymentId != nil { - if len(*v.BulkDeploymentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BulkDeploymentId must not be empty")} - } if err := encoder.SetURI("BulkDeploymentId").String(*v.BulkDeploymentId); err != nil { return err } @@ -4670,13 +4470,10 @@ func awsRestjson1_serializeOpHttpBindingsListConnectorDefinitionVersionsInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConnectorDefinitionId == nil { + if v.ConnectorDefinitionId == nil || len(*v.ConnectorDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionId must not be empty")} } if v.ConnectorDefinitionId != nil { - if len(*v.ConnectorDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionId must not be empty")} - } if err := encoder.SetURI("ConnectorDefinitionId").String(*v.ConnectorDefinitionId); err != nil { return err } @@ -4806,13 +4603,10 @@ func awsRestjson1_serializeOpHttpBindingsListCoreDefinitionVersionsInput(v *List return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CoreDefinitionId == nil { + if v.CoreDefinitionId == nil || len(*v.CoreDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionId must not be empty")} } if v.CoreDefinitionId != nil { - if len(*v.CoreDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionId must not be empty")} - } if err := encoder.SetURI("CoreDefinitionId").String(*v.CoreDefinitionId); err != nil { return err } @@ -4880,13 +4674,10 @@ func awsRestjson1_serializeOpHttpBindingsListDeploymentsInput(v *ListDeployments return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -5016,13 +4807,10 @@ func awsRestjson1_serializeOpHttpBindingsListDeviceDefinitionVersionsInput(v *Li return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceDefinitionId == nil { + if v.DeviceDefinitionId == nil || len(*v.DeviceDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionId must not be empty")} } if v.DeviceDefinitionId != nil { - if len(*v.DeviceDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionId must not be empty")} - } if err := encoder.SetURI("DeviceDefinitionId").String(*v.DeviceDefinitionId); err != nil { return err } @@ -5152,13 +4940,10 @@ func awsRestjson1_serializeOpHttpBindingsListFunctionDefinitionVersionsInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionDefinitionId == nil { + if v.FunctionDefinitionId == nil || len(*v.FunctionDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionId must not be empty")} } if v.FunctionDefinitionId != nil { - if len(*v.FunctionDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionId must not be empty")} - } if err := encoder.SetURI("FunctionDefinitionId").String(*v.FunctionDefinitionId); err != nil { return err } @@ -5226,13 +5011,10 @@ func awsRestjson1_serializeOpHttpBindingsListGroupCertificateAuthoritiesInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -5354,13 +5136,10 @@ func awsRestjson1_serializeOpHttpBindingsListGroupVersionsInput(v *ListGroupVers return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -5490,13 +5269,10 @@ func awsRestjson1_serializeOpHttpBindingsListLoggerDefinitionVersionsInput(v *Li return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LoggerDefinitionId == nil { + if v.LoggerDefinitionId == nil || len(*v.LoggerDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionId must not be empty")} } if v.LoggerDefinitionId != nil { - if len(*v.LoggerDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionId must not be empty")} - } if err := encoder.SetURI("LoggerDefinitionId").String(*v.LoggerDefinitionId); err != nil { return err } @@ -5634,13 +5410,10 @@ func awsRestjson1_serializeOpHttpBindingsListResourceDefinitionVersionsInput(v * encoder.SetQuery("NextToken").String(*v.NextToken) } - if v.ResourceDefinitionId == nil { + if v.ResourceDefinitionId == nil || len(*v.ResourceDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionId must not be empty")} } if v.ResourceDefinitionId != nil { - if len(*v.ResourceDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionId must not be empty")} - } if err := encoder.SetURI("ResourceDefinitionId").String(*v.ResourceDefinitionId); err != nil { return err } @@ -5770,13 +5543,10 @@ func awsRestjson1_serializeOpHttpBindingsListSubscriptionDefinitionVersionsInput encoder.SetQuery("NextToken").String(*v.NextToken) } - if v.SubscriptionDefinitionId == nil { + if v.SubscriptionDefinitionId == nil || len(*v.SubscriptionDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionId must not be empty")} } if v.SubscriptionDefinitionId != nil { - if len(*v.SubscriptionDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionId must not be empty")} - } if err := encoder.SetURI("SubscriptionDefinitionId").String(*v.SubscriptionDefinitionId); err != nil { return err } @@ -5836,13 +5606,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -5913,20 +5680,15 @@ func awsRestjson1_serializeOpHttpBindingsResetDeploymentsInput(v *ResetDeploymen return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -5939,9 +5701,9 @@ func awsRestjson1_serializeOpDocumentResetDeploymentsInput(v *ResetDeploymentsIn object := value.Object() defer object.Close() - if v.Force != nil { + if v.Force { ok := object.Key("Force") - ok.Boolean(*v.Force) + ok.Boolean(v.Force) } return nil @@ -6009,11 +5771,9 @@ func awsRestjson1_serializeOpHttpBindingsStartBulkDeploymentInput(v *StartBulkDe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AmznClientToken != nil { + if v.AmznClientToken != nil && len(*v.AmznClientToken) > 0 { locationName := "X-Amzn-Client-Token" - if len(*v.AmznClientToken) > 0 { - encoder.SetHeader(locationName).String(*v.AmznClientToken) - } + encoder.SetHeader(locationName).String(*v.AmznClientToken) } return nil @@ -6094,13 +5854,10 @@ func awsRestjson1_serializeOpHttpBindingsStopBulkDeploymentInput(v *StopBulkDepl return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BulkDeploymentId == nil { + if v.BulkDeploymentId == nil || len(*v.BulkDeploymentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BulkDeploymentId must not be empty")} } if v.BulkDeploymentId != nil { - if len(*v.BulkDeploymentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BulkDeploymentId must not be empty")} - } if err := encoder.SetURI("BulkDeploymentId").String(*v.BulkDeploymentId); err != nil { return err } @@ -6171,13 +5928,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -6251,13 +6005,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -6265,10 +6016,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -6337,13 +6085,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateConnectivityInfoInput(v *UpdateCo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ThingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThingName must not be empty")} - } if err := encoder.SetURI("ThingName").String(*v.ThingName); err != nil { return err } @@ -6428,13 +6173,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateConnectorDefinitionInput(v *Updat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConnectorDefinitionId == nil { + if v.ConnectorDefinitionId == nil || len(*v.ConnectorDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionId must not be empty")} } if v.ConnectorDefinitionId != nil { - if len(*v.ConnectorDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorDefinitionId must not be empty")} - } if err := encoder.SetURI("ConnectorDefinitionId").String(*v.ConnectorDefinitionId); err != nil { return err } @@ -6517,13 +6259,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateCoreDefinitionInput(v *UpdateCore return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CoreDefinitionId == nil { + if v.CoreDefinitionId == nil || len(*v.CoreDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionId must not be empty")} } if v.CoreDefinitionId != nil { - if len(*v.CoreDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CoreDefinitionId must not be empty")} - } if err := encoder.SetURI("CoreDefinitionId").String(*v.CoreDefinitionId); err != nil { return err } @@ -6606,13 +6345,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDeviceDefinitionInput(v *UpdateDe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceDefinitionId == nil { + if v.DeviceDefinitionId == nil || len(*v.DeviceDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionId must not be empty")} } if v.DeviceDefinitionId != nil { - if len(*v.DeviceDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceDefinitionId must not be empty")} - } if err := encoder.SetURI("DeviceDefinitionId").String(*v.DeviceDefinitionId); err != nil { return err } @@ -6695,13 +6431,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFunctionDefinitionInput(v *Update return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionDefinitionId == nil { + if v.FunctionDefinitionId == nil || len(*v.FunctionDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionId must not be empty")} } if v.FunctionDefinitionId != nil { - if len(*v.FunctionDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionDefinitionId must not be empty")} - } if err := encoder.SetURI("FunctionDefinitionId").String(*v.FunctionDefinitionId); err != nil { return err } @@ -6784,13 +6517,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateGroupInput(v *UpdateGroupInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -6873,13 +6603,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateGroupCertificateConfigurationInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GroupId == nil { + if v.GroupId == nil || len(*v.GroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} } if v.GroupId != nil { - if len(*v.GroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupId must not be empty")} - } if err := encoder.SetURI("GroupId").String(*v.GroupId); err != nil { return err } @@ -6962,13 +6689,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateLoggerDefinitionInput(v *UpdateLo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LoggerDefinitionId == nil { + if v.LoggerDefinitionId == nil || len(*v.LoggerDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionId must not be empty")} } if v.LoggerDefinitionId != nil { - if len(*v.LoggerDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LoggerDefinitionId must not be empty")} - } if err := encoder.SetURI("LoggerDefinitionId").String(*v.LoggerDefinitionId); err != nil { return err } @@ -7051,13 +6775,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateResourceDefinitionInput(v *Update return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceDefinitionId == nil { + if v.ResourceDefinitionId == nil || len(*v.ResourceDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionId must not be empty")} } if v.ResourceDefinitionId != nil { - if len(*v.ResourceDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceDefinitionId must not be empty")} - } if err := encoder.SetURI("ResourceDefinitionId").String(*v.ResourceDefinitionId); err != nil { return err } @@ -7140,13 +6861,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateSubscriptionDefinitionInput(v *Up return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SubscriptionDefinitionId == nil { + if v.SubscriptionDefinitionId == nil || len(*v.SubscriptionDefinitionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionId must not be empty")} } if v.SubscriptionDefinitionId != nil { - if len(*v.SubscriptionDefinitionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionDefinitionId must not be empty")} - } if err := encoder.SetURI("SubscriptionDefinitionId").String(*v.SubscriptionDefinitionId); err != nil { return err } @@ -7229,13 +6947,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateThingRuntimeConfigurationInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ThingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThingName must not be empty")} - } if err := encoder.SetURI("ThingName").String(*v.ThingName); err != nil { return err } @@ -7258,185 +6973,141 @@ func awsRestjson1_serializeOpDocumentUpdateThingRuntimeConfigurationInput(v *Upd return nil } -func awsRestjson1_serializeDocument__listOf__string(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOfConnectivityInfo(v []*types.ConnectivityInfo, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfConnectivityInfo(v []types.ConnectivityInfo, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentConnectivityInfo(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentConnectivityInfo(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfConnector(v []*types.Connector, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfConnector(v []types.Connector, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentConnector(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentConnector(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfCore(v []*types.Core, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfCore(v []types.Core, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCore(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCore(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfDevice(v []*types.Device, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfDevice(v []types.Device, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDevice(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDevice(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfFunction(v []*types.Function, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfFunction(v []types.Function, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentFunction(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFunction(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfLogger(v []*types.Logger, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfLogger(v []types.Logger, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentLogger(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentLogger(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfResource(v []*types.Resource, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfResource(v []types.Resource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentResource(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentResource(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfResourceAccessPolicy(v []*types.ResourceAccessPolicy, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfResourceAccessPolicy(v []types.ResourceAccessPolicy, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentResourceAccessPolicy(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentResourceAccessPolicy(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfSubscription(v []*types.Subscription, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfSubscription(v []types.Subscription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSubscription(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSubscription(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__mapOf__string(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__mapOf__string(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -7460,9 +7131,9 @@ func awsRestjson1_serializeDocumentConnectivityInfo(v *types.ConnectivityInfo, v ok.String(*v.Metadata) } - if v.PortNumber != nil { + if v.PortNumber != 0 { ok := object.Key("PortNumber") - ok.Integer(*v.PortNumber) + ok.Integer(v.PortNumber) } return nil @@ -7520,9 +7191,9 @@ func awsRestjson1_serializeDocumentCore(v *types.Core, value smithyjson.Value) e ok.String(*v.Id) } - if v.SyncShadow != nil { + if v.SyncShadow { ok := object.Key("SyncShadow") - ok.Boolean(*v.SyncShadow) + ok.Boolean(v.SyncShadow) } if v.ThingArn != nil { @@ -7561,9 +7232,9 @@ func awsRestjson1_serializeDocumentDevice(v *types.Device, value smithyjson.Valu ok.String(*v.Id) } - if v.SyncShadow != nil { + if v.SyncShadow { ok := object.Key("SyncShadow") - ok.Boolean(*v.SyncShadow) + ok.Boolean(v.SyncShadow) } if v.ThingArn != nil { @@ -7638,19 +7309,19 @@ func awsRestjson1_serializeDocumentFunctionConfiguration(v *types.FunctionConfig ok.String(*v.Executable) } - if v.MemorySize != nil { + if v.MemorySize != 0 { ok := object.Key("MemorySize") - ok.Integer(*v.MemorySize) + ok.Integer(v.MemorySize) } - if v.Pinned != nil { + if v.Pinned { ok := object.Key("Pinned") - ok.Boolean(*v.Pinned) + ok.Boolean(v.Pinned) } - if v.Timeout != nil { + if v.Timeout != 0 { ok := object.Key("Timeout") - ok.Integer(*v.Timeout) + ok.Integer(v.Timeout) } return nil @@ -7660,9 +7331,9 @@ func awsRestjson1_serializeDocumentFunctionConfigurationEnvironment(v *types.Fun object := value.Object() defer object.Close() - if v.AccessSysfs != nil { + if v.AccessSysfs { ok := object.Key("AccessSysfs") - ok.Boolean(*v.AccessSysfs) + ok.Boolean(v.AccessSysfs) } if v.Execution != nil { @@ -7766,14 +7437,14 @@ func awsRestjson1_serializeDocumentFunctionRunAsConfig(v *types.FunctionRunAsCon object := value.Object() defer object.Close() - if v.Gid != nil { + if v.Gid != 0 { ok := object.Key("Gid") - ok.Integer(*v.Gid) + ok.Integer(v.Gid) } - if v.Uid != nil { + if v.Uid != 0 { ok := object.Key("Uid") - ok.Integer(*v.Uid) + ok.Integer(v.Uid) } return nil @@ -7783,9 +7454,9 @@ func awsRestjson1_serializeDocumentGroupOwnerSetting(v *types.GroupOwnerSetting, object := value.Object() defer object.Close() - if v.AutoAddGroupOwner != nil { + if v.AutoAddGroupOwner { ok := object.Key("AutoAddGroupOwner") - ok.Boolean(*v.AutoAddGroupOwner) + ok.Boolean(v.AutoAddGroupOwner) } if v.GroupOwner != nil { @@ -7900,9 +7571,9 @@ func awsRestjson1_serializeDocumentLogger(v *types.Logger, value smithyjson.Valu ok.String(string(v.Level)) } - if v.Space != nil { + if v.Space != 0 { ok := object.Key("Space") - ok.Integer(*v.Space) + ok.Integer(v.Space) } if len(v.Type) > 0 { @@ -8149,17 +7820,13 @@ func awsRestjson1_serializeDocumentSubscriptionDefinitionVersion(v *types.Subscr return nil } -func awsRestjson1_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -8176,17 +7843,13 @@ func awsRestjson1_serializeDocumentTelemetryConfigurationUpdate(v *types.Telemet return nil } -func awsRestjson1_serializeDocumentUpdateTargets(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentUpdateTargets(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/greengrass/types/errors.go b/service/greengrass/types/errors.go index 58752cd269d..c03531d6bf4 100644 --- a/service/greengrass/types/errors.go +++ b/service/greengrass/types/errors.go @@ -11,7 +11,7 @@ import ( type BadRequestException struct { Message *string - ErrorDetails []*ErrorDetail + ErrorDetails []ErrorDetail } func (e *BadRequestException) Error() string { @@ -30,7 +30,7 @@ func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.Fau type InternalServerErrorException struct { Message *string - ErrorDetails []*ErrorDetail + ErrorDetails []ErrorDetail } func (e *InternalServerErrorException) Error() string { diff --git a/service/greengrass/types/types.go b/service/greengrass/types/types.go index cfe7cebdc8b..37b20293871 100644 --- a/service/greengrass/types/types.go +++ b/service/greengrass/types/types.go @@ -23,17 +23,17 @@ type BulkDeploymentMetrics struct { // this can occur if a group record from the input file uses an invalid format or // specifies a nonexistent group version, or if the execution role doesn't grant // permission to deploy a group or group version. - InvalidInputRecords *int32 + InvalidInputRecords int32 // The total number of group records from the input file that have been processed // so far, or attempted. - RecordsProcessed *int32 + RecordsProcessed int32 // The total number of deployment attempts that returned a retryable error. For // example, a retry is triggered if the attempt to deploy a group returns a // throttling error. ''StartBulkDeployment'' retries a group deployment up to five // times. - RetryAttempts *int32 + RetryAttempts int32 } // Information about an individual group deployment in a bulk deployment operation. @@ -56,7 +56,7 @@ type BulkDeploymentResult struct { DeploymentType DeploymentType // Details about the error. - ErrorDetails []*ErrorDetail + ErrorDetails []ErrorDetail // The error message for a failed deployment ErrorMessage *string @@ -78,7 +78,7 @@ type ConnectivityInfo struct { Metadata *string // The port of the Greengrass core. Usually 8883. - PortNumber *int32 + PortNumber int32 } // Information about a connector. Connectors run on the Greengrass core and contain @@ -99,7 +99,7 @@ type Connector struct { Id *string // The parameters or configuration that the connector uses. - Parameters map[string]*string + Parameters map[string]string } // Information about the connector definition version, which is a container for @@ -108,7 +108,7 @@ type ConnectorDefinitionVersion struct { // A list of references to connectors in this version, with their corresponding // configuration settings. - Connectors []*Connector + Connectors []Connector } // Information about a core. @@ -132,14 +132,14 @@ type Core struct { ThingArn *string // If true, the core's local shadow is automatically synced with the cloud. - SyncShadow *bool + SyncShadow bool } // Information about a core definition version. type CoreDefinitionVersion struct { // A list of cores in the core definition version. - Cores []*Core + Cores []Core } // Information about a definition. @@ -167,7 +167,7 @@ type DefinitionInformation struct { Name *string // Tag(s) attached to the resource arn. - Tags map[string]*string + Tags map[string]string } // Information about a deployment. @@ -210,14 +210,14 @@ type Device struct { ThingArn *string // If true, the device's local shadow will be automatically synced with the cloud. - SyncShadow *bool + SyncShadow bool } // Information about a device definition version. type DeviceDefinitionVersion struct { // A list of devices in the definition version. - Devices []*Device + Devices []Device } // Details about the error. @@ -266,16 +266,16 @@ type FunctionConfiguration struct { // The memory size, in KB, which the function requires. This setting is not // applicable and should be cleared when you run the Lambda function without // containerization. - MemorySize *int32 + MemorySize int32 // True if the function is pinned. Pinned means the function is long-lived and // starts when the core starts. - Pinned *bool + Pinned bool // The allowed function execution time, after which Lambda should terminate the // function. This timeout still applies to pinned Lambda functions for each // request. - Timeout *int32 + Timeout int32 } // The environment configuration of the function. @@ -284,7 +284,7 @@ type FunctionConfigurationEnvironment struct { // If true, the Lambda function is allowed to access the host's /sys folder. Use // this when the Lambda function needs to read device information from /sys. This // setting applies only when you run the Lambda function in a Greengrass container. - AccessSysfs *bool + AccessSysfs bool // Configuration related to executing the Lambda function Execution *FunctionExecutionConfig @@ -293,10 +293,10 @@ type FunctionConfigurationEnvironment struct { // will be granted access. A Lambda function can have at most 10 resources. // ResourceAccessPolicies apply only when you run the Lambda function in a // Greengrass container. - ResourceAccessPolicies []*ResourceAccessPolicy + ResourceAccessPolicies []ResourceAccessPolicy // Environment variables for the Lambda function's configuration. - Variables map[string]*string + Variables map[string]string } // The default configuration that applies to all Lambda functions in the group. @@ -334,7 +334,7 @@ type FunctionDefinitionVersion struct { DefaultConfig *FunctionDefaultConfig // A list of Lambda functions in this function definition version. - Functions []*Function + Functions []Function } // Configuration information that specifies how a Lambda function runs. @@ -365,10 +365,10 @@ type FunctionExecutionConfig struct { type FunctionRunAsConfig struct { // The group ID whose permissions are used to run a Lambda function. - Gid *int32 + Gid int32 // The user ID whose permissions are used to run a Lambda function. - Uid *int32 + Uid int32 } // Information about a certificate authority for a group. @@ -412,7 +412,7 @@ type GroupOwnerSetting struct { // If true, AWS IoT Greengrass automatically adds the specified Linux OS group // owner of the resource to the Lambda process privileges. Thus the Lambda process // will have the file access permissions of the added Linux group. - AutoAddGroupOwner *bool + AutoAddGroupOwner bool // The name of the Linux OS group whose privileges will be added to the Lambda // process. This field is optional. @@ -497,14 +497,14 @@ type Logger struct { // The amount of file space, in KB, to use if the local file system is used for // logging purposes. - Space *int32 + Space int32 } // Information about a logger definition version. type LoggerDefinitionVersion struct { // A list of loggers. - Loggers []*Logger + Loggers []Logger } // Information about a resource. @@ -571,7 +571,7 @@ type ResourceDataContainer struct { type ResourceDefinitionVersion struct { // A list of resources. - Resources []*Resource + Resources []Resource } // The owner setting for downloaded machine learning resources. @@ -637,7 +637,7 @@ type SecretsManagerSecretResourceData struct { // Optional. The staging labels whose values you want to make available on the // core, in addition to ''AWSCURRENT''. - AdditionalStagingLabelsToDownload []*string + AdditionalStagingLabelsToDownload []string } // Information about a subscription. @@ -674,7 +674,7 @@ type Subscription struct { type SubscriptionDefinitionVersion struct { // A list of subscriptions. - Subscriptions []*Subscription + Subscriptions []Subscription } // Configuration settings for running telemetry. diff --git a/service/greengrass/validators.go b/service/greengrass/validators.go index 4125652f531..83ff6219634 100644 --- a/service/greengrass/validators.go +++ b/service/greengrass/validators.go @@ -1930,13 +1930,13 @@ func addOpUpdateThingRuntimeConfigurationValidationMiddleware(stack *middleware. return stack.Initialize.Add(&validateOpUpdateThingRuntimeConfiguration{}, middleware.After) } -func validate__listOfConnector(v []*types.Connector) error { +func validate__listOfConnector(v []types.Connector) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfConnector"} for i := range v { - if err := validateConnector(v[i]); err != nil { + if err := validateConnector(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1947,13 +1947,13 @@ func validate__listOfConnector(v []*types.Connector) error { } } -func validate__listOfCore(v []*types.Core) error { +func validate__listOfCore(v []types.Core) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfCore"} for i := range v { - if err := validateCore(v[i]); err != nil { + if err := validateCore(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1964,13 +1964,13 @@ func validate__listOfCore(v []*types.Core) error { } } -func validate__listOfDevice(v []*types.Device) error { +func validate__listOfDevice(v []types.Device) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfDevice"} for i := range v { - if err := validateDevice(v[i]); err != nil { + if err := validateDevice(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1981,13 +1981,13 @@ func validate__listOfDevice(v []*types.Device) error { } } -func validate__listOfFunction(v []*types.Function) error { +func validate__listOfFunction(v []types.Function) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfFunction"} for i := range v { - if err := validateFunction(v[i]); err != nil { + if err := validateFunction(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1998,13 +1998,13 @@ func validate__listOfFunction(v []*types.Function) error { } } -func validate__listOfLogger(v []*types.Logger) error { +func validate__listOfLogger(v []types.Logger) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfLogger"} for i := range v { - if err := validateLogger(v[i]); err != nil { + if err := validateLogger(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2015,13 +2015,13 @@ func validate__listOfLogger(v []*types.Logger) error { } } -func validate__listOfResource(v []*types.Resource) error { +func validate__listOfResource(v []types.Resource) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfResource"} for i := range v { - if err := validateResource(v[i]); err != nil { + if err := validateResource(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2032,13 +2032,13 @@ func validate__listOfResource(v []*types.Resource) error { } } -func validate__listOfResourceAccessPolicy(v []*types.ResourceAccessPolicy) error { +func validate__listOfResourceAccessPolicy(v []types.ResourceAccessPolicy) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfResourceAccessPolicy"} for i := range v { - if err := validateResourceAccessPolicy(v[i]); err != nil { + if err := validateResourceAccessPolicy(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2049,13 +2049,13 @@ func validate__listOfResourceAccessPolicy(v []*types.ResourceAccessPolicy) error } } -func validate__listOfSubscription(v []*types.Subscription) error { +func validate__listOfSubscription(v []types.Subscription) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfSubscription"} for i := range v { - if err := validateSubscription(v[i]); err != nil { + if err := validateSubscription(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/groundstation/api_op_CreateConfig.go b/service/groundstation/api_op_CreateConfig.go index 5f6a6f103e4..72da3ec33d5 100644 --- a/service/groundstation/api_op_CreateConfig.go +++ b/service/groundstation/api_op_CreateConfig.go @@ -42,7 +42,7 @@ type CreateConfigInput struct { Name *string // Tags assigned to a Config. - Tags map[string]*string + Tags map[string]string } // diff --git a/service/groundstation/api_op_CreateDataflowEndpointGroup.go b/service/groundstation/api_op_CreateDataflowEndpointGroup.go index aa81e5bf7ae..0516d6b491c 100644 --- a/service/groundstation/api_op_CreateDataflowEndpointGroup.go +++ b/service/groundstation/api_op_CreateDataflowEndpointGroup.go @@ -37,10 +37,10 @@ type CreateDataflowEndpointGroupInput struct { // Endpoint details of each endpoint in the dataflow endpoint group. // // This member is required. - EndpointDetails []*types.EndpointDetails + EndpointDetails []types.EndpointDetails // Tags of a dataflow endpoint group. - Tags map[string]*string + Tags map[string]string } // diff --git a/service/groundstation/api_op_CreateMissionProfile.go b/service/groundstation/api_op_CreateMissionProfile.go index bee8260a0e5..6b09a9bb6e9 100644 --- a/service/groundstation/api_op_CreateMissionProfile.go +++ b/service/groundstation/api_op_CreateMissionProfile.go @@ -34,14 +34,14 @@ type CreateMissionProfileInput struct { // to Config. // // This member is required. - DataflowEdges [][]*string + DataflowEdges [][]string // Smallest amount of time in seconds that you’d like to see for an available // contact. AWS Ground Station will not present you with contacts shorter than this // duration. // // This member is required. - MinimumViableContactDurationSeconds *int32 + MinimumViableContactDurationSeconds int32 // Name of a mission profile. // @@ -55,14 +55,14 @@ type CreateMissionProfileInput struct { // Amount of time after a contact ends that you’d like to receive a CloudWatch // event indicating the pass has finished. - ContactPostPassDurationSeconds *int32 + ContactPostPassDurationSeconds int32 // Amount of time prior to contact start you’d like to receive a CloudWatch event // indicating an upcoming pass. - ContactPrePassDurationSeconds *int32 + ContactPrePassDurationSeconds int32 // Tags assigned to a mission profile. - Tags map[string]*string + Tags map[string]string } // diff --git a/service/groundstation/api_op_DescribeContact.go b/service/groundstation/api_op_DescribeContact.go index bcef298fe28..9545d0b42f4 100644 --- a/service/groundstation/api_op_DescribeContact.go +++ b/service/groundstation/api_op_DescribeContact.go @@ -79,7 +79,7 @@ type DescribeContactOutput struct { StartTime *time.Time // Tags assigned to a contact. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/groundstation/api_op_GetConfig.go b/service/groundstation/api_op_GetConfig.go index 036ef3fc40e..1cc54dc7223 100644 --- a/service/groundstation/api_op_GetConfig.go +++ b/service/groundstation/api_op_GetConfig.go @@ -68,7 +68,7 @@ type GetConfigOutput struct { ConfigType types.ConfigCapabilityType // Tags assigned to a Config. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/groundstation/api_op_GetDataflowEndpointGroup.go b/service/groundstation/api_op_GetDataflowEndpointGroup.go index d7b6a9a6fce..c4f136fd851 100644 --- a/service/groundstation/api_op_GetDataflowEndpointGroup.go +++ b/service/groundstation/api_op_GetDataflowEndpointGroup.go @@ -46,10 +46,10 @@ type GetDataflowEndpointGroupOutput struct { DataflowEndpointGroupId *string // Details of a dataflow endpoint. - EndpointsDetails []*types.EndpointDetails + EndpointsDetails []types.EndpointDetails // Tags assigned to a dataflow endpoint group. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/groundstation/api_op_GetMissionProfile.go b/service/groundstation/api_op_GetMissionProfile.go index 832205d176b..3b7b608333b 100644 --- a/service/groundstation/api_op_GetMissionProfile.go +++ b/service/groundstation/api_op_GetMissionProfile.go @@ -40,20 +40,20 @@ type GetMissionProfileOutput struct { // Amount of time after a contact ends that you’d like to receive a CloudWatch // event indicating the pass has finished. - ContactPostPassDurationSeconds *int32 + ContactPostPassDurationSeconds int32 // Amount of time prior to contact start you’d like to receive a CloudWatch event // indicating an upcoming pass. - ContactPrePassDurationSeconds *int32 + ContactPrePassDurationSeconds int32 // A list of lists of ARNs. Each list of ARNs is an edge, with a from Config and a // to Config. - DataflowEdges [][]*string + DataflowEdges [][]string // Smallest amount of time in seconds that you’d like to see for an available // contact. AWS Ground Station will not present you with contacts shorter than this // duration. - MinimumViableContactDurationSeconds *int32 + MinimumViableContactDurationSeconds int32 // ARN of a mission profile. MissionProfileArn *string @@ -68,7 +68,7 @@ type GetMissionProfileOutput struct { Region *string // Tags assigned to a mission profile. - Tags map[string]*string + Tags map[string]string // ARN of a tracking Config. TrackingConfigArn *string diff --git a/service/groundstation/api_op_GetSatellite.go b/service/groundstation/api_op_GetSatellite.go index 64f41254b43..043c7b156f0 100644 --- a/service/groundstation/api_op_GetSatellite.go +++ b/service/groundstation/api_op_GetSatellite.go @@ -39,10 +39,10 @@ type GetSatelliteInput struct { type GetSatelliteOutput struct { // A list of ground stations to which the satellite is on-boarded. - GroundStations []*string + GroundStations []string // NORAD satellite ID number. - NoradSatelliteID *int32 + NoradSatelliteID int32 // ARN of a satellite. SatelliteArn *string diff --git a/service/groundstation/api_op_ListConfigs.go b/service/groundstation/api_op_ListConfigs.go index 605c8c7c806..8b200cd909d 100644 --- a/service/groundstation/api_op_ListConfigs.go +++ b/service/groundstation/api_op_ListConfigs.go @@ -42,7 +42,7 @@ type ListConfigsInput struct { type ListConfigsOutput struct { // List of Config items. - ConfigList []*types.ConfigListItem + ConfigList []types.ConfigListItem // Next token returned in the response of a previous ListConfigs call. Used to get // the next page of results. diff --git a/service/groundstation/api_op_ListContacts.go b/service/groundstation/api_op_ListContacts.go index bfadd554f8f..e7f5b2f4375 100644 --- a/service/groundstation/api_op_ListContacts.go +++ b/service/groundstation/api_op_ListContacts.go @@ -68,7 +68,7 @@ type ListContactsInput struct { type ListContactsOutput struct { // List of contacts. - ContactList []*types.ContactData + ContactList []types.ContactData // Next token returned in the response of a previous ListContacts call. Used to get // the next page of results. diff --git a/service/groundstation/api_op_ListDataflowEndpointGroups.go b/service/groundstation/api_op_ListDataflowEndpointGroups.go index e8ec828bde6..3e9b84d1c48 100644 --- a/service/groundstation/api_op_ListDataflowEndpointGroups.go +++ b/service/groundstation/api_op_ListDataflowEndpointGroups.go @@ -42,7 +42,7 @@ type ListDataflowEndpointGroupsInput struct { type ListDataflowEndpointGroupsOutput struct { // A list of dataflow endpoint groups. - DataflowEndpointGroupList []*types.DataflowEndpointListItem + DataflowEndpointGroupList []types.DataflowEndpointListItem // Next token returned in the response of a previous ListDataflowEndpointGroups // call. Used to get the next page of results. diff --git a/service/groundstation/api_op_ListGroundStations.go b/service/groundstation/api_op_ListGroundStations.go index 09fe122bdab..b36f75aa1d2 100644 --- a/service/groundstation/api_op_ListGroundStations.go +++ b/service/groundstation/api_op_ListGroundStations.go @@ -45,7 +45,7 @@ type ListGroundStationsInput struct { type ListGroundStationsOutput struct { // List of ground stations. - GroundStationList []*types.GroundStationData + GroundStationList []types.GroundStationData // Next token that can be supplied in the next call to get the next page of ground // stations. diff --git a/service/groundstation/api_op_ListMissionProfiles.go b/service/groundstation/api_op_ListMissionProfiles.go index 9aa7f00c75f..5d8c672745f 100644 --- a/service/groundstation/api_op_ListMissionProfiles.go +++ b/service/groundstation/api_op_ListMissionProfiles.go @@ -42,7 +42,7 @@ type ListMissionProfilesInput struct { type ListMissionProfilesOutput struct { // List of mission profiles. - MissionProfileList []*types.MissionProfileListItem + MissionProfileList []types.MissionProfileListItem // Next token returned in the response of a previous ListMissionProfiles call. Used // to get the next page of results. diff --git a/service/groundstation/api_op_ListSatellites.go b/service/groundstation/api_op_ListSatellites.go index 7e4b656665f..256ee264375 100644 --- a/service/groundstation/api_op_ListSatellites.go +++ b/service/groundstation/api_op_ListSatellites.go @@ -46,7 +46,7 @@ type ListSatellitesOutput struct { NextToken *string // List of satellites. - Satellites []*types.SatelliteListItem + Satellites []types.SatelliteListItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/groundstation/api_op_ListTagsForResource.go b/service/groundstation/api_op_ListTagsForResource.go index 0d6f663c93d..f80142913b8 100644 --- a/service/groundstation/api_op_ListTagsForResource.go +++ b/service/groundstation/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // Tags assigned to a resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/groundstation/api_op_ReserveContact.go b/service/groundstation/api_op_ReserveContact.go index 2536c7cebc7..c00e378a3ac 100644 --- a/service/groundstation/api_op_ReserveContact.go +++ b/service/groundstation/api_op_ReserveContact.go @@ -56,7 +56,7 @@ type ReserveContactInput struct { StartTime *time.Time // Tags assigned to a contact. - Tags map[string]*string + Tags map[string]string } // diff --git a/service/groundstation/api_op_TagResource.go b/service/groundstation/api_op_TagResource.go index 59fb6c16036..7dfc419b962 100644 --- a/service/groundstation/api_op_TagResource.go +++ b/service/groundstation/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // Tags assigned to a resource. // // This member is required. - Tags map[string]*string + Tags map[string]string } // diff --git a/service/groundstation/api_op_UntagResource.go b/service/groundstation/api_op_UntagResource.go index 8d3fcc11a8c..e12cb9ed6ca 100644 --- a/service/groundstation/api_op_UntagResource.go +++ b/service/groundstation/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // Keys of a resource tag. // // This member is required. - TagKeys []*string + TagKeys []string } // diff --git a/service/groundstation/api_op_UpdateMissionProfile.go b/service/groundstation/api_op_UpdateMissionProfile.go index ea9bc2e0556..03fe23d3169 100644 --- a/service/groundstation/api_op_UpdateMissionProfile.go +++ b/service/groundstation/api_op_UpdateMissionProfile.go @@ -37,20 +37,20 @@ type UpdateMissionProfileInput struct { // Amount of time after a contact ends that you’d like to receive a CloudWatch // event indicating the pass has finished. - ContactPostPassDurationSeconds *int32 + ContactPostPassDurationSeconds int32 // Amount of time after a contact ends that you’d like to receive a CloudWatch // event indicating the pass has finished. - ContactPrePassDurationSeconds *int32 + ContactPrePassDurationSeconds int32 // A list of lists of ARNs. Each list of ARNs is an edge, with a from Config and a // to Config. - DataflowEdges [][]*string + DataflowEdges [][]string // Smallest amount of time in seconds that you’d like to see for an available // contact. AWS Ground Station will not present you with contacts shorter than this // duration. - MinimumViableContactDurationSeconds *int32 + MinimumViableContactDurationSeconds int32 // Name of a mission profile. Name *string diff --git a/service/groundstation/deserializers.go b/service/groundstation/deserializers.go index 2e7b406aec7..a765d1a271c 100644 --- a/service/groundstation/deserializers.go +++ b/service/groundstation/deserializers.go @@ -164,7 +164,7 @@ func awsRestjson1_deserializeOpDocumentCancelContactOutput(v **CancelContactOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContactId = &jtv + sv.ContactId = ptr.String(jtv) } default: @@ -324,7 +324,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigOutput(v **CreateConfigOutput if !ok { return fmt.Errorf("expected ConfigArn to be of type string, got %T instead", value) } - sv.ConfigArn = &jtv + sv.ConfigArn = ptr.String(jtv) } case "configId": @@ -333,7 +333,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigOutput(v **CreateConfigOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConfigId = &jtv + sv.ConfigId = ptr.String(jtv) } case "configType": @@ -499,7 +499,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataflowEndpointGroupOutput(v **Cre if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataflowEndpointGroupId = &jtv + sv.DataflowEndpointGroupId = ptr.String(jtv) } default: @@ -656,7 +656,7 @@ func awsRestjson1_deserializeOpDocumentCreateMissionProfileOutput(v **CreateMiss if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MissionProfileId = &jtv + sv.MissionProfileId = ptr.String(jtv) } default: @@ -813,7 +813,7 @@ func awsRestjson1_deserializeOpDocumentDeleteConfigOutput(v **DeleteConfigOutput if !ok { return fmt.Errorf("expected ConfigArn to be of type string, got %T instead", value) } - sv.ConfigArn = &jtv + sv.ConfigArn = ptr.String(jtv) } case "configId": @@ -822,7 +822,7 @@ func awsRestjson1_deserializeOpDocumentDeleteConfigOutput(v **DeleteConfigOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConfigId = &jtv + sv.ConfigId = ptr.String(jtv) } case "configType": @@ -988,7 +988,7 @@ func awsRestjson1_deserializeOpDocumentDeleteDataflowEndpointGroupOutput(v **Del if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataflowEndpointGroupId = &jtv + sv.DataflowEndpointGroupId = ptr.String(jtv) } default: @@ -1145,7 +1145,7 @@ func awsRestjson1_deserializeOpDocumentDeleteMissionProfileOutput(v **DeleteMiss if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MissionProfileId = &jtv + sv.MissionProfileId = ptr.String(jtv) } default: @@ -1302,7 +1302,7 @@ func awsRestjson1_deserializeOpDocumentDescribeContactOutput(v **DescribeContact if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContactId = &jtv + sv.ContactId = ptr.String(jtv) } case "contactStatus": @@ -1333,7 +1333,7 @@ func awsRestjson1_deserializeOpDocumentDescribeContactOutput(v **DescribeContact if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "groundStation": @@ -1342,7 +1342,7 @@ func awsRestjson1_deserializeOpDocumentDescribeContactOutput(v **DescribeContact if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GroundStation = &jtv + sv.GroundStation = ptr.String(jtv) } case "maximumElevation": @@ -1356,7 +1356,7 @@ func awsRestjson1_deserializeOpDocumentDescribeContactOutput(v **DescribeContact if !ok { return fmt.Errorf("expected MissionProfileArn to be of type string, got %T instead", value) } - sv.MissionProfileArn = &jtv + sv.MissionProfileArn = ptr.String(jtv) } case "postPassEndTime": @@ -1391,7 +1391,7 @@ func awsRestjson1_deserializeOpDocumentDescribeContactOutput(v **DescribeContact if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "satelliteArn": @@ -1400,7 +1400,7 @@ func awsRestjson1_deserializeOpDocumentDescribeContactOutput(v **DescribeContact if !ok { return fmt.Errorf("expected satelliteArn to be of type string, got %T instead", value) } - sv.SatelliteArn = &jtv + sv.SatelliteArn = ptr.String(jtv) } case "startTime": @@ -1575,7 +1575,7 @@ func awsRestjson1_deserializeOpDocumentGetConfigOutput(v **GetConfigOutput, valu if !ok { return fmt.Errorf("expected ConfigArn to be of type string, got %T instead", value) } - sv.ConfigArn = &jtv + sv.ConfigArn = ptr.String(jtv) } case "configData": @@ -1589,7 +1589,7 @@ func awsRestjson1_deserializeOpDocumentGetConfigOutput(v **GetConfigOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConfigId = &jtv + sv.ConfigId = ptr.String(jtv) } case "configType": @@ -1607,7 +1607,7 @@ func awsRestjson1_deserializeOpDocumentGetConfigOutput(v **GetConfigOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -1769,7 +1769,7 @@ func awsRestjson1_deserializeOpDocumentGetDataflowEndpointGroupOutput(v **GetDat if !ok { return fmt.Errorf("expected DataflowEndpointGroupArn to be of type string, got %T instead", value) } - sv.DataflowEndpointGroupArn = &jtv + sv.DataflowEndpointGroupArn = ptr.String(jtv) } case "dataflowEndpointGroupId": @@ -1778,7 +1778,7 @@ func awsRestjson1_deserializeOpDocumentGetDataflowEndpointGroupOutput(v **GetDat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataflowEndpointGroupId = &jtv + sv.DataflowEndpointGroupId = ptr.String(jtv) } case "endpointsDetails": @@ -1958,7 +1958,7 @@ func awsRestjson1_deserializeOpDocumentGetMinuteUsageOutput(v **GetMinuteUsageOu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsReservedMinutesCustomer = &jtv + sv.IsReservedMinutesCustomer = ptr.Bool(jtv) } case "totalReservedMinuteAllocation": @@ -2158,7 +2158,7 @@ func awsRestjson1_deserializeOpDocumentGetMissionProfileOutput(v **GetMissionPro if err != nil { return err } - sv.ContactPostPassDurationSeconds = ptr.Int32(int32(i64)) + sv.ContactPostPassDurationSeconds = int32(i64) } case "contactPrePassDurationSeconds": @@ -2171,7 +2171,7 @@ func awsRestjson1_deserializeOpDocumentGetMissionProfileOutput(v **GetMissionPro if err != nil { return err } - sv.ContactPrePassDurationSeconds = ptr.Int32(int32(i64)) + sv.ContactPrePassDurationSeconds = int32(i64) } case "dataflowEdges": @@ -2189,7 +2189,7 @@ func awsRestjson1_deserializeOpDocumentGetMissionProfileOutput(v **GetMissionPro if err != nil { return err } - sv.MinimumViableContactDurationSeconds = ptr.Int32(int32(i64)) + sv.MinimumViableContactDurationSeconds = int32(i64) } case "missionProfileArn": @@ -2198,7 +2198,7 @@ func awsRestjson1_deserializeOpDocumentGetMissionProfileOutput(v **GetMissionPro if !ok { return fmt.Errorf("expected MissionProfileArn to be of type string, got %T instead", value) } - sv.MissionProfileArn = &jtv + sv.MissionProfileArn = ptr.String(jtv) } case "missionProfileId": @@ -2207,7 +2207,7 @@ func awsRestjson1_deserializeOpDocumentGetMissionProfileOutput(v **GetMissionPro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MissionProfileId = &jtv + sv.MissionProfileId = ptr.String(jtv) } case "name": @@ -2216,7 +2216,7 @@ func awsRestjson1_deserializeOpDocumentGetMissionProfileOutput(v **GetMissionPro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "region": @@ -2225,7 +2225,7 @@ func awsRestjson1_deserializeOpDocumentGetMissionProfileOutput(v **GetMissionPro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "tags": @@ -2239,7 +2239,7 @@ func awsRestjson1_deserializeOpDocumentGetMissionProfileOutput(v **GetMissionPro if !ok { return fmt.Errorf("expected ConfigArn to be of type string, got %T instead", value) } - sv.TrackingConfigArn = &jtv + sv.TrackingConfigArn = ptr.String(jtv) } default: @@ -2405,7 +2405,7 @@ func awsRestjson1_deserializeOpDocumentGetSatelliteOutput(v **GetSatelliteOutput if err != nil { return err } - sv.NoradSatelliteID = ptr.Int32(int32(i64)) + sv.NoradSatelliteID = int32(i64) } case "satelliteArn": @@ -2414,7 +2414,7 @@ func awsRestjson1_deserializeOpDocumentGetSatelliteOutput(v **GetSatelliteOutput if !ok { return fmt.Errorf("expected satelliteArn to be of type string, got %T instead", value) } - sv.SatelliteArn = &jtv + sv.SatelliteArn = ptr.String(jtv) } case "satelliteId": @@ -2423,7 +2423,7 @@ func awsRestjson1_deserializeOpDocumentGetSatelliteOutput(v **GetSatelliteOutput if !ok { return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.SatelliteId = &jtv + sv.SatelliteId = ptr.String(jtv) } default: @@ -2585,7 +2585,7 @@ func awsRestjson1_deserializeOpDocumentListConfigsOutput(v **ListConfigsOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2747,7 +2747,7 @@ func awsRestjson1_deserializeOpDocumentListContactsOutput(v **ListContactsOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2909,7 +2909,7 @@ func awsRestjson1_deserializeOpDocumentListDataflowEndpointGroupsOutput(v **List if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3071,7 +3071,7 @@ func awsRestjson1_deserializeOpDocumentListGroundStationsOutput(v **ListGroundSt if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3233,7 +3233,7 @@ func awsRestjson1_deserializeOpDocumentListMissionProfilesOutput(v **ListMission if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3390,7 +3390,7 @@ func awsRestjson1_deserializeOpDocumentListSatellitesOutput(v **ListSatellitesOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "satellites": @@ -3705,7 +3705,7 @@ func awsRestjson1_deserializeOpDocumentReserveContactOutput(v **ReserveContactOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContactId = &jtv + sv.ContactId = ptr.String(jtv) } default: @@ -4040,7 +4040,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigOutput(v **UpdateConfigOutput if !ok { return fmt.Errorf("expected ConfigArn to be of type string, got %T instead", value) } - sv.ConfigArn = &jtv + sv.ConfigArn = ptr.String(jtv) } case "configId": @@ -4049,7 +4049,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigOutput(v **UpdateConfigOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConfigId = &jtv + sv.ConfigId = ptr.String(jtv) } case "configType": @@ -4215,7 +4215,7 @@ func awsRestjson1_deserializeOpDocumentUpdateMissionProfileOutput(v **UpdateMiss if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MissionProfileId = &jtv + sv.MissionProfileId = ptr.String(jtv) } default: @@ -4491,7 +4491,7 @@ func awsRestjson1_deserializeDocumentAntennaUplinkConfig(v **types.AntennaUplink if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.TransmitDisabled = &jtv + sv.TransmitDisabled = ptr.Bool(jtv) } default: @@ -4503,7 +4503,7 @@ func awsRestjson1_deserializeDocumentAntennaUplinkConfig(v **types.AntennaUplink return nil } -func awsRestjson1_deserializeDocumentConfigList(v *[]*types.ConfigListItem, value interface{}) error { +func awsRestjson1_deserializeDocumentConfigList(v *[]types.ConfigListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4516,18 +4516,20 @@ func awsRestjson1_deserializeDocumentConfigList(v *[]*types.ConfigListItem, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfigListItem + var cv []types.ConfigListItem if *v == nil { - cv = []*types.ConfigListItem{} + cv = []types.ConfigListItem{} } else { cv = *v } for _, value := range shape { - var col *types.ConfigListItem - if err := awsRestjson1_deserializeDocumentConfigListItem(&col, value); err != nil { + var col types.ConfigListItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentConfigListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4563,7 +4565,7 @@ func awsRestjson1_deserializeDocumentConfigListItem(v **types.ConfigListItem, va if !ok { return fmt.Errorf("expected ConfigArn to be of type string, got %T instead", value) } - sv.ConfigArn = &jtv + sv.ConfigArn = ptr.String(jtv) } case "configId": @@ -4572,7 +4574,7 @@ func awsRestjson1_deserializeDocumentConfigListItem(v **types.ConfigListItem, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConfigId = &jtv + sv.ConfigId = ptr.String(jtv) } case "configType": @@ -4590,7 +4592,7 @@ func awsRestjson1_deserializeDocumentConfigListItem(v **types.ConfigListItem, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -4620,50 +4622,62 @@ loop: for key, value := range shape { switch key { case "antennaDownlinkConfig": - var mv *types.AntennaDownlinkConfig - if err := awsRestjson1_deserializeDocumentAntennaDownlinkConfig(&mv, value); err != nil { + var mv types.AntennaDownlinkConfig + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAntennaDownlinkConfig(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ConfigTypeDataMemberAntennaDownlinkConfig{Value: mv} break loop case "antennaDownlinkDemodDecodeConfig": - var mv *types.AntennaDownlinkDemodDecodeConfig - if err := awsRestjson1_deserializeDocumentAntennaDownlinkDemodDecodeConfig(&mv, value); err != nil { + var mv types.AntennaDownlinkDemodDecodeConfig + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAntennaDownlinkDemodDecodeConfig(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ConfigTypeDataMemberAntennaDownlinkDemodDecodeConfig{Value: mv} break loop case "antennaUplinkConfig": - var mv *types.AntennaUplinkConfig - if err := awsRestjson1_deserializeDocumentAntennaUplinkConfig(&mv, value); err != nil { + var mv types.AntennaUplinkConfig + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAntennaUplinkConfig(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ConfigTypeDataMemberAntennaUplinkConfig{Value: mv} break loop case "dataflowEndpointConfig": - var mv *types.DataflowEndpointConfig - if err := awsRestjson1_deserializeDocumentDataflowEndpointConfig(&mv, value); err != nil { + var mv types.DataflowEndpointConfig + destAddr := &mv + if err := awsRestjson1_deserializeDocumentDataflowEndpointConfig(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ConfigTypeDataMemberDataflowEndpointConfig{Value: mv} break loop case "trackingConfig": - var mv *types.TrackingConfig - if err := awsRestjson1_deserializeDocumentTrackingConfig(&mv, value); err != nil { + var mv types.TrackingConfig + destAddr := &mv + if err := awsRestjson1_deserializeDocumentTrackingConfig(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ConfigTypeDataMemberTrackingConfig{Value: mv} break loop case "uplinkEchoConfig": - var mv *types.UplinkEchoConfig - if err := awsRestjson1_deserializeDocumentUplinkEchoConfig(&mv, value); err != nil { + var mv types.UplinkEchoConfig + destAddr := &mv + if err := awsRestjson1_deserializeDocumentUplinkEchoConfig(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ConfigTypeDataMemberUplinkEchoConfig{Value: mv} break loop @@ -4707,7 +4721,7 @@ func awsRestjson1_deserializeDocumentContactData(v **types.ContactData, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ContactId = &jtv + sv.ContactId = ptr.String(jtv) } case "contactStatus": @@ -4738,7 +4752,7 @@ func awsRestjson1_deserializeDocumentContactData(v **types.ContactData, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "groundStation": @@ -4747,7 +4761,7 @@ func awsRestjson1_deserializeDocumentContactData(v **types.ContactData, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GroundStation = &jtv + sv.GroundStation = ptr.String(jtv) } case "maximumElevation": @@ -4761,7 +4775,7 @@ func awsRestjson1_deserializeDocumentContactData(v **types.ContactData, value in if !ok { return fmt.Errorf("expected MissionProfileArn to be of type string, got %T instead", value) } - sv.MissionProfileArn = &jtv + sv.MissionProfileArn = ptr.String(jtv) } case "postPassEndTime": @@ -4796,7 +4810,7 @@ func awsRestjson1_deserializeDocumentContactData(v **types.ContactData, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "satelliteArn": @@ -4805,7 +4819,7 @@ func awsRestjson1_deserializeDocumentContactData(v **types.ContactData, value in if !ok { return fmt.Errorf("expected satelliteArn to be of type string, got %T instead", value) } - sv.SatelliteArn = &jtv + sv.SatelliteArn = ptr.String(jtv) } case "startTime": @@ -4835,7 +4849,7 @@ func awsRestjson1_deserializeDocumentContactData(v **types.ContactData, value in return nil } -func awsRestjson1_deserializeDocumentContactList(v *[]*types.ContactData, value interface{}) error { +func awsRestjson1_deserializeDocumentContactList(v *[]types.ContactData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4848,18 +4862,20 @@ func awsRestjson1_deserializeDocumentContactList(v *[]*types.ContactData, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContactData + var cv []types.ContactData if *v == nil { - cv = []*types.ContactData{} + cv = []types.ContactData{} } else { cv = *v } for _, value := range shape { - var col *types.ContactData - if err := awsRestjson1_deserializeDocumentContactData(&col, value); err != nil { + var col types.ContactData + destAddr := &col + if err := awsRestjson1_deserializeDocumentContactData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4867,7 +4883,7 @@ func awsRestjson1_deserializeDocumentContactList(v *[]*types.ContactData, value return nil } -func awsRestjson1_deserializeDocumentDataflowEdge(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDataflowEdge(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4880,21 +4896,21 @@ func awsRestjson1_deserializeDocumentDataflowEdge(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ConfigArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4903,7 +4919,7 @@ func awsRestjson1_deserializeDocumentDataflowEdge(v *[]*string, value interface{ return nil } -func awsRestjson1_deserializeDocumentDataflowEdgeList(v *[][]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDataflowEdgeList(v *[][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4916,15 +4932,15 @@ func awsRestjson1_deserializeDocumentDataflowEdgeList(v *[][]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv [][]*string + var cv [][]string if *v == nil { - cv = [][]*string{} + cv = [][]string{} } else { cv = *v } for _, value := range shape { - var col []*string + var col []string if err := awsRestjson1_deserializeDocumentDataflowEdge(&col, value); err != nil { return err } @@ -4981,7 +4997,7 @@ func awsRestjson1_deserializeDocumentDataflowEndpoint(v **types.DataflowEndpoint if !ok { return fmt.Errorf("expected SafeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -5030,7 +5046,7 @@ func awsRestjson1_deserializeDocumentDataflowEndpointConfig(v **types.DataflowEn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataflowEndpointName = &jtv + sv.DataflowEndpointName = ptr.String(jtv) } case "dataflowEndpointRegion": @@ -5039,7 +5055,7 @@ func awsRestjson1_deserializeDocumentDataflowEndpointConfig(v **types.DataflowEn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataflowEndpointRegion = &jtv + sv.DataflowEndpointRegion = ptr.String(jtv) } default: @@ -5051,7 +5067,7 @@ func awsRestjson1_deserializeDocumentDataflowEndpointConfig(v **types.DataflowEn return nil } -func awsRestjson1_deserializeDocumentDataflowEndpointGroupList(v *[]*types.DataflowEndpointListItem, value interface{}) error { +func awsRestjson1_deserializeDocumentDataflowEndpointGroupList(v *[]types.DataflowEndpointListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5064,18 +5080,20 @@ func awsRestjson1_deserializeDocumentDataflowEndpointGroupList(v *[]*types.Dataf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataflowEndpointListItem + var cv []types.DataflowEndpointListItem if *v == nil { - cv = []*types.DataflowEndpointListItem{} + cv = []types.DataflowEndpointListItem{} } else { cv = *v } for _, value := range shape { - var col *types.DataflowEndpointListItem - if err := awsRestjson1_deserializeDocumentDataflowEndpointListItem(&col, value); err != nil { + var col types.DataflowEndpointListItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataflowEndpointListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5111,7 +5129,7 @@ func awsRestjson1_deserializeDocumentDataflowEndpointListItem(v **types.Dataflow if !ok { return fmt.Errorf("expected DataflowEndpointGroupArn to be of type string, got %T instead", value) } - sv.DataflowEndpointGroupArn = &jtv + sv.DataflowEndpointGroupArn = ptr.String(jtv) } case "dataflowEndpointGroupId": @@ -5120,7 +5138,7 @@ func awsRestjson1_deserializeDocumentDataflowEndpointListItem(v **types.Dataflow if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataflowEndpointGroupId = &jtv + sv.DataflowEndpointGroupId = ptr.String(jtv) } default: @@ -5160,7 +5178,7 @@ func awsRestjson1_deserializeDocumentDecodeConfig(v **types.DecodeConfig, value if !ok { return fmt.Errorf("expected JsonString to be of type string, got %T instead", value) } - sv.UnvalidatedJSON = &jtv + sv.UnvalidatedJSON = ptr.String(jtv) } default: @@ -5200,7 +5218,7 @@ func awsRestjson1_deserializeDocumentDemodulationConfig(v **types.DemodulationCo if !ok { return fmt.Errorf("expected JsonString to be of type string, got %T instead", value) } - sv.UnvalidatedJSON = &jtv + sv.UnvalidatedJSON = ptr.String(jtv) } default: @@ -5240,7 +5258,7 @@ func awsRestjson1_deserializeDocumentDependencyException(v **types.DependencyExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "parameterName": @@ -5249,7 +5267,7 @@ func awsRestjson1_deserializeDocumentDependencyException(v **types.DependencyExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParameterName = &jtv + sv.ParameterName = ptr.String(jtv) } default: @@ -5302,7 +5320,7 @@ func awsRestjson1_deserializeDocumentEirp(v **types.Eirp, value interface{}) err if err != nil { return err } - sv.Value = &f64 + sv.Value = ptr.Float64(f64) } default: @@ -5355,7 +5373,7 @@ func awsRestjson1_deserializeDocumentElevation(v **types.Elevation, value interf if err != nil { return err } - sv.Value = &f64 + sv.Value = ptr.Float64(f64) } default: @@ -5408,7 +5426,7 @@ func awsRestjson1_deserializeDocumentEndpointDetails(v **types.EndpointDetails, return nil } -func awsRestjson1_deserializeDocumentEndpointDetailsList(v *[]*types.EndpointDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentEndpointDetailsList(v *[]types.EndpointDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5421,18 +5439,20 @@ func awsRestjson1_deserializeDocumentEndpointDetailsList(v *[]*types.EndpointDet return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EndpointDetails + var cv []types.EndpointDetails if *v == nil { - cv = []*types.EndpointDetails{} + cv = []types.EndpointDetails{} } else { cv = *v } for _, value := range shape { - var col *types.EndpointDetails - if err := awsRestjson1_deserializeDocumentEndpointDetails(&col, value); err != nil { + var col types.EndpointDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentEndpointDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5481,7 +5501,7 @@ func awsRestjson1_deserializeDocumentFrequency(v **types.Frequency, value interf if err != nil { return err } - sv.Value = &f64 + sv.Value = ptr.Float64(f64) } default: @@ -5534,7 +5554,7 @@ func awsRestjson1_deserializeDocumentFrequencyBandwidth(v **types.FrequencyBandw if err != nil { return err } - sv.Value = &f64 + sv.Value = ptr.Float64(f64) } default: @@ -5574,7 +5594,7 @@ func awsRestjson1_deserializeDocumentGroundStationData(v **types.GroundStationDa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GroundStationId = &jtv + sv.GroundStationId = ptr.String(jtv) } case "groundStationName": @@ -5583,7 +5603,7 @@ func awsRestjson1_deserializeDocumentGroundStationData(v **types.GroundStationDa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GroundStationName = &jtv + sv.GroundStationName = ptr.String(jtv) } case "region": @@ -5592,7 +5612,7 @@ func awsRestjson1_deserializeDocumentGroundStationData(v **types.GroundStationDa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } default: @@ -5604,7 +5624,7 @@ func awsRestjson1_deserializeDocumentGroundStationData(v **types.GroundStationDa return nil } -func awsRestjson1_deserializeDocumentGroundStationIdList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentGroundStationIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5617,21 +5637,21 @@ func awsRestjson1_deserializeDocumentGroundStationIdList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -5640,7 +5660,7 @@ func awsRestjson1_deserializeDocumentGroundStationIdList(v *[]*string, value int return nil } -func awsRestjson1_deserializeDocumentGroundStationList(v *[]*types.GroundStationData, value interface{}) error { +func awsRestjson1_deserializeDocumentGroundStationList(v *[]types.GroundStationData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5653,18 +5673,20 @@ func awsRestjson1_deserializeDocumentGroundStationList(v *[]*types.GroundStation return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroundStationData + var cv []types.GroundStationData if *v == nil { - cv = []*types.GroundStationData{} + cv = []types.GroundStationData{} } else { cv = *v } for _, value := range shape { - var col *types.GroundStationData - if err := awsRestjson1_deserializeDocumentGroundStationData(&col, value); err != nil { + var col types.GroundStationData + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroundStationData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5700,7 +5722,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "parameterName": @@ -5709,7 +5731,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParameterName = &jtv + sv.ParameterName = ptr.String(jtv) } default: @@ -5721,7 +5743,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid return nil } -func awsRestjson1_deserializeDocumentMissionProfileList(v *[]*types.MissionProfileListItem, value interface{}) error { +func awsRestjson1_deserializeDocumentMissionProfileList(v *[]types.MissionProfileListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5734,18 +5756,20 @@ func awsRestjson1_deserializeDocumentMissionProfileList(v *[]*types.MissionProfi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MissionProfileListItem + var cv []types.MissionProfileListItem if *v == nil { - cv = []*types.MissionProfileListItem{} + cv = []types.MissionProfileListItem{} } else { cv = *v } for _, value := range shape { - var col *types.MissionProfileListItem - if err := awsRestjson1_deserializeDocumentMissionProfileListItem(&col, value); err != nil { + var col types.MissionProfileListItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentMissionProfileListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5781,7 +5805,7 @@ func awsRestjson1_deserializeDocumentMissionProfileListItem(v **types.MissionPro if !ok { return fmt.Errorf("expected MissionProfileArn to be of type string, got %T instead", value) } - sv.MissionProfileArn = &jtv + sv.MissionProfileArn = ptr.String(jtv) } case "missionProfileId": @@ -5790,7 +5814,7 @@ func awsRestjson1_deserializeDocumentMissionProfileListItem(v **types.MissionPro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MissionProfileId = &jtv + sv.MissionProfileId = ptr.String(jtv) } case "name": @@ -5799,7 +5823,7 @@ func awsRestjson1_deserializeDocumentMissionProfileListItem(v **types.MissionPro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "region": @@ -5808,7 +5832,7 @@ func awsRestjson1_deserializeDocumentMissionProfileListItem(v **types.MissionPro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } default: @@ -5848,7 +5872,7 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "parameterName": @@ -5857,7 +5881,7 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParameterName = &jtv + sv.ParameterName = ptr.String(jtv) } default: @@ -5897,7 +5921,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5909,7 +5933,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentSatelliteList(v *[]*types.SatelliteListItem, value interface{}) error { +func awsRestjson1_deserializeDocumentSatelliteList(v *[]types.SatelliteListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5922,18 +5946,20 @@ func awsRestjson1_deserializeDocumentSatelliteList(v *[]*types.SatelliteListItem return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SatelliteListItem + var cv []types.SatelliteListItem if *v == nil { - cv = []*types.SatelliteListItem{} + cv = []types.SatelliteListItem{} } else { cv = *v } for _, value := range shape { - var col *types.SatelliteListItem - if err := awsRestjson1_deserializeDocumentSatelliteListItem(&col, value); err != nil { + var col types.SatelliteListItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentSatelliteListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5978,7 +6004,7 @@ func awsRestjson1_deserializeDocumentSatelliteListItem(v **types.SatelliteListIt if err != nil { return err } - sv.NoradSatelliteID = ptr.Int32(int32(i64)) + sv.NoradSatelliteID = int32(i64) } case "satelliteArn": @@ -5987,7 +6013,7 @@ func awsRestjson1_deserializeDocumentSatelliteListItem(v **types.SatelliteListIt if !ok { return fmt.Errorf("expected satelliteArn to be of type string, got %T instead", value) } - sv.SatelliteArn = &jtv + sv.SatelliteArn = ptr.String(jtv) } case "satelliteId": @@ -5996,7 +6022,7 @@ func awsRestjson1_deserializeDocumentSatelliteListItem(v **types.SatelliteListIt if !ok { return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.SatelliteId = &jtv + sv.SatelliteId = ptr.String(jtv) } default: @@ -6036,7 +6062,7 @@ func awsRestjson1_deserializeDocumentSecurityDetails(v **types.SecurityDetails, if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "securityGroupIds": @@ -6058,7 +6084,7 @@ func awsRestjson1_deserializeDocumentSecurityDetails(v **types.SecurityDetails, return nil } -func awsRestjson1_deserializeDocumentSecurityGroupIdList(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) } @@ -6071,21 +6097,21 @@ func awsRestjson1_deserializeDocumentSecurityGroupIdList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -6122,7 +6148,7 @@ func awsRestjson1_deserializeDocumentSocketAddress(v **types.SocketAddress, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "port": @@ -6197,7 +6223,7 @@ func awsRestjson1_deserializeDocumentSpectrumConfig(v **types.SpectrumConfig, va return nil } -func awsRestjson1_deserializeDocumentSubnetList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSubnetList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6210,21 +6236,21 @@ func awsRestjson1_deserializeDocumentSubnetList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -6233,7 +6259,7 @@ func awsRestjson1_deserializeDocumentSubnetList(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentTagsMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6246,21 +6272,21 @@ func awsRestjson1_deserializeDocumentTagsMap(v *map[string]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -6337,7 +6363,7 @@ func awsRestjson1_deserializeDocumentUplinkEchoConfig(v **types.UplinkEchoConfig if !ok { return fmt.Errorf("expected ConfigArn to be of type string, got %T instead", value) } - sv.AntennaUplinkConfigArn = &jtv + sv.AntennaUplinkConfigArn = ptr.String(jtv) } case "enabled": @@ -6346,7 +6372,7 @@ func awsRestjson1_deserializeDocumentUplinkEchoConfig(v **types.UplinkEchoConfig if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } default: diff --git a/service/groundstation/go.mod b/service/groundstation/go.mod index 459efa6e3bb..c643a658f73 100644 --- a/service/groundstation/go.mod +++ b/service/groundstation/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/groundstation go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/groundstation/serializers.go b/service/groundstation/serializers.go index b87f2b95b3b..52ce6992a76 100644 --- a/service/groundstation/serializers.go +++ b/service/groundstation/serializers.go @@ -66,13 +66,10 @@ func awsRestjson1_serializeOpHttpBindingsCancelContactInput(v *CancelContactInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContactId == nil { + if v.ContactId == nil || len(*v.ContactId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member contactId must not be empty")} } if v.ContactId != nil { - if len(*v.ContactId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member contactId must not be empty")} - } if err := encoder.SetURI("contactId").String(*v.ContactId); err != nil { return err } @@ -315,14 +312,14 @@ func awsRestjson1_serializeOpDocumentCreateMissionProfileInput(v *CreateMissionP object := value.Object() defer object.Close() - if v.ContactPostPassDurationSeconds != nil { + if v.ContactPostPassDurationSeconds != 0 { ok := object.Key("contactPostPassDurationSeconds") - ok.Integer(*v.ContactPostPassDurationSeconds) + ok.Integer(v.ContactPostPassDurationSeconds) } - if v.ContactPrePassDurationSeconds != nil { + if v.ContactPrePassDurationSeconds != 0 { ok := object.Key("contactPrePassDurationSeconds") - ok.Integer(*v.ContactPrePassDurationSeconds) + ok.Integer(v.ContactPrePassDurationSeconds) } if v.DataflowEdges != nil { @@ -332,9 +329,9 @@ func awsRestjson1_serializeOpDocumentCreateMissionProfileInput(v *CreateMissionP } } - if v.MinimumViableContactDurationSeconds != nil { + if v.MinimumViableContactDurationSeconds != 0 { ok := object.Key("minimumViableContactDurationSeconds") - ok.Integer(*v.MinimumViableContactDurationSeconds) + ok.Integer(v.MinimumViableContactDurationSeconds) } if v.Name != nil { @@ -408,13 +405,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteConfigInput(v *DeleteConfigInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigId == nil { + if v.ConfigId == nil || len(*v.ConfigId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member configId must not be empty")} } if v.ConfigId != nil { - if len(*v.ConfigId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member configId must not be empty")} - } if err := encoder.SetURI("configId").String(*v.ConfigId); err != nil { return err } @@ -424,9 +418,6 @@ func awsRestjson1_serializeOpHttpBindingsDeleteConfigInput(v *DeleteConfigInput, return &smithy.SerializationError{Err: fmt.Errorf("input member configType must not be empty")} } if len(v.ConfigType) > 0 { - if len(string(v.ConfigType)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member configType must not be empty")} - } if err := encoder.SetURI("configType").String(string(v.ConfigType)); err != nil { return err } @@ -486,13 +477,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDataflowEndpointGroupInput(v *Del return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DataflowEndpointGroupId == nil { + if v.DataflowEndpointGroupId == nil || len(*v.DataflowEndpointGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member dataflowEndpointGroupId must not be empty")} } if v.DataflowEndpointGroupId != nil { - if len(*v.DataflowEndpointGroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member dataflowEndpointGroupId must not be empty")} - } if err := encoder.SetURI("dataflowEndpointGroupId").String(*v.DataflowEndpointGroupId); err != nil { return err } @@ -552,13 +540,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMissionProfileInput(v *DeleteMiss return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MissionProfileId == nil { + if v.MissionProfileId == nil || len(*v.MissionProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member missionProfileId must not be empty")} } if v.MissionProfileId != nil { - if len(*v.MissionProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member missionProfileId must not be empty")} - } if err := encoder.SetURI("missionProfileId").String(*v.MissionProfileId); err != nil { return err } @@ -618,13 +603,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeContactInput(v *DescribeContact return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContactId == nil { + if v.ContactId == nil || len(*v.ContactId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member contactId must not be empty")} } if v.ContactId != nil { - if len(*v.ContactId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member contactId must not be empty")} - } if err := encoder.SetURI("contactId").String(*v.ContactId); err != nil { return err } @@ -684,13 +666,10 @@ func awsRestjson1_serializeOpHttpBindingsGetConfigInput(v *GetConfigInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigId == nil { + if v.ConfigId == nil || len(*v.ConfigId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member configId must not be empty")} } if v.ConfigId != nil { - if len(*v.ConfigId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member configId must not be empty")} - } if err := encoder.SetURI("configId").String(*v.ConfigId); err != nil { return err } @@ -700,9 +679,6 @@ func awsRestjson1_serializeOpHttpBindingsGetConfigInput(v *GetConfigInput, encod return &smithy.SerializationError{Err: fmt.Errorf("input member configType must not be empty")} } if len(v.ConfigType) > 0 { - if len(string(v.ConfigType)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member configType must not be empty")} - } if err := encoder.SetURI("configType").String(string(v.ConfigType)); err != nil { return err } @@ -762,13 +738,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDataflowEndpointGroupInput(v *GetDat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DataflowEndpointGroupId == nil { + if v.DataflowEndpointGroupId == nil || len(*v.DataflowEndpointGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member dataflowEndpointGroupId must not be empty")} } if v.DataflowEndpointGroupId != nil { - if len(*v.DataflowEndpointGroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member dataflowEndpointGroupId must not be empty")} - } if err := encoder.SetURI("dataflowEndpointGroupId").String(*v.DataflowEndpointGroupId); err != nil { return err } @@ -906,13 +879,10 @@ func awsRestjson1_serializeOpHttpBindingsGetMissionProfileInput(v *GetMissionPro return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MissionProfileId == nil { + if v.MissionProfileId == nil || len(*v.MissionProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member missionProfileId must not be empty")} } if v.MissionProfileId != nil { - if len(*v.MissionProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member missionProfileId must not be empty")} - } if err := encoder.SetURI("missionProfileId").String(*v.MissionProfileId); err != nil { return err } @@ -972,13 +942,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSatelliteInput(v *GetSatelliteInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SatelliteId == nil { + if v.SatelliteId == nil || len(*v.SatelliteId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member satelliteId must not be empty")} } if v.SatelliteId != nil { - if len(*v.SatelliteId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member satelliteId must not be empty")} - } if err := encoder.SetURI("satelliteId").String(*v.SatelliteId); err != nil { return err } @@ -1462,13 +1429,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1639,13 +1603,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1719,13 +1680,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1733,10 +1691,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1805,13 +1760,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateConfigInput(v *UpdateConfigInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigId == nil { + if v.ConfigId == nil || len(*v.ConfigId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member configId must not be empty")} } if v.ConfigId != nil { - if len(*v.ConfigId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member configId must not be empty")} - } if err := encoder.SetURI("configId").String(*v.ConfigId); err != nil { return err } @@ -1821,9 +1773,6 @@ func awsRestjson1_serializeOpHttpBindingsUpdateConfigInput(v *UpdateConfigInput, return &smithy.SerializationError{Err: fmt.Errorf("input member configType must not be empty")} } if len(v.ConfigType) > 0 { - if len(string(v.ConfigType)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member configType must not be empty")} - } if err := encoder.SetURI("configType").String(string(v.ConfigType)); err != nil { return err } @@ -1913,13 +1862,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateMissionProfileInput(v *UpdateMiss return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MissionProfileId == nil { + if v.MissionProfileId == nil || len(*v.MissionProfileId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member missionProfileId must not be empty")} } if v.MissionProfileId != nil { - if len(*v.MissionProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member missionProfileId must not be empty")} - } if err := encoder.SetURI("missionProfileId").String(*v.MissionProfileId); err != nil { return err } @@ -1932,14 +1878,14 @@ func awsRestjson1_serializeOpDocumentUpdateMissionProfileInput(v *UpdateMissionP object := value.Object() defer object.Close() - if v.ContactPostPassDurationSeconds != nil { + if v.ContactPostPassDurationSeconds != 0 { ok := object.Key("contactPostPassDurationSeconds") - ok.Integer(*v.ContactPostPassDurationSeconds) + ok.Integer(v.ContactPostPassDurationSeconds) } - if v.ContactPrePassDurationSeconds != nil { + if v.ContactPrePassDurationSeconds != 0 { ok := object.Key("contactPrePassDurationSeconds") - ok.Integer(*v.ContactPrePassDurationSeconds) + ok.Integer(v.ContactPrePassDurationSeconds) } if v.DataflowEdges != nil { @@ -1949,9 +1895,9 @@ func awsRestjson1_serializeOpDocumentUpdateMissionProfileInput(v *UpdateMissionP } } - if v.MinimumViableContactDurationSeconds != nil { + if v.MinimumViableContactDurationSeconds != 0 { ok := object.Key("minimumViableContactDurationSeconds") - ok.Integer(*v.MinimumViableContactDurationSeconds) + ok.Integer(v.MinimumViableContactDurationSeconds) } if v.Name != nil { @@ -2042,37 +1988,37 @@ func awsRestjson1_serializeDocumentConfigTypeData(v types.ConfigTypeData, value switch uv := v.(type) { case *types.ConfigTypeDataMemberAntennaDownlinkConfig: av := object.Key("antennaDownlinkConfig") - if err := awsRestjson1_serializeDocumentAntennaDownlinkConfig(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentAntennaDownlinkConfig(&uv.Value, av); err != nil { return err } case *types.ConfigTypeDataMemberAntennaDownlinkDemodDecodeConfig: av := object.Key("antennaDownlinkDemodDecodeConfig") - if err := awsRestjson1_serializeDocumentAntennaDownlinkDemodDecodeConfig(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentAntennaDownlinkDemodDecodeConfig(&uv.Value, av); err != nil { return err } case *types.ConfigTypeDataMemberAntennaUplinkConfig: av := object.Key("antennaUplinkConfig") - if err := awsRestjson1_serializeDocumentAntennaUplinkConfig(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentAntennaUplinkConfig(&uv.Value, av); err != nil { return err } case *types.ConfigTypeDataMemberDataflowEndpointConfig: av := object.Key("dataflowEndpointConfig") - if err := awsRestjson1_serializeDocumentDataflowEndpointConfig(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentDataflowEndpointConfig(&uv.Value, av); err != nil { return err } case *types.ConfigTypeDataMemberTrackingConfig: av := object.Key("trackingConfig") - if err := awsRestjson1_serializeDocumentTrackingConfig(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentTrackingConfig(&uv.Value, av); err != nil { return err } case *types.ConfigTypeDataMemberUplinkEchoConfig: av := object.Key("uplinkEchoConfig") - if err := awsRestjson1_serializeDocumentUplinkEchoConfig(uv.Value, av); err != nil { + if err := awsRestjson1_serializeDocumentUplinkEchoConfig(&uv.Value, av); err != nil { return err } @@ -2083,29 +2029,24 @@ func awsRestjson1_serializeDocumentConfigTypeData(v types.ConfigTypeData, value return nil } -func awsRestjson1_serializeDocumentDataflowEdge(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataflowEdge(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentDataflowEdgeList(v [][]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataflowEdgeList(v [][]string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsRestjson1_serializeDocumentDataflowEdge(v[i], av); err != nil { @@ -2223,17 +2164,13 @@ func awsRestjson1_serializeDocumentEndpointDetails(v *types.EndpointDetails, val return nil } -func awsRestjson1_serializeDocumentEndpointDetailsList(v []*types.EndpointDetails, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEndpointDetailsList(v []types.EndpointDetails, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentEndpointDetails(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentEndpointDetails(&v[i], av); err != nil { return err } } @@ -2300,17 +2237,13 @@ func awsRestjson1_serializeDocumentSecurityDetails(v *types.SecurityDetails, val return nil } -func awsRestjson1_serializeDocumentSecurityGroupIdList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSecurityGroupIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2369,32 +2302,24 @@ func awsRestjson1_serializeDocumentStatusList(v []types.ContactStatus, value smi return nil } -func awsRestjson1_serializeDocumentSubnetList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSubnetList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagsMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/groundstation/types/types.go b/service/groundstation/types/types.go index fc91ab21056..8e0a4ce0768 100644 --- a/service/groundstation/types/types.go +++ b/service/groundstation/types/types.go @@ -77,7 +77,7 @@ type ConfigTypeData interface { // Information about how AWS Ground Station should configure an antenna for // downlink during a contact. type ConfigTypeDataMemberAntennaDownlinkConfig struct { - Value *AntennaDownlinkConfig + Value AntennaDownlinkConfig } func (*ConfigTypeDataMemberAntennaDownlinkConfig) isConfigTypeData() {} @@ -85,7 +85,7 @@ func (*ConfigTypeDataMemberAntennaDownlinkConfig) isConfigTypeData() {} // Information about how AWS Ground Station should configure an antenna for downlink // demod decode during a contact. type ConfigTypeDataMemberAntennaDownlinkDemodDecodeConfig struct { - Value *AntennaDownlinkDemodDecodeConfig + Value AntennaDownlinkDemodDecodeConfig } func (*ConfigTypeDataMemberAntennaDownlinkDemodDecodeConfig) isConfigTypeData() {} @@ -93,14 +93,14 @@ func (*ConfigTypeDataMemberAntennaDownlinkDemodDecodeConfig) isConfigTypeData() // Information about how AWS Ground Station should configure an antenna for uplink // during a contact. type ConfigTypeDataMemberAntennaUplinkConfig struct { - Value *AntennaUplinkConfig + Value AntennaUplinkConfig } func (*ConfigTypeDataMemberAntennaUplinkConfig) isConfigTypeData() {} // Information about the dataflow endpoint Config. type ConfigTypeDataMemberDataflowEndpointConfig struct { - Value *DataflowEndpointConfig + Value DataflowEndpointConfig } func (*ConfigTypeDataMemberDataflowEndpointConfig) isConfigTypeData() {} @@ -108,7 +108,7 @@ func (*ConfigTypeDataMemberDataflowEndpointConfig) isConfigTypeData() {} // Object that determines whether tracking should be used during a contact executed // with this Config in the mission profile. type ConfigTypeDataMemberTrackingConfig struct { - Value *TrackingConfig + Value TrackingConfig } func (*ConfigTypeDataMemberTrackingConfig) isConfigTypeData() {} @@ -117,7 +117,7 @@ func (*ConfigTypeDataMemberTrackingConfig) isConfigTypeData() {} // AntennaUplinkConfig, corresponding to the specified AntennaUplinkConfigArn, are // used when this UplinkEchoConfig is used in a contact. type ConfigTypeDataMemberUplinkEchoConfig struct { - Value *UplinkEchoConfig + Value UplinkEchoConfig } func (*ConfigTypeDataMemberUplinkEchoConfig) isConfigTypeData() {} @@ -164,7 +164,7 @@ type ContactData struct { StartTime *time.Time // Tags assigned to a contact. - Tags map[string]*string + Tags map[string]string } // Information about a dataflow endpoint. @@ -321,10 +321,10 @@ type MissionProfileListItem struct { type SatelliteListItem struct { // A list of ground stations to which the satellite is on-boarded. - GroundStations []*string + GroundStations []string // NORAD satellite ID number. - NoradSatelliteID *int32 + NoradSatelliteID int32 // ARN of a satellite. SatelliteArn *string @@ -344,13 +344,13 @@ type SecurityDetails struct { // The security groups to attach to the elastic network interfaces. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of subnets where AWS Ground Station places elastic network interfaces to // send streams to your instances. // // This member is required. - SubnetIds []*string + SubnetIds []string } // Information about the socket address. diff --git a/service/groundstation/validators.go b/service/groundstation/validators.go index bc934aef8bc..dd9459601a3 100644 --- a/service/groundstation/validators.go +++ b/service/groundstation/validators.go @@ -529,13 +529,13 @@ func validateEndpointDetails(v *types.EndpointDetails) error { } } -func validateEndpointDetailsList(v []*types.EndpointDetails) error { +func validateEndpointDetailsList(v []types.EndpointDetails) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "EndpointDetailsList"} for i := range v { - if err := validateEndpointDetails(v[i]); err != nil { + if err := validateEndpointDetails(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -645,9 +645,6 @@ func validateOpCreateMissionProfileInput(v *CreateMissionProfileInput) error { if v.DataflowEdges == nil { invalidParams.Add(smithy.NewErrParamRequired("DataflowEdges")) } - if v.MinimumViableContactDurationSeconds == nil { - invalidParams.Add(smithy.NewErrParamRequired("MinimumViableContactDurationSeconds")) - } if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } diff --git a/service/guardduty/api_op_ArchiveFindings.go b/service/guardduty/api_op_ArchiveFindings.go index 902a74df48a..c2a94d5243c 100644 --- a/service/guardduty/api_op_ArchiveFindings.go +++ b/service/guardduty/api_op_ArchiveFindings.go @@ -39,7 +39,7 @@ type ArchiveFindingsInput struct { // The IDs of the findings that you want to archive. // // This member is required. - FindingIds []*string + FindingIds []string } type ArchiveFindingsOutput struct { diff --git a/service/guardduty/api_op_CreateDetector.go b/service/guardduty/api_op_CreateDetector.go index 2aa2981c1e2..09607e1cf19 100644 --- a/service/guardduty/api_op_CreateDetector.go +++ b/service/guardduty/api_op_CreateDetector.go @@ -37,7 +37,7 @@ type CreateDetectorInput struct { // A Boolean value that specifies whether the detector is to be enabled. // // This member is required. - Enable *bool + Enable bool // The idempotency token for the create request. ClientToken *string @@ -49,7 +49,7 @@ type CreateDetectorInput struct { FindingPublishingFrequency types.FindingPublishingFrequency // The tags to be added to a new detector resource. - Tags map[string]*string + Tags map[string]string } type CreateDetectorOutput struct { diff --git a/service/guardduty/api_op_CreateFilter.go b/service/guardduty/api_op_CreateFilter.go index 88c918574ed..2364a47e196 100644 --- a/service/guardduty/api_op_CreateFilter.go +++ b/service/guardduty/api_op_CreateFilter.go @@ -201,10 +201,10 @@ type CreateFilterInput struct { // Specifies the position of the filter in the list of current filters. Also // specifies the order in which this filter is applied to the findings. - Rank *int32 + Rank int32 // The tags to be added to a new filter resource. - Tags map[string]*string + Tags map[string]string } type CreateFilterOutput struct { diff --git a/service/guardduty/api_op_CreateIPSet.go b/service/guardduty/api_op_CreateIPSet.go index e6106b60d67..9a1edb14a53 100644 --- a/service/guardduty/api_op_CreateIPSet.go +++ b/service/guardduty/api_op_CreateIPSet.go @@ -38,7 +38,7 @@ type CreateIPSetInput struct { // IPSet. // // This member is required. - Activate *bool + Activate bool // The unique ID of the detector of the GuardDuty account that you want to create // an IPSet for. @@ -67,7 +67,7 @@ type CreateIPSetInput struct { ClientToken *string // The tags to be added to a new IP set resource. - Tags map[string]*string + Tags map[string]string } type CreateIPSetOutput struct { diff --git a/service/guardduty/api_op_CreateMembers.go b/service/guardduty/api_op_CreateMembers.go index f4f77814887..cd5c1999d05 100644 --- a/service/guardduty/api_op_CreateMembers.go +++ b/service/guardduty/api_op_CreateMembers.go @@ -41,7 +41,7 @@ type CreateMembersInput struct { // associate with the master GuardDuty account. // // This member is required. - AccountDetails []*types.AccountDetail + AccountDetails []types.AccountDetail // The unique ID of the detector of the GuardDuty account that you want to // associate member accounts with. @@ -56,7 +56,7 @@ type CreateMembersOutput struct { // result string that explains why each was unprocessed. // // This member is required. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_CreateSampleFindings.go b/service/guardduty/api_op_CreateSampleFindings.go index 097044a2848..3d5e64aef29 100644 --- a/service/guardduty/api_op_CreateSampleFindings.go +++ b/service/guardduty/api_op_CreateSampleFindings.go @@ -36,7 +36,7 @@ type CreateSampleFindingsInput struct { DetectorId *string // The types of sample findings to generate. - FindingTypes []*string + FindingTypes []string } type CreateSampleFindingsOutput struct { diff --git a/service/guardduty/api_op_CreateThreatIntelSet.go b/service/guardduty/api_op_CreateThreatIntelSet.go index c644642d2e5..f3f3581f21f 100644 --- a/service/guardduty/api_op_CreateThreatIntelSet.go +++ b/service/guardduty/api_op_CreateThreatIntelSet.go @@ -36,7 +36,7 @@ type CreateThreatIntelSetInput struct { // ThreatIntelSet. // // This member is required. - Activate *bool + Activate bool // The unique ID of the detector of the GuardDuty account that you want to create a // threatIntelSet for. @@ -65,7 +65,7 @@ type CreateThreatIntelSetInput struct { ClientToken *string // The tags to be added to a new threat list resource. - Tags map[string]*string + Tags map[string]string } type CreateThreatIntelSetOutput struct { diff --git a/service/guardduty/api_op_DeclineInvitations.go b/service/guardduty/api_op_DeclineInvitations.go index b99df3d905c..17e8fd5a7c4 100644 --- a/service/guardduty/api_op_DeclineInvitations.go +++ b/service/guardduty/api_op_DeclineInvitations.go @@ -34,7 +34,7 @@ type DeclineInvitationsInput struct { // member account that you want to decline invitations from. // // This member is required. - AccountIds []*string + AccountIds []string } type DeclineInvitationsOutput struct { @@ -43,7 +43,7 @@ type DeclineInvitationsOutput struct { // explains why it was unprocessed. // // This member is required. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_DeleteInvitations.go b/service/guardduty/api_op_DeleteInvitations.go index 1d821c90b88..3d7dccbb526 100644 --- a/service/guardduty/api_op_DeleteInvitations.go +++ b/service/guardduty/api_op_DeleteInvitations.go @@ -34,7 +34,7 @@ type DeleteInvitationsInput struct { // member account that you want to delete invitations from. // // This member is required. - AccountIds []*string + AccountIds []string } type DeleteInvitationsOutput struct { @@ -43,7 +43,7 @@ type DeleteInvitationsOutput struct { // explains why it was unprocessed. // // This member is required. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_DeleteMembers.go b/service/guardduty/api_op_DeleteMembers.go index 6ce8684defd..8d80029cde2 100644 --- a/service/guardduty/api_op_DeleteMembers.go +++ b/service/guardduty/api_op_DeleteMembers.go @@ -33,7 +33,7 @@ type DeleteMembersInput struct { // A list of account IDs of the GuardDuty member accounts that you want to delete. // // This member is required. - AccountIds []*string + AccountIds []string // The unique ID of the detector of the GuardDuty account whose members you want to // delete. @@ -47,7 +47,7 @@ type DeleteMembersOutput struct { // The accounts that could not be processed. // // This member is required. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_DescribeOrganizationConfiguration.go b/service/guardduty/api_op_DescribeOrganizationConfiguration.go index 1e126170415..3e92b729cb9 100644 --- a/service/guardduty/api_op_DescribeOrganizationConfiguration.go +++ b/service/guardduty/api_op_DescribeOrganizationConfiguration.go @@ -43,13 +43,13 @@ type DescribeOrganizationConfigurationOutput struct { // organization. // // This member is required. - AutoEnable *bool + AutoEnable bool // Indicates whether the maximum number of allowed member accounts are already // associated with the delegated administrator master account. // // This member is required. - MemberAccountLimitReached *bool + MemberAccountLimitReached bool // An object that describes which data sources are enabled automatically for member // accounts. diff --git a/service/guardduty/api_op_DescribePublishingDestination.go b/service/guardduty/api_op_DescribePublishingDestination.go index 63568b4a093..a91067f1dfd 100644 --- a/service/guardduty/api_op_DescribePublishingDestination.go +++ b/service/guardduty/api_op_DescribePublishingDestination.go @@ -65,7 +65,7 @@ type DescribePublishingDestinationOutput struct { // publish findings to the destination. // // This member is required. - PublishingFailureStartTimestamp *int64 + PublishingFailureStartTimestamp int64 // The status of the publishing destination. // diff --git a/service/guardduty/api_op_DisassociateMembers.go b/service/guardduty/api_op_DisassociateMembers.go index 9fe1cb14906..b0b3a0fdba8 100644 --- a/service/guardduty/api_op_DisassociateMembers.go +++ b/service/guardduty/api_op_DisassociateMembers.go @@ -34,7 +34,7 @@ type DisassociateMembersInput struct { // disassociate from the master account. // // This member is required. - AccountIds []*string + AccountIds []string // The unique ID of the detector of the GuardDuty account whose members you want to // disassociate from the master account. @@ -49,7 +49,7 @@ type DisassociateMembersOutput struct { // explains why it was unprocessed. // // This member is required. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_GetDetector.go b/service/guardduty/api_op_GetDetector.go index a0a28b0b057..c36339afd7c 100644 --- a/service/guardduty/api_op_GetDetector.go +++ b/service/guardduty/api_op_GetDetector.go @@ -57,7 +57,7 @@ type GetDetectorOutput struct { FindingPublishingFrequency types.FindingPublishingFrequency // The tags of the detector resource. - Tags map[string]*string + Tags map[string]string // The last-updated timestamp for the detector. UpdatedAt *string diff --git a/service/guardduty/api_op_GetFilter.go b/service/guardduty/api_op_GetFilter.go index ac6c88702a3..d10d72ac279 100644 --- a/service/guardduty/api_op_GetFilter.go +++ b/service/guardduty/api_op_GetFilter.go @@ -63,10 +63,10 @@ type GetFilterOutput struct { // Specifies the position of the filter in the list of current filters. Also // specifies the order in which this filter is applied to the findings. - Rank *int32 + Rank int32 // The tags of the filter resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_GetFindings.go b/service/guardduty/api_op_GetFindings.go index f7ac2237f01..1e930ca3537 100644 --- a/service/guardduty/api_op_GetFindings.go +++ b/service/guardduty/api_op_GetFindings.go @@ -38,7 +38,7 @@ type GetFindingsInput struct { // The IDs of the findings that you want to retrieve. // // This member is required. - FindingIds []*string + FindingIds []string // Represents the criteria used for sorting findings. SortCriteria *types.SortCriteria @@ -49,7 +49,7 @@ type GetFindingsOutput struct { // A list of findings. // // This member is required. - Findings []*types.Finding + Findings []types.Finding // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_GetIPSet.go b/service/guardduty/api_op_GetIPSet.go index 2e67aec0112..f846bc3a536 100644 --- a/service/guardduty/api_op_GetIPSet.go +++ b/service/guardduty/api_op_GetIPSet.go @@ -64,7 +64,7 @@ type GetIPSetOutput struct { Status types.IpSetStatus // The tags of the IPSet resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_GetInvitationsCount.go b/service/guardduty/api_op_GetInvitationsCount.go index 20955e9ad9c..5f6afa08ee2 100644 --- a/service/guardduty/api_op_GetInvitationsCount.go +++ b/service/guardduty/api_op_GetInvitationsCount.go @@ -33,7 +33,7 @@ type GetInvitationsCountInput struct { type GetInvitationsCountOutput struct { // The number of received invitations. - InvitationsCount *int32 + InvitationsCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_GetMemberDetectors.go b/service/guardduty/api_op_GetMemberDetectors.go index 9d343053974..3025c4542f4 100644 --- a/service/guardduty/api_op_GetMemberDetectors.go +++ b/service/guardduty/api_op_GetMemberDetectors.go @@ -32,7 +32,7 @@ type GetMemberDetectorsInput struct { // The account ID of the member account. // // This member is required. - AccountIds []*string + AccountIds []string // The detector ID for the master account. // @@ -45,13 +45,13 @@ type GetMemberDetectorsOutput struct { // An object that describes which data sources are enabled for a member account. // // This member is required. - MemberDataSourceConfigurations []*types.MemberDataSourceConfiguration + MemberDataSourceConfigurations []types.MemberDataSourceConfiguration // A list of member account IDs that were unable to be processed along with an // explanation for why they were not processed. // // This member is required. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_GetMembers.go b/service/guardduty/api_op_GetMembers.go index e9bc6a66539..03952f71baf 100644 --- a/service/guardduty/api_op_GetMembers.go +++ b/service/guardduty/api_op_GetMembers.go @@ -34,7 +34,7 @@ type GetMembersInput struct { // describe. // // This member is required. - AccountIds []*string + AccountIds []string // The unique ID of the detector of the GuardDuty account whose members you want to // retrieve. @@ -48,13 +48,13 @@ type GetMembersOutput struct { // A list of members. // // This member is required. - Members []*types.Member + Members []types.Member // A list of objects that contain the unprocessed account and a result string that // explains why it was unprocessed. // // This member is required. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_GetThreatIntelSet.go b/service/guardduty/api_op_GetThreatIntelSet.go index 4038d8bee8f..71671c7420d 100644 --- a/service/guardduty/api_op_GetThreatIntelSet.go +++ b/service/guardduty/api_op_GetThreatIntelSet.go @@ -65,7 +65,7 @@ type GetThreatIntelSetOutput struct { Status types.ThreatIntelSetStatus // The tags of the threat list resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_GetUsageStatistics.go b/service/guardduty/api_op_GetUsageStatistics.go index a690f69a1cf..a99f6bb5f4a 100644 --- a/service/guardduty/api_op_GetUsageStatistics.go +++ b/service/guardduty/api_op_GetUsageStatistics.go @@ -52,7 +52,7 @@ type GetUsageStatisticsInput struct { UsageStatisticType types.UsageStatisticType // The maximum number of results to return in the response. - MaxResults *int32 + MaxResults int32 // A token to use for paginating results that are returned in the response. Set the // value of this parameter to null for the first request to a list action. For diff --git a/service/guardduty/api_op_InviteMembers.go b/service/guardduty/api_op_InviteMembers.go index 440407e7adf..998f6f949a1 100644 --- a/service/guardduty/api_op_InviteMembers.go +++ b/service/guardduty/api_op_InviteMembers.go @@ -36,7 +36,7 @@ type InviteMembersInput struct { // members. // // This member is required. - AccountIds []*string + AccountIds []string // The unique ID of the detector of the GuardDuty account that you want to invite // members with. @@ -46,7 +46,7 @@ type InviteMembersInput struct { // A Boolean value that specifies whether you want to disable email notification to // the accounts that you are inviting to GuardDuty as members. - DisableEmailNotification *bool + DisableEmailNotification bool // The invitation message that you want to send to the accounts that you're // inviting to GuardDuty as members. @@ -59,7 +59,7 @@ type InviteMembersOutput struct { // explains why it was unprocessed. // // This member is required. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_ListDetectors.go b/service/guardduty/api_op_ListDetectors.go index 960d5df43bb..80b19b646a1 100644 --- a/service/guardduty/api_op_ListDetectors.go +++ b/service/guardduty/api_op_ListDetectors.go @@ -30,7 +30,7 @@ type ListDetectorsInput struct { // You can use this parameter to indicate the maximum number of items that you want // in the response. The default value is 50. The maximum value is 50. - MaxResults *int32 + MaxResults int32 // You can use this parameter when paginating results. Set the value of this // parameter to null on your first call to the list action. For subsequent calls to @@ -44,7 +44,7 @@ type ListDetectorsOutput struct { // A list of detector IDs. // // This member is required. - DetectorIds []*string + DetectorIds []string // The pagination parameter to be used on the next list operation to retrieve more // items. diff --git a/service/guardduty/api_op_ListFilters.go b/service/guardduty/api_op_ListFilters.go index c29b908277a..b4e9aac70fb 100644 --- a/service/guardduty/api_op_ListFilters.go +++ b/service/guardduty/api_op_ListFilters.go @@ -35,7 +35,7 @@ type ListFiltersInput struct { // You can use this parameter to indicate the maximum number of items that you want // in the response. The default value is 50. The maximum value is 50. - MaxResults *int32 + MaxResults int32 // You can use this parameter when paginating results. Set the value of this // parameter to null on your first call to the list action. For subsequent calls to @@ -49,7 +49,7 @@ type ListFiltersOutput struct { // A list of filter names. // // This member is required. - FilterNames []*string + FilterNames []string // The pagination parameter to be used on the next list operation to retrieve more // items. diff --git a/service/guardduty/api_op_ListFindings.go b/service/guardduty/api_op_ListFindings.go index 9a402690357..6f6111f29c3 100644 --- a/service/guardduty/api_op_ListFindings.go +++ b/service/guardduty/api_op_ListFindings.go @@ -178,7 +178,7 @@ type ListFindingsInput struct { // You can use this parameter to indicate the maximum number of items you want in // the response. The default value is 50. The maximum value is 50. - MaxResults *int32 + MaxResults int32 // You can use this parameter when paginating results. Set the value of this // parameter to null on your first call to the list action. For subsequent calls to @@ -195,7 +195,7 @@ type ListFindingsOutput struct { // The IDs of the findings that you're listing. // // This member is required. - FindingIds []*string + FindingIds []string // The pagination parameter to be used on the next list operation to retrieve more // items. diff --git a/service/guardduty/api_op_ListIPSets.go b/service/guardduty/api_op_ListIPSets.go index cab5fa2a2f5..51efaceb878 100644 --- a/service/guardduty/api_op_ListIPSets.go +++ b/service/guardduty/api_op_ListIPSets.go @@ -37,7 +37,7 @@ type ListIPSetsInput struct { // You can use this parameter to indicate the maximum number of items you want in // the response. The default value is 50. The maximum value is 50. - MaxResults *int32 + MaxResults int32 // You can use this parameter when paginating results. Set the value of this // parameter to null on your first call to the list action. For subsequent calls to @@ -51,7 +51,7 @@ type ListIPSetsOutput struct { // The IDs of the IPSet resources. // // This member is required. - IpSetIds []*string + IpSetIds []string // The pagination parameter to be used on the next list operation to retrieve more // items. diff --git a/service/guardduty/api_op_ListInvitations.go b/service/guardduty/api_op_ListInvitations.go index feb194dfb61..fae869035bf 100644 --- a/service/guardduty/api_op_ListInvitations.go +++ b/service/guardduty/api_op_ListInvitations.go @@ -32,7 +32,7 @@ type ListInvitationsInput struct { // You can use this parameter to indicate the maximum number of items that you want // in the response. The default value is 50. The maximum value is 50. - MaxResults *int32 + MaxResults int32 // You can use this parameter when paginating results. Set the value of this // parameter to null on your first call to the list action. For subsequent calls to @@ -44,7 +44,7 @@ type ListInvitationsInput struct { type ListInvitationsOutput struct { // A list of invitation descriptions. - Invitations []*types.Invitation + Invitations []types.Invitation // The pagination parameter to be used on the next list operation to retrieve more // items. diff --git a/service/guardduty/api_op_ListMembers.go b/service/guardduty/api_op_ListMembers.go index 2a21443bbba..f3a9d4114da 100644 --- a/service/guardduty/api_op_ListMembers.go +++ b/service/guardduty/api_op_ListMembers.go @@ -37,7 +37,7 @@ type ListMembersInput struct { // You can use this parameter to indicate the maximum number of items you want in // the response. The default value is 50. The maximum value is 50. - MaxResults *int32 + MaxResults int32 // You can use this parameter when paginating results. Set the value of this // parameter to null on your first call to the list action. For subsequent calls to @@ -53,7 +53,7 @@ type ListMembersInput struct { type ListMembersOutput struct { // A list of members. - Members []*types.Member + Members []types.Member // The pagination parameter to be used on the next list operation to retrieve more // items. diff --git a/service/guardduty/api_op_ListOrganizationAdminAccounts.go b/service/guardduty/api_op_ListOrganizationAdminAccounts.go index 02714402c46..980916d51a9 100644 --- a/service/guardduty/api_op_ListOrganizationAdminAccounts.go +++ b/service/guardduty/api_op_ListOrganizationAdminAccounts.go @@ -30,7 +30,7 @@ func (c *Client) ListOrganizationAdminAccounts(ctx context.Context, params *List type ListOrganizationAdminAccountsInput struct { // The maximum number of results to return in the response. - MaxResults *int32 + MaxResults int32 // A token to use for paginating results that are returned in the response. Set the // value of this parameter to null for the first request to a list action. For @@ -43,7 +43,7 @@ type ListOrganizationAdminAccountsOutput struct { // An AdminAccounts object that includes a list of accounts configured as GuardDuty // delegated administrators. - AdminAccounts []*types.AdminAccount + AdminAccounts []types.AdminAccount // The pagination parameter to be used on the next list operation to retrieve more // items. diff --git a/service/guardduty/api_op_ListPublishingDestinations.go b/service/guardduty/api_op_ListPublishingDestinations.go index 66eb5d7220f..66a0b79909a 100644 --- a/service/guardduty/api_op_ListPublishingDestinations.go +++ b/service/guardduty/api_op_ListPublishingDestinations.go @@ -36,7 +36,7 @@ type ListPublishingDestinationsInput struct { DetectorId *string // The maximum number of results to return in the response. - MaxResults *int32 + MaxResults int32 // A token to use for paginating results that are returned in the response. Set the // value of this parameter to null for the first request to a list action. For @@ -51,7 +51,7 @@ type ListPublishingDestinationsOutput struct { // destination returned. // // This member is required. - Destinations []*types.Destination + Destinations []types.Destination // A token to use for paginating results that are returned in the response. Set the // value of this parameter to null for the first request to a list action. For diff --git a/service/guardduty/api_op_ListTagsForResource.go b/service/guardduty/api_op_ListTagsForResource.go index 7ca4764949c..fe1d1166f82 100644 --- a/service/guardduty/api_op_ListTagsForResource.go +++ b/service/guardduty/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags associated with the resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_ListThreatIntelSets.go b/service/guardduty/api_op_ListThreatIntelSets.go index 10a92eb74e8..e86b1a6d30d 100644 --- a/service/guardduty/api_op_ListThreatIntelSets.go +++ b/service/guardduty/api_op_ListThreatIntelSets.go @@ -37,7 +37,7 @@ type ListThreatIntelSetsInput struct { // You can use this parameter to indicate the maximum number of items that you want // in the response. The default value is 50. The maximum value is 50. - MaxResults *int32 + MaxResults int32 // You can use this parameter to paginate results in the response. Set the value of // this parameter to null on your first call to the list action. For subsequent @@ -51,7 +51,7 @@ type ListThreatIntelSetsOutput struct { // The IDs of the ThreatIntelSet resources. // // This member is required. - ThreatIntelSetIds []*string + ThreatIntelSetIds []string // The pagination parameter to be used on the next list operation to retrieve more // items. diff --git a/service/guardduty/api_op_StartMonitoringMembers.go b/service/guardduty/api_op_StartMonitoringMembers.go index 2dec8fb313a..d511e65eaad 100644 --- a/service/guardduty/api_op_StartMonitoringMembers.go +++ b/service/guardduty/api_op_StartMonitoringMembers.go @@ -34,7 +34,7 @@ type StartMonitoringMembersInput struct { // A list of account IDs of the GuardDuty member accounts to start monitoring. // // This member is required. - AccountIds []*string + AccountIds []string // The unique ID of the detector of the GuardDuty master account associated with // the member accounts to monitor. @@ -49,7 +49,7 @@ type StartMonitoringMembersOutput struct { // explains why it was unprocessed. // // This member is required. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_StopMonitoringMembers.go b/service/guardduty/api_op_StopMonitoringMembers.go index 42fc4810c9e..60bc1015938 100644 --- a/service/guardduty/api_op_StopMonitoringMembers.go +++ b/service/guardduty/api_op_StopMonitoringMembers.go @@ -33,7 +33,7 @@ type StopMonitoringMembersInput struct { // A list of account IDs for the member accounts to stop monitoring. // // This member is required. - AccountIds []*string + AccountIds []string // The unique ID of the detector associated with the GuardDuty master account that // is monitoring member accounts. @@ -48,7 +48,7 @@ type StopMonitoringMembersOutput struct { // processed, and a result string that indicates why the account was not processed. // // This member is required. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_TagResource.go b/service/guardduty/api_op_TagResource.go index 34d8d72a782..dfb00854004 100644 --- a/service/guardduty/api_op_TagResource.go +++ b/service/guardduty/api_op_TagResource.go @@ -36,7 +36,7 @@ type TagResourceInput struct { // The tags to be added to a resource. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/guardduty/api_op_UnarchiveFindings.go b/service/guardduty/api_op_UnarchiveFindings.go index 45100e23255..1de5627912d 100644 --- a/service/guardduty/api_op_UnarchiveFindings.go +++ b/service/guardduty/api_op_UnarchiveFindings.go @@ -36,7 +36,7 @@ type UnarchiveFindingsInput struct { // The IDs of the findings to unarchive. // // This member is required. - FindingIds []*string + FindingIds []string } type UnarchiveFindingsOutput struct { diff --git a/service/guardduty/api_op_UntagResource.go b/service/guardduty/api_op_UntagResource.go index 64140a6f198..d7e2675031c 100644 --- a/service/guardduty/api_op_UntagResource.go +++ b/service/guardduty/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The tag keys to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/guardduty/api_op_UpdateDetector.go b/service/guardduty/api_op_UpdateDetector.go index 518364722a9..a0c6f1b416e 100644 --- a/service/guardduty/api_op_UpdateDetector.go +++ b/service/guardduty/api_op_UpdateDetector.go @@ -38,7 +38,7 @@ type UpdateDetectorInput struct { DataSources *types.DataSourceConfigurations // Specifies whether the detector is enabled or not enabled. - Enable *bool + Enable bool // An enum value that specifies how frequently findings are exported, such as to // CloudWatch Events. diff --git a/service/guardduty/api_op_UpdateFilter.go b/service/guardduty/api_op_UpdateFilter.go index 506dc994d7a..2488be622b4 100644 --- a/service/guardduty/api_op_UpdateFilter.go +++ b/service/guardduty/api_op_UpdateFilter.go @@ -52,7 +52,7 @@ type UpdateFilterInput struct { // Specifies the position of the filter in the list of current filters. Also // specifies the order in which this filter is applied to the findings. - Rank *int32 + Rank int32 } type UpdateFilterOutput struct { diff --git a/service/guardduty/api_op_UpdateFindingsFeedback.go b/service/guardduty/api_op_UpdateFindingsFeedback.go index 25309bab486..b57d7b57d1a 100644 --- a/service/guardduty/api_op_UpdateFindingsFeedback.go +++ b/service/guardduty/api_op_UpdateFindingsFeedback.go @@ -42,7 +42,7 @@ type UpdateFindingsFeedbackInput struct { // The IDs of the findings that you want to mark as useful or not useful. // // This member is required. - FindingIds []*string + FindingIds []string // Additional feedback about the GuardDuty findings. Comments *string diff --git a/service/guardduty/api_op_UpdateIPSet.go b/service/guardduty/api_op_UpdateIPSet.go index 18c4019f558..97038670ccf 100644 --- a/service/guardduty/api_op_UpdateIPSet.go +++ b/service/guardduty/api_op_UpdateIPSet.go @@ -40,7 +40,7 @@ type UpdateIPSetInput struct { IpSetId *string // The updated Boolean value that specifies whether the IPSet is active or not. - Activate *bool + Activate bool // The updated URI of the file that contains the IPSet. For example: // https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key. diff --git a/service/guardduty/api_op_UpdateMemberDetectors.go b/service/guardduty/api_op_UpdateMemberDetectors.go index 76cba0797fb..5815d348620 100644 --- a/service/guardduty/api_op_UpdateMemberDetectors.go +++ b/service/guardduty/api_op_UpdateMemberDetectors.go @@ -32,7 +32,7 @@ type UpdateMemberDetectorsInput struct { // A list of member account IDs to be updated. // // This member is required. - AccountIds []*string + AccountIds []string // The detector ID of the master account. // @@ -49,7 +49,7 @@ type UpdateMemberDetectorsOutput struct { // explanation for why they were not processed. // // This member is required. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/guardduty/api_op_UpdateOrganizationConfiguration.go b/service/guardduty/api_op_UpdateOrganizationConfiguration.go index 3cdb988988b..9f5a094abe6 100644 --- a/service/guardduty/api_op_UpdateOrganizationConfiguration.go +++ b/service/guardduty/api_op_UpdateOrganizationConfiguration.go @@ -32,7 +32,7 @@ type UpdateOrganizationConfigurationInput struct { // Indicates whether to automatically enable member accounts in the organization. // // This member is required. - AutoEnable *bool + AutoEnable bool // The ID of the detector to update the delegated administrator for. // diff --git a/service/guardduty/api_op_UpdateThreatIntelSet.go b/service/guardduty/api_op_UpdateThreatIntelSet.go index f9becca0d94..a8b64bcd0fb 100644 --- a/service/guardduty/api_op_UpdateThreatIntelSet.go +++ b/service/guardduty/api_op_UpdateThreatIntelSet.go @@ -41,7 +41,7 @@ type UpdateThreatIntelSetInput struct { // The updated Boolean value that specifies whether the ThreateIntelSet is active // or not. - Activate *bool + Activate bool // The updated URI of the file that contains the ThreateIntelSet. For example: // https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key. diff --git a/service/guardduty/deserializers.go b/service/guardduty/deserializers.go index 5eafb50a304..9d3b9a1587e 100644 --- a/service/guardduty/deserializers.go +++ b/service/guardduty/deserializers.go @@ -333,7 +333,7 @@ func awsRestjson1_deserializeOpDocumentCreateDetectorOutput(v **CreateDetectorOu if !ok { return fmt.Errorf("expected DetectorId to be of type string, got %T instead", value) } - sv.DetectorId = &jtv + sv.DetectorId = ptr.String(jtv) } default: @@ -487,7 +487,7 @@ func awsRestjson1_deserializeOpDocumentCreateFilterOutput(v **CreateFilterOutput if !ok { return fmt.Errorf("expected FilterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -641,7 +641,7 @@ func awsRestjson1_deserializeOpDocumentCreateIPSetOutput(v **CreateIPSetOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IpSetId = &jtv + sv.IpSetId = ptr.String(jtv) } default: @@ -945,7 +945,7 @@ func awsRestjson1_deserializeOpDocumentCreatePublishingDestinationOutput(v **Cre if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DestinationId = &jtv + sv.DestinationId = ptr.String(jtv) } default: @@ -1185,7 +1185,7 @@ func awsRestjson1_deserializeOpDocumentCreateThreatIntelSetOutput(v **CreateThre if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ThreatIntelSetId = &jtv + sv.ThreatIntelSetId = ptr.String(jtv) } default: @@ -2219,7 +2219,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(v if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoEnable = &jtv + sv.AutoEnable = jtv } case "dataSources": @@ -2233,7 +2233,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(v if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.MemberAccountLimitReached = &jtv + sv.MemberAccountLimitReached = jtv } default: @@ -2387,7 +2387,7 @@ func awsRestjson1_deserializeOpDocumentDescribePublishingDestinationOutput(v **D if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DestinationId = &jtv + sv.DestinationId = ptr.String(jtv) } case "destinationProperties": @@ -2414,7 +2414,7 @@ func awsRestjson1_deserializeOpDocumentDescribePublishingDestinationOutput(v **D if err != nil { return err } - sv.PublishingFailureStartTimestamp = &i64 + sv.PublishingFailureStartTimestamp = i64 } case "status": @@ -2985,7 +2985,7 @@ func awsRestjson1_deserializeOpDocumentGetDetectorOutput(v **GetDetectorOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "dataSources": @@ -3008,7 +3008,7 @@ func awsRestjson1_deserializeOpDocumentGetDetectorOutput(v **GetDetectorOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } case "status": @@ -3031,7 +3031,7 @@ func awsRestjson1_deserializeOpDocumentGetDetectorOutput(v **GetDetectorOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UpdatedAt = &jtv + sv.UpdatedAt = ptr.String(jtv) } default: @@ -3194,7 +3194,7 @@ func awsRestjson1_deserializeOpDocumentGetFilterOutput(v **GetFilterOutput, valu if !ok { return fmt.Errorf("expected FilterDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "findingCriteria": @@ -3208,7 +3208,7 @@ func awsRestjson1_deserializeOpDocumentGetFilterOutput(v **GetFilterOutput, valu if !ok { return fmt.Errorf("expected FilterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "rank": @@ -3221,7 +3221,7 @@ func awsRestjson1_deserializeOpDocumentGetFilterOutput(v **GetFilterOutput, valu if err != nil { return err } - sv.Rank = ptr.Int32(int32(i64)) + sv.Rank = int32(i64) } case "tags": @@ -3684,7 +3684,7 @@ func awsRestjson1_deserializeOpDocumentGetInvitationsCountOutput(v **GetInvitati if err != nil { return err } - sv.InvitationsCount = ptr.Int32(int32(i64)) + sv.InvitationsCount = int32(i64) } default: @@ -3847,7 +3847,7 @@ func awsRestjson1_deserializeOpDocumentGetIPSetOutput(v **GetIPSetOutput, value if !ok { return fmt.Errorf("expected Location to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "name": @@ -3856,7 +3856,7 @@ func awsRestjson1_deserializeOpDocumentGetIPSetOutput(v **GetIPSetOutput, value if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -4493,7 +4493,7 @@ func awsRestjson1_deserializeOpDocumentGetThreatIntelSetOutput(v **GetThreatInte if !ok { return fmt.Errorf("expected Location to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "name": @@ -4502,7 +4502,7 @@ func awsRestjson1_deserializeOpDocumentGetThreatIntelSetOutput(v **GetThreatInte if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -4670,7 +4670,7 @@ func awsRestjson1_deserializeOpDocumentGetUsageStatisticsOutput(v **GetUsageStat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "usageStatistics": @@ -4984,7 +4984,7 @@ func awsRestjson1_deserializeOpDocumentListDetectorsOutput(v **ListDetectorsOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5143,7 +5143,7 @@ func awsRestjson1_deserializeOpDocumentListFiltersOutput(v **ListFiltersOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5302,7 +5302,7 @@ func awsRestjson1_deserializeOpDocumentListFindingsOutput(v **ListFindingsOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5461,7 +5461,7 @@ func awsRestjson1_deserializeOpDocumentListInvitationsOutput(v **ListInvitations if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5620,7 +5620,7 @@ func awsRestjson1_deserializeOpDocumentListIPSetsOutput(v **ListIPSetsOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5779,7 +5779,7 @@ func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5938,7 +5938,7 @@ func awsRestjson1_deserializeOpDocumentListOrganizationAdminAccountsOutput(v **L if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6097,7 +6097,7 @@ func awsRestjson1_deserializeOpDocumentListPublishingDestinationsOutput(v **List if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6401,7 +6401,7 @@ func awsRestjson1_deserializeOpDocumentListThreatIntelSetsOutput(v **ListThreatI if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "threatIntelSetIds": @@ -7204,7 +7204,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFilterOutput(v **UpdateFilterOutput if !ok { return fmt.Errorf("expected FilterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7896,7 +7896,7 @@ func awsRestjson1_deserializeDocumentAccessControlList(v **types.AccessControlLi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllowsPublicReadAccess = &jtv + sv.AllowsPublicReadAccess = jtv } case "allowsPublicWriteAccess": @@ -7905,7 +7905,7 @@ func awsRestjson1_deserializeDocumentAccessControlList(v **types.AccessControlLi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllowsPublicWriteAccess = &jtv + sv.AllowsPublicWriteAccess = jtv } default: @@ -7945,7 +7945,7 @@ func awsRestjson1_deserializeDocumentAccessKeyDetails(v **types.AccessKeyDetails if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccessKeyId = &jtv + sv.AccessKeyId = ptr.String(jtv) } case "principalId": @@ -7954,7 +7954,7 @@ func awsRestjson1_deserializeDocumentAccessKeyDetails(v **types.AccessKeyDetails if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } case "userName": @@ -7963,7 +7963,7 @@ func awsRestjson1_deserializeDocumentAccessKeyDetails(v **types.AccessKeyDetails if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } case "userType": @@ -7972,7 +7972,7 @@ func awsRestjson1_deserializeDocumentAccessKeyDetails(v **types.AccessKeyDetails if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserType = &jtv + sv.UserType = ptr.String(jtv) } default: @@ -8048,7 +8048,7 @@ func awsRestjson1_deserializeDocumentAction(v **types.Action, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ActionType = &jtv + sv.ActionType = ptr.String(jtv) } case "awsApiCallAction": @@ -8108,7 +8108,7 @@ func awsRestjson1_deserializeDocumentAdminAccount(v **types.AdminAccount, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AdminAccountId = &jtv + sv.AdminAccountId = ptr.String(jtv) } case "adminStatus": @@ -8129,7 +8129,7 @@ func awsRestjson1_deserializeDocumentAdminAccount(v **types.AdminAccount, value return nil } -func awsRestjson1_deserializeDocumentAdminAccounts(v *[]*types.AdminAccount, value interface{}) error { +func awsRestjson1_deserializeDocumentAdminAccounts(v *[]types.AdminAccount, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8142,18 +8142,20 @@ func awsRestjson1_deserializeDocumentAdminAccounts(v *[]*types.AdminAccount, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AdminAccount + var cv []types.AdminAccount if *v == nil { - cv = []*types.AdminAccount{} + cv = []types.AdminAccount{} } else { cv = *v } for _, value := range shape { - var col *types.AdminAccount - if err := awsRestjson1_deserializeDocumentAdminAccount(&col, value); err != nil { + var col types.AdminAccount + destAddr := &col + if err := awsRestjson1_deserializeDocumentAdminAccount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8189,7 +8191,7 @@ func awsRestjson1_deserializeDocumentAwsApiCallAction(v **types.AwsApiCallAction if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Api = &jtv + sv.Api = ptr.String(jtv) } case "callerType": @@ -8198,7 +8200,7 @@ func awsRestjson1_deserializeDocumentAwsApiCallAction(v **types.AwsApiCallAction if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CallerType = &jtv + sv.CallerType = ptr.String(jtv) } case "domainDetails": @@ -8212,7 +8214,7 @@ func awsRestjson1_deserializeDocumentAwsApiCallAction(v **types.AwsApiCallAction if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "remoteIpDetails": @@ -8226,7 +8228,7 @@ func awsRestjson1_deserializeDocumentAwsApiCallAction(v **types.AwsApiCallAction if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } default: @@ -8266,7 +8268,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "__type": @@ -8275,7 +8277,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -8315,7 +8317,7 @@ func awsRestjson1_deserializeDocumentBlockPublicAccess(v **types.BlockPublicAcce if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.BlockPublicAcls = &jtv + sv.BlockPublicAcls = jtv } case "blockPublicPolicy": @@ -8324,7 +8326,7 @@ func awsRestjson1_deserializeDocumentBlockPublicAccess(v **types.BlockPublicAcce if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.BlockPublicPolicy = &jtv + sv.BlockPublicPolicy = jtv } case "ignorePublicAcls": @@ -8333,7 +8335,7 @@ func awsRestjson1_deserializeDocumentBlockPublicAccess(v **types.BlockPublicAcce if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IgnorePublicAcls = &jtv + sv.IgnorePublicAcls = jtv } case "restrictPublicBuckets": @@ -8342,7 +8344,7 @@ func awsRestjson1_deserializeDocumentBlockPublicAccess(v **types.BlockPublicAcce if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RestrictPublicBuckets = &jtv + sv.RestrictPublicBuckets = jtv } default: @@ -8428,7 +8430,7 @@ func awsRestjson1_deserializeDocumentBucketPolicy(v **types.BucketPolicy, value if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllowsPublicReadAccess = &jtv + sv.AllowsPublicReadAccess = jtv } case "allowsPublicWriteAccess": @@ -8437,7 +8439,7 @@ func awsRestjson1_deserializeDocumentBucketPolicy(v **types.BucketPolicy, value if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllowsPublicWriteAccess = &jtv + sv.AllowsPublicWriteAccess = jtv } default: @@ -8477,7 +8479,7 @@ func awsRestjson1_deserializeDocumentCity(v **types.City, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CityName = &jtv + sv.CityName = ptr.String(jtv) } default: @@ -8571,7 +8573,7 @@ func awsRestjson1_deserializeDocumentCondition(v **types.Condition, value interf if err != nil { return err } - sv.GreaterThan = &i64 + sv.GreaterThan = i64 } case "greaterThanOrEqual": @@ -8584,7 +8586,7 @@ func awsRestjson1_deserializeDocumentCondition(v **types.Condition, value interf if err != nil { return err } - sv.GreaterThanOrEqual = &i64 + sv.GreaterThanOrEqual = i64 } case "gt": @@ -8597,7 +8599,7 @@ func awsRestjson1_deserializeDocumentCondition(v **types.Condition, value interf if err != nil { return err } - sv.Gt = ptr.Int32(int32(i64)) + sv.Gt = int32(i64) } case "gte": @@ -8610,7 +8612,7 @@ func awsRestjson1_deserializeDocumentCondition(v **types.Condition, value interf if err != nil { return err } - sv.Gte = ptr.Int32(int32(i64)) + sv.Gte = int32(i64) } case "lessThan": @@ -8623,7 +8625,7 @@ func awsRestjson1_deserializeDocumentCondition(v **types.Condition, value interf if err != nil { return err } - sv.LessThan = &i64 + sv.LessThan = i64 } case "lessThanOrEqual": @@ -8636,7 +8638,7 @@ func awsRestjson1_deserializeDocumentCondition(v **types.Condition, value interf if err != nil { return err } - sv.LessThanOrEqual = &i64 + sv.LessThanOrEqual = i64 } case "lt": @@ -8649,7 +8651,7 @@ func awsRestjson1_deserializeDocumentCondition(v **types.Condition, value interf if err != nil { return err } - sv.Lt = ptr.Int32(int32(i64)) + sv.Lt = int32(i64) } case "lte": @@ -8662,7 +8664,7 @@ func awsRestjson1_deserializeDocumentCondition(v **types.Condition, value interf if err != nil { return err } - sv.Lte = ptr.Int32(int32(i64)) + sv.Lte = int32(i64) } case "neq": @@ -8684,7 +8686,7 @@ func awsRestjson1_deserializeDocumentCondition(v **types.Condition, value interf return nil } -func awsRestjson1_deserializeDocumentCountBySeverity(v *map[string]*int32, value interface{}) error { +func awsRestjson1_deserializeDocumentCountBySeverity(v *map[string]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8697,15 +8699,15 @@ func awsRestjson1_deserializeDocumentCountBySeverity(v *map[string]*int32, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*int32 + var mv map[string]int32 if *v == nil { - mv = map[string]*int32{} + mv = map[string]int32{} } else { mv = *v } for key, value := range shape { - var parsedVal *int32 + var parsedVal int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -8715,7 +8717,7 @@ func awsRestjson1_deserializeDocumentCountBySeverity(v *map[string]*int32, value if err != nil { return err } - parsedVal = ptr.Int32(int32(i64)) + parsedVal = int32(i64) } mv[key] = parsedVal @@ -8752,7 +8754,7 @@ func awsRestjson1_deserializeDocumentCountry(v **types.Country, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CountryCode = &jtv + sv.CountryCode = ptr.String(jtv) } case "countryName": @@ -8761,7 +8763,7 @@ func awsRestjson1_deserializeDocumentCountry(v **types.Country, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CountryName = &jtv + sv.CountryName = ptr.String(jtv) } default: @@ -8773,7 +8775,7 @@ func awsRestjson1_deserializeDocumentCountry(v **types.Country, value interface{ return nil } -func awsRestjson1_deserializeDocumentCriterion(v *map[string]*types.Condition, value interface{}) error { +func awsRestjson1_deserializeDocumentCriterion(v *map[string]types.Condition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8786,18 +8788,21 @@ func awsRestjson1_deserializeDocumentCriterion(v *map[string]*types.Condition, v return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.Condition + var mv map[string]types.Condition if *v == nil { - mv = map[string]*types.Condition{} + mv = map[string]types.Condition{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.Condition - if err := awsRestjson1_deserializeDocumentCondition(&parsedVal, value); err != nil { + var parsedVal types.Condition + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentCondition(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -8884,7 +8889,7 @@ func awsRestjson1_deserializeDocumentDefaultServerSideEncryption(v **types.Defau if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EncryptionType = &jtv + sv.EncryptionType = ptr.String(jtv) } case "kmsMasterKeyArn": @@ -8893,7 +8898,7 @@ func awsRestjson1_deserializeDocumentDefaultServerSideEncryption(v **types.Defau if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KmsMasterKeyArn = &jtv + sv.KmsMasterKeyArn = ptr.String(jtv) } default: @@ -8933,7 +8938,7 @@ func awsRestjson1_deserializeDocumentDestination(v **types.Destination, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DestinationId = &jtv + sv.DestinationId = ptr.String(jtv) } case "destinationType": @@ -8991,7 +8996,7 @@ func awsRestjson1_deserializeDocumentDestinationProperties(v **types.Destination if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DestinationArn = &jtv + sv.DestinationArn = ptr.String(jtv) } case "kmsKeyArn": @@ -9000,7 +9005,7 @@ func awsRestjson1_deserializeDocumentDestinationProperties(v **types.Destination if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } default: @@ -9012,7 +9017,7 @@ func awsRestjson1_deserializeDocumentDestinationProperties(v **types.Destination return nil } -func awsRestjson1_deserializeDocumentDestinations(v *[]*types.Destination, value interface{}) error { +func awsRestjson1_deserializeDocumentDestinations(v *[]types.Destination, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9025,18 +9030,20 @@ func awsRestjson1_deserializeDocumentDestinations(v *[]*types.Destination, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Destination + var cv []types.Destination if *v == nil { - cv = []*types.Destination{} + cv = []types.Destination{} } else { cv = *v } for _, value := range shape { - var col *types.Destination - if err := awsRestjson1_deserializeDocumentDestination(&col, value); err != nil { + var col types.Destination + destAddr := &col + if err := awsRestjson1_deserializeDocumentDestination(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9044,7 +9051,7 @@ func awsRestjson1_deserializeDocumentDestinations(v *[]*types.Destination, value return nil } -func awsRestjson1_deserializeDocumentDetectorIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDetectorIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9057,21 +9064,21 @@ func awsRestjson1_deserializeDocumentDetectorIds(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DetectorId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9148,7 +9155,7 @@ func awsRestjson1_deserializeDocumentDnsRequestAction(v **types.DnsRequestAction if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Domain = &jtv + sv.Domain = ptr.String(jtv) } default: @@ -9188,7 +9195,7 @@ func awsRestjson1_deserializeDocumentDomainDetails(v **types.DomainDetails, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Domain = &jtv + sv.Domain = ptr.String(jtv) } default: @@ -9200,7 +9207,7 @@ func awsRestjson1_deserializeDocumentDomainDetails(v **types.DomainDetails, valu return nil } -func awsRestjson1_deserializeDocumentEq(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentEq(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9213,21 +9220,21 @@ func awsRestjson1_deserializeDocumentEq(v *[]*string, value interface{}) error { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -9236,7 +9243,7 @@ func awsRestjson1_deserializeDocumentEq(v *[]*string, value interface{}) error { return nil } -func awsRestjson1_deserializeDocumentEquals(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentEquals(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9249,21 +9256,21 @@ func awsRestjson1_deserializeDocumentEquals(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -9308,7 +9315,7 @@ func awsRestjson1_deserializeDocumentEvidence(v **types.Evidence, value interfac return nil } -func awsRestjson1_deserializeDocumentFilterNames(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9321,21 +9328,21 @@ func awsRestjson1_deserializeDocumentFilterNames(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FilterName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9372,7 +9379,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "arn": @@ -9381,7 +9388,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "confidence": @@ -9394,7 +9401,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if err != nil { return err } - sv.Confidence = &f64 + sv.Confidence = f64 } case "createdAt": @@ -9403,7 +9410,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "description": @@ -9412,7 +9419,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -9421,7 +9428,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "partition": @@ -9430,7 +9437,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Partition = &jtv + sv.Partition = ptr.String(jtv) } case "region": @@ -9439,7 +9446,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "resource": @@ -9453,7 +9460,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "service": @@ -9471,7 +9478,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if err != nil { return err } - sv.Severity = &f64 + sv.Severity = f64 } case "title": @@ -9480,7 +9487,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } case "type": @@ -9489,7 +9496,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected FindingType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "updatedAt": @@ -9498,7 +9505,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UpdatedAt = &jtv + sv.UpdatedAt = ptr.String(jtv) } default: @@ -9546,7 +9553,7 @@ func awsRestjson1_deserializeDocumentFindingCriteria(v **types.FindingCriteria, return nil } -func awsRestjson1_deserializeDocumentFindingIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentFindingIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9559,21 +9566,21 @@ func awsRestjson1_deserializeDocumentFindingIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FindingId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9582,7 +9589,7 @@ func awsRestjson1_deserializeDocumentFindingIds(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentFindings(v *[]*types.Finding, value interface{}) error { +func awsRestjson1_deserializeDocumentFindings(v *[]types.Finding, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9595,18 +9602,20 @@ func awsRestjson1_deserializeDocumentFindings(v *[]*types.Finding, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Finding + var cv []types.Finding if *v == nil { - cv = []*types.Finding{} + cv = []types.Finding{} } else { cv = *v } for _, value := range shape { - var col *types.Finding - if err := awsRestjson1_deserializeDocumentFinding(&col, value); err != nil { + var col types.Finding + destAddr := &col + if err := awsRestjson1_deserializeDocumentFinding(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9722,7 +9731,7 @@ func awsRestjson1_deserializeDocumentGeoLocation(v **types.GeoLocation, value in if err != nil { return err } - sv.Lat = &f64 + sv.Lat = f64 } case "lon": @@ -9735,7 +9744,7 @@ func awsRestjson1_deserializeDocumentGeoLocation(v **types.GeoLocation, value in if err != nil { return err } - sv.Lon = &f64 + sv.Lon = f64 } default: @@ -9775,7 +9784,7 @@ func awsRestjson1_deserializeDocumentIamInstanceProfile(v **types.IamInstancePro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "id": @@ -9784,7 +9793,7 @@ func awsRestjson1_deserializeDocumentIamInstanceProfile(v **types.IamInstancePro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -9824,7 +9833,7 @@ func awsRestjson1_deserializeDocumentInstanceDetails(v **types.InstanceDetails, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "iamInstanceProfile": @@ -9838,7 +9847,7 @@ func awsRestjson1_deserializeDocumentInstanceDetails(v **types.InstanceDetails, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ImageDescription = &jtv + sv.ImageDescription = ptr.String(jtv) } case "imageId": @@ -9847,7 +9856,7 @@ func awsRestjson1_deserializeDocumentInstanceDetails(v **types.InstanceDetails, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ImageId = &jtv + sv.ImageId = ptr.String(jtv) } case "instanceId": @@ -9856,7 +9865,7 @@ func awsRestjson1_deserializeDocumentInstanceDetails(v **types.InstanceDetails, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "instanceState": @@ -9865,7 +9874,7 @@ func awsRestjson1_deserializeDocumentInstanceDetails(v **types.InstanceDetails, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceState = &jtv + sv.InstanceState = ptr.String(jtv) } case "instanceType": @@ -9874,7 +9883,7 @@ func awsRestjson1_deserializeDocumentInstanceDetails(v **types.InstanceDetails, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "launchTime": @@ -9883,7 +9892,7 @@ func awsRestjson1_deserializeDocumentInstanceDetails(v **types.InstanceDetails, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LaunchTime = &jtv + sv.LaunchTime = ptr.String(jtv) } case "networkInterfaces": @@ -9897,7 +9906,7 @@ func awsRestjson1_deserializeDocumentInstanceDetails(v **types.InstanceDetails, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OutpostArn = &jtv + sv.OutpostArn = ptr.String(jtv) } case "platform": @@ -9906,7 +9915,7 @@ func awsRestjson1_deserializeDocumentInstanceDetails(v **types.InstanceDetails, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "productCodes": @@ -9956,7 +9965,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "__type": @@ -9965,7 +9974,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -10005,7 +10014,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "invitationId": @@ -10014,7 +10023,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InvitationId = &jtv + sv.InvitationId = ptr.String(jtv) } case "invitedAt": @@ -10023,7 +10032,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InvitedAt = &jtv + sv.InvitedAt = ptr.String(jtv) } case "relationshipStatus": @@ -10032,7 +10041,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RelationshipStatus = &jtv + sv.RelationshipStatus = ptr.String(jtv) } default: @@ -10044,7 +10053,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte return nil } -func awsRestjson1_deserializeDocumentInvitations(v *[]*types.Invitation, value interface{}) error { +func awsRestjson1_deserializeDocumentInvitations(v *[]types.Invitation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10057,18 +10066,20 @@ func awsRestjson1_deserializeDocumentInvitations(v *[]*types.Invitation, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Invitation + var cv []types.Invitation if *v == nil { - cv = []*types.Invitation{} + cv = []types.Invitation{} } else { cv = *v } for _, value := range shape { - var col *types.Invitation - if err := awsRestjson1_deserializeDocumentInvitation(&col, value); err != nil { + var col types.Invitation + destAddr := &col + if err := awsRestjson1_deserializeDocumentInvitation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10076,7 +10087,7 @@ func awsRestjson1_deserializeDocumentInvitations(v *[]*types.Invitation, value i return nil } -func awsRestjson1_deserializeDocumentIpSetIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentIpSetIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10089,21 +10100,21 @@ func awsRestjson1_deserializeDocumentIpSetIds(v *[]*string, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -10112,7 +10123,7 @@ func awsRestjson1_deserializeDocumentIpSetIds(v *[]*string, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentIpv6Addresses(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentIpv6Addresses(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10125,21 +10136,21 @@ func awsRestjson1_deserializeDocumentIpv6Addresses(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -10176,7 +10187,7 @@ func awsRestjson1_deserializeDocumentLocalIpDetails(v **types.LocalIpDetails, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IpAddressV4 = &jtv + sv.IpAddressV4 = ptr.String(jtv) } default: @@ -10220,7 +10231,7 @@ func awsRestjson1_deserializeDocumentLocalPortDetails(v **types.LocalPortDetails if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case "portName": @@ -10229,7 +10240,7 @@ func awsRestjson1_deserializeDocumentLocalPortDetails(v **types.LocalPortDetails if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PortName = &jtv + sv.PortName = ptr.String(jtv) } default: @@ -10269,7 +10280,7 @@ func awsRestjson1_deserializeDocumentMaster(v **types.Master, value interface{}) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "invitationId": @@ -10278,7 +10289,7 @@ func awsRestjson1_deserializeDocumentMaster(v **types.Master, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InvitationId = &jtv + sv.InvitationId = ptr.String(jtv) } case "invitedAt": @@ -10287,7 +10298,7 @@ func awsRestjson1_deserializeDocumentMaster(v **types.Master, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InvitedAt = &jtv + sv.InvitedAt = ptr.String(jtv) } case "relationshipStatus": @@ -10296,7 +10307,7 @@ func awsRestjson1_deserializeDocumentMaster(v **types.Master, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RelationshipStatus = &jtv + sv.RelationshipStatus = ptr.String(jtv) } default: @@ -10336,7 +10347,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "detectorId": @@ -10345,7 +10356,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected DetectorId to be of type string, got %T instead", value) } - sv.DetectorId = &jtv + sv.DetectorId = ptr.String(jtv) } case "email": @@ -10354,7 +10365,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "invitedAt": @@ -10363,7 +10374,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InvitedAt = &jtv + sv.InvitedAt = ptr.String(jtv) } case "masterId": @@ -10372,7 +10383,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MasterId = &jtv + sv.MasterId = ptr.String(jtv) } case "relationshipStatus": @@ -10381,7 +10392,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RelationshipStatus = &jtv + sv.RelationshipStatus = ptr.String(jtv) } case "updatedAt": @@ -10390,7 +10401,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UpdatedAt = &jtv + sv.UpdatedAt = ptr.String(jtv) } default: @@ -10430,7 +10441,7 @@ func awsRestjson1_deserializeDocumentMemberDataSourceConfiguration(v **types.Mem if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "dataSources": @@ -10447,7 +10458,7 @@ func awsRestjson1_deserializeDocumentMemberDataSourceConfiguration(v **types.Mem return nil } -func awsRestjson1_deserializeDocumentMemberDataSourceConfigurations(v *[]*types.MemberDataSourceConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentMemberDataSourceConfigurations(v *[]types.MemberDataSourceConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10460,18 +10471,20 @@ func awsRestjson1_deserializeDocumentMemberDataSourceConfigurations(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MemberDataSourceConfiguration + var cv []types.MemberDataSourceConfiguration if *v == nil { - cv = []*types.MemberDataSourceConfiguration{} + cv = []types.MemberDataSourceConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.MemberDataSourceConfiguration - if err := awsRestjson1_deserializeDocumentMemberDataSourceConfiguration(&col, value); err != nil { + var col types.MemberDataSourceConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentMemberDataSourceConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10479,7 +10492,7 @@ func awsRestjson1_deserializeDocumentMemberDataSourceConfigurations(v *[]*types. return nil } -func awsRestjson1_deserializeDocumentMembers(v *[]*types.Member, value interface{}) error { +func awsRestjson1_deserializeDocumentMembers(v *[]types.Member, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10492,18 +10505,20 @@ func awsRestjson1_deserializeDocumentMembers(v *[]*types.Member, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Member + var cv []types.Member if *v == nil { - cv = []*types.Member{} + cv = []types.Member{} } else { cv = *v } for _, value := range shape { - var col *types.Member - if err := awsRestjson1_deserializeDocumentMember(&col, value); err != nil { + var col types.Member + destAddr := &col + if err := awsRestjson1_deserializeDocumentMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10511,7 +10526,7 @@ func awsRestjson1_deserializeDocumentMembers(v *[]*types.Member, value interface return nil } -func awsRestjson1_deserializeDocumentNeq(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentNeq(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10524,21 +10539,21 @@ func awsRestjson1_deserializeDocumentNeq(v *[]*string, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -10575,7 +10590,7 @@ func awsRestjson1_deserializeDocumentNetworkConnectionAction(v **types.NetworkCo if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Blocked = &jtv + sv.Blocked = jtv } case "connectionDirection": @@ -10584,7 +10599,7 @@ func awsRestjson1_deserializeDocumentNetworkConnectionAction(v **types.NetworkCo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConnectionDirection = &jtv + sv.ConnectionDirection = ptr.String(jtv) } case "localIpDetails": @@ -10603,7 +10618,7 @@ func awsRestjson1_deserializeDocumentNetworkConnectionAction(v **types.NetworkCo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Protocol = &jtv + sv.Protocol = ptr.String(jtv) } case "remoteIpDetails": @@ -10658,7 +10673,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NetworkInterfaceId = &jtv + sv.NetworkInterfaceId = ptr.String(jtv) } case "privateDnsName": @@ -10667,7 +10682,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrivateDnsName = &jtv + sv.PrivateDnsName = ptr.String(jtv) } case "privateIpAddress": @@ -10676,7 +10691,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrivateIpAddress = &jtv + sv.PrivateIpAddress = ptr.String(jtv) } case "privateIpAddresses": @@ -10690,7 +10705,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PublicDnsName = &jtv + sv.PublicDnsName = ptr.String(jtv) } case "publicIp": @@ -10699,7 +10714,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PublicIp = &jtv + sv.PublicIp = ptr.String(jtv) } case "securityGroups": @@ -10713,7 +10728,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "vpcId": @@ -10722,7 +10737,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -10734,7 +10749,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface return nil } -func awsRestjson1_deserializeDocumentNetworkInterfaces(v *[]*types.NetworkInterface, value interface{}) error { +func awsRestjson1_deserializeDocumentNetworkInterfaces(v *[]types.NetworkInterface, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10747,18 +10762,20 @@ func awsRestjson1_deserializeDocumentNetworkInterfaces(v *[]*types.NetworkInterf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NetworkInterface + var cv []types.NetworkInterface if *v == nil { - cv = []*types.NetworkInterface{} + cv = []types.NetworkInterface{} } else { cv = *v } for _, value := range shape { - var col *types.NetworkInterface - if err := awsRestjson1_deserializeDocumentNetworkInterface(&col, value); err != nil { + var col types.NetworkInterface + destAddr := &col + if err := awsRestjson1_deserializeDocumentNetworkInterface(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10766,7 +10783,7 @@ func awsRestjson1_deserializeDocumentNetworkInterfaces(v *[]*types.NetworkInterf return nil } -func awsRestjson1_deserializeDocumentNotEquals(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentNotEquals(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10779,21 +10796,21 @@ func awsRestjson1_deserializeDocumentNotEquals(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -10830,7 +10847,7 @@ func awsRestjson1_deserializeDocumentOrganization(v **types.Organization, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Asn = &jtv + sv.Asn = ptr.String(jtv) } case "asnOrg": @@ -10839,7 +10856,7 @@ func awsRestjson1_deserializeDocumentOrganization(v **types.Organization, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AsnOrg = &jtv + sv.AsnOrg = ptr.String(jtv) } case "isp": @@ -10848,7 +10865,7 @@ func awsRestjson1_deserializeDocumentOrganization(v **types.Organization, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Isp = &jtv + sv.Isp = ptr.String(jtv) } case "org": @@ -10857,7 +10874,7 @@ func awsRestjson1_deserializeDocumentOrganization(v **types.Organization, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Org = &jtv + sv.Org = ptr.String(jtv) } default: @@ -10933,7 +10950,7 @@ func awsRestjson1_deserializeDocumentOrganizationS3LogsConfigurationResult(v **t if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoEnable = &jtv + sv.AutoEnable = jtv } default: @@ -10973,7 +10990,7 @@ func awsRestjson1_deserializeDocumentOwner(v **types.Owner, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -11054,7 +11071,7 @@ func awsRestjson1_deserializeDocumentPortProbeAction(v **types.PortProbeAction, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Blocked = &jtv + sv.Blocked = jtv } case "portProbeDetails": @@ -11117,7 +11134,7 @@ func awsRestjson1_deserializeDocumentPortProbeDetail(v **types.PortProbeDetail, return nil } -func awsRestjson1_deserializeDocumentPortProbeDetails(v *[]*types.PortProbeDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentPortProbeDetails(v *[]types.PortProbeDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11130,18 +11147,20 @@ func awsRestjson1_deserializeDocumentPortProbeDetails(v *[]*types.PortProbeDetai return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PortProbeDetail + var cv []types.PortProbeDetail if *v == nil { - cv = []*types.PortProbeDetail{} + cv = []types.PortProbeDetail{} } else { cv = *v } for _, value := range shape { - var col *types.PortProbeDetail - if err := awsRestjson1_deserializeDocumentPortProbeDetail(&col, value); err != nil { + var col types.PortProbeDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentPortProbeDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11177,7 +11196,7 @@ func awsRestjson1_deserializeDocumentPrivateIpAddressDetails(v **types.PrivateIp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrivateDnsName = &jtv + sv.PrivateDnsName = ptr.String(jtv) } case "privateIpAddress": @@ -11186,7 +11205,7 @@ func awsRestjson1_deserializeDocumentPrivateIpAddressDetails(v **types.PrivateIp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrivateIpAddress = &jtv + sv.PrivateIpAddress = ptr.String(jtv) } default: @@ -11198,7 +11217,7 @@ func awsRestjson1_deserializeDocumentPrivateIpAddressDetails(v **types.PrivateIp return nil } -func awsRestjson1_deserializeDocumentPrivateIpAddresses(v *[]*types.PrivateIpAddressDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentPrivateIpAddresses(v *[]types.PrivateIpAddressDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11211,18 +11230,20 @@ func awsRestjson1_deserializeDocumentPrivateIpAddresses(v *[]*types.PrivateIpAdd return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PrivateIpAddressDetails + var cv []types.PrivateIpAddressDetails if *v == nil { - cv = []*types.PrivateIpAddressDetails{} + cv = []types.PrivateIpAddressDetails{} } else { cv = *v } for _, value := range shape { - var col *types.PrivateIpAddressDetails - if err := awsRestjson1_deserializeDocumentPrivateIpAddressDetails(&col, value); err != nil { + var col types.PrivateIpAddressDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentPrivateIpAddressDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11258,7 +11279,7 @@ func awsRestjson1_deserializeDocumentProductCode(v **types.ProductCode, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "productType": @@ -11267,7 +11288,7 @@ func awsRestjson1_deserializeDocumentProductCode(v **types.ProductCode, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ProductType = &jtv + sv.ProductType = ptr.String(jtv) } default: @@ -11279,7 +11300,7 @@ func awsRestjson1_deserializeDocumentProductCode(v **types.ProductCode, value in return nil } -func awsRestjson1_deserializeDocumentProductCodes(v *[]*types.ProductCode, value interface{}) error { +func awsRestjson1_deserializeDocumentProductCodes(v *[]types.ProductCode, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11292,18 +11313,20 @@ func awsRestjson1_deserializeDocumentProductCodes(v *[]*types.ProductCode, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProductCode + var cv []types.ProductCode if *v == nil { - cv = []*types.ProductCode{} + cv = []types.ProductCode{} } else { cv = *v } for _, value := range shape { - var col *types.ProductCode - if err := awsRestjson1_deserializeDocumentProductCode(&col, value); err != nil { + var col types.ProductCode + destAddr := &col + if err := awsRestjson1_deserializeDocumentProductCode(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11339,7 +11362,7 @@ func awsRestjson1_deserializeDocumentPublicAccess(v **types.PublicAccess, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EffectivePermission = &jtv + sv.EffectivePermission = ptr.String(jtv) } case "permissionConfiguration": @@ -11399,7 +11422,7 @@ func awsRestjson1_deserializeDocumentRemoteIpDetails(v **types.RemoteIpDetails, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IpAddressV4 = &jtv + sv.IpAddressV4 = ptr.String(jtv) } case "organization": @@ -11448,7 +11471,7 @@ func awsRestjson1_deserializeDocumentRemotePortDetails(v **types.RemotePortDetai if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case "portName": @@ -11457,7 +11480,7 @@ func awsRestjson1_deserializeDocumentRemotePortDetails(v **types.RemotePortDetai if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PortName = &jtv + sv.PortName = ptr.String(jtv) } default: @@ -11507,7 +11530,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "s3BucketDetails": @@ -11552,7 +11575,7 @@ func awsRestjson1_deserializeDocumentS3BucketDetail(v **types.S3BucketDetail, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -11579,7 +11602,7 @@ func awsRestjson1_deserializeDocumentS3BucketDetail(v **types.S3BucketDetail, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "owner": @@ -11603,7 +11626,7 @@ func awsRestjson1_deserializeDocumentS3BucketDetail(v **types.S3BucketDetail, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11615,7 +11638,7 @@ func awsRestjson1_deserializeDocumentS3BucketDetail(v **types.S3BucketDetail, va return nil } -func awsRestjson1_deserializeDocumentS3BucketDetails(v *[]*types.S3BucketDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentS3BucketDetails(v *[]types.S3BucketDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11628,18 +11651,20 @@ func awsRestjson1_deserializeDocumentS3BucketDetails(v *[]*types.S3BucketDetail, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.S3BucketDetail + var cv []types.S3BucketDetail if *v == nil { - cv = []*types.S3BucketDetail{} + cv = []types.S3BucketDetail{} } else { cv = *v } for _, value := range shape { - var col *types.S3BucketDetail - if err := awsRestjson1_deserializeDocumentS3BucketDetail(&col, value); err != nil { + var col types.S3BucketDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentS3BucketDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11715,7 +11740,7 @@ func awsRestjson1_deserializeDocumentSecurityGroup(v **types.SecurityGroup, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } case "groupName": @@ -11724,7 +11749,7 @@ func awsRestjson1_deserializeDocumentSecurityGroup(v **types.SecurityGroup, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } default: @@ -11736,7 +11761,7 @@ func awsRestjson1_deserializeDocumentSecurityGroup(v **types.SecurityGroup, valu return nil } -func awsRestjson1_deserializeDocumentSecurityGroups(v *[]*types.SecurityGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityGroups(v *[]types.SecurityGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11749,18 +11774,20 @@ func awsRestjson1_deserializeDocumentSecurityGroups(v *[]*types.SecurityGroup, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SecurityGroup + var cv []types.SecurityGroup if *v == nil { - cv = []*types.SecurityGroup{} + cv = []types.SecurityGroup{} } else { cv = *v } for _, value := range shape { - var col *types.SecurityGroup - if err := awsRestjson1_deserializeDocumentSecurityGroup(&col, value); err != nil { + var col types.SecurityGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentSecurityGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11801,7 +11828,7 @@ func awsRestjson1_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Archived = &jtv + sv.Archived = jtv } case "count": @@ -11814,7 +11841,7 @@ func awsRestjson1_deserializeDocumentService(v **types.Service, value interface{ if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "detectorId": @@ -11823,7 +11850,7 @@ func awsRestjson1_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected DetectorId to be of type string, got %T instead", value) } - sv.DetectorId = &jtv + sv.DetectorId = ptr.String(jtv) } case "eventFirstSeen": @@ -11832,7 +11859,7 @@ func awsRestjson1_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EventFirstSeen = &jtv + sv.EventFirstSeen = ptr.String(jtv) } case "eventLastSeen": @@ -11841,7 +11868,7 @@ func awsRestjson1_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EventLastSeen = &jtv + sv.EventLastSeen = ptr.String(jtv) } case "evidence": @@ -11855,7 +11882,7 @@ func awsRestjson1_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceRole = &jtv + sv.ResourceRole = ptr.String(jtv) } case "serviceName": @@ -11864,7 +11891,7 @@ func awsRestjson1_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } case "userFeedback": @@ -11873,7 +11900,7 @@ func awsRestjson1_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserFeedback = &jtv + sv.UserFeedback = ptr.String(jtv) } default: @@ -11913,7 +11940,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -11922,7 +11949,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -11934,7 +11961,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11947,21 +11974,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -11970,7 +11997,7 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return nil } -func awsRestjson1_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11983,18 +12010,20 @@ func awsRestjson1_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12030,7 +12059,7 @@ func awsRestjson1_deserializeDocumentThreatIntelligenceDetail(v **types.ThreatIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ThreatListName = &jtv + sv.ThreatListName = ptr.String(jtv) } case "threatNames": @@ -12047,7 +12076,7 @@ func awsRestjson1_deserializeDocumentThreatIntelligenceDetail(v **types.ThreatIn return nil } -func awsRestjson1_deserializeDocumentThreatIntelligenceDetails(v *[]*types.ThreatIntelligenceDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentThreatIntelligenceDetails(v *[]types.ThreatIntelligenceDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12060,18 +12089,20 @@ func awsRestjson1_deserializeDocumentThreatIntelligenceDetails(v *[]*types.Threa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ThreatIntelligenceDetail + var cv []types.ThreatIntelligenceDetail if *v == nil { - cv = []*types.ThreatIntelligenceDetail{} + cv = []types.ThreatIntelligenceDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ThreatIntelligenceDetail - if err := awsRestjson1_deserializeDocumentThreatIntelligenceDetail(&col, value); err != nil { + var col types.ThreatIntelligenceDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentThreatIntelligenceDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12079,7 +12110,7 @@ func awsRestjson1_deserializeDocumentThreatIntelligenceDetails(v *[]*types.Threa return nil } -func awsRestjson1_deserializeDocumentThreatIntelSetIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentThreatIntelSetIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12092,21 +12123,21 @@ func awsRestjson1_deserializeDocumentThreatIntelSetIds(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -12115,7 +12146,7 @@ func awsRestjson1_deserializeDocumentThreatIntelSetIds(v *[]*string, value inter return nil } -func awsRestjson1_deserializeDocumentThreatNames(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentThreatNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12128,21 +12159,21 @@ func awsRestjson1_deserializeDocumentThreatNames(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -12179,7 +12210,7 @@ func awsRestjson1_deserializeDocumentTotal(v **types.Total, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Amount = &jtv + sv.Amount = ptr.String(jtv) } case "unit": @@ -12188,7 +12219,7 @@ func awsRestjson1_deserializeDocumentTotal(v **types.Total, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } default: @@ -12228,7 +12259,7 @@ func awsRestjson1_deserializeDocumentUnprocessedAccount(v **types.UnprocessedAcc if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "result": @@ -12237,7 +12268,7 @@ func awsRestjson1_deserializeDocumentUnprocessedAccount(v **types.UnprocessedAcc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Result = &jtv + sv.Result = ptr.String(jtv) } default: @@ -12249,7 +12280,7 @@ func awsRestjson1_deserializeDocumentUnprocessedAccount(v **types.UnprocessedAcc return nil } -func awsRestjson1_deserializeDocumentUnprocessedAccounts(v *[]*types.UnprocessedAccount, value interface{}) error { +func awsRestjson1_deserializeDocumentUnprocessedAccounts(v *[]types.UnprocessedAccount, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12262,18 +12293,20 @@ func awsRestjson1_deserializeDocumentUnprocessedAccounts(v *[]*types.Unprocessed return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UnprocessedAccount + var cv []types.UnprocessedAccount if *v == nil { - cv = []*types.UnprocessedAccount{} + cv = []types.UnprocessedAccount{} } else { cv = *v } for _, value := range shape { - var col *types.UnprocessedAccount - if err := awsRestjson1_deserializeDocumentUnprocessedAccount(&col, value); err != nil { + var col types.UnprocessedAccount + destAddr := &col + if err := awsRestjson1_deserializeDocumentUnprocessedAccount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12309,7 +12342,7 @@ func awsRestjson1_deserializeDocumentUsageAccountResult(v **types.UsageAccountRe if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "total": @@ -12326,7 +12359,7 @@ func awsRestjson1_deserializeDocumentUsageAccountResult(v **types.UsageAccountRe return nil } -func awsRestjson1_deserializeDocumentUsageAccountResultList(v *[]*types.UsageAccountResult, value interface{}) error { +func awsRestjson1_deserializeDocumentUsageAccountResultList(v *[]types.UsageAccountResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12339,18 +12372,20 @@ func awsRestjson1_deserializeDocumentUsageAccountResultList(v *[]*types.UsageAcc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UsageAccountResult + var cv []types.UsageAccountResult if *v == nil { - cv = []*types.UsageAccountResult{} + cv = []types.UsageAccountResult{} } else { cv = *v } for _, value := range shape { - var col *types.UsageAccountResult - if err := awsRestjson1_deserializeDocumentUsageAccountResult(&col, value); err != nil { + var col types.UsageAccountResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentUsageAccountResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12403,7 +12438,7 @@ func awsRestjson1_deserializeDocumentUsageDataSourceResult(v **types.UsageDataSo return nil } -func awsRestjson1_deserializeDocumentUsageDataSourceResultList(v *[]*types.UsageDataSourceResult, value interface{}) error { +func awsRestjson1_deserializeDocumentUsageDataSourceResultList(v *[]types.UsageDataSourceResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12416,18 +12451,20 @@ func awsRestjson1_deserializeDocumentUsageDataSourceResultList(v *[]*types.Usage return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UsageDataSourceResult + var cv []types.UsageDataSourceResult if *v == nil { - cv = []*types.UsageDataSourceResult{} + cv = []types.UsageDataSourceResult{} } else { cv = *v } for _, value := range shape { - var col *types.UsageDataSourceResult - if err := awsRestjson1_deserializeDocumentUsageDataSourceResult(&col, value); err != nil { + var col types.UsageDataSourceResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentUsageDataSourceResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12463,7 +12500,7 @@ func awsRestjson1_deserializeDocumentUsageResourceResult(v **types.UsageResource if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "total": @@ -12480,7 +12517,7 @@ func awsRestjson1_deserializeDocumentUsageResourceResult(v **types.UsageResource return nil } -func awsRestjson1_deserializeDocumentUsageResourceResultList(v *[]*types.UsageResourceResult, value interface{}) error { +func awsRestjson1_deserializeDocumentUsageResourceResultList(v *[]types.UsageResourceResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12493,18 +12530,20 @@ func awsRestjson1_deserializeDocumentUsageResourceResultList(v *[]*types.UsageRe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UsageResourceResult + var cv []types.UsageResourceResult if *v == nil { - cv = []*types.UsageResourceResult{} + cv = []types.UsageResourceResult{} } else { cv = *v } for _, value := range shape { - var col *types.UsageResourceResult - if err := awsRestjson1_deserializeDocumentUsageResourceResult(&col, value); err != nil { + var col types.UsageResourceResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentUsageResourceResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/guardduty/go.mod b/service/guardduty/go.mod index 152edc84643..5986d676629 100644 --- a/service/guardduty/go.mod +++ b/service/guardduty/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/guardduty go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/guardduty/serializers.go b/service/guardduty/serializers.go index 96e80ff7e3d..1c059d7cc4a 100644 --- a/service/guardduty/serializers.go +++ b/service/guardduty/serializers.go @@ -76,13 +76,10 @@ func awsRestjson1_serializeOpHttpBindingsAcceptInvitationInput(v *AcceptInvitati return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -170,13 +167,10 @@ func awsRestjson1_serializeOpHttpBindingsArchiveFindingsInput(v *ArchiveFindings return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -276,9 +270,9 @@ func awsRestjson1_serializeOpDocumentCreateDetectorInput(v *CreateDetectorInput, } } - if v.Enable != nil { + if v.Enable { ok := object.Key("enable") - ok.Boolean(*v.Enable) + ok.Boolean(v.Enable) } if len(v.FindingPublishingFrequency) > 0 { @@ -358,13 +352,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateFilterInput(v *CreateFilterInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -404,9 +395,9 @@ func awsRestjson1_serializeOpDocumentCreateFilterInput(v *CreateFilterInput, val ok.String(*v.Name) } - if v.Rank != nil { + if v.Rank != 0 { ok := object.Key("rank") - ok.Integer(*v.Rank) + ok.Integer(v.Rank) } if v.Tags != nil { @@ -481,13 +472,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateIPSetInput(v *CreateIPSetInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -500,9 +488,9 @@ func awsRestjson1_serializeOpDocumentCreateIPSetInput(v *CreateIPSetInput, value object := value.Object() defer object.Close() - if v.Activate != nil { + if v.Activate { ok := object.Key("activate") - ok.Boolean(*v.Activate) + ok.Boolean(v.Activate) } if v.ClientToken != nil { @@ -597,13 +585,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateMembersInput(v *CreateMembersInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -688,13 +673,10 @@ func awsRestjson1_serializeOpHttpBindingsCreatePublishingDestinationInput(v *Cre return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -789,13 +771,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateSampleFindingsInput(v *CreateSamp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -880,13 +859,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateThreatIntelSetInput(v *CreateThre return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -899,9 +875,9 @@ func awsRestjson1_serializeOpDocumentCreateThreatIntelSetInput(v *CreateThreatIn object := value.Object() defer object.Close() - if v.Activate != nil { + if v.Activate { ok := object.Key("activate") - ok.Boolean(*v.Activate) + ok.Boolean(v.Activate) } if v.ClientToken != nil { @@ -1060,13 +1036,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDetectorInput(v *DeleteDetectorIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -1126,25 +1099,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFilterInput(v *DeleteFilterInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.FilterName == nil { + if v.FilterName == nil || len(*v.FilterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FilterName must not be empty")} } if v.FilterName != nil { - if len(*v.FilterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FilterName must not be empty")} - } if err := encoder.SetURI("FilterName").String(*v.FilterName); err != nil { return err } @@ -1279,25 +1246,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteIPSetInput(v *DeleteIPSetInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.IpSetId == nil { + if v.IpSetId == nil || len(*v.IpSetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IpSetId must not be empty")} } if v.IpSetId != nil { - if len(*v.IpSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IpSetId must not be empty")} - } if err := encoder.SetURI("IpSetId").String(*v.IpSetId); err != nil { return err } @@ -1368,13 +1329,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMembersInput(v *DeleteMembersInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -1448,25 +1406,19 @@ func awsRestjson1_serializeOpHttpBindingsDeletePublishingDestinationInput(v *Del return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DestinationId == nil { + if v.DestinationId == nil || len(*v.DestinationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DestinationId must not be empty")} } if v.DestinationId != nil { - if len(*v.DestinationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DestinationId must not be empty")} - } if err := encoder.SetURI("DestinationId").String(*v.DestinationId); err != nil { return err } } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -1526,25 +1478,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteThreatIntelSetInput(v *DeleteThre return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.ThreatIntelSetId == nil { + if v.ThreatIntelSetId == nil || len(*v.ThreatIntelSetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ThreatIntelSetId must not be empty")} } if v.ThreatIntelSetId != nil { - if len(*v.ThreatIntelSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThreatIntelSetId must not be empty")} - } if err := encoder.SetURI("ThreatIntelSetId").String(*v.ThreatIntelSetId); err != nil { return err } @@ -1604,13 +1550,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeOrganizationConfigurationInput( return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -1670,25 +1613,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribePublishingDestinationInput(v *D return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DestinationId == nil { + if v.DestinationId == nil || len(*v.DestinationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DestinationId must not be empty")} } if v.DestinationId != nil { - if len(*v.DestinationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DestinationId must not be empty")} - } if err := encoder.SetURI("DestinationId").String(*v.DestinationId); err != nil { return err } } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -1821,13 +1758,10 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateFromMasterAccountInput(v *D return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -1898,13 +1832,10 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateMembersInput(v *Disassociat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -2051,13 +1982,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDetectorInput(v *GetDetectorInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -2117,25 +2045,19 @@ func awsRestjson1_serializeOpHttpBindingsGetFilterInput(v *GetFilterInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.FilterName == nil { + if v.FilterName == nil || len(*v.FilterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FilterName must not be empty")} } if v.FilterName != nil { - if len(*v.FilterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FilterName must not be empty")} - } if err := encoder.SetURI("FilterName").String(*v.FilterName); err != nil { return err } @@ -2206,13 +2128,10 @@ func awsRestjson1_serializeOpHttpBindingsGetFindingsInput(v *GetFindingsInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -2304,13 +2223,10 @@ func awsRestjson1_serializeOpHttpBindingsGetFindingsStatisticsInput(v *GetFindin return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -2441,25 +2357,19 @@ func awsRestjson1_serializeOpHttpBindingsGetIPSetInput(v *GetIPSetInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.IpSetId == nil { + if v.IpSetId == nil || len(*v.IpSetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IpSetId must not be empty")} } if v.IpSetId != nil { - if len(*v.IpSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IpSetId must not be empty")} - } if err := encoder.SetURI("IpSetId").String(*v.IpSetId); err != nil { return err } @@ -2519,13 +2429,10 @@ func awsRestjson1_serializeOpHttpBindingsGetMasterAccountInput(v *GetMasterAccou return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -2596,13 +2503,10 @@ func awsRestjson1_serializeOpHttpBindingsGetMemberDetectorsInput(v *GetMemberDet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -2687,13 +2591,10 @@ func awsRestjson1_serializeOpHttpBindingsGetMembersInput(v *GetMembersInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -2767,25 +2668,19 @@ func awsRestjson1_serializeOpHttpBindingsGetThreatIntelSetInput(v *GetThreatInte return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.ThreatIntelSetId == nil { + if v.ThreatIntelSetId == nil || len(*v.ThreatIntelSetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ThreatIntelSetId must not be empty")} } if v.ThreatIntelSetId != nil { - if len(*v.ThreatIntelSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThreatIntelSetId must not be empty")} - } if err := encoder.SetURI("ThreatIntelSetId").String(*v.ThreatIntelSetId); err != nil { return err } @@ -2856,13 +2751,10 @@ func awsRestjson1_serializeOpHttpBindingsGetUsageStatisticsInput(v *GetUsageStat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -2875,9 +2767,9 @@ func awsRestjson1_serializeOpDocumentGetUsageStatisticsInput(v *GetUsageStatisti object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2967,13 +2859,10 @@ func awsRestjson1_serializeOpHttpBindingsInviteMembersInput(v *InviteMembersInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -2993,9 +2882,9 @@ func awsRestjson1_serializeOpDocumentInviteMembersInput(v *InviteMembersInput, v } } - if v.DisableEmailNotification != nil { + if v.DisableEmailNotification { ok := object.Key("disableEmailNotification") - ok.Boolean(*v.DisableEmailNotification) + ok.Boolean(v.DisableEmailNotification) } if v.Message != nil { @@ -3057,8 +2946,8 @@ func awsRestjson1_serializeOpHttpBindingsListDetectorsInput(v *ListDetectorsInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -3119,20 +3008,17 @@ func awsRestjson1_serializeOpHttpBindingsListFiltersInput(v *ListFiltersInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -3204,13 +3090,10 @@ func awsRestjson1_serializeOpHttpBindingsListFindingsInput(v *ListFindingsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -3230,9 +3113,9 @@ func awsRestjson1_serializeOpDocumentListFindingsInput(v *ListFindingsInput, val } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -3301,8 +3184,8 @@ func awsRestjson1_serializeOpHttpBindingsListInvitationsInput(v *ListInvitations return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -3363,20 +3246,17 @@ func awsRestjson1_serializeOpHttpBindingsListIPSetsInput(v *ListIPSetsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -3437,20 +3317,17 @@ func awsRestjson1_serializeOpHttpBindingsListMembersInput(v *ListMembersInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -3515,8 +3392,8 @@ func awsRestjson1_serializeOpHttpBindingsListOrganizationAdminAccountsInput(v *L return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -3577,20 +3454,17 @@ func awsRestjson1_serializeOpHttpBindingsListPublishingDestinationsInput(v *List return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -3651,13 +3525,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3717,20 +3588,17 @@ func awsRestjson1_serializeOpHttpBindingsListThreatIntelSetsInput(v *ListThreatI return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -3802,13 +3670,10 @@ func awsRestjson1_serializeOpHttpBindingsStartMonitoringMembersInput(v *StartMon return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -3893,13 +3758,10 @@ func awsRestjson1_serializeOpHttpBindingsStopMonitoringMembersInput(v *StopMonit return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -3984,13 +3846,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -4075,13 +3934,10 @@ func awsRestjson1_serializeOpHttpBindingsUnarchiveFindingsInput(v *UnarchiveFind return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -4155,13 +4011,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -4169,10 +4022,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -4241,13 +4091,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDetectorInput(v *UpdateDetectorIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -4267,9 +4114,9 @@ func awsRestjson1_serializeOpDocumentUpdateDetectorInput(v *UpdateDetectorInput, } } - if v.Enable != nil { + if v.Enable { ok := object.Key("enable") - ok.Boolean(*v.Enable) + ok.Boolean(v.Enable) } if len(v.FindingPublishingFrequency) > 0 { @@ -4342,25 +4189,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFilterInput(v *UpdateFilterInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.FilterName == nil { + if v.FilterName == nil || len(*v.FilterName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FilterName must not be empty")} } if v.FilterName != nil { - if len(*v.FilterName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FilterName must not be empty")} - } if err := encoder.SetURI("FilterName").String(*v.FilterName); err != nil { return err } @@ -4390,9 +4231,9 @@ func awsRestjson1_serializeOpDocumentUpdateFilterInput(v *UpdateFilterInput, val } } - if v.Rank != nil { + if v.Rank != 0 { ok := object.Key("rank") - ok.Integer(*v.Rank) + ok.Integer(v.Rank) } return nil @@ -4460,13 +4301,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFindingsFeedbackInput(v *UpdateFi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -4561,25 +4399,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateIPSetInput(v *UpdateIPSetInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.IpSetId == nil { + if v.IpSetId == nil || len(*v.IpSetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IpSetId must not be empty")} } if v.IpSetId != nil { - if len(*v.IpSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IpSetId must not be empty")} - } if err := encoder.SetURI("IpSetId").String(*v.IpSetId); err != nil { return err } @@ -4592,9 +4424,9 @@ func awsRestjson1_serializeOpDocumentUpdateIPSetInput(v *UpdateIPSetInput, value object := value.Object() defer object.Close() - if v.Activate != nil { + if v.Activate { ok := object.Key("activate") - ok.Boolean(*v.Activate) + ok.Boolean(v.Activate) } if v.Location != nil { @@ -4672,13 +4504,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateMemberDetectorsInput(v *UpdateMem return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -4770,13 +4599,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateOrganizationConfigurationInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -4789,9 +4615,9 @@ func awsRestjson1_serializeOpDocumentUpdateOrganizationConfigurationInput(v *Upd object := value.Object() defer object.Close() - if v.AutoEnable != nil { + if v.AutoEnable { ok := object.Key("autoEnable") - ok.Boolean(*v.AutoEnable) + ok.Boolean(v.AutoEnable) } if v.DataSources != nil { @@ -4866,25 +4692,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdatePublishingDestinationInput(v *Upd return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DestinationId == nil { + if v.DestinationId == nil || len(*v.DestinationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DestinationId must not be empty")} } if v.DestinationId != nil { - if len(*v.DestinationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DestinationId must not be empty")} - } if err := encoder.SetURI("DestinationId").String(*v.DestinationId); err != nil { return err } } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } @@ -4969,25 +4789,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateThreatIntelSetInput(v *UpdateThre return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorId == nil { + if v.DetectorId == nil || len(*v.DetectorId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} } if v.DetectorId != nil { - if len(*v.DetectorId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DetectorId must not be empty")} - } if err := encoder.SetURI("DetectorId").String(*v.DetectorId); err != nil { return err } } - if v.ThreatIntelSetId == nil { + if v.ThreatIntelSetId == nil || len(*v.ThreatIntelSetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ThreatIntelSetId must not be empty")} } if v.ThreatIntelSetId != nil { - if len(*v.ThreatIntelSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThreatIntelSetId must not be empty")} - } if err := encoder.SetURI("ThreatIntelSetId").String(*v.ThreatIntelSetId); err != nil { return err } @@ -5000,9 +4814,9 @@ func awsRestjson1_serializeOpDocumentUpdateThreatIntelSetInput(v *UpdateThreatIn object := value.Object() defer object.Close() - if v.Activate != nil { + if v.Activate { ok := object.Key("activate") - ok.Boolean(*v.Activate) + ok.Boolean(v.Activate) } if v.Location != nil { @@ -5035,34 +4849,26 @@ func awsRestjson1_serializeDocumentAccountDetail(v *types.AccountDetail, value s return nil } -func awsRestjson1_serializeDocumentAccountDetails(v []*types.AccountDetail, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAccountDetails(v []types.AccountDetail, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAccountDetail(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAccountDetail(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentAccountIds(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAccountIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5085,44 +4891,44 @@ func awsRestjson1_serializeDocumentCondition(v *types.Condition, value smithyjso } } - if v.GreaterThan != nil { + if v.GreaterThan != 0 { ok := object.Key("greaterThan") - ok.Long(*v.GreaterThan) + ok.Long(v.GreaterThan) } - if v.GreaterThanOrEqual != nil { + if v.GreaterThanOrEqual != 0 { ok := object.Key("greaterThanOrEqual") - ok.Long(*v.GreaterThanOrEqual) + ok.Long(v.GreaterThanOrEqual) } - if v.Gt != nil { + if v.Gt != 0 { ok := object.Key("gt") - ok.Integer(*v.Gt) + ok.Integer(v.Gt) } - if v.Gte != nil { + if v.Gte != 0 { ok := object.Key("gte") - ok.Integer(*v.Gte) + ok.Integer(v.Gte) } - if v.LessThan != nil { + if v.LessThan != 0 { ok := object.Key("lessThan") - ok.Long(*v.LessThan) + ok.Long(v.LessThan) } - if v.LessThanOrEqual != nil { + if v.LessThanOrEqual != 0 { ok := object.Key("lessThanOrEqual") - ok.Long(*v.LessThanOrEqual) + ok.Long(v.LessThanOrEqual) } - if v.Lt != nil { + if v.Lt != 0 { ok := object.Key("lt") - ok.Integer(*v.Lt) + ok.Integer(v.Lt) } - if v.Lte != nil { + if v.Lte != 0 { ok := object.Key("lte") - ok.Integer(*v.Lte) + ok.Integer(v.Lte) } if v.Neq != nil { @@ -5142,17 +4948,14 @@ func awsRestjson1_serializeDocumentCondition(v *types.Condition, value smithyjso return nil } -func awsRestjson1_serializeDocumentCriterion(v map[string]*types.Condition, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCriterion(v map[string]types.Condition, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentCondition(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentCondition(&mapVar, om); err != nil { return err } } @@ -5201,32 +5004,24 @@ func awsRestjson1_serializeDocumentDestinationProperties(v *types.DestinationPro return nil } -func awsRestjson1_serializeDocumentEq(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEq(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentEquals(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEquals(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5245,17 +5040,13 @@ func awsRestjson1_serializeDocumentFindingCriteria(v *types.FindingCriteria, val return nil } -func awsRestjson1_serializeDocumentFindingIds(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFindingIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5271,47 +5062,35 @@ func awsRestjson1_serializeDocumentFindingStatisticTypes(v []types.FindingStatis return nil } -func awsRestjson1_serializeDocumentFindingTypes(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFindingTypes(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentNeq(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNeq(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentNotEquals(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNotEquals(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5334,25 +5113,21 @@ func awsRestjson1_serializeDocumentOrganizationS3LogsConfiguration(v *types.Orga object := value.Object() defer object.Close() - if v.AutoEnable != nil { + if v.AutoEnable { ok := object.Key("autoEnable") - ok.Boolean(*v.AutoEnable) + ok.Boolean(v.AutoEnable) } return nil } -func awsRestjson1_serializeDocumentResourceList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourceList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5361,9 +5136,9 @@ func awsRestjson1_serializeDocumentS3LogsConfiguration(v *types.S3LogsConfigurat object := value.Object() defer object.Close() - if v.Enable != nil { + if v.Enable { ok := object.Key("enable") - ok.Boolean(*v.Enable) + ok.Boolean(v.Enable) } return nil @@ -5386,17 +5161,13 @@ func awsRestjson1_serializeDocumentSortCriteria(v *types.SortCriteria, value smi return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/guardduty/types/types.go b/service/guardduty/types/types.go index f97c67c7c2c..cc1f9926c76 100644 --- a/service/guardduty/types/types.go +++ b/service/guardduty/types/types.go @@ -11,11 +11,11 @@ type AccessControlList struct { // A value that indicates whether public read access for the bucket is enabled // through an Access Control List (ACL). - AllowsPublicReadAccess *bool + AllowsPublicReadAccess bool // A value that indicates whether public write access for the bucket is enabled // through an Access Control List (ACL). - AllowsPublicWriteAccess *bool + AllowsPublicWriteAccess bool } // Contains information about the access keys. @@ -114,16 +114,16 @@ type AwsApiCallAction struct { type BlockPublicAccess struct { // Indicates if S3 Block Public Access is set to BlockPublicAcls. - BlockPublicAcls *bool + BlockPublicAcls bool // Indicates if S3 Block Public Access is set to BlockPublicPolicy. - BlockPublicPolicy *bool + BlockPublicPolicy bool // Indicates if S3 Block Public Access is set to IgnorePublicAcls. - IgnorePublicAcls *bool + IgnorePublicAcls bool // Indicates if S3 Block Public Access is set to RestrictPublicBuckets. - RestrictPublicBuckets *bool + RestrictPublicBuckets bool } // Contains information about the bucket level permissions for the S3 bucket. @@ -145,11 +145,11 @@ type BucketPolicy struct { // A value that indicates whether public read access for the bucket is enabled // through a bucket policy. - AllowsPublicReadAccess *bool + AllowsPublicReadAccess bool // A value that indicates whether public write access for the bucket is enabled // through a bucket policy. - AllowsPublicWriteAccess *bool + AllowsPublicWriteAccess bool } // Contains information about the city associated with the IP address. @@ -174,51 +174,51 @@ type Condition struct { // Represents the equal condition to be applied to a single field when querying for // findings. - Eq []*string + Eq []string // Represents an equal condition to be applied to a single field when querying for // findings. - Equals []*string + Equals []string // Represents a greater than condition to be applied to a single field when // querying for findings. - GreaterThan *int64 + GreaterThan int64 // Represents a greater than or equal condition to be applied to a single field // when querying for findings. - GreaterThanOrEqual *int64 + GreaterThanOrEqual int64 // Represents a greater than condition to be applied to a single field when // querying for findings. - Gt *int32 + Gt int32 // Represents a greater than or equal condition to be applied to a single field // when querying for findings. - Gte *int32 + Gte int32 // Represents a less than condition to be applied to a single field when querying // for findings. - LessThan *int64 + LessThan int64 // Represents a less than or equal condition to be applied to a single field when // querying for findings. - LessThanOrEqual *int64 + LessThanOrEqual int64 // Represents a less than condition to be applied to a single field when querying // for findings. - Lt *int32 + Lt int32 // Represents a less than or equal condition to be applied to a single field when // querying for findings. - Lte *int32 + Lte int32 // Represents the not equal condition to be applied to a single field when querying // for findings. - Neq []*string + Neq []string // Represents a not equal condition to be applied to a single field when querying // for findings. - NotEquals []*string + NotEquals []string } // Contains information about the country where the remote IP address is located. @@ -338,7 +338,7 @@ type DomainDetails struct { type Evidence struct { // A list of threat intelligence details related to the evidence. - ThreatIntelligenceDetails []*ThreatIntelligenceDetail + ThreatIntelligenceDetails []ThreatIntelligenceDetail } // Contains information about the finding, which is generated when abnormal or @@ -384,7 +384,7 @@ type Finding struct { // The severity of the finding. // // This member is required. - Severity *float64 + Severity float64 // The type of finding. // @@ -397,7 +397,7 @@ type Finding struct { UpdatedAt *string // The confidence score for the finding. - Confidence *float64 + Confidence float64 // The description of the finding. Description *string @@ -417,14 +417,14 @@ type FindingCriteria struct { // Represents a map of finding properties that match specified conditions and // values when querying findings. - Criterion map[string]*Condition + Criterion map[string]Condition } // Contains information about finding statistics. type FindingStatistics struct { // Represents a map of severity to count statistics for a set of findings. - CountBySeverity map[string]*int32 + CountBySeverity map[string]int32 } // Contains information on the status of VPC flow logs as a data source. @@ -440,10 +440,10 @@ type FlowLogsConfigurationResult struct { type GeoLocation struct { // The latitude information of the remote IP address. - Lat *float64 + Lat float64 // The longitude information of the remote IP address. - Lon *float64 + Lon float64 } // Contains information about the EC2 instance profile. @@ -484,7 +484,7 @@ type InstanceDetails struct { LaunchTime *string // The elastic network interface information of the EC2 instance. - NetworkInterfaces []*NetworkInterface + NetworkInterfaces []NetworkInterface // The Amazon Resource Name (ARN) of the AWS Outpost. Only applicable to AWS // Outposts instances. @@ -494,10 +494,10 @@ type InstanceDetails struct { Platform *string // The product code of the EC2 instance. - ProductCodes []*ProductCode + ProductCodes []ProductCode // The tags of the EC2 instance. - Tags []*Tag + Tags []Tag } // Contains information about the invitation to become a member account. @@ -528,7 +528,7 @@ type LocalIpDetails struct { type LocalPortDetails struct { // The port number of the local connection. - Port *int32 + Port int32 // The port name of the local connection. PortName *string @@ -604,7 +604,7 @@ type MemberDataSourceConfiguration struct { type NetworkConnectionAction struct { // Indicates whether EC2 blocked the network connection to your instance. - Blocked *bool + Blocked bool // The network connection direction. ConnectionDirection *string @@ -629,7 +629,7 @@ type NetworkConnectionAction struct { type NetworkInterface struct { // A list of IPv6 addresses for the EC2 instance. - Ipv6Addresses []*string + Ipv6Addresses []string // The ID of the network interface. NetworkInterfaceId *string @@ -641,7 +641,7 @@ type NetworkInterface struct { PrivateIpAddress *string // Other private IP address information of the EC2 instance. - PrivateIpAddresses []*PrivateIpAddressDetails + PrivateIpAddresses []PrivateIpAddressDetails // The public DNS name of the EC2 instance. PublicDnsName *string @@ -650,7 +650,7 @@ type NetworkInterface struct { PublicIp *string // The security groups associated with the EC2 instance. - SecurityGroups []*SecurityGroup + SecurityGroups []SecurityGroup // The subnet ID of the EC2 instance. SubnetId *string @@ -703,7 +703,7 @@ type OrganizationS3LogsConfiguration struct { // automatically as a data source for the organization. // // This member is required. - AutoEnable *bool + AutoEnable bool } // The current configuration of S3 data event logs as a data source for the @@ -714,7 +714,7 @@ type OrganizationS3LogsConfigurationResult struct { // new members of the organization. // // This member is required. - AutoEnable *bool + AutoEnable bool } // Contains information on the owner of the bucket. @@ -741,10 +741,10 @@ type PortProbeAction struct { // Indicates whether EC2 blocked the port probe to the instance, such as with an // ACL. - Blocked *bool + Blocked bool // A list of objects related to port probe details. - PortProbeDetails []*PortProbeDetail + PortProbeDetails []PortProbeDetail } // Contains information about the port probe details. @@ -814,7 +814,7 @@ type RemoteIpDetails struct { type RemotePortDetails struct { // The port number of the remote connection. - Port *int32 + Port int32 // The port name of the remote connection. PortName *string @@ -836,7 +836,7 @@ type Resource struct { ResourceType *string // Contains information on the S3 bucket. - S3BucketDetails []*S3BucketDetail + S3BucketDetails []S3BucketDetail } // Contains information on the S3 bucket. @@ -861,7 +861,7 @@ type S3BucketDetail struct { PublicAccess *PublicAccess // All tags attached to the S3 bucket - Tags []*Tag + Tags []Tag // Describes whether the bucket is a source or destination bucket. Type *string @@ -873,7 +873,7 @@ type S3LogsConfiguration struct { // The status of S3 data event logs as a data source. // // This member is required. - Enable *bool + Enable bool } // Describes whether S3 data event logs will be enabled as a data source. @@ -903,10 +903,10 @@ type Service struct { Action *Action // Indicates whether this finding is archived. - Archived *bool + Archived bool // The total count of the occurrences of this finding type. - Count *int32 + Count int32 // The detector ID for the GuardDuty service. DetectorId *string @@ -961,7 +961,7 @@ type ThreatIntelligenceDetail struct { // A list of names of the threats in the threat intelligence list that triggered // the finding. - ThreatNames []*string + ThreatNames []string } // Contains the total usage with the corresponding currency unit for that value. @@ -1007,11 +1007,11 @@ type UsageCriteria struct { DataSources []DataSource // The account IDs to aggregate usage statistics from. - AccountIds []*string + AccountIds []string // The resources to aggregate usage statistics from. Only accepts exact resource // names. - Resources []*string + Resources []string } // Contains information on the result of usage based on data source type. @@ -1039,15 +1039,15 @@ type UsageResourceResult struct { type UsageStatistics struct { // The usage statistic sum organized by account ID. - SumByAccount []*UsageAccountResult + SumByAccount []UsageAccountResult // The usage statistic sum organized by on data source. - SumByDataSource []*UsageDataSourceResult + SumByDataSource []UsageDataSourceResult // The usage statistic sum organized by resource. - SumByResource []*UsageResourceResult + SumByResource []UsageResourceResult // Lists the top 50 resources that have generated the most GuardDuty usage, in // order from most to least expensive. - TopResources []*UsageResourceResult + TopResources []UsageResourceResult } diff --git a/service/guardduty/validators.go b/service/guardduty/validators.go index 35cbb5bf785..e232e078776 100644 --- a/service/guardduty/validators.go +++ b/service/guardduty/validators.go @@ -1324,13 +1324,13 @@ func validateAccountDetail(v *types.AccountDetail) error { } } -func validateAccountDetails(v []*types.AccountDetail) error { +func validateAccountDetails(v []types.AccountDetail) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AccountDetails"} for i := range v { - if err := validateAccountDetail(v[i]); err != nil { + if err := validateAccountDetail(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1380,9 +1380,6 @@ func validateOrganizationS3LogsConfiguration(v *types.OrganizationS3LogsConfigur return nil } invalidParams := smithy.InvalidParamsError{Context: "OrganizationS3LogsConfiguration"} - if v.AutoEnable == nil { - invalidParams.Add(smithy.NewErrParamRequired("AutoEnable")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1395,9 +1392,6 @@ func validateS3LogsConfiguration(v *types.S3LogsConfiguration) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "S3LogsConfiguration"} - if v.Enable == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enable")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1469,9 +1463,6 @@ func validateOpCreateDetectorInput(v *CreateDetectorInput) error { invalidParams.AddNested("DataSources", err.(smithy.InvalidParamsError)) } } - if v.Enable == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enable")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1514,9 +1505,6 @@ func validateOpCreateIPSetInput(v *CreateIPSetInput) error { if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } - if v.Activate == nil { - invalidParams.Add(smithy.NewErrParamRequired("Activate")) - } if len(v.Format) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Format")) } @@ -1596,9 +1584,6 @@ func validateOpCreateThreatIntelSetInput(v *CreateThreatIntelSetInput) error { if v.DetectorId == nil { invalidParams.Add(smithy.NewErrParamRequired("DetectorId")) } - if v.Activate == nil { - invalidParams.Add(smithy.NewErrParamRequired("Activate")) - } if v.Location == nil { invalidParams.Add(smithy.NewErrParamRequired("Location")) } @@ -2347,9 +2332,6 @@ func validateOpUpdateOrganizationConfigurationInput(v *UpdateOrganizationConfigu invalidParams.AddNested("DataSources", err.(smithy.InvalidParamsError)) } } - if v.AutoEnable == nil { - invalidParams.Add(smithy.NewErrParamRequired("AutoEnable")) - } if v.DetectorId == nil { invalidParams.Add(smithy.NewErrParamRequired("DetectorId")) } diff --git a/service/health/api_op_DescribeAffectedAccountsForOrganization.go b/service/health/api_op_DescribeAffectedAccountsForOrganization.go index c3636e7b5c2..f6bd2e203b4 100644 --- a/service/health/api_op_DescribeAffectedAccountsForOrganization.go +++ b/service/health/api_op_DescribeAffectedAccountsForOrganization.go @@ -61,7 +61,7 @@ type DescribeAffectedAccountsForOrganizationInput struct { type DescribeAffectedAccountsForOrganizationOutput struct { // A JSON set of elements of the affected accounts. - AffectedAccounts []*string + AffectedAccounts []string // This parameter specifies if the AWS Health event is a public AWS service event // or an account-specific event. diff --git a/service/health/api_op_DescribeAffectedEntities.go b/service/health/api_op_DescribeAffectedEntities.go index 78ff01340d6..258af81132f 100644 --- a/service/health/api_op_DescribeAffectedEntities.go +++ b/service/health/api_op_DescribeAffectedEntities.go @@ -61,7 +61,7 @@ type DescribeAffectedEntitiesInput struct { type DescribeAffectedEntitiesOutput struct { // The entities that match the filter criteria. - Entities []*types.AffectedEntity + Entities []types.AffectedEntity // If the results of a search are large, only a portion of the results are // returned, and a nextToken pagination token is returned in the response. To diff --git a/service/health/api_op_DescribeAffectedEntitiesForOrganization.go b/service/health/api_op_DescribeAffectedEntitiesForOrganization.go index 10783824220..b2af490aabf 100644 --- a/service/health/api_op_DescribeAffectedEntitiesForOrganization.go +++ b/service/health/api_op_DescribeAffectedEntitiesForOrganization.go @@ -44,7 +44,7 @@ type DescribeAffectedEntitiesForOrganizationInput struct { // A JSON set of elements including the awsAccountId and the eventArn. // // This member is required. - OrganizationEntityFilters []*types.EventAccountFilter + OrganizationEntityFilters []types.EventAccountFilter // The locale (language) to return information in. English (en) is the default and // the only supported value at this time. @@ -66,11 +66,11 @@ type DescribeAffectedEntitiesForOrganizationOutput struct { // A JSON set of elements including the awsAccountId and its entityArn, entityValue // and its entityArn, lastUpdatedTime, and statusCode. - Entities []*types.AffectedEntity + Entities []types.AffectedEntity // A JSON set of elements of the failed response, including the awsAccountId, // errorMessage, errorName, and eventArn. - FailedSet []*types.OrganizationAffectedEntitiesErrorItem + FailedSet []types.OrganizationAffectedEntitiesErrorItem // If the results of a search are large, only a portion of the results are // returned, and a nextToken pagination token is returned in the response. To diff --git a/service/health/api_op_DescribeEntityAggregates.go b/service/health/api_op_DescribeEntityAggregates.go index 27931aee6d2..f36800a3dc1 100644 --- a/service/health/api_op_DescribeEntityAggregates.go +++ b/service/health/api_op_DescribeEntityAggregates.go @@ -34,13 +34,13 @@ type DescribeEntityAggregatesInput struct { // A list of event ARNs (unique identifiers). For example: // "arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", // "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101" - EventArns []*string + EventArns []string } type DescribeEntityAggregatesOutput struct { // The number of entities that are affected by each of the specified events. - EntityAggregates []*types.EntityAggregate + EntityAggregates []types.EntityAggregate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/health/api_op_DescribeEventAggregates.go b/service/health/api_op_DescribeEventAggregates.go index 3a98a1b0121..605a2d493fc 100644 --- a/service/health/api_op_DescribeEventAggregates.go +++ b/service/health/api_op_DescribeEventAggregates.go @@ -55,7 +55,7 @@ type DescribeEventAggregatesInput struct { type DescribeEventAggregatesOutput struct { // The number of events in each category that meet the optional filter criteria. - EventAggregates []*types.EventAggregate + EventAggregates []types.EventAggregate // If the results of a search are large, only a portion of the results are // returned, and a nextToken pagination token is returned in the response. To diff --git a/service/health/api_op_DescribeEventDetails.go b/service/health/api_op_DescribeEventDetails.go index 5e4f798ee95..e1979e413d2 100644 --- a/service/health/api_op_DescribeEventDetails.go +++ b/service/health/api_op_DescribeEventDetails.go @@ -43,7 +43,7 @@ type DescribeEventDetailsInput struct { // "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101" // // This member is required. - EventArns []*string + EventArns []string // The locale (language) to return information in. English (en) is the default and // the only supported value at this time. @@ -53,10 +53,10 @@ type DescribeEventDetailsInput struct { type DescribeEventDetailsOutput struct { // Error messages for any events that could not be retrieved. - FailedSet []*types.EventDetailsErrorItem + FailedSet []types.EventDetailsErrorItem // Information about the events that could be retrieved. - SuccessfulSet []*types.EventDetails + SuccessfulSet []types.EventDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/health/api_op_DescribeEventDetailsForOrganization.go b/service/health/api_op_DescribeEventDetailsForOrganization.go index 0a9ea4b278d..2fbb55e1baa 100644 --- a/service/health/api_op_DescribeEventDetailsForOrganization.go +++ b/service/health/api_op_DescribeEventDetailsForOrganization.go @@ -61,7 +61,7 @@ type DescribeEventDetailsForOrganizationInput struct { // A set of JSON elements that includes the awsAccountId and the eventArn. // // This member is required. - OrganizationEventDetailFilters []*types.EventAccountFilter + OrganizationEventDetailFilters []types.EventAccountFilter // The locale (language) to return information in. English (en) is the default and // the only supported value at this time. @@ -71,10 +71,10 @@ type DescribeEventDetailsForOrganizationInput struct { type DescribeEventDetailsForOrganizationOutput struct { // Error messages for any events that could not be retrieved. - FailedSet []*types.OrganizationEventDetailsErrorItem + FailedSet []types.OrganizationEventDetailsErrorItem // Information about the events that could be retrieved. - SuccessfulSet []*types.OrganizationEventDetails + SuccessfulSet []types.OrganizationEventDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/health/api_op_DescribeEventTypes.go b/service/health/api_op_DescribeEventTypes.go index 705c5addbd0..ab2cbc3294a 100644 --- a/service/health/api_op_DescribeEventTypes.go +++ b/service/health/api_op_DescribeEventTypes.go @@ -57,7 +57,7 @@ type DescribeEventTypesOutput struct { // category (issue, accountNotification, or scheduledChange), a service (for // example, EC2, RDS, DATAPIPELINE, BILLING), and a code (in the format // AWS_SERVICE_DESCRIPTION ; for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT). - EventTypes []*types.EventType + EventTypes []types.EventType // If the results of a search are large, only a portion of the results are // returned, and a nextToken pagination token is returned in the response. To diff --git a/service/health/api_op_DescribeEvents.go b/service/health/api_op_DescribeEvents.go index b7d2d889fc4..3c7f6d9b608 100644 --- a/service/health/api_op_DescribeEvents.go +++ b/service/health/api_op_DescribeEvents.go @@ -73,7 +73,7 @@ type DescribeEventsInput struct { type DescribeEventsOutput struct { // The events that match the specified filter criteria. - Events []*types.Event + Events []types.Event // If the results of a search are large, only a portion of the results are // returned, and a nextToken pagination token is returned in the response. To diff --git a/service/health/api_op_DescribeEventsForOrganization.go b/service/health/api_op_DescribeEventsForOrganization.go index c85748d7579..5c828ec13df 100644 --- a/service/health/api_op_DescribeEventsForOrganization.go +++ b/service/health/api_op_DescribeEventsForOrganization.go @@ -80,7 +80,7 @@ type DescribeEventsForOrganizationInput struct { type DescribeEventsForOrganizationOutput struct { // The events that match the specified filter criteria. - Events []*types.OrganizationEvent + Events []types.OrganizationEvent // If the results of a search are large, only a portion of the results are // returned, and a nextToken pagination token is returned in the response. To diff --git a/service/health/deserializers.go b/service/health/deserializers.go index f00ff76908c..92844c2efa5 100644 --- a/service/health/deserializers.go +++ b/service/health/deserializers.go @@ -1576,7 +1576,7 @@ func awsAwsjson11_deserializeErrorUnsupportedLocale(response *smithyhttp.Respons return output } -func awsAwsjson11_deserializeDocumentAffectedAccountsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAffectedAccountsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1589,21 +1589,21 @@ func awsAwsjson11_deserializeDocumentAffectedAccountsList(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected accountId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1640,7 +1640,7 @@ func awsAwsjson11_deserializeDocumentAffectedEntity(v **types.AffectedEntity, va if !ok { return fmt.Errorf("expected accountId to be of type string, got %T instead", value) } - sv.AwsAccountId = &jtv + sv.AwsAccountId = ptr.String(jtv) } case "entityArn": @@ -1649,7 +1649,7 @@ func awsAwsjson11_deserializeDocumentAffectedEntity(v **types.AffectedEntity, va if !ok { return fmt.Errorf("expected entityArn to be of type string, got %T instead", value) } - sv.EntityArn = &jtv + sv.EntityArn = ptr.String(jtv) } case "entityUrl": @@ -1658,7 +1658,7 @@ func awsAwsjson11_deserializeDocumentAffectedEntity(v **types.AffectedEntity, va if !ok { return fmt.Errorf("expected entityUrl to be of type string, got %T instead", value) } - sv.EntityUrl = &jtv + sv.EntityUrl = ptr.String(jtv) } case "entityValue": @@ -1667,7 +1667,7 @@ func awsAwsjson11_deserializeDocumentAffectedEntity(v **types.AffectedEntity, va if !ok { return fmt.Errorf("expected entityValue to be of type string, got %T instead", value) } - sv.EntityValue = &jtv + sv.EntityValue = ptr.String(jtv) } case "eventArn": @@ -1676,7 +1676,7 @@ func awsAwsjson11_deserializeDocumentAffectedEntity(v **types.AffectedEntity, va if !ok { return fmt.Errorf("expected eventArn to be of type string, got %T instead", value) } - sv.EventArn = &jtv + sv.EventArn = ptr.String(jtv) } case "lastUpdatedTime": @@ -1743,7 +1743,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1755,7 +1755,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C return nil } -func awsAwsjson11_deserializeDocumentDescribeAffectedEntitiesForOrganizationFailedSet(v *[]*types.OrganizationAffectedEntitiesErrorItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentDescribeAffectedEntitiesForOrganizationFailedSet(v *[]types.OrganizationAffectedEntitiesErrorItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1768,18 +1768,20 @@ func awsAwsjson11_deserializeDocumentDescribeAffectedEntitiesForOrganizationFail return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrganizationAffectedEntitiesErrorItem + var cv []types.OrganizationAffectedEntitiesErrorItem if *v == nil { - cv = []*types.OrganizationAffectedEntitiesErrorItem{} + cv = []types.OrganizationAffectedEntitiesErrorItem{} } else { cv = *v } for _, value := range shape { - var col *types.OrganizationAffectedEntitiesErrorItem - if err := awsAwsjson11_deserializeDocumentOrganizationAffectedEntitiesErrorItem(&col, value); err != nil { + var col types.OrganizationAffectedEntitiesErrorItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrganizationAffectedEntitiesErrorItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1787,7 +1789,7 @@ func awsAwsjson11_deserializeDocumentDescribeAffectedEntitiesForOrganizationFail return nil } -func awsAwsjson11_deserializeDocumentDescribeEventDetailsFailedSet(v *[]*types.EventDetailsErrorItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentDescribeEventDetailsFailedSet(v *[]types.EventDetailsErrorItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1800,18 +1802,20 @@ func awsAwsjson11_deserializeDocumentDescribeEventDetailsFailedSet(v *[]*types.E return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventDetailsErrorItem + var cv []types.EventDetailsErrorItem if *v == nil { - cv = []*types.EventDetailsErrorItem{} + cv = []types.EventDetailsErrorItem{} } else { cv = *v } for _, value := range shape { - var col *types.EventDetailsErrorItem - if err := awsAwsjson11_deserializeDocumentEventDetailsErrorItem(&col, value); err != nil { + var col types.EventDetailsErrorItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventDetailsErrorItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1819,7 +1823,7 @@ func awsAwsjson11_deserializeDocumentDescribeEventDetailsFailedSet(v *[]*types.E return nil } -func awsAwsjson11_deserializeDocumentDescribeEventDetailsForOrganizationFailedSet(v *[]*types.OrganizationEventDetailsErrorItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentDescribeEventDetailsForOrganizationFailedSet(v *[]types.OrganizationEventDetailsErrorItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1832,18 +1836,20 @@ func awsAwsjson11_deserializeDocumentDescribeEventDetailsForOrganizationFailedSe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrganizationEventDetailsErrorItem + var cv []types.OrganizationEventDetailsErrorItem if *v == nil { - cv = []*types.OrganizationEventDetailsErrorItem{} + cv = []types.OrganizationEventDetailsErrorItem{} } else { cv = *v } for _, value := range shape { - var col *types.OrganizationEventDetailsErrorItem - if err := awsAwsjson11_deserializeDocumentOrganizationEventDetailsErrorItem(&col, value); err != nil { + var col types.OrganizationEventDetailsErrorItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrganizationEventDetailsErrorItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1851,7 +1857,7 @@ func awsAwsjson11_deserializeDocumentDescribeEventDetailsForOrganizationFailedSe return nil } -func awsAwsjson11_deserializeDocumentDescribeEventDetailsForOrganizationSuccessfulSet(v *[]*types.OrganizationEventDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentDescribeEventDetailsForOrganizationSuccessfulSet(v *[]types.OrganizationEventDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1864,18 +1870,20 @@ func awsAwsjson11_deserializeDocumentDescribeEventDetailsForOrganizationSuccessf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrganizationEventDetails + var cv []types.OrganizationEventDetails if *v == nil { - cv = []*types.OrganizationEventDetails{} + cv = []types.OrganizationEventDetails{} } else { cv = *v } for _, value := range shape { - var col *types.OrganizationEventDetails - if err := awsAwsjson11_deserializeDocumentOrganizationEventDetails(&col, value); err != nil { + var col types.OrganizationEventDetails + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrganizationEventDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1883,7 +1891,7 @@ func awsAwsjson11_deserializeDocumentDescribeEventDetailsForOrganizationSuccessf return nil } -func awsAwsjson11_deserializeDocumentDescribeEventDetailsSuccessfulSet(v *[]*types.EventDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentDescribeEventDetailsSuccessfulSet(v *[]types.EventDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1896,18 +1904,20 @@ func awsAwsjson11_deserializeDocumentDescribeEventDetailsSuccessfulSet(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventDetails + var cv []types.EventDetails if *v == nil { - cv = []*types.EventDetails{} + cv = []types.EventDetails{} } else { cv = *v } for _, value := range shape { - var col *types.EventDetails - if err := awsAwsjson11_deserializeDocumentEventDetails(&col, value); err != nil { + var col types.EventDetails + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1947,7 +1957,7 @@ func awsAwsjson11_deserializeDocumentEntityAggregate(v **types.EntityAggregate, if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "eventArn": @@ -1956,7 +1966,7 @@ func awsAwsjson11_deserializeDocumentEntityAggregate(v **types.EntityAggregate, if !ok { return fmt.Errorf("expected eventArn to be of type string, got %T instead", value) } - sv.EventArn = &jtv + sv.EventArn = ptr.String(jtv) } default: @@ -1968,7 +1978,7 @@ func awsAwsjson11_deserializeDocumentEntityAggregate(v **types.EntityAggregate, return nil } -func awsAwsjson11_deserializeDocumentEntityAggregateList(v *[]*types.EntityAggregate, value interface{}) error { +func awsAwsjson11_deserializeDocumentEntityAggregateList(v *[]types.EntityAggregate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1981,18 +1991,20 @@ func awsAwsjson11_deserializeDocumentEntityAggregateList(v *[]*types.EntityAggre return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EntityAggregate + var cv []types.EntityAggregate if *v == nil { - cv = []*types.EntityAggregate{} + cv = []types.EntityAggregate{} } else { cv = *v } for _, value := range shape { - var col *types.EntityAggregate - if err := awsAwsjson11_deserializeDocumentEntityAggregate(&col, value); err != nil { + var col types.EntityAggregate + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEntityAggregate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2000,7 +2012,7 @@ func awsAwsjson11_deserializeDocumentEntityAggregateList(v *[]*types.EntityAggre return nil } -func awsAwsjson11_deserializeDocumentEntityList(v *[]*types.AffectedEntity, value interface{}) error { +func awsAwsjson11_deserializeDocumentEntityList(v *[]types.AffectedEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2013,18 +2025,20 @@ func awsAwsjson11_deserializeDocumentEntityList(v *[]*types.AffectedEntity, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AffectedEntity + var cv []types.AffectedEntity if *v == nil { - cv = []*types.AffectedEntity{} + cv = []types.AffectedEntity{} } else { cv = *v } for _, value := range shape { - var col *types.AffectedEntity - if err := awsAwsjson11_deserializeDocumentAffectedEntity(&col, value); err != nil { + var col types.AffectedEntity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAffectedEntity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2060,7 +2074,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected eventArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "availabilityZone": @@ -2069,7 +2083,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected availabilityZone to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "endTime": @@ -2109,7 +2123,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected eventTypeCode to be of type string, got %T instead", value) } - sv.EventTypeCode = &jtv + sv.EventTypeCode = ptr.String(jtv) } case "lastUpdatedTime": @@ -2131,7 +2145,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "service": @@ -2140,7 +2154,7 @@ func awsAwsjson11_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected service to be of type string, got %T instead", value) } - sv.Service = &jtv + sv.Service = ptr.String(jtv) } case "startTime": @@ -2202,7 +2216,7 @@ func awsAwsjson11_deserializeDocumentEventAggregate(v **types.EventAggregate, va if !ok { return fmt.Errorf("expected aggregateValue to be of type string, got %T instead", value) } - sv.AggregateValue = &jtv + sv.AggregateValue = ptr.String(jtv) } case "count": @@ -2215,7 +2229,7 @@ func awsAwsjson11_deserializeDocumentEventAggregate(v **types.EventAggregate, va if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } default: @@ -2227,7 +2241,7 @@ func awsAwsjson11_deserializeDocumentEventAggregate(v **types.EventAggregate, va return nil } -func awsAwsjson11_deserializeDocumentEventAggregateList(v *[]*types.EventAggregate, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventAggregateList(v *[]types.EventAggregate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2240,18 +2254,20 @@ func awsAwsjson11_deserializeDocumentEventAggregateList(v *[]*types.EventAggrega return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventAggregate + var cv []types.EventAggregate if *v == nil { - cv = []*types.EventAggregate{} + cv = []types.EventAggregate{} } else { cv = *v } for _, value := range shape { - var col *types.EventAggregate - if err := awsAwsjson11_deserializeDocumentEventAggregate(&col, value); err != nil { + var col types.EventAggregate + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventAggregate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2287,7 +2303,7 @@ func awsAwsjson11_deserializeDocumentEventDescription(v **types.EventDescription if !ok { return fmt.Errorf("expected EventDescription2 to be of type string, got %T instead", value) } - sv.LatestDescription = &jtv + sv.LatestDescription = ptr.String(jtv) } default: @@ -2373,7 +2389,7 @@ func awsAwsjson11_deserializeDocumentEventDetailsErrorItem(v **types.EventDetail if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "errorName": @@ -2382,7 +2398,7 @@ func awsAwsjson11_deserializeDocumentEventDetailsErrorItem(v **types.EventDetail if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorName = &jtv + sv.ErrorName = ptr.String(jtv) } case "eventArn": @@ -2391,7 +2407,7 @@ func awsAwsjson11_deserializeDocumentEventDetailsErrorItem(v **types.EventDetail if !ok { return fmt.Errorf("expected eventArn to be of type string, got %T instead", value) } - sv.EventArn = &jtv + sv.EventArn = ptr.String(jtv) } default: @@ -2403,7 +2419,7 @@ func awsAwsjson11_deserializeDocumentEventDetailsErrorItem(v **types.EventDetail return nil } -func awsAwsjson11_deserializeDocumentEventList(v *[]*types.Event, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventList(v *[]types.Event, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2416,18 +2432,20 @@ func awsAwsjson11_deserializeDocumentEventList(v *[]*types.Event, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Event + var cv []types.Event if *v == nil { - cv = []*types.Event{} + cv = []types.Event{} } else { cv = *v } for _, value := range shape { - var col *types.Event - if err := awsAwsjson11_deserializeDocumentEvent(&col, value); err != nil { + var col types.Event + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2435,7 +2453,7 @@ func awsAwsjson11_deserializeDocumentEventList(v *[]*types.Event, value interfac return nil } -func awsAwsjson11_deserializeDocumentEventMetadata(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventMetadata(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2448,21 +2466,21 @@ func awsAwsjson11_deserializeDocumentEventMetadata(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected metadataValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -2508,7 +2526,7 @@ func awsAwsjson11_deserializeDocumentEventType(v **types.EventType, value interf if !ok { return fmt.Errorf("expected eventTypeCode to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "service": @@ -2517,7 +2535,7 @@ func awsAwsjson11_deserializeDocumentEventType(v **types.EventType, value interf if !ok { return fmt.Errorf("expected service to be of type string, got %T instead", value) } - sv.Service = &jtv + sv.Service = ptr.String(jtv) } default: @@ -2529,7 +2547,7 @@ func awsAwsjson11_deserializeDocumentEventType(v **types.EventType, value interf return nil } -func awsAwsjson11_deserializeDocumentEventTypeList(v *[]*types.EventType, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventTypeList(v *[]types.EventType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2542,18 +2560,20 @@ func awsAwsjson11_deserializeDocumentEventTypeList(v *[]*types.EventType, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventType + var cv []types.EventType if *v == nil { - cv = []*types.EventType{} + cv = []types.EventType{} } else { cv = *v } for _, value := range shape { - var col *types.EventType - if err := awsAwsjson11_deserializeDocumentEventType(&col, value); err != nil { + var col types.EventType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2589,7 +2609,7 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationToken(v **types.InvalidPag if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2629,7 +2649,7 @@ func awsAwsjson11_deserializeDocumentOrganizationAffectedEntitiesErrorItem(v **t if !ok { return fmt.Errorf("expected accountId to be of type string, got %T instead", value) } - sv.AwsAccountId = &jtv + sv.AwsAccountId = ptr.String(jtv) } case "errorMessage": @@ -2638,7 +2658,7 @@ func awsAwsjson11_deserializeDocumentOrganizationAffectedEntitiesErrorItem(v **t if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "errorName": @@ -2647,7 +2667,7 @@ func awsAwsjson11_deserializeDocumentOrganizationAffectedEntitiesErrorItem(v **t if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorName = &jtv + sv.ErrorName = ptr.String(jtv) } case "eventArn": @@ -2656,7 +2676,7 @@ func awsAwsjson11_deserializeDocumentOrganizationAffectedEntitiesErrorItem(v **t if !ok { return fmt.Errorf("expected eventArn to be of type string, got %T instead", value) } - sv.EventArn = &jtv + sv.EventArn = ptr.String(jtv) } default: @@ -2696,7 +2716,7 @@ func awsAwsjson11_deserializeDocumentOrganizationEvent(v **types.OrganizationEve if !ok { return fmt.Errorf("expected eventArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "endTime": @@ -2736,7 +2756,7 @@ func awsAwsjson11_deserializeDocumentOrganizationEvent(v **types.OrganizationEve if !ok { return fmt.Errorf("expected eventTypeCode to be of type string, got %T instead", value) } - sv.EventTypeCode = &jtv + sv.EventTypeCode = ptr.String(jtv) } case "lastUpdatedTime": @@ -2758,7 +2778,7 @@ func awsAwsjson11_deserializeDocumentOrganizationEvent(v **types.OrganizationEve if !ok { return fmt.Errorf("expected region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "service": @@ -2767,7 +2787,7 @@ func awsAwsjson11_deserializeDocumentOrganizationEvent(v **types.OrganizationEve if !ok { return fmt.Errorf("expected service to be of type string, got %T instead", value) } - sv.Service = &jtv + sv.Service = ptr.String(jtv) } case "startTime": @@ -2829,7 +2849,7 @@ func awsAwsjson11_deserializeDocumentOrganizationEventDetails(v **types.Organiza if !ok { return fmt.Errorf("expected accountId to be of type string, got %T instead", value) } - sv.AwsAccountId = &jtv + sv.AwsAccountId = ptr.String(jtv) } case "event": @@ -2884,7 +2904,7 @@ func awsAwsjson11_deserializeDocumentOrganizationEventDetailsErrorItem(v **types if !ok { return fmt.Errorf("expected accountId to be of type string, got %T instead", value) } - sv.AwsAccountId = &jtv + sv.AwsAccountId = ptr.String(jtv) } case "errorMessage": @@ -2893,7 +2913,7 @@ func awsAwsjson11_deserializeDocumentOrganizationEventDetailsErrorItem(v **types if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "errorName": @@ -2902,7 +2922,7 @@ func awsAwsjson11_deserializeDocumentOrganizationEventDetailsErrorItem(v **types if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorName = &jtv + sv.ErrorName = ptr.String(jtv) } case "eventArn": @@ -2911,7 +2931,7 @@ func awsAwsjson11_deserializeDocumentOrganizationEventDetailsErrorItem(v **types if !ok { return fmt.Errorf("expected eventArn to be of type string, got %T instead", value) } - sv.EventArn = &jtv + sv.EventArn = ptr.String(jtv) } default: @@ -2923,7 +2943,7 @@ func awsAwsjson11_deserializeDocumentOrganizationEventDetailsErrorItem(v **types return nil } -func awsAwsjson11_deserializeDocumentOrganizationEventList(v *[]*types.OrganizationEvent, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrganizationEventList(v *[]types.OrganizationEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2936,18 +2956,20 @@ func awsAwsjson11_deserializeDocumentOrganizationEventList(v *[]*types.Organizat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrganizationEvent + var cv []types.OrganizationEvent if *v == nil { - cv = []*types.OrganizationEvent{} + cv = []types.OrganizationEvent{} } else { cv = *v } for _, value := range shape { - var col *types.OrganizationEvent - if err := awsAwsjson11_deserializeDocumentOrganizationEvent(&col, value); err != nil { + var col types.OrganizationEvent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrganizationEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2955,7 +2977,7 @@ func awsAwsjson11_deserializeDocumentOrganizationEventList(v *[]*types.Organizat return nil } -func awsAwsjson11_deserializeDocumentTagSet(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagSet(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2968,21 +2990,21 @@ func awsAwsjson11_deserializeDocumentTagSet(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -3019,7 +3041,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedLocale(v **types.UnsupportedLoca if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3073,7 +3095,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAffectedAccountsForOrganizationOu if !ok { return fmt.Errorf("expected nextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3123,7 +3145,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAffectedEntitiesForOrganizationOu if !ok { return fmt.Errorf("expected nextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3168,7 +3190,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAffectedEntitiesOutput(v **Descri if !ok { return fmt.Errorf("expected nextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3249,7 +3271,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventAggregatesOutput(v **Describ if !ok { return fmt.Errorf("expected nextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3376,7 +3398,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventsForOrganizationOutput(v **D if !ok { return fmt.Errorf("expected nextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3421,7 +3443,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventsOutput(v **DescribeEventsOu if !ok { return fmt.Errorf("expected nextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3466,7 +3488,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventTypesOutput(v **DescribeEven if !ok { return fmt.Errorf("expected nextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3506,7 +3528,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHealthServiceStatusForOrganizatio if !ok { return fmt.Errorf("expected healthServiceAccessStatusForOrganization to be of type string, got %T instead", value) } - sv.HealthServiceAccessStatusForOrganization = &jtv + sv.HealthServiceAccessStatusForOrganization = ptr.String(jtv) } default: diff --git a/service/health/go.mod b/service/health/go.mod index fdebb0719d7..3218d3cabc0 100644 --- a/service/health/go.mod +++ b/service/health/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/health go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/health/serializers.go b/service/health/serializers.go index 62b3405bb1a..2978569ba71 100644 --- a/service/health/serializers.go +++ b/service/health/serializers.go @@ -591,32 +591,24 @@ func (m *awsAwsjson11_serializeOpEnableHealthServiceAccessForOrganization) Handl return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAvailabilityZones(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAvailabilityZones(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentAwsAccountIdsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAwsAccountIdsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -638,34 +630,26 @@ func awsAwsjson11_serializeDocumentDateTimeRange(v *types.DateTimeRange, value s return nil } -func awsAwsjson11_serializeDocumentDateTimeRangeList(v []*types.DateTimeRange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDateTimeRangeList(v []types.DateTimeRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDateTimeRange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDateTimeRange(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentEntityArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEntityArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -730,17 +714,13 @@ func awsAwsjson11_serializeDocumentEntityStatusCodeList(v []types.EntityStatusCo return nil } -func awsAwsjson11_serializeDocumentEntityValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEntityValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -762,32 +742,24 @@ func awsAwsjson11_serializeDocumentEventAccountFilter(v *types.EventAccountFilte return nil } -func awsAwsjson11_serializeDocumentEventArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEventArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentEventArnsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEventArnsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -923,17 +895,13 @@ func awsAwsjson11_serializeDocumentEventTypeCategoryList2(v []types.EventTypeCat return nil } -func awsAwsjson11_serializeDocumentEventTypeCodeList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEventTypeCodeList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -966,49 +934,37 @@ func awsAwsjson11_serializeDocumentEventTypeFilter(v *types.EventTypeFilter, val return nil } -func awsAwsjson11_serializeDocumentEventTypeList2(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEventTypeList2(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentOrganizationEntityFiltersList(v []*types.EventAccountFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOrganizationEntityFiltersList(v []types.EventAccountFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEventAccountFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEventAccountFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentOrganizationEventDetailFiltersList(v []*types.EventAccountFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOrganizationEventDetailFiltersList(v []types.EventAccountFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEventAccountFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEventAccountFilter(&v[i], av); err != nil { return err } } @@ -1099,44 +1055,35 @@ func awsAwsjson11_serializeDocumentOrganizationEventFilter(v *types.Organization return nil } -func awsAwsjson11_serializeDocumentRegionList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRegionList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentServiceList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServiceList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagFilter(v []map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagFilter(v []map[string]string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsAwsjson11_serializeDocumentTagSet(v[i], av); err != nil { @@ -1146,17 +1093,13 @@ func awsAwsjson11_serializeDocumentTagFilter(v []map[string]*string, value smith return nil } -func awsAwsjson11_serializeDocumentTagSet(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagSet(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/health/types/types.go b/service/health/types/types.go index 6c9379f4846..cb6cdf15f98 100644 --- a/service/health/types/types.go +++ b/service/health/types/types.go @@ -38,7 +38,7 @@ type AffectedEntity struct { // A map of entity tags attached to the affected entity. Currently, the tags // property isn't supported. - Tags map[string]*string + Tags map[string]string } // A range of dates and times that is used by the EventFilter @@ -66,7 +66,7 @@ type DateTimeRange struct { type EntityAggregate struct { // The number of entities that match the criteria for the specified events. - Count *int32 + Count int32 // The unique identifier for the event. Format: // arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID . @@ -85,23 +85,23 @@ type EntityFilter struct { // "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101" // // This member is required. - EventArns []*string + EventArns []string // A list of entity ARNs (unique identifiers). - EntityArns []*string + EntityArns []string // A list of IDs for affected entities. - EntityValues []*string + EntityValues []string // A list of the most recent dates and times that the entity was updated. - LastUpdatedTimes []*DateTimeRange + LastUpdatedTimes []DateTimeRange // A list of entity status codes (IMPAIRED, UNIMPAIRED, or UNKNOWN). StatusCodes []EntityStatusCode // A map of entity tags attached to the affected entity. Currently, the tags // property isn't supported. - Tags []map[string]*string + Tags []map[string]string } // Summary information about an AWS Health event. AWS Health events can be public @@ -205,7 +205,7 @@ type EventAggregate struct { AggregateValue *string // The number of events of the associated issue type. - Count *int32 + Count int32 } // The detailed description of the event. Included in the information returned by @@ -235,7 +235,7 @@ type EventDetails struct { EventDescription *EventDescription // Additional metadata about the event. - EventMetadata map[string]*string + EventMetadata map[string]string } // Error information returned when a DescribeEventDetails @@ -264,22 +264,22 @@ type EventDetailsErrorItem struct { type EventFilter struct { // A list of AWS availability zones. - AvailabilityZones []*string + AvailabilityZones []string // A list of dates and times that the event ended. - EndTimes []*DateTimeRange + EndTimes []DateTimeRange // A list of entity ARNs (unique identifiers). - EntityArns []*string + EntityArns []string // A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS // volumes (vol-426ab23e). - EntityValues []*string + EntityValues []string // A list of event ARNs (unique identifiers). For example: // "arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", // "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101" - EventArns []*string + EventArns []string // A list of event status codes. EventStatusCodes []EventStatusCode @@ -290,23 +290,23 @@ type EventFilter struct { // A list of unique identifiers for event types. For example, // "AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED". - EventTypeCodes []*string + EventTypeCodes []string // A list of dates and times that the event was last updated. - LastUpdatedTimes []*DateTimeRange + LastUpdatedTimes []DateTimeRange // A list of AWS regions. - Regions []*string + Regions []string // The AWS services associated with the event. For example, EC2, RDS. - Services []*string + Services []string // A list of dates and times that the event began. - StartTimes []*DateTimeRange + StartTimes []DateTimeRange // A map of entity tags attached to the affected entity. Currently, the tags // property isn't supported. - Tags []map[string]*string + Tags []map[string]string } // Metadata about a type of event that is reported by AWS Health. Data consists of @@ -336,10 +336,10 @@ type EventTypeFilter struct { EventTypeCategories []EventTypeCategory // A list of event type codes. - EventTypeCodes []*string + EventTypeCodes []string // The AWS services associated with the event. For example, EC2, RDS. - Services []*string + Services []string } // Error information returned when a DescribeAffectedEntitiesForOrganization @@ -459,7 +459,7 @@ type OrganizationEventDetails struct { EventDescription *EventDescription // Additional metadata about the event. - EventMetadata map[string]*string + EventMetadata map[string]string } // Error information returned when a DescribeEventDetailsForOrganization @@ -491,7 +491,7 @@ type OrganizationEventDetailsErrorItem struct { type OrganizationEventFilter struct { // A list of 12-digit AWS account numbers that contains the affected entities. - AwsAccountIds []*string + AwsAccountIds []string // A range of dates and times that is used by the EventFilter // (https://docs.aws.amazon.com/health/latest/APIReference/API_EventFilter.html) @@ -505,11 +505,11 @@ type OrganizationEventFilter struct { EndTime *DateTimeRange // A list of entity ARNs (unique identifiers). - EntityArns []*string + EntityArns []string // A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS // volumes (vol-426ab23e). - EntityValues []*string + EntityValues []string // A list of event status codes. EventStatusCodes []EventStatusCode @@ -520,7 +520,7 @@ type OrganizationEventFilter struct { // A list of unique identifiers for event types. For example, // "AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED". - EventTypeCodes []*string + EventTypeCodes []string // A range of dates and times that is used by the EventFilter // (https://docs.aws.amazon.com/health/latest/APIReference/API_EventFilter.html) @@ -534,10 +534,10 @@ type OrganizationEventFilter struct { LastUpdatedTime *DateTimeRange // A list of AWS Regions. - Regions []*string + Regions []string // The AWS services associated with the event. For example, EC2, RDS. - Services []*string + Services []string // A range of dates and times that is used by the EventFilter // (https://docs.aws.amazon.com/health/latest/APIReference/API_EventFilter.html) diff --git a/service/health/validators.go b/service/health/validators.go index cc3801d9a69..761d4b3cc91 100644 --- a/service/health/validators.go +++ b/service/health/validators.go @@ -184,13 +184,13 @@ func validateEventAccountFilter(v *types.EventAccountFilter) error { } } -func validateOrganizationEntityFiltersList(v []*types.EventAccountFilter) error { +func validateOrganizationEntityFiltersList(v []types.EventAccountFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OrganizationEntityFiltersList"} for i := range v { - if err := validateEventAccountFilter(v[i]); err != nil { + if err := validateEventAccountFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -201,13 +201,13 @@ func validateOrganizationEntityFiltersList(v []*types.EventAccountFilter) error } } -func validateOrganizationEventDetailFiltersList(v []*types.EventAccountFilter) error { +func validateOrganizationEventDetailFiltersList(v []types.EventAccountFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OrganizationEventDetailFiltersList"} for i := range v { - if err := validateEventAccountFilter(v[i]); err != nil { + if err := validateEventAccountFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/honeycode/api_op_GetScreenData.go b/service/honeycode/api_op_GetScreenData.go index b2022e955fb..4d07677e318 100644 --- a/service/honeycode/api_op_GetScreenData.go +++ b/service/honeycode/api_op_GetScreenData.go @@ -62,7 +62,7 @@ type GetScreenDataInput struct { // variable as defined on the screen. The value is an object which currently has // only one property, rawValue, which holds the value of the variable to be passed // to the screen. - Variables map[string]*types.VariableValue + Variables map[string]types.VariableValue } type GetScreenDataOutput struct { @@ -70,14 +70,14 @@ type GetScreenDataOutput struct { // A map of all the rows on the screen keyed by block name. // // This member is required. - Results map[string]*types.ResultSet + Results map[string]types.ResultSet // Indicates the cursor of the workbook at which the data returned by this workbook // is read. Workbook cursor keeps increasing with every update and the increments // are not sequential. // // This member is required. - WorkbookCursor *int64 + WorkbookCursor int64 // Provides the pagination token to load the next page if there are more results // matching the request. If a pagination token is not present in the response, it diff --git a/service/honeycode/api_op_InvokeScreenAutomation.go b/service/honeycode/api_op_InvokeScreenAutomation.go index 77176f4646d..ff8ce424516 100644 --- a/service/honeycode/api_op_InvokeScreenAutomation.go +++ b/service/honeycode/api_op_InvokeScreenAutomation.go @@ -71,7 +71,7 @@ type InvokeScreenAutomationInput struct { // variable as defined on the screen. The value is an object which currently has // only one property, rawValue, which holds the value of the variable to be passed // to the screen. - Variables map[string]*types.VariableValue + Variables map[string]types.VariableValue } type InvokeScreenAutomationOutput struct { @@ -79,7 +79,7 @@ type InvokeScreenAutomationOutput struct { // The updated workbook cursor after performing the automation action. // // This member is required. - WorkbookCursor *int64 + WorkbookCursor int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/honeycode/deserializers.go b/service/honeycode/deserializers.go index 43596d0e0fd..6de990b16a1 100644 --- a/service/honeycode/deserializers.go +++ b/service/honeycode/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -174,7 +175,7 @@ func awsRestjson1_deserializeOpDocumentGetScreenDataOutput(v **GetScreenDataOutp if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "results": @@ -192,7 +193,7 @@ func awsRestjson1_deserializeOpDocumentGetScreenDataOutput(v **GetScreenDataOutp if err != nil { return err } - sv.WorkbookCursor = &i64 + sv.WorkbookCursor = i64 } default: @@ -371,7 +372,7 @@ func awsRestjson1_deserializeOpDocumentInvokeScreenAutomationOutput(v **InvokeSc if err != nil { return err } - sv.WorkbookCursor = &i64 + sv.WorkbookCursor = i64 } default: @@ -735,7 +736,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -775,7 +776,7 @@ func awsRestjson1_deserializeDocumentAutomationExecutionException(v **types.Auto if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -815,7 +816,7 @@ func awsRestjson1_deserializeDocumentAutomationExecutionTimeoutException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -864,7 +865,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -904,7 +905,7 @@ func awsRestjson1_deserializeDocumentDataItem(v **types.DataItem, value interfac if !ok { return fmt.Errorf("expected FormattedValue to be of type string, got %T instead", value) } - sv.FormattedValue = &jtv + sv.FormattedValue = ptr.String(jtv) } case "overrideFormat": @@ -922,7 +923,7 @@ func awsRestjson1_deserializeDocumentDataItem(v **types.DataItem, value interfac if !ok { return fmt.Errorf("expected RawValue to be of type string, got %T instead", value) } - sv.RawValue = &jtv + sv.RawValue = ptr.String(jtv) } default: @@ -934,7 +935,7 @@ func awsRestjson1_deserializeDocumentDataItem(v **types.DataItem, value interfac return nil } -func awsRestjson1_deserializeDocumentDataItems(v *[]*types.DataItem, value interface{}) error { +func awsRestjson1_deserializeDocumentDataItems(v *[]types.DataItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -947,18 +948,20 @@ func awsRestjson1_deserializeDocumentDataItems(v *[]*types.DataItem, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataItem + var cv []types.DataItem if *v == nil { - cv = []*types.DataItem{} + cv = []types.DataItem{} } else { cv = *v } for _, value := range shape { - var col *types.DataItem - if err := awsRestjson1_deserializeDocumentDataItem(&col, value); err != nil { + var col types.DataItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -994,7 +997,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1034,7 +1037,7 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1074,7 +1077,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1086,7 +1089,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentResultHeader(v *[]*types.ColumnMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentResultHeader(v *[]types.ColumnMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1099,18 +1102,20 @@ func awsRestjson1_deserializeDocumentResultHeader(v *[]*types.ColumnMetadata, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnMetadata + var cv []types.ColumnMetadata if *v == nil { - cv = []*types.ColumnMetadata{} + cv = []types.ColumnMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnMetadata - if err := awsRestjson1_deserializeDocumentColumnMetadata(&col, value); err != nil { + var col types.ColumnMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1151,7 +1156,7 @@ func awsRestjson1_deserializeDocumentResultRow(v **types.ResultRow, value interf if !ok { return fmt.Errorf("expected RowId to be of type string, got %T instead", value) } - sv.RowId = &jtv + sv.RowId = ptr.String(jtv) } default: @@ -1163,7 +1168,7 @@ func awsRestjson1_deserializeDocumentResultRow(v **types.ResultRow, value interf return nil } -func awsRestjson1_deserializeDocumentResultRows(v *[]*types.ResultRow, value interface{}) error { +func awsRestjson1_deserializeDocumentResultRows(v *[]types.ResultRow, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1176,18 +1181,20 @@ func awsRestjson1_deserializeDocumentResultRows(v *[]*types.ResultRow, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResultRow + var cv []types.ResultRow if *v == nil { - cv = []*types.ResultRow{} + cv = []types.ResultRow{} } else { cv = *v } for _, value := range shape { - var col *types.ResultRow - if err := awsRestjson1_deserializeDocumentResultRow(&col, value); err != nil { + var col types.ResultRow + destAddr := &col + if err := awsRestjson1_deserializeDocumentResultRow(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1236,7 +1243,7 @@ func awsRestjson1_deserializeDocumentResultSet(v **types.ResultSet, value interf return nil } -func awsRestjson1_deserializeDocumentResultSetMap(v *map[string]*types.ResultSet, value interface{}) error { +func awsRestjson1_deserializeDocumentResultSetMap(v *map[string]types.ResultSet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1249,18 +1256,21 @@ func awsRestjson1_deserializeDocumentResultSetMap(v *map[string]*types.ResultSet return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.ResultSet + var mv map[string]types.ResultSet if *v == nil { - mv = map[string]*types.ResultSet{} + mv = map[string]types.ResultSet{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.ResultSet - if err := awsRestjson1_deserializeDocumentResultSet(&parsedVal, value); err != nil { + var parsedVal types.ResultSet + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentResultSet(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -1296,7 +1306,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1336,7 +1346,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1376,7 +1386,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/honeycode/go.mod b/service/honeycode/go.mod index d13adc731ab..ac4e2135b04 100644 --- a/service/honeycode/go.mod +++ b/service/honeycode/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/honeycode go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/honeycode/serializers.go b/service/honeycode/serializers.go index acbf4e8172e..b4a580f16dc 100644 --- a/service/honeycode/serializers.go +++ b/service/honeycode/serializers.go @@ -176,49 +176,37 @@ func awsRestjson1_serializeOpHttpBindingsInvokeScreenAutomationInput(v *InvokeSc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AppId == nil { + if v.AppId == nil || len(*v.AppId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} } if v.AppId != nil { - if len(*v.AppId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member appId must not be empty")} - } if err := encoder.SetURI("appId").String(*v.AppId); err != nil { return err } } - if v.ScreenAutomationId == nil { + if v.ScreenAutomationId == nil || len(*v.ScreenAutomationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member screenAutomationId must not be empty")} } if v.ScreenAutomationId != nil { - if len(*v.ScreenAutomationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member screenAutomationId must not be empty")} - } if err := encoder.SetURI("screenAutomationId").String(*v.ScreenAutomationId); err != nil { return err } } - if v.ScreenId == nil { + if v.ScreenId == nil || len(*v.ScreenId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member screenId must not be empty")} } if v.ScreenId != nil { - if len(*v.ScreenId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member screenId must not be empty")} - } if err := encoder.SetURI("screenId").String(*v.ScreenId); err != nil { return err } } - if v.WorkbookId == nil { + if v.WorkbookId == nil || len(*v.WorkbookId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member workbookId must not be empty")} } if v.WorkbookId != nil { - if len(*v.WorkbookId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member workbookId must not be empty")} - } if err := encoder.SetURI("workbookId").String(*v.WorkbookId); err != nil { return err } @@ -263,17 +251,14 @@ func awsRestjson1_serializeDocumentVariableValue(v *types.VariableValue, value s return nil } -func awsRestjson1_serializeDocumentVariableValueMap(v map[string]*types.VariableValue, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentVariableValueMap(v map[string]types.VariableValue, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentVariableValue(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentVariableValue(&mapVar, om); err != nil { return err } } diff --git a/service/honeycode/types/types.go b/service/honeycode/types/types.go index f68b81fbe6f..821b246a3e3 100644 --- a/service/honeycode/types/types.go +++ b/service/honeycode/types/types.go @@ -37,7 +37,7 @@ type ResultRow struct { // List of all the data cells in a row. // // This member is required. - DataItems []*DataItem + DataItems []DataItem // The ID for a particular row. RowId *string @@ -60,14 +60,14 @@ type ResultSet struct { // assigned person will still be in the third element. // // This member is required. - Headers []*ColumnMetadata + Headers []ColumnMetadata // List of rows returned by the request. Each row has a row Id and a list of data // cells in that row. The data cells will be present in the same order as they are // defined in the header. // // This member is required. - Rows []*ResultRow + Rows []ResultRow } // The input variables to the app to be used by the InvokeScreenAutomation action diff --git a/service/honeycode/validators.go b/service/honeycode/validators.go index 71c012bcc79..4033112e1ec 100644 --- a/service/honeycode/validators.go +++ b/service/honeycode/validators.go @@ -73,13 +73,14 @@ func validateVariableValue(v *types.VariableValue) error { } } -func validateVariableValueMap(v map[string]*types.VariableValue) error { +func validateVariableValueMap(v map[string]types.VariableValue) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "VariableValueMap"} for key := range v { - if err := validateVariableValue(v[key]); err != nil { + value := v[key] + if err := validateVariableValue(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } diff --git a/service/iam/api_op_CreateLoginProfile.go b/service/iam/api_op_CreateLoginProfile.go index 21fed7c045d..b453c132f0d 100644 --- a/service/iam/api_op_CreateLoginProfile.go +++ b/service/iam/api_op_CreateLoginProfile.go @@ -56,7 +56,7 @@ type CreateLoginProfileInput struct { UserName *string // Specifies whether the user is required to set a new password on next sign-in. - PasswordResetRequired *bool + PasswordResetRequired bool } // Contains the response to a successful CreateLoginProfile request. diff --git a/service/iam/api_op_CreateOpenIDConnectProvider.go b/service/iam/api_op_CreateOpenIDConnectProvider.go index 431128cc7d4..2b0be0678cc 100644 --- a/service/iam/api_op_CreateOpenIDConnectProvider.go +++ b/service/iam/api_op_CreateOpenIDConnectProvider.go @@ -66,7 +66,7 @@ type CreateOpenIDConnectProviderInput struct { // in the IAM User Guide. // // This member is required. - ThumbprintList []*string + ThumbprintList []string // The URL of the identity provider. The URL must begin with https:// and should // correspond to the iss claim in the provider's OpenID Connect ID tokens. Per the @@ -88,7 +88,7 @@ type CreateOpenIDConnectProviderInput struct { // OIDC provider. There is no defined format for a client ID. The // CreateOpenIDConnectProviderRequest operation accepts client IDs up to 255 // characters long. - ClientIDList []*string + ClientIDList []string } // Contains the response to a successful CreateOpenIDConnectProvider request. diff --git a/service/iam/api_op_CreatePolicyVersion.go b/service/iam/api_op_CreatePolicyVersion.go index 842f39cd3ed..733fd02300f 100644 --- a/service/iam/api_op_CreatePolicyVersion.go +++ b/service/iam/api_op_CreatePolicyVersion.go @@ -75,7 +75,7 @@ type CreatePolicyVersionInput struct { // versions, see Versioning for Managed Policies // (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) // in the IAM User Guide. - SetAsDefault *bool + SetAsDefault bool } // Contains the response to a successful CreatePolicyVersion request. diff --git a/service/iam/api_op_CreateRole.go b/service/iam/api_op_CreateRole.go index 6acc53901f9..dec1a26ad37 100644 --- a/service/iam/api_op_CreateRole.go +++ b/service/iam/api_op_CreateRole.go @@ -104,7 +104,7 @@ type CreateRoleInput struct { // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the IAM User // Guide. If any one of the tags is invalid or if you exceed the allowed number of // tags per role, then the entire request fails and the role is not created. - Tags []*types.Tag + Tags []types.Tag } // Contains the response to a successful CreateRole request. diff --git a/service/iam/api_op_CreateUser.go b/service/iam/api_op_CreateUser.go index eacce8039b6..a0677a688a3 100644 --- a/service/iam/api_op_CreateUser.go +++ b/service/iam/api_op_CreateUser.go @@ -61,7 +61,7 @@ type CreateUserInput struct { // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the IAM User // Guide. If any one of the tags is invalid or if you exceed the allowed number of // tags per user, then the entire request fails and the user is not created. - Tags []*types.Tag + Tags []types.Tag } // Contains the response to a successful CreateUser request. diff --git a/service/iam/api_op_GetAccountAuthorizationDetails.go b/service/iam/api_op_GetAccountAuthorizationDetails.go index c4062b62973..77100b73d83 100644 --- a/service/iam/api_op_GetAccountAuthorizationDetails.go +++ b/service/iam/api_op_GetAccountAuthorizationDetails.go @@ -65,7 +65,7 @@ type GetAccountAuthorizationDetailsInput struct { type GetAccountAuthorizationDetailsOutput struct { // A list containing information about IAM groups. - GroupDetailList []*types.GroupDetail + GroupDetailList []types.GroupDetail // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -73,20 +73,20 @@ type GetAccountAuthorizationDetailsOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. Marker *string // A list containing information about managed policies. - Policies []*types.ManagedPolicyDetail + Policies []types.ManagedPolicyDetail // A list containing information about IAM roles. - RoleDetailList []*types.RoleDetail + RoleDetailList []types.RoleDetail // A list containing information about IAM users. - UserDetailList []*types.UserDetail + UserDetailList []types.UserDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iam/api_op_GetAccountSummary.go b/service/iam/api_op_GetAccountSummary.go index ff673da5e16..5eafffb3668 100644 --- a/service/iam/api_op_GetAccountSummary.go +++ b/service/iam/api_op_GetAccountSummary.go @@ -38,7 +38,7 @@ type GetAccountSummaryOutput struct { // A set of key–value pairs containing information about IAM entity usage and IAM // quotas. - SummaryMap map[string]*int32 + SummaryMap map[string]int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iam/api_op_GetContextKeysForCustomPolicy.go b/service/iam/api_op_GetContextKeysForCustomPolicy.go index 24658197e10..d6c11aaf863 100644 --- a/service/iam/api_op_GetContextKeysForCustomPolicy.go +++ b/service/iam/api_op_GetContextKeysForCustomPolicy.go @@ -54,7 +54,7 @@ type GetContextKeysForCustomPolicyInput struct { // (\u000A), and carriage return (\u000D) // // This member is required. - PolicyInputList []*string + PolicyInputList []string } // Contains the response to a successful GetContextKeysForPrincipalPolicy or @@ -62,7 +62,7 @@ type GetContextKeysForCustomPolicyInput struct { type GetContextKeysForCustomPolicyOutput struct { // The list of context keys that are referenced in the input policies. - ContextKeyNames []*string + ContextKeyNames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iam/api_op_GetContextKeysForPrincipalPolicy.go b/service/iam/api_op_GetContextKeysForPrincipalPolicy.go index 9ce1c649584..00c0f335c3a 100644 --- a/service/iam/api_op_GetContextKeysForPrincipalPolicy.go +++ b/service/iam/api_op_GetContextKeysForPrincipalPolicy.go @@ -70,7 +70,7 @@ type GetContextKeysForPrincipalPolicyInput struct { // // * The special characters tab (\u0009), line feed (\u000A), and carriage // return (\u000D) - PolicyInputList []*string + PolicyInputList []string } // Contains the response to a successful GetContextKeysForPrincipalPolicy or @@ -78,7 +78,7 @@ type GetContextKeysForPrincipalPolicyInput struct { type GetContextKeysForPrincipalPolicyOutput struct { // The list of context keys that are referenced in the input policies. - ContextKeyNames []*string + ContextKeyNames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iam/api_op_GetGroup.go b/service/iam/api_op_GetGroup.go index 110e2586f22..20c0649d56f 100644 --- a/service/iam/api_op_GetGroup.go +++ b/service/iam/api_op_GetGroup.go @@ -65,7 +65,7 @@ type GetGroupOutput struct { // A list of users in the group. // // This member is required. - Users []*types.User + Users []types.User // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -73,7 +73,7 @@ type GetGroupOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_GetOpenIDConnectProvider.go b/service/iam/api_op_GetOpenIDConnectProvider.go index 58155da21a9..58007a8b320 100644 --- a/service/iam/api_op_GetOpenIDConnectProvider.go +++ b/service/iam/api_op_GetOpenIDConnectProvider.go @@ -47,7 +47,7 @@ type GetOpenIDConnectProviderOutput struct { // A list of client IDs (also known as audiences) that are associated with the // specified IAM OIDC provider resource object. For more information, see // CreateOpenIDConnectProvider. - ClientIDList []*string + ClientIDList []string // The date and time when the IAM OIDC provider resource object was created in the // AWS account. @@ -56,7 +56,7 @@ type GetOpenIDConnectProviderOutput struct { // A list of certificate thumbprints that are associated with the specified IAM // OIDC provider resource object. For more information, see // CreateOpenIDConnectProvider. - ThumbprintList []*string + ThumbprintList []string // The URL that the IAM OIDC provider resource object is associated with. For more // information, see CreateOpenIDConnectProvider. diff --git a/service/iam/api_op_GetOrganizationsAccessReport.go b/service/iam/api_op_GetOrganizationsAccessReport.go index 3b24bc12fb8..f9c7af35418 100644 --- a/service/iam/api_op_GetOrganizationsAccessReport.go +++ b/service/iam/api_op_GetOrganizationsAccessReport.go @@ -87,7 +87,7 @@ type GetOrganizationsAccessReportOutput struct { // An object that contains details about the most recent attempt to access the // service. - AccessDetails []*types.AccessDetail + AccessDetails []types.AccessDetail // Contains information about the reason that the operation failed. This data type // is used as a response element in the GetOrganizationsAccessReport, @@ -101,7 +101,7 @@ type GetOrganizationsAccessReportOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // The date and time, in ISO 8601 date-time format // (http://www.iso.org/iso/iso8601), when the generated report job was completed or diff --git a/service/iam/api_op_GetServiceLastAccessedDetails.go b/service/iam/api_op_GetServiceLastAccessedDetails.go index 83fc6d4623a..02b197490fc 100644 --- a/service/iam/api_op_GetServiceLastAccessedDetails.go +++ b/service/iam/api_op_GetServiceLastAccessedDetails.go @@ -122,7 +122,7 @@ type GetServiceLastAccessedDetailsOutput struct { // to access the service. // // This member is required. - ServicesLastAccessed []*types.ServiceLastAccessed + ServicesLastAccessed []types.ServiceLastAccessed // An object that contains details about the reason the operation failed. Error *types.ErrorDetails @@ -133,7 +133,7 @@ type GetServiceLastAccessedDetailsOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // The type of job. Service jobs return information about when each service was // last accessed. Action jobs also include information about when tracked actions diff --git a/service/iam/api_op_GetServiceLastAccessedDetailsWithEntities.go b/service/iam/api_op_GetServiceLastAccessedDetailsWithEntities.go index eba41b1a240..9eccad87584 100644 --- a/service/iam/api_op_GetServiceLastAccessedDetailsWithEntities.go +++ b/service/iam/api_op_GetServiceLastAccessedDetailsWithEntities.go @@ -92,7 +92,7 @@ type GetServiceLastAccessedDetailsWithEntitiesOutput struct { // AWS service. // // This member is required. - EntityDetailsList []*types.EntityDetails + EntityDetailsList []types.EntityDetails // The date and time, in ISO 8601 date-time format // (http://www.iso.org/iso/iso8601), when the generated report job was completed or @@ -122,7 +122,7 @@ type GetServiceLastAccessedDetailsWithEntitiesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListAccessKeys.go b/service/iam/api_op_ListAccessKeys.go index 7e152c74867..98cc412051f 100644 --- a/service/iam/api_op_ListAccessKeys.go +++ b/service/iam/api_op_ListAccessKeys.go @@ -66,7 +66,7 @@ type ListAccessKeysOutput struct { // A list of objects containing metadata about the access keys. // // This member is required. - AccessKeyMetadata []*types.AccessKeyMetadata + AccessKeyMetadata []types.AccessKeyMetadata // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -74,7 +74,7 @@ type ListAccessKeysOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListAccountAliases.go b/service/iam/api_op_ListAccountAliases.go index f4f935175e8..a1f89e10047 100644 --- a/service/iam/api_op_ListAccountAliases.go +++ b/service/iam/api_op_ListAccountAliases.go @@ -55,7 +55,7 @@ type ListAccountAliasesOutput struct { // account. // // This member is required. - AccountAliases []*string + AccountAliases []string // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -63,7 +63,7 @@ type ListAccountAliasesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListAttachedGroupPolicies.go b/service/iam/api_op_ListAttachedGroupPolicies.go index e97b963b611..05058684218 100644 --- a/service/iam/api_op_ListAttachedGroupPolicies.go +++ b/service/iam/api_op_ListAttachedGroupPolicies.go @@ -76,7 +76,7 @@ type ListAttachedGroupPoliciesInput struct { type ListAttachedGroupPoliciesOutput struct { // A list of the attached policies. - AttachedPolicies []*types.AttachedPolicy + AttachedPolicies []types.AttachedPolicy // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -84,7 +84,7 @@ type ListAttachedGroupPoliciesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListAttachedRolePolicies.go b/service/iam/api_op_ListAttachedRolePolicies.go index 47aa92b417e..391ad5003df 100644 --- a/service/iam/api_op_ListAttachedRolePolicies.go +++ b/service/iam/api_op_ListAttachedRolePolicies.go @@ -76,7 +76,7 @@ type ListAttachedRolePoliciesInput struct { type ListAttachedRolePoliciesOutput struct { // A list of the attached policies. - AttachedPolicies []*types.AttachedPolicy + AttachedPolicies []types.AttachedPolicy // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -84,7 +84,7 @@ type ListAttachedRolePoliciesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListAttachedUserPolicies.go b/service/iam/api_op_ListAttachedUserPolicies.go index 22bbc41c9d1..6a8c8dc29d7 100644 --- a/service/iam/api_op_ListAttachedUserPolicies.go +++ b/service/iam/api_op_ListAttachedUserPolicies.go @@ -76,7 +76,7 @@ type ListAttachedUserPoliciesInput struct { type ListAttachedUserPoliciesOutput struct { // A list of the attached policies. - AttachedPolicies []*types.AttachedPolicy + AttachedPolicies []types.AttachedPolicy // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -84,7 +84,7 @@ type ListAttachedUserPoliciesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListEntitiesForPolicy.go b/service/iam/api_op_ListEntitiesForPolicy.go index db54d190a27..48ffe05b23b 100644 --- a/service/iam/api_op_ListEntitiesForPolicy.go +++ b/service/iam/api_op_ListEntitiesForPolicy.go @@ -91,20 +91,20 @@ type ListEntitiesForPolicyOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. Marker *string // A list of IAM groups that the policy is attached to. - PolicyGroups []*types.PolicyGroup + PolicyGroups []types.PolicyGroup // A list of IAM roles that the policy is attached to. - PolicyRoles []*types.PolicyRole + PolicyRoles []types.PolicyRole // A list of IAM users that the policy is attached to. - PolicyUsers []*types.PolicyUser + PolicyUsers []types.PolicyUser // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iam/api_op_ListGroupPolicies.go b/service/iam/api_op_ListGroupPolicies.go index 0541a3a2d18..271c13c0f93 100644 --- a/service/iam/api_op_ListGroupPolicies.go +++ b/service/iam/api_op_ListGroupPolicies.go @@ -68,7 +68,7 @@ type ListGroupPoliciesOutput struct { // of the following characters: _+=,.@- // // This member is required. - PolicyNames []*string + PolicyNames []string // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -76,7 +76,7 @@ type ListGroupPoliciesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListGroups.go b/service/iam/api_op_ListGroups.go index 76c8540b34b..b6b2fdc6371 100644 --- a/service/iam/api_op_ListGroups.go +++ b/service/iam/api_op_ListGroups.go @@ -63,7 +63,7 @@ type ListGroupsOutput struct { // A list of groups. // // This member is required. - Groups []*types.Group + Groups []types.Group // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -71,7 +71,7 @@ type ListGroupsOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListGroupsForUser.go b/service/iam/api_op_ListGroupsForUser.go index c79ab9c88c1..87ac764dc58 100644 --- a/service/iam/api_op_ListGroupsForUser.go +++ b/service/iam/api_op_ListGroupsForUser.go @@ -60,7 +60,7 @@ type ListGroupsForUserOutput struct { // A list of groups. // // This member is required. - Groups []*types.Group + Groups []types.Group // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -68,7 +68,7 @@ type ListGroupsForUserOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListInstanceProfiles.go b/service/iam/api_op_ListInstanceProfiles.go index 6b6aae75789..2f58197517d 100644 --- a/service/iam/api_op_ListInstanceProfiles.go +++ b/service/iam/api_op_ListInstanceProfiles.go @@ -66,7 +66,7 @@ type ListInstanceProfilesOutput struct { // A list of instance profiles. // // This member is required. - InstanceProfiles []*types.InstanceProfile + InstanceProfiles []types.InstanceProfile // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -74,7 +74,7 @@ type ListInstanceProfilesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListInstanceProfilesForRole.go b/service/iam/api_op_ListInstanceProfilesForRole.go index 0326299586b..7a58b73cada 100644 --- a/service/iam/api_op_ListInstanceProfilesForRole.go +++ b/service/iam/api_op_ListInstanceProfilesForRole.go @@ -63,7 +63,7 @@ type ListInstanceProfilesForRoleOutput struct { // A list of instance profiles. // // This member is required. - InstanceProfiles []*types.InstanceProfile + InstanceProfiles []types.InstanceProfile // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -71,7 +71,7 @@ type ListInstanceProfilesForRoleOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListMFADevices.go b/service/iam/api_op_ListMFADevices.go index 0816077e6a4..2ef3b6d3a29 100644 --- a/service/iam/api_op_ListMFADevices.go +++ b/service/iam/api_op_ListMFADevices.go @@ -61,7 +61,7 @@ type ListMFADevicesOutput struct { // A list of MFA devices. // // This member is required. - MFADevices []*types.MFADevice + MFADevices []types.MFADevice // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -69,7 +69,7 @@ type ListMFADevicesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListOpenIDConnectProviders.go b/service/iam/api_op_ListOpenIDConnectProviders.go index 08d998b9a06..ee98271383c 100644 --- a/service/iam/api_op_ListOpenIDConnectProviders.go +++ b/service/iam/api_op_ListOpenIDConnectProviders.go @@ -35,7 +35,7 @@ type ListOpenIDConnectProvidersInput struct { type ListOpenIDConnectProvidersOutput struct { // The list of IAM OIDC provider resource objects defined in the AWS account. - OpenIDConnectProviderList []*types.OpenIDConnectProviderListEntry + OpenIDConnectProviderList []types.OpenIDConnectProviderListEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iam/api_op_ListPolicies.go b/service/iam/api_op_ListPolicies.go index 3bf726b7207..d96f4cbd609 100644 --- a/service/iam/api_op_ListPolicies.go +++ b/service/iam/api_op_ListPolicies.go @@ -57,7 +57,7 @@ type ListPoliciesInput struct { // true, the returned list contains only the policies that are attached to an IAM // user, group, or role. When OnlyAttached is false, or when the parameter is not // included, all policies are returned. - OnlyAttached *bool + OnlyAttached bool // The path prefix for filtering the results. This parameter is optional. If it is // not included, it defaults to a slash (/), listing all policies. This parameter @@ -91,14 +91,14 @@ type ListPoliciesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. Marker *string // A list of policies. - Policies []*types.Policy + Policies []types.Policy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iam/api_op_ListPoliciesGrantingServiceAccess.go b/service/iam/api_op_ListPoliciesGrantingServiceAccess.go index 9cfa817a062..db05d187dbb 100644 --- a/service/iam/api_op_ListPoliciesGrantingServiceAccess.go +++ b/service/iam/api_op_ListPoliciesGrantingServiceAccess.go @@ -79,7 +79,7 @@ type ListPoliciesGrantingServiceAccessInput struct { // in the AWS General Reference. // // This member is required. - ServiceNamespaces []*string + ServiceNamespaces []string // Use this parameter only when paginating results and only after you receive a // response indicating that the results are truncated. Set it to the value of the @@ -94,13 +94,13 @@ type ListPoliciesGrantingServiceAccessOutput struct { // permissions policies attached to the specified identity (user, group, or role). // // This member is required. - PoliciesGrantingServiceAccess []*types.ListPoliciesGrantingServiceAccessEntry + PoliciesGrantingServiceAccess []types.ListPoliciesGrantingServiceAccessEntry // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker // request parameter to retrieve more items. We recommend that you check // IsTruncated after every call to ensure that you receive all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListPolicyVersions.go b/service/iam/api_op_ListPolicyVersions.go index f8f3da06300..808618503b7 100644 --- a/service/iam/api_op_ListPolicyVersions.go +++ b/service/iam/api_op_ListPolicyVersions.go @@ -67,7 +67,7 @@ type ListPolicyVersionsOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. @@ -77,7 +77,7 @@ type ListPolicyVersionsOutput struct { // see Versioning for Managed Policies // (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) // in the IAM User Guide. - Versions []*types.PolicyVersion + Versions []types.PolicyVersion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iam/api_op_ListRolePolicies.go b/service/iam/api_op_ListRolePolicies.go index 5d2eed96f94..3b88821fc43 100644 --- a/service/iam/api_op_ListRolePolicies.go +++ b/service/iam/api_op_ListRolePolicies.go @@ -65,7 +65,7 @@ type ListRolePoliciesOutput struct { // A list of policy names. // // This member is required. - PolicyNames []*string + PolicyNames []string // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -73,7 +73,7 @@ type ListRolePoliciesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListRoleTags.go b/service/iam/api_op_ListRoleTags.go index 4fcc306fa4b..d26f986c8e5 100644 --- a/service/iam/api_op_ListRoleTags.go +++ b/service/iam/api_op_ListRoleTags.go @@ -64,14 +64,14 @@ type ListRoleTagsOutput struct { // the response contains an empty list. // // This member is required. - Tags []*types.Tag + Tags []types.Tag // A flag that indicates whether there are more items to return. If your results // were truncated, you can use the Marker request parameter to make a subsequent // pagination request that retrieves more items. Note that IAM might return fewer // than the MaxItems number of results even when more results are available. Check // IsTruncated after every call to ensure that you receive all of your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListRoles.go b/service/iam/api_op_ListRoles.go index b4060295f70..dc1c964d132 100644 --- a/service/iam/api_op_ListRoles.go +++ b/service/iam/api_op_ListRoles.go @@ -66,7 +66,7 @@ type ListRolesOutput struct { // A list of roles. // // This member is required. - Roles []*types.Role + Roles []types.Role // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -74,7 +74,7 @@ type ListRolesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListSAMLProviders.go b/service/iam/api_op_ListSAMLProviders.go index 453ce403c61..169b455b136 100644 --- a/service/iam/api_op_ListSAMLProviders.go +++ b/service/iam/api_op_ListSAMLProviders.go @@ -36,7 +36,7 @@ type ListSAMLProvidersInput struct { type ListSAMLProvidersOutput struct { // The list of SAML provider resource objects defined in IAM for this AWS account. - SAMLProviderList []*types.SAMLProviderListEntry + SAMLProviderList []types.SAMLProviderListEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iam/api_op_ListSSHPublicKeys.go b/service/iam/api_op_ListSSHPublicKeys.go index 73335e4f280..988ecedc6c5 100644 --- a/service/iam/api_op_ListSSHPublicKeys.go +++ b/service/iam/api_op_ListSSHPublicKeys.go @@ -71,14 +71,14 @@ type ListSSHPublicKeysOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. Marker *string // A list of the SSH public keys assigned to IAM user. - SSHPublicKeys []*types.SSHPublicKeyMetadata + SSHPublicKeys []types.SSHPublicKeyMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iam/api_op_ListServerCertificates.go b/service/iam/api_op_ListServerCertificates.go index d1fb48b2964..55c7e935b00 100644 --- a/service/iam/api_op_ListServerCertificates.go +++ b/service/iam/api_op_ListServerCertificates.go @@ -68,7 +68,7 @@ type ListServerCertificatesOutput struct { // A list of server certificates. // // This member is required. - ServerCertificateMetadataList []*types.ServerCertificateMetadata + ServerCertificateMetadataList []types.ServerCertificateMetadata // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -76,7 +76,7 @@ type ListServerCertificatesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListServiceSpecificCredentials.go b/service/iam/api_op_ListServiceSpecificCredentials.go index b46c904a04f..ad233fd40ad 100644 --- a/service/iam/api_op_ListServiceSpecificCredentials.go +++ b/service/iam/api_op_ListServiceSpecificCredentials.go @@ -53,7 +53,7 @@ type ListServiceSpecificCredentialsOutput struct { // A list of structures that each contain details about a service-specific // credential. - ServiceSpecificCredentials []*types.ServiceSpecificCredentialMetadata + ServiceSpecificCredentials []types.ServiceSpecificCredentialMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iam/api_op_ListSigningCertificates.go b/service/iam/api_op_ListSigningCertificates.go index dd2cb0fa022..7488e0f552f 100644 --- a/service/iam/api_op_ListSigningCertificates.go +++ b/service/iam/api_op_ListSigningCertificates.go @@ -65,7 +65,7 @@ type ListSigningCertificatesOutput struct { // A list of the user's signing certificate information. // // This member is required. - Certificates []*types.SigningCertificate + Certificates []types.SigningCertificate // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -73,7 +73,7 @@ type ListSigningCertificatesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListUserPolicies.go b/service/iam/api_op_ListUserPolicies.go index 5b3958b5bea..b7fad8fc9e9 100644 --- a/service/iam/api_op_ListUserPolicies.go +++ b/service/iam/api_op_ListUserPolicies.go @@ -65,7 +65,7 @@ type ListUserPoliciesOutput struct { // A list of policy names. // // This member is required. - PolicyNames []*string + PolicyNames []string // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -73,7 +73,7 @@ type ListUserPoliciesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListUserTags.go b/service/iam/api_op_ListUserTags.go index 053259b647e..8ae6b7f5ae7 100644 --- a/service/iam/api_op_ListUserTags.go +++ b/service/iam/api_op_ListUserTags.go @@ -63,14 +63,14 @@ type ListUserTagsOutput struct { // the response contains an empty list. // // This member is required. - Tags []*types.Tag + Tags []types.Tag // A flag that indicates whether there are more items to return. If your results // were truncated, you can use the Marker request parameter to make a subsequent // pagination request that retrieves more items. Note that IAM might return fewer // than the MaxItems number of results even when more results are available. Check // IsTruncated after every call to ensure that you receive all of your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListUsers.go b/service/iam/api_op_ListUsers.go index 5be1fb1100d..a1b8e097464 100644 --- a/service/iam/api_op_ListUsers.go +++ b/service/iam/api_op_ListUsers.go @@ -65,7 +65,7 @@ type ListUsersOutput struct { // A list of users. // // This member is required. - Users []*types.User + Users []types.User // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -73,7 +73,7 @@ type ListUsersOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_ListVirtualMFADevices.go b/service/iam/api_op_ListVirtualMFADevices.go index 7c91accfbfb..c455b9ef536 100644 --- a/service/iam/api_op_ListVirtualMFADevices.go +++ b/service/iam/api_op_ListVirtualMFADevices.go @@ -60,7 +60,7 @@ type ListVirtualMFADevicesOutput struct { // AssignmentStatus value that was passed in the request. // // This member is required. - VirtualMFADevices []*types.VirtualMFADevice + VirtualMFADevices []types.VirtualMFADevice // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -68,7 +68,7 @@ type ListVirtualMFADevicesOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_SimulateCustomPolicy.go b/service/iam/api_op_SimulateCustomPolicy.go index 43fcf748886..a83a54ea81e 100644 --- a/service/iam/api_op_SimulateCustomPolicy.go +++ b/service/iam/api_op_SimulateCustomPolicy.go @@ -46,7 +46,7 @@ type SimulateCustomPolicyInput struct { // wildcards (*) in an action name. // // This member is required. - ActionNames []*string + ActionNames []string // A list of policy documents to include in the simulation. Each document is // specified as a string containing the complete, valid JSON text of an IAM policy. @@ -73,7 +73,7 @@ type SimulateCustomPolicyInput struct { // (\u000A), and carriage return (\u000D) // // This member is required. - PolicyInputList []*string + PolicyInputList []string // The ARN of the IAM user that you want to use as the simulated caller of the API // operations. CallerArn is required if you include a ResourcePolicy so that the @@ -85,7 +85,7 @@ type SimulateCustomPolicyInput struct { // A list of context keys and corresponding values for the simulation to use. // Whenever a context key is evaluated in one of the simulated IAM permissions // policies, the corresponding value is supplied. - ContextEntries []*types.ContextEntry + ContextEntries []types.ContextEntry // Use this parameter only when paginating results and only after you receive a // response indicating that the results are truncated. Set it to the value of the @@ -122,7 +122,7 @@ type SimulateCustomPolicyInput struct { // // * The special characters tab // (\u0009), line feed (\u000A), and carriage return (\u000D) - PermissionsBoundaryPolicyInputList []*string + PermissionsBoundaryPolicyInputList []string // A list of ARNs of AWS resources to include in the simulation. If this parameter // is not provided, then the value defaults to * (all resources). Each API in the @@ -137,7 +137,7 @@ type SimulateCustomPolicyInput struct { // (ARNs) and AWS Service Namespaces // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. - ResourceArns []*string + ResourceArns []string // Specifies the type of simulation to run. Different API operations that support // resource-based policies require different combinations of resources. By @@ -211,7 +211,7 @@ type SimulateCustomPolicyInput struct { type SimulateCustomPolicyOutput struct { // The results of the simulation. - EvaluationResults []*types.EvaluationResult + EvaluationResults []types.EvaluationResult // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -219,7 +219,7 @@ type SimulateCustomPolicyOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_SimulatePrincipalPolicy.go b/service/iam/api_op_SimulatePrincipalPolicy.go index b9ddca889c9..5958b6e9681 100644 --- a/service/iam/api_op_SimulatePrincipalPolicy.go +++ b/service/iam/api_op_SimulatePrincipalPolicy.go @@ -53,7 +53,7 @@ type SimulatePrincipalPolicyInput struct { // identifier, such as iam:CreateUser. // // This member is required. - ActionNames []*string + ActionNames []string // The Amazon Resource Name (ARN) of a user, group, or role whose policies you want // to include in the simulation. If you specify a user, group, or role, the @@ -87,7 +87,7 @@ type SimulatePrincipalPolicyInput struct { // A list of context keys and corresponding values for the simulation to use. // Whenever a context key is evaluated in one of the simulated IAM permissions // policies, the corresponding value is supplied. - ContextEntries []*types.ContextEntry + ContextEntries []types.ContextEntry // Use this parameter only when paginating results and only after you receive a // response indicating that the results are truncated. Set it to the value of the @@ -127,7 +127,7 @@ type SimulatePrincipalPolicyInput struct { // // * The special characters tab (\u0009), line feed // (\u000A), and carriage return (\u000D) - PermissionsBoundaryPolicyInputList []*string + PermissionsBoundaryPolicyInputList []string // An optional list of additional policy documents to include in the simulation. // Each document is specified as a string containing the complete, valid JSON text @@ -144,7 +144,7 @@ type SimulatePrincipalPolicyInput struct { // // * The special characters tab (\u0009), line feed (\u000A), and carriage // return (\u000D) - PolicyInputList []*string + PolicyInputList []string // A list of ARNs of AWS resources to include in the simulation. If this parameter // is not provided, then the value defaults to * (all resources). Each API in the @@ -157,7 +157,7 @@ type SimulatePrincipalPolicyInput struct { // Names (ARNs) and AWS Service Namespaces // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in // the AWS General Reference. - ResourceArns []*string + ResourceArns []string // Specifies the type of simulation to run. Different API operations that support // resource-based policies require different combinations of resources. By @@ -228,7 +228,7 @@ type SimulatePrincipalPolicyInput struct { type SimulatePrincipalPolicyOutput struct { // The results of the simulation. - EvaluationResults []*types.EvaluationResult + EvaluationResults []types.EvaluationResult // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker @@ -236,7 +236,7 @@ type SimulatePrincipalPolicyOutput struct { // the MaxItems number of results even when there are more results available. We // recommend that you check IsTruncated after every call to ensure that you receive // all your results. - IsTruncated *bool + IsTruncated bool // When IsTruncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent pagination request. diff --git a/service/iam/api_op_TagRole.go b/service/iam/api_op_TagRole.go index 5fb807c0c10..1a41df82535 100644 --- a/service/iam/api_op_TagRole.go +++ b/service/iam/api_op_TagRole.go @@ -75,7 +75,7 @@ type TagRoleInput struct { // name and an associated value. You can specify this with a JSON string. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagRoleOutput struct { diff --git a/service/iam/api_op_TagUser.go b/service/iam/api_op_TagUser.go index 00ed9c0bdbd..2b397716c36 100644 --- a/service/iam/api_op_TagUser.go +++ b/service/iam/api_op_TagUser.go @@ -66,7 +66,7 @@ type TagUserInput struct { // name and an associated value. // // This member is required. - Tags []*types.Tag + Tags []types.Tag // The name of the user that you want to add tags to. This parameter accepts // (through its regex pattern (http://wikipedia.org/wiki/regex)) a string of diff --git a/service/iam/api_op_UntagRole.go b/service/iam/api_op_UntagRole.go index 21ab90f9067..5ec87a29a92 100644 --- a/service/iam/api_op_UntagRole.go +++ b/service/iam/api_op_UntagRole.go @@ -43,7 +43,7 @@ type UntagRoleInput struct { // are removed from the specified role. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagRoleOutput struct { diff --git a/service/iam/api_op_UntagUser.go b/service/iam/api_op_UntagUser.go index 38cda066a3f..c55e51fabee 100644 --- a/service/iam/api_op_UntagUser.go +++ b/service/iam/api_op_UntagUser.go @@ -35,7 +35,7 @@ type UntagUserInput struct { // are removed from the specified user. // // This member is required. - TagKeys []*string + TagKeys []string // The name of the IAM user from which you want to remove tags. This parameter // accepts (through its regex pattern (http://wikipedia.org/wiki/regex)) a string diff --git a/service/iam/api_op_UpdateAccountPasswordPolicy.go b/service/iam/api_op_UpdateAccountPasswordPolicy.go index 21223e8cd7a..12146092f07 100644 --- a/service/iam/api_op_UpdateAccountPasswordPolicy.go +++ b/service/iam/api_op_UpdateAccountPasswordPolicy.go @@ -48,7 +48,7 @@ type UpdateAccountPasswordPolicyInput struct { // IAM User Guide. If you do not specify a value for this parameter, then the // operation uses the default value of false. The result is that IAM users in the // account do not automatically have permissions to change their own password. - AllowUsersToChangePassword *bool + AllowUsersToChangePassword bool // Prevents IAM users from setting a new password after their password has expired. // The IAM user cannot be accessed until an administrator resets the password. If @@ -77,26 +77,26 @@ type UpdateAccountPasswordPolicyInput struct { // character from the ISO basic Latin alphabet (a to z). If you do not specify a // value for this parameter, then the operation uses the default value of false. // The result is that passwords do not require at least one lowercase character. - RequireLowercaseCharacters *bool + RequireLowercaseCharacters bool // Specifies whether IAM user passwords must contain at least one numeric character // (0 to 9). If you do not specify a value for this parameter, then the operation // uses the default value of false. The result is that passwords do not require at // least one numeric character. - RequireNumbers *bool + RequireNumbers bool // Specifies whether IAM user passwords must contain at least one of the following // non-alphanumeric characters: ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' If you do // not specify a value for this parameter, then the operation uses the default // value of false. The result is that passwords do not require at least one symbol // character. - RequireSymbols *bool + RequireSymbols bool // Specifies whether IAM user passwords must contain at least one uppercase // character from the ISO basic Latin alphabet (A to Z). If you do not specify a // value for this parameter, then the operation uses the default value of false. // The result is that passwords do not require at least one uppercase character. - RequireUppercaseCharacters *bool + RequireUppercaseCharacters bool } type UpdateAccountPasswordPolicyOutput struct { diff --git a/service/iam/api_op_UpdateOpenIDConnectProviderThumbprint.go b/service/iam/api_op_UpdateOpenIDConnectProviderThumbprint.go index 430f852c99a..d1ba6cfba08 100644 --- a/service/iam/api_op_UpdateOpenIDConnectProviderThumbprint.go +++ b/service/iam/api_op_UpdateOpenIDConnectProviderThumbprint.go @@ -52,7 +52,7 @@ type UpdateOpenIDConnectProviderThumbprintInput struct { // OpenID Connect provider. For more information, see CreateOpenIDConnectProvider. // // This member is required. - ThumbprintList []*string + ThumbprintList []string } type UpdateOpenIDConnectProviderThumbprintOutput struct { diff --git a/service/iam/deserializers.go b/service/iam/deserializers.go index 80258502c7a..e9b85b4eef3 100644 --- a/service/iam/deserializers.go +++ b/service/iam/deserializers.go @@ -15256,7 +15256,7 @@ func awsAwsquery_deserializeDocumentAccessDetail(v **types.AccessDetail, decoder } if val != nil { xtv := string(val) - sv.EntityPath = &xtv + sv.EntityPath = ptr.String(xtv) } case strings.EqualFold("LastAuthenticatedTime", t.Name.Local): @@ -15273,7 +15273,7 @@ func awsAwsquery_deserializeDocumentAccessDetail(v **types.AccessDetail, decoder if err != nil { return err } - sv.LastAuthenticatedTime = &t + sv.LastAuthenticatedTime = ptr.Time(t) } case strings.EqualFold("Region", t.Name.Local): @@ -15289,7 +15289,7 @@ func awsAwsquery_deserializeDocumentAccessDetail(v **types.AccessDetail, decoder } if val != nil { xtv := string(val) - sv.Region = &xtv + sv.Region = ptr.String(xtv) } case strings.EqualFold("ServiceName", t.Name.Local): @@ -15305,7 +15305,7 @@ func awsAwsquery_deserializeDocumentAccessDetail(v **types.AccessDetail, decoder } if val != nil { xtv := string(val) - sv.ServiceName = &xtv + sv.ServiceName = ptr.String(xtv) } case strings.EqualFold("ServiceNamespace", t.Name.Local): @@ -15321,7 +15321,7 @@ func awsAwsquery_deserializeDocumentAccessDetail(v **types.AccessDetail, decoder } if val != nil { xtv := string(val) - sv.ServiceNamespace = &xtv + sv.ServiceNamespace = ptr.String(xtv) } case strings.EqualFold("TotalAuthenticatedEntities", t.Name.Local): @@ -15351,13 +15351,13 @@ func awsAwsquery_deserializeDocumentAccessDetail(v **types.AccessDetail, decoder return nil } -func awsAwsquery_deserializeDocumentAccessDetails(v *[]*types.AccessDetail, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAccessDetails(v *[]types.AccessDetail, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AccessDetail + var sv []types.AccessDetail if *v == nil { - sv = make([]*types.AccessDetail, 0) + sv = make([]types.AccessDetail, 0) } else { sv = *v } @@ -15373,11 +15373,13 @@ func awsAwsquery_deserializeDocumentAccessDetails(v *[]*types.AccessDetail, deco } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AccessDetail + var col types.AccessDetail nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAccessDetail(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAccessDetail(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15390,23 +15392,25 @@ func awsAwsquery_deserializeDocumentAccessDetails(v *[]*types.AccessDetail, deco return nil } -func awsAwsquery_deserializeDocumentAccessDetailsUnwrapped(v *[]*types.AccessDetail, decoder smithyxml.NodeDecoder) error { - var sv []*types.AccessDetail +func awsAwsquery_deserializeDocumentAccessDetailsUnwrapped(v *[]types.AccessDetail, decoder smithyxml.NodeDecoder) error { + var sv []types.AccessDetail if *v == nil { - sv = make([]*types.AccessDetail, 0) + sv = make([]types.AccessDetail, 0) } else { sv = *v } switch { default: - var mv *types.AccessDetail + var mv types.AccessDetail t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAccessDetail(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAccessDetail(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15447,7 +15451,7 @@ func awsAwsquery_deserializeDocumentAccessKey(v **types.AccessKey, decoder smith } if val != nil { xtv := string(val) - sv.AccessKeyId = &xtv + sv.AccessKeyId = ptr.String(xtv) } case strings.EqualFold("CreateDate", t.Name.Local): @@ -15464,7 +15468,7 @@ func awsAwsquery_deserializeDocumentAccessKey(v **types.AccessKey, decoder smith if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("SecretAccessKey", t.Name.Local): @@ -15480,7 +15484,7 @@ func awsAwsquery_deserializeDocumentAccessKey(v **types.AccessKey, decoder smith } if val != nil { xtv := string(val) - sv.SecretAccessKey = &xtv + sv.SecretAccessKey = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -15509,7 +15513,7 @@ func awsAwsquery_deserializeDocumentAccessKey(v **types.AccessKey, decoder smith } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -15558,7 +15562,7 @@ func awsAwsquery_deserializeDocumentAccessKeyLastUsed(v **types.AccessKeyLastUse if err != nil { return err } - sv.LastUsedDate = &t + sv.LastUsedDate = ptr.Time(t) } case strings.EqualFold("Region", t.Name.Local): @@ -15574,7 +15578,7 @@ func awsAwsquery_deserializeDocumentAccessKeyLastUsed(v **types.AccessKeyLastUse } if val != nil { xtv := string(val) - sv.Region = &xtv + sv.Region = ptr.String(xtv) } case strings.EqualFold("ServiceName", t.Name.Local): @@ -15590,7 +15594,7 @@ func awsAwsquery_deserializeDocumentAccessKeyLastUsed(v **types.AccessKeyLastUse } if val != nil { xtv := string(val) - sv.ServiceName = &xtv + sv.ServiceName = ptr.String(xtv) } default: @@ -15638,7 +15642,7 @@ func awsAwsquery_deserializeDocumentAccessKeyMetadata(v **types.AccessKeyMetadat } if val != nil { xtv := string(val) - sv.AccessKeyId = &xtv + sv.AccessKeyId = ptr.String(xtv) } case strings.EqualFold("CreateDate", t.Name.Local): @@ -15655,7 +15659,7 @@ func awsAwsquery_deserializeDocumentAccessKeyMetadata(v **types.AccessKeyMetadat if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("Status", t.Name.Local): @@ -15684,7 +15688,7 @@ func awsAwsquery_deserializeDocumentAccessKeyMetadata(v **types.AccessKeyMetadat } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -15697,13 +15701,13 @@ func awsAwsquery_deserializeDocumentAccessKeyMetadata(v **types.AccessKeyMetadat return nil } -func awsAwsquery_deserializeDocumentAccessKeyMetadataListType(v *[]*types.AccessKeyMetadata, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAccessKeyMetadataListType(v *[]types.AccessKeyMetadata, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AccessKeyMetadata + var sv []types.AccessKeyMetadata if *v == nil { - sv = make([]*types.AccessKeyMetadata, 0) + sv = make([]types.AccessKeyMetadata, 0) } else { sv = *v } @@ -15719,11 +15723,13 @@ func awsAwsquery_deserializeDocumentAccessKeyMetadataListType(v *[]*types.Access } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AccessKeyMetadata + var col types.AccessKeyMetadata nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAccessKeyMetadata(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAccessKeyMetadata(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15736,35 +15742,37 @@ func awsAwsquery_deserializeDocumentAccessKeyMetadataListType(v *[]*types.Access return nil } -func awsAwsquery_deserializeDocumentAccessKeyMetadataListTypeUnwrapped(v *[]*types.AccessKeyMetadata, decoder smithyxml.NodeDecoder) error { - var sv []*types.AccessKeyMetadata +func awsAwsquery_deserializeDocumentAccessKeyMetadataListTypeUnwrapped(v *[]types.AccessKeyMetadata, decoder smithyxml.NodeDecoder) error { + var sv []types.AccessKeyMetadata if *v == nil { - sv = make([]*types.AccessKeyMetadata, 0) + sv = make([]types.AccessKeyMetadata, 0) } else { sv = *v } switch { default: - var mv *types.AccessKeyMetadata + var mv types.AccessKeyMetadata t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAccessKeyMetadata(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAccessKeyMetadata(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAccountAliasListType(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAccountAliasListType(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -15782,20 +15790,17 @@ func awsAwsquery_deserializeDocumentAccountAliasListType(v *[]*string, decoder s decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -15808,17 +15813,17 @@ func awsAwsquery_deserializeDocumentAccountAliasListType(v *[]*string, decoder s return nil } -func awsAwsquery_deserializeDocumentAccountAliasListTypeUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAccountAliasListTypeUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -15826,27 +15831,24 @@ func awsAwsquery_deserializeDocumentAccountAliasListTypeUnwrapped(v *[]*string, return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentArnListType(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentArnListType(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -15864,20 +15866,17 @@ func awsAwsquery_deserializeDocumentArnListType(v *[]*string, decoder smithyxml. decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -15890,17 +15889,17 @@ func awsAwsquery_deserializeDocumentArnListType(v *[]*string, decoder smithyxml. return nil } -func awsAwsquery_deserializeDocumentArnListTypeUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentArnListTypeUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -15908,14 +15907,11 @@ func awsAwsquery_deserializeDocumentArnListTypeUnwrapped(v *[]*string, decoder s return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -15957,7 +15953,7 @@ func awsAwsquery_deserializeDocumentAttachedPermissionsBoundary(v **types.Attach } if val != nil { xtv := string(val) - sv.PermissionsBoundaryArn = &xtv + sv.PermissionsBoundaryArn = ptr.String(xtv) } case strings.EqualFold("PermissionsBoundaryType", t.Name.Local): @@ -15983,13 +15979,13 @@ func awsAwsquery_deserializeDocumentAttachedPermissionsBoundary(v **types.Attach return nil } -func awsAwsquery_deserializeDocumentAttachedPoliciesListType(v *[]*types.AttachedPolicy, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAttachedPoliciesListType(v *[]types.AttachedPolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AttachedPolicy + var sv []types.AttachedPolicy if *v == nil { - sv = make([]*types.AttachedPolicy, 0) + sv = make([]types.AttachedPolicy, 0) } else { sv = *v } @@ -16005,11 +16001,13 @@ func awsAwsquery_deserializeDocumentAttachedPoliciesListType(v *[]*types.Attache } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AttachedPolicy + var col types.AttachedPolicy nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAttachedPolicy(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAttachedPolicy(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16022,23 +16020,25 @@ func awsAwsquery_deserializeDocumentAttachedPoliciesListType(v *[]*types.Attache return nil } -func awsAwsquery_deserializeDocumentAttachedPoliciesListTypeUnwrapped(v *[]*types.AttachedPolicy, decoder smithyxml.NodeDecoder) error { - var sv []*types.AttachedPolicy +func awsAwsquery_deserializeDocumentAttachedPoliciesListTypeUnwrapped(v *[]types.AttachedPolicy, decoder smithyxml.NodeDecoder) error { + var sv []types.AttachedPolicy if *v == nil { - sv = make([]*types.AttachedPolicy, 0) + sv = make([]types.AttachedPolicy, 0) } else { sv = *v } switch { default: - var mv *types.AttachedPolicy + var mv types.AttachedPolicy t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAttachedPolicy(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAttachedPolicy(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16079,7 +16079,7 @@ func awsAwsquery_deserializeDocumentAttachedPolicy(v **types.AttachedPolicy, dec } if val != nil { xtv := string(val) - sv.PolicyArn = &xtv + sv.PolicyArn = ptr.String(xtv) } case strings.EqualFold("PolicyName", t.Name.Local): @@ -16095,7 +16095,7 @@ func awsAwsquery_deserializeDocumentAttachedPolicy(v **types.AttachedPolicy, dec } if val != nil { xtv := string(val) - sv.PolicyName = &xtv + sv.PolicyName = ptr.String(xtv) } default: @@ -16108,13 +16108,13 @@ func awsAwsquery_deserializeDocumentAttachedPolicy(v **types.AttachedPolicy, dec return nil } -func awsAwsquery_deserializeDocumentCertificateListType(v *[]*types.SigningCertificate, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCertificateListType(v *[]types.SigningCertificate, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SigningCertificate + var sv []types.SigningCertificate if *v == nil { - sv = make([]*types.SigningCertificate, 0) + sv = make([]types.SigningCertificate, 0) } else { sv = *v } @@ -16130,11 +16130,13 @@ func awsAwsquery_deserializeDocumentCertificateListType(v *[]*types.SigningCerti } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.SigningCertificate + var col types.SigningCertificate nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSigningCertificate(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSigningCertificate(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16147,35 +16149,37 @@ func awsAwsquery_deserializeDocumentCertificateListType(v *[]*types.SigningCerti return nil } -func awsAwsquery_deserializeDocumentCertificateListTypeUnwrapped(v *[]*types.SigningCertificate, decoder smithyxml.NodeDecoder) error { - var sv []*types.SigningCertificate +func awsAwsquery_deserializeDocumentCertificateListTypeUnwrapped(v *[]types.SigningCertificate, decoder smithyxml.NodeDecoder) error { + var sv []types.SigningCertificate if *v == nil { - sv = make([]*types.SigningCertificate, 0) + sv = make([]types.SigningCertificate, 0) } else { sv = *v } switch { default: - var mv *types.SigningCertificate + var mv types.SigningCertificate t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSigningCertificate(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSigningCertificate(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentClientIDListType(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClientIDListType(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -16193,20 +16197,17 @@ func awsAwsquery_deserializeDocumentClientIDListType(v *[]*string, decoder smith decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -16219,17 +16220,17 @@ func awsAwsquery_deserializeDocumentClientIDListType(v *[]*string, decoder smith return nil } -func awsAwsquery_deserializeDocumentClientIDListTypeUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentClientIDListTypeUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -16237,14 +16238,11 @@ func awsAwsquery_deserializeDocumentClientIDListTypeUnwrapped(v *[]*string, deco return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -16286,7 +16284,7 @@ func awsAwsquery_deserializeDocumentConcurrentModificationException(v **types.Co } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16299,13 +16297,13 @@ func awsAwsquery_deserializeDocumentConcurrentModificationException(v **types.Co return nil } -func awsAwsquery_deserializeDocumentContextKeyNamesResultListType(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentContextKeyNamesResultListType(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -16323,20 +16321,17 @@ func awsAwsquery_deserializeDocumentContextKeyNamesResultListType(v *[]*string, decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -16349,17 +16344,17 @@ func awsAwsquery_deserializeDocumentContextKeyNamesResultListType(v *[]*string, return nil } -func awsAwsquery_deserializeDocumentContextKeyNamesResultListTypeUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentContextKeyNamesResultListTypeUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -16367,14 +16362,11 @@ func awsAwsquery_deserializeDocumentContextKeyNamesResultListTypeUnwrapped(v *[] return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -16416,7 +16408,7 @@ func awsAwsquery_deserializeDocumentCredentialReportExpiredException(v **types.C } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16464,7 +16456,7 @@ func awsAwsquery_deserializeDocumentCredentialReportNotPresentException(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16512,7 +16504,7 @@ func awsAwsquery_deserializeDocumentCredentialReportNotReadyException(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16560,7 +16552,7 @@ func awsAwsquery_deserializeDocumentDeleteConflictException(v **types.DeleteConf } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16608,7 +16600,7 @@ func awsAwsquery_deserializeDocumentDeletionTaskFailureReasonType(v **types.Dele } if val != nil { xtv := string(val) - sv.Reason = &xtv + sv.Reason = ptr.String(xtv) } case strings.EqualFold("RoleUsageList", t.Name.Local): @@ -16662,7 +16654,7 @@ func awsAwsquery_deserializeDocumentDuplicateCertificateException(v **types.Dupl } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16710,7 +16702,7 @@ func awsAwsquery_deserializeDocumentDuplicateSSHPublicKeyException(v **types.Dup } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16758,7 +16750,7 @@ func awsAwsquery_deserializeDocumentEntityAlreadyExistsException(v **types.Entit } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16813,7 +16805,7 @@ func awsAwsquery_deserializeDocumentEntityDetails(v **types.EntityDetails, decod if err != nil { return err } - sv.LastAuthenticated = &t + sv.LastAuthenticated = ptr.Time(t) } default: @@ -16826,13 +16818,13 @@ func awsAwsquery_deserializeDocumentEntityDetails(v **types.EntityDetails, decod return nil } -func awsAwsquery_deserializeDocumentEntityDetailsListType(v *[]*types.EntityDetails, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEntityDetailsListType(v *[]types.EntityDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EntityDetails + var sv []types.EntityDetails if *v == nil { - sv = make([]*types.EntityDetails, 0) + sv = make([]types.EntityDetails, 0) } else { sv = *v } @@ -16848,11 +16840,13 @@ func awsAwsquery_deserializeDocumentEntityDetailsListType(v *[]*types.EntityDeta } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.EntityDetails + var col types.EntityDetails nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEntityDetails(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEntityDetails(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16865,23 +16859,25 @@ func awsAwsquery_deserializeDocumentEntityDetailsListType(v *[]*types.EntityDeta return nil } -func awsAwsquery_deserializeDocumentEntityDetailsListTypeUnwrapped(v *[]*types.EntityDetails, decoder smithyxml.NodeDecoder) error { - var sv []*types.EntityDetails +func awsAwsquery_deserializeDocumentEntityDetailsListTypeUnwrapped(v *[]types.EntityDetails, decoder smithyxml.NodeDecoder) error { + var sv []types.EntityDetails if *v == nil { - sv = make([]*types.EntityDetails, 0) + sv = make([]types.EntityDetails, 0) } else { sv = *v } switch { default: - var mv *types.EntityDetails + var mv types.EntityDetails t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEntityDetails(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEntityDetails(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16922,7 +16918,7 @@ func awsAwsquery_deserializeDocumentEntityInfo(v **types.EntityInfo, decoder smi } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -16938,7 +16934,7 @@ func awsAwsquery_deserializeDocumentEntityInfo(v **types.EntityInfo, decoder smi } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -16954,7 +16950,7 @@ func awsAwsquery_deserializeDocumentEntityInfo(v **types.EntityInfo, decoder smi } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Path", t.Name.Local): @@ -16970,7 +16966,7 @@ func awsAwsquery_deserializeDocumentEntityInfo(v **types.EntityInfo, decoder smi } if val != nil { xtv := string(val) - sv.Path = &xtv + sv.Path = ptr.String(xtv) } case strings.EqualFold("Type", t.Name.Local): @@ -17031,7 +17027,7 @@ func awsAwsquery_deserializeDocumentEntityTemporarilyUnmodifiableException(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17079,7 +17075,7 @@ func awsAwsquery_deserializeDocumentErrorDetails(v **types.ErrorDetails, decoder } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -17095,7 +17091,7 @@ func awsAwsquery_deserializeDocumentErrorDetails(v **types.ErrorDetails, decoder } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17146,7 +17142,7 @@ func awsAwsquery_deserializeDocumentEvalDecisionDetailsTypeUnwrapped(v *map[stri sv = *v } - var ek *string + var ek string var ev types.PolicyEvaluationDecisionType for { t, done, err := decoder.Token() @@ -17154,7 +17150,7 @@ func awsAwsquery_deserializeDocumentEvalDecisionDetailsTypeUnwrapped(v *map[stri return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -17164,14 +17160,11 @@ func awsAwsquery_deserializeDocumentEvalDecisionDetailsTypeUnwrapped(v *map[stri return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): @@ -17230,7 +17223,7 @@ func awsAwsquery_deserializeDocumentEvaluationResult(v **types.EvaluationResult, } if val != nil { xtv := string(val) - sv.EvalActionName = &xtv + sv.EvalActionName = ptr.String(xtv) } case strings.EqualFold("EvalDecision", t.Name.Local): @@ -17265,7 +17258,7 @@ func awsAwsquery_deserializeDocumentEvaluationResult(v **types.EvaluationResult, } if val != nil { xtv := string(val) - sv.EvalResourceName = &xtv + sv.EvalResourceName = ptr.String(xtv) } case strings.EqualFold("MatchedStatements", t.Name.Local): @@ -17308,13 +17301,13 @@ func awsAwsquery_deserializeDocumentEvaluationResult(v **types.EvaluationResult, return nil } -func awsAwsquery_deserializeDocumentEvaluationResultsListType(v *[]*types.EvaluationResult, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEvaluationResultsListType(v *[]types.EvaluationResult, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EvaluationResult + var sv []types.EvaluationResult if *v == nil { - sv = make([]*types.EvaluationResult, 0) + sv = make([]types.EvaluationResult, 0) } else { sv = *v } @@ -17330,11 +17323,13 @@ func awsAwsquery_deserializeDocumentEvaluationResultsListType(v *[]*types.Evalua } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.EvaluationResult + var col types.EvaluationResult nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEvaluationResult(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEvaluationResult(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17347,23 +17342,25 @@ func awsAwsquery_deserializeDocumentEvaluationResultsListType(v *[]*types.Evalua return nil } -func awsAwsquery_deserializeDocumentEvaluationResultsListTypeUnwrapped(v *[]*types.EvaluationResult, decoder smithyxml.NodeDecoder) error { - var sv []*types.EvaluationResult +func awsAwsquery_deserializeDocumentEvaluationResultsListTypeUnwrapped(v *[]types.EvaluationResult, decoder smithyxml.NodeDecoder) error { + var sv []types.EvaluationResult if *v == nil { - sv = make([]*types.EvaluationResult, 0) + sv = make([]types.EvaluationResult, 0) } else { sv = *v } switch { default: - var mv *types.EvaluationResult + var mv types.EvaluationResult t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEvaluationResult(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEvaluationResult(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17404,7 +17401,7 @@ func awsAwsquery_deserializeDocumentGroup(v **types.Group, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("CreateDate", t.Name.Local): @@ -17421,7 +17418,7 @@ func awsAwsquery_deserializeDocumentGroup(v **types.Group, decoder smithyxml.Nod if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("GroupId", t.Name.Local): @@ -17437,7 +17434,7 @@ func awsAwsquery_deserializeDocumentGroup(v **types.Group, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.GroupId = &xtv + sv.GroupId = ptr.String(xtv) } case strings.EqualFold("GroupName", t.Name.Local): @@ -17453,7 +17450,7 @@ func awsAwsquery_deserializeDocumentGroup(v **types.Group, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } case strings.EqualFold("Path", t.Name.Local): @@ -17469,7 +17466,7 @@ func awsAwsquery_deserializeDocumentGroup(v **types.Group, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Path = &xtv + sv.Path = ptr.String(xtv) } default: @@ -17517,7 +17514,7 @@ func awsAwsquery_deserializeDocumentGroupDetail(v **types.GroupDetail, decoder s } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("AttachedManagedPolicies", t.Name.Local): @@ -17540,7 +17537,7 @@ func awsAwsquery_deserializeDocumentGroupDetail(v **types.GroupDetail, decoder s if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("GroupId", t.Name.Local): @@ -17556,7 +17553,7 @@ func awsAwsquery_deserializeDocumentGroupDetail(v **types.GroupDetail, decoder s } if val != nil { xtv := string(val) - sv.GroupId = &xtv + sv.GroupId = ptr.String(xtv) } case strings.EqualFold("GroupName", t.Name.Local): @@ -17572,7 +17569,7 @@ func awsAwsquery_deserializeDocumentGroupDetail(v **types.GroupDetail, decoder s } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } case strings.EqualFold("GroupPolicyList", t.Name.Local): @@ -17594,7 +17591,7 @@ func awsAwsquery_deserializeDocumentGroupDetail(v **types.GroupDetail, decoder s } if val != nil { xtv := string(val) - sv.Path = &xtv + sv.Path = ptr.String(xtv) } default: @@ -17607,13 +17604,13 @@ func awsAwsquery_deserializeDocumentGroupDetail(v **types.GroupDetail, decoder s return nil } -func awsAwsquery_deserializeDocumentGroupDetailListType(v *[]*types.GroupDetail, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGroupDetailListType(v *[]types.GroupDetail, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.GroupDetail + var sv []types.GroupDetail if *v == nil { - sv = make([]*types.GroupDetail, 0) + sv = make([]types.GroupDetail, 0) } else { sv = *v } @@ -17629,11 +17626,13 @@ func awsAwsquery_deserializeDocumentGroupDetailListType(v *[]*types.GroupDetail, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.GroupDetail + var col types.GroupDetail nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGroupDetail(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentGroupDetail(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17646,35 +17645,37 @@ func awsAwsquery_deserializeDocumentGroupDetailListType(v *[]*types.GroupDetail, return nil } -func awsAwsquery_deserializeDocumentGroupDetailListTypeUnwrapped(v *[]*types.GroupDetail, decoder smithyxml.NodeDecoder) error { - var sv []*types.GroupDetail +func awsAwsquery_deserializeDocumentGroupDetailListTypeUnwrapped(v *[]types.GroupDetail, decoder smithyxml.NodeDecoder) error { + var sv []types.GroupDetail if *v == nil { - sv = make([]*types.GroupDetail, 0) + sv = make([]types.GroupDetail, 0) } else { sv = *v } switch { default: - var mv *types.GroupDetail + var mv types.GroupDetail t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGroupDetail(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentGroupDetail(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentGroupListType(v *[]*types.Group, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGroupListType(v *[]types.Group, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Group + var sv []types.Group if *v == nil { - sv = make([]*types.Group, 0) + sv = make([]types.Group, 0) } else { sv = *v } @@ -17690,11 +17691,13 @@ func awsAwsquery_deserializeDocumentGroupListType(v *[]*types.Group, decoder smi } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Group + var col types.Group nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17707,35 +17710,37 @@ func awsAwsquery_deserializeDocumentGroupListType(v *[]*types.Group, decoder smi return nil } -func awsAwsquery_deserializeDocumentGroupListTypeUnwrapped(v *[]*types.Group, decoder smithyxml.NodeDecoder) error { - var sv []*types.Group +func awsAwsquery_deserializeDocumentGroupListTypeUnwrapped(v *[]types.Group, decoder smithyxml.NodeDecoder) error { + var sv []types.Group if *v == nil { - sv = make([]*types.Group, 0) + sv = make([]types.Group, 0) } else { sv = *v } switch { default: - var mv *types.Group + var mv types.Group t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentGroupNameListType(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGroupNameListType(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -17753,20 +17758,17 @@ func awsAwsquery_deserializeDocumentGroupNameListType(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -17779,17 +17781,17 @@ func awsAwsquery_deserializeDocumentGroupNameListType(v *[]*string, decoder smit return nil } -func awsAwsquery_deserializeDocumentGroupNameListTypeUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentGroupNameListTypeUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -17797,14 +17799,11 @@ func awsAwsquery_deserializeDocumentGroupNameListTypeUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -17846,7 +17845,7 @@ func awsAwsquery_deserializeDocumentInstanceProfile(v **types.InstanceProfile, d } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("CreateDate", t.Name.Local): @@ -17863,7 +17862,7 @@ func awsAwsquery_deserializeDocumentInstanceProfile(v **types.InstanceProfile, d if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("InstanceProfileId", t.Name.Local): @@ -17879,7 +17878,7 @@ func awsAwsquery_deserializeDocumentInstanceProfile(v **types.InstanceProfile, d } if val != nil { xtv := string(val) - sv.InstanceProfileId = &xtv + sv.InstanceProfileId = ptr.String(xtv) } case strings.EqualFold("InstanceProfileName", t.Name.Local): @@ -17895,7 +17894,7 @@ func awsAwsquery_deserializeDocumentInstanceProfile(v **types.InstanceProfile, d } if val != nil { xtv := string(val) - sv.InstanceProfileName = &xtv + sv.InstanceProfileName = ptr.String(xtv) } case strings.EqualFold("Path", t.Name.Local): @@ -17911,7 +17910,7 @@ func awsAwsquery_deserializeDocumentInstanceProfile(v **types.InstanceProfile, d } if val != nil { xtv := string(val) - sv.Path = &xtv + sv.Path = ptr.String(xtv) } case strings.EqualFold("Roles", t.Name.Local): @@ -17930,13 +17929,13 @@ func awsAwsquery_deserializeDocumentInstanceProfile(v **types.InstanceProfile, d return nil } -func awsAwsquery_deserializeDocumentInstanceProfileListType(v *[]*types.InstanceProfile, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInstanceProfileListType(v *[]types.InstanceProfile, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstanceProfile + var sv []types.InstanceProfile if *v == nil { - sv = make([]*types.InstanceProfile, 0) + sv = make([]types.InstanceProfile, 0) } else { sv = *v } @@ -17952,11 +17951,13 @@ func awsAwsquery_deserializeDocumentInstanceProfileListType(v *[]*types.Instance } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.InstanceProfile + var col types.InstanceProfile nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstanceProfile(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentInstanceProfile(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17969,23 +17970,25 @@ func awsAwsquery_deserializeDocumentInstanceProfileListType(v *[]*types.Instance return nil } -func awsAwsquery_deserializeDocumentInstanceProfileListTypeUnwrapped(v *[]*types.InstanceProfile, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstanceProfile +func awsAwsquery_deserializeDocumentInstanceProfileListTypeUnwrapped(v *[]types.InstanceProfile, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceProfile if *v == nil { - sv = make([]*types.InstanceProfile, 0) + sv = make([]types.InstanceProfile, 0) } else { sv = *v } switch { default: - var mv *types.InstanceProfile + var mv types.InstanceProfile t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstanceProfile(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentInstanceProfile(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18026,7 +18029,7 @@ func awsAwsquery_deserializeDocumentInvalidAuthenticationCodeException(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18074,7 +18077,7 @@ func awsAwsquery_deserializeDocumentInvalidCertificateException(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18122,7 +18125,7 @@ func awsAwsquery_deserializeDocumentInvalidInputException(v **types.InvalidInput } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18170,7 +18173,7 @@ func awsAwsquery_deserializeDocumentInvalidPublicKeyException(v **types.InvalidP } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18218,7 +18221,7 @@ func awsAwsquery_deserializeDocumentInvalidUserTypeException(v **types.InvalidUs } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18266,7 +18269,7 @@ func awsAwsquery_deserializeDocumentKeyPairMismatchException(v **types.KeyPairMi } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18314,7 +18317,7 @@ func awsAwsquery_deserializeDocumentLimitExceededException(v **types.LimitExceed } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18368,7 +18371,7 @@ func awsAwsquery_deserializeDocumentListPoliciesGrantingServiceAccessEntry(v **t } if val != nil { xtv := string(val) - sv.ServiceNamespace = &xtv + sv.ServiceNamespace = ptr.String(xtv) } default: @@ -18381,13 +18384,13 @@ func awsAwsquery_deserializeDocumentListPoliciesGrantingServiceAccessEntry(v **t return nil } -func awsAwsquery_deserializeDocumentListPolicyGrantingServiceAccessResponseListType(v *[]*types.ListPoliciesGrantingServiceAccessEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentListPolicyGrantingServiceAccessResponseListType(v *[]types.ListPoliciesGrantingServiceAccessEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ListPoliciesGrantingServiceAccessEntry + var sv []types.ListPoliciesGrantingServiceAccessEntry if *v == nil { - sv = make([]*types.ListPoliciesGrantingServiceAccessEntry, 0) + sv = make([]types.ListPoliciesGrantingServiceAccessEntry, 0) } else { sv = *v } @@ -18403,11 +18406,13 @@ func awsAwsquery_deserializeDocumentListPolicyGrantingServiceAccessResponseListT } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ListPoliciesGrantingServiceAccessEntry + var col types.ListPoliciesGrantingServiceAccessEntry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListPoliciesGrantingServiceAccessEntry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentListPoliciesGrantingServiceAccessEntry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18420,23 +18425,25 @@ func awsAwsquery_deserializeDocumentListPolicyGrantingServiceAccessResponseListT return nil } -func awsAwsquery_deserializeDocumentListPolicyGrantingServiceAccessResponseListTypeUnwrapped(v *[]*types.ListPoliciesGrantingServiceAccessEntry, decoder smithyxml.NodeDecoder) error { - var sv []*types.ListPoliciesGrantingServiceAccessEntry +func awsAwsquery_deserializeDocumentListPolicyGrantingServiceAccessResponseListTypeUnwrapped(v *[]types.ListPoliciesGrantingServiceAccessEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.ListPoliciesGrantingServiceAccessEntry if *v == nil { - sv = make([]*types.ListPoliciesGrantingServiceAccessEntry, 0) + sv = make([]types.ListPoliciesGrantingServiceAccessEntry, 0) } else { sv = *v } switch { default: - var mv *types.ListPoliciesGrantingServiceAccessEntry + var mv types.ListPoliciesGrantingServiceAccessEntry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListPoliciesGrantingServiceAccessEntry(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentListPoliciesGrantingServiceAccessEntry(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18478,7 +18485,7 @@ func awsAwsquery_deserializeDocumentLoginProfile(v **types.LoginProfile, decoder if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("PasswordResetRequired", t.Name.Local): @@ -18494,7 +18501,7 @@ func awsAwsquery_deserializeDocumentLoginProfile(v **types.LoginProfile, decoder if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.PasswordResetRequired = &xtv + sv.PasswordResetRequired = xtv } case strings.EqualFold("UserName", t.Name.Local): @@ -18510,7 +18517,7 @@ func awsAwsquery_deserializeDocumentLoginProfile(v **types.LoginProfile, decoder } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -18558,7 +18565,7 @@ func awsAwsquery_deserializeDocumentMalformedCertificateException(v **types.Malf } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18606,7 +18613,7 @@ func awsAwsquery_deserializeDocumentMalformedPolicyDocumentException(v **types.M } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18654,7 +18661,7 @@ func awsAwsquery_deserializeDocumentManagedPolicyDetail(v **types.ManagedPolicyD } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("AttachmentCount", t.Name.Local): @@ -18688,7 +18695,7 @@ func awsAwsquery_deserializeDocumentManagedPolicyDetail(v **types.ManagedPolicyD if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("DefaultVersionId", t.Name.Local): @@ -18704,7 +18711,7 @@ func awsAwsquery_deserializeDocumentManagedPolicyDetail(v **types.ManagedPolicyD } if val != nil { xtv := string(val) - sv.DefaultVersionId = &xtv + sv.DefaultVersionId = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -18720,7 +18727,7 @@ func awsAwsquery_deserializeDocumentManagedPolicyDetail(v **types.ManagedPolicyD } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("IsAttachable", t.Name.Local): @@ -18736,7 +18743,7 @@ func awsAwsquery_deserializeDocumentManagedPolicyDetail(v **types.ManagedPolicyD if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsAttachable = &xtv + sv.IsAttachable = xtv } case strings.EqualFold("Path", t.Name.Local): @@ -18752,7 +18759,7 @@ func awsAwsquery_deserializeDocumentManagedPolicyDetail(v **types.ManagedPolicyD } if val != nil { xtv := string(val) - sv.Path = &xtv + sv.Path = ptr.String(xtv) } case strings.EqualFold("PermissionsBoundaryUsageCount", t.Name.Local): @@ -18785,7 +18792,7 @@ func awsAwsquery_deserializeDocumentManagedPolicyDetail(v **types.ManagedPolicyD } if val != nil { xtv := string(val) - sv.PolicyId = &xtv + sv.PolicyId = ptr.String(xtv) } case strings.EqualFold("PolicyName", t.Name.Local): @@ -18801,7 +18808,7 @@ func awsAwsquery_deserializeDocumentManagedPolicyDetail(v **types.ManagedPolicyD } if val != nil { xtv := string(val) - sv.PolicyName = &xtv + sv.PolicyName = ptr.String(xtv) } case strings.EqualFold("PolicyVersionList", t.Name.Local): @@ -18824,7 +18831,7 @@ func awsAwsquery_deserializeDocumentManagedPolicyDetail(v **types.ManagedPolicyD if err != nil { return err } - sv.UpdateDate = &t + sv.UpdateDate = ptr.Time(t) } default: @@ -18837,13 +18844,13 @@ func awsAwsquery_deserializeDocumentManagedPolicyDetail(v **types.ManagedPolicyD return nil } -func awsAwsquery_deserializeDocumentManagedPolicyDetailListType(v *[]*types.ManagedPolicyDetail, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentManagedPolicyDetailListType(v *[]types.ManagedPolicyDetail, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ManagedPolicyDetail + var sv []types.ManagedPolicyDetail if *v == nil { - sv = make([]*types.ManagedPolicyDetail, 0) + sv = make([]types.ManagedPolicyDetail, 0) } else { sv = *v } @@ -18859,11 +18866,13 @@ func awsAwsquery_deserializeDocumentManagedPolicyDetailListType(v *[]*types.Mana } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ManagedPolicyDetail + var col types.ManagedPolicyDetail nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentManagedPolicyDetail(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentManagedPolicyDetail(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18876,23 +18885,25 @@ func awsAwsquery_deserializeDocumentManagedPolicyDetailListType(v *[]*types.Mana return nil } -func awsAwsquery_deserializeDocumentManagedPolicyDetailListTypeUnwrapped(v *[]*types.ManagedPolicyDetail, decoder smithyxml.NodeDecoder) error { - var sv []*types.ManagedPolicyDetail +func awsAwsquery_deserializeDocumentManagedPolicyDetailListTypeUnwrapped(v *[]types.ManagedPolicyDetail, decoder smithyxml.NodeDecoder) error { + var sv []types.ManagedPolicyDetail if *v == nil { - sv = make([]*types.ManagedPolicyDetail, 0) + sv = make([]types.ManagedPolicyDetail, 0) } else { sv = *v } switch { default: - var mv *types.ManagedPolicyDetail + var mv types.ManagedPolicyDetail t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentManagedPolicyDetail(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentManagedPolicyDetail(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18934,7 +18945,7 @@ func awsAwsquery_deserializeDocumentMFADevice(v **types.MFADevice, decoder smith if err != nil { return err } - sv.EnableDate = &t + sv.EnableDate = ptr.Time(t) } case strings.EqualFold("SerialNumber", t.Name.Local): @@ -18950,7 +18961,7 @@ func awsAwsquery_deserializeDocumentMFADevice(v **types.MFADevice, decoder smith } if val != nil { xtv := string(val) - sv.SerialNumber = &xtv + sv.SerialNumber = ptr.String(xtv) } case strings.EqualFold("UserName", t.Name.Local): @@ -18966,7 +18977,7 @@ func awsAwsquery_deserializeDocumentMFADevice(v **types.MFADevice, decoder smith } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -18979,13 +18990,13 @@ func awsAwsquery_deserializeDocumentMFADevice(v **types.MFADevice, decoder smith return nil } -func awsAwsquery_deserializeDocumentMfaDeviceListType(v *[]*types.MFADevice, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMfaDeviceListType(v *[]types.MFADevice, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.MFADevice + var sv []types.MFADevice if *v == nil { - sv = make([]*types.MFADevice, 0) + sv = make([]types.MFADevice, 0) } else { sv = *v } @@ -19001,11 +19012,13 @@ func awsAwsquery_deserializeDocumentMfaDeviceListType(v *[]*types.MFADevice, dec } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.MFADevice + var col types.MFADevice nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMFADevice(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentMFADevice(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19018,23 +19031,25 @@ func awsAwsquery_deserializeDocumentMfaDeviceListType(v *[]*types.MFADevice, dec return nil } -func awsAwsquery_deserializeDocumentMfaDeviceListTypeUnwrapped(v *[]*types.MFADevice, decoder smithyxml.NodeDecoder) error { - var sv []*types.MFADevice +func awsAwsquery_deserializeDocumentMfaDeviceListTypeUnwrapped(v *[]types.MFADevice, decoder smithyxml.NodeDecoder) error { + var sv []types.MFADevice if *v == nil { - sv = make([]*types.MFADevice, 0) + sv = make([]types.MFADevice, 0) } else { sv = *v } switch { default: - var mv *types.MFADevice + var mv types.MFADevice t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMFADevice(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentMFADevice(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19075,7 +19090,7 @@ func awsAwsquery_deserializeDocumentNoSuchEntityException(v **types.NoSuchEntity } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19123,7 +19138,7 @@ func awsAwsquery_deserializeDocumentOpenIDConnectProviderListEntry(v **types.Ope } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } default: @@ -19136,13 +19151,13 @@ func awsAwsquery_deserializeDocumentOpenIDConnectProviderListEntry(v **types.Ope return nil } -func awsAwsquery_deserializeDocumentOpenIDConnectProviderListType(v *[]*types.OpenIDConnectProviderListEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOpenIDConnectProviderListType(v *[]types.OpenIDConnectProviderListEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OpenIDConnectProviderListEntry + var sv []types.OpenIDConnectProviderListEntry if *v == nil { - sv = make([]*types.OpenIDConnectProviderListEntry, 0) + sv = make([]types.OpenIDConnectProviderListEntry, 0) } else { sv = *v } @@ -19158,11 +19173,13 @@ func awsAwsquery_deserializeDocumentOpenIDConnectProviderListType(v *[]*types.Op } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.OpenIDConnectProviderListEntry + var col types.OpenIDConnectProviderListEntry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOpenIDConnectProviderListEntry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOpenIDConnectProviderListEntry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19175,23 +19192,25 @@ func awsAwsquery_deserializeDocumentOpenIDConnectProviderListType(v *[]*types.Op return nil } -func awsAwsquery_deserializeDocumentOpenIDConnectProviderListTypeUnwrapped(v *[]*types.OpenIDConnectProviderListEntry, decoder smithyxml.NodeDecoder) error { - var sv []*types.OpenIDConnectProviderListEntry +func awsAwsquery_deserializeDocumentOpenIDConnectProviderListTypeUnwrapped(v *[]types.OpenIDConnectProviderListEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.OpenIDConnectProviderListEntry if *v == nil { - sv = make([]*types.OpenIDConnectProviderListEntry, 0) + sv = make([]types.OpenIDConnectProviderListEntry, 0) } else { sv = *v } switch { default: - var mv *types.OpenIDConnectProviderListEntry + var mv types.OpenIDConnectProviderListEntry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOpenIDConnectProviderListEntry(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOpenIDConnectProviderListEntry(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19232,7 +19251,7 @@ func awsAwsquery_deserializeDocumentOrganizationsDecisionDetail(v **types.Organi if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.AllowedByOrganizations = &xtv + sv.AllowedByOrganizations = xtv } default: @@ -19280,7 +19299,7 @@ func awsAwsquery_deserializeDocumentPasswordPolicy(v **types.PasswordPolicy, dec if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.AllowUsersToChangePassword = &xtv + sv.AllowUsersToChangePassword = xtv } case strings.EqualFold("ExpirePasswords", t.Name.Local): @@ -19296,7 +19315,7 @@ func awsAwsquery_deserializeDocumentPasswordPolicy(v **types.PasswordPolicy, dec if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.ExpirePasswords = &xtv + sv.ExpirePasswords = xtv } case strings.EqualFold("HardExpiry", t.Name.Local): @@ -19312,7 +19331,7 @@ func awsAwsquery_deserializeDocumentPasswordPolicy(v **types.PasswordPolicy, dec if err != nil { return fmt.Errorf("expected booleanObjectType to be of type *bool, got %T instead", val) } - sv.HardExpiry = &xtv + sv.HardExpiry = ptr.Bool(xtv) } case strings.EqualFold("MaxPasswordAge", t.Name.Local): @@ -19379,7 +19398,7 @@ func awsAwsquery_deserializeDocumentPasswordPolicy(v **types.PasswordPolicy, dec if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.RequireLowercaseCharacters = &xtv + sv.RequireLowercaseCharacters = xtv } case strings.EqualFold("RequireNumbers", t.Name.Local): @@ -19395,7 +19414,7 @@ func awsAwsquery_deserializeDocumentPasswordPolicy(v **types.PasswordPolicy, dec if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.RequireNumbers = &xtv + sv.RequireNumbers = xtv } case strings.EqualFold("RequireSymbols", t.Name.Local): @@ -19411,7 +19430,7 @@ func awsAwsquery_deserializeDocumentPasswordPolicy(v **types.PasswordPolicy, dec if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.RequireSymbols = &xtv + sv.RequireSymbols = xtv } case strings.EqualFold("RequireUppercaseCharacters", t.Name.Local): @@ -19427,7 +19446,7 @@ func awsAwsquery_deserializeDocumentPasswordPolicy(v **types.PasswordPolicy, dec if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.RequireUppercaseCharacters = &xtv + sv.RequireUppercaseCharacters = xtv } default: @@ -19475,7 +19494,7 @@ func awsAwsquery_deserializeDocumentPasswordPolicyViolationException(v **types.P } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19523,7 +19542,7 @@ func awsAwsquery_deserializeDocumentPermissionsBoundaryDecisionDetail(v **types. if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.AllowedByPermissionsBoundary = &xtv + sv.AllowedByPermissionsBoundary = xtv } default: @@ -19571,7 +19590,7 @@ func awsAwsquery_deserializeDocumentPolicy(v **types.Policy, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("AttachmentCount", t.Name.Local): @@ -19605,7 +19624,7 @@ func awsAwsquery_deserializeDocumentPolicy(v **types.Policy, decoder smithyxml.N if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("DefaultVersionId", t.Name.Local): @@ -19621,7 +19640,7 @@ func awsAwsquery_deserializeDocumentPolicy(v **types.Policy, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.DefaultVersionId = &xtv + sv.DefaultVersionId = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -19637,7 +19656,7 @@ func awsAwsquery_deserializeDocumentPolicy(v **types.Policy, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("IsAttachable", t.Name.Local): @@ -19653,7 +19672,7 @@ func awsAwsquery_deserializeDocumentPolicy(v **types.Policy, decoder smithyxml.N if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsAttachable = &xtv + sv.IsAttachable = xtv } case strings.EqualFold("Path", t.Name.Local): @@ -19669,7 +19688,7 @@ func awsAwsquery_deserializeDocumentPolicy(v **types.Policy, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.Path = &xtv + sv.Path = ptr.String(xtv) } case strings.EqualFold("PermissionsBoundaryUsageCount", t.Name.Local): @@ -19702,7 +19721,7 @@ func awsAwsquery_deserializeDocumentPolicy(v **types.Policy, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.PolicyId = &xtv + sv.PolicyId = ptr.String(xtv) } case strings.EqualFold("PolicyName", t.Name.Local): @@ -19718,7 +19737,7 @@ func awsAwsquery_deserializeDocumentPolicy(v **types.Policy, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.PolicyName = &xtv + sv.PolicyName = ptr.String(xtv) } case strings.EqualFold("UpdateDate", t.Name.Local): @@ -19735,7 +19754,7 @@ func awsAwsquery_deserializeDocumentPolicy(v **types.Policy, decoder smithyxml.N if err != nil { return err } - sv.UpdateDate = &t + sv.UpdateDate = ptr.Time(t) } default: @@ -19783,7 +19802,7 @@ func awsAwsquery_deserializeDocumentPolicyDetail(v **types.PolicyDetail, decoder } if val != nil { xtv := string(val) - sv.PolicyDocument = &xtv + sv.PolicyDocument = ptr.String(xtv) } case strings.EqualFold("PolicyName", t.Name.Local): @@ -19799,7 +19818,7 @@ func awsAwsquery_deserializeDocumentPolicyDetail(v **types.PolicyDetail, decoder } if val != nil { xtv := string(val) - sv.PolicyName = &xtv + sv.PolicyName = ptr.String(xtv) } default: @@ -19812,13 +19831,13 @@ func awsAwsquery_deserializeDocumentPolicyDetail(v **types.PolicyDetail, decoder return nil } -func awsAwsquery_deserializeDocumentPolicyDetailListType(v *[]*types.PolicyDetail, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyDetailListType(v *[]types.PolicyDetail, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PolicyDetail + var sv []types.PolicyDetail if *v == nil { - sv = make([]*types.PolicyDetail, 0) + sv = make([]types.PolicyDetail, 0) } else { sv = *v } @@ -19834,11 +19853,13 @@ func awsAwsquery_deserializeDocumentPolicyDetailListType(v *[]*types.PolicyDetai } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PolicyDetail + var col types.PolicyDetail nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyDetail(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPolicyDetail(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19851,35 +19872,37 @@ func awsAwsquery_deserializeDocumentPolicyDetailListType(v *[]*types.PolicyDetai return nil } -func awsAwsquery_deserializeDocumentPolicyDetailListTypeUnwrapped(v *[]*types.PolicyDetail, decoder smithyxml.NodeDecoder) error { - var sv []*types.PolicyDetail +func awsAwsquery_deserializeDocumentPolicyDetailListTypeUnwrapped(v *[]types.PolicyDetail, decoder smithyxml.NodeDecoder) error { + var sv []types.PolicyDetail if *v == nil { - sv = make([]*types.PolicyDetail, 0) + sv = make([]types.PolicyDetail, 0) } else { sv = *v } switch { default: - var mv *types.PolicyDetail + var mv types.PolicyDetail t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyDetail(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPolicyDetail(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentPolicyDocumentVersionListType(v *[]*types.PolicyVersion, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyDocumentVersionListType(v *[]types.PolicyVersion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PolicyVersion + var sv []types.PolicyVersion if *v == nil { - sv = make([]*types.PolicyVersion, 0) + sv = make([]types.PolicyVersion, 0) } else { sv = *v } @@ -19895,11 +19918,13 @@ func awsAwsquery_deserializeDocumentPolicyDocumentVersionListType(v *[]*types.Po } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PolicyVersion + var col types.PolicyVersion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyVersion(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPolicyVersion(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19912,23 +19937,25 @@ func awsAwsquery_deserializeDocumentPolicyDocumentVersionListType(v *[]*types.Po return nil } -func awsAwsquery_deserializeDocumentPolicyDocumentVersionListTypeUnwrapped(v *[]*types.PolicyVersion, decoder smithyxml.NodeDecoder) error { - var sv []*types.PolicyVersion +func awsAwsquery_deserializeDocumentPolicyDocumentVersionListTypeUnwrapped(v *[]types.PolicyVersion, decoder smithyxml.NodeDecoder) error { + var sv []types.PolicyVersion if *v == nil { - sv = make([]*types.PolicyVersion, 0) + sv = make([]types.PolicyVersion, 0) } else { sv = *v } switch { default: - var mv *types.PolicyVersion + var mv types.PolicyVersion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyVersion(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPolicyVersion(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19969,7 +19996,7 @@ func awsAwsquery_deserializeDocumentPolicyEvaluationException(v **types.PolicyEv } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20017,7 +20044,7 @@ func awsAwsquery_deserializeDocumentPolicyGrantingServiceAccess(v **types.Policy } if val != nil { xtv := string(val) - sv.EntityName = &xtv + sv.EntityName = ptr.String(xtv) } case strings.EqualFold("EntityType", t.Name.Local): @@ -20046,7 +20073,7 @@ func awsAwsquery_deserializeDocumentPolicyGrantingServiceAccess(v **types.Policy } if val != nil { xtv := string(val) - sv.PolicyArn = &xtv + sv.PolicyArn = ptr.String(xtv) } case strings.EqualFold("PolicyName", t.Name.Local): @@ -20062,7 +20089,7 @@ func awsAwsquery_deserializeDocumentPolicyGrantingServiceAccess(v **types.Policy } if val != nil { xtv := string(val) - sv.PolicyName = &xtv + sv.PolicyName = ptr.String(xtv) } case strings.EqualFold("PolicyType", t.Name.Local): @@ -20088,13 +20115,13 @@ func awsAwsquery_deserializeDocumentPolicyGrantingServiceAccess(v **types.Policy return nil } -func awsAwsquery_deserializeDocumentPolicyGrantingServiceAccessListType(v *[]*types.PolicyGrantingServiceAccess, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyGrantingServiceAccessListType(v *[]types.PolicyGrantingServiceAccess, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PolicyGrantingServiceAccess + var sv []types.PolicyGrantingServiceAccess if *v == nil { - sv = make([]*types.PolicyGrantingServiceAccess, 0) + sv = make([]types.PolicyGrantingServiceAccess, 0) } else { sv = *v } @@ -20110,11 +20137,13 @@ func awsAwsquery_deserializeDocumentPolicyGrantingServiceAccessListType(v *[]*ty } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PolicyGrantingServiceAccess + var col types.PolicyGrantingServiceAccess nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyGrantingServiceAccess(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPolicyGrantingServiceAccess(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20127,23 +20156,25 @@ func awsAwsquery_deserializeDocumentPolicyGrantingServiceAccessListType(v *[]*ty return nil } -func awsAwsquery_deserializeDocumentPolicyGrantingServiceAccessListTypeUnwrapped(v *[]*types.PolicyGrantingServiceAccess, decoder smithyxml.NodeDecoder) error { - var sv []*types.PolicyGrantingServiceAccess +func awsAwsquery_deserializeDocumentPolicyGrantingServiceAccessListTypeUnwrapped(v *[]types.PolicyGrantingServiceAccess, decoder smithyxml.NodeDecoder) error { + var sv []types.PolicyGrantingServiceAccess if *v == nil { - sv = make([]*types.PolicyGrantingServiceAccess, 0) + sv = make([]types.PolicyGrantingServiceAccess, 0) } else { sv = *v } switch { default: - var mv *types.PolicyGrantingServiceAccess + var mv types.PolicyGrantingServiceAccess t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyGrantingServiceAccess(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPolicyGrantingServiceAccess(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -20184,7 +20215,7 @@ func awsAwsquery_deserializeDocumentPolicyGroup(v **types.PolicyGroup, decoder s } if val != nil { xtv := string(val) - sv.GroupId = &xtv + sv.GroupId = ptr.String(xtv) } case strings.EqualFold("GroupName", t.Name.Local): @@ -20200,7 +20231,7 @@ func awsAwsquery_deserializeDocumentPolicyGroup(v **types.PolicyGroup, decoder s } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } default: @@ -20213,13 +20244,13 @@ func awsAwsquery_deserializeDocumentPolicyGroup(v **types.PolicyGroup, decoder s return nil } -func awsAwsquery_deserializeDocumentPolicyGroupListType(v *[]*types.PolicyGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyGroupListType(v *[]types.PolicyGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PolicyGroup + var sv []types.PolicyGroup if *v == nil { - sv = make([]*types.PolicyGroup, 0) + sv = make([]types.PolicyGroup, 0) } else { sv = *v } @@ -20235,11 +20266,13 @@ func awsAwsquery_deserializeDocumentPolicyGroupListType(v *[]*types.PolicyGroup, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PolicyGroup + var col types.PolicyGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPolicyGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20252,35 +20285,37 @@ func awsAwsquery_deserializeDocumentPolicyGroupListType(v *[]*types.PolicyGroup, return nil } -func awsAwsquery_deserializeDocumentPolicyGroupListTypeUnwrapped(v *[]*types.PolicyGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.PolicyGroup +func awsAwsquery_deserializeDocumentPolicyGroupListTypeUnwrapped(v *[]types.PolicyGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.PolicyGroup if *v == nil { - sv = make([]*types.PolicyGroup, 0) + sv = make([]types.PolicyGroup, 0) } else { sv = *v } switch { default: - var mv *types.PolicyGroup + var mv types.PolicyGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPolicyGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentPolicyListType(v *[]*types.Policy, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyListType(v *[]types.Policy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Policy + var sv []types.Policy if *v == nil { - sv = make([]*types.Policy, 0) + sv = make([]types.Policy, 0) } else { sv = *v } @@ -20296,11 +20331,13 @@ func awsAwsquery_deserializeDocumentPolicyListType(v *[]*types.Policy, decoder s } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Policy + var col types.Policy nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicy(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPolicy(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20313,35 +20350,37 @@ func awsAwsquery_deserializeDocumentPolicyListType(v *[]*types.Policy, decoder s return nil } -func awsAwsquery_deserializeDocumentPolicyListTypeUnwrapped(v *[]*types.Policy, decoder smithyxml.NodeDecoder) error { - var sv []*types.Policy +func awsAwsquery_deserializeDocumentPolicyListTypeUnwrapped(v *[]types.Policy, decoder smithyxml.NodeDecoder) error { + var sv []types.Policy if *v == nil { - sv = make([]*types.Policy, 0) + sv = make([]types.Policy, 0) } else { sv = *v } switch { default: - var mv *types.Policy + var mv types.Policy t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicy(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPolicy(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentPolicyNameListType(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyNameListType(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -20359,20 +20398,17 @@ func awsAwsquery_deserializeDocumentPolicyNameListType(v *[]*string, decoder smi decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -20385,17 +20421,17 @@ func awsAwsquery_deserializeDocumentPolicyNameListType(v *[]*string, decoder smi return nil } -func awsAwsquery_deserializeDocumentPolicyNameListTypeUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentPolicyNameListTypeUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -20403,14 +20439,11 @@ func awsAwsquery_deserializeDocumentPolicyNameListTypeUnwrapped(v *[]*string, de return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -20452,7 +20485,7 @@ func awsAwsquery_deserializeDocumentPolicyNotAttachableException(v **types.Polic } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20500,7 +20533,7 @@ func awsAwsquery_deserializeDocumentPolicyRole(v **types.PolicyRole, decoder smi } if val != nil { xtv := string(val) - sv.RoleId = &xtv + sv.RoleId = ptr.String(xtv) } case strings.EqualFold("RoleName", t.Name.Local): @@ -20516,7 +20549,7 @@ func awsAwsquery_deserializeDocumentPolicyRole(v **types.PolicyRole, decoder smi } if val != nil { xtv := string(val) - sv.RoleName = &xtv + sv.RoleName = ptr.String(xtv) } default: @@ -20529,13 +20562,13 @@ func awsAwsquery_deserializeDocumentPolicyRole(v **types.PolicyRole, decoder smi return nil } -func awsAwsquery_deserializeDocumentPolicyRoleListType(v *[]*types.PolicyRole, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyRoleListType(v *[]types.PolicyRole, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PolicyRole + var sv []types.PolicyRole if *v == nil { - sv = make([]*types.PolicyRole, 0) + sv = make([]types.PolicyRole, 0) } else { sv = *v } @@ -20551,11 +20584,13 @@ func awsAwsquery_deserializeDocumentPolicyRoleListType(v *[]*types.PolicyRole, d } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PolicyRole + var col types.PolicyRole nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyRole(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPolicyRole(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20568,23 +20603,25 @@ func awsAwsquery_deserializeDocumentPolicyRoleListType(v *[]*types.PolicyRole, d return nil } -func awsAwsquery_deserializeDocumentPolicyRoleListTypeUnwrapped(v *[]*types.PolicyRole, decoder smithyxml.NodeDecoder) error { - var sv []*types.PolicyRole +func awsAwsquery_deserializeDocumentPolicyRoleListTypeUnwrapped(v *[]types.PolicyRole, decoder smithyxml.NodeDecoder) error { + var sv []types.PolicyRole if *v == nil { - sv = make([]*types.PolicyRole, 0) + sv = make([]types.PolicyRole, 0) } else { sv = *v } switch { default: - var mv *types.PolicyRole + var mv types.PolicyRole t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyRole(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPolicyRole(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -20625,7 +20662,7 @@ func awsAwsquery_deserializeDocumentPolicyUser(v **types.PolicyUser, decoder smi } if val != nil { xtv := string(val) - sv.UserId = &xtv + sv.UserId = ptr.String(xtv) } case strings.EqualFold("UserName", t.Name.Local): @@ -20641,7 +20678,7 @@ func awsAwsquery_deserializeDocumentPolicyUser(v **types.PolicyUser, decoder smi } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -20654,13 +20691,13 @@ func awsAwsquery_deserializeDocumentPolicyUser(v **types.PolicyUser, decoder smi return nil } -func awsAwsquery_deserializeDocumentPolicyUserListType(v *[]*types.PolicyUser, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyUserListType(v *[]types.PolicyUser, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PolicyUser + var sv []types.PolicyUser if *v == nil { - sv = make([]*types.PolicyUser, 0) + sv = make([]types.PolicyUser, 0) } else { sv = *v } @@ -20676,11 +20713,13 @@ func awsAwsquery_deserializeDocumentPolicyUserListType(v *[]*types.PolicyUser, d } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PolicyUser + var col types.PolicyUser nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyUser(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPolicyUser(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20693,23 +20732,25 @@ func awsAwsquery_deserializeDocumentPolicyUserListType(v *[]*types.PolicyUser, d return nil } -func awsAwsquery_deserializeDocumentPolicyUserListTypeUnwrapped(v *[]*types.PolicyUser, decoder smithyxml.NodeDecoder) error { - var sv []*types.PolicyUser +func awsAwsquery_deserializeDocumentPolicyUserListTypeUnwrapped(v *[]types.PolicyUser, decoder smithyxml.NodeDecoder) error { + var sv []types.PolicyUser if *v == nil { - sv = make([]*types.PolicyUser, 0) + sv = make([]types.PolicyUser, 0) } else { sv = *v } switch { default: - var mv *types.PolicyUser + var mv types.PolicyUser t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPolicyUser(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPolicyUser(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -20751,7 +20792,7 @@ func awsAwsquery_deserializeDocumentPolicyVersion(v **types.PolicyVersion, decod if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("Document", t.Name.Local): @@ -20767,7 +20808,7 @@ func awsAwsquery_deserializeDocumentPolicyVersion(v **types.PolicyVersion, decod } if val != nil { xtv := string(val) - sv.Document = &xtv + sv.Document = ptr.String(xtv) } case strings.EqualFold("IsDefaultVersion", t.Name.Local): @@ -20783,7 +20824,7 @@ func awsAwsquery_deserializeDocumentPolicyVersion(v **types.PolicyVersion, decod if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsDefaultVersion = &xtv + sv.IsDefaultVersion = xtv } case strings.EqualFold("VersionId", t.Name.Local): @@ -20799,7 +20840,7 @@ func awsAwsquery_deserializeDocumentPolicyVersion(v **types.PolicyVersion, decod } if val != nil { xtv := string(val) - sv.VersionId = &xtv + sv.VersionId = ptr.String(xtv) } default: @@ -20848,7 +20889,7 @@ func awsAwsquery_deserializeDocumentPosition(v **types.Position, decoder smithyx if err != nil { return err } - sv.Column = ptr.Int32(int32(i64)) + sv.Column = int32(i64) } case strings.EqualFold("Line", t.Name.Local): @@ -20865,7 +20906,7 @@ func awsAwsquery_deserializeDocumentPosition(v **types.Position, decoder smithyx if err != nil { return err } - sv.Line = ptr.Int32(int32(i64)) + sv.Line = int32(i64) } default: @@ -20913,7 +20954,7 @@ func awsAwsquery_deserializeDocumentReportGenerationLimitExceededException(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20980,7 +21021,7 @@ func awsAwsquery_deserializeDocumentResourceSpecificResult(v **types.ResourceSpe } if val != nil { xtv := string(val) - sv.EvalResourceName = &xtv + sv.EvalResourceName = ptr.String(xtv) } case strings.EqualFold("MatchedStatements", t.Name.Local): @@ -21011,13 +21052,13 @@ func awsAwsquery_deserializeDocumentResourceSpecificResult(v **types.ResourceSpe return nil } -func awsAwsquery_deserializeDocumentResourceSpecificResultListType(v *[]*types.ResourceSpecificResult, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentResourceSpecificResultListType(v *[]types.ResourceSpecificResult, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ResourceSpecificResult + var sv []types.ResourceSpecificResult if *v == nil { - sv = make([]*types.ResourceSpecificResult, 0) + sv = make([]types.ResourceSpecificResult, 0) } else { sv = *v } @@ -21033,11 +21074,13 @@ func awsAwsquery_deserializeDocumentResourceSpecificResultListType(v *[]*types.R } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ResourceSpecificResult + var col types.ResourceSpecificResult nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentResourceSpecificResult(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentResourceSpecificResult(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21050,23 +21093,25 @@ func awsAwsquery_deserializeDocumentResourceSpecificResultListType(v *[]*types.R return nil } -func awsAwsquery_deserializeDocumentResourceSpecificResultListTypeUnwrapped(v *[]*types.ResourceSpecificResult, decoder smithyxml.NodeDecoder) error { - var sv []*types.ResourceSpecificResult +func awsAwsquery_deserializeDocumentResourceSpecificResultListTypeUnwrapped(v *[]types.ResourceSpecificResult, decoder smithyxml.NodeDecoder) error { + var sv []types.ResourceSpecificResult if *v == nil { - sv = make([]*types.ResourceSpecificResult, 0) + sv = make([]types.ResourceSpecificResult, 0) } else { sv = *v } switch { default: - var mv *types.ResourceSpecificResult + var mv types.ResourceSpecificResult t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentResourceSpecificResult(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentResourceSpecificResult(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -21107,7 +21152,7 @@ func awsAwsquery_deserializeDocumentRole(v **types.Role, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("AssumeRolePolicyDocument", t.Name.Local): @@ -21123,7 +21168,7 @@ func awsAwsquery_deserializeDocumentRole(v **types.Role, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.AssumeRolePolicyDocument = &xtv + sv.AssumeRolePolicyDocument = ptr.String(xtv) } case strings.EqualFold("CreateDate", t.Name.Local): @@ -21140,7 +21185,7 @@ func awsAwsquery_deserializeDocumentRole(v **types.Role, decoder smithyxml.NodeD if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -21156,7 +21201,7 @@ func awsAwsquery_deserializeDocumentRole(v **types.Role, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("MaxSessionDuration", t.Name.Local): @@ -21189,7 +21234,7 @@ func awsAwsquery_deserializeDocumentRole(v **types.Role, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.Path = &xtv + sv.Path = ptr.String(xtv) } case strings.EqualFold("PermissionsBoundary", t.Name.Local): @@ -21211,7 +21256,7 @@ func awsAwsquery_deserializeDocumentRole(v **types.Role, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.RoleId = &xtv + sv.RoleId = ptr.String(xtv) } case strings.EqualFold("RoleLastUsed", t.Name.Local): @@ -21233,7 +21278,7 @@ func awsAwsquery_deserializeDocumentRole(v **types.Role, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.RoleName = &xtv + sv.RoleName = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -21287,7 +21332,7 @@ func awsAwsquery_deserializeDocumentRoleDetail(v **types.RoleDetail, decoder smi } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("AssumeRolePolicyDocument", t.Name.Local): @@ -21303,7 +21348,7 @@ func awsAwsquery_deserializeDocumentRoleDetail(v **types.RoleDetail, decoder smi } if val != nil { xtv := string(val) - sv.AssumeRolePolicyDocument = &xtv + sv.AssumeRolePolicyDocument = ptr.String(xtv) } case strings.EqualFold("AttachedManagedPolicies", t.Name.Local): @@ -21326,7 +21371,7 @@ func awsAwsquery_deserializeDocumentRoleDetail(v **types.RoleDetail, decoder smi if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("InstanceProfileList", t.Name.Local): @@ -21348,7 +21393,7 @@ func awsAwsquery_deserializeDocumentRoleDetail(v **types.RoleDetail, decoder smi } if val != nil { xtv := string(val) - sv.Path = &xtv + sv.Path = ptr.String(xtv) } case strings.EqualFold("PermissionsBoundary", t.Name.Local): @@ -21370,7 +21415,7 @@ func awsAwsquery_deserializeDocumentRoleDetail(v **types.RoleDetail, decoder smi } if val != nil { xtv := string(val) - sv.RoleId = &xtv + sv.RoleId = ptr.String(xtv) } case strings.EqualFold("RoleLastUsed", t.Name.Local): @@ -21392,7 +21437,7 @@ func awsAwsquery_deserializeDocumentRoleDetail(v **types.RoleDetail, decoder smi } if val != nil { xtv := string(val) - sv.RoleName = &xtv + sv.RoleName = ptr.String(xtv) } case strings.EqualFold("RolePolicyList", t.Name.Local): @@ -21417,13 +21462,13 @@ func awsAwsquery_deserializeDocumentRoleDetail(v **types.RoleDetail, decoder smi return nil } -func awsAwsquery_deserializeDocumentRoleDetailListType(v *[]*types.RoleDetail, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRoleDetailListType(v *[]types.RoleDetail, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RoleDetail + var sv []types.RoleDetail if *v == nil { - sv = make([]*types.RoleDetail, 0) + sv = make([]types.RoleDetail, 0) } else { sv = *v } @@ -21439,11 +21484,13 @@ func awsAwsquery_deserializeDocumentRoleDetailListType(v *[]*types.RoleDetail, d } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.RoleDetail + var col types.RoleDetail nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRoleDetail(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentRoleDetail(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21456,23 +21503,25 @@ func awsAwsquery_deserializeDocumentRoleDetailListType(v *[]*types.RoleDetail, d return nil } -func awsAwsquery_deserializeDocumentRoleDetailListTypeUnwrapped(v *[]*types.RoleDetail, decoder smithyxml.NodeDecoder) error { - var sv []*types.RoleDetail +func awsAwsquery_deserializeDocumentRoleDetailListTypeUnwrapped(v *[]types.RoleDetail, decoder smithyxml.NodeDecoder) error { + var sv []types.RoleDetail if *v == nil { - sv = make([]*types.RoleDetail, 0) + sv = make([]types.RoleDetail, 0) } else { sv = *v } switch { default: - var mv *types.RoleDetail + var mv types.RoleDetail t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRoleDetail(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRoleDetail(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -21514,7 +21563,7 @@ func awsAwsquery_deserializeDocumentRoleLastUsed(v **types.RoleLastUsed, decoder if err != nil { return err } - sv.LastUsedDate = &t + sv.LastUsedDate = ptr.Time(t) } case strings.EqualFold("Region", t.Name.Local): @@ -21530,7 +21579,7 @@ func awsAwsquery_deserializeDocumentRoleLastUsed(v **types.RoleLastUsed, decoder } if val != nil { xtv := string(val) - sv.Region = &xtv + sv.Region = ptr.String(xtv) } default: @@ -21543,13 +21592,13 @@ func awsAwsquery_deserializeDocumentRoleLastUsed(v **types.RoleLastUsed, decoder return nil } -func awsAwsquery_deserializeDocumentRoleListType(v *[]*types.Role, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRoleListType(v *[]types.Role, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Role + var sv []types.Role if *v == nil { - sv = make([]*types.Role, 0) + sv = make([]types.Role, 0) } else { sv = *v } @@ -21565,11 +21614,13 @@ func awsAwsquery_deserializeDocumentRoleListType(v *[]*types.Role, decoder smith } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Role + var col types.Role nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRole(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentRole(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21582,35 +21633,37 @@ func awsAwsquery_deserializeDocumentRoleListType(v *[]*types.Role, decoder smith return nil } -func awsAwsquery_deserializeDocumentRoleListTypeUnwrapped(v *[]*types.Role, decoder smithyxml.NodeDecoder) error { - var sv []*types.Role +func awsAwsquery_deserializeDocumentRoleListTypeUnwrapped(v *[]types.Role, decoder smithyxml.NodeDecoder) error { + var sv []types.Role if *v == nil { - sv = make([]*types.Role, 0) + sv = make([]types.Role, 0) } else { sv = *v } switch { default: - var mv *types.Role + var mv types.Role t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRole(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRole(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentRoleUsageListType(v *[]*types.RoleUsageType, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRoleUsageListType(v *[]types.RoleUsageType, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RoleUsageType + var sv []types.RoleUsageType if *v == nil { - sv = make([]*types.RoleUsageType, 0) + sv = make([]types.RoleUsageType, 0) } else { sv = *v } @@ -21626,11 +21679,13 @@ func awsAwsquery_deserializeDocumentRoleUsageListType(v *[]*types.RoleUsageType, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.RoleUsageType + var col types.RoleUsageType nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRoleUsageType(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentRoleUsageType(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21643,23 +21698,25 @@ func awsAwsquery_deserializeDocumentRoleUsageListType(v *[]*types.RoleUsageType, return nil } -func awsAwsquery_deserializeDocumentRoleUsageListTypeUnwrapped(v *[]*types.RoleUsageType, decoder smithyxml.NodeDecoder) error { - var sv []*types.RoleUsageType +func awsAwsquery_deserializeDocumentRoleUsageListTypeUnwrapped(v *[]types.RoleUsageType, decoder smithyxml.NodeDecoder) error { + var sv []types.RoleUsageType if *v == nil { - sv = make([]*types.RoleUsageType, 0) + sv = make([]types.RoleUsageType, 0) } else { sv = *v } switch { default: - var mv *types.RoleUsageType + var mv types.RoleUsageType t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRoleUsageType(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRoleUsageType(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -21700,7 +21757,7 @@ func awsAwsquery_deserializeDocumentRoleUsageType(v **types.RoleUsageType, decod } if val != nil { xtv := string(val) - sv.Region = &xtv + sv.Region = ptr.String(xtv) } case strings.EqualFold("Resources", t.Name.Local): @@ -21754,7 +21811,7 @@ func awsAwsquery_deserializeDocumentSAMLProviderListEntry(v **types.SAMLProvider } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("CreateDate", t.Name.Local): @@ -21771,7 +21828,7 @@ func awsAwsquery_deserializeDocumentSAMLProviderListEntry(v **types.SAMLProvider if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("ValidUntil", t.Name.Local): @@ -21788,7 +21845,7 @@ func awsAwsquery_deserializeDocumentSAMLProviderListEntry(v **types.SAMLProvider if err != nil { return err } - sv.ValidUntil = &t + sv.ValidUntil = ptr.Time(t) } default: @@ -21801,13 +21858,13 @@ func awsAwsquery_deserializeDocumentSAMLProviderListEntry(v **types.SAMLProvider return nil } -func awsAwsquery_deserializeDocumentSAMLProviderListType(v *[]*types.SAMLProviderListEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSAMLProviderListType(v *[]types.SAMLProviderListEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SAMLProviderListEntry + var sv []types.SAMLProviderListEntry if *v == nil { - sv = make([]*types.SAMLProviderListEntry, 0) + sv = make([]types.SAMLProviderListEntry, 0) } else { sv = *v } @@ -21823,11 +21880,13 @@ func awsAwsquery_deserializeDocumentSAMLProviderListType(v *[]*types.SAMLProvide } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.SAMLProviderListEntry + var col types.SAMLProviderListEntry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSAMLProviderListEntry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSAMLProviderListEntry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21840,23 +21899,25 @@ func awsAwsquery_deserializeDocumentSAMLProviderListType(v *[]*types.SAMLProvide return nil } -func awsAwsquery_deserializeDocumentSAMLProviderListTypeUnwrapped(v *[]*types.SAMLProviderListEntry, decoder smithyxml.NodeDecoder) error { - var sv []*types.SAMLProviderListEntry +func awsAwsquery_deserializeDocumentSAMLProviderListTypeUnwrapped(v *[]types.SAMLProviderListEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.SAMLProviderListEntry if *v == nil { - sv = make([]*types.SAMLProviderListEntry, 0) + sv = make([]types.SAMLProviderListEntry, 0) } else { sv = *v } switch { default: - var mv *types.SAMLProviderListEntry + var mv types.SAMLProviderListEntry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSAMLProviderListEntry(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSAMLProviderListEntry(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -21897,7 +21958,7 @@ func awsAwsquery_deserializeDocumentServerCertificate(v **types.ServerCertificat } if val != nil { xtv := string(val) - sv.CertificateBody = &xtv + sv.CertificateBody = ptr.String(xtv) } case strings.EqualFold("CertificateChain", t.Name.Local): @@ -21913,7 +21974,7 @@ func awsAwsquery_deserializeDocumentServerCertificate(v **types.ServerCertificat } if val != nil { xtv := string(val) - sv.CertificateChain = &xtv + sv.CertificateChain = ptr.String(xtv) } case strings.EqualFold("ServerCertificateMetadata", t.Name.Local): @@ -21967,7 +22028,7 @@ func awsAwsquery_deserializeDocumentServerCertificateMetadata(v **types.ServerCe } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("Expiration", t.Name.Local): @@ -21984,7 +22045,7 @@ func awsAwsquery_deserializeDocumentServerCertificateMetadata(v **types.ServerCe if err != nil { return err } - sv.Expiration = &t + sv.Expiration = ptr.Time(t) } case strings.EqualFold("Path", t.Name.Local): @@ -22000,7 +22061,7 @@ func awsAwsquery_deserializeDocumentServerCertificateMetadata(v **types.ServerCe } if val != nil { xtv := string(val) - sv.Path = &xtv + sv.Path = ptr.String(xtv) } case strings.EqualFold("ServerCertificateId", t.Name.Local): @@ -22016,7 +22077,7 @@ func awsAwsquery_deserializeDocumentServerCertificateMetadata(v **types.ServerCe } if val != nil { xtv := string(val) - sv.ServerCertificateId = &xtv + sv.ServerCertificateId = ptr.String(xtv) } case strings.EqualFold("ServerCertificateName", t.Name.Local): @@ -22032,7 +22093,7 @@ func awsAwsquery_deserializeDocumentServerCertificateMetadata(v **types.ServerCe } if val != nil { xtv := string(val) - sv.ServerCertificateName = &xtv + sv.ServerCertificateName = ptr.String(xtv) } case strings.EqualFold("UploadDate", t.Name.Local): @@ -22049,7 +22110,7 @@ func awsAwsquery_deserializeDocumentServerCertificateMetadata(v **types.ServerCe if err != nil { return err } - sv.UploadDate = &t + sv.UploadDate = ptr.Time(t) } default: @@ -22062,13 +22123,13 @@ func awsAwsquery_deserializeDocumentServerCertificateMetadata(v **types.ServerCe return nil } -func awsAwsquery_deserializeDocumentServerCertificateMetadataListType(v *[]*types.ServerCertificateMetadata, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentServerCertificateMetadataListType(v *[]types.ServerCertificateMetadata, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ServerCertificateMetadata + var sv []types.ServerCertificateMetadata if *v == nil { - sv = make([]*types.ServerCertificateMetadata, 0) + sv = make([]types.ServerCertificateMetadata, 0) } else { sv = *v } @@ -22084,11 +22145,13 @@ func awsAwsquery_deserializeDocumentServerCertificateMetadataListType(v *[]*type } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ServerCertificateMetadata + var col types.ServerCertificateMetadata nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentServerCertificateMetadata(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentServerCertificateMetadata(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -22101,23 +22164,25 @@ func awsAwsquery_deserializeDocumentServerCertificateMetadataListType(v *[]*type return nil } -func awsAwsquery_deserializeDocumentServerCertificateMetadataListTypeUnwrapped(v *[]*types.ServerCertificateMetadata, decoder smithyxml.NodeDecoder) error { - var sv []*types.ServerCertificateMetadata +func awsAwsquery_deserializeDocumentServerCertificateMetadataListTypeUnwrapped(v *[]types.ServerCertificateMetadata, decoder smithyxml.NodeDecoder) error { + var sv []types.ServerCertificateMetadata if *v == nil { - sv = make([]*types.ServerCertificateMetadata, 0) + sv = make([]types.ServerCertificateMetadata, 0) } else { sv = *v } switch { default: - var mv *types.ServerCertificateMetadata + var mv types.ServerCertificateMetadata t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentServerCertificateMetadata(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentServerCertificateMetadata(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -22158,7 +22223,7 @@ func awsAwsquery_deserializeDocumentServiceFailureException(v **types.ServiceFai } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22207,7 +22272,7 @@ func awsAwsquery_deserializeDocumentServiceLastAccessed(v **types.ServiceLastAcc if err != nil { return err } - sv.LastAuthenticated = &t + sv.LastAuthenticated = ptr.Time(t) } case strings.EqualFold("LastAuthenticatedEntity", t.Name.Local): @@ -22223,7 +22288,7 @@ func awsAwsquery_deserializeDocumentServiceLastAccessed(v **types.ServiceLastAcc } if val != nil { xtv := string(val) - sv.LastAuthenticatedEntity = &xtv + sv.LastAuthenticatedEntity = ptr.String(xtv) } case strings.EqualFold("LastAuthenticatedRegion", t.Name.Local): @@ -22239,7 +22304,7 @@ func awsAwsquery_deserializeDocumentServiceLastAccessed(v **types.ServiceLastAcc } if val != nil { xtv := string(val) - sv.LastAuthenticatedRegion = &xtv + sv.LastAuthenticatedRegion = ptr.String(xtv) } case strings.EqualFold("ServiceName", t.Name.Local): @@ -22255,7 +22320,7 @@ func awsAwsquery_deserializeDocumentServiceLastAccessed(v **types.ServiceLastAcc } if val != nil { xtv := string(val) - sv.ServiceName = &xtv + sv.ServiceName = ptr.String(xtv) } case strings.EqualFold("ServiceNamespace", t.Name.Local): @@ -22271,7 +22336,7 @@ func awsAwsquery_deserializeDocumentServiceLastAccessed(v **types.ServiceLastAcc } if val != nil { xtv := string(val) - sv.ServiceNamespace = &xtv + sv.ServiceNamespace = ptr.String(xtv) } case strings.EqualFold("TotalAuthenticatedEntities", t.Name.Local): @@ -22342,7 +22407,7 @@ func awsAwsquery_deserializeDocumentServiceNotSupportedException(v **types.Servi } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22355,13 +22420,13 @@ func awsAwsquery_deserializeDocumentServiceNotSupportedException(v **types.Servi return nil } -func awsAwsquery_deserializeDocumentServicesLastAccessed(v *[]*types.ServiceLastAccessed, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentServicesLastAccessed(v *[]types.ServiceLastAccessed, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ServiceLastAccessed + var sv []types.ServiceLastAccessed if *v == nil { - sv = make([]*types.ServiceLastAccessed, 0) + sv = make([]types.ServiceLastAccessed, 0) } else { sv = *v } @@ -22377,11 +22442,13 @@ func awsAwsquery_deserializeDocumentServicesLastAccessed(v *[]*types.ServiceLast } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ServiceLastAccessed + var col types.ServiceLastAccessed nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentServiceLastAccessed(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentServiceLastAccessed(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -22394,23 +22461,25 @@ func awsAwsquery_deserializeDocumentServicesLastAccessed(v *[]*types.ServiceLast return nil } -func awsAwsquery_deserializeDocumentServicesLastAccessedUnwrapped(v *[]*types.ServiceLastAccessed, decoder smithyxml.NodeDecoder) error { - var sv []*types.ServiceLastAccessed +func awsAwsquery_deserializeDocumentServicesLastAccessedUnwrapped(v *[]types.ServiceLastAccessed, decoder smithyxml.NodeDecoder) error { + var sv []types.ServiceLastAccessed if *v == nil { - sv = make([]*types.ServiceLastAccessed, 0) + sv = make([]types.ServiceLastAccessed, 0) } else { sv = *v } switch { default: - var mv *types.ServiceLastAccessed + var mv types.ServiceLastAccessed t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentServiceLastAccessed(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentServiceLastAccessed(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -22452,7 +22521,7 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredential(v **types.ServiceS if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("ServiceName", t.Name.Local): @@ -22468,7 +22537,7 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredential(v **types.ServiceS } if val != nil { xtv := string(val) - sv.ServiceName = &xtv + sv.ServiceName = ptr.String(xtv) } case strings.EqualFold("ServicePassword", t.Name.Local): @@ -22484,7 +22553,7 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredential(v **types.ServiceS } if val != nil { xtv := string(val) - sv.ServicePassword = &xtv + sv.ServicePassword = ptr.String(xtv) } case strings.EqualFold("ServiceSpecificCredentialId", t.Name.Local): @@ -22500,7 +22569,7 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredential(v **types.ServiceS } if val != nil { xtv := string(val) - sv.ServiceSpecificCredentialId = &xtv + sv.ServiceSpecificCredentialId = ptr.String(xtv) } case strings.EqualFold("ServiceUserName", t.Name.Local): @@ -22516,7 +22585,7 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredential(v **types.ServiceS } if val != nil { xtv := string(val) - sv.ServiceUserName = &xtv + sv.ServiceUserName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -22545,7 +22614,7 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredential(v **types.ServiceS } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -22594,7 +22663,7 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredentialMetadata(v **types. if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("ServiceName", t.Name.Local): @@ -22610,7 +22679,7 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredentialMetadata(v **types. } if val != nil { xtv := string(val) - sv.ServiceName = &xtv + sv.ServiceName = ptr.String(xtv) } case strings.EqualFold("ServiceSpecificCredentialId", t.Name.Local): @@ -22626,7 +22695,7 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredentialMetadata(v **types. } if val != nil { xtv := string(val) - sv.ServiceSpecificCredentialId = &xtv + sv.ServiceSpecificCredentialId = ptr.String(xtv) } case strings.EqualFold("ServiceUserName", t.Name.Local): @@ -22642,7 +22711,7 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredentialMetadata(v **types. } if val != nil { xtv := string(val) - sv.ServiceUserName = &xtv + sv.ServiceUserName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -22671,7 +22740,7 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredentialMetadata(v **types. } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -22684,13 +22753,13 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredentialMetadata(v **types. return nil } -func awsAwsquery_deserializeDocumentServiceSpecificCredentialsListType(v *[]*types.ServiceSpecificCredentialMetadata, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentServiceSpecificCredentialsListType(v *[]types.ServiceSpecificCredentialMetadata, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ServiceSpecificCredentialMetadata + var sv []types.ServiceSpecificCredentialMetadata if *v == nil { - sv = make([]*types.ServiceSpecificCredentialMetadata, 0) + sv = make([]types.ServiceSpecificCredentialMetadata, 0) } else { sv = *v } @@ -22706,11 +22775,13 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredentialsListType(v *[]*typ } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ServiceSpecificCredentialMetadata + var col types.ServiceSpecificCredentialMetadata nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentServiceSpecificCredentialMetadata(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentServiceSpecificCredentialMetadata(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -22723,23 +22794,25 @@ func awsAwsquery_deserializeDocumentServiceSpecificCredentialsListType(v *[]*typ return nil } -func awsAwsquery_deserializeDocumentServiceSpecificCredentialsListTypeUnwrapped(v *[]*types.ServiceSpecificCredentialMetadata, decoder smithyxml.NodeDecoder) error { - var sv []*types.ServiceSpecificCredentialMetadata +func awsAwsquery_deserializeDocumentServiceSpecificCredentialsListTypeUnwrapped(v *[]types.ServiceSpecificCredentialMetadata, decoder smithyxml.NodeDecoder) error { + var sv []types.ServiceSpecificCredentialMetadata if *v == nil { - sv = make([]*types.ServiceSpecificCredentialMetadata, 0) + sv = make([]types.ServiceSpecificCredentialMetadata, 0) } else { sv = *v } switch { default: - var mv *types.ServiceSpecificCredentialMetadata + var mv types.ServiceSpecificCredentialMetadata t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentServiceSpecificCredentialMetadata(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentServiceSpecificCredentialMetadata(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -22780,7 +22853,7 @@ func awsAwsquery_deserializeDocumentSigningCertificate(v **types.SigningCertific } if val != nil { xtv := string(val) - sv.CertificateBody = &xtv + sv.CertificateBody = ptr.String(xtv) } case strings.EqualFold("CertificateId", t.Name.Local): @@ -22796,7 +22869,7 @@ func awsAwsquery_deserializeDocumentSigningCertificate(v **types.SigningCertific } if val != nil { xtv := string(val) - sv.CertificateId = &xtv + sv.CertificateId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -22826,7 +22899,7 @@ func awsAwsquery_deserializeDocumentSigningCertificate(v **types.SigningCertific if err != nil { return err } - sv.UploadDate = &t + sv.UploadDate = ptr.Time(t) } case strings.EqualFold("UserName", t.Name.Local): @@ -22842,7 +22915,7 @@ func awsAwsquery_deserializeDocumentSigningCertificate(v **types.SigningCertific } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -22890,7 +22963,7 @@ func awsAwsquery_deserializeDocumentSSHPublicKey(v **types.SSHPublicKey, decoder } if val != nil { xtv := string(val) - sv.Fingerprint = &xtv + sv.Fingerprint = ptr.String(xtv) } case strings.EqualFold("SSHPublicKeyBody", t.Name.Local): @@ -22906,7 +22979,7 @@ func awsAwsquery_deserializeDocumentSSHPublicKey(v **types.SSHPublicKey, decoder } if val != nil { xtv := string(val) - sv.SSHPublicKeyBody = &xtv + sv.SSHPublicKeyBody = ptr.String(xtv) } case strings.EqualFold("SSHPublicKeyId", t.Name.Local): @@ -22922,7 +22995,7 @@ func awsAwsquery_deserializeDocumentSSHPublicKey(v **types.SSHPublicKey, decoder } if val != nil { xtv := string(val) - sv.SSHPublicKeyId = &xtv + sv.SSHPublicKeyId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -22952,7 +23025,7 @@ func awsAwsquery_deserializeDocumentSSHPublicKey(v **types.SSHPublicKey, decoder if err != nil { return err } - sv.UploadDate = &t + sv.UploadDate = ptr.Time(t) } case strings.EqualFold("UserName", t.Name.Local): @@ -22968,7 +23041,7 @@ func awsAwsquery_deserializeDocumentSSHPublicKey(v **types.SSHPublicKey, decoder } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -22981,13 +23054,13 @@ func awsAwsquery_deserializeDocumentSSHPublicKey(v **types.SSHPublicKey, decoder return nil } -func awsAwsquery_deserializeDocumentSSHPublicKeyListType(v *[]*types.SSHPublicKeyMetadata, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSSHPublicKeyListType(v *[]types.SSHPublicKeyMetadata, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SSHPublicKeyMetadata + var sv []types.SSHPublicKeyMetadata if *v == nil { - sv = make([]*types.SSHPublicKeyMetadata, 0) + sv = make([]types.SSHPublicKeyMetadata, 0) } else { sv = *v } @@ -23003,11 +23076,13 @@ func awsAwsquery_deserializeDocumentSSHPublicKeyListType(v *[]*types.SSHPublicKe } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.SSHPublicKeyMetadata + var col types.SSHPublicKeyMetadata nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSSHPublicKeyMetadata(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSSHPublicKeyMetadata(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -23020,23 +23095,25 @@ func awsAwsquery_deserializeDocumentSSHPublicKeyListType(v *[]*types.SSHPublicKe return nil } -func awsAwsquery_deserializeDocumentSSHPublicKeyListTypeUnwrapped(v *[]*types.SSHPublicKeyMetadata, decoder smithyxml.NodeDecoder) error { - var sv []*types.SSHPublicKeyMetadata +func awsAwsquery_deserializeDocumentSSHPublicKeyListTypeUnwrapped(v *[]types.SSHPublicKeyMetadata, decoder smithyxml.NodeDecoder) error { + var sv []types.SSHPublicKeyMetadata if *v == nil { - sv = make([]*types.SSHPublicKeyMetadata, 0) + sv = make([]types.SSHPublicKeyMetadata, 0) } else { sv = *v } switch { default: - var mv *types.SSHPublicKeyMetadata + var mv types.SSHPublicKeyMetadata t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSSHPublicKeyMetadata(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSSHPublicKeyMetadata(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -23077,7 +23154,7 @@ func awsAwsquery_deserializeDocumentSSHPublicKeyMetadata(v **types.SSHPublicKeyM } if val != nil { xtv := string(val) - sv.SSHPublicKeyId = &xtv + sv.SSHPublicKeyId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -23107,7 +23184,7 @@ func awsAwsquery_deserializeDocumentSSHPublicKeyMetadata(v **types.SSHPublicKeyM if err != nil { return err } - sv.UploadDate = &t + sv.UploadDate = ptr.Time(t) } case strings.EqualFold("UserName", t.Name.Local): @@ -23123,7 +23200,7 @@ func awsAwsquery_deserializeDocumentSSHPublicKeyMetadata(v **types.SSHPublicKeyM } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -23177,7 +23254,7 @@ func awsAwsquery_deserializeDocumentStatement(v **types.Statement, decoder smith } if val != nil { xtv := string(val) - sv.SourcePolicyId = &xtv + sv.SourcePolicyId = ptr.String(xtv) } case strings.EqualFold("SourcePolicyType", t.Name.Local): @@ -23209,13 +23286,13 @@ func awsAwsquery_deserializeDocumentStatement(v **types.Statement, decoder smith return nil } -func awsAwsquery_deserializeDocumentStatementListType(v *[]*types.Statement, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStatementListType(v *[]types.Statement, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Statement + var sv []types.Statement if *v == nil { - sv = make([]*types.Statement, 0) + sv = make([]types.Statement, 0) } else { sv = *v } @@ -23231,11 +23308,13 @@ func awsAwsquery_deserializeDocumentStatementListType(v *[]*types.Statement, dec } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Statement + var col types.Statement nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStatement(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentStatement(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -23248,35 +23327,37 @@ func awsAwsquery_deserializeDocumentStatementListType(v *[]*types.Statement, dec return nil } -func awsAwsquery_deserializeDocumentStatementListTypeUnwrapped(v *[]*types.Statement, decoder smithyxml.NodeDecoder) error { - var sv []*types.Statement +func awsAwsquery_deserializeDocumentStatementListTypeUnwrapped(v *[]types.Statement, decoder smithyxml.NodeDecoder) error { + var sv []types.Statement if *v == nil { - sv = make([]*types.Statement, 0) + sv = make([]types.Statement, 0) } else { sv = *v } switch { default: - var mv *types.Statement + var mv types.Statement t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStatement(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentStatement(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentSummaryMapType(v *map[string]*int32, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSummaryMapType(v *map[string]int32, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*int32 + var sv map[string]int32 if *v == nil { - sv = make(map[string]*int32, 0) + sv = make(map[string]int32, 0) } else { sv = *v } @@ -23300,16 +23381,16 @@ func awsAwsquery_deserializeDocumentSummaryMapType(v *map[string]*int32, decoder return nil } -func awsAwsquery_deserializeDocumentSummaryMapTypeUnwrapped(v *map[string]*int32, decoder smithyxml.NodeDecoder) error { - var sv map[string]*int32 +func awsAwsquery_deserializeDocumentSummaryMapTypeUnwrapped(v *map[string]int32, decoder smithyxml.NodeDecoder) error { + var sv map[string]int32 if *v == nil { - sv = make(map[string]*int32, 0) + sv = make(map[string]int32, 0) } else { sv = *v } var ek types.SummaryKeyType - var ev *int32 + var ev int32 for { t, done, err := decoder.Token() if err != nil { @@ -23347,7 +23428,7 @@ func awsAwsquery_deserializeDocumentSummaryMapTypeUnwrapped(v *map[string]*int32 if err != nil { return err } - ev = ptr.Int32(int32(i64)) + ev = int32(i64) } default: @@ -23393,7 +23474,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -23409,7 +23490,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -23422,13 +23503,13 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec return nil } -func awsAwsquery_deserializeDocumentTagListType(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagListType(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -23444,11 +23525,13 @@ func awsAwsquery_deserializeDocumentTagListType(v *[]*types.Tag, decoder smithyx } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -23461,35 +23544,37 @@ func awsAwsquery_deserializeDocumentTagListType(v *[]*types.Tag, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentTagListTypeUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsAwsquery_deserializeDocumentTagListTypeUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentThumbprintListType(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentThumbprintListType(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -23507,20 +23592,17 @@ func awsAwsquery_deserializeDocumentThumbprintListType(v *[]*string, decoder smi decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -23533,17 +23615,17 @@ func awsAwsquery_deserializeDocumentThumbprintListType(v *[]*string, decoder smi return nil } -func awsAwsquery_deserializeDocumentThumbprintListTypeUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentThumbprintListTypeUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -23551,14 +23633,11 @@ func awsAwsquery_deserializeDocumentThumbprintListTypeUnwrapped(v *[]*string, de return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -23600,7 +23679,7 @@ func awsAwsquery_deserializeDocumentTrackedActionLastAccessed(v **types.TrackedA } if val != nil { xtv := string(val) - sv.ActionName = &xtv + sv.ActionName = ptr.String(xtv) } case strings.EqualFold("LastAccessedEntity", t.Name.Local): @@ -23616,7 +23695,7 @@ func awsAwsquery_deserializeDocumentTrackedActionLastAccessed(v **types.TrackedA } if val != nil { xtv := string(val) - sv.LastAccessedEntity = &xtv + sv.LastAccessedEntity = ptr.String(xtv) } case strings.EqualFold("LastAccessedRegion", t.Name.Local): @@ -23632,7 +23711,7 @@ func awsAwsquery_deserializeDocumentTrackedActionLastAccessed(v **types.TrackedA } if val != nil { xtv := string(val) - sv.LastAccessedRegion = &xtv + sv.LastAccessedRegion = ptr.String(xtv) } case strings.EqualFold("LastAccessedTime", t.Name.Local): @@ -23649,7 +23728,7 @@ func awsAwsquery_deserializeDocumentTrackedActionLastAccessed(v **types.TrackedA if err != nil { return err } - sv.LastAccessedTime = &t + sv.LastAccessedTime = ptr.Time(t) } default: @@ -23662,13 +23741,13 @@ func awsAwsquery_deserializeDocumentTrackedActionLastAccessed(v **types.TrackedA return nil } -func awsAwsquery_deserializeDocumentTrackedActionsLastAccessed(v *[]*types.TrackedActionLastAccessed, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTrackedActionsLastAccessed(v *[]types.TrackedActionLastAccessed, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TrackedActionLastAccessed + var sv []types.TrackedActionLastAccessed if *v == nil { - sv = make([]*types.TrackedActionLastAccessed, 0) + sv = make([]types.TrackedActionLastAccessed, 0) } else { sv = *v } @@ -23684,11 +23763,13 @@ func awsAwsquery_deserializeDocumentTrackedActionsLastAccessed(v *[]*types.Track } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.TrackedActionLastAccessed + var col types.TrackedActionLastAccessed nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTrackedActionLastAccessed(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTrackedActionLastAccessed(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -23701,23 +23782,25 @@ func awsAwsquery_deserializeDocumentTrackedActionsLastAccessed(v *[]*types.Track return nil } -func awsAwsquery_deserializeDocumentTrackedActionsLastAccessedUnwrapped(v *[]*types.TrackedActionLastAccessed, decoder smithyxml.NodeDecoder) error { - var sv []*types.TrackedActionLastAccessed +func awsAwsquery_deserializeDocumentTrackedActionsLastAccessedUnwrapped(v *[]types.TrackedActionLastAccessed, decoder smithyxml.NodeDecoder) error { + var sv []types.TrackedActionLastAccessed if *v == nil { - sv = make([]*types.TrackedActionLastAccessed, 0) + sv = make([]types.TrackedActionLastAccessed, 0) } else { sv = *v } switch { default: - var mv *types.TrackedActionLastAccessed + var mv types.TrackedActionLastAccessed t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTrackedActionLastAccessed(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTrackedActionLastAccessed(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -23758,7 +23841,7 @@ func awsAwsquery_deserializeDocumentUnmodifiableEntityException(v **types.Unmodi } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23806,7 +23889,7 @@ func awsAwsquery_deserializeDocumentUnrecognizedPublicKeyEncodingException(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23854,7 +23937,7 @@ func awsAwsquery_deserializeDocumentUser(v **types.User, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("CreateDate", t.Name.Local): @@ -23871,7 +23954,7 @@ func awsAwsquery_deserializeDocumentUser(v **types.User, decoder smithyxml.NodeD if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("PasswordLastUsed", t.Name.Local): @@ -23888,7 +23971,7 @@ func awsAwsquery_deserializeDocumentUser(v **types.User, decoder smithyxml.NodeD if err != nil { return err } - sv.PasswordLastUsed = &t + sv.PasswordLastUsed = ptr.Time(t) } case strings.EqualFold("Path", t.Name.Local): @@ -23904,7 +23987,7 @@ func awsAwsquery_deserializeDocumentUser(v **types.User, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.Path = &xtv + sv.Path = ptr.String(xtv) } case strings.EqualFold("PermissionsBoundary", t.Name.Local): @@ -23932,7 +24015,7 @@ func awsAwsquery_deserializeDocumentUser(v **types.User, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.UserId = &xtv + sv.UserId = ptr.String(xtv) } case strings.EqualFold("UserName", t.Name.Local): @@ -23948,7 +24031,7 @@ func awsAwsquery_deserializeDocumentUser(v **types.User, decoder smithyxml.NodeD } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -23996,7 +24079,7 @@ func awsAwsquery_deserializeDocumentUserDetail(v **types.UserDetail, decoder smi } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("AttachedManagedPolicies", t.Name.Local): @@ -24019,7 +24102,7 @@ func awsAwsquery_deserializeDocumentUserDetail(v **types.UserDetail, decoder smi if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("GroupList", t.Name.Local): @@ -24041,7 +24124,7 @@ func awsAwsquery_deserializeDocumentUserDetail(v **types.UserDetail, decoder smi } if val != nil { xtv := string(val) - sv.Path = &xtv + sv.Path = ptr.String(xtv) } case strings.EqualFold("PermissionsBoundary", t.Name.Local): @@ -24069,7 +24152,7 @@ func awsAwsquery_deserializeDocumentUserDetail(v **types.UserDetail, decoder smi } if val != nil { xtv := string(val) - sv.UserId = &xtv + sv.UserId = ptr.String(xtv) } case strings.EqualFold("UserName", t.Name.Local): @@ -24085,7 +24168,7 @@ func awsAwsquery_deserializeDocumentUserDetail(v **types.UserDetail, decoder smi } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } case strings.EqualFold("UserPolicyList", t.Name.Local): @@ -24104,13 +24187,13 @@ func awsAwsquery_deserializeDocumentUserDetail(v **types.UserDetail, decoder smi return nil } -func awsAwsquery_deserializeDocumentUserDetailListType(v *[]*types.UserDetail, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentUserDetailListType(v *[]types.UserDetail, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UserDetail + var sv []types.UserDetail if *v == nil { - sv = make([]*types.UserDetail, 0) + sv = make([]types.UserDetail, 0) } else { sv = *v } @@ -24126,11 +24209,13 @@ func awsAwsquery_deserializeDocumentUserDetailListType(v *[]*types.UserDetail, d } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.UserDetail + var col types.UserDetail nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUserDetail(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentUserDetail(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -24143,35 +24228,37 @@ func awsAwsquery_deserializeDocumentUserDetailListType(v *[]*types.UserDetail, d return nil } -func awsAwsquery_deserializeDocumentUserDetailListTypeUnwrapped(v *[]*types.UserDetail, decoder smithyxml.NodeDecoder) error { - var sv []*types.UserDetail +func awsAwsquery_deserializeDocumentUserDetailListTypeUnwrapped(v *[]types.UserDetail, decoder smithyxml.NodeDecoder) error { + var sv []types.UserDetail if *v == nil { - sv = make([]*types.UserDetail, 0) + sv = make([]types.UserDetail, 0) } else { sv = *v } switch { default: - var mv *types.UserDetail + var mv types.UserDetail t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUserDetail(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentUserDetail(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentUserListType(v *[]*types.User, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentUserListType(v *[]types.User, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.User + var sv []types.User if *v == nil { - sv = make([]*types.User, 0) + sv = make([]types.User, 0) } else { sv = *v } @@ -24187,11 +24274,13 @@ func awsAwsquery_deserializeDocumentUserListType(v *[]*types.User, decoder smith } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.User + var col types.User nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUser(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentUser(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -24204,23 +24293,25 @@ func awsAwsquery_deserializeDocumentUserListType(v *[]*types.User, decoder smith return nil } -func awsAwsquery_deserializeDocumentUserListTypeUnwrapped(v *[]*types.User, decoder smithyxml.NodeDecoder) error { - var sv []*types.User +func awsAwsquery_deserializeDocumentUserListTypeUnwrapped(v *[]types.User, decoder smithyxml.NodeDecoder) error { + var sv []types.User if *v == nil { - sv = make([]*types.User, 0) + sv = make([]types.User, 0) } else { sv = *v } switch { default: - var mv *types.User + var mv types.User t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUser(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentUser(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -24283,7 +24374,7 @@ func awsAwsquery_deserializeDocumentVirtualMFADevice(v **types.VirtualMFADevice, if err != nil { return err } - sv.EnableDate = &t + sv.EnableDate = ptr.Time(t) } case strings.EqualFold("QRCodePNG", t.Name.Local): @@ -24320,7 +24411,7 @@ func awsAwsquery_deserializeDocumentVirtualMFADevice(v **types.VirtualMFADevice, } if val != nil { xtv := string(val) - sv.SerialNumber = &xtv + sv.SerialNumber = ptr.String(xtv) } case strings.EqualFold("User", t.Name.Local): @@ -24339,13 +24430,13 @@ func awsAwsquery_deserializeDocumentVirtualMFADevice(v **types.VirtualMFADevice, return nil } -func awsAwsquery_deserializeDocumentVirtualMFADeviceListType(v *[]*types.VirtualMFADevice, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentVirtualMFADeviceListType(v *[]types.VirtualMFADevice, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VirtualMFADevice + var sv []types.VirtualMFADevice if *v == nil { - sv = make([]*types.VirtualMFADevice, 0) + sv = make([]types.VirtualMFADevice, 0) } else { sv = *v } @@ -24361,11 +24452,13 @@ func awsAwsquery_deserializeDocumentVirtualMFADeviceListType(v *[]*types.Virtual } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.VirtualMFADevice + var col types.VirtualMFADevice nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentVirtualMFADevice(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentVirtualMFADevice(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -24378,23 +24471,25 @@ func awsAwsquery_deserializeDocumentVirtualMFADeviceListType(v *[]*types.Virtual return nil } -func awsAwsquery_deserializeDocumentVirtualMFADeviceListTypeUnwrapped(v *[]*types.VirtualMFADevice, decoder smithyxml.NodeDecoder) error { - var sv []*types.VirtualMFADevice +func awsAwsquery_deserializeDocumentVirtualMFADeviceListTypeUnwrapped(v *[]types.VirtualMFADevice, decoder smithyxml.NodeDecoder) error { + var sv []types.VirtualMFADevice if *v == nil { - sv = make([]*types.VirtualMFADevice, 0) + sv = make([]types.VirtualMFADevice, 0) } else { sv = *v } switch { default: - var mv *types.VirtualMFADevice + var mv types.VirtualMFADevice t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentVirtualMFADevice(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentVirtualMFADevice(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -24843,7 +24938,7 @@ func awsAwsquery_deserializeOpDocumentCreateOpenIDConnectProviderOutput(v **Crea } if val != nil { xtv := string(val) - sv.OpenIDConnectProviderArn = &xtv + sv.OpenIDConnectProviderArn = ptr.String(xtv) } default: @@ -25005,7 +25100,7 @@ func awsAwsquery_deserializeOpDocumentCreateSAMLProviderOutput(v **CreateSAMLPro } if val != nil { xtv := string(val) - sv.SAMLProviderArn = &xtv + sv.SAMLProviderArn = ptr.String(xtv) } default: @@ -25717,7 +25812,7 @@ func awsAwsquery_deserializeOpDocumentDeleteServiceLinkedRoleOutput(v **DeleteSe } if val != nil { xtv := string(val) - sv.DeletionTaskId = &xtv + sv.DeletionTaskId = ptr.String(xtv) } default: @@ -26117,7 +26212,7 @@ func awsAwsquery_deserializeOpDocumentGenerateCredentialReportOutput(v **Generat } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("State", t.Name.Local): @@ -26178,7 +26273,7 @@ func awsAwsquery_deserializeOpDocumentGenerateOrganizationsAccessReportOutput(v } if val != nil { xtv := string(val) - sv.JobId = &xtv + sv.JobId = ptr.String(xtv) } default: @@ -26226,7 +26321,7 @@ func awsAwsquery_deserializeOpDocumentGenerateServiceLastAccessedDetailsOutput(v } if val != nil { xtv := string(val) - sv.JobId = &xtv + sv.JobId = ptr.String(xtv) } default: @@ -26280,7 +26375,7 @@ func awsAwsquery_deserializeOpDocumentGetAccessKeyLastUsedOutput(v **GetAccessKe } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -26334,7 +26429,7 @@ func awsAwsquery_deserializeOpDocumentGetAccountAuthorizationDetailsOutput(v **G if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -26350,7 +26445,7 @@ func awsAwsquery_deserializeOpDocumentGetAccountAuthorizationDetailsOutput(v **G } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Policies", t.Name.Local): @@ -26590,7 +26685,7 @@ func awsAwsquery_deserializeOpDocumentGetCredentialReportOutput(v **GetCredentia if err != nil { return err } - sv.GeneratedTime = &t + sv.GeneratedTime = ptr.Time(t) } case strings.EqualFold("ReportFormat", t.Name.Local): @@ -26657,7 +26752,7 @@ func awsAwsquery_deserializeOpDocumentGetGroupOutput(v **GetGroupOutput, decoder if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -26673,7 +26768,7 @@ func awsAwsquery_deserializeOpDocumentGetGroupOutput(v **GetGroupOutput, decoder } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Users", t.Name.Local): @@ -26727,7 +26822,7 @@ func awsAwsquery_deserializeOpDocumentGetGroupPolicyOutput(v **GetGroupPolicyOut } if val != nil { xtv := string(val) - sv.GroupName = &xtv + sv.GroupName = ptr.String(xtv) } case strings.EqualFold("PolicyDocument", t.Name.Local): @@ -26743,7 +26838,7 @@ func awsAwsquery_deserializeOpDocumentGetGroupPolicyOutput(v **GetGroupPolicyOut } if val != nil { xtv := string(val) - sv.PolicyDocument = &xtv + sv.PolicyDocument = ptr.String(xtv) } case strings.EqualFold("PolicyName", t.Name.Local): @@ -26759,7 +26854,7 @@ func awsAwsquery_deserializeOpDocumentGetGroupPolicyOutput(v **GetGroupPolicyOut } if val != nil { xtv := string(val) - sv.PolicyName = &xtv + sv.PolicyName = ptr.String(xtv) } default: @@ -26890,7 +26985,7 @@ func awsAwsquery_deserializeOpDocumentGetOpenIDConnectProviderOutput(v **GetOpen if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("ThumbprintList", t.Name.Local): @@ -26912,7 +27007,7 @@ func awsAwsquery_deserializeOpDocumentGetOpenIDConnectProviderOutput(v **GetOpen } if val != nil { xtv := string(val) - sv.Url = &xtv + sv.Url = ptr.String(xtv) } default: @@ -26972,7 +27067,7 @@ func awsAwsquery_deserializeOpDocumentGetOrganizationsAccessReportOutput(v **Get if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("JobCompletionDate", t.Name.Local): @@ -26989,7 +27084,7 @@ func awsAwsquery_deserializeOpDocumentGetOrganizationsAccessReportOutput(v **Get if err != nil { return err } - sv.JobCompletionDate = &t + sv.JobCompletionDate = ptr.Time(t) } case strings.EqualFold("JobCreationDate", t.Name.Local): @@ -27006,7 +27101,7 @@ func awsAwsquery_deserializeOpDocumentGetOrganizationsAccessReportOutput(v **Get if err != nil { return err } - sv.JobCreationDate = &t + sv.JobCreationDate = ptr.Time(t) } case strings.EqualFold("JobStatus", t.Name.Local): @@ -27035,7 +27130,7 @@ func awsAwsquery_deserializeOpDocumentGetOrganizationsAccessReportOutput(v **Get } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("NumberOfServicesAccessible", t.Name.Local): @@ -27231,7 +27326,7 @@ func awsAwsquery_deserializeOpDocumentGetRolePolicyOutput(v **GetRolePolicyOutpu } if val != nil { xtv := string(val) - sv.PolicyDocument = &xtv + sv.PolicyDocument = ptr.String(xtv) } case strings.EqualFold("PolicyName", t.Name.Local): @@ -27247,7 +27342,7 @@ func awsAwsquery_deserializeOpDocumentGetRolePolicyOutput(v **GetRolePolicyOutpu } if val != nil { xtv := string(val) - sv.PolicyName = &xtv + sv.PolicyName = ptr.String(xtv) } case strings.EqualFold("RoleName", t.Name.Local): @@ -27263,7 +27358,7 @@ func awsAwsquery_deserializeOpDocumentGetRolePolicyOutput(v **GetRolePolicyOutpu } if val != nil { xtv := string(val) - sv.RoleName = &xtv + sv.RoleName = ptr.String(xtv) } default: @@ -27312,7 +27407,7 @@ func awsAwsquery_deserializeOpDocumentGetSAMLProviderOutput(v **GetSAMLProviderO if err != nil { return err } - sv.CreateDate = &t + sv.CreateDate = ptr.Time(t) } case strings.EqualFold("SAMLMetadataDocument", t.Name.Local): @@ -27328,7 +27423,7 @@ func awsAwsquery_deserializeOpDocumentGetSAMLProviderOutput(v **GetSAMLProviderO } if val != nil { xtv := string(val) - sv.SAMLMetadataDocument = &xtv + sv.SAMLMetadataDocument = ptr.String(xtv) } case strings.EqualFold("ValidUntil", t.Name.Local): @@ -27345,7 +27440,7 @@ func awsAwsquery_deserializeOpDocumentGetSAMLProviderOutput(v **GetSAMLProviderO if err != nil { return err } - sv.ValidUntil = &t + sv.ValidUntil = ptr.Time(t) } default: @@ -27437,7 +27532,7 @@ func awsAwsquery_deserializeOpDocumentGetServiceLastAccessedDetailsOutput(v **Ge if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("JobCompletionDate", t.Name.Local): @@ -27454,7 +27549,7 @@ func awsAwsquery_deserializeOpDocumentGetServiceLastAccessedDetailsOutput(v **Ge if err != nil { return err } - sv.JobCompletionDate = &t + sv.JobCompletionDate = ptr.Time(t) } case strings.EqualFold("JobCreationDate", t.Name.Local): @@ -27471,7 +27566,7 @@ func awsAwsquery_deserializeOpDocumentGetServiceLastAccessedDetailsOutput(v **Ge if err != nil { return err } - sv.JobCreationDate = &t + sv.JobCreationDate = ptr.Time(t) } case strings.EqualFold("JobStatus", t.Name.Local): @@ -27513,7 +27608,7 @@ func awsAwsquery_deserializeOpDocumentGetServiceLastAccessedDetailsOutput(v **Ge } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ServicesLastAccessed", t.Name.Local): @@ -27579,7 +27674,7 @@ func awsAwsquery_deserializeOpDocumentGetServiceLastAccessedDetailsWithEntitiesO if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("JobCompletionDate", t.Name.Local): @@ -27596,7 +27691,7 @@ func awsAwsquery_deserializeOpDocumentGetServiceLastAccessedDetailsWithEntitiesO if err != nil { return err } - sv.JobCompletionDate = &t + sv.JobCompletionDate = ptr.Time(t) } case strings.EqualFold("JobCreationDate", t.Name.Local): @@ -27613,7 +27708,7 @@ func awsAwsquery_deserializeOpDocumentGetServiceLastAccessedDetailsWithEntitiesO if err != nil { return err } - sv.JobCreationDate = &t + sv.JobCreationDate = ptr.Time(t) } case strings.EqualFold("JobStatus", t.Name.Local): @@ -27642,7 +27737,7 @@ func awsAwsquery_deserializeOpDocumentGetServiceLastAccessedDetailsWithEntitiesO } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -27817,7 +27912,7 @@ func awsAwsquery_deserializeOpDocumentGetUserPolicyOutput(v **GetUserPolicyOutpu } if val != nil { xtv := string(val) - sv.PolicyDocument = &xtv + sv.PolicyDocument = ptr.String(xtv) } case strings.EqualFold("PolicyName", t.Name.Local): @@ -27833,7 +27928,7 @@ func awsAwsquery_deserializeOpDocumentGetUserPolicyOutput(v **GetUserPolicyOutpu } if val != nil { xtv := string(val) - sv.PolicyName = &xtv + sv.PolicyName = ptr.String(xtv) } case strings.EqualFold("UserName", t.Name.Local): @@ -27849,7 +27944,7 @@ func awsAwsquery_deserializeOpDocumentGetUserPolicyOutput(v **GetUserPolicyOutpu } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -27903,7 +27998,7 @@ func awsAwsquery_deserializeOpDocumentListAccessKeysOutput(v **ListAccessKeysOut if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -27919,7 +28014,7 @@ func awsAwsquery_deserializeOpDocumentListAccessKeysOutput(v **ListAccessKeysOut } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -27973,7 +28068,7 @@ func awsAwsquery_deserializeOpDocumentListAccountAliasesOutput(v **ListAccountAl if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -27989,7 +28084,7 @@ func awsAwsquery_deserializeOpDocumentListAccountAliasesOutput(v **ListAccountAl } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -28043,7 +28138,7 @@ func awsAwsquery_deserializeOpDocumentListAttachedGroupPoliciesOutput(v **ListAt if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -28059,7 +28154,7 @@ func awsAwsquery_deserializeOpDocumentListAttachedGroupPoliciesOutput(v **ListAt } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -28113,7 +28208,7 @@ func awsAwsquery_deserializeOpDocumentListAttachedRolePoliciesOutput(v **ListAtt if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -28129,7 +28224,7 @@ func awsAwsquery_deserializeOpDocumentListAttachedRolePoliciesOutput(v **ListAtt } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -28183,7 +28278,7 @@ func awsAwsquery_deserializeOpDocumentListAttachedUserPoliciesOutput(v **ListAtt if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -28199,7 +28294,7 @@ func awsAwsquery_deserializeOpDocumentListAttachedUserPoliciesOutput(v **ListAtt } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -28247,7 +28342,7 @@ func awsAwsquery_deserializeOpDocumentListEntitiesForPolicyOutput(v **ListEntiti if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -28263,7 +28358,7 @@ func awsAwsquery_deserializeOpDocumentListEntitiesForPolicyOutput(v **ListEntiti } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("PolicyGroups", t.Name.Local): @@ -28329,7 +28424,7 @@ func awsAwsquery_deserializeOpDocumentListGroupPoliciesOutput(v **ListGroupPolic if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -28345,7 +28440,7 @@ func awsAwsquery_deserializeOpDocumentListGroupPoliciesOutput(v **ListGroupPolic } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("PolicyNames", t.Name.Local): @@ -28405,7 +28500,7 @@ func awsAwsquery_deserializeOpDocumentListGroupsForUserOutput(v **ListGroupsForU if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -28421,7 +28516,7 @@ func awsAwsquery_deserializeOpDocumentListGroupsForUserOutput(v **ListGroupsForU } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -28475,7 +28570,7 @@ func awsAwsquery_deserializeOpDocumentListGroupsOutput(v **ListGroupsOutput, dec if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -28491,7 +28586,7 @@ func awsAwsquery_deserializeOpDocumentListGroupsOutput(v **ListGroupsOutput, dec } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -28545,7 +28640,7 @@ func awsAwsquery_deserializeOpDocumentListInstanceProfilesForRoleOutput(v **List if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -28561,7 +28656,7 @@ func awsAwsquery_deserializeOpDocumentListInstanceProfilesForRoleOutput(v **List } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -28615,7 +28710,7 @@ func awsAwsquery_deserializeOpDocumentListInstanceProfilesOutput(v **ListInstanc if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -28631,7 +28726,7 @@ func awsAwsquery_deserializeOpDocumentListInstanceProfilesOutput(v **ListInstanc } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -28679,7 +28774,7 @@ func awsAwsquery_deserializeOpDocumentListMFADevicesOutput(v **ListMFADevicesOut if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -28695,7 +28790,7 @@ func awsAwsquery_deserializeOpDocumentListMFADevicesOutput(v **ListMFADevicesOut } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("MFADevices", t.Name.Local): @@ -28787,7 +28882,7 @@ func awsAwsquery_deserializeOpDocumentListPoliciesGrantingServiceAccessOutput(v if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -28803,7 +28898,7 @@ func awsAwsquery_deserializeOpDocumentListPoliciesGrantingServiceAccessOutput(v } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("PoliciesGrantingServiceAccess", t.Name.Local): @@ -28857,7 +28952,7 @@ func awsAwsquery_deserializeOpDocumentListPoliciesOutput(v **ListPoliciesOutput, if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -28873,7 +28968,7 @@ func awsAwsquery_deserializeOpDocumentListPoliciesOutput(v **ListPoliciesOutput, } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Policies", t.Name.Local): @@ -28927,7 +29022,7 @@ func awsAwsquery_deserializeOpDocumentListPolicyVersionsOutput(v **ListPolicyVer if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -28943,7 +29038,7 @@ func awsAwsquery_deserializeOpDocumentListPolicyVersionsOutput(v **ListPolicyVer } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Versions", t.Name.Local): @@ -28997,7 +29092,7 @@ func awsAwsquery_deserializeOpDocumentListRolePoliciesOutput(v **ListRolePolicie if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -29013,7 +29108,7 @@ func awsAwsquery_deserializeOpDocumentListRolePoliciesOutput(v **ListRolePolicie } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("PolicyNames", t.Name.Local): @@ -29067,7 +29162,7 @@ func awsAwsquery_deserializeOpDocumentListRolesOutput(v **ListRolesOutput, decod if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -29083,7 +29178,7 @@ func awsAwsquery_deserializeOpDocumentListRolesOutput(v **ListRolesOutput, decod } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Roles", t.Name.Local): @@ -29137,7 +29232,7 @@ func awsAwsquery_deserializeOpDocumentListRoleTagsOutput(v **ListRoleTagsOutput, if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -29153,7 +29248,7 @@ func awsAwsquery_deserializeOpDocumentListRoleTagsOutput(v **ListRoleTagsOutput, } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -29245,7 +29340,7 @@ func awsAwsquery_deserializeOpDocumentListServerCertificatesOutput(v **ListServe if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -29261,7 +29356,7 @@ func awsAwsquery_deserializeOpDocumentListServerCertificatesOutput(v **ListServe } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ServerCertificateMetadataList", t.Name.Local): @@ -29359,7 +29454,7 @@ func awsAwsquery_deserializeOpDocumentListSigningCertificatesOutput(v **ListSign if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -29375,7 +29470,7 @@ func awsAwsquery_deserializeOpDocumentListSigningCertificatesOutput(v **ListSign } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -29423,7 +29518,7 @@ func awsAwsquery_deserializeOpDocumentListSSHPublicKeysOutput(v **ListSSHPublicK if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -29439,7 +29534,7 @@ func awsAwsquery_deserializeOpDocumentListSSHPublicKeysOutput(v **ListSSHPublicK } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("SSHPublicKeys", t.Name.Local): @@ -29493,7 +29588,7 @@ func awsAwsquery_deserializeOpDocumentListUserPoliciesOutput(v **ListUserPolicie if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -29509,7 +29604,7 @@ func awsAwsquery_deserializeOpDocumentListUserPoliciesOutput(v **ListUserPolicie } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("PolicyNames", t.Name.Local): @@ -29563,7 +29658,7 @@ func awsAwsquery_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, decod if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -29579,7 +29674,7 @@ func awsAwsquery_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, decod } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Users", t.Name.Local): @@ -29633,7 +29728,7 @@ func awsAwsquery_deserializeOpDocumentListUserTagsOutput(v **ListUserTagsOutput, if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -29649,7 +29744,7 @@ func awsAwsquery_deserializeOpDocumentListUserTagsOutput(v **ListUserTagsOutput, } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -29703,7 +29798,7 @@ func awsAwsquery_deserializeOpDocumentListVirtualMFADevicesOutput(v **ListVirtua if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -29719,7 +29814,7 @@ func awsAwsquery_deserializeOpDocumentListVirtualMFADevicesOutput(v **ListVirtua } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("VirtualMFADevices", t.Name.Local): @@ -30169,7 +30264,7 @@ func awsAwsquery_deserializeOpDocumentSimulateCustomPolicyOutput(v **SimulateCus if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -30185,7 +30280,7 @@ func awsAwsquery_deserializeOpDocumentSimulateCustomPolicyOutput(v **SimulateCus } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -30239,7 +30334,7 @@ func awsAwsquery_deserializeOpDocumentSimulatePrincipalPolicyOutput(v **Simulate if err != nil { return fmt.Errorf("expected booleanType to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -30255,7 +30350,7 @@ func awsAwsquery_deserializeOpDocumentSimulatePrincipalPolicyOutput(v **Simulate } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -30693,7 +30788,7 @@ func awsAwsquery_deserializeOpDocumentUpdateSAMLProviderOutput(v **UpdateSAMLPro } if val != nil { xtv := string(val) - sv.SAMLProviderArn = &xtv + sv.SAMLProviderArn = ptr.String(xtv) } default: diff --git a/service/iam/go.mod b/service/iam/go.mod index bdef34a7842..3ea3fa39c84 100644 --- a/service/iam/go.mod +++ b/service/iam/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/iam go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/iam/serializers.go b/service/iam/serializers.go index cca2a553511..1b7f8644d70 100644 --- a/service/iam/serializers.go +++ b/service/iam/serializers.go @@ -7699,34 +7699,28 @@ func (m *awsAwsquery_serializeOpUploadSSHPublicKey) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentActionNameListType(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentActionNameListType(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentClientIDListType(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentClientIDListType(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7755,36 +7749,30 @@ func awsAwsquery_serializeDocumentContextEntry(v *types.ContextEntry, value quer return nil } -func awsAwsquery_serializeDocumentContextEntryListType(v []*types.ContextEntry, value query.Value) error { +func awsAwsquery_serializeDocumentContextEntryListType(v []types.ContextEntry, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentContextEntry(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentContextEntry(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentContextKeyValueListType(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentContextKeyValueListType(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7802,50 +7790,41 @@ func awsAwsquery_serializeDocumentEntityListType(v []types.EntityType, value que return nil } -func awsAwsquery_serializeDocumentResourceNameListType(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentResourceNameListType(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentServiceNamespaceListType(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentServiceNamespaceListType(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentSimulationPolicyListType(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSimulationPolicyListType(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7867,52 +7846,43 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTagKeyListType(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentTagKeyListType(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentTagListType(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTagListType(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentThumbprintListType(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentThumbprintListType(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8103,9 +8073,9 @@ func awsAwsquery_serializeOpDocumentCreateLoginProfileInput(v *CreateLoginProfil objectKey.String(*v.Password) } - if v.PasswordResetRequired != nil { + if v.PasswordResetRequired { objectKey := object.Key("PasswordResetRequired") - objectKey.Boolean(*v.PasswordResetRequired) + objectKey.Boolean(v.PasswordResetRequired) } if v.UserName != nil { @@ -8183,9 +8153,9 @@ func awsAwsquery_serializeOpDocumentCreatePolicyVersionInput(v *CreatePolicyVers objectKey.String(*v.PolicyDocument) } - if v.SetAsDefault != nil { + if v.SetAsDefault { objectKey := object.Key("SetAsDefault") - objectKey.Boolean(*v.SetAsDefault) + objectKey.Boolean(v.SetAsDefault) } return nil @@ -9504,9 +9474,9 @@ func awsAwsquery_serializeOpDocumentListPoliciesInput(v *ListPoliciesInput, valu objectKey.Integer(*v.MaxItems) } - if v.OnlyAttached != nil { + if v.OnlyAttached { objectKey := object.Key("OnlyAttached") - objectKey.Boolean(*v.OnlyAttached) + objectKey.Boolean(v.OnlyAttached) } if v.PathPrefix != nil { @@ -10268,9 +10238,9 @@ func awsAwsquery_serializeOpDocumentUpdateAccountPasswordPolicyInput(v *UpdateAc object := value.Object() _ = object - if v.AllowUsersToChangePassword != nil { + if v.AllowUsersToChangePassword { objectKey := object.Key("AllowUsersToChangePassword") - objectKey.Boolean(*v.AllowUsersToChangePassword) + objectKey.Boolean(v.AllowUsersToChangePassword) } if v.HardExpiry != nil { @@ -10293,24 +10263,24 @@ func awsAwsquery_serializeOpDocumentUpdateAccountPasswordPolicyInput(v *UpdateAc objectKey.Integer(*v.PasswordReusePrevention) } - if v.RequireLowercaseCharacters != nil { + if v.RequireLowercaseCharacters { objectKey := object.Key("RequireLowercaseCharacters") - objectKey.Boolean(*v.RequireLowercaseCharacters) + objectKey.Boolean(v.RequireLowercaseCharacters) } - if v.RequireNumbers != nil { + if v.RequireNumbers { objectKey := object.Key("RequireNumbers") - objectKey.Boolean(*v.RequireNumbers) + objectKey.Boolean(v.RequireNumbers) } - if v.RequireSymbols != nil { + if v.RequireSymbols { objectKey := object.Key("RequireSymbols") - objectKey.Boolean(*v.RequireSymbols) + objectKey.Boolean(v.RequireSymbols) } - if v.RequireUppercaseCharacters != nil { + if v.RequireUppercaseCharacters { objectKey := object.Key("RequireUppercaseCharacters") - objectKey.Boolean(*v.RequireUppercaseCharacters) + objectKey.Boolean(v.RequireUppercaseCharacters) } return nil diff --git a/service/iam/types/types.go b/service/iam/types/types.go index 87ec671f3c4..fc6f96b0c0a 100644 --- a/service/iam/types/types.go +++ b/service/iam/types/types.go @@ -221,7 +221,7 @@ type ContextEntry struct { // The value (or values, if the condition context key supports multiple values) to // provide to the simulation when the key is referenced by a Condition element in // an input policy. - ContextKeyValues []*string + ContextKeyValues []string } // The reason that the service-linked role deletion failed. This data type is used @@ -237,7 +237,7 @@ type DeletionTaskFailureReasonType struct { // been deleted from the linked service, the role can't be deleted. This parameter // includes a list of the resources that are associated with the role and the // Region in which the resources are being used. - RoleUsageList []*RoleUsageType + RoleUsageList []RoleUsageType } // An object that contains details about when the IAM entities (users or roles) @@ -350,7 +350,7 @@ type EvaluationResult struct { // the resource, if only one statement denies that operation, then the explicit // deny overrides any allow. In addition, the deny statement is the only entry // included in the result. - MatchedStatements []*Statement + MatchedStatements []Statement // A list of context keys that are required by the included input policies but that // were not provided by one of the input parameters. This list is used when the @@ -359,7 +359,7 @@ type EvaluationResult struct { // values are instead included under the ResourceSpecificResults section. To // discover the context keys used by a set of policies, you can call // GetContextKeysForCustomPolicy or GetContextKeysForPrincipalPolicy. - MissingContextValues []*string + MissingContextValues []string // A structure that details how Organizations and its service control policies // affect the results of the simulation. Only applies if the simulated user's @@ -372,7 +372,7 @@ type EvaluationResult struct { // The individual results of the simulation of the API operation specified in // EvalActionName on each resource. - ResourceSpecificResults []*ResourceSpecificResult + ResourceSpecificResults []ResourceSpecificResult } // Contains information about an IAM group entity. This data type is used as a @@ -434,7 +434,7 @@ type GroupDetail struct { Arn *string // A list of the managed policies attached to the group. - AttachedManagedPolicies []*AttachedPolicy + AttachedManagedPolicies []AttachedPolicy // The date and time, in ISO 8601 date-time format // (http://www.iso.org/iso/iso8601), when the group was created. @@ -450,7 +450,7 @@ type GroupDetail struct { GroupName *string // A list of the inline policies embedded in the group. - GroupPolicyList []*PolicyDetail + GroupPolicyList []PolicyDetail // The path to the group. For more information about paths, see IAM Identifiers // (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) in the @@ -508,7 +508,7 @@ type InstanceProfile struct { // The role associated with the instance profile. // // This member is required. - Roles []*Role + Roles []Role } // Contains details about the permissions policies that are attached to the @@ -517,7 +517,7 @@ type InstanceProfile struct { type ListPoliciesGrantingServiceAccessEntry struct { // The PoliciesGrantingServiceAccess object that contains details about the policy. - Policies []*PolicyGrantingServiceAccess + Policies []PolicyGrantingServiceAccess // The namespace of the service that was accessed. To learn the service namespace // of a service, go to Actions, Resources, and Condition Keys for AWS Services @@ -548,7 +548,7 @@ type LoginProfile struct { UserName *string // Specifies whether the user is required to set a new password on next sign-in. - PasswordResetRequired *bool + PasswordResetRequired bool } // Contains information about a managed policy, including the policy's ARN, @@ -586,7 +586,7 @@ type ManagedPolicyDetail struct { Description *string // Specifies whether the policy can be attached to an IAM user, group, or role. - IsAttachable *bool + IsAttachable bool // The path to the policy. For more information about paths, see IAM Identifiers // (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) in the @@ -610,7 +610,7 @@ type ManagedPolicyDetail struct { PolicyName *string // A list containing information about the versions of the policy. - PolicyVersionList []*PolicyVersion + PolicyVersionList []PolicyVersion // The date and time, in ISO 8601 date-time format // (http://www.iso.org/iso/iso8601), when the policy was last updated. When a @@ -658,7 +658,7 @@ type OrganizationsDecisionDetail struct { // Specifies whether the simulated operation is allowed by the Organizations // service control policies that impact the simulated user's account. - AllowedByOrganizations *bool + AllowedByOrganizations bool } // Contains information about the account password policy. This data type is used @@ -666,12 +666,12 @@ type OrganizationsDecisionDetail struct { type PasswordPolicy struct { // Specifies whether IAM users are allowed to change their own password. - AllowUsersToChangePassword *bool + AllowUsersToChangePassword bool // Indicates whether passwords in the account expire. Returns true if // MaxPasswordAge contains a value greater than 0. Returns false if MaxPasswordAge // is 0 or not present. - ExpirePasswords *bool + ExpirePasswords bool // Specifies whether IAM users are prevented from setting a new password after // their password has expired. @@ -688,16 +688,16 @@ type PasswordPolicy struct { PasswordReusePrevention *int32 // Specifies whether to require lowercase characters for IAM user passwords. - RequireLowercaseCharacters *bool + RequireLowercaseCharacters bool // Specifies whether to require numbers for IAM user passwords. - RequireNumbers *bool + RequireNumbers bool // Specifies whether to require symbols for IAM user passwords. - RequireSymbols *bool + RequireSymbols bool // Specifies whether to require uppercase characters for IAM user passwords. - RequireUppercaseCharacters *bool + RequireUppercaseCharacters bool } // Contains information about the effect that a permissions boundary has on a @@ -712,7 +712,7 @@ type PermissionsBoundaryDecisionDetail struct { // either the requested action is not allowed (implicitly denied) or that the // action is explicitly denied by the permissions boundary. In both of these cases, // the action is not allowed, regardless of the identity-based policy. - AllowedByPermissionsBoundary *bool + AllowedByPermissionsBoundary bool } // Contains information about a managed policy. This data type is used as a @@ -747,7 +747,7 @@ type Policy struct { Description *string // Specifies whether the policy can be attached to an IAM user, group, or role. - IsAttachable *bool + IsAttachable bool // The path to the policy. For more information about paths, see IAM Identifiers // (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) in the @@ -909,7 +909,7 @@ type PolicyVersion struct { Document *string // Specifies whether the policy version is set as the policy's default version. - IsDefaultVersion *bool + IsDefaultVersion bool // The identifier for the policy version. Policy version identifiers always begin // with v (always lowercase). When a policy is created, the first policy version is @@ -922,10 +922,10 @@ type PolicyVersion struct { type Position struct { // The column in the line containing the specified position in the document. - Column *int32 + Column int32 // The line containing the specified position in the document. - Line *int32 + Line int32 } // Contains the result of the simulation of a single API operation call on a single @@ -954,7 +954,7 @@ type ResourceSpecificResult struct { // operation on the resource, if any statement denies that operation, then the // explicit deny overrides any allow. In addition, the deny statement is the only // entry included in the result. - MatchedStatements []*Statement + MatchedStatements []Statement // A list of context keys that are required by the included input policies but that // were not provided by one of the input parameters. This list is used when a list @@ -964,7 +964,7 @@ type ResourceSpecificResult struct { // under the EvaluationResults section. To discover the context keys used by a set // of policies, you can call GetContextKeysForCustomPolicy or // GetContextKeysForPrincipalPolicy. - MissingContextValues []*string + MissingContextValues []string // Contains information about the effect that a permissions boundary has on a // policy simulation when that boundary is applied to an IAM entity. @@ -1041,7 +1041,7 @@ type Role struct { // about tagging, see Tagging IAM Identities // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the IAM User // Guide. - Tags []*Tag + Tags []Tag } // Contains information about an IAM role, including all of the role's policies. @@ -1061,14 +1061,14 @@ type RoleDetail struct { // A list of managed policies attached to the role. These policies are the role's // access (permissions) policies. - AttachedManagedPolicies []*AttachedPolicy + AttachedManagedPolicies []AttachedPolicy // The date and time, in ISO 8601 date-time format // (http://www.iso.org/iso/iso8601), when the role was created. CreateDate *time.Time // A list of instance profiles that contain this role. - InstanceProfileList []*InstanceProfile + InstanceProfileList []InstanceProfile // The path to the role. For more information about paths, see IAM Identifiers // (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) in the @@ -1103,13 +1103,13 @@ type RoleDetail struct { // A list of inline policies embedded in the role. These policies are the role's // access (permissions) policies. - RolePolicyList []*PolicyDetail + RolePolicyList []PolicyDetail // A list of tags that are attached to the specified role. For more information // about tagging, see Tagging IAM Identities // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the IAM User // Guide. - Tags []*Tag + Tags []Tag } // Contains information about the last time that an IAM role was used. This @@ -1144,7 +1144,7 @@ type RoleUsageType struct { Region *string // The name of the resource that is using the service-linked role. - Resources []*string + Resources []string } // Contains the list of SAML providers for this account. @@ -1279,7 +1279,7 @@ type ServiceLastAccessed struct { // This field is also null if the report was generated at the service level and not // the action level. For more information, see the Granularity field in // GenerateServiceLastAccessedDetails. - TrackedActionsLastAccessed []*TrackedActionLastAccessed + TrackedActionsLastAccessed []TrackedActionLastAccessed } // Contains the details of a service-specific credential. @@ -1613,7 +1613,7 @@ type User struct { // about tagging, see Tagging IAM Identities // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the IAM User // Guide. - Tags []*Tag + Tags []Tag } // Contains information about an IAM user, including all the user's policies and @@ -1629,14 +1629,14 @@ type UserDetail struct { Arn *string // A list of the managed policies attached to the user. - AttachedManagedPolicies []*AttachedPolicy + AttachedManagedPolicies []AttachedPolicy // The date and time, in ISO 8601 date-time format // (http://www.iso.org/iso/iso8601), when the user was created. CreateDate *time.Time // A list of IAM groups that the user is in. - GroupList []*string + GroupList []string // The path to the user. For more information about paths, see IAM Identifiers // (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) in the @@ -1654,7 +1654,7 @@ type UserDetail struct { // about tagging, see Tagging IAM Identities // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the IAM User // Guide. - Tags []*Tag + Tags []Tag // The stable and unique string identifying the user. For more information about // IDs, see IAM Identifiers @@ -1666,7 +1666,7 @@ type UserDetail struct { UserName *string // A list of the inline policies embedded in the user. - UserPolicyList []*PolicyDetail + UserPolicyList []PolicyDetail } // Contains information about a virtual MFA device. diff --git a/service/iam/validators.go b/service/iam/validators.go index 6dc3ba6b0e3..907c32ee419 100644 --- a/service/iam/validators.go +++ b/service/iam/validators.go @@ -2812,13 +2812,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagListType(v []*types.Tag) error { +func validateTagListType(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagListType"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/identitystore/api_op_ListGroups.go b/service/identitystore/api_op_ListGroups.go index 0d0370e47a0..60f25808f6e 100644 --- a/service/identitystore/api_op_ListGroups.go +++ b/service/identitystore/api_op_ListGroups.go @@ -41,7 +41,7 @@ type ListGroupsInput struct { IdentityStoreId *string // A list of Filter objects, which is used in the ListUsers and ListGroups request. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to be returned per request, which is used in the // ListUsers and ListGroups request to specify how many results to return in one @@ -60,7 +60,7 @@ type ListGroupsOutput struct { // A list of Group objects in the identity store. // // This member is required. - Groups []*types.Group + Groups []types.Group // The pagination token used for the ListUsers and ListGroups APIs. This value is // generated by the identity store service and is returned in the API response if diff --git a/service/identitystore/api_op_ListUsers.go b/service/identitystore/api_op_ListUsers.go index 3864679e1fd..78a37bf618c 100644 --- a/service/identitystore/api_op_ListUsers.go +++ b/service/identitystore/api_op_ListUsers.go @@ -41,7 +41,7 @@ type ListUsersInput struct { IdentityStoreId *string // A list of Filter objects, which is used in the ListUsers and ListGroups request. - Filters []*types.Filter + Filters []types.Filter // The maximum number of results to be returned per request, which is used in the // ListUsers and ListGroups request to specify how many results to return in one @@ -60,7 +60,7 @@ type ListUsersOutput struct { // A list of User objects in the identity store. // // This member is required. - Users []*types.User + Users []types.User // The pagination token used for the ListUsers and ListGroups APIs. This value is // generated by the identity store service and is returned in the API response if diff --git a/service/identitystore/deserializers.go b/service/identitystore/deserializers.go index c9fe7000e04..9bcc1e7e2aa 100644 --- a/service/identitystore/deserializers.go +++ b/service/identitystore/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -712,7 +713,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -721,7 +722,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -761,7 +762,7 @@ func awsAwsjson11_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected GroupDisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "GroupId": @@ -770,7 +771,7 @@ func awsAwsjson11_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } default: @@ -782,7 +783,7 @@ func awsAwsjson11_deserializeDocumentGroup(v **types.Group, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentGroups(v *[]*types.Group, value interface{}) error { +func awsAwsjson11_deserializeDocumentGroups(v *[]types.Group, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -795,18 +796,20 @@ func awsAwsjson11_deserializeDocumentGroups(v *[]*types.Group, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Group + var cv []types.Group if *v == nil { - cv = []*types.Group{} + cv = []types.Group{} } else { cv = *v } for _, value := range shape { - var col *types.Group - if err := awsAwsjson11_deserializeDocumentGroup(&col, value); err != nil { + var col types.Group + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -842,7 +845,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -851,7 +854,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -891,7 +894,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -900,7 +903,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ResourceId": @@ -909,7 +912,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -958,7 +961,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -967,7 +970,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -1007,7 +1010,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } case "UserName": @@ -1016,7 +1019,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -1028,7 +1031,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentUsers(v *[]*types.User, value interface{}) error { +func awsAwsjson11_deserializeDocumentUsers(v *[]types.User, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1041,18 +1044,20 @@ func awsAwsjson11_deserializeDocumentUsers(v *[]*types.User, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.User + var cv []types.User if *v == nil { - cv = []*types.User{} + cv = []types.User{} } else { cv = *v } for _, value := range shape { - var col *types.User - if err := awsAwsjson11_deserializeDocumentUser(&col, value); err != nil { + var col types.User + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUser(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1088,7 +1093,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -1097,7 +1102,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -1137,7 +1142,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGroupOutput(v **DescribeGroupOutp if !ok { return fmt.Errorf("expected GroupDisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "GroupId": @@ -1146,7 +1151,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGroupOutput(v **DescribeGroupOutp if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } default: @@ -1186,7 +1191,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } case "UserName": @@ -1195,7 +1200,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -1240,7 +1245,7 @@ func awsAwsjson11_deserializeOpDocumentListGroupsOutput(v **ListGroupsOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1280,7 +1285,7 @@ func awsAwsjson11_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Users": diff --git a/service/identitystore/go.mod b/service/identitystore/go.mod index abc757d5492..96944d5cb3e 100644 --- a/service/identitystore/go.mod +++ b/service/identitystore/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/identitystore go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/identitystore/serializers.go b/service/identitystore/serializers.go index eaaca9cb201..771f8c86ed8 100644 --- a/service/identitystore/serializers.go +++ b/service/identitystore/serializers.go @@ -214,17 +214,13 @@ func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentFilters(v []*types.Filter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilters(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { return err } } diff --git a/service/identitystore/validators.go b/service/identitystore/validators.go index 8ecfa4d3028..2ebc14e4bd8 100644 --- a/service/identitystore/validators.go +++ b/service/identitystore/validators.go @@ -124,13 +124,13 @@ func validateFilter(v *types.Filter) error { } } -func validateFilters(v []*types.Filter) error { +func validateFilters(v []types.Filter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Filters"} for i := range v { - if err := validateFilter(v[i]); err != nil { + if err := validateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/imagebuilder/api_op_CreateComponent.go b/service/imagebuilder/api_op_CreateComponent.go index 819e38adfef..cb76fd89ec1 100644 --- a/service/imagebuilder/api_op_CreateComponent.go +++ b/service/imagebuilder/api_op_CreateComponent.go @@ -71,10 +71,10 @@ type CreateComponentInput struct { // The operating system (OS) version supported by the component. If the OS // information is available, a prefix match is performed against the parent image // OS version during image recipe creation. - SupportedOsVersions []*string + SupportedOsVersions []string // The tags of the component. - Tags map[string]*string + Tags map[string]string // The uri of the component. Must be an S3 URL and the requester must have // permission to access the S3 bucket. If you use S3, you can specify component diff --git a/service/imagebuilder/api_op_CreateDistributionConfiguration.go b/service/imagebuilder/api_op_CreateDistributionConfiguration.go index 08413055b1b..7673e9fefd9 100644 --- a/service/imagebuilder/api_op_CreateDistributionConfiguration.go +++ b/service/imagebuilder/api_op_CreateDistributionConfiguration.go @@ -39,7 +39,7 @@ type CreateDistributionConfigurationInput struct { // The distributions of the distribution configuration. // // This member is required. - Distributions []*types.Distribution + Distributions []types.Distribution // The name of the distribution configuration. // @@ -50,7 +50,7 @@ type CreateDistributionConfigurationInput struct { Description *string // The tags of the distribution configuration. - Tags map[string]*string + Tags map[string]string } type CreateDistributionConfigurationOutput struct { diff --git a/service/imagebuilder/api_op_CreateImage.go b/service/imagebuilder/api_op_CreateImage.go index 3866e95ef32..ad54b66511a 100644 --- a/service/imagebuilder/api_op_CreateImage.go +++ b/service/imagebuilder/api_op_CreateImage.go @@ -61,7 +61,7 @@ type CreateImageInput struct { ImageTestsConfiguration *types.ImageTestsConfiguration // The tags of the image. - Tags map[string]*string + Tags map[string]string } type CreateImageOutput struct { diff --git a/service/imagebuilder/api_op_CreateImagePipeline.go b/service/imagebuilder/api_op_CreateImagePipeline.go index 18a2288f280..a6be5ac17db 100644 --- a/service/imagebuilder/api_op_CreateImagePipeline.go +++ b/service/imagebuilder/api_op_CreateImagePipeline.go @@ -75,7 +75,7 @@ type CreateImagePipelineInput struct { Status types.PipelineStatus // The tags of the image pipeline. - Tags map[string]*string + Tags map[string]string } type CreateImagePipelineOutput struct { diff --git a/service/imagebuilder/api_op_CreateImageRecipe.go b/service/imagebuilder/api_op_CreateImageRecipe.go index bfa62f16226..694a75e92ba 100644 --- a/service/imagebuilder/api_op_CreateImageRecipe.go +++ b/service/imagebuilder/api_op_CreateImageRecipe.go @@ -39,7 +39,7 @@ type CreateImageRecipeInput struct { // The components of the image recipe. // // This member is required. - Components []*types.ComponentConfiguration + Components []types.ComponentConfiguration // The name of the image recipe. // @@ -63,13 +63,13 @@ type CreateImageRecipeInput struct { SemanticVersion *string // The block device mappings of the image recipe. - BlockDeviceMappings []*types.InstanceBlockDeviceMapping + BlockDeviceMappings []types.InstanceBlockDeviceMapping // The description of the image recipe. Description *string // The tags of the image recipe. - Tags map[string]*string + Tags map[string]string // The working directory to be used during build and test workflows. WorkingDirectory *string diff --git a/service/imagebuilder/api_op_CreateInfrastructureConfiguration.go b/service/imagebuilder/api_op_CreateInfrastructureConfiguration.go index e7b0f21605d..23f8562a7c6 100644 --- a/service/imagebuilder/api_op_CreateInfrastructureConfiguration.go +++ b/service/imagebuilder/api_op_CreateInfrastructureConfiguration.go @@ -53,7 +53,7 @@ type CreateInfrastructureConfigurationInput struct { // The instance types of the infrastructure configuration. You can specify one or // more instance types to use for this build. The service will pick one of these // instance types based on availability. - InstanceTypes []*string + InstanceTypes []string // The key pair of the infrastructure configuration. This can be used to log on to // and debug the instance used to create your image. @@ -63,11 +63,11 @@ type CreateInfrastructureConfigurationInput struct { Logging *types.Logging // The tags attached to the resource created by Image Builder. - ResourceTags map[string]*string + ResourceTags map[string]string // The security group IDs to associate with the instance used to customize your EC2 // AMI. - SecurityGroupIds []*string + SecurityGroupIds []string // The SNS topic on which to send image build events. SnsTopicArn *string @@ -76,7 +76,7 @@ type CreateInfrastructureConfigurationInput struct { SubnetId *string // The tags of the infrastructure configuration. - Tags map[string]*string + Tags map[string]string // The terminate instance on failure setting of the infrastructure configuration. // Set to false if you want Image Builder to retain the instance used to configure diff --git a/service/imagebuilder/api_op_ImportComponent.go b/service/imagebuilder/api_op_ImportComponent.go index 76574677e81..c02393c2b0f 100644 --- a/service/imagebuilder/api_op_ImportComponent.go +++ b/service/imagebuilder/api_op_ImportComponent.go @@ -79,7 +79,7 @@ type ImportComponentInput struct { KmsKeyId *string // The tags of the component. - Tags map[string]*string + Tags map[string]string // The uri of the component. Must be an S3 URL and the requester must have // permission to access the S3 bucket. If you use S3, you can specify component diff --git a/service/imagebuilder/api_op_ListComponentBuildVersions.go b/service/imagebuilder/api_op_ListComponentBuildVersions.go index 34509dd6c7b..a6ddbd65272 100644 --- a/service/imagebuilder/api_op_ListComponentBuildVersions.go +++ b/service/imagebuilder/api_op_ListComponentBuildVersions.go @@ -36,7 +36,7 @@ type ListComponentBuildVersionsInput struct { ComponentVersionArn *string // The maximum items to return in a request. - MaxResults *int32 + MaxResults int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -46,7 +46,7 @@ type ListComponentBuildVersionsInput struct { type ListComponentBuildVersionsOutput struct { // The list of component summaries for the specified semantic version. - ComponentSummaryList []*types.ComponentSummary + ComponentSummaryList []types.ComponentSummary // The next token used for paginated responses. When this is not empty, there are // additional elements that the service has not included in this request. Use this diff --git a/service/imagebuilder/api_op_ListComponents.go b/service/imagebuilder/api_op_ListComponents.go index 8bb9403c98e..00b63b14a19 100644 --- a/service/imagebuilder/api_op_ListComponents.go +++ b/service/imagebuilder/api_op_ListComponents.go @@ -30,10 +30,10 @@ func (c *Client) ListComponents(ctx context.Context, params *ListComponentsInput type ListComponentsInput struct { // The filters. - Filters []*types.Filter + Filters []types.Filter // The maximum items to return in a request. - MaxResults *int32 + MaxResults int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -49,7 +49,7 @@ type ListComponentsInput struct { type ListComponentsOutput struct { // The list of component semantic versions. - ComponentVersionList []*types.ComponentVersion + ComponentVersionList []types.ComponentVersion // The next token used for paginated responses. When this is not empty, there are // additional elements that the service has not included in this request. Use this diff --git a/service/imagebuilder/api_op_ListDistributionConfigurations.go b/service/imagebuilder/api_op_ListDistributionConfigurations.go index 4a25581aff8..74c9a77b5e7 100644 --- a/service/imagebuilder/api_op_ListDistributionConfigurations.go +++ b/service/imagebuilder/api_op_ListDistributionConfigurations.go @@ -32,10 +32,10 @@ type ListDistributionConfigurationsInput struct { // The filters. // // * name - The name of this distribution configuration. - Filters []*types.Filter + Filters []types.Filter // The maximum items to return in a request. - MaxResults *int32 + MaxResults int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -45,7 +45,7 @@ type ListDistributionConfigurationsInput struct { type ListDistributionConfigurationsOutput struct { // The list of distributions. - DistributionConfigurationSummaryList []*types.DistributionConfigurationSummary + DistributionConfigurationSummaryList []types.DistributionConfigurationSummary // The next token used for paginated responses. When this is not empty, there are // additional elements that the service has not included in this request. Use this diff --git a/service/imagebuilder/api_op_ListImageBuildVersions.go b/service/imagebuilder/api_op_ListImageBuildVersions.go index f57485555c8..5b06c7791a9 100644 --- a/service/imagebuilder/api_op_ListImageBuildVersions.go +++ b/service/imagebuilder/api_op_ListImageBuildVersions.go @@ -36,10 +36,10 @@ type ListImageBuildVersionsInput struct { ImageVersionArn *string // The filters. - Filters []*types.Filter + Filters []types.Filter // The maximum items to return in a request. - MaxResults *int32 + MaxResults int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -49,7 +49,7 @@ type ListImageBuildVersionsInput struct { type ListImageBuildVersionsOutput struct { // The list of image build versions. - ImageSummaryList []*types.ImageSummary + ImageSummaryList []types.ImageSummary // The next token used for paginated responses. When this is not empty, there are // additional elements that the service has not included in this request. Use this diff --git a/service/imagebuilder/api_op_ListImagePipelineImages.go b/service/imagebuilder/api_op_ListImagePipelineImages.go index 7e2db166053..bf2a0abc904 100644 --- a/service/imagebuilder/api_op_ListImagePipelineImages.go +++ b/service/imagebuilder/api_op_ListImagePipelineImages.go @@ -36,10 +36,10 @@ type ListImagePipelineImagesInput struct { ImagePipelineArn *string // The filters. - Filters []*types.Filter + Filters []types.Filter // The maximum items to return in a request. - MaxResults *int32 + MaxResults int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -49,7 +49,7 @@ type ListImagePipelineImagesInput struct { type ListImagePipelineImagesOutput struct { // The list of images built by this pipeline. - ImageSummaryList []*types.ImageSummary + ImageSummaryList []types.ImageSummary // The next token used for paginated responses. When this is not empty, there are // additional elements that the service has not included in this request. Use this diff --git a/service/imagebuilder/api_op_ListImagePipelines.go b/service/imagebuilder/api_op_ListImagePipelines.go index 7b2a2cbc1b0..a1621fe57aa 100644 --- a/service/imagebuilder/api_op_ListImagePipelines.go +++ b/service/imagebuilder/api_op_ListImagePipelines.go @@ -30,10 +30,10 @@ func (c *Client) ListImagePipelines(ctx context.Context, params *ListImagePipeli type ListImagePipelinesInput struct { // The filters. - Filters []*types.Filter + Filters []types.Filter // The maximum items to return in a request. - MaxResults *int32 + MaxResults int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -43,7 +43,7 @@ type ListImagePipelinesInput struct { type ListImagePipelinesOutput struct { // The list of image pipelines. - ImagePipelineList []*types.ImagePipeline + ImagePipelineList []types.ImagePipeline // The next token used for paginated responses. When this is not empty, there are // additional elements that the service has not included in this request. Use this diff --git a/service/imagebuilder/api_op_ListImageRecipes.go b/service/imagebuilder/api_op_ListImageRecipes.go index 8b75a783714..5c240536398 100644 --- a/service/imagebuilder/api_op_ListImageRecipes.go +++ b/service/imagebuilder/api_op_ListImageRecipes.go @@ -30,10 +30,10 @@ func (c *Client) ListImageRecipes(ctx context.Context, params *ListImageRecipesI type ListImageRecipesInput struct { // The filters. - Filters []*types.Filter + Filters []types.Filter // The maximum items to return in a request. - MaxResults *int32 + MaxResults int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -49,7 +49,7 @@ type ListImageRecipesInput struct { type ListImageRecipesOutput struct { // The list of image pipelines. - ImageRecipeSummaryList []*types.ImageRecipeSummary + ImageRecipeSummaryList []types.ImageRecipeSummary // The next token used for paginated responses. When this is not empty, there are // additional elements that the service has not included in this request. Use this diff --git a/service/imagebuilder/api_op_ListImages.go b/service/imagebuilder/api_op_ListImages.go index d5f05e7f136..ab998fc61c8 100644 --- a/service/imagebuilder/api_op_ListImages.go +++ b/service/imagebuilder/api_op_ListImages.go @@ -30,10 +30,10 @@ func (c *Client) ListImages(ctx context.Context, params *ListImagesInput, optFns type ListImagesInput struct { // The filters. - Filters []*types.Filter + Filters []types.Filter // The maximum items to return in a request. - MaxResults *int32 + MaxResults int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -49,7 +49,7 @@ type ListImagesInput struct { type ListImagesOutput struct { // The list of image semantic versions. - ImageVersionList []*types.ImageVersion + ImageVersionList []types.ImageVersion // The next token used for paginated responses. When this is not empty, there are // additional elements that the service has not included in this request. Use this diff --git a/service/imagebuilder/api_op_ListInfrastructureConfigurations.go b/service/imagebuilder/api_op_ListInfrastructureConfigurations.go index 318ebeb1e3a..f9e6544e7cd 100644 --- a/service/imagebuilder/api_op_ListInfrastructureConfigurations.go +++ b/service/imagebuilder/api_op_ListInfrastructureConfigurations.go @@ -30,10 +30,10 @@ func (c *Client) ListInfrastructureConfigurations(ctx context.Context, params *L type ListInfrastructureConfigurationsInput struct { // The filters. - Filters []*types.Filter + Filters []types.Filter // The maximum items to return in a request. - MaxResults *int32 + MaxResults int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -43,7 +43,7 @@ type ListInfrastructureConfigurationsInput struct { type ListInfrastructureConfigurationsOutput struct { // The list of infrastructure configurations. - InfrastructureConfigurationSummaryList []*types.InfrastructureConfigurationSummary + InfrastructureConfigurationSummaryList []types.InfrastructureConfigurationSummary // The next token used for paginated responses. When this is not empty, there are // additional elements that the service has not included in this request. Use this diff --git a/service/imagebuilder/api_op_ListTagsForResource.go b/service/imagebuilder/api_op_ListTagsForResource.go index 2a90aa995a2..2f7af86f6d1 100644 --- a/service/imagebuilder/api_op_ListTagsForResource.go +++ b/service/imagebuilder/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags for the specified resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/imagebuilder/api_op_TagResource.go b/service/imagebuilder/api_op_TagResource.go index 3c6bdb02cb2..c5d2c6163a2 100644 --- a/service/imagebuilder/api_op_TagResource.go +++ b/service/imagebuilder/api_op_TagResource.go @@ -36,7 +36,7 @@ type TagResourceInput struct { // The tags to apply to the resource. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/imagebuilder/api_op_UntagResource.go b/service/imagebuilder/api_op_UntagResource.go index 7d126c68529..ee621076c0f 100644 --- a/service/imagebuilder/api_op_UntagResource.go +++ b/service/imagebuilder/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The tag keys to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/imagebuilder/api_op_UpdateDistributionConfiguration.go b/service/imagebuilder/api_op_UpdateDistributionConfiguration.go index ebe34cdb294..7b7d850810d 100644 --- a/service/imagebuilder/api_op_UpdateDistributionConfiguration.go +++ b/service/imagebuilder/api_op_UpdateDistributionConfiguration.go @@ -45,7 +45,7 @@ type UpdateDistributionConfigurationInput struct { // The distributions of the distribution configuration. // // This member is required. - Distributions []*types.Distribution + Distributions []types.Distribution // The description of the distribution configuration. Description *string diff --git a/service/imagebuilder/api_op_UpdateInfrastructureConfiguration.go b/service/imagebuilder/api_op_UpdateInfrastructureConfiguration.go index 1f264e38daf..e34ac9befd8 100644 --- a/service/imagebuilder/api_op_UpdateInfrastructureConfiguration.go +++ b/service/imagebuilder/api_op_UpdateInfrastructureConfiguration.go @@ -54,7 +54,7 @@ type UpdateInfrastructureConfigurationInput struct { // The instance types of the infrastructure configuration. You can specify one or // more instance types to use for this build. The service will pick one of these // instance types based on availability. - InstanceTypes []*string + InstanceTypes []string // The key pair of the infrastructure configuration. This can be used to log on to // and debug the instance used to create your image. @@ -64,11 +64,11 @@ type UpdateInfrastructureConfigurationInput struct { Logging *types.Logging // The tags attached to the resource created by Image Builder. - ResourceTags map[string]*string + ResourceTags map[string]string // The security group IDs to associate with the instance used to customize your EC2 // AMI. - SecurityGroupIds []*string + SecurityGroupIds []string // The SNS topic on which to send image build events. SnsTopicArn *string diff --git a/service/imagebuilder/deserializers.go b/service/imagebuilder/deserializers.go index c3b68ffb39d..020545f6cc7 100644 --- a/service/imagebuilder/deserializers.go +++ b/service/imagebuilder/deserializers.go @@ -178,7 +178,7 @@ func awsRestjson1_deserializeOpDocumentCancelImageCreationOutput(v **CancelImage if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "imageBuildVersionArn": @@ -187,7 +187,7 @@ func awsRestjson1_deserializeOpDocumentCancelImageCreationOutput(v **CancelImage if !ok { return fmt.Errorf("expected ImageBuildVersionArn to be of type string, got %T instead", value) } - sv.ImageBuildVersionArn = &jtv + sv.ImageBuildVersionArn = ptr.String(jtv) } case "requestId": @@ -196,7 +196,7 @@ func awsRestjson1_deserializeOpDocumentCancelImageCreationOutput(v **CancelImage if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -377,7 +377,7 @@ func awsRestjson1_deserializeOpDocumentCreateComponentOutput(v **CreateComponent if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "componentBuildVersionArn": @@ -386,7 +386,7 @@ func awsRestjson1_deserializeOpDocumentCreateComponentOutput(v **CreateComponent if !ok { return fmt.Errorf("expected ComponentBuildVersionArn to be of type string, got %T instead", value) } - sv.ComponentBuildVersionArn = &jtv + sv.ComponentBuildVersionArn = ptr.String(jtv) } case "requestId": @@ -395,7 +395,7 @@ func awsRestjson1_deserializeOpDocumentCreateComponentOutput(v **CreateComponent if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -576,7 +576,7 @@ func awsRestjson1_deserializeOpDocumentCreateDistributionConfigurationOutput(v * if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "distributionConfigurationArn": @@ -585,7 +585,7 @@ func awsRestjson1_deserializeOpDocumentCreateDistributionConfigurationOutput(v * if !ok { return fmt.Errorf("expected DistributionConfigurationArn to be of type string, got %T instead", value) } - sv.DistributionConfigurationArn = &jtv + sv.DistributionConfigurationArn = ptr.String(jtv) } case "requestId": @@ -594,7 +594,7 @@ func awsRestjson1_deserializeOpDocumentCreateDistributionConfigurationOutput(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -769,7 +769,7 @@ func awsRestjson1_deserializeOpDocumentCreateImageOutput(v **CreateImageOutput, if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "imageBuildVersionArn": @@ -778,7 +778,7 @@ func awsRestjson1_deserializeOpDocumentCreateImageOutput(v **CreateImageOutput, if !ok { return fmt.Errorf("expected ImageBuildVersionArn to be of type string, got %T instead", value) } - sv.ImageBuildVersionArn = &jtv + sv.ImageBuildVersionArn = ptr.String(jtv) } case "requestId": @@ -787,7 +787,7 @@ func awsRestjson1_deserializeOpDocumentCreateImageOutput(v **CreateImageOutput, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -965,7 +965,7 @@ func awsRestjson1_deserializeOpDocumentCreateImagePipelineOutput(v **CreateImage if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "imagePipelineArn": @@ -974,7 +974,7 @@ func awsRestjson1_deserializeOpDocumentCreateImagePipelineOutput(v **CreateImage if !ok { return fmt.Errorf("expected ImagePipelineArn to be of type string, got %T instead", value) } - sv.ImagePipelineArn = &jtv + sv.ImagePipelineArn = ptr.String(jtv) } case "requestId": @@ -983,7 +983,7 @@ func awsRestjson1_deserializeOpDocumentCreateImagePipelineOutput(v **CreateImage if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -1164,7 +1164,7 @@ func awsRestjson1_deserializeOpDocumentCreateImageRecipeOutput(v **CreateImageRe if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "imageRecipeArn": @@ -1173,7 +1173,7 @@ func awsRestjson1_deserializeOpDocumentCreateImageRecipeOutput(v **CreateImageRe if !ok { return fmt.Errorf("expected ImageRecipeArn to be of type string, got %T instead", value) } - sv.ImageRecipeArn = &jtv + sv.ImageRecipeArn = ptr.String(jtv) } case "requestId": @@ -1182,7 +1182,7 @@ func awsRestjson1_deserializeOpDocumentCreateImageRecipeOutput(v **CreateImageRe if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -1360,7 +1360,7 @@ func awsRestjson1_deserializeOpDocumentCreateInfrastructureConfigurationOutput(v if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "infrastructureConfigurationArn": @@ -1369,7 +1369,7 @@ func awsRestjson1_deserializeOpDocumentCreateInfrastructureConfigurationOutput(v if !ok { return fmt.Errorf("expected InfrastructureConfigurationArn to be of type string, got %T instead", value) } - sv.InfrastructureConfigurationArn = &jtv + sv.InfrastructureConfigurationArn = ptr.String(jtv) } case "requestId": @@ -1378,7 +1378,7 @@ func awsRestjson1_deserializeOpDocumentCreateInfrastructureConfigurationOutput(v if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -1547,7 +1547,7 @@ func awsRestjson1_deserializeOpDocumentDeleteComponentOutput(v **DeleteComponent if !ok { return fmt.Errorf("expected ComponentBuildVersionArn to be of type string, got %T instead", value) } - sv.ComponentBuildVersionArn = &jtv + sv.ComponentBuildVersionArn = ptr.String(jtv) } case "requestId": @@ -1556,7 +1556,7 @@ func awsRestjson1_deserializeOpDocumentDeleteComponentOutput(v **DeleteComponent if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -1725,7 +1725,7 @@ func awsRestjson1_deserializeOpDocumentDeleteDistributionConfigurationOutput(v * if !ok { return fmt.Errorf("expected DistributionConfigurationArn to be of type string, got %T instead", value) } - sv.DistributionConfigurationArn = &jtv + sv.DistributionConfigurationArn = ptr.String(jtv) } case "requestId": @@ -1734,7 +1734,7 @@ func awsRestjson1_deserializeOpDocumentDeleteDistributionConfigurationOutput(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -1903,7 +1903,7 @@ func awsRestjson1_deserializeOpDocumentDeleteImageOutput(v **DeleteImageOutput, if !ok { return fmt.Errorf("expected ImageBuildVersionArn to be of type string, got %T instead", value) } - sv.ImageBuildVersionArn = &jtv + sv.ImageBuildVersionArn = ptr.String(jtv) } case "requestId": @@ -1912,7 +1912,7 @@ func awsRestjson1_deserializeOpDocumentDeleteImageOutput(v **DeleteImageOutput, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -2081,7 +2081,7 @@ func awsRestjson1_deserializeOpDocumentDeleteImagePipelineOutput(v **DeleteImage if !ok { return fmt.Errorf("expected ImagePipelineArn to be of type string, got %T instead", value) } - sv.ImagePipelineArn = &jtv + sv.ImagePipelineArn = ptr.String(jtv) } case "requestId": @@ -2090,7 +2090,7 @@ func awsRestjson1_deserializeOpDocumentDeleteImagePipelineOutput(v **DeleteImage if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -2259,7 +2259,7 @@ func awsRestjson1_deserializeOpDocumentDeleteImageRecipeOutput(v **DeleteImageRe if !ok { return fmt.Errorf("expected ImageRecipeArn to be of type string, got %T instead", value) } - sv.ImageRecipeArn = &jtv + sv.ImageRecipeArn = ptr.String(jtv) } case "requestId": @@ -2268,7 +2268,7 @@ func awsRestjson1_deserializeOpDocumentDeleteImageRecipeOutput(v **DeleteImageRe if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -2437,7 +2437,7 @@ func awsRestjson1_deserializeOpDocumentDeleteInfrastructureConfigurationOutput(v if !ok { return fmt.Errorf("expected InfrastructureConfigurationArn to be of type string, got %T instead", value) } - sv.InfrastructureConfigurationArn = &jtv + sv.InfrastructureConfigurationArn = ptr.String(jtv) } case "requestId": @@ -2446,7 +2446,7 @@ func awsRestjson1_deserializeOpDocumentDeleteInfrastructureConfigurationOutput(v if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -2617,7 +2617,7 @@ func awsRestjson1_deserializeOpDocumentGetComponentOutput(v **GetComponentOutput if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -2783,7 +2783,7 @@ func awsRestjson1_deserializeOpDocumentGetComponentPolicyOutput(v **GetComponent if !ok { return fmt.Errorf("expected ResourcePolicyDocument to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "requestId": @@ -2792,7 +2792,7 @@ func awsRestjson1_deserializeOpDocumentGetComponentPolicyOutput(v **GetComponent if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -2963,7 +2963,7 @@ func awsRestjson1_deserializeOpDocumentGetDistributionConfigurationOutput(v **Ge if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -3134,7 +3134,7 @@ func awsRestjson1_deserializeOpDocumentGetImageOutput(v **GetImageOutput, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -3305,7 +3305,7 @@ func awsRestjson1_deserializeOpDocumentGetImagePipelineOutput(v **GetImagePipeli if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -3471,7 +3471,7 @@ func awsRestjson1_deserializeOpDocumentGetImagePolicyOutput(v **GetImagePolicyOu if !ok { return fmt.Errorf("expected ResourcePolicyDocument to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "requestId": @@ -3480,7 +3480,7 @@ func awsRestjson1_deserializeOpDocumentGetImagePolicyOutput(v **GetImagePolicyOu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -3651,7 +3651,7 @@ func awsRestjson1_deserializeOpDocumentGetImageRecipeOutput(v **GetImageRecipeOu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -3817,7 +3817,7 @@ func awsRestjson1_deserializeOpDocumentGetImageRecipePolicyOutput(v **GetImageRe if !ok { return fmt.Errorf("expected ResourcePolicyDocument to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "requestId": @@ -3826,7 +3826,7 @@ func awsRestjson1_deserializeOpDocumentGetImageRecipePolicyOutput(v **GetImageRe if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -3997,7 +3997,7 @@ func awsRestjson1_deserializeOpDocumentGetInfrastructureConfigurationOutput(v ** if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -4175,7 +4175,7 @@ func awsRestjson1_deserializeOpDocumentImportComponentOutput(v **ImportComponent if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "componentBuildVersionArn": @@ -4184,7 +4184,7 @@ func awsRestjson1_deserializeOpDocumentImportComponentOutput(v **ImportComponent if !ok { return fmt.Errorf("expected ComponentBuildVersionArn to be of type string, got %T instead", value) } - sv.ComponentBuildVersionArn = &jtv + sv.ComponentBuildVersionArn = ptr.String(jtv) } case "requestId": @@ -4193,7 +4193,7 @@ func awsRestjson1_deserializeOpDocumentImportComponentOutput(v **ImportComponent if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -4367,7 +4367,7 @@ func awsRestjson1_deserializeOpDocumentListComponentBuildVersionsOutput(v **List if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "requestId": @@ -4376,7 +4376,7 @@ func awsRestjson1_deserializeOpDocumentListComponentBuildVersionsOutput(v **List if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -4550,7 +4550,7 @@ func awsRestjson1_deserializeOpDocumentListComponentsOutput(v **ListComponentsOu if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "requestId": @@ -4559,7 +4559,7 @@ func awsRestjson1_deserializeOpDocumentListComponentsOutput(v **ListComponentsOu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -4733,7 +4733,7 @@ func awsRestjson1_deserializeOpDocumentListDistributionConfigurationsOutput(v ** if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "requestId": @@ -4742,7 +4742,7 @@ func awsRestjson1_deserializeOpDocumentListDistributionConfigurationsOutput(v ** if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -4916,7 +4916,7 @@ func awsRestjson1_deserializeOpDocumentListImageBuildVersionsOutput(v **ListImag if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "requestId": @@ -4925,7 +4925,7 @@ func awsRestjson1_deserializeOpDocumentListImageBuildVersionsOutput(v **ListImag if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -5102,7 +5102,7 @@ func awsRestjson1_deserializeOpDocumentListImagePipelineImagesOutput(v **ListIma if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "requestId": @@ -5111,7 +5111,7 @@ func awsRestjson1_deserializeOpDocumentListImagePipelineImagesOutput(v **ListIma if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -5285,7 +5285,7 @@ func awsRestjson1_deserializeOpDocumentListImagePipelinesOutput(v **ListImagePip if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "requestId": @@ -5294,7 +5294,7 @@ func awsRestjson1_deserializeOpDocumentListImagePipelinesOutput(v **ListImagePip if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -5468,7 +5468,7 @@ func awsRestjson1_deserializeOpDocumentListImageRecipesOutput(v **ListImageRecip if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "requestId": @@ -5477,7 +5477,7 @@ func awsRestjson1_deserializeOpDocumentListImageRecipesOutput(v **ListImageRecip if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -5651,7 +5651,7 @@ func awsRestjson1_deserializeOpDocumentListImagesOutput(v **ListImagesOutput, va if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "requestId": @@ -5660,7 +5660,7 @@ func awsRestjson1_deserializeOpDocumentListImagesOutput(v **ListImagesOutput, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -5834,7 +5834,7 @@ func awsRestjson1_deserializeOpDocumentListInfrastructureConfigurationsOutput(v if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "requestId": @@ -5843,7 +5843,7 @@ func awsRestjson1_deserializeOpDocumentListInfrastructureConfigurationsOutput(v if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -6168,7 +6168,7 @@ func awsRestjson1_deserializeOpDocumentPutComponentPolicyOutput(v **PutComponent if !ok { return fmt.Errorf("expected ComponentBuildVersionArn to be of type string, got %T instead", value) } - sv.ComponentArn = &jtv + sv.ComponentArn = ptr.String(jtv) } case "requestId": @@ -6177,7 +6177,7 @@ func awsRestjson1_deserializeOpDocumentPutComponentPolicyOutput(v **PutComponent if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -6349,7 +6349,7 @@ func awsRestjson1_deserializeOpDocumentPutImagePolicyOutput(v **PutImagePolicyOu if !ok { return fmt.Errorf("expected ImageBuildVersionArn to be of type string, got %T instead", value) } - sv.ImageArn = &jtv + sv.ImageArn = ptr.String(jtv) } case "requestId": @@ -6358,7 +6358,7 @@ func awsRestjson1_deserializeOpDocumentPutImagePolicyOutput(v **PutImagePolicyOu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -6530,7 +6530,7 @@ func awsRestjson1_deserializeOpDocumentPutImageRecipePolicyOutput(v **PutImageRe if !ok { return fmt.Errorf("expected ImageRecipeArn to be of type string, got %T instead", value) } - sv.ImageRecipeArn = &jtv + sv.ImageRecipeArn = ptr.String(jtv) } case "requestId": @@ -6539,7 +6539,7 @@ func awsRestjson1_deserializeOpDocumentPutImageRecipePolicyOutput(v **PutImageRe if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -6714,7 +6714,7 @@ func awsRestjson1_deserializeOpDocumentStartImagePipelineExecutionOutput(v **Sta if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "imageBuildVersionArn": @@ -6723,7 +6723,7 @@ func awsRestjson1_deserializeOpDocumentStartImagePipelineExecutionOutput(v **Sta if !ok { return fmt.Errorf("expected ImageBuildVersionArn to be of type string, got %T instead", value) } - sv.ImageBuildVersionArn = &jtv + sv.ImageBuildVersionArn = ptr.String(jtv) } case "requestId": @@ -6732,7 +6732,7 @@ func awsRestjson1_deserializeOpDocumentStartImagePipelineExecutionOutput(v **Sta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -7085,7 +7085,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDistributionConfigurationOutput(v * if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "distributionConfigurationArn": @@ -7094,7 +7094,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDistributionConfigurationOutput(v * if !ok { return fmt.Errorf("expected DistributionConfigurationArn to be of type string, got %T instead", value) } - sv.DistributionConfigurationArn = &jtv + sv.DistributionConfigurationArn = ptr.String(jtv) } case "requestId": @@ -7103,7 +7103,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDistributionConfigurationOutput(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -7275,7 +7275,7 @@ func awsRestjson1_deserializeOpDocumentUpdateImagePipelineOutput(v **UpdateImage if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "imagePipelineArn": @@ -7284,7 +7284,7 @@ func awsRestjson1_deserializeOpDocumentUpdateImagePipelineOutput(v **UpdateImage if !ok { return fmt.Errorf("expected ImagePipelineArn to be of type string, got %T instead", value) } - sv.ImagePipelineArn = &jtv + sv.ImagePipelineArn = ptr.String(jtv) } case "requestId": @@ -7293,7 +7293,7 @@ func awsRestjson1_deserializeOpDocumentUpdateImagePipelineOutput(v **UpdateImage if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -7465,7 +7465,7 @@ func awsRestjson1_deserializeOpDocumentUpdateInfrastructureConfigurationOutput(v if !ok { return fmt.Errorf("expected ClientToken to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "infrastructureConfigurationArn": @@ -7474,7 +7474,7 @@ func awsRestjson1_deserializeOpDocumentUpdateInfrastructureConfigurationOutput(v if !ok { return fmt.Errorf("expected InfrastructureConfigurationArn to be of type string, got %T instead", value) } - sv.InfrastructureConfigurationArn = &jtv + sv.InfrastructureConfigurationArn = ptr.String(jtv) } case "requestId": @@ -7483,7 +7483,7 @@ func awsRestjson1_deserializeOpDocumentUpdateInfrastructureConfigurationOutput(v if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -8107,7 +8107,7 @@ func awsRestjson1_deserializeErrorServiceUnavailableException(response *smithyht return output } -func awsRestjson1_deserializeDocumentAccountList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAccountList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8120,21 +8120,21 @@ func awsRestjson1_deserializeDocumentAccountList(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8171,7 +8171,7 @@ func awsRestjson1_deserializeDocumentAmi(v **types.Ami, value interface{}) error if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "description": @@ -8180,7 +8180,7 @@ func awsRestjson1_deserializeDocumentAmi(v **types.Ami, value interface{}) error if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "image": @@ -8189,7 +8189,7 @@ func awsRestjson1_deserializeDocumentAmi(v **types.Ami, value interface{}) error if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Image = &jtv + sv.Image = ptr.String(jtv) } case "name": @@ -8198,7 +8198,7 @@ func awsRestjson1_deserializeDocumentAmi(v **types.Ami, value interface{}) error if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "region": @@ -8207,7 +8207,7 @@ func awsRestjson1_deserializeDocumentAmi(v **types.Ami, value interface{}) error if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "state": @@ -8257,7 +8257,7 @@ func awsRestjson1_deserializeDocumentAmiDistributionConfiguration(v **types.AmiD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "kmsKeyId": @@ -8266,7 +8266,7 @@ func awsRestjson1_deserializeDocumentAmiDistributionConfiguration(v **types.AmiD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "launchPermission": @@ -8280,7 +8280,7 @@ func awsRestjson1_deserializeDocumentAmiDistributionConfiguration(v **types.AmiD if !ok { return fmt.Errorf("expected AmiNameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "targetAccountIds": @@ -8297,7 +8297,7 @@ func awsRestjson1_deserializeDocumentAmiDistributionConfiguration(v **types.AmiD return nil } -func awsRestjson1_deserializeDocumentAmiList(v *[]*types.Ami, value interface{}) error { +func awsRestjson1_deserializeDocumentAmiList(v *[]types.Ami, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8310,18 +8310,20 @@ func awsRestjson1_deserializeDocumentAmiList(v *[]*types.Ami, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Ami + var cv []types.Ami if *v == nil { - cv = []*types.Ami{} + cv = []types.Ami{} } else { cv = *v } for _, value := range shape { - var col *types.Ami - if err := awsRestjson1_deserializeDocumentAmi(&col, value); err != nil { + var col types.Ami + destAddr := &col + if err := awsRestjson1_deserializeDocumentAmi(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8357,7 +8359,7 @@ func awsRestjson1_deserializeDocumentCallRateLimitExceededException(v **types.Ca if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8397,7 +8399,7 @@ func awsRestjson1_deserializeDocumentClientException(v **types.ClientException, if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8437,7 +8439,7 @@ func awsRestjson1_deserializeDocumentComponent(v **types.Component, value interf if !ok { return fmt.Errorf("expected ImageBuilderArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "changeDescription": @@ -8446,7 +8448,7 @@ func awsRestjson1_deserializeDocumentComponent(v **types.Component, value interf if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ChangeDescription = &jtv + sv.ChangeDescription = ptr.String(jtv) } case "data": @@ -8455,7 +8457,7 @@ func awsRestjson1_deserializeDocumentComponent(v **types.Component, value interf if !ok { return fmt.Errorf("expected ComponentData to be of type string, got %T instead", value) } - sv.Data = &jtv + sv.Data = ptr.String(jtv) } case "dateCreated": @@ -8464,7 +8466,7 @@ func awsRestjson1_deserializeDocumentComponent(v **types.Component, value interf if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateCreated = &jtv + sv.DateCreated = ptr.String(jtv) } case "description": @@ -8473,7 +8475,7 @@ func awsRestjson1_deserializeDocumentComponent(v **types.Component, value interf if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "encrypted": @@ -8482,7 +8484,7 @@ func awsRestjson1_deserializeDocumentComponent(v **types.Component, value interf if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = ptr.Bool(jtv) } case "kmsKeyId": @@ -8491,7 +8493,7 @@ func awsRestjson1_deserializeDocumentComponent(v **types.Component, value interf if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "name": @@ -8500,7 +8502,7 @@ func awsRestjson1_deserializeDocumentComponent(v **types.Component, value interf if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "owner": @@ -8509,7 +8511,7 @@ func awsRestjson1_deserializeDocumentComponent(v **types.Component, value interf if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "platform": @@ -8546,7 +8548,7 @@ func awsRestjson1_deserializeDocumentComponent(v **types.Component, value interf if !ok { return fmt.Errorf("expected VersionNumber to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -8586,7 +8588,7 @@ func awsRestjson1_deserializeDocumentComponentConfiguration(v **types.ComponentC if !ok { return fmt.Errorf("expected ComponentVersionArnOrBuildVersionArn to be of type string, got %T instead", value) } - sv.ComponentArn = &jtv + sv.ComponentArn = ptr.String(jtv) } default: @@ -8598,7 +8600,7 @@ func awsRestjson1_deserializeDocumentComponentConfiguration(v **types.ComponentC return nil } -func awsRestjson1_deserializeDocumentComponentConfigurationList(v *[]*types.ComponentConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentComponentConfigurationList(v *[]types.ComponentConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8611,18 +8613,20 @@ func awsRestjson1_deserializeDocumentComponentConfigurationList(v *[]*types.Comp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComponentConfiguration + var cv []types.ComponentConfiguration if *v == nil { - cv = []*types.ComponentConfiguration{} + cv = []types.ComponentConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.ComponentConfiguration - if err := awsRestjson1_deserializeDocumentComponentConfiguration(&col, value); err != nil { + var col types.ComponentConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentComponentConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8658,7 +8662,7 @@ func awsRestjson1_deserializeDocumentComponentSummary(v **types.ComponentSummary if !ok { return fmt.Errorf("expected ImageBuilderArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "changeDescription": @@ -8667,7 +8671,7 @@ func awsRestjson1_deserializeDocumentComponentSummary(v **types.ComponentSummary if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ChangeDescription = &jtv + sv.ChangeDescription = ptr.String(jtv) } case "dateCreated": @@ -8676,7 +8680,7 @@ func awsRestjson1_deserializeDocumentComponentSummary(v **types.ComponentSummary if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateCreated = &jtv + sv.DateCreated = ptr.String(jtv) } case "description": @@ -8685,7 +8689,7 @@ func awsRestjson1_deserializeDocumentComponentSummary(v **types.ComponentSummary if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "name": @@ -8694,7 +8698,7 @@ func awsRestjson1_deserializeDocumentComponentSummary(v **types.ComponentSummary if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "owner": @@ -8703,7 +8707,7 @@ func awsRestjson1_deserializeDocumentComponentSummary(v **types.ComponentSummary if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "platform": @@ -8740,7 +8744,7 @@ func awsRestjson1_deserializeDocumentComponentSummary(v **types.ComponentSummary if !ok { return fmt.Errorf("expected VersionNumber to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -8752,7 +8756,7 @@ func awsRestjson1_deserializeDocumentComponentSummary(v **types.ComponentSummary return nil } -func awsRestjson1_deserializeDocumentComponentSummaryList(v *[]*types.ComponentSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentComponentSummaryList(v *[]types.ComponentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8765,18 +8769,20 @@ func awsRestjson1_deserializeDocumentComponentSummaryList(v *[]*types.ComponentS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComponentSummary + var cv []types.ComponentSummary if *v == nil { - cv = []*types.ComponentSummary{} + cv = []types.ComponentSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ComponentSummary - if err := awsRestjson1_deserializeDocumentComponentSummary(&col, value); err != nil { + var col types.ComponentSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentComponentSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8812,7 +8818,7 @@ func awsRestjson1_deserializeDocumentComponentVersion(v **types.ComponentVersion if !ok { return fmt.Errorf("expected ImageBuilderArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "dateCreated": @@ -8821,7 +8827,7 @@ func awsRestjson1_deserializeDocumentComponentVersion(v **types.ComponentVersion if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateCreated = &jtv + sv.DateCreated = ptr.String(jtv) } case "description": @@ -8830,7 +8836,7 @@ func awsRestjson1_deserializeDocumentComponentVersion(v **types.ComponentVersion if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "name": @@ -8839,7 +8845,7 @@ func awsRestjson1_deserializeDocumentComponentVersion(v **types.ComponentVersion if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "owner": @@ -8848,7 +8854,7 @@ func awsRestjson1_deserializeDocumentComponentVersion(v **types.ComponentVersion if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "platform": @@ -8880,7 +8886,7 @@ func awsRestjson1_deserializeDocumentComponentVersion(v **types.ComponentVersion if !ok { return fmt.Errorf("expected VersionNumber to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -8892,7 +8898,7 @@ func awsRestjson1_deserializeDocumentComponentVersion(v **types.ComponentVersion return nil } -func awsRestjson1_deserializeDocumentComponentVersionList(v *[]*types.ComponentVersion, value interface{}) error { +func awsRestjson1_deserializeDocumentComponentVersionList(v *[]types.ComponentVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8905,18 +8911,20 @@ func awsRestjson1_deserializeDocumentComponentVersionList(v *[]*types.ComponentV return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComponentVersion + var cv []types.ComponentVersion if *v == nil { - cv = []*types.ComponentVersion{} + cv = []types.ComponentVersion{} } else { cv = *v } for _, value := range shape { - var col *types.ComponentVersion - if err := awsRestjson1_deserializeDocumentComponentVersion(&col, value); err != nil { + var col types.ComponentVersion + destAddr := &col + if err := awsRestjson1_deserializeDocumentComponentVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8962,7 +8970,7 @@ func awsRestjson1_deserializeDocumentDistribution(v **types.Distribution, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } default: @@ -9002,7 +9010,7 @@ func awsRestjson1_deserializeDocumentDistributionConfiguration(v **types.Distrib if !ok { return fmt.Errorf("expected ImageBuilderArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "dateCreated": @@ -9011,7 +9019,7 @@ func awsRestjson1_deserializeDocumentDistributionConfiguration(v **types.Distrib if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateCreated = &jtv + sv.DateCreated = ptr.String(jtv) } case "dateUpdated": @@ -9020,7 +9028,7 @@ func awsRestjson1_deserializeDocumentDistributionConfiguration(v **types.Distrib if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateUpdated = &jtv + sv.DateUpdated = ptr.String(jtv) } case "description": @@ -9029,7 +9037,7 @@ func awsRestjson1_deserializeDocumentDistributionConfiguration(v **types.Distrib if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "distributions": @@ -9043,7 +9051,7 @@ func awsRestjson1_deserializeDocumentDistributionConfiguration(v **types.Distrib if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -9101,7 +9109,7 @@ func awsRestjson1_deserializeDocumentDistributionConfigurationSummary(v **types. if !ok { return fmt.Errorf("expected ImageBuilderArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "dateCreated": @@ -9110,7 +9118,7 @@ func awsRestjson1_deserializeDocumentDistributionConfigurationSummary(v **types. if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateCreated = &jtv + sv.DateCreated = ptr.String(jtv) } case "dateUpdated": @@ -9119,7 +9127,7 @@ func awsRestjson1_deserializeDocumentDistributionConfigurationSummary(v **types. if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateUpdated = &jtv + sv.DateUpdated = ptr.String(jtv) } case "description": @@ -9128,7 +9136,7 @@ func awsRestjson1_deserializeDocumentDistributionConfigurationSummary(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "name": @@ -9137,7 +9145,7 @@ func awsRestjson1_deserializeDocumentDistributionConfigurationSummary(v **types. if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -9154,7 +9162,7 @@ func awsRestjson1_deserializeDocumentDistributionConfigurationSummary(v **types. return nil } -func awsRestjson1_deserializeDocumentDistributionConfigurationSummaryList(v *[]*types.DistributionConfigurationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDistributionConfigurationSummaryList(v *[]types.DistributionConfigurationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9167,18 +9175,20 @@ func awsRestjson1_deserializeDocumentDistributionConfigurationSummaryList(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DistributionConfigurationSummary + var cv []types.DistributionConfigurationSummary if *v == nil { - cv = []*types.DistributionConfigurationSummary{} + cv = []types.DistributionConfigurationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DistributionConfigurationSummary - if err := awsRestjson1_deserializeDocumentDistributionConfigurationSummary(&col, value); err != nil { + var col types.DistributionConfigurationSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDistributionConfigurationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9186,7 +9196,7 @@ func awsRestjson1_deserializeDocumentDistributionConfigurationSummaryList(v *[]* return nil } -func awsRestjson1_deserializeDocumentDistributionList(v *[]*types.Distribution, value interface{}) error { +func awsRestjson1_deserializeDocumentDistributionList(v *[]types.Distribution, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9199,18 +9209,20 @@ func awsRestjson1_deserializeDocumentDistributionList(v *[]*types.Distribution, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Distribution + var cv []types.Distribution if *v == nil { - cv = []*types.Distribution{} + cv = []types.Distribution{} } else { cv = *v } for _, value := range shape { - var col *types.Distribution - if err := awsRestjson1_deserializeDocumentDistribution(&col, value); err != nil { + var col types.Distribution + destAddr := &col + if err := awsRestjson1_deserializeDocumentDistribution(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9246,7 +9258,7 @@ func awsRestjson1_deserializeDocumentEbsInstanceBlockDeviceSpecification(v **typ if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.DeleteOnTermination = &jtv + sv.DeleteOnTermination = ptr.Bool(jtv) } case "encrypted": @@ -9255,7 +9267,7 @@ func awsRestjson1_deserializeDocumentEbsInstanceBlockDeviceSpecification(v **typ if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = ptr.Bool(jtv) } case "iops": @@ -9277,7 +9289,7 @@ func awsRestjson1_deserializeDocumentEbsInstanceBlockDeviceSpecification(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "snapshotId": @@ -9286,7 +9298,7 @@ func awsRestjson1_deserializeDocumentEbsInstanceBlockDeviceSpecification(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SnapshotId = &jtv + sv.SnapshotId = ptr.String(jtv) } case "volumeSize": @@ -9348,7 +9360,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9388,7 +9400,7 @@ func awsRestjson1_deserializeDocumentIdempotentParameterMismatchException(v **ty if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9428,7 +9440,7 @@ func awsRestjson1_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected ImageBuilderArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "dateCreated": @@ -9437,7 +9449,7 @@ func awsRestjson1_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateCreated = &jtv + sv.DateCreated = ptr.String(jtv) } case "distributionConfiguration": @@ -9451,7 +9463,7 @@ func awsRestjson1_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.EnhancedImageMetadataEnabled = &jtv + sv.EnhancedImageMetadataEnabled = ptr.Bool(jtv) } case "imageRecipe": @@ -9475,7 +9487,7 @@ func awsRestjson1_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "osVersion": @@ -9484,7 +9496,7 @@ func awsRestjson1_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected OsVersion to be of type string, got %T instead", value) } - sv.OsVersion = &jtv + sv.OsVersion = ptr.String(jtv) } case "outputResources": @@ -9507,7 +9519,7 @@ func awsRestjson1_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SourcePipelineArn = &jtv + sv.SourcePipelineArn = ptr.String(jtv) } case "sourcePipelineName": @@ -9516,7 +9528,7 @@ func awsRestjson1_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.SourcePipelineName = &jtv + sv.SourcePipelineName = ptr.String(jtv) } case "state": @@ -9535,7 +9547,7 @@ func awsRestjson1_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected VersionNumber to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -9575,7 +9587,7 @@ func awsRestjson1_deserializeDocumentImagePipeline(v **types.ImagePipeline, valu if !ok { return fmt.Errorf("expected ImageBuilderArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "dateCreated": @@ -9584,7 +9596,7 @@ func awsRestjson1_deserializeDocumentImagePipeline(v **types.ImagePipeline, valu if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateCreated = &jtv + sv.DateCreated = ptr.String(jtv) } case "dateLastRun": @@ -9593,7 +9605,7 @@ func awsRestjson1_deserializeDocumentImagePipeline(v **types.ImagePipeline, valu if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateLastRun = &jtv + sv.DateLastRun = ptr.String(jtv) } case "dateNextRun": @@ -9602,7 +9614,7 @@ func awsRestjson1_deserializeDocumentImagePipeline(v **types.ImagePipeline, valu if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateNextRun = &jtv + sv.DateNextRun = ptr.String(jtv) } case "dateUpdated": @@ -9611,7 +9623,7 @@ func awsRestjson1_deserializeDocumentImagePipeline(v **types.ImagePipeline, valu if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateUpdated = &jtv + sv.DateUpdated = ptr.String(jtv) } case "description": @@ -9620,7 +9632,7 @@ func awsRestjson1_deserializeDocumentImagePipeline(v **types.ImagePipeline, valu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "distributionConfigurationArn": @@ -9629,7 +9641,7 @@ func awsRestjson1_deserializeDocumentImagePipeline(v **types.ImagePipeline, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DistributionConfigurationArn = &jtv + sv.DistributionConfigurationArn = ptr.String(jtv) } case "enhancedImageMetadataEnabled": @@ -9638,7 +9650,7 @@ func awsRestjson1_deserializeDocumentImagePipeline(v **types.ImagePipeline, valu if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.EnhancedImageMetadataEnabled = &jtv + sv.EnhancedImageMetadataEnabled = ptr.Bool(jtv) } case "imageRecipeArn": @@ -9647,7 +9659,7 @@ func awsRestjson1_deserializeDocumentImagePipeline(v **types.ImagePipeline, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ImageRecipeArn = &jtv + sv.ImageRecipeArn = ptr.String(jtv) } case "imageTestsConfiguration": @@ -9661,7 +9673,7 @@ func awsRestjson1_deserializeDocumentImagePipeline(v **types.ImagePipeline, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.InfrastructureConfigurationArn = &jtv + sv.InfrastructureConfigurationArn = ptr.String(jtv) } case "name": @@ -9670,7 +9682,7 @@ func awsRestjson1_deserializeDocumentImagePipeline(v **types.ImagePipeline, valu if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "platform": @@ -9710,7 +9722,7 @@ func awsRestjson1_deserializeDocumentImagePipeline(v **types.ImagePipeline, valu return nil } -func awsRestjson1_deserializeDocumentImagePipelineList(v *[]*types.ImagePipeline, value interface{}) error { +func awsRestjson1_deserializeDocumentImagePipelineList(v *[]types.ImagePipeline, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9723,18 +9735,20 @@ func awsRestjson1_deserializeDocumentImagePipelineList(v *[]*types.ImagePipeline return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImagePipeline + var cv []types.ImagePipeline if *v == nil { - cv = []*types.ImagePipeline{} + cv = []types.ImagePipeline{} } else { cv = *v } for _, value := range shape { - var col *types.ImagePipeline - if err := awsRestjson1_deserializeDocumentImagePipeline(&col, value); err != nil { + var col types.ImagePipeline + destAddr := &col + if err := awsRestjson1_deserializeDocumentImagePipeline(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9770,7 +9784,7 @@ func awsRestjson1_deserializeDocumentImageRecipe(v **types.ImageRecipe, value in if !ok { return fmt.Errorf("expected ImageBuilderArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "blockDeviceMappings": @@ -9789,7 +9803,7 @@ func awsRestjson1_deserializeDocumentImageRecipe(v **types.ImageRecipe, value in if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateCreated = &jtv + sv.DateCreated = ptr.String(jtv) } case "description": @@ -9798,7 +9812,7 @@ func awsRestjson1_deserializeDocumentImageRecipe(v **types.ImageRecipe, value in if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "name": @@ -9807,7 +9821,7 @@ func awsRestjson1_deserializeDocumentImageRecipe(v **types.ImageRecipe, value in if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "owner": @@ -9816,7 +9830,7 @@ func awsRestjson1_deserializeDocumentImageRecipe(v **types.ImageRecipe, value in if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "parentImage": @@ -9825,7 +9839,7 @@ func awsRestjson1_deserializeDocumentImageRecipe(v **types.ImageRecipe, value in if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ParentImage = &jtv + sv.ParentImage = ptr.String(jtv) } case "platform": @@ -9848,7 +9862,7 @@ func awsRestjson1_deserializeDocumentImageRecipe(v **types.ImageRecipe, value in if !ok { return fmt.Errorf("expected VersionNumber to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "workingDirectory": @@ -9857,7 +9871,7 @@ func awsRestjson1_deserializeDocumentImageRecipe(v **types.ImageRecipe, value in if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.WorkingDirectory = &jtv + sv.WorkingDirectory = ptr.String(jtv) } default: @@ -9897,7 +9911,7 @@ func awsRestjson1_deserializeDocumentImageRecipeSummary(v **types.ImageRecipeSum if !ok { return fmt.Errorf("expected ImageBuilderArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "dateCreated": @@ -9906,7 +9920,7 @@ func awsRestjson1_deserializeDocumentImageRecipeSummary(v **types.ImageRecipeSum if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateCreated = &jtv + sv.DateCreated = ptr.String(jtv) } case "name": @@ -9915,7 +9929,7 @@ func awsRestjson1_deserializeDocumentImageRecipeSummary(v **types.ImageRecipeSum if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "owner": @@ -9924,7 +9938,7 @@ func awsRestjson1_deserializeDocumentImageRecipeSummary(v **types.ImageRecipeSum if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "parentImage": @@ -9933,7 +9947,7 @@ func awsRestjson1_deserializeDocumentImageRecipeSummary(v **types.ImageRecipeSum if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ParentImage = &jtv + sv.ParentImage = ptr.String(jtv) } case "platform": @@ -9959,7 +9973,7 @@ func awsRestjson1_deserializeDocumentImageRecipeSummary(v **types.ImageRecipeSum return nil } -func awsRestjson1_deserializeDocumentImageRecipeSummaryList(v *[]*types.ImageRecipeSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentImageRecipeSummaryList(v *[]types.ImageRecipeSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9972,18 +9986,20 @@ func awsRestjson1_deserializeDocumentImageRecipeSummaryList(v *[]*types.ImageRec return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImageRecipeSummary + var cv []types.ImageRecipeSummary if *v == nil { - cv = []*types.ImageRecipeSummary{} + cv = []types.ImageRecipeSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ImageRecipeSummary - if err := awsRestjson1_deserializeDocumentImageRecipeSummary(&col, value); err != nil { + var col types.ImageRecipeSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentImageRecipeSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10019,7 +10035,7 @@ func awsRestjson1_deserializeDocumentImageState(v **types.ImageState, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "status": @@ -10068,7 +10084,7 @@ func awsRestjson1_deserializeDocumentImageSummary(v **types.ImageSummary, value if !ok { return fmt.Errorf("expected ImageBuilderArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "dateCreated": @@ -10077,7 +10093,7 @@ func awsRestjson1_deserializeDocumentImageSummary(v **types.ImageSummary, value if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateCreated = &jtv + sv.DateCreated = ptr.String(jtv) } case "name": @@ -10086,7 +10102,7 @@ func awsRestjson1_deserializeDocumentImageSummary(v **types.ImageSummary, value if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "osVersion": @@ -10095,7 +10111,7 @@ func awsRestjson1_deserializeDocumentImageSummary(v **types.ImageSummary, value if !ok { return fmt.Errorf("expected OsVersion to be of type string, got %T instead", value) } - sv.OsVersion = &jtv + sv.OsVersion = ptr.String(jtv) } case "outputResources": @@ -10109,7 +10125,7 @@ func awsRestjson1_deserializeDocumentImageSummary(v **types.ImageSummary, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "platform": @@ -10137,7 +10153,7 @@ func awsRestjson1_deserializeDocumentImageSummary(v **types.ImageSummary, value if !ok { return fmt.Errorf("expected VersionNumber to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -10149,7 +10165,7 @@ func awsRestjson1_deserializeDocumentImageSummary(v **types.ImageSummary, value return nil } -func awsRestjson1_deserializeDocumentImageSummaryList(v *[]*types.ImageSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentImageSummaryList(v *[]types.ImageSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10162,18 +10178,20 @@ func awsRestjson1_deserializeDocumentImageSummaryList(v *[]*types.ImageSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImageSummary + var cv []types.ImageSummary if *v == nil { - cv = []*types.ImageSummary{} + cv = []types.ImageSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ImageSummary - if err := awsRestjson1_deserializeDocumentImageSummary(&col, value); err != nil { + var col types.ImageSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentImageSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10209,7 +10227,7 @@ func awsRestjson1_deserializeDocumentImageTestsConfiguration(v **types.ImageTest if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.ImageTestsEnabled = &jtv + sv.ImageTestsEnabled = ptr.Bool(jtv) } case "timeoutMinutes": @@ -10262,7 +10280,7 @@ func awsRestjson1_deserializeDocumentImageVersion(v **types.ImageVersion, value if !ok { return fmt.Errorf("expected ImageBuilderArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "dateCreated": @@ -10271,7 +10289,7 @@ func awsRestjson1_deserializeDocumentImageVersion(v **types.ImageVersion, value if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateCreated = &jtv + sv.DateCreated = ptr.String(jtv) } case "name": @@ -10280,7 +10298,7 @@ func awsRestjson1_deserializeDocumentImageVersion(v **types.ImageVersion, value if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "osVersion": @@ -10289,7 +10307,7 @@ func awsRestjson1_deserializeDocumentImageVersion(v **types.ImageVersion, value if !ok { return fmt.Errorf("expected OsVersion to be of type string, got %T instead", value) } - sv.OsVersion = &jtv + sv.OsVersion = ptr.String(jtv) } case "owner": @@ -10298,7 +10316,7 @@ func awsRestjson1_deserializeDocumentImageVersion(v **types.ImageVersion, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "platform": @@ -10316,7 +10334,7 @@ func awsRestjson1_deserializeDocumentImageVersion(v **types.ImageVersion, value if !ok { return fmt.Errorf("expected VersionNumber to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -10328,7 +10346,7 @@ func awsRestjson1_deserializeDocumentImageVersion(v **types.ImageVersion, value return nil } -func awsRestjson1_deserializeDocumentImageVersionList(v *[]*types.ImageVersion, value interface{}) error { +func awsRestjson1_deserializeDocumentImageVersionList(v *[]types.ImageVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10341,18 +10359,20 @@ func awsRestjson1_deserializeDocumentImageVersionList(v *[]*types.ImageVersion, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImageVersion + var cv []types.ImageVersion if *v == nil { - cv = []*types.ImageVersion{} + cv = []types.ImageVersion{} } else { cv = *v } for _, value := range shape { - var col *types.ImageVersion - if err := awsRestjson1_deserializeDocumentImageVersion(&col, value); err != nil { + var col types.ImageVersion + destAddr := &col + if err := awsRestjson1_deserializeDocumentImageVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10388,7 +10408,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfiguration(v **types.Infra if !ok { return fmt.Errorf("expected ImageBuilderArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "dateCreated": @@ -10397,7 +10417,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfiguration(v **types.Infra if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateCreated = &jtv + sv.DateCreated = ptr.String(jtv) } case "dateUpdated": @@ -10406,7 +10426,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfiguration(v **types.Infra if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateUpdated = &jtv + sv.DateUpdated = ptr.String(jtv) } case "description": @@ -10415,7 +10435,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfiguration(v **types.Infra if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "instanceProfileName": @@ -10424,7 +10444,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfiguration(v **types.Infra if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceProfileName = &jtv + sv.InstanceProfileName = ptr.String(jtv) } case "instanceTypes": @@ -10438,7 +10458,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfiguration(v **types.Infra if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KeyPair = &jtv + sv.KeyPair = ptr.String(jtv) } case "logging": @@ -10452,7 +10472,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfiguration(v **types.Infra if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceTags": @@ -10471,7 +10491,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfiguration(v **types.Infra if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SnsTopicArn = &jtv + sv.SnsTopicArn = ptr.String(jtv) } case "subnetId": @@ -10480,7 +10500,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfiguration(v **types.Infra if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "tags": @@ -10494,7 +10514,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfiguration(v **types.Infra if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.TerminateInstanceOnFailure = &jtv + sv.TerminateInstanceOnFailure = ptr.Bool(jtv) } default: @@ -10534,7 +10554,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfigurationSummary(v **type if !ok { return fmt.Errorf("expected ImageBuilderArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "dateCreated": @@ -10543,7 +10563,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfigurationSummary(v **type if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateCreated = &jtv + sv.DateCreated = ptr.String(jtv) } case "dateUpdated": @@ -10552,7 +10572,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfigurationSummary(v **type if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.DateUpdated = &jtv + sv.DateUpdated = ptr.String(jtv) } case "description": @@ -10561,7 +10581,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfigurationSummary(v **type if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "name": @@ -10570,7 +10590,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfigurationSummary(v **type if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceTags": @@ -10592,7 +10612,7 @@ func awsRestjson1_deserializeDocumentInfrastructureConfigurationSummary(v **type return nil } -func awsRestjson1_deserializeDocumentInfrastructureConfigurationSummaryList(v *[]*types.InfrastructureConfigurationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentInfrastructureConfigurationSummaryList(v *[]types.InfrastructureConfigurationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10605,18 +10625,20 @@ func awsRestjson1_deserializeDocumentInfrastructureConfigurationSummaryList(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InfrastructureConfigurationSummary + var cv []types.InfrastructureConfigurationSummary if *v == nil { - cv = []*types.InfrastructureConfigurationSummary{} + cv = []types.InfrastructureConfigurationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.InfrastructureConfigurationSummary - if err := awsRestjson1_deserializeDocumentInfrastructureConfigurationSummary(&col, value); err != nil { + var col types.InfrastructureConfigurationSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentInfrastructureConfigurationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10652,7 +10674,7 @@ func awsRestjson1_deserializeDocumentInstanceBlockDeviceMapping(v **types.Instan if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DeviceName = &jtv + sv.DeviceName = ptr.String(jtv) } case "ebs": @@ -10666,7 +10688,7 @@ func awsRestjson1_deserializeDocumentInstanceBlockDeviceMapping(v **types.Instan if !ok { return fmt.Errorf("expected EmptyString to be of type string, got %T instead", value) } - sv.NoDevice = &jtv + sv.NoDevice = ptr.String(jtv) } case "virtualName": @@ -10675,7 +10697,7 @@ func awsRestjson1_deserializeDocumentInstanceBlockDeviceMapping(v **types.Instan if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VirtualName = &jtv + sv.VirtualName = ptr.String(jtv) } default: @@ -10687,7 +10709,7 @@ func awsRestjson1_deserializeDocumentInstanceBlockDeviceMapping(v **types.Instan return nil } -func awsRestjson1_deserializeDocumentInstanceBlockDeviceMappings(v *[]*types.InstanceBlockDeviceMapping, value interface{}) error { +func awsRestjson1_deserializeDocumentInstanceBlockDeviceMappings(v *[]types.InstanceBlockDeviceMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10700,18 +10722,20 @@ func awsRestjson1_deserializeDocumentInstanceBlockDeviceMappings(v *[]*types.Ins return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceBlockDeviceMapping + var cv []types.InstanceBlockDeviceMapping if *v == nil { - cv = []*types.InstanceBlockDeviceMapping{} + cv = []types.InstanceBlockDeviceMapping{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceBlockDeviceMapping - if err := awsRestjson1_deserializeDocumentInstanceBlockDeviceMapping(&col, value); err != nil { + var col types.InstanceBlockDeviceMapping + destAddr := &col + if err := awsRestjson1_deserializeDocumentInstanceBlockDeviceMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10719,7 +10743,7 @@ func awsRestjson1_deserializeDocumentInstanceBlockDeviceMappings(v *[]*types.Ins return nil } -func awsRestjson1_deserializeDocumentInstanceTypeList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentInstanceTypeList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10732,21 +10756,21 @@ func awsRestjson1_deserializeDocumentInstanceTypeList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected InstanceType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10783,7 +10807,7 @@ func awsRestjson1_deserializeDocumentInvalidPaginationTokenException(v **types.I if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10823,7 +10847,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterCombinationException(v **ty if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10863,7 +10887,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10903,7 +10927,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10943,7 +10967,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10983,7 +11007,7 @@ func awsRestjson1_deserializeDocumentInvalidVersionNumberException(v **types.Inv if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11036,7 +11060,7 @@ func awsRestjson1_deserializeDocumentLaunchPermissionConfiguration(v **types.Lau return nil } -func awsRestjson1_deserializeDocumentLicenseConfigurationArnList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentLicenseConfigurationArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11049,21 +11073,21 @@ func awsRestjson1_deserializeDocumentLicenseConfigurationArnList(v *[]*string, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected LicenseConfigurationArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11108,7 +11132,7 @@ func awsRestjson1_deserializeDocumentLogging(v **types.Logging, value interface{ return nil } -func awsRestjson1_deserializeDocumentOsVersionList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentOsVersionList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11121,21 +11145,21 @@ func awsRestjson1_deserializeDocumentOsVersionList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected OsVersion to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11208,7 +11232,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11248,7 +11272,7 @@ func awsRestjson1_deserializeDocumentResourceDependencyException(v **types.Resou if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11288,7 +11312,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11328,7 +11352,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11340,7 +11364,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentResourceTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11353,21 +11377,21 @@ func awsRestjson1_deserializeDocumentResourceTagMap(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -11404,7 +11428,7 @@ func awsRestjson1_deserializeDocumentS3Logs(v **types.S3Logs, value interface{}) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "s3KeyPrefix": @@ -11413,7 +11437,7 @@ func awsRestjson1_deserializeDocumentS3Logs(v **types.S3Logs, value interface{}) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.S3KeyPrefix = &jtv + sv.S3KeyPrefix = ptr.String(jtv) } default: @@ -11462,7 +11486,7 @@ func awsRestjson1_deserializeDocumentSchedule(v **types.Schedule, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } default: @@ -11474,7 +11498,7 @@ func awsRestjson1_deserializeDocumentSchedule(v **types.Schedule, value interfac return nil } -func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11487,21 +11511,21 @@ func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11538,7 +11562,7 @@ func awsRestjson1_deserializeDocumentServiceException(v **types.ServiceException if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11578,7 +11602,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11618,7 +11642,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11630,7 +11654,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi return nil } -func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11643,21 +11667,21 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11666,7 +11690,7 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11679,21 +11703,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal diff --git a/service/imagebuilder/go.mod b/service/imagebuilder/go.mod index d23d085d1b1..6a0a7054642 100644 --- a/service/imagebuilder/go.mod +++ b/service/imagebuilder/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/imagebuilder go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/imagebuilder/serializers.go b/service/imagebuilder/serializers.go index 4c8186c5e00..908992a05c4 100644 --- a/service/imagebuilder/serializers.go +++ b/service/imagebuilder/serializers.go @@ -1884,9 +1884,9 @@ func awsRestjson1_serializeOpDocumentListComponentBuildVersionsInput(v *ListComp ok.String(*v.ComponentVersionArn) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1969,9 +1969,9 @@ func awsRestjson1_serializeOpDocumentListComponentsInput(v *ListComponentsInput, } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2059,9 +2059,9 @@ func awsRestjson1_serializeOpDocumentListDistributionConfigurationsInput(v *List } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2149,9 +2149,9 @@ func awsRestjson1_serializeOpDocumentListImageBuildVersionsInput(v *ListImageBui ok.String(*v.ImageVersionArn) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2239,9 +2239,9 @@ func awsRestjson1_serializeOpDocumentListImagePipelineImagesInput(v *ListImagePi ok.String(*v.ImagePipelineArn) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2324,9 +2324,9 @@ func awsRestjson1_serializeOpDocumentListImagePipelinesInput(v *ListImagePipelin } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2409,9 +2409,9 @@ func awsRestjson1_serializeOpDocumentListImageRecipesInput(v *ListImageRecipesIn } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2499,9 +2499,9 @@ func awsRestjson1_serializeOpDocumentListImagesInput(v *ListImagesInput, value s } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2589,9 +2589,9 @@ func awsRestjson1_serializeOpDocumentListInfrastructureConfigurationsInput(v *Li } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2653,13 +2653,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3042,13 +3039,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3122,13 +3116,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3136,10 +3127,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -3494,17 +3482,13 @@ func awsRestjson1_serializeOpDocumentUpdateInfrastructureConfigurationInput(v *U return nil } -func awsRestjson1_serializeDocumentAccountList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAccountList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3564,17 +3548,13 @@ func awsRestjson1_serializeDocumentComponentConfiguration(v *types.ComponentConf return nil } -func awsRestjson1_serializeDocumentComponentConfigurationList(v []*types.ComponentConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentComponentConfigurationList(v []types.ComponentConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentComponentConfiguration(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentComponentConfiguration(&v[i], av); err != nil { return err } } @@ -3607,17 +3587,13 @@ func awsRestjson1_serializeDocumentDistribution(v *types.Distribution, value smi return nil } -func awsRestjson1_serializeDocumentDistributionList(v []*types.Distribution, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDistributionList(v []types.Distribution, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDistribution(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDistribution(&v[i], av); err != nil { return err } } @@ -3685,34 +3661,26 @@ func awsRestjson1_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentFilterList(v []*types.Filter, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentFilterValues(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3763,34 +3731,26 @@ func awsRestjson1_serializeDocumentInstanceBlockDeviceMapping(v *types.InstanceB return nil } -func awsRestjson1_serializeDocumentInstanceBlockDeviceMappings(v []*types.InstanceBlockDeviceMapping, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentInstanceBlockDeviceMappings(v []types.InstanceBlockDeviceMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInstanceBlockDeviceMapping(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInstanceBlockDeviceMapping(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentInstanceTypeList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentInstanceTypeList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3816,17 +3776,13 @@ func awsRestjson1_serializeDocumentLaunchPermissionConfiguration(v *types.Launch return nil } -func awsRestjson1_serializeDocumentLicenseConfigurationArnList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLicenseConfigurationArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3845,32 +3801,24 @@ func awsRestjson1_serializeDocumentLogging(v *types.Logging, value smithyjson.Va return nil } -func awsRestjson1_serializeDocumentOsVersionList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentOsVersionList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentResourceTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourceTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3909,47 +3857,35 @@ func awsRestjson1_serializeDocumentSchedule(v *types.Schedule, value smithyjson. return nil } -func awsRestjson1_serializeDocumentSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentStringList(v []*string, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/imagebuilder/types/types.go b/service/imagebuilder/types/types.go index a9de91e5fde..b42c3f0a0aa 100644 --- a/service/imagebuilder/types/types.go +++ b/service/imagebuilder/types/types.go @@ -28,7 +28,7 @@ type Ami struct { type AmiDistributionConfiguration struct { // The tags to apply to AMIs distributed to this Region. - AmiTags map[string]*string + AmiTags map[string]string // The description of the distribution configuration. Minimum and maximum length // are in characters. @@ -45,7 +45,7 @@ type AmiDistributionConfiguration struct { Name *string // The ID of an account to which you want to distribute an image. - TargetAccountIds []*string + TargetAccountIds []string } // A detailed view of a component. @@ -84,10 +84,10 @@ type Component struct { // The operating system (OS) version supported by the component. If the OS // information is available, a prefix match is performed against the parent image // OS version during image recipe creation. - SupportedOsVersions []*string + SupportedOsVersions []string // The tags associated with the component. - Tags map[string]*string + Tags map[string]string // The type of the component denotes whether the component is used to build the // image or only to test it. @@ -133,10 +133,10 @@ type ComponentSummary struct { // The operating system (OS) version supported by the component. If the OS // information is available, a prefix match is performed against the parent image // OS version during image recipe creation. - SupportedOsVersions []*string + SupportedOsVersions []string // The tags associated with the component. - Tags map[string]*string + Tags map[string]string // The type of the component denotes whether the component is used to build the // image or only to test it. @@ -170,7 +170,7 @@ type ComponentVersion struct { // The operating system (OS) version supported by the component. If the OS // information is available, a prefix match is performed against the parent image // OS version during image recipe creation. - SupportedOsVersions []*string + SupportedOsVersions []string // The type of the component denotes whether the component is used to build the // image or only to test it. @@ -193,7 +193,7 @@ type Distribution struct { // The License Manager Configuration to associate with the AMI in the specified // Region. - LicenseConfigurationArns []*string + LicenseConfigurationArns []string } // A distribution configuration. @@ -217,13 +217,13 @@ type DistributionConfiguration struct { Description *string // The distributions of the distribution configuration. - Distributions []*Distribution + Distributions []Distribution // The name of the distribution configuration. Name *string // The tags of the distribution configuration. - Tags map[string]*string + Tags map[string]string } // A high-level overview of a distribution configuration. @@ -245,7 +245,7 @@ type DistributionConfigurationSummary struct { Name *string // The tags associated with the distribution configuration. - Tags map[string]*string + Tags map[string]string } // Amazon EBS-specific block device mapping specifications. @@ -282,7 +282,7 @@ type Filter struct { Name *string // The filter values. Filter values are case-sensitive. - Values []*string + Values []string } // An image build version. @@ -334,7 +334,7 @@ type Image struct { State *ImageState // The tags of the image. - Tags map[string]*string + Tags map[string]string // The semantic version of the image. Version *string @@ -394,7 +394,7 @@ type ImagePipeline struct { Status PipelineStatus // The tags of this image pipeline. - Tags map[string]*string + Tags map[string]string } // An image recipe. @@ -404,10 +404,10 @@ type ImageRecipe struct { Arn *string // The block device mappings to apply when creating images from this recipe. - BlockDeviceMappings []*InstanceBlockDeviceMapping + BlockDeviceMappings []InstanceBlockDeviceMapping // The components of the image recipe. - Components []*ComponentConfiguration + Components []ComponentConfiguration // The date on which this image recipe was created. DateCreated *string @@ -428,7 +428,7 @@ type ImageRecipe struct { Platform Platform // The tags of the image recipe. - Tags map[string]*string + Tags map[string]string // The version of the image recipe. Version *string @@ -459,7 +459,7 @@ type ImageRecipeSummary struct { Platform Platform // The tags of the image recipe. - Tags map[string]*string + Tags map[string]string } // Image state shows the image status and the reason for that status. @@ -501,7 +501,7 @@ type ImageSummary struct { State *ImageState // The tags of the image. - Tags map[string]*string + Tags map[string]string // The version of the image. Version *string @@ -562,7 +562,7 @@ type InfrastructureConfiguration struct { InstanceProfileName *string // The instance types of the infrastructure configuration. - InstanceTypes []*string + InstanceTypes []string // The EC2 key pair of the infrastructure configuration. KeyPair *string @@ -574,10 +574,10 @@ type InfrastructureConfiguration struct { Name *string // The tags attached to the resource created by Image Builder. - ResourceTags map[string]*string + ResourceTags map[string]string // The security group IDs of the infrastructure configuration. - SecurityGroupIds []*string + SecurityGroupIds []string // The SNS topic Amazon Resource Name (ARN) of the infrastructure configuration. SnsTopicArn *string @@ -586,7 +586,7 @@ type InfrastructureConfiguration struct { SubnetId *string // The tags of the infrastructure configuration. - Tags map[string]*string + Tags map[string]string // The terminate instance on failure configuration of the infrastructure // configuration. @@ -612,10 +612,10 @@ type InfrastructureConfigurationSummary struct { Name *string // The tags attached to the image created by Image Builder. - ResourceTags map[string]*string + ResourceTags map[string]string // The tags of the infrastructure configuration. - Tags map[string]*string + Tags map[string]string } // Defines block device mappings for the instance used to configure your image. @@ -644,10 +644,10 @@ type InstanceBlockDeviceMapping struct { type LaunchPermissionConfiguration struct { // The name of the group. - UserGroups []*string + UserGroups []string // The AWS account ID. - UserIds []*string + UserIds []string } // Logging configuration defines where Image Builder uploads your logs. @@ -661,7 +661,7 @@ type Logging struct { type OutputResources struct { // The EC2 AMIs created by this image. - Amis []*Ami + Amis []Ami } // Amazon S3 logging configuration. diff --git a/service/imagebuilder/validators.go b/service/imagebuilder/validators.go index fd49241ff37..9e9e1ebf831 100644 --- a/service/imagebuilder/validators.go +++ b/service/imagebuilder/validators.go @@ -889,13 +889,13 @@ func validateComponentConfiguration(v *types.ComponentConfiguration) error { } } -func validateComponentConfigurationList(v []*types.ComponentConfiguration) error { +func validateComponentConfigurationList(v []types.ComponentConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ComponentConfigurationList"} for i := range v { - if err := validateComponentConfiguration(v[i]); err != nil { + if err := validateComponentConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -921,13 +921,13 @@ func validateDistribution(v *types.Distribution) error { } } -func validateDistributionList(v []*types.Distribution) error { +func validateDistributionList(v []types.Distribution) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DistributionList"} for i := range v { - if err := validateDistribution(v[i]); err != nil { + if err := validateDistribution(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/inspector/api_op_AddAttributesToFindings.go b/service/inspector/api_op_AddAttributesToFindings.go index 961f7ba1f5d..0a69762a8fc 100644 --- a/service/inspector/api_op_AddAttributesToFindings.go +++ b/service/inspector/api_op_AddAttributesToFindings.go @@ -33,12 +33,12 @@ type AddAttributesToFindingsInput struct { // The array of attributes that you want to assign to specified findings. // // This member is required. - Attributes []*types.Attribute + Attributes []types.Attribute // The ARNs that specify the findings that you want to assign attributes to. // // This member is required. - FindingArns []*string + FindingArns []string } type AddAttributesToFindingsOutput struct { @@ -47,7 +47,7 @@ type AddAttributesToFindingsOutput struct { // failed item. // // This member is required. - FailedItems map[string]*types.FailedItemDetails + FailedItems map[string]types.FailedItemDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/inspector/api_op_CreateAssessmentTemplate.go b/service/inspector/api_op_CreateAssessmentTemplate.go index 349837f0c65..c60a3b8f055 100644 --- a/service/inspector/api_op_CreateAssessmentTemplate.go +++ b/service/inspector/api_op_CreateAssessmentTemplate.go @@ -51,19 +51,19 @@ type CreateAssessmentTemplateInput struct { // The duration of the assessment run in seconds. // // This member is required. - DurationInSeconds *int32 + DurationInSeconds int32 // The ARNs that specify the rules packages that you want to attach to the // assessment template. // // This member is required. - RulesPackageArns []*string + RulesPackageArns []string // The user-defined attributes that are assigned to every finding that is generated // by the assessment run that uses this assessment template. An attribute is a key // and value pair (an Attribute object). Within an assessment template, each key // must be unique. - UserAttributesForFindings []*types.Attribute + UserAttributesForFindings []types.Attribute } type CreateAssessmentTemplateOutput struct { diff --git a/service/inspector/api_op_CreateResourceGroup.go b/service/inspector/api_op_CreateResourceGroup.go index ee40d361716..299e6462b08 100644 --- a/service/inspector/api_op_CreateResourceGroup.go +++ b/service/inspector/api_op_CreateResourceGroup.go @@ -37,7 +37,7 @@ type CreateResourceGroupInput struct { // For example,'[{"key":"Name","values":["TestEC2Instance"]}]'. // // This member is required. - ResourceGroupTags []*types.ResourceGroupTag + ResourceGroupTags []types.ResourceGroupTag } type CreateResourceGroupOutput struct { diff --git a/service/inspector/api_op_DescribeAssessmentRuns.go b/service/inspector/api_op_DescribeAssessmentRuns.go index cdfa0427cdd..f1751b28d1d 100644 --- a/service/inspector/api_op_DescribeAssessmentRuns.go +++ b/service/inspector/api_op_DescribeAssessmentRuns.go @@ -33,7 +33,7 @@ type DescribeAssessmentRunsInput struct { // The ARN that specifies the assessment run that you want to describe. // // This member is required. - AssessmentRunArns []*string + AssessmentRunArns []string } type DescribeAssessmentRunsOutput struct { @@ -41,13 +41,13 @@ type DescribeAssessmentRunsOutput struct { // Information about the assessment run. // // This member is required. - AssessmentRuns []*types.AssessmentRun + AssessmentRuns []types.AssessmentRun // Assessment run details that cannot be described. An error code is provided for // each failed item. // // This member is required. - FailedItems map[string]*types.FailedItemDetails + FailedItems map[string]types.FailedItemDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/inspector/api_op_DescribeAssessmentTargets.go b/service/inspector/api_op_DescribeAssessmentTargets.go index 1efb43d8dcf..335bbf7643d 100644 --- a/service/inspector/api_op_DescribeAssessmentTargets.go +++ b/service/inspector/api_op_DescribeAssessmentTargets.go @@ -33,7 +33,7 @@ type DescribeAssessmentTargetsInput struct { // The ARNs that specifies the assessment targets that you want to describe. // // This member is required. - AssessmentTargetArns []*string + AssessmentTargetArns []string } type DescribeAssessmentTargetsOutput struct { @@ -41,13 +41,13 @@ type DescribeAssessmentTargetsOutput struct { // Information about the assessment targets. // // This member is required. - AssessmentTargets []*types.AssessmentTarget + AssessmentTargets []types.AssessmentTarget // Assessment target details that cannot be described. An error code is provided // for each failed item. // // This member is required. - FailedItems map[string]*types.FailedItemDetails + FailedItems map[string]types.FailedItemDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/inspector/api_op_DescribeAssessmentTemplates.go b/service/inspector/api_op_DescribeAssessmentTemplates.go index 70f34de59e3..d8e9e59c7f8 100644 --- a/service/inspector/api_op_DescribeAssessmentTemplates.go +++ b/service/inspector/api_op_DescribeAssessmentTemplates.go @@ -29,7 +29,7 @@ func (c *Client) DescribeAssessmentTemplates(ctx context.Context, params *Descri } type DescribeAssessmentTemplatesInput struct { - AssessmentTemplateArns []*string + AssessmentTemplateArns []string } type DescribeAssessmentTemplatesOutput struct { @@ -37,13 +37,13 @@ type DescribeAssessmentTemplatesOutput struct { // Information about the assessment templates. // // This member is required. - AssessmentTemplates []*types.AssessmentTemplate + AssessmentTemplates []types.AssessmentTemplate // Assessment template details that cannot be described. An error code is provided // for each failed item. // // This member is required. - FailedItems map[string]*types.FailedItemDetails + FailedItems map[string]types.FailedItemDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/inspector/api_op_DescribeExclusions.go b/service/inspector/api_op_DescribeExclusions.go index 2d4efb0a69a..45d9eee4913 100644 --- a/service/inspector/api_op_DescribeExclusions.go +++ b/service/inspector/api_op_DescribeExclusions.go @@ -32,7 +32,7 @@ type DescribeExclusionsInput struct { // The list of ARNs that specify the exclusions that you want to describe. // // This member is required. - ExclusionArns []*string + ExclusionArns []string // The locale into which you want to translate the exclusion's title, description, // and recommendation. @@ -44,13 +44,13 @@ type DescribeExclusionsOutput struct { // Information about the exclusions. // // This member is required. - Exclusions map[string]*types.Exclusion + Exclusions map[string]types.Exclusion // Exclusion details that cannot be described. An error code is provided for each // failed item. // // This member is required. - FailedItems map[string]*types.FailedItemDetails + FailedItems map[string]types.FailedItemDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/inspector/api_op_DescribeFindings.go b/service/inspector/api_op_DescribeFindings.go index dd10d55fd95..545d985df5a 100644 --- a/service/inspector/api_op_DescribeFindings.go +++ b/service/inspector/api_op_DescribeFindings.go @@ -32,7 +32,7 @@ type DescribeFindingsInput struct { // The ARN that specifies the finding that you want to describe. // // This member is required. - FindingArns []*string + FindingArns []string // The locale into which you want to translate a finding description, // recommendation, and the short description that identifies the finding. @@ -45,12 +45,12 @@ type DescribeFindingsOutput struct { // failed item. // // This member is required. - FailedItems map[string]*types.FailedItemDetails + FailedItems map[string]types.FailedItemDetails // Information about the finding. // // This member is required. - Findings []*types.Finding + Findings []types.Finding // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/inspector/api_op_DescribeResourceGroups.go b/service/inspector/api_op_DescribeResourceGroups.go index 43be3d14ea9..55b17a9e695 100644 --- a/service/inspector/api_op_DescribeResourceGroups.go +++ b/service/inspector/api_op_DescribeResourceGroups.go @@ -33,7 +33,7 @@ type DescribeResourceGroupsInput struct { // The ARN that specifies the resource group that you want to describe. // // This member is required. - ResourceGroupArns []*string + ResourceGroupArns []string } type DescribeResourceGroupsOutput struct { @@ -42,12 +42,12 @@ type DescribeResourceGroupsOutput struct { // each failed item. // // This member is required. - FailedItems map[string]*types.FailedItemDetails + FailedItems map[string]types.FailedItemDetails // Information about a resource group. // // This member is required. - ResourceGroups []*types.ResourceGroup + ResourceGroups []types.ResourceGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/inspector/api_op_DescribeRulesPackages.go b/service/inspector/api_op_DescribeRulesPackages.go index ada5574846d..24fce4c8d48 100644 --- a/service/inspector/api_op_DescribeRulesPackages.go +++ b/service/inspector/api_op_DescribeRulesPackages.go @@ -33,7 +33,7 @@ type DescribeRulesPackagesInput struct { // The ARN that specifies the rules package that you want to describe. // // This member is required. - RulesPackageArns []*string + RulesPackageArns []string // The locale that you want to translate a rules package description into. Locale types.Locale @@ -45,12 +45,12 @@ type DescribeRulesPackagesOutput struct { // each failed item. // // This member is required. - FailedItems map[string]*types.FailedItemDetails + FailedItems map[string]types.FailedItemDetails // Information about the rules package. // // This member is required. - RulesPackages []*types.RulesPackage + RulesPackages []types.RulesPackage // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/inspector/api_op_GetExclusionsPreview.go b/service/inspector/api_op_GetExclusionsPreview.go index 6ccaf8a0537..f47e67edc68 100644 --- a/service/inspector/api_op_GetExclusionsPreview.go +++ b/service/inspector/api_op_GetExclusionsPreview.go @@ -65,7 +65,7 @@ type GetExclusionsPreviewOutput struct { PreviewStatus types.PreviewStatus // Information about the exclusions included in the preview. - ExclusionPreviews []*types.ExclusionPreview + ExclusionPreviews []types.ExclusionPreview // When a response is generated, if there is more data to be listed, this // parameters is present in the response and contains the value to use for the diff --git a/service/inspector/api_op_GetTelemetryMetadata.go b/service/inspector/api_op_GetTelemetryMetadata.go index 0f1b435da1b..cfdad365ae6 100644 --- a/service/inspector/api_op_GetTelemetryMetadata.go +++ b/service/inspector/api_op_GetTelemetryMetadata.go @@ -41,7 +41,7 @@ type GetTelemetryMetadataOutput struct { // Telemetry details. // // This member is required. - TelemetryMetadata []*types.TelemetryMetadata + TelemetryMetadata []types.TelemetryMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/inspector/api_op_ListAssessmentRunAgents.go b/service/inspector/api_op_ListAssessmentRunAgents.go index 5f09e0c5c7f..0d04e6af82a 100644 --- a/service/inspector/api_op_ListAssessmentRunAgents.go +++ b/service/inspector/api_op_ListAssessmentRunAgents.go @@ -57,7 +57,7 @@ type ListAssessmentRunAgentsOutput struct { // A list of ARNs that specifies the agents returned by the action. // // This member is required. - AssessmentRunAgents []*types.AssessmentRunAgent + AssessmentRunAgents []types.AssessmentRunAgent // When a response is generated, if there is more data to be listed, this parameter // is present in the response and contains the value to use for the nextToken diff --git a/service/inspector/api_op_ListAssessmentRuns.go b/service/inspector/api_op_ListAssessmentRuns.go index bd3cb387104..6db9d55aa02 100644 --- a/service/inspector/api_op_ListAssessmentRuns.go +++ b/service/inspector/api_op_ListAssessmentRuns.go @@ -32,7 +32,7 @@ type ListAssessmentRunsInput struct { // The ARNs that specify the assessment templates whose assessment runs you want to // list. - AssessmentTemplateArns []*string + AssessmentTemplateArns []string // You can use this parameter to specify a subset of data to be included in the // action's response. For a record to match a filter, all specified filter @@ -57,7 +57,7 @@ type ListAssessmentRunsOutput struct { // action. // // This member is required. - AssessmentRunArns []*string + AssessmentRunArns []string // When a response is generated, if there is more data to be listed, this parameter // is present in the response and contains the value to use for the nextToken diff --git a/service/inspector/api_op_ListAssessmentTargets.go b/service/inspector/api_op_ListAssessmentTargets.go index c77038026c9..bc1b4b42c38 100644 --- a/service/inspector/api_op_ListAssessmentTargets.go +++ b/service/inspector/api_op_ListAssessmentTargets.go @@ -54,7 +54,7 @@ type ListAssessmentTargetsOutput struct { // action. // // This member is required. - AssessmentTargetArns []*string + AssessmentTargetArns []string // When a response is generated, if there is more data to be listed, this parameter // is present in the response and contains the value to use for the nextToken diff --git a/service/inspector/api_op_ListAssessmentTemplates.go b/service/inspector/api_op_ListAssessmentTemplates.go index 0d8071b8426..5b32bd24e98 100644 --- a/service/inspector/api_op_ListAssessmentTemplates.go +++ b/service/inspector/api_op_ListAssessmentTemplates.go @@ -32,7 +32,7 @@ type ListAssessmentTemplatesInput struct { // A list of ARNs that specifies the assessment targets whose assessment templates // you want to list. - AssessmentTargetArns []*string + AssessmentTargetArns []string // You can use this parameter to specify a subset of data to be included in the // action's response. For a record to match a filter, all specified filter @@ -56,7 +56,7 @@ type ListAssessmentTemplatesOutput struct { // A list of ARNs that specifies the assessment templates returned by the action. // // This member is required. - AssessmentTemplateArns []*string + AssessmentTemplateArns []string // When a response is generated, if there is more data to be listed, this parameter // is present in the response and contains the value to use for the nextToken diff --git a/service/inspector/api_op_ListEventSubscriptions.go b/service/inspector/api_op_ListEventSubscriptions.go index 6acc54aa431..1dc6474de46 100644 --- a/service/inspector/api_op_ListEventSubscriptions.go +++ b/service/inspector/api_op_ListEventSubscriptions.go @@ -51,7 +51,7 @@ type ListEventSubscriptionsOutput struct { // Details of the returned event subscriptions. // // This member is required. - Subscriptions []*types.Subscription + Subscriptions []types.Subscription // When a response is generated, if there is more data to be listed, this parameter // is present in the response and contains the value to use for the nextToken diff --git a/service/inspector/api_op_ListExclusions.go b/service/inspector/api_op_ListExclusions.go index e23d82c4a0f..e3ccd4bdab8 100644 --- a/service/inspector/api_op_ListExclusions.go +++ b/service/inspector/api_op_ListExclusions.go @@ -50,7 +50,7 @@ type ListExclusionsOutput struct { // A list of exclusions' ARNs returned by the action. // // This member is required. - ExclusionArns []*string + ExclusionArns []string // When a response is generated, if there is more data to be listed, this // parameters is present in the response and contains the value to use for the diff --git a/service/inspector/api_op_ListFindings.go b/service/inspector/api_op_ListFindings.go index 1517b4eb1cb..df1b58438d5 100644 --- a/service/inspector/api_op_ListFindings.go +++ b/service/inspector/api_op_ListFindings.go @@ -32,7 +32,7 @@ type ListFindingsInput struct { // The ARNs of the assessment runs that generate the findings that you want to // list. - AssessmentRunArns []*string + AssessmentRunArns []string // You can use this parameter to specify a subset of data to be included in the // action's response. For a record to match a filter, all specified filter @@ -56,7 +56,7 @@ type ListFindingsOutput struct { // A list of ARNs that specifies the findings returned by the action. // // This member is required. - FindingArns []*string + FindingArns []string // When a response is generated, if there is more data to be listed, this parameter // is present in the response and contains the value to use for the nextToken diff --git a/service/inspector/api_op_ListRulesPackages.go b/service/inspector/api_op_ListRulesPackages.go index 36d09934dd5..5d6516dbe0d 100644 --- a/service/inspector/api_op_ListRulesPackages.go +++ b/service/inspector/api_op_ListRulesPackages.go @@ -44,7 +44,7 @@ type ListRulesPackagesOutput struct { // The list of ARNs that specifies the rules packages returned by the action. // // This member is required. - RulesPackageArns []*string + RulesPackageArns []string // When a response is generated, if there is more data to be listed, this parameter // is present in the response and contains the value to use for the nextToken diff --git a/service/inspector/api_op_ListTagsForResource.go b/service/inspector/api_op_ListTagsForResource.go index 2c03ccb41ae..c2b5a7f5beb 100644 --- a/service/inspector/api_op_ListTagsForResource.go +++ b/service/inspector/api_op_ListTagsForResource.go @@ -40,7 +40,7 @@ type ListTagsForResourceOutput struct { // A collection of key and value pairs. // // This member is required. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/inspector/api_op_PreviewAgents.go b/service/inspector/api_op_PreviewAgents.go index 9b40c1b0b90..f3de280cc44 100644 --- a/service/inspector/api_op_PreviewAgents.go +++ b/service/inspector/api_op_PreviewAgents.go @@ -51,7 +51,7 @@ type PreviewAgentsOutput struct { // The resulting list of agents. // // This member is required. - AgentPreviews []*types.AgentPreview + AgentPreviews []types.AgentPreview // When a response is generated, if there is more data to be listed, this parameter // is present in the response and contains the value to use for the nextToken diff --git a/service/inspector/api_op_RemoveAttributesFromFindings.go b/service/inspector/api_op_RemoveAttributesFromFindings.go index 55fcf7b5375..ba93110d4b8 100644 --- a/service/inspector/api_op_RemoveAttributesFromFindings.go +++ b/service/inspector/api_op_RemoveAttributesFromFindings.go @@ -34,12 +34,12 @@ type RemoveAttributesFromFindingsInput struct { // The array of attribute keys that you want to remove from specified findings. // // This member is required. - AttributeKeys []*string + AttributeKeys []string // The ARNs that specify the findings that you want to remove attributes from. // // This member is required. - FindingArns []*string + FindingArns []string } type RemoveAttributesFromFindingsOutput struct { @@ -48,7 +48,7 @@ type RemoveAttributesFromFindingsOutput struct { // failed item. // // This member is required. - FailedItems map[string]*types.FailedItemDetails + FailedItems map[string]types.FailedItemDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/inspector/api_op_SetTagsForResource.go b/service/inspector/api_op_SetTagsForResource.go index 08bf7c4c4f1..e3cf1f0e107 100644 --- a/service/inspector/api_op_SetTagsForResource.go +++ b/service/inspector/api_op_SetTagsForResource.go @@ -37,7 +37,7 @@ type SetTagsForResourceInput struct { // A collection of key and value pairs that you want to set to the assessment // template. - Tags []*types.Tag + Tags []types.Tag } type SetTagsForResourceOutput struct { diff --git a/service/inspector/deserializers.go b/service/inspector/deserializers.go index 4a8de74118f..3a87a3005b4 100644 --- a/service/inspector/deserializers.go +++ b/service/inspector/deserializers.go @@ -4908,7 +4908,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.CanRetry = &jtv + sv.CanRetry = ptr.Bool(jtv) } case "errorCode": @@ -4926,7 +4926,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4966,7 +4966,7 @@ func awsAwsjson11_deserializeDocumentAgentAlreadyRunningAssessment(v **types.Age if !ok { return fmt.Errorf("expected AgentId to be of type string, got %T instead", value) } - sv.AgentId = &jtv + sv.AgentId = ptr.String(jtv) } case "assessmentRunArn": @@ -4975,7 +4975,7 @@ func awsAwsjson11_deserializeDocumentAgentAlreadyRunningAssessment(v **types.Age if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssessmentRunArn = &jtv + sv.AssessmentRunArn = ptr.String(jtv) } default: @@ -4987,7 +4987,7 @@ func awsAwsjson11_deserializeDocumentAgentAlreadyRunningAssessment(v **types.Age return nil } -func awsAwsjson11_deserializeDocumentAgentAlreadyRunningAssessmentList(v *[]*types.AgentAlreadyRunningAssessment, value interface{}) error { +func awsAwsjson11_deserializeDocumentAgentAlreadyRunningAssessmentList(v *[]types.AgentAlreadyRunningAssessment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5000,18 +5000,20 @@ func awsAwsjson11_deserializeDocumentAgentAlreadyRunningAssessmentList(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AgentAlreadyRunningAssessment + var cv []types.AgentAlreadyRunningAssessment if *v == nil { - cv = []*types.AgentAlreadyRunningAssessment{} + cv = []types.AgentAlreadyRunningAssessment{} } else { cv = *v } for _, value := range shape { - var col *types.AgentAlreadyRunningAssessment - if err := awsAwsjson11_deserializeDocumentAgentAlreadyRunningAssessment(&col, value); err != nil { + var col types.AgentAlreadyRunningAssessment + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAgentAlreadyRunningAssessment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5056,7 +5058,7 @@ func awsAwsjson11_deserializeDocumentAgentPreview(v **types.AgentPreview, value if !ok { return fmt.Errorf("expected AgentId to be of type string, got %T instead", value) } - sv.AgentId = &jtv + sv.AgentId = ptr.String(jtv) } case "agentVersion": @@ -5065,7 +5067,7 @@ func awsAwsjson11_deserializeDocumentAgentPreview(v **types.AgentPreview, value if !ok { return fmt.Errorf("expected AgentVersion to be of type string, got %T instead", value) } - sv.AgentVersion = &jtv + sv.AgentVersion = ptr.String(jtv) } case "autoScalingGroup": @@ -5074,7 +5076,7 @@ func awsAwsjson11_deserializeDocumentAgentPreview(v **types.AgentPreview, value if !ok { return fmt.Errorf("expected AutoScalingGroup to be of type string, got %T instead", value) } - sv.AutoScalingGroup = &jtv + sv.AutoScalingGroup = ptr.String(jtv) } case "hostname": @@ -5083,7 +5085,7 @@ func awsAwsjson11_deserializeDocumentAgentPreview(v **types.AgentPreview, value if !ok { return fmt.Errorf("expected Hostname to be of type string, got %T instead", value) } - sv.Hostname = &jtv + sv.Hostname = ptr.String(jtv) } case "ipv4Address": @@ -5092,7 +5094,7 @@ func awsAwsjson11_deserializeDocumentAgentPreview(v **types.AgentPreview, value if !ok { return fmt.Errorf("expected Ipv4Address to be of type string, got %T instead", value) } - sv.Ipv4Address = &jtv + sv.Ipv4Address = ptr.String(jtv) } case "kernelVersion": @@ -5101,7 +5103,7 @@ func awsAwsjson11_deserializeDocumentAgentPreview(v **types.AgentPreview, value if !ok { return fmt.Errorf("expected KernelVersion to be of type string, got %T instead", value) } - sv.KernelVersion = &jtv + sv.KernelVersion = ptr.String(jtv) } case "operatingSystem": @@ -5110,7 +5112,7 @@ func awsAwsjson11_deserializeDocumentAgentPreview(v **types.AgentPreview, value if !ok { return fmt.Errorf("expected OperatingSystem to be of type string, got %T instead", value) } - sv.OperatingSystem = &jtv + sv.OperatingSystem = ptr.String(jtv) } default: @@ -5122,7 +5124,7 @@ func awsAwsjson11_deserializeDocumentAgentPreview(v **types.AgentPreview, value return nil } -func awsAwsjson11_deserializeDocumentAgentPreviewList(v *[]*types.AgentPreview, value interface{}) error { +func awsAwsjson11_deserializeDocumentAgentPreviewList(v *[]types.AgentPreview, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5135,18 +5137,20 @@ func awsAwsjson11_deserializeDocumentAgentPreviewList(v *[]*types.AgentPreview, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AgentPreview + var cv []types.AgentPreview if *v == nil { - cv = []*types.AgentPreview{} + cv = []types.AgentPreview{} } else { cv = *v } for _, value := range shape { - var col *types.AgentPreview - if err := awsAwsjson11_deserializeDocumentAgentPreview(&col, value); err != nil { + var col types.AgentPreview + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAgentPreview(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5187,7 +5191,7 @@ func awsAwsjson11_deserializeDocumentAgentsAlreadyRunningAssessmentException(v * if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.AgentsTruncated = &jtv + sv.AgentsTruncated = ptr.Bool(jtv) } case "canRetry": @@ -5196,7 +5200,7 @@ func awsAwsjson11_deserializeDocumentAgentsAlreadyRunningAssessmentException(v * if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.CanRetry = &jtv + sv.CanRetry = ptr.Bool(jtv) } case "message": @@ -5205,7 +5209,7 @@ func awsAwsjson11_deserializeDocumentAgentsAlreadyRunningAssessmentException(v * if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5217,7 +5221,7 @@ func awsAwsjson11_deserializeDocumentAgentsAlreadyRunningAssessmentException(v * return nil } -func awsAwsjson11_deserializeDocumentAssessmentRulesPackageArnList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssessmentRulesPackageArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5230,21 +5234,21 @@ func awsAwsjson11_deserializeDocumentAssessmentRulesPackageArnList(v *[]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -5281,7 +5285,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRun(v **types.AssessmentRun, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "assessmentTemplateArn": @@ -5290,7 +5294,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRun(v **types.AssessmentRun, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssessmentTemplateArn = &jtv + sv.AssessmentTemplateArn = ptr.String(jtv) } case "completedAt": @@ -5325,7 +5329,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRun(v **types.AssessmentRun, valu if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.DataCollected = &jtv + sv.DataCollected = ptr.Bool(jtv) } case "durationInSeconds": @@ -5338,7 +5342,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRun(v **types.AssessmentRun, valu if err != nil { return err } - sv.DurationInSeconds = ptr.Int32(int32(i64)) + sv.DurationInSeconds = int32(i64) } case "findingCounts": @@ -5352,7 +5356,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRun(v **types.AssessmentRun, valu if !ok { return fmt.Errorf("expected AssessmentRunName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "notifications": @@ -5465,7 +5469,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunAgent(v **types.AssessmentRunA if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.AgentHealthDetails = &jtv + sv.AgentHealthDetails = ptr.String(jtv) } case "agentId": @@ -5474,7 +5478,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunAgent(v **types.AssessmentRunA if !ok { return fmt.Errorf("expected AgentId to be of type string, got %T instead", value) } - sv.AgentId = &jtv + sv.AgentId = ptr.String(jtv) } case "assessmentRunArn": @@ -5483,7 +5487,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunAgent(v **types.AssessmentRunA if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssessmentRunArn = &jtv + sv.AssessmentRunArn = ptr.String(jtv) } case "autoScalingGroup": @@ -5492,7 +5496,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunAgent(v **types.AssessmentRunA if !ok { return fmt.Errorf("expected AutoScalingGroup to be of type string, got %T instead", value) } - sv.AutoScalingGroup = &jtv + sv.AutoScalingGroup = ptr.String(jtv) } case "telemetryMetadata": @@ -5509,7 +5513,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunAgent(v **types.AssessmentRunA return nil } -func awsAwsjson11_deserializeDocumentAssessmentRunAgentList(v *[]*types.AssessmentRunAgent, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssessmentRunAgentList(v *[]types.AssessmentRunAgent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5522,18 +5526,20 @@ func awsAwsjson11_deserializeDocumentAssessmentRunAgentList(v *[]*types.Assessme return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssessmentRunAgent + var cv []types.AssessmentRunAgent if *v == nil { - cv = []*types.AssessmentRunAgent{} + cv = []types.AssessmentRunAgent{} } else { cv = *v } for _, value := range shape { - var col *types.AssessmentRunAgent - if err := awsAwsjson11_deserializeDocumentAssessmentRunAgent(&col, value); err != nil { + var col types.AssessmentRunAgent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAssessmentRunAgent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5541,7 +5547,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunAgentList(v *[]*types.Assessme return nil } -func awsAwsjson11_deserializeDocumentAssessmentRunFindingCounts(v *map[string]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssessmentRunFindingCounts(v *map[string]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5554,15 +5560,15 @@ func awsAwsjson11_deserializeDocumentAssessmentRunFindingCounts(v *map[string]*i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*int32 + var mv map[string]int32 if *v == nil { - mv = map[string]*int32{} + mv = map[string]int32{} } else { mv = *v } for key, value := range shape { - var parsedVal *int32 + var parsedVal int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -5572,7 +5578,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunFindingCounts(v *map[string]*i if err != nil { return err } - parsedVal = ptr.Int32(int32(i64)) + parsedVal = int32(i64) } mv[key] = parsedVal @@ -5581,7 +5587,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunFindingCounts(v *map[string]*i return nil } -func awsAwsjson11_deserializeDocumentAssessmentRunInProgressArnList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssessmentRunInProgressArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5594,21 +5600,21 @@ func awsAwsjson11_deserializeDocumentAssessmentRunInProgressArnList(v *[]*string return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -5650,7 +5656,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunInProgressException(v **types. if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.AssessmentRunArnsTruncated = &jtv + sv.AssessmentRunArnsTruncated = ptr.Bool(jtv) } case "canRetry": @@ -5659,7 +5665,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunInProgressException(v **types. if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.CanRetry = &jtv + sv.CanRetry = ptr.Bool(jtv) } case "message": @@ -5668,7 +5674,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunInProgressException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5680,7 +5686,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunInProgressException(v **types. return nil } -func awsAwsjson11_deserializeDocumentAssessmentRunList(v *[]*types.AssessmentRun, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssessmentRunList(v *[]types.AssessmentRun, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5693,18 +5699,20 @@ func awsAwsjson11_deserializeDocumentAssessmentRunList(v *[]*types.AssessmentRun return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssessmentRun + var cv []types.AssessmentRun if *v == nil { - cv = []*types.AssessmentRun{} + cv = []types.AssessmentRun{} } else { cv = *v } for _, value := range shape { - var col *types.AssessmentRun - if err := awsAwsjson11_deserializeDocumentAssessmentRun(&col, value); err != nil { + var col types.AssessmentRun + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAssessmentRun(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5753,7 +5761,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunNotification(v **types.Assessm if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.Bool(jtv) } case "event": @@ -5771,7 +5779,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunNotification(v **types.Assessm if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "snsPublishStatusCode": @@ -5789,7 +5797,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunNotification(v **types.Assessm if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SnsTopicArn = &jtv + sv.SnsTopicArn = ptr.String(jtv) } default: @@ -5801,7 +5809,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunNotification(v **types.Assessm return nil } -func awsAwsjson11_deserializeDocumentAssessmentRunNotificationList(v *[]*types.AssessmentRunNotification, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssessmentRunNotificationList(v *[]types.AssessmentRunNotification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5814,18 +5822,20 @@ func awsAwsjson11_deserializeDocumentAssessmentRunNotificationList(v *[]*types.A return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssessmentRunNotification + var cv []types.AssessmentRunNotification if *v == nil { - cv = []*types.AssessmentRunNotification{} + cv = []types.AssessmentRunNotification{} } else { cv = *v } for _, value := range shape { - var col *types.AssessmentRunNotification - if err := awsAwsjson11_deserializeDocumentAssessmentRunNotification(&col, value); err != nil { + var col types.AssessmentRunNotification + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAssessmentRunNotification(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5886,7 +5896,7 @@ func awsAwsjson11_deserializeDocumentAssessmentRunStateChange(v **types.Assessme return nil } -func awsAwsjson11_deserializeDocumentAssessmentRunStateChangeList(v *[]*types.AssessmentRunStateChange, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssessmentRunStateChangeList(v *[]types.AssessmentRunStateChange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5899,18 +5909,20 @@ func awsAwsjson11_deserializeDocumentAssessmentRunStateChangeList(v *[]*types.As return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssessmentRunStateChange + var cv []types.AssessmentRunStateChange if *v == nil { - cv = []*types.AssessmentRunStateChange{} + cv = []types.AssessmentRunStateChange{} } else { cv = *v } for _, value := range shape { - var col *types.AssessmentRunStateChange - if err := awsAwsjson11_deserializeDocumentAssessmentRunStateChange(&col, value); err != nil { + var col types.AssessmentRunStateChange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAssessmentRunStateChange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5946,7 +5958,7 @@ func awsAwsjson11_deserializeDocumentAssessmentTarget(v **types.AssessmentTarget if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -5968,7 +5980,7 @@ func awsAwsjson11_deserializeDocumentAssessmentTarget(v **types.AssessmentTarget if !ok { return fmt.Errorf("expected AssessmentTargetName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceGroupArn": @@ -5977,7 +5989,7 @@ func awsAwsjson11_deserializeDocumentAssessmentTarget(v **types.AssessmentTarget if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ResourceGroupArn = &jtv + sv.ResourceGroupArn = ptr.String(jtv) } case "updatedAt": @@ -6002,7 +6014,7 @@ func awsAwsjson11_deserializeDocumentAssessmentTarget(v **types.AssessmentTarget return nil } -func awsAwsjson11_deserializeDocumentAssessmentTargetList(v *[]*types.AssessmentTarget, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssessmentTargetList(v *[]types.AssessmentTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6015,18 +6027,20 @@ func awsAwsjson11_deserializeDocumentAssessmentTargetList(v *[]*types.Assessment return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssessmentTarget + var cv []types.AssessmentTarget if *v == nil { - cv = []*types.AssessmentTarget{} + cv = []types.AssessmentTarget{} } else { cv = *v } for _, value := range shape { - var col *types.AssessmentTarget - if err := awsAwsjson11_deserializeDocumentAssessmentTarget(&col, value); err != nil { + var col types.AssessmentTarget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAssessmentTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6062,7 +6076,7 @@ func awsAwsjson11_deserializeDocumentAssessmentTemplate(v **types.AssessmentTemp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "assessmentRunCount": @@ -6084,7 +6098,7 @@ func awsAwsjson11_deserializeDocumentAssessmentTemplate(v **types.AssessmentTemp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssessmentTargetArn = &jtv + sv.AssessmentTargetArn = ptr.String(jtv) } case "createdAt": @@ -6110,7 +6124,7 @@ func awsAwsjson11_deserializeDocumentAssessmentTemplate(v **types.AssessmentTemp if err != nil { return err } - sv.DurationInSeconds = ptr.Int32(int32(i64)) + sv.DurationInSeconds = int32(i64) } case "lastAssessmentRunArn": @@ -6119,7 +6133,7 @@ func awsAwsjson11_deserializeDocumentAssessmentTemplate(v **types.AssessmentTemp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.LastAssessmentRunArn = &jtv + sv.LastAssessmentRunArn = ptr.String(jtv) } case "name": @@ -6128,7 +6142,7 @@ func awsAwsjson11_deserializeDocumentAssessmentTemplate(v **types.AssessmentTemp if !ok { return fmt.Errorf("expected AssessmentTemplateName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "rulesPackageArns": @@ -6150,7 +6164,7 @@ func awsAwsjson11_deserializeDocumentAssessmentTemplate(v **types.AssessmentTemp return nil } -func awsAwsjson11_deserializeDocumentAssessmentTemplateList(v *[]*types.AssessmentTemplate, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssessmentTemplateList(v *[]types.AssessmentTemplate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6163,18 +6177,20 @@ func awsAwsjson11_deserializeDocumentAssessmentTemplateList(v *[]*types.Assessme return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssessmentTemplate + var cv []types.AssessmentTemplate if *v == nil { - cv = []*types.AssessmentTemplate{} + cv = []types.AssessmentTemplate{} } else { cv = *v } for _, value := range shape { - var col *types.AssessmentTemplate - if err := awsAwsjson11_deserializeDocumentAssessmentTemplate(&col, value); err != nil { + var col types.AssessmentTemplate + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAssessmentTemplate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6182,7 +6198,7 @@ func awsAwsjson11_deserializeDocumentAssessmentTemplateList(v *[]*types.Assessme return nil } -func awsAwsjson11_deserializeDocumentAssessmentTemplateRulesPackageArnList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssessmentTemplateRulesPackageArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6195,21 +6211,21 @@ func awsAwsjson11_deserializeDocumentAssessmentTemplateRulesPackageArnList(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -6246,7 +6262,7 @@ func awsAwsjson11_deserializeDocumentAssetAttributes(v **types.AssetAttributes, if !ok { return fmt.Errorf("expected AgentId to be of type string, got %T instead", value) } - sv.AgentId = &jtv + sv.AgentId = ptr.String(jtv) } case "amiId": @@ -6255,7 +6271,7 @@ func awsAwsjson11_deserializeDocumentAssetAttributes(v **types.AssetAttributes, if !ok { return fmt.Errorf("expected AmiId to be of type string, got %T instead", value) } - sv.AmiId = &jtv + sv.AmiId = ptr.String(jtv) } case "autoScalingGroup": @@ -6264,7 +6280,7 @@ func awsAwsjson11_deserializeDocumentAssetAttributes(v **types.AssetAttributes, if !ok { return fmt.Errorf("expected AutoScalingGroup to be of type string, got %T instead", value) } - sv.AutoScalingGroup = &jtv + sv.AutoScalingGroup = ptr.String(jtv) } case "hostname": @@ -6273,7 +6289,7 @@ func awsAwsjson11_deserializeDocumentAssetAttributes(v **types.AssetAttributes, if !ok { return fmt.Errorf("expected Hostname to be of type string, got %T instead", value) } - sv.Hostname = &jtv + sv.Hostname = ptr.String(jtv) } case "ipv4Addresses": @@ -6296,7 +6312,7 @@ func awsAwsjson11_deserializeDocumentAssetAttributes(v **types.AssetAttributes, if err != nil { return err } - sv.SchemaVersion = ptr.Int32(int32(i64)) + sv.SchemaVersion = int32(i64) } case "tags": @@ -6341,7 +6357,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf if !ok { return fmt.Errorf("expected AttributeKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -6350,7 +6366,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6362,7 +6378,7 @@ func awsAwsjson11_deserializeDocumentAttribute(v **types.Attribute, value interf return nil } -func awsAwsjson11_deserializeDocumentAttributeList(v *[]*types.Attribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttributeList(v *[]types.Attribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6375,18 +6391,20 @@ func awsAwsjson11_deserializeDocumentAttributeList(v *[]*types.Attribute, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Attribute + var cv []types.Attribute if *v == nil { - cv = []*types.Attribute{} + cv = []types.Attribute{} } else { cv = *v } for _, value := range shape { - var col *types.Attribute - if err := awsAwsjson11_deserializeDocumentAttribute(&col, value); err != nil { + var col types.Attribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6447,7 +6465,7 @@ func awsAwsjson11_deserializeDocumentEventSubscription(v **types.EventSubscripti return nil } -func awsAwsjson11_deserializeDocumentEventSubscriptionList(v *[]*types.EventSubscription, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventSubscriptionList(v *[]types.EventSubscription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6460,18 +6478,20 @@ func awsAwsjson11_deserializeDocumentEventSubscriptionList(v *[]*types.EventSubs return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventSubscription + var cv []types.EventSubscription if *v == nil { - cv = []*types.EventSubscription{} + cv = []types.EventSubscription{} } else { cv = *v } for _, value := range shape { - var col *types.EventSubscription - if err := awsAwsjson11_deserializeDocumentEventSubscription(&col, value); err != nil { + var col types.EventSubscription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventSubscription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6507,7 +6527,7 @@ func awsAwsjson11_deserializeDocumentExclusion(v **types.Exclusion, value interf if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "attributes": @@ -6521,7 +6541,7 @@ func awsAwsjson11_deserializeDocumentExclusion(v **types.Exclusion, value interf if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "recommendation": @@ -6530,7 +6550,7 @@ func awsAwsjson11_deserializeDocumentExclusion(v **types.Exclusion, value interf if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.Recommendation = &jtv + sv.Recommendation = ptr.String(jtv) } case "scopes": @@ -6544,7 +6564,7 @@ func awsAwsjson11_deserializeDocumentExclusion(v **types.Exclusion, value interf if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } default: @@ -6556,7 +6576,7 @@ func awsAwsjson11_deserializeDocumentExclusion(v **types.Exclusion, value interf return nil } -func awsAwsjson11_deserializeDocumentExclusionMap(v *map[string]*types.Exclusion, value interface{}) error { +func awsAwsjson11_deserializeDocumentExclusionMap(v *map[string]types.Exclusion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6569,18 +6589,21 @@ func awsAwsjson11_deserializeDocumentExclusionMap(v *map[string]*types.Exclusion return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.Exclusion + var mv map[string]types.Exclusion if *v == nil { - mv = map[string]*types.Exclusion{} + mv = map[string]types.Exclusion{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.Exclusion - if err := awsAwsjson11_deserializeDocumentExclusion(&parsedVal, value); err != nil { + var parsedVal types.Exclusion + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentExclusion(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -6621,7 +6644,7 @@ func awsAwsjson11_deserializeDocumentExclusionPreview(v **types.ExclusionPreview if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "recommendation": @@ -6630,7 +6653,7 @@ func awsAwsjson11_deserializeDocumentExclusionPreview(v **types.ExclusionPreview if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.Recommendation = &jtv + sv.Recommendation = ptr.String(jtv) } case "scopes": @@ -6644,7 +6667,7 @@ func awsAwsjson11_deserializeDocumentExclusionPreview(v **types.ExclusionPreview if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } default: @@ -6656,7 +6679,7 @@ func awsAwsjson11_deserializeDocumentExclusionPreview(v **types.ExclusionPreview return nil } -func awsAwsjson11_deserializeDocumentExclusionPreviewList(v *[]*types.ExclusionPreview, value interface{}) error { +func awsAwsjson11_deserializeDocumentExclusionPreviewList(v *[]types.ExclusionPreview, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6669,18 +6692,20 @@ func awsAwsjson11_deserializeDocumentExclusionPreviewList(v *[]*types.ExclusionP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExclusionPreview + var cv []types.ExclusionPreview if *v == nil { - cv = []*types.ExclusionPreview{} + cv = []types.ExclusionPreview{} } else { cv = *v } for _, value := range shape { - var col *types.ExclusionPreview - if err := awsAwsjson11_deserializeDocumentExclusionPreview(&col, value); err != nil { + var col types.ExclusionPreview + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExclusionPreview(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6725,7 +6750,7 @@ func awsAwsjson11_deserializeDocumentFailedItemDetails(v **types.FailedItemDetai if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.Retryable = &jtv + sv.Retryable = ptr.Bool(jtv) } default: @@ -6737,7 +6762,7 @@ func awsAwsjson11_deserializeDocumentFailedItemDetails(v **types.FailedItemDetai return nil } -func awsAwsjson11_deserializeDocumentFailedItems(v *map[string]*types.FailedItemDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedItems(v *map[string]types.FailedItemDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6750,18 +6775,21 @@ func awsAwsjson11_deserializeDocumentFailedItems(v *map[string]*types.FailedItem return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.FailedItemDetails + var mv map[string]types.FailedItemDetails if *v == nil { - mv = map[string]*types.FailedItemDetails{} + mv = map[string]types.FailedItemDetails{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.FailedItemDetails - if err := awsAwsjson11_deserializeDocumentFailedItemDetails(&parsedVal, value); err != nil { + var parsedVal types.FailedItemDetails + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentFailedItemDetails(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -6797,7 +6825,7 @@ func awsAwsjson11_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "assetAttributes": @@ -6829,7 +6857,7 @@ func awsAwsjson11_deserializeDocumentFinding(v **types.Finding, value interface{ if err != nil { return err } - sv.Confidence = ptr.Int32(int32(i64)) + sv.Confidence = int32(i64) } case "createdAt": @@ -6851,7 +6879,7 @@ func awsAwsjson11_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -6860,7 +6888,7 @@ func awsAwsjson11_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected FindingId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "indicatorOfCompromise": @@ -6869,7 +6897,7 @@ func awsAwsjson11_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.IndicatorOfCompromise = &jtv + sv.IndicatorOfCompromise = ptr.Bool(jtv) } case "numericSeverity": @@ -6882,7 +6910,7 @@ func awsAwsjson11_deserializeDocumentFinding(v **types.Finding, value interface{ if err != nil { return err } - sv.NumericSeverity = &f64 + sv.NumericSeverity = f64 } case "recommendation": @@ -6891,7 +6919,7 @@ func awsAwsjson11_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.Recommendation = &jtv + sv.Recommendation = ptr.String(jtv) } case "schemaVersion": @@ -6904,7 +6932,7 @@ func awsAwsjson11_deserializeDocumentFinding(v **types.Finding, value interface{ if err != nil { return err } - sv.SchemaVersion = ptr.Int32(int32(i64)) + sv.SchemaVersion = int32(i64) } case "service": @@ -6913,7 +6941,7 @@ func awsAwsjson11_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.Service = &jtv + sv.Service = ptr.String(jtv) } case "serviceAttributes": @@ -6936,7 +6964,7 @@ func awsAwsjson11_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } case "updatedAt": @@ -6966,7 +6994,7 @@ func awsAwsjson11_deserializeDocumentFinding(v **types.Finding, value interface{ return nil } -func awsAwsjson11_deserializeDocumentFindingList(v *[]*types.Finding, value interface{}) error { +func awsAwsjson11_deserializeDocumentFindingList(v *[]types.Finding, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6979,18 +7007,20 @@ func awsAwsjson11_deserializeDocumentFindingList(v *[]*types.Finding, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Finding + var cv []types.Finding if *v == nil { - cv = []*types.Finding{} + cv = []types.Finding{} } else { cv = *v } for _, value := range shape { - var col *types.Finding - if err := awsAwsjson11_deserializeDocumentFinding(&col, value); err != nil { + var col types.Finding + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFinding(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7026,7 +7056,7 @@ func awsAwsjson11_deserializeDocumentInspectorServiceAttributes(v **types.Inspec if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssessmentRunArn = &jtv + sv.AssessmentRunArn = ptr.String(jtv) } case "rulesPackageArn": @@ -7035,7 +7065,7 @@ func awsAwsjson11_deserializeDocumentInspectorServiceAttributes(v **types.Inspec if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RulesPackageArn = &jtv + sv.RulesPackageArn = ptr.String(jtv) } case "schemaVersion": @@ -7048,7 +7078,7 @@ func awsAwsjson11_deserializeDocumentInspectorServiceAttributes(v **types.Inspec if err != nil { return err } - sv.SchemaVersion = ptr.Int32(int32(i64)) + sv.SchemaVersion = int32(i64) } default: @@ -7088,7 +7118,7 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.CanRetry = &jtv + sv.CanRetry = ptr.Bool(jtv) } case "message": @@ -7097,7 +7127,7 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7137,7 +7167,7 @@ func awsAwsjson11_deserializeDocumentInvalidCrossAccountRoleException(v **types. if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.CanRetry = &jtv + sv.CanRetry = ptr.Bool(jtv) } case "errorCode": @@ -7155,7 +7185,7 @@ func awsAwsjson11_deserializeDocumentInvalidCrossAccountRoleException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7195,7 +7225,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.CanRetry = &jtv + sv.CanRetry = ptr.Bool(jtv) } case "errorCode": @@ -7213,7 +7243,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7225,7 +7255,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu return nil } -func awsAwsjson11_deserializeDocumentIpv4AddressList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIpv4AddressList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7238,21 +7268,21 @@ func awsAwsjson11_deserializeDocumentIpv4AddressList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Ipv4Address to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7261,7 +7291,7 @@ func awsAwsjson11_deserializeDocumentIpv4AddressList(v *[]*string, value interfa return nil } -func awsAwsjson11_deserializeDocumentIpv6Addresses(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIpv6Addresses(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7274,21 +7304,21 @@ func awsAwsjson11_deserializeDocumentIpv6Addresses(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7325,7 +7355,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.CanRetry = &jtv + sv.CanRetry = ptr.Bool(jtv) } case "errorCode": @@ -7343,7 +7373,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7355,7 +7385,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson11_deserializeDocumentListReturnedArnList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentListReturnedArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7368,21 +7398,21 @@ func awsAwsjson11_deserializeDocumentListReturnedArnList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -7424,7 +7454,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.NetworkInterfaceId = &jtv + sv.NetworkInterfaceId = ptr.String(jtv) } case "privateDnsName": @@ -7433,7 +7463,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.PrivateDnsName = &jtv + sv.PrivateDnsName = ptr.String(jtv) } case "privateIpAddress": @@ -7442,7 +7472,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.PrivateIpAddress = &jtv + sv.PrivateIpAddress = ptr.String(jtv) } case "privateIpAddresses": @@ -7456,7 +7486,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.PublicDnsName = &jtv + sv.PublicDnsName = ptr.String(jtv) } case "publicIp": @@ -7465,7 +7495,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.PublicIp = &jtv + sv.PublicIp = ptr.String(jtv) } case "securityGroups": @@ -7479,7 +7509,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "vpcId": @@ -7488,7 +7518,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -7500,7 +7530,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface return nil } -func awsAwsjson11_deserializeDocumentNetworkInterfaces(v *[]*types.NetworkInterface, value interface{}) error { +func awsAwsjson11_deserializeDocumentNetworkInterfaces(v *[]types.NetworkInterface, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7513,18 +7543,20 @@ func awsAwsjson11_deserializeDocumentNetworkInterfaces(v *[]*types.NetworkInterf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NetworkInterface + var cv []types.NetworkInterface if *v == nil { - cv = []*types.NetworkInterface{} + cv = []types.NetworkInterface{} } else { cv = *v } for _, value := range shape { - var col *types.NetworkInterface - if err := awsAwsjson11_deserializeDocumentNetworkInterface(&col, value); err != nil { + var col types.NetworkInterface + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNetworkInterface(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7560,7 +7592,7 @@ func awsAwsjson11_deserializeDocumentNoSuchEntityException(v **types.NoSuchEntit if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.CanRetry = &jtv + sv.CanRetry = ptr.Bool(jtv) } case "errorCode": @@ -7578,7 +7610,7 @@ func awsAwsjson11_deserializeDocumentNoSuchEntityException(v **types.NoSuchEntit if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7618,7 +7650,7 @@ func awsAwsjson11_deserializeDocumentPreviewGenerationInProgressException(v **ty if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7658,7 +7690,7 @@ func awsAwsjson11_deserializeDocumentPrivateIp(v **types.PrivateIp, value interf if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.PrivateDnsName = &jtv + sv.PrivateDnsName = ptr.String(jtv) } case "privateIpAddress": @@ -7667,7 +7699,7 @@ func awsAwsjson11_deserializeDocumentPrivateIp(v **types.PrivateIp, value interf if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.PrivateIpAddress = &jtv + sv.PrivateIpAddress = ptr.String(jtv) } default: @@ -7679,7 +7711,7 @@ func awsAwsjson11_deserializeDocumentPrivateIp(v **types.PrivateIp, value interf return nil } -func awsAwsjson11_deserializeDocumentPrivateIpAddresses(v *[]*types.PrivateIp, value interface{}) error { +func awsAwsjson11_deserializeDocumentPrivateIpAddresses(v *[]types.PrivateIp, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7692,18 +7724,20 @@ func awsAwsjson11_deserializeDocumentPrivateIpAddresses(v *[]*types.PrivateIp, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PrivateIp + var cv []types.PrivateIp if *v == nil { - cv = []*types.PrivateIp{} + cv = []types.PrivateIp{} } else { cv = *v } for _, value := range shape { - var col *types.PrivateIp - if err := awsAwsjson11_deserializeDocumentPrivateIp(&col, value); err != nil { + var col types.PrivateIp + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPrivateIp(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7739,7 +7773,7 @@ func awsAwsjson11_deserializeDocumentResourceGroup(v **types.ResourceGroup, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -7769,7 +7803,7 @@ func awsAwsjson11_deserializeDocumentResourceGroup(v **types.ResourceGroup, valu return nil } -func awsAwsjson11_deserializeDocumentResourceGroupList(v *[]*types.ResourceGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceGroupList(v *[]types.ResourceGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7782,18 +7816,20 @@ func awsAwsjson11_deserializeDocumentResourceGroupList(v *[]*types.ResourceGroup return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceGroup + var cv []types.ResourceGroup if *v == nil { - cv = []*types.ResourceGroup{} + cv = []types.ResourceGroup{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceGroup - if err := awsAwsjson11_deserializeDocumentResourceGroup(&col, value); err != nil { + var col types.ResourceGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7829,7 +7865,7 @@ func awsAwsjson11_deserializeDocumentResourceGroupTag(v **types.ResourceGroupTag if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -7838,7 +7874,7 @@ func awsAwsjson11_deserializeDocumentResourceGroupTag(v **types.ResourceGroupTag if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -7850,7 +7886,7 @@ func awsAwsjson11_deserializeDocumentResourceGroupTag(v **types.ResourceGroupTag return nil } -func awsAwsjson11_deserializeDocumentResourceGroupTags(v *[]*types.ResourceGroupTag, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceGroupTags(v *[]types.ResourceGroupTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7863,18 +7899,20 @@ func awsAwsjson11_deserializeDocumentResourceGroupTags(v *[]*types.ResourceGroup return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceGroupTag + var cv []types.ResourceGroupTag if *v == nil { - cv = []*types.ResourceGroupTag{} + cv = []types.ResourceGroupTag{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceGroupTag - if err := awsAwsjson11_deserializeDocumentResourceGroupTag(&col, value); err != nil { + var col types.ResourceGroupTag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceGroupTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7910,7 +7948,7 @@ func awsAwsjson11_deserializeDocumentRulesPackage(v **types.RulesPackage, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -7919,7 +7957,7 @@ func awsAwsjson11_deserializeDocumentRulesPackage(v **types.RulesPackage, value if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "name": @@ -7928,7 +7966,7 @@ func awsAwsjson11_deserializeDocumentRulesPackage(v **types.RulesPackage, value if !ok { return fmt.Errorf("expected RulesPackageName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "provider": @@ -7937,7 +7975,7 @@ func awsAwsjson11_deserializeDocumentRulesPackage(v **types.RulesPackage, value if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.Provider = &jtv + sv.Provider = ptr.String(jtv) } case "version": @@ -7946,7 +7984,7 @@ func awsAwsjson11_deserializeDocumentRulesPackage(v **types.RulesPackage, value if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -7958,7 +7996,7 @@ func awsAwsjson11_deserializeDocumentRulesPackage(v **types.RulesPackage, value return nil } -func awsAwsjson11_deserializeDocumentRulesPackageList(v *[]*types.RulesPackage, value interface{}) error { +func awsAwsjson11_deserializeDocumentRulesPackageList(v *[]types.RulesPackage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7971,18 +8009,20 @@ func awsAwsjson11_deserializeDocumentRulesPackageList(v *[]*types.RulesPackage, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RulesPackage + var cv []types.RulesPackage if *v == nil { - cv = []*types.RulesPackage{} + cv = []types.RulesPackage{} } else { cv = *v } for _, value := range shape { - var col *types.RulesPackage - if err := awsAwsjson11_deserializeDocumentRulesPackage(&col, value); err != nil { + var col types.RulesPackage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRulesPackage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8027,7 +8067,7 @@ func awsAwsjson11_deserializeDocumentScope(v **types.Scope, value interface{}) e if !ok { return fmt.Errorf("expected ScopeValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8039,7 +8079,7 @@ func awsAwsjson11_deserializeDocumentScope(v **types.Scope, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentScopeList(v *[]*types.Scope, value interface{}) error { +func awsAwsjson11_deserializeDocumentScopeList(v *[]types.Scope, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8052,18 +8092,20 @@ func awsAwsjson11_deserializeDocumentScopeList(v *[]*types.Scope, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Scope + var cv []types.Scope if *v == nil { - cv = []*types.Scope{} + cv = []types.Scope{} } else { cv = *v } for _, value := range shape { - var col *types.Scope - if err := awsAwsjson11_deserializeDocumentScope(&col, value); err != nil { + var col types.Scope + destAddr := &col + if err := awsAwsjson11_deserializeDocumentScope(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8099,7 +8141,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroup(v **types.SecurityGroup, valu if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } case "groupName": @@ -8108,7 +8150,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroup(v **types.SecurityGroup, valu if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } default: @@ -8120,7 +8162,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroup(v **types.SecurityGroup, valu return nil } -func awsAwsjson11_deserializeDocumentSecurityGroups(v *[]*types.SecurityGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityGroups(v *[]types.SecurityGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8133,18 +8175,20 @@ func awsAwsjson11_deserializeDocumentSecurityGroups(v *[]*types.SecurityGroup, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SecurityGroup + var cv []types.SecurityGroup if *v == nil { - cv = []*types.SecurityGroup{} + cv = []types.SecurityGroup{} } else { cv = *v } for _, value := range shape { - var col *types.SecurityGroup - if err := awsAwsjson11_deserializeDocumentSecurityGroup(&col, value); err != nil { + var col types.SecurityGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSecurityGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8180,7 +8224,7 @@ func awsAwsjson11_deserializeDocumentServiceTemporarilyUnavailableException(v ** if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.CanRetry = &jtv + sv.CanRetry = ptr.Bool(jtv) } case "message": @@ -8189,7 +8233,7 @@ func awsAwsjson11_deserializeDocumentServiceTemporarilyUnavailableException(v ** if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8234,7 +8278,7 @@ func awsAwsjson11_deserializeDocumentSubscription(v **types.Subscription, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "topicArn": @@ -8243,7 +8287,7 @@ func awsAwsjson11_deserializeDocumentSubscription(v **types.Subscription, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.TopicArn = &jtv + sv.TopicArn = ptr.String(jtv) } default: @@ -8255,7 +8299,7 @@ func awsAwsjson11_deserializeDocumentSubscription(v **types.Subscription, value return nil } -func awsAwsjson11_deserializeDocumentSubscriptionList(v *[]*types.Subscription, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubscriptionList(v *[]types.Subscription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8268,18 +8312,20 @@ func awsAwsjson11_deserializeDocumentSubscriptionList(v *[]*types.Subscription, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Subscription + var cv []types.Subscription if *v == nil { - cv = []*types.Subscription{} + cv = []types.Subscription{} } else { cv = *v } for _, value := range shape { - var col *types.Subscription - if err := awsAwsjson11_deserializeDocumentSubscription(&col, value); err != nil { + var col types.Subscription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubscription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8315,7 +8361,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -8324,7 +8370,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8336,7 +8382,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8349,18 +8395,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8368,7 +8416,7 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8381,18 +8429,20 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8432,7 +8482,7 @@ func awsAwsjson11_deserializeDocumentTelemetryMetadata(v **types.TelemetryMetada if err != nil { return err } - sv.Count = &i64 + sv.Count = ptr.Int64(i64) } case "dataSize": @@ -8445,7 +8495,7 @@ func awsAwsjson11_deserializeDocumentTelemetryMetadata(v **types.TelemetryMetada if err != nil { return err } - sv.DataSize = &i64 + sv.DataSize = ptr.Int64(i64) } case "messageType": @@ -8454,7 +8504,7 @@ func awsAwsjson11_deserializeDocumentTelemetryMetadata(v **types.TelemetryMetada if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.MessageType = &jtv + sv.MessageType = ptr.String(jtv) } default: @@ -8466,7 +8516,7 @@ func awsAwsjson11_deserializeDocumentTelemetryMetadata(v **types.TelemetryMetada return nil } -func awsAwsjson11_deserializeDocumentTelemetryMetadataList(v *[]*types.TelemetryMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentTelemetryMetadataList(v *[]types.TelemetryMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8479,18 +8529,20 @@ func awsAwsjson11_deserializeDocumentTelemetryMetadataList(v *[]*types.Telemetry return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TelemetryMetadata + var cv []types.TelemetryMetadata if *v == nil { - cv = []*types.TelemetryMetadata{} + cv = []types.TelemetryMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.TelemetryMetadata - if err := awsAwsjson11_deserializeDocumentTelemetryMetadata(&col, value); err != nil { + var col types.TelemetryMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTelemetryMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8526,7 +8578,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedFeatureException(v **types.Unsup if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.CanRetry = &jtv + sv.CanRetry = ptr.Bool(jtv) } case "message": @@ -8535,7 +8587,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedFeatureException(v **types.Unsup if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8547,7 +8599,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedFeatureException(v **types.Unsup return nil } -func awsAwsjson11_deserializeDocumentUserAttributeList(v *[]*types.Attribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserAttributeList(v *[]types.Attribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8560,18 +8612,20 @@ func awsAwsjson11_deserializeDocumentUserAttributeList(v *[]*types.Attribute, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Attribute + var cv []types.Attribute if *v == nil { - cv = []*types.Attribute{} + cv = []types.Attribute{} } else { cv = *v } for _, value := range shape { - var col *types.Attribute - if err := awsAwsjson11_deserializeDocumentAttribute(&col, value); err != nil { + var col types.Attribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8643,7 +8697,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAssessmentTargetOutput(v **CreateAs if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssessmentTargetArn = &jtv + sv.AssessmentTargetArn = ptr.String(jtv) } default: @@ -8683,7 +8737,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAssessmentTemplateOutput(v **Create if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssessmentTemplateArn = &jtv + sv.AssessmentTemplateArn = ptr.String(jtv) } default: @@ -8723,7 +8777,7 @@ func awsAwsjson11_deserializeOpDocumentCreateExclusionsPreviewOutput(v **CreateE if !ok { return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.PreviewToken = &jtv + sv.PreviewToken = ptr.String(jtv) } default: @@ -8763,7 +8817,7 @@ func awsAwsjson11_deserializeOpDocumentCreateResourceGroupOutput(v **CreateResou if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ResourceGroupArn = &jtv + sv.ResourceGroupArn = ptr.String(jtv) } default: @@ -9032,7 +9086,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCrossAccountAccessRoleOutput(v ** if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "valid": @@ -9041,7 +9095,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCrossAccountAccessRoleOutput(v ** if !ok { return fmt.Errorf("expected Bool to be of type *bool, got %T instead", value) } - sv.Valid = &jtv + sv.Valid = ptr.Bool(jtv) } default: @@ -9254,7 +9308,7 @@ func awsAwsjson11_deserializeOpDocumentGetAssessmentReportOutput(v **GetAssessme if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -9299,7 +9353,7 @@ func awsAwsjson11_deserializeOpDocumentGetExclusionsPreviewOutput(v **GetExclusi if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "previewStatus": @@ -9389,7 +9443,7 @@ func awsAwsjson11_deserializeOpDocumentListAssessmentRunAgentsOutput(v **ListAss if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9434,7 +9488,7 @@ func awsAwsjson11_deserializeOpDocumentListAssessmentRunsOutput(v **ListAssessme if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9479,7 +9533,7 @@ func awsAwsjson11_deserializeOpDocumentListAssessmentTargetsOutput(v **ListAsses if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9524,7 +9578,7 @@ func awsAwsjson11_deserializeOpDocumentListAssessmentTemplatesOutput(v **ListAss if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9564,7 +9618,7 @@ func awsAwsjson11_deserializeOpDocumentListEventSubscriptionsOutput(v **ListEven if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "subscriptions": @@ -9614,7 +9668,7 @@ func awsAwsjson11_deserializeOpDocumentListExclusionsOutput(v **ListExclusionsOu if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9659,7 +9713,7 @@ func awsAwsjson11_deserializeOpDocumentListFindingsOutput(v **ListFindingsOutput if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9699,7 +9753,7 @@ func awsAwsjson11_deserializeOpDocumentListRulesPackagesOutput(v **ListRulesPack if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "rulesPackageArns": @@ -9785,7 +9839,7 @@ func awsAwsjson11_deserializeOpDocumentPreviewAgentsOutput(v **PreviewAgentsOutp if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9923,7 +9977,7 @@ func awsAwsjson11_deserializeOpDocumentStartAssessmentRunOutput(v **StartAssessm if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssessmentRunArn = &jtv + sv.AssessmentRunArn = ptr.String(jtv) } default: diff --git a/service/inspector/go.mod b/service/inspector/go.mod index b8f3534ce56..17cf34ac0a2 100644 --- a/service/inspector/go.mod +++ b/service/inspector/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/inspector go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/inspector/serializers.go b/service/inspector/serializers.go index 558cac9b419..e93ecd7682f 100644 --- a/service/inspector/serializers.go +++ b/service/inspector/serializers.go @@ -1709,17 +1709,13 @@ func (m *awsAwsjson11_serializeOpUpdateAssessmentTarget) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAddRemoveAttributesFindingArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAddRemoveAttributesFindingArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1767,17 +1763,13 @@ func awsAwsjson11_serializeDocumentAgentHealthList(v []types.AgentHealth, value return nil } -func awsAwsjson11_serializeDocumentAgentIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAgentIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1885,17 +1877,13 @@ func awsAwsjson11_serializeDocumentAssessmentTemplateFilter(v *types.AssessmentT return nil } -func awsAwsjson11_serializeDocumentAssessmentTemplateRulesPackageArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAssessmentTemplateRulesPackageArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1917,64 +1905,48 @@ func awsAwsjson11_serializeDocumentAttribute(v *types.Attribute, value smithyjso return nil } -func awsAwsjson11_serializeDocumentAttributeList(v []*types.Attribute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttributeList(v []types.Attribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAttribute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAttribute(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentAutoScalingGroupList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAutoScalingGroupList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentBatchDescribeArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBatchDescribeArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentBatchDescribeExclusionsArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBatchDescribeExclusionsArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1983,30 +1955,26 @@ func awsAwsjson11_serializeDocumentDurationRange(v *types.DurationRange, value s object := value.Object() defer object.Close() - if v.MaxSeconds != nil { + if v.MaxSeconds != 0 { ok := object.Key("maxSeconds") - ok.Integer(*v.MaxSeconds) + ok.Integer(v.MaxSeconds) } - if v.MinSeconds != nil { + if v.MinSeconds != 0 { ok := object.Key("minSeconds") - ok.Integer(*v.MinSeconds) + ok.Integer(v.MinSeconds) } return nil } -func awsAwsjson11_serializeDocumentFilterRulesPackageArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterRulesPackageArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2074,17 +2042,13 @@ func awsAwsjson11_serializeDocumentFindingFilter(v *types.FindingFilter, value s return nil } -func awsAwsjson11_serializeDocumentListParentArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentListParentArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2106,34 +2070,26 @@ func awsAwsjson11_serializeDocumentResourceGroupTag(v *types.ResourceGroupTag, v return nil } -func awsAwsjson11_serializeDocumentResourceGroupTags(v []*types.ResourceGroupTag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceGroupTags(v []types.ResourceGroupTag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentResourceGroupTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentResourceGroupTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentRuleNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRuleNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2166,17 +2122,13 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2200,32 +2152,24 @@ func awsAwsjson11_serializeDocumentTimestampRange(v *types.TimestampRange, value return nil } -func awsAwsjson11_serializeDocumentUserAttributeKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentUserAttributeKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentUserAttributeList(v []*types.Attribute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentUserAttributeList(v []types.Attribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAttribute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAttribute(&v[i], av); err != nil { return err } } @@ -2284,9 +2228,9 @@ func awsAwsjson11_serializeOpDocumentCreateAssessmentTemplateInput(v *CreateAsse ok.String(*v.AssessmentTemplateName) } - if v.DurationInSeconds != nil { + if v.DurationInSeconds != 0 { ok := object.Key("durationInSeconds") - ok.Integer(*v.DurationInSeconds) + ok.Integer(v.DurationInSeconds) } if v.RulesPackageArns != nil { diff --git a/service/inspector/types/errors.go b/service/inspector/types/errors.go index 4c7a59ced20..1490b378588 100644 --- a/service/inspector/types/errors.go +++ b/service/inspector/types/errors.go @@ -32,7 +32,7 @@ func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.F type AgentsAlreadyRunningAssessmentException struct { Message *string - Agents []*AgentAlreadyRunningAssessment + Agents []AgentAlreadyRunningAssessment CanRetry *bool AgentsTruncated *bool } @@ -59,7 +59,7 @@ type AssessmentRunInProgressException struct { Message *string CanRetry *bool - AssessmentRunArns []*string + AssessmentRunArns []string AssessmentRunArnsTruncated *bool } diff --git a/service/inspector/types/types.go b/service/inspector/types/types.go index e6ce1e78d14..097ccc62811 100644 --- a/service/inspector/types/types.go +++ b/service/inspector/types/types.go @@ -103,12 +103,12 @@ type AssessmentRun struct { // The duration of the assessment run. // // This member is required. - DurationInSeconds *int32 + DurationInSeconds int32 // Provides a total count of generated findings per severity. // // This member is required. - FindingCounts map[string]*int32 + FindingCounts map[string]int32 // The auto-generated name for the assessment run. // @@ -119,12 +119,12 @@ type AssessmentRun struct { // particular generated finding is added to this list only once. // // This member is required. - Notifications []*AssessmentRunNotification + Notifications []AssessmentRunNotification // The rules packages selected for the assessment run. // // This member is required. - RulesPackageArns []*string + RulesPackageArns []string // The state of the assessment run. // @@ -139,12 +139,12 @@ type AssessmentRun struct { // A list of the assessment run state changes. // // This member is required. - StateChanges []*AssessmentRunStateChange + StateChanges []AssessmentRunStateChange // The user-defined attributes that are assigned to every generated finding. // // This member is required. - UserAttributesForFindings []*Attribute + UserAttributesForFindings []Attribute // The assessment run completion time that corresponds to the rules packages // evaluation completion time or failure. @@ -181,7 +181,7 @@ type AssessmentRunAgent struct { // The Amazon Inspector application data metrics that are collected by the agent. // // This member is required. - TelemetryMetadata []*TelemetryMetadata + TelemetryMetadata []TelemetryMetadata // The description for the agent health code. AgentHealthDetails *string @@ -211,7 +211,7 @@ type AssessmentRunFilter struct { // For a record to match a filter, the value that is specified for this data type // property must be contained in the list of values of the rulesPackages property // of the AssessmentRun data type. - RulesPackageArns []*string + RulesPackageArns []string // For a record to match a filter, the value that is specified for this data type // property must inclusively match any value between the specified minimum and @@ -337,7 +337,7 @@ type AssessmentTemplate struct { // value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day). // // This member is required. - DurationInSeconds *int32 + DurationInSeconds int32 // The name of the assessment template. // @@ -347,13 +347,13 @@ type AssessmentTemplate struct { // The rules packages that are specified for this assessment template. // // This member is required. - RulesPackageArns []*string + RulesPackageArns []string // The user-defined attributes that are assigned to every generated finding from // the assessment run that uses this assessment template. // // This member is required. - UserAttributesForFindings []*Attribute + UserAttributesForFindings []Attribute // The Amazon Resource Name (ARN) of the most recent assessment run associated with // this assessment template. This value exists only when the value of @@ -377,7 +377,7 @@ type AssessmentTemplateFilter struct { // For a record to match a filter, the values that are specified for this data type // property must be contained in the list of values of the rulesPackageArns // property of the AssessmentTemplate data type. - RulesPackageArns []*string + RulesPackageArns []string } // A collection of attributes of the host from which the finding is generated. @@ -386,7 +386,7 @@ type AssetAttributes struct { // The schema version of this data type. // // This member is required. - SchemaVersion *int32 + SchemaVersion int32 // The ID of the agent that is installed on the EC2 instance where the finding is // generated. @@ -403,14 +403,14 @@ type AssetAttributes struct { Hostname *string // The list of IP v4 addresses of the EC2 instance where the finding is generated. - Ipv4Addresses []*string + Ipv4Addresses []string // An array of the network interfaces interacting with the EC2 instance where the // finding is generated. - NetworkInterfaces []*NetworkInterface + NetworkInterfaces []NetworkInterface // The tags related to the EC2 instance where the finding is generated. - Tags []*Tag + Tags []Tag } // This data type is used as a request parameter in the AddAttributesToFindings and @@ -431,10 +431,10 @@ type DurationRange struct { // The maximum value of the duration range. Must be less than or equal to 604800 // seconds (1 week). - MaxSeconds *int32 + MaxSeconds int32 // The minimum value of the duration range. Must be greater than zero. - MinSeconds *int32 + MinSeconds int32 } // This data type is used in the Subscription data type. @@ -473,7 +473,7 @@ type Exclusion struct { // The AWS resources for which the exclusion pertains. // // This member is required. - Scopes []*Scope + Scopes []Scope // The name of the exclusion. // @@ -481,7 +481,7 @@ type Exclusion struct { Title *string // The system-defined attributes for the exclusion. - Attributes []*Attribute + Attributes []Attribute } // Contains information about what is excluded from an assessment run given the @@ -501,7 +501,7 @@ type ExclusionPreview struct { // The AWS resources for which the exclusion preview pertains. // // This member is required. - Scopes []*Scope + Scopes []Scope // The name of the exclusion preview. // @@ -509,7 +509,7 @@ type ExclusionPreview struct { Title *string // The system-defined attributes for the exclusion preview. - Attributes []*Attribute + Attributes []Attribute } // Includes details about the failed items. @@ -539,7 +539,7 @@ type Finding struct { // The system-defined attributes for the finding. // // This member is required. - Attributes []*Attribute + Attributes []Attribute // The time when the finding was generated. // @@ -554,7 +554,7 @@ type Finding struct { // The user-defined attributes that are assigned to the finding. // // This member is required. - UserAttributes []*Attribute + UserAttributes []Attribute // A collection of attributes of the host from which the finding is generated. AssetAttributes *AssetAttributes @@ -563,7 +563,7 @@ type Finding struct { AssetType AssetType // This data element is currently not used. - Confidence *int32 + Confidence int32 // The description of the finding. Description *string @@ -575,13 +575,13 @@ type Finding struct { IndicatorOfCompromise *bool // The numeric value of the finding severity. - NumericSeverity *float64 + NumericSeverity float64 // The recommendation for the finding. Recommendation *string // The schema version of this data type. - SchemaVersion *int32 + SchemaVersion int32 // The data element is set to "Inspector". Service *string @@ -602,17 +602,17 @@ type FindingFilter struct { // For a record to match a filter, one of the values that is specified for this // data type property must be the exact match of the value of the agentId property // of the Finding data type. - AgentIds []*string + AgentIds []string // For a record to match a filter, the list of values that are specified for this // data type property must be contained in the list of values of the attributes // property of the Finding data type. - Attributes []*Attribute + Attributes []Attribute // For a record to match a filter, one of the values that is specified for this // data type property must be the exact match of the value of the autoScalingGroup // property of the Finding data type. - AutoScalingGroups []*string + AutoScalingGroups []string // The time range during which the finding is generated. CreationTimeRange *TimestampRange @@ -620,12 +620,12 @@ type FindingFilter struct { // For a record to match a filter, one of the values that is specified for this // data type property must be the exact match of the value of the ruleName property // of the Finding data type. - RuleNames []*string + RuleNames []string // For a record to match a filter, one of the values that is specified for this // data type property must be the exact match of the value of the rulesPackageArn // property of the Finding data type. - RulesPackageArns []*string + RulesPackageArns []string // For a record to match a filter, one of the values that is specified for this // data type property must be the exact match of the value of the severity property @@ -635,7 +635,7 @@ type FindingFilter struct { // For a record to match a filter, the value that is specified for this data type // property must be contained in the list of values of the userAttributes property // of the Finding data type. - UserAttributes []*Attribute + UserAttributes []Attribute } // This data type is used in the Finding data type. @@ -644,7 +644,7 @@ type InspectorServiceAttributes struct { // The schema version of this data type. // // This member is required. - SchemaVersion *int32 + SchemaVersion int32 // The ARN of the assessment run during which the finding is generated. AssessmentRunArn *string @@ -659,7 +659,7 @@ type InspectorServiceAttributes struct { type NetworkInterface struct { // The IP addresses associated with the network interface. - Ipv6Addresses []*string + Ipv6Addresses []string // The ID of the network interface. NetworkInterfaceId *string @@ -672,7 +672,7 @@ type NetworkInterface struct { // A list of the private IP addresses associated with the network interface. // Includes the privateDnsName and privateIpAddress. - PrivateIpAddresses []*PrivateIp + PrivateIpAddresses []PrivateIp // The name of a public DNS associated with the network interface. PublicDnsName *string @@ -682,7 +682,7 @@ type NetworkInterface struct { // A list of the security groups associated with the network interface. Includes // the groupId and groupName. - SecurityGroups []*SecurityGroup + SecurityGroups []SecurityGroup // The ID of a subnet associated with the network interface. SubnetId *string @@ -723,7 +723,7 @@ type ResourceGroup struct { // used in the CreateResourceGroup action. // // This member is required. - Tags []*ResourceGroupTag + Tags []ResourceGroupTag } // This data type is used as one of the elements of the ResourceGroup data type. @@ -794,7 +794,7 @@ type Subscription struct { // The list of existing event subscriptions. // // This member is required. - EventSubscriptions []*EventSubscription + EventSubscriptions []EventSubscription // The ARN of the assessment template that is used during the event for which the // SNS notification is sent. diff --git a/service/inspector/validators.go b/service/inspector/validators.go index 1546fc57cf8..217ac917214 100644 --- a/service/inspector/validators.go +++ b/service/inspector/validators.go @@ -787,13 +787,13 @@ func validateAttribute(v *types.Attribute) error { } } -func validateAttributeList(v []*types.Attribute) error { +func validateAttributeList(v []types.Attribute) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AttributeList"} for i := range v { - if err := validateAttribute(v[i]); err != nil { + if err := validateAttribute(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -841,13 +841,13 @@ func validateResourceGroupTag(v *types.ResourceGroupTag) error { } } -func validateResourceGroupTags(v []*types.ResourceGroupTag) error { +func validateResourceGroupTags(v []types.ResourceGroupTag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceGroupTags"} for i := range v { - if err := validateResourceGroupTag(v[i]); err != nil { + if err := validateResourceGroupTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -873,13 +873,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -890,13 +890,13 @@ func validateTagList(v []*types.Tag) error { } } -func validateUserAttributeList(v []*types.Attribute) error { +func validateUserAttributeList(v []types.Attribute) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UserAttributeList"} for i := range v { - if err := validateAttribute(v[i]); err != nil { + if err := validateAttribute(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -963,9 +963,6 @@ func validateOpCreateAssessmentTemplateInput(v *CreateAssessmentTemplateInput) e invalidParams.AddNested("UserAttributesForFindings", err.(smithy.InvalidParamsError)) } } - if v.DurationInSeconds == nil { - invalidParams.Add(smithy.NewErrParamRequired("DurationInSeconds")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/internal/benchmark/go.mod b/service/internal/benchmark/go.mod index e1c8b63dc60..c05a5e58c84 100644 --- a/service/internal/benchmark/go.mod +++ b/service/internal/benchmark/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go v1.34.33 - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/aws/aws-sdk-go-v2/service/dynamodb v0.29.0 github.com/aws/aws-sdk-go-v2/service/lexruntimeservice v0.29.0 github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 diff --git a/service/internal/benchmark/lexruntimeservice/put_session_test.go b/service/internal/benchmark/lexruntimeservice/put_session_test.go index 132927575fa..bf8c3141405 100644 --- a/service/internal/benchmark/lexruntimeservice/put_session_test.go +++ b/service/internal/benchmark/lexruntimeservice/put_session_test.go @@ -118,13 +118,13 @@ func benchPutSessionSmithy(b *testing.B) { Message: ptr.String("fooMessage"), MessageFormat: types.MessageFormatTypePlainText, SlotToElicit: ptr.String("fooSlot"), - Slots: map[string]*string{ - "fooSlot": ptr.String("fooValue"), - "barSlot": ptr.String("barValue"), + Slots: map[string]string{ + "fooSlot": "fooValue", + "barSlot": "barValue", }, Type: types.DialogActionTypeElicitSlot, }, - RecentIntentSummaryView: []*types.IntentSummary{ + RecentIntentSummaryView: []types.IntentSummary{ { CheckpointLabel: ptr.String("fooLabel"), ConfirmationStatus: types.ConfirmationStatusConfirmed, @@ -132,14 +132,14 @@ func benchPutSessionSmithy(b *testing.B) { FulfillmentState: types.FulfillmentStateFulfilled, IntentName: ptr.String("fooIntent"), SlotToElicit: ptr.String("fooSlot"), - Slots: map[string]*string{ - "fooSlot": ptr.String("fooValue"), - "barSlot": ptr.String("barValue"), + Slots: map[string]string{ + "fooSlot": "fooValue", + "barSlot": "barValue", }, }, }, - SessionAttributes: map[string]*string{ - "fooAttr": ptr.String("fooValue"), + SessionAttributes: map[string]string{ + "fooAttr": "fooValue", }, UserId: ptr.String("fooUser"), } diff --git a/service/internal/integrationtest/cognitoidentityprovider/smoke_test.go b/service/internal/integrationtest/cognitoidentityprovider/smoke_test.go index f70c2e2e531..23a9f694329 100644 --- a/service/internal/integrationtest/cognitoidentityprovider/smoke_test.go +++ b/service/internal/integrationtest/cognitoidentityprovider/smoke_test.go @@ -26,7 +26,7 @@ func TestInteg_00_ListUserPools(t *testing.T) { client := cognitoidentityprovider.NewFromConfig(cfg) params := &cognitoidentityprovider.ListUserPoolsInput{ - MaxResults: aws.Int32(10), + MaxResults: 10, } _, err = client.ListUserPools(ctx, params) if err != nil { diff --git a/service/internal/integrationtest/ec2/smoke_test.go b/service/internal/integrationtest/ec2/smoke_test.go index e34f1089ea8..ce0bfdf6030 100644 --- a/service/internal/integrationtest/ec2/smoke_test.go +++ b/service/internal/integrationtest/ec2/smoke_test.go @@ -8,7 +8,6 @@ import ( "testing" "time" - "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/ec2" "github.com/awslabs/smithy-go" @@ -43,8 +42,8 @@ func TestInteg_01_DescribeInstances(t *testing.T) { client := ec2.NewFromConfig(cfg) params := &ec2.DescribeInstancesInput{ - InstanceIds: []*string{ - aws.String("i-12345678"), + InstanceIds: []string{ + "i-12345678", }, } _, err = client.DescribeInstances(ctx, params) diff --git a/service/internal/integrationtest/elasticloadbalancing/smoke_test.go b/service/internal/integrationtest/elasticloadbalancing/smoke_test.go index 180d211360a..4cbbd0133c6 100644 --- a/service/internal/integrationtest/elasticloadbalancing/smoke_test.go +++ b/service/internal/integrationtest/elasticloadbalancing/smoke_test.go @@ -8,7 +8,6 @@ import ( "testing" "time" - "github.com/aws/aws-sdk-go-v2/aws" elb "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing" "github.com/awslabs/smithy-go" @@ -43,8 +42,8 @@ func TestInteg_01_DescribeLoadBalancers(t *testing.T) { client := elb.NewFromConfig(cfg) params := &elb.DescribeLoadBalancersInput{ - LoadBalancerNames: []*string{ - aws.String("fake_load_balancer"), + LoadBalancerNames: []string{ + "fake_load_balancer", }, } _, err = client.DescribeLoadBalancers(ctx, params) diff --git a/service/internal/integrationtest/elbv2/smoke_test.go b/service/internal/integrationtest/elbv2/smoke_test.go index 75d26594ed8..306574c1d5c 100644 --- a/service/internal/integrationtest/elbv2/smoke_test.go +++ b/service/internal/integrationtest/elbv2/smoke_test.go @@ -8,7 +8,6 @@ import ( "testing" "time" - "github.com/aws/aws-sdk-go-v2/aws" elbv2 "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" @@ -43,8 +42,8 @@ func TestInteg_01_DescribeLoadBalancers(t *testing.T) { client := elbv2.NewFromConfig(cfg) params := &elbv2.DescribeLoadBalancersInput{ - LoadBalancerArns: []*string{ - aws.String("fake_load_balancer"), + LoadBalancerArns: []string{ + "fake_load_balancer", }, } _, err = client.DescribeLoadBalancers(ctx, params) diff --git a/service/internal/integrationtest/go.mod b/service/internal/integrationtest/go.mod index 451615d07da..7160028aa34 100644 --- a/service/internal/integrationtest/go.mod +++ b/service/internal/integrationtest/go.mod @@ -1,7 +1,7 @@ module github.com/aws/aws-sdk-go-v2/service/internal/integrationtest require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231730-2d786000ccee + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/aws/aws-sdk-go-v2/config v0.2.2 github.com/aws/aws-sdk-go-v2/service/acm v0.29.0 github.com/aws/aws-sdk-go-v2/service/apigateway v0.29.0 diff --git a/service/internal/integrationtest/s3control/api_test.go b/service/internal/integrationtest/s3control/api_test.go index dc6cb767906..2b2bae1deb8 100644 --- a/service/internal/integrationtest/s3control/api_test.go +++ b/service/internal/integrationtest/s3control/api_test.go @@ -27,7 +27,7 @@ func TestInteg_PublicAccessBlock(t *testing.T) { _, err = svc.PutPublicAccessBlock(ctx, &s3control.PutPublicAccessBlockInput{ AccountId: aws.String(accountID), PublicAccessBlockConfiguration: &types.PublicAccessBlockConfiguration{ - IgnorePublicAcls: aws.Bool(true), + IgnorePublicAcls: true, }, }) if err != nil { diff --git a/service/internal/integrationtest/waf/smoke_test.go b/service/internal/integrationtest/waf/smoke_test.go index 0138d3ddf94..babf6fad6d8 100644 --- a/service/internal/integrationtest/waf/smoke_test.go +++ b/service/internal/integrationtest/waf/smoke_test.go @@ -26,7 +26,7 @@ func TestInteg_00_ListRules(t *testing.T) { client := waf.NewFromConfig(cfg) params := &waf.ListRulesInput{ - Limit: aws.Int32(20), + Limit: 20, } _, err = client.ListRules(ctx, params) if err != nil { diff --git a/service/internal/integrationtest/wafregional/smoke_test.go b/service/internal/integrationtest/wafregional/smoke_test.go index 2dd028c0cba..708879ce4b4 100644 --- a/service/internal/integrationtest/wafregional/smoke_test.go +++ b/service/internal/integrationtest/wafregional/smoke_test.go @@ -25,7 +25,7 @@ func TestInteg_00_ListRules(t *testing.T) { client := wafregional.NewFromConfig(cfg) params := &wafregional.ListRulesInput{ - Limit: aws.Int32(20), + Limit: 20, } _, err = client.ListRules(ctx, params) if err != nil { diff --git a/service/iot/api_op_AcceptCertificateTransfer.go b/service/iot/api_op_AcceptCertificateTransfer.go index 1da6fd309fd..61d9a62dea5 100644 --- a/service/iot/api_op_AcceptCertificateTransfer.go +++ b/service/iot/api_op_AcceptCertificateTransfer.go @@ -38,7 +38,7 @@ type AcceptCertificateTransferInput struct { CertificateId *string // Specifies whether the certificate is active. - SetAsActive *bool + SetAsActive bool } type AcceptCertificateTransferOutput struct { diff --git a/service/iot/api_op_AddThingToThingGroup.go b/service/iot/api_op_AddThingToThingGroup.go index ac922ffef57..655969357dd 100644 --- a/service/iot/api_op_AddThingToThingGroup.go +++ b/service/iot/api_op_AddThingToThingGroup.go @@ -32,7 +32,7 @@ type AddThingToThingGroupInput struct { // reached. If a thing belongs to 10 thing groups, and one or more of those groups // are dynamic thing groups, adding a thing to a static group removes the thing // from the last dynamic group. - OverrideDynamicGroups *bool + OverrideDynamicGroups bool // The ARN of the thing to add to a group. ThingArn *string diff --git a/service/iot/api_op_AssociateTargetsWithJob.go b/service/iot/api_op_AssociateTargetsWithJob.go index 8aac1e00606..64ca34dfedc 100644 --- a/service/iot/api_op_AssociateTargetsWithJob.go +++ b/service/iot/api_op_AssociateTargetsWithJob.go @@ -45,7 +45,7 @@ type AssociateTargetsWithJobInput struct { // A list of thing group ARNs that define the targets of the job. // // This member is required. - Targets []*string + Targets []string // An optional comment string describing why the job was associated with the // targets. diff --git a/service/iot/api_op_CancelJob.go b/service/iot/api_op_CancelJob.go index 9d0842552bb..9d381871872 100644 --- a/service/iot/api_op_CancelJob.go +++ b/service/iot/api_op_CancelJob.go @@ -42,7 +42,7 @@ type CancelJobInput struct { // which is executing the job to be unable to update the job execution status. Use // caution and ensure that each device executing a job which is canceled is able to // recover to a valid state. - Force *bool + Force bool // (Optional)A reason code string that explains why the job was canceled. ReasonCode *string diff --git a/service/iot/api_op_CancelJobExecution.go b/service/iot/api_op_CancelJobExecution.go index 62897536222..cd22d000924 100644 --- a/service/iot/api_op_CancelJobExecution.go +++ b/service/iot/api_op_CancelJobExecution.go @@ -55,12 +55,12 @@ type CancelJobExecutionInput struct { // "IN_PROGRESS", will cause the device to be unable to update the job execution // status. Use caution and ensure that the device is able to recover to a valid // state. - Force *bool + Force bool // A collection of name/value pairs that describe the status of the job execution. // If not specified, the statusDetails are unchanged. You can specify at most 10 // name/value pairs. - StatusDetails map[string]*string + StatusDetails map[string]string } type CancelJobExecutionOutput struct { diff --git a/service/iot/api_op_CreateAuthorizer.go b/service/iot/api_op_CreateAuthorizer.go index d452f9caf80..8758d46c921 100644 --- a/service/iot/api_op_CreateAuthorizer.go +++ b/service/iot/api_op_CreateAuthorizer.go @@ -50,14 +50,14 @@ type CreateAuthorizerInput struct { // parameters use format: ...key1=value1&key2=value2... For the CLI command-line // parameter use format: &&tags "key1=value1&key2=value2..." For the cli-input-json // file use format: "tags": "key1=value1&key2=value2..." - Tags []*types.Tag + Tags []types.Tag // The name of the token key used to extract the token from the HTTP headers. TokenKeyName *string // The public keys used to verify the digital signature returned by your custom // authentication service. - TokenSigningPublicKeys map[string]*string + TokenSigningPublicKeys map[string]string } type CreateAuthorizerOutput struct { diff --git a/service/iot/api_op_CreateBillingGroup.go b/service/iot/api_op_CreateBillingGroup.go index aed7cd0dcae..6212cd6a0e7 100644 --- a/service/iot/api_op_CreateBillingGroup.go +++ b/service/iot/api_op_CreateBillingGroup.go @@ -38,7 +38,7 @@ type CreateBillingGroupInput struct { BillingGroupProperties *types.BillingGroupProperties // Metadata which can be used to manage the billing group. - Tags []*types.Tag + Tags []types.Tag } type CreateBillingGroupOutput struct { diff --git a/service/iot/api_op_CreateCertificateFromCsr.go b/service/iot/api_op_CreateCertificateFromCsr.go index d0f2b965ff6..9b368df2634 100644 --- a/service/iot/api_op_CreateCertificateFromCsr.go +++ b/service/iot/api_op_CreateCertificateFromCsr.go @@ -57,7 +57,7 @@ type CreateCertificateFromCsrInput struct { CertificateSigningRequest *string // Specifies whether the certificate is active. - SetAsActive *bool + SetAsActive bool } // The output from the CreateCertificateFromCsr operation. diff --git a/service/iot/api_op_CreateDimension.go b/service/iot/api_op_CreateDimension.go index 6a803a55e6b..5f62f6d618c 100644 --- a/service/iot/api_op_CreateDimension.go +++ b/service/iot/api_op_CreateDimension.go @@ -52,7 +52,7 @@ type CreateDimensionInput struct { // "admin/#"). // // This member is required. - StringValues []*string + StringValues []string // Specifies the type of dimension. Supported types: TOPIC_FILTER. // @@ -60,7 +60,7 @@ type CreateDimensionInput struct { Type types.DimensionType // Metadata that can be used to manage the dimension. - Tags []*types.Tag + Tags []types.Tag } type CreateDimensionOutput struct { diff --git a/service/iot/api_op_CreateDomainConfiguration.go b/service/iot/api_op_CreateDomainConfiguration.go index 69ef344d7e6..938763b7bac 100644 --- a/service/iot/api_op_CreateDomainConfiguration.go +++ b/service/iot/api_op_CreateDomainConfiguration.go @@ -44,7 +44,7 @@ type CreateDomainConfigurationInput struct { // The ARNs of the certificates that AWS IoT passes to the device during the TLS // handshake. Currently you can specify only one certificate ARN. This value is not // required for AWS-managed domains. - ServerCertificateArns []*string + ServerCertificateArns []string // The type of service delivered by the endpoint. AWS IoT Core currently supports // only the DATA service type. @@ -54,7 +54,7 @@ type CreateDomainConfigurationInput struct { // parameters use format: ...key1=value1&key2=value2... For the CLI command-line // parameter use format: &&tags "key1=value1&key2=value2..." For the cli-input-json // file use format: "tags": "key1=value1&key2=value2..." - Tags []*types.Tag + Tags []types.Tag // The certificate used to validate the server certificate and prove domain name // ownership. This certificate must be signed by a public certificate authority. diff --git a/service/iot/api_op_CreateDynamicThingGroup.go b/service/iot/api_op_CreateDynamicThingGroup.go index 76f55ef21ba..b3df5dce748 100644 --- a/service/iot/api_op_CreateDynamicThingGroup.go +++ b/service/iot/api_op_CreateDynamicThingGroup.go @@ -50,7 +50,7 @@ type CreateDynamicThingGroupInput struct { QueryVersion *string // Metadata which can be used to manage the dynamic thing group. - Tags []*types.Tag + Tags []types.Tag // The dynamic thing group properties. ThingGroupProperties *types.ThingGroupProperties diff --git a/service/iot/api_op_CreateJob.go b/service/iot/api_op_CreateJob.go index b76c1cca0ab..c19f4afe6fe 100644 --- a/service/iot/api_op_CreateJob.go +++ b/service/iot/api_op_CreateJob.go @@ -38,7 +38,7 @@ type CreateJobInput struct { // A list of things and thing groups to which the job should be sent. // // This member is required. - Targets []*string + Targets []string // Allows you to create criteria to abort a job. AbortConfig *types.AbortConfig @@ -70,7 +70,7 @@ type CreateJobInput struct { PresignedUrlConfig *types.PresignedUrlConfig // Metadata which can be used to manage the job. - Tags []*types.Tag + Tags []types.Tag // Specifies whether the job will continue to run (CONTINUOUS), or will be complete // after all those things specified as targets have completed the job (SNAPSHOT). diff --git a/service/iot/api_op_CreateKeysAndCertificate.go b/service/iot/api_op_CreateKeysAndCertificate.go index f327a3ef733..ed21d4e7397 100644 --- a/service/iot/api_op_CreateKeysAndCertificate.go +++ b/service/iot/api_op_CreateKeysAndCertificate.go @@ -36,7 +36,7 @@ func (c *Client) CreateKeysAndCertificate(ctx context.Context, params *CreateKey type CreateKeysAndCertificateInput struct { // Specifies whether the certificate is active. - SetAsActive *bool + SetAsActive bool } // The output of the CreateKeysAndCertificate operation. diff --git a/service/iot/api_op_CreateMitigationAction.go b/service/iot/api_op_CreateMitigationAction.go index d5e9fd9b0e6..5e017cd8cf9 100644 --- a/service/iot/api_op_CreateMitigationAction.go +++ b/service/iot/api_op_CreateMitigationAction.go @@ -50,7 +50,7 @@ type CreateMitigationActionInput struct { RoleArn *string // Metadata that can be used to manage the mitigation action. - Tags []*types.Tag + Tags []types.Tag } type CreateMitigationActionOutput struct { diff --git a/service/iot/api_op_CreateOTAUpdate.go b/service/iot/api_op_CreateOTAUpdate.go index 789a5d5477e..f9177588359 100644 --- a/service/iot/api_op_CreateOTAUpdate.go +++ b/service/iot/api_op_CreateOTAUpdate.go @@ -32,7 +32,7 @@ type CreateOTAUpdateInput struct { // The files to be streamed by the OTA update. // // This member is required. - Files []*types.OTAUpdateFile + Files []types.OTAUpdateFile // The ID of the OTA update to be created. // @@ -48,10 +48,10 @@ type CreateOTAUpdateInput struct { // The devices targeted to receive OTA updates. // // This member is required. - Targets []*string + Targets []string // A list of additional OTA update parameters which are name-value pairs. - AdditionalParameters map[string]*string + AdditionalParameters map[string]string // The criteria that determine when and how a job abort takes place. AwsJobAbortConfig *types.AwsJobAbortConfig @@ -77,7 +77,7 @@ type CreateOTAUpdateInput struct { Protocols []types.Protocol // Metadata which can be used to manage updates. - Tags []*types.Tag + Tags []types.Tag // Specifies whether the update will continue to run (CONTINUOUS), or will be // complete after all the things specified as targets have completed the update diff --git a/service/iot/api_op_CreatePolicy.go b/service/iot/api_op_CreatePolicy.go index 216954e4bd1..b1d92598d9f 100644 --- a/service/iot/api_op_CreatePolicy.go +++ b/service/iot/api_op_CreatePolicy.go @@ -47,7 +47,7 @@ type CreatePolicyInput struct { // format: ...key1=value1&key2=value2... For the CLI command-line parameter use // format: &&tags "key1=value1&key2=value2..." For the cli-input-json file use // format: "tags": "key1=value1&key2=value2..." - Tags []*types.Tag + Tags []types.Tag } // The output from the CreatePolicy operation. diff --git a/service/iot/api_op_CreatePolicyVersion.go b/service/iot/api_op_CreatePolicyVersion.go index e202a782c2d..1df29a8a735 100644 --- a/service/iot/api_op_CreatePolicyVersion.go +++ b/service/iot/api_op_CreatePolicyVersion.go @@ -49,14 +49,14 @@ type CreatePolicyVersionInput struct { // Specifies whether the policy version is set as the default. When this parameter // is true, the new policy version becomes the operative version (that is, the // version that is in effect for the certificates to which the policy is attached). - SetAsDefault *bool + SetAsDefault bool } // The output of the CreatePolicyVersion operation. type CreatePolicyVersionOutput struct { // Specifies whether the policy version is the default. - IsDefaultVersion *bool + IsDefaultVersion bool // The policy ARN. PolicyArn *string diff --git a/service/iot/api_op_CreateProvisioningTemplate.go b/service/iot/api_op_CreateProvisioningTemplate.go index fe7bedfb6f4..68b5371c9e7 100644 --- a/service/iot/api_op_CreateProvisioningTemplate.go +++ b/service/iot/api_op_CreateProvisioningTemplate.go @@ -49,7 +49,7 @@ type CreateProvisioningTemplateInput struct { Description *string // True to enable the fleet provisioning template, otherwise false. - Enabled *bool + Enabled bool // Creates a pre-provisioning hook template. PreProvisioningHook *types.ProvisioningHook @@ -58,7 +58,7 @@ type CreateProvisioningTemplateInput struct { // Request parameters use format: ...key1=value1&key2=value2... For the CLI // command-line parameter use format: &&tags "key1=value1&key2=value2..." For the // cli-input-json file use format: "tags": "key1=value1&key2=value2..." - Tags []*types.Tag + Tags []types.Tag } type CreateProvisioningTemplateOutput struct { diff --git a/service/iot/api_op_CreateProvisioningTemplateVersion.go b/service/iot/api_op_CreateProvisioningTemplateVersion.go index 474c5441015..7282556ee20 100644 --- a/service/iot/api_op_CreateProvisioningTemplateVersion.go +++ b/service/iot/api_op_CreateProvisioningTemplateVersion.go @@ -39,14 +39,14 @@ type CreateProvisioningTemplateVersionInput struct { TemplateName *string // Sets a fleet provision template version as the default version. - SetAsDefault *bool + SetAsDefault bool } type CreateProvisioningTemplateVersionOutput struct { // True if the fleet provisioning template version is the default version, // otherwise false. - IsDefaultVersion *bool + IsDefaultVersion bool // The ARN that identifies the provisioning template. TemplateArn *string diff --git a/service/iot/api_op_CreateRoleAlias.go b/service/iot/api_op_CreateRoleAlias.go index e704b68d77c..563d698746a 100644 --- a/service/iot/api_op_CreateRoleAlias.go +++ b/service/iot/api_op_CreateRoleAlias.go @@ -47,7 +47,7 @@ type CreateRoleAliasInput struct { // use format: ...key1=value1&key2=value2... For the CLI command-line parameter use // format: &&tags "key1=value1&key2=value2..." For the cli-input-json file use // format: "tags": "key1=value1&key2=value2..." - Tags []*types.Tag + Tags []types.Tag } type CreateRoleAliasOutput struct { diff --git a/service/iot/api_op_CreateScheduledAudit.go b/service/iot/api_op_CreateScheduledAudit.go index 64984651e0e..a435151c5a9 100644 --- a/service/iot/api_op_CreateScheduledAudit.go +++ b/service/iot/api_op_CreateScheduledAudit.go @@ -47,7 +47,7 @@ type CreateScheduledAuditInput struct { // to select which checks are enabled.) // // This member is required. - TargetCheckNames []*string + TargetCheckNames []string // The day of the month on which the scheduled audit takes place. Can be "1" // through "31" or "LAST". This field is required if the "frequency" parameter is @@ -61,7 +61,7 @@ type CreateScheduledAuditInput struct { DayOfWeek types.DayOfWeek // Metadata that can be used to manage the scheduled audit. - Tags []*types.Tag + Tags []types.Tag } type CreateScheduledAuditOutput struct { diff --git a/service/iot/api_op_CreateSecurityProfile.go b/service/iot/api_op_CreateSecurityProfile.go index 0a93b9eae10..d4941b76e50 100644 --- a/service/iot/api_op_CreateSecurityProfile.go +++ b/service/iot/api_op_CreateSecurityProfile.go @@ -38,25 +38,25 @@ type CreateSecurityProfileInput struct { // list of metrics whose data is retained (stored). By default, data is retained // for any metric used in the profile's behaviors, but it is also retained for any // metric specified here. - AdditionalMetricsToRetain []*string + AdditionalMetricsToRetain []string // A list of metrics whose data is retained (stored). By default, data is retained // for any metric used in the profile's behaviors, but it is also retained for any // metric specified here. - AdditionalMetricsToRetainV2 []*types.MetricToRetain + AdditionalMetricsToRetainV2 []types.MetricToRetain // Specifies the destinations to which alerts are sent. (Alerts are always sent to // the console.) Alerts are generated when a device (thing) violates a behavior. - AlertTargets map[string]*types.AlertTarget + AlertTargets map[string]types.AlertTarget // Specifies the behaviors that, when violated by a device (thing), cause an alert. - Behaviors []*types.Behavior + Behaviors []types.Behavior // A description of the security profile. SecurityProfileDescription *string // Metadata that can be used to manage the security profile. - Tags []*types.Tag + Tags []types.Tag } type CreateSecurityProfileOutput struct { diff --git a/service/iot/api_op_CreateStream.go b/service/iot/api_op_CreateStream.go index 3edd5d233ec..53286e4b758 100644 --- a/service/iot/api_op_CreateStream.go +++ b/service/iot/api_op_CreateStream.go @@ -34,7 +34,7 @@ type CreateStreamInput struct { // The files to stream. // // This member is required. - Files []*types.StreamFile + Files []types.StreamFile // An IAM role that allows the IoT service principal assumes to access your S3 // files. @@ -51,7 +51,7 @@ type CreateStreamInput struct { Description *string // Metadata which can be used to manage streams. - Tags []*types.Tag + Tags []types.Tag } type CreateStreamOutput struct { diff --git a/service/iot/api_op_CreateThingGroup.go b/service/iot/api_op_CreateThingGroup.go index 22343cb4fa8..4eb32597e96 100644 --- a/service/iot/api_op_CreateThingGroup.go +++ b/service/iot/api_op_CreateThingGroup.go @@ -40,7 +40,7 @@ type CreateThingGroupInput struct { ParentGroupName *string // Metadata which can be used to manage the thing group. - Tags []*types.Tag + Tags []types.Tag // The thing group properties. ThingGroupProperties *types.ThingGroupProperties diff --git a/service/iot/api_op_CreateThingType.go b/service/iot/api_op_CreateThingType.go index 62dd97dcccc..2c9d89db567 100644 --- a/service/iot/api_op_CreateThingType.go +++ b/service/iot/api_op_CreateThingType.go @@ -36,7 +36,7 @@ type CreateThingTypeInput struct { ThingTypeName *string // Metadata which can be used to manage the thing type. - Tags []*types.Tag + Tags []types.Tag // The ThingTypeProperties for the thing type to create. It contains information // about the new thing type including a description, and a list of searchable thing diff --git a/service/iot/api_op_DeleteAccountAuditConfiguration.go b/service/iot/api_op_DeleteAccountAuditConfiguration.go index fcba0846536..2a177706df2 100644 --- a/service/iot/api_op_DeleteAccountAuditConfiguration.go +++ b/service/iot/api_op_DeleteAccountAuditConfiguration.go @@ -31,7 +31,7 @@ func (c *Client) DeleteAccountAuditConfiguration(ctx context.Context, params *De type DeleteAccountAuditConfigurationInput struct { // If true, all scheduled audits are deleted. - DeleteScheduledAudits *bool + DeleteScheduledAudits bool } type DeleteAccountAuditConfigurationOutput struct { diff --git a/service/iot/api_op_DeleteCertificate.go b/service/iot/api_op_DeleteCertificate.go index b0f1735829c..4dcdb2cdcc0 100644 --- a/service/iot/api_op_DeleteCertificate.go +++ b/service/iot/api_op_DeleteCertificate.go @@ -41,7 +41,7 @@ type DeleteCertificateInput struct { // Forces the deletion of a certificate if it is inactive and is not attached to an // IoT thing. - ForceDelete *bool + ForceDelete bool } type DeleteCertificateOutput struct { diff --git a/service/iot/api_op_DeleteJob.go b/service/iot/api_op_DeleteJob.go index 2c637e5d01d..ab4195fd2d4 100644 --- a/service/iot/api_op_DeleteJob.go +++ b/service/iot/api_op_DeleteJob.go @@ -49,7 +49,7 @@ type DeleteJobInput struct { // unable to access job information or update the job execution status. Use caution // and ensure that each device executing a job which is deleted is able to recover // to a valid state. - Force *bool + Force bool // The namespace used to indicate that a job is a customer-managed job. When you // specify a value for this parameter, AWS IoT Core sends jobs notifications to diff --git a/service/iot/api_op_DeleteJobExecution.go b/service/iot/api_op_DeleteJobExecution.go index 3b90205b1d3..229f9fcf5ca 100644 --- a/service/iot/api_op_DeleteJobExecution.go +++ b/service/iot/api_op_DeleteJobExecution.go @@ -53,7 +53,7 @@ type DeleteJobExecutionInput struct { // "IN_PROGRESS", will cause the device to be unable to access job information or // update the job execution status. Use caution and ensure that the device is able // to recover to a valid state. - Force *bool + Force bool // The namespace used to indicate that a job is a customer-managed job. When you // specify a value for this parameter, AWS IoT Core sends jobs notifications to diff --git a/service/iot/api_op_DeleteOTAUpdate.go b/service/iot/api_op_DeleteOTAUpdate.go index 7c3f687ef92..3e5f02428e5 100644 --- a/service/iot/api_op_DeleteOTAUpdate.go +++ b/service/iot/api_op_DeleteOTAUpdate.go @@ -35,11 +35,11 @@ type DeleteOTAUpdateInput struct { // Specifies if the stream associated with an OTA update should be deleted when the // OTA update is deleted. - DeleteStream *bool + DeleteStream bool // Specifies if the AWS Job associated with the OTA update should be deleted when // the OTA update is deleted. - ForceDeleteAWSJob *bool + ForceDeleteAWSJob bool } type DeleteOTAUpdateOutput struct { diff --git a/service/iot/api_op_DeprecateThingType.go b/service/iot/api_op_DeprecateThingType.go index 1c3d6165e53..355b9294f71 100644 --- a/service/iot/api_op_DeprecateThingType.go +++ b/service/iot/api_op_DeprecateThingType.go @@ -37,7 +37,7 @@ type DeprecateThingTypeInput struct { // Whether to undeprecate a deprecated thing type. If true, the thing type will not // be deprecated anymore and you can associate it with things. - UndoDeprecate *bool + UndoDeprecate bool } // The output for the DeprecateThingType operation. diff --git a/service/iot/api_op_DescribeAccountAuditConfiguration.go b/service/iot/api_op_DescribeAccountAuditConfiguration.go index cfb68536971..0153cfcb46c 100644 --- a/service/iot/api_op_DescribeAccountAuditConfiguration.go +++ b/service/iot/api_op_DescribeAccountAuditConfiguration.go @@ -35,11 +35,11 @@ type DescribeAccountAuditConfigurationInput struct { type DescribeAccountAuditConfigurationOutput struct { // Which audit checks are enabled and disabled for this account. - AuditCheckConfigurations map[string]*types.AuditCheckConfiguration + AuditCheckConfigurations map[string]types.AuditCheckConfiguration // Information about the targets to which audit notifications are sent for this // account. - AuditNotificationTargetConfigurations map[string]*types.AuditNotificationTarget + AuditNotificationTargetConfigurations map[string]types.AuditNotificationTarget // The ARN of the role that grants permission to AWS IoT to access information // about your devices, policies, certificates, and other items as required when diff --git a/service/iot/api_op_DescribeAuditMitigationActionsTask.go b/service/iot/api_op_DescribeAuditMitigationActionsTask.go index 4b18741a194..872148488f0 100644 --- a/service/iot/api_op_DescribeAuditMitigationActionsTask.go +++ b/service/iot/api_op_DescribeAuditMitigationActionsTask.go @@ -43,11 +43,11 @@ type DescribeAuditMitigationActionsTaskOutput struct { // Specifies the mitigation actions and their parameters that are applied as part // of this task. - ActionsDefinition []*types.MitigationAction + ActionsDefinition []types.MitigationAction // Specifies the mitigation actions that should be applied to specific audit // checks. - AuditCheckToActionsMapping map[string][]*string + AuditCheckToActionsMapping map[string][]string // The date and time when the task was completed or canceled. EndTime *time.Time @@ -61,7 +61,7 @@ type DescribeAuditMitigationActionsTaskOutput struct { // Aggregate counts of the results when the mitigation tasks were applied to the // findings for this audit mitigation actions task. - TaskStatistics map[string]*types.TaskStatisticsForAuditCheck + TaskStatistics map[string]types.TaskStatisticsForAuditCheck // The current status of the task. TaskStatus types.AuditMitigationActionsTaskStatus diff --git a/service/iot/api_op_DescribeAuditTask.go b/service/iot/api_op_DescribeAuditTask.go index e1489f26402..3b369039ec9 100644 --- a/service/iot/api_op_DescribeAuditTask.go +++ b/service/iot/api_op_DescribeAuditTask.go @@ -39,7 +39,7 @@ type DescribeAuditTaskInput struct { type DescribeAuditTaskOutput struct { // Detailed information about each check performed during this audit. - AuditDetails map[string]*types.AuditCheckDetails + AuditDetails map[string]types.AuditCheckDetails // The name of the scheduled audit (only if the audit was a scheduled audit). ScheduledAuditName *string diff --git a/service/iot/api_op_DescribeBillingGroup.go b/service/iot/api_op_DescribeBillingGroup.go index d0f707b0138..6a8483232d0 100644 --- a/service/iot/api_op_DescribeBillingGroup.go +++ b/service/iot/api_op_DescribeBillingGroup.go @@ -53,7 +53,7 @@ type DescribeBillingGroupOutput struct { BillingGroupProperties *types.BillingGroupProperties // The version of the billing group. - Version *int64 + Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_DescribeDimension.go b/service/iot/api_op_DescribeDimension.go index f48a024eca6..990923850ca 100644 --- a/service/iot/api_op_DescribeDimension.go +++ b/service/iot/api_op_DescribeDimension.go @@ -52,7 +52,7 @@ type DescribeDimensionOutput struct { // The value or list of values used to scope the dimension. For example, for topic // filters, this is the pattern used to match the MQTT topic name. - StringValues []*string + StringValues []string // The type of the dimension. Type types.DimensionType diff --git a/service/iot/api_op_DescribeDomainConfiguration.go b/service/iot/api_op_DescribeDomainConfiguration.go index e988313543a..2e6fc91d5a3 100644 --- a/service/iot/api_op_DescribeDomainConfiguration.go +++ b/service/iot/api_op_DescribeDomainConfiguration.go @@ -62,7 +62,7 @@ type DescribeDomainConfigurationOutput struct { // A list containing summary information about the server certificate included in // the domain configuration. - ServerCertificates []*types.ServerCertificateSummary + ServerCertificates []types.ServerCertificateSummary // The type of service delivered by the endpoint. ServiceType types.ServiceType diff --git a/service/iot/api_op_DescribeEventConfigurations.go b/service/iot/api_op_DescribeEventConfigurations.go index 9afefab71b2..c0774019b70 100644 --- a/service/iot/api_op_DescribeEventConfigurations.go +++ b/service/iot/api_op_DescribeEventConfigurations.go @@ -37,7 +37,7 @@ type DescribeEventConfigurationsOutput struct { CreationDate *time.Time // The event configurations. - EventConfigurations map[string]*types.Configuration + EventConfigurations map[string]types.Configuration // The date the event configurations were last modified. LastModifiedDate *time.Time diff --git a/service/iot/api_op_DescribeProvisioningTemplate.go b/service/iot/api_op_DescribeProvisioningTemplate.go index 7b84d5e32e8..a2e97f52c70 100644 --- a/service/iot/api_op_DescribeProvisioningTemplate.go +++ b/service/iot/api_op_DescribeProvisioningTemplate.go @@ -48,7 +48,7 @@ type DescribeProvisioningTemplateOutput struct { Description *string // True if the fleet provisioning template is enabled, otherwise false. - Enabled *bool + Enabled bool // The date when the fleet provisioning template was last modified. LastModifiedDate *time.Time diff --git a/service/iot/api_op_DescribeProvisioningTemplateVersion.go b/service/iot/api_op_DescribeProvisioningTemplateVersion.go index f0ff458542c..67fab1ff062 100644 --- a/service/iot/api_op_DescribeProvisioningTemplateVersion.go +++ b/service/iot/api_op_DescribeProvisioningTemplateVersion.go @@ -46,7 +46,7 @@ type DescribeProvisioningTemplateVersionOutput struct { CreationDate *time.Time // True if the fleet provisioning template version is the default version. - IsDefaultVersion *bool + IsDefaultVersion bool // The JSON formatted contents of the fleet provisioning template version. TemplateBody *string diff --git a/service/iot/api_op_DescribeScheduledAudit.go b/service/iot/api_op_DescribeScheduledAudit.go index a2605dcc70f..0a251a227fc 100644 --- a/service/iot/api_op_DescribeScheduledAudit.go +++ b/service/iot/api_op_DescribeScheduledAudit.go @@ -60,7 +60,7 @@ type DescribeScheduledAuditOutput struct { // for your account. (Use DescribeAccountAuditConfiguration to see the list of all // checks, including those that are enabled or use UpdateAccountAuditConfiguration // to select which checks are enabled.) - TargetCheckNames []*string + TargetCheckNames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_DescribeSecurityProfile.go b/service/iot/api_op_DescribeSecurityProfile.go index 532a107daca..5811130ab46 100644 --- a/service/iot/api_op_DescribeSecurityProfile.go +++ b/service/iot/api_op_DescribeSecurityProfile.go @@ -42,18 +42,18 @@ type DescribeSecurityProfileOutput struct { // A list of metrics whose data is retained (stored). By default, data is retained // for any metric used in the profile's behaviors, but it is also retained for any // metric specified here. - AdditionalMetricsToRetain []*string + AdditionalMetricsToRetain []string // A list of metrics whose data is retained (stored). By default, data is retained // for any metric used in the profile's behaviors, but it is also retained for any // metric specified here. - AdditionalMetricsToRetainV2 []*types.MetricToRetain + AdditionalMetricsToRetainV2 []types.MetricToRetain // Where the alerts are sent. (Alerts are always sent to the console.) - AlertTargets map[string]*types.AlertTarget + AlertTargets map[string]types.AlertTarget // Specifies the behaviors that, when violated by a device (thing), cause an alert. - Behaviors []*types.Behavior + Behaviors []types.Behavior // The time the security profile was created. CreationDate *time.Time @@ -73,7 +73,7 @@ type DescribeSecurityProfileOutput struct { // The version of the security profile. A new version is generated whenever the // security profile is updated. - Version *int64 + Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_DescribeThing.go b/service/iot/api_op_DescribeThing.go index 223831527b7..e421a5293a9 100644 --- a/service/iot/api_op_DescribeThing.go +++ b/service/iot/api_op_DescribeThing.go @@ -39,7 +39,7 @@ type DescribeThingInput struct { type DescribeThingOutput struct { // The thing attributes. - Attributes map[string]*string + Attributes map[string]string // The name of the billing group the thing belongs to. BillingGroupName *string @@ -68,7 +68,7 @@ type DescribeThingOutput struct { // The current version of the thing record in the registry. To avoid unintentional // changes to the information in the registry, you can pass the version information // in the expectedVersion parameter of the UpdateThing and DeleteThing calls. - Version *int64 + Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_DescribeThingGroup.go b/service/iot/api_op_DescribeThingGroup.go index e6ed3393d80..4033213f374 100644 --- a/service/iot/api_op_DescribeThingGroup.go +++ b/service/iot/api_op_DescribeThingGroup.go @@ -65,7 +65,7 @@ type DescribeThingGroupOutput struct { ThingGroupProperties *types.ThingGroupProperties // The version of the thing group. - Version *int64 + Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_DescribeThingRegistrationTask.go b/service/iot/api_op_DescribeThingRegistrationTask.go index 0bdaaf2616a..a631d1b3777 100644 --- a/service/iot/api_op_DescribeThingRegistrationTask.go +++ b/service/iot/api_op_DescribeThingRegistrationTask.go @@ -42,7 +42,7 @@ type DescribeThingRegistrationTaskOutput struct { CreationDate *time.Time // The number of things that failed to be provisioned. - FailureCount *int32 + FailureCount int32 // The S3 bucket that contains the input file. InputFileBucket *string @@ -57,7 +57,7 @@ type DescribeThingRegistrationTaskOutput struct { Message *string // The progress of the bulk provisioning task expressed as a percentage. - PercentageProgress *int32 + PercentageProgress int32 // The role ARN that grants access to the input file bucket. RoleArn *string @@ -66,7 +66,7 @@ type DescribeThingRegistrationTaskOutput struct { Status types.Status // The number of things successfully provisioned. - SuccessCount *int32 + SuccessCount int32 // The task ID. TaskId *string diff --git a/service/iot/api_op_GetCardinality.go b/service/iot/api_op_GetCardinality.go index ba4f5e107e0..538ddb23687 100644 --- a/service/iot/api_op_GetCardinality.go +++ b/service/iot/api_op_GetCardinality.go @@ -46,7 +46,7 @@ type GetCardinalityInput struct { type GetCardinalityOutput struct { // The approximate count of unique values that match the query. - Cardinality *int32 + Cardinality int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_GetEffectivePolicies.go b/service/iot/api_op_GetEffectivePolicies.go index f7f8e1a7390..b4c69fde807 100644 --- a/service/iot/api_op_GetEffectivePolicies.go +++ b/service/iot/api_op_GetEffectivePolicies.go @@ -45,7 +45,7 @@ type GetEffectivePoliciesInput struct { type GetEffectivePoliciesOutput struct { // The effective policies. - EffectivePolicies []*types.EffectivePolicy + EffectivePolicies []types.EffectivePolicy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_GetPercentiles.go b/service/iot/api_op_GetPercentiles.go index 9b304dd7197..c1f8e8b807f 100644 --- a/service/iot/api_op_GetPercentiles.go +++ b/service/iot/api_op_GetPercentiles.go @@ -49,7 +49,7 @@ type GetPercentilesInput struct { IndexName *string // The percentile groups returned. - Percents []*float64 + Percents []float64 // The query version. QueryVersion *string @@ -58,7 +58,7 @@ type GetPercentilesInput struct { type GetPercentilesOutput struct { // The percentile values of the aggregated fields. - Percentiles []*types.PercentPair + Percentiles []types.PercentPair // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_GetPolicyVersion.go b/service/iot/api_op_GetPolicyVersion.go index c4268b7eeb1..b0a59c88a39 100644 --- a/service/iot/api_op_GetPolicyVersion.go +++ b/service/iot/api_op_GetPolicyVersion.go @@ -51,7 +51,7 @@ type GetPolicyVersionOutput struct { GenerationId *string // Specifies whether the policy version is the default. - IsDefaultVersion *bool + IsDefaultVersion bool // The date the policy was last modified. LastModifiedDate *time.Time diff --git a/service/iot/api_op_GetV2LoggingOptions.go b/service/iot/api_op_GetV2LoggingOptions.go index 0794c894ae0..cf178ef4e44 100644 --- a/service/iot/api_op_GetV2LoggingOptions.go +++ b/service/iot/api_op_GetV2LoggingOptions.go @@ -36,7 +36,7 @@ type GetV2LoggingOptionsOutput struct { DefaultLogLevel types.LogLevel // Disables all logs. - DisableAllLogs *bool + DisableAllLogs bool // The IAM role ARN AWS IoT uses to write to your CloudWatch logs. RoleArn *string diff --git a/service/iot/api_op_ListActiveViolations.go b/service/iot/api_op_ListActiveViolations.go index c272d1770da..b8e440fd5a6 100644 --- a/service/iot/api_op_ListActiveViolations.go +++ b/service/iot/api_op_ListActiveViolations.go @@ -46,7 +46,7 @@ type ListActiveViolationsInput struct { type ListActiveViolationsOutput struct { // The list of active violations. - ActiveViolations []*types.ActiveViolation + ActiveViolations []types.ActiveViolation // A token that can be used to retrieve the next set of results, or null if there // are no additional results. diff --git a/service/iot/api_op_ListAttachedPolicies.go b/service/iot/api_op_ListAttachedPolicies.go index 1c3853d7f6b..f266e72f987 100644 --- a/service/iot/api_op_ListAttachedPolicies.go +++ b/service/iot/api_op_ListAttachedPolicies.go @@ -44,7 +44,7 @@ type ListAttachedPoliciesInput struct { PageSize *int32 // When true, recursively list attached policies. - Recursive *bool + Recursive bool } type ListAttachedPoliciesOutput struct { @@ -54,7 +54,7 @@ type ListAttachedPoliciesOutput struct { NextMarker *string // The policies. - Policies []*types.Policy + Policies []types.Policy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListAuditFindings.go b/service/iot/api_op_ListAuditFindings.go index 5bac85f59bc..c5921271aa8 100644 --- a/service/iot/api_op_ListAuditFindings.go +++ b/service/iot/api_op_ListAuditFindings.go @@ -41,7 +41,7 @@ type ListAuditFindingsInput struct { // Boolean flag indicating whether only the suppressed findings or the unsuppressed // findings should be listed. If this parameter isn't provided, the response will // list both suppressed and unsuppressed findings. - ListSuppressedFindings *bool + ListSuppressedFindings bool // The maximum number of results to return at one time. The default is 25. MaxResults *int32 @@ -64,7 +64,7 @@ type ListAuditFindingsInput struct { type ListAuditFindingsOutput struct { // The findings (results) of the audit. - Findings []*types.AuditFinding + Findings []types.AuditFinding // A token that can be used to retrieve the next set of results, or null if there // are no additional results. diff --git a/service/iot/api_op_ListAuditMitigationActionsExecutions.go b/service/iot/api_op_ListAuditMitigationActionsExecutions.go index 71e0950b185..08f1e0e21fb 100644 --- a/service/iot/api_op_ListAuditMitigationActionsExecutions.go +++ b/service/iot/api_op_ListAuditMitigationActionsExecutions.go @@ -55,7 +55,7 @@ type ListAuditMitigationActionsExecutionsOutput struct { // A set of task execution results based on the input parameters. Details include // the mitigation action applied, start time, and task status. - ActionsExecutions []*types.AuditMitigationActionExecutionMetadata + ActionsExecutions []types.AuditMitigationActionExecutionMetadata // The token for the next set of results. NextToken *string diff --git a/service/iot/api_op_ListAuditMitigationActionsTasks.go b/service/iot/api_op_ListAuditMitigationActionsTasks.go index 03eb9e9a406..fda63846a8b 100644 --- a/service/iot/api_op_ListAuditMitigationActionsTasks.go +++ b/service/iot/api_op_ListAuditMitigationActionsTasks.go @@ -66,7 +66,7 @@ type ListAuditMitigationActionsTasksOutput struct { NextToken *string // The collection of audit mitigation tasks that matched the filter criteria. - Tasks []*types.AuditMitigationActionsTaskMetadata + Tasks []types.AuditMitigationActionsTaskMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListAuditSuppressions.go b/service/iot/api_op_ListAuditSuppressions.go index a13b16aef8a..c38f5b79c9f 100644 --- a/service/iot/api_op_ListAuditSuppressions.go +++ b/service/iot/api_op_ListAuditSuppressions.go @@ -31,7 +31,7 @@ type ListAuditSuppressionsInput struct { // Determines whether suppressions are listed in ascending order by expiration date // or not. If parameter isn't provided, ascendingOrder=true. - AscendingOrder *bool + AscendingOrder bool // An audit check name. Checks must be enabled for your account. (Use // DescribeAccountAuditConfiguration to see the list of all checks, including those @@ -56,7 +56,7 @@ type ListAuditSuppressionsOutput struct { NextToken *string // List of audit suppressions. - Suppressions []*types.AuditSuppression + Suppressions []types.AuditSuppression // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListAuditTasks.go b/service/iot/api_op_ListAuditTasks.go index cf000f5813a..955b2a3b772 100644 --- a/service/iot/api_op_ListAuditTasks.go +++ b/service/iot/api_op_ListAuditTasks.go @@ -65,7 +65,7 @@ type ListAuditTasksOutput struct { NextToken *string // The audits that were performed during the specified time period. - Tasks []*types.AuditTaskMetadata + Tasks []types.AuditTaskMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListAuthorizers.go b/service/iot/api_op_ListAuthorizers.go index 193e0ebdbcf..1e34b6fca9a 100644 --- a/service/iot/api_op_ListAuthorizers.go +++ b/service/iot/api_op_ListAuthorizers.go @@ -30,7 +30,7 @@ func (c *Client) ListAuthorizers(ctx context.Context, params *ListAuthorizersInp type ListAuthorizersInput struct { // Return the list of authorizers in ascending alphabetical order. - AscendingOrder *bool + AscendingOrder bool // A marker used to get the next set of results. Marker *string @@ -45,7 +45,7 @@ type ListAuthorizersInput struct { type ListAuthorizersOutput struct { // The authorizers. - Authorizers []*types.AuthorizerSummary + Authorizers []types.AuthorizerSummary // A marker used to get the next set of results. NextMarker *string diff --git a/service/iot/api_op_ListBillingGroups.go b/service/iot/api_op_ListBillingGroups.go index 2448a7ee3ca..7a2008928f9 100644 --- a/service/iot/api_op_ListBillingGroups.go +++ b/service/iot/api_op_ListBillingGroups.go @@ -42,7 +42,7 @@ type ListBillingGroupsInput struct { type ListBillingGroupsOutput struct { // The list of billing groups. - BillingGroups []*types.GroupNameAndArn + BillingGroups []types.GroupNameAndArn // The token used to get the next set of results, or null if there are no // additional results. diff --git a/service/iot/api_op_ListCACertificates.go b/service/iot/api_op_ListCACertificates.go index b2243c4f9fd..de7c6ee75cb 100644 --- a/service/iot/api_op_ListCACertificates.go +++ b/service/iot/api_op_ListCACertificates.go @@ -33,7 +33,7 @@ func (c *Client) ListCACertificates(ctx context.Context, params *ListCACertifica type ListCACertificatesInput struct { // Determines the order of the results. - AscendingOrder *bool + AscendingOrder bool // The marker for the next set of results. Marker *string @@ -46,7 +46,7 @@ type ListCACertificatesInput struct { type ListCACertificatesOutput struct { // The CA certificates registered in your AWS account. - Certificates []*types.CACertificate + Certificates []types.CACertificate // The current position within the list of CA certificates. NextMarker *string diff --git a/service/iot/api_op_ListCertificates.go b/service/iot/api_op_ListCertificates.go index 32535e000e2..00896c7546e 100644 --- a/service/iot/api_op_ListCertificates.go +++ b/service/iot/api_op_ListCertificates.go @@ -34,7 +34,7 @@ type ListCertificatesInput struct { // Specifies the order for results. If True, the results are returned in ascending // order, based on the creation date. - AscendingOrder *bool + AscendingOrder bool // The marker for the next set of results. Marker *string @@ -47,7 +47,7 @@ type ListCertificatesInput struct { type ListCertificatesOutput struct { // The descriptions of the certificates. - Certificates []*types.Certificate + Certificates []types.Certificate // The marker for the next set of results, or null if there are no additional // results. diff --git a/service/iot/api_op_ListCertificatesByCA.go b/service/iot/api_op_ListCertificatesByCA.go index 18a02f901e8..40846266da2 100644 --- a/service/iot/api_op_ListCertificatesByCA.go +++ b/service/iot/api_op_ListCertificatesByCA.go @@ -38,7 +38,7 @@ type ListCertificatesByCAInput struct { // Specifies the order for results. If True, the results are returned in ascending // order, based on the creation date. - AscendingOrder *bool + AscendingOrder bool // The marker for the next set of results. Marker *string @@ -51,7 +51,7 @@ type ListCertificatesByCAInput struct { type ListCertificatesByCAOutput struct { // The device certificates signed by the specified CA certificate. - Certificates []*types.Certificate + Certificates []types.Certificate // The marker for the next set of results, or null if there are no additional // results. diff --git a/service/iot/api_op_ListDimensions.go b/service/iot/api_op_ListDimensions.go index 4c0ecc50218..b6337c83f1d 100644 --- a/service/iot/api_op_ListDimensions.go +++ b/service/iot/api_op_ListDimensions.go @@ -39,7 +39,7 @@ type ListDimensionsOutput struct { // A list of the names of the defined dimensions. Use DescribeDimension to get // details for a dimension. - DimensionNames []*string + DimensionNames []string // A token that can be used to retrieve the next set of results, or null if there // are no additional results. diff --git a/service/iot/api_op_ListDomainConfigurations.go b/service/iot/api_op_ListDomainConfigurations.go index 12a5fe14329..2bb7189d849 100644 --- a/service/iot/api_op_ListDomainConfigurations.go +++ b/service/iot/api_op_ListDomainConfigurations.go @@ -45,7 +45,7 @@ type ListDomainConfigurationsOutput struct { // A list of objects that contain summary information about the user's domain // configurations. - DomainConfigurations []*types.DomainConfigurationSummary + DomainConfigurations []types.DomainConfigurationSummary // The marker for the next set of results. NextMarker *string diff --git a/service/iot/api_op_ListIndices.go b/service/iot/api_op_ListIndices.go index bfe4077b1e3..59ff0a035dd 100644 --- a/service/iot/api_op_ListIndices.go +++ b/service/iot/api_op_ListIndices.go @@ -39,7 +39,7 @@ type ListIndicesInput struct { type ListIndicesOutput struct { // The index names. - IndexNames []*string + IndexNames []string // The token used to get the next set of results, or null if there are no // additional results. diff --git a/service/iot/api_op_ListJobExecutionsForJob.go b/service/iot/api_op_ListJobExecutionsForJob.go index cad6ca09c27..f86933daf20 100644 --- a/service/iot/api_op_ListJobExecutionsForJob.go +++ b/service/iot/api_op_ListJobExecutionsForJob.go @@ -47,7 +47,7 @@ type ListJobExecutionsForJobInput struct { type ListJobExecutionsForJobOutput struct { // A list of job execution summaries. - ExecutionSummaries []*types.JobExecutionSummaryForJob + ExecutionSummaries []types.JobExecutionSummaryForJob // The token for the next set of results, or null if there are no additional // results. diff --git a/service/iot/api_op_ListJobExecutionsForThing.go b/service/iot/api_op_ListJobExecutionsForThing.go index 6f722cb9014..8fca4935f7c 100644 --- a/service/iot/api_op_ListJobExecutionsForThing.go +++ b/service/iot/api_op_ListJobExecutionsForThing.go @@ -54,7 +54,7 @@ type ListJobExecutionsForThingInput struct { type ListJobExecutionsForThingOutput struct { // A list of job execution summaries. - ExecutionSummaries []*types.JobExecutionSummaryForThing + ExecutionSummaries []types.JobExecutionSummaryForThing // The token for the next set of results, or null if there are no additional // results. diff --git a/service/iot/api_op_ListJobs.go b/service/iot/api_op_ListJobs.go index df6dcadddb7..7a1ab9e9555 100644 --- a/service/iot/api_op_ListJobs.go +++ b/service/iot/api_op_ListJobs.go @@ -63,7 +63,7 @@ type ListJobsInput struct { type ListJobsOutput struct { // A list of jobs. - Jobs []*types.JobSummary + Jobs []types.JobSummary // The token for the next set of results, or null if there are no additional // results. diff --git a/service/iot/api_op_ListMitigationActions.go b/service/iot/api_op_ListMitigationActions.go index dd096dc8d23..25b8817f722 100644 --- a/service/iot/api_op_ListMitigationActions.go +++ b/service/iot/api_op_ListMitigationActions.go @@ -43,7 +43,7 @@ type ListMitigationActionsInput struct { type ListMitigationActionsOutput struct { // A set of actions that matched the specified filter criteria. - ActionIdentifiers []*types.MitigationActionIdentifier + ActionIdentifiers []types.MitigationActionIdentifier // The token for the next set of results. NextToken *string diff --git a/service/iot/api_op_ListOTAUpdates.go b/service/iot/api_op_ListOTAUpdates.go index d79ec251b38..0164fbee571 100644 --- a/service/iot/api_op_ListOTAUpdates.go +++ b/service/iot/api_op_ListOTAUpdates.go @@ -45,7 +45,7 @@ type ListOTAUpdatesOutput struct { NextToken *string // A list of OTA update jobs. - OtaUpdates []*types.OTAUpdateSummary + OtaUpdates []types.OTAUpdateSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListOutgoingCertificates.go b/service/iot/api_op_ListOutgoingCertificates.go index 765ae4b2765..f0904fa5253 100644 --- a/service/iot/api_op_ListOutgoingCertificates.go +++ b/service/iot/api_op_ListOutgoingCertificates.go @@ -32,7 +32,7 @@ type ListOutgoingCertificatesInput struct { // Specifies the order for results. If True, the results are returned in ascending // order, based on the creation date. - AscendingOrder *bool + AscendingOrder bool // The marker for the next set of results. Marker *string @@ -48,7 +48,7 @@ type ListOutgoingCertificatesOutput struct { NextMarker *string // The certificates that are being transferred but not yet accepted. - OutgoingCertificates []*types.OutgoingCertificate + OutgoingCertificates []types.OutgoingCertificate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListPolicies.go b/service/iot/api_op_ListPolicies.go index 2b2e3bec81a..2565832c42f 100644 --- a/service/iot/api_op_ListPolicies.go +++ b/service/iot/api_op_ListPolicies.go @@ -32,7 +32,7 @@ type ListPoliciesInput struct { // Specifies the order for results. If true, the results are returned in ascending // creation order. - AscendingOrder *bool + AscendingOrder bool // The marker for the next set of results. Marker *string @@ -49,7 +49,7 @@ type ListPoliciesOutput struct { NextMarker *string // The descriptions of the policies. - Policies []*types.Policy + Policies []types.Policy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListPolicyPrincipals.go b/service/iot/api_op_ListPolicyPrincipals.go index cf355427b73..f9d1c5ddbdd 100644 --- a/service/iot/api_op_ListPolicyPrincipals.go +++ b/service/iot/api_op_ListPolicyPrincipals.go @@ -37,7 +37,7 @@ type ListPolicyPrincipalsInput struct { // Specifies the order for results. If true, the results are returned in ascending // creation order. - AscendingOrder *bool + AscendingOrder bool // The marker for the next set of results. Marker *string @@ -54,7 +54,7 @@ type ListPolicyPrincipalsOutput struct { NextMarker *string // The descriptions of the principals. - Principals []*string + Principals []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListPolicyVersions.go b/service/iot/api_op_ListPolicyVersions.go index 94da9d18871..adce3a8c251 100644 --- a/service/iot/api_op_ListPolicyVersions.go +++ b/service/iot/api_op_ListPolicyVersions.go @@ -40,7 +40,7 @@ type ListPolicyVersionsInput struct { type ListPolicyVersionsOutput struct { // The policy versions. - PolicyVersions []*types.PolicyVersion + PolicyVersions []types.PolicyVersion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListPrincipalPolicies.go b/service/iot/api_op_ListPrincipalPolicies.go index dfe8c6e3d44..a0b91cb71b1 100644 --- a/service/iot/api_op_ListPrincipalPolicies.go +++ b/service/iot/api_op_ListPrincipalPolicies.go @@ -42,7 +42,7 @@ type ListPrincipalPoliciesInput struct { // Specifies the order for results. If true, results are returned in ascending // creation order. - AscendingOrder *bool + AscendingOrder bool // The marker for the next set of results. Marker *string @@ -59,7 +59,7 @@ type ListPrincipalPoliciesOutput struct { NextMarker *string // The policies. - Policies []*types.Policy + Policies []types.Policy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListPrincipalThings.go b/service/iot/api_op_ListPrincipalThings.go index a137f788c09..b38e52f2cfb 100644 --- a/service/iot/api_op_ListPrincipalThings.go +++ b/service/iot/api_op_ListPrincipalThings.go @@ -51,7 +51,7 @@ type ListPrincipalThingsOutput struct { NextToken *string // The things. - Things []*string + Things []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListProvisioningTemplateVersions.go b/service/iot/api_op_ListProvisioningTemplateVersions.go index be36233c3e1..b6e2fbb8776 100644 --- a/service/iot/api_op_ListProvisioningTemplateVersions.go +++ b/service/iot/api_op_ListProvisioningTemplateVersions.go @@ -47,7 +47,7 @@ type ListProvisioningTemplateVersionsOutput struct { NextToken *string // The list of fleet provisioning template versions. - Versions []*types.ProvisioningTemplateVersionSummary + Versions []types.ProvisioningTemplateVersionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListProvisioningTemplates.go b/service/iot/api_op_ListProvisioningTemplates.go index 805d5b50150..7d29fb8419d 100644 --- a/service/iot/api_op_ListProvisioningTemplates.go +++ b/service/iot/api_op_ListProvisioningTemplates.go @@ -42,7 +42,7 @@ type ListProvisioningTemplatesOutput struct { NextToken *string // A list of fleet provisioning templates - Templates []*types.ProvisioningTemplateSummary + Templates []types.ProvisioningTemplateSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListRoleAliases.go b/service/iot/api_op_ListRoleAliases.go index 7b585cb6365..aefdf744abe 100644 --- a/service/iot/api_op_ListRoleAliases.go +++ b/service/iot/api_op_ListRoleAliases.go @@ -29,7 +29,7 @@ func (c *Client) ListRoleAliases(ctx context.Context, params *ListRoleAliasesInp type ListRoleAliasesInput struct { // Return the list of role aliases in ascending alphabetical order. - AscendingOrder *bool + AscendingOrder bool // A marker used to get the next set of results. Marker *string @@ -44,7 +44,7 @@ type ListRoleAliasesOutput struct { NextMarker *string // The role aliases. - RoleAliases []*string + RoleAliases []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListScheduledAudits.go b/service/iot/api_op_ListScheduledAudits.go index f6afea22eef..bf648baf3bb 100644 --- a/service/iot/api_op_ListScheduledAudits.go +++ b/service/iot/api_op_ListScheduledAudits.go @@ -43,7 +43,7 @@ type ListScheduledAuditsOutput struct { NextToken *string // The list of scheduled audits. - ScheduledAudits []*types.ScheduledAuditMetadata + ScheduledAudits []types.ScheduledAuditMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListSecurityProfiles.go b/service/iot/api_op_ListSecurityProfiles.go index 9091a98b691..677ca3ba21b 100644 --- a/service/iot/api_op_ListSecurityProfiles.go +++ b/service/iot/api_op_ListSecurityProfiles.go @@ -49,7 +49,7 @@ type ListSecurityProfilesOutput struct { NextToken *string // A list of security profile identifiers (names and ARNs). - SecurityProfileIdentifiers []*types.SecurityProfileIdentifier + SecurityProfileIdentifiers []types.SecurityProfileIdentifier // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListSecurityProfilesForTarget.go b/service/iot/api_op_ListSecurityProfilesForTarget.go index 59ca8a52e01..d3a457bc79d 100644 --- a/service/iot/api_op_ListSecurityProfilesForTarget.go +++ b/service/iot/api_op_ListSecurityProfilesForTarget.go @@ -42,7 +42,7 @@ type ListSecurityProfilesForTargetInput struct { NextToken *string // If true, return child groups too. - Recursive *bool + Recursive bool } type ListSecurityProfilesForTargetOutput struct { @@ -52,7 +52,7 @@ type ListSecurityProfilesForTargetOutput struct { NextToken *string // A list of security profiles and their associated targets. - SecurityProfileTargetMappings []*types.SecurityProfileTargetMapping + SecurityProfileTargetMappings []types.SecurityProfileTargetMapping // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListStreams.go b/service/iot/api_op_ListStreams.go index 2f1fc466def..50f11446a53 100644 --- a/service/iot/api_op_ListStreams.go +++ b/service/iot/api_op_ListStreams.go @@ -30,7 +30,7 @@ func (c *Client) ListStreams(ctx context.Context, params *ListStreamsInput, optF type ListStreamsInput struct { // Set to true to return the list of streams in ascending order. - AscendingOrder *bool + AscendingOrder bool // The maximum number of results to return at a time. MaxResults *int32 @@ -45,7 +45,7 @@ type ListStreamsOutput struct { NextToken *string // A list of streams. - Streams []*types.StreamSummary + Streams []types.StreamSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListTagsForResource.go b/service/iot/api_op_ListTagsForResource.go index 5077f86717d..c9f03c6ea22 100644 --- a/service/iot/api_op_ListTagsForResource.go +++ b/service/iot/api_op_ListTagsForResource.go @@ -45,7 +45,7 @@ type ListTagsForResourceOutput struct { NextToken *string // The list of tags assigned to the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListTargetsForPolicy.go b/service/iot/api_op_ListTargetsForPolicy.go index 14938b25d53..1e12aa01d2d 100644 --- a/service/iot/api_op_ListTargetsForPolicy.go +++ b/service/iot/api_op_ListTargetsForPolicy.go @@ -46,7 +46,7 @@ type ListTargetsForPolicyOutput struct { NextMarker *string // The policy targets. - Targets []*string + Targets []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListTargetsForSecurityProfile.go b/service/iot/api_op_ListTargetsForSecurityProfile.go index 6dedaea4452..59ed7e15b72 100644 --- a/service/iot/api_op_ListTargetsForSecurityProfile.go +++ b/service/iot/api_op_ListTargetsForSecurityProfile.go @@ -49,7 +49,7 @@ type ListTargetsForSecurityProfileOutput struct { NextToken *string // The thing groups to which the security profile is attached. - SecurityProfileTargets []*types.SecurityProfileTarget + SecurityProfileTargets []types.SecurityProfileTarget // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListThingGroups.go b/service/iot/api_op_ListThingGroups.go index 317b3297789..267fd3ba406 100644 --- a/service/iot/api_op_ListThingGroups.go +++ b/service/iot/api_op_ListThingGroups.go @@ -52,7 +52,7 @@ type ListThingGroupsOutput struct { NextToken *string // The thing groups. - ThingGroups []*types.GroupNameAndArn + ThingGroups []types.GroupNameAndArn // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListThingGroupsForThing.go b/service/iot/api_op_ListThingGroupsForThing.go index 3009f83ab23..fcf4bd260ae 100644 --- a/service/iot/api_op_ListThingGroupsForThing.go +++ b/service/iot/api_op_ListThingGroupsForThing.go @@ -48,7 +48,7 @@ type ListThingGroupsForThingOutput struct { NextToken *string // The thing groups. - ThingGroups []*types.GroupNameAndArn + ThingGroups []types.GroupNameAndArn // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListThingPrincipals.go b/service/iot/api_op_ListThingPrincipals.go index 4be53b779f6..12819d6cf9a 100644 --- a/service/iot/api_op_ListThingPrincipals.go +++ b/service/iot/api_op_ListThingPrincipals.go @@ -41,7 +41,7 @@ type ListThingPrincipalsInput struct { type ListThingPrincipalsOutput struct { // The principals associated with the thing. - Principals []*string + Principals []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListThingRegistrationTaskReports.go b/service/iot/api_op_ListThingRegistrationTaskReports.go index be96b31333c..e7418b7ea09 100644 --- a/service/iot/api_op_ListThingRegistrationTaskReports.go +++ b/service/iot/api_op_ListThingRegistrationTaskReports.go @@ -56,7 +56,7 @@ type ListThingRegistrationTaskReportsOutput struct { ReportType types.ReportType // Links to the task resources. - ResourceLinks []*string + ResourceLinks []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListThingRegistrationTasks.go b/service/iot/api_op_ListThingRegistrationTasks.go index d58d5404f2b..32bd5937e70 100644 --- a/service/iot/api_op_ListThingRegistrationTasks.go +++ b/service/iot/api_op_ListThingRegistrationTasks.go @@ -46,7 +46,7 @@ type ListThingRegistrationTasksOutput struct { NextToken *string // A list of bulk thing provisioning task IDs. - TaskIds []*string + TaskIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListThingTypes.go b/service/iot/api_op_ListThingTypes.go index 84be6fe200b..7e6950c4f0b 100644 --- a/service/iot/api_op_ListThingTypes.go +++ b/service/iot/api_op_ListThingTypes.go @@ -48,7 +48,7 @@ type ListThingTypesOutput struct { NextToken *string // The thing types. - ThingTypes []*types.ThingTypeDefinition + ThingTypes []types.ThingTypeDefinition // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListThings.go b/service/iot/api_op_ListThings.go index 4ed6314221d..c4d42e2df7c 100644 --- a/service/iot/api_op_ListThings.go +++ b/service/iot/api_op_ListThings.go @@ -60,7 +60,7 @@ type ListThingsOutput struct { NextToken *string // The things. - Things []*types.ThingAttribute + Things []types.ThingAttribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListThingsInBillingGroup.go b/service/iot/api_op_ListThingsInBillingGroup.go index f492c150efa..a5c4fc7d16a 100644 --- a/service/iot/api_op_ListThingsInBillingGroup.go +++ b/service/iot/api_op_ListThingsInBillingGroup.go @@ -47,7 +47,7 @@ type ListThingsInBillingGroupOutput struct { NextToken *string // A list of things in the billing group. - Things []*string + Things []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListThingsInThingGroup.go b/service/iot/api_op_ListThingsInThingGroup.go index f511eb6ec1e..7e517cf734d 100644 --- a/service/iot/api_op_ListThingsInThingGroup.go +++ b/service/iot/api_op_ListThingsInThingGroup.go @@ -40,7 +40,7 @@ type ListThingsInThingGroupInput struct { NextToken *string // When true, list things in this thing group and in all child groups as well. - Recursive *bool + Recursive bool } type ListThingsInThingGroupOutput struct { @@ -50,7 +50,7 @@ type ListThingsInThingGroupOutput struct { NextToken *string // The things in the specified thing group. - Things []*string + Things []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListTopicRuleDestinations.go b/service/iot/api_op_ListTopicRuleDestinations.go index 0f4be633588..4374298ab34 100644 --- a/service/iot/api_op_ListTopicRuleDestinations.go +++ b/service/iot/api_op_ListTopicRuleDestinations.go @@ -39,7 +39,7 @@ type ListTopicRuleDestinationsInput struct { type ListTopicRuleDestinationsOutput struct { // Information about a topic rule destination. - DestinationSummaries []*types.TopicRuleDestinationSummary + DestinationSummaries []types.TopicRuleDestinationSummary // The token to retrieve the next set of results. NextToken *string diff --git a/service/iot/api_op_ListTopicRules.go b/service/iot/api_op_ListTopicRules.go index 25bfcdecb75..193037298af 100644 --- a/service/iot/api_op_ListTopicRules.go +++ b/service/iot/api_op_ListTopicRules.go @@ -50,7 +50,7 @@ type ListTopicRulesOutput struct { NextToken *string // The rules. - Rules []*types.TopicRuleListItem + Rules []types.TopicRuleListItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_ListV2LoggingLevels.go b/service/iot/api_op_ListV2LoggingLevels.go index 7448148d0d4..5ae37f2b146 100644 --- a/service/iot/api_op_ListV2LoggingLevels.go +++ b/service/iot/api_op_ListV2LoggingLevels.go @@ -43,7 +43,7 @@ type ListV2LoggingLevelsInput struct { type ListV2LoggingLevelsOutput struct { // The logging configuration for a target. - LogTargetConfigurations []*types.LogTargetConfiguration + LogTargetConfigurations []types.LogTargetConfiguration // The token used to get the next set of results, or null if there are no // additional results. diff --git a/service/iot/api_op_ListViolationEvents.go b/service/iot/api_op_ListViolationEvents.go index 4a1446bd12e..11c537993e1 100644 --- a/service/iot/api_op_ListViolationEvents.go +++ b/service/iot/api_op_ListViolationEvents.go @@ -65,7 +65,7 @@ type ListViolationEventsOutput struct { // The security profile violation alerts issued for this account during the given // time period, potentially filtered by security profile, behavior violated, or // thing (device) violating. - ViolationEvents []*types.ViolationEvent + ViolationEvents []types.ViolationEvent // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_RegisterCACertificate.go b/service/iot/api_op_RegisterCACertificate.go index 945bb77c73d..185e8e11338 100644 --- a/service/iot/api_op_RegisterCACertificate.go +++ b/service/iot/api_op_RegisterCACertificate.go @@ -48,19 +48,19 @@ type RegisterCACertificateInput struct { // Allows this CA certificate to be used for auto registration of device // certificates. - AllowAutoRegistration *bool + AllowAutoRegistration bool // Information about the registration configuration. RegistrationConfig *types.RegistrationConfig // A boolean value that specifies if the CA certificate is set to active. - SetAsActive *bool + SetAsActive bool // Metadata which can be used to manage the CA certificate. For URI Request // parameters use format: ...key1=value1&key2=value2... For the CLI command-line // parameter use format: &&tags "key1=value1&key2=value2..." For the cli-input-json // file use format: "tags": "key1=value1&key2=value2..." - Tags []*types.Tag + Tags []types.Tag } // The output from the RegisterCACertificateResponse operation. diff --git a/service/iot/api_op_RegisterThing.go b/service/iot/api_op_RegisterThing.go index 59b99960cd5..2c82f1fd9ce 100644 --- a/service/iot/api_op_RegisterThing.go +++ b/service/iot/api_op_RegisterThing.go @@ -45,7 +45,7 @@ type RegisterThingInput struct { // The parameters for provisioning a thing. See Provisioning Templates // (https://docs.aws.amazon.com/iot/latest/developerguide/provision-template.html) // for more information. - Parameters map[string]*string + Parameters map[string]string } type RegisterThingOutput struct { @@ -54,7 +54,7 @@ type RegisterThingOutput struct { CertificatePem *string // ARNs for the generated resources. - ResourceArns map[string]*string + ResourceArns map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_SearchIndex.go b/service/iot/api_op_SearchIndex.go index 411eab63738..624d506042b 100644 --- a/service/iot/api_op_SearchIndex.go +++ b/service/iot/api_op_SearchIndex.go @@ -55,10 +55,10 @@ type SearchIndexOutput struct { NextToken *string // The thing groups that match the search query. - ThingGroups []*types.ThingGroupDocument + ThingGroups []types.ThingGroupDocument // The things that match the search query. - Things []*types.ThingDocument + Things []types.ThingDocument // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_SetV2LoggingOptions.go b/service/iot/api_op_SetV2LoggingOptions.go index cb40da5b8ab..fdd7bcd1eeb 100644 --- a/service/iot/api_op_SetV2LoggingOptions.go +++ b/service/iot/api_op_SetV2LoggingOptions.go @@ -33,7 +33,7 @@ type SetV2LoggingOptionsInput struct { DefaultLogLevel types.LogLevel // If true all logs are disabled. The default is false. - DisableAllLogs *bool + DisableAllLogs bool // The ARN of the role that allows IoT to write to Cloudwatch logs. RoleArn *string diff --git a/service/iot/api_op_StartAuditMitigationActionsTask.go b/service/iot/api_op_StartAuditMitigationActionsTask.go index aa6df7c4a28..8e1a02ea838 100644 --- a/service/iot/api_op_StartAuditMitigationActionsTask.go +++ b/service/iot/api_op_StartAuditMitigationActionsTask.go @@ -34,7 +34,7 @@ type StartAuditMitigationActionsTaskInput struct { // must be defined in your AWS account. // // This member is required. - AuditCheckToActionsMapping map[string][]*string + AuditCheckToActionsMapping map[string][]string // Each audit mitigation task must have a unique client request token. If you try // to start a new task with the same token as a task that already exists, an diff --git a/service/iot/api_op_StartOnDemandAuditTask.go b/service/iot/api_op_StartOnDemandAuditTask.go index 0e39ce5b61e..eb7d2c02ef3 100644 --- a/service/iot/api_op_StartOnDemandAuditTask.go +++ b/service/iot/api_op_StartOnDemandAuditTask.go @@ -35,7 +35,7 @@ type StartOnDemandAuditTaskInput struct { // enabled. // // This member is required. - TargetCheckNames []*string + TargetCheckNames []string } type StartOnDemandAuditTaskOutput struct { diff --git a/service/iot/api_op_TagResource.go b/service/iot/api_op_TagResource.go index 3956d8cdf0d..ccdd372d938 100644 --- a/service/iot/api_op_TagResource.go +++ b/service/iot/api_op_TagResource.go @@ -38,7 +38,7 @@ type TagResourceInput struct { // The new or modified tags for the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/iot/api_op_TestAuthorization.go b/service/iot/api_op_TestAuthorization.go index dd03161af37..7c61c550028 100644 --- a/service/iot/api_op_TestAuthorization.go +++ b/service/iot/api_op_TestAuthorization.go @@ -35,7 +35,7 @@ type TestAuthorizationInput struct { // response for each authInfo object in the list. // // This member is required. - AuthInfos []*types.AuthInfo + AuthInfos []types.AuthInfo // The MQTT client ID. ClientId *string @@ -45,11 +45,11 @@ type TestAuthorizationInput struct { // When testing custom authorization, the policies specified here are treated as if // they are attached to the principal being authorized. - PolicyNamesToAdd []*string + PolicyNamesToAdd []string // When testing custom authorization, the policies specified here are treated as if // they are not attached to the principal being authorized. - PolicyNamesToSkip []*string + PolicyNamesToSkip []string // The principal. Valid principals are CertificateArn // (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn @@ -60,7 +60,7 @@ type TestAuthorizationInput struct { type TestAuthorizationOutput struct { // The authentication results. - AuthResults []*types.AuthResult + AuthResults []types.AuthResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_TestInvokeAuthorizer.go b/service/iot/api_op_TestInvokeAuthorizer.go index 1aa94855fe4..9e7b784c6ef 100644 --- a/service/iot/api_op_TestInvokeAuthorizer.go +++ b/service/iot/api_op_TestInvokeAuthorizer.go @@ -62,7 +62,7 @@ type TestInvokeAuthorizerOutput struct { IsAuthenticated *bool // IAM policy documents. - PolicyDocuments []*string + PolicyDocuments []string // The principal ID. PrincipalId *string diff --git a/service/iot/api_op_UntagResource.go b/service/iot/api_op_UntagResource.go index 133dfd10237..b26bba927f3 100644 --- a/service/iot/api_op_UntagResource.go +++ b/service/iot/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // A list of the keys of the tags to be removed from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/iot/api_op_UpdateAccountAuditConfiguration.go b/service/iot/api_op_UpdateAccountAuditConfiguration.go index 4a6d30295fb..ec72e32ca5f 100644 --- a/service/iot/api_op_UpdateAccountAuditConfiguration.go +++ b/service/iot/api_op_UpdateAccountAuditConfiguration.go @@ -40,10 +40,10 @@ type UpdateAccountAuditConfigurationInput struct { // delete the scheduled audit itself. On the first call to // UpdateAccountAuditConfiguration, this parameter is required and must specify at // least one enabled check. - AuditCheckConfigurations map[string]*types.AuditCheckConfiguration + AuditCheckConfigurations map[string]types.AuditCheckConfiguration // Information about the targets to which audit notifications are sent. - AuditNotificationTargetConfigurations map[string]*types.AuditNotificationTarget + AuditNotificationTargetConfigurations map[string]types.AuditNotificationTarget // The ARN of the role that grants permission to AWS IoT to access information // about your devices, policies, certificates and other items as required when diff --git a/service/iot/api_op_UpdateAuthorizer.go b/service/iot/api_op_UpdateAuthorizer.go index 1990a3bab18..c36c415699d 100644 --- a/service/iot/api_op_UpdateAuthorizer.go +++ b/service/iot/api_op_UpdateAuthorizer.go @@ -44,7 +44,7 @@ type UpdateAuthorizerInput struct { TokenKeyName *string // The public keys used to verify the token signature. - TokenSigningPublicKeys map[string]*string + TokenSigningPublicKeys map[string]string } type UpdateAuthorizerOutput struct { diff --git a/service/iot/api_op_UpdateBillingGroup.go b/service/iot/api_op_UpdateBillingGroup.go index e1b4efc61e5..ab97537920c 100644 --- a/service/iot/api_op_UpdateBillingGroup.go +++ b/service/iot/api_op_UpdateBillingGroup.go @@ -48,7 +48,7 @@ type UpdateBillingGroupInput struct { type UpdateBillingGroupOutput struct { // The latest version of the billing group. - Version *int64 + Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_UpdateCACertificate.go b/service/iot/api_op_UpdateCACertificate.go index 05e08883006..994cf1c003e 100644 --- a/service/iot/api_op_UpdateCACertificate.go +++ b/service/iot/api_op_UpdateCACertificate.go @@ -47,7 +47,7 @@ type UpdateCACertificateInput struct { RegistrationConfig *types.RegistrationConfig // If true, removes auto registration. - RemoveAutoRegistration *bool + RemoveAutoRegistration bool } type UpdateCACertificateOutput struct { diff --git a/service/iot/api_op_UpdateDimension.go b/service/iot/api_op_UpdateDimension.go index 26a531a2201..4bc1dee2dd1 100644 --- a/service/iot/api_op_UpdateDimension.go +++ b/service/iot/api_op_UpdateDimension.go @@ -42,7 +42,7 @@ type UpdateDimensionInput struct { // "admin/#"). // // This member is required. - StringValues []*string + StringValues []string } type UpdateDimensionOutput struct { @@ -63,7 +63,7 @@ type UpdateDimensionOutput struct { // The value or list of values used to scope the dimension. For example, for topic // filters, this is the pattern used to match the MQTT topic name. - StringValues []*string + StringValues []string // The type of the dimension. Type types.DimensionType diff --git a/service/iot/api_op_UpdateDomainConfiguration.go b/service/iot/api_op_UpdateDomainConfiguration.go index bc3e2dd80ca..00b38c48527 100644 --- a/service/iot/api_op_UpdateDomainConfiguration.go +++ b/service/iot/api_op_UpdateDomainConfiguration.go @@ -43,7 +43,7 @@ type UpdateDomainConfigurationInput struct { DomainConfigurationStatus types.DomainConfigurationStatus // Removes the authorization configuration from a domain. - RemoveAuthorizerConfig *bool + RemoveAuthorizerConfig bool } type UpdateDomainConfigurationOutput struct { diff --git a/service/iot/api_op_UpdateDynamicThingGroup.go b/service/iot/api_op_UpdateDynamicThingGroup.go index c6f2583dc4f..cf292cd5b7b 100644 --- a/service/iot/api_op_UpdateDynamicThingGroup.go +++ b/service/iot/api_op_UpdateDynamicThingGroup.go @@ -58,7 +58,7 @@ type UpdateDynamicThingGroupInput struct { type UpdateDynamicThingGroupOutput struct { // The dynamic thing group version. - Version *int64 + Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_UpdateEventConfigurations.go b/service/iot/api_op_UpdateEventConfigurations.go index 10ad553975c..b9b60b6d8bd 100644 --- a/service/iot/api_op_UpdateEventConfigurations.go +++ b/service/iot/api_op_UpdateEventConfigurations.go @@ -30,7 +30,7 @@ func (c *Client) UpdateEventConfigurations(ctx context.Context, params *UpdateEv type UpdateEventConfigurationsInput struct { // The new event configuration values. - EventConfigurations map[string]*types.Configuration + EventConfigurations map[string]types.Configuration } type UpdateEventConfigurationsOutput struct { diff --git a/service/iot/api_op_UpdateProvisioningTemplate.go b/service/iot/api_op_UpdateProvisioningTemplate.go index 503ec97dd45..d6d0276eb84 100644 --- a/service/iot/api_op_UpdateProvisioningTemplate.go +++ b/service/iot/api_op_UpdateProvisioningTemplate.go @@ -41,7 +41,7 @@ type UpdateProvisioningTemplateInput struct { Description *string // True to enable the fleet provisioning template, otherwise false. - Enabled *bool + Enabled bool // Updates the pre-provisioning hook template. PreProvisioningHook *types.ProvisioningHook diff --git a/service/iot/api_op_UpdateScheduledAudit.go b/service/iot/api_op_UpdateScheduledAudit.go index aab83a71c5a..86375e75f7f 100644 --- a/service/iot/api_op_UpdateScheduledAudit.go +++ b/service/iot/api_op_UpdateScheduledAudit.go @@ -55,7 +55,7 @@ type UpdateScheduledAuditInput struct { // for your account. (Use DescribeAccountAuditConfiguration to see the list of all // checks, including those that are enabled or use UpdateAccountAuditConfiguration // to select which checks are enabled.) - TargetCheckNames []*string + TargetCheckNames []string } type UpdateScheduledAuditOutput struct { diff --git a/service/iot/api_op_UpdateSecurityProfile.go b/service/iot/api_op_UpdateSecurityProfile.go index 0dda5323ca5..3a8f65aedfb 100644 --- a/service/iot/api_op_UpdateSecurityProfile.go +++ b/service/iot/api_op_UpdateSecurityProfile.go @@ -39,31 +39,31 @@ type UpdateSecurityProfileInput struct { // list of metrics whose data is retained (stored). By default, data is retained // for any metric used in the profile's behaviors, but it is also retained for any // metric specified here. - AdditionalMetricsToRetain []*string + AdditionalMetricsToRetain []string // A list of metrics whose data is retained (stored). By default, data is retained // for any metric used in the profile's behaviors, but it is also retained for any // metric specified here. - AdditionalMetricsToRetainV2 []*types.MetricToRetain + AdditionalMetricsToRetainV2 []types.MetricToRetain // Where the alerts are sent. (Alerts are always sent to the console.) - AlertTargets map[string]*types.AlertTarget + AlertTargets map[string]types.AlertTarget // Specifies the behaviors that, when violated by a device (thing), cause an alert. - Behaviors []*types.Behavior + Behaviors []types.Behavior // If true, delete all additionalMetricsToRetain defined for this security profile. // If any additionalMetricsToRetain are defined in the current invocation, an // exception occurs. - DeleteAdditionalMetricsToRetain *bool + DeleteAdditionalMetricsToRetain bool // If true, delete all alertTargets defined for this security profile. If any // alertTargets are defined in the current invocation, an exception occurs. - DeleteAlertTargets *bool + DeleteAlertTargets bool // If true, delete all behaviors defined for this security profile. If any // behaviors are defined in the current invocation, an exception occurs. - DeleteBehaviors *bool + DeleteBehaviors bool // The expected version of the security profile. A new version is generated // whenever the security profile is updated. If you specify a value that is @@ -80,18 +80,18 @@ type UpdateSecurityProfileOutput struct { // list of metrics whose data is retained (stored). By default, data is retained // for any metric used in the security profile's behaviors, but it is also retained // for any metric specified here. - AdditionalMetricsToRetain []*string + AdditionalMetricsToRetain []string // A list of metrics whose data is retained (stored). By default, data is retained // for any metric used in the profile's behaviors, but it is also retained for any // metric specified here. - AdditionalMetricsToRetainV2 []*types.MetricToRetain + AdditionalMetricsToRetainV2 []types.MetricToRetain // Where the alerts are sent. (Alerts are always sent to the console.) - AlertTargets map[string]*types.AlertTarget + AlertTargets map[string]types.AlertTarget // Specifies the behaviors that, when violated by a device (thing), cause an alert. - Behaviors []*types.Behavior + Behaviors []types.Behavior // The time the security profile was created. CreationDate *time.Time @@ -109,7 +109,7 @@ type UpdateSecurityProfileOutput struct { SecurityProfileName *string // The updated version of the security profile. - Version *int64 + Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_UpdateStream.go b/service/iot/api_op_UpdateStream.go index 3d4a1971a50..3af90770e4a 100644 --- a/service/iot/api_op_UpdateStream.go +++ b/service/iot/api_op_UpdateStream.go @@ -38,7 +38,7 @@ type UpdateStreamInput struct { Description *string // The files associated with the stream. - Files []*types.StreamFile + Files []types.StreamFile // An IAM role that allows the IoT service principal assumes to access your S3 // files. diff --git a/service/iot/api_op_UpdateThing.go b/service/iot/api_op_UpdateThing.go index eabc52f76d6..cadb4fc1764 100644 --- a/service/iot/api_op_UpdateThing.go +++ b/service/iot/api_op_UpdateThing.go @@ -48,7 +48,7 @@ type UpdateThingInput struct { ExpectedVersion *int64 // Remove a thing type association. If true, the association is removed. - RemoveThingType *bool + RemoveThingType bool // The name of the thing type. ThingTypeName *string diff --git a/service/iot/api_op_UpdateThingGroup.go b/service/iot/api_op_UpdateThingGroup.go index b1858b7e027..93ddb6a83b8 100644 --- a/service/iot/api_op_UpdateThingGroup.go +++ b/service/iot/api_op_UpdateThingGroup.go @@ -47,7 +47,7 @@ type UpdateThingGroupInput struct { type UpdateThingGroupOutput struct { // The version of the updated thing group. - Version *int64 + Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/api_op_UpdateThingGroupsForThing.go b/service/iot/api_op_UpdateThingGroupsForThing.go index 9560f927362..cecefda3bc7 100644 --- a/service/iot/api_op_UpdateThingGroupsForThing.go +++ b/service/iot/api_op_UpdateThingGroupsForThing.go @@ -32,13 +32,13 @@ type UpdateThingGroupsForThingInput struct { // reached. If a thing belongs to 10 thing groups, and one or more of those groups // are dynamic thing groups, adding a thing to a static group removes the thing // from the last dynamic group. - OverrideDynamicGroups *bool + OverrideDynamicGroups bool // The groups to which the thing will be added. - ThingGroupsToAdd []*string + ThingGroupsToAdd []string // The groups from which the thing will be removed. - ThingGroupsToRemove []*string + ThingGroupsToRemove []string // The thing whose group memberships will be updated. ThingName *string diff --git a/service/iot/api_op_ValidateSecurityProfileBehaviors.go b/service/iot/api_op_ValidateSecurityProfileBehaviors.go index 3b6563139de..29332a81031 100644 --- a/service/iot/api_op_ValidateSecurityProfileBehaviors.go +++ b/service/iot/api_op_ValidateSecurityProfileBehaviors.go @@ -32,16 +32,16 @@ type ValidateSecurityProfileBehaviorsInput struct { // Specifies the behaviors that, when violated by a device (thing), cause an alert. // // This member is required. - Behaviors []*types.Behavior + Behaviors []types.Behavior } type ValidateSecurityProfileBehaviorsOutput struct { // True if the behaviors were valid. - Valid *bool + Valid bool // The list of any errors found in the behaviors. - ValidationErrors []*types.ValidationError + ValidationErrors []types.ValidationError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot/deserializers.go b/service/iot/deserializers.go index 27d29c6e505..a0bc771d9e7 100644 --- a/service/iot/deserializers.go +++ b/service/iot/deserializers.go @@ -456,7 +456,7 @@ func awsRestjson1_deserializeOpDocumentAssociateTargetsWithJobOutput(v **Associa if !ok { return fmt.Errorf("expected JobDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "jobArn": @@ -465,7 +465,7 @@ func awsRestjson1_deserializeOpDocumentAssociateTargetsWithJobOutput(v **Associa if !ok { return fmt.Errorf("expected JobArn to be of type string, got %T instead", value) } - sv.JobArn = &jtv + sv.JobArn = ptr.String(jtv) } case "jobId": @@ -474,7 +474,7 @@ func awsRestjson1_deserializeOpDocumentAssociateTargetsWithJobOutput(v **Associa if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -1317,7 +1317,7 @@ func awsRestjson1_deserializeOpDocumentCancelJobOutput(v **CancelJobOutput, valu if !ok { return fmt.Errorf("expected JobDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "jobArn": @@ -1326,7 +1326,7 @@ func awsRestjson1_deserializeOpDocumentCancelJobOutput(v **CancelJobOutput, valu if !ok { return fmt.Errorf("expected JobArn to be of type string, got %T instead", value) } - sv.JobArn = &jtv + sv.JobArn = ptr.String(jtv) } case "jobId": @@ -1335,7 +1335,7 @@ func awsRestjson1_deserializeOpDocumentCancelJobOutput(v **CancelJobOutput, valu if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -1890,7 +1890,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected AuthorizerArn to be of type string, got %T instead", value) } - sv.AuthorizerArn = &jtv + sv.AuthorizerArn = ptr.String(jtv) } case "authorizerName": @@ -1899,7 +1899,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected AuthorizerName to be of type string, got %T instead", value) } - sv.AuthorizerName = &jtv + sv.AuthorizerName = ptr.String(jtv) } default: @@ -2059,7 +2059,7 @@ func awsRestjson1_deserializeOpDocumentCreateBillingGroupOutput(v **CreateBillin if !ok { return fmt.Errorf("expected BillingGroupArn to be of type string, got %T instead", value) } - sv.BillingGroupArn = &jtv + sv.BillingGroupArn = ptr.String(jtv) } case "billingGroupId": @@ -2068,7 +2068,7 @@ func awsRestjson1_deserializeOpDocumentCreateBillingGroupOutput(v **CreateBillin if !ok { return fmt.Errorf("expected BillingGroupId to be of type string, got %T instead", value) } - sv.BillingGroupId = &jtv + sv.BillingGroupId = ptr.String(jtv) } case "billingGroupName": @@ -2077,7 +2077,7 @@ func awsRestjson1_deserializeOpDocumentCreateBillingGroupOutput(v **CreateBillin if !ok { return fmt.Errorf("expected BillingGroupName to be of type string, got %T instead", value) } - sv.BillingGroupName = &jtv + sv.BillingGroupName = ptr.String(jtv) } default: @@ -2240,7 +2240,7 @@ func awsRestjson1_deserializeOpDocumentCreateCertificateFromCsrOutput(v **Create if !ok { return fmt.Errorf("expected CertificateArn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateId": @@ -2249,7 +2249,7 @@ func awsRestjson1_deserializeOpDocumentCreateCertificateFromCsrOutput(v **Create if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } case "certificatePem": @@ -2258,7 +2258,7 @@ func awsRestjson1_deserializeOpDocumentCreateCertificateFromCsrOutput(v **Create if !ok { return fmt.Errorf("expected CertificatePem to be of type string, got %T instead", value) } - sv.CertificatePem = &jtv + sv.CertificatePem = ptr.String(jtv) } default: @@ -2421,7 +2421,7 @@ func awsRestjson1_deserializeOpDocumentCreateDimensionOutput(v **CreateDimension if !ok { return fmt.Errorf("expected DimensionArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "name": @@ -2430,7 +2430,7 @@ func awsRestjson1_deserializeOpDocumentCreateDimensionOutput(v **CreateDimension if !ok { return fmt.Errorf("expected DimensionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -2602,7 +2602,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainConfigurationOutput(v **Creat if !ok { return fmt.Errorf("expected DomainConfigurationArn to be of type string, got %T instead", value) } - sv.DomainConfigurationArn = &jtv + sv.DomainConfigurationArn = ptr.String(jtv) } case "domainConfigurationName": @@ -2611,7 +2611,7 @@ func awsRestjson1_deserializeOpDocumentCreateDomainConfigurationOutput(v **Creat if !ok { return fmt.Errorf("expected DomainConfigurationName to be of type string, got %T instead", value) } - sv.DomainConfigurationName = &jtv + sv.DomainConfigurationName = ptr.String(jtv) } default: @@ -2780,7 +2780,7 @@ func awsRestjson1_deserializeOpDocumentCreateDynamicThingGroupOutput(v **CreateD if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "queryString": @@ -2789,7 +2789,7 @@ func awsRestjson1_deserializeOpDocumentCreateDynamicThingGroupOutput(v **CreateD if !ok { return fmt.Errorf("expected QueryString to be of type string, got %T instead", value) } - sv.QueryString = &jtv + sv.QueryString = ptr.String(jtv) } case "queryVersion": @@ -2798,7 +2798,7 @@ func awsRestjson1_deserializeOpDocumentCreateDynamicThingGroupOutput(v **CreateD if !ok { return fmt.Errorf("expected QueryVersion to be of type string, got %T instead", value) } - sv.QueryVersion = &jtv + sv.QueryVersion = ptr.String(jtv) } case "thingGroupArn": @@ -2807,7 +2807,7 @@ func awsRestjson1_deserializeOpDocumentCreateDynamicThingGroupOutput(v **CreateD if !ok { return fmt.Errorf("expected ThingGroupArn to be of type string, got %T instead", value) } - sv.ThingGroupArn = &jtv + sv.ThingGroupArn = ptr.String(jtv) } case "thingGroupId": @@ -2816,7 +2816,7 @@ func awsRestjson1_deserializeOpDocumentCreateDynamicThingGroupOutput(v **CreateD if !ok { return fmt.Errorf("expected ThingGroupId to be of type string, got %T instead", value) } - sv.ThingGroupId = &jtv + sv.ThingGroupId = ptr.String(jtv) } case "thingGroupName": @@ -2825,7 +2825,7 @@ func awsRestjson1_deserializeOpDocumentCreateDynamicThingGroupOutput(v **CreateD if !ok { return fmt.Errorf("expected ThingGroupName to be of type string, got %T instead", value) } - sv.ThingGroupName = &jtv + sv.ThingGroupName = ptr.String(jtv) } default: @@ -2991,7 +2991,7 @@ func awsRestjson1_deserializeOpDocumentCreateJobOutput(v **CreateJobOutput, valu if !ok { return fmt.Errorf("expected JobDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "jobArn": @@ -3000,7 +3000,7 @@ func awsRestjson1_deserializeOpDocumentCreateJobOutput(v **CreateJobOutput, valu if !ok { return fmt.Errorf("expected JobArn to be of type string, got %T instead", value) } - sv.JobArn = &jtv + sv.JobArn = ptr.String(jtv) } case "jobId": @@ -3009,7 +3009,7 @@ func awsRestjson1_deserializeOpDocumentCreateJobOutput(v **CreateJobOutput, valu if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -3172,7 +3172,7 @@ func awsRestjson1_deserializeOpDocumentCreateKeysAndCertificateOutput(v **Create if !ok { return fmt.Errorf("expected CertificateArn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateId": @@ -3181,7 +3181,7 @@ func awsRestjson1_deserializeOpDocumentCreateKeysAndCertificateOutput(v **Create if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } case "certificatePem": @@ -3190,7 +3190,7 @@ func awsRestjson1_deserializeOpDocumentCreateKeysAndCertificateOutput(v **Create if !ok { return fmt.Errorf("expected CertificatePem to be of type string, got %T instead", value) } - sv.CertificatePem = &jtv + sv.CertificatePem = ptr.String(jtv) } case "keyPair": @@ -3358,7 +3358,7 @@ func awsRestjson1_deserializeOpDocumentCreateMitigationActionOutput(v **CreateMi if !ok { return fmt.Errorf("expected MitigationActionArn to be of type string, got %T instead", value) } - sv.ActionArn = &jtv + sv.ActionArn = ptr.String(jtv) } case "actionId": @@ -3367,7 +3367,7 @@ func awsRestjson1_deserializeOpDocumentCreateMitigationActionOutput(v **CreateMi if !ok { return fmt.Errorf("expected MitigationActionId to be of type string, got %T instead", value) } - sv.ActionId = &jtv + sv.ActionId = ptr.String(jtv) } default: @@ -3539,7 +3539,7 @@ func awsRestjson1_deserializeOpDocumentCreateOTAUpdateOutput(v **CreateOTAUpdate if !ok { return fmt.Errorf("expected AwsIotJobArn to be of type string, got %T instead", value) } - sv.AwsIotJobArn = &jtv + sv.AwsIotJobArn = ptr.String(jtv) } case "awsIotJobId": @@ -3548,7 +3548,7 @@ func awsRestjson1_deserializeOpDocumentCreateOTAUpdateOutput(v **CreateOTAUpdate if !ok { return fmt.Errorf("expected AwsIotJobId to be of type string, got %T instead", value) } - sv.AwsIotJobId = &jtv + sv.AwsIotJobId = ptr.String(jtv) } case "otaUpdateArn": @@ -3557,7 +3557,7 @@ func awsRestjson1_deserializeOpDocumentCreateOTAUpdateOutput(v **CreateOTAUpdate if !ok { return fmt.Errorf("expected OTAUpdateArn to be of type string, got %T instead", value) } - sv.OtaUpdateArn = &jtv + sv.OtaUpdateArn = ptr.String(jtv) } case "otaUpdateId": @@ -3566,7 +3566,7 @@ func awsRestjson1_deserializeOpDocumentCreateOTAUpdateOutput(v **CreateOTAUpdate if !ok { return fmt.Errorf("expected OTAUpdateId to be of type string, got %T instead", value) } - sv.OtaUpdateId = &jtv + sv.OtaUpdateId = ptr.String(jtv) } case "otaUpdateStatus": @@ -3744,7 +3744,7 @@ func awsRestjson1_deserializeOpDocumentCreatePolicyOutput(v **CreatePolicyOutput if !ok { return fmt.Errorf("expected PolicyArn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } case "policyDocument": @@ -3753,7 +3753,7 @@ func awsRestjson1_deserializeOpDocumentCreatePolicyOutput(v **CreatePolicyOutput if !ok { return fmt.Errorf("expected PolicyDocument to be of type string, got %T instead", value) } - sv.PolicyDocument = &jtv + sv.PolicyDocument = ptr.String(jtv) } case "policyName": @@ -3762,7 +3762,7 @@ func awsRestjson1_deserializeOpDocumentCreatePolicyOutput(v **CreatePolicyOutput if !ok { return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } case "policyVersionId": @@ -3771,7 +3771,7 @@ func awsRestjson1_deserializeOpDocumentCreatePolicyOutput(v **CreatePolicyOutput if !ok { return fmt.Errorf("expected PolicyVersionId to be of type string, got %T instead", value) } - sv.PolicyVersionId = &jtv + sv.PolicyVersionId = ptr.String(jtv) } default: @@ -3943,7 +3943,7 @@ func awsRestjson1_deserializeOpDocumentCreatePolicyVersionOutput(v **CreatePolic if !ok { return fmt.Errorf("expected IsDefaultVersion to be of type *bool, got %T instead", value) } - sv.IsDefaultVersion = &jtv + sv.IsDefaultVersion = jtv } case "policyArn": @@ -3952,7 +3952,7 @@ func awsRestjson1_deserializeOpDocumentCreatePolicyVersionOutput(v **CreatePolic if !ok { return fmt.Errorf("expected PolicyArn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } case "policyDocument": @@ -3961,7 +3961,7 @@ func awsRestjson1_deserializeOpDocumentCreatePolicyVersionOutput(v **CreatePolic if !ok { return fmt.Errorf("expected PolicyDocument to be of type string, got %T instead", value) } - sv.PolicyDocument = &jtv + sv.PolicyDocument = ptr.String(jtv) } case "policyVersionId": @@ -3970,7 +3970,7 @@ func awsRestjson1_deserializeOpDocumentCreatePolicyVersionOutput(v **CreatePolic if !ok { return fmt.Errorf("expected PolicyVersionId to be of type string, got %T instead", value) } - sv.PolicyVersionId = &jtv + sv.PolicyVersionId = ptr.String(jtv) } default: @@ -4136,7 +4136,7 @@ func awsRestjson1_deserializeOpDocumentCreateProvisioningClaimOutput(v **CreateP if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } case "certificatePem": @@ -4145,7 +4145,7 @@ func awsRestjson1_deserializeOpDocumentCreateProvisioningClaimOutput(v **CreateP if !ok { return fmt.Errorf("expected CertificatePem to be of type string, got %T instead", value) } - sv.CertificatePem = &jtv + sv.CertificatePem = ptr.String(jtv) } case "expiration": @@ -4342,7 +4342,7 @@ func awsRestjson1_deserializeOpDocumentCreateProvisioningTemplateOutput(v **Crea if !ok { return fmt.Errorf("expected TemplateArn to be of type string, got %T instead", value) } - sv.TemplateArn = &jtv + sv.TemplateArn = ptr.String(jtv) } case "templateName": @@ -4351,7 +4351,7 @@ func awsRestjson1_deserializeOpDocumentCreateProvisioningTemplateOutput(v **Crea if !ok { return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } default: @@ -4520,7 +4520,7 @@ func awsRestjson1_deserializeOpDocumentCreateProvisioningTemplateVersionOutput(v if !ok { return fmt.Errorf("expected IsDefaultVersion to be of type *bool, got %T instead", value) } - sv.IsDefaultVersion = &jtv + sv.IsDefaultVersion = jtv } case "templateArn": @@ -4529,7 +4529,7 @@ func awsRestjson1_deserializeOpDocumentCreateProvisioningTemplateVersionOutput(v if !ok { return fmt.Errorf("expected TemplateArn to be of type string, got %T instead", value) } - sv.TemplateArn = &jtv + sv.TemplateArn = ptr.String(jtv) } case "templateName": @@ -4538,7 +4538,7 @@ func awsRestjson1_deserializeOpDocumentCreateProvisioningTemplateVersionOutput(v if !ok { return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } case "versionId": @@ -4720,7 +4720,7 @@ func awsRestjson1_deserializeOpDocumentCreateRoleAliasOutput(v **CreateRoleAlias if !ok { return fmt.Errorf("expected RoleAlias to be of type string, got %T instead", value) } - sv.RoleAlias = &jtv + sv.RoleAlias = ptr.String(jtv) } case "roleAliasArn": @@ -4729,7 +4729,7 @@ func awsRestjson1_deserializeOpDocumentCreateRoleAliasOutput(v **CreateRoleAlias if !ok { return fmt.Errorf("expected RoleAliasArn to be of type string, got %T instead", value) } - sv.RoleAliasArn = &jtv + sv.RoleAliasArn = ptr.String(jtv) } default: @@ -4892,7 +4892,7 @@ func awsRestjson1_deserializeOpDocumentCreateScheduledAuditOutput(v **CreateSche if !ok { return fmt.Errorf("expected ScheduledAuditArn to be of type string, got %T instead", value) } - sv.ScheduledAuditArn = &jtv + sv.ScheduledAuditArn = ptr.String(jtv) } default: @@ -5052,7 +5052,7 @@ func awsRestjson1_deserializeOpDocumentCreateSecurityProfileOutput(v **CreateSec if !ok { return fmt.Errorf("expected SecurityProfileArn to be of type string, got %T instead", value) } - sv.SecurityProfileArn = &jtv + sv.SecurityProfileArn = ptr.String(jtv) } case "securityProfileName": @@ -5061,7 +5061,7 @@ func awsRestjson1_deserializeOpDocumentCreateSecurityProfileOutput(v **CreateSec if !ok { return fmt.Errorf("expected SecurityProfileName to be of type string, got %T instead", value) } - sv.SecurityProfileName = &jtv + sv.SecurityProfileName = ptr.String(jtv) } default: @@ -5233,7 +5233,7 @@ func awsRestjson1_deserializeOpDocumentCreateStreamOutput(v **CreateStreamOutput if !ok { return fmt.Errorf("expected StreamDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "streamArn": @@ -5242,7 +5242,7 @@ func awsRestjson1_deserializeOpDocumentCreateStreamOutput(v **CreateStreamOutput if !ok { return fmt.Errorf("expected StreamArn to be of type string, got %T instead", value) } - sv.StreamArn = &jtv + sv.StreamArn = ptr.String(jtv) } case "streamId": @@ -5251,7 +5251,7 @@ func awsRestjson1_deserializeOpDocumentCreateStreamOutput(v **CreateStreamOutput if !ok { return fmt.Errorf("expected StreamId to be of type string, got %T instead", value) } - sv.StreamId = &jtv + sv.StreamId = ptr.String(jtv) } case "streamVersion": @@ -5433,7 +5433,7 @@ func awsRestjson1_deserializeOpDocumentCreateThingOutput(v **CreateThingOutput, if !ok { return fmt.Errorf("expected ThingArn to be of type string, got %T instead", value) } - sv.ThingArn = &jtv + sv.ThingArn = ptr.String(jtv) } case "thingId": @@ -5442,7 +5442,7 @@ func awsRestjson1_deserializeOpDocumentCreateThingOutput(v **CreateThingOutput, if !ok { return fmt.Errorf("expected ThingId to be of type string, got %T instead", value) } - sv.ThingId = &jtv + sv.ThingId = ptr.String(jtv) } case "thingName": @@ -5451,7 +5451,7 @@ func awsRestjson1_deserializeOpDocumentCreateThingOutput(v **CreateThingOutput, if !ok { return fmt.Errorf("expected ThingName to be of type string, got %T instead", value) } - sv.ThingName = &jtv + sv.ThingName = ptr.String(jtv) } default: @@ -5611,7 +5611,7 @@ func awsRestjson1_deserializeOpDocumentCreateThingGroupOutput(v **CreateThingGro if !ok { return fmt.Errorf("expected ThingGroupArn to be of type string, got %T instead", value) } - sv.ThingGroupArn = &jtv + sv.ThingGroupArn = ptr.String(jtv) } case "thingGroupId": @@ -5620,7 +5620,7 @@ func awsRestjson1_deserializeOpDocumentCreateThingGroupOutput(v **CreateThingGro if !ok { return fmt.Errorf("expected ThingGroupId to be of type string, got %T instead", value) } - sv.ThingGroupId = &jtv + sv.ThingGroupId = ptr.String(jtv) } case "thingGroupName": @@ -5629,7 +5629,7 @@ func awsRestjson1_deserializeOpDocumentCreateThingGroupOutput(v **CreateThingGro if !ok { return fmt.Errorf("expected ThingGroupName to be of type string, got %T instead", value) } - sv.ThingGroupName = &jtv + sv.ThingGroupName = ptr.String(jtv) } default: @@ -5795,7 +5795,7 @@ func awsRestjson1_deserializeOpDocumentCreateThingTypeOutput(v **CreateThingType if !ok { return fmt.Errorf("expected ThingTypeArn to be of type string, got %T instead", value) } - sv.ThingTypeArn = &jtv + sv.ThingTypeArn = ptr.String(jtv) } case "thingTypeId": @@ -5804,7 +5804,7 @@ func awsRestjson1_deserializeOpDocumentCreateThingTypeOutput(v **CreateThingType if !ok { return fmt.Errorf("expected ThingTypeId to be of type string, got %T instead", value) } - sv.ThingTypeId = &jtv + sv.ThingTypeId = ptr.String(jtv) } case "thingTypeName": @@ -5813,7 +5813,7 @@ func awsRestjson1_deserializeOpDocumentCreateThingTypeOutput(v **CreateThingType if !ok { return fmt.Errorf("expected ThingTypeName to be of type string, got %T instead", value) } - sv.ThingTypeName = &jtv + sv.ThingTypeName = ptr.String(jtv) } default: @@ -9028,7 +9028,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountAuditConfigurationOutput(v if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -9550,7 +9550,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAuditSuppressionOutput(v **Descri if !ok { return fmt.Errorf("expected AuditCheckName to be of type string, got %T instead", value) } - sv.CheckName = &jtv + sv.CheckName = ptr.String(jtv) } case "description": @@ -9559,7 +9559,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAuditSuppressionOutput(v **Descri if !ok { return fmt.Errorf("expected AuditDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "expirationDate": @@ -9586,7 +9586,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAuditSuppressionOutput(v **Descri if !ok { return fmt.Errorf("expected SuppressIndefinitely to be of type *bool, got %T instead", value) } - sv.SuppressIndefinitely = &jtv + sv.SuppressIndefinitely = ptr.Bool(jtv) } default: @@ -9751,7 +9751,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAuditTaskOutput(v **DescribeAudit if !ok { return fmt.Errorf("expected ScheduledAuditName to be of type string, got %T instead", value) } - sv.ScheduledAuditName = &jtv + sv.ScheduledAuditName = ptr.String(jtv) } case "taskStartTime": @@ -10109,7 +10109,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBillingGroupOutput(v **DescribeBi if !ok { return fmt.Errorf("expected BillingGroupArn to be of type string, got %T instead", value) } - sv.BillingGroupArn = &jtv + sv.BillingGroupArn = ptr.String(jtv) } case "billingGroupId": @@ -10118,7 +10118,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBillingGroupOutput(v **DescribeBi if !ok { return fmt.Errorf("expected BillingGroupId to be of type string, got %T instead", value) } - sv.BillingGroupId = &jtv + sv.BillingGroupId = ptr.String(jtv) } case "billingGroupMetadata": @@ -10132,7 +10132,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBillingGroupOutput(v **DescribeBi if !ok { return fmt.Errorf("expected BillingGroupName to be of type string, got %T instead", value) } - sv.BillingGroupName = &jtv + sv.BillingGroupName = ptr.String(jtv) } case "billingGroupProperties": @@ -10150,7 +10150,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBillingGroupOutput(v **DescribeBi if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -10801,7 +10801,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDimensionOutput(v **DescribeDimen if !ok { return fmt.Errorf("expected DimensionArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationDate": @@ -10836,7 +10836,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDimensionOutput(v **DescribeDimen if !ok { return fmt.Errorf("expected DimensionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "stringValues": @@ -11021,7 +11021,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDomainConfigurationOutput(v **Des if !ok { return fmt.Errorf("expected DomainConfigurationArn to be of type string, got %T instead", value) } - sv.DomainConfigurationArn = &jtv + sv.DomainConfigurationArn = ptr.String(jtv) } case "domainConfigurationName": @@ -11030,7 +11030,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDomainConfigurationOutput(v **Des if !ok { return fmt.Errorf("expected ReservedDomainConfigurationName to be of type string, got %T instead", value) } - sv.DomainConfigurationName = &jtv + sv.DomainConfigurationName = ptr.String(jtv) } case "domainConfigurationStatus": @@ -11048,7 +11048,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDomainConfigurationOutput(v **Des if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainType": @@ -11244,7 +11244,7 @@ func awsRestjson1_deserializeOpDocumentDescribeEndpointOutput(v **DescribeEndpoi if !ok { return fmt.Errorf("expected EndpointAddress to be of type string, got %T instead", value) } - sv.EndpointAddress = &jtv + sv.EndpointAddress = ptr.String(jtv) } default: @@ -11586,7 +11586,7 @@ func awsRestjson1_deserializeOpDocumentDescribeIndexOutput(v **DescribeIndexOutp if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "indexStatus": @@ -11604,7 +11604,7 @@ func awsRestjson1_deserializeOpDocumentDescribeIndexOutput(v **DescribeIndexOutp if !ok { return fmt.Errorf("expected IndexSchema to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } default: @@ -11764,7 +11764,7 @@ func awsRestjson1_deserializeOpDocumentDescribeJobOutput(v **DescribeJobOutput, if !ok { return fmt.Errorf("expected JobDocumentSource to be of type string, got %T instead", value) } - sv.DocumentSource = &jtv + sv.DocumentSource = ptr.String(jtv) } case "job": @@ -12085,7 +12085,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMitigationActionOutput(v **Descri if !ok { return fmt.Errorf("expected MitigationActionArn to be of type string, got %T instead", value) } - sv.ActionArn = &jtv + sv.ActionArn = ptr.String(jtv) } case "actionId": @@ -12094,7 +12094,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMitigationActionOutput(v **Descri if !ok { return fmt.Errorf("expected MitigationActionId to be of type string, got %T instead", value) } - sv.ActionId = &jtv + sv.ActionId = ptr.String(jtv) } case "actionName": @@ -12103,7 +12103,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMitigationActionOutput(v **Descri if !ok { return fmt.Errorf("expected MitigationActionName to be of type string, got %T instead", value) } - sv.ActionName = &jtv + sv.ActionName = ptr.String(jtv) } case "actionParams": @@ -12152,7 +12152,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMitigationActionOutput(v **Descri if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -12341,7 +12341,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProvisioningTemplateOutput(v **De if !ok { return fmt.Errorf("expected TemplateDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "enabled": @@ -12350,7 +12350,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProvisioningTemplateOutput(v **De if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "lastModifiedDate": @@ -12377,7 +12377,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProvisioningTemplateOutput(v **De if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.ProvisioningRoleArn = &jtv + sv.ProvisioningRoleArn = ptr.String(jtv) } case "templateArn": @@ -12386,7 +12386,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProvisioningTemplateOutput(v **De if !ok { return fmt.Errorf("expected TemplateArn to be of type string, got %T instead", value) } - sv.TemplateArn = &jtv + sv.TemplateArn = ptr.String(jtv) } case "templateBody": @@ -12395,7 +12395,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProvisioningTemplateOutput(v **De if !ok { return fmt.Errorf("expected TemplateBody to be of type string, got %T instead", value) } - sv.TemplateBody = &jtv + sv.TemplateBody = ptr.String(jtv) } case "templateName": @@ -12404,7 +12404,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProvisioningTemplateOutput(v **De if !ok { return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } default: @@ -12580,7 +12580,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProvisioningTemplateVersionOutput if !ok { return fmt.Errorf("expected IsDefaultVersion to be of type *bool, got %T instead", value) } - sv.IsDefaultVersion = &jtv + sv.IsDefaultVersion = jtv } case "templateBody": @@ -12589,7 +12589,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProvisioningTemplateVersionOutput if !ok { return fmt.Errorf("expected TemplateBody to be of type string, got %T instead", value) } - sv.TemplateBody = &jtv + sv.TemplateBody = ptr.String(jtv) } case "versionId": @@ -12924,7 +12924,7 @@ func awsRestjson1_deserializeOpDocumentDescribeScheduledAuditOutput(v **Describe if !ok { return fmt.Errorf("expected DayOfMonth to be of type string, got %T instead", value) } - sv.DayOfMonth = &jtv + sv.DayOfMonth = ptr.String(jtv) } case "dayOfWeek": @@ -12951,7 +12951,7 @@ func awsRestjson1_deserializeOpDocumentDescribeScheduledAuditOutput(v **Describe if !ok { return fmt.Errorf("expected ScheduledAuditArn to be of type string, got %T instead", value) } - sv.ScheduledAuditArn = &jtv + sv.ScheduledAuditArn = ptr.String(jtv) } case "scheduledAuditName": @@ -12960,7 +12960,7 @@ func awsRestjson1_deserializeOpDocumentDescribeScheduledAuditOutput(v **Describe if !ok { return fmt.Errorf("expected ScheduledAuditName to be of type string, got %T instead", value) } - sv.ScheduledAuditName = &jtv + sv.ScheduledAuditName = ptr.String(jtv) } case "targetCheckNames": @@ -13171,7 +13171,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSecurityProfileOutput(v **Describ if !ok { return fmt.Errorf("expected SecurityProfileArn to be of type string, got %T instead", value) } - sv.SecurityProfileArn = &jtv + sv.SecurityProfileArn = ptr.String(jtv) } case "securityProfileDescription": @@ -13180,7 +13180,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSecurityProfileOutput(v **Describ if !ok { return fmt.Errorf("expected SecurityProfileDescription to be of type string, got %T instead", value) } - sv.SecurityProfileDescription = &jtv + sv.SecurityProfileDescription = ptr.String(jtv) } case "securityProfileName": @@ -13189,7 +13189,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSecurityProfileOutput(v **Describ if !ok { return fmt.Errorf("expected SecurityProfileName to be of type string, got %T instead", value) } - sv.SecurityProfileName = &jtv + sv.SecurityProfileName = ptr.String(jtv) } case "version": @@ -13202,7 +13202,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSecurityProfileOutput(v **Describ if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -13535,7 +13535,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingOutput(v **DescribeThingOutp if !ok { return fmt.Errorf("expected BillingGroupName to be of type string, got %T instead", value) } - sv.BillingGroupName = &jtv + sv.BillingGroupName = ptr.String(jtv) } case "defaultClientId": @@ -13544,7 +13544,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingOutput(v **DescribeThingOutp if !ok { return fmt.Errorf("expected ClientId to be of type string, got %T instead", value) } - sv.DefaultClientId = &jtv + sv.DefaultClientId = ptr.String(jtv) } case "thingArn": @@ -13553,7 +13553,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingOutput(v **DescribeThingOutp if !ok { return fmt.Errorf("expected ThingArn to be of type string, got %T instead", value) } - sv.ThingArn = &jtv + sv.ThingArn = ptr.String(jtv) } case "thingId": @@ -13562,7 +13562,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingOutput(v **DescribeThingOutp if !ok { return fmt.Errorf("expected ThingId to be of type string, got %T instead", value) } - sv.ThingId = &jtv + sv.ThingId = ptr.String(jtv) } case "thingName": @@ -13571,7 +13571,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingOutput(v **DescribeThingOutp if !ok { return fmt.Errorf("expected ThingName to be of type string, got %T instead", value) } - sv.ThingName = &jtv + sv.ThingName = ptr.String(jtv) } case "thingTypeName": @@ -13580,7 +13580,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingOutput(v **DescribeThingOutp if !ok { return fmt.Errorf("expected ThingTypeName to be of type string, got %T instead", value) } - sv.ThingTypeName = &jtv + sv.ThingTypeName = ptr.String(jtv) } case "version": @@ -13593,7 +13593,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingOutput(v **DescribeThingOutp if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -13753,7 +13753,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingGroupOutput(v **DescribeThin if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "queryString": @@ -13762,7 +13762,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingGroupOutput(v **DescribeThin if !ok { return fmt.Errorf("expected QueryString to be of type string, got %T instead", value) } - sv.QueryString = &jtv + sv.QueryString = ptr.String(jtv) } case "queryVersion": @@ -13771,7 +13771,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingGroupOutput(v **DescribeThin if !ok { return fmt.Errorf("expected QueryVersion to be of type string, got %T instead", value) } - sv.QueryVersion = &jtv + sv.QueryVersion = ptr.String(jtv) } case "status": @@ -13789,7 +13789,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingGroupOutput(v **DescribeThin if !ok { return fmt.Errorf("expected ThingGroupArn to be of type string, got %T instead", value) } - sv.ThingGroupArn = &jtv + sv.ThingGroupArn = ptr.String(jtv) } case "thingGroupId": @@ -13798,7 +13798,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingGroupOutput(v **DescribeThin if !ok { return fmt.Errorf("expected ThingGroupId to be of type string, got %T instead", value) } - sv.ThingGroupId = &jtv + sv.ThingGroupId = ptr.String(jtv) } case "thingGroupMetadata": @@ -13812,7 +13812,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingGroupOutput(v **DescribeThin if !ok { return fmt.Errorf("expected ThingGroupName to be of type string, got %T instead", value) } - sv.ThingGroupName = &jtv + sv.ThingGroupName = ptr.String(jtv) } case "thingGroupProperties": @@ -13830,7 +13830,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingGroupOutput(v **DescribeThin if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -14010,7 +14010,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingRegistrationTaskOutput(v **D if err != nil { return err } - sv.FailureCount = ptr.Int32(int32(i64)) + sv.FailureCount = int32(i64) } case "inputFileBucket": @@ -14019,7 +14019,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingRegistrationTaskOutput(v **D if !ok { return fmt.Errorf("expected RegistryS3BucketName to be of type string, got %T instead", value) } - sv.InputFileBucket = &jtv + sv.InputFileBucket = ptr.String(jtv) } case "inputFileKey": @@ -14028,7 +14028,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingRegistrationTaskOutput(v **D if !ok { return fmt.Errorf("expected RegistryS3KeyName to be of type string, got %T instead", value) } - sv.InputFileKey = &jtv + sv.InputFileKey = ptr.String(jtv) } case "lastModifiedDate": @@ -14050,7 +14050,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingRegistrationTaskOutput(v **D if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "percentageProgress": @@ -14063,7 +14063,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingRegistrationTaskOutput(v **D if err != nil { return err } - sv.PercentageProgress = ptr.Int32(int32(i64)) + sv.PercentageProgress = int32(i64) } case "roleArn": @@ -14072,7 +14072,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingRegistrationTaskOutput(v **D if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "status": @@ -14094,7 +14094,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingRegistrationTaskOutput(v **D if err != nil { return err } - sv.SuccessCount = ptr.Int32(int32(i64)) + sv.SuccessCount = int32(i64) } case "taskId": @@ -14103,7 +14103,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingRegistrationTaskOutput(v **D if !ok { return fmt.Errorf("expected TaskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } case "templateBody": @@ -14112,7 +14112,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingRegistrationTaskOutput(v **D if !ok { return fmt.Errorf("expected TemplateBody to be of type string, got %T instead", value) } - sv.TemplateBody = &jtv + sv.TemplateBody = ptr.String(jtv) } default: @@ -14278,7 +14278,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingTypeOutput(v **DescribeThing if !ok { return fmt.Errorf("expected ThingTypeArn to be of type string, got %T instead", value) } - sv.ThingTypeArn = &jtv + sv.ThingTypeArn = ptr.String(jtv) } case "thingTypeId": @@ -14287,7 +14287,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingTypeOutput(v **DescribeThing if !ok { return fmt.Errorf("expected ThingTypeId to be of type string, got %T instead", value) } - sv.ThingTypeId = &jtv + sv.ThingTypeId = ptr.String(jtv) } case "thingTypeMetadata": @@ -14301,7 +14301,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThingTypeOutput(v **DescribeThing if !ok { return fmt.Errorf("expected ThingTypeName to be of type string, got %T instead", value) } - sv.ThingTypeName = &jtv + sv.ThingTypeName = ptr.String(jtv) } case "thingTypeProperties": @@ -15061,7 +15061,7 @@ func awsRestjson1_deserializeOpDocumentGetCardinalityOutput(v **GetCardinalityOu if err != nil { return err } - sv.Cardinality = ptr.Int32(int32(i64)) + sv.Cardinality = int32(i64) } default: @@ -15550,7 +15550,7 @@ func awsRestjson1_deserializeOpDocumentGetJobDocumentOutput(v **GetJobDocumentOu if !ok { return fmt.Errorf("expected JobDocument to be of type string, got %T instead", value) } - sv.Document = &jtv + sv.Document = ptr.String(jtv) } default: @@ -15716,7 +15716,7 @@ func awsRestjson1_deserializeOpDocumentGetLoggingOptionsOutput(v **GetLoggingOpt if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -16228,7 +16228,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyOutput(v **GetPolicyOutput, valu if !ok { return fmt.Errorf("expected PolicyVersionId to be of type string, got %T instead", value) } - sv.DefaultVersionId = &jtv + sv.DefaultVersionId = ptr.String(jtv) } case "generationId": @@ -16237,7 +16237,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyOutput(v **GetPolicyOutput, valu if !ok { return fmt.Errorf("expected GenerationId to be of type string, got %T instead", value) } - sv.GenerationId = &jtv + sv.GenerationId = ptr.String(jtv) } case "lastModifiedDate": @@ -16259,7 +16259,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyOutput(v **GetPolicyOutput, valu if !ok { return fmt.Errorf("expected PolicyArn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } case "policyDocument": @@ -16268,7 +16268,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyOutput(v **GetPolicyOutput, valu if !ok { return fmt.Errorf("expected PolicyDocument to be of type string, got %T instead", value) } - sv.PolicyDocument = &jtv + sv.PolicyDocument = ptr.String(jtv) } case "policyName": @@ -16277,7 +16277,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyOutput(v **GetPolicyOutput, valu if !ok { return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } default: @@ -16456,7 +16456,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyVersionOutput(v **GetPolicyVersi if !ok { return fmt.Errorf("expected GenerationId to be of type string, got %T instead", value) } - sv.GenerationId = &jtv + sv.GenerationId = ptr.String(jtv) } case "isDefaultVersion": @@ -16465,7 +16465,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyVersionOutput(v **GetPolicyVersi if !ok { return fmt.Errorf("expected IsDefaultVersion to be of type *bool, got %T instead", value) } - sv.IsDefaultVersion = &jtv + sv.IsDefaultVersion = jtv } case "lastModifiedDate": @@ -16487,7 +16487,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyVersionOutput(v **GetPolicyVersi if !ok { return fmt.Errorf("expected PolicyArn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } case "policyDocument": @@ -16496,7 +16496,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyVersionOutput(v **GetPolicyVersi if !ok { return fmt.Errorf("expected PolicyDocument to be of type string, got %T instead", value) } - sv.PolicyDocument = &jtv + sv.PolicyDocument = ptr.String(jtv) } case "policyName": @@ -16505,7 +16505,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyVersionOutput(v **GetPolicyVersi if !ok { return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } case "policyVersionId": @@ -16514,7 +16514,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyVersionOutput(v **GetPolicyVersi if !ok { return fmt.Errorf("expected PolicyVersionId to be of type string, got %T instead", value) } - sv.PolicyVersionId = &jtv + sv.PolicyVersionId = ptr.String(jtv) } default: @@ -16677,7 +16677,7 @@ func awsRestjson1_deserializeOpDocumentGetRegistrationCodeOutput(v **GetRegistra if !ok { return fmt.Errorf("expected RegistrationCode to be of type string, got %T instead", value) } - sv.RegistrationCode = &jtv + sv.RegistrationCode = ptr.String(jtv) } default: @@ -17013,7 +17013,7 @@ func awsRestjson1_deserializeOpDocumentGetTopicRuleOutput(v **GetTopicRuleOutput if !ok { return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) } - sv.RuleArn = &jtv + sv.RuleArn = ptr.String(jtv) } default: @@ -17335,7 +17335,7 @@ func awsRestjson1_deserializeOpDocumentGetV2LoggingOptionsOutput(v **GetV2Loggin if !ok { return fmt.Errorf("expected DisableAllLogs to be of type *bool, got %T instead", value) } - sv.DisableAllLogs = &jtv + sv.DisableAllLogs = jtv } case "roleArn": @@ -17344,7 +17344,7 @@ func awsRestjson1_deserializeOpDocumentGetV2LoggingOptionsOutput(v **GetV2Loggin if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -17509,7 +17509,7 @@ func awsRestjson1_deserializeOpDocumentListActiveViolationsOutput(v **ListActive if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -17678,7 +17678,7 @@ func awsRestjson1_deserializeOpDocumentListAttachedPoliciesOutput(v **ListAttach if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "policies": @@ -17845,7 +17845,7 @@ func awsRestjson1_deserializeOpDocumentListAuditFindingsOutput(v **ListAuditFind if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -18007,7 +18007,7 @@ func awsRestjson1_deserializeOpDocumentListAuditMitigationActionsExecutionsOutpu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -18164,7 +18164,7 @@ func awsRestjson1_deserializeOpDocumentListAuditMitigationActionsTasksOutput(v * if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tasks": @@ -18326,7 +18326,7 @@ func awsRestjson1_deserializeOpDocumentListAuditSuppressionsOutput(v **ListAudit if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "suppressions": @@ -18488,7 +18488,7 @@ func awsRestjson1_deserializeOpDocumentListAuditTasksOutput(v **ListAuditTasksOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tasks": @@ -18661,7 +18661,7 @@ func awsRestjson1_deserializeOpDocumentListAuthorizersOutput(v **ListAuthorizers if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -18826,7 +18826,7 @@ func awsRestjson1_deserializeOpDocumentListBillingGroupsOutput(v **ListBillingGr if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -18994,7 +18994,7 @@ func awsRestjson1_deserializeOpDocumentListCACertificatesOutput(v **ListCACertif if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -19162,7 +19162,7 @@ func awsRestjson1_deserializeOpDocumentListCertificatesOutput(v **ListCertificat if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -19330,7 +19330,7 @@ func awsRestjson1_deserializeOpDocumentListCertificatesByCAOutput(v **ListCertif if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -19492,7 +19492,7 @@ func awsRestjson1_deserializeOpDocumentListDimensionsOutput(v **ListDimensionsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -19660,7 +19660,7 @@ func awsRestjson1_deserializeOpDocumentListDomainConfigurationsOutput(v **ListDo if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -19828,7 +19828,7 @@ func awsRestjson1_deserializeOpDocumentListIndicesOutput(v **ListIndicesOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -19993,7 +19993,7 @@ func awsRestjson1_deserializeOpDocumentListJobExecutionsForJobOutput(v **ListJob if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20158,7 +20158,7 @@ func awsRestjson1_deserializeOpDocumentListJobExecutionsForThingOutput(v **ListJ if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20323,7 +20323,7 @@ func awsRestjson1_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, value if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20485,7 +20485,7 @@ func awsRestjson1_deserializeOpDocumentListMitigationActionsOutput(v **ListMitig if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20648,7 +20648,7 @@ func awsRestjson1_deserializeOpDocumentListOTAUpdatesOutput(v **ListOTAUpdatesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "otaUpdates": @@ -20816,7 +20816,7 @@ func awsRestjson1_deserializeOpDocumentListOutgoingCertificatesOutput(v **ListOu if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "outgoingCertificates": @@ -20984,7 +20984,7 @@ func awsRestjson1_deserializeOpDocumentListPoliciesOutput(v **ListPoliciesOutput if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "policies": @@ -21155,7 +21155,7 @@ func awsRestjson1_deserializeOpDocumentListPolicyPrincipalsOutput(v **ListPolicy if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "principals": @@ -21488,7 +21488,7 @@ func awsRestjson1_deserializeOpDocumentListPrincipalPoliciesOutput(v **ListPrinc if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "policies": @@ -21659,7 +21659,7 @@ func awsRestjson1_deserializeOpDocumentListPrincipalThingsOutput(v **ListPrincip if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "things": @@ -21824,7 +21824,7 @@ func awsRestjson1_deserializeOpDocumentListProvisioningTemplatesOutput(v **ListP if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "templates": @@ -21992,7 +21992,7 @@ func awsRestjson1_deserializeOpDocumentListProvisioningTemplateVersionsOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "versions": @@ -22160,7 +22160,7 @@ func awsRestjson1_deserializeOpDocumentListRoleAliasesOutput(v **ListRoleAliases if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "roleAliases": @@ -22322,7 +22322,7 @@ func awsRestjson1_deserializeOpDocumentListScheduledAuditsOutput(v **ListSchedul if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "scheduledAudits": @@ -22487,7 +22487,7 @@ func awsRestjson1_deserializeOpDocumentListSecurityProfilesOutput(v **ListSecuri if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "securityProfileIdentifiers": @@ -22652,7 +22652,7 @@ func awsRestjson1_deserializeOpDocumentListSecurityProfilesForTargetOutput(v **L if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "securityProfileTargetMappings": @@ -22820,7 +22820,7 @@ func awsRestjson1_deserializeOpDocumentListStreamsOutput(v **ListStreamsOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "streams": @@ -22985,7 +22985,7 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tags": @@ -23159,7 +23159,7 @@ func awsRestjson1_deserializeOpDocumentListTargetsForPolicyOutput(v **ListTarget if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "targets": @@ -23324,7 +23324,7 @@ func awsRestjson1_deserializeOpDocumentListTargetsForSecurityProfileOutput(v **L if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "securityProfileTargets": @@ -23486,7 +23486,7 @@ func awsRestjson1_deserializeOpDocumentListThingGroupsOutput(v **ListThingGroups if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "thingGroups": @@ -23648,7 +23648,7 @@ func awsRestjson1_deserializeOpDocumentListThingGroupsForThingOutput(v **ListThi if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "thingGroups": @@ -23975,7 +23975,7 @@ func awsRestjson1_deserializeOpDocumentListThingRegistrationTaskReportsOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "reportType": @@ -24149,7 +24149,7 @@ func awsRestjson1_deserializeOpDocumentListThingRegistrationTasksOutput(v **List if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "taskIds": @@ -24317,7 +24317,7 @@ func awsRestjson1_deserializeOpDocumentListThingsOutput(v **ListThingsOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "things": @@ -24482,7 +24482,7 @@ func awsRestjson1_deserializeOpDocumentListThingsInBillingGroupOutput(v **ListTh if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "things": @@ -24644,7 +24644,7 @@ func awsRestjson1_deserializeOpDocumentListThingsInThingGroupOutput(v **ListThin if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "things": @@ -24812,7 +24812,7 @@ func awsRestjson1_deserializeOpDocumentListThingTypesOutput(v **ListThingTypesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "thingTypes": @@ -24982,7 +24982,7 @@ func awsRestjson1_deserializeOpDocumentListTopicRuleDestinationsOutput(v **ListT if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -25139,7 +25139,7 @@ func awsRestjson1_deserializeOpDocumentListTopicRulesOutput(v **ListTopicRulesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "rules": @@ -25309,7 +25309,7 @@ func awsRestjson1_deserializeOpDocumentListV2LoggingLevelsOutput(v **ListV2Loggi if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -25466,7 +25466,7 @@ func awsRestjson1_deserializeOpDocumentListViolationEventsOutput(v **ListViolati if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "violationEvents": @@ -25646,7 +25646,7 @@ func awsRestjson1_deserializeOpDocumentRegisterCACertificateOutput(v **RegisterC if !ok { return fmt.Errorf("expected CertificateArn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateId": @@ -25655,7 +25655,7 @@ func awsRestjson1_deserializeOpDocumentRegisterCACertificateOutput(v **RegisterC if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } default: @@ -25830,7 +25830,7 @@ func awsRestjson1_deserializeOpDocumentRegisterCertificateOutput(v **RegisterCer if !ok { return fmt.Errorf("expected CertificateArn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateId": @@ -25839,7 +25839,7 @@ func awsRestjson1_deserializeOpDocumentRegisterCertificateOutput(v **RegisterCer if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } default: @@ -26011,7 +26011,7 @@ func awsRestjson1_deserializeOpDocumentRegisterCertificateWithoutCAOutput(v **Re if !ok { return fmt.Errorf("expected CertificateArn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateId": @@ -26020,7 +26020,7 @@ func awsRestjson1_deserializeOpDocumentRegisterCertificateWithoutCAOutput(v **Re if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } default: @@ -26189,7 +26189,7 @@ func awsRestjson1_deserializeOpDocumentRegisterThingOutput(v **RegisterThingOutp if !ok { return fmt.Errorf("expected CertificatePem to be of type string, got %T instead", value) } - sv.CertificatePem = &jtv + sv.CertificatePem = ptr.String(jtv) } case "resourceArns": @@ -26749,7 +26749,7 @@ func awsRestjson1_deserializeOpDocumentSearchIndexOutput(v **SearchIndexOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "thingGroups": @@ -26928,7 +26928,7 @@ func awsRestjson1_deserializeOpDocumentSetDefaultAuthorizerOutput(v **SetDefault if !ok { return fmt.Errorf("expected AuthorizerArn to be of type string, got %T instead", value) } - sv.AuthorizerArn = &jtv + sv.AuthorizerArn = ptr.String(jtv) } case "authorizerName": @@ -26937,7 +26937,7 @@ func awsRestjson1_deserializeOpDocumentSetDefaultAuthorizerOutput(v **SetDefault if !ok { return fmt.Errorf("expected AuthorizerName to be of type string, got %T instead", value) } - sv.AuthorizerName = &jtv + sv.AuthorizerName = ptr.String(jtv) } default: @@ -27471,7 +27471,7 @@ func awsRestjson1_deserializeOpDocumentStartAuditMitigationActionsTaskOutput(v * if !ok { return fmt.Errorf("expected AuditMitigationActionsTaskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } default: @@ -27631,7 +27631,7 @@ func awsRestjson1_deserializeOpDocumentStartOnDemandAuditTaskOutput(v **StartOnD if !ok { return fmt.Errorf("expected AuditTaskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } default: @@ -27791,7 +27791,7 @@ func awsRestjson1_deserializeOpDocumentStartThingRegistrationTaskOutput(v **Star if !ok { return fmt.Errorf("expected TaskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } default: @@ -28328,7 +28328,7 @@ func awsRestjson1_deserializeOpDocumentTestInvokeAuthorizerOutput(v **TestInvoke if !ok { return fmt.Errorf("expected IsAuthenticated to be of type *bool, got %T instead", value) } - sv.IsAuthenticated = &jtv + sv.IsAuthenticated = ptr.Bool(jtv) } case "policyDocuments": @@ -28342,7 +28342,7 @@ func awsRestjson1_deserializeOpDocumentTestInvokeAuthorizerOutput(v **TestInvoke if !ok { return fmt.Errorf("expected PrincipalId to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } case "refreshAfterInSeconds": @@ -28527,7 +28527,7 @@ func awsRestjson1_deserializeOpDocumentTransferCertificateOutput(v **TransferCer if !ok { return fmt.Errorf("expected CertificateArn to be of type string, got %T instead", value) } - sv.TransferredCertificateArn = &jtv + sv.TransferredCertificateArn = ptr.String(jtv) } default: @@ -28969,7 +28969,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected AuthorizerArn to be of type string, got %T instead", value) } - sv.AuthorizerArn = &jtv + sv.AuthorizerArn = ptr.String(jtv) } case "authorizerName": @@ -28978,7 +28978,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected AuthorizerName to be of type string, got %T instead", value) } - sv.AuthorizerName = &jtv + sv.AuthorizerName = ptr.String(jtv) } default: @@ -29145,7 +29145,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBillingGroupOutput(v **UpdateBillin if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -29504,7 +29504,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDimensionOutput(v **UpdateDimension if !ok { return fmt.Errorf("expected DimensionArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationDate": @@ -29539,7 +29539,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDimensionOutput(v **UpdateDimension if !ok { return fmt.Errorf("expected DimensionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "stringValues": @@ -29722,7 +29722,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainConfigurationOutput(v **Updat if !ok { return fmt.Errorf("expected DomainConfigurationArn to be of type string, got %T instead", value) } - sv.DomainConfigurationArn = &jtv + sv.DomainConfigurationArn = ptr.String(jtv) } case "domainConfigurationName": @@ -29731,7 +29731,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainConfigurationOutput(v **Updat if !ok { return fmt.Errorf("expected ReservedDomainConfigurationName to be of type string, got %T instead", value) } - sv.DomainConfigurationName = &jtv + sv.DomainConfigurationName = ptr.String(jtv) } default: @@ -29901,7 +29901,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDynamicThingGroupOutput(v **UpdateD if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -30337,7 +30337,7 @@ func awsRestjson1_deserializeOpDocumentUpdateMitigationActionOutput(v **UpdateMi if !ok { return fmt.Errorf("expected MitigationActionArn to be of type string, got %T instead", value) } - sv.ActionArn = &jtv + sv.ActionArn = ptr.String(jtv) } case "actionId": @@ -30346,7 +30346,7 @@ func awsRestjson1_deserializeOpDocumentUpdateMitigationActionOutput(v **UpdateMi if !ok { return fmt.Errorf("expected MitigationActionId to be of type string, got %T instead", value) } - sv.ActionId = &jtv + sv.ActionId = ptr.String(jtv) } default: @@ -30607,7 +30607,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRoleAliasOutput(v **UpdateRoleAlias if !ok { return fmt.Errorf("expected RoleAlias to be of type string, got %T instead", value) } - sv.RoleAlias = &jtv + sv.RoleAlias = ptr.String(jtv) } case "roleAliasArn": @@ -30616,7 +30616,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRoleAliasOutput(v **UpdateRoleAlias if !ok { return fmt.Errorf("expected RoleAliasArn to be of type string, got %T instead", value) } - sv.RoleAliasArn = &jtv + sv.RoleAliasArn = ptr.String(jtv) } default: @@ -30776,7 +30776,7 @@ func awsRestjson1_deserializeOpDocumentUpdateScheduledAuditOutput(v **UpdateSche if !ok { return fmt.Errorf("expected ScheduledAuditArn to be of type string, got %T instead", value) } - sv.ScheduledAuditArn = &jtv + sv.ScheduledAuditArn = ptr.String(jtv) } default: @@ -30985,7 +30985,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSecurityProfileOutput(v **UpdateSec if !ok { return fmt.Errorf("expected SecurityProfileArn to be of type string, got %T instead", value) } - sv.SecurityProfileArn = &jtv + sv.SecurityProfileArn = ptr.String(jtv) } case "securityProfileDescription": @@ -30994,7 +30994,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSecurityProfileOutput(v **UpdateSec if !ok { return fmt.Errorf("expected SecurityProfileDescription to be of type string, got %T instead", value) } - sv.SecurityProfileDescription = &jtv + sv.SecurityProfileDescription = ptr.String(jtv) } case "securityProfileName": @@ -31003,7 +31003,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSecurityProfileOutput(v **UpdateSec if !ok { return fmt.Errorf("expected SecurityProfileName to be of type string, got %T instead", value) } - sv.SecurityProfileName = &jtv + sv.SecurityProfileName = ptr.String(jtv) } case "version": @@ -31016,7 +31016,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSecurityProfileOutput(v **UpdateSec if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -31182,7 +31182,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStreamOutput(v **UpdateStreamOutput if !ok { return fmt.Errorf("expected StreamDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "streamArn": @@ -31191,7 +31191,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStreamOutput(v **UpdateStreamOutput if !ok { return fmt.Errorf("expected StreamArn to be of type string, got %T instead", value) } - sv.StreamArn = &jtv + sv.StreamArn = ptr.String(jtv) } case "streamId": @@ -31200,7 +31200,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStreamOutput(v **UpdateStreamOutput if !ok { return fmt.Errorf("expected StreamId to be of type string, got %T instead", value) } - sv.StreamId = &jtv + sv.StreamId = ptr.String(jtv) } case "streamVersion": @@ -31481,7 +31481,7 @@ func awsRestjson1_deserializeOpDocumentUpdateThingGroupOutput(v **UpdateThingGro if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -31825,7 +31825,7 @@ func awsRestjson1_deserializeOpDocumentValidateSecurityProfileBehaviorsOutput(v if !ok { return fmt.Errorf("expected Valid to be of type *bool, got %T instead", value) } - sv.Valid = &jtv + sv.Valid = jtv } case "validationErrors": @@ -32985,7 +32985,7 @@ func awsRestjson1_deserializeDocumentAbortCriteria(v **types.AbortCriteria, valu if err != nil { return err } - sv.ThresholdPercentage = &f64 + sv.ThresholdPercentage = ptr.Float64(f64) } default: @@ -32997,7 +32997,7 @@ func awsRestjson1_deserializeDocumentAbortCriteria(v **types.AbortCriteria, valu return nil } -func awsRestjson1_deserializeDocumentAbortCriteriaList(v *[]*types.AbortCriteria, value interface{}) error { +func awsRestjson1_deserializeDocumentAbortCriteriaList(v *[]types.AbortCriteria, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33010,18 +33010,20 @@ func awsRestjson1_deserializeDocumentAbortCriteriaList(v *[]*types.AbortCriteria return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AbortCriteria + var cv []types.AbortCriteria if *v == nil { - cv = []*types.AbortCriteria{} + cv = []types.AbortCriteria{} } else { cv = *v } for _, value := range shape { - var col *types.AbortCriteria - if err := awsRestjson1_deserializeDocumentAbortCriteria(&col, value); err != nil { + var col types.AbortCriteria + destAddr := &col + if err := awsRestjson1_deserializeDocumentAbortCriteria(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -33160,7 +33162,7 @@ func awsRestjson1_deserializeDocumentAction(v **types.Action, value interface{}) return nil } -func awsRestjson1_deserializeDocumentActionList(v *[]*types.Action, value interface{}) error { +func awsRestjson1_deserializeDocumentActionList(v *[]types.Action, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33173,18 +33175,20 @@ func awsRestjson1_deserializeDocumentActionList(v *[]*types.Action, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Action + var cv []types.Action if *v == nil { - cv = []*types.Action{} + cv = []types.Action{} } else { cv = *v } for _, value := range shape { - var col *types.Action - if err := awsRestjson1_deserializeDocumentAction(&col, value); err != nil { + var col types.Action + destAddr := &col + if err := awsRestjson1_deserializeDocumentAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -33243,7 +33247,7 @@ func awsRestjson1_deserializeDocumentActiveViolation(v **types.ActiveViolation, if !ok { return fmt.Errorf("expected SecurityProfileName to be of type string, got %T instead", value) } - sv.SecurityProfileName = &jtv + sv.SecurityProfileName = ptr.String(jtv) } case "thingName": @@ -33252,7 +33256,7 @@ func awsRestjson1_deserializeDocumentActiveViolation(v **types.ActiveViolation, if !ok { return fmt.Errorf("expected DeviceDefenderThingName to be of type string, got %T instead", value) } - sv.ThingName = &jtv + sv.ThingName = ptr.String(jtv) } case "violationId": @@ -33261,7 +33265,7 @@ func awsRestjson1_deserializeDocumentActiveViolation(v **types.ActiveViolation, if !ok { return fmt.Errorf("expected ViolationId to be of type string, got %T instead", value) } - sv.ViolationId = &jtv + sv.ViolationId = ptr.String(jtv) } case "violationStartTime": @@ -33286,7 +33290,7 @@ func awsRestjson1_deserializeDocumentActiveViolation(v **types.ActiveViolation, return nil } -func awsRestjson1_deserializeDocumentActiveViolations(v *[]*types.ActiveViolation, value interface{}) error { +func awsRestjson1_deserializeDocumentActiveViolations(v *[]types.ActiveViolation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33299,18 +33303,20 @@ func awsRestjson1_deserializeDocumentActiveViolations(v *[]*types.ActiveViolatio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActiveViolation + var cv []types.ActiveViolation if *v == nil { - cv = []*types.ActiveViolation{} + cv = []types.ActiveViolation{} } else { cv = *v } for _, value := range shape { - var col *types.ActiveViolation - if err := awsRestjson1_deserializeDocumentActiveViolation(&col, value); err != nil { + var col types.ActiveViolation + destAddr := &col + if err := awsRestjson1_deserializeDocumentActiveViolation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -33318,7 +33324,7 @@ func awsRestjson1_deserializeDocumentActiveViolations(v *[]*types.ActiveViolatio return nil } -func awsRestjson1_deserializeDocumentAdditionalMetricsToRetainList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAdditionalMetricsToRetainList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33331,21 +33337,21 @@ func awsRestjson1_deserializeDocumentAdditionalMetricsToRetainList(v *[]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected BehaviorMetric to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -33354,7 +33360,7 @@ func awsRestjson1_deserializeDocumentAdditionalMetricsToRetainList(v *[]*string, return nil } -func awsRestjson1_deserializeDocumentAdditionalMetricsToRetainV2List(v *[]*types.MetricToRetain, value interface{}) error { +func awsRestjson1_deserializeDocumentAdditionalMetricsToRetainV2List(v *[]types.MetricToRetain, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33367,18 +33373,20 @@ func awsRestjson1_deserializeDocumentAdditionalMetricsToRetainV2List(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MetricToRetain + var cv []types.MetricToRetain if *v == nil { - cv = []*types.MetricToRetain{} + cv = []types.MetricToRetain{} } else { cv = *v } for _, value := range shape { - var col *types.MetricToRetain - if err := awsRestjson1_deserializeDocumentMetricToRetain(&col, value); err != nil { + var col types.MetricToRetain + destAddr := &col + if err := awsRestjson1_deserializeDocumentMetricToRetain(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -33386,7 +33394,7 @@ func awsRestjson1_deserializeDocumentAdditionalMetricsToRetainV2List(v *[]*types return nil } -func awsRestjson1_deserializeDocumentAdditionalParameterMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAdditionalParameterMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33399,21 +33407,21 @@ func awsRestjson1_deserializeDocumentAdditionalParameterMap(v *map[string]*strin return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -33450,7 +33458,7 @@ func awsRestjson1_deserializeDocumentAddThingsToThingGroupParams(v **types.AddTh if !ok { return fmt.Errorf("expected OverrideDynamicGroups to be of type *bool, got %T instead", value) } - sv.OverrideDynamicGroups = &jtv + sv.OverrideDynamicGroups = jtv } case "thingGroupNames": @@ -33495,7 +33503,7 @@ func awsRestjson1_deserializeDocumentAlertTarget(v **types.AlertTarget, value in if !ok { return fmt.Errorf("expected AlertTargetArn to be of type string, got %T instead", value) } - sv.AlertTargetArn = &jtv + sv.AlertTargetArn = ptr.String(jtv) } case "roleArn": @@ -33504,7 +33512,7 @@ func awsRestjson1_deserializeDocumentAlertTarget(v **types.AlertTarget, value in if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -33516,7 +33524,7 @@ func awsRestjson1_deserializeDocumentAlertTarget(v **types.AlertTarget, value in return nil } -func awsRestjson1_deserializeDocumentAlertTargets(v *map[string]*types.AlertTarget, value interface{}) error { +func awsRestjson1_deserializeDocumentAlertTargets(v *map[string]types.AlertTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33529,18 +33537,21 @@ func awsRestjson1_deserializeDocumentAlertTargets(v *map[string]*types.AlertTarg return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AlertTarget + var mv map[string]types.AlertTarget if *v == nil { - mv = map[string]*types.AlertTarget{} + mv = map[string]types.AlertTarget{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AlertTarget - if err := awsRestjson1_deserializeDocumentAlertTarget(&parsedVal, value); err != nil { + var parsedVal types.AlertTarget + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentAlertTarget(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -33612,7 +33623,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyTimestamp(v **types.AssetPrope if !ok { return fmt.Errorf("expected AssetPropertyOffsetInNanos to be of type string, got %T instead", value) } - sv.OffsetInNanos = &jtv + sv.OffsetInNanos = ptr.String(jtv) } case "timeInSeconds": @@ -33621,7 +33632,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyTimestamp(v **types.AssetPrope if !ok { return fmt.Errorf("expected AssetPropertyTimeInSeconds to be of type string, got %T instead", value) } - sv.TimeInSeconds = &jtv + sv.TimeInSeconds = ptr.String(jtv) } default: @@ -33661,7 +33672,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyValue(v **types.AssetPropertyV if !ok { return fmt.Errorf("expected AssetPropertyQuality to be of type string, got %T instead", value) } - sv.Quality = &jtv + sv.Quality = ptr.String(jtv) } case "timestamp": @@ -33683,7 +33694,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyValue(v **types.AssetPropertyV return nil } -func awsRestjson1_deserializeDocumentAssetPropertyValueList(v *[]*types.AssetPropertyValue, value interface{}) error { +func awsRestjson1_deserializeDocumentAssetPropertyValueList(v *[]types.AssetPropertyValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33696,18 +33707,20 @@ func awsRestjson1_deserializeDocumentAssetPropertyValueList(v *[]*types.AssetPro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetPropertyValue + var cv []types.AssetPropertyValue if *v == nil { - cv = []*types.AssetPropertyValue{} + cv = []types.AssetPropertyValue{} } else { cv = *v } for _, value := range shape { - var col *types.AssetPropertyValue - if err := awsRestjson1_deserializeDocumentAssetPropertyValue(&col, value); err != nil { + var col types.AssetPropertyValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetPropertyValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -33743,7 +33756,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyVariant(v **types.AssetPropert if !ok { return fmt.Errorf("expected AssetPropertyBooleanValue to be of type string, got %T instead", value) } - sv.BooleanValue = &jtv + sv.BooleanValue = ptr.String(jtv) } case "doubleValue": @@ -33752,7 +33765,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyVariant(v **types.AssetPropert if !ok { return fmt.Errorf("expected AssetPropertyDoubleValue to be of type string, got %T instead", value) } - sv.DoubleValue = &jtv + sv.DoubleValue = ptr.String(jtv) } case "integerValue": @@ -33761,7 +33774,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyVariant(v **types.AssetPropert if !ok { return fmt.Errorf("expected AssetPropertyIntegerValue to be of type string, got %T instead", value) } - sv.IntegerValue = &jtv + sv.IntegerValue = ptr.String(jtv) } case "stringValue": @@ -33770,7 +33783,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyVariant(v **types.AssetPropert if !ok { return fmt.Errorf("expected AssetPropertyStringValue to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } default: @@ -33815,7 +33828,7 @@ func awsRestjson1_deserializeDocumentAttributePayload(v **types.AttributePayload if !ok { return fmt.Errorf("expected Flag to be of type *bool, got %T instead", value) } - sv.Merge = &jtv + sv.Merge = jtv } default: @@ -33827,7 +33840,7 @@ func awsRestjson1_deserializeDocumentAttributePayload(v **types.AttributePayload return nil } -func awsRestjson1_deserializeDocumentAttributes(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAttributes(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33840,21 +33853,21 @@ func awsRestjson1_deserializeDocumentAttributes(v *map[string]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -33863,7 +33876,7 @@ func awsRestjson1_deserializeDocumentAttributes(v *map[string]*string, value int return nil } -func awsRestjson1_deserializeDocumentAttributesMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAttributesMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33876,21 +33889,21 @@ func awsRestjson1_deserializeDocumentAttributesMap(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -33927,7 +33940,7 @@ func awsRestjson1_deserializeDocumentAuditCheckConfiguration(v **types.AuditChec if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } default: @@ -33939,7 +33952,7 @@ func awsRestjson1_deserializeDocumentAuditCheckConfiguration(v **types.AuditChec return nil } -func awsRestjson1_deserializeDocumentAuditCheckConfigurations(v *map[string]*types.AuditCheckConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentAuditCheckConfigurations(v *map[string]types.AuditCheckConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33952,18 +33965,21 @@ func awsRestjson1_deserializeDocumentAuditCheckConfigurations(v *map[string]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AuditCheckConfiguration + var mv map[string]types.AuditCheckConfiguration if *v == nil { - mv = map[string]*types.AuditCheckConfiguration{} + mv = map[string]types.AuditCheckConfiguration{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AuditCheckConfiguration - if err := awsRestjson1_deserializeDocumentAuditCheckConfiguration(&parsedVal, value); err != nil { + var parsedVal types.AuditCheckConfiguration + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentAuditCheckConfiguration(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -33999,7 +34015,7 @@ func awsRestjson1_deserializeDocumentAuditCheckDetails(v **types.AuditCheckDetai if !ok { return fmt.Errorf("expected CheckCompliant to be of type *bool, got %T instead", value) } - sv.CheckCompliant = &jtv + sv.CheckCompliant = ptr.Bool(jtv) } case "checkRunStatus": @@ -34017,7 +34033,7 @@ func awsRestjson1_deserializeDocumentAuditCheckDetails(v **types.AuditCheckDetai if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "message": @@ -34026,7 +34042,7 @@ func awsRestjson1_deserializeDocumentAuditCheckDetails(v **types.AuditCheckDetai if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "nonCompliantResourcesCount": @@ -34039,7 +34055,7 @@ func awsRestjson1_deserializeDocumentAuditCheckDetails(v **types.AuditCheckDetai if err != nil { return err } - sv.NonCompliantResourcesCount = &i64 + sv.NonCompliantResourcesCount = ptr.Int64(i64) } case "suppressedNonCompliantResourcesCount": @@ -34052,7 +34068,7 @@ func awsRestjson1_deserializeDocumentAuditCheckDetails(v **types.AuditCheckDetai if err != nil { return err } - sv.SuppressedNonCompliantResourcesCount = &i64 + sv.SuppressedNonCompliantResourcesCount = ptr.Int64(i64) } case "totalResourcesCount": @@ -34065,7 +34081,7 @@ func awsRestjson1_deserializeDocumentAuditCheckDetails(v **types.AuditCheckDetai if err != nil { return err } - sv.TotalResourcesCount = &i64 + sv.TotalResourcesCount = ptr.Int64(i64) } default: @@ -34077,7 +34093,7 @@ func awsRestjson1_deserializeDocumentAuditCheckDetails(v **types.AuditCheckDetai return nil } -func awsRestjson1_deserializeDocumentAuditCheckToActionsMapping(v *map[string][]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAuditCheckToActionsMapping(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34090,18 +34106,20 @@ func awsRestjson1_deserializeDocumentAuditCheckToActionsMapping(v *map[string][] return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsRestjson1_deserializeDocumentMitigationActionNameList(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentMitigationActionNameList(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -34109,7 +34127,7 @@ func awsRestjson1_deserializeDocumentAuditCheckToActionsMapping(v *map[string][] return nil } -func awsRestjson1_deserializeDocumentAuditCheckToReasonCodeFilter(v *map[string][]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAuditCheckToReasonCodeFilter(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34122,18 +34140,20 @@ func awsRestjson1_deserializeDocumentAuditCheckToReasonCodeFilter(v *map[string] return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsRestjson1_deserializeDocumentReasonForNonComplianceCodes(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentReasonForNonComplianceCodes(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -34141,7 +34161,7 @@ func awsRestjson1_deserializeDocumentAuditCheckToReasonCodeFilter(v *map[string] return nil } -func awsRestjson1_deserializeDocumentAuditDetails(v *map[string]*types.AuditCheckDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentAuditDetails(v *map[string]types.AuditCheckDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34154,18 +34174,21 @@ func awsRestjson1_deserializeDocumentAuditDetails(v *map[string]*types.AuditChec return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AuditCheckDetails + var mv map[string]types.AuditCheckDetails if *v == nil { - mv = map[string]*types.AuditCheckDetails{} + mv = map[string]types.AuditCheckDetails{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AuditCheckDetails - if err := awsRestjson1_deserializeDocumentAuditCheckDetails(&parsedVal, value); err != nil { + var parsedVal types.AuditCheckDetails + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentAuditCheckDetails(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -34201,7 +34224,7 @@ func awsRestjson1_deserializeDocumentAuditFinding(v **types.AuditFinding, value if !ok { return fmt.Errorf("expected AuditCheckName to be of type string, got %T instead", value) } - sv.CheckName = &jtv + sv.CheckName = ptr.String(jtv) } case "findingId": @@ -34210,7 +34233,7 @@ func awsRestjson1_deserializeDocumentAuditFinding(v **types.AuditFinding, value if !ok { return fmt.Errorf("expected FindingId to be of type string, got %T instead", value) } - sv.FindingId = &jtv + sv.FindingId = ptr.String(jtv) } case "findingTime": @@ -34232,7 +34255,7 @@ func awsRestjson1_deserializeDocumentAuditFinding(v **types.AuditFinding, value if !ok { return fmt.Errorf("expected IsSuppressed to be of type *bool, got %T instead", value) } - sv.IsSuppressed = &jtv + sv.IsSuppressed = ptr.Bool(jtv) } case "nonCompliantResource": @@ -34246,7 +34269,7 @@ func awsRestjson1_deserializeDocumentAuditFinding(v **types.AuditFinding, value if !ok { return fmt.Errorf("expected ReasonForNonCompliance to be of type string, got %T instead", value) } - sv.ReasonForNonCompliance = &jtv + sv.ReasonForNonCompliance = ptr.String(jtv) } case "reasonForNonComplianceCode": @@ -34255,7 +34278,7 @@ func awsRestjson1_deserializeDocumentAuditFinding(v **types.AuditFinding, value if !ok { return fmt.Errorf("expected ReasonForNonComplianceCode to be of type string, got %T instead", value) } - sv.ReasonForNonComplianceCode = &jtv + sv.ReasonForNonComplianceCode = ptr.String(jtv) } case "relatedResources": @@ -34278,7 +34301,7 @@ func awsRestjson1_deserializeDocumentAuditFinding(v **types.AuditFinding, value if !ok { return fmt.Errorf("expected AuditTaskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } case "taskStartTime": @@ -34303,7 +34326,7 @@ func awsRestjson1_deserializeDocumentAuditFinding(v **types.AuditFinding, value return nil } -func awsRestjson1_deserializeDocumentAuditFindings(v *[]*types.AuditFinding, value interface{}) error { +func awsRestjson1_deserializeDocumentAuditFindings(v *[]types.AuditFinding, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34316,18 +34339,20 @@ func awsRestjson1_deserializeDocumentAuditFindings(v *[]*types.AuditFinding, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AuditFinding + var cv []types.AuditFinding if *v == nil { - cv = []*types.AuditFinding{} + cv = []types.AuditFinding{} } else { cv = *v } for _, value := range shape { - var col *types.AuditFinding - if err := awsRestjson1_deserializeDocumentAuditFinding(&col, value); err != nil { + var col types.AuditFinding + destAddr := &col + if err := awsRestjson1_deserializeDocumentAuditFinding(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -34363,7 +34388,7 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionExecutionMetadata(v ** if !ok { return fmt.Errorf("expected MitigationActionId to be of type string, got %T instead", value) } - sv.ActionId = &jtv + sv.ActionId = ptr.String(jtv) } case "actionName": @@ -34372,7 +34397,7 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionExecutionMetadata(v ** if !ok { return fmt.Errorf("expected MitigationActionName to be of type string, got %T instead", value) } - sv.ActionName = &jtv + sv.ActionName = ptr.String(jtv) } case "endTime": @@ -34394,7 +34419,7 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionExecutionMetadata(v ** if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "findingId": @@ -34403,7 +34428,7 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionExecutionMetadata(v ** if !ok { return fmt.Errorf("expected FindingId to be of type string, got %T instead", value) } - sv.FindingId = &jtv + sv.FindingId = ptr.String(jtv) } case "message": @@ -34412,7 +34437,7 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionExecutionMetadata(v ** if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "startTime": @@ -34443,7 +34468,7 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionExecutionMetadata(v ** if !ok { return fmt.Errorf("expected AuditMitigationActionsTaskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } default: @@ -34455,7 +34480,7 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionExecutionMetadata(v ** return nil } -func awsRestjson1_deserializeDocumentAuditMitigationActionExecutionMetadataList(v *[]*types.AuditMitigationActionExecutionMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentAuditMitigationActionExecutionMetadataList(v *[]types.AuditMitigationActionExecutionMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34468,18 +34493,20 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionExecutionMetadataList( return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AuditMitigationActionExecutionMetadata + var cv []types.AuditMitigationActionExecutionMetadata if *v == nil { - cv = []*types.AuditMitigationActionExecutionMetadata{} + cv = []types.AuditMitigationActionExecutionMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.AuditMitigationActionExecutionMetadata - if err := awsRestjson1_deserializeDocumentAuditMitigationActionExecutionMetadata(&col, value); err != nil { + var col types.AuditMitigationActionExecutionMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentAuditMitigationActionExecutionMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -34528,7 +34555,7 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionsTaskMetadata(v **type if !ok { return fmt.Errorf("expected AuditMitigationActionsTaskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } case "taskStatus": @@ -34549,7 +34576,7 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionsTaskMetadata(v **type return nil } -func awsRestjson1_deserializeDocumentAuditMitigationActionsTaskMetadataList(v *[]*types.AuditMitigationActionsTaskMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentAuditMitigationActionsTaskMetadataList(v *[]types.AuditMitigationActionsTaskMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34562,18 +34589,20 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionsTaskMetadataList(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AuditMitigationActionsTaskMetadata + var cv []types.AuditMitigationActionsTaskMetadata if *v == nil { - cv = []*types.AuditMitigationActionsTaskMetadata{} + cv = []types.AuditMitigationActionsTaskMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.AuditMitigationActionsTaskMetadata - if err := awsRestjson1_deserializeDocumentAuditMitigationActionsTaskMetadata(&col, value); err != nil { + var col types.AuditMitigationActionsTaskMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentAuditMitigationActionsTaskMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -34581,7 +34610,7 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionsTaskMetadataList(v *[ return nil } -func awsRestjson1_deserializeDocumentAuditMitigationActionsTaskStatistics(v *map[string]*types.TaskStatisticsForAuditCheck, value interface{}) error { +func awsRestjson1_deserializeDocumentAuditMitigationActionsTaskStatistics(v *map[string]types.TaskStatisticsForAuditCheck, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34594,18 +34623,21 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionsTaskStatistics(v *map return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.TaskStatisticsForAuditCheck + var mv map[string]types.TaskStatisticsForAuditCheck if *v == nil { - mv = map[string]*types.TaskStatisticsForAuditCheck{} + mv = map[string]types.TaskStatisticsForAuditCheck{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.TaskStatisticsForAuditCheck - if err := awsRestjson1_deserializeDocumentTaskStatisticsForAuditCheck(&parsedVal, value); err != nil { + var parsedVal types.TaskStatisticsForAuditCheck + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentTaskStatisticsForAuditCheck(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -34646,7 +34678,7 @@ func awsRestjson1_deserializeDocumentAuditMitigationActionsTaskTarget(v **types. if !ok { return fmt.Errorf("expected AuditTaskId to be of type string, got %T instead", value) } - sv.AuditTaskId = &jtv + sv.AuditTaskId = ptr.String(jtv) } case "findingIds": @@ -34691,7 +34723,7 @@ func awsRestjson1_deserializeDocumentAuditNotificationTarget(v **types.AuditNoti if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "roleArn": @@ -34700,7 +34732,7 @@ func awsRestjson1_deserializeDocumentAuditNotificationTarget(v **types.AuditNoti if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "targetArn": @@ -34709,7 +34741,7 @@ func awsRestjson1_deserializeDocumentAuditNotificationTarget(v **types.AuditNoti if !ok { return fmt.Errorf("expected TargetArn to be of type string, got %T instead", value) } - sv.TargetArn = &jtv + sv.TargetArn = ptr.String(jtv) } default: @@ -34721,7 +34753,7 @@ func awsRestjson1_deserializeDocumentAuditNotificationTarget(v **types.AuditNoti return nil } -func awsRestjson1_deserializeDocumentAuditNotificationTargetConfigurations(v *map[string]*types.AuditNotificationTarget, value interface{}) error { +func awsRestjson1_deserializeDocumentAuditNotificationTargetConfigurations(v *map[string]types.AuditNotificationTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34734,18 +34766,21 @@ func awsRestjson1_deserializeDocumentAuditNotificationTargetConfigurations(v *ma return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AuditNotificationTarget + var mv map[string]types.AuditNotificationTarget if *v == nil { - mv = map[string]*types.AuditNotificationTarget{} + mv = map[string]types.AuditNotificationTarget{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AuditNotificationTarget - if err := awsRestjson1_deserializeDocumentAuditNotificationTarget(&parsedVal, value); err != nil { + var parsedVal types.AuditNotificationTarget + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentAuditNotificationTarget(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -34781,7 +34816,7 @@ func awsRestjson1_deserializeDocumentAuditSuppression(v **types.AuditSuppression if !ok { return fmt.Errorf("expected AuditCheckName to be of type string, got %T instead", value) } - sv.CheckName = &jtv + sv.CheckName = ptr.String(jtv) } case "description": @@ -34790,7 +34825,7 @@ func awsRestjson1_deserializeDocumentAuditSuppression(v **types.AuditSuppression if !ok { return fmt.Errorf("expected AuditDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "expirationDate": @@ -34817,7 +34852,7 @@ func awsRestjson1_deserializeDocumentAuditSuppression(v **types.AuditSuppression if !ok { return fmt.Errorf("expected SuppressIndefinitely to be of type *bool, got %T instead", value) } - sv.SuppressIndefinitely = &jtv + sv.SuppressIndefinitely = ptr.Bool(jtv) } default: @@ -34829,7 +34864,7 @@ func awsRestjson1_deserializeDocumentAuditSuppression(v **types.AuditSuppression return nil } -func awsRestjson1_deserializeDocumentAuditSuppressionList(v *[]*types.AuditSuppression, value interface{}) error { +func awsRestjson1_deserializeDocumentAuditSuppressionList(v *[]types.AuditSuppression, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34842,18 +34877,20 @@ func awsRestjson1_deserializeDocumentAuditSuppressionList(v *[]*types.AuditSuppr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AuditSuppression + var cv []types.AuditSuppression if *v == nil { - cv = []*types.AuditSuppression{} + cv = []types.AuditSuppression{} } else { cv = *v } for _, value := range shape { - var col *types.AuditSuppression - if err := awsRestjson1_deserializeDocumentAuditSuppression(&col, value); err != nil { + var col types.AuditSuppression + destAddr := &col + if err := awsRestjson1_deserializeDocumentAuditSuppression(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -34889,7 +34926,7 @@ func awsRestjson1_deserializeDocumentAuditTaskMetadata(v **types.AuditTaskMetada if !ok { return fmt.Errorf("expected AuditTaskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } case "taskStatus": @@ -34919,7 +34956,7 @@ func awsRestjson1_deserializeDocumentAuditTaskMetadata(v **types.AuditTaskMetada return nil } -func awsRestjson1_deserializeDocumentAuditTaskMetadataList(v *[]*types.AuditTaskMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentAuditTaskMetadataList(v *[]types.AuditTaskMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34932,18 +34969,20 @@ func awsRestjson1_deserializeDocumentAuditTaskMetadataList(v *[]*types.AuditTask return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AuditTaskMetadata + var cv []types.AuditTaskMetadata if *v == nil { - cv = []*types.AuditTaskMetadata{} + cv = []types.AuditTaskMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.AuditTaskMetadata - if err := awsRestjson1_deserializeDocumentAuditTaskMetadata(&col, value); err != nil { + var col types.AuditTaskMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentAuditTaskMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -35024,7 +35063,7 @@ func awsRestjson1_deserializeDocumentAuthorizerConfig(v **types.AuthorizerConfig if !ok { return fmt.Errorf("expected AllowAuthorizerOverride to be of type *bool, got %T instead", value) } - sv.AllowAuthorizerOverride = &jtv + sv.AllowAuthorizerOverride = jtv } case "defaultAuthorizerName": @@ -35033,7 +35072,7 @@ func awsRestjson1_deserializeDocumentAuthorizerConfig(v **types.AuthorizerConfig if !ok { return fmt.Errorf("expected AuthorizerName to be of type string, got %T instead", value) } - sv.DefaultAuthorizerName = &jtv + sv.DefaultAuthorizerName = ptr.String(jtv) } default: @@ -35073,7 +35112,7 @@ func awsRestjson1_deserializeDocumentAuthorizerDescription(v **types.AuthorizerD if !ok { return fmt.Errorf("expected AuthorizerArn to be of type string, got %T instead", value) } - sv.AuthorizerArn = &jtv + sv.AuthorizerArn = ptr.String(jtv) } case "authorizerFunctionArn": @@ -35082,7 +35121,7 @@ func awsRestjson1_deserializeDocumentAuthorizerDescription(v **types.AuthorizerD if !ok { return fmt.Errorf("expected AuthorizerFunctionArn to be of type string, got %T instead", value) } - sv.AuthorizerFunctionArn = &jtv + sv.AuthorizerFunctionArn = ptr.String(jtv) } case "authorizerName": @@ -35091,7 +35130,7 @@ func awsRestjson1_deserializeDocumentAuthorizerDescription(v **types.AuthorizerD if !ok { return fmt.Errorf("expected AuthorizerName to be of type string, got %T instead", value) } - sv.AuthorizerName = &jtv + sv.AuthorizerName = ptr.String(jtv) } case "creationDate": @@ -35126,7 +35165,7 @@ func awsRestjson1_deserializeDocumentAuthorizerDescription(v **types.AuthorizerD if !ok { return fmt.Errorf("expected BooleanKey to be of type *bool, got %T instead", value) } - sv.SigningDisabled = &jtv + sv.SigningDisabled = ptr.Bool(jtv) } case "status": @@ -35144,7 +35183,7 @@ func awsRestjson1_deserializeDocumentAuthorizerDescription(v **types.AuthorizerD if !ok { return fmt.Errorf("expected TokenKeyName to be of type string, got %T instead", value) } - sv.TokenKeyName = &jtv + sv.TokenKeyName = ptr.String(jtv) } case "tokenSigningPublicKeys": @@ -35161,7 +35200,7 @@ func awsRestjson1_deserializeDocumentAuthorizerDescription(v **types.AuthorizerD return nil } -func awsRestjson1_deserializeDocumentAuthorizers(v *[]*types.AuthorizerSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentAuthorizers(v *[]types.AuthorizerSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35174,18 +35213,20 @@ func awsRestjson1_deserializeDocumentAuthorizers(v *[]*types.AuthorizerSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AuthorizerSummary + var cv []types.AuthorizerSummary if *v == nil { - cv = []*types.AuthorizerSummary{} + cv = []types.AuthorizerSummary{} } else { cv = *v } for _, value := range shape { - var col *types.AuthorizerSummary - if err := awsRestjson1_deserializeDocumentAuthorizerSummary(&col, value); err != nil { + var col types.AuthorizerSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAuthorizerSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -35221,7 +35262,7 @@ func awsRestjson1_deserializeDocumentAuthorizerSummary(v **types.AuthorizerSumma if !ok { return fmt.Errorf("expected AuthorizerArn to be of type string, got %T instead", value) } - sv.AuthorizerArn = &jtv + sv.AuthorizerArn = ptr.String(jtv) } case "authorizerName": @@ -35230,7 +35271,7 @@ func awsRestjson1_deserializeDocumentAuthorizerSummary(v **types.AuthorizerSumma if !ok { return fmt.Errorf("expected AuthorizerName to be of type string, got %T instead", value) } - sv.AuthorizerName = &jtv + sv.AuthorizerName = ptr.String(jtv) } default: @@ -35302,7 +35343,7 @@ func awsRestjson1_deserializeDocumentAuthResult(v **types.AuthResult, value inte return nil } -func awsRestjson1_deserializeDocumentAuthResults(v *[]*types.AuthResult, value interface{}) error { +func awsRestjson1_deserializeDocumentAuthResults(v *[]types.AuthResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35315,18 +35356,20 @@ func awsRestjson1_deserializeDocumentAuthResults(v *[]*types.AuthResult, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AuthResult + var cv []types.AuthResult if *v == nil { - cv = []*types.AuthResult{} + cv = []types.AuthResult{} } else { cv = *v } for _, value := range shape { - var col *types.AuthResult - if err := awsRestjson1_deserializeDocumentAuthResult(&col, value); err != nil { + var col types.AuthResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentAuthResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -35428,7 +35471,7 @@ func awsRestjson1_deserializeDocumentAwsJobExponentialRolloutRate(v **types.AwsJ if err != nil { return err } - sv.IncrementFactor = &f64 + sv.IncrementFactor = f64 } case "rateIncreaseCriteria": @@ -35477,7 +35520,7 @@ func awsRestjson1_deserializeDocumentAwsJobPresignedUrlConfig(v **types.AwsJobPr if err != nil { return err } - sv.ExpiresInSec = &i64 + sv.ExpiresInSec = ptr.Int64(i64) } default: @@ -35579,7 +35622,7 @@ func awsRestjson1_deserializeDocumentBehavior(v **types.Behavior, value interfac if !ok { return fmt.Errorf("expected BehaviorMetric to be of type string, got %T instead", value) } - sv.Metric = &jtv + sv.Metric = ptr.String(jtv) } case "metricDimension": @@ -35593,7 +35636,7 @@ func awsRestjson1_deserializeDocumentBehavior(v **types.Behavior, value interfac if !ok { return fmt.Errorf("expected BehaviorName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -35694,7 +35737,7 @@ func awsRestjson1_deserializeDocumentBehaviorCriteria(v **types.BehaviorCriteria return nil } -func awsRestjson1_deserializeDocumentBehaviors(v *[]*types.Behavior, value interface{}) error { +func awsRestjson1_deserializeDocumentBehaviors(v *[]types.Behavior, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35707,18 +35750,20 @@ func awsRestjson1_deserializeDocumentBehaviors(v *[]*types.Behavior, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Behavior + var cv []types.Behavior if *v == nil { - cv = []*types.Behavior{} + cv = []types.Behavior{} } else { cv = *v } for _, value := range shape { - var col *types.Behavior - if err := awsRestjson1_deserializeDocumentBehavior(&col, value); err != nil { + var col types.Behavior + destAddr := &col + if err := awsRestjson1_deserializeDocumentBehavior(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -35770,7 +35815,7 @@ func awsRestjson1_deserializeDocumentBillingGroupMetadata(v **types.BillingGroup return nil } -func awsRestjson1_deserializeDocumentBillingGroupNameAndArnList(v *[]*types.GroupNameAndArn, value interface{}) error { +func awsRestjson1_deserializeDocumentBillingGroupNameAndArnList(v *[]types.GroupNameAndArn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35783,18 +35828,20 @@ func awsRestjson1_deserializeDocumentBillingGroupNameAndArnList(v *[]*types.Grou return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupNameAndArn + var cv []types.GroupNameAndArn if *v == nil { - cv = []*types.GroupNameAndArn{} + cv = []types.GroupNameAndArn{} } else { cv = *v } for _, value := range shape { - var col *types.GroupNameAndArn - if err := awsRestjson1_deserializeDocumentGroupNameAndArn(&col, value); err != nil { + var col types.GroupNameAndArn + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroupNameAndArn(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -35830,7 +35877,7 @@ func awsRestjson1_deserializeDocumentBillingGroupProperties(v **types.BillingGro if !ok { return fmt.Errorf("expected BillingGroupDescription to be of type string, got %T instead", value) } - sv.BillingGroupDescription = &jtv + sv.BillingGroupDescription = ptr.String(jtv) } default: @@ -35870,7 +35917,7 @@ func awsRestjson1_deserializeDocumentCACertificate(v **types.CACertificate, valu if !ok { return fmt.Errorf("expected CertificateArn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateId": @@ -35879,7 +35926,7 @@ func awsRestjson1_deserializeDocumentCACertificate(v **types.CACertificate, valu if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } case "creationDate": @@ -35950,7 +35997,7 @@ func awsRestjson1_deserializeDocumentCACertificateDescription(v **types.CACertif if !ok { return fmt.Errorf("expected CertificateArn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateId": @@ -35959,7 +36006,7 @@ func awsRestjson1_deserializeDocumentCACertificateDescription(v **types.CACertif if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } case "certificatePem": @@ -35968,7 +36015,7 @@ func awsRestjson1_deserializeDocumentCACertificateDescription(v **types.CACertif if !ok { return fmt.Errorf("expected CertificatePem to be of type string, got %T instead", value) } - sv.CertificatePem = &jtv + sv.CertificatePem = ptr.String(jtv) } case "creationDate": @@ -36003,7 +36050,7 @@ func awsRestjson1_deserializeDocumentCACertificateDescription(v **types.CACertif if !ok { return fmt.Errorf("expected GenerationId to be of type string, got %T instead", value) } - sv.GenerationId = &jtv + sv.GenerationId = ptr.String(jtv) } case "lastModifiedDate": @@ -36025,7 +36072,7 @@ func awsRestjson1_deserializeDocumentCACertificateDescription(v **types.CACertif if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.OwnedBy = &jtv + sv.OwnedBy = ptr.String(jtv) } case "status": @@ -36051,7 +36098,7 @@ func awsRestjson1_deserializeDocumentCACertificateDescription(v **types.CACertif return nil } -func awsRestjson1_deserializeDocumentCACertificates(v *[]*types.CACertificate, value interface{}) error { +func awsRestjson1_deserializeDocumentCACertificates(v *[]types.CACertificate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36064,18 +36111,20 @@ func awsRestjson1_deserializeDocumentCACertificates(v *[]*types.CACertificate, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CACertificate + var cv []types.CACertificate if *v == nil { - cv = []*types.CACertificate{} + cv = []types.CACertificate{} } else { cv = *v } for _, value := range shape { - var col *types.CACertificate - if err := awsRestjson1_deserializeDocumentCACertificate(&col, value); err != nil { + var col types.CACertificate + destAddr := &col + if err := awsRestjson1_deserializeDocumentCACertificate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -36111,7 +36160,7 @@ func awsRestjson1_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected CertificateArn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateId": @@ -36120,7 +36169,7 @@ func awsRestjson1_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } case "certificateMode": @@ -36191,7 +36240,7 @@ func awsRestjson1_deserializeDocumentCertificateConflictException(v **types.Cert if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -36231,7 +36280,7 @@ func awsRestjson1_deserializeDocumentCertificateDescription(v **types.Certificat if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CaCertificateId = &jtv + sv.CaCertificateId = ptr.String(jtv) } case "certificateArn": @@ -36240,7 +36289,7 @@ func awsRestjson1_deserializeDocumentCertificateDescription(v **types.Certificat if !ok { return fmt.Errorf("expected CertificateArn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateId": @@ -36249,7 +36298,7 @@ func awsRestjson1_deserializeDocumentCertificateDescription(v **types.Certificat if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } case "certificateMode": @@ -36267,7 +36316,7 @@ func awsRestjson1_deserializeDocumentCertificateDescription(v **types.Certificat if !ok { return fmt.Errorf("expected CertificatePem to be of type string, got %T instead", value) } - sv.CertificatePem = &jtv + sv.CertificatePem = ptr.String(jtv) } case "creationDate": @@ -36302,7 +36351,7 @@ func awsRestjson1_deserializeDocumentCertificateDescription(v **types.Certificat if !ok { return fmt.Errorf("expected GenerationId to be of type string, got %T instead", value) } - sv.GenerationId = &jtv + sv.GenerationId = ptr.String(jtv) } case "lastModifiedDate": @@ -36324,7 +36373,7 @@ func awsRestjson1_deserializeDocumentCertificateDescription(v **types.Certificat if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.OwnedBy = &jtv + sv.OwnedBy = ptr.String(jtv) } case "previousOwnedBy": @@ -36333,7 +36382,7 @@ func awsRestjson1_deserializeDocumentCertificateDescription(v **types.Certificat if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.PreviousOwnedBy = &jtv + sv.PreviousOwnedBy = ptr.String(jtv) } case "status": @@ -36364,7 +36413,7 @@ func awsRestjson1_deserializeDocumentCertificateDescription(v **types.Certificat return nil } -func awsRestjson1_deserializeDocumentCertificates(v *[]*types.Certificate, value interface{}) error { +func awsRestjson1_deserializeDocumentCertificates(v *[]types.Certificate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36377,18 +36426,20 @@ func awsRestjson1_deserializeDocumentCertificates(v *[]*types.Certificate, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Certificate + var cv []types.Certificate if *v == nil { - cv = []*types.Certificate{} + cv = []types.Certificate{} } else { cv = *v } for _, value := range shape { - var col *types.Certificate - if err := awsRestjson1_deserializeDocumentCertificate(&col, value); err != nil { + var col types.Certificate + destAddr := &col + if err := awsRestjson1_deserializeDocumentCertificate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -36424,7 +36475,7 @@ func awsRestjson1_deserializeDocumentCertificateStateException(v **types.Certifi if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -36464,7 +36515,7 @@ func awsRestjson1_deserializeDocumentCertificateValidationException(v **types.Ce if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -36533,7 +36584,7 @@ func awsRestjson1_deserializeDocumentCertificateValidity(v **types.CertificateVa return nil } -func awsRestjson1_deserializeDocumentCidrs(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentCidrs(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36546,21 +36597,21 @@ func awsRestjson1_deserializeDocumentCidrs(v *[]*string, value interface{}) erro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Cidr to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -36597,7 +36648,7 @@ func awsRestjson1_deserializeDocumentCloudwatchAlarmAction(v **types.CloudwatchA if !ok { return fmt.Errorf("expected AlarmName to be of type string, got %T instead", value) } - sv.AlarmName = &jtv + sv.AlarmName = ptr.String(jtv) } case "roleArn": @@ -36606,7 +36657,7 @@ func awsRestjson1_deserializeDocumentCloudwatchAlarmAction(v **types.CloudwatchA if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "stateReason": @@ -36615,7 +36666,7 @@ func awsRestjson1_deserializeDocumentCloudwatchAlarmAction(v **types.CloudwatchA if !ok { return fmt.Errorf("expected StateReason to be of type string, got %T instead", value) } - sv.StateReason = &jtv + sv.StateReason = ptr.String(jtv) } case "stateValue": @@ -36624,7 +36675,7 @@ func awsRestjson1_deserializeDocumentCloudwatchAlarmAction(v **types.CloudwatchA if !ok { return fmt.Errorf("expected StateValue to be of type string, got %T instead", value) } - sv.StateValue = &jtv + sv.StateValue = ptr.String(jtv) } default: @@ -36664,7 +36715,7 @@ func awsRestjson1_deserializeDocumentCloudwatchLogsAction(v **types.CloudwatchLo if !ok { return fmt.Errorf("expected LogGroupName to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } case "roleArn": @@ -36673,7 +36724,7 @@ func awsRestjson1_deserializeDocumentCloudwatchLogsAction(v **types.CloudwatchLo if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -36713,7 +36764,7 @@ func awsRestjson1_deserializeDocumentCloudwatchMetricAction(v **types.Cloudwatch if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "metricNamespace": @@ -36722,7 +36773,7 @@ func awsRestjson1_deserializeDocumentCloudwatchMetricAction(v **types.Cloudwatch if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MetricNamespace = &jtv + sv.MetricNamespace = ptr.String(jtv) } case "metricTimestamp": @@ -36731,7 +36782,7 @@ func awsRestjson1_deserializeDocumentCloudwatchMetricAction(v **types.Cloudwatch if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MetricTimestamp = &jtv + sv.MetricTimestamp = ptr.String(jtv) } case "metricUnit": @@ -36740,7 +36791,7 @@ func awsRestjson1_deserializeDocumentCloudwatchMetricAction(v **types.Cloudwatch if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MetricUnit = &jtv + sv.MetricUnit = ptr.String(jtv) } case "metricValue": @@ -36749,7 +36800,7 @@ func awsRestjson1_deserializeDocumentCloudwatchMetricAction(v **types.Cloudwatch if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MetricValue = &jtv + sv.MetricValue = ptr.String(jtv) } case "roleArn": @@ -36758,7 +36809,7 @@ func awsRestjson1_deserializeDocumentCloudwatchMetricAction(v **types.Cloudwatch if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -36798,7 +36849,7 @@ func awsRestjson1_deserializeDocumentCodeSigning(v **types.CodeSigning, value in if !ok { return fmt.Errorf("expected SigningJobId to be of type string, got %T instead", value) } - sv.AwsSignerJobId = &jtv + sv.AwsSignerJobId = ptr.String(jtv) } case "customCodeSigning": @@ -36848,7 +36899,7 @@ func awsRestjson1_deserializeDocumentCodeSigningCertificateChain(v **types.CodeS if !ok { return fmt.Errorf("expected CertificateName to be of type string, got %T instead", value) } - sv.CertificateName = &jtv + sv.CertificateName = ptr.String(jtv) } case "inlineDocument": @@ -36857,7 +36908,7 @@ func awsRestjson1_deserializeDocumentCodeSigningCertificateChain(v **types.CodeS if !ok { return fmt.Errorf("expected InlineDocument to be of type string, got %T instead", value) } - sv.InlineDocument = &jtv + sv.InlineDocument = ptr.String(jtv) } default: @@ -36941,7 +36992,7 @@ func awsRestjson1_deserializeDocumentConfiguration(v **types.Configuration, valu if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } default: @@ -36981,7 +37032,7 @@ func awsRestjson1_deserializeDocumentConflictingResourceUpdateException(v **type if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -37026,7 +37077,7 @@ func awsRestjson1_deserializeDocumentCustomCodeSigning(v **types.CustomCodeSigni if !ok { return fmt.Errorf("expected HashAlgorithm to be of type string, got %T instead", value) } - sv.HashAlgorithm = &jtv + sv.HashAlgorithm = ptr.String(jtv) } case "signature": @@ -37040,7 +37091,7 @@ func awsRestjson1_deserializeDocumentCustomCodeSigning(v **types.CustomCodeSigni if !ok { return fmt.Errorf("expected SignatureAlgorithm to be of type string, got %T instead", value) } - sv.SignatureAlgorithm = &jtv + sv.SignatureAlgorithm = ptr.String(jtv) } default: @@ -37080,7 +37131,7 @@ func awsRestjson1_deserializeDocumentDeleteConflictException(v **types.DeleteCon if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -37169,7 +37220,7 @@ func awsRestjson1_deserializeDocumentDestination(v **types.Destination, value in return nil } -func awsRestjson1_deserializeDocumentDetailsMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDetailsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37182,21 +37233,21 @@ func awsRestjson1_deserializeDocumentDetailsMap(v *map[string]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DetailsValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -37205,7 +37256,7 @@ func awsRestjson1_deserializeDocumentDetailsMap(v *map[string]*string, value int return nil } -func awsRestjson1_deserializeDocumentDimensionNames(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDimensionNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37218,21 +37269,21 @@ func awsRestjson1_deserializeDocumentDimensionNames(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DimensionName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -37241,7 +37292,7 @@ func awsRestjson1_deserializeDocumentDimensionNames(v *[]*string, value interfac return nil } -func awsRestjson1_deserializeDocumentDimensionStringValues(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDimensionStringValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37254,21 +37305,21 @@ func awsRestjson1_deserializeDocumentDimensionStringValues(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DimensionStringValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -37277,7 +37328,7 @@ func awsRestjson1_deserializeDocumentDimensionStringValues(v *[]*string, value i return nil } -func awsRestjson1_deserializeDocumentDomainConfigurations(v *[]*types.DomainConfigurationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainConfigurations(v *[]types.DomainConfigurationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37290,18 +37341,20 @@ func awsRestjson1_deserializeDocumentDomainConfigurations(v *[]*types.DomainConf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainConfigurationSummary + var cv []types.DomainConfigurationSummary if *v == nil { - cv = []*types.DomainConfigurationSummary{} + cv = []types.DomainConfigurationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DomainConfigurationSummary - if err := awsRestjson1_deserializeDocumentDomainConfigurationSummary(&col, value); err != nil { + var col types.DomainConfigurationSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainConfigurationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -37337,7 +37390,7 @@ func awsRestjson1_deserializeDocumentDomainConfigurationSummary(v **types.Domain if !ok { return fmt.Errorf("expected DomainConfigurationArn to be of type string, got %T instead", value) } - sv.DomainConfigurationArn = &jtv + sv.DomainConfigurationArn = ptr.String(jtv) } case "domainConfigurationName": @@ -37346,7 +37399,7 @@ func awsRestjson1_deserializeDocumentDomainConfigurationSummary(v **types.Domain if !ok { return fmt.Errorf("expected ReservedDomainConfigurationName to be of type string, got %T instead", value) } - sv.DomainConfigurationName = &jtv + sv.DomainConfigurationName = ptr.String(jtv) } case "serviceType": @@ -37395,7 +37448,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected HashKeyField to be of type string, got %T instead", value) } - sv.HashKeyField = &jtv + sv.HashKeyField = ptr.String(jtv) } case "hashKeyType": @@ -37413,7 +37466,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected HashKeyValue to be of type string, got %T instead", value) } - sv.HashKeyValue = &jtv + sv.HashKeyValue = ptr.String(jtv) } case "operation": @@ -37422,7 +37475,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected DynamoOperation to be of type string, got %T instead", value) } - sv.Operation = &jtv + sv.Operation = ptr.String(jtv) } case "payloadField": @@ -37431,7 +37484,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected PayloadField to be of type string, got %T instead", value) } - sv.PayloadField = &jtv + sv.PayloadField = ptr.String(jtv) } case "rangeKeyField": @@ -37440,7 +37493,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected RangeKeyField to be of type string, got %T instead", value) } - sv.RangeKeyField = &jtv + sv.RangeKeyField = ptr.String(jtv) } case "rangeKeyType": @@ -37458,7 +37511,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected RangeKeyValue to be of type string, got %T instead", value) } - sv.RangeKeyValue = &jtv + sv.RangeKeyValue = ptr.String(jtv) } case "roleArn": @@ -37467,7 +37520,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "tableName": @@ -37476,7 +37529,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -37521,7 +37574,7 @@ func awsRestjson1_deserializeDocumentDynamoDBv2Action(v **types.DynamoDBv2Action if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -37533,7 +37586,7 @@ func awsRestjson1_deserializeDocumentDynamoDBv2Action(v **types.DynamoDBv2Action return nil } -func awsRestjson1_deserializeDocumentEffectivePolicies(v *[]*types.EffectivePolicy, value interface{}) error { +func awsRestjson1_deserializeDocumentEffectivePolicies(v *[]types.EffectivePolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37546,18 +37599,20 @@ func awsRestjson1_deserializeDocumentEffectivePolicies(v *[]*types.EffectivePoli return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EffectivePolicy + var cv []types.EffectivePolicy if *v == nil { - cv = []*types.EffectivePolicy{} + cv = []types.EffectivePolicy{} } else { cv = *v } for _, value := range shape { - var col *types.EffectivePolicy - if err := awsRestjson1_deserializeDocumentEffectivePolicy(&col, value); err != nil { + var col types.EffectivePolicy + destAddr := &col + if err := awsRestjson1_deserializeDocumentEffectivePolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -37593,7 +37648,7 @@ func awsRestjson1_deserializeDocumentEffectivePolicy(v **types.EffectivePolicy, if !ok { return fmt.Errorf("expected PolicyArn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } case "policyDocument": @@ -37602,7 +37657,7 @@ func awsRestjson1_deserializeDocumentEffectivePolicy(v **types.EffectivePolicy, if !ok { return fmt.Errorf("expected PolicyDocument to be of type string, got %T instead", value) } - sv.PolicyDocument = &jtv + sv.PolicyDocument = ptr.String(jtv) } case "policyName": @@ -37611,7 +37666,7 @@ func awsRestjson1_deserializeDocumentEffectivePolicy(v **types.EffectivePolicy, if !ok { return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } default: @@ -37651,7 +37706,7 @@ func awsRestjson1_deserializeDocumentElasticsearchAction(v **types.Elasticsearch if !ok { return fmt.Errorf("expected ElasticsearchEndpoint to be of type string, got %T instead", value) } - sv.Endpoint = &jtv + sv.Endpoint = ptr.String(jtv) } case "id": @@ -37660,7 +37715,7 @@ func awsRestjson1_deserializeDocumentElasticsearchAction(v **types.Elasticsearch if !ok { return fmt.Errorf("expected ElasticsearchId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "index": @@ -37669,7 +37724,7 @@ func awsRestjson1_deserializeDocumentElasticsearchAction(v **types.Elasticsearch if !ok { return fmt.Errorf("expected ElasticsearchIndex to be of type string, got %T instead", value) } - sv.Index = &jtv + sv.Index = ptr.String(jtv) } case "roleArn": @@ -37678,7 +37733,7 @@ func awsRestjson1_deserializeDocumentElasticsearchAction(v **types.Elasticsearch if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "type": @@ -37687,7 +37742,7 @@ func awsRestjson1_deserializeDocumentElasticsearchAction(v **types.Elasticsearch if !ok { return fmt.Errorf("expected ElasticsearchType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -37736,7 +37791,7 @@ func awsRestjson1_deserializeDocumentEnableIoTLoggingParams(v **types.EnableIoTL if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArnForLogging = &jtv + sv.RoleArnForLogging = ptr.String(jtv) } default: @@ -37776,7 +37831,7 @@ func awsRestjson1_deserializeDocumentErrorInfo(v **types.ErrorInfo, value interf if !ok { return fmt.Errorf("expected Code to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -37785,7 +37840,7 @@ func awsRestjson1_deserializeDocumentErrorInfo(v **types.ErrorInfo, value interf if !ok { return fmt.Errorf("expected OTAUpdateErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -37797,7 +37852,7 @@ func awsRestjson1_deserializeDocumentErrorInfo(v **types.ErrorInfo, value interf return nil } -func awsRestjson1_deserializeDocumentEventConfigurations(v *map[string]*types.Configuration, value interface{}) error { +func awsRestjson1_deserializeDocumentEventConfigurations(v *map[string]types.Configuration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37810,18 +37865,21 @@ func awsRestjson1_deserializeDocumentEventConfigurations(v *map[string]*types.Co return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.Configuration + var mv map[string]types.Configuration if *v == nil { - mv = map[string]*types.Configuration{} + mv = map[string]types.Configuration{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.Configuration - if err := awsRestjson1_deserializeDocumentConfiguration(&parsedVal, value); err != nil { + var parsedVal types.Configuration + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentConfiguration(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -37910,7 +37968,7 @@ func awsRestjson1_deserializeDocumentExponentialRolloutRate(v **types.Exponentia if err != nil { return err } - sv.IncrementFactor = &f64 + sv.IncrementFactor = f64 } case "rateIncreaseCriteria": @@ -37955,7 +38013,7 @@ func awsRestjson1_deserializeDocumentField(v **types.Field, value interface{}) e if !ok { return fmt.Errorf("expected FieldName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "type": @@ -37976,7 +38034,7 @@ func awsRestjson1_deserializeDocumentField(v **types.Field, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentFields(v *[]*types.Field, value interface{}) error { +func awsRestjson1_deserializeDocumentFields(v *[]types.Field, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37989,18 +38047,20 @@ func awsRestjson1_deserializeDocumentFields(v *[]*types.Field, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Field + var cv []types.Field if *v == nil { - cv = []*types.Field{} + cv = []types.Field{} } else { cv = *v } for _, value := range shape { - var col *types.Field - if err := awsRestjson1_deserializeDocumentField(&col, value); err != nil { + var col types.Field + destAddr := &col + if err := awsRestjson1_deserializeDocumentField(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -38049,7 +38109,7 @@ func awsRestjson1_deserializeDocumentFileLocation(v **types.FileLocation, value return nil } -func awsRestjson1_deserializeDocumentFindingIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentFindingIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38062,21 +38122,21 @@ func awsRestjson1_deserializeDocumentFindingIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FindingId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -38113,7 +38173,7 @@ func awsRestjson1_deserializeDocumentFirehoseAction(v **types.FirehoseAction, va if !ok { return fmt.Errorf("expected DeliveryStreamName to be of type string, got %T instead", value) } - sv.DeliveryStreamName = &jtv + sv.DeliveryStreamName = ptr.String(jtv) } case "roleArn": @@ -38122,7 +38182,7 @@ func awsRestjson1_deserializeDocumentFirehoseAction(v **types.FirehoseAction, va if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "separator": @@ -38131,7 +38191,7 @@ func awsRestjson1_deserializeDocumentFirehoseAction(v **types.FirehoseAction, va if !ok { return fmt.Errorf("expected FirehoseSeparator to be of type string, got %T instead", value) } - sv.Separator = &jtv + sv.Separator = ptr.String(jtv) } default: @@ -38171,7 +38231,7 @@ func awsRestjson1_deserializeDocumentGroupNameAndArn(v **types.GroupNameAndArn, if !ok { return fmt.Errorf("expected ThingGroupArn to be of type string, got %T instead", value) } - sv.GroupArn = &jtv + sv.GroupArn = ptr.String(jtv) } case "groupName": @@ -38180,7 +38240,7 @@ func awsRestjson1_deserializeDocumentGroupNameAndArn(v **types.GroupNameAndArn, if !ok { return fmt.Errorf("expected ThingGroupName to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } default: @@ -38192,7 +38252,7 @@ func awsRestjson1_deserializeDocumentGroupNameAndArn(v **types.GroupNameAndArn, return nil } -func awsRestjson1_deserializeDocumentHeaderList(v *[]*types.HttpActionHeader, value interface{}) error { +func awsRestjson1_deserializeDocumentHeaderList(v *[]types.HttpActionHeader, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38205,18 +38265,20 @@ func awsRestjson1_deserializeDocumentHeaderList(v *[]*types.HttpActionHeader, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HttpActionHeader + var cv []types.HttpActionHeader if *v == nil { - cv = []*types.HttpActionHeader{} + cv = []types.HttpActionHeader{} } else { cv = *v } for _, value := range shape { - var col *types.HttpActionHeader - if err := awsRestjson1_deserializeDocumentHttpActionHeader(&col, value); err != nil { + var col types.HttpActionHeader + destAddr := &col + if err := awsRestjson1_deserializeDocumentHttpActionHeader(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -38257,7 +38319,7 @@ func awsRestjson1_deserializeDocumentHttpAction(v **types.HttpAction, value inte if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ConfirmationUrl = &jtv + sv.ConfirmationUrl = ptr.String(jtv) } case "headers": @@ -38271,7 +38333,7 @@ func awsRestjson1_deserializeDocumentHttpAction(v **types.HttpAction, value inte if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -38311,7 +38373,7 @@ func awsRestjson1_deserializeDocumentHttpActionHeader(v **types.HttpActionHeader if !ok { return fmt.Errorf("expected HeaderKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -38320,7 +38382,7 @@ func awsRestjson1_deserializeDocumentHttpActionHeader(v **types.HttpActionHeader if !ok { return fmt.Errorf("expected HeaderValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -38396,7 +38458,7 @@ func awsRestjson1_deserializeDocumentHttpUrlDestinationProperties(v **types.Http if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ConfirmationUrl = &jtv + sv.ConfirmationUrl = ptr.String(jtv) } default: @@ -38436,7 +38498,7 @@ func awsRestjson1_deserializeDocumentHttpUrlDestinationSummary(v **types.HttpUrl if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ConfirmationUrl = &jtv + sv.ConfirmationUrl = ptr.String(jtv) } default: @@ -38484,7 +38546,7 @@ func awsRestjson1_deserializeDocumentImplicitDeny(v **types.ImplicitDeny, value return nil } -func awsRestjson1_deserializeDocumentIndexNamesList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentIndexNamesList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38497,21 +38559,21 @@ func awsRestjson1_deserializeDocumentIndexNamesList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -38548,7 +38610,7 @@ func awsRestjson1_deserializeDocumentIndexNotReadyException(v **types.IndexNotRe if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -38588,7 +38650,7 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -38628,7 +38690,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -38668,7 +38730,7 @@ func awsRestjson1_deserializeDocumentInvalidAggregationException(v **types.Inval if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -38708,7 +38770,7 @@ func awsRestjson1_deserializeDocumentInvalidQueryException(v **types.InvalidQuer if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -38748,7 +38810,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -38788,7 +38850,7 @@ func awsRestjson1_deserializeDocumentInvalidResponseException(v **types.InvalidR if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -38828,7 +38890,7 @@ func awsRestjson1_deserializeDocumentInvalidStateTransitionException(v **types.I if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -38868,7 +38930,7 @@ func awsRestjson1_deserializeDocumentIotAnalyticsAction(v **types.IotAnalyticsAc if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.ChannelArn = &jtv + sv.ChannelArn = ptr.String(jtv) } case "channelName": @@ -38877,7 +38939,7 @@ func awsRestjson1_deserializeDocumentIotAnalyticsAction(v **types.IotAnalyticsAc if !ok { return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) } - sv.ChannelName = &jtv + sv.ChannelName = ptr.String(jtv) } case "roleArn": @@ -38886,7 +38948,7 @@ func awsRestjson1_deserializeDocumentIotAnalyticsAction(v **types.IotAnalyticsAc if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -38926,7 +38988,7 @@ func awsRestjson1_deserializeDocumentIotEventsAction(v **types.IotEventsAction, if !ok { return fmt.Errorf("expected InputName to be of type string, got %T instead", value) } - sv.InputName = &jtv + sv.InputName = ptr.String(jtv) } case "messageId": @@ -38935,7 +38997,7 @@ func awsRestjson1_deserializeDocumentIotEventsAction(v **types.IotEventsAction, if !ok { return fmt.Errorf("expected MessageId to be of type string, got %T instead", value) } - sv.MessageId = &jtv + sv.MessageId = ptr.String(jtv) } case "roleArn": @@ -38944,7 +39006,7 @@ func awsRestjson1_deserializeDocumentIotEventsAction(v **types.IotEventsAction, if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -38989,7 +39051,7 @@ func awsRestjson1_deserializeDocumentIotSiteWiseAction(v **types.IotSiteWiseActi if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -39034,7 +39096,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected Comment to be of type string, got %T instead", value) } - sv.Comment = &jtv + sv.Comment = ptr.String(jtv) } case "completedAt": @@ -39069,7 +39131,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected JobDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "forceCanceled": @@ -39078,7 +39140,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected Forced to be of type *bool, got %T instead", value) } - sv.ForceCanceled = &jtv + sv.ForceCanceled = ptr.Bool(jtv) } case "jobArn": @@ -39087,7 +39149,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected JobArn to be of type string, got %T instead", value) } - sv.JobArn = &jtv + sv.JobArn = ptr.String(jtv) } case "jobExecutionsRolloutConfig": @@ -39101,7 +39163,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "jobProcessDetails": @@ -39128,7 +39190,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected NamespaceId to be of type string, got %T instead", value) } - sv.NamespaceId = &jtv + sv.NamespaceId = ptr.String(jtv) } case "presignedUrlConfig": @@ -39142,7 +39204,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected ReasonCode to be of type string, got %T instead", value) } - sv.ReasonCode = &jtv + sv.ReasonCode = ptr.String(jtv) } case "status": @@ -39214,7 +39276,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if err != nil { return err } - sv.ApproximateSecondsBeforeTimedOut = &i64 + sv.ApproximateSecondsBeforeTimedOut = ptr.Int64(i64) } case "executionNumber": @@ -39227,7 +39289,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if err != nil { return err } - sv.ExecutionNumber = &i64 + sv.ExecutionNumber = ptr.Int64(i64) } case "forceCanceled": @@ -39236,7 +39298,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if !ok { return fmt.Errorf("expected Forced to be of type *bool, got %T instead", value) } - sv.ForceCanceled = &jtv + sv.ForceCanceled = ptr.Bool(jtv) } case "jobId": @@ -39245,7 +39307,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "lastUpdatedAt": @@ -39307,7 +39369,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if !ok { return fmt.Errorf("expected ThingArn to be of type string, got %T instead", value) } - sv.ThingArn = &jtv + sv.ThingArn = ptr.String(jtv) } case "versionNumber": @@ -39320,7 +39382,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if err != nil { return err } - sv.VersionNumber = &i64 + sv.VersionNumber = i64 } default: @@ -39449,7 +39511,7 @@ func awsRestjson1_deserializeDocumentJobExecutionSummary(v **types.JobExecutionS if err != nil { return err } - sv.ExecutionNumber = &i64 + sv.ExecutionNumber = ptr.Int64(i64) } case "lastUpdatedAt": @@ -39542,7 +39604,7 @@ func awsRestjson1_deserializeDocumentJobExecutionSummaryForJob(v **types.JobExec if !ok { return fmt.Errorf("expected ThingArn to be of type string, got %T instead", value) } - sv.ThingArn = &jtv + sv.ThingArn = ptr.String(jtv) } default: @@ -39554,7 +39616,7 @@ func awsRestjson1_deserializeDocumentJobExecutionSummaryForJob(v **types.JobExec return nil } -func awsRestjson1_deserializeDocumentJobExecutionSummaryForJobList(v *[]*types.JobExecutionSummaryForJob, value interface{}) error { +func awsRestjson1_deserializeDocumentJobExecutionSummaryForJobList(v *[]types.JobExecutionSummaryForJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39567,18 +39629,20 @@ func awsRestjson1_deserializeDocumentJobExecutionSummaryForJobList(v *[]*types.J return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobExecutionSummaryForJob + var cv []types.JobExecutionSummaryForJob if *v == nil { - cv = []*types.JobExecutionSummaryForJob{} + cv = []types.JobExecutionSummaryForJob{} } else { cv = *v } for _, value := range shape { - var col *types.JobExecutionSummaryForJob - if err := awsRestjson1_deserializeDocumentJobExecutionSummaryForJob(&col, value); err != nil { + var col types.JobExecutionSummaryForJob + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobExecutionSummaryForJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -39619,7 +39683,7 @@ func awsRestjson1_deserializeDocumentJobExecutionSummaryForThing(v **types.JobEx if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -39631,7 +39695,7 @@ func awsRestjson1_deserializeDocumentJobExecutionSummaryForThing(v **types.JobEx return nil } -func awsRestjson1_deserializeDocumentJobExecutionSummaryForThingList(v *[]*types.JobExecutionSummaryForThing, value interface{}) error { +func awsRestjson1_deserializeDocumentJobExecutionSummaryForThingList(v *[]types.JobExecutionSummaryForThing, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39644,18 +39708,20 @@ func awsRestjson1_deserializeDocumentJobExecutionSummaryForThingList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobExecutionSummaryForThing + var cv []types.JobExecutionSummaryForThing if *v == nil { - cv = []*types.JobExecutionSummaryForThing{} + cv = []types.JobExecutionSummaryForThing{} } else { cv = *v } for _, value := range shape { - var col *types.JobExecutionSummaryForThing - if err := awsRestjson1_deserializeDocumentJobExecutionSummaryForThing(&col, value); err != nil { + var col types.JobExecutionSummaryForThing + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobExecutionSummaryForThing(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -39857,7 +39923,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if !ok { return fmt.Errorf("expected JobArn to be of type string, got %T instead", value) } - sv.JobArn = &jtv + sv.JobArn = ptr.String(jtv) } case "jobId": @@ -39866,7 +39932,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "lastUpdatedAt": @@ -39906,7 +39972,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if !ok { return fmt.Errorf("expected ThingGroupId to be of type string, got %T instead", value) } - sv.ThingGroupId = &jtv + sv.ThingGroupId = ptr.String(jtv) } default: @@ -39918,7 +39984,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte return nil } -func awsRestjson1_deserializeDocumentJobSummaryList(v *[]*types.JobSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentJobSummaryList(v *[]types.JobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39931,18 +39997,20 @@ func awsRestjson1_deserializeDocumentJobSummaryList(v *[]*types.JobSummary, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobSummary + var cv []types.JobSummary if *v == nil { - cv = []*types.JobSummary{} + cv = []types.JobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.JobSummary - if err := awsRestjson1_deserializeDocumentJobSummary(&col, value); err != nil { + var col types.JobSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -39950,7 +40018,7 @@ func awsRestjson1_deserializeDocumentJobSummaryList(v *[]*types.JobSummary, valu return nil } -func awsRestjson1_deserializeDocumentJobTargets(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentJobTargets(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39963,21 +40031,21 @@ func awsRestjson1_deserializeDocumentJobTargets(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TargetArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -40014,7 +40082,7 @@ func awsRestjson1_deserializeDocumentKeyPair(v **types.KeyPair, value interface{ if !ok { return fmt.Errorf("expected PrivateKey to be of type string, got %T instead", value) } - sv.PrivateKey = &jtv + sv.PrivateKey = ptr.String(jtv) } case "PublicKey": @@ -40023,7 +40091,7 @@ func awsRestjson1_deserializeDocumentKeyPair(v **types.KeyPair, value interface{ if !ok { return fmt.Errorf("expected PublicKey to be of type string, got %T instead", value) } - sv.PublicKey = &jtv + sv.PublicKey = ptr.String(jtv) } default: @@ -40063,7 +40131,7 @@ func awsRestjson1_deserializeDocumentKinesisAction(v **types.KinesisAction, valu if !ok { return fmt.Errorf("expected PartitionKey to be of type string, got %T instead", value) } - sv.PartitionKey = &jtv + sv.PartitionKey = ptr.String(jtv) } case "roleArn": @@ -40072,7 +40140,7 @@ func awsRestjson1_deserializeDocumentKinesisAction(v **types.KinesisAction, valu if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "streamName": @@ -40081,7 +40149,7 @@ func awsRestjson1_deserializeDocumentKinesisAction(v **types.KinesisAction, valu if !ok { return fmt.Errorf("expected StreamName to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } default: @@ -40121,7 +40189,7 @@ func awsRestjson1_deserializeDocumentLambdaAction(v **types.LambdaAction, value if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } default: @@ -40161,7 +40229,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -40201,7 +40269,7 @@ func awsRestjson1_deserializeDocumentLogTarget(v **types.LogTarget, value interf if !ok { return fmt.Errorf("expected LogTargetName to be of type string, got %T instead", value) } - sv.TargetName = &jtv + sv.TargetName = ptr.String(jtv) } case "targetType": @@ -40267,7 +40335,7 @@ func awsRestjson1_deserializeDocumentLogTargetConfiguration(v **types.LogTargetC return nil } -func awsRestjson1_deserializeDocumentLogTargetConfigurations(v *[]*types.LogTargetConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentLogTargetConfigurations(v *[]types.LogTargetConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40280,18 +40348,20 @@ func awsRestjson1_deserializeDocumentLogTargetConfigurations(v *[]*types.LogTarg return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LogTargetConfiguration + var cv []types.LogTargetConfiguration if *v == nil { - cv = []*types.LogTargetConfiguration{} + cv = []types.LogTargetConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.LogTargetConfiguration - if err := awsRestjson1_deserializeDocumentLogTargetConfiguration(&col, value); err != nil { + var col types.LogTargetConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentLogTargetConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -40327,7 +40397,7 @@ func awsRestjson1_deserializeDocumentMalformedPolicyException(v **types.Malforme if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -40367,7 +40437,7 @@ func awsRestjson1_deserializeDocumentMetricDimension(v **types.MetricDimension, if !ok { return fmt.Errorf("expected DimensionName to be of type string, got %T instead", value) } - sv.DimensionName = &jtv + sv.DimensionName = ptr.String(jtv) } case "operator": @@ -40416,7 +40486,7 @@ func awsRestjson1_deserializeDocumentMetricToRetain(v **types.MetricToRetain, va if !ok { return fmt.Errorf("expected BehaviorMetric to be of type string, got %T instead", value) } - sv.Metric = &jtv + sv.Metric = ptr.String(jtv) } case "metricDimension": @@ -40470,7 +40540,7 @@ func awsRestjson1_deserializeDocumentMetricValue(v **types.MetricValue, value in if err != nil { return err } - sv.Count = &i64 + sv.Count = ptr.Int64(i64) } case "ports": @@ -40487,7 +40557,7 @@ func awsRestjson1_deserializeDocumentMetricValue(v **types.MetricValue, value in return nil } -func awsRestjson1_deserializeDocumentMissingContextValues(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentMissingContextValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40500,21 +40570,21 @@ func awsRestjson1_deserializeDocumentMissingContextValues(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected MissingContextValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -40556,7 +40626,7 @@ func awsRestjson1_deserializeDocumentMitigationAction(v **types.MitigationAction if !ok { return fmt.Errorf("expected MitigationActionId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -40565,7 +40635,7 @@ func awsRestjson1_deserializeDocumentMitigationAction(v **types.MitigationAction if !ok { return fmt.Errorf("expected MitigationActionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "roleArn": @@ -40574,7 +40644,7 @@ func awsRestjson1_deserializeDocumentMitigationAction(v **types.MitigationAction if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -40614,7 +40684,7 @@ func awsRestjson1_deserializeDocumentMitigationActionIdentifier(v **types.Mitiga if !ok { return fmt.Errorf("expected MitigationActionArn to be of type string, got %T instead", value) } - sv.ActionArn = &jtv + sv.ActionArn = ptr.String(jtv) } case "actionName": @@ -40623,7 +40693,7 @@ func awsRestjson1_deserializeDocumentMitigationActionIdentifier(v **types.Mitiga if !ok { return fmt.Errorf("expected MitigationActionName to be of type string, got %T instead", value) } - sv.ActionName = &jtv + sv.ActionName = ptr.String(jtv) } case "creationDate": @@ -40648,7 +40718,7 @@ func awsRestjson1_deserializeDocumentMitigationActionIdentifier(v **types.Mitiga return nil } -func awsRestjson1_deserializeDocumentMitigationActionIdentifierList(v *[]*types.MitigationActionIdentifier, value interface{}) error { +func awsRestjson1_deserializeDocumentMitigationActionIdentifierList(v *[]types.MitigationActionIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40661,18 +40731,20 @@ func awsRestjson1_deserializeDocumentMitigationActionIdentifierList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MitigationActionIdentifier + var cv []types.MitigationActionIdentifier if *v == nil { - cv = []*types.MitigationActionIdentifier{} + cv = []types.MitigationActionIdentifier{} } else { cv = *v } for _, value := range shape { - var col *types.MitigationActionIdentifier - if err := awsRestjson1_deserializeDocumentMitigationActionIdentifier(&col, value); err != nil { + var col types.MitigationActionIdentifier + destAddr := &col + if err := awsRestjson1_deserializeDocumentMitigationActionIdentifier(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -40680,7 +40752,7 @@ func awsRestjson1_deserializeDocumentMitigationActionIdentifierList(v *[]*types. return nil } -func awsRestjson1_deserializeDocumentMitigationActionList(v *[]*types.MitigationAction, value interface{}) error { +func awsRestjson1_deserializeDocumentMitigationActionList(v *[]types.MitigationAction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40693,18 +40765,20 @@ func awsRestjson1_deserializeDocumentMitigationActionList(v *[]*types.Mitigation return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MitigationAction + var cv []types.MitigationAction if *v == nil { - cv = []*types.MitigationAction{} + cv = []types.MitigationAction{} } else { cv = *v } for _, value := range shape { - var col *types.MitigationAction - if err := awsRestjson1_deserializeDocumentMitigationAction(&col, value); err != nil { + var col types.MitigationAction + destAddr := &col + if err := awsRestjson1_deserializeDocumentMitigationAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -40712,7 +40786,7 @@ func awsRestjson1_deserializeDocumentMitigationActionList(v *[]*types.Mitigation return nil } -func awsRestjson1_deserializeDocumentMitigationActionNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentMitigationActionNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40725,21 +40799,21 @@ func awsRestjson1_deserializeDocumentMitigationActionNameList(v *[]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected MitigationActionName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -40887,7 +40961,7 @@ func awsRestjson1_deserializeDocumentNotConfiguredException(v **types.NotConfigu if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -40942,7 +41016,7 @@ func awsRestjson1_deserializeDocumentOTAUpdateFile(v **types.OTAUpdateFile, valu if !ok { return fmt.Errorf("expected FileName to be of type string, got %T instead", value) } - sv.FileName = &jtv + sv.FileName = ptr.String(jtv) } case "fileVersion": @@ -40951,7 +41025,7 @@ func awsRestjson1_deserializeDocumentOTAUpdateFile(v **types.OTAUpdateFile, valu if !ok { return fmt.Errorf("expected OTAUpdateFileVersion to be of type string, got %T instead", value) } - sv.FileVersion = &jtv + sv.FileVersion = ptr.String(jtv) } default: @@ -40963,7 +41037,7 @@ func awsRestjson1_deserializeDocumentOTAUpdateFile(v **types.OTAUpdateFile, valu return nil } -func awsRestjson1_deserializeDocumentOTAUpdateFiles(v *[]*types.OTAUpdateFile, value interface{}) error { +func awsRestjson1_deserializeDocumentOTAUpdateFiles(v *[]types.OTAUpdateFile, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40976,18 +41050,20 @@ func awsRestjson1_deserializeDocumentOTAUpdateFiles(v *[]*types.OTAUpdateFile, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OTAUpdateFile + var cv []types.OTAUpdateFile if *v == nil { - cv = []*types.OTAUpdateFile{} + cv = []types.OTAUpdateFile{} } else { cv = *v } for _, value := range shape { - var col *types.OTAUpdateFile - if err := awsRestjson1_deserializeDocumentOTAUpdateFile(&col, value); err != nil { + var col types.OTAUpdateFile + destAddr := &col + if err := awsRestjson1_deserializeDocumentOTAUpdateFile(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -41028,7 +41104,7 @@ func awsRestjson1_deserializeDocumentOTAUpdateInfo(v **types.OTAUpdateInfo, valu if !ok { return fmt.Errorf("expected AwsIotJobArn to be of type string, got %T instead", value) } - sv.AwsIotJobArn = &jtv + sv.AwsIotJobArn = ptr.String(jtv) } case "awsIotJobId": @@ -41037,7 +41113,7 @@ func awsRestjson1_deserializeDocumentOTAUpdateInfo(v **types.OTAUpdateInfo, valu if !ok { return fmt.Errorf("expected AwsIotJobId to be of type string, got %T instead", value) } - sv.AwsIotJobId = &jtv + sv.AwsIotJobId = ptr.String(jtv) } case "awsJobExecutionsRolloutConfig": @@ -41069,7 +41145,7 @@ func awsRestjson1_deserializeDocumentOTAUpdateInfo(v **types.OTAUpdateInfo, valu if !ok { return fmt.Errorf("expected OTAUpdateDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "errorInfo": @@ -41096,7 +41172,7 @@ func awsRestjson1_deserializeDocumentOTAUpdateInfo(v **types.OTAUpdateInfo, valu if !ok { return fmt.Errorf("expected OTAUpdateArn to be of type string, got %T instead", value) } - sv.OtaUpdateArn = &jtv + sv.OtaUpdateArn = ptr.String(jtv) } case "otaUpdateFiles": @@ -41110,7 +41186,7 @@ func awsRestjson1_deserializeDocumentOTAUpdateInfo(v **types.OTAUpdateInfo, valu if !ok { return fmt.Errorf("expected OTAUpdateId to be of type string, got %T instead", value) } - sv.OtaUpdateId = &jtv + sv.OtaUpdateId = ptr.String(jtv) } case "otaUpdateStatus": @@ -41150,7 +41226,7 @@ func awsRestjson1_deserializeDocumentOTAUpdateInfo(v **types.OTAUpdateInfo, valu return nil } -func awsRestjson1_deserializeDocumentOTAUpdatesSummary(v *[]*types.OTAUpdateSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentOTAUpdatesSummary(v *[]types.OTAUpdateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41163,18 +41239,20 @@ func awsRestjson1_deserializeDocumentOTAUpdatesSummary(v *[]*types.OTAUpdateSumm return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OTAUpdateSummary + var cv []types.OTAUpdateSummary if *v == nil { - cv = []*types.OTAUpdateSummary{} + cv = []types.OTAUpdateSummary{} } else { cv = *v } for _, value := range shape { - var col *types.OTAUpdateSummary - if err := awsRestjson1_deserializeDocumentOTAUpdateSummary(&col, value); err != nil { + var col types.OTAUpdateSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentOTAUpdateSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -41223,7 +41301,7 @@ func awsRestjson1_deserializeDocumentOTAUpdateSummary(v **types.OTAUpdateSummary if !ok { return fmt.Errorf("expected OTAUpdateArn to be of type string, got %T instead", value) } - sv.OtaUpdateArn = &jtv + sv.OtaUpdateArn = ptr.String(jtv) } case "otaUpdateId": @@ -41232,7 +41310,7 @@ func awsRestjson1_deserializeDocumentOTAUpdateSummary(v **types.OTAUpdateSummary if !ok { return fmt.Errorf("expected OTAUpdateId to be of type string, got %T instead", value) } - sv.OtaUpdateId = &jtv + sv.OtaUpdateId = ptr.String(jtv) } default: @@ -41272,7 +41350,7 @@ func awsRestjson1_deserializeDocumentOutgoingCertificate(v **types.OutgoingCerti if !ok { return fmt.Errorf("expected CertificateArn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateId": @@ -41281,7 +41359,7 @@ func awsRestjson1_deserializeDocumentOutgoingCertificate(v **types.OutgoingCerti if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CertificateId = &jtv + sv.CertificateId = ptr.String(jtv) } case "creationDate": @@ -41316,7 +41394,7 @@ func awsRestjson1_deserializeDocumentOutgoingCertificate(v **types.OutgoingCerti if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.TransferMessage = &jtv + sv.TransferMessage = ptr.String(jtv) } case "transferredTo": @@ -41325,7 +41403,7 @@ func awsRestjson1_deserializeDocumentOutgoingCertificate(v **types.OutgoingCerti if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.TransferredTo = &jtv + sv.TransferredTo = ptr.String(jtv) } default: @@ -41337,7 +41415,7 @@ func awsRestjson1_deserializeDocumentOutgoingCertificate(v **types.OutgoingCerti return nil } -func awsRestjson1_deserializeDocumentOutgoingCertificates(v *[]*types.OutgoingCertificate, value interface{}) error { +func awsRestjson1_deserializeDocumentOutgoingCertificates(v *[]types.OutgoingCertificate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41350,18 +41428,20 @@ func awsRestjson1_deserializeDocumentOutgoingCertificates(v *[]*types.OutgoingCe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutgoingCertificate + var cv []types.OutgoingCertificate if *v == nil { - cv = []*types.OutgoingCertificate{} + cv = []types.OutgoingCertificate{} } else { cv = *v } for _, value := range shape { - var col *types.OutgoingCertificate - if err := awsRestjson1_deserializeDocumentOutgoingCertificate(&col, value); err != nil { + var col types.OutgoingCertificate + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutgoingCertificate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -41369,7 +41449,7 @@ func awsRestjson1_deserializeDocumentOutgoingCertificates(v *[]*types.OutgoingCe return nil } -func awsRestjson1_deserializeDocumentPercentiles(v *[]*types.PercentPair, value interface{}) error { +func awsRestjson1_deserializeDocumentPercentiles(v *[]types.PercentPair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41382,18 +41462,20 @@ func awsRestjson1_deserializeDocumentPercentiles(v *[]*types.PercentPair, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PercentPair + var cv []types.PercentPair if *v == nil { - cv = []*types.PercentPair{} + cv = []types.PercentPair{} } else { cv = *v } for _, value := range shape { - var col *types.PercentPair - if err := awsRestjson1_deserializeDocumentPercentPair(&col, value); err != nil { + var col types.PercentPair + destAddr := &col + if err := awsRestjson1_deserializeDocumentPercentPair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -41433,7 +41515,7 @@ func awsRestjson1_deserializeDocumentPercentPair(v **types.PercentPair, value in if err != nil { return err } - sv.Percent = &f64 + sv.Percent = f64 } case "value": @@ -41446,7 +41528,7 @@ func awsRestjson1_deserializeDocumentPercentPair(v **types.PercentPair, value in if err != nil { return err } - sv.Value = &f64 + sv.Value = f64 } default: @@ -41458,7 +41540,7 @@ func awsRestjson1_deserializeDocumentPercentPair(v **types.PercentPair, value in return nil } -func awsRestjson1_deserializeDocumentPolicies(v *[]*types.Policy, value interface{}) error { +func awsRestjson1_deserializeDocumentPolicies(v *[]types.Policy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41471,18 +41553,20 @@ func awsRestjson1_deserializeDocumentPolicies(v *[]*types.Policy, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Policy + var cv []types.Policy if *v == nil { - cv = []*types.Policy{} + cv = []types.Policy{} } else { cv = *v } for _, value := range shape { - var col *types.Policy - if err := awsRestjson1_deserializeDocumentPolicy(&col, value); err != nil { + var col types.Policy + destAddr := &col + if err := awsRestjson1_deserializeDocumentPolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -41518,7 +41602,7 @@ func awsRestjson1_deserializeDocumentPolicy(v **types.Policy, value interface{}) if !ok { return fmt.Errorf("expected PolicyArn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } case "policyName": @@ -41527,7 +41611,7 @@ func awsRestjson1_deserializeDocumentPolicy(v **types.Policy, value interface{}) if !ok { return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } default: @@ -41539,7 +41623,7 @@ func awsRestjson1_deserializeDocumentPolicy(v **types.Policy, value interface{}) return nil } -func awsRestjson1_deserializeDocumentPolicyDocuments(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentPolicyDocuments(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41552,21 +41636,21 @@ func awsRestjson1_deserializeDocumentPolicyDocuments(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PolicyDocument to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -41575,7 +41659,7 @@ func awsRestjson1_deserializeDocumentPolicyDocuments(v *[]*string, value interfa return nil } -func awsRestjson1_deserializeDocumentPolicyTargets(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentPolicyTargets(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41588,21 +41672,21 @@ func awsRestjson1_deserializeDocumentPolicyTargets(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PolicyTarget to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -41652,7 +41736,7 @@ func awsRestjson1_deserializeDocumentPolicyVersion(v **types.PolicyVersion, valu if !ok { return fmt.Errorf("expected IsDefaultVersion to be of type *bool, got %T instead", value) } - sv.IsDefaultVersion = &jtv + sv.IsDefaultVersion = jtv } case "versionId": @@ -41661,7 +41745,7 @@ func awsRestjson1_deserializeDocumentPolicyVersion(v **types.PolicyVersion, valu if !ok { return fmt.Errorf("expected PolicyVersionId to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -41701,7 +41785,7 @@ func awsRestjson1_deserializeDocumentPolicyVersionIdentifier(v **types.PolicyVer if !ok { return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } case "policyVersionId": @@ -41710,7 +41794,7 @@ func awsRestjson1_deserializeDocumentPolicyVersionIdentifier(v **types.PolicyVer if !ok { return fmt.Errorf("expected PolicyVersionId to be of type string, got %T instead", value) } - sv.PolicyVersionId = &jtv + sv.PolicyVersionId = ptr.String(jtv) } default: @@ -41722,7 +41806,7 @@ func awsRestjson1_deserializeDocumentPolicyVersionIdentifier(v **types.PolicyVer return nil } -func awsRestjson1_deserializeDocumentPolicyVersions(v *[]*types.PolicyVersion, value interface{}) error { +func awsRestjson1_deserializeDocumentPolicyVersions(v *[]types.PolicyVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41735,18 +41819,20 @@ func awsRestjson1_deserializeDocumentPolicyVersions(v *[]*types.PolicyVersion, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PolicyVersion + var cv []types.PolicyVersion if *v == nil { - cv = []*types.PolicyVersion{} + cv = []types.PolicyVersion{} } else { cv = *v } for _, value := range shape { - var col *types.PolicyVersion - if err := awsRestjson1_deserializeDocumentPolicyVersion(&col, value); err != nil { + var col types.PolicyVersion + destAddr := &col + if err := awsRestjson1_deserializeDocumentPolicyVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -41754,7 +41840,7 @@ func awsRestjson1_deserializeDocumentPolicyVersions(v *[]*types.PolicyVersion, v return nil } -func awsRestjson1_deserializeDocumentPorts(v *[]*int32, value interface{}) error { +func awsRestjson1_deserializeDocumentPorts(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41767,15 +41853,15 @@ func awsRestjson1_deserializeDocumentPorts(v *[]*int32, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int32 + var cv []int32 if *v == nil { - cv = []*int32{} + cv = []int32{} } else { cv = *v } for _, value := range shape { - var col *int32 + var col int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -41785,7 +41871,7 @@ func awsRestjson1_deserializeDocumentPorts(v *[]*int32, value interface{}) error if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } cv = append(cv, col) @@ -41826,7 +41912,7 @@ func awsRestjson1_deserializeDocumentPresignedUrlConfig(v **types.PresignedUrlCo if err != nil { return err } - sv.ExpiresInSec = &i64 + sv.ExpiresInSec = ptr.Int64(i64) } case "roleArn": @@ -41835,7 +41921,7 @@ func awsRestjson1_deserializeDocumentPresignedUrlConfig(v **types.PresignedUrlCo if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -41847,7 +41933,7 @@ func awsRestjson1_deserializeDocumentPresignedUrlConfig(v **types.PresignedUrlCo return nil } -func awsRestjson1_deserializeDocumentPrincipals(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentPrincipals(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41860,21 +41946,21 @@ func awsRestjson1_deserializeDocumentPrincipals(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PrincipalArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -41883,7 +41969,7 @@ func awsRestjson1_deserializeDocumentPrincipals(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentProcessingTargetNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentProcessingTargetNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41896,21 +41982,21 @@ func awsRestjson1_deserializeDocumentProcessingTargetNameList(v *[]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ProcessingTargetName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -41983,7 +42069,7 @@ func awsRestjson1_deserializeDocumentProvisioningHook(v **types.ProvisioningHook if !ok { return fmt.Errorf("expected PayloadVersion to be of type string, got %T instead", value) } - sv.PayloadVersion = &jtv + sv.PayloadVersion = ptr.String(jtv) } case "targetArn": @@ -41992,7 +42078,7 @@ func awsRestjson1_deserializeDocumentProvisioningHook(v **types.ProvisioningHook if !ok { return fmt.Errorf("expected TargetArn to be of type string, got %T instead", value) } - sv.TargetArn = &jtv + sv.TargetArn = ptr.String(jtv) } default: @@ -42004,7 +42090,7 @@ func awsRestjson1_deserializeDocumentProvisioningHook(v **types.ProvisioningHook return nil } -func awsRestjson1_deserializeDocumentProvisioningTemplateListing(v *[]*types.ProvisioningTemplateSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentProvisioningTemplateListing(v *[]types.ProvisioningTemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42017,18 +42103,20 @@ func awsRestjson1_deserializeDocumentProvisioningTemplateListing(v *[]*types.Pro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProvisioningTemplateSummary + var cv []types.ProvisioningTemplateSummary if *v == nil { - cv = []*types.ProvisioningTemplateSummary{} + cv = []types.ProvisioningTemplateSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProvisioningTemplateSummary - if err := awsRestjson1_deserializeDocumentProvisioningTemplateSummary(&col, value); err != nil { + var col types.ProvisioningTemplateSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentProvisioningTemplateSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -42077,7 +42165,7 @@ func awsRestjson1_deserializeDocumentProvisioningTemplateSummary(v **types.Provi if !ok { return fmt.Errorf("expected TemplateDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "enabled": @@ -42086,7 +42174,7 @@ func awsRestjson1_deserializeDocumentProvisioningTemplateSummary(v **types.Provi if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "lastModifiedDate": @@ -42108,7 +42196,7 @@ func awsRestjson1_deserializeDocumentProvisioningTemplateSummary(v **types.Provi if !ok { return fmt.Errorf("expected TemplateArn to be of type string, got %T instead", value) } - sv.TemplateArn = &jtv + sv.TemplateArn = ptr.String(jtv) } case "templateName": @@ -42117,7 +42205,7 @@ func awsRestjson1_deserializeDocumentProvisioningTemplateSummary(v **types.Provi if !ok { return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } default: @@ -42129,7 +42217,7 @@ func awsRestjson1_deserializeDocumentProvisioningTemplateSummary(v **types.Provi return nil } -func awsRestjson1_deserializeDocumentProvisioningTemplateVersionListing(v *[]*types.ProvisioningTemplateVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentProvisioningTemplateVersionListing(v *[]types.ProvisioningTemplateVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42142,18 +42230,20 @@ func awsRestjson1_deserializeDocumentProvisioningTemplateVersionListing(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProvisioningTemplateVersionSummary + var cv []types.ProvisioningTemplateVersionSummary if *v == nil { - cv = []*types.ProvisioningTemplateVersionSummary{} + cv = []types.ProvisioningTemplateVersionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProvisioningTemplateVersionSummary - if err := awsRestjson1_deserializeDocumentProvisioningTemplateVersionSummary(&col, value); err != nil { + var col types.ProvisioningTemplateVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentProvisioningTemplateVersionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -42202,7 +42292,7 @@ func awsRestjson1_deserializeDocumentProvisioningTemplateVersionSummary(v **type if !ok { return fmt.Errorf("expected IsDefaultVersion to be of type *bool, got %T instead", value) } - sv.IsDefaultVersion = &jtv + sv.IsDefaultVersion = jtv } case "versionId": @@ -42227,7 +42317,7 @@ func awsRestjson1_deserializeDocumentProvisioningTemplateVersionSummary(v **type return nil } -func awsRestjson1_deserializeDocumentPublicKeyMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentPublicKeyMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42240,21 +42330,21 @@ func awsRestjson1_deserializeDocumentPublicKeyMap(v *map[string]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected KeyValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -42291,7 +42381,7 @@ func awsRestjson1_deserializeDocumentPublishFindingToSnsParams(v **types.Publish if !ok { return fmt.Errorf("expected SnsTopicArn to be of type string, got %T instead", value) } - sv.TopicArn = &jtv + sv.TopicArn = ptr.String(jtv) } default: @@ -42331,7 +42421,7 @@ func awsRestjson1_deserializeDocumentPutAssetPropertyValueEntry(v **types.PutAss if !ok { return fmt.Errorf("expected AssetId to be of type string, got %T instead", value) } - sv.AssetId = &jtv + sv.AssetId = ptr.String(jtv) } case "entryId": @@ -42340,7 +42430,7 @@ func awsRestjson1_deserializeDocumentPutAssetPropertyValueEntry(v **types.PutAss if !ok { return fmt.Errorf("expected AssetPropertyEntryId to be of type string, got %T instead", value) } - sv.EntryId = &jtv + sv.EntryId = ptr.String(jtv) } case "propertyAlias": @@ -42349,7 +42439,7 @@ func awsRestjson1_deserializeDocumentPutAssetPropertyValueEntry(v **types.PutAss if !ok { return fmt.Errorf("expected AssetPropertyAlias to be of type string, got %T instead", value) } - sv.PropertyAlias = &jtv + sv.PropertyAlias = ptr.String(jtv) } case "propertyId": @@ -42358,7 +42448,7 @@ func awsRestjson1_deserializeDocumentPutAssetPropertyValueEntry(v **types.PutAss if !ok { return fmt.Errorf("expected AssetPropertyId to be of type string, got %T instead", value) } - sv.PropertyId = &jtv + sv.PropertyId = ptr.String(jtv) } case "propertyValues": @@ -42375,7 +42465,7 @@ func awsRestjson1_deserializeDocumentPutAssetPropertyValueEntry(v **types.PutAss return nil } -func awsRestjson1_deserializeDocumentPutAssetPropertyValueEntryList(v *[]*types.PutAssetPropertyValueEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentPutAssetPropertyValueEntryList(v *[]types.PutAssetPropertyValueEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42388,18 +42478,20 @@ func awsRestjson1_deserializeDocumentPutAssetPropertyValueEntryList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PutAssetPropertyValueEntry + var cv []types.PutAssetPropertyValueEntry if *v == nil { - cv = []*types.PutAssetPropertyValueEntry{} + cv = []types.PutAssetPropertyValueEntry{} } else { cv = *v } for _, value := range shape { - var col *types.PutAssetPropertyValueEntry - if err := awsRestjson1_deserializeDocumentPutAssetPropertyValueEntry(&col, value); err != nil { + var col types.PutAssetPropertyValueEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentPutAssetPropertyValueEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -42435,7 +42527,7 @@ func awsRestjson1_deserializeDocumentPutItemInput(v **types.PutItemInput, value if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -42504,7 +42596,7 @@ func awsRestjson1_deserializeDocumentRateIncreaseCriteria(v **types.RateIncrease return nil } -func awsRestjson1_deserializeDocumentReasonForNonComplianceCodes(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentReasonForNonComplianceCodes(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42517,21 +42609,21 @@ func awsRestjson1_deserializeDocumentReasonForNonComplianceCodes(v *[]*string, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ReasonForNonComplianceCode to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -42568,7 +42660,7 @@ func awsRestjson1_deserializeDocumentRegistrationCodeValidationException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -42608,7 +42700,7 @@ func awsRestjson1_deserializeDocumentRegistrationConfig(v **types.RegistrationCo if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "templateBody": @@ -42617,7 +42709,7 @@ func awsRestjson1_deserializeDocumentRegistrationConfig(v **types.RegistrationCo if !ok { return fmt.Errorf("expected TemplateBody to be of type string, got %T instead", value) } - sv.TemplateBody = &jtv + sv.TemplateBody = ptr.String(jtv) } default: @@ -42679,7 +42771,7 @@ func awsRestjson1_deserializeDocumentRelatedResource(v **types.RelatedResource, return nil } -func awsRestjson1_deserializeDocumentRelatedResources(v *[]*types.RelatedResource, value interface{}) error { +func awsRestjson1_deserializeDocumentRelatedResources(v *[]types.RelatedResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42692,18 +42784,20 @@ func awsRestjson1_deserializeDocumentRelatedResources(v *[]*types.RelatedResourc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RelatedResource + var cv []types.RelatedResource if *v == nil { - cv = []*types.RelatedResource{} + cv = []types.RelatedResource{} } else { cv = *v } for _, value := range shape { - var col *types.RelatedResource - if err := awsRestjson1_deserializeDocumentRelatedResource(&col, value); err != nil { + var col types.RelatedResource + destAddr := &col + if err := awsRestjson1_deserializeDocumentRelatedResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -42792,7 +42886,7 @@ func awsRestjson1_deserializeDocumentRepublishAction(v **types.RepublishAction, if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "topic": @@ -42801,7 +42895,7 @@ func awsRestjson1_deserializeDocumentRepublishAction(v **types.RepublishAction, if !ok { return fmt.Errorf("expected TopicPattern to be of type string, got %T instead", value) } - sv.Topic = &jtv + sv.Topic = ptr.String(jtv) } default: @@ -42841,7 +42935,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceArn": @@ -42850,7 +42944,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "resourceId": @@ -42859,7 +42953,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected resourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } default: @@ -42871,7 +42965,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re return nil } -func awsRestjson1_deserializeDocumentResourceArns(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceArns(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42884,21 +42978,21 @@ func awsRestjson1_deserializeDocumentResourceArns(v *map[string]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -42935,7 +43029,7 @@ func awsRestjson1_deserializeDocumentResourceIdentifier(v **types.ResourceIdenti if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.Account = &jtv + sv.Account = ptr.String(jtv) } case "caCertificateId": @@ -42944,7 +43038,7 @@ func awsRestjson1_deserializeDocumentResourceIdentifier(v **types.ResourceIdenti if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.CaCertificateId = &jtv + sv.CaCertificateId = ptr.String(jtv) } case "clientId": @@ -42953,7 +43047,7 @@ func awsRestjson1_deserializeDocumentResourceIdentifier(v **types.ResourceIdenti if !ok { return fmt.Errorf("expected ClientId to be of type string, got %T instead", value) } - sv.ClientId = &jtv + sv.ClientId = ptr.String(jtv) } case "cognitoIdentityPoolId": @@ -42962,7 +43056,7 @@ func awsRestjson1_deserializeDocumentResourceIdentifier(v **types.ResourceIdenti if !ok { return fmt.Errorf("expected CognitoIdentityPoolId to be of type string, got %T instead", value) } - sv.CognitoIdentityPoolId = &jtv + sv.CognitoIdentityPoolId = ptr.String(jtv) } case "deviceCertificateId": @@ -42971,7 +43065,7 @@ func awsRestjson1_deserializeDocumentResourceIdentifier(v **types.ResourceIdenti if !ok { return fmt.Errorf("expected CertificateId to be of type string, got %T instead", value) } - sv.DeviceCertificateId = &jtv + sv.DeviceCertificateId = ptr.String(jtv) } case "iamRoleArn": @@ -42980,7 +43074,7 @@ func awsRestjson1_deserializeDocumentResourceIdentifier(v **types.ResourceIdenti if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "policyVersionIdentifier": @@ -42994,7 +43088,7 @@ func awsRestjson1_deserializeDocumentResourceIdentifier(v **types.ResourceIdenti if !ok { return fmt.Errorf("expected RoleAliasArn to be of type string, got %T instead", value) } - sv.RoleAliasArn = &jtv + sv.RoleAliasArn = ptr.String(jtv) } default: @@ -43034,7 +43128,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -43074,7 +43168,7 @@ func awsRestjson1_deserializeDocumentResourceRegistrationFailureException(v **ty if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -43086,7 +43180,7 @@ func awsRestjson1_deserializeDocumentResourceRegistrationFailureException(v **ty return nil } -func awsRestjson1_deserializeDocumentResources(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentResources(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43099,21 +43193,21 @@ func awsRestjson1_deserializeDocumentResources(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Resource to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -43189,7 +43283,7 @@ func awsRestjson1_deserializeDocumentRoleAliasDescription(v **types.RoleAliasDes if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "roleAlias": @@ -43198,7 +43292,7 @@ func awsRestjson1_deserializeDocumentRoleAliasDescription(v **types.RoleAliasDes if !ok { return fmt.Errorf("expected RoleAlias to be of type string, got %T instead", value) } - sv.RoleAlias = &jtv + sv.RoleAlias = ptr.String(jtv) } case "roleAliasArn": @@ -43207,7 +43301,7 @@ func awsRestjson1_deserializeDocumentRoleAliasDescription(v **types.RoleAliasDes if !ok { return fmt.Errorf("expected RoleAliasArn to be of type string, got %T instead", value) } - sv.RoleAliasArn = &jtv + sv.RoleAliasArn = ptr.String(jtv) } case "roleArn": @@ -43216,7 +43310,7 @@ func awsRestjson1_deserializeDocumentRoleAliasDescription(v **types.RoleAliasDes if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -43228,7 +43322,7 @@ func awsRestjson1_deserializeDocumentRoleAliasDescription(v **types.RoleAliasDes return nil } -func awsRestjson1_deserializeDocumentRoleAliases(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentRoleAliases(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43241,21 +43335,21 @@ func awsRestjson1_deserializeDocumentRoleAliases(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RoleAlias to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -43292,7 +43386,7 @@ func awsRestjson1_deserializeDocumentS3Action(v **types.S3Action, value interfac if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "cannedAcl": @@ -43310,7 +43404,7 @@ func awsRestjson1_deserializeDocumentS3Action(v **types.S3Action, value interfac if !ok { return fmt.Errorf("expected Key to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "roleArn": @@ -43319,7 +43413,7 @@ func awsRestjson1_deserializeDocumentS3Action(v **types.S3Action, value interfac if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -43359,7 +43453,7 @@ func awsRestjson1_deserializeDocumentS3Destination(v **types.S3Destination, valu if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "prefix": @@ -43368,7 +43462,7 @@ func awsRestjson1_deserializeDocumentS3Destination(v **types.S3Destination, valu if !ok { return fmt.Errorf("expected Prefix to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } default: @@ -43380,7 +43474,7 @@ func awsRestjson1_deserializeDocumentS3Destination(v **types.S3Destination, valu return nil } -func awsRestjson1_deserializeDocumentS3FileUrlList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentS3FileUrlList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43393,21 +43487,21 @@ func awsRestjson1_deserializeDocumentS3FileUrlList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected S3FileUrl to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -43444,7 +43538,7 @@ func awsRestjson1_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "key": @@ -43453,7 +43547,7 @@ func awsRestjson1_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "version": @@ -43462,7 +43556,7 @@ func awsRestjson1_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected S3Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -43502,7 +43596,7 @@ func awsRestjson1_deserializeDocumentSalesforceAction(v **types.SalesforceAction if !ok { return fmt.Errorf("expected SalesforceToken to be of type string, got %T instead", value) } - sv.Token = &jtv + sv.Token = ptr.String(jtv) } case "url": @@ -43511,7 +43605,7 @@ func awsRestjson1_deserializeDocumentSalesforceAction(v **types.SalesforceAction if !ok { return fmt.Errorf("expected SalesforceEndpoint to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -43551,7 +43645,7 @@ func awsRestjson1_deserializeDocumentScheduledAuditMetadata(v **types.ScheduledA if !ok { return fmt.Errorf("expected DayOfMonth to be of type string, got %T instead", value) } - sv.DayOfMonth = &jtv + sv.DayOfMonth = ptr.String(jtv) } case "dayOfWeek": @@ -43578,7 +43672,7 @@ func awsRestjson1_deserializeDocumentScheduledAuditMetadata(v **types.ScheduledA if !ok { return fmt.Errorf("expected ScheduledAuditArn to be of type string, got %T instead", value) } - sv.ScheduledAuditArn = &jtv + sv.ScheduledAuditArn = ptr.String(jtv) } case "scheduledAuditName": @@ -43587,7 +43681,7 @@ func awsRestjson1_deserializeDocumentScheduledAuditMetadata(v **types.ScheduledA if !ok { return fmt.Errorf("expected ScheduledAuditName to be of type string, got %T instead", value) } - sv.ScheduledAuditName = &jtv + sv.ScheduledAuditName = ptr.String(jtv) } default: @@ -43599,7 +43693,7 @@ func awsRestjson1_deserializeDocumentScheduledAuditMetadata(v **types.ScheduledA return nil } -func awsRestjson1_deserializeDocumentScheduledAuditMetadataList(v *[]*types.ScheduledAuditMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentScheduledAuditMetadataList(v *[]types.ScheduledAuditMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43612,18 +43706,20 @@ func awsRestjson1_deserializeDocumentScheduledAuditMetadataList(v *[]*types.Sche return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ScheduledAuditMetadata + var cv []types.ScheduledAuditMetadata if *v == nil { - cv = []*types.ScheduledAuditMetadata{} + cv = []types.ScheduledAuditMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.ScheduledAuditMetadata - if err := awsRestjson1_deserializeDocumentScheduledAuditMetadata(&col, value); err != nil { + var col types.ScheduledAuditMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentScheduledAuditMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -43631,7 +43727,7 @@ func awsRestjson1_deserializeDocumentScheduledAuditMetadataList(v *[]*types.Sche return nil } -func awsRestjson1_deserializeDocumentSearchableAttributes(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSearchableAttributes(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43644,21 +43740,21 @@ func awsRestjson1_deserializeDocumentSearchableAttributes(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -43695,7 +43791,7 @@ func awsRestjson1_deserializeDocumentSecurityProfileIdentifier(v **types.Securit if !ok { return fmt.Errorf("expected SecurityProfileArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "name": @@ -43704,7 +43800,7 @@ func awsRestjson1_deserializeDocumentSecurityProfileIdentifier(v **types.Securit if !ok { return fmt.Errorf("expected SecurityProfileName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -43716,7 +43812,7 @@ func awsRestjson1_deserializeDocumentSecurityProfileIdentifier(v **types.Securit return nil } -func awsRestjson1_deserializeDocumentSecurityProfileIdentifiers(v *[]*types.SecurityProfileIdentifier, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityProfileIdentifiers(v *[]types.SecurityProfileIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43729,18 +43825,20 @@ func awsRestjson1_deserializeDocumentSecurityProfileIdentifiers(v *[]*types.Secu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SecurityProfileIdentifier + var cv []types.SecurityProfileIdentifier if *v == nil { - cv = []*types.SecurityProfileIdentifier{} + cv = []types.SecurityProfileIdentifier{} } else { cv = *v } for _, value := range shape { - var col *types.SecurityProfileIdentifier - if err := awsRestjson1_deserializeDocumentSecurityProfileIdentifier(&col, value); err != nil { + var col types.SecurityProfileIdentifier + destAddr := &col + if err := awsRestjson1_deserializeDocumentSecurityProfileIdentifier(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -43776,7 +43874,7 @@ func awsRestjson1_deserializeDocumentSecurityProfileTarget(v **types.SecurityPro if !ok { return fmt.Errorf("expected SecurityProfileTargetArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -43829,7 +43927,7 @@ func awsRestjson1_deserializeDocumentSecurityProfileTargetMapping(v **types.Secu return nil } -func awsRestjson1_deserializeDocumentSecurityProfileTargetMappings(v *[]*types.SecurityProfileTargetMapping, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityProfileTargetMappings(v *[]types.SecurityProfileTargetMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43842,18 +43940,20 @@ func awsRestjson1_deserializeDocumentSecurityProfileTargetMappings(v *[]*types.S return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SecurityProfileTargetMapping + var cv []types.SecurityProfileTargetMapping if *v == nil { - cv = []*types.SecurityProfileTargetMapping{} + cv = []types.SecurityProfileTargetMapping{} } else { cv = *v } for _, value := range shape { - var col *types.SecurityProfileTargetMapping - if err := awsRestjson1_deserializeDocumentSecurityProfileTargetMapping(&col, value); err != nil { + var col types.SecurityProfileTargetMapping + destAddr := &col + if err := awsRestjson1_deserializeDocumentSecurityProfileTargetMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -43861,7 +43961,7 @@ func awsRestjson1_deserializeDocumentSecurityProfileTargetMappings(v *[]*types.S return nil } -func awsRestjson1_deserializeDocumentSecurityProfileTargets(v *[]*types.SecurityProfileTarget, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityProfileTargets(v *[]types.SecurityProfileTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43874,18 +43974,20 @@ func awsRestjson1_deserializeDocumentSecurityProfileTargets(v *[]*types.Security return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SecurityProfileTarget + var cv []types.SecurityProfileTarget if *v == nil { - cv = []*types.SecurityProfileTarget{} + cv = []types.SecurityProfileTarget{} } else { cv = *v } for _, value := range shape { - var col *types.SecurityProfileTarget - if err := awsRestjson1_deserializeDocumentSecurityProfileTarget(&col, value); err != nil { + var col types.SecurityProfileTarget + destAddr := &col + if err := awsRestjson1_deserializeDocumentSecurityProfileTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -43893,7 +43995,7 @@ func awsRestjson1_deserializeDocumentSecurityProfileTargets(v *[]*types.Security return nil } -func awsRestjson1_deserializeDocumentServerCertificates(v *[]*types.ServerCertificateSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentServerCertificates(v *[]types.ServerCertificateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43906,18 +44008,20 @@ func awsRestjson1_deserializeDocumentServerCertificates(v *[]*types.ServerCertif return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServerCertificateSummary + var cv []types.ServerCertificateSummary if *v == nil { - cv = []*types.ServerCertificateSummary{} + cv = []types.ServerCertificateSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ServerCertificateSummary - if err := awsRestjson1_deserializeDocumentServerCertificateSummary(&col, value); err != nil { + var col types.ServerCertificateSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentServerCertificateSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -43953,7 +44057,7 @@ func awsRestjson1_deserializeDocumentServerCertificateSummary(v **types.ServerCe if !ok { return fmt.Errorf("expected AcmCertificateArn to be of type string, got %T instead", value) } - sv.ServerCertificateArn = &jtv + sv.ServerCertificateArn = ptr.String(jtv) } case "serverCertificateStatus": @@ -43971,7 +44075,7 @@ func awsRestjson1_deserializeDocumentServerCertificateSummary(v **types.ServerCe if !ok { return fmt.Errorf("expected ServerCertificateStatusDetail to be of type string, got %T instead", value) } - sv.ServerCertificateStatusDetail = &jtv + sv.ServerCertificateStatusDetail = ptr.String(jtv) } default: @@ -44011,7 +44115,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -44051,7 +44155,7 @@ func awsRestjson1_deserializeDocumentSigningProfileParameter(v **types.SigningPr if !ok { return fmt.Errorf("expected CertificateArn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificatePathOnDevice": @@ -44060,7 +44164,7 @@ func awsRestjson1_deserializeDocumentSigningProfileParameter(v **types.SigningPr if !ok { return fmt.Errorf("expected CertificatePathOnDevice to be of type string, got %T instead", value) } - sv.CertificatePathOnDevice = &jtv + sv.CertificatePathOnDevice = ptr.String(jtv) } case "platform": @@ -44069,7 +44173,7 @@ func awsRestjson1_deserializeDocumentSigningProfileParameter(v **types.SigningPr if !ok { return fmt.Errorf("expected Platform to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } default: @@ -44109,7 +44213,7 @@ func awsRestjson1_deserializeDocumentSigV4Authorization(v **types.SigV4Authoriza if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "serviceName": @@ -44118,7 +44222,7 @@ func awsRestjson1_deserializeDocumentSigV4Authorization(v **types.SigV4Authoriza if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } case "signingRegion": @@ -44127,7 +44231,7 @@ func awsRestjson1_deserializeDocumentSigV4Authorization(v **types.SigV4Authoriza if !ok { return fmt.Errorf("expected SigningRegion to be of type string, got %T instead", value) } - sv.SigningRegion = &jtv + sv.SigningRegion = ptr.String(jtv) } default: @@ -44176,7 +44280,7 @@ func awsRestjson1_deserializeDocumentSnsAction(v **types.SnsAction, value interf if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "targetArn": @@ -44185,7 +44289,7 @@ func awsRestjson1_deserializeDocumentSnsAction(v **types.SnsAction, value interf if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.TargetArn = &jtv + sv.TargetArn = ptr.String(jtv) } default: @@ -44225,7 +44329,7 @@ func awsRestjson1_deserializeDocumentSqlParseException(v **types.SqlParseExcepti if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -44265,7 +44369,7 @@ func awsRestjson1_deserializeDocumentSqsAction(v **types.SqsAction, value interf if !ok { return fmt.Errorf("expected QueueUrl to be of type string, got %T instead", value) } - sv.QueueUrl = &jtv + sv.QueueUrl = ptr.String(jtv) } case "roleArn": @@ -44274,7 +44378,7 @@ func awsRestjson1_deserializeDocumentSqsAction(v **types.SqsAction, value interf if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "useBase64": @@ -44283,7 +44387,7 @@ func awsRestjson1_deserializeDocumentSqsAction(v **types.SqsAction, value interf if !ok { return fmt.Errorf("expected UseBase64 to be of type *bool, got %T instead", value) } - sv.UseBase64 = &jtv + sv.UseBase64 = ptr.Bool(jtv) } default: @@ -44328,7 +44432,7 @@ func awsRestjson1_deserializeDocumentStartSigningJobParameter(v **types.StartSig if !ok { return fmt.Errorf("expected SigningProfileName to be of type string, got %T instead", value) } - sv.SigningProfileName = &jtv + sv.SigningProfileName = ptr.String(jtv) } case "signingProfileParameter": @@ -44373,7 +44477,7 @@ func awsRestjson1_deserializeDocumentStatisticalThreshold(v **types.StatisticalT if !ok { return fmt.Errorf("expected EvaluationStatistic to be of type string, got %T instead", value) } - sv.Statistic = &jtv + sv.Statistic = ptr.String(jtv) } default: @@ -44417,7 +44521,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.Average = &f64 + sv.Average = f64 } case "count": @@ -44430,7 +44534,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "maximum": @@ -44443,7 +44547,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.Maximum = &f64 + sv.Maximum = f64 } case "minimum": @@ -44456,7 +44560,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.Minimum = &f64 + sv.Minimum = f64 } case "stdDeviation": @@ -44469,7 +44573,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.StdDeviation = &f64 + sv.StdDeviation = f64 } case "sum": @@ -44482,7 +44586,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.Sum = &f64 + sv.Sum = f64 } case "sumOfSquares": @@ -44495,7 +44599,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.SumOfSquares = &f64 + sv.SumOfSquares = f64 } case "variance": @@ -44508,7 +44612,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.Variance = &f64 + sv.Variance = f64 } default: @@ -44548,7 +44652,7 @@ func awsRestjson1_deserializeDocumentStepFunctionsAction(v **types.StepFunctions if !ok { return fmt.Errorf("expected ExecutionNamePrefix to be of type string, got %T instead", value) } - sv.ExecutionNamePrefix = &jtv + sv.ExecutionNamePrefix = ptr.String(jtv) } case "roleArn": @@ -44557,7 +44661,7 @@ func awsRestjson1_deserializeDocumentStepFunctionsAction(v **types.StepFunctions if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "stateMachineName": @@ -44566,7 +44670,7 @@ func awsRestjson1_deserializeDocumentStepFunctionsAction(v **types.StepFunctions if !ok { return fmt.Errorf("expected StateMachineName to be of type string, got %T instead", value) } - sv.StateMachineName = &jtv + sv.StateMachineName = ptr.String(jtv) } default: @@ -44619,7 +44723,7 @@ func awsRestjson1_deserializeDocumentStream(v **types.Stream, value interface{}) if !ok { return fmt.Errorf("expected StreamId to be of type string, got %T instead", value) } - sv.StreamId = &jtv + sv.StreamId = ptr.String(jtv) } default: @@ -44680,7 +44784,7 @@ func awsRestjson1_deserializeDocumentStreamFile(v **types.StreamFile, value inte return nil } -func awsRestjson1_deserializeDocumentStreamFiles(v *[]*types.StreamFile, value interface{}) error { +func awsRestjson1_deserializeDocumentStreamFiles(v *[]types.StreamFile, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44693,18 +44797,20 @@ func awsRestjson1_deserializeDocumentStreamFiles(v *[]*types.StreamFile, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StreamFile + var cv []types.StreamFile if *v == nil { - cv = []*types.StreamFile{} + cv = []types.StreamFile{} } else { cv = *v } for _, value := range shape { - var col *types.StreamFile - if err := awsRestjson1_deserializeDocumentStreamFile(&col, value); err != nil { + var col types.StreamFile + destAddr := &col + if err := awsRestjson1_deserializeDocumentStreamFile(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -44753,7 +44859,7 @@ func awsRestjson1_deserializeDocumentStreamInfo(v **types.StreamInfo, value inte if !ok { return fmt.Errorf("expected StreamDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "files": @@ -44780,7 +44886,7 @@ func awsRestjson1_deserializeDocumentStreamInfo(v **types.StreamInfo, value inte if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "streamArn": @@ -44789,7 +44895,7 @@ func awsRestjson1_deserializeDocumentStreamInfo(v **types.StreamInfo, value inte if !ok { return fmt.Errorf("expected StreamArn to be of type string, got %T instead", value) } - sv.StreamArn = &jtv + sv.StreamArn = ptr.String(jtv) } case "streamId": @@ -44798,7 +44904,7 @@ func awsRestjson1_deserializeDocumentStreamInfo(v **types.StreamInfo, value inte if !ok { return fmt.Errorf("expected StreamId to be of type string, got %T instead", value) } - sv.StreamId = &jtv + sv.StreamId = ptr.String(jtv) } case "streamVersion": @@ -44823,7 +44929,7 @@ func awsRestjson1_deserializeDocumentStreamInfo(v **types.StreamInfo, value inte return nil } -func awsRestjson1_deserializeDocumentStreamsSummary(v *[]*types.StreamSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentStreamsSummary(v *[]types.StreamSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44836,18 +44942,20 @@ func awsRestjson1_deserializeDocumentStreamsSummary(v *[]*types.StreamSummary, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StreamSummary + var cv []types.StreamSummary if *v == nil { - cv = []*types.StreamSummary{} + cv = []types.StreamSummary{} } else { cv = *v } for _, value := range shape { - var col *types.StreamSummary - if err := awsRestjson1_deserializeDocumentStreamSummary(&col, value); err != nil { + var col types.StreamSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentStreamSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -44883,7 +44991,7 @@ func awsRestjson1_deserializeDocumentStreamSummary(v **types.StreamSummary, valu if !ok { return fmt.Errorf("expected StreamDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "streamArn": @@ -44892,7 +45000,7 @@ func awsRestjson1_deserializeDocumentStreamSummary(v **types.StreamSummary, valu if !ok { return fmt.Errorf("expected StreamArn to be of type string, got %T instead", value) } - sv.StreamArn = &jtv + sv.StreamArn = ptr.String(jtv) } case "streamId": @@ -44901,7 +45009,7 @@ func awsRestjson1_deserializeDocumentStreamSummary(v **types.StreamSummary, valu if !ok { return fmt.Errorf("expected StreamId to be of type string, got %T instead", value) } - sv.StreamId = &jtv + sv.StreamId = ptr.String(jtv) } case "streamVersion": @@ -44926,7 +45034,7 @@ func awsRestjson1_deserializeDocumentStreamSummary(v **types.StreamSummary, valu return nil } -func awsRestjson1_deserializeDocumentStringMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStringMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44939,21 +45047,21 @@ func awsRestjson1_deserializeDocumentStringMap(v *map[string]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -44990,7 +45098,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -44999,7 +45107,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -45011,7 +45119,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45024,18 +45132,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -45043,7 +45153,7 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return nil } -func awsRestjson1_deserializeDocumentTargetAuditCheckNames(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTargetAuditCheckNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45056,21 +45166,21 @@ func awsRestjson1_deserializeDocumentTargetAuditCheckNames(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AuditCheckName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -45079,7 +45189,7 @@ func awsRestjson1_deserializeDocumentTargetAuditCheckNames(v *[]*string, value i return nil } -func awsRestjson1_deserializeDocumentTargets(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTargets(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45092,21 +45202,21 @@ func awsRestjson1_deserializeDocumentTargets(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Target to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -45143,7 +45253,7 @@ func awsRestjson1_deserializeDocumentTaskAlreadyExistsException(v **types.TaskAl if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -45155,7 +45265,7 @@ func awsRestjson1_deserializeDocumentTaskAlreadyExistsException(v **types.TaskAl return nil } -func awsRestjson1_deserializeDocumentTaskIdList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTaskIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45168,21 +45278,21 @@ func awsRestjson1_deserializeDocumentTaskIdList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TaskId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -45345,7 +45455,7 @@ func awsRestjson1_deserializeDocumentTaskStatisticsForAuditCheck(v **types.TaskS if err != nil { return err } - sv.CanceledFindingsCount = &i64 + sv.CanceledFindingsCount = ptr.Int64(i64) } case "failedFindingsCount": @@ -45358,7 +45468,7 @@ func awsRestjson1_deserializeDocumentTaskStatisticsForAuditCheck(v **types.TaskS if err != nil { return err } - sv.FailedFindingsCount = &i64 + sv.FailedFindingsCount = ptr.Int64(i64) } case "skippedFindingsCount": @@ -45371,7 +45481,7 @@ func awsRestjson1_deserializeDocumentTaskStatisticsForAuditCheck(v **types.TaskS if err != nil { return err } - sv.SkippedFindingsCount = &i64 + sv.SkippedFindingsCount = ptr.Int64(i64) } case "succeededFindingsCount": @@ -45384,7 +45494,7 @@ func awsRestjson1_deserializeDocumentTaskStatisticsForAuditCheck(v **types.TaskS if err != nil { return err } - sv.SucceededFindingsCount = &i64 + sv.SucceededFindingsCount = ptr.Int64(i64) } case "totalFindingsCount": @@ -45397,7 +45507,7 @@ func awsRestjson1_deserializeDocumentTaskStatisticsForAuditCheck(v **types.TaskS if err != nil { return err } - sv.TotalFindingsCount = &i64 + sv.TotalFindingsCount = ptr.Int64(i64) } default: @@ -45442,7 +45552,7 @@ func awsRestjson1_deserializeDocumentThingAttribute(v **types.ThingAttribute, va if !ok { return fmt.Errorf("expected ThingArn to be of type string, got %T instead", value) } - sv.ThingArn = &jtv + sv.ThingArn = ptr.String(jtv) } case "thingName": @@ -45451,7 +45561,7 @@ func awsRestjson1_deserializeDocumentThingAttribute(v **types.ThingAttribute, va if !ok { return fmt.Errorf("expected ThingName to be of type string, got %T instead", value) } - sv.ThingName = &jtv + sv.ThingName = ptr.String(jtv) } case "thingTypeName": @@ -45460,7 +45570,7 @@ func awsRestjson1_deserializeDocumentThingAttribute(v **types.ThingAttribute, va if !ok { return fmt.Errorf("expected ThingTypeName to be of type string, got %T instead", value) } - sv.ThingTypeName = &jtv + sv.ThingTypeName = ptr.String(jtv) } case "version": @@ -45473,7 +45583,7 @@ func awsRestjson1_deserializeDocumentThingAttribute(v **types.ThingAttribute, va if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -45485,7 +45595,7 @@ func awsRestjson1_deserializeDocumentThingAttribute(v **types.ThingAttribute, va return nil } -func awsRestjson1_deserializeDocumentThingAttributeList(v *[]*types.ThingAttribute, value interface{}) error { +func awsRestjson1_deserializeDocumentThingAttributeList(v *[]types.ThingAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45498,18 +45608,20 @@ func awsRestjson1_deserializeDocumentThingAttributeList(v *[]*types.ThingAttribu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ThingAttribute + var cv []types.ThingAttribute if *v == nil { - cv = []*types.ThingAttribute{} + cv = []types.ThingAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.ThingAttribute - if err := awsRestjson1_deserializeDocumentThingAttribute(&col, value); err != nil { + var col types.ThingAttribute + destAddr := &col + if err := awsRestjson1_deserializeDocumentThingAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -45545,7 +45657,7 @@ func awsRestjson1_deserializeDocumentThingConnectivity(v **types.ThingConnectivi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Connected = &jtv + sv.Connected = jtv } case "timestamp": @@ -45558,7 +45670,7 @@ func awsRestjson1_deserializeDocumentThingConnectivity(v **types.ThingConnectivi if err != nil { return err } - sv.Timestamp = &i64 + sv.Timestamp = ptr.Int64(i64) } default: @@ -45608,7 +45720,7 @@ func awsRestjson1_deserializeDocumentThingDocument(v **types.ThingDocument, valu if !ok { return fmt.Errorf("expected JsonDocument to be of type string, got %T instead", value) } - sv.Shadow = &jtv + sv.Shadow = ptr.String(jtv) } case "thingGroupNames": @@ -45622,7 +45734,7 @@ func awsRestjson1_deserializeDocumentThingDocument(v **types.ThingDocument, valu if !ok { return fmt.Errorf("expected ThingId to be of type string, got %T instead", value) } - sv.ThingId = &jtv + sv.ThingId = ptr.String(jtv) } case "thingName": @@ -45631,7 +45743,7 @@ func awsRestjson1_deserializeDocumentThingDocument(v **types.ThingDocument, valu if !ok { return fmt.Errorf("expected ThingName to be of type string, got %T instead", value) } - sv.ThingName = &jtv + sv.ThingName = ptr.String(jtv) } case "thingTypeName": @@ -45640,7 +45752,7 @@ func awsRestjson1_deserializeDocumentThingDocument(v **types.ThingDocument, valu if !ok { return fmt.Errorf("expected ThingTypeName to be of type string, got %T instead", value) } - sv.ThingTypeName = &jtv + sv.ThingTypeName = ptr.String(jtv) } default: @@ -45652,7 +45764,7 @@ func awsRestjson1_deserializeDocumentThingDocument(v **types.ThingDocument, valu return nil } -func awsRestjson1_deserializeDocumentThingDocumentList(v *[]*types.ThingDocument, value interface{}) error { +func awsRestjson1_deserializeDocumentThingDocumentList(v *[]types.ThingDocument, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45665,18 +45777,20 @@ func awsRestjson1_deserializeDocumentThingDocumentList(v *[]*types.ThingDocument return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ThingDocument + var cv []types.ThingDocument if *v == nil { - cv = []*types.ThingDocument{} + cv = []types.ThingDocument{} } else { cv = *v } for _, value := range shape { - var col *types.ThingDocument - if err := awsRestjson1_deserializeDocumentThingDocument(&col, value); err != nil { + var col types.ThingDocument + destAddr := &col + if err := awsRestjson1_deserializeDocumentThingDocument(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -45722,7 +45836,7 @@ func awsRestjson1_deserializeDocumentThingGroupDocument(v **types.ThingGroupDocu if !ok { return fmt.Errorf("expected ThingGroupDescription to be of type string, got %T instead", value) } - sv.ThingGroupDescription = &jtv + sv.ThingGroupDescription = ptr.String(jtv) } case "thingGroupId": @@ -45731,7 +45845,7 @@ func awsRestjson1_deserializeDocumentThingGroupDocument(v **types.ThingGroupDocu if !ok { return fmt.Errorf("expected ThingGroupId to be of type string, got %T instead", value) } - sv.ThingGroupId = &jtv + sv.ThingGroupId = ptr.String(jtv) } case "thingGroupName": @@ -45740,7 +45854,7 @@ func awsRestjson1_deserializeDocumentThingGroupDocument(v **types.ThingGroupDocu if !ok { return fmt.Errorf("expected ThingGroupName to be of type string, got %T instead", value) } - sv.ThingGroupName = &jtv + sv.ThingGroupName = ptr.String(jtv) } default: @@ -45752,7 +45866,7 @@ func awsRestjson1_deserializeDocumentThingGroupDocument(v **types.ThingGroupDocu return nil } -func awsRestjson1_deserializeDocumentThingGroupDocumentList(v *[]*types.ThingGroupDocument, value interface{}) error { +func awsRestjson1_deserializeDocumentThingGroupDocumentList(v *[]types.ThingGroupDocument, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45765,18 +45879,20 @@ func awsRestjson1_deserializeDocumentThingGroupDocumentList(v *[]*types.ThingGro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ThingGroupDocument + var cv []types.ThingGroupDocument if *v == nil { - cv = []*types.ThingGroupDocument{} + cv = []types.ThingGroupDocument{} } else { cv = *v } for _, value := range shape { - var col *types.ThingGroupDocument - if err := awsRestjson1_deserializeDocumentThingGroupDocument(&col, value); err != nil { + var col types.ThingGroupDocument + destAddr := &col + if err := awsRestjson1_deserializeDocumentThingGroupDocument(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -45875,7 +45991,7 @@ func awsRestjson1_deserializeDocumentThingGroupMetadata(v **types.ThingGroupMeta if !ok { return fmt.Errorf("expected ThingGroupName to be of type string, got %T instead", value) } - sv.ParentGroupName = &jtv + sv.ParentGroupName = ptr.String(jtv) } case "rootToParentThingGroups": @@ -45892,7 +46008,7 @@ func awsRestjson1_deserializeDocumentThingGroupMetadata(v **types.ThingGroupMeta return nil } -func awsRestjson1_deserializeDocumentThingGroupNameAndArnList(v *[]*types.GroupNameAndArn, value interface{}) error { +func awsRestjson1_deserializeDocumentThingGroupNameAndArnList(v *[]types.GroupNameAndArn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45905,18 +46021,20 @@ func awsRestjson1_deserializeDocumentThingGroupNameAndArnList(v *[]*types.GroupN return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupNameAndArn + var cv []types.GroupNameAndArn if *v == nil { - cv = []*types.GroupNameAndArn{} + cv = []types.GroupNameAndArn{} } else { cv = *v } for _, value := range shape { - var col *types.GroupNameAndArn - if err := awsRestjson1_deserializeDocumentGroupNameAndArn(&col, value); err != nil { + var col types.GroupNameAndArn + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroupNameAndArn(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -45924,7 +46042,7 @@ func awsRestjson1_deserializeDocumentThingGroupNameAndArnList(v *[]*types.GroupN return nil } -func awsRestjson1_deserializeDocumentThingGroupNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentThingGroupNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45937,21 +46055,21 @@ func awsRestjson1_deserializeDocumentThingGroupNameList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ThingGroupName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -45960,7 +46078,7 @@ func awsRestjson1_deserializeDocumentThingGroupNameList(v *[]*string, value inte return nil } -func awsRestjson1_deserializeDocumentThingGroupNames(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentThingGroupNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45973,21 +46091,21 @@ func awsRestjson1_deserializeDocumentThingGroupNames(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ThingGroupName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -46029,7 +46147,7 @@ func awsRestjson1_deserializeDocumentThingGroupProperties(v **types.ThingGroupPr if !ok { return fmt.Errorf("expected ThingGroupDescription to be of type string, got %T instead", value) } - sv.ThingGroupDescription = &jtv + sv.ThingGroupDescription = ptr.String(jtv) } default: @@ -46100,7 +46218,7 @@ func awsRestjson1_deserializeDocumentThingIndexingConfiguration(v **types.ThingI return nil } -func awsRestjson1_deserializeDocumentThingNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentThingNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46113,21 +46231,21 @@ func awsRestjson1_deserializeDocumentThingNameList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ThingName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -46164,7 +46282,7 @@ func awsRestjson1_deserializeDocumentThingTypeDefinition(v **types.ThingTypeDefi if !ok { return fmt.Errorf("expected ThingTypeArn to be of type string, got %T instead", value) } - sv.ThingTypeArn = &jtv + sv.ThingTypeArn = ptr.String(jtv) } case "thingTypeMetadata": @@ -46178,7 +46296,7 @@ func awsRestjson1_deserializeDocumentThingTypeDefinition(v **types.ThingTypeDefi if !ok { return fmt.Errorf("expected ThingTypeName to be of type string, got %T instead", value) } - sv.ThingTypeName = &jtv + sv.ThingTypeName = ptr.String(jtv) } case "thingTypeProperties": @@ -46195,7 +46313,7 @@ func awsRestjson1_deserializeDocumentThingTypeDefinition(v **types.ThingTypeDefi return nil } -func awsRestjson1_deserializeDocumentThingTypeList(v *[]*types.ThingTypeDefinition, value interface{}) error { +func awsRestjson1_deserializeDocumentThingTypeList(v *[]types.ThingTypeDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46208,18 +46326,20 @@ func awsRestjson1_deserializeDocumentThingTypeList(v *[]*types.ThingTypeDefiniti return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ThingTypeDefinition + var cv []types.ThingTypeDefinition if *v == nil { - cv = []*types.ThingTypeDefinition{} + cv = []types.ThingTypeDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.ThingTypeDefinition - if err := awsRestjson1_deserializeDocumentThingTypeDefinition(&col, value); err != nil { + var col types.ThingTypeDefinition + destAddr := &col + if err := awsRestjson1_deserializeDocumentThingTypeDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -46268,7 +46388,7 @@ func awsRestjson1_deserializeDocumentThingTypeMetadata(v **types.ThingTypeMetada if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Deprecated = &jtv + sv.Deprecated = jtv } case "deprecationDate": @@ -46326,7 +46446,7 @@ func awsRestjson1_deserializeDocumentThingTypeProperties(v **types.ThingTypeProp if !ok { return fmt.Errorf("expected ThingTypeDescription to be of type string, got %T instead", value) } - sv.ThingTypeDescription = &jtv + sv.ThingTypeDescription = ptr.String(jtv) } default: @@ -46366,7 +46486,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -46410,7 +46530,7 @@ func awsRestjson1_deserializeDocumentTimeoutConfig(v **types.TimeoutConfig, valu if err != nil { return err } - sv.InProgressTimeoutInMinutes = &i64 + sv.InProgressTimeoutInMinutes = ptr.Int64(i64) } default: @@ -46450,7 +46570,7 @@ func awsRestjson1_deserializeDocumentTimestreamAction(v **types.TimestreamAction if !ok { return fmt.Errorf("expected TimestreamDatabaseName to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "dimensions": @@ -46464,7 +46584,7 @@ func awsRestjson1_deserializeDocumentTimestreamAction(v **types.TimestreamAction if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "tableName": @@ -46473,7 +46593,7 @@ func awsRestjson1_deserializeDocumentTimestreamAction(v **types.TimestreamAction if !ok { return fmt.Errorf("expected TimestreamTableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "timestamp": @@ -46518,7 +46638,7 @@ func awsRestjson1_deserializeDocumentTimestreamDimension(v **types.TimestreamDim if !ok { return fmt.Errorf("expected TimestreamDimensionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "value": @@ -46527,7 +46647,7 @@ func awsRestjson1_deserializeDocumentTimestreamDimension(v **types.TimestreamDim if !ok { return fmt.Errorf("expected TimestreamDimensionValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -46539,7 +46659,7 @@ func awsRestjson1_deserializeDocumentTimestreamDimension(v **types.TimestreamDim return nil } -func awsRestjson1_deserializeDocumentTimestreamDimensionList(v *[]*types.TimestreamDimension, value interface{}) error { +func awsRestjson1_deserializeDocumentTimestreamDimensionList(v *[]types.TimestreamDimension, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46552,18 +46672,20 @@ func awsRestjson1_deserializeDocumentTimestreamDimensionList(v *[]*types.Timestr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TimestreamDimension + var cv []types.TimestreamDimension if *v == nil { - cv = []*types.TimestreamDimension{} + cv = []types.TimestreamDimension{} } else { cv = *v } for _, value := range shape { - var col *types.TimestreamDimension - if err := awsRestjson1_deserializeDocumentTimestreamDimension(&col, value); err != nil { + var col types.TimestreamDimension + destAddr := &col + if err := awsRestjson1_deserializeDocumentTimestreamDimension(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -46599,7 +46721,7 @@ func awsRestjson1_deserializeDocumentTimestreamTimestamp(v **types.TimestreamTim if !ok { return fmt.Errorf("expected TimestreamTimestampUnit to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } case "value": @@ -46608,7 +46730,7 @@ func awsRestjson1_deserializeDocumentTimestreamTimestamp(v **types.TimestreamTim if !ok { return fmt.Errorf("expected TimestreamTimestampValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -46653,7 +46775,7 @@ func awsRestjson1_deserializeDocumentTopicRule(v **types.TopicRule, value interf if !ok { return fmt.Errorf("expected AwsIotSqlVersion to be of type string, got %T instead", value) } - sv.AwsIotSqlVersion = &jtv + sv.AwsIotSqlVersion = ptr.String(jtv) } case "createdAt": @@ -46675,7 +46797,7 @@ func awsRestjson1_deserializeDocumentTopicRule(v **types.TopicRule, value interf if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "errorAction": @@ -46689,7 +46811,7 @@ func awsRestjson1_deserializeDocumentTopicRule(v **types.TopicRule, value interf if !ok { return fmt.Errorf("expected IsDisabled to be of type *bool, got %T instead", value) } - sv.RuleDisabled = &jtv + sv.RuleDisabled = ptr.Bool(jtv) } case "ruleName": @@ -46698,7 +46820,7 @@ func awsRestjson1_deserializeDocumentTopicRule(v **types.TopicRule, value interf if !ok { return fmt.Errorf("expected RuleName to be of type string, got %T instead", value) } - sv.RuleName = &jtv + sv.RuleName = ptr.String(jtv) } case "sql": @@ -46707,7 +46829,7 @@ func awsRestjson1_deserializeDocumentTopicRule(v **types.TopicRule, value interf if !ok { return fmt.Errorf("expected SQL to be of type string, got %T instead", value) } - sv.Sql = &jtv + sv.Sql = ptr.String(jtv) } default: @@ -46747,7 +46869,7 @@ func awsRestjson1_deserializeDocumentTopicRuleDestination(v **types.TopicRuleDes if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "httpUrlProperties": @@ -46770,7 +46892,7 @@ func awsRestjson1_deserializeDocumentTopicRuleDestination(v **types.TopicRuleDes if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } default: @@ -46782,7 +46904,7 @@ func awsRestjson1_deserializeDocumentTopicRuleDestination(v **types.TopicRuleDes return nil } -func awsRestjson1_deserializeDocumentTopicRuleDestinationSummaries(v *[]*types.TopicRuleDestinationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicRuleDestinationSummaries(v *[]types.TopicRuleDestinationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46795,18 +46917,20 @@ func awsRestjson1_deserializeDocumentTopicRuleDestinationSummaries(v *[]*types.T return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TopicRuleDestinationSummary + var cv []types.TopicRuleDestinationSummary if *v == nil { - cv = []*types.TopicRuleDestinationSummary{} + cv = []types.TopicRuleDestinationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TopicRuleDestinationSummary - if err := awsRestjson1_deserializeDocumentTopicRuleDestinationSummary(&col, value); err != nil { + var col types.TopicRuleDestinationSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentTopicRuleDestinationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -46842,7 +46966,7 @@ func awsRestjson1_deserializeDocumentTopicRuleDestinationSummary(v **types.Topic if !ok { return fmt.Errorf("expected AwsArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "httpUrlSummary": @@ -46865,7 +46989,7 @@ func awsRestjson1_deserializeDocumentTopicRuleDestinationSummary(v **types.Topic if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } default: @@ -46877,7 +47001,7 @@ func awsRestjson1_deserializeDocumentTopicRuleDestinationSummary(v **types.Topic return nil } -func awsRestjson1_deserializeDocumentTopicRuleList(v *[]*types.TopicRuleListItem, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicRuleList(v *[]types.TopicRuleListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46890,18 +47014,20 @@ func awsRestjson1_deserializeDocumentTopicRuleList(v *[]*types.TopicRuleListItem return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TopicRuleListItem + var cv []types.TopicRuleListItem if *v == nil { - cv = []*types.TopicRuleListItem{} + cv = []types.TopicRuleListItem{} } else { cv = *v } for _, value := range shape { - var col *types.TopicRuleListItem - if err := awsRestjson1_deserializeDocumentTopicRuleListItem(&col, value); err != nil { + var col types.TopicRuleListItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentTopicRuleListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -46950,7 +47076,7 @@ func awsRestjson1_deserializeDocumentTopicRuleListItem(v **types.TopicRuleListIt if !ok { return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) } - sv.RuleArn = &jtv + sv.RuleArn = ptr.String(jtv) } case "ruleDisabled": @@ -46959,7 +47085,7 @@ func awsRestjson1_deserializeDocumentTopicRuleListItem(v **types.TopicRuleListIt if !ok { return fmt.Errorf("expected IsDisabled to be of type *bool, got %T instead", value) } - sv.RuleDisabled = &jtv + sv.RuleDisabled = ptr.Bool(jtv) } case "ruleName": @@ -46968,7 +47094,7 @@ func awsRestjson1_deserializeDocumentTopicRuleListItem(v **types.TopicRuleListIt if !ok { return fmt.Errorf("expected RuleName to be of type string, got %T instead", value) } - sv.RuleName = &jtv + sv.RuleName = ptr.String(jtv) } case "topicPattern": @@ -46977,7 +47103,7 @@ func awsRestjson1_deserializeDocumentTopicRuleListItem(v **types.TopicRuleListIt if !ok { return fmt.Errorf("expected TopicPattern to be of type string, got %T instead", value) } - sv.TopicPattern = &jtv + sv.TopicPattern = ptr.String(jtv) } default: @@ -47017,7 +47143,7 @@ func awsRestjson1_deserializeDocumentTransferAlreadyCompletedException(v **types if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -47057,7 +47183,7 @@ func awsRestjson1_deserializeDocumentTransferConflictException(v **types.Transfe if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -47123,7 +47249,7 @@ func awsRestjson1_deserializeDocumentTransferData(v **types.TransferData, value if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.RejectReason = &jtv + sv.RejectReason = ptr.String(jtv) } case "transferDate": @@ -47145,7 +47271,7 @@ func awsRestjson1_deserializeDocumentTransferData(v **types.TransferData, value if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.TransferMessage = &jtv + sv.TransferMessage = ptr.String(jtv) } default: @@ -47185,7 +47311,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -47305,7 +47431,7 @@ func awsRestjson1_deserializeDocumentValidationError(v **types.ValidationError, if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -47317,7 +47443,7 @@ func awsRestjson1_deserializeDocumentValidationError(v **types.ValidationError, return nil } -func awsRestjson1_deserializeDocumentValidationErrors(v *[]*types.ValidationError, value interface{}) error { +func awsRestjson1_deserializeDocumentValidationErrors(v *[]types.ValidationError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47330,18 +47456,20 @@ func awsRestjson1_deserializeDocumentValidationErrors(v *[]*types.ValidationErro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ValidationError + var cv []types.ValidationError if *v == nil { - cv = []*types.ValidationError{} + cv = []types.ValidationError{} } else { cv = *v } for _, value := range shape { - var col *types.ValidationError - if err := awsRestjson1_deserializeDocumentValidationError(&col, value); err != nil { + var col types.ValidationError + destAddr := &col + if err := awsRestjson1_deserializeDocumentValidationError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -47377,7 +47505,7 @@ func awsRestjson1_deserializeDocumentVersionConflictException(v **types.VersionC if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -47417,7 +47545,7 @@ func awsRestjson1_deserializeDocumentVersionsLimitExceededException(v **types.Ve if !ok { return fmt.Errorf("expected ErrorMessage2 to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -47467,7 +47595,7 @@ func awsRestjson1_deserializeDocumentViolationEvent(v **types.ViolationEvent, va if !ok { return fmt.Errorf("expected SecurityProfileName to be of type string, got %T instead", value) } - sv.SecurityProfileName = &jtv + sv.SecurityProfileName = ptr.String(jtv) } case "thingName": @@ -47476,7 +47604,7 @@ func awsRestjson1_deserializeDocumentViolationEvent(v **types.ViolationEvent, va if !ok { return fmt.Errorf("expected DeviceDefenderThingName to be of type string, got %T instead", value) } - sv.ThingName = &jtv + sv.ThingName = ptr.String(jtv) } case "violationEventTime": @@ -47507,7 +47635,7 @@ func awsRestjson1_deserializeDocumentViolationEvent(v **types.ViolationEvent, va if !ok { return fmt.Errorf("expected ViolationId to be of type string, got %T instead", value) } - sv.ViolationId = &jtv + sv.ViolationId = ptr.String(jtv) } default: @@ -47519,7 +47647,7 @@ func awsRestjson1_deserializeDocumentViolationEvent(v **types.ViolationEvent, va return nil } -func awsRestjson1_deserializeDocumentViolationEvents(v *[]*types.ViolationEvent, value interface{}) error { +func awsRestjson1_deserializeDocumentViolationEvents(v *[]types.ViolationEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47532,18 +47660,20 @@ func awsRestjson1_deserializeDocumentViolationEvents(v *[]*types.ViolationEvent, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ViolationEvent + var cv []types.ViolationEvent if *v == nil { - cv = []*types.ViolationEvent{} + cv = []types.ViolationEvent{} } else { cv = *v } for _, value := range shape { - var col *types.ViolationEvent - if err := awsRestjson1_deserializeDocumentViolationEvent(&col, value); err != nil { + var col types.ViolationEvent + destAddr := &col + if err := awsRestjson1_deserializeDocumentViolationEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/iot/go.mod b/service/iot/go.mod index 75bc8722c78..56b5ed28ca5 100644 --- a/service/iot/go.mod +++ b/service/iot/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/iot go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/iot/serializers.go b/service/iot/serializers.go index ff301cf8c52..7ed00a7bc61 100644 --- a/service/iot/serializers.go +++ b/service/iot/serializers.go @@ -66,20 +66,17 @@ func awsRestjson1_serializeOpHttpBindingsAcceptCertificateTransferInput(v *Accep return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CertificateId == nil { + if v.CertificateId == nil || len(*v.CertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} } if v.CertificateId != nil { - if len(*v.CertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} - } if err := encoder.SetURI("certificateId").String(*v.CertificateId); err != nil { return err } } - if v.SetAsActive != nil { - encoder.SetQuery("setAsActive").Boolean(*v.SetAsActive) + if v.SetAsActive { + encoder.SetQuery("setAsActive").Boolean(v.SetAsActive) } return nil @@ -238,9 +235,9 @@ func awsRestjson1_serializeOpDocumentAddThingToThingGroupInput(v *AddThingToThin object := value.Object() defer object.Close() - if v.OverrideDynamicGroups != nil { + if v.OverrideDynamicGroups { ok := object.Key("overrideDynamicGroups") - ok.Boolean(*v.OverrideDynamicGroups) + ok.Boolean(v.OverrideDynamicGroups) } if v.ThingArn != nil { @@ -328,13 +325,10 @@ func awsRestjson1_serializeOpHttpBindingsAssociateTargetsWithJobInput(v *Associa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -428,13 +422,10 @@ func awsRestjson1_serializeOpHttpBindingsAttachPolicyInput(v *AttachPolicyInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} - } if err := encoder.SetURI("policyName").String(*v.PolicyName); err != nil { return err } @@ -506,23 +497,18 @@ func awsRestjson1_serializeOpHttpBindingsAttachPrincipalPolicyInput(v *AttachPri return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} - } if err := encoder.SetURI("policyName").String(*v.PolicyName); err != nil { return err } } - if v.Principal != nil { + if v.Principal != nil && len(*v.Principal) > 0 { locationName := "X-Amzn-Iot-Principal" - if len(*v.Principal) > 0 { - encoder.SetHeader(locationName).String(*v.Principal) - } + encoder.SetHeader(locationName).String(*v.Principal) } return nil @@ -579,13 +565,10 @@ func awsRestjson1_serializeOpHttpBindingsAttachSecurityProfileInput(v *AttachSec return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SecurityProfileName == nil { + if v.SecurityProfileName == nil || len(*v.SecurityProfileName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} } if v.SecurityProfileName != nil { - if len(*v.SecurityProfileName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} - } if err := encoder.SetURI("securityProfileName").String(*v.SecurityProfileName); err != nil { return err } @@ -649,20 +632,15 @@ func awsRestjson1_serializeOpHttpBindingsAttachThingPrincipalInput(v *AttachThin return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Principal != nil { + if v.Principal != nil && len(*v.Principal) > 0 { locationName := "X-Amzn-Principal" - if len(*v.Principal) > 0 { - encoder.SetHeader(locationName).String(*v.Principal) - } + encoder.SetHeader(locationName).String(*v.Principal) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -722,13 +700,10 @@ func awsRestjson1_serializeOpHttpBindingsCancelAuditMitigationActionsTaskInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TaskId == nil { + if v.TaskId == nil || len(*v.TaskId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} } if v.TaskId != nil { - if len(*v.TaskId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} - } if err := encoder.SetURI("taskId").String(*v.TaskId); err != nil { return err } @@ -788,13 +763,10 @@ func awsRestjson1_serializeOpHttpBindingsCancelAuditTaskInput(v *CancelAuditTask return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TaskId == nil { + if v.TaskId == nil || len(*v.TaskId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} } if v.TaskId != nil { - if len(*v.TaskId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} - } if err := encoder.SetURI("taskId").String(*v.TaskId); err != nil { return err } @@ -854,13 +826,10 @@ func awsRestjson1_serializeOpHttpBindingsCancelCertificateTransferInput(v *Cance return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CertificateId == nil { + if v.CertificateId == nil || len(*v.CertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} } if v.CertificateId != nil { - if len(*v.CertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} - } if err := encoder.SetURI("certificateId").String(*v.CertificateId); err != nil { return err } @@ -931,17 +900,14 @@ func awsRestjson1_serializeOpHttpBindingsCancelJobInput(v *CancelJobInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Force != nil { - encoder.SetQuery("force").Boolean(*v.Force) + if v.Force { + encoder.SetQuery("force").Boolean(v.Force) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -1029,29 +995,23 @@ func awsRestjson1_serializeOpHttpBindingsCancelJobExecutionInput(v *CancelJobExe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Force != nil { - encoder.SetQuery("force").Boolean(*v.Force) + if v.Force { + encoder.SetQuery("force").Boolean(v.Force) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -1180,13 +1140,10 @@ func awsRestjson1_serializeOpHttpBindingsConfirmTopicRuleDestinationInput(v *Con return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfirmationToken == nil { + if v.ConfirmationToken == nil || len(*v.ConfirmationToken) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member confirmationToken must not be empty")} } if v.ConfirmationToken != nil { - if len(*v.ConfirmationToken) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member confirmationToken must not be empty")} - } if err := encoder.SetURI("confirmationToken").String(*v.ConfirmationToken); err != nil { return err } @@ -1357,13 +1314,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateAuthorizerInput(v *CreateAuthoriz return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthorizerName == nil { + if v.AuthorizerName == nil || len(*v.AuthorizerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerName must not be empty")} } if v.AuthorizerName != nil { - if len(*v.AuthorizerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerName must not be empty")} - } if err := encoder.SetURI("authorizerName").String(*v.AuthorizerName); err != nil { return err } @@ -1475,13 +1429,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateBillingGroupInput(v *CreateBillin return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BillingGroupName == nil { + if v.BillingGroupName == nil || len(*v.BillingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member billingGroupName must not be empty")} } if v.BillingGroupName != nil { - if len(*v.BillingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member billingGroupName must not be empty")} - } if err := encoder.SetURI("billingGroupName").String(*v.BillingGroupName); err != nil { return err } @@ -1573,8 +1524,8 @@ func awsRestjson1_serializeOpHttpBindingsCreateCertificateFromCsrInput(v *Create return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SetAsActive != nil { - encoder.SetQuery("setAsActive").Boolean(*v.SetAsActive) + if v.SetAsActive { + encoder.SetQuery("setAsActive").Boolean(v.SetAsActive) } return nil @@ -1654,13 +1605,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateDimensionInput(v *CreateDimension return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -1762,13 +1710,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateDomainConfigurationInput(v *Creat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainConfigurationName == nil { + if v.DomainConfigurationName == nil || len(*v.DomainConfigurationName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member domainConfigurationName must not be empty")} } if v.DomainConfigurationName != nil { - if len(*v.DomainConfigurationName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainConfigurationName must not be empty")} - } if err := encoder.SetURI("domainConfigurationName").String(*v.DomainConfigurationName); err != nil { return err } @@ -1882,13 +1827,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateDynamicThingGroupInput(v *CreateD return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingGroupName == nil { + if v.ThingGroupName == nil || len(*v.ThingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} } if v.ThingGroupName != nil { - if len(*v.ThingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} - } if err := encoder.SetURI("thingGroupName").String(*v.ThingGroupName); err != nil { return err } @@ -1995,13 +1937,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateJobInput(v *CreateJobInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -2135,8 +2074,8 @@ func awsRestjson1_serializeOpHttpBindingsCreateKeysAndCertificateInput(v *Create return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SetAsActive != nil { - encoder.SetQuery("setAsActive").Boolean(*v.SetAsActive) + if v.SetAsActive { + encoder.SetQuery("setAsActive").Boolean(v.SetAsActive) } return nil @@ -2204,13 +2143,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateMitigationActionInput(v *CreateMi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ActionName == nil { + if v.ActionName == nil || len(*v.ActionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member actionName must not be empty")} } if v.ActionName != nil { - if len(*v.ActionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member actionName must not be empty")} - } if err := encoder.SetURI("actionName").String(*v.ActionName); err != nil { return err } @@ -2307,13 +2243,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateOTAUpdateInput(v *CreateOTAUpdate return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.OtaUpdateId == nil { + if v.OtaUpdateId == nil || len(*v.OtaUpdateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member otaUpdateId must not be empty")} } if v.OtaUpdateId != nil { - if len(*v.OtaUpdateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member otaUpdateId must not be empty")} - } if err := encoder.SetURI("otaUpdateId").String(*v.OtaUpdateId); err != nil { return err } @@ -2469,13 +2402,10 @@ func awsRestjson1_serializeOpHttpBindingsCreatePolicyInput(v *CreatePolicyInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} - } if err := encoder.SetURI("policyName").String(*v.PolicyName); err != nil { return err } @@ -2565,20 +2495,17 @@ func awsRestjson1_serializeOpHttpBindingsCreatePolicyVersionInput(v *CreatePolic return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} - } if err := encoder.SetURI("policyName").String(*v.PolicyName); err != nil { return err } } - if v.SetAsDefault != nil { - encoder.SetQuery("setAsDefault").Boolean(*v.SetAsDefault) + if v.SetAsDefault { + encoder.SetQuery("setAsDefault").Boolean(v.SetAsDefault) } return nil @@ -2647,13 +2574,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateProvisioningClaimInput(v *CreateP return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} - } if err := encoder.SetURI("templateName").String(*v.TemplateName); err != nil { return err } @@ -2732,9 +2656,9 @@ func awsRestjson1_serializeOpDocumentCreateProvisioningTemplateInput(v *CreatePr ok.String(*v.Description) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.PreProvisioningHook != nil { @@ -2831,17 +2755,14 @@ func awsRestjson1_serializeOpHttpBindingsCreateProvisioningTemplateVersionInput( return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SetAsDefault != nil { - encoder.SetQuery("setAsDefault").Boolean(*v.SetAsDefault) + if v.SetAsDefault { + encoder.SetQuery("setAsDefault").Boolean(v.SetAsDefault) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} - } if err := encoder.SetURI("templateName").String(*v.TemplateName); err != nil { return err } @@ -2924,13 +2845,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateRoleAliasInput(v *CreateRoleAlias return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RoleAlias == nil { + if v.RoleAlias == nil || len(*v.RoleAlias) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member roleAlias must not be empty")} } if v.RoleAlias != nil { - if len(*v.RoleAlias) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member roleAlias must not be empty")} - } if err := encoder.SetURI("roleAlias").String(*v.RoleAlias); err != nil { return err } @@ -3025,13 +2943,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateScheduledAuditInput(v *CreateSche return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ScheduledAuditName == nil { + if v.ScheduledAuditName == nil || len(*v.ScheduledAuditName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member scheduledAuditName must not be empty")} } if v.ScheduledAuditName != nil { - if len(*v.ScheduledAuditName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member scheduledAuditName must not be empty")} - } if err := encoder.SetURI("scheduledAuditName").String(*v.ScheduledAuditName); err != nil { return err } @@ -3138,13 +3053,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateSecurityProfileInput(v *CreateSec return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SecurityProfileName == nil { + if v.SecurityProfileName == nil || len(*v.SecurityProfileName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} } if v.SecurityProfileName != nil { - if len(*v.SecurityProfileName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} - } if err := encoder.SetURI("securityProfileName").String(*v.SecurityProfileName); err != nil { return err } @@ -3262,13 +3174,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateStreamInput(v *CreateStreamInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.StreamId == nil { + if v.StreamId == nil || len(*v.StreamId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member streamId must not be empty")} } if v.StreamId != nil { - if len(*v.StreamId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member streamId must not be empty")} - } if err := encoder.SetURI("streamId").String(*v.StreamId); err != nil { return err } @@ -3370,13 +3279,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateThingInput(v *CreateThingInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -3471,13 +3377,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateThingGroupInput(v *CreateThingGro return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingGroupName == nil { + if v.ThingGroupName == nil || len(*v.ThingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} } if v.ThingGroupName != nil { - if len(*v.ThingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} - } if err := encoder.SetURI("thingGroupName").String(*v.ThingGroupName); err != nil { return err } @@ -3574,13 +3477,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateThingTypeInput(v *CreateThingType return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingTypeName == nil { + if v.ThingTypeName == nil || len(*v.ThingTypeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingTypeName must not be empty")} } if v.ThingTypeName != nil { - if len(*v.ThingTypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingTypeName must not be empty")} - } if err := encoder.SetURI("thingTypeName").String(*v.ThingTypeName); err != nil { return err } @@ -3676,23 +3576,18 @@ func awsRestjson1_serializeOpHttpBindingsCreateTopicRuleInput(v *CreateTopicRule return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RuleName == nil { + if v.RuleName == nil || len(*v.RuleName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} } if v.RuleName != nil { - if len(*v.RuleName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} - } if err := encoder.SetURI("ruleName").String(*v.RuleName); err != nil { return err } } - if v.Tags != nil { + if v.Tags != nil && len(*v.Tags) > 0 { locationName := "X-Amz-Tagging" - if len(*v.Tags) > 0 { - encoder.SetHeader(locationName).String(*v.Tags) - } + encoder.SetHeader(locationName).String(*v.Tags) } return nil @@ -3824,8 +3719,8 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAccountAuditConfigurationInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeleteScheduledAudits != nil { - encoder.SetQuery("deleteScheduledAudits").Boolean(*v.DeleteScheduledAudits) + if v.DeleteScheduledAudits { + encoder.SetQuery("deleteScheduledAudits").Boolean(v.DeleteScheduledAudits) } return nil @@ -3962,13 +3857,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAuthorizerInput(v *DeleteAuthoriz return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthorizerName == nil { + if v.AuthorizerName == nil || len(*v.AuthorizerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerName must not be empty")} } if v.AuthorizerName != nil { - if len(*v.AuthorizerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerName must not be empty")} - } if err := encoder.SetURI("authorizerName").String(*v.AuthorizerName); err != nil { return err } @@ -4028,13 +3920,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBillingGroupInput(v *DeleteBillin return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BillingGroupName == nil { + if v.BillingGroupName == nil || len(*v.BillingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member billingGroupName must not be empty")} } if v.BillingGroupName != nil { - if len(*v.BillingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member billingGroupName must not be empty")} - } if err := encoder.SetURI("billingGroupName").String(*v.BillingGroupName); err != nil { return err } @@ -4098,13 +3987,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteCACertificateInput(v *DeleteCACer return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CertificateId == nil { + if v.CertificateId == nil || len(*v.CertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} } if v.CertificateId != nil { - if len(*v.CertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} - } if err := encoder.SetURI("certificateId").String(*v.CertificateId); err != nil { return err } @@ -4164,20 +4050,17 @@ func awsRestjson1_serializeOpHttpBindingsDeleteCertificateInput(v *DeleteCertifi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CertificateId == nil { + if v.CertificateId == nil || len(*v.CertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} } if v.CertificateId != nil { - if len(*v.CertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} - } if err := encoder.SetURI("certificateId").String(*v.CertificateId); err != nil { return err } } - if v.ForceDelete != nil { - encoder.SetQuery("forceDelete").Boolean(*v.ForceDelete) + if v.ForceDelete { + encoder.SetQuery("forceDelete").Boolean(v.ForceDelete) } return nil @@ -4234,13 +4117,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDimensionInput(v *DeleteDimension return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -4300,13 +4180,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDomainConfigurationInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainConfigurationName == nil { + if v.DomainConfigurationName == nil || len(*v.DomainConfigurationName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member domainConfigurationName must not be empty")} } if v.DomainConfigurationName != nil { - if len(*v.DomainConfigurationName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainConfigurationName must not be empty")} - } if err := encoder.SetURI("domainConfigurationName").String(*v.DomainConfigurationName); err != nil { return err } @@ -4370,13 +4247,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDynamicThingGroupInput(v *DeleteD encoder.SetQuery("expectedVersion").Long(*v.ExpectedVersion) } - if v.ThingGroupName == nil { + if v.ThingGroupName == nil || len(*v.ThingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} } if v.ThingGroupName != nil { - if len(*v.ThingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} - } if err := encoder.SetURI("thingGroupName").String(*v.ThingGroupName); err != nil { return err } @@ -4436,17 +4310,14 @@ func awsRestjson1_serializeOpHttpBindingsDeleteJobInput(v *DeleteJobInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Force != nil { - encoder.SetQuery("force").Boolean(*v.Force) + if v.Force { + encoder.SetQuery("force").Boolean(v.Force) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -4519,17 +4390,14 @@ func awsRestjson1_serializeOpHttpBindingsDeleteJobExecutionInput(v *DeleteJobExe } } - if v.Force != nil { - encoder.SetQuery("force").Boolean(*v.Force) + if v.Force { + encoder.SetQuery("force").Boolean(v.Force) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -4539,13 +4407,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteJobExecutionInput(v *DeleteJobExe encoder.SetQuery("namespaceId").String(*v.NamespaceId) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -4605,13 +4470,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMitigationActionInput(v *DeleteMi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ActionName == nil { + if v.ActionName == nil || len(*v.ActionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member actionName must not be empty")} } if v.ActionName != nil { - if len(*v.ActionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member actionName must not be empty")} - } if err := encoder.SetURI("actionName").String(*v.ActionName); err != nil { return err } @@ -4671,21 +4533,18 @@ func awsRestjson1_serializeOpHttpBindingsDeleteOTAUpdateInput(v *DeleteOTAUpdate return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeleteStream != nil { - encoder.SetQuery("deleteStream").Boolean(*v.DeleteStream) + if v.DeleteStream { + encoder.SetQuery("deleteStream").Boolean(v.DeleteStream) } - if v.ForceDeleteAWSJob != nil { - encoder.SetQuery("forceDeleteAWSJob").Boolean(*v.ForceDeleteAWSJob) + if v.ForceDeleteAWSJob { + encoder.SetQuery("forceDeleteAWSJob").Boolean(v.ForceDeleteAWSJob) } - if v.OtaUpdateId == nil { + if v.OtaUpdateId == nil || len(*v.OtaUpdateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member otaUpdateId must not be empty")} } if v.OtaUpdateId != nil { - if len(*v.OtaUpdateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member otaUpdateId must not be empty")} - } if err := encoder.SetURI("otaUpdateId").String(*v.OtaUpdateId); err != nil { return err } @@ -4745,13 +4604,10 @@ func awsRestjson1_serializeOpHttpBindingsDeletePolicyInput(v *DeletePolicyInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} - } if err := encoder.SetURI("policyName").String(*v.PolicyName); err != nil { return err } @@ -4811,25 +4667,19 @@ func awsRestjson1_serializeOpHttpBindingsDeletePolicyVersionInput(v *DeletePolic return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} - } if err := encoder.SetURI("policyName").String(*v.PolicyName); err != nil { return err } } - if v.PolicyVersionId == nil { + if v.PolicyVersionId == nil || len(*v.PolicyVersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyVersionId must not be empty")} } if v.PolicyVersionId != nil { - if len(*v.PolicyVersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyVersionId must not be empty")} - } if err := encoder.SetURI("policyVersionId").String(*v.PolicyVersionId); err != nil { return err } @@ -4889,13 +4739,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteProvisioningTemplateInput(v *Dele return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} - } if err := encoder.SetURI("templateName").String(*v.TemplateName); err != nil { return err } @@ -4955,13 +4802,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteProvisioningTemplateVersionInput( return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} - } if err := encoder.SetURI("templateName").String(*v.TemplateName); err != nil { return err } @@ -5080,13 +4924,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRoleAliasInput(v *DeleteRoleAlias return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RoleAlias == nil { + if v.RoleAlias == nil || len(*v.RoleAlias) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member roleAlias must not be empty")} } if v.RoleAlias != nil { - if len(*v.RoleAlias) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member roleAlias must not be empty")} - } if err := encoder.SetURI("roleAlias").String(*v.RoleAlias); err != nil { return err } @@ -5146,13 +4987,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteScheduledAuditInput(v *DeleteSche return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ScheduledAuditName == nil { + if v.ScheduledAuditName == nil || len(*v.ScheduledAuditName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member scheduledAuditName must not be empty")} } if v.ScheduledAuditName != nil { - if len(*v.ScheduledAuditName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member scheduledAuditName must not be empty")} - } if err := encoder.SetURI("scheduledAuditName").String(*v.ScheduledAuditName); err != nil { return err } @@ -5216,13 +5054,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSecurityProfileInput(v *DeleteSec encoder.SetQuery("expectedVersion").Long(*v.ExpectedVersion) } - if v.SecurityProfileName == nil { + if v.SecurityProfileName == nil || len(*v.SecurityProfileName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} } if v.SecurityProfileName != nil { - if len(*v.SecurityProfileName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} - } if err := encoder.SetURI("securityProfileName").String(*v.SecurityProfileName); err != nil { return err } @@ -5282,13 +5117,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteStreamInput(v *DeleteStreamInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.StreamId == nil { + if v.StreamId == nil || len(*v.StreamId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member streamId must not be empty")} } if v.StreamId != nil { - if len(*v.StreamId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member streamId must not be empty")} - } if err := encoder.SetURI("streamId").String(*v.StreamId); err != nil { return err } @@ -5352,13 +5184,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteThingInput(v *DeleteThingInput, e encoder.SetQuery("expectedVersion").Long(*v.ExpectedVersion) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -5422,13 +5251,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteThingGroupInput(v *DeleteThingGro encoder.SetQuery("expectedVersion").Long(*v.ExpectedVersion) } - if v.ThingGroupName == nil { + if v.ThingGroupName == nil || len(*v.ThingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} } if v.ThingGroupName != nil { - if len(*v.ThingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} - } if err := encoder.SetURI("thingGroupName").String(*v.ThingGroupName); err != nil { return err } @@ -5488,13 +5314,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteThingTypeInput(v *DeleteThingType return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingTypeName == nil { + if v.ThingTypeName == nil || len(*v.ThingTypeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingTypeName must not be empty")} } if v.ThingTypeName != nil { - if len(*v.ThingTypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingTypeName must not be empty")} - } if err := encoder.SetURI("thingTypeName").String(*v.ThingTypeName); err != nil { return err } @@ -5554,13 +5377,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteTopicRuleInput(v *DeleteTopicRule return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RuleName == nil { + if v.RuleName == nil || len(*v.RuleName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} } if v.RuleName != nil { - if len(*v.RuleName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} - } if err := encoder.SetURI("ruleName").String(*v.RuleName); err != nil { return err } @@ -5620,13 +5440,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteTopicRuleDestinationInput(v *Dele return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Arn == nil { + if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member arn must not be empty")} } if v.Arn != nil { - if len(*v.Arn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member arn must not be empty")} - } if err := encoder.SetURI("arn").String(*v.Arn); err != nil { return err } @@ -5759,13 +5576,10 @@ func awsRestjson1_serializeOpHttpBindingsDeprecateThingTypeInput(v *DeprecateThi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingTypeName == nil { + if v.ThingTypeName == nil || len(*v.ThingTypeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingTypeName must not be empty")} } if v.ThingTypeName != nil { - if len(*v.ThingTypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingTypeName must not be empty")} - } if err := encoder.SetURI("thingTypeName").String(*v.ThingTypeName); err != nil { return err } @@ -5778,9 +5592,9 @@ func awsRestjson1_serializeOpDocumentDeprecateThingTypeInput(v *DeprecateThingTy object := value.Object() defer object.Close() - if v.UndoDeprecate != nil { + if v.UndoDeprecate { ok := object.Key("undoDeprecate") - ok.Boolean(*v.UndoDeprecate) + ok.Boolean(v.UndoDeprecate) } return nil @@ -5887,13 +5701,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAuditFindingInput(v *DescribeAu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FindingId == nil { + if v.FindingId == nil || len(*v.FindingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member findingId must not be empty")} } if v.FindingId != nil { - if len(*v.FindingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member findingId must not be empty")} - } if err := encoder.SetURI("findingId").String(*v.FindingId); err != nil { return err } @@ -5953,13 +5764,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAuditMitigationActionsTaskInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TaskId == nil { + if v.TaskId == nil || len(*v.TaskId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} } if v.TaskId != nil { - if len(*v.TaskId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} - } if err := encoder.SetURI("taskId").String(*v.TaskId); err != nil { return err } @@ -6099,13 +5907,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAuditTaskInput(v *DescribeAudit return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TaskId == nil { + if v.TaskId == nil || len(*v.TaskId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} } if v.TaskId != nil { - if len(*v.TaskId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} - } if err := encoder.SetURI("taskId").String(*v.TaskId); err != nil { return err } @@ -6165,13 +5970,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAuthorizerInput(v *DescribeAuth return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthorizerName == nil { + if v.AuthorizerName == nil || len(*v.AuthorizerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerName must not be empty")} } if v.AuthorizerName != nil { - if len(*v.AuthorizerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerName must not be empty")} - } if err := encoder.SetURI("authorizerName").String(*v.AuthorizerName); err != nil { return err } @@ -6231,13 +6033,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeBillingGroupInput(v *DescribeBi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BillingGroupName == nil { + if v.BillingGroupName == nil || len(*v.BillingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member billingGroupName must not be empty")} } if v.BillingGroupName != nil { - if len(*v.BillingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member billingGroupName must not be empty")} - } if err := encoder.SetURI("billingGroupName").String(*v.BillingGroupName); err != nil { return err } @@ -6297,13 +6096,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeCACertificateInput(v *DescribeC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CertificateId == nil { + if v.CertificateId == nil || len(*v.CertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} } if v.CertificateId != nil { - if len(*v.CertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} - } if err := encoder.SetURI("certificateId").String(*v.CertificateId); err != nil { return err } @@ -6363,13 +6159,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeCertificateInput(v *DescribeCer return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CertificateId == nil { + if v.CertificateId == nil || len(*v.CertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} } if v.CertificateId != nil { - if len(*v.CertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} - } if err := encoder.SetURI("certificateId").String(*v.CertificateId); err != nil { return err } @@ -6479,13 +6272,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDimensionInput(v *DescribeDimen return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -6545,13 +6335,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDomainConfigurationInput(v *Des return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainConfigurationName == nil { + if v.DomainConfigurationName == nil || len(*v.DomainConfigurationName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member domainConfigurationName must not be empty")} } if v.DomainConfigurationName != nil { - if len(*v.DomainConfigurationName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainConfigurationName must not be empty")} - } if err := encoder.SetURI("domainConfigurationName").String(*v.DomainConfigurationName); err != nil { return err } @@ -6719,13 +6506,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeIndexInput(v *DescribeIndexInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.IndexName == nil { + if v.IndexName == nil || len(*v.IndexName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member indexName must not be empty")} } if v.IndexName != nil { - if len(*v.IndexName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member indexName must not be empty")} - } if err := encoder.SetURI("indexName").String(*v.IndexName); err != nil { return err } @@ -6785,13 +6569,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeJobInput(v *DescribeJobInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -6855,25 +6636,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeJobExecutionInput(v *DescribeJo encoder.SetQuery("executionNumber").Long(*v.ExecutionNumber) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -6933,13 +6708,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeMitigationActionInput(v *Descri return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ActionName == nil { + if v.ActionName == nil || len(*v.ActionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member actionName must not be empty")} } if v.ActionName != nil { - if len(*v.ActionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member actionName must not be empty")} - } if err := encoder.SetURI("actionName").String(*v.ActionName); err != nil { return err } @@ -6999,13 +6771,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeProvisioningTemplateInput(v *De return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} - } if err := encoder.SetURI("templateName").String(*v.TemplateName); err != nil { return err } @@ -7065,13 +6834,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeProvisioningTemplateVersionInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} - } if err := encoder.SetURI("templateName").String(*v.TemplateName); err != nil { return err } @@ -7140,13 +6906,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeRoleAliasInput(v *DescribeRoleA return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RoleAlias == nil { + if v.RoleAlias == nil || len(*v.RoleAlias) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member roleAlias must not be empty")} } if v.RoleAlias != nil { - if len(*v.RoleAlias) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member roleAlias must not be empty")} - } if err := encoder.SetURI("roleAlias").String(*v.RoleAlias); err != nil { return err } @@ -7206,13 +6969,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeScheduledAuditInput(v *Describe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ScheduledAuditName == nil { + if v.ScheduledAuditName == nil || len(*v.ScheduledAuditName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member scheduledAuditName must not be empty")} } if v.ScheduledAuditName != nil { - if len(*v.ScheduledAuditName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member scheduledAuditName must not be empty")} - } if err := encoder.SetURI("scheduledAuditName").String(*v.ScheduledAuditName); err != nil { return err } @@ -7272,13 +7032,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeSecurityProfileInput(v *Describ return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SecurityProfileName == nil { + if v.SecurityProfileName == nil || len(*v.SecurityProfileName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} } if v.SecurityProfileName != nil { - if len(*v.SecurityProfileName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} - } if err := encoder.SetURI("securityProfileName").String(*v.SecurityProfileName); err != nil { return err } @@ -7338,13 +7095,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeStreamInput(v *DescribeStreamIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.StreamId == nil { + if v.StreamId == nil || len(*v.StreamId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member streamId must not be empty")} } if v.StreamId != nil { - if len(*v.StreamId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member streamId must not be empty")} - } if err := encoder.SetURI("streamId").String(*v.StreamId); err != nil { return err } @@ -7404,13 +7158,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeThingInput(v *DescribeThingInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -7470,13 +7221,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeThingGroupInput(v *DescribeThin return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingGroupName == nil { + if v.ThingGroupName == nil || len(*v.ThingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} } if v.ThingGroupName != nil { - if len(*v.ThingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} - } if err := encoder.SetURI("thingGroupName").String(*v.ThingGroupName); err != nil { return err } @@ -7536,13 +7284,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeThingRegistrationTaskInput(v *D return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TaskId == nil { + if v.TaskId == nil || len(*v.TaskId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} } if v.TaskId != nil { - if len(*v.TaskId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} - } if err := encoder.SetURI("taskId").String(*v.TaskId); err != nil { return err } @@ -7602,13 +7347,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeThingTypeInput(v *DescribeThing return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingTypeName == nil { + if v.ThingTypeName == nil || len(*v.ThingTypeName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingTypeName must not be empty")} } if v.ThingTypeName != nil { - if len(*v.ThingTypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingTypeName must not be empty")} - } if err := encoder.SetURI("thingTypeName").String(*v.ThingTypeName); err != nil { return err } @@ -7679,13 +7421,10 @@ func awsRestjson1_serializeOpHttpBindingsDetachPolicyInput(v *DetachPolicyInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} - } if err := encoder.SetURI("policyName").String(*v.PolicyName); err != nil { return err } @@ -7757,23 +7496,18 @@ func awsRestjson1_serializeOpHttpBindingsDetachPrincipalPolicyInput(v *DetachPri return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} - } if err := encoder.SetURI("policyName").String(*v.PolicyName); err != nil { return err } } - if v.Principal != nil { + if v.Principal != nil && len(*v.Principal) > 0 { locationName := "X-Amzn-Iot-Principal" - if len(*v.Principal) > 0 { - encoder.SetHeader(locationName).String(*v.Principal) - } + encoder.SetHeader(locationName).String(*v.Principal) } return nil @@ -7830,13 +7564,10 @@ func awsRestjson1_serializeOpHttpBindingsDetachSecurityProfileInput(v *DetachSec return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SecurityProfileName == nil { + if v.SecurityProfileName == nil || len(*v.SecurityProfileName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} } if v.SecurityProfileName != nil { - if len(*v.SecurityProfileName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} - } if err := encoder.SetURI("securityProfileName").String(*v.SecurityProfileName); err != nil { return err } @@ -7900,20 +7631,15 @@ func awsRestjson1_serializeOpHttpBindingsDetachThingPrincipalInput(v *DetachThin return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Principal != nil { + if v.Principal != nil && len(*v.Principal) > 0 { locationName := "X-Amzn-Principal" - if len(*v.Principal) > 0 { - encoder.SetHeader(locationName).String(*v.Principal) - } + encoder.SetHeader(locationName).String(*v.Principal) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -7973,13 +7699,10 @@ func awsRestjson1_serializeOpHttpBindingsDisableTopicRuleInput(v *DisableTopicRu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RuleName == nil { + if v.RuleName == nil || len(*v.RuleName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} } if v.RuleName != nil { - if len(*v.RuleName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} - } if err := encoder.SetURI("ruleName").String(*v.RuleName); err != nil { return err } @@ -8039,13 +7762,10 @@ func awsRestjson1_serializeOpHttpBindingsEnableTopicRuleInput(v *EnableTopicRule return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RuleName == nil { + if v.RuleName == nil || len(*v.RuleName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} } if v.RuleName != nil { - if len(*v.RuleName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} - } if err := encoder.SetURI("ruleName").String(*v.RuleName); err != nil { return err } @@ -8329,13 +8049,10 @@ func awsRestjson1_serializeOpHttpBindingsGetJobDocumentInput(v *GetJobDocumentIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -8445,13 +8162,10 @@ func awsRestjson1_serializeOpHttpBindingsGetOTAUpdateInput(v *GetOTAUpdateInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.OtaUpdateId == nil { + if v.OtaUpdateId == nil || len(*v.OtaUpdateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member otaUpdateId must not be empty")} } if v.OtaUpdateId != nil { - if len(*v.OtaUpdateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member otaUpdateId must not be empty")} - } if err := encoder.SetURI("otaUpdateId").String(*v.OtaUpdateId); err != nil { return err } @@ -8606,13 +8320,10 @@ func awsRestjson1_serializeOpHttpBindingsGetPolicyInput(v *GetPolicyInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} - } if err := encoder.SetURI("policyName").String(*v.PolicyName); err != nil { return err } @@ -8672,25 +8383,19 @@ func awsRestjson1_serializeOpHttpBindingsGetPolicyVersionInput(v *GetPolicyVersi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} - } if err := encoder.SetURI("policyName").String(*v.PolicyName); err != nil { return err } } - if v.PolicyVersionId == nil { + if v.PolicyVersionId == nil || len(*v.PolicyVersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyVersionId must not be empty")} } if v.PolicyVersionId != nil { - if len(*v.PolicyVersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyVersionId must not be empty")} - } if err := encoder.SetURI("policyVersionId").String(*v.PolicyVersionId); err != nil { return err } @@ -8888,13 +8593,10 @@ func awsRestjson1_serializeOpHttpBindingsGetTopicRuleInput(v *GetTopicRuleInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RuleName == nil { + if v.RuleName == nil || len(*v.RuleName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} } if v.RuleName != nil { - if len(*v.RuleName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} - } if err := encoder.SetURI("ruleName").String(*v.RuleName); err != nil { return err } @@ -8954,13 +8656,10 @@ func awsRestjson1_serializeOpHttpBindingsGetTopicRuleDestinationInput(v *GetTopi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Arn == nil { + if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member arn must not be empty")} } if v.Arn != nil { - if len(*v.Arn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member arn must not be empty")} - } if err := encoder.SetURI("arn").String(*v.Arn); err != nil { return err } @@ -9148,17 +8847,14 @@ func awsRestjson1_serializeOpHttpBindingsListAttachedPoliciesInput(v *ListAttach encoder.SetQuery("pageSize").Integer(*v.PageSize) } - if v.Recursive != nil { - encoder.SetQuery("recursive").Boolean(*v.Recursive) + if v.Recursive { + encoder.SetQuery("recursive").Boolean(v.Recursive) } - if v.Target == nil { + if v.Target == nil || len(*v.Target) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member target must not be empty")} } if v.Target != nil { - if len(*v.Target) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member target must not be empty")} - } if err := encoder.SetURI("target").String(*v.Target); err != nil { return err } @@ -9242,9 +8938,9 @@ func awsRestjson1_serializeOpDocumentListAuditFindingsInput(v *ListAuditFindings ok.Double(smithytime.FormatEpochSeconds(*v.EndTime)) } - if v.ListSuppressedFindings != nil { + if v.ListSuppressedFindings { ok := object.Key("listSuppressedFindings") - ok.Boolean(*v.ListSuppressedFindings) + ok.Boolean(v.ListSuppressedFindings) } if v.MaxResults != nil { @@ -9498,9 +9194,9 @@ func awsRestjson1_serializeOpDocumentListAuditSuppressionsInput(v *ListAuditSupp object := value.Object() defer object.Close() - if v.AscendingOrder != nil { + if v.AscendingOrder { ok := object.Key("ascendingOrder") - ok.Boolean(*v.AscendingOrder) + ok.Boolean(v.AscendingOrder) } if v.CheckName != nil { @@ -9657,8 +9353,8 @@ func awsRestjson1_serializeOpHttpBindingsListAuthorizersInput(v *ListAuthorizers return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AscendingOrder != nil { - encoder.SetQuery("isAscendingOrder").Boolean(*v.AscendingOrder) + if v.AscendingOrder { + encoder.SetQuery("isAscendingOrder").Boolean(v.AscendingOrder) } if v.Marker != nil { @@ -9793,8 +9489,8 @@ func awsRestjson1_serializeOpHttpBindingsListCACertificatesInput(v *ListCACertif return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AscendingOrder != nil { - encoder.SetQuery("isAscendingOrder").Boolean(*v.AscendingOrder) + if v.AscendingOrder { + encoder.SetQuery("isAscendingOrder").Boolean(v.AscendingOrder) } if v.Marker != nil { @@ -9859,8 +9555,8 @@ func awsRestjson1_serializeOpHttpBindingsListCertificatesInput(v *ListCertificat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AscendingOrder != nil { - encoder.SetQuery("isAscendingOrder").Boolean(*v.AscendingOrder) + if v.AscendingOrder { + encoder.SetQuery("isAscendingOrder").Boolean(v.AscendingOrder) } if v.Marker != nil { @@ -9925,17 +9621,14 @@ func awsRestjson1_serializeOpHttpBindingsListCertificatesByCAInput(v *ListCertif return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AscendingOrder != nil { - encoder.SetQuery("isAscendingOrder").Boolean(*v.AscendingOrder) + if v.AscendingOrder { + encoder.SetQuery("isAscendingOrder").Boolean(v.AscendingOrder) } - if v.CaCertificateId == nil { + if v.CaCertificateId == nil || len(*v.CaCertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member caCertificateId must not be empty")} } if v.CaCertificateId != nil { - if len(*v.CaCertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member caCertificateId must not be empty")} - } if err := encoder.SetURI("caCertificateId").String(*v.CaCertificateId); err != nil { return err } @@ -10193,13 +9886,10 @@ func awsRestjson1_serializeOpHttpBindingsListJobExecutionsForJobInput(v *ListJob return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -10287,13 +9977,10 @@ func awsRestjson1_serializeOpHttpBindingsListJobExecutionsForThingInput(v *ListJ encoder.SetQuery("status").String(string(v.Status)) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -10567,8 +10254,8 @@ func awsRestjson1_serializeOpHttpBindingsListOutgoingCertificatesInput(v *ListOu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AscendingOrder != nil { - encoder.SetQuery("isAscendingOrder").Boolean(*v.AscendingOrder) + if v.AscendingOrder { + encoder.SetQuery("isAscendingOrder").Boolean(v.AscendingOrder) } if v.Marker != nil { @@ -10633,8 +10320,8 @@ func awsRestjson1_serializeOpHttpBindingsListPoliciesInput(v *ListPoliciesInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AscendingOrder != nil { - encoder.SetQuery("isAscendingOrder").Boolean(*v.AscendingOrder) + if v.AscendingOrder { + encoder.SetQuery("isAscendingOrder").Boolean(v.AscendingOrder) } if v.Marker != nil { @@ -10699,8 +10386,8 @@ func awsRestjson1_serializeOpHttpBindingsListPolicyPrincipalsInput(v *ListPolicy return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AscendingOrder != nil { - encoder.SetQuery("isAscendingOrder").Boolean(*v.AscendingOrder) + if v.AscendingOrder { + encoder.SetQuery("isAscendingOrder").Boolean(v.AscendingOrder) } if v.Marker != nil { @@ -10711,11 +10398,9 @@ func awsRestjson1_serializeOpHttpBindingsListPolicyPrincipalsInput(v *ListPolicy encoder.SetQuery("pageSize").Integer(*v.PageSize) } - if v.PolicyName != nil { + if v.PolicyName != nil && len(*v.PolicyName) > 0 { locationName := "X-Amzn-Iot-Policy" - if len(*v.PolicyName) > 0 { - encoder.SetHeader(locationName).String(*v.PolicyName) - } + encoder.SetHeader(locationName).String(*v.PolicyName) } return nil @@ -10772,13 +10457,10 @@ func awsRestjson1_serializeOpHttpBindingsListPolicyVersionsInput(v *ListPolicyVe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} - } if err := encoder.SetURI("policyName").String(*v.PolicyName); err != nil { return err } @@ -10838,8 +10520,8 @@ func awsRestjson1_serializeOpHttpBindingsListPrincipalPoliciesInput(v *ListPrinc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AscendingOrder != nil { - encoder.SetQuery("isAscendingOrder").Boolean(*v.AscendingOrder) + if v.AscendingOrder { + encoder.SetQuery("isAscendingOrder").Boolean(v.AscendingOrder) } if v.Marker != nil { @@ -10850,11 +10532,9 @@ func awsRestjson1_serializeOpHttpBindingsListPrincipalPoliciesInput(v *ListPrinc encoder.SetQuery("pageSize").Integer(*v.PageSize) } - if v.Principal != nil { + if v.Principal != nil && len(*v.Principal) > 0 { locationName := "X-Amzn-Iot-Principal" - if len(*v.Principal) > 0 { - encoder.SetHeader(locationName).String(*v.Principal) - } + encoder.SetHeader(locationName).String(*v.Principal) } return nil @@ -10919,11 +10599,9 @@ func awsRestjson1_serializeOpHttpBindingsListPrincipalThingsInput(v *ListPrincip encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.Principal != nil { + if v.Principal != nil && len(*v.Principal) > 0 { locationName := "X-Amzn-Principal" - if len(*v.Principal) > 0 { - encoder.SetHeader(locationName).String(*v.Principal) - } + encoder.SetHeader(locationName).String(*v.Principal) } return nil @@ -11050,13 +10728,10 @@ func awsRestjson1_serializeOpHttpBindingsListProvisioningTemplateVersionsInput(v encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} - } if err := encoder.SetURI("templateName").String(*v.TemplateName); err != nil { return err } @@ -11116,8 +10791,8 @@ func awsRestjson1_serializeOpHttpBindingsListRoleAliasesInput(v *ListRoleAliases return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AscendingOrder != nil { - encoder.SetQuery("isAscendingOrder").Boolean(*v.AscendingOrder) + if v.AscendingOrder { + encoder.SetQuery("isAscendingOrder").Boolean(v.AscendingOrder) } if v.Marker != nil { @@ -11318,8 +10993,8 @@ func awsRestjson1_serializeOpHttpBindingsListSecurityProfilesForTargetInput(v *L encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.Recursive != nil { - encoder.SetQuery("recursive").Boolean(*v.Recursive) + if v.Recursive { + encoder.SetQuery("recursive").Boolean(v.Recursive) } if v.SecurityProfileTargetArn != nil { @@ -11380,8 +11055,8 @@ func awsRestjson1_serializeOpHttpBindingsListStreamsInput(v *ListStreamsInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AscendingOrder != nil { - encoder.SetQuery("isAscendingOrder").Boolean(*v.AscendingOrder) + if v.AscendingOrder { + encoder.SetQuery("isAscendingOrder").Boolean(v.AscendingOrder) } if v.MaxResults != nil { @@ -11516,13 +11191,10 @@ func awsRestjson1_serializeOpHttpBindingsListTargetsForPolicyInput(v *ListTarget encoder.SetQuery("pageSize").Integer(*v.PageSize) } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} - } if err := encoder.SetURI("policyName").String(*v.PolicyName); err != nil { return err } @@ -11590,13 +11262,10 @@ func awsRestjson1_serializeOpHttpBindingsListTargetsForSecurityProfileInput(v *L encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.SecurityProfileName == nil { + if v.SecurityProfileName == nil || len(*v.SecurityProfileName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} } if v.SecurityProfileName != nil { - if len(*v.SecurityProfileName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} - } if err := encoder.SetURI("securityProfileName").String(*v.SecurityProfileName); err != nil { return err } @@ -11738,13 +11407,10 @@ func awsRestjson1_serializeOpHttpBindingsListThingGroupsForThingInput(v *ListThi encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -11804,13 +11470,10 @@ func awsRestjson1_serializeOpHttpBindingsListThingPrincipalsInput(v *ListThingPr return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -11882,13 +11545,10 @@ func awsRestjson1_serializeOpHttpBindingsListThingRegistrationTaskReportsInput(v encoder.SetQuery("reportType").String(string(v.ReportType)) } - if v.TaskId == nil { + if v.TaskId == nil || len(*v.TaskId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} } if v.TaskId != nil { - if len(*v.TaskId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} - } if err := encoder.SetURI("taskId").String(*v.TaskId); err != nil { return err } @@ -12088,13 +11748,10 @@ func awsRestjson1_serializeOpHttpBindingsListThingsInBillingGroupInput(v *ListTh return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BillingGroupName == nil { + if v.BillingGroupName == nil || len(*v.BillingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member billingGroupName must not be empty")} } if v.BillingGroupName != nil { - if len(*v.BillingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member billingGroupName must not be empty")} - } if err := encoder.SetURI("billingGroupName").String(*v.BillingGroupName); err != nil { return err } @@ -12170,17 +11827,14 @@ func awsRestjson1_serializeOpHttpBindingsListThingsInThingGroupInput(v *ListThin encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.Recursive != nil { - encoder.SetQuery("recursive").Boolean(*v.Recursive) + if v.Recursive { + encoder.SetQuery("recursive").Boolean(v.Recursive) } - if v.ThingGroupName == nil { + if v.ThingGroupName == nil || len(*v.ThingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} } if v.ThingGroupName != nil { - if len(*v.ThingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} - } if err := encoder.SetURI("thingGroupName").String(*v.ThingGroupName); err != nil { return err } @@ -12593,12 +12247,12 @@ func awsRestjson1_serializeOpHttpBindingsRegisterCACertificateInput(v *RegisterC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AllowAutoRegistration != nil { - encoder.SetQuery("allowAutoRegistration").Boolean(*v.AllowAutoRegistration) + if v.AllowAutoRegistration { + encoder.SetQuery("allowAutoRegistration").Boolean(v.AllowAutoRegistration) } - if v.SetAsActive != nil { - encoder.SetQuery("setAsActive").Boolean(*v.SetAsActive) + if v.SetAsActive { + encoder.SetQuery("setAsActive").Boolean(v.SetAsActive) } return nil @@ -12946,13 +12600,10 @@ func awsRestjson1_serializeOpHttpBindingsRejectCertificateTransferInput(v *Rejec return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CertificateId == nil { + if v.CertificateId == nil || len(*v.CertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} } if v.CertificateId != nil { - if len(*v.CertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} - } if err := encoder.SetURI("certificateId").String(*v.CertificateId); err != nil { return err } @@ -13215,13 +12866,10 @@ func awsRestjson1_serializeOpHttpBindingsReplaceTopicRuleInput(v *ReplaceTopicRu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RuleName == nil { + if v.RuleName == nil || len(*v.RuleName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} } if v.RuleName != nil { - if len(*v.RuleName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ruleName must not be empty")} - } if err := encoder.SetURI("ruleName").String(*v.RuleName); err != nil { return err } @@ -13447,25 +13095,19 @@ func awsRestjson1_serializeOpHttpBindingsSetDefaultPolicyVersionInput(v *SetDefa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyName must not be empty")} - } if err := encoder.SetURI("policyName").String(*v.PolicyName); err != nil { return err } } - if v.PolicyVersionId == nil { + if v.PolicyVersionId == nil || len(*v.PolicyVersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member policyVersionId must not be empty")} } if v.PolicyVersionId != nil { - if len(*v.PolicyVersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member policyVersionId must not be empty")} - } if err := encoder.SetURI("policyVersionId").String(*v.PolicyVersionId); err != nil { return err } @@ -13689,9 +13331,9 @@ func awsRestjson1_serializeOpDocumentSetV2LoggingOptionsInput(v *SetV2LoggingOpt ok.String(string(v.DefaultLogLevel)) } - if v.DisableAllLogs != nil { + if v.DisableAllLogs { ok := object.Key("disableAllLogs") - ok.Boolean(*v.DisableAllLogs) + ok.Boolean(v.DisableAllLogs) } if v.RoleArn != nil { @@ -13764,13 +13406,10 @@ func awsRestjson1_serializeOpHttpBindingsStartAuditMitigationActionsTaskInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TaskId == nil { + if v.TaskId == nil || len(*v.TaskId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} } if v.TaskId != nil { - if len(*v.TaskId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} - } if err := encoder.SetURI("taskId").String(*v.TaskId); err != nil { return err } @@ -14019,13 +13658,10 @@ func awsRestjson1_serializeOpHttpBindingsStopThingRegistrationTaskInput(v *StopT return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TaskId == nil { + if v.TaskId == nil || len(*v.TaskId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} } if v.TaskId != nil { - if len(*v.TaskId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member taskId must not be empty")} - } if err := encoder.SetURI("taskId").String(*v.TaskId); err != nil { return err } @@ -14283,13 +13919,10 @@ func awsRestjson1_serializeOpHttpBindingsTestInvokeAuthorizerInput(v *TestInvoke return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthorizerName == nil { + if v.AuthorizerName == nil || len(*v.AuthorizerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerName must not be empty")} } if v.AuthorizerName != nil { - if len(*v.AuthorizerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerName must not be empty")} - } if err := encoder.SetURI("authorizerName").String(*v.AuthorizerName); err != nil { return err } @@ -14398,13 +14031,10 @@ func awsRestjson1_serializeOpHttpBindingsTransferCertificateInput(v *TransferCer return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CertificateId == nil { + if v.CertificateId == nil || len(*v.CertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} } if v.CertificateId != nil { - if len(*v.CertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} - } if err := encoder.SetURI("certificateId").String(*v.CertificateId); err != nil { return err } @@ -14753,13 +14383,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAuthorizerInput(v *UpdateAuthoriz return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthorizerName == nil { + if v.AuthorizerName == nil || len(*v.AuthorizerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerName must not be empty")} } if v.AuthorizerName != nil { - if len(*v.AuthorizerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member authorizerName must not be empty")} - } if err := encoder.SetURI("authorizerName").String(*v.AuthorizerName); err != nil { return err } @@ -14859,13 +14486,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateBillingGroupInput(v *UpdateBillin return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BillingGroupName == nil { + if v.BillingGroupName == nil || len(*v.BillingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member billingGroupName must not be empty")} } if v.BillingGroupName != nil { - if len(*v.BillingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member billingGroupName must not be empty")} - } if err := encoder.SetURI("billingGroupName").String(*v.BillingGroupName); err != nil { return err } @@ -14955,13 +14579,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateCACertificateInput(v *UpdateCACer return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CertificateId == nil { + if v.CertificateId == nil || len(*v.CertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} } if v.CertificateId != nil { - if len(*v.CertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} - } if err := encoder.SetURI("certificateId").String(*v.CertificateId); err != nil { return err } @@ -14989,9 +14610,9 @@ func awsRestjson1_serializeOpDocumentUpdateCACertificateInput(v *UpdateCACertifi } } - if v.RemoveAutoRegistration != nil { + if v.RemoveAutoRegistration { ok := object.Key("removeAutoRegistration") - ok.Boolean(*v.RemoveAutoRegistration) + ok.Boolean(v.RemoveAutoRegistration) } return nil @@ -15048,13 +14669,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateCertificateInput(v *UpdateCertifi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CertificateId == nil { + if v.CertificateId == nil || len(*v.CertificateId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} } if v.CertificateId != nil { - if len(*v.CertificateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member certificateId must not be empty")} - } if err := encoder.SetURI("certificateId").String(*v.CertificateId); err != nil { return err } @@ -15129,13 +14747,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDimensionInput(v *UpdateDimension return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -15220,13 +14835,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDomainConfigurationInput(v *Updat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainConfigurationName == nil { + if v.DomainConfigurationName == nil || len(*v.DomainConfigurationName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member domainConfigurationName must not be empty")} } if v.DomainConfigurationName != nil { - if len(*v.DomainConfigurationName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member domainConfigurationName must not be empty")} - } if err := encoder.SetURI("domainConfigurationName").String(*v.DomainConfigurationName); err != nil { return err } @@ -15251,9 +14863,9 @@ func awsRestjson1_serializeOpDocumentUpdateDomainConfigurationInput(v *UpdateDom ok.String(string(v.DomainConfigurationStatus)) } - if v.RemoveAuthorizerConfig != nil { + if v.RemoveAuthorizerConfig { ok := object.Key("removeAuthorizerConfig") - ok.Boolean(*v.RemoveAuthorizerConfig) + ok.Boolean(v.RemoveAuthorizerConfig) } return nil @@ -15321,13 +14933,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDynamicThingGroupInput(v *UpdateD return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingGroupName == nil { + if v.ThingGroupName == nil || len(*v.ThingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} } if v.ThingGroupName != nil { - if len(*v.ThingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} - } if err := encoder.SetURI("thingGroupName").String(*v.ThingGroupName); err != nil { return err } @@ -15589,13 +15198,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateJobInput(v *UpdateJobInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -15710,13 +15316,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateMitigationActionInput(v *UpdateMi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ActionName == nil { + if v.ActionName == nil || len(*v.ActionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member actionName must not be empty")} } if v.ActionName != nil { - if len(*v.ActionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member actionName must not be empty")} - } if err := encoder.SetURI("actionName").String(*v.ActionName); err != nil { return err } @@ -15806,13 +15409,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateProvisioningTemplateInput(v *Upda return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member templateName must not be empty")} - } if err := encoder.SetURI("templateName").String(*v.TemplateName); err != nil { return err } @@ -15835,9 +15435,9 @@ func awsRestjson1_serializeOpDocumentUpdateProvisioningTemplateInput(v *UpdatePr ok.String(*v.Description) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.PreProvisioningHook != nil { @@ -15922,13 +15522,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRoleAliasInput(v *UpdateRoleAlias return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RoleAlias == nil { + if v.RoleAlias == nil || len(*v.RoleAlias) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member roleAlias must not be empty")} } if v.RoleAlias != nil { - if len(*v.RoleAlias) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member roleAlias must not be empty")} - } if err := encoder.SetURI("roleAlias").String(*v.RoleAlias); err != nil { return err } @@ -16016,13 +15613,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateScheduledAuditInput(v *UpdateSche return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ScheduledAuditName == nil { + if v.ScheduledAuditName == nil || len(*v.ScheduledAuditName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member scheduledAuditName must not be empty")} } if v.ScheduledAuditName != nil { - if len(*v.ScheduledAuditName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member scheduledAuditName must not be empty")} - } if err := encoder.SetURI("scheduledAuditName").String(*v.ScheduledAuditName); err != nil { return err } @@ -16126,13 +15720,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateSecurityProfileInput(v *UpdateSec encoder.SetQuery("expectedVersion").Long(*v.ExpectedVersion) } - if v.SecurityProfileName == nil { + if v.SecurityProfileName == nil || len(*v.SecurityProfileName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} } if v.SecurityProfileName != nil { - if len(*v.SecurityProfileName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member securityProfileName must not be empty")} - } if err := encoder.SetURI("securityProfileName").String(*v.SecurityProfileName); err != nil { return err } @@ -16173,19 +15764,19 @@ func awsRestjson1_serializeOpDocumentUpdateSecurityProfileInput(v *UpdateSecurit } } - if v.DeleteAdditionalMetricsToRetain != nil { + if v.DeleteAdditionalMetricsToRetain { ok := object.Key("deleteAdditionalMetricsToRetain") - ok.Boolean(*v.DeleteAdditionalMetricsToRetain) + ok.Boolean(v.DeleteAdditionalMetricsToRetain) } - if v.DeleteAlertTargets != nil { + if v.DeleteAlertTargets { ok := object.Key("deleteAlertTargets") - ok.Boolean(*v.DeleteAlertTargets) + ok.Boolean(v.DeleteAlertTargets) } - if v.DeleteBehaviors != nil { + if v.DeleteBehaviors { ok := object.Key("deleteBehaviors") - ok.Boolean(*v.DeleteBehaviors) + ok.Boolean(v.DeleteBehaviors) } if v.SecurityProfileDescription != nil { @@ -16258,13 +15849,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateStreamInput(v *UpdateStreamInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.StreamId == nil { + if v.StreamId == nil || len(*v.StreamId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member streamId must not be empty")} } if v.StreamId != nil { - if len(*v.StreamId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member streamId must not be empty")} - } if err := encoder.SetURI("streamId").String(*v.StreamId); err != nil { return err } @@ -16359,13 +15947,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateThingInput(v *UpdateThingInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -16390,9 +15975,9 @@ func awsRestjson1_serializeOpDocumentUpdateThingInput(v *UpdateThingInput, value ok.Long(*v.ExpectedVersion) } - if v.RemoveThingType != nil { + if v.RemoveThingType { ok := object.Key("removeThingType") - ok.Boolean(*v.RemoveThingType) + ok.Boolean(v.RemoveThingType) } if v.ThingTypeName != nil { @@ -16465,13 +16050,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateThingGroupInput(v *UpdateThingGro return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingGroupName == nil { + if v.ThingGroupName == nil || len(*v.ThingGroupName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} } if v.ThingGroupName != nil { - if len(*v.ThingGroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingGroupName must not be empty")} - } if err := encoder.SetURI("thingGroupName").String(*v.ThingGroupName); err != nil { return err } @@ -16564,9 +16146,9 @@ func awsRestjson1_serializeOpDocumentUpdateThingGroupsForThingInput(v *UpdateThi object := value.Object() defer object.Close() - if v.OverrideDynamicGroups != nil { + if v.OverrideDynamicGroups { ok := object.Key("overrideDynamicGroups") - ok.Boolean(*v.OverrideDynamicGroups) + ok.Boolean(v.OverrideDynamicGroups) } if v.ThingGroupsToAdd != nil { @@ -16785,17 +16367,13 @@ func awsRestjson1_serializeDocumentAbortCriteria(v *types.AbortCriteria, value s return nil } -func awsRestjson1_serializeDocumentAbortCriteriaList(v []*types.AbortCriteria, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAbortCriteriaList(v []types.AbortCriteria, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAbortCriteria(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAbortCriteria(&v[i], av); err != nil { return err } } @@ -16949,66 +16527,50 @@ func awsRestjson1_serializeDocumentAction(v *types.Action, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentActionList(v []*types.Action, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentActionList(v []types.Action, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAction(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAction(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentAdditionalMetricsToRetainList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAdditionalMetricsToRetainList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentAdditionalMetricsToRetainV2List(v []*types.MetricToRetain, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAdditionalMetricsToRetainV2List(v []types.MetricToRetain, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMetricToRetain(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMetricToRetain(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentAdditionalParameterMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAdditionalParameterMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -17017,9 +16579,9 @@ func awsRestjson1_serializeDocumentAddThingsToThingGroupParams(v *types.AddThing object := value.Object() defer object.Close() - if v.OverrideDynamicGroups != nil { + if v.OverrideDynamicGroups { ok := object.Key("overrideDynamicGroups") - ok.Boolean(*v.OverrideDynamicGroups) + ok.Boolean(v.OverrideDynamicGroups) } if v.ThingGroupNames != nil { @@ -17049,17 +16611,14 @@ func awsRestjson1_serializeDocumentAlertTarget(v *types.AlertTarget, value smith return nil } -func awsRestjson1_serializeDocumentAlertTargets(v map[string]*types.AlertTarget, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAlertTargets(v map[string]types.AlertTarget, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentAlertTarget(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentAlertTarget(&mapVar, om); err != nil { return err } } @@ -17109,17 +16668,13 @@ func awsRestjson1_serializeDocumentAssetPropertyValue(v *types.AssetPropertyValu return nil } -func awsRestjson1_serializeDocumentAssetPropertyValueList(v []*types.AssetPropertyValue, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAssetPropertyValueList(v []types.AssetPropertyValue, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAssetPropertyValue(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAssetPropertyValue(&v[i], av); err != nil { return err } } @@ -17164,40 +16719,32 @@ func awsRestjson1_serializeDocumentAttributePayload(v *types.AttributePayload, v } } - if v.Merge != nil { + if v.Merge { ok := object.Key("merge") - ok.Boolean(*v.Merge) + ok.Boolean(v.Merge) } return nil } -func awsRestjson1_serializeDocumentAttributes(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAttributes(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentAttributesMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAttributesMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -17206,39 +16753,35 @@ func awsRestjson1_serializeDocumentAuditCheckConfiguration(v *types.AuditCheckCo object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } return nil } -func awsRestjson1_serializeDocumentAuditCheckConfigurations(v map[string]*types.AuditCheckConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAuditCheckConfigurations(v map[string]types.AuditCheckConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentAuditCheckConfiguration(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentAuditCheckConfiguration(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentAuditCheckToActionsMapping(v map[string][]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAuditCheckToActionsMapping(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsRestjson1_serializeDocumentMitigationActionNameList(v[key], om); err != nil { @@ -17248,14 +16791,13 @@ func awsRestjson1_serializeDocumentAuditCheckToActionsMapping(v map[string][]*st return nil } -func awsRestjson1_serializeDocumentAuditCheckToReasonCodeFilter(v map[string][]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAuditCheckToReasonCodeFilter(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsRestjson1_serializeDocumentReasonForNonComplianceCodes(v[key], om); err != nil { @@ -17295,9 +16837,9 @@ func awsRestjson1_serializeDocumentAuditNotificationTarget(v *types.AuditNotific object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.RoleArn != nil { @@ -17313,17 +16855,14 @@ func awsRestjson1_serializeDocumentAuditNotificationTarget(v *types.AuditNotific return nil } -func awsRestjson1_serializeDocumentAuditNotificationTargetConfigurations(v map[string]*types.AuditNotificationTarget, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAuditNotificationTargetConfigurations(v map[string]types.AuditNotificationTarget, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentAuditNotificationTarget(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentAuditNotificationTarget(&mapVar, om); err != nil { return err } } @@ -17349,17 +16888,13 @@ func awsRestjson1_serializeDocumentAuthInfo(v *types.AuthInfo, value smithyjson. return nil } -func awsRestjson1_serializeDocumentAuthInfos(v []*types.AuthInfo, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAuthInfos(v []types.AuthInfo, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAuthInfo(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAuthInfo(&v[i], av); err != nil { return err } } @@ -17370,9 +16905,9 @@ func awsRestjson1_serializeDocumentAuthorizerConfig(v *types.AuthorizerConfig, v object := value.Object() defer object.Close() - if v.AllowAuthorizerOverride != nil { + if v.AllowAuthorizerOverride { ok := object.Key("allowAuthorizerOverride") - ok.Boolean(*v.AllowAuthorizerOverride) + ok.Boolean(v.AllowAuthorizerOverride) } if v.DefaultAuthorizerName != nil { @@ -17424,17 +16959,13 @@ func awsRestjson1_serializeDocumentAwsJobAbortCriteria(v *types.AwsJobAbortCrite return nil } -func awsRestjson1_serializeDocumentAwsJobAbortCriteriaList(v []*types.AwsJobAbortCriteria, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsJobAbortCriteriaList(v []types.AwsJobAbortCriteria, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsJobAbortCriteria(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsJobAbortCriteria(&v[i], av); err != nil { return err } } @@ -17469,9 +17000,9 @@ func awsRestjson1_serializeDocumentAwsJobExponentialRolloutRate(v *types.AwsJobE ok.Integer(*v.BaseRatePerMinute) } - if v.IncrementFactor != nil { + if v.IncrementFactor != 0 { ok := object.Key("incrementFactor") - ok.Double(*v.IncrementFactor) + ok.Double(v.IncrementFactor) } if v.RateIncreaseCriteria != nil { @@ -17597,17 +17128,13 @@ func awsRestjson1_serializeDocumentBehaviorCriteria(v *types.BehaviorCriteria, v return nil } -func awsRestjson1_serializeDocumentBehaviors(v []*types.Behavior, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBehaviors(v []types.Behavior, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentBehavior(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentBehavior(&v[i], av); err != nil { return err } } @@ -17626,17 +17153,13 @@ func awsRestjson1_serializeDocumentBillingGroupProperties(v *types.BillingGroupP return nil } -func awsRestjson1_serializeDocumentCidrs(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCidrs(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -17781,9 +17304,9 @@ func awsRestjson1_serializeDocumentConfiguration(v *types.Configuration, value s object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } return nil @@ -17834,32 +17357,24 @@ func awsRestjson1_serializeDocumentDestination(v *types.Destination, value smith return nil } -func awsRestjson1_serializeDocumentDetailsMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDetailsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentDimensionStringValues(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDimensionStringValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -17989,17 +17504,14 @@ func awsRestjson1_serializeDocumentEnableIoTLoggingParams(v *types.EnableIoTLogg return nil } -func awsRestjson1_serializeDocumentEventConfigurations(v map[string]*types.Configuration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEventConfigurations(v map[string]types.Configuration, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentConfiguration(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentConfiguration(&mapVar, om); err != nil { return err } } @@ -18015,9 +17527,9 @@ func awsRestjson1_serializeDocumentExponentialRolloutRate(v *types.ExponentialRo ok.Integer(*v.BaseRatePerMinute) } - if v.IncrementFactor != nil { + if v.IncrementFactor != 0 { ok := object.Key("incrementFactor") - ok.Double(*v.IncrementFactor) + ok.Double(v.IncrementFactor) } if v.RateIncreaseCriteria != nil { @@ -18047,17 +17559,13 @@ func awsRestjson1_serializeDocumentField(v *types.Field, value smithyjson.Value) return nil } -func awsRestjson1_serializeDocumentFields(v []*types.Field, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFields(v []types.Field, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentField(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentField(&v[i], av); err != nil { return err } } @@ -18085,17 +17593,13 @@ func awsRestjson1_serializeDocumentFileLocation(v *types.FileLocation, value smi return nil } -func awsRestjson1_serializeDocumentFindingIds(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFindingIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -18122,17 +17626,13 @@ func awsRestjson1_serializeDocumentFirehoseAction(v *types.FirehoseAction, value return nil } -func awsRestjson1_serializeDocumentHeaderList(v []*types.HttpActionHeader, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHeaderList(v []types.HttpActionHeader, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentHttpActionHeader(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentHttpActionHeader(&v[i], av); err != nil { return err } } @@ -18220,17 +17720,13 @@ func awsRestjson1_serializeDocumentHttpContext(v *types.HttpContext, value smith return nil } -func awsRestjson1_serializeDocumentHttpHeaders(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHttpHeaders(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -18329,17 +17825,13 @@ func awsRestjson1_serializeDocumentJobExecutionsRolloutConfig(v *types.JobExecut return nil } -func awsRestjson1_serializeDocumentJobTargets(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentJobTargets(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -18474,17 +17966,13 @@ func awsRestjson1_serializeDocumentMetricValue(v *types.MetricValue, value smith return nil } -func awsRestjson1_serializeDocumentMitigationActionNameList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMitigationActionNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -18598,64 +18086,48 @@ func awsRestjson1_serializeDocumentOTAUpdateFile(v *types.OTAUpdateFile, value s return nil } -func awsRestjson1_serializeDocumentOTAUpdateFiles(v []*types.OTAUpdateFile, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentOTAUpdateFiles(v []types.OTAUpdateFile, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentOTAUpdateFile(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentOTAUpdateFile(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentParameters(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentPercentList(v []*float64, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPercentList(v []float64, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Double(*v[i]) + av.Double(v[i]) } return nil } -func awsRestjson1_serializeDocumentPolicyNames(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPolicyNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -18677,17 +18149,13 @@ func awsRestjson1_serializeDocumentPolicyVersionIdentifier(v *types.PolicyVersio return nil } -func awsRestjson1_serializeDocumentPorts(v []*int32, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPorts(v []int32, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Integer(*v[i]) + av.Integer(v[i]) } return nil } @@ -18737,17 +18205,13 @@ func awsRestjson1_serializeDocumentProvisioningHook(v *types.ProvisioningHook, v return nil } -func awsRestjson1_serializeDocumentPublicKeyMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPublicKeyMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -18798,17 +18262,13 @@ func awsRestjson1_serializeDocumentPutAssetPropertyValueEntry(v *types.PutAssetP return nil } -func awsRestjson1_serializeDocumentPutAssetPropertyValueEntryList(v []*types.PutAssetPropertyValueEntry, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPutAssetPropertyValueEntryList(v []types.PutAssetPropertyValueEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentPutAssetPropertyValueEntry(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentPutAssetPropertyValueEntry(&v[i], av); err != nil { return err } } @@ -18844,17 +18304,13 @@ func awsRestjson1_serializeDocumentRateIncreaseCriteria(v *types.RateIncreaseCri return nil } -func awsRestjson1_serializeDocumentReasonForNonComplianceCodes(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentReasonForNonComplianceCodes(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -18959,17 +18415,13 @@ func awsRestjson1_serializeDocumentResourceIdentifier(v *types.ResourceIdentifie return nil } -func awsRestjson1_serializeDocumentResources(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResources(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -19057,32 +18509,24 @@ func awsRestjson1_serializeDocumentSalesforceAction(v *types.SalesforceAction, v return nil } -func awsRestjson1_serializeDocumentSearchableAttributes(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSearchableAttributes(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentServerCertificateArns(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentServerCertificateArns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -19271,17 +18715,13 @@ func awsRestjson1_serializeDocumentStreamFile(v *types.StreamFile, value smithyj return nil } -func awsRestjson1_serializeDocumentStreamFiles(v []*types.StreamFile, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStreamFiles(v []types.StreamFile, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentStreamFile(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentStreamFile(&v[i], av); err != nil { return err } } @@ -19305,64 +18745,48 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTargetAuditCheckNames(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTargetAuditCheckNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTargets(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTargets(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -19393,32 +18817,24 @@ func awsRestjson1_serializeDocumentThingGroupIndexingConfiguration(v *types.Thin return nil } -func awsRestjson1_serializeDocumentThingGroupList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentThingGroupList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentThingGroupNames(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentThingGroupNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -19557,17 +18973,13 @@ func awsRestjson1_serializeDocumentTimestreamDimension(v *types.TimestreamDimens return nil } -func awsRestjson1_serializeDocumentTimestreamDimensionList(v []*types.TimestreamDimension, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTimestreamDimensionList(v []types.TimestreamDimension, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTimestreamDimension(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTimestreamDimension(&v[i], av); err != nil { return err } } diff --git a/service/iot/types/types.go b/service/iot/types/types.go index 21d275fd4d8..928745504ed 100644 --- a/service/iot/types/types.go +++ b/service/iot/types/types.go @@ -12,7 +12,7 @@ type AbortConfig struct { // The list of criteria that determine when and how to abort the job. // // This member is required. - CriteriaList []*AbortCriteria + CriteriaList []AbortCriteria } // The criteria that determine when and how a job abort takes place. @@ -147,11 +147,11 @@ type AddThingsToThingGroupParams struct { // add a thing to more than one group in the same hierarchy. // // This member is required. - ThingGroupNames []*string + ThingGroupNames []string // Specifies if this mitigation action can move the things that triggered the // mitigation action even if they are part of one or more dynamic things groups. - OverrideDynamicGroups *bool + OverrideDynamicGroups bool } // A structure containing the alert target ARN and the role ARN. @@ -173,7 +173,7 @@ type AlertTarget struct { type Allowed struct { // A list of policies that allowed the authentication. - Policies []*Policy + Policies []Policy } // An asset property timestamp entry containing the following information. @@ -232,20 +232,20 @@ type AttributePayload struct { // A JSON string containing up to three key-value pair in JSON format. For example: // {\"attributes\":{\"string1\":\"string2\"}} - Attributes map[string]*string + Attributes map[string]string // Specifies whether the list of attributes provided in the AttributePayload is // merged with the attributes stored in the registry, instead of overwriting them. // To remove an attribute, call UpdateThing with an empty attribute value. The // merge attribute is only valid when calling UpdateThing or UpdateThingGroup. - Merge *bool + Merge bool } // Which audit checks are enabled and disabled for this account. type AuditCheckConfiguration struct { // True if this audit check is enabled for this account. - Enabled *bool + Enabled bool } // Information about the audit check. @@ -304,7 +304,7 @@ type AuditFinding struct { ReasonForNonComplianceCode *string // The list of related resources. - RelatedResources []*RelatedResource + RelatedResources []RelatedResource // The severity of the result (finding). Severity AuditFindingSeverity @@ -371,7 +371,7 @@ type AuditMitigationActionsTaskTarget struct { // Specifies a filter in the form of an audit check and set of reason codes that // identify the findings from the audit to which the audit mitigation actions task // apply. - AuditCheckToReasonCodeFilter map[string][]*string + AuditCheckToReasonCodeFilter map[string][]string // If the task will apply a mitigation action to findings from a specific audit, // this value uniquely identifies the audit. @@ -379,14 +379,14 @@ type AuditMitigationActionsTaskTarget struct { // If the task will apply a mitigation action to one or more listed findings, this // value uniquely identifies those findings. - FindingIds []*string + FindingIds []string } // Information about the targets to which audit notifications are sent. type AuditNotificationTarget struct { // True if notifications to the target are enabled. - Enabled *bool + Enabled bool // The ARN of the role that grants permission to send notifications to the target. RoleArn *string @@ -443,7 +443,7 @@ type AuthInfo struct { // specified action. // // This member is required. - Resources []*string + Resources []string // The type of action for which the principal is being authorized. ActionType ActionType @@ -454,7 +454,7 @@ type AuthorizerConfig struct { // A Boolean that specifies whether the domain configuration's authorization // service can be overridden. - AllowAuthorizerOverride *bool + AllowAuthorizerOverride bool // The name of the authorization service for a domain configuration. DefaultAuthorizerName *string @@ -490,7 +490,7 @@ type AuthorizerDescription struct { // The public keys used to validate the token signature returned by your custom // authentication service. - TokenSigningPublicKeys map[string]*string + TokenSigningPublicKeys map[string]string } // The authorizer summary. @@ -521,7 +521,7 @@ type AuthResult struct { Denied *Denied // Contains any missing context values found while evaluating policy. - MissingContextValues []*string + MissingContextValues []string } // The criteria that determine when and how a job abort takes place. @@ -530,7 +530,7 @@ type AwsJobAbortConfig struct { // The list of criteria that determine when and how to abort the job. // // This member is required. - AbortCriteriaList []*AwsJobAbortCriteria + AbortCriteriaList []AwsJobAbortCriteria } // The criteria that determine when and how a job abort takes place. @@ -585,7 +585,7 @@ type AwsJobExponentialRolloutRate struct { // multiplied by this factor. // // This member is required. - IncrementFactor *float64 + IncrementFactor float64 // The criteria to initiate the increase in rate of rollout for a job. AWS IoT // supports up to one digit after the decimal (for example, 1.5, but not 1.55). @@ -938,7 +938,7 @@ type CodeSigningSignature struct { type Configuration struct { // True to enable the configuration. - Enabled *bool + Enabled bool } // Describes a custom method used to code sign a file. @@ -1143,7 +1143,7 @@ type ErrorInfo struct { type ExplicitDeny struct { // The policies that denied the authorization. - Policies []*Policy + Policies []Policy } // Allows you to create an exponential rate of rollout for a job. @@ -1160,7 +1160,7 @@ type ExponentialRolloutRate struct { // supports up to one digit after the decimal (for example, 1.5, but not 1.55). // // This member is required. - IncrementFactor *float64 + IncrementFactor float64 // The criteria to initiate the increase in rate of rollout for a job. // @@ -1239,7 +1239,7 @@ type HttpAction struct { ConfirmationUrl *string // The HTTP headers to send with the message data. - Headers []*HttpActionHeader + Headers []HttpActionHeader } // The HTTP action header. @@ -1269,7 +1269,7 @@ type HttpAuthorization struct { type HttpContext struct { // The header keys and values in an HTTP authorization request. - Headers map[string]*string + Headers map[string]string // The query string keys and values in an HTTP authorization request. QueryString *string @@ -1306,7 +1306,7 @@ type ImplicitDeny struct { // Policies that don't contain a matching allow or deny statement for the specified // action on the specified resource. - Policies []*Policy + Policies []Policy } // Sends message data to an AWS IoT Analytics channel. @@ -1350,7 +1350,7 @@ type IotSiteWiseAction struct { // A list of asset property value entries. // // This member is required. - PutAssetPropertyValueEntries []*PutAssetPropertyValueEntry + PutAssetPropertyValueEntries []PutAssetPropertyValueEntry // The ARN of the role that grants AWS IoT permission to send an asset property // value to AWS IoTSiteWise. ("Action": "iotsitewise:BatchPutAssetPropertyValue"). @@ -1423,7 +1423,7 @@ type Job struct { TargetSelection TargetSelection // A list of IoT things and thing groups to which the job should be sent. - Targets []*string + Targets []string // Specifies the amount of time each device has to finish its execution of the job. // A timer is started when the job execution status is set to IN_PROGRESS. If the @@ -1476,7 +1476,7 @@ type JobExecution struct { // The version of the job execution. Job execution versions are incremented each // time they are updated by a device. - VersionNumber *int64 + VersionNumber int64 } // Allows you to create a staged rollout of a job. @@ -1495,7 +1495,7 @@ type JobExecutionsRolloutConfig struct { type JobExecutionStatusDetails struct { // The job execution status. - DetailsMap map[string]*string + DetailsMap map[string]string } // The job execution summary. @@ -1571,7 +1571,7 @@ type JobProcessDetails struct { // The target devices to which the job execution is being rolled out. This value // will be null after the job execution has finished rolling out to all the target // devices. - ProcessingTargets []*string + ProcessingTargets []string } // The job summary. @@ -1710,7 +1710,7 @@ type MetricValue struct { // If the comparisonOperator calls for a set of CIDRs, use this to specify that set // to be compared with the metric. - Cidrs []*string + Cidrs []string // If the comparisonOperator calls for a numeric value, use this to specify that // numeric value to be compared with the metric. @@ -1718,7 +1718,7 @@ type MetricValue struct { // If the comparisonOperator calls for a set of ports, use this to specify that set // to be compared with the metric. - Ports []*int32 + Ports []int32 } // Describes which changes should be applied as part of a mitigation action. @@ -1800,7 +1800,7 @@ type MqttContext struct { type NonCompliantResource struct { // Other information about the noncompliant resource. - AdditionalInfo map[string]*string + AdditionalInfo map[string]string // Information that identifies the noncompliant resource. ResourceIdentifier *ResourceIdentifier @@ -1813,7 +1813,7 @@ type NonCompliantResource struct { type OTAUpdateFile struct { // A list of name/attribute pairs. - Attributes map[string]*string + Attributes map[string]string // The code signing method of the file. CodeSigning *CodeSigning @@ -1832,7 +1832,7 @@ type OTAUpdateFile struct { type OTAUpdateInfo struct { // A collection of name/value pairs - AdditionalParameters map[string]*string + AdditionalParameters map[string]string // The AWS IoT job ARN associated with the OTA update. AwsIotJobArn *string @@ -1863,7 +1863,7 @@ type OTAUpdateInfo struct { OtaUpdateArn *string // A list of files associated with the OTA update. - OtaUpdateFiles []*OTAUpdateFile + OtaUpdateFiles []OTAUpdateFile // The OTA update ID. OtaUpdateId *string @@ -1885,7 +1885,7 @@ type OTAUpdateInfo struct { TargetSelection TargetSelection // The targets of the OTA update. - Targets []*string + Targets []string } // An OTA update summary. @@ -1927,10 +1927,10 @@ type OutgoingCertificate struct { type PercentPair struct { // The percentile. - Percent *float64 + Percent float64 // The value of the percentile. - Value *float64 + Value float64 } // Describes an AWS IoT policy. @@ -1950,7 +1950,7 @@ type PolicyVersion struct { CreateDate *time.Time // Specifies whether the policy version is the default. - IsDefaultVersion *bool + IsDefaultVersion bool // The policy version ID. VersionId *string @@ -2004,7 +2004,7 @@ type ProvisioningTemplateSummary struct { Description *string // True if the fleet provision template is enabled, otherwise false. - Enabled *bool + Enabled bool // The date when the fleet provisioning template summary was last modified. LastModifiedDate *time.Time @@ -2024,7 +2024,7 @@ type ProvisioningTemplateVersionSummary struct { // True if the fleet provisioning template version is the default version, // otherwise false. - IsDefaultVersion *bool + IsDefaultVersion bool // The ID of the fleet privisioning template version. VersionId *int32 @@ -2048,7 +2048,7 @@ type PutAssetPropertyValueEntry struct { // value (TQV) information. // // This member is required. - PropertyValues []*AssetPropertyValue + PropertyValues []AssetPropertyValue // The ID of the AWS IoT SiteWise asset. You must specify either a propertyAlias or // both an aliasId and a propertyId. Accepts substitution templates. @@ -2106,7 +2106,7 @@ type RegistrationConfig struct { type RelatedResource struct { // Other information about the resource. - AdditionalInfo map[string]*string + AdditionalInfo map[string]string // Information that identifies the resource. ResourceIdentifier *ResourceIdentifier @@ -2435,28 +2435,28 @@ type StatisticalThreshold struct { type Statistics struct { // The average of the aggregated field values. - Average *float64 + Average float64 // The count of things that match the query. - Count *int32 + Count int32 // The maximum aggregated field value. - Maximum *float64 + Maximum float64 // The minimum aggregated field value. - Minimum *float64 + Minimum float64 // The standard deviation of the aggregated field values. - StdDeviation *float64 + StdDeviation float64 // The sum of the aggregated field values. - Sum *float64 + Sum float64 // The sum of the squares of the aggregated field values. - SumOfSquares *float64 + SumOfSquares float64 // The variance of the aggregated field values. - Variance *float64 + Variance float64 } // Starts execution of a Step Functions state machine. @@ -2509,7 +2509,7 @@ type StreamInfo struct { Description *string // The files to stream. - Files []*StreamFile + Files []StreamFile // The date when the stream was last updated. LastUpdatedAt *time.Time @@ -2609,7 +2609,7 @@ type TaskStatisticsForAuditCheck struct { type ThingAttribute struct { // A list of thing attributes which are name-value pairs. - Attributes map[string]*string + Attributes map[string]string // The thing ARN. ThingArn *string @@ -2621,7 +2621,7 @@ type ThingAttribute struct { ThingTypeName *string // The version of the thing record in the registry. - Version *int64 + Version int64 } // The connectivity status of the thing. @@ -2629,7 +2629,7 @@ type ThingConnectivity struct { // True if the thing is connected to the AWS IoT service; false if it is not // connected. - Connected *bool + Connected bool // The epoch time (in milliseconds) when the thing last connected or disconnected. // If the thing has been disconnected for more than a few weeks, the time value @@ -2641,7 +2641,7 @@ type ThingConnectivity struct { type ThingDocument struct { // The attributes. - Attributes map[string]*string + Attributes map[string]string // Indicates whether the thing is connected to the AWS IoT service. Connectivity *ThingConnectivity @@ -2650,7 +2650,7 @@ type ThingDocument struct { Shadow *string // Thing group names. - ThingGroupNames []*string + ThingGroupNames []string // The thing ID. ThingId *string @@ -2666,10 +2666,10 @@ type ThingDocument struct { type ThingGroupDocument struct { // The thing group attributes. - Attributes map[string]*string + Attributes map[string]string // Parent group names. - ParentGroupNames []*string + ParentGroupNames []string // The thing group description. ThingGroupDescription *string @@ -2692,11 +2692,11 @@ type ThingGroupIndexingConfiguration struct { // A list of thing group fields to index. This list cannot contain any managed // fields. Use the GetIndexingConfiguration API to get a list of managed fields. // Contains custom field names and their data type. - CustomFields []*Field + CustomFields []Field // Contains fields that are indexed and whose types are already known by the Fleet // Indexing service. - ManagedFields []*Field + ManagedFields []Field } // Thing group metadata. @@ -2709,7 +2709,7 @@ type ThingGroupMetadata struct { ParentGroupName *string // The root parent thing group. - RootToParentThingGroups []*GroupNameAndArn + RootToParentThingGroups []GroupNameAndArn } // Thing group properties. @@ -2741,11 +2741,11 @@ type ThingIndexingConfiguration struct { ThingIndexingMode ThingIndexingMode // Contains custom field names and their data type. - CustomFields []*Field + CustomFields []Field // Contains fields that are indexed and whose types are already known by the Fleet // Indexing service. - ManagedFields []*Field + ManagedFields []Field // Thing connectivity indexing mode. Valid values are: // @@ -2786,7 +2786,7 @@ type ThingTypeMetadata struct { // Whether the thing type is deprecated. If true, no new things could be associated // with this type. - Deprecated *bool + Deprecated bool // The date and time when the thing type was deprecated. DeprecationDate *time.Time @@ -2797,7 +2797,7 @@ type ThingTypeMetadata struct { type ThingTypeProperties struct { // A list of searchable thing attribute names. - SearchableAttributes []*string + SearchableAttributes []string // The description of the thing type. ThingTypeDescription *string @@ -2832,7 +2832,7 @@ type TimestreamAction struct { // Metadata attributes of the time series that are written in each measure record. // // This member is required. - Dimensions []*TimestreamDimension + Dimensions []TimestreamDimension // The ARN of the role that grants permission to write to the Amazon Timestream // database table. @@ -2899,7 +2899,7 @@ type TlsContext struct { type TopicRule struct { // The actions associated with the rule. - Actions []*Action + Actions []Action // The version of the SQL rules engine to use when evaluating the rule. AwsIotSqlVersion *string @@ -3013,7 +3013,7 @@ type TopicRulePayload struct { // The actions associated with the rule. // // This member is required. - Actions []*Action + Actions []Action // The SQL statement used to query the topic. For more information, see AWS IoT SQL // Reference diff --git a/service/iot/validators.go b/service/iot/validators.go index 745773148d7..ec09db49c13 100644 --- a/service/iot/validators.go +++ b/service/iot/validators.go @@ -3989,13 +3989,13 @@ func validateAbortCriteria(v *types.AbortCriteria) error { } } -func validateAbortCriteriaList(v []*types.AbortCriteria) error { +func validateAbortCriteriaList(v []types.AbortCriteria) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AbortCriteriaList"} for i := range v { - if err := validateAbortCriteria(v[i]); err != nil { + if err := validateAbortCriteria(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4113,13 +4113,13 @@ func validateAction(v *types.Action) error { } } -func validateActionList(v []*types.Action) error { +func validateActionList(v []types.Action) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ActionList"} for i := range v { - if err := validateAction(v[i]); err != nil { + if err := validateAction(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4130,13 +4130,13 @@ func validateActionList(v []*types.Action) error { } } -func validateAdditionalMetricsToRetainV2List(v []*types.MetricToRetain) error { +func validateAdditionalMetricsToRetainV2List(v []types.MetricToRetain) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AdditionalMetricsToRetainV2List"} for i := range v { - if err := validateMetricToRetain(v[i]); err != nil { + if err := validateMetricToRetain(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4180,13 +4180,14 @@ func validateAlertTarget(v *types.AlertTarget) error { } } -func validateAlertTargets(v map[string]*types.AlertTarget) error { +func validateAlertTargets(v map[string]types.AlertTarget) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AlertTargets"} for key := range v { - if err := validateAlertTarget(v[key]); err != nil { + value := v[key] + if err := validateAlertTarget(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -4234,13 +4235,13 @@ func validateAssetPropertyValue(v *types.AssetPropertyValue) error { } } -func validateAssetPropertyValueList(v []*types.AssetPropertyValue) error { +func validateAssetPropertyValueList(v []types.AssetPropertyValue) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssetPropertyValueList"} for i := range v { - if err := validateAssetPropertyValue(v[i]); err != nil { + if err := validateAssetPropertyValue(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4266,13 +4267,13 @@ func validateAuthInfo(v *types.AuthInfo) error { } } -func validateAuthInfos(v []*types.AuthInfo) error { +func validateAuthInfos(v []types.AuthInfo) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AuthInfos"} for i := range v { - if err := validateAuthInfo(v[i]); err != nil { + if err := validateAuthInfo(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4326,13 +4327,13 @@ func validateAwsJobAbortCriteria(v *types.AwsJobAbortCriteria) error { } } -func validateAwsJobAbortCriteriaList(v []*types.AwsJobAbortCriteria) error { +func validateAwsJobAbortCriteriaList(v []types.AwsJobAbortCriteria) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AwsJobAbortCriteriaList"} for i := range v { - if err := validateAwsJobAbortCriteria(v[i]); err != nil { + if err := validateAwsJobAbortCriteria(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4368,9 +4369,6 @@ func validateAwsJobExponentialRolloutRate(v *types.AwsJobExponentialRolloutRate) if v.BaseRatePerMinute == nil { invalidParams.Add(smithy.NewErrParamRequired("BaseRatePerMinute")) } - if v.IncrementFactor == nil { - invalidParams.Add(smithy.NewErrParamRequired("IncrementFactor")) - } if v.RateIncreaseCriteria == nil { invalidParams.Add(smithy.NewErrParamRequired("RateIncreaseCriteria")) } @@ -4401,13 +4399,13 @@ func validateBehavior(v *types.Behavior) error { } } -func validateBehaviors(v []*types.Behavior) error { +func validateBehaviors(v []types.Behavior) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Behaviors"} for i := range v { - if err := validateBehavior(v[i]); err != nil { + if err := validateBehavior(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4583,9 +4581,6 @@ func validateExponentialRolloutRate(v *types.ExponentialRolloutRate) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ExponentialRolloutRate"} - if v.IncrementFactor == nil { - invalidParams.Add(smithy.NewErrParamRequired("IncrementFactor")) - } if v.RateIncreaseCriteria == nil { invalidParams.Add(smithy.NewErrParamRequired("RateIncreaseCriteria")) } @@ -4617,13 +4612,13 @@ func validateFirehoseAction(v *types.FirehoseAction) error { } } -func validateHeaderList(v []*types.HttpActionHeader) error { +func validateHeaderList(v []types.HttpActionHeader) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "HeaderList"} for i := range v { - if err := validateHttpActionHeader(v[i]); err != nil { + if err := validateHttpActionHeader(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4955,13 +4950,13 @@ func validatePutAssetPropertyValueEntry(v *types.PutAssetPropertyValueEntry) err } } -func validatePutAssetPropertyValueEntryList(v []*types.PutAssetPropertyValueEntry) error { +func validatePutAssetPropertyValueEntryList(v []types.PutAssetPropertyValueEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PutAssetPropertyValueEntryList"} for i := range v { - if err := validatePutAssetPropertyValueEntry(v[i]); err != nil { + if err := validatePutAssetPropertyValueEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -5149,13 +5144,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -5247,13 +5242,13 @@ func validateTimestreamDimension(v *types.TimestreamDimension) error { } } -func validateTimestreamDimensionList(v []*types.TimestreamDimension) error { +func validateTimestreamDimensionList(v []types.TimestreamDimension) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TimestreamDimensionList"} for i := range v { - if err := validateTimestreamDimension(v[i]); err != nil { + if err := validateTimestreamDimension(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/iot1clickdevicesservice/api_op_ClaimDevicesByClaimCode.go b/service/iot1clickdevicesservice/api_op_ClaimDevicesByClaimCode.go index 976e99e8daa..0982f64f538 100644 --- a/service/iot1clickdevicesservice/api_op_ClaimDevicesByClaimCode.go +++ b/service/iot1clickdevicesservice/api_op_ClaimDevicesByClaimCode.go @@ -42,7 +42,7 @@ type ClaimDevicesByClaimCodeOutput struct { // The total number of devices associated with the claim code that has been // processed in the claim request. - Total *int32 + Total int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot1clickdevicesservice/api_op_FinalizeDeviceClaim.go b/service/iot1clickdevicesservice/api_op_FinalizeDeviceClaim.go index b0472091b15..a2b83a621e5 100644 --- a/service/iot1clickdevicesservice/api_op_FinalizeDeviceClaim.go +++ b/service/iot1clickdevicesservice/api_op_FinalizeDeviceClaim.go @@ -40,7 +40,7 @@ type FinalizeDeviceClaimInput struct { // "tags": {"key1": "value1", "key2": "value2"} }. For more information, see AWS // Tagging Strategies // (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/). - Tags map[string]*string + Tags map[string]string } type FinalizeDeviceClaimOutput struct { diff --git a/service/iot1clickdevicesservice/api_op_GetDeviceMethods.go b/service/iot1clickdevicesservice/api_op_GetDeviceMethods.go index 146bc5d3c6b..215ce27f70d 100644 --- a/service/iot1clickdevicesservice/api_op_GetDeviceMethods.go +++ b/service/iot1clickdevicesservice/api_op_GetDeviceMethods.go @@ -38,7 +38,7 @@ type GetDeviceMethodsInput struct { type GetDeviceMethodsOutput struct { // List of available device APIs. - DeviceMethods []*types.DeviceMethod + DeviceMethods []types.DeviceMethod // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot1clickdevicesservice/api_op_ListDeviceEvents.go b/service/iot1clickdevicesservice/api_op_ListDeviceEvents.go index 5eed75d0eba..11e3baac032 100644 --- a/service/iot1clickdevicesservice/api_op_ListDeviceEvents.go +++ b/service/iot1clickdevicesservice/api_op_ListDeviceEvents.go @@ -50,7 +50,7 @@ type ListDeviceEventsInput struct { // The maximum number of results to return per request. If not set, a default value // of 100 is used. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next set of results. NextToken *string @@ -60,7 +60,7 @@ type ListDeviceEventsOutput struct { // An array of zero or more elements describing the event(s) associated with the // device. - Events []*types.DeviceEvent + Events []types.DeviceEvent // The token to retrieve the next set of results. NextToken *string diff --git a/service/iot1clickdevicesservice/api_op_ListDevices.go b/service/iot1clickdevicesservice/api_op_ListDevices.go index 93703969ce7..d4a47e18dae 100644 --- a/service/iot1clickdevicesservice/api_op_ListDevices.go +++ b/service/iot1clickdevicesservice/api_op_ListDevices.go @@ -34,7 +34,7 @@ type ListDevicesInput struct { // The maximum number of results to return per request. If not set, a default value // of 100 is used. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next set of results. NextToken *string @@ -43,7 +43,7 @@ type ListDevicesInput struct { type ListDevicesOutput struct { // A list of devices. - Devices []*types.DeviceDescription + Devices []types.DeviceDescription // The token to retrieve the next set of results. NextToken *string diff --git a/service/iot1clickdevicesservice/api_op_ListTagsForResource.go b/service/iot1clickdevicesservice/api_op_ListTagsForResource.go index 351f037c58a..50fd83a176c 100644 --- a/service/iot1clickdevicesservice/api_op_ListTagsForResource.go +++ b/service/iot1clickdevicesservice/api_op_ListTagsForResource.go @@ -40,7 +40,7 @@ type ListTagsForResourceOutput struct { // "tags": {"key1": "value1", "key2": "value2"} }. For more information, see AWS // Tagging Strategies // (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/). - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot1clickdevicesservice/api_op_TagResource.go b/service/iot1clickdevicesservice/api_op_TagResource.go index 14348a5d1af..3c6a0e38262 100644 --- a/service/iot1clickdevicesservice/api_op_TagResource.go +++ b/service/iot1clickdevicesservice/api_op_TagResource.go @@ -42,7 +42,7 @@ type TagResourceInput struct { // (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/). // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/iot1clickdevicesservice/api_op_UntagResource.go b/service/iot1clickdevicesservice/api_op_UntagResource.go index 7522af3c13d..37ed35d0787 100644 --- a/service/iot1clickdevicesservice/api_op_UntagResource.go +++ b/service/iot1clickdevicesservice/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // A collections of tag keys. For example, {"key1","key2"} // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/iot1clickdevicesservice/api_op_UpdateDeviceState.go b/service/iot1clickdevicesservice/api_op_UpdateDeviceState.go index 89811209d2e..8945faead19 100644 --- a/service/iot1clickdevicesservice/api_op_UpdateDeviceState.go +++ b/service/iot1clickdevicesservice/api_op_UpdateDeviceState.go @@ -35,7 +35,7 @@ type UpdateDeviceStateInput struct { DeviceId *string // If true, the device is enabled. If false, the device is disabled. - Enabled *bool + Enabled bool } type UpdateDeviceStateOutput struct { diff --git a/service/iot1clickdevicesservice/deserializers.go b/service/iot1clickdevicesservice/deserializers.go index e6fd57ba58a..e9ba2e36f20 100644 --- a/service/iot1clickdevicesservice/deserializers.go +++ b/service/iot1clickdevicesservice/deserializers.go @@ -163,7 +163,7 @@ func awsRestjson1_deserializeOpDocumentClaimDevicesByClaimCodeOutput(v **ClaimDe if !ok { return fmt.Errorf("expected __stringMin12Max40 to be of type string, got %T instead", value) } - sv.ClaimCode = &jtv + sv.ClaimCode = ptr.String(jtv) } case "total": @@ -176,7 +176,7 @@ func awsRestjson1_deserializeOpDocumentClaimDevicesByClaimCodeOutput(v **ClaimDe if err != nil { return err } - sv.Total = ptr.Int32(int32(i64)) + sv.Total = int32(i64) } default: @@ -492,7 +492,7 @@ func awsRestjson1_deserializeOpDocumentFinalizeDeviceClaimOutput(v **FinalizeDev if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } default: @@ -805,7 +805,7 @@ func awsRestjson1_deserializeOpDocumentInitiateDeviceClaimOutput(v **InitiateDev if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } default: @@ -971,7 +971,7 @@ func awsRestjson1_deserializeOpDocumentInvokeDeviceMethodOutput(v **InvokeDevice if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeviceMethodResponse = &jtv + sv.DeviceMethodResponse = ptr.String(jtv) } default: @@ -1136,7 +1136,7 @@ func awsRestjson1_deserializeOpDocumentListDeviceEventsOutput(v **ListDeviceEven if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1298,7 +1298,7 @@ func awsRestjson1_deserializeOpDocumentListDevicesOutput(v **ListDevicesOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1694,7 +1694,7 @@ func awsRestjson1_deserializeOpDocumentUnclaimDeviceOutput(v **UnclaimDeviceOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } default: @@ -2136,7 +2136,7 @@ func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp return output } -func awsRestjson1_deserializeDocument__listOfDeviceDescription(v *[]*types.DeviceDescription, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfDeviceDescription(v *[]types.DeviceDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2149,18 +2149,20 @@ func awsRestjson1_deserializeDocument__listOfDeviceDescription(v *[]*types.Devic return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeviceDescription + var cv []types.DeviceDescription if *v == nil { - cv = []*types.DeviceDescription{} + cv = []types.DeviceDescription{} } else { cv = *v } for _, value := range shape { - var col *types.DeviceDescription - if err := awsRestjson1_deserializeDocumentDeviceDescription(&col, value); err != nil { + var col types.DeviceDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeviceDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2168,7 +2170,7 @@ func awsRestjson1_deserializeDocument__listOfDeviceDescription(v *[]*types.Devic return nil } -func awsRestjson1_deserializeDocument__listOfDeviceEvent(v *[]*types.DeviceEvent, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfDeviceEvent(v *[]types.DeviceEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2181,18 +2183,20 @@ func awsRestjson1_deserializeDocument__listOfDeviceEvent(v *[]*types.DeviceEvent return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeviceEvent + var cv []types.DeviceEvent if *v == nil { - cv = []*types.DeviceEvent{} + cv = []types.DeviceEvent{} } else { cv = *v } for _, value := range shape { - var col *types.DeviceEvent - if err := awsRestjson1_deserializeDocumentDeviceEvent(&col, value); err != nil { + var col types.DeviceEvent + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeviceEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2200,7 +2204,7 @@ func awsRestjson1_deserializeDocument__listOfDeviceEvent(v *[]*types.DeviceEvent return nil } -func awsRestjson1_deserializeDocument__listOfDeviceMethod(v *[]*types.DeviceMethod, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfDeviceMethod(v *[]types.DeviceMethod, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2213,18 +2217,20 @@ func awsRestjson1_deserializeDocument__listOfDeviceMethod(v *[]*types.DeviceMeth return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeviceMethod + var cv []types.DeviceMethod if *v == nil { - cv = []*types.DeviceMethod{} + cv = []types.DeviceMethod{} } else { cv = *v } for _, value := range shape { - var col *types.DeviceMethod - if err := awsRestjson1_deserializeDocumentDeviceMethod(&col, value); err != nil { + var col types.DeviceMethod + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeviceMethod(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2232,7 +2238,7 @@ func awsRestjson1_deserializeDocument__listOfDeviceMethod(v *[]*types.DeviceMeth return nil } -func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2245,21 +2251,21 @@ func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -2332,7 +2338,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeviceId = &jtv + sv.DeviceId = ptr.String(jtv) } case "type": @@ -2341,7 +2347,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -2353,7 +2359,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) return nil } -func awsRestjson1_deserializeDocumentDeviceAttributes(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDeviceAttributes(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2366,21 +2372,21 @@ func awsRestjson1_deserializeDocumentDeviceAttributes(v *map[string]*string, val return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -2417,7 +2423,7 @@ func awsRestjson1_deserializeDocumentDeviceDescription(v **types.DeviceDescripti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "attributes": @@ -2431,7 +2437,7 @@ func awsRestjson1_deserializeDocumentDeviceDescription(v **types.DeviceDescripti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeviceId = &jtv + sv.DeviceId = ptr.String(jtv) } case "enabled": @@ -2440,7 +2446,7 @@ func awsRestjson1_deserializeDocumentDeviceDescription(v **types.DeviceDescripti if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "remainingLife": @@ -2453,7 +2459,7 @@ func awsRestjson1_deserializeDocumentDeviceDescription(v **types.DeviceDescripti if err != nil { return err } - sv.RemainingLife = &f64 + sv.RemainingLife = f64 } case "tags": @@ -2467,7 +2473,7 @@ func awsRestjson1_deserializeDocumentDeviceDescription(v **types.DeviceDescripti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -2512,7 +2518,7 @@ func awsRestjson1_deserializeDocumentDeviceEvent(v **types.DeviceEvent, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StdEvent = &jtv + sv.StdEvent = ptr.String(jtv) } default: @@ -2552,7 +2558,7 @@ func awsRestjson1_deserializeDocumentDeviceMethod(v **types.DeviceMethod, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeviceType = &jtv + sv.DeviceType = ptr.String(jtv) } case "methodName": @@ -2561,7 +2567,7 @@ func awsRestjson1_deserializeDocumentDeviceMethod(v **types.DeviceMethod, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MethodName = &jtv + sv.MethodName = ptr.String(jtv) } default: @@ -2601,7 +2607,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -2610,7 +2616,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2650,7 +2656,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -2659,7 +2665,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2699,7 +2705,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -2708,7 +2714,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2748,7 +2754,7 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -2757,7 +2763,7 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2797,7 +2803,7 @@ func awsRestjson1_deserializeDocumentRangeNotSatisfiableException(v **types.Rang if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -2806,7 +2812,7 @@ func awsRestjson1_deserializeDocumentRangeNotSatisfiableException(v **types.Rang if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2846,7 +2852,7 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -2855,7 +2861,7 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2895,7 +2901,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -2904,7 +2910,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/iot1clickdevicesservice/go.mod b/service/iot1clickdevicesservice/go.mod index 63f3465acaa..9b1c517c895 100644 --- a/service/iot1clickdevicesservice/go.mod +++ b/service/iot1clickdevicesservice/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/iot1clickdevicesservice go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/iot1clickdevicesservice/serializers.go b/service/iot1clickdevicesservice/serializers.go index d5447c1799c..e066b16b68e 100644 --- a/service/iot1clickdevicesservice/serializers.go +++ b/service/iot1clickdevicesservice/serializers.go @@ -66,13 +66,10 @@ func awsRestjson1_serializeOpHttpBindingsClaimDevicesByClaimCodeInput(v *ClaimDe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClaimCode == nil { + if v.ClaimCode == nil || len(*v.ClaimCode) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClaimCode must not be empty")} } if v.ClaimCode != nil { - if len(*v.ClaimCode) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClaimCode must not be empty")} - } if err := encoder.SetURI("ClaimCode").String(*v.ClaimCode); err != nil { return err } @@ -132,13 +129,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDeviceInput(v *DescribeDeviceIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceId == nil { + if v.DeviceId == nil || len(*v.DeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} } if v.DeviceId != nil { - if len(*v.DeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} - } if err := encoder.SetURI("DeviceId").String(*v.DeviceId); err != nil { return err } @@ -209,13 +203,10 @@ func awsRestjson1_serializeOpHttpBindingsFinalizeDeviceClaimInput(v *FinalizeDev return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceId == nil { + if v.DeviceId == nil || len(*v.DeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} } if v.DeviceId != nil { - if len(*v.DeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} - } if err := encoder.SetURI("DeviceId").String(*v.DeviceId); err != nil { return err } @@ -289,13 +280,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDeviceMethodsInput(v *GetDeviceMetho return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceId == nil { + if v.DeviceId == nil || len(*v.DeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} } if v.DeviceId != nil { - if len(*v.DeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} - } if err := encoder.SetURI("DeviceId").String(*v.DeviceId); err != nil { return err } @@ -355,13 +343,10 @@ func awsRestjson1_serializeOpHttpBindingsInitiateDeviceClaimInput(v *InitiateDev return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceId == nil { + if v.DeviceId == nil || len(*v.DeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} } if v.DeviceId != nil { - if len(*v.DeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} - } if err := encoder.SetURI("DeviceId").String(*v.DeviceId); err != nil { return err } @@ -432,13 +417,10 @@ func awsRestjson1_serializeOpHttpBindingsInvokeDeviceMethodInput(v *InvokeDevice return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceId == nil { + if v.DeviceId == nil || len(*v.DeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} } if v.DeviceId != nil { - if len(*v.DeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} - } if err := encoder.SetURI("DeviceId").String(*v.DeviceId); err != nil { return err } @@ -517,13 +499,10 @@ func awsRestjson1_serializeOpHttpBindingsListDeviceEventsInput(v *ListDeviceEven return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceId == nil { + if v.DeviceId == nil || len(*v.DeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} } if v.DeviceId != nil { - if len(*v.DeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} - } if err := encoder.SetURI("DeviceId").String(*v.DeviceId); err != nil { return err } @@ -533,8 +512,8 @@ func awsRestjson1_serializeOpHttpBindingsListDeviceEventsInput(v *ListDeviceEven encoder.SetQuery("fromTimeStamp").String(smithytime.FormatDateTime(*v.FromTimeStamp)) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -603,8 +582,8 @@ func awsRestjson1_serializeOpHttpBindingsListDevicesInput(v *ListDevicesInput, e encoder.SetQuery("deviceType").String(*v.DeviceType) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -665,13 +644,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -742,13 +718,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -822,13 +795,10 @@ func awsRestjson1_serializeOpHttpBindingsUnclaimDeviceInput(v *UnclaimDeviceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceId == nil { + if v.DeviceId == nil || len(*v.DeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} } if v.DeviceId != nil { - if len(*v.DeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} - } if err := encoder.SetURI("DeviceId").String(*v.DeviceId); err != nil { return err } @@ -888,13 +858,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -902,10 +869,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -974,13 +938,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDeviceStateInput(v *UpdateDeviceS return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceId == nil { + if v.DeviceId == nil || len(*v.DeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} } if v.DeviceId != nil { - if len(*v.DeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} - } if err := encoder.SetURI("DeviceId").String(*v.DeviceId); err != nil { return err } @@ -993,25 +954,21 @@ func awsRestjson1_serializeOpDocumentUpdateDeviceStateInput(v *UpdateDeviceState object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } return nil } -func awsRestjson1_serializeDocument__mapOf__string(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__mapOf__string(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/iot1clickdevicesservice/types/types.go b/service/iot1clickdevicesservice/types/types.go index 224438537d6..e2edded106f 100644 --- a/service/iot1clickdevicesservice/types/types.go +++ b/service/iot1clickdevicesservice/types/types.go @@ -24,20 +24,20 @@ type DeviceDescription struct { // An array of zero or more elements of DeviceAttribute objects providing user // specified device attributes. - Attributes map[string]*string + Attributes map[string]string // The unique identifier of the device. DeviceId *string // A Boolean value indicating whether or not the device is enabled. - Enabled *bool + Enabled bool // A value between 0 and 1 inclusive, representing the fraction of life remaining // for the device. - RemainingLife *float64 + RemainingLife float64 // The tags currently associated with the AWS IoT 1-Click device. - Tags map[string]*string + Tags map[string]string // The type of the device, such as "button". Type *string diff --git a/service/iot1clickprojects/api_op_CreatePlacement.go b/service/iot1clickprojects/api_op_CreatePlacement.go index 819e4ea068d..157f05f49b4 100644 --- a/service/iot1clickprojects/api_op_CreatePlacement.go +++ b/service/iot1clickprojects/api_op_CreatePlacement.go @@ -40,7 +40,7 @@ type CreatePlacementInput struct { // Optional user-defined key/value pairs providing contextual data (such as // location or function) for the placement. - Attributes map[string]*string + Attributes map[string]string } type CreatePlacementOutput struct { diff --git a/service/iot1clickprojects/api_op_CreateProject.go b/service/iot1clickprojects/api_op_CreateProject.go index cc2958c7964..af0f704df69 100644 --- a/service/iot1clickprojects/api_op_CreateProject.go +++ b/service/iot1clickprojects/api_op_CreateProject.go @@ -48,7 +48,7 @@ type CreateProjectInput struct { // example, { {"key1": "value1", "key2": "value2"} }. For more information, see AWS // Tagging Strategies // (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/). - Tags map[string]*string + Tags map[string]string } type CreateProjectOutput struct { diff --git a/service/iot1clickprojects/api_op_GetDevicesInPlacement.go b/service/iot1clickprojects/api_op_GetDevicesInPlacement.go index e0903388f9e..994adddb226 100644 --- a/service/iot1clickprojects/api_op_GetDevicesInPlacement.go +++ b/service/iot1clickprojects/api_op_GetDevicesInPlacement.go @@ -44,7 +44,7 @@ type GetDevicesInPlacementOutput struct { // An object containing the devices (zero or more) within the placement. // // This member is required. - Devices map[string]*string + Devices map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot1clickprojects/api_op_ListPlacements.go b/service/iot1clickprojects/api_op_ListPlacements.go index 126b555a0fa..76b74f6f6bc 100644 --- a/service/iot1clickprojects/api_op_ListPlacements.go +++ b/service/iot1clickprojects/api_op_ListPlacements.go @@ -47,7 +47,7 @@ type ListPlacementsOutput struct { // An object listing the requested placements. // // This member is required. - Placements []*types.PlacementSummary + Placements []types.PlacementSummary // The token used to retrieve the next set of results - will be effectively empty // if there are no further results. diff --git a/service/iot1clickprojects/api_op_ListProjects.go b/service/iot1clickprojects/api_op_ListProjects.go index 61fc62b366c..56be06ac081 100644 --- a/service/iot1clickprojects/api_op_ListProjects.go +++ b/service/iot1clickprojects/api_op_ListProjects.go @@ -43,7 +43,7 @@ type ListProjectsOutput struct { // An object containing the list of projects. // // This member is required. - Projects []*types.ProjectSummary + Projects []types.ProjectSummary // The token used to retrieve the next set of results - will be effectively empty // if there are no further results. diff --git a/service/iot1clickprojects/api_op_ListTagsForResource.go b/service/iot1clickprojects/api_op_ListTagsForResource.go index 3f11329ce96..350646e5751 100644 --- a/service/iot1clickprojects/api_op_ListTagsForResource.go +++ b/service/iot1clickprojects/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags (metadata key/value pairs) which you have assigned to the resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot1clickprojects/api_op_TagResource.go b/service/iot1clickprojects/api_op_TagResource.go index f3ce5a0598d..c952ec53e15 100644 --- a/service/iot1clickprojects/api_op_TagResource.go +++ b/service/iot1clickprojects/api_op_TagResource.go @@ -41,7 +41,7 @@ type TagResourceInput struct { // for the maximum number of tags allowed per resource. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/iot1clickprojects/api_op_UntagResource.go b/service/iot1clickprojects/api_op_UntagResource.go index dcbabf3bbda..77034fbd624 100644 --- a/service/iot1clickprojects/api_op_UntagResource.go +++ b/service/iot1clickprojects/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The keys of those tags which you want to remove. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/iot1clickprojects/api_op_UpdatePlacement.go b/service/iot1clickprojects/api_op_UpdatePlacement.go index 95ef2869865..72b15f9d4bd 100644 --- a/service/iot1clickprojects/api_op_UpdatePlacement.go +++ b/service/iot1clickprojects/api_op_UpdatePlacement.go @@ -41,7 +41,7 @@ type UpdatePlacementInput struct { // The user-defined object of attributes used to update the placement. The maximum // number of key/value pairs is 50. - Attributes map[string]*string + Attributes map[string]string } type UpdatePlacementOutput struct { diff --git a/service/iot1clickprojects/deserializers.go b/service/iot1clickprojects/deserializers.go index 632214666b6..6b7e22df1da 100644 --- a/service/iot1clickprojects/deserializers.go +++ b/service/iot1clickprojects/deserializers.go @@ -1172,7 +1172,7 @@ func awsRestjson1_deserializeOpDocumentListPlacementsOutput(v **ListPlacementsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "placements": @@ -1331,7 +1331,7 @@ func awsRestjson1_deserializeOpDocumentListProjectsOutput(v **ListProjectsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "projects": @@ -2043,7 +2043,7 @@ func awsRestjson1_deserializeErrorTooManyRequestsException(response *smithyhttp. return output } -func awsRestjson1_deserializeDocumentDefaultPlacementAttributeMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDefaultPlacementAttributeMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2056,21 +2056,21 @@ func awsRestjson1_deserializeDocumentDefaultPlacementAttributeMap(v *map[string] return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeDefaultValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -2079,7 +2079,7 @@ func awsRestjson1_deserializeDocumentDefaultPlacementAttributeMap(v *map[string] return nil } -func awsRestjson1_deserializeDocumentDeviceCallbackOverrideMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDeviceCallbackOverrideMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2092,21 +2092,21 @@ func awsRestjson1_deserializeDocumentDeviceCallbackOverrideMap(v *map[string]*st return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DeviceCallbackValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -2115,7 +2115,7 @@ func awsRestjson1_deserializeDocumentDeviceCallbackOverrideMap(v *map[string]*st return nil } -func awsRestjson1_deserializeDocumentDeviceMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDeviceMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2128,21 +2128,21 @@ func awsRestjson1_deserializeDocumentDeviceMap(v *map[string]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DeviceId to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -2184,7 +2184,7 @@ func awsRestjson1_deserializeDocumentDeviceTemplate(v **types.DeviceTemplate, va if !ok { return fmt.Errorf("expected DeviceType to be of type string, got %T instead", value) } - sv.DeviceType = &jtv + sv.DeviceType = ptr.String(jtv) } default: @@ -2196,7 +2196,7 @@ func awsRestjson1_deserializeDocumentDeviceTemplate(v **types.DeviceTemplate, va return nil } -func awsRestjson1_deserializeDocumentDeviceTemplateMap(v *map[string]*types.DeviceTemplate, value interface{}) error { +func awsRestjson1_deserializeDocumentDeviceTemplateMap(v *map[string]types.DeviceTemplate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2209,18 +2209,21 @@ func awsRestjson1_deserializeDocumentDeviceTemplateMap(v *map[string]*types.Devi return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.DeviceTemplate + var mv map[string]types.DeviceTemplate if *v == nil { - mv = map[string]*types.DeviceTemplate{} + mv = map[string]types.DeviceTemplate{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.DeviceTemplate - if err := awsRestjson1_deserializeDocumentDeviceTemplate(&parsedVal, value); err != nil { + var parsedVal types.DeviceTemplate + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentDeviceTemplate(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -2256,7 +2259,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected Code to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -2265,7 +2268,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2305,7 +2308,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected Code to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -2314,7 +2317,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2326,7 +2329,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe return nil } -func awsRestjson1_deserializeDocumentPlacementAttributeMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentPlacementAttributeMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2339,21 +2342,21 @@ func awsRestjson1_deserializeDocumentPlacementAttributeMap(v *map[string]*string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -2408,7 +2411,7 @@ func awsRestjson1_deserializeDocumentPlacementDescription(v **types.PlacementDes if !ok { return fmt.Errorf("expected PlacementName to be of type string, got %T instead", value) } - sv.PlacementName = &jtv + sv.PlacementName = ptr.String(jtv) } case "projectName": @@ -2417,7 +2420,7 @@ func awsRestjson1_deserializeDocumentPlacementDescription(v **types.PlacementDes if !ok { return fmt.Errorf("expected ProjectName to be of type string, got %T instead", value) } - sv.ProjectName = &jtv + sv.ProjectName = ptr.String(jtv) } case "updatedDate": @@ -2483,7 +2486,7 @@ func awsRestjson1_deserializeDocumentPlacementSummary(v **types.PlacementSummary if !ok { return fmt.Errorf("expected PlacementName to be of type string, got %T instead", value) } - sv.PlacementName = &jtv + sv.PlacementName = ptr.String(jtv) } case "projectName": @@ -2492,7 +2495,7 @@ func awsRestjson1_deserializeDocumentPlacementSummary(v **types.PlacementSummary if !ok { return fmt.Errorf("expected ProjectName to be of type string, got %T instead", value) } - sv.ProjectName = &jtv + sv.ProjectName = ptr.String(jtv) } case "updatedDate": @@ -2517,7 +2520,7 @@ func awsRestjson1_deserializeDocumentPlacementSummary(v **types.PlacementSummary return nil } -func awsRestjson1_deserializeDocumentPlacementSummaryList(v *[]*types.PlacementSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentPlacementSummaryList(v *[]types.PlacementSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2530,18 +2533,20 @@ func awsRestjson1_deserializeDocumentPlacementSummaryList(v *[]*types.PlacementS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PlacementSummary + var cv []types.PlacementSummary if *v == nil { - cv = []*types.PlacementSummary{} + cv = []types.PlacementSummary{} } else { cv = *v } for _, value := range shape { - var col *types.PlacementSummary - if err := awsRestjson1_deserializeDocumentPlacementSummary(&col, value); err != nil { + var col types.PlacementSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentPlacementSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2618,7 +2623,7 @@ func awsRestjson1_deserializeDocumentProjectDescription(v **types.ProjectDescrip if !ok { return fmt.Errorf("expected ProjectArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdDate": @@ -2640,7 +2645,7 @@ func awsRestjson1_deserializeDocumentProjectDescription(v **types.ProjectDescrip if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "placementTemplate": @@ -2654,7 +2659,7 @@ func awsRestjson1_deserializeDocumentProjectDescription(v **types.ProjectDescrip if !ok { return fmt.Errorf("expected ProjectName to be of type string, got %T instead", value) } - sv.ProjectName = &jtv + sv.ProjectName = ptr.String(jtv) } case "tags": @@ -2712,7 +2717,7 @@ func awsRestjson1_deserializeDocumentProjectSummary(v **types.ProjectSummary, va if !ok { return fmt.Errorf("expected ProjectArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdDate": @@ -2734,7 +2739,7 @@ func awsRestjson1_deserializeDocumentProjectSummary(v **types.ProjectSummary, va if !ok { return fmt.Errorf("expected ProjectName to be of type string, got %T instead", value) } - sv.ProjectName = &jtv + sv.ProjectName = ptr.String(jtv) } case "tags": @@ -2764,7 +2769,7 @@ func awsRestjson1_deserializeDocumentProjectSummary(v **types.ProjectSummary, va return nil } -func awsRestjson1_deserializeDocumentProjectSummaryList(v *[]*types.ProjectSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentProjectSummaryList(v *[]types.ProjectSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2777,18 +2782,20 @@ func awsRestjson1_deserializeDocumentProjectSummaryList(v *[]*types.ProjectSumma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProjectSummary + var cv []types.ProjectSummary if *v == nil { - cv = []*types.ProjectSummary{} + cv = []types.ProjectSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProjectSummary - if err := awsRestjson1_deserializeDocumentProjectSummary(&col, value); err != nil { + var col types.ProjectSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentProjectSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2824,7 +2831,7 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc if !ok { return fmt.Errorf("expected Code to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -2833,7 +2840,7 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2873,7 +2880,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected Code to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -2882,7 +2889,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2894,7 +2901,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2907,21 +2914,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -2958,7 +2965,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected Code to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -2967,7 +2974,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/iot1clickprojects/go.mod b/service/iot1clickprojects/go.mod index 145111904c6..9128535e68b 100644 --- a/service/iot1clickprojects/go.mod +++ b/service/iot1clickprojects/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/iot1clickprojects go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/iot1clickprojects/serializers.go b/service/iot1clickprojects/serializers.go index b7c2517e0f7..680fa6c43f6 100644 --- a/service/iot1clickprojects/serializers.go +++ b/service/iot1clickprojects/serializers.go @@ -76,37 +76,28 @@ func awsRestjson1_serializeOpHttpBindingsAssociateDeviceWithPlacementInput(v *As return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceTemplateName == nil { + if v.DeviceTemplateName == nil || len(*v.DeviceTemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member deviceTemplateName must not be empty")} } if v.DeviceTemplateName != nil { - if len(*v.DeviceTemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member deviceTemplateName must not be empty")} - } if err := encoder.SetURI("deviceTemplateName").String(*v.DeviceTemplateName); err != nil { return err } } - if v.PlacementName == nil { + if v.PlacementName == nil || len(*v.PlacementName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member placementName must not be empty")} } if v.PlacementName != nil { - if len(*v.PlacementName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member placementName must not be empty")} - } if err := encoder.SetURI("placementName").String(*v.PlacementName); err != nil { return err } } - if v.ProjectName == nil { + if v.ProjectName == nil || len(*v.ProjectName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} } if v.ProjectName != nil { - if len(*v.ProjectName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} - } if err := encoder.SetURI("projectName").String(*v.ProjectName); err != nil { return err } @@ -189,13 +180,10 @@ func awsRestjson1_serializeOpHttpBindingsCreatePlacementInput(v *CreatePlacement return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProjectName == nil { + if v.ProjectName == nil || len(*v.ProjectName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} } if v.ProjectName != nil { - if len(*v.ProjectName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} - } if err := encoder.SetURI("projectName").String(*v.ProjectName); err != nil { return err } @@ -366,25 +354,19 @@ func awsRestjson1_serializeOpHttpBindingsDeletePlacementInput(v *DeletePlacement return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PlacementName == nil { + if v.PlacementName == nil || len(*v.PlacementName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member placementName must not be empty")} } if v.PlacementName != nil { - if len(*v.PlacementName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member placementName must not be empty")} - } if err := encoder.SetURI("placementName").String(*v.PlacementName); err != nil { return err } } - if v.ProjectName == nil { + if v.ProjectName == nil || len(*v.ProjectName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} } if v.ProjectName != nil { - if len(*v.ProjectName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} - } if err := encoder.SetURI("projectName").String(*v.ProjectName); err != nil { return err } @@ -444,13 +426,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteProjectInput(v *DeleteProjectInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProjectName == nil { + if v.ProjectName == nil || len(*v.ProjectName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} } if v.ProjectName != nil { - if len(*v.ProjectName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} - } if err := encoder.SetURI("projectName").String(*v.ProjectName); err != nil { return err } @@ -510,25 +489,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribePlacementInput(v *DescribePlace return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PlacementName == nil { + if v.PlacementName == nil || len(*v.PlacementName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member placementName must not be empty")} } if v.PlacementName != nil { - if len(*v.PlacementName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member placementName must not be empty")} - } if err := encoder.SetURI("placementName").String(*v.PlacementName); err != nil { return err } } - if v.ProjectName == nil { + if v.ProjectName == nil || len(*v.ProjectName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} } if v.ProjectName != nil { - if len(*v.ProjectName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} - } if err := encoder.SetURI("projectName").String(*v.ProjectName); err != nil { return err } @@ -588,13 +561,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeProjectInput(v *DescribeProject return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProjectName == nil { + if v.ProjectName == nil || len(*v.ProjectName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} } if v.ProjectName != nil { - if len(*v.ProjectName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} - } if err := encoder.SetURI("projectName").String(*v.ProjectName); err != nil { return err } @@ -654,37 +624,28 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateDeviceFromPlacementInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceTemplateName == nil { + if v.DeviceTemplateName == nil || len(*v.DeviceTemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member deviceTemplateName must not be empty")} } if v.DeviceTemplateName != nil { - if len(*v.DeviceTemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member deviceTemplateName must not be empty")} - } if err := encoder.SetURI("deviceTemplateName").String(*v.DeviceTemplateName); err != nil { return err } } - if v.PlacementName == nil { + if v.PlacementName == nil || len(*v.PlacementName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member placementName must not be empty")} } if v.PlacementName != nil { - if len(*v.PlacementName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member placementName must not be empty")} - } if err := encoder.SetURI("placementName").String(*v.PlacementName); err != nil { return err } } - if v.ProjectName == nil { + if v.ProjectName == nil || len(*v.ProjectName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} } if v.ProjectName != nil { - if len(*v.ProjectName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} - } if err := encoder.SetURI("projectName").String(*v.ProjectName); err != nil { return err } @@ -744,25 +705,19 @@ func awsRestjson1_serializeOpHttpBindingsGetDevicesInPlacementInput(v *GetDevice return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PlacementName == nil { + if v.PlacementName == nil || len(*v.PlacementName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member placementName must not be empty")} } if v.PlacementName != nil { - if len(*v.PlacementName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member placementName must not be empty")} - } if err := encoder.SetURI("placementName").String(*v.PlacementName); err != nil { return err } } - if v.ProjectName == nil { + if v.ProjectName == nil || len(*v.ProjectName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} } if v.ProjectName != nil { - if len(*v.ProjectName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} - } if err := encoder.SetURI("projectName").String(*v.ProjectName); err != nil { return err } @@ -830,13 +785,10 @@ func awsRestjson1_serializeOpHttpBindingsListPlacementsInput(v *ListPlacementsIn encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.ProjectName == nil { + if v.ProjectName == nil || len(*v.ProjectName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} } if v.ProjectName != nil { - if len(*v.ProjectName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} - } if err := encoder.SetURI("projectName").String(*v.ProjectName); err != nil { return err } @@ -958,13 +910,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1035,13 +984,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1115,13 +1061,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1129,10 +1072,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1201,25 +1141,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdatePlacementInput(v *UpdatePlacement return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PlacementName == nil { + if v.PlacementName == nil || len(*v.PlacementName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member placementName must not be empty")} } if v.PlacementName != nil { - if len(*v.PlacementName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member placementName must not be empty")} - } if err := encoder.SetURI("placementName").String(*v.PlacementName); err != nil { return err } } - if v.ProjectName == nil { + if v.ProjectName == nil || len(*v.ProjectName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} } if v.ProjectName != nil { - if len(*v.ProjectName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} - } if err := encoder.SetURI("projectName").String(*v.ProjectName); err != nil { return err } @@ -1304,13 +1238,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateProjectInput(v *UpdateProjectInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProjectName == nil { + if v.ProjectName == nil || len(*v.ProjectName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} } if v.ProjectName != nil { - if len(*v.ProjectName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectName must not be empty")} - } if err := encoder.SetURI("projectName").String(*v.ProjectName); err != nil { return err } @@ -1338,32 +1269,24 @@ func awsRestjson1_serializeOpDocumentUpdateProjectInput(v *UpdateProjectInput, v return nil } -func awsRestjson1_serializeDocumentDefaultPlacementAttributeMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDefaultPlacementAttributeMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentDeviceCallbackOverrideMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDeviceCallbackOverrideMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1387,34 +1310,27 @@ func awsRestjson1_serializeDocumentDeviceTemplate(v *types.DeviceTemplate, value return nil } -func awsRestjson1_serializeDocumentDeviceTemplateMap(v map[string]*types.DeviceTemplate, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDeviceTemplateMap(v map[string]types.DeviceTemplate, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentDeviceTemplate(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentDeviceTemplate(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentPlacementAttributeMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPlacementAttributeMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1440,17 +1356,13 @@ func awsRestjson1_serializeDocumentPlacementTemplate(v *types.PlacementTemplate, return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/iot1clickprojects/types/types.go b/service/iot1clickprojects/types/types.go index 79d76cd1dab..313182e3b59 100644 --- a/service/iot1clickprojects/types/types.go +++ b/service/iot1clickprojects/types/types.go @@ -12,7 +12,7 @@ type DeviceTemplate struct { // An optional Lambda function to invoke instead of the default Lambda function // provided by the placement template. - CallbackOverrides map[string]*string + CallbackOverrides map[string]string // The device type, which currently must be "button". DeviceType *string @@ -24,7 +24,7 @@ type PlacementDescription struct { // The user-defined attributes associated with the placement. // // This member is required. - Attributes map[string]*string + Attributes map[string]string // The date when the placement was initially created, in UNIX epoch time format. // @@ -78,11 +78,11 @@ type PlacementTemplate struct { // The default attributes (key/value pairs) to be applied to all placements using // this template. - DefaultAttributes map[string]*string + DefaultAttributes map[string]string // An object specifying the DeviceTemplate for all placements using this // (PlacementTemplate) template. - DeviceTemplates map[string]*DeviceTemplate + DeviceTemplates map[string]DeviceTemplate } // An object providing detailed information for a particular project associated @@ -115,7 +115,7 @@ type ProjectDescription struct { PlacementTemplate *PlacementTemplate // The tags (metadata key/value pairs) associated with the project. - Tags map[string]*string + Tags map[string]string } // An object providing summary information for a particular project for an @@ -142,5 +142,5 @@ type ProjectSummary struct { Arn *string // The tags (metadata key/value pairs) associated with the project. - Tags map[string]*string + Tags map[string]string } diff --git a/service/iotanalytics/api_op_BatchPutMessage.go b/service/iotanalytics/api_op_BatchPutMessage.go index 46510ffb734..69354406518 100644 --- a/service/iotanalytics/api_op_BatchPutMessage.go +++ b/service/iotanalytics/api_op_BatchPutMessage.go @@ -61,13 +61,13 @@ type BatchPutMessageInput struct { // {"__temp_01": 29} are invalid in message payloads. // // This member is required. - Messages []*types.Message + Messages []types.Message } type BatchPutMessageOutput struct { // A list of any errors encountered when sending the messages to the channel. - BatchPutMessageErrorEntries []*types.BatchPutMessageErrorEntry + BatchPutMessageErrorEntries []types.BatchPutMessageErrorEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotanalytics/api_op_CreateChannel.go b/service/iotanalytics/api_op_CreateChannel.go index 23a4704df69..6ffd700e223 100644 --- a/service/iotanalytics/api_op_CreateChannel.go +++ b/service/iotanalytics/api_op_CreateChannel.go @@ -45,7 +45,7 @@ type CreateChannelInput struct { RetentionPeriod *types.RetentionPeriod // Metadata which can be used to manage the channel. - Tags []*types.Tag + Tags []types.Tag } type CreateChannelOutput struct { diff --git a/service/iotanalytics/api_op_CreateDataset.go b/service/iotanalytics/api_op_CreateDataset.go index 638005ca34c..77710a36a4e 100644 --- a/service/iotanalytics/api_op_CreateDataset.go +++ b/service/iotanalytics/api_op_CreateDataset.go @@ -36,7 +36,7 @@ type CreateDatasetInput struct { // A list of actions that create the data set contents. // // This member is required. - Actions []*types.DatasetAction + Actions []types.DatasetAction // The name of the data set. // @@ -45,7 +45,7 @@ type CreateDatasetInput struct { // When data set contents are created they are delivered to destinations specified // here. - ContentDeliveryRules []*types.DatasetContentDeliveryRule + ContentDeliveryRules []types.DatasetContentDeliveryRule // [Optional] How long, in days, versions of data set contents are kept for the // data set. If not specified or set to null, versions of data set contents are @@ -56,12 +56,12 @@ type CreateDatasetInput struct { RetentionPeriod *types.RetentionPeriod // Metadata which can be used to manage the data set. - Tags []*types.Tag + Tags []types.Tag // A list of triggers. A trigger causes data set contents to be populated at a // specified time interval or when another data set's contents are created. The // list of triggers can be empty or contain up to five DataSetTrigger objects. - Triggers []*types.DatasetTrigger + Triggers []types.DatasetTrigger // [Optional] How many versions of data set contents are kept. If not specified or // set to null, only the latest version plus the latest succeeded version (if they diff --git a/service/iotanalytics/api_op_CreateDatastore.go b/service/iotanalytics/api_op_CreateDatastore.go index e6e7740e5d3..2b65428232a 100644 --- a/service/iotanalytics/api_op_CreateDatastore.go +++ b/service/iotanalytics/api_op_CreateDatastore.go @@ -44,7 +44,7 @@ type CreateDatastoreInput struct { RetentionPeriod *types.RetentionPeriod // Metadata which can be used to manage the data store. - Tags []*types.Tag + Tags []types.Tag } type CreateDatastoreOutput struct { diff --git a/service/iotanalytics/api_op_CreatePipeline.go b/service/iotanalytics/api_op_CreatePipeline.go index 8de11b699a7..f38a9fb83cd 100644 --- a/service/iotanalytics/api_op_CreatePipeline.go +++ b/service/iotanalytics/api_op_CreatePipeline.go @@ -42,7 +42,7 @@ type CreatePipelineInput struct { // "lambda": { ... } }, ... ] // // This member is required. - PipelineActivities []*types.PipelineActivity + PipelineActivities []types.PipelineActivity // The name of the pipeline. // @@ -50,7 +50,7 @@ type CreatePipelineInput struct { PipelineName *string // Metadata which can be used to manage the pipeline. - Tags []*types.Tag + Tags []types.Tag } type CreatePipelineOutput struct { diff --git a/service/iotanalytics/api_op_DescribeChannel.go b/service/iotanalytics/api_op_DescribeChannel.go index da6d67b54ca..67c9c5d7ef1 100644 --- a/service/iotanalytics/api_op_DescribeChannel.go +++ b/service/iotanalytics/api_op_DescribeChannel.go @@ -37,7 +37,7 @@ type DescribeChannelInput struct { // If true, additional statistical information about the channel is included in the // response. This feature cannot be used with a channel whose S3 storage is // customer-managed. - IncludeStatistics *bool + IncludeStatistics bool } type DescribeChannelOutput struct { diff --git a/service/iotanalytics/api_op_DescribeDatastore.go b/service/iotanalytics/api_op_DescribeDatastore.go index 361ade2d63c..fbf339697e4 100644 --- a/service/iotanalytics/api_op_DescribeDatastore.go +++ b/service/iotanalytics/api_op_DescribeDatastore.go @@ -37,7 +37,7 @@ type DescribeDatastoreInput struct { // If true, additional statistical information about the data store is included in // the response. This feature cannot be used with a data store whose S3 storage is // customer-managed. - IncludeStatistics *bool + IncludeStatistics bool } type DescribeDatastoreOutput struct { diff --git a/service/iotanalytics/api_op_GetDatasetContent.go b/service/iotanalytics/api_op_GetDatasetContent.go index eec26ac16f5..6a26cc88f55 100644 --- a/service/iotanalytics/api_op_GetDatasetContent.go +++ b/service/iotanalytics/api_op_GetDatasetContent.go @@ -45,7 +45,7 @@ type GetDatasetContentInput struct { type GetDatasetContentOutput struct { // A list of "DatasetEntry" objects. - Entries []*types.DatasetEntry + Entries []types.DatasetEntry // The status of the data set content. Status *types.DatasetContentStatus diff --git a/service/iotanalytics/api_op_ListChannels.go b/service/iotanalytics/api_op_ListChannels.go index 5a1cad868e5..aff27e7194f 100644 --- a/service/iotanalytics/api_op_ListChannels.go +++ b/service/iotanalytics/api_op_ListChannels.go @@ -40,7 +40,7 @@ type ListChannelsInput struct { type ListChannelsOutput struct { // A list of "ChannelSummary" objects. - ChannelSummaries []*types.ChannelSummary + ChannelSummaries []types.ChannelSummary // The token to retrieve the next set of results, or null if there are no more // results. diff --git a/service/iotanalytics/api_op_ListDatasetContents.go b/service/iotanalytics/api_op_ListDatasetContents.go index 0aa71c498de..7e1ed552b83 100644 --- a/service/iotanalytics/api_op_ListDatasetContents.go +++ b/service/iotanalytics/api_op_ListDatasetContents.go @@ -55,7 +55,7 @@ type ListDatasetContentsInput struct { type ListDatasetContentsOutput struct { // Summary information about data set contents that have been created. - DatasetContentSummaries []*types.DatasetContentSummary + DatasetContentSummaries []types.DatasetContentSummary // The token to retrieve the next set of results, or null if there are no more // results. diff --git a/service/iotanalytics/api_op_ListDatasets.go b/service/iotanalytics/api_op_ListDatasets.go index cef59b6216a..6f5d4c011fe 100644 --- a/service/iotanalytics/api_op_ListDatasets.go +++ b/service/iotanalytics/api_op_ListDatasets.go @@ -40,7 +40,7 @@ type ListDatasetsInput struct { type ListDatasetsOutput struct { // A list of "DatasetSummary" objects. - DatasetSummaries []*types.DatasetSummary + DatasetSummaries []types.DatasetSummary // The token to retrieve the next set of results, or null if there are no more // results. diff --git a/service/iotanalytics/api_op_ListDatastores.go b/service/iotanalytics/api_op_ListDatastores.go index 86f3dc6ae29..04ca950cabf 100644 --- a/service/iotanalytics/api_op_ListDatastores.go +++ b/service/iotanalytics/api_op_ListDatastores.go @@ -40,7 +40,7 @@ type ListDatastoresInput struct { type ListDatastoresOutput struct { // A list of "DatastoreSummary" objects. - DatastoreSummaries []*types.DatastoreSummary + DatastoreSummaries []types.DatastoreSummary // The token to retrieve the next set of results, or null if there are no more // results. diff --git a/service/iotanalytics/api_op_ListPipelines.go b/service/iotanalytics/api_op_ListPipelines.go index f2d1bffd523..3b644515af2 100644 --- a/service/iotanalytics/api_op_ListPipelines.go +++ b/service/iotanalytics/api_op_ListPipelines.go @@ -44,7 +44,7 @@ type ListPipelinesOutput struct { NextToken *string // A list of "PipelineSummary" objects. - PipelineSummaries []*types.PipelineSummary + PipelineSummaries []types.PipelineSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotanalytics/api_op_ListTagsForResource.go b/service/iotanalytics/api_op_ListTagsForResource.go index 895d70b0b0f..12e68bb9430 100644 --- a/service/iotanalytics/api_op_ListTagsForResource.go +++ b/service/iotanalytics/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags (metadata) which you have assigned to the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotanalytics/api_op_TagResource.go b/service/iotanalytics/api_op_TagResource.go index e81c4c83512..82b41c6a7db 100644 --- a/service/iotanalytics/api_op_TagResource.go +++ b/service/iotanalytics/api_op_TagResource.go @@ -38,7 +38,7 @@ type TagResourceInput struct { // The new or modified tags for the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/iotanalytics/api_op_UntagResource.go b/service/iotanalytics/api_op_UntagResource.go index 6e96438e481..75cc6d79bc7 100644 --- a/service/iotanalytics/api_op_UntagResource.go +++ b/service/iotanalytics/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The keys of those tags which you want to remove. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/iotanalytics/api_op_UpdateDataset.go b/service/iotanalytics/api_op_UpdateDataset.go index 2e8b5a042a2..a0601a75698 100644 --- a/service/iotanalytics/api_op_UpdateDataset.go +++ b/service/iotanalytics/api_op_UpdateDataset.go @@ -32,7 +32,7 @@ type UpdateDatasetInput struct { // A list of "DatasetAction" objects. // // This member is required. - Actions []*types.DatasetAction + Actions []types.DatasetAction // The name of the data set to update. // @@ -41,14 +41,14 @@ type UpdateDatasetInput struct { // When data set contents are created they are delivered to destinations specified // here. - ContentDeliveryRules []*types.DatasetContentDeliveryRule + ContentDeliveryRules []types.DatasetContentDeliveryRule // How long, in days, data set contents are kept for the data set. RetentionPeriod *types.RetentionPeriod // A list of "DatasetTrigger" objects. The list can be empty or can contain up to // five DataSetTrigger objects. - Triggers []*types.DatasetTrigger + Triggers []types.DatasetTrigger // [Optional] How many versions of data set contents are kept. If not specified or // set to null, only the latest version plus the latest succeeded version (if they diff --git a/service/iotanalytics/api_op_UpdatePipeline.go b/service/iotanalytics/api_op_UpdatePipeline.go index 2b4f155b066..de654995908 100644 --- a/service/iotanalytics/api_op_UpdatePipeline.go +++ b/service/iotanalytics/api_op_UpdatePipeline.go @@ -41,7 +41,7 @@ type UpdatePipelineInput struct { // "lambda": { ... } }, ... ] // // This member is required. - PipelineActivities []*types.PipelineActivity + PipelineActivities []types.PipelineActivity // The name of the pipeline to update. // diff --git a/service/iotanalytics/deserializers.go b/service/iotanalytics/deserializers.go index 57c235f8961..5ff19dceff3 100644 --- a/service/iotanalytics/deserializers.go +++ b/service/iotanalytics/deserializers.go @@ -428,7 +428,7 @@ func awsRestjson1_deserializeOpDocumentCreateChannelOutput(v **CreateChannelOutp if !ok { return fmt.Errorf("expected ChannelArn to be of type string, got %T instead", value) } - sv.ChannelArn = &jtv + sv.ChannelArn = ptr.String(jtv) } case "channelName": @@ -437,7 +437,7 @@ func awsRestjson1_deserializeOpDocumentCreateChannelOutput(v **CreateChannelOutp if !ok { return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) } - sv.ChannelName = &jtv + sv.ChannelName = ptr.String(jtv) } case "retentionPeriod": @@ -608,7 +608,7 @@ func awsRestjson1_deserializeOpDocumentCreateDatasetOutput(v **CreateDatasetOutp if !ok { return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) } - sv.DatasetArn = &jtv + sv.DatasetArn = ptr.String(jtv) } case "datasetName": @@ -617,7 +617,7 @@ func awsRestjson1_deserializeOpDocumentCreateDatasetOutput(v **CreateDatasetOutp if !ok { return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) } - sv.DatasetName = &jtv + sv.DatasetName = ptr.String(jtv) } case "retentionPeriod": @@ -785,7 +785,7 @@ func awsRestjson1_deserializeOpDocumentCreateDatasetContentOutput(v **CreateData if !ok { return fmt.Errorf("expected DatasetContentVersion to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -951,7 +951,7 @@ func awsRestjson1_deserializeOpDocumentCreateDatastoreOutput(v **CreateDatastore if !ok { return fmt.Errorf("expected DatastoreArn to be of type string, got %T instead", value) } - sv.DatastoreArn = &jtv + sv.DatastoreArn = ptr.String(jtv) } case "datastoreName": @@ -960,7 +960,7 @@ func awsRestjson1_deserializeOpDocumentCreateDatastoreOutput(v **CreateDatastore if !ok { return fmt.Errorf("expected DatastoreName to be of type string, got %T instead", value) } - sv.DatastoreName = &jtv + sv.DatastoreName = ptr.String(jtv) } case "retentionPeriod": @@ -1131,7 +1131,7 @@ func awsRestjson1_deserializeOpDocumentCreatePipelineOutput(v **CreatePipelineOu if !ok { return fmt.Errorf("expected PipelineArn to be of type string, got %T instead", value) } - sv.PipelineArn = &jtv + sv.PipelineArn = ptr.String(jtv) } case "pipelineName": @@ -1140,7 +1140,7 @@ func awsRestjson1_deserializeOpDocumentCreatePipelineOutput(v **CreatePipelineOu if !ok { return fmt.Errorf("expected PipelineName to be of type string, got %T instead", value) } - sv.PipelineName = &jtv + sv.PipelineName = ptr.String(jtv) } default: @@ -2762,7 +2762,7 @@ func awsRestjson1_deserializeOpDocumentListChannelsOutput(v **ListChannelsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2930,7 +2930,7 @@ func awsRestjson1_deserializeOpDocumentListDatasetContentsOutput(v **ListDataset if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3095,7 +3095,7 @@ func awsRestjson1_deserializeOpDocumentListDatasetsOutput(v **ListDatasetsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3260,7 +3260,7 @@ func awsRestjson1_deserializeOpDocumentListDatastoresOutput(v **ListDatastoresOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3420,7 +3420,7 @@ func awsRestjson1_deserializeOpDocumentListPipelinesOutput(v **ListPipelinesOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "pipelineSummaries": @@ -3839,7 +3839,7 @@ func awsRestjson1_deserializeOpDocumentRunPipelineActivityOutput(v **RunPipeline if !ok { return fmt.Errorf("expected LogResult to be of type string, got %T instead", value) } - sv.LogResult = &jtv + sv.LogResult = ptr.String(jtv) } case "payloads": @@ -4169,7 +4169,7 @@ func awsRestjson1_deserializeOpDocumentStartPipelineReprocessingOutput(v **Start if !ok { return fmt.Errorf("expected ReprocessingId to be of type string, got %T instead", value) } - sv.ReprocessingId = &jtv + sv.ReprocessingId = ptr.String(jtv) } default: @@ -5045,7 +5045,7 @@ func awsRestjson1_deserializeDocumentAddAttributesActivity(v **types.AddAttribut if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "next": @@ -5054,7 +5054,7 @@ func awsRestjson1_deserializeDocumentAddAttributesActivity(v **types.AddAttribut if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Next = &jtv + sv.Next = ptr.String(jtv) } default: @@ -5066,7 +5066,7 @@ func awsRestjson1_deserializeDocumentAddAttributesActivity(v **types.AddAttribut return nil } -func awsRestjson1_deserializeDocumentAttributeNameMapping(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAttributeNameMapping(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5079,21 +5079,21 @@ func awsRestjson1_deserializeDocumentAttributeNameMapping(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -5102,7 +5102,7 @@ func awsRestjson1_deserializeDocumentAttributeNameMapping(v *map[string]*string, return nil } -func awsRestjson1_deserializeDocumentAttributeNames(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAttributeNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5115,21 +5115,21 @@ func awsRestjson1_deserializeDocumentAttributeNames(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5138,7 +5138,7 @@ func awsRestjson1_deserializeDocumentAttributeNames(v *[]*string, value interfac return nil } -func awsRestjson1_deserializeDocumentBatchPutMessageErrorEntries(v *[]*types.BatchPutMessageErrorEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchPutMessageErrorEntries(v *[]types.BatchPutMessageErrorEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5151,18 +5151,20 @@ func awsRestjson1_deserializeDocumentBatchPutMessageErrorEntries(v *[]*types.Bat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchPutMessageErrorEntry + var cv []types.BatchPutMessageErrorEntry if *v == nil { - cv = []*types.BatchPutMessageErrorEntry{} + cv = []types.BatchPutMessageErrorEntry{} } else { cv = *v } for _, value := range shape { - var col *types.BatchPutMessageErrorEntry - if err := awsRestjson1_deserializeDocumentBatchPutMessageErrorEntry(&col, value); err != nil { + var col types.BatchPutMessageErrorEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchPutMessageErrorEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5198,7 +5200,7 @@ func awsRestjson1_deserializeDocumentBatchPutMessageErrorEntry(v **types.BatchPu if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "errorMessage": @@ -5207,7 +5209,7 @@ func awsRestjson1_deserializeDocumentBatchPutMessageErrorEntry(v **types.BatchPu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "messageId": @@ -5216,7 +5218,7 @@ func awsRestjson1_deserializeDocumentBatchPutMessageErrorEntry(v **types.BatchPu if !ok { return fmt.Errorf("expected MessageId to be of type string, got %T instead", value) } - sv.MessageId = &jtv + sv.MessageId = ptr.String(jtv) } default: @@ -5256,7 +5258,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected ChannelArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationTime": @@ -5291,7 +5293,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "retentionPeriod": @@ -5350,7 +5352,7 @@ func awsRestjson1_deserializeDocumentChannelActivity(v **types.ChannelActivity, if !ok { return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) } - sv.ChannelName = &jtv + sv.ChannelName = ptr.String(jtv) } case "name": @@ -5359,7 +5361,7 @@ func awsRestjson1_deserializeDocumentChannelActivity(v **types.ChannelActivity, if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "next": @@ -5368,7 +5370,7 @@ func awsRestjson1_deserializeDocumentChannelActivity(v **types.ChannelActivity, if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Next = &jtv + sv.Next = ptr.String(jtv) } default: @@ -5498,7 +5500,7 @@ func awsRestjson1_deserializeDocumentChannelStorageSummary(v **types.ChannelStor return nil } -func awsRestjson1_deserializeDocumentChannelSummaries(v *[]*types.ChannelSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentChannelSummaries(v *[]types.ChannelSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5511,18 +5513,20 @@ func awsRestjson1_deserializeDocumentChannelSummaries(v *[]*types.ChannelSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ChannelSummary + var cv []types.ChannelSummary if *v == nil { - cv = []*types.ChannelSummary{} + cv = []types.ChannelSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ChannelSummary - if err := awsRestjson1_deserializeDocumentChannelSummary(&col, value); err != nil { + var col types.ChannelSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentChannelSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5558,7 +5562,7 @@ func awsRestjson1_deserializeDocumentChannelSummary(v **types.ChannelSummary, va if !ok { return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) } - sv.ChannelName = &jtv + sv.ChannelName = ptr.String(jtv) } case "channelStorage": @@ -5638,7 +5642,7 @@ func awsRestjson1_deserializeDocumentContainerDatasetAction(v **types.ContainerD if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.ExecutionRoleArn = &jtv + sv.ExecutionRoleArn = ptr.String(jtv) } case "image": @@ -5647,7 +5651,7 @@ func awsRestjson1_deserializeDocumentContainerDatasetAction(v **types.ContainerD if !ok { return fmt.Errorf("expected Image to be of type string, got %T instead", value) } - sv.Image = &jtv + sv.Image = ptr.String(jtv) } case "resourceConfiguration": @@ -5697,7 +5701,7 @@ func awsRestjson1_deserializeDocumentCustomerManagedChannelS3Storage(v **types.C if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "keyPrefix": @@ -5706,7 +5710,7 @@ func awsRestjson1_deserializeDocumentCustomerManagedChannelS3Storage(v **types.C if !ok { return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) } - sv.KeyPrefix = &jtv + sv.KeyPrefix = ptr.String(jtv) } case "roleArn": @@ -5715,7 +5719,7 @@ func awsRestjson1_deserializeDocumentCustomerManagedChannelS3Storage(v **types.C if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -5755,7 +5759,7 @@ func awsRestjson1_deserializeDocumentCustomerManagedChannelS3StorageSummary(v ** if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "keyPrefix": @@ -5764,7 +5768,7 @@ func awsRestjson1_deserializeDocumentCustomerManagedChannelS3StorageSummary(v ** if !ok { return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) } - sv.KeyPrefix = &jtv + sv.KeyPrefix = ptr.String(jtv) } case "roleArn": @@ -5773,7 +5777,7 @@ func awsRestjson1_deserializeDocumentCustomerManagedChannelS3StorageSummary(v ** if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -5813,7 +5817,7 @@ func awsRestjson1_deserializeDocumentCustomerManagedDatastoreS3Storage(v **types if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "keyPrefix": @@ -5822,7 +5826,7 @@ func awsRestjson1_deserializeDocumentCustomerManagedDatastoreS3Storage(v **types if !ok { return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) } - sv.KeyPrefix = &jtv + sv.KeyPrefix = ptr.String(jtv) } case "roleArn": @@ -5831,7 +5835,7 @@ func awsRestjson1_deserializeDocumentCustomerManagedDatastoreS3Storage(v **types if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -5871,7 +5875,7 @@ func awsRestjson1_deserializeDocumentCustomerManagedDatastoreS3StorageSummary(v if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "keyPrefix": @@ -5880,7 +5884,7 @@ func awsRestjson1_deserializeDocumentCustomerManagedDatastoreS3StorageSummary(v if !ok { return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) } - sv.KeyPrefix = &jtv + sv.KeyPrefix = ptr.String(jtv) } case "roleArn": @@ -5889,7 +5893,7 @@ func awsRestjson1_deserializeDocumentCustomerManagedDatastoreS3StorageSummary(v if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -5934,7 +5938,7 @@ func awsRestjson1_deserializeDocumentDataset(v **types.Dataset, value interface{ if !ok { return fmt.Errorf("expected DatasetArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "contentDeliveryRules": @@ -5974,7 +5978,7 @@ func awsRestjson1_deserializeDocumentDataset(v **types.Dataset, value interface{ if !ok { return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "retentionPeriod": @@ -6038,7 +6042,7 @@ func awsRestjson1_deserializeDocumentDatasetAction(v **types.DatasetAction, valu if !ok { return fmt.Errorf("expected DatasetActionName to be of type string, got %T instead", value) } - sv.ActionName = &jtv + sv.ActionName = ptr.String(jtv) } case "containerAction": @@ -6060,7 +6064,7 @@ func awsRestjson1_deserializeDocumentDatasetAction(v **types.DatasetAction, valu return nil } -func awsRestjson1_deserializeDocumentDatasetActions(v *[]*types.DatasetAction, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetActions(v *[]types.DatasetAction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6073,18 +6077,20 @@ func awsRestjson1_deserializeDocumentDatasetActions(v *[]*types.DatasetAction, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetAction + var cv []types.DatasetAction if *v == nil { - cv = []*types.DatasetAction{} + cv = []types.DatasetAction{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetAction - if err := awsRestjson1_deserializeDocumentDatasetAction(&col, value); err != nil { + var col types.DatasetAction + destAddr := &col + if err := awsRestjson1_deserializeDocumentDatasetAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6092,7 +6098,7 @@ func awsRestjson1_deserializeDocumentDatasetActions(v *[]*types.DatasetAction, v return nil } -func awsRestjson1_deserializeDocumentDatasetActionSummaries(v *[]*types.DatasetActionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetActionSummaries(v *[]types.DatasetActionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6105,18 +6111,20 @@ func awsRestjson1_deserializeDocumentDatasetActionSummaries(v *[]*types.DatasetA return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetActionSummary + var cv []types.DatasetActionSummary if *v == nil { - cv = []*types.DatasetActionSummary{} + cv = []types.DatasetActionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetActionSummary - if err := awsRestjson1_deserializeDocumentDatasetActionSummary(&col, value); err != nil { + var col types.DatasetActionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDatasetActionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6152,7 +6160,7 @@ func awsRestjson1_deserializeDocumentDatasetActionSummary(v **types.DatasetActio if !ok { return fmt.Errorf("expected DatasetActionName to be of type string, got %T instead", value) } - sv.ActionName = &jtv + sv.ActionName = ptr.String(jtv) } case "actionType": @@ -6247,7 +6255,7 @@ func awsRestjson1_deserializeDocumentDatasetContentDeliveryRule(v **types.Datase if !ok { return fmt.Errorf("expected EntryName to be of type string, got %T instead", value) } - sv.EntryName = &jtv + sv.EntryName = ptr.String(jtv) } default: @@ -6259,7 +6267,7 @@ func awsRestjson1_deserializeDocumentDatasetContentDeliveryRule(v **types.Datase return nil } -func awsRestjson1_deserializeDocumentDatasetContentDeliveryRules(v *[]*types.DatasetContentDeliveryRule, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetContentDeliveryRules(v *[]types.DatasetContentDeliveryRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6272,18 +6280,20 @@ func awsRestjson1_deserializeDocumentDatasetContentDeliveryRules(v *[]*types.Dat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetContentDeliveryRule + var cv []types.DatasetContentDeliveryRule if *v == nil { - cv = []*types.DatasetContentDeliveryRule{} + cv = []types.DatasetContentDeliveryRule{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetContentDeliveryRule - if err := awsRestjson1_deserializeDocumentDatasetContentDeliveryRule(&col, value); err != nil { + var col types.DatasetContentDeliveryRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentDatasetContentDeliveryRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6319,7 +6329,7 @@ func awsRestjson1_deserializeDocumentDatasetContentStatus(v **types.DatasetConte if !ok { return fmt.Errorf("expected Reason to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "state": @@ -6340,7 +6350,7 @@ func awsRestjson1_deserializeDocumentDatasetContentStatus(v **types.DatasetConte return nil } -func awsRestjson1_deserializeDocumentDatasetContentSummaries(v *[]*types.DatasetContentSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetContentSummaries(v *[]types.DatasetContentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6353,18 +6363,20 @@ func awsRestjson1_deserializeDocumentDatasetContentSummaries(v *[]*types.Dataset return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetContentSummary + var cv []types.DatasetContentSummary if *v == nil { - cv = []*types.DatasetContentSummary{} + cv = []types.DatasetContentSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetContentSummary - if err := awsRestjson1_deserializeDocumentDatasetContentSummary(&col, value); err != nil { + var col types.DatasetContentSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDatasetContentSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6444,7 +6456,7 @@ func awsRestjson1_deserializeDocumentDatasetContentSummary(v **types.DatasetCont if !ok { return fmt.Errorf("expected DatasetContentVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -6484,7 +6496,7 @@ func awsRestjson1_deserializeDocumentDatasetContentVersionValue(v **types.Datase if !ok { return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) } - sv.DatasetName = &jtv + sv.DatasetName = ptr.String(jtv) } default: @@ -6496,7 +6508,7 @@ func awsRestjson1_deserializeDocumentDatasetContentVersionValue(v **types.Datase return nil } -func awsRestjson1_deserializeDocumentDatasetEntries(v *[]*types.DatasetEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetEntries(v *[]types.DatasetEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6509,18 +6521,20 @@ func awsRestjson1_deserializeDocumentDatasetEntries(v *[]*types.DatasetEntry, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetEntry + var cv []types.DatasetEntry if *v == nil { - cv = []*types.DatasetEntry{} + cv = []types.DatasetEntry{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetEntry - if err := awsRestjson1_deserializeDocumentDatasetEntry(&col, value); err != nil { + var col types.DatasetEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentDatasetEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6556,7 +6570,7 @@ func awsRestjson1_deserializeDocumentDatasetEntry(v **types.DatasetEntry, value if !ok { return fmt.Errorf("expected PresignedURI to be of type string, got %T instead", value) } - sv.DataURI = &jtv + sv.DataURI = ptr.String(jtv) } case "entryName": @@ -6565,7 +6579,7 @@ func awsRestjson1_deserializeDocumentDatasetEntry(v **types.DatasetEntry, value if !ok { return fmt.Errorf("expected EntryName to be of type string, got %T instead", value) } - sv.EntryName = &jtv + sv.EntryName = ptr.String(jtv) } default: @@ -6577,7 +6591,7 @@ func awsRestjson1_deserializeDocumentDatasetEntry(v **types.DatasetEntry, value return nil } -func awsRestjson1_deserializeDocumentDatasetSummaries(v *[]*types.DatasetSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetSummaries(v *[]types.DatasetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6590,18 +6604,20 @@ func awsRestjson1_deserializeDocumentDatasetSummaries(v *[]*types.DatasetSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetSummary + var cv []types.DatasetSummary if *v == nil { - cv = []*types.DatasetSummary{} + cv = []types.DatasetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetSummary - if err := awsRestjson1_deserializeDocumentDatasetSummary(&col, value); err != nil { + var col types.DatasetSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDatasetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6655,7 +6671,7 @@ func awsRestjson1_deserializeDocumentDatasetSummary(v **types.DatasetSummary, va if !ok { return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) } - sv.DatasetName = &jtv + sv.DatasetName = ptr.String(jtv) } case "lastUpdateTime": @@ -6735,7 +6751,7 @@ func awsRestjson1_deserializeDocumentDatasetTrigger(v **types.DatasetTrigger, va return nil } -func awsRestjson1_deserializeDocumentDatasetTriggers(v *[]*types.DatasetTrigger, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetTriggers(v *[]types.DatasetTrigger, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6748,18 +6764,20 @@ func awsRestjson1_deserializeDocumentDatasetTriggers(v *[]*types.DatasetTrigger, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetTrigger + var cv []types.DatasetTrigger if *v == nil { - cv = []*types.DatasetTrigger{} + cv = []types.DatasetTrigger{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetTrigger - if err := awsRestjson1_deserializeDocumentDatasetTrigger(&col, value); err != nil { + var col types.DatasetTrigger + destAddr := &col + if err := awsRestjson1_deserializeDocumentDatasetTrigger(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6795,7 +6813,7 @@ func awsRestjson1_deserializeDocumentDatastore(v **types.Datastore, value interf if !ok { return fmt.Errorf("expected DatastoreArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationTime": @@ -6830,7 +6848,7 @@ func awsRestjson1_deserializeDocumentDatastore(v **types.Datastore, value interf if !ok { return fmt.Errorf("expected DatastoreName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "retentionPeriod": @@ -6889,7 +6907,7 @@ func awsRestjson1_deserializeDocumentDatastoreActivity(v **types.DatastoreActivi if !ok { return fmt.Errorf("expected DatastoreName to be of type string, got %T instead", value) } - sv.DatastoreName = &jtv + sv.DatastoreName = ptr.String(jtv) } case "name": @@ -6898,7 +6916,7 @@ func awsRestjson1_deserializeDocumentDatastoreActivity(v **types.DatastoreActivi if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7028,7 +7046,7 @@ func awsRestjson1_deserializeDocumentDatastoreStorageSummary(v **types.Datastore return nil } -func awsRestjson1_deserializeDocumentDatastoreSummaries(v *[]*types.DatastoreSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDatastoreSummaries(v *[]types.DatastoreSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7041,18 +7059,20 @@ func awsRestjson1_deserializeDocumentDatastoreSummaries(v *[]*types.DatastoreSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatastoreSummary + var cv []types.DatastoreSummary if *v == nil { - cv = []*types.DatastoreSummary{} + cv = []types.DatastoreSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DatastoreSummary - if err := awsRestjson1_deserializeDocumentDatastoreSummary(&col, value); err != nil { + var col types.DatastoreSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDatastoreSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7101,7 +7121,7 @@ func awsRestjson1_deserializeDocumentDatastoreSummary(v **types.DatastoreSummary if !ok { return fmt.Errorf("expected DatastoreName to be of type string, got %T instead", value) } - sv.DatastoreName = &jtv + sv.DatastoreName = ptr.String(jtv) } case "datastoreStorage": @@ -7181,7 +7201,7 @@ func awsRestjson1_deserializeDocumentDeltaTime(v **types.DeltaTime, value interf if !ok { return fmt.Errorf("expected TimeExpression to be of type string, got %T instead", value) } - sv.TimeExpression = &jtv + sv.TimeExpression = ptr.String(jtv) } default: @@ -7221,7 +7241,7 @@ func awsRestjson1_deserializeDocumentDeviceRegistryEnrichActivity(v **types.Devi if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - sv.Attribute = &jtv + sv.Attribute = ptr.String(jtv) } case "name": @@ -7230,7 +7250,7 @@ func awsRestjson1_deserializeDocumentDeviceRegistryEnrichActivity(v **types.Devi if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "next": @@ -7239,7 +7259,7 @@ func awsRestjson1_deserializeDocumentDeviceRegistryEnrichActivity(v **types.Devi if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Next = &jtv + sv.Next = ptr.String(jtv) } case "roleArn": @@ -7248,7 +7268,7 @@ func awsRestjson1_deserializeDocumentDeviceRegistryEnrichActivity(v **types.Devi if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "thingName": @@ -7257,7 +7277,7 @@ func awsRestjson1_deserializeDocumentDeviceRegistryEnrichActivity(v **types.Devi if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - sv.ThingName = &jtv + sv.ThingName = ptr.String(jtv) } default: @@ -7297,7 +7317,7 @@ func awsRestjson1_deserializeDocumentDeviceShadowEnrichActivity(v **types.Device if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - sv.Attribute = &jtv + sv.Attribute = ptr.String(jtv) } case "name": @@ -7306,7 +7326,7 @@ func awsRestjson1_deserializeDocumentDeviceShadowEnrichActivity(v **types.Device if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "next": @@ -7315,7 +7335,7 @@ func awsRestjson1_deserializeDocumentDeviceShadowEnrichActivity(v **types.Device if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Next = &jtv + sv.Next = ptr.String(jtv) } case "roleArn": @@ -7324,7 +7344,7 @@ func awsRestjson1_deserializeDocumentDeviceShadowEnrichActivity(v **types.Device if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "thingName": @@ -7333,7 +7353,7 @@ func awsRestjson1_deserializeDocumentDeviceShadowEnrichActivity(v **types.Device if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - sv.ThingName = &jtv + sv.ThingName = ptr.String(jtv) } default: @@ -7390,7 +7410,7 @@ func awsRestjson1_deserializeDocumentEstimatedResourceSize(v **types.EstimatedRe if err != nil { return err } - sv.EstimatedSizeInBytes = &f64 + sv.EstimatedSizeInBytes = ptr.Float64(f64) } default: @@ -7430,7 +7450,7 @@ func awsRestjson1_deserializeDocumentFilterActivity(v **types.FilterActivity, va if !ok { return fmt.Errorf("expected FilterExpression to be of type string, got %T instead", value) } - sv.Filter = &jtv + sv.Filter = ptr.String(jtv) } case "name": @@ -7439,7 +7459,7 @@ func awsRestjson1_deserializeDocumentFilterActivity(v **types.FilterActivity, va if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "next": @@ -7448,7 +7468,7 @@ func awsRestjson1_deserializeDocumentFilterActivity(v **types.FilterActivity, va if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Next = &jtv + sv.Next = ptr.String(jtv) } default: @@ -7488,7 +7508,7 @@ func awsRestjson1_deserializeDocumentGlueConfiguration(v **types.GlueConfigurati if !ok { return fmt.Errorf("expected GlueDatabaseName to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "tableName": @@ -7497,7 +7517,7 @@ func awsRestjson1_deserializeDocumentGlueConfiguration(v **types.GlueConfigurati if !ok { return fmt.Errorf("expected GlueTableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -7537,7 +7557,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7577,7 +7597,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7617,7 +7637,7 @@ func awsRestjson1_deserializeDocumentIotEventsDestinationConfiguration(v **types if !ok { return fmt.Errorf("expected IotEventsInputName to be of type string, got %T instead", value) } - sv.InputName = &jtv + sv.InputName = ptr.String(jtv) } case "roleArn": @@ -7626,7 +7646,7 @@ func awsRestjson1_deserializeDocumentIotEventsDestinationConfiguration(v **types if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -7679,7 +7699,7 @@ func awsRestjson1_deserializeDocumentLambdaActivity(v **types.LambdaActivity, va if !ok { return fmt.Errorf("expected LambdaName to be of type string, got %T instead", value) } - sv.LambdaName = &jtv + sv.LambdaName = ptr.String(jtv) } case "name": @@ -7688,7 +7708,7 @@ func awsRestjson1_deserializeDocumentLambdaActivity(v **types.LambdaActivity, va if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "next": @@ -7697,7 +7717,7 @@ func awsRestjson1_deserializeDocumentLambdaActivity(v **types.LambdaActivity, va if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Next = &jtv + sv.Next = ptr.String(jtv) } default: @@ -7737,7 +7757,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7777,7 +7797,7 @@ func awsRestjson1_deserializeDocumentLoggingOptions(v **types.LoggingOptions, va if !ok { return fmt.Errorf("expected LoggingEnabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "level": @@ -7795,7 +7815,7 @@ func awsRestjson1_deserializeDocumentLoggingOptions(v **types.LoggingOptions, va if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -7835,7 +7855,7 @@ func awsRestjson1_deserializeDocumentMathActivity(v **types.MathActivity, value if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - sv.Attribute = &jtv + sv.Attribute = ptr.String(jtv) } case "math": @@ -7844,7 +7864,7 @@ func awsRestjson1_deserializeDocumentMathActivity(v **types.MathActivity, value if !ok { return fmt.Errorf("expected MathExpression to be of type string, got %T instead", value) } - sv.Math = &jtv + sv.Math = ptr.String(jtv) } case "name": @@ -7853,7 +7873,7 @@ func awsRestjson1_deserializeDocumentMathActivity(v **types.MathActivity, value if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "next": @@ -7862,7 +7882,7 @@ func awsRestjson1_deserializeDocumentMathActivity(v **types.MathActivity, value if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Next = &jtv + sv.Next = ptr.String(jtv) } default: @@ -7942,7 +7962,7 @@ func awsRestjson1_deserializeDocumentOutputFileUriValue(v **types.OutputFileUriV if !ok { return fmt.Errorf("expected OutputFileName to be of type string, got %T instead", value) } - sv.FileName = &jtv + sv.FileName = ptr.String(jtv) } default: @@ -7987,7 +8007,7 @@ func awsRestjson1_deserializeDocumentPipeline(v **types.Pipeline, value interfac if !ok { return fmt.Errorf("expected PipelineArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationTime": @@ -8022,7 +8042,7 @@ func awsRestjson1_deserializeDocumentPipeline(v **types.Pipeline, value interfac if !ok { return fmt.Errorf("expected PipelineName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "reprocessingSummaries": @@ -8039,7 +8059,7 @@ func awsRestjson1_deserializeDocumentPipeline(v **types.Pipeline, value interfac return nil } -func awsRestjson1_deserializeDocumentPipelineActivities(v *[]*types.PipelineActivity, value interface{}) error { +func awsRestjson1_deserializeDocumentPipelineActivities(v *[]types.PipelineActivity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8052,18 +8072,20 @@ func awsRestjson1_deserializeDocumentPipelineActivities(v *[]*types.PipelineActi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PipelineActivity + var cv []types.PipelineActivity if *v == nil { - cv = []*types.PipelineActivity{} + cv = []types.PipelineActivity{} } else { cv = *v } for _, value := range shape { - var col *types.PipelineActivity - if err := awsRestjson1_deserializeDocumentPipelineActivity(&col, value); err != nil { + var col types.PipelineActivity + destAddr := &col + if err := awsRestjson1_deserializeDocumentPipelineActivity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8152,7 +8174,7 @@ func awsRestjson1_deserializeDocumentPipelineActivity(v **types.PipelineActivity return nil } -func awsRestjson1_deserializeDocumentPipelineSummaries(v *[]*types.PipelineSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentPipelineSummaries(v *[]types.PipelineSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8165,18 +8187,20 @@ func awsRestjson1_deserializeDocumentPipelineSummaries(v *[]*types.PipelineSumma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PipelineSummary + var cv []types.PipelineSummary if *v == nil { - cv = []*types.PipelineSummary{} + cv = []types.PipelineSummary{} } else { cv = *v } for _, value := range shape { - var col *types.PipelineSummary - if err := awsRestjson1_deserializeDocumentPipelineSummary(&col, value); err != nil { + var col types.PipelineSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentPipelineSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8238,7 +8262,7 @@ func awsRestjson1_deserializeDocumentPipelineSummary(v **types.PipelineSummary, if !ok { return fmt.Errorf("expected PipelineName to be of type string, got %T instead", value) } - sv.PipelineName = &jtv + sv.PipelineName = ptr.String(jtv) } case "reprocessingSummaries": @@ -8291,7 +8315,7 @@ func awsRestjson1_deserializeDocumentQueryFilter(v **types.QueryFilter, value in return nil } -func awsRestjson1_deserializeDocumentQueryFilters(v *[]*types.QueryFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentQueryFilters(v *[]types.QueryFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8304,18 +8328,20 @@ func awsRestjson1_deserializeDocumentQueryFilters(v *[]*types.QueryFilter, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.QueryFilter + var cv []types.QueryFilter if *v == nil { - cv = []*types.QueryFilter{} + cv = []types.QueryFilter{} } else { cv = *v } for _, value := range shape { - var col *types.QueryFilter - if err := awsRestjson1_deserializeDocumentQueryFilter(&col, value); err != nil { + var col types.QueryFilter + destAddr := &col + if err := awsRestjson1_deserializeDocumentQueryFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8356,7 +8382,7 @@ func awsRestjson1_deserializeDocumentRemoveAttributesActivity(v **types.RemoveAt if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "next": @@ -8365,7 +8391,7 @@ func awsRestjson1_deserializeDocumentRemoveAttributesActivity(v **types.RemoveAt if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Next = &jtv + sv.Next = ptr.String(jtv) } default: @@ -8377,7 +8403,7 @@ func awsRestjson1_deserializeDocumentRemoveAttributesActivity(v **types.RemoveAt return nil } -func awsRestjson1_deserializeDocumentReprocessingSummaries(v *[]*types.ReprocessingSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentReprocessingSummaries(v *[]types.ReprocessingSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8390,18 +8416,20 @@ func awsRestjson1_deserializeDocumentReprocessingSummaries(v *[]*types.Reprocess return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReprocessingSummary + var cv []types.ReprocessingSummary if *v == nil { - cv = []*types.ReprocessingSummary{} + cv = []types.ReprocessingSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ReprocessingSummary - if err := awsRestjson1_deserializeDocumentReprocessingSummary(&col, value); err != nil { + var col types.ReprocessingSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentReprocessingSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8450,7 +8478,7 @@ func awsRestjson1_deserializeDocumentReprocessingSummary(v **types.ReprocessingS if !ok { return fmt.Errorf("expected ReprocessingId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "status": @@ -8499,7 +8527,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceArn": @@ -8508,7 +8536,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ResourceArn2 to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "resourceId": @@ -8517,7 +8545,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected resourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } default: @@ -8570,7 +8598,7 @@ func awsRestjson1_deserializeDocumentResourceConfiguration(v **types.ResourceCon if err != nil { return err } - sv.VolumeSizeInGB = ptr.Int32(int32(i64)) + sv.VolumeSizeInGB = int32(i64) } default: @@ -8610,7 +8638,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8663,7 +8691,7 @@ func awsRestjson1_deserializeDocumentRetentionPeriod(v **types.RetentionPeriod, if !ok { return fmt.Errorf("expected UnlimitedRetentionPeriod to be of type *bool, got %T instead", value) } - sv.Unlimited = &jtv + sv.Unlimited = jtv } default: @@ -8703,7 +8731,7 @@ func awsRestjson1_deserializeDocumentS3DestinationConfiguration(v **types.S3Dest if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "glueConfiguration": @@ -8717,7 +8745,7 @@ func awsRestjson1_deserializeDocumentS3DestinationConfiguration(v **types.S3Dest if !ok { return fmt.Errorf("expected BucketKeyExpression to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "roleArn": @@ -8726,7 +8754,7 @@ func awsRestjson1_deserializeDocumentS3DestinationConfiguration(v **types.S3Dest if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -8766,7 +8794,7 @@ func awsRestjson1_deserializeDocumentSchedule(v **types.Schedule, value interfac if !ok { return fmt.Errorf("expected ScheduleExpression to be of type string, got %T instead", value) } - sv.Expression = &jtv + sv.Expression = ptr.String(jtv) } default: @@ -8811,7 +8839,7 @@ func awsRestjson1_deserializeDocumentSelectAttributesActivity(v **types.SelectAt if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "next": @@ -8820,7 +8848,7 @@ func awsRestjson1_deserializeDocumentSelectAttributesActivity(v **types.SelectAt if !ok { return fmt.Errorf("expected ActivityName to be of type string, got %T instead", value) } - sv.Next = &jtv + sv.Next = ptr.String(jtv) } default: @@ -8984,7 +9012,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9029,7 +9057,7 @@ func awsRestjson1_deserializeDocumentSqlQueryDatasetAction(v **types.SqlQueryDat if !ok { return fmt.Errorf("expected SqlQuery to be of type string, got %T instead", value) } - sv.SqlQuery = &jtv + sv.SqlQuery = ptr.String(jtv) } default: @@ -9069,7 +9097,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -9078,7 +9106,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -9090,7 +9118,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9103,18 +9131,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9150,7 +9180,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9190,7 +9220,7 @@ func awsRestjson1_deserializeDocumentTriggeringDataset(v **types.TriggeringDatas if !ok { return fmt.Errorf("expected DatasetName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -9239,7 +9269,7 @@ func awsRestjson1_deserializeDocumentVariable(v **types.Variable, value interfac if err != nil { return err } - sv.DoubleValue = &f64 + sv.DoubleValue = f64 } case "name": @@ -9248,7 +9278,7 @@ func awsRestjson1_deserializeDocumentVariable(v **types.Variable, value interfac if !ok { return fmt.Errorf("expected VariableName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "outputFileUriValue": @@ -9262,7 +9292,7 @@ func awsRestjson1_deserializeDocumentVariable(v **types.Variable, value interfac if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } default: @@ -9274,7 +9304,7 @@ func awsRestjson1_deserializeDocumentVariable(v **types.Variable, value interfac return nil } -func awsRestjson1_deserializeDocumentVariables(v *[]*types.Variable, value interface{}) error { +func awsRestjson1_deserializeDocumentVariables(v *[]types.Variable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9287,18 +9317,20 @@ func awsRestjson1_deserializeDocumentVariables(v *[]*types.Variable, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Variable + var cv []types.Variable if *v == nil { - cv = []*types.Variable{} + cv = []types.Variable{} } else { cv = *v } for _, value := range shape { - var col *types.Variable - if err := awsRestjson1_deserializeDocumentVariable(&col, value); err != nil { + var col types.Variable + destAddr := &col + if err := awsRestjson1_deserializeDocumentVariable(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9347,7 +9379,7 @@ func awsRestjson1_deserializeDocumentVersioningConfiguration(v **types.Versionin if !ok { return fmt.Errorf("expected UnlimitedVersioning to be of type *bool, got %T instead", value) } - sv.Unlimited = &jtv + sv.Unlimited = jtv } default: diff --git a/service/iotanalytics/go.mod b/service/iotanalytics/go.mod index 60199811189..5594986aa57 100644 --- a/service/iotanalytics/go.mod +++ b/service/iotanalytics/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/iotanalytics go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/iotanalytics/serializers.go b/service/iotanalytics/serializers.go index 0b3244e8dd9..15edee81bee 100644 --- a/service/iotanalytics/serializers.go +++ b/service/iotanalytics/serializers.go @@ -146,25 +146,19 @@ func awsRestjson1_serializeOpHttpBindingsCancelPipelineReprocessingInput(v *Canc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PipelineName == nil { + if v.PipelineName == nil || len(*v.PipelineName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member pipelineName must not be empty")} } if v.PipelineName != nil { - if len(*v.PipelineName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member pipelineName must not be empty")} - } if err := encoder.SetURI("pipelineName").String(*v.PipelineName); err != nil { return err } } - if v.ReprocessingId == nil { + if v.ReprocessingId == nil || len(*v.ReprocessingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member reprocessingId must not be empty")} } if v.ReprocessingId != nil { - if len(*v.ReprocessingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member reprocessingId must not be empty")} - } if err := encoder.SetURI("reprocessingId").String(*v.ReprocessingId); err != nil { return err } @@ -433,13 +427,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateDatasetContentInput(v *CreateData return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatasetName == nil { + if v.DatasetName == nil || len(*v.DatasetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} } if v.DatasetName != nil { - if len(*v.DatasetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} - } if err := encoder.SetURI("datasetName").String(*v.DatasetName); err != nil { return err } @@ -680,13 +671,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteChannelInput(v *DeleteChannelInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ChannelName == nil { + if v.ChannelName == nil || len(*v.ChannelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member channelName must not be empty")} } if v.ChannelName != nil { - if len(*v.ChannelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member channelName must not be empty")} - } if err := encoder.SetURI("channelName").String(*v.ChannelName); err != nil { return err } @@ -746,13 +734,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDatasetInput(v *DeleteDatasetInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatasetName == nil { + if v.DatasetName == nil || len(*v.DatasetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} } if v.DatasetName != nil { - if len(*v.DatasetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} - } if err := encoder.SetURI("datasetName").String(*v.DatasetName); err != nil { return err } @@ -812,13 +797,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDatasetContentInput(v *DeleteData return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatasetName == nil { + if v.DatasetName == nil || len(*v.DatasetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} } if v.DatasetName != nil { - if len(*v.DatasetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} - } if err := encoder.SetURI("datasetName").String(*v.DatasetName); err != nil { return err } @@ -882,13 +864,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDatastoreInput(v *DeleteDatastore return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatastoreName == nil { + if v.DatastoreName == nil || len(*v.DatastoreName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member datastoreName must not be empty")} } if v.DatastoreName != nil { - if len(*v.DatastoreName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member datastoreName must not be empty")} - } if err := encoder.SetURI("datastoreName").String(*v.DatastoreName); err != nil { return err } @@ -948,13 +927,10 @@ func awsRestjson1_serializeOpHttpBindingsDeletePipelineInput(v *DeletePipelineIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PipelineName == nil { + if v.PipelineName == nil || len(*v.PipelineName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member pipelineName must not be empty")} } if v.PipelineName != nil { - if len(*v.PipelineName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member pipelineName must not be empty")} - } if err := encoder.SetURI("pipelineName").String(*v.PipelineName); err != nil { return err } @@ -1014,20 +990,17 @@ func awsRestjson1_serializeOpHttpBindingsDescribeChannelInput(v *DescribeChannel return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ChannelName == nil { + if v.ChannelName == nil || len(*v.ChannelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member channelName must not be empty")} } if v.ChannelName != nil { - if len(*v.ChannelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member channelName must not be empty")} - } if err := encoder.SetURI("channelName").String(*v.ChannelName); err != nil { return err } } - if v.IncludeStatistics != nil { - encoder.SetQuery("includeStatistics").Boolean(*v.IncludeStatistics) + if v.IncludeStatistics { + encoder.SetQuery("includeStatistics").Boolean(v.IncludeStatistics) } return nil @@ -1084,13 +1057,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDatasetInput(v *DescribeDataset return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatasetName == nil { + if v.DatasetName == nil || len(*v.DatasetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} } if v.DatasetName != nil { - if len(*v.DatasetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} - } if err := encoder.SetURI("datasetName").String(*v.DatasetName); err != nil { return err } @@ -1150,20 +1120,17 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDatastoreInput(v *DescribeDatas return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatastoreName == nil { + if v.DatastoreName == nil || len(*v.DatastoreName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member datastoreName must not be empty")} } if v.DatastoreName != nil { - if len(*v.DatastoreName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member datastoreName must not be empty")} - } if err := encoder.SetURI("datastoreName").String(*v.DatastoreName); err != nil { return err } } - if v.IncludeStatistics != nil { - encoder.SetQuery("includeStatistics").Boolean(*v.IncludeStatistics) + if v.IncludeStatistics { + encoder.SetQuery("includeStatistics").Boolean(v.IncludeStatistics) } return nil @@ -1270,13 +1237,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribePipelineInput(v *DescribePipeli return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PipelineName == nil { + if v.PipelineName == nil || len(*v.PipelineName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member pipelineName must not be empty")} } if v.PipelineName != nil { - if len(*v.PipelineName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member pipelineName must not be empty")} - } if err := encoder.SetURI("pipelineName").String(*v.PipelineName); err != nil { return err } @@ -1336,13 +1300,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDatasetContentInput(v *GetDatasetCon return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatasetName == nil { + if v.DatasetName == nil || len(*v.DatasetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} } if v.DatasetName != nil { - if len(*v.DatasetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} - } if err := encoder.SetURI("datasetName").String(*v.DatasetName); err != nil { return err } @@ -1468,13 +1429,10 @@ func awsRestjson1_serializeOpHttpBindingsListDatasetContentsInput(v *ListDataset return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatasetName == nil { + if v.DatasetName == nil || len(*v.DatasetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} } if v.DatasetName != nil { - if len(*v.DatasetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} - } if err := encoder.SetURI("datasetName").String(*v.DatasetName); err != nil { return err } @@ -1951,13 +1909,10 @@ func awsRestjson1_serializeOpHttpBindingsSampleChannelDataInput(v *SampleChannel return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ChannelName == nil { + if v.ChannelName == nil || len(*v.ChannelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member channelName must not be empty")} } if v.ChannelName != nil { - if len(*v.ChannelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member channelName must not be empty")} - } if err := encoder.SetURI("channelName").String(*v.ChannelName); err != nil { return err } @@ -2040,13 +1995,10 @@ func awsRestjson1_serializeOpHttpBindingsStartPipelineReprocessingInput(v *Start return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PipelineName == nil { + if v.PipelineName == nil || len(*v.PipelineName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member pipelineName must not be empty")} } if v.PipelineName != nil { - if len(*v.PipelineName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member pipelineName must not be empty")} - } if err := encoder.SetURI("pipelineName").String(*v.PipelineName); err != nil { return err } @@ -2212,10 +2164,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -2284,13 +2233,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateChannelInput(v *UpdateChannelInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ChannelName == nil { + if v.ChannelName == nil || len(*v.ChannelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member channelName must not be empty")} } if v.ChannelName != nil { - if len(*v.ChannelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member channelName must not be empty")} - } if err := encoder.SetURI("channelName").String(*v.ChannelName); err != nil { return err } @@ -2382,13 +2328,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDatasetInput(v *UpdateDatasetInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatasetName == nil { + if v.DatasetName == nil || len(*v.DatasetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} } if v.DatasetName != nil { - if len(*v.DatasetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member datasetName must not be empty")} - } if err := encoder.SetURI("datasetName").String(*v.DatasetName); err != nil { return err } @@ -2501,13 +2444,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDatastoreInput(v *UpdateDatastore return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DatastoreName == nil { + if v.DatastoreName == nil || len(*v.DatastoreName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member datastoreName must not be empty")} } if v.DatastoreName != nil { - if len(*v.DatastoreName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member datastoreName must not be empty")} - } if err := encoder.SetURI("datastoreName").String(*v.DatastoreName); err != nil { return err } @@ -2599,13 +2539,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdatePipelineInput(v *UpdatePipelineIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PipelineName == nil { + if v.PipelineName == nil || len(*v.PipelineName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member pipelineName must not be empty")} } if v.PipelineName != nil { - if len(*v.PipelineName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member pipelineName must not be empty")} - } if err := encoder.SetURI("pipelineName").String(*v.PipelineName); err != nil { return err } @@ -2652,32 +2589,24 @@ func awsRestjson1_serializeDocumentAddAttributesActivity(v *types.AddAttributesA return nil } -func awsRestjson1_serializeDocumentAttributeNameMapping(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAttributeNameMapping(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentAttributeNames(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAttributeNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2826,17 +2755,13 @@ func awsRestjson1_serializeDocumentDatasetAction(v *types.DatasetAction, value s return nil } -func awsRestjson1_serializeDocumentDatasetActions(v []*types.DatasetAction, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDatasetActions(v []types.DatasetAction, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDatasetAction(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDatasetAction(&v[i], av); err != nil { return err } } @@ -2883,17 +2808,13 @@ func awsRestjson1_serializeDocumentDatasetContentDeliveryRule(v *types.DatasetCo return nil } -func awsRestjson1_serializeDocumentDatasetContentDeliveryRules(v []*types.DatasetContentDeliveryRule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDatasetContentDeliveryRules(v []types.DatasetContentDeliveryRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDatasetContentDeliveryRule(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDatasetContentDeliveryRule(&v[i], av); err != nil { return err } } @@ -2933,17 +2854,13 @@ func awsRestjson1_serializeDocumentDatasetTrigger(v *types.DatasetTrigger, value return nil } -func awsRestjson1_serializeDocumentDatasetTriggers(v []*types.DatasetTrigger, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDatasetTriggers(v []types.DatasetTrigger, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDatasetTrigger(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDatasetTrigger(&v[i], av); err != nil { return err } } @@ -3156,9 +3073,9 @@ func awsRestjson1_serializeDocumentLoggingOptions(v *types.LoggingOptions, value object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if len(v.Level) > 0 { @@ -3225,7 +3142,6 @@ func awsRestjson1_serializeDocumentMessagePayloads(v [][]byte, value smithyjson. for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } av.Base64EncodeBytes(v[i]) @@ -3233,17 +3149,13 @@ func awsRestjson1_serializeDocumentMessagePayloads(v [][]byte, value smithyjson. return nil } -func awsRestjson1_serializeDocumentMessages(v []*types.Message, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMessages(v []types.Message, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMessage(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMessage(&v[i], av); err != nil { return err } } @@ -3262,17 +3174,13 @@ func awsRestjson1_serializeDocumentOutputFileUriValue(v *types.OutputFileUriValu return nil } -func awsRestjson1_serializeDocumentPipelineActivities(v []*types.PipelineActivity, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPipelineActivities(v []types.PipelineActivity, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentPipelineActivity(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentPipelineActivity(&v[i], av); err != nil { return err } } @@ -3370,17 +3278,13 @@ func awsRestjson1_serializeDocumentQueryFilter(v *types.QueryFilter, value smith return nil } -func awsRestjson1_serializeDocumentQueryFilters(v []*types.QueryFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentQueryFilters(v []types.QueryFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentQueryFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentQueryFilter(&v[i], av); err != nil { return err } } @@ -3420,9 +3324,9 @@ func awsRestjson1_serializeDocumentResourceConfiguration(v *types.ResourceConfig ok.String(string(v.ComputeType)) } - if v.VolumeSizeInGB != nil { + if v.VolumeSizeInGB != 0 { ok := object.Key("volumeSizeInGB") - ok.Integer(*v.VolumeSizeInGB) + ok.Integer(v.VolumeSizeInGB) } return nil @@ -3437,9 +3341,9 @@ func awsRestjson1_serializeDocumentRetentionPeriod(v *types.RetentionPeriod, val ok.Integer(*v.NumberOfDays) } - if v.Unlimited != nil { + if v.Unlimited { ok := object.Key("unlimited") - ok.Boolean(*v.Unlimited) + ok.Boolean(v.Unlimited) } return nil @@ -3560,17 +3464,13 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -3600,9 +3500,9 @@ func awsRestjson1_serializeDocumentVariable(v *types.Variable, value smithyjson. } } - if v.DoubleValue != nil { + if v.DoubleValue != 0 { ok := object.Key("doubleValue") - ok.Double(*v.DoubleValue) + ok.Double(v.DoubleValue) } if v.Name != nil { @@ -3625,17 +3525,13 @@ func awsRestjson1_serializeDocumentVariable(v *types.Variable, value smithyjson. return nil } -func awsRestjson1_serializeDocumentVariables(v []*types.Variable, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentVariables(v []types.Variable, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentVariable(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentVariable(&v[i], av); err != nil { return err } } @@ -3651,9 +3547,9 @@ func awsRestjson1_serializeDocumentVersioningConfiguration(v *types.VersioningCo ok.Integer(*v.MaxVersions) } - if v.Unlimited != nil { + if v.Unlimited { ok := object.Key("unlimited") - ok.Boolean(*v.Unlimited) + ok.Boolean(v.Unlimited) } return nil diff --git a/service/iotanalytics/types/types.go b/service/iotanalytics/types/types.go index 6f86ba8cb41..b9276820995 100644 --- a/service/iotanalytics/types/types.go +++ b/service/iotanalytics/types/types.go @@ -15,7 +15,7 @@ type AddAttributesActivity struct { // to remove the originals, use "RemoveAttributeActivity". // // This member is required. - Attributes map[string]*string + Attributes map[string]string // The name of the 'addAttributes' activity. // @@ -166,7 +166,7 @@ type ContainerDatasetAction struct { // containerized application (basically, parameters passed to the application). // Each variable must have a name and a value given by one of "stringValue", // "datasetContentVersionValue", or "outputFileUriValue". - Variables []*Variable + Variables []Variable } // Use this to store channel data in an S3 bucket that you manage. If customer @@ -255,14 +255,14 @@ type CustomerManagedDatastoreS3StorageSummary struct { type Dataset struct { // The "DatasetAction" objects that automatically create the data set contents. - Actions []*DatasetAction + Actions []DatasetAction // The ARN of the data set. Arn *string // When data set contents are created they are delivered to destinations specified // here. - ContentDeliveryRules []*DatasetContentDeliveryRule + ContentDeliveryRules []DatasetContentDeliveryRule // When the data set was created. CreationTime *time.Time @@ -281,7 +281,7 @@ type Dataset struct { // The "DatasetTrigger" objects that specify when the data set is automatically // updated. - Triggers []*DatasetTrigger + Triggers []DatasetTrigger // [Optional] How many versions of data set contents are kept. If not specified or // set to null, only the latest version plus the latest succeeded version (if they @@ -398,7 +398,7 @@ type DatasetEntry struct { type DatasetSummary struct { // A list of "DataActionSummary" objects. - Actions []*DatasetActionSummary + Actions []DatasetActionSummary // The time the data set was created. CreationTime *time.Time @@ -415,7 +415,7 @@ type DatasetSummary struct { // A list of triggers. A trigger causes data set content to be populated at a // specified time interval or when another data set is populated. The list of // triggers can be empty or contain up to five DataSetTrigger objects - Triggers []*DatasetTrigger + Triggers []DatasetTrigger } // The "DatasetTrigger" that specifies when the data set is automatically updated. @@ -697,7 +697,7 @@ type LoggingOptions struct { // If true, logging is enabled for AWS IoT Analytics. // // This member is required. - Enabled *bool + Enabled bool // The logging level. Currently, only "ERROR" is supported. // @@ -766,7 +766,7 @@ type OutputFileUriValue struct { type Pipeline struct { // The activities that perform transformations on the messages. - Activities []*PipelineActivity + Activities []PipelineActivity // The ARN of the pipeline. Arn *string @@ -781,7 +781,7 @@ type Pipeline struct { Name *string // A summary of information about the pipeline reprocessing. - ReprocessingSummaries []*ReprocessingSummary + ReprocessingSummaries []ReprocessingSummary } // An activity that performs a transformation on a message. @@ -833,7 +833,7 @@ type PipelineSummary struct { PipelineName *string // A summary of information about the pipeline reprocessing. - ReprocessingSummaries []*ReprocessingSummary + ReprocessingSummaries []ReprocessingSummary } // Information which is used to filter message data, to segregate it according to @@ -851,7 +851,7 @@ type RemoveAttributesActivity struct { // A list of 1-50 attributes to remove from the message. // // This member is required. - Attributes []*string + Attributes []string // The name of the 'removeAttributes' activity. // @@ -888,7 +888,7 @@ type ResourceConfiguration struct { // used to execute the "containerAction" (min: 1, max: 50). // // This member is required. - VolumeSizeInGB *int32 + VolumeSizeInGB int32 } // How long, in days, message data is kept. @@ -899,7 +899,7 @@ type RetentionPeriod struct { NumberOfDays *int32 // If true, message data is kept indefinitely. - Unlimited *bool + Unlimited bool } // Configuration information for delivery of data set contents to Amazon S3. @@ -949,7 +949,7 @@ type SelectAttributesActivity struct { // A list of the attributes to select from the message. // // This member is required. - Attributes []*string + Attributes []string // The name of the 'selectAttributes' activity. // @@ -991,7 +991,7 @@ type SqlQueryDatasetAction struct { SqlQuery *string // Pre-filters applied to message data. - Filters []*QueryFilter + Filters []QueryFilter } // A set of key/value pairs which are used to manage the resource. @@ -1034,7 +1034,7 @@ type Variable struct { DatasetContentVersionValue *DatasetContentVersionValue // The value of the variable as a double (numeric). - DoubleValue *float64 + DoubleValue float64 // The value of the variable as a structure that specifies an output file URI. OutputFileUriValue *OutputFileUriValue @@ -1051,5 +1051,5 @@ type VersioningConfiguration struct { MaxVersions *int32 // If true, unlimited versions of data set contents will be kept. - Unlimited *bool + Unlimited bool } diff --git a/service/iotanalytics/validators.go b/service/iotanalytics/validators.go index 67f5b449ce7..4cd0662c3eb 100644 --- a/service/iotanalytics/validators.go +++ b/service/iotanalytics/validators.go @@ -847,13 +847,13 @@ func validateDatasetAction(v *types.DatasetAction) error { } } -func validateDatasetActions(v []*types.DatasetAction) error { +func validateDatasetActions(v []types.DatasetAction) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DatasetActions"} for i := range v { - if err := validateDatasetAction(v[i]); err != nil { + if err := validateDatasetAction(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -905,13 +905,13 @@ func validateDatasetContentDeliveryRule(v *types.DatasetContentDeliveryRule) err } } -func validateDatasetContentDeliveryRules(v []*types.DatasetContentDeliveryRule) error { +func validateDatasetContentDeliveryRules(v []types.DatasetContentDeliveryRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DatasetContentDeliveryRules"} for i := range v { - if err := validateDatasetContentDeliveryRule(v[i]); err != nil { + if err := validateDatasetContentDeliveryRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -954,13 +954,13 @@ func validateDatasetTrigger(v *types.DatasetTrigger) error { } } -func validateDatasetTriggers(v []*types.DatasetTrigger) error { +func validateDatasetTriggers(v []types.DatasetTrigger) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DatasetTriggers"} for i := range v { - if err := validateDatasetTrigger(v[i]); err != nil { + if err := validateDatasetTrigger(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1155,9 +1155,6 @@ func validateLoggingOptions(v *types.LoggingOptions) error { if v.RoleArn == nil { invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) } - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if len(v.Level) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Level")) } @@ -1207,13 +1204,13 @@ func validateMessage(v *types.Message) error { } } -func validateMessages(v []*types.Message) error { +func validateMessages(v []types.Message) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Messages"} for i := range v { - if err := validateMessage(v[i]); err != nil { + if err := validateMessage(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1239,13 +1236,13 @@ func validateOutputFileUriValue(v *types.OutputFileUriValue) error { } } -func validatePipelineActivities(v []*types.PipelineActivity) error { +func validatePipelineActivities(v []types.PipelineActivity) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PipelineActivities"} for i := range v { - if err := validatePipelineActivity(v[i]); err != nil { + if err := validatePipelineActivity(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1335,13 +1332,13 @@ func validateQueryFilter(v *types.QueryFilter) error { } } -func validateQueryFilters(v []*types.QueryFilter) error { +func validateQueryFilters(v []types.QueryFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "QueryFilters"} for i := range v { - if err := validateQueryFilter(v[i]); err != nil { + if err := validateQueryFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1378,9 +1375,6 @@ func validateResourceConfiguration(v *types.ResourceConfiguration) error { if len(v.ComputeType) == 0 { invalidParams.Add(smithy.NewErrParamRequired("ComputeType")) } - if v.VolumeSizeInGB == nil { - invalidParams.Add(smithy.NewErrParamRequired("VolumeSizeInGB")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1470,13 +1464,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1527,13 +1521,13 @@ func validateVariable(v *types.Variable) error { } } -func validateVariables(v []*types.Variable) error { +func validateVariables(v []types.Variable) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Variables"} for i := range v { - if err := validateVariable(v[i]); err != nil { + if err := validateVariable(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/iotdataplane/api_op_ListNamedShadowsForThing.go b/service/iotdataplane/api_op_ListNamedShadowsForThing.go index a0873ad81e0..470bd96e939 100644 --- a/service/iotdataplane/api_op_ListNamedShadowsForThing.go +++ b/service/iotdataplane/api_op_ListNamedShadowsForThing.go @@ -47,10 +47,10 @@ type ListNamedShadowsForThingOutput struct { NextToken *string // The list of shadows for the specified thing. - Results []*string + Results []string // The Epoch date and time the response was generated by AWS IoT. - Timestamp *int64 + Timestamp int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotdataplane/api_op_Publish.go b/service/iotdataplane/api_op_Publish.go index d5b024a797b..e306521d8dd 100644 --- a/service/iotdataplane/api_op_Publish.go +++ b/service/iotdataplane/api_op_Publish.go @@ -40,7 +40,7 @@ type PublishInput struct { Payload []byte // The Quality of Service (QoS) level. - Qos *int32 + Qos int32 } type PublishOutput struct { diff --git a/service/iotdataplane/deserializers.go b/service/iotdataplane/deserializers.go index 887fbe86dcc..35a2c550a8c 100644 --- a/service/iotdataplane/deserializers.go +++ b/service/iotdataplane/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "io/ioutil" @@ -423,7 +424,7 @@ func awsRestjson1_deserializeOpDocumentListNamedShadowsForThingOutput(v **ListNa if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "results": @@ -441,7 +442,7 @@ func awsRestjson1_deserializeOpDocumentListNamedShadowsForThingOutput(v **ListNa if err != nil { return err } - sv.Timestamp = &i64 + sv.Timestamp = i64 } default: @@ -1060,7 +1061,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1100,7 +1101,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1140,7 +1141,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1180,7 +1181,7 @@ func awsRestjson1_deserializeDocumentMethodNotAllowedException(v **types.MethodN if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1192,7 +1193,7 @@ func awsRestjson1_deserializeDocumentMethodNotAllowedException(v **types.MethodN return nil } -func awsRestjson1_deserializeDocumentNamedShadowList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentNamedShadowList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1205,21 +1206,21 @@ func awsRestjson1_deserializeDocumentNamedShadowList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ShadowName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1256,7 +1257,7 @@ func awsRestjson1_deserializeDocumentRequestEntityTooLargeException(v **types.Re if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1296,7 +1297,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1336,7 +1337,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1376,7 +1377,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1416,7 +1417,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1456,7 +1457,7 @@ func awsRestjson1_deserializeDocumentUnsupportedDocumentEncodingException(v **ty if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/iotdataplane/go.mod b/service/iotdataplane/go.mod index 0558dc255ac..f41be407d12 100644 --- a/service/iotdataplane/go.mod +++ b/service/iotdataplane/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/iotdataplane go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/iotdataplane/serializers.go b/service/iotdataplane/serializers.go index 7b4c8459260..648454e80cf 100644 --- a/service/iotdataplane/serializers.go +++ b/service/iotdataplane/serializers.go @@ -67,13 +67,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteThingShadowInput(v *DeleteThingSh encoder.SetQuery("name").String(*v.ShadowName) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -137,13 +134,10 @@ func awsRestjson1_serializeOpHttpBindingsGetThingShadowInput(v *GetThingShadowIn encoder.SetQuery("name").String(*v.ShadowName) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -211,13 +205,10 @@ func awsRestjson1_serializeOpHttpBindingsListNamedShadowsForThingInput(v *ListNa encoder.SetQuery("pageSize").Integer(*v.PageSize) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -288,17 +279,14 @@ func awsRestjson1_serializeOpHttpBindingsPublishInput(v *PublishInput, encoder * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Qos != nil { - encoder.SetQuery("qos").Integer(*v.Qos) + if v.Qos != 0 { + encoder.SetQuery("qos").Integer(v.Qos) } - if v.Topic == nil { + if v.Topic == nil || len(*v.Topic) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member topic must not be empty")} } if v.Topic != nil { - if len(*v.Topic) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member topic must not be empty")} - } if err := encoder.SetURI("topic").String(*v.Topic); err != nil { return err } @@ -373,13 +361,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateThingShadowInput(v *UpdateThingSh encoder.SetQuery("name").String(*v.ShadowName) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } diff --git a/service/iotevents/api_op_CreateDetectorModel.go b/service/iotevents/api_op_CreateDetectorModel.go index ca48ce495e6..cebf47422d8 100644 --- a/service/iotevents/api_op_CreateDetectorModel.go +++ b/service/iotevents/api_op_CreateDetectorModel.go @@ -60,7 +60,7 @@ type CreateDetectorModelInput struct { Key *string // Metadata that can be used to manage the detector model. - Tags []*types.Tag + Tags []types.Tag } type CreateDetectorModelOutput struct { diff --git a/service/iotevents/api_op_CreateInput.go b/service/iotevents/api_op_CreateInput.go index acfa940e28c..0d592545a7b 100644 --- a/service/iotevents/api_op_CreateInput.go +++ b/service/iotevents/api_op_CreateInput.go @@ -43,7 +43,7 @@ type CreateInputInput struct { InputDescription *string // Metadata that can be used to manage the input. - Tags []*types.Tag + Tags []types.Tag } type CreateInputOutput struct { diff --git a/service/iotevents/api_op_ListDetectorModelVersions.go b/service/iotevents/api_op_ListDetectorModelVersions.go index 08c162027cb..82974c21dec 100644 --- a/service/iotevents/api_op_ListDetectorModelVersions.go +++ b/service/iotevents/api_op_ListDetectorModelVersions.go @@ -45,7 +45,7 @@ type ListDetectorModelVersionsInput struct { type ListDetectorModelVersionsOutput struct { // Summary information about the detector model versions. - DetectorModelVersionSummaries []*types.DetectorModelVersionSummary + DetectorModelVersionSummaries []types.DetectorModelVersionSummary // A token to retrieve the next set of results, or null if there are no additional // results. diff --git a/service/iotevents/api_op_ListDetectorModels.go b/service/iotevents/api_op_ListDetectorModels.go index bc51029c3f7..4810cc908a0 100644 --- a/service/iotevents/api_op_ListDetectorModels.go +++ b/service/iotevents/api_op_ListDetectorModels.go @@ -40,7 +40,7 @@ type ListDetectorModelsInput struct { type ListDetectorModelsOutput struct { // Summary information about the detector models. - DetectorModelSummaries []*types.DetectorModelSummary + DetectorModelSummaries []types.DetectorModelSummary // A token to retrieve the next set of results, or null if there are no additional // results. diff --git a/service/iotevents/api_op_ListInputs.go b/service/iotevents/api_op_ListInputs.go index 4836ed9ab33..7831304c480 100644 --- a/service/iotevents/api_op_ListInputs.go +++ b/service/iotevents/api_op_ListInputs.go @@ -39,7 +39,7 @@ type ListInputsInput struct { type ListInputsOutput struct { // Summary information about the inputs. - InputSummaries []*types.InputSummary + InputSummaries []types.InputSummary // A token to retrieve the next set of results, or null if there are no additional // results. diff --git a/service/iotevents/api_op_ListTagsForResource.go b/service/iotevents/api_op_ListTagsForResource.go index d01e59cae80..bf4621a01d9 100644 --- a/service/iotevents/api_op_ListTagsForResource.go +++ b/service/iotevents/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The list of tags assigned to the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotevents/api_op_TagResource.go b/service/iotevents/api_op_TagResource.go index f1238671302..cc66c5a58f4 100644 --- a/service/iotevents/api_op_TagResource.go +++ b/service/iotevents/api_op_TagResource.go @@ -38,7 +38,7 @@ type TagResourceInput struct { // The new or modified tags for the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/iotevents/api_op_UntagResource.go b/service/iotevents/api_op_UntagResource.go index 07fafa35ee1..ad0a3fe21ff 100644 --- a/service/iotevents/api_op_UntagResource.go +++ b/service/iotevents/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // A list of the keys of the tags to be removed from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/iotevents/deserializers.go b/service/iotevents/deserializers.go index b1256078fa1..c171c6912cb 100644 --- a/service/iotevents/deserializers.go +++ b/service/iotevents/deserializers.go @@ -1172,7 +1172,7 @@ func awsRestjson1_deserializeOpDocumentListDetectorModelsOutput(v **ListDetector if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1340,7 +1340,7 @@ func awsRestjson1_deserializeOpDocumentListDetectorModelVersionsOutput(v **ListD if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1505,7 +1505,7 @@ func awsRestjson1_deserializeOpDocumentListInputsOutput(v **ListInputsOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2711,7 +2711,7 @@ func awsRestjson1_deserializeDocumentAction(v **types.Action, value interface{}) return nil } -func awsRestjson1_deserializeDocumentActions(v *[]*types.Action, value interface{}) error { +func awsRestjson1_deserializeDocumentActions(v *[]types.Action, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2724,18 +2724,20 @@ func awsRestjson1_deserializeDocumentActions(v *[]*types.Action, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Action + var cv []types.Action if *v == nil { - cv = []*types.Action{} + cv = []types.Action{} } else { cv = *v } for _, value := range shape { - var col *types.Action - if err := awsRestjson1_deserializeDocumentAction(&col, value); err != nil { + var col types.Action + destAddr := &col + if err := awsRestjson1_deserializeDocumentAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2771,7 +2773,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyTimestamp(v **types.AssetPrope if !ok { return fmt.Errorf("expected AssetPropertyOffsetInNanos to be of type string, got %T instead", value) } - sv.OffsetInNanos = &jtv + sv.OffsetInNanos = ptr.String(jtv) } case "timeInSeconds": @@ -2780,7 +2782,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyTimestamp(v **types.AssetPrope if !ok { return fmt.Errorf("expected AssetPropertyTimeInSeconds to be of type string, got %T instead", value) } - sv.TimeInSeconds = &jtv + sv.TimeInSeconds = ptr.String(jtv) } default: @@ -2820,7 +2822,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyValue(v **types.AssetPropertyV if !ok { return fmt.Errorf("expected AssetPropertyQuality to be of type string, got %T instead", value) } - sv.Quality = &jtv + sv.Quality = ptr.String(jtv) } case "timestamp": @@ -2870,7 +2872,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyVariant(v **types.AssetPropert if !ok { return fmt.Errorf("expected AssetPropertyBooleanValue to be of type string, got %T instead", value) } - sv.BooleanValue = &jtv + sv.BooleanValue = ptr.String(jtv) } case "doubleValue": @@ -2879,7 +2881,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyVariant(v **types.AssetPropert if !ok { return fmt.Errorf("expected AssetPropertyDoubleValue to be of type string, got %T instead", value) } - sv.DoubleValue = &jtv + sv.DoubleValue = ptr.String(jtv) } case "integerValue": @@ -2888,7 +2890,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyVariant(v **types.AssetPropert if !ok { return fmt.Errorf("expected AssetPropertyIntegerValue to be of type string, got %T instead", value) } - sv.IntegerValue = &jtv + sv.IntegerValue = ptr.String(jtv) } case "stringValue": @@ -2897,7 +2899,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyVariant(v **types.AssetPropert if !ok { return fmt.Errorf("expected AssetPropertyStringValue to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } default: @@ -2937,7 +2939,7 @@ func awsRestjson1_deserializeDocumentAttribute(v **types.Attribute, value interf if !ok { return fmt.Errorf("expected AttributeJsonPath to be of type string, got %T instead", value) } - sv.JsonPath = &jtv + sv.JsonPath = ptr.String(jtv) } default: @@ -2949,7 +2951,7 @@ func awsRestjson1_deserializeDocumentAttribute(v **types.Attribute, value interf return nil } -func awsRestjson1_deserializeDocumentAttributes(v *[]*types.Attribute, value interface{}) error { +func awsRestjson1_deserializeDocumentAttributes(v *[]types.Attribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2962,18 +2964,20 @@ func awsRestjson1_deserializeDocumentAttributes(v *[]*types.Attribute, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Attribute + var cv []types.Attribute if *v == nil { - cv = []*types.Attribute{} + cv = []types.Attribute{} } else { cv = *v } for _, value := range shape { - var col *types.Attribute - if err := awsRestjson1_deserializeDocumentAttribute(&col, value); err != nil { + var col types.Attribute + destAddr := &col + if err := awsRestjson1_deserializeDocumentAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3009,7 +3013,7 @@ func awsRestjson1_deserializeDocumentClearTimerAction(v **types.ClearTimerAction if !ok { return fmt.Errorf("expected TimerName to be of type string, got %T instead", value) } - sv.TimerName = &jtv + sv.TimerName = ptr.String(jtv) } default: @@ -3049,7 +3053,7 @@ func awsRestjson1_deserializeDocumentDetectorDebugOption(v **types.DetectorDebug if !ok { return fmt.Errorf("expected DetectorModelName to be of type string, got %T instead", value) } - sv.DetectorModelName = &jtv + sv.DetectorModelName = ptr.String(jtv) } case "keyValue": @@ -3058,7 +3062,7 @@ func awsRestjson1_deserializeDocumentDetectorDebugOption(v **types.DetectorDebug if !ok { return fmt.Errorf("expected KeyValue to be of type string, got %T instead", value) } - sv.KeyValue = &jtv + sv.KeyValue = ptr.String(jtv) } default: @@ -3070,7 +3074,7 @@ func awsRestjson1_deserializeDocumentDetectorDebugOption(v **types.DetectorDebug return nil } -func awsRestjson1_deserializeDocumentDetectorDebugOptions(v *[]*types.DetectorDebugOption, value interface{}) error { +func awsRestjson1_deserializeDocumentDetectorDebugOptions(v *[]types.DetectorDebugOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3083,18 +3087,20 @@ func awsRestjson1_deserializeDocumentDetectorDebugOptions(v *[]*types.DetectorDe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DetectorDebugOption + var cv []types.DetectorDebugOption if *v == nil { - cv = []*types.DetectorDebugOption{} + cv = []types.DetectorDebugOption{} } else { cv = *v } for _, value := range shape { - var col *types.DetectorDebugOption - if err := awsRestjson1_deserializeDocumentDetectorDebugOption(&col, value); err != nil { + var col types.DetectorDebugOption + destAddr := &col + if err := awsRestjson1_deserializeDocumentDetectorDebugOption(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3184,7 +3190,7 @@ func awsRestjson1_deserializeDocumentDetectorModelConfiguration(v **types.Detect if !ok { return fmt.Errorf("expected DetectorModelArn to be of type string, got %T instead", value) } - sv.DetectorModelArn = &jtv + sv.DetectorModelArn = ptr.String(jtv) } case "detectorModelDescription": @@ -3193,7 +3199,7 @@ func awsRestjson1_deserializeDocumentDetectorModelConfiguration(v **types.Detect if !ok { return fmt.Errorf("expected DetectorModelDescription to be of type string, got %T instead", value) } - sv.DetectorModelDescription = &jtv + sv.DetectorModelDescription = ptr.String(jtv) } case "detectorModelName": @@ -3202,7 +3208,7 @@ func awsRestjson1_deserializeDocumentDetectorModelConfiguration(v **types.Detect if !ok { return fmt.Errorf("expected DetectorModelName to be of type string, got %T instead", value) } - sv.DetectorModelName = &jtv + sv.DetectorModelName = ptr.String(jtv) } case "detectorModelVersion": @@ -3211,7 +3217,7 @@ func awsRestjson1_deserializeDocumentDetectorModelConfiguration(v **types.Detect if !ok { return fmt.Errorf("expected DetectorModelVersion to be of type string, got %T instead", value) } - sv.DetectorModelVersion = &jtv + sv.DetectorModelVersion = ptr.String(jtv) } case "evaluationMethod": @@ -3229,7 +3235,7 @@ func awsRestjson1_deserializeDocumentDetectorModelConfiguration(v **types.Detect if !ok { return fmt.Errorf("expected AttributeJsonPath to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "lastUpdateTime": @@ -3251,7 +3257,7 @@ func awsRestjson1_deserializeDocumentDetectorModelConfiguration(v **types.Detect if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "status": @@ -3300,7 +3306,7 @@ func awsRestjson1_deserializeDocumentDetectorModelDefinition(v **types.DetectorM if !ok { return fmt.Errorf("expected StateName to be of type string, got %T instead", value) } - sv.InitialStateName = &jtv + sv.InitialStateName = ptr.String(jtv) } case "states": @@ -3317,7 +3323,7 @@ func awsRestjson1_deserializeDocumentDetectorModelDefinition(v **types.DetectorM return nil } -func awsRestjson1_deserializeDocumentDetectorModelSummaries(v *[]*types.DetectorModelSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDetectorModelSummaries(v *[]types.DetectorModelSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3330,18 +3336,20 @@ func awsRestjson1_deserializeDocumentDetectorModelSummaries(v *[]*types.Detector return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DetectorModelSummary + var cv []types.DetectorModelSummary if *v == nil { - cv = []*types.DetectorModelSummary{} + cv = []types.DetectorModelSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DetectorModelSummary - if err := awsRestjson1_deserializeDocumentDetectorModelSummary(&col, value); err != nil { + var col types.DetectorModelSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDetectorModelSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3390,7 +3398,7 @@ func awsRestjson1_deserializeDocumentDetectorModelSummary(v **types.DetectorMode if !ok { return fmt.Errorf("expected DetectorModelDescription to be of type string, got %T instead", value) } - sv.DetectorModelDescription = &jtv + sv.DetectorModelDescription = ptr.String(jtv) } case "detectorModelName": @@ -3399,7 +3407,7 @@ func awsRestjson1_deserializeDocumentDetectorModelSummary(v **types.DetectorMode if !ok { return fmt.Errorf("expected DetectorModelName to be of type string, got %T instead", value) } - sv.DetectorModelName = &jtv + sv.DetectorModelName = ptr.String(jtv) } default: @@ -3411,7 +3419,7 @@ func awsRestjson1_deserializeDocumentDetectorModelSummary(v **types.DetectorMode return nil } -func awsRestjson1_deserializeDocumentDetectorModelVersionSummaries(v *[]*types.DetectorModelVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDetectorModelVersionSummaries(v *[]types.DetectorModelVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3424,18 +3432,20 @@ func awsRestjson1_deserializeDocumentDetectorModelVersionSummaries(v *[]*types.D return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DetectorModelVersionSummary + var cv []types.DetectorModelVersionSummary if *v == nil { - cv = []*types.DetectorModelVersionSummary{} + cv = []types.DetectorModelVersionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DetectorModelVersionSummary - if err := awsRestjson1_deserializeDocumentDetectorModelVersionSummary(&col, value); err != nil { + var col types.DetectorModelVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDetectorModelVersionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3484,7 +3494,7 @@ func awsRestjson1_deserializeDocumentDetectorModelVersionSummary(v **types.Detec if !ok { return fmt.Errorf("expected DetectorModelArn to be of type string, got %T instead", value) } - sv.DetectorModelArn = &jtv + sv.DetectorModelArn = ptr.String(jtv) } case "detectorModelName": @@ -3493,7 +3503,7 @@ func awsRestjson1_deserializeDocumentDetectorModelVersionSummary(v **types.Detec if !ok { return fmt.Errorf("expected DetectorModelName to be of type string, got %T instead", value) } - sv.DetectorModelName = &jtv + sv.DetectorModelName = ptr.String(jtv) } case "detectorModelVersion": @@ -3502,7 +3512,7 @@ func awsRestjson1_deserializeDocumentDetectorModelVersionSummary(v **types.Detec if !ok { return fmt.Errorf("expected DetectorModelVersion to be of type string, got %T instead", value) } - sv.DetectorModelVersion = &jtv + sv.DetectorModelVersion = ptr.String(jtv) } case "evaluationMethod": @@ -3533,7 +3543,7 @@ func awsRestjson1_deserializeDocumentDetectorModelVersionSummary(v **types.Detec if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "status": @@ -3582,7 +3592,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected DynamoKeyField to be of type string, got %T instead", value) } - sv.HashKeyField = &jtv + sv.HashKeyField = ptr.String(jtv) } case "hashKeyType": @@ -3591,7 +3601,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected DynamoKeyType to be of type string, got %T instead", value) } - sv.HashKeyType = &jtv + sv.HashKeyType = ptr.String(jtv) } case "hashKeyValue": @@ -3600,7 +3610,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected DynamoKeyValue to be of type string, got %T instead", value) } - sv.HashKeyValue = &jtv + sv.HashKeyValue = ptr.String(jtv) } case "operation": @@ -3609,7 +3619,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected DynamoOperation to be of type string, got %T instead", value) } - sv.Operation = &jtv + sv.Operation = ptr.String(jtv) } case "payload": @@ -3623,7 +3633,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected DynamoKeyField to be of type string, got %T instead", value) } - sv.PayloadField = &jtv + sv.PayloadField = ptr.String(jtv) } case "rangeKeyField": @@ -3632,7 +3642,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected DynamoKeyField to be of type string, got %T instead", value) } - sv.RangeKeyField = &jtv + sv.RangeKeyField = ptr.String(jtv) } case "rangeKeyType": @@ -3641,7 +3651,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected DynamoKeyType to be of type string, got %T instead", value) } - sv.RangeKeyType = &jtv + sv.RangeKeyType = ptr.String(jtv) } case "rangeKeyValue": @@ -3650,7 +3660,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected DynamoKeyValue to be of type string, got %T instead", value) } - sv.RangeKeyValue = &jtv + sv.RangeKeyValue = ptr.String(jtv) } case "tableName": @@ -3659,7 +3669,7 @@ func awsRestjson1_deserializeDocumentDynamoDBAction(v **types.DynamoDBAction, va if !ok { return fmt.Errorf("expected DynamoTableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -3704,7 +3714,7 @@ func awsRestjson1_deserializeDocumentDynamoDBv2Action(v **types.DynamoDBv2Action if !ok { return fmt.Errorf("expected DynamoTableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -3749,7 +3759,7 @@ func awsRestjson1_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected Condition to be of type string, got %T instead", value) } - sv.Condition = &jtv + sv.Condition = ptr.String(jtv) } case "eventName": @@ -3758,7 +3768,7 @@ func awsRestjson1_deserializeDocumentEvent(v **types.Event, value interface{}) e if !ok { return fmt.Errorf("expected EventName to be of type string, got %T instead", value) } - sv.EventName = &jtv + sv.EventName = ptr.String(jtv) } default: @@ -3770,7 +3780,7 @@ func awsRestjson1_deserializeDocumentEvent(v **types.Event, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentEvents(v *[]*types.Event, value interface{}) error { +func awsRestjson1_deserializeDocumentEvents(v *[]types.Event, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3783,18 +3793,20 @@ func awsRestjson1_deserializeDocumentEvents(v *[]*types.Event, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Event + var cv []types.Event if *v == nil { - cv = []*types.Event{} + cv = []types.Event{} } else { cv = *v } for _, value := range shape { - var col *types.Event - if err := awsRestjson1_deserializeDocumentEvent(&col, value); err != nil { + var col types.Event + destAddr := &col + if err := awsRestjson1_deserializeDocumentEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3830,7 +3842,7 @@ func awsRestjson1_deserializeDocumentFirehoseAction(v **types.FirehoseAction, va if !ok { return fmt.Errorf("expected DeliveryStreamName to be of type string, got %T instead", value) } - sv.DeliveryStreamName = &jtv + sv.DeliveryStreamName = ptr.String(jtv) } case "payload": @@ -3844,7 +3856,7 @@ func awsRestjson1_deserializeDocumentFirehoseAction(v **types.FirehoseAction, va if !ok { return fmt.Errorf("expected FirehoseSeparator to be of type string, got %T instead", value) } - sv.Separator = &jtv + sv.Separator = ptr.String(jtv) } default: @@ -3938,7 +3950,7 @@ func awsRestjson1_deserializeDocumentInputConfiguration(v **types.InputConfigura if !ok { return fmt.Errorf("expected InputArn to be of type string, got %T instead", value) } - sv.InputArn = &jtv + sv.InputArn = ptr.String(jtv) } case "inputDescription": @@ -3947,7 +3959,7 @@ func awsRestjson1_deserializeDocumentInputConfiguration(v **types.InputConfigura if !ok { return fmt.Errorf("expected InputDescription to be of type string, got %T instead", value) } - sv.InputDescription = &jtv + sv.InputDescription = ptr.String(jtv) } case "inputName": @@ -3956,7 +3968,7 @@ func awsRestjson1_deserializeDocumentInputConfiguration(v **types.InputConfigura if !ok { return fmt.Errorf("expected InputName to be of type string, got %T instead", value) } - sv.InputName = &jtv + sv.InputName = ptr.String(jtv) } case "lastUpdateTime": @@ -4026,7 +4038,7 @@ func awsRestjson1_deserializeDocumentInputDefinition(v **types.InputDefinition, return nil } -func awsRestjson1_deserializeDocumentInputSummaries(v *[]*types.InputSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentInputSummaries(v *[]types.InputSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4039,18 +4051,20 @@ func awsRestjson1_deserializeDocumentInputSummaries(v *[]*types.InputSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputSummary + var cv []types.InputSummary if *v == nil { - cv = []*types.InputSummary{} + cv = []types.InputSummary{} } else { cv = *v } for _, value := range shape { - var col *types.InputSummary - if err := awsRestjson1_deserializeDocumentInputSummary(&col, value); err != nil { + var col types.InputSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentInputSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4099,7 +4113,7 @@ func awsRestjson1_deserializeDocumentInputSummary(v **types.InputSummary, value if !ok { return fmt.Errorf("expected InputArn to be of type string, got %T instead", value) } - sv.InputArn = &jtv + sv.InputArn = ptr.String(jtv) } case "inputDescription": @@ -4108,7 +4122,7 @@ func awsRestjson1_deserializeDocumentInputSummary(v **types.InputSummary, value if !ok { return fmt.Errorf("expected InputDescription to be of type string, got %T instead", value) } - sv.InputDescription = &jtv + sv.InputDescription = ptr.String(jtv) } case "inputName": @@ -4117,7 +4131,7 @@ func awsRestjson1_deserializeDocumentInputSummary(v **types.InputSummary, value if !ok { return fmt.Errorf("expected InputName to be of type string, got %T instead", value) } - sv.InputName = &jtv + sv.InputName = ptr.String(jtv) } case "lastUpdateTime": @@ -4179,7 +4193,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4219,7 +4233,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4259,7 +4273,7 @@ func awsRestjson1_deserializeDocumentIotEventsAction(v **types.IotEventsAction, if !ok { return fmt.Errorf("expected InputName to be of type string, got %T instead", value) } - sv.InputName = &jtv + sv.InputName = ptr.String(jtv) } case "payload": @@ -4304,7 +4318,7 @@ func awsRestjson1_deserializeDocumentIotSiteWiseAction(v **types.IotSiteWiseActi if !ok { return fmt.Errorf("expected AssetId to be of type string, got %T instead", value) } - sv.AssetId = &jtv + sv.AssetId = ptr.String(jtv) } case "entryId": @@ -4313,7 +4327,7 @@ func awsRestjson1_deserializeDocumentIotSiteWiseAction(v **types.IotSiteWiseActi if !ok { return fmt.Errorf("expected AssetPropertyEntryId to be of type string, got %T instead", value) } - sv.EntryId = &jtv + sv.EntryId = ptr.String(jtv) } case "propertyAlias": @@ -4322,7 +4336,7 @@ func awsRestjson1_deserializeDocumentIotSiteWiseAction(v **types.IotSiteWiseActi if !ok { return fmt.Errorf("expected AssetPropertyAlias to be of type string, got %T instead", value) } - sv.PropertyAlias = &jtv + sv.PropertyAlias = ptr.String(jtv) } case "propertyId": @@ -4331,7 +4345,7 @@ func awsRestjson1_deserializeDocumentIotSiteWiseAction(v **types.IotSiteWiseActi if !ok { return fmt.Errorf("expected AssetPropertyId to be of type string, got %T instead", value) } - sv.PropertyId = &jtv + sv.PropertyId = ptr.String(jtv) } case "propertyValue": @@ -4376,7 +4390,7 @@ func awsRestjson1_deserializeDocumentIotTopicPublishAction(v **types.IotTopicPub if !ok { return fmt.Errorf("expected MQTTTopic to be of type string, got %T instead", value) } - sv.MqttTopic = &jtv + sv.MqttTopic = ptr.String(jtv) } case "payload": @@ -4421,7 +4435,7 @@ func awsRestjson1_deserializeDocumentLambdaAction(v **types.LambdaAction, value if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "payload": @@ -4466,7 +4480,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4511,7 +4525,7 @@ func awsRestjson1_deserializeDocumentLoggingOptions(v **types.LoggingOptions, va if !ok { return fmt.Errorf("expected LoggingEnabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "level": @@ -4529,7 +4543,7 @@ func awsRestjson1_deserializeDocumentLoggingOptions(v **types.LoggingOptions, va if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -4682,7 +4696,7 @@ func awsRestjson1_deserializeDocumentPayload(v **types.Payload, value interface{ if !ok { return fmt.Errorf("expected ContentExpression to be of type string, got %T instead", value) } - sv.ContentExpression = &jtv + sv.ContentExpression = ptr.String(jtv) } case "type": @@ -4731,7 +4745,7 @@ func awsRestjson1_deserializeDocumentResetTimerAction(v **types.ResetTimerAction if !ok { return fmt.Errorf("expected TimerName to be of type string, got %T instead", value) } - sv.TimerName = &jtv + sv.TimerName = ptr.String(jtv) } default: @@ -4771,7 +4785,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceArn": @@ -4780,7 +4794,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected resourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "resourceId": @@ -4789,7 +4803,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected resourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } default: @@ -4829,7 +4843,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4869,7 +4883,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4909,7 +4923,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4949,7 +4963,7 @@ func awsRestjson1_deserializeDocumentSetTimerAction(v **types.SetTimerAction, va if !ok { return fmt.Errorf("expected VariableValue to be of type string, got %T instead", value) } - sv.DurationExpression = &jtv + sv.DurationExpression = ptr.String(jtv) } case "seconds": @@ -4971,7 +4985,7 @@ func awsRestjson1_deserializeDocumentSetTimerAction(v **types.SetTimerAction, va if !ok { return fmt.Errorf("expected TimerName to be of type string, got %T instead", value) } - sv.TimerName = &jtv + sv.TimerName = ptr.String(jtv) } default: @@ -5011,7 +5025,7 @@ func awsRestjson1_deserializeDocumentSetVariableAction(v **types.SetVariableActi if !ok { return fmt.Errorf("expected VariableValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } case "variableName": @@ -5020,7 +5034,7 @@ func awsRestjson1_deserializeDocumentSetVariableAction(v **types.SetVariableActi if !ok { return fmt.Errorf("expected VariableName to be of type string, got %T instead", value) } - sv.VariableName = &jtv + sv.VariableName = ptr.String(jtv) } default: @@ -5065,7 +5079,7 @@ func awsRestjson1_deserializeDocumentSNSTopicPublishAction(v **types.SNSTopicPub if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.TargetArn = &jtv + sv.TargetArn = ptr.String(jtv) } default: @@ -5110,7 +5124,7 @@ func awsRestjson1_deserializeDocumentSqsAction(v **types.SqsAction, value interf if !ok { return fmt.Errorf("expected QueueUrl to be of type string, got %T instead", value) } - sv.QueueUrl = &jtv + sv.QueueUrl = ptr.String(jtv) } case "useBase64": @@ -5119,7 +5133,7 @@ func awsRestjson1_deserializeDocumentSqsAction(v **types.SqsAction, value interf if !ok { return fmt.Errorf("expected UseBase64 to be of type *bool, got %T instead", value) } - sv.UseBase64 = &jtv + sv.UseBase64 = ptr.Bool(jtv) } default: @@ -5174,7 +5188,7 @@ func awsRestjson1_deserializeDocumentState(v **types.State, value interface{}) e if !ok { return fmt.Errorf("expected StateName to be of type string, got %T instead", value) } - sv.StateName = &jtv + sv.StateName = ptr.String(jtv) } default: @@ -5186,7 +5200,7 @@ func awsRestjson1_deserializeDocumentState(v **types.State, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentStates(v *[]*types.State, value interface{}) error { +func awsRestjson1_deserializeDocumentStates(v *[]types.State, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5199,18 +5213,20 @@ func awsRestjson1_deserializeDocumentStates(v *[]*types.State, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.State + var cv []types.State if *v == nil { - cv = []*types.State{} + cv = []types.State{} } else { cv = *v } for _, value := range shape { - var col *types.State - if err := awsRestjson1_deserializeDocumentState(&col, value); err != nil { + var col types.State + destAddr := &col + if err := awsRestjson1_deserializeDocumentState(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5246,7 +5262,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -5255,7 +5271,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5267,7 +5283,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5280,18 +5296,20 @@ func awsRestjson1_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5327,7 +5345,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5372,7 +5390,7 @@ func awsRestjson1_deserializeDocumentTransitionEvent(v **types.TransitionEvent, if !ok { return fmt.Errorf("expected Condition to be of type string, got %T instead", value) } - sv.Condition = &jtv + sv.Condition = ptr.String(jtv) } case "eventName": @@ -5381,7 +5399,7 @@ func awsRestjson1_deserializeDocumentTransitionEvent(v **types.TransitionEvent, if !ok { return fmt.Errorf("expected EventName to be of type string, got %T instead", value) } - sv.EventName = &jtv + sv.EventName = ptr.String(jtv) } case "nextState": @@ -5390,7 +5408,7 @@ func awsRestjson1_deserializeDocumentTransitionEvent(v **types.TransitionEvent, if !ok { return fmt.Errorf("expected StateName to be of type string, got %T instead", value) } - sv.NextState = &jtv + sv.NextState = ptr.String(jtv) } default: @@ -5402,7 +5420,7 @@ func awsRestjson1_deserializeDocumentTransitionEvent(v **types.TransitionEvent, return nil } -func awsRestjson1_deserializeDocumentTransitionEvents(v *[]*types.TransitionEvent, value interface{}) error { +func awsRestjson1_deserializeDocumentTransitionEvents(v *[]types.TransitionEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5415,18 +5433,20 @@ func awsRestjson1_deserializeDocumentTransitionEvents(v *[]*types.TransitionEven return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TransitionEvent + var cv []types.TransitionEvent if *v == nil { - cv = []*types.TransitionEvent{} + cv = []types.TransitionEvent{} } else { cv = *v } for _, value := range shape { - var col *types.TransitionEvent - if err := awsRestjson1_deserializeDocumentTransitionEvent(&col, value); err != nil { + var col types.TransitionEvent + destAddr := &col + if err := awsRestjson1_deserializeDocumentTransitionEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5462,7 +5482,7 @@ func awsRestjson1_deserializeDocumentUnsupportedOperationException(v **types.Uns if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/iotevents/go.mod b/service/iotevents/go.mod index 5086617df01..98e5a9c2cce 100644 --- a/service/iotevents/go.mod +++ b/service/iotevents/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/iotevents go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/iotevents/serializers.go b/service/iotevents/serializers.go index ac80e42f17d..23086262493 100644 --- a/service/iotevents/serializers.go +++ b/service/iotevents/serializers.go @@ -264,13 +264,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDetectorModelInput(v *DeleteDetec return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorModelName == nil { + if v.DetectorModelName == nil || len(*v.DetectorModelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member detectorModelName must not be empty")} } if v.DetectorModelName != nil { - if len(*v.DetectorModelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member detectorModelName must not be empty")} - } if err := encoder.SetURI("detectorModelName").String(*v.DetectorModelName); err != nil { return err } @@ -330,13 +327,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteInputInput(v *DeleteInputInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputName == nil { + if v.InputName == nil || len(*v.InputName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member inputName must not be empty")} } if v.InputName != nil { - if len(*v.InputName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member inputName must not be empty")} - } if err := encoder.SetURI("inputName").String(*v.InputName); err != nil { return err } @@ -396,13 +390,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDetectorModelInput(v *DescribeD return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorModelName == nil { + if v.DetectorModelName == nil || len(*v.DetectorModelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member detectorModelName must not be empty")} } if v.DetectorModelName != nil { - if len(*v.DetectorModelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member detectorModelName must not be empty")} - } if err := encoder.SetURI("detectorModelName").String(*v.DetectorModelName); err != nil { return err } @@ -466,13 +457,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeInputInput(v *DescribeInputInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputName == nil { + if v.InputName == nil || len(*v.InputName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member inputName must not be empty")} } if v.InputName != nil { - if len(*v.InputName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member inputName must not be empty")} - } if err := encoder.SetURI("inputName").String(*v.InputName); err != nil { return err } @@ -644,13 +632,10 @@ func awsRestjson1_serializeOpHttpBindingsListDetectorModelVersionsInput(v *ListD return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorModelName == nil { + if v.DetectorModelName == nil || len(*v.DetectorModelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member detectorModelName must not be empty")} } if v.DetectorModelName != nil { - if len(*v.DetectorModelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member detectorModelName must not be empty")} - } if err := encoder.SetURI("detectorModelName").String(*v.DetectorModelName); err != nil { return err } @@ -1002,10 +987,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1074,13 +1056,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDetectorModelInput(v *UpdateDetec return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorModelName == nil { + if v.DetectorModelName == nil || len(*v.DetectorModelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member detectorModelName must not be empty")} } if v.DetectorModelName != nil { - if len(*v.DetectorModelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member detectorModelName must not be empty")} - } if err := encoder.SetURI("detectorModelName").String(*v.DetectorModelName); err != nil { return err } @@ -1180,13 +1159,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateInputInput(v *UpdateInputInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputName == nil { + if v.InputName == nil || len(*v.InputName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member inputName must not be empty")} } if v.InputName != nil { - if len(*v.InputName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member inputName must not be empty")} - } if err := encoder.SetURI("inputName").String(*v.InputName); err != nil { return err } @@ -1312,17 +1288,13 @@ func awsRestjson1_serializeDocumentAction(v *types.Action, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentActions(v []*types.Action, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentActions(v []types.Action, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAction(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAction(&v[i], av); err != nil { return err } } @@ -1411,17 +1383,13 @@ func awsRestjson1_serializeDocumentAttribute(v *types.Attribute, value smithyjso return nil } -func awsRestjson1_serializeDocumentAttributes(v []*types.Attribute, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAttributes(v []types.Attribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAttribute(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAttribute(&v[i], av); err != nil { return err } } @@ -1457,17 +1425,13 @@ func awsRestjson1_serializeDocumentDetectorDebugOption(v *types.DetectorDebugOpt return nil } -func awsRestjson1_serializeDocumentDetectorDebugOptions(v []*types.DetectorDebugOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDetectorDebugOptions(v []types.DetectorDebugOption, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDetectorDebugOption(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDetectorDebugOption(&v[i], av); err != nil { return err } } @@ -1595,17 +1559,13 @@ func awsRestjson1_serializeDocumentEvent(v *types.Event, value smithyjson.Value) return nil } -func awsRestjson1_serializeDocumentEvents(v []*types.Event, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEvents(v []types.Event, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentEvent(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentEvent(&v[i], av); err != nil { return err } } @@ -1752,9 +1712,9 @@ func awsRestjson1_serializeDocumentLoggingOptions(v *types.LoggingOptions, value } } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if len(v.Level) > 0 { @@ -1963,17 +1923,13 @@ func awsRestjson1_serializeDocumentState(v *types.State, value smithyjson.Value) return nil } -func awsRestjson1_serializeDocumentStates(v []*types.State, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStates(v []types.State, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentState(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentState(&v[i], av); err != nil { return err } } @@ -1997,17 +1953,13 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2043,17 +1995,13 @@ func awsRestjson1_serializeDocumentTransitionEvent(v *types.TransitionEvent, val return nil } -func awsRestjson1_serializeDocumentTransitionEvents(v []*types.TransitionEvent, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTransitionEvents(v []types.TransitionEvent, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTransitionEvent(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTransitionEvent(&v[i], av); err != nil { return err } } diff --git a/service/iotevents/types/types.go b/service/iotevents/types/types.go index 2793d528c9d..574c71d8a11 100644 --- a/service/iotevents/types/types.go +++ b/service/iotevents/types/types.go @@ -270,7 +270,7 @@ type DetectorModelDefinition struct { // Information about the states of the detector. // // This member is required. - States []*State + States []State } // Information about the detector model. @@ -446,7 +446,7 @@ type Event struct { EventName *string // The actions to be performed. - Actions []*Action + Actions []Action // Optional. The Boolean expression that, when TRUE, causes the actions to be // performed. If not present, the actions are performed (=TRUE). If the expression @@ -525,7 +525,7 @@ type InputDefinition struct { // expressions used by detectors that monitor this input. // // This member is required. - Attributes []*Attribute + Attributes []Attribute } // Information about the input. @@ -638,7 +638,7 @@ type LoggingOptions struct { // If TRUE, logging is enabled for AWS IoT Events. // // This member is required. - Enabled *bool + Enabled bool // The logging level. // @@ -652,7 +652,7 @@ type LoggingOptions struct { // Information that identifies those detector models and their detectors // (instances) for which the logging level is given. - DetectorDebugOptions []*DetectorDebugOption + DetectorDebugOptions []DetectorDebugOption } // When entering this state, perform these actions if the condition is TRUE. @@ -660,7 +660,7 @@ type OnEnterLifecycle struct { // Specifies the actions that are performed when the state is entered and the // condition is TRUE. - Events []*Event + Events []Event } // When exiting this state, perform these actions if the specified condition is @@ -669,18 +669,18 @@ type OnExitLifecycle struct { // Specifies the actions that are performed when the state is exited and the // condition is TRUE. - Events []*Event + Events []Event } // Specifies the actions performed when the condition evaluates to TRUE. type OnInputLifecycle struct { // Specifies the actions performed when the condition evaluates to TRUE. - Events []*Event + Events []Event // Specifies the actions performed, and the next state entered, when a condition // evaluates to TRUE. - TransitionEvents []*TransitionEvent + TransitionEvents []TransitionEvent } // Information needed to configure the payload. By default, AWS IoT Events @@ -835,5 +835,5 @@ type TransitionEvent struct { NextState *string // The actions to be performed. - Actions []*Action + Actions []Action } diff --git a/service/iotevents/validators.go b/service/iotevents/validators.go index 139db251549..a372b47cab5 100644 --- a/service/iotevents/validators.go +++ b/service/iotevents/validators.go @@ -399,13 +399,13 @@ func validateAction(v *types.Action) error { } } -func validateActions(v []*types.Action) error { +func validateActions(v []types.Action) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Actions"} for i := range v { - if err := validateAction(v[i]); err != nil { + if err := validateAction(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -466,13 +466,13 @@ func validateAttribute(v *types.Attribute) error { } } -func validateAttributes(v []*types.Attribute) error { +func validateAttributes(v []types.Attribute) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Attributes"} for i := range v { - if err := validateAttribute(v[i]); err != nil { + if err := validateAttribute(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -513,13 +513,13 @@ func validateDetectorDebugOption(v *types.DetectorDebugOption) error { } } -func validateDetectorDebugOptions(v []*types.DetectorDebugOption) error { +func validateDetectorDebugOptions(v []types.DetectorDebugOption) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DetectorDebugOptions"} for i := range v { - if err := validateDetectorDebugOption(v[i]); err != nil { + if err := validateDetectorDebugOption(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -618,13 +618,13 @@ func validateEvent(v *types.Event) error { } } -func validateEvents(v []*types.Event) error { +func validateEvents(v []types.Event) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Events"} for i := range v { - if err := validateEvent(v[i]); err != nil { + if err := validateEvent(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -764,9 +764,6 @@ func validateLoggingOptions(v *types.LoggingOptions) error { if len(v.Level) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Level")) } - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if v.DetectorDebugOptions != nil { if err := validateDetectorDebugOptions(v.DetectorDebugOptions); err != nil { invalidParams.AddNested("DetectorDebugOptions", err.(smithy.InvalidParamsError)) @@ -971,13 +968,13 @@ func validateState(v *types.State) error { } } -func validateStates(v []*types.State) error { +func validateStates(v []types.State) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "States"} for i := range v { - if err := validateState(v[i]); err != nil { + if err := validateState(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1006,13 +1003,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1049,13 +1046,13 @@ func validateTransitionEvent(v *types.TransitionEvent) error { } } -func validateTransitionEvents(v []*types.TransitionEvent) error { +func validateTransitionEvents(v []types.TransitionEvent) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TransitionEvents"} for i := range v { - if err := validateTransitionEvent(v[i]); err != nil { + if err := validateTransitionEvent(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/ioteventsdata/api_op_BatchPutMessage.go b/service/ioteventsdata/api_op_BatchPutMessage.go index 5d8414a5059..1a67e20e969 100644 --- a/service/ioteventsdata/api_op_BatchPutMessage.go +++ b/service/ioteventsdata/api_op_BatchPutMessage.go @@ -37,13 +37,13 @@ type BatchPutMessageInput struct { // "messageId": "string", "inputName": "string", "payload": "string"}' // // This member is required. - Messages []*types.Message + Messages []types.Message } type BatchPutMessageOutput struct { // A list of any errors encountered when sending the messages. - BatchPutMessageErrorEntries []*types.BatchPutMessageErrorEntry + BatchPutMessageErrorEntries []types.BatchPutMessageErrorEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ioteventsdata/api_op_BatchUpdateDetector.go b/service/ioteventsdata/api_op_BatchUpdateDetector.go index fbca9db0687..d9746279be3 100644 --- a/service/ioteventsdata/api_op_BatchUpdateDetector.go +++ b/service/ioteventsdata/api_op_BatchUpdateDetector.go @@ -33,14 +33,14 @@ type BatchUpdateDetectorInput struct { // The list of detectors (instances) to update, along with the values to update. // // This member is required. - Detectors []*types.UpdateDetectorRequest + Detectors []types.UpdateDetectorRequest } type BatchUpdateDetectorOutput struct { // A list of those detector updates that resulted in errors. (If an error is listed // here, the specific update did not occur.) - BatchUpdateDetectorErrorEntries []*types.BatchUpdateDetectorErrorEntry + BatchUpdateDetectorErrorEntries []types.BatchUpdateDetectorErrorEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ioteventsdata/api_op_ListDetectors.go b/service/ioteventsdata/api_op_ListDetectors.go index 5f74b6e8010..62bff8bbaa0 100644 --- a/service/ioteventsdata/api_op_ListDetectors.go +++ b/service/ioteventsdata/api_op_ListDetectors.go @@ -47,7 +47,7 @@ type ListDetectorsInput struct { type ListDetectorsOutput struct { // A list of summary information about the detectors (instances). - DetectorSummaries []*types.DetectorSummary + DetectorSummaries []types.DetectorSummary // A token to retrieve the next set of results, or null if there are no additional // results. diff --git a/service/ioteventsdata/deserializers.go b/service/ioteventsdata/deserializers.go index 2d6221bd437..d800a4d64b3 100644 --- a/service/ioteventsdata/deserializers.go +++ b/service/ioteventsdata/deserializers.go @@ -646,7 +646,7 @@ func awsRestjson1_deserializeOpDocumentListDetectorsOutput(v **ListDetectorsOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -838,7 +838,7 @@ func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Respo return output } -func awsRestjson1_deserializeDocumentBatchPutMessageErrorEntries(v *[]*types.BatchPutMessageErrorEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchPutMessageErrorEntries(v *[]types.BatchPutMessageErrorEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -851,18 +851,20 @@ func awsRestjson1_deserializeDocumentBatchPutMessageErrorEntries(v *[]*types.Bat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchPutMessageErrorEntry + var cv []types.BatchPutMessageErrorEntry if *v == nil { - cv = []*types.BatchPutMessageErrorEntry{} + cv = []types.BatchPutMessageErrorEntry{} } else { cv = *v } for _, value := range shape { - var col *types.BatchPutMessageErrorEntry - if err := awsRestjson1_deserializeDocumentBatchPutMessageErrorEntry(&col, value); err != nil { + var col types.BatchPutMessageErrorEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchPutMessageErrorEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -907,7 +909,7 @@ func awsRestjson1_deserializeDocumentBatchPutMessageErrorEntry(v **types.BatchPu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "messageId": @@ -916,7 +918,7 @@ func awsRestjson1_deserializeDocumentBatchPutMessageErrorEntry(v **types.BatchPu if !ok { return fmt.Errorf("expected MessageId to be of type string, got %T instead", value) } - sv.MessageId = &jtv + sv.MessageId = ptr.String(jtv) } default: @@ -928,7 +930,7 @@ func awsRestjson1_deserializeDocumentBatchPutMessageErrorEntry(v **types.BatchPu return nil } -func awsRestjson1_deserializeDocumentBatchUpdateDetectorErrorEntries(v *[]*types.BatchUpdateDetectorErrorEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchUpdateDetectorErrorEntries(v *[]types.BatchUpdateDetectorErrorEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -941,18 +943,20 @@ func awsRestjson1_deserializeDocumentBatchUpdateDetectorErrorEntries(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchUpdateDetectorErrorEntry + var cv []types.BatchUpdateDetectorErrorEntry if *v == nil { - cv = []*types.BatchUpdateDetectorErrorEntry{} + cv = []types.BatchUpdateDetectorErrorEntry{} } else { cv = *v } for _, value := range shape { - var col *types.BatchUpdateDetectorErrorEntry - if err := awsRestjson1_deserializeDocumentBatchUpdateDetectorErrorEntry(&col, value); err != nil { + var col types.BatchUpdateDetectorErrorEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchUpdateDetectorErrorEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -997,7 +1001,7 @@ func awsRestjson1_deserializeDocumentBatchUpdateDetectorErrorEntry(v **types.Bat if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "messageId": @@ -1006,7 +1010,7 @@ func awsRestjson1_deserializeDocumentBatchUpdateDetectorErrorEntry(v **types.Bat if !ok { return fmt.Errorf("expected MessageId to be of type string, got %T instead", value) } - sv.MessageId = &jtv + sv.MessageId = ptr.String(jtv) } default: @@ -1059,7 +1063,7 @@ func awsRestjson1_deserializeDocumentDetector(v **types.Detector, value interfac if !ok { return fmt.Errorf("expected DetectorModelName to be of type string, got %T instead", value) } - sv.DetectorModelName = &jtv + sv.DetectorModelName = ptr.String(jtv) } case "detectorModelVersion": @@ -1068,7 +1072,7 @@ func awsRestjson1_deserializeDocumentDetector(v **types.Detector, value interfac if !ok { return fmt.Errorf("expected DetectorModelVersion to be of type string, got %T instead", value) } - sv.DetectorModelVersion = &jtv + sv.DetectorModelVersion = ptr.String(jtv) } case "keyValue": @@ -1077,7 +1081,7 @@ func awsRestjson1_deserializeDocumentDetector(v **types.Detector, value interfac if !ok { return fmt.Errorf("expected KeyValue to be of type string, got %T instead", value) } - sv.KeyValue = &jtv + sv.KeyValue = ptr.String(jtv) } case "lastUpdateTime": @@ -1135,7 +1139,7 @@ func awsRestjson1_deserializeDocumentDetectorState(v **types.DetectorState, valu if !ok { return fmt.Errorf("expected StateName to be of type string, got %T instead", value) } - sv.StateName = &jtv + sv.StateName = ptr.String(jtv) } case "timers": @@ -1185,7 +1189,7 @@ func awsRestjson1_deserializeDocumentDetectorStateSummary(v **types.DetectorStat if !ok { return fmt.Errorf("expected StateName to be of type string, got %T instead", value) } - sv.StateName = &jtv + sv.StateName = ptr.String(jtv) } default: @@ -1197,7 +1201,7 @@ func awsRestjson1_deserializeDocumentDetectorStateSummary(v **types.DetectorStat return nil } -func awsRestjson1_deserializeDocumentDetectorSummaries(v *[]*types.DetectorSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDetectorSummaries(v *[]types.DetectorSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1210,18 +1214,20 @@ func awsRestjson1_deserializeDocumentDetectorSummaries(v *[]*types.DetectorSumma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DetectorSummary + var cv []types.DetectorSummary if *v == nil { - cv = []*types.DetectorSummary{} + cv = []types.DetectorSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DetectorSummary - if err := awsRestjson1_deserializeDocumentDetectorSummary(&col, value); err != nil { + var col types.DetectorSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDetectorSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1270,7 +1276,7 @@ func awsRestjson1_deserializeDocumentDetectorSummary(v **types.DetectorSummary, if !ok { return fmt.Errorf("expected DetectorModelName to be of type string, got %T instead", value) } - sv.DetectorModelName = &jtv + sv.DetectorModelName = ptr.String(jtv) } case "detectorModelVersion": @@ -1279,7 +1285,7 @@ func awsRestjson1_deserializeDocumentDetectorSummary(v **types.DetectorSummary, if !ok { return fmt.Errorf("expected DetectorModelVersion to be of type string, got %T instead", value) } - sv.DetectorModelVersion = &jtv + sv.DetectorModelVersion = ptr.String(jtv) } case "keyValue": @@ -1288,7 +1294,7 @@ func awsRestjson1_deserializeDocumentDetectorSummary(v **types.DetectorSummary, if !ok { return fmt.Errorf("expected KeyValue to be of type string, got %T instead", value) } - sv.KeyValue = &jtv + sv.KeyValue = ptr.String(jtv) } case "lastUpdateTime": @@ -1346,7 +1352,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1386,7 +1392,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1426,7 +1432,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1466,7 +1472,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1506,7 +1512,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1546,7 +1552,7 @@ func awsRestjson1_deserializeDocumentTimer(v **types.Timer, value interface{}) e if !ok { return fmt.Errorf("expected TimerName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "timestamp": @@ -1571,7 +1577,7 @@ func awsRestjson1_deserializeDocumentTimer(v **types.Timer, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentTimers(v *[]*types.Timer, value interface{}) error { +func awsRestjson1_deserializeDocumentTimers(v *[]types.Timer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1584,18 +1590,20 @@ func awsRestjson1_deserializeDocumentTimers(v *[]*types.Timer, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Timer + var cv []types.Timer if *v == nil { - cv = []*types.Timer{} + cv = []types.Timer{} } else { cv = *v } for _, value := range shape { - var col *types.Timer - if err := awsRestjson1_deserializeDocumentTimer(&col, value); err != nil { + var col types.Timer + destAddr := &col + if err := awsRestjson1_deserializeDocumentTimer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1631,7 +1639,7 @@ func awsRestjson1_deserializeDocumentVariable(v **types.Variable, value interfac if !ok { return fmt.Errorf("expected VariableName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "value": @@ -1640,7 +1648,7 @@ func awsRestjson1_deserializeDocumentVariable(v **types.Variable, value interfac if !ok { return fmt.Errorf("expected VariableValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -1652,7 +1660,7 @@ func awsRestjson1_deserializeDocumentVariable(v **types.Variable, value interfac return nil } -func awsRestjson1_deserializeDocumentVariables(v *[]*types.Variable, value interface{}) error { +func awsRestjson1_deserializeDocumentVariables(v *[]types.Variable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1665,18 +1673,20 @@ func awsRestjson1_deserializeDocumentVariables(v *[]*types.Variable, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Variable + var cv []types.Variable if *v == nil { - cv = []*types.Variable{} + cv = []types.Variable{} } else { cv = *v } for _, value := range shape { - var col *types.Variable - if err := awsRestjson1_deserializeDocumentVariable(&col, value); err != nil { + var col types.Variable + destAddr := &col + if err := awsRestjson1_deserializeDocumentVariable(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/ioteventsdata/go.mod b/service/ioteventsdata/go.mod index b06dc3a9f1d..a70da4d0356 100644 --- a/service/ioteventsdata/go.mod +++ b/service/ioteventsdata/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/ioteventsdata go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/ioteventsdata/serializers.go b/service/ioteventsdata/serializers.go index 4208b92f63d..e0d3fef070d 100644 --- a/service/ioteventsdata/serializers.go +++ b/service/ioteventsdata/serializers.go @@ -215,13 +215,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDetectorInput(v *DescribeDetect return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorModelName == nil { + if v.DetectorModelName == nil || len(*v.DetectorModelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member detectorModelName must not be empty")} } if v.DetectorModelName != nil { - if len(*v.DetectorModelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member detectorModelName must not be empty")} - } if err := encoder.SetURI("detectorModelName").String(*v.DetectorModelName); err != nil { return err } @@ -285,13 +282,10 @@ func awsRestjson1_serializeOpHttpBindingsListDetectorsInput(v *ListDetectorsInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DetectorModelName == nil { + if v.DetectorModelName == nil || len(*v.DetectorModelName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member detectorModelName must not be empty")} } if v.DetectorModelName != nil { - if len(*v.DetectorModelName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member detectorModelName must not be empty")} - } if err := encoder.SetURI("detectorModelName").String(*v.DetectorModelName); err != nil { return err } @@ -360,17 +354,13 @@ func awsRestjson1_serializeDocumentMessage(v *types.Message, value smithyjson.Va return nil } -func awsRestjson1_serializeDocumentMessages(v []*types.Message, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMessages(v []types.Message, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMessage(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMessage(&v[i], av); err != nil { return err } } @@ -394,17 +384,13 @@ func awsRestjson1_serializeDocumentTimerDefinition(v *types.TimerDefinition, val return nil } -func awsRestjson1_serializeDocumentTimerDefinitions(v []*types.TimerDefinition, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTimerDefinitions(v []types.TimerDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTimerDefinition(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTimerDefinition(&v[i], av); err != nil { return err } } @@ -440,17 +426,13 @@ func awsRestjson1_serializeDocumentUpdateDetectorRequest(v *types.UpdateDetector return nil } -func awsRestjson1_serializeDocumentUpdateDetectorRequests(v []*types.UpdateDetectorRequest, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentUpdateDetectorRequests(v []types.UpdateDetectorRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentUpdateDetectorRequest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentUpdateDetectorRequest(&v[i], av); err != nil { return err } } @@ -474,17 +456,13 @@ func awsRestjson1_serializeDocumentVariableDefinition(v *types.VariableDefinitio return nil } -func awsRestjson1_serializeDocumentVariableDefinitions(v []*types.VariableDefinition, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentVariableDefinitions(v []types.VariableDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentVariableDefinition(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentVariableDefinition(&v[i], av); err != nil { return err } } diff --git a/service/ioteventsdata/types/types.go b/service/ioteventsdata/types/types.go index 561545fbc95..2746342d41e 100644 --- a/service/ioteventsdata/types/types.go +++ b/service/ioteventsdata/types/types.go @@ -68,12 +68,12 @@ type DetectorState struct { // The current state of the detector's timers. // // This member is required. - Timers []*Timer + Timers []Timer // The current values of the detector's variables. // // This member is required. - Variables []*Variable + Variables []Variable } // The new state, variable values, and timer settings of the detector (instance). @@ -88,13 +88,13 @@ type DetectorStateDefinition struct { // is cleared, and its timeout event won't occur. // // This member is required. - Timers []*TimerDefinition + Timers []TimerDefinition // The new values of the detector's variables. Any variable whose value isn't // specified is cleared. // // This member is required. - Variables []*VariableDefinition + Variables []VariableDefinition } // Information about the detector state. diff --git a/service/ioteventsdata/validators.go b/service/ioteventsdata/validators.go index 7b9630aba81..00b187bfd84 100644 --- a/service/ioteventsdata/validators.go +++ b/service/ioteventsdata/validators.go @@ -156,13 +156,13 @@ func validateMessage(v *types.Message) error { } } -func validateMessages(v []*types.Message) error { +func validateMessages(v []types.Message) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Messages"} for i := range v { - if err := validateMessage(v[i]); err != nil { + if err := validateMessage(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -191,13 +191,13 @@ func validateTimerDefinition(v *types.TimerDefinition) error { } } -func validateTimerDefinitions(v []*types.TimerDefinition) error { +func validateTimerDefinitions(v []types.TimerDefinition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TimerDefinitions"} for i := range v { - if err := validateTimerDefinition(v[i]); err != nil { + if err := validateTimerDefinition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -233,13 +233,13 @@ func validateUpdateDetectorRequest(v *types.UpdateDetectorRequest) error { } } -func validateUpdateDetectorRequests(v []*types.UpdateDetectorRequest) error { +func validateUpdateDetectorRequests(v []types.UpdateDetectorRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateDetectorRequests"} for i := range v { - if err := validateUpdateDetectorRequest(v[i]); err != nil { + if err := validateUpdateDetectorRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -268,13 +268,13 @@ func validateVariableDefinition(v *types.VariableDefinition) error { } } -func validateVariableDefinitions(v []*types.VariableDefinition) error { +func validateVariableDefinitions(v []types.VariableDefinition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "VariableDefinitions"} for i := range v { - if err := validateVariableDefinition(v[i]); err != nil { + if err := validateVariableDefinition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/iotjobsdataplane/api_op_GetPendingJobExecutions.go b/service/iotjobsdataplane/api_op_GetPendingJobExecutions.go index 500773db6be..6aaeb42733d 100644 --- a/service/iotjobsdataplane/api_op_GetPendingJobExecutions.go +++ b/service/iotjobsdataplane/api_op_GetPendingJobExecutions.go @@ -38,10 +38,10 @@ type GetPendingJobExecutionsInput struct { type GetPendingJobExecutionsOutput struct { // A list of JobExecutionSummary objects with status IN_PROGRESS. - InProgressJobs []*types.JobExecutionSummary + InProgressJobs []types.JobExecutionSummary // A list of JobExecutionSummary objects with status QUEUED. - QueuedJobs []*types.JobExecutionSummary + QueuedJobs []types.JobExecutionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotjobsdataplane/api_op_StartNextPendingJobExecution.go b/service/iotjobsdataplane/api_op_StartNextPendingJobExecution.go index 7cfaaad2f5a..29b6afce759 100644 --- a/service/iotjobsdataplane/api_op_StartNextPendingJobExecution.go +++ b/service/iotjobsdataplane/api_op_StartNextPendingJobExecution.go @@ -37,7 +37,7 @@ type StartNextPendingJobExecutionInput struct { // A collection of name/value pairs that describe the status of the job execution. // If not specified, the statusDetails are unchanged. - StatusDetails map[string]*string + StatusDetails map[string]string // Specifies the amount of time this device has to finish execution of this job. If // the job execution status is not set to a terminal state before this timer diff --git a/service/iotjobsdataplane/api_op_UpdateJobExecution.go b/service/iotjobsdataplane/api_op_UpdateJobExecution.go index 2152b23fbc3..e7072483887 100644 --- a/service/iotjobsdataplane/api_op_UpdateJobExecution.go +++ b/service/iotjobsdataplane/api_op_UpdateJobExecution.go @@ -68,7 +68,7 @@ type UpdateJobExecutionInput struct { // Optional. A collection of name/value pairs that describe the status of the job // execution. If not specified, the statusDetails are unchanged. - StatusDetails map[string]*string + StatusDetails map[string]string // Specifies the amount of time this device has to finish execution of this job. If // the job execution status is not set to a terminal state before this timer diff --git a/service/iotjobsdataplane/deserializers.go b/service/iotjobsdataplane/deserializers.go index dd72269bd15..9d9b756e834 100644 --- a/service/iotjobsdataplane/deserializers.go +++ b/service/iotjobsdataplane/deserializers.go @@ -13,6 +13,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -662,7 +663,7 @@ func awsRestjson1_deserializeOpDocumentUpdateJobExecutionOutput(v **UpdateJobExe if !ok { return fmt.Errorf("expected JobDocument to be of type string, got %T instead", value) } - sv.JobDocument = &jtv + sv.JobDocument = ptr.String(jtv) } default: @@ -954,7 +955,7 @@ func awsRestjson1_deserializeDocumentCertificateValidationException(v **types.Ce if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -966,7 +967,7 @@ func awsRestjson1_deserializeDocumentCertificateValidationException(v **types.Ce return nil } -func awsRestjson1_deserializeDocumentDetailsMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDetailsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -979,21 +980,21 @@ func awsRestjson1_deserializeDocumentDetailsMap(v *map[string]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DetailsValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -1030,7 +1031,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1070,7 +1071,7 @@ func awsRestjson1_deserializeDocumentInvalidStateTransitionException(v **types.I if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1114,7 +1115,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if err != nil { return err } - sv.ApproximateSecondsBeforeTimedOut = &i64 + sv.ApproximateSecondsBeforeTimedOut = ptr.Int64(i64) } case "executionNumber": @@ -1127,7 +1128,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if err != nil { return err } - sv.ExecutionNumber = &i64 + sv.ExecutionNumber = ptr.Int64(i64) } case "jobDocument": @@ -1136,7 +1137,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if !ok { return fmt.Errorf("expected JobDocument to be of type string, got %T instead", value) } - sv.JobDocument = &jtv + sv.JobDocument = ptr.String(jtv) } case "jobId": @@ -1145,7 +1146,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "lastUpdatedAt": @@ -1158,7 +1159,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if err != nil { return err } - sv.LastUpdatedAt = &i64 + sv.LastUpdatedAt = i64 } case "queuedAt": @@ -1171,7 +1172,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if err != nil { return err } - sv.QueuedAt = &i64 + sv.QueuedAt = i64 } case "startedAt": @@ -1184,7 +1185,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if err != nil { return err } - sv.StartedAt = &i64 + sv.StartedAt = ptr.Int64(i64) } case "status": @@ -1207,7 +1208,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if !ok { return fmt.Errorf("expected ThingName to be of type string, got %T instead", value) } - sv.ThingName = &jtv + sv.ThingName = ptr.String(jtv) } case "versionNumber": @@ -1220,7 +1221,7 @@ func awsRestjson1_deserializeDocumentJobExecution(v **types.JobExecution, value if err != nil { return err } - sv.VersionNumber = &i64 + sv.VersionNumber = i64 } default: @@ -1278,7 +1279,7 @@ func awsRestjson1_deserializeDocumentJobExecutionState(v **types.JobExecutionSta if err != nil { return err } - sv.VersionNumber = &i64 + sv.VersionNumber = i64 } default: @@ -1322,7 +1323,7 @@ func awsRestjson1_deserializeDocumentJobExecutionSummary(v **types.JobExecutionS if err != nil { return err } - sv.ExecutionNumber = &i64 + sv.ExecutionNumber = ptr.Int64(i64) } case "jobId": @@ -1331,7 +1332,7 @@ func awsRestjson1_deserializeDocumentJobExecutionSummary(v **types.JobExecutionS if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "lastUpdatedAt": @@ -1344,7 +1345,7 @@ func awsRestjson1_deserializeDocumentJobExecutionSummary(v **types.JobExecutionS if err != nil { return err } - sv.LastUpdatedAt = &i64 + sv.LastUpdatedAt = i64 } case "queuedAt": @@ -1357,7 +1358,7 @@ func awsRestjson1_deserializeDocumentJobExecutionSummary(v **types.JobExecutionS if err != nil { return err } - sv.QueuedAt = &i64 + sv.QueuedAt = i64 } case "startedAt": @@ -1370,7 +1371,7 @@ func awsRestjson1_deserializeDocumentJobExecutionSummary(v **types.JobExecutionS if err != nil { return err } - sv.StartedAt = &i64 + sv.StartedAt = ptr.Int64(i64) } case "versionNumber": @@ -1383,7 +1384,7 @@ func awsRestjson1_deserializeDocumentJobExecutionSummary(v **types.JobExecutionS if err != nil { return err } - sv.VersionNumber = &i64 + sv.VersionNumber = i64 } default: @@ -1395,7 +1396,7 @@ func awsRestjson1_deserializeDocumentJobExecutionSummary(v **types.JobExecutionS return nil } -func awsRestjson1_deserializeDocumentJobExecutionSummaryList(v *[]*types.JobExecutionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentJobExecutionSummaryList(v *[]types.JobExecutionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1408,18 +1409,20 @@ func awsRestjson1_deserializeDocumentJobExecutionSummaryList(v *[]*types.JobExec return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobExecutionSummary + var cv []types.JobExecutionSummary if *v == nil { - cv = []*types.JobExecutionSummary{} + cv = []types.JobExecutionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.JobExecutionSummary - if err := awsRestjson1_deserializeDocumentJobExecutionSummary(&col, value); err != nil { + var col types.JobExecutionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobExecutionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1455,7 +1458,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1495,7 +1498,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1535,7 +1538,7 @@ func awsRestjson1_deserializeDocumentTerminalStateException(v **types.TerminalSt if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1575,7 +1578,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "payload": diff --git a/service/iotjobsdataplane/go.mod b/service/iotjobsdataplane/go.mod index 7412d2f6393..8dd91583b28 100644 --- a/service/iotjobsdataplane/go.mod +++ b/service/iotjobsdataplane/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/iotjobsdataplane go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/iotjobsdataplane/serializers.go b/service/iotjobsdataplane/serializers.go index 34ef01d3191..adf5cbf8f29 100644 --- a/service/iotjobsdataplane/serializers.go +++ b/service/iotjobsdataplane/serializers.go @@ -72,25 +72,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeJobExecutionInput(v *DescribeJo encoder.SetQuery("includeJobDocument").Boolean(*v.IncludeJobDocument) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -150,13 +144,10 @@ func awsRestjson1_serializeOpHttpBindingsGetPendingJobExecutionsInput(v *GetPend return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -227,13 +218,10 @@ func awsRestjson1_serializeOpHttpBindingsStartNextPendingJobExecutionInput(v *St return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -323,25 +311,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateJobExecutionInput(v *UpdateJobExe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } } - if v.ThingName == nil { + if v.ThingName == nil || len(*v.ThingName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} } if v.ThingName != nil { - if len(*v.ThingName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member thingName must not be empty")} - } if err := encoder.SetURI("thingName").String(*v.ThingName); err != nil { return err } @@ -394,17 +376,13 @@ func awsRestjson1_serializeOpDocumentUpdateJobExecutionInput(v *UpdateJobExecuti return nil } -func awsRestjson1_serializeDocumentDetailsMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDetailsMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/iotjobsdataplane/types/types.go b/service/iotjobsdataplane/types/types.go index d506d75260b..05358cd2139 100644 --- a/service/iotjobsdataplane/types/types.go +++ b/service/iotjobsdataplane/types/types.go @@ -21,10 +21,10 @@ type JobExecution struct { // The time, in milliseconds since the epoch, when the job execution was last // updated. - LastUpdatedAt *int64 + LastUpdatedAt int64 // The time, in milliseconds since the epoch, when the job execution was enqueued. - QueuedAt *int64 + QueuedAt int64 // The time, in milliseconds since the epoch, when the job execution was started. StartedAt *int64 @@ -34,14 +34,14 @@ type JobExecution struct { Status JobExecutionStatus // A collection of name/value pairs that describe the status of the job execution. - StatusDetails map[string]*string + StatusDetails map[string]string // The name of the thing that is executing the job. ThingName *string // The version of the job execution. Job execution versions are incremented each // time they are updated by a device. - VersionNumber *int64 + VersionNumber int64 } // Contains data about the state of a job execution. @@ -52,11 +52,11 @@ type JobExecutionState struct { Status JobExecutionStatus // A collection of name/value pairs that describe the status of the job execution. - StatusDetails map[string]*string + StatusDetails map[string]string // The version of the job execution. Job execution versions are incremented each // time they are updated by a device. - VersionNumber *int64 + VersionNumber int64 } // Contains a subset of information about a job execution. @@ -70,15 +70,15 @@ type JobExecutionSummary struct { // The time, in milliseconds since the epoch, when the job execution was last // updated. - LastUpdatedAt *int64 + LastUpdatedAt int64 // The time, in milliseconds since the epoch, when the job execution was enqueued. - QueuedAt *int64 + QueuedAt int64 // The time, in milliseconds since the epoch, when the job execution started. StartedAt *int64 // The version of the job execution. Job execution versions are incremented each // time AWS IoT Jobs receives an update from a device. - VersionNumber *int64 + VersionNumber int64 } diff --git a/service/iotsecuretunneling/api_op_CloseTunnel.go b/service/iotsecuretunneling/api_op_CloseTunnel.go index 384d6a903a7..b26af191956 100644 --- a/service/iotsecuretunneling/api_op_CloseTunnel.go +++ b/service/iotsecuretunneling/api_op_CloseTunnel.go @@ -36,7 +36,7 @@ type CloseTunnelInput struct { TunnelId *string // When set to true, AWS IoT Secure Tunneling deletes the tunnel data immediately. - Delete *bool + Delete bool } type CloseTunnelOutput struct { diff --git a/service/iotsecuretunneling/api_op_ListTagsForResource.go b/service/iotsecuretunneling/api_op_ListTagsForResource.go index 1bbed3c90ab..e3f8bdccc76 100644 --- a/service/iotsecuretunneling/api_op_ListTagsForResource.go +++ b/service/iotsecuretunneling/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags for the specified resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotsecuretunneling/api_op_ListTunnels.go b/service/iotsecuretunneling/api_op_ListTunnels.go index 7feb0374b2a..2002b682d36 100644 --- a/service/iotsecuretunneling/api_op_ListTunnels.go +++ b/service/iotsecuretunneling/api_op_ListTunnels.go @@ -31,7 +31,7 @@ func (c *Client) ListTunnels(ctx context.Context, params *ListTunnelsInput, optF type ListTunnelsInput struct { // The maximum number of results to return at once. - MaxResults *int32 + MaxResults int32 // A token to retrieve the next set of results. NextToken *string @@ -46,7 +46,7 @@ type ListTunnelsOutput struct { NextToken *string // A short description of the tunnels in an AWS account. - TunnelSummaries []*types.TunnelSummary + TunnelSummaries []types.TunnelSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotsecuretunneling/api_op_OpenTunnel.go b/service/iotsecuretunneling/api_op_OpenTunnel.go index 4c313a98b37..c445673cb7a 100644 --- a/service/iotsecuretunneling/api_op_OpenTunnel.go +++ b/service/iotsecuretunneling/api_op_OpenTunnel.go @@ -37,7 +37,7 @@ type OpenTunnelInput struct { DestinationConfig *types.DestinationConfig // A collection of tag metadata. - Tags []*types.Tag + Tags []types.Tag // Timeout configuration for a tunnel. TimeoutConfig *types.TimeoutConfig diff --git a/service/iotsecuretunneling/api_op_TagResource.go b/service/iotsecuretunneling/api_op_TagResource.go index 048a902ce06..c7b6ef49d9f 100644 --- a/service/iotsecuretunneling/api_op_TagResource.go +++ b/service/iotsecuretunneling/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // The tags for the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/iotsecuretunneling/api_op_UntagResource.go b/service/iotsecuretunneling/api_op_UntagResource.go index 8eba54610c4..c402894659a 100644 --- a/service/iotsecuretunneling/api_op_UntagResource.go +++ b/service/iotsecuretunneling/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The keys of the tags to remove. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/iotsecuretunneling/deserializers.go b/service/iotsecuretunneling/deserializers.go index 74f14df9b0d..17af85168dc 100644 --- a/service/iotsecuretunneling/deserializers.go +++ b/service/iotsecuretunneling/deserializers.go @@ -949,7 +949,7 @@ func awsAwsjson11_deserializeDocumentDestinationConfig(v **types.DestinationConf if !ok { return fmt.Errorf("expected ThingName to be of type string, got %T instead", value) } - sv.ThingName = &jtv + sv.ThingName = ptr.String(jtv) } default: @@ -989,7 +989,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1029,7 +1029,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1041,7 +1041,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsAwsjson11_deserializeDocumentServiceList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentServiceList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1054,21 +1054,21 @@ func awsAwsjson11_deserializeDocumentServiceList(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Service to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1105,7 +1105,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -1114,7 +1114,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -1126,7 +1126,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1139,18 +1139,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1190,7 +1192,7 @@ func awsAwsjson11_deserializeDocumentTimeoutConfig(v **types.TimeoutConfig, valu if err != nil { return err } - sv.MaxLifetimeTimeoutMinutes = ptr.Int32(int32(i64)) + sv.MaxLifetimeTimeoutMinutes = int32(i64) } default: @@ -1243,7 +1245,7 @@ func awsAwsjson11_deserializeDocumentTunnel(v **types.Tunnel, value interface{}) if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "destinationConfig": @@ -1299,7 +1301,7 @@ func awsAwsjson11_deserializeDocumentTunnel(v **types.Tunnel, value interface{}) if !ok { return fmt.Errorf("expected TunnelArn to be of type string, got %T instead", value) } - sv.TunnelArn = &jtv + sv.TunnelArn = ptr.String(jtv) } case "tunnelId": @@ -1308,7 +1310,7 @@ func awsAwsjson11_deserializeDocumentTunnel(v **types.Tunnel, value interface{}) if !ok { return fmt.Errorf("expected TunnelId to be of type string, got %T instead", value) } - sv.TunnelId = &jtv + sv.TunnelId = ptr.String(jtv) } default: @@ -1361,7 +1363,7 @@ func awsAwsjson11_deserializeDocumentTunnelSummary(v **types.TunnelSummary, valu if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastUpdatedAt": @@ -1392,7 +1394,7 @@ func awsAwsjson11_deserializeDocumentTunnelSummary(v **types.TunnelSummary, valu if !ok { return fmt.Errorf("expected TunnelArn to be of type string, got %T instead", value) } - sv.TunnelArn = &jtv + sv.TunnelArn = ptr.String(jtv) } case "tunnelId": @@ -1401,7 +1403,7 @@ func awsAwsjson11_deserializeDocumentTunnelSummary(v **types.TunnelSummary, valu if !ok { return fmt.Errorf("expected TunnelId to be of type string, got %T instead", value) } - sv.TunnelId = &jtv + sv.TunnelId = ptr.String(jtv) } default: @@ -1413,7 +1415,7 @@ func awsAwsjson11_deserializeDocumentTunnelSummary(v **types.TunnelSummary, valu return nil } -func awsAwsjson11_deserializeDocumentTunnelSummaryList(v *[]*types.TunnelSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentTunnelSummaryList(v *[]types.TunnelSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1426,18 +1428,20 @@ func awsAwsjson11_deserializeDocumentTunnelSummaryList(v *[]*types.TunnelSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TunnelSummary + var cv []types.TunnelSummary if *v == nil { - cv = []*types.TunnelSummary{} + cv = []types.TunnelSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TunnelSummary - if err := awsAwsjson11_deserializeDocumentTunnelSummary(&col, value); err != nil { + var col types.TunnelSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTunnelSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1576,7 +1580,7 @@ func awsAwsjson11_deserializeOpDocumentListTunnelsOutput(v **ListTunnelsOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tunnelSummaries": @@ -1621,7 +1625,7 @@ func awsAwsjson11_deserializeOpDocumentOpenTunnelOutput(v **OpenTunnelOutput, va if !ok { return fmt.Errorf("expected ClientAccessToken to be of type string, got %T instead", value) } - sv.DestinationAccessToken = &jtv + sv.DestinationAccessToken = ptr.String(jtv) } case "sourceAccessToken": @@ -1630,7 +1634,7 @@ func awsAwsjson11_deserializeOpDocumentOpenTunnelOutput(v **OpenTunnelOutput, va if !ok { return fmt.Errorf("expected ClientAccessToken to be of type string, got %T instead", value) } - sv.SourceAccessToken = &jtv + sv.SourceAccessToken = ptr.String(jtv) } case "tunnelArn": @@ -1639,7 +1643,7 @@ func awsAwsjson11_deserializeOpDocumentOpenTunnelOutput(v **OpenTunnelOutput, va if !ok { return fmt.Errorf("expected TunnelArn to be of type string, got %T instead", value) } - sv.TunnelArn = &jtv + sv.TunnelArn = ptr.String(jtv) } case "tunnelId": @@ -1648,7 +1652,7 @@ func awsAwsjson11_deserializeOpDocumentOpenTunnelOutput(v **OpenTunnelOutput, va if !ok { return fmt.Errorf("expected TunnelId to be of type string, got %T instead", value) } - sv.TunnelId = &jtv + sv.TunnelId = ptr.String(jtv) } default: diff --git a/service/iotsecuretunneling/go.mod b/service/iotsecuretunneling/go.mod index 2af5a257302..fbe4465de0a 100644 --- a/service/iotsecuretunneling/go.mod +++ b/service/iotsecuretunneling/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/iotsecuretunneling go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/iotsecuretunneling/serializers.go b/service/iotsecuretunneling/serializers.go index b881a160bf8..94db5f90f93 100644 --- a/service/iotsecuretunneling/serializers.go +++ b/service/iotsecuretunneling/serializers.go @@ -354,17 +354,13 @@ func awsAwsjson11_serializeDocumentDestinationConfig(v *types.DestinationConfig, return nil } -func awsAwsjson11_serializeDocumentServiceList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServiceList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -386,32 +382,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -422,9 +410,9 @@ func awsAwsjson11_serializeDocumentTimeoutConfig(v *types.TimeoutConfig, value s object := value.Object() defer object.Close() - if v.MaxLifetimeTimeoutMinutes != nil { + if v.MaxLifetimeTimeoutMinutes != 0 { ok := object.Key("maxLifetimeTimeoutMinutes") - ok.Integer(*v.MaxLifetimeTimeoutMinutes) + ok.Integer(v.MaxLifetimeTimeoutMinutes) } return nil @@ -434,9 +422,9 @@ func awsAwsjson11_serializeOpDocumentCloseTunnelInput(v *CloseTunnelInput, value object := value.Object() defer object.Close() - if v.Delete != nil { + if v.Delete { ok := object.Key("delete") - ok.Boolean(*v.Delete) + ok.Boolean(v.Delete) } if v.TunnelId != nil { @@ -475,9 +463,9 @@ func awsAwsjson11_serializeOpDocumentListTunnelsInput(v *ListTunnelsInput, value object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { diff --git a/service/iotsecuretunneling/types/types.go b/service/iotsecuretunneling/types/types.go index 0aa894ed319..4e5145c8c28 100644 --- a/service/iotsecuretunneling/types/types.go +++ b/service/iotsecuretunneling/types/types.go @@ -27,7 +27,7 @@ type DestinationConfig struct { // connect to the destination application. // // This member is required. - Services []*string + Services []string // The name of the IoT thing to which you want to connect. // @@ -56,7 +56,7 @@ type TimeoutConfig struct { // The maximum amount of time (in minutes) a tunnel can remain open. If not // specified, maxLifetimeTimeoutMinutes defaults to 720 minutes. Valid values are // from 1 minute to 12 hours (720 minutes) - MaxLifetimeTimeoutMinutes *int32 + MaxLifetimeTimeoutMinutes int32 } // A connection between a source computer and a destination device. @@ -86,7 +86,7 @@ type Tunnel struct { Status TunnelStatus // A list of tag metadata associated with the secure tunnel. - Tags []*Tag + Tags []Tag // Timeout configuration for the tunnel. TimeoutConfig *TimeoutConfig diff --git a/service/iotsecuretunneling/validators.go b/service/iotsecuretunneling/validators.go index 1d950f190a0..ca336a54c2f 100644 --- a/service/iotsecuretunneling/validators.go +++ b/service/iotsecuretunneling/validators.go @@ -190,13 +190,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/iotsitewise/api_op_BatchAssociateProjectAssets.go b/service/iotsitewise/api_op_BatchAssociateProjectAssets.go index 088d3c5de9c..7df0b7c0d9e 100644 --- a/service/iotsitewise/api_op_BatchAssociateProjectAssets.go +++ b/service/iotsitewise/api_op_BatchAssociateProjectAssets.go @@ -33,7 +33,7 @@ type BatchAssociateProjectAssetsInput struct { // The IDs of the assets to be associated to the project. // // This member is required. - AssetIds []*string + AssetIds []string // The ID of the project to which to associate the assets. // @@ -49,7 +49,7 @@ type BatchAssociateProjectAssetsInput struct { type BatchAssociateProjectAssetsOutput struct { // A list of associated error information, if any. - Errors []*types.AssetErrorDetails + Errors []types.AssetErrorDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotsitewise/api_op_BatchDisassociateProjectAssets.go b/service/iotsitewise/api_op_BatchDisassociateProjectAssets.go index 329663e7b7e..0c981b15d8e 100644 --- a/service/iotsitewise/api_op_BatchDisassociateProjectAssets.go +++ b/service/iotsitewise/api_op_BatchDisassociateProjectAssets.go @@ -34,7 +34,7 @@ type BatchDisassociateProjectAssetsInput struct { // The IDs of the assets to be disassociated from the project. // // This member is required. - AssetIds []*string + AssetIds []string // The ID of the project from which to disassociate the assets. // @@ -50,7 +50,7 @@ type BatchDisassociateProjectAssetsInput struct { type BatchDisassociateProjectAssetsOutput struct { // A list of associated error information, if any. - Errors []*types.AssetErrorDetails + Errors []types.AssetErrorDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotsitewise/api_op_BatchPutAssetPropertyValue.go b/service/iotsitewise/api_op_BatchPutAssetPropertyValue.go index 4a0ed7331a7..82d049226d5 100644 --- a/service/iotsitewise/api_op_BatchPutAssetPropertyValue.go +++ b/service/iotsitewise/api_op_BatchPutAssetPropertyValue.go @@ -60,7 +60,7 @@ type BatchPutAssetPropertyValueInput struct { // specify up to 10 entries per request. // // This member is required. - Entries []*types.PutAssetPropertyValueEntry + Entries []types.PutAssetPropertyValueEntry } type BatchPutAssetPropertyValueOutput struct { @@ -69,7 +69,7 @@ type BatchPutAssetPropertyValueOutput struct { // entry contains the entryId of the entry that failed. // // This member is required. - ErrorEntries []*types.BatchPutAssetPropertyErrorEntry + ErrorEntries []types.BatchPutAssetPropertyErrorEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotsitewise/api_op_CreateAccessPolicy.go b/service/iotsitewise/api_op_CreateAccessPolicy.go index 95322d97c48..a51e6663b83 100644 --- a/service/iotsitewise/api_op_CreateAccessPolicy.go +++ b/service/iotsitewise/api_op_CreateAccessPolicy.go @@ -59,7 +59,7 @@ type CreateAccessPolicyInput struct { // information, see Tagging your AWS IoT SiteWise resources // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html) // in the AWS IoT SiteWise User Guide. - Tags map[string]*string + Tags map[string]string } type CreateAccessPolicyOutput struct { diff --git a/service/iotsitewise/api_op_CreateAsset.go b/service/iotsitewise/api_op_CreateAsset.go index f6bb5a73bb7..2420f2961c7 100644 --- a/service/iotsitewise/api_op_CreateAsset.go +++ b/service/iotsitewise/api_op_CreateAsset.go @@ -52,7 +52,7 @@ type CreateAssetInput struct { // information, see Tagging your AWS IoT SiteWise resources // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html) // in the AWS IoT SiteWise User Guide. - Tags map[string]*string + Tags map[string]string } type CreateAssetOutput struct { diff --git a/service/iotsitewise/api_op_CreateAssetModel.go b/service/iotsitewise/api_op_CreateAssetModel.go index 5caaf43b946..643039e1293 100644 --- a/service/iotsitewise/api_op_CreateAssetModel.go +++ b/service/iotsitewise/api_op_CreateAssetModel.go @@ -52,7 +52,7 @@ type CreateAssetModelInput struct { // asset model. For more information, see Quotas // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) in the // AWS IoT SiteWise User Guide. - AssetModelHierarchies []*types.AssetModelHierarchyDefinition + AssetModelHierarchies []types.AssetModelHierarchyDefinition // The property definitions of the asset model. For more information, see Asset // properties @@ -61,7 +61,7 @@ type CreateAssetModelInput struct { // asset model. For more information, see Quotas // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) in the // AWS IoT SiteWise User Guide. - AssetModelProperties []*types.AssetModelPropertyDefinition + AssetModelProperties []types.AssetModelPropertyDefinition // A unique case-sensitive identifier that you can provide to ensure the // idempotency of the request. Don't reuse this client token if a new idempotent @@ -72,7 +72,7 @@ type CreateAssetModelInput struct { // information, see Tagging your AWS IoT SiteWise resources // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html) // in the AWS IoT SiteWise User Guide. - Tags map[string]*string + Tags map[string]string } type CreateAssetModelOutput struct { diff --git a/service/iotsitewise/api_op_CreateDashboard.go b/service/iotsitewise/api_op_CreateDashboard.go index 20fb8daf903..6dffaa35775 100644 --- a/service/iotsitewise/api_op_CreateDashboard.go +++ b/service/iotsitewise/api_op_CreateDashboard.go @@ -59,7 +59,7 @@ type CreateDashboardInput struct { // information, see Tagging your AWS IoT SiteWise resources // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html) // in the AWS IoT SiteWise User Guide. - Tags map[string]*string + Tags map[string]string } type CreateDashboardOutput struct { diff --git a/service/iotsitewise/api_op_CreateGateway.go b/service/iotsitewise/api_op_CreateGateway.go index b36d8592d6a..4f311d8f790 100644 --- a/service/iotsitewise/api_op_CreateGateway.go +++ b/service/iotsitewise/api_op_CreateGateway.go @@ -48,7 +48,7 @@ type CreateGatewayInput struct { // information, see Tagging your AWS IoT SiteWise resources // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html) // in the AWS IoT SiteWise User Guide. - Tags map[string]*string + Tags map[string]string } type CreateGatewayOutput struct { diff --git a/service/iotsitewise/api_op_CreatePortal.go b/service/iotsitewise/api_op_CreatePortal.go index ec88e9a80b8..15593840429 100644 --- a/service/iotsitewise/api_op_CreatePortal.go +++ b/service/iotsitewise/api_op_CreatePortal.go @@ -92,7 +92,7 @@ type CreatePortalInput struct { // information, see Tagging your AWS IoT SiteWise resources // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html) // in the AWS IoT SiteWise User Guide. - Tags map[string]*string + Tags map[string]string } type CreatePortalOutput struct { diff --git a/service/iotsitewise/api_op_CreatePresignedPortalUrl.go b/service/iotsitewise/api_op_CreatePresignedPortalUrl.go index fd40baddf41..0bedd3b47e6 100644 --- a/service/iotsitewise/api_op_CreatePresignedPortalUrl.go +++ b/service/iotsitewise/api_op_CreatePresignedPortalUrl.go @@ -40,7 +40,7 @@ type CreatePresignedPortalUrlInput struct { // The duration (in seconds) for which the session at the URL is valid. Default: // 900 seconds (15 minutes) - SessionDurationSeconds *int32 + SessionDurationSeconds int32 } type CreatePresignedPortalUrlOutput struct { diff --git a/service/iotsitewise/api_op_CreateProject.go b/service/iotsitewise/api_op_CreateProject.go index 8c2d560a916..ed3991ff76e 100644 --- a/service/iotsitewise/api_op_CreateProject.go +++ b/service/iotsitewise/api_op_CreateProject.go @@ -51,7 +51,7 @@ type CreateProjectInput struct { // information, see Tagging your AWS IoT SiteWise resources // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html) // in the AWS IoT SiteWise User Guide. - Tags map[string]*string + Tags map[string]string } type CreateProjectOutput struct { diff --git a/service/iotsitewise/api_op_DescribeAsset.go b/service/iotsitewise/api_op_DescribeAsset.go index 844c04c836d..854282c9280 100644 --- a/service/iotsitewise/api_op_DescribeAsset.go +++ b/service/iotsitewise/api_op_DescribeAsset.go @@ -56,7 +56,7 @@ type DescribeAssetOutput struct { // specifies allowed parent/child asset relationships. // // This member is required. - AssetHierarchies []*types.AssetHierarchy + AssetHierarchies []types.AssetHierarchy // The ID of the asset. // @@ -81,7 +81,7 @@ type DescribeAssetOutput struct { // The list of asset properties for the asset. // // This member is required. - AssetProperties []*types.AssetProperty + AssetProperties []types.AssetProperty // The current status of the asset, which contains a state and any error message. // diff --git a/service/iotsitewise/api_op_DescribeAssetModel.go b/service/iotsitewise/api_op_DescribeAssetModel.go index d657e1a9b7c..854557651d0 100644 --- a/service/iotsitewise/api_op_DescribeAssetModel.go +++ b/service/iotsitewise/api_op_DescribeAssetModel.go @@ -62,7 +62,7 @@ type DescribeAssetModelOutput struct { // relationships for an asset model. // // This member is required. - AssetModelHierarchies []*types.AssetModelHierarchy + AssetModelHierarchies []types.AssetModelHierarchy // The ID of the asset model. // @@ -82,7 +82,7 @@ type DescribeAssetModelOutput struct { // The list of asset properties for the asset model. // // This member is required. - AssetModelProperties []*types.AssetModelProperty + AssetModelProperties []types.AssetModelProperty // The current status of the asset model, which contains a state and any error // message. diff --git a/service/iotsitewise/api_op_DescribeGateway.go b/service/iotsitewise/api_op_DescribeGateway.go index 174d6d75947..1363574dcf5 100644 --- a/service/iotsitewise/api_op_DescribeGateway.go +++ b/service/iotsitewise/api_op_DescribeGateway.go @@ -59,7 +59,7 @@ type DescribeGatewayOutput struct { // (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGatewayCapabilityConfiguration.html). // // This member is required. - GatewayCapabilitySummaries []*types.GatewayCapabilitySummary + GatewayCapabilitySummaries []types.GatewayCapabilitySummary // The ID of the gateway device. // diff --git a/service/iotsitewise/api_op_GetAssetPropertyAggregates.go b/service/iotsitewise/api_op_GetAssetPropertyAggregates.go index 8b0e336d4a7..23921112ce5 100644 --- a/service/iotsitewise/api_op_GetAssetPropertyAggregates.go +++ b/service/iotsitewise/api_op_GetAssetPropertyAggregates.go @@ -96,7 +96,7 @@ type GetAssetPropertyAggregatesOutput struct { // The requested aggregated values. // // This member is required. - AggregatedValues []*types.AggregatedValue + AggregatedValues []types.AggregatedValue // The token for the next set of results, or null if there are no additional // results. diff --git a/service/iotsitewise/api_op_GetAssetPropertyValueHistory.go b/service/iotsitewise/api_op_GetAssetPropertyValueHistory.go index 7e16bbd8ee0..fe9d73fe156 100644 --- a/service/iotsitewise/api_op_GetAssetPropertyValueHistory.go +++ b/service/iotsitewise/api_op_GetAssetPropertyValueHistory.go @@ -82,7 +82,7 @@ type GetAssetPropertyValueHistoryOutput struct { // The asset property's value history. // // This member is required. - AssetPropertyValueHistory []*types.AssetPropertyValue + AssetPropertyValueHistory []types.AssetPropertyValue // The token for the next set of results, or null if there are no additional // results. diff --git a/service/iotsitewise/api_op_ListAccessPolicies.go b/service/iotsitewise/api_op_ListAccessPolicies.go index 4fe7fab8c88..38b79a9b478 100644 --- a/service/iotsitewise/api_op_ListAccessPolicies.go +++ b/service/iotsitewise/api_op_ListAccessPolicies.go @@ -65,7 +65,7 @@ type ListAccessPoliciesOutput struct { // A list that summarizes each access policy. // // This member is required. - AccessPolicySummaries []*types.AccessPolicySummary + AccessPolicySummaries []types.AccessPolicySummary // The token for the next set of results, or null if there are no additional // results. diff --git a/service/iotsitewise/api_op_ListAssetModels.go b/service/iotsitewise/api_op_ListAssetModels.go index c3cc37e75f8..6c998709869 100644 --- a/service/iotsitewise/api_op_ListAssetModels.go +++ b/service/iotsitewise/api_op_ListAssetModels.go @@ -42,7 +42,7 @@ type ListAssetModelsOutput struct { // A list that summarizes each asset model. // // This member is required. - AssetModelSummaries []*types.AssetModelSummary + AssetModelSummaries []types.AssetModelSummary // The token for the next set of results, or null if there are no additional // results. diff --git a/service/iotsitewise/api_op_ListAssets.go b/service/iotsitewise/api_op_ListAssets.go index 7c5ee7df358..65c2cdf97c7 100644 --- a/service/iotsitewise/api_op_ListAssets.go +++ b/service/iotsitewise/api_op_ListAssets.go @@ -70,7 +70,7 @@ type ListAssetsOutput struct { // A list that summarizes each asset. // // This member is required. - AssetSummaries []*types.AssetSummary + AssetSummaries []types.AssetSummary // The token for the next set of results, or null if there are no additional // results. diff --git a/service/iotsitewise/api_op_ListAssociatedAssets.go b/service/iotsitewise/api_op_ListAssociatedAssets.go index 6d730ba3644..bed47a235f7 100644 --- a/service/iotsitewise/api_op_ListAssociatedAssets.go +++ b/service/iotsitewise/api_op_ListAssociatedAssets.go @@ -76,7 +76,7 @@ type ListAssociatedAssetsOutput struct { // A list that summarizes the associated assets. // // This member is required. - AssetSummaries []*types.AssociatedAssetsSummary + AssetSummaries []types.AssociatedAssetsSummary // The token for the next set of results, or null if there are no additional // results. diff --git a/service/iotsitewise/api_op_ListDashboards.go b/service/iotsitewise/api_op_ListDashboards.go index ae222c6c533..c827c256687 100644 --- a/service/iotsitewise/api_op_ListDashboards.go +++ b/service/iotsitewise/api_op_ListDashboards.go @@ -48,7 +48,7 @@ type ListDashboardsOutput struct { // A list that summarizes each dashboard in the project. // // This member is required. - DashboardSummaries []*types.DashboardSummary + DashboardSummaries []types.DashboardSummary // The token for the next set of results, or null if there are no additional // results. diff --git a/service/iotsitewise/api_op_ListGateways.go b/service/iotsitewise/api_op_ListGateways.go index 183b0699e8c..4819efe24af 100644 --- a/service/iotsitewise/api_op_ListGateways.go +++ b/service/iotsitewise/api_op_ListGateways.go @@ -42,7 +42,7 @@ type ListGatewaysOutput struct { // A list that summarizes each gateway. // // This member is required. - GatewaySummaries []*types.GatewaySummary + GatewaySummaries []types.GatewaySummary // The token for the next set of results, or null if there are no additional // results. diff --git a/service/iotsitewise/api_op_ListPortals.go b/service/iotsitewise/api_op_ListPortals.go index 9178efbdf6d..5ec4b9dbdee 100644 --- a/service/iotsitewise/api_op_ListPortals.go +++ b/service/iotsitewise/api_op_ListPortals.go @@ -44,7 +44,7 @@ type ListPortalsOutput struct { NextToken *string // A list that summarizes each portal. - PortalSummaries []*types.PortalSummary + PortalSummaries []types.PortalSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotsitewise/api_op_ListProjectAssets.go b/service/iotsitewise/api_op_ListProjectAssets.go index 8817b6a8522..3e325683a76 100644 --- a/service/iotsitewise/api_op_ListProjectAssets.go +++ b/service/iotsitewise/api_op_ListProjectAssets.go @@ -47,7 +47,7 @@ type ListProjectAssetsOutput struct { // A list that contains the IDs of each asset associated with the project. // // This member is required. - AssetIds []*string + AssetIds []string // The token for the next set of results, or null if there are no additional // results. diff --git a/service/iotsitewise/api_op_ListProjects.go b/service/iotsitewise/api_op_ListProjects.go index 765c3a514bf..e9fc8ab5008 100644 --- a/service/iotsitewise/api_op_ListProjects.go +++ b/service/iotsitewise/api_op_ListProjects.go @@ -47,7 +47,7 @@ type ListProjectsOutput struct { // A list that summarizes each project in the portal. // // This member is required. - ProjectSummaries []*types.ProjectSummary + ProjectSummaries []types.ProjectSummary // The token for the next set of results, or null if there are no additional // results. diff --git a/service/iotsitewise/api_op_ListTagsForResource.go b/service/iotsitewise/api_op_ListTagsForResource.go index f505fd3cf2f..091073d0d2b 100644 --- a/service/iotsitewise/api_op_ListTagsForResource.go +++ b/service/iotsitewise/api_op_ListTagsForResource.go @@ -42,7 +42,7 @@ type ListTagsForResourceOutput struct { // information, see Tagging your AWS IoT SiteWise resources // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html) // in the AWS IoT SiteWise User Guide. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotsitewise/api_op_TagResource.go b/service/iotsitewise/api_op_TagResource.go index b68762f337d..2fe71d3f307 100644 --- a/service/iotsitewise/api_op_TagResource.go +++ b/service/iotsitewise/api_op_TagResource.go @@ -42,7 +42,7 @@ type TagResourceInput struct { // in the AWS IoT SiteWise User Guide. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/iotsitewise/api_op_UntagResource.go b/service/iotsitewise/api_op_UntagResource.go index 8d60cf26663..b9526d68bd4 100644 --- a/service/iotsitewise/api_op_UntagResource.go +++ b/service/iotsitewise/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // A list of keys for tags to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/iotsitewise/api_op_UpdateAssetModel.go b/service/iotsitewise/api_op_UpdateAssetModel.go index 0a81379a4ca..26eda4ffea3 100644 --- a/service/iotsitewise/api_op_UpdateAssetModel.go +++ b/service/iotsitewise/api_op_UpdateAssetModel.go @@ -63,7 +63,7 @@ type UpdateAssetModelInput struct { // asset model. For more information, see Quotas // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) in the // AWS IoT SiteWise User Guide. - AssetModelHierarchies []*types.AssetModelHierarchy + AssetModelHierarchies []types.AssetModelHierarchy // The updated property definitions of the asset model. For more information, see // Asset properties @@ -72,7 +72,7 @@ type UpdateAssetModelInput struct { // asset model. For more information, see Quotas // (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) in the // AWS IoT SiteWise User Guide. - AssetModelProperties []*types.AssetModelProperty + AssetModelProperties []types.AssetModelProperty // A unique case-sensitive identifier that you can provide to ensure the // idempotency of the request. Don't reuse this client token if a new idempotent diff --git a/service/iotsitewise/deserializers.go b/service/iotsitewise/deserializers.go index 727d089b320..89afcab42c9 100644 --- a/service/iotsitewise/deserializers.go +++ b/service/iotsitewise/deserializers.go @@ -748,7 +748,7 @@ func awsRestjson1_deserializeOpDocumentCreateAccessPolicyOutput(v **CreateAccess if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.AccessPolicyArn = &jtv + sv.AccessPolicyArn = ptr.String(jtv) } case "accessPolicyId": @@ -757,7 +757,7 @@ func awsRestjson1_deserializeOpDocumentCreateAccessPolicyOutput(v **CreateAccess if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.AccessPolicyId = &jtv + sv.AccessPolicyId = ptr.String(jtv) } default: @@ -926,7 +926,7 @@ func awsRestjson1_deserializeOpDocumentCreateAssetOutput(v **CreateAssetOutput, if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.AssetArn = &jtv + sv.AssetArn = ptr.String(jtv) } case "assetId": @@ -935,7 +935,7 @@ func awsRestjson1_deserializeOpDocumentCreateAssetOutput(v **CreateAssetOutput, if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.AssetId = &jtv + sv.AssetId = ptr.String(jtv) } case "assetStatus": @@ -1109,7 +1109,7 @@ func awsRestjson1_deserializeOpDocumentCreateAssetModelOutput(v **CreateAssetMod if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.AssetModelArn = &jtv + sv.AssetModelArn = ptr.String(jtv) } case "assetModelId": @@ -1118,7 +1118,7 @@ func awsRestjson1_deserializeOpDocumentCreateAssetModelOutput(v **CreateAssetMod if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.AssetModelId = &jtv + sv.AssetModelId = ptr.String(jtv) } case "assetModelStatus": @@ -1286,7 +1286,7 @@ func awsRestjson1_deserializeOpDocumentCreateDashboardOutput(v **CreateDashboard if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.DashboardArn = &jtv + sv.DashboardArn = ptr.String(jtv) } case "dashboardId": @@ -1295,7 +1295,7 @@ func awsRestjson1_deserializeOpDocumentCreateDashboardOutput(v **CreateDashboard if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.DashboardId = &jtv + sv.DashboardId = ptr.String(jtv) } default: @@ -1458,7 +1458,7 @@ func awsRestjson1_deserializeOpDocumentCreateGatewayOutput(v **CreateGatewayOutp if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.GatewayArn = &jtv + sv.GatewayArn = ptr.String(jtv) } case "gatewayId": @@ -1467,7 +1467,7 @@ func awsRestjson1_deserializeOpDocumentCreateGatewayOutput(v **CreateGatewayOutp if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.GatewayId = &jtv + sv.GatewayId = ptr.String(jtv) } default: @@ -1630,7 +1630,7 @@ func awsRestjson1_deserializeOpDocumentCreatePortalOutput(v **CreatePortalOutput if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.PortalArn = &jtv + sv.PortalArn = ptr.String(jtv) } case "portalId": @@ -1639,7 +1639,7 @@ func awsRestjson1_deserializeOpDocumentCreatePortalOutput(v **CreatePortalOutput if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.PortalId = &jtv + sv.PortalId = ptr.String(jtv) } case "portalStartUrl": @@ -1648,7 +1648,7 @@ func awsRestjson1_deserializeOpDocumentCreatePortalOutput(v **CreatePortalOutput if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.PortalStartUrl = &jtv + sv.PortalStartUrl = ptr.String(jtv) } case "portalStatus": @@ -1662,7 +1662,7 @@ func awsRestjson1_deserializeOpDocumentCreatePortalOutput(v **CreatePortalOutput if !ok { return fmt.Errorf("expected SSOApplicationId to be of type string, got %T instead", value) } - sv.SsoApplicationId = &jtv + sv.SsoApplicationId = ptr.String(jtv) } default: @@ -1819,7 +1819,7 @@ func awsRestjson1_deserializeOpDocumentCreatePresignedPortalUrlOutput(v **Create if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.PresignedPortalUrl = &jtv + sv.PresignedPortalUrl = ptr.String(jtv) } default: @@ -1982,7 +1982,7 @@ func awsRestjson1_deserializeOpDocumentCreateProjectOutput(v **CreateProjectOutp if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ProjectArn = &jtv + sv.ProjectArn = ptr.String(jtv) } case "projectId": @@ -1991,7 +1991,7 @@ func awsRestjson1_deserializeOpDocumentCreateProjectOutput(v **CreateProjectOutp if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.ProjectId = &jtv + sv.ProjectId = ptr.String(jtv) } default: @@ -2996,7 +2996,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAccessPolicyOutput(v **DescribeAc if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.AccessPolicyArn = &jtv + sv.AccessPolicyArn = ptr.String(jtv) } case "accessPolicyCreationDate": @@ -3018,7 +3018,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAccessPolicyOutput(v **DescribeAc if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.AccessPolicyId = &jtv + sv.AccessPolicyId = ptr.String(jtv) } case "accessPolicyIdentity": @@ -3210,7 +3210,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetOutput(v **DescribeAssetOutp if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.AssetArn = &jtv + sv.AssetArn = ptr.String(jtv) } case "assetCreationDate": @@ -3237,7 +3237,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetOutput(v **DescribeAssetOutp if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.AssetId = &jtv + sv.AssetId = ptr.String(jtv) } case "assetLastUpdateDate": @@ -3259,7 +3259,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetOutput(v **DescribeAssetOutp if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.AssetModelId = &jtv + sv.AssetModelId = ptr.String(jtv) } case "assetName": @@ -3268,7 +3268,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetOutput(v **DescribeAssetOutp if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.AssetName = &jtv + sv.AssetName = ptr.String(jtv) } case "assetProperties": @@ -3438,7 +3438,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetModelOutput(v **DescribeAsse if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.AssetModelArn = &jtv + sv.AssetModelArn = ptr.String(jtv) } case "assetModelCreationDate": @@ -3460,7 +3460,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetModelOutput(v **DescribeAsse if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.AssetModelDescription = &jtv + sv.AssetModelDescription = ptr.String(jtv) } case "assetModelHierarchies": @@ -3474,7 +3474,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetModelOutput(v **DescribeAsse if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.AssetModelId = &jtv + sv.AssetModelId = ptr.String(jtv) } case "assetModelLastUpdateDate": @@ -3496,7 +3496,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetModelOutput(v **DescribeAsse if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.AssetModelName = &jtv + sv.AssetModelName = ptr.String(jtv) } case "assetModelProperties": @@ -3666,7 +3666,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetPropertyOutput(v **DescribeA if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.AssetId = &jtv + sv.AssetId = ptr.String(jtv) } case "assetModelId": @@ -3675,7 +3675,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetPropertyOutput(v **DescribeA if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.AssetModelId = &jtv + sv.AssetModelId = ptr.String(jtv) } case "assetName": @@ -3684,7 +3684,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetPropertyOutput(v **DescribeA if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.AssetName = &jtv + sv.AssetName = ptr.String(jtv) } case "assetProperty": @@ -3849,7 +3849,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(v **DescribeDashb if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.DashboardArn = &jtv + sv.DashboardArn = ptr.String(jtv) } case "dashboardCreationDate": @@ -3871,7 +3871,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(v **DescribeDashb if !ok { return fmt.Errorf("expected DashboardDefinition to be of type string, got %T instead", value) } - sv.DashboardDefinition = &jtv + sv.DashboardDefinition = ptr.String(jtv) } case "dashboardDescription": @@ -3880,7 +3880,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(v **DescribeDashb if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.DashboardDescription = &jtv + sv.DashboardDescription = ptr.String(jtv) } case "dashboardId": @@ -3889,7 +3889,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(v **DescribeDashb if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.DashboardId = &jtv + sv.DashboardId = ptr.String(jtv) } case "dashboardLastUpdateDate": @@ -3911,7 +3911,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(v **DescribeDashb if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.DashboardName = &jtv + sv.DashboardName = ptr.String(jtv) } case "projectId": @@ -3920,7 +3920,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(v **DescribeDashb if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.ProjectId = &jtv + sv.ProjectId = ptr.String(jtv) } default: @@ -4093,7 +4093,7 @@ func awsRestjson1_deserializeOpDocumentDescribeGatewayOutput(v **DescribeGateway if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.GatewayArn = &jtv + sv.GatewayArn = ptr.String(jtv) } case "gatewayCapabilitySummaries": @@ -4107,7 +4107,7 @@ func awsRestjson1_deserializeOpDocumentDescribeGatewayOutput(v **DescribeGateway if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.GatewayId = &jtv + sv.GatewayId = ptr.String(jtv) } case "gatewayName": @@ -4116,7 +4116,7 @@ func awsRestjson1_deserializeOpDocumentDescribeGatewayOutput(v **DescribeGateway if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.GatewayName = &jtv + sv.GatewayName = ptr.String(jtv) } case "gatewayPlatform": @@ -4294,7 +4294,7 @@ func awsRestjson1_deserializeOpDocumentDescribeGatewayCapabilityConfigurationOut if !ok { return fmt.Errorf("expected CapabilityConfiguration to be of type string, got %T instead", value) } - sv.CapabilityConfiguration = &jtv + sv.CapabilityConfiguration = ptr.String(jtv) } case "capabilityNamespace": @@ -4303,7 +4303,7 @@ func awsRestjson1_deserializeOpDocumentDescribeGatewayCapabilityConfigurationOut if !ok { return fmt.Errorf("expected CapabilityNamespace to be of type string, got %T instead", value) } - sv.CapabilityNamespace = &jtv + sv.CapabilityNamespace = ptr.String(jtv) } case "capabilitySyncStatus": @@ -4321,7 +4321,7 @@ func awsRestjson1_deserializeOpDocumentDescribeGatewayCapabilityConfigurationOut if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.GatewayId = &jtv + sv.GatewayId = ptr.String(jtv) } default: @@ -4637,7 +4637,7 @@ func awsRestjson1_deserializeOpDocumentDescribePortalOutput(v **DescribePortalOu if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.PortalArn = &jtv + sv.PortalArn = ptr.String(jtv) } case "portalAuthMode": @@ -4655,7 +4655,7 @@ func awsRestjson1_deserializeOpDocumentDescribePortalOutput(v **DescribePortalOu if !ok { return fmt.Errorf("expected PortalClientId to be of type string, got %T instead", value) } - sv.PortalClientId = &jtv + sv.PortalClientId = ptr.String(jtv) } case "portalContactEmail": @@ -4664,7 +4664,7 @@ func awsRestjson1_deserializeOpDocumentDescribePortalOutput(v **DescribePortalOu if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.PortalContactEmail = &jtv + sv.PortalContactEmail = ptr.String(jtv) } case "portalCreationDate": @@ -4686,7 +4686,7 @@ func awsRestjson1_deserializeOpDocumentDescribePortalOutput(v **DescribePortalOu if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.PortalDescription = &jtv + sv.PortalDescription = ptr.String(jtv) } case "portalId": @@ -4695,7 +4695,7 @@ func awsRestjson1_deserializeOpDocumentDescribePortalOutput(v **DescribePortalOu if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.PortalId = &jtv + sv.PortalId = ptr.String(jtv) } case "portalLastUpdateDate": @@ -4722,7 +4722,7 @@ func awsRestjson1_deserializeOpDocumentDescribePortalOutput(v **DescribePortalOu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.PortalName = &jtv + sv.PortalName = ptr.String(jtv) } case "portalStartUrl": @@ -4731,7 +4731,7 @@ func awsRestjson1_deserializeOpDocumentDescribePortalOutput(v **DescribePortalOu if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.PortalStartUrl = &jtv + sv.PortalStartUrl = ptr.String(jtv) } case "portalStatus": @@ -4745,7 +4745,7 @@ func awsRestjson1_deserializeOpDocumentDescribePortalOutput(v **DescribePortalOu if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -4905,7 +4905,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProjectOutput(v **DescribeProject if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.PortalId = &jtv + sv.PortalId = ptr.String(jtv) } case "projectArn": @@ -4914,7 +4914,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProjectOutput(v **DescribeProject if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ProjectArn = &jtv + sv.ProjectArn = ptr.String(jtv) } case "projectCreationDate": @@ -4936,7 +4936,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProjectOutput(v **DescribeProject if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.ProjectDescription = &jtv + sv.ProjectDescription = ptr.String(jtv) } case "projectId": @@ -4945,7 +4945,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProjectOutput(v **DescribeProject if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.ProjectId = &jtv + sv.ProjectId = ptr.String(jtv) } case "projectLastUpdateDate": @@ -4967,7 +4967,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProjectOutput(v **DescribeProject if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ProjectName = &jtv + sv.ProjectName = ptr.String(jtv) } default: @@ -5230,7 +5230,7 @@ func awsRestjson1_deserializeOpDocumentGetAssetPropertyAggregatesOutput(v **GetA if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5557,7 +5557,7 @@ func awsRestjson1_deserializeOpDocumentGetAssetPropertyValueHistoryOutput(v **Ge if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5719,7 +5719,7 @@ func awsRestjson1_deserializeOpDocumentListAccessPoliciesOutput(v **ListAccessPo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5881,7 +5881,7 @@ func awsRestjson1_deserializeOpDocumentListAssetModelsOutput(v **ListAssetModels if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6046,7 +6046,7 @@ func awsRestjson1_deserializeOpDocumentListAssetsOutput(v **ListAssetsOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6211,7 +6211,7 @@ func awsRestjson1_deserializeOpDocumentListAssociatedAssetsOutput(v **ListAssoci if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6373,7 +6373,7 @@ func awsRestjson1_deserializeOpDocumentListDashboardsOutput(v **ListDashboardsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6535,7 +6535,7 @@ func awsRestjson1_deserializeOpDocumentListGatewaysOutput(v **ListGatewaysOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6692,7 +6692,7 @@ func awsRestjson1_deserializeOpDocumentListPortalsOutput(v **ListPortalsOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "portalSummaries": @@ -6859,7 +6859,7 @@ func awsRestjson1_deserializeOpDocumentListProjectAssetsOutput(v **ListProjectAs if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7016,7 +7016,7 @@ func awsRestjson1_deserializeOpDocumentListProjectsOutput(v **ListProjectsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "projectSummaries": @@ -8326,7 +8326,7 @@ func awsRestjson1_deserializeOpDocumentUpdateGatewayCapabilityConfigurationOutpu if !ok { return fmt.Errorf("expected CapabilityNamespace to be of type string, got %T instead", value) } - sv.CapabilityNamespace = &jtv + sv.CapabilityNamespace = ptr.String(jtv) } case "capabilitySyncStatus": @@ -8922,7 +8922,7 @@ func awsRestjson1_deserializeErrorTooManyTagsException(response *smithyhttp.Resp return output } -func awsRestjson1_deserializeDocumentAccessPolicySummaries(v *[]*types.AccessPolicySummary, value interface{}) error { +func awsRestjson1_deserializeDocumentAccessPolicySummaries(v *[]types.AccessPolicySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8935,18 +8935,20 @@ func awsRestjson1_deserializeDocumentAccessPolicySummaries(v *[]*types.AccessPol return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AccessPolicySummary + var cv []types.AccessPolicySummary if *v == nil { - cv = []*types.AccessPolicySummary{} + cv = []types.AccessPolicySummary{} } else { cv = *v } for _, value := range shape { - var col *types.AccessPolicySummary - if err := awsRestjson1_deserializeDocumentAccessPolicySummary(&col, value); err != nil { + var col types.AccessPolicySummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAccessPolicySummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8995,7 +8997,7 @@ func awsRestjson1_deserializeDocumentAccessPolicySummary(v **types.AccessPolicyS if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "identity": @@ -9097,7 +9099,7 @@ func awsRestjson1_deserializeDocumentAggregatedValue(v **types.AggregatedValue, return nil } -func awsRestjson1_deserializeDocumentAggregatedValues(v *[]*types.AggregatedValue, value interface{}) error { +func awsRestjson1_deserializeDocumentAggregatedValues(v *[]types.AggregatedValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9110,18 +9112,20 @@ func awsRestjson1_deserializeDocumentAggregatedValues(v *[]*types.AggregatedValu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AggregatedValue + var cv []types.AggregatedValue if *v == nil { - cv = []*types.AggregatedValue{} + cv = []types.AggregatedValue{} } else { cv = *v } for _, value := range shape { - var col *types.AggregatedValue - if err := awsRestjson1_deserializeDocumentAggregatedValue(&col, value); err != nil { + var col types.AggregatedValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentAggregatedValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9161,7 +9165,7 @@ func awsRestjson1_deserializeDocumentAggregates(v **types.Aggregates, value inte if err != nil { return err } - sv.Average = &f64 + sv.Average = ptr.Float64(f64) } case "count": @@ -9174,7 +9178,7 @@ func awsRestjson1_deserializeDocumentAggregates(v **types.Aggregates, value inte if err != nil { return err } - sv.Count = &f64 + sv.Count = ptr.Float64(f64) } case "maximum": @@ -9187,7 +9191,7 @@ func awsRestjson1_deserializeDocumentAggregates(v **types.Aggregates, value inte if err != nil { return err } - sv.Maximum = &f64 + sv.Maximum = ptr.Float64(f64) } case "minimum": @@ -9200,7 +9204,7 @@ func awsRestjson1_deserializeDocumentAggregates(v **types.Aggregates, value inte if err != nil { return err } - sv.Minimum = &f64 + sv.Minimum = ptr.Float64(f64) } case "standardDeviation": @@ -9213,7 +9217,7 @@ func awsRestjson1_deserializeDocumentAggregates(v **types.Aggregates, value inte if err != nil { return err } - sv.StandardDeviation = &f64 + sv.StandardDeviation = ptr.Float64(f64) } case "sum": @@ -9226,7 +9230,7 @@ func awsRestjson1_deserializeDocumentAggregates(v **types.Aggregates, value inte if err != nil { return err } - sv.Sum = &f64 + sv.Sum = ptr.Float64(f64) } default: @@ -9266,7 +9270,7 @@ func awsRestjson1_deserializeDocumentAssetErrorDetails(v **types.AssetErrorDetai if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.AssetId = &jtv + sv.AssetId = ptr.String(jtv) } case "code": @@ -9284,7 +9288,7 @@ func awsRestjson1_deserializeDocumentAssetErrorDetails(v **types.AssetErrorDetai if !ok { return fmt.Errorf("expected AssetErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9296,7 +9300,7 @@ func awsRestjson1_deserializeDocumentAssetErrorDetails(v **types.AssetErrorDetai return nil } -func awsRestjson1_deserializeDocumentAssetHierarchies(v *[]*types.AssetHierarchy, value interface{}) error { +func awsRestjson1_deserializeDocumentAssetHierarchies(v *[]types.AssetHierarchy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9309,18 +9313,20 @@ func awsRestjson1_deserializeDocumentAssetHierarchies(v *[]*types.AssetHierarchy return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetHierarchy + var cv []types.AssetHierarchy if *v == nil { - cv = []*types.AssetHierarchy{} + cv = []types.AssetHierarchy{} } else { cv = *v } for _, value := range shape { - var col *types.AssetHierarchy - if err := awsRestjson1_deserializeDocumentAssetHierarchy(&col, value); err != nil { + var col types.AssetHierarchy + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetHierarchy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9356,7 +9362,7 @@ func awsRestjson1_deserializeDocumentAssetHierarchy(v **types.AssetHierarchy, va if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -9365,7 +9371,7 @@ func awsRestjson1_deserializeDocumentAssetHierarchy(v **types.AssetHierarchy, va if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -9377,7 +9383,7 @@ func awsRestjson1_deserializeDocumentAssetHierarchy(v **types.AssetHierarchy, va return nil } -func awsRestjson1_deserializeDocumentAssetIDs(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAssetIDs(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9390,21 +9396,21 @@ func awsRestjson1_deserializeDocumentAssetIDs(v *[]*string, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9413,7 +9419,7 @@ func awsRestjson1_deserializeDocumentAssetIDs(v *[]*string, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentAssetModelHierarchies(v *[]*types.AssetModelHierarchy, value interface{}) error { +func awsRestjson1_deserializeDocumentAssetModelHierarchies(v *[]types.AssetModelHierarchy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9426,18 +9432,20 @@ func awsRestjson1_deserializeDocumentAssetModelHierarchies(v *[]*types.AssetMode return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetModelHierarchy + var cv []types.AssetModelHierarchy if *v == nil { - cv = []*types.AssetModelHierarchy{} + cv = []types.AssetModelHierarchy{} } else { cv = *v } for _, value := range shape { - var col *types.AssetModelHierarchy - if err := awsRestjson1_deserializeDocumentAssetModelHierarchy(&col, value); err != nil { + var col types.AssetModelHierarchy + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetModelHierarchy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9473,7 +9481,7 @@ func awsRestjson1_deserializeDocumentAssetModelHierarchy(v **types.AssetModelHie if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.ChildAssetModelId = &jtv + sv.ChildAssetModelId = ptr.String(jtv) } case "id": @@ -9482,7 +9490,7 @@ func awsRestjson1_deserializeDocumentAssetModelHierarchy(v **types.AssetModelHie if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -9491,7 +9499,7 @@ func awsRestjson1_deserializeDocumentAssetModelHierarchy(v **types.AssetModelHie if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -9503,7 +9511,7 @@ func awsRestjson1_deserializeDocumentAssetModelHierarchy(v **types.AssetModelHie return nil } -func awsRestjson1_deserializeDocumentAssetModelProperties(v *[]*types.AssetModelProperty, value interface{}) error { +func awsRestjson1_deserializeDocumentAssetModelProperties(v *[]types.AssetModelProperty, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9516,18 +9524,20 @@ func awsRestjson1_deserializeDocumentAssetModelProperties(v *[]*types.AssetModel return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetModelProperty + var cv []types.AssetModelProperty if *v == nil { - cv = []*types.AssetModelProperty{} + cv = []types.AssetModelProperty{} } else { cv = *v } for _, value := range shape { - var col *types.AssetModelProperty - if err := awsRestjson1_deserializeDocumentAssetModelProperty(&col, value); err != nil { + var col types.AssetModelProperty + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetModelProperty(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9572,7 +9582,7 @@ func awsRestjson1_deserializeDocumentAssetModelProperty(v **types.AssetModelProp if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -9581,7 +9591,7 @@ func awsRestjson1_deserializeDocumentAssetModelProperty(v **types.AssetModelProp if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "type": @@ -9595,7 +9605,7 @@ func awsRestjson1_deserializeDocumentAssetModelProperty(v **types.AssetModelProp if !ok { return fmt.Errorf("expected PropertyUnit to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } default: @@ -9652,7 +9662,7 @@ func awsRestjson1_deserializeDocumentAssetModelStatus(v **types.AssetModelStatus return nil } -func awsRestjson1_deserializeDocumentAssetModelSummaries(v *[]*types.AssetModelSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentAssetModelSummaries(v *[]types.AssetModelSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9665,18 +9675,20 @@ func awsRestjson1_deserializeDocumentAssetModelSummaries(v *[]*types.AssetModelS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetModelSummary + var cv []types.AssetModelSummary if *v == nil { - cv = []*types.AssetModelSummary{} + cv = []types.AssetModelSummary{} } else { cv = *v } for _, value := range shape { - var col *types.AssetModelSummary - if err := awsRestjson1_deserializeDocumentAssetModelSummary(&col, value); err != nil { + var col types.AssetModelSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetModelSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9712,7 +9724,7 @@ func awsRestjson1_deserializeDocumentAssetModelSummary(v **types.AssetModelSumma if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationDate": @@ -9734,7 +9746,7 @@ func awsRestjson1_deserializeDocumentAssetModelSummary(v **types.AssetModelSumma if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -9743,7 +9755,7 @@ func awsRestjson1_deserializeDocumentAssetModelSummary(v **types.AssetModelSumma if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "lastUpdateDate": @@ -9765,7 +9777,7 @@ func awsRestjson1_deserializeDocumentAssetModelSummary(v **types.AssetModelSumma if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -9782,7 +9794,7 @@ func awsRestjson1_deserializeDocumentAssetModelSummary(v **types.AssetModelSumma return nil } -func awsRestjson1_deserializeDocumentAssetProperties(v *[]*types.AssetProperty, value interface{}) error { +func awsRestjson1_deserializeDocumentAssetProperties(v *[]types.AssetProperty, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9795,18 +9807,20 @@ func awsRestjson1_deserializeDocumentAssetProperties(v *[]*types.AssetProperty, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetProperty + var cv []types.AssetProperty if *v == nil { - cv = []*types.AssetProperty{} + cv = []types.AssetProperty{} } else { cv = *v } for _, value := range shape { - var col *types.AssetProperty - if err := awsRestjson1_deserializeDocumentAssetProperty(&col, value); err != nil { + var col types.AssetProperty + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetProperty(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9842,7 +9856,7 @@ func awsRestjson1_deserializeDocumentAssetProperty(v **types.AssetProperty, valu if !ok { return fmt.Errorf("expected PropertyAlias to be of type string, got %T instead", value) } - sv.Alias = &jtv + sv.Alias = ptr.String(jtv) } case "dataType": @@ -9860,7 +9874,7 @@ func awsRestjson1_deserializeDocumentAssetProperty(v **types.AssetProperty, valu if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -9869,7 +9883,7 @@ func awsRestjson1_deserializeDocumentAssetProperty(v **types.AssetProperty, valu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "notification": @@ -9883,7 +9897,7 @@ func awsRestjson1_deserializeDocumentAssetProperty(v **types.AssetProperty, valu if !ok { return fmt.Errorf("expected PropertyUnit to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } default: @@ -9945,7 +9959,7 @@ func awsRestjson1_deserializeDocumentAssetPropertyValue(v **types.AssetPropertyV return nil } -func awsRestjson1_deserializeDocumentAssetPropertyValueHistory(v *[]*types.AssetPropertyValue, value interface{}) error { +func awsRestjson1_deserializeDocumentAssetPropertyValueHistory(v *[]types.AssetPropertyValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9958,18 +9972,20 @@ func awsRestjson1_deserializeDocumentAssetPropertyValueHistory(v *[]*types.Asset return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetPropertyValue + var cv []types.AssetPropertyValue if *v == nil { - cv = []*types.AssetPropertyValue{} + cv = []types.AssetPropertyValue{} } else { cv = *v } for _, value := range shape { - var col *types.AssetPropertyValue - if err := awsRestjson1_deserializeDocumentAssetPropertyValue(&col, value); err != nil { + var col types.AssetPropertyValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetPropertyValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10022,7 +10038,7 @@ func awsRestjson1_deserializeDocumentAssetStatus(v **types.AssetStatus, value in return nil } -func awsRestjson1_deserializeDocumentAssetSummaries(v *[]*types.AssetSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentAssetSummaries(v *[]types.AssetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10035,18 +10051,20 @@ func awsRestjson1_deserializeDocumentAssetSummaries(v *[]*types.AssetSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetSummary + var cv []types.AssetSummary if *v == nil { - cv = []*types.AssetSummary{} + cv = []types.AssetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.AssetSummary - if err := awsRestjson1_deserializeDocumentAssetSummary(&col, value); err != nil { + var col types.AssetSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10082,7 +10100,7 @@ func awsRestjson1_deserializeDocumentAssetSummary(v **types.AssetSummary, value if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "assetModelId": @@ -10091,7 +10109,7 @@ func awsRestjson1_deserializeDocumentAssetSummary(v **types.AssetSummary, value if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.AssetModelId = &jtv + sv.AssetModelId = ptr.String(jtv) } case "creationDate": @@ -10118,7 +10136,7 @@ func awsRestjson1_deserializeDocumentAssetSummary(v **types.AssetSummary, value if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "lastUpdateDate": @@ -10140,7 +10158,7 @@ func awsRestjson1_deserializeDocumentAssetSummary(v **types.AssetSummary, value if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -10157,7 +10175,7 @@ func awsRestjson1_deserializeDocumentAssetSummary(v **types.AssetSummary, value return nil } -func awsRestjson1_deserializeDocumentAssociatedAssetsSummaries(v *[]*types.AssociatedAssetsSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentAssociatedAssetsSummaries(v *[]types.AssociatedAssetsSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10170,18 +10188,20 @@ func awsRestjson1_deserializeDocumentAssociatedAssetsSummaries(v *[]*types.Assoc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssociatedAssetsSummary + var cv []types.AssociatedAssetsSummary if *v == nil { - cv = []*types.AssociatedAssetsSummary{} + cv = []types.AssociatedAssetsSummary{} } else { cv = *v } for _, value := range shape { - var col *types.AssociatedAssetsSummary - if err := awsRestjson1_deserializeDocumentAssociatedAssetsSummary(&col, value); err != nil { + var col types.AssociatedAssetsSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssociatedAssetsSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10217,7 +10237,7 @@ func awsRestjson1_deserializeDocumentAssociatedAssetsSummary(v **types.Associate if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "assetModelId": @@ -10226,7 +10246,7 @@ func awsRestjson1_deserializeDocumentAssociatedAssetsSummary(v **types.Associate if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.AssetModelId = &jtv + sv.AssetModelId = ptr.String(jtv) } case "creationDate": @@ -10253,7 +10273,7 @@ func awsRestjson1_deserializeDocumentAssociatedAssetsSummary(v **types.Associate if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "lastUpdateDate": @@ -10275,7 +10295,7 @@ func awsRestjson1_deserializeDocumentAssociatedAssetsSummary(v **types.Associate if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -10320,7 +10340,7 @@ func awsRestjson1_deserializeDocumentAttribute(v **types.Attribute, value interf if !ok { return fmt.Errorf("expected DefaultValue to be of type string, got %T instead", value) } - sv.DefaultValue = &jtv + sv.DefaultValue = ptr.String(jtv) } default: @@ -10332,7 +10352,7 @@ func awsRestjson1_deserializeDocumentAttribute(v **types.Attribute, value interf return nil } -func awsRestjson1_deserializeDocumentBatchAssociateProjectAssetsErrors(v *[]*types.AssetErrorDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchAssociateProjectAssetsErrors(v *[]types.AssetErrorDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10345,18 +10365,20 @@ func awsRestjson1_deserializeDocumentBatchAssociateProjectAssetsErrors(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetErrorDetails + var cv []types.AssetErrorDetails if *v == nil { - cv = []*types.AssetErrorDetails{} + cv = []types.AssetErrorDetails{} } else { cv = *v } for _, value := range shape { - var col *types.AssetErrorDetails - if err := awsRestjson1_deserializeDocumentAssetErrorDetails(&col, value); err != nil { + var col types.AssetErrorDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetErrorDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10364,7 +10386,7 @@ func awsRestjson1_deserializeDocumentBatchAssociateProjectAssetsErrors(v *[]*typ return nil } -func awsRestjson1_deserializeDocumentBatchDisassociateProjectAssetsErrors(v *[]*types.AssetErrorDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchDisassociateProjectAssetsErrors(v *[]types.AssetErrorDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10377,18 +10399,20 @@ func awsRestjson1_deserializeDocumentBatchDisassociateProjectAssetsErrors(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetErrorDetails + var cv []types.AssetErrorDetails if *v == nil { - cv = []*types.AssetErrorDetails{} + cv = []types.AssetErrorDetails{} } else { cv = *v } for _, value := range shape { - var col *types.AssetErrorDetails - if err := awsRestjson1_deserializeDocumentAssetErrorDetails(&col, value); err != nil { + var col types.AssetErrorDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetErrorDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10433,7 +10457,7 @@ func awsRestjson1_deserializeDocumentBatchPutAssetPropertyError(v **types.BatchP if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "timestamps": @@ -10450,7 +10474,7 @@ func awsRestjson1_deserializeDocumentBatchPutAssetPropertyError(v **types.BatchP return nil } -func awsRestjson1_deserializeDocumentBatchPutAssetPropertyErrorEntries(v *[]*types.BatchPutAssetPropertyErrorEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchPutAssetPropertyErrorEntries(v *[]types.BatchPutAssetPropertyErrorEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10463,18 +10487,20 @@ func awsRestjson1_deserializeDocumentBatchPutAssetPropertyErrorEntries(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchPutAssetPropertyErrorEntry + var cv []types.BatchPutAssetPropertyErrorEntry if *v == nil { - cv = []*types.BatchPutAssetPropertyErrorEntry{} + cv = []types.BatchPutAssetPropertyErrorEntry{} } else { cv = *v } for _, value := range shape { - var col *types.BatchPutAssetPropertyErrorEntry - if err := awsRestjson1_deserializeDocumentBatchPutAssetPropertyErrorEntry(&col, value); err != nil { + var col types.BatchPutAssetPropertyErrorEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchPutAssetPropertyErrorEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10510,7 +10536,7 @@ func awsRestjson1_deserializeDocumentBatchPutAssetPropertyErrorEntry(v **types.B if !ok { return fmt.Errorf("expected EntryId to be of type string, got %T instead", value) } - sv.EntryId = &jtv + sv.EntryId = ptr.String(jtv) } case "errors": @@ -10527,7 +10553,7 @@ func awsRestjson1_deserializeDocumentBatchPutAssetPropertyErrorEntry(v **types.B return nil } -func awsRestjson1_deserializeDocumentBatchPutAssetPropertyErrors(v *[]*types.BatchPutAssetPropertyError, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchPutAssetPropertyErrors(v *[]types.BatchPutAssetPropertyError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10540,18 +10566,20 @@ func awsRestjson1_deserializeDocumentBatchPutAssetPropertyErrors(v *[]*types.Bat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchPutAssetPropertyError + var cv []types.BatchPutAssetPropertyError if *v == nil { - cv = []*types.BatchPutAssetPropertyError{} + cv = []types.BatchPutAssetPropertyError{} } else { cv = *v } for _, value := range shape { - var col *types.BatchPutAssetPropertyError - if err := awsRestjson1_deserializeDocumentBatchPutAssetPropertyError(&col, value); err != nil { + var col types.BatchPutAssetPropertyError + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchPutAssetPropertyError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10587,7 +10615,7 @@ func awsRestjson1_deserializeDocumentConflictingOperationException(v **types.Con if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceArn": @@ -10596,7 +10624,7 @@ func awsRestjson1_deserializeDocumentConflictingOperationException(v **types.Con if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "resourceId": @@ -10605,7 +10633,7 @@ func awsRestjson1_deserializeDocumentConflictingOperationException(v **types.Con if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } default: @@ -10617,7 +10645,7 @@ func awsRestjson1_deserializeDocumentConflictingOperationException(v **types.Con return nil } -func awsRestjson1_deserializeDocumentDashboardSummaries(v *[]*types.DashboardSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardSummaries(v *[]types.DashboardSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10630,18 +10658,20 @@ func awsRestjson1_deserializeDocumentDashboardSummaries(v *[]*types.DashboardSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DashboardSummary + var cv []types.DashboardSummary if *v == nil { - cv = []*types.DashboardSummary{} + cv = []types.DashboardSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DashboardSummary - if err := awsRestjson1_deserializeDocumentDashboardSummary(&col, value); err != nil { + var col types.DashboardSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDashboardSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10690,7 +10720,7 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -10699,7 +10729,7 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "lastUpdateDate": @@ -10721,7 +10751,7 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10770,7 +10800,7 @@ func awsRestjson1_deserializeDocumentErrorDetails(v **types.ErrorDetails, value if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10810,7 +10840,7 @@ func awsRestjson1_deserializeDocumentExpressionVariable(v **types.ExpressionVari if !ok { return fmt.Errorf("expected VariableName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "value": @@ -10827,7 +10857,7 @@ func awsRestjson1_deserializeDocumentExpressionVariable(v **types.ExpressionVari return nil } -func awsRestjson1_deserializeDocumentExpressionVariables(v *[]*types.ExpressionVariable, value interface{}) error { +func awsRestjson1_deserializeDocumentExpressionVariables(v *[]types.ExpressionVariable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10840,18 +10870,20 @@ func awsRestjson1_deserializeDocumentExpressionVariables(v *[]*types.ExpressionV return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExpressionVariable + var cv []types.ExpressionVariable if *v == nil { - cv = []*types.ExpressionVariable{} + cv = []types.ExpressionVariable{} } else { cv = *v } for _, value := range shape { - var col *types.ExpressionVariable - if err := awsRestjson1_deserializeDocumentExpressionVariable(&col, value); err != nil { + var col types.ExpressionVariable + destAddr := &col + if err := awsRestjson1_deserializeDocumentExpressionVariable(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10859,7 +10891,7 @@ func awsRestjson1_deserializeDocumentExpressionVariables(v *[]*types.ExpressionV return nil } -func awsRestjson1_deserializeDocumentGatewayCapabilitySummaries(v *[]*types.GatewayCapabilitySummary, value interface{}) error { +func awsRestjson1_deserializeDocumentGatewayCapabilitySummaries(v *[]types.GatewayCapabilitySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10872,18 +10904,20 @@ func awsRestjson1_deserializeDocumentGatewayCapabilitySummaries(v *[]*types.Gate return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GatewayCapabilitySummary + var cv []types.GatewayCapabilitySummary if *v == nil { - cv = []*types.GatewayCapabilitySummary{} + cv = []types.GatewayCapabilitySummary{} } else { cv = *v } for _, value := range shape { - var col *types.GatewayCapabilitySummary - if err := awsRestjson1_deserializeDocumentGatewayCapabilitySummary(&col, value); err != nil { + var col types.GatewayCapabilitySummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentGatewayCapabilitySummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10919,7 +10953,7 @@ func awsRestjson1_deserializeDocumentGatewayCapabilitySummary(v **types.GatewayC if !ok { return fmt.Errorf("expected CapabilityNamespace to be of type string, got %T instead", value) } - sv.CapabilityNamespace = &jtv + sv.CapabilityNamespace = ptr.String(jtv) } case "capabilitySyncStatus": @@ -10976,7 +11010,7 @@ func awsRestjson1_deserializeDocumentGatewayPlatform(v **types.GatewayPlatform, return nil } -func awsRestjson1_deserializeDocumentGatewaySummaries(v *[]*types.GatewaySummary, value interface{}) error { +func awsRestjson1_deserializeDocumentGatewaySummaries(v *[]types.GatewaySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10989,18 +11023,20 @@ func awsRestjson1_deserializeDocumentGatewaySummaries(v *[]*types.GatewaySummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GatewaySummary + var cv []types.GatewaySummary if *v == nil { - cv = []*types.GatewaySummary{} + cv = []types.GatewaySummary{} } else { cv = *v } for _, value := range shape { - var col *types.GatewaySummary - if err := awsRestjson1_deserializeDocumentGatewaySummary(&col, value); err != nil { + var col types.GatewaySummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentGatewaySummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11054,7 +11090,7 @@ func awsRestjson1_deserializeDocumentGatewaySummary(v **types.GatewaySummary, va if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.GatewayId = &jtv + sv.GatewayId = ptr.String(jtv) } case "gatewayName": @@ -11063,7 +11099,7 @@ func awsRestjson1_deserializeDocumentGatewaySummary(v **types.GatewaySummary, va if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.GatewayName = &jtv + sv.GatewayName = ptr.String(jtv) } case "lastUpdateDate": @@ -11116,7 +11152,7 @@ func awsRestjson1_deserializeDocumentGreengrass(v **types.Greengrass, value inte if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.GroupArn = &jtv + sv.GroupArn = ptr.String(jtv) } default: @@ -11156,7 +11192,7 @@ func awsRestjson1_deserializeDocumentGroupIdentity(v **types.GroupIdentity, valu if !ok { return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -11196,7 +11232,7 @@ func awsRestjson1_deserializeDocumentIAMUserIdentity(v **types.IAMUserIdentity, if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -11282,7 +11318,7 @@ func awsRestjson1_deserializeDocumentImageLocation(v **types.ImageLocation, valu if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "url": @@ -11291,7 +11327,7 @@ func awsRestjson1_deserializeDocumentImageLocation(v **types.ImageLocation, valu if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -11331,7 +11367,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11371,7 +11407,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11411,7 +11447,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11522,7 +11558,7 @@ func awsRestjson1_deserializeDocumentMetric(v **types.Metric, value interface{}) if !ok { return fmt.Errorf("expected Expression to be of type string, got %T instead", value) } - sv.Expression = &jtv + sv.Expression = ptr.String(jtv) } case "variables": @@ -11617,7 +11653,7 @@ func awsRestjson1_deserializeDocumentMonitorErrorDetails(v **types.MonitorErrorD if !ok { return fmt.Errorf("expected MonitorErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11657,7 +11693,7 @@ func awsRestjson1_deserializeDocumentPortalResource(v **types.PortalResource, va if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -11714,7 +11750,7 @@ func awsRestjson1_deserializeDocumentPortalStatus(v **types.PortalStatus, value return nil } -func awsRestjson1_deserializeDocumentPortalSummaries(v *[]*types.PortalSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentPortalSummaries(v *[]types.PortalSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11727,18 +11763,20 @@ func awsRestjson1_deserializeDocumentPortalSummaries(v *[]*types.PortalSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PortalSummary + var cv []types.PortalSummary if *v == nil { - cv = []*types.PortalSummary{} + cv = []types.PortalSummary{} } else { cv = *v } for _, value := range shape { - var col *types.PortalSummary - if err := awsRestjson1_deserializeDocumentPortalSummary(&col, value); err != nil { + var col types.PortalSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentPortalSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11787,7 +11825,7 @@ func awsRestjson1_deserializeDocumentPortalSummary(v **types.PortalSummary, valu if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -11796,7 +11834,7 @@ func awsRestjson1_deserializeDocumentPortalSummary(v **types.PortalSummary, valu if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "lastUpdateDate": @@ -11818,7 +11856,7 @@ func awsRestjson1_deserializeDocumentPortalSummary(v **types.PortalSummary, valu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "roleArn": @@ -11827,7 +11865,7 @@ func awsRestjson1_deserializeDocumentPortalSummary(v **types.PortalSummary, valu if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "startUrl": @@ -11836,7 +11874,7 @@ func awsRestjson1_deserializeDocumentPortalSummary(v **types.PortalSummary, valu if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.StartUrl = &jtv + sv.StartUrl = ptr.String(jtv) } case "status": @@ -11881,7 +11919,7 @@ func awsRestjson1_deserializeDocumentProjectResource(v **types.ProjectResource, if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -11893,7 +11931,7 @@ func awsRestjson1_deserializeDocumentProjectResource(v **types.ProjectResource, return nil } -func awsRestjson1_deserializeDocumentProjectSummaries(v *[]*types.ProjectSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentProjectSummaries(v *[]types.ProjectSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11906,18 +11944,20 @@ func awsRestjson1_deserializeDocumentProjectSummaries(v *[]*types.ProjectSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProjectSummary + var cv []types.ProjectSummary if *v == nil { - cv = []*types.ProjectSummary{} + cv = []types.ProjectSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProjectSummary - if err := awsRestjson1_deserializeDocumentProjectSummary(&col, value); err != nil { + var col types.ProjectSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentProjectSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11966,7 +12006,7 @@ func awsRestjson1_deserializeDocumentProjectSummary(v **types.ProjectSummary, va if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -11975,7 +12015,7 @@ func awsRestjson1_deserializeDocumentProjectSummary(v **types.ProjectSummary, va if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "lastUpdateDate": @@ -11997,7 +12037,7 @@ func awsRestjson1_deserializeDocumentProjectSummary(v **types.ProjectSummary, va if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -12037,7 +12077,7 @@ func awsRestjson1_deserializeDocumentProperty(v **types.Property, value interfac if !ok { return fmt.Errorf("expected PropertyAlias to be of type string, got %T instead", value) } - sv.Alias = &jtv + sv.Alias = ptr.String(jtv) } case "dataType": @@ -12055,7 +12095,7 @@ func awsRestjson1_deserializeDocumentProperty(v **types.Property, value interfac if !ok { return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -12064,7 +12104,7 @@ func awsRestjson1_deserializeDocumentProperty(v **types.Property, value interfac if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "notification": @@ -12083,7 +12123,7 @@ func awsRestjson1_deserializeDocumentProperty(v **types.Property, value interfac if !ok { return fmt.Errorf("expected PropertyUnit to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } default: @@ -12132,7 +12172,7 @@ func awsRestjson1_deserializeDocumentPropertyNotification(v **types.PropertyNoti if !ok { return fmt.Errorf("expected PropertyNotificationTopic to be of type string, got %T instead", value) } - sv.Topic = &jtv + sv.Topic = ptr.String(jtv) } default: @@ -12264,7 +12304,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceArn": @@ -12273,7 +12313,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "resourceId": @@ -12282,7 +12322,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } default: @@ -12322,7 +12362,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12362,7 +12402,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12374,7 +12414,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12387,21 +12427,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -12438,7 +12478,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12495,7 +12535,7 @@ func awsRestjson1_deserializeDocumentTimeInNanos(v **types.TimeInNanos, value in if err != nil { return err } - sv.TimeInSeconds = &i64 + sv.TimeInSeconds = ptr.Int64(i64) } default: @@ -12507,7 +12547,7 @@ func awsRestjson1_deserializeDocumentTimeInNanos(v **types.TimeInNanos, value in return nil } -func awsRestjson1_deserializeDocumentTimestamps(v *[]*types.TimeInNanos, value interface{}) error { +func awsRestjson1_deserializeDocumentTimestamps(v *[]types.TimeInNanos, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12520,18 +12560,20 @@ func awsRestjson1_deserializeDocumentTimestamps(v *[]*types.TimeInNanos, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TimeInNanos + var cv []types.TimeInNanos if *v == nil { - cv = []*types.TimeInNanos{} + cv = []types.TimeInNanos{} } else { cv = *v } for _, value := range shape { - var col *types.TimeInNanos - if err := awsRestjson1_deserializeDocumentTimeInNanos(&col, value); err != nil { + var col types.TimeInNanos + destAddr := &col + if err := awsRestjson1_deserializeDocumentTimeInNanos(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12567,7 +12609,7 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceName": @@ -12576,7 +12618,7 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } default: @@ -12616,7 +12658,7 @@ func awsRestjson1_deserializeDocumentTransform(v **types.Transform, value interf if !ok { return fmt.Errorf("expected Expression to be of type string, got %T instead", value) } - sv.Expression = &jtv + sv.Expression = ptr.String(jtv) } case "variables": @@ -12661,7 +12703,7 @@ func awsRestjson1_deserializeDocumentTumblingWindow(v **types.TumblingWindow, va if !ok { return fmt.Errorf("expected Interval to be of type string, got %T instead", value) } - sv.Interval = &jtv + sv.Interval = ptr.String(jtv) } default: @@ -12701,7 +12743,7 @@ func awsRestjson1_deserializeDocumentUserIdentity(v **types.UserIdentity, value if !ok { return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -12741,7 +12783,7 @@ func awsRestjson1_deserializeDocumentVariableValue(v **types.VariableValue, valu if !ok { return fmt.Errorf("expected Macro to be of type string, got %T instead", value) } - sv.HierarchyId = &jtv + sv.HierarchyId = ptr.String(jtv) } case "propertyId": @@ -12750,7 +12792,7 @@ func awsRestjson1_deserializeDocumentVariableValue(v **types.VariableValue, valu if !ok { return fmt.Errorf("expected Macro to be of type string, got %T instead", value) } - sv.PropertyId = &jtv + sv.PropertyId = ptr.String(jtv) } default: @@ -12790,7 +12832,7 @@ func awsRestjson1_deserializeDocumentVariant(v **types.Variant, value interface{ if !ok { return fmt.Errorf("expected PropertyValueBooleanValue to be of type *bool, got %T instead", value) } - sv.BooleanValue = &jtv + sv.BooleanValue = ptr.Bool(jtv) } case "doubleValue": @@ -12803,7 +12845,7 @@ func awsRestjson1_deserializeDocumentVariant(v **types.Variant, value interface{ if err != nil { return err } - sv.DoubleValue = &f64 + sv.DoubleValue = ptr.Float64(f64) } case "integerValue": @@ -12825,7 +12867,7 @@ func awsRestjson1_deserializeDocumentVariant(v **types.Variant, value interface{ if !ok { return fmt.Errorf("expected PropertyValueStringValue to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } default: diff --git a/service/iotsitewise/go.mod b/service/iotsitewise/go.mod index 790e3c50cba..1e688d0f148 100644 --- a/service/iotsitewise/go.mod +++ b/service/iotsitewise/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/iotsitewise go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/iotsitewise/serializers.go b/service/iotsitewise/serializers.go index 07b8ce2f7ad..8823db3e17a 100644 --- a/service/iotsitewise/serializers.go +++ b/service/iotsitewise/serializers.go @@ -77,13 +77,10 @@ func awsRestjson1_serializeOpHttpBindingsAssociateAssetsInput(v *AssociateAssets return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetId == nil { + if v.AssetId == nil || len(*v.AssetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} } if v.AssetId != nil { - if len(*v.AssetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} - } if err := encoder.SetURI("assetId").String(*v.AssetId); err != nil { return err } @@ -176,13 +173,10 @@ func awsRestjson1_serializeOpHttpBindingsBatchAssociateProjectAssetsInput(v *Bat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProjectId == nil { + if v.ProjectId == nil || len(*v.ProjectId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} } if v.ProjectId != nil { - if len(*v.ProjectId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} - } if err := encoder.SetURI("projectId").String(*v.ProjectId); err != nil { return err } @@ -272,13 +266,10 @@ func awsRestjson1_serializeOpHttpBindingsBatchDisassociateProjectAssetsInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProjectId == nil { + if v.ProjectId == nil || len(*v.ProjectId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} } if v.ProjectId != nil { - if len(*v.ProjectId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} - } if err := encoder.SetURI("projectId").String(*v.ProjectId); err != nil { return err } @@ -1024,20 +1015,17 @@ func awsRestjson1_serializeOpHttpBindingsCreatePresignedPortalUrlInput(v *Create return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PortalId == nil { + if v.PortalId == nil || len(*v.PortalId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member portalId must not be empty")} } if v.PortalId != nil { - if len(*v.PortalId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member portalId must not be empty")} - } if err := encoder.SetURI("portalId").String(*v.PortalId); err != nil { return err } } - if v.SessionDurationSeconds != nil { - encoder.SetQuery("sessionDurationSeconds").Integer(*v.SessionDurationSeconds) + if v.SessionDurationSeconds != 0 { + encoder.SetQuery("sessionDurationSeconds").Integer(v.SessionDurationSeconds) } return nil @@ -1189,13 +1177,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAccessPolicyInput(v *DeleteAccess return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccessPolicyId == nil { + if v.AccessPolicyId == nil || len(*v.AccessPolicyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accessPolicyId must not be empty")} } if v.AccessPolicyId != nil { - if len(*v.AccessPolicyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accessPolicyId must not be empty")} - } if err := encoder.SetURI("accessPolicyId").String(*v.AccessPolicyId); err != nil { return err } @@ -1259,13 +1244,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAssetInput(v *DeleteAssetInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetId == nil { + if v.AssetId == nil || len(*v.AssetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} } if v.AssetId != nil { - if len(*v.AssetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} - } if err := encoder.SetURI("assetId").String(*v.AssetId); err != nil { return err } @@ -1329,13 +1311,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAssetModelInput(v *DeleteAssetMod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetModelId == nil { + if v.AssetModelId == nil || len(*v.AssetModelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member assetModelId must not be empty")} } if v.AssetModelId != nil { - if len(*v.AssetModelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assetModelId must not be empty")} - } if err := encoder.SetURI("assetModelId").String(*v.AssetModelId); err != nil { return err } @@ -1403,13 +1382,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDashboardInput(v *DeleteDashboard encoder.SetQuery("clientToken").String(*v.ClientToken) } - if v.DashboardId == nil { + 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 len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member dashboardId must not be empty")} - } if err := encoder.SetURI("dashboardId").String(*v.DashboardId); err != nil { return err } @@ -1469,13 +1445,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteGatewayInput(v *DeleteGatewayInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GatewayId == nil { + if v.GatewayId == nil || len(*v.GatewayId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayId must not be empty")} } if v.GatewayId != nil { - if len(*v.GatewayId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayId must not be empty")} - } if err := encoder.SetURI("gatewayId").String(*v.GatewayId); err != nil { return err } @@ -1539,13 +1512,10 @@ func awsRestjson1_serializeOpHttpBindingsDeletePortalInput(v *DeletePortalInput, encoder.SetQuery("clientToken").String(*v.ClientToken) } - if v.PortalId == nil { + if v.PortalId == nil || len(*v.PortalId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member portalId must not be empty")} } if v.PortalId != nil { - if len(*v.PortalId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member portalId must not be empty")} - } if err := encoder.SetURI("portalId").String(*v.PortalId); err != nil { return err } @@ -1609,13 +1579,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteProjectInput(v *DeleteProjectInpu encoder.SetQuery("clientToken").String(*v.ClientToken) } - if v.ProjectId == nil { + if v.ProjectId == nil || len(*v.ProjectId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} } if v.ProjectId != nil { - if len(*v.ProjectId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} - } if err := encoder.SetURI("projectId").String(*v.ProjectId); err != nil { return err } @@ -1675,13 +1642,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAccessPolicyInput(v *DescribeAc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccessPolicyId == nil { + if v.AccessPolicyId == nil || len(*v.AccessPolicyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accessPolicyId must not be empty")} } if v.AccessPolicyId != nil { - if len(*v.AccessPolicyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accessPolicyId must not be empty")} - } if err := encoder.SetURI("accessPolicyId").String(*v.AccessPolicyId); err != nil { return err } @@ -1741,13 +1705,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAssetInput(v *DescribeAssetInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetId == nil { + if v.AssetId == nil || len(*v.AssetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} } if v.AssetId != nil { - if len(*v.AssetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} - } if err := encoder.SetURI("assetId").String(*v.AssetId); err != nil { return err } @@ -1807,13 +1768,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAssetModelInput(v *DescribeAsse return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetModelId == nil { + if v.AssetModelId == nil || len(*v.AssetModelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member assetModelId must not be empty")} } if v.AssetModelId != nil { - if len(*v.AssetModelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assetModelId must not be empty")} - } if err := encoder.SetURI("assetModelId").String(*v.AssetModelId); err != nil { return err } @@ -1873,25 +1831,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAssetPropertyInput(v *DescribeA return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetId == nil { + if v.AssetId == nil || len(*v.AssetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} } if v.AssetId != nil { - if len(*v.AssetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} - } if err := encoder.SetURI("assetId").String(*v.AssetId); err != nil { return err } } - if v.PropertyId == nil { + if v.PropertyId == nil || len(*v.PropertyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member propertyId must not be empty")} } if v.PropertyId != nil { - if len(*v.PropertyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member propertyId must not be empty")} - } if err := encoder.SetURI("propertyId").String(*v.PropertyId); err != nil { return err } @@ -1951,13 +1903,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDashboardInput(v *DescribeDashb return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DashboardId == nil { + 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 len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member dashboardId must not be empty")} - } if err := encoder.SetURI("dashboardId").String(*v.DashboardId); err != nil { return err } @@ -2017,13 +1966,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeGatewayInput(v *DescribeGateway return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GatewayId == nil { + if v.GatewayId == nil || len(*v.GatewayId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayId must not be empty")} } if v.GatewayId != nil { - if len(*v.GatewayId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayId must not be empty")} - } if err := encoder.SetURI("gatewayId").String(*v.GatewayId); err != nil { return err } @@ -2083,25 +2029,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeGatewayCapabilityConfigurationI return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CapabilityNamespace == nil { + if v.CapabilityNamespace == nil || len(*v.CapabilityNamespace) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member capabilityNamespace must not be empty")} } if v.CapabilityNamespace != nil { - if len(*v.CapabilityNamespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member capabilityNamespace must not be empty")} - } if err := encoder.SetURI("capabilityNamespace").String(*v.CapabilityNamespace); err != nil { return err } } - if v.GatewayId == nil { + if v.GatewayId == nil || len(*v.GatewayId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayId must not be empty")} } if v.GatewayId != nil { - if len(*v.GatewayId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayId must not be empty")} - } if err := encoder.SetURI("gatewayId").String(*v.GatewayId); err != nil { return err } @@ -2211,13 +2151,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribePortalInput(v *DescribePortalIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PortalId == nil { + if v.PortalId == nil || len(*v.PortalId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member portalId must not be empty")} } if v.PortalId != nil { - if len(*v.PortalId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member portalId must not be empty")} - } if err := encoder.SetURI("portalId").String(*v.PortalId); err != nil { return err } @@ -2277,13 +2214,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeProjectInput(v *DescribeProject return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProjectId == nil { + if v.ProjectId == nil || len(*v.ProjectId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} } if v.ProjectId != nil { - if len(*v.ProjectId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} - } if err := encoder.SetURI("projectId").String(*v.ProjectId); err != nil { return err } @@ -2354,13 +2288,10 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateAssetsInput(v *Disassociate return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetId == nil { + if v.AssetId == nil || len(*v.AssetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} } if v.AssetId != nil { - if len(*v.AssetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} - } if err := encoder.SetURI("assetId").String(*v.AssetId); err != nil { return err } @@ -2916,13 +2847,10 @@ func awsRestjson1_serializeOpHttpBindingsListAssociatedAssetsInput(v *ListAssoci return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetId == nil { + if v.AssetId == nil || len(*v.AssetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} } if v.AssetId != nil { - if len(*v.AssetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} - } if err := encoder.SetURI("assetId").String(*v.AssetId); err != nil { return err } @@ -3196,13 +3124,10 @@ func awsRestjson1_serializeOpHttpBindingsListProjectAssetsInput(v *ListProjectAs encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.ProjectId == nil { + if v.ProjectId == nil || len(*v.ProjectId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} } if v.ProjectId != nil { - if len(*v.ProjectId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} - } if err := encoder.SetURI("projectId").String(*v.ProjectId); err != nil { return err } @@ -3550,10 +3475,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -3622,13 +3544,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAccessPolicyInput(v *UpdateAccess return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccessPolicyId == nil { + if v.AccessPolicyId == nil || len(*v.AccessPolicyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member accessPolicyId must not be empty")} } if v.AccessPolicyId != nil { - if len(*v.AccessPolicyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member accessPolicyId must not be empty")} - } if err := encoder.SetURI("accessPolicyId").String(*v.AccessPolicyId); err != nil { return err } @@ -3730,13 +3649,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAssetInput(v *UpdateAssetInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetId == nil { + if v.AssetId == nil || len(*v.AssetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} } if v.AssetId != nil { - if len(*v.AssetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} - } if err := encoder.SetURI("assetId").String(*v.AssetId); err != nil { return err } @@ -3824,13 +3740,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAssetModelInput(v *UpdateAssetMod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetModelId == nil { + if v.AssetModelId == nil || len(*v.AssetModelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member assetModelId must not be empty")} } if v.AssetModelId != nil { - if len(*v.AssetModelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assetModelId must not be empty")} - } if err := encoder.SetURI("assetModelId").String(*v.AssetModelId); err != nil { return err } @@ -3937,25 +3850,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAssetPropertyInput(v *UpdateAsset return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssetId == nil { + if v.AssetId == nil || len(*v.AssetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} } if v.AssetId != nil { - if len(*v.AssetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assetId must not be empty")} - } if err := encoder.SetURI("assetId").String(*v.AssetId); err != nil { return err } } - if v.PropertyId == nil { + if v.PropertyId == nil || len(*v.PropertyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member propertyId must not be empty")} } if v.PropertyId != nil { - if len(*v.PropertyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member propertyId must not be empty")} - } if err := encoder.SetURI("propertyId").String(*v.PropertyId); err != nil { return err } @@ -4048,13 +3955,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDashboardInput(v *UpdateDashboard return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DashboardId == nil { + 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 len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member dashboardId must not be empty")} - } if err := encoder.SetURI("dashboardId").String(*v.DashboardId); err != nil { return err } @@ -4152,13 +4056,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateGatewayInput(v *UpdateGatewayInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GatewayId == nil { + if v.GatewayId == nil || len(*v.GatewayId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayId must not be empty")} } if v.GatewayId != nil { - if len(*v.GatewayId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayId must not be empty")} - } if err := encoder.SetURI("gatewayId").String(*v.GatewayId); err != nil { return err } @@ -4241,13 +4142,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateGatewayCapabilityConfigurationInp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GatewayId == nil { + if v.GatewayId == nil || len(*v.GatewayId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayId must not be empty")} } if v.GatewayId != nil { - if len(*v.GatewayId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member gatewayId must not be empty")} - } if err := encoder.SetURI("gatewayId").String(*v.GatewayId); err != nil { return err } @@ -4335,13 +4233,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdatePortalInput(v *UpdatePortalInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PortalId == nil { + if v.PortalId == nil || len(*v.PortalId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member portalId must not be empty")} } if v.PortalId != nil { - if len(*v.PortalId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member portalId must not be empty")} - } if err := encoder.SetURI("portalId").String(*v.PortalId); err != nil { return err } @@ -4451,13 +4346,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateProjectInput(v *UpdateProjectInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProjectId == nil { + if v.ProjectId == nil || len(*v.ProjectId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} } if v.ProjectId != nil { - if len(*v.ProjectId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} - } if err := encoder.SetURI("projectId").String(*v.ProjectId); err != nil { return err } @@ -4488,17 +4380,13 @@ func awsRestjson1_serializeOpDocumentUpdateProjectInput(v *UpdateProjectInput, v return nil } -func awsRestjson1_serializeDocumentAssetModelHierarchies(v []*types.AssetModelHierarchy, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAssetModelHierarchies(v []types.AssetModelHierarchy, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAssetModelHierarchy(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAssetModelHierarchy(&v[i], av); err != nil { return err } } @@ -4544,34 +4432,26 @@ func awsRestjson1_serializeDocumentAssetModelHierarchyDefinition(v *types.AssetM return nil } -func awsRestjson1_serializeDocumentAssetModelHierarchyDefinitions(v []*types.AssetModelHierarchyDefinition, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAssetModelHierarchyDefinitions(v []types.AssetModelHierarchyDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAssetModelHierarchyDefinition(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAssetModelHierarchyDefinition(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentAssetModelProperties(v []*types.AssetModelProperty, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAssetModelProperties(v []types.AssetModelProperty, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAssetModelProperty(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAssetModelProperty(&v[i], av); err != nil { return err } } @@ -4641,17 +4521,13 @@ func awsRestjson1_serializeDocumentAssetModelPropertyDefinition(v *types.AssetMo return nil } -func awsRestjson1_serializeDocumentAssetModelPropertyDefinitions(v []*types.AssetModelPropertyDefinition, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAssetModelPropertyDefinitions(v []types.AssetModelPropertyDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAssetModelPropertyDefinition(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAssetModelPropertyDefinition(&v[i], av); err != nil { return err } } @@ -4684,17 +4560,13 @@ func awsRestjson1_serializeDocumentAssetPropertyValue(v *types.AssetPropertyValu return nil } -func awsRestjson1_serializeDocumentAssetPropertyValues(v []*types.AssetPropertyValue, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAssetPropertyValues(v []types.AssetPropertyValue, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAssetPropertyValue(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAssetPropertyValue(&v[i], av); err != nil { return err } } @@ -4732,17 +4604,13 @@ func awsRestjson1_serializeDocumentExpressionVariable(v *types.ExpressionVariabl return nil } -func awsRestjson1_serializeDocumentExpressionVariables(v []*types.ExpressionVariable, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentExpressionVariables(v []types.ExpressionVariable, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentExpressionVariable(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentExpressionVariable(&v[i], av); err != nil { return err } } @@ -4827,17 +4695,13 @@ func awsRestjson1_serializeDocumentIdentity(v *types.Identity, value smithyjson. return nil } -func awsRestjson1_serializeDocumentIDs(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIDs(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4996,17 +4860,13 @@ func awsRestjson1_serializeDocumentPropertyType(v *types.PropertyType, value smi return nil } -func awsRestjson1_serializeDocumentPutAssetPropertyValueEntries(v []*types.PutAssetPropertyValueEntry, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPutAssetPropertyValueEntries(v []types.PutAssetPropertyValueEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentPutAssetPropertyValueEntry(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentPutAssetPropertyValueEntry(&v[i], av); err != nil { return err } } @@ -5068,17 +4928,13 @@ func awsRestjson1_serializeDocumentResource(v *types.Resource, value smithyjson. return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/iotsitewise/types/types.go b/service/iotsitewise/types/types.go index 1d57201af35..5f8966d09ee 100644 --- a/service/iotsitewise/types/types.go +++ b/service/iotsitewise/types/types.go @@ -354,7 +354,7 @@ type AssetSummary struct { // specifies allowed parent/child asset relationships. // // This member is required. - Hierarchies []*AssetHierarchy + Hierarchies []AssetHierarchy // The ID of the asset. // @@ -402,7 +402,7 @@ type AssociatedAssetsSummary struct { // specifies allowed parent/child asset relationships. // // This member is required. - Hierarchies []*AssetHierarchy + Hierarchies []AssetHierarchy // The ID of the asset. // @@ -455,7 +455,7 @@ type BatchPutAssetPropertyError struct { // A list of timestamps for each error, if any. // // This member is required. - Timestamps []*TimeInNanos + Timestamps []TimeInNanos } // Contains error information for asset property value entries that are associated @@ -472,7 +472,7 @@ type BatchPutAssetPropertyErrorEntry struct { // The list of update property value errors. // // This member is required. - Errors []*BatchPutAssetPropertyError + Errors []BatchPutAssetPropertyError } // Contains a dashboard summary. @@ -590,7 +590,7 @@ type GatewaySummary struct { // capability configuration's definition, use // DescribeGatewayCapabilityConfiguration // (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGatewayCapabilityConfiguration.html). - GatewayCapabilitySummaries []*GatewayCapabilitySummary + GatewayCapabilitySummaries []GatewayCapabilitySummary } // Contains details for a gateway that runs on AWS IoT Greengrass. To create a @@ -741,7 +741,7 @@ type Metric struct { // The list of variables used in the expression. // // This member is required. - Variables []*ExpressionVariable + Variables []ExpressionVariable // The window (time interval) over which AWS IoT SiteWise computes the metric's // aggregation expression. AWS IoT SiteWise computes one data point per window. @@ -967,7 +967,7 @@ type PutAssetPropertyValueEntry struct { // array elements. // // This member is required. - PropertyValues []*AssetPropertyValue + PropertyValues []AssetPropertyValue // The ID of the asset to update. AssetId *string @@ -1028,7 +1028,7 @@ type Transform struct { // The list of variables used in the expression. // // This member is required. - Variables []*ExpressionVariable + Variables []ExpressionVariable } // Contains a tumbling window, which is a repeating fixed-sized, non-overlapping, diff --git a/service/iotsitewise/validators.go b/service/iotsitewise/validators.go index 7b87d5bc226..1e05cd349b2 100644 --- a/service/iotsitewise/validators.go +++ b/service/iotsitewise/validators.go @@ -1138,13 +1138,13 @@ func addOpUpdateProjectValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateProject{}, middleware.After) } -func validateAssetModelHierarchies(v []*types.AssetModelHierarchy) error { +func validateAssetModelHierarchies(v []types.AssetModelHierarchy) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssetModelHierarchies"} for i := range v { - if err := validateAssetModelHierarchy(v[i]); err != nil { + if err := validateAssetModelHierarchy(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1191,13 +1191,13 @@ func validateAssetModelHierarchyDefinition(v *types.AssetModelHierarchyDefinitio } } -func validateAssetModelHierarchyDefinitions(v []*types.AssetModelHierarchyDefinition) error { +func validateAssetModelHierarchyDefinitions(v []types.AssetModelHierarchyDefinition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssetModelHierarchyDefinitions"} for i := range v { - if err := validateAssetModelHierarchyDefinition(v[i]); err != nil { + if err := validateAssetModelHierarchyDefinition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1208,13 +1208,13 @@ func validateAssetModelHierarchyDefinitions(v []*types.AssetModelHierarchyDefini } } -func validateAssetModelProperties(v []*types.AssetModelProperty) error { +func validateAssetModelProperties(v []types.AssetModelProperty) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssetModelProperties"} for i := range v { - if err := validateAssetModelProperty(v[i]); err != nil { + if err := validateAssetModelProperty(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1275,13 +1275,13 @@ func validateAssetModelPropertyDefinition(v *types.AssetModelPropertyDefinition) } } -func validateAssetModelPropertyDefinitions(v []*types.AssetModelPropertyDefinition) error { +func validateAssetModelPropertyDefinitions(v []types.AssetModelPropertyDefinition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssetModelPropertyDefinitions"} for i := range v { - if err := validateAssetModelPropertyDefinition(v[i]); err != nil { + if err := validateAssetModelPropertyDefinition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1314,13 +1314,13 @@ func validateAssetPropertyValue(v *types.AssetPropertyValue) error { } } -func validateAssetPropertyValues(v []*types.AssetPropertyValue) error { +func validateAssetPropertyValues(v []types.AssetPropertyValue) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssetPropertyValues"} for i := range v { - if err := validateAssetPropertyValue(v[i]); err != nil { + if err := validateAssetPropertyValue(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1353,13 +1353,13 @@ func validateExpressionVariable(v *types.ExpressionVariable) error { } } -func validateExpressionVariables(v []*types.ExpressionVariable) error { +func validateExpressionVariables(v []types.ExpressionVariable) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ExpressionVariables"} for i := range v { - if err := validateExpressionVariable(v[i]); err != nil { + if err := validateExpressionVariable(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1609,13 +1609,13 @@ func validatePropertyType(v *types.PropertyType) error { } } -func validatePutAssetPropertyValueEntries(v []*types.PutAssetPropertyValueEntry) error { +func validatePutAssetPropertyValueEntries(v []types.PutAssetPropertyValueEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PutAssetPropertyValueEntries"} for i := range v { - if err := validatePutAssetPropertyValueEntry(v[i]); err != nil { + if err := validatePutAssetPropertyValueEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/iotthingsgraph/api_op_CreateSystemInstance.go b/service/iotthingsgraph/api_op_CreateSystemInstance.go index 9d3d752705a..3025cd744ad 100644 --- a/service/iotthingsgraph/api_op_CreateSystemInstance.go +++ b/service/iotthingsgraph/api_op_CreateSystemInstance.go @@ -72,7 +72,7 @@ type CreateSystemInstanceInput struct { // Metadata, consisting of key-value pairs, that can be used to categorize your // system instances. - Tags []*types.Tag + Tags []types.Tag } type CreateSystemInstanceOutput struct { diff --git a/service/iotthingsgraph/api_op_GetEntities.go b/service/iotthingsgraph/api_op_GetEntities.go index 5e272f8bd22..86bed4987dc 100644 --- a/service/iotthingsgraph/api_op_GetEntities.go +++ b/service/iotthingsgraph/api_op_GetEntities.go @@ -57,7 +57,7 @@ type GetEntitiesInput struct { // urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME // // This member is required. - Ids []*string + Ids []string // The version of the user's namespace. Defaults to the latest version of the // user's namespace. @@ -67,7 +67,7 @@ type GetEntitiesInput struct { type GetEntitiesOutput struct { // An array of descriptions for the specified entities. - Descriptions []*types.EntityDescription + Descriptions []types.EntityDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotthingsgraph/api_op_GetFlowTemplateRevisions.go b/service/iotthingsgraph/api_op_GetFlowTemplateRevisions.go index b7d974269b7..488c117691a 100644 --- a/service/iotthingsgraph/api_op_GetFlowTemplateRevisions.go +++ b/service/iotthingsgraph/api_op_GetFlowTemplateRevisions.go @@ -52,7 +52,7 @@ type GetFlowTemplateRevisionsOutput struct { NextToken *string // An array of objects that provide summary data about each revision. - Summaries []*types.FlowTemplateSummary + Summaries []types.FlowTemplateSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotthingsgraph/api_op_GetSystemTemplateRevisions.go b/service/iotthingsgraph/api_op_GetSystemTemplateRevisions.go index 5e32e14d0b9..80ec820d3bf 100644 --- a/service/iotthingsgraph/api_op_GetSystemTemplateRevisions.go +++ b/service/iotthingsgraph/api_op_GetSystemTemplateRevisions.go @@ -53,7 +53,7 @@ type GetSystemTemplateRevisionsOutput struct { // An array of objects that contain summary data about the system template // revisions. - Summaries []*types.SystemTemplateSummary + Summaries []types.SystemTemplateSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotthingsgraph/api_op_GetUploadStatus.go b/service/iotthingsgraph/api_op_GetUploadStatus.go index 977860a8432..8e16341cee1 100644 --- a/service/iotthingsgraph/api_op_GetUploadStatus.go +++ b/service/iotthingsgraph/api_op_GetUploadStatus.go @@ -56,7 +56,7 @@ type GetUploadStatusOutput struct { UploadStatus types.UploadStatus // The reason for an upload failure. - FailureReason []*string + FailureReason []string // The ARN of the upload. NamespaceArn *string diff --git a/service/iotthingsgraph/api_op_ListFlowExecutionMessages.go b/service/iotthingsgraph/api_op_ListFlowExecutionMessages.go index b810910a202..819edbe3f96 100644 --- a/service/iotthingsgraph/api_op_ListFlowExecutionMessages.go +++ b/service/iotthingsgraph/api_op_ListFlowExecutionMessages.go @@ -47,7 +47,7 @@ type ListFlowExecutionMessagesOutput struct { // A list of objects that contain information about events in the specified flow // execution. - Messages []*types.FlowExecutionMessage + Messages []types.FlowExecutionMessage // The string to specify as nextToken when you request the next page of results. NextToken *string diff --git a/service/iotthingsgraph/api_op_ListTagsForResource.go b/service/iotthingsgraph/api_op_ListTagsForResource.go index 913ed1700b8..0937fba93fb 100644 --- a/service/iotthingsgraph/api_op_ListTagsForResource.go +++ b/service/iotthingsgraph/api_op_ListTagsForResource.go @@ -47,7 +47,7 @@ type ListTagsForResourceOutput struct { NextToken *string // List of tags returned by the ListTagsForResource operation. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotthingsgraph/api_op_SearchEntities.go b/service/iotthingsgraph/api_op_SearchEntities.go index 8cc46fc7b36..faf1f14500b 100644 --- a/service/iotthingsgraph/api_op_SearchEntities.go +++ b/service/iotthingsgraph/api_op_SearchEntities.go @@ -41,7 +41,7 @@ type SearchEntitiesInput struct { // filter on the ID of a property that is used in a state. Multiple filters // function as OR criteria in the query. Multiple values passed inside the filter // function as AND criteria. - Filters []*types.EntityFilter + Filters []types.EntityFilter // The maximum number of results to return in the response. MaxResults *int32 @@ -58,7 +58,7 @@ type SearchEntitiesInput struct { type SearchEntitiesOutput struct { // An array of descriptions for each entity returned in the search result. - Descriptions []*types.EntityDescription + Descriptions []types.EntityDescription // The string to specify as nextToken when you request the next page of results. NextToken *string diff --git a/service/iotthingsgraph/api_op_SearchFlowExecutions.go b/service/iotthingsgraph/api_op_SearchFlowExecutions.go index 2d23b3cb318..1882ee29176 100644 --- a/service/iotthingsgraph/api_op_SearchFlowExecutions.go +++ b/service/iotthingsgraph/api_op_SearchFlowExecutions.go @@ -59,7 +59,7 @@ type SearchFlowExecutionsOutput struct { // An array of objects that contain summary information about each workflow // execution in the result set. - Summaries []*types.FlowExecutionSummary + Summaries []types.FlowExecutionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotthingsgraph/api_op_SearchFlowTemplates.go b/service/iotthingsgraph/api_op_SearchFlowTemplates.go index 9a128d98cc4..e1fa507f05e 100644 --- a/service/iotthingsgraph/api_op_SearchFlowTemplates.go +++ b/service/iotthingsgraph/api_op_SearchFlowTemplates.go @@ -31,7 +31,7 @@ type SearchFlowTemplatesInput struct { // An array of objects that limit the result set. The only valid filter is // DEVICE_MODEL_ID. - Filters []*types.FlowTemplateFilter + Filters []types.FlowTemplateFilter // The maximum number of results to return in the response. MaxResults *int32 @@ -48,7 +48,7 @@ type SearchFlowTemplatesOutput struct { // An array of objects that contain summary information about each workflow in the // result set. - Summaries []*types.FlowTemplateSummary + Summaries []types.FlowTemplateSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotthingsgraph/api_op_SearchSystemInstances.go b/service/iotthingsgraph/api_op_SearchSystemInstances.go index 0e4cef43b0b..2b33d4de6a5 100644 --- a/service/iotthingsgraph/api_op_SearchSystemInstances.go +++ b/service/iotthingsgraph/api_op_SearchSystemInstances.go @@ -32,7 +32,7 @@ type SearchSystemInstancesInput struct { // Optional filter to apply to the search. Valid filters are SYSTEM_TEMPLATE_ID, // STATUS, and GREENGRASS_GROUP_NAME. Multiple filters function as OR criteria in // the query. Multiple values passed inside the filter function as AND criteria. - Filters []*types.SystemInstanceFilter + Filters []types.SystemInstanceFilter // The maximum number of results to return in the response. MaxResults *int32 @@ -49,7 +49,7 @@ type SearchSystemInstancesOutput struct { // An array of objects that contain summary data abour the system instances in the // result set. - Summaries []*types.SystemInstanceSummary + Summaries []types.SystemInstanceSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotthingsgraph/api_op_SearchSystemTemplates.go b/service/iotthingsgraph/api_op_SearchSystemTemplates.go index fefd9b5a327..5288eb8aabe 100644 --- a/service/iotthingsgraph/api_op_SearchSystemTemplates.go +++ b/service/iotthingsgraph/api_op_SearchSystemTemplates.go @@ -33,7 +33,7 @@ type SearchSystemTemplatesInput struct { // An array of filters that limit the result set. The only valid filter is // FLOW_TEMPLATE_ID. - Filters []*types.SystemTemplateFilter + Filters []types.SystemTemplateFilter // The maximum number of results to return in the response. MaxResults *int32 @@ -50,7 +50,7 @@ type SearchSystemTemplatesOutput struct { // An array of objects that contain summary information about each system // deployment in the result set. - Summaries []*types.SystemTemplateSummary + Summaries []types.SystemTemplateSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotthingsgraph/api_op_SearchThings.go b/service/iotthingsgraph/api_op_SearchThings.go index b2a0dc0b285..f319597f39e 100644 --- a/service/iotthingsgraph/api_op_SearchThings.go +++ b/service/iotthingsgraph/api_op_SearchThings.go @@ -58,7 +58,7 @@ type SearchThingsOutput struct { NextToken *string // An array of things in the result set. - Things []*types.Thing + Things []types.Thing // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iotthingsgraph/api_op_TagResource.go b/service/iotthingsgraph/api_op_TagResource.go index fda4a415cb1..87d7b1a3c4e 100644 --- a/service/iotthingsgraph/api_op_TagResource.go +++ b/service/iotthingsgraph/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // A list of tags to add to the resource.> // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/iotthingsgraph/api_op_UntagResource.go b/service/iotthingsgraph/api_op_UntagResource.go index 07cb9742515..16400af2a07 100644 --- a/service/iotthingsgraph/api_op_UntagResource.go +++ b/service/iotthingsgraph/api_op_UntagResource.go @@ -42,7 +42,7 @@ type UntagResourceInput struct { // in the AWS CLI User Guide. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/iotthingsgraph/api_op_UploadEntityDefinitions.go b/service/iotthingsgraph/api_op_UploadEntityDefinitions.go index 82e9759b8b7..ecccc59a83f 100644 --- a/service/iotthingsgraph/api_op_UploadEntityDefinitions.go +++ b/service/iotthingsgraph/api_op_UploadEntityDefinitions.go @@ -48,7 +48,7 @@ type UploadEntityDefinitionsInput struct { // A Boolean that specifies whether to deprecate all entities in the latest version // before uploading the new DefinitionDocument. If set to true, the upload will // create a new namespace version. - DeprecateExistingEntities *bool + DeprecateExistingEntities bool // The DefinitionDocument that defines the updated entities. Document *types.DefinitionDocument @@ -56,7 +56,7 @@ type UploadEntityDefinitionsInput struct { // A Boolean that specifies whether to synchronize with the latest version of the // public namespace. If set to true, the upload will create a new namespace // version. - SyncWithPublicNamespace *bool + SyncWithPublicNamespace bool } type UploadEntityDefinitionsOutput struct { diff --git a/service/iotthingsgraph/deserializers.go b/service/iotthingsgraph/deserializers.go index 0789bfc323d..d7028f43297 100644 --- a/service/iotthingsgraph/deserializers.go +++ b/service/iotthingsgraph/deserializers.go @@ -4489,7 +4489,7 @@ func awsAwsjson11_deserializeDocumentDefinitionDocument(v **types.DefinitionDocu if !ok { return fmt.Errorf("expected DefinitionText to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } default: @@ -4529,7 +4529,7 @@ func awsAwsjson11_deserializeDocumentDependencyRevision(v **types.DependencyRevi if !ok { return fmt.Errorf("expected Urn to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "revisionNumber": @@ -4542,7 +4542,7 @@ func awsAwsjson11_deserializeDocumentDependencyRevision(v **types.DependencyRevi if err != nil { return err } - sv.RevisionNumber = &i64 + sv.RevisionNumber = ptr.Int64(i64) } default: @@ -4554,7 +4554,7 @@ func awsAwsjson11_deserializeDocumentDependencyRevision(v **types.DependencyRevi return nil } -func awsAwsjson11_deserializeDocumentDependencyRevisions(v *[]*types.DependencyRevision, value interface{}) error { +func awsAwsjson11_deserializeDocumentDependencyRevisions(v *[]types.DependencyRevision, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4567,18 +4567,20 @@ func awsAwsjson11_deserializeDocumentDependencyRevisions(v *[]*types.DependencyR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DependencyRevision + var cv []types.DependencyRevision if *v == nil { - cv = []*types.DependencyRevision{} + cv = []types.DependencyRevision{} } else { cv = *v } for _, value := range shape { - var col *types.DependencyRevision - if err := awsAwsjson11_deserializeDocumentDependencyRevision(&col, value); err != nil { + var col types.DependencyRevision + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDependencyRevision(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4614,7 +4616,7 @@ func awsAwsjson11_deserializeDocumentEntityDescription(v **types.EntityDescripti if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -4641,7 +4643,7 @@ func awsAwsjson11_deserializeDocumentEntityDescription(v **types.EntityDescripti if !ok { return fmt.Errorf("expected Urn to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "type": @@ -4662,7 +4664,7 @@ func awsAwsjson11_deserializeDocumentEntityDescription(v **types.EntityDescripti return nil } -func awsAwsjson11_deserializeDocumentEntityDescriptions(v *[]*types.EntityDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentEntityDescriptions(v *[]types.EntityDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4675,18 +4677,20 @@ func awsAwsjson11_deserializeDocumentEntityDescriptions(v *[]*types.EntityDescri return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EntityDescription + var cv []types.EntityDescription if *v == nil { - cv = []*types.EntityDescription{} + cv = []types.EntityDescription{} } else { cv = *v } for _, value := range shape { - var col *types.EntityDescription - if err := awsAwsjson11_deserializeDocumentEntityDescription(&col, value); err != nil { + var col types.EntityDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEntityDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4731,7 +4735,7 @@ func awsAwsjson11_deserializeDocumentFlowExecutionMessage(v **types.FlowExecutio if !ok { return fmt.Errorf("expected FlowExecutionMessageId to be of type string, got %T instead", value) } - sv.MessageId = &jtv + sv.MessageId = ptr.String(jtv) } case "payload": @@ -4740,7 +4744,7 @@ func awsAwsjson11_deserializeDocumentFlowExecutionMessage(v **types.FlowExecutio if !ok { return fmt.Errorf("expected FlowExecutionMessagePayload to be of type string, got %T instead", value) } - sv.Payload = &jtv + sv.Payload = ptr.String(jtv) } case "timestamp": @@ -4765,7 +4769,7 @@ func awsAwsjson11_deserializeDocumentFlowExecutionMessage(v **types.FlowExecutio return nil } -func awsAwsjson11_deserializeDocumentFlowExecutionMessages(v *[]*types.FlowExecutionMessage, value interface{}) error { +func awsAwsjson11_deserializeDocumentFlowExecutionMessages(v *[]types.FlowExecutionMessage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4778,18 +4782,20 @@ func awsAwsjson11_deserializeDocumentFlowExecutionMessages(v *[]*types.FlowExecu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FlowExecutionMessage + var cv []types.FlowExecutionMessage if *v == nil { - cv = []*types.FlowExecutionMessage{} + cv = []types.FlowExecutionMessage{} } else { cv = *v } for _, value := range shape { - var col *types.FlowExecutionMessage - if err := awsAwsjson11_deserializeDocumentFlowExecutionMessage(&col, value); err != nil { + var col types.FlowExecutionMessage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFlowExecutionMessage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4797,7 +4803,7 @@ func awsAwsjson11_deserializeDocumentFlowExecutionMessages(v *[]*types.FlowExecu return nil } -func awsAwsjson11_deserializeDocumentFlowExecutionSummaries(v *[]*types.FlowExecutionSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentFlowExecutionSummaries(v *[]types.FlowExecutionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4810,18 +4816,20 @@ func awsAwsjson11_deserializeDocumentFlowExecutionSummaries(v *[]*types.FlowExec return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FlowExecutionSummary + var cv []types.FlowExecutionSummary if *v == nil { - cv = []*types.FlowExecutionSummary{} + cv = []types.FlowExecutionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.FlowExecutionSummary - if err := awsAwsjson11_deserializeDocumentFlowExecutionSummary(&col, value); err != nil { + var col types.FlowExecutionSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFlowExecutionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4870,7 +4878,7 @@ func awsAwsjson11_deserializeDocumentFlowExecutionSummary(v **types.FlowExecutio if !ok { return fmt.Errorf("expected FlowExecutionId to be of type string, got %T instead", value) } - sv.FlowExecutionId = &jtv + sv.FlowExecutionId = ptr.String(jtv) } case "flowTemplateId": @@ -4879,7 +4887,7 @@ func awsAwsjson11_deserializeDocumentFlowExecutionSummary(v **types.FlowExecutio if !ok { return fmt.Errorf("expected Urn to be of type string, got %T instead", value) } - sv.FlowTemplateId = &jtv + sv.FlowTemplateId = ptr.String(jtv) } case "status": @@ -4897,7 +4905,7 @@ func awsAwsjson11_deserializeDocumentFlowExecutionSummary(v **types.FlowExecutio if !ok { return fmt.Errorf("expected Urn to be of type string, got %T instead", value) } - sv.SystemInstanceId = &jtv + sv.SystemInstanceId = ptr.String(jtv) } case "updatedAt": @@ -4964,7 +4972,7 @@ func awsAwsjson11_deserializeDocumentFlowTemplateDescription(v **types.FlowTempl if err != nil { return err } - sv.ValidatedNamespaceVersion = &i64 + sv.ValidatedNamespaceVersion = ptr.Int64(i64) } default: @@ -4976,7 +4984,7 @@ func awsAwsjson11_deserializeDocumentFlowTemplateDescription(v **types.FlowTempl return nil } -func awsAwsjson11_deserializeDocumentFlowTemplateSummaries(v *[]*types.FlowTemplateSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentFlowTemplateSummaries(v *[]types.FlowTemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4989,18 +4997,20 @@ func awsAwsjson11_deserializeDocumentFlowTemplateSummaries(v *[]*types.FlowTempl return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FlowTemplateSummary + var cv []types.FlowTemplateSummary if *v == nil { - cv = []*types.FlowTemplateSummary{} + cv = []types.FlowTemplateSummary{} } else { cv = *v } for _, value := range shape { - var col *types.FlowTemplateSummary - if err := awsAwsjson11_deserializeDocumentFlowTemplateSummary(&col, value); err != nil { + var col types.FlowTemplateSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFlowTemplateSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5036,7 +5046,7 @@ func awsAwsjson11_deserializeDocumentFlowTemplateSummary(v **types.FlowTemplateS if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -5058,7 +5068,7 @@ func awsAwsjson11_deserializeDocumentFlowTemplateSummary(v **types.FlowTemplateS if !ok { return fmt.Errorf("expected Urn to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "revisionNumber": @@ -5071,7 +5081,7 @@ func awsAwsjson11_deserializeDocumentFlowTemplateSummary(v **types.FlowTemplateS if err != nil { return err } - sv.RevisionNumber = &i64 + sv.RevisionNumber = ptr.Int64(i64) } default: @@ -5111,7 +5121,7 @@ func awsAwsjson11_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5151,7 +5161,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5191,7 +5201,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5231,7 +5241,7 @@ func awsAwsjson11_deserializeDocumentMetricsConfiguration(v **types.MetricsConfi if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.CloudMetricEnabled = &jtv + sv.CloudMetricEnabled = jtv } case "metricRuleRoleArn": @@ -5240,7 +5250,7 @@ func awsAwsjson11_deserializeDocumentMetricsConfiguration(v **types.MetricsConfi if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.MetricRuleRoleArn = &jtv + sv.MetricRuleRoleArn = ptr.String(jtv) } default: @@ -5280,7 +5290,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5320,7 +5330,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5360,7 +5370,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5372,7 +5382,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5385,21 +5395,21 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -5441,7 +5451,7 @@ func awsAwsjson11_deserializeDocumentSystemInstanceDescription(v **types.SystemI if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.FlowActionsRoleArn = &jtv + sv.FlowActionsRoleArn = ptr.String(jtv) } case "metricsConfiguration": @@ -5455,7 +5465,7 @@ func awsAwsjson11_deserializeDocumentSystemInstanceDescription(v **types.SystemI if !ok { return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "summary": @@ -5478,7 +5488,7 @@ func awsAwsjson11_deserializeDocumentSystemInstanceDescription(v **types.SystemI if err != nil { return err } - sv.ValidatedNamespaceVersion = &i64 + sv.ValidatedNamespaceVersion = ptr.Int64(i64) } default: @@ -5490,7 +5500,7 @@ func awsAwsjson11_deserializeDocumentSystemInstanceDescription(v **types.SystemI return nil } -func awsAwsjson11_deserializeDocumentSystemInstanceSummaries(v *[]*types.SystemInstanceSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSystemInstanceSummaries(v *[]types.SystemInstanceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5503,18 +5513,20 @@ func awsAwsjson11_deserializeDocumentSystemInstanceSummaries(v *[]*types.SystemI return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SystemInstanceSummary + var cv []types.SystemInstanceSummary if *v == nil { - cv = []*types.SystemInstanceSummary{} + cv = []types.SystemInstanceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SystemInstanceSummary - if err := awsAwsjson11_deserializeDocumentSystemInstanceSummary(&col, value); err != nil { + var col types.SystemInstanceSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSystemInstanceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5550,7 +5562,7 @@ func awsAwsjson11_deserializeDocumentSystemInstanceSummary(v **types.SystemInsta if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -5572,7 +5584,7 @@ func awsAwsjson11_deserializeDocumentSystemInstanceSummary(v **types.SystemInsta if !ok { return fmt.Errorf("expected GreengrassGroupId to be of type string, got %T instead", value) } - sv.GreengrassGroupId = &jtv + sv.GreengrassGroupId = ptr.String(jtv) } case "greengrassGroupName": @@ -5581,7 +5593,7 @@ func awsAwsjson11_deserializeDocumentSystemInstanceSummary(v **types.SystemInsta if !ok { return fmt.Errorf("expected GroupName to be of type string, got %T instead", value) } - sv.GreengrassGroupName = &jtv + sv.GreengrassGroupName = ptr.String(jtv) } case "greengrassGroupVersionId": @@ -5590,7 +5602,7 @@ func awsAwsjson11_deserializeDocumentSystemInstanceSummary(v **types.SystemInsta if !ok { return fmt.Errorf("expected GreengrassGroupVersionId to be of type string, got %T instead", value) } - sv.GreengrassGroupVersionId = &jtv + sv.GreengrassGroupVersionId = ptr.String(jtv) } case "id": @@ -5599,7 +5611,7 @@ func awsAwsjson11_deserializeDocumentSystemInstanceSummary(v **types.SystemInsta if !ok { return fmt.Errorf("expected Urn to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "status": @@ -5684,7 +5696,7 @@ func awsAwsjson11_deserializeDocumentSystemTemplateDescription(v **types.SystemT if err != nil { return err } - sv.ValidatedNamespaceVersion = &i64 + sv.ValidatedNamespaceVersion = ptr.Int64(i64) } default: @@ -5696,7 +5708,7 @@ func awsAwsjson11_deserializeDocumentSystemTemplateDescription(v **types.SystemT return nil } -func awsAwsjson11_deserializeDocumentSystemTemplateSummaries(v *[]*types.SystemTemplateSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSystemTemplateSummaries(v *[]types.SystemTemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5709,18 +5721,20 @@ func awsAwsjson11_deserializeDocumentSystemTemplateSummaries(v *[]*types.SystemT return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SystemTemplateSummary + var cv []types.SystemTemplateSummary if *v == nil { - cv = []*types.SystemTemplateSummary{} + cv = []types.SystemTemplateSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SystemTemplateSummary - if err := awsAwsjson11_deserializeDocumentSystemTemplateSummary(&col, value); err != nil { + var col types.SystemTemplateSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSystemTemplateSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5756,7 +5770,7 @@ func awsAwsjson11_deserializeDocumentSystemTemplateSummary(v **types.SystemTempl if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -5778,7 +5792,7 @@ func awsAwsjson11_deserializeDocumentSystemTemplateSummary(v **types.SystemTempl if !ok { return fmt.Errorf("expected Urn to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "revisionNumber": @@ -5791,7 +5805,7 @@ func awsAwsjson11_deserializeDocumentSystemTemplateSummary(v **types.SystemTempl if err != nil { return err } - sv.RevisionNumber = &i64 + sv.RevisionNumber = ptr.Int64(i64) } default: @@ -5831,7 +5845,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -5840,7 +5854,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5852,7 +5866,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5865,18 +5879,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5912,7 +5928,7 @@ func awsAwsjson11_deserializeDocumentThing(v **types.Thing, value interface{}) e if !ok { return fmt.Errorf("expected ThingArn to be of type string, got %T instead", value) } - sv.ThingArn = &jtv + sv.ThingArn = ptr.String(jtv) } case "thingName": @@ -5921,7 +5937,7 @@ func awsAwsjson11_deserializeDocumentThing(v **types.Thing, value interface{}) e if !ok { return fmt.Errorf("expected ThingName to be of type string, got %T instead", value) } - sv.ThingName = &jtv + sv.ThingName = ptr.String(jtv) } default: @@ -5933,7 +5949,7 @@ func awsAwsjson11_deserializeDocumentThing(v **types.Thing, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentThings(v *[]*types.Thing, value interface{}) error { +func awsAwsjson11_deserializeDocumentThings(v *[]types.Thing, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5946,18 +5962,20 @@ func awsAwsjson11_deserializeDocumentThings(v *[]*types.Thing, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Thing + var cv []types.Thing if *v == nil { - cv = []*types.Thing{} + cv = []types.Thing{} } else { cv = *v } for _, value := range shape { - var col *types.Thing - if err := awsAwsjson11_deserializeDocumentThing(&col, value); err != nil { + var col types.Thing + destAddr := &col + if err := awsAwsjson11_deserializeDocumentThing(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5993,7 +6011,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6203,7 +6221,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteNamespaceOutput(v **DeleteNamespace if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.NamespaceArn = &jtv + sv.NamespaceArn = ptr.String(jtv) } case "namespaceName": @@ -6212,7 +6230,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteNamespaceOutput(v **DeleteNamespace if !ok { return fmt.Errorf("expected NamespaceName to be of type string, got %T instead", value) } - sv.NamespaceName = &jtv + sv.NamespaceName = ptr.String(jtv) } default: @@ -6314,7 +6332,7 @@ func awsAwsjson11_deserializeOpDocumentDeploySystemInstanceOutput(v **DeploySyst if !ok { return fmt.Errorf("expected GreengrassDeploymentId to be of type string, got %T instead", value) } - sv.GreengrassDeploymentId = &jtv + sv.GreengrassDeploymentId = ptr.String(jtv) } case "summary": @@ -6421,7 +6439,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNamespaceOutput(v **DescribeNames if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.NamespaceArn = &jtv + sv.NamespaceArn = ptr.String(jtv) } case "namespaceName": @@ -6430,7 +6448,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNamespaceOutput(v **DescribeNames if !ok { return fmt.Errorf("expected NamespaceName to be of type string, got %T instead", value) } - sv.NamespaceName = &jtv + sv.NamespaceName = ptr.String(jtv) } case "namespaceVersion": @@ -6443,7 +6461,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNamespaceOutput(v **DescribeNames if err != nil { return err } - sv.NamespaceVersion = &i64 + sv.NamespaceVersion = ptr.Int64(i64) } case "trackingNamespaceName": @@ -6452,7 +6470,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNamespaceOutput(v **DescribeNames if !ok { return fmt.Errorf("expected NamespaceName to be of type string, got %T instead", value) } - sv.TrackingNamespaceName = &jtv + sv.TrackingNamespaceName = ptr.String(jtv) } case "trackingNamespaceVersion": @@ -6465,7 +6483,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNamespaceOutput(v **DescribeNames if err != nil { return err } - sv.TrackingNamespaceVersion = &i64 + sv.TrackingNamespaceVersion = ptr.Int64(i64) } default: @@ -6608,7 +6626,7 @@ func awsAwsjson11_deserializeOpDocumentGetFlowTemplateRevisionsOutput(v **GetFlo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "summaries": @@ -6662,7 +6680,7 @@ func awsAwsjson11_deserializeOpDocumentGetNamespaceDeletionStatusOutput(v **GetN if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "namespaceArn": @@ -6671,7 +6689,7 @@ func awsAwsjson11_deserializeOpDocumentGetNamespaceDeletionStatusOutput(v **GetN if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.NamespaceArn = &jtv + sv.NamespaceArn = ptr.String(jtv) } case "namespaceName": @@ -6680,7 +6698,7 @@ func awsAwsjson11_deserializeOpDocumentGetNamespaceDeletionStatusOutput(v **GetN if !ok { return fmt.Errorf("expected NamespaceName to be of type string, got %T instead", value) } - sv.NamespaceName = &jtv + sv.NamespaceName = ptr.String(jtv) } case "status": @@ -6801,7 +6819,7 @@ func awsAwsjson11_deserializeOpDocumentGetSystemTemplateRevisionsOutput(v **GetS if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "summaries": @@ -6864,7 +6882,7 @@ func awsAwsjson11_deserializeOpDocumentGetUploadStatusOutput(v **GetUploadStatus if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.NamespaceArn = &jtv + sv.NamespaceArn = ptr.String(jtv) } case "namespaceName": @@ -6873,7 +6891,7 @@ func awsAwsjson11_deserializeOpDocumentGetUploadStatusOutput(v **GetUploadStatus if !ok { return fmt.Errorf("expected NamespaceName to be of type string, got %T instead", value) } - sv.NamespaceName = &jtv + sv.NamespaceName = ptr.String(jtv) } case "namespaceVersion": @@ -6886,7 +6904,7 @@ func awsAwsjson11_deserializeOpDocumentGetUploadStatusOutput(v **GetUploadStatus if err != nil { return err } - sv.NamespaceVersion = &i64 + sv.NamespaceVersion = ptr.Int64(i64) } case "uploadId": @@ -6895,7 +6913,7 @@ func awsAwsjson11_deserializeOpDocumentGetUploadStatusOutput(v **GetUploadStatus if !ok { return fmt.Errorf("expected UploadId to be of type string, got %T instead", value) } - sv.UploadId = &jtv + sv.UploadId = ptr.String(jtv) } case "uploadStatus": @@ -6949,7 +6967,7 @@ func awsAwsjson11_deserializeOpDocumentListFlowExecutionMessagesOutput(v **ListF if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6989,7 +7007,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tags": @@ -7039,7 +7057,7 @@ func awsAwsjson11_deserializeOpDocumentSearchEntitiesOutput(v **SearchEntitiesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7079,7 +7097,7 @@ func awsAwsjson11_deserializeOpDocumentSearchFlowExecutionsOutput(v **SearchFlow if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "summaries": @@ -7124,7 +7142,7 @@ func awsAwsjson11_deserializeOpDocumentSearchFlowTemplatesOutput(v **SearchFlowT if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "summaries": @@ -7169,7 +7187,7 @@ func awsAwsjson11_deserializeOpDocumentSearchSystemInstancesOutput(v **SearchSys if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "summaries": @@ -7214,7 +7232,7 @@ func awsAwsjson11_deserializeOpDocumentSearchSystemTemplatesOutput(v **SearchSys if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "summaries": @@ -7259,7 +7277,7 @@ func awsAwsjson11_deserializeOpDocumentSearchThingsOutput(v **SearchThingsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "things": @@ -7474,7 +7492,7 @@ func awsAwsjson11_deserializeOpDocumentUploadEntityDefinitionsOutput(v **UploadE if !ok { return fmt.Errorf("expected UploadId to be of type string, got %T instead", value) } - sv.UploadId = &jtv + sv.UploadId = ptr.String(jtv) } default: diff --git a/service/iotthingsgraph/go.mod b/service/iotthingsgraph/go.mod index 5eaa9a7794e..b57164891e5 100644 --- a/service/iotthingsgraph/go.mod +++ b/service/iotthingsgraph/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/iotthingsgraph go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/iotthingsgraph/serializers.go b/service/iotthingsgraph/serializers.go index 5112da1fe01..d21598857f8 100644 --- a/service/iotthingsgraph/serializers.go +++ b/service/iotthingsgraph/serializers.go @@ -1646,34 +1646,26 @@ func awsAwsjson11_serializeDocumentEntityFilter(v *types.EntityFilter, value smi return nil } -func awsAwsjson11_serializeDocumentEntityFilters(v []*types.EntityFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEntityFilters(v []types.EntityFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEntityFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEntityFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentEntityFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEntityFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1708,34 +1700,26 @@ func awsAwsjson11_serializeDocumentFlowTemplateFilter(v *types.FlowTemplateFilte return nil } -func awsAwsjson11_serializeDocumentFlowTemplateFilters(v []*types.FlowTemplateFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFlowTemplateFilters(v []types.FlowTemplateFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFlowTemplateFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFlowTemplateFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentFlowTemplateFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFlowTemplateFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1744,9 +1728,9 @@ func awsAwsjson11_serializeDocumentMetricsConfiguration(v *types.MetricsConfigur object := value.Object() defer object.Close() - if v.CloudMetricEnabled != nil { + if v.CloudMetricEnabled { ok := object.Key("cloudMetricEnabled") - ok.Boolean(*v.CloudMetricEnabled) + ok.Boolean(v.CloudMetricEnabled) } if v.MetricRuleRoleArn != nil { @@ -1776,34 +1760,26 @@ func awsAwsjson11_serializeDocumentSystemInstanceFilter(v *types.SystemInstanceF return nil } -func awsAwsjson11_serializeDocumentSystemInstanceFilters(v []*types.SystemInstanceFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSystemInstanceFilters(v []types.SystemInstanceFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSystemInstanceFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSystemInstanceFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentSystemInstanceFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSystemInstanceFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1827,34 +1803,26 @@ func awsAwsjson11_serializeDocumentSystemTemplateFilter(v *types.SystemTemplateF return nil } -func awsAwsjson11_serializeDocumentSystemTemplateFilters(v []*types.SystemTemplateFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSystemTemplateFilters(v []types.SystemTemplateFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSystemTemplateFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSystemTemplateFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentSystemTemplateFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSystemTemplateFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1876,49 +1844,37 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentUrns(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentUrns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2585,9 +2541,9 @@ func awsAwsjson11_serializeOpDocumentUploadEntityDefinitionsInput(v *UploadEntit object := value.Object() defer object.Close() - if v.DeprecateExistingEntities != nil { + if v.DeprecateExistingEntities { ok := object.Key("deprecateExistingEntities") - ok.Boolean(*v.DeprecateExistingEntities) + ok.Boolean(v.DeprecateExistingEntities) } if v.Document != nil { @@ -2597,9 +2553,9 @@ func awsAwsjson11_serializeOpDocumentUploadEntityDefinitionsInput(v *UploadEntit } } - if v.SyncWithPublicNamespace != nil { + if v.SyncWithPublicNamespace { ok := object.Key("syncWithPublicNamespace") - ok.Boolean(*v.SyncWithPublicNamespace) + ok.Boolean(v.SyncWithPublicNamespace) } return nil diff --git a/service/iotthingsgraph/types/types.go b/service/iotthingsgraph/types/types.go index d46a84ea80f..0dc595b4125 100644 --- a/service/iotthingsgraph/types/types.go +++ b/service/iotthingsgraph/types/types.go @@ -63,7 +63,7 @@ type EntityFilter struct { // An array of string values for the search filter field. Multiple values function // as AND criteria in the search. - Value []*string + Value []string } // An object that contains information about a flow event. @@ -130,7 +130,7 @@ type FlowTemplateFilter struct { // as AND criteria in the search. // // This member is required. - Value []*string + Value []string } // An object that contains summary information about a workflow. @@ -154,7 +154,7 @@ type FlowTemplateSummary struct { type MetricsConfiguration struct { // A Boolean that specifies whether cloud metrics are collected. - CloudMetricEnabled *bool + CloudMetricEnabled bool // The ARN of the role that is used to collect cloud metrics. MetricRuleRoleArn *string @@ -185,7 +185,7 @@ type SystemInstanceDescription struct { // A list of objects that contain all of the IDs and revision numbers of workflows // and systems that are used in a system instance. - ValidatedDependencyRevisions []*DependencyRevision + ValidatedDependencyRevisions []DependencyRevision // The version of the user's namespace against which the system instance was // validated. @@ -203,7 +203,7 @@ type SystemInstanceFilter struct { // An array of string values for the search filter field. Multiple values function // as AND criteria in the search. - Value []*string + Value []string } // An object that contains summary information about a system instance. @@ -263,7 +263,7 @@ type SystemTemplateFilter struct { // as AND criteria in the search. // // This member is required. - Value []*string + Value []string } // An object that contains information about a system. diff --git a/service/iotthingsgraph/validators.go b/service/iotthingsgraph/validators.go index 4dd4b925e20..904db4fb5f1 100644 --- a/service/iotthingsgraph/validators.go +++ b/service/iotthingsgraph/validators.go @@ -718,13 +718,13 @@ func validateFlowTemplateFilter(v *types.FlowTemplateFilter) error { } } -func validateFlowTemplateFilters(v []*types.FlowTemplateFilter) error { +func validateFlowTemplateFilters(v []types.FlowTemplateFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FlowTemplateFilters"} for i := range v { - if err := validateFlowTemplateFilter(v[i]); err != nil { + if err := validateFlowTemplateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -753,13 +753,13 @@ func validateSystemTemplateFilter(v *types.SystemTemplateFilter) error { } } -func validateSystemTemplateFilters(v []*types.SystemTemplateFilter) error { +func validateSystemTemplateFilters(v []types.SystemTemplateFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SystemTemplateFilters"} for i := range v { - if err := validateSystemTemplateFilter(v[i]); err != nil { + if err := validateSystemTemplateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -788,13 +788,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/ivs/api_op_BatchGetChannel.go b/service/ivs/api_op_BatchGetChannel.go index 9dfbce14d7f..3bc8f8d20e2 100644 --- a/service/ivs/api_op_BatchGetChannel.go +++ b/service/ivs/api_op_BatchGetChannel.go @@ -32,14 +32,14 @@ type BatchGetChannelInput struct { // Array of ARNs, one per channel. // // This member is required. - Arns []*string + Arns []string } type BatchGetChannelOutput struct { - Channels []*types.Channel + Channels []types.Channel // Each error object is related to a specific ARN in the request. - Errors []*types.BatchError + Errors []types.BatchError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ivs/api_op_BatchGetStreamKey.go b/service/ivs/api_op_BatchGetStreamKey.go index 6efbf40e841..73a380b4330 100644 --- a/service/ivs/api_op_BatchGetStreamKey.go +++ b/service/ivs/api_op_BatchGetStreamKey.go @@ -32,13 +32,13 @@ type BatchGetStreamKeyInput struct { // Array of ARNs, one per channel. // // This member is required. - Arns []*string + Arns []string } type BatchGetStreamKeyOutput struct { - Errors []*types.BatchError + Errors []types.BatchError - StreamKeys []*types.StreamKey + StreamKeys []types.StreamKey // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ivs/api_op_CreateChannel.go b/service/ivs/api_op_CreateChannel.go index 2fa29024351..f68b4814051 100644 --- a/service/ivs/api_op_CreateChannel.go +++ b/service/ivs/api_op_CreateChannel.go @@ -30,7 +30,7 @@ func (c *Client) CreateChannel(ctx context.Context, params *CreateChannelInput, type CreateChannelInput struct { // Whether the channel is authorized. Default: false. - Authorized *bool + Authorized bool // Channel latency mode. Default: LOW. LatencyMode types.ChannelLatencyMode @@ -39,7 +39,7 @@ type CreateChannelInput struct { Name *string // See Channel$tags. - Tags map[string]*string + Tags map[string]string // Channel type, which determines the allowable resolution and bitrate. If you // exceed the allowable resolution or bitrate, the stream probably will disconnect diff --git a/service/ivs/api_op_CreateStreamKey.go b/service/ivs/api_op_CreateStreamKey.go index f3674865561..da1962b685a 100644 --- a/service/ivs/api_op_CreateStreamKey.go +++ b/service/ivs/api_op_CreateStreamKey.go @@ -39,7 +39,7 @@ type CreateStreamKeyInput struct { ChannelArn *string // See Channel$tags. - Tags map[string]*string + Tags map[string]string } type CreateStreamKeyOutput struct { diff --git a/service/ivs/api_op_ImportPlaybackKeyPair.go b/service/ivs/api_op_ImportPlaybackKeyPair.go index 5a387416c0c..b76bf53388a 100644 --- a/service/ivs/api_op_ImportPlaybackKeyPair.go +++ b/service/ivs/api_op_ImportPlaybackKeyPair.go @@ -41,7 +41,7 @@ type ImportPlaybackKeyPairInput struct { Name *string // Any tags provided with the request are added to the playback key pair tags. - Tags map[string]*string + Tags map[string]string } type ImportPlaybackKeyPairOutput struct { diff --git a/service/ivs/api_op_ListChannels.go b/service/ivs/api_op_ListChannels.go index 6b5908463e8..a2a5b7fc637 100644 --- a/service/ivs/api_op_ListChannels.go +++ b/service/ivs/api_op_ListChannels.go @@ -35,7 +35,7 @@ type ListChannelsInput struct { FilterByName *string // Maximum number of channels to return. - MaxResults *int32 + MaxResults int32 // The first channel to retrieve. This is used for pagination; see the nextToken // response field. @@ -47,7 +47,7 @@ type ListChannelsOutput struct { // List of the matching channels. // // This member is required. - Channels []*types.ChannelSummary + Channels []types.ChannelSummary // If there are more channels than maxResults, use nextToken in the request to get // the next set. diff --git a/service/ivs/api_op_ListPlaybackKeyPairs.go b/service/ivs/api_op_ListPlaybackKeyPairs.go index 4b56b01350b..6020c520e17 100644 --- a/service/ivs/api_op_ListPlaybackKeyPairs.go +++ b/service/ivs/api_op_ListPlaybackKeyPairs.go @@ -31,7 +31,7 @@ type ListPlaybackKeyPairsInput struct { // The first key pair to retrieve. This is used for pagination; see the nextToken // response field. - MaxResults *int32 + MaxResults int32 // Maximum number of key pairs to return. NextToken *string @@ -42,7 +42,7 @@ type ListPlaybackKeyPairsOutput struct { // List of key pairs. // // This member is required. - KeyPairs []*types.PlaybackKeyPairSummary + KeyPairs []types.PlaybackKeyPairSummary // If there are more key pairs than maxResults, use nextToken in the request to get // the next set. diff --git a/service/ivs/api_op_ListStreamKeys.go b/service/ivs/api_op_ListStreamKeys.go index 59c53f7d522..0e9d1071b9b 100644 --- a/service/ivs/api_op_ListStreamKeys.go +++ b/service/ivs/api_op_ListStreamKeys.go @@ -35,7 +35,7 @@ type ListStreamKeysInput struct { ChannelArn *string // Maximum number of streamKeys to return. - MaxResults *int32 + MaxResults int32 // The first stream key to retrieve. This is used for pagination; see the nextToken // response field. @@ -47,7 +47,7 @@ type ListStreamKeysOutput struct { // List of stream keys. // // This member is required. - StreamKeys []*types.StreamKeySummary + StreamKeys []types.StreamKeySummary // If there are more stream keys than maxResults, use nextToken in the request to // get the next set. diff --git a/service/ivs/api_op_ListStreams.go b/service/ivs/api_op_ListStreams.go index 7b9bd0a20f2..5e8c60b7377 100644 --- a/service/ivs/api_op_ListStreams.go +++ b/service/ivs/api_op_ListStreams.go @@ -31,7 +31,7 @@ func (c *Client) ListStreams(ctx context.Context, params *ListStreamsInput, optF type ListStreamsInput struct { // Maximum number of streams to return. - MaxResults *int32 + MaxResults int32 // The first stream to retrieve. This is used for pagination; see the nextToken // response field. @@ -43,7 +43,7 @@ type ListStreamsOutput struct { // List of streams. // // This member is required. - Streams []*types.StreamSummary + Streams []types.StreamSummary // If there are more streams than maxResults, use nextToken in the request to get // the next set. diff --git a/service/ivs/api_op_ListTagsForResource.go b/service/ivs/api_op_ListTagsForResource.go index f0fc8e91536..e1d37fb4c7e 100644 --- a/service/ivs/api_op_ListTagsForResource.go +++ b/service/ivs/api_op_ListTagsForResource.go @@ -34,7 +34,7 @@ type ListTagsForResourceInput struct { ResourceArn *string // Maximum number of tags to return. - MaxResults *int32 + MaxResults int32 // The first tag to retrieve. This is used for pagination; see the nextToken // response field. @@ -42,7 +42,7 @@ type ListTagsForResourceInput struct { } type ListTagsForResourceOutput struct { - Tags map[string]*string + Tags map[string]string // If there are more tags than maxResults, use nextToken in the request to get the // next set. diff --git a/service/ivs/api_op_TagResource.go b/service/ivs/api_op_TagResource.go index 7afd24ae97e..7dd3f5a4ffe 100644 --- a/service/ivs/api_op_TagResource.go +++ b/service/ivs/api_op_TagResource.go @@ -36,7 +36,7 @@ type TagResourceInput struct { // Array of tags to be added or updated. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/ivs/api_op_UntagResource.go b/service/ivs/api_op_UntagResource.go index e65f650a0c7..d2fb154a084 100644 --- a/service/ivs/api_op_UntagResource.go +++ b/service/ivs/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // Array of tags to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/ivs/api_op_UpdateChannel.go b/service/ivs/api_op_UpdateChannel.go index 81cd1d37ece..cd7601e82c4 100644 --- a/service/ivs/api_op_UpdateChannel.go +++ b/service/ivs/api_op_UpdateChannel.go @@ -37,7 +37,7 @@ type UpdateChannelInput struct { Arn *string // Whether the channel is authorized. Default: false. - Authorized *bool + Authorized bool // Channel latency mode. Default: LOW. LatencyMode types.ChannelLatencyMode diff --git a/service/ivs/deserializers.go b/service/ivs/deserializers.go index 557f0b73bb8..39a1c3ff565 100644 --- a/service/ivs/deserializers.go +++ b/service/ivs/deserializers.go @@ -1837,7 +1837,7 @@ func awsRestjson1_deserializeOpDocumentListChannelsOutput(v **ListChannelsOutput if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1996,7 +1996,7 @@ func awsRestjson1_deserializeOpDocumentListPlaybackKeyPairsOutput(v **ListPlayba if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2153,7 +2153,7 @@ func awsRestjson1_deserializeOpDocumentListStreamKeysOutput(v **ListStreamKeysOu if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "streamKeys": @@ -2309,7 +2309,7 @@ func awsRestjson1_deserializeOpDocumentListStreamsOutput(v **ListStreamsOutput, if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "streams": @@ -2471,7 +2471,7 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "tags": @@ -3403,7 +3403,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.ExceptionMessage = &jtv + sv.ExceptionMessage = ptr.String(jtv) } default: @@ -3443,7 +3443,7 @@ func awsRestjson1_deserializeDocumentBatchError(v **types.BatchError, value inte if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "code": @@ -3452,7 +3452,7 @@ func awsRestjson1_deserializeDocumentBatchError(v **types.BatchError, value inte if !ok { return fmt.Errorf("expected errorCode to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -3461,7 +3461,7 @@ func awsRestjson1_deserializeDocumentBatchError(v **types.BatchError, value inte if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3473,7 +3473,7 @@ func awsRestjson1_deserializeDocumentBatchError(v **types.BatchError, value inte return nil } -func awsRestjson1_deserializeDocumentBatchErrors(v *[]*types.BatchError, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchErrors(v *[]types.BatchError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3486,18 +3486,20 @@ func awsRestjson1_deserializeDocumentBatchErrors(v *[]*types.BatchError, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchError + var cv []types.BatchError if *v == nil { - cv = []*types.BatchError{} + cv = []types.BatchError{} } else { cv = *v } for _, value := range shape { - var col *types.BatchError - if err := awsRestjson1_deserializeDocumentBatchError(&col, value); err != nil { + var col types.BatchError + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3533,7 +3535,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected ChannelArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authorized": @@ -3542,7 +3544,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected IsAuthorized to be of type *bool, got %T instead", value) } - sv.Authorized = &jtv + sv.Authorized = jtv } case "ingestEndpoint": @@ -3551,7 +3553,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected IngestEndpoint to be of type string, got %T instead", value) } - sv.IngestEndpoint = &jtv + sv.IngestEndpoint = ptr.String(jtv) } case "latencyMode": @@ -3569,7 +3571,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "playbackUrl": @@ -3578,7 +3580,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected PlaybackURL to be of type string, got %T instead", value) } - sv.PlaybackUrl = &jtv + sv.PlaybackUrl = ptr.String(jtv) } case "tags": @@ -3604,7 +3606,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ return nil } -func awsRestjson1_deserializeDocumentChannelList(v *[]*types.ChannelSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentChannelList(v *[]types.ChannelSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3617,18 +3619,20 @@ func awsRestjson1_deserializeDocumentChannelList(v *[]*types.ChannelSummary, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ChannelSummary + var cv []types.ChannelSummary if *v == nil { - cv = []*types.ChannelSummary{} + cv = []types.ChannelSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ChannelSummary - if err := awsRestjson1_deserializeDocumentChannelSummary(&col, value); err != nil { + var col types.ChannelSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentChannelSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3664,7 +3668,7 @@ func awsRestjson1_deserializeDocumentChannelNotBroadcasting(v **types.ChannelNot if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.ExceptionMessage = &jtv + sv.ExceptionMessage = ptr.String(jtv) } default: @@ -3676,7 +3680,7 @@ func awsRestjson1_deserializeDocumentChannelNotBroadcasting(v **types.ChannelNot return nil } -func awsRestjson1_deserializeDocumentChannels(v *[]*types.Channel, value interface{}) error { +func awsRestjson1_deserializeDocumentChannels(v *[]types.Channel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3689,18 +3693,20 @@ func awsRestjson1_deserializeDocumentChannels(v *[]*types.Channel, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Channel + var cv []types.Channel if *v == nil { - cv = []*types.Channel{} + cv = []types.Channel{} } else { cv = *v } for _, value := range shape { - var col *types.Channel - if err := awsRestjson1_deserializeDocumentChannel(&col, value); err != nil { + var col types.Channel + destAddr := &col + if err := awsRestjson1_deserializeDocumentChannel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3736,7 +3742,7 @@ func awsRestjson1_deserializeDocumentChannelSummary(v **types.ChannelSummary, va if !ok { return fmt.Errorf("expected ChannelArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authorized": @@ -3745,7 +3751,7 @@ func awsRestjson1_deserializeDocumentChannelSummary(v **types.ChannelSummary, va if !ok { return fmt.Errorf("expected IsAuthorized to be of type *bool, got %T instead", value) } - sv.Authorized = &jtv + sv.Authorized = jtv } case "latencyMode": @@ -3763,7 +3769,7 @@ func awsRestjson1_deserializeDocumentChannelSummary(v **types.ChannelSummary, va if !ok { return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -3808,7 +3814,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.ExceptionMessage = &jtv + sv.ExceptionMessage = ptr.String(jtv) } default: @@ -3848,7 +3854,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.ExceptionMessage = &jtv + sv.ExceptionMessage = ptr.String(jtv) } default: @@ -3888,7 +3894,7 @@ func awsRestjson1_deserializeDocumentPendingVerification(v **types.PendingVerifi if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.ExceptionMessage = &jtv + sv.ExceptionMessage = ptr.String(jtv) } default: @@ -3928,7 +3934,7 @@ func awsRestjson1_deserializeDocumentPlaybackKeyPair(v **types.PlaybackKeyPair, if !ok { return fmt.Errorf("expected PlaybackKeyPairArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "fingerprint": @@ -3937,7 +3943,7 @@ func awsRestjson1_deserializeDocumentPlaybackKeyPair(v **types.PlaybackKeyPair, if !ok { return fmt.Errorf("expected PlaybackKeyPairFingerprint to be of type string, got %T instead", value) } - sv.Fingerprint = &jtv + sv.Fingerprint = ptr.String(jtv) } case "name": @@ -3946,7 +3952,7 @@ func awsRestjson1_deserializeDocumentPlaybackKeyPair(v **types.PlaybackKeyPair, if !ok { return fmt.Errorf("expected PlaybackKeyPairName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -3963,7 +3969,7 @@ func awsRestjson1_deserializeDocumentPlaybackKeyPair(v **types.PlaybackKeyPair, return nil } -func awsRestjson1_deserializeDocumentPlaybackKeyPairList(v *[]*types.PlaybackKeyPairSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentPlaybackKeyPairList(v *[]types.PlaybackKeyPairSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3976,18 +3982,20 @@ func awsRestjson1_deserializeDocumentPlaybackKeyPairList(v *[]*types.PlaybackKey return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PlaybackKeyPairSummary + var cv []types.PlaybackKeyPairSummary if *v == nil { - cv = []*types.PlaybackKeyPairSummary{} + cv = []types.PlaybackKeyPairSummary{} } else { cv = *v } for _, value := range shape { - var col *types.PlaybackKeyPairSummary - if err := awsRestjson1_deserializeDocumentPlaybackKeyPairSummary(&col, value); err != nil { + var col types.PlaybackKeyPairSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentPlaybackKeyPairSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4023,7 +4031,7 @@ func awsRestjson1_deserializeDocumentPlaybackKeyPairSummary(v **types.PlaybackKe if !ok { return fmt.Errorf("expected PlaybackKeyPairArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "name": @@ -4032,7 +4040,7 @@ func awsRestjson1_deserializeDocumentPlaybackKeyPairSummary(v **types.PlaybackKe if !ok { return fmt.Errorf("expected PlaybackKeyPairName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -4077,7 +4085,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.ExceptionMessage = &jtv + sv.ExceptionMessage = ptr.String(jtv) } default: @@ -4117,7 +4125,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.ExceptionMessage = &jtv + sv.ExceptionMessage = ptr.String(jtv) } default: @@ -4157,7 +4165,7 @@ func awsRestjson1_deserializeDocumentStream(v **types.Stream, value interface{}) if !ok { return fmt.Errorf("expected ChannelArn to be of type string, got %T instead", value) } - sv.ChannelArn = &jtv + sv.ChannelArn = ptr.String(jtv) } case "health": @@ -4175,7 +4183,7 @@ func awsRestjson1_deserializeDocumentStream(v **types.Stream, value interface{}) if !ok { return fmt.Errorf("expected PlaybackURL to be of type string, got %T instead", value) } - sv.PlaybackUrl = &jtv + sv.PlaybackUrl = ptr.String(jtv) } case "startTime": @@ -4210,7 +4218,7 @@ func awsRestjson1_deserializeDocumentStream(v **types.Stream, value interface{}) if err != nil { return err } - sv.ViewerCount = &i64 + sv.ViewerCount = i64 } default: @@ -4250,7 +4258,7 @@ func awsRestjson1_deserializeDocumentStreamKey(v **types.StreamKey, value interf if !ok { return fmt.Errorf("expected StreamKeyArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "channelArn": @@ -4259,7 +4267,7 @@ func awsRestjson1_deserializeDocumentStreamKey(v **types.StreamKey, value interf if !ok { return fmt.Errorf("expected ChannelArn to be of type string, got %T instead", value) } - sv.ChannelArn = &jtv + sv.ChannelArn = ptr.String(jtv) } case "tags": @@ -4273,7 +4281,7 @@ func awsRestjson1_deserializeDocumentStreamKey(v **types.StreamKey, value interf if !ok { return fmt.Errorf("expected StreamKeyValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4285,7 +4293,7 @@ func awsRestjson1_deserializeDocumentStreamKey(v **types.StreamKey, value interf return nil } -func awsRestjson1_deserializeDocumentStreamKeyList(v *[]*types.StreamKeySummary, value interface{}) error { +func awsRestjson1_deserializeDocumentStreamKeyList(v *[]types.StreamKeySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4298,18 +4306,20 @@ func awsRestjson1_deserializeDocumentStreamKeyList(v *[]*types.StreamKeySummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StreamKeySummary + var cv []types.StreamKeySummary if *v == nil { - cv = []*types.StreamKeySummary{} + cv = []types.StreamKeySummary{} } else { cv = *v } for _, value := range shape { - var col *types.StreamKeySummary - if err := awsRestjson1_deserializeDocumentStreamKeySummary(&col, value); err != nil { + var col types.StreamKeySummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentStreamKeySummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4317,7 +4327,7 @@ func awsRestjson1_deserializeDocumentStreamKeyList(v *[]*types.StreamKeySummary, return nil } -func awsRestjson1_deserializeDocumentStreamKeys(v *[]*types.StreamKey, value interface{}) error { +func awsRestjson1_deserializeDocumentStreamKeys(v *[]types.StreamKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4330,18 +4340,20 @@ func awsRestjson1_deserializeDocumentStreamKeys(v *[]*types.StreamKey, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StreamKey + var cv []types.StreamKey if *v == nil { - cv = []*types.StreamKey{} + cv = []types.StreamKey{} } else { cv = *v } for _, value := range shape { - var col *types.StreamKey - if err := awsRestjson1_deserializeDocumentStreamKey(&col, value); err != nil { + var col types.StreamKey + destAddr := &col + if err := awsRestjson1_deserializeDocumentStreamKey(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4377,7 +4389,7 @@ func awsRestjson1_deserializeDocumentStreamKeySummary(v **types.StreamKeySummary if !ok { return fmt.Errorf("expected StreamKeyArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "channelArn": @@ -4386,7 +4398,7 @@ func awsRestjson1_deserializeDocumentStreamKeySummary(v **types.StreamKeySummary if !ok { return fmt.Errorf("expected ChannelArn to be of type string, got %T instead", value) } - sv.ChannelArn = &jtv + sv.ChannelArn = ptr.String(jtv) } case "tags": @@ -4403,7 +4415,7 @@ func awsRestjson1_deserializeDocumentStreamKeySummary(v **types.StreamKeySummary return nil } -func awsRestjson1_deserializeDocumentStreamList(v *[]*types.StreamSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentStreamList(v *[]types.StreamSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4416,18 +4428,20 @@ func awsRestjson1_deserializeDocumentStreamList(v *[]*types.StreamSummary, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StreamSummary + var cv []types.StreamSummary if *v == nil { - cv = []*types.StreamSummary{} + cv = []types.StreamSummary{} } else { cv = *v } for _, value := range shape { - var col *types.StreamSummary - if err := awsRestjson1_deserializeDocumentStreamSummary(&col, value); err != nil { + var col types.StreamSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentStreamSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4463,7 +4477,7 @@ func awsRestjson1_deserializeDocumentStreamSummary(v **types.StreamSummary, valu if !ok { return fmt.Errorf("expected ChannelArn to be of type string, got %T instead", value) } - sv.ChannelArn = &jtv + sv.ChannelArn = ptr.String(jtv) } case "health": @@ -4507,7 +4521,7 @@ func awsRestjson1_deserializeDocumentStreamSummary(v **types.StreamSummary, valu if err != nil { return err } - sv.ViewerCount = &i64 + sv.ViewerCount = i64 } default: @@ -4547,7 +4561,7 @@ func awsRestjson1_deserializeDocumentStreamUnavailable(v **types.StreamUnavailab if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.ExceptionMessage = &jtv + sv.ExceptionMessage = ptr.String(jtv) } default: @@ -4559,7 +4573,7 @@ func awsRestjson1_deserializeDocumentStreamUnavailable(v **types.StreamUnavailab return nil } -func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4572,21 +4586,21 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -4623,7 +4637,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.ExceptionMessage = &jtv + sv.ExceptionMessage = ptr.String(jtv) } default: @@ -4663,7 +4677,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.ExceptionMessage = &jtv + sv.ExceptionMessage = ptr.String(jtv) } default: diff --git a/service/ivs/go.mod b/service/ivs/go.mod index f654d08b544..1961fe9542a 100644 --- a/service/ivs/go.mod +++ b/service/ivs/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/ivs go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/ivs/serializers.go b/service/ivs/serializers.go index 2912de6a7ac..f88920e5dca 100644 --- a/service/ivs/serializers.go +++ b/service/ivs/serializers.go @@ -228,9 +228,9 @@ func awsRestjson1_serializeOpDocumentCreateChannelInput(v *CreateChannelInput, v object := value.Object() defer object.Close() - if v.Authorized != nil { + if v.Authorized { ok := object.Key("authorized") - ok.Boolean(*v.Authorized) + ok.Boolean(v.Authorized) } if len(v.LatencyMode) > 0 { @@ -1004,9 +1004,9 @@ func awsRestjson1_serializeOpDocumentListChannelsInput(v *ListChannelsInput, val ok.String(*v.FilterByName) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1082,9 +1082,9 @@ func awsRestjson1_serializeOpDocumentListPlaybackKeyPairsInput(v *ListPlaybackKe object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1165,9 +1165,9 @@ func awsRestjson1_serializeOpDocumentListStreamKeysInput(v *ListStreamKeysInput, ok.String(*v.ChannelArn) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1243,9 +1243,9 @@ func awsRestjson1_serializeOpDocumentListStreamsInput(v *ListStreamsInput, value object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1318,13 +1318,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1337,9 +1334,9 @@ func awsRestjson1_serializeOpDocumentListTagsForResourceInput(v *ListTagsForReso object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1563,13 +1560,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1643,13 +1637,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1657,10 +1648,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1737,9 +1725,9 @@ func awsRestjson1_serializeOpDocumentUpdateChannelInput(v *UpdateChannelInput, v ok.String(*v.Arn) } - if v.Authorized != nil { + if v.Authorized { ok := object.Key("authorized") - ok.Boolean(*v.Authorized) + ok.Boolean(v.Authorized) } if len(v.LatencyMode) > 0 { @@ -1760,47 +1748,35 @@ func awsRestjson1_serializeOpDocumentUpdateChannelInput(v *UpdateChannelInput, v return nil } -func awsRestjson1_serializeDocumentChannelArnList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentChannelArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentStreamKeyArnList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStreamKeyArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/ivs/types/types.go b/service/ivs/types/types.go index 86837f44424..bb5d14edf49 100644 --- a/service/ivs/types/types.go +++ b/service/ivs/types/types.go @@ -26,7 +26,7 @@ type Channel struct { Arn *string // Whether the channel is authorized. - Authorized *bool + Authorized bool // Channel ingest endpoint, part of the definition of an ingest server, used when // you set up streaming software. @@ -42,7 +42,7 @@ type Channel struct { PlaybackUrl *string // Array of 1-50 maps, each of the form string:string (key:value). - Tags map[string]*string + Tags map[string]string // Channel type, which determines the allowable resolution and bitrate. If you // exceed the allowable resolution or bitrate, the stream probably will disconnect @@ -69,7 +69,7 @@ type ChannelSummary struct { Arn *string // Whether the channel is authorized. - Authorized *bool + Authorized bool // Channel latency mode. Default: LOW. LatencyMode ChannelLatencyMode @@ -78,7 +78,7 @@ type ChannelSummary struct { Name *string // Array of 1-50 maps, each of the form string:string (key:value). - Tags map[string]*string + Tags map[string]string } // A key pair used to sign and validate a playback authorization token. @@ -94,7 +94,7 @@ type PlaybackKeyPair struct { Name *string // Array of 1-50 maps, each of the form string:string (key:value). - Tags map[string]*string + Tags map[string]string } // Summary information about a playback key pair. @@ -107,7 +107,7 @@ type PlaybackKeyPairSummary struct { Name *string // Array of 1-50 maps, each of the form string:string (key:value) - Tags map[string]*string + Tags map[string]string } // Specifies a live video stream that has been ingested and distributed. @@ -130,7 +130,7 @@ type Stream struct { State StreamState // Number of current viewers of the stream. - ViewerCount *int64 + ViewerCount int64 } // Object specifying a stream key. @@ -143,7 +143,7 @@ type StreamKey struct { ChannelArn *string // Array of 1-50 maps, each of the form string:string (key:value). - Tags map[string]*string + Tags map[string]string // Stream-key value. Value *string @@ -159,7 +159,7 @@ type StreamKeySummary struct { ChannelArn *string // Array of 1-50 maps, each of the form string:string (key:value). - Tags map[string]*string + Tags map[string]string } // Summary information about a stream. @@ -178,5 +178,5 @@ type StreamSummary struct { State StreamState // Number of current viewers of the stream. - ViewerCount *int64 + ViewerCount int64 } diff --git a/service/kafka/api_op_BatchAssociateScramSecret.go b/service/kafka/api_op_BatchAssociateScramSecret.go index 429f4d7d410..188f4b4a49b 100644 --- a/service/kafka/api_op_BatchAssociateScramSecret.go +++ b/service/kafka/api_op_BatchAssociateScramSecret.go @@ -38,7 +38,7 @@ type BatchAssociateScramSecretInput struct { // List of AWS Secrets Manager secret ARNs. // // This member is required. - SecretArnList []*string + SecretArnList []string } type BatchAssociateScramSecretOutput struct { @@ -47,7 +47,7 @@ type BatchAssociateScramSecretOutput struct { ClusterArn *string // List of errors when associating secrets to cluster. - UnprocessedScramSecrets []*types.UnprocessedScramSecret + UnprocessedScramSecrets []types.UnprocessedScramSecret // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kafka/api_op_BatchDisassociateScramSecret.go b/service/kafka/api_op_BatchDisassociateScramSecret.go index 7bf57130dd1..6c6427582bb 100644 --- a/service/kafka/api_op_BatchDisassociateScramSecret.go +++ b/service/kafka/api_op_BatchDisassociateScramSecret.go @@ -38,7 +38,7 @@ type BatchDisassociateScramSecretInput struct { // List of AWS Secrets Manager secret ARNs. // // This member is required. - SecretArnList []*string + SecretArnList []string } type BatchDisassociateScramSecretOutput struct { @@ -47,7 +47,7 @@ type BatchDisassociateScramSecretOutput struct { ClusterArn *string // List of errors when disassociating secrets to cluster. - UnprocessedScramSecrets []*types.UnprocessedScramSecret + UnprocessedScramSecrets []types.UnprocessedScramSecret // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kafka/api_op_CreateCluster.go b/service/kafka/api_op_CreateCluster.go index e7af1c9ca81..331352bb0e0 100644 --- a/service/kafka/api_op_CreateCluster.go +++ b/service/kafka/api_op_CreateCluster.go @@ -47,7 +47,7 @@ type CreateClusterInput struct { // The number of broker nodes in the cluster. // // This member is required. - NumberOfBrokerNodes *int32 + NumberOfBrokerNodes int32 // Includes all client authentication related information. ClientAuthentication *types.ClientAuthentication @@ -69,7 +69,7 @@ type CreateClusterInput struct { OpenMonitoring *types.OpenMonitoringInfo // Create tags when creating the cluster. - Tags map[string]*string + Tags map[string]string } type CreateClusterOutput struct { diff --git a/service/kafka/api_op_CreateConfiguration.go b/service/kafka/api_op_CreateConfiguration.go index ad615d86542..5d70f542c4b 100644 --- a/service/kafka/api_op_CreateConfiguration.go +++ b/service/kafka/api_op_CreateConfiguration.go @@ -47,7 +47,7 @@ type CreateConfigurationInput struct { Description *string // The versions of Apache Kafka with which you can use this MSK configuration. - KafkaVersions []*string + KafkaVersions []string } type CreateConfigurationOutput struct { diff --git a/service/kafka/api_op_DescribeConfiguration.go b/service/kafka/api_op_DescribeConfiguration.go index c863aae756e..f051a07a5e3 100644 --- a/service/kafka/api_op_DescribeConfiguration.go +++ b/service/kafka/api_op_DescribeConfiguration.go @@ -49,7 +49,7 @@ type DescribeConfigurationOutput struct { Description *string // The versions of Apache Kafka with which you can use this MSK configuration. - KafkaVersions []*string + KafkaVersions []string // Latest revision of the configuration. LatestRevision *types.ConfigurationRevision diff --git a/service/kafka/api_op_DescribeConfigurationRevision.go b/service/kafka/api_op_DescribeConfigurationRevision.go index 7b290e81bb0..382fc39bb26 100644 --- a/service/kafka/api_op_DescribeConfigurationRevision.go +++ b/service/kafka/api_op_DescribeConfigurationRevision.go @@ -38,7 +38,7 @@ type DescribeConfigurationRevisionInput struct { // A string that uniquely identifies a revision of an MSK configuration. // // This member is required. - Revision *int64 + Revision int64 } type DescribeConfigurationRevisionOutput struct { @@ -53,7 +53,7 @@ type DescribeConfigurationRevisionOutput struct { Description *string // The revision number. - Revision *int64 + Revision int64 // Contents of the server.properties file. When using the API, you must ensure that // the contents of the file are base64 encoded. When using the AWS Management diff --git a/service/kafka/api_op_GetCompatibleKafkaVersions.go b/service/kafka/api_op_GetCompatibleKafkaVersions.go index 5661caf57aa..835e08cb99e 100644 --- a/service/kafka/api_op_GetCompatibleKafkaVersions.go +++ b/service/kafka/api_op_GetCompatibleKafkaVersions.go @@ -36,7 +36,7 @@ type GetCompatibleKafkaVersionsInput struct { type GetCompatibleKafkaVersionsOutput struct { // A list of CompatibleKafkaVersion objects. - CompatibleKafkaVersions []*types.CompatibleKafkaVersion + CompatibleKafkaVersions []types.CompatibleKafkaVersion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kafka/api_op_ListClusterOperations.go b/service/kafka/api_op_ListClusterOperations.go index 5caf98ad98f..6a24dd62640 100644 --- a/service/kafka/api_op_ListClusterOperations.go +++ b/service/kafka/api_op_ListClusterOperations.go @@ -37,7 +37,7 @@ type ListClusterOperationsInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults *int32 + MaxResults int32 // The paginated results marker. When the result of the operation is truncated, the // call returns NextToken in the response. To get the next batch, provide this @@ -48,7 +48,7 @@ type ListClusterOperationsInput struct { type ListClusterOperationsOutput struct { // An array of cluster operation information objects. - ClusterOperationInfoList []*types.ClusterOperationInfo + ClusterOperationInfoList []types.ClusterOperationInfo // If the response of ListClusterOperations is truncated, it returns a NextToken in // the response. This Nexttoken should be sent in the subsequent request to diff --git a/service/kafka/api_op_ListClusters.go b/service/kafka/api_op_ListClusters.go index 7288a4394ab..b7a2519d312 100644 --- a/service/kafka/api_op_ListClusters.go +++ b/service/kafka/api_op_ListClusters.go @@ -35,7 +35,7 @@ type ListClustersInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults *int32 + MaxResults int32 // The paginated results marker. When the result of the operation is truncated, the // call returns NextToken in the response. To get the next batch, provide this @@ -46,7 +46,7 @@ type ListClustersInput struct { type ListClustersOutput struct { // Information on each of the MSK clusters in the response. - ClusterInfoList []*types.ClusterInfo + ClusterInfoList []types.ClusterInfo // The paginated results marker. When the result of a ListClusters operation is // truncated, the call returns NextToken in the response. To get another batch of diff --git a/service/kafka/api_op_ListConfigurationRevisions.go b/service/kafka/api_op_ListConfigurationRevisions.go index 2420e2c5c6e..db1219b3ba5 100644 --- a/service/kafka/api_op_ListConfigurationRevisions.go +++ b/service/kafka/api_op_ListConfigurationRevisions.go @@ -37,7 +37,7 @@ type ListConfigurationRevisionsInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults *int32 + MaxResults int32 // The paginated results marker. When the result of the operation is truncated, the // call returns NextToken in the response. To get the next batch, provide this @@ -51,7 +51,7 @@ type ListConfigurationRevisionsOutput struct { NextToken *string // List of ConfigurationRevision objects. - Revisions []*types.ConfigurationRevision + Revisions []types.ConfigurationRevision // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kafka/api_op_ListConfigurations.go b/service/kafka/api_op_ListConfigurations.go index 6064e13f221..fe416ff7453 100644 --- a/service/kafka/api_op_ListConfigurations.go +++ b/service/kafka/api_op_ListConfigurations.go @@ -31,7 +31,7 @@ type ListConfigurationsInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults *int32 + MaxResults int32 // The paginated results marker. When the result of the operation is truncated, the // call returns NextToken in the response. To get the next batch, provide this @@ -42,7 +42,7 @@ type ListConfigurationsInput struct { type ListConfigurationsOutput struct { // An array of MSK configurations. - Configurations []*types.Configuration + Configurations []types.Configuration // The paginated results marker. When the result of a ListConfigurations operation // is truncated, the call returns NextToken in the response. To get another batch diff --git a/service/kafka/api_op_ListKafkaVersions.go b/service/kafka/api_op_ListKafkaVersions.go index 3141de03b4f..2453efc1ef9 100644 --- a/service/kafka/api_op_ListKafkaVersions.go +++ b/service/kafka/api_op_ListKafkaVersions.go @@ -31,7 +31,7 @@ type ListKafkaVersionsInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults *int32 + MaxResults int32 // The paginated results marker. When the result of the operation is truncated, the // call returns NextToken in the response. To get the next batch, provide this @@ -40,7 +40,7 @@ type ListKafkaVersionsInput struct { } type ListKafkaVersionsOutput struct { - KafkaVersions []*types.KafkaVersion + KafkaVersions []types.KafkaVersion NextToken *string diff --git a/service/kafka/api_op_ListNodes.go b/service/kafka/api_op_ListNodes.go index 516c7130f31..b016c90607a 100644 --- a/service/kafka/api_op_ListNodes.go +++ b/service/kafka/api_op_ListNodes.go @@ -36,7 +36,7 @@ type ListNodesInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults *int32 + MaxResults int32 // The paginated results marker. When the result of the operation is truncated, the // call returns NextToken in the response. To get the next batch, provide this @@ -52,7 +52,7 @@ type ListNodesOutput struct { NextToken *string // List containing a NodeInfo object. - NodeInfoList []*types.NodeInfo + NodeInfoList []types.NodeInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kafka/api_op_ListScramSecrets.go b/service/kafka/api_op_ListScramSecrets.go index 396cdd5b3c4..fec3c2a73b9 100644 --- a/service/kafka/api_op_ListScramSecrets.go +++ b/service/kafka/api_op_ListScramSecrets.go @@ -34,7 +34,7 @@ type ListScramSecretsInput struct { ClusterArn *string // The maxResults of the query. - MaxResults *int32 + MaxResults int32 // The nextToken of the query. NextToken *string @@ -46,7 +46,7 @@ type ListScramSecretsOutput struct { NextToken *string // The list of scram secrets associated with the cluster. - SecretArnList []*string + SecretArnList []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kafka/api_op_ListTagsForResource.go b/service/kafka/api_op_ListTagsForResource.go index 42bdf82af0f..e7b4a4931c6 100644 --- a/service/kafka/api_op_ListTagsForResource.go +++ b/service/kafka/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The key-value pair for the resource tag. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kafka/api_op_RebootBroker.go b/service/kafka/api_op_RebootBroker.go index 1d048de9b38..767b1f7da5e 100644 --- a/service/kafka/api_op_RebootBroker.go +++ b/service/kafka/api_op_RebootBroker.go @@ -33,7 +33,7 @@ type RebootBrokerInput struct { // rebooting one broker at a time. // // This member is required. - BrokerIds []*string + BrokerIds []string // The Amazon Resource Name (ARN) of the cluster to be updated. // diff --git a/service/kafka/api_op_TagResource.go b/service/kafka/api_op_TagResource.go index e8f8778374e..faf14234d13 100644 --- a/service/kafka/api_op_TagResource.go +++ b/service/kafka/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // The key-value pair for the resource tag. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/kafka/api_op_UntagResource.go b/service/kafka/api_op_UntagResource.go index 3f3734c9095..d71e4036ae0 100644 --- a/service/kafka/api_op_UntagResource.go +++ b/service/kafka/api_op_UntagResource.go @@ -52,7 +52,7 @@ type UntagResourceInput struct { // digits, white space, and the following special characters: _ . / = + - @. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/kafka/api_op_UpdateBrokerCount.go b/service/kafka/api_op_UpdateBrokerCount.go index 4b7baeabb03..20b418055bb 100644 --- a/service/kafka/api_op_UpdateBrokerCount.go +++ b/service/kafka/api_op_UpdateBrokerCount.go @@ -43,7 +43,7 @@ type UpdateBrokerCountInput struct { // operation completes successfully. // // This member is required. - TargetNumberOfBrokerNodes *int32 + TargetNumberOfBrokerNodes int32 } type UpdateBrokerCountOutput struct { diff --git a/service/kafka/api_op_UpdateBrokerStorage.go b/service/kafka/api_op_UpdateBrokerStorage.go index 280ec5e7c61..ba3582d8cbd 100644 --- a/service/kafka/api_op_UpdateBrokerStorage.go +++ b/service/kafka/api_op_UpdateBrokerStorage.go @@ -44,7 +44,7 @@ type UpdateBrokerStorageInput struct { // to. // // This member is required. - TargetBrokerEBSVolumeInfo []*types.BrokerEBSVolumeInfo + TargetBrokerEBSVolumeInfo []types.BrokerEBSVolumeInfo } type UpdateBrokerStorageOutput struct { diff --git a/service/kafka/deserializers.go b/service/kafka/deserializers.go index db2a306c3d3..cebc6c2f25a 100644 --- a/service/kafka/deserializers.go +++ b/service/kafka/deserializers.go @@ -177,7 +177,7 @@ func awsRestjson1_deserializeOpDocumentBatchAssociateScramSecretOutput(v **Batch if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "unprocessedScramSecrets": @@ -351,7 +351,7 @@ func awsRestjson1_deserializeOpDocumentBatchDisassociateScramSecretOutput(v **Ba if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "unprocessedScramSecrets": @@ -525,7 +525,7 @@ func awsRestjson1_deserializeOpDocumentCreateClusterOutput(v **CreateClusterOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "clusterName": @@ -534,7 +534,7 @@ func awsRestjson1_deserializeOpDocumentCreateClusterOutput(v **CreateClusterOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "state": @@ -712,7 +712,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationOutput(v **CreateConfi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationTime": @@ -725,7 +725,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationOutput(v **CreateConfi if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case "latestRevision": @@ -739,7 +739,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationOutput(v **CreateConfi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "state": @@ -908,7 +908,7 @@ func awsRestjson1_deserializeOpDocumentDeleteClusterOutput(v **DeleteClusterOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "state": @@ -1077,7 +1077,7 @@ func awsRestjson1_deserializeOpDocumentDeleteConfigurationOutput(v **DeleteConfi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "state": @@ -1570,7 +1570,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationTime": @@ -1583,7 +1583,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeC if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case "description": @@ -1592,7 +1592,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "kafkaVersions": @@ -1611,7 +1611,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "state": @@ -1786,7 +1786,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationRevisionOutput(v **D if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationTime": @@ -1799,7 +1799,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationRevisionOutput(v **D if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case "description": @@ -1808,7 +1808,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationRevisionOutput(v **D if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "revision": @@ -1821,7 +1821,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationRevisionOutput(v **D if err != nil { return err } - sv.Revision = &i64 + sv.Revision = i64 } case "serverProperties": @@ -1997,7 +1997,7 @@ func awsRestjson1_deserializeOpDocumentGetBootstrapBrokersOutput(v **GetBootstra if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BootstrapBrokerString = &jtv + sv.BootstrapBrokerString = ptr.String(jtv) } case "bootstrapBrokerStringSaslScram": @@ -2006,7 +2006,7 @@ func awsRestjson1_deserializeOpDocumentGetBootstrapBrokersOutput(v **GetBootstra if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BootstrapBrokerStringSaslScram = &jtv + sv.BootstrapBrokerStringSaslScram = ptr.String(jtv) } case "bootstrapBrokerStringTls": @@ -2015,7 +2015,7 @@ func awsRestjson1_deserializeOpDocumentGetBootstrapBrokersOutput(v **GetBootstra if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BootstrapBrokerStringTls = &jtv + sv.BootstrapBrokerStringTls = ptr.String(jtv) } default: @@ -2345,7 +2345,7 @@ func awsRestjson1_deserializeOpDocumentListClusterOperationsOutput(v **ListClust if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2510,7 +2510,7 @@ func awsRestjson1_deserializeOpDocumentListClustersOutput(v **ListClustersOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2676,7 +2676,7 @@ func awsRestjson1_deserializeOpDocumentListConfigurationRevisionsOutput(v **List if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "revisions": @@ -2849,7 +2849,7 @@ func awsRestjson1_deserializeOpDocumentListConfigurationsOutput(v **ListConfigur if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3014,7 +3014,7 @@ func awsRestjson1_deserializeOpDocumentListKafkaVersionsOutput(v **ListKafkaVers if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3174,7 +3174,7 @@ func awsRestjson1_deserializeOpDocumentListNodesOutput(v **ListNodesOutput, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "nodeInfoList": @@ -3348,7 +3348,7 @@ func awsRestjson1_deserializeOpDocumentListScramSecretsOutput(v **ListScramSecre if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "secretArnList": @@ -3675,7 +3675,7 @@ func awsRestjson1_deserializeOpDocumentRebootBrokerOutput(v **RebootBrokerOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "clusterOperationArn": @@ -3684,7 +3684,7 @@ func awsRestjson1_deserializeOpDocumentRebootBrokerOutput(v **RebootBrokerOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterOperationArn = &jtv + sv.ClusterOperationArn = ptr.String(jtv) } default: @@ -4025,7 +4025,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBrokerCountOutput(v **UpdateBrokerC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "clusterOperationArn": @@ -4034,7 +4034,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBrokerCountOutput(v **UpdateBrokerC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterOperationArn = &jtv + sv.ClusterOperationArn = ptr.String(jtv) } default: @@ -4197,7 +4197,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBrokerStorageOutput(v **UpdateBroke if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "clusterOperationArn": @@ -4206,7 +4206,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBrokerStorageOutput(v **UpdateBroke if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterOperationArn = &jtv + sv.ClusterOperationArn = ptr.String(jtv) } default: @@ -4372,7 +4372,7 @@ func awsRestjson1_deserializeOpDocumentUpdateClusterConfigurationOutput(v **Upda if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "clusterOperationArn": @@ -4381,7 +4381,7 @@ func awsRestjson1_deserializeOpDocumentUpdateClusterConfigurationOutput(v **Upda if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterOperationArn = &jtv + sv.ClusterOperationArn = ptr.String(jtv) } default: @@ -4550,7 +4550,7 @@ func awsRestjson1_deserializeOpDocumentUpdateClusterKafkaVersionOutput(v **Updat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "clusterOperationArn": @@ -4559,7 +4559,7 @@ func awsRestjson1_deserializeOpDocumentUpdateClusterKafkaVersionOutput(v **Updat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterOperationArn = &jtv + sv.ClusterOperationArn = ptr.String(jtv) } default: @@ -4725,7 +4725,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigurationOutput(v **UpdateConfi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "latestRevision": @@ -4893,7 +4893,7 @@ func awsRestjson1_deserializeOpDocumentUpdateMonitoringOutput(v **UpdateMonitori if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "clusterOperationArn": @@ -4902,7 +4902,7 @@ func awsRestjson1_deserializeOpDocumentUpdateMonitoringOutput(v **UpdateMonitori if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterOperationArn = &jtv + sv.ClusterOperationArn = ptr.String(jtv) } default: @@ -5202,7 +5202,7 @@ func awsRestjson1_deserializeErrorUnauthorizedException(response *smithyhttp.Res return output } -func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5215,21 +5215,21 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -5238,7 +5238,7 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return nil } -func awsRestjson1_deserializeDocument__listOfBrokerEBSVolumeInfo(v *[]*types.BrokerEBSVolumeInfo, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfBrokerEBSVolumeInfo(v *[]types.BrokerEBSVolumeInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5251,18 +5251,20 @@ func awsRestjson1_deserializeDocument__listOfBrokerEBSVolumeInfo(v *[]*types.Bro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BrokerEBSVolumeInfo + var cv []types.BrokerEBSVolumeInfo if *v == nil { - cv = []*types.BrokerEBSVolumeInfo{} + cv = []types.BrokerEBSVolumeInfo{} } else { cv = *v } for _, value := range shape { - var col *types.BrokerEBSVolumeInfo - if err := awsRestjson1_deserializeDocumentBrokerEBSVolumeInfo(&col, value); err != nil { + var col types.BrokerEBSVolumeInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentBrokerEBSVolumeInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5270,7 +5272,7 @@ func awsRestjson1_deserializeDocument__listOfBrokerEBSVolumeInfo(v *[]*types.Bro return nil } -func awsRestjson1_deserializeDocument__listOfClusterInfo(v *[]*types.ClusterInfo, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfClusterInfo(v *[]types.ClusterInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5283,18 +5285,20 @@ func awsRestjson1_deserializeDocument__listOfClusterInfo(v *[]*types.ClusterInfo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ClusterInfo + var cv []types.ClusterInfo if *v == nil { - cv = []*types.ClusterInfo{} + cv = []types.ClusterInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ClusterInfo - if err := awsRestjson1_deserializeDocumentClusterInfo(&col, value); err != nil { + var col types.ClusterInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentClusterInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5302,7 +5306,7 @@ func awsRestjson1_deserializeDocument__listOfClusterInfo(v *[]*types.ClusterInfo return nil } -func awsRestjson1_deserializeDocument__listOfClusterOperationInfo(v *[]*types.ClusterOperationInfo, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfClusterOperationInfo(v *[]types.ClusterOperationInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5315,18 +5319,20 @@ func awsRestjson1_deserializeDocument__listOfClusterOperationInfo(v *[]*types.Cl return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ClusterOperationInfo + var cv []types.ClusterOperationInfo if *v == nil { - cv = []*types.ClusterOperationInfo{} + cv = []types.ClusterOperationInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ClusterOperationInfo - if err := awsRestjson1_deserializeDocumentClusterOperationInfo(&col, value); err != nil { + var col types.ClusterOperationInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentClusterOperationInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5334,7 +5340,7 @@ func awsRestjson1_deserializeDocument__listOfClusterOperationInfo(v *[]*types.Cl return nil } -func awsRestjson1_deserializeDocument__listOfClusterOperationStep(v *[]*types.ClusterOperationStep, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfClusterOperationStep(v *[]types.ClusterOperationStep, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5347,18 +5353,20 @@ func awsRestjson1_deserializeDocument__listOfClusterOperationStep(v *[]*types.Cl return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ClusterOperationStep + var cv []types.ClusterOperationStep if *v == nil { - cv = []*types.ClusterOperationStep{} + cv = []types.ClusterOperationStep{} } else { cv = *v } for _, value := range shape { - var col *types.ClusterOperationStep - if err := awsRestjson1_deserializeDocumentClusterOperationStep(&col, value); err != nil { + var col types.ClusterOperationStep + destAddr := &col + if err := awsRestjson1_deserializeDocumentClusterOperationStep(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5366,7 +5374,7 @@ func awsRestjson1_deserializeDocument__listOfClusterOperationStep(v *[]*types.Cl return nil } -func awsRestjson1_deserializeDocument__listOfCompatibleKafkaVersion(v *[]*types.CompatibleKafkaVersion, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfCompatibleKafkaVersion(v *[]types.CompatibleKafkaVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5379,18 +5387,20 @@ func awsRestjson1_deserializeDocument__listOfCompatibleKafkaVersion(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CompatibleKafkaVersion + var cv []types.CompatibleKafkaVersion if *v == nil { - cv = []*types.CompatibleKafkaVersion{} + cv = []types.CompatibleKafkaVersion{} } else { cv = *v } for _, value := range shape { - var col *types.CompatibleKafkaVersion - if err := awsRestjson1_deserializeDocumentCompatibleKafkaVersion(&col, value); err != nil { + var col types.CompatibleKafkaVersion + destAddr := &col + if err := awsRestjson1_deserializeDocumentCompatibleKafkaVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5398,7 +5408,7 @@ func awsRestjson1_deserializeDocument__listOfCompatibleKafkaVersion(v *[]*types. return nil } -func awsRestjson1_deserializeDocument__listOfConfiguration(v *[]*types.Configuration, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfConfiguration(v *[]types.Configuration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5411,18 +5421,20 @@ func awsRestjson1_deserializeDocument__listOfConfiguration(v *[]*types.Configura return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Configuration + var cv []types.Configuration if *v == nil { - cv = []*types.Configuration{} + cv = []types.Configuration{} } else { cv = *v } for _, value := range shape { - var col *types.Configuration - if err := awsRestjson1_deserializeDocumentConfiguration(&col, value); err != nil { + var col types.Configuration + destAddr := &col + if err := awsRestjson1_deserializeDocumentConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5430,7 +5442,7 @@ func awsRestjson1_deserializeDocument__listOfConfiguration(v *[]*types.Configura return nil } -func awsRestjson1_deserializeDocument__listOfConfigurationRevision(v *[]*types.ConfigurationRevision, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfConfigurationRevision(v *[]types.ConfigurationRevision, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5443,18 +5455,20 @@ func awsRestjson1_deserializeDocument__listOfConfigurationRevision(v *[]*types.C return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfigurationRevision + var cv []types.ConfigurationRevision if *v == nil { - cv = []*types.ConfigurationRevision{} + cv = []types.ConfigurationRevision{} } else { cv = *v } for _, value := range shape { - var col *types.ConfigurationRevision - if err := awsRestjson1_deserializeDocumentConfigurationRevision(&col, value); err != nil { + var col types.ConfigurationRevision + destAddr := &col + if err := awsRestjson1_deserializeDocumentConfigurationRevision(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5462,7 +5476,7 @@ func awsRestjson1_deserializeDocument__listOfConfigurationRevision(v *[]*types.C return nil } -func awsRestjson1_deserializeDocument__listOfKafkaVersion(v *[]*types.KafkaVersion, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfKafkaVersion(v *[]types.KafkaVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5475,18 +5489,20 @@ func awsRestjson1_deserializeDocument__listOfKafkaVersion(v *[]*types.KafkaVersi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KafkaVersion + var cv []types.KafkaVersion if *v == nil { - cv = []*types.KafkaVersion{} + cv = []types.KafkaVersion{} } else { cv = *v } for _, value := range shape { - var col *types.KafkaVersion - if err := awsRestjson1_deserializeDocumentKafkaVersion(&col, value); err != nil { + var col types.KafkaVersion + destAddr := &col + if err := awsRestjson1_deserializeDocumentKafkaVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5494,7 +5510,7 @@ func awsRestjson1_deserializeDocument__listOfKafkaVersion(v *[]*types.KafkaVersi return nil } -func awsRestjson1_deserializeDocument__listOfNodeInfo(v *[]*types.NodeInfo, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfNodeInfo(v *[]types.NodeInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5507,18 +5523,20 @@ func awsRestjson1_deserializeDocument__listOfNodeInfo(v *[]*types.NodeInfo, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NodeInfo + var cv []types.NodeInfo if *v == nil { - cv = []*types.NodeInfo{} + cv = []types.NodeInfo{} } else { cv = *v } for _, value := range shape { - var col *types.NodeInfo - if err := awsRestjson1_deserializeDocumentNodeInfo(&col, value); err != nil { + var col types.NodeInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentNodeInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5526,7 +5544,7 @@ func awsRestjson1_deserializeDocument__listOfNodeInfo(v *[]*types.NodeInfo, valu return nil } -func awsRestjson1_deserializeDocument__listOfUnprocessedScramSecret(v *[]*types.UnprocessedScramSecret, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfUnprocessedScramSecret(v *[]types.UnprocessedScramSecret, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5539,18 +5557,20 @@ func awsRestjson1_deserializeDocument__listOfUnprocessedScramSecret(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UnprocessedScramSecret + var cv []types.UnprocessedScramSecret if *v == nil { - cv = []*types.UnprocessedScramSecret{} + cv = []types.UnprocessedScramSecret{} } else { cv = *v } for _, value := range shape { - var col *types.UnprocessedScramSecret - if err := awsRestjson1_deserializeDocumentUnprocessedScramSecret(&col, value); err != nil { + var col types.UnprocessedScramSecret + destAddr := &col + if err := awsRestjson1_deserializeDocumentUnprocessedScramSecret(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5558,7 +5578,7 @@ func awsRestjson1_deserializeDocument__listOfUnprocessedScramSecret(v *[]*types. return nil } -func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5571,21 +5591,21 @@ func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -5622,7 +5642,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InvalidParameter = &jtv + sv.InvalidParameter = ptr.String(jtv) } case "message": @@ -5631,7 +5651,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5671,7 +5691,7 @@ func awsRestjson1_deserializeDocumentBrokerEBSVolumeInfo(v **types.BrokerEBSVolu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KafkaBrokerNodeId = &jtv + sv.KafkaBrokerNodeId = ptr.String(jtv) } case "volumeSizeGB": @@ -5684,7 +5704,7 @@ func awsRestjson1_deserializeDocumentBrokerEBSVolumeInfo(v **types.BrokerEBSVolu if err != nil { return err } - sv.VolumeSizeGB = ptr.Int32(int32(i64)) + sv.VolumeSizeGB = int32(i64) } default: @@ -5784,7 +5804,7 @@ func awsRestjson1_deserializeDocumentBrokerNodeGroupInfo(v **types.BrokerNodeGro if !ok { return fmt.Errorf("expected __stringMin5Max32 to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "securityGroups": @@ -5834,7 +5854,7 @@ func awsRestjson1_deserializeDocumentBrokerNodeInfo(v **types.BrokerNodeInfo, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AttachedENIId = &jtv + sv.AttachedENIId = ptr.String(jtv) } case "brokerId": @@ -5847,7 +5867,7 @@ func awsRestjson1_deserializeDocumentBrokerNodeInfo(v **types.BrokerNodeInfo, va if err != nil { return err } - sv.BrokerId = &f64 + sv.BrokerId = f64 } case "clientSubnet": @@ -5856,7 +5876,7 @@ func awsRestjson1_deserializeDocumentBrokerNodeInfo(v **types.BrokerNodeInfo, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClientSubnet = &jtv + sv.ClientSubnet = ptr.String(jtv) } case "clientVpcIpAddress": @@ -5865,7 +5885,7 @@ func awsRestjson1_deserializeDocumentBrokerNodeInfo(v **types.BrokerNodeInfo, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClientVpcIpAddress = &jtv + sv.ClientVpcIpAddress = ptr.String(jtv) } case "currentBrokerSoftwareInfo": @@ -5915,7 +5935,7 @@ func awsRestjson1_deserializeDocumentBrokerSoftwareInfo(v **types.BrokerSoftware if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ConfigurationArn = &jtv + sv.ConfigurationArn = ptr.String(jtv) } case "configurationRevision": @@ -5928,7 +5948,7 @@ func awsRestjson1_deserializeDocumentBrokerSoftwareInfo(v **types.BrokerSoftware if err != nil { return err } - sv.ConfigurationRevision = &i64 + sv.ConfigurationRevision = i64 } case "kafkaVersion": @@ -5937,7 +5957,7 @@ func awsRestjson1_deserializeDocumentBrokerSoftwareInfo(v **types.BrokerSoftware if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KafkaVersion = &jtv + sv.KafkaVersion = ptr.String(jtv) } default: @@ -6018,7 +6038,7 @@ func awsRestjson1_deserializeDocumentCloudWatchLogs(v **types.CloudWatchLogs, va if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "logGroup": @@ -6027,7 +6047,7 @@ func awsRestjson1_deserializeDocumentCloudWatchLogs(v **types.CloudWatchLogs, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LogGroup = &jtv + sv.LogGroup = ptr.String(jtv) } default: @@ -6067,7 +6087,7 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ActiveOperationArn = &jtv + sv.ActiveOperationArn = ptr.String(jtv) } case "brokerNodeGroupInfo": @@ -6086,7 +6106,7 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "clusterName": @@ -6095,7 +6115,7 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterName = &jtv + sv.ClusterName = ptr.String(jtv) } case "creationTime": @@ -6108,7 +6128,7 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case "currentBrokerSoftwareInfo": @@ -6122,7 +6142,7 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CurrentVersion = &jtv + sv.CurrentVersion = ptr.String(jtv) } case "encryptionInfo": @@ -6154,7 +6174,7 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in if err != nil { return err } - sv.NumberOfBrokerNodes = ptr.Int32(int32(i64)) + sv.NumberOfBrokerNodes = int32(i64) } case "openMonitoring": @@ -6187,7 +6207,7 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ZookeeperConnectString = &jtv + sv.ZookeeperConnectString = ptr.String(jtv) } case "zookeeperConnectStringTls": @@ -6196,7 +6216,7 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ZookeeperConnectStringTls = &jtv + sv.ZookeeperConnectStringTls = ptr.String(jtv) } default: @@ -6236,7 +6256,7 @@ func awsRestjson1_deserializeDocumentClusterOperationInfo(v **types.ClusterOpera if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClientRequestId = &jtv + sv.ClientRequestId = ptr.String(jtv) } case "clusterArn": @@ -6245,7 +6265,7 @@ func awsRestjson1_deserializeDocumentClusterOperationInfo(v **types.ClusterOpera if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClusterArn = &jtv + sv.ClusterArn = ptr.String(jtv) } case "creationTime": @@ -6258,7 +6278,7 @@ func awsRestjson1_deserializeDocumentClusterOperationInfo(v **types.ClusterOpera if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case "endTime": @@ -6271,7 +6291,7 @@ func awsRestjson1_deserializeDocumentClusterOperationInfo(v **types.ClusterOpera if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case "errorInfo": @@ -6285,7 +6305,7 @@ func awsRestjson1_deserializeDocumentClusterOperationInfo(v **types.ClusterOpera if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OperationArn = &jtv + sv.OperationArn = ptr.String(jtv) } case "operationState": @@ -6294,7 +6314,7 @@ func awsRestjson1_deserializeDocumentClusterOperationInfo(v **types.ClusterOpera if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OperationState = &jtv + sv.OperationState = ptr.String(jtv) } case "operationSteps": @@ -6308,7 +6328,7 @@ func awsRestjson1_deserializeDocumentClusterOperationInfo(v **types.ClusterOpera if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OperationType = &jtv + sv.OperationType = ptr.String(jtv) } case "sourceClusterInfo": @@ -6363,7 +6383,7 @@ func awsRestjson1_deserializeDocumentClusterOperationStep(v **types.ClusterOpera if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StepName = &jtv + sv.StepName = ptr.String(jtv) } default: @@ -6403,7 +6423,7 @@ func awsRestjson1_deserializeDocumentClusterOperationStepInfo(v **types.ClusterO if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StepStatus = &jtv + sv.StepStatus = ptr.String(jtv) } default: @@ -6443,7 +6463,7 @@ func awsRestjson1_deserializeDocumentCompatibleKafkaVersion(v **types.Compatible if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceVersion = &jtv + sv.SourceVersion = ptr.String(jtv) } case "targetVersions": @@ -6488,7 +6508,7 @@ func awsRestjson1_deserializeDocumentConfiguration(v **types.Configuration, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationTime": @@ -6501,7 +6521,7 @@ func awsRestjson1_deserializeDocumentConfiguration(v **types.Configuration, valu if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case "description": @@ -6510,7 +6530,7 @@ func awsRestjson1_deserializeDocumentConfiguration(v **types.Configuration, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "kafkaVersions": @@ -6529,7 +6549,7 @@ func awsRestjson1_deserializeDocumentConfiguration(v **types.Configuration, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "state": @@ -6578,7 +6598,7 @@ func awsRestjson1_deserializeDocumentConfigurationInfo(v **types.ConfigurationIn if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "revision": @@ -6591,7 +6611,7 @@ func awsRestjson1_deserializeDocumentConfigurationInfo(v **types.ConfigurationIn if err != nil { return err } - sv.Revision = &i64 + sv.Revision = i64 } default: @@ -6635,7 +6655,7 @@ func awsRestjson1_deserializeDocumentConfigurationRevision(v **types.Configurati if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case "description": @@ -6644,7 +6664,7 @@ func awsRestjson1_deserializeDocumentConfigurationRevision(v **types.Configurati if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "revision": @@ -6657,7 +6677,7 @@ func awsRestjson1_deserializeDocumentConfigurationRevision(v **types.Configurati if err != nil { return err } - sv.Revision = &i64 + sv.Revision = i64 } default: @@ -6697,7 +6717,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InvalidParameter = &jtv + sv.InvalidParameter = ptr.String(jtv) } case "message": @@ -6706,7 +6726,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6750,7 +6770,7 @@ func awsRestjson1_deserializeDocumentEBSStorageInfo(v **types.EBSStorageInfo, va if err != nil { return err } - sv.VolumeSize = ptr.Int32(int32(i64)) + sv.VolumeSize = int32(i64) } default: @@ -6790,7 +6810,7 @@ func awsRestjson1_deserializeDocumentEncryptionAtRest(v **types.EncryptionAtRest if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DataVolumeKMSKeyId = &jtv + sv.DataVolumeKMSKeyId = ptr.String(jtv) } default: @@ -6880,7 +6900,7 @@ func awsRestjson1_deserializeDocumentEncryptionInTransit(v **types.EncryptionInT if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.InCluster = &jtv + sv.InCluster = jtv } default: @@ -6920,7 +6940,7 @@ func awsRestjson1_deserializeDocumentErrorInfo(v **types.ErrorInfo, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "errorString": @@ -6929,7 +6949,7 @@ func awsRestjson1_deserializeDocumentErrorInfo(v **types.ErrorInfo, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorString = &jtv + sv.ErrorString = ptr.String(jtv) } default: @@ -6969,7 +6989,7 @@ func awsRestjson1_deserializeDocumentFirehose(v **types.Firehose, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeliveryStream = &jtv + sv.DeliveryStream = ptr.String(jtv) } case "enabled": @@ -6978,7 +6998,7 @@ func awsRestjson1_deserializeDocumentFirehose(v **types.Firehose, value interfac if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } default: @@ -7018,7 +7038,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InvalidParameter = &jtv + sv.InvalidParameter = ptr.String(jtv) } case "message": @@ -7027,7 +7047,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7067,7 +7087,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InvalidParameter = &jtv + sv.InvalidParameter = ptr.String(jtv) } case "message": @@ -7076,7 +7096,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7116,7 +7136,7 @@ func awsRestjson1_deserializeDocumentJmxExporter(v **types.JmxExporter, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnabledInBroker = &jtv + sv.EnabledInBroker = jtv } default: @@ -7165,7 +7185,7 @@ func awsRestjson1_deserializeDocumentKafkaVersion(v **types.KafkaVersion, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -7260,7 +7280,7 @@ func awsRestjson1_deserializeDocumentMutableClusterInfo(v **types.MutableCluster if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KafkaVersion = &jtv + sv.KafkaVersion = ptr.String(jtv) } case "loggingInfo": @@ -7278,7 +7298,7 @@ func awsRestjson1_deserializeDocumentMutableClusterInfo(v **types.MutableCluster if err != nil { return err } - sv.NumberOfBrokerNodes = ptr.Int32(int32(i64)) + sv.NumberOfBrokerNodes = int32(i64) } case "openMonitoring": @@ -7323,7 +7343,7 @@ func awsRestjson1_deserializeDocumentNodeExporter(v **types.NodeExporter, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnabledInBroker = &jtv + sv.EnabledInBroker = jtv } default: @@ -7363,7 +7383,7 @@ func awsRestjson1_deserializeDocumentNodeInfo(v **types.NodeInfo, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AddedToClusterTime = &jtv + sv.AddedToClusterTime = ptr.String(jtv) } case "brokerNodeInfo": @@ -7377,7 +7397,7 @@ func awsRestjson1_deserializeDocumentNodeInfo(v **types.NodeInfo, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "nodeARN": @@ -7386,7 +7406,7 @@ func awsRestjson1_deserializeDocumentNodeInfo(v **types.NodeInfo, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NodeARN = &jtv + sv.NodeARN = ptr.String(jtv) } case "nodeType": @@ -7440,7 +7460,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InvalidParameter = &jtv + sv.InvalidParameter = ptr.String(jtv) } case "message": @@ -7449,7 +7469,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7566,7 +7586,7 @@ func awsRestjson1_deserializeDocumentS3(v **types.S3, value interface{}) error { if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "enabled": @@ -7575,7 +7595,7 @@ func awsRestjson1_deserializeDocumentS3(v **types.S3, value interface{}) error { if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "prefix": @@ -7584,7 +7604,7 @@ func awsRestjson1_deserializeDocumentS3(v **types.S3, value interface{}) error { if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } default: @@ -7660,7 +7680,7 @@ func awsRestjson1_deserializeDocumentScram(v **types.Scram, value interface{}) e if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } default: @@ -7700,7 +7720,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InvalidParameter = &jtv + sv.InvalidParameter = ptr.String(jtv) } case "message": @@ -7709,7 +7729,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7749,7 +7769,7 @@ func awsRestjson1_deserializeDocumentStateInfo(v **types.StateInfo, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "message": @@ -7758,7 +7778,7 @@ func awsRestjson1_deserializeDocumentStateInfo(v **types.StateInfo, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7870,7 +7890,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InvalidParameter = &jtv + sv.InvalidParameter = ptr.String(jtv) } case "message": @@ -7879,7 +7899,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7919,7 +7939,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InvalidParameter = &jtv + sv.InvalidParameter = ptr.String(jtv) } case "message": @@ -7928,7 +7948,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7968,7 +7988,7 @@ func awsRestjson1_deserializeDocumentUnprocessedScramSecret(v **types.Unprocesse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "errorMessage": @@ -7977,7 +7997,7 @@ func awsRestjson1_deserializeDocumentUnprocessedScramSecret(v **types.Unprocesse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "secretArn": @@ -7986,7 +8006,7 @@ func awsRestjson1_deserializeDocumentUnprocessedScramSecret(v **types.Unprocesse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SecretArn = &jtv + sv.SecretArn = ptr.String(jtv) } default: @@ -8026,7 +8046,7 @@ func awsRestjson1_deserializeDocumentZookeeperNodeInfo(v **types.ZookeeperNodeIn if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AttachedENIId = &jtv + sv.AttachedENIId = ptr.String(jtv) } case "clientVpcIpAddress": @@ -8035,7 +8055,7 @@ func awsRestjson1_deserializeDocumentZookeeperNodeInfo(v **types.ZookeeperNodeIn if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClientVpcIpAddress = &jtv + sv.ClientVpcIpAddress = ptr.String(jtv) } case "endpoints": @@ -8053,7 +8073,7 @@ func awsRestjson1_deserializeDocumentZookeeperNodeInfo(v **types.ZookeeperNodeIn if err != nil { return err } - sv.ZookeeperId = &f64 + sv.ZookeeperId = f64 } case "zookeeperVersion": @@ -8062,7 +8082,7 @@ func awsRestjson1_deserializeDocumentZookeeperNodeInfo(v **types.ZookeeperNodeIn if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ZookeeperVersion = &jtv + sv.ZookeeperVersion = ptr.String(jtv) } default: diff --git a/service/kafka/go.mod b/service/kafka/go.mod index c6a917899db..2fdde8d2824 100644 --- a/service/kafka/go.mod +++ b/service/kafka/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/kafka go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/kafka/serializers.go b/service/kafka/serializers.go index 89c050d131c..5f810537554 100644 --- a/service/kafka/serializers.go +++ b/service/kafka/serializers.go @@ -76,13 +76,10 @@ func awsRestjson1_serializeOpHttpBindingsBatchAssociateScramSecretInput(v *Batch return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } @@ -167,13 +164,10 @@ func awsRestjson1_serializeOpHttpBindingsBatchDisassociateScramSecretInput(v *Ba return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } @@ -311,9 +305,9 @@ func awsRestjson1_serializeOpDocumentCreateClusterInput(v *CreateClusterInput, v } } - if v.NumberOfBrokerNodes != nil { + if v.NumberOfBrokerNodes != 0 { ok := object.Key("numberOfBrokerNodes") - ok.Integer(*v.NumberOfBrokerNodes) + ok.Integer(v.NumberOfBrokerNodes) } if v.OpenMonitoring != nil { @@ -474,13 +468,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteClusterInput(v *DeleteClusterInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } @@ -544,13 +535,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteConfigurationInput(v *DeleteConfi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Arn == nil { + if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { - if len(*v.Arn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} - } if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } @@ -610,13 +598,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeClusterInput(v *DescribeCluster return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } @@ -676,13 +661,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeClusterOperationInput(v *Descri return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterOperationArn == nil { + if v.ClusterOperationArn == nil || len(*v.ClusterOperationArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterOperationArn must not be empty")} } if v.ClusterOperationArn != nil { - if len(*v.ClusterOperationArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterOperationArn must not be empty")} - } if err := encoder.SetURI("ClusterOperationArn").String(*v.ClusterOperationArn); err != nil { return err } @@ -742,13 +724,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeConfigurationInput(v *DescribeC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Arn == nil { + if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { - if len(*v.Arn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} - } if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } @@ -808,23 +787,20 @@ func awsRestjson1_serializeOpHttpBindingsDescribeConfigurationRevisionInput(v *D return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Arn == nil { + if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { - if len(*v.Arn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} - } if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } } - if v.Revision == nil { + if v.Revision == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Revision must not be empty")} } - if v.Revision != nil { - if err := encoder.SetURI("Revision").Long(*v.Revision); err != nil { + if v.Revision != 0 { + if err := encoder.SetURI("Revision").Long(v.Revision); err != nil { return err } } @@ -883,13 +859,10 @@ func awsRestjson1_serializeOpHttpBindingsGetBootstrapBrokersInput(v *GetBootstra return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } @@ -1007,20 +980,17 @@ func awsRestjson1_serializeOpHttpBindingsListClusterOperationsInput(v *ListClust return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1085,8 +1055,8 @@ func awsRestjson1_serializeOpHttpBindingsListClustersInput(v *ListClustersInput, encoder.SetQuery("clusterNameFilter").String(*v.ClusterNameFilter) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1147,20 +1117,17 @@ func awsRestjson1_serializeOpHttpBindingsListConfigurationRevisionsInput(v *List return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Arn == nil { + if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { - if len(*v.Arn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} - } if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1221,8 +1188,8 @@ func awsRestjson1_serializeOpHttpBindingsListConfigurationsInput(v *ListConfigur return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1283,8 +1250,8 @@ func awsRestjson1_serializeOpHttpBindingsListKafkaVersionsInput(v *ListKafkaVers return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1345,20 +1312,17 @@ func awsRestjson1_serializeOpHttpBindingsListNodesInput(v *ListNodesInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1419,20 +1383,17 @@ func awsRestjson1_serializeOpHttpBindingsListScramSecretsInput(v *ListScramSecre return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1493,13 +1454,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1570,13 +1528,10 @@ func awsRestjson1_serializeOpHttpBindingsRebootBrokerInput(v *RebootBrokerInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } @@ -1661,13 +1616,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1741,13 +1693,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1755,10 +1704,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1827,13 +1773,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateBrokerCountInput(v *UpdateBrokerC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } @@ -1851,9 +1794,9 @@ func awsRestjson1_serializeOpDocumentUpdateBrokerCountInput(v *UpdateBrokerCount ok.String(*v.CurrentVersion) } - if v.TargetNumberOfBrokerNodes != nil { + if v.TargetNumberOfBrokerNodes != 0 { ok := object.Key("targetNumberOfBrokerNodes") - ok.Integer(*v.TargetNumberOfBrokerNodes) + ok.Integer(v.TargetNumberOfBrokerNodes) } return nil @@ -1921,13 +1864,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateBrokerStorageInput(v *UpdateBroke return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } @@ -2017,13 +1957,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateClusterConfigurationInput(v *Upda return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } @@ -2113,13 +2050,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateClusterKafkaVersionInput(v *Updat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } @@ -2214,13 +2148,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateConfigurationInput(v *UpdateConfi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Arn == nil { + if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { - if len(*v.Arn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} - } if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } @@ -2308,13 +2239,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateMonitoringInput(v *UpdateMonitori return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClusterArn == nil { + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} } if v.ClusterArn != nil { - if len(*v.ClusterArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} - } if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { return err } @@ -2354,49 +2282,37 @@ func awsRestjson1_serializeOpDocumentUpdateMonitoringInput(v *UpdateMonitoringIn return nil } -func awsRestjson1_serializeDocument__listOf__string(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOfBrokerEBSVolumeInfo(v []*types.BrokerEBSVolumeInfo, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfBrokerEBSVolumeInfo(v []types.BrokerEBSVolumeInfo, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentBrokerEBSVolumeInfo(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentBrokerEBSVolumeInfo(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__mapOf__string(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__mapOf__string(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2410,9 +2326,9 @@ func awsRestjson1_serializeDocumentBrokerEBSVolumeInfo(v *types.BrokerEBSVolumeI ok.String(*v.KafkaBrokerNodeId) } - if v.VolumeSizeGB != nil { + if v.VolumeSizeGB != 0 { ok := object.Key("volumeSizeGB") - ok.Integer(*v.VolumeSizeGB) + ok.Integer(v.VolumeSizeGB) } return nil @@ -2509,9 +2425,9 @@ func awsRestjson1_serializeDocumentCloudWatchLogs(v *types.CloudWatchLogs, value object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.LogGroup != nil { @@ -2531,9 +2447,9 @@ func awsRestjson1_serializeDocumentConfigurationInfo(v *types.ConfigurationInfo, ok.String(*v.Arn) } - if v.Revision != nil { + if v.Revision != 0 { ok := object.Key("revision") - ok.Long(*v.Revision) + ok.Long(v.Revision) } return nil @@ -2543,9 +2459,9 @@ func awsRestjson1_serializeDocumentEBSStorageInfo(v *types.EBSStorageInfo, value object := value.Object() defer object.Close() - if v.VolumeSize != nil { + if v.VolumeSize != 0 { ok := object.Key("volumeSize") - ok.Integer(*v.VolumeSize) + ok.Integer(v.VolumeSize) } return nil @@ -2593,9 +2509,9 @@ func awsRestjson1_serializeDocumentEncryptionInTransit(v *types.EncryptionInTran ok.String(string(v.ClientBroker)) } - if v.InCluster != nil { + if v.InCluster { ok := object.Key("inCluster") - ok.Boolean(*v.InCluster) + ok.Boolean(v.InCluster) } return nil @@ -2610,9 +2526,9 @@ func awsRestjson1_serializeDocumentFirehose(v *types.Firehose, value smithyjson. ok.String(*v.DeliveryStream) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } return nil @@ -2622,9 +2538,9 @@ func awsRestjson1_serializeDocumentJmxExporterInfo(v *types.JmxExporterInfo, val object := value.Object() defer object.Close() - if v.EnabledInBroker != nil { + if v.EnabledInBroker { ok := object.Key("enabledInBroker") - ok.Boolean(*v.EnabledInBroker) + ok.Boolean(v.EnabledInBroker) } return nil @@ -2648,9 +2564,9 @@ func awsRestjson1_serializeDocumentNodeExporterInfo(v *types.NodeExporterInfo, v object := value.Object() defer object.Close() - if v.EnabledInBroker != nil { + if v.EnabledInBroker { ok := object.Key("enabledInBroker") - ok.Boolean(*v.EnabledInBroker) + ok.Boolean(v.EnabledInBroker) } return nil @@ -2700,9 +2616,9 @@ func awsRestjson1_serializeDocumentS3(v *types.S3, value smithyjson.Value) error ok.String(*v.Bucket) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.Prefix != nil { @@ -2731,9 +2647,9 @@ func awsRestjson1_serializeDocumentScram(v *types.Scram, value smithyjson.Value) object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } return nil diff --git a/service/kafka/types/types.go b/service/kafka/types/types.go index 6e2b93c52e8..8c9a36d38d7 100644 --- a/service/kafka/types/types.go +++ b/service/kafka/types/types.go @@ -19,7 +19,7 @@ type BrokerEBSVolumeInfo struct { // Size of the EBS volume to update. // // This member is required. - VolumeSizeGB *int32 + VolumeSizeGB int32 } type BrokerLogs struct { @@ -39,7 +39,7 @@ type BrokerNodeGroupInfo struct { // in Availability Zone us-east-1e. // // This member is required. - ClientSubnets []*string + ClientSubnets []string // The type of Amazon EC2 instances to use for Kafka brokers. The following // instance types are allowed: kafka.m5.large, kafka.m5.xlarge, kafka.m5.2xlarge, @@ -60,7 +60,7 @@ type BrokerNodeGroupInfo struct { // order to specify who can connect to and communicate with the Amazon MSK cluster. // If you don't specify a security group, Amazon MSK uses the default security // group associated with the VPC. - SecurityGroups []*string + SecurityGroups []string // Contains information about storage volumes attached to MSK broker nodes. StorageInfo *StorageInfo @@ -73,7 +73,7 @@ type BrokerNodeInfo struct { AttachedENIId *string // The ID of the broker. - BrokerId *float64 + BrokerId float64 // The client subnet to which this broker node belongs. ClientSubnet *string @@ -86,7 +86,7 @@ type BrokerNodeInfo struct { CurrentBrokerSoftwareInfo *BrokerSoftwareInfo // Endpoints for accessing the broker. - Endpoints []*string + Endpoints []string } // Information about the current software installed on the cluster. @@ -98,7 +98,7 @@ type BrokerSoftwareInfo struct { // The revision of the configuration to use. This field isn't visible in this // preview release. - ConfigurationRevision *int64 + ConfigurationRevision int64 // The version of Apache Kafka. KafkaVersion *string @@ -115,7 +115,7 @@ type ClientAuthentication struct { } type CloudWatchLogs struct { - Enabled *bool + Enabled bool LogGroup *string } @@ -161,7 +161,7 @@ type ClusterInfo struct { LoggingInfo *LoggingInfo // The number of broker nodes in the cluster. - NumberOfBrokerNodes *int32 + NumberOfBrokerNodes int32 // Settings for open monitoring using Prometheus. OpenMonitoring *OpenMonitoring @@ -172,7 +172,7 @@ type ClusterInfo struct { StateInfo *StateInfo // Tags attached to the cluster. - Tags map[string]*string + Tags map[string]string // The connection string to use to connect to the Apache ZooKeeper cluster. ZookeeperConnectString *string @@ -206,7 +206,7 @@ type ClusterOperationInfo struct { OperationState *string // Steps completed during the operation. - OperationSteps []*ClusterOperationStep + OperationSteps []ClusterOperationStep // Type of the cluster operation. OperationType *string @@ -242,7 +242,7 @@ type CompatibleKafkaVersion struct { SourceVersion *string // A list of Kafka versions. - TargetVersions []*string + TargetVersions []string } // Represents an MSK Configuration. @@ -268,7 +268,7 @@ type Configuration struct { // Apache Kafka version specified for the cluster appears in this array. // // This member is required. - KafkaVersions []*string + KafkaVersions []string // Latest revision of the configuration. // @@ -298,7 +298,7 @@ type ConfigurationInfo struct { // The revision of the configuration to use. // // This member is required. - Revision *int64 + Revision int64 } // Describes a configuration revision. @@ -312,7 +312,7 @@ type ConfigurationRevision struct { // The revision number. // // This member is required. - Revision *int64 + Revision int64 // The description of the configuration revision. Description *string @@ -323,7 +323,7 @@ type ConfigurationRevision struct { type EBSStorageInfo struct { // The size in GiB of the EBS volume for the data drive on each broker node. - VolumeSize *int32 + VolumeSize int32 } // The data-volume encryption details. @@ -362,7 +362,7 @@ type EncryptionInTransit struct { // When set to true, it indicates that data communication among the broker nodes of // the cluster is encrypted. When set to false, the communication happens in // plaintext. The default value is true. - InCluster *bool + InCluster bool } // Returns information about an error state of the cluster. @@ -376,7 +376,7 @@ type ErrorInfo struct { } type Firehose struct { - Enabled *bool + Enabled bool DeliveryStream *string } @@ -387,7 +387,7 @@ type JmxExporter struct { // Indicates whether you want to enable or disable the JMX Exporter. // // This member is required. - EnabledInBroker *bool + EnabledInBroker bool } // Indicates whether you want to enable or disable the JMX Exporter. @@ -396,7 +396,7 @@ type JmxExporterInfo struct { // Indicates whether you want to enable or disable the JMX Exporter. // // This member is required. - EnabledInBroker *bool + EnabledInBroker bool } type KafkaVersion struct { @@ -413,7 +413,7 @@ type LoggingInfo struct { type MutableClusterInfo struct { // Specifies the size of the EBS volume and the ID of the associated broker. - BrokerEBSVolumeInfo []*BrokerEBSVolumeInfo + BrokerEBSVolumeInfo []BrokerEBSVolumeInfo // Information about the changes in the configuration of the brokers. ConfigurationInfo *ConfigurationInfo @@ -428,7 +428,7 @@ type MutableClusterInfo struct { LoggingInfo *LoggingInfo // The number of broker nodes in the cluster. - NumberOfBrokerNodes *int32 + NumberOfBrokerNodes int32 // The settings for open monitoring. OpenMonitoring *OpenMonitoring @@ -440,7 +440,7 @@ type NodeExporter struct { // Indicates whether you want to enable or disable the Node Exporter. // // This member is required. - EnabledInBroker *bool + EnabledInBroker bool } // Indicates whether you want to enable or disable the Node Exporter. @@ -449,7 +449,7 @@ type NodeExporterInfo struct { // Indicates whether you want to enable or disable the Node Exporter. // // This member is required. - EnabledInBroker *bool + EnabledInBroker bool } // The node information object. @@ -513,7 +513,7 @@ type PrometheusInfo struct { } type S3 struct { - Enabled *bool + Enabled bool Bucket *string @@ -531,7 +531,7 @@ type Sasl struct { type Scram struct { // SASL/SCRAM authentication is enabled or not. - Enabled *bool + Enabled bool } type StateInfo struct { @@ -551,7 +551,7 @@ type StorageInfo struct { type Tls struct { // List of ACM Certificate Authority ARNs. - CertificateAuthorityArnList []*string + CertificateAuthorityArnList []string } // Error info for scram secret associate/disassociate failure. @@ -577,10 +577,10 @@ type ZookeeperNodeInfo struct { ClientVpcIpAddress *string // Endpoints for accessing the ZooKeeper. - Endpoints []*string + Endpoints []string // The role-specific ID for Zookeeper. - ZookeeperId *float64 + ZookeeperId float64 // The version of Zookeeper. ZookeeperVersion *string diff --git a/service/kafka/validators.go b/service/kafka/validators.go index 3c62b736296..35122716448 100644 --- a/service/kafka/validators.go +++ b/service/kafka/validators.go @@ -610,13 +610,13 @@ func addOpUpdateMonitoringValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateMonitoring{}, middleware.After) } -func validate__listOfBrokerEBSVolumeInfo(v []*types.BrokerEBSVolumeInfo) error { +func validate__listOfBrokerEBSVolumeInfo(v []types.BrokerEBSVolumeInfo) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfBrokerEBSVolumeInfo"} for i := range v { - if err := validateBrokerEBSVolumeInfo(v[i]); err != nil { + if err := validateBrokerEBSVolumeInfo(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -632,9 +632,6 @@ func validateBrokerEBSVolumeInfo(v *types.BrokerEBSVolumeInfo) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "BrokerEBSVolumeInfo"} - if v.VolumeSizeGB == nil { - invalidParams.Add(smithy.NewErrParamRequired("VolumeSizeGB")) - } if v.KafkaBrokerNodeId == nil { invalidParams.Add(smithy.NewErrParamRequired("KafkaBrokerNodeId")) } @@ -695,9 +692,6 @@ func validateCloudWatchLogs(v *types.CloudWatchLogs) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CloudWatchLogs"} - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -713,9 +707,6 @@ func validateConfigurationInfo(v *types.ConfigurationInfo) error { if v.Arn == nil { invalidParams.Add(smithy.NewErrParamRequired("Arn")) } - if v.Revision == nil { - invalidParams.Add(smithy.NewErrParamRequired("Revision")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -760,9 +751,6 @@ func validateFirehose(v *types.Firehose) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "Firehose"} - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -775,9 +763,6 @@ func validateJmxExporterInfo(v *types.JmxExporterInfo) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "JmxExporterInfo"} - if v.EnabledInBroker == nil { - invalidParams.Add(smithy.NewErrParamRequired("EnabledInBroker")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -809,9 +794,6 @@ func validateNodeExporterInfo(v *types.NodeExporterInfo) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "NodeExporterInfo"} - if v.EnabledInBroker == nil { - invalidParams.Add(smithy.NewErrParamRequired("EnabledInBroker")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -865,9 +847,6 @@ func validateS3(v *types.S3) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "S3"} - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -944,9 +923,6 @@ func validateOpCreateClusterInput(v *CreateClusterInput) error { invalidParams.AddNested("EncryptionInfo", err.(smithy.InvalidParamsError)) } } - if v.NumberOfBrokerNodes == nil { - invalidParams.Add(smithy.NewErrParamRequired("NumberOfBrokerNodes")) - } if v.LoggingInfo != nil { if err := validateLoggingInfo(v.LoggingInfo); err != nil { invalidParams.AddNested("LoggingInfo", err.(smithy.InvalidParamsError)) @@ -1057,9 +1033,6 @@ func validateOpDescribeConfigurationRevisionInput(v *DescribeConfigurationRevisi return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribeConfigurationRevisionInput"} - if v.Revision == nil { - invalidParams.Add(smithy.NewErrParamRequired("Revision")) - } if v.Arn == nil { invalidParams.Add(smithy.NewErrParamRequired("Arn")) } @@ -1225,9 +1198,6 @@ func validateOpUpdateBrokerCountInput(v *UpdateBrokerCountInput) error { if v.ClusterArn == nil { invalidParams.Add(smithy.NewErrParamRequired("ClusterArn")) } - if v.TargetNumberOfBrokerNodes == nil { - invalidParams.Add(smithy.NewErrParamRequired("TargetNumberOfBrokerNodes")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/kendra/api_op_BatchDeleteDocument.go b/service/kendra/api_op_BatchDeleteDocument.go index c31af9ad6f9..88bf4d5f45e 100644 --- a/service/kendra/api_op_BatchDeleteDocument.go +++ b/service/kendra/api_op_BatchDeleteDocument.go @@ -35,7 +35,7 @@ type BatchDeleteDocumentInput struct { // One or more identifiers for documents to delete from the index. // // This member is required. - DocumentIdList []*string + DocumentIdList []string // The identifier of the index that contains the documents to delete. // @@ -51,7 +51,7 @@ type BatchDeleteDocumentOutput struct { // A list of documents that could not be removed from the index. Each entry // contains an error message that indicates why the document couldn't be removed // from the index. - FailedDocuments []*types.BatchDeleteDocumentResponseFailedDocument + FailedDocuments []types.BatchDeleteDocumentResponseFailedDocument // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kendra/api_op_BatchPutDocument.go b/service/kendra/api_op_BatchPutDocument.go index 253e4b72af1..6159bf27dc4 100644 --- a/service/kendra/api_op_BatchPutDocument.go +++ b/service/kendra/api_op_BatchPutDocument.go @@ -51,7 +51,7 @@ type BatchPutDocumentInput struct { // (https://docs.aws.amazon.com/kendra/latest/dg/quotas.html). // // This member is required. - Documents []*types.Document + Documents []types.Document // The identifier of the index to add the documents to. You need to create the // index first using the CreateIndex operation. @@ -73,7 +73,7 @@ type BatchPutDocumentOutput struct { // document to an index the error is reported in your AWS CloudWatch log. For more // information, see Monitoring Amazon Kendra with Amazon CloudWatch Logs // (https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html) - FailedDocuments []*types.BatchPutDocumentResponseFailedDocument + FailedDocuments []types.BatchPutDocumentResponseFailedDocument // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kendra/api_op_CreateDataSource.go b/service/kendra/api_op_CreateDataSource.go index 146410e3911..aa08939fcc1 100644 --- a/service/kendra/api_op_CreateDataSource.go +++ b/service/kendra/api_op_CreateDataSource.go @@ -83,7 +83,7 @@ type CreateDataSourceInput struct { // A list of key-value pairs that identify the data source. You can use the tags to // identify and organize your resources and to control access to resources. - Tags []*types.Tag + Tags []types.Tag } type CreateDataSourceOutput struct { diff --git a/service/kendra/api_op_CreateFaq.go b/service/kendra/api_op_CreateFaq.go index 8c76cb3d976..efb271e7943 100644 --- a/service/kendra/api_op_CreateFaq.go +++ b/service/kendra/api_op_CreateFaq.go @@ -70,7 +70,7 @@ type CreateFaqInput struct { // A list of key-value pairs that identify the FAQ. You can use the tags to // identify and organize your resources and to control access to resources. - Tags []*types.Tag + Tags []types.Tag } type CreateFaqOutput struct { diff --git a/service/kendra/api_op_CreateIndex.go b/service/kendra/api_op_CreateIndex.go index 0b4bd897433..b92289f8c22 100644 --- a/service/kendra/api_op_CreateIndex.go +++ b/service/kendra/api_op_CreateIndex.go @@ -68,7 +68,7 @@ type CreateIndexInput struct { // A list of key-value pairs that identify the index. You can use the tags to // identify and organize your resources and to control access to resources. - Tags []*types.Tag + Tags []types.Tag } type CreateIndexOutput struct { diff --git a/service/kendra/api_op_DescribeIndex.go b/service/kendra/api_op_DescribeIndex.go index f963cc7e2c0..c0dcac58987 100644 --- a/service/kendra/api_op_DescribeIndex.go +++ b/service/kendra/api_op_DescribeIndex.go @@ -51,7 +51,7 @@ type DescribeIndexOutput struct { Description *string // Configuration settings for any metadata applied to the documents in the index. - DocumentMetadataConfigurations []*types.DocumentMetadataConfiguration + DocumentMetadataConfigurations []types.DocumentMetadataConfiguration // The Amazon Kendra edition used for the index. You decide the edition when you // create the index. diff --git a/service/kendra/api_op_ListDataSourceSyncJobs.go b/service/kendra/api_op_ListDataSourceSyncJobs.go index cef63ea0c57..80394bc9492 100644 --- a/service/kendra/api_op_ListDataSourceSyncJobs.go +++ b/service/kendra/api_op_ListDataSourceSyncJobs.go @@ -59,7 +59,7 @@ type ListDataSourceSyncJobsInput struct { type ListDataSourceSyncJobsOutput struct { // A history of synchronization jobs for the data source. - History []*types.DataSourceSyncJob + History []types.DataSourceSyncJob // The GetDataSourceSyncJobHistory operation returns a page of vocabularies at a // time. The maximum size of the page is set by the MaxResults parameter. If there diff --git a/service/kendra/api_op_ListDataSources.go b/service/kendra/api_op_ListDataSources.go index 6f16fedff7b..5326fed89ac 100644 --- a/service/kendra/api_op_ListDataSources.go +++ b/service/kendra/api_op_ListDataSources.go @@ -51,7 +51,7 @@ type ListDataSourcesOutput struct { NextToken *string // An array of summary information for one or more data sources. - SummaryItems []*types.DataSourceSummary + SummaryItems []types.DataSourceSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kendra/api_op_ListFaqs.go b/service/kendra/api_op_ListFaqs.go index 787c68c477a..2e9d30d8f94 100644 --- a/service/kendra/api_op_ListFaqs.go +++ b/service/kendra/api_op_ListFaqs.go @@ -46,7 +46,7 @@ type ListFaqsInput struct { type ListFaqsOutput struct { // information about the FAQs associated with the specified index. - FaqSummaryItems []*types.FaqSummary + FaqSummaryItems []types.FaqSummary // The ListFaqs operation returns a page of FAQs at a time. The maximum size of the // page is set by the MaxResults parameter. If there are more jobs in the list than diff --git a/service/kendra/api_op_ListIndices.go b/service/kendra/api_op_ListIndices.go index 6826dad6c79..37f1ce5564a 100644 --- a/service/kendra/api_op_ListIndices.go +++ b/service/kendra/api_op_ListIndices.go @@ -42,7 +42,7 @@ type ListIndicesInput struct { type ListIndicesOutput struct { // An array of summary information for one or more indexes. - IndexConfigurationSummaryItems []*types.IndexConfigurationSummary + IndexConfigurationSummaryItems []types.IndexConfigurationSummary // If the response is truncated, Amazon Kendra returns this token that you can use // in the subsequent request to retrieve the next set of indexes. diff --git a/service/kendra/api_op_ListTagsForResource.go b/service/kendra/api_op_ListTagsForResource.go index 30a53bf7d1d..341006e4b70 100644 --- a/service/kendra/api_op_ListTagsForResource.go +++ b/service/kendra/api_op_ListTagsForResource.go @@ -40,7 +40,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // A list of tags associated with the index, FAQ, or data source. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kendra/api_op_Query.go b/service/kendra/api_op_Query.go index a3b4840c66f..48ccb94024b 100644 --- a/service/kendra/api_op_Query.go +++ b/service/kendra/api_op_Query.go @@ -66,7 +66,7 @@ type QueryInput struct { // An array of documents attributes. Amazon Kendra returns a count for each // attribute key specified. You can use this information to help narrow the search // for your user. - Facets []*types.Facet + Facets []types.Facet // Query results are returned in pages the size of the PageSize parameter. By // default, Amazon Kendra returns the first page of results. Use this parameter to @@ -84,7 +84,7 @@ type QueryInput struct { // An array of document attributes to include in the response. No other document // attributes are included in the response. By default all document attributes are // included in the response. - RequestedDocumentAttributes []*string + RequestedDocumentAttributes []string // Provides information that determines how the results of the query are sorted. // You can set the field that Amazon Kendra should sort the results on, and specify @@ -99,14 +99,14 @@ type QueryOutput struct { // Contains the facet results. A FacetResult contains the counts for each attribute // key that was specified in the Facets input parameter. - FacetResults []*types.FacetResult + FacetResults []types.FacetResult // The unique identifier for the search. You use QueryId to identify the search // when using the feedback API. QueryId *string // The results of the search. - ResultItems []*types.QueryResultItem + ResultItems []types.QueryResultItem // The total number of items found by the search; however, you can only retrieve up // to 100 items. For example, if the search found 192 items, you can only retrieve diff --git a/service/kendra/api_op_SubmitFeedback.go b/service/kendra/api_op_SubmitFeedback.go index bd7b3f8732c..8c6084dd7bc 100644 --- a/service/kendra/api_op_SubmitFeedback.go +++ b/service/kendra/api_op_SubmitFeedback.go @@ -42,11 +42,11 @@ type SubmitFeedbackInput struct { QueryId *string // Tells Amazon Kendra that a particular search result link was chosen by the user. - ClickFeedbackItems []*types.ClickFeedback + ClickFeedbackItems []types.ClickFeedback // Provides Amazon Kendra with relevant or not relevant feedback for whether a // particular item was relevant to the search. - RelevanceFeedbackItems []*types.RelevanceFeedback + RelevanceFeedbackItems []types.RelevanceFeedback } type SubmitFeedbackOutput struct { diff --git a/service/kendra/api_op_TagResource.go b/service/kendra/api_op_TagResource.go index 5339e8f9256..cc8d249b847 100644 --- a/service/kendra/api_op_TagResource.go +++ b/service/kendra/api_op_TagResource.go @@ -39,7 +39,7 @@ type TagResourceInput struct { // exists, the existing value is replaced with the new value. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/kendra/api_op_UntagResource.go b/service/kendra/api_op_UntagResource.go index 5b26b4e5525..2ace513245e 100644 --- a/service/kendra/api_op_UntagResource.go +++ b/service/kendra/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // does not exist on the resource, it is ignored. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/kendra/api_op_UpdateIndex.go b/service/kendra/api_op_UpdateIndex.go index 5fe97be9b47..26b6e7ddd41 100644 --- a/service/kendra/api_op_UpdateIndex.go +++ b/service/kendra/api_op_UpdateIndex.go @@ -44,7 +44,7 @@ type UpdateIndexInput struct { Description *string // The document metadata to update. - DocumentMetadataConfigurationUpdates []*types.DocumentMetadataConfiguration + DocumentMetadataConfigurationUpdates []types.DocumentMetadataConfiguration // The name of the index to update. Name *string diff --git a/service/kendra/deserializers.go b/service/kendra/deserializers.go index 33347798ed1..33d8043a916 100644 --- a/service/kendra/deserializers.go +++ b/service/kendra/deserializers.go @@ -3412,7 +3412,7 @@ func awsAwsjson11_deserializeDocumentAccessControlListConfiguration(v **types.Ac if !ok { return fmt.Errorf("expected S3ObjectKey to be of type string, got %T instead", value) } - sv.KeyPath = &jtv + sv.KeyPath = ptr.String(jtv) } default: @@ -3452,7 +3452,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3492,7 +3492,7 @@ func awsAwsjson11_deserializeDocumentAclConfiguration(v **types.AclConfiguration if !ok { return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.AllowedGroupsColumnName = &jtv + sv.AllowedGroupsColumnName = ptr.String(jtv) } default: @@ -3532,7 +3532,7 @@ func awsAwsjson11_deserializeDocumentAdditionalResultAttribute(v **types.Additio if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -3558,7 +3558,7 @@ func awsAwsjson11_deserializeDocumentAdditionalResultAttribute(v **types.Additio return nil } -func awsAwsjson11_deserializeDocumentAdditionalResultAttributeList(v *[]*types.AdditionalResultAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentAdditionalResultAttributeList(v *[]types.AdditionalResultAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3571,18 +3571,20 @@ func awsAwsjson11_deserializeDocumentAdditionalResultAttributeList(v *[]*types.A return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AdditionalResultAttribute + var cv []types.AdditionalResultAttribute if *v == nil { - cv = []*types.AdditionalResultAttribute{} + cv = []types.AdditionalResultAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.AdditionalResultAttribute - if err := awsAwsjson11_deserializeDocumentAdditionalResultAttribute(&col, value); err != nil { + var col types.AdditionalResultAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAdditionalResultAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3663,7 +3665,7 @@ func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocument(v if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "Id": @@ -3672,7 +3674,7 @@ func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocument(v if !ok { return fmt.Errorf("expected DocumentId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -3684,7 +3686,7 @@ func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocument(v return nil } -func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocuments(v *[]*types.BatchDeleteDocumentResponseFailedDocument, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocuments(v *[]types.BatchDeleteDocumentResponseFailedDocument, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3697,18 +3699,20 @@ func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocuments( return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchDeleteDocumentResponseFailedDocument + var cv []types.BatchDeleteDocumentResponseFailedDocument if *v == nil { - cv = []*types.BatchDeleteDocumentResponseFailedDocument{} + cv = []types.BatchDeleteDocumentResponseFailedDocument{} } else { cv = *v } for _, value := range shape { - var col *types.BatchDeleteDocumentResponseFailedDocument - if err := awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocument(&col, value); err != nil { + var col types.BatchDeleteDocumentResponseFailedDocument + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocument(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3753,7 +3757,7 @@ func awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocument(v ** if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "Id": @@ -3762,7 +3766,7 @@ func awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocument(v ** if !ok { return fmt.Errorf("expected DocumentId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -3774,7 +3778,7 @@ func awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocument(v ** return nil } -func awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocuments(v *[]*types.BatchPutDocumentResponseFailedDocument, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocuments(v *[]types.BatchPutDocumentResponseFailedDocument, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3787,18 +3791,20 @@ func awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocuments(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchPutDocumentResponseFailedDocument + var cv []types.BatchPutDocumentResponseFailedDocument if *v == nil { - cv = []*types.BatchPutDocumentResponseFailedDocument{} + cv = []types.BatchPutDocumentResponseFailedDocument{} } else { cv = *v } for _, value := range shape { - var col *types.BatchPutDocumentResponseFailedDocument - if err := awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocument(&col, value); err != nil { + var col types.BatchPutDocumentResponseFailedDocument + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocument(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3863,7 +3869,7 @@ func awsAwsjson11_deserializeDocumentCapacityUnitsConfiguration(v **types.Capaci return nil } -func awsAwsjson11_deserializeDocumentChangeDetectingColumns(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentChangeDetectingColumns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3876,21 +3882,21 @@ func awsAwsjson11_deserializeDocumentChangeDetectingColumns(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -3932,7 +3938,7 @@ func awsAwsjson11_deserializeDocumentColumnConfiguration(v **types.ColumnConfigu if !ok { return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.DocumentDataColumnName = &jtv + sv.DocumentDataColumnName = ptr.String(jtv) } case "DocumentIdColumnName": @@ -3941,7 +3947,7 @@ func awsAwsjson11_deserializeDocumentColumnConfiguration(v **types.ColumnConfigu if !ok { return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.DocumentIdColumnName = &jtv + sv.DocumentIdColumnName = ptr.String(jtv) } case "DocumentTitleColumnName": @@ -3950,7 +3956,7 @@ func awsAwsjson11_deserializeDocumentColumnConfiguration(v **types.ColumnConfigu if !ok { return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.DocumentTitleColumnName = &jtv + sv.DocumentTitleColumnName = ptr.String(jtv) } case "FieldMappings": @@ -3995,7 +4001,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4040,7 +4046,7 @@ func awsAwsjson11_deserializeDocumentConfluenceAttachmentConfiguration(v **types if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CrawlAttachments = &jtv + sv.CrawlAttachments = jtv } default: @@ -4052,7 +4058,7 @@ func awsAwsjson11_deserializeDocumentConfluenceAttachmentConfiguration(v **types return nil } -func awsAwsjson11_deserializeDocumentConfluenceAttachmentFieldMappingsList(v *[]*types.ConfluenceAttachmentToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceAttachmentFieldMappingsList(v *[]types.ConfluenceAttachmentToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4065,18 +4071,20 @@ func awsAwsjson11_deserializeDocumentConfluenceAttachmentFieldMappingsList(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfluenceAttachmentToIndexFieldMapping + var cv []types.ConfluenceAttachmentToIndexFieldMapping if *v == nil { - cv = []*types.ConfluenceAttachmentToIndexFieldMapping{} + cv = []types.ConfluenceAttachmentToIndexFieldMapping{} } else { cv = *v } for _, value := range shape { - var col *types.ConfluenceAttachmentToIndexFieldMapping - if err := awsAwsjson11_deserializeDocumentConfluenceAttachmentToIndexFieldMapping(&col, value); err != nil { + var col types.ConfluenceAttachmentToIndexFieldMapping + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfluenceAttachmentToIndexFieldMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4121,7 +4129,7 @@ func awsAwsjson11_deserializeDocumentConfluenceAttachmentToIndexFieldMapping(v * if !ok { return fmt.Errorf("expected DataSourceDateFieldFormat to be of type string, got %T instead", value) } - sv.DateFieldFormat = &jtv + sv.DateFieldFormat = ptr.String(jtv) } case "IndexFieldName": @@ -4130,7 +4138,7 @@ func awsAwsjson11_deserializeDocumentConfluenceAttachmentToIndexFieldMapping(v * if !ok { return fmt.Errorf("expected IndexFieldName to be of type string, got %T instead", value) } - sv.IndexFieldName = &jtv + sv.IndexFieldName = ptr.String(jtv) } default: @@ -4178,7 +4186,7 @@ func awsAwsjson11_deserializeDocumentConfluenceBlogConfiguration(v **types.Confl return nil } -func awsAwsjson11_deserializeDocumentConfluenceBlogFieldMappingsList(v *[]*types.ConfluenceBlogToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceBlogFieldMappingsList(v *[]types.ConfluenceBlogToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4191,18 +4199,20 @@ func awsAwsjson11_deserializeDocumentConfluenceBlogFieldMappingsList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfluenceBlogToIndexFieldMapping + var cv []types.ConfluenceBlogToIndexFieldMapping if *v == nil { - cv = []*types.ConfluenceBlogToIndexFieldMapping{} + cv = []types.ConfluenceBlogToIndexFieldMapping{} } else { cv = *v } for _, value := range shape { - var col *types.ConfluenceBlogToIndexFieldMapping - if err := awsAwsjson11_deserializeDocumentConfluenceBlogToIndexFieldMapping(&col, value); err != nil { + var col types.ConfluenceBlogToIndexFieldMapping + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfluenceBlogToIndexFieldMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4247,7 +4257,7 @@ func awsAwsjson11_deserializeDocumentConfluenceBlogToIndexFieldMapping(v **types if !ok { return fmt.Errorf("expected DataSourceDateFieldFormat to be of type string, got %T instead", value) } - sv.DateFieldFormat = &jtv + sv.DateFieldFormat = ptr.String(jtv) } case "IndexFieldName": @@ -4256,7 +4266,7 @@ func awsAwsjson11_deserializeDocumentConfluenceBlogToIndexFieldMapping(v **types if !ok { return fmt.Errorf("expected IndexFieldName to be of type string, got %T instead", value) } - sv.IndexFieldName = &jtv + sv.IndexFieldName = ptr.String(jtv) } default: @@ -4321,7 +4331,7 @@ func awsAwsjson11_deserializeDocumentConfluenceConfiguration(v **types.Confluenc if !ok { return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) } - sv.SecretArn = &jtv + sv.SecretArn = ptr.String(jtv) } case "ServerUrl": @@ -4330,7 +4340,7 @@ func awsAwsjson11_deserializeDocumentConfluenceConfiguration(v **types.Confluenc if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ServerUrl = &jtv + sv.ServerUrl = ptr.String(jtv) } case "SpaceConfiguration": @@ -4397,7 +4407,7 @@ func awsAwsjson11_deserializeDocumentConfluencePageConfiguration(v **types.Confl return nil } -func awsAwsjson11_deserializeDocumentConfluencePageFieldMappingsList(v *[]*types.ConfluencePageToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluencePageFieldMappingsList(v *[]types.ConfluencePageToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4410,18 +4420,20 @@ func awsAwsjson11_deserializeDocumentConfluencePageFieldMappingsList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfluencePageToIndexFieldMapping + var cv []types.ConfluencePageToIndexFieldMapping if *v == nil { - cv = []*types.ConfluencePageToIndexFieldMapping{} + cv = []types.ConfluencePageToIndexFieldMapping{} } else { cv = *v } for _, value := range shape { - var col *types.ConfluencePageToIndexFieldMapping - if err := awsAwsjson11_deserializeDocumentConfluencePageToIndexFieldMapping(&col, value); err != nil { + var col types.ConfluencePageToIndexFieldMapping + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfluencePageToIndexFieldMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4466,7 +4478,7 @@ func awsAwsjson11_deserializeDocumentConfluencePageToIndexFieldMapping(v **types if !ok { return fmt.Errorf("expected DataSourceDateFieldFormat to be of type string, got %T instead", value) } - sv.DateFieldFormat = &jtv + sv.DateFieldFormat = ptr.String(jtv) } case "IndexFieldName": @@ -4475,7 +4487,7 @@ func awsAwsjson11_deserializeDocumentConfluencePageToIndexFieldMapping(v **types if !ok { return fmt.Errorf("expected IndexFieldName to be of type string, got %T instead", value) } - sv.IndexFieldName = &jtv + sv.IndexFieldName = ptr.String(jtv) } default: @@ -4515,7 +4527,7 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceConfiguration(v **types.Conf if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CrawlArchivedSpaces = &jtv + sv.CrawlArchivedSpaces = jtv } case "CrawlPersonalSpaces": @@ -4524,7 +4536,7 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceConfiguration(v **types.Conf if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CrawlPersonalSpaces = &jtv + sv.CrawlPersonalSpaces = jtv } case "ExcludeSpaces": @@ -4551,7 +4563,7 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceConfiguration(v **types.Conf return nil } -func awsAwsjson11_deserializeDocumentConfluenceSpaceFieldMappingsList(v *[]*types.ConfluenceSpaceToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceSpaceFieldMappingsList(v *[]types.ConfluenceSpaceToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4564,18 +4576,20 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceFieldMappingsList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfluenceSpaceToIndexFieldMapping + var cv []types.ConfluenceSpaceToIndexFieldMapping if *v == nil { - cv = []*types.ConfluenceSpaceToIndexFieldMapping{} + cv = []types.ConfluenceSpaceToIndexFieldMapping{} } else { cv = *v } for _, value := range shape { - var col *types.ConfluenceSpaceToIndexFieldMapping - if err := awsAwsjson11_deserializeDocumentConfluenceSpaceToIndexFieldMapping(&col, value); err != nil { + var col types.ConfluenceSpaceToIndexFieldMapping + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfluenceSpaceToIndexFieldMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4583,7 +4597,7 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceFieldMappingsList(v *[]*type return nil } -func awsAwsjson11_deserializeDocumentConfluenceSpaceList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceSpaceList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4596,21 +4610,21 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ConfluenceSpaceIdentifier to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4656,7 +4670,7 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceToIndexFieldMapping(v **type if !ok { return fmt.Errorf("expected DataSourceDateFieldFormat to be of type string, got %T instead", value) } - sv.DateFieldFormat = &jtv + sv.DateFieldFormat = ptr.String(jtv) } case "IndexFieldName": @@ -4665,7 +4679,7 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceToIndexFieldMapping(v **type if !ok { return fmt.Errorf("expected IndexFieldName to be of type string, got %T instead", value) } - sv.IndexFieldName = &jtv + sv.IndexFieldName = ptr.String(jtv) } default: @@ -4705,7 +4719,7 @@ func awsAwsjson11_deserializeDocumentConnectionConfiguration(v **types.Connectio if !ok { return fmt.Errorf("expected DatabaseHost to be of type string, got %T instead", value) } - sv.DatabaseHost = &jtv + sv.DatabaseHost = ptr.String(jtv) } case "DatabaseName": @@ -4714,7 +4728,7 @@ func awsAwsjson11_deserializeDocumentConnectionConfiguration(v **types.Connectio if !ok { return fmt.Errorf("expected DatabaseName to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "DatabasePort": @@ -4736,7 +4750,7 @@ func awsAwsjson11_deserializeDocumentConnectionConfiguration(v **types.Connectio if !ok { return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) } - sv.SecretArn = &jtv + sv.SecretArn = ptr.String(jtv) } case "TableName": @@ -4745,7 +4759,7 @@ func awsAwsjson11_deserializeDocumentConnectionConfiguration(v **types.Connectio if !ok { return fmt.Errorf("expected TableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -4888,7 +4902,7 @@ func awsAwsjson11_deserializeDocumentDataSourceConfiguration(v **types.DataSourc return nil } -func awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4901,21 +4915,21 @@ func awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DataSourceInclusionsExclusionsStringsMember to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4965,7 +4979,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSummary(v **types.DataSourceSumma if !ok { return fmt.Errorf("expected DataSourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -4974,7 +4988,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSummary(v **types.DataSourceSumma if !ok { return fmt.Errorf("expected DataSourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -5017,7 +5031,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSummary(v **types.DataSourceSumma return nil } -func awsAwsjson11_deserializeDocumentDataSourceSummaryList(v *[]*types.DataSourceSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceSummaryList(v *[]types.DataSourceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5030,18 +5044,20 @@ func awsAwsjson11_deserializeDocumentDataSourceSummaryList(v *[]*types.DataSourc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataSourceSummary + var cv []types.DataSourceSummary if *v == nil { - cv = []*types.DataSourceSummary{} + cv = []types.DataSourceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DataSourceSummary - if err := awsAwsjson11_deserializeDocumentDataSourceSummary(&col, value); err != nil { + var col types.DataSourceSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataSourceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5077,7 +5093,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJob(v **types.DataSourceSyncJ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataSourceErrorCode = &jtv + sv.DataSourceErrorCode = ptr.String(jtv) } case "EndTime": @@ -5108,7 +5124,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJob(v **types.DataSourceSyncJ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "ExecutionId": @@ -5117,7 +5133,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJob(v **types.DataSourceSyncJ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExecutionId = &jtv + sv.ExecutionId = ptr.String(jtv) } case "Metrics": @@ -5156,7 +5172,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJob(v **types.DataSourceSyncJ return nil } -func awsAwsjson11_deserializeDocumentDataSourceSyncJobHistoryList(v *[]*types.DataSourceSyncJob, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceSyncJobHistoryList(v *[]types.DataSourceSyncJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5169,18 +5185,20 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJobHistoryList(v *[]*types.Da return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataSourceSyncJob + var cv []types.DataSourceSyncJob if *v == nil { - cv = []*types.DataSourceSyncJob{} + cv = []types.DataSourceSyncJob{} } else { cv = *v } for _, value := range shape { - var col *types.DataSourceSyncJob - if err := awsAwsjson11_deserializeDocumentDataSourceSyncJob(&col, value); err != nil { + var col types.DataSourceSyncJob + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataSourceSyncJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5216,7 +5234,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJobMetrics(v **types.DataSour if !ok { return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) } - sv.DocumentsAdded = &jtv + sv.DocumentsAdded = ptr.String(jtv) } case "DocumentsDeleted": @@ -5225,7 +5243,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJobMetrics(v **types.DataSour if !ok { return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) } - sv.DocumentsDeleted = &jtv + sv.DocumentsDeleted = ptr.String(jtv) } case "DocumentsFailed": @@ -5234,7 +5252,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJobMetrics(v **types.DataSour if !ok { return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) } - sv.DocumentsFailed = &jtv + sv.DocumentsFailed = ptr.String(jtv) } case "DocumentsModified": @@ -5243,7 +5261,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJobMetrics(v **types.DataSour if !ok { return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) } - sv.DocumentsModified = &jtv + sv.DocumentsModified = ptr.String(jtv) } case "DocumentsScanned": @@ -5252,7 +5270,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJobMetrics(v **types.DataSour if !ok { return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) } - sv.DocumentsScanned = &jtv + sv.DocumentsScanned = ptr.String(jtv) } default: @@ -5292,7 +5310,7 @@ func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMapping(v **types.Dat if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DataSourceFieldName = &jtv + sv.DataSourceFieldName = ptr.String(jtv) } case "DateFieldFormat": @@ -5301,7 +5319,7 @@ func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMapping(v **types.Dat if !ok { return fmt.Errorf("expected DataSourceDateFieldFormat to be of type string, got %T instead", value) } - sv.DateFieldFormat = &jtv + sv.DateFieldFormat = ptr.String(jtv) } case "IndexFieldName": @@ -5310,7 +5328,7 @@ func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMapping(v **types.Dat if !ok { return fmt.Errorf("expected IndexFieldName to be of type string, got %T instead", value) } - sv.IndexFieldName = &jtv + sv.IndexFieldName = ptr.String(jtv) } default: @@ -5322,7 +5340,7 @@ func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMapping(v **types.Dat return nil } -func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMappingList(v *[]*types.DataSourceToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMappingList(v *[]types.DataSourceToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5335,18 +5353,20 @@ func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMappingList(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataSourceToIndexFieldMapping + var cv []types.DataSourceToIndexFieldMapping if *v == nil { - cv = []*types.DataSourceToIndexFieldMapping{} + cv = []types.DataSourceToIndexFieldMapping{} } else { cv = *v } for _, value := range shape { - var col *types.DataSourceToIndexFieldMapping - if err := awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMapping(&col, value); err != nil { + var col types.DataSourceToIndexFieldMapping + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5423,7 +5443,7 @@ func awsAwsjson11_deserializeDocumentDocumentAttribute(v **types.DocumentAttribu if !ok { return fmt.Errorf("expected DocumentAttributeKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -5440,7 +5460,7 @@ func awsAwsjson11_deserializeDocumentDocumentAttribute(v **types.DocumentAttribu return nil } -func awsAwsjson11_deserializeDocumentDocumentAttributeList(v *[]*types.DocumentAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentAttributeList(v *[]types.DocumentAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5453,18 +5473,20 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeList(v *[]*types.DocumentA return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentAttribute + var cv []types.DocumentAttribute if *v == nil { - cv = []*types.DocumentAttribute{} + cv = []types.DocumentAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentAttribute - if err := awsAwsjson11_deserializeDocumentDocumentAttribute(&col, value); err != nil { + var col types.DocumentAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDocumentAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5472,7 +5494,7 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeList(v *[]*types.DocumentA return nil } -func awsAwsjson11_deserializeDocumentDocumentAttributeStringListValue(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentAttributeStringListValue(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5485,21 +5507,21 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeStringListValue(v *[]*stri return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -5553,7 +5575,7 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeValue(v **types.DocumentAt if err != nil { return err } - sv.LongValue = &i64 + sv.LongValue = ptr.Int64(i64) } case "StringListValue": @@ -5567,7 +5589,7 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeValue(v **types.DocumentAt if !ok { return fmt.Errorf("expected DocumentAttributeStringValue to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } default: @@ -5628,7 +5650,7 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPair(v **types.D return nil } -func awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPairList(v *[]*types.DocumentAttributeValueCountPair, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPairList(v *[]types.DocumentAttributeValueCountPair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5641,18 +5663,20 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPairList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentAttributeValueCountPair + var cv []types.DocumentAttributeValueCountPair if *v == nil { - cv = []*types.DocumentAttributeValueCountPair{} + cv = []types.DocumentAttributeValueCountPair{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentAttributeValueCountPair - if err := awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPair(&col, value); err != nil { + var col types.DocumentAttributeValueCountPair + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5688,7 +5712,7 @@ func awsAwsjson11_deserializeDocumentDocumentMetadataConfiguration(v **types.Doc if !ok { return fmt.Errorf("expected DocumentMetadataConfigurationName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Relevance": @@ -5719,7 +5743,7 @@ func awsAwsjson11_deserializeDocumentDocumentMetadataConfiguration(v **types.Doc return nil } -func awsAwsjson11_deserializeDocumentDocumentMetadataConfigurationList(v *[]*types.DocumentMetadataConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentMetadataConfigurationList(v *[]types.DocumentMetadataConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5732,18 +5756,20 @@ func awsAwsjson11_deserializeDocumentDocumentMetadataConfigurationList(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentMetadataConfiguration + var cv []types.DocumentMetadataConfiguration if *v == nil { - cv = []*types.DocumentMetadataConfiguration{} + cv = []types.DocumentMetadataConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentMetadataConfiguration - if err := awsAwsjson11_deserializeDocumentDocumentMetadataConfiguration(&col, value); err != nil { + var col types.DocumentMetadataConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDocumentMetadataConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5779,7 +5805,7 @@ func awsAwsjson11_deserializeDocumentDocumentsMetadataConfiguration(v **types.Do if !ok { return fmt.Errorf("expected S3ObjectKey to be of type string, got %T instead", value) } - sv.S3Prefix = &jtv + sv.S3Prefix = ptr.String(jtv) } default: @@ -5819,7 +5845,7 @@ func awsAwsjson11_deserializeDocumentFacetResult(v **types.FacetResult, value in if !ok { return fmt.Errorf("expected DocumentAttributeKey to be of type string, got %T instead", value) } - sv.DocumentAttributeKey = &jtv + sv.DocumentAttributeKey = ptr.String(jtv) } case "DocumentAttributeValueCountPairs": @@ -5845,7 +5871,7 @@ func awsAwsjson11_deserializeDocumentFacetResult(v **types.FacetResult, value in return nil } -func awsAwsjson11_deserializeDocumentFacetResultList(v *[]*types.FacetResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentFacetResultList(v *[]types.FacetResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5858,18 +5884,20 @@ func awsAwsjson11_deserializeDocumentFacetResultList(v *[]*types.FacetResult, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FacetResult + var cv []types.FacetResult if *v == nil { - cv = []*types.FacetResult{} + cv = []types.FacetResult{} } else { cv = *v } for _, value := range shape { - var col *types.FacetResult - if err := awsAwsjson11_deserializeDocumentFacetResult(&col, value); err != nil { + var col types.FacetResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFacetResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5909,7 +5937,7 @@ func awsAwsjson11_deserializeDocumentFaqStatistics(v **types.FaqStatistics, valu if err != nil { return err } - sv.IndexedQuestionAnswersCount = ptr.Int32(int32(i64)) + sv.IndexedQuestionAnswersCount = int32(i64) } default: @@ -5971,7 +5999,7 @@ func awsAwsjson11_deserializeDocumentFaqSummary(v **types.FaqSummary, value inte if !ok { return fmt.Errorf("expected FaqId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -5980,7 +6008,7 @@ func awsAwsjson11_deserializeDocumentFaqSummary(v **types.FaqSummary, value inte if !ok { return fmt.Errorf("expected FaqName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -6014,7 +6042,7 @@ func awsAwsjson11_deserializeDocumentFaqSummary(v **types.FaqSummary, value inte return nil } -func awsAwsjson11_deserializeDocumentFaqSummaryItems(v *[]*types.FaqSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentFaqSummaryItems(v *[]types.FaqSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6027,18 +6055,20 @@ func awsAwsjson11_deserializeDocumentFaqSummaryItems(v *[]*types.FaqSummary, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FaqSummary + var cv []types.FaqSummary if *v == nil { - cv = []*types.FaqSummary{} + cv = []types.FaqSummary{} } else { cv = *v } for _, value := range shape { - var col *types.FaqSummary - if err := awsAwsjson11_deserializeDocumentFaqSummary(&col, value); err != nil { + var col types.FaqSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFaqSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6100,7 +6130,7 @@ func awsAwsjson11_deserializeDocumentHighlight(v **types.Highlight, value interf if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.TopAnswer = &jtv + sv.TopAnswer = jtv } default: @@ -6112,7 +6142,7 @@ func awsAwsjson11_deserializeDocumentHighlight(v **types.Highlight, value interf return nil } -func awsAwsjson11_deserializeDocumentHighlightList(v *[]*types.Highlight, value interface{}) error { +func awsAwsjson11_deserializeDocumentHighlightList(v *[]types.Highlight, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6125,18 +6155,20 @@ func awsAwsjson11_deserializeDocumentHighlightList(v *[]*types.Highlight, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Highlight + var cv []types.Highlight if *v == nil { - cv = []*types.Highlight{} + cv = []types.Highlight{} } else { cv = *v } for _, value := range shape { - var col *types.Highlight - if err := awsAwsjson11_deserializeDocumentHighlight(&col, value); err != nil { + var col types.Highlight + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHighlight(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6194,7 +6226,7 @@ func awsAwsjson11_deserializeDocumentIndexConfigurationSummary(v **types.IndexCo if !ok { return fmt.Errorf("expected IndexId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -6203,7 +6235,7 @@ func awsAwsjson11_deserializeDocumentIndexConfigurationSummary(v **types.IndexCo if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -6237,7 +6269,7 @@ func awsAwsjson11_deserializeDocumentIndexConfigurationSummary(v **types.IndexCo return nil } -func awsAwsjson11_deserializeDocumentIndexConfigurationSummaryList(v *[]*types.IndexConfigurationSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentIndexConfigurationSummaryList(v *[]types.IndexConfigurationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6250,18 +6282,20 @@ func awsAwsjson11_deserializeDocumentIndexConfigurationSummaryList(v *[]*types.I return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IndexConfigurationSummary + var cv []types.IndexConfigurationSummary if *v == nil { - cv = []*types.IndexConfigurationSummary{} + cv = []types.IndexConfigurationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.IndexConfigurationSummary - if err := awsAwsjson11_deserializeDocumentIndexConfigurationSummary(&col, value); err != nil { + var col types.IndexConfigurationSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIndexConfigurationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6338,7 +6372,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6398,7 +6432,7 @@ func awsAwsjson11_deserializeDocumentOneDriveConfiguration(v **types.OneDriveCon if !ok { return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) } - sv.SecretArn = &jtv + sv.SecretArn = ptr.String(jtv) } case "TenantDomain": @@ -6407,7 +6441,7 @@ func awsAwsjson11_deserializeDocumentOneDriveConfiguration(v **types.OneDriveCon if !ok { return fmt.Errorf("expected TenantDomain to be of type string, got %T instead", value) } - sv.TenantDomain = &jtv + sv.TenantDomain = ptr.String(jtv) } default: @@ -6419,7 +6453,7 @@ func awsAwsjson11_deserializeDocumentOneDriveConfiguration(v **types.OneDriveCon return nil } -func awsAwsjson11_deserializeDocumentOneDriveUserList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentOneDriveUserList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6432,21 +6466,21 @@ func awsAwsjson11_deserializeDocumentOneDriveUserList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected OneDriveUser to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6539,7 +6573,7 @@ func awsAwsjson11_deserializeDocumentQueryResultItem(v **types.QueryResultItem, if !ok { return fmt.Errorf("expected DocumentId to be of type string, got %T instead", value) } - sv.DocumentId = &jtv + sv.DocumentId = ptr.String(jtv) } case "DocumentTitle": @@ -6553,7 +6587,7 @@ func awsAwsjson11_deserializeDocumentQueryResultItem(v **types.QueryResultItem, if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.DocumentURI = &jtv + sv.DocumentURI = ptr.String(jtv) } case "Id": @@ -6562,7 +6596,7 @@ func awsAwsjson11_deserializeDocumentQueryResultItem(v **types.QueryResultItem, if !ok { return fmt.Errorf("expected ResultId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ScoreAttributes": @@ -6588,7 +6622,7 @@ func awsAwsjson11_deserializeDocumentQueryResultItem(v **types.QueryResultItem, return nil } -func awsAwsjson11_deserializeDocumentQueryResultItemList(v *[]*types.QueryResultItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentQueryResultItemList(v *[]types.QueryResultItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6601,18 +6635,20 @@ func awsAwsjson11_deserializeDocumentQueryResultItemList(v *[]*types.QueryResult return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.QueryResultItem + var cv []types.QueryResultItem if *v == nil { - cv = []*types.QueryResultItem{} + cv = []types.QueryResultItem{} } else { cv = *v } for _, value := range shape { - var col *types.QueryResultItem - if err := awsAwsjson11_deserializeDocumentQueryResultItem(&col, value); err != nil { + var col types.QueryResultItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentQueryResultItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6648,7 +6684,7 @@ func awsAwsjson11_deserializeDocumentRelevance(v **types.Relevance, value interf if !ok { return fmt.Errorf("expected Duration to be of type string, got %T instead", value) } - sv.Duration = &jtv + sv.Duration = ptr.String(jtv) } case "Freshness": @@ -6657,7 +6693,7 @@ func awsAwsjson11_deserializeDocumentRelevance(v **types.Relevance, value interf if !ok { return fmt.Errorf("expected DocumentMetadataBoolean to be of type *bool, got %T instead", value) } - sv.Freshness = &jtv + sv.Freshness = ptr.Bool(jtv) } case "Importance": @@ -6724,7 +6760,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistException(v **types.Res if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6764,7 +6800,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6804,7 +6840,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6844,7 +6880,7 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6889,7 +6925,7 @@ func awsAwsjson11_deserializeDocumentS3DataSourceConfiguration(v **types.S3DataS if !ok { return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "DocumentsMetadataConfiguration": @@ -6949,7 +6985,7 @@ func awsAwsjson11_deserializeDocumentS3Path(v **types.S3Path, value interface{}) if !ok { return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "Key": @@ -6958,7 +6994,7 @@ func awsAwsjson11_deserializeDocumentS3Path(v **types.S3Path, value interface{}) if !ok { return fmt.Errorf("expected S3ObjectKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } default: @@ -6998,7 +7034,7 @@ func awsAwsjson11_deserializeDocumentSalesforceChatterFeedConfiguration(v **type if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentDataFieldName = &jtv + sv.DocumentDataFieldName = ptr.String(jtv) } case "DocumentTitleFieldName": @@ -7007,7 +7043,7 @@ func awsAwsjson11_deserializeDocumentSalesforceChatterFeedConfiguration(v **type if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentTitleFieldName = &jtv + sv.DocumentTitleFieldName = ptr.String(jtv) } case "FieldMappings": @@ -7098,7 +7134,7 @@ func awsAwsjson11_deserializeDocumentSalesforceConfiguration(v **types.Salesforc if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CrawlAttachments = &jtv + sv.CrawlAttachments = jtv } case "ExcludeAttachmentFilePatterns": @@ -7122,7 +7158,7 @@ func awsAwsjson11_deserializeDocumentSalesforceConfiguration(v **types.Salesforc if !ok { return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) } - sv.SecretArn = &jtv + sv.SecretArn = ptr.String(jtv) } case "ServerUrl": @@ -7131,7 +7167,7 @@ func awsAwsjson11_deserializeDocumentSalesforceConfiguration(v **types.Salesforc if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ServerUrl = &jtv + sv.ServerUrl = ptr.String(jtv) } case "StandardObjectAttachmentConfiguration": @@ -7181,7 +7217,7 @@ func awsAwsjson11_deserializeDocumentSalesforceCustomKnowledgeArticleTypeConfigu if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentDataFieldName = &jtv + sv.DocumentDataFieldName = ptr.String(jtv) } case "DocumentTitleFieldName": @@ -7190,7 +7226,7 @@ func awsAwsjson11_deserializeDocumentSalesforceCustomKnowledgeArticleTypeConfigu if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentTitleFieldName = &jtv + sv.DocumentTitleFieldName = ptr.String(jtv) } case "FieldMappings": @@ -7204,7 +7240,7 @@ func awsAwsjson11_deserializeDocumentSalesforceCustomKnowledgeArticleTypeConfigu if !ok { return fmt.Errorf("expected SalesforceCustomKnowledgeArticleTypeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7216,7 +7252,7 @@ func awsAwsjson11_deserializeDocumentSalesforceCustomKnowledgeArticleTypeConfigu return nil } -func awsAwsjson11_deserializeDocumentSalesforceCustomKnowledgeArticleTypeConfigurationList(v *[]*types.SalesforceCustomKnowledgeArticleTypeConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentSalesforceCustomKnowledgeArticleTypeConfigurationList(v *[]types.SalesforceCustomKnowledgeArticleTypeConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7229,18 +7265,20 @@ func awsAwsjson11_deserializeDocumentSalesforceCustomKnowledgeArticleTypeConfigu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SalesforceCustomKnowledgeArticleTypeConfiguration + var cv []types.SalesforceCustomKnowledgeArticleTypeConfiguration if *v == nil { - cv = []*types.SalesforceCustomKnowledgeArticleTypeConfiguration{} + cv = []types.SalesforceCustomKnowledgeArticleTypeConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.SalesforceCustomKnowledgeArticleTypeConfiguration - if err := awsAwsjson11_deserializeDocumentSalesforceCustomKnowledgeArticleTypeConfiguration(&col, value); err != nil { + var col types.SalesforceCustomKnowledgeArticleTypeConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSalesforceCustomKnowledgeArticleTypeConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7358,7 +7396,7 @@ func awsAwsjson11_deserializeDocumentSalesforceStandardKnowledgeArticleTypeConfi if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentDataFieldName = &jtv + sv.DocumentDataFieldName = ptr.String(jtv) } case "DocumentTitleFieldName": @@ -7367,7 +7405,7 @@ func awsAwsjson11_deserializeDocumentSalesforceStandardKnowledgeArticleTypeConfi if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentTitleFieldName = &jtv + sv.DocumentTitleFieldName = ptr.String(jtv) } case "FieldMappings": @@ -7412,7 +7450,7 @@ func awsAwsjson11_deserializeDocumentSalesforceStandardObjectAttachmentConfigura if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentTitleFieldName = &jtv + sv.DocumentTitleFieldName = ptr.String(jtv) } case "FieldMappings": @@ -7457,7 +7495,7 @@ func awsAwsjson11_deserializeDocumentSalesforceStandardObjectConfiguration(v **t if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentDataFieldName = &jtv + sv.DocumentDataFieldName = ptr.String(jtv) } case "DocumentTitleFieldName": @@ -7466,7 +7504,7 @@ func awsAwsjson11_deserializeDocumentSalesforceStandardObjectConfiguration(v **t if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentTitleFieldName = &jtv + sv.DocumentTitleFieldName = ptr.String(jtv) } case "FieldMappings": @@ -7492,7 +7530,7 @@ func awsAwsjson11_deserializeDocumentSalesforceStandardObjectConfiguration(v **t return nil } -func awsAwsjson11_deserializeDocumentSalesforceStandardObjectConfigurationList(v *[]*types.SalesforceStandardObjectConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentSalesforceStandardObjectConfigurationList(v *[]types.SalesforceStandardObjectConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7505,18 +7543,20 @@ func awsAwsjson11_deserializeDocumentSalesforceStandardObjectConfigurationList(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SalesforceStandardObjectConfiguration + var cv []types.SalesforceStandardObjectConfiguration if *v == nil { - cv = []*types.SalesforceStandardObjectConfiguration{} + cv = []types.SalesforceStandardObjectConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.SalesforceStandardObjectConfiguration - if err := awsAwsjson11_deserializeDocumentSalesforceStandardObjectConfiguration(&col, value); err != nil { + var col types.SalesforceStandardObjectConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSalesforceStandardObjectConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7592,7 +7632,7 @@ func awsAwsjson11_deserializeDocumentSearch(v **types.Search, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Displayable = &jtv + sv.Displayable = jtv } case "Facetable": @@ -7601,7 +7641,7 @@ func awsAwsjson11_deserializeDocumentSearch(v **types.Search, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Facetable = &jtv + sv.Facetable = jtv } case "Searchable": @@ -7610,7 +7650,7 @@ func awsAwsjson11_deserializeDocumentSearch(v **types.Search, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Searchable = &jtv + sv.Searchable = jtv } case "Sortable": @@ -7619,7 +7659,7 @@ func awsAwsjson11_deserializeDocumentSearch(v **types.Search, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Sortable = &jtv + sv.Sortable = jtv } default: @@ -7631,7 +7671,7 @@ func awsAwsjson11_deserializeDocumentSearch(v **types.Search, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentSecurityGroupIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityGroupIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7644,21 +7684,21 @@ func awsAwsjson11_deserializeDocumentSecurityGroupIdList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected VpcSecurityGroupId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7695,7 +7735,7 @@ func awsAwsjson11_deserializeDocumentServerSideEncryptionConfiguration(v **types if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } default: @@ -7735,7 +7775,7 @@ func awsAwsjson11_deserializeDocumentServiceNowConfiguration(v **types.ServiceNo if !ok { return fmt.Errorf("expected ServiceNowHostUrl to be of type string, got %T instead", value) } - sv.HostUrl = &jtv + sv.HostUrl = ptr.String(jtv) } case "KnowledgeArticleConfiguration": @@ -7749,7 +7789,7 @@ func awsAwsjson11_deserializeDocumentServiceNowConfiguration(v **types.ServiceNo if !ok { return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) } - sv.SecretArn = &jtv + sv.SecretArn = ptr.String(jtv) } case "ServiceCatalogConfiguration": @@ -7803,7 +7843,7 @@ func awsAwsjson11_deserializeDocumentServiceNowKnowledgeArticleConfiguration(v * if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CrawlAttachments = &jtv + sv.CrawlAttachments = jtv } case "DocumentDataFieldName": @@ -7812,7 +7852,7 @@ func awsAwsjson11_deserializeDocumentServiceNowKnowledgeArticleConfiguration(v * if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentDataFieldName = &jtv + sv.DocumentDataFieldName = ptr.String(jtv) } case "DocumentTitleFieldName": @@ -7821,7 +7861,7 @@ func awsAwsjson11_deserializeDocumentServiceNowKnowledgeArticleConfiguration(v * if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentTitleFieldName = &jtv + sv.DocumentTitleFieldName = ptr.String(jtv) } case "ExcludeAttachmentFilePatterns": @@ -7876,7 +7916,7 @@ func awsAwsjson11_deserializeDocumentServiceNowServiceCatalogConfiguration(v **t if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CrawlAttachments = &jtv + sv.CrawlAttachments = jtv } case "DocumentDataFieldName": @@ -7885,7 +7925,7 @@ func awsAwsjson11_deserializeDocumentServiceNowServiceCatalogConfiguration(v **t if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentDataFieldName = &jtv + sv.DocumentDataFieldName = ptr.String(jtv) } case "DocumentTitleFieldName": @@ -7894,7 +7934,7 @@ func awsAwsjson11_deserializeDocumentServiceNowServiceCatalogConfiguration(v **t if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentTitleFieldName = &jtv + sv.DocumentTitleFieldName = ptr.String(jtv) } case "ExcludeAttachmentFilePatterns": @@ -7949,7 +7989,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7989,7 +8029,7 @@ func awsAwsjson11_deserializeDocumentSharePointConfiguration(v **types.SharePoin if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CrawlAttachments = &jtv + sv.CrawlAttachments = jtv } case "DocumentTitleFieldName": @@ -7998,7 +8038,7 @@ func awsAwsjson11_deserializeDocumentSharePointConfiguration(v **types.SharePoin if !ok { return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DocumentTitleFieldName = &jtv + sv.DocumentTitleFieldName = ptr.String(jtv) } case "ExclusionPatterns": @@ -8022,7 +8062,7 @@ func awsAwsjson11_deserializeDocumentSharePointConfiguration(v **types.SharePoin if !ok { return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) } - sv.SecretArn = &jtv + sv.SecretArn = ptr.String(jtv) } case "SharePointVersion": @@ -8045,7 +8085,7 @@ func awsAwsjson11_deserializeDocumentSharePointConfiguration(v **types.SharePoin if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.UseChangeLog = &jtv + sv.UseChangeLog = jtv } case "VpcConfiguration": @@ -8062,7 +8102,7 @@ func awsAwsjson11_deserializeDocumentSharePointConfiguration(v **types.SharePoin return nil } -func awsAwsjson11_deserializeDocumentSharePointUrlList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSharePointUrlList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8075,21 +8115,21 @@ func awsAwsjson11_deserializeDocumentSharePointUrlList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8138,7 +8178,7 @@ func awsAwsjson11_deserializeDocumentSqlConfiguration(v **types.SqlConfiguration return nil } -func awsAwsjson11_deserializeDocumentSubnetIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnetIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8151,21 +8191,21 @@ func awsAwsjson11_deserializeDocumentSubnetIdList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8202,7 +8242,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -8211,7 +8251,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8223,7 +8263,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8236,18 +8276,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8287,7 +8329,7 @@ func awsAwsjson11_deserializeDocumentTextDocumentStatistics(v **types.TextDocume if err != nil { return err } - sv.IndexedTextBytes = &i64 + sv.IndexedTextBytes = i64 } case "IndexedTextDocumentsCount": @@ -8300,7 +8342,7 @@ func awsAwsjson11_deserializeDocumentTextDocumentStatistics(v **types.TextDocume if err != nil { return err } - sv.IndexedTextDocumentsCount = ptr.Int32(int32(i64)) + sv.IndexedTextDocumentsCount = int32(i64) } default: @@ -8345,7 +8387,7 @@ func awsAwsjson11_deserializeDocumentTextWithHighlights(v **types.TextWithHighli if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } default: @@ -8385,7 +8427,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8425,7 +8467,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8437,7 +8479,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc return nil } -func awsAwsjson11_deserializeDocumentValueImportanceMap(v *map[string]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentValueImportanceMap(v *map[string]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8450,15 +8492,15 @@ func awsAwsjson11_deserializeDocumentValueImportanceMap(v *map[string]*int32, va return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*int32 + var mv map[string]int32 if *v == nil { - mv = map[string]*int32{} + mv = map[string]int32{} } else { mv = *v } for key, value := range shape { - var parsedVal *int32 + var parsedVal int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -8468,7 +8510,7 @@ func awsAwsjson11_deserializeDocumentValueImportanceMap(v *map[string]*int32, va if err != nil { return err } - parsedVal = ptr.Int32(int32(i64)) + parsedVal = int32(i64) } mv[key] = parsedVal @@ -8577,7 +8619,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDataSourceOutput(v **CreateDataSour if !ok { return fmt.Errorf("expected DataSourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -8617,7 +8659,7 @@ func awsAwsjson11_deserializeOpDocumentCreateFaqOutput(v **CreateFaqOutput, valu if !ok { return fmt.Errorf("expected FaqId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -8657,7 +8699,7 @@ func awsAwsjson11_deserializeOpDocumentCreateIndexOutput(v **CreateIndexOutput, if !ok { return fmt.Errorf("expected IndexId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -8808,7 +8850,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeData if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ErrorMessage": @@ -8817,7 +8859,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeData if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "Id": @@ -8826,7 +8868,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeData if !ok { return fmt.Errorf("expected DataSourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IndexId": @@ -8835,7 +8877,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeData if !ok { return fmt.Errorf("expected IndexId to be of type string, got %T instead", value) } - sv.IndexId = &jtv + sv.IndexId = ptr.String(jtv) } case "Name": @@ -8844,7 +8886,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeData if !ok { return fmt.Errorf("expected DataSourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RoleArn": @@ -8853,7 +8895,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeData if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "Schedule": @@ -8862,7 +8904,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeData if !ok { return fmt.Errorf("expected ScanSchedule to be of type string, got %T instead", value) } - sv.Schedule = &jtv + sv.Schedule = ptr.String(jtv) } case "Status": @@ -8946,7 +8988,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFaqOutput(v **DescribeFaqOutput, if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ErrorMessage": @@ -8955,7 +8997,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFaqOutput(v **DescribeFaqOutput, if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "FileFormat": @@ -8973,7 +9015,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFaqOutput(v **DescribeFaqOutput, if !ok { return fmt.Errorf("expected FaqId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IndexId": @@ -8982,7 +9024,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFaqOutput(v **DescribeFaqOutput, if !ok { return fmt.Errorf("expected IndexId to be of type string, got %T instead", value) } - sv.IndexId = &jtv + sv.IndexId = ptr.String(jtv) } case "Name": @@ -8991,7 +9033,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFaqOutput(v **DescribeFaqOutput, if !ok { return fmt.Errorf("expected FaqName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RoleArn": @@ -9000,7 +9042,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFaqOutput(v **DescribeFaqOutput, if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "S3Path": @@ -9085,7 +9127,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeIndexOutput(v **DescribeIndexOutp if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DocumentMetadataConfigurations": @@ -9108,7 +9150,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeIndexOutput(v **DescribeIndexOutp if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "Id": @@ -9117,7 +9159,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeIndexOutput(v **DescribeIndexOutp if !ok { return fmt.Errorf("expected IndexId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IndexStatistics": @@ -9131,7 +9173,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeIndexOutput(v **DescribeIndexOutp if !ok { return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RoleArn": @@ -9140,7 +9182,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeIndexOutput(v **DescribeIndexOutp if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "ServerSideEncryptionConfiguration": @@ -9207,7 +9249,7 @@ func awsAwsjson11_deserializeOpDocumentListDataSourcesOutput(v **ListDataSources if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SummaryItems": @@ -9257,7 +9299,7 @@ func awsAwsjson11_deserializeOpDocumentListDataSourceSyncJobsOutput(v **ListData if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9302,7 +9344,7 @@ func awsAwsjson11_deserializeOpDocumentListFaqsOutput(v **ListFaqsOutput, value if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9347,7 +9389,7 @@ func awsAwsjson11_deserializeOpDocumentListIndicesOutput(v **ListIndicesOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -9428,7 +9470,7 @@ func awsAwsjson11_deserializeOpDocumentQueryOutput(v **QueryOutput, value interf if !ok { return fmt.Errorf("expected QueryId to be of type string, got %T instead", value) } - sv.QueryId = &jtv + sv.QueryId = ptr.String(jtv) } case "ResultItems": @@ -9486,7 +9528,7 @@ func awsAwsjson11_deserializeOpDocumentStartDataSourceSyncJobOutput(v **StartDat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExecutionId = &jtv + sv.ExecutionId = ptr.String(jtv) } default: diff --git a/service/kendra/go.mod b/service/kendra/go.mod index bf8f192b0a3..c663fa23f31 100644 --- a/service/kendra/go.mod +++ b/service/kendra/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/kendra go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/kendra/serializers.go b/service/kendra/serializers.go index 9602da4e849..d4927a30194 100644 --- a/service/kendra/serializers.go +++ b/service/kendra/serializers.go @@ -1219,17 +1219,13 @@ func awsAwsjson11_serializeDocumentAttributeFilter(v *types.AttributeFilter, val return nil } -func awsAwsjson11_serializeDocumentAttributeFilterList(v []*types.AttributeFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttributeFilterList(v []types.AttributeFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAttributeFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAttributeFilter(&v[i], av); err != nil { return err } } @@ -1253,17 +1249,13 @@ func awsAwsjson11_serializeDocumentCapacityUnitsConfiguration(v *types.CapacityU return nil } -func awsAwsjson11_serializeDocumentChangeDetectingColumns(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentChangeDetectingColumns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1285,17 +1277,13 @@ func awsAwsjson11_serializeDocumentClickFeedback(v *types.ClickFeedback, value s return nil } -func awsAwsjson11_serializeDocumentClickFeedbackList(v []*types.ClickFeedback, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentClickFeedbackList(v []types.ClickFeedback, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentClickFeedback(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentClickFeedback(&v[i], av); err != nil { return err } } @@ -1349,25 +1337,21 @@ func awsAwsjson11_serializeDocumentConfluenceAttachmentConfiguration(v *types.Co } } - if v.CrawlAttachments != nil { + if v.CrawlAttachments { ok := object.Key("CrawlAttachments") - ok.Boolean(*v.CrawlAttachments) + ok.Boolean(v.CrawlAttachments) } return nil } -func awsAwsjson11_serializeDocumentConfluenceAttachmentFieldMappingsList(v []*types.ConfluenceAttachmentToIndexFieldMapping, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConfluenceAttachmentFieldMappingsList(v []types.ConfluenceAttachmentToIndexFieldMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentConfluenceAttachmentToIndexFieldMapping(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentConfluenceAttachmentToIndexFieldMapping(&v[i], av); err != nil { return err } } @@ -1410,17 +1394,13 @@ func awsAwsjson11_serializeDocumentConfluenceBlogConfiguration(v *types.Confluen return nil } -func awsAwsjson11_serializeDocumentConfluenceBlogFieldMappingsList(v []*types.ConfluenceBlogToIndexFieldMapping, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConfluenceBlogFieldMappingsList(v []types.ConfluenceBlogToIndexFieldMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentConfluenceBlogToIndexFieldMapping(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentConfluenceBlogToIndexFieldMapping(&v[i], av); err != nil { return err } } @@ -1534,17 +1514,13 @@ func awsAwsjson11_serializeDocumentConfluencePageConfiguration(v *types.Confluen return nil } -func awsAwsjson11_serializeDocumentConfluencePageFieldMappingsList(v []*types.ConfluencePageToIndexFieldMapping, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConfluencePageFieldMappingsList(v []types.ConfluencePageToIndexFieldMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentConfluencePageToIndexFieldMapping(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentConfluencePageToIndexFieldMapping(&v[i], av); err != nil { return err } } @@ -1577,14 +1553,14 @@ func awsAwsjson11_serializeDocumentConfluenceSpaceConfiguration(v *types.Conflue object := value.Object() defer object.Close() - if v.CrawlArchivedSpaces != nil { + if v.CrawlArchivedSpaces { ok := object.Key("CrawlArchivedSpaces") - ok.Boolean(*v.CrawlArchivedSpaces) + ok.Boolean(v.CrawlArchivedSpaces) } - if v.CrawlPersonalSpaces != nil { + if v.CrawlPersonalSpaces { ok := object.Key("CrawlPersonalSpaces") - ok.Boolean(*v.CrawlPersonalSpaces) + ok.Boolean(v.CrawlPersonalSpaces) } if v.ExcludeSpaces != nil { @@ -1611,34 +1587,26 @@ func awsAwsjson11_serializeDocumentConfluenceSpaceConfiguration(v *types.Conflue return nil } -func awsAwsjson11_serializeDocumentConfluenceSpaceFieldMappingsList(v []*types.ConfluenceSpaceToIndexFieldMapping, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConfluenceSpaceFieldMappingsList(v []types.ConfluenceSpaceToIndexFieldMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentConfluenceSpaceToIndexFieldMapping(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentConfluenceSpaceToIndexFieldMapping(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentConfluenceSpaceList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConfluenceSpaceList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1800,17 +1768,13 @@ func awsAwsjson11_serializeDocumentDataSourceConfiguration(v *types.DataSourceCo return nil } -func awsAwsjson11_serializeDocumentDataSourceInclusionsExclusionsStrings(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDataSourceInclusionsExclusionsStrings(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1854,17 +1818,13 @@ func awsAwsjson11_serializeDocumentDataSourceToIndexFieldMapping(v *types.DataSo return nil } -func awsAwsjson11_serializeDocumentDataSourceToIndexFieldMappingList(v []*types.DataSourceToIndexFieldMapping, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDataSourceToIndexFieldMappingList(v []types.DataSourceToIndexFieldMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDataSourceToIndexFieldMapping(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDataSourceToIndexFieldMapping(&v[i], av); err != nil { return err } } @@ -1959,49 +1919,37 @@ func awsAwsjson11_serializeDocumentDocumentAttribute(v *types.DocumentAttribute, return nil } -func awsAwsjson11_serializeDocumentDocumentAttributeKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDocumentAttributeKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentDocumentAttributeList(v []*types.DocumentAttribute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDocumentAttributeList(v []types.DocumentAttribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDocumentAttribute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDocumentAttribute(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentDocumentAttributeStringListValue(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDocumentAttributeStringListValue(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2035,32 +1983,24 @@ func awsAwsjson11_serializeDocumentDocumentAttributeValue(v *types.DocumentAttri return nil } -func awsAwsjson11_serializeDocumentDocumentIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDocumentIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentDocumentList(v []*types.Document, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDocumentList(v []types.Document, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDocument(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDocument(&v[i], av); err != nil { return err } } @@ -2098,17 +2038,13 @@ func awsAwsjson11_serializeDocumentDocumentMetadataConfiguration(v *types.Docume return nil } -func awsAwsjson11_serializeDocumentDocumentMetadataConfigurationList(v []*types.DocumentMetadataConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDocumentMetadataConfigurationList(v []types.DocumentMetadataConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDocumentMetadataConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDocumentMetadataConfiguration(&v[i], av); err != nil { return err } } @@ -2139,17 +2075,13 @@ func awsAwsjson11_serializeDocumentFacet(v *types.Facet, value smithyjson.Value) return nil } -func awsAwsjson11_serializeDocumentFacetList(v []*types.Facet, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFacetList(v []types.Facet, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFacet(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFacet(&v[i], av); err != nil { return err } } @@ -2201,17 +2133,13 @@ func awsAwsjson11_serializeDocumentOneDriveConfiguration(v *types.OneDriveConfig return nil } -func awsAwsjson11_serializeDocumentOneDriveUserList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOneDriveUserList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2259,17 +2187,13 @@ func awsAwsjson11_serializeDocumentPrincipal(v *types.Principal, value smithyjso return nil } -func awsAwsjson11_serializeDocumentPrincipalList(v []*types.Principal, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPrincipalList(v []types.Principal, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPrincipal(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPrincipal(&v[i], av); err != nil { return err } } @@ -2327,17 +2251,13 @@ func awsAwsjson11_serializeDocumentRelevanceFeedback(v *types.RelevanceFeedback, return nil } -func awsAwsjson11_serializeDocumentRelevanceFeedbackList(v []*types.RelevanceFeedback, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRelevanceFeedbackList(v []types.RelevanceFeedback, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRelevanceFeedback(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRelevanceFeedback(&v[i], av); err != nil { return err } } @@ -2461,9 +2381,9 @@ func awsAwsjson11_serializeDocumentSalesforceConfiguration(v *types.SalesforceCo } } - if v.CrawlAttachments != nil { + if v.CrawlAttachments { ok := object.Key("CrawlAttachments") - ok.Boolean(*v.CrawlAttachments) + ok.Boolean(v.CrawlAttachments) } if v.ExcludeAttachmentFilePatterns != nil { @@ -2543,17 +2463,13 @@ func awsAwsjson11_serializeDocumentSalesforceCustomKnowledgeArticleTypeConfigura return nil } -func awsAwsjson11_serializeDocumentSalesforceCustomKnowledgeArticleTypeConfigurationList(v []*types.SalesforceCustomKnowledgeArticleTypeConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSalesforceCustomKnowledgeArticleTypeConfigurationList(v []types.SalesforceCustomKnowledgeArticleTypeConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSalesforceCustomKnowledgeArticleTypeConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSalesforceCustomKnowledgeArticleTypeConfiguration(&v[i], av); err != nil { return err } } @@ -2671,17 +2587,13 @@ func awsAwsjson11_serializeDocumentSalesforceStandardObjectConfiguration(v *type return nil } -func awsAwsjson11_serializeDocumentSalesforceStandardObjectConfigurationList(v []*types.SalesforceStandardObjectConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSalesforceStandardObjectConfigurationList(v []types.SalesforceStandardObjectConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSalesforceStandardObjectConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSalesforceStandardObjectConfiguration(&v[i], av); err != nil { return err } } @@ -2692,40 +2604,36 @@ func awsAwsjson11_serializeDocumentSearch(v *types.Search, value smithyjson.Valu object := value.Object() defer object.Close() - if v.Displayable != nil { + if v.Displayable { ok := object.Key("Displayable") - ok.Boolean(*v.Displayable) + ok.Boolean(v.Displayable) } - if v.Facetable != nil { + if v.Facetable { ok := object.Key("Facetable") - ok.Boolean(*v.Facetable) + ok.Boolean(v.Facetable) } - if v.Searchable != nil { + if v.Searchable { ok := object.Key("Searchable") - ok.Boolean(*v.Searchable) + ok.Boolean(v.Searchable) } - if v.Sortable != nil { + if v.Sortable { ok := object.Key("Sortable") - ok.Boolean(*v.Sortable) + ok.Boolean(v.Sortable) } return nil } -func awsAwsjson11_serializeDocumentSecurityGroupIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecurityGroupIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2782,9 +2690,9 @@ func awsAwsjson11_serializeDocumentServiceNowKnowledgeArticleConfiguration(v *ty object := value.Object() defer object.Close() - if v.CrawlAttachments != nil { + if v.CrawlAttachments { ok := object.Key("CrawlAttachments") - ok.Boolean(*v.CrawlAttachments) + ok.Boolean(v.CrawlAttachments) } if v.DocumentDataFieldName != nil { @@ -2825,9 +2733,9 @@ func awsAwsjson11_serializeDocumentServiceNowServiceCatalogConfiguration(v *type object := value.Object() defer object.Close() - if v.CrawlAttachments != nil { + if v.CrawlAttachments { ok := object.Key("CrawlAttachments") - ok.Boolean(*v.CrawlAttachments) + ok.Boolean(v.CrawlAttachments) } if v.DocumentDataFieldName != nil { @@ -2868,9 +2776,9 @@ func awsAwsjson11_serializeDocumentSharePointConfiguration(v *types.SharePointCo object := value.Object() defer object.Close() - if v.CrawlAttachments != nil { + if v.CrawlAttachments { ok := object.Key("CrawlAttachments") - ok.Boolean(*v.CrawlAttachments) + ok.Boolean(v.CrawlAttachments) } if v.DocumentTitleFieldName != nil { @@ -2916,9 +2824,9 @@ func awsAwsjson11_serializeDocumentSharePointConfiguration(v *types.SharePointCo } } - if v.UseChangeLog != nil { + if v.UseChangeLog { ok := object.Key("UseChangeLog") - ok.Boolean(*v.UseChangeLog) + ok.Boolean(v.UseChangeLog) } if v.VpcConfiguration != nil { @@ -2931,17 +2839,13 @@ func awsAwsjson11_serializeDocumentSharePointConfiguration(v *types.SharePointCo return nil } -func awsAwsjson11_serializeDocumentSharePointUrlList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSharePointUrlList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2975,17 +2879,13 @@ func awsAwsjson11_serializeDocumentSqlConfiguration(v *types.SqlConfiguration, v return nil } -func awsAwsjson11_serializeDocumentSubnetIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnetIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3007,32 +2907,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -3056,17 +2948,13 @@ func awsAwsjson11_serializeDocumentTimeRange(v *types.TimeRange, value smithyjso return nil } -func awsAwsjson11_serializeDocumentValueImportanceMap(v map[string]*int32, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentValueImportanceMap(v map[string]int32, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.Integer(*v[key]) + om.Integer(v[key]) } return nil } diff --git a/service/kendra/types/types.go b/service/kendra/types/types.go index 911093e916b..776fe6370f1 100644 --- a/service/kendra/types/types.go +++ b/service/kendra/types/types.go @@ -62,7 +62,7 @@ type AdditionalResultAttributeValue struct { type AttributeFilter struct { // Performs a logical AND operation on all supplied filters. - AndAllFilters []*AttributeFilter + AndAllFilters []AttributeFilter // Returns true when a document contains all of the specified document attributes. // This filter is only applicable to StringListValue metadata. @@ -95,7 +95,7 @@ type AttributeFilter struct { NotFilter *AttributeFilter // Performs a logical OR operation on all supplied filters. - OrAllFilters []*AttributeFilter + OrAllFilters []AttributeFilter } // Provides information about documents that could not be removed from an index by @@ -164,7 +164,7 @@ type ColumnConfiguration struct { // One to five columns that indicate when a document in the database has changed. // // This member is required. - ChangeDetectingColumns []*string + ChangeDetectingColumns []string // The column that contains the contents of the document. // @@ -182,7 +182,7 @@ type ColumnConfiguration struct { // An array of objects that map database column names to the corresponding fields // in an index. You must first create the fields in the index using the UpdateIndex // operation. - FieldMappings []*DataSourceToIndexFieldMapping + FieldMappings []DataSourceToIndexFieldMapping } // Specifies the attachment settings for the Confluence data source. Attachment @@ -194,11 +194,11 @@ type ConfluenceAttachmentConfiguration struct { // you can map a field, you must first create an index field with a matching type // using the console or the UpdateIndex operation. If you specify the // AttachentFieldMappings parameter, you must specify at least one field mapping. - AttachmentFieldMappings []*ConfluenceAttachmentToIndexFieldMapping + AttachmentFieldMappings []ConfluenceAttachmentToIndexFieldMapping // Indicates whether Amazon Kendra indexes attachments to the pages and blogs in // the Confluence data source. - CrawlAttachments *bool + CrawlAttachments bool } // Defines the mapping between a field in the Confluence data source to a Amazon @@ -228,7 +228,7 @@ type ConfluenceBlogConfiguration struct { // can map a field, you must first create an index field with a matching type using // the console or the UpdateIndex operation. If you specify the BlogFieldMappings // parameter, you must specify at least one field mapping. - BlogFieldMappings []*ConfluenceBlogToIndexFieldMapping + BlogFieldMappings []ConfluenceBlogToIndexFieldMapping } // Defines the mapping between a blog field in the Confluence data source to a @@ -291,7 +291,7 @@ type ConfluenceConfiguration struct { // don't match the pattern are included in the index. If a item matches both an // exclusion pattern and an inclusion pattern, the item isn't included in the // index. - ExclusionPatterns []*string + ExclusionPatterns []string // A list of regular expression patterns that apply to a URL on the Confluence // server. An inclusion pattern can apply to a blog post, a page, a space, or an @@ -299,7 +299,7 @@ type ConfluenceConfiguration struct { // don't match the pattern are excluded from the index. If an item matches both an // inclusion pattern and an exclusion pattern, the item isn't included in the // index. - InclusionPatterns []*string + InclusionPatterns []string // Specifies configuration information for indexing Confluence pages. PageConfiguration *ConfluencePageConfiguration @@ -318,7 +318,7 @@ type ConfluencePageConfiguration struct { // can map a field, you must first create an index field with a matching type using // the console or the UpdateIndex operation. If you specify the PageFieldMappings // parameter, you must specify at least one field mapping. - PageFieldMappings []*ConfluencePageToIndexFieldMapping + PageFieldMappings []ConfluencePageToIndexFieldMapping } // Defines the mapping between a field in the Confluence data source to a Amazon @@ -342,32 +342,32 @@ type ConfluencePageToIndexFieldMapping struct { type ConfluenceSpaceConfiguration struct { // Specifies whether Amazon Kendra should index archived spaces. - CrawlArchivedSpaces *bool + CrawlArchivedSpaces bool // Specifies whether Amazon Kendra should index personal spaces. Users can add // restrictions to items in personal spaces. If personal spaces are indexed, // queries without user context information may return restricted items from a // personal space in their results. For more information, see Filtering on user // context (https://docs.aws.amazon.com/kendra/latest/dg/user-context-filter.html). - CrawlPersonalSpaces *bool + CrawlPersonalSpaces bool // A list of space keys of Confluence spaces. If you include a key, the blogs, // documents, and attachments in the space are not indexed. If a space is in both // the ExcludeSpaces and the IncludeSpaces list, the space is excluded. - ExcludeSpaces []*string + ExcludeSpaces []string // A list of space keys for Confluence spaces. If you include a key, the blogs, // documents, and attachments in the space are indexed. Spaces that aren't in the // list aren't indexed. A space in the list must exist. Otherwise, Amazon Kendra // logs an error when the data source is synchronized. If a space is in both the // IncludeSpaces and the ExcludeSpaces list, the space is excluded. - IncludeSpaces []*string + IncludeSpaces []string // Defines how space metadata fields should be mapped to index fields. Before you // can map a field, you must first create an index field with a matching type using // the console or the UpdateIndex operation. If you specify the SpaceFieldMappings // parameter, you must specify at least one field mapping. - SpaceFieldMappings []*ConfluenceSpaceToIndexFieldMapping + SpaceFieldMappings []ConfluenceSpaceToIndexFieldMapping } // Defines the mapping between a field in the Confluence data source to a Amazon @@ -605,14 +605,14 @@ type DataSourceVpcConfiguration struct { // groups should enable Amazon Kendra to connect to the data source. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of identifiers for subnets within your Amazon VPC. The subnets should be // able to connect to each other in the VPC, and they should have outgoing access // to the Internet through a NAT device. // // This member is required. - SubnetIds []*string + SubnetIds []string } // A document in an index. @@ -624,12 +624,12 @@ type Document struct { Id *string // Information to use for user context filtering. - AccessControlList []*Principal + AccessControlList []Principal // Custom attributes to apply to the document. Use the custom attributes to provide // additional information for searching, to provide facets for refining searches, // and to provide additional information in the query response. - Attributes []*DocumentAttribute + Attributes []DocumentAttribute // The contents of the document. Documents passed to the Blob parameter must be // base64 encoded. Your code might not need to encode the document file bytes if @@ -673,7 +673,7 @@ type DocumentAttributeValue struct { LongValue *int64 // A list of strings. - StringListValue []*string + StringListValue []string // A string, such as "department". StringValue *string @@ -739,7 +739,7 @@ type FacetResult struct { // An array of key/value pairs, where the key is the value of the attribute and the // count is the number of documents that share the key value. - DocumentAttributeValueCountPairs []*DocumentAttributeValueCountPair + DocumentAttributeValueCountPairs []DocumentAttributeValueCountPair // The data type of the facet value. This is the same as the type defined for the // index field when it was created. @@ -753,7 +753,7 @@ type FaqStatistics struct { // The total number of FAQ questions and answers contained in the index. // // This member is required. - IndexedQuestionAnswersCount *int32 + IndexedQuestionAnswersCount int32 } // Provides information about a frequently asked questions and answer contained in @@ -796,7 +796,7 @@ type Highlight struct { // Indicates whether the response is the best response. True if this is the best // response; otherwise, false. - TopAnswer *bool + TopAnswer bool } // A summary of information about an index. @@ -870,19 +870,19 @@ type OneDriveConfiguration struct { // pattern are not indexed. If you provide both an inclusion pattern and an // exclusion pattern, any item that matches the exclusion pattern isn't indexed. // The exclusion pattern is applied to the file name. - ExclusionPatterns []*string + ExclusionPatterns []string // A list of DataSourceToIndexFieldMapping objects that map Microsoft OneDrive // fields to custom fields in the Amazon Kendra index. You must first create the // index fields before you map OneDrive fields. - FieldMappings []*DataSourceToIndexFieldMapping + FieldMappings []DataSourceToIndexFieldMapping // A list of regular expression patterns. Documents that match the pattern are // included in the index. Documents that don't match the pattern are excluded from // the index. If a document matches both an inclusion pattern and an exclusion // pattern, the document is not included in the index. The exclusion pattern is // applied to the file name. - InclusionPatterns []*string + InclusionPatterns []string } // User accounts whose documents should be indexed. @@ -892,7 +892,7 @@ type OneDriveUsers struct { // email format, for example, username@tenantdomain. If you need to index the // documents of more than 100 users, use the OneDriveUserS3Path field to specify // the location of a file containing a list of users. - OneDriveUserList []*string + OneDriveUserList []string // The S3 bucket location of a file containing a list of users whose documents // should be indexed. @@ -925,12 +925,12 @@ type Principal struct { type QueryResultItem struct { // One or more additional attributes associated with the query result. - AdditionalAttributes []*AdditionalResultAttribute + AdditionalAttributes []AdditionalResultAttribute // An array of document attributes for the document that the query result maps to. // For example, the document author (Author) or the source URI (SourceUri) of the // document. - DocumentAttributes []*DocumentAttribute + DocumentAttributes []DocumentAttribute // An extract of the text in the document. Contains information about highlighting // the relevant terms in the excerpt. @@ -1001,7 +1001,7 @@ type Relevance struct { // If you add "HR",5 and "Legal",3 those departments are given special attention // when they appear in the metadata of a document. When those terms appear they are // given the specified importance instead of the regular importance for the boost. - ValueImportanceMap map[string]*int32 + ValueImportanceMap map[string]int32 } // Provides feedback on how relevant a document is to a search. Your application @@ -1043,16 +1043,16 @@ type S3DataSourceConfiguration struct { // pattern, the document is not indexed. For more information about glob patterns, // see glob (programming) (https://en.wikipedia.org/wiki/Glob_(programming)) in // Wikipedia. - ExclusionPatterns []*string + ExclusionPatterns []string // A list of glob patterns for documents that should be indexed. If a document that // matches an inclusion pattern also matches an exclusion pattern, the document is // not indexed. For more information about glob patterns, see glob (programming) // (https://en.wikipedia.org/wiki/Glob_(programming)) in Wikipedia. - InclusionPatterns []*string + InclusionPatterns []string // A list of S3 prefixes for the documents that should be included in the index. - InclusionPrefixes []*string + InclusionPrefixes []string } // Information required to find a specific file in an Amazon S3 bucket. @@ -1084,7 +1084,7 @@ type SalesforceChatterFeedConfiguration struct { DocumentTitleFieldName *string // Maps fields from a Salesforce chatter feed into Amazon Kendra index fields. - FieldMappings []*DataSourceToIndexFieldMapping + FieldMappings []DataSourceToIndexFieldMapping // Filters the documents in the feed based on status of the user. When you specify // ACTIVE_USERS only documents from users who have an active account are indexed. @@ -1132,21 +1132,21 @@ type SalesforceConfiguration struct { ChatterFeedConfiguration *SalesforceChatterFeedConfiguration // Indicates whether Amazon Kendra should index attachments to Salesforce objects. - CrawlAttachments *bool + CrawlAttachments bool // A list of regular expression patterns. Documents that match the patterns are // excluded from the index. Documents that don't match the patterns are included in // the index. If a document matches both an exclusion pattern and an inclusion // pattern, the document is not included in the index. The regex is applied to the // name of the attached file. - ExcludeAttachmentFilePatterns []*string + ExcludeAttachmentFilePatterns []string // A list of regular expression patterns. Documents that match the patterns are // included in the index. Documents that don't match the patterns are excluded from // the index. If a document matches both an inclusion pattern and an exclusion // pattern, the document is not included in the index. The regex is applied to the // name of the attached file. - IncludeAttachmentFilePatterns []*string + IncludeAttachmentFilePatterns []string // Specifies configuration information for the knowlege article types that Amazon // Kendra indexes. Amazon Kendra indexes standard knowledge articles and the @@ -1159,7 +1159,7 @@ type SalesforceConfiguration struct { StandardObjectAttachmentConfiguration *SalesforceStandardObjectAttachmentConfiguration // Specifies the Salesforce standard objects that Amazon Kendra indexes. - StandardObjectConfigurations []*SalesforceStandardObjectConfiguration + StandardObjectConfigurations []SalesforceStandardObjectConfiguration } // Provides configuration information for indexing Salesforce custom articles. @@ -1182,7 +1182,7 @@ type SalesforceCustomKnowledgeArticleTypeConfiguration struct { // One or more objects that map fields in the custom knowledge article to fields in // the Amazon Kendra index. - FieldMappings []*DataSourceToIndexFieldMapping + FieldMappings []DataSourceToIndexFieldMapping } // Specifies configuration information for the knowlege article types that Amazon @@ -1198,7 +1198,7 @@ type SalesforceKnowledgeArticleConfiguration struct { IncludedStates []SalesforceKnowledgeArticleState // Provides configuration information for custom Salesforce knowledge articles. - CustomKnowledgeArticleTypeConfigurations []*SalesforceCustomKnowledgeArticleTypeConfiguration + CustomKnowledgeArticleTypeConfigurations []SalesforceCustomKnowledgeArticleTypeConfiguration // Provides configuration information for standard Salesforce knowledge articles. StandardKnowledgeArticleTypeConfiguration *SalesforceStandardKnowledgeArticleTypeConfiguration @@ -1218,7 +1218,7 @@ type SalesforceStandardKnowledgeArticleTypeConfiguration struct { // One or more objects that map fields in the knowledge article to Amazon Kendra // index fields. The index field must exist before you can map a Salesforce field // to it. - FieldMappings []*DataSourceToIndexFieldMapping + FieldMappings []DataSourceToIndexFieldMapping } // Provides configuration information for processing attachments to Salesforce @@ -1230,7 +1230,7 @@ type SalesforceStandardObjectAttachmentConfiguration struct { // One or more objects that map fields in attachments to Amazon Kendra index // fields. - FieldMappings []*DataSourceToIndexFieldMapping + FieldMappings []DataSourceToIndexFieldMapping } // Specifies confguration information for indexing a single standard object. @@ -1254,7 +1254,7 @@ type SalesforceStandardObjectConfiguration struct { // One or more objects that map fields in the standard object to Amazon Kendra // index fields. The index field must exist before you can map a Salesforce field // to it. - FieldMappings []*DataSourceToIndexFieldMapping + FieldMappings []DataSourceToIndexFieldMapping } // Provides a relative ranking that indicates how confident Amazon Kendra is that @@ -1270,22 +1270,22 @@ type Search struct { // Determines whether the field is returned in the query response. The default is // true. - Displayable *bool + Displayable bool // Indicates that the field can be used to create search facets, a count of results // for each value in the field. The default is false . - Facetable *bool + Facetable bool // Determines whether the field is used in the search. If the Searchable field is // true, you can use relevance tuning to manually tune how Amazon Kendra weights // the field in the search. The default is true for string fields and false for // number and date fields. - Searchable *bool + Searchable bool // Determines whether the field can be used to sort the results of a query. If you // specify sorting on a field that does not have Sortable set to true, Amazon // Kendra returns an exception. The default is false. - Sortable *bool + Sortable bool } // Provides the identifier of the AWS KMS customer master key (CMK) used to encrypt @@ -1339,7 +1339,7 @@ type ServiceNowKnowledgeArticleConfiguration struct { DocumentDataFieldName *string // Indicates whether Amazon Kendra should index attachments to knowledge articles. - CrawlAttachments *bool + CrawlAttachments bool // The name of the ServiceNow field that is mapped to the index document title // field. @@ -1348,16 +1348,16 @@ type ServiceNowKnowledgeArticleConfiguration struct { // List of regular expressions applied to knowledge articles. Items that don't // match the inclusion pattern are not indexed. The regex is applied to the field // specified in the PatternTargetField - ExcludeAttachmentFilePatterns []*string + ExcludeAttachmentFilePatterns []string // Mapping between ServiceNow fields and Amazon Kendra index fields. You must // create the index field before you map the field. - FieldMappings []*DataSourceToIndexFieldMapping + FieldMappings []DataSourceToIndexFieldMapping // List of regular expressions applied to knowledge articles. Items that don't // match the inclusion pattern are not indexed. The regex is applied to the field // specified in the PatternTargetField. - IncludeAttachmentFilePatterns []*string + IncludeAttachmentFilePatterns []string } // Provides configuration information for crawling service catalog items in the @@ -1372,21 +1372,21 @@ type ServiceNowServiceCatalogConfiguration struct { // Indicates whether Amazon Kendra should crawl attachments to the service catalog // items. - CrawlAttachments *bool + CrawlAttachments bool // The name of the ServiceNow field that is mapped to the index document title // field. DocumentTitleFieldName *string // Determines the types of file attachments that are excluded from the index. - ExcludeAttachmentFilePatterns []*string + ExcludeAttachmentFilePatterns []string // Mapping between ServiceNow fields and Amazon Kendra index fields. You must // create the index field before you map the field. - FieldMappings []*DataSourceToIndexFieldMapping + FieldMappings []DataSourceToIndexFieldMapping // Determines the types of file attachments that are included in the index. - IncludeAttachmentFilePatterns []*string + IncludeAttachmentFilePatterns []string } // Provides configuration information for connecting to a Microsoft SharePoint data @@ -1413,11 +1413,11 @@ type SharePointConfiguration struct { // should be indexed. // // This member is required. - Urls []*string + Urls []string // TRUE to include attachments to documents stored in your Microsoft SharePoint // site in the index; otherwise, FALSE. - CrawlAttachments *bool + CrawlAttachments bool // The Microsoft SharePoint attribute field that contains the title of the // document. @@ -1428,28 +1428,28 @@ type SharePointConfiguration struct { // the index. If a document matches both an exclusion pattern and an inclusion // pattern, the document is not included in the index. The regex is applied to the // display URL of the SharePoint document. - ExclusionPatterns []*string + ExclusionPatterns []string // A list of DataSourceToIndexFieldMapping objects that map Microsoft SharePoint // attributes to custom fields in the Amazon Kendra index. You must first create // the index fields using the operation before you map SharePoint attributes. For // more information, see Mapping Data Source Fields // (https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html). - FieldMappings []*DataSourceToIndexFieldMapping + FieldMappings []DataSourceToIndexFieldMapping // A list of regular expression patterns. Documents that match the patterns are // included in the index. Documents that don't match the patterns are excluded from // the index. If a document matches both an inclusion pattern and an exclusion // pattern, the document is not included in the index. The regex is applied to the // display URL of the SharePoint document. - InclusionPatterns []*string + InclusionPatterns []string // Set to TRUE to use the Microsoft SharePoint change log to determine the // documents that need to be updated in the index. Depending on the size of the // SharePoint change log, it may take longer for Amazon Kendra to use the change // log than it takes it to determine the changed documents using the Amazon Kendra // document crawler. - UseChangeLog *bool + UseChangeLog bool // Provides information for connecting to an Amazon VPC. VpcConfiguration *DataSourceVpcConfiguration @@ -1537,19 +1537,19 @@ type TextDocumentStatistics struct { // The total size, in bytes, of the indexed documents. // // This member is required. - IndexedTextBytes *int64 + IndexedTextBytes int64 // The number of text documents indexed. // // This member is required. - IndexedTextDocumentsCount *int32 + IndexedTextDocumentsCount int32 } // Provides text and information about where to highlight the text. type TextWithHighlights struct { // The beginning and end of the text that should be highlighted. - Highlights []*Highlight + Highlights []Highlight // The text to display to the user. Text *string diff --git a/service/kendra/validators.go b/service/kendra/validators.go index c289cb589da..c22a6703a65 100644 --- a/service/kendra/validators.go +++ b/service/kendra/validators.go @@ -639,13 +639,13 @@ func validateAttributeFilter(v *types.AttributeFilter) error { } } -func validateAttributeFilterList(v []*types.AttributeFilter) error { +func validateAttributeFilterList(v []types.AttributeFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AttributeFilterList"} for i := range v { - if err := validateAttributeFilter(v[i]); err != nil { + if err := validateAttributeFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -692,13 +692,13 @@ func validateClickFeedback(v *types.ClickFeedback) error { } } -func validateClickFeedbackList(v []*types.ClickFeedback) error { +func validateClickFeedbackList(v []types.ClickFeedback) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ClickFeedbackList"} for i := range v { - if err := validateClickFeedback(v[i]); err != nil { + if err := validateClickFeedback(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -910,13 +910,13 @@ func validateDataSourceToIndexFieldMapping(v *types.DataSourceToIndexFieldMappin } } -func validateDataSourceToIndexFieldMappingList(v []*types.DataSourceToIndexFieldMapping) error { +func validateDataSourceToIndexFieldMappingList(v []types.DataSourceToIndexFieldMapping) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DataSourceToIndexFieldMappingList"} for i := range v { - if err := validateDataSourceToIndexFieldMapping(v[i]); err != nil { + if err := validateDataSourceToIndexFieldMapping(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -993,13 +993,13 @@ func validateDocumentAttribute(v *types.DocumentAttribute) error { } } -func validateDocumentAttributeList(v []*types.DocumentAttribute) error { +func validateDocumentAttributeList(v []types.DocumentAttribute) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DocumentAttributeList"} for i := range v { - if err := validateDocumentAttribute(v[i]); err != nil { + if err := validateDocumentAttribute(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1010,13 +1010,13 @@ func validateDocumentAttributeList(v []*types.DocumentAttribute) error { } } -func validateDocumentList(v []*types.Document) error { +func validateDocumentList(v []types.Document) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DocumentList"} for i := range v { - if err := validateDocument(v[i]); err != nil { + if err := validateDocument(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1045,13 +1045,13 @@ func validateDocumentMetadataConfiguration(v *types.DocumentMetadataConfiguratio } } -func validateDocumentMetadataConfigurationList(v []*types.DocumentMetadataConfiguration) error { +func validateDocumentMetadataConfigurationList(v []types.DocumentMetadataConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DocumentMetadataConfigurationList"} for i := range v { - if err := validateDocumentMetadataConfiguration(v[i]); err != nil { + if err := validateDocumentMetadataConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1130,13 +1130,13 @@ func validatePrincipal(v *types.Principal) error { } } -func validatePrincipalList(v []*types.Principal) error { +func validatePrincipalList(v []types.Principal) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PrincipalList"} for i := range v { - if err := validatePrincipal(v[i]); err != nil { + if err := validatePrincipal(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1165,13 +1165,13 @@ func validateRelevanceFeedback(v *types.RelevanceFeedback) error { } } -func validateRelevanceFeedbackList(v []*types.RelevanceFeedback) error { +func validateRelevanceFeedbackList(v []types.RelevanceFeedback) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RelevanceFeedbackList"} for i := range v { - if err := validateRelevanceFeedback(v[i]); err != nil { + if err := validateRelevanceFeedback(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1296,13 +1296,13 @@ func validateSalesforceCustomKnowledgeArticleTypeConfiguration(v *types.Salesfor } } -func validateSalesforceCustomKnowledgeArticleTypeConfigurationList(v []*types.SalesforceCustomKnowledgeArticleTypeConfiguration) error { +func validateSalesforceCustomKnowledgeArticleTypeConfigurationList(v []types.SalesforceCustomKnowledgeArticleTypeConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SalesforceCustomKnowledgeArticleTypeConfigurationList"} for i := range v { - if err := validateSalesforceCustomKnowledgeArticleTypeConfiguration(v[i]); err != nil { + if err := validateSalesforceCustomKnowledgeArticleTypeConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1398,13 +1398,13 @@ func validateSalesforceStandardObjectConfiguration(v *types.SalesforceStandardOb } } -func validateSalesforceStandardObjectConfigurationList(v []*types.SalesforceStandardObjectConfiguration) error { +func validateSalesforceStandardObjectConfigurationList(v []types.SalesforceStandardObjectConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SalesforceStandardObjectConfigurationList"} for i := range v { - if err := validateSalesforceStandardObjectConfiguration(v[i]); err != nil { + if err := validateSalesforceStandardObjectConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1553,13 +1553,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/kinesis/api_op_AddTagsToStream.go b/service/kinesis/api_op_AddTagsToStream.go index 1ea864ea2fc..6314b0981c9 100644 --- a/service/kinesis/api_op_AddTagsToStream.go +++ b/service/kinesis/api_op_AddTagsToStream.go @@ -43,7 +43,7 @@ type AddTagsToStreamInput struct { // A set of up to 10 key-value pairs to use to create the tags. // // This member is required. - Tags map[string]*string + Tags map[string]string } type AddTagsToStreamOutput struct { diff --git a/service/kinesis/api_op_GetRecords.go b/service/kinesis/api_op_GetRecords.go index d50a894ab0b..5496518ec3e 100644 --- a/service/kinesis/api_op_GetRecords.go +++ b/service/kinesis/api_op_GetRecords.go @@ -97,9 +97,9 @@ type GetRecordsOutput struct { // The data records retrieved from the shard. // // This member is required. - Records []*types.Record + Records []types.Record - ChildShards []*types.ChildShard + ChildShards []types.ChildShard // The number of milliseconds the GetRecords response is from the tip of the // stream, indicating how far behind current time the consumer is. A value of zero diff --git a/service/kinesis/api_op_ListShards.go b/service/kinesis/api_op_ListShards.go index 6f22a70eb16..ab20f3cfd5e 100644 --- a/service/kinesis/api_op_ListShards.go +++ b/service/kinesis/api_op_ListShards.go @@ -100,7 +100,7 @@ type ListShardsOutput struct { // of the shard, the shard's parent, and the shard that's adjacent to the shard's // parent. Each object also contains the starting and ending hash keys and the // starting and ending sequence numbers for the shard. - Shards []*types.Shard + Shards []types.Shard // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesis/api_op_ListStreamConsumers.go b/service/kinesis/api_op_ListStreamConsumers.go index 4b730e42d04..39fc8479a30 100644 --- a/service/kinesis/api_op_ListStreamConsumers.go +++ b/service/kinesis/api_op_ListStreamConsumers.go @@ -74,7 +74,7 @@ type ListStreamConsumersInput struct { type ListStreamConsumersOutput struct { // An array of JSON objects. Each object represents one registered consumer. - Consumers []*types.Consumer + Consumers []types.Consumer // When the number of consumers that are registered with the data stream is greater // than the default value for the MaxResults parameter, or if you explicitly diff --git a/service/kinesis/api_op_ListStreams.go b/service/kinesis/api_op_ListStreams.go index eddd0447431..c7205ab844e 100644 --- a/service/kinesis/api_op_ListStreams.go +++ b/service/kinesis/api_op_ListStreams.go @@ -59,7 +59,7 @@ type ListStreamsOutput struct { // ListStreams request. // // This member is required. - StreamNames []*string + StreamNames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesis/api_op_ListTagsForStream.go b/service/kinesis/api_op_ListTagsForStream.go index c2e8307ba4e..e1b6e446168 100644 --- a/service/kinesis/api_op_ListTagsForStream.go +++ b/service/kinesis/api_op_ListTagsForStream.go @@ -59,7 +59,7 @@ type ListTagsForStreamOutput struct { // ExclusiveStartTagKey and up to the specified Limit. // // This member is required. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesis/api_op_PutRecords.go b/service/kinesis/api_op_PutRecords.go index cd7d68413d6..e7b58cd739b 100644 --- a/service/kinesis/api_op_PutRecords.go +++ b/service/kinesis/api_op_PutRecords.go @@ -85,7 +85,7 @@ type PutRecordsInput struct { // The records associated with the request. // // This member is required. - Records []*types.PutRecordsRequestEntry + Records []types.PutRecordsRequestEntry // The stream name associated with the request. // @@ -102,7 +102,7 @@ type PutRecordsOutput struct { // be added to a stream includes ErrorCode and ErrorMessage in the result. // // This member is required. - Records []*types.PutRecordsResultEntry + Records []types.PutRecordsResultEntry // The encryption type used on the records. This parameter can be one of the // following values: diff --git a/service/kinesis/api_op_RemoveTagsFromStream.go b/service/kinesis/api_op_RemoveTagsFromStream.go index f5913f680f5..00ac74216d8 100644 --- a/service/kinesis/api_op_RemoveTagsFromStream.go +++ b/service/kinesis/api_op_RemoveTagsFromStream.go @@ -40,7 +40,7 @@ type RemoveTagsFromStreamInput struct { // A list of tag keys. Each corresponding tag is removed from the stream. // // This member is required. - TagKeys []*string + TagKeys []string } type RemoveTagsFromStreamOutput struct { diff --git a/service/kinesis/deserializers.go b/service/kinesis/deserializers.go index 818c246e56f..0d434d0cd0e 100644 --- a/service/kinesis/deserializers.go +++ b/service/kinesis/deserializers.go @@ -3777,7 +3777,7 @@ func awsAwsjson11_deserializeDocumentChildShard(v **types.ChildShard, value inte if !ok { return fmt.Errorf("expected ShardId to be of type string, got %T instead", value) } - sv.ShardId = &jtv + sv.ShardId = ptr.String(jtv) } default: @@ -3789,7 +3789,7 @@ func awsAwsjson11_deserializeDocumentChildShard(v **types.ChildShard, value inte return nil } -func awsAwsjson11_deserializeDocumentChildShardList(v *[]*types.ChildShard, value interface{}) error { +func awsAwsjson11_deserializeDocumentChildShardList(v *[]types.ChildShard, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3802,18 +3802,20 @@ func awsAwsjson11_deserializeDocumentChildShardList(v *[]*types.ChildShard, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ChildShard + var cv []types.ChildShard if *v == nil { - cv = []*types.ChildShard{} + cv = []types.ChildShard{} } else { cv = *v } for _, value := range shape { - var col *types.ChildShard - if err := awsAwsjson11_deserializeDocumentChildShard(&col, value); err != nil { + var col types.ChildShard + destAddr := &col + if err := awsAwsjson11_deserializeDocumentChildShard(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3849,7 +3851,7 @@ func awsAwsjson11_deserializeDocumentConsumer(v **types.Consumer, value interfac if !ok { return fmt.Errorf("expected ConsumerARN to be of type string, got %T instead", value) } - sv.ConsumerARN = &jtv + sv.ConsumerARN = ptr.String(jtv) } case "ConsumerCreationTimestamp": @@ -3871,7 +3873,7 @@ func awsAwsjson11_deserializeDocumentConsumer(v **types.Consumer, value interfac if !ok { return fmt.Errorf("expected ConsumerName to be of type string, got %T instead", value) } - sv.ConsumerName = &jtv + sv.ConsumerName = ptr.String(jtv) } case "ConsumerStatus": @@ -3920,7 +3922,7 @@ func awsAwsjson11_deserializeDocumentConsumerDescription(v **types.ConsumerDescr if !ok { return fmt.Errorf("expected ConsumerARN to be of type string, got %T instead", value) } - sv.ConsumerARN = &jtv + sv.ConsumerARN = ptr.String(jtv) } case "ConsumerCreationTimestamp": @@ -3942,7 +3944,7 @@ func awsAwsjson11_deserializeDocumentConsumerDescription(v **types.ConsumerDescr if !ok { return fmt.Errorf("expected ConsumerName to be of type string, got %T instead", value) } - sv.ConsumerName = &jtv + sv.ConsumerName = ptr.String(jtv) } case "ConsumerStatus": @@ -3960,7 +3962,7 @@ func awsAwsjson11_deserializeDocumentConsumerDescription(v **types.ConsumerDescr if !ok { return fmt.Errorf("expected StreamARN to be of type string, got %T instead", value) } - sv.StreamARN = &jtv + sv.StreamARN = ptr.String(jtv) } default: @@ -3972,7 +3974,7 @@ func awsAwsjson11_deserializeDocumentConsumerDescription(v **types.ConsumerDescr return nil } -func awsAwsjson11_deserializeDocumentConsumerList(v *[]*types.Consumer, value interface{}) error { +func awsAwsjson11_deserializeDocumentConsumerList(v *[]types.Consumer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3985,18 +3987,20 @@ func awsAwsjson11_deserializeDocumentConsumerList(v *[]*types.Consumer, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Consumer + var cv []types.Consumer if *v == nil { - cv = []*types.Consumer{} + cv = []types.Consumer{} } else { cv = *v } for _, value := range shape { - var col *types.Consumer - if err := awsAwsjson11_deserializeDocumentConsumer(&col, value); err != nil { + var col types.Consumer + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConsumer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4040,7 +4044,7 @@ func awsAwsjson11_deserializeDocumentEnhancedMetrics(v **types.EnhancedMetrics, return nil } -func awsAwsjson11_deserializeDocumentEnhancedMonitoringList(v *[]*types.EnhancedMetrics, value interface{}) error { +func awsAwsjson11_deserializeDocumentEnhancedMonitoringList(v *[]types.EnhancedMetrics, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4053,18 +4057,20 @@ func awsAwsjson11_deserializeDocumentEnhancedMonitoringList(v *[]*types.Enhanced return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EnhancedMetrics + var cv []types.EnhancedMetrics if *v == nil { - cv = []*types.EnhancedMetrics{} + cv = []types.EnhancedMetrics{} } else { cv = *v } for _, value := range shape { - var col *types.EnhancedMetrics - if err := awsAwsjson11_deserializeDocumentEnhancedMetrics(&col, value); err != nil { + var col types.EnhancedMetrics + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEnhancedMetrics(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4100,7 +4106,7 @@ func awsAwsjson11_deserializeDocumentExpiredIteratorException(v **types.ExpiredI if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4140,7 +4146,7 @@ func awsAwsjson11_deserializeDocumentExpiredNextTokenException(v **types.Expired if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4180,7 +4186,7 @@ func awsAwsjson11_deserializeDocumentHashKeyRange(v **types.HashKeyRange, value if !ok { return fmt.Errorf("expected HashKey to be of type string, got %T instead", value) } - sv.EndingHashKey = &jtv + sv.EndingHashKey = ptr.String(jtv) } case "StartingHashKey": @@ -4189,7 +4195,7 @@ func awsAwsjson11_deserializeDocumentHashKeyRange(v **types.HashKeyRange, value if !ok { return fmt.Errorf("expected HashKey to be of type string, got %T instead", value) } - sv.StartingHashKey = &jtv + sv.StartingHashKey = ptr.String(jtv) } default: @@ -4229,7 +4235,7 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4269,7 +4275,7 @@ func awsAwsjson11_deserializeDocumentKMSAccessDeniedException(v **types.KMSAcces if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4309,7 +4315,7 @@ func awsAwsjson11_deserializeDocumentKMSDisabledException(v **types.KMSDisabledE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4349,7 +4355,7 @@ func awsAwsjson11_deserializeDocumentKMSInvalidStateException(v **types.KMSInval if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4389,7 +4395,7 @@ func awsAwsjson11_deserializeDocumentKMSNotFoundException(v **types.KMSNotFoundE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4429,7 +4435,7 @@ func awsAwsjson11_deserializeDocumentKMSOptInRequired(v **types.KMSOptInRequired if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4469,7 +4475,7 @@ func awsAwsjson11_deserializeDocumentKMSThrottlingException(v **types.KMSThrottl if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4509,7 +4515,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4585,7 +4591,7 @@ func awsAwsjson11_deserializeDocumentProvisionedThroughputExceededException(v ** if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4625,7 +4631,7 @@ func awsAwsjson11_deserializeDocumentPutRecordsResultEntry(v **types.PutRecordsR if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -4634,7 +4640,7 @@ func awsAwsjson11_deserializeDocumentPutRecordsResultEntry(v **types.PutRecordsR if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "SequenceNumber": @@ -4643,7 +4649,7 @@ func awsAwsjson11_deserializeDocumentPutRecordsResultEntry(v **types.PutRecordsR if !ok { return fmt.Errorf("expected SequenceNumber to be of type string, got %T instead", value) } - sv.SequenceNumber = &jtv + sv.SequenceNumber = ptr.String(jtv) } case "ShardId": @@ -4652,7 +4658,7 @@ func awsAwsjson11_deserializeDocumentPutRecordsResultEntry(v **types.PutRecordsR if !ok { return fmt.Errorf("expected ShardId to be of type string, got %T instead", value) } - sv.ShardId = &jtv + sv.ShardId = ptr.String(jtv) } default: @@ -4664,7 +4670,7 @@ func awsAwsjson11_deserializeDocumentPutRecordsResultEntry(v **types.PutRecordsR return nil } -func awsAwsjson11_deserializeDocumentPutRecordsResultEntryList(v *[]*types.PutRecordsResultEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentPutRecordsResultEntryList(v *[]types.PutRecordsResultEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4677,18 +4683,20 @@ func awsAwsjson11_deserializeDocumentPutRecordsResultEntryList(v *[]*types.PutRe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PutRecordsResultEntry + var cv []types.PutRecordsResultEntry if *v == nil { - cv = []*types.PutRecordsResultEntry{} + cv = []types.PutRecordsResultEntry{} } else { cv = *v } for _, value := range shape { - var col *types.PutRecordsResultEntry - if err := awsAwsjson11_deserializeDocumentPutRecordsResultEntry(&col, value); err != nil { + var col types.PutRecordsResultEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPutRecordsResultEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4759,7 +4767,7 @@ func awsAwsjson11_deserializeDocumentRecord(v **types.Record, value interface{}) if !ok { return fmt.Errorf("expected PartitionKey to be of type string, got %T instead", value) } - sv.PartitionKey = &jtv + sv.PartitionKey = ptr.String(jtv) } case "SequenceNumber": @@ -4768,7 +4776,7 @@ func awsAwsjson11_deserializeDocumentRecord(v **types.Record, value interface{}) if !ok { return fmt.Errorf("expected SequenceNumber to be of type string, got %T instead", value) } - sv.SequenceNumber = &jtv + sv.SequenceNumber = ptr.String(jtv) } default: @@ -4780,7 +4788,7 @@ func awsAwsjson11_deserializeDocumentRecord(v **types.Record, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentRecordList(v *[]*types.Record, value interface{}) error { +func awsAwsjson11_deserializeDocumentRecordList(v *[]types.Record, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4793,18 +4801,20 @@ func awsAwsjson11_deserializeDocumentRecordList(v *[]*types.Record, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Record + var cv []types.Record if *v == nil { - cv = []*types.Record{} + cv = []types.Record{} } else { cv = *v } for _, value := range shape { - var col *types.Record - if err := awsAwsjson11_deserializeDocumentRecord(&col, value); err != nil { + var col types.Record + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4840,7 +4850,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4880,7 +4890,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4920,7 +4930,7 @@ func awsAwsjson11_deserializeDocumentSequenceNumberRange(v **types.SequenceNumbe if !ok { return fmt.Errorf("expected SequenceNumber to be of type string, got %T instead", value) } - sv.EndingSequenceNumber = &jtv + sv.EndingSequenceNumber = ptr.String(jtv) } case "StartingSequenceNumber": @@ -4929,7 +4939,7 @@ func awsAwsjson11_deserializeDocumentSequenceNumberRange(v **types.SequenceNumbe if !ok { return fmt.Errorf("expected SequenceNumber to be of type string, got %T instead", value) } - sv.StartingSequenceNumber = &jtv + sv.StartingSequenceNumber = ptr.String(jtv) } default: @@ -4969,7 +4979,7 @@ func awsAwsjson11_deserializeDocumentShard(v **types.Shard, value interface{}) e if !ok { return fmt.Errorf("expected ShardId to be of type string, got %T instead", value) } - sv.AdjacentParentShardId = &jtv + sv.AdjacentParentShardId = ptr.String(jtv) } case "HashKeyRange": @@ -4983,7 +4993,7 @@ func awsAwsjson11_deserializeDocumentShard(v **types.Shard, value interface{}) e if !ok { return fmt.Errorf("expected ShardId to be of type string, got %T instead", value) } - sv.ParentShardId = &jtv + sv.ParentShardId = ptr.String(jtv) } case "SequenceNumberRange": @@ -4997,7 +5007,7 @@ func awsAwsjson11_deserializeDocumentShard(v **types.Shard, value interface{}) e if !ok { return fmt.Errorf("expected ShardId to be of type string, got %T instead", value) } - sv.ShardId = &jtv + sv.ShardId = ptr.String(jtv) } default: @@ -5009,7 +5019,7 @@ func awsAwsjson11_deserializeDocumentShard(v **types.Shard, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentShardIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentShardIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5022,21 +5032,21 @@ func awsAwsjson11_deserializeDocumentShardIdList(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ShardId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5045,7 +5055,7 @@ func awsAwsjson11_deserializeDocumentShardIdList(v *[]*string, value interface{} return nil } -func awsAwsjson11_deserializeDocumentShardList(v *[]*types.Shard, value interface{}) error { +func awsAwsjson11_deserializeDocumentShardList(v *[]types.Shard, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5058,18 +5068,20 @@ func awsAwsjson11_deserializeDocumentShardList(v *[]*types.Shard, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Shard + var cv []types.Shard if *v == nil { - cv = []*types.Shard{} + cv = []types.Shard{} } else { cv = *v } for _, value := range shape { - var col *types.Shard - if err := awsAwsjson11_deserializeDocumentShard(&col, value); err != nil { + var col types.Shard + destAddr := &col + if err := awsAwsjson11_deserializeDocumentShard(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5119,7 +5131,7 @@ func awsAwsjson11_deserializeDocumentStreamDescription(v **types.StreamDescripti if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.HasMoreShards = &jtv + sv.HasMoreShards = ptr.Bool(jtv) } case "KeyId": @@ -5128,7 +5140,7 @@ func awsAwsjson11_deserializeDocumentStreamDescription(v **types.StreamDescripti if !ok { return fmt.Errorf("expected KeyId to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "RetentionPeriodHours": @@ -5155,7 +5167,7 @@ func awsAwsjson11_deserializeDocumentStreamDescription(v **types.StreamDescripti if !ok { return fmt.Errorf("expected StreamARN to be of type string, got %T instead", value) } - sv.StreamARN = &jtv + sv.StreamARN = ptr.String(jtv) } case "StreamCreationTimestamp": @@ -5177,7 +5189,7 @@ func awsAwsjson11_deserializeDocumentStreamDescription(v **types.StreamDescripti if !ok { return fmt.Errorf("expected StreamName to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } case "StreamStatus": @@ -5253,7 +5265,7 @@ func awsAwsjson11_deserializeDocumentStreamDescriptionSummary(v **types.StreamDe if !ok { return fmt.Errorf("expected KeyId to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "OpenShardCount": @@ -5288,7 +5300,7 @@ func awsAwsjson11_deserializeDocumentStreamDescriptionSummary(v **types.StreamDe if !ok { return fmt.Errorf("expected StreamARN to be of type string, got %T instead", value) } - sv.StreamARN = &jtv + sv.StreamARN = ptr.String(jtv) } case "StreamCreationTimestamp": @@ -5310,7 +5322,7 @@ func awsAwsjson11_deserializeDocumentStreamDescriptionSummary(v **types.StreamDe if !ok { return fmt.Errorf("expected StreamName to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } case "StreamStatus": @@ -5331,7 +5343,7 @@ func awsAwsjson11_deserializeDocumentStreamDescriptionSummary(v **types.StreamDe return nil } -func awsAwsjson11_deserializeDocumentStreamNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStreamNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5344,21 +5356,21 @@ func awsAwsjson11_deserializeDocumentStreamNameList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StreamName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5395,7 +5407,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -5404,7 +5416,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5416,7 +5428,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5429,18 +5441,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5806,7 +5820,7 @@ func awsAwsjson11_deserializeOpDocumentDisableEnhancedMonitoringOutput(v **Disab if !ok { return fmt.Errorf("expected StreamName to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } default: @@ -5856,7 +5870,7 @@ func awsAwsjson11_deserializeOpDocumentEnableEnhancedMonitoringOutput(v **Enable if !ok { return fmt.Errorf("expected StreamName to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } default: @@ -5905,7 +5919,7 @@ func awsAwsjson11_deserializeOpDocumentGetRecordsOutput(v **GetRecordsOutput, va if err != nil { return err } - sv.MillisBehindLatest = &i64 + sv.MillisBehindLatest = ptr.Int64(i64) } case "NextShardIterator": @@ -5914,7 +5928,7 @@ func awsAwsjson11_deserializeOpDocumentGetRecordsOutput(v **GetRecordsOutput, va if !ok { return fmt.Errorf("expected ShardIterator to be of type string, got %T instead", value) } - sv.NextShardIterator = &jtv + sv.NextShardIterator = ptr.String(jtv) } case "Records": @@ -5959,7 +5973,7 @@ func awsAwsjson11_deserializeOpDocumentGetShardIteratorOutput(v **GetShardIterat if !ok { return fmt.Errorf("expected ShardIterator to be of type string, got %T instead", value) } - sv.ShardIterator = &jtv + sv.ShardIterator = ptr.String(jtv) } default: @@ -6030,7 +6044,7 @@ func awsAwsjson11_deserializeOpDocumentListShardsOutput(v **ListShardsOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Shards": @@ -6080,7 +6094,7 @@ func awsAwsjson11_deserializeOpDocumentListStreamConsumersOutput(v **ListStreamC if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6120,7 +6134,7 @@ func awsAwsjson11_deserializeOpDocumentListStreamsOutput(v **ListStreamsOutput, if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.HasMoreStreams = &jtv + sv.HasMoreStreams = ptr.Bool(jtv) } case "StreamNames": @@ -6165,7 +6179,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForStreamOutput(v **ListTagsForSt if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.HasMoreTags = &jtv + sv.HasMoreTags = ptr.Bool(jtv) } case "Tags": @@ -6250,7 +6264,7 @@ func awsAwsjson11_deserializeOpDocumentPutRecordOutput(v **PutRecordOutput, valu if !ok { return fmt.Errorf("expected SequenceNumber to be of type string, got %T instead", value) } - sv.SequenceNumber = &jtv + sv.SequenceNumber = ptr.String(jtv) } case "ShardId": @@ -6259,7 +6273,7 @@ func awsAwsjson11_deserializeOpDocumentPutRecordOutput(v **PutRecordOutput, valu if !ok { return fmt.Errorf("expected ShardId to be of type string, got %T instead", value) } - sv.ShardId = &jtv + sv.ShardId = ptr.String(jtv) } default: @@ -6530,7 +6544,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateShardCountOutput(v **UpdateShardCou if !ok { return fmt.Errorf("expected StreamName to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } case "TargetShardCount": diff --git a/service/kinesis/go.mod b/service/kinesis/go.mod index 6c23832265f..1a394b808d6 100644 --- a/service/kinesis/go.mod +++ b/service/kinesis/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/kinesis go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/kinesis/serializers.go b/service/kinesis/serializers.go index 97ec938f20b..5a7756006c8 100644 --- a/service/kinesis/serializers.go +++ b/service/kinesis/serializers.go @@ -1282,17 +1282,13 @@ func awsAwsjson11_serializeDocumentPutRecordsRequestEntry(v *types.PutRecordsReq return nil } -func awsAwsjson11_serializeDocumentPutRecordsRequestEntryList(v []*types.PutRecordsRequestEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPutRecordsRequestEntryList(v []types.PutRecordsRequestEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPutRecordsRequestEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPutRecordsRequestEntry(&v[i], av); err != nil { return err } } @@ -1321,32 +1317,24 @@ func awsAwsjson11_serializeDocumentShardFilter(v *types.ShardFilter, value smith return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/kinesis/types/types.go b/service/kinesis/types/types.go index 46e581ef251..88f33d5d574 100644 --- a/service/kinesis/types/types.go +++ b/service/kinesis/types/types.go @@ -14,7 +14,7 @@ type ChildShard struct { // This member is required. HashKeyRange *HashKeyRange - ParentShards []*string + ParentShards []string ShardId *string } @@ -270,7 +270,7 @@ type StreamDescription struct { // Represents the current enhanced monitoring settings of the stream. // // This member is required. - EnhancedMonitoring []*EnhancedMetrics + EnhancedMonitoring []EnhancedMetrics // If set to true, more shards in the stream are available to describe. // @@ -286,7 +286,7 @@ type StreamDescription struct { // The shards that comprise the stream. // // This member is required. - Shards []*Shard + Shards []Shard // The Amazon Resource Name (ARN) for the stream being described. // @@ -362,7 +362,7 @@ type StreamDescriptionSummary struct { // Represents the current enhanced monitoring settings of the stream. // // This member is required. - EnhancedMonitoring []*EnhancedMetrics + EnhancedMonitoring []EnhancedMetrics // The number of open shards in the stream. // diff --git a/service/kinesis/validators.go b/service/kinesis/validators.go index 4e55a4ad48d..d936c317bda 100644 --- a/service/kinesis/validators.go +++ b/service/kinesis/validators.go @@ -580,13 +580,13 @@ func validatePutRecordsRequestEntry(v *types.PutRecordsRequestEntry) error { } } -func validatePutRecordsRequestEntryList(v []*types.PutRecordsRequestEntry) error { +func validatePutRecordsRequestEntryList(v []types.PutRecordsRequestEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PutRecordsRequestEntryList"} for i := range v { - if err := validatePutRecordsRequestEntry(v[i]); err != nil { + if err := validatePutRecordsRequestEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/kinesisanalytics/api_op_CreateApplication.go b/service/kinesisanalytics/api_op_CreateApplication.go index 18ad39cf292..173e6dcaccb 100644 --- a/service/kinesisanalytics/api_op_CreateApplication.go +++ b/service/kinesisanalytics/api_op_CreateApplication.go @@ -80,7 +80,7 @@ type CreateApplicationInput struct { // configuration errors. For more information, see Working with Amazon CloudWatch // Logs // (https://docs.aws.amazon.com/kinesisanalytics/latest/dev/cloudwatch-logs.html). - CloudWatchLoggingOptions []*types.CloudWatchLoggingOption + CloudWatchLoggingOptions []types.CloudWatchLoggingOption // Use this parameter to configure the application input. You can configure your // application to receive input from a single streaming source. In this @@ -94,7 +94,7 @@ type CreateApplicationInput struct { // data into a schematized version used in SQL. In the schema, you provide the // necessary mapping of the data elements in the streaming source to record columns // in the in-app stream. - Inputs []*types.Input + Inputs []types.Input // You can configure application output to write data from any of the // in-application streams to up to three destinations. These destinations can be @@ -108,14 +108,14 @@ type CreateApplicationInput struct { // stream destinations, you provide the format of data in the stream (for example, // JSON, CSV). You also must provide an IAM role that Amazon Kinesis Analytics can // assume to write to the stream or Lambda function on your behalf. - Outputs []*types.Output + Outputs []types.Output // A list of one or more tags to assign to the application. A tag is a key-value // pair that identifies an application. Note that the maximum number of application // tags includes system tags. The maximum number of user-defined application tags // is 50. For more information, see Using Tagging // (https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-tagging.html). - Tags []*types.Tag + Tags []types.Tag } // TBD diff --git a/service/kinesisanalytics/api_op_DiscoverInputSchema.go b/service/kinesisanalytics/api_op_DiscoverInputSchema.go index 6970edec11a..99ad34b20b2 100644 --- a/service/kinesisanalytics/api_op_DiscoverInputSchema.go +++ b/service/kinesisanalytics/api_op_DiscoverInputSchema.go @@ -72,14 +72,14 @@ type DiscoverInputSchemaOutput struct { // An array of elements, where each element corresponds to a row in a stream record // (a stream record can have more than one row). - ParsedInputRecords [][]*string + ParsedInputRecords [][]string // Stream data that was modified by the processor specified in the // InputProcessingConfiguration parameter. - ProcessedInputRecords []*string + ProcessedInputRecords []string // Raw stream data that was sampled to infer the schema. - RawInputRecords []*string + RawInputRecords []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalytics/api_op_ListApplications.go b/service/kinesisanalytics/api_op_ListApplications.go index d78dc837cfe..e176a112336 100644 --- a/service/kinesisanalytics/api_op_ListApplications.go +++ b/service/kinesisanalytics/api_op_ListApplications.go @@ -60,7 +60,7 @@ type ListApplicationsOutput struct { // List of ApplicationSummary objects. // // This member is required. - ApplicationSummaries []*types.ApplicationSummary + ApplicationSummaries []types.ApplicationSummary // Returns true if there are more applications to retrieve. // diff --git a/service/kinesisanalytics/api_op_ListTagsForResource.go b/service/kinesisanalytics/api_op_ListTagsForResource.go index 32628fb0f81..a5247b67d4f 100644 --- a/service/kinesisanalytics/api_op_ListTagsForResource.go +++ b/service/kinesisanalytics/api_op_ListTagsForResource.go @@ -40,7 +40,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The key-value tags assigned to the application. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalytics/api_op_StartApplication.go b/service/kinesisanalytics/api_op_StartApplication.go index ca44e99a9b1..2730cc6c754 100644 --- a/service/kinesisanalytics/api_op_StartApplication.go +++ b/service/kinesisanalytics/api_op_StartApplication.go @@ -56,7 +56,7 @@ type StartApplicationInput struct { // Kinesis Analytics to start reading. // // This member is required. - InputConfigurations []*types.InputConfiguration + InputConfigurations []types.InputConfiguration } // diff --git a/service/kinesisanalytics/api_op_TagResource.go b/service/kinesisanalytics/api_op_TagResource.go index 841af8710eb..05b341b9591 100644 --- a/service/kinesisanalytics/api_op_TagResource.go +++ b/service/kinesisanalytics/api_op_TagResource.go @@ -40,7 +40,7 @@ type TagResourceInput struct { // The key-value tags to assign to the application. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/kinesisanalytics/api_op_UntagResource.go b/service/kinesisanalytics/api_op_UntagResource.go index 8a632cae241..3e7b1c2b9e7 100644 --- a/service/kinesisanalytics/api_op_UntagResource.go +++ b/service/kinesisanalytics/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // A list of keys of tags to remove from the specified application. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/kinesisanalytics/deserializers.go b/service/kinesisanalytics/deserializers.go index 011971dc3c4..1318a666091 100644 --- a/service/kinesisanalytics/deserializers.go +++ b/service/kinesisanalytics/deserializers.go @@ -2894,7 +2894,7 @@ func awsAwsjson11_deserializeDocumentApplicationDetail(v **types.ApplicationDeta if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationCode": @@ -2903,7 +2903,7 @@ func awsAwsjson11_deserializeDocumentApplicationDetail(v **types.ApplicationDeta if !ok { return fmt.Errorf("expected ApplicationCode to be of type string, got %T instead", value) } - sv.ApplicationCode = &jtv + sv.ApplicationCode = ptr.String(jtv) } case "ApplicationDescription": @@ -2912,7 +2912,7 @@ func awsAwsjson11_deserializeDocumentApplicationDetail(v **types.ApplicationDeta if !ok { return fmt.Errorf("expected ApplicationDescription to be of type string, got %T instead", value) } - sv.ApplicationDescription = &jtv + sv.ApplicationDescription = ptr.String(jtv) } case "ApplicationName": @@ -2921,7 +2921,7 @@ func awsAwsjson11_deserializeDocumentApplicationDetail(v **types.ApplicationDeta if !ok { return fmt.Errorf("expected ApplicationName to be of type string, got %T instead", value) } - sv.ApplicationName = &jtv + sv.ApplicationName = ptr.String(jtv) } case "ApplicationStatus": @@ -2943,7 +2943,7 @@ func awsAwsjson11_deserializeDocumentApplicationDetail(v **types.ApplicationDeta if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } case "CloudWatchLoggingOptionDescriptions": @@ -3001,7 +3001,7 @@ func awsAwsjson11_deserializeDocumentApplicationDetail(v **types.ApplicationDeta return nil } -func awsAwsjson11_deserializeDocumentApplicationSummaries(v *[]*types.ApplicationSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentApplicationSummaries(v *[]types.ApplicationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3014,18 +3014,20 @@ func awsAwsjson11_deserializeDocumentApplicationSummaries(v *[]*types.Applicatio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApplicationSummary + var cv []types.ApplicationSummary if *v == nil { - cv = []*types.ApplicationSummary{} + cv = []types.ApplicationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ApplicationSummary - if err := awsAwsjson11_deserializeDocumentApplicationSummary(&col, value); err != nil { + var col types.ApplicationSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentApplicationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3061,7 +3063,7 @@ func awsAwsjson11_deserializeDocumentApplicationSummary(v **types.ApplicationSum if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationName": @@ -3070,7 +3072,7 @@ func awsAwsjson11_deserializeDocumentApplicationSummary(v **types.ApplicationSum if !ok { return fmt.Errorf("expected ApplicationName to be of type string, got %T instead", value) } - sv.ApplicationName = &jtv + sv.ApplicationName = ptr.String(jtv) } case "ApplicationStatus": @@ -3119,7 +3121,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescription(v **type if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.CloudWatchLoggingOptionId = &jtv + sv.CloudWatchLoggingOptionId = ptr.String(jtv) } case "LogStreamARN": @@ -3128,7 +3130,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescription(v **type if !ok { return fmt.Errorf("expected LogStreamARN to be of type string, got %T instead", value) } - sv.LogStreamARN = &jtv + sv.LogStreamARN = ptr.String(jtv) } case "RoleARN": @@ -3137,7 +3139,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescription(v **type if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -3149,7 +3151,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescription(v **type return nil } -func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescriptions(v *[]*types.CloudWatchLoggingOptionDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescriptions(v *[]types.CloudWatchLoggingOptionDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3162,18 +3164,20 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescriptions(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CloudWatchLoggingOptionDescription + var cv []types.CloudWatchLoggingOptionDescription if *v == nil { - cv = []*types.CloudWatchLoggingOptionDescription{} + cv = []types.CloudWatchLoggingOptionDescription{} } else { cv = *v } for _, value := range shape { - var col *types.CloudWatchLoggingOptionDescription - if err := awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescription(&col, value); err != nil { + var col types.CloudWatchLoggingOptionDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3209,7 +3213,7 @@ func awsAwsjson11_deserializeDocumentCodeValidationException(v **types.CodeValid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3249,7 +3253,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3289,7 +3293,7 @@ func awsAwsjson11_deserializeDocumentCSVMappingParameters(v **types.CSVMappingPa if !ok { return fmt.Errorf("expected RecordColumnDelimiter to be of type string, got %T instead", value) } - sv.RecordColumnDelimiter = &jtv + sv.RecordColumnDelimiter = ptr.String(jtv) } case "RecordRowDelimiter": @@ -3298,7 +3302,7 @@ func awsAwsjson11_deserializeDocumentCSVMappingParameters(v **types.CSVMappingPa if !ok { return fmt.Errorf("expected RecordRowDelimiter to be of type string, got %T instead", value) } - sv.RecordRowDelimiter = &jtv + sv.RecordRowDelimiter = ptr.String(jtv) } default: @@ -3350,7 +3354,7 @@ func awsAwsjson11_deserializeDocumentDestinationSchema(v **types.DestinationSche return nil } -func awsAwsjson11_deserializeDocumentInAppStreamNames(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentInAppStreamNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3363,21 +3367,21 @@ func awsAwsjson11_deserializeDocumentInAppStreamNames(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected InAppStreamName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3419,7 +3423,7 @@ func awsAwsjson11_deserializeDocumentInputDescription(v **types.InputDescription if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.InputId = &jtv + sv.InputId = ptr.String(jtv) } case "InputParallelism": @@ -3458,7 +3462,7 @@ func awsAwsjson11_deserializeDocumentInputDescription(v **types.InputDescription if !ok { return fmt.Errorf("expected InAppStreamName to be of type string, got %T instead", value) } - sv.NamePrefix = &jtv + sv.NamePrefix = ptr.String(jtv) } default: @@ -3470,7 +3474,7 @@ func awsAwsjson11_deserializeDocumentInputDescription(v **types.InputDescription return nil } -func awsAwsjson11_deserializeDocumentInputDescriptions(v *[]*types.InputDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentInputDescriptions(v *[]types.InputDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3483,18 +3487,20 @@ func awsAwsjson11_deserializeDocumentInputDescriptions(v *[]*types.InputDescript return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputDescription + var cv []types.InputDescription if *v == nil { - cv = []*types.InputDescription{} + cv = []types.InputDescription{} } else { cv = *v } for _, value := range shape { - var col *types.InputDescription - if err := awsAwsjson11_deserializeDocumentInputDescription(&col, value); err != nil { + var col types.InputDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInputDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3530,7 +3536,7 @@ func awsAwsjson11_deserializeDocumentInputLambdaProcessorDescription(v **types.I if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "RoleARN": @@ -3539,7 +3545,7 @@ func awsAwsjson11_deserializeDocumentInputLambdaProcessorDescription(v **types.I if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -3699,7 +3705,7 @@ func awsAwsjson11_deserializeDocumentInvalidApplicationConfigurationException(v if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3739,7 +3745,7 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3779,7 +3785,7 @@ func awsAwsjson11_deserializeDocumentJSONMappingParameters(v **types.JSONMapping if !ok { return fmt.Errorf("expected RecordRowPath to be of type string, got %T instead", value) } - sv.RecordRowPath = &jtv + sv.RecordRowPath = ptr.String(jtv) } default: @@ -3819,7 +3825,7 @@ func awsAwsjson11_deserializeDocumentKinesisFirehoseInputDescription(v **types.K if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "RoleARN": @@ -3828,7 +3834,7 @@ func awsAwsjson11_deserializeDocumentKinesisFirehoseInputDescription(v **types.K if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -3868,7 +3874,7 @@ func awsAwsjson11_deserializeDocumentKinesisFirehoseOutputDescription(v **types. if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "RoleARN": @@ -3877,7 +3883,7 @@ func awsAwsjson11_deserializeDocumentKinesisFirehoseOutputDescription(v **types. if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -3917,7 +3923,7 @@ func awsAwsjson11_deserializeDocumentKinesisStreamsInputDescription(v **types.Ki if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "RoleARN": @@ -3926,7 +3932,7 @@ func awsAwsjson11_deserializeDocumentKinesisStreamsInputDescription(v **types.Ki if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -3966,7 +3972,7 @@ func awsAwsjson11_deserializeDocumentKinesisStreamsOutputDescription(v **types.K if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "RoleARN": @@ -3975,7 +3981,7 @@ func awsAwsjson11_deserializeDocumentKinesisStreamsOutputDescription(v **types.K if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -4015,7 +4021,7 @@ func awsAwsjson11_deserializeDocumentLambdaOutputDescription(v **types.LambdaOut if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "RoleARN": @@ -4024,7 +4030,7 @@ func awsAwsjson11_deserializeDocumentLambdaOutputDescription(v **types.LambdaOut if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -4064,7 +4070,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4165,7 +4171,7 @@ func awsAwsjson11_deserializeDocumentOutputDescription(v **types.OutputDescripti if !ok { return fmt.Errorf("expected InAppStreamName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OutputId": @@ -4174,7 +4180,7 @@ func awsAwsjson11_deserializeDocumentOutputDescription(v **types.OutputDescripti if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.OutputId = &jtv + sv.OutputId = ptr.String(jtv) } default: @@ -4186,7 +4192,7 @@ func awsAwsjson11_deserializeDocumentOutputDescription(v **types.OutputDescripti return nil } -func awsAwsjson11_deserializeDocumentOutputDescriptions(v *[]*types.OutputDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentOutputDescriptions(v *[]types.OutputDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4199,18 +4205,20 @@ func awsAwsjson11_deserializeDocumentOutputDescriptions(v *[]*types.OutputDescri return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutputDescription + var cv []types.OutputDescription if *v == nil { - cv = []*types.OutputDescription{} + cv = []types.OutputDescription{} } else { cv = *v } for _, value := range shape { - var col *types.OutputDescription - if err := awsAwsjson11_deserializeDocumentOutputDescription(&col, value); err != nil { + var col types.OutputDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOutputDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4218,7 +4226,7 @@ func awsAwsjson11_deserializeDocumentOutputDescriptions(v *[]*types.OutputDescri return nil } -func awsAwsjson11_deserializeDocumentParsedInputRecord(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentParsedInputRecord(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4231,21 +4239,21 @@ func awsAwsjson11_deserializeDocumentParsedInputRecord(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParsedInputRecordField to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4254,7 +4262,7 @@ func awsAwsjson11_deserializeDocumentParsedInputRecord(v *[]*string, value inter return nil } -func awsAwsjson11_deserializeDocumentParsedInputRecords(v *[][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentParsedInputRecords(v *[][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4267,15 +4275,15 @@ func awsAwsjson11_deserializeDocumentParsedInputRecords(v *[][]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv [][]*string + var cv [][]string if *v == nil { - cv = [][]*string{} + cv = [][]string{} } else { cv = *v } for _, value := range shape { - var col []*string + var col []string if err := awsAwsjson11_deserializeDocumentParsedInputRecord(&col, value); err != nil { return err } @@ -4286,7 +4294,7 @@ func awsAwsjson11_deserializeDocumentParsedInputRecords(v *[][]*string, value in return nil } -func awsAwsjson11_deserializeDocumentProcessedInputRecords(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentProcessedInputRecords(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4299,21 +4307,21 @@ func awsAwsjson11_deserializeDocumentProcessedInputRecords(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ProcessedInputRecord to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4322,7 +4330,7 @@ func awsAwsjson11_deserializeDocumentProcessedInputRecords(v *[]*string, value i return nil } -func awsAwsjson11_deserializeDocumentRawInputRecords(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRawInputRecords(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4335,21 +4343,21 @@ func awsAwsjson11_deserializeDocumentRawInputRecords(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RawInputRecord to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4386,7 +4394,7 @@ func awsAwsjson11_deserializeDocumentRecordColumn(v **types.RecordColumn, value if !ok { return fmt.Errorf("expected RecordColumnMapping to be of type string, got %T instead", value) } - sv.Mapping = &jtv + sv.Mapping = ptr.String(jtv) } case "Name": @@ -4395,7 +4403,7 @@ func awsAwsjson11_deserializeDocumentRecordColumn(v **types.RecordColumn, value if !ok { return fmt.Errorf("expected RecordColumnName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SqlType": @@ -4404,7 +4412,7 @@ func awsAwsjson11_deserializeDocumentRecordColumn(v **types.RecordColumn, value if !ok { return fmt.Errorf("expected RecordColumnSqlType to be of type string, got %T instead", value) } - sv.SqlType = &jtv + sv.SqlType = ptr.String(jtv) } default: @@ -4416,7 +4424,7 @@ func awsAwsjson11_deserializeDocumentRecordColumn(v **types.RecordColumn, value return nil } -func awsAwsjson11_deserializeDocumentRecordColumns(v *[]*types.RecordColumn, value interface{}) error { +func awsAwsjson11_deserializeDocumentRecordColumns(v *[]types.RecordColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4429,18 +4437,20 @@ func awsAwsjson11_deserializeDocumentRecordColumns(v *[]*types.RecordColumn, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecordColumn + var cv []types.RecordColumn if *v == nil { - cv = []*types.RecordColumn{} + cv = []types.RecordColumn{} } else { cv = *v } for _, value := range shape { - var col *types.RecordColumn - if err := awsAwsjson11_deserializeDocumentRecordColumn(&col, value); err != nil { + var col types.RecordColumn + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRecordColumn(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4521,7 +4531,7 @@ func awsAwsjson11_deserializeDocumentReferenceDataSourceDescription(v **types.Re if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ReferenceId = &jtv + sv.ReferenceId = ptr.String(jtv) } case "ReferenceSchema": @@ -4540,7 +4550,7 @@ func awsAwsjson11_deserializeDocumentReferenceDataSourceDescription(v **types.Re if !ok { return fmt.Errorf("expected InAppTableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -4552,7 +4562,7 @@ func awsAwsjson11_deserializeDocumentReferenceDataSourceDescription(v **types.Re return nil } -func awsAwsjson11_deserializeDocumentReferenceDataSourceDescriptions(v *[]*types.ReferenceDataSourceDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentReferenceDataSourceDescriptions(v *[]types.ReferenceDataSourceDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4565,18 +4575,20 @@ func awsAwsjson11_deserializeDocumentReferenceDataSourceDescriptions(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReferenceDataSourceDescription + var cv []types.ReferenceDataSourceDescription if *v == nil { - cv = []*types.ReferenceDataSourceDescription{} + cv = []types.ReferenceDataSourceDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ReferenceDataSourceDescription - if err := awsAwsjson11_deserializeDocumentReferenceDataSourceDescription(&col, value); err != nil { + var col types.ReferenceDataSourceDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReferenceDataSourceDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4612,7 +4624,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4652,7 +4664,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4692,7 +4704,7 @@ func awsAwsjson11_deserializeDocumentResourceProvisionedThroughputExceededExcept if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4732,7 +4744,7 @@ func awsAwsjson11_deserializeDocumentS3ReferenceDataSourceDescription(v **types. if !ok { return fmt.Errorf("expected BucketARN to be of type string, got %T instead", value) } - sv.BucketARN = &jtv + sv.BucketARN = ptr.String(jtv) } case "FileKey": @@ -4741,7 +4753,7 @@ func awsAwsjson11_deserializeDocumentS3ReferenceDataSourceDescription(v **types. if !ok { return fmt.Errorf("expected FileKey to be of type string, got %T instead", value) } - sv.FileKey = &jtv + sv.FileKey = ptr.String(jtv) } case "ReferenceRoleARN": @@ -4750,7 +4762,7 @@ func awsAwsjson11_deserializeDocumentS3ReferenceDataSourceDescription(v **types. if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.ReferenceRoleARN = &jtv + sv.ReferenceRoleARN = ptr.String(jtv) } default: @@ -4790,7 +4802,7 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4835,7 +4847,7 @@ func awsAwsjson11_deserializeDocumentSourceSchema(v **types.SourceSchema, value if !ok { return fmt.Errorf("expected RecordEncoding to be of type string, got %T instead", value) } - sv.RecordEncoding = &jtv + sv.RecordEncoding = ptr.String(jtv) } case "RecordFormat": @@ -4880,7 +4892,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -4889,7 +4901,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4901,7 +4913,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4914,18 +4926,20 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4961,7 +4975,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5001,7 +5015,7 @@ func awsAwsjson11_deserializeDocumentUnableToDetectSchemaException(v **types.Una if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ProcessedInputRecords": @@ -5051,7 +5065,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5529,7 +5543,7 @@ func awsAwsjson11_deserializeOpDocumentListApplicationsOutput(v **ListApplicatio if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.HasMoreApplications = &jtv + sv.HasMoreApplications = ptr.Bool(jtv) } default: diff --git a/service/kinesisanalytics/go.mod b/service/kinesisanalytics/go.mod index 6646bcdea4b..79169d5673a 100644 --- a/service/kinesisanalytics/go.mod +++ b/service/kinesisanalytics/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisanalytics go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/kinesisanalytics/serializers.go b/service/kinesisanalytics/serializers.go index 433f24ec5c2..be9d036a5eb 100644 --- a/service/kinesisanalytics/serializers.go +++ b/service/kinesisanalytics/serializers.go @@ -991,17 +991,13 @@ func awsAwsjson11_serializeDocumentCloudWatchLoggingOption(v *types.CloudWatchLo return nil } -func awsAwsjson11_serializeDocumentCloudWatchLoggingOptions(v []*types.CloudWatchLoggingOption, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCloudWatchLoggingOptions(v []types.CloudWatchLoggingOption, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCloudWatchLoggingOption(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCloudWatchLoggingOption(&v[i], av); err != nil { return err } } @@ -1030,17 +1026,13 @@ func awsAwsjson11_serializeDocumentCloudWatchLoggingOptionUpdate(v *types.CloudW return nil } -func awsAwsjson11_serializeDocumentCloudWatchLoggingOptionUpdates(v []*types.CloudWatchLoggingOptionUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCloudWatchLoggingOptionUpdates(v []types.CloudWatchLoggingOptionUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCloudWatchLoggingOptionUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCloudWatchLoggingOptionUpdate(&v[i], av); err != nil { return err } } @@ -1142,17 +1134,13 @@ func awsAwsjson11_serializeDocumentInputConfiguration(v *types.InputConfiguratio return nil } -func awsAwsjson11_serializeDocumentInputConfigurations(v []*types.InputConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInputConfigurations(v []types.InputConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInputConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInputConfiguration(&v[i], av); err != nil { return err } } @@ -1245,17 +1233,13 @@ func awsAwsjson11_serializeDocumentInputProcessingConfigurationUpdate(v *types.I return nil } -func awsAwsjson11_serializeDocumentInputs(v []*types.Input, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInputs(v []types.Input, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInput(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInput(&v[i], av); err != nil { return err } } @@ -1352,17 +1336,13 @@ func awsAwsjson11_serializeDocumentInputUpdate(v *types.InputUpdate, value smith return nil } -func awsAwsjson11_serializeDocumentInputUpdates(v []*types.InputUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInputUpdates(v []types.InputUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInputUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInputUpdate(&v[i], av); err != nil { return err } } @@ -1612,17 +1592,13 @@ func awsAwsjson11_serializeDocumentOutput(v *types.Output, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentOutputs(v []*types.Output, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOutputs(v []types.Output, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOutput(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentOutput(&v[i], av); err != nil { return err } } @@ -1674,17 +1650,13 @@ func awsAwsjson11_serializeDocumentOutputUpdate(v *types.OutputUpdate, value smi return nil } -func awsAwsjson11_serializeDocumentOutputUpdates(v []*types.OutputUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOutputUpdates(v []types.OutputUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOutputUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentOutputUpdate(&v[i], av); err != nil { return err } } @@ -1713,17 +1685,13 @@ func awsAwsjson11_serializeDocumentRecordColumn(v *types.RecordColumn, value smi return nil } -func awsAwsjson11_serializeDocumentRecordColumns(v []*types.RecordColumn, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRecordColumns(v []types.RecordColumn, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRecordColumn(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRecordColumn(&v[i], av); err != nil { return err } } @@ -1806,17 +1774,13 @@ func awsAwsjson11_serializeDocumentReferenceDataSourceUpdate(v *types.ReferenceD return nil } -func awsAwsjson11_serializeDocumentReferenceDataSourceUpdates(v []*types.ReferenceDataSourceUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentReferenceDataSourceUpdates(v []types.ReferenceDataSourceUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentReferenceDataSourceUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentReferenceDataSourceUpdate(&v[i], av); err != nil { return err } } @@ -1932,32 +1896,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/kinesisanalytics/types/errors.go b/service/kinesisanalytics/types/errors.go index edd2a5608a6..821cd0fde19 100644 --- a/service/kinesisanalytics/types/errors.go +++ b/service/kinesisanalytics/types/errors.go @@ -201,8 +201,8 @@ func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.Fa type UnableToDetectSchemaException struct { Message *string - ProcessedInputRecords []*string - RawInputRecords []*string + ProcessedInputRecords []string + RawInputRecords []string } func (e *UnableToDetectSchemaException) Error() string { diff --git a/service/kinesisanalytics/types/types.go b/service/kinesisanalytics/types/types.go index 86052ba7ed9..6febc095a4c 100644 --- a/service/kinesisanalytics/types/types.go +++ b/service/kinesisanalytics/types/types.go @@ -45,7 +45,7 @@ type ApplicationDetail struct { // messages. For more information about using CloudWatch log streams with Amazon // Kinesis Analytics applications, see Working with Amazon CloudWatch Logs // (https://docs.aws.amazon.com/kinesisanalytics/latest/dev/cloudwatch-logs.html). - CloudWatchLoggingOptionDescriptions []*CloudWatchLoggingOptionDescription + CloudWatchLoggingOptionDescriptions []CloudWatchLoggingOptionDescription // Time stamp when the application version was created. CreateTimestamp *time.Time @@ -53,7 +53,7 @@ type ApplicationDetail struct { // Describes the application input configuration. For more information, see // Configuring Application Input // (https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html). - InputDescriptions []*InputDescription + InputDescriptions []InputDescription // Time stamp when the application was last updated. LastUpdateTimestamp *time.Time @@ -61,12 +61,12 @@ type ApplicationDetail struct { // Describes the application output configuration. For more information, see // Configuring Application Output // (https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html). - OutputDescriptions []*OutputDescription + OutputDescriptions []OutputDescription // Describes reference data sources configured for the application. For more // information, see Configuring Application Input // (https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html). - ReferenceDataSourceDescriptions []*ReferenceDataSourceDescription + ReferenceDataSourceDescriptions []ReferenceDataSourceDescription } // This documentation is for version 1 of the Amazon Kinesis Data Analytics API, @@ -99,16 +99,16 @@ type ApplicationUpdate struct { ApplicationCodeUpdate *string // Describes application CloudWatch logging option updates. - CloudWatchLoggingOptionUpdates []*CloudWatchLoggingOptionUpdate + CloudWatchLoggingOptionUpdates []CloudWatchLoggingOptionUpdate // Describes application input configuration updates. - InputUpdates []*InputUpdate + InputUpdates []InputUpdate // Describes application output configuration updates. - OutputUpdates []*OutputUpdate + OutputUpdates []OutputUpdate // Describes application reference data source updates. - ReferenceDataSourceUpdates []*ReferenceDataSourceUpdate + ReferenceDataSourceUpdates []ReferenceDataSourceUpdate } // Provides a description of CloudWatch logging options, including the log stream @@ -268,7 +268,7 @@ type InputConfiguration struct { type InputDescription struct { // Returns the in-application stream names that are mapped to the stream source. - InAppStreamNames []*string + InAppStreamNames []string // Input ID associated with the application input. This is the ID that Amazon // Kinesis Analytics assigns to each input configuration you add to your @@ -414,7 +414,7 @@ type InputSchemaUpdate struct { // A list of RecordColumn objects. Each object describes the mapping of the // streaming source element to the corresponding column in the in-application // stream. - RecordColumnUpdates []*RecordColumn + RecordColumnUpdates []RecordColumn // Specifies the encoding of the records in the streaming source. For example, // UTF-8. @@ -1028,7 +1028,7 @@ type SourceSchema struct { // A list of RecordColumn objects. // // This member is required. - RecordColumns []*RecordColumn + RecordColumns []RecordColumn // Specifies the format of the records on the streaming source. // diff --git a/service/kinesisanalytics/validators.go b/service/kinesisanalytics/validators.go index a1b8edb7d90..42389a47542 100644 --- a/service/kinesisanalytics/validators.go +++ b/service/kinesisanalytics/validators.go @@ -516,13 +516,13 @@ func validateCloudWatchLoggingOption(v *types.CloudWatchLoggingOption) error { } } -func validateCloudWatchLoggingOptions(v []*types.CloudWatchLoggingOption) error { +func validateCloudWatchLoggingOptions(v []types.CloudWatchLoggingOption) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CloudWatchLoggingOptions"} for i := range v { - if err := validateCloudWatchLoggingOption(v[i]); err != nil { + if err := validateCloudWatchLoggingOption(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -548,13 +548,13 @@ func validateCloudWatchLoggingOptionUpdate(v *types.CloudWatchLoggingOptionUpdat } } -func validateCloudWatchLoggingOptionUpdates(v []*types.CloudWatchLoggingOptionUpdate) error { +func validateCloudWatchLoggingOptionUpdates(v []types.CloudWatchLoggingOptionUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CloudWatchLoggingOptionUpdates"} for i := range v { - if err := validateCloudWatchLoggingOptionUpdate(v[i]); err != nil { + if err := validateCloudWatchLoggingOptionUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -653,13 +653,13 @@ func validateInputConfiguration(v *types.InputConfiguration) error { } } -func validateInputConfigurations(v []*types.InputConfiguration) error { +func validateInputConfigurations(v []types.InputConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InputConfigurations"} for i := range v { - if err := validateInputConfiguration(v[i]); err != nil { + if err := validateInputConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -722,13 +722,13 @@ func validateInputProcessingConfigurationUpdate(v *types.InputProcessingConfigur } } -func validateInputs(v []*types.Input) error { +func validateInputs(v []types.Input) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Inputs"} for i := range v { - if err := validateInput(v[i]); err != nil { + if err := validateInput(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -786,13 +786,13 @@ func validateInputUpdate(v *types.InputUpdate) error { } } -func validateInputUpdates(v []*types.InputUpdate) error { +func validateInputUpdates(v []types.InputUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InputUpdates"} for i := range v { - if err := validateInputUpdate(v[i]); err != nil { + if err := validateInputUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -967,13 +967,13 @@ func validateOutput(v *types.Output) error { } } -func validateOutputs(v []*types.Output) error { +func validateOutputs(v []types.Output) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Outputs"} for i := range v { - if err := validateOutput(v[i]); err != nil { + if err := validateOutput(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1004,13 +1004,13 @@ func validateOutputUpdate(v *types.OutputUpdate) error { } } -func validateOutputUpdates(v []*types.OutputUpdate) error { +func validateOutputUpdates(v []types.OutputUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OutputUpdates"} for i := range v { - if err := validateOutputUpdate(v[i]); err != nil { + if err := validateOutputUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1039,13 +1039,13 @@ func validateRecordColumn(v *types.RecordColumn) error { } } -func validateRecordColumns(v []*types.RecordColumn) error { +func validateRecordColumns(v []types.RecordColumn) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RecordColumns"} for i := range v { - if err := validateRecordColumn(v[i]); err != nil { + if err := validateRecordColumn(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1123,13 +1123,13 @@ func validateReferenceDataSourceUpdate(v *types.ReferenceDataSourceUpdate) error } } -func validateReferenceDataSourceUpdates(v []*types.ReferenceDataSourceUpdate) error { +func validateReferenceDataSourceUpdates(v []types.ReferenceDataSourceUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReferenceDataSourceUpdates"} for i := range v { - if err := validateReferenceDataSourceUpdate(v[i]); err != nil { + if err := validateReferenceDataSourceUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1223,13 +1223,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/kinesisanalyticsv2/api_op_AddApplicationCloudWatchLoggingOption.go b/service/kinesisanalyticsv2/api_op_AddApplicationCloudWatchLoggingOption.go index b867f7730ab..a1dde3f862d 100644 --- a/service/kinesisanalyticsv2/api_op_AddApplicationCloudWatchLoggingOption.go +++ b/service/kinesisanalyticsv2/api_op_AddApplicationCloudWatchLoggingOption.go @@ -59,7 +59,7 @@ type AddApplicationCloudWatchLoggingOptionOutput struct { // The descriptions of the current CloudWatch logging options for the Kinesis Data // Analytics application. - CloudWatchLoggingOptionDescriptions []*types.CloudWatchLoggingOptionDescription + CloudWatchLoggingOptionDescriptions []types.CloudWatchLoggingOptionDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalyticsv2/api_op_AddApplicationInput.go b/service/kinesisanalyticsv2/api_op_AddApplicationInput.go index 0caf38ad26c..d43560267b3 100644 --- a/service/kinesisanalyticsv2/api_op_AddApplicationInput.go +++ b/service/kinesisanalyticsv2/api_op_AddApplicationInput.go @@ -62,7 +62,7 @@ type AddApplicationInputOutput struct { ApplicationVersionId *int64 // Describes the application input configuration. - InputDescriptions []*types.InputDescription + InputDescriptions []types.InputDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalyticsv2/api_op_AddApplicationOutput.go b/service/kinesisanalyticsv2/api_op_AddApplicationOutput.go index 1238f700fca..adae483b428 100644 --- a/service/kinesisanalyticsv2/api_op_AddApplicationOutput.go +++ b/service/kinesisanalyticsv2/api_op_AddApplicationOutput.go @@ -75,7 +75,7 @@ type AddApplicationOutputOutput struct { // Describes the application output configuration. For more information, see // Configuring Application Output // (https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html). - OutputDescriptions []*types.OutputDescription + OutputDescriptions []types.OutputDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalyticsv2/api_op_AddApplicationReferenceDataSource.go b/service/kinesisanalyticsv2/api_op_AddApplicationReferenceDataSource.go index 334faaf63a2..eb293d84abd 100644 --- a/service/kinesisanalyticsv2/api_op_AddApplicationReferenceDataSource.go +++ b/service/kinesisanalyticsv2/api_op_AddApplicationReferenceDataSource.go @@ -67,7 +67,7 @@ type AddApplicationReferenceDataSourceOutput struct { ApplicationVersionId *int64 // Describes reference data sources configured for the application. - ReferenceDataSourceDescriptions []*types.ReferenceDataSourceDescription + ReferenceDataSourceDescriptions []types.ReferenceDataSourceDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalyticsv2/api_op_CreateApplication.go b/service/kinesisanalyticsv2/api_op_CreateApplication.go index 0bd60b09fdd..0b1d86e55d3 100644 --- a/service/kinesisanalyticsv2/api_op_CreateApplication.go +++ b/service/kinesisanalyticsv2/api_op_CreateApplication.go @@ -55,14 +55,14 @@ type CreateApplicationInput struct { // Use this parameter to configure an Amazon CloudWatch log stream to monitor // application configuration errors. - CloudWatchLoggingOptions []*types.CloudWatchLoggingOption + CloudWatchLoggingOptions []types.CloudWatchLoggingOption // A list of one or more tags to assign to the application. A tag is a key-value // pair that identifies an application. Note that the maximum number of application // tags includes system tags. The maximum number of user-defined application tags // is 50. For more information, see Using Tagging // (https://docs.aws.amazon.com/kinesisanalytics/latest/java/how-tagging.html). - Tags []*types.Tag + Tags []types.Tag } type CreateApplicationOutput struct { diff --git a/service/kinesisanalyticsv2/api_op_DeleteApplicationCloudWatchLoggingOption.go b/service/kinesisanalyticsv2/api_op_DeleteApplicationCloudWatchLoggingOption.go index 82004703c9f..d9f5c8a75f5 100644 --- a/service/kinesisanalyticsv2/api_op_DeleteApplicationCloudWatchLoggingOption.go +++ b/service/kinesisanalyticsv2/api_op_DeleteApplicationCloudWatchLoggingOption.go @@ -60,7 +60,7 @@ type DeleteApplicationCloudWatchLoggingOptionOutput struct { // The descriptions of the remaining CloudWatch logging options for the // application. - CloudWatchLoggingOptionDescriptions []*types.CloudWatchLoggingOptionDescription + CloudWatchLoggingOptionDescriptions []types.CloudWatchLoggingOptionDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalyticsv2/api_op_DiscoverInputSchema.go b/service/kinesisanalyticsv2/api_op_DiscoverInputSchema.go index 30ca120537c..c518d325fa9 100644 --- a/service/kinesisanalyticsv2/api_op_DiscoverInputSchema.go +++ b/service/kinesisanalyticsv2/api_op_DiscoverInputSchema.go @@ -65,14 +65,14 @@ type DiscoverInputSchemaOutput struct { // An array of elements, where each element corresponds to a row in a stream record // (a stream record can have more than one row). - ParsedInputRecords [][]*string + ParsedInputRecords [][]string // The stream data that was modified by the processor specified in the // InputProcessingConfiguration parameter. - ProcessedInputRecords []*string + ProcessedInputRecords []string // The raw stream data that was sampled to infer the schema. - RawInputRecords []*string + RawInputRecords []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalyticsv2/api_op_ListApplicationSnapshots.go b/service/kinesisanalyticsv2/api_op_ListApplicationSnapshots.go index a89b4d729c3..2d6b44910a5 100644 --- a/service/kinesisanalyticsv2/api_op_ListApplicationSnapshots.go +++ b/service/kinesisanalyticsv2/api_op_ListApplicationSnapshots.go @@ -51,7 +51,7 @@ type ListApplicationSnapshotsOutput struct { NextToken *string // A collection of objects containing information about the application snapshots. - SnapshotSummaries []*types.SnapshotDetails + SnapshotSummaries []types.SnapshotDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalyticsv2/api_op_ListApplications.go b/service/kinesisanalyticsv2/api_op_ListApplications.go index aa30748a88c..e0d0668c492 100644 --- a/service/kinesisanalyticsv2/api_op_ListApplications.go +++ b/service/kinesisanalyticsv2/api_op_ListApplications.go @@ -47,7 +47,7 @@ type ListApplicationsOutput struct { // A list of ApplicationSummary objects. // // This member is required. - ApplicationSummaries []*types.ApplicationSummary + ApplicationSummaries []types.ApplicationSummary // The pagination token for the next set of results, or null if there are no // additional results. Pass this token into a subsequent command to retrieve the diff --git a/service/kinesisanalyticsv2/api_op_ListTagsForResource.go b/service/kinesisanalyticsv2/api_op_ListTagsForResource.go index bd8655da40b..aa3ccf3f95e 100644 --- a/service/kinesisanalyticsv2/api_op_ListTagsForResource.go +++ b/service/kinesisanalyticsv2/api_op_ListTagsForResource.go @@ -40,7 +40,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The key-value tags assigned to the application. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisanalyticsv2/api_op_TagResource.go b/service/kinesisanalyticsv2/api_op_TagResource.go index 6d3e6a63f1b..2920a67890c 100644 --- a/service/kinesisanalyticsv2/api_op_TagResource.go +++ b/service/kinesisanalyticsv2/api_op_TagResource.go @@ -41,7 +41,7 @@ type TagResourceInput struct { // The key-value tags to assign to the application. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/kinesisanalyticsv2/api_op_UntagResource.go b/service/kinesisanalyticsv2/api_op_UntagResource.go index 63cfe6b7807..0200d1ca84a 100644 --- a/service/kinesisanalyticsv2/api_op_UntagResource.go +++ b/service/kinesisanalyticsv2/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // A list of keys of tags to remove from the specified application. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/kinesisanalyticsv2/api_op_UpdateApplication.go b/service/kinesisanalyticsv2/api_op_UpdateApplication.go index 5f80bf0fdcb..53c10e725dc 100644 --- a/service/kinesisanalyticsv2/api_op_UpdateApplication.go +++ b/service/kinesisanalyticsv2/api_op_UpdateApplication.go @@ -51,7 +51,7 @@ type UpdateApplicationInput struct { // Describes application Amazon CloudWatch logging option updates. You can only // update existing CloudWatch logging options with this action. To add a new // CloudWatch logging option, use AddApplicationCloudWatchLoggingOption. - CloudWatchLoggingOptionUpdates []*types.CloudWatchLoggingOptionUpdate + CloudWatchLoggingOptionUpdates []types.CloudWatchLoggingOptionUpdate // Describes updates to the application's starting parameters. RunConfigurationUpdate *types.RunConfigurationUpdate diff --git a/service/kinesisanalyticsv2/deserializers.go b/service/kinesisanalyticsv2/deserializers.go index 313768d52a2..a3911005245 100644 --- a/service/kinesisanalyticsv2/deserializers.go +++ b/service/kinesisanalyticsv2/deserializers.go @@ -3805,7 +3805,7 @@ func awsAwsjson11_deserializeDocumentApplicationDetail(v **types.ApplicationDeta if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationConfigurationDescription": @@ -3819,7 +3819,7 @@ func awsAwsjson11_deserializeDocumentApplicationDetail(v **types.ApplicationDeta if !ok { return fmt.Errorf("expected ApplicationDescription to be of type string, got %T instead", value) } - sv.ApplicationDescription = &jtv + sv.ApplicationDescription = ptr.String(jtv) } case "ApplicationName": @@ -3828,7 +3828,7 @@ func awsAwsjson11_deserializeDocumentApplicationDetail(v **types.ApplicationDeta if !ok { return fmt.Errorf("expected ApplicationName to be of type string, got %T instead", value) } - sv.ApplicationName = &jtv + sv.ApplicationName = ptr.String(jtv) } case "ApplicationStatus": @@ -3850,7 +3850,7 @@ func awsAwsjson11_deserializeDocumentApplicationDetail(v **types.ApplicationDeta if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } case "CloudWatchLoggingOptionDescriptions": @@ -3899,7 +3899,7 @@ func awsAwsjson11_deserializeDocumentApplicationDetail(v **types.ApplicationDeta if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.ServiceExecutionRole = &jtv + sv.ServiceExecutionRole = ptr.String(jtv) } default: @@ -3948,7 +3948,7 @@ func awsAwsjson11_deserializeDocumentApplicationRestoreConfiguration(v **types.A if !ok { return fmt.Errorf("expected SnapshotName to be of type string, got %T instead", value) } - sv.SnapshotName = &jtv + sv.SnapshotName = ptr.String(jtv) } default: @@ -3988,7 +3988,7 @@ func awsAwsjson11_deserializeDocumentApplicationSnapshotConfigurationDescription if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.SnapshotsEnabled = &jtv + sv.SnapshotsEnabled = ptr.Bool(jtv) } default: @@ -4000,7 +4000,7 @@ func awsAwsjson11_deserializeDocumentApplicationSnapshotConfigurationDescription return nil } -func awsAwsjson11_deserializeDocumentApplicationSummaries(v *[]*types.ApplicationSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentApplicationSummaries(v *[]types.ApplicationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4013,18 +4013,20 @@ func awsAwsjson11_deserializeDocumentApplicationSummaries(v *[]*types.Applicatio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApplicationSummary + var cv []types.ApplicationSummary if *v == nil { - cv = []*types.ApplicationSummary{} + cv = []types.ApplicationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ApplicationSummary - if err := awsAwsjson11_deserializeDocumentApplicationSummary(&col, value); err != nil { + var col types.ApplicationSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentApplicationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4060,7 +4062,7 @@ func awsAwsjson11_deserializeDocumentApplicationSummary(v **types.ApplicationSum if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationName": @@ -4069,7 +4071,7 @@ func awsAwsjson11_deserializeDocumentApplicationSummary(v **types.ApplicationSum if !ok { return fmt.Errorf("expected ApplicationName to be of type string, got %T instead", value) } - sv.ApplicationName = &jtv + sv.ApplicationName = ptr.String(jtv) } case "ApplicationStatus": @@ -4091,7 +4093,7 @@ func awsAwsjson11_deserializeDocumentApplicationSummary(v **types.ApplicationSum if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } case "RuntimeEnvironment": @@ -4140,7 +4142,7 @@ func awsAwsjson11_deserializeDocumentCheckpointConfigurationDescription(v **type if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.CheckpointingEnabled = &jtv + sv.CheckpointingEnabled = ptr.Bool(jtv) } case "CheckpointInterval": @@ -4153,7 +4155,7 @@ func awsAwsjson11_deserializeDocumentCheckpointConfigurationDescription(v **type if err != nil { return err } - sv.CheckpointInterval = &i64 + sv.CheckpointInterval = ptr.Int64(i64) } case "ConfigurationType": @@ -4175,7 +4177,7 @@ func awsAwsjson11_deserializeDocumentCheckpointConfigurationDescription(v **type if err != nil { return err } - sv.MinPauseBetweenCheckpoints = &i64 + sv.MinPauseBetweenCheckpoints = ptr.Int64(i64) } default: @@ -4215,7 +4217,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescription(v **type if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.CloudWatchLoggingOptionId = &jtv + sv.CloudWatchLoggingOptionId = ptr.String(jtv) } case "LogStreamARN": @@ -4224,7 +4226,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescription(v **type if !ok { return fmt.Errorf("expected LogStreamARN to be of type string, got %T instead", value) } - sv.LogStreamARN = &jtv + sv.LogStreamARN = ptr.String(jtv) } case "RoleARN": @@ -4233,7 +4235,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescription(v **type if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -4245,7 +4247,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescription(v **type return nil } -func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescriptions(v *[]*types.CloudWatchLoggingOptionDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescriptions(v *[]types.CloudWatchLoggingOptionDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4258,18 +4260,20 @@ func awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescriptions(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CloudWatchLoggingOptionDescription + var cv []types.CloudWatchLoggingOptionDescription if *v == nil { - cv = []*types.CloudWatchLoggingOptionDescription{} + cv = []types.CloudWatchLoggingOptionDescription{} } else { cv = *v } for _, value := range shape { - var col *types.CloudWatchLoggingOptionDescription - if err := awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescription(&col, value); err != nil { + var col types.CloudWatchLoggingOptionDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCloudWatchLoggingOptionDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4305,7 +4309,7 @@ func awsAwsjson11_deserializeDocumentCodeContentDescription(v **types.CodeConten if !ok { return fmt.Errorf("expected CodeMD5 to be of type string, got %T instead", value) } - sv.CodeMD5 = &jtv + sv.CodeMD5 = ptr.String(jtv) } case "CodeSize": @@ -4318,7 +4322,7 @@ func awsAwsjson11_deserializeDocumentCodeContentDescription(v **types.CodeConten if err != nil { return err } - sv.CodeSize = &i64 + sv.CodeSize = ptr.Int64(i64) } case "S3ApplicationCodeLocationDescription": @@ -4332,7 +4336,7 @@ func awsAwsjson11_deserializeDocumentCodeContentDescription(v **types.CodeConten if !ok { return fmt.Errorf("expected TextContent to be of type string, got %T instead", value) } - sv.TextContent = &jtv + sv.TextContent = ptr.String(jtv) } default: @@ -4372,7 +4376,7 @@ func awsAwsjson11_deserializeDocumentCodeValidationException(v **types.CodeValid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4412,7 +4416,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4452,7 +4456,7 @@ func awsAwsjson11_deserializeDocumentCSVMappingParameters(v **types.CSVMappingPa if !ok { return fmt.Errorf("expected RecordColumnDelimiter to be of type string, got %T instead", value) } - sv.RecordColumnDelimiter = &jtv + sv.RecordColumnDelimiter = ptr.String(jtv) } case "RecordRowDelimiter": @@ -4461,7 +4465,7 @@ func awsAwsjson11_deserializeDocumentCSVMappingParameters(v **types.CSVMappingPa if !ok { return fmt.Errorf("expected RecordRowDelimiter to be of type string, got %T instead", value) } - sv.RecordRowDelimiter = &jtv + sv.RecordRowDelimiter = ptr.String(jtv) } default: @@ -4582,7 +4586,7 @@ func awsAwsjson11_deserializeDocumentFlinkApplicationConfigurationDescription(v if !ok { return fmt.Errorf("expected JobPlanDescription to be of type string, got %T instead", value) } - sv.JobPlanDescription = &jtv + sv.JobPlanDescription = ptr.String(jtv) } case "MonitoringConfigurationDescription": @@ -4632,7 +4636,7 @@ func awsAwsjson11_deserializeDocumentFlinkRunConfiguration(v **types.FlinkRunCon if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.AllowNonRestoredState = &jtv + sv.AllowNonRestoredState = ptr.Bool(jtv) } default: @@ -4644,7 +4648,7 @@ func awsAwsjson11_deserializeDocumentFlinkRunConfiguration(v **types.FlinkRunCon return nil } -func awsAwsjson11_deserializeDocumentInAppStreamNames(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentInAppStreamNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4657,21 +4661,21 @@ func awsAwsjson11_deserializeDocumentInAppStreamNames(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected InAppStreamName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4713,7 +4717,7 @@ func awsAwsjson11_deserializeDocumentInputDescription(v **types.InputDescription if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.InputId = &jtv + sv.InputId = ptr.String(jtv) } case "InputParallelism": @@ -4752,7 +4756,7 @@ func awsAwsjson11_deserializeDocumentInputDescription(v **types.InputDescription if !ok { return fmt.Errorf("expected InAppStreamName to be of type string, got %T instead", value) } - sv.NamePrefix = &jtv + sv.NamePrefix = ptr.String(jtv) } default: @@ -4764,7 +4768,7 @@ func awsAwsjson11_deserializeDocumentInputDescription(v **types.InputDescription return nil } -func awsAwsjson11_deserializeDocumentInputDescriptions(v *[]*types.InputDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentInputDescriptions(v *[]types.InputDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4777,18 +4781,20 @@ func awsAwsjson11_deserializeDocumentInputDescriptions(v *[]*types.InputDescript return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputDescription + var cv []types.InputDescription if *v == nil { - cv = []*types.InputDescription{} + cv = []types.InputDescription{} } else { cv = *v } for _, value := range shape { - var col *types.InputDescription - if err := awsAwsjson11_deserializeDocumentInputDescription(&col, value); err != nil { + var col types.InputDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInputDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4824,7 +4830,7 @@ func awsAwsjson11_deserializeDocumentInputLambdaProcessorDescription(v **types.I if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "RoleARN": @@ -4833,7 +4839,7 @@ func awsAwsjson11_deserializeDocumentInputLambdaProcessorDescription(v **types.I if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -4993,7 +4999,7 @@ func awsAwsjson11_deserializeDocumentInvalidApplicationConfigurationException(v if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5033,7 +5039,7 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5073,7 +5079,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5113,7 +5119,7 @@ func awsAwsjson11_deserializeDocumentJSONMappingParameters(v **types.JSONMapping if !ok { return fmt.Errorf("expected RecordRowPath to be of type string, got %T instead", value) } - sv.RecordRowPath = &jtv + sv.RecordRowPath = ptr.String(jtv) } default: @@ -5153,7 +5159,7 @@ func awsAwsjson11_deserializeDocumentKinesisFirehoseInputDescription(v **types.K if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "RoleARN": @@ -5162,7 +5168,7 @@ func awsAwsjson11_deserializeDocumentKinesisFirehoseInputDescription(v **types.K if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -5202,7 +5208,7 @@ func awsAwsjson11_deserializeDocumentKinesisFirehoseOutputDescription(v **types. if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "RoleARN": @@ -5211,7 +5217,7 @@ func awsAwsjson11_deserializeDocumentKinesisFirehoseOutputDescription(v **types. if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -5251,7 +5257,7 @@ func awsAwsjson11_deserializeDocumentKinesisStreamsInputDescription(v **types.Ki if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "RoleARN": @@ -5260,7 +5266,7 @@ func awsAwsjson11_deserializeDocumentKinesisStreamsInputDescription(v **types.Ki if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -5300,7 +5306,7 @@ func awsAwsjson11_deserializeDocumentKinesisStreamsOutputDescription(v **types.K if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "RoleARN": @@ -5309,7 +5315,7 @@ func awsAwsjson11_deserializeDocumentKinesisStreamsOutputDescription(v **types.K if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -5349,7 +5355,7 @@ func awsAwsjson11_deserializeDocumentLambdaOutputDescription(v **types.LambdaOut if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "RoleARN": @@ -5358,7 +5364,7 @@ func awsAwsjson11_deserializeDocumentLambdaOutputDescription(v **types.LambdaOut if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } default: @@ -5398,7 +5404,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5557,7 +5563,7 @@ func awsAwsjson11_deserializeDocumentOutputDescription(v **types.OutputDescripti if !ok { return fmt.Errorf("expected InAppStreamName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OutputId": @@ -5566,7 +5572,7 @@ func awsAwsjson11_deserializeDocumentOutputDescription(v **types.OutputDescripti if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.OutputId = &jtv + sv.OutputId = ptr.String(jtv) } default: @@ -5578,7 +5584,7 @@ func awsAwsjson11_deserializeDocumentOutputDescription(v **types.OutputDescripti return nil } -func awsAwsjson11_deserializeDocumentOutputDescriptions(v *[]*types.OutputDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentOutputDescriptions(v *[]types.OutputDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5591,18 +5597,20 @@ func awsAwsjson11_deserializeDocumentOutputDescriptions(v *[]*types.OutputDescri return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutputDescription + var cv []types.OutputDescription if *v == nil { - cv = []*types.OutputDescription{} + cv = []types.OutputDescription{} } else { cv = *v } for _, value := range shape { - var col *types.OutputDescription - if err := awsAwsjson11_deserializeDocumentOutputDescription(&col, value); err != nil { + var col types.OutputDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOutputDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5638,7 +5646,7 @@ func awsAwsjson11_deserializeDocumentParallelismConfigurationDescription(v **typ if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.AutoScalingEnabled = &jtv + sv.AutoScalingEnabled = ptr.Bool(jtv) } case "ConfigurationType": @@ -5698,7 +5706,7 @@ func awsAwsjson11_deserializeDocumentParallelismConfigurationDescription(v **typ return nil } -func awsAwsjson11_deserializeDocumentParsedInputRecord(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentParsedInputRecord(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5711,21 +5719,21 @@ func awsAwsjson11_deserializeDocumentParsedInputRecord(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParsedInputRecordField to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5734,7 +5742,7 @@ func awsAwsjson11_deserializeDocumentParsedInputRecord(v *[]*string, value inter return nil } -func awsAwsjson11_deserializeDocumentParsedInputRecords(v *[][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentParsedInputRecords(v *[][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5747,15 +5755,15 @@ func awsAwsjson11_deserializeDocumentParsedInputRecords(v *[][]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv [][]*string + var cv [][]string if *v == nil { - cv = [][]*string{} + cv = [][]string{} } else { cv = *v } for _, value := range shape { - var col []*string + var col []string if err := awsAwsjson11_deserializeDocumentParsedInputRecord(&col, value); err != nil { return err } @@ -5766,7 +5774,7 @@ func awsAwsjson11_deserializeDocumentParsedInputRecords(v *[][]*string, value in return nil } -func awsAwsjson11_deserializeDocumentProcessedInputRecords(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentProcessedInputRecords(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5779,21 +5787,21 @@ func awsAwsjson11_deserializeDocumentProcessedInputRecords(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ProcessedInputRecord to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5830,7 +5838,7 @@ func awsAwsjson11_deserializeDocumentPropertyGroup(v **types.PropertyGroup, valu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.PropertyGroupId = &jtv + sv.PropertyGroupId = ptr.String(jtv) } case "PropertyMap": @@ -5847,7 +5855,7 @@ func awsAwsjson11_deserializeDocumentPropertyGroup(v **types.PropertyGroup, valu return nil } -func awsAwsjson11_deserializeDocumentPropertyGroups(v *[]*types.PropertyGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentPropertyGroups(v *[]types.PropertyGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5860,18 +5868,20 @@ func awsAwsjson11_deserializeDocumentPropertyGroups(v *[]*types.PropertyGroup, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PropertyGroup + var cv []types.PropertyGroup if *v == nil { - cv = []*types.PropertyGroup{} + cv = []types.PropertyGroup{} } else { cv = *v } for _, value := range shape { - var col *types.PropertyGroup - if err := awsAwsjson11_deserializeDocumentPropertyGroup(&col, value); err != nil { + var col types.PropertyGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPropertyGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5879,7 +5889,7 @@ func awsAwsjson11_deserializeDocumentPropertyGroups(v *[]*types.PropertyGroup, v return nil } -func awsAwsjson11_deserializeDocumentPropertyMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPropertyMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5892,21 +5902,21 @@ func awsAwsjson11_deserializeDocumentPropertyMap(v *map[string]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PropertyValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -5915,7 +5925,7 @@ func awsAwsjson11_deserializeDocumentPropertyMap(v *map[string]*string, value in return nil } -func awsAwsjson11_deserializeDocumentRawInputRecords(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRawInputRecords(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5928,21 +5938,21 @@ func awsAwsjson11_deserializeDocumentRawInputRecords(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RawInputRecord to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5979,7 +5989,7 @@ func awsAwsjson11_deserializeDocumentRecordColumn(v **types.RecordColumn, value if !ok { return fmt.Errorf("expected RecordColumnMapping to be of type string, got %T instead", value) } - sv.Mapping = &jtv + sv.Mapping = ptr.String(jtv) } case "Name": @@ -5988,7 +5998,7 @@ func awsAwsjson11_deserializeDocumentRecordColumn(v **types.RecordColumn, value if !ok { return fmt.Errorf("expected RecordColumnName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SqlType": @@ -5997,7 +6007,7 @@ func awsAwsjson11_deserializeDocumentRecordColumn(v **types.RecordColumn, value if !ok { return fmt.Errorf("expected RecordColumnSqlType to be of type string, got %T instead", value) } - sv.SqlType = &jtv + sv.SqlType = ptr.String(jtv) } default: @@ -6009,7 +6019,7 @@ func awsAwsjson11_deserializeDocumentRecordColumn(v **types.RecordColumn, value return nil } -func awsAwsjson11_deserializeDocumentRecordColumns(v *[]*types.RecordColumn, value interface{}) error { +func awsAwsjson11_deserializeDocumentRecordColumns(v *[]types.RecordColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6022,18 +6032,20 @@ func awsAwsjson11_deserializeDocumentRecordColumns(v *[]*types.RecordColumn, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecordColumn + var cv []types.RecordColumn if *v == nil { - cv = []*types.RecordColumn{} + cv = []types.RecordColumn{} } else { cv = *v } for _, value := range shape { - var col *types.RecordColumn - if err := awsAwsjson11_deserializeDocumentRecordColumn(&col, value); err != nil { + var col types.RecordColumn + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRecordColumn(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6114,7 +6126,7 @@ func awsAwsjson11_deserializeDocumentReferenceDataSourceDescription(v **types.Re if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ReferenceId = &jtv + sv.ReferenceId = ptr.String(jtv) } case "ReferenceSchema": @@ -6133,7 +6145,7 @@ func awsAwsjson11_deserializeDocumentReferenceDataSourceDescription(v **types.Re if !ok { return fmt.Errorf("expected InAppTableName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -6145,7 +6157,7 @@ func awsAwsjson11_deserializeDocumentReferenceDataSourceDescription(v **types.Re return nil } -func awsAwsjson11_deserializeDocumentReferenceDataSourceDescriptions(v *[]*types.ReferenceDataSourceDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentReferenceDataSourceDescriptions(v *[]types.ReferenceDataSourceDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6158,18 +6170,20 @@ func awsAwsjson11_deserializeDocumentReferenceDataSourceDescriptions(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReferenceDataSourceDescription + var cv []types.ReferenceDataSourceDescription if *v == nil { - cv = []*types.ReferenceDataSourceDescription{} + cv = []types.ReferenceDataSourceDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ReferenceDataSourceDescription - if err := awsAwsjson11_deserializeDocumentReferenceDataSourceDescription(&col, value); err != nil { + var col types.ReferenceDataSourceDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReferenceDataSourceDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6205,7 +6219,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6245,7 +6259,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6285,7 +6299,7 @@ func awsAwsjson11_deserializeDocumentResourceProvisionedThroughputExceededExcept if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6366,7 +6380,7 @@ func awsAwsjson11_deserializeDocumentS3ApplicationCodeLocationDescription(v **ty if !ok { return fmt.Errorf("expected BucketARN to be of type string, got %T instead", value) } - sv.BucketARN = &jtv + sv.BucketARN = ptr.String(jtv) } case "FileKey": @@ -6375,7 +6389,7 @@ func awsAwsjson11_deserializeDocumentS3ApplicationCodeLocationDescription(v **ty if !ok { return fmt.Errorf("expected FileKey to be of type string, got %T instead", value) } - sv.FileKey = &jtv + sv.FileKey = ptr.String(jtv) } case "ObjectVersion": @@ -6384,7 +6398,7 @@ func awsAwsjson11_deserializeDocumentS3ApplicationCodeLocationDescription(v **ty if !ok { return fmt.Errorf("expected ObjectVersion to be of type string, got %T instead", value) } - sv.ObjectVersion = &jtv + sv.ObjectVersion = ptr.String(jtv) } default: @@ -6424,7 +6438,7 @@ func awsAwsjson11_deserializeDocumentS3ReferenceDataSourceDescription(v **types. if !ok { return fmt.Errorf("expected BucketARN to be of type string, got %T instead", value) } - sv.BucketARN = &jtv + sv.BucketARN = ptr.String(jtv) } case "FileKey": @@ -6433,7 +6447,7 @@ func awsAwsjson11_deserializeDocumentS3ReferenceDataSourceDescription(v **types. if !ok { return fmt.Errorf("expected FileKey to be of type string, got %T instead", value) } - sv.FileKey = &jtv + sv.FileKey = ptr.String(jtv) } case "ReferenceRoleARN": @@ -6442,7 +6456,7 @@ func awsAwsjson11_deserializeDocumentS3ReferenceDataSourceDescription(v **types. if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.ReferenceRoleARN = &jtv + sv.ReferenceRoleARN = ptr.String(jtv) } default: @@ -6454,7 +6468,7 @@ func awsAwsjson11_deserializeDocumentS3ReferenceDataSourceDescription(v **types. return nil } -func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6467,21 +6481,21 @@ func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6518,7 +6532,7 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6562,7 +6576,7 @@ func awsAwsjson11_deserializeDocumentSnapshotDetails(v **types.SnapshotDetails, if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } case "SnapshotCreationTimestamp": @@ -6584,7 +6598,7 @@ func awsAwsjson11_deserializeDocumentSnapshotDetails(v **types.SnapshotDetails, if !ok { return fmt.Errorf("expected SnapshotName to be of type string, got %T instead", value) } - sv.SnapshotName = &jtv + sv.SnapshotName = ptr.String(jtv) } case "SnapshotStatus": @@ -6605,7 +6619,7 @@ func awsAwsjson11_deserializeDocumentSnapshotDetails(v **types.SnapshotDetails, return nil } -func awsAwsjson11_deserializeDocumentSnapshotSummaries(v *[]*types.SnapshotDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentSnapshotSummaries(v *[]types.SnapshotDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6618,18 +6632,20 @@ func awsAwsjson11_deserializeDocumentSnapshotSummaries(v *[]*types.SnapshotDetai return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SnapshotDetails + var cv []types.SnapshotDetails if *v == nil { - cv = []*types.SnapshotDetails{} + cv = []types.SnapshotDetails{} } else { cv = *v } for _, value := range shape { - var col *types.SnapshotDetails - if err := awsAwsjson11_deserializeDocumentSnapshotDetails(&col, value); err != nil { + var col types.SnapshotDetails + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSnapshotDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6670,7 +6686,7 @@ func awsAwsjson11_deserializeDocumentSourceSchema(v **types.SourceSchema, value if !ok { return fmt.Errorf("expected RecordEncoding to be of type string, got %T instead", value) } - sv.RecordEncoding = &jtv + sv.RecordEncoding = ptr.String(jtv) } case "RecordFormat": @@ -6733,7 +6749,7 @@ func awsAwsjson11_deserializeDocumentSqlApplicationConfigurationDescription(v ** return nil } -func awsAwsjson11_deserializeDocumentSubnetIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnetIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6746,21 +6762,21 @@ func awsAwsjson11_deserializeDocumentSubnetIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6797,7 +6813,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -6806,7 +6822,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6818,7 +6834,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6831,18 +6847,20 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6878,7 +6896,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6918,7 +6936,7 @@ func awsAwsjson11_deserializeDocumentUnableToDetectSchemaException(v **types.Una if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ProcessedInputRecords": @@ -6968,7 +6986,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7018,7 +7036,7 @@ func awsAwsjson11_deserializeDocumentVpcConfigurationDescription(v **types.VpcCo if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.VpcConfigurationId = &jtv + sv.VpcConfigurationId = ptr.String(jtv) } case "VpcId": @@ -7027,7 +7045,7 @@ func awsAwsjson11_deserializeDocumentVpcConfigurationDescription(v **types.VpcCo if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -7039,7 +7057,7 @@ func awsAwsjson11_deserializeDocumentVpcConfigurationDescription(v **types.VpcCo return nil } -func awsAwsjson11_deserializeDocumentVpcConfigurationDescriptions(v *[]*types.VpcConfigurationDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentVpcConfigurationDescriptions(v *[]types.VpcConfigurationDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7052,18 +7070,20 @@ func awsAwsjson11_deserializeDocumentVpcConfigurationDescriptions(v *[]*types.Vp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VpcConfigurationDescription + var cv []types.VpcConfigurationDescription if *v == nil { - cv = []*types.VpcConfigurationDescription{} + cv = []types.VpcConfigurationDescription{} } else { cv = *v } for _, value := range shape { - var col *types.VpcConfigurationDescription - if err := awsAwsjson11_deserializeDocumentVpcConfigurationDescription(&col, value); err != nil { + var col types.VpcConfigurationDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVpcConfigurationDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7099,7 +7119,7 @@ func awsAwsjson11_deserializeOpDocumentAddApplicationCloudWatchLoggingOptionOutp if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationVersionId": @@ -7112,7 +7132,7 @@ func awsAwsjson11_deserializeOpDocumentAddApplicationCloudWatchLoggingOptionOutp if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } case "CloudWatchLoggingOptionDescriptions": @@ -7157,7 +7177,7 @@ func awsAwsjson11_deserializeOpDocumentAddApplicationInputOutput(v **AddApplicat if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationVersionId": @@ -7170,7 +7190,7 @@ func awsAwsjson11_deserializeOpDocumentAddApplicationInputOutput(v **AddApplicat if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } case "InputDescriptions": @@ -7215,7 +7235,7 @@ func awsAwsjson11_deserializeOpDocumentAddApplicationInputProcessingConfiguratio if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationVersionId": @@ -7228,7 +7248,7 @@ func awsAwsjson11_deserializeOpDocumentAddApplicationInputProcessingConfiguratio if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } case "InputId": @@ -7237,7 +7257,7 @@ func awsAwsjson11_deserializeOpDocumentAddApplicationInputProcessingConfiguratio if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.InputId = &jtv + sv.InputId = ptr.String(jtv) } case "InputProcessingConfigurationDescription": @@ -7282,7 +7302,7 @@ func awsAwsjson11_deserializeOpDocumentAddApplicationOutputOutput(v **AddApplica if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationVersionId": @@ -7295,7 +7315,7 @@ func awsAwsjson11_deserializeOpDocumentAddApplicationOutputOutput(v **AddApplica if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } case "OutputDescriptions": @@ -7340,7 +7360,7 @@ func awsAwsjson11_deserializeOpDocumentAddApplicationReferenceDataSourceOutput(v if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationVersionId": @@ -7353,7 +7373,7 @@ func awsAwsjson11_deserializeOpDocumentAddApplicationReferenceDataSourceOutput(v if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } case "ReferenceDataSourceDescriptions": @@ -7398,7 +7418,7 @@ func awsAwsjson11_deserializeOpDocumentAddApplicationVpcConfigurationOutput(v ** if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationVersionId": @@ -7411,7 +7431,7 @@ func awsAwsjson11_deserializeOpDocumentAddApplicationVpcConfigurationOutput(v ** if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } case "VpcConfigurationDescription": @@ -7523,7 +7543,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteApplicationCloudWatchLoggingOptionO if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationVersionId": @@ -7536,7 +7556,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteApplicationCloudWatchLoggingOptionO if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } case "CloudWatchLoggingOptionDescriptions": @@ -7581,7 +7601,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteApplicationInputProcessingConfigura if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationVersionId": @@ -7594,7 +7614,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteApplicationInputProcessingConfigura if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } default: @@ -7665,7 +7685,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteApplicationOutputOutput(v **DeleteA if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationVersionId": @@ -7678,7 +7698,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteApplicationOutputOutput(v **DeleteA if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } default: @@ -7718,7 +7738,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteApplicationReferenceDataSourceOutpu if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationVersionId": @@ -7731,7 +7751,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteApplicationReferenceDataSourceOutpu if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } default: @@ -7802,7 +7822,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteApplicationVpcConfigurationOutput(v if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ApplicationARN = &jtv + sv.ApplicationARN = ptr.String(jtv) } case "ApplicationVersionId": @@ -7815,7 +7835,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteApplicationVpcConfigurationOutput(v if err != nil { return err } - sv.ApplicationVersionId = &i64 + sv.ApplicationVersionId = ptr.Int64(i64) } default: @@ -7978,7 +7998,7 @@ func awsAwsjson11_deserializeOpDocumentListApplicationSnapshotsOutput(v **ListAp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SnapshotSummaries": @@ -8028,7 +8048,7 @@ func awsAwsjson11_deserializeOpDocumentListApplicationsOutput(v **ListApplicatio if !ok { return fmt.Errorf("expected ApplicationName to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: diff --git a/service/kinesisanalyticsv2/go.mod b/service/kinesisanalyticsv2/go.mod index c4e863e7fef..66a5cf90abe 100644 --- a/service/kinesisanalyticsv2/go.mod +++ b/service/kinesisanalyticsv2/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisanalyticsv2 go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/kinesisanalyticsv2/serializers.go b/service/kinesisanalyticsv2/serializers.go index 538b92d2b01..f7bdfb2f147 100644 --- a/service/kinesisanalyticsv2/serializers.go +++ b/service/kinesisanalyticsv2/serializers.go @@ -1453,17 +1453,13 @@ func awsAwsjson11_serializeDocumentCloudWatchLoggingOption(v *types.CloudWatchLo return nil } -func awsAwsjson11_serializeDocumentCloudWatchLoggingOptions(v []*types.CloudWatchLoggingOption, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCloudWatchLoggingOptions(v []types.CloudWatchLoggingOption, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCloudWatchLoggingOption(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCloudWatchLoggingOption(&v[i], av); err != nil { return err } } @@ -1487,17 +1483,13 @@ func awsAwsjson11_serializeDocumentCloudWatchLoggingOptionUpdate(v *types.CloudW return nil } -func awsAwsjson11_serializeDocumentCloudWatchLoggingOptionUpdates(v []*types.CloudWatchLoggingOptionUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCloudWatchLoggingOptionUpdates(v []types.CloudWatchLoggingOptionUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCloudWatchLoggingOptionUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCloudWatchLoggingOptionUpdate(&v[i], av); err != nil { return err } } @@ -1800,17 +1792,13 @@ func awsAwsjson11_serializeDocumentInputProcessingConfigurationUpdate(v *types.I return nil } -func awsAwsjson11_serializeDocumentInputs(v []*types.Input, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInputs(v []types.Input, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInput(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInput(&v[i], av); err != nil { return err } } @@ -1907,17 +1895,13 @@ func awsAwsjson11_serializeDocumentInputUpdate(v *types.InputUpdate, value smith return nil } -func awsAwsjson11_serializeDocumentInputUpdates(v []*types.InputUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInputUpdates(v []types.InputUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInputUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInputUpdate(&v[i], av); err != nil { return err } } @@ -2161,17 +2145,13 @@ func awsAwsjson11_serializeDocumentOutput(v *types.Output, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentOutputs(v []*types.Output, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOutputs(v []types.Output, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOutput(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentOutput(&v[i], av); err != nil { return err } } @@ -2223,17 +2203,13 @@ func awsAwsjson11_serializeDocumentOutputUpdate(v *types.OutputUpdate, value smi return nil } -func awsAwsjson11_serializeDocumentOutputUpdates(v []*types.OutputUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOutputUpdates(v []types.OutputUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOutputUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentOutputUpdate(&v[i], av); err != nil { return err } } @@ -2313,34 +2289,26 @@ func awsAwsjson11_serializeDocumentPropertyGroup(v *types.PropertyGroup, value s return nil } -func awsAwsjson11_serializeDocumentPropertyGroups(v []*types.PropertyGroup, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPropertyGroups(v []types.PropertyGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPropertyGroup(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPropertyGroup(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentPropertyMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPropertyMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2367,17 +2335,13 @@ func awsAwsjson11_serializeDocumentRecordColumn(v *types.RecordColumn, value smi return nil } -func awsAwsjson11_serializeDocumentRecordColumns(v []*types.RecordColumn, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRecordColumns(v []types.RecordColumn, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRecordColumn(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRecordColumn(&v[i], av); err != nil { return err } } @@ -2429,17 +2393,13 @@ func awsAwsjson11_serializeDocumentReferenceDataSource(v *types.ReferenceDataSou return nil } -func awsAwsjson11_serializeDocumentReferenceDataSources(v []*types.ReferenceDataSource, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentReferenceDataSources(v []types.ReferenceDataSource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentReferenceDataSource(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentReferenceDataSource(&v[i], av); err != nil { return err } } @@ -2477,17 +2437,13 @@ func awsAwsjson11_serializeDocumentReferenceDataSourceUpdate(v *types.ReferenceD return nil } -func awsAwsjson11_serializeDocumentReferenceDataSourceUpdates(v []*types.ReferenceDataSourceUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentReferenceDataSourceUpdates(v []types.ReferenceDataSourceUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentReferenceDataSourceUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentReferenceDataSourceUpdate(&v[i], av); err != nil { return err } } @@ -2638,17 +2594,13 @@ func awsAwsjson11_serializeDocumentS3ReferenceDataSourceUpdate(v *types.S3Refere return nil } -func awsAwsjson11_serializeDocumentSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2754,34 +2706,26 @@ func awsAwsjson11_serializeDocumentSqlRunConfiguration(v *types.SqlRunConfigurat return nil } -func awsAwsjson11_serializeDocumentSqlRunConfigurations(v []*types.SqlRunConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSqlRunConfigurations(v []types.SqlRunConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSqlRunConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSqlRunConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentSubnetIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnetIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2803,32 +2747,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2856,17 +2792,13 @@ func awsAwsjson11_serializeDocumentVpcConfiguration(v *types.VpcConfiguration, v return nil } -func awsAwsjson11_serializeDocumentVpcConfigurations(v []*types.VpcConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVpcConfigurations(v []types.VpcConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentVpcConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentVpcConfiguration(&v[i], av); err != nil { return err } } @@ -2899,17 +2831,13 @@ func awsAwsjson11_serializeDocumentVpcConfigurationUpdate(v *types.VpcConfigurat return nil } -func awsAwsjson11_serializeDocumentVpcConfigurationUpdates(v []*types.VpcConfigurationUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVpcConfigurationUpdates(v []types.VpcConfigurationUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentVpcConfigurationUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentVpcConfigurationUpdate(&v[i], av); err != nil { return err } } diff --git a/service/kinesisanalyticsv2/types/errors.go b/service/kinesisanalyticsv2/types/errors.go index 685a25589c4..2a0179e7112 100644 --- a/service/kinesisanalyticsv2/types/errors.go +++ b/service/kinesisanalyticsv2/types/errors.go @@ -218,8 +218,8 @@ func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.Fa type UnableToDetectSchemaException struct { Message *string - ProcessedInputRecords []*string - RawInputRecords []*string + ProcessedInputRecords []string + RawInputRecords []string } func (e *UnableToDetectSchemaException) Error() string { diff --git a/service/kinesisanalyticsv2/types/types.go b/service/kinesisanalyticsv2/types/types.go index c62f010cc31..008ab42be5d 100644 --- a/service/kinesisanalyticsv2/types/types.go +++ b/service/kinesisanalyticsv2/types/types.go @@ -69,7 +69,7 @@ type ApplicationConfiguration struct { SqlApplicationConfiguration *SqlApplicationConfiguration // The array of descriptions of VPC configurations available to the application. - VpcConfigurations []*VpcConfiguration + VpcConfigurations []VpcConfiguration } // Describes details about the application code and starting parameters for a @@ -100,7 +100,7 @@ type ApplicationConfigurationDescription struct { SqlApplicationConfigurationDescription *SqlApplicationConfigurationDescription // The array of descriptions of VPC configurations available to the application. - VpcConfigurationDescriptions []*VpcConfigurationDescription + VpcConfigurationDescriptions []VpcConfigurationDescription } // Describes updates to an application's configuration. @@ -128,7 +128,7 @@ type ApplicationConfigurationUpdate struct { // Updates to the array of descriptions of VPC configurations available to the // application. - VpcConfigurationUpdates []*VpcConfigurationUpdate + VpcConfigurationUpdates []VpcConfigurationUpdate } // Describes the application, including the application Amazon Resource Name (ARN), @@ -169,7 +169,7 @@ type ApplicationDetail struct { ApplicationDescription *string // Describes the application Amazon CloudWatch logging options. - CloudWatchLoggingOptionDescriptions []*CloudWatchLoggingOptionDescription + CloudWatchLoggingOptionDescriptions []CloudWatchLoggingOptionDescription // The current timestamp when the application was created. CreateTimestamp *time.Time @@ -511,7 +511,7 @@ type EnvironmentProperties struct { // Describes the execution property groups. // // This member is required. - PropertyGroups []*PropertyGroup + PropertyGroups []PropertyGroup } // Describes the execution properties for a Flink-based Kinesis Data Analytics @@ -519,7 +519,7 @@ type EnvironmentProperties struct { type EnvironmentPropertyDescriptions struct { // Describes the execution property groups. - PropertyGroupDescriptions []*PropertyGroup + PropertyGroupDescriptions []PropertyGroup } // Describes updates to the execution property groups for a Flink-based Kinesis @@ -529,7 +529,7 @@ type EnvironmentPropertyUpdates struct { // Describes updates to the execution property groups. // // This member is required. - PropertyGroups []*PropertyGroup + PropertyGroups []PropertyGroup } // Describes configuration parameters for a Flink-based Kinesis Data Analytics @@ -659,7 +659,7 @@ type Input struct { type InputDescription struct { // Returns the in-application stream names that are mapped to the stream source. - InAppStreamNames []*string + InAppStreamNames []string // The input ID that is associated with the application input. This is the ID that // Kinesis Data Analytics assigns to each input configuration that you add to your @@ -804,7 +804,7 @@ type InputSchemaUpdate struct { // A list of RecordColumn objects. Each object describes the mapping of the // streaming source element to the corresponding column in the in-application // stream. - RecordColumnUpdates []*RecordColumn + RecordColumnUpdates []RecordColumn // Specifies the encoding of the records in the streaming source; for example, // UTF-8. @@ -1343,7 +1343,7 @@ type PropertyGroup struct { // Describes the value of an application execution property key-value pair. // // This member is required. - PropertyMap map[string]*string + PropertyMap map[string]string } // For a SQL-based Kinesis Data Analytics application, describes the mapping of @@ -1477,7 +1477,7 @@ type RunConfiguration struct { // Describes the starting parameters for a SQL-based Kinesis Data Analytics // application application. - SqlRunConfigurations []*SqlRunConfiguration + SqlRunConfigurations []SqlRunConfiguration } // Describes the starting properties for a Kinesis Data Analytics application. @@ -1650,7 +1650,7 @@ type SourceSchema struct { // A list of RecordColumn objects. // // This member is required. - RecordColumns []*RecordColumn + RecordColumns []RecordColumn // Specifies the format of the records on the streaming source. // @@ -1667,15 +1667,15 @@ type SourceSchema struct { type SqlApplicationConfiguration struct { // The array of Input objects describing the input streams used by the application. - Inputs []*Input + Inputs []Input // The array of Output objects describing the destination streams used by the // application. - Outputs []*Output + Outputs []Output // The array of ReferenceDataSource objects describing the reference data sources // used by the application. - ReferenceDataSources []*ReferenceDataSource + ReferenceDataSources []ReferenceDataSource } // Describes the inputs, outputs, and reference data sources for a SQL-based @@ -1684,15 +1684,15 @@ type SqlApplicationConfigurationDescription struct { // The array of InputDescription objects describing the input streams used by the // application. - InputDescriptions []*InputDescription + InputDescriptions []InputDescription // The array of OutputDescription objects describing the destination streams used // by the application. - OutputDescriptions []*OutputDescription + OutputDescriptions []OutputDescription // The array of ReferenceDataSourceDescription objects describing the reference // data sources used by the application. - ReferenceDataSourceDescriptions []*ReferenceDataSourceDescription + ReferenceDataSourceDescriptions []ReferenceDataSourceDescription } // Describes updates to the input streams, destination streams, and reference data @@ -1701,15 +1701,15 @@ type SqlApplicationConfigurationUpdate struct { // The array of InputUpdate objects describing the new input streams used by the // application. - InputUpdates []*InputUpdate + InputUpdates []InputUpdate // The array of OutputUpdate objects describing the new destination streams used by // the application. - OutputUpdates []*OutputUpdate + OutputUpdates []OutputUpdate // The array of ReferenceDataSourceUpdate objects describing the new reference data // sources used by the application. - ReferenceDataSourceUpdates []*ReferenceDataSourceUpdate + ReferenceDataSourceUpdates []ReferenceDataSourceUpdate } // Describes the starting parameters for a SQL-based Kinesis Data Analytics @@ -1754,14 +1754,14 @@ type VpcConfiguration struct { // IDs used by the VPC configuration. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // The array of Subnet // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Subnet.html) IDs // used by the VPC configuration. // // This member is required. - SubnetIds []*string + SubnetIds []string } // Describes the parameters of a VPC used by the application. @@ -1772,14 +1772,14 @@ type VpcConfigurationDescription struct { // IDs used by the VPC configuration. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // The array of Subnet // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Subnet.html) IDs // used by the VPC configuration. // // This member is required. - SubnetIds []*string + SubnetIds []string // The ID of the VPC configuration. // @@ -1803,10 +1803,10 @@ type VpcConfigurationUpdate struct { // Describes updates to the array of SecurityGroup // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SecurityGroup.html) // IDs used by the VPC configuration. - SecurityGroupIdUpdates []*string + SecurityGroupIdUpdates []string // Describes updates to the array of Subnet // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Subnet.html) IDs // used by the VPC configuration. - SubnetIdUpdates []*string + SubnetIdUpdates []string } diff --git a/service/kinesisanalyticsv2/validators.go b/service/kinesisanalyticsv2/validators.go index eb81eae0bdc..3023c0f0c4f 100644 --- a/service/kinesisanalyticsv2/validators.go +++ b/service/kinesisanalyticsv2/validators.go @@ -781,13 +781,13 @@ func validateCloudWatchLoggingOption(v *types.CloudWatchLoggingOption) error { } } -func validateCloudWatchLoggingOptions(v []*types.CloudWatchLoggingOption) error { +func validateCloudWatchLoggingOptions(v []types.CloudWatchLoggingOption) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CloudWatchLoggingOptions"} for i := range v { - if err := validateCloudWatchLoggingOption(v[i]); err != nil { + if err := validateCloudWatchLoggingOption(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -813,13 +813,13 @@ func validateCloudWatchLoggingOptionUpdate(v *types.CloudWatchLoggingOptionUpdat } } -func validateCloudWatchLoggingOptionUpdates(v []*types.CloudWatchLoggingOptionUpdate) error { +func validateCloudWatchLoggingOptionUpdates(v []types.CloudWatchLoggingOptionUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CloudWatchLoggingOptionUpdates"} for i := range v { - if err := validateCloudWatchLoggingOptionUpdate(v[i]); err != nil { + if err := validateCloudWatchLoggingOptionUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1065,13 +1065,13 @@ func validateInputProcessingConfigurationUpdate(v *types.InputProcessingConfigur } } -func validateInputs(v []*types.Input) error { +func validateInputs(v []types.Input) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Inputs"} for i := range v { - if err := validateInput(v[i]); err != nil { + if err := validateInput(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1144,13 +1144,13 @@ func validateInputUpdate(v *types.InputUpdate) error { } } -func validateInputUpdates(v []*types.InputUpdate) error { +func validateInputUpdates(v []types.InputUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InputUpdates"} for i := range v { - if err := validateInputUpdate(v[i]); err != nil { + if err := validateInputUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1400,13 +1400,13 @@ func validateOutput(v *types.Output) error { } } -func validateOutputs(v []*types.Output) error { +func validateOutputs(v []types.Output) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Outputs"} for i := range v { - if err := validateOutput(v[i]); err != nil { + if err := validateOutput(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1452,13 +1452,13 @@ func validateOutputUpdate(v *types.OutputUpdate) error { } } -func validateOutputUpdates(v []*types.OutputUpdate) error { +func validateOutputUpdates(v []types.OutputUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OutputUpdates"} for i := range v { - if err := validateOutputUpdate(v[i]); err != nil { + if err := validateOutputUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1502,13 +1502,13 @@ func validatePropertyGroup(v *types.PropertyGroup) error { } } -func validatePropertyGroups(v []*types.PropertyGroup) error { +func validatePropertyGroups(v []types.PropertyGroup) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PropertyGroups"} for i := range v { - if err := validatePropertyGroup(v[i]); err != nil { + if err := validatePropertyGroup(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1537,13 +1537,13 @@ func validateRecordColumn(v *types.RecordColumn) error { } } -func validateRecordColumns(v []*types.RecordColumn) error { +func validateRecordColumns(v []types.RecordColumn) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RecordColumns"} for i := range v { - if err := validateRecordColumn(v[i]); err != nil { + if err := validateRecordColumn(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1596,13 +1596,13 @@ func validateReferenceDataSource(v *types.ReferenceDataSource) error { } } -func validateReferenceDataSources(v []*types.ReferenceDataSource) error { +func validateReferenceDataSources(v []types.ReferenceDataSource) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReferenceDataSources"} for i := range v { - if err := validateReferenceDataSource(v[i]); err != nil { + if err := validateReferenceDataSource(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1633,13 +1633,13 @@ func validateReferenceDataSourceUpdate(v *types.ReferenceDataSourceUpdate) error } } -func validateReferenceDataSourceUpdates(v []*types.ReferenceDataSourceUpdate) error { +func validateReferenceDataSourceUpdates(v []types.ReferenceDataSourceUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReferenceDataSourceUpdates"} for i := range v { - if err := validateReferenceDataSourceUpdate(v[i]); err != nil { + if err := validateReferenceDataSourceUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1823,13 +1823,13 @@ func validateSqlRunConfiguration(v *types.SqlRunConfiguration) error { } } -func validateSqlRunConfigurations(v []*types.SqlRunConfiguration) error { +func validateSqlRunConfigurations(v []types.SqlRunConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SqlRunConfigurations"} for i := range v { - if err := validateSqlRunConfiguration(v[i]); err != nil { + if err := validateSqlRunConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1855,13 +1855,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1890,13 +1890,13 @@ func validateVpcConfiguration(v *types.VpcConfiguration) error { } } -func validateVpcConfigurations(v []*types.VpcConfiguration) error { +func validateVpcConfigurations(v []types.VpcConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "VpcConfigurations"} for i := range v { - if err := validateVpcConfiguration(v[i]); err != nil { + if err := validateVpcConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1922,13 +1922,13 @@ func validateVpcConfigurationUpdate(v *types.VpcConfigurationUpdate) error { } } -func validateVpcConfigurationUpdates(v []*types.VpcConfigurationUpdate) error { +func validateVpcConfigurationUpdates(v []types.VpcConfigurationUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "VpcConfigurationUpdates"} for i := range v { - if err := validateVpcConfigurationUpdate(v[i]); err != nil { + if err := validateVpcConfigurationUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/kinesisvideo/api_op_CreateSignalingChannel.go b/service/kinesisvideo/api_op_CreateSignalingChannel.go index c0503870297..959295188bb 100644 --- a/service/kinesisvideo/api_op_CreateSignalingChannel.go +++ b/service/kinesisvideo/api_op_CreateSignalingChannel.go @@ -44,7 +44,7 @@ type CreateSignalingChannelInput struct { SingleMasterConfiguration *types.SingleMasterConfiguration // A set of tags (key-value pairs) that you want to associate with this channel. - Tags []*types.Tag + Tags []types.Tag } type CreateSignalingChannelOutput struct { diff --git a/service/kinesisvideo/api_op_CreateStream.go b/service/kinesisvideo/api_op_CreateStream.go index 6c526fa3fa8..3ec4ac7ad8b 100644 --- a/service/kinesisvideo/api_op_CreateStream.go +++ b/service/kinesisvideo/api_op_CreateStream.go @@ -70,7 +70,7 @@ type CreateStreamInput struct { // A list of tags to associate with the specified stream. Each tag is a key-value // pair (the value is optional). - Tags map[string]*string + Tags map[string]string } type CreateStreamOutput struct { diff --git a/service/kinesisvideo/api_op_GetSignalingChannelEndpoint.go b/service/kinesisvideo/api_op_GetSignalingChannelEndpoint.go index 594a1f98249..5533325c697 100644 --- a/service/kinesisvideo/api_op_GetSignalingChannelEndpoint.go +++ b/service/kinesisvideo/api_op_GetSignalingChannelEndpoint.go @@ -52,7 +52,7 @@ type GetSignalingChannelEndpointInput struct { type GetSignalingChannelEndpointOutput struct { // A list of endpoints for the specified signaling channel. - ResourceEndpointList []*types.ResourceEndpointListItem + ResourceEndpointList []types.ResourceEndpointListItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisvideo/api_op_ListSignalingChannels.go b/service/kinesisvideo/api_op_ListSignalingChannels.go index 1c13d12d5d1..44f46d27d28 100644 --- a/service/kinesisvideo/api_op_ListSignalingChannels.go +++ b/service/kinesisvideo/api_op_ListSignalingChannels.go @@ -46,7 +46,7 @@ type ListSignalingChannelsInput struct { type ListSignalingChannelsOutput struct { // An array of ChannelInfo objects. - ChannelInfoList []*types.ChannelInfo + ChannelInfoList []types.ChannelInfo // If the response is truncated, the call returns this element with a token. To get // the next batch of streams, use this token in your next request. diff --git a/service/kinesisvideo/api_op_ListStreams.go b/service/kinesisvideo/api_op_ListStreams.go index 8c66f9b7b3e..2c18453c193 100644 --- a/service/kinesisvideo/api_op_ListStreams.go +++ b/service/kinesisvideo/api_op_ListStreams.go @@ -51,7 +51,7 @@ type ListStreamsOutput struct { NextToken *string // An array of StreamInfo objects. - StreamInfoList []*types.StreamInfo + StreamInfoList []types.StreamInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisvideo/api_op_ListTagsForResource.go b/service/kinesisvideo/api_op_ListTagsForResource.go index c342c87a0c2..a86c0b84c38 100644 --- a/service/kinesisvideo/api_op_ListTagsForResource.go +++ b/service/kinesisvideo/api_op_ListTagsForResource.go @@ -48,7 +48,7 @@ type ListTagsForResourceOutput struct { NextToken *string // A map of tag keys and values associated with the specified signaling channel. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisvideo/api_op_ListTagsForStream.go b/service/kinesisvideo/api_op_ListTagsForStream.go index ecbc2879701..0e8e3427f5e 100644 --- a/service/kinesisvideo/api_op_ListTagsForStream.go +++ b/service/kinesisvideo/api_op_ListTagsForStream.go @@ -49,7 +49,7 @@ type ListTagsForStreamOutput struct { NextToken *string // A map of tag keys and values associated with the specified stream. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisvideo/api_op_TagResource.go b/service/kinesisvideo/api_op_TagResource.go index e8c8ccae01b..7e3ef81673d 100644 --- a/service/kinesisvideo/api_op_TagResource.go +++ b/service/kinesisvideo/api_op_TagResource.go @@ -44,7 +44,7 @@ type TagResourceInput struct { // key-value pair. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/kinesisvideo/api_op_TagStream.go b/service/kinesisvideo/api_op_TagStream.go index a925f001614..f87c8d1932a 100644 --- a/service/kinesisvideo/api_op_TagStream.go +++ b/service/kinesisvideo/api_op_TagStream.go @@ -39,7 +39,7 @@ type TagStreamInput struct { // pair (the value is optional). // // This member is required. - Tags map[string]*string + Tags map[string]string // The Amazon Resource Name (ARN) of the resource that you want to add the tag or // tags to. diff --git a/service/kinesisvideo/api_op_UntagResource.go b/service/kinesisvideo/api_op_UntagResource.go index 92df00e10d1..8daa0e613c4 100644 --- a/service/kinesisvideo/api_op_UntagResource.go +++ b/service/kinesisvideo/api_op_UntagResource.go @@ -39,7 +39,7 @@ type UntagResourceInput struct { // A list of the keys of the tags that you want to remove. // // This member is required. - TagKeyList []*string + TagKeyList []string } type UntagResourceOutput struct { diff --git a/service/kinesisvideo/api_op_UntagStream.go b/service/kinesisvideo/api_op_UntagStream.go index 4fca566582e..9faa7a79994 100644 --- a/service/kinesisvideo/api_op_UntagStream.go +++ b/service/kinesisvideo/api_op_UntagStream.go @@ -33,7 +33,7 @@ type UntagStreamInput struct { // A list of the keys of the tags that you want to remove. // // This member is required. - TagKeyList []*string + TagKeyList []string // The Amazon Resource Name (ARN) of the stream that you want to remove tags from. StreamARN *string diff --git a/service/kinesisvideo/deserializers.go b/service/kinesisvideo/deserializers.go index 585372ca7eb..c0a87811e1e 100644 --- a/service/kinesisvideo/deserializers.go +++ b/service/kinesisvideo/deserializers.go @@ -173,7 +173,7 @@ func awsRestjson1_deserializeOpDocumentCreateSignalingChannelOutput(v **CreateSi if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ChannelARN = &jtv + sv.ChannelARN = ptr.String(jtv) } default: @@ -342,7 +342,7 @@ func awsRestjson1_deserializeOpDocumentCreateStreamOutput(v **CreateStreamOutput if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.StreamARN = &jtv + sv.StreamARN = ptr.String(jtv) } default: @@ -1010,7 +1010,7 @@ func awsRestjson1_deserializeOpDocumentGetDataEndpointOutput(v **GetDataEndpoint if !ok { return fmt.Errorf("expected DataEndpoint to be of type string, got %T instead", value) } - sv.DataEndpoint = &jtv + sv.DataEndpoint = ptr.String(jtv) } default: @@ -1331,7 +1331,7 @@ func awsRestjson1_deserializeOpDocumentListSignalingChannelsOutput(v **ListSigna if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1485,7 +1485,7 @@ func awsRestjson1_deserializeOpDocumentListStreamsOutput(v **ListStreamsOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StreamInfoList": @@ -1650,7 +1650,7 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -1818,7 +1818,7 @@ func awsRestjson1_deserializeOpDocumentListTagsForStreamOutput(v **ListTagsForSt if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -3005,7 +3005,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3045,7 +3045,7 @@ func awsRestjson1_deserializeDocumentAccountChannelLimitExceededException(v **ty if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3085,7 +3085,7 @@ func awsRestjson1_deserializeDocumentAccountStreamLimitExceededException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3125,7 +3125,7 @@ func awsRestjson1_deserializeDocumentChannelInfo(v **types.ChannelInfo, value in if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ChannelARN = &jtv + sv.ChannelARN = ptr.String(jtv) } case "ChannelName": @@ -3134,7 +3134,7 @@ func awsRestjson1_deserializeDocumentChannelInfo(v **types.ChannelInfo, value in if !ok { return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) } - sv.ChannelName = &jtv + sv.ChannelName = ptr.String(jtv) } case "ChannelStatus": @@ -3179,7 +3179,7 @@ func awsRestjson1_deserializeDocumentChannelInfo(v **types.ChannelInfo, value in if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -3191,7 +3191,7 @@ func awsRestjson1_deserializeDocumentChannelInfo(v **types.ChannelInfo, value in return nil } -func awsRestjson1_deserializeDocumentChannelInfoList(v *[]*types.ChannelInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentChannelInfoList(v *[]types.ChannelInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3204,18 +3204,20 @@ func awsRestjson1_deserializeDocumentChannelInfoList(v *[]*types.ChannelInfo, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ChannelInfo + var cv []types.ChannelInfo if *v == nil { - cv = []*types.ChannelInfo{} + cv = []types.ChannelInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ChannelInfo - if err := awsRestjson1_deserializeDocumentChannelInfo(&col, value); err != nil { + var col types.ChannelInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentChannelInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3251,7 +3253,7 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3291,7 +3293,7 @@ func awsRestjson1_deserializeDocumentDeviceStreamLimitExceededException(v **type if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3331,7 +3333,7 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3371,7 +3373,7 @@ func awsRestjson1_deserializeDocumentInvalidDeviceException(v **types.InvalidDev if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3411,7 +3413,7 @@ func awsRestjson1_deserializeDocumentInvalidResourceFormatException(v **types.In if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3451,7 +3453,7 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3463,7 +3465,7 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori return nil } -func awsRestjson1_deserializeDocumentResourceEndpointList(v *[]*types.ResourceEndpointListItem, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceEndpointList(v *[]types.ResourceEndpointListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3476,18 +3478,20 @@ func awsRestjson1_deserializeDocumentResourceEndpointList(v *[]*types.ResourceEn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceEndpointListItem + var cv []types.ResourceEndpointListItem if *v == nil { - cv = []*types.ResourceEndpointListItem{} + cv = []types.ResourceEndpointListItem{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceEndpointListItem - if err := awsRestjson1_deserializeDocumentResourceEndpointListItem(&col, value); err != nil { + var col types.ResourceEndpointListItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceEndpointListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3532,7 +3536,7 @@ func awsRestjson1_deserializeDocumentResourceEndpointListItem(v **types.Resource if !ok { return fmt.Errorf("expected ResourceEndpoint to be of type string, got %T instead", value) } - sv.ResourceEndpoint = &jtv + sv.ResourceEndpoint = ptr.String(jtv) } default: @@ -3572,7 +3576,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3612,7 +3616,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3624,7 +3628,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentResourceTags(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3637,21 +3641,21 @@ func awsRestjson1_deserializeDocumentResourceTags(v *map[string]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -3758,7 +3762,7 @@ func awsRestjson1_deserializeDocumentStreamInfo(v **types.StreamInfo, value inte if !ok { return fmt.Errorf("expected DeviceName to be of type string, got %T instead", value) } - sv.DeviceName = &jtv + sv.DeviceName = ptr.String(jtv) } case "KmsKeyId": @@ -3767,7 +3771,7 @@ func awsRestjson1_deserializeDocumentStreamInfo(v **types.StreamInfo, value inte if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "MediaType": @@ -3776,7 +3780,7 @@ func awsRestjson1_deserializeDocumentStreamInfo(v **types.StreamInfo, value inte if !ok { return fmt.Errorf("expected MediaType to be of type string, got %T instead", value) } - sv.MediaType = &jtv + sv.MediaType = ptr.String(jtv) } case "Status": @@ -3794,7 +3798,7 @@ func awsRestjson1_deserializeDocumentStreamInfo(v **types.StreamInfo, value inte if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.StreamARN = &jtv + sv.StreamARN = ptr.String(jtv) } case "StreamName": @@ -3803,7 +3807,7 @@ func awsRestjson1_deserializeDocumentStreamInfo(v **types.StreamInfo, value inte if !ok { return fmt.Errorf("expected StreamName to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } case "Version": @@ -3812,7 +3816,7 @@ func awsRestjson1_deserializeDocumentStreamInfo(v **types.StreamInfo, value inte if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -3824,7 +3828,7 @@ func awsRestjson1_deserializeDocumentStreamInfo(v **types.StreamInfo, value inte return nil } -func awsRestjson1_deserializeDocumentStreamInfoList(v *[]*types.StreamInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentStreamInfoList(v *[]types.StreamInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3837,18 +3841,20 @@ func awsRestjson1_deserializeDocumentStreamInfoList(v *[]*types.StreamInfo, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StreamInfo + var cv []types.StreamInfo if *v == nil { - cv = []*types.StreamInfo{} + cv = []types.StreamInfo{} } else { cv = *v } for _, value := range shape { - var col *types.StreamInfo - if err := awsRestjson1_deserializeDocumentStreamInfo(&col, value); err != nil { + var col types.StreamInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentStreamInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3884,7 +3890,7 @@ func awsRestjson1_deserializeDocumentTagsPerResourceExceededLimitException(v **t if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3924,7 +3930,7 @@ func awsRestjson1_deserializeDocumentVersionMismatchException(v **types.VersionM if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/kinesisvideo/go.mod b/service/kinesisvideo/go.mod index fe5c15116a5..78a2ebf8848 100644 --- a/service/kinesisvideo/go.mod +++ b/service/kinesisvideo/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideo go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/kinesisvideo/serializers.go b/service/kinesisvideo/serializers.go index 853f1eccbe4..a27f17f66d7 100644 --- a/service/kinesisvideo/serializers.go +++ b/service/kinesisvideo/serializers.go @@ -1641,17 +1641,13 @@ func awsRestjson1_serializeDocumentListOfProtocols(v []types.ChannelProtocol, va return nil } -func awsRestjson1_serializeDocumentResourceTags(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourceTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1721,49 +1717,37 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTagOnCreateList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagOnCreateList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/kinesisvideo/validators.go b/service/kinesisvideo/validators.go index d5dd2d7834e..62ce9653ea9 100644 --- a/service/kinesisvideo/validators.go +++ b/service/kinesisvideo/validators.go @@ -364,13 +364,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -381,13 +381,13 @@ func validateTagList(v []*types.Tag) error { } } -func validateTagOnCreateList(v []*types.Tag) error { +func validateTagOnCreateList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagOnCreateList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/kinesisvideoarchivedmedia/api_op_GetMediaForFragmentList.go b/service/kinesisvideoarchivedmedia/api_op_GetMediaForFragmentList.go index 00a4a9ae55c..5c05eb2e050 100644 --- a/service/kinesisvideoarchivedmedia/api_op_GetMediaForFragmentList.go +++ b/service/kinesisvideoarchivedmedia/api_op_GetMediaForFragmentList.go @@ -65,7 +65,7 @@ type GetMediaForFragmentListInput struct { // these values with ListFragments. // // This member is required. - Fragments []*string + Fragments []string // The name of the stream from which to retrieve fragment media. // diff --git a/service/kinesisvideoarchivedmedia/api_op_ListFragments.go b/service/kinesisvideoarchivedmedia/api_op_ListFragments.go index 8ed166603d2..8da61666e59 100644 --- a/service/kinesisvideoarchivedmedia/api_op_ListFragments.go +++ b/service/kinesisvideoarchivedmedia/api_op_ListFragments.go @@ -78,7 +78,7 @@ type ListFragmentsOutput struct { // A list of archived Fragment objects from the stream that meet the selector // criteria. Results are in no specific order, even across pages. - Fragments []*types.Fragment + Fragments []types.Fragment // If the returned list is truncated, the operation returns this token to use to // retrieve the next page of results. This value is null when there are no more diff --git a/service/kinesisvideoarchivedmedia/deserializers.go b/service/kinesisvideoarchivedmedia/deserializers.go index fa9a0554af5..01b77b4901b 100644 --- a/service/kinesisvideoarchivedmedia/deserializers.go +++ b/service/kinesisvideoarchivedmedia/deserializers.go @@ -317,7 +317,7 @@ func awsRestjson1_deserializeOpDocumentGetDASHStreamingSessionURLOutput(v **GetD if !ok { return fmt.Errorf("expected DASHStreamingSessionURL to be of type string, got %T instead", value) } - sv.DASHStreamingSessionURL = &jtv + sv.DASHStreamingSessionURL = ptr.String(jtv) } default: @@ -489,7 +489,7 @@ func awsRestjson1_deserializeOpDocumentGetHLSStreamingSessionURLOutput(v **GetHL if !ok { return fmt.Errorf("expected HLSStreamingSessionURL to be of type string, got %T instead", value) } - sv.HLSStreamingSessionURL = &jtv + sv.HLSStreamingSessionURL = ptr.String(jtv) } default: @@ -777,7 +777,7 @@ func awsRestjson1_deserializeOpDocumentListFragmentsOutput(v **ListFragmentsOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1141,7 +1141,7 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1185,7 +1185,7 @@ func awsRestjson1_deserializeDocumentFragment(v **types.Fragment, value interfac if err != nil { return err } - sv.FragmentLengthInMilliseconds = &i64 + sv.FragmentLengthInMilliseconds = i64 } case "FragmentNumber": @@ -1194,7 +1194,7 @@ func awsRestjson1_deserializeDocumentFragment(v **types.Fragment, value interfac if !ok { return fmt.Errorf("expected FragmentNumberString to be of type string, got %T instead", value) } - sv.FragmentNumber = &jtv + sv.FragmentNumber = ptr.String(jtv) } case "FragmentSizeInBytes": @@ -1207,7 +1207,7 @@ func awsRestjson1_deserializeDocumentFragment(v **types.Fragment, value interfac if err != nil { return err } - sv.FragmentSizeInBytes = &i64 + sv.FragmentSizeInBytes = i64 } case "ProducerTimestamp": @@ -1245,7 +1245,7 @@ func awsRestjson1_deserializeDocumentFragment(v **types.Fragment, value interfac return nil } -func awsRestjson1_deserializeDocumentFragmentList(v *[]*types.Fragment, value interface{}) error { +func awsRestjson1_deserializeDocumentFragmentList(v *[]types.Fragment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1258,18 +1258,20 @@ func awsRestjson1_deserializeDocumentFragmentList(v *[]*types.Fragment, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Fragment + var cv []types.Fragment if *v == nil { - cv = []*types.Fragment{} + cv = []types.Fragment{} } else { cv = *v } for _, value := range shape { - var col *types.Fragment - if err := awsRestjson1_deserializeDocumentFragment(&col, value); err != nil { + var col types.Fragment + destAddr := &col + if err := awsRestjson1_deserializeDocumentFragment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1305,7 +1307,7 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1345,7 +1347,7 @@ func awsRestjson1_deserializeDocumentInvalidCodecPrivateDataException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1385,7 +1387,7 @@ func awsRestjson1_deserializeDocumentInvalidMediaFrameException(v **types.Invali if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1425,7 +1427,7 @@ func awsRestjson1_deserializeDocumentMissingCodecPrivateDataException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1465,7 +1467,7 @@ func awsRestjson1_deserializeDocumentNoDataRetentionException(v **types.NoDataRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1505,7 +1507,7 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1545,7 +1547,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1585,7 +1587,7 @@ func awsRestjson1_deserializeDocumentUnsupportedStreamMediaTypeException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/kinesisvideoarchivedmedia/go.mod b/service/kinesisvideoarchivedmedia/go.mod index 79dd0792409..5b683d699b5 100644 --- a/service/kinesisvideoarchivedmedia/go.mod +++ b/service/kinesisvideoarchivedmedia/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideoarchivedmedia go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/kinesisvideoarchivedmedia/serializers.go b/service/kinesisvideoarchivedmedia/serializers.go index 59f054087ff..af10c468ac1 100644 --- a/service/kinesisvideoarchivedmedia/serializers.go +++ b/service/kinesisvideoarchivedmedia/serializers.go @@ -567,17 +567,13 @@ func awsRestjson1_serializeDocumentDASHTimestampRange(v *types.DASHTimestampRang return nil } -func awsRestjson1_serializeDocumentFragmentNumberList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFragmentNumberList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/kinesisvideoarchivedmedia/types/types.go b/service/kinesisvideoarchivedmedia/types/types.go index c487d3889c8..614c96d0902 100644 --- a/service/kinesisvideoarchivedmedia/types/types.go +++ b/service/kinesisvideoarchivedmedia/types/types.go @@ -114,7 +114,7 @@ type DASHTimestampRange struct { type Fragment struct { // The playback duration or other time value associated with the fragment. - FragmentLengthInMilliseconds *int64 + FragmentLengthInMilliseconds int64 // The unique identifier of the fragment. This value monotonically increases based // on the ingestion order. @@ -122,7 +122,7 @@ type Fragment struct { // The total fragment size, including information about the fragment and contained // media data. - FragmentSizeInBytes *int64 + FragmentSizeInBytes int64 // The timestamp from the producer corresponding to the fragment. ProducerTimestamp *time.Time diff --git a/service/kinesisvideomedia/deserializers.go b/service/kinesisvideomedia/deserializers.go index 49d9c3f0577..b068eb10392 100644 --- a/service/kinesisvideomedia/deserializers.go +++ b/service/kinesisvideomedia/deserializers.go @@ -391,7 +391,7 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -431,7 +431,7 @@ func awsRestjson1_deserializeDocumentConnectionLimitExceededException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -471,7 +471,7 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -511,7 +511,7 @@ func awsRestjson1_deserializeDocumentInvalidEndpointException(v **types.InvalidE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -551,7 +551,7 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -591,7 +591,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/kinesisvideomedia/go.mod b/service/kinesisvideomedia/go.mod index 964b5d2cca0..087034b54c3 100644 --- a/service/kinesisvideomedia/go.mod +++ b/service/kinesisvideomedia/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideomedia go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/kinesisvideosignaling/api_op_GetIceServerConfig.go b/service/kinesisvideosignaling/api_op_GetIceServerConfig.go index 818b55ee38b..9b76b948d0e 100644 --- a/service/kinesisvideosignaling/api_op_GetIceServerConfig.go +++ b/service/kinesisvideosignaling/api_op_GetIceServerConfig.go @@ -61,7 +61,7 @@ type GetIceServerConfigInput struct { type GetIceServerConfigOutput struct { // The list of ICE server information objects. - IceServerList []*types.IceServer + IceServerList []types.IceServer // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kinesisvideosignaling/deserializers.go b/service/kinesisvideosignaling/deserializers.go index b153a354b19..9e572a827df 100644 --- a/service/kinesisvideosignaling/deserializers.go +++ b/service/kinesisvideosignaling/deserializers.go @@ -328,7 +328,7 @@ func awsRestjson1_deserializeOpDocumentSendAlexaOfferToMasterOutput(v **SendAlex if !ok { return fmt.Errorf("expected Answer to be of type string, got %T instead", value) } - sv.Answer = &jtv + sv.Answer = ptr.String(jtv) } default: @@ -584,7 +584,7 @@ func awsRestjson1_deserializeDocumentClientLimitExceededException(v **types.Clie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -624,7 +624,7 @@ func awsRestjson1_deserializeDocumentIceServer(v **types.IceServer, value interf if !ok { return fmt.Errorf("expected Password to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "Ttl": @@ -637,7 +637,7 @@ func awsRestjson1_deserializeDocumentIceServer(v **types.IceServer, value interf if err != nil { return err } - sv.Ttl = ptr.Int32(int32(i64)) + sv.Ttl = int32(i64) } case "Uris": @@ -651,7 +651,7 @@ func awsRestjson1_deserializeDocumentIceServer(v **types.IceServer, value interf if !ok { return fmt.Errorf("expected Username to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -663,7 +663,7 @@ func awsRestjson1_deserializeDocumentIceServer(v **types.IceServer, value interf return nil } -func awsRestjson1_deserializeDocumentIceServerList(v *[]*types.IceServer, value interface{}) error { +func awsRestjson1_deserializeDocumentIceServerList(v *[]types.IceServer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -676,18 +676,20 @@ func awsRestjson1_deserializeDocumentIceServerList(v *[]*types.IceServer, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IceServer + var cv []types.IceServer if *v == nil { - cv = []*types.IceServer{} + cv = []types.IceServer{} } else { cv = *v } for _, value := range shape { - var col *types.IceServer - if err := awsRestjson1_deserializeDocumentIceServer(&col, value); err != nil { + var col types.IceServer + destAddr := &col + if err := awsRestjson1_deserializeDocumentIceServer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -723,7 +725,7 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -763,7 +765,7 @@ func awsRestjson1_deserializeDocumentInvalidClientException(v **types.InvalidCli if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -803,7 +805,7 @@ func awsRestjson1_deserializeDocumentNotAuthorizedException(v **types.NotAuthori if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -843,7 +845,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -883,7 +885,7 @@ func awsRestjson1_deserializeDocumentSessionExpiredException(v **types.SessionEx if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -895,7 +897,7 @@ func awsRestjson1_deserializeDocumentSessionExpiredException(v **types.SessionEx return nil } -func awsRestjson1_deserializeDocumentUris(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentUris(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -908,21 +910,21 @@ func awsRestjson1_deserializeDocumentUris(v *[]*string, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) diff --git a/service/kinesisvideosignaling/go.mod b/service/kinesisvideosignaling/go.mod index 9884be024ca..f1ad51dcc92 100644 --- a/service/kinesisvideosignaling/go.mod +++ b/service/kinesisvideosignaling/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideosignaling go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/kinesisvideosignaling/types/types.go b/service/kinesisvideosignaling/types/types.go index ecb2bda7495..a3db96c8ce5 100644 --- a/service/kinesisvideosignaling/types/types.go +++ b/service/kinesisvideosignaling/types/types.go @@ -10,14 +10,14 @@ type IceServer struct { // The period of time, in seconds, during which the username and password are // valid. - Ttl *int32 + Ttl int32 // An array of URIs, in the form specified in the // I-D.petithuguenin-behave-turn-uris // (https://tools.ietf.org/html/draft-petithuguenin-behave-turn-uris-03) spec. // These URIs provide the different addresses and/or protocols that can be used to // reach the TURN server. - Uris []*string + Uris []string // A username to login to the ICE server. Username *string diff --git a/service/kms/api_op_CreateGrant.go b/service/kms/api_op_CreateGrant.go index be887b0769e..067c37fa972 100644 --- a/service/kms/api_op_CreateGrant.go +++ b/service/kms/api_op_CreateGrant.go @@ -125,7 +125,7 @@ type CreateGrantInput struct { // A list of grant tokens. For more information, see Grant Tokens // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) // in the AWS Key Management Service Developer Guide. - GrantTokens []*string + GrantTokens []string // A friendly name for identifying the grant. Use this value to prevent the // unintended creation of duplicate grants when retrying this request. When this diff --git a/service/kms/api_op_CreateKey.go b/service/kms/api_op_CreateKey.go index 896a42d9d64..c8d369cd200 100644 --- a/service/kms/api_op_CreateKey.go +++ b/service/kms/api_op_CreateKey.go @@ -91,7 +91,7 @@ type CreateKeyInput struct { // only when you include a policy in the request and you intend to prevent the // principal that is making the request from making a subsequent PutKeyPolicy // request on the CMK. The default value is false. - BypassPolicyLockoutSafetyCheck *bool + BypassPolicyLockoutSafetyCheck bool // Creates the CMK in the specified custom key store // (https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html) @@ -236,7 +236,7 @@ type CreateKeyInput struct { // (https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html). Use // this parameter to tag the CMK when it is created. To add tags to an existing // CMK, use the TagResource operation. - Tags []*types.Tag + Tags []types.Tag } type CreateKeyOutput struct { diff --git a/service/kms/api_op_Decrypt.go b/service/kms/api_op_Decrypt.go index 396554973aa..20b2746ffa5 100644 --- a/service/kms/api_op_Decrypt.go +++ b/service/kms/api_op_Decrypt.go @@ -98,12 +98,12 @@ type DecryptInput struct { // highly recommended. For more information, see Encryption Context // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context) // in the AWS Key Management Service Developer Guide. - EncryptionContext map[string]*string + EncryptionContext map[string]string // A list of grant tokens. For more information, see Grant Tokens // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) // in the AWS Key Management Service Developer Guide. - GrantTokens []*string + GrantTokens []string // Specifies the customer master key (CMK) that AWS KMS will use to decrypt the // ciphertext. Enter a key ID of the CMK that was used to encrypt the ciphertext. diff --git a/service/kms/api_op_DescribeCustomKeyStores.go b/service/kms/api_op_DescribeCustomKeyStores.go index ecef16f644c..136fca6bb00 100644 --- a/service/kms/api_op_DescribeCustomKeyStores.go +++ b/service/kms/api_op_DescribeCustomKeyStores.go @@ -79,7 +79,7 @@ type DescribeCustomKeyStoresInput struct { type DescribeCustomKeyStoresOutput struct { // Contains metadata about each custom key store. - CustomKeyStores []*types.CustomKeyStoresListEntry + CustomKeyStores []types.CustomKeyStoresListEntry // When Truncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent request. @@ -89,7 +89,7 @@ type DescribeCustomKeyStoresOutput struct { // is true, the list in this response is truncated. To get more items, pass the // value of the NextMarker element in thisresponse to the Marker parameter in a // subsequent request. - Truncated *bool + Truncated bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kms/api_op_DescribeKey.go b/service/kms/api_op_DescribeKey.go index 7d97e8f7ed7..f5f4d4b9f5c 100644 --- a/service/kms/api_op_DescribeKey.go +++ b/service/kms/api_op_DescribeKey.go @@ -98,7 +98,7 @@ type DescribeKeyInput struct { // A list of grant tokens. For more information, see Grant Tokens // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) // in the AWS Key Management Service Developer Guide. - GrantTokens []*string + GrantTokens []string } type DescribeKeyOutput struct { diff --git a/service/kms/api_op_Encrypt.go b/service/kms/api_op_Encrypt.go index d2c2c3f5493..d809c1d92e3 100644 --- a/service/kms/api_op_Encrypt.go +++ b/service/kms/api_op_Encrypt.go @@ -149,12 +149,12 @@ type EncryptInput struct { // highly recommended. For more information, see Encryption Context // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context) // in the AWS Key Management Service Developer Guide. - EncryptionContext map[string]*string + EncryptionContext map[string]string // A list of grant tokens. For more information, see Grant Tokens // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) // in the AWS Key Management Service Developer Guide. - GrantTokens []*string + GrantTokens []string } type EncryptOutput struct { diff --git a/service/kms/api_op_GenerateDataKey.go b/service/kms/api_op_GenerateDataKey.go index 55ff7a53e7c..432d3af66fe 100644 --- a/service/kms/api_op_GenerateDataKey.go +++ b/service/kms/api_op_GenerateDataKey.go @@ -116,12 +116,12 @@ type GenerateDataKeyInput struct { // information, see Encryption Context // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context) // in the AWS Key Management Service Developer Guide. - EncryptionContext map[string]*string + EncryptionContext map[string]string // A list of grant tokens. For more information, see Grant Tokens // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) // in the AWS Key Management Service Developer Guide. - GrantTokens []*string + GrantTokens []string // Specifies the length of the data key. Use AES_128 to generate a 128-bit // symmetric key, or AES_256 to generate a 256-bit symmetric key. You must specify diff --git a/service/kms/api_op_GenerateDataKeyPair.go b/service/kms/api_op_GenerateDataKeyPair.go index b56f7c0c3ef..1dc28cca15f 100644 --- a/service/kms/api_op_GenerateDataKeyPair.go +++ b/service/kms/api_op_GenerateDataKeyPair.go @@ -103,12 +103,12 @@ type GenerateDataKeyPairInput struct { // recommended. For more information, see Encryption Context // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context) // in the AWS Key Management Service Developer Guide. - EncryptionContext map[string]*string + EncryptionContext map[string]string // A list of grant tokens. For more information, see Grant Tokens // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) // in the AWS Key Management Service Developer Guide. - GrantTokens []*string + GrantTokens []string } type GenerateDataKeyPairOutput struct { diff --git a/service/kms/api_op_GenerateDataKeyPairWithoutPlaintext.go b/service/kms/api_op_GenerateDataKeyPairWithoutPlaintext.go index 90dc293b06d..e649fe26998 100644 --- a/service/kms/api_op_GenerateDataKeyPairWithoutPlaintext.go +++ b/service/kms/api_op_GenerateDataKeyPairWithoutPlaintext.go @@ -96,12 +96,12 @@ type GenerateDataKeyPairWithoutPlaintextInput struct { // recommended. For more information, see Encryption Context // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context) // in the AWS Key Management Service Developer Guide. - EncryptionContext map[string]*string + EncryptionContext map[string]string // A list of grant tokens. For more information, see Grant Tokens // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) // in the AWS Key Management Service Developer Guide. - GrantTokens []*string + GrantTokens []string } type GenerateDataKeyPairWithoutPlaintextOutput struct { diff --git a/service/kms/api_op_GenerateDataKeyWithoutPlaintext.go b/service/kms/api_op_GenerateDataKeyWithoutPlaintext.go index 340ae039c39..f7b8ee7a89b 100644 --- a/service/kms/api_op_GenerateDataKeyWithoutPlaintext.go +++ b/service/kms/api_op_GenerateDataKeyWithoutPlaintext.go @@ -94,12 +94,12 @@ type GenerateDataKeyWithoutPlaintextInput struct { // information, see Encryption Context // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context) // in the AWS Key Management Service Developer Guide. - EncryptionContext map[string]*string + EncryptionContext map[string]string // A list of grant tokens. For more information, see Grant Tokens // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) // in the AWS Key Management Service Developer Guide. - GrantTokens []*string + GrantTokens []string // The length of the data key. Use AES_128 to generate a 128-bit symmetric key, or // AES_256 to generate a 256-bit symmetric key. diff --git a/service/kms/api_op_GetKeyRotationStatus.go b/service/kms/api_op_GetKeyRotationStatus.go index 228bfc0ac44..db58e1ab2de 100644 --- a/service/kms/api_op_GetKeyRotationStatus.go +++ b/service/kms/api_op_GetKeyRotationStatus.go @@ -71,7 +71,7 @@ type GetKeyRotationStatusInput struct { type GetKeyRotationStatusOutput struct { // A Boolean value that specifies whether key rotation is enabled. - KeyRotationEnabled *bool + KeyRotationEnabled bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kms/api_op_GetPublicKey.go b/service/kms/api_op_GetPublicKey.go index 01a3c598ea0..eb52ac7615a 100644 --- a/service/kms/api_op_GetPublicKey.go +++ b/service/kms/api_op_GetPublicKey.go @@ -101,7 +101,7 @@ type GetPublicKeyInput struct { // A list of grant tokens. For more information, see Grant Tokens // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) // in the AWS Key Management Service Developer Guide. - GrantTokens []*string + GrantTokens []string } type GetPublicKeyOutput struct { diff --git a/service/kms/api_op_ListAliases.go b/service/kms/api_op_ListAliases.go index 03998f7d869..a468b984e8c 100644 --- a/service/kms/api_op_ListAliases.go +++ b/service/kms/api_op_ListAliases.go @@ -64,7 +64,7 @@ type ListAliasesInput struct { type ListAliasesOutput struct { // A list of aliases. - Aliases []*types.AliasListEntry + Aliases []types.AliasListEntry // When Truncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent request. @@ -74,7 +74,7 @@ type ListAliasesOutput struct { // is true, the list in this response is truncated. To get more items, pass the // value of the NextMarker element in thisresponse to the Marker parameter in a // subsequent request. - Truncated *bool + Truncated bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kms/api_op_ListGrants.go b/service/kms/api_op_ListGrants.go index 49722367671..af57f3e07fb 100644 --- a/service/kms/api_op_ListGrants.go +++ b/service/kms/api_op_ListGrants.go @@ -68,7 +68,7 @@ type ListGrantsInput struct { type ListGrantsOutput struct { // A list of grants. - Grants []*types.GrantListEntry + Grants []types.GrantListEntry // When Truncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent request. @@ -78,7 +78,7 @@ type ListGrantsOutput struct { // is true, the list in this response is truncated. To get more items, pass the // value of the NextMarker element in thisresponse to the Marker parameter in a // subsequent request. - Truncated *bool + Truncated bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kms/api_op_ListKeyPolicies.go b/service/kms/api_op_ListKeyPolicies.go index d34db82b00d..503a47112be 100644 --- a/service/kms/api_op_ListKeyPolicies.go +++ b/service/kms/api_op_ListKeyPolicies.go @@ -66,13 +66,13 @@ type ListKeyPoliciesOutput struct { NextMarker *string // A list of key policy names. The only valid value is default. - PolicyNames []*string + PolicyNames []string // A flag that indicates whether there are more items in the list. When this value // is true, the list in this response is truncated. To get more items, pass the // value of the NextMarker element in thisresponse to the Marker parameter in a // subsequent request. - Truncated *bool + Truncated bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kms/api_op_ListKeys.go b/service/kms/api_op_ListKeys.go index 309c9883eee..696a9f50bbf 100644 --- a/service/kms/api_op_ListKeys.go +++ b/service/kms/api_op_ListKeys.go @@ -46,7 +46,7 @@ type ListKeysInput struct { type ListKeysOutput struct { // A list of customer master keys (CMKs). - Keys []*types.KeyListEntry + Keys []types.KeyListEntry // When Truncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent request. @@ -56,7 +56,7 @@ type ListKeysOutput struct { // is true, the list in this response is truncated. To get more items, pass the // value of the NextMarker element in thisresponse to the Marker parameter in a // subsequent request. - Truncated *bool + Truncated bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kms/api_op_ListResourceTags.go b/service/kms/api_op_ListResourceTags.go index 926b1e45142..d9736c6fb95 100644 --- a/service/kms/api_op_ListResourceTags.go +++ b/service/kms/api_op_ListResourceTags.go @@ -67,13 +67,13 @@ type ListResourceTagsOutput struct { NextMarker *string // A list of tags. Each tag consists of a tag key and a tag value. - Tags []*types.Tag + Tags []types.Tag // A flag that indicates whether there are more items in the list. When this value // is true, the list in this response is truncated. To get more items, pass the // value of the NextMarker element in thisresponse to the Marker parameter in a // subsequent request. - Truncated *bool + Truncated bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kms/api_op_ListRetirableGrants.go b/service/kms/api_op_ListRetirableGrants.go index 5ebfaf3f08f..3d9cb8a7de9 100644 --- a/service/kms/api_op_ListRetirableGrants.go +++ b/service/kms/api_op_ListRetirableGrants.go @@ -59,7 +59,7 @@ type ListRetirableGrantsInput struct { type ListRetirableGrantsOutput struct { // A list of grants. - Grants []*types.GrantListEntry + Grants []types.GrantListEntry // When Truncated is true, this element is present and contains the value to use // for the Marker parameter in a subsequent request. @@ -69,7 +69,7 @@ type ListRetirableGrantsOutput struct { // is true, the list in this response is truncated. To get more items, pass the // value of the NextMarker element in thisresponse to the Marker parameter in a // subsequent request. - Truncated *bool + Truncated bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/kms/api_op_PutKeyPolicy.go b/service/kms/api_op_PutKeyPolicy.go index 884ac9d381e..19b1630fc69 100644 --- a/service/kms/api_op_PutKeyPolicy.go +++ b/service/kms/api_op_PutKeyPolicy.go @@ -89,7 +89,7 @@ type PutKeyPolicyInput struct { // section in the AWS Key Management Service Developer Guide. Use this parameter // only when you intend to prevent the principal that is making the request from // making a subsequent PutKeyPolicy request on the CMK. The default value is false. - BypassPolicyLockoutSafetyCheck *bool + BypassPolicyLockoutSafetyCheck bool } type PutKeyPolicyOutput struct { diff --git a/service/kms/api_op_ReEncrypt.go b/service/kms/api_op_ReEncrypt.go index 25bfb96027b..15a35df9c24 100644 --- a/service/kms/api_op_ReEncrypt.go +++ b/service/kms/api_op_ReEncrypt.go @@ -142,12 +142,12 @@ type ReEncryptInput struct { // recommended. For more information, see Encryption Context // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context) // in the AWS Key Management Service Developer Guide. - DestinationEncryptionContext map[string]*string + DestinationEncryptionContext map[string]string // A list of grant tokens. For more information, see Grant Tokens // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) // in the AWS Key Management Service Developer Guide. - GrantTokens []*string + GrantTokens []string // Specifies the encryption algorithm that AWS KMS will use to decrypt the // ciphertext before it is reencrypted. The default value, SYMMETRIC_DEFAULT, @@ -166,7 +166,7 @@ type ReEncryptInput struct { // CMK, but it is highly recommended. For more information, see Encryption Context // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context) // in the AWS Key Management Service Developer Guide. - SourceEncryptionContext map[string]*string + SourceEncryptionContext map[string]string // A unique identifier for the CMK that is used to decrypt the ciphertext before it // reencrypts it using the destination CMK. This parameter is required only when diff --git a/service/kms/api_op_Sign.go b/service/kms/api_op_Sign.go index ac4ea053252..2196b5ab6a9 100644 --- a/service/kms/api_op_Sign.go +++ b/service/kms/api_op_Sign.go @@ -108,7 +108,7 @@ type SignInput struct { // A list of grant tokens. For more information, see Grant Tokens // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) // in the AWS Key Management Service Developer Guide. - GrantTokens []*string + GrantTokens []string // Tells AWS KMS whether the value of the Message parameter is a message or message // digest. The default value, RAW, indicates a message. To indicate a message diff --git a/service/kms/api_op_TagResource.go b/service/kms/api_op_TagResource.go index 5f6a70c48c8..79a77d0eac6 100644 --- a/service/kms/api_op_TagResource.go +++ b/service/kms/api_op_TagResource.go @@ -59,7 +59,7 @@ type TagResourceInput struct { // One or more tags. Each tag consists of a tag key and a tag value. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/kms/api_op_UntagResource.go b/service/kms/api_op_UntagResource.go index 8c4344d9f56..f7e47ecb514 100644 --- a/service/kms/api_op_UntagResource.go +++ b/service/kms/api_op_UntagResource.go @@ -52,7 +52,7 @@ type UntagResourceInput struct { // One or more tag keys. Specify only the tag keys, not the tag values. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/kms/api_op_Verify.go b/service/kms/api_op_Verify.go index f4662d9e4aa..3fa66e291f7 100644 --- a/service/kms/api_op_Verify.go +++ b/service/kms/api_op_Verify.go @@ -101,7 +101,7 @@ type VerifyInput struct { // A list of grant tokens. For more information, see Grant Tokens // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) // in the AWS Key Management Service Developer Guide. - GrantTokens []*string + GrantTokens []string // Tells AWS KMS whether the value of the Message parameter is a message or message // digest. The default value, RAW, indicates a message. To indicate a message @@ -122,7 +122,7 @@ type VerifyOutput struct { // True indicates that the Signature was produced by signing the Message with the // specified KeyID and SigningAlgorithm. If the signature is not verified, the // Verify operation fails with a KMSInvalidSignatureException exception. - SignatureValid *bool + SignatureValid bool // The signing algorithm that was used to verify the signature. SigningAlgorithm types.SigningAlgorithmSpec diff --git a/service/kms/deserializers.go b/service/kms/deserializers.go index 615755e9bcb..0ddcc531431 100644 --- a/service/kms/deserializers.go +++ b/service/kms/deserializers.go @@ -7022,7 +7022,7 @@ func awsAwsjson11_deserializeErrorUnsupportedOperationException(response *smithy return output } -func awsAwsjson11_deserializeDocumentAliasList(v *[]*types.AliasListEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentAliasList(v *[]types.AliasListEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7035,18 +7035,20 @@ func awsAwsjson11_deserializeDocumentAliasList(v *[]*types.AliasListEntry, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AliasListEntry + var cv []types.AliasListEntry if *v == nil { - cv = []*types.AliasListEntry{} + cv = []types.AliasListEntry{} } else { cv = *v } for _, value := range shape { - var col *types.AliasListEntry - if err := awsAwsjson11_deserializeDocumentAliasListEntry(&col, value); err != nil { + var col types.AliasListEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAliasListEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7082,7 +7084,7 @@ func awsAwsjson11_deserializeDocumentAliasListEntry(v **types.AliasListEntry, va if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.AliasArn = &jtv + sv.AliasArn = ptr.String(jtv) } case "AliasName": @@ -7091,7 +7093,7 @@ func awsAwsjson11_deserializeDocumentAliasListEntry(v **types.AliasListEntry, va if !ok { return fmt.Errorf("expected AliasNameType to be of type string, got %T instead", value) } - sv.AliasName = &jtv + sv.AliasName = ptr.String(jtv) } case "TargetKeyId": @@ -7100,7 +7102,7 @@ func awsAwsjson11_deserializeDocumentAliasListEntry(v **types.AliasListEntry, va if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.TargetKeyId = &jtv + sv.TargetKeyId = ptr.String(jtv) } default: @@ -7140,7 +7142,7 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7180,7 +7182,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterInUseException(v **types.Clo if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7220,7 +7222,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterInvalidConfigurationExceptio if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7260,7 +7262,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterNotActiveException(v **types if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7300,7 +7302,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterNotFoundException(v **types. if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7340,7 +7342,7 @@ func awsAwsjson11_deserializeDocumentCloudHsmClusterNotRelatedException(v **type if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7380,7 +7382,7 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoreHasCMKsException(v **types.Cu if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7420,7 +7422,7 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoreInvalidStateException(v **typ if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7460,7 +7462,7 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoreNameInUseException(v **types. if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7500,7 +7502,7 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoreNotFoundException(v **types.C if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7512,7 +7514,7 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoreNotFoundException(v **types.C return nil } -func awsAwsjson11_deserializeDocumentCustomKeyStoresList(v *[]*types.CustomKeyStoresListEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentCustomKeyStoresList(v *[]types.CustomKeyStoresListEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7525,18 +7527,20 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoresList(v *[]*types.CustomKeySt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CustomKeyStoresListEntry + var cv []types.CustomKeyStoresListEntry if *v == nil { - cv = []*types.CustomKeyStoresListEntry{} + cv = []types.CustomKeyStoresListEntry{} } else { cv = *v } for _, value := range shape { - var col *types.CustomKeyStoresListEntry - if err := awsAwsjson11_deserializeDocumentCustomKeyStoresListEntry(&col, value); err != nil { + var col types.CustomKeyStoresListEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCustomKeyStoresListEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7572,7 +7576,7 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoresListEntry(v **types.CustomKe if !ok { return fmt.Errorf("expected CloudHsmClusterIdType to be of type string, got %T instead", value) } - sv.CloudHsmClusterId = &jtv + sv.CloudHsmClusterId = ptr.String(jtv) } case "ConnectionErrorCode": @@ -7612,7 +7616,7 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoresListEntry(v **types.CustomKe if !ok { return fmt.Errorf("expected CustomKeyStoreIdType to be of type string, got %T instead", value) } - sv.CustomKeyStoreId = &jtv + sv.CustomKeyStoreId = ptr.String(jtv) } case "CustomKeyStoreName": @@ -7621,7 +7625,7 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoresListEntry(v **types.CustomKe if !ok { return fmt.Errorf("expected CustomKeyStoreNameType to be of type string, got %T instead", value) } - sv.CustomKeyStoreName = &jtv + sv.CustomKeyStoreName = ptr.String(jtv) } case "TrustAnchorCertificate": @@ -7630,7 +7634,7 @@ func awsAwsjson11_deserializeDocumentCustomKeyStoresListEntry(v **types.CustomKe if !ok { return fmt.Errorf("expected TrustAnchorCertificateType to be of type string, got %T instead", value) } - sv.TrustAnchorCertificate = &jtv + sv.TrustAnchorCertificate = ptr.String(jtv) } default: @@ -7670,7 +7674,7 @@ func awsAwsjson11_deserializeDocumentDependencyTimeoutException(v **types.Depend if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7710,7 +7714,7 @@ func awsAwsjson11_deserializeDocumentDisabledException(v **types.DisabledExcepti if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7758,7 +7762,7 @@ func awsAwsjson11_deserializeDocumentEncryptionAlgorithmSpecList(v *[]types.Encr return nil } -func awsAwsjson11_deserializeDocumentEncryptionContextType(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentEncryptionContextType(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7771,21 +7775,21 @@ func awsAwsjson11_deserializeDocumentEncryptionContextType(v *map[string]*string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected EncryptionContextValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -7822,7 +7826,7 @@ func awsAwsjson11_deserializeDocumentExpiredImportTokenException(v **types.Expir if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7875,7 +7879,7 @@ func awsAwsjson11_deserializeDocumentGrantConstraints(v **types.GrantConstraints return nil } -func awsAwsjson11_deserializeDocumentGrantList(v *[]*types.GrantListEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentGrantList(v *[]types.GrantListEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7888,18 +7892,20 @@ func awsAwsjson11_deserializeDocumentGrantList(v *[]*types.GrantListEntry, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GrantListEntry + var cv []types.GrantListEntry if *v == nil { - cv = []*types.GrantListEntry{} + cv = []types.GrantListEntry{} } else { cv = *v } for _, value := range shape { - var col *types.GrantListEntry - if err := awsAwsjson11_deserializeDocumentGrantListEntry(&col, value); err != nil { + var col types.GrantListEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGrantListEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7953,7 +7959,7 @@ func awsAwsjson11_deserializeDocumentGrantListEntry(v **types.GrantListEntry, va if !ok { return fmt.Errorf("expected PrincipalIdType to be of type string, got %T instead", value) } - sv.GranteePrincipal = &jtv + sv.GranteePrincipal = ptr.String(jtv) } case "GrantId": @@ -7962,7 +7968,7 @@ func awsAwsjson11_deserializeDocumentGrantListEntry(v **types.GrantListEntry, va if !ok { return fmt.Errorf("expected GrantIdType to be of type string, got %T instead", value) } - sv.GrantId = &jtv + sv.GrantId = ptr.String(jtv) } case "IssuingAccount": @@ -7971,7 +7977,7 @@ func awsAwsjson11_deserializeDocumentGrantListEntry(v **types.GrantListEntry, va if !ok { return fmt.Errorf("expected PrincipalIdType to be of type string, got %T instead", value) } - sv.IssuingAccount = &jtv + sv.IssuingAccount = ptr.String(jtv) } case "KeyId": @@ -7980,7 +7986,7 @@ func awsAwsjson11_deserializeDocumentGrantListEntry(v **types.GrantListEntry, va if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "Name": @@ -7989,7 +7995,7 @@ func awsAwsjson11_deserializeDocumentGrantListEntry(v **types.GrantListEntry, va if !ok { return fmt.Errorf("expected GrantNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Operations": @@ -8003,7 +8009,7 @@ func awsAwsjson11_deserializeDocumentGrantListEntry(v **types.GrantListEntry, va if !ok { return fmt.Errorf("expected PrincipalIdType to be of type string, got %T instead", value) } - sv.RetiringPrincipal = &jtv + sv.RetiringPrincipal = ptr.String(jtv) } default: @@ -8079,7 +8085,7 @@ func awsAwsjson11_deserializeDocumentIncorrectKeyException(v **types.IncorrectKe if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8119,7 +8125,7 @@ func awsAwsjson11_deserializeDocumentIncorrectKeyMaterialException(v **types.Inc if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8159,7 +8165,7 @@ func awsAwsjson11_deserializeDocumentIncorrectTrustAnchorException(v **types.Inc if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8199,7 +8205,7 @@ func awsAwsjson11_deserializeDocumentInvalidAliasNameException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8239,7 +8245,7 @@ func awsAwsjson11_deserializeDocumentInvalidArnException(v **types.InvalidArnExc if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8279,7 +8285,7 @@ func awsAwsjson11_deserializeDocumentInvalidCiphertextException(v **types.Invali if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8319,7 +8325,7 @@ func awsAwsjson11_deserializeDocumentInvalidGrantIdException(v **types.InvalidGr if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8359,7 +8365,7 @@ func awsAwsjson11_deserializeDocumentInvalidGrantTokenException(v **types.Invali if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8399,7 +8405,7 @@ func awsAwsjson11_deserializeDocumentInvalidImportTokenException(v **types.Inval if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8439,7 +8445,7 @@ func awsAwsjson11_deserializeDocumentInvalidKeyUsageException(v **types.InvalidK if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8479,7 +8485,7 @@ func awsAwsjson11_deserializeDocumentInvalidMarkerException(v **types.InvalidMar if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8491,7 +8497,7 @@ func awsAwsjson11_deserializeDocumentInvalidMarkerException(v **types.InvalidMar return nil } -func awsAwsjson11_deserializeDocumentKeyList(v *[]*types.KeyListEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentKeyList(v *[]types.KeyListEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8504,18 +8510,20 @@ func awsAwsjson11_deserializeDocumentKeyList(v *[]*types.KeyListEntry, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyListEntry + var cv []types.KeyListEntry if *v == nil { - cv = []*types.KeyListEntry{} + cv = []types.KeyListEntry{} } else { cv = *v } for _, value := range shape { - var col *types.KeyListEntry - if err := awsAwsjson11_deserializeDocumentKeyListEntry(&col, value); err != nil { + var col types.KeyListEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentKeyListEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8551,7 +8559,7 @@ func awsAwsjson11_deserializeDocumentKeyListEntry(v **types.KeyListEntry, value if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.KeyArn = &jtv + sv.KeyArn = ptr.String(jtv) } case "KeyId": @@ -8560,7 +8568,7 @@ func awsAwsjson11_deserializeDocumentKeyListEntry(v **types.KeyListEntry, value if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } default: @@ -8600,7 +8608,7 @@ func awsAwsjson11_deserializeDocumentKeyMetadata(v **types.KeyMetadata, value in if !ok { return fmt.Errorf("expected ArnType to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AWSAccountId": @@ -8609,7 +8617,7 @@ func awsAwsjson11_deserializeDocumentKeyMetadata(v **types.KeyMetadata, value in if !ok { return fmt.Errorf("expected AWSAccountIdType to be of type string, got %T instead", value) } - sv.AWSAccountId = &jtv + sv.AWSAccountId = ptr.String(jtv) } case "CloudHsmClusterId": @@ -8618,7 +8626,7 @@ func awsAwsjson11_deserializeDocumentKeyMetadata(v **types.KeyMetadata, value in if !ok { return fmt.Errorf("expected CloudHsmClusterIdType to be of type string, got %T instead", value) } - sv.CloudHsmClusterId = &jtv + sv.CloudHsmClusterId = ptr.String(jtv) } case "CreationDate": @@ -8649,7 +8657,7 @@ func awsAwsjson11_deserializeDocumentKeyMetadata(v **types.KeyMetadata, value in if !ok { return fmt.Errorf("expected CustomKeyStoreIdType to be of type string, got %T instead", value) } - sv.CustomKeyStoreId = &jtv + sv.CustomKeyStoreId = ptr.String(jtv) } case "DeletionDate": @@ -8671,7 +8679,7 @@ func awsAwsjson11_deserializeDocumentKeyMetadata(v **types.KeyMetadata, value in if !ok { return fmt.Errorf("expected DescriptionType to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Enabled": @@ -8680,7 +8688,7 @@ func awsAwsjson11_deserializeDocumentKeyMetadata(v **types.KeyMetadata, value in if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "EncryptionAlgorithms": @@ -8703,7 +8711,7 @@ func awsAwsjson11_deserializeDocumentKeyMetadata(v **types.KeyMetadata, value in if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "KeyManager": @@ -8797,7 +8805,7 @@ func awsAwsjson11_deserializeDocumentKeyUnavailableException(v **types.KeyUnavai if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8837,7 +8845,7 @@ func awsAwsjson11_deserializeDocumentKMSInternalException(v **types.KMSInternalE if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8877,7 +8885,7 @@ func awsAwsjson11_deserializeDocumentKMSInvalidSignatureException(v **types.KMSI if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8917,7 +8925,7 @@ func awsAwsjson11_deserializeDocumentKMSInvalidStateException(v **types.KMSInval if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8957,7 +8965,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8997,7 +9005,7 @@ func awsAwsjson11_deserializeDocumentMalformedPolicyDocumentException(v **types. if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9037,7 +9045,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9049,7 +9057,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti return nil } -func awsAwsjson11_deserializeDocumentPolicyNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPolicyNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9062,21 +9070,21 @@ func awsAwsjson11_deserializeDocumentPolicyNameList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PolicyNameType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9149,7 +9157,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKeyType to be of type string, got %T instead", value) } - sv.TagKey = &jtv + sv.TagKey = ptr.String(jtv) } case "TagValue": @@ -9158,7 +9166,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValueType to be of type string, got %T instead", value) } - sv.TagValue = &jtv + sv.TagValue = ptr.String(jtv) } default: @@ -9198,7 +9206,7 @@ func awsAwsjson11_deserializeDocumentTagException(v **types.TagException, value if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9210,7 +9218,7 @@ func awsAwsjson11_deserializeDocumentTagException(v **types.TagException, value return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9223,18 +9231,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9270,7 +9280,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9310,7 +9320,7 @@ func awsAwsjson11_deserializeOpDocumentCancelKeyDeletionOutput(v **CancelKeyDele if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } default: @@ -9412,7 +9422,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCustomKeyStoreOutput(v **CreateCust if !ok { return fmt.Errorf("expected CustomKeyStoreIdType to be of type string, got %T instead", value) } - sv.CustomKeyStoreId = &jtv + sv.CustomKeyStoreId = ptr.String(jtv) } default: @@ -9452,7 +9462,7 @@ func awsAwsjson11_deserializeOpDocumentCreateGrantOutput(v **CreateGrantOutput, if !ok { return fmt.Errorf("expected GrantIdType to be of type string, got %T instead", value) } - sv.GrantId = &jtv + sv.GrantId = ptr.String(jtv) } case "GrantToken": @@ -9461,7 +9471,7 @@ func awsAwsjson11_deserializeOpDocumentCreateGrantOutput(v **CreateGrantOutput, if !ok { return fmt.Errorf("expected GrantTokenType to be of type string, got %T instead", value) } - sv.GrantToken = &jtv + sv.GrantToken = ptr.String(jtv) } default: @@ -9546,7 +9556,7 @@ func awsAwsjson11_deserializeOpDocumentDecryptOutput(v **DecryptOutput, value in if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "Plaintext": @@ -9697,7 +9707,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCustomKeyStoresOutput(v **Describ if !ok { return fmt.Errorf("expected MarkerType to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "Truncated": @@ -9706,7 +9716,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCustomKeyStoresOutput(v **Describ if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = jtv } default: @@ -9959,7 +9969,7 @@ func awsAwsjson11_deserializeOpDocumentEncryptOutput(v **EncryptOutput, value in if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } default: @@ -10012,7 +10022,7 @@ func awsAwsjson11_deserializeOpDocumentGenerateDataKeyOutput(v **GenerateDataKey if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "Plaintext": @@ -10065,7 +10075,7 @@ func awsAwsjson11_deserializeOpDocumentGenerateDataKeyPairOutput(v **GenerateDat if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "KeyPairSpec": @@ -10153,7 +10163,7 @@ func awsAwsjson11_deserializeOpDocumentGenerateDataKeyPairWithoutPlaintextOutput if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "KeyPairSpec": @@ -10241,7 +10251,7 @@ func awsAwsjson11_deserializeOpDocumentGenerateDataKeyWithoutPlaintextOutput(v * if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } default: @@ -10325,7 +10335,7 @@ func awsAwsjson11_deserializeOpDocumentGetKeyPolicyOutput(v **GetKeyPolicyOutput if !ok { return fmt.Errorf("expected PolicyType to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -10365,7 +10375,7 @@ func awsAwsjson11_deserializeOpDocumentGetKeyRotationStatusOutput(v **GetKeyRota if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.KeyRotationEnabled = &jtv + sv.KeyRotationEnabled = jtv } default: @@ -10418,7 +10428,7 @@ func awsAwsjson11_deserializeOpDocumentGetParametersForImportOutput(v **GetParam if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "ParametersValidTo": @@ -10498,7 +10508,7 @@ func awsAwsjson11_deserializeOpDocumentGetPublicKeyOutput(v **GetPublicKeyOutput if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "KeyUsage": @@ -10601,7 +10611,7 @@ func awsAwsjson11_deserializeOpDocumentListAliasesOutput(v **ListAliasesOutput, if !ok { return fmt.Errorf("expected MarkerType to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "Truncated": @@ -10610,7 +10620,7 @@ func awsAwsjson11_deserializeOpDocumentListAliasesOutput(v **ListAliasesOutput, if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = jtv } default: @@ -10655,7 +10665,7 @@ func awsAwsjson11_deserializeOpDocumentListGrantsOutput(v **ListGrantsOutput, va if !ok { return fmt.Errorf("expected MarkerType to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "Truncated": @@ -10664,7 +10674,7 @@ func awsAwsjson11_deserializeOpDocumentListGrantsOutput(v **ListGrantsOutput, va if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = jtv } default: @@ -10704,7 +10714,7 @@ func awsAwsjson11_deserializeOpDocumentListKeyPoliciesOutput(v **ListKeyPolicies if !ok { return fmt.Errorf("expected MarkerType to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "PolicyNames": @@ -10718,7 +10728,7 @@ func awsAwsjson11_deserializeOpDocumentListKeyPoliciesOutput(v **ListKeyPolicies if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = jtv } default: @@ -10763,7 +10773,7 @@ func awsAwsjson11_deserializeOpDocumentListKeysOutput(v **ListKeysOutput, value if !ok { return fmt.Errorf("expected MarkerType to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "Truncated": @@ -10772,7 +10782,7 @@ func awsAwsjson11_deserializeOpDocumentListKeysOutput(v **ListKeysOutput, value if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = jtv } default: @@ -10812,7 +10822,7 @@ func awsAwsjson11_deserializeOpDocumentListResourceTagsOutput(v **ListResourceTa if !ok { return fmt.Errorf("expected MarkerType to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "Tags": @@ -10826,7 +10836,7 @@ func awsAwsjson11_deserializeOpDocumentListResourceTagsOutput(v **ListResourceTa if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = jtv } default: @@ -10871,7 +10881,7 @@ func awsAwsjson11_deserializeOpDocumentListRetirableGrantsOutput(v **ListRetirab if !ok { return fmt.Errorf("expected MarkerType to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "Truncated": @@ -10880,7 +10890,7 @@ func awsAwsjson11_deserializeOpDocumentListRetirableGrantsOutput(v **ListRetirab if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = jtv } default: @@ -10973,7 +10983,7 @@ func awsAwsjson11_deserializeOpDocumentReEncryptOutput(v **ReEncryptOutput, valu if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "SourceEncryptionAlgorithm": @@ -10991,7 +11001,7 @@ func awsAwsjson11_deserializeOpDocumentReEncryptOutput(v **ReEncryptOutput, valu if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.SourceKeyId = &jtv + sv.SourceKeyId = ptr.String(jtv) } default: @@ -11106,7 +11116,7 @@ func awsAwsjson11_deserializeOpDocumentScheduleKeyDeletionOutput(v **ScheduleKey if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } default: @@ -11146,7 +11156,7 @@ func awsAwsjson11_deserializeOpDocumentSignOutput(v **SignOutput, value interfac if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "Signature": @@ -11363,7 +11373,7 @@ func awsAwsjson11_deserializeOpDocumentVerifyOutput(v **VerifyOutput, value inte if !ok { return fmt.Errorf("expected KeyIdType to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "SignatureValid": @@ -11372,7 +11382,7 @@ func awsAwsjson11_deserializeOpDocumentVerifyOutput(v **VerifyOutput, value inte if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.SignatureValid = &jtv + sv.SignatureValid = jtv } case "SigningAlgorithm": diff --git a/service/kms/go.mod b/service/kms/go.mod index c55552edb05..e9d0b9ab409 100644 --- a/service/kms/go.mod +++ b/service/kms/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/kms go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/kms/serializers.go b/service/kms/serializers.go index d310e81c3a7..d8905f09d50 100644 --- a/service/kms/serializers.go +++ b/service/kms/serializers.go @@ -2130,17 +2130,13 @@ func (m *awsAwsjson11_serializeOpVerify) HandleSerialize(ctx context.Context, in return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentEncryptionContextType(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEncryptionContextType(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2177,17 +2173,13 @@ func awsAwsjson11_serializeDocumentGrantOperationList(v []types.GrantOperation, return nil } -func awsAwsjson11_serializeDocumentGrantTokenList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGrantTokenList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2209,32 +2201,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2361,9 +2345,9 @@ func awsAwsjson11_serializeOpDocumentCreateKeyInput(v *CreateKeyInput, value smi object := value.Object() defer object.Close() - if v.BypassPolicyLockoutSafetyCheck != nil { + if v.BypassPolicyLockoutSafetyCheck { ok := object.Key("BypassPolicyLockoutSafetyCheck") - ok.Boolean(*v.BypassPolicyLockoutSafetyCheck) + ok.Boolean(v.BypassPolicyLockoutSafetyCheck) } if len(v.CustomerMasterKeySpec) > 0 { @@ -3004,9 +2988,9 @@ func awsAwsjson11_serializeOpDocumentPutKeyPolicyInput(v *PutKeyPolicyInput, val object := value.Object() defer object.Close() - if v.BypassPolicyLockoutSafetyCheck != nil { + if v.BypassPolicyLockoutSafetyCheck { ok := object.Key("BypassPolicyLockoutSafetyCheck") - ok.Boolean(*v.BypassPolicyLockoutSafetyCheck) + ok.Boolean(v.BypassPolicyLockoutSafetyCheck) } if v.KeyId != nil { diff --git a/service/kms/types/types.go b/service/kms/types/types.go index e629efc94d2..20433da8a8f 100644 --- a/service/kms/types/types.go +++ b/service/kms/types/types.go @@ -149,7 +149,7 @@ type GrantConstraints struct { // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations) // request. The grant allows the operation only when the encryption context in the // request is the same as the encryption context specified in this constraint. - EncryptionContextEquals map[string]*string + EncryptionContextEquals map[string]string // A list of key-value pairs that must be included in the encryption context of the // cryptographic operation @@ -157,7 +157,7 @@ type GrantConstraints struct { // request. The grant allows the cryptographic operation only when the encryption // context in the request includes the key-value pairs specified in this // constraint, although it can include additional key-value pairs. - EncryptionContextSubset map[string]*string + EncryptionContextSubset map[string]string } // Contains information about a grant. @@ -256,7 +256,7 @@ type KeyMetadata struct { // Specifies whether the CMK is enabled. When KeyState is Enabled this value is // true, otherwise it is false. - Enabled *bool + Enabled bool // The encryption algorithms that the CMK supports. You cannot use the CMK with // other encryption algorithms within AWS KMS. This field appears only when the diff --git a/service/kms/validators.go b/service/kms/validators.go index 05dce253eb1..0d60ee028af 100644 --- a/service/kms/validators.go +++ b/service/kms/validators.go @@ -1012,13 +1012,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/lakeformation/api_op_BatchGrantPermissions.go b/service/lakeformation/api_op_BatchGrantPermissions.go index 53c2e0b3a09..daa99b8f75d 100644 --- a/service/lakeformation/api_op_BatchGrantPermissions.go +++ b/service/lakeformation/api_op_BatchGrantPermissions.go @@ -33,7 +33,7 @@ type BatchGrantPermissionsInput struct { // operation to the principal. // // This member is required. - Entries []*types.BatchPermissionsRequestEntry + Entries []types.BatchPermissionsRequestEntry // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, @@ -45,7 +45,7 @@ type BatchGrantPermissionsInput struct { type BatchGrantPermissionsOutput struct { // A list of failures to grant permissions to the resources. - Failures []*types.BatchPermissionsFailureEntry + Failures []types.BatchPermissionsFailureEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lakeformation/api_op_BatchRevokePermissions.go b/service/lakeformation/api_op_BatchRevokePermissions.go index a7fe81cda1c..04c4223c99a 100644 --- a/service/lakeformation/api_op_BatchRevokePermissions.go +++ b/service/lakeformation/api_op_BatchRevokePermissions.go @@ -33,7 +33,7 @@ type BatchRevokePermissionsInput struct { // operation to the principal. // // This member is required. - Entries []*types.BatchPermissionsRequestEntry + Entries []types.BatchPermissionsRequestEntry // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, @@ -45,7 +45,7 @@ type BatchRevokePermissionsInput struct { type BatchRevokePermissionsOutput struct { // A list of failures to revoke permissions to the resources. - Failures []*types.BatchPermissionsFailureEntry + Failures []types.BatchPermissionsFailureEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lakeformation/api_op_GetEffectivePermissionsForPath.go b/service/lakeformation/api_op_GetEffectivePermissionsForPath.go index e7a4a76c02e..b16a3ac5d06 100644 --- a/service/lakeformation/api_op_GetEffectivePermissionsForPath.go +++ b/service/lakeformation/api_op_GetEffectivePermissionsForPath.go @@ -57,7 +57,7 @@ type GetEffectivePermissionsForPathOutput struct { // A list of the permissions for the specified table or database resource located // at the path in Amazon S3. - Permissions []*types.PrincipalResourcePermissions + Permissions []types.PrincipalResourcePermissions // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lakeformation/api_op_ListPermissions.go b/service/lakeformation/api_op_ListPermissions.go index 01242943211..a2145a315ad 100644 --- a/service/lakeformation/api_op_ListPermissions.go +++ b/service/lakeformation/api_op_ListPermissions.go @@ -67,7 +67,7 @@ type ListPermissionsOutput struct { // A list of principals and their permissions on the resource for the specified // principal and resource types. - PrincipalResourcePermissions []*types.PrincipalResourcePermissions + PrincipalResourcePermissions []types.PrincipalResourcePermissions // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lakeformation/api_op_ListResources.go b/service/lakeformation/api_op_ListResources.go index 3ca9ae71015..75cd1c1332a 100644 --- a/service/lakeformation/api_op_ListResources.go +++ b/service/lakeformation/api_op_ListResources.go @@ -31,7 +31,7 @@ type ListResourcesInput struct { // Any applicable row-level and/or column-level filtering conditions for the // resources. - FilterConditionList []*types.FilterCondition + FilterConditionList []types.FilterCondition // The maximum number of resource results. MaxResults *int32 @@ -46,7 +46,7 @@ type ListResourcesOutput struct { NextToken *string // A summary of the data lake resources. - ResourceInfoList []*types.ResourceInfo + ResourceInfoList []types.ResourceInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lakeformation/deserializers.go b/service/lakeformation/deserializers.go index 85b794f5bd7..796a9213563 100644 --- a/service/lakeformation/deserializers.go +++ b/service/lakeformation/deserializers.go @@ -1784,7 +1784,7 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1837,7 +1837,7 @@ func awsAwsjson11_deserializeDocumentBatchPermissionsFailureEntry(v **types.Batc return nil } -func awsAwsjson11_deserializeDocumentBatchPermissionsFailureList(v *[]*types.BatchPermissionsFailureEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchPermissionsFailureList(v *[]types.BatchPermissionsFailureEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1850,18 +1850,20 @@ func awsAwsjson11_deserializeDocumentBatchPermissionsFailureList(v *[]*types.Bat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchPermissionsFailureEntry + var cv []types.BatchPermissionsFailureEntry if *v == nil { - cv = []*types.BatchPermissionsFailureEntry{} + cv = []types.BatchPermissionsFailureEntry{} } else { cv = *v } for _, value := range shape { - var col *types.BatchPermissionsFailureEntry - if err := awsAwsjson11_deserializeDocumentBatchPermissionsFailureEntry(&col, value); err != nil { + var col types.BatchPermissionsFailureEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchPermissionsFailureEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1897,7 +1899,7 @@ func awsAwsjson11_deserializeDocumentBatchPermissionsRequestEntry(v **types.Batc if !ok { return fmt.Errorf("expected Identifier to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Permissions": @@ -1960,7 +1962,7 @@ func awsAwsjson11_deserializeDocumentCatalogResource(v **types.CatalogResource, return nil } -func awsAwsjson11_deserializeDocumentColumnNames(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentColumnNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1973,21 +1975,21 @@ func awsAwsjson11_deserializeDocumentColumnNames(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2060,7 +2062,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2100,7 +2102,7 @@ func awsAwsjson11_deserializeDocumentDatabaseResource(v **types.DatabaseResource if !ok { return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) } - sv.CatalogId = &jtv + sv.CatalogId = ptr.String(jtv) } case "Name": @@ -2109,7 +2111,7 @@ func awsAwsjson11_deserializeDocumentDatabaseResource(v **types.DatabaseResource if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -2149,7 +2151,7 @@ func awsAwsjson11_deserializeDocumentDataLakePrincipal(v **types.DataLakePrincip if !ok { return fmt.Errorf("expected DataLakePrincipalString to be of type string, got %T instead", value) } - sv.DataLakePrincipalIdentifier = &jtv + sv.DataLakePrincipalIdentifier = ptr.String(jtv) } default: @@ -2161,7 +2163,7 @@ func awsAwsjson11_deserializeDocumentDataLakePrincipal(v **types.DataLakePrincip return nil } -func awsAwsjson11_deserializeDocumentDataLakePrincipalList(v *[]*types.DataLakePrincipal, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataLakePrincipalList(v *[]types.DataLakePrincipal, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2174,18 +2176,20 @@ func awsAwsjson11_deserializeDocumentDataLakePrincipalList(v *[]*types.DataLakeP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataLakePrincipal + var cv []types.DataLakePrincipal if *v == nil { - cv = []*types.DataLakePrincipal{} + cv = []types.DataLakePrincipal{} } else { cv = *v } for _, value := range shape { - var col *types.DataLakePrincipal - if err := awsAwsjson11_deserializeDocumentDataLakePrincipal(&col, value); err != nil { + var col types.DataLakePrincipal + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataLakePrincipal(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2272,7 +2276,7 @@ func awsAwsjson11_deserializeDocumentDataLocationResource(v **types.DataLocation if !ok { return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) } - sv.CatalogId = &jtv + sv.CatalogId = ptr.String(jtv) } case "ResourceArn": @@ -2281,7 +2285,7 @@ func awsAwsjson11_deserializeDocumentDataLocationResource(v **types.DataLocation if !ok { return fmt.Errorf("expected ResourceArnString to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } default: @@ -2357,7 +2361,7 @@ func awsAwsjson11_deserializeDocumentEntityNotFoundException(v **types.EntityNot if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2397,7 +2401,7 @@ func awsAwsjson11_deserializeDocumentErrorDetail(v **types.ErrorDetail, value in if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -2406,7 +2410,7 @@ func awsAwsjson11_deserializeDocumentErrorDetail(v **types.ErrorDetail, value in if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -2446,7 +2450,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2486,7 +2490,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2526,7 +2530,7 @@ func awsAwsjson11_deserializeDocumentOperationTimeoutException(v **types.Operati if !ok { return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2615,7 +2619,7 @@ func awsAwsjson11_deserializeDocumentPrincipalPermissions(v **types.PrincipalPer return nil } -func awsAwsjson11_deserializeDocumentPrincipalPermissionsList(v *[]*types.PrincipalPermissions, value interface{}) error { +func awsAwsjson11_deserializeDocumentPrincipalPermissionsList(v *[]types.PrincipalPermissions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2628,18 +2632,20 @@ func awsAwsjson11_deserializeDocumentPrincipalPermissionsList(v *[]*types.Princi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PrincipalPermissions + var cv []types.PrincipalPermissions if *v == nil { - cv = []*types.PrincipalPermissions{} + cv = []types.PrincipalPermissions{} } else { cv = *v } for _, value := range shape { - var col *types.PrincipalPermissions - if err := awsAwsjson11_deserializeDocumentPrincipalPermissions(&col, value); err != nil { + var col types.PrincipalPermissions + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPrincipalPermissions(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2703,7 +2709,7 @@ func awsAwsjson11_deserializeDocumentPrincipalResourcePermissions(v **types.Prin return nil } -func awsAwsjson11_deserializeDocumentPrincipalResourcePermissionsList(v *[]*types.PrincipalResourcePermissions, value interface{}) error { +func awsAwsjson11_deserializeDocumentPrincipalResourcePermissionsList(v *[]types.PrincipalResourcePermissions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2716,18 +2722,20 @@ func awsAwsjson11_deserializeDocumentPrincipalResourcePermissionsList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PrincipalResourcePermissions + var cv []types.PrincipalResourcePermissions if *v == nil { - cv = []*types.PrincipalResourcePermissions{} + cv = []types.PrincipalResourcePermissions{} } else { cv = *v } for _, value := range shape { - var col *types.PrincipalResourcePermissions - if err := awsAwsjson11_deserializeDocumentPrincipalResourcePermissions(&col, value); err != nil { + var col types.PrincipalResourcePermissions + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPrincipalResourcePermissions(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2832,7 +2840,7 @@ func awsAwsjson11_deserializeDocumentResourceInfo(v **types.ResourceInfo, value if !ok { return fmt.Errorf("expected ResourceArnString to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "RoleArn": @@ -2841,7 +2849,7 @@ func awsAwsjson11_deserializeDocumentResourceInfo(v **types.ResourceInfo, value if !ok { return fmt.Errorf("expected IAMRoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -2853,7 +2861,7 @@ func awsAwsjson11_deserializeDocumentResourceInfo(v **types.ResourceInfo, value return nil } -func awsAwsjson11_deserializeDocumentResourceInfoList(v *[]*types.ResourceInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceInfoList(v *[]types.ResourceInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2866,18 +2874,20 @@ func awsAwsjson11_deserializeDocumentResourceInfoList(v *[]*types.ResourceInfo, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceInfo + var cv []types.ResourceInfo if *v == nil { - cv = []*types.ResourceInfo{} + cv = []types.ResourceInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceInfo - if err := awsAwsjson11_deserializeDocumentResourceInfo(&col, value); err != nil { + var col types.ResourceInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2885,7 +2895,7 @@ func awsAwsjson11_deserializeDocumentResourceInfoList(v *[]*types.ResourceInfo, return nil } -func awsAwsjson11_deserializeDocumentResourceShareList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceShareList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2898,21 +2908,21 @@ func awsAwsjson11_deserializeDocumentResourceShareList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RAMResourceShareArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2949,7 +2959,7 @@ func awsAwsjson11_deserializeDocumentTableResource(v **types.TableResource, valu if !ok { return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) } - sv.CatalogId = &jtv + sv.CatalogId = ptr.String(jtv) } case "DatabaseName": @@ -2958,7 +2968,7 @@ func awsAwsjson11_deserializeDocumentTableResource(v **types.TableResource, valu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "Name": @@ -2967,7 +2977,7 @@ func awsAwsjson11_deserializeDocumentTableResource(v **types.TableResource, valu if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "TableWildcard": @@ -3043,7 +3053,7 @@ func awsAwsjson11_deserializeDocumentTableWithColumnsResource(v **types.TableWit if !ok { return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) } - sv.CatalogId = &jtv + sv.CatalogId = ptr.String(jtv) } case "ColumnNames": @@ -3062,7 +3072,7 @@ func awsAwsjson11_deserializeDocumentTableWithColumnsResource(v **types.TableWit if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "Name": @@ -3071,7 +3081,7 @@ func awsAwsjson11_deserializeDocumentTableWithColumnsResource(v **types.TableWit if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -3083,7 +3093,7 @@ func awsAwsjson11_deserializeDocumentTableWithColumnsResource(v **types.TableWit return nil } -func awsAwsjson11_deserializeDocumentTrustedResourceOwners(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrustedResourceOwners(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3096,21 +3106,21 @@ func awsAwsjson11_deserializeDocumentTrustedResourceOwners(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3322,7 +3332,7 @@ func awsAwsjson11_deserializeOpDocumentGetEffectivePermissionsForPathOutput(v ** if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Permissions": @@ -3398,7 +3408,7 @@ func awsAwsjson11_deserializeOpDocumentListPermissionsOutput(v **ListPermissions if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PrincipalResourcePermissions": @@ -3443,7 +3453,7 @@ func awsAwsjson11_deserializeOpDocumentListResourcesOutput(v **ListResourcesOutp if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResourceInfoList": diff --git a/service/lakeformation/go.mod b/service/lakeformation/go.mod index 6381c15a94e..0af79b85a69 100644 --- a/service/lakeformation/go.mod +++ b/service/lakeformation/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/lakeformation go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/lakeformation/serializers.go b/service/lakeformation/serializers.go index c1e2e2678ab..8bb1a01d121 100644 --- a/service/lakeformation/serializers.go +++ b/service/lakeformation/serializers.go @@ -651,17 +651,13 @@ func awsAwsjson11_serializeDocumentBatchPermissionsRequestEntry(v *types.BatchPe return nil } -func awsAwsjson11_serializeDocumentBatchPermissionsRequestEntryList(v []*types.BatchPermissionsRequestEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBatchPermissionsRequestEntryList(v []types.BatchPermissionsRequestEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentBatchPermissionsRequestEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentBatchPermissionsRequestEntry(&v[i], av); err != nil { return err } } @@ -675,17 +671,13 @@ func awsAwsjson11_serializeDocumentCatalogResource(v *types.CatalogResource, val return nil } -func awsAwsjson11_serializeDocumentColumnNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentColumnNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -733,17 +725,13 @@ func awsAwsjson11_serializeDocumentDataLakePrincipal(v *types.DataLakePrincipal, return nil } -func awsAwsjson11_serializeDocumentDataLakePrincipalList(v []*types.DataLakePrincipal, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDataLakePrincipalList(v []types.DataLakePrincipal, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDataLakePrincipal(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDataLakePrincipal(&v[i], av); err != nil { return err } } @@ -826,17 +814,13 @@ func awsAwsjson11_serializeDocumentFilterCondition(v *types.FilterCondition, val return nil } -func awsAwsjson11_serializeDocumentFilterConditionList(v []*types.FilterCondition, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterConditionList(v []types.FilterCondition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFilterCondition(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFilterCondition(&v[i], av); err != nil { return err } } @@ -875,17 +859,13 @@ func awsAwsjson11_serializeDocumentPrincipalPermissions(v *types.PrincipalPermis return nil } -func awsAwsjson11_serializeDocumentPrincipalPermissionsList(v []*types.PrincipalPermissions, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPrincipalPermissionsList(v []types.PrincipalPermissions, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPrincipalPermissions(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPrincipalPermissions(&v[i], av); err != nil { return err } } @@ -934,17 +914,13 @@ func awsAwsjson11_serializeDocumentResource(v *types.Resource, value smithyjson. return nil } -func awsAwsjson11_serializeDocumentStringValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1021,17 +997,13 @@ func awsAwsjson11_serializeDocumentTableWithColumnsResource(v *types.TableWithCo return nil } -func awsAwsjson11_serializeDocumentTrustedResourceOwners(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTrustedResourceOwners(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/lakeformation/types/types.go b/service/lakeformation/types/types.go index 81a69b1a62a..4f393d4bcc4 100644 --- a/service/lakeformation/types/types.go +++ b/service/lakeformation/types/types.go @@ -46,7 +46,7 @@ type CatalogResource struct { type ColumnWildcard struct { // Excludes column names. Any column with this name will be excluded. - ExcludedColumnNames []*string + ExcludedColumnNames []string } // A structure for the database object. @@ -77,21 +77,21 @@ type DataLakeSettings struct { // A structure representing a list of up to three principal permissions entries for // default create database permissions. - CreateDatabaseDefaultPermissions []*PrincipalPermissions + CreateDatabaseDefaultPermissions []PrincipalPermissions // A structure representing a list of up to three principal permissions entries for // default create table permissions. - CreateTableDefaultPermissions []*PrincipalPermissions + CreateTableDefaultPermissions []PrincipalPermissions // A list of AWS Lake Formation principals. Supported principals are IAM users or // IAM roles. - DataLakeAdmins []*DataLakePrincipal + DataLakeAdmins []DataLakePrincipal // A list of the resource-owning account IDs that the caller's account can use to // share their user access details (user ARNs). The user ARNs can be logged in the // resource owner's AWS CloudTrail log. You may want to specify this property when // you are in a high-trust boundary, such as the same team or company. - TrustedResourceOwners []*string + TrustedResourceOwners []string } // A structure for a data location object where permissions are granted or revoked. @@ -116,7 +116,7 @@ type DetailsMap struct { // A share resource ARN for a catalog resource shared through AWS Resource Access // Manager (AWS RAM). - ResourceShare []*string + ResourceShare []string } // Contains details about an error. @@ -140,7 +140,7 @@ type FilterCondition struct { Field FieldNameString // A string with values used in evaluating the filter condition. - StringValueList []*string + StringValueList []string } // Permissions granted to a principal. @@ -266,7 +266,7 @@ type TableWithColumnsResource struct { // The list of column names for the table. At least one of ColumnNames or // ColumnWildcard is required. - ColumnNames []*string + ColumnNames []string // A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or // ColumnWildcard is required. diff --git a/service/lakeformation/validators.go b/service/lakeformation/validators.go index b8f8835748b..3c05fdf6772 100644 --- a/service/lakeformation/validators.go +++ b/service/lakeformation/validators.go @@ -294,13 +294,13 @@ func validateBatchPermissionsRequestEntry(v *types.BatchPermissionsRequestEntry) } } -func validateBatchPermissionsRequestEntryList(v []*types.BatchPermissionsRequestEntry) error { +func validateBatchPermissionsRequestEntryList(v []types.BatchPermissionsRequestEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BatchPermissionsRequestEntryList"} for i := range v { - if err := validateBatchPermissionsRequestEntry(v[i]); err != nil { + if err := validateBatchPermissionsRequestEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/lambda/api_op_AddLayerVersionPermission.go b/service/lambda/api_op_AddLayerVersionPermission.go index a12f9f73c7b..403ad2d48bd 100644 --- a/service/lambda/api_op_AddLayerVersionPermission.go +++ b/service/lambda/api_op_AddLayerVersionPermission.go @@ -58,7 +58,7 @@ type AddLayerVersionPermissionInput struct { // The version number. // // This member is required. - VersionNumber *int64 + VersionNumber int64 // With the principal set to *, grant permission to all accounts in the specified // organization. diff --git a/service/lambda/api_op_CreateEventSourceMapping.go b/service/lambda/api_op_CreateEventSourceMapping.go index 4956e1e056f..b1a92dc299e 100644 --- a/service/lambda/api_op_CreateEventSourceMapping.go +++ b/service/lambda/api_op_CreateEventSourceMapping.go @@ -155,7 +155,7 @@ type CreateEventSourceMappingInput struct { StartingPositionTimestamp *time.Time // (MSK) The name of the Kafka topic. - Topics []*string + Topics []string } // A mapping between an AWS resource and an AWS Lambda function. See @@ -208,7 +208,7 @@ type CreateEventSourceMappingOutput struct { StateTransitionReason *string // (MSK) The name of the Kafka topic. - Topics []*string + Topics []string // The identifier of the event source mapping. UUID *string diff --git a/service/lambda/api_op_CreateFunction.go b/service/lambda/api_op_CreateFunction.go index 8e418f3bf78..16bc9f59c09 100644 --- a/service/lambda/api_op_CreateFunction.go +++ b/service/lambda/api_op_CreateFunction.go @@ -115,7 +115,7 @@ type CreateFunctionInput struct { Environment *types.Environment // Connection settings for an Amazon EFS file system. - FileSystemConfigs []*types.FileSystemConfig + FileSystemConfigs []types.FileSystemConfig // The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt // your function's environment variables. If it's not provided, AWS Lambda uses a @@ -126,7 +126,7 @@ type CreateFunctionInput struct { // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) to add // to the function's execution environment. Specify each layer by its ARN, // including the version. - Layers []*string + Layers []string // The amount of memory that your function has access to. Increasing the function's // memory also increases its CPU allocation. The default value is 128 MB. The value @@ -134,11 +134,11 @@ type CreateFunctionInput struct { MemorySize *int32 // Set to true to publish the first version of the function during creation. - Publish *bool + Publish bool // A list of tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to // apply to the function. - Tags map[string]*string + Tags map[string]string // The amount of time that Lambda allows a function to run before stopping it. The // default is 3 seconds. The maximum allowed value is 900 seconds. @@ -163,7 +163,7 @@ type CreateFunctionOutput struct { CodeSha256 *string // The size of the function's deployment package, in bytes. - CodeSize *int64 + CodeSize int64 // The function's dead letter queue. DeadLetterConfig *types.DeadLetterConfig @@ -175,7 +175,7 @@ type CreateFunctionOutput struct { Environment *types.EnvironmentResponse // Connection settings for an Amazon EFS file system. - FileSystemConfigs []*types.FileSystemConfig + FileSystemConfigs []types.FileSystemConfig // The function's Amazon Resource Name (ARN). FunctionArn *string @@ -206,7 +206,7 @@ type CreateFunctionOutput struct { // The function's layers // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). - Layers []*types.Layer + Layers []types.Layer // For Lambda@Edge functions, the ARN of the master function. MasterArn *string diff --git a/service/lambda/api_op_DeleteEventSourceMapping.go b/service/lambda/api_op_DeleteEventSourceMapping.go index d4902e1742d..c44b116b712 100644 --- a/service/lambda/api_op_DeleteEventSourceMapping.go +++ b/service/lambda/api_op_DeleteEventSourceMapping.go @@ -90,7 +90,7 @@ type DeleteEventSourceMappingOutput struct { StateTransitionReason *string // (MSK) The name of the Kafka topic. - Topics []*string + Topics []string // The identifier of the event source mapping. UUID *string diff --git a/service/lambda/api_op_DeleteLayerVersion.go b/service/lambda/api_op_DeleteLayerVersion.go index 54258b9abd3..2601cc4620c 100644 --- a/service/lambda/api_op_DeleteLayerVersion.go +++ b/service/lambda/api_op_DeleteLayerVersion.go @@ -40,7 +40,7 @@ type DeleteLayerVersionInput struct { // The version number. // // This member is required. - VersionNumber *int64 + VersionNumber int64 } type DeleteLayerVersionOutput struct { diff --git a/service/lambda/api_op_GetEventSourceMapping.go b/service/lambda/api_op_GetEventSourceMapping.go index 065e6911d3c..ea6da2e4ba8 100644 --- a/service/lambda/api_op_GetEventSourceMapping.go +++ b/service/lambda/api_op_GetEventSourceMapping.go @@ -87,7 +87,7 @@ type GetEventSourceMappingOutput struct { StateTransitionReason *string // (MSK) The name of the Kafka topic. - Topics []*string + Topics []string // The identifier of the event source mapping. UUID *string diff --git a/service/lambda/api_op_GetFunction.go b/service/lambda/api_op_GetFunction.go index 7b6fc3547c2..160923b6b1a 100644 --- a/service/lambda/api_op_GetFunction.go +++ b/service/lambda/api_op_GetFunction.go @@ -67,7 +67,7 @@ type GetFunctionOutput struct { Configuration *types.FunctionConfiguration // The function's tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html). - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lambda/api_op_GetFunctionConfiguration.go b/service/lambda/api_op_GetFunctionConfiguration.go index 908c0a016be..b316ecd50d9 100644 --- a/service/lambda/api_op_GetFunctionConfiguration.go +++ b/service/lambda/api_op_GetFunctionConfiguration.go @@ -62,7 +62,7 @@ type GetFunctionConfigurationOutput struct { CodeSha256 *string // The size of the function's deployment package, in bytes. - CodeSize *int64 + CodeSize int64 // The function's dead letter queue. DeadLetterConfig *types.DeadLetterConfig @@ -74,7 +74,7 @@ type GetFunctionConfigurationOutput struct { Environment *types.EnvironmentResponse // Connection settings for an Amazon EFS file system. - FileSystemConfigs []*types.FileSystemConfig + FileSystemConfigs []types.FileSystemConfig // The function's Amazon Resource Name (ARN). FunctionArn *string @@ -105,7 +105,7 @@ type GetFunctionConfigurationOutput struct { // The function's layers // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). - Layers []*types.Layer + Layers []types.Layer // For Lambda@Edge functions, the ARN of the master function. MasterArn *string diff --git a/service/lambda/api_op_GetLayerVersion.go b/service/lambda/api_op_GetLayerVersion.go index ee42875197d..aab8e7a7213 100644 --- a/service/lambda/api_op_GetLayerVersion.go +++ b/service/lambda/api_op_GetLayerVersion.go @@ -39,7 +39,7 @@ type GetLayerVersionInput struct { // The version number. // // This member is required. - VersionNumber *int64 + VersionNumber int64 } type GetLayerVersionOutput struct { @@ -67,7 +67,7 @@ type GetLayerVersionOutput struct { LicenseInfo *string // The version number. - Version *int64 + Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lambda/api_op_GetLayerVersionByArn.go b/service/lambda/api_op_GetLayerVersionByArn.go index d9ee85156ab..86644d360b1 100644 --- a/service/lambda/api_op_GetLayerVersionByArn.go +++ b/service/lambda/api_op_GetLayerVersionByArn.go @@ -62,7 +62,7 @@ type GetLayerVersionByArnOutput struct { LicenseInfo *string // The version number. - Version *int64 + Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lambda/api_op_GetLayerVersionPolicy.go b/service/lambda/api_op_GetLayerVersionPolicy.go index 94b98fdc229..692f2ff1674 100644 --- a/service/lambda/api_op_GetLayerVersionPolicy.go +++ b/service/lambda/api_op_GetLayerVersionPolicy.go @@ -38,7 +38,7 @@ type GetLayerVersionPolicyInput struct { // The version number. // // This member is required. - VersionNumber *int64 + VersionNumber int64 } type GetLayerVersionPolicyOutput struct { diff --git a/service/lambda/api_op_Invoke.go b/service/lambda/api_op_Invoke.go index 2a081e4242f..da651f976f8 100644 --- a/service/lambda/api_op_Invoke.go +++ b/service/lambda/api_op_Invoke.go @@ -131,7 +131,7 @@ type InvokeOutput struct { // RequestResponse invocation type, this status code is 200. For the Event // invocation type, this status code is 202. For the DryRun invocation type, the // status code is 204. - StatusCode *int32 + StatusCode int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lambda/api_op_InvokeAsync.go b/service/lambda/api_op_InvokeAsync.go index 206b53a0281..ed0924e7d6d 100644 --- a/service/lambda/api_op_InvokeAsync.go +++ b/service/lambda/api_op_InvokeAsync.go @@ -58,7 +58,7 @@ type InvokeAsyncInput struct { type InvokeAsyncOutput struct { // The status code. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lambda/api_op_ListAliases.go b/service/lambda/api_op_ListAliases.go index ad1e3a37d13..08d582bfaad 100644 --- a/service/lambda/api_op_ListAliases.go +++ b/service/lambda/api_op_ListAliases.go @@ -62,7 +62,7 @@ type ListAliasesInput struct { type ListAliasesOutput struct { // A list of aliases. - Aliases []*types.AliasConfiguration + Aliases []types.AliasConfiguration // The pagination token that's included if more results are available. NextMarker *string diff --git a/service/lambda/api_op_ListEventSourceMappings.go b/service/lambda/api_op_ListEventSourceMappings.go index e9e356ccef3..4f02cb70002 100644 --- a/service/lambda/api_op_ListEventSourceMappings.go +++ b/service/lambda/api_op_ListEventSourceMappings.go @@ -73,7 +73,7 @@ type ListEventSourceMappingsInput struct { type ListEventSourceMappingsOutput struct { // A list of event source mappings. - EventSourceMappings []*types.EventSourceMappingConfiguration + EventSourceMappings []types.EventSourceMappingConfiguration // A pagination token that's returned when the response doesn't contain all event // source mappings. diff --git a/service/lambda/api_op_ListFunctionEventInvokeConfigs.go b/service/lambda/api_op_ListFunctionEventInvokeConfigs.go index 85226c3a481..dcb2a4ad0e5 100644 --- a/service/lambda/api_op_ListFunctionEventInvokeConfigs.go +++ b/service/lambda/api_op_ListFunctionEventInvokeConfigs.go @@ -59,7 +59,7 @@ type ListFunctionEventInvokeConfigsInput struct { type ListFunctionEventInvokeConfigsOutput struct { // A list of configurations. - FunctionEventInvokeConfigs []*types.FunctionEventInvokeConfig + FunctionEventInvokeConfigs []types.FunctionEventInvokeConfig // The pagination token that's included if more results are available. NextMarker *string diff --git a/service/lambda/api_op_ListFunctions.go b/service/lambda/api_op_ListFunctions.go index a32f1759f09..91a44e4fbcb 100644 --- a/service/lambda/api_op_ListFunctions.go +++ b/service/lambda/api_op_ListFunctions.go @@ -53,7 +53,7 @@ type ListFunctionsInput struct { type ListFunctionsOutput struct { // A list of Lambda functions. - Functions []*types.FunctionConfiguration + Functions []types.FunctionConfiguration // The pagination token that's included if more results are available. NextMarker *string diff --git a/service/lambda/api_op_ListLayerVersions.go b/service/lambda/api_op_ListLayerVersions.go index 194abbf5d25..6d939505740 100644 --- a/service/lambda/api_op_ListLayerVersions.go +++ b/service/lambda/api_op_ListLayerVersions.go @@ -51,7 +51,7 @@ type ListLayerVersionsInput struct { type ListLayerVersionsOutput struct { // A list of versions. - LayerVersions []*types.LayerVersionsListItem + LayerVersions []types.LayerVersionsListItem // A pagination token returned when the response doesn't contain all versions. NextMarker *string diff --git a/service/lambda/api_op_ListLayers.go b/service/lambda/api_op_ListLayers.go index 32134e4c6e3..809dce92bad 100644 --- a/service/lambda/api_op_ListLayers.go +++ b/service/lambda/api_op_ListLayers.go @@ -46,7 +46,7 @@ type ListLayersInput struct { type ListLayersOutput struct { // A list of function layers. - Layers []*types.LayersListItem + Layers []types.LayersListItem // A pagination token returned when the response doesn't contain all layers. NextMarker *string diff --git a/service/lambda/api_op_ListProvisionedConcurrencyConfigs.go b/service/lambda/api_op_ListProvisionedConcurrencyConfigs.go index 3b1fe542df7..19e888273f6 100644 --- a/service/lambda/api_op_ListProvisionedConcurrencyConfigs.go +++ b/service/lambda/api_op_ListProvisionedConcurrencyConfigs.go @@ -60,7 +60,7 @@ type ListProvisionedConcurrencyConfigsOutput struct { NextMarker *string // A list of provisioned concurrency configurations. - ProvisionedConcurrencyConfigs []*types.ProvisionedConcurrencyConfigListItem + ProvisionedConcurrencyConfigs []types.ProvisionedConcurrencyConfigListItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lambda/api_op_ListTags.go b/service/lambda/api_op_ListTags.go index a2a20346d35..560363e838d 100644 --- a/service/lambda/api_op_ListTags.go +++ b/service/lambda/api_op_ListTags.go @@ -39,7 +39,7 @@ type ListTagsInput struct { type ListTagsOutput struct { // The function's tags. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lambda/api_op_ListVersionsByFunction.go b/service/lambda/api_op_ListVersionsByFunction.go index 4c4f1b51d03..39dbae300ce 100644 --- a/service/lambda/api_op_ListVersionsByFunction.go +++ b/service/lambda/api_op_ListVersionsByFunction.go @@ -63,7 +63,7 @@ type ListVersionsByFunctionOutput struct { NextMarker *string // A list of Lambda function versions. - Versions []*types.FunctionConfiguration + Versions []types.FunctionConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lambda/api_op_PublishLayerVersion.go b/service/lambda/api_op_PublishLayerVersion.go index 6d8fe28d049..8e922c25cdb 100644 --- a/service/lambda/api_op_PublishLayerVersion.go +++ b/service/lambda/api_op_PublishLayerVersion.go @@ -89,7 +89,7 @@ type PublishLayerVersionOutput struct { LicenseInfo *string // The version number. - Version *int64 + Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lambda/api_op_PublishVersion.go b/service/lambda/api_op_PublishVersion.go index 762d4cfa53d..3b2a1b8ef09 100644 --- a/service/lambda/api_op_PublishVersion.go +++ b/service/lambda/api_op_PublishVersion.go @@ -76,7 +76,7 @@ type PublishVersionOutput struct { CodeSha256 *string // The size of the function's deployment package, in bytes. - CodeSize *int64 + CodeSize int64 // The function's dead letter queue. DeadLetterConfig *types.DeadLetterConfig @@ -88,7 +88,7 @@ type PublishVersionOutput struct { Environment *types.EnvironmentResponse // Connection settings for an Amazon EFS file system. - FileSystemConfigs []*types.FileSystemConfig + FileSystemConfigs []types.FileSystemConfig // The function's Amazon Resource Name (ARN). FunctionArn *string @@ -119,7 +119,7 @@ type PublishVersionOutput struct { // The function's layers // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). - Layers []*types.Layer + Layers []types.Layer // For Lambda@Edge functions, the ARN of the master function. MasterArn *string diff --git a/service/lambda/api_op_RemoveLayerVersionPermission.go b/service/lambda/api_op_RemoveLayerVersionPermission.go index e10b2fa4e73..b564723ce6f 100644 --- a/service/lambda/api_op_RemoveLayerVersionPermission.go +++ b/service/lambda/api_op_RemoveLayerVersionPermission.go @@ -43,7 +43,7 @@ type RemoveLayerVersionPermissionInput struct { // The version number. // // This member is required. - VersionNumber *int64 + VersionNumber int64 // Only update the policy if the revision ID matches the ID specified. Use this // option to avoid modifying a policy that has changed since you last read it. diff --git a/service/lambda/api_op_TagResource.go b/service/lambda/api_op_TagResource.go index 99d32f02689..7d9036be311 100644 --- a/service/lambda/api_op_TagResource.go +++ b/service/lambda/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // A list of tags to apply to the function. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/lambda/api_op_UntagResource.go b/service/lambda/api_op_UntagResource.go index 1d8ef31fa0b..24d314ad88b 100644 --- a/service/lambda/api_op_UntagResource.go +++ b/service/lambda/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // A list of tag keys to remove from the function. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/lambda/api_op_UpdateEventSourceMapping.go b/service/lambda/api_op_UpdateEventSourceMapping.go index f55f847ffc3..ebea5e0a6bb 100644 --- a/service/lambda/api_op_UpdateEventSourceMapping.go +++ b/service/lambda/api_op_UpdateEventSourceMapping.go @@ -166,7 +166,7 @@ type UpdateEventSourceMappingOutput struct { StateTransitionReason *string // (MSK) The name of the Kafka topic. - Topics []*string + Topics []string // The identifier of the event source mapping. UUID *string diff --git a/service/lambda/api_op_UpdateFunctionCode.go b/service/lambda/api_op_UpdateFunctionCode.go index dfd0b4f3e99..9cc97ee300f 100644 --- a/service/lambda/api_op_UpdateFunctionCode.go +++ b/service/lambda/api_op_UpdateFunctionCode.go @@ -50,11 +50,11 @@ type UpdateFunctionCodeInput struct { // Set to true to validate the request parameters and access permissions without // modifying the function code. - DryRun *bool + DryRun bool // Set to true to publish a new version of the function after updating the code. // This has the same effect as calling PublishVersion separately. - Publish *bool + Publish bool // Only update the function if the revision ID matches the ID that's specified. Use // this option to avoid modifying a function that has changed since you last read @@ -83,7 +83,7 @@ type UpdateFunctionCodeOutput struct { CodeSha256 *string // The size of the function's deployment package, in bytes. - CodeSize *int64 + CodeSize int64 // The function's dead letter queue. DeadLetterConfig *types.DeadLetterConfig @@ -95,7 +95,7 @@ type UpdateFunctionCodeOutput struct { Environment *types.EnvironmentResponse // Connection settings for an Amazon EFS file system. - FileSystemConfigs []*types.FileSystemConfig + FileSystemConfigs []types.FileSystemConfig // The function's Amazon Resource Name (ARN). FunctionArn *string @@ -126,7 +126,7 @@ type UpdateFunctionCodeOutput struct { // The function's layers // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). - Layers []*types.Layer + Layers []types.Layer // For Lambda@Edge functions, the ARN of the master function. MasterArn *string diff --git a/service/lambda/api_op_UpdateFunctionConfiguration.go b/service/lambda/api_op_UpdateFunctionConfiguration.go index 74cf16fd45b..ee8991fd522 100644 --- a/service/lambda/api_op_UpdateFunctionConfiguration.go +++ b/service/lambda/api_op_UpdateFunctionConfiguration.go @@ -72,7 +72,7 @@ type UpdateFunctionConfigurationInput struct { Environment *types.Environment // Connection settings for an Amazon EFS file system. - FileSystemConfigs []*types.FileSystemConfig + FileSystemConfigs []types.FileSystemConfig // The name of the method within your code that Lambda calls to execute your // function. The format includes the file name. It can also include namespaces and @@ -90,7 +90,7 @@ type UpdateFunctionConfigurationInput struct { // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) to add // to the function's execution environment. Specify each layer by its ARN, // including the version. - Layers []*string + Layers []string // The amount of memory that your function has access to. Increasing the function's // memory also increases its CPU allocation. The default value is 128 MB. The value @@ -132,7 +132,7 @@ type UpdateFunctionConfigurationOutput struct { CodeSha256 *string // The size of the function's deployment package, in bytes. - CodeSize *int64 + CodeSize int64 // The function's dead letter queue. DeadLetterConfig *types.DeadLetterConfig @@ -144,7 +144,7 @@ type UpdateFunctionConfigurationOutput struct { Environment *types.EnvironmentResponse // Connection settings for an Amazon EFS file system. - FileSystemConfigs []*types.FileSystemConfig + FileSystemConfigs []types.FileSystemConfig // The function's Amazon Resource Name (ARN). FunctionArn *string @@ -175,7 +175,7 @@ type UpdateFunctionConfigurationOutput struct { // The function's layers // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). - Layers []*types.Layer + Layers []types.Layer // For Lambda@Edge functions, the ARN of the master function. MasterArn *string diff --git a/service/lambda/deserializers.go b/service/lambda/deserializers.go index 127b606c6bd..f5b16e1e33e 100644 --- a/service/lambda/deserializers.go +++ b/service/lambda/deserializers.go @@ -177,7 +177,7 @@ func awsRestjson1_deserializeOpDocumentAddLayerVersionPermissionOutput(v **AddLa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "Statement": @@ -186,7 +186,7 @@ func awsRestjson1_deserializeOpDocumentAddLayerVersionPermissionOutput(v **AddLa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Statement = &jtv + sv.Statement = ptr.String(jtv) } default: @@ -355,7 +355,7 @@ func awsRestjson1_deserializeOpDocumentAddPermissionOutput(v **AddPermissionOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Statement = &jtv + sv.Statement = ptr.String(jtv) } default: @@ -518,7 +518,7 @@ func awsRestjson1_deserializeOpDocumentCreateAliasOutput(v **CreateAliasOutput, if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.AliasArn = &jtv + sv.AliasArn = ptr.String(jtv) } case "Description": @@ -527,7 +527,7 @@ func awsRestjson1_deserializeOpDocumentCreateAliasOutput(v **CreateAliasOutput, if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "FunctionVersion": @@ -536,7 +536,7 @@ func awsRestjson1_deserializeOpDocumentCreateAliasOutput(v **CreateAliasOutput, if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.FunctionVersion = &jtv + sv.FunctionVersion = ptr.String(jtv) } case "Name": @@ -545,7 +545,7 @@ func awsRestjson1_deserializeOpDocumentCreateAliasOutput(v **CreateAliasOutput, if !ok { return fmt.Errorf("expected Alias to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RevisionId": @@ -554,7 +554,7 @@ func awsRestjson1_deserializeOpDocumentCreateAliasOutput(v **CreateAliasOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "RoutingConfig": @@ -735,7 +735,7 @@ func awsRestjson1_deserializeOpDocumentCreateEventSourceMappingOutput(v **Create if !ok { return fmt.Errorf("expected BisectBatchOnFunctionError to be of type *bool, got %T instead", value) } - sv.BisectBatchOnFunctionError = &jtv + sv.BisectBatchOnFunctionError = ptr.Bool(jtv) } case "DestinationConfig": @@ -749,7 +749,7 @@ func awsRestjson1_deserializeOpDocumentCreateEventSourceMappingOutput(v **Create if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.EventSourceArn = &jtv + sv.EventSourceArn = ptr.String(jtv) } case "FunctionArn": @@ -758,7 +758,7 @@ func awsRestjson1_deserializeOpDocumentCreateEventSourceMappingOutput(v **Create if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "LastModified": @@ -780,7 +780,7 @@ func awsRestjson1_deserializeOpDocumentCreateEventSourceMappingOutput(v **Create if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastProcessingResult = &jtv + sv.LastProcessingResult = ptr.String(jtv) } case "MaximumBatchingWindowInSeconds": @@ -841,7 +841,7 @@ func awsRestjson1_deserializeOpDocumentCreateEventSourceMappingOutput(v **Create if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } case "StateTransitionReason": @@ -850,7 +850,7 @@ func awsRestjson1_deserializeOpDocumentCreateEventSourceMappingOutput(v **Create if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StateTransitionReason = &jtv + sv.StateTransitionReason = ptr.String(jtv) } case "Topics": @@ -864,7 +864,7 @@ func awsRestjson1_deserializeOpDocumentCreateEventSourceMappingOutput(v **Create if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UUID = &jtv + sv.UUID = ptr.String(jtv) } default: @@ -1030,7 +1030,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CodeSha256 = &jtv + sv.CodeSha256 = ptr.String(jtv) } case "CodeSize": @@ -1043,7 +1043,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if err != nil { return err } - sv.CodeSize = &i64 + sv.CodeSize = i64 } case "DeadLetterConfig": @@ -1057,7 +1057,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Environment": @@ -1076,7 +1076,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if !ok { return fmt.Errorf("expected NameSpacedFunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "FunctionName": @@ -1085,7 +1085,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if !ok { return fmt.Errorf("expected NamespacedFunctionName to be of type string, got %T instead", value) } - sv.FunctionName = &jtv + sv.FunctionName = ptr.String(jtv) } case "Handler": @@ -1094,7 +1094,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if !ok { return fmt.Errorf("expected Handler to be of type string, got %T instead", value) } - sv.Handler = &jtv + sv.Handler = ptr.String(jtv) } case "KMSKeyArn": @@ -1103,7 +1103,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if !ok { return fmt.Errorf("expected KMSKeyArn to be of type string, got %T instead", value) } - sv.KMSKeyArn = &jtv + sv.KMSKeyArn = ptr.String(jtv) } case "LastModified": @@ -1112,7 +1112,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.LastModified = &jtv + sv.LastModified = ptr.String(jtv) } case "LastUpdateStatus": @@ -1130,7 +1130,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if !ok { return fmt.Errorf("expected LastUpdateStatusReason to be of type string, got %T instead", value) } - sv.LastUpdateStatusReason = &jtv + sv.LastUpdateStatusReason = ptr.String(jtv) } case "LastUpdateStatusReasonCode": @@ -1153,7 +1153,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.MasterArn = &jtv + sv.MasterArn = ptr.String(jtv) } case "MemorySize": @@ -1175,7 +1175,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "Role": @@ -1184,7 +1184,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "Runtime": @@ -1211,7 +1211,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if !ok { return fmt.Errorf("expected StateReason to be of type string, got %T instead", value) } - sv.StateReason = &jtv + sv.StateReason = ptr.String(jtv) } case "StateReasonCode": @@ -1247,7 +1247,7 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "VpcConfig": @@ -1520,7 +1520,7 @@ func awsRestjson1_deserializeOpDocumentDeleteEventSourceMappingOutput(v **Delete if !ok { return fmt.Errorf("expected BisectBatchOnFunctionError to be of type *bool, got %T instead", value) } - sv.BisectBatchOnFunctionError = &jtv + sv.BisectBatchOnFunctionError = ptr.Bool(jtv) } case "DestinationConfig": @@ -1534,7 +1534,7 @@ func awsRestjson1_deserializeOpDocumentDeleteEventSourceMappingOutput(v **Delete if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.EventSourceArn = &jtv + sv.EventSourceArn = ptr.String(jtv) } case "FunctionArn": @@ -1543,7 +1543,7 @@ func awsRestjson1_deserializeOpDocumentDeleteEventSourceMappingOutput(v **Delete if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "LastModified": @@ -1565,7 +1565,7 @@ func awsRestjson1_deserializeOpDocumentDeleteEventSourceMappingOutput(v **Delete if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastProcessingResult = &jtv + sv.LastProcessingResult = ptr.String(jtv) } case "MaximumBatchingWindowInSeconds": @@ -1626,7 +1626,7 @@ func awsRestjson1_deserializeOpDocumentDeleteEventSourceMappingOutput(v **Delete if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } case "StateTransitionReason": @@ -1635,7 +1635,7 @@ func awsRestjson1_deserializeOpDocumentDeleteEventSourceMappingOutput(v **Delete if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StateTransitionReason = &jtv + sv.StateTransitionReason = ptr.String(jtv) } case "Topics": @@ -1649,7 +1649,7 @@ func awsRestjson1_deserializeOpDocumentDeleteEventSourceMappingOutput(v **Delete if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UUID = &jtv + sv.UUID = ptr.String(jtv) } default: @@ -2427,7 +2427,7 @@ func awsRestjson1_deserializeOpDocumentGetAliasOutput(v **GetAliasOutput, value if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.AliasArn = &jtv + sv.AliasArn = ptr.String(jtv) } case "Description": @@ -2436,7 +2436,7 @@ func awsRestjson1_deserializeOpDocumentGetAliasOutput(v **GetAliasOutput, value if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "FunctionVersion": @@ -2445,7 +2445,7 @@ func awsRestjson1_deserializeOpDocumentGetAliasOutput(v **GetAliasOutput, value if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.FunctionVersion = &jtv + sv.FunctionVersion = ptr.String(jtv) } case "Name": @@ -2454,7 +2454,7 @@ func awsRestjson1_deserializeOpDocumentGetAliasOutput(v **GetAliasOutput, value if !ok { return fmt.Errorf("expected Alias to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RevisionId": @@ -2463,7 +2463,7 @@ func awsRestjson1_deserializeOpDocumentGetAliasOutput(v **GetAliasOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "RoutingConfig": @@ -2641,7 +2641,7 @@ func awsRestjson1_deserializeOpDocumentGetEventSourceMappingOutput(v **GetEventS if !ok { return fmt.Errorf("expected BisectBatchOnFunctionError to be of type *bool, got %T instead", value) } - sv.BisectBatchOnFunctionError = &jtv + sv.BisectBatchOnFunctionError = ptr.Bool(jtv) } case "DestinationConfig": @@ -2655,7 +2655,7 @@ func awsRestjson1_deserializeOpDocumentGetEventSourceMappingOutput(v **GetEventS if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.EventSourceArn = &jtv + sv.EventSourceArn = ptr.String(jtv) } case "FunctionArn": @@ -2664,7 +2664,7 @@ func awsRestjson1_deserializeOpDocumentGetEventSourceMappingOutput(v **GetEventS if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "LastModified": @@ -2686,7 +2686,7 @@ func awsRestjson1_deserializeOpDocumentGetEventSourceMappingOutput(v **GetEventS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastProcessingResult = &jtv + sv.LastProcessingResult = ptr.String(jtv) } case "MaximumBatchingWindowInSeconds": @@ -2747,7 +2747,7 @@ func awsRestjson1_deserializeOpDocumentGetEventSourceMappingOutput(v **GetEventS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } case "StateTransitionReason": @@ -2756,7 +2756,7 @@ func awsRestjson1_deserializeOpDocumentGetEventSourceMappingOutput(v **GetEventS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StateTransitionReason = &jtv + sv.StateTransitionReason = ptr.String(jtv) } case "Topics": @@ -2770,7 +2770,7 @@ func awsRestjson1_deserializeOpDocumentGetEventSourceMappingOutput(v **GetEventS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UUID = &jtv + sv.UUID = ptr.String(jtv) } default: @@ -3265,7 +3265,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CodeSha256 = &jtv + sv.CodeSha256 = ptr.String(jtv) } case "CodeSize": @@ -3278,7 +3278,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if err != nil { return err } - sv.CodeSize = &i64 + sv.CodeSize = i64 } case "DeadLetterConfig": @@ -3292,7 +3292,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Environment": @@ -3311,7 +3311,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if !ok { return fmt.Errorf("expected NameSpacedFunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "FunctionName": @@ -3320,7 +3320,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if !ok { return fmt.Errorf("expected NamespacedFunctionName to be of type string, got %T instead", value) } - sv.FunctionName = &jtv + sv.FunctionName = ptr.String(jtv) } case "Handler": @@ -3329,7 +3329,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if !ok { return fmt.Errorf("expected Handler to be of type string, got %T instead", value) } - sv.Handler = &jtv + sv.Handler = ptr.String(jtv) } case "KMSKeyArn": @@ -3338,7 +3338,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if !ok { return fmt.Errorf("expected KMSKeyArn to be of type string, got %T instead", value) } - sv.KMSKeyArn = &jtv + sv.KMSKeyArn = ptr.String(jtv) } case "LastModified": @@ -3347,7 +3347,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.LastModified = &jtv + sv.LastModified = ptr.String(jtv) } case "LastUpdateStatus": @@ -3365,7 +3365,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if !ok { return fmt.Errorf("expected LastUpdateStatusReason to be of type string, got %T instead", value) } - sv.LastUpdateStatusReason = &jtv + sv.LastUpdateStatusReason = ptr.String(jtv) } case "LastUpdateStatusReasonCode": @@ -3388,7 +3388,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.MasterArn = &jtv + sv.MasterArn = ptr.String(jtv) } case "MemorySize": @@ -3410,7 +3410,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "Role": @@ -3419,7 +3419,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "Runtime": @@ -3446,7 +3446,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if !ok { return fmt.Errorf("expected StateReason to be of type string, got %T instead", value) } - sv.StateReason = &jtv + sv.StateReason = ptr.String(jtv) } case "StateReasonCode": @@ -3482,7 +3482,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "VpcConfig": @@ -3652,7 +3652,7 @@ func awsRestjson1_deserializeOpDocumentGetFunctionEventInvokeConfigOutput(v **Ge if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "LastModified": @@ -3861,7 +3861,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionOutput(v **GetLayerVersion if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.CreatedDate = &jtv + sv.CreatedDate = ptr.String(jtv) } case "Description": @@ -3870,7 +3870,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionOutput(v **GetLayerVersion if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LayerArn": @@ -3879,7 +3879,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionOutput(v **GetLayerVersion if !ok { return fmt.Errorf("expected LayerArn to be of type string, got %T instead", value) } - sv.LayerArn = &jtv + sv.LayerArn = ptr.String(jtv) } case "LayerVersionArn": @@ -3888,7 +3888,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionOutput(v **GetLayerVersion if !ok { return fmt.Errorf("expected LayerVersionArn to be of type string, got %T instead", value) } - sv.LayerVersionArn = &jtv + sv.LayerVersionArn = ptr.String(jtv) } case "LicenseInfo": @@ -3897,7 +3897,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionOutput(v **GetLayerVersion if !ok { return fmt.Errorf("expected LicenseInfo to be of type string, got %T instead", value) } - sv.LicenseInfo = &jtv + sv.LicenseInfo = ptr.String(jtv) } case "Version": @@ -3910,7 +3910,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionOutput(v **GetLayerVersion if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -4080,7 +4080,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionByArnOutput(v **GetLayerVe if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.CreatedDate = &jtv + sv.CreatedDate = ptr.String(jtv) } case "Description": @@ -4089,7 +4089,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionByArnOutput(v **GetLayerVe if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LayerArn": @@ -4098,7 +4098,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionByArnOutput(v **GetLayerVe if !ok { return fmt.Errorf("expected LayerArn to be of type string, got %T instead", value) } - sv.LayerArn = &jtv + sv.LayerArn = ptr.String(jtv) } case "LayerVersionArn": @@ -4107,7 +4107,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionByArnOutput(v **GetLayerVe if !ok { return fmt.Errorf("expected LayerVersionArn to be of type string, got %T instead", value) } - sv.LayerVersionArn = &jtv + sv.LayerVersionArn = ptr.String(jtv) } case "LicenseInfo": @@ -4116,7 +4116,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionByArnOutput(v **GetLayerVe if !ok { return fmt.Errorf("expected LicenseInfo to be of type string, got %T instead", value) } - sv.LicenseInfo = &jtv + sv.LicenseInfo = ptr.String(jtv) } case "Version": @@ -4129,7 +4129,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionByArnOutput(v **GetLayerVe if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -4289,7 +4289,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionPolicyOutput(v **GetLayerV if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "RevisionId": @@ -4298,7 +4298,7 @@ func awsRestjson1_deserializeOpDocumentGetLayerVersionPolicyOutput(v **GetLayerV if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } default: @@ -4458,7 +4458,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyOutput(v **GetPolicyOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "RevisionId": @@ -4467,7 +4467,7 @@ func awsRestjson1_deserializeOpDocumentGetPolicyOutput(v **GetPolicyOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } default: @@ -4656,7 +4656,7 @@ func awsRestjson1_deserializeOpDocumentGetProvisionedConcurrencyConfigOutput(v * if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.LastModified = &jtv + sv.LastModified = ptr.String(jtv) } case "RequestedProvisionedConcurrentExecutions": @@ -4687,7 +4687,7 @@ func awsRestjson1_deserializeOpDocumentGetProvisionedConcurrencyConfigOutput(v * if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } default: @@ -4887,7 +4887,7 @@ func awsRestjson1_deserializeOpHttpBindingsInvokeOutput(v *InvokeOutput, respons v.LogResult = ptr.String(headerValues[0]) } - v.StatusCode = ptr.Int32(int32(response.StatusCode)) + v.StatusCode = int32(response.StatusCode) return nil } @@ -5011,7 +5011,7 @@ func awsRestjson1_deserializeOpHttpBindingsInvokeAsyncOutput(v *InvokeAsyncOutpu return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -5169,7 +5169,7 @@ func awsRestjson1_deserializeOpDocumentListAliasesOutput(v **ListAliasesOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -5334,7 +5334,7 @@ func awsRestjson1_deserializeOpDocumentListEventSourceMappingsOutput(v **ListEve if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -5499,7 +5499,7 @@ func awsRestjson1_deserializeOpDocumentListFunctionEventInvokeConfigsOutput(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -5661,7 +5661,7 @@ func awsRestjson1_deserializeOpDocumentListFunctionsOutput(v **ListFunctionsOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -5823,7 +5823,7 @@ func awsRestjson1_deserializeOpDocumentListLayersOutput(v **ListLayersOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -5988,7 +5988,7 @@ func awsRestjson1_deserializeOpDocumentListLayerVersionsOutput(v **ListLayerVers if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -6148,7 +6148,7 @@ func awsRestjson1_deserializeOpDocumentListProvisionedConcurrencyConfigsOutput(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "ProvisionedConcurrencyConfigs": @@ -6469,7 +6469,7 @@ func awsRestjson1_deserializeOpDocumentListVersionsByFunctionOutput(v **ListVers if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "Versions": @@ -6647,7 +6647,7 @@ func awsRestjson1_deserializeOpDocumentPublishLayerVersionOutput(v **PublishLaye if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.CreatedDate = &jtv + sv.CreatedDate = ptr.String(jtv) } case "Description": @@ -6656,7 +6656,7 @@ func awsRestjson1_deserializeOpDocumentPublishLayerVersionOutput(v **PublishLaye if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LayerArn": @@ -6665,7 +6665,7 @@ func awsRestjson1_deserializeOpDocumentPublishLayerVersionOutput(v **PublishLaye if !ok { return fmt.Errorf("expected LayerArn to be of type string, got %T instead", value) } - sv.LayerArn = &jtv + sv.LayerArn = ptr.String(jtv) } case "LayerVersionArn": @@ -6674,7 +6674,7 @@ func awsRestjson1_deserializeOpDocumentPublishLayerVersionOutput(v **PublishLaye if !ok { return fmt.Errorf("expected LayerVersionArn to be of type string, got %T instead", value) } - sv.LayerVersionArn = &jtv + sv.LayerVersionArn = ptr.String(jtv) } case "LicenseInfo": @@ -6683,7 +6683,7 @@ func awsRestjson1_deserializeOpDocumentPublishLayerVersionOutput(v **PublishLaye if !ok { return fmt.Errorf("expected LicenseInfo to be of type string, got %T instead", value) } - sv.LicenseInfo = &jtv + sv.LicenseInfo = ptr.String(jtv) } case "Version": @@ -6696,7 +6696,7 @@ func awsRestjson1_deserializeOpDocumentPublishLayerVersionOutput(v **PublishLaye if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -6865,7 +6865,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CodeSha256 = &jtv + sv.CodeSha256 = ptr.String(jtv) } case "CodeSize": @@ -6878,7 +6878,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if err != nil { return err } - sv.CodeSize = &i64 + sv.CodeSize = i64 } case "DeadLetterConfig": @@ -6892,7 +6892,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Environment": @@ -6911,7 +6911,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if !ok { return fmt.Errorf("expected NameSpacedFunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "FunctionName": @@ -6920,7 +6920,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if !ok { return fmt.Errorf("expected NamespacedFunctionName to be of type string, got %T instead", value) } - sv.FunctionName = &jtv + sv.FunctionName = ptr.String(jtv) } case "Handler": @@ -6929,7 +6929,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if !ok { return fmt.Errorf("expected Handler to be of type string, got %T instead", value) } - sv.Handler = &jtv + sv.Handler = ptr.String(jtv) } case "KMSKeyArn": @@ -6938,7 +6938,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if !ok { return fmt.Errorf("expected KMSKeyArn to be of type string, got %T instead", value) } - sv.KMSKeyArn = &jtv + sv.KMSKeyArn = ptr.String(jtv) } case "LastModified": @@ -6947,7 +6947,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.LastModified = &jtv + sv.LastModified = ptr.String(jtv) } case "LastUpdateStatus": @@ -6965,7 +6965,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if !ok { return fmt.Errorf("expected LastUpdateStatusReason to be of type string, got %T instead", value) } - sv.LastUpdateStatusReason = &jtv + sv.LastUpdateStatusReason = ptr.String(jtv) } case "LastUpdateStatusReasonCode": @@ -6988,7 +6988,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.MasterArn = &jtv + sv.MasterArn = ptr.String(jtv) } case "MemorySize": @@ -7010,7 +7010,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "Role": @@ -7019,7 +7019,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "Runtime": @@ -7046,7 +7046,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if !ok { return fmt.Errorf("expected StateReason to be of type string, got %T instead", value) } - sv.StateReason = &jtv + sv.StateReason = ptr.String(jtv) } case "StateReasonCode": @@ -7082,7 +7082,7 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "VpcConfig": @@ -7419,7 +7419,7 @@ func awsRestjson1_deserializeOpDocumentPutFunctionEventInvokeConfigOutput(v **Pu if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "LastModified": @@ -7647,7 +7647,7 @@ func awsRestjson1_deserializeOpDocumentPutProvisionedConcurrencyConfigOutput(v * if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.LastModified = &jtv + sv.LastModified = ptr.String(jtv) } case "RequestedProvisionedConcurrentExecutions": @@ -7678,7 +7678,7 @@ func awsRestjson1_deserializeOpDocumentPutProvisionedConcurrencyConfigOutput(v * if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } default: @@ -8224,7 +8224,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAliasOutput(v **UpdateAliasOutput, if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.AliasArn = &jtv + sv.AliasArn = ptr.String(jtv) } case "Description": @@ -8233,7 +8233,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAliasOutput(v **UpdateAliasOutput, if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "FunctionVersion": @@ -8242,7 +8242,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAliasOutput(v **UpdateAliasOutput, if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.FunctionVersion = &jtv + sv.FunctionVersion = ptr.String(jtv) } case "Name": @@ -8251,7 +8251,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAliasOutput(v **UpdateAliasOutput, if !ok { return fmt.Errorf("expected Alias to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RevisionId": @@ -8260,7 +8260,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAliasOutput(v **UpdateAliasOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "RoutingConfig": @@ -8444,7 +8444,7 @@ func awsRestjson1_deserializeOpDocumentUpdateEventSourceMappingOutput(v **Update if !ok { return fmt.Errorf("expected BisectBatchOnFunctionError to be of type *bool, got %T instead", value) } - sv.BisectBatchOnFunctionError = &jtv + sv.BisectBatchOnFunctionError = ptr.Bool(jtv) } case "DestinationConfig": @@ -8458,7 +8458,7 @@ func awsRestjson1_deserializeOpDocumentUpdateEventSourceMappingOutput(v **Update if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.EventSourceArn = &jtv + sv.EventSourceArn = ptr.String(jtv) } case "FunctionArn": @@ -8467,7 +8467,7 @@ func awsRestjson1_deserializeOpDocumentUpdateEventSourceMappingOutput(v **Update if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "LastModified": @@ -8489,7 +8489,7 @@ func awsRestjson1_deserializeOpDocumentUpdateEventSourceMappingOutput(v **Update if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastProcessingResult = &jtv + sv.LastProcessingResult = ptr.String(jtv) } case "MaximumBatchingWindowInSeconds": @@ -8550,7 +8550,7 @@ func awsRestjson1_deserializeOpDocumentUpdateEventSourceMappingOutput(v **Update if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } case "StateTransitionReason": @@ -8559,7 +8559,7 @@ func awsRestjson1_deserializeOpDocumentUpdateEventSourceMappingOutput(v **Update if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StateTransitionReason = &jtv + sv.StateTransitionReason = ptr.String(jtv) } case "Topics": @@ -8573,7 +8573,7 @@ func awsRestjson1_deserializeOpDocumentUpdateEventSourceMappingOutput(v **Update if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UUID = &jtv + sv.UUID = ptr.String(jtv) } default: @@ -8742,7 +8742,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CodeSha256 = &jtv + sv.CodeSha256 = ptr.String(jtv) } case "CodeSize": @@ -8755,7 +8755,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if err != nil { return err } - sv.CodeSize = &i64 + sv.CodeSize = i64 } case "DeadLetterConfig": @@ -8769,7 +8769,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Environment": @@ -8788,7 +8788,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if !ok { return fmt.Errorf("expected NameSpacedFunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "FunctionName": @@ -8797,7 +8797,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if !ok { return fmt.Errorf("expected NamespacedFunctionName to be of type string, got %T instead", value) } - sv.FunctionName = &jtv + sv.FunctionName = ptr.String(jtv) } case "Handler": @@ -8806,7 +8806,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if !ok { return fmt.Errorf("expected Handler to be of type string, got %T instead", value) } - sv.Handler = &jtv + sv.Handler = ptr.String(jtv) } case "KMSKeyArn": @@ -8815,7 +8815,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if !ok { return fmt.Errorf("expected KMSKeyArn to be of type string, got %T instead", value) } - sv.KMSKeyArn = &jtv + sv.KMSKeyArn = ptr.String(jtv) } case "LastModified": @@ -8824,7 +8824,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.LastModified = &jtv + sv.LastModified = ptr.String(jtv) } case "LastUpdateStatus": @@ -8842,7 +8842,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if !ok { return fmt.Errorf("expected LastUpdateStatusReason to be of type string, got %T instead", value) } - sv.LastUpdateStatusReason = &jtv + sv.LastUpdateStatusReason = ptr.String(jtv) } case "LastUpdateStatusReasonCode": @@ -8865,7 +8865,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.MasterArn = &jtv + sv.MasterArn = ptr.String(jtv) } case "MemorySize": @@ -8887,7 +8887,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "Role": @@ -8896,7 +8896,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "Runtime": @@ -8923,7 +8923,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if !ok { return fmt.Errorf("expected StateReason to be of type string, got %T instead", value) } - sv.StateReason = &jtv + sv.StateReason = ptr.String(jtv) } case "StateReasonCode": @@ -8959,7 +8959,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "VpcConfig": @@ -9130,7 +9130,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CodeSha256 = &jtv + sv.CodeSha256 = ptr.String(jtv) } case "CodeSize": @@ -9143,7 +9143,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if err != nil { return err } - sv.CodeSize = &i64 + sv.CodeSize = i64 } case "DeadLetterConfig": @@ -9157,7 +9157,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Environment": @@ -9176,7 +9176,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if !ok { return fmt.Errorf("expected NameSpacedFunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "FunctionName": @@ -9185,7 +9185,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if !ok { return fmt.Errorf("expected NamespacedFunctionName to be of type string, got %T instead", value) } - sv.FunctionName = &jtv + sv.FunctionName = ptr.String(jtv) } case "Handler": @@ -9194,7 +9194,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if !ok { return fmt.Errorf("expected Handler to be of type string, got %T instead", value) } - sv.Handler = &jtv + sv.Handler = ptr.String(jtv) } case "KMSKeyArn": @@ -9203,7 +9203,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if !ok { return fmt.Errorf("expected KMSKeyArn to be of type string, got %T instead", value) } - sv.KMSKeyArn = &jtv + sv.KMSKeyArn = ptr.String(jtv) } case "LastModified": @@ -9212,7 +9212,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.LastModified = &jtv + sv.LastModified = ptr.String(jtv) } case "LastUpdateStatus": @@ -9230,7 +9230,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if !ok { return fmt.Errorf("expected LastUpdateStatusReason to be of type string, got %T instead", value) } - sv.LastUpdateStatusReason = &jtv + sv.LastUpdateStatusReason = ptr.String(jtv) } case "LastUpdateStatusReasonCode": @@ -9253,7 +9253,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.MasterArn = &jtv + sv.MasterArn = ptr.String(jtv) } case "MemorySize": @@ -9275,7 +9275,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "Role": @@ -9284,7 +9284,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "Runtime": @@ -9311,7 +9311,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if !ok { return fmt.Errorf("expected StateReason to be of type string, got %T instead", value) } - sv.StateReason = &jtv + sv.StateReason = ptr.String(jtv) } case "StateReasonCode": @@ -9347,7 +9347,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "VpcConfig": @@ -9517,7 +9517,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionEventInvokeConfigOutput(v * if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "LastModified": @@ -10732,7 +10732,7 @@ func awsRestjson1_deserializeDocumentAccountLimit(v **types.AccountLimit, value if err != nil { return err } - sv.CodeSizeUnzipped = &i64 + sv.CodeSizeUnzipped = i64 } case "CodeSizeZipped": @@ -10745,7 +10745,7 @@ func awsRestjson1_deserializeDocumentAccountLimit(v **types.AccountLimit, value if err != nil { return err } - sv.CodeSizeZipped = &i64 + sv.CodeSizeZipped = i64 } case "ConcurrentExecutions": @@ -10758,7 +10758,7 @@ func awsRestjson1_deserializeDocumentAccountLimit(v **types.AccountLimit, value if err != nil { return err } - sv.ConcurrentExecutions = ptr.Int32(int32(i64)) + sv.ConcurrentExecutions = int32(i64) } case "TotalCodeSize": @@ -10771,7 +10771,7 @@ func awsRestjson1_deserializeDocumentAccountLimit(v **types.AccountLimit, value if err != nil { return err } - sv.TotalCodeSize = &i64 + sv.TotalCodeSize = i64 } case "UnreservedConcurrentExecutions": @@ -10828,7 +10828,7 @@ func awsRestjson1_deserializeDocumentAccountUsage(v **types.AccountUsage, value if err != nil { return err } - sv.FunctionCount = &i64 + sv.FunctionCount = i64 } case "TotalCodeSize": @@ -10841,7 +10841,7 @@ func awsRestjson1_deserializeDocumentAccountUsage(v **types.AccountUsage, value if err != nil { return err } - sv.TotalCodeSize = &i64 + sv.TotalCodeSize = i64 } default: @@ -10853,7 +10853,7 @@ func awsRestjson1_deserializeDocumentAccountUsage(v **types.AccountUsage, value return nil } -func awsRestjson1_deserializeDocumentAdditionalVersionWeights(v *map[string]*float64, value interface{}) error { +func awsRestjson1_deserializeDocumentAdditionalVersionWeights(v *map[string]float64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10866,15 +10866,15 @@ func awsRestjson1_deserializeDocumentAdditionalVersionWeights(v *map[string]*flo return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*float64 + var mv map[string]float64 if *v == nil { - mv = map[string]*float64{} + mv = map[string]float64{} } else { mv = *v } for key, value := range shape { - var parsedVal *float64 + var parsedVal float64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -10884,7 +10884,7 @@ func awsRestjson1_deserializeDocumentAdditionalVersionWeights(v *map[string]*flo if err != nil { return err } - parsedVal = &f64 + parsedVal = f64 } mv[key] = parsedVal @@ -10921,7 +10921,7 @@ func awsRestjson1_deserializeDocumentAliasConfiguration(v **types.AliasConfigura if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.AliasArn = &jtv + sv.AliasArn = ptr.String(jtv) } case "Description": @@ -10930,7 +10930,7 @@ func awsRestjson1_deserializeDocumentAliasConfiguration(v **types.AliasConfigura if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "FunctionVersion": @@ -10939,7 +10939,7 @@ func awsRestjson1_deserializeDocumentAliasConfiguration(v **types.AliasConfigura if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.FunctionVersion = &jtv + sv.FunctionVersion = ptr.String(jtv) } case "Name": @@ -10948,7 +10948,7 @@ func awsRestjson1_deserializeDocumentAliasConfiguration(v **types.AliasConfigura if !ok { return fmt.Errorf("expected Alias to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RevisionId": @@ -10957,7 +10957,7 @@ func awsRestjson1_deserializeDocumentAliasConfiguration(v **types.AliasConfigura if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "RoutingConfig": @@ -10974,7 +10974,7 @@ func awsRestjson1_deserializeDocumentAliasConfiguration(v **types.AliasConfigura return nil } -func awsRestjson1_deserializeDocumentAliasList(v *[]*types.AliasConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentAliasList(v *[]types.AliasConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10987,18 +10987,20 @@ func awsRestjson1_deserializeDocumentAliasList(v *[]*types.AliasConfiguration, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AliasConfiguration + var cv []types.AliasConfiguration if *v == nil { - cv = []*types.AliasConfiguration{} + cv = []types.AliasConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.AliasConfiguration - if err := awsRestjson1_deserializeDocumentAliasConfiguration(&col, value); err != nil { + var col types.AliasConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentAliasConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11070,7 +11072,7 @@ func awsRestjson1_deserializeDocumentCodeStorageExceededException(v **types.Code if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -11079,7 +11081,7 @@ func awsRestjson1_deserializeDocumentCodeStorageExceededException(v **types.Code if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11199,7 +11201,7 @@ func awsRestjson1_deserializeDocumentDeadLetterConfig(v **types.DeadLetterConfig if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.TargetArn = &jtv + sv.TargetArn = ptr.String(jtv) } default: @@ -11280,7 +11282,7 @@ func awsRestjson1_deserializeDocumentEC2AccessDeniedException(v **types.EC2Acces if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -11289,7 +11291,7 @@ func awsRestjson1_deserializeDocumentEC2AccessDeniedException(v **types.EC2Acces if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11329,7 +11331,7 @@ func awsRestjson1_deserializeDocumentEC2ThrottledException(v **types.EC2Throttle if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -11338,7 +11340,7 @@ func awsRestjson1_deserializeDocumentEC2ThrottledException(v **types.EC2Throttle if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11378,7 +11380,7 @@ func awsRestjson1_deserializeDocumentEC2UnexpectedException(v **types.EC2Unexpec if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EC2ErrorCode = &jtv + sv.EC2ErrorCode = ptr.String(jtv) } case "Message": @@ -11387,7 +11389,7 @@ func awsRestjson1_deserializeDocumentEC2UnexpectedException(v **types.EC2Unexpec if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -11396,7 +11398,7 @@ func awsRestjson1_deserializeDocumentEC2UnexpectedException(v **types.EC2Unexpec if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11436,7 +11438,7 @@ func awsRestjson1_deserializeDocumentEFSIOException(v **types.EFSIOException, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -11445,7 +11447,7 @@ func awsRestjson1_deserializeDocumentEFSIOException(v **types.EFSIOException, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11485,7 +11487,7 @@ func awsRestjson1_deserializeDocumentEFSMountConnectivityException(v **types.EFS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -11494,7 +11496,7 @@ func awsRestjson1_deserializeDocumentEFSMountConnectivityException(v **types.EFS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11534,7 +11536,7 @@ func awsRestjson1_deserializeDocumentEFSMountFailureException(v **types.EFSMount if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -11543,7 +11545,7 @@ func awsRestjson1_deserializeDocumentEFSMountFailureException(v **types.EFSMount if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11583,7 +11585,7 @@ func awsRestjson1_deserializeDocumentEFSMountTimeoutException(v **types.EFSMount if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -11592,7 +11594,7 @@ func awsRestjson1_deserializeDocumentEFSMountTimeoutException(v **types.EFSMount if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11632,7 +11634,7 @@ func awsRestjson1_deserializeDocumentENILimitReachedException(v **types.ENILimit if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -11641,7 +11643,7 @@ func awsRestjson1_deserializeDocumentENILimitReachedException(v **types.ENILimit if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11681,7 +11683,7 @@ func awsRestjson1_deserializeDocumentEnvironmentError(v **types.EnvironmentError if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "Message": @@ -11690,7 +11692,7 @@ func awsRestjson1_deserializeDocumentEnvironmentError(v **types.EnvironmentError if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11743,7 +11745,7 @@ func awsRestjson1_deserializeDocumentEnvironmentResponse(v **types.EnvironmentRe return nil } -func awsRestjson1_deserializeDocumentEnvironmentVariables(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentEnvironmentVariables(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11756,21 +11758,21 @@ func awsRestjson1_deserializeDocumentEnvironmentVariables(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected EnvironmentVariableValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -11820,7 +11822,7 @@ func awsRestjson1_deserializeDocumentEventSourceMappingConfiguration(v **types.E if !ok { return fmt.Errorf("expected BisectBatchOnFunctionError to be of type *bool, got %T instead", value) } - sv.BisectBatchOnFunctionError = &jtv + sv.BisectBatchOnFunctionError = ptr.Bool(jtv) } case "DestinationConfig": @@ -11834,7 +11836,7 @@ func awsRestjson1_deserializeDocumentEventSourceMappingConfiguration(v **types.E if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.EventSourceArn = &jtv + sv.EventSourceArn = ptr.String(jtv) } case "FunctionArn": @@ -11843,7 +11845,7 @@ func awsRestjson1_deserializeDocumentEventSourceMappingConfiguration(v **types.E if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "LastModified": @@ -11865,7 +11867,7 @@ func awsRestjson1_deserializeDocumentEventSourceMappingConfiguration(v **types.E if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastProcessingResult = &jtv + sv.LastProcessingResult = ptr.String(jtv) } case "MaximumBatchingWindowInSeconds": @@ -11926,7 +11928,7 @@ func awsRestjson1_deserializeDocumentEventSourceMappingConfiguration(v **types.E if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } case "StateTransitionReason": @@ -11935,7 +11937,7 @@ func awsRestjson1_deserializeDocumentEventSourceMappingConfiguration(v **types.E if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StateTransitionReason = &jtv + sv.StateTransitionReason = ptr.String(jtv) } case "Topics": @@ -11949,7 +11951,7 @@ func awsRestjson1_deserializeDocumentEventSourceMappingConfiguration(v **types.E if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UUID = &jtv + sv.UUID = ptr.String(jtv) } default: @@ -11961,7 +11963,7 @@ func awsRestjson1_deserializeDocumentEventSourceMappingConfiguration(v **types.E return nil } -func awsRestjson1_deserializeDocumentEventSourceMappingsList(v *[]*types.EventSourceMappingConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentEventSourceMappingsList(v *[]types.EventSourceMappingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11974,18 +11976,20 @@ func awsRestjson1_deserializeDocumentEventSourceMappingsList(v *[]*types.EventSo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventSourceMappingConfiguration + var cv []types.EventSourceMappingConfiguration if *v == nil { - cv = []*types.EventSourceMappingConfiguration{} + cv = []types.EventSourceMappingConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.EventSourceMappingConfiguration - if err := awsRestjson1_deserializeDocumentEventSourceMappingConfiguration(&col, value); err != nil { + var col types.EventSourceMappingConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentEventSourceMappingConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12021,7 +12025,7 @@ func awsRestjson1_deserializeDocumentFileSystemConfig(v **types.FileSystemConfig if !ok { return fmt.Errorf("expected FileSystemArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "LocalMountPath": @@ -12030,7 +12034,7 @@ func awsRestjson1_deserializeDocumentFileSystemConfig(v **types.FileSystemConfig if !ok { return fmt.Errorf("expected LocalMountPath to be of type string, got %T instead", value) } - sv.LocalMountPath = &jtv + sv.LocalMountPath = ptr.String(jtv) } default: @@ -12042,7 +12046,7 @@ func awsRestjson1_deserializeDocumentFileSystemConfig(v **types.FileSystemConfig return nil } -func awsRestjson1_deserializeDocumentFileSystemConfigList(v *[]*types.FileSystemConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentFileSystemConfigList(v *[]types.FileSystemConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12055,18 +12059,20 @@ func awsRestjson1_deserializeDocumentFileSystemConfigList(v *[]*types.FileSystem return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FileSystemConfig + var cv []types.FileSystemConfig if *v == nil { - cv = []*types.FileSystemConfig{} + cv = []types.FileSystemConfig{} } else { cv = *v } for _, value := range shape { - var col *types.FileSystemConfig - if err := awsRestjson1_deserializeDocumentFileSystemConfig(&col, value); err != nil { + var col types.FileSystemConfig + destAddr := &col + if err := awsRestjson1_deserializeDocumentFileSystemConfig(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12102,7 +12108,7 @@ func awsRestjson1_deserializeDocumentFunctionCodeLocation(v **types.FunctionCode if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "RepositoryType": @@ -12111,7 +12117,7 @@ func awsRestjson1_deserializeDocumentFunctionCodeLocation(v **types.FunctionCode if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RepositoryType = &jtv + sv.RepositoryType = ptr.String(jtv) } default: @@ -12151,7 +12157,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CodeSha256 = &jtv + sv.CodeSha256 = ptr.String(jtv) } case "CodeSize": @@ -12164,7 +12170,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if err != nil { return err } - sv.CodeSize = &i64 + sv.CodeSize = i64 } case "DeadLetterConfig": @@ -12178,7 +12184,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Environment": @@ -12197,7 +12203,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected NameSpacedFunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "FunctionName": @@ -12206,7 +12212,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected NamespacedFunctionName to be of type string, got %T instead", value) } - sv.FunctionName = &jtv + sv.FunctionName = ptr.String(jtv) } case "Handler": @@ -12215,7 +12221,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected Handler to be of type string, got %T instead", value) } - sv.Handler = &jtv + sv.Handler = ptr.String(jtv) } case "KMSKeyArn": @@ -12224,7 +12230,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected KMSKeyArn to be of type string, got %T instead", value) } - sv.KMSKeyArn = &jtv + sv.KMSKeyArn = ptr.String(jtv) } case "LastModified": @@ -12233,7 +12239,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.LastModified = &jtv + sv.LastModified = ptr.String(jtv) } case "LastUpdateStatus": @@ -12251,7 +12257,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected LastUpdateStatusReason to be of type string, got %T instead", value) } - sv.LastUpdateStatusReason = &jtv + sv.LastUpdateStatusReason = ptr.String(jtv) } case "LastUpdateStatusReasonCode": @@ -12274,7 +12280,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.MasterArn = &jtv + sv.MasterArn = ptr.String(jtv) } case "MemorySize": @@ -12296,7 +12302,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "Role": @@ -12305,7 +12311,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "Runtime": @@ -12332,7 +12338,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected StateReason to be of type string, got %T instead", value) } - sv.StateReason = &jtv + sv.StateReason = ptr.String(jtv) } case "StateReasonCode": @@ -12368,7 +12374,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "VpcConfig": @@ -12418,7 +12424,7 @@ func awsRestjson1_deserializeDocumentFunctionEventInvokeConfig(v **types.Functio if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "LastModified": @@ -12469,7 +12475,7 @@ func awsRestjson1_deserializeDocumentFunctionEventInvokeConfig(v **types.Functio return nil } -func awsRestjson1_deserializeDocumentFunctionEventInvokeConfigList(v *[]*types.FunctionEventInvokeConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentFunctionEventInvokeConfigList(v *[]types.FunctionEventInvokeConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12482,18 +12488,20 @@ func awsRestjson1_deserializeDocumentFunctionEventInvokeConfigList(v *[]*types.F return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FunctionEventInvokeConfig + var cv []types.FunctionEventInvokeConfig if *v == nil { - cv = []*types.FunctionEventInvokeConfig{} + cv = []types.FunctionEventInvokeConfig{} } else { cv = *v } for _, value := range shape { - var col *types.FunctionEventInvokeConfig - if err := awsRestjson1_deserializeDocumentFunctionEventInvokeConfig(&col, value); err != nil { + var col types.FunctionEventInvokeConfig + destAddr := &col + if err := awsRestjson1_deserializeDocumentFunctionEventInvokeConfig(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12501,7 +12509,7 @@ func awsRestjson1_deserializeDocumentFunctionEventInvokeConfigList(v *[]*types.F return nil } -func awsRestjson1_deserializeDocumentFunctionList(v *[]*types.FunctionConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFunctionList(v *[]types.FunctionConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12514,18 +12522,20 @@ func awsRestjson1_deserializeDocumentFunctionList(v *[]*types.FunctionConfigurat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FunctionConfiguration + var cv []types.FunctionConfiguration if *v == nil { - cv = []*types.FunctionConfiguration{} + cv = []types.FunctionConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.FunctionConfiguration - if err := awsRestjson1_deserializeDocumentFunctionConfiguration(&col, value); err != nil { + var col types.FunctionConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentFunctionConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12561,7 +12571,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -12570,7 +12580,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -12610,7 +12620,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestContentException(v **types.In if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -12619,7 +12629,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestContentException(v **types.In if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -12659,7 +12669,7 @@ func awsRestjson1_deserializeDocumentInvalidRuntimeException(v **types.InvalidRu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -12668,7 +12678,7 @@ func awsRestjson1_deserializeDocumentInvalidRuntimeException(v **types.InvalidRu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -12708,7 +12718,7 @@ func awsRestjson1_deserializeDocumentInvalidSecurityGroupIDException(v **types.I if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -12717,7 +12727,7 @@ func awsRestjson1_deserializeDocumentInvalidSecurityGroupIDException(v **types.I if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -12757,7 +12767,7 @@ func awsRestjson1_deserializeDocumentInvalidSubnetIDException(v **types.InvalidS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -12766,7 +12776,7 @@ func awsRestjson1_deserializeDocumentInvalidSubnetIDException(v **types.InvalidS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -12806,7 +12816,7 @@ func awsRestjson1_deserializeDocumentInvalidZipFileException(v **types.InvalidZi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -12815,7 +12825,7 @@ func awsRestjson1_deserializeDocumentInvalidZipFileException(v **types.InvalidZi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -12855,7 +12865,7 @@ func awsRestjson1_deserializeDocumentKMSAccessDeniedException(v **types.KMSAcces if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -12864,7 +12874,7 @@ func awsRestjson1_deserializeDocumentKMSAccessDeniedException(v **types.KMSAcces if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -12904,7 +12914,7 @@ func awsRestjson1_deserializeDocumentKMSDisabledException(v **types.KMSDisabledE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -12913,7 +12923,7 @@ func awsRestjson1_deserializeDocumentKMSDisabledException(v **types.KMSDisabledE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -12953,7 +12963,7 @@ func awsRestjson1_deserializeDocumentKMSInvalidStateException(v **types.KMSInval if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -12962,7 +12972,7 @@ func awsRestjson1_deserializeDocumentKMSInvalidStateException(v **types.KMSInval if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -13002,7 +13012,7 @@ func awsRestjson1_deserializeDocumentKMSNotFoundException(v **types.KMSNotFoundE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -13011,7 +13021,7 @@ func awsRestjson1_deserializeDocumentKMSNotFoundException(v **types.KMSNotFoundE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -13051,7 +13061,7 @@ func awsRestjson1_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected LayerVersionArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CodeSize": @@ -13064,7 +13074,7 @@ func awsRestjson1_deserializeDocumentLayer(v **types.Layer, value interface{}) e if err != nil { return err } - sv.CodeSize = &i64 + sv.CodeSize = i64 } default: @@ -13076,7 +13086,7 @@ func awsRestjson1_deserializeDocumentLayer(v **types.Layer, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentLayersList(v *[]*types.LayersListItem, value interface{}) error { +func awsRestjson1_deserializeDocumentLayersList(v *[]types.LayersListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13089,18 +13099,20 @@ func awsRestjson1_deserializeDocumentLayersList(v *[]*types.LayersListItem, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LayersListItem + var cv []types.LayersListItem if *v == nil { - cv = []*types.LayersListItem{} + cv = []types.LayersListItem{} } else { cv = *v } for _, value := range shape { - var col *types.LayersListItem - if err := awsRestjson1_deserializeDocumentLayersListItem(&col, value); err != nil { + var col types.LayersListItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentLayersListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13141,7 +13153,7 @@ func awsRestjson1_deserializeDocumentLayersListItem(v **types.LayersListItem, va if !ok { return fmt.Errorf("expected LayerArn to be of type string, got %T instead", value) } - sv.LayerArn = &jtv + sv.LayerArn = ptr.String(jtv) } case "LayerName": @@ -13150,7 +13162,7 @@ func awsRestjson1_deserializeDocumentLayersListItem(v **types.LayersListItem, va if !ok { return fmt.Errorf("expected LayerName to be of type string, got %T instead", value) } - sv.LayerName = &jtv + sv.LayerName = ptr.String(jtv) } default: @@ -13162,7 +13174,7 @@ func awsRestjson1_deserializeDocumentLayersListItem(v **types.LayersListItem, va return nil } -func awsRestjson1_deserializeDocumentLayersReferenceList(v *[]*types.Layer, value interface{}) error { +func awsRestjson1_deserializeDocumentLayersReferenceList(v *[]types.Layer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13175,18 +13187,20 @@ func awsRestjson1_deserializeDocumentLayersReferenceList(v *[]*types.Layer, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Layer + var cv []types.Layer if *v == nil { - cv = []*types.Layer{} + cv = []types.Layer{} } else { cv = *v } for _, value := range shape { - var col *types.Layer - if err := awsRestjson1_deserializeDocumentLayer(&col, value); err != nil { + var col types.Layer + destAddr := &col + if err := awsRestjson1_deserializeDocumentLayer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13222,7 +13236,7 @@ func awsRestjson1_deserializeDocumentLayerVersionContentOutput(v **types.LayerVe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CodeSha256 = &jtv + sv.CodeSha256 = ptr.String(jtv) } case "CodeSize": @@ -13235,7 +13249,7 @@ func awsRestjson1_deserializeDocumentLayerVersionContentOutput(v **types.LayerVe if err != nil { return err } - sv.CodeSize = &i64 + sv.CodeSize = i64 } case "Location": @@ -13244,7 +13258,7 @@ func awsRestjson1_deserializeDocumentLayerVersionContentOutput(v **types.LayerVe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } default: @@ -13256,7 +13270,7 @@ func awsRestjson1_deserializeDocumentLayerVersionContentOutput(v **types.LayerVe return nil } -func awsRestjson1_deserializeDocumentLayerVersionsList(v *[]*types.LayerVersionsListItem, value interface{}) error { +func awsRestjson1_deserializeDocumentLayerVersionsList(v *[]types.LayerVersionsListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13269,18 +13283,20 @@ func awsRestjson1_deserializeDocumentLayerVersionsList(v *[]*types.LayerVersions return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LayerVersionsListItem + var cv []types.LayerVersionsListItem if *v == nil { - cv = []*types.LayerVersionsListItem{} + cv = []types.LayerVersionsListItem{} } else { cv = *v } for _, value := range shape { - var col *types.LayerVersionsListItem - if err := awsRestjson1_deserializeDocumentLayerVersionsListItem(&col, value); err != nil { + var col types.LayerVersionsListItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentLayerVersionsListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13321,7 +13337,7 @@ func awsRestjson1_deserializeDocumentLayerVersionsListItem(v **types.LayerVersio if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.CreatedDate = &jtv + sv.CreatedDate = ptr.String(jtv) } case "Description": @@ -13330,7 +13346,7 @@ func awsRestjson1_deserializeDocumentLayerVersionsListItem(v **types.LayerVersio if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LayerVersionArn": @@ -13339,7 +13355,7 @@ func awsRestjson1_deserializeDocumentLayerVersionsListItem(v **types.LayerVersio if !ok { return fmt.Errorf("expected LayerVersionArn to be of type string, got %T instead", value) } - sv.LayerVersionArn = &jtv + sv.LayerVersionArn = ptr.String(jtv) } case "LicenseInfo": @@ -13348,7 +13364,7 @@ func awsRestjson1_deserializeDocumentLayerVersionsListItem(v **types.LayerVersio if !ok { return fmt.Errorf("expected LicenseInfo to be of type string, got %T instead", value) } - sv.LicenseInfo = &jtv + sv.LicenseInfo = ptr.String(jtv) } case "Version": @@ -13361,7 +13377,7 @@ func awsRestjson1_deserializeDocumentLayerVersionsListItem(v **types.LayerVersio if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -13401,7 +13417,7 @@ func awsRestjson1_deserializeDocumentOnFailure(v **types.OnFailure, value interf if !ok { return fmt.Errorf("expected DestinationArn to be of type string, got %T instead", value) } - sv.Destination = &jtv + sv.Destination = ptr.String(jtv) } default: @@ -13441,7 +13457,7 @@ func awsRestjson1_deserializeDocumentOnSuccess(v **types.OnSuccess, value interf if !ok { return fmt.Errorf("expected DestinationArn to be of type string, got %T instead", value) } - sv.Destination = &jtv + sv.Destination = ptr.String(jtv) } default: @@ -13481,7 +13497,7 @@ func awsRestjson1_deserializeDocumentPolicyLengthExceededException(v **types.Pol if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -13490,7 +13506,7 @@ func awsRestjson1_deserializeDocumentPolicyLengthExceededException(v **types.Pol if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -13530,7 +13546,7 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -13539,7 +13555,7 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -13551,7 +13567,7 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco return nil } -func awsRestjson1_deserializeDocumentProvisionedConcurrencyConfigList(v *[]*types.ProvisionedConcurrencyConfigListItem, value interface{}) error { +func awsRestjson1_deserializeDocumentProvisionedConcurrencyConfigList(v *[]types.ProvisionedConcurrencyConfigListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13564,18 +13580,20 @@ func awsRestjson1_deserializeDocumentProvisionedConcurrencyConfigList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProvisionedConcurrencyConfigListItem + var cv []types.ProvisionedConcurrencyConfigListItem if *v == nil { - cv = []*types.ProvisionedConcurrencyConfigListItem{} + cv = []types.ProvisionedConcurrencyConfigListItem{} } else { cv = *v } for _, value := range shape { - var col *types.ProvisionedConcurrencyConfigListItem - if err := awsRestjson1_deserializeDocumentProvisionedConcurrencyConfigListItem(&col, value); err != nil { + var col types.ProvisionedConcurrencyConfigListItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentProvisionedConcurrencyConfigListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13637,7 +13655,7 @@ func awsRestjson1_deserializeDocumentProvisionedConcurrencyConfigListItem(v **ty if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.FunctionArn = &jtv + sv.FunctionArn = ptr.String(jtv) } case "LastModified": @@ -13646,7 +13664,7 @@ func awsRestjson1_deserializeDocumentProvisionedConcurrencyConfigListItem(v **ty if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.LastModified = &jtv + sv.LastModified = ptr.String(jtv) } case "RequestedProvisionedConcurrentExecutions": @@ -13677,7 +13695,7 @@ func awsRestjson1_deserializeDocumentProvisionedConcurrencyConfigListItem(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } default: @@ -13717,7 +13735,7 @@ func awsRestjson1_deserializeDocumentProvisionedConcurrencyConfigNotFoundExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -13726,7 +13744,7 @@ func awsRestjson1_deserializeDocumentProvisionedConcurrencyConfigNotFoundExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -13766,7 +13784,7 @@ func awsRestjson1_deserializeDocumentRequestTooLargeException(v **types.RequestT if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -13775,7 +13793,7 @@ func awsRestjson1_deserializeDocumentRequestTooLargeException(v **types.RequestT if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -13815,7 +13833,7 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -13824,7 +13842,7 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -13864,7 +13882,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -13873,7 +13891,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -13913,7 +13931,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -13922,7 +13940,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -13962,7 +13980,7 @@ func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -13971,7 +13989,7 @@ func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -13983,7 +14001,7 @@ func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13996,21 +14014,21 @@ func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14047,7 +14065,7 @@ func awsRestjson1_deserializeDocumentServiceException(v **types.ServiceException if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -14056,7 +14074,7 @@ func awsRestjson1_deserializeDocumentServiceException(v **types.ServiceException if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -14068,7 +14086,7 @@ func awsRestjson1_deserializeDocumentServiceException(v **types.ServiceException return nil } -func awsRestjson1_deserializeDocumentSubnetIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSubnetIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14081,21 +14099,21 @@ func awsRestjson1_deserializeDocumentSubnetIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14132,7 +14150,7 @@ func awsRestjson1_deserializeDocumentSubnetIPAddressLimitReachedException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -14141,7 +14159,7 @@ func awsRestjson1_deserializeDocumentSubnetIPAddressLimitReachedException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -14153,7 +14171,7 @@ func awsRestjson1_deserializeDocumentSubnetIPAddressLimitReachedException(v **ty return nil } -func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14166,21 +14184,21 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -14217,7 +14235,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Reason": @@ -14235,7 +14253,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RetryAfterSeconds = &jtv + sv.RetryAfterSeconds = ptr.String(jtv) } case "Type": @@ -14244,7 +14262,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -14256,7 +14274,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR return nil } -func awsRestjson1_deserializeDocumentTopics(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTopics(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14269,21 +14287,21 @@ func awsRestjson1_deserializeDocumentTopics(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Topic to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14360,7 +14378,7 @@ func awsRestjson1_deserializeDocumentUnsupportedMediaTypeException(v **types.Uns if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -14369,7 +14387,7 @@ func awsRestjson1_deserializeDocumentUnsupportedMediaTypeException(v **types.Uns if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -14419,7 +14437,7 @@ func awsRestjson1_deserializeDocumentVpcConfigResponse(v **types.VpcConfigRespon if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: diff --git a/service/lambda/go.mod b/service/lambda/go.mod index b7292263fb9..2bbc5e6e80c 100644 --- a/service/lambda/go.mod +++ b/service/lambda/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/lambda go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/lambda/serializers.go b/service/lambda/serializers.go index 71622e954db..09b523aa4b8 100644 --- a/service/lambda/serializers.go +++ b/service/lambda/serializers.go @@ -77,13 +77,10 @@ func awsRestjson1_serializeOpHttpBindingsAddLayerVersionPermissionInput(v *AddLa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LayerName == nil { + if v.LayerName == nil || len(*v.LayerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} } if v.LayerName != nil { - if len(*v.LayerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} - } if err := encoder.SetURI("LayerName").String(*v.LayerName); err != nil { return err } @@ -93,11 +90,11 @@ func awsRestjson1_serializeOpHttpBindingsAddLayerVersionPermissionInput(v *AddLa encoder.SetQuery("RevisionId").String(*v.RevisionId) } - if v.VersionNumber == nil { + if v.VersionNumber == 0 { 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 { + if v.VersionNumber != 0 { + if err := encoder.SetURI("VersionNumber").Long(v.VersionNumber); err != nil { return err } } @@ -194,13 +191,10 @@ func awsRestjson1_serializeOpHttpBindingsAddPermissionInput(v *AddPermissionInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -317,13 +311,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateAliasInput(v *CreateAliasInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -623,9 +614,9 @@ func awsRestjson1_serializeOpDocumentCreateFunctionInput(v *CreateFunctionInput, ok.Integer(*v.MemorySize) } - if v.Publish != nil { + if v.Publish { ok := object.Key("Publish") - ok.Boolean(*v.Publish) + ok.Boolean(v.Publish) } if v.Role != nil { @@ -718,25 +709,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAliasInput(v *DeleteAliasInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -796,13 +781,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteEventSourceMappingInput(v *Delete return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.UUID == nil { + if v.UUID == nil || len(*v.UUID) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UUID must not be empty")} } if v.UUID != nil { - if len(*v.UUID) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UUID must not be empty")} - } if err := encoder.SetURI("UUID").String(*v.UUID); err != nil { return err } @@ -862,13 +844,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFunctionInput(v *DeleteFunctionIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -932,13 +911,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFunctionConcurrencyInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -998,13 +974,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFunctionEventInvokeConfigInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -1068,23 +1041,20 @@ func awsRestjson1_serializeOpHttpBindingsDeleteLayerVersionInput(v *DeleteLayerV return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LayerName == nil { + if v.LayerName == nil || len(*v.LayerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} } if v.LayerName != nil { - if len(*v.LayerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} - } if err := encoder.SetURI("LayerName").String(*v.LayerName); err != nil { return err } } - if v.VersionNumber == nil { + if v.VersionNumber == 0 { 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 { + if v.VersionNumber != 0 { + if err := encoder.SetURI("VersionNumber").Long(v.VersionNumber); err != nil { return err } } @@ -1143,13 +1113,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteProvisionedConcurrencyConfigInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -1263,25 +1230,19 @@ func awsRestjson1_serializeOpHttpBindingsGetAliasInput(v *GetAliasInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -1341,13 +1302,10 @@ func awsRestjson1_serializeOpHttpBindingsGetEventSourceMappingInput(v *GetEventS return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.UUID == nil { + if v.UUID == nil || len(*v.UUID) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UUID must not be empty")} } if v.UUID != nil { - if len(*v.UUID) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UUID must not be empty")} - } if err := encoder.SetURI("UUID").String(*v.UUID); err != nil { return err } @@ -1407,13 +1365,10 @@ func awsRestjson1_serializeOpHttpBindingsGetFunctionInput(v *GetFunctionInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -1477,13 +1432,10 @@ func awsRestjson1_serializeOpHttpBindingsGetFunctionConcurrencyInput(v *GetFunct return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -1543,13 +1495,10 @@ func awsRestjson1_serializeOpHttpBindingsGetFunctionConfigurationInput(v *GetFun return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -1613,13 +1562,10 @@ func awsRestjson1_serializeOpHttpBindingsGetFunctionEventInvokeConfigInput(v *Ge return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -1683,23 +1629,20 @@ func awsRestjson1_serializeOpHttpBindingsGetLayerVersionInput(v *GetLayerVersion return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LayerName == nil { + if v.LayerName == nil || len(*v.LayerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} } if v.LayerName != nil { - if len(*v.LayerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} - } if err := encoder.SetURI("LayerName").String(*v.LayerName); err != nil { return err } } - if v.VersionNumber == nil { + if v.VersionNumber == 0 { 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 { + if v.VersionNumber != 0 { + if err := encoder.SetURI("VersionNumber").Long(v.VersionNumber); err != nil { return err } } @@ -1816,23 +1759,20 @@ func awsRestjson1_serializeOpHttpBindingsGetLayerVersionPolicyInput(v *GetLayerV return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LayerName == nil { + if v.LayerName == nil || len(*v.LayerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} } if v.LayerName != nil { - if len(*v.LayerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} - } if err := encoder.SetURI("LayerName").String(*v.LayerName); err != nil { return err } } - if v.VersionNumber == nil { + if v.VersionNumber == 0 { 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 { + if v.VersionNumber != 0 { + if err := encoder.SetURI("VersionNumber").Long(v.VersionNumber); err != nil { return err } } @@ -1891,13 +1831,10 @@ func awsRestjson1_serializeOpHttpBindingsGetPolicyInput(v *GetPolicyInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -1961,13 +1898,10 @@ func awsRestjson1_serializeOpHttpBindingsGetProvisionedConcurrencyConfigInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -2042,20 +1976,15 @@ func awsRestjson1_serializeOpHttpBindingsInvokeInput(v *InvokeInput, encoder *ht return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ClientContext != nil { + if v.ClientContext != nil && len(*v.ClientContext) > 0 { locationName := "X-Amz-Client-Context" - if len(*v.ClientContext) > 0 { - encoder.SetHeader(locationName).String(*v.ClientContext) - } + encoder.SetHeader(locationName).String(*v.ClientContext) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -2140,13 +2069,10 @@ func awsRestjson1_serializeOpHttpBindingsInvokeAsyncInput(v *InvokeAsyncInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -2206,13 +2132,10 @@ func awsRestjson1_serializeOpHttpBindingsListAliasesInput(v *ListAliasesInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -2354,13 +2277,10 @@ func awsRestjson1_serializeOpHttpBindingsListFunctionEventInvokeConfigsInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -2568,13 +2488,10 @@ func awsRestjson1_serializeOpHttpBindingsListLayerVersionsInput(v *ListLayerVers encoder.SetQuery("CompatibleRuntime").String(string(v.CompatibleRuntime)) } - if v.LayerName == nil { + if v.LayerName == nil || len(*v.LayerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} } if v.LayerName != nil { - if len(*v.LayerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} - } if err := encoder.SetURI("LayerName").String(*v.LayerName); err != nil { return err } @@ -2642,13 +2559,10 @@ func awsRestjson1_serializeOpHttpBindingsListProvisionedConcurrencyConfigsInput( return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -2716,13 +2630,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsInput(v *ListTagsInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Resource == nil { + if v.Resource == nil || len(*v.Resource) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Resource must not be empty")} } if v.Resource != nil { - if len(*v.Resource) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Resource must not be empty")} - } if err := encoder.SetURI("Resource").String(*v.Resource); err != nil { return err } @@ -2782,13 +2693,10 @@ func awsRestjson1_serializeOpHttpBindingsListVersionsByFunctionInput(v *ListVers return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -2867,13 +2775,10 @@ func awsRestjson1_serializeOpHttpBindingsPublishLayerVersionInput(v *PublishLaye return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LayerName == nil { + if v.LayerName == nil || len(*v.LayerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} } if v.LayerName != nil { - if len(*v.LayerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} - } if err := encoder.SetURI("LayerName").String(*v.LayerName); err != nil { return err } @@ -2975,13 +2880,10 @@ func awsRestjson1_serializeOpHttpBindingsPublishVersionInput(v *PublishVersionIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -3074,13 +2976,10 @@ func awsRestjson1_serializeOpHttpBindingsPutFunctionConcurrencyInput(v *PutFunct return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -3163,13 +3062,10 @@ func awsRestjson1_serializeOpHttpBindingsPutFunctionEventInvokeConfigInput(v *Pu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -3268,13 +3164,10 @@ func awsRestjson1_serializeOpHttpBindingsPutProvisionedConcurrencyConfigInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -3350,13 +3243,10 @@ func awsRestjson1_serializeOpHttpBindingsRemoveLayerVersionPermissionInput(v *Re return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LayerName == nil { + if v.LayerName == nil || len(*v.LayerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} } if v.LayerName != nil { - if len(*v.LayerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LayerName must not be empty")} - } if err := encoder.SetURI("LayerName").String(*v.LayerName); err != nil { return err } @@ -3366,23 +3256,20 @@ func awsRestjson1_serializeOpHttpBindingsRemoveLayerVersionPermissionInput(v *Re encoder.SetQuery("RevisionId").String(*v.RevisionId) } - if v.StatementId == nil { + if v.StatementId == nil || len(*v.StatementId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member StatementId must not be empty")} } if v.StatementId != nil { - if len(*v.StatementId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member StatementId must not be empty")} - } if err := encoder.SetURI("StatementId").String(*v.StatementId); err != nil { return err } } - if v.VersionNumber == nil { + if v.VersionNumber == 0 { 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 { + if v.VersionNumber != 0 { + if err := encoder.SetURI("VersionNumber").Long(v.VersionNumber); err != nil { return err } } @@ -3441,13 +3328,10 @@ func awsRestjson1_serializeOpHttpBindingsRemovePermissionInput(v *RemovePermissi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -3461,13 +3345,10 @@ func awsRestjson1_serializeOpHttpBindingsRemovePermissionInput(v *RemovePermissi encoder.SetQuery("RevisionId").String(*v.RevisionId) } - if v.StatementId == nil { + if v.StatementId == nil || len(*v.StatementId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member StatementId must not be empty")} } if v.StatementId != nil { - if len(*v.StatementId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member StatementId must not be empty")} - } if err := encoder.SetURI("StatementId").String(*v.StatementId); err != nil { return err } @@ -3538,13 +3419,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Resource == nil { + if v.Resource == nil || len(*v.Resource) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Resource must not be empty")} } if v.Resource != nil { - if len(*v.Resource) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Resource must not be empty")} - } if err := encoder.SetURI("Resource").String(*v.Resource); err != nil { return err } @@ -3618,13 +3496,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Resource == nil { + if v.Resource == nil || len(*v.Resource) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Resource must not be empty")} } if v.Resource != nil { - if len(*v.Resource) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Resource must not be empty")} - } if err := encoder.SetURI("Resource").String(*v.Resource); err != nil { return err } @@ -3632,10 +3507,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -3704,25 +3576,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAliasInput(v *UpdateAliasInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -3822,13 +3688,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateEventSourceMappingInput(v *Update return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.UUID == nil { + if v.UUID == nil || len(*v.UUID) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UUID must not be empty")} } if v.UUID != nil { - if len(*v.UUID) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UUID must not be empty")} - } if err := encoder.SetURI("UUID").String(*v.UUID); err != nil { return err } @@ -3953,13 +3816,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFunctionCodeInput(v *UpdateFuncti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -3972,14 +3832,14 @@ func awsRestjson1_serializeOpDocumentUpdateFunctionCodeInput(v *UpdateFunctionCo object := value.Object() defer object.Close() - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } - if v.Publish != nil { + if v.Publish { ok := object.Key("Publish") - ok.Boolean(*v.Publish) + ok.Boolean(v.Publish) } if v.RevisionId != nil { @@ -4072,13 +3932,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFunctionConfigurationInput(v *Upd return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -4238,13 +4095,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFunctionEventInvokeConfigInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FunctionName == nil { + if v.FunctionName == nil || len(*v.FunctionName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} } if v.FunctionName != nil { - if len(*v.FunctionName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} - } if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { return err } @@ -4281,17 +4135,13 @@ func awsRestjson1_serializeOpDocumentUpdateFunctionEventInvokeConfigInput(v *Upd return nil } -func awsRestjson1_serializeDocumentAdditionalVersionWeights(v map[string]*float64, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAdditionalVersionWeights(v map[string]float64, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.Double(*v[key]) + om.Double(v[key]) } return nil } @@ -4368,17 +4218,13 @@ func awsRestjson1_serializeDocumentEnvironment(v *types.Environment, value smith return nil } -func awsRestjson1_serializeDocumentEnvironmentVariables(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEnvironmentVariables(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -4400,17 +4246,13 @@ func awsRestjson1_serializeDocumentFileSystemConfig(v *types.FileSystemConfig, v return nil } -func awsRestjson1_serializeDocumentFileSystemConfigList(v []*types.FileSystemConfig, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFileSystemConfigList(v []types.FileSystemConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentFileSystemConfig(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFileSystemConfig(&v[i], av); err != nil { return err } } @@ -4444,17 +4286,13 @@ func awsRestjson1_serializeDocumentFunctionCode(v *types.FunctionCode, value smi return nil } -func awsRestjson1_serializeDocumentLayerList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLayerList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4510,62 +4348,46 @@ func awsRestjson1_serializeDocumentOnSuccess(v *types.OnSuccess, value smithyjso return nil } -func awsRestjson1_serializeDocumentSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentSubnetIds(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSubnetIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentTopics(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopics(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/lambda/types/types.go b/service/lambda/types/types.go index 3d1fc761d67..1d636216649 100644 --- a/service/lambda/types/types.go +++ b/service/lambda/types/types.go @@ -12,18 +12,18 @@ type AccountLimit struct { // The maximum size of a function's deployment package and layers when they're // extracted. - CodeSizeUnzipped *int64 + CodeSizeUnzipped int64 // The maximum size of a deployment package when it's uploaded directly to AWS // Lambda. Use Amazon S3 for larger files. - CodeSizeZipped *int64 + CodeSizeZipped int64 // The maximum number of simultaneous function executions. - ConcurrentExecutions *int32 + ConcurrentExecutions int32 // The amount of storage space that you can use for all deployment packages and // layer archives. - TotalCodeSize *int64 + TotalCodeSize int64 // The maximum number of simultaneous function executions, minus the capacity // that's reserved for individual functions with PutFunctionConcurrency. @@ -34,11 +34,11 @@ type AccountLimit struct { type AccountUsage struct { // The number of Lambda functions. - FunctionCount *int64 + FunctionCount int64 // The amount of storage space, in bytes, that's being used by deployment packages // and layer archives. - TotalCodeSize *int64 + TotalCodeSize int64 } // Provides configuration information about a Lambda function alias @@ -72,7 +72,7 @@ type AliasConfiguration struct { type AliasRoutingConfiguration struct { // The second version, and the percentage of traffic that's routed to it. - AdditionalVersionWeights map[string]*float64 + AdditionalVersionWeights map[string]float64 } type Concurrency struct { @@ -107,7 +107,7 @@ type DestinationConfig struct { type Environment struct { // Environment variable key-value pairs. - Variables map[string]*string + Variables map[string]string } // Error messages for environment variables that couldn't be applied. @@ -129,7 +129,7 @@ type EnvironmentResponse struct { Error *EnvironmentError // Environment variable key-value pairs. - Variables map[string]*string + Variables map[string]string } // A mapping between an AWS resource and an AWS Lambda function. See @@ -182,7 +182,7 @@ type EventSourceMappingConfiguration struct { StateTransitionReason *string // (MSK) The name of the Kafka topic. - Topics []*string + Topics []string // The identifier of the event source mapping. UUID *string @@ -240,7 +240,7 @@ type FunctionConfiguration struct { CodeSha256 *string // The size of the function's deployment package, in bytes. - CodeSize *int64 + CodeSize int64 // The function's dead letter queue. DeadLetterConfig *DeadLetterConfig @@ -252,7 +252,7 @@ type FunctionConfiguration struct { Environment *EnvironmentResponse // Connection settings for an Amazon EFS file system. - FileSystemConfigs []*FileSystemConfig + FileSystemConfigs []FileSystemConfig // The function's Amazon Resource Name (ARN). FunctionArn *string @@ -283,7 +283,7 @@ type FunctionConfiguration struct { // The function's layers // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). - Layers []*Layer + Layers []Layer // For Lambda@Edge functions, the ARN of the master function. MasterArn *string @@ -362,7 +362,7 @@ type Layer struct { Arn *string // The size of the layer archive in bytes. - CodeSize *int64 + CodeSize int64 } // Details about an AWS Lambda layer @@ -406,7 +406,7 @@ type LayerVersionContentOutput struct { CodeSha256 *string // The size of the layer archive in bytes. - CodeSize *int64 + CodeSize int64 // A link to the layer archive in Amazon S3 that is valid for 10 minutes. Location *string @@ -433,7 +433,7 @@ type LayerVersionsListItem struct { LicenseInfo *string // The version number. - Version *int64 + Version int64 } // A destination for events that failed processing. @@ -499,20 +499,20 @@ type TracingConfigResponse struct { type VpcConfig struct { // A list of VPC security groups IDs. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of VPC subnet IDs. - SubnetIds []*string + SubnetIds []string } // The VPC security groups and subnets that are attached to a Lambda function. type VpcConfigResponse struct { // A list of VPC security groups IDs. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of VPC subnet IDs. - SubnetIds []*string + SubnetIds []string // The ID of the VPC. VpcId *string diff --git a/service/lambda/validators.go b/service/lambda/validators.go index 5b731d383db..80dc3c5a35d 100644 --- a/service/lambda/validators.go +++ b/service/lambda/validators.go @@ -1108,13 +1108,13 @@ func validateFileSystemConfig(v *types.FileSystemConfig) error { } } -func validateFileSystemConfigList(v []*types.FileSystemConfig) error { +func validateFileSystemConfigList(v []types.FileSystemConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FileSystemConfigList"} for i := range v { - if err := validateFileSystemConfig(v[i]); err != nil { + if err := validateFileSystemConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1139,9 +1139,6 @@ func validateOpAddLayerVersionPermissionInput(v *AddLayerVersionPermissionInput) if v.LayerName == nil { invalidParams.Add(smithy.NewErrParamRequired("LayerName")) } - if v.VersionNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("VersionNumber")) - } if v.Action == nil { invalidParams.Add(smithy.NewErrParamRequired("Action")) } @@ -1330,9 +1327,6 @@ func validateOpDeleteLayerVersionInput(v *DeleteLayerVersionInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteLayerVersionInput"} - if v.VersionNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("VersionNumber")) - } if v.LayerName == nil { invalidParams.Add(smithy.NewErrParamRequired("LayerName")) } @@ -1474,9 +1468,6 @@ func validateOpGetLayerVersionInput(v *GetLayerVersionInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "GetLayerVersionInput"} - if v.VersionNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("VersionNumber")) - } if v.LayerName == nil { invalidParams.Add(smithy.NewErrParamRequired("LayerName")) } @@ -1492,9 +1483,6 @@ func validateOpGetLayerVersionPolicyInput(v *GetLayerVersionPolicyInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "GetLayerVersionPolicyInput"} - if v.VersionNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("VersionNumber")) - } if v.LayerName == nil { invalidParams.Add(smithy.NewErrParamRequired("LayerName")) } @@ -1753,9 +1741,6 @@ func validateOpRemoveLayerVersionPermissionInput(v *RemoveLayerVersionPermission return nil } invalidParams := smithy.InvalidParamsError{Context: "RemoveLayerVersionPermissionInput"} - if v.VersionNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("VersionNumber")) - } if v.StatementId == nil { invalidParams.Add(smithy.NewErrParamRequired("StatementId")) } diff --git a/service/lexmodelbuildingservice/api_op_CreateBotVersion.go b/service/lexmodelbuildingservice/api_op_CreateBotVersion.go index e81e3430ac1..e19010959b3 100644 --- a/service/lexmodelbuildingservice/api_op_CreateBotVersion.go +++ b/service/lexmodelbuildingservice/api_op_CreateBotVersion.go @@ -110,7 +110,7 @@ type CreateBotVersionOutput struct { IdleSessionTTLInSeconds *int32 // An array of Intent objects. For more information, see PutBot. - Intents []*types.Intent + Intents []types.Intent // The date when the $LATEST version of this bot was updated. LastUpdatedDate *time.Time diff --git a/service/lexmodelbuildingservice/api_op_CreateIntentVersion.go b/service/lexmodelbuildingservice/api_op_CreateIntentVersion.go index 636399dc5ff..06bd49a9f3f 100644 --- a/service/lexmodelbuildingservice/api_op_CreateIntentVersion.go +++ b/service/lexmodelbuildingservice/api_op_CreateIntentVersion.go @@ -99,11 +99,11 @@ type CreateIntentVersionOutput struct { RejectionStatement *types.Statement // An array of sample utterances configured for the intent. - SampleUtterances []*string + SampleUtterances []string // An array of slot types that defines the information required to fulfill the // intent. - Slots []*types.Slot + Slots []types.Slot // The version number assigned to the new version of the intent. Version *string diff --git a/service/lexmodelbuildingservice/api_op_CreateSlotTypeVersion.go b/service/lexmodelbuildingservice/api_op_CreateSlotTypeVersion.go index a0121a0254b..272abe268d3 100644 --- a/service/lexmodelbuildingservice/api_op_CreateSlotTypeVersion.go +++ b/service/lexmodelbuildingservice/api_op_CreateSlotTypeVersion.go @@ -65,7 +65,7 @@ type CreateSlotTypeVersionOutput struct { // A list of EnumerationValue objects that defines the values that the slot type // can take. - EnumerationValues []*types.EnumerationValue + EnumerationValues []types.EnumerationValue // The date that the slot type was updated. When you create a resource, the // creation date and last update date are the same. @@ -78,7 +78,7 @@ type CreateSlotTypeVersionOutput struct { ParentSlotTypeSignature *string // Configuration information that extends the parent built-in slot type. - SlotTypeConfigurations []*types.SlotTypeConfiguration + SlotTypeConfigurations []types.SlotTypeConfiguration // The strategy that Amazon Lex uses to determine the value of the slot. For more // information, see PutSlotType. diff --git a/service/lexmodelbuildingservice/api_op_GetBot.go b/service/lexmodelbuildingservice/api_op_GetBot.go index 9bff3790e92..7910c784a5a 100644 --- a/service/lexmodelbuildingservice/api_op_GetBot.go +++ b/service/lexmodelbuildingservice/api_op_GetBot.go @@ -102,7 +102,7 @@ type GetBotOutput struct { IdleSessionTTLInSeconds *int32 // An array of intent objects. For more information, see PutBot. - Intents []*types.Intent + Intents []types.Intent // The date that the bot was updated. When you create a resource, the creation date // and last updated date are the same. @@ -122,7 +122,7 @@ type GetBotOutput struct { // response. AMAZON.FallbackIntent is inserted if the confidence score for all // intents is below this value. AMAZON.KendraSearchIntent is only inserted if it is // configured for the bot. - NluIntentConfidenceThreshold *float64 + NluIntentConfidenceThreshold float64 // The status of the bot. When the status is BUILDING Amazon Lex is building the // bot for testing and use. If the status of the bot is READY_BASIC_TESTING, you diff --git a/service/lexmodelbuildingservice/api_op_GetBotAliases.go b/service/lexmodelbuildingservice/api_op_GetBotAliases.go index ac2c1c0e59b..abc47c6dbc6 100644 --- a/service/lexmodelbuildingservice/api_op_GetBotAliases.go +++ b/service/lexmodelbuildingservice/api_op_GetBotAliases.go @@ -53,7 +53,7 @@ type GetBotAliasesInput struct { type GetBotAliasesOutput struct { // An array of BotAliasMetadata objects, each describing a bot alias. - BotAliases []*types.BotAliasMetadata + BotAliases []types.BotAliasMetadata // A pagination token for fetching next page of aliases. If the response to this // call is truncated, Amazon Lex returns a pagination token in the response. To diff --git a/service/lexmodelbuildingservice/api_op_GetBotChannelAssociation.go b/service/lexmodelbuildingservice/api_op_GetBotChannelAssociation.go index 078f80b6f86..a8e52957f8f 100644 --- a/service/lexmodelbuildingservice/api_op_GetBotChannelAssociation.go +++ b/service/lexmodelbuildingservice/api_op_GetBotChannelAssociation.go @@ -58,7 +58,7 @@ type GetBotChannelAssociationOutput struct { // Provides information that the messaging platform needs to communicate with the // Amazon Lex bot. - BotConfiguration map[string]*string + BotConfiguration map[string]string // The name of the Amazon Lex bot. BotName *string diff --git a/service/lexmodelbuildingservice/api_op_GetBotChannelAssociations.go b/service/lexmodelbuildingservice/api_op_GetBotChannelAssociations.go index 4bdcdf617c7..dd535c62093 100644 --- a/service/lexmodelbuildingservice/api_op_GetBotChannelAssociations.go +++ b/service/lexmodelbuildingservice/api_op_GetBotChannelAssociations.go @@ -62,7 +62,7 @@ type GetBotChannelAssociationsOutput struct { // An array of objects, one for each association, that provides information about // the Amazon Lex bot and its association with the channel. - BotChannelAssociations []*types.BotChannelAssociation + BotChannelAssociations []types.BotChannelAssociation // A pagination token that fetches the next page of associations. If the response // to this call is truncated, Amazon Lex returns a pagination token in the diff --git a/service/lexmodelbuildingservice/api_op_GetBotVersions.go b/service/lexmodelbuildingservice/api_op_GetBotVersions.go index 4ce84dd7535..8a24159342d 100644 --- a/service/lexmodelbuildingservice/api_op_GetBotVersions.go +++ b/service/lexmodelbuildingservice/api_op_GetBotVersions.go @@ -54,7 +54,7 @@ type GetBotVersionsOutput struct { // An array of BotMetadata objects, one for each numbered version of the bot plus // one for the $LATEST version. - Bots []*types.BotMetadata + Bots []types.BotMetadata // A pagination token for fetching the next page of bot versions. If the response // to this call is truncated, Amazon Lex returns a pagination token in the diff --git a/service/lexmodelbuildingservice/api_op_GetBots.go b/service/lexmodelbuildingservice/api_op_GetBots.go index c10653f7135..a77fe27ed05 100644 --- a/service/lexmodelbuildingservice/api_op_GetBots.go +++ b/service/lexmodelbuildingservice/api_op_GetBots.go @@ -56,7 +56,7 @@ type GetBotsInput struct { type GetBotsOutput struct { // An array of botMetadata objects, with one entry for each bot. - Bots []*types.BotMetadata + Bots []types.BotMetadata // If the response is truncated, it includes a pagination token that you can // specify in your next request to fetch the next page of bots. diff --git a/service/lexmodelbuildingservice/api_op_GetBuiltinIntent.go b/service/lexmodelbuildingservice/api_op_GetBuiltinIntent.go index 73f6f933115..02d4b0752d2 100644 --- a/service/lexmodelbuildingservice/api_op_GetBuiltinIntent.go +++ b/service/lexmodelbuildingservice/api_op_GetBuiltinIntent.go @@ -46,7 +46,7 @@ type GetBuiltinIntentOutput struct { // An array of BuiltinIntentSlot objects, one entry for each slot type in the // intent. - Slots []*types.BuiltinIntentSlot + Slots []types.BuiltinIntentSlot // A list of locales that the intent supports. SupportedLocales []types.Locale diff --git a/service/lexmodelbuildingservice/api_op_GetBuiltinIntents.go b/service/lexmodelbuildingservice/api_op_GetBuiltinIntents.go index aa0807605a7..4eb55d69310 100644 --- a/service/lexmodelbuildingservice/api_op_GetBuiltinIntents.go +++ b/service/lexmodelbuildingservice/api_op_GetBuiltinIntents.go @@ -53,7 +53,7 @@ type GetBuiltinIntentsInput struct { type GetBuiltinIntentsOutput struct { // An array of builtinIntentMetadata objects, one for each intent in the response. - Intents []*types.BuiltinIntentMetadata + Intents []types.BuiltinIntentMetadata // A pagination token that fetches the next page of intents. If the response to // this API call is truncated, Amazon Lex returns a pagination token in the diff --git a/service/lexmodelbuildingservice/api_op_GetBuiltinSlotTypes.go b/service/lexmodelbuildingservice/api_op_GetBuiltinSlotTypes.go index ee9339a5da5..591d6bf26f1 100644 --- a/service/lexmodelbuildingservice/api_op_GetBuiltinSlotTypes.go +++ b/service/lexmodelbuildingservice/api_op_GetBuiltinSlotTypes.go @@ -59,7 +59,7 @@ type GetBuiltinSlotTypesOutput struct { // An array of BuiltInSlotTypeMetadata objects, one entry for each slot type // returned. - SlotTypes []*types.BuiltinSlotTypeMetadata + SlotTypes []types.BuiltinSlotTypeMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lexmodelbuildingservice/api_op_GetImport.go b/service/lexmodelbuildingservice/api_op_GetImport.go index 32860f2d1c5..5017c9c4f29 100644 --- a/service/lexmodelbuildingservice/api_op_GetImport.go +++ b/service/lexmodelbuildingservice/api_op_GetImport.go @@ -42,7 +42,7 @@ type GetImportOutput struct { CreatedDate *time.Time // A string that describes why an import job failed to complete. - FailureReason []*string + FailureReason []string // The identifier for the specific import job. ImportId *string diff --git a/service/lexmodelbuildingservice/api_op_GetIntent.go b/service/lexmodelbuildingservice/api_op_GetIntent.go index ea7c38c608e..5cf76f414b9 100644 --- a/service/lexmodelbuildingservice/api_op_GetIntent.go +++ b/service/lexmodelbuildingservice/api_op_GetIntent.go @@ -92,10 +92,10 @@ type GetIntentOutput struct { RejectionStatement *types.Statement // An array of sample utterances configured for the intent. - SampleUtterances []*string + SampleUtterances []string // An array of intent slots configured for the intent. - Slots []*types.Slot + Slots []types.Slot // The version of the intent. Version *string diff --git a/service/lexmodelbuildingservice/api_op_GetIntentVersions.go b/service/lexmodelbuildingservice/api_op_GetIntentVersions.go index 39c44ff1cc5..4d7811dfa71 100644 --- a/service/lexmodelbuildingservice/api_op_GetIntentVersions.go +++ b/service/lexmodelbuildingservice/api_op_GetIntentVersions.go @@ -55,7 +55,7 @@ type GetIntentVersionsOutput struct { // An array of IntentMetadata objects, one for each numbered version of the intent // plus one for the $LATEST version. - Intents []*types.IntentMetadata + Intents []types.IntentMetadata // A pagination token for fetching the next page of intent versions. If the // response to this call is truncated, Amazon Lex returns a pagination token in the diff --git a/service/lexmodelbuildingservice/api_op_GetIntents.go b/service/lexmodelbuildingservice/api_op_GetIntents.go index 5b4a1e7a236..09287d3e1ea 100644 --- a/service/lexmodelbuildingservice/api_op_GetIntents.go +++ b/service/lexmodelbuildingservice/api_op_GetIntents.go @@ -57,7 +57,7 @@ type GetIntentsInput struct { type GetIntentsOutput struct { // An array of Intent objects. For more information, see PutBot. - Intents []*types.IntentMetadata + Intents []types.IntentMetadata // If the response is truncated, the response includes a pagination token that you // can specify in your next request to fetch the next page of intents. diff --git a/service/lexmodelbuildingservice/api_op_GetSlotType.go b/service/lexmodelbuildingservice/api_op_GetSlotType.go index e951061c0e6..b59497d700c 100644 --- a/service/lexmodelbuildingservice/api_op_GetSlotType.go +++ b/service/lexmodelbuildingservice/api_op_GetSlotType.go @@ -56,7 +56,7 @@ type GetSlotTypeOutput struct { // A list of EnumerationValue objects that defines the values that the slot type // can take. - EnumerationValues []*types.EnumerationValue + EnumerationValues []types.EnumerationValue // The date that the slot type was updated. When you create a resource, the // creation date and last update date are the same. @@ -69,7 +69,7 @@ type GetSlotTypeOutput struct { ParentSlotTypeSignature *string // Configuration information that extends the parent built-in slot type. - SlotTypeConfigurations []*types.SlotTypeConfiguration + SlotTypeConfigurations []types.SlotTypeConfiguration // The strategy that Amazon Lex uses to determine the value of the slot. For more // information, see PutSlotType. diff --git a/service/lexmodelbuildingservice/api_op_GetSlotTypeVersions.go b/service/lexmodelbuildingservice/api_op_GetSlotTypeVersions.go index 2cca801502c..990e9f32570 100644 --- a/service/lexmodelbuildingservice/api_op_GetSlotTypeVersions.go +++ b/service/lexmodelbuildingservice/api_op_GetSlotTypeVersions.go @@ -61,7 +61,7 @@ type GetSlotTypeVersionsOutput struct { // An array of SlotTypeMetadata objects, one for each numbered version of the slot // type plus one for the $LATEST version. - SlotTypes []*types.SlotTypeMetadata + SlotTypes []types.SlotTypeMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lexmodelbuildingservice/api_op_GetSlotTypes.go b/service/lexmodelbuildingservice/api_op_GetSlotTypes.go index 8c5595d7f80..8b64aa71f64 100644 --- a/service/lexmodelbuildingservice/api_op_GetSlotTypes.go +++ b/service/lexmodelbuildingservice/api_op_GetSlotTypes.go @@ -62,7 +62,7 @@ type GetSlotTypesOutput struct { // An array of objects, one for each slot type, that provides information such as // the name of the slot type, the version, and a description. - SlotTypes []*types.SlotTypeMetadata + SlotTypes []types.SlotTypeMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lexmodelbuildingservice/api_op_GetUtterancesView.go b/service/lexmodelbuildingservice/api_op_GetUtterancesView.go index 4483fb9fa92..71e8106a10c 100644 --- a/service/lexmodelbuildingservice/api_op_GetUtterancesView.go +++ b/service/lexmodelbuildingservice/api_op_GetUtterancesView.go @@ -55,7 +55,7 @@ type GetUtterancesViewInput struct { // limit is 5 versions per request. // // This member is required. - BotVersions []*string + BotVersions []string // To return utterances that were recognized and handled, use Detected. To return // utterances that were not recognized, use Missed. @@ -73,7 +73,7 @@ type GetUtterancesViewOutput struct { // objects describing the utterances that were processed by your bot. The response // contains a maximum of 100 UtteranceData objects for each version. Amazon Lex // returns the most frequent utterances received by the bot in the last 15 days. - Utterances []*types.UtteranceList + Utterances []types.UtteranceList // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lexmodelbuildingservice/api_op_ListTagsForResource.go b/service/lexmodelbuildingservice/api_op_ListTagsForResource.go index bbbaa82bd79..a3f0c244428 100644 --- a/service/lexmodelbuildingservice/api_op_ListTagsForResource.go +++ b/service/lexmodelbuildingservice/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags associated with a resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lexmodelbuildingservice/api_op_PutBot.go b/service/lexmodelbuildingservice/api_op_PutBot.go index b16af2e8951..aecf821c492 100644 --- a/service/lexmodelbuildingservice/api_op_PutBot.go +++ b/service/lexmodelbuildingservice/api_op_PutBot.go @@ -195,7 +195,7 @@ type PutBotInput struct { // An array of Intent objects. Each intent represents a command that a user can // express. For example, a pizza ordering bot might support an OrderPizza intent. // For more information, see how-it-works. - Intents []*types.Intent + Intents []types.Intent // Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, // AMAZON.KendraSearchIntent, or both when returning alternative intents in a @@ -231,7 +231,7 @@ type PutBotInput struct { // * IntentB // // * IntentC - NluIntentConfidenceThreshold *float64 + NluIntentConfidenceThreshold float64 // If you set the processBehavior element to BUILD, Amazon Lex builds the bot so // that it can be run. If you set the element to SAVE Amazon Lex saves the bot, but @@ -241,7 +241,7 @@ type PutBotInput struct { // A list of tags to add to the bot. You can only add tags when you create a bot, // you can't use the PutBot operation to update the tags on a bot. To update tags, // use the TagResource operation. - Tags []*types.Tag + Tags []types.Tag // The Amazon Polly voice ID that you want Amazon Lex to use for voice interactions // with the user. The locale configured for the voice must match the locale of the @@ -316,7 +316,7 @@ type PutBotOutput struct { IdleSessionTTLInSeconds *int32 // An array of Intent objects. For more information, see PutBot. - Intents []*types.Intent + Intents []types.Intent // The date that the bot was updated. When you create a resource, the creation date // and last updated date are the same. @@ -336,7 +336,7 @@ type PutBotOutput struct { // response. AMAZON.FallbackIntent is inserted if the confidence score for all // intents is below this value. AMAZON.KendraSearchIntent is only inserted if it is // configured for the bot. - NluIntentConfidenceThreshold *float64 + NluIntentConfidenceThreshold float64 // When you send a request to create a bot with processBehavior set to BUILD, // Amazon Lex sets the status response element to BUILDING. In the @@ -350,7 +350,7 @@ type PutBotOutput struct { Status types.Status // A list of tags associated with the bot. - Tags []*types.Tag + Tags []types.Tag // The version of the bot. For a new bot, the version is always $LATEST. Version *string diff --git a/service/lexmodelbuildingservice/api_op_PutBotAlias.go b/service/lexmodelbuildingservice/api_op_PutBotAlias.go index 856a2157d25..ce4b9e9106e 100644 --- a/service/lexmodelbuildingservice/api_op_PutBotAlias.go +++ b/service/lexmodelbuildingservice/api_op_PutBotAlias.go @@ -65,7 +65,7 @@ type PutBotAliasInput struct { // A list of tags to add to the bot alias. You can only add tags when you create an // alias, you can't use the PutBotAlias operation to update the tags on a bot // alias. To update tags, use the TagResource operation. - Tags []*types.Tag + Tags []types.Tag } type PutBotAliasOutput struct { @@ -96,7 +96,7 @@ type PutBotAliasOutput struct { Name *string // A list of tags associated with a bot. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lexmodelbuildingservice/api_op_PutIntent.go b/service/lexmodelbuildingservice/api_op_PutIntent.go index c8a32870c1f..08c0dfe9be0 100644 --- a/service/lexmodelbuildingservice/api_op_PutIntent.go +++ b/service/lexmodelbuildingservice/api_op_PutIntent.go @@ -178,12 +178,12 @@ type PutIntentInput struct { // An array of utterances (strings) that a user might say to signal the intent. For // example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In // each utterance, a slot name is enclosed in curly braces. - SampleUtterances []*string + SampleUtterances []string // An array of intent slots. At runtime, Amazon Lex elicits required slot values // from the user using prompts defined in the slots. For more information, see // how-it-works. - Slots []*types.Slot + Slots []types.Slot } type PutIntentOutput struct { @@ -241,10 +241,10 @@ type PutIntentOutput struct { RejectionStatement *types.Statement // An array of sample utterances that are configured for the intent. - SampleUtterances []*string + SampleUtterances []string // An array of intent slots that are configured for the intent. - Slots []*types.Slot + Slots []types.Slot // The version of the intent. For a new intent, the version is always $LATEST. Version *string diff --git a/service/lexmodelbuildingservice/api_op_PutSlotType.go b/service/lexmodelbuildingservice/api_op_PutSlotType.go index db3f6423bbe..26985b213b0 100644 --- a/service/lexmodelbuildingservice/api_op_PutSlotType.go +++ b/service/lexmodelbuildingservice/api_op_PutSlotType.go @@ -77,7 +77,7 @@ type PutSlotTypeInput struct { // passed to the function. If you are not using a Lambda function you can choose to // return the value that the user entered or the first value in the resolution list // as the slot value. The valueSelectionStrategy field indicates the option to use. - EnumerationValues []*types.EnumerationValue + EnumerationValues []types.EnumerationValue // The built-in slot type used as the parent of the slot type. When you define a // parent slot type, the new slot type has all of the same configuration as the @@ -86,7 +86,7 @@ type PutSlotTypeInput struct { // Configuration information that extends the parent built-in slot type. The // configuration is added to the settings for the parent slot type. - SlotTypeConfigurations []*types.SlotTypeConfiguration + SlotTypeConfigurations []types.SlotTypeConfiguration // Determines the slot resolution strategy that Amazon Lex uses to return slot type // values. The field can be set to one of the following values: @@ -122,7 +122,7 @@ type PutSlotTypeOutput struct { // A list of EnumerationValue objects that defines the values that the slot type // can take. - EnumerationValues []*types.EnumerationValue + EnumerationValues []types.EnumerationValue // The date that the slot type was updated. When you create a slot type, the // creation date and last update date are the same. @@ -135,7 +135,7 @@ type PutSlotTypeOutput struct { ParentSlotTypeSignature *string // Configuration information that extends the parent built-in slot type. - SlotTypeConfigurations []*types.SlotTypeConfiguration + SlotTypeConfigurations []types.SlotTypeConfiguration // The slot resolution strategy that Amazon Lex uses to determine the value of the // slot. For more information, see PutSlotType. diff --git a/service/lexmodelbuildingservice/api_op_StartImport.go b/service/lexmodelbuildingservice/api_op_StartImport.go index 2c311ca1968..c6683f818f2 100644 --- a/service/lexmodelbuildingservice/api_op_StartImport.go +++ b/service/lexmodelbuildingservice/api_op_StartImport.go @@ -64,7 +64,7 @@ type StartImportInput struct { // A list of tags to add to the imported bot. You can only add tags when you import // a bot, you can't add tags to an intent or slot type. - Tags []*types.Tag + Tags []types.Tag } type StartImportOutput struct { @@ -89,7 +89,7 @@ type StartImportOutput struct { ResourceType types.ResourceType // A list of tags added to the imported bot. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lexmodelbuildingservice/api_op_TagResource.go b/service/lexmodelbuildingservice/api_op_TagResource.go index 9975cc35383..3c11d4a13ba 100644 --- a/service/lexmodelbuildingservice/api_op_TagResource.go +++ b/service/lexmodelbuildingservice/api_op_TagResource.go @@ -39,7 +39,7 @@ type TagResourceInput struct { // existing value is replaced with the new value. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/lexmodelbuildingservice/api_op_UntagResource.go b/service/lexmodelbuildingservice/api_op_UntagResource.go index 268a3001a42..0a23bf01867 100644 --- a/service/lexmodelbuildingservice/api_op_UntagResource.go +++ b/service/lexmodelbuildingservice/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // the resource, it is ignored. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/lexmodelbuildingservice/deserializers.go b/service/lexmodelbuildingservice/deserializers.go index d19065cbab2..0de2e115199 100644 --- a/service/lexmodelbuildingservice/deserializers.go +++ b/service/lexmodelbuildingservice/deserializers.go @@ -178,7 +178,7 @@ func awsRestjson1_deserializeOpDocumentCreateBotVersionOutput(v **CreateBotVersi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Checksum = &jtv + sv.Checksum = ptr.String(jtv) } case "childDirected": @@ -187,7 +187,7 @@ func awsRestjson1_deserializeOpDocumentCreateBotVersionOutput(v **CreateBotVersi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ChildDirected = &jtv + sv.ChildDirected = ptr.Bool(jtv) } case "clarificationPrompt": @@ -214,7 +214,7 @@ func awsRestjson1_deserializeOpDocumentCreateBotVersionOutput(v **CreateBotVersi if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "detectSentiment": @@ -223,7 +223,7 @@ func awsRestjson1_deserializeOpDocumentCreateBotVersionOutput(v **CreateBotVersi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DetectSentiment = &jtv + sv.DetectSentiment = ptr.Bool(jtv) } case "enableModelImprovements": @@ -232,7 +232,7 @@ func awsRestjson1_deserializeOpDocumentCreateBotVersionOutput(v **CreateBotVersi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableModelImprovements = &jtv + sv.EnableModelImprovements = ptr.Bool(jtv) } case "failureReason": @@ -241,7 +241,7 @@ func awsRestjson1_deserializeOpDocumentCreateBotVersionOutput(v **CreateBotVersi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "idleSessionTTLInSeconds": @@ -290,7 +290,7 @@ func awsRestjson1_deserializeOpDocumentCreateBotVersionOutput(v **CreateBotVersi if !ok { return fmt.Errorf("expected BotName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -308,7 +308,7 @@ func awsRestjson1_deserializeOpDocumentCreateBotVersionOutput(v **CreateBotVersi if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "voiceId": @@ -317,7 +317,7 @@ func awsRestjson1_deserializeOpDocumentCreateBotVersionOutput(v **CreateBotVersi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VoiceId = &jtv + sv.VoiceId = ptr.String(jtv) } default: @@ -483,7 +483,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntentVersionOutput(v **CreateInten if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Checksum = &jtv + sv.Checksum = ptr.String(jtv) } case "conclusionStatement": @@ -515,7 +515,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntentVersionOutput(v **CreateInten if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "dialogCodeHook": @@ -557,7 +557,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntentVersionOutput(v **CreateInten if !ok { return fmt.Errorf("expected IntentName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "parentIntentSignature": @@ -566,7 +566,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntentVersionOutput(v **CreateInten if !ok { return fmt.Errorf("expected BuiltinIntentSignature to be of type string, got %T instead", value) } - sv.ParentIntentSignature = &jtv + sv.ParentIntentSignature = ptr.String(jtv) } case "rejectionStatement": @@ -590,7 +590,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntentVersionOutput(v **CreateInten if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -756,7 +756,7 @@ func awsRestjson1_deserializeOpDocumentCreateSlotTypeVersionOutput(v **CreateSlo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Checksum = &jtv + sv.Checksum = ptr.String(jtv) } case "createdDate": @@ -778,7 +778,7 @@ func awsRestjson1_deserializeOpDocumentCreateSlotTypeVersionOutput(v **CreateSlo if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "enumerationValues": @@ -805,7 +805,7 @@ func awsRestjson1_deserializeOpDocumentCreateSlotTypeVersionOutput(v **CreateSlo if !ok { return fmt.Errorf("expected SlotTypeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "parentSlotTypeSignature": @@ -814,7 +814,7 @@ func awsRestjson1_deserializeOpDocumentCreateSlotTypeVersionOutput(v **CreateSlo if !ok { return fmt.Errorf("expected CustomOrBuiltinSlotTypeName to be of type string, got %T instead", value) } - sv.ParentSlotTypeSignature = &jtv + sv.ParentSlotTypeSignature = ptr.String(jtv) } case "slotTypeConfigurations": @@ -837,7 +837,7 @@ func awsRestjson1_deserializeOpDocumentCreateSlotTypeVersionOutput(v **CreateSlo if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -1875,7 +1875,7 @@ func awsRestjson1_deserializeOpDocumentGetBotOutput(v **GetBotOutput, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Checksum = &jtv + sv.Checksum = ptr.String(jtv) } case "childDirected": @@ -1884,7 +1884,7 @@ func awsRestjson1_deserializeOpDocumentGetBotOutput(v **GetBotOutput, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ChildDirected = &jtv + sv.ChildDirected = ptr.Bool(jtv) } case "clarificationPrompt": @@ -1911,7 +1911,7 @@ func awsRestjson1_deserializeOpDocumentGetBotOutput(v **GetBotOutput, value inte if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "detectSentiment": @@ -1920,7 +1920,7 @@ func awsRestjson1_deserializeOpDocumentGetBotOutput(v **GetBotOutput, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DetectSentiment = &jtv + sv.DetectSentiment = ptr.Bool(jtv) } case "enableModelImprovements": @@ -1929,7 +1929,7 @@ func awsRestjson1_deserializeOpDocumentGetBotOutput(v **GetBotOutput, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableModelImprovements = &jtv + sv.EnableModelImprovements = ptr.Bool(jtv) } case "failureReason": @@ -1938,7 +1938,7 @@ func awsRestjson1_deserializeOpDocumentGetBotOutput(v **GetBotOutput, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "idleSessionTTLInSeconds": @@ -1987,7 +1987,7 @@ func awsRestjson1_deserializeOpDocumentGetBotOutput(v **GetBotOutput, value inte if !ok { return fmt.Errorf("expected BotName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "nluIntentConfidenceThreshold": @@ -2000,7 +2000,7 @@ func awsRestjson1_deserializeOpDocumentGetBotOutput(v **GetBotOutput, value inte if err != nil { return err } - sv.NluIntentConfidenceThreshold = &f64 + sv.NluIntentConfidenceThreshold = f64 } case "status": @@ -2018,7 +2018,7 @@ func awsRestjson1_deserializeOpDocumentGetBotOutput(v **GetBotOutput, value inte if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "voiceId": @@ -2027,7 +2027,7 @@ func awsRestjson1_deserializeOpDocumentGetBotOutput(v **GetBotOutput, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VoiceId = &jtv + sv.VoiceId = ptr.String(jtv) } default: @@ -2187,7 +2187,7 @@ func awsRestjson1_deserializeOpDocumentGetBotAliasOutput(v **GetBotAliasOutput, if !ok { return fmt.Errorf("expected BotName to be of type string, got %T instead", value) } - sv.BotName = &jtv + sv.BotName = ptr.String(jtv) } case "botVersion": @@ -2196,7 +2196,7 @@ func awsRestjson1_deserializeOpDocumentGetBotAliasOutput(v **GetBotAliasOutput, if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.BotVersion = &jtv + sv.BotVersion = ptr.String(jtv) } case "checksum": @@ -2205,7 +2205,7 @@ func awsRestjson1_deserializeOpDocumentGetBotAliasOutput(v **GetBotAliasOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Checksum = &jtv + sv.Checksum = ptr.String(jtv) } case "conversationLogs": @@ -2232,7 +2232,7 @@ func awsRestjson1_deserializeOpDocumentGetBotAliasOutput(v **GetBotAliasOutput, if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastUpdatedDate": @@ -2254,7 +2254,7 @@ func awsRestjson1_deserializeOpDocumentGetBotAliasOutput(v **GetBotAliasOutput, if !ok { return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -2416,7 +2416,7 @@ func awsRestjson1_deserializeOpDocumentGetBotAliasesOutput(v **GetBotAliasesOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2576,7 +2576,7 @@ func awsRestjson1_deserializeOpDocumentGetBotChannelAssociationOutput(v **GetBot if !ok { return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) } - sv.BotAlias = &jtv + sv.BotAlias = ptr.String(jtv) } case "botConfiguration": @@ -2590,7 +2590,7 @@ func awsRestjson1_deserializeOpDocumentGetBotChannelAssociationOutput(v **GetBot if !ok { return fmt.Errorf("expected BotName to be of type string, got %T instead", value) } - sv.BotName = &jtv + sv.BotName = ptr.String(jtv) } case "createdDate": @@ -2612,7 +2612,7 @@ func awsRestjson1_deserializeOpDocumentGetBotChannelAssociationOutput(v **GetBot if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "failureReason": @@ -2621,7 +2621,7 @@ func awsRestjson1_deserializeOpDocumentGetBotChannelAssociationOutput(v **GetBot if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "name": @@ -2630,7 +2630,7 @@ func awsRestjson1_deserializeOpDocumentGetBotChannelAssociationOutput(v **GetBot if !ok { return fmt.Errorf("expected BotChannelName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -2810,7 +2810,7 @@ func awsRestjson1_deserializeOpDocumentGetBotChannelAssociationsOutput(v **GetBo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2975,7 +2975,7 @@ func awsRestjson1_deserializeOpDocumentGetBotsOutput(v **GetBotsOutput, value in if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3140,7 +3140,7 @@ func awsRestjson1_deserializeOpDocumentGetBotVersionsOutput(v **GetBotVersionsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3300,7 +3300,7 @@ func awsRestjson1_deserializeOpDocumentGetBuiltinIntentOutput(v **GetBuiltinInte if !ok { return fmt.Errorf("expected BuiltinIntentSignature to be of type string, got %T instead", value) } - sv.Signature = &jtv + sv.Signature = ptr.String(jtv) } case "slots": @@ -3472,7 +3472,7 @@ func awsRestjson1_deserializeOpDocumentGetBuiltinIntentsOutput(v **GetBuiltinInt if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3629,7 +3629,7 @@ func awsRestjson1_deserializeOpDocumentGetBuiltinSlotTypesOutput(v **GetBuiltinS if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "slotTypes": @@ -3812,7 +3812,7 @@ func awsRestjson1_deserializeOpDocumentGetExportOutput(v **GetExportOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "name": @@ -3821,7 +3821,7 @@ func awsRestjson1_deserializeOpDocumentGetExportOutput(v **GetExportOutput, valu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceType": @@ -3839,7 +3839,7 @@ func awsRestjson1_deserializeOpDocumentGetExportOutput(v **GetExportOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } case "version": @@ -3848,7 +3848,7 @@ func awsRestjson1_deserializeOpDocumentGetExportOutput(v **GetExportOutput, valu if !ok { return fmt.Errorf("expected NumericalVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -4026,7 +4026,7 @@ func awsRestjson1_deserializeOpDocumentGetImportOutput(v **GetImportOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ImportId = &jtv + sv.ImportId = ptr.String(jtv) } case "importStatus": @@ -4053,7 +4053,7 @@ func awsRestjson1_deserializeOpDocumentGetImportOutput(v **GetImportOutput, valu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceType": @@ -4222,7 +4222,7 @@ func awsRestjson1_deserializeOpDocumentGetIntentOutput(v **GetIntentOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Checksum = &jtv + sv.Checksum = ptr.String(jtv) } case "conclusionStatement": @@ -4254,7 +4254,7 @@ func awsRestjson1_deserializeOpDocumentGetIntentOutput(v **GetIntentOutput, valu if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "dialogCodeHook": @@ -4296,7 +4296,7 @@ func awsRestjson1_deserializeOpDocumentGetIntentOutput(v **GetIntentOutput, valu if !ok { return fmt.Errorf("expected IntentName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "parentIntentSignature": @@ -4305,7 +4305,7 @@ func awsRestjson1_deserializeOpDocumentGetIntentOutput(v **GetIntentOutput, valu if !ok { return fmt.Errorf("expected BuiltinIntentSignature to be of type string, got %T instead", value) } - sv.ParentIntentSignature = &jtv + sv.ParentIntentSignature = ptr.String(jtv) } case "rejectionStatement": @@ -4329,7 +4329,7 @@ func awsRestjson1_deserializeOpDocumentGetIntentOutput(v **GetIntentOutput, valu if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -4494,7 +4494,7 @@ func awsRestjson1_deserializeOpDocumentGetIntentsOutput(v **GetIntentsOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4659,7 +4659,7 @@ func awsRestjson1_deserializeOpDocumentGetIntentVersionsOutput(v **GetIntentVers if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4819,7 +4819,7 @@ func awsRestjson1_deserializeOpDocumentGetSlotTypeOutput(v **GetSlotTypeOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Checksum = &jtv + sv.Checksum = ptr.String(jtv) } case "createdDate": @@ -4841,7 +4841,7 @@ func awsRestjson1_deserializeOpDocumentGetSlotTypeOutput(v **GetSlotTypeOutput, if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "enumerationValues": @@ -4868,7 +4868,7 @@ func awsRestjson1_deserializeOpDocumentGetSlotTypeOutput(v **GetSlotTypeOutput, if !ok { return fmt.Errorf("expected SlotTypeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "parentSlotTypeSignature": @@ -4877,7 +4877,7 @@ func awsRestjson1_deserializeOpDocumentGetSlotTypeOutput(v **GetSlotTypeOutput, if !ok { return fmt.Errorf("expected CustomOrBuiltinSlotTypeName to be of type string, got %T instead", value) } - sv.ParentSlotTypeSignature = &jtv + sv.ParentSlotTypeSignature = ptr.String(jtv) } case "slotTypeConfigurations": @@ -4900,7 +4900,7 @@ func awsRestjson1_deserializeOpDocumentGetSlotTypeOutput(v **GetSlotTypeOutput, if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -5060,7 +5060,7 @@ func awsRestjson1_deserializeOpDocumentGetSlotTypesOutput(v **GetSlotTypesOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "slotTypes": @@ -5225,7 +5225,7 @@ func awsRestjson1_deserializeOpDocumentGetSlotTypeVersionsOutput(v **GetSlotType if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "slotTypes": @@ -5387,7 +5387,7 @@ func awsRestjson1_deserializeOpDocumentGetUtterancesViewOutput(v **GetUtterances if !ok { return fmt.Errorf("expected BotName to be of type string, got %T instead", value) } - sv.BotName = &jtv + sv.BotName = ptr.String(jtv) } case "utterances": @@ -5716,7 +5716,7 @@ func awsRestjson1_deserializeOpDocumentPutBotOutput(v **PutBotOutput, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Checksum = &jtv + sv.Checksum = ptr.String(jtv) } case "childDirected": @@ -5725,7 +5725,7 @@ func awsRestjson1_deserializeOpDocumentPutBotOutput(v **PutBotOutput, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ChildDirected = &jtv + sv.ChildDirected = ptr.Bool(jtv) } case "clarificationPrompt": @@ -5752,7 +5752,7 @@ func awsRestjson1_deserializeOpDocumentPutBotOutput(v **PutBotOutput, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CreateVersion = &jtv + sv.CreateVersion = ptr.Bool(jtv) } case "description": @@ -5761,7 +5761,7 @@ func awsRestjson1_deserializeOpDocumentPutBotOutput(v **PutBotOutput, value inte if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "detectSentiment": @@ -5770,7 +5770,7 @@ func awsRestjson1_deserializeOpDocumentPutBotOutput(v **PutBotOutput, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DetectSentiment = &jtv + sv.DetectSentiment = ptr.Bool(jtv) } case "enableModelImprovements": @@ -5779,7 +5779,7 @@ func awsRestjson1_deserializeOpDocumentPutBotOutput(v **PutBotOutput, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableModelImprovements = &jtv + sv.EnableModelImprovements = ptr.Bool(jtv) } case "failureReason": @@ -5788,7 +5788,7 @@ func awsRestjson1_deserializeOpDocumentPutBotOutput(v **PutBotOutput, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "idleSessionTTLInSeconds": @@ -5837,7 +5837,7 @@ func awsRestjson1_deserializeOpDocumentPutBotOutput(v **PutBotOutput, value inte if !ok { return fmt.Errorf("expected BotName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "nluIntentConfidenceThreshold": @@ -5850,7 +5850,7 @@ func awsRestjson1_deserializeOpDocumentPutBotOutput(v **PutBotOutput, value inte if err != nil { return err } - sv.NluIntentConfidenceThreshold = &f64 + sv.NluIntentConfidenceThreshold = f64 } case "status": @@ -5873,7 +5873,7 @@ func awsRestjson1_deserializeOpDocumentPutBotOutput(v **PutBotOutput, value inte if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "voiceId": @@ -5882,7 +5882,7 @@ func awsRestjson1_deserializeOpDocumentPutBotOutput(v **PutBotOutput, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VoiceId = &jtv + sv.VoiceId = ptr.String(jtv) } default: @@ -6045,7 +6045,7 @@ func awsRestjson1_deserializeOpDocumentPutBotAliasOutput(v **PutBotAliasOutput, if !ok { return fmt.Errorf("expected BotName to be of type string, got %T instead", value) } - sv.BotName = &jtv + sv.BotName = ptr.String(jtv) } case "botVersion": @@ -6054,7 +6054,7 @@ func awsRestjson1_deserializeOpDocumentPutBotAliasOutput(v **PutBotAliasOutput, if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.BotVersion = &jtv + sv.BotVersion = ptr.String(jtv) } case "checksum": @@ -6063,7 +6063,7 @@ func awsRestjson1_deserializeOpDocumentPutBotAliasOutput(v **PutBotAliasOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Checksum = &jtv + sv.Checksum = ptr.String(jtv) } case "conversationLogs": @@ -6090,7 +6090,7 @@ func awsRestjson1_deserializeOpDocumentPutBotAliasOutput(v **PutBotAliasOutput, if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastUpdatedDate": @@ -6112,7 +6112,7 @@ func awsRestjson1_deserializeOpDocumentPutBotAliasOutput(v **PutBotAliasOutput, if !ok { return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -6280,7 +6280,7 @@ func awsRestjson1_deserializeOpDocumentPutIntentOutput(v **PutIntentOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Checksum = &jtv + sv.Checksum = ptr.String(jtv) } case "conclusionStatement": @@ -6312,7 +6312,7 @@ func awsRestjson1_deserializeOpDocumentPutIntentOutput(v **PutIntentOutput, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CreateVersion = &jtv + sv.CreateVersion = ptr.Bool(jtv) } case "description": @@ -6321,7 +6321,7 @@ func awsRestjson1_deserializeOpDocumentPutIntentOutput(v **PutIntentOutput, valu if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "dialogCodeHook": @@ -6363,7 +6363,7 @@ func awsRestjson1_deserializeOpDocumentPutIntentOutput(v **PutIntentOutput, valu if !ok { return fmt.Errorf("expected IntentName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "parentIntentSignature": @@ -6372,7 +6372,7 @@ func awsRestjson1_deserializeOpDocumentPutIntentOutput(v **PutIntentOutput, valu if !ok { return fmt.Errorf("expected BuiltinIntentSignature to be of type string, got %T instead", value) } - sv.ParentIntentSignature = &jtv + sv.ParentIntentSignature = ptr.String(jtv) } case "rejectionStatement": @@ -6396,7 +6396,7 @@ func awsRestjson1_deserializeOpDocumentPutIntentOutput(v **PutIntentOutput, valu if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -6559,7 +6559,7 @@ func awsRestjson1_deserializeOpDocumentPutSlotTypeOutput(v **PutSlotTypeOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Checksum = &jtv + sv.Checksum = ptr.String(jtv) } case "createdDate": @@ -6581,7 +6581,7 @@ func awsRestjson1_deserializeOpDocumentPutSlotTypeOutput(v **PutSlotTypeOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CreateVersion = &jtv + sv.CreateVersion = ptr.Bool(jtv) } case "description": @@ -6590,7 +6590,7 @@ func awsRestjson1_deserializeOpDocumentPutSlotTypeOutput(v **PutSlotTypeOutput, if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "enumerationValues": @@ -6617,7 +6617,7 @@ func awsRestjson1_deserializeOpDocumentPutSlotTypeOutput(v **PutSlotTypeOutput, if !ok { return fmt.Errorf("expected SlotTypeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "parentSlotTypeSignature": @@ -6626,7 +6626,7 @@ func awsRestjson1_deserializeOpDocumentPutSlotTypeOutput(v **PutSlotTypeOutput, if !ok { return fmt.Errorf("expected CustomOrBuiltinSlotTypeName to be of type string, got %T instead", value) } - sv.ParentSlotTypeSignature = &jtv + sv.ParentSlotTypeSignature = ptr.String(jtv) } case "slotTypeConfigurations": @@ -6649,7 +6649,7 @@ func awsRestjson1_deserializeOpDocumentPutSlotTypeOutput(v **PutSlotTypeOutput, if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -6819,7 +6819,7 @@ func awsRestjson1_deserializeOpDocumentStartImportOutput(v **StartImportOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ImportId = &jtv + sv.ImportId = ptr.String(jtv) } case "importStatus": @@ -6846,7 +6846,7 @@ func awsRestjson1_deserializeOpDocumentStartImportOutput(v **StartImportOutput, if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceType": @@ -7358,7 +7358,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7398,7 +7398,7 @@ func awsRestjson1_deserializeDocumentBotAliasMetadata(v **types.BotAliasMetadata if !ok { return fmt.Errorf("expected BotName to be of type string, got %T instead", value) } - sv.BotName = &jtv + sv.BotName = ptr.String(jtv) } case "botVersion": @@ -7407,7 +7407,7 @@ func awsRestjson1_deserializeDocumentBotAliasMetadata(v **types.BotAliasMetadata if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.BotVersion = &jtv + sv.BotVersion = ptr.String(jtv) } case "checksum": @@ -7416,7 +7416,7 @@ func awsRestjson1_deserializeDocumentBotAliasMetadata(v **types.BotAliasMetadata if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Checksum = &jtv + sv.Checksum = ptr.String(jtv) } case "conversationLogs": @@ -7443,7 +7443,7 @@ func awsRestjson1_deserializeDocumentBotAliasMetadata(v **types.BotAliasMetadata if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastUpdatedDate": @@ -7465,7 +7465,7 @@ func awsRestjson1_deserializeDocumentBotAliasMetadata(v **types.BotAliasMetadata if !ok { return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7477,7 +7477,7 @@ func awsRestjson1_deserializeDocumentBotAliasMetadata(v **types.BotAliasMetadata return nil } -func awsRestjson1_deserializeDocumentBotAliasMetadataList(v *[]*types.BotAliasMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentBotAliasMetadataList(v *[]types.BotAliasMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7490,18 +7490,20 @@ func awsRestjson1_deserializeDocumentBotAliasMetadataList(v *[]*types.BotAliasMe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BotAliasMetadata + var cv []types.BotAliasMetadata if *v == nil { - cv = []*types.BotAliasMetadata{} + cv = []types.BotAliasMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.BotAliasMetadata - if err := awsRestjson1_deserializeDocumentBotAliasMetadata(&col, value); err != nil { + var col types.BotAliasMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentBotAliasMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7537,7 +7539,7 @@ func awsRestjson1_deserializeDocumentBotChannelAssociation(v **types.BotChannelA if !ok { return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) } - sv.BotAlias = &jtv + sv.BotAlias = ptr.String(jtv) } case "botConfiguration": @@ -7551,7 +7553,7 @@ func awsRestjson1_deserializeDocumentBotChannelAssociation(v **types.BotChannelA if !ok { return fmt.Errorf("expected BotName to be of type string, got %T instead", value) } - sv.BotName = &jtv + sv.BotName = ptr.String(jtv) } case "createdDate": @@ -7573,7 +7575,7 @@ func awsRestjson1_deserializeDocumentBotChannelAssociation(v **types.BotChannelA if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "failureReason": @@ -7582,7 +7584,7 @@ func awsRestjson1_deserializeDocumentBotChannelAssociation(v **types.BotChannelA if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "name": @@ -7591,7 +7593,7 @@ func awsRestjson1_deserializeDocumentBotChannelAssociation(v **types.BotChannelA if !ok { return fmt.Errorf("expected BotChannelName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -7621,7 +7623,7 @@ func awsRestjson1_deserializeDocumentBotChannelAssociation(v **types.BotChannelA return nil } -func awsRestjson1_deserializeDocumentBotChannelAssociationList(v *[]*types.BotChannelAssociation, value interface{}) error { +func awsRestjson1_deserializeDocumentBotChannelAssociationList(v *[]types.BotChannelAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7634,18 +7636,20 @@ func awsRestjson1_deserializeDocumentBotChannelAssociationList(v *[]*types.BotCh return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BotChannelAssociation + var cv []types.BotChannelAssociation if *v == nil { - cv = []*types.BotChannelAssociation{} + cv = []types.BotChannelAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.BotChannelAssociation - if err := awsRestjson1_deserializeDocumentBotChannelAssociation(&col, value); err != nil { + var col types.BotChannelAssociation + destAddr := &col + if err := awsRestjson1_deserializeDocumentBotChannelAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7694,7 +7698,7 @@ func awsRestjson1_deserializeDocumentBotMetadata(v **types.BotMetadata, value in if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastUpdatedDate": @@ -7716,7 +7720,7 @@ func awsRestjson1_deserializeDocumentBotMetadata(v **types.BotMetadata, value in if !ok { return fmt.Errorf("expected BotName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -7734,7 +7738,7 @@ func awsRestjson1_deserializeDocumentBotMetadata(v **types.BotMetadata, value in if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -7746,7 +7750,7 @@ func awsRestjson1_deserializeDocumentBotMetadata(v **types.BotMetadata, value in return nil } -func awsRestjson1_deserializeDocumentBotMetadataList(v *[]*types.BotMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentBotMetadataList(v *[]types.BotMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7759,18 +7763,20 @@ func awsRestjson1_deserializeDocumentBotMetadataList(v *[]*types.BotMetadata, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BotMetadata + var cv []types.BotMetadata if *v == nil { - cv = []*types.BotMetadata{} + cv = []types.BotMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.BotMetadata - if err := awsRestjson1_deserializeDocumentBotMetadata(&col, value); err != nil { + var col types.BotMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentBotMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7806,7 +7812,7 @@ func awsRestjson1_deserializeDocumentBuiltinIntentMetadata(v **types.BuiltinInte if !ok { return fmt.Errorf("expected BuiltinIntentSignature to be of type string, got %T instead", value) } - sv.Signature = &jtv + sv.Signature = ptr.String(jtv) } case "supportedLocales": @@ -7823,7 +7829,7 @@ func awsRestjson1_deserializeDocumentBuiltinIntentMetadata(v **types.BuiltinInte return nil } -func awsRestjson1_deserializeDocumentBuiltinIntentMetadataList(v *[]*types.BuiltinIntentMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentBuiltinIntentMetadataList(v *[]types.BuiltinIntentMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7836,18 +7842,20 @@ func awsRestjson1_deserializeDocumentBuiltinIntentMetadataList(v *[]*types.Built return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BuiltinIntentMetadata + var cv []types.BuiltinIntentMetadata if *v == nil { - cv = []*types.BuiltinIntentMetadata{} + cv = []types.BuiltinIntentMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.BuiltinIntentMetadata - if err := awsRestjson1_deserializeDocumentBuiltinIntentMetadata(&col, value); err != nil { + var col types.BuiltinIntentMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentBuiltinIntentMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7883,7 +7891,7 @@ func awsRestjson1_deserializeDocumentBuiltinIntentSlot(v **types.BuiltinIntentSl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7895,7 +7903,7 @@ func awsRestjson1_deserializeDocumentBuiltinIntentSlot(v **types.BuiltinIntentSl return nil } -func awsRestjson1_deserializeDocumentBuiltinIntentSlotList(v *[]*types.BuiltinIntentSlot, value interface{}) error { +func awsRestjson1_deserializeDocumentBuiltinIntentSlotList(v *[]types.BuiltinIntentSlot, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7908,18 +7916,20 @@ func awsRestjson1_deserializeDocumentBuiltinIntentSlotList(v *[]*types.BuiltinIn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BuiltinIntentSlot + var cv []types.BuiltinIntentSlot if *v == nil { - cv = []*types.BuiltinIntentSlot{} + cv = []types.BuiltinIntentSlot{} } else { cv = *v } for _, value := range shape { - var col *types.BuiltinIntentSlot - if err := awsRestjson1_deserializeDocumentBuiltinIntentSlot(&col, value); err != nil { + var col types.BuiltinIntentSlot + destAddr := &col + if err := awsRestjson1_deserializeDocumentBuiltinIntentSlot(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7955,7 +7965,7 @@ func awsRestjson1_deserializeDocumentBuiltinSlotTypeMetadata(v **types.BuiltinSl if !ok { return fmt.Errorf("expected BuiltinSlotTypeSignature to be of type string, got %T instead", value) } - sv.Signature = &jtv + sv.Signature = ptr.String(jtv) } case "supportedLocales": @@ -7972,7 +7982,7 @@ func awsRestjson1_deserializeDocumentBuiltinSlotTypeMetadata(v **types.BuiltinSl return nil } -func awsRestjson1_deserializeDocumentBuiltinSlotTypeMetadataList(v *[]*types.BuiltinSlotTypeMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentBuiltinSlotTypeMetadataList(v *[]types.BuiltinSlotTypeMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7985,18 +7995,20 @@ func awsRestjson1_deserializeDocumentBuiltinSlotTypeMetadataList(v *[]*types.Bui return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BuiltinSlotTypeMetadata + var cv []types.BuiltinSlotTypeMetadata if *v == nil { - cv = []*types.BuiltinSlotTypeMetadata{} + cv = []types.BuiltinSlotTypeMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.BuiltinSlotTypeMetadata - if err := awsRestjson1_deserializeDocumentBuiltinSlotTypeMetadata(&col, value); err != nil { + var col types.BuiltinSlotTypeMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentBuiltinSlotTypeMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8004,7 +8016,7 @@ func awsRestjson1_deserializeDocumentBuiltinSlotTypeMetadataList(v *[]*types.Bui return nil } -func awsRestjson1_deserializeDocumentChannelConfigurationMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentChannelConfigurationMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8017,21 +8029,21 @@ func awsRestjson1_deserializeDocumentChannelConfigurationMap(v *map[string]*stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -8068,7 +8080,7 @@ func awsRestjson1_deserializeDocumentCodeHook(v **types.CodeHook, value interfac if !ok { return fmt.Errorf("expected MessageVersion to be of type string, got %T instead", value) } - sv.MessageVersion = &jtv + sv.MessageVersion = ptr.String(jtv) } case "uri": @@ -8077,7 +8089,7 @@ func awsRestjson1_deserializeDocumentCodeHook(v **types.CodeHook, value interfac if !ok { return fmt.Errorf("expected LambdaARN to be of type string, got %T instead", value) } - sv.Uri = &jtv + sv.Uri = ptr.String(jtv) } default: @@ -8117,7 +8129,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8157,7 +8169,7 @@ func awsRestjson1_deserializeDocumentConversationLogsResponse(v **types.Conversa if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "logSettings": @@ -8207,7 +8219,7 @@ func awsRestjson1_deserializeDocumentEnumerationValue(v **types.EnumerationValue if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8219,7 +8231,7 @@ func awsRestjson1_deserializeDocumentEnumerationValue(v **types.EnumerationValue return nil } -func awsRestjson1_deserializeDocumentEnumerationValues(v *[]*types.EnumerationValue, value interface{}) error { +func awsRestjson1_deserializeDocumentEnumerationValues(v *[]types.EnumerationValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8232,18 +8244,20 @@ func awsRestjson1_deserializeDocumentEnumerationValues(v *[]*types.EnumerationVa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EnumerationValue + var cv []types.EnumerationValue if *v == nil { - cv = []*types.EnumerationValue{} + cv = []types.EnumerationValue{} } else { cv = *v } for _, value := range shape { - var col *types.EnumerationValue - if err := awsRestjson1_deserializeDocumentEnumerationValue(&col, value); err != nil { + var col types.EnumerationValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentEnumerationValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8365,7 +8379,7 @@ func awsRestjson1_deserializeDocumentIntent(v **types.Intent, value interface{}) if !ok { return fmt.Errorf("expected IntentName to be of type string, got %T instead", value) } - sv.IntentName = &jtv + sv.IntentName = ptr.String(jtv) } case "intentVersion": @@ -8374,7 +8388,7 @@ func awsRestjson1_deserializeDocumentIntent(v **types.Intent, value interface{}) if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.IntentVersion = &jtv + sv.IntentVersion = ptr.String(jtv) } default: @@ -8386,7 +8400,7 @@ func awsRestjson1_deserializeDocumentIntent(v **types.Intent, value interface{}) return nil } -func awsRestjson1_deserializeDocumentIntentList(v *[]*types.Intent, value interface{}) error { +func awsRestjson1_deserializeDocumentIntentList(v *[]types.Intent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8399,18 +8413,20 @@ func awsRestjson1_deserializeDocumentIntentList(v *[]*types.Intent, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Intent + var cv []types.Intent if *v == nil { - cv = []*types.Intent{} + cv = []types.Intent{} } else { cv = *v } for _, value := range shape { - var col *types.Intent - if err := awsRestjson1_deserializeDocumentIntent(&col, value); err != nil { + var col types.Intent + destAddr := &col + if err := awsRestjson1_deserializeDocumentIntent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8459,7 +8475,7 @@ func awsRestjson1_deserializeDocumentIntentMetadata(v **types.IntentMetadata, va if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastUpdatedDate": @@ -8481,7 +8497,7 @@ func awsRestjson1_deserializeDocumentIntentMetadata(v **types.IntentMetadata, va if !ok { return fmt.Errorf("expected IntentName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "version": @@ -8490,7 +8506,7 @@ func awsRestjson1_deserializeDocumentIntentMetadata(v **types.IntentMetadata, va if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -8502,7 +8518,7 @@ func awsRestjson1_deserializeDocumentIntentMetadata(v **types.IntentMetadata, va return nil } -func awsRestjson1_deserializeDocumentIntentMetadataList(v *[]*types.IntentMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentIntentMetadataList(v *[]types.IntentMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8515,18 +8531,20 @@ func awsRestjson1_deserializeDocumentIntentMetadataList(v *[]*types.IntentMetada return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IntentMetadata + var cv []types.IntentMetadata if *v == nil { - cv = []*types.IntentMetadata{} + cv = []types.IntentMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.IntentMetadata - if err := awsRestjson1_deserializeDocumentIntentMetadata(&col, value); err != nil { + var col types.IntentMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentIntentMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8534,7 +8552,7 @@ func awsRestjson1_deserializeDocumentIntentMetadataList(v *[]*types.IntentMetada return nil } -func awsRestjson1_deserializeDocumentIntentUtteranceList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentIntentUtteranceList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8547,21 +8565,21 @@ func awsRestjson1_deserializeDocumentIntentUtteranceList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Utterance to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8598,7 +8616,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8638,7 +8656,7 @@ func awsRestjson1_deserializeDocumentKendraConfiguration(v **types.KendraConfigu if !ok { return fmt.Errorf("expected KendraIndexArn to be of type string, got %T instead", value) } - sv.KendraIndex = &jtv + sv.KendraIndex = ptr.String(jtv) } case "queryFilterString": @@ -8647,7 +8665,7 @@ func awsRestjson1_deserializeDocumentKendraConfiguration(v **types.KendraConfigu if !ok { return fmt.Errorf("expected QueryFilterString to be of type string, got %T instead", value) } - sv.QueryFilterString = &jtv + sv.QueryFilterString = ptr.String(jtv) } case "role": @@ -8656,7 +8674,7 @@ func awsRestjson1_deserializeDocumentKendraConfiguration(v **types.KendraConfigu if !ok { return fmt.Errorf("expected roleArn to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } default: @@ -8696,7 +8714,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryAfterSeconds": @@ -8705,7 +8723,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RetryAfterSeconds = &jtv + sv.RetryAfterSeconds = ptr.String(jtv) } default: @@ -8717,7 +8735,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsRestjson1_deserializeDocumentListOfUtterance(v *[]*types.UtteranceData, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfUtterance(v *[]types.UtteranceData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8730,18 +8748,20 @@ func awsRestjson1_deserializeDocumentListOfUtterance(v *[]*types.UtteranceData, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UtteranceData + var cv []types.UtteranceData if *v == nil { - cv = []*types.UtteranceData{} + cv = []types.UtteranceData{} } else { cv = *v } for _, value := range shape { - var col *types.UtteranceData - if err := awsRestjson1_deserializeDocumentUtteranceData(&col, value); err != nil { + var col types.UtteranceData + destAddr := &col + if err := awsRestjson1_deserializeDocumentUtteranceData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8749,7 +8769,7 @@ func awsRestjson1_deserializeDocumentListOfUtterance(v *[]*types.UtteranceData, return nil } -func awsRestjson1_deserializeDocumentListsOfUtterances(v *[]*types.UtteranceList, value interface{}) error { +func awsRestjson1_deserializeDocumentListsOfUtterances(v *[]types.UtteranceList, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8762,18 +8782,20 @@ func awsRestjson1_deserializeDocumentListsOfUtterances(v *[]*types.UtteranceList return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UtteranceList + var cv []types.UtteranceList if *v == nil { - cv = []*types.UtteranceList{} + cv = []types.UtteranceList{} } else { cv = *v } for _, value := range shape { - var col *types.UtteranceList - if err := awsRestjson1_deserializeDocumentUtteranceList(&col, value); err != nil { + var col types.UtteranceList + destAddr := &col + if err := awsRestjson1_deserializeDocumentUtteranceList(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8854,7 +8876,7 @@ func awsRestjson1_deserializeDocumentLogSettingsResponse(v **types.LogSettingsRe if !ok { return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } case "logType": @@ -8872,7 +8894,7 @@ func awsRestjson1_deserializeDocumentLogSettingsResponse(v **types.LogSettingsRe if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "resourcePrefix": @@ -8881,7 +8903,7 @@ func awsRestjson1_deserializeDocumentLogSettingsResponse(v **types.LogSettingsRe if !ok { return fmt.Errorf("expected ResourcePrefix to be of type string, got %T instead", value) } - sv.ResourcePrefix = &jtv + sv.ResourcePrefix = ptr.String(jtv) } default: @@ -8893,7 +8915,7 @@ func awsRestjson1_deserializeDocumentLogSettingsResponse(v **types.LogSettingsRe return nil } -func awsRestjson1_deserializeDocumentLogSettingsResponseList(v *[]*types.LogSettingsResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentLogSettingsResponseList(v *[]types.LogSettingsResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8906,18 +8928,20 @@ func awsRestjson1_deserializeDocumentLogSettingsResponseList(v *[]*types.LogSett return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LogSettingsResponse + var cv []types.LogSettingsResponse if *v == nil { - cv = []*types.LogSettingsResponse{} + cv = []types.LogSettingsResponse{} } else { cv = *v } for _, value := range shape { - var col *types.LogSettingsResponse - if err := awsRestjson1_deserializeDocumentLogSettingsResponse(&col, value); err != nil { + var col types.LogSettingsResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentLogSettingsResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8953,7 +8977,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if !ok { return fmt.Errorf("expected ContentString to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "contentType": @@ -8987,7 +9011,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ return nil } -func awsRestjson1_deserializeDocumentMessageList(v *[]*types.Message, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageList(v *[]types.Message, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9000,18 +9024,20 @@ func awsRestjson1_deserializeDocumentMessageList(v *[]*types.Message, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Message + var cv []types.Message if *v == nil { - cv = []*types.Message{} + cv = []types.Message{} } else { cv = *v } for _, value := range shape { - var col *types.Message - if err := awsRestjson1_deserializeDocumentMessage(&col, value); err != nil { + var col types.Message + destAddr := &col + if err := awsRestjson1_deserializeDocumentMessage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9047,7 +9073,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9087,7 +9113,7 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9145,7 +9171,7 @@ func awsRestjson1_deserializeDocumentPrompt(v **types.Prompt, value interface{}) if !ok { return fmt.Errorf("expected ResponseCard to be of type string, got %T instead", value) } - sv.ResponseCard = &jtv + sv.ResponseCard = ptr.String(jtv) } default: @@ -9230,7 +9256,7 @@ func awsRestjson1_deserializeDocumentResourceReference(v **types.ResourceReferen if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "version": @@ -9239,7 +9265,7 @@ func awsRestjson1_deserializeDocumentResourceReference(v **types.ResourceReferen if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -9279,7 +9305,7 @@ func awsRestjson1_deserializeDocumentSlot(v **types.Slot, value interface{}) err if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "name": @@ -9288,7 +9314,7 @@ func awsRestjson1_deserializeDocumentSlot(v **types.Slot, value interface{}) err if !ok { return fmt.Errorf("expected SlotName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "obfuscationSetting": @@ -9319,7 +9345,7 @@ func awsRestjson1_deserializeDocumentSlot(v **types.Slot, value interface{}) err if !ok { return fmt.Errorf("expected ResponseCard to be of type string, got %T instead", value) } - sv.ResponseCard = &jtv + sv.ResponseCard = ptr.String(jtv) } case "sampleUtterances": @@ -9342,7 +9368,7 @@ func awsRestjson1_deserializeDocumentSlot(v **types.Slot, value interface{}) err if !ok { return fmt.Errorf("expected CustomOrBuiltinSlotTypeName to be of type string, got %T instead", value) } - sv.SlotType = &jtv + sv.SlotType = ptr.String(jtv) } case "slotTypeVersion": @@ -9351,7 +9377,7 @@ func awsRestjson1_deserializeDocumentSlot(v **types.Slot, value interface{}) err if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.SlotTypeVersion = &jtv + sv.SlotTypeVersion = ptr.String(jtv) } case "valueElicitationPrompt": @@ -9368,7 +9394,7 @@ func awsRestjson1_deserializeDocumentSlot(v **types.Slot, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentSlotList(v *[]*types.Slot, value interface{}) error { +func awsRestjson1_deserializeDocumentSlotList(v *[]types.Slot, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9381,18 +9407,20 @@ func awsRestjson1_deserializeDocumentSlotList(v *[]*types.Slot, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Slot + var cv []types.Slot if *v == nil { - cv = []*types.Slot{} + cv = []types.Slot{} } else { cv = *v } for _, value := range shape { - var col *types.Slot - if err := awsRestjson1_deserializeDocumentSlot(&col, value); err != nil { + var col types.Slot + destAddr := &col + if err := awsRestjson1_deserializeDocumentSlot(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9436,7 +9464,7 @@ func awsRestjson1_deserializeDocumentSlotTypeConfiguration(v **types.SlotTypeCon return nil } -func awsRestjson1_deserializeDocumentSlotTypeConfigurations(v *[]*types.SlotTypeConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSlotTypeConfigurations(v *[]types.SlotTypeConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9449,18 +9477,20 @@ func awsRestjson1_deserializeDocumentSlotTypeConfigurations(v *[]*types.SlotType return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SlotTypeConfiguration + var cv []types.SlotTypeConfiguration if *v == nil { - cv = []*types.SlotTypeConfiguration{} + cv = []types.SlotTypeConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.SlotTypeConfiguration - if err := awsRestjson1_deserializeDocumentSlotTypeConfiguration(&col, value); err != nil { + var col types.SlotTypeConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentSlotTypeConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9509,7 +9539,7 @@ func awsRestjson1_deserializeDocumentSlotTypeMetadata(v **types.SlotTypeMetadata if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastUpdatedDate": @@ -9531,7 +9561,7 @@ func awsRestjson1_deserializeDocumentSlotTypeMetadata(v **types.SlotTypeMetadata if !ok { return fmt.Errorf("expected SlotTypeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "version": @@ -9540,7 +9570,7 @@ func awsRestjson1_deserializeDocumentSlotTypeMetadata(v **types.SlotTypeMetadata if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -9552,7 +9582,7 @@ func awsRestjson1_deserializeDocumentSlotTypeMetadata(v **types.SlotTypeMetadata return nil } -func awsRestjson1_deserializeDocumentSlotTypeMetadataList(v *[]*types.SlotTypeMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentSlotTypeMetadataList(v *[]types.SlotTypeMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9565,18 +9595,20 @@ func awsRestjson1_deserializeDocumentSlotTypeMetadataList(v *[]*types.SlotTypeMe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SlotTypeMetadata + var cv []types.SlotTypeMetadata if *v == nil { - cv = []*types.SlotTypeMetadata{} + cv = []types.SlotTypeMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.SlotTypeMetadata - if err := awsRestjson1_deserializeDocumentSlotTypeMetadata(&col, value); err != nil { + var col types.SlotTypeMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentSlotTypeMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9612,7 +9644,7 @@ func awsRestjson1_deserializeDocumentSlotTypeRegexConfiguration(v **types.SlotTy if !ok { return fmt.Errorf("expected RegexPattern to be of type string, got %T instead", value) } - sv.Pattern = &jtv + sv.Pattern = ptr.String(jtv) } default: @@ -9624,7 +9656,7 @@ func awsRestjson1_deserializeDocumentSlotTypeRegexConfiguration(v **types.SlotTy return nil } -func awsRestjson1_deserializeDocumentSlotUtteranceList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSlotUtteranceList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9637,21 +9669,21 @@ func awsRestjson1_deserializeDocumentSlotUtteranceList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Utterance to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9693,7 +9725,7 @@ func awsRestjson1_deserializeDocumentStatement(v **types.Statement, value interf if !ok { return fmt.Errorf("expected ResponseCard to be of type string, got %T instead", value) } - sv.ResponseCard = &jtv + sv.ResponseCard = ptr.String(jtv) } default: @@ -9705,7 +9737,7 @@ func awsRestjson1_deserializeDocumentStatement(v **types.Statement, value interf return nil } -func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9718,21 +9750,21 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -9741,7 +9773,7 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentSynonymList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSynonymList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9754,21 +9786,21 @@ func awsRestjson1_deserializeDocumentSynonymList(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Value to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9805,7 +9837,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -9814,7 +9846,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -9826,7 +9858,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9839,18 +9871,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9938,7 +9972,7 @@ func awsRestjson1_deserializeDocumentUtteranceData(v **types.UtteranceData, valu if !ok { return fmt.Errorf("expected UtteranceString to be of type string, got %T instead", value) } - sv.UtteranceString = &jtv + sv.UtteranceString = ptr.String(jtv) } default: @@ -9978,7 +10012,7 @@ func awsRestjson1_deserializeDocumentUtteranceList(v **types.UtteranceList, valu if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.BotVersion = &jtv + sv.BotVersion = ptr.String(jtv) } case "utterances": diff --git a/service/lexmodelbuildingservice/go.mod b/service/lexmodelbuildingservice/go.mod index cf31743b653..73441be17eb 100644 --- a/service/lexmodelbuildingservice/go.mod +++ b/service/lexmodelbuildingservice/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/lexmodelbuildingservice go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/lexmodelbuildingservice/serializers.go b/service/lexmodelbuildingservice/serializers.go index 621730b6095..a9baeed1d0d 100644 --- a/service/lexmodelbuildingservice/serializers.go +++ b/service/lexmodelbuildingservice/serializers.go @@ -76,13 +76,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateBotVersionInput(v *CreateBotVersi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -165,13 +162,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateIntentVersionInput(v *CreateInten return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -254,13 +248,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateSlotTypeVersionInput(v *CreateSlo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -332,13 +323,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBotInput(v *DeleteBotInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -398,25 +386,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBotAliasInput(v *DeleteBotAliasIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -476,37 +458,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBotChannelAssociationInput(v *Del return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BotAlias == nil { + if v.BotAlias == nil || len(*v.BotAlias) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} } if v.BotAlias != nil { - if len(*v.BotAlias) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} - } if err := encoder.SetURI("botAlias").String(*v.BotAlias); err != nil { return err } } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -566,25 +539,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBotVersionInput(v *DeleteBotVersi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } } - if v.Version == nil { + if v.Version == nil || len(*v.Version) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member version must not be empty")} } if v.Version != nil { - if len(*v.Version) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member version must not be empty")} - } if err := encoder.SetURI("version").String(*v.Version); err != nil { return err } @@ -644,13 +611,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteIntentInput(v *DeleteIntentInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -710,25 +674,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteIntentVersionInput(v *DeleteInten return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } } - if v.Version == nil { + if v.Version == nil || len(*v.Version) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member version must not be empty")} } if v.Version != nil { - if len(*v.Version) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member version must not be empty")} - } if err := encoder.SetURI("version").String(*v.Version); err != nil { return err } @@ -788,13 +746,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSlotTypeInput(v *DeleteSlotTypeIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -854,25 +809,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSlotTypeVersionInput(v *DeleteSlo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } } - if v.Version == nil { + if v.Version == nil || len(*v.Version) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member version must not be empty")} } if v.Version != nil { - if len(*v.Version) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member version must not be empty")} - } if err := encoder.SetURI("version").String(*v.Version); err != nil { return err } @@ -932,25 +881,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteUtterancesInput(v *DeleteUtteranc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member userId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member userId must not be empty")} - } if err := encoder.SetURI("userId").String(*v.UserId); err != nil { return err } @@ -1010,25 +953,19 @@ func awsRestjson1_serializeOpHttpBindingsGetBotInput(v *GetBotInput, encoder *ht return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } } - if v.VersionOrAlias == nil { + if v.VersionOrAlias == nil || len(*v.VersionOrAlias) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member versionOrAlias must not be empty")} } if v.VersionOrAlias != nil { - if len(*v.VersionOrAlias) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member versionOrAlias must not be empty")} - } if err := encoder.SetURI("versionOrAlias").String(*v.VersionOrAlias); err != nil { return err } @@ -1088,25 +1025,19 @@ func awsRestjson1_serializeOpHttpBindingsGetBotAliasInput(v *GetBotAliasInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -1166,13 +1097,10 @@ func awsRestjson1_serializeOpHttpBindingsGetBotAliasesInput(v *GetBotAliasesInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } @@ -1244,37 +1172,28 @@ func awsRestjson1_serializeOpHttpBindingsGetBotChannelAssociationInput(v *GetBot return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BotAlias == nil { + if v.BotAlias == nil || len(*v.BotAlias) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} } if v.BotAlias != nil { - if len(*v.BotAlias) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} - } if err := encoder.SetURI("botAlias").String(*v.BotAlias); err != nil { return err } } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -1334,25 +1253,19 @@ func awsRestjson1_serializeOpHttpBindingsGetBotChannelAssociationsInput(v *GetBo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BotAlias == nil { + if v.BotAlias == nil || len(*v.BotAlias) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} } if v.BotAlias != nil { - if len(*v.BotAlias) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} - } if err := encoder.SetURI("botAlias").String(*v.BotAlias); err != nil { return err } } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } @@ -1494,13 +1407,10 @@ func awsRestjson1_serializeOpHttpBindingsGetBotVersionsInput(v *GetBotVersionsIn encoder.SetQuery("maxResults").Integer(*v.MaxResults) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -1564,13 +1474,10 @@ func awsRestjson1_serializeOpHttpBindingsGetBuiltinIntentInput(v *GetBuiltinInte return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Signature == nil { + if v.Signature == nil || len(*v.Signature) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member signature must not be empty")} } if v.Signature != nil { - if len(*v.Signature) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member signature must not be empty")} - } if err := encoder.SetURI("signature").String(*v.Signature); err != nil { return err } @@ -1840,13 +1747,10 @@ func awsRestjson1_serializeOpHttpBindingsGetImportInput(v *GetImportInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ImportId == nil { + if v.ImportId == nil || len(*v.ImportId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member importId must not be empty")} } if v.ImportId != nil { - if len(*v.ImportId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member importId must not be empty")} - } if err := encoder.SetURI("importId").String(*v.ImportId); err != nil { return err } @@ -1906,25 +1810,19 @@ func awsRestjson1_serializeOpHttpBindingsGetIntentInput(v *GetIntentInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } } - if v.Version == nil { + if v.Version == nil || len(*v.Version) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member version must not be empty")} } if v.Version != nil { - if len(*v.Version) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member version must not be empty")} - } if err := encoder.SetURI("version").String(*v.Version); err != nil { return err } @@ -2054,13 +1952,10 @@ func awsRestjson1_serializeOpHttpBindingsGetIntentVersionsInput(v *GetIntentVers encoder.SetQuery("maxResults").Integer(*v.MaxResults) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -2124,25 +2019,19 @@ func awsRestjson1_serializeOpHttpBindingsGetSlotTypeInput(v *GetSlotTypeInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } } - if v.Version == nil { + if v.Version == nil || len(*v.Version) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member version must not be empty")} } if v.Version != nil { - if len(*v.Version) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member version must not be empty")} - } if err := encoder.SetURI("version").String(*v.Version); err != nil { return err } @@ -2272,13 +2161,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSlotTypeVersionsInput(v *GetSlotType encoder.SetQuery("maxResults").Integer(*v.MaxResults) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -2342,13 +2228,10 @@ func awsRestjson1_serializeOpHttpBindingsGetUtterancesViewInput(v *GetUtterances return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } @@ -2356,10 +2239,7 @@ func awsRestjson1_serializeOpHttpBindingsGetUtterancesViewInput(v *GetUtterances if v.BotVersions != nil { for i := range v.BotVersions { - if v.BotVersions[i] == nil { - continue - } - encoder.AddQuery("bot_versions").String(*v.BotVersions[i]) + encoder.AddQuery("bot_versions").String(v.BotVersions[i]) } } @@ -2421,13 +2301,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2498,13 +2375,10 @@ func awsRestjson1_serializeOpHttpBindingsPutBotInput(v *PutBotInput, encoder *ht return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -2578,9 +2452,9 @@ func awsRestjson1_serializeOpDocumentPutBotInput(v *PutBotInput, value smithyjso ok.String(string(v.Locale)) } - if v.NluIntentConfidenceThreshold != nil { + if v.NluIntentConfidenceThreshold != 0 { ok := object.Key("nluIntentConfidenceThreshold") - ok.Double(*v.NluIntentConfidenceThreshold) + ok.Double(v.NluIntentConfidenceThreshold) } if len(v.ProcessBehavior) > 0 { @@ -2665,25 +2539,19 @@ func awsRestjson1_serializeOpHttpBindingsPutBotAliasInput(v *PutBotAliasInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -2790,13 +2658,10 @@ func awsRestjson1_serializeOpHttpBindingsPutIntentInput(v *PutIntentInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -2957,13 +2822,10 @@ func awsRestjson1_serializeOpHttpBindingsPutSlotTypeInput(v *PutSlotTypeInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} - } if err := encoder.SetURI("name").String(*v.Name); err != nil { return err } @@ -3170,13 +3032,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3250,13 +3109,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3264,10 +3120,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -3329,17 +3182,13 @@ func awsRestjson1_serializeDocumentEnumerationValue(v *types.EnumerationValue, v return nil } -func awsRestjson1_serializeDocumentEnumerationValues(v []*types.EnumerationValue, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEnumerationValues(v []types.EnumerationValue, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentEnumerationValue(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentEnumerationValue(&v[i], av); err != nil { return err } } @@ -3403,34 +3252,26 @@ func awsRestjson1_serializeDocumentIntent(v *types.Intent, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentIntentList(v []*types.Intent, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIntentList(v []types.Intent, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentIntent(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentIntent(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentIntentUtteranceList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIntentUtteranceList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3484,17 +3325,13 @@ func awsRestjson1_serializeDocumentLogSettingsRequest(v *types.LogSettingsReques return nil } -func awsRestjson1_serializeDocumentLogSettingsRequestList(v []*types.LogSettingsRequest, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLogSettingsRequestList(v []types.LogSettingsRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentLogSettingsRequest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentLogSettingsRequest(&v[i], av); err != nil { return err } } @@ -3523,17 +3360,13 @@ func awsRestjson1_serializeDocumentMessage(v *types.Message, value smithyjson.Va return nil } -func awsRestjson1_serializeDocumentMessageList(v []*types.Message, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMessageList(v []types.Message, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMessage(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMessage(&v[i], av); err != nil { return err } } @@ -3625,17 +3458,13 @@ func awsRestjson1_serializeDocumentSlot(v *types.Slot, value smithyjson.Value) e return nil } -func awsRestjson1_serializeDocumentSlotList(v []*types.Slot, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSlotList(v []types.Slot, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSlot(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSlot(&v[i], av); err != nil { return err } } @@ -3656,17 +3485,13 @@ func awsRestjson1_serializeDocumentSlotTypeConfiguration(v *types.SlotTypeConfig return nil } -func awsRestjson1_serializeDocumentSlotTypeConfigurations(v []*types.SlotTypeConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSlotTypeConfigurations(v []types.SlotTypeConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSlotTypeConfiguration(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSlotTypeConfiguration(&v[i], av); err != nil { return err } } @@ -3685,17 +3510,13 @@ func awsRestjson1_serializeDocumentSlotTypeRegexConfiguration(v *types.SlotTypeR return nil } -func awsRestjson1_serializeDocumentSlotUtteranceList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSlotUtteranceList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3719,17 +3540,13 @@ func awsRestjson1_serializeDocumentStatement(v *types.Statement, value smithyjso return nil } -func awsRestjson1_serializeDocumentSynonymList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSynonymList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3751,17 +3568,13 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/lexmodelbuildingservice/types/types.go b/service/lexmodelbuildingservice/types/types.go index 5ba7d75b3a1..9cc3d8509f0 100644 --- a/service/lexmodelbuildingservice/types/types.go +++ b/service/lexmodelbuildingservice/types/types.go @@ -44,7 +44,7 @@ type BotChannelAssociation struct { BotAlias *string // Provides information necessary to communicate with the messaging platform. - BotConfiguration map[string]*string + BotConfiguration map[string]string // The name of the Amazon Lex bot to which this association is being made. // Currently, Amazon Lex supports associations with Facebook and Slack, and Twilio. @@ -170,7 +170,7 @@ type ConversationLogsRequest struct { // conversation audio, or both. // // This member is required. - LogSettings []*LogSettingsRequest + LogSettings []LogSettingsRequest } // Contains information about conversation log settings. @@ -181,7 +181,7 @@ type ConversationLogsResponse struct { IamRoleArn *string // The settings for your conversation logs. You can log text, audio, or both. - LogSettings []*LogSettingsResponse + LogSettings []LogSettingsResponse } // Each slot type can have a set of values. Each enumeration value represents a @@ -202,7 +202,7 @@ type EnumerationValue struct { Value *string // Additional values related to the slot type value. - Synonyms []*string + Synonyms []string } // A prompt for additional activity after an intent is fulfilled. For example, @@ -401,7 +401,7 @@ type Prompt struct { // Language (SSML). // // This member is required. - Messages []*Message + Messages []Message // A response card. Amazon Lex uses this prompt at runtime, in the PostText API // response. It substitutes session attributes and slot values for placeholders in @@ -459,7 +459,7 @@ type Slot struct { // request for a slot value, you can provide those utterances to improve accuracy. // This is optional. In most cases, Amazon Lex is capable of understanding user // utterances. - SampleUtterances []*string + SampleUtterances []string // The type of the slot, either a custom slot type that you defined or one of the // built-in slot types. @@ -532,7 +532,7 @@ type Statement struct { // A collection of message objects. // // This member is required. - Messages []*Message + Messages []Message // At runtime, if the client is using the PostText // (http://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html) API, Amazon @@ -587,5 +587,5 @@ type UtteranceList struct { // One or more UtteranceData objects that contain information about the utterances // that have been made to a bot. The maximum number of object is 100. - Utterances []*UtteranceData + Utterances []UtteranceData } diff --git a/service/lexmodelbuildingservice/validators.go b/service/lexmodelbuildingservice/validators.go index cc9b8d40603..05dbfe3b324 100644 --- a/service/lexmodelbuildingservice/validators.go +++ b/service/lexmodelbuildingservice/validators.go @@ -881,13 +881,13 @@ func validateEnumerationValue(v *types.EnumerationValue) error { } } -func validateEnumerationValues(v []*types.EnumerationValue) error { +func validateEnumerationValues(v []types.EnumerationValue) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "EnumerationValues"} for i := range v { - if err := validateEnumerationValue(v[i]); err != nil { + if err := validateEnumerationValue(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -962,13 +962,13 @@ func validateIntent(v *types.Intent) error { } } -func validateIntentList(v []*types.Intent) error { +func validateIntentList(v []types.Intent) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "IntentList"} for i := range v { - if err := validateIntent(v[i]); err != nil { + if err := validateIntent(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1018,13 +1018,13 @@ func validateLogSettingsRequest(v *types.LogSettingsRequest) error { } } -func validateLogSettingsRequestList(v []*types.LogSettingsRequest) error { +func validateLogSettingsRequestList(v []types.LogSettingsRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LogSettingsRequestList"} for i := range v { - if err := validateLogSettingsRequest(v[i]); err != nil { + if err := validateLogSettingsRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1053,13 +1053,13 @@ func validateMessage(v *types.Message) error { } } -func validateMessageList(v []*types.Message) error { +func validateMessageList(v []types.Message) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MessageList"} for i := range v { - if err := validateMessage(v[i]); err != nil { + if err := validateMessage(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1115,13 +1115,13 @@ func validateSlot(v *types.Slot) error { } } -func validateSlotList(v []*types.Slot) error { +func validateSlotList(v []types.Slot) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SlotList"} for i := range v { - if err := validateSlot(v[i]); err != nil { + if err := validateSlot(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1149,13 +1149,13 @@ func validateSlotTypeConfiguration(v *types.SlotTypeConfiguration) error { } } -func validateSlotTypeConfigurations(v []*types.SlotTypeConfiguration) error { +func validateSlotTypeConfigurations(v []types.SlotTypeConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SlotTypeConfigurations"} for i := range v { - if err := validateSlotTypeConfiguration(v[i]); err != nil { + if err := validateSlotTypeConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1218,13 +1218,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/lexruntimeservice/api_op_GetSession.go b/service/lexruntimeservice/api_op_GetSession.go index 3e6dcc3a958..15d289b92a9 100644 --- a/service/lexruntimeservice/api_op_GetSession.go +++ b/service/lexruntimeservice/api_op_GetSession.go @@ -61,12 +61,12 @@ type GetSessionOutput struct { // session, the recentIntentSummaryView operation contains information about the // last three intents used. If you set the checkpointLabelFilter parameter in the // request, the array contains only the intents with the specified label. - RecentIntentSummaryView []*types.IntentSummary + RecentIntentSummaryView []types.IntentSummary // Map of key/value pairs representing the session-specific context information. It // contains application information passed between Amazon Lex and a client // application. - SessionAttributes map[string]*string + SessionAttributes map[string]string // A unique identifier for the session. SessionId *string diff --git a/service/lexruntimeservice/api_op_PostText.go b/service/lexruntimeservice/api_op_PostText.go index fcb76b3de1f..a1a931c15eb 100644 --- a/service/lexruntimeservice/api_op_PostText.go +++ b/service/lexruntimeservice/api_op_PostText.go @@ -128,12 +128,12 @@ type PostTextInput struct { // request attributes with the prefix x-amz-lex:. For more information, see Setting // Request Attributes // (https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#context-mgmt-request-attribs). - RequestAttributes map[string]*string + RequestAttributes map[string]string // Application-specific information passed between Amazon Lex and a client // application. For more information, see Setting Session Attributes // (https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#context-mgmt-session-attribs). - SessionAttributes map[string]*string + SessionAttributes map[string]string } type PostTextOutput struct { @@ -142,7 +142,7 @@ type PostTextOutput struct { // Each alternative includes a score that indicates how confident Amazon Lex is // that the intent matches the user's intent. The intents are sorted by the // confidence score. - AlternativeIntents []*types.PredictedIntent + AlternativeIntents []types.PredictedIntent // The version of the bot that responded to the conversation. You can use this // information to help determine if one version of a bot is performing better than @@ -245,7 +245,7 @@ type PostTextOutput struct { SentimentResponse *types.SentimentResponse // A map of key-value pairs representing the session-specific context information. - SessionAttributes map[string]*string + SessionAttributes map[string]string // A unique identifier for the session. SessionId *string @@ -263,7 +263,7 @@ type PostTextOutput struct { // TOP_RESOLUTION Amazon Lex returns the first value in the resolution list or, if // there is no resolution list, null. If you don't specify a // valueSelectionStrategy, the default is ORIGINAL_VALUE. - Slots map[string]*string + Slots map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lexruntimeservice/api_op_PutSession.go b/service/lexruntimeservice/api_op_PutSession.go index a7db7b81440..7da37bd03c4 100644 --- a/service/lexruntimeservice/api_op_PutSession.go +++ b/service/lexruntimeservice/api_op_PutSession.go @@ -100,12 +100,12 @@ type PutSessionInput struct { // the old summary view. For example, if a GetSession request returns three intents // in the summary view and you call PutSession with one intent in the summary view, // the next call to GetSession will only return one intent. - RecentIntentSummaryView []*types.IntentSummary + RecentIntentSummaryView []types.IntentSummary // Map of key/value pairs representing the session-specific context information. It // contains application information passed between Amazon Lex and a client // application. - SessionAttributes map[string]*string + SessionAttributes map[string]string } type PutSessionOutput struct { diff --git a/service/lexruntimeservice/deserializers.go b/service/lexruntimeservice/deserializers.go index e1fc472b379..8004326a5ae 100644 --- a/service/lexruntimeservice/deserializers.go +++ b/service/lexruntimeservice/deserializers.go @@ -170,7 +170,7 @@ func awsRestjson1_deserializeOpDocumentDeleteSessionOutput(v **DeleteSessionOutp if !ok { return fmt.Errorf("expected BotAlias to be of type string, got %T instead", value) } - sv.BotAlias = &jtv + sv.BotAlias = ptr.String(jtv) } case "botName": @@ -179,7 +179,7 @@ func awsRestjson1_deserializeOpDocumentDeleteSessionOutput(v **DeleteSessionOutp if !ok { return fmt.Errorf("expected BotName to be of type string, got %T instead", value) } - sv.BotName = &jtv + sv.BotName = ptr.String(jtv) } case "sessionId": @@ -188,7 +188,7 @@ func awsRestjson1_deserializeOpDocumentDeleteSessionOutput(v **DeleteSessionOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SessionId = &jtv + sv.SessionId = ptr.String(jtv) } case "userId": @@ -197,7 +197,7 @@ func awsRestjson1_deserializeOpDocumentDeleteSessionOutput(v **DeleteSessionOutp if !ok { return fmt.Errorf("expected UserId to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } default: @@ -372,7 +372,7 @@ func awsRestjson1_deserializeOpDocumentGetSessionOutput(v **GetSessionOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SessionId = &jtv + sv.SessionId = ptr.String(jtv) } default: @@ -774,7 +774,7 @@ func awsRestjson1_deserializeOpDocumentPostTextOutput(v **PostTextOutput, value if !ok { return fmt.Errorf("expected BotVersion to be of type string, got %T instead", value) } - sv.BotVersion = &jtv + sv.BotVersion = ptr.String(jtv) } case "dialogState": @@ -792,7 +792,7 @@ func awsRestjson1_deserializeOpDocumentPostTextOutput(v **PostTextOutput, value if !ok { return fmt.Errorf("expected IntentName to be of type string, got %T instead", value) } - sv.IntentName = &jtv + sv.IntentName = ptr.String(jtv) } case "message": @@ -801,7 +801,7 @@ func awsRestjson1_deserializeOpDocumentPostTextOutput(v **PostTextOutput, value if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "messageFormat": @@ -839,7 +839,7 @@ func awsRestjson1_deserializeOpDocumentPostTextOutput(v **PostTextOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SessionId = &jtv + sv.SessionId = ptr.String(jtv) } case "slots": @@ -853,7 +853,7 @@ func awsRestjson1_deserializeOpDocumentPostTextOutput(v **PostTextOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SlotToElicit = &jtv + sv.SlotToElicit = ptr.String(jtv) } default: @@ -1488,7 +1488,7 @@ func awsRestjson1_deserializeDocumentBadGatewayException(v **types.BadGatewayExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1528,7 +1528,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1568,7 +1568,7 @@ func awsRestjson1_deserializeDocumentButton(v **types.Button, value interface{}) if !ok { return fmt.Errorf("expected ButtonTextStringWithLength to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } case "value": @@ -1577,7 +1577,7 @@ func awsRestjson1_deserializeDocumentButton(v **types.Button, value interface{}) if !ok { return fmt.Errorf("expected ButtonValueStringWithLength to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -1617,7 +1617,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1657,7 +1657,7 @@ func awsRestjson1_deserializeDocumentDependencyFailedException(v **types.Depende if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1706,7 +1706,7 @@ func awsRestjson1_deserializeDocumentDialogAction(v **types.DialogAction, value if !ok { return fmt.Errorf("expected IntentName to be of type string, got %T instead", value) } - sv.IntentName = &jtv + sv.IntentName = ptr.String(jtv) } case "message": @@ -1715,7 +1715,7 @@ func awsRestjson1_deserializeDocumentDialogAction(v **types.DialogAction, value if !ok { return fmt.Errorf("expected Text to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "messageFormat": @@ -1738,7 +1738,7 @@ func awsRestjson1_deserializeDocumentDialogAction(v **types.DialogAction, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SlotToElicit = &jtv + sv.SlotToElicit = ptr.String(jtv) } case "type": @@ -1787,7 +1787,7 @@ func awsRestjson1_deserializeDocumentGenericAttachment(v **types.GenericAttachme if !ok { return fmt.Errorf("expected StringUrlWithLength to be of type string, got %T instead", value) } - sv.AttachmentLinkUrl = &jtv + sv.AttachmentLinkUrl = ptr.String(jtv) } case "buttons": @@ -1801,7 +1801,7 @@ func awsRestjson1_deserializeDocumentGenericAttachment(v **types.GenericAttachme if !ok { return fmt.Errorf("expected StringUrlWithLength to be of type string, got %T instead", value) } - sv.ImageUrl = &jtv + sv.ImageUrl = ptr.String(jtv) } case "subTitle": @@ -1810,7 +1810,7 @@ func awsRestjson1_deserializeDocumentGenericAttachment(v **types.GenericAttachme if !ok { return fmt.Errorf("expected StringWithLength to be of type string, got %T instead", value) } - sv.SubTitle = &jtv + sv.SubTitle = ptr.String(jtv) } case "title": @@ -1819,7 +1819,7 @@ func awsRestjson1_deserializeDocumentGenericAttachment(v **types.GenericAttachme if !ok { return fmt.Errorf("expected StringWithLength to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } default: @@ -1831,7 +1831,7 @@ func awsRestjson1_deserializeDocumentGenericAttachment(v **types.GenericAttachme return nil } -func awsRestjson1_deserializeDocumentGenericAttachmentList(v *[]*types.GenericAttachment, value interface{}) error { +func awsRestjson1_deserializeDocumentGenericAttachmentList(v *[]types.GenericAttachment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1844,18 +1844,20 @@ func awsRestjson1_deserializeDocumentGenericAttachmentList(v *[]*types.GenericAt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GenericAttachment + var cv []types.GenericAttachment if *v == nil { - cv = []*types.GenericAttachment{} + cv = []types.GenericAttachment{} } else { cv = *v } for _, value := range shape { - var col *types.GenericAttachment - if err := awsRestjson1_deserializeDocumentGenericAttachment(&col, value); err != nil { + var col types.GenericAttachment + destAddr := &col + if err := awsRestjson1_deserializeDocumentGenericAttachment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1895,7 +1897,7 @@ func awsRestjson1_deserializeDocumentIntentConfidence(v **types.IntentConfidence if err != nil { return err } - sv.Score = &f64 + sv.Score = f64 } default: @@ -1907,7 +1909,7 @@ func awsRestjson1_deserializeDocumentIntentConfidence(v **types.IntentConfidence return nil } -func awsRestjson1_deserializeDocumentIntentList(v *[]*types.PredictedIntent, value interface{}) error { +func awsRestjson1_deserializeDocumentIntentList(v *[]types.PredictedIntent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1920,18 +1922,20 @@ func awsRestjson1_deserializeDocumentIntentList(v *[]*types.PredictedIntent, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PredictedIntent + var cv []types.PredictedIntent if *v == nil { - cv = []*types.PredictedIntent{} + cv = []types.PredictedIntent{} } else { cv = *v } for _, value := range shape { - var col *types.PredictedIntent - if err := awsRestjson1_deserializeDocumentPredictedIntent(&col, value); err != nil { + var col types.PredictedIntent + destAddr := &col + if err := awsRestjson1_deserializeDocumentPredictedIntent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1967,7 +1971,7 @@ func awsRestjson1_deserializeDocumentIntentSummary(v **types.IntentSummary, valu if !ok { return fmt.Errorf("expected IntentSummaryCheckpointLabel to be of type string, got %T instead", value) } - sv.CheckpointLabel = &jtv + sv.CheckpointLabel = ptr.String(jtv) } case "confirmationStatus": @@ -2003,7 +2007,7 @@ func awsRestjson1_deserializeDocumentIntentSummary(v **types.IntentSummary, valu if !ok { return fmt.Errorf("expected IntentName to be of type string, got %T instead", value) } - sv.IntentName = &jtv + sv.IntentName = ptr.String(jtv) } case "slots": @@ -2017,7 +2021,7 @@ func awsRestjson1_deserializeDocumentIntentSummary(v **types.IntentSummary, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SlotToElicit = &jtv + sv.SlotToElicit = ptr.String(jtv) } default: @@ -2029,7 +2033,7 @@ func awsRestjson1_deserializeDocumentIntentSummary(v **types.IntentSummary, valu return nil } -func awsRestjson1_deserializeDocumentIntentSummaryList(v *[]*types.IntentSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentIntentSummaryList(v *[]types.IntentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2042,18 +2046,20 @@ func awsRestjson1_deserializeDocumentIntentSummaryList(v *[]*types.IntentSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IntentSummary + var cv []types.IntentSummary if *v == nil { - cv = []*types.IntentSummary{} + cv = []types.IntentSummary{} } else { cv = *v } for _, value := range shape { - var col *types.IntentSummary - if err := awsRestjson1_deserializeDocumentIntentSummary(&col, value); err != nil { + var col types.IntentSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentIntentSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2089,7 +2095,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2129,7 +2135,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryAfterSeconds": @@ -2138,7 +2144,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RetryAfterSeconds = &jtv + sv.RetryAfterSeconds = ptr.String(jtv) } default: @@ -2150,7 +2156,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsRestjson1_deserializeDocumentListOfButtons(v *[]*types.Button, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfButtons(v *[]types.Button, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2163,18 +2169,20 @@ func awsRestjson1_deserializeDocumentListOfButtons(v *[]*types.Button, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Button + var cv []types.Button if *v == nil { - cv = []*types.Button{} + cv = []types.Button{} } else { cv = *v } for _, value := range shape { - var col *types.Button - if err := awsRestjson1_deserializeDocumentButton(&col, value); err != nil { + var col types.Button + destAddr := &col + if err := awsRestjson1_deserializeDocumentButton(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2210,7 +2218,7 @@ func awsRestjson1_deserializeDocumentLoopDetectedException(v **types.LoopDetecte if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2250,7 +2258,7 @@ func awsRestjson1_deserializeDocumentNotAcceptableException(v **types.NotAccepta if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2290,7 +2298,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2330,7 +2338,7 @@ func awsRestjson1_deserializeDocumentPredictedIntent(v **types.PredictedIntent, if !ok { return fmt.Errorf("expected IntentName to be of type string, got %T instead", value) } - sv.IntentName = &jtv + sv.IntentName = ptr.String(jtv) } case "nluIntentConfidence": @@ -2380,7 +2388,7 @@ func awsRestjson1_deserializeDocumentRequestTimeoutException(v **types.RequestTi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2434,7 +2442,7 @@ func awsRestjson1_deserializeDocumentResponseCard(v **types.ResponseCard, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -2474,7 +2482,7 @@ func awsRestjson1_deserializeDocumentSentimentResponse(v **types.SentimentRespon if !ok { return fmt.Errorf("expected SentimentLabel to be of type string, got %T instead", value) } - sv.SentimentLabel = &jtv + sv.SentimentLabel = ptr.String(jtv) } case "sentimentScore": @@ -2483,7 +2491,7 @@ func awsRestjson1_deserializeDocumentSentimentResponse(v **types.SentimentRespon if !ok { return fmt.Errorf("expected SentimentScore to be of type string, got %T instead", value) } - sv.SentimentScore = &jtv + sv.SentimentScore = ptr.String(jtv) } default: @@ -2495,7 +2503,7 @@ func awsRestjson1_deserializeDocumentSentimentResponse(v **types.SentimentRespon return nil } -func awsRestjson1_deserializeDocumentStringMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStringMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2508,21 +2516,21 @@ func awsRestjson1_deserializeDocumentStringMap(v *map[string]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -2559,7 +2567,7 @@ func awsRestjson1_deserializeDocumentUnsupportedMediaTypeException(v **types.Uns if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/lexruntimeservice/go.mod b/service/lexruntimeservice/go.mod index 75626ffd0c9..327c3902bfb 100644 --- a/service/lexruntimeservice/go.mod +++ b/service/lexruntimeservice/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/lexruntimeservice go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/lexruntimeservice/serializers.go b/service/lexruntimeservice/serializers.go index 202370145ab..91b371fd951 100644 --- a/service/lexruntimeservice/serializers.go +++ b/service/lexruntimeservice/serializers.go @@ -67,37 +67,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSessionInput(v *DeleteSessionInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BotAlias == nil { + if v.BotAlias == nil || len(*v.BotAlias) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} } if v.BotAlias != nil { - if len(*v.BotAlias) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} - } if err := encoder.SetURI("botAlias").String(*v.BotAlias); err != nil { return err } } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member userId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member userId must not be empty")} - } if err := encoder.SetURI("userId").String(*v.UserId); err != nil { return err } @@ -157,25 +148,19 @@ func awsRestjson1_serializeOpHttpBindingsGetSessionInput(v *GetSessionInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BotAlias == nil { + if v.BotAlias == nil || len(*v.BotAlias) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} } if v.BotAlias != nil { - if len(*v.BotAlias) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} - } if err := encoder.SetURI("botAlias").String(*v.BotAlias); err != nil { return err } } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } @@ -185,13 +170,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSessionInput(v *GetSessionInput, enc encoder.SetQuery("checkpointLabelFilter").String(*v.CheckpointLabelFilter) } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member userId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member userId must not be empty")} - } if err := encoder.SetURI("userId").String(*v.UserId); err != nil { return err } @@ -262,67 +244,50 @@ func awsRestjson1_serializeOpHttpBindingsPostContentInput(v *PostContentInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Accept != nil { + if v.Accept != nil && len(*v.Accept) > 0 { locationName := "Accept" - if len(*v.Accept) > 0 { - encoder.SetHeader(locationName).String(*v.Accept) - } + encoder.SetHeader(locationName).String(*v.Accept) } - if v.BotAlias == nil { + if v.BotAlias == nil || len(*v.BotAlias) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} } if v.BotAlias != nil { - if len(*v.BotAlias) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} - } if err := encoder.SetURI("botAlias").String(*v.BotAlias); err != nil { return err } } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } } - if v.ContentType != nil { + if v.ContentType != nil && len(*v.ContentType) > 0 { locationName := "Content-Type" - if len(*v.ContentType) > 0 { - encoder.SetHeader(locationName).String(*v.ContentType) - } + encoder.SetHeader(locationName).String(*v.ContentType) } - if v.RequestAttributes != nil { + if v.RequestAttributes != nil && len(*v.RequestAttributes) > 0 { locationName := "X-Amz-Lex-Request-Attributes" - if len(*v.RequestAttributes) > 0 { - encoded := ptr.String(base64.StdEncoding.EncodeToString([]byte(*v.RequestAttributes))) - encoder.SetHeader(locationName).String(*encoded) - } + encoded := ptr.String(base64.StdEncoding.EncodeToString([]byte(*v.RequestAttributes))) + encoder.SetHeader(locationName).String(*encoded) } - if v.SessionAttributes != nil { + if v.SessionAttributes != nil && len(*v.SessionAttributes) > 0 { locationName := "X-Amz-Lex-Session-Attributes" - if len(*v.SessionAttributes) > 0 { - encoded := ptr.String(base64.StdEncoding.EncodeToString([]byte(*v.SessionAttributes))) - encoder.SetHeader(locationName).String(*encoded) - } + encoded := ptr.String(base64.StdEncoding.EncodeToString([]byte(*v.SessionAttributes))) + encoder.SetHeader(locationName).String(*encoded) } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member userId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member userId must not be empty")} - } if err := encoder.SetURI("userId").String(*v.UserId); err != nil { return err } @@ -393,37 +358,28 @@ func awsRestjson1_serializeOpHttpBindingsPostTextInput(v *PostTextInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BotAlias == nil { + if v.BotAlias == nil || len(*v.BotAlias) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} } if v.BotAlias != nil { - if len(*v.BotAlias) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} - } if err := encoder.SetURI("botAlias").String(*v.BotAlias); err != nil { return err } } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member userId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member userId must not be empty")} - } if err := encoder.SetURI("userId").String(*v.UserId); err != nil { return err } @@ -520,44 +476,33 @@ func awsRestjson1_serializeOpHttpBindingsPutSessionInput(v *PutSessionInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Accept != nil { + if v.Accept != nil && len(*v.Accept) > 0 { locationName := "Accept" - if len(*v.Accept) > 0 { - encoder.SetHeader(locationName).String(*v.Accept) - } + encoder.SetHeader(locationName).String(*v.Accept) } - if v.BotAlias == nil { + if v.BotAlias == nil || len(*v.BotAlias) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} } if v.BotAlias != nil { - if len(*v.BotAlias) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botAlias must not be empty")} - } if err := encoder.SetURI("botAlias").String(*v.BotAlias); err != nil { return err } } - if v.BotName == nil { + if v.BotName == nil || len(*v.BotName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} } if v.BotName != nil { - if len(*v.BotName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member botName must not be empty")} - } if err := encoder.SetURI("botName").String(*v.BotName); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member userId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member userId must not be empty")} - } if err := encoder.SetURI("userId").String(*v.UserId); err != nil { return err } @@ -682,34 +627,26 @@ func awsRestjson1_serializeDocumentIntentSummary(v *types.IntentSummary, value s return nil } -func awsRestjson1_serializeDocumentIntentSummaryList(v []*types.IntentSummary, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIntentSummaryList(v []types.IntentSummary, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentIntentSummary(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentIntentSummary(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentStringMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStringMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/lexruntimeservice/types/types.go b/service/lexruntimeservice/types/types.go index 156f0b1eb1e..7b8550dd7ba 100644 --- a/service/lexruntimeservice/types/types.go +++ b/service/lexruntimeservice/types/types.go @@ -84,7 +84,7 @@ type DialogAction struct { SlotToElicit *string // Map of the slots that have been gathered and their values. - Slots map[string]*string + Slots map[string]string } // Represents an option rendered to the user when a prompt is shown. It could be an @@ -95,7 +95,7 @@ type GenericAttachment struct { AttachmentLinkUrl *string // The list of options to show to the user. - Buttons []*Button + Buttons []Button // The URL of an image that is displayed to the user. ImageUrl *string @@ -114,7 +114,7 @@ type IntentConfidence struct { // A score that indicates how confident Amazon Lex is that an intent satisfies the // user's intent. Ranges between 0.00 and 1.00. Higher scores indicate higher // confidence. - Score *float64 + Score float64 } // Provides information about the state of an intent. You can use this information @@ -185,7 +185,7 @@ type IntentSummary struct { SlotToElicit *string // Map of the slots that have been gathered and their values. - Slots map[string]*string + Slots map[string]string } // An intent that Amazon Lex suggests satisfies the user's intent. Includes the @@ -201,7 +201,7 @@ type PredictedIntent struct { NluIntentConfidence *IntentConfidence // The slot and slot values associated with the predicted intent. - Slots map[string]*string + Slots map[string]string } // If you configure a response card when creating your bots, Amazon Lex substitutes @@ -214,7 +214,7 @@ type ResponseCard struct { ContentType ContentType // An array of attachment objects representing options. - GenericAttachments []*GenericAttachment + GenericAttachments []GenericAttachment // The version of the response card format. Version *string diff --git a/service/lexruntimeservice/validators.go b/service/lexruntimeservice/validators.go index d738e4606bb..86cf9add7bb 100644 --- a/service/lexruntimeservice/validators.go +++ b/service/lexruntimeservice/validators.go @@ -160,13 +160,13 @@ func validateIntentSummary(v *types.IntentSummary) error { } } -func validateIntentSummaryList(v []*types.IntentSummary) error { +func validateIntentSummaryList(v []types.IntentSummary) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "IntentSummaryList"} for i := range v { - if err := validateIntentSummary(v[i]); err != nil { + if err := validateIntentSummary(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/licensemanager/api_op_CreateLicenseConfiguration.go b/service/licensemanager/api_op_CreateLicenseConfiguration.go index fc98d68ea13..7b06fb6481f 100644 --- a/service/licensemanager/api_op_CreateLicenseConfiguration.go +++ b/service/licensemanager/api_op_CreateLicenseConfiguration.go @@ -75,13 +75,13 @@ type CreateLicenseConfigurationInput struct { // licenseAffinityToHost is days and the range is 1 to 180. The possible values for // allowedTenancy are EC2-Default, EC2-DedicatedHost, and EC2-DedicatedInstance. // The possible values for honorVcpuOptimization are True and False. - LicenseRules []*string + LicenseRules []string // Product information. - ProductInformationList []*types.ProductInformation + ProductInformationList []types.ProductInformation // Tags to add to the license configuration. - Tags []*types.Tag + Tags []types.Tag } type CreateLicenseConfigurationOutput struct { diff --git a/service/licensemanager/api_op_GetLicenseConfiguration.go b/service/licensemanager/api_op_GetLicenseConfiguration.go index 8b52bb73243..4a46da4e818 100644 --- a/service/licensemanager/api_op_GetLicenseConfiguration.go +++ b/service/licensemanager/api_op_GetLicenseConfiguration.go @@ -41,7 +41,7 @@ type GetLicenseConfigurationOutput struct { AutomatedDiscoveryInformation *types.AutomatedDiscoveryInformation // Summaries of the licenses consumed by resources. - ConsumedLicenseSummaryList []*types.ConsumedLicenseSummary + ConsumedLicenseSummaryList []types.ConsumedLicenseSummary // Number of licenses assigned to resources. ConsumedLicenses *int64 @@ -65,10 +65,10 @@ type GetLicenseConfigurationOutput struct { LicenseCountingType types.LicenseCountingType // License rules. - LicenseRules []*string + LicenseRules []string // Summaries of the managed resources. - ManagedResourceSummaryList []*types.ManagedResourceSummary + ManagedResourceSummaryList []types.ManagedResourceSummary // Name of the license configuration. Name *string @@ -77,13 +77,13 @@ type GetLicenseConfigurationOutput struct { OwnerAccountId *string // Product information. - ProductInformationList []*types.ProductInformation + ProductInformationList []types.ProductInformation // License configuration status. Status *string // Tags for the license configuration. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/licensemanager/api_op_ListAssociationsForLicenseConfiguration.go b/service/licensemanager/api_op_ListAssociationsForLicenseConfiguration.go index ff5dd7164a2..dc5563e079f 100644 --- a/service/licensemanager/api_op_ListAssociationsForLicenseConfiguration.go +++ b/service/licensemanager/api_op_ListAssociationsForLicenseConfiguration.go @@ -47,7 +47,7 @@ type ListAssociationsForLicenseConfigurationInput struct { type ListAssociationsForLicenseConfigurationOutput struct { // Information about the associations for the license configuration. - LicenseConfigurationAssociations []*types.LicenseConfigurationAssociation + LicenseConfigurationAssociations []types.LicenseConfigurationAssociation // Token for the next set of results. NextToken *string diff --git a/service/licensemanager/api_op_ListFailuresForLicenseConfigurationOperations.go b/service/licensemanager/api_op_ListFailuresForLicenseConfigurationOperations.go index a2ee495a4a9..e17d2969e6e 100644 --- a/service/licensemanager/api_op_ListFailuresForLicenseConfigurationOperations.go +++ b/service/licensemanager/api_op_ListFailuresForLicenseConfigurationOperations.go @@ -44,7 +44,7 @@ type ListFailuresForLicenseConfigurationOperationsInput struct { type ListFailuresForLicenseConfigurationOperationsOutput struct { // License configuration operations that failed. - LicenseOperationFailureList []*types.LicenseOperationFailure + LicenseOperationFailureList []types.LicenseOperationFailure // Token for the next set of results. NextToken *string diff --git a/service/licensemanager/api_op_ListLicenseConfigurations.go b/service/licensemanager/api_op_ListLicenseConfigurations.go index 331602c1b73..68a39ffe9e1 100644 --- a/service/licensemanager/api_op_ListLicenseConfigurations.go +++ b/service/licensemanager/api_op_ListLicenseConfigurations.go @@ -43,10 +43,10 @@ type ListLicenseConfigurationsInput struct { // * usagelimitExceeded - A Boolean value that indicates whether the // available licenses have been exceeded. Logical operators are EQUALS | // NOT_EQUALS. - Filters []*types.Filter + Filters []types.Filter // Amazon Resource Names (ARN) of the license configurations. - LicenseConfigurationArns []*string + LicenseConfigurationArns []string // Maximum number of results to return in a single call. MaxResults *int32 @@ -58,7 +58,7 @@ type ListLicenseConfigurationsInput struct { type ListLicenseConfigurationsOutput struct { // Information about the license configurations. - LicenseConfigurations []*types.LicenseConfiguration + LicenseConfigurations []types.LicenseConfiguration // Token for the next set of results. NextToken *string diff --git a/service/licensemanager/api_op_ListLicenseSpecificationsForResource.go b/service/licensemanager/api_op_ListLicenseSpecificationsForResource.go index 968a78296fe..dcfb1698b23 100644 --- a/service/licensemanager/api_op_ListLicenseSpecificationsForResource.go +++ b/service/licensemanager/api_op_ListLicenseSpecificationsForResource.go @@ -45,7 +45,7 @@ type ListLicenseSpecificationsForResourceInput struct { type ListLicenseSpecificationsForResourceOutput struct { // License configurations associated with a resource. - LicenseSpecifications []*types.LicenseSpecification + LicenseSpecifications []types.LicenseSpecification // Token for the next set of results. NextToken *string diff --git a/service/licensemanager/api_op_ListResourceInventory.go b/service/licensemanager/api_op_ListResourceInventory.go index f749b27e042..5d368e282d5 100644 --- a/service/licensemanager/api_op_ListResourceInventory.go +++ b/service/licensemanager/api_op_ListResourceInventory.go @@ -48,7 +48,7 @@ type ListResourceInventoryInput struct { // // * resource_id - The ID of the resource. // Logical operators are EQUALS | NOT_EQUALS. - Filters []*types.InventoryFilter + Filters []types.InventoryFilter // Maximum number of results to return in a single call. MaxResults *int32 @@ -63,7 +63,7 @@ type ListResourceInventoryOutput struct { NextToken *string // Information about the resources. - ResourceInventoryList []*types.ResourceInventory + ResourceInventoryList []types.ResourceInventory // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/licensemanager/api_op_ListTagsForResource.go b/service/licensemanager/api_op_ListTagsForResource.go index 9b1deddc687..be0a057e465 100644 --- a/service/licensemanager/api_op_ListTagsForResource.go +++ b/service/licensemanager/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // Information about the tags. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/licensemanager/api_op_ListUsageForLicenseConfiguration.go b/service/licensemanager/api_op_ListUsageForLicenseConfiguration.go index ae6b5e6d7b3..8a8e7297aa4 100644 --- a/service/licensemanager/api_op_ListUsageForLicenseConfiguration.go +++ b/service/licensemanager/api_op_ListUsageForLicenseConfiguration.go @@ -49,7 +49,7 @@ type ListUsageForLicenseConfigurationInput struct { // // * resourceAccount - The ID of the account // that owns the resource. Logical operators are EQUALS | NOT_EQUALS. - Filters []*types.Filter + Filters []types.Filter // Maximum number of results to return in a single call. MaxResults *int32 @@ -61,7 +61,7 @@ type ListUsageForLicenseConfigurationInput struct { type ListUsageForLicenseConfigurationOutput struct { // Information about the license configurations. - LicenseConfigurationUsageList []*types.LicenseConfigurationUsage + LicenseConfigurationUsageList []types.LicenseConfigurationUsage // Token for the next set of results. NextToken *string diff --git a/service/licensemanager/api_op_TagResource.go b/service/licensemanager/api_op_TagResource.go index 81a785b4c6a..570771b41ec 100644 --- a/service/licensemanager/api_op_TagResource.go +++ b/service/licensemanager/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // One or more tags. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/licensemanager/api_op_UntagResource.go b/service/licensemanager/api_op_UntagResource.go index 832e6e1c978..a6a101783f0 100644 --- a/service/licensemanager/api_op_UntagResource.go +++ b/service/licensemanager/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // Keys identifying the tags to remove. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/licensemanager/api_op_UpdateLicenseConfiguration.go b/service/licensemanager/api_op_UpdateLicenseConfiguration.go index 317c896c264..cef8432f754 100644 --- a/service/licensemanager/api_op_UpdateLicenseConfiguration.go +++ b/service/licensemanager/api_op_UpdateLicenseConfiguration.go @@ -48,13 +48,13 @@ type UpdateLicenseConfigurationInput struct { // New license rule. The only rule that you can add after you create a license // configuration is licenseAffinityToHost. - LicenseRules []*string + LicenseRules []string // New name of the license configuration. Name *string // New product information. - ProductInformationList []*types.ProductInformation + ProductInformationList []types.ProductInformation } type UpdateLicenseConfigurationOutput struct { diff --git a/service/licensemanager/api_op_UpdateLicenseSpecificationsForResource.go b/service/licensemanager/api_op_UpdateLicenseSpecificationsForResource.go index ed7ec168636..e7c4c0e5f64 100644 --- a/service/licensemanager/api_op_UpdateLicenseSpecificationsForResource.go +++ b/service/licensemanager/api_op_UpdateLicenseSpecificationsForResource.go @@ -39,10 +39,10 @@ type UpdateLicenseSpecificationsForResourceInput struct { ResourceArn *string // ARNs of the license configurations to add. - AddLicenseSpecifications []*types.LicenseSpecification + AddLicenseSpecifications []types.LicenseSpecification // ARNs of the license configurations to remove. - RemoveLicenseSpecifications []*types.LicenseSpecification + RemoveLicenseSpecifications []types.LicenseSpecification } type UpdateLicenseSpecificationsForResourceOutput struct { diff --git a/service/licensemanager/deserializers.go b/service/licensemanager/deserializers.go index ba0dd677c34..401822e0ea1 100644 --- a/service/licensemanager/deserializers.go +++ b/service/licensemanager/deserializers.go @@ -2386,7 +2386,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2426,7 +2426,7 @@ func awsAwsjson11_deserializeDocumentAuthorizationException(v **types.Authorizat if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2514,7 +2514,7 @@ func awsAwsjson11_deserializeDocumentConsumedLicenseSummary(v **types.ConsumedLi if err != nil { return err } - sv.ConsumedLicenses = &i64 + sv.ConsumedLicenses = ptr.Int64(i64) } case "ResourceType": @@ -2535,7 +2535,7 @@ func awsAwsjson11_deserializeDocumentConsumedLicenseSummary(v **types.ConsumedLi return nil } -func awsAwsjson11_deserializeDocumentConsumedLicenseSummaryList(v *[]*types.ConsumedLicenseSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentConsumedLicenseSummaryList(v *[]types.ConsumedLicenseSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2548,18 +2548,20 @@ func awsAwsjson11_deserializeDocumentConsumedLicenseSummaryList(v *[]*types.Cons return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConsumedLicenseSummary + var cv []types.ConsumedLicenseSummary if *v == nil { - cv = []*types.ConsumedLicenseSummary{} + cv = []types.ConsumedLicenseSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ConsumedLicenseSummary - if err := awsAwsjson11_deserializeDocumentConsumedLicenseSummary(&col, value); err != nil { + var col types.ConsumedLicenseSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConsumedLicenseSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2595,7 +2597,7 @@ func awsAwsjson11_deserializeDocumentFailedDependencyException(v **types.FailedD if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2635,7 +2637,7 @@ func awsAwsjson11_deserializeDocumentFilterLimitExceededException(v **types.Filt if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2675,7 +2677,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2715,7 +2717,7 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateException(v **types.Inv if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2764,7 +2766,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfiguration(v **types.LicenseConfi if err != nil { return err } - sv.ConsumedLicenses = &i64 + sv.ConsumedLicenses = ptr.Int64(i64) } case "ConsumedLicenseSummaryList": @@ -2778,7 +2780,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfiguration(v **types.LicenseConfi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LicenseConfigurationArn": @@ -2787,7 +2789,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfiguration(v **types.LicenseConfi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LicenseConfigurationArn = &jtv + sv.LicenseConfigurationArn = ptr.String(jtv) } case "LicenseConfigurationId": @@ -2796,7 +2798,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfiguration(v **types.LicenseConfi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LicenseConfigurationId = &jtv + sv.LicenseConfigurationId = ptr.String(jtv) } case "LicenseCount": @@ -2809,7 +2811,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfiguration(v **types.LicenseConfi if err != nil { return err } - sv.LicenseCount = &i64 + sv.LicenseCount = ptr.Int64(i64) } case "LicenseCountHardLimit": @@ -2818,7 +2820,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfiguration(v **types.LicenseConfi if !ok { return fmt.Errorf("expected BoxBoolean to be of type *bool, got %T instead", value) } - sv.LicenseCountHardLimit = &jtv + sv.LicenseCountHardLimit = ptr.Bool(jtv) } case "LicenseCountingType": @@ -2846,7 +2848,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfiguration(v **types.LicenseConfi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OwnerAccountId": @@ -2855,7 +2857,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfiguration(v **types.LicenseConfi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OwnerAccountId = &jtv + sv.OwnerAccountId = ptr.String(jtv) } case "ProductInformationList": @@ -2869,7 +2871,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfiguration(v **types.LicenseConfi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -2922,7 +2924,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfigurationAssociation(v **types.L if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "ResourceOwnerId": @@ -2931,7 +2933,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfigurationAssociation(v **types.L if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceOwnerId = &jtv + sv.ResourceOwnerId = ptr.String(jtv) } case "ResourceType": @@ -2952,7 +2954,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfigurationAssociation(v **types.L return nil } -func awsAwsjson11_deserializeDocumentLicenseConfigurationAssociations(v *[]*types.LicenseConfigurationAssociation, value interface{}) error { +func awsAwsjson11_deserializeDocumentLicenseConfigurationAssociations(v *[]types.LicenseConfigurationAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2965,18 +2967,20 @@ func awsAwsjson11_deserializeDocumentLicenseConfigurationAssociations(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LicenseConfigurationAssociation + var cv []types.LicenseConfigurationAssociation if *v == nil { - cv = []*types.LicenseConfigurationAssociation{} + cv = []types.LicenseConfigurationAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.LicenseConfigurationAssociation - if err := awsAwsjson11_deserializeDocumentLicenseConfigurationAssociation(&col, value); err != nil { + var col types.LicenseConfigurationAssociation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLicenseConfigurationAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2984,7 +2988,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfigurationAssociations(v *[]*type return nil } -func awsAwsjson11_deserializeDocumentLicenseConfigurations(v *[]*types.LicenseConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentLicenseConfigurations(v *[]types.LicenseConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2997,18 +3001,20 @@ func awsAwsjson11_deserializeDocumentLicenseConfigurations(v *[]*types.LicenseCo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LicenseConfiguration + var cv []types.LicenseConfiguration if *v == nil { - cv = []*types.LicenseConfiguration{} + cv = []types.LicenseConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.LicenseConfiguration - if err := awsAwsjson11_deserializeDocumentLicenseConfiguration(&col, value); err != nil { + var col types.LicenseConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLicenseConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3061,7 +3067,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfigurationUsage(v **types.License if err != nil { return err } - sv.ConsumedLicenses = &i64 + sv.ConsumedLicenses = ptr.Int64(i64) } case "ResourceArn": @@ -3070,7 +3076,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfigurationUsage(v **types.License if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "ResourceOwnerId": @@ -3079,7 +3085,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfigurationUsage(v **types.License if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceOwnerId = &jtv + sv.ResourceOwnerId = ptr.String(jtv) } case "ResourceStatus": @@ -3088,7 +3094,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfigurationUsage(v **types.License if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceStatus = &jtv + sv.ResourceStatus = ptr.String(jtv) } case "ResourceType": @@ -3109,7 +3115,7 @@ func awsAwsjson11_deserializeDocumentLicenseConfigurationUsage(v **types.License return nil } -func awsAwsjson11_deserializeDocumentLicenseConfigurationUsageList(v *[]*types.LicenseConfigurationUsage, value interface{}) error { +func awsAwsjson11_deserializeDocumentLicenseConfigurationUsageList(v *[]types.LicenseConfigurationUsage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3122,18 +3128,20 @@ func awsAwsjson11_deserializeDocumentLicenseConfigurationUsageList(v *[]*types.L return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LicenseConfigurationUsage + var cv []types.LicenseConfigurationUsage if *v == nil { - cv = []*types.LicenseConfigurationUsage{} + cv = []types.LicenseConfigurationUsage{} } else { cv = *v } for _, value := range shape { - var col *types.LicenseConfigurationUsage - if err := awsAwsjson11_deserializeDocumentLicenseConfigurationUsage(&col, value); err != nil { + var col types.LicenseConfigurationUsage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLicenseConfigurationUsage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3169,7 +3177,7 @@ func awsAwsjson11_deserializeDocumentLicenseOperationFailure(v **types.LicenseOp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "FailureTime": @@ -3196,7 +3204,7 @@ func awsAwsjson11_deserializeDocumentLicenseOperationFailure(v **types.LicenseOp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OperationName = &jtv + sv.OperationName = ptr.String(jtv) } case "OperationRequestedBy": @@ -3205,7 +3213,7 @@ func awsAwsjson11_deserializeDocumentLicenseOperationFailure(v **types.LicenseOp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OperationRequestedBy = &jtv + sv.OperationRequestedBy = ptr.String(jtv) } case "ResourceArn": @@ -3214,7 +3222,7 @@ func awsAwsjson11_deserializeDocumentLicenseOperationFailure(v **types.LicenseOp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "ResourceOwnerId": @@ -3223,7 +3231,7 @@ func awsAwsjson11_deserializeDocumentLicenseOperationFailure(v **types.LicenseOp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceOwnerId = &jtv + sv.ResourceOwnerId = ptr.String(jtv) } case "ResourceType": @@ -3244,7 +3252,7 @@ func awsAwsjson11_deserializeDocumentLicenseOperationFailure(v **types.LicenseOp return nil } -func awsAwsjson11_deserializeDocumentLicenseOperationFailureList(v *[]*types.LicenseOperationFailure, value interface{}) error { +func awsAwsjson11_deserializeDocumentLicenseOperationFailureList(v *[]types.LicenseOperationFailure, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3257,18 +3265,20 @@ func awsAwsjson11_deserializeDocumentLicenseOperationFailureList(v *[]*types.Lic return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LicenseOperationFailure + var cv []types.LicenseOperationFailure if *v == nil { - cv = []*types.LicenseOperationFailure{} + cv = []types.LicenseOperationFailure{} } else { cv = *v } for _, value := range shape { - var col *types.LicenseOperationFailure - if err := awsAwsjson11_deserializeDocumentLicenseOperationFailure(&col, value); err != nil { + var col types.LicenseOperationFailure + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLicenseOperationFailure(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3304,7 +3314,7 @@ func awsAwsjson11_deserializeDocumentLicenseSpecification(v **types.LicenseSpeci if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LicenseConfigurationArn = &jtv + sv.LicenseConfigurationArn = ptr.String(jtv) } default: @@ -3316,7 +3326,7 @@ func awsAwsjson11_deserializeDocumentLicenseSpecification(v **types.LicenseSpeci return nil } -func awsAwsjson11_deserializeDocumentLicenseSpecifications(v *[]*types.LicenseSpecification, value interface{}) error { +func awsAwsjson11_deserializeDocumentLicenseSpecifications(v *[]types.LicenseSpecification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3329,18 +3339,20 @@ func awsAwsjson11_deserializeDocumentLicenseSpecifications(v *[]*types.LicenseSp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LicenseSpecification + var cv []types.LicenseSpecification if *v == nil { - cv = []*types.LicenseSpecification{} + cv = []types.LicenseSpecification{} } else { cv = *v } for _, value := range shape { - var col *types.LicenseSpecification - if err := awsAwsjson11_deserializeDocumentLicenseSpecification(&col, value); err != nil { + var col types.LicenseSpecification + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLicenseSpecification(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3376,7 +3388,7 @@ func awsAwsjson11_deserializeDocumentLicenseUsageException(v **types.LicenseUsag if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3420,7 +3432,7 @@ func awsAwsjson11_deserializeDocumentManagedResourceSummary(v **types.ManagedRes if err != nil { return err } - sv.AssociationCount = &i64 + sv.AssociationCount = ptr.Int64(i64) } case "ResourceType": @@ -3441,7 +3453,7 @@ func awsAwsjson11_deserializeDocumentManagedResourceSummary(v **types.ManagedRes return nil } -func awsAwsjson11_deserializeDocumentManagedResourceSummaryList(v *[]*types.ManagedResourceSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentManagedResourceSummaryList(v *[]types.ManagedResourceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3454,18 +3466,20 @@ func awsAwsjson11_deserializeDocumentManagedResourceSummaryList(v *[]*types.Mana return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ManagedResourceSummary + var cv []types.ManagedResourceSummary if *v == nil { - cv = []*types.ManagedResourceSummary{} + cv = []types.ManagedResourceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ManagedResourceSummary - if err := awsAwsjson11_deserializeDocumentManagedResourceSummary(&col, value); err != nil { + var col types.ManagedResourceSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentManagedResourceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3501,7 +3515,7 @@ func awsAwsjson11_deserializeDocumentMetadata(v **types.Metadata, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Value": @@ -3510,7 +3524,7 @@ func awsAwsjson11_deserializeDocumentMetadata(v **types.Metadata, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -3522,7 +3536,7 @@ func awsAwsjson11_deserializeDocumentMetadata(v **types.Metadata, value interfac return nil } -func awsAwsjson11_deserializeDocumentMetadataList(v *[]*types.Metadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetadataList(v *[]types.Metadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3535,18 +3549,20 @@ func awsAwsjson11_deserializeDocumentMetadataList(v *[]*types.Metadata, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Metadata + var cv []types.Metadata if *v == nil { - cv = []*types.Metadata{} + cv = []types.Metadata{} } else { cv = *v } for _, value := range shape { - var col *types.Metadata - if err := awsAwsjson11_deserializeDocumentMetadata(&col, value); err != nil { + var col types.Metadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3582,7 +3598,7 @@ func awsAwsjson11_deserializeDocumentOrganizationConfiguration(v **types.Organiz if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableIntegration = &jtv + sv.EnableIntegration = jtv } default: @@ -3627,7 +3643,7 @@ func awsAwsjson11_deserializeDocumentProductInformation(v **types.ProductInforma if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -3667,7 +3683,7 @@ func awsAwsjson11_deserializeDocumentProductInformationFilter(v **types.ProductI if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ProductInformationFilterComparator = &jtv + sv.ProductInformationFilterComparator = ptr.String(jtv) } case "ProductInformationFilterName": @@ -3676,7 +3692,7 @@ func awsAwsjson11_deserializeDocumentProductInformationFilter(v **types.ProductI if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ProductInformationFilterName = &jtv + sv.ProductInformationFilterName = ptr.String(jtv) } case "ProductInformationFilterValue": @@ -3693,7 +3709,7 @@ func awsAwsjson11_deserializeDocumentProductInformationFilter(v **types.ProductI return nil } -func awsAwsjson11_deserializeDocumentProductInformationFilterList(v *[]*types.ProductInformationFilter, value interface{}) error { +func awsAwsjson11_deserializeDocumentProductInformationFilterList(v *[]types.ProductInformationFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3706,18 +3722,20 @@ func awsAwsjson11_deserializeDocumentProductInformationFilterList(v *[]*types.Pr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProductInformationFilter + var cv []types.ProductInformationFilter if *v == nil { - cv = []*types.ProductInformationFilter{} + cv = []types.ProductInformationFilter{} } else { cv = *v } for _, value := range shape { - var col *types.ProductInformationFilter - if err := awsAwsjson11_deserializeDocumentProductInformationFilter(&col, value); err != nil { + var col types.ProductInformationFilter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProductInformationFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3725,7 +3743,7 @@ func awsAwsjson11_deserializeDocumentProductInformationFilterList(v *[]*types.Pr return nil } -func awsAwsjson11_deserializeDocumentProductInformationList(v *[]*types.ProductInformation, value interface{}) error { +func awsAwsjson11_deserializeDocumentProductInformationList(v *[]types.ProductInformation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3738,18 +3756,20 @@ func awsAwsjson11_deserializeDocumentProductInformationList(v *[]*types.ProductI return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProductInformation + var cv []types.ProductInformation if *v == nil { - cv = []*types.ProductInformation{} + cv = []types.ProductInformation{} } else { cv = *v } for _, value := range shape { - var col *types.ProductInformation - if err := awsAwsjson11_deserializeDocumentProductInformation(&col, value); err != nil { + var col types.ProductInformation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProductInformation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3785,7 +3805,7 @@ func awsAwsjson11_deserializeDocumentRateLimitExceededException(v **types.RateLi if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3825,7 +3845,7 @@ func awsAwsjson11_deserializeDocumentResourceInventory(v **types.ResourceInvento if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "PlatformVersion": @@ -3834,7 +3854,7 @@ func awsAwsjson11_deserializeDocumentResourceInventory(v **types.ResourceInvento if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PlatformVersion = &jtv + sv.PlatformVersion = ptr.String(jtv) } case "ResourceArn": @@ -3843,7 +3863,7 @@ func awsAwsjson11_deserializeDocumentResourceInventory(v **types.ResourceInvento if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "ResourceId": @@ -3852,7 +3872,7 @@ func awsAwsjson11_deserializeDocumentResourceInventory(v **types.ResourceInvento if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceOwningAccountId": @@ -3861,7 +3881,7 @@ func awsAwsjson11_deserializeDocumentResourceInventory(v **types.ResourceInvento if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceOwningAccountId = &jtv + sv.ResourceOwningAccountId = ptr.String(jtv) } case "ResourceType": @@ -3882,7 +3902,7 @@ func awsAwsjson11_deserializeDocumentResourceInventory(v **types.ResourceInvento return nil } -func awsAwsjson11_deserializeDocumentResourceInventoryList(v *[]*types.ResourceInventory, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceInventoryList(v *[]types.ResourceInventory, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3895,18 +3915,20 @@ func awsAwsjson11_deserializeDocumentResourceInventoryList(v *[]*types.ResourceI return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceInventory + var cv []types.ResourceInventory if *v == nil { - cv = []*types.ResourceInventory{} + cv = []types.ResourceInventory{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceInventory - if err := awsAwsjson11_deserializeDocumentResourceInventory(&col, value); err != nil { + var col types.ResourceInventory + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceInventory(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3942,7 +3964,7 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceededException(v **types.Re if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3982,7 +4004,7 @@ func awsAwsjson11_deserializeDocumentServerInternalException(v **types.ServerInt if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3994,7 +4016,7 @@ func awsAwsjson11_deserializeDocumentServerInternalException(v **types.ServerInt return nil } -func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4007,21 +4029,21 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -4058,7 +4080,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -4067,7 +4089,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4079,7 +4101,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4092,18 +4114,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4139,7 +4163,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLicenseConfigurationOutput(v **Crea if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LicenseConfigurationArn = &jtv + sv.LicenseConfigurationArn = ptr.String(jtv) } default: @@ -4219,7 +4243,7 @@ func awsAwsjson11_deserializeOpDocumentGetLicenseConfigurationOutput(v **GetLice if err != nil { return err } - sv.ConsumedLicenses = &i64 + sv.ConsumedLicenses = ptr.Int64(i64) } case "ConsumedLicenseSummaryList": @@ -4233,7 +4257,7 @@ func awsAwsjson11_deserializeOpDocumentGetLicenseConfigurationOutput(v **GetLice if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LicenseConfigurationArn": @@ -4242,7 +4266,7 @@ func awsAwsjson11_deserializeOpDocumentGetLicenseConfigurationOutput(v **GetLice if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LicenseConfigurationArn = &jtv + sv.LicenseConfigurationArn = ptr.String(jtv) } case "LicenseConfigurationId": @@ -4251,7 +4275,7 @@ func awsAwsjson11_deserializeOpDocumentGetLicenseConfigurationOutput(v **GetLice if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LicenseConfigurationId = &jtv + sv.LicenseConfigurationId = ptr.String(jtv) } case "LicenseCount": @@ -4264,7 +4288,7 @@ func awsAwsjson11_deserializeOpDocumentGetLicenseConfigurationOutput(v **GetLice if err != nil { return err } - sv.LicenseCount = &i64 + sv.LicenseCount = ptr.Int64(i64) } case "LicenseCountHardLimit": @@ -4273,7 +4297,7 @@ func awsAwsjson11_deserializeOpDocumentGetLicenseConfigurationOutput(v **GetLice if !ok { return fmt.Errorf("expected BoxBoolean to be of type *bool, got %T instead", value) } - sv.LicenseCountHardLimit = &jtv + sv.LicenseCountHardLimit = ptr.Bool(jtv) } case "LicenseCountingType": @@ -4301,7 +4325,7 @@ func awsAwsjson11_deserializeOpDocumentGetLicenseConfigurationOutput(v **GetLice if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OwnerAccountId": @@ -4310,7 +4334,7 @@ func awsAwsjson11_deserializeOpDocumentGetLicenseConfigurationOutput(v **GetLice if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OwnerAccountId = &jtv + sv.OwnerAccountId = ptr.String(jtv) } case "ProductInformationList": @@ -4324,7 +4348,7 @@ func awsAwsjson11_deserializeOpDocumentGetLicenseConfigurationOutput(v **GetLice if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "Tags": @@ -4369,7 +4393,7 @@ func awsAwsjson11_deserializeOpDocumentGetServiceSettingsOutput(v **GetServiceSe if !ok { return fmt.Errorf("expected BoxBoolean to be of type *bool, got %T instead", value) } - sv.EnableCrossAccountsDiscovery = &jtv + sv.EnableCrossAccountsDiscovery = ptr.Bool(jtv) } case "LicenseManagerResourceShareArn": @@ -4378,7 +4402,7 @@ func awsAwsjson11_deserializeOpDocumentGetServiceSettingsOutput(v **GetServiceSe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LicenseManagerResourceShareArn = &jtv + sv.LicenseManagerResourceShareArn = ptr.String(jtv) } case "OrganizationConfiguration": @@ -4392,7 +4416,7 @@ func awsAwsjson11_deserializeOpDocumentGetServiceSettingsOutput(v **GetServiceSe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3BucketArn = &jtv + sv.S3BucketArn = ptr.String(jtv) } case "SnsTopicArn": @@ -4401,7 +4425,7 @@ func awsAwsjson11_deserializeOpDocumentGetServiceSettingsOutput(v **GetServiceSe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SnsTopicArn = &jtv + sv.SnsTopicArn = ptr.String(jtv) } default: @@ -4446,7 +4470,7 @@ func awsAwsjson11_deserializeOpDocumentListAssociationsForLicenseConfigurationOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4491,7 +4515,7 @@ func awsAwsjson11_deserializeOpDocumentListFailuresForLicenseConfigurationOperat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4536,7 +4560,7 @@ func awsAwsjson11_deserializeOpDocumentListLicenseConfigurationsOutput(v **ListL if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4581,7 +4605,7 @@ func awsAwsjson11_deserializeOpDocumentListLicenseSpecificationsForResourceOutpu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4621,7 +4645,7 @@ func awsAwsjson11_deserializeOpDocumentListResourceInventoryOutput(v **ListResou if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResourceInventoryList": @@ -4707,7 +4731,7 @@ func awsAwsjson11_deserializeOpDocumentListUsageForLicenseConfigurationOutput(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: diff --git a/service/licensemanager/go.mod b/service/licensemanager/go.mod index 10d9b3a2951..fa00cbd5ecf 100644 --- a/service/licensemanager/go.mod +++ b/service/licensemanager/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/licensemanager go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/licensemanager/serializers.go b/service/licensemanager/serializers.go index d2a5259dd49..dddbe5d6241 100644 --- a/service/licensemanager/serializers.go +++ b/service/licensemanager/serializers.go @@ -761,34 +761,26 @@ func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentFilters(v []*types.Filter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilters(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -815,17 +807,13 @@ func awsAwsjson11_serializeDocumentInventoryFilter(v *types.InventoryFilter, val return nil } -func awsAwsjson11_serializeDocumentInventoryFilterList(v []*types.InventoryFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInventoryFilterList(v []types.InventoryFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInventoryFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInventoryFilter(&v[i], av); err != nil { return err } } @@ -844,17 +832,13 @@ func awsAwsjson11_serializeDocumentLicenseSpecification(v *types.LicenseSpecific return nil } -func awsAwsjson11_serializeDocumentLicenseSpecifications(v []*types.LicenseSpecification, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLicenseSpecifications(v []types.LicenseSpecification, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentLicenseSpecification(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentLicenseSpecification(&v[i], av); err != nil { return err } } @@ -865,9 +849,9 @@ func awsAwsjson11_serializeDocumentOrganizationConfiguration(v *types.Organizati object := value.Object() defer object.Close() - if v.EnableIntegration != nil { + if v.EnableIntegration { ok := object.Key("EnableIntegration") - ok.Boolean(*v.EnableIntegration) + ok.Boolean(v.EnableIntegration) } return nil @@ -916,51 +900,39 @@ func awsAwsjson11_serializeDocumentProductInformationFilter(v *types.ProductInfo return nil } -func awsAwsjson11_serializeDocumentProductInformationFilterList(v []*types.ProductInformationFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProductInformationFilterList(v []types.ProductInformationFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentProductInformationFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentProductInformationFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentProductInformationList(v []*types.ProductInformation, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProductInformationList(v []types.ProductInformation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentProductInformation(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentProductInformation(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -982,32 +954,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/licensemanager/types/types.go b/service/licensemanager/types/types.go index 9e707b43a1c..a04fbe23917 100644 --- a/service/licensemanager/types/types.go +++ b/service/licensemanager/types/types.go @@ -32,7 +32,7 @@ type Filter struct { Name *string // Filter values. Filter values are case-sensitive. - Values []*string + Values []string } // An inventory filter. @@ -64,7 +64,7 @@ type LicenseConfiguration struct { AutomatedDiscoveryInformation *AutomatedDiscoveryInformation // Summaries for licenses consumed by various resources. - ConsumedLicenseSummaryList []*ConsumedLicenseSummary + ConsumedLicenseSummaryList []ConsumedLicenseSummary // Number of licenses consumed. ConsumedLicenses *int64 @@ -88,10 +88,10 @@ type LicenseConfiguration struct { LicenseCountingType LicenseCountingType // License rules. - LicenseRules []*string + LicenseRules []string // Summaries for managed resources. - ManagedResourceSummaryList []*ManagedResourceSummary + ManagedResourceSummaryList []ManagedResourceSummary // Name of the license configuration. Name *string @@ -100,7 +100,7 @@ type LicenseConfiguration struct { OwnerAccountId *string // Product information. - ProductInformationList []*ProductInformation + ProductInformationList []ProductInformation // Status of the license configuration. Status *string @@ -154,7 +154,7 @@ type LicenseOperationFailure struct { FailureTime *time.Time // Reserved. - MetadataList []*Metadata + MetadataList []Metadata // Name of the operation. OperationName *string @@ -207,7 +207,7 @@ type OrganizationConfiguration struct { // Enables AWS Organization integration. // // This member is required. - EnableIntegration *bool + EnableIntegration bool } // Describes product information for a license configuration. @@ -248,7 +248,7 @@ type ProductInformation struct { // tuning pack sqlt | ols | olap. // // This member is required. - ProductInformationFilterList []*ProductInformationFilter + ProductInformationFilterList []ProductInformationFilter // Resource type. The possible values are SSM_MANAGED | RDS. // @@ -272,7 +272,7 @@ type ProductInformationFilter struct { // Filter value. // // This member is required. - ProductInformationFilterValue []*string + ProductInformationFilterValue []string } // Details about a resource. diff --git a/service/licensemanager/validators.go b/service/licensemanager/validators.go index 7f76d8fcc16..bee984b3c93 100644 --- a/service/licensemanager/validators.go +++ b/service/licensemanager/validators.go @@ -364,13 +364,13 @@ func validateInventoryFilter(v *types.InventoryFilter) error { } } -func validateInventoryFilterList(v []*types.InventoryFilter) error { +func validateInventoryFilterList(v []types.InventoryFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InventoryFilterList"} for i := range v { - if err := validateInventoryFilter(v[i]); err != nil { + if err := validateInventoryFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -396,13 +396,13 @@ func validateLicenseSpecification(v *types.LicenseSpecification) error { } } -func validateLicenseSpecifications(v []*types.LicenseSpecification) error { +func validateLicenseSpecifications(v []types.LicenseSpecification) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LicenseSpecifications"} for i := range v { - if err := validateLicenseSpecification(v[i]); err != nil { + if err := validateLicenseSpecification(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -418,9 +418,6 @@ func validateOrganizationConfiguration(v *types.OrganizationConfiguration) error return nil } invalidParams := smithy.InvalidParamsError{Context: "OrganizationConfiguration"} - if v.EnableIntegration == nil { - invalidParams.Add(smithy.NewErrParamRequired("EnableIntegration")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -471,13 +468,13 @@ func validateProductInformationFilter(v *types.ProductInformationFilter) error { } } -func validateProductInformationFilterList(v []*types.ProductInformationFilter) error { +func validateProductInformationFilterList(v []types.ProductInformationFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ProductInformationFilterList"} for i := range v { - if err := validateProductInformationFilter(v[i]); err != nil { + if err := validateProductInformationFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -488,13 +485,13 @@ func validateProductInformationFilterList(v []*types.ProductInformationFilter) e } } -func validateProductInformationList(v []*types.ProductInformation) error { +func validateProductInformationList(v []types.ProductInformation) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ProductInformationList"} for i := range v { - if err := validateProductInformation(v[i]); err != nil { + if err := validateProductInformation(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/lightsail/api_op_AllocateStaticIp.go b/service/lightsail/api_op_AllocateStaticIp.go index 549629b0765..109156c66ed 100644 --- a/service/lightsail/api_op_AllocateStaticIp.go +++ b/service/lightsail/api_op_AllocateStaticIp.go @@ -40,7 +40,7 @@ type AllocateStaticIpOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_AttachDisk.go b/service/lightsail/api_op_AttachDisk.go index dbbffd9c3bd..ca11e479753 100644 --- a/service/lightsail/api_op_AttachDisk.go +++ b/service/lightsail/api_op_AttachDisk.go @@ -55,7 +55,7 @@ type AttachDiskOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_AttachInstancesToLoadBalancer.go b/service/lightsail/api_op_AttachInstancesToLoadBalancer.go index b48af6d6c35..3cd79394054 100644 --- a/service/lightsail/api_op_AttachInstancesToLoadBalancer.go +++ b/service/lightsail/api_op_AttachInstancesToLoadBalancer.go @@ -41,7 +41,7 @@ type AttachInstancesToLoadBalancerInput struct { // can create in your account (20). // // This member is required. - InstanceNames []*string + InstanceNames []string // The name of the load balancer. // @@ -54,7 +54,7 @@ type AttachInstancesToLoadBalancerOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_AttachLoadBalancerTlsCertificate.go b/service/lightsail/api_op_AttachLoadBalancerTlsCertificate.go index 1f6ac66eeb4..fa1528dc2cb 100644 --- a/service/lightsail/api_op_AttachLoadBalancerTlsCertificate.go +++ b/service/lightsail/api_op_AttachLoadBalancerTlsCertificate.go @@ -56,7 +56,7 @@ type AttachLoadBalancerTlsCertificateOutput struct { // of the request, the timestamp of the request, and the resources affected by the // request. These SSL/TLS certificates are only usable by Lightsail load balancers. // You can't get the certificate and use it for another purpose. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_AttachStaticIp.go b/service/lightsail/api_op_AttachStaticIp.go index 7a104837b1e..7f0ef405738 100644 --- a/service/lightsail/api_op_AttachStaticIp.go +++ b/service/lightsail/api_op_AttachStaticIp.go @@ -45,7 +45,7 @@ type AttachStaticIpOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CopySnapshot.go b/service/lightsail/api_op_CopySnapshot.go index b5444f86817..3661fa004d7 100644 --- a/service/lightsail/api_op_CopySnapshot.go +++ b/service/lightsail/api_op_CopySnapshot.go @@ -95,7 +95,7 @@ type CopySnapshotOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateCertificate.go b/service/lightsail/api_op_CreateCertificate.go index bc891c72f57..122d9843628 100644 --- a/service/lightsail/api_op_CreateCertificate.go +++ b/service/lightsail/api_op_CreateCertificate.go @@ -50,11 +50,11 @@ type CreateCertificateInput struct { // subdomains (e.g., blog.example.com) for the certificate. You can specify a // maximum of nine alternate domains (in addition to the primary domain name). // Wildcard domain entries (e.g., *.example.com) are not supported. - SubjectAlternativeNames []*string + SubjectAlternativeNames []string // The tag keys and optional values to add to the certificate during create. Use // the TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag } type CreateCertificateOutput struct { @@ -65,7 +65,7 @@ type CreateCertificateOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateCloudFormationStack.go b/service/lightsail/api_op_CreateCloudFormationStack.go index 2e4663e2727..baa47a67f54 100644 --- a/service/lightsail/api_op_CreateCloudFormationStack.go +++ b/service/lightsail/api_op_CreateCloudFormationStack.go @@ -40,7 +40,7 @@ type CreateCloudFormationStackInput struct { // invalid parameter error if you pass more than one instance entry in this array. // // This member is required. - Instances []*types.InstanceEntry + Instances []types.InstanceEntry } type CreateCloudFormationStackOutput struct { @@ -48,7 +48,7 @@ type CreateCloudFormationStackOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateContactMethod.go b/service/lightsail/api_op_CreateContactMethod.go index db7f8dc7b99..4b3da3d80bc 100644 --- a/service/lightsail/api_op_CreateContactMethod.go +++ b/service/lightsail/api_op_CreateContactMethod.go @@ -83,7 +83,7 @@ type CreateContactMethodOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateDisk.go b/service/lightsail/api_op_CreateDisk.go index e2ebfcabdca..39a0f71d30a 100644 --- a/service/lightsail/api_op_CreateDisk.go +++ b/service/lightsail/api_op_CreateDisk.go @@ -52,11 +52,11 @@ type CreateDiskInput struct { SizeInGb *int32 // An array of objects that represent the add-ons to enable for the new disk. - AddOns []*types.AddOnRequest + AddOns []types.AddOnRequest // The tag keys and optional values to add to the resource during create. Use the // TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag } type CreateDiskOutput struct { @@ -64,7 +64,7 @@ type CreateDiskOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateDiskFromSnapshot.go b/service/lightsail/api_op_CreateDiskFromSnapshot.go index 68d7b6245af..2406cdf7f38 100644 --- a/service/lightsail/api_op_CreateDiskFromSnapshot.go +++ b/service/lightsail/api_op_CreateDiskFromSnapshot.go @@ -54,7 +54,7 @@ type CreateDiskFromSnapshotInput struct { SizeInGb *int32 // An array of objects that represent the add-ons to enable for the new disk. - AddOns []*types.AddOnRequest + AddOns []types.AddOnRequest // The name of the disk snapshot (e.g., my-snapshot) from which to create the new // storage disk. Constraint: @@ -94,7 +94,7 @@ type CreateDiskFromSnapshotInput struct { // The tag keys and optional values to add to the resource during create. Use the // TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag // A Boolean value to indicate whether to use the latest available automatic // snapshot. Constraints: @@ -115,7 +115,7 @@ type CreateDiskFromSnapshotOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateDiskSnapshot.go b/service/lightsail/api_op_CreateDiskSnapshot.go index adeedbf9acf..6ae71e2e20a 100644 --- a/service/lightsail/api_op_CreateDiskSnapshot.go +++ b/service/lightsail/api_op_CreateDiskSnapshot.go @@ -69,7 +69,7 @@ type CreateDiskSnapshotInput struct { // The tag keys and optional values to add to the resource during create. Use the // TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag } type CreateDiskSnapshotOutput struct { @@ -77,7 +77,7 @@ type CreateDiskSnapshotOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateDistribution.go b/service/lightsail/api_op_CreateDistribution.go index d8386f89e12..05bbce88552 100644 --- a/service/lightsail/api_op_CreateDistribution.go +++ b/service/lightsail/api_op_CreateDistribution.go @@ -64,11 +64,11 @@ type CreateDistributionInput struct { // An array of objects that describe the per-path cache behavior for the // distribution. - CacheBehaviors []*types.CacheBehaviorPerPath + CacheBehaviors []types.CacheBehaviorPerPath // The tag keys and optional values to add to the distribution during create. Use // the TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag } type CreateDistributionOutput struct { diff --git a/service/lightsail/api_op_CreateDomain.go b/service/lightsail/api_op_CreateDomain.go index ae4c4caf0a6..7e749d3963d 100644 --- a/service/lightsail/api_op_CreateDomain.go +++ b/service/lightsail/api_op_CreateDomain.go @@ -42,7 +42,7 @@ type CreateDomainInput struct { // The tag keys and optional values to add to the resource during create. Use the // TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag } type CreateDomainOutput struct { diff --git a/service/lightsail/api_op_CreateInstanceSnapshot.go b/service/lightsail/api_op_CreateInstanceSnapshot.go index 1f675d095c7..ffec0aee628 100644 --- a/service/lightsail/api_op_CreateInstanceSnapshot.go +++ b/service/lightsail/api_op_CreateInstanceSnapshot.go @@ -45,7 +45,7 @@ type CreateInstanceSnapshotInput struct { // The tag keys and optional values to add to the resource during create. Use the // TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag } type CreateInstanceSnapshotOutput struct { @@ -53,7 +53,7 @@ type CreateInstanceSnapshotOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateInstances.go b/service/lightsail/api_op_CreateInstances.go index 52148eef3f4..9303b0cfdaa 100644 --- a/service/lightsail/api_op_CreateInstances.go +++ b/service/lightsail/api_op_CreateInstances.go @@ -64,10 +64,10 @@ type CreateInstancesInput struct { // ["MyFirstInstance","MySecondInstance"] // // This member is required. - InstanceNames []*string + InstanceNames []string // An array of objects representing the add-ons to enable for the new instance. - AddOns []*types.AddOnRequest + AddOns []types.AddOnRequest // (Deprecated) The name for your custom image. In releases prior to June 12, 2017, // this parameter was ignored by the API. It is now deprecated. @@ -78,7 +78,7 @@ type CreateInstancesInput struct { // The tag keys and optional values to add to the resource during create. Use the // TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag // A launch script you can create that configures a server with additional user // data. For example, you might want to run apt-get -y update. Depending on the @@ -94,7 +94,7 @@ type CreateInstancesOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateInstancesFromSnapshot.go b/service/lightsail/api_op_CreateInstancesFromSnapshot.go index 18759acd991..948f933567f 100644 --- a/service/lightsail/api_op_CreateInstancesFromSnapshot.go +++ b/service/lightsail/api_op_CreateInstancesFromSnapshot.go @@ -52,13 +52,13 @@ type CreateInstancesFromSnapshotInput struct { // The names for your new instances. // // This member is required. - InstanceNames []*string + InstanceNames []string // An array of objects representing the add-ons to enable for the new instance. - AddOns []*types.AddOnRequest + AddOns []types.AddOnRequest // An object containing information about one or more disk mappings. - AttachedDiskMapping map[string][]*types.DiskMap + AttachedDiskMapping map[string][]types.DiskMap // The name of the instance snapshot on which you are basing your new instances. // Use the get instance snapshots operation to return information about your @@ -103,7 +103,7 @@ type CreateInstancesFromSnapshotInput struct { // The tag keys and optional values to add to the resource during create. Use the // TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag // A Boolean value to indicate whether to use the latest available automatic // snapshot. Constraints: @@ -132,7 +132,7 @@ type CreateInstancesFromSnapshotOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateKeyPair.go b/service/lightsail/api_op_CreateKeyPair.go index f258e0bd0dd..690aa40b00b 100644 --- a/service/lightsail/api_op_CreateKeyPair.go +++ b/service/lightsail/api_op_CreateKeyPair.go @@ -38,7 +38,7 @@ type CreateKeyPairInput struct { // The tag keys and optional values to add to the resource during create. Use the // TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag } type CreateKeyPairOutput struct { diff --git a/service/lightsail/api_op_CreateLoadBalancer.go b/service/lightsail/api_op_CreateLoadBalancer.go index d6f2c321427..f2d95b0f3c2 100644 --- a/service/lightsail/api_op_CreateLoadBalancer.go +++ b/service/lightsail/api_op_CreateLoadBalancer.go @@ -41,7 +41,7 @@ type CreateLoadBalancerInput struct { // The instance port where you're creating your load balancer. // // This member is required. - InstancePort *int32 + InstancePort int32 // The name of your load balancer. // @@ -51,7 +51,7 @@ type CreateLoadBalancerInput struct { // The optional alternative domains and subdomains to use with your SSL/TLS // certificate (e.g., www.example.com, example.com, m.example.com, // blog.example.com). - CertificateAlternativeNames []*string + CertificateAlternativeNames []string // The domain name with which your certificate is associated (e.g., example.com). // If you specify certificateDomainName, then certificateName is required (and @@ -71,7 +71,7 @@ type CreateLoadBalancerInput struct { // The tag keys and optional values to add to the resource during create. Use the // TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag } type CreateLoadBalancerOutput struct { @@ -79,7 +79,7 @@ type CreateLoadBalancerOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateLoadBalancerTlsCertificate.go b/service/lightsail/api_op_CreateLoadBalancerTlsCertificate.go index 464bfdcfab7..cbaf82b2ded 100644 --- a/service/lightsail/api_op_CreateLoadBalancerTlsCertificate.go +++ b/service/lightsail/api_op_CreateLoadBalancerTlsCertificate.go @@ -57,11 +57,11 @@ type CreateLoadBalancerTlsCertificateInput struct { // certificate. Lightsail will de-dupe the names for you. You can have a maximum of // 9 alternative names (in addition to the 1 primary domain). We do not support // wildcards (e.g., *.example.com). - CertificateAlternativeNames []*string + CertificateAlternativeNames []string // The tag keys and optional values to add to the resource during create. Use the // TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag } type CreateLoadBalancerTlsCertificateOutput struct { @@ -69,7 +69,7 @@ type CreateLoadBalancerTlsCertificateOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateRelationalDatabase.go b/service/lightsail/api_op_CreateRelationalDatabase.go index d42c3e93267..5650132e181 100644 --- a/service/lightsail/api_op_CreateRelationalDatabase.go +++ b/service/lightsail/api_op_CreateRelationalDatabase.go @@ -144,7 +144,7 @@ type CreateRelationalDatabaseInput struct { // The tag keys and optional values to add to the resource during create. Use the // TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag } type CreateRelationalDatabaseOutput struct { @@ -152,7 +152,7 @@ type CreateRelationalDatabaseOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateRelationalDatabaseFromSnapshot.go b/service/lightsail/api_op_CreateRelationalDatabaseFromSnapshot.go index cb17b4fa1a1..bd8aba8eaf9 100644 --- a/service/lightsail/api_op_CreateRelationalDatabaseFromSnapshot.go +++ b/service/lightsail/api_op_CreateRelationalDatabaseFromSnapshot.go @@ -91,7 +91,7 @@ type CreateRelationalDatabaseFromSnapshotInput struct { // The tag keys and optional values to add to the resource during create. Use the // TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag // Specifies whether your database is restored from the latest backup time. A value // of true restores from the latest backup time. Default: false Constraints: Cannot @@ -104,7 +104,7 @@ type CreateRelationalDatabaseFromSnapshotOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_CreateRelationalDatabaseSnapshot.go b/service/lightsail/api_op_CreateRelationalDatabaseSnapshot.go index e57a2c7c808..666e156360f 100644 --- a/service/lightsail/api_op_CreateRelationalDatabaseSnapshot.go +++ b/service/lightsail/api_op_CreateRelationalDatabaseSnapshot.go @@ -52,7 +52,7 @@ type CreateRelationalDatabaseSnapshotInput struct { // The tag keys and optional values to add to the resource during create. Use the // TagResource action to tag a resource after it's created. - Tags []*types.Tag + Tags []types.Tag } type CreateRelationalDatabaseSnapshotOutput struct { @@ -60,7 +60,7 @@ type CreateRelationalDatabaseSnapshotOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DeleteAlarm.go b/service/lightsail/api_op_DeleteAlarm.go index 7885b9bfb32..7bf81928616 100644 --- a/service/lightsail/api_op_DeleteAlarm.go +++ b/service/lightsail/api_op_DeleteAlarm.go @@ -44,7 +44,7 @@ type DeleteAlarmOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DeleteAutoSnapshot.go b/service/lightsail/api_op_DeleteAutoSnapshot.go index d1fa6e5530d..a3a34209d39 100644 --- a/service/lightsail/api_op_DeleteAutoSnapshot.go +++ b/service/lightsail/api_op_DeleteAutoSnapshot.go @@ -50,7 +50,7 @@ type DeleteAutoSnapshotOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DeleteCertificate.go b/service/lightsail/api_op_DeleteCertificate.go index 1a5ad18c98f..306150e5ff0 100644 --- a/service/lightsail/api_op_DeleteCertificate.go +++ b/service/lightsail/api_op_DeleteCertificate.go @@ -44,7 +44,7 @@ type DeleteCertificateOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DeleteContactMethod.go b/service/lightsail/api_op_DeleteContactMethod.go index ab1f58735bf..2c4f57b2222 100644 --- a/service/lightsail/api_op_DeleteContactMethod.go +++ b/service/lightsail/api_op_DeleteContactMethod.go @@ -48,7 +48,7 @@ type DeleteContactMethodOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DeleteDisk.go b/service/lightsail/api_op_DeleteDisk.go index d5776bac3a4..0bc567a24b1 100644 --- a/service/lightsail/api_op_DeleteDisk.go +++ b/service/lightsail/api_op_DeleteDisk.go @@ -48,7 +48,7 @@ type DeleteDiskOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DeleteDiskSnapshot.go b/service/lightsail/api_op_DeleteDiskSnapshot.go index b41bb17350f..241ea9b3f84 100644 --- a/service/lightsail/api_op_DeleteDiskSnapshot.go +++ b/service/lightsail/api_op_DeleteDiskSnapshot.go @@ -49,7 +49,7 @@ type DeleteDiskSnapshotOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DeleteInstance.go b/service/lightsail/api_op_DeleteInstance.go index 4e06fb71b65..45e24d598c6 100644 --- a/service/lightsail/api_op_DeleteInstance.go +++ b/service/lightsail/api_op_DeleteInstance.go @@ -46,7 +46,7 @@ type DeleteInstanceOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DeleteInstanceSnapshot.go b/service/lightsail/api_op_DeleteInstanceSnapshot.go index b202d605d2a..c2d8b0230da 100644 --- a/service/lightsail/api_op_DeleteInstanceSnapshot.go +++ b/service/lightsail/api_op_DeleteInstanceSnapshot.go @@ -44,7 +44,7 @@ type DeleteInstanceSnapshotOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DeleteKnownHostKeys.go b/service/lightsail/api_op_DeleteKnownHostKeys.go index fdb199d02ec..0960d970eba 100644 --- a/service/lightsail/api_op_DeleteKnownHostKeys.go +++ b/service/lightsail/api_op_DeleteKnownHostKeys.go @@ -49,7 +49,7 @@ type DeleteKnownHostKeysOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DeleteLoadBalancer.go b/service/lightsail/api_op_DeleteLoadBalancer.go index 20d8d262e65..8cc62c38149 100644 --- a/service/lightsail/api_op_DeleteLoadBalancer.go +++ b/service/lightsail/api_op_DeleteLoadBalancer.go @@ -46,7 +46,7 @@ type DeleteLoadBalancerOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DeleteLoadBalancerTlsCertificate.go b/service/lightsail/api_op_DeleteLoadBalancerTlsCertificate.go index 1757d049cb4..f0022a41c43 100644 --- a/service/lightsail/api_op_DeleteLoadBalancerTlsCertificate.go +++ b/service/lightsail/api_op_DeleteLoadBalancerTlsCertificate.go @@ -55,7 +55,7 @@ type DeleteLoadBalancerTlsCertificateOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DeleteRelationalDatabase.go b/service/lightsail/api_op_DeleteRelationalDatabase.go index 11b5d692224..30e102a29fc 100644 --- a/service/lightsail/api_op_DeleteRelationalDatabase.go +++ b/service/lightsail/api_op_DeleteRelationalDatabase.go @@ -62,7 +62,7 @@ type DeleteRelationalDatabaseOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DeleteRelationalDatabaseSnapshot.go b/service/lightsail/api_op_DeleteRelationalDatabaseSnapshot.go index f15d320c86e..36202febfc7 100644 --- a/service/lightsail/api_op_DeleteRelationalDatabaseSnapshot.go +++ b/service/lightsail/api_op_DeleteRelationalDatabaseSnapshot.go @@ -44,7 +44,7 @@ type DeleteRelationalDatabaseSnapshotOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DetachDisk.go b/service/lightsail/api_op_DetachDisk.go index cb8923546b1..04d7f7b0523 100644 --- a/service/lightsail/api_op_DetachDisk.go +++ b/service/lightsail/api_op_DetachDisk.go @@ -46,7 +46,7 @@ type DetachDiskOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DetachInstancesFromLoadBalancer.go b/service/lightsail/api_op_DetachInstancesFromLoadBalancer.go index 887a1110e9f..8cc79f80268 100644 --- a/service/lightsail/api_op_DetachInstancesFromLoadBalancer.go +++ b/service/lightsail/api_op_DetachInstancesFromLoadBalancer.go @@ -38,7 +38,7 @@ type DetachInstancesFromLoadBalancerInput struct { // from the load balancer. // // This member is required. - InstanceNames []*string + InstanceNames []string // The name of the Lightsail load balancer. // @@ -51,7 +51,7 @@ type DetachInstancesFromLoadBalancerOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DetachStaticIp.go b/service/lightsail/api_op_DetachStaticIp.go index ac2de6c14cd..38cac5d617c 100644 --- a/service/lightsail/api_op_DetachStaticIp.go +++ b/service/lightsail/api_op_DetachStaticIp.go @@ -40,7 +40,7 @@ type DetachStaticIpOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_DisableAddOn.go b/service/lightsail/api_op_DisableAddOn.go index ee60124ad7c..3c2b6355b04 100644 --- a/service/lightsail/api_op_DisableAddOn.go +++ b/service/lightsail/api_op_DisableAddOn.go @@ -47,7 +47,7 @@ type DisableAddOnOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_EnableAddOn.go b/service/lightsail/api_op_EnableAddOn.go index 3496615f8e2..082daf16e27 100644 --- a/service/lightsail/api_op_EnableAddOn.go +++ b/service/lightsail/api_op_EnableAddOn.go @@ -47,7 +47,7 @@ type EnableAddOnOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_ExportSnapshot.go b/service/lightsail/api_op_ExportSnapshot.go index 600fffd5888..9f43ee50a66 100644 --- a/service/lightsail/api_op_ExportSnapshot.go +++ b/service/lightsail/api_op_ExportSnapshot.go @@ -53,7 +53,7 @@ type ExportSnapshotOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetActiveNames.go b/service/lightsail/api_op_GetActiveNames.go index aa8449cd32e..c3bcf060944 100644 --- a/service/lightsail/api_op_GetActiveNames.go +++ b/service/lightsail/api_op_GetActiveNames.go @@ -38,7 +38,7 @@ type GetActiveNamesInput struct { type GetActiveNamesOutput struct { // The list of active names returned by the get active names request. - ActiveNames []*string + ActiveNames []string // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetAlarms.go b/service/lightsail/api_op_GetAlarms.go index 2ecead0b868..ee6b2d3c2e5 100644 --- a/service/lightsail/api_op_GetAlarms.go +++ b/service/lightsail/api_op_GetAlarms.go @@ -55,7 +55,7 @@ type GetAlarmsInput struct { type GetAlarmsOutput struct { // An array of objects that describe the alarms. - Alarms []*types.Alarm + Alarms []types.Alarm // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetAutoSnapshots.go b/service/lightsail/api_op_GetAutoSnapshots.go index aa58d5c6a8c..72d8d683714 100644 --- a/service/lightsail/api_op_GetAutoSnapshots.go +++ b/service/lightsail/api_op_GetAutoSnapshots.go @@ -42,7 +42,7 @@ type GetAutoSnapshotsOutput struct { // An array of objects that describe the automatic snapshots that are available for // the specified source instance or disk. - AutoSnapshots []*types.AutoSnapshotDetails + AutoSnapshots []types.AutoSnapshotDetails // The name of the source instance or disk for the automatic snapshots. ResourceName *string diff --git a/service/lightsail/api_op_GetBlueprints.go b/service/lightsail/api_op_GetBlueprints.go index fb46f0100ce..d5b6e038d6c 100644 --- a/service/lightsail/api_op_GetBlueprints.go +++ b/service/lightsail/api_op_GetBlueprints.go @@ -50,7 +50,7 @@ type GetBlueprintsOutput struct { // An array of key-value pairs that contains information about the available // blueprints. - Blueprints []*types.Blueprint + Blueprints []types.Blueprint // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetBundles.go b/service/lightsail/api_op_GetBundles.go index 4e383c34722..9d24c7c0ae2 100644 --- a/service/lightsail/api_op_GetBundles.go +++ b/service/lightsail/api_op_GetBundles.go @@ -45,7 +45,7 @@ type GetBundlesOutput struct { // An array of key-value pairs that contains information about the available // bundles. - Bundles []*types.Bundle + Bundles []types.Bundle // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetCertificates.go b/service/lightsail/api_op_GetCertificates.go index 3e97f8f8e2c..878eb850770 100644 --- a/service/lightsail/api_op_GetCertificates.go +++ b/service/lightsail/api_op_GetCertificates.go @@ -46,13 +46,13 @@ type GetCertificatesInput struct { // Indicates whether to include detailed information about the certificates in the // response. When omitted, the response includes only the certificate names, Amazon // Resource Names (ARNs), domain names, and tags. - IncludeCertificateDetails *bool + IncludeCertificateDetails bool } type GetCertificatesOutput struct { // An object that describes certificates. - Certificates []*types.CertificateSummary + Certificates []types.CertificateSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetCloudFormationStackRecords.go b/service/lightsail/api_op_GetCloudFormationStackRecords.go index 29aab9926a5..be807d94f09 100644 --- a/service/lightsail/api_op_GetCloudFormationStackRecords.go +++ b/service/lightsail/api_op_GetCloudFormationStackRecords.go @@ -41,7 +41,7 @@ type GetCloudFormationStackRecordsInput struct { type GetCloudFormationStackRecordsOutput struct { // A list of objects describing the CloudFormation stack records. - CloudFormationStackRecords []*types.CloudFormationStackRecord + CloudFormationStackRecords []types.CloudFormationStackRecord // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetContactMethods.go b/service/lightsail/api_op_GetContactMethods.go index 1f3a65d569f..5d0312f32e3 100644 --- a/service/lightsail/api_op_GetContactMethods.go +++ b/service/lightsail/api_op_GetContactMethods.go @@ -45,7 +45,7 @@ type GetContactMethodsInput struct { type GetContactMethodsOutput struct { // An array of objects that describe the contact methods. - ContactMethods []*types.ContactMethod + ContactMethods []types.ContactMethod // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetDiskSnapshots.go b/service/lightsail/api_op_GetDiskSnapshots.go index e70b96df1d5..174cee278de 100644 --- a/service/lightsail/api_op_GetDiskSnapshots.go +++ b/service/lightsail/api_op_GetDiskSnapshots.go @@ -41,7 +41,7 @@ type GetDiskSnapshotsOutput struct { // An array of objects containing information about all block storage disk // snapshots. - DiskSnapshots []*types.DiskSnapshot + DiskSnapshots []types.DiskSnapshot // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetDisks.go b/service/lightsail/api_op_GetDisks.go index 8921a7928fe..84f4917ec3e 100644 --- a/service/lightsail/api_op_GetDisks.go +++ b/service/lightsail/api_op_GetDisks.go @@ -40,7 +40,7 @@ type GetDisksInput struct { type GetDisksOutput struct { // An array of objects containing information about all block storage disks. - Disks []*types.Disk + Disks []types.Disk // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetDistributionBundles.go b/service/lightsail/api_op_GetDistributionBundles.go index c92bbd0ae91..a5815e8bd65 100644 --- a/service/lightsail/api_op_GetDistributionBundles.go +++ b/service/lightsail/api_op_GetDistributionBundles.go @@ -35,7 +35,7 @@ type GetDistributionBundlesInput struct { type GetDistributionBundlesOutput struct { // An object that describes a distribution bundle. - Bundles []*types.DistributionBundle + Bundles []types.DistributionBundle // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetDistributionMetricData.go b/service/lightsail/api_op_GetDistributionMetricData.go index b1a07299968..bbfa450210d 100644 --- a/service/lightsail/api_op_GetDistributionMetricData.go +++ b/service/lightsail/api_op_GetDistributionMetricData.go @@ -99,7 +99,7 @@ type GetDistributionMetricDataInput struct { // The granularity, in seconds, for the metric data points that will be returned. // // This member is required. - Period *int32 + Period int32 // The start of the time interval for which to get metric data. Constraints: // @@ -154,7 +154,7 @@ type GetDistributionMetricDataInput struct { type GetDistributionMetricDataOutput struct { // An array of objects that describe the metric data returned. - MetricData []*types.MetricDatapoint + MetricData []types.MetricDatapoint // The name of the metric returned. MetricName types.DistributionMetricName diff --git a/service/lightsail/api_op_GetDistributions.go b/service/lightsail/api_op_GetDistributions.go index aec4063a42c..3082b20300c 100644 --- a/service/lightsail/api_op_GetDistributions.go +++ b/service/lightsail/api_op_GetDistributions.go @@ -46,7 +46,7 @@ type GetDistributionsInput struct { type GetDistributionsOutput struct { // An array of objects that describe your distributions. - Distributions []*types.LightsailDistribution + Distributions []types.LightsailDistribution // The token to advance to the next page of results from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetDomains.go b/service/lightsail/api_op_GetDomains.go index 5774e7b6973..8ba69beca96 100644 --- a/service/lightsail/api_op_GetDomains.go +++ b/service/lightsail/api_op_GetDomains.go @@ -40,7 +40,7 @@ type GetDomainsOutput struct { // An array of key-value pairs containing information about each of the domain // entries in the user's account. - Domains []*types.Domain + Domains []types.Domain // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetExportSnapshotRecords.go b/service/lightsail/api_op_GetExportSnapshotRecords.go index 2c2163c681d..38ddc708044 100644 --- a/service/lightsail/api_op_GetExportSnapshotRecords.go +++ b/service/lightsail/api_op_GetExportSnapshotRecords.go @@ -42,7 +42,7 @@ type GetExportSnapshotRecordsInput struct { type GetExportSnapshotRecordsOutput struct { // A list of objects describing the export snapshot records. - ExportSnapshotRecords []*types.ExportSnapshotRecord + ExportSnapshotRecords []types.ExportSnapshotRecord // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetInstanceMetricData.go b/service/lightsail/api_op_GetInstanceMetricData.go index 17d9bd5ceeb..0f73ab76991 100644 --- a/service/lightsail/api_op_GetInstanceMetricData.go +++ b/service/lightsail/api_op_GetInstanceMetricData.go @@ -120,7 +120,7 @@ type GetInstanceMetricDataInput struct { // is available in 5-minute (300 seconds) granularity. // // This member is required. - Period *int32 + Period int32 // The start time of the time period. // @@ -164,7 +164,7 @@ type GetInstanceMetricDataInput struct { type GetInstanceMetricDataOutput struct { // An array of objects that describe the metric data returned. - MetricData []*types.MetricDatapoint + MetricData []types.MetricDatapoint // The name of the metric returned. MetricName types.InstanceMetricName diff --git a/service/lightsail/api_op_GetInstancePortStates.go b/service/lightsail/api_op_GetInstancePortStates.go index 67c6fa94a34..05e98e7cb0f 100644 --- a/service/lightsail/api_op_GetInstancePortStates.go +++ b/service/lightsail/api_op_GetInstancePortStates.go @@ -41,7 +41,7 @@ type GetInstancePortStatesOutput struct { // An array of objects that describe the firewall port states for the specified // instance. - PortStates []*types.InstancePortState + PortStates []types.InstancePortState // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetInstanceSnapshots.go b/service/lightsail/api_op_GetInstanceSnapshots.go index 9a86d0e1651..2d65053428b 100644 --- a/service/lightsail/api_op_GetInstanceSnapshots.go +++ b/service/lightsail/api_op_GetInstanceSnapshots.go @@ -40,7 +40,7 @@ type GetInstanceSnapshotsOutput struct { // An array of key-value pairs containing information about the results of your get // instance snapshots request. - InstanceSnapshots []*types.InstanceSnapshot + InstanceSnapshots []types.InstanceSnapshot // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetInstances.go b/service/lightsail/api_op_GetInstances.go index 247f40d4ffa..0d2da8d402c 100644 --- a/service/lightsail/api_op_GetInstances.go +++ b/service/lightsail/api_op_GetInstances.go @@ -40,7 +40,7 @@ type GetInstancesInput struct { type GetInstancesOutput struct { // An array of key-value pairs containing information about your instances. - Instances []*types.Instance + Instances []types.Instance // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetKeyPairs.go b/service/lightsail/api_op_GetKeyPairs.go index 2a7706a8c0e..0c914dc7a9c 100644 --- a/service/lightsail/api_op_GetKeyPairs.go +++ b/service/lightsail/api_op_GetKeyPairs.go @@ -39,7 +39,7 @@ type GetKeyPairsInput struct { type GetKeyPairsOutput struct { // An array of key-value pairs containing information about the key pairs. - KeyPairs []*types.KeyPair + KeyPairs []types.KeyPair // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetLoadBalancerMetricData.go b/service/lightsail/api_op_GetLoadBalancerMetricData.go index 86e007d6847..98707b6b34e 100644 --- a/service/lightsail/api_op_GetLoadBalancerMetricData.go +++ b/service/lightsail/api_op_GetLoadBalancerMetricData.go @@ -125,7 +125,7 @@ type GetLoadBalancerMetricDataInput struct { // The granularity, in seconds, of the returned data points. // // This member is required. - Period *int32 + Period int32 // The start time of the period. // @@ -169,7 +169,7 @@ type GetLoadBalancerMetricDataInput struct { type GetLoadBalancerMetricDataOutput struct { // An array of objects that describe the metric data returned. - MetricData []*types.MetricDatapoint + MetricData []types.MetricDatapoint // The name of the metric returned. MetricName types.LoadBalancerMetricName diff --git a/service/lightsail/api_op_GetLoadBalancerTlsCertificates.go b/service/lightsail/api_op_GetLoadBalancerTlsCertificates.go index 56d7489439d..5e756a3d6ac 100644 --- a/service/lightsail/api_op_GetLoadBalancerTlsCertificates.go +++ b/service/lightsail/api_op_GetLoadBalancerTlsCertificates.go @@ -43,7 +43,7 @@ type GetLoadBalancerTlsCertificatesOutput struct { // An array of LoadBalancerTlsCertificate objects describing your SSL/TLS // certificates. - TlsCertificates []*types.LoadBalancerTlsCertificate + TlsCertificates []types.LoadBalancerTlsCertificate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetLoadBalancers.go b/service/lightsail/api_op_GetLoadBalancers.go index 34af457f022..148c08bb658 100644 --- a/service/lightsail/api_op_GetLoadBalancers.go +++ b/service/lightsail/api_op_GetLoadBalancers.go @@ -39,7 +39,7 @@ type GetLoadBalancersInput struct { type GetLoadBalancersOutput struct { // An array of LoadBalancer objects describing your load balancers. - LoadBalancers []*types.LoadBalancer + LoadBalancers []types.LoadBalancer // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetOperations.go b/service/lightsail/api_op_GetOperations.go index 122f698e38b..84e51628eb4 100644 --- a/service/lightsail/api_op_GetOperations.go +++ b/service/lightsail/api_op_GetOperations.go @@ -50,7 +50,7 @@ type GetOperationsOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetOperationsForResource.go b/service/lightsail/api_op_GetOperationsForResource.go index cc9504860dd..bdc911c6803 100644 --- a/service/lightsail/api_op_GetOperationsForResource.go +++ b/service/lightsail/api_op_GetOperationsForResource.go @@ -57,7 +57,7 @@ type GetOperationsForResourceOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetRegions.go b/service/lightsail/api_op_GetRegions.go index f8a86c19649..0c56013ef49 100644 --- a/service/lightsail/api_op_GetRegions.go +++ b/service/lightsail/api_op_GetRegions.go @@ -45,7 +45,7 @@ type GetRegionsOutput struct { // An array of key-value pairs containing information about your get regions // request. - Regions []*types.Region + Regions []types.Region // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetRelationalDatabaseBlueprints.go b/service/lightsail/api_op_GetRelationalDatabaseBlueprints.go index a3806a8cebf..44b72203cdc 100644 --- a/service/lightsail/api_op_GetRelationalDatabaseBlueprints.go +++ b/service/lightsail/api_op_GetRelationalDatabaseBlueprints.go @@ -42,7 +42,7 @@ type GetRelationalDatabaseBlueprintsOutput struct { // An object describing the result of your get relational database blueprints // request. - Blueprints []*types.RelationalDatabaseBlueprint + Blueprints []types.RelationalDatabaseBlueprint // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetRelationalDatabaseBundles.go b/service/lightsail/api_op_GetRelationalDatabaseBundles.go index 1069f6e2231..ee0e092a36f 100644 --- a/service/lightsail/api_op_GetRelationalDatabaseBundles.go +++ b/service/lightsail/api_op_GetRelationalDatabaseBundles.go @@ -41,7 +41,7 @@ type GetRelationalDatabaseBundlesInput struct { type GetRelationalDatabaseBundlesOutput struct { // An object describing the result of your get relational database bundles request. - Bundles []*types.RelationalDatabaseBundle + Bundles []types.RelationalDatabaseBundle // The token to advance to the next page of resutls from your request. A next page // token is not returned if there are no more results to display. To get the next diff --git a/service/lightsail/api_op_GetRelationalDatabaseEvents.go b/service/lightsail/api_op_GetRelationalDatabaseEvents.go index 14959524920..2aaa7bc9e8b 100644 --- a/service/lightsail/api_op_GetRelationalDatabaseEvents.go +++ b/service/lightsail/api_op_GetRelationalDatabaseEvents.go @@ -55,7 +55,7 @@ type GetRelationalDatabaseEventsOutput struct { NextPageToken *string // An object describing the result of your get relational database events request. - RelationalDatabaseEvents []*types.RelationalDatabaseEvent + RelationalDatabaseEvents []types.RelationalDatabaseEvent // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetRelationalDatabaseLogEvents.go b/service/lightsail/api_op_GetRelationalDatabaseLogEvents.go index 2aac22fb7c8..64b74192a11 100644 --- a/service/lightsail/api_op_GetRelationalDatabaseLogEvents.go +++ b/service/lightsail/api_op_GetRelationalDatabaseLogEvents.go @@ -87,7 +87,7 @@ type GetRelationalDatabaseLogEventsOutput struct { // An object describing the result of your get relational database log events // request. - ResourceLogEvents []*types.LogEvent + ResourceLogEvents []types.LogEvent // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetRelationalDatabaseLogStreams.go b/service/lightsail/api_op_GetRelationalDatabaseLogStreams.go index 15814ad6d36..0587a01791b 100644 --- a/service/lightsail/api_op_GetRelationalDatabaseLogStreams.go +++ b/service/lightsail/api_op_GetRelationalDatabaseLogStreams.go @@ -39,7 +39,7 @@ type GetRelationalDatabaseLogStreamsOutput struct { // An object describing the result of your get relational database log streams // request. - LogStreams []*string + LogStreams []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetRelationalDatabaseMetricData.go b/service/lightsail/api_op_GetRelationalDatabaseMetricData.go index ba0208da77e..e9b280fab27 100644 --- a/service/lightsail/api_op_GetRelationalDatabaseMetricData.go +++ b/service/lightsail/api_op_GetRelationalDatabaseMetricData.go @@ -85,7 +85,7 @@ type GetRelationalDatabaseMetricDataInput struct { // database metric data is available in 1-minute (60 seconds) granularity. // // This member is required. - Period *int32 + Period int32 // The name of your database from which to get metric data. // @@ -141,7 +141,7 @@ type GetRelationalDatabaseMetricDataInput struct { type GetRelationalDatabaseMetricDataOutput struct { // An array of objects that describe the metric data returned. - MetricData []*types.MetricDatapoint + MetricData []types.MetricDatapoint // The name of the metric returned. MetricName types.RelationalDatabaseMetricName diff --git a/service/lightsail/api_op_GetRelationalDatabaseParameters.go b/service/lightsail/api_op_GetRelationalDatabaseParameters.go index 21d22f6ad68..3108e88b644 100644 --- a/service/lightsail/api_op_GetRelationalDatabaseParameters.go +++ b/service/lightsail/api_op_GetRelationalDatabaseParameters.go @@ -55,7 +55,7 @@ type GetRelationalDatabaseParametersOutput struct { // An object describing the result of your get relational database parameters // request. - Parameters []*types.RelationalDatabaseParameter + Parameters []types.RelationalDatabaseParameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetRelationalDatabaseSnapshots.go b/service/lightsail/api_op_GetRelationalDatabaseSnapshots.go index a59e543c64a..f46a0e38667 100644 --- a/service/lightsail/api_op_GetRelationalDatabaseSnapshots.go +++ b/service/lightsail/api_op_GetRelationalDatabaseSnapshots.go @@ -46,7 +46,7 @@ type GetRelationalDatabaseSnapshotsOutput struct { // An object describing the result of your get relational database snapshots // request. - RelationalDatabaseSnapshots []*types.RelationalDatabaseSnapshot + RelationalDatabaseSnapshots []types.RelationalDatabaseSnapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetRelationalDatabases.go b/service/lightsail/api_op_GetRelationalDatabases.go index 1e4a6aba455..4f0c4a795cb 100644 --- a/service/lightsail/api_op_GetRelationalDatabases.go +++ b/service/lightsail/api_op_GetRelationalDatabases.go @@ -45,7 +45,7 @@ type GetRelationalDatabasesOutput struct { NextPageToken *string // An object describing the result of your get relational databases request. - RelationalDatabases []*types.RelationalDatabase + RelationalDatabases []types.RelationalDatabase // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_GetStaticIps.go b/service/lightsail/api_op_GetStaticIps.go index 6253c4a0aab..f0ea427631f 100644 --- a/service/lightsail/api_op_GetStaticIps.go +++ b/service/lightsail/api_op_GetStaticIps.go @@ -46,7 +46,7 @@ type GetStaticIpsOutput struct { // An array of key-value pairs containing information about your get static IPs // request. - StaticIps []*types.StaticIp + StaticIps []types.StaticIp // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_PutAlarm.go b/service/lightsail/api_op_PutAlarm.go index 8b49073aa46..5b6b2ac96b7 100644 --- a/service/lightsail/api_op_PutAlarm.go +++ b/service/lightsail/api_op_PutAlarm.go @@ -176,7 +176,7 @@ type PutAlarmOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_PutInstancePublicPorts.go b/service/lightsail/api_op_PutInstancePublicPorts.go index 3d2dd4f4ec6..2e8ccb24f73 100644 --- a/service/lightsail/api_op_PutInstancePublicPorts.go +++ b/service/lightsail/api_op_PutInstancePublicPorts.go @@ -46,7 +46,7 @@ type PutInstancePublicPortsInput struct { // An array of objects to describe the ports to open for the specified instance. // // This member is required. - PortInfos []*types.PortInfo + PortInfos []types.PortInfo } type PutInstancePublicPortsOutput struct { diff --git a/service/lightsail/api_op_RebootInstance.go b/service/lightsail/api_op_RebootInstance.go index 52db5b8933a..502795ee30a 100644 --- a/service/lightsail/api_op_RebootInstance.go +++ b/service/lightsail/api_op_RebootInstance.go @@ -43,7 +43,7 @@ type RebootInstanceOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_RebootRelationalDatabase.go b/service/lightsail/api_op_RebootRelationalDatabase.go index 96b61efd394..f331027ae3f 100644 --- a/service/lightsail/api_op_RebootRelationalDatabase.go +++ b/service/lightsail/api_op_RebootRelationalDatabase.go @@ -44,7 +44,7 @@ type RebootRelationalDatabaseOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_ReleaseStaticIp.go b/service/lightsail/api_op_ReleaseStaticIp.go index ff975f31103..1006b0aed7a 100644 --- a/service/lightsail/api_op_ReleaseStaticIp.go +++ b/service/lightsail/api_op_ReleaseStaticIp.go @@ -40,7 +40,7 @@ type ReleaseStaticIpOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_SendContactMethodVerification.go b/service/lightsail/api_op_SendContactMethodVerification.go index b67e775a271..e54203c2bd3 100644 --- a/service/lightsail/api_op_SendContactMethodVerification.go +++ b/service/lightsail/api_op_SendContactMethodVerification.go @@ -51,7 +51,7 @@ type SendContactMethodVerificationOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_StartInstance.go b/service/lightsail/api_op_StartInstance.go index 77a2b50a68e..78261f355b9 100644 --- a/service/lightsail/api_op_StartInstance.go +++ b/service/lightsail/api_op_StartInstance.go @@ -49,7 +49,7 @@ type StartInstanceOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_StartRelationalDatabase.go b/service/lightsail/api_op_StartRelationalDatabase.go index 7bf06ee9ef1..22f8670b6cf 100644 --- a/service/lightsail/api_op_StartRelationalDatabase.go +++ b/service/lightsail/api_op_StartRelationalDatabase.go @@ -45,7 +45,7 @@ type StartRelationalDatabaseOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_StopInstance.go b/service/lightsail/api_op_StopInstance.go index 565e6f75c30..946462a8236 100644 --- a/service/lightsail/api_op_StopInstance.go +++ b/service/lightsail/api_op_StopInstance.go @@ -55,7 +55,7 @@ type StopInstanceOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_StopRelationalDatabase.go b/service/lightsail/api_op_StopRelationalDatabase.go index fa6cfb49ed6..07139016412 100644 --- a/service/lightsail/api_op_StopRelationalDatabase.go +++ b/service/lightsail/api_op_StopRelationalDatabase.go @@ -48,7 +48,7 @@ type StopRelationalDatabaseOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_TagResource.go b/service/lightsail/api_op_TagResource.go index bbbb0e53f6d..9451870e69b 100644 --- a/service/lightsail/api_op_TagResource.go +++ b/service/lightsail/api_op_TagResource.go @@ -45,7 +45,7 @@ type TagResourceInput struct { // The tag key and optional value. // // This member is required. - Tags []*types.Tag + Tags []types.Tag // The Amazon Resource Name (ARN) of the resource to which you want to add a tag. ResourceArn *string @@ -56,7 +56,7 @@ type TagResourceOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_TestAlarm.go b/service/lightsail/api_op_TestAlarm.go index 3a6c19aab81..405e43faf43 100644 --- a/service/lightsail/api_op_TestAlarm.go +++ b/service/lightsail/api_op_TestAlarm.go @@ -62,7 +62,7 @@ type TestAlarmOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_UntagResource.go b/service/lightsail/api_op_UntagResource.go index c8d72610c99..33388017e99 100644 --- a/service/lightsail/api_op_UntagResource.go +++ b/service/lightsail/api_op_UntagResource.go @@ -41,7 +41,7 @@ type UntagResourceInput struct { // The tag keys to delete from the specified resource. // // This member is required. - TagKeys []*string + TagKeys []string // The Amazon Resource Name (ARN) of the resource from which you want to remove a // tag. @@ -53,7 +53,7 @@ type UntagResourceOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_UpdateDistribution.go b/service/lightsail/api_op_UpdateDistribution.go index e4a46434c88..e27906ace62 100644 --- a/service/lightsail/api_op_UpdateDistribution.go +++ b/service/lightsail/api_op_UpdateDistribution.go @@ -44,7 +44,7 @@ type UpdateDistributionInput struct { // An array of objects that describe the per-path cache behavior for the // distribution. - CacheBehaviors []*types.CacheBehaviorPerPath + CacheBehaviors []types.CacheBehaviorPerPath // An object that describes the default cache behavior for the distribution. DefaultCacheBehavior *types.CacheBehavior diff --git a/service/lightsail/api_op_UpdateDomainEntry.go b/service/lightsail/api_op_UpdateDomainEntry.go index 828dd086810..3a3407f3904 100644 --- a/service/lightsail/api_op_UpdateDomainEntry.go +++ b/service/lightsail/api_op_UpdateDomainEntry.go @@ -49,7 +49,7 @@ type UpdateDomainEntryOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_UpdateLoadBalancerAttribute.go b/service/lightsail/api_op_UpdateLoadBalancerAttribute.go index 99098cbc68a..3a556b64f8c 100644 --- a/service/lightsail/api_op_UpdateLoadBalancerAttribute.go +++ b/service/lightsail/api_op_UpdateLoadBalancerAttribute.go @@ -54,7 +54,7 @@ type UpdateLoadBalancerAttributeOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_UpdateRelationalDatabase.go b/service/lightsail/api_op_UpdateRelationalDatabase.go index 484e14e8a4a..75785d173f1 100644 --- a/service/lightsail/api_op_UpdateRelationalDatabase.go +++ b/service/lightsail/api_op_UpdateRelationalDatabase.go @@ -113,7 +113,7 @@ type UpdateRelationalDatabaseOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/api_op_UpdateRelationalDatabaseParameters.go b/service/lightsail/api_op_UpdateRelationalDatabaseParameters.go index 265269f16d9..3cfbf894512 100644 --- a/service/lightsail/api_op_UpdateRelationalDatabaseParameters.go +++ b/service/lightsail/api_op_UpdateRelationalDatabaseParameters.go @@ -42,7 +42,7 @@ type UpdateRelationalDatabaseParametersInput struct { // The database parameters to update. // // This member is required. - Parameters []*types.RelationalDatabaseParameter + Parameters []types.RelationalDatabaseParameter // The name of your database for which to update parameters. // @@ -55,7 +55,7 @@ type UpdateRelationalDatabaseParametersOutput struct { // An array of objects that describe the result of the action, such as the status // of the request, the timestamp of the request, and the resources affected by the // request. - Operations []*types.Operation + Operations []types.Operation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lightsail/deserializers.go b/service/lightsail/deserializers.go index 77a1842dc03..032606a6edd 100644 --- a/service/lightsail/deserializers.go +++ b/service/lightsail/deserializers.go @@ -16588,7 +16588,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "docs": @@ -16597,7 +16597,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Docs = &jtv + sv.Docs = ptr.String(jtv) } case "message": @@ -16606,7 +16606,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "tip": @@ -16615,7 +16615,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Tip = &jtv + sv.Tip = ptr.String(jtv) } default: @@ -16655,7 +16655,7 @@ func awsAwsjson11_deserializeDocumentAccountSetupInProgressException(v **types.A if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "docs": @@ -16664,7 +16664,7 @@ func awsAwsjson11_deserializeDocumentAccountSetupInProgressException(v **types.A if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Docs = &jtv + sv.Docs = ptr.String(jtv) } case "message": @@ -16673,7 +16673,7 @@ func awsAwsjson11_deserializeDocumentAccountSetupInProgressException(v **types.A if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "tip": @@ -16682,7 +16682,7 @@ func awsAwsjson11_deserializeDocumentAccountSetupInProgressException(v **types.A if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Tip = &jtv + sv.Tip = ptr.String(jtv) } default: @@ -16722,7 +16722,7 @@ func awsAwsjson11_deserializeDocumentAddOn(v **types.AddOn, value interface{}) e if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "nextSnapshotTimeOfDay": @@ -16731,7 +16731,7 @@ func awsAwsjson11_deserializeDocumentAddOn(v **types.AddOn, value interface{}) e if !ok { return fmt.Errorf("expected TimeOfDay to be of type string, got %T instead", value) } - sv.NextSnapshotTimeOfDay = &jtv + sv.NextSnapshotTimeOfDay = ptr.String(jtv) } case "snapshotTimeOfDay": @@ -16740,7 +16740,7 @@ func awsAwsjson11_deserializeDocumentAddOn(v **types.AddOn, value interface{}) e if !ok { return fmt.Errorf("expected TimeOfDay to be of type string, got %T instead", value) } - sv.SnapshotTimeOfDay = &jtv + sv.SnapshotTimeOfDay = ptr.String(jtv) } case "status": @@ -16749,7 +16749,7 @@ func awsAwsjson11_deserializeDocumentAddOn(v **types.AddOn, value interface{}) e if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -16761,7 +16761,7 @@ func awsAwsjson11_deserializeDocumentAddOn(v **types.AddOn, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentAddOnList(v *[]*types.AddOn, value interface{}) error { +func awsAwsjson11_deserializeDocumentAddOnList(v *[]types.AddOn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16774,18 +16774,20 @@ func awsAwsjson11_deserializeDocumentAddOnList(v *[]*types.AddOn, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AddOn + var cv []types.AddOn if *v == nil { - cv = []*types.AddOn{} + cv = []types.AddOn{} } else { cv = *v } for _, value := range shape { - var col *types.AddOn - if err := awsAwsjson11_deserializeDocumentAddOn(&col, value); err != nil { + var col types.AddOn + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAddOn(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16821,7 +16823,7 @@ func awsAwsjson11_deserializeDocumentAlarm(v **types.Alarm, value interface{}) e if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "comparisonOperator": @@ -16902,7 +16904,7 @@ func awsAwsjson11_deserializeDocumentAlarm(v **types.Alarm, value interface{}) e if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "notificationEnabled": @@ -16911,7 +16913,7 @@ func awsAwsjson11_deserializeDocumentAlarm(v **types.Alarm, value interface{}) e if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.NotificationEnabled = &jtv + sv.NotificationEnabled = ptr.Bool(jtv) } case "notificationTriggers": @@ -16929,7 +16931,7 @@ func awsAwsjson11_deserializeDocumentAlarm(v **types.Alarm, value interface{}) e if err != nil { return err } - sv.Period = ptr.Int32(int32(i64)) + sv.Period = int32(i64) } case "resourceType": @@ -16965,7 +16967,7 @@ func awsAwsjson11_deserializeDocumentAlarm(v **types.Alarm, value interface{}) e if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } case "threshold": @@ -16978,7 +16980,7 @@ func awsAwsjson11_deserializeDocumentAlarm(v **types.Alarm, value interface{}) e if err != nil { return err } - sv.Threshold = &f64 + sv.Threshold = ptr.Float64(f64) } case "treatMissingData": @@ -17008,7 +17010,7 @@ func awsAwsjson11_deserializeDocumentAlarm(v **types.Alarm, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentAlarmsList(v *[]*types.Alarm, value interface{}) error { +func awsAwsjson11_deserializeDocumentAlarmsList(v *[]types.Alarm, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17021,18 +17023,20 @@ func awsAwsjson11_deserializeDocumentAlarmsList(v *[]*types.Alarm, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Alarm + var cv []types.Alarm if *v == nil { - cv = []*types.Alarm{} + cv = []types.Alarm{} } else { cv = *v } for _, value := range shape { - var col *types.Alarm - if err := awsAwsjson11_deserializeDocumentAlarm(&col, value); err != nil { + var col types.Alarm + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAlarm(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17068,7 +17072,7 @@ func awsAwsjson11_deserializeDocumentAttachedDisk(v **types.AttachedDisk, value if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "sizeInGb": @@ -17093,7 +17097,7 @@ func awsAwsjson11_deserializeDocumentAttachedDisk(v **types.AttachedDisk, value return nil } -func awsAwsjson11_deserializeDocumentAttachedDiskList(v *[]*types.AttachedDisk, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttachedDiskList(v *[]types.AttachedDisk, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17106,18 +17110,20 @@ func awsAwsjson11_deserializeDocumentAttachedDiskList(v *[]*types.AttachedDisk, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttachedDisk + var cv []types.AttachedDisk if *v == nil { - cv = []*types.AttachedDisk{} + cv = []types.AttachedDisk{} } else { cv = *v } for _, value := range shape { - var col *types.AttachedDisk - if err := awsAwsjson11_deserializeDocumentAttachedDisk(&col, value); err != nil { + var col types.AttachedDisk + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttachedDisk(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17166,7 +17172,7 @@ func awsAwsjson11_deserializeDocumentAutoSnapshotDetails(v **types.AutoSnapshotD if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Date = &jtv + sv.Date = ptr.String(jtv) } case "fromAttachedDisks": @@ -17192,7 +17198,7 @@ func awsAwsjson11_deserializeDocumentAutoSnapshotDetails(v **types.AutoSnapshotD return nil } -func awsAwsjson11_deserializeDocumentAutoSnapshotDetailsList(v *[]*types.AutoSnapshotDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentAutoSnapshotDetailsList(v *[]types.AutoSnapshotDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17205,18 +17211,20 @@ func awsAwsjson11_deserializeDocumentAutoSnapshotDetailsList(v *[]*types.AutoSna return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutoSnapshotDetails + var cv []types.AutoSnapshotDetails if *v == nil { - cv = []*types.AutoSnapshotDetails{} + cv = []types.AutoSnapshotDetails{} } else { cv = *v } for _, value := range shape { - var col *types.AutoSnapshotDetails - if err := awsAwsjson11_deserializeDocumentAutoSnapshotDetails(&col, value); err != nil { + var col types.AutoSnapshotDetails + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAutoSnapshotDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17252,7 +17260,7 @@ func awsAwsjson11_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } case "zoneName": @@ -17261,7 +17269,7 @@ func awsAwsjson11_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ZoneName = &jtv + sv.ZoneName = ptr.String(jtv) } default: @@ -17273,7 +17281,7 @@ func awsAwsjson11_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone return nil } -func awsAwsjson11_deserializeDocumentAvailabilityZoneList(v *[]*types.AvailabilityZone, value interface{}) error { +func awsAwsjson11_deserializeDocumentAvailabilityZoneList(v *[]types.AvailabilityZone, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17286,18 +17294,20 @@ func awsAwsjson11_deserializeDocumentAvailabilityZoneList(v *[]*types.Availabili return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AvailabilityZone + var cv []types.AvailabilityZone if *v == nil { - cv = []*types.AvailabilityZone{} + cv = []types.AvailabilityZone{} } else { cv = *v } for _, value := range shape { - var col *types.AvailabilityZone - if err := awsAwsjson11_deserializeDocumentAvailabilityZone(&col, value); err != nil { + var col types.AvailabilityZone + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAvailabilityZone(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17333,7 +17343,7 @@ func awsAwsjson11_deserializeDocumentBlueprint(v **types.Blueprint, value interf if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.BlueprintId = &jtv + sv.BlueprintId = ptr.String(jtv) } case "description": @@ -17342,7 +17352,7 @@ func awsAwsjson11_deserializeDocumentBlueprint(v **types.Blueprint, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "group": @@ -17351,7 +17361,7 @@ func awsAwsjson11_deserializeDocumentBlueprint(v **types.Blueprint, value interf if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Group = &jtv + sv.Group = ptr.String(jtv) } case "isActive": @@ -17360,7 +17370,7 @@ func awsAwsjson11_deserializeDocumentBlueprint(v **types.Blueprint, value interf if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsActive = &jtv + sv.IsActive = ptr.Bool(jtv) } case "licenseUrl": @@ -17369,7 +17379,7 @@ func awsAwsjson11_deserializeDocumentBlueprint(v **types.Blueprint, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.LicenseUrl = &jtv + sv.LicenseUrl = ptr.String(jtv) } case "minPower": @@ -17391,7 +17401,7 @@ func awsAwsjson11_deserializeDocumentBlueprint(v **types.Blueprint, value interf if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "platform": @@ -17409,7 +17419,7 @@ func awsAwsjson11_deserializeDocumentBlueprint(v **types.Blueprint, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ProductUrl = &jtv + sv.ProductUrl = ptr.String(jtv) } case "type": @@ -17427,7 +17437,7 @@ func awsAwsjson11_deserializeDocumentBlueprint(v **types.Blueprint, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "versionCode": @@ -17436,7 +17446,7 @@ func awsAwsjson11_deserializeDocumentBlueprint(v **types.Blueprint, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VersionCode = &jtv + sv.VersionCode = ptr.String(jtv) } default: @@ -17448,7 +17458,7 @@ func awsAwsjson11_deserializeDocumentBlueprint(v **types.Blueprint, value interf return nil } -func awsAwsjson11_deserializeDocumentBlueprintList(v *[]*types.Blueprint, value interface{}) error { +func awsAwsjson11_deserializeDocumentBlueprintList(v *[]types.Blueprint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17461,18 +17471,20 @@ func awsAwsjson11_deserializeDocumentBlueprintList(v *[]*types.Blueprint, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Blueprint + var cv []types.Blueprint if *v == nil { - cv = []*types.Blueprint{} + cv = []types.Blueprint{} } else { cv = *v } for _, value := range shape { - var col *types.Blueprint - if err := awsAwsjson11_deserializeDocumentBlueprint(&col, value); err != nil { + var col types.Blueprint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBlueprint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17508,7 +17520,7 @@ func awsAwsjson11_deserializeDocumentBundle(v **types.Bundle, value interface{}) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.BundleId = &jtv + sv.BundleId = ptr.String(jtv) } case "cpuCount": @@ -17543,7 +17555,7 @@ func awsAwsjson11_deserializeDocumentBundle(v **types.Bundle, value interface{}) if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "isActive": @@ -17552,7 +17564,7 @@ func awsAwsjson11_deserializeDocumentBundle(v **types.Bundle, value interface{}) if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsActive = &jtv + sv.IsActive = ptr.Bool(jtv) } case "name": @@ -17561,7 +17573,7 @@ func awsAwsjson11_deserializeDocumentBundle(v **types.Bundle, value interface{}) if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "power": @@ -17630,7 +17642,7 @@ func awsAwsjson11_deserializeDocumentBundle(v **types.Bundle, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentBundleList(v *[]*types.Bundle, value interface{}) error { +func awsAwsjson11_deserializeDocumentBundleList(v *[]types.Bundle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17643,18 +17655,20 @@ func awsAwsjson11_deserializeDocumentBundleList(v *[]*types.Bundle, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Bundle + var cv []types.Bundle if *v == nil { - cv = []*types.Bundle{} + cv = []types.Bundle{} } else { cv = *v } for _, value := range shape { - var col *types.Bundle - if err := awsAwsjson11_deserializeDocumentBundle(&col, value); err != nil { + var col types.Bundle + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBundle(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17702,7 +17716,7 @@ func awsAwsjson11_deserializeDocumentCacheBehavior(v **types.CacheBehavior, valu return nil } -func awsAwsjson11_deserializeDocumentCacheBehaviorList(v *[]*types.CacheBehaviorPerPath, value interface{}) error { +func awsAwsjson11_deserializeDocumentCacheBehaviorList(v *[]types.CacheBehaviorPerPath, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17715,18 +17729,20 @@ func awsAwsjson11_deserializeDocumentCacheBehaviorList(v *[]*types.CacheBehavior return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CacheBehaviorPerPath + var cv []types.CacheBehaviorPerPath if *v == nil { - cv = []*types.CacheBehaviorPerPath{} + cv = []types.CacheBehaviorPerPath{} } else { cv = *v } for _, value := range shape { - var col *types.CacheBehaviorPerPath - if err := awsAwsjson11_deserializeDocumentCacheBehaviorPerPath(&col, value); err != nil { + var col types.CacheBehaviorPerPath + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCacheBehaviorPerPath(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17771,7 +17787,7 @@ func awsAwsjson11_deserializeDocumentCacheBehaviorPerPath(v **types.CacheBehavio if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } default: @@ -17811,7 +17827,7 @@ func awsAwsjson11_deserializeDocumentCacheSettings(v **types.CacheSettings, valu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AllowedHTTPMethods = &jtv + sv.AllowedHTTPMethods = ptr.String(jtv) } case "cachedHTTPMethods": @@ -17820,7 +17836,7 @@ func awsAwsjson11_deserializeDocumentCacheSettings(v **types.CacheSettings, valu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CachedHTTPMethods = &jtv + sv.CachedHTTPMethods = ptr.String(jtv) } case "defaultTTL": @@ -17833,7 +17849,7 @@ func awsAwsjson11_deserializeDocumentCacheSettings(v **types.CacheSettings, valu if err != nil { return err } - sv.DefaultTTL = &i64 + sv.DefaultTTL = ptr.Int64(i64) } case "forwardedCookies": @@ -17861,7 +17877,7 @@ func awsAwsjson11_deserializeDocumentCacheSettings(v **types.CacheSettings, valu if err != nil { return err } - sv.MaximumTTL = &i64 + sv.MaximumTTL = ptr.Int64(i64) } case "minimumTTL": @@ -17874,7 +17890,7 @@ func awsAwsjson11_deserializeDocumentCacheSettings(v **types.CacheSettings, valu if err != nil { return err } - sv.MinimumTTL = &i64 + sv.MinimumTTL = ptr.Int64(i64) } default: @@ -17914,7 +17930,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -17936,7 +17952,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainValidationRecords": @@ -17950,7 +17966,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected EligibleToRenew to be of type string, got %T instead", value) } - sv.EligibleToRenew = &jtv + sv.EligibleToRenew = ptr.String(jtv) } case "inUseResourceCount": @@ -17963,7 +17979,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if err != nil { return err } - sv.InUseResourceCount = ptr.Int32(int32(i64)) + sv.InUseResourceCount = int32(i64) } case "issuedAt": @@ -17985,7 +18001,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected IssuerCA to be of type string, got %T instead", value) } - sv.IssuerCA = &jtv + sv.IssuerCA = ptr.String(jtv) } case "keyAlgorithm": @@ -17994,7 +18010,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected KeyAlgorithm to be of type string, got %T instead", value) } - sv.KeyAlgorithm = &jtv + sv.KeyAlgorithm = ptr.String(jtv) } case "name": @@ -18003,7 +18019,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected CertificateName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "notAfter": @@ -18043,7 +18059,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected RequestFailureReason to be of type string, got %T instead", value) } - sv.RequestFailureReason = &jtv + sv.RequestFailureReason = ptr.String(jtv) } case "revocationReason": @@ -18052,7 +18068,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected RevocationReason to be of type string, got %T instead", value) } - sv.RevocationReason = &jtv + sv.RevocationReason = ptr.String(jtv) } case "revokedAt": @@ -18074,7 +18090,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected SerialNumber to be of type string, got %T instead", value) } - sv.SerialNumber = &jtv + sv.SerialNumber = ptr.String(jtv) } case "status": @@ -18097,7 +18113,7 @@ func awsAwsjson11_deserializeDocumentCertificate(v **types.Certificate, value in if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } case "tags": @@ -18142,7 +18158,7 @@ func awsAwsjson11_deserializeDocumentCertificateSummary(v **types.CertificateSum if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "certificateDetail": @@ -18156,7 +18172,7 @@ func awsAwsjson11_deserializeDocumentCertificateSummary(v **types.CertificateSum if !ok { return fmt.Errorf("expected CertificateName to be of type string, got %T instead", value) } - sv.CertificateName = &jtv + sv.CertificateName = ptr.String(jtv) } case "domainName": @@ -18165,7 +18181,7 @@ func awsAwsjson11_deserializeDocumentCertificateSummary(v **types.CertificateSum if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "tags": @@ -18182,7 +18198,7 @@ func awsAwsjson11_deserializeDocumentCertificateSummary(v **types.CertificateSum return nil } -func awsAwsjson11_deserializeDocumentCertificateSummaryList(v *[]*types.CertificateSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentCertificateSummaryList(v *[]types.CertificateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18195,18 +18211,20 @@ func awsAwsjson11_deserializeDocumentCertificateSummaryList(v *[]*types.Certific return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CertificateSummary + var cv []types.CertificateSummary if *v == nil { - cv = []*types.CertificateSummary{} + cv = []types.CertificateSummary{} } else { cv = *v } for _, value := range shape { - var col *types.CertificateSummary - if err := awsAwsjson11_deserializeDocumentCertificateSummary(&col, value); err != nil { + var col types.CertificateSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCertificateSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18242,7 +18260,7 @@ func awsAwsjson11_deserializeDocumentCloudFormationStackRecord(v **types.CloudFo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -18274,7 +18292,7 @@ func awsAwsjson11_deserializeDocumentCloudFormationStackRecord(v **types.CloudFo if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceType": @@ -18309,7 +18327,7 @@ func awsAwsjson11_deserializeDocumentCloudFormationStackRecord(v **types.CloudFo return nil } -func awsAwsjson11_deserializeDocumentCloudFormationStackRecordList(v *[]*types.CloudFormationStackRecord, value interface{}) error { +func awsAwsjson11_deserializeDocumentCloudFormationStackRecordList(v *[]types.CloudFormationStackRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18322,18 +18340,20 @@ func awsAwsjson11_deserializeDocumentCloudFormationStackRecordList(v *[]*types.C return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CloudFormationStackRecord + var cv []types.CloudFormationStackRecord if *v == nil { - cv = []*types.CloudFormationStackRecord{} + cv = []types.CloudFormationStackRecord{} } else { cv = *v } for _, value := range shape { - var col *types.CloudFormationStackRecord - if err := awsAwsjson11_deserializeDocumentCloudFormationStackRecord(&col, value); err != nil { + var col types.CloudFormationStackRecord + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCloudFormationStackRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18369,7 +18389,7 @@ func awsAwsjson11_deserializeDocumentCloudFormationStackRecordSourceInfo(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "name": @@ -18378,7 +18398,7 @@ func awsAwsjson11_deserializeDocumentCloudFormationStackRecordSourceInfo(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceType": @@ -18399,7 +18419,7 @@ func awsAwsjson11_deserializeDocumentCloudFormationStackRecordSourceInfo(v **typ return nil } -func awsAwsjson11_deserializeDocumentCloudFormationStackRecordSourceInfoList(v *[]*types.CloudFormationStackRecordSourceInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentCloudFormationStackRecordSourceInfoList(v *[]types.CloudFormationStackRecordSourceInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18412,18 +18432,20 @@ func awsAwsjson11_deserializeDocumentCloudFormationStackRecordSourceInfoList(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CloudFormationStackRecordSourceInfo + var cv []types.CloudFormationStackRecordSourceInfo if *v == nil { - cv = []*types.CloudFormationStackRecordSourceInfo{} + cv = []types.CloudFormationStackRecordSourceInfo{} } else { cv = *v } for _, value := range shape { - var col *types.CloudFormationStackRecordSourceInfo - if err := awsAwsjson11_deserializeDocumentCloudFormationStackRecordSourceInfo(&col, value); err != nil { + var col types.CloudFormationStackRecordSourceInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCloudFormationStackRecordSourceInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18459,7 +18481,7 @@ func awsAwsjson11_deserializeDocumentContactMethod(v **types.ContactMethod, valu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "contactEndpoint": @@ -18468,7 +18490,7 @@ func awsAwsjson11_deserializeDocumentContactMethod(v **types.ContactMethod, valu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ContactEndpoint = &jtv + sv.ContactEndpoint = ptr.String(jtv) } case "createdAt": @@ -18495,7 +18517,7 @@ func awsAwsjson11_deserializeDocumentContactMethod(v **types.ContactMethod, valu if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "protocol": @@ -18531,7 +18553,7 @@ func awsAwsjson11_deserializeDocumentContactMethod(v **types.ContactMethod, valu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } default: @@ -18543,7 +18565,7 @@ func awsAwsjson11_deserializeDocumentContactMethod(v **types.ContactMethod, valu return nil } -func awsAwsjson11_deserializeDocumentContactMethodsList(v *[]*types.ContactMethod, value interface{}) error { +func awsAwsjson11_deserializeDocumentContactMethodsList(v *[]types.ContactMethod, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18556,18 +18578,20 @@ func awsAwsjson11_deserializeDocumentContactMethodsList(v *[]*types.ContactMetho return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContactMethod + var cv []types.ContactMethod if *v == nil { - cv = []*types.ContactMethod{} + cv = []types.ContactMethod{} } else { cv = *v } for _, value := range shape { - var col *types.ContactMethod - if err := awsAwsjson11_deserializeDocumentContactMethod(&col, value); err != nil { + var col types.ContactMethod + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContactMethod(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18684,7 +18708,7 @@ func awsAwsjson11_deserializeDocumentDestinationInfo(v **types.DestinationInfo, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "service": @@ -18693,7 +18717,7 @@ func awsAwsjson11_deserializeDocumentDestinationInfo(v **types.DestinationInfo, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Service = &jtv + sv.Service = ptr.String(jtv) } default: @@ -18738,7 +18762,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "attachedTo": @@ -18747,7 +18771,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.AttachedTo = &jtv + sv.AttachedTo = ptr.String(jtv) } case "attachmentState": @@ -18756,7 +18780,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.AttachmentState = &jtv + sv.AttachmentState = ptr.String(jtv) } case "createdAt": @@ -18804,7 +18828,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsAttached = &jtv + sv.IsAttached = ptr.Bool(jtv) } case "isSystemDisk": @@ -18813,7 +18837,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsSystemDisk = &jtv + sv.IsSystemDisk = ptr.Bool(jtv) } case "location": @@ -18827,7 +18851,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "path": @@ -18836,7 +18860,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "resourceType": @@ -18876,7 +18900,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } case "tags": @@ -18921,7 +18945,7 @@ func awsAwsjson11_deserializeDocumentDiskInfo(v **types.DiskInfo, value interfac if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsSystemDisk = &jtv + sv.IsSystemDisk = ptr.Bool(jtv) } case "name": @@ -18930,7 +18954,7 @@ func awsAwsjson11_deserializeDocumentDiskInfo(v **types.DiskInfo, value interfac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "path": @@ -18939,7 +18963,7 @@ func awsAwsjson11_deserializeDocumentDiskInfo(v **types.DiskInfo, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "sizeInGb": @@ -18964,7 +18988,7 @@ func awsAwsjson11_deserializeDocumentDiskInfo(v **types.DiskInfo, value interfac return nil } -func awsAwsjson11_deserializeDocumentDiskInfoList(v *[]*types.DiskInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentDiskInfoList(v *[]types.DiskInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18977,18 +19001,20 @@ func awsAwsjson11_deserializeDocumentDiskInfoList(v *[]*types.DiskInfo, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DiskInfo + var cv []types.DiskInfo if *v == nil { - cv = []*types.DiskInfo{} + cv = []types.DiskInfo{} } else { cv = *v } for _, value := range shape { - var col *types.DiskInfo - if err := awsAwsjson11_deserializeDocumentDiskInfo(&col, value); err != nil { + var col types.DiskInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDiskInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18996,7 +19022,7 @@ func awsAwsjson11_deserializeDocumentDiskInfoList(v *[]*types.DiskInfo, value in return nil } -func awsAwsjson11_deserializeDocumentDiskList(v *[]*types.Disk, value interface{}) error { +func awsAwsjson11_deserializeDocumentDiskList(v *[]types.Disk, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19009,18 +19035,20 @@ func awsAwsjson11_deserializeDocumentDiskList(v *[]*types.Disk, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Disk + var cv []types.Disk if *v == nil { - cv = []*types.Disk{} + cv = []types.Disk{} } else { cv = *v } for _, value := range shape { - var col *types.Disk - if err := awsAwsjson11_deserializeDocumentDisk(&col, value); err != nil { + var col types.Disk + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDisk(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19056,7 +19084,7 @@ func awsAwsjson11_deserializeDocumentDiskSnapshot(v **types.DiskSnapshot, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -19078,7 +19106,7 @@ func awsAwsjson11_deserializeDocumentDiskSnapshot(v **types.DiskSnapshot, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FromDiskArn = &jtv + sv.FromDiskArn = ptr.String(jtv) } case "fromDiskName": @@ -19087,7 +19115,7 @@ func awsAwsjson11_deserializeDocumentDiskSnapshot(v **types.DiskSnapshot, value if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.FromDiskName = &jtv + sv.FromDiskName = ptr.String(jtv) } case "fromInstanceArn": @@ -19096,7 +19124,7 @@ func awsAwsjson11_deserializeDocumentDiskSnapshot(v **types.DiskSnapshot, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FromInstanceArn = &jtv + sv.FromInstanceArn = ptr.String(jtv) } case "fromInstanceName": @@ -19105,7 +19133,7 @@ func awsAwsjson11_deserializeDocumentDiskSnapshot(v **types.DiskSnapshot, value if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.FromInstanceName = &jtv + sv.FromInstanceName = ptr.String(jtv) } case "isFromAutoSnapshot": @@ -19114,7 +19142,7 @@ func awsAwsjson11_deserializeDocumentDiskSnapshot(v **types.DiskSnapshot, value if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsFromAutoSnapshot = &jtv + sv.IsFromAutoSnapshot = ptr.Bool(jtv) } case "location": @@ -19128,7 +19156,7 @@ func awsAwsjson11_deserializeDocumentDiskSnapshot(v **types.DiskSnapshot, value if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "progress": @@ -19137,7 +19165,7 @@ func awsAwsjson11_deserializeDocumentDiskSnapshot(v **types.DiskSnapshot, value if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Progress = &jtv + sv.Progress = ptr.String(jtv) } case "resourceType": @@ -19177,7 +19205,7 @@ func awsAwsjson11_deserializeDocumentDiskSnapshot(v **types.DiskSnapshot, value if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } case "tags": @@ -19238,7 +19266,7 @@ func awsAwsjson11_deserializeDocumentDiskSnapshotInfo(v **types.DiskSnapshotInfo return nil } -func awsAwsjson11_deserializeDocumentDiskSnapshotList(v *[]*types.DiskSnapshot, value interface{}) error { +func awsAwsjson11_deserializeDocumentDiskSnapshotList(v *[]types.DiskSnapshot, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19251,18 +19279,20 @@ func awsAwsjson11_deserializeDocumentDiskSnapshotList(v *[]*types.DiskSnapshot, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DiskSnapshot + var cv []types.DiskSnapshot if *v == nil { - cv = []*types.DiskSnapshot{} + cv = []types.DiskSnapshot{} } else { cv = *v } for _, value := range shape { - var col *types.DiskSnapshot - if err := awsAwsjson11_deserializeDocumentDiskSnapshot(&col, value); err != nil { + var col types.DiskSnapshot + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDiskSnapshot(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19298,7 +19328,7 @@ func awsAwsjson11_deserializeDocumentDistributionBundle(v **types.DistributionBu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BundleId = &jtv + sv.BundleId = ptr.String(jtv) } case "isActive": @@ -19307,7 +19337,7 @@ func awsAwsjson11_deserializeDocumentDistributionBundle(v **types.DistributionBu if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsActive = &jtv + sv.IsActive = ptr.Bool(jtv) } case "name": @@ -19316,7 +19346,7 @@ func awsAwsjson11_deserializeDocumentDistributionBundle(v **types.DistributionBu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "price": @@ -19354,7 +19384,7 @@ func awsAwsjson11_deserializeDocumentDistributionBundle(v **types.DistributionBu return nil } -func awsAwsjson11_deserializeDocumentDistributionBundleList(v *[]*types.DistributionBundle, value interface{}) error { +func awsAwsjson11_deserializeDocumentDistributionBundleList(v *[]types.DistributionBundle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19367,18 +19397,20 @@ func awsAwsjson11_deserializeDocumentDistributionBundleList(v *[]*types.Distribu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DistributionBundle + var cv []types.DistributionBundle if *v == nil { - cv = []*types.DistributionBundle{} + cv = []types.DistributionBundle{} } else { cv = *v } for _, value := range shape { - var col *types.DistributionBundle - if err := awsAwsjson11_deserializeDocumentDistributionBundle(&col, value); err != nil { + var col types.DistributionBundle + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDistributionBundle(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19386,7 +19418,7 @@ func awsAwsjson11_deserializeDocumentDistributionBundleList(v *[]*types.Distribu return nil } -func awsAwsjson11_deserializeDocumentDistributionList(v *[]*types.LightsailDistribution, value interface{}) error { +func awsAwsjson11_deserializeDocumentDistributionList(v *[]types.LightsailDistribution, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19399,18 +19431,20 @@ func awsAwsjson11_deserializeDocumentDistributionList(v *[]*types.LightsailDistr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LightsailDistribution + var cv []types.LightsailDistribution if *v == nil { - cv = []*types.LightsailDistribution{} + cv = []types.LightsailDistribution{} } else { cv = *v } for _, value := range shape { - var col *types.LightsailDistribution - if err := awsAwsjson11_deserializeDocumentLightsailDistribution(&col, value); err != nil { + var col types.LightsailDistribution + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLightsailDistribution(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19446,7 +19480,7 @@ func awsAwsjson11_deserializeDocumentDomain(v **types.Domain, value interface{}) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -19478,7 +19512,7 @@ func awsAwsjson11_deserializeDocumentDomain(v **types.Domain, value interface{}) if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceType": @@ -19496,7 +19530,7 @@ func awsAwsjson11_deserializeDocumentDomain(v **types.Domain, value interface{}) if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } case "tags": @@ -19541,7 +19575,7 @@ func awsAwsjson11_deserializeDocumentDomainEntry(v **types.DomainEntry, value in if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "isAlias": @@ -19550,7 +19584,7 @@ func awsAwsjson11_deserializeDocumentDomainEntry(v **types.DomainEntry, value in if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsAlias = &jtv + sv.IsAlias = ptr.Bool(jtv) } case "name": @@ -19559,7 +19593,7 @@ func awsAwsjson11_deserializeDocumentDomainEntry(v **types.DomainEntry, value in if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "options": @@ -19573,7 +19607,7 @@ func awsAwsjson11_deserializeDocumentDomainEntry(v **types.DomainEntry, value in if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } case "type": @@ -19582,7 +19616,7 @@ func awsAwsjson11_deserializeDocumentDomainEntry(v **types.DomainEntry, value in if !ok { return fmt.Errorf("expected DomainEntryType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -19594,7 +19628,7 @@ func awsAwsjson11_deserializeDocumentDomainEntry(v **types.DomainEntry, value in return nil } -func awsAwsjson11_deserializeDocumentDomainEntryList(v *[]*types.DomainEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentDomainEntryList(v *[]types.DomainEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19607,18 +19641,20 @@ func awsAwsjson11_deserializeDocumentDomainEntryList(v *[]*types.DomainEntry, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainEntry + var cv []types.DomainEntry if *v == nil { - cv = []*types.DomainEntry{} + cv = []types.DomainEntry{} } else { cv = *v } for _, value := range shape { - var col *types.DomainEntry - if err := awsAwsjson11_deserializeDocumentDomainEntry(&col, value); err != nil { + var col types.DomainEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDomainEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19626,7 +19662,7 @@ func awsAwsjson11_deserializeDocumentDomainEntryList(v *[]*types.DomainEntry, va return nil } -func awsAwsjson11_deserializeDocumentDomainEntryOptions(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDomainEntryOptions(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19639,21 +19675,21 @@ func awsAwsjson11_deserializeDocumentDomainEntryOptions(v *map[string]*string, v return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -19662,7 +19698,7 @@ func awsAwsjson11_deserializeDocumentDomainEntryOptions(v *map[string]*string, v return nil } -func awsAwsjson11_deserializeDocumentDomainList(v *[]*types.Domain, value interface{}) error { +func awsAwsjson11_deserializeDocumentDomainList(v *[]types.Domain, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19675,18 +19711,20 @@ func awsAwsjson11_deserializeDocumentDomainList(v *[]*types.Domain, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Domain + var cv []types.Domain if *v == nil { - cv = []*types.Domain{} + cv = []types.Domain{} } else { cv = *v } for _, value := range shape { - var col *types.Domain - if err := awsAwsjson11_deserializeDocumentDomain(&col, value); err != nil { + var col types.Domain + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDomain(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19722,7 +19760,7 @@ func awsAwsjson11_deserializeDocumentDomainValidationRecord(v **types.DomainVali if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "resourceRecord": @@ -19739,7 +19777,7 @@ func awsAwsjson11_deserializeDocumentDomainValidationRecord(v **types.DomainVali return nil } -func awsAwsjson11_deserializeDocumentDomainValidationRecordList(v *[]*types.DomainValidationRecord, value interface{}) error { +func awsAwsjson11_deserializeDocumentDomainValidationRecordList(v *[]types.DomainValidationRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19752,18 +19790,20 @@ func awsAwsjson11_deserializeDocumentDomainValidationRecordList(v *[]*types.Doma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainValidationRecord + var cv []types.DomainValidationRecord if *v == nil { - cv = []*types.DomainValidationRecord{} + cv = []types.DomainValidationRecord{} } else { cv = *v } for _, value := range shape { - var col *types.DomainValidationRecord - if err := awsAwsjson11_deserializeDocumentDomainValidationRecord(&col, value); err != nil { + var col types.DomainValidationRecord + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDomainValidationRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19799,7 +19839,7 @@ func awsAwsjson11_deserializeDocumentExportSnapshotRecord(v **types.ExportSnapsh if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -19831,7 +19871,7 @@ func awsAwsjson11_deserializeDocumentExportSnapshotRecord(v **types.ExportSnapsh if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceType": @@ -19866,7 +19906,7 @@ func awsAwsjson11_deserializeDocumentExportSnapshotRecord(v **types.ExportSnapsh return nil } -func awsAwsjson11_deserializeDocumentExportSnapshotRecordList(v *[]*types.ExportSnapshotRecord, value interface{}) error { +func awsAwsjson11_deserializeDocumentExportSnapshotRecordList(v *[]types.ExportSnapshotRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19879,18 +19919,20 @@ func awsAwsjson11_deserializeDocumentExportSnapshotRecordList(v *[]*types.Export return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExportSnapshotRecord + var cv []types.ExportSnapshotRecord if *v == nil { - cv = []*types.ExportSnapshotRecord{} + cv = []types.ExportSnapshotRecord{} } else { cv = *v } for _, value := range shape { - var col *types.ExportSnapshotRecord - if err := awsAwsjson11_deserializeDocumentExportSnapshotRecord(&col, value); err != nil { + var col types.ExportSnapshotRecord + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExportSnapshotRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19926,7 +19968,7 @@ func awsAwsjson11_deserializeDocumentExportSnapshotRecordSourceInfo(v **types.Ex if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -19953,7 +19995,7 @@ func awsAwsjson11_deserializeDocumentExportSnapshotRecordSourceInfo(v **types.Ex if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FromResourceArn = &jtv + sv.FromResourceArn = ptr.String(jtv) } case "fromResourceName": @@ -19962,7 +20004,7 @@ func awsAwsjson11_deserializeDocumentExportSnapshotRecordSourceInfo(v **types.Ex if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FromResourceName = &jtv + sv.FromResourceName = ptr.String(jtv) } case "instanceSnapshotInfo": @@ -19976,7 +20018,7 @@ func awsAwsjson11_deserializeDocumentExportSnapshotRecordSourceInfo(v **types.Ex if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceType": @@ -20106,7 +20148,7 @@ func awsAwsjson11_deserializeDocumentHostKeyAttributes(v **types.HostKeyAttribut if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Algorithm = &jtv + sv.Algorithm = ptr.String(jtv) } case "fingerprintSHA1": @@ -20115,7 +20157,7 @@ func awsAwsjson11_deserializeDocumentHostKeyAttributes(v **types.HostKeyAttribut if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.FingerprintSHA1 = &jtv + sv.FingerprintSHA1 = ptr.String(jtv) } case "fingerprintSHA256": @@ -20124,7 +20166,7 @@ func awsAwsjson11_deserializeDocumentHostKeyAttributes(v **types.HostKeyAttribut if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.FingerprintSHA256 = &jtv + sv.FingerprintSHA256 = ptr.String(jtv) } case "notValidAfter": @@ -20159,7 +20201,7 @@ func awsAwsjson11_deserializeDocumentHostKeyAttributes(v **types.HostKeyAttribut if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.PublicKey = &jtv + sv.PublicKey = ptr.String(jtv) } case "witnessedAt": @@ -20184,7 +20226,7 @@ func awsAwsjson11_deserializeDocumentHostKeyAttributes(v **types.HostKeyAttribut return nil } -func awsAwsjson11_deserializeDocumentHostKeysList(v *[]*types.HostKeyAttributes, value interface{}) error { +func awsAwsjson11_deserializeDocumentHostKeysList(v *[]types.HostKeyAttributes, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20197,18 +20239,20 @@ func awsAwsjson11_deserializeDocumentHostKeysList(v *[]*types.HostKeyAttributes, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HostKeyAttributes + var cv []types.HostKeyAttributes if *v == nil { - cv = []*types.HostKeyAttributes{} + cv = []types.HostKeyAttributes{} } else { cv = *v } for _, value := range shape { - var col *types.HostKeyAttributes - if err := awsAwsjson11_deserializeDocumentHostKeyAttributes(&col, value); err != nil { + var col types.HostKeyAttributes + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHostKeyAttributes(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20249,7 +20293,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "blueprintId": @@ -20258,7 +20302,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.BlueprintId = &jtv + sv.BlueprintId = ptr.String(jtv) } case "blueprintName": @@ -20267,7 +20311,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.BlueprintName = &jtv + sv.BlueprintName = ptr.String(jtv) } case "bundleId": @@ -20276,7 +20320,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.BundleId = &jtv + sv.BundleId = ptr.String(jtv) } case "createdAt": @@ -20303,7 +20347,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected IpV6Address to be of type string, got %T instead", value) } - sv.Ipv6Address = &jtv + sv.Ipv6Address = ptr.String(jtv) } case "isStaticIp": @@ -20312,7 +20356,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsStaticIp = &jtv + sv.IsStaticIp = ptr.Bool(jtv) } case "location": @@ -20326,7 +20370,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "networking": @@ -20340,7 +20384,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.PrivateIpAddress = &jtv + sv.PrivateIpAddress = ptr.String(jtv) } case "publicIpAddress": @@ -20349,7 +20393,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.PublicIpAddress = &jtv + sv.PublicIpAddress = ptr.String(jtv) } case "resourceType": @@ -20367,7 +20411,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.SshKeyName = &jtv + sv.SshKeyName = ptr.String(jtv) } case "state": @@ -20381,7 +20425,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } case "tags": @@ -20395,7 +20439,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -20435,7 +20479,7 @@ func awsAwsjson11_deserializeDocumentInstanceAccessDetails(v **types.InstanceAcc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CertKey = &jtv + sv.CertKey = ptr.String(jtv) } case "expiresAt": @@ -20462,7 +20506,7 @@ func awsAwsjson11_deserializeDocumentInstanceAccessDetails(v **types.InstanceAcc if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.InstanceName = &jtv + sv.InstanceName = ptr.String(jtv) } case "ipAddress": @@ -20471,7 +20515,7 @@ func awsAwsjson11_deserializeDocumentInstanceAccessDetails(v **types.InstanceAcc if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "password": @@ -20480,7 +20524,7 @@ func awsAwsjson11_deserializeDocumentInstanceAccessDetails(v **types.InstanceAcc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "passwordData": @@ -20494,7 +20538,7 @@ func awsAwsjson11_deserializeDocumentInstanceAccessDetails(v **types.InstanceAcc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.PrivateKey = &jtv + sv.PrivateKey = ptr.String(jtv) } case "protocol": @@ -20512,7 +20556,7 @@ func awsAwsjson11_deserializeDocumentInstanceAccessDetails(v **types.InstanceAcc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -20632,7 +20676,7 @@ func awsAwsjson11_deserializeDocumentInstanceHealthSummary(v **types.InstanceHea if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.InstanceName = &jtv + sv.InstanceName = ptr.String(jtv) } default: @@ -20644,7 +20688,7 @@ func awsAwsjson11_deserializeDocumentInstanceHealthSummary(v **types.InstanceHea return nil } -func awsAwsjson11_deserializeDocumentInstanceHealthSummaryList(v *[]*types.InstanceHealthSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceHealthSummaryList(v *[]types.InstanceHealthSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20657,18 +20701,20 @@ func awsAwsjson11_deserializeDocumentInstanceHealthSummaryList(v *[]*types.Insta return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceHealthSummary + var cv []types.InstanceHealthSummary if *v == nil { - cv = []*types.InstanceHealthSummary{} + cv = []types.InstanceHealthSummary{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceHealthSummary - if err := awsAwsjson11_deserializeDocumentInstanceHealthSummary(&col, value); err != nil { + var col types.InstanceHealthSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceHealthSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20676,7 +20722,7 @@ func awsAwsjson11_deserializeDocumentInstanceHealthSummaryList(v *[]*types.Insta return nil } -func awsAwsjson11_deserializeDocumentInstanceList(v *[]*types.Instance, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceList(v *[]types.Instance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20689,18 +20735,20 @@ func awsAwsjson11_deserializeDocumentInstanceList(v *[]*types.Instance, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Instance + var cv []types.Instance if *v == nil { - cv = []*types.Instance{} + cv = []types.Instance{} } else { cv = *v } for _, value := range shape { - var col *types.Instance - if err := awsAwsjson11_deserializeDocumentInstance(&col, value); err != nil { + var col types.Instance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20822,7 +20870,7 @@ func awsAwsjson11_deserializeDocumentInstancePortInfo(v **types.InstancePortInfo if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.AccessFrom = &jtv + sv.AccessFrom = ptr.String(jtv) } case "accessType": @@ -20850,7 +20898,7 @@ func awsAwsjson11_deserializeDocumentInstancePortInfo(v **types.InstancePortInfo if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CommonName = &jtv + sv.CommonName = ptr.String(jtv) } case "fromPort": @@ -20863,7 +20911,7 @@ func awsAwsjson11_deserializeDocumentInstancePortInfo(v **types.InstancePortInfo if err != nil { return err } - sv.FromPort = ptr.Int32(int32(i64)) + sv.FromPort = int32(i64) } case "protocol": @@ -20885,7 +20933,7 @@ func awsAwsjson11_deserializeDocumentInstancePortInfo(v **types.InstancePortInfo if err != nil { return err } - sv.ToPort = ptr.Int32(int32(i64)) + sv.ToPort = int32(i64) } default: @@ -20897,7 +20945,7 @@ func awsAwsjson11_deserializeDocumentInstancePortInfo(v **types.InstancePortInfo return nil } -func awsAwsjson11_deserializeDocumentInstancePortInfoList(v *[]*types.InstancePortInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstancePortInfoList(v *[]types.InstancePortInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20910,18 +20958,20 @@ func awsAwsjson11_deserializeDocumentInstancePortInfoList(v *[]*types.InstancePo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstancePortInfo + var cv []types.InstancePortInfo if *v == nil { - cv = []*types.InstancePortInfo{} + cv = []types.InstancePortInfo{} } else { cv = *v } for _, value := range shape { - var col *types.InstancePortInfo - if err := awsAwsjson11_deserializeDocumentInstancePortInfo(&col, value); err != nil { + var col types.InstancePortInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstancePortInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20971,7 +21021,7 @@ func awsAwsjson11_deserializeDocumentInstancePortState(v **types.InstancePortSta if err != nil { return err } - sv.FromPort = ptr.Int32(int32(i64)) + sv.FromPort = int32(i64) } case "protocol": @@ -21002,7 +21052,7 @@ func awsAwsjson11_deserializeDocumentInstancePortState(v **types.InstancePortSta if err != nil { return err } - sv.ToPort = ptr.Int32(int32(i64)) + sv.ToPort = int32(i64) } default: @@ -21014,7 +21064,7 @@ func awsAwsjson11_deserializeDocumentInstancePortState(v **types.InstancePortSta return nil } -func awsAwsjson11_deserializeDocumentInstancePortStateList(v *[]*types.InstancePortState, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstancePortStateList(v *[]types.InstancePortState, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21027,18 +21077,20 @@ func awsAwsjson11_deserializeDocumentInstancePortStateList(v *[]*types.InstanceP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstancePortState + var cv []types.InstancePortState if *v == nil { - cv = []*types.InstancePortState{} + cv = []types.InstancePortState{} } else { cv = *v } for _, value := range shape { - var col *types.InstancePortState - if err := awsAwsjson11_deserializeDocumentInstancePortState(&col, value); err != nil { + var col types.InstancePortState + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstancePortState(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21074,7 +21126,7 @@ func awsAwsjson11_deserializeDocumentInstanceSnapshot(v **types.InstanceSnapshot if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -21101,7 +21153,7 @@ func awsAwsjson11_deserializeDocumentInstanceSnapshot(v **types.InstanceSnapshot if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.FromBlueprintId = &jtv + sv.FromBlueprintId = ptr.String(jtv) } case "fromBundleId": @@ -21110,7 +21162,7 @@ func awsAwsjson11_deserializeDocumentInstanceSnapshot(v **types.InstanceSnapshot if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.FromBundleId = &jtv + sv.FromBundleId = ptr.String(jtv) } case "fromInstanceArn": @@ -21119,7 +21171,7 @@ func awsAwsjson11_deserializeDocumentInstanceSnapshot(v **types.InstanceSnapshot if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FromInstanceArn = &jtv + sv.FromInstanceArn = ptr.String(jtv) } case "fromInstanceName": @@ -21128,7 +21180,7 @@ func awsAwsjson11_deserializeDocumentInstanceSnapshot(v **types.InstanceSnapshot if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.FromInstanceName = &jtv + sv.FromInstanceName = ptr.String(jtv) } case "isFromAutoSnapshot": @@ -21137,7 +21189,7 @@ func awsAwsjson11_deserializeDocumentInstanceSnapshot(v **types.InstanceSnapshot if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsFromAutoSnapshot = &jtv + sv.IsFromAutoSnapshot = ptr.Bool(jtv) } case "location": @@ -21151,7 +21203,7 @@ func awsAwsjson11_deserializeDocumentInstanceSnapshot(v **types.InstanceSnapshot if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "progress": @@ -21160,7 +21212,7 @@ func awsAwsjson11_deserializeDocumentInstanceSnapshot(v **types.InstanceSnapshot if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Progress = &jtv + sv.Progress = ptr.String(jtv) } case "resourceType": @@ -21200,7 +21252,7 @@ func awsAwsjson11_deserializeDocumentInstanceSnapshot(v **types.InstanceSnapshot if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } case "tags": @@ -21245,7 +21297,7 @@ func awsAwsjson11_deserializeDocumentInstanceSnapshotInfo(v **types.InstanceSnap if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FromBlueprintId = &jtv + sv.FromBlueprintId = ptr.String(jtv) } case "fromBundleId": @@ -21254,7 +21306,7 @@ func awsAwsjson11_deserializeDocumentInstanceSnapshotInfo(v **types.InstanceSnap if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FromBundleId = &jtv + sv.FromBundleId = ptr.String(jtv) } case "fromDiskInfo": @@ -21271,7 +21323,7 @@ func awsAwsjson11_deserializeDocumentInstanceSnapshotInfo(v **types.InstanceSnap return nil } -func awsAwsjson11_deserializeDocumentInstanceSnapshotList(v *[]*types.InstanceSnapshot, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceSnapshotList(v *[]types.InstanceSnapshot, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21284,18 +21336,20 @@ func awsAwsjson11_deserializeDocumentInstanceSnapshotList(v *[]*types.InstanceSn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceSnapshot + var cv []types.InstanceSnapshot if *v == nil { - cv = []*types.InstanceSnapshot{} + cv = []types.InstanceSnapshot{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceSnapshot - if err := awsAwsjson11_deserializeDocumentInstanceSnapshot(&col, value); err != nil { + var col types.InstanceSnapshot + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceSnapshot(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21344,7 +21398,7 @@ func awsAwsjson11_deserializeDocumentInstanceState(v **types.InstanceState, valu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -21384,7 +21438,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "docs": @@ -21393,7 +21447,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Docs = &jtv + sv.Docs = ptr.String(jtv) } case "message": @@ -21402,7 +21456,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "tip": @@ -21411,7 +21465,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Tip = &jtv + sv.Tip = ptr.String(jtv) } default: @@ -21451,7 +21505,7 @@ func awsAwsjson11_deserializeDocumentKeyPair(v **types.KeyPair, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -21473,7 +21527,7 @@ func awsAwsjson11_deserializeDocumentKeyPair(v **types.KeyPair, value interface{ if !ok { return fmt.Errorf("expected Base64 to be of type string, got %T instead", value) } - sv.Fingerprint = &jtv + sv.Fingerprint = ptr.String(jtv) } case "location": @@ -21487,7 +21541,7 @@ func awsAwsjson11_deserializeDocumentKeyPair(v **types.KeyPair, value interface{ if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceType": @@ -21505,7 +21559,7 @@ func awsAwsjson11_deserializeDocumentKeyPair(v **types.KeyPair, value interface{ if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } case "tags": @@ -21522,7 +21576,7 @@ func awsAwsjson11_deserializeDocumentKeyPair(v **types.KeyPair, value interface{ return nil } -func awsAwsjson11_deserializeDocumentKeyPairList(v *[]*types.KeyPair, value interface{}) error { +func awsAwsjson11_deserializeDocumentKeyPairList(v *[]types.KeyPair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21535,18 +21589,20 @@ func awsAwsjson11_deserializeDocumentKeyPairList(v *[]*types.KeyPair, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyPair + var cv []types.KeyPair if *v == nil { - cv = []*types.KeyPair{} + cv = []types.KeyPair{} } else { cv = *v } for _, value := range shape { - var col *types.KeyPair - if err := awsAwsjson11_deserializeDocumentKeyPair(&col, value); err != nil { + var col types.KeyPair + destAddr := &col + if err := awsAwsjson11_deserializeDocumentKeyPair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21582,7 +21638,7 @@ func awsAwsjson11_deserializeDocumentLightsailDistribution(v **types.LightsailDi if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.AbleToUpdateBundle = &jtv + sv.AbleToUpdateBundle = ptr.Bool(jtv) } case "alternativeDomainNames": @@ -21596,7 +21652,7 @@ func awsAwsjson11_deserializeDocumentLightsailDistribution(v **types.LightsailDi if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "bundleId": @@ -21605,7 +21661,7 @@ func awsAwsjson11_deserializeDocumentLightsailDistribution(v **types.LightsailDi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BundleId = &jtv + sv.BundleId = ptr.String(jtv) } case "cacheBehaviors": @@ -21624,7 +21680,7 @@ func awsAwsjson11_deserializeDocumentLightsailDistribution(v **types.LightsailDi if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.CertificateName = &jtv + sv.CertificateName = ptr.String(jtv) } case "createdAt": @@ -21651,7 +21707,7 @@ func awsAwsjson11_deserializeDocumentLightsailDistribution(v **types.LightsailDi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "isEnabled": @@ -21660,7 +21716,7 @@ func awsAwsjson11_deserializeDocumentLightsailDistribution(v **types.LightsailDi if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsEnabled = &jtv + sv.IsEnabled = ptr.Bool(jtv) } case "location": @@ -21674,7 +21730,7 @@ func awsAwsjson11_deserializeDocumentLightsailDistribution(v **types.LightsailDi if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "origin": @@ -21688,7 +21744,7 @@ func awsAwsjson11_deserializeDocumentLightsailDistribution(v **types.LightsailDi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.OriginPublicDNS = &jtv + sv.OriginPublicDNS = ptr.String(jtv) } case "resourceType": @@ -21706,7 +21762,7 @@ func awsAwsjson11_deserializeDocumentLightsailDistribution(v **types.LightsailDi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "supportCode": @@ -21715,7 +21771,7 @@ func awsAwsjson11_deserializeDocumentLightsailDistribution(v **types.LightsailDi if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } case "tags": @@ -21760,7 +21816,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancer(v **types.LoadBalancer, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "configurationOptions": @@ -21787,7 +21843,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancer(v **types.LoadBalancer, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DnsName = &jtv + sv.DnsName = ptr.String(jtv) } case "healthCheckPath": @@ -21796,7 +21852,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancer(v **types.LoadBalancer, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.HealthCheckPath = &jtv + sv.HealthCheckPath = ptr.String(jtv) } case "instanceHealthSummary": @@ -21828,7 +21884,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancer(v **types.LoadBalancer, value if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "protocol": @@ -21869,7 +21925,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancer(v **types.LoadBalancer, value if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } case "tags": @@ -21891,7 +21947,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancer(v **types.LoadBalancer, value return nil } -func awsAwsjson11_deserializeDocumentLoadBalancerConfigurationOptions(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLoadBalancerConfigurationOptions(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21904,21 +21960,21 @@ func awsAwsjson11_deserializeDocumentLoadBalancerConfigurationOptions(v *map[str return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -21927,7 +21983,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerConfigurationOptions(v *map[str return nil } -func awsAwsjson11_deserializeDocumentLoadBalancerList(v *[]*types.LoadBalancer, value interface{}) error { +func awsAwsjson11_deserializeDocumentLoadBalancerList(v *[]types.LoadBalancer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21940,18 +21996,20 @@ func awsAwsjson11_deserializeDocumentLoadBalancerList(v *[]*types.LoadBalancer, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LoadBalancer + var cv []types.LoadBalancer if *v == nil { - cv = []*types.LoadBalancer{} + cv = []types.LoadBalancer{} } else { cv = *v } for _, value := range shape { - var col *types.LoadBalancer - if err := awsAwsjson11_deserializeDocumentLoadBalancer(&col, value); err != nil { + var col types.LoadBalancer + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLoadBalancer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21987,7 +22045,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificate(v **types.LoadBa if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -22009,7 +22067,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificate(v **types.LoadBa if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "domainValidationRecords": @@ -22032,7 +22090,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificate(v **types.LoadBa if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsAttached = &jtv + sv.IsAttached = ptr.Bool(jtv) } case "issuedAt": @@ -22054,7 +22112,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificate(v **types.LoadBa if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Issuer = &jtv + sv.Issuer = ptr.String(jtv) } case "keyAlgorithm": @@ -22063,7 +22121,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificate(v **types.LoadBa if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KeyAlgorithm = &jtv + sv.KeyAlgorithm = ptr.String(jtv) } case "loadBalancerName": @@ -22072,7 +22130,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificate(v **types.LoadBa if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.LoadBalancerName = &jtv + sv.LoadBalancerName = ptr.String(jtv) } case "location": @@ -22086,7 +22144,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificate(v **types.LoadBa if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "notAfter": @@ -22157,7 +22215,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificate(v **types.LoadBa if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Serial = &jtv + sv.Serial = ptr.String(jtv) } case "signatureAlgorithm": @@ -22166,7 +22224,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificate(v **types.LoadBa if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SignatureAlgorithm = &jtv + sv.SignatureAlgorithm = ptr.String(jtv) } case "status": @@ -22184,7 +22242,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificate(v **types.LoadBa if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Subject = &jtv + sv.Subject = ptr.String(jtv) } case "subjectAlternativeNames": @@ -22198,7 +22256,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificate(v **types.LoadBa if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } case "tags": @@ -22243,7 +22301,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationO if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "validationStatus": @@ -22264,7 +22322,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationO return nil } -func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationOptionList(v *[]*types.LoadBalancerTlsCertificateDomainValidationOption, value interface{}) error { +func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationOptionList(v *[]types.LoadBalancerTlsCertificateDomainValidationOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22277,18 +22335,20 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationO return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LoadBalancerTlsCertificateDomainValidationOption + var cv []types.LoadBalancerTlsCertificateDomainValidationOption if *v == nil { - cv = []*types.LoadBalancerTlsCertificateDomainValidationOption{} + cv = []types.LoadBalancerTlsCertificateDomainValidationOption{} } else { cv = *v } for _, value := range shape { - var col *types.LoadBalancerTlsCertificateDomainValidationOption - if err := awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationOption(&col, value); err != nil { + var col types.LoadBalancerTlsCertificateDomainValidationOption + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationOption(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22324,7 +22384,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationR if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "name": @@ -22333,7 +22393,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationR if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "type": @@ -22342,7 +22402,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationR if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "validationStatus": @@ -22360,7 +22420,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationR if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -22372,7 +22432,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationR return nil } -func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationRecordList(v *[]*types.LoadBalancerTlsCertificateDomainValidationRecord, value interface{}) error { +func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationRecordList(v *[]types.LoadBalancerTlsCertificateDomainValidationRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22385,18 +22445,20 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LoadBalancerTlsCertificateDomainValidationRecord + var cv []types.LoadBalancerTlsCertificateDomainValidationRecord if *v == nil { - cv = []*types.LoadBalancerTlsCertificateDomainValidationRecord{} + cv = []types.LoadBalancerTlsCertificateDomainValidationRecord{} } else { cv = *v } for _, value := range shape { - var col *types.LoadBalancerTlsCertificateDomainValidationRecord - if err := awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationRecord(&col, value); err != nil { + var col types.LoadBalancerTlsCertificateDomainValidationRecord + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22404,7 +22466,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateDomainValidationR return nil } -func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateList(v *[]*types.LoadBalancerTlsCertificate, value interface{}) error { +func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateList(v *[]types.LoadBalancerTlsCertificate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22417,18 +22479,20 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LoadBalancerTlsCertificate + var cv []types.LoadBalancerTlsCertificate if *v == nil { - cv = []*types.LoadBalancerTlsCertificate{} + cv = []types.LoadBalancerTlsCertificate{} } else { cv = *v } for _, value := range shape { - var col *types.LoadBalancerTlsCertificate - if err := awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificate(&col, value); err != nil { + var col types.LoadBalancerTlsCertificate + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22509,7 +22573,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateSummary(v **types if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsAttached = &jtv + sv.IsAttached = ptr.Bool(jtv) } case "name": @@ -22518,7 +22582,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateSummary(v **types if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -22530,7 +22594,7 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateSummary(v **types return nil } -func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateSummaryList(v *[]*types.LoadBalancerTlsCertificateSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateSummaryList(v *[]types.LoadBalancerTlsCertificateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22543,18 +22607,20 @@ func awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateSummaryList(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LoadBalancerTlsCertificateSummary + var cv []types.LoadBalancerTlsCertificateSummary if *v == nil { - cv = []*types.LoadBalancerTlsCertificateSummary{} + cv = []types.LoadBalancerTlsCertificateSummary{} } else { cv = *v } for _, value := range shape { - var col *types.LoadBalancerTlsCertificateSummary - if err := awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateSummary(&col, value); err != nil { + var col types.LoadBalancerTlsCertificateSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLoadBalancerTlsCertificateSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22603,7 +22669,7 @@ func awsAwsjson11_deserializeDocumentLogEvent(v **types.LogEvent, value interfac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22615,7 +22681,7 @@ func awsAwsjson11_deserializeDocumentLogEvent(v **types.LogEvent, value interfac return nil } -func awsAwsjson11_deserializeDocumentLogEventList(v *[]*types.LogEvent, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogEventList(v *[]types.LogEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22628,18 +22694,20 @@ func awsAwsjson11_deserializeDocumentLogEventList(v *[]*types.LogEvent, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LogEvent + var cv []types.LogEvent if *v == nil { - cv = []*types.LogEvent{} + cv = []types.LogEvent{} } else { cv = *v } for _, value := range shape { - var col *types.LogEvent - if err := awsAwsjson11_deserializeDocumentLogEvent(&col, value); err != nil { + var col types.LogEvent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLogEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22679,7 +22747,7 @@ func awsAwsjson11_deserializeDocumentMetricDatapoint(v **types.MetricDatapoint, if err != nil { return err } - sv.Average = &f64 + sv.Average = ptr.Float64(f64) } case "maximum": @@ -22692,7 +22760,7 @@ func awsAwsjson11_deserializeDocumentMetricDatapoint(v **types.MetricDatapoint, if err != nil { return err } - sv.Maximum = &f64 + sv.Maximum = ptr.Float64(f64) } case "minimum": @@ -22705,7 +22773,7 @@ func awsAwsjson11_deserializeDocumentMetricDatapoint(v **types.MetricDatapoint, if err != nil { return err } - sv.Minimum = &f64 + sv.Minimum = ptr.Float64(f64) } case "sampleCount": @@ -22718,7 +22786,7 @@ func awsAwsjson11_deserializeDocumentMetricDatapoint(v **types.MetricDatapoint, if err != nil { return err } - sv.SampleCount = &f64 + sv.SampleCount = ptr.Float64(f64) } case "sum": @@ -22731,7 +22799,7 @@ func awsAwsjson11_deserializeDocumentMetricDatapoint(v **types.MetricDatapoint, if err != nil { return err } - sv.Sum = &f64 + sv.Sum = ptr.Float64(f64) } case "timestamp": @@ -22765,7 +22833,7 @@ func awsAwsjson11_deserializeDocumentMetricDatapoint(v **types.MetricDatapoint, return nil } -func awsAwsjson11_deserializeDocumentMetricDatapointList(v *[]*types.MetricDatapoint, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricDatapointList(v *[]types.MetricDatapoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22778,18 +22846,20 @@ func awsAwsjson11_deserializeDocumentMetricDatapointList(v *[]*types.MetricDatap return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MetricDatapoint + var cv []types.MetricDatapoint if *v == nil { - cv = []*types.MetricDatapoint{} + cv = []types.MetricDatapoint{} } else { cv = *v } for _, value := range shape { - var col *types.MetricDatapoint - if err := awsAwsjson11_deserializeDocumentMetricDatapoint(&col, value); err != nil { + var col types.MetricDatapoint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMetricDatapoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22825,7 +22895,7 @@ func awsAwsjson11_deserializeDocumentMonitoredResourceInfo(v **types.MonitoredRe if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "name": @@ -22834,7 +22904,7 @@ func awsAwsjson11_deserializeDocumentMonitoredResourceInfo(v **types.MonitoredRe if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceType": @@ -22927,7 +22997,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "docs": @@ -22936,7 +23006,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Docs = &jtv + sv.Docs = ptr.String(jtv) } case "message": @@ -22945,7 +23015,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "tip": @@ -22954,7 +23024,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Tip = &jtv + sv.Tip = ptr.String(jtv) } default: @@ -23043,7 +23113,7 @@ func awsAwsjson11_deserializeDocumentOperation(v **types.Operation, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "errorDetails": @@ -23052,7 +23122,7 @@ func awsAwsjson11_deserializeDocumentOperation(v **types.Operation, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ErrorDetails = &jtv + sv.ErrorDetails = ptr.String(jtv) } case "id": @@ -23061,7 +23131,7 @@ func awsAwsjson11_deserializeDocumentOperation(v **types.Operation, value interf if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "isTerminal": @@ -23070,7 +23140,7 @@ func awsAwsjson11_deserializeDocumentOperation(v **types.Operation, value interf if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsTerminal = &jtv + sv.IsTerminal = ptr.Bool(jtv) } case "location": @@ -23084,7 +23154,7 @@ func awsAwsjson11_deserializeDocumentOperation(v **types.Operation, value interf if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.OperationDetails = &jtv + sv.OperationDetails = ptr.String(jtv) } case "operationType": @@ -23102,7 +23172,7 @@ func awsAwsjson11_deserializeDocumentOperation(v **types.Operation, value interf if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } case "resourceType": @@ -23173,7 +23243,7 @@ func awsAwsjson11_deserializeDocumentOperationFailureException(v **types.Operati if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "docs": @@ -23182,7 +23252,7 @@ func awsAwsjson11_deserializeDocumentOperationFailureException(v **types.Operati if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Docs = &jtv + sv.Docs = ptr.String(jtv) } case "message": @@ -23191,7 +23261,7 @@ func awsAwsjson11_deserializeDocumentOperationFailureException(v **types.Operati if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "tip": @@ -23200,7 +23270,7 @@ func awsAwsjson11_deserializeDocumentOperationFailureException(v **types.Operati if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Tip = &jtv + sv.Tip = ptr.String(jtv) } default: @@ -23212,7 +23282,7 @@ func awsAwsjson11_deserializeDocumentOperationFailureException(v **types.Operati return nil } -func awsAwsjson11_deserializeDocumentOperationList(v *[]*types.Operation, value interface{}) error { +func awsAwsjson11_deserializeDocumentOperationList(v *[]types.Operation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23225,18 +23295,20 @@ func awsAwsjson11_deserializeDocumentOperationList(v *[]*types.Operation, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Operation + var cv []types.Operation if *v == nil { - cv = []*types.Operation{} + cv = []types.Operation{} } else { cv = *v } for _, value := range shape { - var col *types.Operation - if err := awsAwsjson11_deserializeDocumentOperation(&col, value); err != nil { + var col types.Operation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOperation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23272,7 +23344,7 @@ func awsAwsjson11_deserializeDocumentOrigin(v **types.Origin, value interface{}) if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "protocolPolicy": @@ -23339,7 +23411,7 @@ func awsAwsjson11_deserializeDocumentPasswordData(v **types.PasswordData, value if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Ciphertext = &jtv + sv.Ciphertext = ptr.String(jtv) } case "keyPairName": @@ -23348,7 +23420,7 @@ func awsAwsjson11_deserializeDocumentPasswordData(v **types.PasswordData, value if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.KeyPairName = &jtv + sv.KeyPairName = ptr.String(jtv) } default: @@ -23388,7 +23460,7 @@ func awsAwsjson11_deserializeDocumentPendingMaintenanceAction(v **types.PendingM if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Action = &jtv + sv.Action = ptr.String(jtv) } case "currentApplyDate": @@ -23410,7 +23482,7 @@ func awsAwsjson11_deserializeDocumentPendingMaintenanceAction(v **types.PendingM if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } default: @@ -23422,7 +23494,7 @@ func awsAwsjson11_deserializeDocumentPendingMaintenanceAction(v **types.PendingM return nil } -func awsAwsjson11_deserializeDocumentPendingMaintenanceActionList(v *[]*types.PendingMaintenanceAction, value interface{}) error { +func awsAwsjson11_deserializeDocumentPendingMaintenanceActionList(v *[]types.PendingMaintenanceAction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23435,18 +23507,20 @@ func awsAwsjson11_deserializeDocumentPendingMaintenanceActionList(v *[]*types.Pe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PendingMaintenanceAction + var cv []types.PendingMaintenanceAction if *v == nil { - cv = []*types.PendingMaintenanceAction{} + cv = []types.PendingMaintenanceAction{} } else { cv = *v } for _, value := range shape { - var col *types.PendingMaintenanceAction - if err := awsAwsjson11_deserializeDocumentPendingMaintenanceAction(&col, value); err != nil { + var col types.PendingMaintenanceAction + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPendingMaintenanceAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23482,7 +23556,7 @@ func awsAwsjson11_deserializeDocumentPendingModifiedRelationalDatabaseValues(v * if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.BackupRetentionEnabled = &jtv + sv.BackupRetentionEnabled = ptr.Bool(jtv) } case "engineVersion": @@ -23491,7 +23565,7 @@ func awsAwsjson11_deserializeDocumentPendingModifiedRelationalDatabaseValues(v * if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "masterUserPassword": @@ -23500,7 +23574,7 @@ func awsAwsjson11_deserializeDocumentPendingModifiedRelationalDatabaseValues(v * if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.MasterUserPassword = &jtv + sv.MasterUserPassword = ptr.String(jtv) } default: @@ -23512,7 +23586,7 @@ func awsAwsjson11_deserializeDocumentPendingModifiedRelationalDatabaseValues(v * return nil } -func awsAwsjson11_deserializeDocumentPortList(v *[]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentPortList(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23525,15 +23599,15 @@ func awsAwsjson11_deserializeDocumentPortList(v *[]*int32, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int32 + var cv []int32 if *v == nil { - cv = []*int32{} + cv = []int32{} } else { cv = *v } for _, value := range shape { - var col *int32 + var col int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -23543,7 +23617,7 @@ func awsAwsjson11_deserializeDocumentPortList(v *[]*int32, value interface{}) er if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } cv = append(cv, col) @@ -23580,7 +23654,7 @@ func awsAwsjson11_deserializeDocumentQueryStringObject(v **types.QueryStringObje if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.Option = &jtv + sv.Option = ptr.Bool(jtv) } case "queryStringsAllowList": @@ -23630,7 +23704,7 @@ func awsAwsjson11_deserializeDocumentRegion(v **types.Region, value interface{}) if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ContinentCode = &jtv + sv.ContinentCode = ptr.String(jtv) } case "description": @@ -23639,7 +23713,7 @@ func awsAwsjson11_deserializeDocumentRegion(v **types.Region, value interface{}) if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "displayName": @@ -23648,7 +23722,7 @@ func awsAwsjson11_deserializeDocumentRegion(v **types.Region, value interface{}) if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "name": @@ -23674,7 +23748,7 @@ func awsAwsjson11_deserializeDocumentRegion(v **types.Region, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentRegionList(v *[]*types.Region, value interface{}) error { +func awsAwsjson11_deserializeDocumentRegionList(v *[]types.Region, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23687,18 +23761,20 @@ func awsAwsjson11_deserializeDocumentRegionList(v *[]*types.Region, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Region + var cv []types.Region if *v == nil { - cv = []*types.Region{} + cv = []types.Region{} } else { cv = *v } for _, value := range shape { - var col *types.Region - if err := awsAwsjson11_deserializeDocumentRegion(&col, value); err != nil { + var col types.Region + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRegion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23734,7 +23810,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "backupRetentionEnabled": @@ -23743,7 +23819,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.BackupRetentionEnabled = &jtv + sv.BackupRetentionEnabled = ptr.Bool(jtv) } case "caCertificateIdentifier": @@ -23752,7 +23828,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.CaCertificateIdentifier = &jtv + sv.CaCertificateIdentifier = ptr.String(jtv) } case "createdAt": @@ -23774,7 +23850,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Engine = &jtv + sv.Engine = ptr.String(jtv) } case "engineVersion": @@ -23783,7 +23859,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "hardware": @@ -23815,7 +23891,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.MasterDatabaseName = &jtv + sv.MasterDatabaseName = ptr.String(jtv) } case "masterEndpoint": @@ -23829,7 +23905,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MasterUsername = &jtv + sv.MasterUsername = ptr.String(jtv) } case "name": @@ -23838,7 +23914,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "parameterApplyStatus": @@ -23847,7 +23923,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ParameterApplyStatus = &jtv + sv.ParameterApplyStatus = ptr.String(jtv) } case "pendingMaintenanceActions": @@ -23866,7 +23942,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PreferredBackupWindow = &jtv + sv.PreferredBackupWindow = ptr.String(jtv) } case "preferredMaintenanceWindow": @@ -23875,7 +23951,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PreferredMaintenanceWindow = &jtv + sv.PreferredMaintenanceWindow = ptr.String(jtv) } case "publiclyAccessible": @@ -23884,7 +23960,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.PubliclyAccessible = &jtv + sv.PubliclyAccessible = ptr.Bool(jtv) } case "relationalDatabaseBlueprintId": @@ -23893,7 +23969,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RelationalDatabaseBlueprintId = &jtv + sv.RelationalDatabaseBlueprintId = ptr.String(jtv) } case "relationalDatabaseBundleId": @@ -23902,7 +23978,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RelationalDatabaseBundleId = &jtv + sv.RelationalDatabaseBundleId = ptr.String(jtv) } case "resourceType": @@ -23920,7 +23996,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SecondaryAvailabilityZone = &jtv + sv.SecondaryAvailabilityZone = ptr.String(jtv) } case "state": @@ -23929,7 +24005,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } case "supportCode": @@ -23938,7 +24014,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabase(v **types.RelationalData if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } case "tags": @@ -23983,7 +24059,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseBlueprint(v **types.Relat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BlueprintId = &jtv + sv.BlueprintId = ptr.String(jtv) } case "engine": @@ -24001,7 +24077,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseBlueprint(v **types.Relat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.EngineDescription = &jtv + sv.EngineDescription = ptr.String(jtv) } case "engineVersion": @@ -24010,7 +24086,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseBlueprint(v **types.Relat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "engineVersionDescription": @@ -24019,7 +24095,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseBlueprint(v **types.Relat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.EngineVersionDescription = &jtv + sv.EngineVersionDescription = ptr.String(jtv) } case "isEngineDefault": @@ -24028,7 +24104,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseBlueprint(v **types.Relat if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsEngineDefault = &jtv + sv.IsEngineDefault = ptr.Bool(jtv) } default: @@ -24040,7 +24116,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseBlueprint(v **types.Relat return nil } -func awsAwsjson11_deserializeDocumentRelationalDatabaseBlueprintList(v *[]*types.RelationalDatabaseBlueprint, value interface{}) error { +func awsAwsjson11_deserializeDocumentRelationalDatabaseBlueprintList(v *[]types.RelationalDatabaseBlueprint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24053,18 +24129,20 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseBlueprintList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RelationalDatabaseBlueprint + var cv []types.RelationalDatabaseBlueprint if *v == nil { - cv = []*types.RelationalDatabaseBlueprint{} + cv = []types.RelationalDatabaseBlueprint{} } else { cv = *v } for _, value := range shape { - var col *types.RelationalDatabaseBlueprint - if err := awsAwsjson11_deserializeDocumentRelationalDatabaseBlueprint(&col, value); err != nil { + var col types.RelationalDatabaseBlueprint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRelationalDatabaseBlueprint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24100,7 +24178,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseBundle(v **types.Relation if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.BundleId = &jtv + sv.BundleId = ptr.String(jtv) } case "cpuCount": @@ -24135,7 +24213,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseBundle(v **types.Relation if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsActive = &jtv + sv.IsActive = ptr.Bool(jtv) } case "isEncrypted": @@ -24144,7 +24222,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseBundle(v **types.Relation if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsEncrypted = &jtv + sv.IsEncrypted = ptr.Bool(jtv) } case "name": @@ -24153,7 +24231,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseBundle(v **types.Relation if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "price": @@ -24204,7 +24282,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseBundle(v **types.Relation return nil } -func awsAwsjson11_deserializeDocumentRelationalDatabaseBundleList(v *[]*types.RelationalDatabaseBundle, value interface{}) error { +func awsAwsjson11_deserializeDocumentRelationalDatabaseBundleList(v *[]types.RelationalDatabaseBundle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24217,18 +24295,20 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseBundleList(v *[]*types.Re return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RelationalDatabaseBundle + var cv []types.RelationalDatabaseBundle if *v == nil { - cv = []*types.RelationalDatabaseBundle{} + cv = []types.RelationalDatabaseBundle{} } else { cv = *v } for _, value := range shape { - var col *types.RelationalDatabaseBundle - if err := awsAwsjson11_deserializeDocumentRelationalDatabaseBundle(&col, value); err != nil { + var col types.RelationalDatabaseBundle + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRelationalDatabaseBundle(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24264,7 +24344,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseEndpoint(v **types.Relati if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "port": @@ -24335,7 +24415,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseEvent(v **types.Relationa if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resource": @@ -24344,7 +24424,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseEvent(v **types.Relationa if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } default: @@ -24356,7 +24436,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseEvent(v **types.Relationa return nil } -func awsAwsjson11_deserializeDocumentRelationalDatabaseEventList(v *[]*types.RelationalDatabaseEvent, value interface{}) error { +func awsAwsjson11_deserializeDocumentRelationalDatabaseEventList(v *[]types.RelationalDatabaseEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24369,18 +24449,20 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseEventList(v *[]*types.Rel return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RelationalDatabaseEvent + var cv []types.RelationalDatabaseEvent if *v == nil { - cv = []*types.RelationalDatabaseEvent{} + cv = []types.RelationalDatabaseEvent{} } else { cv = *v } for _, value := range shape { - var col *types.RelationalDatabaseEvent - if err := awsAwsjson11_deserializeDocumentRelationalDatabaseEvent(&col, value); err != nil { + var col types.RelationalDatabaseEvent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRelationalDatabaseEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24458,7 +24540,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseHardware(v **types.Relati return nil } -func awsAwsjson11_deserializeDocumentRelationalDatabaseList(v *[]*types.RelationalDatabase, value interface{}) error { +func awsAwsjson11_deserializeDocumentRelationalDatabaseList(v *[]types.RelationalDatabase, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24471,18 +24553,20 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseList(v *[]*types.Relation return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RelationalDatabase + var cv []types.RelationalDatabase if *v == nil { - cv = []*types.RelationalDatabase{} + cv = []types.RelationalDatabase{} } else { cv = *v } for _, value := range shape { - var col *types.RelationalDatabase - if err := awsAwsjson11_deserializeDocumentRelationalDatabase(&col, value); err != nil { + var col types.RelationalDatabase + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRelationalDatabase(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24518,7 +24602,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseParameter(v **types.Relat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.AllowedValues = &jtv + sv.AllowedValues = ptr.String(jtv) } case "applyMethod": @@ -24527,7 +24611,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseParameter(v **types.Relat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ApplyMethod = &jtv + sv.ApplyMethod = ptr.String(jtv) } case "applyType": @@ -24536,7 +24620,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseParameter(v **types.Relat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ApplyType = &jtv + sv.ApplyType = ptr.String(jtv) } case "dataType": @@ -24545,7 +24629,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseParameter(v **types.Relat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.DataType = &jtv + sv.DataType = ptr.String(jtv) } case "description": @@ -24554,7 +24638,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseParameter(v **types.Relat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "isModifiable": @@ -24563,7 +24647,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseParameter(v **types.Relat if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsModifiable = &jtv + sv.IsModifiable = ptr.Bool(jtv) } case "parameterName": @@ -24572,7 +24656,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseParameter(v **types.Relat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ParameterName = &jtv + sv.ParameterName = ptr.String(jtv) } case "parameterValue": @@ -24581,7 +24665,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseParameter(v **types.Relat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.ParameterValue = &jtv + sv.ParameterValue = ptr.String(jtv) } default: @@ -24593,7 +24677,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseParameter(v **types.Relat return nil } -func awsAwsjson11_deserializeDocumentRelationalDatabaseParameterList(v *[]*types.RelationalDatabaseParameter, value interface{}) error { +func awsAwsjson11_deserializeDocumentRelationalDatabaseParameterList(v *[]types.RelationalDatabaseParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24606,18 +24690,20 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseParameterList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RelationalDatabaseParameter + var cv []types.RelationalDatabaseParameter if *v == nil { - cv = []*types.RelationalDatabaseParameter{} + cv = []types.RelationalDatabaseParameter{} } else { cv = *v } for _, value := range shape { - var col *types.RelationalDatabaseParameter - if err := awsAwsjson11_deserializeDocumentRelationalDatabaseParameter(&col, value); err != nil { + var col types.RelationalDatabaseParameter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRelationalDatabaseParameter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24653,7 +24739,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshot(v **types.Relati if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -24675,7 +24761,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshot(v **types.Relati if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Engine = &jtv + sv.Engine = ptr.String(jtv) } case "engineVersion": @@ -24684,7 +24770,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshot(v **types.Relati if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "fromRelationalDatabaseArn": @@ -24693,7 +24779,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshot(v **types.Relati if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FromRelationalDatabaseArn = &jtv + sv.FromRelationalDatabaseArn = ptr.String(jtv) } case "fromRelationalDatabaseBlueprintId": @@ -24702,7 +24788,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshot(v **types.Relati if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.FromRelationalDatabaseBlueprintId = &jtv + sv.FromRelationalDatabaseBlueprintId = ptr.String(jtv) } case "fromRelationalDatabaseBundleId": @@ -24711,7 +24797,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshot(v **types.Relati if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.FromRelationalDatabaseBundleId = &jtv + sv.FromRelationalDatabaseBundleId = ptr.String(jtv) } case "fromRelationalDatabaseName": @@ -24720,7 +24806,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshot(v **types.Relati if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FromRelationalDatabaseName = &jtv + sv.FromRelationalDatabaseName = ptr.String(jtv) } case "location": @@ -24734,7 +24820,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshot(v **types.Relati if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceType": @@ -24765,7 +24851,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshot(v **types.Relati if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } case "supportCode": @@ -24774,7 +24860,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshot(v **types.Relati if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } case "tags": @@ -24791,7 +24877,7 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshot(v **types.Relati return nil } -func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshotList(v *[]*types.RelationalDatabaseSnapshot, value interface{}) error { +func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshotList(v *[]types.RelationalDatabaseSnapshot, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24804,18 +24890,20 @@ func awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshotList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RelationalDatabaseSnapshot + var cv []types.RelationalDatabaseSnapshot if *v == nil { - cv = []*types.RelationalDatabaseSnapshot{} + cv = []types.RelationalDatabaseSnapshot{} } else { cv = *v } for _, value := range shape { - var col *types.RelationalDatabaseSnapshot - if err := awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshot(&col, value); err != nil { + var col types.RelationalDatabaseSnapshot + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRelationalDatabaseSnapshot(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24865,7 +24953,7 @@ func awsAwsjson11_deserializeDocumentRenewalSummary(v **types.RenewalSummary, va if !ok { return fmt.Errorf("expected RenewalStatusReason to be of type string, got %T instead", value) } - sv.RenewalStatusReason = &jtv + sv.RenewalStatusReason = ptr.String(jtv) } case "updatedAt": @@ -24918,7 +25006,7 @@ func awsAwsjson11_deserializeDocumentResourceLocation(v **types.ResourceLocation if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "regionName": @@ -24967,7 +25055,7 @@ func awsAwsjson11_deserializeDocumentResourceRecord(v **types.ResourceRecord, va if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "type": @@ -24976,7 +25064,7 @@ func awsAwsjson11_deserializeDocumentResourceRecord(v **types.ResourceRecord, va if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "value": @@ -24985,7 +25073,7 @@ func awsAwsjson11_deserializeDocumentResourceRecord(v **types.ResourceRecord, va if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -25025,7 +25113,7 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "docs": @@ -25034,7 +25122,7 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Docs = &jtv + sv.Docs = ptr.String(jtv) } case "message": @@ -25043,7 +25131,7 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "tip": @@ -25052,7 +25140,7 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Tip = &jtv + sv.Tip = ptr.String(jtv) } default: @@ -25092,7 +25180,7 @@ func awsAwsjson11_deserializeDocumentStaticIp(v **types.StaticIp, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "attachedTo": @@ -25101,7 +25189,7 @@ func awsAwsjson11_deserializeDocumentStaticIp(v **types.StaticIp, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.AttachedTo = &jtv + sv.AttachedTo = ptr.String(jtv) } case "createdAt": @@ -25123,7 +25211,7 @@ func awsAwsjson11_deserializeDocumentStaticIp(v **types.StaticIp, value interfac if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "isAttached": @@ -25132,7 +25220,7 @@ func awsAwsjson11_deserializeDocumentStaticIp(v **types.StaticIp, value interfac if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsAttached = &jtv + sv.IsAttached = ptr.Bool(jtv) } case "location": @@ -25146,7 +25234,7 @@ func awsAwsjson11_deserializeDocumentStaticIp(v **types.StaticIp, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceType": @@ -25164,7 +25252,7 @@ func awsAwsjson11_deserializeDocumentStaticIp(v **types.StaticIp, value interfac if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.SupportCode = &jtv + sv.SupportCode = ptr.String(jtv) } default: @@ -25176,7 +25264,7 @@ func awsAwsjson11_deserializeDocumentStaticIp(v **types.StaticIp, value interfac return nil } -func awsAwsjson11_deserializeDocumentStaticIpList(v *[]*types.StaticIp, value interface{}) error { +func awsAwsjson11_deserializeDocumentStaticIpList(v *[]types.StaticIp, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25189,18 +25277,20 @@ func awsAwsjson11_deserializeDocumentStaticIpList(v *[]*types.StaticIp, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StaticIp + var cv []types.StaticIp if *v == nil { - cv = []*types.StaticIp{} + cv = []types.StaticIp{} } else { cv = *v } for _, value := range shape { - var col *types.StaticIp - if err := awsAwsjson11_deserializeDocumentStaticIp(&col, value); err != nil { + var col types.StaticIp + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStaticIp(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25208,7 +25298,7 @@ func awsAwsjson11_deserializeDocumentStaticIpList(v *[]*types.StaticIp, value in return nil } -func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25221,21 +25311,21 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -25244,7 +25334,7 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentSubjectAlternativeNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubjectAlternativeNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25257,21 +25347,21 @@ func awsAwsjson11_deserializeDocumentSubjectAlternativeNameList(v *[]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -25308,7 +25398,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -25317,7 +25407,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -25329,7 +25419,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25342,18 +25432,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25389,7 +25481,7 @@ func awsAwsjson11_deserializeDocumentUnauthenticatedException(v **types.Unauthen if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "docs": @@ -25398,7 +25490,7 @@ func awsAwsjson11_deserializeDocumentUnauthenticatedException(v **types.Unauthen if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Docs = &jtv + sv.Docs = ptr.String(jtv) } case "message": @@ -25407,7 +25499,7 @@ func awsAwsjson11_deserializeDocumentUnauthenticatedException(v **types.Unauthen if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "tip": @@ -25416,7 +25508,7 @@ func awsAwsjson11_deserializeDocumentUnauthenticatedException(v **types.Unauthen if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Tip = &jtv + sv.Tip = ptr.String(jtv) } default: @@ -26196,7 +26288,7 @@ func awsAwsjson11_deserializeOpDocumentCreateKeyPairOutput(v **CreateKeyPairOutp if !ok { return fmt.Errorf("expected Base64 to be of type string, got %T instead", value) } - sv.PrivateKeyBase64 = &jtv + sv.PrivateKeyBase64 = ptr.String(jtv) } case "publicKeyBase64": @@ -26205,7 +26297,7 @@ func awsAwsjson11_deserializeOpDocumentCreateKeyPairOutput(v **CreateKeyPairOutp if !ok { return fmt.Errorf("expected Base64 to be of type string, got %T instead", value) } - sv.PublicKeyBase64 = &jtv + sv.PublicKeyBase64 = ptr.String(jtv) } default: @@ -27217,7 +27309,7 @@ func awsAwsjson11_deserializeOpDocumentDownloadDefaultKeyPairOutput(v **Download if !ok { return fmt.Errorf("expected Base64 to be of type string, got %T instead", value) } - sv.PrivateKeyBase64 = &jtv + sv.PrivateKeyBase64 = ptr.String(jtv) } case "publicKeyBase64": @@ -27226,7 +27318,7 @@ func awsAwsjson11_deserializeOpDocumentDownloadDefaultKeyPairOutput(v **Download if !ok { return fmt.Errorf("expected Base64 to be of type string, got %T instead", value) } - sv.PublicKeyBase64 = &jtv + sv.PublicKeyBase64 = ptr.String(jtv) } default: @@ -27343,7 +27435,7 @@ func awsAwsjson11_deserializeOpDocumentGetActiveNamesOutput(v **GetActiveNamesOu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -27388,7 +27480,7 @@ func awsAwsjson11_deserializeOpDocumentGetAlarmsOutput(v **GetAlarmsOutput, valu if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -27433,7 +27525,7 @@ func awsAwsjson11_deserializeOpDocumentGetAutoSnapshotsOutput(v **GetAutoSnapsho if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } case "resourceType": @@ -27487,7 +27579,7 @@ func awsAwsjson11_deserializeOpDocumentGetBlueprintsOutput(v **GetBlueprintsOutp if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -27532,7 +27624,7 @@ func awsAwsjson11_deserializeOpDocumentGetBundlesOutput(v **GetBundlesOutput, va if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -27613,7 +27705,7 @@ func awsAwsjson11_deserializeOpDocumentGetCloudFormationStackRecordsOutput(v **G if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -27766,7 +27858,7 @@ func awsAwsjson11_deserializeOpDocumentGetDiskSnapshotsOutput(v **GetDiskSnapsho if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -27811,7 +27903,7 @@ func awsAwsjson11_deserializeOpDocumentGetDisksOutput(v **GetDisksOutput, value if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -27900,7 +27992,7 @@ func awsAwsjson11_deserializeOpDocumentGetDistributionLatestCacheResetOutput(v * if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -27990,7 +28082,7 @@ func awsAwsjson11_deserializeOpDocumentGetDistributionsOutput(v **GetDistributio if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -28071,7 +28163,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainsOutput(v **GetDomainsOutput, va if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -28116,7 +28208,7 @@ func awsAwsjson11_deserializeOpDocumentGetExportSnapshotRecordsOutput(v **GetExp if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -28350,7 +28442,7 @@ func awsAwsjson11_deserializeOpDocumentGetInstanceSnapshotsOutput(v **GetInstanc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -28395,7 +28487,7 @@ func awsAwsjson11_deserializeOpDocumentGetInstancesOutput(v **GetInstancesOutput if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -28512,7 +28604,7 @@ func awsAwsjson11_deserializeOpDocumentGetKeyPairsOutput(v **GetKeyPairsOutput, if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -28638,7 +28730,7 @@ func awsAwsjson11_deserializeOpDocumentGetLoadBalancersOutput(v **GetLoadBalance if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -28750,7 +28842,7 @@ func awsAwsjson11_deserializeOpDocumentGetOperationsForResourceOutput(v **GetOpe if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageCount = &jtv + sv.NextPageCount = ptr.String(jtv) } case "nextPageToken": @@ -28759,7 +28851,7 @@ func awsAwsjson11_deserializeOpDocumentGetOperationsForResourceOutput(v **GetOpe if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "operations": @@ -28804,7 +28896,7 @@ func awsAwsjson11_deserializeOpDocumentGetOperationsOutput(v **GetOperationsOutp if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "operations": @@ -28890,7 +28982,7 @@ func awsAwsjson11_deserializeOpDocumentGetRelationalDatabaseBlueprintsOutput(v * if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -28935,7 +29027,7 @@ func awsAwsjson11_deserializeOpDocumentGetRelationalDatabaseBundlesOutput(v **Ge if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -28975,7 +29067,7 @@ func awsAwsjson11_deserializeOpDocumentGetRelationalDatabaseEventsOutput(v **Get if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "relationalDatabaseEvents": @@ -29020,7 +29112,7 @@ func awsAwsjson11_deserializeOpDocumentGetRelationalDatabaseLogEventsOutput(v ** if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextBackwardToken = &jtv + sv.NextBackwardToken = ptr.String(jtv) } case "nextForwardToken": @@ -29029,7 +29121,7 @@ func awsAwsjson11_deserializeOpDocumentGetRelationalDatabaseLogEventsOutput(v ** if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextForwardToken = &jtv + sv.NextForwardToken = ptr.String(jtv) } case "resourceLogEvents": @@ -29123,7 +29215,7 @@ func awsAwsjson11_deserializeOpDocumentGetRelationalDatabaseMasterUserPasswordOu if !ok { return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.MasterUserPassword = &jtv + sv.MasterUserPassword = ptr.String(jtv) } default: @@ -29244,7 +29336,7 @@ func awsAwsjson11_deserializeOpDocumentGetRelationalDatabaseParametersOutput(v * if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "parameters": @@ -29325,7 +29417,7 @@ func awsAwsjson11_deserializeOpDocumentGetRelationalDatabaseSnapshotsOutput(v ** if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "relationalDatabaseSnapshots": @@ -29370,7 +29462,7 @@ func awsAwsjson11_deserializeOpDocumentGetRelationalDatabasesOutput(v **GetRelat if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "relationalDatabases": @@ -29451,7 +29543,7 @@ func awsAwsjson11_deserializeOpDocumentGetStaticIpsOutput(v **GetStaticIpsOutput if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "staticIps": @@ -29532,7 +29624,7 @@ func awsAwsjson11_deserializeOpDocumentIsVpcPeeredOutput(v **IsVpcPeeredOutput, if !ok { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) } - sv.IsPeered = &jtv + sv.IsPeered = ptr.Bool(jtv) } default: @@ -29842,7 +29934,7 @@ func awsAwsjson11_deserializeOpDocumentResetDistributionCacheOutput(v **ResetDis if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: diff --git a/service/lightsail/go.mod b/service/lightsail/go.mod index eac86501b34..3b5b0bd184c 100644 --- a/service/lightsail/go.mod +++ b/service/lightsail/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/lightsail go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/lightsail/serializers.go b/service/lightsail/serializers.go index 016dd08ea43..79312154993 100644 --- a/service/lightsail/serializers.go +++ b/service/lightsail/serializers.go @@ -5840,31 +5840,26 @@ func awsAwsjson11_serializeDocumentAddOnRequest(v *types.AddOnRequest, value smi return nil } -func awsAwsjson11_serializeDocumentAddOnRequestList(v []*types.AddOnRequest, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAddOnRequestList(v []types.AddOnRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAddOnRequest(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAddOnRequest(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentAttachedDiskMap(v map[string][]*types.DiskMap, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttachedDiskMap(v map[string][]types.DiskMap, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentDiskMapList(v[key], om); err != nil { @@ -5898,17 +5893,13 @@ func awsAwsjson11_serializeDocumentCacheBehavior(v *types.CacheBehavior, value s return nil } -func awsAwsjson11_serializeDocumentCacheBehaviorList(v []*types.CacheBehaviorPerPath, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCacheBehaviorList(v []types.CacheBehaviorPerPath, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCacheBehaviorPerPath(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCacheBehaviorPerPath(&v[i], av); err != nil { return err } } @@ -6043,17 +6034,13 @@ func awsAwsjson11_serializeDocumentDiskMap(v *types.DiskMap, value smithyjson.Va return nil } -func awsAwsjson11_serializeDocumentDiskMapList(v []*types.DiskMap, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDiskMapList(v []types.DiskMap, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDiskMap(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDiskMap(&v[i], av); err != nil { return err } } @@ -6099,32 +6086,24 @@ func awsAwsjson11_serializeDocumentDomainEntry(v *types.DomainEntry, value smith return nil } -func awsAwsjson11_serializeDocumentDomainEntryOptions(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDomainEntryOptions(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentDomainNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDomainNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6213,17 +6192,13 @@ func awsAwsjson11_serializeDocumentInstanceEntry(v *types.InstanceEntry, value s return nil } -func awsAwsjson11_serializeDocumentInstanceEntryList(v []*types.InstanceEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceEntryList(v []types.InstanceEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInstanceEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInstanceEntry(&v[i], av); err != nil { return err } } @@ -6270,9 +6245,9 @@ func awsAwsjson11_serializeDocumentPortInfo(v *types.PortInfo, value smithyjson. } } - if v.FromPort != nil { + if v.FromPort != 0 { ok := object.Key("fromPort") - ok.Integer(*v.FromPort) + ok.Integer(v.FromPort) } if len(v.Protocol) > 0 { @@ -6280,25 +6255,21 @@ func awsAwsjson11_serializeDocumentPortInfo(v *types.PortInfo, value smithyjson. ok.String(string(v.Protocol)) } - if v.ToPort != nil { + if v.ToPort != 0 { ok := object.Key("toPort") - ok.Integer(*v.ToPort) + ok.Integer(v.ToPort) } return nil } -func awsAwsjson11_serializeDocumentPortInfoList(v []*types.PortInfo, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPortInfoList(v []types.PortInfo, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPortInfo(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPortInfo(&v[i], av); err != nil { return err } } @@ -6371,64 +6342,48 @@ func awsAwsjson11_serializeDocumentRelationalDatabaseParameter(v *types.Relation return nil } -func awsAwsjson11_serializeDocumentRelationalDatabaseParameterList(v []*types.RelationalDatabaseParameter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRelationalDatabaseParameterList(v []types.RelationalDatabaseParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRelationalDatabaseParameter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRelationalDatabaseParameter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentResourceNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentSubjectAlternativeNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubjectAlternativeNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6450,32 +6405,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -7117,9 +7064,9 @@ func awsAwsjson11_serializeOpDocumentCreateLoadBalancerInput(v *CreateLoadBalanc ok.String(*v.HealthCheckPath) } - if v.InstancePort != nil { + if v.InstancePort != 0 { ok := object.Key("instancePort") - ok.Integer(*v.InstancePort) + ok.Integer(v.InstancePort) } if v.LoadBalancerName != nil { @@ -7767,9 +7714,9 @@ func awsAwsjson11_serializeOpDocumentGetCertificatesInput(v *GetCertificatesInpu } } - if v.IncludeCertificateDetails != nil { + if v.IncludeCertificateDetails { ok := object.Key("includeCertificateDetails") - ok.Boolean(*v.IncludeCertificateDetails) + ok.Boolean(v.IncludeCertificateDetails) } return nil @@ -7887,9 +7834,9 @@ func awsAwsjson11_serializeOpDocumentGetDistributionMetricDataInput(v *GetDistri ok.String(string(v.MetricName)) } - if v.Period != nil { + if v.Period != 0 { ok := object.Key("period") - ok.Integer(*v.Period) + ok.Integer(v.Period) } if v.StartTime != nil { @@ -8013,9 +7960,9 @@ func awsAwsjson11_serializeOpDocumentGetInstanceMetricDataInput(v *GetInstanceMe ok.String(string(v.MetricName)) } - if v.Period != nil { + if v.Period != 0 { ok := object.Key("period") - ok.Integer(*v.Period) + ok.Integer(v.Period) } if v.StartTime != nil { @@ -8153,9 +8100,9 @@ func awsAwsjson11_serializeOpDocumentGetLoadBalancerMetricDataInput(v *GetLoadBa ok.String(string(v.MetricName)) } - if v.Period != nil { + if v.Period != 0 { ok := object.Key("period") - ok.Integer(*v.Period) + ok.Integer(v.Period) } if v.StartTime != nil { @@ -8398,9 +8345,9 @@ func awsAwsjson11_serializeOpDocumentGetRelationalDatabaseMetricDataInput(v *Get ok.String(string(v.MetricName)) } - if v.Period != nil { + if v.Period != 0 { ok := object.Key("period") - ok.Integer(*v.Period) + ok.Integer(v.Period) } if v.RelationalDatabaseName != nil { diff --git a/service/lightsail/types/types.go b/service/lightsail/types/types.go index 44dcfef3dce..2dd6ee16e6b 100644 --- a/service/lightsail/types/types.go +++ b/service/lightsail/types/types.go @@ -87,7 +87,7 @@ type Alarm struct { NotificationTriggers []AlarmState // The period, in seconds, over which the statistic is applied. - Period *int32 + Period int32 // The Lightsail resource type (e.g., Alarm). ResourceType ResourceType @@ -227,7 +227,7 @@ type AutoSnapshotDetails struct { // An array of objects that describe the block storage disks attached to the // instance when the automatic snapshot was created. - FromAttachedDisks []*AttachedDisk + FromAttachedDisks []AttachedDisk // The status of the automatic snapshot. Status AutoSnapshotStatus @@ -488,13 +488,13 @@ type Certificate struct { // An array of objects that describe the domain validation records of the // certificate. - DomainValidationRecords []*DomainValidationRecord + DomainValidationRecords []DomainValidationRecord // The renewal eligibility of the certificate. EligibleToRenew *string // The number of Lightsail resources that the certificate is attached to. - InUseResourceCount *int32 + InUseResourceCount int32 // The timestamp when the certificate was issued. IssuedAt *time.Time @@ -580,7 +580,7 @@ type Certificate struct { // An array of strings that specify the alternate domains (e.g., example2.com) and // subdomains (e.g., blog.example.com) of the certificate. - SubjectAlternativeNames []*string + SubjectAlternativeNames []string // The support code. Include this code in your email to support when you have // questions about your Lightsail certificate. This code enables our support team @@ -590,7 +590,7 @@ type Certificate struct { // The tag keys and optional values for the resource. For more information about // tags in Lightsail, see the Lightsail Dev Guide // (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). - Tags []*Tag + Tags []Tag } // Describes an Amazon Lightsail SSL/TLS certificate. @@ -611,7 +611,7 @@ type CertificateSummary struct { // The tag keys and optional values for the resource. For more information about // tags in Lightsail, see the Lightsail Dev Guide // (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). - Tags []*Tag + Tags []Tag } // Describes a CloudFormation stack record created as a result of the create cloud @@ -643,7 +643,7 @@ type CloudFormationStackRecord struct { ResourceType ResourceType // A list of objects describing the source of the CloudFormation stack record. - SourceInfo []*CloudFormationStackRecordSourceInfo + SourceInfo []CloudFormationStackRecordSourceInfo // The current state of the CloudFormation stack record. State RecordState @@ -716,7 +716,7 @@ type ContactMethod struct { type CookieObject struct { // The specific cookies to forward to your distribution's origin. - CookiesAllowList []*string + CookiesAllowList []string // Specifies which cookies to forward to the distribution's origin for a cache // behavior: all, none, or allow-list to forward only the cookies specified in the @@ -738,7 +738,7 @@ type DestinationInfo struct { type Disk struct { // An array of objects representing the add-ons enabled on the disk. - AddOns []*AddOn + AddOns []AddOn // The Amazon Resource Name (ARN) of the disk. Arn *string @@ -795,7 +795,7 @@ type Disk struct { // The tag keys and optional values for the resource. For more information about // tags in Lightsail, see the Lightsail Dev Guide // (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). - Tags []*Tag + Tags []Tag } // Describes a disk. @@ -879,7 +879,7 @@ type DiskSnapshot struct { // The tag keys and optional values for the resource. For more information about // tags in Lightsail, see the Lightsail Dev Guide // (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). - Tags []*Tag + Tags []Tag } // Describes a disk snapshot. @@ -920,7 +920,7 @@ type Domain struct { CreatedAt *time.Time // An array of key-value pairs containing information about the domain entries. - DomainEntries []*DomainEntry + DomainEntries []DomainEntry // The AWS Region and Availability Zones where the domain recordset was created. Location *ResourceLocation @@ -939,7 +939,7 @@ type Domain struct { // The tag keys and optional values for the resource. For more information about // tags in Lightsail, see the Lightsail Dev Guide // (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). - Tags []*Tag + Tags []Tag } // Describes a domain recordset entry. @@ -958,7 +958,7 @@ type DomainEntry struct { // (Deprecated) The options for the domain entry. In releases prior to November 29, // 2017, this parameter was not included in the API response. It is now deprecated. - Options map[string]*string + Options map[string]string // The target AWS name server (e.g., ns-111.awsdns-22.com.). For Lightsail load // balancers, the value looks like @@ -1149,7 +1149,7 @@ type InputOrigin struct { type Instance struct { // An array of objects representing the add-ons enabled on the instance. - AddOns []*AddOn + AddOns []AddOn // The Amazon Resource Name (ARN) of the instance (e.g., // arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE). @@ -1211,7 +1211,7 @@ type Instance struct { // The tag keys and optional values for the resource. For more information about // tags in Lightsail, see the Lightsail Dev Guide // (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). - Tags []*Tag + Tags []Tag // The user name for connecting to the instance (e.g., ec2-user). Username *string @@ -1230,7 +1230,7 @@ type InstanceAccessDetails struct { ExpiresAt *time.Time // Describes the public SSH host keys or the RDP certificate. - HostKeys []*HostKeyAttributes + HostKeys []HostKeyAttributes // The name of this Amazon Lightsail instance. InstanceName *string @@ -1326,7 +1326,7 @@ type InstanceHardware struct { CpuCount *int32 // The disks attached to the instance. - Disks []*Disk + Disks []Disk // The amount of RAM in GB on the instance (e.g., 1.0). RamSizeInGb *float32 @@ -1405,7 +1405,7 @@ type InstanceNetworking struct { // An array of key-value pairs containing information about the ports on the // instance. - Ports []*InstancePortInfo + Ports []InstancePortInfo } // Describes information about ports for an Amazon Lightsail instance. @@ -1426,7 +1426,7 @@ type InstancePortInfo struct { // alias currently supported is lightsail-connect, which allows IP addresses of the // browser-based RDP/SSH client in the Lightsail console to connect to your // instance. - CidrListAliases []*string + CidrListAliases []string // The IP address, or range of IP addresses in CIDR notation, that are allowed to // connect to an instance through the ports, and the protocol. Lightsail supports @@ -1434,7 +1434,7 @@ type InstancePortInfo struct { // Inter-Domain Routing // (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation) on // Wikipedia. - Cidrs []*string + Cidrs []string // The common name of the port information. CommonName *string @@ -1449,7 +1449,7 @@ type InstancePortInfo struct { // more information, see Control Messages // (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages) // on Wikipedia. - FromPort *int32 + FromPort int32 // The IP protocol name. The name can be one of the following: // @@ -1489,7 +1489,7 @@ type InstancePortInfo struct { // information, see Control Messages // (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages) // on Wikipedia. - ToPort *int32 + ToPort int32 } // Describes open ports on an instance, the IP addresses allowed to connect to the @@ -1500,7 +1500,7 @@ type InstancePortState struct { // alias currently supported is lightsail-connect, which allows IP addresses of the // browser-based RDP/SSH client in the Lightsail console to connect to your // instance. - CidrListAliases []*string + CidrListAliases []string // The IP address, or range of IP addresses in CIDR notation, that are allowed to // connect to an instance through the ports, and the protocol. Lightsail supports @@ -1508,7 +1508,7 @@ type InstancePortState struct { // Inter-Domain Routing // (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation) on // Wikipedia. - Cidrs []*string + Cidrs []string // The first port in a range of open ports on an instance. Allowed ports: // @@ -1520,7 +1520,7 @@ type InstancePortState struct { // more information, see Control Messages // (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages) // on Wikipedia. - FromPort *int32 + FromPort int32 // The IP protocol name. The name can be one of the following: // @@ -1564,7 +1564,7 @@ type InstancePortState struct { // information, see Control Messages // (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages) // on Wikipedia. - ToPort *int32 + ToPort int32 } // Describes an instance snapshot. @@ -1578,7 +1578,7 @@ type InstanceSnapshot struct { CreatedAt *time.Time // An array of disk objects containing information about all block storage disks. - FromAttachedDisks []*Disk + FromAttachedDisks []Disk // The blueprint ID from which you created the snapshot (e.g., os_debian_8_3). A // blueprint is a virtual private server (or instance) image used to create @@ -1626,7 +1626,7 @@ type InstanceSnapshot struct { // The tag keys and optional values for the resource. For more information about // tags in Lightsail, see the Lightsail Dev Guide // (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). - Tags []*Tag + Tags []Tag } // Describes an instance snapshot. @@ -1640,7 +1640,7 @@ type InstanceSnapshotInfo struct { // A list of objects describing the disks that were attached to the source // instance. - FromDiskInfo []*DiskInfo + FromDiskInfo []DiskInfo } // Describes the virtual private server (or instance) status. @@ -1683,7 +1683,7 @@ type KeyPair struct { // The tag keys and optional values for the resource. For more information about // tags in Lightsail, see the Lightsail Dev Guide // (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). - Tags []*Tag + Tags []Tag } // Describes an Amazon Lightsail content delivery network (CDN) distribution. @@ -1696,7 +1696,7 @@ type LightsailDistribution struct { AbleToUpdateBundle *bool // The alternate domain names of the distribution. - AlternativeDomainNames []*string + AlternativeDomainNames []string // The Amazon Resource Name (ARN) of the distribution. Arn *string @@ -1709,7 +1709,7 @@ type LightsailDistribution struct { // An array of objects that describe the per-path cache behavior of the // distribution. - CacheBehaviors []*CacheBehaviorPerPath + CacheBehaviors []CacheBehaviorPerPath // The name of the SSL/TLS certificate attached to the distribution, if any. CertificateName *string @@ -1757,7 +1757,7 @@ type LightsailDistribution struct { // The tag keys and optional values for the resource. For more information about // tags in Lightsail, see the Lightsail Dev Guide // (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). - Tags []*Tag + Tags []Tag } // Describes the Lightsail load balancer. @@ -1768,7 +1768,7 @@ type LoadBalancer struct { // A string to string map of the configuration options for your load balancer. // Valid values are listed below. - ConfigurationOptions map[string]*string + ConfigurationOptions map[string]string // The date when your load balancer was created. CreatedAt *time.Time @@ -1782,7 +1782,7 @@ type LoadBalancer struct { // An array of InstanceHealthSummary objects describing the health of the load // balancer. - InstanceHealthSummary []*InstanceHealthSummary + InstanceHealthSummary []InstanceHealthSummary // The port where the load balancer will direct traffic to your Lightsail // instances. For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443. @@ -1801,7 +1801,7 @@ type LoadBalancer struct { // An array of public port settings for your load balancer. For HTTP, use port 80. // For HTTPS, use port 443. - PublicPorts []*int32 + PublicPorts []int32 // The resource type (e.g., LoadBalancer. ResourceType ResourceType @@ -1817,12 +1817,12 @@ type LoadBalancer struct { // The tag keys and optional values for the resource. For more information about // tags in Lightsail, see the Lightsail Dev Guide // (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). - Tags []*Tag + Tags []Tag // An array of LoadBalancerTlsCertificateSummary objects that provide additional // information about the SSL/TLS certificates. For example, if true, the // certificate is attached to the load balancer. - TlsCertificateSummaries []*LoadBalancerTlsCertificateSummary + TlsCertificateSummaries []LoadBalancerTlsCertificateSummary } // Describes a load balancer SSL/TLS certificate. TLS is just an updated, more @@ -1840,7 +1840,7 @@ type LoadBalancerTlsCertificate struct { // An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing // the records. - DomainValidationRecords []*LoadBalancerTlsCertificateDomainValidationRecord + DomainValidationRecords []LoadBalancerTlsCertificateDomainValidationRecord // The validation failure reason, if any, of the certificate. The following failure // reasons are possible: @@ -1970,7 +1970,7 @@ type LoadBalancerTlsCertificate struct { // An array of strings that specify the alternate domains (e.g., example2.com) and // subdomains (e.g., blog.example.com) for the certificate. - SubjectAlternativeNames []*string + SubjectAlternativeNames []string // The support code. Include this code in your email to support when you have // questions about your Lightsail load balancer or SSL/TLS certificate. This code @@ -1980,7 +1980,7 @@ type LoadBalancerTlsCertificate struct { // The tag keys and optional values for the resource. For more information about // tags in Lightsail, see the Lightsail Dev Guide // (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). - Tags []*Tag + Tags []Tag } // Contains information about the domain names on an SSL/TLS certificate that you @@ -2040,7 +2040,7 @@ type LoadBalancerTlsCertificateRenewalSummary struct { // certificate, as it pertains to Lightsail's managed renewal. This is different // from the initial validation that occurs as a result of the RequestCertificate // request. - DomainValidationOptions []*LoadBalancerTlsCertificateDomainValidationOption + DomainValidationOptions []LoadBalancerTlsCertificateDomainValidationOption // The renewal status of the certificate. The following renewal status are // possible: @@ -2254,7 +2254,7 @@ type PortInfo struct { // alias currently supported is lightsail-connect, which allows IP addresses of the // browser-based RDP/SSH client in the Lightsail console to connect to your // instance. - CidrListAliases []*string + CidrListAliases []string // The IP address, or range of IP addresses in CIDR notation, that are allowed to // connect to an instance through the ports, and the protocol. Lightsail supports @@ -2270,7 +2270,7 @@ type PortInfo struct { // notation, see Classless Inter-Domain Routing // (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation) on // Wikipedia. - Cidrs []*string + Cidrs []string // The first port in a range of open ports on an instance. Allowed ports: // @@ -2282,7 +2282,7 @@ type PortInfo struct { // more information, see Control Messages // (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages) // on Wikipedia. - FromPort *int32 + FromPort int32 // The IP protocol name. The name can be one of the following: // @@ -2322,7 +2322,7 @@ type PortInfo struct { // information, see Control Messages // (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages) // on Wikipedia. - ToPort *int32 + ToPort int32 } // Describes the query string parameters that an Amazon Lightsail content delivery @@ -2338,14 +2338,14 @@ type QueryStringObject struct { // distribution will cache content based on the specified query strings. If the // option parameter is true, then your distribution forwards all query strings, // regardless of what you specify using the queryStringsAllowList parameter. - QueryStringsAllowList []*string + QueryStringsAllowList []string } // Describes the AWS Region. type Region struct { // The Availability Zones. Follows the format us-east-2a (case-sensitive). - AvailabilityZones []*AvailabilityZone + AvailabilityZones []AvailabilityZone // The continent code (e.g., NA, meaning North America). ContinentCode *string @@ -2362,7 +2362,7 @@ type Region struct { // The Availability Zones for databases. Follows the format us-east-2a // (case-sensitive). - RelationalDatabaseAvailabilityZones []*AvailabilityZone + RelationalDatabaseAvailabilityZones []AvailabilityZone } // Describes a database. @@ -2414,7 +2414,7 @@ type RelationalDatabase struct { ParameterApplyStatus *string // Describes the pending maintenance actions for the database. - PendingMaintenanceActions []*PendingMaintenanceAction + PendingMaintenanceActions []PendingMaintenanceAction // Describes pending database value modifications. PendingModifiedValues *PendingModifiedRelationalDatabaseValues @@ -2456,7 +2456,7 @@ type RelationalDatabase struct { // The tag keys and optional values for the resource. For more information about // tags in Lightsail, see the Lightsail Dev Guide // (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). - Tags []*Tag + Tags []Tag } // Describes a database image, or blueprint. A blueprint describes the major engine @@ -2532,7 +2532,7 @@ type RelationalDatabaseEvent struct { CreatedAt *time.Time // The category that the database event belongs to. - EventCategories []*string + EventCategories []string // The message of the database event. Message *string @@ -2635,7 +2635,7 @@ type RelationalDatabaseSnapshot struct { // The tag keys and optional values for the resource. For more information about // tags in Lightsail, see the Lightsail Dev Guide // (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). - Tags []*Tag + Tags []Tag } // Describes the status of a SSL/TLS certificate renewal managed by Amazon @@ -2644,7 +2644,7 @@ type RenewalSummary struct { // An array of objects that describe the domain validation records of the // certificate. - DomainValidationRecords []*DomainValidationRecord + DomainValidationRecords []DomainValidationRecord // The renewal status of the certificate. The following renewal status are // possible: diff --git a/service/lightsail/validators.go b/service/lightsail/validators.go index 6545bfe10af..07b1355f76c 100644 --- a/service/lightsail/validators.go +++ b/service/lightsail/validators.go @@ -2305,13 +2305,13 @@ func validateAddOnRequest(v *types.AddOnRequest) error { } } -func validateAddOnRequestList(v []*types.AddOnRequest) error { +func validateAddOnRequestList(v []types.AddOnRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AddOnRequestList"} for i := range v { - if err := validateAddOnRequest(v[i]); err != nil { + if err := validateAddOnRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2346,13 +2346,13 @@ func validateInstanceEntry(v *types.InstanceEntry) error { } } -func validateInstanceEntryList(v []*types.InstanceEntry) error { +func validateInstanceEntryList(v []types.InstanceEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InstanceEntryList"} for i := range v { - if err := validateInstanceEntry(v[i]); err != nil { + if err := validateInstanceEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2782,9 +2782,6 @@ func validateOpCreateLoadBalancerInput(v *CreateLoadBalancerInput) error { if v.LoadBalancerName == nil { invalidParams.Add(smithy.NewErrParamRequired("LoadBalancerName")) } - if v.InstancePort == nil { - invalidParams.Add(smithy.NewErrParamRequired("InstancePort")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3305,9 +3302,6 @@ func validateOpGetDistributionMetricDataInput(v *GetDistributionMetricDataInput) if v.DistributionName == nil { invalidParams.Add(smithy.NewErrParamRequired("DistributionName")) } - if v.Period == nil { - invalidParams.Add(smithy.NewErrParamRequired("Period")) - } if v.StartTime == nil { invalidParams.Add(smithy.NewErrParamRequired("StartTime")) } @@ -3377,9 +3371,6 @@ func validateOpGetInstanceMetricDataInput(v *GetInstanceMetricDataInput) error { if len(v.Unit) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Unit")) } - if v.Period == nil { - invalidParams.Add(smithy.NewErrParamRequired("Period")) - } if v.StartTime == nil { invalidParams.Add(smithy.NewErrParamRequired("StartTime")) } @@ -3488,9 +3479,6 @@ func validateOpGetLoadBalancerMetricDataInput(v *GetLoadBalancerMetricDataInput) if len(v.Unit) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Unit")) } - if v.Period == nil { - invalidParams.Add(smithy.NewErrParamRequired("Period")) - } if len(v.MetricName) == 0 { invalidParams.Add(smithy.NewErrParamRequired("MetricName")) } @@ -3632,9 +3620,6 @@ func validateOpGetRelationalDatabaseMetricDataInput(v *GetRelationalDatabaseMetr return nil } invalidParams := smithy.InvalidParamsError{Context: "GetRelationalDatabaseMetricDataInput"} - if v.Period == nil { - invalidParams.Add(smithy.NewErrParamRequired("Period")) - } if v.StartTime == nil { invalidParams.Add(smithy.NewErrParamRequired("StartTime")) } diff --git a/service/machinelearning/api_op_AddTags.go b/service/machinelearning/api_op_AddTags.go index 251b9efb700..6a91dfa7788 100644 --- a/service/machinelearning/api_op_AddTags.go +++ b/service/machinelearning/api_op_AddTags.go @@ -46,7 +46,7 @@ type AddTagsInput struct { // of null. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } // Amazon ML returns the following elements. diff --git a/service/machinelearning/api_op_CreateDataSourceFromRDS.go b/service/machinelearning/api_op_CreateDataSourceFromRDS.go index 937f6f27984..433285373df 100644 --- a/service/machinelearning/api_op_CreateDataSourceFromRDS.go +++ b/service/machinelearning/api_op_CreateDataSourceFromRDS.go @@ -109,7 +109,7 @@ type CreateDataSourceFromRDSInput struct { // observation data referenced by a DataSource. Amazon ML uses the statistics // internally during MLModel training. This parameter must be set to true if the // DataSource needs to be used for MLModel training. - ComputeStatistics *bool + ComputeStatistics bool // A user-supplied name or description of the DataSource. DataSourceName *string diff --git a/service/machinelearning/api_op_CreateDataSourceFromRedshift.go b/service/machinelearning/api_op_CreateDataSourceFromRedshift.go index 26a1c0cc2f7..320848fb1c8 100644 --- a/service/machinelearning/api_op_CreateDataSourceFromRedshift.go +++ b/service/machinelearning/api_op_CreateDataSourceFromRedshift.go @@ -112,7 +112,7 @@ type CreateDataSourceFromRedshiftInput struct { // observation data referenced by a DataSource. Amazon ML uses the statistics // internally during MLModel training. This parameter must be set to true if the // DataSource needs to be used for MLModel training. - ComputeStatistics *bool + ComputeStatistics bool // A user-supplied name or description of the DataSource. DataSourceName *string diff --git a/service/machinelearning/api_op_CreateDataSourceFromS3.go b/service/machinelearning/api_op_CreateDataSourceFromS3.go index ebb35e22544..4bb846abbbc 100644 --- a/service/machinelearning/api_op_CreateDataSourceFromS3.go +++ b/service/machinelearning/api_op_CreateDataSourceFromS3.go @@ -79,7 +79,7 @@ type CreateDataSourceFromS3Input struct { // observation data referenced by a DataSource. Amazon ML uses the statistics // internally during MLModel training. This parameter must be set to true if the // DataSource needs to be used for MLModel training. - ComputeStatistics *bool + ComputeStatistics bool // A user-supplied name or description of the DataSource. DataSourceName *string diff --git a/service/machinelearning/api_op_CreateMLModel.go b/service/machinelearning/api_op_CreateMLModel.go index 7e91582a3a9..f6a502f4b6e 100644 --- a/service/machinelearning/api_op_CreateMLModel.go +++ b/service/machinelearning/api_op_CreateMLModel.go @@ -104,7 +104,7 @@ type CreateMLModelInput struct { // specifying a small value, such as 1.0E-08. The value is a double that ranges // from 0 to MAX_DOUBLE. The default is to not use L2 normalization. This parameter // can't be used when L1 is specified. Use this parameter sparingly. - Parameters map[string]*string + Parameters map[string]string // The data recipe for creating the MLModel. You must specify either the recipe or // its URI. If you don't specify a recipe or its URI, Amazon ML creates a default. diff --git a/service/machinelearning/api_op_DeleteTags.go b/service/machinelearning/api_op_DeleteTags.go index 37c87d19be8..b844d3ecb74 100644 --- a/service/machinelearning/api_op_DeleteTags.go +++ b/service/machinelearning/api_op_DeleteTags.go @@ -44,7 +44,7 @@ type DeleteTagsInput struct { // One or more tags to delete. // // This member is required. - TagKeys []*string + TagKeys []string } // Amazon ML returns the following elements. diff --git a/service/machinelearning/api_op_DescribeBatchPredictions.go b/service/machinelearning/api_op_DescribeBatchPredictions.go index c9072f2f9f0..8884eee58bc 100644 --- a/service/machinelearning/api_op_DescribeBatchPredictions.go +++ b/service/machinelearning/api_op_DescribeBatchPredictions.go @@ -124,7 +124,7 @@ type DescribeBatchPredictionsOutput struct { NextToken *string // A list of BatchPrediction objects that meet the search criteria. - Results []*types.BatchPrediction + Results []types.BatchPrediction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/machinelearning/api_op_DescribeDataSources.go b/service/machinelearning/api_op_DescribeDataSources.go index 0762e50f2b3..ee3f19f147e 100644 --- a/service/machinelearning/api_op_DescribeDataSources.go +++ b/service/machinelearning/api_op_DescribeDataSources.go @@ -115,7 +115,7 @@ type DescribeDataSourcesOutput struct { NextToken *string // A list of DataSource that meet the search criteria. - Results []*types.DataSource + Results []types.DataSource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/machinelearning/api_op_DescribeEvaluations.go b/service/machinelearning/api_op_DescribeEvaluations.go index 69141724e50..5f08c421391 100644 --- a/service/machinelearning/api_op_DescribeEvaluations.go +++ b/service/machinelearning/api_op_DescribeEvaluations.go @@ -122,7 +122,7 @@ type DescribeEvaluationsOutput struct { NextToken *string // A list of Evaluation that meet the search criteria. - Results []*types.Evaluation + Results []types.Evaluation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/machinelearning/api_op_DescribeMLModels.go b/service/machinelearning/api_op_DescribeMLModels.go index 6934ecd7439..49166c070a1 100644 --- a/service/machinelearning/api_op_DescribeMLModels.go +++ b/service/machinelearning/api_op_DescribeMLModels.go @@ -127,7 +127,7 @@ type DescribeMLModelsOutput struct { NextToken *string // A list of MLModel that meet the search criteria. - Results []*types.MLModel + Results []types.MLModel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/machinelearning/api_op_DescribeTags.go b/service/machinelearning/api_op_DescribeTags.go index f01868f296e..1adfbab6dcd 100644 --- a/service/machinelearning/api_op_DescribeTags.go +++ b/service/machinelearning/api_op_DescribeTags.go @@ -50,7 +50,7 @@ type DescribeTagsOutput struct { ResourceType types.TaggableResourceType // A list of tags associated with the ML object. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/machinelearning/api_op_GetDataSource.go b/service/machinelearning/api_op_GetDataSource.go index af3bacbf3d9..48dae362cfa 100644 --- a/service/machinelearning/api_op_GetDataSource.go +++ b/service/machinelearning/api_op_GetDataSource.go @@ -40,7 +40,7 @@ type GetDataSourceInput struct { // Specifies whether the GetDataSource operation should return DataSourceSchema. If // true, DataSourceSchema is returned. If false, DataSourceSchema is not returned. - Verbose *bool + Verbose bool } // Represents the output of a GetDataSource operation and describes a DataSource. @@ -48,7 +48,7 @@ type GetDataSourceOutput struct { // The parameter is true if statistics need to be generated from the observation // data. - ComputeStatistics *bool + ComputeStatistics bool // The approximate CPU time in milliseconds that Amazon Machine Learning spent // processing the DataSource, normalized and scaled on computation resources. diff --git a/service/machinelearning/api_op_GetMLModel.go b/service/machinelearning/api_op_GetMLModel.go index b32a89e5776..2b86b48f2c3 100644 --- a/service/machinelearning/api_op_GetMLModel.go +++ b/service/machinelearning/api_op_GetMLModel.go @@ -39,7 +39,7 @@ type GetMLModelInput struct { // Specifies whether the GetMLModel operation should return Recipe. If true, Recipe // is returned. If false, Recipe is not returned. - Verbose *bool + Verbose bool } // Represents the output of a GetMLModel operation, and provides detailed @@ -183,7 +183,7 @@ type GetMLModelOutput struct { // specifying a small value, such as 1.0E-08. The value is a double that ranges // from 0 to MAX_DOUBLE. The default is to not use L2 normalization. This parameter // can't be used when L1 is specified. Use this parameter sparingly. - TrainingParameters map[string]*string + TrainingParameters map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/machinelearning/api_op_Predict.go b/service/machinelearning/api_op_Predict.go index 80c91cf4d0d..de445ec8d3f 100644 --- a/service/machinelearning/api_op_Predict.go +++ b/service/machinelearning/api_op_Predict.go @@ -47,7 +47,7 @@ type PredictInput struct { // A map of variable name-value pairs that represent an observation. // // This member is required. - Record map[string]*string + Record map[string]string } type PredictOutput struct { diff --git a/service/machinelearning/deserializers.go b/service/machinelearning/deserializers.go index df7faf1c7a2..c4db2b21877 100644 --- a/service/machinelearning/deserializers.go +++ b/service/machinelearning/deserializers.go @@ -3606,7 +3606,7 @@ func awsAwsjson11_deserializeDocumentBatchPrediction(v **types.BatchPrediction, if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.BatchPredictionDataSourceId = &jtv + sv.BatchPredictionDataSourceId = ptr.String(jtv) } case "BatchPredictionId": @@ -3615,7 +3615,7 @@ func awsAwsjson11_deserializeDocumentBatchPrediction(v **types.BatchPrediction, if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.BatchPredictionId = &jtv + sv.BatchPredictionId = ptr.String(jtv) } case "ComputeTime": @@ -3628,7 +3628,7 @@ func awsAwsjson11_deserializeDocumentBatchPrediction(v **types.BatchPrediction, if err != nil { return err } - sv.ComputeTime = &i64 + sv.ComputeTime = ptr.Int64(i64) } case "CreatedAt": @@ -3650,7 +3650,7 @@ func awsAwsjson11_deserializeDocumentBatchPrediction(v **types.BatchPrediction, if !ok { return fmt.Errorf("expected AwsUserArn to be of type string, got %T instead", value) } - sv.CreatedByIamUser = &jtv + sv.CreatedByIamUser = ptr.String(jtv) } case "FinishedAt": @@ -3672,7 +3672,7 @@ func awsAwsjson11_deserializeDocumentBatchPrediction(v **types.BatchPrediction, if !ok { return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) } - sv.InputDataLocationS3 = &jtv + sv.InputDataLocationS3 = ptr.String(jtv) } case "InvalidRecordCount": @@ -3685,7 +3685,7 @@ func awsAwsjson11_deserializeDocumentBatchPrediction(v **types.BatchPrediction, if err != nil { return err } - sv.InvalidRecordCount = &i64 + sv.InvalidRecordCount = ptr.Int64(i64) } case "LastUpdatedAt": @@ -3707,7 +3707,7 @@ func awsAwsjson11_deserializeDocumentBatchPrediction(v **types.BatchPrediction, if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "MLModelId": @@ -3716,7 +3716,7 @@ func awsAwsjson11_deserializeDocumentBatchPrediction(v **types.BatchPrediction, if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.MLModelId = &jtv + sv.MLModelId = ptr.String(jtv) } case "Name": @@ -3725,7 +3725,7 @@ func awsAwsjson11_deserializeDocumentBatchPrediction(v **types.BatchPrediction, if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OutputUri": @@ -3734,7 +3734,7 @@ func awsAwsjson11_deserializeDocumentBatchPrediction(v **types.BatchPrediction, if !ok { return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) } - sv.OutputUri = &jtv + sv.OutputUri = ptr.String(jtv) } case "StartedAt": @@ -3769,7 +3769,7 @@ func awsAwsjson11_deserializeDocumentBatchPrediction(v **types.BatchPrediction, if err != nil { return err } - sv.TotalRecordCount = &i64 + sv.TotalRecordCount = ptr.Int64(i64) } default: @@ -3781,7 +3781,7 @@ func awsAwsjson11_deserializeDocumentBatchPrediction(v **types.BatchPrediction, return nil } -func awsAwsjson11_deserializeDocumentBatchPredictions(v *[]*types.BatchPrediction, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchPredictions(v *[]types.BatchPrediction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3794,18 +3794,20 @@ func awsAwsjson11_deserializeDocumentBatchPredictions(v *[]*types.BatchPredictio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchPrediction + var cv []types.BatchPrediction if *v == nil { - cv = []*types.BatchPrediction{} + cv = []types.BatchPrediction{} } else { cv = *v } for _, value := range shape { - var col *types.BatchPrediction - if err := awsAwsjson11_deserializeDocumentBatchPrediction(&col, value); err != nil { + var col types.BatchPrediction + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchPrediction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3841,7 +3843,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected ComputeStatistics to be of type *bool, got %T instead", value) } - sv.ComputeStatistics = &jtv + sv.ComputeStatistics = jtv } case "ComputeTime": @@ -3854,7 +3856,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if err != nil { return err } - sv.ComputeTime = &i64 + sv.ComputeTime = ptr.Int64(i64) } case "CreatedAt": @@ -3876,7 +3878,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected AwsUserArn to be of type string, got %T instead", value) } - sv.CreatedByIamUser = &jtv + sv.CreatedByIamUser = ptr.String(jtv) } case "DataLocationS3": @@ -3885,7 +3887,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) } - sv.DataLocationS3 = &jtv + sv.DataLocationS3 = ptr.String(jtv) } case "DataRearrangement": @@ -3894,7 +3896,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected DataRearrangement to be of type string, got %T instead", value) } - sv.DataRearrangement = &jtv + sv.DataRearrangement = ptr.String(jtv) } case "DataSizeInBytes": @@ -3907,7 +3909,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if err != nil { return err } - sv.DataSizeInBytes = &i64 + sv.DataSizeInBytes = ptr.Int64(i64) } case "DataSourceId": @@ -3916,7 +3918,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.DataSourceId = &jtv + sv.DataSourceId = ptr.String(jtv) } case "FinishedAt": @@ -3951,7 +3953,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Name": @@ -3960,7 +3962,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NumberOfFiles": @@ -3973,7 +3975,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if err != nil { return err } - sv.NumberOfFiles = &i64 + sv.NumberOfFiles = ptr.Int64(i64) } case "RDSMetadata": @@ -3992,7 +3994,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } case "StartedAt": @@ -4026,7 +4028,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte return nil } -func awsAwsjson11_deserializeDocumentDataSources(v *[]*types.DataSource, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSources(v *[]types.DataSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4039,18 +4041,20 @@ func awsAwsjson11_deserializeDocumentDataSources(v *[]*types.DataSource, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataSource + var cv []types.DataSource if *v == nil { - cv = []*types.DataSource{} + cv = []types.DataSource{} } else { cv = *v } for _, value := range shape { - var col *types.DataSource - if err := awsAwsjson11_deserializeDocumentDataSource(&col, value); err != nil { + var col types.DataSource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4058,7 +4062,7 @@ func awsAwsjson11_deserializeDocumentDataSources(v *[]*types.DataSource, value i return nil } -func awsAwsjson11_deserializeDocumentDetailsMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDetailsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4071,21 +4075,21 @@ func awsAwsjson11_deserializeDocumentDetailsMap(v *map[string]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DetailsValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -4126,7 +4130,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte if err != nil { return err } - sv.ComputeTime = &i64 + sv.ComputeTime = ptr.Int64(i64) } case "CreatedAt": @@ -4148,7 +4152,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte if !ok { return fmt.Errorf("expected AwsUserArn to be of type string, got %T instead", value) } - sv.CreatedByIamUser = &jtv + sv.CreatedByIamUser = ptr.String(jtv) } case "EvaluationDataSourceId": @@ -4157,7 +4161,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.EvaluationDataSourceId = &jtv + sv.EvaluationDataSourceId = ptr.String(jtv) } case "EvaluationId": @@ -4166,7 +4170,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.EvaluationId = &jtv + sv.EvaluationId = ptr.String(jtv) } case "FinishedAt": @@ -4188,7 +4192,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte if !ok { return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) } - sv.InputDataLocationS3 = &jtv + sv.InputDataLocationS3 = ptr.String(jtv) } case "LastUpdatedAt": @@ -4210,7 +4214,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "MLModelId": @@ -4219,7 +4223,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.MLModelId = &jtv + sv.MLModelId = ptr.String(jtv) } case "Name": @@ -4228,7 +4232,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PerformanceMetrics": @@ -4267,7 +4271,7 @@ func awsAwsjson11_deserializeDocumentEvaluation(v **types.Evaluation, value inte return nil } -func awsAwsjson11_deserializeDocumentEvaluations(v *[]*types.Evaluation, value interface{}) error { +func awsAwsjson11_deserializeDocumentEvaluations(v *[]types.Evaluation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4280,18 +4284,20 @@ func awsAwsjson11_deserializeDocumentEvaluations(v *[]*types.Evaluation, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Evaluation + var cv []types.Evaluation if *v == nil { - cv = []*types.Evaluation{} + cv = []types.Evaluation{} } else { cv = *v } for _, value := range shape { - var col *types.Evaluation - if err := awsAwsjson11_deserializeDocumentEvaluation(&col, value); err != nil { + var col types.Evaluation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEvaluation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4331,7 +4337,7 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -4340,7 +4346,7 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4384,7 +4390,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -4393,7 +4399,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4437,7 +4443,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -4446,7 +4452,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4486,7 +4492,7 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4530,7 +4536,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -4539,7 +4545,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4592,7 +4598,7 @@ func awsAwsjson11_deserializeDocumentMLModel(v **types.MLModel, value interface{ if err != nil { return err } - sv.ComputeTime = &i64 + sv.ComputeTime = ptr.Int64(i64) } case "CreatedAt": @@ -4614,7 +4620,7 @@ func awsAwsjson11_deserializeDocumentMLModel(v **types.MLModel, value interface{ if !ok { return fmt.Errorf("expected AwsUserArn to be of type string, got %T instead", value) } - sv.CreatedByIamUser = &jtv + sv.CreatedByIamUser = ptr.String(jtv) } case "EndpointInfo": @@ -4641,7 +4647,7 @@ func awsAwsjson11_deserializeDocumentMLModel(v **types.MLModel, value interface{ if !ok { return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) } - sv.InputDataLocationS3 = &jtv + sv.InputDataLocationS3 = ptr.String(jtv) } case "LastUpdatedAt": @@ -4663,7 +4669,7 @@ func awsAwsjson11_deserializeDocumentMLModel(v **types.MLModel, value interface{ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "MLModelId": @@ -4672,7 +4678,7 @@ func awsAwsjson11_deserializeDocumentMLModel(v **types.MLModel, value interface{ if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.MLModelId = &jtv + sv.MLModelId = ptr.String(jtv) } case "MLModelType": @@ -4690,7 +4696,7 @@ func awsAwsjson11_deserializeDocumentMLModel(v **types.MLModel, value interface{ if !ok { return fmt.Errorf("expected MLModelName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ScoreThreshold": @@ -4729,7 +4735,7 @@ func awsAwsjson11_deserializeDocumentMLModel(v **types.MLModel, value interface{ if err != nil { return err } - sv.SizeInBytes = &i64 + sv.SizeInBytes = ptr.Int64(i64) } case "StartedAt": @@ -4760,7 +4766,7 @@ func awsAwsjson11_deserializeDocumentMLModel(v **types.MLModel, value interface{ if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.TrainingDataSourceId = &jtv + sv.TrainingDataSourceId = ptr.String(jtv) } case "TrainingParameters": @@ -4777,7 +4783,7 @@ func awsAwsjson11_deserializeDocumentMLModel(v **types.MLModel, value interface{ return nil } -func awsAwsjson11_deserializeDocumentMLModels(v *[]*types.MLModel, value interface{}) error { +func awsAwsjson11_deserializeDocumentMLModels(v *[]types.MLModel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4790,18 +4796,20 @@ func awsAwsjson11_deserializeDocumentMLModels(v *[]*types.MLModel, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MLModel + var cv []types.MLModel if *v == nil { - cv = []*types.MLModel{} + cv = []types.MLModel{} } else { cv = *v } for _, value := range shape { - var col *types.MLModel - if err := awsAwsjson11_deserializeDocumentMLModel(&col, value); err != nil { + var col types.MLModel + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMLModel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4845,7 +4853,7 @@ func awsAwsjson11_deserializeDocumentPerformanceMetrics(v **types.PerformanceMet return nil } -func awsAwsjson11_deserializeDocumentPerformanceMetricsProperties(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPerformanceMetricsProperties(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4858,21 +4866,21 @@ func awsAwsjson11_deserializeDocumentPerformanceMetricsProperties(v *map[string] return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PerformanceMetricsPropertyValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -4914,7 +4922,7 @@ func awsAwsjson11_deserializeDocumentPrediction(v **types.Prediction, value inte if !ok { return fmt.Errorf("expected Label to be of type string, got %T instead", value) } - sv.PredictedLabel = &jtv + sv.PredictedLabel = ptr.String(jtv) } case "predictedScores": @@ -4972,7 +4980,7 @@ func awsAwsjson11_deserializeDocumentPredictorNotMountedException(v **types.Pred if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5012,7 +5020,7 @@ func awsAwsjson11_deserializeDocumentRDSDatabase(v **types.RDSDatabase, value in if !ok { return fmt.Errorf("expected RDSDatabaseName to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "InstanceIdentifier": @@ -5021,7 +5029,7 @@ func awsAwsjson11_deserializeDocumentRDSDatabase(v **types.RDSDatabase, value in if !ok { return fmt.Errorf("expected RDSInstanceIdentifier to be of type string, got %T instead", value) } - sv.InstanceIdentifier = &jtv + sv.InstanceIdentifier = ptr.String(jtv) } default: @@ -5066,7 +5074,7 @@ func awsAwsjson11_deserializeDocumentRDSMetadata(v **types.RDSMetadata, value in if !ok { return fmt.Errorf("expected RDSDatabaseUsername to be of type string, got %T instead", value) } - sv.DatabaseUserName = &jtv + sv.DatabaseUserName = ptr.String(jtv) } case "DataPipelineId": @@ -5075,7 +5083,7 @@ func awsAwsjson11_deserializeDocumentRDSMetadata(v **types.RDSMetadata, value in if !ok { return fmt.Errorf("expected EDPPipelineId to be of type string, got %T instead", value) } - sv.DataPipelineId = &jtv + sv.DataPipelineId = ptr.String(jtv) } case "ResourceRole": @@ -5084,7 +5092,7 @@ func awsAwsjson11_deserializeDocumentRDSMetadata(v **types.RDSMetadata, value in if !ok { return fmt.Errorf("expected EDPResourceRole to be of type string, got %T instead", value) } - sv.ResourceRole = &jtv + sv.ResourceRole = ptr.String(jtv) } case "SelectSqlQuery": @@ -5093,7 +5101,7 @@ func awsAwsjson11_deserializeDocumentRDSMetadata(v **types.RDSMetadata, value in if !ok { return fmt.Errorf("expected RDSSelectSqlQuery to be of type string, got %T instead", value) } - sv.SelectSqlQuery = &jtv + sv.SelectSqlQuery = ptr.String(jtv) } case "ServiceRole": @@ -5102,7 +5110,7 @@ func awsAwsjson11_deserializeDocumentRDSMetadata(v **types.RDSMetadata, value in if !ok { return fmt.Errorf("expected EDPServiceRole to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } default: @@ -5164,7 +5172,7 @@ func awsAwsjson11_deserializeDocumentRealtimeEndpointInfo(v **types.RealtimeEndp if !ok { return fmt.Errorf("expected VipURL to be of type string, got %T instead", value) } - sv.EndpointUrl = &jtv + sv.EndpointUrl = ptr.String(jtv) } case "PeakRequestsPerSecond": @@ -5177,7 +5185,7 @@ func awsAwsjson11_deserializeDocumentRealtimeEndpointInfo(v **types.RealtimeEndp if err != nil { return err } - sv.PeakRequestsPerSecond = ptr.Int32(int32(i64)) + sv.PeakRequestsPerSecond = int32(i64) } default: @@ -5217,7 +5225,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDatabase(v **types.RedshiftDatabase if !ok { return fmt.Errorf("expected RedshiftClusterIdentifier to be of type string, got %T instead", value) } - sv.ClusterIdentifier = &jtv + sv.ClusterIdentifier = ptr.String(jtv) } case "DatabaseName": @@ -5226,7 +5234,7 @@ func awsAwsjson11_deserializeDocumentRedshiftDatabase(v **types.RedshiftDatabase if !ok { return fmt.Errorf("expected RedshiftDatabaseName to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } default: @@ -5266,7 +5274,7 @@ func awsAwsjson11_deserializeDocumentRedshiftMetadata(v **types.RedshiftMetadata if !ok { return fmt.Errorf("expected RedshiftDatabaseUsername to be of type string, got %T instead", value) } - sv.DatabaseUserName = &jtv + sv.DatabaseUserName = ptr.String(jtv) } case "RedshiftDatabase": @@ -5280,7 +5288,7 @@ func awsAwsjson11_deserializeDocumentRedshiftMetadata(v **types.RedshiftMetadata if !ok { return fmt.Errorf("expected RedshiftSelectSqlQuery to be of type string, got %T instead", value) } - sv.SelectSqlQuery = &jtv + sv.SelectSqlQuery = ptr.String(jtv) } default: @@ -5324,7 +5332,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if err != nil { return err } - sv.Code = ptr.Int32(int32(i64)) + sv.Code = int32(i64) } case "message": @@ -5333,7 +5341,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5345,7 +5353,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsAwsjson11_deserializeDocumentScoreValuePerLabelMap(v *map[string]*float32, value interface{}) error { +func awsAwsjson11_deserializeDocumentScoreValuePerLabelMap(v *map[string]float32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5358,15 +5366,15 @@ func awsAwsjson11_deserializeDocumentScoreValuePerLabelMap(v *map[string]*float3 return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*float32 + var mv map[string]float32 if *v == nil { - mv = map[string]*float32{} + mv = map[string]float32{} } else { mv = *v } for key, value := range shape { - var parsedVal *float32 + var parsedVal float32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -5376,7 +5384,7 @@ func awsAwsjson11_deserializeDocumentScoreValuePerLabelMap(v *map[string]*float3 if err != nil { return err } - parsedVal = ptr.Float32(float32(f64)) + parsedVal = float32(f64) } mv[key] = parsedVal @@ -5413,7 +5421,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -5422,7 +5430,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5462,7 +5470,7 @@ func awsAwsjson11_deserializeDocumentTagLimitExceededException(v **types.TagLimi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5474,7 +5482,7 @@ func awsAwsjson11_deserializeDocumentTagLimitExceededException(v **types.TagLimi return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5487,18 +5495,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5506,7 +5516,7 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentTrainingParameters(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrainingParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5519,21 +5529,21 @@ func awsAwsjson11_deserializeDocumentTrainingParameters(v *map[string]*string, v return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -5570,7 +5580,7 @@ func awsAwsjson11_deserializeOpDocumentAddTagsOutput(v **AddTagsOutput, value in if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -5619,7 +5629,7 @@ func awsAwsjson11_deserializeOpDocumentCreateBatchPredictionOutput(v **CreateBat if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.BatchPredictionId = &jtv + sv.BatchPredictionId = ptr.String(jtv) } default: @@ -5659,7 +5669,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDataSourceFromRDSOutput(v **CreateD if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.DataSourceId = &jtv + sv.DataSourceId = ptr.String(jtv) } default: @@ -5699,7 +5709,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDataSourceFromRedshiftOutput(v **Cr if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.DataSourceId = &jtv + sv.DataSourceId = ptr.String(jtv) } default: @@ -5739,7 +5749,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDataSourceFromS3Output(v **CreateDa if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.DataSourceId = &jtv + sv.DataSourceId = ptr.String(jtv) } default: @@ -5779,7 +5789,7 @@ func awsAwsjson11_deserializeOpDocumentCreateEvaluationOutput(v **CreateEvaluati if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.EvaluationId = &jtv + sv.EvaluationId = ptr.String(jtv) } default: @@ -5819,7 +5829,7 @@ func awsAwsjson11_deserializeOpDocumentCreateMLModelOutput(v **CreateMLModelOutp if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.MLModelId = &jtv + sv.MLModelId = ptr.String(jtv) } default: @@ -5859,7 +5869,7 @@ func awsAwsjson11_deserializeOpDocumentCreateRealtimeEndpointOutput(v **CreateRe if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.MLModelId = &jtv + sv.MLModelId = ptr.String(jtv) } case "RealtimeEndpointInfo": @@ -5904,7 +5914,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteBatchPredictionOutput(v **DeleteBat if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.BatchPredictionId = &jtv + sv.BatchPredictionId = ptr.String(jtv) } default: @@ -5944,7 +5954,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteDataSourceOutput(v **DeleteDataSour if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.DataSourceId = &jtv + sv.DataSourceId = ptr.String(jtv) } default: @@ -5984,7 +5994,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteEvaluationOutput(v **DeleteEvaluati if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.EvaluationId = &jtv + sv.EvaluationId = ptr.String(jtv) } default: @@ -6024,7 +6034,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteMLModelOutput(v **DeleteMLModelOutp if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.MLModelId = &jtv + sv.MLModelId = ptr.String(jtv) } default: @@ -6064,7 +6074,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRealtimeEndpointOutput(v **DeleteRe if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.MLModelId = &jtv + sv.MLModelId = ptr.String(jtv) } case "RealtimeEndpointInfo": @@ -6109,7 +6119,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteTagsOutput(v **DeleteTagsOutput, va if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -6158,7 +6168,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBatchPredictionsOutput(v **Descri if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Results": @@ -6203,7 +6213,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDataSourcesOutput(v **DescribeDat if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Results": @@ -6248,7 +6258,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEvaluationsOutput(v **DescribeEva if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Results": @@ -6293,7 +6303,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMLModelsOutput(v **DescribeMLMode if !ok { return fmt.Errorf("expected StringType to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Results": @@ -6338,7 +6348,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -6392,7 +6402,7 @@ func awsAwsjson11_deserializeOpDocumentGetBatchPredictionOutput(v **GetBatchPred if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.BatchPredictionDataSourceId = &jtv + sv.BatchPredictionDataSourceId = ptr.String(jtv) } case "BatchPredictionId": @@ -6401,7 +6411,7 @@ func awsAwsjson11_deserializeOpDocumentGetBatchPredictionOutput(v **GetBatchPred if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.BatchPredictionId = &jtv + sv.BatchPredictionId = ptr.String(jtv) } case "ComputeTime": @@ -6414,7 +6424,7 @@ func awsAwsjson11_deserializeOpDocumentGetBatchPredictionOutput(v **GetBatchPred if err != nil { return err } - sv.ComputeTime = &i64 + sv.ComputeTime = ptr.Int64(i64) } case "CreatedAt": @@ -6436,7 +6446,7 @@ func awsAwsjson11_deserializeOpDocumentGetBatchPredictionOutput(v **GetBatchPred if !ok { return fmt.Errorf("expected AwsUserArn to be of type string, got %T instead", value) } - sv.CreatedByIamUser = &jtv + sv.CreatedByIamUser = ptr.String(jtv) } case "FinishedAt": @@ -6458,7 +6468,7 @@ func awsAwsjson11_deserializeOpDocumentGetBatchPredictionOutput(v **GetBatchPred if !ok { return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) } - sv.InputDataLocationS3 = &jtv + sv.InputDataLocationS3 = ptr.String(jtv) } case "InvalidRecordCount": @@ -6471,7 +6481,7 @@ func awsAwsjson11_deserializeOpDocumentGetBatchPredictionOutput(v **GetBatchPred if err != nil { return err } - sv.InvalidRecordCount = &i64 + sv.InvalidRecordCount = ptr.Int64(i64) } case "LastUpdatedAt": @@ -6493,7 +6503,7 @@ func awsAwsjson11_deserializeOpDocumentGetBatchPredictionOutput(v **GetBatchPred if !ok { return fmt.Errorf("expected PresignedS3Url to be of type string, got %T instead", value) } - sv.LogUri = &jtv + sv.LogUri = ptr.String(jtv) } case "Message": @@ -6502,7 +6512,7 @@ func awsAwsjson11_deserializeOpDocumentGetBatchPredictionOutput(v **GetBatchPred if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "MLModelId": @@ -6511,7 +6521,7 @@ func awsAwsjson11_deserializeOpDocumentGetBatchPredictionOutput(v **GetBatchPred if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.MLModelId = &jtv + sv.MLModelId = ptr.String(jtv) } case "Name": @@ -6520,7 +6530,7 @@ func awsAwsjson11_deserializeOpDocumentGetBatchPredictionOutput(v **GetBatchPred if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OutputUri": @@ -6529,7 +6539,7 @@ func awsAwsjson11_deserializeOpDocumentGetBatchPredictionOutput(v **GetBatchPred if !ok { return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) } - sv.OutputUri = &jtv + sv.OutputUri = ptr.String(jtv) } case "StartedAt": @@ -6564,7 +6574,7 @@ func awsAwsjson11_deserializeOpDocumentGetBatchPredictionOutput(v **GetBatchPred if err != nil { return err } - sv.TotalRecordCount = &i64 + sv.TotalRecordCount = ptr.Int64(i64) } default: @@ -6604,7 +6614,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutp if !ok { return fmt.Errorf("expected ComputeStatistics to be of type *bool, got %T instead", value) } - sv.ComputeStatistics = &jtv + sv.ComputeStatistics = jtv } case "ComputeTime": @@ -6617,7 +6627,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutp if err != nil { return err } - sv.ComputeTime = &i64 + sv.ComputeTime = ptr.Int64(i64) } case "CreatedAt": @@ -6639,7 +6649,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutp if !ok { return fmt.Errorf("expected AwsUserArn to be of type string, got %T instead", value) } - sv.CreatedByIamUser = &jtv + sv.CreatedByIamUser = ptr.String(jtv) } case "DataLocationS3": @@ -6648,7 +6658,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutp if !ok { return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) } - sv.DataLocationS3 = &jtv + sv.DataLocationS3 = ptr.String(jtv) } case "DataRearrangement": @@ -6657,7 +6667,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutp if !ok { return fmt.Errorf("expected DataRearrangement to be of type string, got %T instead", value) } - sv.DataRearrangement = &jtv + sv.DataRearrangement = ptr.String(jtv) } case "DataSizeInBytes": @@ -6670,7 +6680,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutp if err != nil { return err } - sv.DataSizeInBytes = &i64 + sv.DataSizeInBytes = ptr.Int64(i64) } case "DataSourceId": @@ -6679,7 +6689,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutp if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.DataSourceId = &jtv + sv.DataSourceId = ptr.String(jtv) } case "DataSourceSchema": @@ -6688,7 +6698,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutp if !ok { return fmt.Errorf("expected DataSchema to be of type string, got %T instead", value) } - sv.DataSourceSchema = &jtv + sv.DataSourceSchema = ptr.String(jtv) } case "FinishedAt": @@ -6723,7 +6733,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutp if !ok { return fmt.Errorf("expected PresignedS3Url to be of type string, got %T instead", value) } - sv.LogUri = &jtv + sv.LogUri = ptr.String(jtv) } case "Message": @@ -6732,7 +6742,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutp if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Name": @@ -6741,7 +6751,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutp if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NumberOfFiles": @@ -6754,7 +6764,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutp if err != nil { return err } - sv.NumberOfFiles = &i64 + sv.NumberOfFiles = ptr.Int64(i64) } case "RDSMetadata": @@ -6773,7 +6783,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutp if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } case "StartedAt": @@ -6839,7 +6849,7 @@ func awsAwsjson11_deserializeOpDocumentGetEvaluationOutput(v **GetEvaluationOutp if err != nil { return err } - sv.ComputeTime = &i64 + sv.ComputeTime = ptr.Int64(i64) } case "CreatedAt": @@ -6861,7 +6871,7 @@ func awsAwsjson11_deserializeOpDocumentGetEvaluationOutput(v **GetEvaluationOutp if !ok { return fmt.Errorf("expected AwsUserArn to be of type string, got %T instead", value) } - sv.CreatedByIamUser = &jtv + sv.CreatedByIamUser = ptr.String(jtv) } case "EvaluationDataSourceId": @@ -6870,7 +6880,7 @@ func awsAwsjson11_deserializeOpDocumentGetEvaluationOutput(v **GetEvaluationOutp if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.EvaluationDataSourceId = &jtv + sv.EvaluationDataSourceId = ptr.String(jtv) } case "EvaluationId": @@ -6879,7 +6889,7 @@ func awsAwsjson11_deserializeOpDocumentGetEvaluationOutput(v **GetEvaluationOutp if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.EvaluationId = &jtv + sv.EvaluationId = ptr.String(jtv) } case "FinishedAt": @@ -6901,7 +6911,7 @@ func awsAwsjson11_deserializeOpDocumentGetEvaluationOutput(v **GetEvaluationOutp if !ok { return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) } - sv.InputDataLocationS3 = &jtv + sv.InputDataLocationS3 = ptr.String(jtv) } case "LastUpdatedAt": @@ -6923,7 +6933,7 @@ func awsAwsjson11_deserializeOpDocumentGetEvaluationOutput(v **GetEvaluationOutp if !ok { return fmt.Errorf("expected PresignedS3Url to be of type string, got %T instead", value) } - sv.LogUri = &jtv + sv.LogUri = ptr.String(jtv) } case "Message": @@ -6932,7 +6942,7 @@ func awsAwsjson11_deserializeOpDocumentGetEvaluationOutput(v **GetEvaluationOutp if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "MLModelId": @@ -6941,7 +6951,7 @@ func awsAwsjson11_deserializeOpDocumentGetEvaluationOutput(v **GetEvaluationOutp if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.MLModelId = &jtv + sv.MLModelId = ptr.String(jtv) } case "Name": @@ -6950,7 +6960,7 @@ func awsAwsjson11_deserializeOpDocumentGetEvaluationOutput(v **GetEvaluationOutp if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PerformanceMetrics": @@ -7021,7 +7031,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLModelOutput(v **GetMLModelOutput, va if err != nil { return err } - sv.ComputeTime = &i64 + sv.ComputeTime = ptr.Int64(i64) } case "CreatedAt": @@ -7043,7 +7053,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLModelOutput(v **GetMLModelOutput, va if !ok { return fmt.Errorf("expected AwsUserArn to be of type string, got %T instead", value) } - sv.CreatedByIamUser = &jtv + sv.CreatedByIamUser = ptr.String(jtv) } case "EndpointInfo": @@ -7070,7 +7080,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLModelOutput(v **GetMLModelOutput, va if !ok { return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) } - sv.InputDataLocationS3 = &jtv + sv.InputDataLocationS3 = ptr.String(jtv) } case "LastUpdatedAt": @@ -7092,7 +7102,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLModelOutput(v **GetMLModelOutput, va if !ok { return fmt.Errorf("expected PresignedS3Url to be of type string, got %T instead", value) } - sv.LogUri = &jtv + sv.LogUri = ptr.String(jtv) } case "Message": @@ -7101,7 +7111,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLModelOutput(v **GetMLModelOutput, va if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "MLModelId": @@ -7110,7 +7120,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLModelOutput(v **GetMLModelOutput, va if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.MLModelId = &jtv + sv.MLModelId = ptr.String(jtv) } case "MLModelType": @@ -7128,7 +7138,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLModelOutput(v **GetMLModelOutput, va if !ok { return fmt.Errorf("expected MLModelName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Recipe": @@ -7137,7 +7147,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLModelOutput(v **GetMLModelOutput, va if !ok { return fmt.Errorf("expected Recipe to be of type string, got %T instead", value) } - sv.Recipe = &jtv + sv.Recipe = ptr.String(jtv) } case "Schema": @@ -7146,7 +7156,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLModelOutput(v **GetMLModelOutput, va if !ok { return fmt.Errorf("expected DataSchema to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } case "ScoreThreshold": @@ -7185,7 +7195,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLModelOutput(v **GetMLModelOutput, va if err != nil { return err } - sv.SizeInBytes = &i64 + sv.SizeInBytes = ptr.Int64(i64) } case "StartedAt": @@ -7216,7 +7226,7 @@ func awsAwsjson11_deserializeOpDocumentGetMLModelOutput(v **GetMLModelOutput, va if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.TrainingDataSourceId = &jtv + sv.TrainingDataSourceId = ptr.String(jtv) } case "TrainingParameters": @@ -7297,7 +7307,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateBatchPredictionOutput(v **UpdateBat if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.BatchPredictionId = &jtv + sv.BatchPredictionId = ptr.String(jtv) } default: @@ -7337,7 +7347,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateDataSourceOutput(v **UpdateDataSour if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.DataSourceId = &jtv + sv.DataSourceId = ptr.String(jtv) } default: @@ -7377,7 +7387,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateEvaluationOutput(v **UpdateEvaluati if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.EvaluationId = &jtv + sv.EvaluationId = ptr.String(jtv) } default: @@ -7417,7 +7427,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMLModelOutput(v **UpdateMLModelOutp if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.MLModelId = &jtv + sv.MLModelId = ptr.String(jtv) } default: diff --git a/service/machinelearning/go.mod b/service/machinelearning/go.mod index e39e6f851a6..7d2b1da8721 100644 --- a/service/machinelearning/go.mod +++ b/service/machinelearning/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/machinelearning go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/machinelearning/serializers.go b/service/machinelearning/serializers.go index 1e2932efb69..138d47b5c7e 100644 --- a/service/machinelearning/serializers.go +++ b/service/machinelearning/serializers.go @@ -1301,17 +1301,13 @@ func (m *awsAwsjson11_serializeOpUpdateMLModel) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentEDPSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEDPSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1418,17 +1414,13 @@ func awsAwsjson11_serializeDocumentRDSDataSpec(v *types.RDSDataSpec, value smith return nil } -func awsAwsjson11_serializeDocumentRecord(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRecord(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1557,49 +1549,37 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTrainingParameters(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTrainingParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1664,9 +1644,9 @@ func awsAwsjson11_serializeOpDocumentCreateDataSourceFromRDSInput(v *CreateDataS object := value.Object() defer object.Close() - if v.ComputeStatistics != nil { + if v.ComputeStatistics { ok := object.Key("ComputeStatistics") - ok.Boolean(*v.ComputeStatistics) + ok.Boolean(v.ComputeStatistics) } if v.DataSourceId != nil { @@ -1698,9 +1678,9 @@ func awsAwsjson11_serializeOpDocumentCreateDataSourceFromRedshiftInput(v *Create object := value.Object() defer object.Close() - if v.ComputeStatistics != nil { + if v.ComputeStatistics { ok := object.Key("ComputeStatistics") - ok.Boolean(*v.ComputeStatistics) + ok.Boolean(v.ComputeStatistics) } if v.DataSourceId != nil { @@ -1732,9 +1712,9 @@ func awsAwsjson11_serializeOpDocumentCreateDataSourceFromS3Input(v *CreateDataSo object := value.Object() defer object.Close() - if v.ComputeStatistics != nil { + if v.ComputeStatistics { ok := object.Key("ComputeStatistics") - ok.Boolean(*v.ComputeStatistics) + ok.Boolean(v.ComputeStatistics) } if v.DataSourceId != nil { @@ -2210,9 +2190,9 @@ func awsAwsjson11_serializeOpDocumentGetDataSourceInput(v *GetDataSourceInput, v ok.String(*v.DataSourceId) } - if v.Verbose != nil { + if v.Verbose { ok := object.Key("Verbose") - ok.Boolean(*v.Verbose) + ok.Boolean(v.Verbose) } return nil @@ -2239,9 +2219,9 @@ func awsAwsjson11_serializeOpDocumentGetMLModelInput(v *GetMLModelInput, value s ok.String(*v.MLModelId) } - if v.Verbose != nil { + if v.Verbose { ok := object.Key("Verbose") - ok.Boolean(*v.Verbose) + ok.Boolean(v.Verbose) } return nil diff --git a/service/machinelearning/types/errors.go b/service/machinelearning/types/errors.go index 98bc73a9861..9570f944722 100644 --- a/service/machinelearning/types/errors.go +++ b/service/machinelearning/types/errors.go @@ -13,7 +13,7 @@ import ( type IdempotentParameterMismatchException struct { Message *string - Code *int32 + Code int32 } func (e *IdempotentParameterMismatchException) Error() string { @@ -36,7 +36,7 @@ func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { type InternalServerException struct { Message *string - Code *int32 + Code int32 } func (e *InternalServerException) Error() string { @@ -55,7 +55,7 @@ func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy type InvalidInputException struct { Message *string - Code *int32 + Code int32 } func (e *InvalidInputException) Error() string { @@ -92,7 +92,7 @@ func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.Fau type LimitExceededException struct { Message *string - Code *int32 + Code int32 } func (e *LimitExceededException) Error() string { @@ -128,7 +128,7 @@ func (e *PredictorNotMountedException) ErrorFault() smithy.ErrorFault { return s type ResourceNotFoundException struct { Message *string - Code *int32 + Code int32 } func (e *ResourceNotFoundException) Error() string { diff --git a/service/machinelearning/types/types.go b/service/machinelearning/types/types.go index 4145dc28f8b..21b42d6b196 100644 --- a/service/machinelearning/types/types.go +++ b/service/machinelearning/types/types.go @@ -93,7 +93,7 @@ type DataSource struct { // The parameter is true if statistics need to be generated from the observation // data. - ComputeStatistics *bool + ComputeStatistics bool // Long integer type that is a 64-bit signed number. ComputeTime *int64 @@ -380,7 +380,7 @@ type MLModel struct { // value is a double that ranges from 0 to MAX_DOUBLE. The default is to not use L2 // normalization. This parameter can't be used when L1 is specified. Use this // parameter sparingly. - TrainingParameters map[string]*string + TrainingParameters map[string]string } // Measurements of how well the MLModel performed on known observations. One of the @@ -404,7 +404,7 @@ type MLModel struct { type PerformanceMetrics struct { // Specific performance metric information. - Properties map[string]*string + Properties map[string]string } // The output from a Predict operation: @@ -424,13 +424,13 @@ type PerformanceMetrics struct { type Prediction struct { // Provides any additional details regarding the prediction. - Details map[string]*string + Details map[string]string // The prediction label for either a BINARY or MULTICLASSMLModel. PredictedLabel *string // Provides the raw classification score corresponding to each label. - PredictedScores map[string]*float32 + PredictedScores map[string]float32 // The prediction value for REGRESSIONMLModel. PredictedValue *float32 @@ -504,7 +504,7 @@ type RDSDataSpec struct { // operation from Amazon RDS to an Amazon S3 task. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // The query that is used to retrieve the observation data for the DataSource. // @@ -669,7 +669,7 @@ type RealtimeEndpointInfo struct { // The maximum processing rate for the real-time endpoint for MLModel, measured in // incoming requests per second. - PeakRequestsPerSecond *int32 + PeakRequestsPerSecond int32 } // Describes the database details required to connect to an Amazon Redshift diff --git a/service/macie/api_op_AssociateS3Resources.go b/service/macie/api_op_AssociateS3Resources.go index b5d5b50bad7..f15063081ab 100644 --- a/service/macie/api_op_AssociateS3Resources.go +++ b/service/macie/api_op_AssociateS3Resources.go @@ -37,7 +37,7 @@ type AssociateS3ResourcesInput struct { // monitoring and data classification. // // This member is required. - S3Resources []*types.S3ResourceClassification + S3Resources []types.S3ResourceClassification // The ID of the Amazon Macie Classic member account whose resources you want to // associate with Macie Classic. @@ -48,7 +48,7 @@ type AssociateS3ResourcesOutput struct { // S3 resources that couldn't be associated with Amazon Macie Classic. An error // code and an error message are provided for each failed item. - FailedS3Resources []*types.FailedS3Resource + FailedS3Resources []types.FailedS3Resource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie/api_op_DisassociateS3Resources.go b/service/macie/api_op_DisassociateS3Resources.go index d9eb62f6b92..f9564dfa38b 100644 --- a/service/macie/api_op_DisassociateS3Resources.go +++ b/service/macie/api_op_DisassociateS3Resources.go @@ -37,7 +37,7 @@ type DisassociateS3ResourcesInput struct { // monitored and classified by Amazon Macie Classic. // // This member is required. - AssociatedS3Resources []*types.S3Resource + AssociatedS3Resources []types.S3Resource // The ID of the Amazon Macie Classic member account whose resources you want to // remove from being monitored by Amazon Macie Classic. @@ -49,7 +49,7 @@ type DisassociateS3ResourcesOutput struct { // S3 resources that couldn't be removed from being monitored and classified by // Amazon Macie Classic. An error code and an error message are provided for each // failed item. - FailedS3Resources []*types.FailedS3Resource + FailedS3Resources []types.FailedS3Resource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie/api_op_ListMemberAccounts.go b/service/macie/api_op_ListMemberAccounts.go index d10623b8a4e..b07fa3d51ab 100644 --- a/service/macie/api_op_ListMemberAccounts.go +++ b/service/macie/api_op_ListMemberAccounts.go @@ -45,7 +45,7 @@ type ListMemberAccountsOutput struct { // A list of the Amazon Macie Classic member accounts returned by the action. The // current master account is also included in this list. - MemberAccounts []*types.MemberAccount + MemberAccounts []types.MemberAccount // When a response is generated, if there is more data to be listed, this parameter // is present in the response and contains the value to use for the nextToken diff --git a/service/macie/api_op_ListS3Resources.go b/service/macie/api_op_ListS3Resources.go index 66f054476c5..140aa0c880e 100644 --- a/service/macie/api_op_ListS3Resources.go +++ b/service/macie/api_op_ListS3Resources.go @@ -57,7 +57,7 @@ type ListS3ResourcesOutput struct { NextToken *string // A list of the associated S3 resources returned by the action. - S3Resources []*types.S3ResourceClassification + S3Resources []types.S3ResourceClassification // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie/api_op_UpdateS3Resources.go b/service/macie/api_op_UpdateS3Resources.go index 027793abf01..5694230da6f 100644 --- a/service/macie/api_op_UpdateS3Resources.go +++ b/service/macie/api_op_UpdateS3Resources.go @@ -37,7 +37,7 @@ type UpdateS3ResourcesInput struct { // The S3 resources whose classification types you want to update. // // This member is required. - S3ResourcesUpdate []*types.S3ResourceClassificationUpdate + S3ResourcesUpdate []types.S3ResourceClassificationUpdate // The AWS ID of the Amazon Macie Classic member account whose S3 resources' // classification types you want to update. @@ -48,7 +48,7 @@ type UpdateS3ResourcesOutput struct { // The S3 resources whose classification types can't be updated. An error code and // an error message are provided for each failed item. - FailedS3Resources []*types.FailedS3Resource + FailedS3Resources []types.FailedS3Resource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie/deserializers.go b/service/macie/deserializers.go index 65cec89c0bc..2e7a2d708a4 100644 --- a/service/macie/deserializers.go +++ b/service/macie/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -1001,7 +1002,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceType": @@ -1010,7 +1011,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -1099,7 +1100,7 @@ func awsAwsjson11_deserializeDocumentFailedS3Resource(v **types.FailedS3Resource if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "errorMessage": @@ -1108,7 +1109,7 @@ func awsAwsjson11_deserializeDocumentFailedS3Resource(v **types.FailedS3Resource if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "failedItem": @@ -1125,7 +1126,7 @@ func awsAwsjson11_deserializeDocumentFailedS3Resource(v **types.FailedS3Resource return nil } -func awsAwsjson11_deserializeDocumentFailedS3Resources(v *[]*types.FailedS3Resource, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedS3Resources(v *[]types.FailedS3Resource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1138,18 +1139,20 @@ func awsAwsjson11_deserializeDocumentFailedS3Resources(v *[]*types.FailedS3Resou return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedS3Resource + var cv []types.FailedS3Resource if *v == nil { - cv = []*types.FailedS3Resource{} + cv = []types.FailedS3Resource{} } else { cv = *v } for _, value := range shape { - var col *types.FailedS3Resource - if err := awsAwsjson11_deserializeDocumentFailedS3Resource(&col, value); err != nil { + var col types.FailedS3Resource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailedS3Resource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1185,7 +1188,7 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "message": @@ -1194,7 +1197,7 @@ func awsAwsjson11_deserializeDocumentInternalException(v **types.InternalExcepti if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1234,7 +1237,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "fieldName": @@ -1243,7 +1246,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected FieldName to be of type string, got %T instead", value) } - sv.FieldName = &jtv + sv.FieldName = ptr.String(jtv) } case "message": @@ -1252,7 +1255,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1292,7 +1295,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "message": @@ -1301,7 +1304,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceType": @@ -1310,7 +1313,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -1350,7 +1353,7 @@ func awsAwsjson11_deserializeDocumentMemberAccount(v **types.MemberAccount, valu if !ok { return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } default: @@ -1362,7 +1365,7 @@ func awsAwsjson11_deserializeDocumentMemberAccount(v **types.MemberAccount, valu return nil } -func awsAwsjson11_deserializeDocumentMemberAccounts(v *[]*types.MemberAccount, value interface{}) error { +func awsAwsjson11_deserializeDocumentMemberAccounts(v *[]types.MemberAccount, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1375,18 +1378,20 @@ func awsAwsjson11_deserializeDocumentMemberAccounts(v *[]*types.MemberAccount, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MemberAccount + var cv []types.MemberAccount if *v == nil { - cv = []*types.MemberAccount{} + cv = []types.MemberAccount{} } else { cv = *v } for _, value := range shape { - var col *types.MemberAccount - if err := awsAwsjson11_deserializeDocumentMemberAccount(&col, value); err != nil { + var col types.MemberAccount + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMemberAccount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1422,7 +1427,7 @@ func awsAwsjson11_deserializeDocumentS3Resource(v **types.S3Resource, value inte if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "prefix": @@ -1431,7 +1436,7 @@ func awsAwsjson11_deserializeDocumentS3Resource(v **types.S3Resource, value inte if !ok { return fmt.Errorf("expected Prefix to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } default: @@ -1471,7 +1476,7 @@ func awsAwsjson11_deserializeDocumentS3ResourceClassification(v **types.S3Resour if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "classificationType": @@ -1485,7 +1490,7 @@ func awsAwsjson11_deserializeDocumentS3ResourceClassification(v **types.S3Resour if !ok { return fmt.Errorf("expected Prefix to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } default: @@ -1497,7 +1502,7 @@ func awsAwsjson11_deserializeDocumentS3ResourceClassification(v **types.S3Resour return nil } -func awsAwsjson11_deserializeDocumentS3ResourcesClassification(v *[]*types.S3ResourceClassification, value interface{}) error { +func awsAwsjson11_deserializeDocumentS3ResourcesClassification(v *[]types.S3ResourceClassification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1510,18 +1515,20 @@ func awsAwsjson11_deserializeDocumentS3ResourcesClassification(v *[]*types.S3Res return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.S3ResourceClassification + var cv []types.S3ResourceClassification if *v == nil { - cv = []*types.S3ResourceClassification{} + cv = []types.S3ResourceClassification{} } else { cv = *v } for _, value := range shape { - var col *types.S3ResourceClassification - if err := awsAwsjson11_deserializeDocumentS3ResourceClassification(&col, value); err != nil { + var col types.S3ResourceClassification + destAddr := &col + if err := awsAwsjson11_deserializeDocumentS3ResourceClassification(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1696,7 +1703,7 @@ func awsAwsjson11_deserializeOpDocumentListMemberAccountsOutput(v **ListMemberAc if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1736,7 +1743,7 @@ func awsAwsjson11_deserializeOpDocumentListS3ResourcesOutput(v **ListS3Resources if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "s3Resources": diff --git a/service/macie/go.mod b/service/macie/go.mod index 4627294b031..ab1b7b4a1e4 100644 --- a/service/macie/go.mod +++ b/service/macie/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/macie go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/macie/serializers.go b/service/macie/serializers.go index c9ff1f4e1c6..791d95c3fe1 100644 --- a/service/macie/serializers.go +++ b/service/macie/serializers.go @@ -434,51 +434,39 @@ func awsAwsjson11_serializeDocumentS3ResourceClassificationUpdate(v *types.S3Res return nil } -func awsAwsjson11_serializeDocumentS3Resources(v []*types.S3Resource, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentS3Resources(v []types.S3Resource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentS3Resource(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentS3Resource(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentS3ResourcesClassification(v []*types.S3ResourceClassification, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentS3ResourcesClassification(v []types.S3ResourceClassification, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentS3ResourceClassification(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentS3ResourceClassification(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentS3ResourcesClassificationUpdate(v []*types.S3ResourceClassificationUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentS3ResourcesClassificationUpdate(v []types.S3ResourceClassificationUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentS3ResourceClassificationUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentS3ResourceClassificationUpdate(&v[i], av); err != nil { return err } } diff --git a/service/macie/validators.go b/service/macie/validators.go index f313c496f28..7a331bedc85 100644 --- a/service/macie/validators.go +++ b/service/macie/validators.go @@ -203,13 +203,13 @@ func validateS3ResourceClassificationUpdate(v *types.S3ResourceClassificationUpd } } -func validateS3Resources(v []*types.S3Resource) error { +func validateS3Resources(v []types.S3Resource) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "S3Resources"} for i := range v { - if err := validateS3Resource(v[i]); err != nil { + if err := validateS3Resource(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -220,13 +220,13 @@ func validateS3Resources(v []*types.S3Resource) error { } } -func validateS3ResourcesClassification(v []*types.S3ResourceClassification) error { +func validateS3ResourcesClassification(v []types.S3ResourceClassification) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "S3ResourcesClassification"} for i := range v { - if err := validateS3ResourceClassification(v[i]); err != nil { + if err := validateS3ResourceClassification(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -237,13 +237,13 @@ func validateS3ResourcesClassification(v []*types.S3ResourceClassification) erro } } -func validateS3ResourcesClassificationUpdate(v []*types.S3ResourceClassificationUpdate) error { +func validateS3ResourcesClassificationUpdate(v []types.S3ResourceClassificationUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "S3ResourcesClassificationUpdate"} for i := range v { - if err := validateS3ResourceClassificationUpdate(v[i]); err != nil { + if err := validateS3ResourceClassificationUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/macie2/api_op_BatchGetCustomDataIdentifiers.go b/service/macie2/api_op_BatchGetCustomDataIdentifiers.go index 1fef9d4e666..16260eb090e 100644 --- a/service/macie2/api_op_BatchGetCustomDataIdentifiers.go +++ b/service/macie2/api_op_BatchGetCustomDataIdentifiers.go @@ -31,18 +31,18 @@ type BatchGetCustomDataIdentifiersInput struct { // An array of strings that lists the unique identifiers for the custom data // identifiers to retrieve information about. - Ids []*string + Ids []string } type BatchGetCustomDataIdentifiersOutput struct { // An array of objects, one for each custom data identifier that meets the criteria // specified in the request. - CustomDataIdentifiers []*types.BatchGetCustomDataIdentifierSummary + CustomDataIdentifiers []types.BatchGetCustomDataIdentifierSummary // An array of identifiers, one for each identifier that was specified in the // request, but doesn't correlate to an existing custom data identifier. - NotFoundIdentifierIds []*string + NotFoundIdentifierIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_CreateClassificationJob.go b/service/macie2/api_op_CreateClassificationJob.go index a5b99c5b827..b12fed9f72c 100644 --- a/service/macie2/api_op_CreateClassificationJob.go +++ b/service/macie2/api_op_CreateClassificationJob.go @@ -61,7 +61,7 @@ type CreateClassificationJobInput struct { S3JobDefinition *types.S3JobDefinition // The custom data identifiers to use for data analysis and classification. - CustomDataIdentifierIds []*string + CustomDataIdentifierIds []string // A custom description of the job. The description can contain as many as 200 // characters. @@ -69,14 +69,14 @@ type CreateClassificationJobInput struct { // Specifies whether to analyze all existing, eligible objects immediately after // the job is created. - InitialRun *bool + InitialRun bool // The sampling depth, as a percentage, to apply when processing objects. This // value determines the percentage of eligible objects that the job analyzes. If // this value is less than 100, Amazon Macie selects the objects to analyze at // random, up to the specified percentage, and analyzes all the data in those // objects. - SamplingPercentage *int32 + SamplingPercentage int32 // The recurrence pattern for running the job. To run the job only once, don't // specify a value for this property and set the value for the jobType property to @@ -87,7 +87,7 @@ type CreateClassificationJobInput struct { // job can have a maximum of 50 tags. Each tag consists of a tag key and an // associated tag value. The maximum length of a tag key is 128 characters. The // maximum length of a tag value is 256 characters. - Tags map[string]*string + Tags map[string]string } type CreateClassificationJobOutput struct { diff --git a/service/macie2/api_op_CreateCustomDataIdentifier.go b/service/macie2/api_op_CreateCustomDataIdentifier.go index 14ca9f4b06a..33aa10c12ad 100644 --- a/service/macie2/api_op_CreateCustomDataIdentifier.go +++ b/service/macie2/api_op_CreateCustomDataIdentifier.go @@ -46,20 +46,20 @@ type CreateCustomDataIdentifierInput struct { // string in this array, Amazon Macie ignores it. The array can contain as many as // 10 ignore words. Each ignore word can contain 4 - 90 characters. Ignore words // are case sensitive. - IgnoreWords []*string + IgnoreWords []string // An array that lists specific character sequences (keywords), one of which must // be within proximity (maximumMatchDistance) of the regular expression to match. // The array can contain as many as 50 keywords. Each keyword can contain 4 - 90 // characters. Keywords aren't case sensitive. - Keywords []*string + Keywords []string // The maximum number of characters that can exist between text that matches the // regex pattern and the character sequences specified by the keywords array. Macie // includes or excludes a result based on the proximity of a keyword to text that // matches the regex pattern. The distance can be 1 - 300 characters. The default // value is 50. - MaximumMatchDistance *int32 + MaximumMatchDistance int32 // A custom name for the custom data identifier. The name can contain as many as // 128 characters. We strongly recommend that you avoid including any sensitive @@ -76,7 +76,7 @@ type CreateCustomDataIdentifierInput struct { // data identifier. A custom data identifier can have a maximum of 50 tags. Each // tag consists of a tag key and an associated tag value. The maximum length of a // tag key is 128 characters. The maximum length of a tag value is 256 characters. - Tags map[string]*string + Tags map[string]string } type CreateCustomDataIdentifierOutput struct { diff --git a/service/macie2/api_op_CreateFindingsFilter.go b/service/macie2/api_op_CreateFindingsFilter.go index 3c7bb4e9387..67ba528f039 100644 --- a/service/macie2/api_op_CreateFindingsFilter.go +++ b/service/macie2/api_op_CreateFindingsFilter.go @@ -65,13 +65,13 @@ type CreateFindingsFilterInput struct { // The position of the filter in the list of saved filters on the Amazon Macie // console. This value also determines the order in which the filter is applied to // findings, relative to other filters that are also applied to the findings. - Position *int32 + Position int32 // A map of key-value pairs that specifies the tags to associate with the filter. A // findings filter can have a maximum of 50 tags. Each tag consists of a tag key // and an associated tag value. The maximum length of a tag key is 128 characters. // The maximum length of a tag value is 256 characters. - Tags map[string]*string + Tags map[string]string } type CreateFindingsFilterOutput struct { diff --git a/service/macie2/api_op_CreateInvitations.go b/service/macie2/api_op_CreateInvitations.go index 5c7cba01846..4057c477f84 100644 --- a/service/macie2/api_op_CreateInvitations.go +++ b/service/macie2/api_op_CreateInvitations.go @@ -33,13 +33,13 @@ type CreateInvitationsInput struct { // to. // // This member is required. - AccountIds []*string + AccountIds []string // Specifies whether to send an email notification to the root user of each account // that the invitation will be sent to. This notification is in addition to an // alert that the root user receives in AWS Personal Health Dashboard. To send an // email notification to the root user of each account, set this value to true. - DisableEmailNotification *bool + DisableEmailNotification bool // A custom message to include in the invitation. Amazon Macie adds this message to // the standard content that it sends for an invitation. @@ -51,7 +51,7 @@ type CreateInvitationsOutput struct { // An array of objects, one for each account whose invitation hasn't been // processed. Each object identifies the account and explains why the invitation // hasn't been processed for the account. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_CreateMember.go b/service/macie2/api_op_CreateMember.go index 0a3c4df5eae..7236bf748b5 100644 --- a/service/macie2/api_op_CreateMember.go +++ b/service/macie2/api_op_CreateMember.go @@ -38,7 +38,7 @@ type CreateMemberInput struct { // in Amazon Macie. An account can have a maximum of 50 tags. Each tag consists of // a tag key and an associated tag value. The maximum length of a tag key is 128 // characters. The maximum length of a tag value is 256 characters. - Tags map[string]*string + Tags map[string]string } type CreateMemberOutput struct { diff --git a/service/macie2/api_op_DeclineInvitations.go b/service/macie2/api_op_DeclineInvitations.go index b652a2f539a..ab1fcdeba29 100644 --- a/service/macie2/api_op_DeclineInvitations.go +++ b/service/macie2/api_op_DeclineInvitations.go @@ -34,7 +34,7 @@ type DeclineInvitationsInput struct { // invitation to decline. // // This member is required. - AccountIds []*string + AccountIds []string } type DeclineInvitationsOutput struct { @@ -42,7 +42,7 @@ type DeclineInvitationsOutput struct { // An array of objects, one for each account whose invitation hasn't been declined. // Each object identifies the account and explains why the request hasn't been // processed for that account. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_DeleteInvitations.go b/service/macie2/api_op_DeleteInvitations.go index 2e78957c1f9..8615a25fe70 100644 --- a/service/macie2/api_op_DeleteInvitations.go +++ b/service/macie2/api_op_DeleteInvitations.go @@ -34,7 +34,7 @@ type DeleteInvitationsInput struct { // invitation to delete. // // This member is required. - AccountIds []*string + AccountIds []string } type DeleteInvitationsOutput struct { @@ -42,7 +42,7 @@ type DeleteInvitationsOutput struct { // An array of objects, one for each account whose invitation hasn't been deleted. // Each object identifies the account and explains why the request hasn't been // processed for that account. - UnprocessedAccounts []*types.UnprocessedAccount + UnprocessedAccounts []types.UnprocessedAccount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_DescribeBuckets.go b/service/macie2/api_op_DescribeBuckets.go index 72288a9a026..59a008c2d9d 100644 --- a/service/macie2/api_op_DescribeBuckets.go +++ b/service/macie2/api_op_DescribeBuckets.go @@ -31,11 +31,11 @@ func (c *Client) DescribeBuckets(ctx context.Context, params *DescribeBucketsInp type DescribeBucketsInput struct { // The criteria to use to filter the query results. - Criteria map[string]*types.BucketCriteriaAdditionalProperties + Criteria map[string]types.BucketCriteriaAdditionalProperties // The maximum number of items to include in each page of the response. The default // value is 50. - MaxResults *int32 + MaxResults int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -49,7 +49,7 @@ type DescribeBucketsOutput struct { // An array of objects, one for each bucket that meets the filter criteria // specified in the request. - Buckets []*types.BucketMetadata + Buckets []types.BucketMetadata // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. diff --git a/service/macie2/api_op_DescribeClassificationJob.go b/service/macie2/api_op_DescribeClassificationJob.go index b5ace808f58..20b803375a6 100644 --- a/service/macie2/api_op_DescribeClassificationJob.go +++ b/service/macie2/api_op_DescribeClassificationJob.go @@ -47,14 +47,14 @@ type DescribeClassificationJobOutput struct { CreatedAt *time.Time // The custom data identifiers that the job uses to analyze data. - CustomDataIdentifierIds []*string + CustomDataIdentifierIds []string // The custom description of the job. Description *string // Specifies whether the job is configured to analyze all existing, eligible // objects immediately after it's created. - InitialRun *bool + InitialRun bool // The Amazon Resource Name (ARN) of the job. JobArn *string @@ -109,7 +109,7 @@ type DescribeClassificationJobOutput struct { // The sampling depth, as a percentage, that determines the percentage of eligible // objects that the job analyzes. - SamplingPercentage *int32 + SamplingPercentage int32 // The recurrence pattern for running the job. If the job is configured to run only // once, this value is null. @@ -121,7 +121,7 @@ type DescribeClassificationJobOutput struct { // A map of key-value pairs that specifies which tags (keys and values) are // associated with the classification job. - Tags map[string]*string + Tags map[string]string // If the current status of the job is USER_PAUSED, specifies when the job was // paused and when the job will expire and be cancelled if it isn't resumed. This diff --git a/service/macie2/api_op_DescribeOrganizationConfiguration.go b/service/macie2/api_op_DescribeOrganizationConfiguration.go index b3be8dd4dfb..ae4432f2e9f 100644 --- a/service/macie2/api_op_DescribeOrganizationConfiguration.go +++ b/service/macie2/api_op_DescribeOrganizationConfiguration.go @@ -33,11 +33,11 @@ type DescribeOrganizationConfigurationOutput struct { // Specifies whether Amazon Macie is enabled automatically for accounts that are // added to the AWS organization. - AutoEnable *bool + AutoEnable bool // Specifies whether the maximum number of Amazon Macie member accounts are part of // the AWS organization. - MaxAccountLimitReached *bool + MaxAccountLimitReached bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_GetBucketStatistics.go b/service/macie2/api_op_GetBucketStatistics.go index e352f4632a3..a7a98824fd8 100644 --- a/service/macie2/api_op_GetBucketStatistics.go +++ b/service/macie2/api_op_GetBucketStatistics.go @@ -38,7 +38,7 @@ type GetBucketStatisticsInput struct { type GetBucketStatisticsOutput struct { // The total number of buckets. - BucketCount *int64 + BucketCount int64 // The total number of buckets that are publicly accessible based on a combination // of permissions settings for each bucket. @@ -54,25 +54,25 @@ type GetBucketStatisticsOutput struct { // The total number of objects that Amazon Macie can analyze in the buckets. These // objects use a supported storage class and have a file name extension for a // supported file or storage format. - ClassifiableObjectCount *int64 + ClassifiableObjectCount int64 // The total storage size, in bytes, of all the objects that Amazon Macie can // analyze in the buckets. These objects use a supported storage class and have a // file name extension for a supported file or storage format. - ClassifiableSizeInBytes *int64 + ClassifiableSizeInBytes int64 // The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most // recently retrieved data about the buckets from Amazon S3. LastUpdated *time.Time // The total number of objects in the buckets. - ObjectCount *int64 + ObjectCount int64 // The total storage size, in bytes, of the buckets. - SizeInBytes *int64 + SizeInBytes int64 // The total compressed storage size, in bytes, of the buckets. - SizeInBytesCompressed *int64 + SizeInBytesCompressed int64 // The total number of objects that Amazon Macie can't analyze in the buckets. // These objects don't use a supported storage class or don't have a file name diff --git a/service/macie2/api_op_GetCustomDataIdentifier.go b/service/macie2/api_op_GetCustomDataIdentifier.go index 80fbd28e221..04890164a2a 100644 --- a/service/macie2/api_op_GetCustomDataIdentifier.go +++ b/service/macie2/api_op_GetCustomDataIdentifier.go @@ -48,7 +48,7 @@ type GetCustomDataIdentifierOutput struct { // Specifies whether the custom data identifier was deleted. If you delete a custom // data identifier, Amazon Macie doesn't delete it permanently. Instead, it soft // deletes the identifier. - Deleted *bool + Deleted bool // The custom description of the custom data identifier. Description *string @@ -59,18 +59,18 @@ type GetCustomDataIdentifierOutput struct { // An array that lists specific character sequences (ignore words) to exclude from // the results. If the text matched by the regular expression is the same as any // string in this array, Amazon Macie ignores it. Ignore words are case sensitive. - IgnoreWords []*string + IgnoreWords []string // An array that lists specific character sequences (keywords), one of which must // be within proximity (maximumMatchDistance) of the regular expression to match. // Keywords aren't case sensitive. - Keywords []*string + Keywords []string // The maximum number of characters that can exist between text that matches the // regex pattern and the character sequences specified by the keywords array. Macie // includes or excludes a result based on the proximity of a keyword to text that // matches the regex pattern. - MaximumMatchDistance *int32 + MaximumMatchDistance int32 // The custom name of the custom data identifier. Name *string @@ -80,7 +80,7 @@ type GetCustomDataIdentifierOutput struct { // A map of key-value pairs that identifies the tags (keys and values) that are // associated with the custom data identifier. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_GetFindingStatistics.go b/service/macie2/api_op_GetFindingStatistics.go index e491e0128de..37feb39658f 100644 --- a/service/macie2/api_op_GetFindingStatistics.go +++ b/service/macie2/api_op_GetFindingStatistics.go @@ -51,7 +51,7 @@ type GetFindingStatisticsInput struct { FindingCriteria *types.FindingCriteria // The maximum number of items to include in each page of the response. - Size *int32 + Size int32 // The criteria to use to sort the query results. SortCriteria *types.FindingStatisticsSortCriteria @@ -61,7 +61,7 @@ type GetFindingStatisticsOutput struct { // An array of objects, one for each group of findings that meet the filter // criteria specified in the request. - CountsByGroup []*types.GroupCount + CountsByGroup []types.GroupCount // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_GetFindings.go b/service/macie2/api_op_GetFindings.go index 3265d27cf0f..9726b7ee8fa 100644 --- a/service/macie2/api_op_GetFindings.go +++ b/service/macie2/api_op_GetFindings.go @@ -33,7 +33,7 @@ type GetFindingsInput struct { // retrieve. // // This member is required. - FindingIds []*string + FindingIds []string // The criteria for sorting the results of the request. SortCriteria *types.SortCriteria @@ -43,7 +43,7 @@ type GetFindingsOutput struct { // An array of objects, one for each finding that meets the criteria specified in // the request. - Findings []*types.Finding + Findings []types.Finding // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_GetFindingsFilter.go b/service/macie2/api_op_GetFindingsFilter.go index fd5aeca7208..bcda8cb6b47 100644 --- a/service/macie2/api_op_GetFindingsFilter.go +++ b/service/macie2/api_op_GetFindingsFilter.go @@ -61,11 +61,11 @@ type GetFindingsFilterOutput struct { // The position of the filter in the list of saved filters on the Amazon Macie // console. This value also determines the order in which the filter is applied to // findings, relative to other filters that are also applied to the findings. - Position *int32 + Position int32 // A map of key-value pairs that identifies the tags (keys and values) that are // associated with the filter. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_GetInvitationsCount.go b/service/macie2/api_op_GetInvitationsCount.go index f213cf8eca5..958b2e7f8a2 100644 --- a/service/macie2/api_op_GetInvitationsCount.go +++ b/service/macie2/api_op_GetInvitationsCount.go @@ -34,7 +34,7 @@ type GetInvitationsCountOutput struct { // The total number of invitations that were received by the account, not including // the currently accepted invitation. - InvitationsCount *int64 + InvitationsCount int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_GetMember.go b/service/macie2/api_op_GetMember.go index 4b89167c6d5..24acf604a11 100644 --- a/service/macie2/api_op_GetMember.go +++ b/service/macie2/api_op_GetMember.go @@ -63,7 +63,7 @@ type GetMemberOutput struct { // A map of key-value pairs that identifies the tags (keys and values) that are // associated with the member account in Amazon Macie. - Tags map[string]*string + Tags map[string]string // The date and time, in UTC and extended ISO 8601 format, of the most recent // change to the status of the relationship between the account and the master diff --git a/service/macie2/api_op_GetUsageStatistics.go b/service/macie2/api_op_GetUsageStatistics.go index 9775ae5a8be..95b967b5f6e 100644 --- a/service/macie2/api_op_GetUsageStatistics.go +++ b/service/macie2/api_op_GetUsageStatistics.go @@ -32,10 +32,10 @@ type GetUsageStatisticsInput struct { // An array of objects, one for each condition to use to filter the query results. // If the array contains more than one object, Amazon Macie uses an AND operator to // join the conditions specified by the objects. - FilterBy []*types.UsageStatisticsFilter + FilterBy []types.UsageStatisticsFilter // The maximum number of items to include in each page of the response. - MaxResults *int32 + MaxResults int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -53,7 +53,7 @@ type GetUsageStatisticsOutput struct { // An array of objects that contains the results of the query. Each object contains // the data for an account that meets the filter criteria specified in the request. - Records []*types.UsageRecord + Records []types.UsageRecord // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_GetUsageTotals.go b/service/macie2/api_op_GetUsageTotals.go index e508ba2b517..64ea30cf05c 100644 --- a/service/macie2/api_op_GetUsageTotals.go +++ b/service/macie2/api_op_GetUsageTotals.go @@ -34,7 +34,7 @@ type GetUsageTotalsOutput struct { // An array of objects that contains the results of the query. Each object contains // the data for a specific usage metric. - UsageTotals []*types.UsageTotal + UsageTotals []types.UsageTotal // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_ListClassificationJobs.go b/service/macie2/api_op_ListClassificationJobs.go index f8883d7db96..2d6fcfd22fc 100644 --- a/service/macie2/api_op_ListClassificationJobs.go +++ b/service/macie2/api_op_ListClassificationJobs.go @@ -33,7 +33,7 @@ type ListClassificationJobsInput struct { FilterCriteria *types.ListJobsFilterCriteria // The maximum number of items to include in each page of the response. - MaxResults *int32 + MaxResults int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -47,7 +47,7 @@ type ListClassificationJobsOutput struct { // An array of objects, one for each job that meets the filter criteria specified // in the request. - Items []*types.JobSummary + Items []types.JobSummary // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. diff --git a/service/macie2/api_op_ListCustomDataIdentifiers.go b/service/macie2/api_op_ListCustomDataIdentifiers.go index 98b2e302333..f8ea652b24c 100644 --- a/service/macie2/api_op_ListCustomDataIdentifiers.go +++ b/service/macie2/api_op_ListCustomDataIdentifiers.go @@ -31,7 +31,7 @@ func (c *Client) ListCustomDataIdentifiers(ctx context.Context, params *ListCust type ListCustomDataIdentifiersInput struct { // The maximum number of items to include in each page of the response. - MaxResults *int32 + MaxResults int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -41,7 +41,7 @@ type ListCustomDataIdentifiersInput struct { type ListCustomDataIdentifiersOutput struct { // An array of objects, one for each custom data identifier. - Items []*types.CustomDataIdentifierSummary + Items []types.CustomDataIdentifierSummary // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. diff --git a/service/macie2/api_op_ListFindings.go b/service/macie2/api_op_ListFindings.go index b7e0defbb21..7d45f8998ef 100644 --- a/service/macie2/api_op_ListFindings.go +++ b/service/macie2/api_op_ListFindings.go @@ -33,7 +33,7 @@ type ListFindingsInput struct { FindingCriteria *types.FindingCriteria // The maximum number of items to include in each page of the response. - MaxResults *int32 + MaxResults int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -47,7 +47,7 @@ type ListFindingsOutput struct { // An array of strings, where each string is the unique identifier for a finding // that meets the filter criteria specified in the request. - FindingIds []*string + FindingIds []string // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. diff --git a/service/macie2/api_op_ListFindingsFilters.go b/service/macie2/api_op_ListFindingsFilters.go index cc8e99fff8b..e9b6de394af 100644 --- a/service/macie2/api_op_ListFindingsFilters.go +++ b/service/macie2/api_op_ListFindingsFilters.go @@ -30,7 +30,7 @@ func (c *Client) ListFindingsFilters(ctx context.Context, params *ListFindingsFi type ListFindingsFiltersInput struct { // The maximum number of items to include in each page of a paginated response. - MaxResults *int32 + MaxResults int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -40,7 +40,7 @@ type ListFindingsFiltersInput struct { type ListFindingsFiltersOutput struct { // An array of objects, one for each filter that's associated with the account. - FindingsFilterListItems []*types.FindingsFilterListItem + FindingsFilterListItems []types.FindingsFilterListItem // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. diff --git a/service/macie2/api_op_ListInvitations.go b/service/macie2/api_op_ListInvitations.go index 2ea02fe7f9e..659724ca61a 100644 --- a/service/macie2/api_op_ListInvitations.go +++ b/service/macie2/api_op_ListInvitations.go @@ -31,7 +31,7 @@ func (c *Client) ListInvitations(ctx context.Context, params *ListInvitationsInp type ListInvitationsInput struct { // The maximum number of items to include in each page of a paginated response. - MaxResults *int32 + MaxResults int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -41,7 +41,7 @@ type ListInvitationsInput struct { type ListInvitationsOutput struct { // An array of objects, one for each invitation that was received by the account. - Invitations []*types.Invitation + Invitations []types.Invitation // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. diff --git a/service/macie2/api_op_ListMembers.go b/service/macie2/api_op_ListMembers.go index 7cc3fc4599c..0ece89090f5 100644 --- a/service/macie2/api_op_ListMembers.go +++ b/service/macie2/api_op_ListMembers.go @@ -31,7 +31,7 @@ func (c *Client) ListMembers(ctx context.Context, params *ListMembersInput, optF type ListMembersInput struct { // The maximum number of items to include in each page of a paginated response. - MaxResults *int32 + MaxResults int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -49,7 +49,7 @@ type ListMembersOutput struct { // An array of objects, one for each account that's associated with the master // account and meets the criteria specified by the onlyAssociated request // parameter. - Members []*types.Member + Members []types.Member // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. diff --git a/service/macie2/api_op_ListOrganizationAdminAccounts.go b/service/macie2/api_op_ListOrganizationAdminAccounts.go index 4a3bb9abfad..ceaf09c61ef 100644 --- a/service/macie2/api_op_ListOrganizationAdminAccounts.go +++ b/service/macie2/api_op_ListOrganizationAdminAccounts.go @@ -31,7 +31,7 @@ func (c *Client) ListOrganizationAdminAccounts(ctx context.Context, params *List type ListOrganizationAdminAccountsInput struct { // The maximum number of items to include in each page of a paginated response. - MaxResults *int32 + MaxResults int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -42,7 +42,7 @@ type ListOrganizationAdminAccountsOutput struct { // An array of objects, one for each delegated Amazon Macie administrator account // for the organization. Only one of these accounts can have a status of ENABLED. - AdminAccounts []*types.AdminAccount + AdminAccounts []types.AdminAccount // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. diff --git a/service/macie2/api_op_ListTagsForResource.go b/service/macie2/api_op_ListTagsForResource.go index 9d5c0c27e6b..6aca66bdb84 100644 --- a/service/macie2/api_op_ListTagsForResource.go +++ b/service/macie2/api_op_ListTagsForResource.go @@ -40,7 +40,7 @@ type ListTagsForResourceOutput struct { // A map of key-value pairs that identifies the tags (keys and values) that are // associated with the resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_TagResource.go b/service/macie2/api_op_TagResource.go index c984ea07ddd..8c5427757f8 100644 --- a/service/macie2/api_op_TagResource.go +++ b/service/macie2/api_op_TagResource.go @@ -41,7 +41,7 @@ type TagResourceInput struct { // maximum length of a tag value is 256 characters. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/macie2/api_op_TestCustomDataIdentifier.go b/service/macie2/api_op_TestCustomDataIdentifier.go index 3f7061bd9c6..c22c84e62c4 100644 --- a/service/macie2/api_op_TestCustomDataIdentifier.go +++ b/service/macie2/api_op_TestCustomDataIdentifier.go @@ -45,27 +45,27 @@ type TestCustomDataIdentifierInput struct { // string in this array, Amazon Macie ignores it. The array can contain as many as // 10 ignore words. Each ignore word can contain 4 - 90 characters. Ignore words // are case sensitive. - IgnoreWords []*string + IgnoreWords []string // An array that lists specific character sequences (keywords), one of which must // be within proximity (maximumMatchDistance) of the regular expression to match. // The array can contain as many as 50 keywords. Each keyword can contain 4 - 90 // characters. Keywords aren't case sensitive. - Keywords []*string + Keywords []string // The maximum number of characters that can exist between text that matches the // regex pattern and the character sequences specified by the keywords array. Macie // includes or excludes a result based on the proximity of a keyword to text that // matches the regex pattern. The distance can be 1 - 300 characters. The default // value is 50. - MaximumMatchDistance *int32 + MaximumMatchDistance int32 } type TestCustomDataIdentifierOutput struct { // The number of instances of sample text that matched the detection criteria // specified in the custom data identifier. - MatchCount *int32 + MatchCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_UntagResource.go b/service/macie2/api_op_UntagResource.go index 2adfc57ac9e..f0732bb4699 100644 --- a/service/macie2/api_op_UntagResource.go +++ b/service/macie2/api_op_UntagResource.go @@ -40,7 +40,7 @@ type UntagResourceInput struct { // by an ampersand (&). // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/macie2/api_op_UpdateFindingsFilter.go b/service/macie2/api_op_UpdateFindingsFilter.go index 6d487c9cfc5..e3bdf845074 100644 --- a/service/macie2/api_op_UpdateFindingsFilter.go +++ b/service/macie2/api_op_UpdateFindingsFilter.go @@ -60,7 +60,7 @@ type UpdateFindingsFilterInput struct { // The position of the filter in the list of saved filters on the Amazon Macie // console. This value also determines the order in which the filter is applied to // findings, relative to other filters that are also applied to the findings. - Position *int32 + Position int32 } type UpdateFindingsFilterOutput struct { diff --git a/service/macie2/api_op_UpdateOrganizationConfiguration.go b/service/macie2/api_op_UpdateOrganizationConfiguration.go index 4c3ca6e442f..d02484f620d 100644 --- a/service/macie2/api_op_UpdateOrganizationConfiguration.go +++ b/service/macie2/api_op_UpdateOrganizationConfiguration.go @@ -32,7 +32,7 @@ type UpdateOrganizationConfigurationInput struct { // the account is added to the AWS organization. // // This member is required. - AutoEnable *bool + AutoEnable bool } type UpdateOrganizationConfigurationOutput struct { diff --git a/service/macie2/deserializers.go b/service/macie2/deserializers.go index 72a94049de1..e2d3ef01c8b 100644 --- a/service/macie2/deserializers.go +++ b/service/macie2/deserializers.go @@ -447,7 +447,7 @@ func awsRestjson1_deserializeOpDocumentCreateClassificationJobOutput(v **CreateC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JobArn = &jtv + sv.JobArn = ptr.String(jtv) } case "jobId": @@ -456,7 +456,7 @@ func awsRestjson1_deserializeOpDocumentCreateClassificationJobOutput(v **CreateC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -625,7 +625,7 @@ func awsRestjson1_deserializeOpDocumentCreateCustomDataIdentifierOutput(v **Crea if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CustomDataIdentifierId = &jtv + sv.CustomDataIdentifierId = ptr.String(jtv) } default: @@ -794,7 +794,7 @@ func awsRestjson1_deserializeOpDocumentCreateFindingsFilterOutput(v **CreateFind if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "id": @@ -803,7 +803,7 @@ func awsRestjson1_deserializeOpDocumentCreateFindingsFilterOutput(v **CreateFind if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -1137,7 +1137,7 @@ func awsRestjson1_deserializeOpDocumentCreateMemberOutput(v **CreateMemberOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -2045,7 +2045,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBucketsOutput(v **DescribeBuckets if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2214,7 +2214,7 @@ func awsRestjson1_deserializeOpDocumentDescribeClassificationJobOutput(v **Descr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "createdAt": @@ -2227,7 +2227,7 @@ func awsRestjson1_deserializeOpDocumentDescribeClassificationJobOutput(v **Descr if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "customDataIdentifierIds": @@ -2241,7 +2241,7 @@ func awsRestjson1_deserializeOpDocumentDescribeClassificationJobOutput(v **Descr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "initialRun": @@ -2250,7 +2250,7 @@ func awsRestjson1_deserializeOpDocumentDescribeClassificationJobOutput(v **Descr if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.InitialRun = &jtv + sv.InitialRun = jtv } case "jobArn": @@ -2259,7 +2259,7 @@ func awsRestjson1_deserializeOpDocumentDescribeClassificationJobOutput(v **Descr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JobArn = &jtv + sv.JobArn = ptr.String(jtv) } case "jobId": @@ -2268,7 +2268,7 @@ func awsRestjson1_deserializeOpDocumentDescribeClassificationJobOutput(v **Descr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "jobStatus": @@ -2299,7 +2299,7 @@ func awsRestjson1_deserializeOpDocumentDescribeClassificationJobOutput(v **Descr if err != nil { return err } - sv.LastRunTime = &t + sv.LastRunTime = ptr.Time(t) } case "name": @@ -2308,7 +2308,7 @@ func awsRestjson1_deserializeOpDocumentDescribeClassificationJobOutput(v **Descr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "s3JobDefinition": @@ -2326,7 +2326,7 @@ func awsRestjson1_deserializeOpDocumentDescribeClassificationJobOutput(v **Descr if err != nil { return err } - sv.SamplingPercentage = ptr.Int32(int32(i64)) + sv.SamplingPercentage = int32(i64) } case "scheduleFrequency": @@ -2515,7 +2515,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(v if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoEnable = &jtv + sv.AutoEnable = jtv } case "maxAccountLimitReached": @@ -2524,7 +2524,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(v if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.MaxAccountLimitReached = &jtv + sv.MaxAccountLimitReached = jtv } default: @@ -3303,7 +3303,7 @@ func awsRestjson1_deserializeOpDocumentGetBucketStatisticsOutput(v **GetBucketSt if err != nil { return err } - sv.BucketCount = &i64 + sv.BucketCount = i64 } case "bucketCountByEffectivePermission": @@ -3331,7 +3331,7 @@ func awsRestjson1_deserializeOpDocumentGetBucketStatisticsOutput(v **GetBucketSt if err != nil { return err } - sv.ClassifiableObjectCount = &i64 + sv.ClassifiableObjectCount = i64 } case "classifiableSizeInBytes": @@ -3344,7 +3344,7 @@ func awsRestjson1_deserializeOpDocumentGetBucketStatisticsOutput(v **GetBucketSt if err != nil { return err } - sv.ClassifiableSizeInBytes = &i64 + sv.ClassifiableSizeInBytes = i64 } case "lastUpdated": @@ -3357,7 +3357,7 @@ func awsRestjson1_deserializeOpDocumentGetBucketStatisticsOutput(v **GetBucketSt if err != nil { return err } - sv.LastUpdated = &t + sv.LastUpdated = ptr.Time(t) } case "objectCount": @@ -3370,7 +3370,7 @@ func awsRestjson1_deserializeOpDocumentGetBucketStatisticsOutput(v **GetBucketSt if err != nil { return err } - sv.ObjectCount = &i64 + sv.ObjectCount = i64 } case "sizeInBytes": @@ -3383,7 +3383,7 @@ func awsRestjson1_deserializeOpDocumentGetBucketStatisticsOutput(v **GetBucketSt if err != nil { return err } - sv.SizeInBytes = &i64 + sv.SizeInBytes = i64 } case "sizeInBytesCompressed": @@ -3396,7 +3396,7 @@ func awsRestjson1_deserializeOpDocumentGetBucketStatisticsOutput(v **GetBucketSt if err != nil { return err } - sv.SizeInBytesCompressed = &i64 + sv.SizeInBytesCompressed = i64 } case "unclassifiableObjectCount": @@ -3740,7 +3740,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomDataIdentifierOutput(v **GetCust if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -3753,7 +3753,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomDataIdentifierOutput(v **GetCust if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "deleted": @@ -3762,7 +3762,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomDataIdentifierOutput(v **GetCust if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Deleted = &jtv + sv.Deleted = jtv } case "description": @@ -3771,7 +3771,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomDataIdentifierOutput(v **GetCust if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -3780,7 +3780,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomDataIdentifierOutput(v **GetCust if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ignoreWords": @@ -3803,7 +3803,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomDataIdentifierOutput(v **GetCust if err != nil { return err } - sv.MaximumMatchDistance = ptr.Int32(int32(i64)) + sv.MaximumMatchDistance = int32(i64) } case "name": @@ -3812,7 +3812,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomDataIdentifierOutput(v **GetCust if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "regex": @@ -3821,7 +3821,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomDataIdentifierOutput(v **GetCust if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Regex = &jtv + sv.Regex = ptr.String(jtv) } case "tags": @@ -4169,7 +4169,7 @@ func awsRestjson1_deserializeOpDocumentGetFindingsFilterOutput(v **GetFindingsFi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -4178,7 +4178,7 @@ func awsRestjson1_deserializeOpDocumentGetFindingsFilterOutput(v **GetFindingsFi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "findingCriteria": @@ -4192,7 +4192,7 @@ func awsRestjson1_deserializeOpDocumentGetFindingsFilterOutput(v **GetFindingsFi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -4201,7 +4201,7 @@ func awsRestjson1_deserializeOpDocumentGetFindingsFilterOutput(v **GetFindingsFi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "position": @@ -4214,7 +4214,7 @@ func awsRestjson1_deserializeOpDocumentGetFindingsFilterOutput(v **GetFindingsFi if err != nil { return err } - sv.Position = ptr.Int32(int32(i64)) + sv.Position = int32(i64) } case "tags": @@ -4557,7 +4557,7 @@ func awsRestjson1_deserializeOpDocumentGetInvitationsCountOutput(v **GetInvitati if err != nil { return err } - sv.InvitationsCount = &i64 + sv.InvitationsCount = i64 } default: @@ -4730,7 +4730,7 @@ func awsRestjson1_deserializeOpDocumentGetMacieSessionOutput(v **GetMacieSession if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "findingPublishingFrequency": @@ -4748,7 +4748,7 @@ func awsRestjson1_deserializeOpDocumentGetMacieSessionOutput(v **GetMacieSession if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } case "status": @@ -4770,7 +4770,7 @@ func awsRestjson1_deserializeOpDocumentGetMacieSessionOutput(v **GetMacieSession if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -5104,7 +5104,7 @@ func awsRestjson1_deserializeOpDocumentGetMemberOutput(v **GetMemberOutput, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "arn": @@ -5113,7 +5113,7 @@ func awsRestjson1_deserializeOpDocumentGetMemberOutput(v **GetMemberOutput, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "email": @@ -5122,7 +5122,7 @@ func awsRestjson1_deserializeOpDocumentGetMemberOutput(v **GetMemberOutput, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "invitedAt": @@ -5135,7 +5135,7 @@ func awsRestjson1_deserializeOpDocumentGetMemberOutput(v **GetMemberOutput, valu if err != nil { return err } - sv.InvitedAt = &t + sv.InvitedAt = ptr.Time(t) } case "masterAccountId": @@ -5144,7 +5144,7 @@ func awsRestjson1_deserializeOpDocumentGetMemberOutput(v **GetMemberOutput, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MasterAccountId = &jtv + sv.MasterAccountId = ptr.String(jtv) } case "relationshipStatus": @@ -5171,7 +5171,7 @@ func awsRestjson1_deserializeOpDocumentGetMemberOutput(v **GetMemberOutput, valu if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -5340,7 +5340,7 @@ func awsRestjson1_deserializeOpDocumentGetUsageStatisticsOutput(v **GetUsageStat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "records": @@ -5684,7 +5684,7 @@ func awsRestjson1_deserializeOpDocumentListClassificationJobsOutput(v **ListClas if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5858,7 +5858,7 @@ func awsRestjson1_deserializeOpDocumentListCustomDataIdentifiersOutput(v **ListC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6032,7 +6032,7 @@ func awsRestjson1_deserializeOpDocumentListFindingsOutput(v **ListFindingsOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6206,7 +6206,7 @@ func awsRestjson1_deserializeOpDocumentListFindingsFiltersOutput(v **ListFinding if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6380,7 +6380,7 @@ func awsRestjson1_deserializeOpDocumentListInvitationsOutput(v **ListInvitations if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6554,7 +6554,7 @@ func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6728,7 +6728,7 @@ func awsRestjson1_deserializeOpDocumentListOrganizationAdminAccountsOutput(v **L if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7290,7 +7290,7 @@ func awsRestjson1_deserializeOpDocumentTestCustomDataIdentifierOutput(v **TestCu if err != nil { return err } - sv.MatchCount = ptr.Int32(int32(i64)) + sv.MatchCount = int32(i64) } default: @@ -7640,7 +7640,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFindingsFilterOutput(v **UpdateFind if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "id": @@ -7649,7 +7649,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFindingsFilterOutput(v **UpdateFind if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -8216,7 +8216,7 @@ func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Respo return output } -func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8229,21 +8229,21 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -8252,7 +8252,7 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return nil } -func awsRestjson1_deserializeDocument__listOfAdminAccount(v *[]*types.AdminAccount, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfAdminAccount(v *[]types.AdminAccount, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8265,18 +8265,20 @@ func awsRestjson1_deserializeDocument__listOfAdminAccount(v *[]*types.AdminAccou return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AdminAccount + var cv []types.AdminAccount if *v == nil { - cv = []*types.AdminAccount{} + cv = []types.AdminAccount{} } else { cv = *v } for _, value := range shape { - var col *types.AdminAccount - if err := awsRestjson1_deserializeDocumentAdminAccount(&col, value); err != nil { + var col types.AdminAccount + destAddr := &col + if err := awsRestjson1_deserializeDocumentAdminAccount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8284,7 +8286,7 @@ func awsRestjson1_deserializeDocument__listOfAdminAccount(v *[]*types.AdminAccou return nil } -func awsRestjson1_deserializeDocument__listOfBatchGetCustomDataIdentifierSummary(v *[]*types.BatchGetCustomDataIdentifierSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfBatchGetCustomDataIdentifierSummary(v *[]types.BatchGetCustomDataIdentifierSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8297,18 +8299,20 @@ func awsRestjson1_deserializeDocument__listOfBatchGetCustomDataIdentifierSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchGetCustomDataIdentifierSummary + var cv []types.BatchGetCustomDataIdentifierSummary if *v == nil { - cv = []*types.BatchGetCustomDataIdentifierSummary{} + cv = []types.BatchGetCustomDataIdentifierSummary{} } else { cv = *v } for _, value := range shape { - var col *types.BatchGetCustomDataIdentifierSummary - if err := awsRestjson1_deserializeDocumentBatchGetCustomDataIdentifierSummary(&col, value); err != nil { + var col types.BatchGetCustomDataIdentifierSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchGetCustomDataIdentifierSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8316,7 +8320,7 @@ func awsRestjson1_deserializeDocument__listOfBatchGetCustomDataIdentifierSummary return nil } -func awsRestjson1_deserializeDocument__listOfBucketMetadata(v *[]*types.BucketMetadata, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfBucketMetadata(v *[]types.BucketMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8329,18 +8333,20 @@ func awsRestjson1_deserializeDocument__listOfBucketMetadata(v *[]*types.BucketMe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BucketMetadata + var cv []types.BucketMetadata if *v == nil { - cv = []*types.BucketMetadata{} + cv = []types.BucketMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.BucketMetadata - if err := awsRestjson1_deserializeDocumentBucketMetadata(&col, value); err != nil { + var col types.BucketMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentBucketMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8348,7 +8354,7 @@ func awsRestjson1_deserializeDocument__listOfBucketMetadata(v *[]*types.BucketMe return nil } -func awsRestjson1_deserializeDocument__listOfCustomDataIdentifierSummary(v *[]*types.CustomDataIdentifierSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfCustomDataIdentifierSummary(v *[]types.CustomDataIdentifierSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8361,18 +8367,20 @@ func awsRestjson1_deserializeDocument__listOfCustomDataIdentifierSummary(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CustomDataIdentifierSummary + var cv []types.CustomDataIdentifierSummary if *v == nil { - cv = []*types.CustomDataIdentifierSummary{} + cv = []types.CustomDataIdentifierSummary{} } else { cv = *v } for _, value := range shape { - var col *types.CustomDataIdentifierSummary - if err := awsRestjson1_deserializeDocumentCustomDataIdentifierSummary(&col, value); err != nil { + var col types.CustomDataIdentifierSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentCustomDataIdentifierSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8380,7 +8388,7 @@ func awsRestjson1_deserializeDocument__listOfCustomDataIdentifierSummary(v *[]*t return nil } -func awsRestjson1_deserializeDocument__listOfFinding(v *[]*types.Finding, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfFinding(v *[]types.Finding, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8393,18 +8401,20 @@ func awsRestjson1_deserializeDocument__listOfFinding(v *[]*types.Finding, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Finding + var cv []types.Finding if *v == nil { - cv = []*types.Finding{} + cv = []types.Finding{} } else { cv = *v } for _, value := range shape { - var col *types.Finding - if err := awsRestjson1_deserializeDocumentFinding(&col, value); err != nil { + var col types.Finding + destAddr := &col + if err := awsRestjson1_deserializeDocumentFinding(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8412,7 +8422,7 @@ func awsRestjson1_deserializeDocument__listOfFinding(v *[]*types.Finding, value return nil } -func awsRestjson1_deserializeDocument__listOfFindingsFilterListItem(v *[]*types.FindingsFilterListItem, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfFindingsFilterListItem(v *[]types.FindingsFilterListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8425,18 +8435,20 @@ func awsRestjson1_deserializeDocument__listOfFindingsFilterListItem(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FindingsFilterListItem + var cv []types.FindingsFilterListItem if *v == nil { - cv = []*types.FindingsFilterListItem{} + cv = []types.FindingsFilterListItem{} } else { cv = *v } for _, value := range shape { - var col *types.FindingsFilterListItem - if err := awsRestjson1_deserializeDocumentFindingsFilterListItem(&col, value); err != nil { + var col types.FindingsFilterListItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentFindingsFilterListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8444,7 +8456,7 @@ func awsRestjson1_deserializeDocument__listOfFindingsFilterListItem(v *[]*types. return nil } -func awsRestjson1_deserializeDocument__listOfGroupCount(v *[]*types.GroupCount, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfGroupCount(v *[]types.GroupCount, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8457,18 +8469,20 @@ func awsRestjson1_deserializeDocument__listOfGroupCount(v *[]*types.GroupCount, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupCount + var cv []types.GroupCount if *v == nil { - cv = []*types.GroupCount{} + cv = []types.GroupCount{} } else { cv = *v } for _, value := range shape { - var col *types.GroupCount - if err := awsRestjson1_deserializeDocumentGroupCount(&col, value); err != nil { + var col types.GroupCount + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroupCount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8476,7 +8490,7 @@ func awsRestjson1_deserializeDocument__listOfGroupCount(v *[]*types.GroupCount, return nil } -func awsRestjson1_deserializeDocument__listOfInvitation(v *[]*types.Invitation, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInvitation(v *[]types.Invitation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8489,18 +8503,20 @@ func awsRestjson1_deserializeDocument__listOfInvitation(v *[]*types.Invitation, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Invitation + var cv []types.Invitation if *v == nil { - cv = []*types.Invitation{} + cv = []types.Invitation{} } else { cv = *v } for _, value := range shape { - var col *types.Invitation - if err := awsRestjson1_deserializeDocumentInvitation(&col, value); err != nil { + var col types.Invitation + destAddr := &col + if err := awsRestjson1_deserializeDocumentInvitation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8508,7 +8524,7 @@ func awsRestjson1_deserializeDocument__listOfInvitation(v *[]*types.Invitation, return nil } -func awsRestjson1_deserializeDocument__listOfJobScopeTerm(v *[]*types.JobScopeTerm, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfJobScopeTerm(v *[]types.JobScopeTerm, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8521,18 +8537,20 @@ func awsRestjson1_deserializeDocument__listOfJobScopeTerm(v *[]*types.JobScopeTe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobScopeTerm + var cv []types.JobScopeTerm if *v == nil { - cv = []*types.JobScopeTerm{} + cv = []types.JobScopeTerm{} } else { cv = *v } for _, value := range shape { - var col *types.JobScopeTerm - if err := awsRestjson1_deserializeDocumentJobScopeTerm(&col, value); err != nil { + var col types.JobScopeTerm + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobScopeTerm(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8540,7 +8558,7 @@ func awsRestjson1_deserializeDocument__listOfJobScopeTerm(v *[]*types.JobScopeTe return nil } -func awsRestjson1_deserializeDocument__listOfJobSummary(v *[]*types.JobSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfJobSummary(v *[]types.JobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8553,18 +8571,20 @@ func awsRestjson1_deserializeDocument__listOfJobSummary(v *[]*types.JobSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobSummary + var cv []types.JobSummary if *v == nil { - cv = []*types.JobSummary{} + cv = []types.JobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.JobSummary - if err := awsRestjson1_deserializeDocumentJobSummary(&col, value); err != nil { + var col types.JobSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8572,7 +8592,7 @@ func awsRestjson1_deserializeDocument__listOfJobSummary(v *[]*types.JobSummary, return nil } -func awsRestjson1_deserializeDocument__listOfKeyValuePair(v *[]*types.KeyValuePair, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfKeyValuePair(v *[]types.KeyValuePair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8585,18 +8605,20 @@ func awsRestjson1_deserializeDocument__listOfKeyValuePair(v *[]*types.KeyValuePa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyValuePair + var cv []types.KeyValuePair if *v == nil { - cv = []*types.KeyValuePair{} + cv = []types.KeyValuePair{} } else { cv = *v } for _, value := range shape { - var col *types.KeyValuePair - if err := awsRestjson1_deserializeDocumentKeyValuePair(&col, value); err != nil { + var col types.KeyValuePair + destAddr := &col + if err := awsRestjson1_deserializeDocumentKeyValuePair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8604,7 +8626,7 @@ func awsRestjson1_deserializeDocument__listOfKeyValuePair(v *[]*types.KeyValuePa return nil } -func awsRestjson1_deserializeDocument__listOfMember(v *[]*types.Member, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfMember(v *[]types.Member, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8617,18 +8639,20 @@ func awsRestjson1_deserializeDocument__listOfMember(v *[]*types.Member, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Member + var cv []types.Member if *v == nil { - cv = []*types.Member{} + cv = []types.Member{} } else { cv = *v } for _, value := range shape { - var col *types.Member - if err := awsRestjson1_deserializeDocumentMember(&col, value); err != nil { + var col types.Member + destAddr := &col + if err := awsRestjson1_deserializeDocumentMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8636,7 +8660,7 @@ func awsRestjson1_deserializeDocument__listOfMember(v *[]*types.Member, value in return nil } -func awsRestjson1_deserializeDocument__listOfS3BucketDefinitionForJob(v *[]*types.S3BucketDefinitionForJob, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfS3BucketDefinitionForJob(v *[]types.S3BucketDefinitionForJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8649,18 +8673,20 @@ func awsRestjson1_deserializeDocument__listOfS3BucketDefinitionForJob(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.S3BucketDefinitionForJob + var cv []types.S3BucketDefinitionForJob if *v == nil { - cv = []*types.S3BucketDefinitionForJob{} + cv = []types.S3BucketDefinitionForJob{} } else { cv = *v } for _, value := range shape { - var col *types.S3BucketDefinitionForJob - if err := awsRestjson1_deserializeDocumentS3BucketDefinitionForJob(&col, value); err != nil { + var col types.S3BucketDefinitionForJob + destAddr := &col + if err := awsRestjson1_deserializeDocumentS3BucketDefinitionForJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8668,7 +8694,7 @@ func awsRestjson1_deserializeDocument__listOfS3BucketDefinitionForJob(v *[]*type return nil } -func awsRestjson1_deserializeDocument__listOfTagValuePair(v *[]*types.TagValuePair, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfTagValuePair(v *[]types.TagValuePair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8681,18 +8707,20 @@ func awsRestjson1_deserializeDocument__listOfTagValuePair(v *[]*types.TagValuePa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TagValuePair + var cv []types.TagValuePair if *v == nil { - cv = []*types.TagValuePair{} + cv = []types.TagValuePair{} } else { cv = *v } for _, value := range shape { - var col *types.TagValuePair - if err := awsRestjson1_deserializeDocumentTagValuePair(&col, value); err != nil { + var col types.TagValuePair + destAddr := &col + if err := awsRestjson1_deserializeDocumentTagValuePair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8700,7 +8728,7 @@ func awsRestjson1_deserializeDocument__listOfTagValuePair(v *[]*types.TagValuePa return nil } -func awsRestjson1_deserializeDocument__listOfUnprocessedAccount(v *[]*types.UnprocessedAccount, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfUnprocessedAccount(v *[]types.UnprocessedAccount, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8713,18 +8741,20 @@ func awsRestjson1_deserializeDocument__listOfUnprocessedAccount(v *[]*types.Unpr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UnprocessedAccount + var cv []types.UnprocessedAccount if *v == nil { - cv = []*types.UnprocessedAccount{} + cv = []types.UnprocessedAccount{} } else { cv = *v } for _, value := range shape { - var col *types.UnprocessedAccount - if err := awsRestjson1_deserializeDocumentUnprocessedAccount(&col, value); err != nil { + var col types.UnprocessedAccount + destAddr := &col + if err := awsRestjson1_deserializeDocumentUnprocessedAccount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8732,7 +8762,7 @@ func awsRestjson1_deserializeDocument__listOfUnprocessedAccount(v *[]*types.Unpr return nil } -func awsRestjson1_deserializeDocument__listOfUsageByAccount(v *[]*types.UsageByAccount, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfUsageByAccount(v *[]types.UsageByAccount, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8745,18 +8775,20 @@ func awsRestjson1_deserializeDocument__listOfUsageByAccount(v *[]*types.UsageByA return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UsageByAccount + var cv []types.UsageByAccount if *v == nil { - cv = []*types.UsageByAccount{} + cv = []types.UsageByAccount{} } else { cv = *v } for _, value := range shape { - var col *types.UsageByAccount - if err := awsRestjson1_deserializeDocumentUsageByAccount(&col, value); err != nil { + var col types.UsageByAccount + destAddr := &col + if err := awsRestjson1_deserializeDocumentUsageByAccount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8764,7 +8796,7 @@ func awsRestjson1_deserializeDocument__listOfUsageByAccount(v *[]*types.UsageByA return nil } -func awsRestjson1_deserializeDocument__listOfUsageRecord(v *[]*types.UsageRecord, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfUsageRecord(v *[]types.UsageRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8777,18 +8809,20 @@ func awsRestjson1_deserializeDocument__listOfUsageRecord(v *[]*types.UsageRecord return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UsageRecord + var cv []types.UsageRecord if *v == nil { - cv = []*types.UsageRecord{} + cv = []types.UsageRecord{} } else { cv = *v } for _, value := range shape { - var col *types.UsageRecord - if err := awsRestjson1_deserializeDocumentUsageRecord(&col, value); err != nil { + var col types.UsageRecord + destAddr := &col + if err := awsRestjson1_deserializeDocumentUsageRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8796,7 +8830,7 @@ func awsRestjson1_deserializeDocument__listOfUsageRecord(v *[]*types.UsageRecord return nil } -func awsRestjson1_deserializeDocument__listOfUsageTotal(v *[]*types.UsageTotal, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfUsageTotal(v *[]types.UsageTotal, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8809,18 +8843,20 @@ func awsRestjson1_deserializeDocument__listOfUsageTotal(v *[]*types.UsageTotal, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UsageTotal + var cv []types.UsageTotal if *v == nil { - cv = []*types.UsageTotal{} + cv = []types.UsageTotal{} } else { cv = *v } for _, value := range shape { - var col *types.UsageTotal - if err := awsRestjson1_deserializeDocumentUsageTotal(&col, value); err != nil { + var col types.UsageTotal + destAddr := &col + if err := awsRestjson1_deserializeDocumentUsageTotal(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8856,7 +8892,7 @@ func awsRestjson1_deserializeDocumentAccessControlList(v **types.AccessControlLi if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AllowsPublicReadAccess = &jtv + sv.AllowsPublicReadAccess = jtv } case "allowsPublicWriteAccess": @@ -8865,7 +8901,7 @@ func awsRestjson1_deserializeDocumentAccessControlList(v **types.AccessControlLi if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AllowsPublicWriteAccess = &jtv + sv.AllowsPublicWriteAccess = jtv } default: @@ -8905,7 +8941,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8981,7 +9017,7 @@ func awsRestjson1_deserializeDocumentAdminAccount(v **types.AdminAccount, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "status": @@ -9030,7 +9066,7 @@ func awsRestjson1_deserializeDocumentApiCallDetails(v **types.ApiCallDetails, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Api = &jtv + sv.Api = ptr.String(jtv) } case "apiServiceName": @@ -9039,7 +9075,7 @@ func awsRestjson1_deserializeDocumentApiCallDetails(v **types.ApiCallDetails, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApiServiceName = &jtv + sv.ApiServiceName = ptr.String(jtv) } case "firstSeen": @@ -9052,7 +9088,7 @@ func awsRestjson1_deserializeDocumentApiCallDetails(v **types.ApiCallDetails, va if err != nil { return err } - sv.FirstSeen = &t + sv.FirstSeen = ptr.Time(t) } case "lastSeen": @@ -9065,7 +9101,7 @@ func awsRestjson1_deserializeDocumentApiCallDetails(v **types.ApiCallDetails, va if err != nil { return err } - sv.LastSeen = &t + sv.LastSeen = ptr.Time(t) } default: @@ -9105,7 +9141,7 @@ func awsRestjson1_deserializeDocumentAssumedRole(v **types.AssumedRole, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccessKeyId = &jtv + sv.AccessKeyId = ptr.String(jtv) } case "accountId": @@ -9114,7 +9150,7 @@ func awsRestjson1_deserializeDocumentAssumedRole(v **types.AssumedRole, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "arn": @@ -9123,7 +9159,7 @@ func awsRestjson1_deserializeDocumentAssumedRole(v **types.AssumedRole, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "principalId": @@ -9132,7 +9168,7 @@ func awsRestjson1_deserializeDocumentAssumedRole(v **types.AssumedRole, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } case "sessionContext": @@ -9177,7 +9213,7 @@ func awsRestjson1_deserializeDocumentAwsAccount(v **types.AwsAccount, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "principalId": @@ -9186,7 +9222,7 @@ func awsRestjson1_deserializeDocumentAwsAccount(v **types.AwsAccount, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } default: @@ -9226,7 +9262,7 @@ func awsRestjson1_deserializeDocumentAwsService(v **types.AwsService, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InvokedBy = &jtv + sv.InvokedBy = ptr.String(jtv) } default: @@ -9266,7 +9302,7 @@ func awsRestjson1_deserializeDocumentBatchGetCustomDataIdentifierSummary(v **typ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -9279,7 +9315,7 @@ func awsRestjson1_deserializeDocumentBatchGetCustomDataIdentifierSummary(v **typ if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "deleted": @@ -9288,7 +9324,7 @@ func awsRestjson1_deserializeDocumentBatchGetCustomDataIdentifierSummary(v **typ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Deleted = &jtv + sv.Deleted = jtv } case "description": @@ -9297,7 +9333,7 @@ func awsRestjson1_deserializeDocumentBatchGetCustomDataIdentifierSummary(v **typ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -9306,7 +9342,7 @@ func awsRestjson1_deserializeDocumentBatchGetCustomDataIdentifierSummary(v **typ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -9315,7 +9351,7 @@ func awsRestjson1_deserializeDocumentBatchGetCustomDataIdentifierSummary(v **typ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -9355,7 +9391,7 @@ func awsRestjson1_deserializeDocumentBlockPublicAccess(v **types.BlockPublicAcce if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.BlockPublicAcls = &jtv + sv.BlockPublicAcls = jtv } case "blockPublicPolicy": @@ -9364,7 +9400,7 @@ func awsRestjson1_deserializeDocumentBlockPublicAccess(v **types.BlockPublicAcce if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.BlockPublicPolicy = &jtv + sv.BlockPublicPolicy = jtv } case "ignorePublicAcls": @@ -9373,7 +9409,7 @@ func awsRestjson1_deserializeDocumentBlockPublicAccess(v **types.BlockPublicAcce if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IgnorePublicAcls = &jtv + sv.IgnorePublicAcls = jtv } case "restrictPublicBuckets": @@ -9382,7 +9418,7 @@ func awsRestjson1_deserializeDocumentBlockPublicAccess(v **types.BlockPublicAcce if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.RestrictPublicBuckets = &jtv + sv.RestrictPublicBuckets = jtv } default: @@ -9426,7 +9462,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEffectivePermission(v **types. if err != nil { return err } - sv.PubliclyAccessible = &i64 + sv.PubliclyAccessible = i64 } case "publiclyReadable": @@ -9439,7 +9475,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEffectivePermission(v **types. if err != nil { return err } - sv.PubliclyReadable = &i64 + sv.PubliclyReadable = i64 } case "publiclyWritable": @@ -9452,7 +9488,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEffectivePermission(v **types. if err != nil { return err } - sv.PubliclyWritable = &i64 + sv.PubliclyWritable = i64 } case "unknown": @@ -9465,7 +9501,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEffectivePermission(v **types. if err != nil { return err } - sv.Unknown = &i64 + sv.Unknown = i64 } default: @@ -9509,7 +9545,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEncryptionType(v **types.Bucke if err != nil { return err } - sv.KmsManaged = &i64 + sv.KmsManaged = i64 } case "s3Managed": @@ -9522,7 +9558,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEncryptionType(v **types.Bucke if err != nil { return err } - sv.S3Managed = &i64 + sv.S3Managed = i64 } case "unencrypted": @@ -9535,7 +9571,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEncryptionType(v **types.Bucke if err != nil { return err } - sv.Unencrypted = &i64 + sv.Unencrypted = i64 } default: @@ -9579,7 +9615,7 @@ func awsRestjson1_deserializeDocumentBucketCountBySharedAccessType(v **types.Buc if err != nil { return err } - sv.External = &i64 + sv.External = i64 } case "internal": @@ -9592,7 +9628,7 @@ func awsRestjson1_deserializeDocumentBucketCountBySharedAccessType(v **types.Buc if err != nil { return err } - sv.Internal = &i64 + sv.Internal = i64 } case "notShared": @@ -9605,7 +9641,7 @@ func awsRestjson1_deserializeDocumentBucketCountBySharedAccessType(v **types.Buc if err != nil { return err } - sv.NotShared = &i64 + sv.NotShared = i64 } case "unknown": @@ -9618,7 +9654,7 @@ func awsRestjson1_deserializeDocumentBucketCountBySharedAccessType(v **types.Buc if err != nil { return err } - sv.Unknown = &i64 + sv.Unknown = i64 } default: @@ -9704,7 +9740,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "bucketArn": @@ -9713,7 +9749,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BucketArn = &jtv + sv.BucketArn = ptr.String(jtv) } case "bucketCreatedAt": @@ -9726,7 +9762,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if err != nil { return err } - sv.BucketCreatedAt = &t + sv.BucketCreatedAt = ptr.Time(t) } case "bucketName": @@ -9735,7 +9771,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "classifiableObjectCount": @@ -9748,7 +9784,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if err != nil { return err } - sv.ClassifiableObjectCount = &i64 + sv.ClassifiableObjectCount = i64 } case "classifiableSizeInBytes": @@ -9761,7 +9797,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if err != nil { return err } - sv.ClassifiableSizeInBytes = &i64 + sv.ClassifiableSizeInBytes = i64 } case "lastUpdated": @@ -9774,7 +9810,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if err != nil { return err } - sv.LastUpdated = &t + sv.LastUpdated = ptr.Time(t) } case "objectCount": @@ -9787,7 +9823,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if err != nil { return err } - sv.ObjectCount = &i64 + sv.ObjectCount = i64 } case "objectCountByEncryptionType": @@ -9806,7 +9842,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "replicationDetails": @@ -9833,7 +9869,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if err != nil { return err } - sv.SizeInBytes = &i64 + sv.SizeInBytes = i64 } case "sizeInBytesCompressed": @@ -9846,7 +9882,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if err != nil { return err } - sv.SizeInBytesCompressed = &i64 + sv.SizeInBytesCompressed = i64 } case "tags": @@ -9870,7 +9906,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Versioning = &jtv + sv.Versioning = jtv } default: @@ -9951,7 +9987,7 @@ func awsRestjson1_deserializeDocumentBucketPolicy(v **types.BucketPolicy, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AllowsPublicReadAccess = &jtv + sv.AllowsPublicReadAccess = jtv } case "allowsPublicWriteAccess": @@ -9960,7 +9996,7 @@ func awsRestjson1_deserializeDocumentBucketPolicy(v **types.BucketPolicy, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AllowsPublicWriteAccess = &jtv + sv.AllowsPublicWriteAccess = jtv } default: @@ -10045,7 +10081,7 @@ func awsRestjson1_deserializeDocumentCell(v **types.Cell, value interface{}) err if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CellReference = &jtv + sv.CellReference = ptr.String(jtv) } case "column": @@ -10058,7 +10094,7 @@ func awsRestjson1_deserializeDocumentCell(v **types.Cell, value interface{}) err if err != nil { return err } - sv.Column = &i64 + sv.Column = i64 } case "columnName": @@ -10067,7 +10103,7 @@ func awsRestjson1_deserializeDocumentCell(v **types.Cell, value interface{}) err if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ColumnName = &jtv + sv.ColumnName = ptr.String(jtv) } case "row": @@ -10080,7 +10116,7 @@ func awsRestjson1_deserializeDocumentCell(v **types.Cell, value interface{}) err if err != nil { return err } - sv.Row = &i64 + sv.Row = i64 } default: @@ -10092,7 +10128,7 @@ func awsRestjson1_deserializeDocumentCell(v **types.Cell, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentCells(v *[]*types.Cell, value interface{}) error { +func awsRestjson1_deserializeDocumentCells(v *[]types.Cell, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10105,18 +10141,20 @@ func awsRestjson1_deserializeDocumentCells(v *[]*types.Cell, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Cell + var cv []types.Cell if *v == nil { - cv = []*types.Cell{} + cv = []types.Cell{} } else { cv = *v } for _, value := range shape { - var col *types.Cell - if err := awsRestjson1_deserializeDocumentCell(&col, value); err != nil { + var col types.Cell + destAddr := &col + if err := awsRestjson1_deserializeDocumentCell(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10152,7 +10190,7 @@ func awsRestjson1_deserializeDocumentClassificationDetails(v **types.Classificat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DetailedResultsLocation = &jtv + sv.DetailedResultsLocation = ptr.String(jtv) } case "jobArn": @@ -10161,7 +10199,7 @@ func awsRestjson1_deserializeDocumentClassificationDetails(v **types.Classificat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JobArn = &jtv + sv.JobArn = ptr.String(jtv) } case "jobId": @@ -10170,7 +10208,7 @@ func awsRestjson1_deserializeDocumentClassificationDetails(v **types.Classificat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "result": @@ -10251,7 +10289,7 @@ func awsRestjson1_deserializeDocumentClassificationResult(v **types.Classificati if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AdditionalOccurrences = &jtv + sv.AdditionalOccurrences = jtv } case "customDataIdentifiers": @@ -10265,7 +10303,7 @@ func awsRestjson1_deserializeDocumentClassificationResult(v **types.Classificati if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MimeType = &jtv + sv.MimeType = ptr.String(jtv) } case "sensitiveData": @@ -10283,7 +10321,7 @@ func awsRestjson1_deserializeDocumentClassificationResult(v **types.Classificati if err != nil { return err } - sv.SizeClassified = &i64 + sv.SizeClassified = i64 } case "status": @@ -10328,7 +10366,7 @@ func awsRestjson1_deserializeDocumentClassificationResultStatus(v **types.Classi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "reason": @@ -10337,7 +10375,7 @@ func awsRestjson1_deserializeDocumentClassificationResultStatus(v **types.Classi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } default: @@ -10377,7 +10415,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10389,7 +10427,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti return nil } -func awsRestjson1_deserializeDocumentCriterion(v *map[string]*types.CriterionAdditionalProperties, value interface{}) error { +func awsRestjson1_deserializeDocumentCriterion(v *map[string]types.CriterionAdditionalProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10402,18 +10440,21 @@ func awsRestjson1_deserializeDocumentCriterion(v *map[string]*types.CriterionAdd return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.CriterionAdditionalProperties + var mv map[string]types.CriterionAdditionalProperties if *v == nil { - mv = map[string]*types.CriterionAdditionalProperties{} + mv = map[string]types.CriterionAdditionalProperties{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.CriterionAdditionalProperties - if err := awsRestjson1_deserializeDocumentCriterionAdditionalProperties(&parsedVal, value); err != nil { + var parsedVal types.CriterionAdditionalProperties + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentCriterionAdditionalProperties(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -10463,7 +10504,7 @@ func awsRestjson1_deserializeDocumentCriterionAdditionalProperties(v **types.Cri if err != nil { return err } - sv.Gt = &i64 + sv.Gt = i64 } case "gte": @@ -10476,7 +10517,7 @@ func awsRestjson1_deserializeDocumentCriterionAdditionalProperties(v **types.Cri if err != nil { return err } - sv.Gte = &i64 + sv.Gte = i64 } case "lt": @@ -10489,7 +10530,7 @@ func awsRestjson1_deserializeDocumentCriterionAdditionalProperties(v **types.Cri if err != nil { return err } - sv.Lt = &i64 + sv.Lt = i64 } case "lte": @@ -10502,7 +10543,7 @@ func awsRestjson1_deserializeDocumentCriterionAdditionalProperties(v **types.Cri if err != nil { return err } - sv.Lte = &i64 + sv.Lte = i64 } case "neq": @@ -10556,7 +10597,7 @@ func awsRestjson1_deserializeDocumentCustomDataIdentifiers(v **types.CustomDataI if err != nil { return err } - sv.TotalCount = &i64 + sv.TotalCount = i64 } default: @@ -10596,7 +10637,7 @@ func awsRestjson1_deserializeDocumentCustomDataIdentifierSummary(v **types.Custo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -10609,7 +10650,7 @@ func awsRestjson1_deserializeDocumentCustomDataIdentifierSummary(v **types.Custo if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "description": @@ -10618,7 +10659,7 @@ func awsRestjson1_deserializeDocumentCustomDataIdentifierSummary(v **types.Custo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -10627,7 +10668,7 @@ func awsRestjson1_deserializeDocumentCustomDataIdentifierSummary(v **types.Custo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -10636,7 +10677,7 @@ func awsRestjson1_deserializeDocumentCustomDataIdentifierSummary(v **types.Custo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10676,7 +10717,7 @@ func awsRestjson1_deserializeDocumentCustomDetection(v **types.CustomDetection, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "count": @@ -10689,7 +10730,7 @@ func awsRestjson1_deserializeDocumentCustomDetection(v **types.CustomDetection, if err != nil { return err } - sv.Count = &i64 + sv.Count = i64 } case "name": @@ -10698,7 +10739,7 @@ func awsRestjson1_deserializeDocumentCustomDetection(v **types.CustomDetection, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "occurrences": @@ -10715,7 +10756,7 @@ func awsRestjson1_deserializeDocumentCustomDetection(v **types.CustomDetection, return nil } -func awsRestjson1_deserializeDocumentCustomDetections(v *[]*types.CustomDetection, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomDetections(v *[]types.CustomDetection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10728,18 +10769,20 @@ func awsRestjson1_deserializeDocumentCustomDetections(v *[]*types.CustomDetectio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CustomDetection + var cv []types.CustomDetection if *v == nil { - cv = []*types.CustomDetection{} + cv = []types.CustomDetection{} } else { cv = *v } for _, value := range shape { - var col *types.CustomDetection - if err := awsRestjson1_deserializeDocumentCustomDetection(&col, value); err != nil { + var col types.CustomDetection + destAddr := &col + if err := awsRestjson1_deserializeDocumentCustomDetection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10810,7 +10853,7 @@ func awsRestjson1_deserializeDocumentDefaultDetection(v **types.DefaultDetection if err != nil { return err } - sv.Count = &i64 + sv.Count = i64 } case "occurrences": @@ -10824,7 +10867,7 @@ func awsRestjson1_deserializeDocumentDefaultDetection(v **types.DefaultDetection if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -10836,7 +10879,7 @@ func awsRestjson1_deserializeDocumentDefaultDetection(v **types.DefaultDetection return nil } -func awsRestjson1_deserializeDocumentDefaultDetections(v *[]*types.DefaultDetection, value interface{}) error { +func awsRestjson1_deserializeDocumentDefaultDetections(v *[]types.DefaultDetection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10849,18 +10892,20 @@ func awsRestjson1_deserializeDocumentDefaultDetections(v *[]*types.DefaultDetect return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DefaultDetection + var cv []types.DefaultDetection if *v == nil { - cv = []*types.DefaultDetection{} + cv = []types.DefaultDetection{} } else { cv = *v } for _, value := range shape { - var col *types.DefaultDetection - if err := awsRestjson1_deserializeDocumentDefaultDetection(&col, value); err != nil { + var col types.DefaultDetection + destAddr := &col + if err := awsRestjson1_deserializeDocumentDefaultDetection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10896,7 +10941,7 @@ func awsRestjson1_deserializeDocumentDomainDetails(v **types.DomainDetails, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } default: @@ -10936,7 +10981,7 @@ func awsRestjson1_deserializeDocumentFederatedUser(v **types.FederatedUser, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccessKeyId = &jtv + sv.AccessKeyId = ptr.String(jtv) } case "accountId": @@ -10945,7 +10990,7 @@ func awsRestjson1_deserializeDocumentFederatedUser(v **types.FederatedUser, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "arn": @@ -10954,7 +10999,7 @@ func awsRestjson1_deserializeDocumentFederatedUser(v **types.FederatedUser, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "principalId": @@ -10963,7 +11008,7 @@ func awsRestjson1_deserializeDocumentFederatedUser(v **types.FederatedUser, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } case "sessionContext": @@ -11008,7 +11053,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "archived": @@ -11017,7 +11062,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Archived = &jtv + sv.Archived = jtv } case "category": @@ -11044,7 +11089,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if err != nil { return err } - sv.Count = &i64 + sv.Count = i64 } case "createdAt": @@ -11057,7 +11102,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "description": @@ -11066,7 +11111,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -11075,7 +11120,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "partition": @@ -11084,7 +11129,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Partition = &jtv + sv.Partition = ptr.String(jtv) } case "policyDetails": @@ -11098,7 +11143,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "resourcesAffected": @@ -11112,7 +11157,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Sample = &jtv + sv.Sample = jtv } case "schemaVersion": @@ -11121,7 +11166,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "severity": @@ -11135,7 +11180,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } case "type": @@ -11157,7 +11202,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -11333,7 +11378,7 @@ func awsRestjson1_deserializeDocumentFindingsFilterListItem(v **types.FindingsFi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "id": @@ -11342,7 +11387,7 @@ func awsRestjson1_deserializeDocumentFindingsFilterListItem(v **types.FindingsFi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -11351,7 +11396,7 @@ func awsRestjson1_deserializeDocumentFindingsFilterListItem(v **types.FindingsFi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -11400,7 +11445,7 @@ func awsRestjson1_deserializeDocumentGroupCount(v **types.GroupCount, value inte if err != nil { return err } - sv.Count = &i64 + sv.Count = i64 } case "groupKey": @@ -11409,7 +11454,7 @@ func awsRestjson1_deserializeDocumentGroupCount(v **types.GroupCount, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.GroupKey = &jtv + sv.GroupKey = ptr.String(jtv) } default: @@ -11449,7 +11494,7 @@ func awsRestjson1_deserializeDocumentIamUser(v **types.IamUser, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "arn": @@ -11458,7 +11503,7 @@ func awsRestjson1_deserializeDocumentIamUser(v **types.IamUser, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "principalId": @@ -11467,7 +11512,7 @@ func awsRestjson1_deserializeDocumentIamUser(v **types.IamUser, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } case "userName": @@ -11476,7 +11521,7 @@ func awsRestjson1_deserializeDocumentIamUser(v **types.IamUser, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -11516,7 +11561,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11556,7 +11601,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "invitationId": @@ -11565,7 +11610,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InvitationId = &jtv + sv.InvitationId = ptr.String(jtv) } case "invitedAt": @@ -11578,7 +11623,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if err != nil { return err } - sv.InvitedAt = &t + sv.InvitedAt = ptr.Time(t) } case "relationshipStatus": @@ -11627,7 +11672,7 @@ func awsRestjson1_deserializeDocumentIpAddressDetails(v **types.IpAddressDetails if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.IpAddressV4 = &jtv + sv.IpAddressV4 = ptr.String(jtv) } case "ipCity": @@ -11687,7 +11732,7 @@ func awsRestjson1_deserializeDocumentIpCity(v **types.IpCity, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -11727,7 +11772,7 @@ func awsRestjson1_deserializeDocumentIpCountry(v **types.IpCountry, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "name": @@ -11736,7 +11781,7 @@ func awsRestjson1_deserializeDocumentIpCountry(v **types.IpCountry, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -11780,7 +11825,7 @@ func awsRestjson1_deserializeDocumentIpGeoLocation(v **types.IpGeoLocation, valu if err != nil { return err } - sv.Lat = &f64 + sv.Lat = f64 } case "lon": @@ -11793,7 +11838,7 @@ func awsRestjson1_deserializeDocumentIpGeoLocation(v **types.IpGeoLocation, valu if err != nil { return err } - sv.Lon = &f64 + sv.Lon = f64 } default: @@ -11833,7 +11878,7 @@ func awsRestjson1_deserializeDocumentIpOwner(v **types.IpOwner, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Asn = &jtv + sv.Asn = ptr.String(jtv) } case "asnOrg": @@ -11842,7 +11887,7 @@ func awsRestjson1_deserializeDocumentIpOwner(v **types.IpOwner, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AsnOrg = &jtv + sv.AsnOrg = ptr.String(jtv) } case "isp": @@ -11851,7 +11896,7 @@ func awsRestjson1_deserializeDocumentIpOwner(v **types.IpOwner, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Isp = &jtv + sv.Isp = ptr.String(jtv) } case "org": @@ -11860,7 +11905,7 @@ func awsRestjson1_deserializeDocumentIpOwner(v **types.IpOwner, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Org = &jtv + sv.Org = ptr.String(jtv) } default: @@ -12032,7 +12077,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "jobId": @@ -12041,7 +12086,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "jobStatus": @@ -12068,7 +12113,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "userPausedDetails": @@ -12113,7 +12158,7 @@ func awsRestjson1_deserializeDocumentKeyValuePair(v **types.KeyValuePair, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -12122,7 +12167,7 @@ func awsRestjson1_deserializeDocumentKeyValuePair(v **types.KeyValuePair, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -12134,7 +12179,7 @@ func awsRestjson1_deserializeDocumentKeyValuePair(v **types.KeyValuePair, value return nil } -func awsRestjson1_deserializeDocumentKeyValuePairList(v *[]*types.KeyValuePair, value interface{}) error { +func awsRestjson1_deserializeDocumentKeyValuePairList(v *[]types.KeyValuePair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12147,18 +12192,20 @@ func awsRestjson1_deserializeDocumentKeyValuePairList(v *[]*types.KeyValuePair, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeyValuePair + var cv []types.KeyValuePair if *v == nil { - cv = []*types.KeyValuePair{} + cv = []types.KeyValuePair{} } else { cv = *v } for _, value := range shape { - var col *types.KeyValuePair - if err := awsRestjson1_deserializeDocumentKeyValuePair(&col, value); err != nil { + var col types.KeyValuePair + destAddr := &col + if err := awsRestjson1_deserializeDocumentKeyValuePair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12194,7 +12241,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "arn": @@ -12203,7 +12250,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "email": @@ -12212,7 +12259,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "invitedAt": @@ -12225,7 +12272,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if err != nil { return err } - sv.InvitedAt = &t + sv.InvitedAt = ptr.Time(t) } case "masterAccountId": @@ -12234,7 +12281,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MasterAccountId = &jtv + sv.MasterAccountId = ptr.String(jtv) } case "relationshipStatus": @@ -12261,7 +12308,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -12305,7 +12352,7 @@ func awsRestjson1_deserializeDocumentMonthlySchedule(v **types.MonthlySchedule, if err != nil { return err } - sv.DayOfMonth = ptr.Int32(int32(i64)) + sv.DayOfMonth = int32(i64) } default: @@ -12349,7 +12396,7 @@ func awsRestjson1_deserializeDocumentObjectCountByEncryptionType(v **types.Objec if err != nil { return err } - sv.CustomerManaged = &i64 + sv.CustomerManaged = i64 } case "kmsManaged": @@ -12362,7 +12409,7 @@ func awsRestjson1_deserializeDocumentObjectCountByEncryptionType(v **types.Objec if err != nil { return err } - sv.KmsManaged = &i64 + sv.KmsManaged = i64 } case "s3Managed": @@ -12375,7 +12422,7 @@ func awsRestjson1_deserializeDocumentObjectCountByEncryptionType(v **types.Objec if err != nil { return err } - sv.S3Managed = &i64 + sv.S3Managed = i64 } case "unencrypted": @@ -12388,7 +12435,7 @@ func awsRestjson1_deserializeDocumentObjectCountByEncryptionType(v **types.Objec if err != nil { return err } - sv.Unencrypted = &i64 + sv.Unencrypted = i64 } default: @@ -12432,7 +12479,7 @@ func awsRestjson1_deserializeDocumentObjectLevelStatistics(v **types.ObjectLevel if err != nil { return err } - sv.FileType = &i64 + sv.FileType = i64 } case "storageClass": @@ -12445,7 +12492,7 @@ func awsRestjson1_deserializeDocumentObjectLevelStatistics(v **types.ObjectLevel if err != nil { return err } - sv.StorageClass = &i64 + sv.StorageClass = i64 } case "total": @@ -12458,7 +12505,7 @@ func awsRestjson1_deserializeDocumentObjectLevelStatistics(v **types.ObjectLevel if err != nil { return err } - sv.Total = &i64 + sv.Total = i64 } default: @@ -12568,7 +12615,7 @@ func awsRestjson1_deserializeDocumentPage(v **types.Page, value interface{}) err if err != nil { return err } - sv.PageNumber = &i64 + sv.PageNumber = i64 } default: @@ -12580,7 +12627,7 @@ func awsRestjson1_deserializeDocumentPage(v **types.Page, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentPages(v *[]*types.Page, value interface{}) error { +func awsRestjson1_deserializeDocumentPages(v *[]types.Page, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12593,18 +12640,20 @@ func awsRestjson1_deserializeDocumentPages(v *[]*types.Page, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Page + var cv []types.Page if *v == nil { - cv = []*types.Page{} + cv = []types.Page{} } else { cv = *v } for _, value := range shape { - var col *types.Page - if err := awsRestjson1_deserializeDocumentPage(&col, value); err != nil { + var col types.Page + destAddr := &col + if err := awsRestjson1_deserializeDocumentPage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12685,7 +12734,7 @@ func awsRestjson1_deserializeDocumentRange(v **types.Range, value interface{}) e if err != nil { return err } - sv.End = &i64 + sv.End = i64 } case "start": @@ -12698,7 +12747,7 @@ func awsRestjson1_deserializeDocumentRange(v **types.Range, value interface{}) e if err != nil { return err } - sv.Start = &i64 + sv.Start = i64 } case "startColumn": @@ -12711,7 +12760,7 @@ func awsRestjson1_deserializeDocumentRange(v **types.Range, value interface{}) e if err != nil { return err } - sv.StartColumn = &i64 + sv.StartColumn = i64 } default: @@ -12723,7 +12772,7 @@ func awsRestjson1_deserializeDocumentRange(v **types.Range, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentRanges(v *[]*types.Range, value interface{}) error { +func awsRestjson1_deserializeDocumentRanges(v *[]types.Range, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12736,18 +12785,20 @@ func awsRestjson1_deserializeDocumentRanges(v *[]*types.Range, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Range + var cv []types.Range if *v == nil { - cv = []*types.Range{} + cv = []types.Range{} } else { cv = *v } for _, value := range shape { - var col *types.Range - if err := awsRestjson1_deserializeDocumentRange(&col, value); err != nil { + var col types.Range + destAddr := &col + if err := awsRestjson1_deserializeDocumentRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12787,7 +12838,7 @@ func awsRestjson1_deserializeDocumentRecord(v **types.Record, value interface{}) if err != nil { return err } - sv.RecordIndex = &i64 + sv.RecordIndex = i64 } default: @@ -12799,7 +12850,7 @@ func awsRestjson1_deserializeDocumentRecord(v **types.Record, value interface{}) return nil } -func awsRestjson1_deserializeDocumentRecords(v *[]*types.Record, value interface{}) error { +func awsRestjson1_deserializeDocumentRecords(v *[]types.Record, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12812,18 +12863,20 @@ func awsRestjson1_deserializeDocumentRecords(v *[]*types.Record, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Record + var cv []types.Record if *v == nil { - cv = []*types.Record{} + cv = []types.Record{} } else { cv = *v } for _, value := range shape { - var col *types.Record - if err := awsRestjson1_deserializeDocumentRecord(&col, value); err != nil { + var col types.Record + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12859,7 +12912,7 @@ func awsRestjson1_deserializeDocumentReplicationDetails(v **types.ReplicationDet if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Replicated = &jtv + sv.Replicated = jtv } case "replicatedExternally": @@ -12868,7 +12921,7 @@ func awsRestjson1_deserializeDocumentReplicationDetails(v **types.ReplicationDet if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ReplicatedExternally = &jtv + sv.ReplicatedExternally = jtv } case "replicationAccounts": @@ -12913,7 +12966,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12994,7 +13047,7 @@ func awsRestjson1_deserializeDocumentS3Bucket(v **types.S3Bucket, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -13007,7 +13060,7 @@ func awsRestjson1_deserializeDocumentS3Bucket(v **types.S3Bucket, value interfac if err != nil { return err } - sv.CreatedAt = &t + sv.CreatedAt = ptr.Time(t) } case "defaultServerSideEncryption": @@ -13021,7 +13074,7 @@ func awsRestjson1_deserializeDocumentS3Bucket(v **types.S3Bucket, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "owner": @@ -13076,7 +13129,7 @@ func awsRestjson1_deserializeDocumentS3BucketDefinitionForJob(v **types.S3Bucket if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "buckets": @@ -13121,7 +13174,7 @@ func awsRestjson1_deserializeDocumentS3BucketOwner(v **types.S3BucketOwner, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "id": @@ -13130,7 +13183,7 @@ func awsRestjson1_deserializeDocumentS3BucketOwner(v **types.S3BucketOwner, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -13170,7 +13223,7 @@ func awsRestjson1_deserializeDocumentS3Destination(v **types.S3Destination, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "keyPrefix": @@ -13179,7 +13232,7 @@ func awsRestjson1_deserializeDocumentS3Destination(v **types.S3Destination, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KeyPrefix = &jtv + sv.KeyPrefix = ptr.String(jtv) } case "kmsKeyArn": @@ -13188,7 +13241,7 @@ func awsRestjson1_deserializeDocumentS3Destination(v **types.S3Destination, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } default: @@ -13269,7 +13322,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BucketArn = &jtv + sv.BucketArn = ptr.String(jtv) } case "eTag": @@ -13278,7 +13331,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ETag = &jtv + sv.ETag = ptr.String(jtv) } case "extension": @@ -13287,7 +13340,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Extension = &jtv + sv.Extension = ptr.String(jtv) } case "key": @@ -13296,7 +13349,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "lastModified": @@ -13309,7 +13362,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } case "path": @@ -13318,7 +13371,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "publicAccess": @@ -13327,7 +13380,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.PublicAccess = &jtv + sv.PublicAccess = jtv } case "serverSideEncryption": @@ -13345,7 +13398,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if err != nil { return err } - sv.Size = &i64 + sv.Size = i64 } case "storageClass": @@ -13368,7 +13421,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -13421,7 +13474,7 @@ func awsRestjson1_deserializeDocumentScoping(v **types.Scoping, value interface{ return nil } -func awsRestjson1_deserializeDocumentSensitiveData(v *[]*types.SensitiveDataItem, value interface{}) error { +func awsRestjson1_deserializeDocumentSensitiveData(v *[]types.SensitiveDataItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13434,18 +13487,20 @@ func awsRestjson1_deserializeDocumentSensitiveData(v *[]*types.SensitiveDataItem return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SensitiveDataItem + var cv []types.SensitiveDataItem if *v == nil { - cv = []*types.SensitiveDataItem{} + cv = []types.SensitiveDataItem{} } else { cv = *v } for _, value := range shape { - var col *types.SensitiveDataItem - if err := awsRestjson1_deserializeDocumentSensitiveDataItem(&col, value); err != nil { + var col types.SensitiveDataItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentSensitiveDataItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13499,7 +13554,7 @@ func awsRestjson1_deserializeDocumentSensitiveDataItem(v **types.SensitiveDataIt if err != nil { return err } - sv.TotalCount = &i64 + sv.TotalCount = i64 } default: @@ -13548,7 +13603,7 @@ func awsRestjson1_deserializeDocumentServerSideEncryption(v **types.ServerSideEn if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KmsMasterKeyId = &jtv + sv.KmsMasterKeyId = ptr.String(jtv) } default: @@ -13588,7 +13643,7 @@ func awsRestjson1_deserializeDocumentServiceLimit(v **types.ServiceLimit, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsServiceLimited = &jtv + sv.IsServiceLimited = jtv } case "unit": @@ -13610,7 +13665,7 @@ func awsRestjson1_deserializeDocumentServiceLimit(v **types.ServiceLimit, value if err != nil { return err } - sv.Value = &i64 + sv.Value = i64 } default: @@ -13650,7 +13705,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13735,7 +13790,7 @@ func awsRestjson1_deserializeDocumentSessionContextAttributes(v **types.SessionC if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case "mfaAuthenticated": @@ -13744,7 +13799,7 @@ func awsRestjson1_deserializeDocumentSessionContextAttributes(v **types.SessionC if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.MfaAuthenticated = &jtv + sv.MfaAuthenticated = jtv } default: @@ -13784,7 +13839,7 @@ func awsRestjson1_deserializeDocumentSessionIssuer(v **types.SessionIssuer, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "arn": @@ -13793,7 +13848,7 @@ func awsRestjson1_deserializeDocumentSessionIssuer(v **types.SessionIssuer, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "principalId": @@ -13802,7 +13857,7 @@ func awsRestjson1_deserializeDocumentSessionIssuer(v **types.SessionIssuer, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } case "type": @@ -13811,7 +13866,7 @@ func awsRestjson1_deserializeDocumentSessionIssuer(v **types.SessionIssuer, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "userName": @@ -13820,7 +13875,7 @@ func awsRestjson1_deserializeDocumentSessionIssuer(v **types.SessionIssuer, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -13873,7 +13928,7 @@ func awsRestjson1_deserializeDocumentSeverity(v **types.Severity, value interfac if err != nil { return err } - sv.Score = &i64 + sv.Score = i64 } default: @@ -13971,7 +14026,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.ApproximateNumberOfObjectsToProcess = &f64 + sv.ApproximateNumberOfObjectsToProcess = f64 } case "numberOfRuns": @@ -13984,7 +14039,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.NumberOfRuns = &f64 + sv.NumberOfRuns = f64 } default: @@ -13996,7 +14051,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14009,21 +14064,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -14069,7 +14124,7 @@ func awsRestjson1_deserializeDocumentTagScopeTerm(v **types.TagScopeTerm, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "tagValues": @@ -14123,7 +14178,7 @@ func awsRestjson1_deserializeDocumentTagValuePair(v **types.TagValuePair, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -14132,7 +14187,7 @@ func awsRestjson1_deserializeDocumentTagValuePair(v **types.TagValuePair, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -14172,7 +14227,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14212,7 +14267,7 @@ func awsRestjson1_deserializeDocumentUnprocessedAccount(v **types.UnprocessedAcc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "errorCode": @@ -14230,7 +14285,7 @@ func awsRestjson1_deserializeDocumentUnprocessedAccount(v **types.UnprocessedAcc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -14279,7 +14334,7 @@ func awsRestjson1_deserializeDocumentUsageByAccount(v **types.UsageByAccount, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EstimatedCost = &jtv + sv.EstimatedCost = ptr.String(jtv) } case "serviceLimit": @@ -14333,7 +14388,7 @@ func awsRestjson1_deserializeDocumentUsageRecord(v **types.UsageRecord, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "freeTrialStartDate": @@ -14346,7 +14401,7 @@ func awsRestjson1_deserializeDocumentUsageRecord(v **types.UsageRecord, value in if err != nil { return err } - sv.FreeTrialStartDate = &t + sv.FreeTrialStartDate = ptr.Time(t) } case "usage": @@ -14400,7 +14455,7 @@ func awsRestjson1_deserializeDocumentUsageTotal(v **types.UsageTotal, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EstimatedCost = &jtv + sv.EstimatedCost = ptr.String(jtv) } case "type": @@ -14519,7 +14574,7 @@ func awsRestjson1_deserializeDocumentUserIdentityRoot(v **types.UserIdentityRoot if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "arn": @@ -14528,7 +14583,7 @@ func awsRestjson1_deserializeDocumentUserIdentityRoot(v **types.UserIdentityRoot if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "principalId": @@ -14537,7 +14592,7 @@ func awsRestjson1_deserializeDocumentUserIdentityRoot(v **types.UserIdentityRoot if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } default: @@ -14581,7 +14636,7 @@ func awsRestjson1_deserializeDocumentUserPausedDetails(v **types.UserPausedDetai if err != nil { return err } - sv.JobExpiresAt = &t + sv.JobExpiresAt = ptr.Time(t) } case "jobImminentExpirationHealthEventArn": @@ -14590,7 +14645,7 @@ func awsRestjson1_deserializeDocumentUserPausedDetails(v **types.UserPausedDetai if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JobImminentExpirationHealthEventArn = &jtv + sv.JobImminentExpirationHealthEventArn = ptr.String(jtv) } case "jobPausedAt": @@ -14603,7 +14658,7 @@ func awsRestjson1_deserializeDocumentUserPausedDetails(v **types.UserPausedDetai if err != nil { return err } - sv.JobPausedAt = &t + sv.JobPausedAt = ptr.Time(t) } default: @@ -14643,7 +14698,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/macie2/go.mod b/service/macie2/go.mod index f38e59bf18b..eb49b5821ea 100644 --- a/service/macie2/go.mod +++ b/service/macie2/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/macie2 go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/macie2/serializers.go b/service/macie2/serializers.go index e8f67bfc4ce..b8c140182ce 100644 --- a/service/macie2/serializers.go +++ b/service/macie2/serializers.go @@ -249,9 +249,9 @@ func awsRestjson1_serializeOpDocumentCreateClassificationJobInput(v *CreateClass ok.String(*v.Description) } - if v.InitialRun != nil { + if v.InitialRun { ok := object.Key("initialRun") - ok.Boolean(*v.InitialRun) + ok.Boolean(v.InitialRun) } if len(v.JobType) > 0 { @@ -271,9 +271,9 @@ func awsRestjson1_serializeOpDocumentCreateClassificationJobInput(v *CreateClass } } - if v.SamplingPercentage != nil { + if v.SamplingPercentage != 0 { ok := object.Key("samplingPercentage") - ok.Integer(*v.SamplingPercentage) + ok.Integer(v.SamplingPercentage) } if v.ScheduleFrequency != nil { @@ -382,9 +382,9 @@ func awsRestjson1_serializeOpDocumentCreateCustomDataIdentifierInput(v *CreateCu } } - if v.MaximumMatchDistance != nil { + if v.MaximumMatchDistance != 0 { ok := object.Key("maximumMatchDistance") - ok.Integer(*v.MaximumMatchDistance) + ok.Integer(v.MaximumMatchDistance) } if v.Name != nil { @@ -499,9 +499,9 @@ func awsRestjson1_serializeOpDocumentCreateFindingsFilterInput(v *CreateFindings ok.String(*v.Name) } - if v.Position != nil { + if v.Position != 0 { ok := object.Key("position") - ok.Integer(*v.Position) + ok.Integer(v.Position) } if v.Tags != nil { @@ -586,9 +586,9 @@ func awsRestjson1_serializeOpDocumentCreateInvitationsInput(v *CreateInvitations } } - if v.DisableEmailNotification != nil { + if v.DisableEmailNotification { ok := object.Key("disableEmailNotification") - ok.Boolean(*v.DisableEmailNotification) + ok.Boolean(v.DisableEmailNotification) } if v.Message != nil { @@ -882,13 +882,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteCustomDataIdentifierInput(v *Dele return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} - } if err := encoder.SetURI("id").String(*v.Id); err != nil { return err } @@ -948,13 +945,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFindingsFilterInput(v *DeleteFind return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} - } if err := encoder.SetURI("id").String(*v.Id); err != nil { return err } @@ -1089,13 +1083,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMemberInput(v *DeleteMemberInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} - } if err := encoder.SetURI("id").String(*v.Id); err != nil { return err } @@ -1176,9 +1167,9 @@ func awsRestjson1_serializeOpDocumentDescribeBucketsInput(v *DescribeBucketsInpu } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1247,13 +1238,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeClassificationJobInput(v *Descr return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -1521,13 +1509,10 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateMemberInput(v *Disassociate return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} - } if err := encoder.SetURI("id").String(*v.Id); err != nil { return err } @@ -1871,13 +1856,10 @@ func awsRestjson1_serializeOpHttpBindingsGetCustomDataIdentifierInput(v *GetCust return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} - } if err := encoder.SetURI("id").String(*v.Id); err != nil { return err } @@ -2019,13 +2001,10 @@ func awsRestjson1_serializeOpHttpBindingsGetFindingsFilterInput(v *GetFindingsFi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} - } if err := encoder.SetURI("id").String(*v.Id); err != nil { return err } @@ -2111,9 +2090,9 @@ func awsRestjson1_serializeOpDocumentGetFindingStatisticsInput(v *GetFindingStat ok.String(string(v.GroupBy)) } - if v.Size != nil { + if v.Size != 0 { ok := object.Key("size") - ok.Integer(*v.Size) + ok.Integer(v.Size) } if v.SortCriteria != nil { @@ -2327,13 +2306,10 @@ func awsRestjson1_serializeOpHttpBindingsGetMemberInput(v *GetMemberInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} - } if err := encoder.SetURI("id").String(*v.Id); err != nil { return err } @@ -2414,9 +2390,9 @@ func awsRestjson1_serializeOpDocumentGetUsageStatisticsInput(v *GetUsageStatisti } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2556,9 +2532,9 @@ func awsRestjson1_serializeOpDocumentListClassificationJobsInput(v *ListClassifi } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2641,9 +2617,9 @@ func awsRestjson1_serializeOpDocumentListCustomDataIdentifiersInput(v *ListCusto object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2726,9 +2702,9 @@ func awsRestjson1_serializeOpDocumentListFindingsInput(v *ListFindingsInput, val } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2797,8 +2773,8 @@ func awsRestjson1_serializeOpHttpBindingsListFindingsFiltersInput(v *ListFinding return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2859,8 +2835,8 @@ func awsRestjson1_serializeOpHttpBindingsListInvitationsInput(v *ListInvitations return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2921,8 +2897,8 @@ func awsRestjson1_serializeOpHttpBindingsListMembersInput(v *ListMembersInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2987,8 +2963,8 @@ func awsRestjson1_serializeOpHttpBindingsListOrganizationAdminAccountsInput(v *L return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -3049,13 +3025,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3201,13 +3174,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3309,9 +3279,9 @@ func awsRestjson1_serializeOpDocumentTestCustomDataIdentifierInput(v *TestCustom } } - if v.MaximumMatchDistance != nil { + if v.MaximumMatchDistance != 0 { ok := object.Key("maximumMatchDistance") - ok.Integer(*v.MaximumMatchDistance) + ok.Integer(v.MaximumMatchDistance) } if v.Regex != nil { @@ -3378,13 +3348,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3392,10 +3359,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -3464,13 +3428,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateClassificationJobInput(v *UpdateC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -3553,13 +3514,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFindingsFilterInput(v *UpdateFind return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} - } if err := encoder.SetURI("id").String(*v.Id); err != nil { return err } @@ -3594,9 +3552,9 @@ func awsRestjson1_serializeOpDocumentUpdateFindingsFilterInput(v *UpdateFindings ok.String(*v.Name) } - if v.Position != nil { + if v.Position != 0 { ok := object.Key("position") - ok.Integer(*v.Position) + ok.Integer(v.Position) } return nil @@ -3742,13 +3700,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateMemberSessionInput(v *UpdateMembe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} - } if err := encoder.SetURI("id").String(*v.Id); err != nil { return err } @@ -3834,25 +3789,21 @@ func awsRestjson1_serializeOpDocumentUpdateOrganizationConfigurationInput(v *Upd object := value.Object() defer object.Close() - if v.AutoEnable != nil { + if v.AutoEnable { ok := object.Key("autoEnable") - ok.Boolean(*v.AutoEnable) + ok.Boolean(v.AutoEnable) } return nil } -func awsRestjson1_serializeDocument__listOf__string(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3868,85 +3819,65 @@ func awsRestjson1_serializeDocument__listOfFindingType(v []types.FindingType, va return nil } -func awsRestjson1_serializeDocument__listOfJobScopeTerm(v []*types.JobScopeTerm, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfJobScopeTerm(v []types.JobScopeTerm, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentJobScopeTerm(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentJobScopeTerm(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfListJobsFilterTerm(v []*types.ListJobsFilterTerm, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfListJobsFilterTerm(v []types.ListJobsFilterTerm, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentListJobsFilterTerm(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentListJobsFilterTerm(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfS3BucketDefinitionForJob(v []*types.S3BucketDefinitionForJob, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfS3BucketDefinitionForJob(v []types.S3BucketDefinitionForJob, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentS3BucketDefinitionForJob(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentS3BucketDefinitionForJob(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfTagValuePair(v []*types.TagValuePair, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfTagValuePair(v []types.TagValuePair, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTagValuePair(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTagValuePair(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfUsageStatisticsFilter(v []*types.UsageStatisticsFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfUsageStatisticsFilter(v []types.UsageStatisticsFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentUsageStatisticsFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentUsageStatisticsFilter(&v[i], av); err != nil { return err } } @@ -3970,17 +3901,14 @@ func awsRestjson1_serializeDocumentAccountDetail(v *types.AccountDetail, value s return nil } -func awsRestjson1_serializeDocumentBucketCriteria(v map[string]*types.BucketCriteriaAdditionalProperties, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBucketCriteria(v map[string]types.BucketCriteriaAdditionalProperties, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentBucketCriteriaAdditionalProperties(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentBucketCriteriaAdditionalProperties(&mapVar, om); err != nil { return err } } @@ -3998,24 +3926,24 @@ func awsRestjson1_serializeDocumentBucketCriteriaAdditionalProperties(v *types.B } } - if v.Gt != nil { + if v.Gt != 0 { ok := object.Key("gt") - ok.Long(*v.Gt) + ok.Long(v.Gt) } - if v.Gte != nil { + if v.Gte != 0 { ok := object.Key("gte") - ok.Long(*v.Gte) + ok.Long(v.Gte) } - if v.Lt != nil { + if v.Lt != 0 { ok := object.Key("lt") - ok.Long(*v.Lt) + ok.Long(v.Lt) } - if v.Lte != nil { + if v.Lte != 0 { ok := object.Key("lte") - ok.Long(*v.Lte) + ok.Long(v.Lte) } if v.Neq != nil { @@ -4064,17 +3992,14 @@ func awsRestjson1_serializeDocumentClassificationExportConfiguration(v *types.Cl return nil } -func awsRestjson1_serializeDocumentCriterion(v map[string]*types.CriterionAdditionalProperties, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCriterion(v map[string]types.CriterionAdditionalProperties, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentCriterionAdditionalProperties(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentCriterionAdditionalProperties(&mapVar, om); err != nil { return err } } @@ -4099,24 +4024,24 @@ func awsRestjson1_serializeDocumentCriterionAdditionalProperties(v *types.Criter } } - if v.Gt != nil { + if v.Gt != 0 { ok := object.Key("gt") - ok.Long(*v.Gt) + ok.Long(v.Gt) } - if v.Gte != nil { + if v.Gte != 0 { ok := object.Key("gte") - ok.Long(*v.Gte) + ok.Long(v.Gte) } - if v.Lt != nil { + if v.Lt != 0 { ok := object.Key("lt") - ok.Long(*v.Lt) + ok.Long(v.Lt) } - if v.Lte != nil { + if v.Lte != 0 { ok := object.Key("lte") - ok.Long(*v.Lte) + ok.Long(v.Lte) } if v.Neq != nil { @@ -4296,9 +4221,9 @@ func awsRestjson1_serializeDocumentMonthlySchedule(v *types.MonthlySchedule, val object := value.Object() defer object.Close() - if v.DayOfMonth != nil { + if v.DayOfMonth != 0 { ok := object.Key("dayOfMonth") - ok.Integer(*v.DayOfMonth) + ok.Integer(v.DayOfMonth) } return nil @@ -4428,17 +4353,13 @@ func awsRestjson1_serializeDocumentSortCriteria(v *types.SortCriteria, value smi return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/macie2/types/types.go b/service/macie2/types/types.go index d1393b79f6d..7e82f0a8f7a 100644 --- a/service/macie2/types/types.go +++ b/service/macie2/types/types.go @@ -12,11 +12,11 @@ type AccessControlList struct { // Specifies whether the ACL grants the general public with read access permissions // for the bucket. - AllowsPublicReadAccess *bool + AllowsPublicReadAccess bool // Specifies whether the ACL grants the general public with write access // permissions for the bucket. - AllowsPublicWriteAccess *bool + AllowsPublicWriteAccess bool } // Specifies details for an account to associate with an Amazon Macie master @@ -132,7 +132,7 @@ type BatchGetCustomDataIdentifierSummary struct { // Specifies whether the custom data identifier was deleted. If you delete a custom // data identifier, Amazon Macie doesn't delete it permanently. Instead, it soft // deletes the identifier. - Deleted *bool + Deleted bool // The custom description of the custom data identifier. Description *string @@ -153,17 +153,17 @@ type BlockPublicAccess struct { // Specifies whether Amazon S3 blocks public access control lists (ACLs) for the // bucket and objects in the bucket. - BlockPublicAcls *bool + BlockPublicAcls bool // Specifies whether Amazon S3 blocks public bucket policies for the bucket. - BlockPublicPolicy *bool + BlockPublicPolicy bool // Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in // the bucket. - IgnorePublicAcls *bool + IgnorePublicAcls bool // Specifies whether Amazon S3 restricts public bucket policies for the bucket. - RestrictPublicBuckets *bool + RestrictPublicBuckets bool } // Provides information about the number of S3 buckets that are publicly accessible @@ -172,20 +172,20 @@ type BucketCountByEffectivePermission struct { // The total number of buckets that allow the general public to have read or write // access to the bucket. - PubliclyAccessible *int64 + PubliclyAccessible int64 // The total number of buckets that allow the general public to have read access to // the bucket. - PubliclyReadable *int64 + PubliclyReadable int64 // The total number of buckets that allow the general public to have write access // to the bucket. - PubliclyWritable *int64 + PubliclyWritable int64 // The total number of buckets that Amazon Macie wasn't able to evaluate // permissions settings for. Macie can't determine whether these buckets are // publicly accessible. - Unknown *int64 + Unknown int64 } // Provides information about the number of S3 buckets that use certain types of @@ -196,15 +196,15 @@ type BucketCountByEncryptionType struct { // customer master key (CMK) to encrypt objects. These buckets use AWS KMS // AWS-managed (AWS-KMS) encryption or AWS KMS customer-managed (SSE-KMS) // encryption. - KmsManaged *int64 + KmsManaged int64 // The total number of buckets that use an Amazon S3-managed key to encrypt // objects. These buckets use Amazon S3-managed (SSE-S3) encryption. - S3Managed *int64 + S3Managed int64 // The total number of buckets that don't encrypt objects by default. Default // encryption is disabled for these buckets. - Unencrypted *int64 + Unencrypted int64 } // Provides information about the number of S3 buckets that are shared with other @@ -213,19 +213,19 @@ type BucketCountBySharedAccessType struct { // The total number of buckets that are shared with an AWS account that isn't part // of the same Amazon Macie organization. - External *int64 + External int64 // The total number of buckets that are shared with an AWS account that's part of // the same Amazon Macie organization. - Internal *int64 + Internal int64 // The total number of buckets that aren't shared with other AWS accounts. - NotShared *int64 + NotShared int64 // The total number of buckets that Amazon Macie wasn't able to evaluate shared // access settings for. Macie can't determine whether these buckets are shared with // other AWS accounts. - Unknown *int64 + Unknown int64 } // Specifies the operator to use in an attribute-based condition that filters the @@ -233,24 +233,24 @@ type BucketCountBySharedAccessType struct { type BucketCriteriaAdditionalProperties struct { // An equal to condition to apply to a specified attribute value for buckets. - Eq []*string + Eq []string // A greater than condition to apply to a specified attribute value for buckets. - Gt *int64 + Gt int64 // A greater than or equal to condition to apply to a specified attribute value for // buckets. - Gte *int64 + Gte int64 // A less than condition to apply to a specified attribute value for buckets. - Lt *int64 + Lt int64 // A less than or equal to condition to apply to a specified attribute value for // buckets. - Lte *int64 + Lte int64 // A not equal to condition to apply to a specified attribute value for buckets. - Neq []*string + Neq []string // The prefix of the buckets to include in the results. Prefix *string @@ -291,19 +291,19 @@ type BucketMetadata struct { // The total number of objects that Amazon Macie can analyze in the bucket. These // objects use a supported storage class and have a file name extension for a // supported file or storage format. - ClassifiableObjectCount *int64 + ClassifiableObjectCount int64 // The total storage size, in bytes, of the objects that Amazon Macie can analyze // in the bucket. These objects use a supported storage class and have a file name // extension for a supported file or storage format. - ClassifiableSizeInBytes *int64 + ClassifiableSizeInBytes int64 // The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most // recently retrieved data about the bucket from Amazon S3. LastUpdated *time.Time // The total number of objects in the bucket. - ObjectCount *int64 + ObjectCount int64 // The total number of objects that are in the bucket, grouped by server-side // encryption type. This includes a grouping that reports the total number of @@ -339,14 +339,14 @@ type BucketMetadata struct { SharedAccess SharedAccess // The total storage size, in bytes, of the bucket. - SizeInBytes *int64 + SizeInBytes int64 // The total compressed storage size, in bytes, of the bucket. - SizeInBytesCompressed *int64 + SizeInBytesCompressed int64 // An array that specifies the tags (keys and values) that are associated with the // bucket. - Tags []*KeyValuePair + Tags []KeyValuePair // The total number of objects that Amazon Macie can't analyze in the bucket. These // objects don't use a supported storage class or don't have a file name extension @@ -359,7 +359,7 @@ type BucketMetadata struct { UnclassifiableObjectSizeInBytes *ObjectLevelStatistics // Specifies whether versioning is enabled for the bucket. - Versioning *bool + Versioning bool } // Provides information about the account-level and bucket-level permissions @@ -379,11 +379,11 @@ type BucketPolicy struct { // Specifies whether the bucket policy allows the general public to have read // access to the bucket. - AllowsPublicReadAccess *bool + AllowsPublicReadAccess bool // Specifies whether the bucket policy allows the general public to have write // access to the bucket. - AllowsPublicWriteAccess *bool + AllowsPublicWriteAccess bool } // Provides information about the permissions settings that determine whether an S3 @@ -434,13 +434,13 @@ type Cell struct { // The column number of the column that contains the data. For a Microsoft Excel // workbook, this value correlates to the alphabetical character(s) for a column // identifier. For example, 1 for column A, 2 for column B, and so on. - Column *int64 + Column int64 // The name of the column that contains the data, if available. ColumnName *string // The row number of the row that contains the data. - Row *int64 + Row int64 } // Provides information about a sensitive data finding, including the @@ -484,7 +484,7 @@ type ClassificationResult struct { // investigate additional occurrences of sensitive data in an object. You can do // this by referring to the corresponding sensitive data discovery result for the // finding (ClassificationDetails.detailedResultsLocation). - AdditionalOccurrences *bool + AdditionalOccurrences bool // The custom data identifiers that detected the sensitive data and the number of // occurrences of the data that they detected. @@ -497,10 +497,10 @@ type ClassificationResult struct { // The category, types, and number of occurrences of the sensitive data that // produced the finding. - SensitiveData []*SensitiveDataItem + SensitiveData []SensitiveDataItem // The total size, in bytes, of the data that the finding applies to. - SizeClassified *int64 + SizeClassified int64 // The status of the finding. Status *ClassificationResultStatus @@ -535,7 +535,7 @@ type ClassificationResultStatus struct { type CriterionAdditionalProperties struct { // An equal to condition to apply to a specified property value for findings. - Eq []*string + Eq []string // A condition that requires an array field on a finding to exactly match the // specified property values. You can use this operator with the following @@ -560,24 +560,24 @@ type CriterionAdditionalProperties struct { // // * // sensitiveData.detections.type - EqExactMatch []*string + EqExactMatch []string // A greater than condition to apply to a specified property value for findings. - Gt *int64 + Gt int64 // A greater than or equal to condition to apply to a specified property value for // findings. - Gte *int64 + Gte int64 // A less than condition to apply to a specified property value for findings. - Lt *int64 + Lt int64 // A less than or equal to condition to apply to a specified property value for // findings. - Lte *int64 + Lte int64 // A not equal to condition to apply to a specified property value for findings. - Neq []*string + Neq []string } // Provides information about custom data identifiers that produced a sensitive @@ -587,11 +587,11 @@ type CustomDataIdentifiers struct { // The custom data identifiers that detected the data, and the number of // occurrences of the data that each identifier detected. - Detections []*CustomDetection + Detections []CustomDetection // The total number of occurrences of the data that was detected by the custom data // identifiers and produced the finding. - TotalCount *int64 + TotalCount int64 } // Provides information about a custom data identifier. @@ -623,7 +623,7 @@ type CustomDetection struct { // The total number of occurrences of the sensitive data that the custom data // identifier detected. - Count *int64 + Count int64 // The name of the custom data identifier. Name *string @@ -644,7 +644,7 @@ type DailySchedule struct { type DefaultDetection struct { // The total number of occurrences of the type of sensitive data that was detected. - Count *int64 + Count int64 // The location of 1-15 occurrences of the sensitive data that was detected. A // finding includes location data for a maximum of 15 occurrences of sensitive @@ -697,7 +697,7 @@ type Finding struct { AccountId *string // Specifies whether the finding is archived. - Archived *bool + Archived bool // The category of the finding. Possible values are: CLASSIFICATION, for a // sensitive data finding; and, POLICY, for a policy finding. @@ -708,7 +708,7 @@ type Finding struct { ClassificationDetails *ClassificationDetails // The total number of occurrences of the finding. - Count *int64 + Count int64 // The date and time, in UTC and extended ISO 8601 format, when the finding was // created. @@ -736,7 +736,7 @@ type Finding struct { // Specifies whether the finding is a sample finding. A sample finding is a finding // that uses example data to demonstrate what a finding might contain. - Sample *bool + Sample bool // The version of the schema that was used to define the data structures in the // finding. @@ -796,7 +796,7 @@ type FindingCriteria struct { // A condition that specifies the property, operator, and value to use to filter // the results. - Criterion map[string]*CriterionAdditionalProperties + Criterion map[string]CriterionAdditionalProperties } // Provides information about a findings filter. @@ -818,7 +818,7 @@ type FindingsFilterListItem struct { // A map of key-value pairs that identifies the tags (keys and values) that are // associated with the filter. - Tags map[string]*string + Tags map[string]string } // Specifies criteria for sorting the results of a query that retrieves aggregated @@ -841,7 +841,7 @@ type FindingStatisticsSortCriteria struct { type GroupCount struct { // The total number of findings in the group of query results. - Count *int64 + Count int64 // The name of the property that defines the group in the query results, as // specified by the groupBy property in the query request. @@ -931,10 +931,10 @@ type IpCountry struct { type IpGeoLocation struct { // The latitude coordinate of the location, rounded to four decimal places. - Lat *float64 + Lat float64 // The longitude coordinate of the location, rounded to four decimal places. - Lon *float64 + Lon float64 } // Provides information about the registered owner of an IP address. @@ -989,7 +989,7 @@ type JobScopingBlock struct { // An array of conditions, one for each condition that determines which objects to // include or exclude from the job. - And []*JobScopeTerm + And []JobScopeTerm } // Provides information about a classification job, including the current status of @@ -997,7 +997,7 @@ type JobScopingBlock struct { type JobSummary struct { // The S3 buckets that the job is configured to analyze. - BucketDefinitions []*S3BucketDefinitionForJob + BucketDefinitions []S3BucketDefinitionForJob // The date and time, in UTC and extended ISO 8601 format, when the job was // created. @@ -1068,11 +1068,11 @@ type ListJobsFilterCriteria struct { // An array of objects, one for each condition that determines which jobs to // exclude from the results. - Excludes []*ListJobsFilterTerm + Excludes []ListJobsFilterTerm // An array of objects, one for each condition that determines which jobs to // include in the results. - Includes []*ListJobsFilterTerm + Includes []ListJobsFilterTerm } // Specifies a condition that filters the results of a request for information @@ -1087,7 +1087,7 @@ type ListJobsFilterTerm struct { Key ListJobsFilterKey // An array that lists one or more values to use to filter the results. - Values []*string + Values []string } // Specifies criteria for sorting the results of a request for information about @@ -1130,7 +1130,7 @@ type Member struct { // A map of key-value pairs that identifies the tags (keys and values) that are // associated with the account in Amazon Macie. - Tags map[string]*string + Tags map[string]string // The date and time, in UTC and extended ISO 8601 format, of the most recent // change to the status of the relationship between the account and the master @@ -1146,7 +1146,7 @@ type MonthlySchedule struct { // certain month, Macie runs the job on the last day of that month. For example, if // this value is 31 and a month has only 30 days, Macie runs the job on day 30 of // that month. - DayOfMonth *int32 + DayOfMonth int32 } // Provides information about the number of objects that are in an S3 bucket and @@ -1156,19 +1156,19 @@ type ObjectCountByEncryptionType struct { // The total number of objects that are encrypted using a customer-managed key. The // objects use customer-provided server-side (SSE-C) encryption. - CustomerManaged *int64 + CustomerManaged int64 // The total number of objects that are encrypted using an AWS Key Management // Service (AWS KMS) customer master key (CMK). The objects use AWS KMS AWS-managed // (AWS-KMS) encryption or AWS KMS customer-managed (SSE-KMS) encryption. - KmsManaged *int64 + KmsManaged int64 // The total number of objects that are encrypted using an Amazon S3-managed key. // The objects use Amazon S3-managed (SSE-S3) encryption. - S3Managed *int64 + S3Managed int64 // The total number of objects that aren't encrypted or use client-side encryption. - Unencrypted *int64 + Unencrypted int64 } // Provides information about the total storage size (in bytes) or number of @@ -1181,16 +1181,16 @@ type ObjectLevelStatistics struct { // The total storage size (in bytes) or number of objects that Amazon Macie can't // analyze because the objects don't have a file name extension for a supported // file or storage format. - FileType *int64 + FileType int64 // The total storage size (in bytes) or number of objects that Amazon Macie can't // analyze because the objects use an unsupported storage class. - StorageClass *int64 + StorageClass int64 // The total storage size (in bytes) or number of objects that Amazon Macie can't // analyze because the objects use an unsupported storage class or don't have a // file name extension for a supported file or storage format. - Total *int64 + Total int64 } // Provides the location of 1-15 occurrences of sensitive data that was detected by @@ -1201,7 +1201,7 @@ type Occurrences struct { // An array of objects, one for each occurrence of sensitive data in a Microsoft // Excel workbook, CSV file, or TSV file. Each object specifies the cell that // contains the data. This value is null for all other types of files. - Cells []*Cell + Cells []Cell // An array of objects, one for each occurrence of sensitive data in an Apache Avro // object container, Microsoft Word document, or non-binary text file, such as an @@ -1212,24 +1212,24 @@ type Occurrences struct { // file, or TSV file; data in unstructured sections of an otherwise structured // file, such as a comment in a file; and, data in a malformed file that Amazon // Macie analyzes as plain text. - LineRanges []*Range + LineRanges []Range // An array of objects, one for each occurrence of sensitive data in a binary text // file. Each object specifies the position of the data relative to the beginning // of the file. This value is typically null. For binary text files, Macie adds // location data to a lineRanges.Range or Page object, depending on the file type. - OffsetRanges []*Range + OffsetRanges []Range // An array of objects, one for each occurrence of sensitive data in an Adobe // Portable Document Format file. Each object specifies the page that contains the // data, and the position of the data on that page. This value is null for all // other types of files. - Pages []*Page + Pages []Page // An array of objects, one for each occurrence of sensitive data in an Apache // Parquet file. Each object specifies the row that contains the data. This value // is null for all other types of files. - Records []*Record + Records []Record } // Specifies the location of an occurrence of sensitive data in an Adobe Portable @@ -1243,7 +1243,7 @@ type Page struct { OffsetRange *Range // The page number of the page that contains the data. - PageNumber *int64 + PageNumber int64 } // Provides the details of a policy finding. @@ -1273,7 +1273,7 @@ type Range struct { // * In a Page object, the number of // lines (lineRange) or characters (offsetRange) from the beginning of the page to // the end of the sensitive data. - End *int64 + End int64 // Possible values are: // @@ -1287,11 +1287,11 @@ type Range struct { // * In a Page object, the number // of lines (lineRange) or characters (offsetRange) from the beginning of the page // to the beginning of the sensitive data. - Start *int64 + Start int64 // The column number for the column that contains the data, if the file contains // structured data. - StartColumn *int64 + StartColumn int64 } // Specifies the location of an occurrence of sensitive data in an Apache Parquet @@ -1299,7 +1299,7 @@ type Range struct { type Record struct { // The row index, starting from 0, for the row that contains the data. - RecordIndex *int64 + RecordIndex int64 } // Provides information about settings that define whether one or more objects in @@ -1309,15 +1309,15 @@ type ReplicationDetails struct { // Specifies whether the bucket is configured to replicate one or more objects to // any destination. - Replicated *bool + Replicated bool // Specifies whether the bucket is configured to replicate one or more objects to // an AWS account that isn't part of the same Amazon Macie organization. - ReplicatedExternally *bool + ReplicatedExternally bool // An array of AWS account IDs, one for each AWS account that the bucket is // configured to replicate one or more objects to. - ReplicationAccounts []*string + ReplicationAccounts []string } // Provides information about the resources that a finding applies to. @@ -1357,7 +1357,7 @@ type S3Bucket struct { PublicAccess *BucketPublicAccess // The tags that are associated with the bucket. - Tags []*KeyValuePair + Tags []KeyValuePair } // Specifies which S3 buckets contain the objects that a classification job @@ -1370,7 +1370,7 @@ type S3BucketDefinitionForJob struct { AccountId *string // An array that lists the names of the buckets. - Buckets []*string + Buckets []string } // Provides information about the user who owns an S3 bucket. @@ -1409,7 +1409,7 @@ type S3Destination struct { type S3JobDefinition struct { // An array of objects, one for each bucket that contains objects to analyze. - BucketDefinitions []*S3BucketDefinitionForJob + BucketDefinitions []S3BucketDefinitionForJob // The property- and tag-based conditions that determine which objects to include // or exclude from the analysis. @@ -1443,19 +1443,19 @@ type S3Object struct { // Specifies whether the object is publicly accessible due to the combination of // permissions settings that apply to the object. - PublicAccess *bool + PublicAccess bool // The type of server-side encryption that's used for the object. ServerSideEncryption *ServerSideEncryption // The total storage size, in bytes, of the object. - Size *int64 + Size int64 // The storage class of the object. StorageClass StorageClass // The tags that are associated with the object. - Tags []*KeyValuePair + Tags []KeyValuePair // The identifier for the affected version of the object. VersionId *string @@ -1490,10 +1490,10 @@ type SensitiveDataItem struct { // An array of objects, one for each type of sensitive data that was detected. Each // object reports the number of occurrences of a specific type of sensitive data // that was detected, and the location of up to 15 of those occurrences. - Detections []*DefaultDetection + Detections []DefaultDetection // The total number of occurrences of the sensitive data that was detected. - TotalCount *int64 + TotalCount int64 } // Provides information about the server-side encryption settings for an S3 bucket @@ -1516,14 +1516,14 @@ type ServiceLimit struct { // Specifies whether the account has met the quota that corresponds to the metric // specified by the UsageByAccount.type field in the response. - IsServiceLimited *bool + IsServiceLimited bool // The unit of measurement for the value specified by the value field. Unit Unit // The value for the metric specified by the UsageByAccount.type field in the // response. - Value *int64 + Value int64 } // Provides information about a session that was created for an entity that @@ -1547,7 +1547,7 @@ type SessionContextAttributes struct { // Specifies whether the credentials were authenticated with a multi-factor // authentication (MFA) device. - MfaAuthenticated *bool + MfaAuthenticated bool } // Provides information about the source and type of temporary security credentials @@ -1584,7 +1584,7 @@ type Severity struct { // The numerical representation of the finding's severity, ranging from 1 (least // severe) to 3 (most severe). - Score *int64 + Score int64 } // Specifies a property-based condition that determines whether an object is @@ -1628,7 +1628,7 @@ type SimpleScopeTerm struct { // string that represents a tag key for an object. For advanced options, use a // TagScopeTerm object, instead of a SimpleScopeTerm object, to define a tag-based // condition for the job. - Values []*string + Values []string } // Specifies criteria for sorting the results of a request for findings. @@ -1649,10 +1649,10 @@ type Statistics struct { // The approximate number of objects that the job has yet to process during its // current run. - ApproximateNumberOfObjectsToProcess *float64 + ApproximateNumberOfObjectsToProcess float64 // The number of times that the job has run. - NumberOfRuns *float64 + NumberOfRuns float64 } // Specifies a tag-based condition that determines whether an object is included or @@ -1667,7 +1667,7 @@ type TagScopeTerm struct { Key *string // The tag keys or tag key and value pairs to use in the condition. - TagValues []*TagValuePair + TagValues []TagValuePair // The type of object to apply the condition to. Target TagTarget @@ -1735,7 +1735,7 @@ type UsageRecord struct { // An array of objects that contains usage data and quotas for the account. Each // object contains the data for a specific usage metric and the corresponding // quota. - Usage []*UsageByAccount + Usage []UsageByAccount } // Specifies a condition for filtering the results of a query for account quotas @@ -1767,7 +1767,7 @@ type UsageStatisticsFilter struct { // // * total - A string that // represents the current, estimated month-to-date cost for an account. - Values []*string + Values []string } // Specifies criteria for sorting the results of a query for account quotas and diff --git a/service/macie2/validators.go b/service/macie2/validators.go index 19a2998855c..0a30ee86e4a 100644 --- a/service/macie2/validators.go +++ b/service/macie2/validators.go @@ -1186,9 +1186,6 @@ func validateOpUpdateOrganizationConfigurationInput(v *UpdateOrganizationConfigu return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateOrganizationConfigurationInput"} - if v.AutoEnable == nil { - invalidParams.Add(smithy.NewErrParamRequired("AutoEnable")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/managedblockchain/api_op_ListInvitations.go b/service/managedblockchain/api_op_ListInvitations.go index 11568aa3ea5..43f8dcb0600 100644 --- a/service/managedblockchain/api_op_ListInvitations.go +++ b/service/managedblockchain/api_op_ListInvitations.go @@ -39,7 +39,7 @@ type ListInvitationsInput struct { type ListInvitationsOutput struct { // The invitations for the network. - Invitations []*types.Invitation + Invitations []types.Invitation // The pagination token that indicates the next set of results to retrieve. NextToken *string diff --git a/service/managedblockchain/api_op_ListMembers.go b/service/managedblockchain/api_op_ListMembers.go index de34e600c91..1925ff3885b 100644 --- a/service/managedblockchain/api_op_ListMembers.go +++ b/service/managedblockchain/api_op_ListMembers.go @@ -58,7 +58,7 @@ type ListMembersOutput struct { // An array of MemberSummary objects. Each object contains details about a network // member. - Members []*types.MemberSummary + Members []types.MemberSummary // The pagination token that indicates the next set of results to retrieve. NextToken *string diff --git a/service/managedblockchain/api_op_ListNetworks.go b/service/managedblockchain/api_op_ListNetworks.go index 2171195ed6b..06c3f85b6fa 100644 --- a/service/managedblockchain/api_op_ListNetworks.go +++ b/service/managedblockchain/api_op_ListNetworks.go @@ -52,7 +52,7 @@ type ListNetworksOutput struct { // An array of NetworkSummary objects that contain configuration properties for // each network. - Networks []*types.NetworkSummary + Networks []types.NetworkSummary // The pagination token that indicates the next set of results to retrieve. NextToken *string diff --git a/service/managedblockchain/api_op_ListNodes.go b/service/managedblockchain/api_op_ListNodes.go index 81b2f222406..2bfac549144 100644 --- a/service/managedblockchain/api_op_ListNodes.go +++ b/service/managedblockchain/api_op_ListNodes.go @@ -57,7 +57,7 @@ type ListNodesOutput struct { // An array of NodeSummary objects that contain configuration properties for each // node. - Nodes []*types.NodeSummary + Nodes []types.NodeSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/managedblockchain/api_op_ListProposalVotes.go b/service/managedblockchain/api_op_ListProposalVotes.go index 5d19412740d..3edfec25ddf 100644 --- a/service/managedblockchain/api_op_ListProposalVotes.go +++ b/service/managedblockchain/api_op_ListProposalVotes.go @@ -53,7 +53,7 @@ type ListProposalVotesOutput struct { NextToken *string // The listing of votes. - ProposalVotes []*types.VoteSummary + ProposalVotes []types.VoteSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/managedblockchain/api_op_ListProposals.go b/service/managedblockchain/api_op_ListProposals.go index 6fe6dd54b79..a5af9b21134 100644 --- a/service/managedblockchain/api_op_ListProposals.go +++ b/service/managedblockchain/api_op_ListProposals.go @@ -47,7 +47,7 @@ type ListProposalsOutput struct { NextToken *string // The summary of each proposal made on the network. - Proposals []*types.ProposalSummary + Proposals []types.ProposalSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/managedblockchain/deserializers.go b/service/managedblockchain/deserializers.go index e45a8a610e6..71e2218e01e 100644 --- a/service/managedblockchain/deserializers.go +++ b/service/managedblockchain/deserializers.go @@ -179,7 +179,7 @@ func awsRestjson1_deserializeOpDocumentCreateMemberOutput(v **CreateMemberOutput if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.MemberId = &jtv + sv.MemberId = ptr.String(jtv) } default: @@ -345,7 +345,7 @@ func awsRestjson1_deserializeOpDocumentCreateNetworkOutput(v **CreateNetworkOutp if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.MemberId = &jtv + sv.MemberId = ptr.String(jtv) } case "NetworkId": @@ -354,7 +354,7 @@ func awsRestjson1_deserializeOpDocumentCreateNetworkOutput(v **CreateNetworkOutp if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.NetworkId = &jtv + sv.NetworkId = ptr.String(jtv) } default: @@ -526,7 +526,7 @@ func awsRestjson1_deserializeOpDocumentCreateNodeOutput(v **CreateNodeOutput, va if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.NodeId = &jtv + sv.NodeId = ptr.String(jtv) } default: @@ -692,7 +692,7 @@ func awsRestjson1_deserializeOpDocumentCreateProposalOutput(v **CreateProposalOu if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.ProposalId = &jtv + sv.ProposalId = ptr.String(jtv) } default: @@ -1695,7 +1695,7 @@ func awsRestjson1_deserializeOpDocumentListInvitationsOutput(v **ListInvitations if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1860,7 +1860,7 @@ func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2025,7 +2025,7 @@ func awsRestjson1_deserializeOpDocumentListNetworksOutput(v **ListNetworksOutput if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2185,7 +2185,7 @@ func awsRestjson1_deserializeOpDocumentListNodesOutput(v **ListNodesOutput, valu if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Nodes": @@ -2353,7 +2353,7 @@ func awsRestjson1_deserializeOpDocumentListProposalsOutput(v **ListProposalsOutp if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Proposals": @@ -2518,7 +2518,7 @@ func awsRestjson1_deserializeOpDocumentListProposalVotesOutput(v **ListProposalV if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ProposalVotes": @@ -3277,7 +3277,7 @@ func awsRestjson1_deserializeDocumentIllegalActionException(v **types.IllegalAct if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3348,7 +3348,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3392,7 +3392,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case "ExpirationDate": @@ -3405,7 +3405,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if err != nil { return err } - sv.ExpirationDate = &t + sv.ExpirationDate = ptr.Time(t) } case "InvitationId": @@ -3414,7 +3414,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.InvitationId = &jtv + sv.InvitationId = ptr.String(jtv) } case "NetworkSummary": @@ -3440,7 +3440,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte return nil } -func awsRestjson1_deserializeDocumentInvitationList(v *[]*types.Invitation, value interface{}) error { +func awsRestjson1_deserializeDocumentInvitationList(v *[]types.Invitation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3453,18 +3453,20 @@ func awsRestjson1_deserializeDocumentInvitationList(v *[]*types.Invitation, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Invitation + var cv []types.Invitation if *v == nil { - cv = []*types.Invitation{} + cv = []types.Invitation{} } else { cv = *v } for _, value := range shape { - var col *types.Invitation - if err := awsRestjson1_deserializeDocumentInvitation(&col, value); err != nil { + var col types.Invitation + destAddr := &col + if err := awsRestjson1_deserializeDocumentInvitation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3500,7 +3502,7 @@ func awsRestjson1_deserializeDocumentInviteAction(v **types.InviteAction, value if !ok { return fmt.Errorf("expected PrincipalString to be of type string, got %T instead", value) } - sv.Principal = &jtv + sv.Principal = ptr.String(jtv) } default: @@ -3512,7 +3514,7 @@ func awsRestjson1_deserializeDocumentInviteAction(v **types.InviteAction, value return nil } -func awsRestjson1_deserializeDocumentInviteActionList(v *[]*types.InviteAction, value interface{}) error { +func awsRestjson1_deserializeDocumentInviteActionList(v *[]types.InviteAction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3525,18 +3527,20 @@ func awsRestjson1_deserializeDocumentInviteActionList(v *[]*types.InviteAction, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InviteAction + var cv []types.InviteAction if *v == nil { - cv = []*types.InviteAction{} + cv = []types.InviteAction{} } else { cv = *v } for _, value := range shape { - var col *types.InviteAction - if err := awsRestjson1_deserializeDocumentInviteAction(&col, value); err != nil { + var col types.InviteAction + destAddr := &col + if err := awsRestjson1_deserializeDocumentInviteAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3572,7 +3576,7 @@ func awsRestjson1_deserializeDocumentLogConfiguration(v **types.LogConfiguration if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } default: @@ -3652,7 +3656,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case "Description": @@ -3661,7 +3665,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "FrameworkAttributes": @@ -3675,7 +3679,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LogPublishingConfiguration": @@ -3689,7 +3693,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected NetworkMemberNameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NetworkId": @@ -3698,7 +3702,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.NetworkId = &jtv + sv.NetworkId = ptr.String(jtv) } case "Status": @@ -3747,7 +3751,7 @@ func awsRestjson1_deserializeDocumentMemberFabricAttributes(v **types.MemberFabr if !ok { return fmt.Errorf("expected UsernameString to be of type string, got %T instead", value) } - sv.AdminUsername = &jtv + sv.AdminUsername = ptr.String(jtv) } case "CaEndpoint": @@ -3756,7 +3760,7 @@ func awsRestjson1_deserializeDocumentMemberFabricAttributes(v **types.MemberFabr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CaEndpoint = &jtv + sv.CaEndpoint = ptr.String(jtv) } default: @@ -3908,7 +3912,7 @@ func awsRestjson1_deserializeDocumentMemberSummary(v **types.MemberSummary, valu if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case "Description": @@ -3917,7 +3921,7 @@ func awsRestjson1_deserializeDocumentMemberSummary(v **types.MemberSummary, valu if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -3926,7 +3930,7 @@ func awsRestjson1_deserializeDocumentMemberSummary(v **types.MemberSummary, valu if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IsOwned": @@ -3935,7 +3939,7 @@ func awsRestjson1_deserializeDocumentMemberSummary(v **types.MemberSummary, valu if !ok { return fmt.Errorf("expected IsOwned to be of type *bool, got %T instead", value) } - sv.IsOwned = &jtv + sv.IsOwned = ptr.Bool(jtv) } case "Name": @@ -3944,7 +3948,7 @@ func awsRestjson1_deserializeDocumentMemberSummary(v **types.MemberSummary, valu if !ok { return fmt.Errorf("expected NetworkMemberNameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -3965,7 +3969,7 @@ func awsRestjson1_deserializeDocumentMemberSummary(v **types.MemberSummary, valu return nil } -func awsRestjson1_deserializeDocumentMemberSummaryList(v *[]*types.MemberSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentMemberSummaryList(v *[]types.MemberSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3978,18 +3982,20 @@ func awsRestjson1_deserializeDocumentMemberSummaryList(v *[]*types.MemberSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MemberSummary + var cv []types.MemberSummary if *v == nil { - cv = []*types.MemberSummary{} + cv = []types.MemberSummary{} } else { cv = *v } for _, value := range shape { - var col *types.MemberSummary - if err := awsRestjson1_deserializeDocumentMemberSummary(&col, value); err != nil { + var col types.MemberSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentMemberSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4029,7 +4035,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case "Description": @@ -4038,7 +4044,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Framework": @@ -4061,7 +4067,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if !ok { return fmt.Errorf("expected FrameworkVersionString to be of type string, got %T instead", value) } - sv.FrameworkVersion = &jtv + sv.FrameworkVersion = ptr.String(jtv) } case "Id": @@ -4070,7 +4076,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -4079,7 +4085,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -4102,7 +4108,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VpcEndpointServiceName = &jtv + sv.VpcEndpointServiceName = ptr.String(jtv) } default: @@ -4151,7 +4157,7 @@ func awsRestjson1_deserializeDocumentNetworkFabricAttributes(v **types.NetworkFa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OrderingServiceEndpoint = &jtv + sv.OrderingServiceEndpoint = ptr.String(jtv) } default: @@ -4231,7 +4237,7 @@ func awsRestjson1_deserializeDocumentNetworkSummary(v **types.NetworkSummary, va if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case "Description": @@ -4240,7 +4246,7 @@ func awsRestjson1_deserializeDocumentNetworkSummary(v **types.NetworkSummary, va if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Framework": @@ -4258,7 +4264,7 @@ func awsRestjson1_deserializeDocumentNetworkSummary(v **types.NetworkSummary, va if !ok { return fmt.Errorf("expected FrameworkVersionString to be of type string, got %T instead", value) } - sv.FrameworkVersion = &jtv + sv.FrameworkVersion = ptr.String(jtv) } case "Id": @@ -4267,7 +4273,7 @@ func awsRestjson1_deserializeDocumentNetworkSummary(v **types.NetworkSummary, va if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -4276,7 +4282,7 @@ func awsRestjson1_deserializeDocumentNetworkSummary(v **types.NetworkSummary, va if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -4297,7 +4303,7 @@ func awsRestjson1_deserializeDocumentNetworkSummary(v **types.NetworkSummary, va return nil } -func awsRestjson1_deserializeDocumentNetworkSummaryList(v *[]*types.NetworkSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentNetworkSummaryList(v *[]types.NetworkSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4310,18 +4316,20 @@ func awsRestjson1_deserializeDocumentNetworkSummaryList(v *[]*types.NetworkSumma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NetworkSummary + var cv []types.NetworkSummary if *v == nil { - cv = []*types.NetworkSummary{} + cv = []types.NetworkSummary{} } else { cv = *v } for _, value := range shape { - var col *types.NetworkSummary - if err := awsRestjson1_deserializeDocumentNetworkSummary(&col, value); err != nil { + var col types.NetworkSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentNetworkSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4357,7 +4365,7 @@ func awsRestjson1_deserializeDocumentNode(v **types.Node, value interface{}) err if !ok { return fmt.Errorf("expected AvailabilityZoneString to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "CreationDate": @@ -4370,7 +4378,7 @@ func awsRestjson1_deserializeDocumentNode(v **types.Node, value interface{}) err if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case "FrameworkAttributes": @@ -4384,7 +4392,7 @@ func awsRestjson1_deserializeDocumentNode(v **types.Node, value interface{}) err if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "InstanceType": @@ -4393,7 +4401,7 @@ func awsRestjson1_deserializeDocumentNode(v **types.Node, value interface{}) err if !ok { return fmt.Errorf("expected InstanceTypeString to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "LogPublishingConfiguration": @@ -4407,7 +4415,7 @@ func awsRestjson1_deserializeDocumentNode(v **types.Node, value interface{}) err if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.MemberId = &jtv + sv.MemberId = ptr.String(jtv) } case "NetworkId": @@ -4416,7 +4424,7 @@ func awsRestjson1_deserializeDocumentNode(v **types.Node, value interface{}) err if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.NetworkId = &jtv + sv.NetworkId = ptr.String(jtv) } case "StateDB": @@ -4474,7 +4482,7 @@ func awsRestjson1_deserializeDocumentNodeFabricAttributes(v **types.NodeFabricAt if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PeerEndpoint = &jtv + sv.PeerEndpoint = ptr.String(jtv) } case "PeerEventEndpoint": @@ -4483,7 +4491,7 @@ func awsRestjson1_deserializeDocumentNodeFabricAttributes(v **types.NodeFabricAt if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PeerEventEndpoint = &jtv + sv.PeerEventEndpoint = ptr.String(jtv) } default: @@ -4636,7 +4644,7 @@ func awsRestjson1_deserializeDocumentNodeSummary(v **types.NodeSummary, value in if !ok { return fmt.Errorf("expected AvailabilityZoneString to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "CreationDate": @@ -4649,7 +4657,7 @@ func awsRestjson1_deserializeDocumentNodeSummary(v **types.NodeSummary, value in if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case "Id": @@ -4658,7 +4666,7 @@ func awsRestjson1_deserializeDocumentNodeSummary(v **types.NodeSummary, value in if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "InstanceType": @@ -4667,7 +4675,7 @@ func awsRestjson1_deserializeDocumentNodeSummary(v **types.NodeSummary, value in if !ok { return fmt.Errorf("expected InstanceTypeString to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "Status": @@ -4688,7 +4696,7 @@ func awsRestjson1_deserializeDocumentNodeSummary(v **types.NodeSummary, value in return nil } -func awsRestjson1_deserializeDocumentNodeSummaryList(v *[]*types.NodeSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentNodeSummaryList(v *[]types.NodeSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4701,18 +4709,20 @@ func awsRestjson1_deserializeDocumentNodeSummaryList(v *[]*types.NodeSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NodeSummary + var cv []types.NodeSummary if *v == nil { - cv = []*types.NodeSummary{} + cv = []types.NodeSummary{} } else { cv = *v } for _, value := range shape { - var col *types.NodeSummary - if err := awsRestjson1_deserializeDocumentNodeSummary(&col, value); err != nil { + var col types.NodeSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentNodeSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4757,7 +4767,7 @@ func awsRestjson1_deserializeDocumentProposal(v **types.Proposal, value interfac if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case "Description": @@ -4766,7 +4776,7 @@ func awsRestjson1_deserializeDocumentProposal(v **types.Proposal, value interfac if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ExpirationDate": @@ -4779,7 +4789,7 @@ func awsRestjson1_deserializeDocumentProposal(v **types.Proposal, value interfac if err != nil { return err } - sv.ExpirationDate = &t + sv.ExpirationDate = ptr.Time(t) } case "NetworkId": @@ -4788,7 +4798,7 @@ func awsRestjson1_deserializeDocumentProposal(v **types.Proposal, value interfac if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.NetworkId = &jtv + sv.NetworkId = ptr.String(jtv) } case "NoVoteCount": @@ -4823,7 +4833,7 @@ func awsRestjson1_deserializeDocumentProposal(v **types.Proposal, value interfac if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.ProposalId = &jtv + sv.ProposalId = ptr.String(jtv) } case "ProposedByMemberId": @@ -4832,7 +4842,7 @@ func awsRestjson1_deserializeDocumentProposal(v **types.Proposal, value interfac if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.ProposedByMemberId = &jtv + sv.ProposedByMemberId = ptr.String(jtv) } case "ProposedByMemberName": @@ -4841,7 +4851,7 @@ func awsRestjson1_deserializeDocumentProposal(v **types.Proposal, value interfac if !ok { return fmt.Errorf("expected NetworkMemberNameString to be of type string, got %T instead", value) } - sv.ProposedByMemberName = &jtv + sv.ProposedByMemberName = ptr.String(jtv) } case "Status": @@ -4948,7 +4958,7 @@ func awsRestjson1_deserializeDocumentProposalSummary(v **types.ProposalSummary, if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case "Description": @@ -4957,7 +4967,7 @@ func awsRestjson1_deserializeDocumentProposalSummary(v **types.ProposalSummary, if !ok { return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ExpirationDate": @@ -4970,7 +4980,7 @@ func awsRestjson1_deserializeDocumentProposalSummary(v **types.ProposalSummary, if err != nil { return err } - sv.ExpirationDate = &t + sv.ExpirationDate = ptr.Time(t) } case "ProposalId": @@ -4979,7 +4989,7 @@ func awsRestjson1_deserializeDocumentProposalSummary(v **types.ProposalSummary, if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.ProposalId = &jtv + sv.ProposalId = ptr.String(jtv) } case "ProposedByMemberId": @@ -4988,7 +4998,7 @@ func awsRestjson1_deserializeDocumentProposalSummary(v **types.ProposalSummary, if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.ProposedByMemberId = &jtv + sv.ProposedByMemberId = ptr.String(jtv) } case "ProposedByMemberName": @@ -4997,7 +5007,7 @@ func awsRestjson1_deserializeDocumentProposalSummary(v **types.ProposalSummary, if !ok { return fmt.Errorf("expected NetworkMemberNameString to be of type string, got %T instead", value) } - sv.ProposedByMemberName = &jtv + sv.ProposedByMemberName = ptr.String(jtv) } case "Status": @@ -5018,7 +5028,7 @@ func awsRestjson1_deserializeDocumentProposalSummary(v **types.ProposalSummary, return nil } -func awsRestjson1_deserializeDocumentProposalSummaryList(v *[]*types.ProposalSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentProposalSummaryList(v *[]types.ProposalSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5031,18 +5041,20 @@ func awsRestjson1_deserializeDocumentProposalSummaryList(v *[]*types.ProposalSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProposalSummary + var cv []types.ProposalSummary if *v == nil { - cv = []*types.ProposalSummary{} + cv = []types.ProposalSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProposalSummary - if err := awsRestjson1_deserializeDocumentProposalSummary(&col, value); err != nil { + var col types.ProposalSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentProposalSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5050,7 +5062,7 @@ func awsRestjson1_deserializeDocumentProposalSummaryList(v *[]*types.ProposalSum return nil } -func awsRestjson1_deserializeDocumentProposalVoteList(v *[]*types.VoteSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentProposalVoteList(v *[]types.VoteSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5063,18 +5075,20 @@ func awsRestjson1_deserializeDocumentProposalVoteList(v *[]*types.VoteSummary, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VoteSummary + var cv []types.VoteSummary if *v == nil { - cv = []*types.VoteSummary{} + cv = []types.VoteSummary{} } else { cv = *v } for _, value := range shape { - var col *types.VoteSummary - if err := awsRestjson1_deserializeDocumentVoteSummary(&col, value); err != nil { + var col types.VoteSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentVoteSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5110,7 +5124,7 @@ func awsRestjson1_deserializeDocumentRemoveAction(v **types.RemoveAction, value if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.MemberId = &jtv + sv.MemberId = ptr.String(jtv) } default: @@ -5122,7 +5136,7 @@ func awsRestjson1_deserializeDocumentRemoveAction(v **types.RemoveAction, value return nil } -func awsRestjson1_deserializeDocumentRemoveActionList(v *[]*types.RemoveAction, value interface{}) error { +func awsRestjson1_deserializeDocumentRemoveActionList(v *[]types.RemoveAction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5135,18 +5149,20 @@ func awsRestjson1_deserializeDocumentRemoveActionList(v *[]*types.RemoveAction, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RemoveAction + var cv []types.RemoveAction if *v == nil { - cv = []*types.RemoveAction{} + cv = []types.RemoveAction{} } else { cv = *v } for _, value := range shape { - var col *types.RemoveAction - if err := awsRestjson1_deserializeDocumentRemoveAction(&col, value); err != nil { + var col types.RemoveAction + destAddr := &col + if err := awsRestjson1_deserializeDocumentRemoveAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5182,7 +5198,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5222,7 +5238,7 @@ func awsRestjson1_deserializeDocumentResourceLimitExceededException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5262,7 +5278,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5302,7 +5318,7 @@ func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5373,7 +5389,7 @@ func awsRestjson1_deserializeDocumentVoteSummary(v **types.VoteSummary, value in if !ok { return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.MemberId = &jtv + sv.MemberId = ptr.String(jtv) } case "MemberName": @@ -5382,7 +5398,7 @@ func awsRestjson1_deserializeDocumentVoteSummary(v **types.VoteSummary, value in if !ok { return fmt.Errorf("expected NetworkMemberNameString to be of type string, got %T instead", value) } - sv.MemberName = &jtv + sv.MemberName = ptr.String(jtv) } case "Vote": diff --git a/service/managedblockchain/go.mod b/service/managedblockchain/go.mod index f3305de5996..78a1dc0ca00 100644 --- a/service/managedblockchain/go.mod +++ b/service/managedblockchain/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/managedblockchain go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/managedblockchain/serializers.go b/service/managedblockchain/serializers.go index 395f0a7c02a..c42f19207cf 100644 --- a/service/managedblockchain/serializers.go +++ b/service/managedblockchain/serializers.go @@ -76,13 +76,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateMemberInput(v *CreateMemberInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } @@ -291,25 +288,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateNodeInput(v *CreateNodeInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MemberId == nil { + if v.MemberId == nil || len(*v.MemberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} } if v.MemberId != nil { - if len(*v.MemberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} - } if err := encoder.SetURI("MemberId").String(*v.MemberId); err != nil { return err } } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } @@ -399,13 +390,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateProposalInput(v *CreateProposalIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } @@ -494,25 +482,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMemberInput(v *DeleteMemberInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MemberId == nil { + if v.MemberId == nil || len(*v.MemberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} } if v.MemberId != nil { - if len(*v.MemberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} - } if err := encoder.SetURI("MemberId").String(*v.MemberId); err != nil { return err } } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } @@ -572,37 +554,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteNodeInput(v *DeleteNodeInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MemberId == nil { + if v.MemberId == nil || len(*v.MemberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} } if v.MemberId != nil { - if len(*v.MemberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} - } if err := encoder.SetURI("MemberId").String(*v.MemberId); err != nil { return err } } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } } - if v.NodeId == nil { + if v.NodeId == nil || len(*v.NodeId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NodeId must not be empty")} } if v.NodeId != nil { - if len(*v.NodeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NodeId must not be empty")} - } if err := encoder.SetURI("NodeId").String(*v.NodeId); err != nil { return err } @@ -662,25 +635,19 @@ func awsRestjson1_serializeOpHttpBindingsGetMemberInput(v *GetMemberInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MemberId == nil { + if v.MemberId == nil || len(*v.MemberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} } if v.MemberId != nil { - if len(*v.MemberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} - } if err := encoder.SetURI("MemberId").String(*v.MemberId); err != nil { return err } } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } @@ -740,13 +707,10 @@ func awsRestjson1_serializeOpHttpBindingsGetNetworkInput(v *GetNetworkInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } @@ -806,37 +770,28 @@ func awsRestjson1_serializeOpHttpBindingsGetNodeInput(v *GetNodeInput, encoder * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MemberId == nil { + if v.MemberId == nil || len(*v.MemberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} } if v.MemberId != nil { - if len(*v.MemberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} - } if err := encoder.SetURI("MemberId").String(*v.MemberId); err != nil { return err } } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } } - if v.NodeId == nil { + if v.NodeId == nil || len(*v.NodeId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NodeId must not be empty")} } if v.NodeId != nil { - if len(*v.NodeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NodeId must not be empty")} - } if err := encoder.SetURI("NodeId").String(*v.NodeId); err != nil { return err } @@ -896,25 +851,19 @@ func awsRestjson1_serializeOpHttpBindingsGetProposalInput(v *GetProposalInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } } - if v.ProposalId == nil { + if v.ProposalId == nil || len(*v.ProposalId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ProposalId must not be empty")} } if v.ProposalId != nil { - if len(*v.ProposalId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ProposalId must not be empty")} - } if err := encoder.SetURI("ProposalId").String(*v.ProposalId); err != nil { return err } @@ -1048,13 +997,10 @@ func awsRestjson1_serializeOpHttpBindingsListMembersInput(v *ListMembersInput, e encoder.SetQuery("name").String(*v.Name) } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } @@ -1200,25 +1146,19 @@ func awsRestjson1_serializeOpHttpBindingsListNodesInput(v *ListNodesInput, encod encoder.SetQuery("maxResults").Integer(*v.MaxResults) } - if v.MemberId == nil { + if v.MemberId == nil || len(*v.MemberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} } if v.MemberId != nil { - if len(*v.MemberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} - } if err := encoder.SetURI("MemberId").String(*v.MemberId); err != nil { return err } } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } @@ -1290,13 +1230,10 @@ func awsRestjson1_serializeOpHttpBindingsListProposalsInput(v *ListProposalsInpu encoder.SetQuery("maxResults").Integer(*v.MaxResults) } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } @@ -1364,13 +1301,10 @@ func awsRestjson1_serializeOpHttpBindingsListProposalVotesInput(v *ListProposalV encoder.SetQuery("maxResults").Integer(*v.MaxResults) } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } @@ -1380,13 +1314,10 @@ func awsRestjson1_serializeOpHttpBindingsListProposalVotesInput(v *ListProposalV encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.ProposalId == nil { + if v.ProposalId == nil || len(*v.ProposalId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ProposalId must not be empty")} } if v.ProposalId != nil { - if len(*v.ProposalId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ProposalId must not be empty")} - } if err := encoder.SetURI("ProposalId").String(*v.ProposalId); err != nil { return err } @@ -1446,13 +1377,10 @@ func awsRestjson1_serializeOpHttpBindingsRejectInvitationInput(v *RejectInvitati return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InvitationId == nil { + if v.InvitationId == nil || len(*v.InvitationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InvitationId must not be empty")} } if v.InvitationId != nil { - if len(*v.InvitationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InvitationId must not be empty")} - } if err := encoder.SetURI("InvitationId").String(*v.InvitationId); err != nil { return err } @@ -1523,25 +1451,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateMemberInput(v *UpdateMemberInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MemberId == nil { + if v.MemberId == nil || len(*v.MemberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} } if v.MemberId != nil { - if len(*v.MemberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} - } if err := encoder.SetURI("MemberId").String(*v.MemberId); err != nil { return err } } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } @@ -1626,37 +1548,28 @@ func awsRestjson1_serializeOpHttpBindingsUpdateNodeInput(v *UpdateNodeInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MemberId == nil { + if v.MemberId == nil || len(*v.MemberId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} } if v.MemberId != nil { - if len(*v.MemberId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MemberId must not be empty")} - } if err := encoder.SetURI("MemberId").String(*v.MemberId); err != nil { return err } } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } } - if v.NodeId == nil { + if v.NodeId == nil || len(*v.NodeId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NodeId must not be empty")} } if v.NodeId != nil { - if len(*v.NodeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NodeId must not be empty")} - } if err := encoder.SetURI("NodeId").String(*v.NodeId); err != nil { return err } @@ -1741,25 +1654,19 @@ func awsRestjson1_serializeOpHttpBindingsVoteOnProposalInput(v *VoteOnProposalIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.NetworkId == nil { + if v.NetworkId == nil || len(*v.NetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} } if v.NetworkId != nil { - if len(*v.NetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member NetworkId must not be empty")} - } if err := encoder.SetURI("NetworkId").String(*v.NetworkId); err != nil { return err } } - if v.ProposalId == nil { + if v.ProposalId == nil || len(*v.ProposalId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ProposalId must not be empty")} } if v.ProposalId != nil { - if len(*v.ProposalId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ProposalId must not be empty")} - } if err := encoder.SetURI("ProposalId").String(*v.ProposalId); err != nil { return err } @@ -1819,17 +1726,13 @@ func awsRestjson1_serializeDocumentInviteAction(v *types.InviteAction, value smi return nil } -func awsRestjson1_serializeDocumentInviteActionList(v []*types.InviteAction, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentInviteActionList(v []types.InviteAction, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInviteAction(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInviteAction(&v[i], av); err != nil { return err } } @@ -2075,17 +1978,13 @@ func awsRestjson1_serializeDocumentRemoveAction(v *types.RemoveAction, value smi return nil } -func awsRestjson1_serializeDocumentRemoveActionList(v []*types.RemoveAction, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRemoveActionList(v []types.RemoveAction, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentRemoveAction(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentRemoveAction(&v[i], av); err != nil { return err } } diff --git a/service/managedblockchain/types/types.go b/service/managedblockchain/types/types.go index 2707dd6bff1..1332551bfbc 100644 --- a/service/managedblockchain/types/types.go +++ b/service/managedblockchain/types/types.go @@ -572,12 +572,12 @@ type ProposalActions struct { // The actions to perform for an APPROVED proposal to invite an AWS account to // create a member and join the network. - Invitations []*InviteAction + Invitations []InviteAction // The actions to perform for an APPROVED proposal to remove a member from the // network, which deletes the member and all associated member resources from the // network. - Removals []*RemoveAction + Removals []RemoveAction } // Properties of a proposal. diff --git a/service/managedblockchain/validators.go b/service/managedblockchain/validators.go index a2b61669846..bfbd27f8f75 100644 --- a/service/managedblockchain/validators.go +++ b/service/managedblockchain/validators.go @@ -457,13 +457,13 @@ func validateInviteAction(v *types.InviteAction) error { } } -func validateInviteActionList(v []*types.InviteAction) error { +func validateInviteActionList(v []types.InviteAction) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InviteActionList"} for i := range v { - if err := validateInviteAction(v[i]); err != nil { + if err := validateInviteAction(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -618,13 +618,13 @@ func validateRemoveAction(v *types.RemoveAction) error { } } -func validateRemoveActionList(v []*types.RemoveAction) error { +func validateRemoveActionList(v []types.RemoveAction) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RemoveActionList"} for i := range v { - if err := validateRemoveAction(v[i]); err != nil { + if err := validateRemoveAction(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/marketplacecatalog/api_op_DescribeChangeSet.go b/service/marketplacecatalog/api_op_DescribeChangeSet.go index beb738a2053..f9259d34485 100644 --- a/service/marketplacecatalog/api_op_DescribeChangeSet.go +++ b/service/marketplacecatalog/api_op_DescribeChangeSet.go @@ -44,7 +44,7 @@ type DescribeChangeSetInput struct { type DescribeChangeSetOutput struct { // An array of ChangeSummary objects. - ChangeSet []*types.ChangeSummary + ChangeSet []types.ChangeSummary // The ARN associated with the unique identifier for the change set referenced in // this request. diff --git a/service/marketplacecatalog/api_op_ListChangeSets.go b/service/marketplacecatalog/api_op_ListChangeSets.go index 419610184d6..0ea82c14163 100644 --- a/service/marketplacecatalog/api_op_ListChangeSets.go +++ b/service/marketplacecatalog/api_op_ListChangeSets.go @@ -39,7 +39,7 @@ type ListChangeSetsInput struct { Catalog *string // An array of filter objects. - FilterList []*types.Filter + FilterList []types.Filter // The maximum number of results returned by a single call. This value must be // provided in the next call to retrieve the next set of results. By default, this @@ -57,7 +57,7 @@ type ListChangeSetsInput struct { type ListChangeSetsOutput struct { // Array of ChangeSetSummaryListItem objects. - ChangeSetSummaryList []*types.ChangeSetSummaryListItem + ChangeSetSummaryList []types.ChangeSetSummaryListItem // The value of the next token, if it exists. Null if there are no more results. NextToken *string diff --git a/service/marketplacecatalog/api_op_ListEntities.go b/service/marketplacecatalog/api_op_ListEntities.go index b9d5385c995..72f16216ff6 100644 --- a/service/marketplacecatalog/api_op_ListEntities.go +++ b/service/marketplacecatalog/api_op_ListEntities.go @@ -41,7 +41,7 @@ type ListEntitiesInput struct { // An array of filter objects. Each filter object contains two attributes, // filterName and filterValues. - FilterList []*types.Filter + FilterList []types.Filter // Specifies the upper limit of the elements on a single page. If a value isn't // provided, the default value is 20. @@ -57,7 +57,7 @@ type ListEntitiesInput struct { type ListEntitiesOutput struct { // Array of EntitySummary object. - EntitySummaryList []*types.EntitySummary + EntitySummaryList []types.EntitySummary // The value of the next token if it exists. Null if there is no more result. NextToken *string diff --git a/service/marketplacecatalog/api_op_StartChangeSet.go b/service/marketplacecatalog/api_op_StartChangeSet.go index ec37d7d7351..4c079193307 100644 --- a/service/marketplacecatalog/api_op_StartChangeSet.go +++ b/service/marketplacecatalog/api_op_StartChangeSet.go @@ -47,7 +47,7 @@ type StartChangeSetInput struct { // Array of change object. // // This member is required. - ChangeSet []*types.Change + ChangeSet []types.Change // Optional case sensitive string of up to 100 ASCII characters. The change set // name can be used to filter the list of change sets. diff --git a/service/marketplacecatalog/deserializers.go b/service/marketplacecatalog/deserializers.go index b745abf0935..e7b5845efd7 100644 --- a/service/marketplacecatalog/deserializers.go +++ b/service/marketplacecatalog/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -171,7 +172,7 @@ func awsRestjson1_deserializeOpDocumentCancelChangeSetOutput(v **CancelChangeSet if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ChangeSetArn = &jtv + sv.ChangeSetArn = ptr.String(jtv) } case "ChangeSetId": @@ -180,7 +181,7 @@ func awsRestjson1_deserializeOpDocumentCancelChangeSetOutput(v **CancelChangeSet if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ChangeSetId = &jtv + sv.ChangeSetId = ptr.String(jtv) } default: @@ -348,7 +349,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChang if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ChangeSetArn = &jtv + sv.ChangeSetArn = ptr.String(jtv) } case "ChangeSetId": @@ -357,7 +358,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChang if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ChangeSetId = &jtv + sv.ChangeSetId = ptr.String(jtv) } case "ChangeSetName": @@ -366,7 +367,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChang if !ok { return fmt.Errorf("expected ChangeSetName to be of type string, got %T instead", value) } - sv.ChangeSetName = &jtv + sv.ChangeSetName = ptr.String(jtv) } case "EndTime": @@ -375,7 +376,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChang if !ok { return fmt.Errorf("expected DateTimeISO8601 to be of type string, got %T instead", value) } - sv.EndTime = &jtv + sv.EndTime = ptr.String(jtv) } case "FailureCode": @@ -393,7 +394,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChang if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.FailureDescription = &jtv + sv.FailureDescription = ptr.String(jtv) } case "StartTime": @@ -402,7 +403,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChangeSetOutput(v **DescribeChang if !ok { return fmt.Errorf("expected DateTimeISO8601 to be of type string, got %T instead", value) } - sv.StartTime = &jtv + sv.StartTime = ptr.String(jtv) } case "Status": @@ -577,7 +578,7 @@ func awsRestjson1_deserializeOpDocumentDescribeEntityOutput(v **DescribeEntityOu if !ok { return fmt.Errorf("expected Json to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "EntityArn": @@ -586,7 +587,7 @@ func awsRestjson1_deserializeOpDocumentDescribeEntityOutput(v **DescribeEntityOu if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.EntityArn = &jtv + sv.EntityArn = ptr.String(jtv) } case "EntityIdentifier": @@ -595,7 +596,7 @@ func awsRestjson1_deserializeOpDocumentDescribeEntityOutput(v **DescribeEntityOu if !ok { return fmt.Errorf("expected Identifier to be of type string, got %T instead", value) } - sv.EntityIdentifier = &jtv + sv.EntityIdentifier = ptr.String(jtv) } case "EntityType": @@ -604,7 +605,7 @@ func awsRestjson1_deserializeOpDocumentDescribeEntityOutput(v **DescribeEntityOu if !ok { return fmt.Errorf("expected EntityType to be of type string, got %T instead", value) } - sv.EntityType = &jtv + sv.EntityType = ptr.String(jtv) } case "LastModifiedDate": @@ -613,7 +614,7 @@ func awsRestjson1_deserializeOpDocumentDescribeEntityOutput(v **DescribeEntityOu if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } default: @@ -778,7 +779,7 @@ func awsRestjson1_deserializeOpDocumentListChangeSetsOutput(v **ListChangeSetsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -946,7 +947,7 @@ func awsRestjson1_deserializeOpDocumentListEntitiesOutput(v **ListEntitiesOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1115,7 +1116,7 @@ func awsRestjson1_deserializeOpDocumentStartChangeSetOutput(v **StartChangeSetOu if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ChangeSetArn = &jtv + sv.ChangeSetArn = ptr.String(jtv) } case "ChangeSetId": @@ -1124,7 +1125,7 @@ func awsRestjson1_deserializeOpDocumentStartChangeSetOutput(v **StartChangeSetOu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ChangeSetId = &jtv + sv.ChangeSetId = ptr.String(jtv) } default: @@ -1452,7 +1453,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1464,7 +1465,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } -func awsRestjson1_deserializeDocumentChangeSetDescription(v *[]*types.ChangeSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentChangeSetDescription(v *[]types.ChangeSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1477,18 +1478,20 @@ func awsRestjson1_deserializeDocumentChangeSetDescription(v *[]*types.ChangeSumm return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ChangeSummary + var cv []types.ChangeSummary if *v == nil { - cv = []*types.ChangeSummary{} + cv = []types.ChangeSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ChangeSummary - if err := awsRestjson1_deserializeDocumentChangeSummary(&col, value); err != nil { + var col types.ChangeSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentChangeSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1496,7 +1499,7 @@ func awsRestjson1_deserializeDocumentChangeSetDescription(v *[]*types.ChangeSumm return nil } -func awsRestjson1_deserializeDocumentChangeSetSummaryList(v *[]*types.ChangeSetSummaryListItem, value interface{}) error { +func awsRestjson1_deserializeDocumentChangeSetSummaryList(v *[]types.ChangeSetSummaryListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1509,18 +1512,20 @@ func awsRestjson1_deserializeDocumentChangeSetSummaryList(v *[]*types.ChangeSetS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ChangeSetSummaryListItem + var cv []types.ChangeSetSummaryListItem if *v == nil { - cv = []*types.ChangeSetSummaryListItem{} + cv = []types.ChangeSetSummaryListItem{} } else { cv = *v } for _, value := range shape { - var col *types.ChangeSetSummaryListItem - if err := awsRestjson1_deserializeDocumentChangeSetSummaryListItem(&col, value); err != nil { + var col types.ChangeSetSummaryListItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentChangeSetSummaryListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1556,7 +1561,7 @@ func awsRestjson1_deserializeDocumentChangeSetSummaryListItem(v **types.ChangeSe if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.ChangeSetArn = &jtv + sv.ChangeSetArn = ptr.String(jtv) } case "ChangeSetId": @@ -1565,7 +1570,7 @@ func awsRestjson1_deserializeDocumentChangeSetSummaryListItem(v **types.ChangeSe if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ChangeSetId = &jtv + sv.ChangeSetId = ptr.String(jtv) } case "ChangeSetName": @@ -1574,7 +1579,7 @@ func awsRestjson1_deserializeDocumentChangeSetSummaryListItem(v **types.ChangeSe if !ok { return fmt.Errorf("expected ChangeSetName to be of type string, got %T instead", value) } - sv.ChangeSetName = &jtv + sv.ChangeSetName = ptr.String(jtv) } case "EndTime": @@ -1583,7 +1588,7 @@ func awsRestjson1_deserializeDocumentChangeSetSummaryListItem(v **types.ChangeSe if !ok { return fmt.Errorf("expected DateTimeISO8601 to be of type string, got %T instead", value) } - sv.EndTime = &jtv + sv.EndTime = ptr.String(jtv) } case "EntityIdList": @@ -1606,7 +1611,7 @@ func awsRestjson1_deserializeDocumentChangeSetSummaryListItem(v **types.ChangeSe if !ok { return fmt.Errorf("expected DateTimeISO8601 to be of type string, got %T instead", value) } - sv.StartTime = &jtv + sv.StartTime = ptr.String(jtv) } case "Status": @@ -1655,7 +1660,7 @@ func awsRestjson1_deserializeDocumentChangeSummary(v **types.ChangeSummary, valu if !ok { return fmt.Errorf("expected ChangeType to be of type string, got %T instead", value) } - sv.ChangeType = &jtv + sv.ChangeType = ptr.String(jtv) } case "Details": @@ -1664,7 +1669,7 @@ func awsRestjson1_deserializeDocumentChangeSummary(v **types.ChangeSummary, valu if !ok { return fmt.Errorf("expected Json to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "Entity": @@ -1714,7 +1719,7 @@ func awsRestjson1_deserializeDocumentEntity(v **types.Entity, value interface{}) if !ok { return fmt.Errorf("expected Identifier to be of type string, got %T instead", value) } - sv.Identifier = &jtv + sv.Identifier = ptr.String(jtv) } case "Type": @@ -1723,7 +1728,7 @@ func awsRestjson1_deserializeDocumentEntity(v **types.Entity, value interface{}) if !ok { return fmt.Errorf("expected EntityType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -1763,7 +1768,7 @@ func awsRestjson1_deserializeDocumentEntitySummary(v **types.EntitySummary, valu if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.EntityArn = &jtv + sv.EntityArn = ptr.String(jtv) } case "EntityId": @@ -1772,7 +1777,7 @@ func awsRestjson1_deserializeDocumentEntitySummary(v **types.EntitySummary, valu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.EntityId = &jtv + sv.EntityId = ptr.String(jtv) } case "EntityType": @@ -1781,7 +1786,7 @@ func awsRestjson1_deserializeDocumentEntitySummary(v **types.EntitySummary, valu if !ok { return fmt.Errorf("expected EntityType to be of type string, got %T instead", value) } - sv.EntityType = &jtv + sv.EntityType = ptr.String(jtv) } case "LastModifiedDate": @@ -1790,7 +1795,7 @@ func awsRestjson1_deserializeDocumentEntitySummary(v **types.EntitySummary, valu if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Name": @@ -1799,7 +1804,7 @@ func awsRestjson1_deserializeDocumentEntitySummary(v **types.EntitySummary, valu if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Visibility": @@ -1808,7 +1813,7 @@ func awsRestjson1_deserializeDocumentEntitySummary(v **types.EntitySummary, valu if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.Visibility = &jtv + sv.Visibility = ptr.String(jtv) } default: @@ -1820,7 +1825,7 @@ func awsRestjson1_deserializeDocumentEntitySummary(v **types.EntitySummary, valu return nil } -func awsRestjson1_deserializeDocumentEntitySummaryList(v *[]*types.EntitySummary, value interface{}) error { +func awsRestjson1_deserializeDocumentEntitySummaryList(v *[]types.EntitySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1833,18 +1838,20 @@ func awsRestjson1_deserializeDocumentEntitySummaryList(v *[]*types.EntitySummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EntitySummary + var cv []types.EntitySummary if *v == nil { - cv = []*types.EntitySummary{} + cv = []types.EntitySummary{} } else { cv = *v } for _, value := range shape { - var col *types.EntitySummary - if err := awsRestjson1_deserializeDocumentEntitySummary(&col, value); err != nil { + var col types.EntitySummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentEntitySummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1880,7 +1887,7 @@ func awsRestjson1_deserializeDocumentErrorDetail(v **types.ErrorDetail, value in if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -1889,7 +1896,7 @@ func awsRestjson1_deserializeDocumentErrorDetail(v **types.ErrorDetail, value in if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -1901,7 +1908,7 @@ func awsRestjson1_deserializeDocumentErrorDetail(v **types.ErrorDetail, value in return nil } -func awsRestjson1_deserializeDocumentErrorDetailList(v *[]*types.ErrorDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentErrorDetailList(v *[]types.ErrorDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1914,18 +1921,20 @@ func awsRestjson1_deserializeDocumentErrorDetailList(v *[]*types.ErrorDetail, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ErrorDetail + var cv []types.ErrorDetail if *v == nil { - cv = []*types.ErrorDetail{} + cv = []types.ErrorDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ErrorDetail - if err := awsRestjson1_deserializeDocumentErrorDetail(&col, value); err != nil { + var col types.ErrorDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentErrorDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1961,7 +1970,7 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1973,7 +1982,7 @@ func awsRestjson1_deserializeDocumentInternalServiceException(v **types.Internal return nil } -func awsRestjson1_deserializeDocumentResourceIdList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1986,21 +1995,21 @@ func awsRestjson1_deserializeDocumentResourceIdList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2037,7 +2046,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2077,7 +2086,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2117,7 +2126,7 @@ func awsRestjson1_deserializeDocumentResourceNotSupportedException(v **types.Res if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2157,7 +2166,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2197,7 +2206,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2237,7 +2246,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected StringValue to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/marketplacecatalog/go.mod b/service/marketplacecatalog/go.mod index bec7f88133e..5a1d9da0c86 100644 --- a/service/marketplacecatalog/go.mod +++ b/service/marketplacecatalog/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacecatalog go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/marketplacecatalog/serializers.go b/service/marketplacecatalog/serializers.go index 730cb850165..8c1cee17f20 100644 --- a/service/marketplacecatalog/serializers.go +++ b/service/marketplacecatalog/serializers.go @@ -549,34 +549,26 @@ func awsRestjson1_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentFilterList(v []*types.Filter, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentRequestedChangeList(v []*types.Change, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRequestedChangeList(v []types.Change, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentChange(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentChange(&v[i], av); err != nil { return err } } @@ -600,17 +592,13 @@ func awsRestjson1_serializeDocumentSort(v *types.Sort, value smithyjson.Value) e return nil } -func awsRestjson1_serializeDocumentValueList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/marketplacecatalog/types/types.go b/service/marketplacecatalog/types/types.go index ec0afafd722..47b69ed9d40 100644 --- a/service/marketplacecatalog/types/types.go +++ b/service/marketplacecatalog/types/types.go @@ -45,7 +45,7 @@ type ChangeSetSummaryListItem struct { // This object is a list of entity IDs (string) that are a part of a change set. // The entity ID list is a maximum of 20 entities. It must contain at least one // entity. - EntityIdList []*string + EntityIdList []string // Returned if the change set is in FAILED status. Can be either CLIENT_ERROR, // which means that there are issues with the request (see the ErrorDetailList of @@ -76,7 +76,7 @@ type ChangeSummary struct { Entity *Entity // An array of ErrorDetail objects associated with the change. - ErrorDetailList []*ErrorDetail + ErrorDetailList []ErrorDetail } // A product entity contains data that describes your product, its supported @@ -164,7 +164,7 @@ type Filter struct { // * AfterEndTime // - The supported ValueList is a list of all change sets that ended after the // filter value. - ValueList []*string + ValueList []string } // An object that contains two attributes, SortBy and SortOrder. diff --git a/service/marketplacecatalog/validators.go b/service/marketplacecatalog/validators.go index 2390ee95299..a4346d0fa95 100644 --- a/service/marketplacecatalog/validators.go +++ b/service/marketplacecatalog/validators.go @@ -194,13 +194,13 @@ func validateEntity(v *types.Entity) error { } } -func validateRequestedChangeList(v []*types.Change) error { +func validateRequestedChangeList(v []types.Change) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RequestedChangeList"} for i := range v { - if err := validateChange(v[i]); err != nil { + if err := validateChange(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/marketplacecommerceanalytics/api_op_GenerateDataSet.go b/service/marketplacecommerceanalytics/api_op_GenerateDataSet.go index 8d1bb2b73f2..9dadd2c68f5 100644 --- a/service/marketplacecommerceanalytics/api_op_GenerateDataSet.go +++ b/service/marketplacecommerceanalytics/api_op_GenerateDataSet.go @@ -168,7 +168,7 @@ type GenerateDataSetInput struct { // (Optional) Key-value pairs which will be returned, unmodified, in the Amazon SNS // notification message and the data set metadata file. These key-value pairs can // be used to correlated responses with tracking information from other systems. - CustomerDefinedValues map[string]*string + CustomerDefinedValues map[string]string // (Optional) The desired S3 prefix for the published data set, similar to a // directory path in standard file systems. For example, if given the bucket name diff --git a/service/marketplacecommerceanalytics/api_op_StartSupportDataExport.go b/service/marketplacecommerceanalytics/api_op_StartSupportDataExport.go index ae2cebf7c09..7d4067a35d7 100644 --- a/service/marketplacecommerceanalytics/api_op_StartSupportDataExport.go +++ b/service/marketplacecommerceanalytics/api_op_StartSupportDataExport.go @@ -85,7 +85,7 @@ type StartSupportDataExportInput struct { // (Optional) Key-value pairs which will be returned, unmodified, in the Amazon SNS // notification message and the data set metadata file. - CustomerDefinedValues map[string]*string + CustomerDefinedValues map[string]string // (Optional) The desired S3 prefix for the published data set, similar to a // directory path in standard file systems. For example, if given the bucket name diff --git a/service/marketplacecommerceanalytics/deserializers.go b/service/marketplacecommerceanalytics/deserializers.go index b26c1c5d1a2..fe110817ade 100644 --- a/service/marketplacecommerceanalytics/deserializers.go +++ b/service/marketplacecommerceanalytics/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -302,7 +303,7 @@ func awsAwsjson11_deserializeDocumentMarketplaceCommerceAnalyticsException(v **t if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -342,7 +343,7 @@ func awsAwsjson11_deserializeOpDocumentGenerateDataSetOutput(v **GenerateDataSet if !ok { return fmt.Errorf("expected DataSetRequestId to be of type string, got %T instead", value) } - sv.DataSetRequestId = &jtv + sv.DataSetRequestId = ptr.String(jtv) } default: @@ -382,7 +383,7 @@ func awsAwsjson11_deserializeOpDocumentStartSupportDataExportOutput(v **StartSup if !ok { return fmt.Errorf("expected DataSetRequestId to be of type string, got %T instead", value) } - sv.DataSetRequestId = &jtv + sv.DataSetRequestId = ptr.String(jtv) } default: diff --git a/service/marketplacecommerceanalytics/go.mod b/service/marketplacecommerceanalytics/go.mod index cb7586b1e26..e58507e7d80 100644 --- a/service/marketplacecommerceanalytics/go.mod +++ b/service/marketplacecommerceanalytics/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacecommerceanalytics go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/marketplacecommerceanalytics/serializers.go b/service/marketplacecommerceanalytics/serializers.go index 1dd695161eb..92cd14a51f4 100644 --- a/service/marketplacecommerceanalytics/serializers.go +++ b/service/marketplacecommerceanalytics/serializers.go @@ -105,17 +105,13 @@ func (m *awsAwsjson11_serializeOpStartSupportDataExport) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentCustomerDefinedValues(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCustomerDefinedValues(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/marketplaceentitlementservice/api_op_GetEntitlements.go b/service/marketplaceentitlementservice/api_op_GetEntitlements.go index b853b19f961..e12c3077f13 100644 --- a/service/marketplaceentitlementservice/api_op_GetEntitlements.go +++ b/service/marketplaceentitlementservice/api_op_GetEntitlements.go @@ -43,7 +43,7 @@ type GetEntitlementsInput struct { // dimension. Filters are described as keys mapped to a lists of values. Filtered // requests are unioned for each value in the value list, and then intersected for // each filter key. - Filter map[string][]*string + Filter map[string][]string // The maximum number of items to retrieve from the GetEntitlements operation. For // pagination, use the NextToken field in subsequent calls to GetEntitlements. @@ -60,7 +60,7 @@ type GetEntitlementsOutput struct { // The set of entitlements found through the GetEntitlements operation. If the // result contains an empty set of entitlements, NextToken might still be present // and should be used. - Entitlements []*types.Entitlement + Entitlements []types.Entitlement // For paginated results, use NextToken in subsequent calls to GetEntitlements. If // the result contains an empty set of entitlements, NextToken might still be diff --git a/service/marketplaceentitlementservice/deserializers.go b/service/marketplaceentitlementservice/deserializers.go index b4a3f942a04..b2a3972660c 100644 --- a/service/marketplaceentitlementservice/deserializers.go +++ b/service/marketplaceentitlementservice/deserializers.go @@ -269,7 +269,7 @@ func awsAwsjson11_deserializeDocumentEntitlement(v **types.Entitlement, value in if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CustomerIdentifier = &jtv + sv.CustomerIdentifier = ptr.String(jtv) } case "Dimension": @@ -278,7 +278,7 @@ func awsAwsjson11_deserializeDocumentEntitlement(v **types.Entitlement, value in if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Dimension = &jtv + sv.Dimension = ptr.String(jtv) } case "ExpirationDate": @@ -300,7 +300,7 @@ func awsAwsjson11_deserializeDocumentEntitlement(v **types.Entitlement, value in if !ok { return fmt.Errorf("expected ProductCode to be of type string, got %T instead", value) } - sv.ProductCode = &jtv + sv.ProductCode = ptr.String(jtv) } case "Value": @@ -317,7 +317,7 @@ func awsAwsjson11_deserializeDocumentEntitlement(v **types.Entitlement, value in return nil } -func awsAwsjson11_deserializeDocumentEntitlementList(v *[]*types.Entitlement, value interface{}) error { +func awsAwsjson11_deserializeDocumentEntitlementList(v *[]types.Entitlement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -330,18 +330,20 @@ func awsAwsjson11_deserializeDocumentEntitlementList(v *[]*types.Entitlement, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Entitlement + var cv []types.Entitlement if *v == nil { - cv = []*types.Entitlement{} + cv = []types.Entitlement{} } else { cv = *v } for _, value := range shape { - var col *types.Entitlement - if err := awsAwsjson11_deserializeDocumentEntitlement(&col, value); err != nil { + var col types.Entitlement + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEntitlement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -377,7 +379,7 @@ func awsAwsjson11_deserializeDocumentEntitlementValue(v **types.EntitlementValue if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.BooleanValue = &jtv + sv.BooleanValue = ptr.Bool(jtv) } case "DoubleValue": @@ -390,7 +392,7 @@ func awsAwsjson11_deserializeDocumentEntitlementValue(v **types.EntitlementValue if err != nil { return err } - sv.DoubleValue = &f64 + sv.DoubleValue = ptr.Float64(f64) } case "IntegerValue": @@ -412,7 +414,7 @@ func awsAwsjson11_deserializeDocumentEntitlementValue(v **types.EntitlementValue if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } default: @@ -452,7 +454,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceErrorException(v **types.Int if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -492,7 +494,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -532,7 +534,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -577,7 +579,7 @@ func awsAwsjson11_deserializeOpDocumentGetEntitlementsOutput(v **GetEntitlements if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: diff --git a/service/marketplaceentitlementservice/go.mod b/service/marketplaceentitlementservice/go.mod index a0553677a2a..f13215dad50 100644 --- a/service/marketplaceentitlementservice/go.mod +++ b/service/marketplaceentitlementservice/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/marketplaceentitlementservice go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/marketplaceentitlementservice/serializers.go b/service/marketplaceentitlementservice/serializers.go index b024a2fe4fe..0cc7a94d961 100644 --- a/service/marketplaceentitlementservice/serializers.go +++ b/service/marketplaceentitlementservice/serializers.go @@ -58,29 +58,24 @@ func (m *awsAwsjson11_serializeOpGetEntitlements) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentFilterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentGetEntitlementFilters(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGetEntitlementFilters(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentFilterValueList(v[key], om); err != nil { diff --git a/service/marketplacemetering/api_op_BatchMeterUsage.go b/service/marketplacemetering/api_op_BatchMeterUsage.go index 1d90bf6929a..86d24e573bd 100644 --- a/service/marketplacemetering/api_op_BatchMeterUsage.go +++ b/service/marketplacemetering/api_op_BatchMeterUsage.go @@ -47,7 +47,7 @@ type BatchMeterUsageInput struct { // at a time. // // This member is required. - UsageRecords []*types.UsageRecord + UsageRecords []types.UsageRecord } // Contains the UsageRecords processed by BatchMeterUsage and any records that have @@ -56,12 +56,12 @@ type BatchMeterUsageOutput struct { // Contains all UsageRecords processed by BatchMeterUsage. These records were // either honored by AWS Marketplace Metering Service or were invalid. - Results []*types.UsageRecordResult + Results []types.UsageRecordResult // Contains all UsageRecords that were not processed by BatchMeterUsage. This is a // list of UsageRecords. You can retry the failed request by making another // BatchMeterUsage call with this list as input in the BatchMeterUsageRequest. - UnprocessedRecords []*types.UsageRecord + UnprocessedRecords []types.UsageRecord // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/marketplacemetering/deserializers.go b/service/marketplacemetering/deserializers.go index f3d15f703f0..d5e45799e4d 100644 --- a/service/marketplacemetering/deserializers.go +++ b/service/marketplacemetering/deserializers.go @@ -1088,7 +1088,7 @@ func awsAwsjson11_deserializeDocumentCustomerNotEntitledException(v **types.Cust if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1128,7 +1128,7 @@ func awsAwsjson11_deserializeDocumentDisabledApiException(v **types.DisabledApiE if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1168,7 +1168,7 @@ func awsAwsjson11_deserializeDocumentDuplicateRequestException(v **types.Duplica if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1208,7 +1208,7 @@ func awsAwsjson11_deserializeDocumentExpiredTokenException(v **types.ExpiredToke if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1248,7 +1248,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceErrorException(v **types.Int if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1288,7 +1288,7 @@ func awsAwsjson11_deserializeDocumentInvalidCustomerIdentifierException(v **type if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1328,7 +1328,7 @@ func awsAwsjson11_deserializeDocumentInvalidEndpointRegionException(v **types.In if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1368,7 +1368,7 @@ func awsAwsjson11_deserializeDocumentInvalidProductCodeException(v **types.Inval if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1408,7 +1408,7 @@ func awsAwsjson11_deserializeDocumentInvalidPublicKeyVersionException(v **types. if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1448,7 +1448,7 @@ func awsAwsjson11_deserializeDocumentInvalidRegionException(v **types.InvalidReg if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1488,7 +1488,7 @@ func awsAwsjson11_deserializeDocumentInvalidTokenException(v **types.InvalidToke if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1528,7 +1528,7 @@ func awsAwsjson11_deserializeDocumentInvalidUsageDimensionException(v **types.In if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1568,7 +1568,7 @@ func awsAwsjson11_deserializeDocumentPlatformNotSupportedException(v **types.Pla if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1608,7 +1608,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1648,7 +1648,7 @@ func awsAwsjson11_deserializeDocumentTimestampOutOfBoundsException(v **types.Tim if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1688,7 +1688,7 @@ func awsAwsjson11_deserializeDocumentUsageRecord(v **types.UsageRecord, value in if !ok { return fmt.Errorf("expected CustomerIdentifier to be of type string, got %T instead", value) } - sv.CustomerIdentifier = &jtv + sv.CustomerIdentifier = ptr.String(jtv) } case "Dimension": @@ -1697,7 +1697,7 @@ func awsAwsjson11_deserializeDocumentUsageRecord(v **types.UsageRecord, value in if !ok { return fmt.Errorf("expected UsageDimension to be of type string, got %T instead", value) } - sv.Dimension = &jtv + sv.Dimension = ptr.String(jtv) } case "Quantity": @@ -1735,7 +1735,7 @@ func awsAwsjson11_deserializeDocumentUsageRecord(v **types.UsageRecord, value in return nil } -func awsAwsjson11_deserializeDocumentUsageRecordList(v *[]*types.UsageRecord, value interface{}) error { +func awsAwsjson11_deserializeDocumentUsageRecordList(v *[]types.UsageRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1748,18 +1748,20 @@ func awsAwsjson11_deserializeDocumentUsageRecordList(v *[]*types.UsageRecord, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UsageRecord + var cv []types.UsageRecord if *v == nil { - cv = []*types.UsageRecord{} + cv = []types.UsageRecord{} } else { cv = *v } for _, value := range shape { - var col *types.UsageRecord - if err := awsAwsjson11_deserializeDocumentUsageRecord(&col, value); err != nil { + var col types.UsageRecord + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUsageRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1795,7 +1797,7 @@ func awsAwsjson11_deserializeDocumentUsageRecordResult(v **types.UsageRecordResu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MeteringRecordId = &jtv + sv.MeteringRecordId = ptr.String(jtv) } case "Status": @@ -1821,7 +1823,7 @@ func awsAwsjson11_deserializeDocumentUsageRecordResult(v **types.UsageRecordResu return nil } -func awsAwsjson11_deserializeDocumentUsageRecordResultList(v *[]*types.UsageRecordResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentUsageRecordResultList(v *[]types.UsageRecordResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1834,18 +1836,20 @@ func awsAwsjson11_deserializeDocumentUsageRecordResultList(v *[]*types.UsageReco return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UsageRecordResult + var cv []types.UsageRecordResult if *v == nil { - cv = []*types.UsageRecordResult{} + cv = []types.UsageRecordResult{} } else { cv = *v } for _, value := range shape { - var col *types.UsageRecordResult - if err := awsAwsjson11_deserializeDocumentUsageRecordResult(&col, value); err != nil { + var col types.UsageRecordResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUsageRecordResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1922,7 +1926,7 @@ func awsAwsjson11_deserializeOpDocumentMeterUsageOutput(v **MeterUsageOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MeteringRecordId = &jtv + sv.MeteringRecordId = ptr.String(jtv) } default: @@ -1975,7 +1979,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterUsageOutput(v **RegisterUsageOutp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Signature = &jtv + sv.Signature = ptr.String(jtv) } default: @@ -2015,7 +2019,7 @@ func awsAwsjson11_deserializeOpDocumentResolveCustomerOutput(v **ResolveCustomer if !ok { return fmt.Errorf("expected CustomerIdentifier to be of type string, got %T instead", value) } - sv.CustomerIdentifier = &jtv + sv.CustomerIdentifier = ptr.String(jtv) } case "ProductCode": @@ -2024,7 +2028,7 @@ func awsAwsjson11_deserializeOpDocumentResolveCustomerOutput(v **ResolveCustomer if !ok { return fmt.Errorf("expected ProductCode to be of type string, got %T instead", value) } - sv.ProductCode = &jtv + sv.ProductCode = ptr.String(jtv) } default: diff --git a/service/marketplacemetering/go.mod b/service/marketplacemetering/go.mod index f5fa7afcf1f..e9342014c12 100644 --- a/service/marketplacemetering/go.mod +++ b/service/marketplacemetering/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacemetering go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/marketplacemetering/serializers.go b/service/marketplacemetering/serializers.go index e3d2c71bc64..59fd364f696 100644 --- a/service/marketplacemetering/serializers.go +++ b/service/marketplacemetering/serializers.go @@ -225,17 +225,13 @@ func awsAwsjson11_serializeDocumentUsageRecord(v *types.UsageRecord, value smith return nil } -func awsAwsjson11_serializeDocumentUsageRecordList(v []*types.UsageRecord, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentUsageRecordList(v []types.UsageRecord, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentUsageRecord(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentUsageRecord(&v[i], av); err != nil { return err } } diff --git a/service/marketplacemetering/validators.go b/service/marketplacemetering/validators.go index 9d43caa77aa..42ed2ff8a7c 100644 --- a/service/marketplacemetering/validators.go +++ b/service/marketplacemetering/validators.go @@ -127,13 +127,13 @@ func validateUsageRecord(v *types.UsageRecord) error { } } -func validateUsageRecordList(v []*types.UsageRecord) error { +func validateUsageRecordList(v []types.UsageRecord) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UsageRecordList"} for i := range v { - if err := validateUsageRecord(v[i]); err != nil { + if err := validateUsageRecord(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/mediaconnect/api_op_AddFlowOutputs.go b/service/mediaconnect/api_op_AddFlowOutputs.go index e477ad66958..1d96be4ebec 100644 --- a/service/mediaconnect/api_op_AddFlowOutputs.go +++ b/service/mediaconnect/api_op_AddFlowOutputs.go @@ -38,7 +38,7 @@ type AddFlowOutputsInput struct { // A list of outputs that you want to add. // // This member is required. - Outputs []*types.AddOutputRequest + Outputs []types.AddOutputRequest } type AddFlowOutputsOutput struct { @@ -47,7 +47,7 @@ type AddFlowOutputsOutput struct { FlowArn *string // The details of the newly added outputs. - Outputs []*types.Output + Outputs []types.Output // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediaconnect/api_op_AddFlowSources.go b/service/mediaconnect/api_op_AddFlowSources.go index 64d06280fbd..87124310677 100644 --- a/service/mediaconnect/api_op_AddFlowSources.go +++ b/service/mediaconnect/api_op_AddFlowSources.go @@ -38,7 +38,7 @@ type AddFlowSourcesInput struct { // A list of sources that you want to add. // // This member is required. - Sources []*types.SetSourceRequest + Sources []types.SetSourceRequest } type AddFlowSourcesOutput struct { @@ -47,7 +47,7 @@ type AddFlowSourcesOutput struct { FlowArn *string // The details of the newly added sources. - Sources []*types.Source + Sources []types.Source // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediaconnect/api_op_AddFlowVpcInterfaces.go b/service/mediaconnect/api_op_AddFlowVpcInterfaces.go index 14fe7c9cc88..0b8a760f67d 100644 --- a/service/mediaconnect/api_op_AddFlowVpcInterfaces.go +++ b/service/mediaconnect/api_op_AddFlowVpcInterfaces.go @@ -38,7 +38,7 @@ type AddFlowVpcInterfacesInput struct { // A list of VPC interfaces that you want to add. // // This member is required. - VpcInterfaces []*types.VpcInterfaceRequest + VpcInterfaces []types.VpcInterfaceRequest } type AddFlowVpcInterfacesOutput struct { @@ -47,7 +47,7 @@ type AddFlowVpcInterfacesOutput struct { FlowArn *string // The details of the newly added VPC interfaces. - VpcInterfaces []*types.VpcInterface + VpcInterfaces []types.VpcInterface // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediaconnect/api_op_CreateFlow.go b/service/mediaconnect/api_op_CreateFlow.go index 5d9ae08dd28..83ac25e96a8 100644 --- a/service/mediaconnect/api_op_CreateFlow.go +++ b/service/mediaconnect/api_op_CreateFlow.go @@ -42,10 +42,10 @@ type CreateFlowInput struct { AvailabilityZone *string // The entitlements that you want to grant on a flow. - Entitlements []*types.GrantEntitlementRequest + Entitlements []types.GrantEntitlementRequest // The outputs that you want to add to this flow. - Outputs []*types.AddOutputRequest + Outputs []types.AddOutputRequest // The settings for the source of the flow. Source *types.SetSourceRequest @@ -53,10 +53,10 @@ type CreateFlowInput struct { // The settings for source failover SourceFailoverConfig *types.FailoverConfig - Sources []*types.SetSourceRequest + Sources []types.SetSourceRequest // The VPC interfaces you want on the flow. - VpcInterfaces []*types.VpcInterfaceRequest + VpcInterfaces []types.VpcInterfaceRequest } type CreateFlowOutput struct { diff --git a/service/mediaconnect/api_op_GrantFlowEntitlements.go b/service/mediaconnect/api_op_GrantFlowEntitlements.go index 58eac891893..535cbc9330a 100644 --- a/service/mediaconnect/api_op_GrantFlowEntitlements.go +++ b/service/mediaconnect/api_op_GrantFlowEntitlements.go @@ -33,7 +33,7 @@ type GrantFlowEntitlementsInput struct { // The list of entitlements that you want to grant. // // This member is required. - Entitlements []*types.GrantEntitlementRequest + Entitlements []types.GrantEntitlementRequest // The flow that you want to grant entitlements on. // @@ -44,7 +44,7 @@ type GrantFlowEntitlementsInput struct { type GrantFlowEntitlementsOutput struct { // The entitlements that were just granted. - Entitlements []*types.Entitlement + Entitlements []types.Entitlement // The ARN of the flow that these entitlements were granted to. FlowArn *string diff --git a/service/mediaconnect/api_op_ListEntitlements.go b/service/mediaconnect/api_op_ListEntitlements.go index 07898a2c638..25db13e2a4c 100644 --- a/service/mediaconnect/api_op_ListEntitlements.go +++ b/service/mediaconnect/api_op_ListEntitlements.go @@ -37,7 +37,7 @@ type ListEntitlementsInput struct { // results.) The service might return fewer results than the MaxResults value. If // MaxResults is not included in the request, the service defaults to pagination // with a maximum of 20 results per page. - MaxResults *int32 + MaxResults int32 // The token that identifies which batch of results that you want to see. For // example, you submit a ListEntitlements request with MaxResults set at 5. The @@ -50,7 +50,7 @@ type ListEntitlementsInput struct { type ListEntitlementsOutput struct { // A list of entitlements that have been granted to you from other AWS accounts. - Entitlements []*types.ListedEntitlement + Entitlements []types.ListedEntitlement // The token that identifies which batch of results that you want to see. For // example, you submit a ListEntitlements request with MaxResults set at 5. The diff --git a/service/mediaconnect/api_op_ListFlows.go b/service/mediaconnect/api_op_ListFlows.go index 888540ea559..c52d5fba579 100644 --- a/service/mediaconnect/api_op_ListFlows.go +++ b/service/mediaconnect/api_op_ListFlows.go @@ -37,7 +37,7 @@ type ListFlowsInput struct { // The service might return fewer results than the MaxResults value. If MaxResults // is not included in the request, the service defaults to pagination with a // maximum of 10 results per page. - MaxResults *int32 + MaxResults int32 // The token that identifies which batch of results that you want to see. For // example, you submit a ListFlows request with MaxResults set at 5. The service @@ -50,7 +50,7 @@ type ListFlowsInput struct { type ListFlowsOutput struct { // A list of flow summaries. - Flows []*types.ListedFlow + Flows []types.ListedFlow // The token that identifies which batch of results that you want to see. For // example, you submit a ListFlows request with MaxResults set at 5. The service diff --git a/service/mediaconnect/api_op_ListOfferings.go b/service/mediaconnect/api_op_ListOfferings.go index 02089f64a5f..538b3aa3b33 100644 --- a/service/mediaconnect/api_op_ListOfferings.go +++ b/service/mediaconnect/api_op_ListOfferings.go @@ -39,7 +39,7 @@ type ListOfferingsInput struct { // The service might return fewer results than the MaxResults value. If MaxResults // is not included in the request, the service defaults to pagination with a // maximum of 10 results per page. - MaxResults *int32 + MaxResults int32 // The token that identifies which batch of results that you want to see. For // example, you submit a ListOfferings request with MaxResults set at 5. The @@ -60,7 +60,7 @@ type ListOfferingsOutput struct { // A list of offerings that are available to this account in the current AWS // Region. - Offerings []*types.Offering + Offerings []types.Offering // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediaconnect/api_op_ListReservations.go b/service/mediaconnect/api_op_ListReservations.go index c3f7e9ad0b7..9dd2d5a7435 100644 --- a/service/mediaconnect/api_op_ListReservations.go +++ b/service/mediaconnect/api_op_ListReservations.go @@ -38,7 +38,7 @@ type ListReservationsInput struct { // results.) The service might return fewer results than the MaxResults value. If // MaxResults is not included in the request, the service defaults to pagination // with a maximum of 10 results per page. - MaxResults *int32 + MaxResults int32 // The token that identifies which batch of results that you want to see. For // example, you submit a ListReservations request with MaxResults set at 5. The @@ -59,7 +59,7 @@ type ListReservationsOutput struct { // A list of all reservations that have been purchased by this account in the // current AWS Region. - Reservations []*types.Reservation + Reservations []types.Reservation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediaconnect/api_op_ListTagsForResource.go b/service/mediaconnect/api_op_ListTagsForResource.go index 101400bb62d..133d0aa6240 100644 --- a/service/mediaconnect/api_op_ListTagsForResource.go +++ b/service/mediaconnect/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceOutput struct { // A map from tag keys to values. Tag keys can have a maximum character length of // 128 characters, and tag values can have a maximum length of 256 characters. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediaconnect/api_op_RemoveFlowVpcInterface.go b/service/mediaconnect/api_op_RemoveFlowVpcInterface.go index 8ce21109c87..015488c3dfa 100644 --- a/service/mediaconnect/api_op_RemoveFlowVpcInterface.go +++ b/service/mediaconnect/api_op_RemoveFlowVpcInterface.go @@ -49,7 +49,7 @@ type RemoveFlowVpcInterfaceOutput struct { // IDs of network interfaces associated with the removed VPC interface that Media // Connect was unable to remove. - NonDeletedNetworkInterfaceIds []*string + NonDeletedNetworkInterfaceIds []string // The name of the VPC interface that was removed. VpcInterfaceName *string diff --git a/service/mediaconnect/api_op_TagResource.go b/service/mediaconnect/api_op_TagResource.go index 5ab8250e0e2..a5c01dc5753 100644 --- a/service/mediaconnect/api_op_TagResource.go +++ b/service/mediaconnect/api_op_TagResource.go @@ -44,7 +44,7 @@ type TagResourceInput struct { // 128 characters, and tag values can have a maximum length of 256 characters. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/mediaconnect/api_op_UntagResource.go b/service/mediaconnect/api_op_UntagResource.go index 099d68d415b..1ce132d471a 100644 --- a/service/mediaconnect/api_op_UntagResource.go +++ b/service/mediaconnect/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // The keys of the tags to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/mediaconnect/api_op_UpdateFlowEntitlement.go b/service/mediaconnect/api_op_UpdateFlowEntitlement.go index 0838f98cbd1..5c951680c80 100644 --- a/service/mediaconnect/api_op_UpdateFlowEntitlement.go +++ b/service/mediaconnect/api_op_UpdateFlowEntitlement.go @@ -60,7 +60,7 @@ type UpdateFlowEntitlementInput struct { // The AWS account IDs that you want to share your content with. The receiving // accounts (subscribers) will be allowed to create their own flow using your // content as the source. - Subscribers []*string + Subscribers []string } type UpdateFlowEntitlementOutput struct { diff --git a/service/mediaconnect/api_op_UpdateFlowOutput.go b/service/mediaconnect/api_op_UpdateFlowOutput.go index 0c0af87033c..c2249d363f6 100644 --- a/service/mediaconnect/api_op_UpdateFlowOutput.go +++ b/service/mediaconnect/api_op_UpdateFlowOutput.go @@ -43,7 +43,7 @@ type UpdateFlowOutputInput struct { // The range of IP addresses that should be allowed to initiate output requests to // this flow. These IP addresses should be in the form of a Classless Inter-Domain // Routing (CIDR) block; for example, 10.0.0.0/16. - CidrAllowList []*string + CidrAllowList []string // A description of the output. This description appears only on the AWS Elemental // MediaConnect console and will not be seen by the end user. @@ -57,10 +57,10 @@ type UpdateFlowOutputInput struct { Encryption *types.UpdateEncryption // The maximum latency in milliseconds for Zixi-based streams. - MaxLatency *int32 + MaxLatency int32 // The port to use when content is distributed to this output. - Port *int32 + Port int32 // The protocol to use for the output. Protocol types.Protocol @@ -69,7 +69,7 @@ type UpdateFlowOutputInput struct { RemoteId *string // The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. - SmoothingLatency *int32 + SmoothingLatency int32 // The stream ID that you want to use for this transport. This parameter applies // only to Zixi-based streams. diff --git a/service/mediaconnect/api_op_UpdateFlowSource.go b/service/mediaconnect/api_op_UpdateFlowSource.go index 5e371a84e10..739821a4906 100644 --- a/service/mediaconnect/api_op_UpdateFlowSource.go +++ b/service/mediaconnect/api_op_UpdateFlowSource.go @@ -53,14 +53,14 @@ type UpdateFlowSourceInput struct { EntitlementArn *string // The port that the flow will be listening on for incoming content. - IngestPort *int32 + IngestPort int32 // The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. - MaxBitrate *int32 + MaxBitrate int32 // The maximum latency in milliseconds. This parameter applies only to RIST-based // and Zixi-based streams. - MaxLatency *int32 + MaxLatency int32 // The protocol that is used by the source. Protocol types.Protocol diff --git a/service/mediaconnect/deserializers.go b/service/mediaconnect/deserializers.go index a7c15df5eba..9452204afd8 100644 --- a/service/mediaconnect/deserializers.go +++ b/service/mediaconnect/deserializers.go @@ -175,7 +175,7 @@ func awsRestjson1_deserializeOpDocumentAddFlowOutputsOutput(v **AddFlowOutputsOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "outputs": @@ -346,7 +346,7 @@ func awsRestjson1_deserializeOpDocumentAddFlowSourcesOutput(v **AddFlowSourcesOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "sources": @@ -517,7 +517,7 @@ func awsRestjson1_deserializeOpDocumentAddFlowVpcInterfacesOutput(v **AddFlowVpc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "vpcInterfaces": @@ -850,7 +850,7 @@ func awsRestjson1_deserializeOpDocumentDeleteFlowOutput(v **DeleteFlowOutput, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "status": @@ -1518,7 +1518,7 @@ func awsRestjson1_deserializeOpDocumentGrantFlowEntitlementsOutput(v **GrantFlow if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } default: @@ -1683,7 +1683,7 @@ func awsRestjson1_deserializeOpDocumentListEntitlementsOutput(v **ListEntitlemen if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1848,7 +1848,7 @@ func awsRestjson1_deserializeOpDocumentListFlowsOutput(v **ListFlowsOutput, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2008,7 +2008,7 @@ func awsRestjson1_deserializeOpDocumentListOfferingsOutput(v **ListOfferingsOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "offerings": @@ -2173,7 +2173,7 @@ func awsRestjson1_deserializeOpDocumentListReservationsOutput(v **ListReservatio if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "reservations": @@ -2659,7 +2659,7 @@ func awsRestjson1_deserializeOpDocumentRemoveFlowOutputOutput(v **RemoveFlowOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "outputArn": @@ -2668,7 +2668,7 @@ func awsRestjson1_deserializeOpDocumentRemoveFlowOutputOutput(v **RemoveFlowOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OutputArn = &jtv + sv.OutputArn = ptr.String(jtv) } default: @@ -2834,7 +2834,7 @@ func awsRestjson1_deserializeOpDocumentRemoveFlowSourceOutput(v **RemoveFlowSour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "sourceArn": @@ -2843,7 +2843,7 @@ func awsRestjson1_deserializeOpDocumentRemoveFlowSourceOutput(v **RemoveFlowSour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } default: @@ -3009,7 +3009,7 @@ func awsRestjson1_deserializeOpDocumentRemoveFlowVpcInterfaceOutput(v **RemoveFl if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "nonDeletedNetworkInterfaceIds": @@ -3023,7 +3023,7 @@ func awsRestjson1_deserializeOpDocumentRemoveFlowVpcInterfaceOutput(v **RemoveFl if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VpcInterfaceName = &jtv + sv.VpcInterfaceName = ptr.String(jtv) } default: @@ -3189,7 +3189,7 @@ func awsRestjson1_deserializeOpDocumentRevokeFlowEntitlementOutput(v **RevokeFlo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EntitlementArn = &jtv + sv.EntitlementArn = ptr.String(jtv) } case "flowArn": @@ -3198,7 +3198,7 @@ func awsRestjson1_deserializeOpDocumentRevokeFlowEntitlementOutput(v **RevokeFlo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } default: @@ -3364,7 +3364,7 @@ func awsRestjson1_deserializeOpDocumentStartFlowOutput(v **StartFlowOutput, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "status": @@ -3539,7 +3539,7 @@ func awsRestjson1_deserializeOpDocumentStopFlowOutput(v **StopFlowOutput, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "status": @@ -4059,7 +4059,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFlowEntitlementOutput(v **UpdateFlo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } default: @@ -4225,7 +4225,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFlowOutputOutput(v **UpdateFlowOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "output": @@ -4396,7 +4396,7 @@ func awsRestjson1_deserializeOpDocumentUpdateFlowSourceOutput(v **UpdateFlowSour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "source": @@ -4737,7 +4737,7 @@ func awsRestjson1_deserializeErrorTooManyRequestsException(response *smithyhttp. return output } -func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4750,21 +4750,21 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -4773,7 +4773,7 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return nil } -func awsRestjson1_deserializeDocument__listOfEntitlement(v *[]*types.Entitlement, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfEntitlement(v *[]types.Entitlement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4786,18 +4786,20 @@ func awsRestjson1_deserializeDocument__listOfEntitlement(v *[]*types.Entitlement return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Entitlement + var cv []types.Entitlement if *v == nil { - cv = []*types.Entitlement{} + cv = []types.Entitlement{} } else { cv = *v } for _, value := range shape { - var col *types.Entitlement - if err := awsRestjson1_deserializeDocumentEntitlement(&col, value); err != nil { + var col types.Entitlement + destAddr := &col + if err := awsRestjson1_deserializeDocumentEntitlement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4805,7 +4807,7 @@ func awsRestjson1_deserializeDocument__listOfEntitlement(v *[]*types.Entitlement return nil } -func awsRestjson1_deserializeDocument__listOfListedEntitlement(v *[]*types.ListedEntitlement, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfListedEntitlement(v *[]types.ListedEntitlement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4818,18 +4820,20 @@ func awsRestjson1_deserializeDocument__listOfListedEntitlement(v *[]*types.Liste return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ListedEntitlement + var cv []types.ListedEntitlement if *v == nil { - cv = []*types.ListedEntitlement{} + cv = []types.ListedEntitlement{} } else { cv = *v } for _, value := range shape { - var col *types.ListedEntitlement - if err := awsRestjson1_deserializeDocumentListedEntitlement(&col, value); err != nil { + var col types.ListedEntitlement + destAddr := &col + if err := awsRestjson1_deserializeDocumentListedEntitlement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4837,7 +4841,7 @@ func awsRestjson1_deserializeDocument__listOfListedEntitlement(v *[]*types.Liste return nil } -func awsRestjson1_deserializeDocument__listOfListedFlow(v *[]*types.ListedFlow, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfListedFlow(v *[]types.ListedFlow, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4850,18 +4854,20 @@ func awsRestjson1_deserializeDocument__listOfListedFlow(v *[]*types.ListedFlow, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ListedFlow + var cv []types.ListedFlow if *v == nil { - cv = []*types.ListedFlow{} + cv = []types.ListedFlow{} } else { cv = *v } for _, value := range shape { - var col *types.ListedFlow - if err := awsRestjson1_deserializeDocumentListedFlow(&col, value); err != nil { + var col types.ListedFlow + destAddr := &col + if err := awsRestjson1_deserializeDocumentListedFlow(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4869,7 +4875,7 @@ func awsRestjson1_deserializeDocument__listOfListedFlow(v *[]*types.ListedFlow, return nil } -func awsRestjson1_deserializeDocument__listOfOffering(v *[]*types.Offering, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfOffering(v *[]types.Offering, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4882,18 +4888,20 @@ func awsRestjson1_deserializeDocument__listOfOffering(v *[]*types.Offering, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Offering + var cv []types.Offering if *v == nil { - cv = []*types.Offering{} + cv = []types.Offering{} } else { cv = *v } for _, value := range shape { - var col *types.Offering - if err := awsRestjson1_deserializeDocumentOffering(&col, value); err != nil { + var col types.Offering + destAddr := &col + if err := awsRestjson1_deserializeDocumentOffering(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4901,7 +4909,7 @@ func awsRestjson1_deserializeDocument__listOfOffering(v *[]*types.Offering, valu return nil } -func awsRestjson1_deserializeDocument__listOfOutput(v *[]*types.Output, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfOutput(v *[]types.Output, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4914,18 +4922,20 @@ func awsRestjson1_deserializeDocument__listOfOutput(v *[]*types.Output, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Output + var cv []types.Output if *v == nil { - cv = []*types.Output{} + cv = []types.Output{} } else { cv = *v } for _, value := range shape { - var col *types.Output - if err := awsRestjson1_deserializeDocumentOutput(&col, value); err != nil { + var col types.Output + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4933,7 +4943,7 @@ func awsRestjson1_deserializeDocument__listOfOutput(v *[]*types.Output, value in return nil } -func awsRestjson1_deserializeDocument__listOfReservation(v *[]*types.Reservation, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfReservation(v *[]types.Reservation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4946,18 +4956,20 @@ func awsRestjson1_deserializeDocument__listOfReservation(v *[]*types.Reservation return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Reservation + var cv []types.Reservation if *v == nil { - cv = []*types.Reservation{} + cv = []types.Reservation{} } else { cv = *v } for _, value := range shape { - var col *types.Reservation - if err := awsRestjson1_deserializeDocumentReservation(&col, value); err != nil { + var col types.Reservation + destAddr := &col + if err := awsRestjson1_deserializeDocumentReservation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4965,7 +4977,7 @@ func awsRestjson1_deserializeDocument__listOfReservation(v *[]*types.Reservation return nil } -func awsRestjson1_deserializeDocument__listOfSource(v *[]*types.Source, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfSource(v *[]types.Source, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4978,18 +4990,20 @@ func awsRestjson1_deserializeDocument__listOfSource(v *[]*types.Source, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Source + var cv []types.Source if *v == nil { - cv = []*types.Source{} + cv = []types.Source{} } else { cv = *v } for _, value := range shape { - var col *types.Source - if err := awsRestjson1_deserializeDocumentSource(&col, value); err != nil { + var col types.Source + destAddr := &col + if err := awsRestjson1_deserializeDocumentSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4997,7 +5011,7 @@ func awsRestjson1_deserializeDocument__listOfSource(v *[]*types.Source, value in return nil } -func awsRestjson1_deserializeDocument__listOfVpcInterface(v *[]*types.VpcInterface, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfVpcInterface(v *[]types.VpcInterface, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5010,18 +5024,20 @@ func awsRestjson1_deserializeDocument__listOfVpcInterface(v *[]*types.VpcInterfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VpcInterface + var cv []types.VpcInterface if *v == nil { - cv = []*types.VpcInterface{} + cv = []types.VpcInterface{} } else { cv = *v } for _, value := range shape { - var col *types.VpcInterface - if err := awsRestjson1_deserializeDocumentVpcInterface(&col, value); err != nil { + var col types.VpcInterface + destAddr := &col + if err := awsRestjson1_deserializeDocumentVpcInterface(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5029,7 +5045,7 @@ func awsRestjson1_deserializeDocument__listOfVpcInterface(v *[]*types.VpcInterfa return nil } -func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5042,21 +5058,21 @@ func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -5093,7 +5109,7 @@ func awsRestjson1_deserializeDocumentAddFlowOutputs420Exception(v **types.AddFlo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5133,7 +5149,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5173,7 +5189,7 @@ func awsRestjson1_deserializeDocumentCreateFlow420Exception(v **types.CreateFlow if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5222,7 +5238,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ConstantInitializationVector = &jtv + sv.ConstantInitializationVector = ptr.String(jtv) } case "deviceId": @@ -5231,7 +5247,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeviceId = &jtv + sv.DeviceId = ptr.String(jtv) } case "keyType": @@ -5249,7 +5265,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "resourceId": @@ -5258,7 +5274,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "roleArn": @@ -5267,7 +5283,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "secretArn": @@ -5276,7 +5292,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SecretArn = &jtv + sv.SecretArn = ptr.String(jtv) } case "url": @@ -5285,7 +5301,7 @@ func awsRestjson1_deserializeDocumentEncryption(v **types.Encryption, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -5329,7 +5345,7 @@ func awsRestjson1_deserializeDocumentEntitlement(v **types.Entitlement, value in if err != nil { return err } - sv.DataTransferSubscriberFeePercent = ptr.Int32(int32(i64)) + sv.DataTransferSubscriberFeePercent = int32(i64) } case "description": @@ -5338,7 +5354,7 @@ func awsRestjson1_deserializeDocumentEntitlement(v **types.Entitlement, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "encryption": @@ -5352,7 +5368,7 @@ func awsRestjson1_deserializeDocumentEntitlement(v **types.Entitlement, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EntitlementArn = &jtv + sv.EntitlementArn = ptr.String(jtv) } case "entitlementStatus": @@ -5370,7 +5386,7 @@ func awsRestjson1_deserializeDocumentEntitlement(v **types.Entitlement, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "subscribers": @@ -5419,7 +5435,7 @@ func awsRestjson1_deserializeDocumentFailoverConfig(v **types.FailoverConfig, va if err != nil { return err } - sv.RecoveryWindow = ptr.Int32(int32(i64)) + sv.RecoveryWindow = int32(i64) } case "state": @@ -5468,7 +5484,7 @@ func awsRestjson1_deserializeDocumentFlow(v **types.Flow, value interface{}) err if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "description": @@ -5477,7 +5493,7 @@ func awsRestjson1_deserializeDocumentFlow(v **types.Flow, value interface{}) err if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "egressIp": @@ -5486,7 +5502,7 @@ func awsRestjson1_deserializeDocumentFlow(v **types.Flow, value interface{}) err if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EgressIp = &jtv + sv.EgressIp = ptr.String(jtv) } case "entitlements": @@ -5500,7 +5516,7 @@ func awsRestjson1_deserializeDocumentFlow(v **types.Flow, value interface{}) err if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "name": @@ -5509,7 +5525,7 @@ func awsRestjson1_deserializeDocumentFlow(v **types.Flow, value interface{}) err if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "outputs": @@ -5583,7 +5599,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5623,7 +5639,7 @@ func awsRestjson1_deserializeDocumentGrantFlowEntitlements420Exception(v **types if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5663,7 +5679,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5707,7 +5723,7 @@ func awsRestjson1_deserializeDocumentListedEntitlement(v **types.ListedEntitleme if err != nil { return err } - sv.DataTransferSubscriberFeePercent = ptr.Int32(int32(i64)) + sv.DataTransferSubscriberFeePercent = int32(i64) } case "entitlementArn": @@ -5716,7 +5732,7 @@ func awsRestjson1_deserializeDocumentListedEntitlement(v **types.ListedEntitleme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EntitlementArn = &jtv + sv.EntitlementArn = ptr.String(jtv) } case "entitlementName": @@ -5725,7 +5741,7 @@ func awsRestjson1_deserializeDocumentListedEntitlement(v **types.ListedEntitleme if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EntitlementName = &jtv + sv.EntitlementName = ptr.String(jtv) } default: @@ -5765,7 +5781,7 @@ func awsRestjson1_deserializeDocumentListedFlow(v **types.ListedFlow, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "description": @@ -5774,7 +5790,7 @@ func awsRestjson1_deserializeDocumentListedFlow(v **types.ListedFlow, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "flowArn": @@ -5783,7 +5799,7 @@ func awsRestjson1_deserializeDocumentListedFlow(v **types.ListedFlow, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } case "name": @@ -5792,7 +5808,7 @@ func awsRestjson1_deserializeDocumentListedFlow(v **types.ListedFlow, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "sourceType": @@ -5886,7 +5902,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5926,7 +5942,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "duration": @@ -5939,7 +5955,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "durationUnits": @@ -5957,7 +5973,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingArn = &jtv + sv.OfferingArn = ptr.String(jtv) } case "offeringDescription": @@ -5966,7 +5982,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingDescription = &jtv + sv.OfferingDescription = ptr.String(jtv) } case "pricePerUnit": @@ -5975,7 +5991,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PricePerUnit = &jtv + sv.PricePerUnit = ptr.String(jtv) } case "priceUnits": @@ -6033,7 +6049,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if err != nil { return err } - sv.DataTransferSubscriberFeePercent = ptr.Int32(int32(i64)) + sv.DataTransferSubscriberFeePercent = int32(i64) } case "description": @@ -6042,7 +6058,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "destination": @@ -6051,7 +6067,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Destination = &jtv + sv.Destination = ptr.String(jtv) } case "encryption": @@ -6065,7 +6081,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EntitlementArn = &jtv + sv.EntitlementArn = ptr.String(jtv) } case "mediaLiveInputArn": @@ -6074,7 +6090,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MediaLiveInputArn = &jtv + sv.MediaLiveInputArn = ptr.String(jtv) } case "name": @@ -6083,7 +6099,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "outputArn": @@ -6092,7 +6108,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OutputArn = &jtv + sv.OutputArn = ptr.String(jtv) } case "port": @@ -6105,7 +6121,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case "transport": @@ -6155,7 +6171,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "duration": @@ -6168,7 +6184,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "durationUnits": @@ -6186,7 +6202,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.End = &jtv + sv.End = ptr.String(jtv) } case "offeringArn": @@ -6195,7 +6211,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingArn = &jtv + sv.OfferingArn = ptr.String(jtv) } case "offeringDescription": @@ -6204,7 +6220,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingDescription = &jtv + sv.OfferingDescription = ptr.String(jtv) } case "pricePerUnit": @@ -6213,7 +6229,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PricePerUnit = &jtv + sv.PricePerUnit = ptr.String(jtv) } case "priceUnits": @@ -6231,7 +6247,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ReservationArn = &jtv + sv.ReservationArn = ptr.String(jtv) } case "reservationName": @@ -6240,7 +6256,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ReservationName = &jtv + sv.ReservationName = ptr.String(jtv) } case "reservationState": @@ -6263,7 +6279,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Start = &jtv + sv.Start = ptr.String(jtv) } default: @@ -6307,7 +6323,7 @@ func awsRestjson1_deserializeDocumentResourceSpecification(v **types.ResourceSpe if err != nil { return err } - sv.ReservedBitrate = ptr.Int32(int32(i64)) + sv.ReservedBitrate = int32(i64) } case "resourceType": @@ -6356,7 +6372,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6400,7 +6416,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if err != nil { return err } - sv.DataTransferSubscriberFeePercent = ptr.Int32(int32(i64)) + sv.DataTransferSubscriberFeePercent = int32(i64) } case "decryption": @@ -6414,7 +6430,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "entitlementArn": @@ -6423,7 +6439,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EntitlementArn = &jtv + sv.EntitlementArn = ptr.String(jtv) } case "ingestIp": @@ -6432,7 +6448,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.IngestIp = &jtv + sv.IngestIp = ptr.String(jtv) } case "ingestPort": @@ -6445,7 +6461,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if err != nil { return err } - sv.IngestPort = ptr.Int32(int32(i64)) + sv.IngestPort = int32(i64) } case "name": @@ -6454,7 +6470,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "sourceArn": @@ -6463,7 +6479,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } case "transport": @@ -6477,7 +6493,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VpcInterfaceName = &jtv + sv.VpcInterfaceName = ptr.String(jtv) } case "whitelistCidr": @@ -6486,7 +6502,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.WhitelistCidr = &jtv + sv.WhitelistCidr = ptr.String(jtv) } default: @@ -6526,7 +6542,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6575,7 +6591,7 @@ func awsRestjson1_deserializeDocumentTransport(v **types.Transport, value interf if err != nil { return err } - sv.MaxBitrate = ptr.Int32(int32(i64)) + sv.MaxBitrate = int32(i64) } case "maxLatency": @@ -6588,7 +6604,7 @@ func awsRestjson1_deserializeDocumentTransport(v **types.Transport, value interf if err != nil { return err } - sv.MaxLatency = ptr.Int32(int32(i64)) + sv.MaxLatency = int32(i64) } case "protocol": @@ -6606,7 +6622,7 @@ func awsRestjson1_deserializeDocumentTransport(v **types.Transport, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RemoteId = &jtv + sv.RemoteId = ptr.String(jtv) } case "smoothingLatency": @@ -6619,7 +6635,7 @@ func awsRestjson1_deserializeDocumentTransport(v **types.Transport, value interf if err != nil { return err } - sv.SmoothingLatency = ptr.Int32(int32(i64)) + sv.SmoothingLatency = int32(i64) } case "streamId": @@ -6628,7 +6644,7 @@ func awsRestjson1_deserializeDocumentTransport(v **types.Transport, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StreamId = &jtv + sv.StreamId = ptr.String(jtv) } default: @@ -6668,7 +6684,7 @@ func awsRestjson1_deserializeDocumentVpcInterface(v **types.VpcInterface, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "networkInterfaceIds": @@ -6682,7 +6698,7 @@ func awsRestjson1_deserializeDocumentVpcInterface(v **types.VpcInterface, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "securityGroupIds": @@ -6696,7 +6712,7 @@ func awsRestjson1_deserializeDocumentVpcInterface(v **types.VpcInterface, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } default: @@ -6736,7 +6752,7 @@ func awsRestjson1_deserializeDocumentVpcInterfaceAttachment(v **types.VpcInterfa if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VpcInterfaceName = &jtv + sv.VpcInterfaceName = ptr.String(jtv) } default: diff --git a/service/mediaconnect/go.mod b/service/mediaconnect/go.mod index 8082b1bea23..96d736161fe 100644 --- a/service/mediaconnect/go.mod +++ b/service/mediaconnect/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/mediaconnect go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/mediaconnect/serializers.go b/service/mediaconnect/serializers.go index 1ce330d0579..4b6faedd4e3 100644 --- a/service/mediaconnect/serializers.go +++ b/service/mediaconnect/serializers.go @@ -76,13 +76,10 @@ func awsRestjson1_serializeOpHttpBindingsAddFlowOutputsInput(v *AddFlowOutputsIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } @@ -167,13 +164,10 @@ func awsRestjson1_serializeOpHttpBindingsAddFlowSourcesInput(v *AddFlowSourcesIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } @@ -258,13 +252,10 @@ func awsRestjson1_serializeOpHttpBindingsAddFlowVpcInterfacesInput(v *AddFlowVpc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } @@ -458,13 +449,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFlowInput(v *DeleteFlowInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } @@ -524,13 +512,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeFlowInput(v *DescribeFlowInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } @@ -590,13 +575,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeOfferingInput(v *DescribeOfferi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.OfferingArn == nil { + if v.OfferingArn == nil || len(*v.OfferingArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OfferingArn must not be empty")} } if v.OfferingArn != nil { - if len(*v.OfferingArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member OfferingArn must not be empty")} - } if err := encoder.SetURI("OfferingArn").String(*v.OfferingArn); err != nil { return err } @@ -656,13 +638,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeReservationInput(v *DescribeRes return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ReservationArn == nil { + if v.ReservationArn == nil || len(*v.ReservationArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ReservationArn must not be empty")} } if v.ReservationArn != nil { - if len(*v.ReservationArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ReservationArn must not be empty")} - } if err := encoder.SetURI("ReservationArn").String(*v.ReservationArn); err != nil { return err } @@ -733,13 +712,10 @@ func awsRestjson1_serializeOpHttpBindingsGrantFlowEntitlementsInput(v *GrantFlow return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } @@ -813,8 +789,8 @@ func awsRestjson1_serializeOpHttpBindingsListEntitlementsInput(v *ListEntitlemen return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -875,8 +851,8 @@ func awsRestjson1_serializeOpHttpBindingsListFlowsInput(v *ListFlowsInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -937,8 +913,8 @@ func awsRestjson1_serializeOpHttpBindingsListOfferingsInput(v *ListOfferingsInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -999,8 +975,8 @@ func awsRestjson1_serializeOpHttpBindingsListReservationsInput(v *ListReservatio return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1061,13 +1037,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1138,13 +1111,10 @@ func awsRestjson1_serializeOpHttpBindingsPurchaseOfferingInput(v *PurchaseOfferi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.OfferingArn == nil { + if v.OfferingArn == nil || len(*v.OfferingArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OfferingArn must not be empty")} } if v.OfferingArn != nil { - if len(*v.OfferingArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member OfferingArn must not be empty")} - } if err := encoder.SetURI("OfferingArn").String(*v.OfferingArn); err != nil { return err } @@ -1221,25 +1191,19 @@ func awsRestjson1_serializeOpHttpBindingsRemoveFlowOutputInput(v *RemoveFlowOutp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } } - if v.OutputArn == nil { + if v.OutputArn == nil || len(*v.OutputArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OutputArn must not be empty")} } if v.OutputArn != nil { - if len(*v.OutputArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member OutputArn must not be empty")} - } if err := encoder.SetURI("OutputArn").String(*v.OutputArn); err != nil { return err } @@ -1299,25 +1263,19 @@ func awsRestjson1_serializeOpHttpBindingsRemoveFlowSourceInput(v *RemoveFlowSour return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } } - if v.SourceArn == nil { + if v.SourceArn == nil || len(*v.SourceArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SourceArn must not be empty")} } if v.SourceArn != nil { - if len(*v.SourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SourceArn must not be empty")} - } if err := encoder.SetURI("SourceArn").String(*v.SourceArn); err != nil { return err } @@ -1377,25 +1335,19 @@ func awsRestjson1_serializeOpHttpBindingsRemoveFlowVpcInterfaceInput(v *RemoveFl return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } } - if v.VpcInterfaceName == nil { + if v.VpcInterfaceName == nil || len(*v.VpcInterfaceName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VpcInterfaceName must not be empty")} } if v.VpcInterfaceName != nil { - if len(*v.VpcInterfaceName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VpcInterfaceName must not be empty")} - } if err := encoder.SetURI("VpcInterfaceName").String(*v.VpcInterfaceName); err != nil { return err } @@ -1455,25 +1407,19 @@ func awsRestjson1_serializeOpHttpBindingsRevokeFlowEntitlementInput(v *RevokeFlo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EntitlementArn == nil { + if v.EntitlementArn == nil || len(*v.EntitlementArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EntitlementArn must not be empty")} } if v.EntitlementArn != nil { - if len(*v.EntitlementArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EntitlementArn must not be empty")} - } if err := encoder.SetURI("EntitlementArn").String(*v.EntitlementArn); err != nil { return err } } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } @@ -1533,13 +1479,10 @@ func awsRestjson1_serializeOpHttpBindingsStartFlowInput(v *StartFlowInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } @@ -1599,13 +1542,10 @@ func awsRestjson1_serializeOpHttpBindingsStopFlowInput(v *StopFlowInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } @@ -1676,13 +1616,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1756,13 +1693,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1770,10 +1704,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1842,13 +1773,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFlowInput(v *UpdateFlowInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } @@ -1933,25 +1861,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFlowEntitlementInput(v *UpdateFlo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EntitlementArn == nil { + if v.EntitlementArn == nil || len(*v.EntitlementArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EntitlementArn must not be empty")} } if v.EntitlementArn != nil { - if len(*v.EntitlementArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EntitlementArn must not be empty")} - } if err := encoder.SetURI("EntitlementArn").String(*v.EntitlementArn); err != nil { return err } } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } @@ -2053,25 +1975,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFlowOutputInput(v *UpdateFlowOutp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } } - if v.OutputArn == nil { + if v.OutputArn == nil || len(*v.OutputArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OutputArn must not be empty")} } if v.OutputArn != nil { - if len(*v.OutputArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member OutputArn must not be empty")} - } if err := encoder.SetURI("OutputArn").String(*v.OutputArn); err != nil { return err } @@ -2108,14 +2024,14 @@ func awsRestjson1_serializeOpDocumentUpdateFlowOutputInput(v *UpdateFlowOutputIn } } - if v.MaxLatency != nil { + if v.MaxLatency != 0 { ok := object.Key("maxLatency") - ok.Integer(*v.MaxLatency) + ok.Integer(v.MaxLatency) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } if len(v.Protocol) > 0 { @@ -2128,9 +2044,9 @@ func awsRestjson1_serializeOpDocumentUpdateFlowOutputInput(v *UpdateFlowOutputIn ok.String(*v.RemoteId) } - if v.SmoothingLatency != nil { + if v.SmoothingLatency != 0 { ok := object.Key("smoothingLatency") - ok.Integer(*v.SmoothingLatency) + ok.Integer(v.SmoothingLatency) } if v.StreamId != nil { @@ -2210,25 +2126,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFlowSourceInput(v *UpdateFlowSour return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FlowArn == nil { + if v.FlowArn == nil || len(*v.FlowArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} } if v.FlowArn != nil { - if len(*v.FlowArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FlowArn must not be empty")} - } if err := encoder.SetURI("FlowArn").String(*v.FlowArn); err != nil { return err } } - if v.SourceArn == nil { + if v.SourceArn == nil || len(*v.SourceArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SourceArn must not be empty")} } if v.SourceArn != nil { - if len(*v.SourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SourceArn must not be empty")} - } if err := encoder.SetURI("SourceArn").String(*v.SourceArn); err != nil { return err } @@ -2258,19 +2168,19 @@ func awsRestjson1_serializeOpDocumentUpdateFlowSourceInput(v *UpdateFlowSourceIn ok.String(*v.EntitlementArn) } - if v.IngestPort != nil { + if v.IngestPort != 0 { ok := object.Key("ingestPort") - ok.Integer(*v.IngestPort) + ok.Integer(v.IngestPort) } - if v.MaxBitrate != nil { + if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") - ok.Integer(*v.MaxBitrate) + ok.Integer(v.MaxBitrate) } - if v.MaxLatency != nil { + if v.MaxLatency != 0 { ok := object.Key("maxLatency") - ok.Integer(*v.MaxLatency) + ok.Integer(v.MaxLatency) } if len(v.Protocol) > 0 { @@ -2296,100 +2206,76 @@ func awsRestjson1_serializeOpDocumentUpdateFlowSourceInput(v *UpdateFlowSourceIn return nil } -func awsRestjson1_serializeDocument__listOf__string(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOfAddOutputRequest(v []*types.AddOutputRequest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfAddOutputRequest(v []types.AddOutputRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAddOutputRequest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAddOutputRequest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfGrantEntitlementRequest(v []*types.GrantEntitlementRequest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfGrantEntitlementRequest(v []types.GrantEntitlementRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentGrantEntitlementRequest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentGrantEntitlementRequest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfSetSourceRequest(v []*types.SetSourceRequest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfSetSourceRequest(v []types.SetSourceRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSetSourceRequest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSetSourceRequest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfVpcInterfaceRequest(v []*types.VpcInterfaceRequest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfVpcInterfaceRequest(v []types.VpcInterfaceRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentVpcInterfaceRequest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentVpcInterfaceRequest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__mapOf__string(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__mapOf__string(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2422,9 +2308,9 @@ func awsRestjson1_serializeDocumentAddOutputRequest(v *types.AddOutputRequest, v } } - if v.MaxLatency != nil { + if v.MaxLatency != 0 { ok := object.Key("maxLatency") - ok.Integer(*v.MaxLatency) + ok.Integer(v.MaxLatency) } if v.Name != nil { @@ -2432,9 +2318,9 @@ func awsRestjson1_serializeDocumentAddOutputRequest(v *types.AddOutputRequest, v ok.String(*v.Name) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } if len(v.Protocol) > 0 { @@ -2447,9 +2333,9 @@ func awsRestjson1_serializeDocumentAddOutputRequest(v *types.AddOutputRequest, v ok.String(*v.RemoteId) } - if v.SmoothingLatency != nil { + if v.SmoothingLatency != 0 { ok := object.Key("smoothingLatency") - ok.Integer(*v.SmoothingLatency) + ok.Integer(v.SmoothingLatency) } if v.StreamId != nil { @@ -2523,9 +2409,9 @@ func awsRestjson1_serializeDocumentFailoverConfig(v *types.FailoverConfig, value object := value.Object() defer object.Close() - if v.RecoveryWindow != nil { + if v.RecoveryWindow != 0 { ok := object.Key("recoveryWindow") - ok.Integer(*v.RecoveryWindow) + ok.Integer(v.RecoveryWindow) } if len(v.State) > 0 { @@ -2540,9 +2426,9 @@ func awsRestjson1_serializeDocumentGrantEntitlementRequest(v *types.GrantEntitle object := value.Object() defer object.Close() - if v.DataTransferSubscriberFeePercent != nil { + if v.DataTransferSubscriberFeePercent != 0 { ok := object.Key("dataTransferSubscriberFeePercent") - ok.Integer(*v.DataTransferSubscriberFeePercent) + ok.Integer(v.DataTransferSubscriberFeePercent) } if v.Description != nil { @@ -2598,19 +2484,19 @@ func awsRestjson1_serializeDocumentSetSourceRequest(v *types.SetSourceRequest, v ok.String(*v.EntitlementArn) } - if v.IngestPort != nil { + if v.IngestPort != 0 { ok := object.Key("ingestPort") - ok.Integer(*v.IngestPort) + ok.Integer(v.IngestPort) } - if v.MaxBitrate != nil { + if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") - ok.Integer(*v.MaxBitrate) + ok.Integer(v.MaxBitrate) } - if v.MaxLatency != nil { + if v.MaxLatency != 0 { ok := object.Key("maxLatency") - ok.Integer(*v.MaxLatency) + ok.Integer(v.MaxLatency) } if v.Name != nil { @@ -2697,9 +2583,9 @@ func awsRestjson1_serializeDocumentUpdateFailoverConfig(v *types.UpdateFailoverC object := value.Object() defer object.Close() - if v.RecoveryWindow != nil { + if v.RecoveryWindow != 0 { ok := object.Key("recoveryWindow") - ok.Integer(*v.RecoveryWindow) + ok.Integer(v.RecoveryWindow) } if len(v.State) > 0 { diff --git a/service/mediaconnect/types/types.go b/service/mediaconnect/types/types.go index b61896c3b5d..c7e741093fa 100644 --- a/service/mediaconnect/types/types.go +++ b/service/mediaconnect/types/types.go @@ -13,7 +13,7 @@ type AddOutputRequest struct { // The range of IP addresses that should be allowed to initiate output requests to // this flow. These IP addresses should be in the form of a Classless Inter-Domain // Routing (CIDR) block; for example, 10.0.0.0/16. - CidrAllowList []*string + CidrAllowList []string // A description of the output. This description appears only on the AWS Elemental // MediaConnect console and will not be seen by the end user. @@ -27,19 +27,19 @@ type AddOutputRequest struct { Encryption *Encryption // The maximum latency in milliseconds for Zixi-based streams. - MaxLatency *int32 + MaxLatency int32 // The name of the output. This value must be unique within the current flow. Name *string // The port to use when content is distributed to this output. - Port *int32 + Port int32 // The remote ID for the Zixi-pull output stream. RemoteId *string // The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. - SmoothingLatency *int32 + SmoothingLatency int32 // The stream ID that you want to use for this transport. This parameter applies // only to Zixi-based streams. @@ -118,10 +118,10 @@ type Entitlement struct { // content as the source. // // This member is required. - Subscribers []*string + Subscribers []string // Percentage from 0-100 of the data transfer cost to be billed to the subscriber. - DataTransferSubscriberFeePercent *int32 + DataTransferSubscriberFeePercent int32 // A description of the entitlement. Description *string @@ -138,7 +138,7 @@ type Entitlement struct { type FailoverConfig struct { // Search window time to look for dash-7 packets - RecoveryWindow *int32 + RecoveryWindow int32 State State } @@ -155,7 +155,7 @@ type Flow struct { // The entitlements in this flow. // // This member is required. - Entitlements []*Entitlement + Entitlements []Entitlement // The Amazon Resource Name (ARN), a unique identifier for any AWS resource, of the // flow. @@ -171,7 +171,7 @@ type Flow struct { // The outputs in this flow. // // This member is required. - Outputs []*Output + Outputs []Output // The settings for the source of the flow. // @@ -193,10 +193,10 @@ type Flow struct { // The settings for source failover SourceFailoverConfig *FailoverConfig - Sources []*Source + Sources []Source // The VPC Interfaces for this flow. - VpcInterfaces []*VpcInterface + VpcInterfaces []VpcInterface } // The entitlements that you want to grant on a flow. @@ -207,10 +207,10 @@ type GrantEntitlementRequest struct { // content as the source. // // This member is required. - Subscribers []*string + Subscribers []string // Percentage from 0-100 of the data transfer cost to be billed to the subscriber. - DataTransferSubscriberFeePercent *int32 + DataTransferSubscriberFeePercent int32 // A description of the entitlement. This description appears only on the AWS // Elemental MediaConnect console and will not be seen by the subscriber or end @@ -244,7 +244,7 @@ type ListedEntitlement struct { EntitlementName *string // Percentage from 0-100 of the data transfer cost to be billed to the subscriber. - DataTransferSubscriberFeePercent *int32 + DataTransferSubscriberFeePercent int32 } // Provides a summary of a flow, including its ARN, Availability Zone, and source @@ -290,7 +290,7 @@ type Messages struct { // A list of errors that might have been generated from processes on this flow. // // This member is required. - Errors []*string + Errors []string } // A savings plan that reserves a certain amount of outbound bandwidth usage at a @@ -306,7 +306,7 @@ type Offering struct { // The length of time that your reservation would be active. // // This member is required. - Duration *int32 + Duration int32 // The unit of measurement for the duration of the offering. // @@ -356,7 +356,7 @@ type Output struct { OutputArn *string // Percentage from 0-100 of the data transfer cost to be billed to the subscriber. - DataTransferSubscriberFeePercent *int32 + DataTransferSubscriberFeePercent int32 // A description of the output. Description *string @@ -377,7 +377,7 @@ type Output struct { MediaLiveInputArn *string // The port to use when content is distributed to this output. - Port *int32 + Port int32 // Attributes related to the transport stream that are used in the output. Transport *Transport @@ -404,7 +404,7 @@ type Reservation struct { // value in the offering. // // This member is required. - Duration *int32 + Duration int32 // The unit of measurement for the duration of the reservation. MediaConnect // defines this value in the offering. @@ -480,7 +480,7 @@ type ResourceSpecification struct { ResourceType ResourceType // The amount of outbound bandwidth that is discounted in the offering. - ReservedBitrate *int32 + ReservedBitrate int32 } // The settings for the source of the flow. @@ -499,14 +499,14 @@ type SetSourceRequest struct { EntitlementArn *string // The port that the flow will be listening on for incoming content. - IngestPort *int32 + IngestPort int32 // The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. - MaxBitrate *int32 + MaxBitrate int32 // The maximum latency in milliseconds. This parameter applies only to RIST-based // and Zixi-based streams. - MaxLatency *int32 + MaxLatency int32 // The name of the source. Name *string @@ -541,7 +541,7 @@ type Source struct { SourceArn *string // Percentage from 0-100 of the data transfer cost to be billed to the subscriber. - DataTransferSubscriberFeePercent *int32 + DataTransferSubscriberFeePercent int32 // The type of encryption that is used on the content ingested from this source. Decryption *Encryption @@ -559,7 +559,7 @@ type Source struct { IngestIp *string // The port that the flow will be listening on for incoming content. - IngestPort *int32 + IngestPort int32 // Attributes related to the transport stream that are used in the source. Transport *Transport @@ -584,20 +584,20 @@ type Transport struct { // The range of IP addresses that should be allowed to initiate output requests to // this flow. These IP addresses should be in the form of a Classless Inter-Domain // Routing (CIDR) block; for example, 10.0.0.0/16. - CidrAllowList []*string + CidrAllowList []string // The smoothing max bitrate for RIST, RTP, and RTP-FEC streams. - MaxBitrate *int32 + MaxBitrate int32 // The maximum latency in milliseconds. This parameter applies only to RIST-based // and Zixi-based streams. - MaxLatency *int32 + MaxLatency int32 // The remote ID for the Zixi-pull stream. RemoteId *string // The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. - SmoothingLatency *int32 + SmoothingLatency int32 // The stream ID that you want to use for this transport. This parameter applies // only to Zixi-based streams. @@ -655,7 +655,7 @@ type UpdateEncryption struct { type UpdateFailoverConfig struct { // Recovery window time to look for dash-7 packets - RecoveryWindow *int32 + RecoveryWindow int32 State State } @@ -671,7 +671,7 @@ type VpcInterface struct { // IDs of the network interfaces created in customer's account by MediaConnect. // // This member is required. - NetworkInterfaceIds []*string + NetworkInterfaceIds []string // Role Arn MediaConnect can assumes to create ENIs in customer's account // @@ -681,7 +681,7 @@ type VpcInterface struct { // Security Group IDs to be used on ENI. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // Subnet must be in the AZ of the Flow // @@ -713,7 +713,7 @@ type VpcInterfaceRequest struct { // Security Group IDs to be used on ENI. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // Subnet must be in the AZ of the Flow // diff --git a/service/mediaconnect/validators.go b/service/mediaconnect/validators.go index a56756957c5..0face036260 100644 --- a/service/mediaconnect/validators.go +++ b/service/mediaconnect/validators.go @@ -562,13 +562,13 @@ func addOpUpdateFlowSourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateFlowSource{}, middleware.After) } -func validate__listOfAddOutputRequest(v []*types.AddOutputRequest) error { +func validate__listOfAddOutputRequest(v []types.AddOutputRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfAddOutputRequest"} for i := range v { - if err := validateAddOutputRequest(v[i]); err != nil { + if err := validateAddOutputRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -579,13 +579,13 @@ func validate__listOfAddOutputRequest(v []*types.AddOutputRequest) error { } } -func validate__listOfGrantEntitlementRequest(v []*types.GrantEntitlementRequest) error { +func validate__listOfGrantEntitlementRequest(v []types.GrantEntitlementRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfGrantEntitlementRequest"} for i := range v { - if err := validateGrantEntitlementRequest(v[i]); err != nil { + if err := validateGrantEntitlementRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -596,13 +596,13 @@ func validate__listOfGrantEntitlementRequest(v []*types.GrantEntitlementRequest) } } -func validate__listOfSetSourceRequest(v []*types.SetSourceRequest) error { +func validate__listOfSetSourceRequest(v []types.SetSourceRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfSetSourceRequest"} for i := range v { - if err := validateSetSourceRequest(v[i]); err != nil { + if err := validateSetSourceRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -613,13 +613,13 @@ func validate__listOfSetSourceRequest(v []*types.SetSourceRequest) error { } } -func validate__listOfVpcInterfaceRequest(v []*types.VpcInterfaceRequest) error { +func validate__listOfVpcInterfaceRequest(v []types.VpcInterfaceRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfVpcInterfaceRequest"} for i := range v { - if err := validateVpcInterfaceRequest(v[i]); err != nil { + if err := validateVpcInterfaceRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/mediaconvert/api_op_CreateJob.go b/service/mediaconvert/api_op_CreateJob.go index 509110b4412..eae9fd4c275 100644 --- a/service/mediaconvert/api_op_CreateJob.go +++ b/service/mediaconvert/api_op_CreateJob.go @@ -63,7 +63,7 @@ type CreateJobInput struct { // queue that you submit your job to. Specify an alternate queue and the maximum // time that your job will wait in the initial queue before hopping. For more // information about this feature, see the AWS Elemental MediaConvert User Guide. - HopDestinations []*types.HopDestination + HopDestinations []types.HopDestination // Optional. When you create a job, you can either specify a job template or // specify the transcoding settings individually. @@ -74,7 +74,7 @@ type CreateJobInput struct { // one job has the same priority, the service begins processing the job that you // submitted first. If you don't specify a priority, the service uses the default // value 0. - Priority *int32 + Priority int32 // Optional. When you create a job, you can specify a queue to send it to. If you // don't specify, the job will go to the default queue. For more about queues, see @@ -97,11 +97,11 @@ type CreateJobInput struct { // Optional. The tags that you want to add to the resource. You can tag resources // with a key-value pair or with only a key. - Tags map[string]*string + Tags map[string]string // Optional. User-defined metadata that you want to associate with an MediaConvert // job. You specify metadata in key/value pairs. - UserMetadata map[string]*string + UserMetadata map[string]string } type CreateJobOutput struct { diff --git a/service/mediaconvert/api_op_CreateJobTemplate.go b/service/mediaconvert/api_op_CreateJobTemplate.go index 76e0efe1a8b..39ccbd5eccf 100644 --- a/service/mediaconvert/api_op_CreateJobTemplate.go +++ b/service/mediaconvert/api_op_CreateJobTemplate.go @@ -57,13 +57,13 @@ type CreateJobTemplateInput struct { // queue that you submit your job to. Specify an alternate queue and the maximum // time that your job will wait in the initial queue before hopping. For more // information about this feature, see the AWS Elemental MediaConvert User Guide. - HopDestinations []*types.HopDestination + HopDestinations []types.HopDestination // Specify the relative priority for this job. In any given queue, the service // begins processing the job with the highest value first. When more than one job // has the same priority, the service begins processing the job that you submitted // first. If you don't specify a priority, the service uses the default value 0. - Priority *int32 + Priority int32 // Optional. The queue that jobs created from this template are assigned to. If you // don't specify this, jobs will go to the default queue. @@ -77,7 +77,7 @@ type CreateJobTemplateInput struct { // The tags that you want to add to the resource. You can tag resources with a // key-value pair or with only a key. - Tags map[string]*string + Tags map[string]string } type CreateJobTemplateOutput struct { diff --git a/service/mediaconvert/api_op_CreatePreset.go b/service/mediaconvert/api_op_CreatePreset.go index 0e60e66a177..c0128c69178 100644 --- a/service/mediaconvert/api_op_CreatePreset.go +++ b/service/mediaconvert/api_op_CreatePreset.go @@ -48,7 +48,7 @@ type CreatePresetInput struct { // The tags that you want to add to the resource. You can tag resources with a // key-value pair or with only a key. - Tags map[string]*string + Tags map[string]string } type CreatePresetOutput struct { diff --git a/service/mediaconvert/api_op_CreateQueue.go b/service/mediaconvert/api_op_CreateQueue.go index a0ca67a764a..f81cbafa6e1 100644 --- a/service/mediaconvert/api_op_CreateQueue.go +++ b/service/mediaconvert/api_op_CreateQueue.go @@ -56,7 +56,7 @@ type CreateQueueInput struct { // The tags that you want to add to the resource. You can tag resources with a // key-value pair or with only a key. - Tags map[string]*string + Tags map[string]string } type CreateQueueOutput struct { diff --git a/service/mediaconvert/api_op_DescribeEndpoints.go b/service/mediaconvert/api_op_DescribeEndpoints.go index 6bea28dfc08..59bb8bdf464 100644 --- a/service/mediaconvert/api_op_DescribeEndpoints.go +++ b/service/mediaconvert/api_op_DescribeEndpoints.go @@ -33,7 +33,7 @@ type DescribeEndpointsInput struct { // Optional. Max number of endpoints, up to twenty, that will be returned at one // time. - MaxResults *int32 + MaxResults int32 // Optional field, defaults to DEFAULT. Specify DEFAULT for this operation to // return your endpoints if any exist, or to create an endpoint for you and return @@ -49,7 +49,7 @@ type DescribeEndpointsInput struct { type DescribeEndpointsOutput struct { // List of endpoints - Endpoints []*types.Endpoint + Endpoints []types.Endpoint // Use this string to request the next batch of endpoints. NextToken *string diff --git a/service/mediaconvert/api_op_ListJobTemplates.go b/service/mediaconvert/api_op_ListJobTemplates.go index 2abaae01140..51851dcda0b 100644 --- a/service/mediaconvert/api_op_ListJobTemplates.go +++ b/service/mediaconvert/api_op_ListJobTemplates.go @@ -42,7 +42,7 @@ type ListJobTemplatesInput struct { // Optional. Number of job templates, up to twenty, that will be returned at one // time. - MaxResults *int32 + MaxResults int32 // Use this string, provided with the response to a previous request, to request // the next batch of job templates. @@ -56,7 +56,7 @@ type ListJobTemplatesInput struct { type ListJobTemplatesOutput struct { // List of Job templates. - JobTemplates []*types.JobTemplate + JobTemplates []types.JobTemplate // Use this string to request the next batch of job templates. NextToken *string diff --git a/service/mediaconvert/api_op_ListJobs.go b/service/mediaconvert/api_op_ListJobs.go index 2fffd73a999..20a712f8f45 100644 --- a/service/mediaconvert/api_op_ListJobs.go +++ b/service/mediaconvert/api_op_ListJobs.go @@ -33,7 +33,7 @@ func (c *Client) ListJobs(ctx context.Context, params *ListJobsInput, optFns ... type ListJobsInput struct { // Optional. Number of jobs, up to twenty, that will be returned at one time. - MaxResults *int32 + MaxResults int32 // Optional. Use this string, provided with the response to a previous request, to // request the next batch of jobs. @@ -54,7 +54,7 @@ type ListJobsInput struct { type ListJobsOutput struct { // List of jobs - Jobs []*types.Job + Jobs []types.Job // Use this string to request the next batch of jobs. NextToken *string diff --git a/service/mediaconvert/api_op_ListPresets.go b/service/mediaconvert/api_op_ListPresets.go index c4c239fd37d..66783284f80 100644 --- a/service/mediaconvert/api_op_ListPresets.go +++ b/service/mediaconvert/api_op_ListPresets.go @@ -41,7 +41,7 @@ type ListPresetsInput struct { ListBy types.PresetListBy // Optional. Number of presets, up to twenty, that will be returned at one time - MaxResults *int32 + MaxResults int32 // Use this string, provided with the response to a previous request, to request // the next batch of presets. @@ -58,7 +58,7 @@ type ListPresetsOutput struct { NextToken *string // List of presets - Presets []*types.Preset + Presets []types.Preset // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediaconvert/api_op_ListQueues.go b/service/mediaconvert/api_op_ListQueues.go index a06e5286807..9e36f9be45e 100644 --- a/service/mediaconvert/api_op_ListQueues.go +++ b/service/mediaconvert/api_op_ListQueues.go @@ -37,7 +37,7 @@ type ListQueuesInput struct { ListBy types.QueueListBy // Optional. Number of queues, up to twenty, that will be returned at one time. - MaxResults *int32 + MaxResults int32 // Use this string, provided with the response to a previous request, to request // the next batch of queues. @@ -54,7 +54,7 @@ type ListQueuesOutput struct { NextToken *string // List of queues. - Queues []*types.Queue + Queues []types.Queue // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediaconvert/api_op_TagResource.go b/service/mediaconvert/api_op_TagResource.go index 542db46e9d6..61b40ffc77e 100644 --- a/service/mediaconvert/api_op_TagResource.go +++ b/service/mediaconvert/api_op_TagResource.go @@ -40,7 +40,7 @@ type TagResourceInput struct { // key-value pair or with only a key. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/mediaconvert/api_op_UntagResource.go b/service/mediaconvert/api_op_UntagResource.go index 502eabfcc55..c39cb5e8b78 100644 --- a/service/mediaconvert/api_op_UntagResource.go +++ b/service/mediaconvert/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { Arn *string // The keys of the tags that you want to remove from the resource. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/mediaconvert/api_op_UpdateJobTemplate.go b/service/mediaconvert/api_op_UpdateJobTemplate.go index a8b7259764d..1093b6f8ba2 100644 --- a/service/mediaconvert/api_op_UpdateJobTemplate.go +++ b/service/mediaconvert/api_op_UpdateJobTemplate.go @@ -47,13 +47,13 @@ type UpdateJobTemplateInput struct { Description *string // Optional list of hop destinations. - HopDestinations []*types.HopDestination + HopDestinations []types.HopDestination // Specify the relative priority for this job. In any given queue, the service // begins processing the job with the highest value first. When more than one job // has the same priority, the service begins processing the job that you submitted // first. If you don't specify a priority, the service uses the default value 0. - Priority *int32 + Priority int32 // The new queue for the job template, if you are changing it. Queue *string diff --git a/service/mediaconvert/deserializers.go b/service/mediaconvert/deserializers.go index c146c5b7255..7cfb6eec286 100644 --- a/service/mediaconvert/deserializers.go +++ b/service/mediaconvert/deserializers.go @@ -1316,7 +1316,7 @@ func awsRestjson1_deserializeOpDocumentDescribeEndpointsOutput(v **DescribeEndpo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2233,7 +2233,7 @@ func awsRestjson1_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2404,7 +2404,7 @@ func awsRestjson1_deserializeOpDocumentListJobTemplatesOutput(v **ListJobTemplat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2570,7 +2570,7 @@ func awsRestjson1_deserializeOpDocumentListPresetsOutput(v **ListPresetsOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "presets": @@ -2741,7 +2741,7 @@ func awsRestjson1_deserializeOpDocumentListQueuesOutput(v **ListQueuesOutput, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "queues": @@ -3818,7 +3818,7 @@ func awsRestjson1_deserializeErrorTooManyRequestsException(response *smithyhttp. return output } -func awsRestjson1_deserializeDocument__listOf__integerMin1Max2147483647(v *[]*int32, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__integerMin1Max2147483647(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3831,15 +3831,15 @@ func awsRestjson1_deserializeDocument__listOf__integerMin1Max2147483647(v *[]*in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int32 + var cv []int32 if *v == nil { - cv = []*int32{} + cv = []int32{} } else { cv = *v } for _, value := range shape { - var col *int32 + var col int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -3849,7 +3849,7 @@ func awsRestjson1_deserializeDocument__listOf__integerMin1Max2147483647(v *[]*in if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } cv = append(cv, col) @@ -3858,7 +3858,7 @@ func awsRestjson1_deserializeDocument__listOf__integerMin1Max2147483647(v *[]*in return nil } -func awsRestjson1_deserializeDocument__listOf__integerMin32Max8182(v *[]*int32, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__integerMin32Max8182(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3871,15 +3871,15 @@ func awsRestjson1_deserializeDocument__listOf__integerMin32Max8182(v *[]*int32, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int32 + var cv []int32 if *v == nil { - cv = []*int32{} + cv = []int32{} } else { cv = *v } for _, value := range shape { - var col *int32 + var col int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -3889,7 +3889,7 @@ func awsRestjson1_deserializeDocument__listOf__integerMin32Max8182(v *[]*int32, if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } cv = append(cv, col) @@ -3898,7 +3898,7 @@ func awsRestjson1_deserializeDocument__listOf__integerMin32Max8182(v *[]*int32, return nil } -func awsRestjson1_deserializeDocument__listOf__integerMinNegative60Max6(v *[]*int32, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__integerMinNegative60Max6(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3911,15 +3911,15 @@ func awsRestjson1_deserializeDocument__listOf__integerMinNegative60Max6(v *[]*in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int32 + var cv []int32 if *v == nil { - cv = []*int32{} + cv = []int32{} } else { cv = *v } for _, value := range shape { - var col *int32 + var col int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -3929,7 +3929,7 @@ func awsRestjson1_deserializeDocument__listOf__integerMinNegative60Max6(v *[]*in if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } cv = append(cv, col) @@ -3938,7 +3938,7 @@ func awsRestjson1_deserializeDocument__listOf__integerMinNegative60Max6(v *[]*in return nil } -func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3951,21 +3951,21 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -3974,7 +3974,7 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return nil } -func awsRestjson1_deserializeDocument__listOf__stringMin1(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__stringMin1(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3987,21 +3987,21 @@ func awsRestjson1_deserializeDocument__listOf__stringMin1(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4010,7 +4010,7 @@ func awsRestjson1_deserializeDocument__listOf__stringMin1(v *[]*string, value in return nil } -func awsRestjson1_deserializeDocument__listOf__stringMin36Max36Pattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__stringMin36Max36Pattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4023,21 +4023,21 @@ func awsRestjson1_deserializeDocument__listOf__stringMin36Max36Pattern09aFAF809a return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected __stringMin36Max36Pattern09aFAF809aFAF409aFAF409aFAF409aFAF12 to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4046,7 +4046,7 @@ func awsRestjson1_deserializeDocument__listOf__stringMin36Max36Pattern09aFAF809a return nil } -func awsRestjson1_deserializeDocument__listOf__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4059,21 +4059,21 @@ func awsRestjson1_deserializeDocument__listOf__stringPattern09aFAF809aFAF409aFAF return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected __stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12 to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4082,7 +4082,7 @@ func awsRestjson1_deserializeDocument__listOf__stringPattern09aFAF809aFAF409aFAF return nil } -func awsRestjson1_deserializeDocument__listOf__stringPatternS3ASSETMAPXml(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__stringPatternS3ASSETMAPXml(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4095,21 +4095,21 @@ func awsRestjson1_deserializeDocument__listOf__stringPatternS3ASSETMAPXml(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected __stringPatternS3ASSETMAPXml to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4118,7 +4118,7 @@ func awsRestjson1_deserializeDocument__listOf__stringPatternS3ASSETMAPXml(v *[]* return nil } -func awsRestjson1_deserializeDocument__listOfAudioDescription(v *[]*types.AudioDescription, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfAudioDescription(v *[]types.AudioDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4131,18 +4131,20 @@ func awsRestjson1_deserializeDocument__listOfAudioDescription(v *[]*types.AudioD return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AudioDescription + var cv []types.AudioDescription if *v == nil { - cv = []*types.AudioDescription{} + cv = []types.AudioDescription{} } else { cv = *v } for _, value := range shape { - var col *types.AudioDescription - if err := awsRestjson1_deserializeDocumentAudioDescription(&col, value); err != nil { + var col types.AudioDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentAudioDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4150,7 +4152,7 @@ func awsRestjson1_deserializeDocument__listOfAudioDescription(v *[]*types.AudioD return nil } -func awsRestjson1_deserializeDocument__listOfCaptionDescription(v *[]*types.CaptionDescription, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfCaptionDescription(v *[]types.CaptionDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4163,18 +4165,20 @@ func awsRestjson1_deserializeDocument__listOfCaptionDescription(v *[]*types.Capt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CaptionDescription + var cv []types.CaptionDescription if *v == nil { - cv = []*types.CaptionDescription{} + cv = []types.CaptionDescription{} } else { cv = *v } for _, value := range shape { - var col *types.CaptionDescription - if err := awsRestjson1_deserializeDocumentCaptionDescription(&col, value); err != nil { + var col types.CaptionDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentCaptionDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4182,7 +4186,7 @@ func awsRestjson1_deserializeDocument__listOfCaptionDescription(v *[]*types.Capt return nil } -func awsRestjson1_deserializeDocument__listOfCaptionDescriptionPreset(v *[]*types.CaptionDescriptionPreset, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfCaptionDescriptionPreset(v *[]types.CaptionDescriptionPreset, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4195,18 +4199,20 @@ func awsRestjson1_deserializeDocument__listOfCaptionDescriptionPreset(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CaptionDescriptionPreset + var cv []types.CaptionDescriptionPreset if *v == nil { - cv = []*types.CaptionDescriptionPreset{} + cv = []types.CaptionDescriptionPreset{} } else { cv = *v } for _, value := range shape { - var col *types.CaptionDescriptionPreset - if err := awsRestjson1_deserializeDocumentCaptionDescriptionPreset(&col, value); err != nil { + var col types.CaptionDescriptionPreset + destAddr := &col + if err := awsRestjson1_deserializeDocumentCaptionDescriptionPreset(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4214,7 +4220,7 @@ func awsRestjson1_deserializeDocument__listOfCaptionDescriptionPreset(v *[]*type return nil } -func awsRestjson1_deserializeDocument__listOfCmafAdditionalManifest(v *[]*types.CmafAdditionalManifest, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfCmafAdditionalManifest(v *[]types.CmafAdditionalManifest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4227,18 +4233,20 @@ func awsRestjson1_deserializeDocument__listOfCmafAdditionalManifest(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CmafAdditionalManifest + var cv []types.CmafAdditionalManifest if *v == nil { - cv = []*types.CmafAdditionalManifest{} + cv = []types.CmafAdditionalManifest{} } else { cv = *v } for _, value := range shape { - var col *types.CmafAdditionalManifest - if err := awsRestjson1_deserializeDocumentCmafAdditionalManifest(&col, value); err != nil { + var col types.CmafAdditionalManifest + destAddr := &col + if err := awsRestjson1_deserializeDocumentCmafAdditionalManifest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4246,7 +4254,7 @@ func awsRestjson1_deserializeDocument__listOfCmafAdditionalManifest(v *[]*types. return nil } -func awsRestjson1_deserializeDocument__listOfDashAdditionalManifest(v *[]*types.DashAdditionalManifest, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfDashAdditionalManifest(v *[]types.DashAdditionalManifest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4259,18 +4267,20 @@ func awsRestjson1_deserializeDocument__listOfDashAdditionalManifest(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DashAdditionalManifest + var cv []types.DashAdditionalManifest if *v == nil { - cv = []*types.DashAdditionalManifest{} + cv = []types.DashAdditionalManifest{} } else { cv = *v } for _, value := range shape { - var col *types.DashAdditionalManifest - if err := awsRestjson1_deserializeDocumentDashAdditionalManifest(&col, value); err != nil { + var col types.DashAdditionalManifest + destAddr := &col + if err := awsRestjson1_deserializeDocumentDashAdditionalManifest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4278,7 +4288,7 @@ func awsRestjson1_deserializeDocument__listOfDashAdditionalManifest(v *[]*types. return nil } -func awsRestjson1_deserializeDocument__listOfEndpoint(v *[]*types.Endpoint, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfEndpoint(v *[]types.Endpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4291,18 +4301,20 @@ func awsRestjson1_deserializeDocument__listOfEndpoint(v *[]*types.Endpoint, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Endpoint + var cv []types.Endpoint if *v == nil { - cv = []*types.Endpoint{} + cv = []types.Endpoint{} } else { cv = *v } for _, value := range shape { - var col *types.Endpoint - if err := awsRestjson1_deserializeDocumentEndpoint(&col, value); err != nil { + var col types.Endpoint + destAddr := &col + if err := awsRestjson1_deserializeDocumentEndpoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4310,7 +4322,7 @@ func awsRestjson1_deserializeDocument__listOfEndpoint(v *[]*types.Endpoint, valu return nil } -func awsRestjson1_deserializeDocument__listOfHlsAdditionalManifest(v *[]*types.HlsAdditionalManifest, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfHlsAdditionalManifest(v *[]types.HlsAdditionalManifest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4323,18 +4335,20 @@ func awsRestjson1_deserializeDocument__listOfHlsAdditionalManifest(v *[]*types.H return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HlsAdditionalManifest + var cv []types.HlsAdditionalManifest if *v == nil { - cv = []*types.HlsAdditionalManifest{} + cv = []types.HlsAdditionalManifest{} } else { cv = *v } for _, value := range shape { - var col *types.HlsAdditionalManifest - if err := awsRestjson1_deserializeDocumentHlsAdditionalManifest(&col, value); err != nil { + var col types.HlsAdditionalManifest + destAddr := &col + if err := awsRestjson1_deserializeDocumentHlsAdditionalManifest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4378,7 +4392,7 @@ func awsRestjson1_deserializeDocument__listOfHlsAdMarkers(v *[]types.HlsAdMarker return nil } -func awsRestjson1_deserializeDocument__listOfHlsCaptionLanguageMapping(v *[]*types.HlsCaptionLanguageMapping, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfHlsCaptionLanguageMapping(v *[]types.HlsCaptionLanguageMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4391,18 +4405,20 @@ func awsRestjson1_deserializeDocument__listOfHlsCaptionLanguageMapping(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HlsCaptionLanguageMapping + var cv []types.HlsCaptionLanguageMapping if *v == nil { - cv = []*types.HlsCaptionLanguageMapping{} + cv = []types.HlsCaptionLanguageMapping{} } else { cv = *v } for _, value := range shape { - var col *types.HlsCaptionLanguageMapping - if err := awsRestjson1_deserializeDocumentHlsCaptionLanguageMapping(&col, value); err != nil { + var col types.HlsCaptionLanguageMapping + destAddr := &col + if err := awsRestjson1_deserializeDocumentHlsCaptionLanguageMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4410,7 +4426,7 @@ func awsRestjson1_deserializeDocument__listOfHlsCaptionLanguageMapping(v *[]*typ return nil } -func awsRestjson1_deserializeDocument__listOfHopDestination(v *[]*types.HopDestination, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfHopDestination(v *[]types.HopDestination, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4423,18 +4439,20 @@ func awsRestjson1_deserializeDocument__listOfHopDestination(v *[]*types.HopDesti return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HopDestination + var cv []types.HopDestination if *v == nil { - cv = []*types.HopDestination{} + cv = []types.HopDestination{} } else { cv = *v } for _, value := range shape { - var col *types.HopDestination - if err := awsRestjson1_deserializeDocumentHopDestination(&col, value); err != nil { + var col types.HopDestination + destAddr := &col + if err := awsRestjson1_deserializeDocumentHopDestination(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4442,7 +4460,7 @@ func awsRestjson1_deserializeDocument__listOfHopDestination(v *[]*types.HopDesti return nil } -func awsRestjson1_deserializeDocument__listOfId3Insertion(v *[]*types.Id3Insertion, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfId3Insertion(v *[]types.Id3Insertion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4455,18 +4473,20 @@ func awsRestjson1_deserializeDocument__listOfId3Insertion(v *[]*types.Id3Inserti return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Id3Insertion + var cv []types.Id3Insertion if *v == nil { - cv = []*types.Id3Insertion{} + cv = []types.Id3Insertion{} } else { cv = *v } for _, value := range shape { - var col *types.Id3Insertion - if err := awsRestjson1_deserializeDocumentId3Insertion(&col, value); err != nil { + var col types.Id3Insertion + destAddr := &col + if err := awsRestjson1_deserializeDocumentId3Insertion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4474,7 +4494,7 @@ func awsRestjson1_deserializeDocument__listOfId3Insertion(v *[]*types.Id3Inserti return nil } -func awsRestjson1_deserializeDocument__listOfInput(v *[]*types.Input, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInput(v *[]types.Input, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4487,18 +4507,20 @@ func awsRestjson1_deserializeDocument__listOfInput(v *[]*types.Input, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Input + var cv []types.Input if *v == nil { - cv = []*types.Input{} + cv = []types.Input{} } else { cv = *v } for _, value := range shape { - var col *types.Input - if err := awsRestjson1_deserializeDocumentInput(&col, value); err != nil { + var col types.Input + destAddr := &col + if err := awsRestjson1_deserializeDocumentInput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4506,7 +4528,7 @@ func awsRestjson1_deserializeDocument__listOfInput(v *[]*types.Input, value inte return nil } -func awsRestjson1_deserializeDocument__listOfInputClipping(v *[]*types.InputClipping, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInputClipping(v *[]types.InputClipping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4519,18 +4541,20 @@ func awsRestjson1_deserializeDocument__listOfInputClipping(v *[]*types.InputClip return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputClipping + var cv []types.InputClipping if *v == nil { - cv = []*types.InputClipping{} + cv = []types.InputClipping{} } else { cv = *v } for _, value := range shape { - var col *types.InputClipping - if err := awsRestjson1_deserializeDocumentInputClipping(&col, value); err != nil { + var col types.InputClipping + destAddr := &col + if err := awsRestjson1_deserializeDocumentInputClipping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4538,7 +4562,7 @@ func awsRestjson1_deserializeDocument__listOfInputClipping(v *[]*types.InputClip return nil } -func awsRestjson1_deserializeDocument__listOfInputTemplate(v *[]*types.InputTemplate, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInputTemplate(v *[]types.InputTemplate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4551,18 +4575,20 @@ func awsRestjson1_deserializeDocument__listOfInputTemplate(v *[]*types.InputTemp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputTemplate + var cv []types.InputTemplate if *v == nil { - cv = []*types.InputTemplate{} + cv = []types.InputTemplate{} } else { cv = *v } for _, value := range shape { - var col *types.InputTemplate - if err := awsRestjson1_deserializeDocumentInputTemplate(&col, value); err != nil { + var col types.InputTemplate + destAddr := &col + if err := awsRestjson1_deserializeDocumentInputTemplate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4570,7 +4596,7 @@ func awsRestjson1_deserializeDocument__listOfInputTemplate(v *[]*types.InputTemp return nil } -func awsRestjson1_deserializeDocument__listOfInsertableImage(v *[]*types.InsertableImage, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInsertableImage(v *[]types.InsertableImage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4583,18 +4609,20 @@ func awsRestjson1_deserializeDocument__listOfInsertableImage(v *[]*types.Inserta return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InsertableImage + var cv []types.InsertableImage if *v == nil { - cv = []*types.InsertableImage{} + cv = []types.InsertableImage{} } else { cv = *v } for _, value := range shape { - var col *types.InsertableImage - if err := awsRestjson1_deserializeDocumentInsertableImage(&col, value); err != nil { + var col types.InsertableImage + destAddr := &col + if err := awsRestjson1_deserializeDocumentInsertableImage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4602,7 +4630,7 @@ func awsRestjson1_deserializeDocument__listOfInsertableImage(v *[]*types.Inserta return nil } -func awsRestjson1_deserializeDocument__listOfJob(v *[]*types.Job, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfJob(v *[]types.Job, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4615,18 +4643,20 @@ func awsRestjson1_deserializeDocument__listOfJob(v *[]*types.Job, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Job + var cv []types.Job if *v == nil { - cv = []*types.Job{} + cv = []types.Job{} } else { cv = *v } for _, value := range shape { - var col *types.Job - if err := awsRestjson1_deserializeDocumentJob(&col, value); err != nil { + var col types.Job + destAddr := &col + if err := awsRestjson1_deserializeDocumentJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4634,7 +4664,7 @@ func awsRestjson1_deserializeDocument__listOfJob(v *[]*types.Job, value interfac return nil } -func awsRestjson1_deserializeDocument__listOfJobTemplate(v *[]*types.JobTemplate, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfJobTemplate(v *[]types.JobTemplate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4647,18 +4677,20 @@ func awsRestjson1_deserializeDocument__listOfJobTemplate(v *[]*types.JobTemplate return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobTemplate + var cv []types.JobTemplate if *v == nil { - cv = []*types.JobTemplate{} + cv = []types.JobTemplate{} } else { cv = *v } for _, value := range shape { - var col *types.JobTemplate - if err := awsRestjson1_deserializeDocumentJobTemplate(&col, value); err != nil { + var col types.JobTemplate + destAddr := &col + if err := awsRestjson1_deserializeDocumentJobTemplate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4666,7 +4698,7 @@ func awsRestjson1_deserializeDocument__listOfJobTemplate(v *[]*types.JobTemplate return nil } -func awsRestjson1_deserializeDocument__listOfMsSmoothAdditionalManifest(v *[]*types.MsSmoothAdditionalManifest, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfMsSmoothAdditionalManifest(v *[]types.MsSmoothAdditionalManifest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4679,18 +4711,20 @@ func awsRestjson1_deserializeDocument__listOfMsSmoothAdditionalManifest(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MsSmoothAdditionalManifest + var cv []types.MsSmoothAdditionalManifest if *v == nil { - cv = []*types.MsSmoothAdditionalManifest{} + cv = []types.MsSmoothAdditionalManifest{} } else { cv = *v } for _, value := range shape { - var col *types.MsSmoothAdditionalManifest - if err := awsRestjson1_deserializeDocumentMsSmoothAdditionalManifest(&col, value); err != nil { + var col types.MsSmoothAdditionalManifest + destAddr := &col + if err := awsRestjson1_deserializeDocumentMsSmoothAdditionalManifest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4698,7 +4732,7 @@ func awsRestjson1_deserializeDocument__listOfMsSmoothAdditionalManifest(v *[]*ty return nil } -func awsRestjson1_deserializeDocument__listOfOutput(v *[]*types.Output, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfOutput(v *[]types.Output, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4711,18 +4745,20 @@ func awsRestjson1_deserializeDocument__listOfOutput(v *[]*types.Output, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Output + var cv []types.Output if *v == nil { - cv = []*types.Output{} + cv = []types.Output{} } else { cv = *v } for _, value := range shape { - var col *types.Output - if err := awsRestjson1_deserializeDocumentOutput(&col, value); err != nil { + var col types.Output + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4730,7 +4766,7 @@ func awsRestjson1_deserializeDocument__listOfOutput(v *[]*types.Output, value in return nil } -func awsRestjson1_deserializeDocument__listOfOutputChannelMapping(v *[]*types.OutputChannelMapping, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfOutputChannelMapping(v *[]types.OutputChannelMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4743,18 +4779,20 @@ func awsRestjson1_deserializeDocument__listOfOutputChannelMapping(v *[]*types.Ou return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutputChannelMapping + var cv []types.OutputChannelMapping if *v == nil { - cv = []*types.OutputChannelMapping{} + cv = []types.OutputChannelMapping{} } else { cv = *v } for _, value := range shape { - var col *types.OutputChannelMapping - if err := awsRestjson1_deserializeDocumentOutputChannelMapping(&col, value); err != nil { + var col types.OutputChannelMapping + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutputChannelMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4762,7 +4800,7 @@ func awsRestjson1_deserializeDocument__listOfOutputChannelMapping(v *[]*types.Ou return nil } -func awsRestjson1_deserializeDocument__listOfOutputDetail(v *[]*types.OutputDetail, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfOutputDetail(v *[]types.OutputDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4775,18 +4813,20 @@ func awsRestjson1_deserializeDocument__listOfOutputDetail(v *[]*types.OutputDeta return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutputDetail + var cv []types.OutputDetail if *v == nil { - cv = []*types.OutputDetail{} + cv = []types.OutputDetail{} } else { cv = *v } for _, value := range shape { - var col *types.OutputDetail - if err := awsRestjson1_deserializeDocumentOutputDetail(&col, value); err != nil { + var col types.OutputDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutputDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4794,7 +4834,7 @@ func awsRestjson1_deserializeDocument__listOfOutputDetail(v *[]*types.OutputDeta return nil } -func awsRestjson1_deserializeDocument__listOfOutputGroup(v *[]*types.OutputGroup, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfOutputGroup(v *[]types.OutputGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4807,18 +4847,20 @@ func awsRestjson1_deserializeDocument__listOfOutputGroup(v *[]*types.OutputGroup return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutputGroup + var cv []types.OutputGroup if *v == nil { - cv = []*types.OutputGroup{} + cv = []types.OutputGroup{} } else { cv = *v } for _, value := range shape { - var col *types.OutputGroup - if err := awsRestjson1_deserializeDocumentOutputGroup(&col, value); err != nil { + var col types.OutputGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutputGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4826,7 +4868,7 @@ func awsRestjson1_deserializeDocument__listOfOutputGroup(v *[]*types.OutputGroup return nil } -func awsRestjson1_deserializeDocument__listOfOutputGroupDetail(v *[]*types.OutputGroupDetail, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfOutputGroupDetail(v *[]types.OutputGroupDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4839,18 +4881,20 @@ func awsRestjson1_deserializeDocument__listOfOutputGroupDetail(v *[]*types.Outpu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutputGroupDetail + var cv []types.OutputGroupDetail if *v == nil { - cv = []*types.OutputGroupDetail{} + cv = []types.OutputGroupDetail{} } else { cv = *v } for _, value := range shape { - var col *types.OutputGroupDetail - if err := awsRestjson1_deserializeDocumentOutputGroupDetail(&col, value); err != nil { + var col types.OutputGroupDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutputGroupDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4858,7 +4902,7 @@ func awsRestjson1_deserializeDocument__listOfOutputGroupDetail(v *[]*types.Outpu return nil } -func awsRestjson1_deserializeDocument__listOfPreset(v *[]*types.Preset, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfPreset(v *[]types.Preset, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4871,18 +4915,20 @@ func awsRestjson1_deserializeDocument__listOfPreset(v *[]*types.Preset, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Preset + var cv []types.Preset if *v == nil { - cv = []*types.Preset{} + cv = []types.Preset{} } else { cv = *v } for _, value := range shape { - var col *types.Preset - if err := awsRestjson1_deserializeDocumentPreset(&col, value); err != nil { + var col types.Preset + destAddr := &col + if err := awsRestjson1_deserializeDocumentPreset(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4890,7 +4936,7 @@ func awsRestjson1_deserializeDocument__listOfPreset(v *[]*types.Preset, value in return nil } -func awsRestjson1_deserializeDocument__listOfQueue(v *[]*types.Queue, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfQueue(v *[]types.Queue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4903,18 +4949,20 @@ func awsRestjson1_deserializeDocument__listOfQueue(v *[]*types.Queue, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Queue + var cv []types.Queue if *v == nil { - cv = []*types.Queue{} + cv = []types.Queue{} } else { cv = *v } for _, value := range shape { - var col *types.Queue - if err := awsRestjson1_deserializeDocumentQueue(&col, value); err != nil { + var col types.Queue + destAddr := &col + if err := awsRestjson1_deserializeDocumentQueue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4922,7 +4970,7 @@ func awsRestjson1_deserializeDocument__listOfQueue(v *[]*types.Queue, value inte return nil } -func awsRestjson1_deserializeDocument__listOfQueueTransition(v *[]*types.QueueTransition, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfQueueTransition(v *[]types.QueueTransition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4935,18 +4983,20 @@ func awsRestjson1_deserializeDocument__listOfQueueTransition(v *[]*types.QueueTr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.QueueTransition + var cv []types.QueueTransition if *v == nil { - cv = []*types.QueueTransition{} + cv = []types.QueueTransition{} } else { cv = *v } for _, value := range shape { - var col *types.QueueTransition - if err := awsRestjson1_deserializeDocumentQueueTransition(&col, value); err != nil { + var col types.QueueTransition + destAddr := &col + if err := awsRestjson1_deserializeDocumentQueueTransition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4990,7 +5040,7 @@ func awsRestjson1_deserializeDocument__listOfTeletextPageType(v *[]types.Teletex return nil } -func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5003,21 +5053,21 @@ func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -5026,7 +5076,7 @@ func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, valu return nil } -func awsRestjson1_deserializeDocument__mapOfAudioSelector(v *map[string]*types.AudioSelector, value interface{}) error { +func awsRestjson1_deserializeDocument__mapOfAudioSelector(v *map[string]types.AudioSelector, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5039,18 +5089,21 @@ func awsRestjson1_deserializeDocument__mapOfAudioSelector(v *map[string]*types.A return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AudioSelector + var mv map[string]types.AudioSelector if *v == nil { - mv = map[string]*types.AudioSelector{} + mv = map[string]types.AudioSelector{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AudioSelector - if err := awsRestjson1_deserializeDocumentAudioSelector(&parsedVal, value); err != nil { + var parsedVal types.AudioSelector + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentAudioSelector(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -5058,7 +5111,7 @@ func awsRestjson1_deserializeDocument__mapOfAudioSelector(v *map[string]*types.A return nil } -func awsRestjson1_deserializeDocument__mapOfAudioSelectorGroup(v *map[string]*types.AudioSelectorGroup, value interface{}) error { +func awsRestjson1_deserializeDocument__mapOfAudioSelectorGroup(v *map[string]types.AudioSelectorGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5071,18 +5124,21 @@ func awsRestjson1_deserializeDocument__mapOfAudioSelectorGroup(v *map[string]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AudioSelectorGroup + var mv map[string]types.AudioSelectorGroup if *v == nil { - mv = map[string]*types.AudioSelectorGroup{} + mv = map[string]types.AudioSelectorGroup{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AudioSelectorGroup - if err := awsRestjson1_deserializeDocumentAudioSelectorGroup(&parsedVal, value); err != nil { + var parsedVal types.AudioSelectorGroup + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentAudioSelectorGroup(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -5090,7 +5146,7 @@ func awsRestjson1_deserializeDocument__mapOfAudioSelectorGroup(v *map[string]*ty return nil } -func awsRestjson1_deserializeDocument__mapOfCaptionSelector(v *map[string]*types.CaptionSelector, value interface{}) error { +func awsRestjson1_deserializeDocument__mapOfCaptionSelector(v *map[string]types.CaptionSelector, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5103,18 +5159,21 @@ func awsRestjson1_deserializeDocument__mapOfCaptionSelector(v *map[string]*types return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.CaptionSelector + var mv map[string]types.CaptionSelector if *v == nil { - mv = map[string]*types.CaptionSelector{} + mv = map[string]types.CaptionSelector{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.CaptionSelector - if err := awsRestjson1_deserializeDocumentCaptionSelector(&parsedVal, value); err != nil { + var parsedVal types.CaptionSelector + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentCaptionSelector(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -5163,7 +5222,7 @@ func awsRestjson1_deserializeDocumentAacSettings(v **types.AacSettings, value in if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "codecProfile": @@ -5212,7 +5271,7 @@ func awsRestjson1_deserializeDocumentAacSettings(v **types.AacSettings, value in if err != nil { return err } - sv.SampleRate = ptr.Int32(int32(i64)) + sv.SampleRate = int32(i64) } case "specification": @@ -5274,7 +5333,7 @@ func awsRestjson1_deserializeDocumentAc3Settings(v **types.Ac3Settings, value in if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "bitstreamMode": @@ -5305,7 +5364,7 @@ func awsRestjson1_deserializeDocumentAc3Settings(v **types.Ac3Settings, value in if err != nil { return err } - sv.Dialnorm = ptr.Int32(int32(i64)) + sv.Dialnorm = int32(i64) } case "dynamicRangeCompressionProfile": @@ -5345,7 +5404,7 @@ func awsRestjson1_deserializeDocumentAc3Settings(v **types.Ac3Settings, value in if err != nil { return err } - sv.SampleRate = ptr.Int32(int32(i64)) + sv.SampleRate = int32(i64) } default: @@ -5429,7 +5488,7 @@ func awsRestjson1_deserializeDocumentAiffSettings(v **types.AiffSettings, value if err != nil { return err } - sv.BitDepth = ptr.Int32(int32(i64)) + sv.BitDepth = int32(i64) } case "channels": @@ -5442,7 +5501,7 @@ func awsRestjson1_deserializeDocumentAiffSettings(v **types.AiffSettings, value if err != nil { return err } - sv.Channels = ptr.Int32(int32(i64)) + sv.Channels = int32(i64) } case "sampleRate": @@ -5455,7 +5514,7 @@ func awsRestjson1_deserializeDocumentAiffSettings(v **types.AiffSettings, value if err != nil { return err } - sv.SampleRate = ptr.Int32(int32(i64)) + sv.SampleRate = int32(i64) } default: @@ -5508,7 +5567,7 @@ func awsRestjson1_deserializeDocumentAncillarySourceSettings(v **types.Ancillary if err != nil { return err } - sv.SourceAncillaryChannelNumber = ptr.Int32(int32(i64)) + sv.SourceAncillaryChannelNumber = int32(i64) } case "terminateCaptions": @@ -5697,7 +5756,7 @@ func awsRestjson1_deserializeDocumentAudioDescription(v **types.AudioDescription if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AudioSourceName = &jtv + sv.AudioSourceName = ptr.String(jtv) } case "audioType": @@ -5710,7 +5769,7 @@ func awsRestjson1_deserializeDocumentAudioDescription(v **types.AudioDescription if err != nil { return err } - sv.AudioType = ptr.Int32(int32(i64)) + sv.AudioType = int32(i64) } case "audioTypeControl": @@ -5733,7 +5792,7 @@ func awsRestjson1_deserializeDocumentAudioDescription(v **types.AudioDescription if !ok { return fmt.Errorf("expected __stringPatternAZaZ23AZaZ to be of type string, got %T instead", value) } - sv.CustomLanguageCode = &jtv + sv.CustomLanguageCode = ptr.String(jtv) } case "languageCode": @@ -5765,7 +5824,7 @@ func awsRestjson1_deserializeDocumentAudioDescription(v **types.AudioDescription if !ok { return fmt.Errorf("expected __stringPatternWS to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } default: @@ -5827,7 +5886,7 @@ func awsRestjson1_deserializeDocumentAudioNormalizationSettings(v **types.AudioN if err != nil { return err } - sv.CorrectionGateLevel = ptr.Int32(int32(i64)) + sv.CorrectionGateLevel = int32(i64) } case "loudnessLogging": @@ -5858,7 +5917,7 @@ func awsRestjson1_deserializeDocumentAudioNormalizationSettings(v **types.AudioN if err != nil { return err } - sv.TargetLkfs = &f64 + sv.TargetLkfs = f64 } default: @@ -5898,7 +5957,7 @@ func awsRestjson1_deserializeDocumentAudioSelector(v **types.AudioSelector, valu if !ok { return fmt.Errorf("expected __stringMin3Max3PatternAZaZ3 to be of type string, got %T instead", value) } - sv.CustomLanguageCode = &jtv + sv.CustomLanguageCode = ptr.String(jtv) } case "defaultSelection": @@ -5916,7 +5975,7 @@ func awsRestjson1_deserializeDocumentAudioSelector(v **types.AudioSelector, valu if !ok { return fmt.Errorf("expected __stringPatternS3MM2PPWWEEBBMMMM2VVMMPPEEGGMMPP3AAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMKKAAMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MMAAAACCAAIIFFFFMMPP2AACC3EECC3DDTTSSEEHttpsMM2VVMMPPEEGGMMPP3AAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMKKAAMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MMAAAACCAAIIFFFFMMPP2AACC3EECC3DDTTSSEE to be of type string, got %T instead", value) } - sv.ExternalAudioFileInput = &jtv + sv.ExternalAudioFileInput = ptr.String(jtv) } case "languageCode": @@ -5938,7 +5997,7 @@ func awsRestjson1_deserializeDocumentAudioSelector(v **types.AudioSelector, valu if err != nil { return err } - sv.Offset = ptr.Int32(int32(i64)) + sv.Offset = int32(i64) } case "pids": @@ -5956,7 +6015,7 @@ func awsRestjson1_deserializeDocumentAudioSelector(v **types.AudioSelector, valu if err != nil { return err } - sv.ProgramSelection = ptr.Int32(int32(i64)) + sv.ProgramSelection = int32(i64) } case "remixSettings": @@ -6055,7 +6114,7 @@ func awsRestjson1_deserializeDocumentAv1QvbrSettings(v **types.Av1QvbrSettings, if err != nil { return err } - sv.QvbrQualityLevel = ptr.Int32(int32(i64)) + sv.QvbrQualityLevel = int32(i64) } case "qvbrQualityLevelFineTune": @@ -6068,7 +6127,7 @@ func awsRestjson1_deserializeDocumentAv1QvbrSettings(v **types.Av1QvbrSettings, if err != nil { return err } - sv.QvbrQualityLevelFineTune = &f64 + sv.QvbrQualityLevelFineTune = f64 } default: @@ -6139,7 +6198,7 @@ func awsRestjson1_deserializeDocumentAv1Settings(v **types.Av1Settings, value in if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -6152,7 +6211,7 @@ func awsRestjson1_deserializeDocumentAv1Settings(v **types.Av1Settings, value in if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } case "gopSize": @@ -6165,7 +6224,7 @@ func awsRestjson1_deserializeDocumentAv1Settings(v **types.Av1Settings, value in if err != nil { return err } - sv.GopSize = &f64 + sv.GopSize = f64 } case "maxBitrate": @@ -6178,7 +6237,7 @@ func awsRestjson1_deserializeDocumentAv1Settings(v **types.Av1Settings, value in if err != nil { return err } - sv.MaxBitrate = ptr.Int32(int32(i64)) + sv.MaxBitrate = int32(i64) } case "numberBFramesBetweenReferenceFrames": @@ -6191,7 +6250,7 @@ func awsRestjson1_deserializeDocumentAv1Settings(v **types.Av1Settings, value in if err != nil { return err } - sv.NumberBFramesBetweenReferenceFrames = ptr.Int32(int32(i64)) + sv.NumberBFramesBetweenReferenceFrames = int32(i64) } case "qvbrSettings": @@ -6218,7 +6277,7 @@ func awsRestjson1_deserializeDocumentAv1Settings(v **types.Av1Settings, value in if err != nil { return err } - sv.Slices = ptr.Int32(int32(i64)) + sv.Slices = int32(i64) } case "spatialAdaptiveQuantization": @@ -6267,7 +6326,7 @@ func awsRestjson1_deserializeDocumentAvailBlanking(v **types.AvailBlanking, valu if !ok { return fmt.Errorf("expected __stringMin14PatternS3BmpBMPPngPNGHttpsBmpBMPPngPNG to be of type string, got %T instead", value) } - sv.AvailBlankingImage = &jtv + sv.AvailBlankingImage = ptr.String(jtv) } default: @@ -6338,7 +6397,7 @@ func awsRestjson1_deserializeDocumentAvcIntraSettings(v **types.AvcIntraSettings if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -6351,7 +6410,7 @@ func awsRestjson1_deserializeDocumentAvcIntraSettings(v **types.AvcIntraSettings if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } case "interlaceMode": @@ -6418,7 +6477,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6480,7 +6539,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.BackgroundOpacity = ptr.Int32(int32(i64)) + sv.BackgroundOpacity = int32(i64) } case "fontColor": @@ -6502,7 +6561,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.FontOpacity = ptr.Int32(int32(i64)) + sv.FontOpacity = int32(i64) } case "fontResolution": @@ -6515,7 +6574,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.FontResolution = ptr.Int32(int32(i64)) + sv.FontResolution = int32(i64) } case "fontScript": @@ -6537,7 +6596,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.FontSize = ptr.Int32(int32(i64)) + sv.FontSize = int32(i64) } case "outlineColor": @@ -6559,7 +6618,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.OutlineSize = ptr.Int32(int32(i64)) + sv.OutlineSize = int32(i64) } case "shadowColor": @@ -6581,7 +6640,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.ShadowOpacity = ptr.Int32(int32(i64)) + sv.ShadowOpacity = int32(i64) } case "shadowXOffset": @@ -6594,7 +6653,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.ShadowXOffset = ptr.Int32(int32(i64)) + sv.ShadowXOffset = int32(i64) } case "shadowYOffset": @@ -6607,7 +6666,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.ShadowYOffset = ptr.Int32(int32(i64)) + sv.ShadowYOffset = int32(i64) } case "teletextSpacing": @@ -6629,7 +6688,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.XPosition = ptr.Int32(int32(i64)) + sv.XPosition = int32(i64) } case "yPosition": @@ -6642,7 +6701,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.YPosition = ptr.Int32(int32(i64)) + sv.YPosition = int32(i64) } default: @@ -6682,7 +6741,7 @@ func awsRestjson1_deserializeDocumentCaptionDescription(v **types.CaptionDescrip if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.CaptionSelectorName = &jtv + sv.CaptionSelectorName = ptr.String(jtv) } case "customLanguageCode": @@ -6691,7 +6750,7 @@ func awsRestjson1_deserializeDocumentCaptionDescription(v **types.CaptionDescrip if !ok { return fmt.Errorf("expected __stringPatternAZaZ23AZaZ to be of type string, got %T instead", value) } - sv.CustomLanguageCode = &jtv + sv.CustomLanguageCode = ptr.String(jtv) } case "destinationSettings": @@ -6714,7 +6773,7 @@ func awsRestjson1_deserializeDocumentCaptionDescription(v **types.CaptionDescrip if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LanguageDescription = &jtv + sv.LanguageDescription = ptr.String(jtv) } default: @@ -6754,7 +6813,7 @@ func awsRestjson1_deserializeDocumentCaptionDescriptionPreset(v **types.CaptionD if !ok { return fmt.Errorf("expected __stringPatternAZaZ23AZaZ to be of type string, got %T instead", value) } - sv.CustomLanguageCode = &jtv + sv.CustomLanguageCode = ptr.String(jtv) } case "destinationSettings": @@ -6777,7 +6836,7 @@ func awsRestjson1_deserializeDocumentCaptionDescriptionPreset(v **types.CaptionD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LanguageDescription = &jtv + sv.LanguageDescription = ptr.String(jtv) } default: @@ -6892,7 +6951,7 @@ func awsRestjson1_deserializeDocumentCaptionSelector(v **types.CaptionSelector, if !ok { return fmt.Errorf("expected __stringMin3Max3PatternAZaZ3 to be of type string, got %T instead", value) } - sv.CustomLanguageCode = &jtv + sv.CustomLanguageCode = ptr.String(jtv) } case "languageCode": @@ -6950,7 +7009,7 @@ func awsRestjson1_deserializeDocumentCaptionSourceFramerate(v **types.CaptionSou if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -6963,7 +7022,7 @@ func awsRestjson1_deserializeDocumentCaptionSourceFramerate(v **types.CaptionSou if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } default: @@ -7109,7 +7168,7 @@ func awsRestjson1_deserializeDocumentCmafAdditionalManifest(v **types.CmafAdditi if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.ManifestNameModifier = &jtv + sv.ManifestNameModifier = ptr.String(jtv) } case "selectedOutputs": @@ -7154,7 +7213,7 @@ func awsRestjson1_deserializeDocumentCmafEncryptionSettings(v **types.CmafEncryp if !ok { return fmt.Errorf("expected __stringMin32Max32Pattern09aFAF32 to be of type string, got %T instead", value) } - sv.ConstantInitializationVector = &jtv + sv.ConstantInitializationVector = ptr.String(jtv) } case "encryptionMethod": @@ -7236,7 +7295,7 @@ func awsRestjson1_deserializeDocumentCmafGroupSettings(v **types.CmafGroupSettin if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BaseUrl = &jtv + sv.BaseUrl = ptr.String(jtv) } case "clientCache": @@ -7263,7 +7322,7 @@ func awsRestjson1_deserializeDocumentCmafGroupSettings(v **types.CmafGroupSettin if !ok { return fmt.Errorf("expected __stringPatternS3 to be of type string, got %T instead", value) } - sv.Destination = &jtv + sv.Destination = ptr.String(jtv) } case "destinationSettings": @@ -7286,7 +7345,7 @@ func awsRestjson1_deserializeDocumentCmafGroupSettings(v **types.CmafGroupSettin if err != nil { return err } - sv.FragmentLength = ptr.Int32(int32(i64)) + sv.FragmentLength = int32(i64) } case "manifestCompression": @@ -7317,7 +7376,7 @@ func awsRestjson1_deserializeDocumentCmafGroupSettings(v **types.CmafGroupSettin if err != nil { return err } - sv.MinBufferTime = ptr.Int32(int32(i64)) + sv.MinBufferTime = int32(i64) } case "minFinalSegmentLength": @@ -7330,7 +7389,7 @@ func awsRestjson1_deserializeDocumentCmafGroupSettings(v **types.CmafGroupSettin if err != nil { return err } - sv.MinFinalSegmentLength = &f64 + sv.MinFinalSegmentLength = f64 } case "mpdProfile": @@ -7361,7 +7420,7 @@ func awsRestjson1_deserializeDocumentCmafGroupSettings(v **types.CmafGroupSettin if err != nil { return err } - sv.SegmentLength = ptr.Int32(int32(i64)) + sv.SegmentLength = int32(i64) } case "streamInfResolution": @@ -7490,7 +7549,7 @@ func awsRestjson1_deserializeDocumentColorCorrector(v **types.ColorCorrector, va if err != nil { return err } - sv.Brightness = ptr.Int32(int32(i64)) + sv.Brightness = int32(i64) } case "colorSpaceConversion": @@ -7512,7 +7571,7 @@ func awsRestjson1_deserializeDocumentColorCorrector(v **types.ColorCorrector, va if err != nil { return err } - sv.Contrast = ptr.Int32(int32(i64)) + sv.Contrast = int32(i64) } case "hdr10Metadata": @@ -7530,7 +7589,7 @@ func awsRestjson1_deserializeDocumentColorCorrector(v **types.ColorCorrector, va if err != nil { return err } - sv.Hue = ptr.Int32(int32(i64)) + sv.Hue = int32(i64) } case "saturation": @@ -7543,7 +7602,7 @@ func awsRestjson1_deserializeDocumentColorCorrector(v **types.ColorCorrector, va if err != nil { return err } - sv.Saturation = ptr.Int32(int32(i64)) + sv.Saturation = int32(i64) } default: @@ -7583,7 +7642,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7703,7 +7762,7 @@ func awsRestjson1_deserializeDocumentDashAdditionalManifest(v **types.DashAdditi if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.ManifestNameModifier = &jtv + sv.ManifestNameModifier = ptr.String(jtv) } case "selectedOutputs": @@ -7798,7 +7857,7 @@ func awsRestjson1_deserializeDocumentDashIsoGroupSettings(v **types.DashIsoGroup if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BaseUrl = &jtv + sv.BaseUrl = ptr.String(jtv) } case "destination": @@ -7807,7 +7866,7 @@ func awsRestjson1_deserializeDocumentDashIsoGroupSettings(v **types.DashIsoGroup if !ok { return fmt.Errorf("expected __stringPatternS3 to be of type string, got %T instead", value) } - sv.Destination = &jtv + sv.Destination = ptr.String(jtv) } case "destinationSettings": @@ -7830,7 +7889,7 @@ func awsRestjson1_deserializeDocumentDashIsoGroupSettings(v **types.DashIsoGroup if err != nil { return err } - sv.FragmentLength = ptr.Int32(int32(i64)) + sv.FragmentLength = int32(i64) } case "hbbtvCompliance": @@ -7852,7 +7911,7 @@ func awsRestjson1_deserializeDocumentDashIsoGroupSettings(v **types.DashIsoGroup if err != nil { return err } - sv.MinBufferTime = ptr.Int32(int32(i64)) + sv.MinBufferTime = int32(i64) } case "mpdProfile": @@ -7883,7 +7942,7 @@ func awsRestjson1_deserializeDocumentDashIsoGroupSettings(v **types.DashIsoGroup if err != nil { return err } - sv.SegmentLength = ptr.Int32(int32(i64)) + sv.SegmentLength = int32(i64) } case "writeSegmentTimelineInRepresentation": @@ -8084,7 +8143,7 @@ func awsRestjson1_deserializeDocumentDolbyVisionLevel6Metadata(v **types.DolbyVi if err != nil { return err } - sv.MaxCll = ptr.Int32(int32(i64)) + sv.MaxCll = int32(i64) } case "maxFall": @@ -8097,7 +8156,7 @@ func awsRestjson1_deserializeDocumentDolbyVisionLevel6Metadata(v **types.DolbyVi if err != nil { return err } - sv.MaxFall = ptr.Int32(int32(i64)) + sv.MaxFall = int32(i64) } default: @@ -8141,7 +8200,7 @@ func awsRestjson1_deserializeDocumentDvbNitSettings(v **types.DvbNitSettings, va if err != nil { return err } - sv.NetworkId = ptr.Int32(int32(i64)) + sv.NetworkId = int32(i64) } case "networkName": @@ -8150,7 +8209,7 @@ func awsRestjson1_deserializeDocumentDvbNitSettings(v **types.DvbNitSettings, va if !ok { return fmt.Errorf("expected __stringMin1Max256 to be of type string, got %T instead", value) } - sv.NetworkName = &jtv + sv.NetworkName = ptr.String(jtv) } case "nitInterval": @@ -8163,7 +8222,7 @@ func awsRestjson1_deserializeDocumentDvbNitSettings(v **types.DvbNitSettings, va if err != nil { return err } - sv.NitInterval = ptr.Int32(int32(i64)) + sv.NitInterval = int32(i64) } default: @@ -8216,7 +8275,7 @@ func awsRestjson1_deserializeDocumentDvbSdtSettings(v **types.DvbSdtSettings, va if err != nil { return err } - sv.SdtInterval = ptr.Int32(int32(i64)) + sv.SdtInterval = int32(i64) } case "serviceName": @@ -8225,7 +8284,7 @@ func awsRestjson1_deserializeDocumentDvbSdtSettings(v **types.DvbSdtSettings, va if !ok { return fmt.Errorf("expected __stringMin1Max256 to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } case "serviceProviderName": @@ -8234,7 +8293,7 @@ func awsRestjson1_deserializeDocumentDvbSdtSettings(v **types.DvbSdtSettings, va if !ok { return fmt.Errorf("expected __stringMin1Max256 to be of type string, got %T instead", value) } - sv.ServiceProviderName = &jtv + sv.ServiceProviderName = ptr.String(jtv) } default: @@ -8296,7 +8355,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.BackgroundOpacity = ptr.Int32(int32(i64)) + sv.BackgroundOpacity = int32(i64) } case "fontColor": @@ -8318,7 +8377,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.FontOpacity = ptr.Int32(int32(i64)) + sv.FontOpacity = int32(i64) } case "fontResolution": @@ -8331,7 +8390,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.FontResolution = ptr.Int32(int32(i64)) + sv.FontResolution = int32(i64) } case "fontScript": @@ -8353,7 +8412,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.FontSize = ptr.Int32(int32(i64)) + sv.FontSize = int32(i64) } case "outlineColor": @@ -8375,7 +8434,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.OutlineSize = ptr.Int32(int32(i64)) + sv.OutlineSize = int32(i64) } case "shadowColor": @@ -8397,7 +8456,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.ShadowOpacity = ptr.Int32(int32(i64)) + sv.ShadowOpacity = int32(i64) } case "shadowXOffset": @@ -8410,7 +8469,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.ShadowXOffset = ptr.Int32(int32(i64)) + sv.ShadowXOffset = int32(i64) } case "shadowYOffset": @@ -8423,7 +8482,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.ShadowYOffset = ptr.Int32(int32(i64)) + sv.ShadowYOffset = int32(i64) } case "subtitlingType": @@ -8454,7 +8513,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.XPosition = ptr.Int32(int32(i64)) + sv.XPosition = int32(i64) } case "yPosition": @@ -8467,7 +8526,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.YPosition = ptr.Int32(int32(i64)) + sv.YPosition = int32(i64) } default: @@ -8511,7 +8570,7 @@ func awsRestjson1_deserializeDocumentDvbSubSourceSettings(v **types.DvbSubSource if err != nil { return err } - sv.Pid = ptr.Int32(int32(i64)) + sv.Pid = int32(i64) } default: @@ -8555,7 +8614,7 @@ func awsRestjson1_deserializeDocumentDvbTdtSettings(v **types.DvbTdtSettings, va if err != nil { return err } - sv.TdtInterval = ptr.Int32(int32(i64)) + sv.TdtInterval = int32(i64) } default: @@ -8599,7 +8658,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "bitstreamMode": @@ -8657,7 +8716,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.LoRoCenterMixLevel = &f64 + sv.LoRoCenterMixLevel = f64 } case "loRoSurroundMixLevel": @@ -8670,7 +8729,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.LoRoSurroundMixLevel = &f64 + sv.LoRoSurroundMixLevel = f64 } case "ltRtCenterMixLevel": @@ -8683,7 +8742,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.LtRtCenterMixLevel = &f64 + sv.LtRtCenterMixLevel = f64 } case "ltRtSurroundMixLevel": @@ -8696,7 +8755,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.LtRtSurroundMixLevel = &f64 + sv.LtRtSurroundMixLevel = f64 } case "meteringMode": @@ -8718,7 +8777,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.SampleRate = ptr.Int32(int32(i64)) + sv.SampleRate = int32(i64) } case "speechThreshold": @@ -8731,7 +8790,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.SpeechThreshold = ptr.Int32(int32(i64)) + sv.SpeechThreshold = int32(i64) } case "stereoDownmix": @@ -8802,7 +8861,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "bitstreamMode": @@ -8842,7 +8901,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.Dialnorm = ptr.Int32(int32(i64)) + sv.Dialnorm = int32(i64) } case "dynamicRangeCompressionLine": @@ -8891,7 +8950,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LoRoCenterMixLevel = &f64 + sv.LoRoCenterMixLevel = f64 } case "loRoSurroundMixLevel": @@ -8904,7 +8963,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LoRoSurroundMixLevel = &f64 + sv.LoRoSurroundMixLevel = f64 } case "ltRtCenterMixLevel": @@ -8917,7 +8976,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LtRtCenterMixLevel = &f64 + sv.LtRtCenterMixLevel = f64 } case "ltRtSurroundMixLevel": @@ -8930,7 +8989,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LtRtSurroundMixLevel = &f64 + sv.LtRtSurroundMixLevel = f64 } case "metadataControl": @@ -8970,7 +9029,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.SampleRate = ptr.Int32(int32(i64)) + sv.SampleRate = int32(i64) } case "stereoDownmix": @@ -9041,7 +9100,7 @@ func awsRestjson1_deserializeDocumentEmbeddedDestinationSettings(v **types.Embed if err != nil { return err } - sv.Destination608ChannelNumber = ptr.Int32(int32(i64)) + sv.Destination608ChannelNumber = int32(i64) } case "destination708ServiceNumber": @@ -9054,7 +9113,7 @@ func awsRestjson1_deserializeDocumentEmbeddedDestinationSettings(v **types.Embed if err != nil { return err } - sv.Destination708ServiceNumber = ptr.Int32(int32(i64)) + sv.Destination708ServiceNumber = int32(i64) } default: @@ -9107,7 +9166,7 @@ func awsRestjson1_deserializeDocumentEmbeddedSourceSettings(v **types.EmbeddedSo if err != nil { return err } - sv.Source608ChannelNumber = ptr.Int32(int32(i64)) + sv.Source608ChannelNumber = int32(i64) } case "source608TrackNumber": @@ -9120,7 +9179,7 @@ func awsRestjson1_deserializeDocumentEmbeddedSourceSettings(v **types.EmbeddedSo if err != nil { return err } - sv.Source608TrackNumber = ptr.Int32(int32(i64)) + sv.Source608TrackNumber = int32(i64) } case "terminateCaptions": @@ -9169,7 +9228,7 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -9209,7 +9268,7 @@ func awsRestjson1_deserializeDocumentEsamManifestConfirmConditionNotification(v if !ok { return fmt.Errorf("expected __stringPatternSNManifestConfirmConditionNotificationNS to be of type string, got %T instead", value) } - sv.MccXml = &jtv + sv.MccXml = ptr.String(jtv) } default: @@ -9258,7 +9317,7 @@ func awsRestjson1_deserializeDocumentEsamSettings(v **types.EsamSettings, value if err != nil { return err } - sv.ResponseSignalPreroll = ptr.Int32(int32(i64)) + sv.ResponseSignalPreroll = int32(i64) } case "signalProcessingNotification": @@ -9303,7 +9362,7 @@ func awsRestjson1_deserializeDocumentEsamSignalProcessingNotification(v **types. if !ok { return fmt.Errorf("expected __stringPatternSNSignalProcessingNotificationNS to be of type string, got %T instead", value) } - sv.SccXml = &jtv + sv.SccXml = ptr.String(jtv) } default: @@ -9383,7 +9442,7 @@ func awsRestjson1_deserializeDocumentFileGroupSettings(v **types.FileGroupSettin if !ok { return fmt.Errorf("expected __stringPatternS3 to be of type string, got %T instead", value) } - sv.Destination = &jtv + sv.Destination = ptr.String(jtv) } case "destinationSettings": @@ -9442,7 +9501,7 @@ func awsRestjson1_deserializeDocumentFileSourceSettings(v **types.FileSourceSett if !ok { return fmt.Errorf("expected __stringMin14PatternS3SccSCCTtmlTTMLDfxpDFXPStlSTLSrtSRTXmlXMLSmiSMIHttpsSccSCCTtmlTTMLDfxpDFXPStlSTLSrtSRTXmlXMLSmiSMI to be of type string, got %T instead", value) } - sv.SourceFile = &jtv + sv.SourceFile = ptr.String(jtv) } case "timeDelta": @@ -9455,7 +9514,7 @@ func awsRestjson1_deserializeDocumentFileSourceSettings(v **types.FileSourceSett if err != nil { return err } - sv.TimeDelta = ptr.Int32(int32(i64)) + sv.TimeDelta = int32(i64) } default: @@ -9495,7 +9554,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9539,7 +9598,7 @@ func awsRestjson1_deserializeDocumentFrameCaptureSettings(v **types.FrameCapture if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -9552,7 +9611,7 @@ func awsRestjson1_deserializeDocumentFrameCaptureSettings(v **types.FrameCapture if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } case "maxCaptures": @@ -9565,7 +9624,7 @@ func awsRestjson1_deserializeDocumentFrameCaptureSettings(v **types.FrameCapture if err != nil { return err } - sv.MaxCaptures = ptr.Int32(int32(i64)) + sv.MaxCaptures = int32(i64) } case "quality": @@ -9578,7 +9637,7 @@ func awsRestjson1_deserializeDocumentFrameCaptureSettings(v **types.FrameCapture if err != nil { return err } - sv.Quality = ptr.Int32(int32(i64)) + sv.Quality = int32(i64) } default: @@ -9622,7 +9681,7 @@ func awsRestjson1_deserializeDocumentH264QvbrSettings(v **types.H264QvbrSettings if err != nil { return err } - sv.MaxAverageBitrate = ptr.Int32(int32(i64)) + sv.MaxAverageBitrate = int32(i64) } case "qvbrQualityLevel": @@ -9635,7 +9694,7 @@ func awsRestjson1_deserializeDocumentH264QvbrSettings(v **types.H264QvbrSettings if err != nil { return err } - sv.QvbrQualityLevel = ptr.Int32(int32(i64)) + sv.QvbrQualityLevel = int32(i64) } case "qvbrQualityLevelFineTune": @@ -9648,7 +9707,7 @@ func awsRestjson1_deserializeDocumentH264QvbrSettings(v **types.H264QvbrSettings if err != nil { return err } - sv.QvbrQualityLevelFineTune = &f64 + sv.QvbrQualityLevelFineTune = f64 } default: @@ -9701,7 +9760,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "codecLevel": @@ -9786,7 +9845,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -9799,7 +9858,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } case "gopBReference": @@ -9821,7 +9880,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.GopClosedCadence = ptr.Int32(int32(i64)) + sv.GopClosedCadence = int32(i64) } case "gopSize": @@ -9834,7 +9893,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.GopSize = &f64 + sv.GopSize = f64 } case "gopSizeUnits": @@ -9856,7 +9915,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.HrdBufferInitialFillPercentage = ptr.Int32(int32(i64)) + sv.HrdBufferInitialFillPercentage = int32(i64) } case "hrdBufferSize": @@ -9869,7 +9928,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.HrdBufferSize = ptr.Int32(int32(i64)) + sv.HrdBufferSize = int32(i64) } case "interlaceMode": @@ -9891,7 +9950,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.MaxBitrate = ptr.Int32(int32(i64)) + sv.MaxBitrate = int32(i64) } case "minIInterval": @@ -9904,7 +9963,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.MinIInterval = ptr.Int32(int32(i64)) + sv.MinIInterval = int32(i64) } case "numberBFramesBetweenReferenceFrames": @@ -9917,7 +9976,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.NumberBFramesBetweenReferenceFrames = ptr.Int32(int32(i64)) + sv.NumberBFramesBetweenReferenceFrames = int32(i64) } case "numberReferenceFrames": @@ -9930,7 +9989,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.NumberReferenceFrames = ptr.Int32(int32(i64)) + sv.NumberReferenceFrames = int32(i64) } case "parControl": @@ -9952,7 +10011,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.ParDenominator = ptr.Int32(int32(i64)) + sv.ParDenominator = int32(i64) } case "parNumerator": @@ -9965,7 +10024,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.ParNumerator = ptr.Int32(int32(i64)) + sv.ParNumerator = int32(i64) } case "qualityTuningLevel": @@ -10019,7 +10078,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.Slices = ptr.Int32(int32(i64)) + sv.Slices = int32(i64) } case "slowPal": @@ -10041,7 +10100,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.Softness = ptr.Int32(int32(i64)) + sv.Softness = int32(i64) } case "spatialAdaptiveQuantization": @@ -10130,7 +10189,7 @@ func awsRestjson1_deserializeDocumentH265QvbrSettings(v **types.H265QvbrSettings if err != nil { return err } - sv.MaxAverageBitrate = ptr.Int32(int32(i64)) + sv.MaxAverageBitrate = int32(i64) } case "qvbrQualityLevel": @@ -10143,7 +10202,7 @@ func awsRestjson1_deserializeDocumentH265QvbrSettings(v **types.H265QvbrSettings if err != nil { return err } - sv.QvbrQualityLevel = ptr.Int32(int32(i64)) + sv.QvbrQualityLevel = int32(i64) } case "qvbrQualityLevelFineTune": @@ -10156,7 +10215,7 @@ func awsRestjson1_deserializeDocumentH265QvbrSettings(v **types.H265QvbrSettings if err != nil { return err } - sv.QvbrQualityLevelFineTune = &f64 + sv.QvbrQualityLevelFineTune = f64 } default: @@ -10218,7 +10277,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "codecLevel": @@ -10285,7 +10344,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -10298,7 +10357,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } case "gopBReference": @@ -10320,7 +10379,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.GopClosedCadence = ptr.Int32(int32(i64)) + sv.GopClosedCadence = int32(i64) } case "gopSize": @@ -10333,7 +10392,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.GopSize = &f64 + sv.GopSize = f64 } case "gopSizeUnits": @@ -10355,7 +10414,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.HrdBufferInitialFillPercentage = ptr.Int32(int32(i64)) + sv.HrdBufferInitialFillPercentage = int32(i64) } case "hrdBufferSize": @@ -10368,7 +10427,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.HrdBufferSize = ptr.Int32(int32(i64)) + sv.HrdBufferSize = int32(i64) } case "interlaceMode": @@ -10390,7 +10449,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.MaxBitrate = ptr.Int32(int32(i64)) + sv.MaxBitrate = int32(i64) } case "minIInterval": @@ -10403,7 +10462,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.MinIInterval = ptr.Int32(int32(i64)) + sv.MinIInterval = int32(i64) } case "numberBFramesBetweenReferenceFrames": @@ -10416,7 +10475,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.NumberBFramesBetweenReferenceFrames = ptr.Int32(int32(i64)) + sv.NumberBFramesBetweenReferenceFrames = int32(i64) } case "numberReferenceFrames": @@ -10429,7 +10488,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.NumberReferenceFrames = ptr.Int32(int32(i64)) + sv.NumberReferenceFrames = int32(i64) } case "parControl": @@ -10451,7 +10510,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.ParDenominator = ptr.Int32(int32(i64)) + sv.ParDenominator = int32(i64) } case "parNumerator": @@ -10464,7 +10523,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.ParNumerator = ptr.Int32(int32(i64)) + sv.ParNumerator = int32(i64) } case "qualityTuningLevel": @@ -10518,7 +10577,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.Slices = ptr.Int32(int32(i64)) + sv.Slices = int32(i64) } case "slowPal": @@ -10634,7 +10693,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.BluePrimaryX = ptr.Int32(int32(i64)) + sv.BluePrimaryX = int32(i64) } case "bluePrimaryY": @@ -10647,7 +10706,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.BluePrimaryY = ptr.Int32(int32(i64)) + sv.BluePrimaryY = int32(i64) } case "greenPrimaryX": @@ -10660,7 +10719,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.GreenPrimaryX = ptr.Int32(int32(i64)) + sv.GreenPrimaryX = int32(i64) } case "greenPrimaryY": @@ -10673,7 +10732,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.GreenPrimaryY = ptr.Int32(int32(i64)) + sv.GreenPrimaryY = int32(i64) } case "maxContentLightLevel": @@ -10686,7 +10745,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.MaxContentLightLevel = ptr.Int32(int32(i64)) + sv.MaxContentLightLevel = int32(i64) } case "maxFrameAverageLightLevel": @@ -10699,7 +10758,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.MaxFrameAverageLightLevel = ptr.Int32(int32(i64)) + sv.MaxFrameAverageLightLevel = int32(i64) } case "maxLuminance": @@ -10712,7 +10771,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.MaxLuminance = ptr.Int32(int32(i64)) + sv.MaxLuminance = int32(i64) } case "minLuminance": @@ -10725,7 +10784,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.MinLuminance = ptr.Int32(int32(i64)) + sv.MinLuminance = int32(i64) } case "redPrimaryX": @@ -10738,7 +10797,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.RedPrimaryX = ptr.Int32(int32(i64)) + sv.RedPrimaryX = int32(i64) } case "redPrimaryY": @@ -10751,7 +10810,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.RedPrimaryY = ptr.Int32(int32(i64)) + sv.RedPrimaryY = int32(i64) } case "whitePointX": @@ -10764,7 +10823,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.WhitePointX = ptr.Int32(int32(i64)) + sv.WhitePointX = int32(i64) } case "whitePointY": @@ -10777,7 +10836,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.WhitePointY = ptr.Int32(int32(i64)) + sv.WhitePointY = int32(i64) } default: @@ -10817,7 +10876,7 @@ func awsRestjson1_deserializeDocumentHlsAdditionalManifest(v **types.HlsAddition if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.ManifestNameModifier = &jtv + sv.ManifestNameModifier = ptr.String(jtv) } case "selectedOutputs": @@ -10866,7 +10925,7 @@ func awsRestjson1_deserializeDocumentHlsCaptionLanguageMapping(v **types.HlsCapt if err != nil { return err } - sv.CaptionChannel = ptr.Int32(int32(i64)) + sv.CaptionChannel = int32(i64) } case "customLanguageCode": @@ -10875,7 +10934,7 @@ func awsRestjson1_deserializeDocumentHlsCaptionLanguageMapping(v **types.HlsCapt if !ok { return fmt.Errorf("expected __stringMin3Max3PatternAZaZ3 to be of type string, got %T instead", value) } - sv.CustomLanguageCode = &jtv + sv.CustomLanguageCode = ptr.String(jtv) } case "languageCode": @@ -10893,7 +10952,7 @@ func awsRestjson1_deserializeDocumentHlsCaptionLanguageMapping(v **types.HlsCapt if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LanguageDescription = &jtv + sv.LanguageDescription = ptr.String(jtv) } default: @@ -10933,7 +10992,7 @@ func awsRestjson1_deserializeDocumentHlsEncryptionSettings(v **types.HlsEncrypti if !ok { return fmt.Errorf("expected __stringMin32Max32Pattern09aFAF32 to be of type string, got %T instead", value) } - sv.ConstantInitializationVector = &jtv + sv.ConstantInitializationVector = ptr.String(jtv) } case "encryptionMethod": @@ -11038,7 +11097,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BaseUrl = &jtv + sv.BaseUrl = ptr.String(jtv) } case "captionLanguageMappings": @@ -11079,7 +11138,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if !ok { return fmt.Errorf("expected __stringPatternS3 to be of type string, got %T instead", value) } - sv.Destination = &jtv + sv.Destination = ptr.String(jtv) } case "destinationSettings": @@ -11129,7 +11188,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.MinFinalSegmentLength = &f64 + sv.MinFinalSegmentLength = f64 } case "minSegmentLength": @@ -11142,7 +11201,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.MinSegmentLength = ptr.Int32(int32(i64)) + sv.MinSegmentLength = int32(i64) } case "outputSelection": @@ -11173,7 +11232,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.ProgramDateTimePeriod = ptr.Int32(int32(i64)) + sv.ProgramDateTimePeriod = int32(i64) } case "segmentControl": @@ -11195,7 +11254,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.SegmentLength = ptr.Int32(int32(i64)) + sv.SegmentLength = int32(i64) } case "segmentsPerSubdirectory": @@ -11208,7 +11267,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.SegmentsPerSubdirectory = ptr.Int32(int32(i64)) + sv.SegmentsPerSubdirectory = int32(i64) } case "streamInfResolution": @@ -11239,7 +11298,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.TimedMetadataId3Period = ptr.Int32(int32(i64)) + sv.TimedMetadataId3Period = int32(i64) } case "timestampDeltaMilliseconds": @@ -11252,7 +11311,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.TimestampDeltaMilliseconds = ptr.Int32(int32(i64)) + sv.TimestampDeltaMilliseconds = int32(i64) } default: @@ -11292,7 +11351,7 @@ func awsRestjson1_deserializeDocumentHlsSettings(v **types.HlsSettings, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AudioGroupId = &jtv + sv.AudioGroupId = ptr.String(jtv) } case "audioOnlyContainer": @@ -11310,7 +11369,7 @@ func awsRestjson1_deserializeDocumentHlsSettings(v **types.HlsSettings, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AudioRenditionSets = &jtv + sv.AudioRenditionSets = ptr.String(jtv) } case "audioTrackType": @@ -11337,7 +11396,7 @@ func awsRestjson1_deserializeDocumentHlsSettings(v **types.HlsSettings, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SegmentModifier = &jtv + sv.SegmentModifier = ptr.String(jtv) } default: @@ -11381,7 +11440,7 @@ func awsRestjson1_deserializeDocumentHopDestination(v **types.HopDestination, va if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "queue": @@ -11390,7 +11449,7 @@ func awsRestjson1_deserializeDocumentHopDestination(v **types.HopDestination, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Queue = &jtv + sv.Queue = ptr.String(jtv) } case "waitMinutes": @@ -11403,7 +11462,7 @@ func awsRestjson1_deserializeDocumentHopDestination(v **types.HopDestination, va if err != nil { return err } - sv.WaitMinutes = ptr.Int32(int32(i64)) + sv.WaitMinutes = int32(i64) } default: @@ -11443,7 +11502,7 @@ func awsRestjson1_deserializeDocumentId3Insertion(v **types.Id3Insertion, value if !ok { return fmt.Errorf("expected __stringPatternAZaZ0902 to be of type string, got %T instead", value) } - sv.Id3 = &jtv + sv.Id3 = ptr.String(jtv) } case "timecode": @@ -11452,7 +11511,7 @@ func awsRestjson1_deserializeDocumentId3Insertion(v **types.Id3Insertion, value if !ok { return fmt.Errorf("expected __stringPattern010920405090509092 to be of type string, got %T instead", value) } - sv.Timecode = &jtv + sv.Timecode = ptr.String(jtv) } default: @@ -11611,7 +11670,7 @@ func awsRestjson1_deserializeDocumentInput(v **types.Input, value interface{}) e if !ok { return fmt.Errorf("expected __stringPatternS3MM2PPMM2VVMMPPEEGGMMPP3AAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMKKAAMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8WWEEBBMMLLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MMXXMMLLHttpsMM2VVMMPPEEGGMMPP3AAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMKKAAMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8WWEEBBMMLLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MMXXMMLL to be of type string, got %T instead", value) } - sv.FileInput = &jtv + sv.FileInput = ptr.String(jtv) } case "filterEnable": @@ -11633,7 +11692,7 @@ func awsRestjson1_deserializeDocumentInput(v **types.Input, value interface{}) e if err != nil { return err } - sv.FilterStrength = ptr.Int32(int32(i64)) + sv.FilterStrength = int32(i64) } case "imageInserter": @@ -11670,7 +11729,7 @@ func awsRestjson1_deserializeDocumentInput(v **types.Input, value interface{}) e if err != nil { return err } - sv.ProgramNumber = ptr.Int32(int32(i64)) + sv.ProgramNumber = int32(i64) } case "psiControl": @@ -11702,7 +11761,7 @@ func awsRestjson1_deserializeDocumentInput(v **types.Input, value interface{}) e if !ok { return fmt.Errorf("expected __stringMin11Max11Pattern01D20305D205D to be of type string, got %T instead", value) } - sv.TimecodeStart = &jtv + sv.TimecodeStart = ptr.String(jtv) } case "videoSelector": @@ -11747,7 +11806,7 @@ func awsRestjson1_deserializeDocumentInputClipping(v **types.InputClipping, valu if !ok { return fmt.Errorf("expected __stringPattern010920405090509092 to be of type string, got %T instead", value) } - sv.EndTimecode = &jtv + sv.EndTimecode = ptr.String(jtv) } case "startTimecode": @@ -11756,7 +11815,7 @@ func awsRestjson1_deserializeDocumentInputClipping(v **types.InputClipping, valu if !ok { return fmt.Errorf("expected __stringPattern010920405090509092 to be of type string, got %T instead", value) } - sv.StartTimecode = &jtv + sv.StartTimecode = ptr.String(jtv) } default: @@ -11805,7 +11864,7 @@ func awsRestjson1_deserializeDocumentInputDecryptionSettings(v **types.InputDecr if !ok { return fmt.Errorf("expected __stringMin24Max512PatternAZaZ0902 to be of type string, got %T instead", value) } - sv.EncryptedDecryptionKey = &jtv + sv.EncryptedDecryptionKey = ptr.String(jtv) } case "initializationVector": @@ -11814,7 +11873,7 @@ func awsRestjson1_deserializeDocumentInputDecryptionSettings(v **types.InputDecr if !ok { return fmt.Errorf("expected __stringMin16Max24PatternAZaZ0922AZaZ0916 to be of type string, got %T instead", value) } - sv.InitializationVector = &jtv + sv.InitializationVector = ptr.String(jtv) } case "kmsKeyRegion": @@ -11823,7 +11882,7 @@ func awsRestjson1_deserializeDocumentInputDecryptionSettings(v **types.InputDecr if !ok { return fmt.Errorf("expected __stringMin9Max19PatternAZ26EastWestCentralNorthSouthEastWest1912 to be of type string, got %T instead", value) } - sv.KmsKeyRegion = &jtv + sv.KmsKeyRegion = ptr.String(jtv) } default: @@ -11914,7 +11973,7 @@ func awsRestjson1_deserializeDocumentInputTemplate(v **types.InputTemplate, valu if err != nil { return err } - sv.FilterStrength = ptr.Int32(int32(i64)) + sv.FilterStrength = int32(i64) } case "imageInserter": @@ -11951,7 +12010,7 @@ func awsRestjson1_deserializeDocumentInputTemplate(v **types.InputTemplate, valu if err != nil { return err } - sv.ProgramNumber = ptr.Int32(int32(i64)) + sv.ProgramNumber = int32(i64) } case "psiControl": @@ -11978,7 +12037,7 @@ func awsRestjson1_deserializeDocumentInputTemplate(v **types.InputTemplate, valu if !ok { return fmt.Errorf("expected __stringMin11Max11Pattern01D20305D205D to be of type string, got %T instead", value) } - sv.TimecodeStart = &jtv + sv.TimecodeStart = ptr.String(jtv) } case "videoSelector": @@ -12027,7 +12086,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "fadeIn": @@ -12040,7 +12099,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.FadeIn = ptr.Int32(int32(i64)) + sv.FadeIn = int32(i64) } case "fadeOut": @@ -12053,7 +12112,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.FadeOut = ptr.Int32(int32(i64)) + sv.FadeOut = int32(i64) } case "height": @@ -12066,7 +12125,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.Height = ptr.Int32(int32(i64)) + sv.Height = int32(i64) } case "imageInserterInput": @@ -12075,7 +12134,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if !ok { return fmt.Errorf("expected __stringMin14PatternS3BmpBMPPngPNGTgaTGAHttpsBmpBMPPngPNGTgaTGA to be of type string, got %T instead", value) } - sv.ImageInserterInput = &jtv + sv.ImageInserterInput = ptr.String(jtv) } case "imageX": @@ -12088,7 +12147,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.ImageX = ptr.Int32(int32(i64)) + sv.ImageX = int32(i64) } case "imageY": @@ -12101,7 +12160,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.ImageY = ptr.Int32(int32(i64)) + sv.ImageY = int32(i64) } case "layer": @@ -12114,7 +12173,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.Layer = ptr.Int32(int32(i64)) + sv.Layer = int32(i64) } case "opacity": @@ -12127,7 +12186,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.Opacity = ptr.Int32(int32(i64)) + sv.Opacity = int32(i64) } case "startTime": @@ -12136,7 +12195,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if !ok { return fmt.Errorf("expected __stringPattern01D20305D205D to be of type string, got %T instead", value) } - sv.StartTime = &jtv + sv.StartTime = ptr.String(jtv) } case "width": @@ -12149,7 +12208,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.Width = ptr.Int32(int32(i64)) + sv.Width = int32(i64) } default: @@ -12189,7 +12248,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12243,7 +12302,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "billingTagsSource": @@ -12287,7 +12346,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if err != nil { return err } - sv.ErrorCode = ptr.Int32(int32(i64)) + sv.ErrorCode = int32(i64) } case "errorMessage": @@ -12296,7 +12355,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "hopDestinations": @@ -12310,7 +12369,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "jobPercentComplete": @@ -12323,7 +12382,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if err != nil { return err } - sv.JobPercentComplete = ptr.Int32(int32(i64)) + sv.JobPercentComplete = int32(i64) } case "jobTemplate": @@ -12332,7 +12391,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JobTemplate = &jtv + sv.JobTemplate = ptr.String(jtv) } case "messages": @@ -12355,7 +12414,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "queue": @@ -12364,7 +12423,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Queue = &jtv + sv.Queue = ptr.String(jtv) } case "queueTransitions": @@ -12382,7 +12441,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if err != nil { return err } - sv.RetryCount = ptr.Int32(int32(i64)) + sv.RetryCount = int32(i64) } case "role": @@ -12391,7 +12450,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "settings": @@ -12518,7 +12577,7 @@ func awsRestjson1_deserializeDocumentJobSettings(v **types.JobSettings, value in if err != nil { return err } - sv.AdAvailOffset = ptr.Int32(int32(i64)) + sv.AdAvailOffset = int32(i64) } case "availBlanking": @@ -12608,7 +12667,7 @@ func awsRestjson1_deserializeDocumentJobTemplate(v **types.JobTemplate, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "category": @@ -12617,7 +12676,7 @@ func awsRestjson1_deserializeDocumentJobTemplate(v **types.JobTemplate, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Category = &jtv + sv.Category = ptr.String(jtv) } case "createdAt": @@ -12639,7 +12698,7 @@ func awsRestjson1_deserializeDocumentJobTemplate(v **types.JobTemplate, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "hopDestinations": @@ -12666,7 +12725,7 @@ func awsRestjson1_deserializeDocumentJobTemplate(v **types.JobTemplate, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "priority": @@ -12679,7 +12738,7 @@ func awsRestjson1_deserializeDocumentJobTemplate(v **types.JobTemplate, value in if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "queue": @@ -12688,7 +12747,7 @@ func awsRestjson1_deserializeDocumentJobTemplate(v **types.JobTemplate, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Queue = &jtv + sv.Queue = ptr.String(jtv) } case "settings": @@ -12755,7 +12814,7 @@ func awsRestjson1_deserializeDocumentJobTemplateSettings(v **types.JobTemplateSe if err != nil { return err } - sv.AdAvailOffset = ptr.Int32(int32(i64)) + sv.AdAvailOffset = int32(i64) } case "availBlanking": @@ -12844,7 +12903,7 @@ func awsRestjson1_deserializeDocumentM2tsScte35Esam(v **types.M2tsScte35Esam, va if err != nil { return err } - sv.Scte35EsamPid = ptr.Int32(int32(i64)) + sv.Scte35EsamPid = int32(i64) } default: @@ -12897,7 +12956,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.AudioFramesPerPes = ptr.Int32(int32(i64)) + sv.AudioFramesPerPes = int32(i64) } case "audioPids": @@ -12915,7 +12974,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "bufferModel": @@ -12957,7 +13016,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.DvbTeletextPid = ptr.Int32(int32(i64)) + sv.DvbTeletextPid = int32(i64) } case "ebpAudioInterval": @@ -13006,7 +13065,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.FragmentTime = &f64 + sv.FragmentTime = f64 } case "maxPcrInterval": @@ -13019,7 +13078,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.MaxPcrInterval = ptr.Int32(int32(i64)) + sv.MaxPcrInterval = int32(i64) } case "minEbpInterval": @@ -13032,7 +13091,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.MinEbpInterval = ptr.Int32(int32(i64)) + sv.MinEbpInterval = int32(i64) } case "nielsenId3": @@ -13054,7 +13113,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.NullPacketBitrate = &f64 + sv.NullPacketBitrate = f64 } case "patInterval": @@ -13067,7 +13126,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PatInterval = ptr.Int32(int32(i64)) + sv.PatInterval = int32(i64) } case "pcrControl": @@ -13089,7 +13148,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PcrPid = ptr.Int32(int32(i64)) + sv.PcrPid = int32(i64) } case "pmtInterval": @@ -13102,7 +13161,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PmtInterval = ptr.Int32(int32(i64)) + sv.PmtInterval = int32(i64) } case "pmtPid": @@ -13115,7 +13174,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PmtPid = ptr.Int32(int32(i64)) + sv.PmtPid = int32(i64) } case "privateMetadataPid": @@ -13128,7 +13187,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PrivateMetadataPid = ptr.Int32(int32(i64)) + sv.PrivateMetadataPid = int32(i64) } case "programNumber": @@ -13141,7 +13200,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.ProgramNumber = ptr.Int32(int32(i64)) + sv.ProgramNumber = int32(i64) } case "rateMode": @@ -13168,7 +13227,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.Scte35Pid = ptr.Int32(int32(i64)) + sv.Scte35Pid = int32(i64) } case "scte35Source": @@ -13208,7 +13267,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.SegmentationTime = &f64 + sv.SegmentationTime = f64 } case "timedMetadataPid": @@ -13221,7 +13280,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.TimedMetadataPid = ptr.Int32(int32(i64)) + sv.TimedMetadataPid = int32(i64) } case "transportStreamId": @@ -13234,7 +13293,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.TransportStreamId = ptr.Int32(int32(i64)) + sv.TransportStreamId = int32(i64) } case "videoPid": @@ -13247,7 +13306,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.VideoPid = ptr.Int32(int32(i64)) + sv.VideoPid = int32(i64) } default: @@ -13291,7 +13350,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.AudioFramesPerPes = ptr.Int32(int32(i64)) + sv.AudioFramesPerPes = int32(i64) } case "audioPids": @@ -13318,7 +13377,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PatInterval = ptr.Int32(int32(i64)) + sv.PatInterval = int32(i64) } case "pcrControl": @@ -13340,7 +13399,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PcrPid = ptr.Int32(int32(i64)) + sv.PcrPid = int32(i64) } case "pmtInterval": @@ -13353,7 +13412,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PmtInterval = ptr.Int32(int32(i64)) + sv.PmtInterval = int32(i64) } case "pmtPid": @@ -13366,7 +13425,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PmtPid = ptr.Int32(int32(i64)) + sv.PmtPid = int32(i64) } case "privateMetadataPid": @@ -13379,7 +13438,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PrivateMetadataPid = ptr.Int32(int32(i64)) + sv.PrivateMetadataPid = int32(i64) } case "programNumber": @@ -13392,7 +13451,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.ProgramNumber = ptr.Int32(int32(i64)) + sv.ProgramNumber = int32(i64) } case "scte35Pid": @@ -13405,7 +13464,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.Scte35Pid = ptr.Int32(int32(i64)) + sv.Scte35Pid = int32(i64) } case "scte35Source": @@ -13436,7 +13495,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.TimedMetadataPid = ptr.Int32(int32(i64)) + sv.TimedMetadataPid = int32(i64) } case "transportStreamId": @@ -13449,7 +13508,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.TransportStreamId = ptr.Int32(int32(i64)) + sv.TransportStreamId = int32(i64) } case "videoPid": @@ -13462,7 +13521,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.VideoPid = ptr.Int32(int32(i64)) + sv.VideoPid = int32(i64) } default: @@ -13507,7 +13566,7 @@ func awsRestjson1_deserializeDocumentMotionImageInserter(v **types.MotionImageIn if !ok { return fmt.Errorf("expected __stringMin14Max1285PatternS3Mov09PngHttpsMov09Png to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "insertionMode": @@ -13539,7 +13598,7 @@ func awsRestjson1_deserializeDocumentMotionImageInserter(v **types.MotionImageIn if !ok { return fmt.Errorf("expected __stringMin11Max11Pattern01D20305D205D to be of type string, got %T instead", value) } - sv.StartTime = &jtv + sv.StartTime = ptr.String(jtv) } default: @@ -13583,7 +13642,7 @@ func awsRestjson1_deserializeDocumentMotionImageInsertionFramerate(v **types.Mot if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -13596,7 +13655,7 @@ func awsRestjson1_deserializeDocumentMotionImageInsertionFramerate(v **types.Mot if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } default: @@ -13640,7 +13699,7 @@ func awsRestjson1_deserializeDocumentMotionImageInsertionOffset(v **types.Motion if err != nil { return err } - sv.ImageX = ptr.Int32(int32(i64)) + sv.ImageX = int32(i64) } case "imageY": @@ -13653,7 +13712,7 @@ func awsRestjson1_deserializeDocumentMotionImageInsertionOffset(v **types.Motion if err != nil { return err } - sv.ImageY = ptr.Int32(int32(i64)) + sv.ImageY = int32(i64) } default: @@ -13773,7 +13832,7 @@ func awsRestjson1_deserializeDocumentMp2Settings(v **types.Mp2Settings, value in if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "channels": @@ -13786,7 +13845,7 @@ func awsRestjson1_deserializeDocumentMp2Settings(v **types.Mp2Settings, value in if err != nil { return err } - sv.Channels = ptr.Int32(int32(i64)) + sv.Channels = int32(i64) } case "sampleRate": @@ -13799,7 +13858,7 @@ func awsRestjson1_deserializeDocumentMp2Settings(v **types.Mp2Settings, value in if err != nil { return err } - sv.SampleRate = ptr.Int32(int32(i64)) + sv.SampleRate = int32(i64) } default: @@ -13843,7 +13902,7 @@ func awsRestjson1_deserializeDocumentMp3Settings(v **types.Mp3Settings, value in if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "channels": @@ -13856,7 +13915,7 @@ func awsRestjson1_deserializeDocumentMp3Settings(v **types.Mp3Settings, value in if err != nil { return err } - sv.Channels = ptr.Int32(int32(i64)) + sv.Channels = int32(i64) } case "rateControlMode": @@ -13878,7 +13937,7 @@ func awsRestjson1_deserializeDocumentMp3Settings(v **types.Mp3Settings, value in if err != nil { return err } - sv.SampleRate = ptr.Int32(int32(i64)) + sv.SampleRate = int32(i64) } case "vbrQuality": @@ -13891,7 +13950,7 @@ func awsRestjson1_deserializeDocumentMp3Settings(v **types.Mp3Settings, value in if err != nil { return err } - sv.VbrQuality = ptr.Int32(int32(i64)) + sv.VbrQuality = int32(i64) } default: @@ -13944,7 +14003,7 @@ func awsRestjson1_deserializeDocumentMp4Settings(v **types.Mp4Settings, value in if err != nil { return err } - sv.CttsVersion = ptr.Int32(int32(i64)) + sv.CttsVersion = int32(i64) } case "freeSpaceBox": @@ -13971,7 +14030,7 @@ func awsRestjson1_deserializeDocumentMp4Settings(v **types.Mp4Settings, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Mp4MajorBrand = &jtv + sv.Mp4MajorBrand = ptr.String(jtv) } default: @@ -14082,7 +14141,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "codecLevel": @@ -14140,7 +14199,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -14153,7 +14212,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } case "gopClosedCadence": @@ -14166,7 +14225,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.GopClosedCadence = ptr.Int32(int32(i64)) + sv.GopClosedCadence = int32(i64) } case "gopSize": @@ -14179,7 +14238,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.GopSize = &f64 + sv.GopSize = f64 } case "gopSizeUnits": @@ -14201,7 +14260,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.HrdBufferInitialFillPercentage = ptr.Int32(int32(i64)) + sv.HrdBufferInitialFillPercentage = int32(i64) } case "hrdBufferSize": @@ -14214,7 +14273,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.HrdBufferSize = ptr.Int32(int32(i64)) + sv.HrdBufferSize = int32(i64) } case "interlaceMode": @@ -14245,7 +14304,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.MaxBitrate = ptr.Int32(int32(i64)) + sv.MaxBitrate = int32(i64) } case "minIInterval": @@ -14258,7 +14317,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.MinIInterval = ptr.Int32(int32(i64)) + sv.MinIInterval = int32(i64) } case "numberBFramesBetweenReferenceFrames": @@ -14271,7 +14330,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.NumberBFramesBetweenReferenceFrames = ptr.Int32(int32(i64)) + sv.NumberBFramesBetweenReferenceFrames = int32(i64) } case "parControl": @@ -14293,7 +14352,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.ParDenominator = ptr.Int32(int32(i64)) + sv.ParDenominator = int32(i64) } case "parNumerator": @@ -14306,7 +14365,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.ParNumerator = ptr.Int32(int32(i64)) + sv.ParNumerator = int32(i64) } case "qualityTuningLevel": @@ -14355,7 +14414,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.Softness = ptr.Int32(int32(i64)) + sv.Softness = int32(i64) } case "spatialAdaptiveQuantization": @@ -14431,7 +14490,7 @@ func awsRestjson1_deserializeDocumentMsSmoothAdditionalManifest(v **types.MsSmoo if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.ManifestNameModifier = &jtv + sv.ManifestNameModifier = ptr.String(jtv) } case "selectedOutputs": @@ -14526,7 +14585,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if !ok { return fmt.Errorf("expected __stringPatternS3 to be of type string, got %T instead", value) } - sv.Destination = &jtv + sv.Destination = ptr.String(jtv) } case "destinationSettings": @@ -14549,7 +14608,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.FragmentLength = ptr.Int32(int32(i64)) + sv.FragmentLength = int32(i64) } case "manifestEncoding": @@ -14647,7 +14706,7 @@ func awsRestjson1_deserializeDocumentNexGuardFileMarkerSettings(v **types.NexGua if !ok { return fmt.Errorf("expected __stringMin1Max100000 to be of type string, got %T instead", value) } - sv.License = &jtv + sv.License = ptr.String(jtv) } case "payload": @@ -14660,7 +14719,7 @@ func awsRestjson1_deserializeDocumentNexGuardFileMarkerSettings(v **types.NexGua if err != nil { return err } - sv.Payload = ptr.Int32(int32(i64)) + sv.Payload = int32(i64) } case "preset": @@ -14669,7 +14728,7 @@ func awsRestjson1_deserializeDocumentNexGuardFileMarkerSettings(v **types.NexGua if !ok { return fmt.Errorf("expected __stringMin1Max256 to be of type string, got %T instead", value) } - sv.Preset = &jtv + sv.Preset = ptr.String(jtv) } case "strength": @@ -14722,7 +14781,7 @@ func awsRestjson1_deserializeDocumentNielsenConfiguration(v **types.NielsenConfi if err != nil { return err } - sv.BreakoutCode = ptr.Int32(int32(i64)) + sv.BreakoutCode = int32(i64) } case "distributorId": @@ -14731,7 +14790,7 @@ func awsRestjson1_deserializeDocumentNielsenConfiguration(v **types.NielsenConfi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DistributorId = &jtv + sv.DistributorId = ptr.String(jtv) } default: @@ -14780,7 +14839,7 @@ func awsRestjson1_deserializeDocumentNielsenNonLinearWatermarkSettings(v **types if !ok { return fmt.Errorf("expected __stringPatternS3 to be of type string, got %T instead", value) } - sv.AdiFilename = &jtv + sv.AdiFilename = ptr.String(jtv) } case "assetId": @@ -14789,7 +14848,7 @@ func awsRestjson1_deserializeDocumentNielsenNonLinearWatermarkSettings(v **types if !ok { return fmt.Errorf("expected __stringMin1Max20 to be of type string, got %T instead", value) } - sv.AssetId = &jtv + sv.AssetId = ptr.String(jtv) } case "assetName": @@ -14798,7 +14857,7 @@ func awsRestjson1_deserializeDocumentNielsenNonLinearWatermarkSettings(v **types if !ok { return fmt.Errorf("expected __stringMin1Max50 to be of type string, got %T instead", value) } - sv.AssetName = &jtv + sv.AssetName = ptr.String(jtv) } case "cbetSourceId": @@ -14807,7 +14866,7 @@ func awsRestjson1_deserializeDocumentNielsenNonLinearWatermarkSettings(v **types if !ok { return fmt.Errorf("expected __stringPattern0xAFaF0908190908 to be of type string, got %T instead", value) } - sv.CbetSourceId = &jtv + sv.CbetSourceId = ptr.String(jtv) } case "episodeId": @@ -14816,7 +14875,7 @@ func awsRestjson1_deserializeDocumentNielsenNonLinearWatermarkSettings(v **types if !ok { return fmt.Errorf("expected __stringMin1Max20 to be of type string, got %T instead", value) } - sv.EpisodeId = &jtv + sv.EpisodeId = ptr.String(jtv) } case "metadataDestination": @@ -14825,7 +14884,7 @@ func awsRestjson1_deserializeDocumentNielsenNonLinearWatermarkSettings(v **types if !ok { return fmt.Errorf("expected __stringPatternS3 to be of type string, got %T instead", value) } - sv.MetadataDestination = &jtv + sv.MetadataDestination = ptr.String(jtv) } case "sourceId": @@ -14838,7 +14897,7 @@ func awsRestjson1_deserializeDocumentNielsenNonLinearWatermarkSettings(v **types if err != nil { return err } - sv.SourceId = ptr.Int32(int32(i64)) + sv.SourceId = int32(i64) } case "sourceWatermarkStatus": @@ -14856,7 +14915,7 @@ func awsRestjson1_deserializeDocumentNielsenNonLinearWatermarkSettings(v **types if !ok { return fmt.Errorf("expected __stringPatternHttps to be of type string, got %T instead", value) } - sv.TicServerUrl = &jtv + sv.TicServerUrl = ptr.String(jtv) } case "uniqueTicPerAudioTrack": @@ -14964,7 +15023,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerFilterSettings(v **types.NoiseR if err != nil { return err } - sv.Strength = ptr.Int32(int32(i64)) + sv.Strength = int32(i64) } default: @@ -15008,7 +15067,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerSpatialFilterSettings(v **types if err != nil { return err } - sv.PostFilterSharpenStrength = ptr.Int32(int32(i64)) + sv.PostFilterSharpenStrength = int32(i64) } case "speed": @@ -15021,7 +15080,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerSpatialFilterSettings(v **types if err != nil { return err } - sv.Speed = ptr.Int32(int32(i64)) + sv.Speed = int32(i64) } case "strength": @@ -15034,7 +15093,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerSpatialFilterSettings(v **types if err != nil { return err } - sv.Strength = ptr.Int32(int32(i64)) + sv.Strength = int32(i64) } default: @@ -15078,7 +15137,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerTemporalFilterSettings(v **type if err != nil { return err } - sv.AggressiveMode = ptr.Int32(int32(i64)) + sv.AggressiveMode = int32(i64) } case "postTemporalSharpening": @@ -15100,7 +15159,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerTemporalFilterSettings(v **type if err != nil { return err } - sv.Speed = ptr.Int32(int32(i64)) + sv.Speed = int32(i64) } case "strength": @@ -15113,7 +15172,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerTemporalFilterSettings(v **type if err != nil { return err } - sv.Strength = ptr.Int32(int32(i64)) + sv.Strength = int32(i64) } default: @@ -15153,7 +15212,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15197,7 +15256,7 @@ func awsRestjson1_deserializeDocumentOpusSettings(v **types.OpusSettings, value if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "channels": @@ -15210,7 +15269,7 @@ func awsRestjson1_deserializeDocumentOpusSettings(v **types.OpusSettings, value if err != nil { return err } - sv.Channels = ptr.Int32(int32(i64)) + sv.Channels = int32(i64) } case "sampleRate": @@ -15223,7 +15282,7 @@ func awsRestjson1_deserializeDocumentOpusSettings(v **types.OpusSettings, value if err != nil { return err } - sv.SampleRate = ptr.Int32(int32(i64)) + sv.SampleRate = int32(i64) } default: @@ -15278,7 +15337,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Extension = &jtv + sv.Extension = ptr.String(jtv) } case "nameModifier": @@ -15287,7 +15346,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.NameModifier = &jtv + sv.NameModifier = ptr.String(jtv) } case "outputSettings": @@ -15301,7 +15360,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if !ok { return fmt.Errorf("expected __stringMin0 to be of type string, got %T instead", value) } - sv.Preset = &jtv + sv.Preset = ptr.String(jtv) } case "videoDescription": @@ -15386,7 +15445,7 @@ func awsRestjson1_deserializeDocumentOutputDetail(v **types.OutputDetail, value if err != nil { return err } - sv.DurationInMs = ptr.Int32(int32(i64)) + sv.DurationInMs = int32(i64) } case "videoDetails": @@ -15431,7 +15490,7 @@ func awsRestjson1_deserializeDocumentOutputGroup(v **types.OutputGroup, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CustomName = &jtv + sv.CustomName = ptr.String(jtv) } case "name": @@ -15440,7 +15499,7 @@ func awsRestjson1_deserializeDocumentOutputGroup(v **types.OutputGroup, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "outputGroupSettings": @@ -15663,7 +15722,7 @@ func awsRestjson1_deserializeDocumentPreset(v **types.Preset, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "category": @@ -15672,7 +15731,7 @@ func awsRestjson1_deserializeDocumentPreset(v **types.Preset, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Category = &jtv + sv.Category = ptr.String(jtv) } case "createdAt": @@ -15694,7 +15753,7 @@ func awsRestjson1_deserializeDocumentPreset(v **types.Preset, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastUpdated": @@ -15716,7 +15775,7 @@ func awsRestjson1_deserializeDocumentPreset(v **types.Preset, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "settings": @@ -15852,7 +15911,7 @@ func awsRestjson1_deserializeDocumentProresSettings(v **types.ProresSettings, va if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -15865,7 +15924,7 @@ func awsRestjson1_deserializeDocumentProresSettings(v **types.ProresSettings, va if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } case "interlaceMode": @@ -15896,7 +15955,7 @@ func awsRestjson1_deserializeDocumentProresSettings(v **types.ProresSettings, va if err != nil { return err } - sv.ParDenominator = ptr.Int32(int32(i64)) + sv.ParDenominator = int32(i64) } case "parNumerator": @@ -15909,7 +15968,7 @@ func awsRestjson1_deserializeDocumentProresSettings(v **types.ProresSettings, va if err != nil { return err } - sv.ParNumerator = ptr.Int32(int32(i64)) + sv.ParNumerator = int32(i64) } case "slowPal": @@ -15967,7 +16026,7 @@ func awsRestjson1_deserializeDocumentQueue(v **types.Queue, value interface{}) e if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -15989,7 +16048,7 @@ func awsRestjson1_deserializeDocumentQueue(v **types.Queue, value interface{}) e if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "lastUpdated": @@ -16011,7 +16070,7 @@ func awsRestjson1_deserializeDocumentQueue(v **types.Queue, value interface{}) e if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pricingPlan": @@ -16033,7 +16092,7 @@ func awsRestjson1_deserializeDocumentQueue(v **types.Queue, value interface{}) e if err != nil { return err } - sv.ProgressingJobsCount = ptr.Int32(int32(i64)) + sv.ProgressingJobsCount = int32(i64) } case "reservationPlan": @@ -16060,7 +16119,7 @@ func awsRestjson1_deserializeDocumentQueue(v **types.Queue, value interface{}) e if err != nil { return err } - sv.SubmittedJobsCount = ptr.Int32(int32(i64)) + sv.SubmittedJobsCount = int32(i64) } case "type": @@ -16109,7 +16168,7 @@ func awsRestjson1_deserializeDocumentQueueTransition(v **types.QueueTransition, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DestinationQueue = &jtv + sv.DestinationQueue = ptr.String(jtv) } case "sourceQueue": @@ -16118,7 +16177,7 @@ func awsRestjson1_deserializeDocumentQueueTransition(v **types.QueueTransition, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceQueue = &jtv + sv.SourceQueue = ptr.String(jtv) } case "timestamp": @@ -16175,7 +16234,7 @@ func awsRestjson1_deserializeDocumentRectangle(v **types.Rectangle, value interf if err != nil { return err } - sv.Height = ptr.Int32(int32(i64)) + sv.Height = int32(i64) } case "width": @@ -16188,7 +16247,7 @@ func awsRestjson1_deserializeDocumentRectangle(v **types.Rectangle, value interf if err != nil { return err } - sv.Width = ptr.Int32(int32(i64)) + sv.Width = int32(i64) } case "x": @@ -16201,7 +16260,7 @@ func awsRestjson1_deserializeDocumentRectangle(v **types.Rectangle, value interf if err != nil { return err } - sv.X = ptr.Int32(int32(i64)) + sv.X = int32(i64) } case "y": @@ -16214,7 +16273,7 @@ func awsRestjson1_deserializeDocumentRectangle(v **types.Rectangle, value interf if err != nil { return err } - sv.Y = ptr.Int32(int32(i64)) + sv.Y = int32(i64) } default: @@ -16263,7 +16322,7 @@ func awsRestjson1_deserializeDocumentRemixSettings(v **types.RemixSettings, valu if err != nil { return err } - sv.ChannelsIn = ptr.Int32(int32(i64)) + sv.ChannelsIn = int32(i64) } case "channelsOut": @@ -16276,7 +16335,7 @@ func awsRestjson1_deserializeDocumentRemixSettings(v **types.RemixSettings, valu if err != nil { return err } - sv.ChannelsOut = ptr.Int32(int32(i64)) + sv.ChannelsOut = int32(i64) } default: @@ -16364,7 +16423,7 @@ func awsRestjson1_deserializeDocumentReservationPlan(v **types.ReservationPlan, if err != nil { return err } - sv.ReservedSlots = ptr.Int32(int32(i64)) + sv.ReservedSlots = int32(i64) } case "status": @@ -16413,7 +16472,7 @@ func awsRestjson1_deserializeDocumentResourceTags(v **types.ResourceTags, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "tags": @@ -16548,7 +16607,7 @@ func awsRestjson1_deserializeDocumentS3EncryptionSettings(v **types.S3Encryption if !ok { return fmt.Errorf("expected __stringPatternArnAwsUsGovCnKmsAZ26EastWestCentralNorthSouthEastWest1912D12KeyAFAF098AFAF094AFAF094AFAF094AFAF0912 to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } default: @@ -16628,7 +16687,7 @@ func awsRestjson1_deserializeDocumentSpekeKeyProvider(v **types.SpekeKeyProvider if !ok { return fmt.Errorf("expected __stringPatternArnAwsUsGovAcm to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "resourceId": @@ -16637,7 +16696,7 @@ func awsRestjson1_deserializeDocumentSpekeKeyProvider(v **types.SpekeKeyProvider if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "systemIds": @@ -16651,7 +16710,7 @@ func awsRestjson1_deserializeDocumentSpekeKeyProvider(v **types.SpekeKeyProvider if !ok { return fmt.Errorf("expected __stringPatternHttps to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -16691,7 +16750,7 @@ func awsRestjson1_deserializeDocumentSpekeKeyProviderCmaf(v **types.SpekeKeyProv if !ok { return fmt.Errorf("expected __stringPatternArnAwsUsGovAcm to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "dashSignaledSystemIds": @@ -16710,7 +16769,7 @@ func awsRestjson1_deserializeDocumentSpekeKeyProviderCmaf(v **types.SpekeKeyProv if !ok { return fmt.Errorf("expected __stringPatternW to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "url": @@ -16719,7 +16778,7 @@ func awsRestjson1_deserializeDocumentSpekeKeyProviderCmaf(v **types.SpekeKeyProv if !ok { return fmt.Errorf("expected __stringPatternHttps to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -16759,7 +16818,7 @@ func awsRestjson1_deserializeDocumentStaticKeyProvider(v **types.StaticKeyProvid if !ok { return fmt.Errorf("expected __stringPatternIdentityAZaZ26AZaZ09163 to be of type string, got %T instead", value) } - sv.KeyFormat = &jtv + sv.KeyFormat = ptr.String(jtv) } case "keyFormatVersions": @@ -16768,7 +16827,7 @@ func awsRestjson1_deserializeDocumentStaticKeyProvider(v **types.StaticKeyProvid if !ok { return fmt.Errorf("expected __stringPatternDD to be of type string, got %T instead", value) } - sv.KeyFormatVersions = &jtv + sv.KeyFormatVersions = ptr.String(jtv) } case "staticKeyValue": @@ -16777,7 +16836,7 @@ func awsRestjson1_deserializeDocumentStaticKeyProvider(v **types.StaticKeyProvid if !ok { return fmt.Errorf("expected __stringPatternAZaZ0932 to be of type string, got %T instead", value) } - sv.StaticKeyValue = &jtv + sv.StaticKeyValue = ptr.String(jtv) } case "url": @@ -16786,7 +16845,7 @@ func awsRestjson1_deserializeDocumentStaticKeyProvider(v **types.StaticKeyProvid if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -16826,7 +16885,7 @@ func awsRestjson1_deserializeDocumentTeletextDestinationSettings(v **types.Telet if !ok { return fmt.Errorf("expected __stringMin3Max3Pattern1809aFAF09aEAE to be of type string, got %T instead", value) } - sv.PageNumber = &jtv + sv.PageNumber = ptr.String(jtv) } case "pageTypes": @@ -16871,7 +16930,7 @@ func awsRestjson1_deserializeDocumentTeletextSourceSettings(v **types.TeletextSo if !ok { return fmt.Errorf("expected __stringMin3Max3Pattern1809aFAF09aEAE to be of type string, got %T instead", value) } - sv.PageNumber = &jtv + sv.PageNumber = ptr.String(jtv) } default: @@ -16915,7 +16974,7 @@ func awsRestjson1_deserializeDocumentTimecodeBurnin(v **types.TimecodeBurnin, va if err != nil { return err } - sv.FontSize = ptr.Int32(int32(i64)) + sv.FontSize = int32(i64) } case "position": @@ -16933,7 +16992,7 @@ func awsRestjson1_deserializeDocumentTimecodeBurnin(v **types.TimecodeBurnin, va if !ok { return fmt.Errorf("expected __stringPattern to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } default: @@ -16973,7 +17032,7 @@ func awsRestjson1_deserializeDocumentTimecodeConfig(v **types.TimecodeConfig, va if !ok { return fmt.Errorf("expected __stringPattern010920405090509092 to be of type string, got %T instead", value) } - sv.Anchor = &jtv + sv.Anchor = ptr.String(jtv) } case "source": @@ -16991,7 +17050,7 @@ func awsRestjson1_deserializeDocumentTimecodeConfig(v **types.TimecodeConfig, va if !ok { return fmt.Errorf("expected __stringPattern010920405090509092 to be of type string, got %T instead", value) } - sv.Start = &jtv + sv.Start = ptr.String(jtv) } case "timestampOffset": @@ -17000,7 +17059,7 @@ func awsRestjson1_deserializeDocumentTimecodeConfig(v **types.TimecodeConfig, va if !ok { return fmt.Errorf("expected __stringPattern0940191020191209301 to be of type string, got %T instead", value) } - sv.TimestampOffset = &jtv + sv.TimestampOffset = ptr.String(jtv) } default: @@ -17146,7 +17205,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -17190,7 +17249,7 @@ func awsRestjson1_deserializeDocumentTrackSourceSettings(v **types.TrackSourceSe if err != nil { return err } - sv.TrackNumber = ptr.Int32(int32(i64)) + sv.TrackNumber = int32(i64) } default: @@ -17292,7 +17351,7 @@ func awsRestjson1_deserializeDocumentVc3Settings(v **types.Vc3Settings, value in if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -17305,7 +17364,7 @@ func awsRestjson1_deserializeDocumentVc3Settings(v **types.Vc3Settings, value in if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } case "interlaceMode": @@ -17521,7 +17580,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.FixedAfd = ptr.Int32(int32(i64)) + sv.FixedAfd = int32(i64) } case "height": @@ -17534,7 +17593,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.Height = ptr.Int32(int32(i64)) + sv.Height = int32(i64) } case "position": @@ -17570,7 +17629,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.Sharpness = ptr.Int32(int32(i64)) + sv.Sharpness = int32(i64) } case "timecodeInsertion": @@ -17597,7 +17656,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.Width = ptr.Int32(int32(i64)) + sv.Width = int32(i64) } default: @@ -17641,7 +17700,7 @@ func awsRestjson1_deserializeDocumentVideoDetail(v **types.VideoDetail, value in if err != nil { return err } - sv.HeightInPx = ptr.Int32(int32(i64)) + sv.HeightInPx = int32(i64) } case "widthInPx": @@ -17654,7 +17713,7 @@ func awsRestjson1_deserializeDocumentVideoDetail(v **types.VideoDetail, value in if err != nil { return err } - sv.WidthInPx = ptr.Int32(int32(i64)) + sv.WidthInPx = int32(i64) } default: @@ -17796,7 +17855,7 @@ func awsRestjson1_deserializeDocumentVideoSelector(v **types.VideoSelector, valu if err != nil { return err } - sv.Pid = ptr.Int32(int32(i64)) + sv.Pid = int32(i64) } case "programNumber": @@ -17809,7 +17868,7 @@ func awsRestjson1_deserializeDocumentVideoSelector(v **types.VideoSelector, valu if err != nil { return err } - sv.ProgramNumber = ptr.Int32(int32(i64)) + sv.ProgramNumber = int32(i64) } case "rotate": @@ -17862,7 +17921,7 @@ func awsRestjson1_deserializeDocumentVorbisSettings(v **types.VorbisSettings, va if err != nil { return err } - sv.Channels = ptr.Int32(int32(i64)) + sv.Channels = int32(i64) } case "sampleRate": @@ -17875,7 +17934,7 @@ func awsRestjson1_deserializeDocumentVorbisSettings(v **types.VorbisSettings, va if err != nil { return err } - sv.SampleRate = ptr.Int32(int32(i64)) + sv.SampleRate = int32(i64) } case "vbrQuality": @@ -17888,7 +17947,7 @@ func awsRestjson1_deserializeDocumentVorbisSettings(v **types.VorbisSettings, va if err != nil { return err } - sv.VbrQuality = ptr.Int32(int32(i64)) + sv.VbrQuality = int32(i64) } default: @@ -17932,7 +17991,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "framerateControl": @@ -17963,7 +18022,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -17976,7 +18035,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } case "gopSize": @@ -17989,7 +18048,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.GopSize = &f64 + sv.GopSize = f64 } case "hrdBufferSize": @@ -18002,7 +18061,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.HrdBufferSize = ptr.Int32(int32(i64)) + sv.HrdBufferSize = int32(i64) } case "maxBitrate": @@ -18015,7 +18074,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.MaxBitrate = ptr.Int32(int32(i64)) + sv.MaxBitrate = int32(i64) } case "parControl": @@ -18037,7 +18096,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.ParDenominator = ptr.Int32(int32(i64)) + sv.ParDenominator = int32(i64) } case "parNumerator": @@ -18050,7 +18109,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.ParNumerator = ptr.Int32(int32(i64)) + sv.ParNumerator = int32(i64) } case "qualityTuningLevel": @@ -18112,7 +18171,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "framerateControl": @@ -18143,7 +18202,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -18156,7 +18215,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } case "gopSize": @@ -18169,7 +18228,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.GopSize = &f64 + sv.GopSize = f64 } case "hrdBufferSize": @@ -18182,7 +18241,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.HrdBufferSize = ptr.Int32(int32(i64)) + sv.HrdBufferSize = int32(i64) } case "maxBitrate": @@ -18195,7 +18254,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.MaxBitrate = ptr.Int32(int32(i64)) + sv.MaxBitrate = int32(i64) } case "parControl": @@ -18217,7 +18276,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.ParDenominator = ptr.Int32(int32(i64)) + sv.ParDenominator = int32(i64) } case "parNumerator": @@ -18230,7 +18289,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.ParNumerator = ptr.Int32(int32(i64)) + sv.ParNumerator = int32(i64) } case "qualityTuningLevel": @@ -18292,7 +18351,7 @@ func awsRestjson1_deserializeDocumentWavSettings(v **types.WavSettings, value in if err != nil { return err } - sv.BitDepth = ptr.Int32(int32(i64)) + sv.BitDepth = int32(i64) } case "channels": @@ -18305,7 +18364,7 @@ func awsRestjson1_deserializeDocumentWavSettings(v **types.WavSettings, value in if err != nil { return err } - sv.Channels = ptr.Int32(int32(i64)) + sv.Channels = int32(i64) } case "format": @@ -18327,7 +18386,7 @@ func awsRestjson1_deserializeDocumentWavSettings(v **types.WavSettings, value in if err != nil { return err } - sv.SampleRate = ptr.Int32(int32(i64)) + sv.SampleRate = int32(i64) } default: diff --git a/service/mediaconvert/go.mod b/service/mediaconvert/go.mod index 8b397e3300b..5135ee13fb4 100644 --- a/service/mediaconvert/go.mod +++ b/service/mediaconvert/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/mediaconvert go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/mediaconvert/serializers.go b/service/mediaconvert/serializers.go index 8d9622fa390..2d0fa4a4b88 100644 --- a/service/mediaconvert/serializers.go +++ b/service/mediaconvert/serializers.go @@ -138,13 +138,10 @@ func awsRestjson1_serializeOpHttpBindingsCancelJobInput(v *CancelJobInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -247,9 +244,9 @@ func awsRestjson1_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smi ok.String(*v.JobTemplate) } - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } if v.Queue != nil { @@ -390,9 +387,9 @@ func awsRestjson1_serializeOpDocumentCreateJobTemplateInput(v *CreateJobTemplate ok.String(*v.Name) } - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } if v.Queue != nil { @@ -672,13 +669,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteJobTemplateInput(v *DeleteJobTemp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -738,13 +732,10 @@ func awsRestjson1_serializeOpHttpBindingsDeletePresetInput(v *DeletePresetInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -804,13 +795,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteQueueInput(v *DeleteQueueInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -884,9 +872,9 @@ func awsRestjson1_serializeOpDocumentDescribeEndpointsInput(v *DescribeEndpoints object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if len(v.Mode) > 0 { @@ -953,13 +941,10 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateCertificateInput(v *Disasso return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Arn == nil { + if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { - if len(*v.Arn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} - } if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } @@ -1019,13 +1004,10 @@ func awsRestjson1_serializeOpHttpBindingsGetJobInput(v *GetJobInput, encoder *ht return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1085,13 +1067,10 @@ func awsRestjson1_serializeOpHttpBindingsGetJobTemplateInput(v *GetJobTemplateIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -1151,13 +1130,10 @@ func awsRestjson1_serializeOpHttpBindingsGetPresetInput(v *GetPresetInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -1217,13 +1193,10 @@ func awsRestjson1_serializeOpHttpBindingsGetQueueInput(v *GetQueueInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -1283,8 +1256,8 @@ func awsRestjson1_serializeOpHttpBindingsListJobsInput(v *ListJobsInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1365,8 +1338,8 @@ func awsRestjson1_serializeOpHttpBindingsListJobTemplatesInput(v *ListJobTemplat encoder.SetQuery("listBy").String(string(v.ListBy)) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1439,8 +1412,8 @@ func awsRestjson1_serializeOpHttpBindingsListPresetsInput(v *ListPresetsInput, e encoder.SetQuery("listBy").String(string(v.ListBy)) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1509,8 +1482,8 @@ func awsRestjson1_serializeOpHttpBindingsListQueuesInput(v *ListQueuesInput, enc encoder.SetQuery("listBy").String(string(v.ListBy)) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1575,13 +1548,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Arn == nil { + if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { - if len(*v.Arn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} - } if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } @@ -1732,13 +1702,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Arn == nil { + if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { - if len(*v.Arn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} - } if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } @@ -1823,13 +1790,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateJobTemplateInput(v *UpdateJobTemp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -1866,9 +1830,9 @@ func awsRestjson1_serializeOpDocumentUpdateJobTemplateInput(v *UpdateJobTemplate } } - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } if v.Queue != nil { @@ -1953,13 +1917,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdatePresetInput(v *UpdatePresetInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -2054,13 +2015,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateQueueInput(v *UpdateQueueInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -2093,222 +2051,166 @@ func awsRestjson1_serializeOpDocumentUpdateQueueInput(v *UpdateQueueInput, value return nil } -func awsRestjson1_serializeDocument__listOf__integerMin1Max2147483647(v []*int32, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__integerMin1Max2147483647(v []int32, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Integer(*v[i]) + av.Integer(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOf__integerMin32Max8182(v []*int32, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__integerMin32Max8182(v []int32, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Integer(*v[i]) + av.Integer(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOf__integerMinNegative60Max6(v []*int32, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__integerMinNegative60Max6(v []int32, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Integer(*v[i]) + av.Integer(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOf__string(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOf__stringMin1(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__stringMin1(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOf__stringMin36Max36Pattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__stringMin36Max36Pattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOf__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOf__stringPatternS3ASSETMAPXml(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__stringPatternS3ASSETMAPXml(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOfAudioDescription(v []*types.AudioDescription, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfAudioDescription(v []types.AudioDescription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAudioDescription(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAudioDescription(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfCaptionDescription(v []*types.CaptionDescription, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfCaptionDescription(v []types.CaptionDescription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCaptionDescription(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCaptionDescription(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfCaptionDescriptionPreset(v []*types.CaptionDescriptionPreset, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfCaptionDescriptionPreset(v []types.CaptionDescriptionPreset, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCaptionDescriptionPreset(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCaptionDescriptionPreset(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfCmafAdditionalManifest(v []*types.CmafAdditionalManifest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfCmafAdditionalManifest(v []types.CmafAdditionalManifest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCmafAdditionalManifest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCmafAdditionalManifest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfDashAdditionalManifest(v []*types.DashAdditionalManifest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfDashAdditionalManifest(v []types.DashAdditionalManifest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDashAdditionalManifest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDashAdditionalManifest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfHlsAdditionalManifest(v []*types.HlsAdditionalManifest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfHlsAdditionalManifest(v []types.HlsAdditionalManifest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentHlsAdditionalManifest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentHlsAdditionalManifest(&v[i], av); err != nil { return err } } @@ -2326,187 +2228,143 @@ func awsRestjson1_serializeDocument__listOfHlsAdMarkers(v []types.HlsAdMarkers, return nil } -func awsRestjson1_serializeDocument__listOfHlsCaptionLanguageMapping(v []*types.HlsCaptionLanguageMapping, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfHlsCaptionLanguageMapping(v []types.HlsCaptionLanguageMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentHlsCaptionLanguageMapping(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentHlsCaptionLanguageMapping(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfHopDestination(v []*types.HopDestination, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfHopDestination(v []types.HopDestination, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentHopDestination(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentHopDestination(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfId3Insertion(v []*types.Id3Insertion, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfId3Insertion(v []types.Id3Insertion, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentId3Insertion(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentId3Insertion(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfInput(v []*types.Input, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfInput(v []types.Input, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInput(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInput(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfInputClipping(v []*types.InputClipping, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfInputClipping(v []types.InputClipping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInputClipping(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInputClipping(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfInputTemplate(v []*types.InputTemplate, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfInputTemplate(v []types.InputTemplate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInputTemplate(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInputTemplate(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfInsertableImage(v []*types.InsertableImage, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfInsertableImage(v []types.InsertableImage, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInsertableImage(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInsertableImage(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfMsSmoothAdditionalManifest(v []*types.MsSmoothAdditionalManifest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfMsSmoothAdditionalManifest(v []types.MsSmoothAdditionalManifest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMsSmoothAdditionalManifest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMsSmoothAdditionalManifest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfOutput(v []*types.Output, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfOutput(v []types.Output, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentOutput(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentOutput(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfOutputChannelMapping(v []*types.OutputChannelMapping, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfOutputChannelMapping(v []types.OutputChannelMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentOutputChannelMapping(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentOutputChannelMapping(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfOutputGroup(v []*types.OutputGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfOutputGroup(v []types.OutputGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentOutputGroup(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentOutputGroup(&v[i], av); err != nil { return err } } @@ -2524,66 +2382,53 @@ func awsRestjson1_serializeDocument__listOfTeletextPageType(v []types.TeletextPa return nil } -func awsRestjson1_serializeDocument__mapOf__string(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__mapOf__string(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocument__mapOfAudioSelector(v map[string]*types.AudioSelector, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__mapOfAudioSelector(v map[string]types.AudioSelector, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentAudioSelector(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentAudioSelector(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__mapOfAudioSelectorGroup(v map[string]*types.AudioSelectorGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__mapOfAudioSelectorGroup(v map[string]types.AudioSelectorGroup, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentAudioSelectorGroup(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentAudioSelectorGroup(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__mapOfCaptionSelector(v map[string]*types.CaptionSelector, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__mapOfCaptionSelector(v map[string]types.CaptionSelector, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentCaptionSelector(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentCaptionSelector(&mapVar, om); err != nil { return err } } @@ -2599,9 +2444,9 @@ func awsRestjson1_serializeDocumentAacSettings(v *types.AacSettings, value smith ok.String(string(v.AudioDescriptionBroadcasterMix)) } - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } if len(v.CodecProfile) > 0 { @@ -2624,9 +2469,9 @@ func awsRestjson1_serializeDocumentAacSettings(v *types.AacSettings, value smith ok.String(string(v.RawFormat)) } - if v.SampleRate != nil { + if v.SampleRate != 0 { ok := object.Key("sampleRate") - ok.Integer(*v.SampleRate) + ok.Integer(v.SampleRate) } if len(v.Specification) > 0 { @@ -2646,9 +2491,9 @@ func awsRestjson1_serializeDocumentAc3Settings(v *types.Ac3Settings, value smith object := value.Object() defer object.Close() - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } if len(v.BitstreamMode) > 0 { @@ -2661,9 +2506,9 @@ func awsRestjson1_serializeDocumentAc3Settings(v *types.Ac3Settings, value smith ok.String(string(v.CodingMode)) } - if v.Dialnorm != nil { + if v.Dialnorm != 0 { ok := object.Key("dialnorm") - ok.Integer(*v.Dialnorm) + ok.Integer(v.Dialnorm) } if len(v.DynamicRangeCompressionProfile) > 0 { @@ -2681,9 +2526,9 @@ func awsRestjson1_serializeDocumentAc3Settings(v *types.Ac3Settings, value smith ok.String(string(v.MetadataControl)) } - if v.SampleRate != nil { + if v.SampleRate != 0 { ok := object.Key("sampleRate") - ok.Integer(*v.SampleRate) + ok.Integer(v.SampleRate) } return nil @@ -2705,19 +2550,19 @@ func awsRestjson1_serializeDocumentAiffSettings(v *types.AiffSettings, value smi object := value.Object() defer object.Close() - if v.BitDepth != nil { + if v.BitDepth != 0 { ok := object.Key("bitDepth") - ok.Integer(*v.BitDepth) + ok.Integer(v.BitDepth) } - if v.Channels != nil { + if v.Channels != 0 { ok := object.Key("channels") - ok.Integer(*v.Channels) + ok.Integer(v.Channels) } - if v.SampleRate != nil { + if v.SampleRate != 0 { ok := object.Key("sampleRate") - ok.Integer(*v.SampleRate) + ok.Integer(v.SampleRate) } return nil @@ -2732,9 +2577,9 @@ func awsRestjson1_serializeDocumentAncillarySourceSettings(v *types.AncillarySou ok.String(string(v.Convert608To708)) } - if v.SourceAncillaryChannelNumber != nil { + if v.SourceAncillaryChannelNumber != 0 { ok := object.Key("sourceAncillaryChannelNumber") - ok.Integer(*v.SourceAncillaryChannelNumber) + ok.Integer(v.SourceAncillaryChannelNumber) } if len(v.TerminateCaptions) > 0 { @@ -2862,9 +2707,9 @@ func awsRestjson1_serializeDocumentAudioDescription(v *types.AudioDescription, v ok.String(*v.AudioSourceName) } - if v.AudioType != nil { + if v.AudioType != 0 { ok := object.Key("audioType") - ok.Integer(*v.AudioType) + ok.Integer(v.AudioType) } if len(v.AudioTypeControl) > 0 { @@ -2923,9 +2768,9 @@ func awsRestjson1_serializeDocumentAudioNormalizationSettings(v *types.AudioNorm ok.String(string(v.AlgorithmControl)) } - if v.CorrectionGateLevel != nil { + if v.CorrectionGateLevel != 0 { ok := object.Key("correctionGateLevel") - ok.Integer(*v.CorrectionGateLevel) + ok.Integer(v.CorrectionGateLevel) } if len(v.LoudnessLogging) > 0 { @@ -2938,9 +2783,9 @@ func awsRestjson1_serializeDocumentAudioNormalizationSettings(v *types.AudioNorm ok.String(string(v.PeakCalculation)) } - if v.TargetLkfs != nil { + if v.TargetLkfs != 0 { ok := object.Key("targetLkfs") - ok.Double(*v.TargetLkfs) + ok.Double(v.TargetLkfs) } return nil @@ -2970,9 +2815,9 @@ func awsRestjson1_serializeDocumentAudioSelector(v *types.AudioSelector, value s ok.String(string(v.LanguageCode)) } - if v.Offset != nil { + if v.Offset != 0 { ok := object.Key("offset") - ok.Integer(*v.Offset) + ok.Integer(v.Offset) } if v.Pids != nil { @@ -2982,9 +2827,9 @@ func awsRestjson1_serializeDocumentAudioSelector(v *types.AudioSelector, value s } } - if v.ProgramSelection != nil { + if v.ProgramSelection != 0 { ok := object.Key("programSelection") - ok.Integer(*v.ProgramSelection) + ok.Integer(v.ProgramSelection) } if v.RemixSettings != nil { @@ -3027,14 +2872,14 @@ func awsRestjson1_serializeDocumentAv1QvbrSettings(v *types.Av1QvbrSettings, val object := value.Object() defer object.Close() - if v.QvbrQualityLevel != nil { + if v.QvbrQualityLevel != 0 { ok := object.Key("qvbrQualityLevel") - ok.Integer(*v.QvbrQualityLevel) + ok.Integer(v.QvbrQualityLevel) } - if v.QvbrQualityLevelFineTune != nil { + if v.QvbrQualityLevelFineTune != 0 { ok := object.Key("qvbrQualityLevelFineTune") - ok.Double(*v.QvbrQualityLevelFineTune) + ok.Double(v.QvbrQualityLevelFineTune) } return nil @@ -3059,29 +2904,29 @@ func awsRestjson1_serializeDocumentAv1Settings(v *types.Av1Settings, value smith ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } - if v.GopSize != nil { + if v.GopSize != 0 { ok := object.Key("gopSize") - ok.Double(*v.GopSize) + ok.Double(v.GopSize) } - if v.MaxBitrate != nil { + if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") - ok.Integer(*v.MaxBitrate) + ok.Integer(v.MaxBitrate) } - if v.NumberBFramesBetweenReferenceFrames != nil { + if v.NumberBFramesBetweenReferenceFrames != 0 { ok := object.Key("numberBFramesBetweenReferenceFrames") - ok.Integer(*v.NumberBFramesBetweenReferenceFrames) + ok.Integer(v.NumberBFramesBetweenReferenceFrames) } if v.QvbrSettings != nil { @@ -3096,9 +2941,9 @@ func awsRestjson1_serializeDocumentAv1Settings(v *types.Av1Settings, value smith ok.String(string(v.RateControlMode)) } - if v.Slices != nil { + if v.Slices != 0 { ok := object.Key("slices") - ok.Integer(*v.Slices) + ok.Integer(v.Slices) } if len(v.SpatialAdaptiveQuantization) > 0 { @@ -3140,14 +2985,14 @@ func awsRestjson1_serializeDocumentAvcIntraSettings(v *types.AvcIntraSettings, v ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } if len(v.InterlaceMode) > 0 { @@ -3182,9 +3027,9 @@ func awsRestjson1_serializeDocumentBurninDestinationSettings(v *types.BurninDest ok.String(string(v.BackgroundColor)) } - if v.BackgroundOpacity != nil { + if v.BackgroundOpacity != 0 { ok := object.Key("backgroundOpacity") - ok.Integer(*v.BackgroundOpacity) + ok.Integer(v.BackgroundOpacity) } if len(v.FontColor) > 0 { @@ -3192,14 +3037,14 @@ func awsRestjson1_serializeDocumentBurninDestinationSettings(v *types.BurninDest ok.String(string(v.FontColor)) } - if v.FontOpacity != nil { + if v.FontOpacity != 0 { ok := object.Key("fontOpacity") - ok.Integer(*v.FontOpacity) + ok.Integer(v.FontOpacity) } - if v.FontResolution != nil { + if v.FontResolution != 0 { ok := object.Key("fontResolution") - ok.Integer(*v.FontResolution) + ok.Integer(v.FontResolution) } if len(v.FontScript) > 0 { @@ -3207,9 +3052,9 @@ func awsRestjson1_serializeDocumentBurninDestinationSettings(v *types.BurninDest ok.String(string(v.FontScript)) } - if v.FontSize != nil { + if v.FontSize != 0 { ok := object.Key("fontSize") - ok.Integer(*v.FontSize) + ok.Integer(v.FontSize) } if len(v.OutlineColor) > 0 { @@ -3217,9 +3062,9 @@ func awsRestjson1_serializeDocumentBurninDestinationSettings(v *types.BurninDest ok.String(string(v.OutlineColor)) } - if v.OutlineSize != nil { + if v.OutlineSize != 0 { ok := object.Key("outlineSize") - ok.Integer(*v.OutlineSize) + ok.Integer(v.OutlineSize) } if len(v.ShadowColor) > 0 { @@ -3227,19 +3072,19 @@ func awsRestjson1_serializeDocumentBurninDestinationSettings(v *types.BurninDest ok.String(string(v.ShadowColor)) } - if v.ShadowOpacity != nil { + if v.ShadowOpacity != 0 { ok := object.Key("shadowOpacity") - ok.Integer(*v.ShadowOpacity) + ok.Integer(v.ShadowOpacity) } - if v.ShadowXOffset != nil { + if v.ShadowXOffset != 0 { ok := object.Key("shadowXOffset") - ok.Integer(*v.ShadowXOffset) + ok.Integer(v.ShadowXOffset) } - if v.ShadowYOffset != nil { + if v.ShadowYOffset != 0 { ok := object.Key("shadowYOffset") - ok.Integer(*v.ShadowYOffset) + ok.Integer(v.ShadowYOffset) } if len(v.TeletextSpacing) > 0 { @@ -3247,14 +3092,14 @@ func awsRestjson1_serializeDocumentBurninDestinationSettings(v *types.BurninDest ok.String(string(v.TeletextSpacing)) } - if v.XPosition != nil { + if v.XPosition != 0 { ok := object.Key("xPosition") - ok.Integer(*v.XPosition) + ok.Integer(v.XPosition) } - if v.YPosition != nil { + if v.YPosition != 0 { ok := object.Key("yPosition") - ok.Integer(*v.YPosition) + ok.Integer(v.YPosition) } return nil @@ -3412,14 +3257,14 @@ func awsRestjson1_serializeDocumentCaptionSourceFramerate(v *types.CaptionSource object := value.Object() defer object.Close() - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } return nil @@ -3598,9 +3443,9 @@ func awsRestjson1_serializeDocumentCmafGroupSettings(v *types.CmafGroupSettings, } } - if v.FragmentLength != nil { + if v.FragmentLength != 0 { ok := object.Key("fragmentLength") - ok.Integer(*v.FragmentLength) + ok.Integer(v.FragmentLength) } if len(v.ManifestCompression) > 0 { @@ -3613,14 +3458,14 @@ func awsRestjson1_serializeDocumentCmafGroupSettings(v *types.CmafGroupSettings, ok.String(string(v.ManifestDurationFormat)) } - if v.MinBufferTime != nil { + if v.MinBufferTime != 0 { ok := object.Key("minBufferTime") - ok.Integer(*v.MinBufferTime) + ok.Integer(v.MinBufferTime) } - if v.MinFinalSegmentLength != nil { + if v.MinFinalSegmentLength != 0 { ok := object.Key("minFinalSegmentLength") - ok.Double(*v.MinFinalSegmentLength) + ok.Double(v.MinFinalSegmentLength) } if len(v.MpdProfile) > 0 { @@ -3633,9 +3478,9 @@ func awsRestjson1_serializeDocumentCmafGroupSettings(v *types.CmafGroupSettings, ok.String(string(v.SegmentControl)) } - if v.SegmentLength != nil { + if v.SegmentLength != 0 { ok := object.Key("segmentLength") - ok.Integer(*v.SegmentLength) + ok.Integer(v.SegmentLength) } if len(v.StreamInfResolution) > 0 { @@ -3682,9 +3527,9 @@ func awsRestjson1_serializeDocumentColorCorrector(v *types.ColorCorrector, value object := value.Object() defer object.Close() - if v.Brightness != nil { + if v.Brightness != 0 { ok := object.Key("brightness") - ok.Integer(*v.Brightness) + ok.Integer(v.Brightness) } if len(v.ColorSpaceConversion) > 0 { @@ -3692,9 +3537,9 @@ func awsRestjson1_serializeDocumentColorCorrector(v *types.ColorCorrector, value ok.String(string(v.ColorSpaceConversion)) } - if v.Contrast != nil { + if v.Contrast != 0 { ok := object.Key("contrast") - ok.Integer(*v.Contrast) + ok.Integer(v.Contrast) } if v.Hdr10Metadata != nil { @@ -3704,14 +3549,14 @@ func awsRestjson1_serializeDocumentColorCorrector(v *types.ColorCorrector, value } } - if v.Hue != nil { + if v.Hue != 0 { ok := object.Key("hue") - ok.Integer(*v.Hue) + ok.Integer(v.Hue) } - if v.Saturation != nil { + if v.Saturation != 0 { ok := object.Key("saturation") - ok.Integer(*v.Saturation) + ok.Integer(v.Saturation) } return nil @@ -3858,9 +3703,9 @@ func awsRestjson1_serializeDocumentDashIsoGroupSettings(v *types.DashIsoGroupSet } } - if v.FragmentLength != nil { + if v.FragmentLength != 0 { ok := object.Key("fragmentLength") - ok.Integer(*v.FragmentLength) + ok.Integer(v.FragmentLength) } if len(v.HbbtvCompliance) > 0 { @@ -3868,9 +3713,9 @@ func awsRestjson1_serializeDocumentDashIsoGroupSettings(v *types.DashIsoGroupSet ok.String(string(v.HbbtvCompliance)) } - if v.MinBufferTime != nil { + if v.MinBufferTime != 0 { ok := object.Key("minBufferTime") - ok.Integer(*v.MinBufferTime) + ok.Integer(v.MinBufferTime) } if len(v.MpdProfile) > 0 { @@ -3883,9 +3728,9 @@ func awsRestjson1_serializeDocumentDashIsoGroupSettings(v *types.DashIsoGroupSet ok.String(string(v.SegmentControl)) } - if v.SegmentLength != nil { + if v.SegmentLength != 0 { ok := object.Key("segmentLength") - ok.Integer(*v.SegmentLength) + ok.Integer(v.SegmentLength) } if len(v.WriteSegmentTimelineInRepresentation) > 0 { @@ -3960,14 +3805,14 @@ func awsRestjson1_serializeDocumentDolbyVisionLevel6Metadata(v *types.DolbyVisio object := value.Object() defer object.Close() - if v.MaxCll != nil { + if v.MaxCll != 0 { ok := object.Key("maxCll") - ok.Integer(*v.MaxCll) + ok.Integer(v.MaxCll) } - if v.MaxFall != nil { + if v.MaxFall != 0 { ok := object.Key("maxFall") - ok.Integer(*v.MaxFall) + ok.Integer(v.MaxFall) } return nil @@ -3977,9 +3822,9 @@ func awsRestjson1_serializeDocumentDvbNitSettings(v *types.DvbNitSettings, value object := value.Object() defer object.Close() - if v.NetworkId != nil { + if v.NetworkId != 0 { ok := object.Key("networkId") - ok.Integer(*v.NetworkId) + ok.Integer(v.NetworkId) } if v.NetworkName != nil { @@ -3987,9 +3832,9 @@ func awsRestjson1_serializeDocumentDvbNitSettings(v *types.DvbNitSettings, value ok.String(*v.NetworkName) } - if v.NitInterval != nil { + if v.NitInterval != 0 { ok := object.Key("nitInterval") - ok.Integer(*v.NitInterval) + ok.Integer(v.NitInterval) } return nil @@ -4004,9 +3849,9 @@ func awsRestjson1_serializeDocumentDvbSdtSettings(v *types.DvbSdtSettings, value ok.String(string(v.OutputSdt)) } - if v.SdtInterval != nil { + if v.SdtInterval != 0 { ok := object.Key("sdtInterval") - ok.Integer(*v.SdtInterval) + ok.Integer(v.SdtInterval) } if v.ServiceName != nil { @@ -4036,9 +3881,9 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.BackgroundColor)) } - if v.BackgroundOpacity != nil { + if v.BackgroundOpacity != 0 { ok := object.Key("backgroundOpacity") - ok.Integer(*v.BackgroundOpacity) + ok.Integer(v.BackgroundOpacity) } if len(v.FontColor) > 0 { @@ -4046,14 +3891,14 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.FontColor)) } - if v.FontOpacity != nil { + if v.FontOpacity != 0 { ok := object.Key("fontOpacity") - ok.Integer(*v.FontOpacity) + ok.Integer(v.FontOpacity) } - if v.FontResolution != nil { + if v.FontResolution != 0 { ok := object.Key("fontResolution") - ok.Integer(*v.FontResolution) + ok.Integer(v.FontResolution) } if len(v.FontScript) > 0 { @@ -4061,9 +3906,9 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.FontScript)) } - if v.FontSize != nil { + if v.FontSize != 0 { ok := object.Key("fontSize") - ok.Integer(*v.FontSize) + ok.Integer(v.FontSize) } if len(v.OutlineColor) > 0 { @@ -4071,9 +3916,9 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.OutlineColor)) } - if v.OutlineSize != nil { + if v.OutlineSize != 0 { ok := object.Key("outlineSize") - ok.Integer(*v.OutlineSize) + ok.Integer(v.OutlineSize) } if len(v.ShadowColor) > 0 { @@ -4081,19 +3926,19 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.ShadowColor)) } - if v.ShadowOpacity != nil { + if v.ShadowOpacity != 0 { ok := object.Key("shadowOpacity") - ok.Integer(*v.ShadowOpacity) + ok.Integer(v.ShadowOpacity) } - if v.ShadowXOffset != nil { + if v.ShadowXOffset != 0 { ok := object.Key("shadowXOffset") - ok.Integer(*v.ShadowXOffset) + ok.Integer(v.ShadowXOffset) } - if v.ShadowYOffset != nil { + if v.ShadowYOffset != 0 { ok := object.Key("shadowYOffset") - ok.Integer(*v.ShadowYOffset) + ok.Integer(v.ShadowYOffset) } if len(v.SubtitlingType) > 0 { @@ -4106,14 +3951,14 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.TeletextSpacing)) } - if v.XPosition != nil { + if v.XPosition != 0 { ok := object.Key("xPosition") - ok.Integer(*v.XPosition) + ok.Integer(v.XPosition) } - if v.YPosition != nil { + if v.YPosition != 0 { ok := object.Key("yPosition") - ok.Integer(*v.YPosition) + ok.Integer(v.YPosition) } return nil @@ -4123,9 +3968,9 @@ func awsRestjson1_serializeDocumentDvbSubSourceSettings(v *types.DvbSubSourceSet object := value.Object() defer object.Close() - if v.Pid != nil { + if v.Pid != 0 { ok := object.Key("pid") - ok.Integer(*v.Pid) + ok.Integer(v.Pid) } return nil @@ -4135,9 +3980,9 @@ func awsRestjson1_serializeDocumentDvbTdtSettings(v *types.DvbTdtSettings, value object := value.Object() defer object.Close() - if v.TdtInterval != nil { + if v.TdtInterval != 0 { ok := object.Key("tdtInterval") - ok.Integer(*v.TdtInterval) + ok.Integer(v.TdtInterval) } return nil @@ -4147,9 +3992,9 @@ func awsRestjson1_serializeDocumentEac3AtmosSettings(v *types.Eac3AtmosSettings, object := value.Object() defer object.Close() - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } if len(v.BitstreamMode) > 0 { @@ -4177,24 +4022,24 @@ func awsRestjson1_serializeDocumentEac3AtmosSettings(v *types.Eac3AtmosSettings, ok.String(string(v.DynamicRangeCompressionRf)) } - if v.LoRoCenterMixLevel != nil { + if v.LoRoCenterMixLevel != 0 { ok := object.Key("loRoCenterMixLevel") - ok.Double(*v.LoRoCenterMixLevel) + ok.Double(v.LoRoCenterMixLevel) } - if v.LoRoSurroundMixLevel != nil { + if v.LoRoSurroundMixLevel != 0 { ok := object.Key("loRoSurroundMixLevel") - ok.Double(*v.LoRoSurroundMixLevel) + ok.Double(v.LoRoSurroundMixLevel) } - if v.LtRtCenterMixLevel != nil { + if v.LtRtCenterMixLevel != 0 { ok := object.Key("ltRtCenterMixLevel") - ok.Double(*v.LtRtCenterMixLevel) + ok.Double(v.LtRtCenterMixLevel) } - if v.LtRtSurroundMixLevel != nil { + if v.LtRtSurroundMixLevel != 0 { ok := object.Key("ltRtSurroundMixLevel") - ok.Double(*v.LtRtSurroundMixLevel) + ok.Double(v.LtRtSurroundMixLevel) } if len(v.MeteringMode) > 0 { @@ -4202,14 +4047,14 @@ func awsRestjson1_serializeDocumentEac3AtmosSettings(v *types.Eac3AtmosSettings, ok.String(string(v.MeteringMode)) } - if v.SampleRate != nil { + if v.SampleRate != 0 { ok := object.Key("sampleRate") - ok.Integer(*v.SampleRate) + ok.Integer(v.SampleRate) } - if v.SpeechThreshold != nil { + if v.SpeechThreshold != 0 { ok := object.Key("speechThreshold") - ok.Integer(*v.SpeechThreshold) + ok.Integer(v.SpeechThreshold) } if len(v.StereoDownmix) > 0 { @@ -4234,9 +4079,9 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.AttenuationControl)) } - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } if len(v.BitstreamMode) > 0 { @@ -4254,9 +4099,9 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.DcFilter)) } - if v.Dialnorm != nil { + if v.Dialnorm != 0 { ok := object.Key("dialnorm") - ok.Integer(*v.Dialnorm) + ok.Integer(v.Dialnorm) } if len(v.DynamicRangeCompressionLine) > 0 { @@ -4279,24 +4124,24 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.LfeFilter)) } - if v.LoRoCenterMixLevel != nil { + if v.LoRoCenterMixLevel != 0 { ok := object.Key("loRoCenterMixLevel") - ok.Double(*v.LoRoCenterMixLevel) + ok.Double(v.LoRoCenterMixLevel) } - if v.LoRoSurroundMixLevel != nil { + if v.LoRoSurroundMixLevel != 0 { ok := object.Key("loRoSurroundMixLevel") - ok.Double(*v.LoRoSurroundMixLevel) + ok.Double(v.LoRoSurroundMixLevel) } - if v.LtRtCenterMixLevel != nil { + if v.LtRtCenterMixLevel != 0 { ok := object.Key("ltRtCenterMixLevel") - ok.Double(*v.LtRtCenterMixLevel) + ok.Double(v.LtRtCenterMixLevel) } - if v.LtRtSurroundMixLevel != nil { + if v.LtRtSurroundMixLevel != 0 { ok := object.Key("ltRtSurroundMixLevel") - ok.Double(*v.LtRtSurroundMixLevel) + ok.Double(v.LtRtSurroundMixLevel) } if len(v.MetadataControl) > 0 { @@ -4314,9 +4159,9 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.PhaseControl)) } - if v.SampleRate != nil { + if v.SampleRate != 0 { ok := object.Key("sampleRate") - ok.Integer(*v.SampleRate) + ok.Integer(v.SampleRate) } if len(v.StereoDownmix) > 0 { @@ -4341,14 +4186,14 @@ func awsRestjson1_serializeDocumentEmbeddedDestinationSettings(v *types.Embedded object := value.Object() defer object.Close() - if v.Destination608ChannelNumber != nil { + if v.Destination608ChannelNumber != 0 { ok := object.Key("destination608ChannelNumber") - ok.Integer(*v.Destination608ChannelNumber) + ok.Integer(v.Destination608ChannelNumber) } - if v.Destination708ServiceNumber != nil { + if v.Destination708ServiceNumber != 0 { ok := object.Key("destination708ServiceNumber") - ok.Integer(*v.Destination708ServiceNumber) + ok.Integer(v.Destination708ServiceNumber) } return nil @@ -4363,14 +4208,14 @@ func awsRestjson1_serializeDocumentEmbeddedSourceSettings(v *types.EmbeddedSourc ok.String(string(v.Convert608To708)) } - if v.Source608ChannelNumber != nil { + if v.Source608ChannelNumber != 0 { ok := object.Key("source608ChannelNumber") - ok.Integer(*v.Source608ChannelNumber) + ok.Integer(v.Source608ChannelNumber) } - if v.Source608TrackNumber != nil { + if v.Source608TrackNumber != 0 { ok := object.Key("source608TrackNumber") - ok.Integer(*v.Source608TrackNumber) + ok.Integer(v.Source608TrackNumber) } if len(v.TerminateCaptions) > 0 { @@ -4404,9 +4249,9 @@ func awsRestjson1_serializeDocumentEsamSettings(v *types.EsamSettings, value smi } } - if v.ResponseSignalPreroll != nil { + if v.ResponseSignalPreroll != 0 { ok := object.Key("responseSignalPreroll") - ok.Integer(*v.ResponseSignalPreroll) + ok.Integer(v.ResponseSignalPreroll) } if v.SignalProcessingNotification != nil { @@ -4483,9 +4328,9 @@ func awsRestjson1_serializeDocumentFileSourceSettings(v *types.FileSourceSetting ok.String(*v.SourceFile) } - if v.TimeDelta != nil { + if v.TimeDelta != 0 { ok := object.Key("timeDelta") - ok.Integer(*v.TimeDelta) + ok.Integer(v.TimeDelta) } return nil @@ -4495,24 +4340,24 @@ func awsRestjson1_serializeDocumentFrameCaptureSettings(v *types.FrameCaptureSet object := value.Object() defer object.Close() - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } - if v.MaxCaptures != nil { + if v.MaxCaptures != 0 { ok := object.Key("maxCaptures") - ok.Integer(*v.MaxCaptures) + ok.Integer(v.MaxCaptures) } - if v.Quality != nil { + if v.Quality != 0 { ok := object.Key("quality") - ok.Integer(*v.Quality) + ok.Integer(v.Quality) } return nil @@ -4522,19 +4367,19 @@ func awsRestjson1_serializeDocumentH264QvbrSettings(v *types.H264QvbrSettings, v object := value.Object() defer object.Close() - if v.MaxAverageBitrate != nil { + if v.MaxAverageBitrate != 0 { ok := object.Key("maxAverageBitrate") - ok.Integer(*v.MaxAverageBitrate) + ok.Integer(v.MaxAverageBitrate) } - if v.QvbrQualityLevel != nil { + if v.QvbrQualityLevel != 0 { ok := object.Key("qvbrQualityLevel") - ok.Integer(*v.QvbrQualityLevel) + ok.Integer(v.QvbrQualityLevel) } - if v.QvbrQualityLevelFineTune != nil { + if v.QvbrQualityLevelFineTune != 0 { ok := object.Key("qvbrQualityLevelFineTune") - ok.Double(*v.QvbrQualityLevelFineTune) + ok.Double(v.QvbrQualityLevelFineTune) } return nil @@ -4549,9 +4394,9 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.AdaptiveQuantization)) } - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } if len(v.CodecLevel) > 0 { @@ -4594,14 +4439,14 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } if len(v.GopBReference) > 0 { @@ -4609,14 +4454,14 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.GopBReference)) } - if v.GopClosedCadence != nil { + if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") - ok.Integer(*v.GopClosedCadence) + ok.Integer(v.GopClosedCadence) } - if v.GopSize != nil { + if v.GopSize != 0 { ok := object.Key("gopSize") - ok.Double(*v.GopSize) + ok.Double(v.GopSize) } if len(v.GopSizeUnits) > 0 { @@ -4624,14 +4469,14 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.GopSizeUnits)) } - if v.HrdBufferInitialFillPercentage != nil { + if v.HrdBufferInitialFillPercentage != 0 { ok := object.Key("hrdBufferInitialFillPercentage") - ok.Integer(*v.HrdBufferInitialFillPercentage) + ok.Integer(v.HrdBufferInitialFillPercentage) } - if v.HrdBufferSize != nil { + if v.HrdBufferSize != 0 { ok := object.Key("hrdBufferSize") - ok.Integer(*v.HrdBufferSize) + ok.Integer(v.HrdBufferSize) } if len(v.InterlaceMode) > 0 { @@ -4639,24 +4484,24 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.InterlaceMode)) } - if v.MaxBitrate != nil { + if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") - ok.Integer(*v.MaxBitrate) + ok.Integer(v.MaxBitrate) } - if v.MinIInterval != nil { + if v.MinIInterval != 0 { ok := object.Key("minIInterval") - ok.Integer(*v.MinIInterval) + ok.Integer(v.MinIInterval) } - if v.NumberBFramesBetweenReferenceFrames != nil { + if v.NumberBFramesBetweenReferenceFrames != 0 { ok := object.Key("numberBFramesBetweenReferenceFrames") - ok.Integer(*v.NumberBFramesBetweenReferenceFrames) + ok.Integer(v.NumberBFramesBetweenReferenceFrames) } - if v.NumberReferenceFrames != nil { + if v.NumberReferenceFrames != 0 { ok := object.Key("numberReferenceFrames") - ok.Integer(*v.NumberReferenceFrames) + ok.Integer(v.NumberReferenceFrames) } if len(v.ParControl) > 0 { @@ -4664,14 +4509,14 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.ParControl)) } - if v.ParDenominator != nil { + if v.ParDenominator != 0 { ok := object.Key("parDenominator") - ok.Integer(*v.ParDenominator) + ok.Integer(v.ParDenominator) } - if v.ParNumerator != nil { + if v.ParNumerator != 0 { ok := object.Key("parNumerator") - ok.Integer(*v.ParNumerator) + ok.Integer(v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { @@ -4701,9 +4546,9 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.SceneChangeDetect)) } - if v.Slices != nil { + if v.Slices != 0 { ok := object.Key("slices") - ok.Integer(*v.Slices) + ok.Integer(v.Slices) } if len(v.SlowPal) > 0 { @@ -4711,9 +4556,9 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.SlowPal)) } - if v.Softness != nil { + if v.Softness != 0 { ok := object.Key("softness") - ok.Integer(*v.Softness) + ok.Integer(v.Softness) } if len(v.SpatialAdaptiveQuantization) > 0 { @@ -4748,19 +4593,19 @@ func awsRestjson1_serializeDocumentH265QvbrSettings(v *types.H265QvbrSettings, v object := value.Object() defer object.Close() - if v.MaxAverageBitrate != nil { + if v.MaxAverageBitrate != 0 { ok := object.Key("maxAverageBitrate") - ok.Integer(*v.MaxAverageBitrate) + ok.Integer(v.MaxAverageBitrate) } - if v.QvbrQualityLevel != nil { + if v.QvbrQualityLevel != 0 { ok := object.Key("qvbrQualityLevel") - ok.Integer(*v.QvbrQualityLevel) + ok.Integer(v.QvbrQualityLevel) } - if v.QvbrQualityLevelFineTune != nil { + if v.QvbrQualityLevelFineTune != 0 { ok := object.Key("qvbrQualityLevelFineTune") - ok.Double(*v.QvbrQualityLevelFineTune) + ok.Double(v.QvbrQualityLevelFineTune) } return nil @@ -4780,9 +4625,9 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.AlternateTransferFunctionSei)) } - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } if len(v.CodecLevel) > 0 { @@ -4815,14 +4660,14 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } if len(v.GopBReference) > 0 { @@ -4830,14 +4675,14 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.GopBReference)) } - if v.GopClosedCadence != nil { + if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") - ok.Integer(*v.GopClosedCadence) + ok.Integer(v.GopClosedCadence) } - if v.GopSize != nil { + if v.GopSize != 0 { ok := object.Key("gopSize") - ok.Double(*v.GopSize) + ok.Double(v.GopSize) } if len(v.GopSizeUnits) > 0 { @@ -4845,14 +4690,14 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.GopSizeUnits)) } - if v.HrdBufferInitialFillPercentage != nil { + if v.HrdBufferInitialFillPercentage != 0 { ok := object.Key("hrdBufferInitialFillPercentage") - ok.Integer(*v.HrdBufferInitialFillPercentage) + ok.Integer(v.HrdBufferInitialFillPercentage) } - if v.HrdBufferSize != nil { + if v.HrdBufferSize != 0 { ok := object.Key("hrdBufferSize") - ok.Integer(*v.HrdBufferSize) + ok.Integer(v.HrdBufferSize) } if len(v.InterlaceMode) > 0 { @@ -4860,24 +4705,24 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.InterlaceMode)) } - if v.MaxBitrate != nil { + if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") - ok.Integer(*v.MaxBitrate) + ok.Integer(v.MaxBitrate) } - if v.MinIInterval != nil { + if v.MinIInterval != 0 { ok := object.Key("minIInterval") - ok.Integer(*v.MinIInterval) + ok.Integer(v.MinIInterval) } - if v.NumberBFramesBetweenReferenceFrames != nil { + if v.NumberBFramesBetweenReferenceFrames != 0 { ok := object.Key("numberBFramesBetweenReferenceFrames") - ok.Integer(*v.NumberBFramesBetweenReferenceFrames) + ok.Integer(v.NumberBFramesBetweenReferenceFrames) } - if v.NumberReferenceFrames != nil { + if v.NumberReferenceFrames != 0 { ok := object.Key("numberReferenceFrames") - ok.Integer(*v.NumberReferenceFrames) + ok.Integer(v.NumberReferenceFrames) } if len(v.ParControl) > 0 { @@ -4885,14 +4730,14 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.ParControl)) } - if v.ParDenominator != nil { + if v.ParDenominator != 0 { ok := object.Key("parDenominator") - ok.Integer(*v.ParDenominator) + ok.Integer(v.ParDenominator) } - if v.ParNumerator != nil { + if v.ParNumerator != 0 { ok := object.Key("parNumerator") - ok.Integer(*v.ParNumerator) + ok.Integer(v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { @@ -4922,9 +4767,9 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.SceneChangeDetect)) } - if v.Slices != nil { + if v.Slices != 0 { ok := object.Key("slices") - ok.Integer(*v.Slices) + ok.Integer(v.Slices) } if len(v.SlowPal) > 0 { @@ -4974,64 +4819,64 @@ func awsRestjson1_serializeDocumentHdr10Metadata(v *types.Hdr10Metadata, value s object := value.Object() defer object.Close() - if v.BluePrimaryX != nil { + if v.BluePrimaryX != 0 { ok := object.Key("bluePrimaryX") - ok.Integer(*v.BluePrimaryX) + ok.Integer(v.BluePrimaryX) } - if v.BluePrimaryY != nil { + if v.BluePrimaryY != 0 { ok := object.Key("bluePrimaryY") - ok.Integer(*v.BluePrimaryY) + ok.Integer(v.BluePrimaryY) } - if v.GreenPrimaryX != nil { + if v.GreenPrimaryX != 0 { ok := object.Key("greenPrimaryX") - ok.Integer(*v.GreenPrimaryX) + ok.Integer(v.GreenPrimaryX) } - if v.GreenPrimaryY != nil { + if v.GreenPrimaryY != 0 { ok := object.Key("greenPrimaryY") - ok.Integer(*v.GreenPrimaryY) + ok.Integer(v.GreenPrimaryY) } - if v.MaxContentLightLevel != nil { + if v.MaxContentLightLevel != 0 { ok := object.Key("maxContentLightLevel") - ok.Integer(*v.MaxContentLightLevel) + ok.Integer(v.MaxContentLightLevel) } - if v.MaxFrameAverageLightLevel != nil { + if v.MaxFrameAverageLightLevel != 0 { ok := object.Key("maxFrameAverageLightLevel") - ok.Integer(*v.MaxFrameAverageLightLevel) + ok.Integer(v.MaxFrameAverageLightLevel) } - if v.MaxLuminance != nil { + if v.MaxLuminance != 0 { ok := object.Key("maxLuminance") - ok.Integer(*v.MaxLuminance) + ok.Integer(v.MaxLuminance) } - if v.MinLuminance != nil { + if v.MinLuminance != 0 { ok := object.Key("minLuminance") - ok.Integer(*v.MinLuminance) + ok.Integer(v.MinLuminance) } - if v.RedPrimaryX != nil { + if v.RedPrimaryX != 0 { ok := object.Key("redPrimaryX") - ok.Integer(*v.RedPrimaryX) + ok.Integer(v.RedPrimaryX) } - if v.RedPrimaryY != nil { + if v.RedPrimaryY != 0 { ok := object.Key("redPrimaryY") - ok.Integer(*v.RedPrimaryY) + ok.Integer(v.RedPrimaryY) } - if v.WhitePointX != nil { + if v.WhitePointX != 0 { ok := object.Key("whitePointX") - ok.Integer(*v.WhitePointX) + ok.Integer(v.WhitePointX) } - if v.WhitePointY != nil { + if v.WhitePointY != 0 { ok := object.Key("whitePointY") - ok.Integer(*v.WhitePointY) + ok.Integer(v.WhitePointY) } return nil @@ -5060,9 +4905,9 @@ func awsRestjson1_serializeDocumentHlsCaptionLanguageMapping(v *types.HlsCaption object := value.Object() defer object.Close() - if v.CaptionChannel != nil { + if v.CaptionChannel != 0 { ok := object.Key("captionChannel") - ok.Integer(*v.CaptionChannel) + ok.Integer(v.CaptionChannel) } if v.CustomLanguageCode != nil { @@ -5213,14 +5058,14 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.ManifestDurationFormat)) } - if v.MinFinalSegmentLength != nil { + if v.MinFinalSegmentLength != 0 { ok := object.Key("minFinalSegmentLength") - ok.Double(*v.MinFinalSegmentLength) + ok.Double(v.MinFinalSegmentLength) } - if v.MinSegmentLength != nil { + if v.MinSegmentLength != 0 { ok := object.Key("minSegmentLength") - ok.Integer(*v.MinSegmentLength) + ok.Integer(v.MinSegmentLength) } if len(v.OutputSelection) > 0 { @@ -5233,9 +5078,9 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.ProgramDateTime)) } - if v.ProgramDateTimePeriod != nil { + if v.ProgramDateTimePeriod != 0 { ok := object.Key("programDateTimePeriod") - ok.Integer(*v.ProgramDateTimePeriod) + ok.Integer(v.ProgramDateTimePeriod) } if len(v.SegmentControl) > 0 { @@ -5243,14 +5088,14 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.SegmentControl)) } - if v.SegmentLength != nil { + if v.SegmentLength != 0 { ok := object.Key("segmentLength") - ok.Integer(*v.SegmentLength) + ok.Integer(v.SegmentLength) } - if v.SegmentsPerSubdirectory != nil { + if v.SegmentsPerSubdirectory != 0 { ok := object.Key("segmentsPerSubdirectory") - ok.Integer(*v.SegmentsPerSubdirectory) + ok.Integer(v.SegmentsPerSubdirectory) } if len(v.StreamInfResolution) > 0 { @@ -5263,14 +5108,14 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.TimedMetadataId3Frame)) } - if v.TimedMetadataId3Period != nil { + if v.TimedMetadataId3Period != 0 { ok := object.Key("timedMetadataId3Period") - ok.Integer(*v.TimedMetadataId3Period) + ok.Integer(v.TimedMetadataId3Period) } - if v.TimestampDeltaMilliseconds != nil { + if v.TimestampDeltaMilliseconds != 0 { ok := object.Key("timestampDeltaMilliseconds") - ok.Integer(*v.TimestampDeltaMilliseconds) + ok.Integer(v.TimestampDeltaMilliseconds) } return nil @@ -5317,9 +5162,9 @@ func awsRestjson1_serializeDocumentHopDestination(v *types.HopDestination, value object := value.Object() defer object.Close() - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } if v.Queue != nil { @@ -5327,9 +5172,9 @@ func awsRestjson1_serializeDocumentHopDestination(v *types.HopDestination, value ok.String(*v.Queue) } - if v.WaitMinutes != nil { + if v.WaitMinutes != 0 { ok := object.Key("waitMinutes") - ok.Integer(*v.WaitMinutes) + ok.Integer(v.WaitMinutes) } return nil @@ -5437,9 +5282,9 @@ func awsRestjson1_serializeDocumentInput(v *types.Input, value smithyjson.Value) ok.String(string(v.FilterEnable)) } - if v.FilterStrength != nil { + if v.FilterStrength != 0 { ok := object.Key("filterStrength") - ok.Integer(*v.FilterStrength) + ok.Integer(v.FilterStrength) } if v.ImageInserter != nil { @@ -5468,9 +5313,9 @@ func awsRestjson1_serializeDocumentInput(v *types.Input, value smithyjson.Value) } } - if v.ProgramNumber != nil { + if v.ProgramNumber != 0 { ok := object.Key("programNumber") - ok.Integer(*v.ProgramNumber) + ok.Integer(v.ProgramNumber) } if len(v.PsiControl) > 0 { @@ -5596,9 +5441,9 @@ func awsRestjson1_serializeDocumentInputTemplate(v *types.InputTemplate, value s ok.String(string(v.FilterEnable)) } - if v.FilterStrength != nil { + if v.FilterStrength != 0 { ok := object.Key("filterStrength") - ok.Integer(*v.FilterStrength) + ok.Integer(v.FilterStrength) } if v.ImageInserter != nil { @@ -5627,9 +5472,9 @@ func awsRestjson1_serializeDocumentInputTemplate(v *types.InputTemplate, value s } } - if v.ProgramNumber != nil { + if v.ProgramNumber != 0 { ok := object.Key("programNumber") - ok.Integer(*v.ProgramNumber) + ok.Integer(v.ProgramNumber) } if len(v.PsiControl) > 0 { @@ -5661,24 +5506,24 @@ func awsRestjson1_serializeDocumentInsertableImage(v *types.InsertableImage, val object := value.Object() defer object.Close() - if v.Duration != nil { + if v.Duration != 0 { ok := object.Key("duration") - ok.Integer(*v.Duration) + ok.Integer(v.Duration) } - if v.FadeIn != nil { + if v.FadeIn != 0 { ok := object.Key("fadeIn") - ok.Integer(*v.FadeIn) + ok.Integer(v.FadeIn) } - if v.FadeOut != nil { + if v.FadeOut != 0 { ok := object.Key("fadeOut") - ok.Integer(*v.FadeOut) + ok.Integer(v.FadeOut) } - if v.Height != nil { + if v.Height != 0 { ok := object.Key("height") - ok.Integer(*v.Height) + ok.Integer(v.Height) } if v.ImageInserterInput != nil { @@ -5686,24 +5531,24 @@ func awsRestjson1_serializeDocumentInsertableImage(v *types.InsertableImage, val ok.String(*v.ImageInserterInput) } - if v.ImageX != nil { + if v.ImageX != 0 { ok := object.Key("imageX") - ok.Integer(*v.ImageX) + ok.Integer(v.ImageX) } - if v.ImageY != nil { + if v.ImageY != 0 { ok := object.Key("imageY") - ok.Integer(*v.ImageY) + ok.Integer(v.ImageY) } - if v.Layer != nil { + if v.Layer != 0 { ok := object.Key("layer") - ok.Integer(*v.Layer) + ok.Integer(v.Layer) } - if v.Opacity != nil { + if v.Opacity != 0 { ok := object.Key("opacity") - ok.Integer(*v.Opacity) + ok.Integer(v.Opacity) } if v.StartTime != nil { @@ -5711,9 +5556,9 @@ func awsRestjson1_serializeDocumentInsertableImage(v *types.InsertableImage, val ok.String(*v.StartTime) } - if v.Width != nil { + if v.Width != 0 { ok := object.Key("width") - ok.Integer(*v.Width) + ok.Integer(v.Width) } return nil @@ -5723,9 +5568,9 @@ func awsRestjson1_serializeDocumentJobSettings(v *types.JobSettings, value smith object := value.Object() defer object.Close() - if v.AdAvailOffset != nil { + if v.AdAvailOffset != 0 { ok := object.Key("adAvailOffset") - ok.Integer(*v.AdAvailOffset) + ok.Integer(v.AdAvailOffset) } if v.AvailBlanking != nil { @@ -5798,9 +5643,9 @@ func awsRestjson1_serializeDocumentJobTemplateSettings(v *types.JobTemplateSetti object := value.Object() defer object.Close() - if v.AdAvailOffset != nil { + if v.AdAvailOffset != 0 { ok := object.Key("adAvailOffset") - ok.Integer(*v.AdAvailOffset) + ok.Integer(v.AdAvailOffset) } if v.AvailBlanking != nil { @@ -5873,9 +5718,9 @@ func awsRestjson1_serializeDocumentM2tsScte35Esam(v *types.M2tsScte35Esam, value object := value.Object() defer object.Close() - if v.Scte35EsamPid != nil { + if v.Scte35EsamPid != 0 { ok := object.Key("scte35EsamPid") - ok.Integer(*v.Scte35EsamPid) + ok.Integer(v.Scte35EsamPid) } return nil @@ -5890,9 +5735,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.AudioBufferModel)) } - if v.AudioFramesPerPes != nil { + if v.AudioFramesPerPes != 0 { ok := object.Key("audioFramesPerPes") - ok.Integer(*v.AudioFramesPerPes) + ok.Integer(v.AudioFramesPerPes) } if v.AudioPids != nil { @@ -5902,9 +5747,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi } } - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } if len(v.BufferModel) > 0 { @@ -5940,9 +5785,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi } } - if v.DvbTeletextPid != nil { + if v.DvbTeletextPid != 0 { ok := object.Key("dvbTeletextPid") - ok.Integer(*v.DvbTeletextPid) + ok.Integer(v.DvbTeletextPid) } if len(v.EbpAudioInterval) > 0 { @@ -5965,19 +5810,19 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.ForceTsVideoEbpOrder)) } - if v.FragmentTime != nil { + if v.FragmentTime != 0 { ok := object.Key("fragmentTime") - ok.Double(*v.FragmentTime) + ok.Double(v.FragmentTime) } - if v.MaxPcrInterval != nil { + if v.MaxPcrInterval != 0 { ok := object.Key("maxPcrInterval") - ok.Integer(*v.MaxPcrInterval) + ok.Integer(v.MaxPcrInterval) } - if v.MinEbpInterval != nil { + if v.MinEbpInterval != 0 { ok := object.Key("minEbpInterval") - ok.Integer(*v.MinEbpInterval) + ok.Integer(v.MinEbpInterval) } if len(v.NielsenId3) > 0 { @@ -5985,14 +5830,14 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.NielsenId3)) } - if v.NullPacketBitrate != nil { + if v.NullPacketBitrate != 0 { ok := object.Key("nullPacketBitrate") - ok.Double(*v.NullPacketBitrate) + ok.Double(v.NullPacketBitrate) } - if v.PatInterval != nil { + if v.PatInterval != 0 { ok := object.Key("patInterval") - ok.Integer(*v.PatInterval) + ok.Integer(v.PatInterval) } if len(v.PcrControl) > 0 { @@ -6000,29 +5845,29 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.PcrControl)) } - if v.PcrPid != nil { + if v.PcrPid != 0 { ok := object.Key("pcrPid") - ok.Integer(*v.PcrPid) + ok.Integer(v.PcrPid) } - if v.PmtInterval != nil { + if v.PmtInterval != 0 { ok := object.Key("pmtInterval") - ok.Integer(*v.PmtInterval) + ok.Integer(v.PmtInterval) } - if v.PmtPid != nil { + if v.PmtPid != 0 { ok := object.Key("pmtPid") - ok.Integer(*v.PmtPid) + ok.Integer(v.PmtPid) } - if v.PrivateMetadataPid != nil { + if v.PrivateMetadataPid != 0 { ok := object.Key("privateMetadataPid") - ok.Integer(*v.PrivateMetadataPid) + ok.Integer(v.PrivateMetadataPid) } - if v.ProgramNumber != nil { + if v.ProgramNumber != 0 { ok := object.Key("programNumber") - ok.Integer(*v.ProgramNumber) + ok.Integer(v.ProgramNumber) } if len(v.RateMode) > 0 { @@ -6037,9 +5882,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi } } - if v.Scte35Pid != nil { + if v.Scte35Pid != 0 { ok := object.Key("scte35Pid") - ok.Integer(*v.Scte35Pid) + ok.Integer(v.Scte35Pid) } if len(v.Scte35Source) > 0 { @@ -6057,24 +5902,24 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.SegmentationStyle)) } - if v.SegmentationTime != nil { + if v.SegmentationTime != 0 { ok := object.Key("segmentationTime") - ok.Double(*v.SegmentationTime) + ok.Double(v.SegmentationTime) } - if v.TimedMetadataPid != nil { + if v.TimedMetadataPid != 0 { ok := object.Key("timedMetadataPid") - ok.Integer(*v.TimedMetadataPid) + ok.Integer(v.TimedMetadataPid) } - if v.TransportStreamId != nil { + if v.TransportStreamId != 0 { ok := object.Key("transportStreamId") - ok.Integer(*v.TransportStreamId) + ok.Integer(v.TransportStreamId) } - if v.VideoPid != nil { + if v.VideoPid != 0 { ok := object.Key("videoPid") - ok.Integer(*v.VideoPid) + ok.Integer(v.VideoPid) } return nil @@ -6084,9 +5929,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi object := value.Object() defer object.Close() - if v.AudioFramesPerPes != nil { + if v.AudioFramesPerPes != 0 { ok := object.Key("audioFramesPerPes") - ok.Integer(*v.AudioFramesPerPes) + ok.Integer(v.AudioFramesPerPes) } if v.AudioPids != nil { @@ -6101,9 +5946,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(string(v.NielsenId3)) } - if v.PatInterval != nil { + if v.PatInterval != 0 { ok := object.Key("patInterval") - ok.Integer(*v.PatInterval) + ok.Integer(v.PatInterval) } if len(v.PcrControl) > 0 { @@ -6111,34 +5956,34 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(string(v.PcrControl)) } - if v.PcrPid != nil { + if v.PcrPid != 0 { ok := object.Key("pcrPid") - ok.Integer(*v.PcrPid) + ok.Integer(v.PcrPid) } - if v.PmtInterval != nil { + if v.PmtInterval != 0 { ok := object.Key("pmtInterval") - ok.Integer(*v.PmtInterval) + ok.Integer(v.PmtInterval) } - if v.PmtPid != nil { + if v.PmtPid != 0 { ok := object.Key("pmtPid") - ok.Integer(*v.PmtPid) + ok.Integer(v.PmtPid) } - if v.PrivateMetadataPid != nil { + if v.PrivateMetadataPid != 0 { ok := object.Key("privateMetadataPid") - ok.Integer(*v.PrivateMetadataPid) + ok.Integer(v.PrivateMetadataPid) } - if v.ProgramNumber != nil { + if v.ProgramNumber != 0 { ok := object.Key("programNumber") - ok.Integer(*v.ProgramNumber) + ok.Integer(v.ProgramNumber) } - if v.Scte35Pid != nil { + if v.Scte35Pid != 0 { ok := object.Key("scte35Pid") - ok.Integer(*v.Scte35Pid) + ok.Integer(v.Scte35Pid) } if len(v.Scte35Source) > 0 { @@ -6151,19 +5996,19 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(string(v.TimedMetadata)) } - if v.TimedMetadataPid != nil { + if v.TimedMetadataPid != 0 { ok := object.Key("timedMetadataPid") - ok.Integer(*v.TimedMetadataPid) + ok.Integer(v.TimedMetadataPid) } - if v.TransportStreamId != nil { + if v.TransportStreamId != 0 { ok := object.Key("transportStreamId") - ok.Integer(*v.TransportStreamId) + ok.Integer(v.TransportStreamId) } - if v.VideoPid != nil { + if v.VideoPid != 0 { ok := object.Key("videoPid") - ok.Integer(*v.VideoPid) + ok.Integer(v.VideoPid) } return nil @@ -6214,14 +6059,14 @@ func awsRestjson1_serializeDocumentMotionImageInsertionFramerate(v *types.Motion object := value.Object() defer object.Close() - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } return nil @@ -6231,14 +6076,14 @@ func awsRestjson1_serializeDocumentMotionImageInsertionOffset(v *types.MotionIma object := value.Object() defer object.Close() - if v.ImageX != nil { + if v.ImageX != 0 { ok := object.Key("imageX") - ok.Integer(*v.ImageX) + ok.Integer(v.ImageX) } - if v.ImageY != nil { + if v.ImageY != 0 { ok := object.Key("imageY") - ok.Integer(*v.ImageY) + ok.Integer(v.ImageY) } return nil @@ -6280,19 +6125,19 @@ func awsRestjson1_serializeDocumentMp2Settings(v *types.Mp2Settings, value smith object := value.Object() defer object.Close() - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } - if v.Channels != nil { + if v.Channels != 0 { ok := object.Key("channels") - ok.Integer(*v.Channels) + ok.Integer(v.Channels) } - if v.SampleRate != nil { + if v.SampleRate != 0 { ok := object.Key("sampleRate") - ok.Integer(*v.SampleRate) + ok.Integer(v.SampleRate) } return nil @@ -6302,14 +6147,14 @@ func awsRestjson1_serializeDocumentMp3Settings(v *types.Mp3Settings, value smith object := value.Object() defer object.Close() - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } - if v.Channels != nil { + if v.Channels != 0 { ok := object.Key("channels") - ok.Integer(*v.Channels) + ok.Integer(v.Channels) } if len(v.RateControlMode) > 0 { @@ -6317,14 +6162,14 @@ func awsRestjson1_serializeDocumentMp3Settings(v *types.Mp3Settings, value smith ok.String(string(v.RateControlMode)) } - if v.SampleRate != nil { + if v.SampleRate != 0 { ok := object.Key("sampleRate") - ok.Integer(*v.SampleRate) + ok.Integer(v.SampleRate) } - if v.VbrQuality != nil { + if v.VbrQuality != 0 { ok := object.Key("vbrQuality") - ok.Integer(*v.VbrQuality) + ok.Integer(v.VbrQuality) } return nil @@ -6339,9 +6184,9 @@ func awsRestjson1_serializeDocumentMp4Settings(v *types.Mp4Settings, value smith ok.String(string(v.CslgAtom)) } - if v.CttsVersion != nil { + if v.CttsVersion != 0 { ok := object.Key("cttsVersion") - ok.Integer(*v.CttsVersion) + ok.Integer(v.CttsVersion) } if len(v.FreeSpaceBox) > 0 { @@ -6393,9 +6238,9 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.AdaptiveQuantization)) } - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } if len(v.CodecLevel) > 0 { @@ -6423,24 +6268,24 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } - if v.GopClosedCadence != nil { + if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") - ok.Integer(*v.GopClosedCadence) + ok.Integer(v.GopClosedCadence) } - if v.GopSize != nil { + if v.GopSize != 0 { ok := object.Key("gopSize") - ok.Double(*v.GopSize) + ok.Double(v.GopSize) } if len(v.GopSizeUnits) > 0 { @@ -6448,14 +6293,14 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.GopSizeUnits)) } - if v.HrdBufferInitialFillPercentage != nil { + if v.HrdBufferInitialFillPercentage != 0 { ok := object.Key("hrdBufferInitialFillPercentage") - ok.Integer(*v.HrdBufferInitialFillPercentage) + ok.Integer(v.HrdBufferInitialFillPercentage) } - if v.HrdBufferSize != nil { + if v.HrdBufferSize != 0 { ok := object.Key("hrdBufferSize") - ok.Integer(*v.HrdBufferSize) + ok.Integer(v.HrdBufferSize) } if len(v.InterlaceMode) > 0 { @@ -6468,19 +6313,19 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.IntraDcPrecision)) } - if v.MaxBitrate != nil { + if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") - ok.Integer(*v.MaxBitrate) + ok.Integer(v.MaxBitrate) } - if v.MinIInterval != nil { + if v.MinIInterval != 0 { ok := object.Key("minIInterval") - ok.Integer(*v.MinIInterval) + ok.Integer(v.MinIInterval) } - if v.NumberBFramesBetweenReferenceFrames != nil { + if v.NumberBFramesBetweenReferenceFrames != 0 { ok := object.Key("numberBFramesBetweenReferenceFrames") - ok.Integer(*v.NumberBFramesBetweenReferenceFrames) + ok.Integer(v.NumberBFramesBetweenReferenceFrames) } if len(v.ParControl) > 0 { @@ -6488,14 +6333,14 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.ParControl)) } - if v.ParDenominator != nil { + if v.ParDenominator != 0 { ok := object.Key("parDenominator") - ok.Integer(*v.ParDenominator) + ok.Integer(v.ParDenominator) } - if v.ParNumerator != nil { + if v.ParNumerator != 0 { ok := object.Key("parNumerator") - ok.Integer(*v.ParNumerator) + ok.Integer(v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { @@ -6518,9 +6363,9 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.SlowPal)) } - if v.Softness != nil { + if v.Softness != 0 { ok := object.Key("softness") - ok.Integer(*v.Softness) + ok.Integer(v.Softness) } if len(v.SpatialAdaptiveQuantization) > 0 { @@ -6614,9 +6459,9 @@ func awsRestjson1_serializeDocumentMsSmoothGroupSettings(v *types.MsSmoothGroupS } } - if v.FragmentLength != nil { + if v.FragmentLength != 0 { ok := object.Key("fragmentLength") - ok.Integer(*v.FragmentLength) + ok.Integer(v.FragmentLength) } if len(v.ManifestEncoding) > 0 { @@ -6653,9 +6498,9 @@ func awsRestjson1_serializeDocumentNexGuardFileMarkerSettings(v *types.NexGuardF ok.String(*v.License) } - if v.Payload != nil { + if v.Payload != 0 { ok := object.Key("payload") - ok.Integer(*v.Payload) + ok.Integer(v.Payload) } if v.Preset != nil { @@ -6675,9 +6520,9 @@ func awsRestjson1_serializeDocumentNielsenConfiguration(v *types.NielsenConfigur object := value.Object() defer object.Close() - if v.BreakoutCode != nil { + if v.BreakoutCode != 0 { ok := object.Key("breakoutCode") - ok.Integer(*v.BreakoutCode) + ok.Integer(v.BreakoutCode) } if v.DistributorId != nil { @@ -6727,9 +6572,9 @@ func awsRestjson1_serializeDocumentNielsenNonLinearWatermarkSettings(v *types.Ni ok.String(*v.MetadataDestination) } - if v.SourceId != nil { + if v.SourceId != 0 { ok := object.Key("sourceId") - ok.Integer(*v.SourceId) + ok.Integer(v.SourceId) } if len(v.SourceWatermarkStatus) > 0 { @@ -6787,9 +6632,9 @@ func awsRestjson1_serializeDocumentNoiseReducerFilterSettings(v *types.NoiseRedu object := value.Object() defer object.Close() - if v.Strength != nil { + if v.Strength != 0 { ok := object.Key("strength") - ok.Integer(*v.Strength) + ok.Integer(v.Strength) } return nil @@ -6799,19 +6644,19 @@ func awsRestjson1_serializeDocumentNoiseReducerSpatialFilterSettings(v *types.No object := value.Object() defer object.Close() - if v.PostFilterSharpenStrength != nil { + if v.PostFilterSharpenStrength != 0 { ok := object.Key("postFilterSharpenStrength") - ok.Integer(*v.PostFilterSharpenStrength) + ok.Integer(v.PostFilterSharpenStrength) } - if v.Speed != nil { + if v.Speed != 0 { ok := object.Key("speed") - ok.Integer(*v.Speed) + ok.Integer(v.Speed) } - if v.Strength != nil { + if v.Strength != 0 { ok := object.Key("strength") - ok.Integer(*v.Strength) + ok.Integer(v.Strength) } return nil @@ -6821,9 +6666,9 @@ func awsRestjson1_serializeDocumentNoiseReducerTemporalFilterSettings(v *types.N object := value.Object() defer object.Close() - if v.AggressiveMode != nil { + if v.AggressiveMode != 0 { ok := object.Key("aggressiveMode") - ok.Integer(*v.AggressiveMode) + ok.Integer(v.AggressiveMode) } if len(v.PostTemporalSharpening) > 0 { @@ -6831,14 +6676,14 @@ func awsRestjson1_serializeDocumentNoiseReducerTemporalFilterSettings(v *types.N ok.String(string(v.PostTemporalSharpening)) } - if v.Speed != nil { + if v.Speed != 0 { ok := object.Key("speed") - ok.Integer(*v.Speed) + ok.Integer(v.Speed) } - if v.Strength != nil { + if v.Strength != 0 { ok := object.Key("strength") - ok.Integer(*v.Strength) + ok.Integer(v.Strength) } return nil @@ -6848,19 +6693,19 @@ func awsRestjson1_serializeDocumentOpusSettings(v *types.OpusSettings, value smi object := value.Object() defer object.Close() - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } - if v.Channels != nil { + if v.Channels != 0 { ok := object.Key("channels") - ok.Integer(*v.Channels) + ok.Integer(v.Channels) } - if v.SampleRate != nil { + if v.SampleRate != 0 { ok := object.Key("sampleRate") - ok.Integer(*v.SampleRate) + ok.Integer(v.SampleRate) } return nil @@ -7097,14 +6942,14 @@ func awsRestjson1_serializeDocumentProresSettings(v *types.ProresSettings, value ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } if len(v.InterlaceMode) > 0 { @@ -7117,14 +6962,14 @@ func awsRestjson1_serializeDocumentProresSettings(v *types.ProresSettings, value ok.String(string(v.ParControl)) } - if v.ParDenominator != nil { + if v.ParDenominator != 0 { ok := object.Key("parDenominator") - ok.Integer(*v.ParDenominator) + ok.Integer(v.ParDenominator) } - if v.ParNumerator != nil { + if v.ParNumerator != 0 { ok := object.Key("parNumerator") - ok.Integer(*v.ParNumerator) + ok.Integer(v.ParNumerator) } if len(v.SlowPal) > 0 { @@ -7144,24 +6989,24 @@ func awsRestjson1_serializeDocumentRectangle(v *types.Rectangle, value smithyjso object := value.Object() defer object.Close() - if v.Height != nil { + if v.Height != 0 { ok := object.Key("height") - ok.Integer(*v.Height) + ok.Integer(v.Height) } - if v.Width != nil { + if v.Width != 0 { ok := object.Key("width") - ok.Integer(*v.Width) + ok.Integer(v.Width) } - if v.X != nil { + if v.X != 0 { ok := object.Key("x") - ok.Integer(*v.X) + ok.Integer(v.X) } - if v.Y != nil { + if v.Y != 0 { ok := object.Key("y") - ok.Integer(*v.Y) + ok.Integer(v.Y) } return nil @@ -7178,14 +7023,14 @@ func awsRestjson1_serializeDocumentRemixSettings(v *types.RemixSettings, value s } } - if v.ChannelsIn != nil { + if v.ChannelsIn != 0 { ok := object.Key("channelsIn") - ok.Integer(*v.ChannelsIn) + ok.Integer(v.ChannelsIn) } - if v.ChannelsOut != nil { + if v.ChannelsOut != 0 { ok := object.Key("channelsOut") - ok.Integer(*v.ChannelsOut) + ok.Integer(v.ChannelsOut) } return nil @@ -7205,9 +7050,9 @@ func awsRestjson1_serializeDocumentReservationPlanSettings(v *types.ReservationP ok.String(string(v.RenewalType)) } - if v.ReservedSlots != nil { + if v.ReservedSlots != 0 { ok := object.Key("reservedSlots") - ok.Integer(*v.ReservedSlots) + ok.Integer(v.ReservedSlots) } return nil @@ -7402,9 +7247,9 @@ func awsRestjson1_serializeDocumentTimecodeBurnin(v *types.TimecodeBurnin, value object := value.Object() defer object.Close() - if v.FontSize != nil { + if v.FontSize != 0 { ok := object.Key("fontSize") - ok.Integer(*v.FontSize) + ok.Integer(v.FontSize) } if len(v.Position) > 0 { @@ -7465,9 +7310,9 @@ func awsRestjson1_serializeDocumentTrackSourceSettings(v *types.TrackSourceSetti object := value.Object() defer object.Close() - if v.TrackNumber != nil { + if v.TrackNumber != 0 { ok := object.Key("trackNumber") - ok.Integer(*v.TrackNumber) + ok.Integer(v.TrackNumber) } return nil @@ -7499,14 +7344,14 @@ func awsRestjson1_serializeDocumentVc3Settings(v *types.Vc3Settings, value smith ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } if len(v.InterlaceMode) > 0 { @@ -7652,14 +7497,14 @@ func awsRestjson1_serializeDocumentVideoDescription(v *types.VideoDescription, v ok.String(string(v.DropFrameTimecode)) } - if v.FixedAfd != nil { + if v.FixedAfd != 0 { ok := object.Key("fixedAfd") - ok.Integer(*v.FixedAfd) + ok.Integer(v.FixedAfd) } - if v.Height != nil { + if v.Height != 0 { ok := object.Key("height") - ok.Integer(*v.Height) + ok.Integer(v.Height) } if v.Position != nil { @@ -7679,9 +7524,9 @@ func awsRestjson1_serializeDocumentVideoDescription(v *types.VideoDescription, v ok.String(string(v.ScalingBehavior)) } - if v.Sharpness != nil { + if v.Sharpness != 0 { ok := object.Key("sharpness") - ok.Integer(*v.Sharpness) + ok.Integer(v.Sharpness) } if len(v.TimecodeInsertion) > 0 { @@ -7696,9 +7541,9 @@ func awsRestjson1_serializeDocumentVideoDescription(v *types.VideoDescription, v } } - if v.Width != nil { + if v.Width != 0 { ok := object.Key("width") - ok.Integer(*v.Width) + ok.Integer(v.Width) } return nil @@ -7786,14 +7631,14 @@ func awsRestjson1_serializeDocumentVideoSelector(v *types.VideoSelector, value s } } - if v.Pid != nil { + if v.Pid != 0 { ok := object.Key("pid") - ok.Integer(*v.Pid) + ok.Integer(v.Pid) } - if v.ProgramNumber != nil { + if v.ProgramNumber != 0 { ok := object.Key("programNumber") - ok.Integer(*v.ProgramNumber) + ok.Integer(v.ProgramNumber) } if len(v.Rotate) > 0 { @@ -7808,19 +7653,19 @@ func awsRestjson1_serializeDocumentVorbisSettings(v *types.VorbisSettings, value object := value.Object() defer object.Close() - if v.Channels != nil { + if v.Channels != 0 { ok := object.Key("channels") - ok.Integer(*v.Channels) + ok.Integer(v.Channels) } - if v.SampleRate != nil { + if v.SampleRate != 0 { ok := object.Key("sampleRate") - ok.Integer(*v.SampleRate) + ok.Integer(v.SampleRate) } - if v.VbrQuality != nil { + if v.VbrQuality != 0 { ok := object.Key("vbrQuality") - ok.Integer(*v.VbrQuality) + ok.Integer(v.VbrQuality) } return nil @@ -7830,9 +7675,9 @@ func awsRestjson1_serializeDocumentVp8Settings(v *types.Vp8Settings, value smith object := value.Object() defer object.Close() - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } if len(v.FramerateControl) > 0 { @@ -7845,29 +7690,29 @@ func awsRestjson1_serializeDocumentVp8Settings(v *types.Vp8Settings, value smith ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } - if v.GopSize != nil { + if v.GopSize != 0 { ok := object.Key("gopSize") - ok.Double(*v.GopSize) + ok.Double(v.GopSize) } - if v.HrdBufferSize != nil { + if v.HrdBufferSize != 0 { ok := object.Key("hrdBufferSize") - ok.Integer(*v.HrdBufferSize) + ok.Integer(v.HrdBufferSize) } - if v.MaxBitrate != nil { + if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") - ok.Integer(*v.MaxBitrate) + ok.Integer(v.MaxBitrate) } if len(v.ParControl) > 0 { @@ -7875,14 +7720,14 @@ func awsRestjson1_serializeDocumentVp8Settings(v *types.Vp8Settings, value smith ok.String(string(v.ParControl)) } - if v.ParDenominator != nil { + if v.ParDenominator != 0 { ok := object.Key("parDenominator") - ok.Integer(*v.ParDenominator) + ok.Integer(v.ParDenominator) } - if v.ParNumerator != nil { + if v.ParNumerator != 0 { ok := object.Key("parNumerator") - ok.Integer(*v.ParNumerator) + ok.Integer(v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { @@ -7902,9 +7747,9 @@ func awsRestjson1_serializeDocumentVp9Settings(v *types.Vp9Settings, value smith object := value.Object() defer object.Close() - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } if len(v.FramerateControl) > 0 { @@ -7917,29 +7762,29 @@ func awsRestjson1_serializeDocumentVp9Settings(v *types.Vp9Settings, value smith ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } - if v.GopSize != nil { + if v.GopSize != 0 { ok := object.Key("gopSize") - ok.Double(*v.GopSize) + ok.Double(v.GopSize) } - if v.HrdBufferSize != nil { + if v.HrdBufferSize != 0 { ok := object.Key("hrdBufferSize") - ok.Integer(*v.HrdBufferSize) + ok.Integer(v.HrdBufferSize) } - if v.MaxBitrate != nil { + if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") - ok.Integer(*v.MaxBitrate) + ok.Integer(v.MaxBitrate) } if len(v.ParControl) > 0 { @@ -7947,14 +7792,14 @@ func awsRestjson1_serializeDocumentVp9Settings(v *types.Vp9Settings, value smith ok.String(string(v.ParControl)) } - if v.ParDenominator != nil { + if v.ParDenominator != 0 { ok := object.Key("parDenominator") - ok.Integer(*v.ParDenominator) + ok.Integer(v.ParDenominator) } - if v.ParNumerator != nil { + if v.ParNumerator != 0 { ok := object.Key("parNumerator") - ok.Integer(*v.ParNumerator) + ok.Integer(v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { @@ -7974,14 +7819,14 @@ func awsRestjson1_serializeDocumentWavSettings(v *types.WavSettings, value smith object := value.Object() defer object.Close() - if v.BitDepth != nil { + if v.BitDepth != 0 { ok := object.Key("bitDepth") - ok.Integer(*v.BitDepth) + ok.Integer(v.BitDepth) } - if v.Channels != nil { + if v.Channels != 0 { ok := object.Key("channels") - ok.Integer(*v.Channels) + ok.Integer(v.Channels) } if len(v.Format) > 0 { @@ -7989,9 +7834,9 @@ func awsRestjson1_serializeDocumentWavSettings(v *types.WavSettings, value smith ok.String(string(v.Format)) } - if v.SampleRate != nil { + if v.SampleRate != 0 { ok := object.Key("sampleRate") - ok.Integer(*v.SampleRate) + ok.Integer(v.SampleRate) } return nil diff --git a/service/mediaconvert/types/types.go b/service/mediaconvert/types/types.go index 94421764cdd..a0fdef06a98 100644 --- a/service/mediaconvert/types/types.go +++ b/service/mediaconvert/types/types.go @@ -33,7 +33,7 @@ type AacSettings struct { // 896000, 1024000. The value you set is also constrained by the values that you // choose for Profile (codecProfile), Bitrate control mode (codingMode), and Sample // rate (sampleRate). Default values depend on Bitrate control mode and Profile. - Bitrate *int32 + Bitrate int32 // AAC Profile. CodecProfile AacCodecProfile @@ -53,7 +53,7 @@ type AacSettings struct { RawFormat AacRawFormat // Sample rate in Hz. Valid values depend on rate control mode and profile. - SampleRate *int32 + SampleRate int32 // Use MPEG-2 AAC instead of MPEG-4 AAC audio for raw or MPEG-2 Transport Stream // containers. @@ -69,7 +69,7 @@ type Ac3Settings struct { // Specify the average bitrate in bits per second. Valid bitrates depend on the // coding mode. - Bitrate *int32 + Bitrate int32 // Specify the bitstream mode for the AC-3 stream that the encoder emits. For more // information about the AC3 bitstream mode, see ATSC A/52-2012 (Annex E). @@ -80,7 +80,7 @@ type Ac3Settings struct { // Sets the dialnorm for the output. If blank and input audio is Dolby Digital, // dialnorm will be passed through. - Dialnorm *int32 + Dialnorm int32 // If set to FILM_STANDARD, adds dynamic range compression signaling to the output // bitstream as defined in the Dolby Digital specification. @@ -96,7 +96,7 @@ type Ac3Settings struct { MetadataControl Ac3MetadataControl // This value is always 48000. It represents the sample rate in Hz. - SampleRate *int32 + SampleRate int32 } // Accelerated transcoding can significantly speed up jobs with long, visually @@ -116,14 +116,14 @@ type AiffSettings struct { // Specify Bit depth (BitDepth), in bits per sample, to choose the encoding quality // for this audio track. - BitDepth *int32 + BitDepth int32 // Specify the number of channels in this output audio track. Valid values are 1 // and even numbers up to 64. For example, 1, 2, 4, 6, and so on, up to 64. - Channels *int32 + Channels int32 // Sample rate in hz. - SampleRate *int32 + SampleRate int32 } // Settings for ancillary captions source. @@ -138,7 +138,7 @@ type AncillarySourceSettings struct { // Specifies the 608 channel number in the ancillary data track from which to // extract captions. Unused for passthrough. - SourceAncillaryChannelNumber *int32 + SourceAncillaryChannelNumber int32 // By default, the service terminates any unterminated captions at the end of each // input. If you want the caption to continue onto your next input, disable this @@ -252,7 +252,7 @@ type AudioDescription struct { // and 255. The following are defined in ISO-IEC 13818-1: 0 = Undefined, 1 = Clean // Effects, 2 = Hearing Impaired, 3 = Visually Impaired Commentary, 4-255 = // Reserved. - AudioType *int32 + AudioType int32 // When set to FOLLOW_INPUT, if the input contains an ISO 639 audio_type, then that // value is passed through to the output. If the input contains no ISO 639 @@ -330,7 +330,7 @@ type AudioNormalizationSettings struct { // Content measuring above this level will be corrected to the target level. // Content measuring below this level will not be corrected. - CorrectionGateLevel *int32 + CorrectionGateLevel int32 // If set to LOG, log each output's audio track loudness to a CSV file. LoudnessLogging AudioNormalizationLoudnessLogging @@ -344,7 +344,7 @@ type AudioNormalizationSettings struct { // the encoder chooses a value for you, based on the algorithm that you choose for // Algorithm (algorithm). If you choose algorithm 1770-1, the encoder will choose // -24 LKFS; otherwise, the encoder will choose -23 LKFS. - TargetLkfs *float64 + TargetLkfs float64 } // Selector for Audio @@ -366,10 +366,10 @@ type AudioSelector struct { LanguageCode LanguageCode // Specifies a time delta in milliseconds to offset the audio from the input video. - Offset *int32 + Offset int32 // Selects a specific PID from within an audio source (e.g. 257 selects PID 0x101). - Pids []*int32 + Pids []int32 // Use this setting for input streams that contain Dolby E, to have the service // extract specific program data from the track. To select multiple programs, @@ -380,7 +380,7 @@ type AudioSelector struct { // has incorrect metadata, you can choose All channels instead of a program number // to have the service ignore the program IDs and include all the programs in the // track. - ProgramSelection *int32 + ProgramSelection int32 // Use these settings to reorder the audio channels of one input to match those of // another input. This allows you to combine the two files into a single output, @@ -396,7 +396,7 @@ type AudioSelector struct { // list. For examle, type "1,2,3" to include tracks 1 through 3. Specifying // directly in your JSON job file, provide the track numbers in an array. For // example, "tracks": [1,2,3]. - Tracks []*int32 + Tracks []int32 } // Group of Audio Selectors @@ -406,7 +406,7 @@ type AudioSelectorGroup struct { // selector names are standardized, based on their order within the input (e.g., // "Audio Selector 1"). The audio selector name parameter can be repeated to add // any number of audio selectors to the group. - AudioSelectorNames []*string + AudioSelectorNames []string } // Settings for quality-defined variable bitrate encoding with the AV1 codec. @@ -423,7 +423,7 @@ type Av1QvbrSettings struct { // between whole numbers, also provide a value for the setting // qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be // 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33. - QvbrQualityLevel *int32 + QvbrQualityLevel int32 // Optional. Specify a value here to set the QVBR quality to a level that is // between whole numbers. For example, if you want your QVBR quality level to be @@ -431,7 +431,7 @@ type Av1QvbrSettings struct { // MediaConvert rounds your QVBR quality level to the nearest third of a whole // number. For example, if you set qvbrQualityLevel to 7 and you set // qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33. - QvbrQualityLevelFineTune *float64 + QvbrQualityLevelFineTune float64 } // Required when you set Codec, under VideoDescription>CodecSettings to the value @@ -474,7 +474,7 @@ type Av1Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator *int32 + FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -482,19 +482,19 @@ type Av1Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator *int32 + FramerateNumerator int32 // Specify the GOP length (keyframe interval) in frames. With AV1, MediaConvert // doesn't support GOP length in seconds. This value must be greater than zero and // preferably equal to 1 + ((numberBFrames + 1) * x), where x is an integer value. - GopSize *float64 + GopSize float64 // Maximum bitrate in bits/second. For example, enter five megabits per second as // 5000000. Required when Rate control mode is QVBR. - MaxBitrate *int32 + MaxBitrate int32 // Specify the number of B-frames. With AV1, MediaConvert supports only 7 or 15. - NumberBFramesBetweenReferenceFrames *int32 + NumberBFramesBetweenReferenceFrames int32 // Settings for quality-defined variable bitrate encoding with the AV1 codec. // Required when you set Rate control mode to QVBR. Not valid when you set Rate @@ -510,7 +510,7 @@ type Av1Settings struct { // 32. For progressive pictures, this value must be less than or equal to the // number of macroblock rows. For interlaced pictures, this value must be less than // or equal to half the number of macroblock rows. - Slices *int32 + Slices int32 // Keep the default value, Enabled (ENABLED), to adjust quantization within each // frame based on spatial variation of content complexity. When you enable this @@ -580,7 +580,7 @@ type AvcIntraSettings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator *int32 + FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -588,7 +588,7 @@ type AvcIntraSettings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator *int32 + FramerateNumerator int32 // Choose the scan line type for the output. Keep the default value, Progressive // (PROGRESSIVE) to create a progressive output, regardless of the scan type of @@ -641,7 +641,7 @@ type BurninDestinationSettings struct { // Specifies the opacity of the background rectangle. 255 is opaque; 0 is // transparent. Leaving this parameter blank is equivalent to setting it to 0 // (transparent). All burn-in and DVB-Sub font settings must match. - BackgroundOpacity *int32 + BackgroundOpacity int32 // Specifies the color of the burned-in captions. This option is not valid for // source captions that are STL, 608/embedded or teletext. These source settings @@ -651,11 +651,11 @@ type BurninDestinationSettings struct { // Specifies the opacity of the burned-in captions. 255 is opaque; 0 is // transparent. All burn-in and DVB-Sub font settings must match. - FontOpacity *int32 + FontOpacity int32 // Font resolution in DPI (dots per inch); default is 96 dpi. All burn-in and // DVB-Sub font settings must match. - FontResolution *int32 + FontResolution int32 // Provide the font script, using an ISO 15924 script code, if the LanguageCode is // not sufficient for determining the script type. Where LanguageCode or @@ -665,7 +665,7 @@ type BurninDestinationSettings struct { // A positive integer indicates the exact font size in points. Set to 0 for // automatic font size selection. All burn-in and DVB-Sub font settings must match. - FontSize *int32 + FontSize int32 // Specifies font outline color. This option is not valid for source captions that // are either 608/embedded or teletext. These source settings are already @@ -677,7 +677,7 @@ type BurninDestinationSettings struct { // captions that are either 608/embedded or teletext. These source settings are // already pre-defined by the caption stream. All burn-in and DVB-Sub font settings // must match. - OutlineSize *int32 + OutlineSize int32 // Specifies the color of the shadow cast by the captions. All burn-in and DVB-Sub // font settings must match. @@ -686,17 +686,17 @@ type BurninDestinationSettings struct { // Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving // this parameter blank is equivalent to setting it to 0 (transparent). All burn-in // and DVB-Sub font settings must match. - ShadowOpacity *int32 + ShadowOpacity int32 // Specifies the horizontal offset of the shadow relative to the captions in // pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All // burn-in and DVB-Sub font settings must match. - ShadowXOffset *int32 + ShadowXOffset int32 // Specifies the vertical offset of the shadow relative to the captions in pixels. // A value of -2 would result in a shadow offset 2 pixels above the text. All // burn-in and DVB-Sub font settings must match. - ShadowYOffset *int32 + ShadowYOffset int32 // Only applies to jobs with input captions in Teletext or STL formats. Specify // whether the spacing between letters in your captions is set by the captions grid @@ -712,7 +712,7 @@ type BurninDestinationSettings struct { // option is not valid for source captions that are STL, 608/embedded or teletext. // These source settings are already pre-defined by the caption stream. All burn-in // and DVB-Sub font settings must match. - XPosition *int32 + XPosition int32 // Specifies the vertical position of the caption relative to the top of the output // in pixels. A value of 10 would result in the captions starting 10 pixels from @@ -721,7 +721,7 @@ type BurninDestinationSettings struct { // source captions that are STL, 608/embedded or teletext. These source settings // are already pre-defined by the caption stream. All burn-in and DVB-Sub font // settings must match. - YPosition *int32 + YPosition int32 } // Description of Caption output @@ -874,12 +874,12 @@ type CaptionSourceFramerate struct { // Specify the denominator of the fraction that represents the frame rate for the // setting Caption source frame rate (CaptionSourceFramerate). Use this setting // along with the setting Framerate numerator (framerateNumerator). - FramerateDenominator *int32 + FramerateDenominator int32 // Specify the numerator of the fraction that represents the frame rate for the // setting Caption source frame rate (CaptionSourceFramerate). Use this setting // along with the setting Framerate denominator (framerateDenominator). - FramerateNumerator *int32 + FramerateNumerator int32 } // If your input captions are SCC, TTML, STL, SMI, SRT, or IMSC in an xml file, @@ -922,7 +922,7 @@ type CaptionSourceSettings struct { type ChannelMapping struct { // List of output channels - OutputChannels []*OutputChannelMapping + OutputChannels []OutputChannelMapping } // Specify the details for each pair of HLS and DASH additional manifests that you @@ -942,7 +942,7 @@ type CmafAdditionalManifest struct { // Specify the outputs that you want this additional top-level manifest to // reference. - SelectedOutputs []*string + SelectedOutputs []string } // Settings for CMAF encryption @@ -986,7 +986,7 @@ type CmafGroupSettings struct { // top-level manifests that reference a subset of the outputs in the output group, // specify a list of them here. For each additional manifest that you specify, the // service creates one HLS manifest and one DASH manifest. - AdditionalManifests []*CmafAdditionalManifest + AdditionalManifests []CmafAdditionalManifest // A partial URI prefix that will be put in the manifest file at the top level // BaseURL element. Can be used if streams are delivered from a different URL than @@ -1021,7 +1021,7 @@ type CmafGroupSettings struct { // Single File is checked, the fragmentation is internal to a single output file // and it does not cause the creation of many output files as in other output // types. - FragmentLength *int32 + FragmentLength int32 // When set to GZIP, compresses HLS playlist. ManifestCompression CmafManifestCompression @@ -1032,7 +1032,7 @@ type CmafGroupSettings struct { // Minimum time of initially buffered media that is needed to ensure smooth // playout. - MinBufferTime *int32 + MinBufferTime int32 // Keep this setting at the default value of 0, unless you are troubleshooting a // problem with how devices play back the end of your video asset. If you know that @@ -1045,7 +1045,7 @@ type CmafGroupSettings struct { // seconds and your final segment is .5 seconds without a minimum final segment // length; when you set the minimum final segment length to 1, your final segment // is 3.5 seconds. - MinFinalSegmentLength *float64 + MinFinalSegmentLength float64 // Specify whether your DASH profile is on-demand or main. When you choose Main // profile (MAIN_PROFILE), the service signals @@ -1069,7 +1069,7 @@ type CmafGroupSettings struct { // content of each output in a single file that has metadata that marks these // segments. If you set it to segmented files, the service creates multiple files // for each output, each with the content of one segment. - SegmentLength *int32 + SegmentLength int32 // Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of // variant manifest. @@ -1110,7 +1110,7 @@ type CmfcSettings struct { type ColorCorrector struct { // Brightness level. - Brightness *int32 + Brightness int32 // Specify the color space you want for this output. The service supports // conversion between HDR formats, between SDR formats, from SDR to HDR, and from @@ -1121,7 +1121,7 @@ type ColorCorrector struct { ColorSpaceConversion ColorSpaceConversion // Contrast level. - Contrast *int32 + Contrast int32 // Use these settings when you convert to the HDR 10 color space. Specify the SMPTE // ST 2086 Mastering Display Color Volume static metadata that you want signaled in @@ -1138,10 +1138,10 @@ type ColorCorrector struct { Hdr10Metadata *Hdr10Metadata // Hue in degrees. - Hue *int32 + Hue int32 // Saturation level. - Saturation *int32 + Saturation int32 } // Container specific settings. @@ -1200,7 +1200,7 @@ type DashAdditionalManifest struct { // Specify the outputs that you want this additional top-level manifest to // reference. - SelectedOutputs []*string + SelectedOutputs []string } // Specifies DRM settings for DASH outputs. @@ -1228,7 +1228,7 @@ type DashIsoGroupSettings struct { // group in your job. This default manifest references every output in the output // group. To create additional DASH manifests that reference a subset of the // outputs in the output group, specify a list of them here. - AdditionalManifests []*DashAdditionalManifest + AdditionalManifests []DashAdditionalManifest // A partial URI prefix that will be put in the manifest (.mpd) file at the top // level BaseURL element. Can be used if streams are delivered from a different URL @@ -1255,14 +1255,14 @@ type DashIsoGroupSettings struct { // Single File is checked, the fragmentation is internal to a single output file // and it does not cause the creation of many output files as in other output // types. - FragmentLength *int32 + FragmentLength int32 // Supports HbbTV specification as indicated HbbtvCompliance DashIsoHbbtvCompliance // Minimum time of initially buffered media that is needed to ensure smooth // playout. - MinBufferTime *int32 + MinBufferTime int32 // Specify whether your DASH profile is on-demand or main. When you choose Main // profile (MAIN_PROFILE), the service signals @@ -1283,7 +1283,7 @@ type DashIsoGroupSettings struct { // longer. When Emit Single File is checked, the segmentation is internal to a // single output file and it does not cause the creation of many output files as in // other output types. - SegmentLength *int32 + SegmentLength int32 // If you get an HTTP error in the 400 range when you play back your DASH output, // enable this setting and run your transcoding job again. When you enable this @@ -1352,11 +1352,11 @@ type DolbyVisionLevel6Metadata struct { // Maximum Content Light Level. Static HDR metadata that corresponds to the // brightest pixel in the entire stream. Measured in nits. - MaxCll *int32 + MaxCll int32 // Maximum Frame-Average Light Level. Static HDR metadata that corresponds to the // highest frame-average brightness in the entire stream. Measured in nits. - MaxFall *int32 + MaxFall int32 } // Inserts DVB Network Information Table (NIT) at the specified table repetition @@ -1364,7 +1364,7 @@ type DolbyVisionLevel6Metadata struct { type DvbNitSettings struct { // The numeric value placed in the Network Information Table (NIT). - NetworkId *int32 + NetworkId int32 // The network name text placed in the network_name_descriptor inside the Network // Information Table. Maximum length is 256 characters. @@ -1372,7 +1372,7 @@ type DvbNitSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. - NitInterval *int32 + NitInterval int32 } // Inserts DVB Service Description Table (NIT) at the specified table repetition @@ -1389,7 +1389,7 @@ type DvbSdtSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. - SdtInterval *int32 + SdtInterval int32 // The service name placed in the service_descriptor in the Service Description // Table. Maximum length is 256 characters. @@ -1420,7 +1420,7 @@ type DvbSubDestinationSettings struct { // Specifies the opacity of the background rectangle. 255 is opaque; 0 is // transparent. Leaving this parameter blank is equivalent to setting it to 0 // (transparent). All burn-in and DVB-Sub font settings must match. - BackgroundOpacity *int32 + BackgroundOpacity int32 // Specifies the color of the burned-in captions. This option is not valid for // source captions that are STL, 608/embedded or teletext. These source settings @@ -1430,11 +1430,11 @@ type DvbSubDestinationSettings struct { // Specifies the opacity of the burned-in captions. 255 is opaque; 0 is // transparent. All burn-in and DVB-Sub font settings must match. - FontOpacity *int32 + FontOpacity int32 // Font resolution in DPI (dots per inch); default is 96 dpi. All burn-in and // DVB-Sub font settings must match. - FontResolution *int32 + FontResolution int32 // Provide the font script, using an ISO 15924 script code, if the LanguageCode is // not sufficient for determining the script type. Where LanguageCode or @@ -1444,7 +1444,7 @@ type DvbSubDestinationSettings struct { // A positive integer indicates the exact font size in points. Set to 0 for // automatic font size selection. All burn-in and DVB-Sub font settings must match. - FontSize *int32 + FontSize int32 // Specifies font outline color. This option is not valid for source captions that // are either 608/embedded or teletext. These source settings are already @@ -1456,7 +1456,7 @@ type DvbSubDestinationSettings struct { // captions that are either 608/embedded or teletext. These source settings are // already pre-defined by the caption stream. All burn-in and DVB-Sub font settings // must match. - OutlineSize *int32 + OutlineSize int32 // Specifies the color of the shadow cast by the captions. All burn-in and DVB-Sub // font settings must match. @@ -1465,17 +1465,17 @@ type DvbSubDestinationSettings struct { // Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving // this parameter blank is equivalent to setting it to 0 (transparent). All burn-in // and DVB-Sub font settings must match. - ShadowOpacity *int32 + ShadowOpacity int32 // Specifies the horizontal offset of the shadow relative to the captions in // pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All // burn-in and DVB-Sub font settings must match. - ShadowXOffset *int32 + ShadowXOffset int32 // Specifies the vertical offset of the shadow relative to the captions in pixels. // A value of -2 would result in a shadow offset 2 pixels above the text. All // burn-in and DVB-Sub font settings must match. - ShadowYOffset *int32 + ShadowYOffset int32 // Specify whether your DVB subtitles are standard or for hearing impaired. Choose // hearing impaired if your subtitles include audio descriptions and dialogue. @@ -1496,7 +1496,7 @@ type DvbSubDestinationSettings struct { // option is not valid for source captions that are STL, 608/embedded or teletext. // These source settings are already pre-defined by the caption stream. All burn-in // and DVB-Sub font settings must match. - XPosition *int32 + XPosition int32 // Specifies the vertical position of the caption relative to the top of the output // in pixels. A value of 10 would result in the captions starting 10 pixels from @@ -1505,7 +1505,7 @@ type DvbSubDestinationSettings struct { // source captions that are STL, 608/embedded or teletext. These source settings // are already pre-defined by the caption stream. All burn-in and DVB-Sub font // settings must match. - YPosition *int32 + YPosition int32 } // DVB Sub Source Settings @@ -1514,7 +1514,7 @@ type DvbSubSourceSettings struct { // When using DVB-Sub with Burn-In or SMPTE-TT, use this PID for the source // content. Unused for DVB-Sub passthrough. All DVB-Sub content is passed through, // regardless of selectors. - Pid *int32 + Pid int32 } // Inserts DVB Time and Date Table (TDT) at the specified table repetition @@ -1523,7 +1523,7 @@ type DvbTdtSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. - TdtInterval *int32 + TdtInterval int32 } // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the @@ -1532,7 +1532,7 @@ type Eac3AtmosSettings struct { // Specify the average bitrate in bits per second. Valid values: 384k, 448k, 640k, // 768k - Bitrate *int32 + Bitrate int32 // Specify the bitstream mode for the E-AC-3 stream that the encoder emits. For // more information about the EAC3 bitstream mode, see ATSC A/52-2012 (Annex E). @@ -1558,38 +1558,38 @@ type Eac3AtmosSettings struct { // service uses this value depends on the value that you choose for Stereo downmix // (Eac3AtmosStereoDownmix). Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, and // -6.0. - LoRoCenterMixLevel *float64 + LoRoCenterMixLevel float64 // Specify a value for the following Dolby Atmos setting: Left only/Right only // (Lo/Ro surround). MediaConvert uses this value for downmixing. How the service // uses this value depends on the value that you choose for Stereo downmix // (Eac3AtmosStereoDownmix). Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The // value -60 mutes the channel. - LoRoSurroundMixLevel *float64 + LoRoSurroundMixLevel float64 // Specify a value for the following Dolby Atmos setting: Left total/Right total // center mix (Lt/Rt center). MediaConvert uses this value for downmixing. How the // service uses this value depends on the value that you choose for Stereo downmix // (Eac3AtmosStereoDownmix). Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, and // -6.0. - LtRtCenterMixLevel *float64 + LtRtCenterMixLevel float64 // Specify a value for the following Dolby Atmos setting: Left total/Right total // surround mix (Lt/Rt surround). MediaConvert uses this value for downmixing. How // the service uses this value depends on the value that you choose for Stereo // downmix (Eac3AtmosStereoDownmix). Valid values: -1.5, -3.0, -4.5, -6.0, and -60. // The value -60 mutes the channel. - LtRtSurroundMixLevel *float64 + LtRtSurroundMixLevel float64 // Choose how the service meters the loudness of your audio. MeteringMode Eac3AtmosMeteringMode // This value is always 48000. It represents the sample rate in Hz. - SampleRate *int32 + SampleRate int32 // Specify the percentage of audio content that must be speech before the encoder // uses the measured speech loudness as the overall program loudness. - SpeechThreshold *int32 + SpeechThreshold int32 // Choose how the service does stereo downmixing. StereoDownmix Eac3AtmosStereoDownmix @@ -1609,7 +1609,7 @@ type Eac3Settings struct { // Specify the average bitrate in bits per second. Valid bitrates depend on the // coding mode. - Bitrate *int32 + Bitrate int32 // Specify the bitstream mode for the E-AC-3 stream that the encoder emits. For // more information about the EAC3 bitstream mode, see ATSC A/52-2012 (Annex E). @@ -1623,7 +1623,7 @@ type Eac3Settings struct { // Sets the dialnorm for the output. If blank and input audio is Dolby Digital // Plus, dialnorm will be passed through. - Dialnorm *int32 + Dialnorm int32 // Specify the absolute peak level for a signal with dynamic range compression. DynamicRangeCompressionLine Eac3DynamicRangeCompressionLine @@ -1647,7 +1647,7 @@ type Eac3Settings struct { // keep the default value of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the // setting Coding mode (Eac3CodingMode). If you choose a different value for Coding // mode, the service ignores Left only/Right only center (loRoCenterMixLevel). - LoRoCenterMixLevel *float64 + LoRoCenterMixLevel float64 // Specify a value for the following Dolby Digital Plus setting: Left only/Right // only (Lo/Ro surround). MediaConvert uses this value for downmixing. How the @@ -1657,7 +1657,7 @@ type Eac3Settings struct { // of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the setting Coding mode // (Eac3CodingMode). If you choose a different value for Coding mode, the service // ignores Left only/Right only surround (loRoSurroundMixLevel). - LoRoSurroundMixLevel *float64 + LoRoSurroundMixLevel float64 // Specify a value for the following Dolby Digital Plus setting: Left total/Right // total center mix (Lt/Rt center). MediaConvert uses this value for downmixing. @@ -1667,7 +1667,7 @@ type Eac3Settings struct { // keep the default value of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the // setting Coding mode (Eac3CodingMode). If you choose a different value for Coding // mode, the service ignores Left total/Right total center (ltRtCenterMixLevel). - LtRtCenterMixLevel *float64 + LtRtCenterMixLevel float64 // Specify a value for the following Dolby Digital Plus setting: Left total/Right // total surround mix (Lt/Rt surround). MediaConvert uses this value for @@ -1677,7 +1677,7 @@ type Eac3Settings struct { // the default value of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the setting // Coding mode (Eac3CodingMode). If you choose a different value for Coding mode, // the service ignores Left total/Right total surround (ltRtSurroundMixLevel). - LtRtSurroundMixLevel *float64 + LtRtSurroundMixLevel float64 // When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD, DD+, or // DolbyE decoder that supplied this audio data. If audio was not supplied from one @@ -1695,7 +1695,7 @@ type Eac3Settings struct { PhaseControl Eac3PhaseControl // This value is always 48000. It represents the sample rate in Hz. - SampleRate *int32 + SampleRate int32 // Choose how the service does stereo downmixing. This setting only applies if you // keep the default value of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the @@ -1721,7 +1721,7 @@ type EmbeddedDestinationSettings struct { // channel in this output. If you have two channels, choose CC numbers that aren't // in the same field. For example, choose 1 and 3. For more information, see // https://docs.aws.amazon.com/console/mediaconvert/dual-scc-to-embedded. - Destination608ChannelNumber *int32 + Destination608ChannelNumber int32 // Ignore this setting unless your input captions are SCC format and you want both // 608 and 708 captions embedded in your output stream. Optionally, specify the 708 @@ -1732,7 +1732,7 @@ type EmbeddedDestinationSettings struct { // MediaConvert uses the number that you specify for CC channel number // (destination608ChannelNumber) for the 708 service number. For more information, // see https://docs.aws.amazon.com/console/mediaconvert/dual-scc-to-embedded. - Destination708ServiceNumber *int32 + Destination708ServiceNumber int32 } // Settings for embedded captions Source @@ -1747,11 +1747,11 @@ type EmbeddedSourceSettings struct { // Specifies the 608/708 channel number within the video track from which to // extract captions. Unused for passthrough. - Source608ChannelNumber *int32 + Source608ChannelNumber int32 // Specifies the video track index used for extracting captions. The system only // supports one input video track, so this should always be set to '1'. - Source608TrackNumber *int32 + Source608TrackNumber int32 // By default, the service terminates any unterminated captions at the end of each // input. If you want the caption to continue onto your next input, disable this @@ -1789,7 +1789,7 @@ type EsamSettings struct { // that the transcoder places and the splice points that they refer to. If the time // between the start of the asset and the SCTE-35 message is less than this value, // then the transcoder places the SCTE-35 marker at the beginning of the stream. - ResponseSignalPreroll *int32 + ResponseSignalPreroll int32 // Specifies an ESAM SignalProcessingNotification XML as per // OC-SP-ESAM-API-I03-131025. The transcoder uses the signal processing @@ -1862,7 +1862,7 @@ type FileSourceSettings struct { SourceFile *string // Specifies a time delta in seconds to offset the captions from the source file. - TimeDelta *int32 + TimeDelta int32 } // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the @@ -1874,7 +1874,7 @@ type FrameCaptureSettings struct { // framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per // second) will capture the first frame, then 1 frame every 3s. Files will be named // as filename.n.jpg where n is the 0-based sequence number of each Capture. - FramerateDenominator *int32 + FramerateDenominator int32 // Frame capture will encode the first frame of the output stream, then one frame // every framerateDenominator/framerateNumerator seconds. For example, settings of @@ -1882,13 +1882,13 @@ type FrameCaptureSettings struct { // second) will capture the first frame, then 1 frame every 3s. Files will be named // as filename.NNNNNNN.jpg where N is the 0-based frame sequence number zero padded // to 7 decimal places. - FramerateNumerator *int32 + FramerateNumerator int32 // Maximum number of captures (encoded jpg output files). - MaxCaptures *int32 + MaxCaptures int32 // JPEG Quality - a higher value equals higher quality. - Quality *int32 + Quality int32 } // Settings for quality-defined variable bitrate encoding with the H.264 codec. @@ -1903,7 +1903,7 @@ type H264QvbrSettings struct { // output to the value that you choose. That is, the total size of the video // element is less than or equal to the value you set multiplied by the number of // seconds of encoded output. - MaxAverageBitrate *int32 + MaxAverageBitrate int32 // Required when you use QVBR rate control mode. That is, when you specify // qvbrSettings within h264Settings. Specify the general target quality level for @@ -1913,7 +1913,7 @@ type H264QvbrSettings struct { // between whole numbers, also provide a value for the setting // qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be // 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33. - QvbrQualityLevel *int32 + QvbrQualityLevel int32 // Optional. Specify a value here to set the QVBR quality to a level that is // between whole numbers. For example, if you want your QVBR quality level to be @@ -1921,7 +1921,7 @@ type H264QvbrSettings struct { // MediaConvert rounds your QVBR quality level to the nearest third of a whole // number. For example, if you set qvbrQualityLevel to 7 and you set // qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33. - QvbrQualityLevelFineTune *float64 + QvbrQualityLevelFineTune float64 } // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the @@ -1938,7 +1938,7 @@ type H264Settings struct { // Specify the average bitrate in bits per second. Required for VBR and CBR. For MS // Smooth outputs, bitrates must be unique when rounded down to the nearest // multiple of 1000. - Bitrate *int32 + Bitrate int32 // Specify an H.264 level that is consistent with your output video settings. If // you aren't sure what level to specify, choose Auto (AUTO). @@ -2004,7 +2004,7 @@ type H264Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator *int32 + FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -2012,7 +2012,7 @@ type H264Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator *int32 + FramerateNumerator int32 // If enable, use reference B frames for GOP structures that have B frames > 1. GopBReference H264GopBReference @@ -2020,21 +2020,21 @@ type H264Settings struct { // Frequency of closed GOPs. In streaming applications, it is recommended that this // be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly // as possible. Setting this value to 0 will break output segmenting. - GopClosedCadence *int32 + GopClosedCadence int32 // GOP Length (keyframe interval) in frames or seconds. Must be greater than zero. - GopSize *float64 + GopSize float64 // Indicates if the GOP Size in H264 is specified in frames or seconds. If seconds // the system will convert the GOP Size into a frame count at run time. GopSizeUnits H264GopSizeUnits // Percentage of the buffer that should initially be filled (HRD buffer model). - HrdBufferInitialFillPercentage *int32 + HrdBufferInitialFillPercentage int32 // Size of buffer (HRD buffer model) in bits. For example, enter five megabits as // 5000000. - HrdBufferSize *int32 + HrdBufferSize int32 // Choose the scan line type for the output. Keep the default value, Progressive // (PROGRESSIVE) to create a progressive output, regardless of the scan type of @@ -2052,7 +2052,7 @@ type H264Settings struct { // Maximum bitrate in bits/second. For example, enter five megabits per second as // 5000000. Required when Rate control mode is QVBR. - MaxBitrate *int32 + MaxBitrate int32 // Enforces separation between repeated (cadence) I-frames and I-frames inserted by // Scene Change Detection. If a scene change I-frame is within I-interval frames of @@ -2061,14 +2061,14 @@ type H264Settings struct { // The normal cadence resumes for the next GOP. This setting is only used when // Scene Change Detect is enabled. Note: Maximum GOP stretch = GOP size + // Min-I-interval - 1 - MinIInterval *int32 + MinIInterval int32 // Number of B-frames between reference frames. - NumberBFramesBetweenReferenceFrames *int32 + NumberBFramesBetweenReferenceFrames int32 // Number of reference frames to use. The encoder may use more than requested if // using B-frames and/or interlaced encoding. - NumberReferenceFrames *int32 + NumberReferenceFrames int32 // Optional. Specify how the service determines the pixel aspect ratio (PAR) for // this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses @@ -2085,7 +2085,7 @@ type H264Settings struct { // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parDenominator is 33. - ParDenominator *int32 + ParDenominator int32 // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you @@ -2093,7 +2093,7 @@ type H264Settings struct { // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parNumerator is 40. - ParNumerator *int32 + ParNumerator int32 // Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want // to trade off encoding speed for output video quality. The default behavior is @@ -2123,7 +2123,7 @@ type H264Settings struct { // Number of slices per picture. Must be less than or equal to the number of // macroblock rows for progressive pictures, and less than or equal to half the // number of macroblock rows for interlaced pictures. - Slices *int32 + Slices int32 // Ignore this setting unless your input frame rate is 23.976 or 24 frames per // second (fps). Enable slow PAL to create a 25 fps output. When you enable slow @@ -2145,7 +2145,7 @@ type H264Settings struct { // 128 to use planar interpolation. Increasing values from 17 to 128 result in // increasing reduction of high-frequency data. The value 128 results in the // softest video. - Softness *int32 + Softness int32 // Keep the default value, Enabled (ENABLED), to adjust quantization within each // frame based on spatial variation of content complexity. When you enable this @@ -2207,7 +2207,7 @@ type H265QvbrSettings struct { // output to the value that you choose. That is, the total size of the video // element is less than or equal to the value you set multiplied by the number of // seconds of encoded output. - MaxAverageBitrate *int32 + MaxAverageBitrate int32 // Required when you use QVBR rate control mode. That is, when you specify // qvbrSettings within h265Settings. Specify the general target quality level for @@ -2217,7 +2217,7 @@ type H265QvbrSettings struct { // between whole numbers, also provide a value for the setting // qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be // 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33. - QvbrQualityLevel *int32 + QvbrQualityLevel int32 // Optional. Specify a value here to set the QVBR quality to a level that is // between whole numbers. For example, if you want your QVBR quality level to be @@ -2225,7 +2225,7 @@ type H265QvbrSettings struct { // MediaConvert rounds your QVBR quality level to the nearest third of a whole // number. For example, if you set qvbrQualityLevel to 7 and you set // qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33. - QvbrQualityLevelFineTune *float64 + QvbrQualityLevelFineTune float64 } // Settings for H265 codec @@ -2245,7 +2245,7 @@ type H265Settings struct { // Specify the average bitrate in bits per second. Required for VBR and CBR. For MS // Smooth outputs, bitrates must be unique when rounded down to the nearest // multiple of 1000. - Bitrate *int32 + Bitrate int32 // H.265 Level. CodecLevel H265CodecLevel @@ -2303,7 +2303,7 @@ type H265Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator *int32 + FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -2311,7 +2311,7 @@ type H265Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator *int32 + FramerateNumerator int32 // If enable, use reference B frames for GOP structures that have B frames > 1. GopBReference H265GopBReference @@ -2319,21 +2319,21 @@ type H265Settings struct { // Frequency of closed GOPs. In streaming applications, it is recommended that this // be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly // as possible. Setting this value to 0 will break output segmenting. - GopClosedCadence *int32 + GopClosedCadence int32 // GOP Length (keyframe interval) in frames or seconds. Must be greater than zero. - GopSize *float64 + GopSize float64 // Indicates if the GOP Size in H265 is specified in frames or seconds. If seconds // the system will convert the GOP Size into a frame count at run time. GopSizeUnits H265GopSizeUnits // Percentage of the buffer that should initially be filled (HRD buffer model). - HrdBufferInitialFillPercentage *int32 + HrdBufferInitialFillPercentage int32 // Size of buffer (HRD buffer model) in bits. For example, enter five megabits as // 5000000. - HrdBufferSize *int32 + HrdBufferSize int32 // Choose the scan line type for the output. Keep the default value, Progressive // (PROGRESSIVE) to create a progressive output, regardless of the scan type of @@ -2351,7 +2351,7 @@ type H265Settings struct { // Maximum bitrate in bits/second. For example, enter five megabits per second as // 5000000. Required when Rate control mode is QVBR. - MaxBitrate *int32 + MaxBitrate int32 // Enforces separation between repeated (cadence) I-frames and I-frames inserted by // Scene Change Detection. If a scene change I-frame is within I-interval frames of @@ -2360,14 +2360,14 @@ type H265Settings struct { // The normal cadence resumes for the next GOP. This setting is only used when // Scene Change Detect is enabled. Note: Maximum GOP stretch = GOP size + // Min-I-interval - 1 - MinIInterval *int32 + MinIInterval int32 // Number of B-frames between reference frames. - NumberBFramesBetweenReferenceFrames *int32 + NumberBFramesBetweenReferenceFrames int32 // Number of reference frames to use. The encoder may use more than requested if // using B-frames and/or interlaced encoding. - NumberReferenceFrames *int32 + NumberReferenceFrames int32 // Optional. Specify how the service determines the pixel aspect ratio (PAR) for // this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses @@ -2384,7 +2384,7 @@ type H265Settings struct { // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parDenominator is 33. - ParDenominator *int32 + ParDenominator int32 // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you @@ -2392,7 +2392,7 @@ type H265Settings struct { // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parNumerator is 40. - ParNumerator *int32 + ParNumerator int32 // Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want // to trade off encoding speed for output video quality. The default behavior is @@ -2423,7 +2423,7 @@ type H265Settings struct { // Number of slices per picture. Must be less than or equal to the number of // macroblock rows for progressive pictures, and less than or equal to half the // number of macroblock rows for interlaced pictures. - Slices *int32 + Slices int32 // Ignore this setting unless your input frame rate is 23.976 or 24 frames per // second (fps). Enable slow PAL to create a 25 fps output. When you enable slow @@ -2513,60 +2513,60 @@ type Hdr10Metadata struct { // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - BluePrimaryX *int32 + BluePrimaryX int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - BluePrimaryY *int32 + BluePrimaryY int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - GreenPrimaryX *int32 + GreenPrimaryX int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - GreenPrimaryY *int32 + GreenPrimaryY int32 // Maximum light level among all samples in the coded video sequence, in units of // candelas per square meter. This setting doesn't have a default value; you must // specify a value that is suitable for the content. - MaxContentLightLevel *int32 + MaxContentLightLevel int32 // Maximum average light level of any frame in the coded video sequence, in units // of candelas per square meter. This setting doesn't have a default value; you // must specify a value that is suitable for the content. - MaxFrameAverageLightLevel *int32 + MaxFrameAverageLightLevel int32 // Nominal maximum mastering display luminance in units of of 0.0001 candelas per // square meter. - MaxLuminance *int32 + MaxLuminance int32 // Nominal minimum mastering display luminance in units of of 0.0001 candelas per // square meter - MinLuminance *int32 + MinLuminance int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - RedPrimaryX *int32 + RedPrimaryX int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - RedPrimaryY *int32 + RedPrimaryY int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - WhitePointX *int32 + WhitePointX int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - WhitePointY *int32 + WhitePointY int32 } // Specify the details for each additional HLS manifest that you want the service @@ -2586,14 +2586,14 @@ type HlsAdditionalManifest struct { // Specify the outputs that you want this additional top-level manifest to // reference. - SelectedOutputs []*string + SelectedOutputs []string } // Caption Language Mapping type HlsCaptionLanguageMapping struct { // Caption channel. - CaptionChannel *int32 + CaptionChannel int32 // Specify the language for this captions channel, using the ISO 639-2 or ISO 639-3 // three-letter language code @@ -2655,7 +2655,7 @@ type HlsGroupSettings struct { // output group in your job. This default manifest references every output in the // output group. To create additional top-level manifests that reference a subset // of the outputs in the output group, specify a list of them here. - AdditionalManifests []*HlsAdditionalManifest + AdditionalManifests []HlsAdditionalManifest // Ignore this setting unless you are using FairPlay DRM with Verimatrix and you // encounter playback issues. Keep the default value, Include (INCLUDE), to output @@ -2669,7 +2669,7 @@ type HlsGroupSettings struct { BaseUrl *string // Language to be used on Caption outputs - CaptionLanguageMappings []*HlsCaptionLanguageMapping + CaptionLanguageMappings []HlsCaptionLanguageMapping // Applies only to 608 Embedded output captions. Insert: Include CLOSED-CAPTIONS // lines in the manifest. Specify at least one language in the CC1 Language Code @@ -2725,11 +2725,11 @@ type HlsGroupSettings struct { // seconds and your final segment is .5 seconds without a minimum final segment // length; when you set the minimum final segment length to 1, your final segment // is 3.5 seconds. - MinFinalSegmentLength *float64 + MinFinalSegmentLength float64 // When set, Minimum Segment Size is enforced by looking ahead and back within the // specified range for a nearby avail and extending the segment size if needed. - MinSegmentLength *int32 + MinSegmentLength int32 // Indicates whether the .m3u8 manifest file should be generated for this HLS // output group. @@ -2742,7 +2742,7 @@ type HlsGroupSettings struct { ProgramDateTime HlsProgramDateTime // Period of insertion of EXT-X-PROGRAM-DATE-TIME entry, in seconds. - ProgramDateTimePeriod *int32 + ProgramDateTimePeriod int32 // When set to SINGLE_FILE, emits program as a single media resource (.ts) file, // uses #EXT-X-BYTERANGE tags to index segment for playback. @@ -2751,11 +2751,11 @@ type HlsGroupSettings struct { // Length of MPEG-2 Transport Stream segments to create (in seconds). Note that // segments will end on the next keyframe after this number of seconds, so actual // segment length may be longer. - SegmentLength *int32 + SegmentLength int32 // Number of segments to write to a subdirectory before starting a new one. // directoryStructure must be SINGLE_DIRECTORY for this setting to have an effect. - SegmentsPerSubdirectory *int32 + SegmentsPerSubdirectory int32 // Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of // variant manifest. @@ -2765,10 +2765,10 @@ type HlsGroupSettings struct { TimedMetadataId3Frame HlsTimedMetadataId3Frame // Timed Metadata interval in seconds. - TimedMetadataId3Period *int32 + TimedMetadataId3Period int32 // Provides an extra millisecond delta offset to fine tune the timestamps. - TimestampDeltaMilliseconds *int32 + TimestampDeltaMilliseconds int32 } // Settings for HLS output groups @@ -2819,7 +2819,7 @@ type HopDestination struct { // Optional. When you set up a job to use queue hopping, you can specify a // different relative priority for the job in the destination queue. If you don't // specify, the relative priority will remain the same as in the previous queue. - Priority *int32 + Priority int32 // Optional unless the job is submitted on the default queue. When you set up a job // to use queue hopping, you can specify a destination queue. This queue cannot be @@ -2831,7 +2831,7 @@ type HopDestination struct { // Required for setting up a job to use queue hopping. Minimum wait time in minutes // until the job can hop to the destination queue. Valid range is 1 to 1440 // minutes, inclusive. - WaitMinutes *int32 + WaitMinutes int32 } // To insert ID3 tags in your output, specify two values. Use ID3 tag (Id3) to @@ -2854,7 +2854,7 @@ type ImageInserter struct { // Specify the images that you want to overlay on your video. The images must be // PNG or TGA files. - InsertableImages []*InsertableImage + InsertableImages []InsertableImage } // Settings specific to IMSC caption outputs. @@ -2873,16 +2873,16 @@ type Input struct { // Specifies set of audio selectors within an input to combine. An input may have // multiple audio selector groups. See "Audio Selector // Group":#inputs-audio_selector_group for more information. - AudioSelectorGroups map[string]*AudioSelectorGroup + AudioSelectorGroups map[string]AudioSelectorGroup // Use Audio selectors (AudioSelectors) to specify a track or set of tracks from // the input that you will use in your outputs. You can use multiple Audio // selectors per input. - AudioSelectors map[string]*AudioSelector + AudioSelectors map[string]AudioSelector // Use captions selectors to specify the captions data from your input that you use // in your outputs. You can use up to 20 captions selectors per input. - CaptionSelectors map[string]*CaptionSelector + CaptionSelectors map[string]CaptionSelector // Use Cropping selection (crop) to specify the video area that the service will // include in the output video frame. If you specify a value here, it will override @@ -2924,7 +2924,7 @@ type Input struct { // Use Filter strength (FilterStrength) to adjust the magnitude the input filter // settings (Deblock and Denoise). The range is -5 to 5. Default is 0. - FilterStrength *int32 + FilterStrength int32 // Enable the image inserter feature to include a graphic overlay on your video. // Enable or disable this feature for each input individually. This setting is @@ -2937,7 +2937,7 @@ type Input struct { // provide only an end time, it will be the entire input up to that point. When you // specify more than one input clip, the transcoding service creates the job // outputs by stringing the clips together in the order you specify them. - InputClippings []*InputClipping + InputClippings []InputClipping // When you have a progressive segmented frame (PsF) input, use this setting to // flag the input as PsF. MediaConvert doesn't automatically detect PsF. Therefore, @@ -2962,7 +2962,7 @@ type Input struct { // multi-program transport stream. Note that Quad 4K is not currently supported. // Default is the first program within the transport stream. If the program you // specify doesn't exist, the transcoding service will use this default. - ProgramNumber *int32 + ProgramNumber int32 // Set PSI control (InputPsiControl) for transport stream inputs to specify which // data the demux process to scans. * Ignore PSI - Scan all PIDs for audio and @@ -2975,7 +2975,7 @@ type Input struct { // files. For example ["s3://bucket/ov/", "s3://bucket/vf2/ASSETMAP.xml"]. You // don't need to specify the IMP that contains your input CPL, because the service // automatically detects it. - SupplementalImps []*string + SupplementalImps []string // Use this Timecode source setting, located under the input settings // (InputTimecodeSource), to specify how the service counts input video frames. @@ -3063,16 +3063,16 @@ type InputTemplate struct { // Specifies set of audio selectors within an input to combine. An input may have // multiple audio selector groups. See "Audio Selector // Group":#inputs-audio_selector_group for more information. - AudioSelectorGroups map[string]*AudioSelectorGroup + AudioSelectorGroups map[string]AudioSelectorGroup // Use Audio selectors (AudioSelectors) to specify a track or set of tracks from // the input that you will use in your outputs. You can use multiple Audio // selectors per input. - AudioSelectors map[string]*AudioSelector + AudioSelectors map[string]AudioSelector // Use captions selectors to specify the captions data from your input that you use // in your outputs. You can use up to 20 captions selectors per input. - CaptionSelectors map[string]*CaptionSelector + CaptionSelectors map[string]CaptionSelector // Use Cropping selection (crop) to specify the video area that the service will // include in the output video frame. If you specify a value here, it will override @@ -3099,7 +3099,7 @@ type InputTemplate struct { // Use Filter strength (FilterStrength) to adjust the magnitude the input filter // settings (Deblock and Denoise). The range is -5 to 5. Default is 0. - FilterStrength *int32 + FilterStrength int32 // Enable the image inserter feature to include a graphic overlay on your video. // Enable or disable this feature for each input individually. This setting is @@ -3112,7 +3112,7 @@ type InputTemplate struct { // provide only an end time, it will be the entire input up to that point. When you // specify more than one input clip, the transcoding service creates the job // outputs by stringing the clips together in the order you specify them. - InputClippings []*InputClipping + InputClippings []InputClipping // When you have a progressive segmented frame (PsF) input, use this setting to // flag the input as PsF. MediaConvert doesn't automatically detect PsF. Therefore, @@ -3137,7 +3137,7 @@ type InputTemplate struct { // multi-program transport stream. Note that Quad 4K is not currently supported. // Default is the first program within the transport stream. If the program you // specify doesn't exist, the transcoding service will use this default. - ProgramNumber *int32 + ProgramNumber int32 // Set PSI control (InputPsiControl) for transport stream inputs to specify which // data the demux process to scans. * Ignore PSI - Scan all PIDs for audio and @@ -3173,26 +3173,26 @@ type InsertableImage struct { // Specify the time, in milliseconds, for the image to remain on the output video. // This duration includes fade-in time but not fade-out time. - Duration *int32 + Duration int32 // Specify the length of time, in milliseconds, between the Start time that you // specify for the image insertion and the time that the image appears at full // opacity. Full opacity is the level that you specify for the opacity setting. If // you don't specify a value for Fade-in, the image will appear abruptly at the // overlay start time. - FadeIn *int32 + FadeIn int32 // Specify the length of time, in milliseconds, between the end of the time that // you have specified for the image overlay Duration and when the overlaid image // has faded to total transparency. If you don't specify a value for Fade-out, the // image will disappear abruptly at the end of the inserted image duration. - FadeOut *int32 + FadeOut int32 // Specify the height of the inserted image in pixels. If you specify a value // that's larger than the video resolution height, the service will crop your // overlaid image to fit. To use the native height of the image, keep this setting // blank. - Height *int32 + Height int32 // Specify the HTTP, HTTPS, or Amazon S3 location of the image that you want to // overlay on the video. Use a PNG or TGA file. @@ -3200,19 +3200,19 @@ type InsertableImage struct { // Specify the distance, in pixels, between the inserted image and the left edge of // the video frame. Required for any image overlay that you specify. - ImageX *int32 + ImageX int32 // Specify the distance, in pixels, between the overlaid image and the top edge of // the video frame. Required for any image overlay that you specify. - ImageY *int32 + ImageY int32 // Specify how overlapping inserted images appear. Images with higher values for // Layer appear on top of images with lower values for Layer. - Layer *int32 + Layer int32 // Use Opacity (Opacity) to specify how much of the underlying video shows through // the inserted image. 0 is transparent and 100 is fully opaque. Default is 50. - Opacity *int32 + Opacity int32 // Specify the timecode of the frame that you want the overlay to first appear on. // This must be in timecode (HH:MM:SS:FF or HH:MM:SS;FF) format. Remember to take @@ -3222,7 +3222,7 @@ type InsertableImage struct { // Specify the width of the inserted image in pixels. If you specify a value that's // larger than the video resolution width, the service will crop your overlaid // image to fit. To use the native width of the image, keep this setting blank. - Width *int32 + Width int32 } // Each job converts an input file into an output file or files. For more @@ -3273,13 +3273,13 @@ type Job struct { CurrentPhase JobPhase // Error code for the job - ErrorCode *int32 + ErrorCode int32 // Error message of Job ErrorMessage *string // Optional list of hop destinations. - HopDestinations []*HopDestination + HopDestinations []HopDestination // A portion of the job's ARN, unique within your AWS Elemental MediaConvert // resources @@ -3293,7 +3293,7 @@ type Job struct { // reliable for the following input containers: Quicktime, Transport Stream, MP4, // and MXF. For some jobs, the service can't provide information about job // progress. In those cases, jobPercentComplete returns a null value. - JobPercentComplete *int32 + JobPercentComplete int32 // The job template that the job is created from, if it is created from a job // template. @@ -3304,10 +3304,10 @@ type Job struct { Messages *JobMessages // List of output group details - OutputGroupDetails []*OutputGroupDetail + OutputGroupDetails []OutputGroupDetail // Relative priority on the job. - Priority *int32 + Priority int32 // When you create a job, you can specify a queue to send it to. If you don't // specify, the job will go to the default queue. For more about queues, see the @@ -3316,11 +3316,11 @@ type Job struct { Queue *string // The job's queue hopping history. - QueueTransitions []*QueueTransition + QueueTransitions []QueueTransition // The number of times that the service automatically attempted to process your job // after encountering an error. - RetryCount *int32 + RetryCount int32 // Enable this setting when you run a test job to estimate how many reserved // transcoding slots (RTS) you need. When this is enabled, MediaConvert runs your @@ -3343,7 +3343,7 @@ type Job struct { // User-defined metadata that you want to associate with an MediaConvert job. You // specify metadata in key/value pairs. - UserMetadata map[string]*string + UserMetadata map[string]string } // Provides messages from the service about jobs that you have already successfully @@ -3352,11 +3352,11 @@ type JobMessages struct { // List of messages that are informational only and don't indicate a problem with // your job. - Info []*string + Info []string // List of messages that warn about conditions that might cause your job not to run // or to fail. - Warning []*string + Warning []string } // JobSettings contains all the transcode settings for a job. @@ -3364,7 +3364,7 @@ type JobSettings struct { // When specified, this offset (in milliseconds) is added to the input Ad Avail PTS // time. - AdAvailOffset *int32 + AdAvailOffset int32 // Settings for ad avail blanking. Video can be blanked or overlaid with an image, // and audio muted during SCTE-35 triggered ad avails. @@ -3376,7 +3376,7 @@ type JobSettings struct { // Use Inputs (inputs) to define source file used in the transcode job. There can // be multiple inputs add in a job. These inputs will be concantenated together to // create the output. - Inputs []*Input + Inputs []Input // Overlay motion graphics on top of your video. The motion graphics that you // specify here appear on all outputs in all output groups. @@ -3410,7 +3410,7 @@ type JobSettings struct { // HlsGroupSettings * DASH_ISO_GROUP_SETTINGS, DashIsoGroupSettings * // MS_SMOOTH_GROUP_SETTINGS, MsSmoothGroupSettings * CMAF_GROUP_SETTINGS, // CmafGroupSettings - OutputGroups []*OutputGroup + OutputGroups []OutputGroup // Contains settings used to acquire and adjust timecode information from inputs. TimecodeConfig *TimecodeConfig @@ -3455,13 +3455,13 @@ type JobTemplate struct { Description *string // Optional list of hop destinations. - HopDestinations []*HopDestination + HopDestinations []HopDestination // The timestamp in epoch seconds when the Job template was last updated. LastUpdated *time.Time // Relative priority on the job. - Priority *int32 + Priority int32 // Optional. The queue that jobs created from this template are assigned to. If you // don't specify this, jobs will go to the default queue. @@ -3484,7 +3484,7 @@ type JobTemplateSettings struct { // When specified, this offset (in milliseconds) is added to the input Ad Avail PTS // time. - AdAvailOffset *int32 + AdAvailOffset int32 // Settings for ad avail blanking. Video can be blanked or overlaid with an image, // and audio muted during SCTE-35 triggered ad avails. @@ -3496,7 +3496,7 @@ type JobTemplateSettings struct { // Use Inputs (inputs) to define the source file used in the transcode job. There // can only be one input in a job template. Using the API, you can include multiple // inputs when referencing a job template. - Inputs []*InputTemplate + Inputs []InputTemplate // Overlay motion graphics on top of your video. The motion graphics that you // specify here appear on all outputs in all output groups. @@ -3530,7 +3530,7 @@ type JobTemplateSettings struct { // HlsGroupSettings * DASH_ISO_GROUP_SETTINGS, DashIsoGroupSettings * // MS_SMOOTH_GROUP_SETTINGS, MsSmoothGroupSettings * CMAF_GROUP_SETTINGS, // CmafGroupSettings - OutputGroups []*OutputGroup + OutputGroups []OutputGroup // Contains settings used to acquire and adjust timecode information from inputs. TimecodeConfig *TimecodeConfig @@ -3550,7 +3550,7 @@ type M2tsScte35Esam struct { // Packet Identifier (PID) of the SCTE-35 stream in the transport stream generated // by ESAM. - Scte35EsamPid *int32 + Scte35EsamPid int32 } // MPEG-2 TS container settings. These apply to outputs in a File output group when @@ -3569,17 +3569,17 @@ type M2tsSettings struct { AudioBufferModel M2tsAudioBufferModel // The number of audio frames to insert for each PES packet. - AudioFramesPerPes *int32 + AudioFramesPerPes int32 // Specify the packet identifiers (PIDs) for any elementary audio streams you // include in this output. Specify multiple PIDs as a JSON array. Default is the // range 482-492. - AudioPids []*int32 + AudioPids []int32 // Specify the output bitrate of the transport stream in bits per second. Setting // to 0 lets the muxer automatically determine the appropriate bitrate. Other // common values are 3750000, 7500000, and 15000000. - Bitrate *int32 + Bitrate int32 // Controls what buffer model to use for accurate interleaving. If set to // MULTIPLEX, use multiplex buffer model. If set to NONE, this can lead to lower @@ -3597,7 +3597,7 @@ type M2tsSettings struct { // Specify the packet identifiers (PIDs) for DVB subtitle data included in this // output. Specify multiple PIDs as a JSON array. Default is the range 460-479. - DvbSubPids []*int32 + DvbSubPids []int32 // Inserts DVB Time and Date Table (TDT) at the specified table repetition // interval. @@ -3605,7 +3605,7 @@ type M2tsSettings struct { // Specify the packet identifier (PID) for DVB teletext data you include in this // output. Default is 499. - DvbTeletextPid *int32 + DvbTeletextPid int32 // When set to VIDEO_AND_FIXED_INTERVALS, audio EBP markers will be added to // partitions 3 and 4. The interval between these additional markers will be fixed, @@ -3630,11 +3630,11 @@ type M2tsSettings struct { ForceTsVideoEbpOrder M2tsForceTsVideoEbpOrder // The length, in seconds, of each fragment. Only used with EBP markers. - FragmentTime *float64 + FragmentTime float64 // Specify the maximum time, in milliseconds, between Program Clock References // (PCRs) inserted into the transport stream. - MaxPcrInterval *int32 + MaxPcrInterval int32 // When set, enforces that Encoder Boundary Points do not come within the specified // time interval of each other by looking ahead at input video. If another EBP is @@ -3642,7 +3642,7 @@ type M2tsSettings struct { // emitted, and the segment is "stretched" to the next marker. The lookahead value // does not add latency to the system. The Live Event must be configured elsewhere // to create sufficient latency to make the lookahead accurate. - MinEbpInterval *int32 + MinEbpInterval int32 // If INSERT, Nielsen inaudible tones for media tracking will be detected in the // input audio and an equivalent ID3 tag will be inserted in the output. @@ -3651,11 +3651,11 @@ type M2tsSettings struct { // Value in bits per second of extra null packets to insert into the transport // stream. This can be used if a downstream encryption system requires periodic // null packets. - NullPacketBitrate *float64 + NullPacketBitrate float64 // The number of milliseconds between instances of this table in the output // transport stream. - PatInterval *int32 + PatInterval int32 // When set to PCR_EVERY_PES_PACKET, a Program Clock Reference value is inserted // for every Packetized Elementary Stream (PES) header. This is effective only when @@ -3665,25 +3665,25 @@ type M2tsSettings struct { // Specify the packet identifier (PID) for the program clock reference (PCR) in // this output. If you do not specify a value, the service will use the value for // Video PID (VideoPid). - PcrPid *int32 + PcrPid int32 // Specify the number of milliseconds between instances of the program map table // (PMT) in the output transport stream. - PmtInterval *int32 + PmtInterval int32 // Specify the packet identifier (PID) for the program map table (PMT) itself. // Default is 480. - PmtPid *int32 + PmtPid int32 // Specify the packet identifier (PID) of the private metadata stream. Default is // 503. - PrivateMetadataPid *int32 + PrivateMetadataPid int32 // Use Program number (programNumber) to specify the program number used in the // program map table (PMT) for this output. Default is 1. Program numbers and // program map tables are parts of MPEG-2 transport stream containers, used for // organizing data. - ProgramNumber *int32 + ProgramNumber int32 // When set to CBR, inserts null packets into transport stream to fill specified // bitrate. When set to VBR, the bitrate setting acts as the maximum bitrate, but @@ -3697,7 +3697,7 @@ type M2tsSettings struct { // Specify the packet identifier (PID) of the SCTE-35 stream in the transport // stream. - Scte35Pid *int32 + Scte35Pid int32 // For SCTE-35 markers from your input-- Choose Passthrough (PASSTHROUGH) if you // want SCTE-35 markers that appear in your input to also appear in this output. @@ -3731,32 +3731,32 @@ type M2tsSettings struct { // Specify the length, in seconds, of each segment. Required unless markers is set // to none. - SegmentationTime *float64 + SegmentationTime float64 // Specify the packet identifier (PID) for timed metadata in this output. Default // is 502. - TimedMetadataPid *int32 + TimedMetadataPid int32 // Specify the ID for the transport stream itself in the program map table for this // output. Transport stream IDs and program map tables are parts of MPEG-2 // transport stream containers, used for organizing data. - TransportStreamId *int32 + TransportStreamId int32 // Specify the packet identifier (PID) of the elementary video stream in the // transport stream. - VideoPid *int32 + VideoPid int32 } // Settings for TS segments in HLS type M3u8Settings struct { // The number of audio frames to insert for each PES packet. - AudioFramesPerPes *int32 + AudioFramesPerPes int32 // Packet Identifier (PID) of the elementary audio stream(s) in the transport // stream. Multiple values are accepted, and can be entered in ranges and/or by // comma separation. - AudioPids []*int32 + AudioPids []int32 // If INSERT, Nielsen inaudible tones for media tracking will be detected in the // input audio and an equivalent ID3 tag will be inserted in the output. @@ -3764,7 +3764,7 @@ type M3u8Settings struct { // The number of milliseconds between instances of this table in the output // transport stream. - PatInterval *int32 + PatInterval int32 // When set to PCR_EVERY_PES_PACKET a Program Clock Reference value is inserted for // every Packetized Elementary Stream (PES) header. This parameter is effective @@ -3774,23 +3774,23 @@ type M3u8Settings struct { // Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport // stream. When no value is given, the encoder will assign the same value as the // Video PID. - PcrPid *int32 + PcrPid int32 // The number of milliseconds between instances of this table in the output // transport stream. - PmtInterval *int32 + PmtInterval int32 // Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream. - PmtPid *int32 + PmtPid int32 // Packet Identifier (PID) of the private metadata stream in the transport stream. - PrivateMetadataPid *int32 + PrivateMetadataPid int32 // The value of the program number field in the Program Map Table. - ProgramNumber *int32 + ProgramNumber int32 // Packet Identifier (PID) of the SCTE-35 stream in the transport stream. - Scte35Pid *int32 + Scte35Pid int32 // For SCTE-35 markers from your input-- Choose Passthrough (PASSTHROUGH) if you // want SCTE-35 markers that appear in your input to also appear in this output. @@ -3807,13 +3807,13 @@ type M3u8Settings struct { TimedMetadata TimedMetadata // Packet Identifier (PID) of the timed metadata stream in the transport stream. - TimedMetadataPid *int32 + TimedMetadataPid int32 // The value of the transport stream ID field in the Program Map Table. - TransportStreamId *int32 + TransportStreamId int32 // Packet Identifier (PID) of the elementary video stream in the transport stream. - VideoPid *int32 + VideoPid int32 } // Overlay motion graphics on top of your video at the time that you specify. @@ -3877,11 +3877,11 @@ type MotionImageInsertionFramerate struct { // The bottom of the fraction that expresses your overlay frame rate. For example, // if your frame rate is 24 fps, set this value to 1. - FramerateDenominator *int32 + FramerateDenominator int32 // The top of the fraction that expresses your overlay frame rate. For example, if // your frame rate is 24 fps, set this value to 24. - FramerateNumerator *int32 + FramerateNumerator int32 } // Specify the offset between the upper-left corner of the video frame and the top @@ -3890,11 +3890,11 @@ type MotionImageInsertionOffset struct { // Set the distance, in pixels, between the overlay and the left edge of the video // frame. - ImageX *int32 + ImageX int32 // Set the distance, in pixels, between the overlay and the top edge of the video // frame. - ImageY *int32 + ImageY int32 } // Settings for MOV Container. @@ -3931,15 +3931,15 @@ type MovSettings struct { type Mp2Settings struct { // Specify the average bitrate in bits per second. - Bitrate *int32 + Bitrate int32 // Set Channels to specify the number of channels in this output audio track. // Choosing Mono in the console will give you 1 output channel; choosing Stereo // will give you 2. In the API, valid values are 1 and 2. - Channels *int32 + Channels int32 // Sample rate in hz. - SampleRate *int32 + SampleRate int32 } // Required when you set Codec, under AudioDescriptions>CodecSettings, to the value @@ -3947,23 +3947,23 @@ type Mp2Settings struct { type Mp3Settings struct { // Specify the average bitrate in bits per second. - Bitrate *int32 + Bitrate int32 // Specify the number of channels in this output audio track. Choosing Mono on the // console gives you 1 output channel; choosing Stereo gives you 2. In the API, // valid values are 1 and 2. - Channels *int32 + Channels int32 // Specify whether the service encodes this MP3 audio output with a constant // bitrate (CBR) or a variable bitrate (VBR). RateControlMode Mp3RateControlMode // Sample rate in hz. - SampleRate *int32 + SampleRate int32 // Required when you set Bitrate control mode (rateControlMode) to VBR. Specify the // audio quality of this MP3 output from 0 (highest quality) to 9 (lowest quality). - VbrQuality *int32 + VbrQuality int32 } // Settings for MP4 container. You can create audio-only AAC outputs with this @@ -3982,7 +3982,7 @@ type Mp4Settings struct { // of 1, you must also set CSLG atom (cslgAtom) to the value INCLUDE. Keep the // default value 0 to set your CTTS box version to 0. This can provide backward // compatibility for some players and packagers. - CttsVersion *int32 + CttsVersion int32 // Inserts a free-space box immediately after the moov box. FreeSpaceBox Mp4FreeSpaceBox @@ -4033,7 +4033,7 @@ type Mpeg2Settings struct { // Specify the average bitrate in bits per second. Required for VBR and CBR. For MS // Smooth outputs, bitrates must be unique when rounded down to the nearest // multiple of 1000. - Bitrate *int32 + Bitrate int32 // Use Level (Mpeg2CodecLevel) to set the MPEG-2 level for the video output. CodecLevel Mpeg2CodecLevel @@ -4080,7 +4080,7 @@ type Mpeg2Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator *int32 + FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -4088,26 +4088,26 @@ type Mpeg2Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator *int32 + FramerateNumerator int32 // Frequency of closed GOPs. In streaming applications, it is recommended that this // be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly // as possible. Setting this value to 0 will break output segmenting. - GopClosedCadence *int32 + GopClosedCadence int32 // GOP Length (keyframe interval) in frames or seconds. Must be greater than zero. - GopSize *float64 + GopSize float64 // Indicates if the GOP Size in MPEG2 is specified in frames or seconds. If seconds // the system will convert the GOP Size into a frame count at run time. GopSizeUnits Mpeg2GopSizeUnits // Percentage of the buffer that should initially be filled (HRD buffer model). - HrdBufferInitialFillPercentage *int32 + HrdBufferInitialFillPercentage int32 // Size of buffer (HRD buffer model) in bits. For example, enter five megabits as // 5000000. - HrdBufferSize *int32 + HrdBufferSize int32 // Choose the scan line type for the output. Keep the default value, Progressive // (PROGRESSIVE) to create a progressive output, regardless of the scan type of @@ -4130,7 +4130,7 @@ type Mpeg2Settings struct { // Maximum bitrate in bits/second. For example, enter five megabits per second as // 5000000. - MaxBitrate *int32 + MaxBitrate int32 // Enforces separation between repeated (cadence) I-frames and I-frames inserted by // Scene Change Detection. If a scene change I-frame is within I-interval frames of @@ -4139,10 +4139,10 @@ type Mpeg2Settings struct { // The normal cadence resumes for the next GOP. This setting is only used when // Scene Change Detect is enabled. Note: Maximum GOP stretch = GOP size + // Min-I-interval - 1 - MinIInterval *int32 + MinIInterval int32 // Number of B-frames between reference frames. - NumberBFramesBetweenReferenceFrames *int32 + NumberBFramesBetweenReferenceFrames int32 // Optional. Specify how the service determines the pixel aspect ratio (PAR) for // this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses @@ -4159,7 +4159,7 @@ type Mpeg2Settings struct { // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parDenominator is 33. - ParDenominator *int32 + ParDenominator int32 // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you @@ -4167,7 +4167,7 @@ type Mpeg2Settings struct { // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parNumerator is 40. - ParNumerator *int32 + ParNumerator int32 // Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want // to trade off encoding speed for output video quality. The default behavior is @@ -4200,7 +4200,7 @@ type Mpeg2Settings struct { // Elemental default matrices. Choose a value from 17 to 128 to use planar // interpolation. Increasing values from 17 to 128 result in increasing reduction // of high-frequency data. The value 128 results in the softest video. - Softness *int32 + Softness int32 // Keep the default value, Enabled (ENABLED), to adjust quantization within each // frame based on spatial variation of content complexity. When you enable this @@ -4264,7 +4264,7 @@ type MsSmoothAdditionalManifest struct { // Specify the outputs that you want this additional top-level manifest to // reference. - SelectedOutputs []*string + SelectedOutputs []string } // If you are using DRM, set DRM System (MsSmoothEncryptionSettings) to specify the @@ -4286,7 +4286,7 @@ type MsSmoothGroupSettings struct { // references every output in the output group. To create additional manifests that // reference a subset of the outputs in the output group, specify a list of them // here. - AdditionalManifests []*MsSmoothAdditionalManifest + AdditionalManifests []MsSmoothAdditionalManifest // COMBINE_DUPLICATE_STREAMS combines identical audio encoding settings across a // Microsoft Smooth output group into a single audio stream. @@ -4309,7 +4309,7 @@ type MsSmoothGroupSettings struct { // Use Fragment length (FragmentLength) to specify the mp4 fragment sizes in // seconds. Fragment length must be compatible with GOP size and frame rate. - FragmentLength *int32 + FragmentLength int32 // Use Manifest encoding (MsSmoothManifestEncoding) to specify the encoding format // for the server and client manifest. Valid options are utf8 and utf16. @@ -4360,7 +4360,7 @@ type NexGuardFileMarkerSettings struct { // For one output group, set the value of Payload ID (payload) to 0 in every // output. For the other output group, set Payload ID (payload) to 1 in every // output. - Payload *int32 + Payload int32 // Enter one of the watermarking preset strings that Nagra provides you. Required // when you include Nagra NexGuard File Marker watermarking @@ -4384,7 +4384,7 @@ type NielsenConfiguration struct { // Nielsen has discontinued the use of breakout code functionality. If you must // include this property, set the value to zero. - BreakoutCode *int32 + BreakoutCode int32 // Use Distributor ID (DistributorID) to specify the distributor ID that is // assigned to your organization by Neilsen. @@ -4445,7 +4445,7 @@ type NielsenNonLinearWatermarkSettings struct { // Nielsen non-linear watermarking. This ID should be unique to your Nielsen // account but common to all of your output assets. Required for all Nielsen // non-linear watermarking. - SourceId *int32 + SourceId int32 // Required. Specify whether your source content already contains Nielsen // non-linear watermarks. When you set this value to Watermarked (WATERMARKED), the @@ -4499,7 +4499,7 @@ type NoiseReducerFilterSettings struct { // Relative strength of noise reducing filter. Higher values produce stronger // filtering. - Strength *int32 + Strength int32 } // Noise reducer filter settings for spatial filter. @@ -4507,15 +4507,15 @@ type NoiseReducerSpatialFilterSettings struct { // Specify strength of post noise reduction sharpening filter, with 0 disabling the // filter and 3 enabling it at maximum strength. - PostFilterSharpenStrength *int32 + PostFilterSharpenStrength int32 // The speed of the filter, from -2 (lower speed) to 3 (higher speed), with 0 being // the nominal value. - Speed *int32 + Speed int32 // Relative strength of noise reducing filter. Higher values produce stronger // filtering. - Strength *int32 + Strength int32 } // Noise reducer filter settings for temporal filter. @@ -4524,7 +4524,7 @@ type NoiseReducerTemporalFilterSettings struct { // Use Aggressive mode for content that has complex motion. Higher values produce // stronger temporal filtering. This filters highly complex scenes more // aggressively and creates better VQ for low bitrate outputs. - AggressiveMode *int32 + AggressiveMode int32 // Optional. When you set Noise reducer (noiseReducer) to Temporal (TEMPORAL), you // can use this setting to apply sharpening. The default behavior, Auto (AUTO), @@ -4537,14 +4537,14 @@ type NoiseReducerTemporalFilterSettings struct { // The speed of the filter (higher number is faster). Low setting reduces bit rate // at the cost of transcode time, high setting improves transcode time at the cost // of bit rate. - Speed *int32 + Speed int32 // Specify the strength of the noise reducing filter on this output. Higher values // produce stronger filtering. We recommend the following value ranges, depending // on the result that you want: * 0-2 for complexity reduction with minimal // sharpness loss * 2-8 for complexity reduction with image preservation * 8-16 for // a high level of complexity reduction - Strength *int32 + Strength int32 } // Required when you set Codec, under AudioDescriptions>CodecSettings, to the value @@ -4554,16 +4554,16 @@ type OpusSettings struct { // Optional. Specify the average bitrate in bits per second. Valid values are // multiples of 8000, from 32000 through 192000. The default value is 96000, which // we recommend for quality and bandwidth. - Bitrate *int32 + Bitrate int32 // Specify the number of channels in this output audio track. Choosing Mono on the // console gives you 1 output channel; choosing Stereo gives you 2. In the API, // valid values are 1 and 2. - Channels *int32 + Channels int32 // Optional. Sample rate in hz. Valid values are 16000, 24000, and 48000. The // default value is 48000. - SampleRate *int32 + SampleRate int32 } // An output object describes the settings for a single output file or stream in an @@ -4573,12 +4573,12 @@ type Output struct { // (AudioDescriptions) contains groups of audio encoding settings organized by // audio codec. Include one instance of (AudioDescriptions) per output. // (AudioDescriptions) can contain multiple groups of encoding settings. - AudioDescriptions []*AudioDescription + AudioDescriptions []AudioDescription // (CaptionDescriptions) contains groups of captions settings. For each output that // has captions, include one instance of (CaptionDescriptions). // (CaptionDescriptions) can contain multiple groups of captions settings. - CaptionDescriptions []*CaptionDescription + CaptionDescriptions []CaptionDescription // Container specific settings. ContainerSettings *ContainerSettings @@ -4618,14 +4618,14 @@ type Output struct { type OutputChannelMapping struct { // List of input channels - InputChannels []*int32 + InputChannels []int32 } // Details regarding output type OutputDetail struct { // Duration in milliseconds - DurationInMs *int32 + DurationInMs int32 // Contains details about the output's video stream VideoDetails *VideoDetail @@ -4647,14 +4647,14 @@ type OutputGroup struct { OutputGroupSettings *OutputGroupSettings // This object holds groups of encoding settings, one group of settings per output. - Outputs []*Output + Outputs []Output } // Contains details about the output groups specified in the job settings. type OutputGroupDetail struct { // Details about the output - OutputDetails []*OutputDetail + OutputDetails []OutputDetail } // Output Group settings, including type @@ -4744,11 +4744,11 @@ type PresetSettings struct { // (AudioDescriptions) contains groups of audio encoding settings organized by // audio codec. Include one instance of (AudioDescriptions) per output. // (AudioDescriptions) can contain multiple groups of encoding settings. - AudioDescriptions []*AudioDescription + AudioDescriptions []AudioDescription // Caption settings for this preset. There can be multiple caption settings in a // single output. - CaptionDescriptions []*CaptionDescriptionPreset + CaptionDescriptions []CaptionDescriptionPreset // Container specific settings. ContainerSettings *ContainerSettings @@ -4799,7 +4799,7 @@ type ProresSettings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator *int32 + FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -4807,7 +4807,7 @@ type ProresSettings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator *int32 + FramerateNumerator int32 // Choose the scan line type for the output. Keep the default value, Progressive // (PROGRESSIVE) to create a progressive output, regardless of the scan type of @@ -4838,7 +4838,7 @@ type ProresSettings struct { // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parDenominator is 33. - ParDenominator *int32 + ParDenominator int32 // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you @@ -4846,7 +4846,7 @@ type ProresSettings struct { // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parNumerator is 40. - ParNumerator *int32 + ParNumerator int32 // Ignore this setting unless your input frame rate is 23.976 or 24 frames per // second (fps). Enable slow PAL to create a 25 fps output. When you enable slow @@ -4897,7 +4897,7 @@ type Queue struct { PricingPlan PricingPlan // The estimated number of jobs with a PROGRESSING status. - ProgressingJobsCount *int32 + ProgressingJobsCount int32 // Details about the pricing plan for your reserved queue. Required for reserved // queues and not applicable to on-demand queues. @@ -4909,7 +4909,7 @@ type Queue struct { Status QueueStatus // The estimated number of jobs with a SUBMITTED status. - SubmittedJobsCount *int32 + SubmittedJobsCount int32 // Specifies whether this on-demand queue is system or custom. System queues are // built in. You can't modify or delete system queues. You can create and modify @@ -4936,18 +4936,18 @@ type QueueTransition struct { type Rectangle struct { // Height of rectangle in pixels. Specify only even numbers. - Height *int32 + Height int32 // Width of rectangle in pixels. Specify only even numbers. - Width *int32 + Width int32 // The distance, in pixels, between the rectangle and the left edge of the video // frame. Specify only even numbers. - X *int32 + X int32 // The distance, in pixels, between the rectangle and the top edge of the video // frame. Specify only even numbers. - Y *int32 + Y int32 } // Use Manual audio remixing (RemixSettings) to adjust audio levels for each audio @@ -4964,11 +4964,11 @@ type RemixSettings struct { // Specify the number of audio channels from your input that you want to use in // your output. With remixing, you might combine or split the data in these // channels, so the number of channels in your final output might be different. - ChannelsIn *int32 + ChannelsIn int32 // Specify the number of channels in this output after remixing. Valid values: 1, // 2, 4, 6, 8... 64. (1 and even numbers to 64.) - ChannelsOut *int32 + ChannelsOut int32 } // Details about the pricing plan for your reserved queue. Required for reserved @@ -4996,7 +4996,7 @@ type ReservationPlan struct { // your existing commitment with a new 12-month commitment for a larger number of // RTS. The new commitment begins when you purchase the additional capacity. You // can't decrease the number of RTS in your reserved queue. - ReservedSlots *int32 + ReservedSlots int32 // Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED. Status ReservationPlanStatus @@ -5029,7 +5029,7 @@ type ReservationPlanSettings struct { // capacity. // // This member is required. - ReservedSlots *int32 + ReservedSlots int32 } // The Amazon Resource Name (ARN) and tags for an AWS Elemental MediaConvert @@ -5040,7 +5040,7 @@ type ResourceTags struct { Arn *string // The tags for the resource. - Tags map[string]*string + Tags map[string]string } // Optional. Have MediaConvert automatically apply Amazon S3 access control for the @@ -5121,7 +5121,7 @@ type SpekeKeyProvider struct { // Relates to SPEKE implementation. DRM system identifiers. DASH output groups // support a max of two system ids. Other group types support one system id. See // https://dashif.org/identifiers/content_protection/ for more details. - SystemIds []*string + SystemIds []string // Specify the URL to the key server that your SPEKE-compliant DRM key provider // uses to provide keys for encrypting your content. @@ -5142,13 +5142,13 @@ type SpekeKeyProviderCmaf struct { // MediaConvert creates as part of this CMAF package. The DASH manifest can // currently signal up to three system IDs. For more information, see // https://dashif.org/identifiers/content_protection/. - DashSignaledSystemIds []*string + DashSignaledSystemIds []string // Specify the DRM system ID that you want signaled in the HLS manifest that // MediaConvert creates as part of this CMAF package. The HLS manifest can // currently signal only one system ID. For more information, see // https://dashif.org/identifiers/content_protection/. - HlsSignaledSystemIds []*string + HlsSignaledSystemIds []string // Specify the resource ID that your SPEKE-compliant key provider uses to identify // this content. @@ -5212,7 +5212,7 @@ type TimecodeBurnin struct { // Use Font Size (FontSize) to set the font size of any burned-in timecode. Valid // values are 10, 16, 32, 48. - FontSize *int32 + FontSize int32 // Use Position (Position) under under Timecode burn-in (TimecodeBurnIn) to specify // the location the burned-in timecode on output video. @@ -5278,7 +5278,7 @@ type TimecodeConfig struct { type TimedMetadataInsertion struct { // Id3Insertions contains the array of Id3Insertion instances. - Id3Insertions []*Id3Insertion + Id3Insertions []Id3Insertion } // Information about when jobs are submitted, started, and finished is specified in @@ -5307,7 +5307,7 @@ type TrackSourceSettings struct { // example, use 1 to select the captions asset that is listed first in the CPL. To // include more than one captions track in your job outputs, create multiple input // captions selectors. Specify one track per selector. - TrackNumber *int32 + TrackNumber int32 } // Settings specific to TTML caption outputs, including Pass style information @@ -5354,7 +5354,7 @@ type Vc3Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator *int32 + FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -5362,7 +5362,7 @@ type Vc3Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator *int32 + FramerateNumerator int32 // Optional. Choose the scan line type for this output. If you don't specify a // value, MediaConvert will create a progressive output. @@ -5494,12 +5494,12 @@ type VideoDescription struct { // Applies only if you set AFD Signaling(AfdSignaling) to Fixed (FIXED). Use Fixed // (FixedAfd) to specify a four-bit AFD value which the service will write on all // frames of this video output. - FixedAfd *int32 + FixedAfd int32 // Use the Height (Height) setting to define the video resolution height for this // output. Specify in pixels. If you don't provide a value here, the service will // use the input height. - Height *int32 + Height int32 // Use Selection placement (position) to define the video area in your output // frame. The area outside of the rectangle that you specify here is black. @@ -5527,7 +5527,7 @@ type VideoDescription struct { // Sharpness only applies if your output resolution is different from your input // resolution. 0 is the softest setting, 100 the sharpest, and 50 recommended for // most content. - Sharpness *int32 + Sharpness int32 // Applies only to H.264, H.265, MPEG2, and ProRes outputs. Only enable Timecode // insertion when the input frame rate is identical to the output frame rate. To @@ -5551,17 +5551,17 @@ type VideoDescription struct { // Use Width (Width) to define the video resolution width, in pixels, for this // output. If you don't provide a value here, the service will use the input width. - Width *int32 + Width int32 } // Contains details about the output's video stream type VideoDetail struct { // Height in pixels for the output - HeightInPx *int32 + HeightInPx int32 // Width in pixels for the output - WidthInPx *int32 + WidthInPx int32 } // Find additional transcoding features under Preprocessors (VideoPreprocessors). @@ -5653,11 +5653,11 @@ type VideoSelector struct { // value as an integer; the system automatically converts it to the hexidecimal // value. For example, 257 selects PID 0x101. A PID, or packet identifier, is an // identifier for a set of data in an MPEG-2 transport stream container. - Pid *int32 + Pid int32 // Selects a specific program from within a multi-program transport stream. Note // that Quad 4K is not currently supported. - ProgramNumber *int32 + ProgramNumber int32 // Use Rotate (InputRotate) to specify how the service rotates your video. You can // choose automatic rotation or specify a rotation. You can specify a clockwise @@ -5678,17 +5678,17 @@ type VorbisSettings struct { // Optional. Specify the number of channels in this output audio track. Choosing // Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In // the API, valid values are 1 and 2. The default value is 2. - Channels *int32 + Channels int32 // Optional. Specify the audio sample rate in Hz. Valid values are 22050, 32000, // 44100, and 48000. The default value is 48000. - SampleRate *int32 + SampleRate int32 // Optional. Specify the variable audio quality of this Vorbis output from -1 // (lowest quality, ~45 kbit/s) to 10 (highest quality, ~500 kbit/s). The default // value is 4 (~128 kbit/s). Values 5 and 6 are approximately 160 and 192 kbit/s, // respectively. - VbrQuality *int32 + VbrQuality int32 } // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the @@ -5697,7 +5697,7 @@ type Vp8Settings struct { // Target bitrate in bits/second. For example, enter five megabits per second as // 5000000. - Bitrate *int32 + Bitrate int32 // If you are using the console, use the Framerate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input @@ -5730,7 +5730,7 @@ type Vp8Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator *int32 + FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -5738,20 +5738,20 @@ type Vp8Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator *int32 + FramerateNumerator int32 // GOP Length (keyframe interval) in frames. Must be greater than zero. - GopSize *float64 + GopSize float64 // Optional. Size of buffer (HRD buffer model) in bits. For example, enter five // megabits as 5000000. - HrdBufferSize *int32 + HrdBufferSize int32 // Ignore this setting unless you set qualityTuningLevel to MULTI_PASS. Optional. // Specify the maximum bitrate in bits/second. For example, enter five megabits per // second as 5000000. The default behavior uses twice the target bitrate as the // maximum bitrate. - MaxBitrate *int32 + MaxBitrate int32 // Optional. Specify how the service determines the pixel aspect ratio (PAR) for // this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses @@ -5768,7 +5768,7 @@ type Vp8Settings struct { // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parDenominator is 33. - ParDenominator *int32 + ParDenominator int32 // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you @@ -5776,7 +5776,7 @@ type Vp8Settings struct { // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parNumerator is 40. - ParNumerator *int32 + ParNumerator int32 // Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want // to trade off encoding speed for output video quality. The default behavior is @@ -5794,7 +5794,7 @@ type Vp9Settings struct { // Target bitrate in bits/second. For example, enter five megabits per second as // 5000000. - Bitrate *int32 + Bitrate int32 // If you are using the console, use the Framerate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input @@ -5827,7 +5827,7 @@ type Vp9Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator *int32 + FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -5835,20 +5835,20 @@ type Vp9Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator *int32 + FramerateNumerator int32 // GOP Length (keyframe interval) in frames. Must be greater than zero. - GopSize *float64 + GopSize float64 // Size of buffer (HRD buffer model) in bits. For example, enter five megabits as // 5000000. - HrdBufferSize *int32 + HrdBufferSize int32 // Ignore this setting unless you set qualityTuningLevel to MULTI_PASS. Optional. // Specify the maximum bitrate in bits/second. For example, enter five megabits per // second as 5000000. The default behavior uses twice the target bitrate as the // maximum bitrate. - MaxBitrate *int32 + MaxBitrate int32 // Optional. Specify how the service determines the pixel aspect ratio for this // output. The default behavior is to use the same pixel aspect ratio as your input @@ -5861,7 +5861,7 @@ type Vp9Settings struct { // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parDenominator is 33. - ParDenominator *int32 + ParDenominator int32 // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you @@ -5869,7 +5869,7 @@ type Vp9Settings struct { // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parNumerator is 40. - ParNumerator *int32 + ParNumerator int32 // Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want // to trade off encoding speed for output video quality. The default behavior is @@ -5887,11 +5887,11 @@ type WavSettings struct { // Specify Bit depth (BitDepth), in bits per sample, to choose the encoding quality // for this audio track. - BitDepth *int32 + BitDepth int32 // Specify the number of channels in this output audio track. Valid values are 1 // and even numbers up to 64. For example, 1, 2, 4, 6, and so on, up to 64. - Channels *int32 + Channels int32 // The service defaults to using RIFF for WAV outputs. If your output audio is // likely to exceed 4 GB in file size, or if you otherwise need the extended @@ -5899,5 +5899,5 @@ type WavSettings struct { Format WavFormat // Sample rate in Hz. - SampleRate *int32 + SampleRate int32 } diff --git a/service/mediaconvert/validators.go b/service/mediaconvert/validators.go index 8c34cb6baf6..e50bf210585 100644 --- a/service/mediaconvert/validators.go +++ b/service/mediaconvert/validators.go @@ -510,9 +510,6 @@ func validateReservationPlanSettings(v *types.ReservationPlanSettings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReservationPlanSettings"} - if v.ReservedSlots == nil { - invalidParams.Add(smithy.NewErrParamRequired("ReservedSlots")) - } if len(v.Commitment) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Commitment")) } diff --git a/service/medialive/api_op_BatchDelete.go b/service/medialive/api_op_BatchDelete.go index f79d27e9dc3..c38d6e6ab19 100644 --- a/service/medialive/api_op_BatchDelete.go +++ b/service/medialive/api_op_BatchDelete.go @@ -31,26 +31,26 @@ func (c *Client) BatchDelete(ctx context.Context, params *BatchDeleteInput, optF type BatchDeleteInput struct { // List of channel IDs - ChannelIds []*string + ChannelIds []string // List of input IDs - InputIds []*string + InputIds []string // List of input security group IDs - InputSecurityGroupIds []*string + InputSecurityGroupIds []string // List of multiplex IDs - MultiplexIds []*string + MultiplexIds []string } // Placeholder documentation for BatchDeleteResponse type BatchDeleteOutput struct { // List of failed operations - Failed []*types.BatchFailedResultModel + Failed []types.BatchFailedResultModel // List of successful operations - Successful []*types.BatchSuccessfulResultModel + Successful []types.BatchSuccessfulResultModel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_BatchStart.go b/service/medialive/api_op_BatchStart.go index 3be65669946..75f01daa642 100644 --- a/service/medialive/api_op_BatchStart.go +++ b/service/medialive/api_op_BatchStart.go @@ -31,20 +31,20 @@ func (c *Client) BatchStart(ctx context.Context, params *BatchStartInput, optFns type BatchStartInput struct { // List of channel IDs - ChannelIds []*string + ChannelIds []string // List of multiplex IDs - MultiplexIds []*string + MultiplexIds []string } // Placeholder documentation for BatchStartResponse type BatchStartOutput struct { // List of failed operations - Failed []*types.BatchFailedResultModel + Failed []types.BatchFailedResultModel // List of successful operations - Successful []*types.BatchSuccessfulResultModel + Successful []types.BatchSuccessfulResultModel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_BatchStop.go b/service/medialive/api_op_BatchStop.go index 0d6d41fd1f5..e4329e5db73 100644 --- a/service/medialive/api_op_BatchStop.go +++ b/service/medialive/api_op_BatchStop.go @@ -31,20 +31,20 @@ func (c *Client) BatchStop(ctx context.Context, params *BatchStopInput, optFns . type BatchStopInput struct { // List of channel IDs - ChannelIds []*string + ChannelIds []string // List of multiplex IDs - MultiplexIds []*string + MultiplexIds []string } // Placeholder documentation for BatchStopResponse type BatchStopOutput struct { // List of failed operations - Failed []*types.BatchFailedResultModel + Failed []types.BatchFailedResultModel // List of successful operations - Successful []*types.BatchSuccessfulResultModel + Successful []types.BatchSuccessfulResultModel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_CreateChannel.go b/service/medialive/api_op_CreateChannel.go index 3a9a4ebe7bf..905b084063d 100644 --- a/service/medialive/api_op_CreateChannel.go +++ b/service/medialive/api_op_CreateChannel.go @@ -39,13 +39,13 @@ type CreateChannelInput struct { ChannelClass types.ChannelClass // Placeholder documentation for __listOfOutputDestination - Destinations []*types.OutputDestination + Destinations []types.OutputDestination // Encoder Settings EncoderSettings *types.EncoderSettings // List of input attachments for channel. - InputAttachments []*types.InputAttachment + InputAttachments []types.InputAttachment // Specification of network and file inputs for this channel InputSpecification *types.InputSpecification @@ -68,7 +68,7 @@ type CreateChannelInput struct { RoleArn *string // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string } // Placeholder documentation for CreateChannelResponse diff --git a/service/medialive/api_op_CreateInput.go b/service/medialive/api_op_CreateInput.go index f610c718d7d..009b5b19756 100644 --- a/service/medialive/api_op_CreateInput.go +++ b/service/medialive/api_op_CreateInput.go @@ -32,19 +32,19 @@ func (c *Client) CreateInput(ctx context.Context, params *CreateInputInput, optF type CreateInputInput struct { // Destination settings for PUSH type inputs. - Destinations []*types.InputDestinationRequest + Destinations []types.InputDestinationRequest // Settings for the devices. - InputDevices []*types.InputDeviceSettings + InputDevices []types.InputDeviceSettings // A list of security groups referenced by IDs to attach to the input. - InputSecurityGroups []*string + InputSecurityGroups []string // A list of the MediaConnect Flows that you want to use in this input. You can // specify as few as one Flow and presently, as many as two. The only requirement // is when you have more than one is that each Flow is in a separate Availability // Zone as this ensures your EML input is redundant to AZ issues. - MediaConnectFlows []*types.MediaConnectFlowRequest + MediaConnectFlows []types.MediaConnectFlowRequest // Name of the input. Name *string @@ -60,10 +60,10 @@ type CreateInputInput struct { // The source URLs for a PULL-type input. Every PULL type input needs exactly two // source URLs for redundancy. Only specify sources for PULL type Inputs. Leave // Destinations empty. - Sources []*types.InputSourceRequest + Sources []types.InputSourceRequest // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // Placeholder documentation for InputType Type types.InputType diff --git a/service/medialive/api_op_CreateInputSecurityGroup.go b/service/medialive/api_op_CreateInputSecurityGroup.go index f2124f5a865..8ff05ac13ba 100644 --- a/service/medialive/api_op_CreateInputSecurityGroup.go +++ b/service/medialive/api_op_CreateInputSecurityGroup.go @@ -31,10 +31,10 @@ func (c *Client) CreateInputSecurityGroup(ctx context.Context, params *CreateInp type CreateInputSecurityGroupInput struct { // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // List of IPv4 CIDR addresses to whitelist - WhitelistRules []*types.InputWhitelistRuleCidr + WhitelistRules []types.InputWhitelistRuleCidr } // Placeholder documentation for CreateInputSecurityGroupResponse diff --git a/service/medialive/api_op_CreateMultiplex.go b/service/medialive/api_op_CreateMultiplex.go index 8009952301a..8ac8bda6d4b 100644 --- a/service/medialive/api_op_CreateMultiplex.go +++ b/service/medialive/api_op_CreateMultiplex.go @@ -34,7 +34,7 @@ type CreateMultiplexInput struct { // A list of availability zones for the multiplex. You must specify exactly two. // // This member is required. - AvailabilityZones []*string + AvailabilityZones []string // Configuration for a multiplex event. // @@ -52,7 +52,7 @@ type CreateMultiplexInput struct { RequestId *string // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string } // Placeholder documentation for CreateMultiplexResponse diff --git a/service/medialive/api_op_CreateTags.go b/service/medialive/api_op_CreateTags.go index cfba78c92e1..1da5455b1d7 100644 --- a/service/medialive/api_op_CreateTags.go +++ b/service/medialive/api_op_CreateTags.go @@ -35,7 +35,7 @@ type CreateTagsInput struct { ResourceArn *string // Placeholder documentation for Tags - Tags map[string]*string + Tags map[string]string } type CreateTagsOutput struct { diff --git a/service/medialive/api_op_DeleteChannel.go b/service/medialive/api_op_DeleteChannel.go index 1a0262c6aa5..f09773b8b7d 100644 --- a/service/medialive/api_op_DeleteChannel.go +++ b/service/medialive/api_op_DeleteChannel.go @@ -52,10 +52,10 @@ type DeleteChannelOutput struct { // A list of destinations of the channel. For UDP outputs, there is one destination // per output. For other types (HLS, for example), there is one destination per // packager. - Destinations []*types.OutputDestination + Destinations []types.OutputDestination // The endpoints where outgoing connections initiate from - EgressEndpoints []*types.ChannelEgressEndpoint + EgressEndpoints []types.ChannelEgressEndpoint // Encoder Settings EncoderSettings *types.EncoderSettings @@ -64,7 +64,7 @@ type DeleteChannelOutput struct { Id *string // List of input attachments for channel. - InputAttachments []*types.InputAttachment + InputAttachments []types.InputAttachment // Specification of network and file inputs for this channel InputSpecification *types.InputSpecification @@ -76,10 +76,10 @@ type DeleteChannelOutput struct { Name *string // Runtime details for the pipelines of a running channel. - PipelineDetails []*types.PipelineDetail + PipelineDetails []types.PipelineDetail // The number of currently healthy pipelines. - PipelinesRunningCount *int32 + PipelinesRunningCount int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string @@ -88,7 +88,7 @@ type DeleteChannelOutput struct { State types.ChannelState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_DeleteMultiplex.go b/service/medialive/api_op_DeleteMultiplex.go index 3a835aadd33..8dbb443fe02 100644 --- a/service/medialive/api_op_DeleteMultiplex.go +++ b/service/medialive/api_op_DeleteMultiplex.go @@ -43,10 +43,10 @@ type DeleteMultiplexOutput struct { Arn *string // A list of availability zones for the multiplex. - AvailabilityZones []*string + AvailabilityZones []string // A list of the multiplex output destinations. - Destinations []*types.MultiplexOutputDestination + Destinations []types.MultiplexOutputDestination // The unique id of the multiplex. Id *string @@ -58,16 +58,16 @@ type DeleteMultiplexOutput struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount *int32 + PipelinesRunningCount int32 // The number of programs in the multiplex. - ProgramCount *int32 + ProgramCount int32 // The current state of the multiplex. State types.MultiplexState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_DeleteMultiplexProgram.go b/service/medialive/api_op_DeleteMultiplexProgram.go index 8a4796acfab..829b1780865 100644 --- a/service/medialive/api_op_DeleteMultiplexProgram.go +++ b/service/medialive/api_op_DeleteMultiplexProgram.go @@ -57,7 +57,7 @@ type DeleteMultiplexProgramOutput struct { // specified multiplex. Keep in mind that each multiplex pipeline connects to both // pipelines in a given source channel (the channel identified by the program). But // only one of those channel pipelines is ever active at one time. - PipelineDetails []*types.MultiplexProgramPipelineDetail + PipelineDetails []types.MultiplexProgramPipelineDetail // The name of the multiplex program. ProgramName *string diff --git a/service/medialive/api_op_DeleteReservation.go b/service/medialive/api_op_DeleteReservation.go index f34e915c7b8..77285a8fbda 100644 --- a/service/medialive/api_op_DeleteReservation.go +++ b/service/medialive/api_op_DeleteReservation.go @@ -44,13 +44,13 @@ type DeleteReservationOutput struct { Arn *string // Number of reserved resources - Count *int32 + Count int32 // Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' CurrencyCode *string // Lease duration, e.g. '12' - Duration *int32 + Duration int32 // Units for duration, e.g. 'MONTHS' DurationUnits types.OfferingDurationUnits @@ -59,7 +59,7 @@ type DeleteReservationOutput struct { End *string // One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - FixedPrice *float64 + FixedPrice float64 // User specified reservation name Name *string @@ -91,10 +91,10 @@ type DeleteReservationOutput struct { State types.ReservationState // A collection of key-value pairs - Tags map[string]*string + Tags map[string]string // Recurring usage charge for each reserved resource, e.g. '157.0' - UsagePrice *float64 + UsagePrice float64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_DeleteTags.go b/service/medialive/api_op_DeleteTags.go index 8cd1aea9657..6e0ee3c17d7 100644 --- a/service/medialive/api_op_DeleteTags.go +++ b/service/medialive/api_op_DeleteTags.go @@ -37,7 +37,7 @@ type DeleteTagsInput struct { // An array of tag keys to delete // // This member is required. - TagKeys []*string + TagKeys []string } type DeleteTagsOutput struct { diff --git a/service/medialive/api_op_DescribeChannel.go b/service/medialive/api_op_DescribeChannel.go index 642eba4b612..72d0b181b1d 100644 --- a/service/medialive/api_op_DescribeChannel.go +++ b/service/medialive/api_op_DescribeChannel.go @@ -52,10 +52,10 @@ type DescribeChannelOutput struct { // A list of destinations of the channel. For UDP outputs, there is one destination // per output. For other types (HLS, for example), there is one destination per // packager. - Destinations []*types.OutputDestination + Destinations []types.OutputDestination // The endpoints where outgoing connections initiate from - EgressEndpoints []*types.ChannelEgressEndpoint + EgressEndpoints []types.ChannelEgressEndpoint // Encoder Settings EncoderSettings *types.EncoderSettings @@ -64,7 +64,7 @@ type DescribeChannelOutput struct { Id *string // List of input attachments for channel. - InputAttachments []*types.InputAttachment + InputAttachments []types.InputAttachment // Specification of network and file inputs for this channel InputSpecification *types.InputSpecification @@ -76,10 +76,10 @@ type DescribeChannelOutput struct { Name *string // Runtime details for the pipelines of a running channel. - PipelineDetails []*types.PipelineDetail + PipelineDetails []types.PipelineDetail // The number of currently healthy pipelines. - PipelinesRunningCount *int32 + PipelinesRunningCount int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string @@ -88,7 +88,7 @@ type DescribeChannelOutput struct { State types.ChannelState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_DescribeInput.go b/service/medialive/api_op_DescribeInput.go index 4e69d41df1c..b4a7fba5bd5 100644 --- a/service/medialive/api_op_DescribeInput.go +++ b/service/medialive/api_op_DescribeInput.go @@ -44,10 +44,10 @@ type DescribeInputOutput struct { // A list of channel IDs that that input is attached to (currently an input can // only be attached to one channel). - AttachedChannels []*string + AttachedChannels []string // A list of the destinations of the input (PUSH-type). - Destinations []*types.InputDestination + Destinations []types.InputDestination // The generated ID of the input (unique for user account, immutable). Id *string @@ -62,7 +62,7 @@ type DescribeInputOutput struct { InputClass types.InputClass // Settings for the input devices. - InputDevices []*types.InputDeviceSettings + InputDevices []types.InputDeviceSettings // Certain pull input sources can be dynamic, meaning that they can have their // URL's dynamically changes during input switch actions. Presently, this @@ -70,7 +70,7 @@ type DescribeInputOutput struct { InputSourceType types.InputSourceType // A list of MediaConnect Flows for this input. - MediaConnectFlows []*types.MediaConnectFlow + MediaConnectFlows []types.MediaConnectFlow // The user-assigned name (This is a mutable value). Name *string @@ -80,16 +80,16 @@ type DescribeInputOutput struct { RoleArn *string // A list of IDs for all the Input Security Groups attached to the input. - SecurityGroups []*string + SecurityGroups []string // A list of the sources of the input (PULL-type). - Sources []*types.InputSource + Sources []types.InputSource // Placeholder documentation for InputState State types.InputState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // Placeholder documentation for InputType Type types.InputType diff --git a/service/medialive/api_op_DescribeInputDeviceThumbnail.go b/service/medialive/api_op_DescribeInputDeviceThumbnail.go index 2c20a40c068..ee03e198405 100644 --- a/service/medialive/api_op_DescribeInputDeviceThumbnail.go +++ b/service/medialive/api_op_DescribeInputDeviceThumbnail.go @@ -51,7 +51,7 @@ type DescribeInputDeviceThumbnailOutput struct { Body io.ReadCloser // The length of the content. - ContentLength *int64 + ContentLength int64 // Specifies the media type of the thumbnail. ContentType types.ContentType diff --git a/service/medialive/api_op_DescribeInputSecurityGroup.go b/service/medialive/api_op_DescribeInputSecurityGroup.go index c6aa25911bb..d1e6527862c 100644 --- a/service/medialive/api_op_DescribeInputSecurityGroup.go +++ b/service/medialive/api_op_DescribeInputSecurityGroup.go @@ -46,16 +46,16 @@ type DescribeInputSecurityGroupOutput struct { Id *string // The list of inputs currently using this Input Security Group. - Inputs []*string + Inputs []string // The current state of the Input Security Group. State types.InputSecurityGroupState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // Whitelist rules and their sync status - WhitelistRules []*types.InputWhitelistRule + WhitelistRules []types.InputWhitelistRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_DescribeMultiplex.go b/service/medialive/api_op_DescribeMultiplex.go index 85989054d15..0f64e311440 100644 --- a/service/medialive/api_op_DescribeMultiplex.go +++ b/service/medialive/api_op_DescribeMultiplex.go @@ -43,10 +43,10 @@ type DescribeMultiplexOutput struct { Arn *string // A list of availability zones for the multiplex. - AvailabilityZones []*string + AvailabilityZones []string // A list of the multiplex output destinations. - Destinations []*types.MultiplexOutputDestination + Destinations []types.MultiplexOutputDestination // The unique id of the multiplex. Id *string @@ -58,16 +58,16 @@ type DescribeMultiplexOutput struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount *int32 + PipelinesRunningCount int32 // The number of programs in the multiplex. - ProgramCount *int32 + ProgramCount int32 // The current state of the multiplex. State types.MultiplexState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_DescribeMultiplexProgram.go b/service/medialive/api_op_DescribeMultiplexProgram.go index d6bcfc99ef1..a8d74a4f90c 100644 --- a/service/medialive/api_op_DescribeMultiplexProgram.go +++ b/service/medialive/api_op_DescribeMultiplexProgram.go @@ -57,7 +57,7 @@ type DescribeMultiplexProgramOutput struct { // specified multiplex. Keep in mind that each multiplex pipeline connects to both // pipelines in a given source channel (the channel identified by the program). But // only one of those channel pipelines is ever active at one time. - PipelineDetails []*types.MultiplexProgramPipelineDetail + PipelineDetails []types.MultiplexProgramPipelineDetail // The name of the multiplex program. ProgramName *string diff --git a/service/medialive/api_op_DescribeOffering.go b/service/medialive/api_op_DescribeOffering.go index ce72b6bbf1c..6472b7c5486 100644 --- a/service/medialive/api_op_DescribeOffering.go +++ b/service/medialive/api_op_DescribeOffering.go @@ -47,13 +47,13 @@ type DescribeOfferingOutput struct { CurrencyCode *string // Lease duration, e.g. '12' - Duration *int32 + Duration int32 // Units for duration, e.g. 'MONTHS' DurationUnits types.OfferingDurationUnits // One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - FixedPrice *float64 + FixedPrice float64 // Offering description, e.g. 'HD AVC output at 10-20 Mbps, 30 fps, and standard VQ // in US West (Oregon)' @@ -72,7 +72,7 @@ type DescribeOfferingOutput struct { ResourceSpecification *types.ReservationResourceSpecification // Recurring usage charge for each reserved resource, e.g. '157.0' - UsagePrice *float64 + UsagePrice float64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_DescribeReservation.go b/service/medialive/api_op_DescribeReservation.go index f5d16776a24..8dce550001e 100644 --- a/service/medialive/api_op_DescribeReservation.go +++ b/service/medialive/api_op_DescribeReservation.go @@ -44,13 +44,13 @@ type DescribeReservationOutput struct { Arn *string // Number of reserved resources - Count *int32 + Count int32 // Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' CurrencyCode *string // Lease duration, e.g. '12' - Duration *int32 + Duration int32 // Units for duration, e.g. 'MONTHS' DurationUnits types.OfferingDurationUnits @@ -59,7 +59,7 @@ type DescribeReservationOutput struct { End *string // One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - FixedPrice *float64 + FixedPrice float64 // User specified reservation name Name *string @@ -91,10 +91,10 @@ type DescribeReservationOutput struct { State types.ReservationState // A collection of key-value pairs - Tags map[string]*string + Tags map[string]string // Recurring usage charge for each reserved resource, e.g. '157.0' - UsagePrice *float64 + UsagePrice float64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_DescribeSchedule.go b/service/medialive/api_op_DescribeSchedule.go index f2c7933c7b4..706d5e1747c 100644 --- a/service/medialive/api_op_DescribeSchedule.go +++ b/service/medialive/api_op_DescribeSchedule.go @@ -36,7 +36,7 @@ type DescribeScheduleInput struct { ChannelId *string // Placeholder documentation for MaxResults - MaxResults *int32 + MaxResults int32 // Placeholder documentation for __string NextToken *string @@ -49,7 +49,7 @@ type DescribeScheduleOutput struct { NextToken *string // The list of actions in the schedule. - ScheduleActions []*types.ScheduleAction + ScheduleActions []types.ScheduleAction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_ListChannels.go b/service/medialive/api_op_ListChannels.go index 1c427b1c247..6a345a0a691 100644 --- a/service/medialive/api_op_ListChannels.go +++ b/service/medialive/api_op_ListChannels.go @@ -31,7 +31,7 @@ func (c *Client) ListChannels(ctx context.Context, params *ListChannelsInput, op type ListChannelsInput struct { // Placeholder documentation for MaxResults - MaxResults *int32 + MaxResults int32 // Placeholder documentation for __string NextToken *string @@ -41,7 +41,7 @@ type ListChannelsInput struct { type ListChannelsOutput struct { // Placeholder documentation for __listOfChannelSummary - Channels []*types.ChannelSummary + Channels []types.ChannelSummary // Placeholder documentation for __string NextToken *string diff --git a/service/medialive/api_op_ListInputDeviceTransfers.go b/service/medialive/api_op_ListInputDeviceTransfers.go index 8ee856db9cb..f44f9bad33a 100644 --- a/service/medialive/api_op_ListInputDeviceTransfers.go +++ b/service/medialive/api_op_ListInputDeviceTransfers.go @@ -38,7 +38,7 @@ type ListInputDeviceTransfersInput struct { TransferType *string // Placeholder documentation for MaxResults - MaxResults *int32 + MaxResults int32 // Placeholder documentation for __string NextToken *string @@ -48,7 +48,7 @@ type ListInputDeviceTransfersInput struct { type ListInputDeviceTransfersOutput struct { // The list of devices that you are transferring or are being transferred to you. - InputDeviceTransfers []*types.TransferringInputDeviceSummary + InputDeviceTransfers []types.TransferringInputDeviceSummary // A token to get additional list results. NextToken *string diff --git a/service/medialive/api_op_ListInputDevices.go b/service/medialive/api_op_ListInputDevices.go index 0d6f9af478b..b9278ab6a02 100644 --- a/service/medialive/api_op_ListInputDevices.go +++ b/service/medialive/api_op_ListInputDevices.go @@ -31,7 +31,7 @@ func (c *Client) ListInputDevices(ctx context.Context, params *ListInputDevicesI type ListInputDevicesInput struct { // Placeholder documentation for MaxResults - MaxResults *int32 + MaxResults int32 // Placeholder documentation for __string NextToken *string @@ -41,7 +41,7 @@ type ListInputDevicesInput struct { type ListInputDevicesOutput struct { // The list of input devices. - InputDevices []*types.InputDeviceSummary + InputDevices []types.InputDeviceSummary // A token to get additional list results. NextToken *string diff --git a/service/medialive/api_op_ListInputSecurityGroups.go b/service/medialive/api_op_ListInputSecurityGroups.go index c4b3ff4e70c..3b49bb5a418 100644 --- a/service/medialive/api_op_ListInputSecurityGroups.go +++ b/service/medialive/api_op_ListInputSecurityGroups.go @@ -31,7 +31,7 @@ func (c *Client) ListInputSecurityGroups(ctx context.Context, params *ListInputS type ListInputSecurityGroupsInput struct { // Placeholder documentation for MaxResults - MaxResults *int32 + MaxResults int32 // Placeholder documentation for __string NextToken *string @@ -41,7 +41,7 @@ type ListInputSecurityGroupsInput struct { type ListInputSecurityGroupsOutput struct { // List of input security groups - InputSecurityGroups []*types.InputSecurityGroup + InputSecurityGroups []types.InputSecurityGroup // Placeholder documentation for __string NextToken *string diff --git a/service/medialive/api_op_ListInputs.go b/service/medialive/api_op_ListInputs.go index 6e288914795..199a1de579d 100644 --- a/service/medialive/api_op_ListInputs.go +++ b/service/medialive/api_op_ListInputs.go @@ -31,7 +31,7 @@ func (c *Client) ListInputs(ctx context.Context, params *ListInputsInput, optFns type ListInputsInput struct { // Placeholder documentation for MaxResults - MaxResults *int32 + MaxResults int32 // Placeholder documentation for __string NextToken *string @@ -41,7 +41,7 @@ type ListInputsInput struct { type ListInputsOutput struct { // Placeholder documentation for __listOfInput - Inputs []*types.Input + Inputs []types.Input // Placeholder documentation for __string NextToken *string diff --git a/service/medialive/api_op_ListMultiplexPrograms.go b/service/medialive/api_op_ListMultiplexPrograms.go index c7d4f9447e6..1b97588756e 100644 --- a/service/medialive/api_op_ListMultiplexPrograms.go +++ b/service/medialive/api_op_ListMultiplexPrograms.go @@ -36,7 +36,7 @@ type ListMultiplexProgramsInput struct { MultiplexId *string // The maximum number of items to return. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string @@ -46,7 +46,7 @@ type ListMultiplexProgramsInput struct { type ListMultiplexProgramsOutput struct { // List of multiplex programs. - MultiplexPrograms []*types.MultiplexProgramSummary + MultiplexPrograms []types.MultiplexProgramSummary // Token for the next ListMultiplexProgram request. NextToken *string diff --git a/service/medialive/api_op_ListMultiplexes.go b/service/medialive/api_op_ListMultiplexes.go index d47353b6c80..7883575fb7e 100644 --- a/service/medialive/api_op_ListMultiplexes.go +++ b/service/medialive/api_op_ListMultiplexes.go @@ -31,7 +31,7 @@ func (c *Client) ListMultiplexes(ctx context.Context, params *ListMultiplexesInp type ListMultiplexesInput struct { // The maximum number of items to return. - MaxResults *int32 + MaxResults int32 // The token to retrieve the next page of results. NextToken *string @@ -41,7 +41,7 @@ type ListMultiplexesInput struct { type ListMultiplexesOutput struct { // List of multiplexes. - Multiplexes []*types.MultiplexSummary + Multiplexes []types.MultiplexSummary // Token for the next ListMultiplexes request. NextToken *string diff --git a/service/medialive/api_op_ListOfferings.go b/service/medialive/api_op_ListOfferings.go index c3c706e2f8f..458bf21dffa 100644 --- a/service/medialive/api_op_ListOfferings.go +++ b/service/medialive/api_op_ListOfferings.go @@ -44,7 +44,7 @@ type ListOfferingsInput struct { Duration *string // Placeholder documentation for MaxResults - MaxResults *int32 + MaxResults int32 // Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS' MaximumBitrate *string @@ -75,7 +75,7 @@ type ListOfferingsOutput struct { NextToken *string // List of offerings - Offerings []*types.Offering + Offerings []types.Offering // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_ListReservations.go b/service/medialive/api_op_ListReservations.go index a50096e5d4b..16d71480de8 100644 --- a/service/medialive/api_op_ListReservations.go +++ b/service/medialive/api_op_ListReservations.go @@ -37,7 +37,7 @@ type ListReservationsInput struct { Codec *string // Placeholder documentation for MaxResults - MaxResults *int32 + MaxResults int32 // Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS' MaximumBitrate *string @@ -68,7 +68,7 @@ type ListReservationsOutput struct { NextToken *string // List of reservations - Reservations []*types.Reservation + Reservations []types.Reservation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_ListTagsForResource.go b/service/medialive/api_op_ListTagsForResource.go index 48662493dae..e3fb049338c 100644 --- a/service/medialive/api_op_ListTagsForResource.go +++ b/service/medialive/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // Placeholder documentation for Tags - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_PurchaseOffering.go b/service/medialive/api_op_PurchaseOffering.go index b117e7c0ca2..004cd48dc7e 100644 --- a/service/medialive/api_op_PurchaseOffering.go +++ b/service/medialive/api_op_PurchaseOffering.go @@ -34,7 +34,7 @@ type PurchaseOfferingInput struct { // Number of resources // // This member is required. - Count *int32 + Count int32 // Offering to purchase, e.g. '87654321' // @@ -54,7 +54,7 @@ type PurchaseOfferingInput struct { Start *string // A collection of key-value pairs - Tags map[string]*string + Tags map[string]string } // Placeholder documentation for PurchaseOfferingResponse diff --git a/service/medialive/api_op_StartChannel.go b/service/medialive/api_op_StartChannel.go index f80067e7dd4..44b95437254 100644 --- a/service/medialive/api_op_StartChannel.go +++ b/service/medialive/api_op_StartChannel.go @@ -52,10 +52,10 @@ type StartChannelOutput struct { // A list of destinations of the channel. For UDP outputs, there is one destination // per output. For other types (HLS, for example), there is one destination per // packager. - Destinations []*types.OutputDestination + Destinations []types.OutputDestination // The endpoints where outgoing connections initiate from - EgressEndpoints []*types.ChannelEgressEndpoint + EgressEndpoints []types.ChannelEgressEndpoint // Encoder Settings EncoderSettings *types.EncoderSettings @@ -64,7 +64,7 @@ type StartChannelOutput struct { Id *string // List of input attachments for channel. - InputAttachments []*types.InputAttachment + InputAttachments []types.InputAttachment // Specification of network and file inputs for this channel InputSpecification *types.InputSpecification @@ -76,10 +76,10 @@ type StartChannelOutput struct { Name *string // Runtime details for the pipelines of a running channel. - PipelineDetails []*types.PipelineDetail + PipelineDetails []types.PipelineDetail // The number of currently healthy pipelines. - PipelinesRunningCount *int32 + PipelinesRunningCount int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string @@ -88,7 +88,7 @@ type StartChannelOutput struct { State types.ChannelState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_StartMultiplex.go b/service/medialive/api_op_StartMultiplex.go index 27cdf25440d..6cd829f3b48 100644 --- a/service/medialive/api_op_StartMultiplex.go +++ b/service/medialive/api_op_StartMultiplex.go @@ -44,10 +44,10 @@ type StartMultiplexOutput struct { Arn *string // A list of availability zones for the multiplex. - AvailabilityZones []*string + AvailabilityZones []string // A list of the multiplex output destinations. - Destinations []*types.MultiplexOutputDestination + Destinations []types.MultiplexOutputDestination // The unique id of the multiplex. Id *string @@ -59,16 +59,16 @@ type StartMultiplexOutput struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount *int32 + PipelinesRunningCount int32 // The number of programs in the multiplex. - ProgramCount *int32 + ProgramCount int32 // The current state of the multiplex. State types.MultiplexState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_StopChannel.go b/service/medialive/api_op_StopChannel.go index c3bb8117507..9d59682dfe2 100644 --- a/service/medialive/api_op_StopChannel.go +++ b/service/medialive/api_op_StopChannel.go @@ -52,10 +52,10 @@ type StopChannelOutput struct { // A list of destinations of the channel. For UDP outputs, there is one destination // per output. For other types (HLS, for example), there is one destination per // packager. - Destinations []*types.OutputDestination + Destinations []types.OutputDestination // The endpoints where outgoing connections initiate from - EgressEndpoints []*types.ChannelEgressEndpoint + EgressEndpoints []types.ChannelEgressEndpoint // Encoder Settings EncoderSettings *types.EncoderSettings @@ -64,7 +64,7 @@ type StopChannelOutput struct { Id *string // List of input attachments for channel. - InputAttachments []*types.InputAttachment + InputAttachments []types.InputAttachment // Specification of network and file inputs for this channel InputSpecification *types.InputSpecification @@ -76,10 +76,10 @@ type StopChannelOutput struct { Name *string // Runtime details for the pipelines of a running channel. - PipelineDetails []*types.PipelineDetail + PipelineDetails []types.PipelineDetail // The number of currently healthy pipelines. - PipelinesRunningCount *int32 + PipelinesRunningCount int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string @@ -88,7 +88,7 @@ type StopChannelOutput struct { State types.ChannelState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_StopMultiplex.go b/service/medialive/api_op_StopMultiplex.go index 70fb9fd790d..9d4fbc0d2c7 100644 --- a/service/medialive/api_op_StopMultiplex.go +++ b/service/medialive/api_op_StopMultiplex.go @@ -44,10 +44,10 @@ type StopMultiplexOutput struct { Arn *string // A list of availability zones for the multiplex. - AvailabilityZones []*string + AvailabilityZones []string // A list of the multiplex output destinations. - Destinations []*types.MultiplexOutputDestination + Destinations []types.MultiplexOutputDestination // The unique id of the multiplex. Id *string @@ -59,16 +59,16 @@ type StopMultiplexOutput struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount *int32 + PipelinesRunningCount int32 // The number of programs in the multiplex. - ProgramCount *int32 + ProgramCount int32 // The current state of the multiplex. State types.MultiplexState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_UpdateChannel.go b/service/medialive/api_op_UpdateChannel.go index 2492e0398f0..853df0dd8ad 100644 --- a/service/medialive/api_op_UpdateChannel.go +++ b/service/medialive/api_op_UpdateChannel.go @@ -39,13 +39,13 @@ type UpdateChannelInput struct { CdiInputSpecification *types.CdiInputSpecification // A list of output destinations for this channel. - Destinations []*types.OutputDestination + Destinations []types.OutputDestination // The encoder settings for this channel. EncoderSettings *types.EncoderSettings // Placeholder documentation for __listOfInputAttachment - InputAttachments []*types.InputAttachment + InputAttachments []types.InputAttachment // Specification of network and file inputs for this channel InputSpecification *types.InputSpecification diff --git a/service/medialive/api_op_UpdateChannelClass.go b/service/medialive/api_op_UpdateChannelClass.go index db6ffca0325..9f9c3e4d209 100644 --- a/service/medialive/api_op_UpdateChannelClass.go +++ b/service/medialive/api_op_UpdateChannelClass.go @@ -41,7 +41,7 @@ type UpdateChannelClassInput struct { ChannelId *string // A list of output destinations for this channel. - Destinations []*types.OutputDestination + Destinations []types.OutputDestination } // Placeholder documentation for UpdateChannelClassResponse diff --git a/service/medialive/api_op_UpdateInput.go b/service/medialive/api_op_UpdateInput.go index 155c76275b2..97efd6d1dc1 100644 --- a/service/medialive/api_op_UpdateInput.go +++ b/service/medialive/api_op_UpdateInput.go @@ -36,20 +36,20 @@ type UpdateInputInput struct { InputId *string // Destination settings for PUSH type inputs. - Destinations []*types.InputDestinationRequest + Destinations []types.InputDestinationRequest // Settings for the devices. - InputDevices []*types.InputDeviceRequest + InputDevices []types.InputDeviceRequest // A list of security groups referenced by IDs to attach to the input. - InputSecurityGroups []*string + InputSecurityGroups []string // A list of the MediaConnect Flow ARNs that you want to use as the source of the // input. You can specify as few as one Flow and presently, as many as two. The // only requirement is when you have more than one is that each Flow is in a // separate Availability Zone as this ensures your EML input is redundant to AZ // issues. - MediaConnectFlows []*types.MediaConnectFlowRequest + MediaConnectFlows []types.MediaConnectFlowRequest // Name of the input. Name *string @@ -61,7 +61,7 @@ type UpdateInputInput struct { // The source URLs for a PULL-type input. Every PULL type input needs exactly two // source URLs for redundancy. Only specify sources for PULL type Inputs. Leave // Destinations empty. - Sources []*types.InputSourceRequest + Sources []types.InputSourceRequest } // Placeholder documentation for UpdateInputResponse diff --git a/service/medialive/api_op_UpdateInputSecurityGroup.go b/service/medialive/api_op_UpdateInputSecurityGroup.go index 25f6b202d59..1e008292910 100644 --- a/service/medialive/api_op_UpdateInputSecurityGroup.go +++ b/service/medialive/api_op_UpdateInputSecurityGroup.go @@ -37,10 +37,10 @@ type UpdateInputSecurityGroupInput struct { InputSecurityGroupId *string // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // List of IPv4 CIDR addresses to whitelist - WhitelistRules []*types.InputWhitelistRuleCidr + WhitelistRules []types.InputWhitelistRuleCidr } // Placeholder documentation for UpdateInputSecurityGroupResponse diff --git a/service/medialive/deserializers.go b/service/medialive/deserializers.go index 7ba57b909af..47a2ad084fa 100644 --- a/service/medialive/deserializers.go +++ b/service/medialive/deserializers.go @@ -2006,7 +2006,7 @@ func awsRestjson1_deserializeOpDocumentDeleteChannelOutput(v **DeleteChannelOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "cdiInputSpecification": @@ -2044,7 +2044,7 @@ func awsRestjson1_deserializeOpDocumentDeleteChannelOutput(v **DeleteChannelOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "inputAttachments": @@ -2072,7 +2072,7 @@ func awsRestjson1_deserializeOpDocumentDeleteChannelOutput(v **DeleteChannelOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pipelineDetails": @@ -2090,7 +2090,7 @@ func awsRestjson1_deserializeOpDocumentDeleteChannelOutput(v **DeleteChannelOutp if err != nil { return err } - sv.PipelinesRunningCount = ptr.Int32(int32(i64)) + sv.PipelinesRunningCount = int32(i64) } case "roleArn": @@ -2099,7 +2099,7 @@ func awsRestjson1_deserializeOpDocumentDeleteChannelOutput(v **DeleteChannelOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "state": @@ -2490,7 +2490,7 @@ func awsRestjson1_deserializeOpDocumentDeleteMultiplexOutput(v **DeleteMultiplex if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "availabilityZones": @@ -2509,7 +2509,7 @@ func awsRestjson1_deserializeOpDocumentDeleteMultiplexOutput(v **DeleteMultiplex if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "multiplexSettings": @@ -2523,7 +2523,7 @@ func awsRestjson1_deserializeOpDocumentDeleteMultiplexOutput(v **DeleteMultiplex if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pipelinesRunningCount": @@ -2536,7 +2536,7 @@ func awsRestjson1_deserializeOpDocumentDeleteMultiplexOutput(v **DeleteMultiplex if err != nil { return err } - sv.PipelinesRunningCount = ptr.Int32(int32(i64)) + sv.PipelinesRunningCount = int32(i64) } case "programCount": @@ -2549,7 +2549,7 @@ func awsRestjson1_deserializeOpDocumentDeleteMultiplexOutput(v **DeleteMultiplex if err != nil { return err } - sv.ProgramCount = ptr.Int32(int32(i64)) + sv.ProgramCount = int32(i64) } case "state": @@ -2735,7 +2735,7 @@ func awsRestjson1_deserializeOpDocumentDeleteMultiplexProgramOutput(v **DeleteMu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ChannelId = &jtv + sv.ChannelId = ptr.String(jtv) } case "multiplexProgramSettings": @@ -2759,7 +2759,7 @@ func awsRestjson1_deserializeOpDocumentDeleteMultiplexProgramOutput(v **DeleteMu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ProgramName = &jtv + sv.ProgramName = ptr.String(jtv) } default: @@ -2931,7 +2931,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "count": @@ -2944,7 +2944,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "currencyCode": @@ -2953,7 +2953,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "duration": @@ -2966,7 +2966,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "durationUnits": @@ -2984,7 +2984,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.End = &jtv + sv.End = ptr.String(jtv) } case "fixedPrice": @@ -2997,7 +2997,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if err != nil { return err } - sv.FixedPrice = &f64 + sv.FixedPrice = f64 } case "name": @@ -3006,7 +3006,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "offeringDescription": @@ -3015,7 +3015,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingDescription = &jtv + sv.OfferingDescription = ptr.String(jtv) } case "offeringId": @@ -3024,7 +3024,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingId = &jtv + sv.OfferingId = ptr.String(jtv) } case "offeringType": @@ -3042,7 +3042,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "reservationId": @@ -3051,7 +3051,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ReservationId = &jtv + sv.ReservationId = ptr.String(jtv) } case "resourceSpecification": @@ -3065,7 +3065,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Start = &jtv + sv.Start = ptr.String(jtv) } case "state": @@ -3092,7 +3092,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if err != nil { return err } - sv.UsagePrice = &f64 + sv.UsagePrice = f64 } default: @@ -3454,7 +3454,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChannelOutput(v **DescribeChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "cdiInputSpecification": @@ -3492,7 +3492,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChannelOutput(v **DescribeChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "inputAttachments": @@ -3520,7 +3520,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChannelOutput(v **DescribeChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pipelineDetails": @@ -3538,7 +3538,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChannelOutput(v **DescribeChannel if err != nil { return err } - sv.PipelinesRunningCount = ptr.Int32(int32(i64)) + sv.PipelinesRunningCount = int32(i64) } case "roleArn": @@ -3547,7 +3547,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChannelOutput(v **DescribeChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "state": @@ -3730,7 +3730,7 @@ func awsRestjson1_deserializeOpDocumentDescribeInputOutput(v **DescribeInputOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "attachedChannels": @@ -3749,7 +3749,7 @@ func awsRestjson1_deserializeOpDocumentDescribeInputOutput(v **DescribeInputOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "inputClass": @@ -3786,7 +3786,7 @@ func awsRestjson1_deserializeOpDocumentDescribeInputOutput(v **DescribeInputOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "roleArn": @@ -3795,7 +3795,7 @@ func awsRestjson1_deserializeOpDocumentDescribeInputOutput(v **DescribeInputOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "securityGroups": @@ -3997,7 +3997,7 @@ func awsRestjson1_deserializeOpDocumentDescribeInputDeviceOutput(v **DescribeInp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "connectionState": @@ -4029,7 +4029,7 @@ func awsRestjson1_deserializeOpDocumentDescribeInputDeviceOutput(v **DescribeInp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "macAddress": @@ -4038,7 +4038,7 @@ func awsRestjson1_deserializeOpDocumentDescribeInputDeviceOutput(v **DescribeInp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MacAddress = &jtv + sv.MacAddress = ptr.String(jtv) } case "name": @@ -4047,7 +4047,7 @@ func awsRestjson1_deserializeOpDocumentDescribeInputDeviceOutput(v **DescribeInp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "networkSettings": @@ -4061,7 +4061,7 @@ func awsRestjson1_deserializeOpDocumentDescribeInputDeviceOutput(v **DescribeInp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SerialNumber = &jtv + sv.SerialNumber = ptr.String(jtv) } case "type": @@ -4204,7 +4204,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeInputDeviceThumbnailOutput(v if err != nil { return err } - v.ContentLength = ptr.Int64(vv) + v.ContentLength = vv } if headerValues := response.Header.Values("Content-Type"); len(headerValues) != 0 { @@ -4394,7 +4394,7 @@ func awsRestjson1_deserializeOpDocumentDescribeInputSecurityGroupOutput(v **Desc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "id": @@ -4403,7 +4403,7 @@ func awsRestjson1_deserializeOpDocumentDescribeInputSecurityGroupOutput(v **Desc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "inputs": @@ -4596,7 +4596,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMultiplexOutput(v **DescribeMulti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "availabilityZones": @@ -4615,7 +4615,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMultiplexOutput(v **DescribeMulti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "multiplexSettings": @@ -4629,7 +4629,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMultiplexOutput(v **DescribeMulti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pipelinesRunningCount": @@ -4642,7 +4642,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMultiplexOutput(v **DescribeMulti if err != nil { return err } - sv.PipelinesRunningCount = ptr.Int32(int32(i64)) + sv.PipelinesRunningCount = int32(i64) } case "programCount": @@ -4655,7 +4655,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMultiplexOutput(v **DescribeMulti if err != nil { return err } - sv.ProgramCount = ptr.Int32(int32(i64)) + sv.ProgramCount = int32(i64) } case "state": @@ -4838,7 +4838,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMultiplexProgramOutput(v **Descri if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ChannelId = &jtv + sv.ChannelId = ptr.String(jtv) } case "multiplexProgramSettings": @@ -4862,7 +4862,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMultiplexProgramOutput(v **Descri if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ProgramName = &jtv + sv.ProgramName = ptr.String(jtv) } default: @@ -5031,7 +5031,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOfferingOutput(v **DescribeOfferi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "currencyCode": @@ -5040,7 +5040,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOfferingOutput(v **DescribeOfferi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "duration": @@ -5053,7 +5053,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOfferingOutput(v **DescribeOfferi if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "durationUnits": @@ -5075,7 +5075,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOfferingOutput(v **DescribeOfferi if err != nil { return err } - sv.FixedPrice = &f64 + sv.FixedPrice = f64 } case "offeringDescription": @@ -5084,7 +5084,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOfferingOutput(v **DescribeOfferi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingDescription = &jtv + sv.OfferingDescription = ptr.String(jtv) } case "offeringId": @@ -5093,7 +5093,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOfferingOutput(v **DescribeOfferi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingId = &jtv + sv.OfferingId = ptr.String(jtv) } case "offeringType": @@ -5111,7 +5111,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOfferingOutput(v **DescribeOfferi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "resourceSpecification": @@ -5129,7 +5129,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOfferingOutput(v **DescribeOfferi if err != nil { return err } - sv.UsagePrice = &f64 + sv.UsagePrice = f64 } default: @@ -5298,7 +5298,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "count": @@ -5311,7 +5311,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "currencyCode": @@ -5320,7 +5320,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "duration": @@ -5333,7 +5333,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "durationUnits": @@ -5351,7 +5351,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.End = &jtv + sv.End = ptr.String(jtv) } case "fixedPrice": @@ -5364,7 +5364,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if err != nil { return err } - sv.FixedPrice = &f64 + sv.FixedPrice = f64 } case "name": @@ -5373,7 +5373,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "offeringDescription": @@ -5382,7 +5382,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingDescription = &jtv + sv.OfferingDescription = ptr.String(jtv) } case "offeringId": @@ -5391,7 +5391,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingId = &jtv + sv.OfferingId = ptr.String(jtv) } case "offeringType": @@ -5409,7 +5409,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "reservationId": @@ -5418,7 +5418,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ReservationId = &jtv + sv.ReservationId = ptr.String(jtv) } case "resourceSpecification": @@ -5432,7 +5432,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Start = &jtv + sv.Start = ptr.String(jtv) } case "state": @@ -5459,7 +5459,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if err != nil { return err } - sv.UsagePrice = &f64 + sv.UsagePrice = f64 } default: @@ -5628,7 +5628,7 @@ func awsRestjson1_deserializeOpDocumentDescribeScheduleOutput(v **DescribeSchedu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "scheduleActions": @@ -5804,7 +5804,7 @@ func awsRestjson1_deserializeOpDocumentListChannelsOutput(v **ListChannelsOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5975,7 +5975,7 @@ func awsRestjson1_deserializeOpDocumentListInputDevicesOutput(v **ListInputDevic if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6149,7 +6149,7 @@ func awsRestjson1_deserializeOpDocumentListInputDeviceTransfersOutput(v **ListIn if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6320,7 +6320,7 @@ func awsRestjson1_deserializeOpDocumentListInputsOutput(v **ListInputsOutput, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6491,7 +6491,7 @@ func awsRestjson1_deserializeOpDocumentListInputSecurityGroupsOutput(v **ListInp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6662,7 +6662,7 @@ func awsRestjson1_deserializeOpDocumentListMultiplexesOutput(v **ListMultiplexes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6836,7 +6836,7 @@ func awsRestjson1_deserializeOpDocumentListMultiplexProgramsOutput(v **ListMulti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7002,7 +7002,7 @@ func awsRestjson1_deserializeOpDocumentListOfferingsOutput(v **ListOfferingsOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "offerings": @@ -7173,7 +7173,7 @@ func awsRestjson1_deserializeOpDocumentListReservationsOutput(v **ListReservatio if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "reservations": @@ -7781,7 +7781,7 @@ func awsRestjson1_deserializeOpDocumentStartChannelOutput(v **StartChannelOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "cdiInputSpecification": @@ -7819,7 +7819,7 @@ func awsRestjson1_deserializeOpDocumentStartChannelOutput(v **StartChannelOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "inputAttachments": @@ -7847,7 +7847,7 @@ func awsRestjson1_deserializeOpDocumentStartChannelOutput(v **StartChannelOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pipelineDetails": @@ -7865,7 +7865,7 @@ func awsRestjson1_deserializeOpDocumentStartChannelOutput(v **StartChannelOutput if err != nil { return err } - sv.PipelinesRunningCount = ptr.Int32(int32(i64)) + sv.PipelinesRunningCount = int32(i64) } case "roleArn": @@ -7874,7 +7874,7 @@ func awsRestjson1_deserializeOpDocumentStartChannelOutput(v **StartChannelOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "state": @@ -8060,7 +8060,7 @@ func awsRestjson1_deserializeOpDocumentStartMultiplexOutput(v **StartMultiplexOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "availabilityZones": @@ -8079,7 +8079,7 @@ func awsRestjson1_deserializeOpDocumentStartMultiplexOutput(v **StartMultiplexOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "multiplexSettings": @@ -8093,7 +8093,7 @@ func awsRestjson1_deserializeOpDocumentStartMultiplexOutput(v **StartMultiplexOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pipelinesRunningCount": @@ -8106,7 +8106,7 @@ func awsRestjson1_deserializeOpDocumentStartMultiplexOutput(v **StartMultiplexOu if err != nil { return err } - sv.PipelinesRunningCount = ptr.Int32(int32(i64)) + sv.PipelinesRunningCount = int32(i64) } case "programCount": @@ -8119,7 +8119,7 @@ func awsRestjson1_deserializeOpDocumentStartMultiplexOutput(v **StartMultiplexOu if err != nil { return err } - sv.ProgramCount = ptr.Int32(int32(i64)) + sv.ProgramCount = int32(i64) } case "state": @@ -8305,7 +8305,7 @@ func awsRestjson1_deserializeOpDocumentStopChannelOutput(v **StopChannelOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "cdiInputSpecification": @@ -8343,7 +8343,7 @@ func awsRestjson1_deserializeOpDocumentStopChannelOutput(v **StopChannelOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "inputAttachments": @@ -8371,7 +8371,7 @@ func awsRestjson1_deserializeOpDocumentStopChannelOutput(v **StopChannelOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pipelineDetails": @@ -8389,7 +8389,7 @@ func awsRestjson1_deserializeOpDocumentStopChannelOutput(v **StopChannelOutput, if err != nil { return err } - sv.PipelinesRunningCount = ptr.Int32(int32(i64)) + sv.PipelinesRunningCount = int32(i64) } case "roleArn": @@ -8398,7 +8398,7 @@ func awsRestjson1_deserializeOpDocumentStopChannelOutput(v **StopChannelOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "state": @@ -8584,7 +8584,7 @@ func awsRestjson1_deserializeOpDocumentStopMultiplexOutput(v **StopMultiplexOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "availabilityZones": @@ -8603,7 +8603,7 @@ func awsRestjson1_deserializeOpDocumentStopMultiplexOutput(v **StopMultiplexOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "multiplexSettings": @@ -8617,7 +8617,7 @@ func awsRestjson1_deserializeOpDocumentStopMultiplexOutput(v **StopMultiplexOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pipelinesRunningCount": @@ -8630,7 +8630,7 @@ func awsRestjson1_deserializeOpDocumentStopMultiplexOutput(v **StopMultiplexOutp if err != nil { return err } - sv.PipelinesRunningCount = ptr.Int32(int32(i64)) + sv.PipelinesRunningCount = int32(i64) } case "programCount": @@ -8643,7 +8643,7 @@ func awsRestjson1_deserializeOpDocumentStopMultiplexOutput(v **StopMultiplexOutp if err != nil { return err } - sv.ProgramCount = ptr.Int32(int32(i64)) + sv.ProgramCount = int32(i64) } case "state": @@ -9437,7 +9437,7 @@ func awsRestjson1_deserializeOpDocumentUpdateInputDeviceOutput(v **UpdateInputDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "connectionState": @@ -9469,7 +9469,7 @@ func awsRestjson1_deserializeOpDocumentUpdateInputDeviceOutput(v **UpdateInputDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "macAddress": @@ -9478,7 +9478,7 @@ func awsRestjson1_deserializeOpDocumentUpdateInputDeviceOutput(v **UpdateInputDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MacAddress = &jtv + sv.MacAddress = ptr.String(jtv) } case "name": @@ -9487,7 +9487,7 @@ func awsRestjson1_deserializeOpDocumentUpdateInputDeviceOutput(v **UpdateInputDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "networkSettings": @@ -9501,7 +9501,7 @@ func awsRestjson1_deserializeOpDocumentUpdateInputDeviceOutput(v **UpdateInputDe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SerialNumber = &jtv + sv.SerialNumber = ptr.String(jtv) } case "type": @@ -10515,7 +10515,7 @@ func awsRestjson1_deserializeErrorUnprocessableEntityException(response *smithyh return output } -func awsRestjson1_deserializeDocument__listOf__integer(v *[]*int32, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__integer(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10528,15 +10528,15 @@ func awsRestjson1_deserializeDocument__listOf__integer(v *[]*int32, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int32 + var cv []int32 if *v == nil { - cv = []*int32{} + cv = []int32{} } else { cv = *v } for _, value := range shape { - var col *int32 + var col int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -10546,7 +10546,7 @@ func awsRestjson1_deserializeDocument__listOf__integer(v *[]*int32, value interf if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } cv = append(cv, col) @@ -10555,7 +10555,7 @@ func awsRestjson1_deserializeDocument__listOf__integer(v *[]*int32, value interf return nil } -func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10568,21 +10568,21 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -10591,7 +10591,7 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return nil } -func awsRestjson1_deserializeDocument__listOfAudioChannelMapping(v *[]*types.AudioChannelMapping, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfAudioChannelMapping(v *[]types.AudioChannelMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10604,18 +10604,20 @@ func awsRestjson1_deserializeDocument__listOfAudioChannelMapping(v *[]*types.Aud return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AudioChannelMapping + var cv []types.AudioChannelMapping if *v == nil { - cv = []*types.AudioChannelMapping{} + cv = []types.AudioChannelMapping{} } else { cv = *v } for _, value := range shape { - var col *types.AudioChannelMapping - if err := awsRestjson1_deserializeDocumentAudioChannelMapping(&col, value); err != nil { + var col types.AudioChannelMapping + destAddr := &col + if err := awsRestjson1_deserializeDocumentAudioChannelMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10623,7 +10625,7 @@ func awsRestjson1_deserializeDocument__listOfAudioChannelMapping(v *[]*types.Aud return nil } -func awsRestjson1_deserializeDocument__listOfAudioDescription(v *[]*types.AudioDescription, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfAudioDescription(v *[]types.AudioDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10636,18 +10638,20 @@ func awsRestjson1_deserializeDocument__listOfAudioDescription(v *[]*types.AudioD return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AudioDescription + var cv []types.AudioDescription if *v == nil { - cv = []*types.AudioDescription{} + cv = []types.AudioDescription{} } else { cv = *v } for _, value := range shape { - var col *types.AudioDescription - if err := awsRestjson1_deserializeDocumentAudioDescription(&col, value); err != nil { + var col types.AudioDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentAudioDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10655,7 +10659,7 @@ func awsRestjson1_deserializeDocument__listOfAudioDescription(v *[]*types.AudioD return nil } -func awsRestjson1_deserializeDocument__listOfAudioSelector(v *[]*types.AudioSelector, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfAudioSelector(v *[]types.AudioSelector, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10668,18 +10672,20 @@ func awsRestjson1_deserializeDocument__listOfAudioSelector(v *[]*types.AudioSele return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AudioSelector + var cv []types.AudioSelector if *v == nil { - cv = []*types.AudioSelector{} + cv = []types.AudioSelector{} } else { cv = *v } for _, value := range shape { - var col *types.AudioSelector - if err := awsRestjson1_deserializeDocumentAudioSelector(&col, value); err != nil { + var col types.AudioSelector + destAddr := &col + if err := awsRestjson1_deserializeDocumentAudioSelector(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10687,7 +10693,7 @@ func awsRestjson1_deserializeDocument__listOfAudioSelector(v *[]*types.AudioSele return nil } -func awsRestjson1_deserializeDocument__listOfAudioTrack(v *[]*types.AudioTrack, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfAudioTrack(v *[]types.AudioTrack, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10700,18 +10706,20 @@ func awsRestjson1_deserializeDocument__listOfAudioTrack(v *[]*types.AudioTrack, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AudioTrack + var cv []types.AudioTrack if *v == nil { - cv = []*types.AudioTrack{} + cv = []types.AudioTrack{} } else { cv = *v } for _, value := range shape { - var col *types.AudioTrack - if err := awsRestjson1_deserializeDocumentAudioTrack(&col, value); err != nil { + var col types.AudioTrack + destAddr := &col + if err := awsRestjson1_deserializeDocumentAudioTrack(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10719,7 +10727,7 @@ func awsRestjson1_deserializeDocument__listOfAudioTrack(v *[]*types.AudioTrack, return nil } -func awsRestjson1_deserializeDocument__listOfBatchFailedResultModel(v *[]*types.BatchFailedResultModel, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfBatchFailedResultModel(v *[]types.BatchFailedResultModel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10732,18 +10740,20 @@ func awsRestjson1_deserializeDocument__listOfBatchFailedResultModel(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchFailedResultModel + var cv []types.BatchFailedResultModel if *v == nil { - cv = []*types.BatchFailedResultModel{} + cv = []types.BatchFailedResultModel{} } else { cv = *v } for _, value := range shape { - var col *types.BatchFailedResultModel - if err := awsRestjson1_deserializeDocumentBatchFailedResultModel(&col, value); err != nil { + var col types.BatchFailedResultModel + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchFailedResultModel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10751,7 +10761,7 @@ func awsRestjson1_deserializeDocument__listOfBatchFailedResultModel(v *[]*types. return nil } -func awsRestjson1_deserializeDocument__listOfBatchSuccessfulResultModel(v *[]*types.BatchSuccessfulResultModel, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfBatchSuccessfulResultModel(v *[]types.BatchSuccessfulResultModel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10764,18 +10774,20 @@ func awsRestjson1_deserializeDocument__listOfBatchSuccessfulResultModel(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchSuccessfulResultModel + var cv []types.BatchSuccessfulResultModel if *v == nil { - cv = []*types.BatchSuccessfulResultModel{} + cv = []types.BatchSuccessfulResultModel{} } else { cv = *v } for _, value := range shape { - var col *types.BatchSuccessfulResultModel - if err := awsRestjson1_deserializeDocumentBatchSuccessfulResultModel(&col, value); err != nil { + var col types.BatchSuccessfulResultModel + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchSuccessfulResultModel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10783,7 +10795,7 @@ func awsRestjson1_deserializeDocument__listOfBatchSuccessfulResultModel(v *[]*ty return nil } -func awsRestjson1_deserializeDocument__listOfCaptionDescription(v *[]*types.CaptionDescription, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfCaptionDescription(v *[]types.CaptionDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10796,18 +10808,20 @@ func awsRestjson1_deserializeDocument__listOfCaptionDescription(v *[]*types.Capt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CaptionDescription + var cv []types.CaptionDescription if *v == nil { - cv = []*types.CaptionDescription{} + cv = []types.CaptionDescription{} } else { cv = *v } for _, value := range shape { - var col *types.CaptionDescription - if err := awsRestjson1_deserializeDocumentCaptionDescription(&col, value); err != nil { + var col types.CaptionDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentCaptionDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10815,7 +10829,7 @@ func awsRestjson1_deserializeDocument__listOfCaptionDescription(v *[]*types.Capt return nil } -func awsRestjson1_deserializeDocument__listOfCaptionLanguageMapping(v *[]*types.CaptionLanguageMapping, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfCaptionLanguageMapping(v *[]types.CaptionLanguageMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10828,18 +10842,20 @@ func awsRestjson1_deserializeDocument__listOfCaptionLanguageMapping(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CaptionLanguageMapping + var cv []types.CaptionLanguageMapping if *v == nil { - cv = []*types.CaptionLanguageMapping{} + cv = []types.CaptionLanguageMapping{} } else { cv = *v } for _, value := range shape { - var col *types.CaptionLanguageMapping - if err := awsRestjson1_deserializeDocumentCaptionLanguageMapping(&col, value); err != nil { + var col types.CaptionLanguageMapping + destAddr := &col + if err := awsRestjson1_deserializeDocumentCaptionLanguageMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10847,7 +10863,7 @@ func awsRestjson1_deserializeDocument__listOfCaptionLanguageMapping(v *[]*types. return nil } -func awsRestjson1_deserializeDocument__listOfCaptionSelector(v *[]*types.CaptionSelector, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfCaptionSelector(v *[]types.CaptionSelector, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10860,18 +10876,20 @@ func awsRestjson1_deserializeDocument__listOfCaptionSelector(v *[]*types.Caption return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CaptionSelector + var cv []types.CaptionSelector if *v == nil { - cv = []*types.CaptionSelector{} + cv = []types.CaptionSelector{} } else { cv = *v } for _, value := range shape { - var col *types.CaptionSelector - if err := awsRestjson1_deserializeDocumentCaptionSelector(&col, value); err != nil { + var col types.CaptionSelector + destAddr := &col + if err := awsRestjson1_deserializeDocumentCaptionSelector(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10879,7 +10897,7 @@ func awsRestjson1_deserializeDocument__listOfCaptionSelector(v *[]*types.Caption return nil } -func awsRestjson1_deserializeDocument__listOfChannelEgressEndpoint(v *[]*types.ChannelEgressEndpoint, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfChannelEgressEndpoint(v *[]types.ChannelEgressEndpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10892,18 +10910,20 @@ func awsRestjson1_deserializeDocument__listOfChannelEgressEndpoint(v *[]*types.C return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ChannelEgressEndpoint + var cv []types.ChannelEgressEndpoint if *v == nil { - cv = []*types.ChannelEgressEndpoint{} + cv = []types.ChannelEgressEndpoint{} } else { cv = *v } for _, value := range shape { - var col *types.ChannelEgressEndpoint - if err := awsRestjson1_deserializeDocumentChannelEgressEndpoint(&col, value); err != nil { + var col types.ChannelEgressEndpoint + destAddr := &col + if err := awsRestjson1_deserializeDocumentChannelEgressEndpoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10911,7 +10931,7 @@ func awsRestjson1_deserializeDocument__listOfChannelEgressEndpoint(v *[]*types.C return nil } -func awsRestjson1_deserializeDocument__listOfChannelSummary(v *[]*types.ChannelSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfChannelSummary(v *[]types.ChannelSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10924,18 +10944,20 @@ func awsRestjson1_deserializeDocument__listOfChannelSummary(v *[]*types.ChannelS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ChannelSummary + var cv []types.ChannelSummary if *v == nil { - cv = []*types.ChannelSummary{} + cv = []types.ChannelSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ChannelSummary - if err := awsRestjson1_deserializeDocumentChannelSummary(&col, value); err != nil { + var col types.ChannelSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentChannelSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10943,7 +10965,7 @@ func awsRestjson1_deserializeDocument__listOfChannelSummary(v *[]*types.ChannelS return nil } -func awsRestjson1_deserializeDocument__listOfFailoverCondition(v *[]*types.FailoverCondition, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfFailoverCondition(v *[]types.FailoverCondition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10956,18 +10978,20 @@ func awsRestjson1_deserializeDocument__listOfFailoverCondition(v *[]*types.Failo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailoverCondition + var cv []types.FailoverCondition if *v == nil { - cv = []*types.FailoverCondition{} + cv = []types.FailoverCondition{} } else { cv = *v } for _, value := range shape { - var col *types.FailoverCondition - if err := awsRestjson1_deserializeDocumentFailoverCondition(&col, value); err != nil { + var col types.FailoverCondition + destAddr := &col + if err := awsRestjson1_deserializeDocumentFailoverCondition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11011,7 +11035,7 @@ func awsRestjson1_deserializeDocument__listOfHlsAdMarkers(v *[]types.HlsAdMarker return nil } -func awsRestjson1_deserializeDocument__listOfInput(v *[]*types.Input, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInput(v *[]types.Input, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11024,18 +11048,20 @@ func awsRestjson1_deserializeDocument__listOfInput(v *[]*types.Input, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Input + var cv []types.Input if *v == nil { - cv = []*types.Input{} + cv = []types.Input{} } else { cv = *v } for _, value := range shape { - var col *types.Input - if err := awsRestjson1_deserializeDocumentInput(&col, value); err != nil { + var col types.Input + destAddr := &col + if err := awsRestjson1_deserializeDocumentInput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11043,7 +11069,7 @@ func awsRestjson1_deserializeDocument__listOfInput(v *[]*types.Input, value inte return nil } -func awsRestjson1_deserializeDocument__listOfInputAttachment(v *[]*types.InputAttachment, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInputAttachment(v *[]types.InputAttachment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11056,18 +11082,20 @@ func awsRestjson1_deserializeDocument__listOfInputAttachment(v *[]*types.InputAt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputAttachment + var cv []types.InputAttachment if *v == nil { - cv = []*types.InputAttachment{} + cv = []types.InputAttachment{} } else { cv = *v } for _, value := range shape { - var col *types.InputAttachment - if err := awsRestjson1_deserializeDocumentInputAttachment(&col, value); err != nil { + var col types.InputAttachment + destAddr := &col + if err := awsRestjson1_deserializeDocumentInputAttachment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11075,7 +11103,7 @@ func awsRestjson1_deserializeDocument__listOfInputAttachment(v *[]*types.InputAt return nil } -func awsRestjson1_deserializeDocument__listOfInputChannelLevel(v *[]*types.InputChannelLevel, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInputChannelLevel(v *[]types.InputChannelLevel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11088,18 +11116,20 @@ func awsRestjson1_deserializeDocument__listOfInputChannelLevel(v *[]*types.Input return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputChannelLevel + var cv []types.InputChannelLevel if *v == nil { - cv = []*types.InputChannelLevel{} + cv = []types.InputChannelLevel{} } else { cv = *v } for _, value := range shape { - var col *types.InputChannelLevel - if err := awsRestjson1_deserializeDocumentInputChannelLevel(&col, value); err != nil { + var col types.InputChannelLevel + destAddr := &col + if err := awsRestjson1_deserializeDocumentInputChannelLevel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11107,7 +11137,7 @@ func awsRestjson1_deserializeDocument__listOfInputChannelLevel(v *[]*types.Input return nil } -func awsRestjson1_deserializeDocument__listOfInputDestination(v *[]*types.InputDestination, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInputDestination(v *[]types.InputDestination, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11120,18 +11150,20 @@ func awsRestjson1_deserializeDocument__listOfInputDestination(v *[]*types.InputD return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputDestination + var cv []types.InputDestination if *v == nil { - cv = []*types.InputDestination{} + cv = []types.InputDestination{} } else { cv = *v } for _, value := range shape { - var col *types.InputDestination - if err := awsRestjson1_deserializeDocumentInputDestination(&col, value); err != nil { + var col types.InputDestination + destAddr := &col + if err := awsRestjson1_deserializeDocumentInputDestination(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11139,7 +11171,7 @@ func awsRestjson1_deserializeDocument__listOfInputDestination(v *[]*types.InputD return nil } -func awsRestjson1_deserializeDocument__listOfInputDeviceSettings(v *[]*types.InputDeviceSettings, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInputDeviceSettings(v *[]types.InputDeviceSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11152,18 +11184,20 @@ func awsRestjson1_deserializeDocument__listOfInputDeviceSettings(v *[]*types.Inp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputDeviceSettings + var cv []types.InputDeviceSettings if *v == nil { - cv = []*types.InputDeviceSettings{} + cv = []types.InputDeviceSettings{} } else { cv = *v } for _, value := range shape { - var col *types.InputDeviceSettings - if err := awsRestjson1_deserializeDocumentInputDeviceSettings(&col, value); err != nil { + var col types.InputDeviceSettings + destAddr := &col + if err := awsRestjson1_deserializeDocumentInputDeviceSettings(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11171,7 +11205,7 @@ func awsRestjson1_deserializeDocument__listOfInputDeviceSettings(v *[]*types.Inp return nil } -func awsRestjson1_deserializeDocument__listOfInputDeviceSummary(v *[]*types.InputDeviceSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInputDeviceSummary(v *[]types.InputDeviceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11184,18 +11218,20 @@ func awsRestjson1_deserializeDocument__listOfInputDeviceSummary(v *[]*types.Inpu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputDeviceSummary + var cv []types.InputDeviceSummary if *v == nil { - cv = []*types.InputDeviceSummary{} + cv = []types.InputDeviceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.InputDeviceSummary - if err := awsRestjson1_deserializeDocumentInputDeviceSummary(&col, value); err != nil { + var col types.InputDeviceSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentInputDeviceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11203,7 +11239,7 @@ func awsRestjson1_deserializeDocument__listOfInputDeviceSummary(v *[]*types.Inpu return nil } -func awsRestjson1_deserializeDocument__listOfInputSecurityGroup(v *[]*types.InputSecurityGroup, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInputSecurityGroup(v *[]types.InputSecurityGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11216,18 +11252,20 @@ func awsRestjson1_deserializeDocument__listOfInputSecurityGroup(v *[]*types.Inpu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputSecurityGroup + var cv []types.InputSecurityGroup if *v == nil { - cv = []*types.InputSecurityGroup{} + cv = []types.InputSecurityGroup{} } else { cv = *v } for _, value := range shape { - var col *types.InputSecurityGroup - if err := awsRestjson1_deserializeDocumentInputSecurityGroup(&col, value); err != nil { + var col types.InputSecurityGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentInputSecurityGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11235,7 +11273,7 @@ func awsRestjson1_deserializeDocument__listOfInputSecurityGroup(v *[]*types.Inpu return nil } -func awsRestjson1_deserializeDocument__listOfInputSource(v *[]*types.InputSource, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInputSource(v *[]types.InputSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11248,18 +11286,20 @@ func awsRestjson1_deserializeDocument__listOfInputSource(v *[]*types.InputSource return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputSource + var cv []types.InputSource if *v == nil { - cv = []*types.InputSource{} + cv = []types.InputSource{} } else { cv = *v } for _, value := range shape { - var col *types.InputSource - if err := awsRestjson1_deserializeDocumentInputSource(&col, value); err != nil { + var col types.InputSource + destAddr := &col + if err := awsRestjson1_deserializeDocumentInputSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11267,7 +11307,7 @@ func awsRestjson1_deserializeDocument__listOfInputSource(v *[]*types.InputSource return nil } -func awsRestjson1_deserializeDocument__listOfInputWhitelistRule(v *[]*types.InputWhitelistRule, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfInputWhitelistRule(v *[]types.InputWhitelistRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11280,18 +11320,20 @@ func awsRestjson1_deserializeDocument__listOfInputWhitelistRule(v *[]*types.Inpu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputWhitelistRule + var cv []types.InputWhitelistRule if *v == nil { - cv = []*types.InputWhitelistRule{} + cv = []types.InputWhitelistRule{} } else { cv = *v } for _, value := range shape { - var col *types.InputWhitelistRule - if err := awsRestjson1_deserializeDocumentInputWhitelistRule(&col, value); err != nil { + var col types.InputWhitelistRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentInputWhitelistRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11299,7 +11341,7 @@ func awsRestjson1_deserializeDocument__listOfInputWhitelistRule(v *[]*types.Inpu return nil } -func awsRestjson1_deserializeDocument__listOfMediaConnectFlow(v *[]*types.MediaConnectFlow, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfMediaConnectFlow(v *[]types.MediaConnectFlow, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11312,18 +11354,20 @@ func awsRestjson1_deserializeDocument__listOfMediaConnectFlow(v *[]*types.MediaC return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MediaConnectFlow + var cv []types.MediaConnectFlow if *v == nil { - cv = []*types.MediaConnectFlow{} + cv = []types.MediaConnectFlow{} } else { cv = *v } for _, value := range shape { - var col *types.MediaConnectFlow - if err := awsRestjson1_deserializeDocumentMediaConnectFlow(&col, value); err != nil { + var col types.MediaConnectFlow + destAddr := &col + if err := awsRestjson1_deserializeDocumentMediaConnectFlow(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11331,7 +11375,7 @@ func awsRestjson1_deserializeDocument__listOfMediaConnectFlow(v *[]*types.MediaC return nil } -func awsRestjson1_deserializeDocument__listOfMediaPackageOutputDestinationSettings(v *[]*types.MediaPackageOutputDestinationSettings, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfMediaPackageOutputDestinationSettings(v *[]types.MediaPackageOutputDestinationSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11344,18 +11388,20 @@ func awsRestjson1_deserializeDocument__listOfMediaPackageOutputDestinationSettin return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MediaPackageOutputDestinationSettings + var cv []types.MediaPackageOutputDestinationSettings if *v == nil { - cv = []*types.MediaPackageOutputDestinationSettings{} + cv = []types.MediaPackageOutputDestinationSettings{} } else { cv = *v } for _, value := range shape { - var col *types.MediaPackageOutputDestinationSettings - if err := awsRestjson1_deserializeDocumentMediaPackageOutputDestinationSettings(&col, value); err != nil { + var col types.MediaPackageOutputDestinationSettings + destAddr := &col + if err := awsRestjson1_deserializeDocumentMediaPackageOutputDestinationSettings(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11363,7 +11409,7 @@ func awsRestjson1_deserializeDocument__listOfMediaPackageOutputDestinationSettin return nil } -func awsRestjson1_deserializeDocument__listOfMultiplexOutputDestination(v *[]*types.MultiplexOutputDestination, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfMultiplexOutputDestination(v *[]types.MultiplexOutputDestination, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11376,18 +11422,20 @@ func awsRestjson1_deserializeDocument__listOfMultiplexOutputDestination(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MultiplexOutputDestination + var cv []types.MultiplexOutputDestination if *v == nil { - cv = []*types.MultiplexOutputDestination{} + cv = []types.MultiplexOutputDestination{} } else { cv = *v } for _, value := range shape { - var col *types.MultiplexOutputDestination - if err := awsRestjson1_deserializeDocumentMultiplexOutputDestination(&col, value); err != nil { + var col types.MultiplexOutputDestination + destAddr := &col + if err := awsRestjson1_deserializeDocumentMultiplexOutputDestination(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11395,7 +11443,7 @@ func awsRestjson1_deserializeDocument__listOfMultiplexOutputDestination(v *[]*ty return nil } -func awsRestjson1_deserializeDocument__listOfMultiplexProgramPipelineDetail(v *[]*types.MultiplexProgramPipelineDetail, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfMultiplexProgramPipelineDetail(v *[]types.MultiplexProgramPipelineDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11408,18 +11456,20 @@ func awsRestjson1_deserializeDocument__listOfMultiplexProgramPipelineDetail(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MultiplexProgramPipelineDetail + var cv []types.MultiplexProgramPipelineDetail if *v == nil { - cv = []*types.MultiplexProgramPipelineDetail{} + cv = []types.MultiplexProgramPipelineDetail{} } else { cv = *v } for _, value := range shape { - var col *types.MultiplexProgramPipelineDetail - if err := awsRestjson1_deserializeDocumentMultiplexProgramPipelineDetail(&col, value); err != nil { + var col types.MultiplexProgramPipelineDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentMultiplexProgramPipelineDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11427,7 +11477,7 @@ func awsRestjson1_deserializeDocument__listOfMultiplexProgramPipelineDetail(v *[ return nil } -func awsRestjson1_deserializeDocument__listOfMultiplexProgramSummary(v *[]*types.MultiplexProgramSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfMultiplexProgramSummary(v *[]types.MultiplexProgramSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11440,18 +11490,20 @@ func awsRestjson1_deserializeDocument__listOfMultiplexProgramSummary(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MultiplexProgramSummary + var cv []types.MultiplexProgramSummary if *v == nil { - cv = []*types.MultiplexProgramSummary{} + cv = []types.MultiplexProgramSummary{} } else { cv = *v } for _, value := range shape { - var col *types.MultiplexProgramSummary - if err := awsRestjson1_deserializeDocumentMultiplexProgramSummary(&col, value); err != nil { + var col types.MultiplexProgramSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentMultiplexProgramSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11459,7 +11511,7 @@ func awsRestjson1_deserializeDocument__listOfMultiplexProgramSummary(v *[]*types return nil } -func awsRestjson1_deserializeDocument__listOfMultiplexSummary(v *[]*types.MultiplexSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfMultiplexSummary(v *[]types.MultiplexSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11472,18 +11524,20 @@ func awsRestjson1_deserializeDocument__listOfMultiplexSummary(v *[]*types.Multip return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MultiplexSummary + var cv []types.MultiplexSummary if *v == nil { - cv = []*types.MultiplexSummary{} + cv = []types.MultiplexSummary{} } else { cv = *v } for _, value := range shape { - var col *types.MultiplexSummary - if err := awsRestjson1_deserializeDocumentMultiplexSummary(&col, value); err != nil { + var col types.MultiplexSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentMultiplexSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11491,7 +11545,7 @@ func awsRestjson1_deserializeDocument__listOfMultiplexSummary(v *[]*types.Multip return nil } -func awsRestjson1_deserializeDocument__listOfOffering(v *[]*types.Offering, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfOffering(v *[]types.Offering, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11504,18 +11558,20 @@ func awsRestjson1_deserializeDocument__listOfOffering(v *[]*types.Offering, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Offering + var cv []types.Offering if *v == nil { - cv = []*types.Offering{} + cv = []types.Offering{} } else { cv = *v } for _, value := range shape { - var col *types.Offering - if err := awsRestjson1_deserializeDocumentOffering(&col, value); err != nil { + var col types.Offering + destAddr := &col + if err := awsRestjson1_deserializeDocumentOffering(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11523,7 +11579,7 @@ func awsRestjson1_deserializeDocument__listOfOffering(v *[]*types.Offering, valu return nil } -func awsRestjson1_deserializeDocument__listOfOutput(v *[]*types.Output, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfOutput(v *[]types.Output, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11536,18 +11592,20 @@ func awsRestjson1_deserializeDocument__listOfOutput(v *[]*types.Output, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Output + var cv []types.Output if *v == nil { - cv = []*types.Output{} + cv = []types.Output{} } else { cv = *v } for _, value := range shape { - var col *types.Output - if err := awsRestjson1_deserializeDocumentOutput(&col, value); err != nil { + var col types.Output + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11555,7 +11613,7 @@ func awsRestjson1_deserializeDocument__listOfOutput(v *[]*types.Output, value in return nil } -func awsRestjson1_deserializeDocument__listOfOutputDestination(v *[]*types.OutputDestination, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfOutputDestination(v *[]types.OutputDestination, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11568,18 +11626,20 @@ func awsRestjson1_deserializeDocument__listOfOutputDestination(v *[]*types.Outpu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutputDestination + var cv []types.OutputDestination if *v == nil { - cv = []*types.OutputDestination{} + cv = []types.OutputDestination{} } else { cv = *v } for _, value := range shape { - var col *types.OutputDestination - if err := awsRestjson1_deserializeDocumentOutputDestination(&col, value); err != nil { + var col types.OutputDestination + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutputDestination(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11587,7 +11647,7 @@ func awsRestjson1_deserializeDocument__listOfOutputDestination(v *[]*types.Outpu return nil } -func awsRestjson1_deserializeDocument__listOfOutputDestinationSettings(v *[]*types.OutputDestinationSettings, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfOutputDestinationSettings(v *[]types.OutputDestinationSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11600,18 +11660,20 @@ func awsRestjson1_deserializeDocument__listOfOutputDestinationSettings(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutputDestinationSettings + var cv []types.OutputDestinationSettings if *v == nil { - cv = []*types.OutputDestinationSettings{} + cv = []types.OutputDestinationSettings{} } else { cv = *v } for _, value := range shape { - var col *types.OutputDestinationSettings - if err := awsRestjson1_deserializeDocumentOutputDestinationSettings(&col, value); err != nil { + var col types.OutputDestinationSettings + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutputDestinationSettings(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11619,7 +11681,7 @@ func awsRestjson1_deserializeDocument__listOfOutputDestinationSettings(v *[]*typ return nil } -func awsRestjson1_deserializeDocument__listOfOutputGroup(v *[]*types.OutputGroup, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfOutputGroup(v *[]types.OutputGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11632,18 +11694,20 @@ func awsRestjson1_deserializeDocument__listOfOutputGroup(v *[]*types.OutputGroup return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutputGroup + var cv []types.OutputGroup if *v == nil { - cv = []*types.OutputGroup{} + cv = []types.OutputGroup{} } else { cv = *v } for _, value := range shape { - var col *types.OutputGroup - if err := awsRestjson1_deserializeDocumentOutputGroup(&col, value); err != nil { + var col types.OutputGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutputGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11651,7 +11715,7 @@ func awsRestjson1_deserializeDocument__listOfOutputGroup(v *[]*types.OutputGroup return nil } -func awsRestjson1_deserializeDocument__listOfPipelineDetail(v *[]*types.PipelineDetail, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfPipelineDetail(v *[]types.PipelineDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11664,18 +11728,20 @@ func awsRestjson1_deserializeDocument__listOfPipelineDetail(v *[]*types.Pipeline return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PipelineDetail + var cv []types.PipelineDetail if *v == nil { - cv = []*types.PipelineDetail{} + cv = []types.PipelineDetail{} } else { cv = *v } for _, value := range shape { - var col *types.PipelineDetail - if err := awsRestjson1_deserializeDocumentPipelineDetail(&col, value); err != nil { + var col types.PipelineDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentPipelineDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11683,7 +11749,7 @@ func awsRestjson1_deserializeDocument__listOfPipelineDetail(v *[]*types.Pipeline return nil } -func awsRestjson1_deserializeDocument__listOfPipelinePauseStateSettings(v *[]*types.PipelinePauseStateSettings, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfPipelinePauseStateSettings(v *[]types.PipelinePauseStateSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11696,18 +11762,20 @@ func awsRestjson1_deserializeDocument__listOfPipelinePauseStateSettings(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PipelinePauseStateSettings + var cv []types.PipelinePauseStateSettings if *v == nil { - cv = []*types.PipelinePauseStateSettings{} + cv = []types.PipelinePauseStateSettings{} } else { cv = *v } for _, value := range shape { - var col *types.PipelinePauseStateSettings - if err := awsRestjson1_deserializeDocumentPipelinePauseStateSettings(&col, value); err != nil { + var col types.PipelinePauseStateSettings + destAddr := &col + if err := awsRestjson1_deserializeDocumentPipelinePauseStateSettings(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11715,7 +11783,7 @@ func awsRestjson1_deserializeDocument__listOfPipelinePauseStateSettings(v *[]*ty return nil } -func awsRestjson1_deserializeDocument__listOfReservation(v *[]*types.Reservation, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfReservation(v *[]types.Reservation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11728,18 +11796,20 @@ func awsRestjson1_deserializeDocument__listOfReservation(v *[]*types.Reservation return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Reservation + var cv []types.Reservation if *v == nil { - cv = []*types.Reservation{} + cv = []types.Reservation{} } else { cv = *v } for _, value := range shape { - var col *types.Reservation - if err := awsRestjson1_deserializeDocumentReservation(&col, value); err != nil { + var col types.Reservation + destAddr := &col + if err := awsRestjson1_deserializeDocumentReservation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11747,7 +11817,7 @@ func awsRestjson1_deserializeDocument__listOfReservation(v *[]*types.Reservation return nil } -func awsRestjson1_deserializeDocument__listOfScheduleAction(v *[]*types.ScheduleAction, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfScheduleAction(v *[]types.ScheduleAction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11760,18 +11830,20 @@ func awsRestjson1_deserializeDocument__listOfScheduleAction(v *[]*types.Schedule return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ScheduleAction + var cv []types.ScheduleAction if *v == nil { - cv = []*types.ScheduleAction{} + cv = []types.ScheduleAction{} } else { cv = *v } for _, value := range shape { - var col *types.ScheduleAction - if err := awsRestjson1_deserializeDocumentScheduleAction(&col, value); err != nil { + var col types.ScheduleAction + destAddr := &col + if err := awsRestjson1_deserializeDocumentScheduleAction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11779,7 +11851,7 @@ func awsRestjson1_deserializeDocument__listOfScheduleAction(v *[]*types.Schedule return nil } -func awsRestjson1_deserializeDocument__listOfScte35Descriptor(v *[]*types.Scte35Descriptor, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfScte35Descriptor(v *[]types.Scte35Descriptor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11792,18 +11864,20 @@ func awsRestjson1_deserializeDocument__listOfScte35Descriptor(v *[]*types.Scte35 return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Scte35Descriptor + var cv []types.Scte35Descriptor if *v == nil { - cv = []*types.Scte35Descriptor{} + cv = []types.Scte35Descriptor{} } else { cv = *v } for _, value := range shape { - var col *types.Scte35Descriptor - if err := awsRestjson1_deserializeDocumentScte35Descriptor(&col, value); err != nil { + var col types.Scte35Descriptor + destAddr := &col + if err := awsRestjson1_deserializeDocumentScte35Descriptor(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11811,7 +11885,7 @@ func awsRestjson1_deserializeDocument__listOfScte35Descriptor(v *[]*types.Scte35 return nil } -func awsRestjson1_deserializeDocument__listOfTransferringInputDeviceSummary(v *[]*types.TransferringInputDeviceSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfTransferringInputDeviceSummary(v *[]types.TransferringInputDeviceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11824,18 +11898,20 @@ func awsRestjson1_deserializeDocument__listOfTransferringInputDeviceSummary(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TransferringInputDeviceSummary + var cv []types.TransferringInputDeviceSummary if *v == nil { - cv = []*types.TransferringInputDeviceSummary{} + cv = []types.TransferringInputDeviceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TransferringInputDeviceSummary - if err := awsRestjson1_deserializeDocumentTransferringInputDeviceSummary(&col, value); err != nil { + var col types.TransferringInputDeviceSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentTransferringInputDeviceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11843,7 +11919,7 @@ func awsRestjson1_deserializeDocument__listOfTransferringInputDeviceSummary(v *[ return nil } -func awsRestjson1_deserializeDocument__listOfValidationError(v *[]*types.ValidationError, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfValidationError(v *[]types.ValidationError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11856,18 +11932,20 @@ func awsRestjson1_deserializeDocument__listOfValidationError(v *[]*types.Validat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ValidationError + var cv []types.ValidationError if *v == nil { - cv = []*types.ValidationError{} + cv = []types.ValidationError{} } else { cv = *v } for _, value := range shape { - var col *types.ValidationError - if err := awsRestjson1_deserializeDocumentValidationError(&col, value); err != nil { + var col types.ValidationError + destAddr := &col + if err := awsRestjson1_deserializeDocumentValidationError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11875,7 +11953,7 @@ func awsRestjson1_deserializeDocument__listOfValidationError(v *[]*types.Validat return nil } -func awsRestjson1_deserializeDocument__listOfVideoDescription(v *[]*types.VideoDescription, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfVideoDescription(v *[]types.VideoDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11888,18 +11966,20 @@ func awsRestjson1_deserializeDocument__listOfVideoDescription(v *[]*types.VideoD return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VideoDescription + var cv []types.VideoDescription if *v == nil { - cv = []*types.VideoDescription{} + cv = []types.VideoDescription{} } else { cv = *v } for _, value := range shape { - var col *types.VideoDescription - if err := awsRestjson1_deserializeDocumentVideoDescription(&col, value); err != nil { + var col types.VideoDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentVideoDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11939,7 +12019,7 @@ func awsRestjson1_deserializeDocumentAacSettings(v **types.AacSettings, value in if err != nil { return err } - sv.Bitrate = &f64 + sv.Bitrate = f64 } case "codingMode": @@ -11997,7 +12077,7 @@ func awsRestjson1_deserializeDocumentAacSettings(v **types.AacSettings, value in if err != nil { return err } - sv.SampleRate = &f64 + sv.SampleRate = f64 } case "spec": @@ -12059,7 +12139,7 @@ func awsRestjson1_deserializeDocumentAc3Settings(v **types.Ac3Settings, value in if err != nil { return err } - sv.Bitrate = &f64 + sv.Bitrate = f64 } case "bitstreamMode": @@ -12090,7 +12170,7 @@ func awsRestjson1_deserializeDocumentAc3Settings(v **types.Ac3Settings, value in if err != nil { return err } - sv.Dialnorm = ptr.Int32(int32(i64)) + sv.Dialnorm = int32(i64) } case "drcProfile": @@ -12161,7 +12241,7 @@ func awsRestjson1_deserializeDocumentAncillarySourceSettings(v **types.Ancillary if err != nil { return err } - sv.SourceAncillaryChannelNumber = ptr.Int32(int32(i64)) + sv.SourceAncillaryChannelNumber = int32(i64) } default: @@ -12251,7 +12331,7 @@ func awsRestjson1_deserializeDocumentArchiveGroupSettings(v **types.ArchiveGroup if err != nil { return err } - sv.RolloverInterval = ptr.Int32(int32(i64)) + sv.RolloverInterval = int32(i64) } default: @@ -12296,7 +12376,7 @@ func awsRestjson1_deserializeDocumentArchiveOutputSettings(v **types.ArchiveOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Extension = &jtv + sv.Extension = ptr.String(jtv) } case "nameModifier": @@ -12305,7 +12385,7 @@ func awsRestjson1_deserializeDocumentArchiveOutputSettings(v **types.ArchiveOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NameModifier = &jtv + sv.NameModifier = ptr.String(jtv) } default: @@ -12416,7 +12496,7 @@ func awsRestjson1_deserializeDocumentAudioChannelMapping(v **types.AudioChannelM if err != nil { return err } - sv.OutputChannel = ptr.Int32(int32(i64)) + sv.OutputChannel = int32(i64) } default: @@ -12522,7 +12602,7 @@ func awsRestjson1_deserializeDocumentAudioDescription(v **types.AudioDescription if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AudioSelectorName = &jtv + sv.AudioSelectorName = ptr.String(jtv) } case "audioType": @@ -12554,7 +12634,7 @@ func awsRestjson1_deserializeDocumentAudioDescription(v **types.AudioDescription if !ok { return fmt.Errorf("expected __stringMin1Max35 to be of type string, got %T instead", value) } - sv.LanguageCode = &jtv + sv.LanguageCode = ptr.String(jtv) } case "languageCodeControl": @@ -12572,7 +12652,7 @@ func awsRestjson1_deserializeDocumentAudioDescription(v **types.AudioDescription if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "remixSettings": @@ -12586,7 +12666,7 @@ func awsRestjson1_deserializeDocumentAudioDescription(v **types.AudioDescription if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } default: @@ -12626,7 +12706,7 @@ func awsRestjson1_deserializeDocumentAudioLanguageSelection(v **types.AudioLangu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LanguageCode = &jtv + sv.LanguageCode = ptr.String(jtv) } case "languageSelectionPolicy": @@ -12697,7 +12777,7 @@ func awsRestjson1_deserializeDocumentAudioNormalizationSettings(v **types.AudioN if err != nil { return err } - sv.TargetLkfs = &f64 + sv.TargetLkfs = f64 } default: @@ -12737,7 +12817,7 @@ func awsRestjson1_deserializeDocumentAudioOnlyHlsSettings(v **types.AudioOnlyHls if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AudioGroupId = &jtv + sv.AudioGroupId = ptr.String(jtv) } case "audioOnlyImage": @@ -12804,7 +12884,7 @@ func awsRestjson1_deserializeDocumentAudioPidSelection(v **types.AudioPidSelecti if err != nil { return err } - sv.Pid = ptr.Int32(int32(i64)) + sv.Pid = int32(i64) } default: @@ -12844,7 +12924,7 @@ func awsRestjson1_deserializeDocumentAudioSelector(v **types.AudioSelector, valu if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "selectorSettings": @@ -12939,7 +13019,7 @@ func awsRestjson1_deserializeDocumentAudioTrack(v **types.AudioTrack, value inte if err != nil { return err } - sv.Track = ptr.Int32(int32(i64)) + sv.Track = int32(i64) } default: @@ -13019,7 +13099,7 @@ func awsRestjson1_deserializeDocumentAutomaticInputFailoverSettings(v **types.Au if err != nil { return err } - sv.ErrorClearTimeMsec = ptr.Int32(int32(i64)) + sv.ErrorClearTimeMsec = int32(i64) } case "failoverConditions": @@ -13042,7 +13122,7 @@ func awsRestjson1_deserializeDocumentAutomaticInputFailoverSettings(v **types.Au if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SecondaryInputId = &jtv + sv.SecondaryInputId = ptr.String(jtv) } default: @@ -13204,7 +13284,7 @@ func awsRestjson1_deserializeDocumentBadGatewayException(v **types.BadGatewayExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13244,7 +13324,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13284,7 +13364,7 @@ func awsRestjson1_deserializeDocumentBatchFailedResultModel(v **types.BatchFaile if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "code": @@ -13293,7 +13373,7 @@ func awsRestjson1_deserializeDocumentBatchFailedResultModel(v **types.BatchFaile if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "id": @@ -13302,7 +13382,7 @@ func awsRestjson1_deserializeDocumentBatchFailedResultModel(v **types.BatchFaile if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "message": @@ -13311,7 +13391,7 @@ func awsRestjson1_deserializeDocumentBatchFailedResultModel(v **types.BatchFaile if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13423,7 +13503,7 @@ func awsRestjson1_deserializeDocumentBatchSuccessfulResultModel(v **types.BatchS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "id": @@ -13432,7 +13512,7 @@ func awsRestjson1_deserializeDocumentBatchSuccessfulResultModel(v **types.BatchS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "state": @@ -13441,7 +13521,7 @@ func awsRestjson1_deserializeDocumentBatchSuccessfulResultModel(v **types.BatchS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } default: @@ -13500,7 +13580,7 @@ func awsRestjson1_deserializeDocumentBlackoutSlate(v **types.BlackoutSlate, valu if !ok { return fmt.Errorf("expected __stringMin34Max34 to be of type string, got %T instead", value) } - sv.NetworkId = &jtv + sv.NetworkId = ptr.String(jtv) } case "state": @@ -13571,7 +13651,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.BackgroundOpacity = ptr.Int32(int32(i64)) + sv.BackgroundOpacity = int32(i64) } case "font": @@ -13598,7 +13678,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.FontOpacity = ptr.Int32(int32(i64)) + sv.FontOpacity = int32(i64) } case "fontResolution": @@ -13611,7 +13691,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.FontResolution = ptr.Int32(int32(i64)) + sv.FontResolution = int32(i64) } case "fontSize": @@ -13620,7 +13700,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FontSize = &jtv + sv.FontSize = ptr.String(jtv) } case "outlineColor": @@ -13642,7 +13722,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.OutlineSize = ptr.Int32(int32(i64)) + sv.OutlineSize = int32(i64) } case "shadowColor": @@ -13664,7 +13744,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.ShadowOpacity = ptr.Int32(int32(i64)) + sv.ShadowOpacity = int32(i64) } case "shadowXOffset": @@ -13677,7 +13757,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.ShadowXOffset = ptr.Int32(int32(i64)) + sv.ShadowXOffset = int32(i64) } case "shadowYOffset": @@ -13690,7 +13770,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.ShadowYOffset = ptr.Int32(int32(i64)) + sv.ShadowYOffset = int32(i64) } case "teletextGridControl": @@ -13712,7 +13792,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.XPosition = ptr.Int32(int32(i64)) + sv.XPosition = int32(i64) } case "yPosition": @@ -13725,7 +13805,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.YPosition = ptr.Int32(int32(i64)) + sv.YPosition = int32(i64) } default: @@ -13765,7 +13845,7 @@ func awsRestjson1_deserializeDocumentCaptionDescription(v **types.CaptionDescrip if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CaptionSelectorName = &jtv + sv.CaptionSelectorName = ptr.String(jtv) } case "destinationSettings": @@ -13779,7 +13859,7 @@ func awsRestjson1_deserializeDocumentCaptionDescription(v **types.CaptionDescrip if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LanguageCode = &jtv + sv.LanguageCode = ptr.String(jtv) } case "languageDescription": @@ -13788,7 +13868,7 @@ func awsRestjson1_deserializeDocumentCaptionDescription(v **types.CaptionDescrip if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LanguageDescription = &jtv + sv.LanguageDescription = ptr.String(jtv) } case "name": @@ -13797,7 +13877,7 @@ func awsRestjson1_deserializeDocumentCaptionDescription(v **types.CaptionDescrip if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -13937,7 +14017,7 @@ func awsRestjson1_deserializeDocumentCaptionLanguageMapping(v **types.CaptionLan if err != nil { return err } - sv.CaptionChannel = ptr.Int32(int32(i64)) + sv.CaptionChannel = int32(i64) } case "languageCode": @@ -13946,7 +14026,7 @@ func awsRestjson1_deserializeDocumentCaptionLanguageMapping(v **types.CaptionLan if !ok { return fmt.Errorf("expected __stringMin3Max3 to be of type string, got %T instead", value) } - sv.LanguageCode = &jtv + sv.LanguageCode = ptr.String(jtv) } case "languageDescription": @@ -13955,7 +14035,7 @@ func awsRestjson1_deserializeDocumentCaptionLanguageMapping(v **types.CaptionLan if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.LanguageDescription = &jtv + sv.LanguageDescription = ptr.String(jtv) } default: @@ -13995,7 +14075,7 @@ func awsRestjson1_deserializeDocumentCaptionSelector(v **types.CaptionSelector, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LanguageCode = &jtv + sv.LanguageCode = ptr.String(jtv) } case "name": @@ -14004,7 +14084,7 @@ func awsRestjson1_deserializeDocumentCaptionSelector(v **types.CaptionSelector, if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "selectorSettings": @@ -14155,7 +14235,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "cdiInputSpecification": @@ -14193,7 +14273,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "inputAttachments": @@ -14221,7 +14301,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pipelineDetails": @@ -14239,7 +14319,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if err != nil { return err } - sv.PipelinesRunningCount = ptr.Int32(int32(i64)) + sv.PipelinesRunningCount = int32(i64) } case "roleArn": @@ -14248,7 +14328,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "state": @@ -14302,7 +14382,7 @@ func awsRestjson1_deserializeDocumentChannelEgressEndpoint(v **types.ChannelEgre if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceIp = &jtv + sv.SourceIp = ptr.String(jtv) } default: @@ -14342,7 +14422,7 @@ func awsRestjson1_deserializeDocumentChannelSummary(v **types.ChannelSummary, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "cdiInputSpecification": @@ -14375,7 +14455,7 @@ func awsRestjson1_deserializeDocumentChannelSummary(v **types.ChannelSummary, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "inputAttachments": @@ -14403,7 +14483,7 @@ func awsRestjson1_deserializeDocumentChannelSummary(v **types.ChannelSummary, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pipelinesRunningCount": @@ -14416,7 +14496,7 @@ func awsRestjson1_deserializeDocumentChannelSummary(v **types.ChannelSummary, va if err != nil { return err } - sv.PipelinesRunningCount = ptr.Int32(int32(i64)) + sv.PipelinesRunningCount = int32(i64) } case "roleArn": @@ -14425,7 +14505,7 @@ func awsRestjson1_deserializeDocumentChannelSummary(v **types.ChannelSummary, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "state": @@ -14510,7 +14590,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14554,7 +14634,7 @@ func awsRestjson1_deserializeDocumentDvbNitSettings(v **types.DvbNitSettings, va if err != nil { return err } - sv.NetworkId = ptr.Int32(int32(i64)) + sv.NetworkId = int32(i64) } case "networkName": @@ -14563,7 +14643,7 @@ func awsRestjson1_deserializeDocumentDvbNitSettings(v **types.DvbNitSettings, va if !ok { return fmt.Errorf("expected __stringMin1Max256 to be of type string, got %T instead", value) } - sv.NetworkName = &jtv + sv.NetworkName = ptr.String(jtv) } case "repInterval": @@ -14576,7 +14656,7 @@ func awsRestjson1_deserializeDocumentDvbNitSettings(v **types.DvbNitSettings, va if err != nil { return err } - sv.RepInterval = ptr.Int32(int32(i64)) + sv.RepInterval = int32(i64) } default: @@ -14629,7 +14709,7 @@ func awsRestjson1_deserializeDocumentDvbSdtSettings(v **types.DvbSdtSettings, va if err != nil { return err } - sv.RepInterval = ptr.Int32(int32(i64)) + sv.RepInterval = int32(i64) } case "serviceName": @@ -14638,7 +14718,7 @@ func awsRestjson1_deserializeDocumentDvbSdtSettings(v **types.DvbSdtSettings, va if !ok { return fmt.Errorf("expected __stringMin1Max256 to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } case "serviceProviderName": @@ -14647,7 +14727,7 @@ func awsRestjson1_deserializeDocumentDvbSdtSettings(v **types.DvbSdtSettings, va if !ok { return fmt.Errorf("expected __stringMin1Max256 to be of type string, got %T instead", value) } - sv.ServiceProviderName = &jtv + sv.ServiceProviderName = ptr.String(jtv) } default: @@ -14709,7 +14789,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.BackgroundOpacity = ptr.Int32(int32(i64)) + sv.BackgroundOpacity = int32(i64) } case "font": @@ -14736,7 +14816,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.FontOpacity = ptr.Int32(int32(i64)) + sv.FontOpacity = int32(i64) } case "fontResolution": @@ -14749,7 +14829,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.FontResolution = ptr.Int32(int32(i64)) + sv.FontResolution = int32(i64) } case "fontSize": @@ -14758,7 +14838,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FontSize = &jtv + sv.FontSize = ptr.String(jtv) } case "outlineColor": @@ -14780,7 +14860,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.OutlineSize = ptr.Int32(int32(i64)) + sv.OutlineSize = int32(i64) } case "shadowColor": @@ -14802,7 +14882,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.ShadowOpacity = ptr.Int32(int32(i64)) + sv.ShadowOpacity = int32(i64) } case "shadowXOffset": @@ -14815,7 +14895,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.ShadowXOffset = ptr.Int32(int32(i64)) + sv.ShadowXOffset = int32(i64) } case "shadowYOffset": @@ -14828,7 +14908,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.ShadowYOffset = ptr.Int32(int32(i64)) + sv.ShadowYOffset = int32(i64) } case "teletextGridControl": @@ -14850,7 +14930,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.XPosition = ptr.Int32(int32(i64)) + sv.XPosition = int32(i64) } case "yPosition": @@ -14863,7 +14943,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.YPosition = ptr.Int32(int32(i64)) + sv.YPosition = int32(i64) } default: @@ -14907,7 +14987,7 @@ func awsRestjson1_deserializeDocumentDvbSubSourceSettings(v **types.DvbSubSource if err != nil { return err } - sv.Pid = ptr.Int32(int32(i64)) + sv.Pid = int32(i64) } default: @@ -14951,7 +15031,7 @@ func awsRestjson1_deserializeDocumentDvbTdtSettings(v **types.DvbTdtSettings, va if err != nil { return err } - sv.RepInterval = ptr.Int32(int32(i64)) + sv.RepInterval = int32(i64) } default: @@ -15004,7 +15084,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.Bitrate = &f64 + sv.Bitrate = f64 } case "bitstreamMode": @@ -15044,7 +15124,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.Dialnorm = ptr.Int32(int32(i64)) + sv.Dialnorm = int32(i64) } case "drcLine": @@ -15093,7 +15173,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LoRoCenterMixLevel = &f64 + sv.LoRoCenterMixLevel = f64 } case "loRoSurroundMixLevel": @@ -15106,7 +15186,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LoRoSurroundMixLevel = &f64 + sv.LoRoSurroundMixLevel = f64 } case "ltRtCenterMixLevel": @@ -15119,7 +15199,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LtRtCenterMixLevel = &f64 + sv.LtRtCenterMixLevel = f64 } case "ltRtSurroundMixLevel": @@ -15132,7 +15212,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LtRtSurroundMixLevel = &f64 + sv.LtRtSurroundMixLevel = f64 } case "metadataControl": @@ -15235,7 +15315,7 @@ func awsRestjson1_deserializeDocumentEbuTtDDestinationSettings(v **types.EbuTtDD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FontFamily = &jtv + sv.FontFamily = ptr.String(jtv) } case "styleControl": @@ -15368,7 +15448,7 @@ func awsRestjson1_deserializeDocumentEmbeddedSourceSettings(v **types.EmbeddedSo if err != nil { return err } - sv.Source608ChannelNumber = ptr.Int32(int32(i64)) + sv.Source608ChannelNumber = int32(i64) } case "source608TrackNumber": @@ -15381,7 +15461,7 @@ func awsRestjson1_deserializeDocumentEmbeddedSourceSettings(v **types.EmbeddedSo if err != nil { return err } - sv.Source608TrackNumber = ptr.Int32(int32(i64)) + sv.Source608TrackNumber = int32(i64) } default: @@ -15623,7 +15703,7 @@ func awsRestjson1_deserializeDocumentFecOutputSettings(v **types.FecOutputSettin if err != nil { return err } - sv.ColumnDepth = ptr.Int32(int32(i64)) + sv.ColumnDepth = int32(i64) } case "includeFec": @@ -15645,7 +15725,7 @@ func awsRestjson1_deserializeDocumentFecOutputSettings(v **types.FecOutputSettin if err != nil { return err } - sv.RowLength = ptr.Int32(int32(i64)) + sv.RowLength = int32(i64) } default: @@ -15685,7 +15765,7 @@ func awsRestjson1_deserializeDocumentFixedModeScheduleActionStartSettings(v **ty if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Time = &jtv + sv.Time = ptr.String(jtv) } default: @@ -15725,7 +15805,7 @@ func awsRestjson1_deserializeDocumentFmp4HlsSettings(v **types.Fmp4HlsSettings, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AudioRenditionSets = &jtv + sv.AudioRenditionSets = ptr.String(jtv) } case "nielsenId3Behavior": @@ -15792,7 +15872,7 @@ func awsRestjson1_deserializeDocumentFollowModeScheduleActionStartSettings(v **t if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ReferenceActionName = &jtv + sv.ReferenceActionName = ptr.String(jtv) } default: @@ -15832,7 +15912,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15908,7 +15988,7 @@ func awsRestjson1_deserializeDocumentFrameCaptureOutputSettings(v **types.FrameC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NameModifier = &jtv + sv.NameModifier = ptr.String(jtv) } default: @@ -15952,7 +16032,7 @@ func awsRestjson1_deserializeDocumentFrameCaptureSettings(v **types.FrameCapture if err != nil { return err } - sv.CaptureInterval = ptr.Int32(int32(i64)) + sv.CaptureInterval = int32(i64) } case "captureIntervalUnits": @@ -16001,7 +16081,7 @@ func awsRestjson1_deserializeDocumentGatewayTimeoutException(v **types.GatewayTi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -16045,7 +16125,7 @@ func awsRestjson1_deserializeDocumentGlobalConfiguration(v **types.GlobalConfigu if err != nil { return err } - sv.InitialAudioGain = ptr.Int32(int32(i64)) + sv.InitialAudioGain = int32(i64) } case "inputEndAction": @@ -16230,7 +16310,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "bufFillPct": @@ -16243,7 +16323,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.BufFillPct = ptr.Int32(int32(i64)) + sv.BufFillPct = int32(i64) } case "bufSize": @@ -16256,7 +16336,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.BufSize = ptr.Int32(int32(i64)) + sv.BufSize = int32(i64) } case "colorMetadata": @@ -16333,7 +16413,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -16346,7 +16426,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } case "gopBReference": @@ -16368,7 +16448,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.GopClosedCadence = ptr.Int32(int32(i64)) + sv.GopClosedCadence = int32(i64) } case "gopNumBFrames": @@ -16381,7 +16461,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.GopNumBFrames = ptr.Int32(int32(i64)) + sv.GopNumBFrames = int32(i64) } case "gopSize": @@ -16394,7 +16474,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.GopSize = &f64 + sv.GopSize = f64 } case "gopSizeUnits": @@ -16434,7 +16514,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.MaxBitrate = ptr.Int32(int32(i64)) + sv.MaxBitrate = int32(i64) } case "minIInterval": @@ -16447,7 +16527,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.MinIInterval = ptr.Int32(int32(i64)) + sv.MinIInterval = int32(i64) } case "numRefFrames": @@ -16460,7 +16540,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.NumRefFrames = ptr.Int32(int32(i64)) + sv.NumRefFrames = int32(i64) } case "parControl": @@ -16482,7 +16562,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.ParDenominator = ptr.Int32(int32(i64)) + sv.ParDenominator = int32(i64) } case "parNumerator": @@ -16495,7 +16575,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.ParNumerator = ptr.Int32(int32(i64)) + sv.ParNumerator = int32(i64) } case "profile": @@ -16526,7 +16606,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.QvbrQualityLevel = ptr.Int32(int32(i64)) + sv.QvbrQualityLevel = int32(i64) } case "rateControlMode": @@ -16566,7 +16646,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.Slices = ptr.Int32(int32(i64)) + sv.Slices = int32(i64) } case "softness": @@ -16579,7 +16659,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.Softness = ptr.Int32(int32(i64)) + sv.Softness = int32(i64) } case "spatialAq": @@ -16782,7 +16862,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "bufSize": @@ -16795,7 +16875,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.BufSize = ptr.Int32(int32(i64)) + sv.BufSize = int32(i64) } case "colorMetadata": @@ -16845,7 +16925,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -16858,7 +16938,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } case "gopClosedCadence": @@ -16871,7 +16951,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.GopClosedCadence = ptr.Int32(int32(i64)) + sv.GopClosedCadence = int32(i64) } case "gopSize": @@ -16884,7 +16964,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.GopSize = &f64 + sv.GopSize = f64 } case "gopSizeUnits": @@ -16924,7 +17004,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.MaxBitrate = ptr.Int32(int32(i64)) + sv.MaxBitrate = int32(i64) } case "minIInterval": @@ -16937,7 +17017,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.MinIInterval = ptr.Int32(int32(i64)) + sv.MinIInterval = int32(i64) } case "parDenominator": @@ -16950,7 +17030,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.ParDenominator = ptr.Int32(int32(i64)) + sv.ParDenominator = int32(i64) } case "parNumerator": @@ -16963,7 +17043,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.ParNumerator = ptr.Int32(int32(i64)) + sv.ParNumerator = int32(i64) } case "profile": @@ -16985,7 +17065,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.QvbrQualityLevel = ptr.Int32(int32(i64)) + sv.QvbrQualityLevel = int32(i64) } case "rateControlMode": @@ -17025,7 +17105,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.Slices = ptr.Int32(int32(i64)) + sv.Slices = int32(i64) } case "tier": @@ -17087,7 +17167,7 @@ func awsRestjson1_deserializeDocumentHdr10Settings(v **types.Hdr10Settings, valu if err != nil { return err } - sv.MaxCll = ptr.Int32(int32(i64)) + sv.MaxCll = int32(i64) } case "maxFall": @@ -17100,7 +17180,7 @@ func awsRestjson1_deserializeDocumentHdr10Settings(v **types.Hdr10Settings, valu if err != nil { return err } - sv.MaxFall = ptr.Int32(int32(i64)) + sv.MaxFall = int32(i64) } default: @@ -17144,7 +17224,7 @@ func awsRestjson1_deserializeDocumentHlsAkamaiSettings(v **types.HlsAkamaiSettin if err != nil { return err } - sv.ConnectionRetryInterval = ptr.Int32(int32(i64)) + sv.ConnectionRetryInterval = int32(i64) } case "filecacheDuration": @@ -17157,7 +17237,7 @@ func awsRestjson1_deserializeDocumentHlsAkamaiSettings(v **types.HlsAkamaiSettin if err != nil { return err } - sv.FilecacheDuration = ptr.Int32(int32(i64)) + sv.FilecacheDuration = int32(i64) } case "httpTransferMode": @@ -17179,7 +17259,7 @@ func awsRestjson1_deserializeDocumentHlsAkamaiSettings(v **types.HlsAkamaiSettin if err != nil { return err } - sv.NumRetries = ptr.Int32(int32(i64)) + sv.NumRetries = int32(i64) } case "restartDelay": @@ -17192,7 +17272,7 @@ func awsRestjson1_deserializeDocumentHlsAkamaiSettings(v **types.HlsAkamaiSettin if err != nil { return err } - sv.RestartDelay = ptr.Int32(int32(i64)) + sv.RestartDelay = int32(i64) } case "salt": @@ -17201,7 +17281,7 @@ func awsRestjson1_deserializeDocumentHlsAkamaiSettings(v **types.HlsAkamaiSettin if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Salt = &jtv + sv.Salt = ptr.String(jtv) } case "token": @@ -17210,7 +17290,7 @@ func awsRestjson1_deserializeDocumentHlsAkamaiSettings(v **types.HlsAkamaiSettin if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Token = &jtv + sv.Token = ptr.String(jtv) } default: @@ -17254,7 +17334,7 @@ func awsRestjson1_deserializeDocumentHlsBasicPutSettings(v **types.HlsBasicPutSe if err != nil { return err } - sv.ConnectionRetryInterval = ptr.Int32(int32(i64)) + sv.ConnectionRetryInterval = int32(i64) } case "filecacheDuration": @@ -17267,7 +17347,7 @@ func awsRestjson1_deserializeDocumentHlsBasicPutSettings(v **types.HlsBasicPutSe if err != nil { return err } - sv.FilecacheDuration = ptr.Int32(int32(i64)) + sv.FilecacheDuration = int32(i64) } case "numRetries": @@ -17280,7 +17360,7 @@ func awsRestjson1_deserializeDocumentHlsBasicPutSettings(v **types.HlsBasicPutSe if err != nil { return err } - sv.NumRetries = ptr.Int32(int32(i64)) + sv.NumRetries = int32(i64) } case "restartDelay": @@ -17293,7 +17373,7 @@ func awsRestjson1_deserializeDocumentHlsBasicPutSettings(v **types.HlsBasicPutSe if err != nil { return err } - sv.RestartDelay = ptr.Int32(int32(i64)) + sv.RestartDelay = int32(i64) } default: @@ -17389,7 +17469,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BaseUrlContent = &jtv + sv.BaseUrlContent = ptr.String(jtv) } case "baseUrlContent1": @@ -17398,7 +17478,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BaseUrlContent1 = &jtv + sv.BaseUrlContent1 = ptr.String(jtv) } case "baseUrlManifest": @@ -17407,7 +17487,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BaseUrlManifest = &jtv + sv.BaseUrlManifest = ptr.String(jtv) } case "baseUrlManifest1": @@ -17416,7 +17496,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BaseUrlManifest1 = &jtv + sv.BaseUrlManifest1 = ptr.String(jtv) } case "captionLanguageMappings": @@ -17457,7 +17537,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if !ok { return fmt.Errorf("expected __stringMin32Max32 to be of type string, got %T instead", value) } - sv.ConstantIv = &jtv + sv.ConstantIv = ptr.String(jtv) } case "destination": @@ -17534,7 +17614,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.IndexNSegments = ptr.Int32(int32(i64)) + sv.IndexNSegments = int32(i64) } case "inputLossAction": @@ -17574,7 +17654,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.KeepSegments = ptr.Int32(int32(i64)) + sv.KeepSegments = int32(i64) } case "keyFormat": @@ -17583,7 +17663,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KeyFormat = &jtv + sv.KeyFormat = ptr.String(jtv) } case "keyFormatVersions": @@ -17592,7 +17672,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KeyFormatVersions = &jtv + sv.KeyFormatVersions = ptr.String(jtv) } case "keyProviderSettings": @@ -17628,7 +17708,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.MinSegmentLength = ptr.Int32(int32(i64)) + sv.MinSegmentLength = int32(i64) } case "mode": @@ -17668,7 +17748,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.ProgramDateTimePeriod = ptr.Int32(int32(i64)) + sv.ProgramDateTimePeriod = int32(i64) } case "redundantManifest": @@ -17699,7 +17779,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.SegmentLength = ptr.Int32(int32(i64)) + sv.SegmentLength = int32(i64) } case "segmentsPerSubdirectory": @@ -17712,7 +17792,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.SegmentsPerSubdirectory = ptr.Int32(int32(i64)) + sv.SegmentsPerSubdirectory = int32(i64) } case "streamInfResolution": @@ -17743,7 +17823,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.TimedMetadataId3Period = ptr.Int32(int32(i64)) + sv.TimedMetadataId3Period = int32(i64) } case "timestampDeltaMilliseconds": @@ -17756,7 +17836,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.TimestampDeltaMilliseconds = ptr.Int32(int32(i64)) + sv.TimestampDeltaMilliseconds = int32(i64) } case "tsFileMode": @@ -17805,7 +17885,7 @@ func awsRestjson1_deserializeDocumentHlsId3SegmentTaggingScheduleActionSettings( if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Tag = &jtv + sv.Tag = ptr.String(jtv) } default: @@ -17849,7 +17929,7 @@ func awsRestjson1_deserializeDocumentHlsInputSettings(v **types.HlsInputSettings if err != nil { return err } - sv.Bandwidth = ptr.Int32(int32(i64)) + sv.Bandwidth = int32(i64) } case "bufferSegments": @@ -17862,7 +17942,7 @@ func awsRestjson1_deserializeDocumentHlsInputSettings(v **types.HlsInputSettings if err != nil { return err } - sv.BufferSegments = ptr.Int32(int32(i64)) + sv.BufferSegments = int32(i64) } case "retries": @@ -17875,7 +17955,7 @@ func awsRestjson1_deserializeDocumentHlsInputSettings(v **types.HlsInputSettings if err != nil { return err } - sv.Retries = ptr.Int32(int32(i64)) + sv.Retries = int32(i64) } case "retryInterval": @@ -17888,7 +17968,7 @@ func awsRestjson1_deserializeDocumentHlsInputSettings(v **types.HlsInputSettings if err != nil { return err } - sv.RetryInterval = ptr.Int32(int32(i64)) + sv.RetryInterval = int32(i64) } default: @@ -17932,7 +18012,7 @@ func awsRestjson1_deserializeDocumentHlsMediaStoreSettings(v **types.HlsMediaSto if err != nil { return err } - sv.ConnectionRetryInterval = ptr.Int32(int32(i64)) + sv.ConnectionRetryInterval = int32(i64) } case "filecacheDuration": @@ -17945,7 +18025,7 @@ func awsRestjson1_deserializeDocumentHlsMediaStoreSettings(v **types.HlsMediaSto if err != nil { return err } - sv.FilecacheDuration = ptr.Int32(int32(i64)) + sv.FilecacheDuration = int32(i64) } case "mediaStoreStorageClass": @@ -17967,7 +18047,7 @@ func awsRestjson1_deserializeDocumentHlsMediaStoreSettings(v **types.HlsMediaSto if err != nil { return err } - sv.NumRetries = ptr.Int32(int32(i64)) + sv.NumRetries = int32(i64) } case "restartDelay": @@ -17980,7 +18060,7 @@ func awsRestjson1_deserializeDocumentHlsMediaStoreSettings(v **types.HlsMediaSto if err != nil { return err } - sv.RestartDelay = ptr.Int32(int32(i64)) + sv.RestartDelay = int32(i64) } default: @@ -18034,7 +18114,7 @@ func awsRestjson1_deserializeDocumentHlsOutputSettings(v **types.HlsOutputSettin if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.NameModifier = &jtv + sv.NameModifier = ptr.String(jtv) } case "segmentModifier": @@ -18043,7 +18123,7 @@ func awsRestjson1_deserializeDocumentHlsOutputSettings(v **types.HlsOutputSettin if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SegmentModifier = &jtv + sv.SegmentModifier = ptr.String(jtv) } default: @@ -18129,7 +18209,7 @@ func awsRestjson1_deserializeDocumentHlsTimedMetadataScheduleActionSettings(v ** if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id3 = &jtv + sv.Id3 = ptr.String(jtv) } default: @@ -18173,7 +18253,7 @@ func awsRestjson1_deserializeDocumentHlsWebdavSettings(v **types.HlsWebdavSettin if err != nil { return err } - sv.ConnectionRetryInterval = ptr.Int32(int32(i64)) + sv.ConnectionRetryInterval = int32(i64) } case "filecacheDuration": @@ -18186,7 +18266,7 @@ func awsRestjson1_deserializeDocumentHlsWebdavSettings(v **types.HlsWebdavSettin if err != nil { return err } - sv.FilecacheDuration = ptr.Int32(int32(i64)) + sv.FilecacheDuration = int32(i64) } case "httpTransferMode": @@ -18208,7 +18288,7 @@ func awsRestjson1_deserializeDocumentHlsWebdavSettings(v **types.HlsWebdavSettin if err != nil { return err } - sv.NumRetries = ptr.Int32(int32(i64)) + sv.NumRetries = int32(i64) } case "restartDelay": @@ -18221,7 +18301,7 @@ func awsRestjson1_deserializeDocumentHlsWebdavSettings(v **types.HlsWebdavSettin if err != nil { return err } - sv.RestartDelay = ptr.Int32(int32(i64)) + sv.RestartDelay = int32(i64) } default: @@ -18292,7 +18372,7 @@ func awsRestjson1_deserializeDocumentInput(v **types.Input, value interface{}) e if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "attachedChannels": @@ -18311,7 +18391,7 @@ func awsRestjson1_deserializeDocumentInput(v **types.Input, value interface{}) e if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "inputClass": @@ -18348,7 +18428,7 @@ func awsRestjson1_deserializeDocumentInput(v **types.Input, value interface{}) e if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "roleArn": @@ -18357,7 +18437,7 @@ func awsRestjson1_deserializeDocumentInput(v **types.Input, value interface{}) e if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "securityGroups": @@ -18435,7 +18515,7 @@ func awsRestjson1_deserializeDocumentInputAttachment(v **types.InputAttachment, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InputAttachmentName = &jtv + sv.InputAttachmentName = ptr.String(jtv) } case "inputId": @@ -18444,7 +18524,7 @@ func awsRestjson1_deserializeDocumentInputAttachment(v **types.InputAttachment, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InputId = &jtv + sv.InputId = ptr.String(jtv) } case "inputSettings": @@ -18493,7 +18573,7 @@ func awsRestjson1_deserializeDocumentInputChannelLevel(v **types.InputChannelLev if err != nil { return err } - sv.Gain = ptr.Int32(int32(i64)) + sv.Gain = int32(i64) } case "inputChannel": @@ -18506,7 +18586,7 @@ func awsRestjson1_deserializeDocumentInputChannelLevel(v **types.InputChannelLev if err != nil { return err } - sv.InputChannel = ptr.Int32(int32(i64)) + sv.InputChannel = int32(i64) } default: @@ -18596,7 +18676,7 @@ func awsRestjson1_deserializeDocumentInputDestination(v **types.InputDestination if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Ip = &jtv + sv.Ip = ptr.String(jtv) } case "port": @@ -18605,7 +18685,7 @@ func awsRestjson1_deserializeDocumentInputDestination(v **types.InputDestination if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Port = &jtv + sv.Port = ptr.String(jtv) } case "url": @@ -18614,7 +18694,7 @@ func awsRestjson1_deserializeDocumentInputDestination(v **types.InputDestination if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } case "vpc": @@ -18659,7 +18739,7 @@ func awsRestjson1_deserializeDocumentInputDestinationVpc(v **types.InputDestinat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "networkInterfaceId": @@ -18668,7 +18748,7 @@ func awsRestjson1_deserializeDocumentInputDestinationVpc(v **types.InputDestinat if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NetworkInterfaceId = &jtv + sv.NetworkInterfaceId = ptr.String(jtv) } default: @@ -18739,7 +18819,7 @@ func awsRestjson1_deserializeDocumentInputDeviceHdSettings(v **types.InputDevice if err != nil { return err } - sv.Framerate = &f64 + sv.Framerate = f64 } case "height": @@ -18752,7 +18832,7 @@ func awsRestjson1_deserializeDocumentInputDeviceHdSettings(v **types.InputDevice if err != nil { return err } - sv.Height = ptr.Int32(int32(i64)) + sv.Height = int32(i64) } case "maxBitrate": @@ -18765,7 +18845,7 @@ func awsRestjson1_deserializeDocumentInputDeviceHdSettings(v **types.InputDevice if err != nil { return err } - sv.MaxBitrate = ptr.Int32(int32(i64)) + sv.MaxBitrate = int32(i64) } case "scanType": @@ -18787,7 +18867,7 @@ func awsRestjson1_deserializeDocumentInputDeviceHdSettings(v **types.InputDevice if err != nil { return err } - sv.Width = ptr.Int32(int32(i64)) + sv.Width = int32(i64) } default: @@ -18832,7 +18912,7 @@ func awsRestjson1_deserializeDocumentInputDeviceNetworkSettings(v **types.InputD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Gateway = &jtv + sv.Gateway = ptr.String(jtv) } case "ipAddress": @@ -18841,7 +18921,7 @@ func awsRestjson1_deserializeDocumentInputDeviceNetworkSettings(v **types.InputD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "ipScheme": @@ -18859,7 +18939,7 @@ func awsRestjson1_deserializeDocumentInputDeviceNetworkSettings(v **types.InputD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SubnetMask = &jtv + sv.SubnetMask = ptr.String(jtv) } default: @@ -18899,7 +18979,7 @@ func awsRestjson1_deserializeDocumentInputDeviceSettings(v **types.InputDeviceSe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -18939,7 +19019,7 @@ func awsRestjson1_deserializeDocumentInputDeviceSummary(v **types.InputDeviceSum if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "connectionState": @@ -18971,7 +19051,7 @@ func awsRestjson1_deserializeDocumentInputDeviceSummary(v **types.InputDeviceSum if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "macAddress": @@ -18980,7 +19060,7 @@ func awsRestjson1_deserializeDocumentInputDeviceSummary(v **types.InputDeviceSum if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MacAddress = &jtv + sv.MacAddress = ptr.String(jtv) } case "name": @@ -18989,7 +19069,7 @@ func awsRestjson1_deserializeDocumentInputDeviceSummary(v **types.InputDeviceSum if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "networkSettings": @@ -19003,7 +19083,7 @@ func awsRestjson1_deserializeDocumentInputDeviceSummary(v **types.InputDeviceSum if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SerialNumber = &jtv + sv.SerialNumber = ptr.String(jtv) } case "type": @@ -19052,7 +19132,7 @@ func awsRestjson1_deserializeDocumentInputLocation(v **types.InputLocation, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PasswordParam = &jtv + sv.PasswordParam = ptr.String(jtv) } case "uri": @@ -19061,7 +19141,7 @@ func awsRestjson1_deserializeDocumentInputLocation(v **types.InputLocation, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Uri = &jtv + sv.Uri = ptr.String(jtv) } case "username": @@ -19070,7 +19150,7 @@ func awsRestjson1_deserializeDocumentInputLocation(v **types.InputLocation, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -19114,7 +19194,7 @@ func awsRestjson1_deserializeDocumentInputLossBehavior(v **types.InputLossBehavi if err != nil { return err } - sv.BlackFrameMsec = ptr.Int32(int32(i64)) + sv.BlackFrameMsec = int32(i64) } case "inputLossImageColor": @@ -19123,7 +19203,7 @@ func awsRestjson1_deserializeDocumentInputLossBehavior(v **types.InputLossBehavi if !ok { return fmt.Errorf("expected __stringMin6Max6 to be of type string, got %T instead", value) } - sv.InputLossImageColor = &jtv + sv.InputLossImageColor = ptr.String(jtv) } case "inputLossImageSlate": @@ -19150,7 +19230,7 @@ func awsRestjson1_deserializeDocumentInputLossBehavior(v **types.InputLossBehavi if err != nil { return err } - sv.RepeatFrameMsec = ptr.Int32(int32(i64)) + sv.RepeatFrameMsec = int32(i64) } default: @@ -19194,7 +19274,7 @@ func awsRestjson1_deserializeDocumentInputLossFailoverSettings(v **types.InputLo if err != nil { return err } - sv.InputLossThresholdMsec = ptr.Int32(int32(i64)) + sv.InputLossThresholdMsec = int32(i64) } default: @@ -19234,7 +19314,7 @@ func awsRestjson1_deserializeDocumentInputPrepareScheduleActionSettings(v **type if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InputAttachmentNameReference = &jtv + sv.InputAttachmentNameReference = ptr.String(jtv) } case "inputClippingSettings": @@ -19284,7 +19364,7 @@ func awsRestjson1_deserializeDocumentInputSecurityGroup(v **types.InputSecurityG if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "id": @@ -19293,7 +19373,7 @@ func awsRestjson1_deserializeDocumentInputSecurityGroup(v **types.InputSecurityG if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "inputs": @@ -19389,7 +19469,7 @@ func awsRestjson1_deserializeDocumentInputSettings(v **types.InputSettings, valu if err != nil { return err } - sv.FilterStrength = ptr.Int32(int32(i64)) + sv.FilterStrength = int32(i64) } case "inputFilter": @@ -19466,7 +19546,7 @@ func awsRestjson1_deserializeDocumentInputSource(v **types.InputSource, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PasswordParam = &jtv + sv.PasswordParam = ptr.String(jtv) } case "url": @@ -19475,7 +19555,7 @@ func awsRestjson1_deserializeDocumentInputSource(v **types.InputSource, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } case "username": @@ -19484,7 +19564,7 @@ func awsRestjson1_deserializeDocumentInputSource(v **types.InputSource, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -19582,7 +19662,7 @@ func awsRestjson1_deserializeDocumentInputSwitchScheduleActionSettings(v **types if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.InputAttachmentNameReference = &jtv + sv.InputAttachmentNameReference = ptr.String(jtv) } case "inputClippingSettings": @@ -19632,7 +19712,7 @@ func awsRestjson1_deserializeDocumentInputWhitelistRule(v **types.InputWhitelist if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Cidr = &jtv + sv.Cidr = ptr.String(jtv) } default: @@ -19672,7 +19752,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19766,7 +19846,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AribCaptionsPid = &jtv + sv.AribCaptionsPid = ptr.String(jtv) } case "aribCaptionsPidControl": @@ -19797,7 +19877,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.AudioFramesPerPes = ptr.Int32(int32(i64)) + sv.AudioFramesPerPes = int32(i64) } case "audioPids": @@ -19806,7 +19886,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AudioPids = &jtv + sv.AudioPids = ptr.String(jtv) } case "audioStreamType": @@ -19828,7 +19908,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.Bitrate = ptr.Int32(int32(i64)) + sv.Bitrate = int32(i64) } case "bufferModel": @@ -19865,7 +19945,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DvbSubPids = &jtv + sv.DvbSubPids = ptr.String(jtv) } case "dvbTdtSettings": @@ -19879,7 +19959,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DvbTeletextPid = &jtv + sv.DvbTeletextPid = ptr.String(jtv) } case "ebif": @@ -19910,7 +19990,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.EbpLookaheadMs = ptr.Int32(int32(i64)) + sv.EbpLookaheadMs = int32(i64) } case "ebpPlacement": @@ -19928,7 +20008,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EcmPid = &jtv + sv.EcmPid = ptr.String(jtv) } case "esRateInPes": @@ -19946,7 +20026,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EtvPlatformPid = &jtv + sv.EtvPlatformPid = ptr.String(jtv) } case "etvSignalPid": @@ -19955,7 +20035,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EtvSignalPid = &jtv + sv.EtvSignalPid = ptr.String(jtv) } case "fragmentTime": @@ -19968,7 +20048,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.FragmentTime = &f64 + sv.FragmentTime = f64 } case "klv": @@ -19986,7 +20066,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KlvDataPids = &jtv + sv.KlvDataPids = ptr.String(jtv) } case "nielsenId3Behavior": @@ -20008,7 +20088,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.NullPacketBitrate = &f64 + sv.NullPacketBitrate = f64 } case "patInterval": @@ -20021,7 +20101,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PatInterval = ptr.Int32(int32(i64)) + sv.PatInterval = int32(i64) } case "pcrControl": @@ -20043,7 +20123,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PcrPeriod = ptr.Int32(int32(i64)) + sv.PcrPeriod = int32(i64) } case "pcrPid": @@ -20052,7 +20132,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PcrPid = &jtv + sv.PcrPid = ptr.String(jtv) } case "pmtInterval": @@ -20065,7 +20145,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PmtInterval = ptr.Int32(int32(i64)) + sv.PmtInterval = int32(i64) } case "pmtPid": @@ -20074,7 +20154,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PmtPid = &jtv + sv.PmtPid = ptr.String(jtv) } case "programNum": @@ -20087,7 +20167,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.ProgramNum = ptr.Int32(int32(i64)) + sv.ProgramNum = int32(i64) } case "rateMode": @@ -20105,7 +20185,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Scte27Pids = &jtv + sv.Scte27Pids = ptr.String(jtv) } case "scte35Control": @@ -20123,7 +20203,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Scte35Pid = &jtv + sv.Scte35Pid = ptr.String(jtv) } case "segmentationMarkers": @@ -20154,7 +20234,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.SegmentationTime = &f64 + sv.SegmentationTime = f64 } case "timedMetadataBehavior": @@ -20172,7 +20252,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TimedMetadataPid = &jtv + sv.TimedMetadataPid = ptr.String(jtv) } case "transportStreamId": @@ -20185,7 +20265,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.TransportStreamId = ptr.Int32(int32(i64)) + sv.TransportStreamId = int32(i64) } case "videoPid": @@ -20194,7 +20274,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VideoPid = &jtv + sv.VideoPid = ptr.String(jtv) } default: @@ -20238,7 +20318,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.AudioFramesPerPes = ptr.Int32(int32(i64)) + sv.AudioFramesPerPes = int32(i64) } case "audioPids": @@ -20247,7 +20327,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AudioPids = &jtv + sv.AudioPids = ptr.String(jtv) } case "ecmPid": @@ -20256,7 +20336,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EcmPid = &jtv + sv.EcmPid = ptr.String(jtv) } case "nielsenId3Behavior": @@ -20278,7 +20358,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PatInterval = ptr.Int32(int32(i64)) + sv.PatInterval = int32(i64) } case "pcrControl": @@ -20300,7 +20380,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PcrPeriod = ptr.Int32(int32(i64)) + sv.PcrPeriod = int32(i64) } case "pcrPid": @@ -20309,7 +20389,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PcrPid = &jtv + sv.PcrPid = ptr.String(jtv) } case "pmtInterval": @@ -20322,7 +20402,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PmtInterval = ptr.Int32(int32(i64)) + sv.PmtInterval = int32(i64) } case "pmtPid": @@ -20331,7 +20411,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PmtPid = &jtv + sv.PmtPid = ptr.String(jtv) } case "programNum": @@ -20344,7 +20424,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.ProgramNum = ptr.Int32(int32(i64)) + sv.ProgramNum = int32(i64) } case "scte35Behavior": @@ -20362,7 +20442,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Scte35Pid = &jtv + sv.Scte35Pid = ptr.String(jtv) } case "timedMetadataBehavior": @@ -20380,7 +20460,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TimedMetadataPid = &jtv + sv.TimedMetadataPid = ptr.String(jtv) } case "transportStreamId": @@ -20393,7 +20473,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.TransportStreamId = ptr.Int32(int32(i64)) + sv.TransportStreamId = int32(i64) } case "videoPid": @@ -20402,7 +20482,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VideoPid = &jtv + sv.VideoPid = ptr.String(jtv) } default: @@ -20442,7 +20522,7 @@ func awsRestjson1_deserializeDocumentMediaConnectFlow(v **types.MediaConnectFlow if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FlowArn = &jtv + sv.FlowArn = ptr.String(jtv) } default: @@ -20518,7 +20598,7 @@ func awsRestjson1_deserializeDocumentMediaPackageOutputDestinationSettings(v **t if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.ChannelId = &jtv + sv.ChannelId = ptr.String(jtv) } default: @@ -20593,7 +20673,7 @@ func awsRestjson1_deserializeDocumentMp2Settings(v **types.Mp2Settings, value in if err != nil { return err } - sv.Bitrate = &f64 + sv.Bitrate = f64 } case "codingMode": @@ -20615,7 +20695,7 @@ func awsRestjson1_deserializeDocumentMp2Settings(v **types.Mp2Settings, value in if err != nil { return err } - sv.SampleRate = &f64 + sv.SampleRate = f64 } default: @@ -20754,7 +20834,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.FramerateDenominator = ptr.Int32(int32(i64)) + sv.FramerateDenominator = int32(i64) } case "framerateNumerator": @@ -20767,7 +20847,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.FramerateNumerator = ptr.Int32(int32(i64)) + sv.FramerateNumerator = int32(i64) } case "gopClosedCadence": @@ -20780,7 +20860,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.GopClosedCadence = ptr.Int32(int32(i64)) + sv.GopClosedCadence = int32(i64) } case "gopNumBFrames": @@ -20793,7 +20873,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.GopNumBFrames = ptr.Int32(int32(i64)) + sv.GopNumBFrames = int32(i64) } case "gopSize": @@ -20806,7 +20886,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.GopSize = &f64 + sv.GopSize = f64 } case "gopSizeUnits": @@ -20882,7 +20962,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AcquisitionPointId = &jtv + sv.AcquisitionPointId = ptr.String(jtv) } case "audioOnlyTimecodeControl": @@ -20913,7 +20993,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.ConnectionRetryInterval = ptr.Int32(int32(i64)) + sv.ConnectionRetryInterval = int32(i64) } case "destination": @@ -20927,7 +21007,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EventId = &jtv + sv.EventId = ptr.String(jtv) } case "eventIdMode": @@ -20958,7 +21038,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.FilecacheDuration = ptr.Int32(int32(i64)) + sv.FilecacheDuration = int32(i64) } case "fragmentLength": @@ -20971,7 +21051,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.FragmentLength = ptr.Int32(int32(i64)) + sv.FragmentLength = int32(i64) } case "inputLossAction": @@ -20993,7 +21073,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.NumRetries = ptr.Int32(int32(i64)) + sv.NumRetries = int32(i64) } case "restartDelay": @@ -21006,7 +21086,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.RestartDelay = ptr.Int32(int32(i64)) + sv.RestartDelay = int32(i64) } case "segmentationMode": @@ -21028,7 +21108,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.SendDelayMs = ptr.Int32(int32(i64)) + sv.SendDelayMs = int32(i64) } case "sparseTrackType": @@ -21055,7 +21135,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TimestampOffset = &jtv + sv.TimestampOffset = ptr.String(jtv) } case "timestampOffsetMode": @@ -21113,7 +21193,7 @@ func awsRestjson1_deserializeDocumentMsSmoothOutputSettings(v **types.MsSmoothOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NameModifier = &jtv + sv.NameModifier = ptr.String(jtv) } default: @@ -21153,7 +21233,7 @@ func awsRestjson1_deserializeDocumentMultiplex(v **types.Multiplex, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "availabilityZones": @@ -21172,7 +21252,7 @@ func awsRestjson1_deserializeDocumentMultiplex(v **types.Multiplex, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "multiplexSettings": @@ -21186,7 +21266,7 @@ func awsRestjson1_deserializeDocumentMultiplex(v **types.Multiplex, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pipelinesRunningCount": @@ -21199,7 +21279,7 @@ func awsRestjson1_deserializeDocumentMultiplex(v **types.Multiplex, value interf if err != nil { return err } - sv.PipelinesRunningCount = ptr.Int32(int32(i64)) + sv.PipelinesRunningCount = int32(i64) } case "programCount": @@ -21212,7 +21292,7 @@ func awsRestjson1_deserializeDocumentMultiplex(v **types.Multiplex, value interf if err != nil { return err } - sv.ProgramCount = ptr.Int32(int32(i64)) + sv.ProgramCount = int32(i64) } case "state": @@ -21297,7 +21377,7 @@ func awsRestjson1_deserializeDocumentMultiplexMediaConnectOutputDestinationSetti if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.EntitlementArn = &jtv + sv.EntitlementArn = ptr.String(jtv) } default: @@ -21409,7 +21489,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgram(v **types.MultiplexProgram if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ChannelId = &jtv + sv.ChannelId = ptr.String(jtv) } case "multiplexProgramSettings": @@ -21433,7 +21513,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgram(v **types.MultiplexProgram if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ProgramName = &jtv + sv.ProgramName = ptr.String(jtv) } default: @@ -21473,7 +21553,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramChannelDestinationSettings( if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.MultiplexId = &jtv + sv.MultiplexId = ptr.String(jtv) } case "programName": @@ -21482,7 +21562,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramChannelDestinationSettings( if !ok { return fmt.Errorf("expected __stringMin1 to be of type string, got %T instead", value) } - sv.ProgramName = &jtv + sv.ProgramName = ptr.String(jtv) } default: @@ -21536,7 +21616,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.DvbTeletextPid = ptr.Int32(int32(i64)) + sv.DvbTeletextPid = int32(i64) } case "etvPlatformPid": @@ -21549,7 +21629,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.EtvPlatformPid = ptr.Int32(int32(i64)) + sv.EtvPlatformPid = int32(i64) } case "etvSignalPid": @@ -21562,7 +21642,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.EtvSignalPid = ptr.Int32(int32(i64)) + sv.EtvSignalPid = int32(i64) } case "klvDataPids": @@ -21580,7 +21660,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.PcrPid = ptr.Int32(int32(i64)) + sv.PcrPid = int32(i64) } case "pmtPid": @@ -21593,7 +21673,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.PmtPid = ptr.Int32(int32(i64)) + sv.PmtPid = int32(i64) } case "privateMetadataPid": @@ -21606,7 +21686,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.PrivateMetadataPid = ptr.Int32(int32(i64)) + sv.PrivateMetadataPid = int32(i64) } case "scte27Pids": @@ -21624,7 +21704,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.Scte35Pid = ptr.Int32(int32(i64)) + sv.Scte35Pid = int32(i64) } case "timedMetadataPid": @@ -21637,7 +21717,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.TimedMetadataPid = ptr.Int32(int32(i64)) + sv.TimedMetadataPid = int32(i64) } case "videoPid": @@ -21650,7 +21730,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.VideoPid = ptr.Int32(int32(i64)) + sv.VideoPid = int32(i64) } default: @@ -21690,7 +21770,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPipelineDetail(v **types.Mu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ActiveChannelPipeline = &jtv + sv.ActiveChannelPipeline = ptr.String(jtv) } case "pipelineId": @@ -21699,7 +21779,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPipelineDetail(v **types.Mu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PipelineId = &jtv + sv.PipelineId = ptr.String(jtv) } default: @@ -21739,7 +21819,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramServiceDescriptor(v **types if !ok { return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } case "serviceName": @@ -21748,7 +21828,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramServiceDescriptor(v **types if !ok { return fmt.Errorf("expected __stringMax256 to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } default: @@ -21801,7 +21881,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramSettings(v **types.Multiple if err != nil { return err } - sv.ProgramNumber = ptr.Int32(int32(i64)) + sv.ProgramNumber = int32(i64) } case "serviceDescriptor": @@ -21851,7 +21931,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramSummary(v **types.Multiplex if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ChannelId = &jtv + sv.ChannelId = ptr.String(jtv) } case "programName": @@ -21860,7 +21940,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramSummary(v **types.Multiplex if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ProgramName = &jtv + sv.ProgramName = ptr.String(jtv) } default: @@ -21904,7 +21984,7 @@ func awsRestjson1_deserializeDocumentMultiplexSettings(v **types.MultiplexSettin if err != nil { return err } - sv.MaximumVideoBufferDelayMilliseconds = ptr.Int32(int32(i64)) + sv.MaximumVideoBufferDelayMilliseconds = int32(i64) } case "transportStreamBitrate": @@ -21917,7 +21997,7 @@ func awsRestjson1_deserializeDocumentMultiplexSettings(v **types.MultiplexSettin if err != nil { return err } - sv.TransportStreamBitrate = ptr.Int32(int32(i64)) + sv.TransportStreamBitrate = int32(i64) } case "transportStreamId": @@ -21930,7 +22010,7 @@ func awsRestjson1_deserializeDocumentMultiplexSettings(v **types.MultiplexSettin if err != nil { return err } - sv.TransportStreamId = ptr.Int32(int32(i64)) + sv.TransportStreamId = int32(i64) } case "transportStreamReservedBitrate": @@ -21943,7 +22023,7 @@ func awsRestjson1_deserializeDocumentMultiplexSettings(v **types.MultiplexSettin if err != nil { return err } - sv.TransportStreamReservedBitrate = ptr.Int32(int32(i64)) + sv.TransportStreamReservedBitrate = int32(i64) } default: @@ -21987,7 +22067,7 @@ func awsRestjson1_deserializeDocumentMultiplexSettingsSummary(v **types.Multiple if err != nil { return err } - sv.TransportStreamBitrate = ptr.Int32(int32(i64)) + sv.TransportStreamBitrate = int32(i64) } default: @@ -22031,7 +22111,7 @@ func awsRestjson1_deserializeDocumentMultiplexStatmuxVideoSettings(v **types.Mul if err != nil { return err } - sv.MaximumBitrate = ptr.Int32(int32(i64)) + sv.MaximumBitrate = int32(i64) } case "minimumBitrate": @@ -22044,7 +22124,7 @@ func awsRestjson1_deserializeDocumentMultiplexStatmuxVideoSettings(v **types.Mul if err != nil { return err } - sv.MinimumBitrate = ptr.Int32(int32(i64)) + sv.MinimumBitrate = int32(i64) } case "priority": @@ -22057,7 +22137,7 @@ func awsRestjson1_deserializeDocumentMultiplexStatmuxVideoSettings(v **types.Mul if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } default: @@ -22097,7 +22177,7 @@ func awsRestjson1_deserializeDocumentMultiplexSummary(v **types.MultiplexSummary if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "availabilityZones": @@ -22111,7 +22191,7 @@ func awsRestjson1_deserializeDocumentMultiplexSummary(v **types.MultiplexSummary if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "multiplexSettings": @@ -22125,7 +22205,7 @@ func awsRestjson1_deserializeDocumentMultiplexSummary(v **types.MultiplexSummary if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "pipelinesRunningCount": @@ -22138,7 +22218,7 @@ func awsRestjson1_deserializeDocumentMultiplexSummary(v **types.MultiplexSummary if err != nil { return err } - sv.PipelinesRunningCount = ptr.Int32(int32(i64)) + sv.PipelinesRunningCount = int32(i64) } case "programCount": @@ -22151,7 +22231,7 @@ func awsRestjson1_deserializeDocumentMultiplexSummary(v **types.MultiplexSummary if err != nil { return err } - sv.ProgramCount = ptr.Int32(int32(i64)) + sv.ProgramCount = int32(i64) } case "state": @@ -22209,7 +22289,7 @@ func awsRestjson1_deserializeDocumentMultiplexVideoSettings(v **types.MultiplexV if err != nil { return err } - sv.ConstantBitrate = ptr.Int32(int32(i64)) + sv.ConstantBitrate = int32(i64) } case "statmuxSettings": @@ -22299,7 +22379,7 @@ func awsRestjson1_deserializeDocumentNielsenConfiguration(v **types.NielsenConfi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DistributorId = &jtv + sv.DistributorId = ptr.String(jtv) } case "nielsenPcmToId3Tagging": @@ -22348,7 +22428,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22388,7 +22468,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "currencyCode": @@ -22397,7 +22477,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "duration": @@ -22410,7 +22490,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "durationUnits": @@ -22432,7 +22512,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if err != nil { return err } - sv.FixedPrice = &f64 + sv.FixedPrice = f64 } case "offeringDescription": @@ -22441,7 +22521,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingDescription = &jtv + sv.OfferingDescription = ptr.String(jtv) } case "offeringId": @@ -22450,7 +22530,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingId = &jtv + sv.OfferingId = ptr.String(jtv) } case "offeringType": @@ -22468,7 +22548,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "resourceSpecification": @@ -22486,7 +22566,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if err != nil { return err } - sv.UsagePrice = &f64 + sv.UsagePrice = f64 } default: @@ -22536,7 +22616,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if !ok { return fmt.Errorf("expected __stringMin1Max255 to be of type string, got %T instead", value) } - sv.OutputName = &jtv + sv.OutputName = ptr.String(jtv) } case "outputSettings": @@ -22550,7 +22630,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VideoDescriptionName = &jtv + sv.VideoDescriptionName = ptr.String(jtv) } default: @@ -22590,7 +22670,7 @@ func awsRestjson1_deserializeDocumentOutputDestination(v **types.OutputDestinati if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "mediaPackageSettings": @@ -22645,7 +22725,7 @@ func awsRestjson1_deserializeDocumentOutputDestinationSettings(v **types.OutputD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PasswordParam = &jtv + sv.PasswordParam = ptr.String(jtv) } case "streamName": @@ -22654,7 +22734,7 @@ func awsRestjson1_deserializeDocumentOutputDestinationSettings(v **types.OutputD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } case "url": @@ -22663,7 +22743,7 @@ func awsRestjson1_deserializeDocumentOutputDestinationSettings(v **types.OutputD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } case "username": @@ -22672,7 +22752,7 @@ func awsRestjson1_deserializeDocumentOutputDestinationSettings(v **types.OutputD if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -22712,7 +22792,7 @@ func awsRestjson1_deserializeDocumentOutputGroup(v **types.OutputGroup, value in if !ok { return fmt.Errorf("expected __stringMax32 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "outputGroupSettings": @@ -22833,7 +22913,7 @@ func awsRestjson1_deserializeDocumentOutputLocationRef(v **types.OutputLocationR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DestinationRefId = &jtv + sv.DestinationRefId = ptr.String(jtv) } default: @@ -23011,7 +23091,7 @@ func awsRestjson1_deserializeDocumentPipelineDetail(v **types.PipelineDetail, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ActiveInputAttachmentName = &jtv + sv.ActiveInputAttachmentName = ptr.String(jtv) } case "activeInputSwitchActionName": @@ -23020,7 +23100,7 @@ func awsRestjson1_deserializeDocumentPipelineDetail(v **types.PipelineDetail, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ActiveInputSwitchActionName = &jtv + sv.ActiveInputSwitchActionName = ptr.String(jtv) } case "pipelineId": @@ -23029,7 +23109,7 @@ func awsRestjson1_deserializeDocumentPipelineDetail(v **types.PipelineDetail, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PipelineId = &jtv + sv.PipelineId = ptr.String(jtv) } default: @@ -23211,7 +23291,7 @@ func awsRestjson1_deserializeDocumentRemixSettings(v **types.RemixSettings, valu if err != nil { return err } - sv.ChannelsIn = ptr.Int32(int32(i64)) + sv.ChannelsIn = int32(i64) } case "channelsOut": @@ -23224,7 +23304,7 @@ func awsRestjson1_deserializeDocumentRemixSettings(v **types.RemixSettings, valu if err != nil { return err } - sv.ChannelsOut = ptr.Int32(int32(i64)) + sv.ChannelsOut = int32(i64) } default: @@ -23264,7 +23344,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "count": @@ -23277,7 +23357,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "currencyCode": @@ -23286,7 +23366,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CurrencyCode = &jtv + sv.CurrencyCode = ptr.String(jtv) } case "duration": @@ -23299,7 +23379,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "durationUnits": @@ -23317,7 +23397,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.End = &jtv + sv.End = ptr.String(jtv) } case "fixedPrice": @@ -23330,7 +23410,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if err != nil { return err } - sv.FixedPrice = &f64 + sv.FixedPrice = f64 } case "name": @@ -23339,7 +23419,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "offeringDescription": @@ -23348,7 +23428,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingDescription = &jtv + sv.OfferingDescription = ptr.String(jtv) } case "offeringId": @@ -23357,7 +23437,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OfferingId = &jtv + sv.OfferingId = ptr.String(jtv) } case "offeringType": @@ -23375,7 +23455,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "reservationId": @@ -23384,7 +23464,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ReservationId = &jtv + sv.ReservationId = ptr.String(jtv) } case "resourceSpecification": @@ -23398,7 +23478,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Start = &jtv + sv.Start = ptr.String(jtv) } case "state": @@ -23425,7 +23505,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if err != nil { return err } - sv.UsagePrice = &f64 + sv.UsagePrice = f64 } default: @@ -23621,7 +23701,7 @@ func awsRestjson1_deserializeDocumentRtmpGroupSettings(v **types.RtmpGroupSettin if err != nil { return err } - sv.CacheLength = ptr.Int32(int32(i64)) + sv.CacheLength = int32(i64) } case "captionData": @@ -23652,7 +23732,7 @@ func awsRestjson1_deserializeDocumentRtmpGroupSettings(v **types.RtmpGroupSettin if err != nil { return err } - sv.RestartDelay = ptr.Int32(int32(i64)) + sv.RestartDelay = int32(i64) } default: @@ -23705,7 +23785,7 @@ func awsRestjson1_deserializeDocumentRtmpOutputSettings(v **types.RtmpOutputSett if err != nil { return err } - sv.ConnectionRetryInterval = ptr.Int32(int32(i64)) + sv.ConnectionRetryInterval = int32(i64) } case "destination": @@ -23723,7 +23803,7 @@ func awsRestjson1_deserializeDocumentRtmpOutputSettings(v **types.RtmpOutputSett if err != nil { return err } - sv.NumRetries = ptr.Int32(int32(i64)) + sv.NumRetries = int32(i64) } default: @@ -23763,7 +23843,7 @@ func awsRestjson1_deserializeDocumentScheduleAction(v **types.ScheduleAction, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ActionName = &jtv + sv.ActionName = ptr.String(jtv) } case "scheduleActionSettings": @@ -23984,7 +24064,7 @@ func awsRestjson1_deserializeDocumentScte20SourceSettings(v **types.Scte20Source if err != nil { return err } - sv.Source608ChannelNumber = ptr.Int32(int32(i64)) + sv.Source608ChannelNumber = int32(i64) } default: @@ -24059,7 +24139,7 @@ func awsRestjson1_deserializeDocumentScte27SourceSettings(v **types.Scte27Source if err != nil { return err } - sv.Pid = ptr.Int32(int32(i64)) + sv.Pid = int32(i64) } default: @@ -24242,7 +24322,7 @@ func awsRestjson1_deserializeDocumentScte35ReturnToNetworkScheduleActionSettings if err != nil { return err } - sv.SpliceEventId = &i64 + sv.SpliceEventId = i64 } default: @@ -24300,7 +24380,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SegmentationDuration = &i64 + sv.SegmentationDuration = i64 } case "segmentationEventId": @@ -24313,7 +24393,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SegmentationEventId = &i64 + sv.SegmentationEventId = i64 } case "segmentationTypeId": @@ -24326,7 +24406,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SegmentationTypeId = ptr.Int32(int32(i64)) + sv.SegmentationTypeId = int32(i64) } case "segmentationUpid": @@ -24335,7 +24415,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SegmentationUpid = &jtv + sv.SegmentationUpid = ptr.String(jtv) } case "segmentationUpidType": @@ -24348,7 +24428,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SegmentationUpidType = ptr.Int32(int32(i64)) + sv.SegmentationUpidType = int32(i64) } case "segmentNum": @@ -24361,7 +24441,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SegmentNum = ptr.Int32(int32(i64)) + sv.SegmentNum = int32(i64) } case "segmentsExpected": @@ -24374,7 +24454,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SegmentsExpected = ptr.Int32(int32(i64)) + sv.SegmentsExpected = int32(i64) } case "subSegmentNum": @@ -24387,7 +24467,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SubSegmentNum = ptr.Int32(int32(i64)) + sv.SubSegmentNum = int32(i64) } case "subSegmentsExpected": @@ -24400,7 +24480,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SubSegmentsExpected = ptr.Int32(int32(i64)) + sv.SubSegmentsExpected = int32(i64) } default: @@ -24444,7 +24524,7 @@ func awsRestjson1_deserializeDocumentScte35SpliceInsert(v **types.Scte35SpliceIn if err != nil { return err } - sv.AdAvailOffset = ptr.Int32(int32(i64)) + sv.AdAvailOffset = int32(i64) } case "noRegionalBlackoutFlag": @@ -24506,7 +24586,7 @@ func awsRestjson1_deserializeDocumentScte35SpliceInsertScheduleActionSettings(v if err != nil { return err } - sv.Duration = &i64 + sv.Duration = i64 } case "spliceEventId": @@ -24519,7 +24599,7 @@ func awsRestjson1_deserializeDocumentScte35SpliceInsertScheduleActionSettings(v if err != nil { return err } - sv.SpliceEventId = &i64 + sv.SpliceEventId = i64 } default: @@ -24563,7 +24643,7 @@ func awsRestjson1_deserializeDocumentScte35TimeSignalApos(v **types.Scte35TimeSi if err != nil { return err } - sv.AdAvailOffset = ptr.Int32(int32(i64)) + sv.AdAvailOffset = int32(i64) } case "noRegionalBlackoutFlag": @@ -24688,7 +24768,7 @@ func awsRestjson1_deserializeDocumentStandardHlsSettings(v **types.StandardHlsSe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AudioRenditionSets = &jtv + sv.AudioRenditionSets = ptr.String(jtv) } case "m3u8Settings": @@ -24733,7 +24813,7 @@ func awsRestjson1_deserializeDocumentStartTimecode(v **types.StartTimecode, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Timecode = &jtv + sv.Timecode = ptr.String(jtv) } default: @@ -24777,7 +24857,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "fadeIn": @@ -24790,7 +24870,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.FadeIn = ptr.Int32(int32(i64)) + sv.FadeIn = int32(i64) } case "fadeOut": @@ -24803,7 +24883,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.FadeOut = ptr.Int32(int32(i64)) + sv.FadeOut = int32(i64) } case "height": @@ -24816,7 +24896,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.Height = ptr.Int32(int32(i64)) + sv.Height = int32(i64) } case "image": @@ -24834,7 +24914,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.ImageX = ptr.Int32(int32(i64)) + sv.ImageX = int32(i64) } case "imageY": @@ -24847,7 +24927,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.ImageY = ptr.Int32(int32(i64)) + sv.ImageY = int32(i64) } case "layer": @@ -24860,7 +24940,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.Layer = ptr.Int32(int32(i64)) + sv.Layer = int32(i64) } case "opacity": @@ -24873,7 +24953,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.Opacity = ptr.Int32(int32(i64)) + sv.Opacity = int32(i64) } case "width": @@ -24886,7 +24966,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.Width = ptr.Int32(int32(i64)) + sv.Width = int32(i64) } default: @@ -24930,7 +25010,7 @@ func awsRestjson1_deserializeDocumentStaticImageDeactivateScheduleActionSettings if err != nil { return err } - sv.FadeOut = ptr.Int32(int32(i64)) + sv.FadeOut = int32(i64) } case "layer": @@ -24943,7 +25023,7 @@ func awsRestjson1_deserializeDocumentStaticImageDeactivateScheduleActionSettings if err != nil { return err } - sv.Layer = ptr.Int32(int32(i64)) + sv.Layer = int32(i64) } default: @@ -24988,7 +25068,7 @@ func awsRestjson1_deserializeDocumentStaticKeySettings(v **types.StaticKeySettin if !ok { return fmt.Errorf("expected __stringMin32Max32 to be of type string, got %T instead", value) } - sv.StaticKeyValue = &jtv + sv.StaticKeyValue = ptr.String(jtv) } default: @@ -25037,7 +25117,7 @@ func awsRestjson1_deserializeDocumentStopTimecode(v **types.StopTimecode, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Timecode = &jtv + sv.Timecode = ptr.String(jtv) } default: @@ -25049,7 +25129,7 @@ func awsRestjson1_deserializeDocumentStopTimecode(v **types.StopTimecode, value return nil } -func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25062,21 +25142,21 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -25144,7 +25224,7 @@ func awsRestjson1_deserializeDocumentTeletextSourceSettings(v **types.TeletextSo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PageNumber = &jtv + sv.PageNumber = ptr.String(jtv) } default: @@ -25246,7 +25326,7 @@ func awsRestjson1_deserializeDocumentTimecodeConfig(v **types.TimecodeConfig, va if err != nil { return err } - sv.SyncThreshold = ptr.Int32(int32(i64)) + sv.SyncThreshold = int32(i64) } default: @@ -25286,7 +25366,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25326,7 +25406,7 @@ func awsRestjson1_deserializeDocumentTransferringInputDeviceSummary(v **types.Tr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "message": @@ -25335,7 +25415,7 @@ func awsRestjson1_deserializeDocumentTransferringInputDeviceSummary(v **types.Tr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "targetCustomerId": @@ -25344,7 +25424,7 @@ func awsRestjson1_deserializeDocumentTransferringInputDeviceSummary(v **types.Tr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TargetCustomerId = &jtv + sv.TargetCustomerId = ptr.String(jtv) } case "transferType": @@ -25491,7 +25571,7 @@ func awsRestjson1_deserializeDocumentUdpGroupSettings(v **types.UdpGroupSettings if err != nil { return err } - sv.TimedMetadataId3Period = ptr.Int32(int32(i64)) + sv.TimedMetadataId3Period = int32(i64) } default: @@ -25535,7 +25615,7 @@ func awsRestjson1_deserializeDocumentUdpOutputSettings(v **types.UdpOutputSettin if err != nil { return err } - sv.BufferMsec = ptr.Int32(int32(i64)) + sv.BufferMsec = int32(i64) } case "containerSettings": @@ -25590,7 +25670,7 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "validationErrors": @@ -25635,7 +25715,7 @@ func awsRestjson1_deserializeDocumentValidationError(v **types.ValidationError, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ElementPath = &jtv + sv.ElementPath = ptr.String(jtv) } case "errorMessage": @@ -25644,7 +25724,7 @@ func awsRestjson1_deserializeDocumentValidationError(v **types.ValidationError, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -25744,7 +25824,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.Height = ptr.Int32(int32(i64)) + sv.Height = int32(i64) } case "name": @@ -25753,7 +25833,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "respondToAfd": @@ -25784,7 +25864,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.Sharpness = ptr.Int32(int32(i64)) + sv.Sharpness = int32(i64) } case "width": @@ -25797,7 +25877,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.Width = ptr.Int32(int32(i64)) + sv.Width = int32(i64) } default: @@ -25895,7 +25975,7 @@ func awsRestjson1_deserializeDocumentVideoSelectorPid(v **types.VideoSelectorPid if err != nil { return err } - sv.Pid = ptr.Int32(int32(i64)) + sv.Pid = int32(i64) } default: @@ -25939,7 +26019,7 @@ func awsRestjson1_deserializeDocumentVideoSelectorProgramId(v **types.VideoSelec if err != nil { return err } - sv.ProgramId = ptr.Int32(int32(i64)) + sv.ProgramId = int32(i64) } default: @@ -26024,7 +26104,7 @@ func awsRestjson1_deserializeDocumentWavSettings(v **types.WavSettings, value in if err != nil { return err } - sv.BitDepth = &f64 + sv.BitDepth = f64 } case "codingMode": @@ -26046,7 +26126,7 @@ func awsRestjson1_deserializeDocumentWavSettings(v **types.WavSettings, value in if err != nil { return err } - sv.SampleRate = &f64 + sv.SampleRate = f64 } default: diff --git a/service/medialive/go.mod b/service/medialive/go.mod index f6660e80188..106b3c3462c 100644 --- a/service/medialive/go.mod +++ b/service/medialive/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/medialive go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/medialive/serializers.go b/service/medialive/serializers.go index b581d858e49..14c42e4f552 100644 --- a/service/medialive/serializers.go +++ b/service/medialive/serializers.go @@ -65,13 +65,10 @@ func awsRestjson1_serializeOpHttpBindingsAcceptInputDeviceTransferInput(v *Accep return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputDeviceId == nil { + if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { - if len(*v.InputDeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} - } if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } @@ -402,13 +399,10 @@ func awsRestjson1_serializeOpHttpBindingsBatchUpdateScheduleInput(v *BatchUpdate return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ChannelId == nil { + if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { - if len(*v.ChannelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} - } if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } @@ -489,13 +483,10 @@ func awsRestjson1_serializeOpHttpBindingsCancelInputDeviceTransferInput(v *Cance return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputDeviceId == nil { + if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { - if len(*v.InputDeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} - } if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } @@ -1024,13 +1015,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateMultiplexProgramInput(v *CreateMu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MultiplexId == nil { + if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { - if len(*v.MultiplexId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} - } if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } @@ -1125,13 +1113,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateTagsInput(v *CreateTagsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1205,13 +1190,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteChannelInput(v *DeleteChannelInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ChannelId == nil { + if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { - if len(*v.ChannelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} - } if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } @@ -1271,13 +1253,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteInputInput(v *DeleteInputInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputId == nil { + if v.InputId == nil || len(*v.InputId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputId must not be empty")} } if v.InputId != nil { - if len(*v.InputId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InputId must not be empty")} - } if err := encoder.SetURI("InputId").String(*v.InputId); err != nil { return err } @@ -1337,13 +1316,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteInputSecurityGroupInput(v *Delete return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputSecurityGroupId == nil { + if v.InputSecurityGroupId == nil || len(*v.InputSecurityGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputSecurityGroupId must not be empty")} } if v.InputSecurityGroupId != nil { - if len(*v.InputSecurityGroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InputSecurityGroupId must not be empty")} - } if err := encoder.SetURI("InputSecurityGroupId").String(*v.InputSecurityGroupId); err != nil { return err } @@ -1403,13 +1379,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMultiplexInput(v *DeleteMultiplex return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MultiplexId == nil { + if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { - if len(*v.MultiplexId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} - } if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } @@ -1469,25 +1442,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMultiplexProgramInput(v *DeleteMu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MultiplexId == nil { + if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { - if len(*v.MultiplexId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} - } if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } } - if v.ProgramName == nil { + if v.ProgramName == nil || len(*v.ProgramName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ProgramName must not be empty")} } if v.ProgramName != nil { - if len(*v.ProgramName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ProgramName must not be empty")} - } if err := encoder.SetURI("ProgramName").String(*v.ProgramName); err != nil { return err } @@ -1547,13 +1514,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteReservationInput(v *DeleteReserva return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ReservationId == nil { + if v.ReservationId == nil || len(*v.ReservationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ReservationId must not be empty")} } if v.ReservationId != nil { - if len(*v.ReservationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ReservationId must not be empty")} - } if err := encoder.SetURI("ReservationId").String(*v.ReservationId); err != nil { return err } @@ -1613,13 +1577,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteScheduleInput(v *DeleteScheduleIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ChannelId == nil { + if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { - if len(*v.ChannelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} - } if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } @@ -1679,13 +1640,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteTagsInput(v *DeleteTagsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1693,10 +1651,7 @@ func awsRestjson1_serializeOpHttpBindingsDeleteTagsInput(v *DeleteTagsInput, enc if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1754,13 +1709,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeChannelInput(v *DescribeChannel return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ChannelId == nil { + if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { - if len(*v.ChannelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} - } if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } @@ -1820,13 +1772,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeInputInput(v *DescribeInputInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputId == nil { + if v.InputId == nil || len(*v.InputId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputId must not be empty")} } if v.InputId != nil { - if len(*v.InputId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InputId must not be empty")} - } if err := encoder.SetURI("InputId").String(*v.InputId); err != nil { return err } @@ -1886,13 +1835,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeInputDeviceInput(v *DescribeInp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputDeviceId == nil { + if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { - if len(*v.InputDeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} - } if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } @@ -1957,13 +1903,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeInputDeviceThumbnailInput(v *De encoder.SetHeader(locationName).String(string(v.Accept)) } - if v.InputDeviceId == nil { + if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { - if len(*v.InputDeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} - } if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } @@ -2023,13 +1966,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeInputSecurityGroupInput(v *Desc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputSecurityGroupId == nil { + if v.InputSecurityGroupId == nil || len(*v.InputSecurityGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputSecurityGroupId must not be empty")} } if v.InputSecurityGroupId != nil { - if len(*v.InputSecurityGroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InputSecurityGroupId must not be empty")} - } if err := encoder.SetURI("InputSecurityGroupId").String(*v.InputSecurityGroupId); err != nil { return err } @@ -2089,13 +2029,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeMultiplexInput(v *DescribeMulti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MultiplexId == nil { + if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { - if len(*v.MultiplexId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} - } if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } @@ -2155,25 +2092,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeMultiplexProgramInput(v *Descri return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MultiplexId == nil { + if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { - if len(*v.MultiplexId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} - } if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } } - if v.ProgramName == nil { + if v.ProgramName == nil || len(*v.ProgramName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ProgramName must not be empty")} } if v.ProgramName != nil { - if len(*v.ProgramName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ProgramName must not be empty")} - } if err := encoder.SetURI("ProgramName").String(*v.ProgramName); err != nil { return err } @@ -2233,13 +2164,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeOfferingInput(v *DescribeOfferi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.OfferingId == nil { + if v.OfferingId == nil || len(*v.OfferingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OfferingId must not be empty")} } if v.OfferingId != nil { - if len(*v.OfferingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member OfferingId must not be empty")} - } if err := encoder.SetURI("OfferingId").String(*v.OfferingId); err != nil { return err } @@ -2299,13 +2227,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeReservationInput(v *DescribeRes return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ReservationId == nil { + if v.ReservationId == nil || len(*v.ReservationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ReservationId must not be empty")} } if v.ReservationId != nil { - if len(*v.ReservationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ReservationId must not be empty")} - } if err := encoder.SetURI("ReservationId").String(*v.ReservationId); err != nil { return err } @@ -2365,20 +2290,17 @@ func awsRestjson1_serializeOpHttpBindingsDescribeScheduleInput(v *DescribeSchedu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ChannelId == nil { + if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { - if len(*v.ChannelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} - } if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2439,8 +2361,8 @@ func awsRestjson1_serializeOpHttpBindingsListChannelsInput(v *ListChannelsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2501,8 +2423,8 @@ func awsRestjson1_serializeOpHttpBindingsListInputDevicesInput(v *ListInputDevic return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2563,8 +2485,8 @@ func awsRestjson1_serializeOpHttpBindingsListInputDeviceTransfersInput(v *ListIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2629,8 +2551,8 @@ func awsRestjson1_serializeOpHttpBindingsListInputsInput(v *ListInputsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2691,8 +2613,8 @@ func awsRestjson1_serializeOpHttpBindingsListInputSecurityGroupsInput(v *ListInp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2753,8 +2675,8 @@ func awsRestjson1_serializeOpHttpBindingsListMultiplexesInput(v *ListMultiplexes return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2815,17 +2737,14 @@ func awsRestjson1_serializeOpHttpBindingsListMultiplexProgramsInput(v *ListMulti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } - if v.MultiplexId == nil { + if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { - if len(*v.MultiplexId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} - } if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } @@ -2913,8 +2832,8 @@ func awsRestjson1_serializeOpHttpBindingsListOfferingsInput(v *ListOfferingsInpu encoder.SetQuery("maximumFramerate").String(*v.MaximumFramerate) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -3007,8 +2926,8 @@ func awsRestjson1_serializeOpHttpBindingsListReservationsInput(v *ListReservatio encoder.SetQuery("maximumFramerate").String(*v.MaximumFramerate) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -3085,13 +3004,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -3162,13 +3078,10 @@ func awsRestjson1_serializeOpHttpBindingsPurchaseOfferingInput(v *PurchaseOfferi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.OfferingId == nil { + if v.OfferingId == nil || len(*v.OfferingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OfferingId must not be empty")} } if v.OfferingId != nil { - if len(*v.OfferingId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member OfferingId must not be empty")} - } if err := encoder.SetURI("OfferingId").String(*v.OfferingId); err != nil { return err } @@ -3181,9 +3094,9 @@ func awsRestjson1_serializeOpDocumentPurchaseOfferingInput(v *PurchaseOfferingIn object := value.Object() defer object.Close() - if v.Count != nil { + if v.Count != 0 { ok := object.Key("count") - ok.Integer(*v.Count) + ok.Integer(v.Count) } if v.Name != nil { @@ -3262,13 +3175,10 @@ func awsRestjson1_serializeOpHttpBindingsRejectInputDeviceTransferInput(v *Rejec return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputDeviceId == nil { + if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { - if len(*v.InputDeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} - } if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } @@ -3328,13 +3238,10 @@ func awsRestjson1_serializeOpHttpBindingsStartChannelInput(v *StartChannelInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ChannelId == nil { + if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { - if len(*v.ChannelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} - } if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } @@ -3394,13 +3301,10 @@ func awsRestjson1_serializeOpHttpBindingsStartMultiplexInput(v *StartMultiplexIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MultiplexId == nil { + if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { - if len(*v.MultiplexId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} - } if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } @@ -3460,13 +3364,10 @@ func awsRestjson1_serializeOpHttpBindingsStopChannelInput(v *StopChannelInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ChannelId == nil { + if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { - if len(*v.ChannelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} - } if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } @@ -3526,13 +3427,10 @@ func awsRestjson1_serializeOpHttpBindingsStopMultiplexInput(v *StopMultiplexInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MultiplexId == nil { + if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { - if len(*v.MultiplexId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} - } if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } @@ -3603,13 +3501,10 @@ func awsRestjson1_serializeOpHttpBindingsTransferInputDeviceInput(v *TransferInp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputDeviceId == nil { + if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { - if len(*v.InputDeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} - } if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } @@ -3697,13 +3592,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateChannelInput(v *UpdateChannelInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ChannelId == nil { + if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { - if len(*v.ChannelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} - } if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } @@ -3831,13 +3723,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateChannelClassInput(v *UpdateChanne return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ChannelId == nil { + if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { - if len(*v.ChannelId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} - } if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } @@ -3927,13 +3816,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateInputInput(v *UpdateInputInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputId == nil { + if v.InputId == nil || len(*v.InputId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputId must not be empty")} } if v.InputId != nil { - if len(*v.InputId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InputId must not be empty")} - } if err := encoder.SetURI("InputId").String(*v.InputId); err != nil { return err } @@ -4056,13 +3942,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateInputDeviceInput(v *UpdateInputDe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputDeviceId == nil { + if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { - if len(*v.InputDeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} - } if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } @@ -4152,13 +4035,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateInputSecurityGroupInput(v *Update return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InputSecurityGroupId == nil { + if v.InputSecurityGroupId == nil || len(*v.InputSecurityGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputSecurityGroupId must not be empty")} } if v.InputSecurityGroupId != nil { - if len(*v.InputSecurityGroupId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InputSecurityGroupId must not be empty")} - } if err := encoder.SetURI("InputSecurityGroupId").String(*v.InputSecurityGroupId); err != nil { return err } @@ -4250,13 +4130,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateMultiplexInput(v *UpdateMultiplex return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MultiplexId == nil { + if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { - if len(*v.MultiplexId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} - } if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } @@ -4346,25 +4223,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateMultiplexProgramInput(v *UpdateMu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MultiplexId == nil { + if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { - if len(*v.MultiplexId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} - } if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } } - if v.ProgramName == nil { + if v.ProgramName == nil || len(*v.ProgramName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ProgramName must not be empty")} } if v.ProgramName != nil { - if len(*v.ProgramName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ProgramName must not be empty")} - } if err := encoder.SetURI("ProgramName").String(*v.ProgramName); err != nil { return err } @@ -4449,13 +4320,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateReservationInput(v *UpdateReserva return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ReservationId == nil { + if v.ReservationId == nil || len(*v.ReservationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ReservationId must not be empty")} } if v.ReservationId != nil { - if len(*v.ReservationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ReservationId must not be empty")} - } if err := encoder.SetURI("ReservationId").String(*v.ReservationId); err != nil { return err } @@ -4476,151 +4344,115 @@ func awsRestjson1_serializeOpDocumentUpdateReservationInput(v *UpdateReservation return nil } -func awsRestjson1_serializeDocument__listOf__string(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOfAudioChannelMapping(v []*types.AudioChannelMapping, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfAudioChannelMapping(v []types.AudioChannelMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAudioChannelMapping(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAudioChannelMapping(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfAudioDescription(v []*types.AudioDescription, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfAudioDescription(v []types.AudioDescription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAudioDescription(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAudioDescription(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfAudioSelector(v []*types.AudioSelector, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfAudioSelector(v []types.AudioSelector, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAudioSelector(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAudioSelector(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfAudioTrack(v []*types.AudioTrack, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfAudioTrack(v []types.AudioTrack, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAudioTrack(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAudioTrack(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfCaptionDescription(v []*types.CaptionDescription, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfCaptionDescription(v []types.CaptionDescription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCaptionDescription(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCaptionDescription(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfCaptionLanguageMapping(v []*types.CaptionLanguageMapping, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfCaptionLanguageMapping(v []types.CaptionLanguageMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCaptionLanguageMapping(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCaptionLanguageMapping(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfCaptionSelector(v []*types.CaptionSelector, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfCaptionSelector(v []types.CaptionSelector, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCaptionSelector(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCaptionSelector(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfFailoverCondition(v []*types.FailoverCondition, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfFailoverCondition(v []types.FailoverCondition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentFailoverCondition(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFailoverCondition(&v[i], av); err != nil { return err } } @@ -4638,289 +4470,221 @@ func awsRestjson1_serializeDocument__listOfHlsAdMarkers(v []types.HlsAdMarkers, return nil } -func awsRestjson1_serializeDocument__listOfInputAttachment(v []*types.InputAttachment, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfInputAttachment(v []types.InputAttachment, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInputAttachment(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInputAttachment(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfInputChannelLevel(v []*types.InputChannelLevel, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfInputChannelLevel(v []types.InputChannelLevel, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInputChannelLevel(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInputChannelLevel(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfInputDestinationRequest(v []*types.InputDestinationRequest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfInputDestinationRequest(v []types.InputDestinationRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInputDestinationRequest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInputDestinationRequest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfInputDeviceRequest(v []*types.InputDeviceRequest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfInputDeviceRequest(v []types.InputDeviceRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInputDeviceRequest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInputDeviceRequest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfInputDeviceSettings(v []*types.InputDeviceSettings, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfInputDeviceSettings(v []types.InputDeviceSettings, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInputDeviceSettings(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInputDeviceSettings(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfInputSourceRequest(v []*types.InputSourceRequest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfInputSourceRequest(v []types.InputSourceRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInputSourceRequest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInputSourceRequest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfInputWhitelistRuleCidr(v []*types.InputWhitelistRuleCidr, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfInputWhitelistRuleCidr(v []types.InputWhitelistRuleCidr, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInputWhitelistRuleCidr(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInputWhitelistRuleCidr(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfMediaConnectFlowRequest(v []*types.MediaConnectFlowRequest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfMediaConnectFlowRequest(v []types.MediaConnectFlowRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMediaConnectFlowRequest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMediaConnectFlowRequest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfMediaPackageOutputDestinationSettings(v []*types.MediaPackageOutputDestinationSettings, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfMediaPackageOutputDestinationSettings(v []types.MediaPackageOutputDestinationSettings, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMediaPackageOutputDestinationSettings(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMediaPackageOutputDestinationSettings(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfOutput(v []*types.Output, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfOutput(v []types.Output, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentOutput(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentOutput(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfOutputDestination(v []*types.OutputDestination, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfOutputDestination(v []types.OutputDestination, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentOutputDestination(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentOutputDestination(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfOutputDestinationSettings(v []*types.OutputDestinationSettings, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfOutputDestinationSettings(v []types.OutputDestinationSettings, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentOutputDestinationSettings(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentOutputDestinationSettings(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfOutputGroup(v []*types.OutputGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfOutputGroup(v []types.OutputGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentOutputGroup(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentOutputGroup(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfPipelinePauseStateSettings(v []*types.PipelinePauseStateSettings, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfPipelinePauseStateSettings(v []types.PipelinePauseStateSettings, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentPipelinePauseStateSettings(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentPipelinePauseStateSettings(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfScheduleAction(v []*types.ScheduleAction, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfScheduleAction(v []types.ScheduleAction, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentScheduleAction(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentScheduleAction(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfScte35Descriptor(v []*types.Scte35Descriptor, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfScte35Descriptor(v []types.Scte35Descriptor, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentScte35Descriptor(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentScte35Descriptor(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfVideoDescription(v []*types.VideoDescription, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfVideoDescription(v []types.VideoDescription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentVideoDescription(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentVideoDescription(&v[i], av); err != nil { return err } } @@ -4931,9 +4695,9 @@ func awsRestjson1_serializeDocumentAacSettings(v *types.AacSettings, value smith object := value.Object() defer object.Close() - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Double(*v.Bitrate) + ok.Double(v.Bitrate) } if len(v.CodingMode) > 0 { @@ -4961,9 +4725,9 @@ func awsRestjson1_serializeDocumentAacSettings(v *types.AacSettings, value smith ok.String(string(v.RawFormat)) } - if v.SampleRate != nil { + if v.SampleRate != 0 { ok := object.Key("sampleRate") - ok.Double(*v.SampleRate) + ok.Double(v.SampleRate) } if len(v.Spec) > 0 { @@ -4983,9 +4747,9 @@ func awsRestjson1_serializeDocumentAc3Settings(v *types.Ac3Settings, value smith object := value.Object() defer object.Close() - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Double(*v.Bitrate) + ok.Double(v.Bitrate) } if len(v.BitstreamMode) > 0 { @@ -4998,9 +4762,9 @@ func awsRestjson1_serializeDocumentAc3Settings(v *types.Ac3Settings, value smith ok.String(string(v.CodingMode)) } - if v.Dialnorm != nil { + if v.Dialnorm != 0 { ok := object.Key("dialnorm") - ok.Integer(*v.Dialnorm) + ok.Integer(v.Dialnorm) } if len(v.DrcProfile) > 0 { @@ -5025,9 +4789,9 @@ func awsRestjson1_serializeDocumentAncillarySourceSettings(v *types.AncillarySou object := value.Object() defer object.Close() - if v.SourceAncillaryChannelNumber != nil { + if v.SourceAncillaryChannelNumber != 0 { ok := object.Key("sourceAncillaryChannelNumber") - ok.Integer(*v.SourceAncillaryChannelNumber) + ok.Integer(v.SourceAncillaryChannelNumber) } return nil @@ -5065,9 +4829,9 @@ func awsRestjson1_serializeDocumentArchiveGroupSettings(v *types.ArchiveGroupSet } } - if v.RolloverInterval != nil { + if v.RolloverInterval != 0 { ok := object.Key("rolloverInterval") - ok.Integer(*v.RolloverInterval) + ok.Integer(v.RolloverInterval) } return nil @@ -5122,9 +4886,9 @@ func awsRestjson1_serializeDocumentAudioChannelMapping(v *types.AudioChannelMapp } } - if v.OutputChannel != nil { + if v.OutputChannel != 0 { ok := object.Key("outputChannel") - ok.Integer(*v.OutputChannel) + ok.Integer(v.OutputChannel) } return nil @@ -5273,9 +5037,9 @@ func awsRestjson1_serializeDocumentAudioNormalizationSettings(v *types.AudioNorm ok.String(string(v.AlgorithmControl)) } - if v.TargetLkfs != nil { + if v.TargetLkfs != 0 { ok := object.Key("targetLkfs") - ok.Double(*v.TargetLkfs) + ok.Double(v.TargetLkfs) } return nil @@ -5314,9 +5078,9 @@ func awsRestjson1_serializeDocumentAudioPidSelection(v *types.AudioPidSelection, object := value.Object() defer object.Close() - if v.Pid != nil { + if v.Pid != 0 { ok := object.Key("pid") - ok.Integer(*v.Pid) + ok.Integer(v.Pid) } return nil @@ -5373,9 +5137,9 @@ func awsRestjson1_serializeDocumentAudioTrack(v *types.AudioTrack, value smithyj object := value.Object() defer object.Close() - if v.Track != nil { + if v.Track != 0 { ok := object.Key("track") - ok.Integer(*v.Track) + ok.Integer(v.Track) } return nil @@ -5399,9 +5163,9 @@ func awsRestjson1_serializeDocumentAutomaticInputFailoverSettings(v *types.Autom object := value.Object() defer object.Close() - if v.ErrorClearTimeMsec != nil { + if v.ErrorClearTimeMsec != 0 { ok := object.Key("errorClearTimeMsec") - ok.Integer(*v.ErrorClearTimeMsec) + ok.Integer(v.ErrorClearTimeMsec) } if v.FailoverConditions != nil { @@ -5556,9 +5320,9 @@ func awsRestjson1_serializeDocumentBurnInDestinationSettings(v *types.BurnInDest ok.String(string(v.BackgroundColor)) } - if v.BackgroundOpacity != nil { + if v.BackgroundOpacity != 0 { ok := object.Key("backgroundOpacity") - ok.Integer(*v.BackgroundOpacity) + ok.Integer(v.BackgroundOpacity) } if v.Font != nil { @@ -5573,14 +5337,14 @@ func awsRestjson1_serializeDocumentBurnInDestinationSettings(v *types.BurnInDest ok.String(string(v.FontColor)) } - if v.FontOpacity != nil { + if v.FontOpacity != 0 { ok := object.Key("fontOpacity") - ok.Integer(*v.FontOpacity) + ok.Integer(v.FontOpacity) } - if v.FontResolution != nil { + if v.FontResolution != 0 { ok := object.Key("fontResolution") - ok.Integer(*v.FontResolution) + ok.Integer(v.FontResolution) } if v.FontSize != nil { @@ -5593,9 +5357,9 @@ func awsRestjson1_serializeDocumentBurnInDestinationSettings(v *types.BurnInDest ok.String(string(v.OutlineColor)) } - if v.OutlineSize != nil { + if v.OutlineSize != 0 { ok := object.Key("outlineSize") - ok.Integer(*v.OutlineSize) + ok.Integer(v.OutlineSize) } if len(v.ShadowColor) > 0 { @@ -5603,19 +5367,19 @@ func awsRestjson1_serializeDocumentBurnInDestinationSettings(v *types.BurnInDest ok.String(string(v.ShadowColor)) } - if v.ShadowOpacity != nil { + if v.ShadowOpacity != 0 { ok := object.Key("shadowOpacity") - ok.Integer(*v.ShadowOpacity) + ok.Integer(v.ShadowOpacity) } - if v.ShadowXOffset != nil { + if v.ShadowXOffset != 0 { ok := object.Key("shadowXOffset") - ok.Integer(*v.ShadowXOffset) + ok.Integer(v.ShadowXOffset) } - if v.ShadowYOffset != nil { + if v.ShadowYOffset != 0 { ok := object.Key("shadowYOffset") - ok.Integer(*v.ShadowYOffset) + ok.Integer(v.ShadowYOffset) } if len(v.TeletextGridControl) > 0 { @@ -5623,14 +5387,14 @@ func awsRestjson1_serializeDocumentBurnInDestinationSettings(v *types.BurnInDest ok.String(string(v.TeletextGridControl)) } - if v.XPosition != nil { + if v.XPosition != 0 { ok := object.Key("xPosition") - ok.Integer(*v.XPosition) + ok.Integer(v.XPosition) } - if v.YPosition != nil { + if v.YPosition != 0 { ok := object.Key("yPosition") - ok.Integer(*v.YPosition) + ok.Integer(v.YPosition) } return nil @@ -5772,9 +5536,9 @@ func awsRestjson1_serializeDocumentCaptionLanguageMapping(v *types.CaptionLangua object := value.Object() defer object.Close() - if v.CaptionChannel != nil { + if v.CaptionChannel != 0 { ok := object.Key("captionChannel") - ok.Integer(*v.CaptionChannel) + ok.Integer(v.CaptionChannel) } if v.LanguageCode != nil { @@ -5893,9 +5657,9 @@ func awsRestjson1_serializeDocumentDvbNitSettings(v *types.DvbNitSettings, value object := value.Object() defer object.Close() - if v.NetworkId != nil { + if v.NetworkId != 0 { ok := object.Key("networkId") - ok.Integer(*v.NetworkId) + ok.Integer(v.NetworkId) } if v.NetworkName != nil { @@ -5903,9 +5667,9 @@ func awsRestjson1_serializeDocumentDvbNitSettings(v *types.DvbNitSettings, value ok.String(*v.NetworkName) } - if v.RepInterval != nil { + if v.RepInterval != 0 { ok := object.Key("repInterval") - ok.Integer(*v.RepInterval) + ok.Integer(v.RepInterval) } return nil @@ -5920,9 +5684,9 @@ func awsRestjson1_serializeDocumentDvbSdtSettings(v *types.DvbSdtSettings, value ok.String(string(v.OutputSdt)) } - if v.RepInterval != nil { + if v.RepInterval != 0 { ok := object.Key("repInterval") - ok.Integer(*v.RepInterval) + ok.Integer(v.RepInterval) } if v.ServiceName != nil { @@ -5952,9 +5716,9 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.BackgroundColor)) } - if v.BackgroundOpacity != nil { + if v.BackgroundOpacity != 0 { ok := object.Key("backgroundOpacity") - ok.Integer(*v.BackgroundOpacity) + ok.Integer(v.BackgroundOpacity) } if v.Font != nil { @@ -5969,14 +5733,14 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.FontColor)) } - if v.FontOpacity != nil { + if v.FontOpacity != 0 { ok := object.Key("fontOpacity") - ok.Integer(*v.FontOpacity) + ok.Integer(v.FontOpacity) } - if v.FontResolution != nil { + if v.FontResolution != 0 { ok := object.Key("fontResolution") - ok.Integer(*v.FontResolution) + ok.Integer(v.FontResolution) } if v.FontSize != nil { @@ -5989,9 +5753,9 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.OutlineColor)) } - if v.OutlineSize != nil { + if v.OutlineSize != 0 { ok := object.Key("outlineSize") - ok.Integer(*v.OutlineSize) + ok.Integer(v.OutlineSize) } if len(v.ShadowColor) > 0 { @@ -5999,19 +5763,19 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.ShadowColor)) } - if v.ShadowOpacity != nil { + if v.ShadowOpacity != 0 { ok := object.Key("shadowOpacity") - ok.Integer(*v.ShadowOpacity) + ok.Integer(v.ShadowOpacity) } - if v.ShadowXOffset != nil { + if v.ShadowXOffset != 0 { ok := object.Key("shadowXOffset") - ok.Integer(*v.ShadowXOffset) + ok.Integer(v.ShadowXOffset) } - if v.ShadowYOffset != nil { + if v.ShadowYOffset != 0 { ok := object.Key("shadowYOffset") - ok.Integer(*v.ShadowYOffset) + ok.Integer(v.ShadowYOffset) } if len(v.TeletextGridControl) > 0 { @@ -6019,14 +5783,14 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.TeletextGridControl)) } - if v.XPosition != nil { + if v.XPosition != 0 { ok := object.Key("xPosition") - ok.Integer(*v.XPosition) + ok.Integer(v.XPosition) } - if v.YPosition != nil { + if v.YPosition != 0 { ok := object.Key("yPosition") - ok.Integer(*v.YPosition) + ok.Integer(v.YPosition) } return nil @@ -6036,9 +5800,9 @@ func awsRestjson1_serializeDocumentDvbSubSourceSettings(v *types.DvbSubSourceSet object := value.Object() defer object.Close() - if v.Pid != nil { + if v.Pid != 0 { ok := object.Key("pid") - ok.Integer(*v.Pid) + ok.Integer(v.Pid) } return nil @@ -6048,9 +5812,9 @@ func awsRestjson1_serializeDocumentDvbTdtSettings(v *types.DvbTdtSettings, value object := value.Object() defer object.Close() - if v.RepInterval != nil { + if v.RepInterval != 0 { ok := object.Key("repInterval") - ok.Integer(*v.RepInterval) + ok.Integer(v.RepInterval) } return nil @@ -6065,9 +5829,9 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.AttenuationControl)) } - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Double(*v.Bitrate) + ok.Double(v.Bitrate) } if len(v.BitstreamMode) > 0 { @@ -6085,9 +5849,9 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.DcFilter)) } - if v.Dialnorm != nil { + if v.Dialnorm != 0 { ok := object.Key("dialnorm") - ok.Integer(*v.Dialnorm) + ok.Integer(v.Dialnorm) } if len(v.DrcLine) > 0 { @@ -6110,24 +5874,24 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.LfeFilter)) } - if v.LoRoCenterMixLevel != nil { + if v.LoRoCenterMixLevel != 0 { ok := object.Key("loRoCenterMixLevel") - ok.Double(*v.LoRoCenterMixLevel) + ok.Double(v.LoRoCenterMixLevel) } - if v.LoRoSurroundMixLevel != nil { + if v.LoRoSurroundMixLevel != 0 { ok := object.Key("loRoSurroundMixLevel") - ok.Double(*v.LoRoSurroundMixLevel) + ok.Double(v.LoRoSurroundMixLevel) } - if v.LtRtCenterMixLevel != nil { + if v.LtRtCenterMixLevel != 0 { ok := object.Key("ltRtCenterMixLevel") - ok.Double(*v.LtRtCenterMixLevel) + ok.Double(v.LtRtCenterMixLevel) } - if v.LtRtSurroundMixLevel != nil { + if v.LtRtSurroundMixLevel != 0 { ok := object.Key("ltRtSurroundMixLevel") - ok.Double(*v.LtRtSurroundMixLevel) + ok.Double(v.LtRtSurroundMixLevel) } if len(v.MetadataControl) > 0 { @@ -6213,14 +5977,14 @@ func awsRestjson1_serializeDocumentEmbeddedSourceSettings(v *types.EmbeddedSourc ok.String(string(v.Scte20Detection)) } - if v.Source608ChannelNumber != nil { + if v.Source608ChannelNumber != 0 { ok := object.Key("source608ChannelNumber") - ok.Integer(*v.Source608ChannelNumber) + ok.Integer(v.Source608ChannelNumber) } - if v.Source608TrackNumber != nil { + if v.Source608TrackNumber != 0 { ok := object.Key("source608TrackNumber") - ok.Integer(*v.Source608TrackNumber) + ok.Integer(v.Source608TrackNumber) } return nil @@ -6354,9 +6118,9 @@ func awsRestjson1_serializeDocumentFecOutputSettings(v *types.FecOutputSettings, object := value.Object() defer object.Close() - if v.ColumnDepth != nil { + if v.ColumnDepth != 0 { ok := object.Key("columnDepth") - ok.Integer(*v.ColumnDepth) + ok.Integer(v.ColumnDepth) } if len(v.IncludeFec) > 0 { @@ -6364,9 +6128,9 @@ func awsRestjson1_serializeDocumentFecOutputSettings(v *types.FecOutputSettings, ok.String(string(v.IncludeFec)) } - if v.RowLength != nil { + if v.RowLength != 0 { ok := object.Key("rowLength") - ok.Integer(*v.RowLength) + ok.Integer(v.RowLength) } return nil @@ -6453,9 +6217,9 @@ func awsRestjson1_serializeDocumentFrameCaptureSettings(v *types.FrameCaptureSet object := value.Object() defer object.Close() - if v.CaptureInterval != nil { + if v.CaptureInterval != 0 { ok := object.Key("captureInterval") - ok.Integer(*v.CaptureInterval) + ok.Integer(v.CaptureInterval) } if len(v.CaptureIntervalUnits) > 0 { @@ -6470,9 +6234,9 @@ func awsRestjson1_serializeDocumentGlobalConfiguration(v *types.GlobalConfigurat object := value.Object() defer object.Close() - if v.InitialAudioGain != nil { + if v.InitialAudioGain != 0 { ok := object.Key("initialAudioGain") - ok.Integer(*v.InitialAudioGain) + ok.Integer(v.InitialAudioGain) } if len(v.InputEndAction) > 0 { @@ -6561,19 +6325,19 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.AfdSignaling)) } - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } - if v.BufFillPct != nil { + if v.BufFillPct != 0 { ok := object.Key("bufFillPct") - ok.Integer(*v.BufFillPct) + ok.Integer(v.BufFillPct) } - if v.BufSize != nil { + if v.BufSize != 0 { ok := object.Key("bufSize") - ok.Integer(*v.BufSize) + ok.Integer(v.BufSize) } if len(v.ColorMetadata) > 0 { @@ -6620,14 +6384,14 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.FramerateControl)) } - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } if len(v.GopBReference) > 0 { @@ -6635,19 +6399,19 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.GopBReference)) } - if v.GopClosedCadence != nil { + if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") - ok.Integer(*v.GopClosedCadence) + ok.Integer(v.GopClosedCadence) } - if v.GopNumBFrames != nil { + if v.GopNumBFrames != 0 { ok := object.Key("gopNumBFrames") - ok.Integer(*v.GopNumBFrames) + ok.Integer(v.GopNumBFrames) } - if v.GopSize != nil { + if v.GopSize != 0 { ok := object.Key("gopSize") - ok.Double(*v.GopSize) + ok.Double(v.GopSize) } if len(v.GopSizeUnits) > 0 { @@ -6665,19 +6429,19 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.LookAheadRateControl)) } - if v.MaxBitrate != nil { + if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") - ok.Integer(*v.MaxBitrate) + ok.Integer(v.MaxBitrate) } - if v.MinIInterval != nil { + if v.MinIInterval != 0 { ok := object.Key("minIInterval") - ok.Integer(*v.MinIInterval) + ok.Integer(v.MinIInterval) } - if v.NumRefFrames != nil { + if v.NumRefFrames != 0 { ok := object.Key("numRefFrames") - ok.Integer(*v.NumRefFrames) + ok.Integer(v.NumRefFrames) } if len(v.ParControl) > 0 { @@ -6685,14 +6449,14 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.ParControl)) } - if v.ParDenominator != nil { + if v.ParDenominator != 0 { ok := object.Key("parDenominator") - ok.Integer(*v.ParDenominator) + ok.Integer(v.ParDenominator) } - if v.ParNumerator != nil { + if v.ParNumerator != 0 { ok := object.Key("parNumerator") - ok.Integer(*v.ParNumerator) + ok.Integer(v.ParNumerator) } if len(v.Profile) > 0 { @@ -6705,9 +6469,9 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.QualityLevel)) } - if v.QvbrQualityLevel != nil { + if v.QvbrQualityLevel != 0 { ok := object.Key("qvbrQualityLevel") - ok.Integer(*v.QvbrQualityLevel) + ok.Integer(v.QvbrQualityLevel) } if len(v.RateControlMode) > 0 { @@ -6725,14 +6489,14 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.SceneChangeDetect)) } - if v.Slices != nil { + if v.Slices != 0 { ok := object.Key("slices") - ok.Integer(*v.Slices) + ok.Integer(v.Slices) } - if v.Softness != nil { + if v.Softness != 0 { ok := object.Key("softness") - ok.Integer(*v.Softness) + ok.Integer(v.Softness) } if len(v.SpatialAq) > 0 { @@ -6831,14 +6595,14 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.AlternativeTransferFunction)) } - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } - if v.BufSize != nil { + if v.BufSize != 0 { ok := object.Key("bufSize") - ok.Integer(*v.BufSize) + ok.Integer(v.BufSize) } if len(v.ColorMetadata) > 0 { @@ -6870,24 +6634,24 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.FlickerAq)) } - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } - if v.GopClosedCadence != nil { + if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") - ok.Integer(*v.GopClosedCadence) + ok.Integer(v.GopClosedCadence) } - if v.GopSize != nil { + if v.GopSize != 0 { ok := object.Key("gopSize") - ok.Double(*v.GopSize) + ok.Double(v.GopSize) } if len(v.GopSizeUnits) > 0 { @@ -6905,24 +6669,24 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.LookAheadRateControl)) } - if v.MaxBitrate != nil { + if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") - ok.Integer(*v.MaxBitrate) + ok.Integer(v.MaxBitrate) } - if v.MinIInterval != nil { + if v.MinIInterval != 0 { ok := object.Key("minIInterval") - ok.Integer(*v.MinIInterval) + ok.Integer(v.MinIInterval) } - if v.ParDenominator != nil { + if v.ParDenominator != 0 { ok := object.Key("parDenominator") - ok.Integer(*v.ParDenominator) + ok.Integer(v.ParDenominator) } - if v.ParNumerator != nil { + if v.ParNumerator != 0 { ok := object.Key("parNumerator") - ok.Integer(*v.ParNumerator) + ok.Integer(v.ParNumerator) } if len(v.Profile) > 0 { @@ -6930,9 +6694,9 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.Profile)) } - if v.QvbrQualityLevel != nil { + if v.QvbrQualityLevel != 0 { ok := object.Key("qvbrQualityLevel") - ok.Integer(*v.QvbrQualityLevel) + ok.Integer(v.QvbrQualityLevel) } if len(v.RateControlMode) > 0 { @@ -6950,9 +6714,9 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.SceneChangeDetect)) } - if v.Slices != nil { + if v.Slices != 0 { ok := object.Key("slices") - ok.Integer(*v.Slices) + ok.Integer(v.Slices) } if len(v.Tier) > 0 { @@ -6972,14 +6736,14 @@ func awsRestjson1_serializeDocumentHdr10Settings(v *types.Hdr10Settings, value s object := value.Object() defer object.Close() - if v.MaxCll != nil { + if v.MaxCll != 0 { ok := object.Key("maxCll") - ok.Integer(*v.MaxCll) + ok.Integer(v.MaxCll) } - if v.MaxFall != nil { + if v.MaxFall != 0 { ok := object.Key("maxFall") - ok.Integer(*v.MaxFall) + ok.Integer(v.MaxFall) } return nil @@ -6989,14 +6753,14 @@ func awsRestjson1_serializeDocumentHlsAkamaiSettings(v *types.HlsAkamaiSettings, object := value.Object() defer object.Close() - if v.ConnectionRetryInterval != nil { + if v.ConnectionRetryInterval != 0 { ok := object.Key("connectionRetryInterval") - ok.Integer(*v.ConnectionRetryInterval) + ok.Integer(v.ConnectionRetryInterval) } - if v.FilecacheDuration != nil { + if v.FilecacheDuration != 0 { ok := object.Key("filecacheDuration") - ok.Integer(*v.FilecacheDuration) + ok.Integer(v.FilecacheDuration) } if len(v.HttpTransferMode) > 0 { @@ -7004,14 +6768,14 @@ func awsRestjson1_serializeDocumentHlsAkamaiSettings(v *types.HlsAkamaiSettings, ok.String(string(v.HttpTransferMode)) } - if v.NumRetries != nil { + if v.NumRetries != 0 { ok := object.Key("numRetries") - ok.Integer(*v.NumRetries) + ok.Integer(v.NumRetries) } - if v.RestartDelay != nil { + if v.RestartDelay != 0 { ok := object.Key("restartDelay") - ok.Integer(*v.RestartDelay) + ok.Integer(v.RestartDelay) } if v.Salt != nil { @@ -7031,24 +6795,24 @@ func awsRestjson1_serializeDocumentHlsBasicPutSettings(v *types.HlsBasicPutSetti object := value.Object() defer object.Close() - if v.ConnectionRetryInterval != nil { + if v.ConnectionRetryInterval != 0 { ok := object.Key("connectionRetryInterval") - ok.Integer(*v.ConnectionRetryInterval) + ok.Integer(v.ConnectionRetryInterval) } - if v.FilecacheDuration != nil { + if v.FilecacheDuration != 0 { ok := object.Key("filecacheDuration") - ok.Integer(*v.FilecacheDuration) + ok.Integer(v.FilecacheDuration) } - if v.NumRetries != nil { + if v.NumRetries != 0 { ok := object.Key("numRetries") - ok.Integer(*v.NumRetries) + ok.Integer(v.NumRetries) } - if v.RestartDelay != nil { + if v.RestartDelay != 0 { ok := object.Key("restartDelay") - ok.Integer(*v.RestartDelay) + ok.Integer(v.RestartDelay) } return nil @@ -7191,9 +6955,9 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.IncompleteSegmentBehavior)) } - if v.IndexNSegments != nil { + if v.IndexNSegments != 0 { ok := object.Key("indexNSegments") - ok.Integer(*v.IndexNSegments) + ok.Integer(v.IndexNSegments) } if len(v.InputLossAction) > 0 { @@ -7211,9 +6975,9 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.IvSource)) } - if v.KeepSegments != nil { + if v.KeepSegments != 0 { ok := object.Key("keepSegments") - ok.Integer(*v.KeepSegments) + ok.Integer(v.KeepSegments) } if v.KeyFormat != nil { @@ -7243,9 +7007,9 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.ManifestDurationFormat)) } - if v.MinSegmentLength != nil { + if v.MinSegmentLength != 0 { ok := object.Key("minSegmentLength") - ok.Integer(*v.MinSegmentLength) + ok.Integer(v.MinSegmentLength) } if len(v.Mode) > 0 { @@ -7263,9 +7027,9 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.ProgramDateTime)) } - if v.ProgramDateTimePeriod != nil { + if v.ProgramDateTimePeriod != 0 { ok := object.Key("programDateTimePeriod") - ok.Integer(*v.ProgramDateTimePeriod) + ok.Integer(v.ProgramDateTimePeriod) } if len(v.RedundantManifest) > 0 { @@ -7278,14 +7042,14 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.SegmentationMode)) } - if v.SegmentLength != nil { + if v.SegmentLength != 0 { ok := object.Key("segmentLength") - ok.Integer(*v.SegmentLength) + ok.Integer(v.SegmentLength) } - if v.SegmentsPerSubdirectory != nil { + if v.SegmentsPerSubdirectory != 0 { ok := object.Key("segmentsPerSubdirectory") - ok.Integer(*v.SegmentsPerSubdirectory) + ok.Integer(v.SegmentsPerSubdirectory) } if len(v.StreamInfResolution) > 0 { @@ -7298,14 +7062,14 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.TimedMetadataId3Frame)) } - if v.TimedMetadataId3Period != nil { + if v.TimedMetadataId3Period != 0 { ok := object.Key("timedMetadataId3Period") - ok.Integer(*v.TimedMetadataId3Period) + ok.Integer(v.TimedMetadataId3Period) } - if v.TimestampDeltaMilliseconds != nil { + if v.TimestampDeltaMilliseconds != 0 { ok := object.Key("timestampDeltaMilliseconds") - ok.Integer(*v.TimestampDeltaMilliseconds) + ok.Integer(v.TimestampDeltaMilliseconds) } if len(v.TsFileMode) > 0 { @@ -7332,24 +7096,24 @@ func awsRestjson1_serializeDocumentHlsInputSettings(v *types.HlsInputSettings, v object := value.Object() defer object.Close() - if v.Bandwidth != nil { + if v.Bandwidth != 0 { ok := object.Key("bandwidth") - ok.Integer(*v.Bandwidth) + ok.Integer(v.Bandwidth) } - if v.BufferSegments != nil { + if v.BufferSegments != 0 { ok := object.Key("bufferSegments") - ok.Integer(*v.BufferSegments) + ok.Integer(v.BufferSegments) } - if v.Retries != nil { + if v.Retries != 0 { ok := object.Key("retries") - ok.Integer(*v.Retries) + ok.Integer(v.Retries) } - if v.RetryInterval != nil { + if v.RetryInterval != 0 { ok := object.Key("retryInterval") - ok.Integer(*v.RetryInterval) + ok.Integer(v.RetryInterval) } return nil @@ -7359,14 +7123,14 @@ func awsRestjson1_serializeDocumentHlsMediaStoreSettings(v *types.HlsMediaStoreS object := value.Object() defer object.Close() - if v.ConnectionRetryInterval != nil { + if v.ConnectionRetryInterval != 0 { ok := object.Key("connectionRetryInterval") - ok.Integer(*v.ConnectionRetryInterval) + ok.Integer(v.ConnectionRetryInterval) } - if v.FilecacheDuration != nil { + if v.FilecacheDuration != 0 { ok := object.Key("filecacheDuration") - ok.Integer(*v.FilecacheDuration) + ok.Integer(v.FilecacheDuration) } if len(v.MediaStoreStorageClass) > 0 { @@ -7374,14 +7138,14 @@ func awsRestjson1_serializeDocumentHlsMediaStoreSettings(v *types.HlsMediaStoreS ok.String(string(v.MediaStoreStorageClass)) } - if v.NumRetries != nil { + if v.NumRetries != 0 { ok := object.Key("numRetries") - ok.Integer(*v.NumRetries) + ok.Integer(v.NumRetries) } - if v.RestartDelay != nil { + if v.RestartDelay != 0 { ok := object.Key("restartDelay") - ok.Integer(*v.RestartDelay) + ok.Integer(v.RestartDelay) } return nil @@ -7460,14 +7224,14 @@ func awsRestjson1_serializeDocumentHlsWebdavSettings(v *types.HlsWebdavSettings, object := value.Object() defer object.Close() - if v.ConnectionRetryInterval != nil { + if v.ConnectionRetryInterval != 0 { ok := object.Key("connectionRetryInterval") - ok.Integer(*v.ConnectionRetryInterval) + ok.Integer(v.ConnectionRetryInterval) } - if v.FilecacheDuration != nil { + if v.FilecacheDuration != 0 { ok := object.Key("filecacheDuration") - ok.Integer(*v.FilecacheDuration) + ok.Integer(v.FilecacheDuration) } if len(v.HttpTransferMode) > 0 { @@ -7475,14 +7239,14 @@ func awsRestjson1_serializeDocumentHlsWebdavSettings(v *types.HlsWebdavSettings, ok.String(string(v.HttpTransferMode)) } - if v.NumRetries != nil { + if v.NumRetries != 0 { ok := object.Key("numRetries") - ok.Integer(*v.NumRetries) + ok.Integer(v.NumRetries) } - if v.RestartDelay != nil { + if v.RestartDelay != 0 { ok := object.Key("restartDelay") - ok.Integer(*v.RestartDelay) + ok.Integer(v.RestartDelay) } return nil @@ -7530,14 +7294,14 @@ func awsRestjson1_serializeDocumentInputChannelLevel(v *types.InputChannelLevel, object := value.Object() defer object.Close() - if v.Gain != nil { + if v.Gain != 0 { ok := object.Key("gain") - ok.Integer(*v.Gain) + ok.Integer(v.Gain) } - if v.InputChannel != nil { + if v.InputChannel != 0 { ok := object.Key("inputChannel") - ok.Integer(*v.InputChannel) + ok.Integer(v.InputChannel) } return nil @@ -7590,9 +7354,9 @@ func awsRestjson1_serializeDocumentInputDeviceConfigurableSettings(v *types.Inpu ok.String(string(v.ConfiguredInput)) } - if v.MaxBitrate != nil { + if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") - ok.Integer(*v.MaxBitrate) + ok.Integer(v.MaxBitrate) } return nil @@ -7648,9 +7412,9 @@ func awsRestjson1_serializeDocumentInputLossBehavior(v *types.InputLossBehavior, object := value.Object() defer object.Close() - if v.BlackFrameMsec != nil { + if v.BlackFrameMsec != 0 { ok := object.Key("blackFrameMsec") - ok.Integer(*v.BlackFrameMsec) + ok.Integer(v.BlackFrameMsec) } if v.InputLossImageColor != nil { @@ -7670,9 +7434,9 @@ func awsRestjson1_serializeDocumentInputLossBehavior(v *types.InputLossBehavior, ok.String(string(v.InputLossImageType)) } - if v.RepeatFrameMsec != nil { + if v.RepeatFrameMsec != 0 { ok := object.Key("repeatFrameMsec") - ok.Integer(*v.RepeatFrameMsec) + ok.Integer(v.RepeatFrameMsec) } return nil @@ -7682,9 +7446,9 @@ func awsRestjson1_serializeDocumentInputLossFailoverSettings(v *types.InputLossF object := value.Object() defer object.Close() - if v.InputLossThresholdMsec != nil { + if v.InputLossThresholdMsec != 0 { ok := object.Key("inputLossThresholdMsec") - ok.Integer(*v.InputLossThresholdMsec) + ok.Integer(v.InputLossThresholdMsec) } return nil @@ -7744,9 +7508,9 @@ func awsRestjson1_serializeDocumentInputSettings(v *types.InputSettings, value s ok.String(string(v.DenoiseFilter)) } - if v.FilterStrength != nil { + if v.FilterStrength != 0 { ok := object.Key("filterStrength") - ok.Integer(*v.FilterStrength) + ok.Integer(v.FilterStrength) } if len(v.InputFilter) > 0 { @@ -7927,9 +7691,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.AudioBufferModel)) } - if v.AudioFramesPerPes != nil { + if v.AudioFramesPerPes != 0 { ok := object.Key("audioFramesPerPes") - ok.Integer(*v.AudioFramesPerPes) + ok.Integer(v.AudioFramesPerPes) } if v.AudioPids != nil { @@ -7942,9 +7706,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.AudioStreamType)) } - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Integer(*v.Bitrate) + ok.Integer(v.Bitrate) } if len(v.BufferModel) > 0 { @@ -7998,9 +7762,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.EbpAudioInterval)) } - if v.EbpLookaheadMs != nil { + if v.EbpLookaheadMs != 0 { ok := object.Key("ebpLookaheadMs") - ok.Integer(*v.EbpLookaheadMs) + ok.Integer(v.EbpLookaheadMs) } if len(v.EbpPlacement) > 0 { @@ -8028,9 +7792,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(*v.EtvSignalPid) } - if v.FragmentTime != nil { + if v.FragmentTime != 0 { ok := object.Key("fragmentTime") - ok.Double(*v.FragmentTime) + ok.Double(v.FragmentTime) } if len(v.Klv) > 0 { @@ -8048,14 +7812,14 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.NielsenId3Behavior)) } - if v.NullPacketBitrate != nil { + if v.NullPacketBitrate != 0 { ok := object.Key("nullPacketBitrate") - ok.Double(*v.NullPacketBitrate) + ok.Double(v.NullPacketBitrate) } - if v.PatInterval != nil { + if v.PatInterval != 0 { ok := object.Key("patInterval") - ok.Integer(*v.PatInterval) + ok.Integer(v.PatInterval) } if len(v.PcrControl) > 0 { @@ -8063,9 +7827,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.PcrControl)) } - if v.PcrPeriod != nil { + if v.PcrPeriod != 0 { ok := object.Key("pcrPeriod") - ok.Integer(*v.PcrPeriod) + ok.Integer(v.PcrPeriod) } if v.PcrPid != nil { @@ -8073,9 +7837,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(*v.PcrPid) } - if v.PmtInterval != nil { + if v.PmtInterval != 0 { ok := object.Key("pmtInterval") - ok.Integer(*v.PmtInterval) + ok.Integer(v.PmtInterval) } if v.PmtPid != nil { @@ -8083,9 +7847,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(*v.PmtPid) } - if v.ProgramNum != nil { + if v.ProgramNum != 0 { ok := object.Key("programNum") - ok.Integer(*v.ProgramNum) + ok.Integer(v.ProgramNum) } if len(v.RateMode) > 0 { @@ -8118,9 +7882,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.SegmentationStyle)) } - if v.SegmentationTime != nil { + if v.SegmentationTime != 0 { ok := object.Key("segmentationTime") - ok.Double(*v.SegmentationTime) + ok.Double(v.SegmentationTime) } if len(v.TimedMetadataBehavior) > 0 { @@ -8133,9 +7897,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(*v.TimedMetadataPid) } - if v.TransportStreamId != nil { + if v.TransportStreamId != 0 { ok := object.Key("transportStreamId") - ok.Integer(*v.TransportStreamId) + ok.Integer(v.TransportStreamId) } if v.VideoPid != nil { @@ -8150,9 +7914,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi object := value.Object() defer object.Close() - if v.AudioFramesPerPes != nil { + if v.AudioFramesPerPes != 0 { ok := object.Key("audioFramesPerPes") - ok.Integer(*v.AudioFramesPerPes) + ok.Integer(v.AudioFramesPerPes) } if v.AudioPids != nil { @@ -8170,9 +7934,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(string(v.NielsenId3Behavior)) } - if v.PatInterval != nil { + if v.PatInterval != 0 { ok := object.Key("patInterval") - ok.Integer(*v.PatInterval) + ok.Integer(v.PatInterval) } if len(v.PcrControl) > 0 { @@ -8180,9 +7944,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(string(v.PcrControl)) } - if v.PcrPeriod != nil { + if v.PcrPeriod != 0 { ok := object.Key("pcrPeriod") - ok.Integer(*v.PcrPeriod) + ok.Integer(v.PcrPeriod) } if v.PcrPid != nil { @@ -8190,9 +7954,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(*v.PcrPid) } - if v.PmtInterval != nil { + if v.PmtInterval != 0 { ok := object.Key("pmtInterval") - ok.Integer(*v.PmtInterval) + ok.Integer(v.PmtInterval) } if v.PmtPid != nil { @@ -8200,9 +7964,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(*v.PmtPid) } - if v.ProgramNum != nil { + if v.ProgramNum != 0 { ok := object.Key("programNum") - ok.Integer(*v.ProgramNum) + ok.Integer(v.ProgramNum) } if len(v.Scte35Behavior) > 0 { @@ -8225,9 +7989,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(*v.TimedMetadataPid) } - if v.TransportStreamId != nil { + if v.TransportStreamId != 0 { ok := object.Key("transportStreamId") - ok.Integer(*v.TransportStreamId) + ok.Integer(v.TransportStreamId) } if v.VideoPid != nil { @@ -8287,9 +8051,9 @@ func awsRestjson1_serializeDocumentMp2Settings(v *types.Mp2Settings, value smith object := value.Object() defer object.Close() - if v.Bitrate != nil { + if v.Bitrate != 0 { ok := object.Key("bitrate") - ok.Double(*v.Bitrate) + ok.Double(v.Bitrate) } if len(v.CodingMode) > 0 { @@ -8297,9 +8061,9 @@ func awsRestjson1_serializeDocumentMp2Settings(v *types.Mp2Settings, value smith ok.String(string(v.CodingMode)) } - if v.SampleRate != nil { + if v.SampleRate != 0 { ok := object.Key("sampleRate") - ok.Double(*v.SampleRate) + ok.Double(v.SampleRate) } return nil @@ -8360,29 +8124,29 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.FixedAfd)) } - if v.FramerateDenominator != nil { + if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") - ok.Integer(*v.FramerateDenominator) + ok.Integer(v.FramerateDenominator) } - if v.FramerateNumerator != nil { + if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") - ok.Integer(*v.FramerateNumerator) + ok.Integer(v.FramerateNumerator) } - if v.GopClosedCadence != nil { + if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") - ok.Integer(*v.GopClosedCadence) + ok.Integer(v.GopClosedCadence) } - if v.GopNumBFrames != nil { + if v.GopNumBFrames != 0 { ok := object.Key("gopNumBFrames") - ok.Integer(*v.GopNumBFrames) + ok.Integer(v.GopNumBFrames) } - if v.GopSize != nil { + if v.GopSize != 0 { ok := object.Key("gopSize") - ok.Double(*v.GopSize) + ok.Double(v.GopSize) } if len(v.GopSizeUnits) > 0 { @@ -8427,9 +8191,9 @@ func awsRestjson1_serializeDocumentMsSmoothGroupSettings(v *types.MsSmoothGroupS ok.String(string(v.CertificateMode)) } - if v.ConnectionRetryInterval != nil { + if v.ConnectionRetryInterval != 0 { ok := object.Key("connectionRetryInterval") - ok.Integer(*v.ConnectionRetryInterval) + ok.Integer(v.ConnectionRetryInterval) } if v.Destination != nil { @@ -8454,14 +8218,14 @@ func awsRestjson1_serializeDocumentMsSmoothGroupSettings(v *types.MsSmoothGroupS ok.String(string(v.EventStopBehavior)) } - if v.FilecacheDuration != nil { + if v.FilecacheDuration != 0 { ok := object.Key("filecacheDuration") - ok.Integer(*v.FilecacheDuration) + ok.Integer(v.FilecacheDuration) } - if v.FragmentLength != nil { + if v.FragmentLength != 0 { ok := object.Key("fragmentLength") - ok.Integer(*v.FragmentLength) + ok.Integer(v.FragmentLength) } if len(v.InputLossAction) > 0 { @@ -8469,14 +8233,14 @@ func awsRestjson1_serializeDocumentMsSmoothGroupSettings(v *types.MsSmoothGroupS ok.String(string(v.InputLossAction)) } - if v.NumRetries != nil { + if v.NumRetries != 0 { ok := object.Key("numRetries") - ok.Integer(*v.NumRetries) + ok.Integer(v.NumRetries) } - if v.RestartDelay != nil { + if v.RestartDelay != 0 { ok := object.Key("restartDelay") - ok.Integer(*v.RestartDelay) + ok.Integer(v.RestartDelay) } if len(v.SegmentationMode) > 0 { @@ -8484,9 +8248,9 @@ func awsRestjson1_serializeDocumentMsSmoothGroupSettings(v *types.MsSmoothGroupS ok.String(string(v.SegmentationMode)) } - if v.SendDelayMs != nil { + if v.SendDelayMs != 0 { ok := object.Key("sendDelayMs") - ok.Integer(*v.SendDelayMs) + ok.Integer(v.SendDelayMs) } if len(v.SparseTrackType) > 0 { @@ -8593,9 +8357,9 @@ func awsRestjson1_serializeDocumentMultiplexProgramSettings(v *types.MultiplexPr ok.String(string(v.PreferredChannelPipeline)) } - if v.ProgramNumber != nil { + if v.ProgramNumber != 0 { ok := object.Key("programNumber") - ok.Integer(*v.ProgramNumber) + ok.Integer(v.ProgramNumber) } if v.ServiceDescriptor != nil { @@ -8619,24 +8383,24 @@ func awsRestjson1_serializeDocumentMultiplexSettings(v *types.MultiplexSettings, object := value.Object() defer object.Close() - if v.MaximumVideoBufferDelayMilliseconds != nil { + if v.MaximumVideoBufferDelayMilliseconds != 0 { ok := object.Key("maximumVideoBufferDelayMilliseconds") - ok.Integer(*v.MaximumVideoBufferDelayMilliseconds) + ok.Integer(v.MaximumVideoBufferDelayMilliseconds) } - if v.TransportStreamBitrate != nil { + if v.TransportStreamBitrate != 0 { ok := object.Key("transportStreamBitrate") - ok.Integer(*v.TransportStreamBitrate) + ok.Integer(v.TransportStreamBitrate) } - if v.TransportStreamId != nil { + if v.TransportStreamId != 0 { ok := object.Key("transportStreamId") - ok.Integer(*v.TransportStreamId) + ok.Integer(v.TransportStreamId) } - if v.TransportStreamReservedBitrate != nil { + if v.TransportStreamReservedBitrate != 0 { ok := object.Key("transportStreamReservedBitrate") - ok.Integer(*v.TransportStreamReservedBitrate) + ok.Integer(v.TransportStreamReservedBitrate) } return nil @@ -8646,19 +8410,19 @@ func awsRestjson1_serializeDocumentMultiplexStatmuxVideoSettings(v *types.Multip object := value.Object() defer object.Close() - if v.MaximumBitrate != nil { + if v.MaximumBitrate != 0 { ok := object.Key("maximumBitrate") - ok.Integer(*v.MaximumBitrate) + ok.Integer(v.MaximumBitrate) } - if v.MinimumBitrate != nil { + if v.MinimumBitrate != 0 { ok := object.Key("minimumBitrate") - ok.Integer(*v.MinimumBitrate) + ok.Integer(v.MinimumBitrate) } - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } return nil @@ -8668,9 +8432,9 @@ func awsRestjson1_serializeDocumentMultiplexVideoSettings(v *types.MultiplexVide object := value.Object() defer object.Close() - if v.ConstantBitrate != nil { + if v.ConstantBitrate != 0 { ok := object.Key("constantBitrate") - ok.Integer(*v.ConstantBitrate) + ok.Integer(v.ConstantBitrate) } if v.StatmuxSettings != nil { @@ -9046,14 +8810,14 @@ func awsRestjson1_serializeDocumentRemixSettings(v *types.RemixSettings, value s } } - if v.ChannelsIn != nil { + if v.ChannelsIn != 0 { ok := object.Key("channelsIn") - ok.Integer(*v.ChannelsIn) + ok.Integer(v.ChannelsIn) } - if v.ChannelsOut != nil { + if v.ChannelsOut != 0 { ok := object.Key("channelsOut") - ok.Integer(*v.ChannelsOut) + ok.Integer(v.ChannelsOut) } return nil @@ -9080,9 +8844,9 @@ func awsRestjson1_serializeDocumentRtmpGroupSettings(v *types.RtmpGroupSettings, ok.String(string(v.CacheFullBehavior)) } - if v.CacheLength != nil { + if v.CacheLength != 0 { ok := object.Key("cacheLength") - ok.Integer(*v.CacheLength) + ok.Integer(v.CacheLength) } if len(v.CaptionData) > 0 { @@ -9095,9 +8859,9 @@ func awsRestjson1_serializeDocumentRtmpGroupSettings(v *types.RtmpGroupSettings, ok.String(string(v.InputLossAction)) } - if v.RestartDelay != nil { + if v.RestartDelay != 0 { ok := object.Key("restartDelay") - ok.Integer(*v.RestartDelay) + ok.Integer(v.RestartDelay) } return nil @@ -9112,9 +8876,9 @@ func awsRestjson1_serializeDocumentRtmpOutputSettings(v *types.RtmpOutputSetting ok.String(string(v.CertificateMode)) } - if v.ConnectionRetryInterval != nil { + if v.ConnectionRetryInterval != 0 { ok := object.Key("connectionRetryInterval") - ok.Integer(*v.ConnectionRetryInterval) + ok.Integer(v.ConnectionRetryInterval) } if v.Destination != nil { @@ -9124,9 +8888,9 @@ func awsRestjson1_serializeDocumentRtmpOutputSettings(v *types.RtmpOutputSetting } } - if v.NumRetries != nil { + if v.NumRetries != 0 { ok := object.Key("numRetries") - ok.Integer(*v.NumRetries) + ok.Integer(v.NumRetries) } return nil @@ -9279,9 +9043,9 @@ func awsRestjson1_serializeDocumentScte20SourceSettings(v *types.Scte20SourceSet ok.String(string(v.Convert608To708)) } - if v.Source608ChannelNumber != nil { + if v.Source608ChannelNumber != 0 { ok := object.Key("source608ChannelNumber") - ok.Integer(*v.Source608ChannelNumber) + ok.Integer(v.Source608ChannelNumber) } return nil @@ -9298,9 +9062,9 @@ func awsRestjson1_serializeDocumentScte27SourceSettings(v *types.Scte27SourceSet object := value.Object() defer object.Close() - if v.Pid != nil { + if v.Pid != 0 { ok := object.Key("pid") - ok.Integer(*v.Pid) + ok.Integer(v.Pid) } return nil @@ -9365,9 +9129,9 @@ func awsRestjson1_serializeDocumentScte35ReturnToNetworkScheduleActionSettings(v object := value.Object() defer object.Close() - if v.SpliceEventId != nil { + if v.SpliceEventId != 0 { ok := object.Key("spliceEventId") - ok.Long(*v.SpliceEventId) + ok.Long(v.SpliceEventId) } return nil @@ -9389,19 +9153,19 @@ func awsRestjson1_serializeDocumentScte35SegmentationDescriptor(v *types.Scte35S ok.String(string(v.SegmentationCancelIndicator)) } - if v.SegmentationDuration != nil { + if v.SegmentationDuration != 0 { ok := object.Key("segmentationDuration") - ok.Long(*v.SegmentationDuration) + ok.Long(v.SegmentationDuration) } - if v.SegmentationEventId != nil { + if v.SegmentationEventId != 0 { ok := object.Key("segmentationEventId") - ok.Long(*v.SegmentationEventId) + ok.Long(v.SegmentationEventId) } - if v.SegmentationTypeId != nil { + if v.SegmentationTypeId != 0 { ok := object.Key("segmentationTypeId") - ok.Integer(*v.SegmentationTypeId) + ok.Integer(v.SegmentationTypeId) } if v.SegmentationUpid != nil { @@ -9409,29 +9173,29 @@ func awsRestjson1_serializeDocumentScte35SegmentationDescriptor(v *types.Scte35S ok.String(*v.SegmentationUpid) } - if v.SegmentationUpidType != nil { + if v.SegmentationUpidType != 0 { ok := object.Key("segmentationUpidType") - ok.Integer(*v.SegmentationUpidType) + ok.Integer(v.SegmentationUpidType) } - if v.SegmentNum != nil { + if v.SegmentNum != 0 { ok := object.Key("segmentNum") - ok.Integer(*v.SegmentNum) + ok.Integer(v.SegmentNum) } - if v.SegmentsExpected != nil { + if v.SegmentsExpected != 0 { ok := object.Key("segmentsExpected") - ok.Integer(*v.SegmentsExpected) + ok.Integer(v.SegmentsExpected) } - if v.SubSegmentNum != nil { + if v.SubSegmentNum != 0 { ok := object.Key("subSegmentNum") - ok.Integer(*v.SubSegmentNum) + ok.Integer(v.SubSegmentNum) } - if v.SubSegmentsExpected != nil { + if v.SubSegmentsExpected != 0 { ok := object.Key("subSegmentsExpected") - ok.Integer(*v.SubSegmentsExpected) + ok.Integer(v.SubSegmentsExpected) } return nil @@ -9441,9 +9205,9 @@ func awsRestjson1_serializeDocumentScte35SpliceInsert(v *types.Scte35SpliceInser object := value.Object() defer object.Close() - if v.AdAvailOffset != nil { + if v.AdAvailOffset != 0 { ok := object.Key("adAvailOffset") - ok.Integer(*v.AdAvailOffset) + ok.Integer(v.AdAvailOffset) } if len(v.NoRegionalBlackoutFlag) > 0 { @@ -9463,14 +9227,14 @@ func awsRestjson1_serializeDocumentScte35SpliceInsertScheduleActionSettings(v *t object := value.Object() defer object.Close() - if v.Duration != nil { + if v.Duration != 0 { ok := object.Key("duration") - ok.Long(*v.Duration) + ok.Long(v.Duration) } - if v.SpliceEventId != nil { + if v.SpliceEventId != 0 { ok := object.Key("spliceEventId") - ok.Long(*v.SpliceEventId) + ok.Long(v.SpliceEventId) } return nil @@ -9480,9 +9244,9 @@ func awsRestjson1_serializeDocumentScte35TimeSignalApos(v *types.Scte35TimeSigna object := value.Object() defer object.Close() - if v.AdAvailOffset != nil { + if v.AdAvailOffset != 0 { ok := object.Key("adAvailOffset") - ok.Integer(*v.AdAvailOffset) + ok.Integer(v.AdAvailOffset) } if len(v.NoRegionalBlackoutFlag) > 0 { @@ -9554,24 +9318,24 @@ func awsRestjson1_serializeDocumentStaticImageActivateScheduleActionSettings(v * object := value.Object() defer object.Close() - if v.Duration != nil { + if v.Duration != 0 { ok := object.Key("duration") - ok.Integer(*v.Duration) + ok.Integer(v.Duration) } - if v.FadeIn != nil { + if v.FadeIn != 0 { ok := object.Key("fadeIn") - ok.Integer(*v.FadeIn) + ok.Integer(v.FadeIn) } - if v.FadeOut != nil { + if v.FadeOut != 0 { ok := object.Key("fadeOut") - ok.Integer(*v.FadeOut) + ok.Integer(v.FadeOut) } - if v.Height != nil { + if v.Height != 0 { ok := object.Key("height") - ok.Integer(*v.Height) + ok.Integer(v.Height) } if v.Image != nil { @@ -9581,29 +9345,29 @@ func awsRestjson1_serializeDocumentStaticImageActivateScheduleActionSettings(v * } } - if v.ImageX != nil { + if v.ImageX != 0 { ok := object.Key("imageX") - ok.Integer(*v.ImageX) + ok.Integer(v.ImageX) } - if v.ImageY != nil { + if v.ImageY != 0 { ok := object.Key("imageY") - ok.Integer(*v.ImageY) + ok.Integer(v.ImageY) } - if v.Layer != nil { + if v.Layer != 0 { ok := object.Key("layer") - ok.Integer(*v.Layer) + ok.Integer(v.Layer) } - if v.Opacity != nil { + if v.Opacity != 0 { ok := object.Key("opacity") - ok.Integer(*v.Opacity) + ok.Integer(v.Opacity) } - if v.Width != nil { + if v.Width != 0 { ok := object.Key("width") - ok.Integer(*v.Width) + ok.Integer(v.Width) } return nil @@ -9613,14 +9377,14 @@ func awsRestjson1_serializeDocumentStaticImageDeactivateScheduleActionSettings(v object := value.Object() defer object.Close() - if v.FadeOut != nil { + if v.FadeOut != 0 { ok := object.Key("fadeOut") - ok.Integer(*v.FadeOut) + ok.Integer(v.FadeOut) } - if v.Layer != nil { + if v.Layer != 0 { ok := object.Key("layer") - ok.Integer(*v.Layer) + ok.Integer(v.Layer) } return nil @@ -9662,17 +9426,13 @@ func awsRestjson1_serializeDocumentStopTimecode(v *types.StopTimecode, value smi return nil } -func awsRestjson1_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -9722,9 +9482,9 @@ func awsRestjson1_serializeDocumentTimecodeConfig(v *types.TimecodeConfig, value ok.String(string(v.Source)) } - if v.SyncThreshold != nil { + if v.SyncThreshold != 0 { ok := object.Key("syncThreshold") - ok.Integer(*v.SyncThreshold) + ok.Integer(v.SyncThreshold) } return nil @@ -9770,9 +9530,9 @@ func awsRestjson1_serializeDocumentUdpGroupSettings(v *types.UdpGroupSettings, v ok.String(string(v.TimedMetadataId3Frame)) } - if v.TimedMetadataId3Period != nil { + if v.TimedMetadataId3Period != 0 { ok := object.Key("timedMetadataId3Period") - ok.Integer(*v.TimedMetadataId3Period) + ok.Integer(v.TimedMetadataId3Period) } return nil @@ -9782,9 +9542,9 @@ func awsRestjson1_serializeDocumentUdpOutputSettings(v *types.UdpOutputSettings, object := value.Object() defer object.Close() - if v.BufferMsec != nil { + if v.BufferMsec != 0 { ok := object.Key("bufferMsec") - ok.Integer(*v.BufferMsec) + ok.Integer(v.BufferMsec) } if v.ContainerSettings != nil { @@ -9857,9 +9617,9 @@ func awsRestjson1_serializeDocumentVideoDescription(v *types.VideoDescription, v } } - if v.Height != nil { + if v.Height != 0 { ok := object.Key("height") - ok.Integer(*v.Height) + ok.Integer(v.Height) } if v.Name != nil { @@ -9877,14 +9637,14 @@ func awsRestjson1_serializeDocumentVideoDescription(v *types.VideoDescription, v ok.String(string(v.ScalingBehavior)) } - if v.Sharpness != nil { + if v.Sharpness != 0 { ok := object.Key("sharpness") - ok.Integer(*v.Sharpness) + ok.Integer(v.Sharpness) } - if v.Width != nil { + if v.Width != 0 { ok := object.Key("width") - ok.Integer(*v.Width) + ok.Integer(v.Width) } return nil @@ -9918,9 +9678,9 @@ func awsRestjson1_serializeDocumentVideoSelectorPid(v *types.VideoSelectorPid, v object := value.Object() defer object.Close() - if v.Pid != nil { + if v.Pid != 0 { ok := object.Key("pid") - ok.Integer(*v.Pid) + ok.Integer(v.Pid) } return nil @@ -9930,9 +9690,9 @@ func awsRestjson1_serializeDocumentVideoSelectorProgramId(v *types.VideoSelector object := value.Object() defer object.Close() - if v.ProgramId != nil { + if v.ProgramId != 0 { ok := object.Key("programId") - ok.Integer(*v.ProgramId) + ok.Integer(v.ProgramId) } return nil @@ -9963,9 +9723,9 @@ func awsRestjson1_serializeDocumentWavSettings(v *types.WavSettings, value smith object := value.Object() defer object.Close() - if v.BitDepth != nil { + if v.BitDepth != 0 { ok := object.Key("bitDepth") - ok.Double(*v.BitDepth) + ok.Double(v.BitDepth) } if len(v.CodingMode) > 0 { @@ -9973,9 +9733,9 @@ func awsRestjson1_serializeDocumentWavSettings(v *types.WavSettings, value smith ok.String(string(v.CodingMode)) } - if v.SampleRate != nil { + if v.SampleRate != 0 { ok := object.Key("sampleRate") - ok.Double(*v.SampleRate) + ok.Double(v.SampleRate) } return nil diff --git a/service/medialive/types/errors.go b/service/medialive/types/errors.go index 46372329934..49297b6ef44 100644 --- a/service/medialive/types/errors.go +++ b/service/medialive/types/errors.go @@ -147,7 +147,7 @@ func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smith type UnprocessableEntityException struct { Message *string - ValidationErrors []*ValidationError + ValidationErrors []ValidationError } func (e *UnprocessableEntityException) Error() string { diff --git a/service/medialive/types/types.go b/service/medialive/types/types.go index 6af599fd455..2f49311ece6 100644 --- a/service/medialive/types/types.go +++ b/service/medialive/types/types.go @@ -7,7 +7,7 @@ type AacSettings struct { // Average bitrate in bits/second. Valid values depend on rate control mode and // profile. - Bitrate *float64 + Bitrate float64 // Mono, Stereo, or 5.1 channel layout. Valid values depend on rate control mode // and profile. The adReceiverMix setting receives a stereo description plus @@ -34,7 +34,7 @@ type AacSettings struct { RawFormat AacRawFormat // Sample rate in Hz. Valid values depend on rate control mode and profile. - SampleRate *float64 + SampleRate float64 // Use MPEG-2 AAC audio instead of MPEG-4 AAC audio for raw or MPEG-2 Transport // Stream containers. @@ -48,7 +48,7 @@ type AacSettings struct { type Ac3Settings struct { // Average bitrate in bits/second. Valid bitrates depend on the coding mode. - Bitrate *float64 + Bitrate float64 // Specifies the bitstream mode (bsmod) for the emitted AC-3 stream. See ATSC // A/52-2012 for background on these values. @@ -59,7 +59,7 @@ type Ac3Settings struct { // Sets the dialnorm for the output. If excluded and input audio is Dolby Digital, // dialnorm will be passed through. - Dialnorm *int32 + Dialnorm int32 // If set to filmStandard, adds dynamic range compression signaling to the output // bitstream as defined in the Dolby Digital specification. @@ -83,7 +83,7 @@ type AncillarySourceSettings struct { // format, complete this field. If you plan to choose Embedded as the captions // destination in the output (to pass through all the channels in the ancillary // captions), leave this field blank because MediaLive ignores the field. - SourceAncillaryChannelNumber *int32 + SourceAncillaryChannelNumber int32 } // Archive Container Settings @@ -106,7 +106,7 @@ type ArchiveGroupSettings struct { // Number of seconds to write to archive file before closing and starting a new // one. - RolloverInterval *int32 + RolloverInterval int32 } // Archive Output Settings @@ -141,12 +141,12 @@ type AudioChannelMapping struct { // output channel. // // This member is required. - InputChannelLevels []*InputChannelLevel + InputChannelLevels []InputChannelLevel // The index of the output channel being produced. // // This member is required. - OutputChannel *int32 + OutputChannel int32 } // Audio Codec Settings @@ -256,7 +256,7 @@ type AudioNormalizationSettings struct { // value will be used according to the chosen algorithm. The CALM Act (1770-1) // recommends a target of -24 LKFS. The EBU R-128 specification (1770-2) recommends // a target of -23 LKFS. - TargetLkfs *float64 + TargetLkfs float64 } // Audio Only Hls Settings @@ -295,7 +295,7 @@ type AudioPidSelection struct { // Selects a specific PID from within a source. // // This member is required. - Pid *int32 + Pid int32 } // Audio Selector @@ -330,7 +330,7 @@ type AudioTrack struct { // 1-based integer value that maps to a specific audio track // // This member is required. - Track *int32 + Track int32 } // Audio Track Selection @@ -339,7 +339,7 @@ type AudioTrackSelection struct { // Selects one or more unique audio tracks from within a source. // // This member is required. - Tracks []*AudioTrack + Tracks []AudioTrack } // The settings for Automatic Input Failover. @@ -355,11 +355,11 @@ type AutomaticInputFailoverSettings struct { // of time. Enter a time in milliseconds. This value is particularly important if // the input_preference for the failover pair is set to PRIMARY_INPUT_PREFERRED, // because after this time, MediaLive will switch back to the primary input. - ErrorClearTimeMsec *int32 + ErrorClearTimeMsec int32 // A list of failover conditions. If any of these conditions occur, MediaLive will // perform a failover to the other input. - FailoverConditions []*FailoverCondition + FailoverConditions []FailoverCondition // Input preference when deciding which input to make active when a previously // failed input has recovered. @@ -418,7 +418,7 @@ type BatchScheduleActionCreateRequest struct { // A list of schedule actions to create. // // This member is required. - ScheduleActions []*ScheduleAction + ScheduleActions []ScheduleAction } // List of actions that have been created in the schedule. @@ -427,7 +427,7 @@ type BatchScheduleActionCreateResult struct { // List of actions that have been created in the schedule. // // This member is required. - ScheduleActions []*ScheduleAction + ScheduleActions []ScheduleAction } // A list of schedule actions to delete. @@ -436,7 +436,7 @@ type BatchScheduleActionDeleteRequest struct { // A list of schedule actions to delete. // // This member is required. - ActionNames []*string + ActionNames []string } // List of actions that have been deleted from the schedule. @@ -445,7 +445,7 @@ type BatchScheduleActionDeleteResult struct { // List of actions that have been deleted from the schedule. // // This member is required. - ScheduleActions []*ScheduleAction + ScheduleActions []ScheduleAction } // Details from a successful operation @@ -508,7 +508,7 @@ type BurnInDestinationSettings struct { // Specifies the opacity of the background rectangle. 255 is opaque; 0 is // transparent. Leaving this parameter out is equivalent to setting it to 0 // (transparent). All burn-in and DVB-Sub font settings must match. - BackgroundOpacity *int32 + BackgroundOpacity int32 // External font file used for caption burn-in. File extension must be 'ttf' or // 'tte'. Although the user can select output fonts for many different types of @@ -525,11 +525,11 @@ type BurnInDestinationSettings struct { // Specifies the opacity of the burned-in captions. 255 is opaque; 0 is // transparent. All burn-in and DVB-Sub font settings must match. - FontOpacity *int32 + FontOpacity int32 // Font resolution in DPI (dots per inch); default is 96 dpi. All burn-in and // DVB-Sub font settings must match. - FontResolution *int32 + FontResolution int32 // When set to 'auto' fontSize will scale depending on the size of the output. // Giving a positive integer will specify the exact font size in points. All @@ -546,7 +546,7 @@ type BurnInDestinationSettings struct { // captions that are either 608/embedded or teletext. These source settings are // already pre-defined by the caption stream. All burn-in and DVB-Sub font settings // must match. - OutlineSize *int32 + OutlineSize int32 // Specifies the color of the shadow cast by the captions. All burn-in and DVB-Sub // font settings must match. @@ -555,17 +555,17 @@ type BurnInDestinationSettings struct { // Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving // this parameter out is equivalent to setting it to 0 (transparent). All burn-in // and DVB-Sub font settings must match. - ShadowOpacity *int32 + ShadowOpacity int32 // Specifies the horizontal offset of the shadow relative to the captions in // pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All // burn-in and DVB-Sub font settings must match. - ShadowXOffset *int32 + ShadowXOffset int32 // Specifies the vertical offset of the shadow relative to the captions in pixels. // A value of -2 would result in a shadow offset 2 pixels above the text. All // burn-in and DVB-Sub font settings must match. - ShadowYOffset *int32 + ShadowYOffset int32 // Controls whether a fixed grid size will be used to generate the output subtitles // bitmap. Only applicable for Teletext inputs and DVB-Sub/Burn-in outputs. @@ -576,14 +576,14 @@ type BurnInDestinationSettings struct { // pixels from the left of the output. If no explicit xPosition is provided, the // horizontal caption position will be determined by the alignment parameter. All // burn-in and DVB-Sub font settings must match. - XPosition *int32 + XPosition int32 // Specifies the vertical position of the caption relative to the top of the output // in pixels. A value of 10 would result in the captions starting 10 pixels from // the top of the output. If no explicit yPosition is provided, the caption will be // positioned towards the bottom of the output. All burn-in and DVB-Sub font // settings must match. - YPosition *int32 + YPosition int32 } // Caption Description @@ -664,7 +664,7 @@ type CaptionLanguageMapping struct { // channel mapping must have a unique channel number (maximum of 4) // // This member is required. - CaptionChannel *int32 + CaptionChannel int32 // Three character ISO 639-2 language code (see // http://www.loc.gov/standards/iso639-2) @@ -745,10 +745,10 @@ type Channel struct { // A list of destinations of the channel. For UDP outputs, there is one destination // per output. For other types (HLS, for example), there is one destination per // packager. - Destinations []*OutputDestination + Destinations []OutputDestination // The endpoints where outgoing connections initiate from - EgressEndpoints []*ChannelEgressEndpoint + EgressEndpoints []ChannelEgressEndpoint // Encoder Settings EncoderSettings *EncoderSettings @@ -757,7 +757,7 @@ type Channel struct { Id *string // List of input attachments for channel. - InputAttachments []*InputAttachment + InputAttachments []InputAttachment // Specification of network and file inputs for this channel InputSpecification *InputSpecification @@ -769,10 +769,10 @@ type Channel struct { Name *string // Runtime details for the pipelines of a running channel. - PipelineDetails []*PipelineDetail + PipelineDetails []PipelineDetail // The number of currently healthy pipelines. - PipelinesRunningCount *int32 + PipelinesRunningCount int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string @@ -781,7 +781,7 @@ type Channel struct { State ChannelState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string } // Placeholder documentation for ChannelEgressEndpoint @@ -807,16 +807,16 @@ type ChannelSummary struct { // A list of destinations of the channel. For UDP outputs, there is one destination // per output. For other types (HLS, for example), there is one destination per // packager. - Destinations []*OutputDestination + Destinations []OutputDestination // The endpoints where outgoing connections initiate from - EgressEndpoints []*ChannelEgressEndpoint + EgressEndpoints []ChannelEgressEndpoint // The unique id of the channel. Id *string // List of input attachments for channel. - InputAttachments []*InputAttachment + InputAttachments []InputAttachment // Specification of network and file inputs for this channel InputSpecification *InputSpecification @@ -828,7 +828,7 @@ type ChannelSummary struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount *int32 + PipelinesRunningCount int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string @@ -837,7 +837,7 @@ type ChannelSummary struct { State ChannelState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string } // Passthrough applies no color space conversion to the output @@ -850,7 +850,7 @@ type DvbNitSettings struct { // The numeric value placed in the Network Information Table (NIT). // // This member is required. - NetworkId *int32 + NetworkId int32 // The network name text placed in the networkNameDescriptor inside the Network // Information Table. Maximum length is 256 characters. @@ -860,7 +860,7 @@ type DvbNitSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. - RepInterval *int32 + RepInterval int32 } // DVB Service Description Table (SDT) @@ -877,7 +877,7 @@ type DvbSdtSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. - RepInterval *int32 + RepInterval int32 // The service name placed in the serviceDescriptor in the Service Description // Table. Maximum length is 256 characters. @@ -909,7 +909,7 @@ type DvbSubDestinationSettings struct { // Specifies the opacity of the background rectangle. 255 is opaque; 0 is // transparent. Leaving this parameter blank is equivalent to setting it to 0 // (transparent). All burn-in and DVB-Sub font settings must match. - BackgroundOpacity *int32 + BackgroundOpacity int32 // External font file used for caption burn-in. File extension must be 'ttf' or // 'tte'. Although the user can select output fonts for many different types of @@ -926,11 +926,11 @@ type DvbSubDestinationSettings struct { // Specifies the opacity of the burned-in captions. 255 is opaque; 0 is // transparent. All burn-in and DVB-Sub font settings must match. - FontOpacity *int32 + FontOpacity int32 // Font resolution in DPI (dots per inch); default is 96 dpi. All burn-in and // DVB-Sub font settings must match. - FontResolution *int32 + FontResolution int32 // When set to auto fontSize will scale depending on the size of the output. Giving // a positive integer will specify the exact font size in points. All burn-in and @@ -947,7 +947,7 @@ type DvbSubDestinationSettings struct { // captions that are either 608/embedded or teletext. These source settings are // already pre-defined by the caption stream. All burn-in and DVB-Sub font settings // must match. - OutlineSize *int32 + OutlineSize int32 // Specifies the color of the shadow cast by the captions. All burn-in and DVB-Sub // font settings must match. @@ -956,17 +956,17 @@ type DvbSubDestinationSettings struct { // Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving // this parameter blank is equivalent to setting it to 0 (transparent). All burn-in // and DVB-Sub font settings must match. - ShadowOpacity *int32 + ShadowOpacity int32 // Specifies the horizontal offset of the shadow relative to the captions in // pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All // burn-in and DVB-Sub font settings must match. - ShadowXOffset *int32 + ShadowXOffset int32 // Specifies the vertical offset of the shadow relative to the captions in pixels. // A value of -2 would result in a shadow offset 2 pixels above the text. All // burn-in and DVB-Sub font settings must match. - ShadowYOffset *int32 + ShadowYOffset int32 // Controls whether a fixed grid size will be used to generate the output subtitles // bitmap. Only applicable for Teletext inputs and DVB-Sub/Burn-in outputs. @@ -979,7 +979,7 @@ type DvbSubDestinationSettings struct { // option is not valid for source captions that are STL, 608/embedded or teletext. // These source settings are already pre-defined by the caption stream. All burn-in // and DVB-Sub font settings must match. - XPosition *int32 + XPosition int32 // Specifies the vertical position of the caption relative to the top of the output // in pixels. A value of 10 would result in the captions starting 10 pixels from @@ -988,7 +988,7 @@ type DvbSubDestinationSettings struct { // captions that are STL, 608/embedded or teletext. These source settings are // already pre-defined by the caption stream. All burn-in and DVB-Sub font settings // must match. - YPosition *int32 + YPosition int32 } // Dvb Sub Source Settings @@ -997,7 +997,7 @@ type DvbSubSourceSettings struct { // When using DVB-Sub with Burn-In or SMPTE-TT, use this PID for the source // content. Unused for DVB-Sub passthrough. All DVB-Sub content is passed through, // regardless of selectors. - Pid *int32 + Pid int32 } // DVB Time and Date Table (SDT) @@ -1005,7 +1005,7 @@ type DvbTdtSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. - RepInterval *int32 + RepInterval int32 } // Eac3 Settings @@ -1016,7 +1016,7 @@ type Eac3Settings struct { AttenuationControl Eac3AttenuationControl // Average bitrate in bits/second. Valid bitrates depend on the coding mode. - Bitrate *float64 + Bitrate float64 // Specifies the bitstream mode (bsmod) for the emitted E-AC-3 stream. See ATSC // A/52-2012 (Annex E) for background on these values. @@ -1030,7 +1030,7 @@ type Eac3Settings struct { // Sets the dialnorm for the output. If blank and input audio is Dolby Digital // Plus, dialnorm will be passed through. - Dialnorm *int32 + Dialnorm int32 // Sets the Dolby dynamic range compression profile. DrcLine Eac3DrcLine @@ -1047,16 +1047,16 @@ type Eac3Settings struct { LfeFilter Eac3LfeFilter // Left only/Right only center mix level. Only used for 3/2 coding mode. - LoRoCenterMixLevel *float64 + LoRoCenterMixLevel float64 // Left only/Right only surround mix level. Only used for 3/2 coding mode. - LoRoSurroundMixLevel *float64 + LoRoSurroundMixLevel float64 // Left total/Right total center mix level. Only used for 3/2 coding mode. - LtRtCenterMixLevel *float64 + LtRtCenterMixLevel float64 // Left total/Right total surround mix level. Only used for 3/2 coding mode. - LtRtSurroundMixLevel *float64 + LtRtSurroundMixLevel float64 // When set to followInput, encoder metadata will be sourced from the DD, DD+, or // DolbyE decoder that supplied this audio data. If audio was not supplied from one @@ -1150,10 +1150,10 @@ type EmbeddedSourceSettings struct { // Specifies the 608/708 channel number within the video track from which to // extract captions. Unused for passthrough. - Source608ChannelNumber *int32 + Source608ChannelNumber int32 // This field is unused and deprecated. - Source608TrackNumber *int32 + Source608TrackNumber int32 } // Encoder Settings @@ -1162,12 +1162,12 @@ type EncoderSettings struct { // Placeholder documentation for __listOfAudioDescription // // This member is required. - AudioDescriptions []*AudioDescription + AudioDescriptions []AudioDescription // Placeholder documentation for __listOfOutputGroup // // This member is required. - OutputGroups []*OutputGroup + OutputGroups []OutputGroup // Contains settings used to acquire and adjust timecode information from inputs. // @@ -1177,7 +1177,7 @@ type EncoderSettings struct { // Placeholder documentation for __listOfVideoDescription // // This member is required. - VideoDescriptions []*VideoDescription + VideoDescriptions []VideoDescription // Settings for ad avail blanking. AvailBlanking *AvailBlanking @@ -1189,7 +1189,7 @@ type EncoderSettings struct { BlackoutSlate *BlackoutSlate // Settings for caption decriptions - CaptionDescriptions []*CaptionDescription + CaptionDescriptions []CaptionDescription // Feature Activations FeatureActivations *FeatureActivations @@ -1233,7 +1233,7 @@ type FecOutputSettings struct { // Parameter D from SMPTE 2022-1. The height of the FEC protection matrix. The // number of transport stream packets per column error correction packet. Must be // between 4 and 20, inclusive. - ColumnDepth *int32 + ColumnDepth int32 // Enables column only or column and row based FEC IncludeFec FecOutputIncludeFec @@ -1244,7 +1244,7 @@ type FecOutputSettings struct { // stream packets per row error correction packet, and the value must be between 4 // and 20, inclusive, if includeFec is columnAndRow. If includeFec is column, this // value must be 1 to 20, inclusive. - RowLength *int32 + RowLength int32 } // Start time for the action. @@ -1323,7 +1323,7 @@ type FrameCaptureSettings struct { // captureIntervalUnits. // // This member is required. - CaptureInterval *int32 + CaptureInterval int32 // Unit for the frame capture interval. CaptureIntervalUnits FrameCaptureIntervalUnit @@ -1333,7 +1333,7 @@ type FrameCaptureSettings struct { type GlobalConfiguration struct { // Value to set the initial audio gain for the Live Event. - InitialAudioGain *int32 + InitialAudioGain int32 // Indicates the action to take when the current input completes (e.g. // end-of-file). When switchAndLoopInputs is configured the encoder will restart at @@ -1400,13 +1400,13 @@ type H264Settings struct { // Average bitrate in bits/second. Required when the rate control mode is VBR or // CBR. Not used for QVBR. In an MS Smooth output group, each output must have a // unique value when its bitrate is rounded down to the nearest multiple of 1000. - Bitrate *int32 + Bitrate int32 // Percentage of the buffer that should initially be filled (HRD buffer model). - BufFillPct *int32 + BufFillPct int32 // Size of buffer (HRD buffer model) in bits. - BufSize *int32 + BufSize int32 // Includes colorspace metadata in the output. ColorMetadata H264ColorMetadata @@ -1445,10 +1445,10 @@ type H264Settings struct { FramerateControl H264FramerateControl // Framerate denominator. - FramerateDenominator *int32 + FramerateDenominator int32 // Framerate numerator - framerate is a fraction, e.g. 24000 / 1001 = 23.976 fps. - FramerateNumerator *int32 + FramerateNumerator int32 // Documentation update needed GopBReference H264GopBReference @@ -1456,16 +1456,16 @@ type H264Settings struct { // Frequency of closed GOPs. In streaming applications, it is recommended that this // be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly // as possible. Setting this value to 0 will break output segmenting. - GopClosedCadence *int32 + GopClosedCadence int32 // Number of B-frames between reference frames. - GopNumBFrames *int32 + GopNumBFrames int32 // GOP size (keyframe interval) in units of either frames or seconds per // gopSizeUnits. If gopSizeUnits is frames, gopSize must be an integer and must be // greater than or equal to 1. If gopSizeUnits is seconds, gopSize must be greater // than 0, but need not be an integer. - GopSize *float64 + GopSize float64 // Indicates if the gopSize is specified in frames or seconds. If seconds the // system will convert the gopSize into a frame count at run time. @@ -1480,7 +1480,7 @@ type H264Settings struct { // For QVBR: See the tooltip for Quality level For VBR: Set the maximum bitrate in // order to accommodate expected spikes in the complexity of the video. - MaxBitrate *int32 + MaxBitrate int32 // Only meaningful if sceneChangeDetect is set to enabled. Defaults to 5 if // multiplex rate control is used. Enforces separation between repeated (cadence) @@ -1489,11 +1489,11 @@ type H264Settings struct { // and/or stretched to the scene change I-frame. GOP stretch requires enabling // lookahead as well as setting I-interval. The normal cadence resumes for the next // GOP. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1 - MinIInterval *int32 + MinIInterval int32 // Number of reference frames to use. The encoder may use more than requested if // using B-frames and/or interlaced encoding. - NumRefFrames *int32 + NumRefFrames int32 // This field indicates how the output pixel aspect ratio is specified. If // "specified" is selected then the output video pixel aspect ratio is determined @@ -1503,10 +1503,10 @@ type H264Settings struct { ParControl H264ParControl // Pixel Aspect Ratio denominator. - ParDenominator *int32 + ParDenominator int32 // Pixel Aspect Ratio numerator. - ParNumerator *int32 + ParNumerator int32 // H.264 Profile. Profile H264Profile @@ -1535,7 +1535,7 @@ type H264Settings struct { // // * Smartphone: Quality level: 6. Max // bitrate: 1M to 1.5M - QvbrQualityLevel *int32 + QvbrQualityLevel int32 // Rate control mode. QVBR: Quality will match the specified quality level except // when it is constrained by the maximum bitrate. Recommended if you or your @@ -1565,11 +1565,11 @@ type H264Settings struct { // number of macroblock rows for interlaced pictures. This field is optional; when // no value is specified the encoder will choose the number of slices based on // encode resolution. - Slices *int32 + Slices int32 // Softness. Selects quantizer matrix, larger values reduce high-frequency content // in the encoded image. - Softness *int32 + Softness int32 // If set to enabled, adjust quantization within each frame based on spatial // variation of content complexity. @@ -1625,12 +1625,12 @@ type H265Settings struct { // Framerate denominator. // // This member is required. - FramerateDenominator *int32 + FramerateDenominator int32 // Framerate numerator - framerate is a fraction, e.g. 24000 / 1001 = 23.976 fps. // // This member is required. - FramerateNumerator *int32 + FramerateNumerator int32 // Adaptive quantization. Allows intra-frame quantizers to vary to improve visual // quality. @@ -1649,10 +1649,10 @@ type H265Settings struct { // Average bitrate in bits/second. Required when the rate control mode is VBR or // CBR. Not used for QVBR. In an MS Smooth output group, each output must have a // unique value when its bitrate is rounded down to the nearest multiple of 1000. - Bitrate *int32 + Bitrate int32 // Size of buffer (HRD buffer model) in bits. - BufSize *int32 + BufSize int32 // Includes colorspace metadata in the output. ColorMetadata H265ColorMetadata @@ -1674,13 +1674,13 @@ type H265Settings struct { // Frequency of closed GOPs. In streaming applications, it is recommended that this // be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly // as possible. Setting this value to 0 will break output segmenting. - GopClosedCadence *int32 + GopClosedCadence int32 // GOP size (keyframe interval) in units of either frames or seconds per // gopSizeUnits. If gopSizeUnits is frames, gopSize must be an integer and must be // greater than or equal to 1. If gopSizeUnits is seconds, gopSize must be greater // than 0, but need not be an integer. - GopSize *float64 + GopSize float64 // Indicates if the gopSize is specified in frames or seconds. If seconds the // system will convert the gopSize into a frame count at run time. @@ -1694,7 +1694,7 @@ type H265Settings struct { LookAheadRateControl H265LookAheadRateControl // For QVBR: See the tooltip for Quality level - MaxBitrate *int32 + MaxBitrate int32 // Only meaningful if sceneChangeDetect is set to enabled. Defaults to 5 if // multiplex rate control is used. Enforces separation between repeated (cadence) @@ -1703,13 +1703,13 @@ type H265Settings struct { // and/or stretched to the scene change I-frame. GOP stretch requires enabling // lookahead as well as setting I-interval. The normal cadence resumes for the next // GOP. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1 - MinIInterval *int32 + MinIInterval int32 // Pixel Aspect Ratio denominator. - ParDenominator *int32 + ParDenominator int32 // Pixel Aspect Ratio numerator. - ParNumerator *int32 + ParNumerator int32 // H.265 Profile. Profile H265Profile @@ -1726,7 +1726,7 @@ type H265Settings struct { // // * Smartphone: Quality level: 6. Max // bitrate: 1M to 1.5M - QvbrQualityLevel *int32 + QvbrQualityLevel int32 // Rate control mode. QVBR: Quality will match the specified quality level except // when it is constrained by the maximum bitrate. Recommended if you or your @@ -1749,7 +1749,7 @@ type H265Settings struct { // number of macroblock rows for interlaced pictures. This field is optional; when // no value is specified the encoder will choose the number of slices based on // encode resolution. - Slices *int32 + Slices int32 // H.265 Tier. Tier H265Tier @@ -1769,12 +1769,12 @@ type Hdr10Settings struct { // Maximum Content Light Level An integer metadata value defining the maximum light // level, in nits, of any single pixel within an encoded HDR video stream or file. - MaxCll *int32 + MaxCll int32 // Maximum Frame Average Light Level An integer metadata value defining the maximum // average light level, in nits, for any single frame within an encoded HDR video // stream or file. - MaxFall *int32 + MaxFall int32 } // Hls Akamai Settings @@ -1782,10 +1782,10 @@ type HlsAkamaiSettings struct { // Number of seconds to wait before retrying connection to the CDN if the // connection is lost. - ConnectionRetryInterval *int32 + ConnectionRetryInterval int32 // Size in seconds of file cache for streaming outputs. - FilecacheDuration *int32 + FilecacheDuration int32 // Specify whether or not to use chunked transfer encoding to Akamai. User should // contact Akamai to enable this feature. @@ -1793,11 +1793,11 @@ type HlsAkamaiSettings struct { // Number of retry attempts that will be made before the Live Event is put into an // error state. - NumRetries *int32 + NumRetries int32 // If a streaming output fails, number of seconds to wait until a restart is // initiated. A value of 0 means never restart. - RestartDelay *int32 + RestartDelay int32 // Salt for authenticated Akamai. Salt *string @@ -1811,18 +1811,18 @@ type HlsBasicPutSettings struct { // Number of seconds to wait before retrying connection to the CDN if the // connection is lost. - ConnectionRetryInterval *int32 + ConnectionRetryInterval int32 // Size in seconds of file cache for streaming outputs. - FilecacheDuration *int32 + FilecacheDuration int32 // Number of retry attempts that will be made before the Live Event is put into an // error state. - NumRetries *int32 + NumRetries int32 // If a streaming output fails, number of seconds to wait until a restart is // initiated. A value of 0 means never restart. - RestartDelay *int32 + RestartDelay int32 } // Hls Cdn Settings @@ -1878,7 +1878,7 @@ type HlsGroupSettings struct { // Mapping of up to 4 caption channels to caption languages. Is only meaningful if // captionLanguageSetting is set to "insert". - CaptionLanguageMappings []*CaptionLanguageMapping + CaptionLanguageMappings []CaptionLanguageMapping // Applies only to 608 Embedded output captions. insert: Include CLOSED-CAPTIONS // lines in the manifest. Specify at least one language in the CC1 Language Code @@ -1946,7 +1946,7 @@ type HlsGroupSettings struct { // the media manifest file. After this maximum, older segments are removed from the // media manifest. This number must be smaller than the number in the Keep Segments // field. - IndexNSegments *int32 + IndexNSegments int32 // Parameter that control output group behavior on input loss. InputLossAction InputLossActionForHlsOut @@ -1970,7 +1970,7 @@ type HlsGroupSettings struct { // player is still reading a media manifest file that lists this segment, but that // segment has been removed from the destination directory (as directed by // indexNSegments). This situation would result in a 404 HTTP error on the player. - KeepSegments *int32 + KeepSegments int32 // The value specifies how the key is represented in the resource identified by the // URI. If parameter is absent, an implicit value of "identity" is used. A reverse @@ -1993,7 +1993,7 @@ type HlsGroupSettings struct { // When set, minimumSegmentLength is enforced by looking ahead and back within the // specified range for a nearby avail and extending the segment size if needed. - MinSegmentLength *int32 + MinSegmentLength int32 // If "vod", all segments are indexed and kept permanently in the destination and // manifest. If "live", only the number segments specified in keepSegments and @@ -2016,7 +2016,7 @@ type HlsGroupSettings struct { ProgramDateTime HlsProgramDateTime // Period of insertion of EXT-X-PROGRAM-DATE-TIME entry, in seconds. - ProgramDateTimePeriod *int32 + ProgramDateTimePeriod int32 // ENABLED: The master manifest (.m3u8 file) for each pipeline includes information // about both pipelines: first its own media files, then the media files of the @@ -2034,7 +2034,7 @@ type HlsGroupSettings struct { // Length of MPEG-2 Transport Stream segments to create (in seconds). Note that // segments will end on the next keyframe after this number of seconds, so actual // segment length may be longer. - SegmentLength *int32 + SegmentLength int32 // useInputSegmentation has been deprecated. The configured segment size is always // used. @@ -2043,7 +2043,7 @@ type HlsGroupSettings struct { // Number of segments to write to a subdirectory before starting a new one. // directoryStructure must be subdirectoryPerStream for this setting to have an // effect. - SegmentsPerSubdirectory *int32 + SegmentsPerSubdirectory int32 // Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of // variant manifest. @@ -2053,10 +2053,10 @@ type HlsGroupSettings struct { TimedMetadataId3Frame HlsTimedMetadataId3Frame // Timed Metadata interval in seconds. - TimedMetadataId3Period *int32 + TimedMetadataId3Period int32 // Provides an extra millisecond delta offset to fine tune the timestamps. - TimestampDeltaMilliseconds *int32 + TimestampDeltaMilliseconds int32 // SEGMENTED_FILES: Emit the program as segments - multiple .ts media files. // SINGLE_FILE: Applies only if Mode field is VOD. Emit the program as a single .ts @@ -2085,20 +2085,20 @@ type HlsInputSettings struct { // this value will be chosen, otherwise the highest bandwidth stream in the m3u8 // will be chosen. The bitrate is specified in bits per second, as in an HLS // manifest. - Bandwidth *int32 + Bandwidth int32 // When specified, reading of the HLS input will begin this many buffer segments // from the end (most recently written segment). When not specified, the HLS input // will begin with the first segment specified in the m3u8. - BufferSegments *int32 + BufferSegments int32 // The number of consecutive times that attempts to read a manifest or segment must // fail before the input is considered unavailable. - Retries *int32 + Retries int32 // The number of seconds between retries when an attempt to read a manifest or // segment fails. - RetryInterval *int32 + RetryInterval int32 } // Hls Media Store Settings @@ -2106,10 +2106,10 @@ type HlsMediaStoreSettings struct { // Number of seconds to wait before retrying connection to the CDN if the // connection is lost. - ConnectionRetryInterval *int32 + ConnectionRetryInterval int32 // Size in seconds of file cache for streaming outputs. - FilecacheDuration *int32 + FilecacheDuration int32 // When set to temporal, output files are stored in non-persistent memory for // faster reading and writing. @@ -2117,11 +2117,11 @@ type HlsMediaStoreSettings struct { // Number of retry attempts that will be made before the Live Event is put into an // error state. - NumRetries *int32 + NumRetries int32 // If a streaming output fails, number of seconds to wait until a restart is // initiated. A value of 0 means never restart. - RestartDelay *int32 + RestartDelay int32 } // Hls Output Settings @@ -2173,21 +2173,21 @@ type HlsWebdavSettings struct { // Number of seconds to wait before retrying connection to the CDN if the // connection is lost. - ConnectionRetryInterval *int32 + ConnectionRetryInterval int32 // Size in seconds of file cache for streaming outputs. - FilecacheDuration *int32 + FilecacheDuration int32 // Specify whether or not to use chunked transfer encoding to WebDAV. HttpTransferMode HlsWebdavHttpTransferMode // Number of retry attempts that will be made before the Live Event is put into an // error state. - NumRetries *int32 + NumRetries int32 // If a streaming output fails, number of seconds to wait until a restart is // initiated. A value of 0 means never restart. - RestartDelay *int32 + RestartDelay int32 } // Settings to configure an action so that it occurs as soon as possible. @@ -2202,10 +2202,10 @@ type Input struct { // A list of channel IDs that that input is attached to (currently an input can // only be attached to one channel). - AttachedChannels []*string + AttachedChannels []string // A list of the destinations of the input (PUSH-type). - Destinations []*InputDestination + Destinations []InputDestination // The generated ID of the input (unique for user account, immutable). Id *string @@ -2220,7 +2220,7 @@ type Input struct { InputClass InputClass // Settings for the input devices. - InputDevices []*InputDeviceSettings + InputDevices []InputDeviceSettings // Certain pull input sources can be dynamic, meaning that they can have their // URL's dynamically changes during input switch actions. Presently, this @@ -2228,7 +2228,7 @@ type Input struct { InputSourceType InputSourceType // A list of MediaConnect Flows for this input. - MediaConnectFlows []*MediaConnectFlow + MediaConnectFlows []MediaConnectFlow // The user-assigned name (This is a mutable value). Name *string @@ -2238,16 +2238,16 @@ type Input struct { RoleArn *string // A list of IDs for all the Input Security Groups attached to the input. - SecurityGroups []*string + SecurityGroups []string // A list of the sources of the input (PULL-type). - Sources []*InputSource + Sources []InputSource // Placeholder documentation for InputState State InputState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // Placeholder documentation for InputType Type InputType @@ -2278,12 +2278,12 @@ type InputChannelLevel struct { // -60 (mute) and 6 dB. // // This member is required. - Gain *int32 + Gain int32 // The index of the input channel used as a source. // // This member is required. - InputChannel *int32 + InputChannel int32 } // Settings to let you create a clip of the file input, in order to set up the @@ -2347,7 +2347,7 @@ type InputDeviceConfigurableSettings struct { // The maximum bitrate in bits per second. Set a value here to throttle the bitrate // of the source video. - MaxBitrate *int32 + MaxBitrate int32 } // Settings that describe the active source from the input device, and the video @@ -2366,27 +2366,27 @@ type InputDeviceHdSettings struct { DeviceState InputDeviceState // The frame rate of the video source. - Framerate *float64 + Framerate float64 // The height of the video source, in pixels. - Height *int32 + Height int32 // The current maximum bitrate for ingesting this source, in bits per second. You // can specify this maximum. - MaxBitrate *int32 + MaxBitrate int32 // The scan type of the video source. ScanType InputDeviceScanType // The width of the video source, in pixels. - Width *int32 + Width int32 } // The network settings for the input device. type InputDeviceNetworkSettings struct { // The DNS addresses of the input device. - DnsAddresses []*string + DnsAddresses []string // The network gateway IP address. Gateway *string @@ -2475,7 +2475,7 @@ type InputLocation struct { type InputLossBehavior struct { // Documentation update needed - BlackFrameMsec *int32 + BlackFrameMsec int32 // When input loss image type is "color" this field specifies the color to use. // Value: 6 hex characters representing the values of RGB. @@ -2490,7 +2490,7 @@ type InputLossBehavior struct { InputLossImageType InputLossImageType // Documentation update needed - RepeatFrameMsec *int32 + RepeatFrameMsec int32 } // MediaLive will perform a failover if content is not detected in this input for @@ -2499,7 +2499,7 @@ type InputLossFailoverSettings struct { // The amount of time (in milliseconds) that no input is detected. After that time, // an input failover will occur. - InputLossThresholdMsec *int32 + InputLossThresholdMsec int32 } // Action to prepare an input for a future immediate input switch. @@ -2518,7 +2518,7 @@ type InputPrepareScheduleActionSettings struct { // instance of the input. Each time you use the same dynamic input in an input // switch action, you can provide a different value, in order to connect the input // to a different content source. - UrlPath []*string + UrlPath []string } // An Input Security Group @@ -2531,16 +2531,16 @@ type InputSecurityGroup struct { Id *string // The list of inputs currently using this Input Security Group. - Inputs []*string + Inputs []string // The current state of the Input Security Group. State InputSecurityGroupState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string // Whitelist rules and their sync status - WhitelistRules []*InputWhitelistRule + WhitelistRules []InputWhitelistRule } // Live Event input parameters. There can be multiple inputs in a single Live @@ -2549,10 +2549,10 @@ type InputSettings struct { // Used to select the audio stream to decode for inputs that have multiple // available. - AudioSelectors []*AudioSelector + AudioSelectors []AudioSelector // Used to select the caption input to use for inputs that have multiple available. - CaptionSelectors []*CaptionSelector + CaptionSelectors []CaptionSelector // Enable or disable the deblock filter when filtering. DeblockFilter InputDeblockFilter @@ -2561,7 +2561,7 @@ type InputSettings struct { DenoiseFilter InputDenoiseFilter // Adjusts the magnitude of filtering from 1 (minimal) to 5 (strongest). - FilterStrength *int32 + FilterStrength int32 // Turns on the filter for this input. MPEG-2 inputs have the deblocking filter // enabled by default. @@ -2655,7 +2655,7 @@ type InputSwitchScheduleActionSettings struct { // instance of the input. Each time you use the same dynamic input in an input // switch action, you can provide a different value, in order to connect the input // to a different content source. - UrlPath []*string + UrlPath []string } // Settings for a private VPC Input. When this property is specified, the input @@ -2668,12 +2668,12 @@ type InputVpcRequest struct { // unique availability zones (AZ). // // This member is required. - SubnetIds []*string + SubnetIds []string // A list of up to 5 EC2 VPC security group IDs to attach to the Input VPC network // interfaces. Requires subnetIds. If none are specified then the VPC default // security group will be used. - SecurityGroupIds []*string + SecurityGroupIds []string } // Whitelist rule @@ -2726,7 +2726,7 @@ type M2tsSettings struct { AudioBufferModel M2tsAudioBufferModel // The number of audio frames to insert for each PES packet. - AudioFramesPerPes *int32 + AudioFramesPerPes int32 // Packet Identifier (PID) of the elementary audio stream(s) in the transport // stream. Multiple values are accepted, and can be entered in ranges and/or by @@ -2740,7 +2740,7 @@ type M2tsSettings struct { // The output bitrate of the transport stream in bits per second. Setting to 0 lets // the muxer automatically determine the appropriate bitrate. - Bitrate *int32 + Bitrate int32 // Controls the timing accuracy for output network traffic. Leave as MULTIPLEX to // ensure accurate network packet timing. Or set to NONE, which might result in @@ -2792,7 +2792,7 @@ type M2tsSettings struct { // emitted, and the segment is "stretched" to the next marker. The lookahead value // does not add latency to the system. The Live Event must be configured elsewhere // to create sufficient latency to make the lookahead accurate. - EbpLookaheadMs *int32 + EbpLookaheadMs int32 // Controls placement of EBP on Audio PIDs. If set to videoAndAudioPids, EBP // markers will be placed on the video PID and all audio PIDs. If set to videoPid, @@ -2816,7 +2816,7 @@ type M2tsSettings struct { EtvSignalPid *string // The length in seconds of each fragment. Only used with EBP markers. - FragmentTime *float64 + FragmentTime float64 // If set to passthrough, passes any KLV data from the input source to this output. Klv M2tsKlv @@ -2835,11 +2835,11 @@ type M2tsSettings struct { // Value in bits per second of extra null packets to insert into the transport // stream. This can be used if a downstream encryption system requires periodic // null packets. - NullPacketBitrate *float64 + NullPacketBitrate float64 // The number of milliseconds between instances of this table in the output // transport stream. Valid values are 0, 10..1000. - PatInterval *int32 + PatInterval int32 // When set to pcrEveryPesPacket, a Program Clock Reference value is inserted for // every Packetized Elementary Stream (PES) header. This parameter is effective @@ -2848,7 +2848,7 @@ type M2tsSettings struct { // Maximum time in milliseconds between Program Clock Reference (PCRs) inserted // into the transport stream. - PcrPeriod *int32 + PcrPeriod int32 // Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport // stream. When no value is given, the encoder will assign the same value as the @@ -2858,7 +2858,7 @@ type M2tsSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. Valid values are 0, 10..1000. - PmtInterval *int32 + PmtInterval int32 // Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream. // Can be entered as a decimal or hexadecimal value. Valid values are 32 (or @@ -2866,7 +2866,7 @@ type M2tsSettings struct { PmtPid *string // The value of the program number field in the Program Map Table. - ProgramNum *int32 + ProgramNum int32 // When vbr, does not insert null packets into transport stream to fill specified // bitrate. The bitrate setting acts as the maximum bitrate when vbr is set. @@ -2909,7 +2909,7 @@ type M2tsSettings struct { SegmentationStyle M2tsSegmentationStyle // The length in seconds of each segment. Required unless markers is set to none. - SegmentationTime *float64 + SegmentationTime float64 // When set to passthrough, timed metadata will be passed through from input to // output. @@ -2921,7 +2921,7 @@ type M2tsSettings struct { TimedMetadataPid *string // The value of the transport stream ID field in the Program Map Table. - TransportStreamId *int32 + TransportStreamId int32 // Packet Identifier (PID) of the elementary video stream in the transport stream. // Can be entered as a decimal or hexadecimal value. Valid values are 32 (or @@ -2933,7 +2933,7 @@ type M2tsSettings struct { type M3u8Settings struct { // The number of audio frames to insert for each PES packet. - AudioFramesPerPes *int32 + AudioFramesPerPes int32 // Packet Identifier (PID) of the elementary audio stream(s) in the transport // stream. Multiple values are accepted, and can be entered in ranges and/or by @@ -2950,7 +2950,7 @@ type M3u8Settings struct { // The number of milliseconds between instances of this table in the output // transport stream. A value of "0" writes out the PMT once per segment file. - PatInterval *int32 + PatInterval int32 // When set to pcrEveryPesPacket, a Program Clock Reference value is inserted for // every Packetized Elementary Stream (PES) header. This parameter is effective @@ -2959,7 +2959,7 @@ type M3u8Settings struct { // Maximum time in milliseconds between Program Clock References (PCRs) inserted // into the transport stream. - PcrPeriod *int32 + PcrPeriod int32 // Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport // stream. When no value is given, the encoder will assign the same value as the @@ -2968,14 +2968,14 @@ type M3u8Settings struct { // The number of milliseconds between instances of this table in the output // transport stream. A value of "0" writes out the PMT once per segment file. - PmtInterval *int32 + PmtInterval int32 // Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream. // Can be entered as a decimal or hexadecimal value. PmtPid *string // The value of the program number field in the Program Map Table. - ProgramNum *int32 + ProgramNum int32 // If set to passthrough, passes any SCTE-35 signals from the input source to this // output. @@ -2994,7 +2994,7 @@ type M3u8Settings struct { TimedMetadataPid *string // The value of the transport stream ID field in the Program Map Table. - TransportStreamId *int32 + TransportStreamId int32 // Packet Identifier (PID) of the elementary video stream in the transport stream. // Can be entered as a decimal or hexadecimal value. @@ -3043,14 +3043,14 @@ type MediaPackageOutputSettings struct { type Mp2Settings struct { // Average bitrate in bits/second. - Bitrate *float64 + Bitrate float64 // The MPEG2 Audio coding mode. Valid values are codingMode10 (for mono) or // codingMode20 (for stereo). CodingMode Mp2CodingMode // Sample rate in Hz. - SampleRate *float64 + SampleRate float64 } // Mpeg2 Filter Settings @@ -3068,13 +3068,13 @@ type Mpeg2Settings struct { // FPS. // // This member is required. - FramerateDenominator *int32 + FramerateDenominator int32 // The framerate numerator. For example, 24000. The framerate is the numerator // divided by the denominator. For example, 24000 / 1001 = 23.976 FPS. // // This member is required. - FramerateNumerator *int32 + FramerateNumerator int32 // Choose Off to disable adaptive quantization. Or choose another value to enable // the quantizer and set its strength. The strengths are: Auto, Off, Low, Medium, @@ -3121,18 +3121,18 @@ type Mpeg2Settings struct { FixedAfd FixedAfd // MPEG2: default is open GOP. - GopClosedCadence *int32 + GopClosedCadence int32 // Relates to the GOP structure. The number of B-frames between reference frames. // If you do not know what a B-frame is, use the default. - GopNumBFrames *int32 + GopNumBFrames int32 // Relates to the GOP structure. The GOP size (keyframe interval) in the units // specified in gopSizeUnits. If you do not know what GOP is, use the default. If // gopSizeUnits is frames, then the gopSize must be an integer and must be greater // than or equal to 1. If gopSizeUnits is seconds, the gopSize must be greater than // 0, but does not need to be an integer. - GopSize *float64 + GopSize float64 // Relates to the GOP structure. Specifies whether the gopSize is specified in // frames or seconds. If you do not plan to change the default gopSize, leave the @@ -3183,7 +3183,7 @@ type MsSmoothGroupSettings struct { // Number of seconds to wait before retrying connection to the IIS server if the // connection is lost. Content will be cached during this time and the cache will // be be delivered to the IIS server once the connection is re-established. - ConnectionRetryInterval *int32 + ConnectionRetryInterval int32 // MS Smooth event ID to be sent to the IIS server. Should only be specified if // eventIdMode is set to useConfigured. @@ -3207,28 +3207,28 @@ type MsSmoothGroupSettings struct { EventStopBehavior SmoothGroupEventStopBehavior // Size in seconds of file cache for streaming outputs. - FilecacheDuration *int32 + FilecacheDuration int32 // Length of mp4 fragments to generate (in seconds). Fragment length must be // compatible with GOP size and framerate. - FragmentLength *int32 + FragmentLength int32 // Parameter that control output group behavior on input loss. InputLossAction InputLossActionForMsSmoothOut // Number of retry attempts. - NumRetries *int32 + NumRetries int32 // Number of seconds before initiating a restart due to output failure, due to // exhausting the numRetries on one segment, or exceeding filecacheDuration. - RestartDelay *int32 + RestartDelay int32 // useInputSegmentation has been deprecated. The configured segment size is always // used. SegmentationMode SmoothGroupSegmentationMode // Number of milliseconds to delay the output from the second pipeline. - SendDelayMs *int32 + SendDelayMs int32 // Identifies the type of data to place in the sparse track: // @@ -3281,10 +3281,10 @@ type Multiplex struct { Arn *string // A list of availability zones for the multiplex. - AvailabilityZones []*string + AvailabilityZones []string // A list of the multiplex output destinations. - Destinations []*MultiplexOutputDestination + Destinations []MultiplexOutputDestination // The unique id of the multiplex. Id *string @@ -3296,16 +3296,16 @@ type Multiplex struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount *int32 + PipelinesRunningCount int32 // The number of programs in the multiplex. - ProgramCount *int32 + ProgramCount int32 // The current state of the multiplex. State MultiplexState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string } // Multiplex Group Settings @@ -3351,7 +3351,7 @@ type MultiplexProgram struct { // specified multiplex. Keep in mind that each multiplex pipeline connects to both // pipelines in a given source channel (the channel identified by the program). But // only one of those channel pipelines is ever active at one time. - PipelineDetails []*MultiplexProgramPipelineDetail + PipelineDetails []MultiplexProgramPipelineDetail // The name of the multiplex program. ProgramName *string @@ -3376,43 +3376,43 @@ type MultiplexProgramChannelDestinationSettings struct { type MultiplexProgramPacketIdentifiersMap struct { // Placeholder documentation for __listOf__integer - AudioPids []*int32 + AudioPids []int32 // Placeholder documentation for __listOf__integer - DvbSubPids []*int32 + DvbSubPids []int32 // Placeholder documentation for __integer - DvbTeletextPid *int32 + DvbTeletextPid int32 // Placeholder documentation for __integer - EtvPlatformPid *int32 + EtvPlatformPid int32 // Placeholder documentation for __integer - EtvSignalPid *int32 + EtvSignalPid int32 // Placeholder documentation for __listOf__integer - KlvDataPids []*int32 + KlvDataPids []int32 // Placeholder documentation for __integer - PcrPid *int32 + PcrPid int32 // Placeholder documentation for __integer - PmtPid *int32 + PmtPid int32 // Placeholder documentation for __integer - PrivateMetadataPid *int32 + PrivateMetadataPid int32 // Placeholder documentation for __listOf__integer - Scte27Pids []*int32 + Scte27Pids []int32 // Placeholder documentation for __integer - Scte35Pid *int32 + Scte35Pid int32 // Placeholder documentation for __integer - TimedMetadataPid *int32 + TimedMetadataPid int32 // Placeholder documentation for __integer - VideoPid *int32 + VideoPid int32 } // The current source for one of the pipelines in the multiplex. @@ -3446,7 +3446,7 @@ type MultiplexProgramSettings struct { // Unique program number. // // This member is required. - ProgramNumber *int32 + ProgramNumber int32 // Indicates which pipeline is preferred by the multiplex for program ingest. PreferredChannelPipeline PreferredChannelPipeline @@ -3474,42 +3474,42 @@ type MultiplexSettings struct { // Transport stream bit rate. // // This member is required. - TransportStreamBitrate *int32 + TransportStreamBitrate int32 // Transport stream ID. // // This member is required. - TransportStreamId *int32 + TransportStreamId int32 // Maximum video buffer delay in milliseconds. - MaximumVideoBufferDelayMilliseconds *int32 + MaximumVideoBufferDelayMilliseconds int32 // Transport stream reserved bit rate. - TransportStreamReservedBitrate *int32 + TransportStreamReservedBitrate int32 } // Contains summary configuration for a Multiplex event. type MultiplexSettingsSummary struct { // Transport stream bit rate. - TransportStreamBitrate *int32 + TransportStreamBitrate int32 } // Statmux rate control settings type MultiplexStatmuxVideoSettings struct { // Maximum statmux bitrate. - MaximumBitrate *int32 + MaximumBitrate int32 // Minimum statmux bitrate. - MinimumBitrate *int32 + MinimumBitrate int32 // The purpose of the priority is to use a combination of the\nmultiplex rate // control algorithm and the QVBR capability of the\nencoder to prioritize the // video quality of some channels in a\nmultiplex over others. Channels that have a // higher priority will\nget higher video quality at the expense of the video // quality of\nother channels in the multiplex with lower priority. - Priority *int32 + Priority int32 } // Placeholder documentation for MultiplexSummary @@ -3519,7 +3519,7 @@ type MultiplexSummary struct { Arn *string // A list of availability zones for the multiplex. - AvailabilityZones []*string + AvailabilityZones []string // The unique id of the multiplex. Id *string @@ -3531,16 +3531,16 @@ type MultiplexSummary struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount *int32 + PipelinesRunningCount int32 // The number of programs in the multiplex. - ProgramCount *int32 + ProgramCount int32 // The current state of the multiplex. State MultiplexState // A collection of key-value pairs. - Tags map[string]*string + Tags map[string]string } // The video configuration for each program in a multiplex. @@ -3548,7 +3548,7 @@ type MultiplexVideoSettings struct { // The constant bitrate configuration for the video encode. When this field is // defined, StatmuxSettings must be undefined. - ConstantBitrate *int32 + ConstantBitrate int32 // Statmux rate control settings. When this field is defined, ConstantBitrate must // be undefined. @@ -3591,13 +3591,13 @@ type Offering struct { CurrencyCode *string // Lease duration, e.g. '12' - Duration *int32 + Duration int32 // Units for duration, e.g. 'MONTHS' DurationUnits OfferingDurationUnits // One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - FixedPrice *float64 + FixedPrice float64 // Offering description, e.g. 'HD AVC output at 10-20 Mbps, 30 fps, and standard VQ // in US West (Oregon)' @@ -3616,7 +3616,7 @@ type Offering struct { ResourceSpecification *ReservationResourceSpecification // Recurring usage charge for each reserved resource, e.g. '157.0' - UsagePrice *float64 + UsagePrice float64 } // Output settings. There can be multiple outputs within a group. @@ -3628,10 +3628,10 @@ type Output struct { OutputSettings *OutputSettings // The names of the AudioDescriptions used as audio sources for this output. - AudioDescriptionNames []*string + AudioDescriptionNames []string // The names of the CaptionDescriptions used as caption sources for this output. - CaptionDescriptionNames []*string + CaptionDescriptionNames []string // The name used to identify an output. OutputName *string @@ -3648,14 +3648,14 @@ type OutputDestination struct { // Destination settings for a MediaPackage output; one destination for both // encoders. - MediaPackageSettings []*MediaPackageOutputDestinationSettings + MediaPackageSettings []MediaPackageOutputDestinationSettings // Destination settings for a Multiplex output; one destination for both encoders. MultiplexSettings *MultiplexProgramChannelDestinationSettings // Destination settings for a standard output; one destination for each redundant // encoder. - Settings []*OutputDestinationSettings + Settings []OutputDestinationSettings } // Placeholder documentation for OutputDestinationSettings @@ -3686,7 +3686,7 @@ type OutputGroup struct { // Placeholder documentation for __listOfOutput // // This member is required. - Outputs []*Output + Outputs []Output // Custom output group name optionally defined by the user. Only letters, numbers, // and the underscore character allowed; only 32 characters allowed. @@ -3764,7 +3764,7 @@ type PassThroughSettings struct { type PauseStateScheduleActionSettings struct { // Placeholder documentation for __listOfPipelinePauseStateSettings - Pipelines []*PipelinePauseStateSettings + Pipelines []PipelinePauseStateSettings } // Runtime details of a pipeline when a channel is running. @@ -3809,13 +3809,13 @@ type RemixSettings struct { // Mapping of input channels to output channels, with appropriate gain adjustments. // // This member is required. - ChannelMappings []*AudioChannelMapping + ChannelMappings []AudioChannelMapping // Number of input channels to be used. - ChannelsIn *int32 + ChannelsIn int32 // Number of output channels to be produced. Valid values: 1, 2, 4, 6, 8 - ChannelsOut *int32 + ChannelsOut int32 } // Reserved resources available to use @@ -3826,13 +3826,13 @@ type Reservation struct { Arn *string // Number of reserved resources - Count *int32 + Count int32 // Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' CurrencyCode *string // Lease duration, e.g. '12' - Duration *int32 + Duration int32 // Units for duration, e.g. 'MONTHS' DurationUnits OfferingDurationUnits @@ -3841,7 +3841,7 @@ type Reservation struct { End *string // One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - FixedPrice *float64 + FixedPrice float64 // User specified reservation name Name *string @@ -3873,10 +3873,10 @@ type Reservation struct { State ReservationState // A collection of key-value pairs - Tags map[string]*string + Tags map[string]string // Recurring usage charge for each reserved resource, e.g. '157.0' - UsagePrice *float64 + UsagePrice float64 } // Resource configuration (codec, resolution, bitrate, ...) @@ -3927,7 +3927,7 @@ type RtmpGroupSettings struct { CacheFullBehavior RtmpCacheFullBehavior // Cache length, in seconds, is used to calculate buffer size. - CacheLength *int32 + CacheLength int32 // Controls the types of data that passes to onCaptionInfo outputs. If set to 'all' // then 608 and 708 carried DTVCC data will be passed. If set to @@ -3947,7 +3947,7 @@ type RtmpGroupSettings struct { // If a streaming output fails, number of seconds to wait until a restart is // initiated. A value of 0 means never restart. - RestartDelay *int32 + RestartDelay int32 } // Rtmp Output Settings @@ -3967,10 +3967,10 @@ type RtmpOutputSettings struct { // Number of seconds to wait before retrying a connection to the Flash Media server // if the connection is lost. - ConnectionRetryInterval *int32 + ConnectionRetryInterval int32 // Number of retry attempts. - NumRetries *int32 + NumRetries int32 } // Contains information on a single schedule action. @@ -4058,7 +4058,7 @@ type Scte20SourceSettings struct { // Specifies the 608/708 channel number within the video track from which to // extract captions. Unused for passthrough. - Source608ChannelNumber *int32 + Source608ChannelNumber int32 } // Scte27 Destination Settings @@ -4083,7 +4083,7 @@ type Scte27SourceSettings struct { // * Omit PID and omit Language: Valid // only if source is DVB-Sub that is being passed through; all languages will be // passed through. - Pid *int32 + Pid int32 } // Corresponds to SCTE-35 delivery_not_restricted_flag parameter. To declare @@ -4136,7 +4136,7 @@ type Scte35ReturnToNetworkScheduleActionSettings struct { // The splice_event_id for the SCTE-35 splice_insert, as defined in SCTE-35. // // This member is required. - SpliceEventId *int64 + SpliceEventId int64 } // Corresponds to SCTE-35 segmentation_descriptor. @@ -4150,26 +4150,26 @@ type Scte35SegmentationDescriptor struct { // Corresponds to SCTE-35 segmentation_event_id. // // This member is required. - SegmentationEventId *int64 + SegmentationEventId int64 // Holds the four SCTE-35 delivery restriction parameters. DeliveryRestrictions *Scte35DeliveryRestrictions // Corresponds to SCTE-35 segment_num. A value that is valid for the specified // segmentation_type_id. - SegmentNum *int32 + SegmentNum int32 // Corresponds to SCTE-35 segmentation_duration. Optional. The duration for the // time_signal, in 90 KHz ticks. To convert seconds to ticks, multiple the seconds // by 90,000. Enter time in 90 KHz clock ticks. If you do not enter a duration, the // time_signal will continue until you insert a cancellation message. - SegmentationDuration *int64 + SegmentationDuration int64 // Corresponds to SCTE-35 segmentation_type_id. One of the segmentation_type_id // values listed in the SCTE-35 specification. On the console, enter the ID in // decimal (for example, "52"). In the CLI, API, or an SDK, enter the ID in hex // (for example, "0x34") or decimal (for example, "52"). - SegmentationTypeId *int32 + SegmentationTypeId int32 // Corresponds to SCTE-35 segmentation_upid. Enter a string containing the // hexadecimal representation of the characters that make up the SCTE-35 @@ -4183,19 +4183,19 @@ type Scte35SegmentationDescriptor struct { // "0x0C" hex from the specification is "12" in decimal. In the CLI, API, or an // SDK, enter one of the types listed in the SCTE-35 specification, in either hex // (for example, "0x0C" ) or in decimal (for example, "12"). - SegmentationUpidType *int32 + SegmentationUpidType int32 // Corresponds to SCTE-35 segments_expected. A value that is valid for the // specified segmentation_type_id. - SegmentsExpected *int32 + SegmentsExpected int32 // Corresponds to SCTE-35 sub_segment_num. A value that is valid for the specified // segmentation_type_id. - SubSegmentNum *int32 + SubSegmentNum int32 // Corresponds to SCTE-35 sub_segments_expected. A value that is valid for the // specified segmentation_type_id. - SubSegmentsExpected *int32 + SubSegmentsExpected int32 } // Scte35 Splice Insert @@ -4204,7 +4204,7 @@ type Scte35SpliceInsert struct { // When specified, this offset (in milliseconds) is added to the input Ad Avail PTS // time. This only applies to embedded SCTE 104/35 messages and does not apply to // OOB messages. - AdAvailOffset *int32 + AdAvailOffset int32 // When set to ignore, Segment Descriptors with noRegionalBlackoutFlag set to 0 // will no longer trigger blackouts or Ad Avail slates @@ -4221,7 +4221,7 @@ type Scte35SpliceInsertScheduleActionSettings struct { // The splice_event_id for the SCTE-35 splice_insert, as defined in SCTE-35. // // This member is required. - SpliceEventId *int64 + SpliceEventId int64 // Optional, the duration for the splice_insert, in 90 KHz ticks. To convert // seconds to ticks, multiple the seconds by 90,000. If you enter a duration, there @@ -4229,7 +4229,7 @@ type Scte35SpliceInsertScheduleActionSettings struct { // that time. If you do not enter a duration, the splice_insert will continue // indefinitely and there is an expectation that you will enter a return_to_network // to end the splice_insert at the appropriate time. - Duration *int64 + Duration int64 } // Scte35 Time Signal Apos @@ -4238,7 +4238,7 @@ type Scte35TimeSignalApos struct { // When specified, this offset (in milliseconds) is added to the input Ad Avail PTS // time. This only applies to embedded SCTE 104/35 messages and does not apply to // OOB messages. - AdAvailOffset *int32 + AdAvailOffset int32 // When set to ignore, Segment Descriptors with noRegionalBlackoutFlag set to 0 // will no longer trigger blackouts or Ad Avail slates @@ -4255,7 +4255,7 @@ type Scte35TimeSignalScheduleActionSettings struct { // The list of SCTE-35 descriptors accompanying the SCTE-35 time_signal. // // This member is required. - Scte35Descriptors []*Scte35Descriptor + Scte35Descriptors []Scte35Descriptor } // Smpte Tt Destination Settings @@ -4297,57 +4297,57 @@ type StaticImageActivateScheduleActionSettings struct { // The duration in milliseconds for the image to remain on the video. If omitted or // set to 0 the duration is unlimited and the image will remain until it is // explicitly deactivated. - Duration *int32 + Duration int32 // The time in milliseconds for the image to fade in. The fade-in starts at the // start time of the overlay. Default is 0 (no fade-in). - FadeIn *int32 + FadeIn int32 // Applies only if a duration is specified. The time in milliseconds for the image // to fade out. The fade-out starts when the duration time is hit, so it // effectively extends the duration. Default is 0 (no fade-out). - FadeOut *int32 + FadeOut int32 // The height of the image when inserted into the video, in pixels. The overlay // will be scaled up or down to the specified height. Leave blank to use the native // height of the overlay. - Height *int32 + Height int32 // Placement of the left edge of the overlay relative to the left edge of the video // frame, in pixels. 0 (the default) is the left edge of the frame. If the // placement causes the overlay to extend beyond the right edge of the underlying // video, then the overlay is cropped on the right. - ImageX *int32 + ImageX int32 // Placement of the top edge of the overlay relative to the top edge of the video // frame, in pixels. 0 (the default) is the top edge of the frame. If the placement // causes the overlay to extend beyond the bottom edge of the underlying video, // then the overlay is cropped on the bottom. - ImageY *int32 + ImageY int32 // The number of the layer, 0 to 7. There are 8 layers that can be overlaid on the // video, each layer with a different image. The layers are in Z order, which means // that overlays with higher values of layer are inserted on top of overlays with // lower values of layer. Default is 0. - Layer *int32 + Layer int32 // Opacity of image where 0 is transparent and 100 is fully opaque. Default is 100. - Opacity *int32 + Opacity int32 // The width of the image when inserted into the video, in pixels. The overlay will // be scaled up or down to the specified width. Leave blank to use the native width // of the overlay. - Width *int32 + Width int32 } // Settings for the action to deactivate the image in a specific layer. type StaticImageDeactivateScheduleActionSettings struct { // The time in milliseconds for the image to fade out. Default is 0 (no fade-out). - FadeOut *int32 + FadeOut int32 // The image overlay layer to deactivate, 0 to 7. Default is 0. - Layer *int32 + Layer int32 } // Static Key Settings @@ -4424,7 +4424,7 @@ type TimecodeConfig struct { // timecode. Discrepancies below this threshold are permitted to avoid unnecessary // discontinuities in the output timecode. No timecode sync when this is not // specified. - SyncThreshold *int32 + SyncThreshold int32 } // Details about the input device that is being transferred. @@ -4475,7 +4475,7 @@ type UdpGroupSettings struct { TimedMetadataId3Frame UdpTimedMetadataId3Frame // Timed Metadata interval in seconds. - TimedMetadataId3Period *int32 + TimedMetadataId3Period int32 } // Udp Output Settings @@ -4496,7 +4496,7 @@ type UdpOutputSettings struct { // transcoder but simultaneously assist the transcoder in maintaining a constant, // low-jitter UDP/RTP output while accommodating clock recovery, input switching, // input disruptions, picture reordering, etc. - BufferMsec *int32 + BufferMsec int32 // Settings for enabling and adjusting Forward Error Correction on UDP outputs. FecOutputSettings *FecOutputSettings @@ -4545,7 +4545,7 @@ type VideoDescription struct { // leave this field and width blank in order to use the height and width // (resolution) from the source. Note, however, that leaving blank is not // recommended. For the Frame Capture codec, height and width are required. - Height *int32 + Height int32 // Indicates how MediaLive will respond to the AFD values that might be in the // input video. If you do not know what AFD signaling is, or if your downstream @@ -4567,13 +4567,13 @@ type VideoDescription struct { // Changes the strength of the anti-alias filter used for scaling. 0 is the softest // setting, 100 is the sharpest. A setting of 50 is recommended for most content. - Sharpness *int32 + Sharpness int32 // Output video width, in pixels. Must be an even number. For most codecs, you can // leave this field and height blank in order to use the height and width // (resolution) from the source. Note, however, that leaving blank is not // recommended. For the Frame Capture codec, height and width are required. - Width *int32 + Width int32 } // Specifies a particular video stream within an input source. An input may have @@ -4603,7 +4603,7 @@ type VideoSelector struct { type VideoSelectorPid struct { // Selects a specific PID from within a video source. - Pid *int32 + Pid int32 } // Video Selector Program Id @@ -4612,7 +4612,7 @@ type VideoSelectorProgramId struct { // Selects a specific program from within a multi-program transport stream. If the // program doesn't exist, the first program within the transport stream will be // selected by default. - ProgramId *int32 + ProgramId int32 } // Video Selector Settings @@ -4629,14 +4629,14 @@ type VideoSelectorSettings struct { type WavSettings struct { // Bits per sample. - BitDepth *float64 + BitDepth float64 // The audio coding mode for the WAV audio. The mode determines the number of // channels in the audio. CodingMode WavCodingMode // Sample rate in Hz. - SampleRate *float64 + SampleRate float64 } // Webvtt Destination Settings diff --git a/service/medialive/validators.go b/service/medialive/validators.go index 3754a16b601..e1b3ddbbbcf 100644 --- a/service/medialive/validators.go +++ b/service/medialive/validators.go @@ -1066,13 +1066,13 @@ func addOpUpdateReservationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateReservation{}, middleware.After) } -func validate__listOfAudioChannelMapping(v []*types.AudioChannelMapping) error { +func validate__listOfAudioChannelMapping(v []types.AudioChannelMapping) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfAudioChannelMapping"} for i := range v { - if err := validateAudioChannelMapping(v[i]); err != nil { + if err := validateAudioChannelMapping(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1083,13 +1083,13 @@ func validate__listOfAudioChannelMapping(v []*types.AudioChannelMapping) error { } } -func validate__listOfAudioDescription(v []*types.AudioDescription) error { +func validate__listOfAudioDescription(v []types.AudioDescription) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfAudioDescription"} for i := range v { - if err := validateAudioDescription(v[i]); err != nil { + if err := validateAudioDescription(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1100,13 +1100,13 @@ func validate__listOfAudioDescription(v []*types.AudioDescription) error { } } -func validate__listOfAudioSelector(v []*types.AudioSelector) error { +func validate__listOfAudioSelector(v []types.AudioSelector) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfAudioSelector"} for i := range v { - if err := validateAudioSelector(v[i]); err != nil { + if err := validateAudioSelector(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1117,13 +1117,13 @@ func validate__listOfAudioSelector(v []*types.AudioSelector) error { } } -func validate__listOfAudioTrack(v []*types.AudioTrack) error { +func validate__listOfAudioTrack(v []types.AudioTrack) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfAudioTrack"} for i := range v { - if err := validateAudioTrack(v[i]); err != nil { + if err := validateAudioTrack(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1134,13 +1134,13 @@ func validate__listOfAudioTrack(v []*types.AudioTrack) error { } } -func validate__listOfCaptionDescription(v []*types.CaptionDescription) error { +func validate__listOfCaptionDescription(v []types.CaptionDescription) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfCaptionDescription"} for i := range v { - if err := validateCaptionDescription(v[i]); err != nil { + if err := validateCaptionDescription(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1151,13 +1151,13 @@ func validate__listOfCaptionDescription(v []*types.CaptionDescription) error { } } -func validate__listOfCaptionLanguageMapping(v []*types.CaptionLanguageMapping) error { +func validate__listOfCaptionLanguageMapping(v []types.CaptionLanguageMapping) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfCaptionLanguageMapping"} for i := range v { - if err := validateCaptionLanguageMapping(v[i]); err != nil { + if err := validateCaptionLanguageMapping(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1168,13 +1168,13 @@ func validate__listOfCaptionLanguageMapping(v []*types.CaptionLanguageMapping) e } } -func validate__listOfCaptionSelector(v []*types.CaptionSelector) error { +func validate__listOfCaptionSelector(v []types.CaptionSelector) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfCaptionSelector"} for i := range v { - if err := validateCaptionSelector(v[i]); err != nil { + if err := validateCaptionSelector(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1185,13 +1185,13 @@ func validate__listOfCaptionSelector(v []*types.CaptionSelector) error { } } -func validate__listOfInputAttachment(v []*types.InputAttachment) error { +func validate__listOfInputAttachment(v []types.InputAttachment) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfInputAttachment"} for i := range v { - if err := validateInputAttachment(v[i]); err != nil { + if err := validateInputAttachment(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1202,13 +1202,13 @@ func validate__listOfInputAttachment(v []*types.InputAttachment) error { } } -func validate__listOfInputChannelLevel(v []*types.InputChannelLevel) error { +func validate__listOfInputChannelLevel(v []types.InputChannelLevel) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfInputChannelLevel"} for i := range v { - if err := validateInputChannelLevel(v[i]); err != nil { + if err := validateInputChannelLevel(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1219,13 +1219,13 @@ func validate__listOfInputChannelLevel(v []*types.InputChannelLevel) error { } } -func validate__listOfOutput(v []*types.Output) error { +func validate__listOfOutput(v []types.Output) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfOutput"} for i := range v { - if err := validateOutput(v[i]); err != nil { + if err := validateOutput(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1236,13 +1236,13 @@ func validate__listOfOutput(v []*types.Output) error { } } -func validate__listOfOutputGroup(v []*types.OutputGroup) error { +func validate__listOfOutputGroup(v []types.OutputGroup) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfOutputGroup"} for i := range v { - if err := validateOutputGroup(v[i]); err != nil { + if err := validateOutputGroup(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1253,13 +1253,13 @@ func validate__listOfOutputGroup(v []*types.OutputGroup) error { } } -func validate__listOfPipelinePauseStateSettings(v []*types.PipelinePauseStateSettings) error { +func validate__listOfPipelinePauseStateSettings(v []types.PipelinePauseStateSettings) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfPipelinePauseStateSettings"} for i := range v { - if err := validatePipelinePauseStateSettings(v[i]); err != nil { + if err := validatePipelinePauseStateSettings(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1270,13 +1270,13 @@ func validate__listOfPipelinePauseStateSettings(v []*types.PipelinePauseStateSet } } -func validate__listOfScheduleAction(v []*types.ScheduleAction) error { +func validate__listOfScheduleAction(v []types.ScheduleAction) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfScheduleAction"} for i := range v { - if err := validateScheduleAction(v[i]); err != nil { + if err := validateScheduleAction(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1287,13 +1287,13 @@ func validate__listOfScheduleAction(v []*types.ScheduleAction) error { } } -func validate__listOfScte35Descriptor(v []*types.Scte35Descriptor) error { +func validate__listOfScte35Descriptor(v []types.Scte35Descriptor) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfScte35Descriptor"} for i := range v { - if err := validateScte35Descriptor(v[i]); err != nil { + if err := validateScte35Descriptor(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1304,13 +1304,13 @@ func validate__listOfScte35Descriptor(v []*types.Scte35Descriptor) error { } } -func validate__listOfVideoDescription(v []*types.VideoDescription) error { +func validate__listOfVideoDescription(v []types.VideoDescription) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfVideoDescription"} for i := range v { - if err := validateVideoDescription(v[i]); err != nil { + if err := validateVideoDescription(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1384,9 +1384,6 @@ func validateAudioChannelMapping(v *types.AudioChannelMapping) error { invalidParams.AddNested("InputChannelLevels", err.(smithy.InvalidParamsError)) } } - if v.OutputChannel == nil { - invalidParams.Add(smithy.NewErrParamRequired("OutputChannel")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1454,9 +1451,6 @@ func validateAudioPidSelection(v *types.AudioPidSelection) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "AudioPidSelection"} - if v.Pid == nil { - invalidParams.Add(smithy.NewErrParamRequired("Pid")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1516,9 +1510,6 @@ func validateAudioTrack(v *types.AudioTrack) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "AudioTrack"} - if v.Track == nil { - invalidParams.Add(smithy.NewErrParamRequired("Track")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1700,9 +1691,6 @@ func validateCaptionLanguageMapping(v *types.CaptionLanguageMapping) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CaptionLanguageMapping"} - if v.CaptionChannel == nil { - invalidParams.Add(smithy.NewErrParamRequired("CaptionChannel")) - } if v.LanguageCode == nil { invalidParams.Add(smithy.NewErrParamRequired("LanguageCode")) } @@ -1736,9 +1724,6 @@ func validateDvbNitSettings(v *types.DvbNitSettings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "DvbNitSettings"} - if v.NetworkId == nil { - invalidParams.Add(smithy.NewErrParamRequired("NetworkId")) - } if v.NetworkName == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkName")) } @@ -1879,9 +1864,6 @@ func validateFrameCaptureSettings(v *types.FrameCaptureSettings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "FrameCaptureSettings"} - if v.CaptureInterval == nil { - invalidParams.Add(smithy.NewErrParamRequired("CaptureInterval")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1911,12 +1893,6 @@ func validateH265Settings(v *types.H265Settings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "H265Settings"} - if v.FramerateNumerator == nil { - invalidParams.Add(smithy.NewErrParamRequired("FramerateNumerator")) - } - if v.FramerateDenominator == nil { - invalidParams.Add(smithy.NewErrParamRequired("FramerateDenominator")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2047,12 +2023,6 @@ func validateInputChannelLevel(v *types.InputChannelLevel) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "InputChannelLevel"} - if v.Gain == nil { - invalidParams.Add(smithy.NewErrParamRequired("Gain")) - } - if v.InputChannel == nil { - invalidParams.Add(smithy.NewErrParamRequired("InputChannel")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2235,12 +2205,6 @@ func validateMpeg2Settings(v *types.Mpeg2Settings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "Mpeg2Settings"} - if v.FramerateDenominator == nil { - invalidParams.Add(smithy.NewErrParamRequired("FramerateDenominator")) - } - if v.FramerateNumerator == nil { - invalidParams.Add(smithy.NewErrParamRequired("FramerateNumerator")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2306,9 +2270,6 @@ func validateMultiplexProgramSettings(v *types.MultiplexProgramSettings) error { invalidParams.AddNested("ServiceDescriptor", err.(smithy.InvalidParamsError)) } } - if v.ProgramNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("ProgramNumber")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2321,12 +2282,6 @@ func validateMultiplexSettings(v *types.MultiplexSettings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "MultiplexSettings"} - if v.TransportStreamId == nil { - invalidParams.Add(smithy.NewErrParamRequired("TransportStreamId")) - } - if v.TransportStreamBitrate == nil { - invalidParams.Add(smithy.NewErrParamRequired("TransportStreamBitrate")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2694,9 +2649,6 @@ func validateScte35ReturnToNetworkScheduleActionSettings(v *types.Scte35ReturnTo return nil } invalidParams := smithy.InvalidParamsError{Context: "Scte35ReturnToNetworkScheduleActionSettings"} - if v.SpliceEventId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SpliceEventId")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2717,9 +2669,6 @@ func validateScte35SegmentationDescriptor(v *types.Scte35SegmentationDescriptor) if len(v.SegmentationCancelIndicator) == 0 { invalidParams.Add(smithy.NewErrParamRequired("SegmentationCancelIndicator")) } - if v.SegmentationEventId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SegmentationEventId")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2732,9 +2681,6 @@ func validateScte35SpliceInsertScheduleActionSettings(v *types.Scte35SpliceInser return nil } invalidParams := smithy.InvalidParamsError{Context: "Scte35SpliceInsertScheduleActionSettings"} - if v.SpliceEventId == nil { - invalidParams.Add(smithy.NewErrParamRequired("SpliceEventId")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3413,9 +3359,6 @@ func validateOpPurchaseOfferingInput(v *PurchaseOfferingInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "PurchaseOfferingInput"} - if v.Count == nil { - invalidParams.Add(smithy.NewErrParamRequired("Count")) - } if v.OfferingId == nil { invalidParams.Add(smithy.NewErrParamRequired("OfferingId")) } diff --git a/service/mediapackage/api_op_ConfigureLogs.go b/service/mediapackage/api_op_ConfigureLogs.go index 4d38ef55d42..ea0fa218bf5 100644 --- a/service/mediapackage/api_op_ConfigureLogs.go +++ b/service/mediapackage/api_op_ConfigureLogs.go @@ -63,7 +63,7 @@ type ConfigureLogsOutput struct { IngressAccessLogs *types.IngressAccessLogs // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackage/api_op_CreateChannel.go b/service/mediapackage/api_op_CreateChannel.go index 0ce4bdabc50..9fd4ef3084d 100644 --- a/service/mediapackage/api_op_CreateChannel.go +++ b/service/mediapackage/api_op_CreateChannel.go @@ -40,7 +40,7 @@ type CreateChannelInput struct { Description *string // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string } type CreateChannelOutput struct { @@ -64,7 +64,7 @@ type CreateChannelOutput struct { IngressAccessLogs *types.IngressAccessLogs // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackage/api_op_CreateOriginEndpoint.go b/service/mediapackage/api_op_CreateOriginEndpoint.go index aba00839103..bd39f6425d5 100644 --- a/service/mediapackage/api_op_CreateOriginEndpoint.go +++ b/service/mediapackage/api_op_CreateOriginEndpoint.go @@ -73,18 +73,18 @@ type CreateOriginEndpointInput struct { // Maximum duration (seconds) of content to retain for startover playback. If not // specified, startover playback will be disabled for the OriginEndpoint. - StartoverWindowSeconds *int32 + StartoverWindowSeconds int32 // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Amount of delay (seconds) to enforce on the playback of live content. If not // specified, there will be no time delay in effect for the OriginEndpoint. - TimeDelaySeconds *int32 + TimeDelaySeconds int32 // A list of source IP CIDR blocks that will be allowed to access the // OriginEndpoint. - Whitelist []*string + Whitelist []string } type CreateOriginEndpointOutput struct { @@ -128,21 +128,21 @@ type CreateOriginEndpointOutput struct { // Maximum duration (seconds) of content to retain for startover playback. If not // specified, startover playback will be disabled for the OriginEndpoint. - StartoverWindowSeconds *int32 + StartoverWindowSeconds int32 // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Amount of delay (seconds) to enforce on the playback of live content. If not // specified, there will be no time delay in effect for the OriginEndpoint. - TimeDelaySeconds *int32 + TimeDelaySeconds int32 // The URL of the packaged OriginEndpoint for consumption. Url *string // A list of source IP CIDR blocks that will be allowed to access the // OriginEndpoint. - Whitelist []*string + Whitelist []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackage/api_op_DescribeChannel.go b/service/mediapackage/api_op_DescribeChannel.go index a9fa5c6d6ca..dc3f684562a 100644 --- a/service/mediapackage/api_op_DescribeChannel.go +++ b/service/mediapackage/api_op_DescribeChannel.go @@ -56,7 +56,7 @@ type DescribeChannelOutput struct { IngressAccessLogs *types.IngressAccessLogs // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackage/api_op_DescribeOriginEndpoint.go b/service/mediapackage/api_op_DescribeOriginEndpoint.go index a69ce6b76bc..cfab71e234f 100644 --- a/service/mediapackage/api_op_DescribeOriginEndpoint.go +++ b/service/mediapackage/api_op_DescribeOriginEndpoint.go @@ -76,21 +76,21 @@ type DescribeOriginEndpointOutput struct { // Maximum duration (seconds) of content to retain for startover playback. If not // specified, startover playback will be disabled for the OriginEndpoint. - StartoverWindowSeconds *int32 + StartoverWindowSeconds int32 // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Amount of delay (seconds) to enforce on the playback of live content. If not // specified, there will be no time delay in effect for the OriginEndpoint. - TimeDelaySeconds *int32 + TimeDelaySeconds int32 // The URL of the packaged OriginEndpoint for consumption. Url *string // A list of source IP CIDR blocks that will be allowed to access the // OriginEndpoint. - Whitelist []*string + Whitelist []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackage/api_op_ListChannels.go b/service/mediapackage/api_op_ListChannels.go index dbd3d24c9de..677c85868a2 100644 --- a/service/mediapackage/api_op_ListChannels.go +++ b/service/mediapackage/api_op_ListChannels.go @@ -30,7 +30,7 @@ func (c *Client) ListChannels(ctx context.Context, params *ListChannelsInput, op type ListChannelsInput struct { // Upper bound on number of records to return. - MaxResults *int32 + MaxResults int32 // A token used to resume pagination from the end of a previous request. NextToken *string @@ -39,7 +39,7 @@ type ListChannelsInput struct { type ListChannelsOutput struct { // A list of Channel records. - Channels []*types.Channel + Channels []types.Channel // A token that can be used to resume pagination from the end of the collection. NextToken *string diff --git a/service/mediapackage/api_op_ListHarvestJobs.go b/service/mediapackage/api_op_ListHarvestJobs.go index b20b0f72220..23ac278936c 100644 --- a/service/mediapackage/api_op_ListHarvestJobs.go +++ b/service/mediapackage/api_op_ListHarvestJobs.go @@ -37,7 +37,7 @@ type ListHarvestJobsInput struct { IncludeStatus *string // The upper bound on the number of records to return. - MaxResults *int32 + MaxResults int32 // A token used to resume pagination from the end of a previous request. NextToken *string @@ -46,7 +46,7 @@ type ListHarvestJobsInput struct { type ListHarvestJobsOutput struct { // A list of HarvestJob records. - HarvestJobs []*types.HarvestJob + HarvestJobs []types.HarvestJob // A token that can be used to resume pagination from the end of the collection. NextToken *string diff --git a/service/mediapackage/api_op_ListOriginEndpoints.go b/service/mediapackage/api_op_ListOriginEndpoints.go index 7803e73aa48..f1d93cbb0e6 100644 --- a/service/mediapackage/api_op_ListOriginEndpoints.go +++ b/service/mediapackage/api_op_ListOriginEndpoints.go @@ -34,7 +34,7 @@ type ListOriginEndpointsInput struct { ChannelId *string // The upper bound on the number of records to return. - MaxResults *int32 + MaxResults int32 // A token used to resume pagination from the end of a previous request. NextToken *string @@ -46,7 +46,7 @@ type ListOriginEndpointsOutput struct { NextToken *string // A list of OriginEndpoint records. - OriginEndpoints []*types.OriginEndpoint + OriginEndpoints []types.OriginEndpoint // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackage/api_op_ListTagsForResource.go b/service/mediapackage/api_op_ListTagsForResource.go index 848bd704754..41d8a0d6055 100644 --- a/service/mediapackage/api_op_ListTagsForResource.go +++ b/service/mediapackage/api_op_ListTagsForResource.go @@ -30,7 +30,7 @@ type ListTagsForResourceInput struct { } type ListTagsForResourceOutput struct { - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackage/api_op_RotateChannelCredentials.go b/service/mediapackage/api_op_RotateChannelCredentials.go index 19171910cdd..5bc57f54ce2 100644 --- a/service/mediapackage/api_op_RotateChannelCredentials.go +++ b/service/mediapackage/api_op_RotateChannelCredentials.go @@ -57,7 +57,7 @@ type RotateChannelCredentialsOutput struct { IngressAccessLogs *types.IngressAccessLogs // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackage/api_op_RotateIngestEndpointCredentials.go b/service/mediapackage/api_op_RotateIngestEndpointCredentials.go index 6fce2b6ef4b..1b67cbc87fb 100644 --- a/service/mediapackage/api_op_RotateIngestEndpointCredentials.go +++ b/service/mediapackage/api_op_RotateIngestEndpointCredentials.go @@ -62,7 +62,7 @@ type RotateIngestEndpointCredentialsOutput struct { IngressAccessLogs *types.IngressAccessLogs // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackage/api_op_TagResource.go b/service/mediapackage/api_op_TagResource.go index 0e07ebf6c2e..aa5cae0f628 100644 --- a/service/mediapackage/api_op_TagResource.go +++ b/service/mediapackage/api_op_TagResource.go @@ -28,7 +28,7 @@ func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optF type TagResourceInput struct { ResourceArn *string - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/mediapackage/api_op_UntagResource.go b/service/mediapackage/api_op_UntagResource.go index a02c853cd64..ccab15a0742 100644 --- a/service/mediapackage/api_op_UntagResource.go +++ b/service/mediapackage/api_op_UntagResource.go @@ -31,7 +31,7 @@ type UntagResourceInput struct { // The key(s) of tag to be deleted // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/mediapackage/api_op_UpdateChannel.go b/service/mediapackage/api_op_UpdateChannel.go index b824da64ec5..34098b264c4 100644 --- a/service/mediapackage/api_op_UpdateChannel.go +++ b/service/mediapackage/api_op_UpdateChannel.go @@ -60,7 +60,7 @@ type UpdateChannelOutput struct { IngressAccessLogs *types.IngressAccessLogs // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackage/api_op_UpdateOriginEndpoint.go b/service/mediapackage/api_op_UpdateOriginEndpoint.go index 861d73377a9..1c25d735d90 100644 --- a/service/mediapackage/api_op_UpdateOriginEndpoint.go +++ b/service/mediapackage/api_op_UpdateOriginEndpoint.go @@ -65,15 +65,15 @@ type UpdateOriginEndpointInput struct { // Maximum duration (in seconds) of content to retain for startover playback. If // not specified, startover playback will be disabled for the OriginEndpoint. - StartoverWindowSeconds *int32 + StartoverWindowSeconds int32 // Amount of delay (in seconds) to enforce on the playback of live content. If not // specified, there will be no time delay in effect for the OriginEndpoint. - TimeDelaySeconds *int32 + TimeDelaySeconds int32 // A list of source IP CIDR blocks that will be allowed to access the // OriginEndpoint. - Whitelist []*string + Whitelist []string } type UpdateOriginEndpointOutput struct { @@ -117,21 +117,21 @@ type UpdateOriginEndpointOutput struct { // Maximum duration (seconds) of content to retain for startover playback. If not // specified, startover playback will be disabled for the OriginEndpoint. - StartoverWindowSeconds *int32 + StartoverWindowSeconds int32 // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Amount of delay (seconds) to enforce on the playback of live content. If not // specified, there will be no time delay in effect for the OriginEndpoint. - TimeDelaySeconds *int32 + TimeDelaySeconds int32 // The URL of the packaged OriginEndpoint for consumption. Url *string // A list of source IP CIDR blocks that will be allowed to access the // OriginEndpoint. - Whitelist []*string + Whitelist []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackage/deserializers.go b/service/mediapackage/deserializers.go index 8d8461a862e..9b33b3caa86 100644 --- a/service/mediapackage/deserializers.go +++ b/service/mediapackage/deserializers.go @@ -172,7 +172,7 @@ func awsRestjson1_deserializeOpDocumentConfigureLogsOutput(v **ConfigureLogsOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -181,7 +181,7 @@ func awsRestjson1_deserializeOpDocumentConfigureLogsOutput(v **ConfigureLogsOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "egressAccessLogs": @@ -200,7 +200,7 @@ func awsRestjson1_deserializeOpDocumentConfigureLogsOutput(v **ConfigureLogsOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ingressAccessLogs": @@ -376,7 +376,7 @@ func awsRestjson1_deserializeOpDocumentCreateChannelOutput(v **CreateChannelOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -385,7 +385,7 @@ func awsRestjson1_deserializeOpDocumentCreateChannelOutput(v **CreateChannelOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "egressAccessLogs": @@ -404,7 +404,7 @@ func awsRestjson1_deserializeOpDocumentCreateChannelOutput(v **CreateChannelOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ingressAccessLogs": @@ -580,7 +580,7 @@ func awsRestjson1_deserializeOpDocumentCreateHarvestJobOutput(v **CreateHarvestJ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "channelId": @@ -589,7 +589,7 @@ func awsRestjson1_deserializeOpDocumentCreateHarvestJobOutput(v **CreateHarvestJ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ChannelId = &jtv + sv.ChannelId = ptr.String(jtv) } case "createdAt": @@ -598,7 +598,7 @@ func awsRestjson1_deserializeOpDocumentCreateHarvestJobOutput(v **CreateHarvestJ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "endTime": @@ -607,7 +607,7 @@ func awsRestjson1_deserializeOpDocumentCreateHarvestJobOutput(v **CreateHarvestJ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EndTime = &jtv + sv.EndTime = ptr.String(jtv) } case "id": @@ -616,7 +616,7 @@ func awsRestjson1_deserializeOpDocumentCreateHarvestJobOutput(v **CreateHarvestJ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "originEndpointId": @@ -625,7 +625,7 @@ func awsRestjson1_deserializeOpDocumentCreateHarvestJobOutput(v **CreateHarvestJ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OriginEndpointId = &jtv + sv.OriginEndpointId = ptr.String(jtv) } case "s3Destination": @@ -639,7 +639,7 @@ func awsRestjson1_deserializeOpDocumentCreateHarvestJobOutput(v **CreateHarvestJ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StartTime = &jtv + sv.StartTime = ptr.String(jtv) } case "status": @@ -814,7 +814,7 @@ func awsRestjson1_deserializeOpDocumentCreateOriginEndpointOutput(v **CreateOrig if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authorization": @@ -828,7 +828,7 @@ func awsRestjson1_deserializeOpDocumentCreateOriginEndpointOutput(v **CreateOrig if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ChannelId = &jtv + sv.ChannelId = ptr.String(jtv) } case "cmafPackage": @@ -847,7 +847,7 @@ func awsRestjson1_deserializeOpDocumentCreateOriginEndpointOutput(v **CreateOrig if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "hlsPackage": @@ -861,7 +861,7 @@ func awsRestjson1_deserializeOpDocumentCreateOriginEndpointOutput(v **CreateOrig if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "manifestName": @@ -870,7 +870,7 @@ func awsRestjson1_deserializeOpDocumentCreateOriginEndpointOutput(v **CreateOrig if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ManifestName = &jtv + sv.ManifestName = ptr.String(jtv) } case "mssPackage": @@ -897,7 +897,7 @@ func awsRestjson1_deserializeOpDocumentCreateOriginEndpointOutput(v **CreateOrig if err != nil { return err } - sv.StartoverWindowSeconds = ptr.Int32(int32(i64)) + sv.StartoverWindowSeconds = int32(i64) } case "tags": @@ -915,7 +915,7 @@ func awsRestjson1_deserializeOpDocumentCreateOriginEndpointOutput(v **CreateOrig if err != nil { return err } - sv.TimeDelaySeconds = ptr.Int32(int32(i64)) + sv.TimeDelaySeconds = int32(i64) } case "url": @@ -924,7 +924,7 @@ func awsRestjson1_deserializeOpDocumentCreateOriginEndpointOutput(v **CreateOrig if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } case "whitelist": @@ -1291,7 +1291,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChannelOutput(v **DescribeChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -1300,7 +1300,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChannelOutput(v **DescribeChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "egressAccessLogs": @@ -1319,7 +1319,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChannelOutput(v **DescribeChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ingressAccessLogs": @@ -1495,7 +1495,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHarvestJobOutput(v **DescribeHarv if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "channelId": @@ -1504,7 +1504,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHarvestJobOutput(v **DescribeHarv if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ChannelId = &jtv + sv.ChannelId = ptr.String(jtv) } case "createdAt": @@ -1513,7 +1513,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHarvestJobOutput(v **DescribeHarv if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "endTime": @@ -1522,7 +1522,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHarvestJobOutput(v **DescribeHarv if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EndTime = &jtv + sv.EndTime = ptr.String(jtv) } case "id": @@ -1531,7 +1531,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHarvestJobOutput(v **DescribeHarv if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "originEndpointId": @@ -1540,7 +1540,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHarvestJobOutput(v **DescribeHarv if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OriginEndpointId = &jtv + sv.OriginEndpointId = ptr.String(jtv) } case "s3Destination": @@ -1554,7 +1554,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHarvestJobOutput(v **DescribeHarv if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StartTime = &jtv + sv.StartTime = ptr.String(jtv) } case "status": @@ -1729,7 +1729,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOriginEndpointOutput(v **Describe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authorization": @@ -1743,7 +1743,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOriginEndpointOutput(v **Describe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ChannelId = &jtv + sv.ChannelId = ptr.String(jtv) } case "cmafPackage": @@ -1762,7 +1762,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOriginEndpointOutput(v **Describe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "hlsPackage": @@ -1776,7 +1776,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOriginEndpointOutput(v **Describe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "manifestName": @@ -1785,7 +1785,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOriginEndpointOutput(v **Describe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ManifestName = &jtv + sv.ManifestName = ptr.String(jtv) } case "mssPackage": @@ -1812,7 +1812,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOriginEndpointOutput(v **Describe if err != nil { return err } - sv.StartoverWindowSeconds = ptr.Int32(int32(i64)) + sv.StartoverWindowSeconds = int32(i64) } case "tags": @@ -1830,7 +1830,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOriginEndpointOutput(v **Describe if err != nil { return err } - sv.TimeDelaySeconds = ptr.Int32(int32(i64)) + sv.TimeDelaySeconds = int32(i64) } case "url": @@ -1839,7 +1839,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOriginEndpointOutput(v **Describe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } case "whitelist": @@ -2015,7 +2015,7 @@ func awsRestjson1_deserializeOpDocumentListChannelsOutput(v **ListChannelsOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2186,7 +2186,7 @@ func awsRestjson1_deserializeOpDocumentListHarvestJobsOutput(v **ListHarvestJobs if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2352,7 +2352,7 @@ func awsRestjson1_deserializeOpDocumentListOriginEndpointsOutput(v **ListOriginE if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "originEndpoints": @@ -2667,7 +2667,7 @@ func awsRestjson1_deserializeOpDocumentRotateChannelCredentialsOutput(v **Rotate if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -2676,7 +2676,7 @@ func awsRestjson1_deserializeOpDocumentRotateChannelCredentialsOutput(v **Rotate if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "egressAccessLogs": @@ -2695,7 +2695,7 @@ func awsRestjson1_deserializeOpDocumentRotateChannelCredentialsOutput(v **Rotate if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ingressAccessLogs": @@ -2871,7 +2871,7 @@ func awsRestjson1_deserializeOpDocumentRotateIngestEndpointCredentialsOutput(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -2880,7 +2880,7 @@ func awsRestjson1_deserializeOpDocumentRotateIngestEndpointCredentialsOutput(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "egressAccessLogs": @@ -2899,7 +2899,7 @@ func awsRestjson1_deserializeOpDocumentRotateIngestEndpointCredentialsOutput(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ingressAccessLogs": @@ -3235,7 +3235,7 @@ func awsRestjson1_deserializeOpDocumentUpdateChannelOutput(v **UpdateChannelOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -3244,7 +3244,7 @@ func awsRestjson1_deserializeOpDocumentUpdateChannelOutput(v **UpdateChannelOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "egressAccessLogs": @@ -3263,7 +3263,7 @@ func awsRestjson1_deserializeOpDocumentUpdateChannelOutput(v **UpdateChannelOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ingressAccessLogs": @@ -3439,7 +3439,7 @@ func awsRestjson1_deserializeOpDocumentUpdateOriginEndpointOutput(v **UpdateOrig if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authorization": @@ -3453,7 +3453,7 @@ func awsRestjson1_deserializeOpDocumentUpdateOriginEndpointOutput(v **UpdateOrig if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ChannelId = &jtv + sv.ChannelId = ptr.String(jtv) } case "cmafPackage": @@ -3472,7 +3472,7 @@ func awsRestjson1_deserializeOpDocumentUpdateOriginEndpointOutput(v **UpdateOrig if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "hlsPackage": @@ -3486,7 +3486,7 @@ func awsRestjson1_deserializeOpDocumentUpdateOriginEndpointOutput(v **UpdateOrig if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "manifestName": @@ -3495,7 +3495,7 @@ func awsRestjson1_deserializeOpDocumentUpdateOriginEndpointOutput(v **UpdateOrig if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ManifestName = &jtv + sv.ManifestName = ptr.String(jtv) } case "mssPackage": @@ -3522,7 +3522,7 @@ func awsRestjson1_deserializeOpDocumentUpdateOriginEndpointOutput(v **UpdateOrig if err != nil { return err } - sv.StartoverWindowSeconds = ptr.Int32(int32(i64)) + sv.StartoverWindowSeconds = int32(i64) } case "tags": @@ -3540,7 +3540,7 @@ func awsRestjson1_deserializeOpDocumentUpdateOriginEndpointOutput(v **UpdateOrig if err != nil { return err } - sv.TimeDelaySeconds = ptr.Int32(int32(i64)) + sv.TimeDelaySeconds = int32(i64) } case "url": @@ -3549,7 +3549,7 @@ func awsRestjson1_deserializeOpDocumentUpdateOriginEndpointOutput(v **UpdateOrig if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } case "whitelist": @@ -3818,7 +3818,7 @@ func awsRestjson1_deserializeDocument__listOf__PeriodTriggersElement(v *[]types. return nil } -func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3831,21 +3831,21 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -3854,7 +3854,7 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return nil } -func awsRestjson1_deserializeDocument__listOfChannel(v *[]*types.Channel, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfChannel(v *[]types.Channel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3867,18 +3867,20 @@ func awsRestjson1_deserializeDocument__listOfChannel(v *[]*types.Channel, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Channel + var cv []types.Channel if *v == nil { - cv = []*types.Channel{} + cv = []types.Channel{} } else { cv = *v } for _, value := range shape { - var col *types.Channel - if err := awsRestjson1_deserializeDocumentChannel(&col, value); err != nil { + var col types.Channel + destAddr := &col + if err := awsRestjson1_deserializeDocumentChannel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3886,7 +3888,7 @@ func awsRestjson1_deserializeDocument__listOfChannel(v *[]*types.Channel, value return nil } -func awsRestjson1_deserializeDocument__listOfHarvestJob(v *[]*types.HarvestJob, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfHarvestJob(v *[]types.HarvestJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3899,18 +3901,20 @@ func awsRestjson1_deserializeDocument__listOfHarvestJob(v *[]*types.HarvestJob, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HarvestJob + var cv []types.HarvestJob if *v == nil { - cv = []*types.HarvestJob{} + cv = []types.HarvestJob{} } else { cv = *v } for _, value := range shape { - var col *types.HarvestJob - if err := awsRestjson1_deserializeDocumentHarvestJob(&col, value); err != nil { + var col types.HarvestJob + destAddr := &col + if err := awsRestjson1_deserializeDocumentHarvestJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3918,7 +3922,7 @@ func awsRestjson1_deserializeDocument__listOfHarvestJob(v *[]*types.HarvestJob, return nil } -func awsRestjson1_deserializeDocument__listOfHlsManifest(v *[]*types.HlsManifest, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfHlsManifest(v *[]types.HlsManifest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3931,18 +3935,20 @@ func awsRestjson1_deserializeDocument__listOfHlsManifest(v *[]*types.HlsManifest return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HlsManifest + var cv []types.HlsManifest if *v == nil { - cv = []*types.HlsManifest{} + cv = []types.HlsManifest{} } else { cv = *v } for _, value := range shape { - var col *types.HlsManifest - if err := awsRestjson1_deserializeDocumentHlsManifest(&col, value); err != nil { + var col types.HlsManifest + destAddr := &col + if err := awsRestjson1_deserializeDocumentHlsManifest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3950,7 +3956,7 @@ func awsRestjson1_deserializeDocument__listOfHlsManifest(v *[]*types.HlsManifest return nil } -func awsRestjson1_deserializeDocument__listOfIngestEndpoint(v *[]*types.IngestEndpoint, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfIngestEndpoint(v *[]types.IngestEndpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3963,18 +3969,20 @@ func awsRestjson1_deserializeDocument__listOfIngestEndpoint(v *[]*types.IngestEn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IngestEndpoint + var cv []types.IngestEndpoint if *v == nil { - cv = []*types.IngestEndpoint{} + cv = []types.IngestEndpoint{} } else { cv = *v } for _, value := range shape { - var col *types.IngestEndpoint - if err := awsRestjson1_deserializeDocumentIngestEndpoint(&col, value); err != nil { + var col types.IngestEndpoint + destAddr := &col + if err := awsRestjson1_deserializeDocumentIngestEndpoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3982,7 +3990,7 @@ func awsRestjson1_deserializeDocument__listOfIngestEndpoint(v *[]*types.IngestEn return nil } -func awsRestjson1_deserializeDocument__listOfOriginEndpoint(v *[]*types.OriginEndpoint, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfOriginEndpoint(v *[]types.OriginEndpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3995,18 +4003,20 @@ func awsRestjson1_deserializeDocument__listOfOriginEndpoint(v *[]*types.OriginEn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OriginEndpoint + var cv []types.OriginEndpoint if *v == nil { - cv = []*types.OriginEndpoint{} + cv = []types.OriginEndpoint{} } else { cv = *v } for _, value := range shape { - var col *types.OriginEndpoint - if err := awsRestjson1_deserializeDocumentOriginEndpoint(&col, value); err != nil { + var col types.OriginEndpoint + destAddr := &col + if err := awsRestjson1_deserializeDocumentOriginEndpoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4014,7 +4024,7 @@ func awsRestjson1_deserializeDocument__listOfOriginEndpoint(v *[]*types.OriginEn return nil } -func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4027,21 +4037,21 @@ func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -4114,7 +4124,7 @@ func awsRestjson1_deserializeDocumentAuthorization(v **types.Authorization, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CdnIdentifierSecret = &jtv + sv.CdnIdentifierSecret = ptr.String(jtv) } case "secretsRoleArn": @@ -4123,7 +4133,7 @@ func awsRestjson1_deserializeDocumentAuthorization(v **types.Authorization, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SecretsRoleArn = &jtv + sv.SecretsRoleArn = ptr.String(jtv) } default: @@ -4163,7 +4173,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -4172,7 +4182,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "egressAccessLogs": @@ -4191,7 +4201,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ingressAccessLogs": @@ -4245,7 +4255,7 @@ func awsRestjson1_deserializeDocumentCmafEncryption(v **types.CmafEncryption, va if err != nil { return err } - sv.KeyRotationIntervalSeconds = ptr.Int32(int32(i64)) + sv.KeyRotationIntervalSeconds = int32(i64) } case "spekeKeyProvider": @@ -4304,7 +4314,7 @@ func awsRestjson1_deserializeDocumentCmafPackage(v **types.CmafPackage, value in if err != nil { return err } - sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) + sv.SegmentDurationSeconds = int32(i64) } case "segmentPrefix": @@ -4313,7 +4323,7 @@ func awsRestjson1_deserializeDocumentCmafPackage(v **types.CmafPackage, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SegmentPrefix = &jtv + sv.SegmentPrefix = ptr.String(jtv) } case "streamSelection": @@ -4362,7 +4372,7 @@ func awsRestjson1_deserializeDocumentDashEncryption(v **types.DashEncryption, va if err != nil { return err } - sv.KeyRotationIntervalSeconds = ptr.Int32(int32(i64)) + sv.KeyRotationIntervalSeconds = int32(i64) } case "spekeKeyProvider": @@ -4439,7 +4449,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if err != nil { return err } - sv.ManifestWindowSeconds = ptr.Int32(int32(i64)) + sv.ManifestWindowSeconds = int32(i64) } case "minBufferTimeSeconds": @@ -4452,7 +4462,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if err != nil { return err } - sv.MinBufferTimeSeconds = ptr.Int32(int32(i64)) + sv.MinBufferTimeSeconds = int32(i64) } case "minUpdatePeriodSeconds": @@ -4465,7 +4475,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if err != nil { return err } - sv.MinUpdatePeriodSeconds = ptr.Int32(int32(i64)) + sv.MinUpdatePeriodSeconds = int32(i64) } case "periodTriggers": @@ -4492,7 +4502,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if err != nil { return err } - sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) + sv.SegmentDurationSeconds = int32(i64) } case "segmentTemplateFormat": @@ -4519,7 +4529,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if err != nil { return err } - sv.SuggestedPresentationDelaySeconds = ptr.Int32(int32(i64)) + sv.SuggestedPresentationDelaySeconds = int32(i64) } case "utcTiming": @@ -4537,7 +4547,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.UtcTimingUri = &jtv + sv.UtcTimingUri = ptr.String(jtv) } default: @@ -4577,7 +4587,7 @@ func awsRestjson1_deserializeDocumentEgressAccessLogs(v **types.EgressAccessLogs if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } default: @@ -4617,7 +4627,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4657,7 +4667,7 @@ func awsRestjson1_deserializeDocumentHarvestJob(v **types.HarvestJob, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "channelId": @@ -4666,7 +4676,7 @@ func awsRestjson1_deserializeDocumentHarvestJob(v **types.HarvestJob, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ChannelId = &jtv + sv.ChannelId = ptr.String(jtv) } case "createdAt": @@ -4675,7 +4685,7 @@ func awsRestjson1_deserializeDocumentHarvestJob(v **types.HarvestJob, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "endTime": @@ -4684,7 +4694,7 @@ func awsRestjson1_deserializeDocumentHarvestJob(v **types.HarvestJob, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EndTime = &jtv + sv.EndTime = ptr.String(jtv) } case "id": @@ -4693,7 +4703,7 @@ func awsRestjson1_deserializeDocumentHarvestJob(v **types.HarvestJob, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "originEndpointId": @@ -4702,7 +4712,7 @@ func awsRestjson1_deserializeDocumentHarvestJob(v **types.HarvestJob, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OriginEndpointId = &jtv + sv.OriginEndpointId = ptr.String(jtv) } case "s3Destination": @@ -4716,7 +4726,7 @@ func awsRestjson1_deserializeDocumentHarvestJob(v **types.HarvestJob, value inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StartTime = &jtv + sv.StartTime = ptr.String(jtv) } case "status": @@ -4765,7 +4775,7 @@ func awsRestjson1_deserializeDocumentHlsEncryption(v **types.HlsEncryption, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ConstantInitializationVector = &jtv + sv.ConstantInitializationVector = ptr.String(jtv) } case "encryptionMethod": @@ -4787,7 +4797,7 @@ func awsRestjson1_deserializeDocumentHlsEncryption(v **types.HlsEncryption, valu if err != nil { return err } - sv.KeyRotationIntervalSeconds = ptr.Int32(int32(i64)) + sv.KeyRotationIntervalSeconds = int32(i64) } case "repeatExtXKey": @@ -4796,7 +4806,7 @@ func awsRestjson1_deserializeDocumentHlsEncryption(v **types.HlsEncryption, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.RepeatExtXKey = &jtv + sv.RepeatExtXKey = jtv } case "spekeKeyProvider": @@ -4886,7 +4896,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "includeIframeOnlyStream": @@ -4895,7 +4905,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IncludeIframeOnlyStream = &jtv + sv.IncludeIframeOnlyStream = jtv } case "manifestName": @@ -4904,7 +4914,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ManifestName = &jtv + sv.ManifestName = ptr.String(jtv) } case "playlistType": @@ -4926,7 +4936,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if err != nil { return err } - sv.PlaylistWindowSeconds = ptr.Int32(int32(i64)) + sv.PlaylistWindowSeconds = int32(i64) } case "programDateTimeIntervalSeconds": @@ -4939,7 +4949,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if err != nil { return err } - sv.ProgramDateTimeIntervalSeconds = ptr.Int32(int32(i64)) + sv.ProgramDateTimeIntervalSeconds = int32(i64) } case "url": @@ -4948,7 +4958,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -5016,7 +5026,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IncludeIframeOnlyStream = &jtv + sv.IncludeIframeOnlyStream = jtv } case "playlistType": @@ -5038,7 +5048,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if err != nil { return err } - sv.PlaylistWindowSeconds = ptr.Int32(int32(i64)) + sv.PlaylistWindowSeconds = int32(i64) } case "programDateTimeIntervalSeconds": @@ -5051,7 +5061,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if err != nil { return err } - sv.ProgramDateTimeIntervalSeconds = ptr.Int32(int32(i64)) + sv.ProgramDateTimeIntervalSeconds = int32(i64) } case "segmentDurationSeconds": @@ -5064,7 +5074,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if err != nil { return err } - sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) + sv.SegmentDurationSeconds = int32(i64) } case "streamSelection": @@ -5078,7 +5088,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.UseAudioRenditionGroup = &jtv + sv.UseAudioRenditionGroup = jtv } default: @@ -5118,7 +5128,7 @@ func awsRestjson1_deserializeDocumentIngestEndpoint(v **types.IngestEndpoint, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "password": @@ -5127,7 +5137,7 @@ func awsRestjson1_deserializeDocumentIngestEndpoint(v **types.IngestEndpoint, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "url": @@ -5136,7 +5146,7 @@ func awsRestjson1_deserializeDocumentIngestEndpoint(v **types.IngestEndpoint, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } case "username": @@ -5145,7 +5155,7 @@ func awsRestjson1_deserializeDocumentIngestEndpoint(v **types.IngestEndpoint, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -5185,7 +5195,7 @@ func awsRestjson1_deserializeDocumentIngressAccessLogs(v **types.IngressAccessLo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } default: @@ -5225,7 +5235,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5310,7 +5320,7 @@ func awsRestjson1_deserializeDocumentMssPackage(v **types.MssPackage, value inte if err != nil { return err } - sv.ManifestWindowSeconds = ptr.Int32(int32(i64)) + sv.ManifestWindowSeconds = int32(i64) } case "segmentDurationSeconds": @@ -5323,7 +5333,7 @@ func awsRestjson1_deserializeDocumentMssPackage(v **types.MssPackage, value inte if err != nil { return err } - sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) + sv.SegmentDurationSeconds = int32(i64) } case "streamSelection": @@ -5368,7 +5378,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5408,7 +5418,7 @@ func awsRestjson1_deserializeDocumentOriginEndpoint(v **types.OriginEndpoint, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authorization": @@ -5422,7 +5432,7 @@ func awsRestjson1_deserializeDocumentOriginEndpoint(v **types.OriginEndpoint, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ChannelId = &jtv + sv.ChannelId = ptr.String(jtv) } case "cmafPackage": @@ -5441,7 +5451,7 @@ func awsRestjson1_deserializeDocumentOriginEndpoint(v **types.OriginEndpoint, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "hlsPackage": @@ -5455,7 +5465,7 @@ func awsRestjson1_deserializeDocumentOriginEndpoint(v **types.OriginEndpoint, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "manifestName": @@ -5464,7 +5474,7 @@ func awsRestjson1_deserializeDocumentOriginEndpoint(v **types.OriginEndpoint, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ManifestName = &jtv + sv.ManifestName = ptr.String(jtv) } case "mssPackage": @@ -5491,7 +5501,7 @@ func awsRestjson1_deserializeDocumentOriginEndpoint(v **types.OriginEndpoint, va if err != nil { return err } - sv.StartoverWindowSeconds = ptr.Int32(int32(i64)) + sv.StartoverWindowSeconds = int32(i64) } case "tags": @@ -5509,7 +5519,7 @@ func awsRestjson1_deserializeDocumentOriginEndpoint(v **types.OriginEndpoint, va if err != nil { return err } - sv.TimeDelaySeconds = ptr.Int32(int32(i64)) + sv.TimeDelaySeconds = int32(i64) } case "url": @@ -5518,7 +5528,7 @@ func awsRestjson1_deserializeDocumentOriginEndpoint(v **types.OriginEndpoint, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } case "whitelist": @@ -5563,7 +5573,7 @@ func awsRestjson1_deserializeDocumentS3Destination(v **types.S3Destination, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "manifestKey": @@ -5572,7 +5582,7 @@ func awsRestjson1_deserializeDocumentS3Destination(v **types.S3Destination, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ManifestKey = &jtv + sv.ManifestKey = ptr.String(jtv) } case "roleArn": @@ -5581,7 +5591,7 @@ func awsRestjson1_deserializeDocumentS3Destination(v **types.S3Destination, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -5621,7 +5631,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5661,7 +5671,7 @@ func awsRestjson1_deserializeDocumentSpekeKeyProvider(v **types.SpekeKeyProvider if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } case "resourceId": @@ -5670,7 +5680,7 @@ func awsRestjson1_deserializeDocumentSpekeKeyProvider(v **types.SpekeKeyProvider if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "roleArn": @@ -5679,7 +5689,7 @@ func awsRestjson1_deserializeDocumentSpekeKeyProvider(v **types.SpekeKeyProvider if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "systemIds": @@ -5693,7 +5703,7 @@ func awsRestjson1_deserializeDocumentSpekeKeyProvider(v **types.SpekeKeyProvider if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -5737,7 +5747,7 @@ func awsRestjson1_deserializeDocumentStreamSelection(v **types.StreamSelection, if err != nil { return err } - sv.MaxVideoBitsPerSecond = ptr.Int32(int32(i64)) + sv.MaxVideoBitsPerSecond = int32(i64) } case "minVideoBitsPerSecond": @@ -5750,7 +5760,7 @@ func awsRestjson1_deserializeDocumentStreamSelection(v **types.StreamSelection, if err != nil { return err } - sv.MinVideoBitsPerSecond = ptr.Int32(int32(i64)) + sv.MinVideoBitsPerSecond = int32(i64) } case "streamOrder": @@ -5771,7 +5781,7 @@ func awsRestjson1_deserializeDocumentStreamSelection(v **types.StreamSelection, return nil } -func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5784,21 +5794,21 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -5835,7 +5845,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5875,7 +5885,7 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/mediapackage/go.mod b/service/mediapackage/go.mod index 1afe17a626e..2347f5dd890 100644 --- a/service/mediapackage/go.mod +++ b/service/mediapackage/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/mediapackage go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/mediapackage/serializers.go b/service/mediapackage/serializers.go index 5cf899e188d..f743e81af41 100644 --- a/service/mediapackage/serializers.go +++ b/service/mediapackage/serializers.go @@ -76,13 +76,10 @@ func awsRestjson1_serializeOpHttpBindingsConfigureLogsInput(v *ConfigureLogsInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -417,9 +414,9 @@ func awsRestjson1_serializeOpDocumentCreateOriginEndpointInput(v *CreateOriginEn ok.String(string(v.Origination)) } - if v.StartoverWindowSeconds != nil { + if v.StartoverWindowSeconds != 0 { ok := object.Key("startoverWindowSeconds") - ok.Integer(*v.StartoverWindowSeconds) + ok.Integer(v.StartoverWindowSeconds) } if v.Tags != nil { @@ -429,9 +426,9 @@ func awsRestjson1_serializeOpDocumentCreateOriginEndpointInput(v *CreateOriginEn } } - if v.TimeDelaySeconds != nil { + if v.TimeDelaySeconds != 0 { ok := object.Key("timeDelaySeconds") - ok.Integer(*v.TimeDelaySeconds) + ok.Integer(v.TimeDelaySeconds) } if v.Whitelist != nil { @@ -495,13 +492,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteChannelInput(v *DeleteChannelInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -561,13 +555,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteOriginEndpointInput(v *DeleteOrig return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -627,13 +618,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeChannelInput(v *DescribeChannel return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -693,13 +681,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeHarvestJobInput(v *DescribeHarv return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -759,13 +744,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeOriginEndpointInput(v *Describe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -825,8 +807,8 @@ func awsRestjson1_serializeOpHttpBindingsListChannelsInput(v *ListChannelsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -895,8 +877,8 @@ func awsRestjson1_serializeOpHttpBindingsListHarvestJobsInput(v *ListHarvestJobs encoder.SetQuery("includeStatus").String(*v.IncludeStatus) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -961,8 +943,8 @@ func awsRestjson1_serializeOpHttpBindingsListOriginEndpointsInput(v *ListOriginE encoder.SetQuery("channelId").String(*v.ChannelId) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1023,13 +1005,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1089,13 +1068,10 @@ func awsRestjson1_serializeOpHttpBindingsRotateChannelCredentialsInput(v *Rotate return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1155,25 +1131,19 @@ func awsRestjson1_serializeOpHttpBindingsRotateIngestEndpointCredentialsInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } - if v.IngestEndpointId == nil { + if v.IngestEndpointId == nil || len(*v.IngestEndpointId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IngestEndpointId must not be empty")} } if v.IngestEndpointId != nil { - if len(*v.IngestEndpointId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IngestEndpointId must not be empty")} - } if err := encoder.SetURI("IngestEndpointId").String(*v.IngestEndpointId); err != nil { return err } @@ -1244,13 +1214,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1324,13 +1291,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1338,10 +1302,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1410,13 +1371,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateChannelInput(v *UpdateChannelInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1499,13 +1457,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateOriginEndpointInput(v *UpdateOrig return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1568,14 +1523,14 @@ func awsRestjson1_serializeOpDocumentUpdateOriginEndpointInput(v *UpdateOriginEn ok.String(string(v.Origination)) } - if v.StartoverWindowSeconds != nil { + if v.StartoverWindowSeconds != 0 { ok := object.Key("startoverWindowSeconds") - ok.Integer(*v.StartoverWindowSeconds) + ok.Integer(v.StartoverWindowSeconds) } - if v.TimeDelaySeconds != nil { + if v.TimeDelaySeconds != 0 { ok := object.Key("timeDelaySeconds") - ok.Integer(*v.TimeDelaySeconds) + ok.Integer(v.TimeDelaySeconds) } if v.Whitelist != nil { @@ -1599,49 +1554,37 @@ func awsRestjson1_serializeDocument__listOf__PeriodTriggersElement(v []types.Per return nil } -func awsRestjson1_serializeDocument__listOf__string(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOfHlsManifestCreateOrUpdateParameters(v []*types.HlsManifestCreateOrUpdateParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfHlsManifestCreateOrUpdateParameters(v []types.HlsManifestCreateOrUpdateParameters, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentHlsManifestCreateOrUpdateParameters(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentHlsManifestCreateOrUpdateParameters(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__mapOf__string(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__mapOf__string(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1678,9 +1621,9 @@ func awsRestjson1_serializeDocumentCmafEncryption(v *types.CmafEncryption, value object := value.Object() defer object.Close() - if v.KeyRotationIntervalSeconds != nil { + if v.KeyRotationIntervalSeconds != 0 { ok := object.Key("keyRotationIntervalSeconds") - ok.Integer(*v.KeyRotationIntervalSeconds) + ok.Integer(v.KeyRotationIntervalSeconds) } if v.SpekeKeyProvider != nil { @@ -1711,9 +1654,9 @@ func awsRestjson1_serializeDocumentCmafPackageCreateOrUpdateParameters(v *types. } } - if v.SegmentDurationSeconds != nil { + if v.SegmentDurationSeconds != 0 { ok := object.Key("segmentDurationSeconds") - ok.Integer(*v.SegmentDurationSeconds) + ok.Integer(v.SegmentDurationSeconds) } if v.SegmentPrefix != nil { @@ -1735,9 +1678,9 @@ func awsRestjson1_serializeDocumentDashEncryption(v *types.DashEncryption, value object := value.Object() defer object.Close() - if v.KeyRotationIntervalSeconds != nil { + if v.KeyRotationIntervalSeconds != 0 { ok := object.Key("keyRotationIntervalSeconds") - ok.Integer(*v.KeyRotationIntervalSeconds) + ok.Integer(v.KeyRotationIntervalSeconds) } if v.SpekeKeyProvider != nil { @@ -1778,19 +1721,19 @@ func awsRestjson1_serializeDocumentDashPackage(v *types.DashPackage, value smith ok.String(string(v.ManifestLayout)) } - if v.ManifestWindowSeconds != nil { + if v.ManifestWindowSeconds != 0 { ok := object.Key("manifestWindowSeconds") - ok.Integer(*v.ManifestWindowSeconds) + ok.Integer(v.ManifestWindowSeconds) } - if v.MinBufferTimeSeconds != nil { + if v.MinBufferTimeSeconds != 0 { ok := object.Key("minBufferTimeSeconds") - ok.Integer(*v.MinBufferTimeSeconds) + ok.Integer(v.MinBufferTimeSeconds) } - if v.MinUpdatePeriodSeconds != nil { + if v.MinUpdatePeriodSeconds != 0 { ok := object.Key("minUpdatePeriodSeconds") - ok.Integer(*v.MinUpdatePeriodSeconds) + ok.Integer(v.MinUpdatePeriodSeconds) } if v.PeriodTriggers != nil { @@ -1805,9 +1748,9 @@ func awsRestjson1_serializeDocumentDashPackage(v *types.DashPackage, value smith ok.String(string(v.Profile)) } - if v.SegmentDurationSeconds != nil { + if v.SegmentDurationSeconds != 0 { ok := object.Key("segmentDurationSeconds") - ok.Integer(*v.SegmentDurationSeconds) + ok.Integer(v.SegmentDurationSeconds) } if len(v.SegmentTemplateFormat) > 0 { @@ -1822,9 +1765,9 @@ func awsRestjson1_serializeDocumentDashPackage(v *types.DashPackage, value smith } } - if v.SuggestedPresentationDelaySeconds != nil { + if v.SuggestedPresentationDelaySeconds != 0 { ok := object.Key("suggestedPresentationDelaySeconds") - ok.Integer(*v.SuggestedPresentationDelaySeconds) + ok.Integer(v.SuggestedPresentationDelaySeconds) } if len(v.UtcTiming) > 0 { @@ -1866,14 +1809,14 @@ func awsRestjson1_serializeDocumentHlsEncryption(v *types.HlsEncryption, value s ok.String(string(v.EncryptionMethod)) } - if v.KeyRotationIntervalSeconds != nil { + if v.KeyRotationIntervalSeconds != 0 { ok := object.Key("keyRotationIntervalSeconds") - ok.Integer(*v.KeyRotationIntervalSeconds) + ok.Integer(v.KeyRotationIntervalSeconds) } - if v.RepeatExtXKey != nil { + if v.RepeatExtXKey { ok := object.Key("repeatExtXKey") - ok.Boolean(*v.RepeatExtXKey) + ok.Boolean(v.RepeatExtXKey) } if v.SpekeKeyProvider != nil { @@ -1912,9 +1855,9 @@ func awsRestjson1_serializeDocumentHlsManifestCreateOrUpdateParameters(v *types. ok.String(*v.Id) } - if v.IncludeIframeOnlyStream != nil { + if v.IncludeIframeOnlyStream { ok := object.Key("includeIframeOnlyStream") - ok.Boolean(*v.IncludeIframeOnlyStream) + ok.Boolean(v.IncludeIframeOnlyStream) } if v.ManifestName != nil { @@ -1927,14 +1870,14 @@ func awsRestjson1_serializeDocumentHlsManifestCreateOrUpdateParameters(v *types. ok.String(string(v.PlaylistType)) } - if v.PlaylistWindowSeconds != nil { + if v.PlaylistWindowSeconds != 0 { ok := object.Key("playlistWindowSeconds") - ok.Integer(*v.PlaylistWindowSeconds) + ok.Integer(v.PlaylistWindowSeconds) } - if v.ProgramDateTimeIntervalSeconds != nil { + if v.ProgramDateTimeIntervalSeconds != 0 { ok := object.Key("programDateTimeIntervalSeconds") - ok.Integer(*v.ProgramDateTimeIntervalSeconds) + ok.Integer(v.ProgramDateTimeIntervalSeconds) } return nil @@ -1968,9 +1911,9 @@ func awsRestjson1_serializeDocumentHlsPackage(v *types.HlsPackage, value smithyj } } - if v.IncludeIframeOnlyStream != nil { + if v.IncludeIframeOnlyStream { ok := object.Key("includeIframeOnlyStream") - ok.Boolean(*v.IncludeIframeOnlyStream) + ok.Boolean(v.IncludeIframeOnlyStream) } if len(v.PlaylistType) > 0 { @@ -1978,19 +1921,19 @@ func awsRestjson1_serializeDocumentHlsPackage(v *types.HlsPackage, value smithyj ok.String(string(v.PlaylistType)) } - if v.PlaylistWindowSeconds != nil { + if v.PlaylistWindowSeconds != 0 { ok := object.Key("playlistWindowSeconds") - ok.Integer(*v.PlaylistWindowSeconds) + ok.Integer(v.PlaylistWindowSeconds) } - if v.ProgramDateTimeIntervalSeconds != nil { + if v.ProgramDateTimeIntervalSeconds != 0 { ok := object.Key("programDateTimeIntervalSeconds") - ok.Integer(*v.ProgramDateTimeIntervalSeconds) + ok.Integer(v.ProgramDateTimeIntervalSeconds) } - if v.SegmentDurationSeconds != nil { + if v.SegmentDurationSeconds != 0 { ok := object.Key("segmentDurationSeconds") - ok.Integer(*v.SegmentDurationSeconds) + ok.Integer(v.SegmentDurationSeconds) } if v.StreamSelection != nil { @@ -2000,9 +1943,9 @@ func awsRestjson1_serializeDocumentHlsPackage(v *types.HlsPackage, value smithyj } } - if v.UseAudioRenditionGroup != nil { + if v.UseAudioRenditionGroup { ok := object.Key("useAudioRenditionGroup") - ok.Boolean(*v.UseAudioRenditionGroup) + ok.Boolean(v.UseAudioRenditionGroup) } return nil @@ -2045,14 +1988,14 @@ func awsRestjson1_serializeDocumentMssPackage(v *types.MssPackage, value smithyj } } - if v.ManifestWindowSeconds != nil { + if v.ManifestWindowSeconds != 0 { ok := object.Key("manifestWindowSeconds") - ok.Integer(*v.ManifestWindowSeconds) + ok.Integer(v.ManifestWindowSeconds) } - if v.SegmentDurationSeconds != nil { + if v.SegmentDurationSeconds != 0 { ok := object.Key("segmentDurationSeconds") - ok.Integer(*v.SegmentDurationSeconds) + ok.Integer(v.SegmentDurationSeconds) } if v.StreamSelection != nil { @@ -2125,14 +2068,14 @@ func awsRestjson1_serializeDocumentStreamSelection(v *types.StreamSelection, val object := value.Object() defer object.Close() - if v.MaxVideoBitsPerSecond != nil { + if v.MaxVideoBitsPerSecond != 0 { ok := object.Key("maxVideoBitsPerSecond") - ok.Integer(*v.MaxVideoBitsPerSecond) + ok.Integer(v.MaxVideoBitsPerSecond) } - if v.MinVideoBitsPerSecond != nil { + if v.MinVideoBitsPerSecond != 0 { ok := object.Key("minVideoBitsPerSecond") - ok.Integer(*v.MinVideoBitsPerSecond) + ok.Integer(v.MinVideoBitsPerSecond) } if len(v.StreamOrder) > 0 { @@ -2143,17 +2086,13 @@ func awsRestjson1_serializeDocumentStreamSelection(v *types.StreamSelection, val return nil } -func awsRestjson1_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/mediapackage/types/types.go b/service/mediapackage/types/types.go index 7d246f21740..4cdde5b54d1 100644 --- a/service/mediapackage/types/types.go +++ b/service/mediapackage/types/types.go @@ -41,7 +41,7 @@ type Channel struct { IngressAccessLogs *IngressAccessLogs // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string } // A Common Media Application Format (CMAF) encryption configuration. @@ -54,7 +54,7 @@ type CmafEncryption struct { SpekeKeyProvider *SpekeKeyProvider // Time (in seconds) between each encryption key rotation. - KeyRotationIntervalSeconds *int32 + KeyRotationIntervalSeconds int32 } // A Common Media Application Format (CMAF) packaging configuration. @@ -64,11 +64,11 @@ type CmafPackage struct { Encryption *CmafEncryption // A list of HLS manifest configurations - HlsManifests []*HlsManifest + HlsManifests []HlsManifest // Duration (in seconds) of each segment. Actual segments will be rounded to the // nearest multiple of the source segment duration. - SegmentDurationSeconds *int32 + SegmentDurationSeconds int32 // An optional custom string that is prepended to the name of each segment. If not // specified, it defaults to the ChannelId. @@ -85,11 +85,11 @@ type CmafPackageCreateOrUpdateParameters struct { Encryption *CmafEncryption // A list of HLS manifest configurations - HlsManifests []*HlsManifestCreateOrUpdateParameters + HlsManifests []HlsManifestCreateOrUpdateParameters // Duration (in seconds) of each segment. Actual segments will be rounded to the // nearest multiple of the source segment duration. - SegmentDurationSeconds *int32 + SegmentDurationSeconds int32 // An optional custom string that is prepended to the name of each segment. If not // specified, it defaults to the ChannelId. @@ -109,7 +109,7 @@ type DashEncryption struct { SpekeKeyProvider *SpekeKeyProvider // Time (in seconds) between each encryption key rotation. - KeyRotationIntervalSeconds *int32 + KeyRotationIntervalSeconds int32 } // A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration. @@ -142,15 +142,15 @@ type DashPackage struct { ManifestLayout ManifestLayout // Time window (in seconds) contained in each manifest. - ManifestWindowSeconds *int32 + ManifestWindowSeconds int32 // Minimum duration (in seconds) that a player will buffer media before starting // the presentation. - MinBufferTimeSeconds *int32 + MinBufferTimeSeconds int32 // Minimum duration (in seconds) between potential changes to the Dynamic Adaptive // Streaming over HTTP (DASH) Media Presentation Description (MPD). - MinUpdatePeriodSeconds *int32 + MinUpdatePeriodSeconds int32 // A list of triggers that controls when the outgoing Dynamic Adaptive Streaming // over HTTP (DASH) Media Presentation Description (MPD) will be partitioned into @@ -165,7 +165,7 @@ type DashPackage struct { // Duration (in seconds) of each segment. Actual segments will be rounded to the // nearest multiple of the source segment duration. - SegmentDurationSeconds *int32 + SegmentDurationSeconds int32 // Determines the type of SegmentTemplate included in the Media Presentation // Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is @@ -179,7 +179,7 @@ type DashPackage struct { StreamSelection *StreamSelection // Duration (in seconds) to delay live content before presentation. - SuggestedPresentationDelaySeconds *int32 + SuggestedPresentationDelaySeconds int32 // Determines the type of UTCTiming included in the Media Presentation Description // (MPD) @@ -250,17 +250,17 @@ type HlsEncryption struct { EncryptionMethod EncryptionMethod // Interval (in seconds) between each encryption key rotation. - KeyRotationIntervalSeconds *int32 + KeyRotationIntervalSeconds int32 // When enabled, the EXT-X-KEY tag will be repeated in output manifests. - RepeatExtXKey *bool + RepeatExtXKey bool } // An HTTP Live Streaming (HLS) ingest resource configuration. type HlsIngest struct { // A list of endpoints to which the source stream should be sent. - IngestEndpoints []*IngestEndpoint + IngestEndpoints []IngestEndpoint } // A HTTP Live Streaming (HLS) manifest configuration. @@ -283,7 +283,7 @@ type HlsManifest struct { AdMarkers AdMarkers // When enabled, an I-Frame only stream will be included in the output. - IncludeIframeOnlyStream *bool + IncludeIframeOnlyStream bool // An optional short string appended to the end of the OriginEndpoint URL. If not // specified, defaults to the manifestName for the OriginEndpoint. @@ -295,7 +295,7 @@ type HlsManifest struct { PlaylistType PlaylistType // Time window (in seconds) contained in each parent manifest. - PlaylistWindowSeconds *int32 + PlaylistWindowSeconds int32 // The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into // manifests. Additionally, when an interval is specified ID3Timed Metadata @@ -305,7 +305,7 @@ type HlsManifest struct { // generated. Note that irrespective of this parameter, if any ID3 Timed Metadata // is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS // output. - ProgramDateTimeIntervalSeconds *int32 + ProgramDateTimeIntervalSeconds int32 // The URL of the packaged OriginEndpoint for consumption. Url *string @@ -348,7 +348,7 @@ type HlsManifestCreateOrUpdateParameters struct { AdsOnDeliveryRestrictions AdsOnDeliveryRestrictions // When enabled, an I-Frame only stream will be included in the output. - IncludeIframeOnlyStream *bool + IncludeIframeOnlyStream bool // An optional short string appended to the end of the OriginEndpoint URL. If not // specified, defaults to the manifestName for the OriginEndpoint. @@ -360,7 +360,7 @@ type HlsManifestCreateOrUpdateParameters struct { PlaylistType PlaylistType // Time window (in seconds) contained in each parent manifest. - PlaylistWindowSeconds *int32 + PlaylistWindowSeconds int32 // The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into // manifests. Additionally, when an interval is specified ID3Timed Metadata @@ -370,7 +370,7 @@ type HlsManifestCreateOrUpdateParameters struct { // generated. Note that irrespective of this parameter, if any ID3 Timed Metadata // is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS // output. - ProgramDateTimeIntervalSeconds *int32 + ProgramDateTimeIntervalSeconds int32 } // An HTTP Live Streaming (HLS) packaging configuration. @@ -407,7 +407,7 @@ type HlsPackage struct { Encryption *HlsEncryption // When enabled, an I-Frame only stream will be included in the output. - IncludeIframeOnlyStream *bool + IncludeIframeOnlyStream bool // The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is // specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the @@ -415,7 +415,7 @@ type HlsPackage struct { PlaylistType PlaylistType // Time window (in seconds) contained in each parent manifest. - PlaylistWindowSeconds *int32 + PlaylistWindowSeconds int32 // The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into // manifests. Additionally, when an interval is specified ID3Timed Metadata @@ -425,17 +425,17 @@ type HlsPackage struct { // generated. Note that irrespective of this parameter, if any ID3 Timed Metadata // is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS // output. - ProgramDateTimeIntervalSeconds *int32 + ProgramDateTimeIntervalSeconds int32 // Duration (in seconds) of each fragment. Actual fragments will be rounded to the // nearest multiple of the source fragment duration. - SegmentDurationSeconds *int32 + SegmentDurationSeconds int32 // A StreamSelection configuration. StreamSelection *StreamSelection // When enabled, audio streams will be placed in rendition groups in the output. - UseAudioRenditionGroup *bool + UseAudioRenditionGroup bool } // An endpoint for ingesting source content for a Channel. @@ -478,10 +478,10 @@ type MssPackage struct { Encryption *MssEncryption // The time window (in seconds) contained in each manifest. - ManifestWindowSeconds *int32 + ManifestWindowSeconds int32 // The duration (in seconds) of each segment. - SegmentDurationSeconds *int32 + SegmentDurationSeconds int32 // A StreamSelection configuration. StreamSelection *StreamSelection @@ -529,21 +529,21 @@ type OriginEndpoint struct { // Maximum duration (seconds) of content to retain for startover playback. If not // specified, startover playback will be disabled for the OriginEndpoint. - StartoverWindowSeconds *int32 + StartoverWindowSeconds int32 // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Amount of delay (seconds) to enforce on the playback of live content. If not // specified, there will be no time delay in effect for the OriginEndpoint. - TimeDelaySeconds *int32 + TimeDelaySeconds int32 // The URL of the packaged OriginEndpoint for consumption. Url *string // A list of source IP CIDR blocks that will be allowed to access the // OriginEndpoint. - Whitelist []*string + Whitelist []string } // Configuration parameters for where in an S3 bucket to place the harvested @@ -585,7 +585,7 @@ type SpekeKeyProvider struct { // The system IDs to include in key requests. // // This member is required. - SystemIds []*string + SystemIds []string // The URL of the external key provider service. // @@ -602,10 +602,10 @@ type SpekeKeyProvider struct { type StreamSelection struct { // The maximum video bitrate (bps) to include in output. - MaxVideoBitsPerSecond *int32 + MaxVideoBitsPerSecond int32 // The minimum video bitrate (bps) to include in output. - MinVideoBitsPerSecond *int32 + MinVideoBitsPerSecond int32 // A directive that determines the order of streams in the output. StreamOrder StreamOrder diff --git a/service/mediapackage/validators.go b/service/mediapackage/validators.go index 2a77ea85e10..a3c2137353a 100644 --- a/service/mediapackage/validators.go +++ b/service/mediapackage/validators.go @@ -394,13 +394,13 @@ func addOpUpdateOriginEndpointValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpUpdateOriginEndpoint{}, middleware.After) } -func validate__listOfHlsManifestCreateOrUpdateParameters(v []*types.HlsManifestCreateOrUpdateParameters) error { +func validate__listOfHlsManifestCreateOrUpdateParameters(v []types.HlsManifestCreateOrUpdateParameters) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfHlsManifestCreateOrUpdateParameters"} for i := range v { - if err := validateHlsManifestCreateOrUpdateParameters(v[i]); err != nil { + if err := validateHlsManifestCreateOrUpdateParameters(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/mediapackagevod/api_op_CreateAsset.go b/service/mediapackagevod/api_op_CreateAsset.go index 5d7e8690b2a..cf8ec618ae4 100644 --- a/service/mediapackagevod/api_op_CreateAsset.go +++ b/service/mediapackagevod/api_op_CreateAsset.go @@ -54,7 +54,7 @@ type CreateAssetInput struct { ResourceId *string // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string } type CreateAssetOutput struct { @@ -66,7 +66,7 @@ type CreateAssetOutput struct { CreatedAt *string // The list of egress endpoints available for the Asset. - EgressEndpoints []*types.EgressEndpoint + EgressEndpoints []types.EgressEndpoint // The unique identifier for the Asset. Id *string @@ -84,7 +84,7 @@ type CreateAssetOutput struct { SourceRoleArn *string // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackagevod/api_op_CreatePackagingConfiguration.go b/service/mediapackagevod/api_op_CreatePackagingConfiguration.go index 8a6f951a925..503bbf68c5f 100644 --- a/service/mediapackagevod/api_op_CreatePackagingConfiguration.go +++ b/service/mediapackagevod/api_op_CreatePackagingConfiguration.go @@ -53,7 +53,7 @@ type CreatePackagingConfigurationInput struct { MssPackage *types.MssPackage // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string } type CreatePackagingConfigurationOutput struct { @@ -80,7 +80,7 @@ type CreatePackagingConfigurationOutput struct { PackagingGroupId *string // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackagevod/api_op_CreatePackagingGroup.go b/service/mediapackagevod/api_op_CreatePackagingGroup.go index 6b20a0fa1cd..25410dbb8ad 100644 --- a/service/mediapackagevod/api_op_CreatePackagingGroup.go +++ b/service/mediapackagevod/api_op_CreatePackagingGroup.go @@ -39,7 +39,7 @@ type CreatePackagingGroupInput struct { Authorization *types.Authorization // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string } type CreatePackagingGroupOutput struct { @@ -57,7 +57,7 @@ type CreatePackagingGroupOutput struct { Id *string // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackagevod/api_op_DescribeAsset.go b/service/mediapackagevod/api_op_DescribeAsset.go index 2cc18d3b786..cd78c88626d 100644 --- a/service/mediapackagevod/api_op_DescribeAsset.go +++ b/service/mediapackagevod/api_op_DescribeAsset.go @@ -44,7 +44,7 @@ type DescribeAssetOutput struct { CreatedAt *string // The list of egress endpoints available for the Asset. - EgressEndpoints []*types.EgressEndpoint + EgressEndpoints []types.EgressEndpoint // The unique identifier for the Asset. Id *string @@ -62,7 +62,7 @@ type DescribeAssetOutput struct { SourceRoleArn *string // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackagevod/api_op_DescribePackagingConfiguration.go b/service/mediapackagevod/api_op_DescribePackagingConfiguration.go index d3df0df2dba..f48e7fa4274 100644 --- a/service/mediapackagevod/api_op_DescribePackagingConfiguration.go +++ b/service/mediapackagevod/api_op_DescribePackagingConfiguration.go @@ -59,7 +59,7 @@ type DescribePackagingConfigurationOutput struct { PackagingGroupId *string // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackagevod/api_op_DescribePackagingGroup.go b/service/mediapackagevod/api_op_DescribePackagingGroup.go index 84edf2b159f..714e0a837eb 100644 --- a/service/mediapackagevod/api_op_DescribePackagingGroup.go +++ b/service/mediapackagevod/api_op_DescribePackagingGroup.go @@ -50,7 +50,7 @@ type DescribePackagingGroupOutput struct { Id *string // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackagevod/api_op_ListAssets.go b/service/mediapackagevod/api_op_ListAssets.go index 0de01470ecf..a4b2f244d0b 100644 --- a/service/mediapackagevod/api_op_ListAssets.go +++ b/service/mediapackagevod/api_op_ListAssets.go @@ -30,7 +30,7 @@ func (c *Client) ListAssets(ctx context.Context, params *ListAssetsInput, optFns type ListAssetsInput struct { // Upper bound on number of records to return. - MaxResults *int32 + MaxResults int32 // A token used to resume pagination from the end of a previous request. NextToken *string @@ -42,7 +42,7 @@ type ListAssetsInput struct { type ListAssetsOutput struct { // A list of MediaPackage VOD Asset resources. - Assets []*types.AssetShallow + Assets []types.AssetShallow // A token that can be used to resume pagination from the end of the collection. NextToken *string diff --git a/service/mediapackagevod/api_op_ListPackagingConfigurations.go b/service/mediapackagevod/api_op_ListPackagingConfigurations.go index bcd316c4116..2e8d389c116 100644 --- a/service/mediapackagevod/api_op_ListPackagingConfigurations.go +++ b/service/mediapackagevod/api_op_ListPackagingConfigurations.go @@ -30,7 +30,7 @@ func (c *Client) ListPackagingConfigurations(ctx context.Context, params *ListPa type ListPackagingConfigurationsInput struct { // Upper bound on number of records to return. - MaxResults *int32 + MaxResults int32 // A token used to resume pagination from the end of a previous request. NextToken *string @@ -46,7 +46,7 @@ type ListPackagingConfigurationsOutput struct { NextToken *string // A list of MediaPackage VOD PackagingConfiguration resources. - PackagingConfigurations []*types.PackagingConfiguration + PackagingConfigurations []types.PackagingConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackagevod/api_op_ListPackagingGroups.go b/service/mediapackagevod/api_op_ListPackagingGroups.go index eb2561cd510..28a270c62e0 100644 --- a/service/mediapackagevod/api_op_ListPackagingGroups.go +++ b/service/mediapackagevod/api_op_ListPackagingGroups.go @@ -30,7 +30,7 @@ func (c *Client) ListPackagingGroups(ctx context.Context, params *ListPackagingG type ListPackagingGroupsInput struct { // Upper bound on number of records to return. - MaxResults *int32 + MaxResults int32 // A token used to resume pagination from the end of a previous request. NextToken *string @@ -42,7 +42,7 @@ type ListPackagingGroupsOutput struct { NextToken *string // A list of MediaPackage VOD PackagingGroup resources. - PackagingGroups []*types.PackagingGroup + PackagingGroups []types.PackagingGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackagevod/api_op_ListTagsForResource.go b/service/mediapackagevod/api_op_ListTagsForResource.go index 9fbc50385ae..9dbce5a3af6 100644 --- a/service/mediapackagevod/api_op_ListTagsForResource.go +++ b/service/mediapackagevod/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackagevod/api_op_TagResource.go b/service/mediapackagevod/api_op_TagResource.go index 96e1a34065f..279b8982f5e 100644 --- a/service/mediapackagevod/api_op_TagResource.go +++ b/service/mediapackagevod/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // A collection of tags associated with a resource // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/mediapackagevod/api_op_UntagResource.go b/service/mediapackagevod/api_op_UntagResource.go index 5190a5ed2dc..a03872fbecd 100644 --- a/service/mediapackagevod/api_op_UntagResource.go +++ b/service/mediapackagevod/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // A comma-separated list of the tag keys to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/mediapackagevod/api_op_UpdatePackagingGroup.go b/service/mediapackagevod/api_op_UpdatePackagingGroup.go index 9bc75724066..3c783687d31 100644 --- a/service/mediapackagevod/api_op_UpdatePackagingGroup.go +++ b/service/mediapackagevod/api_op_UpdatePackagingGroup.go @@ -55,7 +55,7 @@ type UpdatePackagingGroupOutput struct { Id *string // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediapackagevod/deserializers.go b/service/mediapackagevod/deserializers.go index 08030212255..d1e4724f345 100644 --- a/service/mediapackagevod/deserializers.go +++ b/service/mediapackagevod/deserializers.go @@ -172,7 +172,7 @@ func awsRestjson1_deserializeOpDocumentCreateAssetOutput(v **CreateAssetOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -181,7 +181,7 @@ func awsRestjson1_deserializeOpDocumentCreateAssetOutput(v **CreateAssetOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "egressEndpoints": @@ -195,7 +195,7 @@ func awsRestjson1_deserializeOpDocumentCreateAssetOutput(v **CreateAssetOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "packagingGroupId": @@ -204,7 +204,7 @@ func awsRestjson1_deserializeOpDocumentCreateAssetOutput(v **CreateAssetOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PackagingGroupId = &jtv + sv.PackagingGroupId = ptr.String(jtv) } case "resourceId": @@ -213,7 +213,7 @@ func awsRestjson1_deserializeOpDocumentCreateAssetOutput(v **CreateAssetOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "sourceArn": @@ -222,7 +222,7 @@ func awsRestjson1_deserializeOpDocumentCreateAssetOutput(v **CreateAssetOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } case "sourceRoleArn": @@ -231,7 +231,7 @@ func awsRestjson1_deserializeOpDocumentCreateAssetOutput(v **CreateAssetOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceRoleArn = &jtv + sv.SourceRoleArn = ptr.String(jtv) } case "tags": @@ -402,7 +402,7 @@ func awsRestjson1_deserializeOpDocumentCreatePackagingConfigurationOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "cmafPackage": @@ -426,7 +426,7 @@ func awsRestjson1_deserializeOpDocumentCreatePackagingConfigurationOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "mssPackage": @@ -440,7 +440,7 @@ func awsRestjson1_deserializeOpDocumentCreatePackagingConfigurationOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PackagingGroupId = &jtv + sv.PackagingGroupId = ptr.String(jtv) } case "tags": @@ -611,7 +611,7 @@ func awsRestjson1_deserializeOpDocumentCreatePackagingGroupOutput(v **CreatePack if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authorization": @@ -625,7 +625,7 @@ func awsRestjson1_deserializeOpDocumentCreatePackagingGroupOutput(v **CreatePack if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "id": @@ -634,7 +634,7 @@ func awsRestjson1_deserializeOpDocumentCreatePackagingGroupOutput(v **CreatePack if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "tags": @@ -1099,7 +1099,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetOutput(v **DescribeAssetOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -1108,7 +1108,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetOutput(v **DescribeAssetOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "egressEndpoints": @@ -1122,7 +1122,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetOutput(v **DescribeAssetOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "packagingGroupId": @@ -1131,7 +1131,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetOutput(v **DescribeAssetOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PackagingGroupId = &jtv + sv.PackagingGroupId = ptr.String(jtv) } case "resourceId": @@ -1140,7 +1140,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetOutput(v **DescribeAssetOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "sourceArn": @@ -1149,7 +1149,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetOutput(v **DescribeAssetOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } case "sourceRoleArn": @@ -1158,7 +1158,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAssetOutput(v **DescribeAssetOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceRoleArn = &jtv + sv.SourceRoleArn = ptr.String(jtv) } case "tags": @@ -1329,7 +1329,7 @@ func awsRestjson1_deserializeOpDocumentDescribePackagingConfigurationOutput(v ** if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "cmafPackage": @@ -1353,7 +1353,7 @@ func awsRestjson1_deserializeOpDocumentDescribePackagingConfigurationOutput(v ** if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "mssPackage": @@ -1367,7 +1367,7 @@ func awsRestjson1_deserializeOpDocumentDescribePackagingConfigurationOutput(v ** if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PackagingGroupId = &jtv + sv.PackagingGroupId = ptr.String(jtv) } case "tags": @@ -1538,7 +1538,7 @@ func awsRestjson1_deserializeOpDocumentDescribePackagingGroupOutput(v **Describe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authorization": @@ -1552,7 +1552,7 @@ func awsRestjson1_deserializeOpDocumentDescribePackagingGroupOutput(v **Describe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "id": @@ -1561,7 +1561,7 @@ func awsRestjson1_deserializeOpDocumentDescribePackagingGroupOutput(v **Describe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "tags": @@ -1737,7 +1737,7 @@ func awsRestjson1_deserializeOpDocumentListAssetsOutput(v **ListAssetsOutput, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1903,7 +1903,7 @@ func awsRestjson1_deserializeOpDocumentListPackagingConfigurationsOutput(v **Lis if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "packagingConfigurations": @@ -2074,7 +2074,7 @@ func awsRestjson1_deserializeOpDocumentListPackagingGroupsOutput(v **ListPackagi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "packagingGroups": @@ -2549,7 +2549,7 @@ func awsRestjson1_deserializeOpDocumentUpdatePackagingGroupOutput(v **UpdatePack if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authorization": @@ -2563,7 +2563,7 @@ func awsRestjson1_deserializeOpDocumentUpdatePackagingGroupOutput(v **UpdatePack if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "id": @@ -2572,7 +2572,7 @@ func awsRestjson1_deserializeOpDocumentUpdatePackagingGroupOutput(v **UpdatePack if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "tags": @@ -2841,7 +2841,7 @@ func awsRestjson1_deserializeDocument__listOf__PeriodTriggersElement(v *[]types. return nil } -func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2854,21 +2854,21 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -2877,7 +2877,7 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return nil } -func awsRestjson1_deserializeDocument__listOfAssetShallow(v *[]*types.AssetShallow, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfAssetShallow(v *[]types.AssetShallow, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2890,18 +2890,20 @@ func awsRestjson1_deserializeDocument__listOfAssetShallow(v *[]*types.AssetShall return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssetShallow + var cv []types.AssetShallow if *v == nil { - cv = []*types.AssetShallow{} + cv = []types.AssetShallow{} } else { cv = *v } for _, value := range shape { - var col *types.AssetShallow - if err := awsRestjson1_deserializeDocumentAssetShallow(&col, value); err != nil { + var col types.AssetShallow + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssetShallow(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2909,7 +2911,7 @@ func awsRestjson1_deserializeDocument__listOfAssetShallow(v *[]*types.AssetShall return nil } -func awsRestjson1_deserializeDocument__listOfDashManifest(v *[]*types.DashManifest, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfDashManifest(v *[]types.DashManifest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2922,18 +2924,20 @@ func awsRestjson1_deserializeDocument__listOfDashManifest(v *[]*types.DashManife return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DashManifest + var cv []types.DashManifest if *v == nil { - cv = []*types.DashManifest{} + cv = []types.DashManifest{} } else { cv = *v } for _, value := range shape { - var col *types.DashManifest - if err := awsRestjson1_deserializeDocumentDashManifest(&col, value); err != nil { + var col types.DashManifest + destAddr := &col + if err := awsRestjson1_deserializeDocumentDashManifest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2941,7 +2945,7 @@ func awsRestjson1_deserializeDocument__listOfDashManifest(v *[]*types.DashManife return nil } -func awsRestjson1_deserializeDocument__listOfEgressEndpoint(v *[]*types.EgressEndpoint, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfEgressEndpoint(v *[]types.EgressEndpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2954,18 +2958,20 @@ func awsRestjson1_deserializeDocument__listOfEgressEndpoint(v *[]*types.EgressEn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EgressEndpoint + var cv []types.EgressEndpoint if *v == nil { - cv = []*types.EgressEndpoint{} + cv = []types.EgressEndpoint{} } else { cv = *v } for _, value := range shape { - var col *types.EgressEndpoint - if err := awsRestjson1_deserializeDocumentEgressEndpoint(&col, value); err != nil { + var col types.EgressEndpoint + destAddr := &col + if err := awsRestjson1_deserializeDocumentEgressEndpoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2973,7 +2979,7 @@ func awsRestjson1_deserializeDocument__listOfEgressEndpoint(v *[]*types.EgressEn return nil } -func awsRestjson1_deserializeDocument__listOfHlsManifest(v *[]*types.HlsManifest, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfHlsManifest(v *[]types.HlsManifest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2986,18 +2992,20 @@ func awsRestjson1_deserializeDocument__listOfHlsManifest(v *[]*types.HlsManifest return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HlsManifest + var cv []types.HlsManifest if *v == nil { - cv = []*types.HlsManifest{} + cv = []types.HlsManifest{} } else { cv = *v } for _, value := range shape { - var col *types.HlsManifest - if err := awsRestjson1_deserializeDocumentHlsManifest(&col, value); err != nil { + var col types.HlsManifest + destAddr := &col + if err := awsRestjson1_deserializeDocumentHlsManifest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3005,7 +3013,7 @@ func awsRestjson1_deserializeDocument__listOfHlsManifest(v *[]*types.HlsManifest return nil } -func awsRestjson1_deserializeDocument__listOfMssManifest(v *[]*types.MssManifest, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfMssManifest(v *[]types.MssManifest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3018,18 +3026,20 @@ func awsRestjson1_deserializeDocument__listOfMssManifest(v *[]*types.MssManifest return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MssManifest + var cv []types.MssManifest if *v == nil { - cv = []*types.MssManifest{} + cv = []types.MssManifest{} } else { cv = *v } for _, value := range shape { - var col *types.MssManifest - if err := awsRestjson1_deserializeDocumentMssManifest(&col, value); err != nil { + var col types.MssManifest + destAddr := &col + if err := awsRestjson1_deserializeDocumentMssManifest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3037,7 +3047,7 @@ func awsRestjson1_deserializeDocument__listOfMssManifest(v *[]*types.MssManifest return nil } -func awsRestjson1_deserializeDocument__listOfPackagingConfiguration(v *[]*types.PackagingConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfPackagingConfiguration(v *[]types.PackagingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3050,18 +3060,20 @@ func awsRestjson1_deserializeDocument__listOfPackagingConfiguration(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PackagingConfiguration + var cv []types.PackagingConfiguration if *v == nil { - cv = []*types.PackagingConfiguration{} + cv = []types.PackagingConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.PackagingConfiguration - if err := awsRestjson1_deserializeDocumentPackagingConfiguration(&col, value); err != nil { + var col types.PackagingConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentPackagingConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3069,7 +3081,7 @@ func awsRestjson1_deserializeDocument__listOfPackagingConfiguration(v *[]*types. return nil } -func awsRestjson1_deserializeDocument__listOfPackagingGroup(v *[]*types.PackagingGroup, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfPackagingGroup(v *[]types.PackagingGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3082,18 +3094,20 @@ func awsRestjson1_deserializeDocument__listOfPackagingGroup(v *[]*types.Packagin return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PackagingGroup + var cv []types.PackagingGroup if *v == nil { - cv = []*types.PackagingGroup{} + cv = []types.PackagingGroup{} } else { cv = *v } for _, value := range shape { - var col *types.PackagingGroup - if err := awsRestjson1_deserializeDocumentPackagingGroup(&col, value); err != nil { + var col types.PackagingGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentPackagingGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3101,7 +3115,7 @@ func awsRestjson1_deserializeDocument__listOfPackagingGroup(v *[]*types.Packagin return nil } -func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3114,21 +3128,21 @@ func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -3165,7 +3179,7 @@ func awsRestjson1_deserializeDocumentAssetShallow(v **types.AssetShallow, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -3174,7 +3188,7 @@ func awsRestjson1_deserializeDocumentAssetShallow(v **types.AssetShallow, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "id": @@ -3183,7 +3197,7 @@ func awsRestjson1_deserializeDocumentAssetShallow(v **types.AssetShallow, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "packagingGroupId": @@ -3192,7 +3206,7 @@ func awsRestjson1_deserializeDocumentAssetShallow(v **types.AssetShallow, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PackagingGroupId = &jtv + sv.PackagingGroupId = ptr.String(jtv) } case "resourceId": @@ -3201,7 +3215,7 @@ func awsRestjson1_deserializeDocumentAssetShallow(v **types.AssetShallow, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "sourceArn": @@ -3210,7 +3224,7 @@ func awsRestjson1_deserializeDocumentAssetShallow(v **types.AssetShallow, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } case "sourceRoleArn": @@ -3219,7 +3233,7 @@ func awsRestjson1_deserializeDocumentAssetShallow(v **types.AssetShallow, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceRoleArn = &jtv + sv.SourceRoleArn = ptr.String(jtv) } case "tags": @@ -3264,7 +3278,7 @@ func awsRestjson1_deserializeDocumentAuthorization(v **types.Authorization, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CdnIdentifierSecret = &jtv + sv.CdnIdentifierSecret = ptr.String(jtv) } case "secretsRoleArn": @@ -3273,7 +3287,7 @@ func awsRestjson1_deserializeDocumentAuthorization(v **types.Authorization, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SecretsRoleArn = &jtv + sv.SecretsRoleArn = ptr.String(jtv) } default: @@ -3363,7 +3377,7 @@ func awsRestjson1_deserializeDocumentCmafPackage(v **types.CmafPackage, value in if err != nil { return err } - sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) + sv.SegmentDurationSeconds = int32(i64) } default: @@ -3448,7 +3462,7 @@ func awsRestjson1_deserializeDocumentDashManifest(v **types.DashManifest, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ManifestName = &jtv + sv.ManifestName = ptr.String(jtv) } case "minBufferTimeSeconds": @@ -3461,7 +3475,7 @@ func awsRestjson1_deserializeDocumentDashManifest(v **types.DashManifest, value if err != nil { return err } - sv.MinBufferTimeSeconds = ptr.Int32(int32(i64)) + sv.MinBufferTimeSeconds = int32(i64) } case "profile": @@ -3534,7 +3548,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if err != nil { return err } - sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) + sv.SegmentDurationSeconds = int32(i64) } case "segmentTemplateFormat": @@ -3583,7 +3597,7 @@ func awsRestjson1_deserializeDocumentEgressEndpoint(v **types.EgressEndpoint, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PackagingConfigurationId = &jtv + sv.PackagingConfigurationId = ptr.String(jtv) } case "url": @@ -3592,7 +3606,7 @@ func awsRestjson1_deserializeDocumentEgressEndpoint(v **types.EgressEndpoint, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -3632,7 +3646,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3672,7 +3686,7 @@ func awsRestjson1_deserializeDocumentHlsEncryption(v **types.HlsEncryption, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ConstantInitializationVector = &jtv + sv.ConstantInitializationVector = ptr.String(jtv) } case "encryptionMethod": @@ -3735,7 +3749,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IncludeIframeOnlyStream = &jtv + sv.IncludeIframeOnlyStream = jtv } case "manifestName": @@ -3744,7 +3758,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ManifestName = &jtv + sv.ManifestName = ptr.String(jtv) } case "programDateTimeIntervalSeconds": @@ -3757,7 +3771,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if err != nil { return err } - sv.ProgramDateTimeIntervalSeconds = ptr.Int32(int32(i64)) + sv.ProgramDateTimeIntervalSeconds = int32(i64) } case "repeatExtXKey": @@ -3766,7 +3780,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.RepeatExtXKey = &jtv + sv.RepeatExtXKey = jtv } case "streamSelection": @@ -3825,7 +3839,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if err != nil { return err } - sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) + sv.SegmentDurationSeconds = int32(i64) } case "useAudioRenditionGroup": @@ -3834,7 +3848,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.UseAudioRenditionGroup = &jtv + sv.UseAudioRenditionGroup = jtv } default: @@ -3874,7 +3888,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3950,7 +3964,7 @@ func awsRestjson1_deserializeDocumentMssManifest(v **types.MssManifest, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ManifestName = &jtv + sv.ManifestName = ptr.String(jtv) } case "streamSelection": @@ -4009,7 +4023,7 @@ func awsRestjson1_deserializeDocumentMssPackage(v **types.MssPackage, value inte if err != nil { return err } - sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) + sv.SegmentDurationSeconds = int32(i64) } default: @@ -4049,7 +4063,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4089,7 +4103,7 @@ func awsRestjson1_deserializeDocumentPackagingConfiguration(v **types.PackagingC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "cmafPackage": @@ -4113,7 +4127,7 @@ func awsRestjson1_deserializeDocumentPackagingConfiguration(v **types.PackagingC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "mssPackage": @@ -4127,7 +4141,7 @@ func awsRestjson1_deserializeDocumentPackagingConfiguration(v **types.PackagingC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PackagingGroupId = &jtv + sv.PackagingGroupId = ptr.String(jtv) } case "tags": @@ -4172,7 +4186,7 @@ func awsRestjson1_deserializeDocumentPackagingGroup(v **types.PackagingGroup, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authorization": @@ -4186,7 +4200,7 @@ func awsRestjson1_deserializeDocumentPackagingGroup(v **types.PackagingGroup, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "id": @@ -4195,7 +4209,7 @@ func awsRestjson1_deserializeDocumentPackagingGroup(v **types.PackagingGroup, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "tags": @@ -4240,7 +4254,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4280,7 +4294,7 @@ func awsRestjson1_deserializeDocumentSpekeKeyProvider(v **types.SpekeKeyProvider if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "systemIds": @@ -4294,7 +4308,7 @@ func awsRestjson1_deserializeDocumentSpekeKeyProvider(v **types.SpekeKeyProvider if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -4338,7 +4352,7 @@ func awsRestjson1_deserializeDocumentStreamSelection(v **types.StreamSelection, if err != nil { return err } - sv.MaxVideoBitsPerSecond = ptr.Int32(int32(i64)) + sv.MaxVideoBitsPerSecond = int32(i64) } case "minVideoBitsPerSecond": @@ -4351,7 +4365,7 @@ func awsRestjson1_deserializeDocumentStreamSelection(v **types.StreamSelection, if err != nil { return err } - sv.MinVideoBitsPerSecond = ptr.Int32(int32(i64)) + sv.MinVideoBitsPerSecond = int32(i64) } case "streamOrder": @@ -4372,7 +4386,7 @@ func awsRestjson1_deserializeDocumentStreamSelection(v **types.StreamSelection, return nil } -func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4385,21 +4399,21 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -4436,7 +4450,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4476,7 +4490,7 @@ func awsRestjson1_deserializeDocumentUnprocessableEntityException(v **types.Unpr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/mediapackagevod/go.mod b/service/mediapackagevod/go.mod index 2c28ddb68f8..8899714e595 100644 --- a/service/mediapackagevod/go.mod +++ b/service/mediapackagevod/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/mediapackagevod go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/mediapackagevod/serializers.go b/service/mediapackagevod/serializers.go index 5fdcf00dcea..6c7e88c2b50 100644 --- a/service/mediapackagevod/serializers.go +++ b/service/mediapackagevod/serializers.go @@ -365,13 +365,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAssetInput(v *DeleteAssetInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -431,13 +428,10 @@ func awsRestjson1_serializeOpHttpBindingsDeletePackagingConfigurationInput(v *De return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -497,13 +491,10 @@ func awsRestjson1_serializeOpHttpBindingsDeletePackagingGroupInput(v *DeletePack return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -563,13 +554,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAssetInput(v *DescribeAssetInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -629,13 +617,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribePackagingConfigurationInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -695,13 +680,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribePackagingGroupInput(v *Describe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -761,8 +743,8 @@ func awsRestjson1_serializeOpHttpBindingsListAssetsInput(v *ListAssetsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -827,8 +809,8 @@ func awsRestjson1_serializeOpHttpBindingsListPackagingConfigurationsInput(v *Lis return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -893,8 +875,8 @@ func awsRestjson1_serializeOpHttpBindingsListPackagingGroupsInput(v *ListPackagi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -955,13 +937,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1032,13 +1011,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1112,13 +1088,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1126,10 +1099,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1198,13 +1168,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdatePackagingGroupInput(v *UpdatePack return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1238,83 +1205,63 @@ func awsRestjson1_serializeDocument__listOf__PeriodTriggersElement(v []types.Per return nil } -func awsRestjson1_serializeDocument__listOf__string(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOfDashManifest(v []*types.DashManifest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfDashManifest(v []types.DashManifest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDashManifest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDashManifest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfHlsManifest(v []*types.HlsManifest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfHlsManifest(v []types.HlsManifest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentHlsManifest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentHlsManifest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfMssManifest(v []*types.MssManifest, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfMssManifest(v []types.MssManifest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMssManifest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMssManifest(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__mapOf__string(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__mapOf__string(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1368,9 +1315,9 @@ func awsRestjson1_serializeDocumentCmafPackage(v *types.CmafPackage, value smith } } - if v.SegmentDurationSeconds != nil { + if v.SegmentDurationSeconds != 0 { ok := object.Key("segmentDurationSeconds") - ok.Integer(*v.SegmentDurationSeconds) + ok.Integer(v.SegmentDurationSeconds) } return nil @@ -1404,9 +1351,9 @@ func awsRestjson1_serializeDocumentDashManifest(v *types.DashManifest, value smi ok.String(*v.ManifestName) } - if v.MinBufferTimeSeconds != nil { + if v.MinBufferTimeSeconds != 0 { ok := object.Key("minBufferTimeSeconds") - ok.Integer(*v.MinBufferTimeSeconds) + ok.Integer(v.MinBufferTimeSeconds) } if len(v.Profile) > 0 { @@ -1449,9 +1396,9 @@ func awsRestjson1_serializeDocumentDashPackage(v *types.DashPackage, value smith } } - if v.SegmentDurationSeconds != nil { + if v.SegmentDurationSeconds != 0 { ok := object.Key("segmentDurationSeconds") - ok.Integer(*v.SegmentDurationSeconds) + ok.Integer(v.SegmentDurationSeconds) } if len(v.SegmentTemplateFormat) > 0 { @@ -1495,9 +1442,9 @@ func awsRestjson1_serializeDocumentHlsManifest(v *types.HlsManifest, value smith ok.String(string(v.AdMarkers)) } - if v.IncludeIframeOnlyStream != nil { + if v.IncludeIframeOnlyStream { ok := object.Key("includeIframeOnlyStream") - ok.Boolean(*v.IncludeIframeOnlyStream) + ok.Boolean(v.IncludeIframeOnlyStream) } if v.ManifestName != nil { @@ -1505,14 +1452,14 @@ func awsRestjson1_serializeDocumentHlsManifest(v *types.HlsManifest, value smith ok.String(*v.ManifestName) } - if v.ProgramDateTimeIntervalSeconds != nil { + if v.ProgramDateTimeIntervalSeconds != 0 { ok := object.Key("programDateTimeIntervalSeconds") - ok.Integer(*v.ProgramDateTimeIntervalSeconds) + ok.Integer(v.ProgramDateTimeIntervalSeconds) } - if v.RepeatExtXKey != nil { + if v.RepeatExtXKey { ok := object.Key("repeatExtXKey") - ok.Boolean(*v.RepeatExtXKey) + ok.Boolean(v.RepeatExtXKey) } if v.StreamSelection != nil { @@ -1543,14 +1490,14 @@ func awsRestjson1_serializeDocumentHlsPackage(v *types.HlsPackage, value smithyj } } - if v.SegmentDurationSeconds != nil { + if v.SegmentDurationSeconds != 0 { ok := object.Key("segmentDurationSeconds") - ok.Integer(*v.SegmentDurationSeconds) + ok.Integer(v.SegmentDurationSeconds) } - if v.UseAudioRenditionGroup != nil { + if v.UseAudioRenditionGroup { ok := object.Key("useAudioRenditionGroup") - ok.Boolean(*v.UseAudioRenditionGroup) + ok.Boolean(v.UseAudioRenditionGroup) } return nil @@ -1607,9 +1554,9 @@ func awsRestjson1_serializeDocumentMssPackage(v *types.MssPackage, value smithyj } } - if v.SegmentDurationSeconds != nil { + if v.SegmentDurationSeconds != 0 { ok := object.Key("segmentDurationSeconds") - ok.Integer(*v.SegmentDurationSeconds) + ok.Integer(v.SegmentDurationSeconds) } return nil @@ -1643,14 +1590,14 @@ func awsRestjson1_serializeDocumentStreamSelection(v *types.StreamSelection, val object := value.Object() defer object.Close() - if v.MaxVideoBitsPerSecond != nil { + if v.MaxVideoBitsPerSecond != 0 { ok := object.Key("maxVideoBitsPerSecond") - ok.Integer(*v.MaxVideoBitsPerSecond) + ok.Integer(v.MaxVideoBitsPerSecond) } - if v.MinVideoBitsPerSecond != nil { + if v.MinVideoBitsPerSecond != 0 { ok := object.Key("minVideoBitsPerSecond") - ok.Integer(*v.MinVideoBitsPerSecond) + ok.Integer(v.MinVideoBitsPerSecond) } if len(v.StreamOrder) > 0 { @@ -1661,17 +1608,13 @@ func awsRestjson1_serializeDocumentStreamSelection(v *types.StreamSelection, val return nil } -func awsRestjson1_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/mediapackagevod/types/types.go b/service/mediapackagevod/types/types.go index bcb08b0c341..e4fb30acb90 100644 --- a/service/mediapackagevod/types/types.go +++ b/service/mediapackagevod/types/types.go @@ -27,7 +27,7 @@ type AssetShallow struct { SourceRoleArn *string // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string } // CDN Authorization credentials @@ -62,14 +62,14 @@ type CmafPackage struct { // A list of HLS manifest configurations. // // This member is required. - HlsManifests []*HlsManifest + HlsManifests []HlsManifest // A CMAF encryption configuration. Encryption *CmafEncryption // Duration (in seconds) of each fragment. Actual fragments will be rounded to the // nearest multiple of the source fragment duration. - SegmentDurationSeconds *int32 + SegmentDurationSeconds int32 } // A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration. @@ -96,7 +96,7 @@ type DashManifest struct { // Minimum duration (in seconds) that a player will buffer media before starting // the presentation. - MinBufferTimeSeconds *int32 + MinBufferTimeSeconds int32 // The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to // "HBBTV_1_5", HbbTV 1.5 compliant output is enabled. @@ -112,7 +112,7 @@ type DashPackage struct { // A list of DASH manifest configurations. // // This member is required. - DashManifests []*DashManifest + DashManifests []DashManifest // A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration. Encryption *DashEncryption @@ -126,7 +126,7 @@ type DashPackage struct { // Duration (in seconds) of each segment. Actual segments will be rounded to the // nearest multiple of the source segment duration. - SegmentDurationSeconds *int32 + SegmentDurationSeconds int32 // Determines the type of SegmentTemplate included in the Media Presentation // Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is @@ -176,7 +176,7 @@ type HlsManifest struct { AdMarkers AdMarkers // When enabled, an I-Frame only stream will be included in the output. - IncludeIframeOnlyStream *bool + IncludeIframeOnlyStream bool // An optional string to include in the name of the manifest. ManifestName *string @@ -189,10 +189,10 @@ type HlsManifest struct { // generated. Note that irrespective of this parameter, if any ID3 Timed Metadata // is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS // output. - ProgramDateTimeIntervalSeconds *int32 + ProgramDateTimeIntervalSeconds int32 // When enabled, the EXT-X-KEY tag will be repeated in output manifests. - RepeatExtXKey *bool + RepeatExtXKey bool // A StreamSelection configuration. StreamSelection *StreamSelection @@ -204,17 +204,17 @@ type HlsPackage struct { // A list of HLS manifest configurations. // // This member is required. - HlsManifests []*HlsManifest + HlsManifests []HlsManifest // An HTTP Live Streaming (HLS) encryption configuration. Encryption *HlsEncryption // Duration (in seconds) of each fragment. Actual fragments will be rounded to the // nearest multiple of the source fragment duration. - SegmentDurationSeconds *int32 + SegmentDurationSeconds int32 // When enabled, audio streams will be placed in rendition groups in the output. - UseAudioRenditionGroup *bool + UseAudioRenditionGroup bool } // A Microsoft Smooth Streaming (MSS) encryption configuration. @@ -243,13 +243,13 @@ type MssPackage struct { // A list of MSS manifest configurations. // // This member is required. - MssManifests []*MssManifest + MssManifests []MssManifest // A Microsoft Smooth Streaming (MSS) encryption configuration. Encryption *MssEncryption // The duration (in seconds) of each segment. - SegmentDurationSeconds *int32 + SegmentDurationSeconds int32 } // A MediaPackage VOD PackagingConfiguration resource. @@ -277,7 +277,7 @@ type PackagingConfiguration struct { PackagingGroupId *string // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string } // A MediaPackage VOD PackagingGroup resource. @@ -296,7 +296,7 @@ type PackagingGroup struct { Id *string // A collection of tags associated with a resource - Tags map[string]*string + Tags map[string]string } // A configuration for accessing an external Secure Packager and Encoder Key @@ -312,7 +312,7 @@ type SpekeKeyProvider struct { // The system IDs to include in key requests. // // This member is required. - SystemIds []*string + SystemIds []string // The URL of the external key provider service. // @@ -324,10 +324,10 @@ type SpekeKeyProvider struct { type StreamSelection struct { // The maximum video bitrate (bps) to include in output. - MaxVideoBitsPerSecond *int32 + MaxVideoBitsPerSecond int32 // The minimum video bitrate (bps) to include in output. - MinVideoBitsPerSecond *int32 + MinVideoBitsPerSecond int32 // A directive that determines the order of streams in the output. StreamOrder StreamOrder diff --git a/service/mediastore/api_op_CreateContainer.go b/service/mediastore/api_op_CreateContainer.go index 869bc41fb5b..808018cf5fb 100644 --- a/service/mediastore/api_op_CreateContainer.go +++ b/service/mediastore/api_op_CreateContainer.go @@ -45,7 +45,7 @@ type CreateContainerInput struct { // container. For more information about tagging, including naming and usage // conventions, see Tagging Resources in MediaStore // (https://docs.aws.amazon.com/mediastore/latest/ug/tagging.html). - Tags []*types.Tag + Tags []types.Tag } type CreateContainerOutput struct { diff --git a/service/mediastore/api_op_GetCorsPolicy.go b/service/mediastore/api_op_GetCorsPolicy.go index 7d9ee04264e..220b8fc113a 100644 --- a/service/mediastore/api_op_GetCorsPolicy.go +++ b/service/mediastore/api_op_GetCorsPolicy.go @@ -43,7 +43,7 @@ type GetCorsPolicyOutput struct { // The CORS policy assigned to the container. // // This member is required. - CorsPolicy []*types.CorsRule + CorsPolicy []types.CorsRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediastore/api_op_ListContainers.go b/service/mediastore/api_op_ListContainers.go index 0168c56d890..550f8b82e31 100644 --- a/service/mediastore/api_op_ListContainers.go +++ b/service/mediastore/api_op_ListContainers.go @@ -52,7 +52,7 @@ type ListContainersOutput struct { // The names of the containers. // // This member is required. - Containers []*types.Container + Containers []types.Container // NextToken is the token to use in the next call to ListContainers. This token is // returned only if you included the MaxResults tag in the original command, and diff --git a/service/mediastore/api_op_ListTagsForResource.go b/service/mediastore/api_op_ListTagsForResource.go index 7fe06763d0d..b31dfa65c7e 100644 --- a/service/mediastore/api_op_ListTagsForResource.go +++ b/service/mediastore/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // An array of key:value pairs that are assigned to the container. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediastore/api_op_PutCorsPolicy.go b/service/mediastore/api_op_PutCorsPolicy.go index 4242f6e5412..77ab7403b4d 100644 --- a/service/mediastore/api_op_PutCorsPolicy.go +++ b/service/mediastore/api_op_PutCorsPolicy.go @@ -48,7 +48,7 @@ type PutCorsPolicyInput struct { // The CORS policy to apply to the container. // // This member is required. - CorsPolicy []*types.CorsRule + CorsPolicy []types.CorsRule } type PutCorsPolicyOutput struct { diff --git a/service/mediastore/api_op_TagResource.go b/service/mediastore/api_op_TagResource.go index 1e6dc941303..493779383de 100644 --- a/service/mediastore/api_op_TagResource.go +++ b/service/mediastore/api_op_TagResource.go @@ -49,7 +49,7 @@ type TagResourceInput struct { // priority:Medium, and type:Contract. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/mediastore/api_op_UntagResource.go b/service/mediastore/api_op_UntagResource.go index c5869954eed..3369aa1c46c 100644 --- a/service/mediastore/api_op_UntagResource.go +++ b/service/mediastore/api_op_UntagResource.go @@ -40,7 +40,7 @@ type UntagResourceInput struct { // specify the key for the tag that you want to remove (priority). // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/mediastore/deserializers.go b/service/mediastore/deserializers.go index 116dd4204b1..825d2b2431d 100644 --- a/service/mediastore/deserializers.go +++ b/service/mediastore/deserializers.go @@ -2701,7 +2701,7 @@ func awsAwsjson11_deserializeErrorPolicyNotFoundException(response *smithyhttp.R return output } -func awsAwsjson11_deserializeDocumentAllowedHeaders(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAllowedHeaders(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2714,21 +2714,21 @@ func awsAwsjson11_deserializeDocumentAllowedHeaders(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Header to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2773,7 +2773,7 @@ func awsAwsjson11_deserializeDocumentAllowedMethods(v *[]types.MethodName, value return nil } -func awsAwsjson11_deserializeDocumentAllowedOrigins(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAllowedOrigins(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2786,21 +2786,21 @@ func awsAwsjson11_deserializeDocumentAllowedOrigins(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Origin to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2837,7 +2837,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected ContainerAccessLoggingEnabled to be of type *bool, got %T instead", value) } - sv.AccessLoggingEnabled = &jtv + sv.AccessLoggingEnabled = ptr.Bool(jtv) } case "ARN": @@ -2846,7 +2846,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected ContainerARN to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "CreationTime": @@ -2868,7 +2868,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected Endpoint to be of type string, got %T instead", value) } - sv.Endpoint = &jtv + sv.Endpoint = ptr.String(jtv) } case "Name": @@ -2877,7 +2877,7 @@ func awsAwsjson11_deserializeDocumentContainer(v **types.Container, value interf if !ok { return fmt.Errorf("expected ContainerName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -2926,7 +2926,7 @@ func awsAwsjson11_deserializeDocumentContainerInUseException(v **types.Container if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2938,7 +2938,7 @@ func awsAwsjson11_deserializeDocumentContainerInUseException(v **types.Container return nil } -func awsAwsjson11_deserializeDocumentContainerList(v *[]*types.Container, value interface{}) error { +func awsAwsjson11_deserializeDocumentContainerList(v *[]types.Container, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2951,18 +2951,20 @@ func awsAwsjson11_deserializeDocumentContainerList(v *[]*types.Container, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Container + var cv []types.Container if *v == nil { - cv = []*types.Container{} + cv = []types.Container{} } else { cv = *v } for _, value := range shape { - var col *types.Container - if err := awsAwsjson11_deserializeDocumentContainer(&col, value); err != nil { + var col types.Container + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContainer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2998,7 +3000,7 @@ func awsAwsjson11_deserializeDocumentContainerNotFoundException(v **types.Contai if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3010,7 +3012,7 @@ func awsAwsjson11_deserializeDocumentContainerNotFoundException(v **types.Contai return nil } -func awsAwsjson11_deserializeDocumentCorsPolicy(v *[]*types.CorsRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentCorsPolicy(v *[]types.CorsRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3023,18 +3025,20 @@ func awsAwsjson11_deserializeDocumentCorsPolicy(v *[]*types.CorsRule, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CorsRule + var cv []types.CorsRule if *v == nil { - cv = []*types.CorsRule{} + cv = []types.CorsRule{} } else { cv = *v } for _, value := range shape { - var col *types.CorsRule - if err := awsAwsjson11_deserializeDocumentCorsRule(&col, value); err != nil { + var col types.CorsRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCorsRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3070,7 +3074,7 @@ func awsAwsjson11_deserializeDocumentCorsPolicyNotFoundException(v **types.CorsP if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3134,7 +3138,7 @@ func awsAwsjson11_deserializeDocumentCorsRule(v **types.CorsRule, value interfac if err != nil { return err } - sv.MaxAgeSeconds = ptr.Int32(int32(i64)) + sv.MaxAgeSeconds = int32(i64) } default: @@ -3146,7 +3150,7 @@ func awsAwsjson11_deserializeDocumentCorsRule(v **types.CorsRule, value interfac return nil } -func awsAwsjson11_deserializeDocumentExposeHeaders(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentExposeHeaders(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3159,21 +3163,21 @@ func awsAwsjson11_deserializeDocumentExposeHeaders(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Header to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3210,7 +3214,7 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3250,7 +3254,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3335,7 +3339,7 @@ func awsAwsjson11_deserializeDocumentMetricPolicyRule(v **types.MetricPolicyRule if !ok { return fmt.Errorf("expected ObjectGroup to be of type string, got %T instead", value) } - sv.ObjectGroup = &jtv + sv.ObjectGroup = ptr.String(jtv) } case "ObjectGroupName": @@ -3344,7 +3348,7 @@ func awsAwsjson11_deserializeDocumentMetricPolicyRule(v **types.MetricPolicyRule if !ok { return fmt.Errorf("expected ObjectGroupName to be of type string, got %T instead", value) } - sv.ObjectGroupName = &jtv + sv.ObjectGroupName = ptr.String(jtv) } default: @@ -3356,7 +3360,7 @@ func awsAwsjson11_deserializeDocumentMetricPolicyRule(v **types.MetricPolicyRule return nil } -func awsAwsjson11_deserializeDocumentMetricPolicyRules(v *[]*types.MetricPolicyRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricPolicyRules(v *[]types.MetricPolicyRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3369,18 +3373,20 @@ func awsAwsjson11_deserializeDocumentMetricPolicyRules(v *[]*types.MetricPolicyR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MetricPolicyRule + var cv []types.MetricPolicyRule if *v == nil { - cv = []*types.MetricPolicyRule{} + cv = []types.MetricPolicyRule{} } else { cv = *v } for _, value := range shape { - var col *types.MetricPolicyRule - if err := awsAwsjson11_deserializeDocumentMetricPolicyRule(&col, value); err != nil { + var col types.MetricPolicyRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMetricPolicyRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3416,7 +3422,7 @@ func awsAwsjson11_deserializeDocumentPolicyNotFoundException(v **types.PolicyNot if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3456,7 +3462,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -3465,7 +3471,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -3477,7 +3483,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3490,18 +3496,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3764,7 +3772,7 @@ func awsAwsjson11_deserializeOpDocumentGetContainerPolicyOutput(v **GetContainer if !ok { return fmt.Errorf("expected ContainerPolicy to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -3840,7 +3848,7 @@ func awsAwsjson11_deserializeOpDocumentGetLifecyclePolicyOutput(v **GetLifecycle if !ok { return fmt.Errorf("expected LifecyclePolicy to be of type string, got %T instead", value) } - sv.LifecyclePolicy = &jtv + sv.LifecyclePolicy = ptr.String(jtv) } default: @@ -3921,7 +3929,7 @@ func awsAwsjson11_deserializeOpDocumentListContainersOutput(v **ListContainersOu if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: diff --git a/service/mediastore/go.mod b/service/mediastore/go.mod index 1c95e696325..fdcba413419 100644 --- a/service/mediastore/go.mod +++ b/service/mediastore/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/mediastore go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/mediastore/serializers.go b/service/mediastore/serializers.go index 0c41430fa38..e5d9240e255 100644 --- a/service/mediastore/serializers.go +++ b/service/mediastore/serializers.go @@ -979,17 +979,13 @@ func (m *awsAwsjson11_serializeOpUntagResource) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAllowedHeaders(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAllowedHeaders(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1005,32 +1001,24 @@ func awsAwsjson11_serializeDocumentAllowedMethods(v []types.MethodName, value sm return nil } -func awsAwsjson11_serializeDocumentAllowedOrigins(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAllowedOrigins(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentCorsPolicy(v []*types.CorsRule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCorsPolicy(v []types.CorsRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCorsRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCorsRule(&v[i], av); err != nil { return err } } @@ -1069,25 +1057,21 @@ func awsAwsjson11_serializeDocumentCorsRule(v *types.CorsRule, value smithyjson. } } - if v.MaxAgeSeconds != nil { + if v.MaxAgeSeconds != 0 { ok := object.Key("MaxAgeSeconds") - ok.Integer(*v.MaxAgeSeconds) + ok.Integer(v.MaxAgeSeconds) } return nil } -func awsAwsjson11_serializeDocumentExposeHeaders(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExposeHeaders(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1128,17 +1112,13 @@ func awsAwsjson11_serializeDocumentMetricPolicyRule(v *types.MetricPolicyRule, v return nil } -func awsAwsjson11_serializeDocumentMetricPolicyRules(v []*types.MetricPolicyRule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMetricPolicyRules(v []types.MetricPolicyRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMetricPolicyRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMetricPolicyRule(&v[i], av); err != nil { return err } } @@ -1162,32 +1142,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/mediastore/types/types.go b/service/mediastore/types/types.go index 176bff009e7..e3d62982355 100644 --- a/service/mediastore/types/types.go +++ b/service/mediastore/types/types.go @@ -52,7 +52,7 @@ type CorsRule struct { // wildcard character (*). // // This member is required. - AllowedHeaders []*string + AllowedHeaders []string // One or more response headers that you want users to be able to access from their // applications (for example, from a JavaScript XMLHttpRequest object). Each CORS @@ -62,7 +62,7 @@ type CorsRule struct { // access for all origins. // // This member is required. - AllowedOrigins []*string + AllowedOrigins []string // Identifies an HTTP method that the origin that is specified in the rule is // allowed to execute. Each CORS rule must contain at least one AllowedMethods and @@ -72,11 +72,11 @@ type CorsRule struct { // One or more headers in the response that you want users to be able to access // from their applications (for example, from a JavaScript XMLHttpRequest object). // This element is optional for each rule. - ExposeHeaders []*string + ExposeHeaders []string // The time in seconds that your browser caches the preflight response for the // specified resource. A CORS rule can have only one MaxAgeSeconds element. - MaxAgeSeconds *int32 + MaxAgeSeconds int32 } // The metric policy that is associated with the container. A metric policy allows @@ -99,7 +99,7 @@ type MetricPolicy struct { // You can also request a quota increase // (https://console.aws.amazon.com/servicequotas/home?region=us-east-1#!/services/mediastore/quotas) // to allow up to 300 rules per policy. - MetricPolicyRules []*MetricPolicyRule + MetricPolicyRules []MetricPolicyRule } // A setting that enables metrics at the object level. Each rule contains an object diff --git a/service/mediastore/validators.go b/service/mediastore/validators.go index 0b067b10154..54dba97a5d7 100644 --- a/service/mediastore/validators.go +++ b/service/mediastore/validators.go @@ -466,13 +466,13 @@ func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) } -func validateCorsPolicy(v []*types.CorsRule) error { +func validateCorsPolicy(v []types.CorsRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CorsPolicy"} for i := range v { - if err := validateCorsRule(v[i]); err != nil { + if err := validateCorsRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -539,13 +539,13 @@ func validateMetricPolicyRule(v *types.MetricPolicyRule) error { } } -func validateMetricPolicyRules(v []*types.MetricPolicyRule) error { +func validateMetricPolicyRules(v []types.MetricPolicyRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MetricPolicyRules"} for i := range v { - if err := validateMetricPolicyRule(v[i]); err != nil { + if err := validateMetricPolicyRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -571,13 +571,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/mediastoredata/api_op_GetObject.go b/service/mediastoredata/api_op_GetObject.go index 7c0aae64342..ca6e0217978 100644 --- a/service/mediastoredata/api_op_GetObject.go +++ b/service/mediastoredata/api_op_GetObject.go @@ -62,7 +62,7 @@ type GetObjectOutput struct { // occurred. // // This member is required. - StatusCode *int32 + StatusCode int32 // The bytes of the object. Body io.ReadCloser diff --git a/service/mediastoredata/api_op_ListItems.go b/service/mediastoredata/api_op_ListItems.go index 9ae91878d74..4c014e98e6c 100644 --- a/service/mediastoredata/api_op_ListItems.go +++ b/service/mediastoredata/api_op_ListItems.go @@ -53,7 +53,7 @@ type ListItemsInput struct { type ListItemsOutput struct { // The metadata entries for the folders and objects at the requested path. - Items []*types.Item + Items []types.Item // The token that can be used in a request to view the next set of results. For // example, you submit a ListItems request that matches 2,000 items with MaxResults diff --git a/service/mediastoredata/deserializers.go b/service/mediastoredata/deserializers.go index 8983f1c1df0..f0f0976c6ef 100644 --- a/service/mediastoredata/deserializers.go +++ b/service/mediastoredata/deserializers.go @@ -389,7 +389,7 @@ func awsRestjson1_deserializeOpHttpBindingsGetObjectOutput(v *GetObjectOutput, r v.LastModified = ptr.Time(t) } - v.StatusCode = ptr.Int32(int32(response.StatusCode)) + v.StatusCode = int32(response.StatusCode) return nil } @@ -549,7 +549,7 @@ func awsRestjson1_deserializeOpDocumentListItemsOutput(v **ListItemsOutput, valu if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -703,7 +703,7 @@ func awsRestjson1_deserializeOpDocumentPutObjectOutput(v **PutObjectOutput, valu if !ok { return fmt.Errorf("expected SHA256Hash to be of type string, got %T instead", value) } - sv.ContentSHA256 = &jtv + sv.ContentSHA256 = ptr.String(jtv) } case "ETag": @@ -712,7 +712,7 @@ func awsRestjson1_deserializeOpDocumentPutObjectOutput(v **PutObjectOutput, valu if !ok { return fmt.Errorf("expected ETag to be of type string, got %T instead", value) } - sv.ETag = &jtv + sv.ETag = ptr.String(jtv) } case "StorageClass": @@ -905,7 +905,7 @@ func awsRestjson1_deserializeDocumentContainerNotFoundException(v **types.Contai if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -945,7 +945,7 @@ func awsRestjson1_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -989,7 +989,7 @@ func awsRestjson1_deserializeDocumentItem(v **types.Item, value interface{}) err if err != nil { return err } - sv.ContentLength = &i64 + sv.ContentLength = ptr.Int64(i64) } case "ContentType": @@ -998,7 +998,7 @@ func awsRestjson1_deserializeDocumentItem(v **types.Item, value interface{}) err if !ok { return fmt.Errorf("expected ContentType to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "ETag": @@ -1007,7 +1007,7 @@ func awsRestjson1_deserializeDocumentItem(v **types.Item, value interface{}) err if !ok { return fmt.Errorf("expected ETag to be of type string, got %T instead", value) } - sv.ETag = &jtv + sv.ETag = ptr.String(jtv) } case "LastModified": @@ -1029,7 +1029,7 @@ func awsRestjson1_deserializeDocumentItem(v **types.Item, value interface{}) err if !ok { return fmt.Errorf("expected ItemName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Type": @@ -1050,7 +1050,7 @@ func awsRestjson1_deserializeDocumentItem(v **types.Item, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentItemList(v *[]*types.Item, value interface{}) error { +func awsRestjson1_deserializeDocumentItemList(v *[]types.Item, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1063,18 +1063,20 @@ func awsRestjson1_deserializeDocumentItemList(v *[]*types.Item, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Item + var cv []types.Item if *v == nil { - cv = []*types.Item{} + cv = []types.Item{} } else { cv = *v } for _, value := range shape { - var col *types.Item - if err := awsRestjson1_deserializeDocumentItem(&col, value); err != nil { + var col types.Item + destAddr := &col + if err := awsRestjson1_deserializeDocumentItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1110,7 +1112,7 @@ func awsRestjson1_deserializeDocumentObjectNotFoundException(v **types.ObjectNot if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1150,7 +1152,7 @@ func awsRestjson1_deserializeDocumentRequestedRangeNotSatisfiableException(v **t if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/mediastoredata/go.mod b/service/mediastoredata/go.mod index edb459370ae..93608692504 100644 --- a/service/mediastoredata/go.mod +++ b/service/mediastoredata/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/mediastoredata go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/mediastoredata/serializers.go b/service/mediastoredata/serializers.go index fcd0d503dd0..91a7ff49115 100644 --- a/service/mediastoredata/serializers.go +++ b/service/mediastoredata/serializers.go @@ -62,13 +62,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteObjectInput(v *DeleteObjectInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Path == nil { + if v.Path == nil || len(*v.Path) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Path must not be empty")} } if v.Path != nil { - if len(*v.Path) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Path must not be empty")} - } if err := encoder.SetURI("Path").String(*v.Path); err != nil { return err } @@ -128,13 +125,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeObjectInput(v *DescribeObjectIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Path == nil { + if v.Path == nil || len(*v.Path) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Path must not be empty")} } if v.Path != nil { - if len(*v.Path) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Path must not be empty")} - } if err := encoder.SetURI("Path").String(*v.Path); err != nil { return err } @@ -194,23 +188,18 @@ func awsRestjson1_serializeOpHttpBindingsGetObjectInput(v *GetObjectInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Path == nil { + if v.Path == nil || len(*v.Path) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Path must not be empty")} } if v.Path != nil { - if len(*v.Path) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Path must not be empty")} - } if err := encoder.SetURI("Path").String(*v.Path); err != nil { return err } } - if v.Range != nil { + if v.Range != nil && len(*v.Range) > 0 { locationName := "Range" - if len(*v.Range) > 0 { - encoder.SetHeader(locationName).String(*v.Range) - } + encoder.SetHeader(locationName).String(*v.Range) } return nil @@ -344,27 +333,20 @@ func awsRestjson1_serializeOpHttpBindingsPutObjectInput(v *PutObjectInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CacheControl != nil { + if v.CacheControl != nil && len(*v.CacheControl) > 0 { locationName := "Cache-Control" - if len(*v.CacheControl) > 0 { - encoder.SetHeader(locationName).String(*v.CacheControl) - } + encoder.SetHeader(locationName).String(*v.CacheControl) } - if v.ContentType != nil { + if v.ContentType != nil && len(*v.ContentType) > 0 { locationName := "Content-Type" - if len(*v.ContentType) > 0 { - encoder.SetHeader(locationName).String(*v.ContentType) - } + encoder.SetHeader(locationName).String(*v.ContentType) } - if v.Path == nil { + if v.Path == nil || len(*v.Path) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Path must not be empty")} } if v.Path != nil { - if len(*v.Path) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Path must not be empty")} - } if err := encoder.SetURI("Path").String(*v.Path); err != nil { return err } diff --git a/service/mediatailor/api_op_GetPlaybackConfiguration.go b/service/mediatailor/api_op_GetPlaybackConfiguration.go index 74166ae0f3a..eb7135c8985 100644 --- a/service/mediatailor/api_op_GetPlaybackConfiguration.go +++ b/service/mediatailor/api_op_GetPlaybackConfiguration.go @@ -73,7 +73,7 @@ type GetPlaybackConfigurationOutput struct { Name *string // The maximum duration of underfilled ad time (in seconds) allowed in an ad break. - PersonalizationThresholdSeconds *int32 + PersonalizationThresholdSeconds int32 // The Amazon Resource Name (ARN) for the playback configuration. PlaybackConfigurationArn *string @@ -95,7 +95,7 @@ type GetPlaybackConfigurationOutput struct { SlateAdUrl *string // The tags assigned to the playback configuration. - Tags map[string]*string + Tags map[string]string // The name that is used to associate this playback configuration with a custom // transcode profile. This overrides the dynamic transcoding defaults of diff --git a/service/mediatailor/api_op_ListPlaybackConfigurations.go b/service/mediatailor/api_op_ListPlaybackConfigurations.go index 66e21a596ca..c780bea0588 100644 --- a/service/mediatailor/api_op_ListPlaybackConfigurations.go +++ b/service/mediatailor/api_op_ListPlaybackConfigurations.go @@ -34,7 +34,7 @@ func (c *Client) ListPlaybackConfigurations(ctx context.Context, params *ListPla type ListPlaybackConfigurationsInput struct { // Maximum number of records to return. - MaxResults *int32 + MaxResults int32 // Pagination token returned by the GET list request when results exceed the // maximum allowed. Use the token to fetch the next page of results. @@ -46,7 +46,7 @@ type ListPlaybackConfigurationsOutput struct { // Array of playback configurations. This might be all the available configurations // or a subset, depending on the settings that you provide and the total number of // configurations stored. - Items []*types.PlaybackConfiguration + Items []types.PlaybackConfiguration // Pagination token returned by the GET list request when results exceed the // maximum allowed. Use the token to fetch the next page of results. diff --git a/service/mediatailor/api_op_ListTagsForResource.go b/service/mediatailor/api_op_ListTagsForResource.go index f356758b137..a5168628fee 100644 --- a/service/mediatailor/api_op_ListTagsForResource.go +++ b/service/mediatailor/api_op_ListTagsForResource.go @@ -40,7 +40,7 @@ type ListTagsForResourceOutput struct { // A comma-separated list of tag key:value pairs. For example: { "Key1": "Value1", // "Key2": "Value2" } - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediatailor/api_op_PutPlaybackConfiguration.go b/service/mediatailor/api_op_PutPlaybackConfiguration.go index df1e75a946f..23e8de5d711 100644 --- a/service/mediatailor/api_op_PutPlaybackConfiguration.go +++ b/service/mediatailor/api_op_PutPlaybackConfiguration.go @@ -62,7 +62,7 @@ type PutPlaybackConfigurationInput struct { Name *string // The maximum duration of underfilled ad time (in seconds) allowed in an ad break. - PersonalizationThresholdSeconds *int32 + PersonalizationThresholdSeconds int32 // The URL for a high-quality video asset to transcode and use to fill in time // that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in @@ -73,7 +73,7 @@ type PutPlaybackConfigurationInput struct { SlateAdUrl *string // The tags to assign to the playback configuration. - Tags map[string]*string + Tags map[string]string // The name that is used to associate this playback configuration with a custom // transcode profile. This overrides the dynamic transcoding defaults of @@ -124,7 +124,7 @@ type PutPlaybackConfigurationOutput struct { Name *string // The maximum duration of underfilled ad time (in seconds) allowed in an ad break. - PersonalizationThresholdSeconds *int32 + PersonalizationThresholdSeconds int32 // The Amazon Resource Name (ARN) for the playback configuration. PlaybackConfigurationArn *string @@ -146,7 +146,7 @@ type PutPlaybackConfigurationOutput struct { SlateAdUrl *string // The tags assigned to the playback configuration. - Tags map[string]*string + Tags map[string]string // The name that is used to associate this playback configuration with a custom // transcode profile. This overrides the dynamic transcoding defaults of diff --git a/service/mediatailor/api_op_TagResource.go b/service/mediatailor/api_op_TagResource.go index 021b1ed5388..71e9d4abe9a 100644 --- a/service/mediatailor/api_op_TagResource.go +++ b/service/mediatailor/api_op_TagResource.go @@ -39,7 +39,7 @@ type TagResourceInput struct { // "Key2": "Value2" } // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/mediatailor/api_op_UntagResource.go b/service/mediatailor/api_op_UntagResource.go index 8705b8581fb..490030e380b 100644 --- a/service/mediatailor/api_op_UntagResource.go +++ b/service/mediatailor/api_op_UntagResource.go @@ -39,7 +39,7 @@ type UntagResourceInput struct { // configuration. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/mediatailor/deserializers.go b/service/mediatailor/deserializers.go index 3412cb897df..99261c12fb8 100644 --- a/service/mediatailor/deserializers.go +++ b/service/mediatailor/deserializers.go @@ -234,7 +234,7 @@ func awsRestjson1_deserializeOpDocumentGetPlaybackConfigurationOutput(v **GetPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AdDecisionServerUrl = &jtv + sv.AdDecisionServerUrl = ptr.String(jtv) } case "AvailSuppression": @@ -278,7 +278,7 @@ func awsRestjson1_deserializeOpDocumentGetPlaybackConfigurationOutput(v **GetPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PersonalizationThresholdSeconds": @@ -291,7 +291,7 @@ func awsRestjson1_deserializeOpDocumentGetPlaybackConfigurationOutput(v **GetPla if err != nil { return err } - sv.PersonalizationThresholdSeconds = ptr.Int32(int32(i64)) + sv.PersonalizationThresholdSeconds = int32(i64) } case "PlaybackConfigurationArn": @@ -300,7 +300,7 @@ func awsRestjson1_deserializeOpDocumentGetPlaybackConfigurationOutput(v **GetPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PlaybackConfigurationArn = &jtv + sv.PlaybackConfigurationArn = ptr.String(jtv) } case "PlaybackEndpointPrefix": @@ -309,7 +309,7 @@ func awsRestjson1_deserializeOpDocumentGetPlaybackConfigurationOutput(v **GetPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PlaybackEndpointPrefix = &jtv + sv.PlaybackEndpointPrefix = ptr.String(jtv) } case "SessionInitializationEndpointPrefix": @@ -318,7 +318,7 @@ func awsRestjson1_deserializeOpDocumentGetPlaybackConfigurationOutput(v **GetPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SessionInitializationEndpointPrefix = &jtv + sv.SessionInitializationEndpointPrefix = ptr.String(jtv) } case "SlateAdUrl": @@ -327,7 +327,7 @@ func awsRestjson1_deserializeOpDocumentGetPlaybackConfigurationOutput(v **GetPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SlateAdUrl = &jtv + sv.SlateAdUrl = ptr.String(jtv) } case "tags": @@ -341,7 +341,7 @@ func awsRestjson1_deserializeOpDocumentGetPlaybackConfigurationOutput(v **GetPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TranscodeProfileName = &jtv + sv.TranscodeProfileName = ptr.String(jtv) } case "VideoContentSourceUrl": @@ -350,7 +350,7 @@ func awsRestjson1_deserializeOpDocumentGetPlaybackConfigurationOutput(v **GetPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VideoContentSourceUrl = &jtv + sv.VideoContentSourceUrl = ptr.String(jtv) } default: @@ -503,7 +503,7 @@ func awsRestjson1_deserializeOpDocumentListPlaybackConfigurationsOutput(v **List if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -798,7 +798,7 @@ func awsRestjson1_deserializeOpDocumentPutPlaybackConfigurationOutput(v **PutPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AdDecisionServerUrl = &jtv + sv.AdDecisionServerUrl = ptr.String(jtv) } case "AvailSuppression": @@ -842,7 +842,7 @@ func awsRestjson1_deserializeOpDocumentPutPlaybackConfigurationOutput(v **PutPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PersonalizationThresholdSeconds": @@ -855,7 +855,7 @@ func awsRestjson1_deserializeOpDocumentPutPlaybackConfigurationOutput(v **PutPla if err != nil { return err } - sv.PersonalizationThresholdSeconds = ptr.Int32(int32(i64)) + sv.PersonalizationThresholdSeconds = int32(i64) } case "PlaybackConfigurationArn": @@ -864,7 +864,7 @@ func awsRestjson1_deserializeOpDocumentPutPlaybackConfigurationOutput(v **PutPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PlaybackConfigurationArn = &jtv + sv.PlaybackConfigurationArn = ptr.String(jtv) } case "PlaybackEndpointPrefix": @@ -873,7 +873,7 @@ func awsRestjson1_deserializeOpDocumentPutPlaybackConfigurationOutput(v **PutPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PlaybackEndpointPrefix = &jtv + sv.PlaybackEndpointPrefix = ptr.String(jtv) } case "SessionInitializationEndpointPrefix": @@ -882,7 +882,7 @@ func awsRestjson1_deserializeOpDocumentPutPlaybackConfigurationOutput(v **PutPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SessionInitializationEndpointPrefix = &jtv + sv.SessionInitializationEndpointPrefix = ptr.String(jtv) } case "SlateAdUrl": @@ -891,7 +891,7 @@ func awsRestjson1_deserializeOpDocumentPutPlaybackConfigurationOutput(v **PutPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SlateAdUrl = &jtv + sv.SlateAdUrl = ptr.String(jtv) } case "tags": @@ -905,7 +905,7 @@ func awsRestjson1_deserializeOpDocumentPutPlaybackConfigurationOutput(v **PutPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TranscodeProfileName = &jtv + sv.TranscodeProfileName = ptr.String(jtv) } case "VideoContentSourceUrl": @@ -914,7 +914,7 @@ func awsRestjson1_deserializeOpDocumentPutPlaybackConfigurationOutput(v **PutPla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VideoContentSourceUrl = &jtv + sv.VideoContentSourceUrl = ptr.String(jtv) } default: @@ -1128,7 +1128,7 @@ func awsRestjson1_deserializeErrorBadRequestException(response *smithyhttp.Respo return output } -func awsRestjson1_deserializeDocument__listOfPlaybackConfigurations(v *[]*types.PlaybackConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfPlaybackConfigurations(v *[]types.PlaybackConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1141,18 +1141,20 @@ func awsRestjson1_deserializeDocument__listOfPlaybackConfigurations(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PlaybackConfiguration + var cv []types.PlaybackConfiguration if *v == nil { - cv = []*types.PlaybackConfiguration{} + cv = []types.PlaybackConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.PlaybackConfiguration - if err := awsRestjson1_deserializeDocumentPlaybackConfiguration(&col, value); err != nil { + var col types.PlaybackConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentPlaybackConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1160,7 +1162,7 @@ func awsRestjson1_deserializeDocument__listOfPlaybackConfigurations(v *[]*types. return nil } -func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1173,21 +1175,21 @@ func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -1224,7 +1226,7 @@ func awsRestjson1_deserializeDocumentAdMarkerPassthrough(v **types.AdMarkerPasst if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } default: @@ -1273,7 +1275,7 @@ func awsRestjson1_deserializeDocumentAvailSuppression(v **types.AvailSuppression if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -1313,7 +1315,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1353,7 +1355,7 @@ func awsRestjson1_deserializeDocumentBumper(v **types.Bumper, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EndUrl = &jtv + sv.EndUrl = ptr.String(jtv) } case "StartUrl": @@ -1362,7 +1364,7 @@ func awsRestjson1_deserializeDocumentBumper(v **types.Bumper, value interface{}) if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StartUrl = &jtv + sv.StartUrl = ptr.String(jtv) } default: @@ -1402,7 +1404,7 @@ func awsRestjson1_deserializeDocumentCdnConfiguration(v **types.CdnConfiguration if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AdSegmentUrlPrefix = &jtv + sv.AdSegmentUrlPrefix = ptr.String(jtv) } case "ContentSegmentUrlPrefix": @@ -1411,7 +1413,7 @@ func awsRestjson1_deserializeDocumentCdnConfiguration(v **types.CdnConfiguration if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ContentSegmentUrlPrefix = &jtv + sv.ContentSegmentUrlPrefix = ptr.String(jtv) } default: @@ -1451,7 +1453,7 @@ func awsRestjson1_deserializeDocumentDashConfiguration(v **types.DashConfigurati if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ManifestEndpointPrefix = &jtv + sv.ManifestEndpointPrefix = ptr.String(jtv) } case "MpdLocation": @@ -1460,7 +1462,7 @@ func awsRestjson1_deserializeDocumentDashConfiguration(v **types.DashConfigurati if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MpdLocation = &jtv + sv.MpdLocation = ptr.String(jtv) } case "OriginManifestType": @@ -1509,7 +1511,7 @@ func awsRestjson1_deserializeDocumentHlsConfiguration(v **types.HlsConfiguration if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ManifestEndpointPrefix = &jtv + sv.ManifestEndpointPrefix = ptr.String(jtv) } default: @@ -1549,7 +1551,7 @@ func awsRestjson1_deserializeDocumentLivePreRollConfiguration(v **types.LivePreR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AdDecisionServerUrl = &jtv + sv.AdDecisionServerUrl = ptr.String(jtv) } case "MaxDurationSeconds": @@ -1562,7 +1564,7 @@ func awsRestjson1_deserializeDocumentLivePreRollConfiguration(v **types.LivePreR if err != nil { return err } - sv.MaxDurationSeconds = ptr.Int32(int32(i64)) + sv.MaxDurationSeconds = int32(i64) } default: @@ -1638,7 +1640,7 @@ func awsRestjson1_deserializeDocumentPlaybackConfiguration(v **types.PlaybackCon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AdDecisionServerUrl = &jtv + sv.AdDecisionServerUrl = ptr.String(jtv) } case "AvailSuppression": @@ -1677,7 +1679,7 @@ func awsRestjson1_deserializeDocumentPlaybackConfiguration(v **types.PlaybackCon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PersonalizationThresholdSeconds": @@ -1690,7 +1692,7 @@ func awsRestjson1_deserializeDocumentPlaybackConfiguration(v **types.PlaybackCon if err != nil { return err } - sv.PersonalizationThresholdSeconds = ptr.Int32(int32(i64)) + sv.PersonalizationThresholdSeconds = int32(i64) } case "PlaybackConfigurationArn": @@ -1699,7 +1701,7 @@ func awsRestjson1_deserializeDocumentPlaybackConfiguration(v **types.PlaybackCon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PlaybackConfigurationArn = &jtv + sv.PlaybackConfigurationArn = ptr.String(jtv) } case "PlaybackEndpointPrefix": @@ -1708,7 +1710,7 @@ func awsRestjson1_deserializeDocumentPlaybackConfiguration(v **types.PlaybackCon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PlaybackEndpointPrefix = &jtv + sv.PlaybackEndpointPrefix = ptr.String(jtv) } case "SessionInitializationEndpointPrefix": @@ -1717,7 +1719,7 @@ func awsRestjson1_deserializeDocumentPlaybackConfiguration(v **types.PlaybackCon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SessionInitializationEndpointPrefix = &jtv + sv.SessionInitializationEndpointPrefix = ptr.String(jtv) } case "SlateAdUrl": @@ -1726,7 +1728,7 @@ func awsRestjson1_deserializeDocumentPlaybackConfiguration(v **types.PlaybackCon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SlateAdUrl = &jtv + sv.SlateAdUrl = ptr.String(jtv) } case "tags": @@ -1740,7 +1742,7 @@ func awsRestjson1_deserializeDocumentPlaybackConfiguration(v **types.PlaybackCon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TranscodeProfileName = &jtv + sv.TranscodeProfileName = ptr.String(jtv) } case "VideoContentSourceUrl": @@ -1749,7 +1751,7 @@ func awsRestjson1_deserializeDocumentPlaybackConfiguration(v **types.PlaybackCon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VideoContentSourceUrl = &jtv + sv.VideoContentSourceUrl = ptr.String(jtv) } default: diff --git a/service/mediatailor/go.mod b/service/mediatailor/go.mod index 671ffec96bc..270b0f1176c 100644 --- a/service/mediatailor/go.mod +++ b/service/mediatailor/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/mediatailor go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/mediatailor/serializers.go b/service/mediatailor/serializers.go index f92efe8569a..9ffb771cf36 100644 --- a/service/mediatailor/serializers.go +++ b/service/mediatailor/serializers.go @@ -65,13 +65,10 @@ func awsRestjson1_serializeOpHttpBindingsDeletePlaybackConfigurationInput(v *Del return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -131,13 +128,10 @@ func awsRestjson1_serializeOpHttpBindingsGetPlaybackConfigurationInput(v *GetPla return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -197,8 +191,8 @@ func awsRestjson1_serializeOpHttpBindingsListPlaybackConfigurationsInput(v *List return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("MaxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("MaxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -259,13 +253,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -391,9 +382,9 @@ func awsRestjson1_serializeOpDocumentPutPlaybackConfigurationInput(v *PutPlaybac ok.String(*v.Name) } - if v.PersonalizationThresholdSeconds != nil { + if v.PersonalizationThresholdSeconds != 0 { ok := object.Key("PersonalizationThresholdSeconds") - ok.Integer(*v.PersonalizationThresholdSeconds) + ok.Integer(v.PersonalizationThresholdSeconds) } if v.SlateAdUrl != nil { @@ -483,13 +474,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -563,13 +551,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -577,27 +562,20 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } return nil } -func awsRestjson1_serializeDocument__mapOf__string(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__mapOf__string(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -606,9 +584,9 @@ func awsRestjson1_serializeDocumentAdMarkerPassthrough(v *types.AdMarkerPassthro object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } return nil @@ -691,9 +669,9 @@ func awsRestjson1_serializeDocumentLivePreRollConfiguration(v *types.LivePreRoll ok.String(*v.AdDecisionServerUrl) } - if v.MaxDurationSeconds != nil { + if v.MaxDurationSeconds != 0 { ok := object.Key("MaxDurationSeconds") - ok.Integer(*v.MaxDurationSeconds) + ok.Integer(v.MaxDurationSeconds) } return nil diff --git a/service/mediatailor/types/types.go b/service/mediatailor/types/types.go index ff2065b4d8a..4e9a2989217 100644 --- a/service/mediatailor/types/types.go +++ b/service/mediatailor/types/types.go @@ -11,7 +11,7 @@ type AdMarkerPassthrough struct { // to the MediaTailor personalized manifest.No logic is applied to these ad // markers. For example, if EXT-X-CUE-OUT has a value of 60, but no ads are filled // for that ad break, MediaTailor will not set the value to 0. - Enabled *bool + Enabled bool } // The configuration for Avail Suppression. Ad suppression can be used to turn off @@ -124,7 +124,7 @@ type LivePreRollConfiguration struct { // The maximum allowed duration for the pre-roll ad avail. AWS Elemental // MediaTailor won't play pre-roll ads to exceed this duration, regardless of the // total duration of ads that the ADS returns. - MaxDurationSeconds *int32 + MaxDurationSeconds int32 } // The configuration for manifest processing rules. Manifest processing rules @@ -172,7 +172,7 @@ type PlaybackConfiguration struct { Name *string // The maximum duration of underfilled ad time (in seconds) allowed in an ad break. - PersonalizationThresholdSeconds *int32 + PersonalizationThresholdSeconds int32 // The Amazon Resource Name (ARN) for the playback configuration. PlaybackConfigurationArn *string @@ -194,7 +194,7 @@ type PlaybackConfiguration struct { SlateAdUrl *string // The tags assigned to the playback configuration. - Tags map[string]*string + Tags map[string]string // The name that is used to associate this playback configuration with a custom // transcode profile. This overrides the dynamic transcoding defaults of diff --git a/service/migrationhub/api_op_AssociateCreatedArtifact.go b/service/migrationhub/api_op_AssociateCreatedArtifact.go index be557f3600e..6289a87f223 100644 --- a/service/migrationhub/api_op_AssociateCreatedArtifact.go +++ b/service/migrationhub/api_op_AssociateCreatedArtifact.go @@ -62,7 +62,7 @@ type AssociateCreatedArtifactInput struct { // Optional boolean flag to indicate whether any effect should take place. Used to // test if the caller has permission to make the call. - DryRun *bool + DryRun bool } type AssociateCreatedArtifactOutput struct { diff --git a/service/migrationhub/api_op_AssociateDiscoveredResource.go b/service/migrationhub/api_op_AssociateDiscoveredResource.go index 54576266ddf..00014f6c3e0 100644 --- a/service/migrationhub/api_op_AssociateDiscoveredResource.go +++ b/service/migrationhub/api_op_AssociateDiscoveredResource.go @@ -48,7 +48,7 @@ type AssociateDiscoveredResourceInput struct { // Optional boolean flag to indicate whether any effect should take place. Used to // test if the caller has permission to make the call. - DryRun *bool + DryRun bool } type AssociateDiscoveredResourceOutput struct { diff --git a/service/migrationhub/api_op_CreateProgressUpdateStream.go b/service/migrationhub/api_op_CreateProgressUpdateStream.go index fc303829497..8f0021e95f5 100644 --- a/service/migrationhub/api_op_CreateProgressUpdateStream.go +++ b/service/migrationhub/api_op_CreateProgressUpdateStream.go @@ -39,7 +39,7 @@ type CreateProgressUpdateStreamInput struct { // Optional boolean flag to indicate whether any effect should take place. Used to // test if the caller has permission to make the call. - DryRun *bool + DryRun bool } type CreateProgressUpdateStreamOutput struct { diff --git a/service/migrationhub/api_op_DeleteProgressUpdateStream.go b/service/migrationhub/api_op_DeleteProgressUpdateStream.go index 59892cac039..57793b3c328 100644 --- a/service/migrationhub/api_op_DeleteProgressUpdateStream.go +++ b/service/migrationhub/api_op_DeleteProgressUpdateStream.go @@ -58,7 +58,7 @@ type DeleteProgressUpdateStreamInput struct { // Optional boolean flag to indicate whether any effect should take place. Used to // test if the caller has permission to make the call. - DryRun *bool + DryRun bool } type DeleteProgressUpdateStreamOutput struct { diff --git a/service/migrationhub/api_op_DisassociateCreatedArtifact.go b/service/migrationhub/api_op_DisassociateCreatedArtifact.go index 1626a24f685..ea5338e61e8 100644 --- a/service/migrationhub/api_op_DisassociateCreatedArtifact.go +++ b/service/migrationhub/api_op_DisassociateCreatedArtifact.go @@ -61,7 +61,7 @@ type DisassociateCreatedArtifactInput struct { // Optional boolean flag to indicate whether any effect should take place. Used to // test if the caller has permission to make the call. - DryRun *bool + DryRun bool } type DisassociateCreatedArtifactOutput struct { diff --git a/service/migrationhub/api_op_DisassociateDiscoveredResource.go b/service/migrationhub/api_op_DisassociateDiscoveredResource.go index 0f65445c453..fbf631ff541 100644 --- a/service/migrationhub/api_op_DisassociateDiscoveredResource.go +++ b/service/migrationhub/api_op_DisassociateDiscoveredResource.go @@ -48,7 +48,7 @@ type DisassociateDiscoveredResourceInput struct { // Optional boolean flag to indicate whether any effect should take place. Used to // test if the caller has permission to make the call. - DryRun *bool + DryRun bool } type DisassociateDiscoveredResourceOutput struct { diff --git a/service/migrationhub/api_op_ImportMigrationTask.go b/service/migrationhub/api_op_ImportMigrationTask.go index 114a32e358a..e26e0c96dfc 100644 --- a/service/migrationhub/api_op_ImportMigrationTask.go +++ b/service/migrationhub/api_op_ImportMigrationTask.go @@ -44,7 +44,7 @@ type ImportMigrationTaskInput struct { // Optional boolean flag to indicate whether any effect should take place. Used to // test if the caller has permission to make the call. - DryRun *bool + DryRun bool } type ImportMigrationTaskOutput struct { diff --git a/service/migrationhub/api_op_ListApplicationStates.go b/service/migrationhub/api_op_ListApplicationStates.go index 877312d9fd4..574278a7384 100644 --- a/service/migrationhub/api_op_ListApplicationStates.go +++ b/service/migrationhub/api_op_ListApplicationStates.go @@ -33,7 +33,7 @@ type ListApplicationStatesInput struct { // The configurationIds from the Application Discovery Service that uniquely // identifies your applications. - ApplicationIds []*string + ApplicationIds []string // Maximum number of results to be returned per page. MaxResults *int32 @@ -47,7 +47,7 @@ type ListApplicationStatesInput struct { type ListApplicationStatesOutput struct { // A list of Applications that exist in Application Discovery Service. - ApplicationStateList []*types.ApplicationState + ApplicationStateList []types.ApplicationState // If a NextToken was returned by a previous call, there are more results // available. To retrieve the next page of results, make the call again using the diff --git a/service/migrationhub/api_op_ListCreatedArtifacts.go b/service/migrationhub/api_op_ListCreatedArtifacts.go index e94867bd4a5..89c49211784 100644 --- a/service/migrationhub/api_op_ListCreatedArtifacts.go +++ b/service/migrationhub/api_op_ListCreatedArtifacts.go @@ -63,7 +63,7 @@ type ListCreatedArtifactsOutput struct { // List of created artifacts up to the maximum number of results specified in the // request. - CreatedArtifactList []*types.CreatedArtifact + CreatedArtifactList []types.CreatedArtifact // If there are more created artifacts than the max result, return the next token // to be passed to the next call as a bookmark of where to start from. diff --git a/service/migrationhub/api_op_ListDiscoveredResources.go b/service/migrationhub/api_op_ListDiscoveredResources.go index 466e3fba1ef..3922ae290c9 100644 --- a/service/migrationhub/api_op_ListDiscoveredResources.go +++ b/service/migrationhub/api_op_ListDiscoveredResources.go @@ -51,7 +51,7 @@ type ListDiscoveredResourcesInput struct { type ListDiscoveredResourcesOutput struct { // Returned list of discovered resources associated with the given MigrationTask. - DiscoveredResourceList []*types.DiscoveredResource + DiscoveredResourceList []types.DiscoveredResource // If there are more discovered resources than the max result, return the next // token to be passed to the next call as a bookmark of where to start from. diff --git a/service/migrationhub/api_op_ListMigrationTasks.go b/service/migrationhub/api_op_ListMigrationTasks.go index 8fde875fd36..2f60e52ba5c 100644 --- a/service/migrationhub/api_op_ListMigrationTasks.go +++ b/service/migrationhub/api_op_ListMigrationTasks.go @@ -56,7 +56,7 @@ type ListMigrationTasksOutput struct { // Lists the migration task's summary which includes: MigrationTaskName, // ProgressPercent, ProgressUpdateStream, Status, and the UpdateDateTime for each // task. - MigrationTaskSummaryList []*types.MigrationTaskSummary + MigrationTaskSummaryList []types.MigrationTaskSummary // If there are more migration tasks than the max result, return the next token to // be passed to the next call as a bookmark of where to start from. diff --git a/service/migrationhub/api_op_ListProgressUpdateStreams.go b/service/migrationhub/api_op_ListProgressUpdateStreams.go index 40ff22d1a58..1b9f9cd5507 100644 --- a/service/migrationhub/api_op_ListProgressUpdateStreams.go +++ b/service/migrationhub/api_op_ListProgressUpdateStreams.go @@ -46,7 +46,7 @@ type ListProgressUpdateStreamsOutput struct { // List of progress update streams up to the max number of results passed in the // input. - ProgressUpdateStreamSummaryList []*types.ProgressUpdateStreamSummary + ProgressUpdateStreamSummaryList []types.ProgressUpdateStreamSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/migrationhub/api_op_NotifyApplicationState.go b/service/migrationhub/api_op_NotifyApplicationState.go index fdfd09e4c4a..4bb32fa0fdd 100644 --- a/service/migrationhub/api_op_NotifyApplicationState.go +++ b/service/migrationhub/api_op_NotifyApplicationState.go @@ -45,7 +45,7 @@ type NotifyApplicationStateInput struct { // Optional boolean flag to indicate whether any effect should take place. Used to // test if the caller has permission to make the call. - DryRun *bool + DryRun bool // The timestamp when the application state changed. UpdateDateTime *time.Time diff --git a/service/migrationhub/api_op_NotifyMigrationTaskState.go b/service/migrationhub/api_op_NotifyMigrationTaskState.go index 8daf48c6474..a218bdbc31c 100644 --- a/service/migrationhub/api_op_NotifyMigrationTaskState.go +++ b/service/migrationhub/api_op_NotifyMigrationTaskState.go @@ -52,7 +52,7 @@ type NotifyMigrationTaskStateInput struct { // specified interval, then the migration task will be considered stale. // // This member is required. - NextUpdateSeconds *int32 + NextUpdateSeconds int32 // The name of the ProgressUpdateStream. // @@ -71,7 +71,7 @@ type NotifyMigrationTaskStateInput struct { // Optional boolean flag to indicate whether any effect should take place. Used to // test if the caller has permission to make the call. - DryRun *bool + DryRun bool } type NotifyMigrationTaskStateOutput struct { diff --git a/service/migrationhub/api_op_PutResourceAttributes.go b/service/migrationhub/api_op_PutResourceAttributes.go index 1845443bfbc..184c70aaebd 100644 --- a/service/migrationhub/api_op_PutResourceAttributes.go +++ b/service/migrationhub/api_op_PutResourceAttributes.go @@ -80,11 +80,11 @@ type PutResourceAttributesInput struct { // ResourceAttributeList parameter to maximize the chances of matching. // // This member is required. - ResourceAttributeList []*types.ResourceAttribute + ResourceAttributeList []types.ResourceAttribute // Optional boolean flag to indicate whether any effect should take place. Used to // test if the caller has permission to make the call. - DryRun *bool + DryRun bool } type PutResourceAttributesOutput struct { diff --git a/service/migrationhub/deserializers.go b/service/migrationhub/deserializers.go index 8d87f24640a..a3935203793 100644 --- a/service/migrationhub/deserializers.go +++ b/service/migrationhub/deserializers.go @@ -2653,7 +2653,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2693,7 +2693,7 @@ func awsAwsjson11_deserializeDocumentApplicationState(v **types.ApplicationState if !ok { return fmt.Errorf("expected ApplicationId to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "ApplicationStatus": @@ -2727,7 +2727,7 @@ func awsAwsjson11_deserializeDocumentApplicationState(v **types.ApplicationState return nil } -func awsAwsjson11_deserializeDocumentApplicationStateList(v *[]*types.ApplicationState, value interface{}) error { +func awsAwsjson11_deserializeDocumentApplicationStateList(v *[]types.ApplicationState, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2740,18 +2740,20 @@ func awsAwsjson11_deserializeDocumentApplicationStateList(v *[]*types.Applicatio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApplicationState + var cv []types.ApplicationState if *v == nil { - cv = []*types.ApplicationState{} + cv = []types.ApplicationState{} } else { cv = *v } for _, value := range shape { - var col *types.ApplicationState - if err := awsAwsjson11_deserializeDocumentApplicationState(&col, value); err != nil { + var col types.ApplicationState + destAddr := &col + if err := awsAwsjson11_deserializeDocumentApplicationState(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2787,7 +2789,7 @@ func awsAwsjson11_deserializeDocumentCreatedArtifact(v **types.CreatedArtifact, if !ok { return fmt.Errorf("expected CreatedArtifactDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -2796,7 +2798,7 @@ func awsAwsjson11_deserializeDocumentCreatedArtifact(v **types.CreatedArtifact, if !ok { return fmt.Errorf("expected CreatedArtifactName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -2808,7 +2810,7 @@ func awsAwsjson11_deserializeDocumentCreatedArtifact(v **types.CreatedArtifact, return nil } -func awsAwsjson11_deserializeDocumentCreatedArtifactList(v *[]*types.CreatedArtifact, value interface{}) error { +func awsAwsjson11_deserializeDocumentCreatedArtifactList(v *[]types.CreatedArtifact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2821,18 +2823,20 @@ func awsAwsjson11_deserializeDocumentCreatedArtifactList(v *[]*types.CreatedArti return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CreatedArtifact + var cv []types.CreatedArtifact if *v == nil { - cv = []*types.CreatedArtifact{} + cv = []types.CreatedArtifact{} } else { cv = *v } for _, value := range shape { - var col *types.CreatedArtifact - if err := awsAwsjson11_deserializeDocumentCreatedArtifact(&col, value); err != nil { + var col types.CreatedArtifact + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCreatedArtifact(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2868,7 +2872,7 @@ func awsAwsjson11_deserializeDocumentDiscoveredResource(v **types.DiscoveredReso if !ok { return fmt.Errorf("expected ConfigurationId to be of type string, got %T instead", value) } - sv.ConfigurationId = &jtv + sv.ConfigurationId = ptr.String(jtv) } case "Description": @@ -2877,7 +2881,7 @@ func awsAwsjson11_deserializeDocumentDiscoveredResource(v **types.DiscoveredReso if !ok { return fmt.Errorf("expected DiscoveredResourceDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } default: @@ -2889,7 +2893,7 @@ func awsAwsjson11_deserializeDocumentDiscoveredResource(v **types.DiscoveredReso return nil } -func awsAwsjson11_deserializeDocumentDiscoveredResourceList(v *[]*types.DiscoveredResource, value interface{}) error { +func awsAwsjson11_deserializeDocumentDiscoveredResourceList(v *[]types.DiscoveredResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2902,18 +2906,20 @@ func awsAwsjson11_deserializeDocumentDiscoveredResourceList(v *[]*types.Discover return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DiscoveredResource + var cv []types.DiscoveredResource if *v == nil { - cv = []*types.DiscoveredResource{} + cv = []types.DiscoveredResource{} } else { cv = *v } for _, value := range shape { - var col *types.DiscoveredResource - if err := awsAwsjson11_deserializeDocumentDiscoveredResource(&col, value); err != nil { + var col types.DiscoveredResource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDiscoveredResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2949,7 +2955,7 @@ func awsAwsjson11_deserializeDocumentDryRunOperation(v **types.DryRunOperation, if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2989,7 +2995,7 @@ func awsAwsjson11_deserializeDocumentHomeRegionNotSetException(v **types.HomeReg if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3029,7 +3035,7 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3069,7 +3075,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3081,7 +3087,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu return nil } -func awsAwsjson11_deserializeDocumentLatestResourceAttributeList(v *[]*types.ResourceAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentLatestResourceAttributeList(v *[]types.ResourceAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3094,18 +3100,20 @@ func awsAwsjson11_deserializeDocumentLatestResourceAttributeList(v *[]*types.Res return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceAttribute + var cv []types.ResourceAttribute if *v == nil { - cv = []*types.ResourceAttribute{} + cv = []types.ResourceAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceAttribute - if err := awsAwsjson11_deserializeDocumentResourceAttribute(&col, value); err != nil { + var col types.ResourceAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3141,7 +3149,7 @@ func awsAwsjson11_deserializeDocumentMigrationTask(v **types.MigrationTask, valu if !ok { return fmt.Errorf("expected MigrationTaskName to be of type string, got %T instead", value) } - sv.MigrationTaskName = &jtv + sv.MigrationTaskName = ptr.String(jtv) } case "ProgressUpdateStream": @@ -3150,7 +3158,7 @@ func awsAwsjson11_deserializeDocumentMigrationTask(v **types.MigrationTask, valu if !ok { return fmt.Errorf("expected ProgressUpdateStream to be of type string, got %T instead", value) } - sv.ProgressUpdateStream = &jtv + sv.ProgressUpdateStream = ptr.String(jtv) } case "ResourceAttributeList": @@ -3213,7 +3221,7 @@ func awsAwsjson11_deserializeDocumentMigrationTaskSummary(v **types.MigrationTas if !ok { return fmt.Errorf("expected MigrationTaskName to be of type string, got %T instead", value) } - sv.MigrationTaskName = &jtv + sv.MigrationTaskName = ptr.String(jtv) } case "ProgressPercent": @@ -3235,7 +3243,7 @@ func awsAwsjson11_deserializeDocumentMigrationTaskSummary(v **types.MigrationTas if !ok { return fmt.Errorf("expected ProgressUpdateStream to be of type string, got %T instead", value) } - sv.ProgressUpdateStream = &jtv + sv.ProgressUpdateStream = ptr.String(jtv) } case "Status": @@ -3253,7 +3261,7 @@ func awsAwsjson11_deserializeDocumentMigrationTaskSummary(v **types.MigrationTas if !ok { return fmt.Errorf("expected StatusDetail to be of type string, got %T instead", value) } - sv.StatusDetail = &jtv + sv.StatusDetail = ptr.String(jtv) } case "UpdateDateTime": @@ -3278,7 +3286,7 @@ func awsAwsjson11_deserializeDocumentMigrationTaskSummary(v **types.MigrationTas return nil } -func awsAwsjson11_deserializeDocumentMigrationTaskSummaryList(v *[]*types.MigrationTaskSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentMigrationTaskSummaryList(v *[]types.MigrationTaskSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3291,18 +3299,20 @@ func awsAwsjson11_deserializeDocumentMigrationTaskSummaryList(v *[]*types.Migrat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MigrationTaskSummary + var cv []types.MigrationTaskSummary if *v == nil { - cv = []*types.MigrationTaskSummary{} + cv = []types.MigrationTaskSummary{} } else { cv = *v } for _, value := range shape { - var col *types.MigrationTaskSummary - if err := awsAwsjson11_deserializeDocumentMigrationTaskSummary(&col, value); err != nil { + var col types.MigrationTaskSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMigrationTaskSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3338,7 +3348,7 @@ func awsAwsjson11_deserializeDocumentPolicyErrorException(v **types.PolicyErrorE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3378,7 +3388,7 @@ func awsAwsjson11_deserializeDocumentProgressUpdateStreamSummary(v **types.Progr if !ok { return fmt.Errorf("expected ProgressUpdateStream to be of type string, got %T instead", value) } - sv.ProgressUpdateStreamName = &jtv + sv.ProgressUpdateStreamName = ptr.String(jtv) } default: @@ -3390,7 +3400,7 @@ func awsAwsjson11_deserializeDocumentProgressUpdateStreamSummary(v **types.Progr return nil } -func awsAwsjson11_deserializeDocumentProgressUpdateStreamSummaryList(v *[]*types.ProgressUpdateStreamSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentProgressUpdateStreamSummaryList(v *[]types.ProgressUpdateStreamSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3403,18 +3413,20 @@ func awsAwsjson11_deserializeDocumentProgressUpdateStreamSummaryList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProgressUpdateStreamSummary + var cv []types.ProgressUpdateStreamSummary if *v == nil { - cv = []*types.ProgressUpdateStreamSummary{} + cv = []types.ProgressUpdateStreamSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProgressUpdateStreamSummary - if err := awsAwsjson11_deserializeDocumentProgressUpdateStreamSummary(&col, value); err != nil { + var col types.ProgressUpdateStreamSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProgressUpdateStreamSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3459,7 +3471,7 @@ func awsAwsjson11_deserializeDocumentResourceAttribute(v **types.ResourceAttribu if !ok { return fmt.Errorf("expected ResourceAttributeValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -3499,7 +3511,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3539,7 +3551,7 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3601,7 +3613,7 @@ func awsAwsjson11_deserializeDocumentTask(v **types.Task, value interface{}) err if !ok { return fmt.Errorf("expected StatusDetail to be of type string, got %T instead", value) } - sv.StatusDetail = &jtv + sv.StatusDetail = ptr.String(jtv) } default: @@ -3641,7 +3653,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RetryAfterSeconds": @@ -3654,7 +3666,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if err != nil { return err } - sv.RetryAfterSeconds = ptr.Int32(int32(i64)) + sv.RetryAfterSeconds = int32(i64) } default: @@ -3694,7 +3706,7 @@ func awsAwsjson11_deserializeDocumentUnauthorizedOperation(v **types.Unauthorize if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4045,7 +4057,7 @@ func awsAwsjson11_deserializeOpDocumentListApplicationStatesOutput(v **ListAppli if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4090,7 +4102,7 @@ func awsAwsjson11_deserializeOpDocumentListCreatedArtifactsOutput(v **ListCreate if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4135,7 +4147,7 @@ func awsAwsjson11_deserializeOpDocumentListDiscoveredResourcesOutput(v **ListDis if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4180,7 +4192,7 @@ func awsAwsjson11_deserializeOpDocumentListMigrationTasksOutput(v **ListMigratio if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4220,7 +4232,7 @@ func awsAwsjson11_deserializeOpDocumentListProgressUpdateStreamsOutput(v **ListP if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ProgressUpdateStreamSummaryList": diff --git a/service/migrationhub/go.mod b/service/migrationhub/go.mod index 57dc1bd18e1..1cd16544841 100644 --- a/service/migrationhub/go.mod +++ b/service/migrationhub/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhub go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/migrationhub/serializers.go b/service/migrationhub/serializers.go index ae5be3d920d..307d9cac82a 100644 --- a/service/migrationhub/serializers.go +++ b/service/migrationhub/serializers.go @@ -796,17 +796,13 @@ func (m *awsAwsjson11_serializeOpPutResourceAttributes) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentApplicationIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentApplicationIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -862,17 +858,13 @@ func awsAwsjson11_serializeDocumentResourceAttribute(v *types.ResourceAttribute, return nil } -func awsAwsjson11_serializeDocumentResourceAttributeList(v []*types.ResourceAttribute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceAttributeList(v []types.ResourceAttribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentResourceAttribute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentResourceAttribute(&v[i], av); err != nil { return err } } @@ -912,9 +904,9 @@ func awsAwsjson11_serializeOpDocumentAssociateCreatedArtifactInput(v *AssociateC } } - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if v.MigrationTaskName != nil { @@ -941,9 +933,9 @@ func awsAwsjson11_serializeOpDocumentAssociateDiscoveredResourceInput(v *Associa } } - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if v.MigrationTaskName != nil { @@ -963,9 +955,9 @@ func awsAwsjson11_serializeOpDocumentCreateProgressUpdateStreamInput(v *CreatePr object := value.Object() defer object.Close() - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if v.ProgressUpdateStreamName != nil { @@ -980,9 +972,9 @@ func awsAwsjson11_serializeOpDocumentDeleteProgressUpdateStreamInput(v *DeletePr object := value.Object() defer object.Close() - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if v.ProgressUpdateStreamName != nil { @@ -1031,9 +1023,9 @@ func awsAwsjson11_serializeOpDocumentDisassociateCreatedArtifactInput(v *Disasso ok.String(*v.CreatedArtifactName) } - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if v.MigrationTaskName != nil { @@ -1058,9 +1050,9 @@ func awsAwsjson11_serializeOpDocumentDisassociateDiscoveredResourceInput(v *Disa ok.String(*v.ConfigurationId) } - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if v.MigrationTaskName != nil { @@ -1080,9 +1072,9 @@ func awsAwsjson11_serializeOpDocumentImportMigrationTaskInput(v *ImportMigration object := value.Object() defer object.Close() - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if v.MigrationTaskName != nil { @@ -1224,9 +1216,9 @@ func awsAwsjson11_serializeOpDocumentNotifyApplicationStateInput(v *NotifyApplic ok.String(*v.ApplicationId) } - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if len(v.Status) > 0 { @@ -1246,9 +1238,9 @@ func awsAwsjson11_serializeOpDocumentNotifyMigrationTaskStateInput(v *NotifyMigr object := value.Object() defer object.Close() - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if v.MigrationTaskName != nil { @@ -1256,9 +1248,9 @@ func awsAwsjson11_serializeOpDocumentNotifyMigrationTaskStateInput(v *NotifyMigr ok.String(*v.MigrationTaskName) } - if v.NextUpdateSeconds != nil { + if v.NextUpdateSeconds != 0 { ok := object.Key("NextUpdateSeconds") - ok.Integer(*v.NextUpdateSeconds) + ok.Integer(v.NextUpdateSeconds) } if v.ProgressUpdateStream != nil { @@ -1285,9 +1277,9 @@ func awsAwsjson11_serializeOpDocumentPutResourceAttributesInput(v *PutResourceAt object := value.Object() defer object.Close() - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if v.MigrationTaskName != nil { diff --git a/service/migrationhub/types/errors.go b/service/migrationhub/types/errors.go index 111eccf4778..fe6af9ce869 100644 --- a/service/migrationhub/types/errors.go +++ b/service/migrationhub/types/errors.go @@ -156,7 +156,7 @@ func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return sm type ThrottlingException struct { Message *string - RetryAfterSeconds *int32 + RetryAfterSeconds int32 } func (e *ThrottlingException) Error() string { diff --git a/service/migrationhub/types/types.go b/service/migrationhub/types/types.go index 1e15e08f914..9d952114dcf 100644 --- a/service/migrationhub/types/types.go +++ b/service/migrationhub/types/types.go @@ -61,7 +61,7 @@ type MigrationTask struct { // Information about the resource that is being migrated. This data will be used to // map the task to a resource in the Application Discovery Service repository. - ResourceAttributeList []*ResourceAttribute + ResourceAttributeList []ResourceAttribute // Task object encapsulating task information. Task *Task diff --git a/service/migrationhub/validators.go b/service/migrationhub/validators.go index ebe97988e82..f90a0dcd8fe 100644 --- a/service/migrationhub/validators.go +++ b/service/migrationhub/validators.go @@ -394,13 +394,13 @@ func validateResourceAttribute(v *types.ResourceAttribute) error { } } -func validateResourceAttributeList(v []*types.ResourceAttribute) error { +func validateResourceAttributeList(v []types.ResourceAttribute) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceAttributeList"} for i := range v { - if err := validateResourceAttribute(v[i]); err != nil { + if err := validateResourceAttribute(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -671,9 +671,6 @@ func validateOpNotifyMigrationTaskStateInput(v *NotifyMigrationTaskStateInput) e invalidParams.AddNested("Task", err.(smithy.InvalidParamsError)) } } - if v.NextUpdateSeconds == nil { - invalidParams.Add(smithy.NewErrParamRequired("NextUpdateSeconds")) - } if v.MigrationTaskName == nil { invalidParams.Add(smithy.NewErrParamRequired("MigrationTaskName")) } diff --git a/service/migrationhubconfig/api_op_CreateHomeRegionControl.go b/service/migrationhubconfig/api_op_CreateHomeRegionControl.go index d7b5a776f37..1a3c6629ee2 100644 --- a/service/migrationhubconfig/api_op_CreateHomeRegionControl.go +++ b/service/migrationhubconfig/api_op_CreateHomeRegionControl.go @@ -42,7 +42,7 @@ type CreateHomeRegionControlInput struct { // Optional Boolean flag to indicate whether any effect should take place. It tests // whether the caller has permission to make the call. - DryRun *bool + DryRun bool } type CreateHomeRegionControlOutput struct { diff --git a/service/migrationhubconfig/api_op_DescribeHomeRegionControls.go b/service/migrationhubconfig/api_op_DescribeHomeRegionControls.go index 0f5bcce1c62..2496eb6b2a8 100644 --- a/service/migrationhubconfig/api_op_DescribeHomeRegionControls.go +++ b/service/migrationhubconfig/api_op_DescribeHomeRegionControls.go @@ -52,7 +52,7 @@ type DescribeHomeRegionControlsInput struct { type DescribeHomeRegionControlsOutput struct { // An array that contains your HomeRegionControl objects. - HomeRegionControls []*types.HomeRegionControl + HomeRegionControls []types.HomeRegionControl // If a NextToken was returned by a previous call, more results are available. To // retrieve the next page of results, make the call again using the returned token diff --git a/service/migrationhubconfig/deserializers.go b/service/migrationhubconfig/deserializers.go index 90da25d264e..80c936f9bf7 100644 --- a/service/migrationhubconfig/deserializers.go +++ b/service/migrationhubconfig/deserializers.go @@ -629,7 +629,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -669,7 +669,7 @@ func awsAwsjson11_deserializeDocumentDryRunOperation(v **types.DryRunOperation, if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -709,7 +709,7 @@ func awsAwsjson11_deserializeDocumentHomeRegionControl(v **types.HomeRegionContr if !ok { return fmt.Errorf("expected ControlId to be of type string, got %T instead", value) } - sv.ControlId = &jtv + sv.ControlId = ptr.String(jtv) } case "HomeRegion": @@ -718,7 +718,7 @@ func awsAwsjson11_deserializeDocumentHomeRegionControl(v **types.HomeRegionContr if !ok { return fmt.Errorf("expected HomeRegion to be of type string, got %T instead", value) } - sv.HomeRegion = &jtv + sv.HomeRegion = ptr.String(jtv) } case "RequestedTime": @@ -748,7 +748,7 @@ func awsAwsjson11_deserializeDocumentHomeRegionControl(v **types.HomeRegionContr return nil } -func awsAwsjson11_deserializeDocumentHomeRegionControls(v *[]*types.HomeRegionControl, value interface{}) error { +func awsAwsjson11_deserializeDocumentHomeRegionControls(v *[]types.HomeRegionControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -761,18 +761,20 @@ func awsAwsjson11_deserializeDocumentHomeRegionControls(v *[]*types.HomeRegionCo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HomeRegionControl + var cv []types.HomeRegionControl if *v == nil { - cv = []*types.HomeRegionControl{} + cv = []types.HomeRegionControl{} } else { cv = *v } for _, value := range shape { - var col *types.HomeRegionControl - if err := awsAwsjson11_deserializeDocumentHomeRegionControl(&col, value); err != nil { + var col types.HomeRegionControl + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHomeRegionControl(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -808,7 +810,7 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -848,7 +850,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -888,7 +890,7 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -928,7 +930,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Type": @@ -977,7 +979,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RetryAfterSeconds": @@ -990,7 +992,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if err != nil { return err } - sv.RetryAfterSeconds = ptr.Int32(int32(i64)) + sv.RetryAfterSeconds = int32(i64) } default: @@ -1071,7 +1073,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHomeRegionControlsOutput(v **Desc if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1111,7 +1113,7 @@ func awsAwsjson11_deserializeOpDocumentGetHomeRegionOutput(v **GetHomeRegionOutp if !ok { return fmt.Errorf("expected HomeRegion to be of type string, got %T instead", value) } - sv.HomeRegion = &jtv + sv.HomeRegion = ptr.String(jtv) } default: diff --git a/service/migrationhubconfig/go.mod b/service/migrationhubconfig/go.mod index ba46fcdb3e2..893be53abdf 100644 --- a/service/migrationhubconfig/go.mod +++ b/service/migrationhubconfig/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhubconfig go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/migrationhubconfig/serializers.go b/service/migrationhubconfig/serializers.go index 08b126abf51..df246d5a0f9 100644 --- a/service/migrationhubconfig/serializers.go +++ b/service/migrationhubconfig/serializers.go @@ -165,9 +165,9 @@ func awsAwsjson11_serializeOpDocumentCreateHomeRegionControlInput(v *CreateHomeR object := value.Object() defer object.Close() - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if v.HomeRegion != nil { diff --git a/service/migrationhubconfig/types/errors.go b/service/migrationhubconfig/types/errors.go index 71a910e51ab..e129a1a3c7a 100644 --- a/service/migrationhubconfig/types/errors.go +++ b/service/migrationhubconfig/types/errors.go @@ -100,7 +100,7 @@ func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return sm type ThrottlingException struct { Message *string - RetryAfterSeconds *int32 + RetryAfterSeconds int32 } func (e *ThrottlingException) Error() string { diff --git a/service/mobile/api_op_DeleteProject.go b/service/mobile/api_op_DeleteProject.go index 4fb30426835..065736fe0c3 100644 --- a/service/mobile/api_op_DeleteProject.go +++ b/service/mobile/api_op_DeleteProject.go @@ -40,11 +40,11 @@ type DeleteProjectInput struct { type DeleteProjectOutput struct { // Resources which were deleted. - DeletedResources []*types.Resource + DeletedResources []types.Resource // Resources which were not deleted, due to a risk of losing potentially important // data or files. - OrphanedResources []*types.Resource + OrphanedResources []types.Resource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mobile/api_op_DescribeProject.go b/service/mobile/api_op_DescribeProject.go index 95fb9c54a22..35860d8a202 100644 --- a/service/mobile/api_op_DescribeProject.go +++ b/service/mobile/api_op_DescribeProject.go @@ -38,7 +38,7 @@ type DescribeProjectInput struct { // If set to true, causes AWS Mobile Hub to synchronize information from other // services, e.g., update state of AWS CloudFormation stacks in the AWS Mobile Hub // project. - SyncFromResources *bool + SyncFromResources bool } // Result structure used for requests of project details. diff --git a/service/mobile/api_op_ListBundles.go b/service/mobile/api_op_ListBundles.go index 242dcfbea35..1f458543595 100644 --- a/service/mobile/api_op_ListBundles.go +++ b/service/mobile/api_op_ListBundles.go @@ -31,7 +31,7 @@ func (c *Client) ListBundles(ctx context.Context, params *ListBundlesInput, optF type ListBundlesInput struct { // Maximum number of records to list in a single response. - MaxResults *int32 + MaxResults int32 // Pagination token. Set to null to start listing bundles from start. If non-null // pagination token is returned in a result, then pass its value in here in another @@ -43,7 +43,7 @@ type ListBundlesInput struct { type ListBundlesOutput struct { // A list of bundles. - BundleList []*types.BundleDetails + BundleList []types.BundleDetails // Pagination token. If non-null pagination token is returned in a result, then // pass its value in another request to fetch more entries. diff --git a/service/mobile/api_op_ListProjects.go b/service/mobile/api_op_ListProjects.go index 692c412599e..4ffdcf1c9b9 100644 --- a/service/mobile/api_op_ListProjects.go +++ b/service/mobile/api_op_ListProjects.go @@ -31,7 +31,7 @@ func (c *Client) ListProjects(ctx context.Context, params *ListProjectsInput, op type ListProjectsInput struct { // Maximum number of records to list in a single response. - MaxResults *int32 + MaxResults int32 // Pagination token. Set to null to start listing projects from start. If non-null // pagination token is returned in a result, then pass its value in here in another @@ -48,7 +48,7 @@ type ListProjectsOutput struct { NextToken *string // List of projects. - Projects []*types.ProjectSummary + Projects []types.ProjectSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mobile/deserializers.go b/service/mobile/deserializers.go index 94a5cba2341..801c889b81a 100644 --- a/service/mobile/deserializers.go +++ b/service/mobile/deserializers.go @@ -826,7 +826,7 @@ func awsRestjson1_deserializeOpDocumentExportBundleOutput(v **ExportBundleOutput if !ok { return fmt.Errorf("expected DownloadUrl to be of type string, got %T instead", value) } - sv.DownloadUrl = &jtv + sv.DownloadUrl = ptr.String(jtv) } default: @@ -992,7 +992,7 @@ func awsRestjson1_deserializeOpDocumentExportProjectOutput(v **ExportProjectOutp if !ok { return fmt.Errorf("expected DownloadUrl to be of type string, got %T instead", value) } - sv.DownloadUrl = &jtv + sv.DownloadUrl = ptr.String(jtv) } case "shareUrl": @@ -1001,7 +1001,7 @@ func awsRestjson1_deserializeOpDocumentExportProjectOutput(v **ExportProjectOutp if !ok { return fmt.Errorf("expected ShareUrl to be of type string, got %T instead", value) } - sv.ShareUrl = &jtv + sv.ShareUrl = ptr.String(jtv) } case "snapshotId": @@ -1010,7 +1010,7 @@ func awsRestjson1_deserializeOpDocumentExportProjectOutput(v **ExportProjectOutp if !ok { return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.SnapshotId = &jtv + sv.SnapshotId = ptr.String(jtv) } default: @@ -1178,7 +1178,7 @@ func awsRestjson1_deserializeOpDocumentListBundlesOutput(v **ListBundlesOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1341,7 +1341,7 @@ func awsRestjson1_deserializeOpDocumentListProjectsOutput(v **ListProjectsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "projects": @@ -1890,7 +1890,7 @@ func awsRestjson1_deserializeDocumentAccountActionRequiredException(v **types.Ac if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1902,7 +1902,7 @@ func awsRestjson1_deserializeDocumentAccountActionRequiredException(v **types.Ac return nil } -func awsRestjson1_deserializeDocumentAttributes(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAttributes(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1915,21 +1915,21 @@ func awsRestjson1_deserializeDocumentAttributes(v *map[string]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -1966,7 +1966,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2011,7 +2011,7 @@ func awsRestjson1_deserializeDocumentBundleDetails(v **types.BundleDetails, valu if !ok { return fmt.Errorf("expected BundleId to be of type string, got %T instead", value) } - sv.BundleId = &jtv + sv.BundleId = ptr.String(jtv) } case "description": @@ -2020,7 +2020,7 @@ func awsRestjson1_deserializeDocumentBundleDetails(v **types.BundleDetails, valu if !ok { return fmt.Errorf("expected BundleDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "iconUrl": @@ -2029,7 +2029,7 @@ func awsRestjson1_deserializeDocumentBundleDetails(v **types.BundleDetails, valu if !ok { return fmt.Errorf("expected IconUrl to be of type string, got %T instead", value) } - sv.IconUrl = &jtv + sv.IconUrl = ptr.String(jtv) } case "title": @@ -2038,7 +2038,7 @@ func awsRestjson1_deserializeDocumentBundleDetails(v **types.BundleDetails, valu if !ok { return fmt.Errorf("expected BundleTitle to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } case "version": @@ -2047,7 +2047,7 @@ func awsRestjson1_deserializeDocumentBundleDetails(v **types.BundleDetails, valu if !ok { return fmt.Errorf("expected BundleVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -2059,7 +2059,7 @@ func awsRestjson1_deserializeDocumentBundleDetails(v **types.BundleDetails, valu return nil } -func awsRestjson1_deserializeDocumentBundleList(v *[]*types.BundleDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentBundleList(v *[]types.BundleDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2072,18 +2072,20 @@ func awsRestjson1_deserializeDocumentBundleList(v *[]*types.BundleDetails, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BundleDetails + var cv []types.BundleDetails if *v == nil { - cv = []*types.BundleDetails{} + cv = []types.BundleDetails{} } else { cv = *v } for _, value := range shape { - var col *types.BundleDetails - if err := awsRestjson1_deserializeDocumentBundleDetails(&col, value); err != nil { + var col types.BundleDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentBundleDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2119,7 +2121,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2159,7 +2161,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryAfterSeconds": @@ -2168,7 +2170,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.RetryAfterSeconds = &jtv + sv.RetryAfterSeconds = ptr.String(jtv) } default: @@ -2208,7 +2210,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2284,7 +2286,7 @@ func awsRestjson1_deserializeDocumentProjectDetails(v **types.ProjectDetails, va if !ok { return fmt.Errorf("expected ConsoleUrl to be of type string, got %T instead", value) } - sv.ConsoleUrl = &jtv + sv.ConsoleUrl = ptr.String(jtv) } case "createdDate": @@ -2319,7 +2321,7 @@ func awsRestjson1_deserializeDocumentProjectDetails(v **types.ProjectDetails, va if !ok { return fmt.Errorf("expected ProjectName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "projectId": @@ -2328,7 +2330,7 @@ func awsRestjson1_deserializeDocumentProjectDetails(v **types.ProjectDetails, va if !ok { return fmt.Errorf("expected ProjectId to be of type string, got %T instead", value) } - sv.ProjectId = &jtv + sv.ProjectId = ptr.String(jtv) } case "region": @@ -2337,7 +2339,7 @@ func awsRestjson1_deserializeDocumentProjectDetails(v **types.ProjectDetails, va if !ok { return fmt.Errorf("expected ProjectRegion to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "resources": @@ -2363,7 +2365,7 @@ func awsRestjson1_deserializeDocumentProjectDetails(v **types.ProjectDetails, va return nil } -func awsRestjson1_deserializeDocumentProjectSummaries(v *[]*types.ProjectSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentProjectSummaries(v *[]types.ProjectSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2376,18 +2378,20 @@ func awsRestjson1_deserializeDocumentProjectSummaries(v *[]*types.ProjectSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProjectSummary + var cv []types.ProjectSummary if *v == nil { - cv = []*types.ProjectSummary{} + cv = []types.ProjectSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProjectSummary - if err := awsRestjson1_deserializeDocumentProjectSummary(&col, value); err != nil { + var col types.ProjectSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentProjectSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2423,7 +2427,7 @@ func awsRestjson1_deserializeDocumentProjectSummary(v **types.ProjectSummary, va if !ok { return fmt.Errorf("expected ProjectName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "projectId": @@ -2432,7 +2436,7 @@ func awsRestjson1_deserializeDocumentProjectSummary(v **types.ProjectSummary, va if !ok { return fmt.Errorf("expected ProjectId to be of type string, got %T instead", value) } - sv.ProjectId = &jtv + sv.ProjectId = ptr.String(jtv) } default: @@ -2472,7 +2476,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "attributes": @@ -2486,7 +2490,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected Feature to be of type string, got %T instead", value) } - sv.Feature = &jtv + sv.Feature = ptr.String(jtv) } case "name": @@ -2495,7 +2499,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "type": @@ -2504,7 +2508,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -2516,7 +2520,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac return nil } -func awsRestjson1_deserializeDocumentResources(v *[]*types.Resource, value interface{}) error { +func awsRestjson1_deserializeDocumentResources(v *[]types.Resource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2529,18 +2533,20 @@ func awsRestjson1_deserializeDocumentResources(v *[]*types.Resource, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Resource + var cv []types.Resource if *v == nil { - cv = []*types.Resource{} + cv = []types.Resource{} } else { cv = *v } for _, value := range shape { - var col *types.Resource - if err := awsRestjson1_deserializeDocumentResource(&col, value); err != nil { + var col types.Resource + destAddr := &col + if err := awsRestjson1_deserializeDocumentResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2576,7 +2582,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryAfterSeconds": @@ -2585,7 +2591,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.RetryAfterSeconds = &jtv + sv.RetryAfterSeconds = ptr.String(jtv) } default: @@ -2625,7 +2631,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "retryAfterSeconds": @@ -2634,7 +2640,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.RetryAfterSeconds = &jtv + sv.RetryAfterSeconds = ptr.String(jtv) } default: @@ -2674,7 +2680,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/mobile/go.mod b/service/mobile/go.mod index 0c6d5a5c395..008ad2cc4a3 100644 --- a/service/mobile/go.mod +++ b/service/mobile/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/mobile go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/mobile/serializers.go b/service/mobile/serializers.go index 00d5c891d9e..08aa08052db 100644 --- a/service/mobile/serializers.go +++ b/service/mobile/serializers.go @@ -140,13 +140,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteProjectInput(v *DeleteProjectInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProjectId == nil { + if v.ProjectId == nil || len(*v.ProjectId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} } if v.ProjectId != nil { - if len(*v.ProjectId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} - } if err := encoder.SetURI("projectId").String(*v.ProjectId); err != nil { return err } @@ -206,13 +203,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeBundleInput(v *DescribeBundleIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BundleId == nil { + if v.BundleId == nil || len(*v.BundleId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member bundleId must not be empty")} } if v.BundleId != nil { - if len(*v.BundleId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member bundleId must not be empty")} - } if err := encoder.SetURI("bundleId").String(*v.BundleId); err != nil { return err } @@ -276,8 +270,8 @@ func awsRestjson1_serializeOpHttpBindingsDescribeProjectInput(v *DescribeProject encoder.SetQuery("projectId").String(*v.ProjectId) } - if v.SyncFromResources != nil { - encoder.SetQuery("syncFromResources").Boolean(*v.SyncFromResources) + if v.SyncFromResources { + encoder.SetQuery("syncFromResources").Boolean(v.SyncFromResources) } return nil @@ -334,13 +328,10 @@ func awsRestjson1_serializeOpHttpBindingsExportBundleInput(v *ExportBundleInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BundleId == nil { + if v.BundleId == nil || len(*v.BundleId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member bundleId must not be empty")} } if v.BundleId != nil { - if len(*v.BundleId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member bundleId must not be empty")} - } if err := encoder.SetURI("bundleId").String(*v.BundleId); err != nil { return err } @@ -408,13 +399,10 @@ func awsRestjson1_serializeOpHttpBindingsExportProjectInput(v *ExportProjectInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProjectId == nil { + if v.ProjectId == nil || len(*v.ProjectId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} } if v.ProjectId != nil { - if len(*v.ProjectId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member projectId must not be empty")} - } if err := encoder.SetURI("projectId").String(*v.ProjectId); err != nil { return err } @@ -474,8 +462,8 @@ func awsRestjson1_serializeOpHttpBindingsListBundlesInput(v *ListBundlesInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -536,8 +524,8 @@ func awsRestjson1_serializeOpHttpBindingsListProjectsInput(v *ListProjectsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { diff --git a/service/mobile/types/types.go b/service/mobile/types/types.go index d01b7d2a3f4..de593e69ae6 100644 --- a/service/mobile/types/types.go +++ b/service/mobile/types/types.go @@ -50,7 +50,7 @@ type ProjectDetails struct { Region *string // List of AWS resources associated with a project. - Resources []*Resource + Resources []Resource // Synchronization state for a project. State ProjectState @@ -73,7 +73,7 @@ type Resource struct { Arn *string // Key-value attribute pairs. - Attributes map[string]*string + Attributes map[string]string // Identifies which feature in AWS Mobile Hub is associated with this AWS resource. Feature *string diff --git a/service/mq/api_op_CreateBroker.go b/service/mq/api_op_CreateBroker.go index b1ad4a6d9b2..c3129e19ef0 100644 --- a/service/mq/api_op_CreateBroker.go +++ b/service/mq/api_op_CreateBroker.go @@ -37,7 +37,7 @@ type CreateBrokerInput struct { // Required. Enables automatic upgrades to new minor versions for brokers, as // Apache releases the versions. The automatic upgrades occur during the // maintenance window of the broker or after a manual broker reboot. - AutoMinorVersionUpgrade *bool + AutoMinorVersionUpgrade bool // Required. The name of the broker. This value must be unique in your AWS account, // 1-50 characters long, must contain only letters, numbers, dashes, and @@ -84,11 +84,11 @@ type CreateBrokerInput struct { // Required. Enables connections from applications outside of the VPC that hosts // the broker's subnets. - PubliclyAccessible *bool + PubliclyAccessible bool // The list of security groups (1 minimum, 5 maximum) that authorizes connections // to brokers. - SecurityGroups []*string + SecurityGroups []string // The broker's storage type. StorageType types.BrokerStorageType @@ -97,16 +97,16 @@ type CreateBrokerInput struct { // broker can use from different Availability Zones. A SINGLE_INSTANCE deployment // requires one subnet (for example, the default subnet). An // ACTIVE_STANDBY_MULTI_AZ deployment requires two subnets. - SubnetIds []*string + SubnetIds []string // Create tags when creating the broker. - Tags map[string]*string + Tags map[string]string // Required. The list of ActiveMQ users (persons or applications) who can access // queues and topics. This value can contain only alphanumeric characters, dashes, // periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters // long. - Users []*types.User + Users []types.User } type CreateBrokerOutput struct { diff --git a/service/mq/api_op_CreateConfiguration.go b/service/mq/api_op_CreateConfiguration.go index 9ed9d7512e3..cb937dd63ff 100644 --- a/service/mq/api_op_CreateConfiguration.go +++ b/service/mq/api_op_CreateConfiguration.go @@ -51,7 +51,7 @@ type CreateConfigurationInput struct { Name *string // Create tags when creating the configuration. - Tags map[string]*string + Tags map[string]string } type CreateConfigurationOutput struct { diff --git a/service/mq/api_op_CreateTags.go b/service/mq/api_op_CreateTags.go index f639ad72b50..7b8a6e9d6e2 100644 --- a/service/mq/api_op_CreateTags.go +++ b/service/mq/api_op_CreateTags.go @@ -35,7 +35,7 @@ type CreateTagsInput struct { ResourceArn *string // The key-value pair for the resource tag. - Tags map[string]*string + Tags map[string]string } type CreateTagsOutput struct { diff --git a/service/mq/api_op_CreateUser.go b/service/mq/api_op_CreateUser.go index 00d3b710a21..6acde0aafc1 100644 --- a/service/mq/api_op_CreateUser.go +++ b/service/mq/api_op_CreateUser.go @@ -42,12 +42,12 @@ type CreateUserInput struct { Username *string // Enables access to the the ActiveMQ Web Console for the ActiveMQ user. - ConsoleAccess *bool + ConsoleAccess bool // The list of groups (20 maximum) to which the ActiveMQ user belongs. This value // can contain only alphanumeric characters, dashes, periods, underscores, and // tildes (- . _ ~). This value must be 2-100 characters long. - Groups []*string + Groups []string // Required. The password of the user. This value must be at least 12 characters // long, must contain at least 4 unique characters, and must not contain commas. diff --git a/service/mq/api_op_DeleteTags.go b/service/mq/api_op_DeleteTags.go index d7494aeca24..dcdbc6ad2d8 100644 --- a/service/mq/api_op_DeleteTags.go +++ b/service/mq/api_op_DeleteTags.go @@ -36,7 +36,7 @@ type DeleteTagsInput struct { // An array of tag keys to delete // // This member is required. - TagKeys []*string + TagKeys []string } type DeleteTagsOutput struct { diff --git a/service/mq/api_op_DescribeBroker.go b/service/mq/api_op_DescribeBroker.go index c3e3fa0a98b..873ece73a93 100644 --- a/service/mq/api_op_DescribeBroker.go +++ b/service/mq/api_op_DescribeBroker.go @@ -47,7 +47,7 @@ type DescribeBrokerOutput struct { // Required. Enables automatic upgrades to new minor versions for brokers, as // Apache releases the versions. The automatic upgrades occur during the // maintenance window of the broker or after a manual broker reboot. - AutoMinorVersionUpgrade *bool + AutoMinorVersionUpgrade bool // The Amazon Resource Name (ARN) of the broker. BrokerArn *string @@ -56,7 +56,7 @@ type DescribeBrokerOutput struct { BrokerId *string // A list of information about allocated brokers. - BrokerInstances []*types.BrokerInstance + BrokerInstances []types.BrokerInstance // The name of the broker. This value must be unique in your AWS account, 1-50 // characters long, must contain only letters, numbers, dashes, and underscores, @@ -119,15 +119,15 @@ type DescribeBrokerOutput struct { PendingLdapServerMetadata *types.LdapServerMetadataOutput // The list of pending security groups to authorize connections to brokers. - PendingSecurityGroups []*string + PendingSecurityGroups []string // Required. Enables connections from applications outside of the VPC that hosts // the broker's subnets. - PubliclyAccessible *bool + PubliclyAccessible bool // The list of security groups (1 minimum, 5 maximum) that authorizes connections // to brokers. - SecurityGroups []*string + SecurityGroups []string // The broker's storage type. StorageType types.BrokerStorageType @@ -136,13 +136,13 @@ type DescribeBrokerOutput struct { // broker can use from different Availability Zones. A SINGLE_INSTANCE deployment // requires one subnet (for example, the default subnet). An // ACTIVE_STANDBY_MULTI_AZ deployment requires two subnets. - SubnetIds []*string + SubnetIds []string // The list of all tags associated with this broker. - Tags map[string]*string + Tags map[string]string // The list of all ActiveMQ usernames for the specified broker. - Users []*types.UserSummary + Users []types.UserSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mq/api_op_DescribeBrokerEngineTypes.go b/service/mq/api_op_DescribeBrokerEngineTypes.go index ad56a1b3d74..444cdae4c12 100644 --- a/service/mq/api_op_DescribeBrokerEngineTypes.go +++ b/service/mq/api_op_DescribeBrokerEngineTypes.go @@ -34,7 +34,7 @@ type DescribeBrokerEngineTypesInput struct { // The maximum number of engine types that Amazon MQ can return per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults *int32 + MaxResults int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. @@ -44,11 +44,11 @@ type DescribeBrokerEngineTypesInput struct { type DescribeBrokerEngineTypesOutput struct { // List of available engine types and versions. - BrokerEngineTypes []*types.BrokerEngineType + BrokerEngineTypes []types.BrokerEngineType // Required. The maximum number of engine types that can be returned per page (20 // by default). This value must be an integer from 5 to 100. - MaxResults *int32 + MaxResults int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. diff --git a/service/mq/api_op_DescribeBrokerInstanceOptions.go b/service/mq/api_op_DescribeBrokerInstanceOptions.go index b2ad47f924c..07ba45250f2 100644 --- a/service/mq/api_op_DescribeBrokerInstanceOptions.go +++ b/service/mq/api_op_DescribeBrokerInstanceOptions.go @@ -37,7 +37,7 @@ type DescribeBrokerInstanceOptionsInput struct { // The maximum number of instance options that Amazon MQ can return per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults *int32 + MaxResults int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. @@ -50,11 +50,11 @@ type DescribeBrokerInstanceOptionsInput struct { type DescribeBrokerInstanceOptionsOutput struct { // List of available broker instance options. - BrokerInstanceOptions []*types.BrokerInstanceOption + BrokerInstanceOptions []types.BrokerInstanceOption // Required. The maximum number of instance options that can be returned per page // (20 by default). This value must be an integer from 5 to 100. - MaxResults *int32 + MaxResults int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. diff --git a/service/mq/api_op_DescribeConfiguration.go b/service/mq/api_op_DescribeConfiguration.go index 8e6792b6c95..5ec6bb8ea0c 100644 --- a/service/mq/api_op_DescribeConfiguration.go +++ b/service/mq/api_op_DescribeConfiguration.go @@ -71,7 +71,7 @@ type DescribeConfigurationOutput struct { Name *string // The list of all tags associated with this configuration. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mq/api_op_DescribeUser.go b/service/mq/api_op_DescribeUser.go index 84fd9c8535e..4cb1e1eb77c 100644 --- a/service/mq/api_op_DescribeUser.go +++ b/service/mq/api_op_DescribeUser.go @@ -48,12 +48,12 @@ type DescribeUserOutput struct { BrokerId *string // Enables access to the the ActiveMQ Web Console for the ActiveMQ user. - ConsoleAccess *bool + ConsoleAccess bool // The list of groups (20 maximum) to which the ActiveMQ user belongs. This value // can contain only alphanumeric characters, dashes, periods, underscores, and // tildes (- . _ ~). This value must be 2-100 characters long. - Groups []*string + Groups []string // The status of the changes pending for the ActiveMQ user. Pending *types.UserPendingChanges diff --git a/service/mq/api_op_ListBrokers.go b/service/mq/api_op_ListBrokers.go index 45b578b4be5..8e9a5d1bcd3 100644 --- a/service/mq/api_op_ListBrokers.go +++ b/service/mq/api_op_ListBrokers.go @@ -31,7 +31,7 @@ type ListBrokersInput struct { // The maximum number of brokers that Amazon MQ can return per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults *int32 + MaxResults int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. @@ -41,7 +41,7 @@ type ListBrokersInput struct { type ListBrokersOutput struct { // A list of information about all brokers. - BrokerSummaries []*types.BrokerSummary + BrokerSummaries []types.BrokerSummary // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. diff --git a/service/mq/api_op_ListConfigurationRevisions.go b/service/mq/api_op_ListConfigurationRevisions.go index 74a57cfcaaa..17971f2ff59 100644 --- a/service/mq/api_op_ListConfigurationRevisions.go +++ b/service/mq/api_op_ListConfigurationRevisions.go @@ -36,7 +36,7 @@ type ListConfigurationRevisionsInput struct { // The maximum number of configurations that Amazon MQ can return per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults *int32 + MaxResults int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. @@ -50,14 +50,14 @@ type ListConfigurationRevisionsOutput struct { // The maximum number of configuration revisions that can be returned per page (20 // by default). This value must be an integer from 5 to 100. - MaxResults *int32 + MaxResults int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. NextToken *string // The list of all revisions for the specified configuration. - Revisions []*types.ConfigurationRevision + Revisions []types.ConfigurationRevision // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mq/api_op_ListConfigurations.go b/service/mq/api_op_ListConfigurations.go index 90cb392c520..110c4309791 100644 --- a/service/mq/api_op_ListConfigurations.go +++ b/service/mq/api_op_ListConfigurations.go @@ -31,7 +31,7 @@ type ListConfigurationsInput struct { // The maximum number of configurations that Amazon MQ can return per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults *int32 + MaxResults int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. @@ -41,11 +41,11 @@ type ListConfigurationsInput struct { type ListConfigurationsOutput struct { // The list of all revisions for the specified configuration. - Configurations []*types.Configuration + Configurations []types.Configuration // The maximum number of configurations that Amazon MQ can return per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults *int32 + MaxResults int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. diff --git a/service/mq/api_op_ListTags.go b/service/mq/api_op_ListTags.go index 11425ffb68c..2e687cd463b 100644 --- a/service/mq/api_op_ListTags.go +++ b/service/mq/api_op_ListTags.go @@ -37,7 +37,7 @@ type ListTagsInput struct { type ListTagsOutput struct { // The key-value pair for the resource tag. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mq/api_op_ListUsers.go b/service/mq/api_op_ListUsers.go index e1e45fc66cd..0cac354d10e 100644 --- a/service/mq/api_op_ListUsers.go +++ b/service/mq/api_op_ListUsers.go @@ -36,7 +36,7 @@ type ListUsersInput struct { // The maximum number of ActiveMQ users that can be returned per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults *int32 + MaxResults int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. @@ -50,14 +50,14 @@ type ListUsersOutput struct { // Required. The maximum number of ActiveMQ users that can be returned per page (20 // by default). This value must be an integer from 5 to 100. - MaxResults *int32 + MaxResults int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. NextToken *string // Required. The list of all ActiveMQ usernames for the specified broker. - Users []*types.UserSummary + Users []types.UserSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mq/api_op_UpdateBroker.go b/service/mq/api_op_UpdateBroker.go index f21c88aba0b..b170851e48d 100644 --- a/service/mq/api_op_UpdateBroker.go +++ b/service/mq/api_op_UpdateBroker.go @@ -41,7 +41,7 @@ type UpdateBrokerInput struct { // Enables automatic upgrades to new minor versions for brokers, as Apache releases // the versions. The automatic upgrades occur during the maintenance window of the // broker or after a manual broker reboot. - AutoMinorVersionUpgrade *bool + AutoMinorVersionUpgrade bool // A list of information about the configuration. Configuration *types.ConfigurationId @@ -64,7 +64,7 @@ type UpdateBrokerInput struct { // The list of security groups (1 minimum, 5 maximum) that authorizes connections // to brokers. - SecurityGroups []*string + SecurityGroups []string } type UpdateBrokerOutput struct { @@ -73,7 +73,7 @@ type UpdateBrokerOutput struct { AuthenticationStrategy types.AuthenticationStrategy // The new value of automatic upgrades to new minor version for brokers. - AutoMinorVersionUpgrade *bool + AutoMinorVersionUpgrade bool // Required. The unique ID that Amazon MQ generates for the broker. BrokerId *string @@ -100,7 +100,7 @@ type UpdateBrokerOutput struct { // The list of security groups (1 minimum, 5 maximum) that authorizes connections // to brokers. - SecurityGroups []*string + SecurityGroups []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mq/api_op_UpdateConfiguration.go b/service/mq/api_op_UpdateConfiguration.go index 30ba7785924..d3a5fbb550b 100644 --- a/service/mq/api_op_UpdateConfiguration.go +++ b/service/mq/api_op_UpdateConfiguration.go @@ -64,7 +64,7 @@ type UpdateConfigurationOutput struct { // The list of the first 20 warnings about the configuration XML elements or // attributes that were sanitized. - Warnings []*types.SanitizationWarning + Warnings []types.SanitizationWarning // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mq/api_op_UpdateUser.go b/service/mq/api_op_UpdateUser.go index 83b2f054e60..7020557b6b2 100644 --- a/service/mq/api_op_UpdateUser.go +++ b/service/mq/api_op_UpdateUser.go @@ -42,12 +42,12 @@ type UpdateUserInput struct { Username *string // Enables access to the the ActiveMQ Web Console for the ActiveMQ user. - ConsoleAccess *bool + ConsoleAccess bool // The list of groups (20 maximum) to which the ActiveMQ user belongs. This value // can contain only alphanumeric characters, dashes, periods, underscores, and // tildes (- . _ ~). This value must be 2-100 characters long. - Groups []*string + Groups []string // The password of the user. This value must be at least 12 characters long, must // contain at least 4 unique characters, and must not contain commas. diff --git a/service/mq/deserializers.go b/service/mq/deserializers.go index 4c13869c40a..dc5b45a0af6 100644 --- a/service/mq/deserializers.go +++ b/service/mq/deserializers.go @@ -170,7 +170,7 @@ func awsRestjson1_deserializeOpDocumentCreateBrokerOutput(v **CreateBrokerOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BrokerArn = &jtv + sv.BrokerArn = ptr.String(jtv) } case "brokerId": @@ -179,7 +179,7 @@ func awsRestjson1_deserializeOpDocumentCreateBrokerOutput(v **CreateBrokerOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BrokerId = &jtv + sv.BrokerId = ptr.String(jtv) } default: @@ -339,7 +339,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationOutput(v **CreateConfi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authenticationStrategy": @@ -361,7 +361,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationOutput(v **CreateConfi if err != nil { return err } - sv.Created = &t + sv.Created = ptr.Time(t) } case "id": @@ -370,7 +370,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationOutput(v **CreateConfi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "latestRevision": @@ -384,7 +384,7 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationOutput(v **CreateConfi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -731,7 +731,7 @@ func awsRestjson1_deserializeOpDocumentDeleteBrokerOutput(v **DeleteBrokerOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BrokerId = &jtv + sv.BrokerId = ptr.String(jtv) } default: @@ -1084,7 +1084,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerOutput(v **DescribeBrokerOu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoMinorVersionUpgrade = &jtv + sv.AutoMinorVersionUpgrade = jtv } case "brokerArn": @@ -1093,7 +1093,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerOutput(v **DescribeBrokerOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BrokerArn = &jtv + sv.BrokerArn = ptr.String(jtv) } case "brokerId": @@ -1102,7 +1102,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerOutput(v **DescribeBrokerOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BrokerId = &jtv + sv.BrokerId = ptr.String(jtv) } case "brokerInstances": @@ -1116,7 +1116,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerOutput(v **DescribeBrokerOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BrokerName = &jtv + sv.BrokerName = ptr.String(jtv) } case "brokerState": @@ -1143,7 +1143,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerOutput(v **DescribeBrokerOu if err != nil { return err } - sv.Created = &t + sv.Created = ptr.Time(t) } case "deploymentMode": @@ -1175,7 +1175,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerOutput(v **DescribeBrokerOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "hostInstanceType": @@ -1184,7 +1184,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerOutput(v **DescribeBrokerOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.HostInstanceType = &jtv + sv.HostInstanceType = ptr.String(jtv) } case "ldapServerMetadata": @@ -1217,7 +1217,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerOutput(v **DescribeBrokerOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PendingEngineVersion = &jtv + sv.PendingEngineVersion = ptr.String(jtv) } case "pendingHostInstanceType": @@ -1226,7 +1226,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerOutput(v **DescribeBrokerOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PendingHostInstanceType = &jtv + sv.PendingHostInstanceType = ptr.String(jtv) } case "pendingLdapServerMetadata": @@ -1245,7 +1245,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerOutput(v **DescribeBrokerOu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.PubliclyAccessible = &jtv + sv.PubliclyAccessible = jtv } case "securityGroups": @@ -1440,7 +1440,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerEngineTypesOutput(v **Descr if err != nil { return err } - sv.MaxResults = ptr.Int32(int32(i64)) + sv.MaxResults = int32(i64) } case "nextToken": @@ -1449,7 +1449,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerEngineTypesOutput(v **Descr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1615,7 +1615,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerInstanceOptionsOutput(v **D if err != nil { return err } - sv.MaxResults = ptr.Int32(int32(i64)) + sv.MaxResults = int32(i64) } case "nextToken": @@ -1624,7 +1624,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerInstanceOptionsOutput(v **D if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1784,7 +1784,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authenticationStrategy": @@ -1806,7 +1806,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeC if err != nil { return err } - sv.Created = &t + sv.Created = ptr.Time(t) } case "description": @@ -1815,7 +1815,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "engineType": @@ -1833,7 +1833,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "id": @@ -1842,7 +1842,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "latestRevision": @@ -1856,7 +1856,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -2021,7 +2021,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationRevisionOutput(v **D if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ConfigurationId = &jtv + sv.ConfigurationId = ptr.String(jtv) } case "created": @@ -2034,7 +2034,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationRevisionOutput(v **D if err != nil { return err } - sv.Created = &t + sv.Created = ptr.Time(t) } case "data": @@ -2043,7 +2043,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationRevisionOutput(v **D if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Data = &jtv + sv.Data = ptr.String(jtv) } case "description": @@ -2052,7 +2052,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationRevisionOutput(v **D if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } default: @@ -2212,7 +2212,7 @@ func awsRestjson1_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BrokerId = &jtv + sv.BrokerId = ptr.String(jtv) } case "consoleAccess": @@ -2221,7 +2221,7 @@ func awsRestjson1_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ConsoleAccess = &jtv + sv.ConsoleAccess = jtv } case "groups": @@ -2240,7 +2240,7 @@ func awsRestjson1_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -2402,7 +2402,7 @@ func awsRestjson1_deserializeOpDocumentListBrokersOutput(v **ListBrokersOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2562,7 +2562,7 @@ func awsRestjson1_deserializeOpDocumentListConfigurationRevisionsOutput(v **List if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ConfigurationId = &jtv + sv.ConfigurationId = ptr.String(jtv) } case "maxResults": @@ -2575,7 +2575,7 @@ func awsRestjson1_deserializeOpDocumentListConfigurationRevisionsOutput(v **List if err != nil { return err } - sv.MaxResults = ptr.Int32(int32(i64)) + sv.MaxResults = int32(i64) } case "nextToken": @@ -2584,7 +2584,7 @@ func awsRestjson1_deserializeOpDocumentListConfigurationRevisionsOutput(v **List if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "revisions": @@ -2755,7 +2755,7 @@ func awsRestjson1_deserializeOpDocumentListConfigurationsOutput(v **ListConfigur if err != nil { return err } - sv.MaxResults = ptr.Int32(int32(i64)) + sv.MaxResults = int32(i64) } case "nextToken": @@ -2764,7 +2764,7 @@ func awsRestjson1_deserializeOpDocumentListConfigurationsOutput(v **ListConfigur if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3080,7 +3080,7 @@ func awsRestjson1_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BrokerId = &jtv + sv.BrokerId = ptr.String(jtv) } case "maxResults": @@ -3093,7 +3093,7 @@ func awsRestjson1_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu if err != nil { return err } - sv.MaxResults = ptr.Int32(int32(i64)) + sv.MaxResults = int32(i64) } case "nextToken": @@ -3102,7 +3102,7 @@ func awsRestjson1_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "users": @@ -3371,7 +3371,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBrokerOutput(v **UpdateBrokerOutput if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoMinorVersionUpgrade = &jtv + sv.AutoMinorVersionUpgrade = jtv } case "brokerId": @@ -3380,7 +3380,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBrokerOutput(v **UpdateBrokerOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BrokerId = &jtv + sv.BrokerId = ptr.String(jtv) } case "configuration": @@ -3394,7 +3394,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBrokerOutput(v **UpdateBrokerOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "hostInstanceType": @@ -3403,7 +3403,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBrokerOutput(v **UpdateBrokerOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.HostInstanceType = &jtv + sv.HostInstanceType = ptr.String(jtv) } case "ldapServerMetadata": @@ -3581,7 +3581,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigurationOutput(v **UpdateConfi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "created": @@ -3594,7 +3594,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigurationOutput(v **UpdateConfi if err != nil { return err } - sv.Created = &t + sv.Created = ptr.Time(t) } case "id": @@ -3603,7 +3603,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigurationOutput(v **UpdateConfi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "latestRevision": @@ -3617,7 +3617,7 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigurationOutput(v **UpdateConfi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "warnings": @@ -3945,7 +3945,7 @@ func awsRestjson1_deserializeErrorUnauthorizedException(response *smithyhttp.Res return output } -func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3958,21 +3958,21 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -3981,7 +3981,7 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return nil } -func awsRestjson1_deserializeDocument__listOfAvailabilityZone(v *[]*types.AvailabilityZone, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfAvailabilityZone(v *[]types.AvailabilityZone, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3994,18 +3994,20 @@ func awsRestjson1_deserializeDocument__listOfAvailabilityZone(v *[]*types.Availa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AvailabilityZone + var cv []types.AvailabilityZone if *v == nil { - cv = []*types.AvailabilityZone{} + cv = []types.AvailabilityZone{} } else { cv = *v } for _, value := range shape { - var col *types.AvailabilityZone - if err := awsRestjson1_deserializeDocumentAvailabilityZone(&col, value); err != nil { + var col types.AvailabilityZone + destAddr := &col + if err := awsRestjson1_deserializeDocumentAvailabilityZone(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4013,7 +4015,7 @@ func awsRestjson1_deserializeDocument__listOfAvailabilityZone(v *[]*types.Availa return nil } -func awsRestjson1_deserializeDocument__listOfBrokerEngineType(v *[]*types.BrokerEngineType, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfBrokerEngineType(v *[]types.BrokerEngineType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4026,18 +4028,20 @@ func awsRestjson1_deserializeDocument__listOfBrokerEngineType(v *[]*types.Broker return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BrokerEngineType + var cv []types.BrokerEngineType if *v == nil { - cv = []*types.BrokerEngineType{} + cv = []types.BrokerEngineType{} } else { cv = *v } for _, value := range shape { - var col *types.BrokerEngineType - if err := awsRestjson1_deserializeDocumentBrokerEngineType(&col, value); err != nil { + var col types.BrokerEngineType + destAddr := &col + if err := awsRestjson1_deserializeDocumentBrokerEngineType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4045,7 +4049,7 @@ func awsRestjson1_deserializeDocument__listOfBrokerEngineType(v *[]*types.Broker return nil } -func awsRestjson1_deserializeDocument__listOfBrokerInstance(v *[]*types.BrokerInstance, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfBrokerInstance(v *[]types.BrokerInstance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4058,18 +4062,20 @@ func awsRestjson1_deserializeDocument__listOfBrokerInstance(v *[]*types.BrokerIn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BrokerInstance + var cv []types.BrokerInstance if *v == nil { - cv = []*types.BrokerInstance{} + cv = []types.BrokerInstance{} } else { cv = *v } for _, value := range shape { - var col *types.BrokerInstance - if err := awsRestjson1_deserializeDocumentBrokerInstance(&col, value); err != nil { + var col types.BrokerInstance + destAddr := &col + if err := awsRestjson1_deserializeDocumentBrokerInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4077,7 +4083,7 @@ func awsRestjson1_deserializeDocument__listOfBrokerInstance(v *[]*types.BrokerIn return nil } -func awsRestjson1_deserializeDocument__listOfBrokerInstanceOption(v *[]*types.BrokerInstanceOption, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfBrokerInstanceOption(v *[]types.BrokerInstanceOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4090,18 +4096,20 @@ func awsRestjson1_deserializeDocument__listOfBrokerInstanceOption(v *[]*types.Br return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BrokerInstanceOption + var cv []types.BrokerInstanceOption if *v == nil { - cv = []*types.BrokerInstanceOption{} + cv = []types.BrokerInstanceOption{} } else { cv = *v } for _, value := range shape { - var col *types.BrokerInstanceOption - if err := awsRestjson1_deserializeDocumentBrokerInstanceOption(&col, value); err != nil { + var col types.BrokerInstanceOption + destAddr := &col + if err := awsRestjson1_deserializeDocumentBrokerInstanceOption(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4109,7 +4117,7 @@ func awsRestjson1_deserializeDocument__listOfBrokerInstanceOption(v *[]*types.Br return nil } -func awsRestjson1_deserializeDocument__listOfBrokerSummary(v *[]*types.BrokerSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfBrokerSummary(v *[]types.BrokerSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4122,18 +4130,20 @@ func awsRestjson1_deserializeDocument__listOfBrokerSummary(v *[]*types.BrokerSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BrokerSummary + var cv []types.BrokerSummary if *v == nil { - cv = []*types.BrokerSummary{} + cv = []types.BrokerSummary{} } else { cv = *v } for _, value := range shape { - var col *types.BrokerSummary - if err := awsRestjson1_deserializeDocumentBrokerSummary(&col, value); err != nil { + var col types.BrokerSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentBrokerSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4141,7 +4151,7 @@ func awsRestjson1_deserializeDocument__listOfBrokerSummary(v *[]*types.BrokerSum return nil } -func awsRestjson1_deserializeDocument__listOfConfiguration(v *[]*types.Configuration, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfConfiguration(v *[]types.Configuration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4154,18 +4164,20 @@ func awsRestjson1_deserializeDocument__listOfConfiguration(v *[]*types.Configura return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Configuration + var cv []types.Configuration if *v == nil { - cv = []*types.Configuration{} + cv = []types.Configuration{} } else { cv = *v } for _, value := range shape { - var col *types.Configuration - if err := awsRestjson1_deserializeDocumentConfiguration(&col, value); err != nil { + var col types.Configuration + destAddr := &col + if err := awsRestjson1_deserializeDocumentConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4173,7 +4185,7 @@ func awsRestjson1_deserializeDocument__listOfConfiguration(v *[]*types.Configura return nil } -func awsRestjson1_deserializeDocument__listOfConfigurationId(v *[]*types.ConfigurationId, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfConfigurationId(v *[]types.ConfigurationId, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4186,18 +4198,20 @@ func awsRestjson1_deserializeDocument__listOfConfigurationId(v *[]*types.Configu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfigurationId + var cv []types.ConfigurationId if *v == nil { - cv = []*types.ConfigurationId{} + cv = []types.ConfigurationId{} } else { cv = *v } for _, value := range shape { - var col *types.ConfigurationId - if err := awsRestjson1_deserializeDocumentConfigurationId(&col, value); err != nil { + var col types.ConfigurationId + destAddr := &col + if err := awsRestjson1_deserializeDocumentConfigurationId(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4205,7 +4219,7 @@ func awsRestjson1_deserializeDocument__listOfConfigurationId(v *[]*types.Configu return nil } -func awsRestjson1_deserializeDocument__listOfConfigurationRevision(v *[]*types.ConfigurationRevision, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfConfigurationRevision(v *[]types.ConfigurationRevision, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4218,18 +4232,20 @@ func awsRestjson1_deserializeDocument__listOfConfigurationRevision(v *[]*types.C return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConfigurationRevision + var cv []types.ConfigurationRevision if *v == nil { - cv = []*types.ConfigurationRevision{} + cv = []types.ConfigurationRevision{} } else { cv = *v } for _, value := range shape { - var col *types.ConfigurationRevision - if err := awsRestjson1_deserializeDocumentConfigurationRevision(&col, value); err != nil { + var col types.ConfigurationRevision + destAddr := &col + if err := awsRestjson1_deserializeDocumentConfigurationRevision(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4273,7 +4289,7 @@ func awsRestjson1_deserializeDocument__listOfDeploymentMode(v *[]types.Deploymen return nil } -func awsRestjson1_deserializeDocument__listOfEngineVersion(v *[]*types.EngineVersion, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfEngineVersion(v *[]types.EngineVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4286,18 +4302,20 @@ func awsRestjson1_deserializeDocument__listOfEngineVersion(v *[]*types.EngineVer return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EngineVersion + var cv []types.EngineVersion if *v == nil { - cv = []*types.EngineVersion{} + cv = []types.EngineVersion{} } else { cv = *v } for _, value := range shape { - var col *types.EngineVersion - if err := awsRestjson1_deserializeDocumentEngineVersion(&col, value); err != nil { + var col types.EngineVersion + destAddr := &col + if err := awsRestjson1_deserializeDocumentEngineVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4305,7 +4323,7 @@ func awsRestjson1_deserializeDocument__listOfEngineVersion(v *[]*types.EngineVer return nil } -func awsRestjson1_deserializeDocument__listOfSanitizationWarning(v *[]*types.SanitizationWarning, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfSanitizationWarning(v *[]types.SanitizationWarning, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4318,18 +4336,20 @@ func awsRestjson1_deserializeDocument__listOfSanitizationWarning(v *[]*types.San return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SanitizationWarning + var cv []types.SanitizationWarning if *v == nil { - cv = []*types.SanitizationWarning{} + cv = []types.SanitizationWarning{} } else { cv = *v } for _, value := range shape { - var col *types.SanitizationWarning - if err := awsRestjson1_deserializeDocumentSanitizationWarning(&col, value); err != nil { + var col types.SanitizationWarning + destAddr := &col + if err := awsRestjson1_deserializeDocumentSanitizationWarning(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4337,7 +4357,7 @@ func awsRestjson1_deserializeDocument__listOfSanitizationWarning(v *[]*types.San return nil } -func awsRestjson1_deserializeDocument__listOfUserSummary(v *[]*types.UserSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfUserSummary(v *[]types.UserSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4350,18 +4370,20 @@ func awsRestjson1_deserializeDocument__listOfUserSummary(v *[]*types.UserSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserSummary + var cv []types.UserSummary if *v == nil { - cv = []*types.UserSummary{} + cv = []types.UserSummary{} } else { cv = *v } for _, value := range shape { - var col *types.UserSummary - if err := awsRestjson1_deserializeDocumentUserSummary(&col, value); err != nil { + var col types.UserSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentUserSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4369,7 +4391,7 @@ func awsRestjson1_deserializeDocument__listOfUserSummary(v *[]*types.UserSummary return nil } -func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4382,21 +4404,21 @@ func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -4433,7 +4455,7 @@ func awsRestjson1_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -4473,7 +4495,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorAttribute = &jtv + sv.ErrorAttribute = ptr.String(jtv) } case "message": @@ -4482,7 +4504,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4567,7 +4589,7 @@ func awsRestjson1_deserializeDocumentBrokerInstance(v **types.BrokerInstance, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ConsoleURL = &jtv + sv.ConsoleURL = ptr.String(jtv) } case "endpoints": @@ -4581,7 +4603,7 @@ func awsRestjson1_deserializeDocumentBrokerInstance(v **types.BrokerInstance, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } default: @@ -4635,7 +4657,7 @@ func awsRestjson1_deserializeDocumentBrokerInstanceOption(v **types.BrokerInstan if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.HostInstanceType = &jtv + sv.HostInstanceType = ptr.String(jtv) } case "storageType": @@ -4694,7 +4716,7 @@ func awsRestjson1_deserializeDocumentBrokerSummary(v **types.BrokerSummary, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BrokerArn = &jtv + sv.BrokerArn = ptr.String(jtv) } case "brokerId": @@ -4703,7 +4725,7 @@ func awsRestjson1_deserializeDocumentBrokerSummary(v **types.BrokerSummary, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BrokerId = &jtv + sv.BrokerId = ptr.String(jtv) } case "brokerName": @@ -4712,7 +4734,7 @@ func awsRestjson1_deserializeDocumentBrokerSummary(v **types.BrokerSummary, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.BrokerName = &jtv + sv.BrokerName = ptr.String(jtv) } case "brokerState": @@ -4734,7 +4756,7 @@ func awsRestjson1_deserializeDocumentBrokerSummary(v **types.BrokerSummary, valu if err != nil { return err } - sv.Created = &t + sv.Created = ptr.Time(t) } case "deploymentMode": @@ -4752,7 +4774,7 @@ func awsRestjson1_deserializeDocumentBrokerSummary(v **types.BrokerSummary, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.HostInstanceType = &jtv + sv.HostInstanceType = ptr.String(jtv) } default: @@ -4792,7 +4814,7 @@ func awsRestjson1_deserializeDocumentConfiguration(v **types.Configuration, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "authenticationStrategy": @@ -4814,7 +4836,7 @@ func awsRestjson1_deserializeDocumentConfiguration(v **types.Configuration, valu if err != nil { return err } - sv.Created = &t + sv.Created = ptr.Time(t) } case "description": @@ -4823,7 +4845,7 @@ func awsRestjson1_deserializeDocumentConfiguration(v **types.Configuration, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "engineType": @@ -4841,7 +4863,7 @@ func awsRestjson1_deserializeDocumentConfiguration(v **types.Configuration, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "id": @@ -4850,7 +4872,7 @@ func awsRestjson1_deserializeDocumentConfiguration(v **types.Configuration, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "latestRevision": @@ -4864,7 +4886,7 @@ func awsRestjson1_deserializeDocumentConfiguration(v **types.Configuration, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -4909,7 +4931,7 @@ func awsRestjson1_deserializeDocumentConfigurationId(v **types.ConfigurationId, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "revision": @@ -4922,7 +4944,7 @@ func awsRestjson1_deserializeDocumentConfigurationId(v **types.ConfigurationId, if err != nil { return err } - sv.Revision = ptr.Int32(int32(i64)) + sv.Revision = int32(i64) } default: @@ -4966,7 +4988,7 @@ func awsRestjson1_deserializeDocumentConfigurationRevision(v **types.Configurati if err != nil { return err } - sv.Created = &t + sv.Created = ptr.Time(t) } case "description": @@ -4975,7 +4997,7 @@ func awsRestjson1_deserializeDocumentConfigurationRevision(v **types.Configurati if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "revision": @@ -4988,7 +5010,7 @@ func awsRestjson1_deserializeDocumentConfigurationRevision(v **types.Configurati if err != nil { return err } - sv.Revision = ptr.Int32(int32(i64)) + sv.Revision = int32(i64) } default: @@ -5074,7 +5096,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorAttribute = &jtv + sv.ErrorAttribute = ptr.String(jtv) } case "message": @@ -5083,7 +5105,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5123,7 +5145,7 @@ func awsRestjson1_deserializeDocumentEncryptionOptions(v **types.EncryptionOptio if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "useAwsOwnedKey": @@ -5132,7 +5154,7 @@ func awsRestjson1_deserializeDocumentEncryptionOptions(v **types.EncryptionOptio if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.UseAwsOwnedKey = &jtv + sv.UseAwsOwnedKey = jtv } default: @@ -5172,7 +5194,7 @@ func awsRestjson1_deserializeDocumentEngineVersion(v **types.EngineVersion, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5212,7 +5234,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorAttribute = &jtv + sv.ErrorAttribute = ptr.String(jtv) } case "message": @@ -5221,7 +5243,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5261,7 +5283,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorAttribute = &jtv + sv.ErrorAttribute = ptr.String(jtv) } case "message": @@ -5270,7 +5292,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5315,7 +5337,7 @@ func awsRestjson1_deserializeDocumentLdapServerMetadataOutput(v **types.LdapServ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleBase = &jtv + sv.RoleBase = ptr.String(jtv) } case "roleName": @@ -5324,7 +5346,7 @@ func awsRestjson1_deserializeDocumentLdapServerMetadataOutput(v **types.LdapServ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleName = &jtv + sv.RoleName = ptr.String(jtv) } case "roleSearchMatching": @@ -5333,7 +5355,7 @@ func awsRestjson1_deserializeDocumentLdapServerMetadataOutput(v **types.LdapServ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleSearchMatching = &jtv + sv.RoleSearchMatching = ptr.String(jtv) } case "roleSearchSubtree": @@ -5342,7 +5364,7 @@ func awsRestjson1_deserializeDocumentLdapServerMetadataOutput(v **types.LdapServ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.RoleSearchSubtree = &jtv + sv.RoleSearchSubtree = jtv } case "serviceAccountUsername": @@ -5351,7 +5373,7 @@ func awsRestjson1_deserializeDocumentLdapServerMetadataOutput(v **types.LdapServ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ServiceAccountUsername = &jtv + sv.ServiceAccountUsername = ptr.String(jtv) } case "userBase": @@ -5360,7 +5382,7 @@ func awsRestjson1_deserializeDocumentLdapServerMetadataOutput(v **types.LdapServ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.UserBase = &jtv + sv.UserBase = ptr.String(jtv) } case "userRoleName": @@ -5369,7 +5391,7 @@ func awsRestjson1_deserializeDocumentLdapServerMetadataOutput(v **types.LdapServ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.UserRoleName = &jtv + sv.UserRoleName = ptr.String(jtv) } case "userSearchMatching": @@ -5378,7 +5400,7 @@ func awsRestjson1_deserializeDocumentLdapServerMetadataOutput(v **types.LdapServ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.UserSearchMatching = &jtv + sv.UserSearchMatching = ptr.String(jtv) } case "userSearchSubtree": @@ -5387,7 +5409,7 @@ func awsRestjson1_deserializeDocumentLdapServerMetadataOutput(v **types.LdapServ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.UserSearchSubtree = &jtv + sv.UserSearchSubtree = jtv } default: @@ -5427,7 +5449,7 @@ func awsRestjson1_deserializeDocumentLogs(v **types.Logs, value interface{}) err if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Audit = &jtv + sv.Audit = jtv } case "general": @@ -5436,7 +5458,7 @@ func awsRestjson1_deserializeDocumentLogs(v **types.Logs, value interface{}) err if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.General = &jtv + sv.General = jtv } default: @@ -5476,7 +5498,7 @@ func awsRestjson1_deserializeDocumentLogsSummary(v **types.LogsSummary, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Audit = &jtv + sv.Audit = jtv } case "auditLogGroup": @@ -5485,7 +5507,7 @@ func awsRestjson1_deserializeDocumentLogsSummary(v **types.LogsSummary, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AuditLogGroup = &jtv + sv.AuditLogGroup = ptr.String(jtv) } case "general": @@ -5494,7 +5516,7 @@ func awsRestjson1_deserializeDocumentLogsSummary(v **types.LogsSummary, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.General = &jtv + sv.General = jtv } case "generalLogGroup": @@ -5503,7 +5525,7 @@ func awsRestjson1_deserializeDocumentLogsSummary(v **types.LogsSummary, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.GeneralLogGroup = &jtv + sv.GeneralLogGroup = ptr.String(jtv) } case "pending": @@ -5548,7 +5570,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorAttribute = &jtv + sv.ErrorAttribute = ptr.String(jtv) } case "message": @@ -5557,7 +5579,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5597,7 +5619,7 @@ func awsRestjson1_deserializeDocumentPendingLogs(v **types.PendingLogs, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Audit = &jtv + sv.Audit = jtv } case "general": @@ -5606,7 +5628,7 @@ func awsRestjson1_deserializeDocumentPendingLogs(v **types.PendingLogs, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.General = &jtv + sv.General = jtv } default: @@ -5646,7 +5668,7 @@ func awsRestjson1_deserializeDocumentSanitizationWarning(v **types.SanitizationW if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "elementName": @@ -5655,7 +5677,7 @@ func awsRestjson1_deserializeDocumentSanitizationWarning(v **types.SanitizationW if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ElementName = &jtv + sv.ElementName = ptr.String(jtv) } case "reason": @@ -5704,7 +5726,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorAttribute = &jtv + sv.ErrorAttribute = ptr.String(jtv) } case "message": @@ -5713,7 +5735,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5753,7 +5775,7 @@ func awsRestjson1_deserializeDocumentUserPendingChanges(v **types.UserPendingCha if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ConsoleAccess = &jtv + sv.ConsoleAccess = jtv } case "groups": @@ -5816,7 +5838,7 @@ func awsRestjson1_deserializeDocumentUserSummary(v **types.UserSummary, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -5865,7 +5887,7 @@ func awsRestjson1_deserializeDocumentWeeklyStartTime(v **types.WeeklyStartTime, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TimeOfDay = &jtv + sv.TimeOfDay = ptr.String(jtv) } case "timeZone": @@ -5874,7 +5896,7 @@ func awsRestjson1_deserializeDocumentWeeklyStartTime(v **types.WeeklyStartTime, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TimeZone = &jtv + sv.TimeZone = ptr.String(jtv) } default: diff --git a/service/mq/go.mod b/service/mq/go.mod index 4382592f274..94d455263be 100644 --- a/service/mq/go.mod +++ b/service/mq/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/mq go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/mq/serializers.go b/service/mq/serializers.go index f331d4fb767..d0acb1dc570 100644 --- a/service/mq/serializers.go +++ b/service/mq/serializers.go @@ -84,9 +84,9 @@ func awsRestjson1_serializeOpDocumentCreateBrokerInput(v *CreateBrokerInput, val ok.String(string(v.AuthenticationStrategy)) } - if v.AutoMinorVersionUpgrade != nil { + if v.AutoMinorVersionUpgrade { ok := object.Key("autoMinorVersionUpgrade") - ok.Boolean(*v.AutoMinorVersionUpgrade) + ok.Boolean(v.AutoMinorVersionUpgrade) } if v.BrokerName != nil { @@ -154,9 +154,9 @@ func awsRestjson1_serializeOpDocumentCreateBrokerInput(v *CreateBrokerInput, val } } - if v.PubliclyAccessible != nil { + if v.PubliclyAccessible { ok := object.Key("publiclyAccessible") - ok.Boolean(*v.PubliclyAccessible) + ok.Boolean(v.PubliclyAccessible) } if v.SecurityGroups != nil { @@ -352,13 +352,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateTagsInput(v *CreateTagsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -443,25 +440,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateUserInput(v *CreateUserInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BrokerId == nil { + if v.BrokerId == nil || len(*v.BrokerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} } if v.BrokerId != nil { - if len(*v.BrokerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} - } if err := encoder.SetURI("BrokerId").String(*v.BrokerId); err != nil { return err } } - if v.Username == nil { + 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 len(*v.Username) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Username must not be empty")} - } if err := encoder.SetURI("Username").String(*v.Username); err != nil { return err } @@ -474,9 +465,9 @@ func awsRestjson1_serializeOpDocumentCreateUserInput(v *CreateUserInput, value s object := value.Object() defer object.Close() - if v.ConsoleAccess != nil { + if v.ConsoleAccess { ok := object.Key("consoleAccess") - ok.Boolean(*v.ConsoleAccess) + ok.Boolean(v.ConsoleAccess) } if v.Groups != nil { @@ -545,13 +536,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBrokerInput(v *DeleteBrokerInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BrokerId == nil { + if v.BrokerId == nil || len(*v.BrokerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} } if v.BrokerId != nil { - if len(*v.BrokerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} - } if err := encoder.SetURI("BrokerId").String(*v.BrokerId); err != nil { return err } @@ -611,13 +599,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteTagsInput(v *DeleteTagsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -625,10 +610,7 @@ func awsRestjson1_serializeOpHttpBindingsDeleteTagsInput(v *DeleteTagsInput, enc if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -686,25 +668,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteUserInput(v *DeleteUserInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BrokerId == nil { + if v.BrokerId == nil || len(*v.BrokerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} } if v.BrokerId != nil { - if len(*v.BrokerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} - } if err := encoder.SetURI("BrokerId").String(*v.BrokerId); err != nil { return err } } - if v.Username == nil { + 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 len(*v.Username) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Username must not be empty")} - } if err := encoder.SetURI("Username").String(*v.Username); err != nil { return err } @@ -764,13 +740,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeBrokerInput(v *DescribeBrokerIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BrokerId == nil { + if v.BrokerId == nil || len(*v.BrokerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} } if v.BrokerId != nil { - if len(*v.BrokerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} - } if err := encoder.SetURI("BrokerId").String(*v.BrokerId); err != nil { return err } @@ -834,8 +807,8 @@ func awsRestjson1_serializeOpHttpBindingsDescribeBrokerEngineTypesInput(v *Descr encoder.SetQuery("engineType").String(*v.EngineType) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -904,8 +877,8 @@ func awsRestjson1_serializeOpHttpBindingsDescribeBrokerInstanceOptionsInput(v *D encoder.SetQuery("hostInstanceType").String(*v.HostInstanceType) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -970,13 +943,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeConfigurationInput(v *DescribeC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationId == nil { + if v.ConfigurationId == nil || len(*v.ConfigurationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationId must not be empty")} } if v.ConfigurationId != nil { - if len(*v.ConfigurationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationId must not be empty")} - } if err := encoder.SetURI("ConfigurationId").String(*v.ConfigurationId); err != nil { return err } @@ -1036,25 +1006,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeConfigurationRevisionInput(v *D return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationId == nil { + if v.ConfigurationId == nil || len(*v.ConfigurationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationId must not be empty")} } if v.ConfigurationId != nil { - if len(*v.ConfigurationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationId must not be empty")} - } if err := encoder.SetURI("ConfigurationId").String(*v.ConfigurationId); err != nil { return err } } - if v.ConfigurationRevision == nil { + if v.ConfigurationRevision == nil || len(*v.ConfigurationRevision) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationRevision must not be empty")} } if v.ConfigurationRevision != nil { - if len(*v.ConfigurationRevision) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationRevision must not be empty")} - } if err := encoder.SetURI("ConfigurationRevision").String(*v.ConfigurationRevision); err != nil { return err } @@ -1114,25 +1078,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeUserInput(v *DescribeUserInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BrokerId == nil { + if v.BrokerId == nil || len(*v.BrokerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} } if v.BrokerId != nil { - if len(*v.BrokerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} - } if err := encoder.SetURI("BrokerId").String(*v.BrokerId); err != nil { return err } } - if v.Username == nil { + 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 len(*v.Username) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Username must not be empty")} - } if err := encoder.SetURI("Username").String(*v.Username); err != nil { return err } @@ -1192,8 +1150,8 @@ func awsRestjson1_serializeOpHttpBindingsListBrokersInput(v *ListBrokersInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1254,20 +1212,17 @@ func awsRestjson1_serializeOpHttpBindingsListConfigurationRevisionsInput(v *List return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationId == nil { + if v.ConfigurationId == nil || len(*v.ConfigurationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationId must not be empty")} } if v.ConfigurationId != nil { - if len(*v.ConfigurationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationId must not be empty")} - } if err := encoder.SetURI("ConfigurationId").String(*v.ConfigurationId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1328,8 +1283,8 @@ func awsRestjson1_serializeOpHttpBindingsListConfigurationsInput(v *ListConfigur return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1390,13 +1345,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsInput(v *ListTagsInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1456,20 +1408,17 @@ func awsRestjson1_serializeOpHttpBindingsListUsersInput(v *ListUsersInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BrokerId == nil { + if v.BrokerId == nil || len(*v.BrokerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} } if v.BrokerId != nil { - if len(*v.BrokerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} - } if err := encoder.SetURI("BrokerId").String(*v.BrokerId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1530,13 +1479,10 @@ func awsRestjson1_serializeOpHttpBindingsRebootBrokerInput(v *RebootBrokerInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BrokerId == nil { + if v.BrokerId == nil || len(*v.BrokerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} } if v.BrokerId != nil { - if len(*v.BrokerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} - } if err := encoder.SetURI("BrokerId").String(*v.BrokerId); err != nil { return err } @@ -1607,13 +1553,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateBrokerInput(v *UpdateBrokerInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BrokerId == nil { + if v.BrokerId == nil || len(*v.BrokerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} } if v.BrokerId != nil { - if len(*v.BrokerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} - } if err := encoder.SetURI("BrokerId").String(*v.BrokerId); err != nil { return err } @@ -1631,9 +1574,9 @@ func awsRestjson1_serializeOpDocumentUpdateBrokerInput(v *UpdateBrokerInput, val ok.String(string(v.AuthenticationStrategy)) } - if v.AutoMinorVersionUpgrade != nil { + if v.AutoMinorVersionUpgrade { ok := object.Key("autoMinorVersionUpgrade") - ok.Boolean(*v.AutoMinorVersionUpgrade) + ok.Boolean(v.AutoMinorVersionUpgrade) } if v.Configuration != nil { @@ -1739,13 +1682,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateConfigurationInput(v *UpdateConfi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationId == nil { + if v.ConfigurationId == nil || len(*v.ConfigurationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationId must not be empty")} } if v.ConfigurationId != nil { - if len(*v.ConfigurationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationId must not be empty")} - } if err := encoder.SetURI("ConfigurationId").String(*v.ConfigurationId); err != nil { return err } @@ -1833,25 +1773,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUserInput(v *UpdateUserInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.BrokerId == nil { + if v.BrokerId == nil || len(*v.BrokerId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} } if v.BrokerId != nil { - if len(*v.BrokerId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member BrokerId must not be empty")} - } if err := encoder.SetURI("BrokerId").String(*v.BrokerId); err != nil { return err } } - if v.Username == nil { + 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 len(*v.Username) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Username must not be empty")} - } if err := encoder.SetURI("Username").String(*v.Username); err != nil { return err } @@ -1864,9 +1798,9 @@ func awsRestjson1_serializeOpDocumentUpdateUserInput(v *UpdateUserInput, value s object := value.Object() defer object.Close() - if v.ConsoleAccess != nil { + if v.ConsoleAccess { ok := object.Key("consoleAccess") - ok.Boolean(*v.ConsoleAccess) + ok.Boolean(v.ConsoleAccess) } if v.Groups != nil { @@ -1884,49 +1818,37 @@ func awsRestjson1_serializeOpDocumentUpdateUserInput(v *UpdateUserInput, value s return nil } -func awsRestjson1_serializeDocument__listOf__string(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOfUser(v []*types.User, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfUser(v []types.User, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentUser(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentUser(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__mapOf__string(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__mapOf__string(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1940,9 +1862,9 @@ func awsRestjson1_serializeDocumentConfigurationId(v *types.ConfigurationId, val ok.String(*v.Id) } - if v.Revision != nil { + if v.Revision != 0 { ok := object.Key("revision") - ok.Integer(*v.Revision) + ok.Integer(v.Revision) } return nil @@ -1957,9 +1879,9 @@ func awsRestjson1_serializeDocumentEncryptionOptions(v *types.EncryptionOptions, ok.String(*v.KmsKeyId) } - if v.UseAwsOwnedKey != nil { + if v.UseAwsOwnedKey { ok := object.Key("useAwsOwnedKey") - ok.Boolean(*v.UseAwsOwnedKey) + ok.Boolean(v.UseAwsOwnedKey) } return nil @@ -1991,9 +1913,9 @@ func awsRestjson1_serializeDocumentLdapServerMetadataInput(v *types.LdapServerMe ok.String(*v.RoleSearchMatching) } - if v.RoleSearchSubtree != nil { + if v.RoleSearchSubtree { ok := object.Key("roleSearchSubtree") - ok.Boolean(*v.RoleSearchSubtree) + ok.Boolean(v.RoleSearchSubtree) } if v.ServiceAccountPassword != nil { @@ -2021,9 +1943,9 @@ func awsRestjson1_serializeDocumentLdapServerMetadataInput(v *types.LdapServerMe ok.String(*v.UserSearchMatching) } - if v.UserSearchSubtree != nil { + if v.UserSearchSubtree { ok := object.Key("userSearchSubtree") - ok.Boolean(*v.UserSearchSubtree) + ok.Boolean(v.UserSearchSubtree) } return nil @@ -2033,14 +1955,14 @@ func awsRestjson1_serializeDocumentLogs(v *types.Logs, value smithyjson.Value) e object := value.Object() defer object.Close() - if v.Audit != nil { + if v.Audit { ok := object.Key("audit") - ok.Boolean(*v.Audit) + ok.Boolean(v.Audit) } - if v.General != nil { + if v.General { ok := object.Key("general") - ok.Boolean(*v.General) + ok.Boolean(v.General) } return nil @@ -2050,9 +1972,9 @@ func awsRestjson1_serializeDocumentUser(v *types.User, value smithyjson.Value) e object := value.Object() defer object.Close() - if v.ConsoleAccess != nil { + if v.ConsoleAccess { ok := object.Key("consoleAccess") - ok.Boolean(*v.ConsoleAccess) + ok.Boolean(v.ConsoleAccess) } if v.Groups != nil { diff --git a/service/mq/types/types.go b/service/mq/types/types.go index bd60024ca1c..9c75b7e99e9 100644 --- a/service/mq/types/types.go +++ b/service/mq/types/types.go @@ -20,7 +20,7 @@ type BrokerEngineType struct { EngineType EngineType // The list of engine versions. - EngineVersions []*EngineVersion + EngineVersions []EngineVersion } // Returns information about all brokers. @@ -30,7 +30,7 @@ type BrokerInstance struct { ConsoleURL *string // The broker's wire-level protocol endpoints. - Endpoints []*string + Endpoints []string // The IP address of the Elastic Network Interface (ENI) attached to the broker. IpAddress *string @@ -40,7 +40,7 @@ type BrokerInstance struct { type BrokerInstanceOption struct { // The list of available az. - AvailabilityZones []*AvailabilityZone + AvailabilityZones []AvailabilityZone // The type of broker engine. EngineType EngineType @@ -55,7 +55,7 @@ type BrokerInstanceOption struct { SupportedDeploymentModes []DeploymentMode // The list of supported engine versions. - SupportedEngineVersions []*string + SupportedEngineVersions []string } // The Amazon Resource Name (ARN) of the broker. @@ -122,7 +122,7 @@ type Configuration struct { Name *string // The list of all tags associated with this configuration. - Tags map[string]*string + Tags map[string]string } // A list of information about the configuration. @@ -132,7 +132,7 @@ type ConfigurationId struct { Id *string // The revision number of the configuration. - Revision *int32 + Revision int32 } // Returns information about the specified configuration revision. @@ -145,7 +145,7 @@ type ConfigurationRevision struct { Description *string // Required. The revision number of the configuration. - Revision *int32 + Revision int32 } // Broker configuration information @@ -155,7 +155,7 @@ type Configurations struct { Current *ConfigurationId // The history of configurations applied to the broker. - History []*ConfigurationId + History []ConfigurationId // The pending configuration of the broker. Pending *ConfigurationId @@ -167,7 +167,7 @@ type EncryptionOptions struct { // Enables the use of an AWS owned CMK using AWS Key Management Service (KMS). // // This member is required. - UseAwsOwnedKey *bool + UseAwsOwnedKey bool // The symmetric customer master key (CMK) to use for the AWS Key Management // Service (KMS). This key is used to encrypt your data at rest. If not provided, @@ -187,7 +187,7 @@ type EngineVersion struct { type LdapServerMetadataInput struct { // Fully qualified domain name of the LDAP server. Optional failover server. - Hosts []*string + Hosts []string // Fully qualified name of the directory to search for a user’s groups. RoleBase *string @@ -201,7 +201,7 @@ type LdapServerMetadataInput struct { // The directory search scope for the role. If set to true, scope is to search the // entire sub-tree. - RoleSearchSubtree *bool + RoleSearchSubtree bool // Service account password. ServiceAccountPassword *string @@ -220,7 +220,7 @@ type LdapServerMetadataInput struct { // The directory search scope for the user. If set to true, scope is to search the // entire sub-tree. - UserSearchSubtree *bool + UserSearchSubtree bool } // The metadata of the LDAP server used to authenticate and authorize connections @@ -228,7 +228,7 @@ type LdapServerMetadataInput struct { type LdapServerMetadataOutput struct { // Fully qualified domain name of the LDAP server. Optional failover server. - Hosts []*string + Hosts []string // Fully qualified name of the directory to search for a user’s groups. RoleBase *string @@ -242,7 +242,7 @@ type LdapServerMetadataOutput struct { // The directory search scope for the role. If set to true, scope is to search the // entire sub-tree. - RoleSearchSubtree *bool + RoleSearchSubtree bool // Service account username. ServiceAccountUsername *string @@ -258,7 +258,7 @@ type LdapServerMetadataOutput struct { // The directory search scope for the user. If set to true, scope is to search the // entire sub-tree. - UserSearchSubtree *bool + UserSearchSubtree bool } // The list of information about logs to be enabled for the specified broker. @@ -266,10 +266,10 @@ type Logs struct { // Enables audit logging. Every user management action made using JMX or the // ActiveMQ Web Console is logged. - Audit *bool + Audit bool // Enables general logging. - General *bool + General bool } // The list of information about logs currently enabled and pending to be deployed @@ -278,13 +278,13 @@ type LogsSummary struct { // Enables audit logging. Every user management action made using JMX or the // ActiveMQ Web Console is logged. - Audit *bool + Audit bool // The location of the CloudWatch Logs log group where audit logs are sent. AuditLogGroup *string // Enables general logging. - General *bool + General bool // The location of the CloudWatch Logs log group where general logs are sent. GeneralLogGroup *string @@ -299,10 +299,10 @@ type PendingLogs struct { // Enables audit logging. Every user management action made using JMX or the // ActiveMQ Web Console is logged. - Audit *bool + Audit bool // Enables general logging. - General *bool + General bool } // Returns information about the XML element or attribute that was sanitized in the @@ -323,12 +323,12 @@ type SanitizationWarning struct { type User struct { // Enables access to the the ActiveMQ Web Console for the ActiveMQ user. - ConsoleAccess *bool + ConsoleAccess bool // The list of groups (20 maximum) to which the ActiveMQ user belongs. This value // can contain only alphanumeric characters, dashes, periods, underscores, and // tildes (- . _ ~). This value must be 2-100 characters long. - Groups []*string + Groups []string // Required. The password of the ActiveMQ user. This value must be at least 12 // characters long, must contain at least 4 unique characters, and must not contain @@ -346,12 +346,12 @@ type User struct { type UserPendingChanges struct { // Enables access to the the ActiveMQ Web Console for the ActiveMQ user. - ConsoleAccess *bool + ConsoleAccess bool // The list of groups (20 maximum) to which the ActiveMQ user belongs. This value // can contain only alphanumeric characters, dashes, periods, underscores, and // tildes (- . _ ~). This value must be 2-100 characters long. - Groups []*string + Groups []string // Required. The type of change pending for the ActiveMQ user. PendingChange ChangeType diff --git a/service/mq/validators.go b/service/mq/validators.go index ea05301235c..4b5cf128d9c 100644 --- a/service/mq/validators.go +++ b/service/mq/validators.go @@ -423,9 +423,6 @@ func validateEncryptionOptions(v *types.EncryptionOptions) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "EncryptionOptions"} - if v.UseAwsOwnedKey == nil { - invalidParams.Add(smithy.NewErrParamRequired("UseAwsOwnedKey")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/mturk/api_op_CreateHIT.go b/service/mturk/api_op_CreateHIT.go index c96b29c9294..910a7553b89 100644 --- a/service/mturk/api_op_CreateHIT.go +++ b/service/mturk/api_op_CreateHIT.go @@ -101,7 +101,7 @@ type CreateHITInput struct { // If the HITLayoutId is provided, any placeholder values must be filled in with // values using the HITLayoutParameter structure. For more information, see // HITLayout. - HITLayoutParameters []*types.HITLayoutParameter + HITLayoutParameters []types.HITLayoutParameter // The HIT-level Review Policy applies to the HIT. You can specify for Mechanical // Turk to take various actions based on the policy. @@ -120,7 +120,7 @@ type CreateHITInput struct { // must be met in order for a Worker to accept the HIT. Additionally, other actions // can be restricted using the ActionsGuarded field on each // QualificationRequirement structure. - QualificationRequirements []*types.QualificationRequirement + QualificationRequirements []types.QualificationRequirement // The data the person completing the HIT uses to produce the results. Constraints: // Must be a QuestionForm data structure, an ExternalQuestion data structure, or an diff --git a/service/mturk/api_op_CreateHITType.go b/service/mturk/api_op_CreateHITType.go index 3518a846553..e83b62d61fe 100644 --- a/service/mturk/api_op_CreateHITType.go +++ b/service/mturk/api_op_CreateHITType.go @@ -77,7 +77,7 @@ type CreateHITTypeInput struct { // must be met in order for a Worker to accept the HIT. Additionally, other actions // can be restricted using the ActionsGuarded field on each // QualificationRequirement structure. - QualificationRequirements []*types.QualificationRequirement + QualificationRequirements []types.QualificationRequirement } type CreateHITTypeOutput struct { diff --git a/service/mturk/api_op_CreateHITWithHITType.go b/service/mturk/api_op_CreateHITWithHITType.go index c8a00254b3c..eef81d6660d 100644 --- a/service/mturk/api_op_CreateHITWithHITType.go +++ b/service/mturk/api_op_CreateHITWithHITType.go @@ -64,7 +64,7 @@ type CreateHITWithHITTypeInput struct { // If the HITLayoutId is provided, any placeholder values must be filled in with // values using the HITLayoutParameter structure. For more information, see // HITLayout. - HITLayoutParameters []*types.HITLayoutParameter + HITLayoutParameters []types.HITLayoutParameter // The HIT-level Review Policy applies to the HIT. You can specify for Mechanical // Turk to take various actions based on the policy. diff --git a/service/mturk/api_op_ListAssignmentsForHIT.go b/service/mturk/api_op_ListAssignmentsForHIT.go index e6a97b07d29..c89b8da2500 100644 --- a/service/mturk/api_op_ListAssignmentsForHIT.go +++ b/service/mturk/api_op_ListAssignmentsForHIT.go @@ -59,7 +59,7 @@ type ListAssignmentsForHITInput struct { type ListAssignmentsForHITOutput struct { // The collection of Assignment data structures returned by this call. - Assignments []*types.Assignment + Assignments []types.Assignment // If the previous response was incomplete (because there is more data to // retrieve), Amazon Mechanical Turk returns a pagination token in the response. diff --git a/service/mturk/api_op_ListBonusPayments.go b/service/mturk/api_op_ListBonusPayments.go index a2f22755f84..d51fc342038 100644 --- a/service/mturk/api_op_ListBonusPayments.go +++ b/service/mturk/api_op_ListBonusPayments.go @@ -51,7 +51,7 @@ type ListBonusPaymentsOutput struct { // A successful request to the ListBonusPayments operation returns a list of // BonusPayment objects. - BonusPayments []*types.BonusPayment + BonusPayments []types.BonusPayment // If the previous response was incomplete (because there is more data to // retrieve), Amazon Mechanical Turk returns a pagination token in the response. diff --git a/service/mturk/api_op_ListHITs.go b/service/mturk/api_op_ListHITs.go index 3129b2f8ed9..de6b27eda71 100644 --- a/service/mturk/api_op_ListHITs.go +++ b/service/mturk/api_op_ListHITs.go @@ -39,7 +39,7 @@ type ListHITsInput struct { type ListHITsOutput struct { // The list of HIT elements returned by the query. - HITs []*types.HIT + HITs []types.HIT // If the previous response was incomplete (because there is more data to // retrieve), Amazon Mechanical Turk returns a pagination token in the response. diff --git a/service/mturk/api_op_ListHITsForQualificationType.go b/service/mturk/api_op_ListHITsForQualificationType.go index eac85351e94..88d59c2f2b9 100644 --- a/service/mturk/api_op_ListHITsForQualificationType.go +++ b/service/mturk/api_op_ListHITsForQualificationType.go @@ -47,7 +47,7 @@ type ListHITsForQualificationTypeInput struct { type ListHITsForQualificationTypeOutput struct { // The list of HIT elements returned by the query. - HITs []*types.HIT + HITs []types.HIT // If the previous response was incomplete (because there is more data to // retrieve), Amazon Mechanical Turk returns a pagination token in the response. diff --git a/service/mturk/api_op_ListQualificationRequests.go b/service/mturk/api_op_ListQualificationRequests.go index 14a5090c8f5..b5e4f7b009f 100644 --- a/service/mturk/api_op_ListQualificationRequests.go +++ b/service/mturk/api_op_ListQualificationRequests.go @@ -57,7 +57,7 @@ type ListQualificationRequestsOutput struct { // The Qualification request. The response includes one QualificationRequest // element for each Qualification request returned by the query. - QualificationRequests []*types.QualificationRequest + QualificationRequests []types.QualificationRequest // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mturk/api_op_ListQualificationTypes.go b/service/mturk/api_op_ListQualificationTypes.go index b7547e9802f..5f67f5f44fc 100644 --- a/service/mturk/api_op_ListQualificationTypes.go +++ b/service/mturk/api_op_ListQualificationTypes.go @@ -68,7 +68,7 @@ type ListQualificationTypesOutput struct { NumResults *int32 // The list of QualificationType elements returned by the query. - QualificationTypes []*types.QualificationType + QualificationTypes []types.QualificationType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mturk/api_op_ListReviewableHITs.go b/service/mturk/api_op_ListReviewableHITs.go index 80b6b2ebb01..3c7e35c1738 100644 --- a/service/mturk/api_op_ListReviewableHITs.go +++ b/service/mturk/api_op_ListReviewableHITs.go @@ -48,7 +48,7 @@ type ListReviewableHITsInput struct { type ListReviewableHITsOutput struct { // The list of HIT elements returned by the query. - HITs []*types.HIT + HITs []types.HIT // If the previous response was incomplete (because there is more data to // retrieve), Amazon Mechanical Turk returns a pagination token in the response. diff --git a/service/mturk/api_op_ListWorkerBlocks.go b/service/mturk/api_op_ListWorkerBlocks.go index 7cf35d2bc50..7b1d941fecc 100644 --- a/service/mturk/api_op_ListWorkerBlocks.go +++ b/service/mturk/api_op_ListWorkerBlocks.go @@ -48,7 +48,7 @@ type ListWorkerBlocksOutput struct { // The list of WorkerBlocks, containing the collection of Worker IDs and reasons // for blocking. - WorkerBlocks []*types.WorkerBlock + WorkerBlocks []types.WorkerBlock // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mturk/api_op_ListWorkersWithQualificationType.go b/service/mturk/api_op_ListWorkersWithQualificationType.go index dc4b67a6d69..431fd06806c 100644 --- a/service/mturk/api_op_ListWorkersWithQualificationType.go +++ b/service/mturk/api_op_ListWorkersWithQualificationType.go @@ -57,7 +57,7 @@ type ListWorkersWithQualificationTypeOutput struct { NumResults *int32 // The list of Qualification elements returned by this call. - Qualifications []*types.Qualification + Qualifications []types.Qualification // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mturk/api_op_NotifyWorkers.go b/service/mturk/api_op_NotifyWorkers.go index 29733ff336c..edaee91f889 100644 --- a/service/mturk/api_op_NotifyWorkers.go +++ b/service/mturk/api_op_NotifyWorkers.go @@ -47,14 +47,14 @@ type NotifyWorkersInput struct { // time. // // This member is required. - WorkerIds []*string + WorkerIds []string } type NotifyWorkersOutput struct { // When MTurk sends notifications to the list of Workers, it returns back any // failures it encounters in this list of NotifyWorkersFailureStatus objects. - NotifyWorkersFailureStatuses []*types.NotifyWorkersFailureStatus + NotifyWorkersFailureStatuses []types.NotifyWorkersFailureStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mturk/deserializers.go b/service/mturk/deserializers.go index 9283f2aba44..ed53aeff11f 100644 --- a/service/mturk/deserializers.go +++ b/service/mturk/deserializers.go @@ -4576,7 +4576,7 @@ func awsAwsjson11_deserializeDocumentAssignment(v **types.Assignment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Answer = &jtv + sv.Answer = ptr.String(jtv) } case "ApprovalTime": @@ -4598,7 +4598,7 @@ func awsAwsjson11_deserializeDocumentAssignment(v **types.Assignment, value inte if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.AssignmentId = &jtv + sv.AssignmentId = ptr.String(jtv) } case "AssignmentStatus": @@ -4642,7 +4642,7 @@ func awsAwsjson11_deserializeDocumentAssignment(v **types.Assignment, value inte if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.HITId = &jtv + sv.HITId = ptr.String(jtv) } case "RejectionTime": @@ -4664,7 +4664,7 @@ func awsAwsjson11_deserializeDocumentAssignment(v **types.Assignment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequesterFeedback = &jtv + sv.RequesterFeedback = ptr.String(jtv) } case "SubmitTime": @@ -4686,7 +4686,7 @@ func awsAwsjson11_deserializeDocumentAssignment(v **types.Assignment, value inte if !ok { return fmt.Errorf("expected CustomerId to be of type string, got %T instead", value) } - sv.WorkerId = &jtv + sv.WorkerId = ptr.String(jtv) } default: @@ -4698,7 +4698,7 @@ func awsAwsjson11_deserializeDocumentAssignment(v **types.Assignment, value inte return nil } -func awsAwsjson11_deserializeDocumentAssignmentList(v *[]*types.Assignment, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssignmentList(v *[]types.Assignment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4711,18 +4711,20 @@ func awsAwsjson11_deserializeDocumentAssignmentList(v *[]*types.Assignment, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Assignment + var cv []types.Assignment if *v == nil { - cv = []*types.Assignment{} + cv = []types.Assignment{} } else { cv = *v } for _, value := range shape { - var col *types.Assignment - if err := awsAwsjson11_deserializeDocumentAssignment(&col, value); err != nil { + var col types.Assignment + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAssignment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4758,7 +4760,7 @@ func awsAwsjson11_deserializeDocumentBonusPayment(v **types.BonusPayment, value if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.AssignmentId = &jtv + sv.AssignmentId = ptr.String(jtv) } case "BonusAmount": @@ -4767,7 +4769,7 @@ func awsAwsjson11_deserializeDocumentBonusPayment(v **types.BonusPayment, value if !ok { return fmt.Errorf("expected CurrencyAmount to be of type string, got %T instead", value) } - sv.BonusAmount = &jtv + sv.BonusAmount = ptr.String(jtv) } case "GrantTime": @@ -4789,7 +4791,7 @@ func awsAwsjson11_deserializeDocumentBonusPayment(v **types.BonusPayment, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "WorkerId": @@ -4798,7 +4800,7 @@ func awsAwsjson11_deserializeDocumentBonusPayment(v **types.BonusPayment, value if !ok { return fmt.Errorf("expected CustomerId to be of type string, got %T instead", value) } - sv.WorkerId = &jtv + sv.WorkerId = ptr.String(jtv) } default: @@ -4810,7 +4812,7 @@ func awsAwsjson11_deserializeDocumentBonusPayment(v **types.BonusPayment, value return nil } -func awsAwsjson11_deserializeDocumentBonusPaymentList(v *[]*types.BonusPayment, value interface{}) error { +func awsAwsjson11_deserializeDocumentBonusPaymentList(v *[]types.BonusPayment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4823,18 +4825,20 @@ func awsAwsjson11_deserializeDocumentBonusPaymentList(v *[]*types.BonusPayment, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BonusPayment + var cv []types.BonusPayment if *v == nil { - cv = []*types.BonusPayment{} + cv = []types.BonusPayment{} } else { cv = *v } for _, value := range shape { - var col *types.BonusPayment - if err := awsAwsjson11_deserializeDocumentBonusPayment(&col, value); err != nil { + var col types.BonusPayment + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBonusPayment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4874,7 +4878,7 @@ func awsAwsjson11_deserializeDocumentHIT(v **types.HIT, value interface{}) error if err != nil { return err } - sv.AssignmentDurationInSeconds = &i64 + sv.AssignmentDurationInSeconds = ptr.Int64(i64) } case "AutoApprovalDelayInSeconds": @@ -4887,7 +4891,7 @@ func awsAwsjson11_deserializeDocumentHIT(v **types.HIT, value interface{}) error if err != nil { return err } - sv.AutoApprovalDelayInSeconds = &i64 + sv.AutoApprovalDelayInSeconds = ptr.Int64(i64) } case "CreationTime": @@ -4909,7 +4913,7 @@ func awsAwsjson11_deserializeDocumentHIT(v **types.HIT, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Expiration": @@ -4931,7 +4935,7 @@ func awsAwsjson11_deserializeDocumentHIT(v **types.HIT, value interface{}) error if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.HITGroupId = &jtv + sv.HITGroupId = ptr.String(jtv) } case "HITId": @@ -4940,7 +4944,7 @@ func awsAwsjson11_deserializeDocumentHIT(v **types.HIT, value interface{}) error if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.HITId = &jtv + sv.HITId = ptr.String(jtv) } case "HITLayoutId": @@ -4949,7 +4953,7 @@ func awsAwsjson11_deserializeDocumentHIT(v **types.HIT, value interface{}) error if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.HITLayoutId = &jtv + sv.HITLayoutId = ptr.String(jtv) } case "HITReviewStatus": @@ -4976,7 +4980,7 @@ func awsAwsjson11_deserializeDocumentHIT(v **types.HIT, value interface{}) error if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.HITTypeId = &jtv + sv.HITTypeId = ptr.String(jtv) } case "Keywords": @@ -4985,7 +4989,7 @@ func awsAwsjson11_deserializeDocumentHIT(v **types.HIT, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Keywords = &jtv + sv.Keywords = ptr.String(jtv) } case "MaxAssignments": @@ -5051,7 +5055,7 @@ func awsAwsjson11_deserializeDocumentHIT(v **types.HIT, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Question = &jtv + sv.Question = ptr.String(jtv) } case "RequesterAnnotation": @@ -5060,7 +5064,7 @@ func awsAwsjson11_deserializeDocumentHIT(v **types.HIT, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequesterAnnotation = &jtv + sv.RequesterAnnotation = ptr.String(jtv) } case "Reward": @@ -5069,7 +5073,7 @@ func awsAwsjson11_deserializeDocumentHIT(v **types.HIT, value interface{}) error if !ok { return fmt.Errorf("expected CurrencyAmount to be of type string, got %T instead", value) } - sv.Reward = &jtv + sv.Reward = ptr.String(jtv) } case "Title": @@ -5078,7 +5082,7 @@ func awsAwsjson11_deserializeDocumentHIT(v **types.HIT, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } default: @@ -5090,7 +5094,7 @@ func awsAwsjson11_deserializeDocumentHIT(v **types.HIT, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentHITList(v *[]*types.HIT, value interface{}) error { +func awsAwsjson11_deserializeDocumentHITList(v *[]types.HIT, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5103,18 +5107,20 @@ func awsAwsjson11_deserializeDocumentHITList(v *[]*types.HIT, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HIT + var cv []types.HIT if *v == nil { - cv = []*types.HIT{} + cv = []types.HIT{} } else { cv = *v } for _, value := range shape { - var col *types.HIT - if err := awsAwsjson11_deserializeDocumentHIT(&col, value); err != nil { + var col types.HIT + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHIT(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5122,7 +5128,7 @@ func awsAwsjson11_deserializeDocumentHITList(v *[]*types.HIT, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentIntegerList(v *[]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentIntegerList(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5135,15 +5141,15 @@ func awsAwsjson11_deserializeDocumentIntegerList(v *[]*int32, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int32 + var cv []int32 if *v == nil { - cv = []*int32{} + cv = []int32{} } else { cv = *v } for _, value := range shape { - var col *int32 + var col int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -5153,7 +5159,7 @@ func awsAwsjson11_deserializeDocumentIntegerList(v *[]*int32, value interface{}) if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } cv = append(cv, col) @@ -5190,7 +5196,7 @@ func awsAwsjson11_deserializeDocumentLocale(v **types.Locale, value interface{}) if !ok { return fmt.Errorf("expected CountryParameters to be of type string, got %T instead", value) } - sv.Country = &jtv + sv.Country = ptr.String(jtv) } case "Subdivision": @@ -5199,7 +5205,7 @@ func awsAwsjson11_deserializeDocumentLocale(v **types.Locale, value interface{}) if !ok { return fmt.Errorf("expected CountryParameters to be of type string, got %T instead", value) } - sv.Subdivision = &jtv + sv.Subdivision = ptr.String(jtv) } default: @@ -5211,7 +5217,7 @@ func awsAwsjson11_deserializeDocumentLocale(v **types.Locale, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentLocaleList(v *[]*types.Locale, value interface{}) error { +func awsAwsjson11_deserializeDocumentLocaleList(v *[]types.Locale, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5224,18 +5230,20 @@ func awsAwsjson11_deserializeDocumentLocaleList(v *[]*types.Locale, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Locale + var cv []types.Locale if *v == nil { - cv = []*types.Locale{} + cv = []types.Locale{} } else { cv = *v } for _, value := range shape { - var col *types.Locale - if err := awsAwsjson11_deserializeDocumentLocale(&col, value); err != nil { + var col types.Locale + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLocale(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5280,7 +5288,7 @@ func awsAwsjson11_deserializeDocumentNotifyWorkersFailureStatus(v **types.Notify if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NotifyWorkersFailureMessage = &jtv + sv.NotifyWorkersFailureMessage = ptr.String(jtv) } case "WorkerId": @@ -5289,7 +5297,7 @@ func awsAwsjson11_deserializeDocumentNotifyWorkersFailureStatus(v **types.Notify if !ok { return fmt.Errorf("expected CustomerId to be of type string, got %T instead", value) } - sv.WorkerId = &jtv + sv.WorkerId = ptr.String(jtv) } default: @@ -5301,7 +5309,7 @@ func awsAwsjson11_deserializeDocumentNotifyWorkersFailureStatus(v **types.Notify return nil } -func awsAwsjson11_deserializeDocumentNotifyWorkersFailureStatusList(v *[]*types.NotifyWorkersFailureStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentNotifyWorkersFailureStatusList(v *[]types.NotifyWorkersFailureStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5314,18 +5322,20 @@ func awsAwsjson11_deserializeDocumentNotifyWorkersFailureStatusList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NotifyWorkersFailureStatus + var cv []types.NotifyWorkersFailureStatus if *v == nil { - cv = []*types.NotifyWorkersFailureStatus{} + cv = []types.NotifyWorkersFailureStatus{} } else { cv = *v } for _, value := range shape { - var col *types.NotifyWorkersFailureStatus - if err := awsAwsjson11_deserializeDocumentNotifyWorkersFailureStatus(&col, value); err != nil { + var col types.NotifyWorkersFailureStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNotifyWorkersFailureStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5361,7 +5371,7 @@ func awsAwsjson11_deserializeDocumentParameterMapEntry(v **types.ParameterMapEnt if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Values": @@ -5378,7 +5388,7 @@ func awsAwsjson11_deserializeDocumentParameterMapEntry(v **types.ParameterMapEnt return nil } -func awsAwsjson11_deserializeDocumentParameterMapEntryList(v *[]*types.ParameterMapEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterMapEntryList(v *[]types.ParameterMapEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5391,18 +5401,20 @@ func awsAwsjson11_deserializeDocumentParameterMapEntryList(v *[]*types.Parameter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ParameterMapEntry + var cv []types.ParameterMapEntry if *v == nil { - cv = []*types.ParameterMapEntry{} + cv = []types.ParameterMapEntry{} } else { cv = *v } for _, value := range shape { - var col *types.ParameterMapEntry - if err := awsAwsjson11_deserializeDocumentParameterMapEntry(&col, value); err != nil { + var col types.ParameterMapEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParameterMapEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5438,7 +5450,7 @@ func awsAwsjson11_deserializeDocumentPolicyParameter(v **types.PolicyParameter, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "MapEntries": @@ -5460,7 +5472,7 @@ func awsAwsjson11_deserializeDocumentPolicyParameter(v **types.PolicyParameter, return nil } -func awsAwsjson11_deserializeDocumentPolicyParameterList(v *[]*types.PolicyParameter, value interface{}) error { +func awsAwsjson11_deserializeDocumentPolicyParameterList(v *[]types.PolicyParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5473,18 +5485,20 @@ func awsAwsjson11_deserializeDocumentPolicyParameterList(v *[]*types.PolicyParam return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PolicyParameter + var cv []types.PolicyParameter if *v == nil { - cv = []*types.PolicyParameter{} + cv = []types.PolicyParameter{} } else { cv = *v } for _, value := range shape { - var col *types.PolicyParameter - if err := awsAwsjson11_deserializeDocumentPolicyParameter(&col, value); err != nil { + var col types.PolicyParameter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPolicyParameter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5551,7 +5565,7 @@ func awsAwsjson11_deserializeDocumentQualification(v **types.Qualification, valu if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.QualificationTypeId = &jtv + sv.QualificationTypeId = ptr.String(jtv) } case "Status": @@ -5569,7 +5583,7 @@ func awsAwsjson11_deserializeDocumentQualification(v **types.Qualification, valu if !ok { return fmt.Errorf("expected CustomerId to be of type string, got %T instead", value) } - sv.WorkerId = &jtv + sv.WorkerId = ptr.String(jtv) } default: @@ -5581,7 +5595,7 @@ func awsAwsjson11_deserializeDocumentQualification(v **types.Qualification, valu return nil } -func awsAwsjson11_deserializeDocumentQualificationList(v *[]*types.Qualification, value interface{}) error { +func awsAwsjson11_deserializeDocumentQualificationList(v *[]types.Qualification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5594,18 +5608,20 @@ func awsAwsjson11_deserializeDocumentQualificationList(v *[]*types.Qualification return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Qualification + var cv []types.Qualification if *v == nil { - cv = []*types.Qualification{} + cv = []types.Qualification{} } else { cv = *v } for _, value := range shape { - var col *types.Qualification - if err := awsAwsjson11_deserializeDocumentQualification(&col, value); err != nil { + var col types.Qualification + destAddr := &col + if err := awsAwsjson11_deserializeDocumentQualification(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5641,7 +5657,7 @@ func awsAwsjson11_deserializeDocumentQualificationRequest(v **types.Qualificatio if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Answer = &jtv + sv.Answer = ptr.String(jtv) } case "QualificationRequestId": @@ -5650,7 +5666,7 @@ func awsAwsjson11_deserializeDocumentQualificationRequest(v **types.Qualificatio if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.QualificationRequestId = &jtv + sv.QualificationRequestId = ptr.String(jtv) } case "QualificationTypeId": @@ -5659,7 +5675,7 @@ func awsAwsjson11_deserializeDocumentQualificationRequest(v **types.Qualificatio if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.QualificationTypeId = &jtv + sv.QualificationTypeId = ptr.String(jtv) } case "SubmitTime": @@ -5681,7 +5697,7 @@ func awsAwsjson11_deserializeDocumentQualificationRequest(v **types.Qualificatio if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Test = &jtv + sv.Test = ptr.String(jtv) } case "WorkerId": @@ -5690,7 +5706,7 @@ func awsAwsjson11_deserializeDocumentQualificationRequest(v **types.Qualificatio if !ok { return fmt.Errorf("expected CustomerId to be of type string, got %T instead", value) } - sv.WorkerId = &jtv + sv.WorkerId = ptr.String(jtv) } default: @@ -5702,7 +5718,7 @@ func awsAwsjson11_deserializeDocumentQualificationRequest(v **types.Qualificatio return nil } -func awsAwsjson11_deserializeDocumentQualificationRequestList(v *[]*types.QualificationRequest, value interface{}) error { +func awsAwsjson11_deserializeDocumentQualificationRequestList(v *[]types.QualificationRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5715,18 +5731,20 @@ func awsAwsjson11_deserializeDocumentQualificationRequestList(v *[]*types.Qualif return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.QualificationRequest + var cv []types.QualificationRequest if *v == nil { - cv = []*types.QualificationRequest{} + cv = []types.QualificationRequest{} } else { cv = *v } for _, value := range shape { - var col *types.QualificationRequest - if err := awsAwsjson11_deserializeDocumentQualificationRequest(&col, value); err != nil { + var col types.QualificationRequest + destAddr := &col + if err := awsAwsjson11_deserializeDocumentQualificationRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5790,7 +5808,7 @@ func awsAwsjson11_deserializeDocumentQualificationRequirement(v **types.Qualific if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.QualificationTypeId = &jtv + sv.QualificationTypeId = ptr.String(jtv) } case "RequiredToPreview": @@ -5799,7 +5817,7 @@ func awsAwsjson11_deserializeDocumentQualificationRequirement(v **types.Qualific if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RequiredToPreview = &jtv + sv.RequiredToPreview = ptr.Bool(jtv) } default: @@ -5811,7 +5829,7 @@ func awsAwsjson11_deserializeDocumentQualificationRequirement(v **types.Qualific return nil } -func awsAwsjson11_deserializeDocumentQualificationRequirementList(v *[]*types.QualificationRequirement, value interface{}) error { +func awsAwsjson11_deserializeDocumentQualificationRequirementList(v *[]types.QualificationRequirement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5824,18 +5842,20 @@ func awsAwsjson11_deserializeDocumentQualificationRequirementList(v *[]*types.Qu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.QualificationRequirement + var cv []types.QualificationRequirement if *v == nil { - cv = []*types.QualificationRequirement{} + cv = []types.QualificationRequirement{} } else { cv = *v } for _, value := range shape { - var col *types.QualificationRequirement - if err := awsAwsjson11_deserializeDocumentQualificationRequirement(&col, value); err != nil { + var col types.QualificationRequirement + destAddr := &col + if err := awsAwsjson11_deserializeDocumentQualificationRequirement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5871,7 +5891,7 @@ func awsAwsjson11_deserializeDocumentQualificationType(v **types.QualificationTy if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AnswerKey = &jtv + sv.AnswerKey = ptr.String(jtv) } case "AutoGranted": @@ -5880,7 +5900,7 @@ func awsAwsjson11_deserializeDocumentQualificationType(v **types.QualificationTy if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoGranted = &jtv + sv.AutoGranted = ptr.Bool(jtv) } case "AutoGrantedValue": @@ -5915,7 +5935,7 @@ func awsAwsjson11_deserializeDocumentQualificationType(v **types.QualificationTy if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "IsRequestable": @@ -5924,7 +5944,7 @@ func awsAwsjson11_deserializeDocumentQualificationType(v **types.QualificationTy if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsRequestable = &jtv + sv.IsRequestable = ptr.Bool(jtv) } case "Keywords": @@ -5933,7 +5953,7 @@ func awsAwsjson11_deserializeDocumentQualificationType(v **types.QualificationTy if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Keywords = &jtv + sv.Keywords = ptr.String(jtv) } case "Name": @@ -5942,7 +5962,7 @@ func awsAwsjson11_deserializeDocumentQualificationType(v **types.QualificationTy if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "QualificationTypeId": @@ -5951,7 +5971,7 @@ func awsAwsjson11_deserializeDocumentQualificationType(v **types.QualificationTy if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.QualificationTypeId = &jtv + sv.QualificationTypeId = ptr.String(jtv) } case "QualificationTypeStatus": @@ -5973,7 +5993,7 @@ func awsAwsjson11_deserializeDocumentQualificationType(v **types.QualificationTy if err != nil { return err } - sv.RetryDelayInSeconds = &i64 + sv.RetryDelayInSeconds = ptr.Int64(i64) } case "Test": @@ -5982,7 +6002,7 @@ func awsAwsjson11_deserializeDocumentQualificationType(v **types.QualificationTy if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Test = &jtv + sv.Test = ptr.String(jtv) } case "TestDurationInSeconds": @@ -5995,7 +6015,7 @@ func awsAwsjson11_deserializeDocumentQualificationType(v **types.QualificationTy if err != nil { return err } - sv.TestDurationInSeconds = &i64 + sv.TestDurationInSeconds = ptr.Int64(i64) } default: @@ -6007,7 +6027,7 @@ func awsAwsjson11_deserializeDocumentQualificationType(v **types.QualificationTy return nil } -func awsAwsjson11_deserializeDocumentQualificationTypeList(v *[]*types.QualificationType, value interface{}) error { +func awsAwsjson11_deserializeDocumentQualificationTypeList(v *[]types.QualificationType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6020,18 +6040,20 @@ func awsAwsjson11_deserializeDocumentQualificationTypeList(v *[]*types.Qualifica return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.QualificationType + var cv []types.QualificationType if *v == nil { - cv = []*types.QualificationType{} + cv = []types.QualificationType{} } else { cv = *v } for _, value := range shape { - var col *types.QualificationType - if err := awsAwsjson11_deserializeDocumentQualificationType(&col, value); err != nil { + var col types.QualificationType + destAddr := &col + if err := awsAwsjson11_deserializeDocumentQualificationType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6067,7 +6089,7 @@ func awsAwsjson11_deserializeDocumentRequestError(v **types.RequestError, value if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "TurkErrorCode": @@ -6076,7 +6098,7 @@ func awsAwsjson11_deserializeDocumentRequestError(v **types.RequestError, value if !ok { return fmt.Errorf("expected TurkErrorCode to be of type string, got %T instead", value) } - sv.TurkErrorCode = &jtv + sv.TurkErrorCode = ptr.String(jtv) } default: @@ -6116,7 +6138,7 @@ func awsAwsjson11_deserializeDocumentReviewActionDetail(v **types.ReviewActionDe if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.ActionId = &jtv + sv.ActionId = ptr.String(jtv) } case "ActionName": @@ -6125,7 +6147,7 @@ func awsAwsjson11_deserializeDocumentReviewActionDetail(v **types.ReviewActionDe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ActionName = &jtv + sv.ActionName = ptr.String(jtv) } case "CompleteTime": @@ -6147,7 +6169,7 @@ func awsAwsjson11_deserializeDocumentReviewActionDetail(v **types.ReviewActionDe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "Result": @@ -6156,7 +6178,7 @@ func awsAwsjson11_deserializeDocumentReviewActionDetail(v **types.ReviewActionDe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Result = &jtv + sv.Result = ptr.String(jtv) } case "Status": @@ -6174,7 +6196,7 @@ func awsAwsjson11_deserializeDocumentReviewActionDetail(v **types.ReviewActionDe if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } case "TargetType": @@ -6183,7 +6205,7 @@ func awsAwsjson11_deserializeDocumentReviewActionDetail(v **types.ReviewActionDe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TargetType = &jtv + sv.TargetType = ptr.String(jtv) } default: @@ -6195,7 +6217,7 @@ func awsAwsjson11_deserializeDocumentReviewActionDetail(v **types.ReviewActionDe return nil } -func awsAwsjson11_deserializeDocumentReviewActionDetailList(v *[]*types.ReviewActionDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentReviewActionDetailList(v *[]types.ReviewActionDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6208,18 +6230,20 @@ func awsAwsjson11_deserializeDocumentReviewActionDetailList(v *[]*types.ReviewAc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReviewActionDetail + var cv []types.ReviewActionDetail if *v == nil { - cv = []*types.ReviewActionDetail{} + cv = []types.ReviewActionDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ReviewActionDetail - if err := awsAwsjson11_deserializeDocumentReviewActionDetail(&col, value); err != nil { + var col types.ReviewActionDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReviewActionDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6260,7 +6284,7 @@ func awsAwsjson11_deserializeDocumentReviewPolicy(v **types.ReviewPolicy, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } default: @@ -6341,7 +6365,7 @@ func awsAwsjson11_deserializeDocumentReviewResultDetail(v **types.ReviewResultDe if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.ActionId = &jtv + sv.ActionId = ptr.String(jtv) } case "Key": @@ -6350,7 +6374,7 @@ func awsAwsjson11_deserializeDocumentReviewResultDetail(v **types.ReviewResultDe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "QuestionId": @@ -6359,7 +6383,7 @@ func awsAwsjson11_deserializeDocumentReviewResultDetail(v **types.ReviewResultDe if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.QuestionId = &jtv + sv.QuestionId = ptr.String(jtv) } case "SubjectId": @@ -6368,7 +6392,7 @@ func awsAwsjson11_deserializeDocumentReviewResultDetail(v **types.ReviewResultDe if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.SubjectId = &jtv + sv.SubjectId = ptr.String(jtv) } case "SubjectType": @@ -6377,7 +6401,7 @@ func awsAwsjson11_deserializeDocumentReviewResultDetail(v **types.ReviewResultDe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SubjectType = &jtv + sv.SubjectType = ptr.String(jtv) } case "Value": @@ -6386,7 +6410,7 @@ func awsAwsjson11_deserializeDocumentReviewResultDetail(v **types.ReviewResultDe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6398,7 +6422,7 @@ func awsAwsjson11_deserializeDocumentReviewResultDetail(v **types.ReviewResultDe return nil } -func awsAwsjson11_deserializeDocumentReviewResultDetailList(v *[]*types.ReviewResultDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentReviewResultDetailList(v *[]types.ReviewResultDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6411,18 +6435,20 @@ func awsAwsjson11_deserializeDocumentReviewResultDetailList(v *[]*types.ReviewRe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReviewResultDetail + var cv []types.ReviewResultDetail if *v == nil { - cv = []*types.ReviewResultDetail{} + cv = []types.ReviewResultDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ReviewResultDetail - if err := awsAwsjson11_deserializeDocumentReviewResultDetail(&col, value); err != nil { + var col types.ReviewResultDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReviewResultDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6458,7 +6484,7 @@ func awsAwsjson11_deserializeDocumentServiceFault(v **types.ServiceFault, value if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "TurkErrorCode": @@ -6467,7 +6493,7 @@ func awsAwsjson11_deserializeDocumentServiceFault(v **types.ServiceFault, value if !ok { return fmt.Errorf("expected TurkErrorCode to be of type string, got %T instead", value) } - sv.TurkErrorCode = &jtv + sv.TurkErrorCode = ptr.String(jtv) } default: @@ -6479,7 +6505,7 @@ func awsAwsjson11_deserializeDocumentServiceFault(v **types.ServiceFault, value return nil } -func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6492,21 +6518,21 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -6543,7 +6569,7 @@ func awsAwsjson11_deserializeDocumentWorkerBlock(v **types.WorkerBlock, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "WorkerId": @@ -6552,7 +6578,7 @@ func awsAwsjson11_deserializeDocumentWorkerBlock(v **types.WorkerBlock, value in if !ok { return fmt.Errorf("expected CustomerId to be of type string, got %T instead", value) } - sv.WorkerId = &jtv + sv.WorkerId = ptr.String(jtv) } default: @@ -6564,7 +6590,7 @@ func awsAwsjson11_deserializeDocumentWorkerBlock(v **types.WorkerBlock, value in return nil } -func awsAwsjson11_deserializeDocumentWorkerBlockList(v *[]*types.WorkerBlock, value interface{}) error { +func awsAwsjson11_deserializeDocumentWorkerBlockList(v *[]types.WorkerBlock, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6577,18 +6603,20 @@ func awsAwsjson11_deserializeDocumentWorkerBlockList(v *[]*types.WorkerBlock, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorkerBlock + var cv []types.WorkerBlock if *v == nil { - cv = []*types.WorkerBlock{} + cv = []types.WorkerBlock{} } else { cv = *v } for _, value := range shape { - var col *types.WorkerBlock - if err := awsAwsjson11_deserializeDocumentWorkerBlock(&col, value); err != nil { + var col types.WorkerBlock + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkerBlock(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6784,7 +6812,7 @@ func awsAwsjson11_deserializeOpDocumentCreateHITTypeOutput(v **CreateHITTypeOutp if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.HITTypeId = &jtv + sv.HITTypeId = ptr.String(jtv) } default: @@ -7051,7 +7079,7 @@ func awsAwsjson11_deserializeOpDocumentGetAccountBalanceOutput(v **GetAccountBal if !ok { return fmt.Errorf("expected CurrencyAmount to be of type string, got %T instead", value) } - sv.AvailableBalance = &jtv + sv.AvailableBalance = ptr.String(jtv) } case "OnHoldBalance": @@ -7060,7 +7088,7 @@ func awsAwsjson11_deserializeOpDocumentGetAccountBalanceOutput(v **GetAccountBal if !ok { return fmt.Errorf("expected CurrencyAmount to be of type string, got %T instead", value) } - sv.OnHoldBalance = &jtv + sv.OnHoldBalance = ptr.String(jtv) } default: @@ -7141,7 +7169,7 @@ func awsAwsjson11_deserializeOpDocumentGetFileUploadURLOutput(v **GetFileUploadU if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FileUploadURL = &jtv + sv.FileUploadURL = ptr.String(jtv) } default: @@ -7294,7 +7322,7 @@ func awsAwsjson11_deserializeOpDocumentListAssignmentsForHITOutput(v **ListAssig if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "NumResults": @@ -7352,7 +7380,7 @@ func awsAwsjson11_deserializeOpDocumentListBonusPaymentsOutput(v **ListBonusPaym if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "NumResults": @@ -7410,7 +7438,7 @@ func awsAwsjson11_deserializeOpDocumentListHITsForQualificationTypeOutput(v **Li if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "NumResults": @@ -7468,7 +7496,7 @@ func awsAwsjson11_deserializeOpDocumentListHITsOutput(v **ListHITsOutput, value if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "NumResults": @@ -7521,7 +7549,7 @@ func awsAwsjson11_deserializeOpDocumentListQualificationRequestsOutput(v **ListQ if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "NumResults": @@ -7579,7 +7607,7 @@ func awsAwsjson11_deserializeOpDocumentListQualificationTypesOutput(v **ListQual if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "NumResults": @@ -7642,7 +7670,7 @@ func awsAwsjson11_deserializeOpDocumentListReviewableHITsOutput(v **ListReviewab if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "NumResults": @@ -7705,7 +7733,7 @@ func awsAwsjson11_deserializeOpDocumentListReviewPolicyResultsForHITOutput(v **L if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.HITId = &jtv + sv.HITId = ptr.String(jtv) } case "HITReviewPolicy": @@ -7724,7 +7752,7 @@ func awsAwsjson11_deserializeOpDocumentListReviewPolicyResultsForHITOutput(v **L if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7764,7 +7792,7 @@ func awsAwsjson11_deserializeOpDocumentListWorkerBlocksOutput(v **ListWorkerBloc if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "NumResults": @@ -7822,7 +7850,7 @@ func awsAwsjson11_deserializeOpDocumentListWorkersWithQualificationTypeOutput(v if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "NumResults": diff --git a/service/mturk/go.mod b/service/mturk/go.mod index 07833bfca43..c661b6f275f 100644 --- a/service/mturk/go.mod +++ b/service/mturk/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/mturk go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/mturk/serializers.go b/service/mturk/serializers.go index a3ac5a1275a..b10958fb1d3 100644 --- a/service/mturk/serializers.go +++ b/service/mturk/serializers.go @@ -1812,17 +1812,13 @@ func awsAwsjson11_serializeDocumentAssignmentStatusList(v []types.AssignmentStat return nil } -func awsAwsjson11_serializeDocumentCustomerIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCustomerIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1855,34 +1851,26 @@ func awsAwsjson11_serializeDocumentHITLayoutParameter(v *types.HITLayoutParamete return nil } -func awsAwsjson11_serializeDocumentHITLayoutParameterList(v []*types.HITLayoutParameter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHITLayoutParameterList(v []types.HITLayoutParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentHITLayoutParameter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentHITLayoutParameter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentIntegerList(v []*int32, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIntegerList(v []int32, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Integer(*v[i]) + av.Integer(v[i]) } return nil } @@ -1904,17 +1892,13 @@ func awsAwsjson11_serializeDocumentLocale(v *types.Locale, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentLocaleList(v []*types.Locale, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLocaleList(v []types.Locale, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentLocale(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentLocale(&v[i], av); err != nil { return err } } @@ -1969,17 +1953,13 @@ func awsAwsjson11_serializeDocumentParameterMapEntry(v *types.ParameterMapEntry, return nil } -func awsAwsjson11_serializeDocumentParameterMapEntryList(v []*types.ParameterMapEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParameterMapEntryList(v []types.ParameterMapEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentParameterMapEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentParameterMapEntry(&v[i], av); err != nil { return err } } @@ -2012,17 +1992,13 @@ func awsAwsjson11_serializeDocumentPolicyParameter(v *types.PolicyParameter, val return nil } -func awsAwsjson11_serializeDocumentPolicyParameterList(v []*types.PolicyParameter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPolicyParameterList(v []types.PolicyParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPolicyParameter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPolicyParameter(&v[i], av); err != nil { return err } } @@ -2070,17 +2046,13 @@ func awsAwsjson11_serializeDocumentQualificationRequirement(v *types.Qualificati return nil } -func awsAwsjson11_serializeDocumentQualificationRequirementList(v []*types.QualificationRequirement, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentQualificationRequirementList(v []types.QualificationRequirement, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentQualificationRequirement(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentQualificationRequirement(&v[i], av); err != nil { return err } } @@ -2117,17 +2089,13 @@ func awsAwsjson11_serializeDocumentReviewPolicyLevelList(v []types.ReviewPolicyL return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/mturk/types/types.go b/service/mturk/types/types.go index 3ed2266f383..eef3cdcf759 100644 --- a/service/mturk/types/types.go +++ b/service/mturk/types/types.go @@ -152,7 +152,7 @@ type HIT struct { // must be met in order for a Worker to accept the HIT. Additionally, other actions // can be restricted using the ActionsGuarded field on each // QualificationRequirement structure. - QualificationRequirements []*QualificationRequirement + QualificationRequirements []QualificationRequirement // The data the Worker completing the HIT uses produce the results. This is either // either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure. @@ -263,7 +263,7 @@ type ParameterMapEntry struct { // The list of answers to the question specified in the MapEntry Key element. The // Worker must match all values in order for the answer to be scored correctly. - Values []*string + Values []string } // Name of the parameter from the Review policy. @@ -273,10 +273,10 @@ type PolicyParameter struct { Key *string // List of ParameterMapEntry objects. - MapEntries []*ParameterMapEntry + MapEntries []ParameterMapEntry // The list of values of the Parameter - Values []*string + Values []string } // The Qualification data structure represents a Qualification assigned to a user, @@ -388,7 +388,7 @@ type QualificationRequirement struct { // with the Worker_Locale QualificationType ID. When performing a set comparison by // using the In or the NotIn comparator, you can use up to 15 IntegerValue elements // in a QualificationRequirement data structure. - IntegerValues []*int32 + IntegerValues []int32 // The locale value to compare against the Qualification's value. The local value // must be a valid ISO 3166 country code or supports ISO 3166-2 subdivisions. @@ -398,7 +398,7 @@ type QualificationRequirement struct { // EqualTo or NotEqualTo comparators. When performing a set comparison by using the // In or the NotIn comparator, you can use up to 30 LocaleValue elements in a // QualificationRequirement data structure. - LocaleValues []*Locale + LocaleValues []Locale // DEPRECATED: Use the ActionsGuarded field instead. If RequiredToPreview is true, // the question data for the HIT will not be shown when a Worker whose @@ -525,17 +525,17 @@ type ReviewPolicy struct { PolicyName *string // Name of the parameter from the Review policy. - Parameters []*PolicyParameter + Parameters []PolicyParameter } // Contains both ReviewResult and ReviewAction elements for a particular HIT. type ReviewReport struct { // A list of ReviewAction objects for each action specified in the Review Policy. - ReviewActions []*ReviewActionDetail + ReviewActions []ReviewActionDetail // A list of ReviewResults objects for each action specified in the Review Policy. - ReviewResults []*ReviewResultDetail + ReviewResults []ReviewResultDetail } // This data structure is returned multiple times for each result specified in the diff --git a/service/mturk/validators.go b/service/mturk/validators.go index ea22d6dbcf7..e31fc6eb16b 100644 --- a/service/mturk/validators.go +++ b/service/mturk/validators.go @@ -820,13 +820,13 @@ func validateHITLayoutParameter(v *types.HITLayoutParameter) error { } } -func validateHITLayoutParameterList(v []*types.HITLayoutParameter) error { +func validateHITLayoutParameterList(v []types.HITLayoutParameter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "HITLayoutParameterList"} for i := range v { - if err := validateHITLayoutParameter(v[i]); err != nil { + if err := validateHITLayoutParameter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -852,13 +852,13 @@ func validateLocale(v *types.Locale) error { } } -func validateLocaleList(v []*types.Locale) error { +func validateLocaleList(v []types.Locale) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LocaleList"} for i := range v { - if err := validateLocale(v[i]); err != nil { + if err := validateLocale(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -916,13 +916,13 @@ func validateQualificationRequirement(v *types.QualificationRequirement) error { } } -func validateQualificationRequirementList(v []*types.QualificationRequirement) error { +func validateQualificationRequirementList(v []types.QualificationRequirement) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "QualificationRequirementList"} for i := range v { - if err := validateQualificationRequirement(v[i]); err != nil { + if err := validateQualificationRequirement(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/neptune/api_op_AddTagsToResource.go b/service/neptune/api_op_AddTagsToResource.go index b669891cd91..ecc299a46e6 100644 --- a/service/neptune/api_op_AddTagsToResource.go +++ b/service/neptune/api_op_AddTagsToResource.go @@ -42,7 +42,7 @@ type AddTagsToResourceInput struct { // The tags to be assigned to the Amazon Neptune resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type AddTagsToResourceOutput struct { diff --git a/service/neptune/api_op_CopyDBClusterParameterGroup.go b/service/neptune/api_op_CopyDBClusterParameterGroup.go index be13d1f013d..61da6348f11 100644 --- a/service/neptune/api_op_CopyDBClusterParameterGroup.go +++ b/service/neptune/api_op_CopyDBClusterParameterGroup.go @@ -73,7 +73,7 @@ type CopyDBClusterParameterGroupInput struct { TargetDBClusterParameterGroupIdentifier *string // The tags to be assigned to the copied DB cluster parameter group. - Tags []*types.Tag + Tags []types.Tag } type CopyDBClusterParameterGroupOutput struct { diff --git a/service/neptune/api_op_CopyDBClusterSnapshot.go b/service/neptune/api_op_CopyDBClusterSnapshot.go index 3d35376d513..f6a17684006 100644 --- a/service/neptune/api_op_CopyDBClusterSnapshot.go +++ b/service/neptune/api_op_CopyDBClusterSnapshot.go @@ -85,7 +85,7 @@ type CopyDBClusterSnapshotInput struct { PreSignedUrl *string // The tags to assign to the new DB cluster snapshot copy. - Tags []*types.Tag + Tags []types.Tag } type CopyDBClusterSnapshotOutput struct { diff --git a/service/neptune/api_op_CopyDBParameterGroup.go b/service/neptune/api_op_CopyDBParameterGroup.go index b6f25fcddeb..9a0e60d3cd1 100644 --- a/service/neptune/api_op_CopyDBParameterGroup.go +++ b/service/neptune/api_op_CopyDBParameterGroup.go @@ -66,7 +66,7 @@ type CopyDBParameterGroupInput struct { TargetDBParameterGroupIdentifier *string // The tags to be assigned to the copied DB parameter group. - Tags []*types.Tag + Tags []types.Tag } type CopyDBParameterGroupOutput struct { diff --git a/service/neptune/api_op_CreateDBCluster.go b/service/neptune/api_op_CreateDBCluster.go index 577e1357e79..106e4f3d606 100644 --- a/service/neptune/api_op_CreateDBCluster.go +++ b/service/neptune/api_op_CreateDBCluster.go @@ -59,7 +59,7 @@ type CreateDBClusterInput struct { // A list of EC2 Availability Zones that instances in the DB cluster can be created // in. - AvailabilityZones []*string + AvailabilityZones []string // The number of days for which automated backups are retained. You must specify a // minimum value of 1. Default: 1 Constraints: @@ -92,7 +92,7 @@ type CreateDBClusterInput struct { DeletionProtection *bool // The list of log types that need to be enabled for exporting to CloudWatch Logs. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // Not supported by Neptune. EnableIAMDatabaseAuthentication *bool @@ -187,10 +187,10 @@ type CreateDBClusterInput struct { StorageEncrypted *bool // The tags to assign to the new DB cluster. - Tags []*types.Tag + Tags []types.Tag // A list of EC2 VPC security groups to associate with this DB cluster. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type CreateDBClusterOutput struct { diff --git a/service/neptune/api_op_CreateDBClusterEndpoint.go b/service/neptune/api_op_CreateDBClusterEndpoint.go index 455de61e913..bc9638265fe 100644 --- a/service/neptune/api_op_CreateDBClusterEndpoint.go +++ b/service/neptune/api_op_CreateDBClusterEndpoint.go @@ -50,13 +50,13 @@ type CreateDBClusterEndpointInput struct { // List of DB instance identifiers that aren't part of the custom endpoint group. // All other eligible instances are reachable through the custom endpoint. Only // relevant if the list of static members is empty. - ExcludedMembers []*string + ExcludedMembers []string // List of DB instance identifiers that are part of the custom endpoint group. - StaticMembers []*string + StaticMembers []string // The tags to be assigned to the Amazon Neptune resource. - Tags []*types.Tag + Tags []types.Tag } // This data type represents the information you need to connect to an Amazon @@ -103,10 +103,10 @@ type CreateDBClusterEndpointOutput struct { // List of DB instance identifiers that aren't part of the custom endpoint group. // All other eligible instances are reachable through the custom endpoint. Only // relevant if the list of static members is empty. - ExcludedMembers []*string + ExcludedMembers []string // List of DB instance identifiers that are part of the custom endpoint group. - StaticMembers []*string + StaticMembers []string // The current status of the endpoint. One of: creating, available, deleting, // inactive, modifying. The inactive state applies to an endpoint that cannot be diff --git a/service/neptune/api_op_CreateDBClusterParameterGroup.go b/service/neptune/api_op_CreateDBClusterParameterGroup.go index e01d3c3a58b..92a1281d334 100644 --- a/service/neptune/api_op_CreateDBClusterParameterGroup.go +++ b/service/neptune/api_op_CreateDBClusterParameterGroup.go @@ -73,7 +73,7 @@ type CreateDBClusterParameterGroupInput struct { Description *string // The tags to be assigned to the new DB cluster parameter group. - Tags []*types.Tag + Tags []types.Tag } type CreateDBClusterParameterGroupOutput struct { diff --git a/service/neptune/api_op_CreateDBClusterSnapshot.go b/service/neptune/api_op_CreateDBClusterSnapshot.go index ccfa06e963d..cb79e9a6329 100644 --- a/service/neptune/api_op_CreateDBClusterSnapshot.go +++ b/service/neptune/api_op_CreateDBClusterSnapshot.go @@ -57,7 +57,7 @@ type CreateDBClusterSnapshotInput struct { DBClusterSnapshotIdentifier *string // The tags to be assigned to the DB cluster snapshot. - Tags []*types.Tag + Tags []types.Tag } type CreateDBClusterSnapshotOutput struct { diff --git a/service/neptune/api_op_CreateDBInstance.go b/service/neptune/api_op_CreateDBInstance.go index c0f1053dad6..04c8372ffac 100644 --- a/service/neptune/api_op_CreateDBInstance.go +++ b/service/neptune/api_op_CreateDBInstance.go @@ -114,7 +114,7 @@ type CreateDBInstanceInput struct { // A list of DB security groups to associate with this DB instance. Default: The // default DB security group for the database engine. - DBSecurityGroups []*string + DBSecurityGroups []string // A DB subnet group to associate with this DB instance. If there is no DB subnet // group, then it is a non-VPC DB instance. @@ -136,7 +136,7 @@ type CreateDBInstanceInput struct { DomainIAMRoleName *string // The list of log types that need to be enabled for exporting to CloudWatch Logs. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // True to enable AWS Identity and Access Management (IAM) authentication for // Neptune. Default: false @@ -235,7 +235,7 @@ type CreateDBInstanceInput struct { StorageType *string // The tags to assign to the new instance. - Tags []*types.Tag + Tags []types.Tag // The ARN from the key store with which to associate the instance for TDE // encryption. @@ -251,7 +251,7 @@ type CreateDBInstanceInput struct { // applicable. The associated list of EC2 VPC security groups is managed by the DB // cluster. For more information, see CreateDBCluster. Default: The default EC2 VPC // security group for the DB subnet group's VPC. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type CreateDBInstanceOutput struct { diff --git a/service/neptune/api_op_CreateDBParameterGroup.go b/service/neptune/api_op_CreateDBParameterGroup.go index ed25da98a37..1d2d1a1d956 100644 --- a/service/neptune/api_op_CreateDBParameterGroup.go +++ b/service/neptune/api_op_CreateDBParameterGroup.go @@ -75,7 +75,7 @@ type CreateDBParameterGroupInput struct { Description *string // The tags to be assigned to the new DB parameter group. - Tags []*types.Tag + Tags []types.Tag } type CreateDBParameterGroupOutput struct { diff --git a/service/neptune/api_op_CreateDBSubnetGroup.go b/service/neptune/api_op_CreateDBSubnetGroup.go index 5d300bdf4bd..4334a824973 100644 --- a/service/neptune/api_op_CreateDBSubnetGroup.go +++ b/service/neptune/api_op_CreateDBSubnetGroup.go @@ -45,10 +45,10 @@ type CreateDBSubnetGroupInput struct { // The EC2 Subnet IDs for the DB subnet group. // // This member is required. - SubnetIds []*string + SubnetIds []string // The tags to be assigned to the new DB subnet group. - Tags []*types.Tag + Tags []types.Tag } type CreateDBSubnetGroupOutput struct { diff --git a/service/neptune/api_op_CreateEventSubscription.go b/service/neptune/api_op_CreateEventSubscription.go index 76c17588326..244bd8bbc1c 100644 --- a/service/neptune/api_op_CreateEventSubscription.go +++ b/service/neptune/api_op_CreateEventSubscription.go @@ -63,7 +63,7 @@ type CreateEventSubscriptionInput struct { // A list of event categories for a SourceType that you want to subscribe to. You // can see a list of the categories for a given SourceType by using the // DescribeEventCategories action. - EventCategories []*string + EventCategories []string // The list of identifiers of the event sources for which events are returned. If // not specified, then all sources are included in the response. An identifier must @@ -84,7 +84,7 @@ type CreateEventSubscriptionInput struct { // // * // If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied. - SourceIds []*string + SourceIds []string // The type of source that is generating the events. For example, if you want to be // notified of events generated by a DB instance, you would set this parameter to @@ -94,7 +94,7 @@ type CreateEventSubscriptionInput struct { SourceType *string // The tags to be applied to the new event subscription. - Tags []*types.Tag + Tags []types.Tag } type CreateEventSubscriptionOutput struct { diff --git a/service/neptune/api_op_DeleteDBCluster.go b/service/neptune/api_op_DeleteDBCluster.go index e259379c298..c1911947621 100644 --- a/service/neptune/api_op_DeleteDBCluster.go +++ b/service/neptune/api_op_DeleteDBCluster.go @@ -60,7 +60,7 @@ type DeleteDBClusterInput struct { // specified, a DB cluster snapshot is created before the DB cluster is deleted. // You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot is // false. Default: false - SkipFinalSnapshot *bool + SkipFinalSnapshot bool } type DeleteDBClusterOutput struct { diff --git a/service/neptune/api_op_DeleteDBClusterEndpoint.go b/service/neptune/api_op_DeleteDBClusterEndpoint.go index 11dccb525e0..05d8ce81e7d 100644 --- a/service/neptune/api_op_DeleteDBClusterEndpoint.go +++ b/service/neptune/api_op_DeleteDBClusterEndpoint.go @@ -79,10 +79,10 @@ type DeleteDBClusterEndpointOutput struct { // List of DB instance identifiers that aren't part of the custom endpoint group. // All other eligible instances are reachable through the custom endpoint. Only // relevant if the list of static members is empty. - ExcludedMembers []*string + ExcludedMembers []string // List of DB instance identifiers that are part of the custom endpoint group. - StaticMembers []*string + StaticMembers []string // The current status of the endpoint. One of: creating, available, deleting, // inactive, modifying. The inactive state applies to an endpoint that cannot be diff --git a/service/neptune/api_op_DeleteDBInstance.go b/service/neptune/api_op_DeleteDBInstance.go index fce24b9baa8..0882d0f859b 100644 --- a/service/neptune/api_op_DeleteDBInstance.go +++ b/service/neptune/api_op_DeleteDBInstance.go @@ -73,7 +73,7 @@ type DeleteDBInstanceInput struct { // the SkipFinalSnapshot parameter is set to "true". Specify true when deleting a // Read Replica. The FinalDBSnapshotIdentifier parameter must be specified if // SkipFinalSnapshot is false. Default: false - SkipFinalSnapshot *bool + SkipFinalSnapshot bool } type DeleteDBInstanceOutput struct { diff --git a/service/neptune/api_op_DescribeDBClusterEndpoints.go b/service/neptune/api_op_DescribeDBClusterEndpoints.go index 3b2eb9f255a..b969de539cb 100644 --- a/service/neptune/api_op_DescribeDBClusterEndpoints.go +++ b/service/neptune/api_op_DescribeDBClusterEndpoints.go @@ -48,7 +48,7 @@ type DescribeDBClusterEndpointsInput struct { // Values for the db-cluster-endpoint-custom-type filter can be one or more of: // reader, any. Values for the db-cluster-endpoint-status filter can be one or more // of: available, creating, deleting, inactive, modifying. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBClusterEndpoints // request. If this parameter is specified, the response includes only records @@ -66,7 +66,7 @@ type DescribeDBClusterEndpointsOutput struct { // Contains the details of the endpoints associated with the cluster and matching // any filter conditions. - DBClusterEndpoints []*types.DBClusterEndpoint + DBClusterEndpoints []types.DBClusterEndpoint // An optional pagination token provided by a previous DescribeDBClusterEndpoints // request. If this parameter is specified, the response includes only records diff --git a/service/neptune/api_op_DescribeDBClusterParameterGroups.go b/service/neptune/api_op_DescribeDBClusterParameterGroups.go index 046a6dc9aa7..130f185eeec 100644 --- a/service/neptune/api_op_DescribeDBClusterParameterGroups.go +++ b/service/neptune/api_op_DescribeDBClusterParameterGroups.go @@ -39,7 +39,7 @@ type DescribeDBClusterParameterGroupsInput struct { DBClusterParameterGroupName *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous // DescribeDBClusterParameterGroups request. If this parameter is specified, the @@ -57,7 +57,7 @@ type DescribeDBClusterParameterGroupsInput struct { type DescribeDBClusterParameterGroupsOutput struct { // A list of DB cluster parameter groups. - DBClusterParameterGroups []*types.DBClusterParameterGroup + DBClusterParameterGroups []types.DBClusterParameterGroup // An optional pagination token provided by a previous // DescribeDBClusterParameterGroups request. If this parameter is specified, the diff --git a/service/neptune/api_op_DescribeDBClusterParameters.go b/service/neptune/api_op_DescribeDBClusterParameters.go index 93fb6a61456..74194cd8609 100644 --- a/service/neptune/api_op_DescribeDBClusterParameters.go +++ b/service/neptune/api_op_DescribeDBClusterParameters.go @@ -39,7 +39,7 @@ type DescribeDBClusterParametersInput struct { DBClusterParameterGroupName *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBClusterParameters // request. If this parameter is specified, the response includes only records @@ -65,7 +65,7 @@ type DescribeDBClusterParametersOutput struct { Marker *string // Provides a list of parameters for the DB cluster parameter group. - Parameters []*types.Parameter + Parameters []types.Parameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/neptune/api_op_DescribeDBClusterSnapshots.go b/service/neptune/api_op_DescribeDBClusterSnapshots.go index d0a822b0ac3..ac51f254f9e 100644 --- a/service/neptune/api_op_DescribeDBClusterSnapshots.go +++ b/service/neptune/api_op_DescribeDBClusterSnapshots.go @@ -50,20 +50,20 @@ type DescribeDBClusterSnapshotsInput struct { DBClusterSnapshotIdentifier *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // True to include manual DB cluster snapshots that are public and can be copied or // restored by any AWS account, and otherwise false. The default is false. The // default is false. You can share a manual DB cluster snapshot as public by using // the ModifyDBClusterSnapshotAttribute API action. - IncludePublic *bool + IncludePublic bool // True to include shared manual DB cluster snapshots from other AWS accounts that // this AWS account has been given permission to copy or restore, and otherwise // false. The default is false. You can give an AWS account permission to restore a // manual DB cluster snapshot from another AWS account by the // ModifyDBClusterSnapshotAttribute API action. - IncludeShared *bool + IncludeShared bool // An optional pagination token provided by a previous DescribeDBClusterSnapshots // request. If this parameter is specified, the response includes only records @@ -106,7 +106,7 @@ type DescribeDBClusterSnapshotsInput struct { type DescribeDBClusterSnapshotsOutput struct { // Provides a list of DB cluster snapshots for the user. - DBClusterSnapshots []*types.DBClusterSnapshot + DBClusterSnapshots []types.DBClusterSnapshot // An optional pagination token provided by a previous DescribeDBClusterSnapshots // request. If this parameter is specified, the response includes only records diff --git a/service/neptune/api_op_DescribeDBClusters.go b/service/neptune/api_op_DescribeDBClusters.go index cac3f76fc40..08ec8fdaa7a 100644 --- a/service/neptune/api_op_DescribeDBClusters.go +++ b/service/neptune/api_op_DescribeDBClusters.go @@ -52,7 +52,7 @@ type DescribeDBClustersInput struct { // // For example, to invoke this API from the AWS CLI and filter so that // only Neptune DB clusters are returned, you could use the following command: - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBClusters request. // If this parameter is specified, the response includes only records beyond the @@ -69,7 +69,7 @@ type DescribeDBClustersInput struct { type DescribeDBClustersOutput struct { // Contains a list of DB clusters for the user. - DBClusters []*types.DBCluster + DBClusters []types.DBCluster // A pagination token that can be used in a subsequent DescribeDBClusters request. Marker *string diff --git a/service/neptune/api_op_DescribeDBEngineVersions.go b/service/neptune/api_op_DescribeDBEngineVersions.go index b576468d252..140edca47b8 100644 --- a/service/neptune/api_op_DescribeDBEngineVersions.go +++ b/service/neptune/api_op_DescribeDBEngineVersions.go @@ -37,7 +37,7 @@ type DescribeDBEngineVersionsInput struct { // Indicates that only the default version of the specified engine or engine and // major version combination is returned. - DefaultOnly *bool + DefaultOnly bool // The database engine to return. Engine *string @@ -46,7 +46,7 @@ type DescribeDBEngineVersionsInput struct { EngineVersion *string // Not currently supported. - Filters []*types.Filter + Filters []types.Filter // If this parameter is specified and the requested engine supports the // CharacterSetName parameter for CreateDBInstance, the response includes a list of @@ -73,7 +73,7 @@ type DescribeDBEngineVersionsInput struct { type DescribeDBEngineVersionsOutput struct { // A list of DBEngineVersion elements. - DBEngineVersions []*types.DBEngineVersion + DBEngineVersions []types.DBEngineVersion // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/neptune/api_op_DescribeDBInstances.go b/service/neptune/api_op_DescribeDBInstances.go index bc6bca43f6c..6bb946e24dc 100644 --- a/service/neptune/api_op_DescribeDBInstances.go +++ b/service/neptune/api_op_DescribeDBInstances.go @@ -53,7 +53,7 @@ type DescribeDBInstancesInput struct { // For example, to invoke this API from the AWS // CLI and filter so that only Neptune DB instances are returned, you could use the // following command: - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBInstances request. // If this parameter is specified, the response includes only records beyond the @@ -70,7 +70,7 @@ type DescribeDBInstancesInput struct { type DescribeDBInstancesOutput struct { // A list of DBInstance instances. - DBInstances []*types.DBInstance + DBInstances []types.DBInstance // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/neptune/api_op_DescribeDBParameterGroups.go b/service/neptune/api_op_DescribeDBParameterGroups.go index ba72dfc99b5..cf4b290ae08 100644 --- a/service/neptune/api_op_DescribeDBParameterGroups.go +++ b/service/neptune/api_op_DescribeDBParameterGroups.go @@ -38,7 +38,7 @@ type DescribeDBParameterGroupsInput struct { DBParameterGroupName *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBParameterGroups // request. If this parameter is specified, the response includes only records @@ -55,7 +55,7 @@ type DescribeDBParameterGroupsInput struct { type DescribeDBParameterGroupsOutput struct { // A list of DBParameterGroup instances. - DBParameterGroups []*types.DBParameterGroup + DBParameterGroups []types.DBParameterGroup // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/neptune/api_op_DescribeDBParameters.go b/service/neptune/api_op_DescribeDBParameters.go index c21dc2d5981..b3d91939351 100644 --- a/service/neptune/api_op_DescribeDBParameters.go +++ b/service/neptune/api_op_DescribeDBParameters.go @@ -38,7 +38,7 @@ type DescribeDBParametersInput struct { DBParameterGroupName *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBParameters // request. If this parameter is specified, the response includes only records @@ -64,7 +64,7 @@ type DescribeDBParametersOutput struct { Marker *string // A list of Parameter values. - Parameters []*types.Parameter + Parameters []types.Parameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/neptune/api_op_DescribeDBSubnetGroups.go b/service/neptune/api_op_DescribeDBSubnetGroups.go index 9f867056ea0..ddc6c19a5d9 100644 --- a/service/neptune/api_op_DescribeDBSubnetGroups.go +++ b/service/neptune/api_op_DescribeDBSubnetGroups.go @@ -36,7 +36,7 @@ type DescribeDBSubnetGroupsInput struct { DBSubnetGroupName *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBSubnetGroups // request. If this parameter is specified, the response includes only records @@ -53,7 +53,7 @@ type DescribeDBSubnetGroupsInput struct { type DescribeDBSubnetGroupsOutput struct { // A list of DBSubnetGroup instances. - DBSubnetGroups []*types.DBSubnetGroup + DBSubnetGroups []types.DBSubnetGroup // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/neptune/api_op_DescribeEngineDefaultClusterParameters.go b/service/neptune/api_op_DescribeEngineDefaultClusterParameters.go index 946b0d712a6..7d76bca1e6f 100644 --- a/service/neptune/api_op_DescribeEngineDefaultClusterParameters.go +++ b/service/neptune/api_op_DescribeEngineDefaultClusterParameters.go @@ -37,7 +37,7 @@ type DescribeEngineDefaultClusterParametersInput struct { DBParameterGroupFamily *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous // DescribeEngineDefaultClusterParameters request. If this parameter is specified, diff --git a/service/neptune/api_op_DescribeEngineDefaultParameters.go b/service/neptune/api_op_DescribeEngineDefaultParameters.go index 74684f5b686..396ddd1616d 100644 --- a/service/neptune/api_op_DescribeEngineDefaultParameters.go +++ b/service/neptune/api_op_DescribeEngineDefaultParameters.go @@ -36,7 +36,7 @@ type DescribeEngineDefaultParametersInput struct { DBParameterGroupFamily *string // Not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous // DescribeEngineDefaultParameters request. If this parameter is specified, the diff --git a/service/neptune/api_op_DescribeEventCategories.go b/service/neptune/api_op_DescribeEventCategories.go index 9dd206a0813..1243e8d1fa5 100644 --- a/service/neptune/api_op_DescribeEventCategories.go +++ b/service/neptune/api_op_DescribeEventCategories.go @@ -31,7 +31,7 @@ func (c *Client) DescribeEventCategories(ctx context.Context, params *DescribeEv type DescribeEventCategoriesInput struct { // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // The type of source that is generating the events. Valid values: db-instance | // db-parameter-group | db-security-group | db-snapshot @@ -41,7 +41,7 @@ type DescribeEventCategoriesInput struct { type DescribeEventCategoriesOutput struct { // A list of EventCategoriesMap data types. - EventCategoriesMapList []*types.EventCategoriesMap + EventCategoriesMapList []types.EventCategoriesMap // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/neptune/api_op_DescribeEventSubscriptions.go b/service/neptune/api_op_DescribeEventSubscriptions.go index df6d3d4d260..fa1d2030bcc 100644 --- a/service/neptune/api_op_DescribeEventSubscriptions.go +++ b/service/neptune/api_op_DescribeEventSubscriptions.go @@ -33,7 +33,7 @@ func (c *Client) DescribeEventSubscriptions(ctx context.Context, params *Describ type DescribeEventSubscriptionsInput struct { // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous // DescribeOrderableDBInstanceOptions request. If this parameter is specified, the @@ -54,7 +54,7 @@ type DescribeEventSubscriptionsInput struct { type DescribeEventSubscriptionsOutput struct { // A list of EventSubscriptions data types. - EventSubscriptionsList []*types.EventSubscription + EventSubscriptionsList []types.EventSubscription // An optional pagination token provided by a previous // DescribeOrderableDBInstanceOptions request. If this parameter is specified, the diff --git a/service/neptune/api_op_DescribeEvents.go b/service/neptune/api_op_DescribeEvents.go index e33247c210b..ef8b177c23e 100644 --- a/service/neptune/api_op_DescribeEvents.go +++ b/service/neptune/api_op_DescribeEvents.go @@ -44,10 +44,10 @@ type DescribeEventsInput struct { // A list of event categories that trigger notifications for a event notification // subscription. - EventCategories []*string + EventCategories []string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeEvents request. If // this parameter is specified, the response includes only records beyond the @@ -95,7 +95,7 @@ type DescribeEventsInput struct { type DescribeEventsOutput struct { // A list of Event instances. - Events []*types.Event + Events []types.Event // An optional pagination token provided by a previous Events request. If this // parameter is specified, the response includes only records beyond the marker, up diff --git a/service/neptune/api_op_DescribeOrderableDBInstanceOptions.go b/service/neptune/api_op_DescribeOrderableDBInstanceOptions.go index dcadb57b9c0..c0707b043df 100644 --- a/service/neptune/api_op_DescribeOrderableDBInstanceOptions.go +++ b/service/neptune/api_op_DescribeOrderableDBInstanceOptions.go @@ -43,7 +43,7 @@ type DescribeOrderableDBInstanceOptionsInput struct { EngineVersion *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // The license model filter value. Specify this parameter to show only the // available offerings matching the specified license model. @@ -75,7 +75,7 @@ type DescribeOrderableDBInstanceOptionsOutput struct { // An OrderableDBInstanceOption structure containing information about orderable // options for the DB instance. - OrderableDBInstanceOptions []*types.OrderableDBInstanceOption + OrderableDBInstanceOptions []types.OrderableDBInstanceOption // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/neptune/api_op_DescribePendingMaintenanceActions.go b/service/neptune/api_op_DescribePendingMaintenanceActions.go index 0aaef614c5b..04a32d68248 100644 --- a/service/neptune/api_op_DescribePendingMaintenanceActions.go +++ b/service/neptune/api_op_DescribePendingMaintenanceActions.go @@ -41,7 +41,7 @@ type DescribePendingMaintenanceActionsInput struct { // * db-instance-id - Accepts DB instance identifiers and DB instance ARNs. // The results list will only include pending maintenance actions for the DB // instances identified by these ARNs. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous // DescribePendingMaintenanceActions request. If this parameter is specified, the @@ -68,7 +68,7 @@ type DescribePendingMaintenanceActionsOutput struct { Marker *string // A list of the pending maintenance actions for the resource. - PendingMaintenanceActions []*types.ResourcePendingMaintenanceActions + PendingMaintenanceActions []types.ResourcePendingMaintenanceActions // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/neptune/api_op_ListTagsForResource.go b/service/neptune/api_op_ListTagsForResource.go index 024dfec5876..f9ebc7a3f94 100644 --- a/service/neptune/api_op_ListTagsForResource.go +++ b/service/neptune/api_op_ListTagsForResource.go @@ -38,13 +38,13 @@ type ListTagsForResourceInput struct { ResourceName *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter } type ListTagsForResourceOutput struct { // List of tags returned by the ListTagsForResource operation. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/neptune/api_op_ModifyDBCluster.go b/service/neptune/api_op_ModifyDBCluster.go index f1f0dd33cb0..1e81772fb48 100644 --- a/service/neptune/api_op_ModifyDBCluster.go +++ b/service/neptune/api_op_ModifyDBCluster.go @@ -50,7 +50,7 @@ type ModifyDBClusterInput struct { // values are applied during the next maintenance window. All other changes are // applied immediately, regardless of the value of the ApplyImmediately parameter. // Default: false - ApplyImmediately *bool + ApplyImmediately bool // The number of days for which automated backups are retained. You must specify a // minimum value of 1. Default: 1 Constraints: @@ -134,7 +134,7 @@ type ModifyDBClusterInput struct { PreferredMaintenanceWindow *string // A list of VPC security groups that the DB cluster will belong to. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type ModifyDBClusterOutput struct { diff --git a/service/neptune/api_op_ModifyDBClusterEndpoint.go b/service/neptune/api_op_ModifyDBClusterEndpoint.go index a2939e8352f..93b5bd0b053 100644 --- a/service/neptune/api_op_ModifyDBClusterEndpoint.go +++ b/service/neptune/api_op_ModifyDBClusterEndpoint.go @@ -40,10 +40,10 @@ type ModifyDBClusterEndpointInput struct { // List of DB instance identifiers that aren't part of the custom endpoint group. // All other eligible instances are reachable through the custom endpoint. Only // relevant if the list of static members is empty. - ExcludedMembers []*string + ExcludedMembers []string // List of DB instance identifiers that are part of the custom endpoint group. - StaticMembers []*string + StaticMembers []string } // This data type represents the information you need to connect to an Amazon @@ -90,10 +90,10 @@ type ModifyDBClusterEndpointOutput struct { // List of DB instance identifiers that aren't part of the custom endpoint group. // All other eligible instances are reachable through the custom endpoint. Only // relevant if the list of static members is empty. - ExcludedMembers []*string + ExcludedMembers []string // List of DB instance identifiers that are part of the custom endpoint group. - StaticMembers []*string + StaticMembers []string // The current status of the endpoint. One of: creating, available, deleting, // inactive, modifying. The inactive state applies to an endpoint that cannot be diff --git a/service/neptune/api_op_ModifyDBClusterParameterGroup.go b/service/neptune/api_op_ModifyDBClusterParameterGroup.go index be0670795d1..976b8f8aefe 100644 --- a/service/neptune/api_op_ModifyDBClusterParameterGroup.go +++ b/service/neptune/api_op_ModifyDBClusterParameterGroup.go @@ -52,7 +52,7 @@ type ModifyDBClusterParameterGroupInput struct { // A list of parameters in the DB cluster parameter group to modify. // // This member is required. - Parameters []*types.Parameter + Parameters []types.Parameter } type ModifyDBClusterParameterGroupOutput struct { diff --git a/service/neptune/api_op_ModifyDBClusterSnapshotAttribute.go b/service/neptune/api_op_ModifyDBClusterSnapshotAttribute.go index 57fa2a64c6d..fd78c771fad 100644 --- a/service/neptune/api_op_ModifyDBClusterSnapshotAttribute.go +++ b/service/neptune/api_op_ModifyDBClusterSnapshotAttribute.go @@ -60,7 +60,7 @@ type ModifyDBClusterSnapshotAttributeInput struct { // to make the manual DB cluster snapshot restorable by any AWS account. Do not add // the all value for any manual DB cluster snapshots that contain private // information that you don't want available to all AWS accounts. - ValuesToAdd []*string + ValuesToAdd []string // A list of DB cluster snapshot attributes to remove from the attribute specified // by AttributeName. To remove authorization for other AWS accounts to copy or @@ -69,7 +69,7 @@ type ModifyDBClusterSnapshotAttributeInput struct { // or restore the DB cluster snapshot. If you specify all, an AWS account whose // account ID is explicitly added to the restore attribute can still copy or // restore a manual DB cluster snapshot. - ValuesToRemove []*string + ValuesToRemove []string } type ModifyDBClusterSnapshotAttributeOutput struct { diff --git a/service/neptune/api_op_ModifyDBInstance.go b/service/neptune/api_op_ModifyDBInstance.go index 2487f5d7f05..2c78057d80e 100644 --- a/service/neptune/api_op_ModifyDBInstance.go +++ b/service/neptune/api_op_ModifyDBInstance.go @@ -47,7 +47,7 @@ type ModifyDBInstanceInput struct { // Indicates that major version upgrades are allowed. Changing this parameter // doesn't result in an outage and the change is asynchronously applied as soon as // possible. - AllowMajorVersionUpgrade *bool + AllowMajorVersionUpgrade bool // Specifies whether the modifications in this request and any pending // modifications are asynchronously applied as soon as possible, regardless of the @@ -55,7 +55,7 @@ type ModifyDBInstanceInput struct { // to false, changes to the DB instance are applied during the next maintenance // window. Some parameter changes can cause an outage and are applied on the next // call to RebootDBInstance, or the next failure reboot. Default: false - ApplyImmediately *bool + ApplyImmediately bool // Indicates that minor version upgrades are applied automatically to the DB // instance during the maintenance window. Changing this parameter doesn't result @@ -110,7 +110,7 @@ type ModifyDBInstanceInput struct { // // * If supplied, must match existing // DBSecurityGroups. - DBSecurityGroups []*string + DBSecurityGroups []string // The new DB subnet group for the DB instance. You can use this parameter to move // your DB instance to a different VPC. Changing the subnet group causes an outage @@ -254,7 +254,7 @@ type ModifyDBInstanceInput struct { // // * If supplied, must match // existing VpcSecurityGroupIds. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type ModifyDBInstanceOutput struct { diff --git a/service/neptune/api_op_ModifyDBParameterGroup.go b/service/neptune/api_op_ModifyDBParameterGroup.go index 708130acb68..14fa4c2c495 100644 --- a/service/neptune/api_op_ModifyDBParameterGroup.go +++ b/service/neptune/api_op_ModifyDBParameterGroup.go @@ -60,7 +60,7 @@ type ModifyDBParameterGroupInput struct { // changes are applied when you reboot the DB instance without failover. // // This member is required. - Parameters []*types.Parameter + Parameters []types.Parameter } type ModifyDBParameterGroupOutput struct { diff --git a/service/neptune/api_op_ModifyDBSubnetGroup.go b/service/neptune/api_op_ModifyDBSubnetGroup.go index 1b6cbddb924..58c7ac93d58 100644 --- a/service/neptune/api_op_ModifyDBSubnetGroup.go +++ b/service/neptune/api_op_ModifyDBSubnetGroup.go @@ -40,7 +40,7 @@ type ModifyDBSubnetGroupInput struct { // The EC2 subnet IDs for the DB subnet group. // // This member is required. - SubnetIds []*string + SubnetIds []string // The description for the DB subnet group. DBSubnetGroupDescription *string diff --git a/service/neptune/api_op_ModifyEventSubscription.go b/service/neptune/api_op_ModifyEventSubscription.go index ddfd36e5ba5..92b172ff9e0 100644 --- a/service/neptune/api_op_ModifyEventSubscription.go +++ b/service/neptune/api_op_ModifyEventSubscription.go @@ -44,7 +44,7 @@ type ModifyEventSubscriptionInput struct { // A list of event categories for a SourceType that you want to subscribe to. You // can see a list of the categories for a given SourceType by using the // DescribeEventCategories action. - EventCategories []*string + EventCategories []string // The Amazon Resource Name (ARN) of the SNS topic created for event notification. // The ARN is created by Amazon SNS when you create a topic and subscribe to it. diff --git a/service/neptune/api_op_RemoveTagsFromResource.go b/service/neptune/api_op_RemoveTagsFromResource.go index 3db9219074b..5788161cd37 100644 --- a/service/neptune/api_op_RemoveTagsFromResource.go +++ b/service/neptune/api_op_RemoveTagsFromResource.go @@ -39,7 +39,7 @@ type RemoveTagsFromResourceInput struct { // The tag key (name) of the tag to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } type RemoveTagsFromResourceOutput struct { diff --git a/service/neptune/api_op_ResetDBClusterParameterGroup.go b/service/neptune/api_op_ResetDBClusterParameterGroup.go index 29a3b9c64fe..7f09fe3b801 100644 --- a/service/neptune/api_op_ResetDBClusterParameterGroup.go +++ b/service/neptune/api_op_ResetDBClusterParameterGroup.go @@ -45,12 +45,12 @@ type ResetDBClusterParameterGroupInput struct { // A list of parameter names in the DB cluster parameter group to reset to the // default values. You can't use this parameter if the ResetAllParameters parameter // is set to true. - Parameters []*types.Parameter + Parameters []types.Parameter // A value that is set to true to reset all parameters in the DB cluster parameter // group to their default values, and false otherwise. You can't use this parameter // if there is a list of parameter names specified for the Parameters parameter. - ResetAllParameters *bool + ResetAllParameters bool } type ResetDBClusterParameterGroupOutput struct { diff --git a/service/neptune/api_op_ResetDBParameterGroup.go b/service/neptune/api_op_ResetDBParameterGroup.go index d666330f77c..f74deafa36a 100644 --- a/service/neptune/api_op_ResetDBParameterGroup.go +++ b/service/neptune/api_op_ResetDBParameterGroup.go @@ -47,11 +47,11 @@ type ResetDBParameterGroupInput struct { // ResetAllParameters parameters. To reset specific parameters, provide a list of // the following: ParameterName and ApplyMethod. A maximum of 20 parameters can be // modified in a single request. Valid Values (for Apply method): pending-reboot - Parameters []*types.Parameter + Parameters []types.Parameter // Specifies whether (true) or not (false) to reset all parameters in the DB // parameter group to default values. Default: true - ResetAllParameters *bool + ResetAllParameters bool } type ResetDBParameterGroupOutput struct { diff --git a/service/neptune/api_op_RestoreDBClusterFromSnapshot.go b/service/neptune/api_op_RestoreDBClusterFromSnapshot.go index 07acc021f93..0fec42d983a 100644 --- a/service/neptune/api_op_RestoreDBClusterFromSnapshot.go +++ b/service/neptune/api_op_RestoreDBClusterFromSnapshot.go @@ -70,7 +70,7 @@ type RestoreDBClusterFromSnapshotInput struct { // Provides the list of EC2 Availability Zones that instances in the restored DB // cluster can be created in. - AvailabilityZones []*string + AvailabilityZones []string // The name of the DB cluster parameter group to associate with the new DB cluster. // Constraints: @@ -94,7 +94,7 @@ type RestoreDBClusterFromSnapshotInput struct { // The list of logs that the restored DB cluster is to export to Amazon CloudWatch // Logs. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // True to enable mapping of AWS Identity and Access Management (IAM) accounts to // database accounts, and otherwise false. Default: false @@ -129,10 +129,10 @@ type RestoreDBClusterFromSnapshotInput struct { Port *int32 // The tags to be assigned to the restored DB cluster. - Tags []*types.Tag + Tags []types.Tag // A list of VPC security groups that the new DB cluster will belong to. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type RestoreDBClusterFromSnapshotOutput struct { diff --git a/service/neptune/api_op_RestoreDBClusterToPointInTime.go b/service/neptune/api_op_RestoreDBClusterToPointInTime.go index 7a2d4cbd209..49d2b60c3f9 100644 --- a/service/neptune/api_op_RestoreDBClusterToPointInTime.go +++ b/service/neptune/api_op_RestoreDBClusterToPointInTime.go @@ -78,7 +78,7 @@ type RestoreDBClusterToPointInTimeInput struct { DeletionProtection *bool // The list of logs that the restored DB cluster is to export to CloudWatch Logs. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // True to enable mapping of AWS Identity and Access Management (IAM) accounts to // database accounts, and otherwise false. Default: false @@ -145,15 +145,15 @@ type RestoreDBClusterToPointInTimeInput struct { RestoreType *string // The tags to be applied to the restored DB cluster. - Tags []*types.Tag + Tags []types.Tag // A value that is set to true to restore the DB cluster to the latest restorable // backup time, and false otherwise. Default: false Constraints: Cannot be // specified if RestoreToTime parameter is provided. - UseLatestRestorableTime *bool + UseLatestRestorableTime bool // A list of VPC security groups that the new DB cluster belongs to. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type RestoreDBClusterToPointInTimeOutput struct { diff --git a/service/neptune/deserializers.go b/service/neptune/deserializers.go index 04cea2203be..b43b77c76cf 100644 --- a/service/neptune/deserializers.go +++ b/service/neptune/deserializers.go @@ -8653,13 +8653,13 @@ func awsAwsquery_deserializeErrorSubscriptionNotFoundFault(response *smithyhttp. return output } -func awsAwsquery_deserializeDocumentAttributeValueList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAttributeValueList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -8677,20 +8677,17 @@ func awsAwsquery_deserializeDocumentAttributeValueList(v *[]*string, decoder smi decoder = memberDecoder for { if strings.EqualFold("AttributeValue", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -8703,17 +8700,17 @@ func awsAwsquery_deserializeDocumentAttributeValueList(v *[]*string, decoder smi return nil } -func awsAwsquery_deserializeDocumentAttributeValueListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAttributeValueListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -8721,14 +8718,11 @@ func awsAwsquery_deserializeDocumentAttributeValueListUnwrapped(v *[]*string, de return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -8770,7 +8764,7 @@ func awsAwsquery_deserializeDocumentAuthorizationNotFoundFault(v **types.Authori } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8818,7 +8812,7 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -8831,13 +8825,13 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, return nil } -func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]*types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AvailabilityZone + var sv []types.AvailabilityZone if *v == nil { - sv = make([]*types.AvailabilityZone, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } @@ -8853,11 +8847,13 @@ func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]*types.Availabilit } for { if strings.EqualFold("AvailabilityZone", t.Name.Local) { - var col *types.AvailabilityZone + var col types.AvailabilityZone nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZone(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8870,35 +8866,37 @@ func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]*types.Availabilit return nil } -func awsAwsquery_deserializeDocumentAvailabilityZoneListUnwrapped(v *[]*types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { - var sv []*types.AvailabilityZone +func awsAwsquery_deserializeDocumentAvailabilityZoneListUnwrapped(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { + var sv []types.AvailabilityZone if *v == nil { - sv = make([]*types.AvailabilityZone, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } switch { default: - var mv *types.AvailabilityZone + var mv types.AvailabilityZone t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZone(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -8916,20 +8914,17 @@ func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("AvailabilityZone", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -8942,17 +8937,17 @@ func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smit return nil } -func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -8960,14 +8955,11 @@ func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -9009,7 +9001,7 @@ func awsAwsquery_deserializeDocumentCertificateNotFoundFault(v **types.Certifica } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9057,7 +9049,7 @@ func awsAwsquery_deserializeDocumentCharacterSet(v **types.CharacterSet, decoder } if val != nil { xtv := string(val) - sv.CharacterSetDescription = &xtv + sv.CharacterSetDescription = ptr.String(xtv) } case strings.EqualFold("CharacterSetName", t.Name.Local): @@ -9073,7 +9065,7 @@ func awsAwsquery_deserializeDocumentCharacterSet(v **types.CharacterSet, decoder } if val != nil { xtv := string(val) - sv.CharacterSetName = &xtv + sv.CharacterSetName = ptr.String(xtv) } default: @@ -9167,7 +9159,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.CharacterSetName = &xtv + sv.CharacterSetName = ptr.String(xtv) } case strings.EqualFold("CloneGroupId", t.Name.Local): @@ -9183,7 +9175,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.CloneGroupId = &xtv + sv.CloneGroupId = ptr.String(xtv) } case strings.EqualFold("ClusterCreateTime", t.Name.Local): @@ -9200,7 +9192,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return err } - sv.ClusterCreateTime = &t + sv.ClusterCreateTime = ptr.Time(t) } case strings.EqualFold("DatabaseName", t.Name.Local): @@ -9216,7 +9208,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DatabaseName = &xtv + sv.DatabaseName = ptr.String(xtv) } case strings.EqualFold("DBClusterArn", t.Name.Local): @@ -9232,7 +9224,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DBClusterArn = &xtv + sv.DBClusterArn = ptr.String(xtv) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -9248,7 +9240,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterMembers", t.Name.Local): @@ -9276,7 +9268,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DBClusterParameterGroup = &xtv + sv.DBClusterParameterGroup = ptr.String(xtv) } case strings.EqualFold("DbClusterResourceId", t.Name.Local): @@ -9292,7 +9284,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DbClusterResourceId = &xtv + sv.DbClusterResourceId = ptr.String(xtv) } case strings.EqualFold("DBSubnetGroup", t.Name.Local): @@ -9308,7 +9300,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DBSubnetGroup = &xtv + sv.DBSubnetGroup = ptr.String(xtv) } case strings.EqualFold("DeletionProtection", t.Name.Local): @@ -9324,7 +9316,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.DeletionProtection = &xtv + sv.DeletionProtection = ptr.Bool(xtv) } case strings.EqualFold("EarliestRestorableTime", t.Name.Local): @@ -9341,7 +9333,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return err } - sv.EarliestRestorableTime = &t + sv.EarliestRestorableTime = ptr.Time(t) } case strings.EqualFold("EnabledCloudwatchLogsExports", t.Name.Local): @@ -9363,7 +9355,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -9379,7 +9371,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -9395,7 +9387,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("HostedZoneId", t.Name.Local): @@ -9411,7 +9403,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } case strings.EqualFold("IAMDatabaseAuthenticationEnabled", t.Name.Local): @@ -9427,7 +9419,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IAMDatabaseAuthenticationEnabled = &xtv + sv.IAMDatabaseAuthenticationEnabled = xtv } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -9443,7 +9435,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("LatestRestorableTime", t.Name.Local): @@ -9460,7 +9452,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return err } - sv.LatestRestorableTime = &t + sv.LatestRestorableTime = ptr.Time(t) } case strings.EqualFold("MasterUsername", t.Name.Local): @@ -9476,7 +9468,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.MasterUsername = &xtv + sv.MasterUsername = ptr.String(xtv) } case strings.EqualFold("MultiAZ", t.Name.Local): @@ -9492,7 +9484,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MultiAZ = &xtv + sv.MultiAZ = xtv } case strings.EqualFold("PercentProgress", t.Name.Local): @@ -9508,7 +9500,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.PercentProgress = &xtv + sv.PercentProgress = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -9541,7 +9533,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.PreferredBackupWindow = &xtv + sv.PreferredBackupWindow = ptr.String(xtv) } case strings.EqualFold("PreferredMaintenanceWindow", t.Name.Local): @@ -9557,7 +9549,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.PreferredMaintenanceWindow = &xtv + sv.PreferredMaintenanceWindow = ptr.String(xtv) } case strings.EqualFold("ReaderEndpoint", t.Name.Local): @@ -9573,7 +9565,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.ReaderEndpoint = &xtv + sv.ReaderEndpoint = ptr.String(xtv) } case strings.EqualFold("ReadReplicaIdentifiers", t.Name.Local): @@ -9595,7 +9587,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.ReplicationSourceIdentifier = &xtv + sv.ReplicationSourceIdentifier = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -9611,7 +9603,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("StorageEncrypted", t.Name.Local): @@ -9627,7 +9619,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.StorageEncrypted = &xtv + sv.StorageEncrypted = xtv } case strings.EqualFold("VpcSecurityGroups", t.Name.Local): @@ -9681,7 +9673,7 @@ func awsAwsquery_deserializeDocumentDBClusterAlreadyExistsFault(v **types.DBClus } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9729,7 +9721,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.CustomEndpointType = &xtv + sv.CustomEndpointType = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointArn", t.Name.Local): @@ -9745,7 +9737,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.DBClusterEndpointArn = &xtv + sv.DBClusterEndpointArn = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointIdentifier", t.Name.Local): @@ -9761,7 +9753,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.DBClusterEndpointIdentifier = &xtv + sv.DBClusterEndpointIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointResourceIdentifier", t.Name.Local): @@ -9777,7 +9769,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.DBClusterEndpointResourceIdentifier = &xtv + sv.DBClusterEndpointResourceIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -9793,7 +9785,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("Endpoint", t.Name.Local): @@ -9809,7 +9801,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("EndpointType", t.Name.Local): @@ -9825,7 +9817,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.EndpointType = &xtv + sv.EndpointType = ptr.String(xtv) } case strings.EqualFold("ExcludedMembers", t.Name.Local): @@ -9853,7 +9845,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -9901,7 +9893,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointAlreadyExistsFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9914,13 +9906,13 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointAlreadyExistsFault(v **type return nil } -func awsAwsquery_deserializeDocumentDBClusterEndpointList(v *[]*types.DBClusterEndpoint, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterEndpointList(v *[]types.DBClusterEndpoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterEndpoint + var sv []types.DBClusterEndpoint if *v == nil { - sv = make([]*types.DBClusterEndpoint, 0) + sv = make([]types.DBClusterEndpoint, 0) } else { sv = *v } @@ -9936,11 +9928,13 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointList(v *[]*types.DBClusterE } for { if strings.EqualFold("DBClusterEndpointList", t.Name.Local) { - var col *types.DBClusterEndpoint + var col types.DBClusterEndpoint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterEndpoint(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterEndpoint(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9953,23 +9947,25 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointList(v *[]*types.DBClusterE return nil } -func awsAwsquery_deserializeDocumentDBClusterEndpointListUnwrapped(v *[]*types.DBClusterEndpoint, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterEndpoint +func awsAwsquery_deserializeDocumentDBClusterEndpointListUnwrapped(v *[]types.DBClusterEndpoint, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterEndpoint if *v == nil { - sv = make([]*types.DBClusterEndpoint, 0) + sv = make([]types.DBClusterEndpoint, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterEndpoint + var mv types.DBClusterEndpoint t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterEndpoint(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterEndpoint(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10010,7 +10006,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointNotFoundFault(v **types.DBC } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10058,7 +10054,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointQuotaExceededFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10071,13 +10067,13 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointQuotaExceededFault(v **type return nil } -func awsAwsquery_deserializeDocumentDBClusterList(v *[]*types.DBCluster, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterList(v *[]types.DBCluster, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBCluster + var sv []types.DBCluster if *v == nil { - sv = make([]*types.DBCluster, 0) + sv = make([]types.DBCluster, 0) } else { sv = *v } @@ -10093,11 +10089,13 @@ func awsAwsquery_deserializeDocumentDBClusterList(v *[]*types.DBCluster, decoder } for { if strings.EqualFold("DBCluster", t.Name.Local) { - var col *types.DBCluster + var col types.DBCluster nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBCluster(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBCluster(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10110,23 +10108,25 @@ func awsAwsquery_deserializeDocumentDBClusterList(v *[]*types.DBCluster, decoder return nil } -func awsAwsquery_deserializeDocumentDBClusterListUnwrapped(v *[]*types.DBCluster, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBCluster +func awsAwsquery_deserializeDocumentDBClusterListUnwrapped(v *[]types.DBCluster, decoder smithyxml.NodeDecoder) error { + var sv []types.DBCluster if *v == nil { - sv = make([]*types.DBCluster, 0) + sv = make([]types.DBCluster, 0) } else { sv = *v } switch { default: - var mv *types.DBCluster + var mv types.DBCluster t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBCluster(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBCluster(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10167,7 +10167,7 @@ func awsAwsquery_deserializeDocumentDBClusterMember(v **types.DBClusterMember, d } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupStatus = &xtv + sv.DBClusterParameterGroupStatus = ptr.String(xtv) } case strings.EqualFold("DBInstanceIdentifier", t.Name.Local): @@ -10183,7 +10183,7 @@ func awsAwsquery_deserializeDocumentDBClusterMember(v **types.DBClusterMember, d } if val != nil { xtv := string(val) - sv.DBInstanceIdentifier = &xtv + sv.DBInstanceIdentifier = ptr.String(xtv) } case strings.EqualFold("IsClusterWriter", t.Name.Local): @@ -10199,7 +10199,7 @@ func awsAwsquery_deserializeDocumentDBClusterMember(v **types.DBClusterMember, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsClusterWriter = &xtv + sv.IsClusterWriter = xtv } case strings.EqualFold("PromotionTier", t.Name.Local): @@ -10229,13 +10229,13 @@ func awsAwsquery_deserializeDocumentDBClusterMember(v **types.DBClusterMember, d return nil } -func awsAwsquery_deserializeDocumentDBClusterMemberList(v *[]*types.DBClusterMember, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterMemberList(v *[]types.DBClusterMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterMember + var sv []types.DBClusterMember if *v == nil { - sv = make([]*types.DBClusterMember, 0) + sv = make([]types.DBClusterMember, 0) } else { sv = *v } @@ -10251,11 +10251,13 @@ func awsAwsquery_deserializeDocumentDBClusterMemberList(v *[]*types.DBClusterMem } for { if strings.EqualFold("DBClusterMember", t.Name.Local) { - var col *types.DBClusterMember + var col types.DBClusterMember nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterMember(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterMember(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10268,23 +10270,25 @@ func awsAwsquery_deserializeDocumentDBClusterMemberList(v *[]*types.DBClusterMem return nil } -func awsAwsquery_deserializeDocumentDBClusterMemberListUnwrapped(v *[]*types.DBClusterMember, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterMember +func awsAwsquery_deserializeDocumentDBClusterMemberListUnwrapped(v *[]types.DBClusterMember, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterMember if *v == nil { - sv = make([]*types.DBClusterMember, 0) + sv = make([]types.DBClusterMember, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterMember + var mv types.DBClusterMember t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterMember(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterMember(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10325,7 +10329,7 @@ func awsAwsquery_deserializeDocumentDBClusterNotFoundFault(v **types.DBClusterNo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10338,13 +10342,13 @@ func awsAwsquery_deserializeDocumentDBClusterNotFoundFault(v **types.DBClusterNo return nil } -func awsAwsquery_deserializeDocumentDBClusterOptionGroupMemberships(v *[]*types.DBClusterOptionGroupStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterOptionGroupMemberships(v *[]types.DBClusterOptionGroupStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterOptionGroupStatus + var sv []types.DBClusterOptionGroupStatus if *v == nil { - sv = make([]*types.DBClusterOptionGroupStatus, 0) + sv = make([]types.DBClusterOptionGroupStatus, 0) } else { sv = *v } @@ -10360,11 +10364,13 @@ func awsAwsquery_deserializeDocumentDBClusterOptionGroupMemberships(v *[]*types. } for { if strings.EqualFold("DBClusterOptionGroup", t.Name.Local) { - var col *types.DBClusterOptionGroupStatus + var col types.DBClusterOptionGroupStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterOptionGroupStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterOptionGroupStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10377,23 +10383,25 @@ func awsAwsquery_deserializeDocumentDBClusterOptionGroupMemberships(v *[]*types. return nil } -func awsAwsquery_deserializeDocumentDBClusterOptionGroupMembershipsUnwrapped(v *[]*types.DBClusterOptionGroupStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterOptionGroupStatus +func awsAwsquery_deserializeDocumentDBClusterOptionGroupMembershipsUnwrapped(v *[]types.DBClusterOptionGroupStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterOptionGroupStatus if *v == nil { - sv = make([]*types.DBClusterOptionGroupStatus, 0) + sv = make([]types.DBClusterOptionGroupStatus, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterOptionGroupStatus + var mv types.DBClusterOptionGroupStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterOptionGroupStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterOptionGroupStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10434,7 +10442,7 @@ func awsAwsquery_deserializeDocumentDBClusterOptionGroupStatus(v **types.DBClust } if val != nil { xtv := string(val) - sv.DBClusterOptionGroupName = &xtv + sv.DBClusterOptionGroupName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -10450,7 +10458,7 @@ func awsAwsquery_deserializeDocumentDBClusterOptionGroupStatus(v **types.DBClust } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -10498,7 +10506,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupArn = &xtv + sv.DBClusterParameterGroupArn = ptr.String(xtv) } case strings.EqualFold("DBClusterParameterGroupName", t.Name.Local): @@ -10514,7 +10522,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupName = &xtv + sv.DBClusterParameterGroupName = ptr.String(xtv) } case strings.EqualFold("DBParameterGroupFamily", t.Name.Local): @@ -10530,7 +10538,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP } if val != nil { xtv := string(val) - sv.DBParameterGroupFamily = &xtv + sv.DBParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -10546,7 +10554,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } default: @@ -10559,13 +10567,13 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP return nil } -func awsAwsquery_deserializeDocumentDBClusterParameterGroupList(v *[]*types.DBClusterParameterGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterParameterGroupList(v *[]types.DBClusterParameterGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterParameterGroup + var sv []types.DBClusterParameterGroup if *v == nil { - sv = make([]*types.DBClusterParameterGroup, 0) + sv = make([]types.DBClusterParameterGroup, 0) } else { sv = *v } @@ -10581,11 +10589,13 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroupList(v *[]*types.DBCl } for { if strings.EqualFold("DBClusterParameterGroup", t.Name.Local) { - var col *types.DBClusterParameterGroup + var col types.DBClusterParameterGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterParameterGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10598,23 +10608,25 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroupList(v *[]*types.DBCl return nil } -func awsAwsquery_deserializeDocumentDBClusterParameterGroupListUnwrapped(v *[]*types.DBClusterParameterGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterParameterGroup +func awsAwsquery_deserializeDocumentDBClusterParameterGroupListUnwrapped(v *[]types.DBClusterParameterGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterParameterGroup if *v == nil { - sv = make([]*types.DBClusterParameterGroup, 0) + sv = make([]types.DBClusterParameterGroup, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterParameterGroup + var mv types.DBClusterParameterGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterParameterGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10655,7 +10667,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroupNotFoundFault(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10703,7 +10715,7 @@ func awsAwsquery_deserializeDocumentDBClusterQuotaExceededFault(v **types.DBClus } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10751,7 +10763,7 @@ func awsAwsquery_deserializeDocumentDBClusterRole(v **types.DBClusterRole, decod } if val != nil { xtv := string(val) - sv.FeatureName = &xtv + sv.FeatureName = ptr.String(xtv) } case strings.EqualFold("RoleArn", t.Name.Local): @@ -10767,7 +10779,7 @@ func awsAwsquery_deserializeDocumentDBClusterRole(v **types.DBClusterRole, decod } if val != nil { xtv := string(val) - sv.RoleArn = &xtv + sv.RoleArn = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -10783,7 +10795,7 @@ func awsAwsquery_deserializeDocumentDBClusterRole(v **types.DBClusterRole, decod } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -10831,7 +10843,7 @@ func awsAwsquery_deserializeDocumentDBClusterRoleAlreadyExistsFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10879,7 +10891,7 @@ func awsAwsquery_deserializeDocumentDBClusterRoleNotFoundFault(v **types.DBClust } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10927,7 +10939,7 @@ func awsAwsquery_deserializeDocumentDBClusterRoleQuotaExceededFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10940,13 +10952,13 @@ func awsAwsquery_deserializeDocumentDBClusterRoleQuotaExceededFault(v **types.DB return nil } -func awsAwsquery_deserializeDocumentDBClusterRoles(v *[]*types.DBClusterRole, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterRoles(v *[]types.DBClusterRole, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterRole + var sv []types.DBClusterRole if *v == nil { - sv = make([]*types.DBClusterRole, 0) + sv = make([]types.DBClusterRole, 0) } else { sv = *v } @@ -10962,11 +10974,13 @@ func awsAwsquery_deserializeDocumentDBClusterRoles(v *[]*types.DBClusterRole, de } for { if strings.EqualFold("DBClusterRole", t.Name.Local) { - var col *types.DBClusterRole + var col types.DBClusterRole nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterRole(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterRole(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -10979,23 +10993,25 @@ func awsAwsquery_deserializeDocumentDBClusterRoles(v *[]*types.DBClusterRole, de return nil } -func awsAwsquery_deserializeDocumentDBClusterRolesUnwrapped(v *[]*types.DBClusterRole, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterRole +func awsAwsquery_deserializeDocumentDBClusterRolesUnwrapped(v *[]types.DBClusterRole, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterRole if *v == nil { - sv = make([]*types.DBClusterRole, 0) + sv = make([]types.DBClusterRole, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterRole + var mv types.DBClusterRole t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterRole(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterRole(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11037,7 +11053,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.AllocatedStorage = ptr.Int32(int32(i64)) + sv.AllocatedStorage = int32(i64) } case strings.EqualFold("AvailabilityZones", t.Name.Local): @@ -11060,7 +11076,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.ClusterCreateTime = &t + sv.ClusterCreateTime = ptr.Time(t) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -11076,7 +11092,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterSnapshotArn", t.Name.Local): @@ -11092,7 +11108,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.DBClusterSnapshotArn = &xtv + sv.DBClusterSnapshotArn = ptr.String(xtv) } case strings.EqualFold("DBClusterSnapshotIdentifier", t.Name.Local): @@ -11108,7 +11124,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.DBClusterSnapshotIdentifier = &xtv + sv.DBClusterSnapshotIdentifier = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -11124,7 +11140,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -11140,7 +11156,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("IAMDatabaseAuthenticationEnabled", t.Name.Local): @@ -11156,7 +11172,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IAMDatabaseAuthenticationEnabled = &xtv + sv.IAMDatabaseAuthenticationEnabled = xtv } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -11172,7 +11188,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("LicenseModel", t.Name.Local): @@ -11188,7 +11204,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.LicenseModel = &xtv + sv.LicenseModel = ptr.String(xtv) } case strings.EqualFold("MasterUsername", t.Name.Local): @@ -11204,7 +11220,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.MasterUsername = &xtv + sv.MasterUsername = ptr.String(xtv) } case strings.EqualFold("PercentProgress", t.Name.Local): @@ -11221,7 +11237,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.PercentProgress = ptr.Int32(int32(i64)) + sv.PercentProgress = int32(i64) } case strings.EqualFold("Port", t.Name.Local): @@ -11238,7 +11254,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case strings.EqualFold("SnapshotCreateTime", t.Name.Local): @@ -11255,7 +11271,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.SnapshotCreateTime = &t + sv.SnapshotCreateTime = ptr.Time(t) } case strings.EqualFold("SnapshotType", t.Name.Local): @@ -11271,7 +11287,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.SnapshotType = &xtv + sv.SnapshotType = ptr.String(xtv) } case strings.EqualFold("SourceDBClusterSnapshotArn", t.Name.Local): @@ -11287,7 +11303,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.SourceDBClusterSnapshotArn = &xtv + sv.SourceDBClusterSnapshotArn = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -11303,7 +11319,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("StorageEncrypted", t.Name.Local): @@ -11319,7 +11335,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.StorageEncrypted = &xtv + sv.StorageEncrypted = xtv } case strings.EqualFold("VpcId", t.Name.Local): @@ -11335,7 +11351,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -11383,7 +11399,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAlreadyExistsFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11431,7 +11447,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(v **types.DBClust } if val != nil { xtv := string(val) - sv.AttributeName = &xtv + sv.AttributeName = ptr.String(xtv) } case strings.EqualFold("AttributeValues", t.Name.Local): @@ -11450,13 +11466,13 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(v **types.DBClust return nil } -func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeList(v *[]*types.DBClusterSnapshotAttribute, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeList(v *[]types.DBClusterSnapshotAttribute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterSnapshotAttribute + var sv []types.DBClusterSnapshotAttribute if *v == nil { - sv = make([]*types.DBClusterSnapshotAttribute, 0) + sv = make([]types.DBClusterSnapshotAttribute, 0) } else { sv = *v } @@ -11472,11 +11488,13 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeList(v *[]*types.D } for { if strings.EqualFold("DBClusterSnapshotAttribute", t.Name.Local) { - var col *types.DBClusterSnapshotAttribute + var col types.DBClusterSnapshotAttribute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11489,23 +11507,25 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeList(v *[]*types.D return nil } -func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeListUnwrapped(v *[]*types.DBClusterSnapshotAttribute, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterSnapshotAttribute +func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeListUnwrapped(v *[]types.DBClusterSnapshotAttribute, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterSnapshotAttribute if *v == nil { - sv = make([]*types.DBClusterSnapshotAttribute, 0) + sv = make([]types.DBClusterSnapshotAttribute, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterSnapshotAttribute + var mv types.DBClusterSnapshotAttribute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11552,7 +11572,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributesResult(v **types. } if val != nil { xtv := string(val) - sv.DBClusterSnapshotIdentifier = &xtv + sv.DBClusterSnapshotIdentifier = ptr.String(xtv) } default: @@ -11565,13 +11585,13 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributesResult(v **types. return nil } -func awsAwsquery_deserializeDocumentDBClusterSnapshotList(v *[]*types.DBClusterSnapshot, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterSnapshotList(v *[]types.DBClusterSnapshot, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterSnapshot + var sv []types.DBClusterSnapshot if *v == nil { - sv = make([]*types.DBClusterSnapshot, 0) + sv = make([]types.DBClusterSnapshot, 0) } else { sv = *v } @@ -11587,11 +11607,13 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotList(v *[]*types.DBClusterS } for { if strings.EqualFold("DBClusterSnapshot", t.Name.Local) { - var col *types.DBClusterSnapshot + var col types.DBClusterSnapshot nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterSnapshot(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterSnapshot(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11604,23 +11626,25 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotList(v *[]*types.DBClusterS return nil } -func awsAwsquery_deserializeDocumentDBClusterSnapshotListUnwrapped(v *[]*types.DBClusterSnapshot, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterSnapshot +func awsAwsquery_deserializeDocumentDBClusterSnapshotListUnwrapped(v *[]types.DBClusterSnapshot, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterSnapshot if *v == nil { - sv = make([]*types.DBClusterSnapshot, 0) + sv = make([]types.DBClusterSnapshot, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterSnapshot + var mv types.DBClusterSnapshot t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterSnapshot(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterSnapshot(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11661,7 +11685,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotNotFoundFault(v **types.DBC } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11709,7 +11733,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.DBEngineDescription = &xtv + sv.DBEngineDescription = ptr.String(xtv) } case strings.EqualFold("DBEngineVersionDescription", t.Name.Local): @@ -11725,7 +11749,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.DBEngineVersionDescription = &xtv + sv.DBEngineVersionDescription = ptr.String(xtv) } case strings.EqualFold("DBParameterGroupFamily", t.Name.Local): @@ -11741,7 +11765,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.DBParameterGroupFamily = &xtv + sv.DBParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("DefaultCharacterSet", t.Name.Local): @@ -11763,7 +11787,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -11779,7 +11803,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("ExportableLogTypes", t.Name.Local): @@ -11813,7 +11837,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsLogExportsToCloudwatchLogs = &xtv + sv.SupportsLogExportsToCloudwatchLogs = xtv } case strings.EqualFold("SupportsReadReplica", t.Name.Local): @@ -11829,7 +11853,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsReadReplica = &xtv + sv.SupportsReadReplica = xtv } case strings.EqualFold("ValidUpgradeTarget", t.Name.Local): @@ -11848,13 +11872,13 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d return nil } -func awsAwsquery_deserializeDocumentDBEngineVersionList(v *[]*types.DBEngineVersion, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBEngineVersionList(v *[]types.DBEngineVersion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBEngineVersion + var sv []types.DBEngineVersion if *v == nil { - sv = make([]*types.DBEngineVersion, 0) + sv = make([]types.DBEngineVersion, 0) } else { sv = *v } @@ -11870,11 +11894,13 @@ func awsAwsquery_deserializeDocumentDBEngineVersionList(v *[]*types.DBEngineVers } for { if strings.EqualFold("DBEngineVersion", t.Name.Local) { - var col *types.DBEngineVersion + var col types.DBEngineVersion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBEngineVersion(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBEngineVersion(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11887,23 +11913,25 @@ func awsAwsquery_deserializeDocumentDBEngineVersionList(v *[]*types.DBEngineVers return nil } -func awsAwsquery_deserializeDocumentDBEngineVersionListUnwrapped(v *[]*types.DBEngineVersion, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBEngineVersion +func awsAwsquery_deserializeDocumentDBEngineVersionListUnwrapped(v *[]types.DBEngineVersion, decoder smithyxml.NodeDecoder) error { + var sv []types.DBEngineVersion if *v == nil { - sv = make([]*types.DBEngineVersion, 0) + sv = make([]types.DBEngineVersion, 0) } else { sv = *v } switch { default: - var mv *types.DBEngineVersion + var mv types.DBEngineVersion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBEngineVersion(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBEngineVersion(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11945,7 +11973,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return err } - sv.AllocatedStorage = ptr.Int32(int32(i64)) + sv.AllocatedStorage = int32(i64) } case strings.EqualFold("AutoMinorVersionUpgrade", t.Name.Local): @@ -11961,7 +11989,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AutoMinorVersionUpgrade = &xtv + sv.AutoMinorVersionUpgrade = xtv } case strings.EqualFold("AvailabilityZone", t.Name.Local): @@ -11977,7 +12005,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("BackupRetentionPeriod", t.Name.Local): @@ -11994,7 +12022,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return err } - sv.BackupRetentionPeriod = ptr.Int32(int32(i64)) + sv.BackupRetentionPeriod = int32(i64) } case strings.EqualFold("CACertificateIdentifier", t.Name.Local): @@ -12010,7 +12038,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.CACertificateIdentifier = &xtv + sv.CACertificateIdentifier = ptr.String(xtv) } case strings.EqualFold("CharacterSetName", t.Name.Local): @@ -12026,7 +12054,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.CharacterSetName = &xtv + sv.CharacterSetName = ptr.String(xtv) } case strings.EqualFold("CopyTagsToSnapshot", t.Name.Local): @@ -12042,7 +12070,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.CopyTagsToSnapshot = &xtv + sv.CopyTagsToSnapshot = xtv } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -12058,7 +12086,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("DBInstanceArn", t.Name.Local): @@ -12074,7 +12102,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBInstanceArn = &xtv + sv.DBInstanceArn = ptr.String(xtv) } case strings.EqualFold("DBInstanceClass", t.Name.Local): @@ -12090,7 +12118,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBInstanceClass = &xtv + sv.DBInstanceClass = ptr.String(xtv) } case strings.EqualFold("DBInstanceIdentifier", t.Name.Local): @@ -12106,7 +12134,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBInstanceIdentifier = &xtv + sv.DBInstanceIdentifier = ptr.String(xtv) } case strings.EqualFold("DbInstancePort", t.Name.Local): @@ -12123,7 +12151,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return err } - sv.DbInstancePort = ptr.Int32(int32(i64)) + sv.DbInstancePort = int32(i64) } case strings.EqualFold("DBInstanceStatus", t.Name.Local): @@ -12139,7 +12167,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBInstanceStatus = &xtv + sv.DBInstanceStatus = ptr.String(xtv) } case strings.EqualFold("DbiResourceId", t.Name.Local): @@ -12155,7 +12183,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DbiResourceId = &xtv + sv.DbiResourceId = ptr.String(xtv) } case strings.EqualFold("DBName", t.Name.Local): @@ -12171,7 +12199,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBName = &xtv + sv.DBName = ptr.String(xtv) } case strings.EqualFold("DBParameterGroups", t.Name.Local): @@ -12205,7 +12233,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.DeletionProtection = &xtv + sv.DeletionProtection = ptr.Bool(xtv) } case strings.EqualFold("DomainMemberships", t.Name.Local): @@ -12239,7 +12267,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -12255,7 +12283,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("EnhancedMonitoringResourceArn", t.Name.Local): @@ -12271,7 +12299,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.EnhancedMonitoringResourceArn = &xtv + sv.EnhancedMonitoringResourceArn = ptr.String(xtv) } case strings.EqualFold("IAMDatabaseAuthenticationEnabled", t.Name.Local): @@ -12287,7 +12315,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IAMDatabaseAuthenticationEnabled = &xtv + sv.IAMDatabaseAuthenticationEnabled = xtv } case strings.EqualFold("InstanceCreateTime", t.Name.Local): @@ -12304,7 +12332,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return err } - sv.InstanceCreateTime = &t + sv.InstanceCreateTime = ptr.Time(t) } case strings.EqualFold("Iops", t.Name.Local): @@ -12337,7 +12365,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("LatestRestorableTime", t.Name.Local): @@ -12354,7 +12382,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return err } - sv.LatestRestorableTime = &t + sv.LatestRestorableTime = ptr.Time(t) } case strings.EqualFold("LicenseModel", t.Name.Local): @@ -12370,7 +12398,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.LicenseModel = &xtv + sv.LicenseModel = ptr.String(xtv) } case strings.EqualFold("MasterUsername", t.Name.Local): @@ -12386,7 +12414,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.MasterUsername = &xtv + sv.MasterUsername = ptr.String(xtv) } case strings.EqualFold("MonitoringInterval", t.Name.Local): @@ -12419,7 +12447,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.MonitoringRoleArn = &xtv + sv.MonitoringRoleArn = ptr.String(xtv) } case strings.EqualFold("MultiAZ", t.Name.Local): @@ -12435,7 +12463,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MultiAZ = &xtv + sv.MultiAZ = xtv } case strings.EqualFold("OptionGroupMemberships", t.Name.Local): @@ -12463,7 +12491,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.PerformanceInsightsEnabled = &xtv + sv.PerformanceInsightsEnabled = ptr.Bool(xtv) } case strings.EqualFold("PerformanceInsightsKMSKeyId", t.Name.Local): @@ -12479,7 +12507,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.PerformanceInsightsKMSKeyId = &xtv + sv.PerformanceInsightsKMSKeyId = ptr.String(xtv) } case strings.EqualFold("PreferredBackupWindow", t.Name.Local): @@ -12495,7 +12523,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.PreferredBackupWindow = &xtv + sv.PreferredBackupWindow = ptr.String(xtv) } case strings.EqualFold("PreferredMaintenanceWindow", t.Name.Local): @@ -12511,7 +12539,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.PreferredMaintenanceWindow = &xtv + sv.PreferredMaintenanceWindow = ptr.String(xtv) } case strings.EqualFold("PromotionTier", t.Name.Local): @@ -12544,7 +12572,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.PubliclyAccessible = &xtv + sv.PubliclyAccessible = xtv } case strings.EqualFold("ReadReplicaDBClusterIdentifiers", t.Name.Local): @@ -12572,7 +12600,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.ReadReplicaSourceDBInstanceIdentifier = &xtv + sv.ReadReplicaSourceDBInstanceIdentifier = ptr.String(xtv) } case strings.EqualFold("SecondaryAvailabilityZone", t.Name.Local): @@ -12588,7 +12616,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.SecondaryAvailabilityZone = &xtv + sv.SecondaryAvailabilityZone = ptr.String(xtv) } case strings.EqualFold("StatusInfos", t.Name.Local): @@ -12610,7 +12638,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.StorageEncrypted = &xtv + sv.StorageEncrypted = xtv } case strings.EqualFold("StorageType", t.Name.Local): @@ -12626,7 +12654,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.StorageType = &xtv + sv.StorageType = ptr.String(xtv) } case strings.EqualFold("TdeCredentialArn", t.Name.Local): @@ -12642,7 +12670,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.TdeCredentialArn = &xtv + sv.TdeCredentialArn = ptr.String(xtv) } case strings.EqualFold("Timezone", t.Name.Local): @@ -12658,7 +12686,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.Timezone = &xtv + sv.Timezone = ptr.String(xtv) } case strings.EqualFold("VpcSecurityGroups", t.Name.Local): @@ -12712,7 +12740,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAlreadyExistsFault(v **types.DBIns } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12725,13 +12753,13 @@ func awsAwsquery_deserializeDocumentDBInstanceAlreadyExistsFault(v **types.DBIns return nil } -func awsAwsquery_deserializeDocumentDBInstanceList(v *[]*types.DBInstance, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBInstanceList(v *[]types.DBInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBInstance + var sv []types.DBInstance if *v == nil { - sv = make([]*types.DBInstance, 0) + sv = make([]types.DBInstance, 0) } else { sv = *v } @@ -12747,11 +12775,13 @@ func awsAwsquery_deserializeDocumentDBInstanceList(v *[]*types.DBInstance, decod } for { if strings.EqualFold("DBInstance", t.Name.Local) { - var col *types.DBInstance + var col types.DBInstance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12764,23 +12794,25 @@ func awsAwsquery_deserializeDocumentDBInstanceList(v *[]*types.DBInstance, decod return nil } -func awsAwsquery_deserializeDocumentDBInstanceListUnwrapped(v *[]*types.DBInstance, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBInstance +func awsAwsquery_deserializeDocumentDBInstanceListUnwrapped(v *[]types.DBInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.DBInstance if *v == nil { - sv = make([]*types.DBInstance, 0) + sv = make([]types.DBInstance, 0) } else { sv = *v } switch { default: - var mv *types.DBInstance + var mv types.DBInstance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12821,7 +12853,7 @@ func awsAwsquery_deserializeDocumentDBInstanceNotFoundFault(v **types.DBInstance } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12869,7 +12901,7 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("Normal", t.Name.Local): @@ -12885,7 +12917,7 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Normal = &xtv + sv.Normal = xtv } case strings.EqualFold("Status", t.Name.Local): @@ -12901,7 +12933,7 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("StatusType", t.Name.Local): @@ -12917,7 +12949,7 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta } if val != nil { xtv := string(val) - sv.StatusType = &xtv + sv.StatusType = ptr.String(xtv) } default: @@ -12930,13 +12962,13 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta return nil } -func awsAwsquery_deserializeDocumentDBInstanceStatusInfoList(v *[]*types.DBInstanceStatusInfo, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBInstanceStatusInfoList(v *[]types.DBInstanceStatusInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBInstanceStatusInfo + var sv []types.DBInstanceStatusInfo if *v == nil { - sv = make([]*types.DBInstanceStatusInfo, 0) + sv = make([]types.DBInstanceStatusInfo, 0) } else { sv = *v } @@ -12952,11 +12984,13 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfoList(v *[]*types.DBInsta } for { if strings.EqualFold("DBInstanceStatusInfo", t.Name.Local) { - var col *types.DBInstanceStatusInfo + var col types.DBInstanceStatusInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstanceStatusInfo(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBInstanceStatusInfo(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12969,23 +13003,25 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfoList(v *[]*types.DBInsta return nil } -func awsAwsquery_deserializeDocumentDBInstanceStatusInfoListUnwrapped(v *[]*types.DBInstanceStatusInfo, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBInstanceStatusInfo +func awsAwsquery_deserializeDocumentDBInstanceStatusInfoListUnwrapped(v *[]types.DBInstanceStatusInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.DBInstanceStatusInfo if *v == nil { - sv = make([]*types.DBInstanceStatusInfo, 0) + sv = make([]types.DBInstanceStatusInfo, 0) } else { sv = *v } switch { default: - var mv *types.DBInstanceStatusInfo + var mv types.DBInstanceStatusInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstanceStatusInfo(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBInstanceStatusInfo(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13026,7 +13062,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroup(v **types.DBParameterGroup, } if val != nil { xtv := string(val) - sv.DBParameterGroupArn = &xtv + sv.DBParameterGroupArn = ptr.String(xtv) } case strings.EqualFold("DBParameterGroupFamily", t.Name.Local): @@ -13042,7 +13078,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroup(v **types.DBParameterGroup, } if val != nil { xtv := string(val) - sv.DBParameterGroupFamily = &xtv + sv.DBParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("DBParameterGroupName", t.Name.Local): @@ -13058,7 +13094,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroup(v **types.DBParameterGroup, } if val != nil { xtv := string(val) - sv.DBParameterGroupName = &xtv + sv.DBParameterGroupName = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -13074,7 +13110,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroup(v **types.DBParameterGroup, } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } default: @@ -13122,7 +13158,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroupAlreadyExistsFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13135,13 +13171,13 @@ func awsAwsquery_deserializeDocumentDBParameterGroupAlreadyExistsFault(v **types return nil } -func awsAwsquery_deserializeDocumentDBParameterGroupList(v *[]*types.DBParameterGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBParameterGroupList(v *[]types.DBParameterGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBParameterGroup + var sv []types.DBParameterGroup if *v == nil { - sv = make([]*types.DBParameterGroup, 0) + sv = make([]types.DBParameterGroup, 0) } else { sv = *v } @@ -13157,11 +13193,13 @@ func awsAwsquery_deserializeDocumentDBParameterGroupList(v *[]*types.DBParameter } for { if strings.EqualFold("DBParameterGroup", t.Name.Local) { - var col *types.DBParameterGroup + var col types.DBParameterGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBParameterGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13174,23 +13212,25 @@ func awsAwsquery_deserializeDocumentDBParameterGroupList(v *[]*types.DBParameter return nil } -func awsAwsquery_deserializeDocumentDBParameterGroupListUnwrapped(v *[]*types.DBParameterGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBParameterGroup +func awsAwsquery_deserializeDocumentDBParameterGroupListUnwrapped(v *[]types.DBParameterGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.DBParameterGroup if *v == nil { - sv = make([]*types.DBParameterGroup, 0) + sv = make([]types.DBParameterGroup, 0) } else { sv = *v } switch { default: - var mv *types.DBParameterGroup + var mv types.DBParameterGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBParameterGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13231,7 +13271,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroupNotFoundFault(v **types.DBPa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13279,7 +13319,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroupQuotaExceededFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13327,7 +13367,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroupStatus(v **types.DBParameter } if val != nil { xtv := string(val) - sv.DBParameterGroupName = &xtv + sv.DBParameterGroupName = ptr.String(xtv) } case strings.EqualFold("ParameterApplyStatus", t.Name.Local): @@ -13343,7 +13383,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroupStatus(v **types.DBParameter } if val != nil { xtv := string(val) - sv.ParameterApplyStatus = &xtv + sv.ParameterApplyStatus = ptr.String(xtv) } default: @@ -13356,13 +13396,13 @@ func awsAwsquery_deserializeDocumentDBParameterGroupStatus(v **types.DBParameter return nil } -func awsAwsquery_deserializeDocumentDBParameterGroupStatusList(v *[]*types.DBParameterGroupStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBParameterGroupStatusList(v *[]types.DBParameterGroupStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBParameterGroupStatus + var sv []types.DBParameterGroupStatus if *v == nil { - sv = make([]*types.DBParameterGroupStatus, 0) + sv = make([]types.DBParameterGroupStatus, 0) } else { sv = *v } @@ -13378,11 +13418,13 @@ func awsAwsquery_deserializeDocumentDBParameterGroupStatusList(v *[]*types.DBPar } for { if strings.EqualFold("DBParameterGroup", t.Name.Local) { - var col *types.DBParameterGroupStatus + var col types.DBParameterGroupStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBParameterGroupStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBParameterGroupStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13395,23 +13437,25 @@ func awsAwsquery_deserializeDocumentDBParameterGroupStatusList(v *[]*types.DBPar return nil } -func awsAwsquery_deserializeDocumentDBParameterGroupStatusListUnwrapped(v *[]*types.DBParameterGroupStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBParameterGroupStatus +func awsAwsquery_deserializeDocumentDBParameterGroupStatusListUnwrapped(v *[]types.DBParameterGroupStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.DBParameterGroupStatus if *v == nil { - sv = make([]*types.DBParameterGroupStatus, 0) + sv = make([]types.DBParameterGroupStatus, 0) } else { sv = *v } switch { default: - var mv *types.DBParameterGroupStatus + var mv types.DBParameterGroupStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBParameterGroupStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBParameterGroupStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13452,7 +13496,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupMembership(v **types.DBSecuri } if val != nil { xtv := string(val) - sv.DBSecurityGroupName = &xtv + sv.DBSecurityGroupName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -13468,7 +13512,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupMembership(v **types.DBSecuri } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -13481,13 +13525,13 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupMembership(v **types.DBSecuri return nil } -func awsAwsquery_deserializeDocumentDBSecurityGroupMembershipList(v *[]*types.DBSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBSecurityGroupMembershipList(v *[]types.DBSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBSecurityGroupMembership + var sv []types.DBSecurityGroupMembership if *v == nil { - sv = make([]*types.DBSecurityGroupMembership, 0) + sv = make([]types.DBSecurityGroupMembership, 0) } else { sv = *v } @@ -13503,11 +13547,13 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupMembershipList(v *[]*types.DB } for { if strings.EqualFold("DBSecurityGroup", t.Name.Local) { - var col *types.DBSecurityGroupMembership + var col types.DBSecurityGroupMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSecurityGroupMembership(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13520,23 +13566,25 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupMembershipList(v *[]*types.DB return nil } -func awsAwsquery_deserializeDocumentDBSecurityGroupMembershipListUnwrapped(v *[]*types.DBSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBSecurityGroupMembership +func awsAwsquery_deserializeDocumentDBSecurityGroupMembershipListUnwrapped(v *[]types.DBSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.DBSecurityGroupMembership if *v == nil { - sv = make([]*types.DBSecurityGroupMembership, 0) + sv = make([]types.DBSecurityGroupMembership, 0) } else { sv = *v } switch { default: - var mv *types.DBSecurityGroupMembership + var mv types.DBSecurityGroupMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSecurityGroupMembership(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13577,7 +13625,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupNotFoundFault(v **types.DBSec } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13625,7 +13673,7 @@ func awsAwsquery_deserializeDocumentDBSnapshotAlreadyExistsFault(v **types.DBSna } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13673,7 +13721,7 @@ func awsAwsquery_deserializeDocumentDBSnapshotNotFoundFault(v **types.DBSnapshot } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13721,7 +13769,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.DBSubnetGroupArn = &xtv + sv.DBSubnetGroupArn = ptr.String(xtv) } case strings.EqualFold("DBSubnetGroupDescription", t.Name.Local): @@ -13737,7 +13785,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.DBSubnetGroupDescription = &xtv + sv.DBSubnetGroupDescription = ptr.String(xtv) } case strings.EqualFold("DBSubnetGroupName", t.Name.Local): @@ -13753,7 +13801,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.DBSubnetGroupName = &xtv + sv.DBSubnetGroupName = ptr.String(xtv) } case strings.EqualFold("SubnetGroupStatus", t.Name.Local): @@ -13769,7 +13817,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.SubnetGroupStatus = &xtv + sv.SubnetGroupStatus = ptr.String(xtv) } case strings.EqualFold("Subnets", t.Name.Local): @@ -13791,7 +13839,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -13839,7 +13887,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupAlreadyExistsFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13887,7 +13935,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupDoesNotCoverEnoughAZs(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13935,7 +13983,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupNotFoundFault(v **types.DBSubne } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13983,7 +14031,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupQuotaExceededFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13996,13 +14044,13 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupQuotaExceededFault(v **types.DB return nil } -func awsAwsquery_deserializeDocumentDBSubnetGroups(v *[]*types.DBSubnetGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBSubnetGroups(v *[]types.DBSubnetGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBSubnetGroup + var sv []types.DBSubnetGroup if *v == nil { - sv = make([]*types.DBSubnetGroup, 0) + sv = make([]types.DBSubnetGroup, 0) } else { sv = *v } @@ -14018,11 +14066,13 @@ func awsAwsquery_deserializeDocumentDBSubnetGroups(v *[]*types.DBSubnetGroup, de } for { if strings.EqualFold("DBSubnetGroup", t.Name.Local) { - var col *types.DBSubnetGroup + var col types.DBSubnetGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSubnetGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBSubnetGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14035,23 +14085,25 @@ func awsAwsquery_deserializeDocumentDBSubnetGroups(v *[]*types.DBSubnetGroup, de return nil } -func awsAwsquery_deserializeDocumentDBSubnetGroupsUnwrapped(v *[]*types.DBSubnetGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBSubnetGroup +func awsAwsquery_deserializeDocumentDBSubnetGroupsUnwrapped(v *[]types.DBSubnetGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.DBSubnetGroup if *v == nil { - sv = make([]*types.DBSubnetGroup, 0) + sv = make([]types.DBSubnetGroup, 0) } else { sv = *v } switch { default: - var mv *types.DBSubnetGroup + var mv types.DBSubnetGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSubnetGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBSubnetGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -14092,7 +14144,7 @@ func awsAwsquery_deserializeDocumentDBSubnetQuotaExceededFault(v **types.DBSubne } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14140,7 +14192,7 @@ func awsAwsquery_deserializeDocumentDBUpgradeDependencyFailureFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14188,7 +14240,7 @@ func awsAwsquery_deserializeDocumentDomainMembership(v **types.DomainMembership, } if val != nil { xtv := string(val) - sv.Domain = &xtv + sv.Domain = ptr.String(xtv) } case strings.EqualFold("FQDN", t.Name.Local): @@ -14204,7 +14256,7 @@ func awsAwsquery_deserializeDocumentDomainMembership(v **types.DomainMembership, } if val != nil { xtv := string(val) - sv.FQDN = &xtv + sv.FQDN = ptr.String(xtv) } case strings.EqualFold("IAMRoleName", t.Name.Local): @@ -14220,7 +14272,7 @@ func awsAwsquery_deserializeDocumentDomainMembership(v **types.DomainMembership, } if val != nil { xtv := string(val) - sv.IAMRoleName = &xtv + sv.IAMRoleName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -14236,7 +14288,7 @@ func awsAwsquery_deserializeDocumentDomainMembership(v **types.DomainMembership, } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -14249,13 +14301,13 @@ func awsAwsquery_deserializeDocumentDomainMembership(v **types.DomainMembership, return nil } -func awsAwsquery_deserializeDocumentDomainMembershipList(v *[]*types.DomainMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDomainMembershipList(v *[]types.DomainMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DomainMembership + var sv []types.DomainMembership if *v == nil { - sv = make([]*types.DomainMembership, 0) + sv = make([]types.DomainMembership, 0) } else { sv = *v } @@ -14271,11 +14323,13 @@ func awsAwsquery_deserializeDocumentDomainMembershipList(v *[]*types.DomainMembe } for { if strings.EqualFold("DomainMembership", t.Name.Local) { - var col *types.DomainMembership + var col types.DomainMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDomainMembership(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDomainMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14288,23 +14342,25 @@ func awsAwsquery_deserializeDocumentDomainMembershipList(v *[]*types.DomainMembe return nil } -func awsAwsquery_deserializeDocumentDomainMembershipListUnwrapped(v *[]*types.DomainMembership, decoder smithyxml.NodeDecoder) error { - var sv []*types.DomainMembership +func awsAwsquery_deserializeDocumentDomainMembershipListUnwrapped(v *[]types.DomainMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.DomainMembership if *v == nil { - sv = make([]*types.DomainMembership, 0) + sv = make([]types.DomainMembership, 0) } else { sv = *v } switch { default: - var mv *types.DomainMembership + var mv types.DomainMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDomainMembership(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDomainMembership(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -14345,7 +14401,7 @@ func awsAwsquery_deserializeDocumentDomainNotFoundFault(v **types.DomainNotFound } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14394,7 +14450,7 @@ func awsAwsquery_deserializeDocumentDoubleRange(v **types.DoubleRange, decoder s if err != nil { return err } - sv.From = &f64 + sv.From = f64 } case strings.EqualFold("To", t.Name.Local): @@ -14411,7 +14467,7 @@ func awsAwsquery_deserializeDocumentDoubleRange(v **types.DoubleRange, decoder s if err != nil { return err } - sv.To = &f64 + sv.To = f64 } default: @@ -14424,13 +14480,13 @@ func awsAwsquery_deserializeDocumentDoubleRange(v **types.DoubleRange, decoder s return nil } -func awsAwsquery_deserializeDocumentDoubleRangeList(v *[]*types.DoubleRange, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDoubleRangeList(v *[]types.DoubleRange, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DoubleRange + var sv []types.DoubleRange if *v == nil { - sv = make([]*types.DoubleRange, 0) + sv = make([]types.DoubleRange, 0) } else { sv = *v } @@ -14446,11 +14502,13 @@ func awsAwsquery_deserializeDocumentDoubleRangeList(v *[]*types.DoubleRange, dec } for { if strings.EqualFold("DoubleRange", t.Name.Local) { - var col *types.DoubleRange + var col types.DoubleRange nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDoubleRange(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDoubleRange(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14463,23 +14521,25 @@ func awsAwsquery_deserializeDocumentDoubleRangeList(v *[]*types.DoubleRange, dec return nil } -func awsAwsquery_deserializeDocumentDoubleRangeListUnwrapped(v *[]*types.DoubleRange, decoder smithyxml.NodeDecoder) error { - var sv []*types.DoubleRange +func awsAwsquery_deserializeDocumentDoubleRangeListUnwrapped(v *[]types.DoubleRange, decoder smithyxml.NodeDecoder) error { + var sv []types.DoubleRange if *v == nil { - sv = make([]*types.DoubleRange, 0) + sv = make([]types.DoubleRange, 0) } else { sv = *v } switch { default: - var mv *types.DoubleRange + var mv types.DoubleRange t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDoubleRange(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDoubleRange(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -14520,7 +14580,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx } if val != nil { xtv := string(val) - sv.Address = &xtv + sv.Address = ptr.String(xtv) } case strings.EqualFold("HostedZoneId", t.Name.Local): @@ -14536,7 +14596,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -14553,7 +14613,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -14601,7 +14661,7 @@ func awsAwsquery_deserializeDocumentEngineDefaults(v **types.EngineDefaults, dec } if val != nil { xtv := string(val) - sv.DBParameterGroupFamily = &xtv + sv.DBParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("Marker", t.Name.Local): @@ -14617,7 +14677,7 @@ func awsAwsquery_deserializeDocumentEngineDefaults(v **types.EngineDefaults, dec } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): @@ -14672,7 +14732,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod if err != nil { return err } - sv.Date = &t + sv.Date = ptr.Time(t) } case strings.EqualFold("EventCategories", t.Name.Local): @@ -14694,7 +14754,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("SourceArn", t.Name.Local): @@ -14710,7 +14770,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.SourceArn = &xtv + sv.SourceArn = ptr.String(xtv) } case strings.EqualFold("SourceIdentifier", t.Name.Local): @@ -14726,7 +14786,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.SourceIdentifier = &xtv + sv.SourceIdentifier = ptr.String(xtv) } case strings.EqualFold("SourceType", t.Name.Local): @@ -14752,13 +14812,13 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -14776,20 +14836,17 @@ func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]*string, decoder sm decoder = memberDecoder for { if strings.EqualFold("EventCategory", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -14802,17 +14859,17 @@ func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]*string, decoder sm return nil } -func awsAwsquery_deserializeDocumentEventCategoriesListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentEventCategoriesListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -14820,14 +14877,11 @@ func awsAwsquery_deserializeDocumentEventCategoriesListUnwrapped(v *[]*string, d return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -14875,7 +14929,7 @@ func awsAwsquery_deserializeDocumentEventCategoriesMap(v **types.EventCategories } if val != nil { xtv := string(val) - sv.SourceType = &xtv + sv.SourceType = ptr.String(xtv) } default: @@ -14888,13 +14942,13 @@ func awsAwsquery_deserializeDocumentEventCategoriesMap(v **types.EventCategories return nil } -func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]*types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EventCategoriesMap + var sv []types.EventCategoriesMap if *v == nil { - sv = make([]*types.EventCategoriesMap, 0) + sv = make([]types.EventCategoriesMap, 0) } else { sv = *v } @@ -14910,11 +14964,13 @@ func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]*types.EventCate } for { if strings.EqualFold("EventCategoriesMap", t.Name.Local) { - var col *types.EventCategoriesMap + var col types.EventCategoriesMap nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14927,35 +14983,37 @@ func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]*types.EventCate return nil } -func awsAwsquery_deserializeDocumentEventCategoriesMapListUnwrapped(v *[]*types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { - var sv []*types.EventCategoriesMap +func awsAwsquery_deserializeDocumentEventCategoriesMapListUnwrapped(v *[]types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { + var sv []types.EventCategoriesMap if *v == nil { - sv = make([]*types.EventCategoriesMap, 0) + sv = make([]types.EventCategoriesMap, 0) } else { sv = *v } switch { default: - var mv *types.EventCategoriesMap + var mv types.EventCategoriesMap t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventList(v *[]types.Event, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Event + var sv []types.Event if *v == nil { - sv = make([]*types.Event, 0) + sv = make([]types.Event, 0) } else { sv = *v } @@ -14971,11 +15029,13 @@ func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyx } for { if strings.EqualFold("Event", t.Name.Local) { - var col *types.Event + var col types.Event nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEvent(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14988,23 +15048,25 @@ func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentEventListUnwrapped(v *[]*types.Event, decoder smithyxml.NodeDecoder) error { - var sv []*types.Event +func awsAwsquery_deserializeDocumentEventListUnwrapped(v *[]types.Event, decoder smithyxml.NodeDecoder) error { + var sv []types.Event if *v == nil { - sv = make([]*types.Event, 0) + sv = make([]types.Event, 0) } else { sv = *v } switch { default: - var mv *types.Event + var mv types.Event t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEvent(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15045,7 +15107,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.CustomerAwsId = &xtv + sv.CustomerAwsId = ptr.String(xtv) } case strings.EqualFold("CustSubscriptionId", t.Name.Local): @@ -15061,7 +15123,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.CustSubscriptionId = &xtv + sv.CustSubscriptionId = ptr.String(xtv) } case strings.EqualFold("Enabled", t.Name.Local): @@ -15077,7 +15139,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } case strings.EqualFold("EventCategoriesList", t.Name.Local): @@ -15099,7 +15161,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.EventSubscriptionArn = &xtv + sv.EventSubscriptionArn = ptr.String(xtv) } case strings.EqualFold("SnsTopicArn", t.Name.Local): @@ -15115,7 +15177,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.SnsTopicArn = &xtv + sv.SnsTopicArn = ptr.String(xtv) } case strings.EqualFold("SourceIdsList", t.Name.Local): @@ -15137,7 +15199,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.SourceType = &xtv + sv.SourceType = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -15153,7 +15215,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("SubscriptionCreationTime", t.Name.Local): @@ -15169,7 +15231,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.SubscriptionCreationTime = &xtv + sv.SubscriptionCreationTime = ptr.String(xtv) } default: @@ -15217,7 +15279,7 @@ func awsAwsquery_deserializeDocumentEventSubscriptionQuotaExceededFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15230,13 +15292,13 @@ func awsAwsquery_deserializeDocumentEventSubscriptionQuotaExceededFault(v **type return nil } -func awsAwsquery_deserializeDocumentEventSubscriptionsList(v *[]*types.EventSubscription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventSubscriptionsList(v *[]types.EventSubscription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EventSubscription + var sv []types.EventSubscription if *v == nil { - sv = make([]*types.EventSubscription, 0) + sv = make([]types.EventSubscription, 0) } else { sv = *v } @@ -15252,11 +15314,13 @@ func awsAwsquery_deserializeDocumentEventSubscriptionsList(v *[]*types.EventSubs } for { if strings.EqualFold("EventSubscription", t.Name.Local) { - var col *types.EventSubscription + var col types.EventSubscription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventSubscription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEventSubscription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15269,23 +15333,25 @@ func awsAwsquery_deserializeDocumentEventSubscriptionsList(v *[]*types.EventSubs return nil } -func awsAwsquery_deserializeDocumentEventSubscriptionsListUnwrapped(v *[]*types.EventSubscription, decoder smithyxml.NodeDecoder) error { - var sv []*types.EventSubscription +func awsAwsquery_deserializeDocumentEventSubscriptionsListUnwrapped(v *[]types.EventSubscription, decoder smithyxml.NodeDecoder) error { + var sv []types.EventSubscription if *v == nil { - sv = make([]*types.EventSubscription, 0) + sv = make([]types.EventSubscription, 0) } else { sv = *v } switch { default: - var mv *types.EventSubscription + var mv types.EventSubscription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventSubscription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEventSubscription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15326,7 +15392,7 @@ func awsAwsquery_deserializeDocumentInstanceQuotaExceededFault(v **types.Instanc } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15374,7 +15440,7 @@ func awsAwsquery_deserializeDocumentInsufficientDBClusterCapacityFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15422,7 +15488,7 @@ func awsAwsquery_deserializeDocumentInsufficientDBInstanceCapacityFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15470,7 +15536,7 @@ func awsAwsquery_deserializeDocumentInsufficientStorageClusterCapacityFault(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15518,7 +15584,7 @@ func awsAwsquery_deserializeDocumentInvalidDBClusterEndpointStateFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15566,7 +15632,7 @@ func awsAwsquery_deserializeDocumentInvalidDBClusterSnapshotStateFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15614,7 +15680,7 @@ func awsAwsquery_deserializeDocumentInvalidDBClusterStateFault(v **types.Invalid } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15662,7 +15728,7 @@ func awsAwsquery_deserializeDocumentInvalidDBInstanceStateFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15710,7 +15776,7 @@ func awsAwsquery_deserializeDocumentInvalidDBParameterGroupStateFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15758,7 +15824,7 @@ func awsAwsquery_deserializeDocumentInvalidDBSecurityGroupStateFault(v **types.I } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15806,7 +15872,7 @@ func awsAwsquery_deserializeDocumentInvalidDBSnapshotStateFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15854,7 +15920,7 @@ func awsAwsquery_deserializeDocumentInvalidDBSubnetGroupStateFault(v **types.Inv } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15902,7 +15968,7 @@ func awsAwsquery_deserializeDocumentInvalidDBSubnetStateFault(v **types.InvalidD } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15950,7 +16016,7 @@ func awsAwsquery_deserializeDocumentInvalidEventSubscriptionStateFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15998,7 +16064,7 @@ func awsAwsquery_deserializeDocumentInvalidRestoreFault(v **types.InvalidRestore } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16046,7 +16112,7 @@ func awsAwsquery_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, decod } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16094,7 +16160,7 @@ func awsAwsquery_deserializeDocumentInvalidVPCNetworkStateFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16142,7 +16208,7 @@ func awsAwsquery_deserializeDocumentKMSKeyNotAccessibleFault(v **types.KMSKeyNot } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16155,13 +16221,13 @@ func awsAwsquery_deserializeDocumentKMSKeyNotAccessibleFault(v **types.KMSKeyNot return nil } -func awsAwsquery_deserializeDocumentLogTypeList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLogTypeList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -16179,20 +16245,17 @@ func awsAwsquery_deserializeDocumentLogTypeList(v *[]*string, decoder smithyxml. decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -16205,17 +16268,17 @@ func awsAwsquery_deserializeDocumentLogTypeList(v *[]*string, decoder smithyxml. return nil } -func awsAwsquery_deserializeDocumentLogTypeListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentLogTypeListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -16223,14 +16286,11 @@ func awsAwsquery_deserializeDocumentLogTypeListUnwrapped(v *[]*string, decoder s return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -16272,7 +16332,7 @@ func awsAwsquery_deserializeDocumentOptionGroupMembership(v **types.OptionGroupM } if val != nil { xtv := string(val) - sv.OptionGroupName = &xtv + sv.OptionGroupName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -16288,7 +16348,7 @@ func awsAwsquery_deserializeDocumentOptionGroupMembership(v **types.OptionGroupM } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -16301,13 +16361,13 @@ func awsAwsquery_deserializeDocumentOptionGroupMembership(v **types.OptionGroupM return nil } -func awsAwsquery_deserializeDocumentOptionGroupMembershipList(v *[]*types.OptionGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOptionGroupMembershipList(v *[]types.OptionGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OptionGroupMembership + var sv []types.OptionGroupMembership if *v == nil { - sv = make([]*types.OptionGroupMembership, 0) + sv = make([]types.OptionGroupMembership, 0) } else { sv = *v } @@ -16323,11 +16383,13 @@ func awsAwsquery_deserializeDocumentOptionGroupMembershipList(v *[]*types.Option } for { if strings.EqualFold("OptionGroupMembership", t.Name.Local) { - var col *types.OptionGroupMembership + var col types.OptionGroupMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionGroupMembership(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOptionGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16340,23 +16402,25 @@ func awsAwsquery_deserializeDocumentOptionGroupMembershipList(v *[]*types.Option return nil } -func awsAwsquery_deserializeDocumentOptionGroupMembershipListUnwrapped(v *[]*types.OptionGroupMembership, decoder smithyxml.NodeDecoder) error { - var sv []*types.OptionGroupMembership +func awsAwsquery_deserializeDocumentOptionGroupMembershipListUnwrapped(v *[]types.OptionGroupMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.OptionGroupMembership if *v == nil { - sv = make([]*types.OptionGroupMembership, 0) + sv = make([]types.OptionGroupMembership, 0) } else { sv = *v } switch { default: - var mv *types.OptionGroupMembership + var mv types.OptionGroupMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionGroupMembership(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOptionGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16397,7 +16461,7 @@ func awsAwsquery_deserializeDocumentOptionGroupNotFoundFault(v **types.OptionGro } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16451,7 +16515,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.DBInstanceClass = &xtv + sv.DBInstanceClass = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -16467,7 +16531,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -16483,7 +16547,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("LicenseModel", t.Name.Local): @@ -16499,7 +16563,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.LicenseModel = &xtv + sv.LicenseModel = ptr.String(xtv) } case strings.EqualFold("MaxIopsPerDbInstance", t.Name.Local): @@ -16533,7 +16597,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return err } - sv.MaxIopsPerGib = &f64 + sv.MaxIopsPerGib = ptr.Float64(f64) } case strings.EqualFold("MaxStorageSize", t.Name.Local): @@ -16584,7 +16648,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return err } - sv.MinIopsPerGib = &f64 + sv.MinIopsPerGib = ptr.Float64(f64) } case strings.EqualFold("MinStorageSize", t.Name.Local): @@ -16617,7 +16681,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MultiAZCapable = &xtv + sv.MultiAZCapable = xtv } case strings.EqualFold("ReadReplicaCapable", t.Name.Local): @@ -16633,7 +16697,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReadReplicaCapable = &xtv + sv.ReadReplicaCapable = xtv } case strings.EqualFold("StorageType", t.Name.Local): @@ -16649,7 +16713,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.StorageType = &xtv + sv.StorageType = ptr.String(xtv) } case strings.EqualFold("SupportsEnhancedMonitoring", t.Name.Local): @@ -16665,7 +16729,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsEnhancedMonitoring = &xtv + sv.SupportsEnhancedMonitoring = xtv } case strings.EqualFold("SupportsIAMDatabaseAuthentication", t.Name.Local): @@ -16681,7 +16745,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsIAMDatabaseAuthentication = &xtv + sv.SupportsIAMDatabaseAuthentication = xtv } case strings.EqualFold("SupportsIops", t.Name.Local): @@ -16697,7 +16761,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsIops = &xtv + sv.SupportsIops = xtv } case strings.EqualFold("SupportsPerformanceInsights", t.Name.Local): @@ -16713,7 +16777,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsPerformanceInsights = &xtv + sv.SupportsPerformanceInsights = xtv } case strings.EqualFold("SupportsStorageEncryption", t.Name.Local): @@ -16729,7 +16793,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsStorageEncryption = &xtv + sv.SupportsStorageEncryption = xtv } case strings.EqualFold("Vpc", t.Name.Local): @@ -16745,7 +16809,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Vpc = &xtv + sv.Vpc = xtv } default: @@ -16758,13 +16822,13 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl return nil } -func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsList(v *[]*types.OrderableDBInstanceOption, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsList(v *[]types.OrderableDBInstanceOption, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OrderableDBInstanceOption + var sv []types.OrderableDBInstanceOption if *v == nil { - sv = make([]*types.OrderableDBInstanceOption, 0) + sv = make([]types.OrderableDBInstanceOption, 0) } else { sv = *v } @@ -16780,11 +16844,13 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsList(v *[]*types.O } for { if strings.EqualFold("OrderableDBInstanceOption", t.Name.Local) { - var col *types.OrderableDBInstanceOption + var col types.OrderableDBInstanceOption nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOrderableDBInstanceOption(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOrderableDBInstanceOption(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16797,23 +16863,25 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsList(v *[]*types.O return nil } -func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsListUnwrapped(v *[]*types.OrderableDBInstanceOption, decoder smithyxml.NodeDecoder) error { - var sv []*types.OrderableDBInstanceOption +func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsListUnwrapped(v *[]types.OrderableDBInstanceOption, decoder smithyxml.NodeDecoder) error { + var sv []types.OrderableDBInstanceOption if *v == nil { - sv = make([]*types.OrderableDBInstanceOption, 0) + sv = make([]types.OrderableDBInstanceOption, 0) } else { sv = *v } switch { default: - var mv *types.OrderableDBInstanceOption + var mv types.OrderableDBInstanceOption t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOrderableDBInstanceOption(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOrderableDBInstanceOption(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16854,7 +16922,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.AllowedValues = &xtv + sv.AllowedValues = ptr.String(xtv) } case strings.EqualFold("ApplyMethod", t.Name.Local): @@ -16883,7 +16951,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ApplyType = &xtv + sv.ApplyType = ptr.String(xtv) } case strings.EqualFold("DataType", t.Name.Local): @@ -16899,7 +16967,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.DataType = &xtv + sv.DataType = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -16915,7 +16983,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("IsModifiable", t.Name.Local): @@ -16931,7 +16999,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsModifiable = &xtv + sv.IsModifiable = xtv } case strings.EqualFold("MinimumEngineVersion", t.Name.Local): @@ -16947,7 +17015,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.MinimumEngineVersion = &xtv + sv.MinimumEngineVersion = ptr.String(xtv) } case strings.EqualFold("ParameterName", t.Name.Local): @@ -16963,7 +17031,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ParameterName = &xtv + sv.ParameterName = ptr.String(xtv) } case strings.EqualFold("ParameterValue", t.Name.Local): @@ -16979,7 +17047,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ParameterValue = &xtv + sv.ParameterValue = ptr.String(xtv) } case strings.EqualFold("Source", t.Name.Local): @@ -16995,7 +17063,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.Source = &xtv + sv.Source = ptr.String(xtv) } default: @@ -17008,13 +17076,13 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith return nil } -func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentParametersList(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Parameter + var sv []types.Parameter if *v == nil { - sv = make([]*types.Parameter, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } @@ -17030,11 +17098,13 @@ func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decode } for { if strings.EqualFold("Parameter", t.Name.Local) { - var col *types.Parameter + var col types.Parameter nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameter(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17047,23 +17117,25 @@ func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decode return nil } -func awsAwsquery_deserializeDocumentParametersListUnwrapped(v *[]*types.Parameter, decoder smithyxml.NodeDecoder) error { - var sv []*types.Parameter +func awsAwsquery_deserializeDocumentParametersListUnwrapped(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { + var sv []types.Parameter if *v == nil { - sv = make([]*types.Parameter, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } switch { default: - var mv *types.Parameter + var mv types.Parameter t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameter(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17148,7 +17220,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa } if val != nil { xtv := string(val) - sv.Action = &xtv + sv.Action = ptr.String(xtv) } case strings.EqualFold("AutoAppliedAfterDate", t.Name.Local): @@ -17165,7 +17237,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa if err != nil { return err } - sv.AutoAppliedAfterDate = &t + sv.AutoAppliedAfterDate = ptr.Time(t) } case strings.EqualFold("CurrentApplyDate", t.Name.Local): @@ -17182,7 +17254,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa if err != nil { return err } - sv.CurrentApplyDate = &t + sv.CurrentApplyDate = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -17198,7 +17270,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("ForcedApplyDate", t.Name.Local): @@ -17215,7 +17287,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa if err != nil { return err } - sv.ForcedApplyDate = &t + sv.ForcedApplyDate = ptr.Time(t) } case strings.EqualFold("OptInStatus", t.Name.Local): @@ -17231,7 +17303,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa } if val != nil { xtv := string(val) - sv.OptInStatus = &xtv + sv.OptInStatus = ptr.String(xtv) } default: @@ -17244,13 +17316,13 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa return nil } -func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetails(v *[]*types.PendingMaintenanceAction, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetails(v *[]types.PendingMaintenanceAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PendingMaintenanceAction + var sv []types.PendingMaintenanceAction if *v == nil { - sv = make([]*types.PendingMaintenanceAction, 0) + sv = make([]types.PendingMaintenanceAction, 0) } else { sv = *v } @@ -17266,11 +17338,13 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetails(v *[]*types. } for { if strings.EqualFold("PendingMaintenanceAction", t.Name.Local) { - var col *types.PendingMaintenanceAction + var col types.PendingMaintenanceAction nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPendingMaintenanceAction(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPendingMaintenanceAction(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17283,35 +17357,37 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetails(v *[]*types. return nil } -func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetailsUnwrapped(v *[]*types.PendingMaintenanceAction, decoder smithyxml.NodeDecoder) error { - var sv []*types.PendingMaintenanceAction +func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetailsUnwrapped(v *[]types.PendingMaintenanceAction, decoder smithyxml.NodeDecoder) error { + var sv []types.PendingMaintenanceAction if *v == nil { - sv = make([]*types.PendingMaintenanceAction, 0) + sv = make([]types.PendingMaintenanceAction, 0) } else { sv = *v } switch { default: - var mv *types.PendingMaintenanceAction + var mv types.PendingMaintenanceAction t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPendingMaintenanceAction(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPendingMaintenanceAction(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentPendingMaintenanceActions(v *[]*types.ResourcePendingMaintenanceActions, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPendingMaintenanceActions(v *[]types.ResourcePendingMaintenanceActions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ResourcePendingMaintenanceActions + var sv []types.ResourcePendingMaintenanceActions if *v == nil { - sv = make([]*types.ResourcePendingMaintenanceActions, 0) + sv = make([]types.ResourcePendingMaintenanceActions, 0) } else { sv = *v } @@ -17327,11 +17403,13 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceActions(v *[]*types.Resour } for { if strings.EqualFold("ResourcePendingMaintenanceActions", t.Name.Local) { - var col *types.ResourcePendingMaintenanceActions + var col types.ResourcePendingMaintenanceActions nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17344,23 +17422,25 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceActions(v *[]*types.Resour return nil } -func awsAwsquery_deserializeDocumentPendingMaintenanceActionsUnwrapped(v *[]*types.ResourcePendingMaintenanceActions, decoder smithyxml.NodeDecoder) error { - var sv []*types.ResourcePendingMaintenanceActions +func awsAwsquery_deserializeDocumentPendingMaintenanceActionsUnwrapped(v *[]types.ResourcePendingMaintenanceActions, decoder smithyxml.NodeDecoder) error { + var sv []types.ResourcePendingMaintenanceActions if *v == nil { - sv = make([]*types.ResourcePendingMaintenanceActions, 0) + sv = make([]types.ResourcePendingMaintenanceActions, 0) } else { sv = *v } switch { default: - var mv *types.ResourcePendingMaintenanceActions + var mv types.ResourcePendingMaintenanceActions t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17435,7 +17515,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.CACertificateIdentifier = &xtv + sv.CACertificateIdentifier = ptr.String(xtv) } case strings.EqualFold("DBInstanceClass", t.Name.Local): @@ -17451,7 +17531,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.DBInstanceClass = &xtv + sv.DBInstanceClass = ptr.String(xtv) } case strings.EqualFold("DBInstanceIdentifier", t.Name.Local): @@ -17467,7 +17547,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.DBInstanceIdentifier = &xtv + sv.DBInstanceIdentifier = ptr.String(xtv) } case strings.EqualFold("DBSubnetGroupName", t.Name.Local): @@ -17483,7 +17563,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.DBSubnetGroupName = &xtv + sv.DBSubnetGroupName = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -17499,7 +17579,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("Iops", t.Name.Local): @@ -17532,7 +17612,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.LicenseModel = &xtv + sv.LicenseModel = ptr.String(xtv) } case strings.EqualFold("MasterUserPassword", t.Name.Local): @@ -17548,7 +17628,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.MasterUserPassword = &xtv + sv.MasterUserPassword = ptr.String(xtv) } case strings.EqualFold("MultiAZ", t.Name.Local): @@ -17564,7 +17644,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.MultiAZ = &xtv + sv.MultiAZ = ptr.Bool(xtv) } case strings.EqualFold("PendingCloudwatchLogsExports", t.Name.Local): @@ -17603,7 +17683,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.StorageType = &xtv + sv.StorageType = ptr.String(xtv) } default: @@ -17651,7 +17731,7 @@ func awsAwsquery_deserializeDocumentProvisionedIopsNotAvailableInAZFault(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17700,7 +17780,7 @@ func awsAwsquery_deserializeDocumentRange(v **types.Range, decoder smithyxml.Nod if err != nil { return err } - sv.From = ptr.Int32(int32(i64)) + sv.From = int32(i64) } case strings.EqualFold("Step", t.Name.Local): @@ -17734,7 +17814,7 @@ func awsAwsquery_deserializeDocumentRange(v **types.Range, decoder smithyxml.Nod if err != nil { return err } - sv.To = ptr.Int32(int32(i64)) + sv.To = int32(i64) } default: @@ -17747,13 +17827,13 @@ func awsAwsquery_deserializeDocumentRange(v **types.Range, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentRangeList(v *[]*types.Range, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRangeList(v *[]types.Range, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Range + var sv []types.Range if *v == nil { - sv = make([]*types.Range, 0) + sv = make([]types.Range, 0) } else { sv = *v } @@ -17769,11 +17849,13 @@ func awsAwsquery_deserializeDocumentRangeList(v *[]*types.Range, decoder smithyx } for { if strings.EqualFold("Range", t.Name.Local) { - var col *types.Range + var col types.Range nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRange(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentRange(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17786,35 +17868,37 @@ func awsAwsquery_deserializeDocumentRangeList(v *[]*types.Range, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentRangeListUnwrapped(v *[]*types.Range, decoder smithyxml.NodeDecoder) error { - var sv []*types.Range +func awsAwsquery_deserializeDocumentRangeListUnwrapped(v *[]types.Range, decoder smithyxml.NodeDecoder) error { + var sv []types.Range if *v == nil { - sv = make([]*types.Range, 0) + sv = make([]types.Range, 0) } else { sv = *v } switch { default: - var mv *types.Range + var mv types.Range t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRange(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRange(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -17832,20 +17916,17 @@ func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierList(v *[]*str decoder = memberDecoder for { if strings.EqualFold("ReadReplicaDBClusterIdentifier", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -17858,17 +17939,17 @@ func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierList(v *[]*str return nil } -func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -17876,27 +17957,24 @@ func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierListUnwrapped( return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -17914,20 +17992,17 @@ func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierList(v *[]*st decoder = memberDecoder for { if strings.EqualFold("ReadReplicaDBInstanceIdentifier", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -17940,17 +18015,17 @@ func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierList(v *[]*st return nil } -func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -17958,27 +18033,24 @@ func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierListUnwrapped return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentReadReplicaIdentifierList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReadReplicaIdentifierList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -17996,20 +18068,17 @@ func awsAwsquery_deserializeDocumentReadReplicaIdentifierList(v *[]*string, deco decoder = memberDecoder for { if strings.EqualFold("ReadReplicaIdentifier", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -18022,17 +18091,17 @@ func awsAwsquery_deserializeDocumentReadReplicaIdentifierList(v *[]*string, deco return nil } -func awsAwsquery_deserializeDocumentReadReplicaIdentifierListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentReadReplicaIdentifierListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -18040,14 +18109,11 @@ func awsAwsquery_deserializeDocumentReadReplicaIdentifierListUnwrapped(v *[]*str return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -18089,7 +18155,7 @@ func awsAwsquery_deserializeDocumentResourceNotFoundFault(v **types.ResourceNotF } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18143,7 +18209,7 @@ func awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(v **types. } if val != nil { xtv := string(val) - sv.ResourceIdentifier = &xtv + sv.ResourceIdentifier = ptr.String(xtv) } default: @@ -18191,7 +18257,7 @@ func awsAwsquery_deserializeDocumentSharedSnapshotQuotaExceededFault(v **types.S } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18239,7 +18305,7 @@ func awsAwsquery_deserializeDocumentSnapshotQuotaExceededFault(v **types.Snapsho } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18287,7 +18353,7 @@ func awsAwsquery_deserializeDocumentSNSInvalidTopicFault(v **types.SNSInvalidTop } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18335,7 +18401,7 @@ func awsAwsquery_deserializeDocumentSNSNoAuthorizationFault(v **types.SNSNoAutho } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18383,7 +18449,7 @@ func awsAwsquery_deserializeDocumentSNSTopicArnNotFoundFault(v **types.SNSTopicA } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18396,13 +18462,13 @@ func awsAwsquery_deserializeDocumentSNSTopicArnNotFoundFault(v **types.SNSTopicA return nil } -func awsAwsquery_deserializeDocumentSourceIdsList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSourceIdsList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -18420,20 +18486,17 @@ func awsAwsquery_deserializeDocumentSourceIdsList(v *[]*string, decoder smithyxm decoder = memberDecoder for { if strings.EqualFold("SourceId", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -18446,17 +18509,17 @@ func awsAwsquery_deserializeDocumentSourceIdsList(v *[]*string, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentSourceIdsListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentSourceIdsListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -18464,14 +18527,11 @@ func awsAwsquery_deserializeDocumentSourceIdsListUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -18513,7 +18573,7 @@ func awsAwsquery_deserializeDocumentSourceNotFoundFault(v **types.SourceNotFound } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18561,7 +18621,7 @@ func awsAwsquery_deserializeDocumentStorageQuotaExceededFault(v **types.StorageQ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18609,7 +18669,7 @@ func awsAwsquery_deserializeDocumentStorageTypeNotSupportedFault(v **types.Stora } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18622,13 +18682,13 @@ func awsAwsquery_deserializeDocumentStorageTypeNotSupportedFault(v **types.Stora return nil } -func awsAwsquery_deserializeDocumentStringList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStringList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -18646,20 +18706,17 @@ func awsAwsquery_deserializeDocumentStringList(v *[]*string, decoder smithyxml.N decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -18672,17 +18729,17 @@ func awsAwsquery_deserializeDocumentStringList(v *[]*string, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentStringListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -18690,14 +18747,11 @@ func awsAwsquery_deserializeDocumentStringListUnwrapped(v *[]*string, decoder sm return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -18745,7 +18799,7 @@ func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.SubnetIdentifier = &xtv + sv.SubnetIdentifier = ptr.String(xtv) } case strings.EqualFold("SubnetStatus", t.Name.Local): @@ -18761,7 +18815,7 @@ func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.SubnetStatus = &xtv + sv.SubnetStatus = ptr.String(xtv) } default: @@ -18809,7 +18863,7 @@ func awsAwsquery_deserializeDocumentSubnetAlreadyInUse(v **types.SubnetAlreadyIn } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18822,13 +18876,13 @@ func awsAwsquery_deserializeDocumentSubnetAlreadyInUse(v **types.SubnetAlreadyIn return nil } -func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSubnetList(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Subnet + var sv []types.Subnet if *v == nil { - sv = make([]*types.Subnet, 0) + sv = make([]types.Subnet, 0) } else { sv = *v } @@ -18844,11 +18898,13 @@ func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smith } for { if strings.EqualFold("Subnet", t.Name.Local) { - var col *types.Subnet + var col types.Subnet nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubnet(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSubnet(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18861,23 +18917,25 @@ func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smith return nil } -func awsAwsquery_deserializeDocumentSubnetListUnwrapped(v *[]*types.Subnet, decoder smithyxml.NodeDecoder) error { - var sv []*types.Subnet +func awsAwsquery_deserializeDocumentSubnetListUnwrapped(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error { + var sv []types.Subnet if *v == nil { - sv = make([]*types.Subnet, 0) + sv = make([]types.Subnet, 0) } else { sv = *v } switch { default: - var mv *types.Subnet + var mv types.Subnet t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubnet(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSubnet(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18918,7 +18976,7 @@ func awsAwsquery_deserializeDocumentSubscriptionAlreadyExistFault(v **types.Subs } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18966,7 +19024,7 @@ func awsAwsquery_deserializeDocumentSubscriptionCategoryNotFoundFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19014,7 +19072,7 @@ func awsAwsquery_deserializeDocumentSubscriptionNotFoundFault(v **types.Subscrip } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19027,13 +19085,13 @@ func awsAwsquery_deserializeDocumentSubscriptionNotFoundFault(v **types.Subscrip return nil } -func awsAwsquery_deserializeDocumentSupportedCharacterSetsList(v *[]*types.CharacterSet, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSupportedCharacterSetsList(v *[]types.CharacterSet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CharacterSet + var sv []types.CharacterSet if *v == nil { - sv = make([]*types.CharacterSet, 0) + sv = make([]types.CharacterSet, 0) } else { sv = *v } @@ -19049,11 +19107,13 @@ func awsAwsquery_deserializeDocumentSupportedCharacterSetsList(v *[]*types.Chara } for { if strings.EqualFold("CharacterSet", t.Name.Local) { - var col *types.CharacterSet + var col types.CharacterSet nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCharacterSet(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCharacterSet(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19066,35 +19126,37 @@ func awsAwsquery_deserializeDocumentSupportedCharacterSetsList(v *[]*types.Chara return nil } -func awsAwsquery_deserializeDocumentSupportedCharacterSetsListUnwrapped(v *[]*types.CharacterSet, decoder smithyxml.NodeDecoder) error { - var sv []*types.CharacterSet +func awsAwsquery_deserializeDocumentSupportedCharacterSetsListUnwrapped(v *[]types.CharacterSet, decoder smithyxml.NodeDecoder) error { + var sv []types.CharacterSet if *v == nil { - sv = make([]*types.CharacterSet, 0) + sv = make([]types.CharacterSet, 0) } else { sv = *v } switch { default: - var mv *types.CharacterSet + var mv types.CharacterSet t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCharacterSet(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCharacterSet(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentSupportedTimezonesList(v *[]*types.Timezone, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSupportedTimezonesList(v *[]types.Timezone, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Timezone + var sv []types.Timezone if *v == nil { - sv = make([]*types.Timezone, 0) + sv = make([]types.Timezone, 0) } else { sv = *v } @@ -19110,11 +19172,13 @@ func awsAwsquery_deserializeDocumentSupportedTimezonesList(v *[]*types.Timezone, } for { if strings.EqualFold("Timezone", t.Name.Local) { - var col *types.Timezone + var col types.Timezone nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTimezone(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTimezone(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19127,23 +19191,25 @@ func awsAwsquery_deserializeDocumentSupportedTimezonesList(v *[]*types.Timezone, return nil } -func awsAwsquery_deserializeDocumentSupportedTimezonesListUnwrapped(v *[]*types.Timezone, decoder smithyxml.NodeDecoder) error { - var sv []*types.Timezone +func awsAwsquery_deserializeDocumentSupportedTimezonesListUnwrapped(v *[]types.Timezone, decoder smithyxml.NodeDecoder) error { + var sv []types.Timezone if *v == nil { - sv = make([]*types.Timezone, 0) + sv = make([]types.Timezone, 0) } else { sv = *v } switch { default: - var mv *types.Timezone + var mv types.Timezone t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTimezone(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTimezone(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19184,7 +19250,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -19200,7 +19266,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -19213,13 +19279,13 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec return nil } -func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -19235,11 +19301,13 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N } for { if strings.EqualFold("Tag", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19252,23 +19320,25 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19309,7 +19379,7 @@ func awsAwsquery_deserializeDocumentTimezone(v **types.Timezone, decoder smithyx } if val != nil { xtv := string(val) - sv.TimezoneName = &xtv + sv.TimezoneName = ptr.String(xtv) } default: @@ -19357,7 +19427,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AutoUpgrade = &xtv + sv.AutoUpgrade = xtv } case strings.EqualFold("Description", t.Name.Local): @@ -19373,7 +19443,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -19389,7 +19459,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -19405,7 +19475,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("IsMajorVersionUpgrade", t.Name.Local): @@ -19421,7 +19491,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsMajorVersionUpgrade = &xtv + sv.IsMajorVersionUpgrade = xtv } default: @@ -19525,7 +19595,7 @@ func awsAwsquery_deserializeDocumentValidStorageOptions(v **types.ValidStorageOp } if val != nil { xtv := string(val) - sv.StorageType = &xtv + sv.StorageType = ptr.String(xtv) } default: @@ -19538,13 +19608,13 @@ func awsAwsquery_deserializeDocumentValidStorageOptions(v **types.ValidStorageOp return nil } -func awsAwsquery_deserializeDocumentValidStorageOptionsList(v *[]*types.ValidStorageOptions, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentValidStorageOptionsList(v *[]types.ValidStorageOptions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ValidStorageOptions + var sv []types.ValidStorageOptions if *v == nil { - sv = make([]*types.ValidStorageOptions, 0) + sv = make([]types.ValidStorageOptions, 0) } else { sv = *v } @@ -19560,11 +19630,13 @@ func awsAwsquery_deserializeDocumentValidStorageOptionsList(v *[]*types.ValidSto } for { if strings.EqualFold("ValidStorageOptions", t.Name.Local) { - var col *types.ValidStorageOptions + var col types.ValidStorageOptions nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentValidStorageOptions(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentValidStorageOptions(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19577,35 +19649,37 @@ func awsAwsquery_deserializeDocumentValidStorageOptionsList(v *[]*types.ValidSto return nil } -func awsAwsquery_deserializeDocumentValidStorageOptionsListUnwrapped(v *[]*types.ValidStorageOptions, decoder smithyxml.NodeDecoder) error { - var sv []*types.ValidStorageOptions +func awsAwsquery_deserializeDocumentValidStorageOptionsListUnwrapped(v *[]types.ValidStorageOptions, decoder smithyxml.NodeDecoder) error { + var sv []types.ValidStorageOptions if *v == nil { - sv = make([]*types.ValidStorageOptions, 0) + sv = make([]types.ValidStorageOptions, 0) } else { sv = *v } switch { default: - var mv *types.ValidStorageOptions + var mv types.ValidStorageOptions t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentValidStorageOptions(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentValidStorageOptions(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentValidUpgradeTargetList(v *[]*types.UpgradeTarget, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentValidUpgradeTargetList(v *[]types.UpgradeTarget, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UpgradeTarget + var sv []types.UpgradeTarget if *v == nil { - sv = make([]*types.UpgradeTarget, 0) + sv = make([]types.UpgradeTarget, 0) } else { sv = *v } @@ -19621,11 +19695,13 @@ func awsAwsquery_deserializeDocumentValidUpgradeTargetList(v *[]*types.UpgradeTa } for { if strings.EqualFold("UpgradeTarget", t.Name.Local) { - var col *types.UpgradeTarget + var col types.UpgradeTarget nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUpgradeTarget(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentUpgradeTarget(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19638,23 +19714,25 @@ func awsAwsquery_deserializeDocumentValidUpgradeTargetList(v *[]*types.UpgradeTa return nil } -func awsAwsquery_deserializeDocumentValidUpgradeTargetListUnwrapped(v *[]*types.UpgradeTarget, decoder smithyxml.NodeDecoder) error { - var sv []*types.UpgradeTarget +func awsAwsquery_deserializeDocumentValidUpgradeTargetListUnwrapped(v *[]types.UpgradeTarget, decoder smithyxml.NodeDecoder) error { + var sv []types.UpgradeTarget if *v == nil { - sv = make([]*types.UpgradeTarget, 0) + sv = make([]types.UpgradeTarget, 0) } else { sv = *v } switch { default: - var mv *types.UpgradeTarget + var mv types.UpgradeTarget t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUpgradeTarget(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentUpgradeTarget(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19695,7 +19773,7 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSecu } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("VpcSecurityGroupId", t.Name.Local): @@ -19711,7 +19789,7 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSecu } if val != nil { xtv := string(val) - sv.VpcSecurityGroupId = &xtv + sv.VpcSecurityGroupId = ptr.String(xtv) } default: @@ -19724,13 +19802,13 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSecu return nil } -func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpcSecurityGroupMembership + var sv []types.VpcSecurityGroupMembership if *v == nil { - sv = make([]*types.VpcSecurityGroupMembership, 0) + sv = make([]types.VpcSecurityGroupMembership, 0) } else { sv = *v } @@ -19746,11 +19824,13 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types.V } for { if strings.EqualFold("VpcSecurityGroupMembership", t.Name.Local) { - var col *types.VpcSecurityGroupMembership + var col types.VpcSecurityGroupMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19763,23 +19843,25 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types.V return nil } -func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipListUnwrapped(v *[]*types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpcSecurityGroupMembership +func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipListUnwrapped(v *[]types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcSecurityGroupMembership if *v == nil { - sv = make([]*types.VpcSecurityGroupMembership, 0) + sv = make([]types.VpcSecurityGroupMembership, 0) } else { sv = *v } switch { default: - var mv *types.VpcSecurityGroupMembership + var mv types.VpcSecurityGroupMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -20074,7 +20156,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.CustomEndpointType = &xtv + sv.CustomEndpointType = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointArn", t.Name.Local): @@ -20090,7 +20172,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointArn = &xtv + sv.DBClusterEndpointArn = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointIdentifier", t.Name.Local): @@ -20106,7 +20188,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointIdentifier = &xtv + sv.DBClusterEndpointIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointResourceIdentifier", t.Name.Local): @@ -20122,7 +20204,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointResourceIdentifier = &xtv + sv.DBClusterEndpointResourceIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -20138,7 +20220,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("Endpoint", t.Name.Local): @@ -20154,7 +20236,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("EndpointType", t.Name.Local): @@ -20170,7 +20252,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.EndpointType = &xtv + sv.EndpointType = ptr.String(xtv) } case strings.EqualFold("ExcludedMembers", t.Name.Local): @@ -20198,7 +20280,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -20512,7 +20594,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.CustomEndpointType = &xtv + sv.CustomEndpointType = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointArn", t.Name.Local): @@ -20528,7 +20610,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointArn = &xtv + sv.DBClusterEndpointArn = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointIdentifier", t.Name.Local): @@ -20544,7 +20626,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointIdentifier = &xtv + sv.DBClusterEndpointIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointResourceIdentifier", t.Name.Local): @@ -20560,7 +20642,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointResourceIdentifier = &xtv + sv.DBClusterEndpointResourceIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -20576,7 +20658,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("Endpoint", t.Name.Local): @@ -20592,7 +20674,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("EndpointType", t.Name.Local): @@ -20608,7 +20690,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.EndpointType = &xtv + sv.EndpointType = ptr.String(xtv) } case strings.EqualFold("ExcludedMembers", t.Name.Local): @@ -20636,7 +20718,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -20938,7 +21020,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClusterEndpointsOutput(v **Descr } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -20992,7 +21074,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClusterParameterGroupsOutput(v * } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -21040,7 +21122,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClusterParametersOutput(v **Desc } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): @@ -21138,7 +21220,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClusterSnapshotsOutput(v **Descr } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -21192,7 +21274,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClustersOutput(v **DescribeDBClu } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -21246,7 +21328,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBEngineVersionsOutput(v **Describ } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -21300,7 +21382,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBInstancesOutput(v **DescribeDBIn } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -21354,7 +21436,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBParameterGroupsOutput(v **Descri } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -21402,7 +21484,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBParametersOutput(v **DescribeDBP } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): @@ -21462,7 +21544,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBSubnetGroupsOutput(v **DescribeD } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -21630,7 +21712,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEventsOutput(v **DescribeEventsOut } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -21684,7 +21766,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEventSubscriptionsOutput(v **Descr } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -21732,7 +21814,7 @@ func awsAwsquery_deserializeOpDocumentDescribeOrderableDBInstanceOptionsOutput(v } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("OrderableDBInstanceOptions", t.Name.Local): @@ -21786,7 +21868,7 @@ func awsAwsquery_deserializeOpDocumentDescribePendingMaintenanceActionsOutput(v } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("PendingMaintenanceActions", t.Name.Local): @@ -21954,7 +22036,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.CustomEndpointType = &xtv + sv.CustomEndpointType = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointArn", t.Name.Local): @@ -21970,7 +22052,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointArn = &xtv + sv.DBClusterEndpointArn = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointIdentifier", t.Name.Local): @@ -21986,7 +22068,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointIdentifier = &xtv + sv.DBClusterEndpointIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointResourceIdentifier", t.Name.Local): @@ -22002,7 +22084,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointResourceIdentifier = &xtv + sv.DBClusterEndpointResourceIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -22018,7 +22100,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("Endpoint", t.Name.Local): @@ -22034,7 +22116,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("EndpointType", t.Name.Local): @@ -22050,7 +22132,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.EndpointType = &xtv + sv.EndpointType = ptr.String(xtv) } case strings.EqualFold("ExcludedMembers", t.Name.Local): @@ -22078,7 +22160,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -22164,7 +22246,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterParameterGroupOutput(v **Mo } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupName = &xtv + sv.DBClusterParameterGroupName = ptr.String(xtv) } default: @@ -22288,7 +22370,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBParameterGroupOutput(v **ModifyDBP } if val != nil { xtv := string(val) - sv.DBParameterGroupName = &xtv + sv.DBParameterGroupName = ptr.String(xtv) } default: @@ -22590,7 +22672,7 @@ func awsAwsquery_deserializeOpDocumentResetDBClusterParameterGroupOutput(v **Res } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupName = &xtv + sv.DBClusterParameterGroupName = ptr.String(xtv) } default: @@ -22638,7 +22720,7 @@ func awsAwsquery_deserializeOpDocumentResetDBParameterGroupOutput(v **ResetDBPar } if val != nil { xtv := string(val) - sv.DBParameterGroupName = &xtv + sv.DBParameterGroupName = ptr.String(xtv) } default: diff --git a/service/neptune/go.mod b/service/neptune/go.mod index e465309b541..0e8ddc11258 100644 --- a/service/neptune/go.mod +++ b/service/neptune/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/neptune go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/neptune/serializers.go b/service/neptune/serializers.go index 52edcf40331..b76e994ab2a 100644 --- a/service/neptune/serializers.go +++ b/service/neptune/serializers.go @@ -3479,34 +3479,28 @@ func (m *awsAwsquery_serializeOpStopDBCluster) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentAttributeValueList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAttributeValueList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("AttributeValue") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentAvailabilityZones(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAvailabilityZones(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("AvailabilityZone") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3532,34 +3526,28 @@ func awsAwsquery_serializeDocumentCloudwatchLogsExportConfiguration(v *types.Clo return nil } -func awsAwsquery_serializeDocumentDBSecurityGroupNameList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentDBSecurityGroupNameList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("DBSecurityGroupName") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentEventCategoriesList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentEventCategoriesList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("EventCategory") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3583,68 +3571,56 @@ func awsAwsquery_serializeDocumentFilter(v *types.Filter, value query.Value) err return nil } -func awsAwsquery_serializeDocumentFilterList(v []*types.Filter, value query.Value) error { +func awsAwsquery_serializeDocumentFilterList(v []types.Filter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Filter") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentFilterValueList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentFilterValueList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Value") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentKeyList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentKeyList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentLogTypeList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentLogTypeList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3678,9 +3654,9 @@ func awsAwsquery_serializeDocumentParameter(v *types.Parameter, value query.Valu objectKey.String(*v.Description) } - if v.IsModifiable != nil { + if v.IsModifiable { objectKey := object.Key("IsModifiable") - objectKey.Boolean(*v.IsModifiable) + objectKey.Boolean(v.IsModifiable) } if v.MinimumEngineVersion != nil { @@ -3706,68 +3682,56 @@ func awsAwsquery_serializeDocumentParameter(v *types.Parameter, value query.Valu return nil } -func awsAwsquery_serializeDocumentParametersList(v []*types.Parameter, value query.Value) error { +func awsAwsquery_serializeDocumentParametersList(v []types.Parameter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Parameter") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentParameter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentParameter(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentSourceIdsList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSourceIdsList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SourceId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentStringList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentSubnetIdentifierList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSubnetIdentifierList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SubnetIdentifier") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3789,36 +3753,30 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTagList(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTagList(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Tag") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentVpcSecurityGroupIdList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentVpcSecurityGroupIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("VpcSecurityGroupId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4595,9 +4553,9 @@ func awsAwsquery_serializeOpDocumentDeleteDBClusterInput(v *DeleteDBClusterInput objectKey.String(*v.FinalDBSnapshotIdentifier) } - if v.SkipFinalSnapshot != nil { + if v.SkipFinalSnapshot { objectKey := object.Key("SkipFinalSnapshot") - objectKey.Boolean(*v.SkipFinalSnapshot) + objectKey.Boolean(v.SkipFinalSnapshot) } return nil @@ -4641,9 +4599,9 @@ func awsAwsquery_serializeOpDocumentDeleteDBInstanceInput(v *DeleteDBInstanceInp objectKey.String(*v.FinalDBSnapshotIdentifier) } - if v.SkipFinalSnapshot != nil { + if v.SkipFinalSnapshot { objectKey := object.Key("SkipFinalSnapshot") - objectKey.Boolean(*v.SkipFinalSnapshot) + objectKey.Boolean(v.SkipFinalSnapshot) } return nil @@ -4844,14 +4802,14 @@ func awsAwsquery_serializeOpDocumentDescribeDBClusterSnapshotsInput(v *DescribeD } } - if v.IncludePublic != nil { + if v.IncludePublic { objectKey := object.Key("IncludePublic") - objectKey.Boolean(*v.IncludePublic) + objectKey.Boolean(v.IncludePublic) } - if v.IncludeShared != nil { + if v.IncludeShared { objectKey := object.Key("IncludeShared") - objectKey.Boolean(*v.IncludeShared) + objectKey.Boolean(v.IncludeShared) } if v.Marker != nil { @@ -4881,9 +4839,9 @@ func awsAwsquery_serializeOpDocumentDescribeDBEngineVersionsInput(v *DescribeDBE objectKey.String(*v.DBParameterGroupFamily) } - if v.DefaultOnly != nil { + if v.DefaultOnly { objectKey := object.Key("DefaultOnly") - objectKey.Boolean(*v.DefaultOnly) + objectKey.Boolean(v.DefaultOnly) } if v.Engine != nil { @@ -5370,9 +5328,9 @@ func awsAwsquery_serializeOpDocumentModifyDBClusterInput(v *ModifyDBClusterInput object := value.Object() _ = object - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.BackupRetentionPeriod != nil { @@ -5511,14 +5469,14 @@ func awsAwsquery_serializeOpDocumentModifyDBInstanceInput(v *ModifyDBInstanceInp objectKey.Integer(*v.AllocatedStorage) } - if v.AllowMajorVersionUpgrade != nil { + if v.AllowMajorVersionUpgrade { objectKey := object.Key("AllowMajorVersionUpgrade") - objectKey.Boolean(*v.AllowMajorVersionUpgrade) + objectKey.Boolean(v.AllowMajorVersionUpgrade) } - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.AutoMinorVersionUpgrade != nil { @@ -5880,9 +5838,9 @@ func awsAwsquery_serializeOpDocumentResetDBClusterParameterGroupInput(v *ResetDB } } - if v.ResetAllParameters != nil { + if v.ResetAllParameters { objectKey := object.Key("ResetAllParameters") - objectKey.Boolean(*v.ResetAllParameters) + objectKey.Boolean(v.ResetAllParameters) } return nil @@ -5904,9 +5862,9 @@ func awsAwsquery_serializeOpDocumentResetDBParameterGroupInput(v *ResetDBParamet } } - if v.ResetAllParameters != nil { + if v.ResetAllParameters { objectKey := object.Key("ResetAllParameters") - objectKey.Boolean(*v.ResetAllParameters) + objectKey.Boolean(v.ResetAllParameters) } return nil @@ -6080,9 +6038,9 @@ func awsAwsquery_serializeOpDocumentRestoreDBClusterToPointInTimeInput(v *Restor } } - if v.UseLatestRestorableTime != nil { + if v.UseLatestRestorableTime { objectKey := object.Key("UseLatestRestorableTime") - objectKey.Boolean(*v.UseLatestRestorableTime) + objectKey.Boolean(v.UseLatestRestorableTime) } if v.VpcSecurityGroupIds != nil { diff --git a/service/neptune/types/types.go b/service/neptune/types/types.go index 80d46917a00..f0b14126151 100644 --- a/service/neptune/types/types.go +++ b/service/neptune/types/types.go @@ -30,10 +30,10 @@ type CharacterSet struct { type CloudwatchLogsExportConfiguration struct { // The list of log types to disable. - DisableLogTypes []*string + DisableLogTypes []string // The list of log types to enable. - EnableLogTypes []*string + EnableLogTypes []string } // Contains the details of an Amazon Neptune DB cluster. This data type is used as @@ -47,11 +47,11 @@ type DBCluster struct { // Provides a list of the AWS Identity and Access Management (IAM) roles that are // associated with the DB cluster. IAM roles that are associated with a DB cluster // grant permission for the DB cluster to access other AWS services on your behalf. - AssociatedRoles []*DBClusterRole + AssociatedRoles []DBClusterRole // Provides the list of EC2 Availability Zones that instances in the DB cluster can // be created in. - AvailabilityZones []*string + AvailabilityZones []string // Specifies the number of days for which automatic DB snapshots are retained. BackupRetentionPeriod *int32 @@ -74,10 +74,10 @@ type DBCluster struct { DBClusterIdentifier *string // Provides the list of instances that make up the DB cluster. - DBClusterMembers []*DBClusterMember + DBClusterMembers []DBClusterMember // (Not supported by Neptune) - DBClusterOptionGroupMemberships []*DBClusterOptionGroupStatus + DBClusterOptionGroupMemberships []DBClusterOptionGroupStatus // Specifies the name of the DB cluster parameter group for the DB cluster. DBClusterParameterGroup *string @@ -106,7 +106,7 @@ type DBCluster struct { // A list of log types that this DB cluster is configured to export to CloudWatch // Logs. - EnabledCloudwatchLogsExports []*string + EnabledCloudwatchLogsExports []string // Specifies the connection endpoint for the primary instance of the DB cluster. Endpoint *string @@ -122,7 +122,7 @@ type DBCluster struct { // True if mapping of AWS Identity and Access Management (IAM) accounts to database // accounts is enabled, and otherwise false. - IAMDatabaseAuthenticationEnabled *bool + IAMDatabaseAuthenticationEnabled bool // If StorageEncrypted is true, the AWS KMS key identifier for the encrypted DB // cluster. @@ -136,7 +136,7 @@ type DBCluster struct { MasterUsername *string // Specifies whether the DB cluster has instances in multiple Availability Zones. - MultiAZ *bool + MultiAZ bool // Specifies the progress of the operation as a percentage. PercentProgress *string @@ -154,7 +154,7 @@ type DBCluster struct { // Contains one or more identifiers of the Read Replicas associated with this DB // cluster. - ReadReplicaIdentifiers []*string + ReadReplicaIdentifiers []string // The reader endpoint for the DB cluster. The reader endpoint for a DB cluster // load-balances connections across the Read Replicas that are available in a DB @@ -174,10 +174,10 @@ type DBCluster struct { Status *string // Specifies whether the DB cluster is encrypted. - StorageEncrypted *bool + StorageEncrypted bool // Provides a list of VPC security groups that the DB cluster belongs to. - VpcSecurityGroups []*VpcSecurityGroupMembership + VpcSecurityGroups []VpcSecurityGroupMembership } // This data type represents the information you need to connect to an Amazon @@ -224,10 +224,10 @@ type DBClusterEndpoint struct { // List of DB instance identifiers that aren't part of the custom endpoint group. // All other eligible instances are reachable through the custom endpoint. Only // relevant if the list of static members is empty. - ExcludedMembers []*string + ExcludedMembers []string // List of DB instance identifiers that are part of the custom endpoint group. - StaticMembers []*string + StaticMembers []string // The current status of the endpoint. One of: creating, available, deleting, // inactive, modifying. The inactive state applies to an endpoint that cannot be @@ -248,7 +248,7 @@ type DBClusterMember struct { // Value that is true if the cluster member is the primary instance for the DB // cluster and false otherwise. - IsClusterWriter *bool + IsClusterWriter bool // A value that specifies the order in which a Read Replica is promoted to the // primary instance after a failure of the existing primary instance. @@ -317,11 +317,11 @@ type DBClusterRole struct { type DBClusterSnapshot struct { // Specifies the allocated storage size in gibibytes (GiB). - AllocatedStorage *int32 + AllocatedStorage int32 // Provides the list of EC2 Availability Zones that instances in the DB cluster // snapshot can be restored in. - AvailabilityZones []*string + AvailabilityZones []string // Specifies the time when the DB cluster was created, in Universal Coordinated // Time (UTC). @@ -355,7 +355,7 @@ type DBClusterSnapshot struct { // True if mapping of AWS Identity and Access Management (IAM) accounts to database // accounts is enabled, and otherwise false. - IAMDatabaseAuthenticationEnabled *bool + IAMDatabaseAuthenticationEnabled bool // If StorageEncrypted is true, the AWS KMS key identifier for the encrypted DB // cluster snapshot. @@ -368,11 +368,11 @@ type DBClusterSnapshot struct { MasterUsername *string // Specifies the percentage of the estimated data that has been transferred. - PercentProgress *int32 + PercentProgress int32 // Specifies the port that the DB cluster was listening on at the time of the // snapshot. - Port *int32 + Port int32 // Provides the time when the snapshot was taken, in Universal Coordinated Time // (UTC). @@ -390,7 +390,7 @@ type DBClusterSnapshot struct { Status *string // Specifies whether the DB cluster snapshot is encrypted. - StorageEncrypted *bool + StorageEncrypted bool // Provides the VPC ID associated with the DB cluster snapshot. VpcId *string @@ -413,7 +413,7 @@ type DBClusterSnapshotAttribute struct { // accounts that are authorized to copy or restore the manual DB cluster snapshot. // If a value of all is in the list, then the manual DB cluster snapshot is public // and available for any AWS account to copy or restore. - AttributeValues []*string + AttributeValues []string } // Contains the results of a successful call to the @@ -424,7 +424,7 @@ type DBClusterSnapshotAttribute struct { type DBClusterSnapshotAttributesResult struct { // The list of attributes and values for the manual DB cluster snapshot. - DBClusterSnapshotAttributes []*DBClusterSnapshotAttribute + DBClusterSnapshotAttributes []DBClusterSnapshotAttribute // The identifier of the manual DB cluster snapshot that the attributes apply to. DBClusterSnapshotIdentifier *string @@ -454,24 +454,24 @@ type DBEngineVersion struct { // The types of logs that the database engine has available for export to // CloudWatch Logs. - ExportableLogTypes []*string + ExportableLogTypes []string // (Not supported by Neptune) - SupportedCharacterSets []*CharacterSet + SupportedCharacterSets []CharacterSet // A list of the time zones supported by this engine for the Timezone parameter of // the CreateDBInstance action. - SupportedTimezones []*Timezone + SupportedTimezones []Timezone // A value that indicates whether the engine version supports exporting the log // types specified by ExportableLogTypes to CloudWatch Logs. - SupportsLogExportsToCloudwatchLogs *bool + SupportsLogExportsToCloudwatchLogs bool // Indicates whether the database engine version supports read replicas. - SupportsReadReplica *bool + SupportsReadReplica bool // A list of engine versions that this database engine version can be upgraded to. - ValidUpgradeTarget []*UpgradeTarget + ValidUpgradeTarget []UpgradeTarget } // Contains the details of an Amazon Neptune DB instance. This data type is used as @@ -479,16 +479,16 @@ type DBEngineVersion struct { type DBInstance struct { // Specifies the allocated storage size specified in gibibytes. - AllocatedStorage *int32 + AllocatedStorage int32 // Indicates that minor version patches are applied automatically. - AutoMinorVersionUpgrade *bool + AutoMinorVersionUpgrade bool // Specifies the name of the Availability Zone the DB instance is located in. AvailabilityZone *string // Specifies the number of days for which automatic DB snapshots are retained. - BackupRetentionPeriod *int32 + BackupRetentionPeriod int32 // The identifier of the CA certificate for this DB instance. CACertificateIdentifier *string @@ -498,7 +498,7 @@ type DBInstance struct { // Specifies whether tags are copied from the DB instance to snapshots of the DB // instance. - CopyTagsToSnapshot *bool + CopyTagsToSnapshot bool // If the DB instance is a member of a DB cluster, contains the name of the DB // cluster that the DB instance is a member of. @@ -521,11 +521,11 @@ type DBInstance struct { DBName *string // Provides the list of DB parameter groups applied to this DB instance. - DBParameterGroups []*DBParameterGroupStatus + DBParameterGroups []DBParameterGroupStatus // Provides List of DB security group elements containing only DBSecurityGroup.Name // and DBSecurityGroup.Status subelements. - DBSecurityGroups []*DBSecurityGroupMembership + DBSecurityGroups []DBSecurityGroupMembership // Specifies information on the subnet group associated with the DB instance, // including the name, description, and subnets in the subnet group. @@ -533,7 +533,7 @@ type DBInstance struct { // Specifies the port that the DB instance listens on. If the DB instance is part // of a DB cluster, this can be a different port than the DB cluster port. - DbInstancePort *int32 + DbInstancePort int32 // The AWS Region-unique, immutable identifier for the DB instance. This identifier // is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB @@ -547,11 +547,11 @@ type DBInstance struct { DeletionProtection *bool // Not supported - DomainMemberships []*DomainMembership + DomainMemberships []DomainMembership // A list of log types that this DB instance is configured to export to CloudWatch // Logs. - EnabledCloudwatchLogsExports []*string + EnabledCloudwatchLogsExports []string // Specifies the connection endpoint. Endpoint *Endpoint @@ -568,7 +568,7 @@ type DBInstance struct { // True if AWS Identity and Access Management (IAM) authentication is enabled, and // otherwise false. - IAMDatabaseAuthenticationEnabled *bool + IAMDatabaseAuthenticationEnabled bool // Provides the date and time the DB instance was created. InstanceCreateTime *time.Time @@ -598,10 +598,10 @@ type DBInstance struct { MonitoringRoleArn *string // Specifies if the DB instance is a Multi-AZ deployment. - MultiAZ *bool + MultiAZ bool // (Not supported by Neptune) - OptionGroupMemberships []*OptionGroupMembership + OptionGroupMemberships []OptionGroupMembership // Specifies that changes to the DB instance are pending. This element is only // included when changes are pending. Specific changes are identified by @@ -627,15 +627,15 @@ type DBInstance struct { PromotionTier *int32 // This flag should no longer be used. - PubliclyAccessible *bool + PubliclyAccessible bool // Contains one or more identifiers of DB clusters that are Read Replicas of this // DB instance. - ReadReplicaDBClusterIdentifiers []*string + ReadReplicaDBClusterIdentifiers []string // Contains one or more identifiers of the Read Replicas associated with this DB // instance. - ReadReplicaDBInstanceIdentifiers []*string + ReadReplicaDBInstanceIdentifiers []string // Contains the identifier of the source DB instance if this DB instance is a Read // Replica. @@ -647,10 +647,10 @@ type DBInstance struct { // The status of a Read Replica. If the instance is not a Read Replica, this is // blank. - StatusInfos []*DBInstanceStatusInfo + StatusInfos []DBInstanceStatusInfo // Not supported: The encryption for DB instances is managed by the DB cluster. - StorageEncrypted *bool + StorageEncrypted bool // Specifies the storage type associated with DB instance. StorageType *string @@ -663,7 +663,7 @@ type DBInstance struct { Timezone *string // Provides a list of VPC security group elements that the DB instance belongs to. - VpcSecurityGroups []*VpcSecurityGroupMembership + VpcSecurityGroups []VpcSecurityGroupMembership } // Provides a list of status information for a DB instance. @@ -675,7 +675,7 @@ type DBInstanceStatusInfo struct { // Boolean value that is true if the instance is operating normally, or false if // the instance is in an error state. - Normal *bool + Normal bool // Status of the DB instance. For a StatusType of read replica, the values can be // replicating, error, stopped, or terminated. @@ -750,7 +750,7 @@ type DBSubnetGroup struct { SubnetGroupStatus *string // Contains a list of Subnet elements. - Subnets []*Subnet + Subnets []Subnet // Provides the VpcId of the DB subnet group. VpcId *string @@ -778,10 +778,10 @@ type DomainMembership struct { type DoubleRange struct { // The minimum value in the range. - From *float64 + From float64 // The maximum value in the range. - To *float64 + To float64 } // Specifies a connection endpoint. For the data structure that represents Amazon @@ -795,7 +795,7 @@ type Endpoint struct { HostedZoneId *string // Specifies the port that the database engine is listening on. - Port *int32 + Port int32 } // Contains the result of a successful invocation of the @@ -812,7 +812,7 @@ type EngineDefaults struct { Marker *string // Contains a list of engine default parameters. - Parameters []*Parameter + Parameters []Parameter } // This data type is used as a response element in the DescribeEvents action. @@ -822,7 +822,7 @@ type Event struct { Date *time.Time // Specifies the category for the event. - EventCategories []*string + EventCategories []string // Provides the text of this event. Message *string @@ -842,7 +842,7 @@ type Event struct { type EventCategoriesMap struct { // The event categories for the specified source type - EventCategories []*string + EventCategories []string // The source type that the returned categories belong to SourceType *string @@ -860,10 +860,10 @@ type EventSubscription struct { // A Boolean value indicating if the subscription is enabled. True indicates the // subscription is enabled. - Enabled *bool + Enabled bool // A list of event categories for the event notification subscription. - EventCategoriesList []*string + EventCategoriesList []string // The Amazon Resource Name (ARN) for the event subscription. EventSubscriptionArn *string @@ -872,7 +872,7 @@ type EventSubscription struct { SnsTopicArn *string // A list of source IDs for the event notification subscription. - SourceIdsList []*string + SourceIdsList []string // The source type for the event notification subscription. SourceType *string @@ -899,7 +899,7 @@ type Filter struct { // This parameter is not currently supported. // // This member is required. - Values []*string + Values []string } // Provides information on the option groups the DB instance is a member of. @@ -919,7 +919,7 @@ type OptionGroupMembership struct { type OrderableDBInstanceOption struct { // A list of Availability Zones for a DB instance. - AvailabilityZones []*AvailabilityZone + AvailabilityZones []AvailabilityZone // The DB instance class for a DB instance. DBInstanceClass *string @@ -952,32 +952,32 @@ type OrderableDBInstanceOption struct { MinStorageSize *int32 // Indicates whether a DB instance is Multi-AZ capable. - MultiAZCapable *bool + MultiAZCapable bool // Indicates whether a DB instance can have a Read Replica. - ReadReplicaCapable *bool + ReadReplicaCapable bool // Indicates the storage type for a DB instance. StorageType *string // Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 // to 60 seconds. - SupportsEnhancedMonitoring *bool + SupportsEnhancedMonitoring bool // Indicates whether a DB instance supports IAM database authentication. - SupportsIAMDatabaseAuthentication *bool + SupportsIAMDatabaseAuthentication bool // Indicates whether a DB instance supports provisioned IOPS. - SupportsIops *bool + SupportsIops bool // (Not supported by Neptune) - SupportsPerformanceInsights *bool + SupportsPerformanceInsights bool // Indicates whether a DB instance supports encrypted storage. - SupportsStorageEncryption *bool + SupportsStorageEncryption bool // Indicates whether a DB instance is in a VPC. - Vpc *bool + Vpc bool } // Specifies a parameter. @@ -1001,7 +1001,7 @@ type Parameter struct { // Indicates whether (true) or not (false) the parameter can be modified. Some // parameters have security or operational implications that prevent them from // being changed. - IsModifiable *bool + IsModifiable bool // The earliest engine version to which the parameter can apply. MinimumEngineVersion *string @@ -1022,11 +1022,11 @@ type PendingCloudwatchLogsExports struct { // Log types that are in the process of being enabled. After they are enabled, // these log types are exported to CloudWatch Logs. - LogTypesToDisable []*string + LogTypesToDisable []string // Log types that are in the process of being deactivated. After they are // deactivated, these log types aren't exported to CloudWatch Logs. - LogTypesToEnable []*string + LogTypesToEnable []string } // Provides information about a pending maintenance action for a resource. @@ -1118,7 +1118,7 @@ type PendingModifiedValues struct { type Range struct { // The minimum value in the range. - From *int32 + From int32 // The step value for the range. For example, if you have a range of 5,000 to // 10,000, with a step value of 1,000, the valid values start at 5,000 and step up @@ -1127,7 +1127,7 @@ type Range struct { Step *int32 // The maximum value in the range. - To *int32 + To int32 } // Describes the pending maintenance actions for a resource. @@ -1135,7 +1135,7 @@ type ResourcePendingMaintenanceActions struct { // A list that provides details about the pending maintenance actions for the // resource. - PendingMaintenanceActionDetails []*PendingMaintenanceAction + PendingMaintenanceActionDetails []PendingMaintenanceAction // The ARN of the resource that has pending maintenance actions. ResourceIdentifier *string @@ -1183,7 +1183,7 @@ type UpgradeTarget struct { // A value that indicates whether the target version is applied to any source DB // instances that have AutoMinorVersionUpgrade set to true. - AutoUpgrade *bool + AutoUpgrade bool // The version of the database engine that a DB instance can be upgraded to. Description *string @@ -1195,7 +1195,7 @@ type UpgradeTarget struct { EngineVersion *string // A value that indicates whether a database engine is upgraded to a major version. - IsMajorVersionUpgrade *bool + IsMajorVersionUpgrade bool } // Information about valid modifications that you can make to your DB instance. @@ -1205,7 +1205,7 @@ type UpgradeTarget struct { type ValidDBInstanceModificationsMessage struct { // Valid storage options for your DB instance. - Storage []*ValidStorageOptions + Storage []ValidStorageOptions } // Information about valid modifications that you can make to your DB instance. @@ -1216,13 +1216,13 @@ type ValidStorageOptions struct { // The valid range of Provisioned IOPS to gibibytes of storage multiplier. For // example, 3-10, which means that provisioned IOPS can be between 3 and 10 times // storage. - IopsToStorageRatio []*DoubleRange + IopsToStorageRatio []DoubleRange // The valid range of provisioned IOPS. For example, 1000-20000. - ProvisionedIops []*Range + ProvisionedIops []Range // The valid range of storage in gibibytes. For example, 100 to 16384. - StorageSize []*Range + StorageSize []Range // The valid storage types for your DB instance. For example, gp2, io1. StorageType *string diff --git a/service/neptune/validators.go b/service/neptune/validators.go index 43cb8c431d7..e43c170bf29 100644 --- a/service/neptune/validators.go +++ b/service/neptune/validators.go @@ -1516,13 +1516,13 @@ func validateFilter(v *types.Filter) error { } } -func validateFilterList(v []*types.Filter) error { +func validateFilterList(v []types.Filter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FilterList"} for i := range v { - if err := validateFilter(v[i]); err != nil { + if err := validateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/networkmanager/api_op_CreateDevice.go b/service/networkmanager/api_op_CreateDevice.go index c2b125cceaa..4fcd08b4ac6 100644 --- a/service/networkmanager/api_op_CreateDevice.go +++ b/service/networkmanager/api_op_CreateDevice.go @@ -54,7 +54,7 @@ type CreateDeviceInput struct { SiteId *string // The tags to apply to the resource during creation. - Tags []*types.Tag + Tags []types.Tag // The type of the device. Type *string diff --git a/service/networkmanager/api_op_CreateGlobalNetwork.go b/service/networkmanager/api_op_CreateGlobalNetwork.go index c76080300f3..915f28e3d86 100644 --- a/service/networkmanager/api_op_CreateGlobalNetwork.go +++ b/service/networkmanager/api_op_CreateGlobalNetwork.go @@ -34,7 +34,7 @@ type CreateGlobalNetworkInput struct { Description *string // The tags to apply to the resource during creation. - Tags []*types.Tag + Tags []types.Tag } type CreateGlobalNetworkOutput struct { diff --git a/service/networkmanager/api_op_CreateLink.go b/service/networkmanager/api_op_CreateLink.go index 2251cf4bf00..06941c49500 100644 --- a/service/networkmanager/api_op_CreateLink.go +++ b/service/networkmanager/api_op_CreateLink.go @@ -52,7 +52,7 @@ type CreateLinkInput struct { Provider *string // The tags to apply to the resource during creation. - Tags []*types.Tag + Tags []types.Tag // The type of the link. Constraints: Cannot include the following characters: | \ // ^ Length Constraints: Maximum length of 128 characters. diff --git a/service/networkmanager/api_op_CreateSite.go b/service/networkmanager/api_op_CreateSite.go index 0d05853c3ba..4934c66f936 100644 --- a/service/networkmanager/api_op_CreateSite.go +++ b/service/networkmanager/api_op_CreateSite.go @@ -51,7 +51,7 @@ type CreateSiteInput struct { Location *types.Location // The tags to apply to the resource during creation. - Tags []*types.Tag + Tags []types.Tag } type CreateSiteOutput struct { diff --git a/service/networkmanager/api_op_DescribeGlobalNetworks.go b/service/networkmanager/api_op_DescribeGlobalNetworks.go index 31f2981a6a9..f73abb40f99 100644 --- a/service/networkmanager/api_op_DescribeGlobalNetworks.go +++ b/service/networkmanager/api_op_DescribeGlobalNetworks.go @@ -33,7 +33,7 @@ func (c *Client) DescribeGlobalNetworks(ctx context.Context, params *DescribeGlo type DescribeGlobalNetworksInput struct { // The IDs of one or more global networks. The maximum is 10. - GlobalNetworkIds []*string + GlobalNetworkIds []string // The maximum number of results to return. MaxResults *int32 @@ -45,7 +45,7 @@ type DescribeGlobalNetworksInput struct { type DescribeGlobalNetworksOutput struct { // Information about the global networks. - GlobalNetworks []*types.GlobalNetwork + GlobalNetworks []types.GlobalNetwork // The token for the next page of results. NextToken *string diff --git a/service/networkmanager/api_op_GetCustomerGatewayAssociations.go b/service/networkmanager/api_op_GetCustomerGatewayAssociations.go index d75a3eb3967..18b96224d57 100644 --- a/service/networkmanager/api_op_GetCustomerGatewayAssociations.go +++ b/service/networkmanager/api_op_GetCustomerGatewayAssociations.go @@ -39,7 +39,7 @@ type GetCustomerGatewayAssociationsInput struct { // see Resources Defined by Amazon EC2 // (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazonec2.html#amazonec2-resources-for-iam-policies). // The maximum is 10. - CustomerGatewayArns []*string + CustomerGatewayArns []string // The maximum number of results to return. MaxResults *int32 @@ -51,7 +51,7 @@ type GetCustomerGatewayAssociationsInput struct { type GetCustomerGatewayAssociationsOutput struct { // The customer gateway associations. - CustomerGatewayAssociations []*types.CustomerGatewayAssociation + CustomerGatewayAssociations []types.CustomerGatewayAssociation // The token for the next page of results. NextToken *string diff --git a/service/networkmanager/api_op_GetDevices.go b/service/networkmanager/api_op_GetDevices.go index b79df922057..cf4f429bd2c 100644 --- a/service/networkmanager/api_op_GetDevices.go +++ b/service/networkmanager/api_op_GetDevices.go @@ -35,7 +35,7 @@ type GetDevicesInput struct { GlobalNetworkId *string // One or more device IDs. The maximum is 10. - DeviceIds []*string + DeviceIds []string // The maximum number of results to return. MaxResults *int32 @@ -50,7 +50,7 @@ type GetDevicesInput struct { type GetDevicesOutput struct { // The devices. - Devices []*types.Device + Devices []types.Device // The token for the next page of results. NextToken *string diff --git a/service/networkmanager/api_op_GetLinkAssociations.go b/service/networkmanager/api_op_GetLinkAssociations.go index 1cd5947982f..b0e3ac1a57b 100644 --- a/service/networkmanager/api_op_GetLinkAssociations.go +++ b/service/networkmanager/api_op_GetLinkAssociations.go @@ -51,7 +51,7 @@ type GetLinkAssociationsInput struct { type GetLinkAssociationsOutput struct { // The link associations. - LinkAssociations []*types.LinkAssociation + LinkAssociations []types.LinkAssociation // The token for the next page of results. NextToken *string diff --git a/service/networkmanager/api_op_GetLinks.go b/service/networkmanager/api_op_GetLinks.go index e74070d06ca..47f6b56fdaf 100644 --- a/service/networkmanager/api_op_GetLinks.go +++ b/service/networkmanager/api_op_GetLinks.go @@ -37,7 +37,7 @@ type GetLinksInput struct { GlobalNetworkId *string // One or more link IDs. The maximum is 10. - LinkIds []*string + LinkIds []string // The maximum number of results to return. MaxResults *int32 @@ -58,7 +58,7 @@ type GetLinksInput struct { type GetLinksOutput struct { // The links. - Links []*types.Link + Links []types.Link // The token for the next page of results. NextToken *string diff --git a/service/networkmanager/api_op_GetSites.go b/service/networkmanager/api_op_GetSites.go index 71b37adad08..0e145eb6349 100644 --- a/service/networkmanager/api_op_GetSites.go +++ b/service/networkmanager/api_op_GetSites.go @@ -41,7 +41,7 @@ type GetSitesInput struct { NextToken *string // One or more site IDs. The maximum is 10. - SiteIds []*string + SiteIds []string } type GetSitesOutput struct { @@ -50,7 +50,7 @@ type GetSitesOutput struct { NextToken *string // The sites. - Sites []*types.Site + Sites []types.Site // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/networkmanager/api_op_GetTransitGatewayRegistrations.go b/service/networkmanager/api_op_GetTransitGatewayRegistrations.go index 74753a81fe8..066f7bd98c5 100644 --- a/service/networkmanager/api_op_GetTransitGatewayRegistrations.go +++ b/service/networkmanager/api_op_GetTransitGatewayRegistrations.go @@ -43,7 +43,7 @@ type GetTransitGatewayRegistrationsInput struct { // The Amazon Resource Names (ARNs) of one or more transit gateways. The maximum is // 10. - TransitGatewayArns []*string + TransitGatewayArns []string } type GetTransitGatewayRegistrationsOutput struct { @@ -52,7 +52,7 @@ type GetTransitGatewayRegistrationsOutput struct { NextToken *string // The transit gateway registrations. - TransitGatewayRegistrations []*types.TransitGatewayRegistration + TransitGatewayRegistrations []types.TransitGatewayRegistration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/networkmanager/api_op_ListTagsForResource.go b/service/networkmanager/api_op_ListTagsForResource.go index 07e1eefac9a..63a1cb4cf98 100644 --- a/service/networkmanager/api_op_ListTagsForResource.go +++ b/service/networkmanager/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The list of tags. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/networkmanager/api_op_TagResource.go b/service/networkmanager/api_op_TagResource.go index 94bef2a3345..088f8d36104 100644 --- a/service/networkmanager/api_op_TagResource.go +++ b/service/networkmanager/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // The tags to apply to the specified resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/networkmanager/api_op_UntagResource.go b/service/networkmanager/api_op_UntagResource.go index 40f6ce65b0d..4a0a3f81a11 100644 --- a/service/networkmanager/api_op_UntagResource.go +++ b/service/networkmanager/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The tag keys to remove from the specified resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/networkmanager/deserializers.go b/service/networkmanager/deserializers.go index ff9d791ad6b..2703d8f8b1f 100644 --- a/service/networkmanager/deserializers.go +++ b/service/networkmanager/deserializers.go @@ -1973,7 +1973,7 @@ func awsRestjson1_deserializeOpDocumentDescribeGlobalNetworksOutput(v **Describe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2468,7 +2468,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomerGatewayAssociationsOutput(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2636,7 +2636,7 @@ func awsRestjson1_deserializeOpDocumentGetDevicesOutput(v **GetDevicesOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2804,7 +2804,7 @@ func awsRestjson1_deserializeOpDocumentGetLinkAssociationsOutput(v **GetLinkAsso if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2972,7 +2972,7 @@ func awsRestjson1_deserializeOpDocumentGetLinksOutput(v **GetLinksOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3135,7 +3135,7 @@ func awsRestjson1_deserializeOpDocumentGetSitesOutput(v **GetSitesOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Sites": @@ -3303,7 +3303,7 @@ func awsRestjson1_deserializeOpDocumentGetTransitGatewayRegistrationsOutput(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TransitGatewayRegistrations": @@ -4811,7 +4811,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4908,7 +4908,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceId": @@ -4917,7 +4917,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -4926,7 +4926,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -4966,7 +4966,7 @@ func awsRestjson1_deserializeDocumentCustomerGatewayAssociation(v **types.Custom if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CustomerGatewayArn = &jtv + sv.CustomerGatewayArn = ptr.String(jtv) } case "DeviceId": @@ -4975,7 +4975,7 @@ func awsRestjson1_deserializeDocumentCustomerGatewayAssociation(v **types.Custom if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeviceId = &jtv + sv.DeviceId = ptr.String(jtv) } case "GlobalNetworkId": @@ -4984,7 +4984,7 @@ func awsRestjson1_deserializeDocumentCustomerGatewayAssociation(v **types.Custom if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GlobalNetworkId = &jtv + sv.GlobalNetworkId = ptr.String(jtv) } case "LinkId": @@ -4993,7 +4993,7 @@ func awsRestjson1_deserializeDocumentCustomerGatewayAssociation(v **types.Custom if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LinkId = &jtv + sv.LinkId = ptr.String(jtv) } case "State": @@ -5014,7 +5014,7 @@ func awsRestjson1_deserializeDocumentCustomerGatewayAssociation(v **types.Custom return nil } -func awsRestjson1_deserializeDocumentCustomerGatewayAssociationList(v *[]*types.CustomerGatewayAssociation, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomerGatewayAssociationList(v *[]types.CustomerGatewayAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5027,18 +5027,20 @@ func awsRestjson1_deserializeDocumentCustomerGatewayAssociationList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CustomerGatewayAssociation + var cv []types.CustomerGatewayAssociation if *v == nil { - cv = []*types.CustomerGatewayAssociation{} + cv = []types.CustomerGatewayAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.CustomerGatewayAssociation - if err := awsRestjson1_deserializeDocumentCustomerGatewayAssociation(&col, value); err != nil { + var col types.CustomerGatewayAssociation + destAddr := &col + if err := awsRestjson1_deserializeDocumentCustomerGatewayAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5087,7 +5089,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DeviceArn": @@ -5096,7 +5098,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeviceArn = &jtv + sv.DeviceArn = ptr.String(jtv) } case "DeviceId": @@ -5105,7 +5107,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeviceId = &jtv + sv.DeviceId = ptr.String(jtv) } case "GlobalNetworkId": @@ -5114,7 +5116,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GlobalNetworkId = &jtv + sv.GlobalNetworkId = ptr.String(jtv) } case "Location": @@ -5128,7 +5130,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Model = &jtv + sv.Model = ptr.String(jtv) } case "SerialNumber": @@ -5137,7 +5139,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SerialNumber = &jtv + sv.SerialNumber = ptr.String(jtv) } case "SiteId": @@ -5146,7 +5148,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SiteId = &jtv + sv.SiteId = ptr.String(jtv) } case "State": @@ -5169,7 +5171,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "Vendor": @@ -5178,7 +5180,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Vendor = &jtv + sv.Vendor = ptr.String(jtv) } default: @@ -5190,7 +5192,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) return nil } -func awsRestjson1_deserializeDocumentDeviceList(v *[]*types.Device, value interface{}) error { +func awsRestjson1_deserializeDocumentDeviceList(v *[]types.Device, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5203,18 +5205,20 @@ func awsRestjson1_deserializeDocumentDeviceList(v *[]*types.Device, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Device + var cv []types.Device if *v == nil { - cv = []*types.Device{} + cv = []types.Device{} } else { cv = *v } for _, value := range shape { - var col *types.Device - if err := awsRestjson1_deserializeDocumentDevice(&col, value); err != nil { + var col types.Device + destAddr := &col + if err := awsRestjson1_deserializeDocumentDevice(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5263,7 +5267,7 @@ func awsRestjson1_deserializeDocumentGlobalNetwork(v **types.GlobalNetwork, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "GlobalNetworkArn": @@ -5272,7 +5276,7 @@ func awsRestjson1_deserializeDocumentGlobalNetwork(v **types.GlobalNetwork, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GlobalNetworkArn = &jtv + sv.GlobalNetworkArn = ptr.String(jtv) } case "GlobalNetworkId": @@ -5281,7 +5285,7 @@ func awsRestjson1_deserializeDocumentGlobalNetwork(v **types.GlobalNetwork, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GlobalNetworkId = &jtv + sv.GlobalNetworkId = ptr.String(jtv) } case "State": @@ -5307,7 +5311,7 @@ func awsRestjson1_deserializeDocumentGlobalNetwork(v **types.GlobalNetwork, valu return nil } -func awsRestjson1_deserializeDocumentGlobalNetworkList(v *[]*types.GlobalNetwork, value interface{}) error { +func awsRestjson1_deserializeDocumentGlobalNetworkList(v *[]types.GlobalNetwork, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5320,18 +5324,20 @@ func awsRestjson1_deserializeDocumentGlobalNetworkList(v *[]*types.GlobalNetwork return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GlobalNetwork + var cv []types.GlobalNetwork if *v == nil { - cv = []*types.GlobalNetwork{} + cv = []types.GlobalNetwork{} } else { cv = *v } for _, value := range shape { - var col *types.GlobalNetwork - if err := awsRestjson1_deserializeDocumentGlobalNetwork(&col, value); err != nil { + var col types.GlobalNetwork + destAddr := &col + if err := awsRestjson1_deserializeDocumentGlobalNetwork(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5367,7 +5373,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RetryAfterSeconds": @@ -5438,7 +5444,7 @@ func awsRestjson1_deserializeDocumentLink(v **types.Link, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "GlobalNetworkId": @@ -5447,7 +5453,7 @@ func awsRestjson1_deserializeDocumentLink(v **types.Link, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GlobalNetworkId = &jtv + sv.GlobalNetworkId = ptr.String(jtv) } case "LinkArn": @@ -5456,7 +5462,7 @@ func awsRestjson1_deserializeDocumentLink(v **types.Link, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LinkArn = &jtv + sv.LinkArn = ptr.String(jtv) } case "LinkId": @@ -5465,7 +5471,7 @@ func awsRestjson1_deserializeDocumentLink(v **types.Link, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LinkId = &jtv + sv.LinkId = ptr.String(jtv) } case "Provider": @@ -5474,7 +5480,7 @@ func awsRestjson1_deserializeDocumentLink(v **types.Link, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Provider = &jtv + sv.Provider = ptr.String(jtv) } case "SiteId": @@ -5483,7 +5489,7 @@ func awsRestjson1_deserializeDocumentLink(v **types.Link, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SiteId = &jtv + sv.SiteId = ptr.String(jtv) } case "State": @@ -5506,7 +5512,7 @@ func awsRestjson1_deserializeDocumentLink(v **types.Link, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -5546,7 +5552,7 @@ func awsRestjson1_deserializeDocumentLinkAssociation(v **types.LinkAssociation, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeviceId = &jtv + sv.DeviceId = ptr.String(jtv) } case "GlobalNetworkId": @@ -5555,7 +5561,7 @@ func awsRestjson1_deserializeDocumentLinkAssociation(v **types.LinkAssociation, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GlobalNetworkId = &jtv + sv.GlobalNetworkId = ptr.String(jtv) } case "LinkAssociationState": @@ -5573,7 +5579,7 @@ func awsRestjson1_deserializeDocumentLinkAssociation(v **types.LinkAssociation, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LinkId = &jtv + sv.LinkId = ptr.String(jtv) } default: @@ -5585,7 +5591,7 @@ func awsRestjson1_deserializeDocumentLinkAssociation(v **types.LinkAssociation, return nil } -func awsRestjson1_deserializeDocumentLinkAssociationList(v *[]*types.LinkAssociation, value interface{}) error { +func awsRestjson1_deserializeDocumentLinkAssociationList(v *[]types.LinkAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5598,18 +5604,20 @@ func awsRestjson1_deserializeDocumentLinkAssociationList(v *[]*types.LinkAssocia return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LinkAssociation + var cv []types.LinkAssociation if *v == nil { - cv = []*types.LinkAssociation{} + cv = []types.LinkAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.LinkAssociation - if err := awsRestjson1_deserializeDocumentLinkAssociation(&col, value); err != nil { + var col types.LinkAssociation + destAddr := &col + if err := awsRestjson1_deserializeDocumentLinkAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5617,7 +5625,7 @@ func awsRestjson1_deserializeDocumentLinkAssociationList(v *[]*types.LinkAssocia return nil } -func awsRestjson1_deserializeDocumentLinkList(v *[]*types.Link, value interface{}) error { +func awsRestjson1_deserializeDocumentLinkList(v *[]types.Link, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5630,18 +5638,20 @@ func awsRestjson1_deserializeDocumentLinkList(v *[]*types.Link, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Link + var cv []types.Link if *v == nil { - cv = []*types.Link{} + cv = []types.Link{} } else { cv = *v } for _, value := range shape { - var col *types.Link - if err := awsRestjson1_deserializeDocumentLink(&col, value); err != nil { + var col types.Link + destAddr := &col + if err := awsRestjson1_deserializeDocumentLink(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5677,7 +5687,7 @@ func awsRestjson1_deserializeDocumentLocation(v **types.Location, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "Latitude": @@ -5686,7 +5696,7 @@ func awsRestjson1_deserializeDocumentLocation(v **types.Location, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Latitude = &jtv + sv.Latitude = ptr.String(jtv) } case "Longitude": @@ -5695,7 +5705,7 @@ func awsRestjson1_deserializeDocumentLocation(v **types.Location, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Longitude = &jtv + sv.Longitude = ptr.String(jtv) } default: @@ -5735,7 +5745,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceId": @@ -5744,7 +5754,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -5753,7 +5763,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -5793,7 +5803,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LimitCode = &jtv + sv.LimitCode = ptr.String(jtv) } case "Message": @@ -5802,7 +5812,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceId": @@ -5811,7 +5821,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -5820,7 +5830,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "ServiceCode": @@ -5829,7 +5839,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceCode = &jtv + sv.ServiceCode = ptr.String(jtv) } default: @@ -5882,7 +5892,7 @@ func awsRestjson1_deserializeDocumentSite(v **types.Site, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "GlobalNetworkId": @@ -5891,7 +5901,7 @@ func awsRestjson1_deserializeDocumentSite(v **types.Site, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GlobalNetworkId = &jtv + sv.GlobalNetworkId = ptr.String(jtv) } case "Location": @@ -5905,7 +5915,7 @@ func awsRestjson1_deserializeDocumentSite(v **types.Site, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SiteArn = &jtv + sv.SiteArn = ptr.String(jtv) } case "SiteId": @@ -5914,7 +5924,7 @@ func awsRestjson1_deserializeDocumentSite(v **types.Site, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SiteId = &jtv + sv.SiteId = ptr.String(jtv) } case "State": @@ -5940,7 +5950,7 @@ func awsRestjson1_deserializeDocumentSite(v **types.Site, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentSiteList(v *[]*types.Site, value interface{}) error { +func awsRestjson1_deserializeDocumentSiteList(v *[]types.Site, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5953,18 +5963,20 @@ func awsRestjson1_deserializeDocumentSiteList(v *[]*types.Site, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Site + var cv []types.Site if *v == nil { - cv = []*types.Site{} + cv = []types.Site{} } else { cv = *v } for _, value := range shape { - var col *types.Site - if err := awsRestjson1_deserializeDocumentSite(&col, value); err != nil { + var col types.Site + destAddr := &col + if err := awsRestjson1_deserializeDocumentSite(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6000,7 +6012,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -6009,7 +6021,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6021,7 +6033,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6034,18 +6046,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6081,7 +6095,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RetryAfterSeconds": @@ -6134,7 +6148,7 @@ func awsRestjson1_deserializeDocumentTransitGatewayRegistration(v **types.Transi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GlobalNetworkId = &jtv + sv.GlobalNetworkId = ptr.String(jtv) } case "State": @@ -6148,7 +6162,7 @@ func awsRestjson1_deserializeDocumentTransitGatewayRegistration(v **types.Transi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TransitGatewayArn = &jtv + sv.TransitGatewayArn = ptr.String(jtv) } default: @@ -6160,7 +6174,7 @@ func awsRestjson1_deserializeDocumentTransitGatewayRegistration(v **types.Transi return nil } -func awsRestjson1_deserializeDocumentTransitGatewayRegistrationList(v *[]*types.TransitGatewayRegistration, value interface{}) error { +func awsRestjson1_deserializeDocumentTransitGatewayRegistrationList(v *[]types.TransitGatewayRegistration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6173,18 +6187,20 @@ func awsRestjson1_deserializeDocumentTransitGatewayRegistrationList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TransitGatewayRegistration + var cv []types.TransitGatewayRegistration if *v == nil { - cv = []*types.TransitGatewayRegistration{} + cv = []types.TransitGatewayRegistration{} } else { cv = *v } for _, value := range shape { - var col *types.TransitGatewayRegistration - if err := awsRestjson1_deserializeDocumentTransitGatewayRegistration(&col, value); err != nil { + var col types.TransitGatewayRegistration + destAddr := &col + if err := awsRestjson1_deserializeDocumentTransitGatewayRegistration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6229,7 +6245,7 @@ func awsRestjson1_deserializeDocumentTransitGatewayRegistrationStateReason(v **t if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6274,7 +6290,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Reason": @@ -6323,7 +6339,7 @@ func awsRestjson1_deserializeDocumentValidationExceptionField(v **types.Validati if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Name": @@ -6332,7 +6348,7 @@ func awsRestjson1_deserializeDocumentValidationExceptionField(v **types.Validati if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -6344,7 +6360,7 @@ func awsRestjson1_deserializeDocumentValidationExceptionField(v **types.Validati return nil } -func awsRestjson1_deserializeDocumentValidationExceptionFieldList(v *[]*types.ValidationExceptionField, value interface{}) error { +func awsRestjson1_deserializeDocumentValidationExceptionFieldList(v *[]types.ValidationExceptionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6357,18 +6373,20 @@ func awsRestjson1_deserializeDocumentValidationExceptionFieldList(v *[]*types.Va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ValidationExceptionField + var cv []types.ValidationExceptionField if *v == nil { - cv = []*types.ValidationExceptionField{} + cv = []types.ValidationExceptionField{} } else { cv = *v } for _, value := range shape { - var col *types.ValidationExceptionField - if err := awsRestjson1_deserializeDocumentValidationExceptionField(&col, value); err != nil { + var col types.ValidationExceptionField + destAddr := &col + if err := awsRestjson1_deserializeDocumentValidationExceptionField(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/networkmanager/go.mod b/service/networkmanager/go.mod index c6187ce05ec..060ce2f1fc4 100644 --- a/service/networkmanager/go.mod +++ b/service/networkmanager/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/networkmanager go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/networkmanager/serializers.go b/service/networkmanager/serializers.go index d9461004124..22225f60397 100644 --- a/service/networkmanager/serializers.go +++ b/service/networkmanager/serializers.go @@ -76,13 +76,10 @@ func awsRestjson1_serializeOpHttpBindingsAssociateCustomerGatewayInput(v *Associ return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -175,13 +172,10 @@ func awsRestjson1_serializeOpHttpBindingsAssociateLinkInput(v *AssociateLinkInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -269,13 +263,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateDeviceInput(v *CreateDeviceInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -477,13 +468,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateLinkInput(v *CreateLinkInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -595,13 +583,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateSiteInput(v *CreateSiteInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -687,25 +672,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDeviceInput(v *DeleteDeviceInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceId == nil { + if v.DeviceId == nil || len(*v.DeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} } if v.DeviceId != nil { - if len(*v.DeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} - } if err := encoder.SetURI("DeviceId").String(*v.DeviceId); err != nil { return err } } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -765,13 +744,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteGlobalNetworkInput(v *DeleteGloba return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -831,25 +807,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteLinkInput(v *DeleteLinkInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } } - if v.LinkId == nil { + if v.LinkId == nil || len(*v.LinkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LinkId must not be empty")} } if v.LinkId != nil { - if len(*v.LinkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LinkId must not be empty")} - } if err := encoder.SetURI("LinkId").String(*v.LinkId); err != nil { return err } @@ -909,25 +879,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSiteInput(v *DeleteSiteInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } } - if v.SiteId == nil { + if v.SiteId == nil || len(*v.SiteId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SiteId must not be empty")} } if v.SiteId != nil { - if len(*v.SiteId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SiteId must not be empty")} - } if err := encoder.SetURI("SiteId").String(*v.SiteId); err != nil { return err } @@ -987,25 +951,19 @@ func awsRestjson1_serializeOpHttpBindingsDeregisterTransitGatewayInput(v *Deregi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } } - if v.TransitGatewayArn == nil { + if v.TransitGatewayArn == nil || len(*v.TransitGatewayArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TransitGatewayArn must not be empty")} } if v.TransitGatewayArn != nil { - if len(*v.TransitGatewayArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TransitGatewayArn must not be empty")} - } if err := encoder.SetURI("TransitGatewayArn").String(*v.TransitGatewayArn); err != nil { return err } @@ -1067,10 +1025,7 @@ func awsRestjson1_serializeOpHttpBindingsDescribeGlobalNetworksInput(v *Describe if v.GlobalNetworkIds != nil { for i := range v.GlobalNetworkIds { - if v.GlobalNetworkIds[i] == nil { - continue - } - encoder.AddQuery("globalNetworkIds").String(*v.GlobalNetworkIds[i]) + encoder.AddQuery("globalNetworkIds").String(v.GlobalNetworkIds[i]) } } @@ -1136,25 +1091,19 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateCustomerGatewayInput(v *Dis return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CustomerGatewayArn == nil { + if v.CustomerGatewayArn == nil || len(*v.CustomerGatewayArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CustomerGatewayArn must not be empty")} } if v.CustomerGatewayArn != nil { - if len(*v.CustomerGatewayArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CustomerGatewayArn must not be empty")} - } if err := encoder.SetURI("CustomerGatewayArn").String(*v.CustomerGatewayArn); err != nil { return err } } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -1218,13 +1167,10 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateLinkInput(v *DisassociateLi encoder.SetQuery("deviceId").String(*v.DeviceId) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -1290,20 +1236,14 @@ func awsRestjson1_serializeOpHttpBindingsGetCustomerGatewayAssociationsInput(v * if v.CustomerGatewayArns != nil { for i := range v.CustomerGatewayArns { - if v.CustomerGatewayArns[i] == nil { - continue - } - encoder.AddQuery("customerGatewayArns").String(*v.CustomerGatewayArns[i]) + encoder.AddQuery("customerGatewayArns").String(v.CustomerGatewayArns[i]) } } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -1373,20 +1313,14 @@ func awsRestjson1_serializeOpHttpBindingsGetDevicesInput(v *GetDevicesInput, enc if v.DeviceIds != nil { for i := range v.DeviceIds { - if v.DeviceIds[i] == nil { - continue - } - encoder.AddQuery("deviceIds").String(*v.DeviceIds[i]) + encoder.AddQuery("deviceIds").String(v.DeviceIds[i]) } } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -1462,13 +1396,10 @@ func awsRestjson1_serializeOpHttpBindingsGetLinkAssociationsInput(v *GetLinkAsso encoder.SetQuery("deviceId").String(*v.DeviceId) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -1540,13 +1471,10 @@ func awsRestjson1_serializeOpHttpBindingsGetLinksInput(v *GetLinksInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -1554,10 +1482,7 @@ func awsRestjson1_serializeOpHttpBindingsGetLinksInput(v *GetLinksInput, encoder if v.LinkIds != nil { for i := range v.LinkIds { - if v.LinkIds[i] == nil { - continue - } - encoder.AddQuery("linkIds").String(*v.LinkIds[i]) + encoder.AddQuery("linkIds").String(v.LinkIds[i]) } } @@ -1635,13 +1560,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSitesInput(v *GetSitesInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -1657,10 +1579,7 @@ func awsRestjson1_serializeOpHttpBindingsGetSitesInput(v *GetSitesInput, encoder if v.SiteIds != nil { for i := range v.SiteIds { - if v.SiteIds[i] == nil { - continue - } - encoder.AddQuery("siteIds").String(*v.SiteIds[i]) + encoder.AddQuery("siteIds").String(v.SiteIds[i]) } } @@ -1718,13 +1637,10 @@ func awsRestjson1_serializeOpHttpBindingsGetTransitGatewayRegistrationsInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -1740,10 +1656,7 @@ func awsRestjson1_serializeOpHttpBindingsGetTransitGatewayRegistrationsInput(v * if v.TransitGatewayArns != nil { for i := range v.TransitGatewayArns { - if v.TransitGatewayArns[i] == nil { - continue - } - encoder.AddQuery("transitGatewayArns").String(*v.TransitGatewayArns[i]) + encoder.AddQuery("transitGatewayArns").String(v.TransitGatewayArns[i]) } } @@ -1801,13 +1714,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1878,13 +1788,10 @@ func awsRestjson1_serializeOpHttpBindingsRegisterTransitGatewayInput(v *Register return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -1967,13 +1874,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2047,13 +1951,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2061,10 +1962,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -2133,25 +2031,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDeviceInput(v *UpdateDeviceInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DeviceId == nil { + if v.DeviceId == nil || len(*v.DeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} } if v.DeviceId != nil { - if len(*v.DeviceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DeviceId must not be empty")} - } if err := encoder.SetURI("DeviceId").String(*v.DeviceId); err != nil { return err } } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -2266,13 +2158,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateGlobalNetworkInput(v *UpdateGloba return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } @@ -2355,25 +2244,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateLinkInput(v *UpdateLinkInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } } - if v.LinkId == nil { + if v.LinkId == nil || len(*v.LinkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LinkId must not be empty")} } if v.LinkId != nil { - if len(*v.LinkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LinkId must not be empty")} - } if err := encoder.SetURI("LinkId").String(*v.LinkId); err != nil { return err } @@ -2473,25 +2356,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateSiteInput(v *UpdateSiteInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.GlobalNetworkId == nil { + if v.GlobalNetworkId == nil || len(*v.GlobalNetworkId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} } if v.GlobalNetworkId != nil { - if len(*v.GlobalNetworkId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GlobalNetworkId must not be empty")} - } if err := encoder.SetURI("GlobalNetworkId").String(*v.GlobalNetworkId); err != nil { return err } } - if v.SiteId == nil { + if v.SiteId == nil || len(*v.SiteId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SiteId must not be empty")} } if v.SiteId != nil { - if len(*v.SiteId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SiteId must not be empty")} - } if err := encoder.SetURI("SiteId").String(*v.SiteId); err != nil { return err } @@ -2575,17 +2452,13 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/networkmanager/types/errors.go b/service/networkmanager/types/errors.go index 99804b3ebe7..54a38c96352 100644 --- a/service/networkmanager/types/errors.go +++ b/service/networkmanager/types/errors.go @@ -129,7 +129,7 @@ func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.Fau type ValidationException struct { Message *string - Fields []*ValidationExceptionField + Fields []ValidationExceptionField Reason ValidationExceptionReason } diff --git a/service/networkmanager/types/types.go b/service/networkmanager/types/types.go index c085bb1bf07..0b5cc28b6f1 100644 --- a/service/networkmanager/types/types.go +++ b/service/networkmanager/types/types.go @@ -69,7 +69,7 @@ type Device struct { State DeviceState // The tags for the device. - Tags []*Tag + Tags []Tag // The device type. Type *string @@ -97,7 +97,7 @@ type GlobalNetwork struct { State GlobalNetworkState // The tags for the global network. - Tags []*Tag + Tags []Tag } // Describes a link. @@ -131,7 +131,7 @@ type Link struct { State LinkState // The tags for the link. - Tags []*Tag + Tags []Tag // The type of the link. Type *string @@ -191,7 +191,7 @@ type Site struct { State SiteState // The tags for the site. - Tags []*Tag + Tags []Tag } // Describes a tag. diff --git a/service/opsworks/api_op_AssignInstance.go b/service/opsworks/api_op_AssignInstance.go index 37139bb0dcc..1d653b24678 100644 --- a/service/opsworks/api_op_AssignInstance.go +++ b/service/opsworks/api_op_AssignInstance.go @@ -53,7 +53,7 @@ type AssignInstanceInput struct { // registered instance to a built-in layer. // // This member is required. - LayerIds []*string + LayerIds []string } type AssignInstanceOutput struct { diff --git a/service/opsworks/api_op_CloneStack.go b/service/opsworks/api_op_CloneStack.go index 69ee9bfa0fc..aadb4060957 100644 --- a/service/opsworks/api_op_CloneStack.go +++ b/service/opsworks/api_op_CloneStack.go @@ -76,7 +76,7 @@ type CloneStackInput struct { // A list of stack attributes and values as key/value pairs to be added to the // cloned stack. - Attributes map[string]*string + Attributes map[string]string // A ChefConfiguration object that specifies whether to enable Berkshelf and the // Berkshelf version on Chef 11.10 stacks. For more information, see Create a New @@ -85,7 +85,7 @@ type CloneStackInput struct { ChefConfiguration *types.ChefConfiguration // A list of source stack app IDs to be included in the cloned stack. - CloneAppIds []*string + CloneAppIds []string // Whether to clone the source stack's permissions. ClonePermissions *bool diff --git a/service/opsworks/api_op_CreateApp.go b/service/opsworks/api_op_CreateApp.go index 056b11530cc..94246f1d256 100644 --- a/service/opsworks/api_op_CreateApp.go +++ b/service/opsworks/api_op_CreateApp.go @@ -58,17 +58,17 @@ type CreateAppInput struct { AppSource *types.Source // One or more user-defined key/value pairs to be added to the stack attributes. - Attributes map[string]*string + Attributes map[string]string // The app's data source. - DataSources []*types.DataSource + DataSources []types.DataSource // A description of the app. Description *string // The app virtual host settings, with multiple domains separated by commas. For // example: 'www.example.com, example.com' - Domains []*string + Domains []string // Whether to enable SSL for the app. EnableSsl *bool @@ -85,7 +85,7 @@ type CreateAppInput struct { // the message, "Environment: is too large (maximum is 20KB)." If you have // specified one or more environment variables, you cannot modify the stack's Chef // version. - Environment []*types.EnvironmentVariable + Environment []types.EnvironmentVariable // The app's short name. Shortname *string diff --git a/service/opsworks/api_op_CreateDeployment.go b/service/opsworks/api_op_CreateDeployment.go index e3c7e6f0c59..93a5ac35db4 100644 --- a/service/opsworks/api_op_CreateDeployment.go +++ b/service/opsworks/api_op_CreateDeployment.go @@ -66,10 +66,10 @@ type CreateDeploymentInput struct { CustomJson *string // The instance IDs for the deployment targets. - InstanceIds []*string + InstanceIds []string // The layer IDs for the deployment targets. - LayerIds []*string + LayerIds []string } // Contains the response to a CreateDeployment request. diff --git a/service/opsworks/api_op_CreateInstance.go b/service/opsworks/api_op_CreateInstance.go index 59c00020ae5..8cfc191adb0 100644 --- a/service/opsworks/api_op_CreateInstance.go +++ b/service/opsworks/api_op_CreateInstance.go @@ -50,7 +50,7 @@ type CreateInstanceInput struct { // An array that contains the instance's layer IDs. // // This member is required. - LayerIds []*string + LayerIds []string // The stack ID. // @@ -99,7 +99,7 @@ type CreateInstanceInput struct { // devices. For more information, see Block Device Mapping // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html). // Note that block device mappings are not supported for custom AMIs. - BlockDeviceMappings []*types.BlockDeviceMapping + BlockDeviceMappings []types.BlockDeviceMapping // Whether to create an Amazon EBS-optimized instance. EbsOptimized *bool diff --git a/service/opsworks/api_op_CreateLayer.go b/service/opsworks/api_op_CreateLayer.go index 9cfb9b48aab..913df5242d2 100644 --- a/service/opsworks/api_op_CreateLayer.go +++ b/service/opsworks/api_op_CreateLayer.go @@ -70,7 +70,7 @@ type CreateLayerInput struct { // One or more user-defined key-value pairs to be added to the stack attributes. To // create a cluster layer, set the EcsClusterArn attribute to the cluster's ARN. - Attributes map[string]*string + Attributes map[string]string // Whether to automatically assign an Elastic IP address // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) @@ -104,7 +104,7 @@ type CreateLayerInput struct { CustomRecipes *types.Recipes // An array containing the layer custom security group IDs. - CustomSecurityGroupIds []*string + CustomSecurityGroupIds []string // Whether to disable auto healing for the layer. EnableAutoHealing *bool @@ -124,13 +124,13 @@ type CreateLayerInput struct { LifecycleEventConfiguration *types.LifecycleEventConfiguration // An array of Package objects that describes the layer packages. - Packages []*string + Packages []string // Whether to use Amazon EBS-optimized instances. UseEbsOptimizedInstances *bool // A VolumeConfigurations object that describes the layer's Amazon EBS volumes. - VolumeConfigurations []*types.VolumeConfiguration + VolumeConfigurations []types.VolumeConfiguration } // Contains the response to a CreateLayer request. diff --git a/service/opsworks/api_op_CreateStack.go b/service/opsworks/api_op_CreateStack.go index 4d64effc342..f4c3c73b9c9 100644 --- a/service/opsworks/api_op_CreateStack.go +++ b/service/opsworks/api_op_CreateStack.go @@ -99,7 +99,7 @@ type CreateStackInput struct { AgentVersion *string // One or more user-defined key-value pairs to be added to the stack attributes. - Attributes map[string]*string + Attributes map[string]string // A ChefConfiguration object that specifies whether to enable Berkshelf and the // Berkshelf version on Chef 11.10 stacks. For more information, see Create a New diff --git a/service/opsworks/api_op_DescribeAgentVersions.go b/service/opsworks/api_op_DescribeAgentVersions.go index c398921ff5d..3551057ec55 100644 --- a/service/opsworks/api_op_DescribeAgentVersions.go +++ b/service/opsworks/api_op_DescribeAgentVersions.go @@ -44,7 +44,7 @@ type DescribeAgentVersionsOutput struct { // The agent versions for the specified stack or configuration manager. Note that // this value is the complete version number, not the abbreviated number used by // the console. - AgentVersions []*types.AgentVersion + AgentVersions []types.AgentVersion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeApps.go b/service/opsworks/api_op_DescribeApps.go index b8ab5705663..a7d907cfca2 100644 --- a/service/opsworks/api_op_DescribeApps.go +++ b/service/opsworks/api_op_DescribeApps.go @@ -37,7 +37,7 @@ type DescribeAppsInput struct { // An array of app IDs for the apps to be described. If you use this parameter, // DescribeApps returns a description of the specified apps. Otherwise, it returns // a description of every app. - AppIds []*string + AppIds []string // The app stack ID. If you use this parameter, DescribeApps returns a description // of the apps in the specified stack. @@ -48,7 +48,7 @@ type DescribeAppsInput struct { type DescribeAppsOutput struct { // An array of App objects that describe the specified apps. - Apps []*types.App + Apps []types.App // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeCommands.go b/service/opsworks/api_op_DescribeCommands.go index 9ffeb63a744..0967e949537 100644 --- a/service/opsworks/api_op_DescribeCommands.go +++ b/service/opsworks/api_op_DescribeCommands.go @@ -37,7 +37,7 @@ type DescribeCommandsInput struct { // An array of command IDs. If you include this parameter, DescribeCommands returns // a description of the specified commands. Otherwise, it returns a description of // every command. - CommandIds []*string + CommandIds []string // The deployment ID. If you include this parameter, DescribeCommands returns a // description of the commands associated with the specified deployment. @@ -52,7 +52,7 @@ type DescribeCommandsInput struct { type DescribeCommandsOutput struct { // An array of Command objects that describe each of the specified commands. - Commands []*types.Command + Commands []types.Command // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeDeployments.go b/service/opsworks/api_op_DescribeDeployments.go index c65677f38cf..d68f79d4357 100644 --- a/service/opsworks/api_op_DescribeDeployments.go +++ b/service/opsworks/api_op_DescribeDeployments.go @@ -41,7 +41,7 @@ type DescribeDeploymentsInput struct { // An array of deployment IDs to be described. If you include this parameter, the // command returns a description of the specified deployments. Otherwise, it // returns a description of every deployment. - DeploymentIds []*string + DeploymentIds []string // The stack ID. If you include this parameter, the command returns a description // of the commands associated with the specified stack. @@ -52,7 +52,7 @@ type DescribeDeploymentsInput struct { type DescribeDeploymentsOutput struct { // An array of Deployment objects that describe the deployments. - Deployments []*types.Deployment + Deployments []types.Deployment // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeEcsClusters.go b/service/opsworks/api_op_DescribeEcsClusters.go index 0c60627ab76..ff6365811a0 100644 --- a/service/opsworks/api_op_DescribeEcsClusters.go +++ b/service/opsworks/api_op_DescribeEcsClusters.go @@ -38,7 +38,7 @@ func (c *Client) DescribeEcsClusters(ctx context.Context, params *DescribeEcsClu type DescribeEcsClustersInput struct { // A list of ARNs, one for each cluster to be described. - EcsClusterArns []*string + EcsClusterArns []string // To receive a paginated response, use this parameter to specify the maximum // number of results to be returned with a single call. If the number of available @@ -62,7 +62,7 @@ type DescribeEcsClustersInput struct { type DescribeEcsClustersOutput struct { // A list of EcsCluster objects containing the cluster descriptions. - EcsClusters []*types.EcsCluster + EcsClusters []types.EcsCluster // If a paginated request does not return all of the remaining results, this // parameter is set to a token that you can assign to the request object's diff --git a/service/opsworks/api_op_DescribeElasticIps.go b/service/opsworks/api_op_DescribeElasticIps.go index 001ae6b4b44..f40039f4af6 100644 --- a/service/opsworks/api_op_DescribeElasticIps.go +++ b/service/opsworks/api_op_DescribeElasticIps.go @@ -42,7 +42,7 @@ type DescribeElasticIpsInput struct { // An array of Elastic IP addresses to be described. If you include this parameter, // DescribeElasticIps returns a description of the specified Elastic IP addresses. // Otherwise, it returns a description of every Elastic IP address. - Ips []*string + Ips []string // A stack ID. If you include this parameter, DescribeElasticIps returns a // description of the Elastic IP addresses that are registered with the specified @@ -54,7 +54,7 @@ type DescribeElasticIpsInput struct { type DescribeElasticIpsOutput struct { // An ElasticIps object that describes the specified Elastic IP addresses. - ElasticIps []*types.ElasticIp + ElasticIps []types.ElasticIp // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeElasticLoadBalancers.go b/service/opsworks/api_op_DescribeElasticLoadBalancers.go index 5c736ad52ef..32be30a01d8 100644 --- a/service/opsworks/api_op_DescribeElasticLoadBalancers.go +++ b/service/opsworks/api_op_DescribeElasticLoadBalancers.go @@ -36,7 +36,7 @@ type DescribeElasticLoadBalancersInput struct { // A list of layer IDs. The action describes the Elastic Load Balancing instances // for the specified layers. - LayerIds []*string + LayerIds []string // A stack ID. The action describes the stack's Elastic Load Balancing instances. StackId *string @@ -47,7 +47,7 @@ type DescribeElasticLoadBalancersOutput struct { // A list of ElasticLoadBalancer objects that describe the specified Elastic Load // Balancing instances. - ElasticLoadBalancers []*types.ElasticLoadBalancer + ElasticLoadBalancers []types.ElasticLoadBalancer // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeInstances.go b/service/opsworks/api_op_DescribeInstances.go index 39cc10fe9a0..a72b466a648 100644 --- a/service/opsworks/api_op_DescribeInstances.go +++ b/service/opsworks/api_op_DescribeInstances.go @@ -37,7 +37,7 @@ type DescribeInstancesInput struct { // An array of instance IDs to be described. If you use this parameter, // DescribeInstances returns a description of the specified instances. Otherwise, // it returns a description of every instance. - InstanceIds []*string + InstanceIds []string // A layer ID. If you use this parameter, DescribeInstances returns descriptions of // the instances associated with the specified layer. @@ -52,7 +52,7 @@ type DescribeInstancesInput struct { type DescribeInstancesOutput struct { // An array of Instance objects that describe the instances. - Instances []*types.Instance + Instances []types.Instance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeLayers.go b/service/opsworks/api_op_DescribeLayers.go index c279e5cb07b..1c731d89b6e 100644 --- a/service/opsworks/api_op_DescribeLayers.go +++ b/service/opsworks/api_op_DescribeLayers.go @@ -37,7 +37,7 @@ type DescribeLayersInput struct { // An array of layer IDs that specify the layers to be described. If you omit this // parameter, DescribeLayers returns a description of every layer in the specified // stack. - LayerIds []*string + LayerIds []string // The stack ID. StackId *string @@ -47,7 +47,7 @@ type DescribeLayersInput struct { type DescribeLayersOutput struct { // An array of Layer objects that describe the layers. - Layers []*types.Layer + Layers []types.Layer // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeLoadBasedAutoScaling.go b/service/opsworks/api_op_DescribeLoadBasedAutoScaling.go index af22748d183..c8a24fc3927 100644 --- a/service/opsworks/api_op_DescribeLoadBasedAutoScaling.go +++ b/service/opsworks/api_op_DescribeLoadBasedAutoScaling.go @@ -37,7 +37,7 @@ type DescribeLoadBasedAutoScalingInput struct { // An array of layer IDs. // // This member is required. - LayerIds []*string + LayerIds []string } // Contains the response to a DescribeLoadBasedAutoScaling request. @@ -45,7 +45,7 @@ type DescribeLoadBasedAutoScalingOutput struct { // An array of LoadBasedAutoScalingConfiguration objects that describe each layer's // configuration. - LoadBasedAutoScalingConfigurations []*types.LoadBasedAutoScalingConfiguration + LoadBasedAutoScalingConfigurations []types.LoadBasedAutoScalingConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeOperatingSystems.go b/service/opsworks/api_op_DescribeOperatingSystems.go index 3ad4f791bed..77a1ee8c6b8 100644 --- a/service/opsworks/api_op_DescribeOperatingSystems.go +++ b/service/opsworks/api_op_DescribeOperatingSystems.go @@ -34,7 +34,7 @@ type DescribeOperatingSystemsInput struct { type DescribeOperatingSystemsOutput struct { // Contains information in response to a DescribeOperatingSystems request. - OperatingSystems []*types.OperatingSystem + OperatingSystems []types.OperatingSystem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribePermissions.go b/service/opsworks/api_op_DescribePermissions.go index 4c71b9a3fb1..53dda57c647 100644 --- a/service/opsworks/api_op_DescribePermissions.go +++ b/service/opsworks/api_op_DescribePermissions.go @@ -58,7 +58,7 @@ type DescribePermissionsOutput struct { // * If the request contains a stack // ID and an IAM ARN, the array contains a single Permission object with // permissions for the specified stack and IAM ARN. - Permissions []*types.Permission + Permissions []types.Permission // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeRaidArrays.go b/service/opsworks/api_op_DescribeRaidArrays.go index deff38ffc14..4317528e41d 100644 --- a/service/opsworks/api_op_DescribeRaidArrays.go +++ b/service/opsworks/api_op_DescribeRaidArrays.go @@ -41,7 +41,7 @@ type DescribeRaidArraysInput struct { // An array of RAID array IDs. If you use this parameter, DescribeRaidArrays // returns descriptions of the specified arrays. Otherwise, it returns a // description of every array. - RaidArrayIds []*string + RaidArrayIds []string // The stack ID. StackId *string @@ -51,7 +51,7 @@ type DescribeRaidArraysInput struct { type DescribeRaidArraysOutput struct { // A RaidArrays object that describes the specified RAID arrays. - RaidArrays []*types.RaidArray + RaidArrays []types.RaidArray // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeRdsDbInstances.go b/service/opsworks/api_op_DescribeRdsDbInstances.go index 2de4c59a302..50ba5122d67 100644 --- a/service/opsworks/api_op_DescribeRdsDbInstances.go +++ b/service/opsworks/api_op_DescribeRdsDbInstances.go @@ -41,14 +41,14 @@ type DescribeRdsDbInstancesInput struct { StackId *string // An array containing the ARNs of the instances to be described. - RdsDbInstanceArns []*string + RdsDbInstanceArns []string } // Contains the response to a DescribeRdsDbInstances request. type DescribeRdsDbInstancesOutput struct { // An a array of RdsDbInstance objects that describe the instances. - RdsDbInstances []*types.RdsDbInstance + RdsDbInstances []types.RdsDbInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeServiceErrors.go b/service/opsworks/api_op_DescribeServiceErrors.go index 48b333056a2..a951cba86e4 100644 --- a/service/opsworks/api_op_DescribeServiceErrors.go +++ b/service/opsworks/api_op_DescribeServiceErrors.go @@ -41,7 +41,7 @@ type DescribeServiceErrorsInput struct { // An array of service error IDs. If you use this parameter, DescribeServiceErrors // returns descriptions of the specified errors. Otherwise, it returns a // description of every error. - ServiceErrorIds []*string + ServiceErrorIds []string // The stack ID. If you use this parameter, DescribeServiceErrors returns // descriptions of the errors associated with the specified stack. @@ -52,7 +52,7 @@ type DescribeServiceErrorsInput struct { type DescribeServiceErrorsOutput struct { // An array of ServiceError objects that describe the specified service errors. - ServiceErrors []*types.ServiceError + ServiceErrors []types.ServiceError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeStackProvisioningParameters.go b/service/opsworks/api_op_DescribeStackProvisioningParameters.go index c1bb800daad..75e92d53da5 100644 --- a/service/opsworks/api_op_DescribeStackProvisioningParameters.go +++ b/service/opsworks/api_op_DescribeStackProvisioningParameters.go @@ -46,7 +46,7 @@ type DescribeStackProvisioningParametersOutput struct { AgentInstallerUrl *string // An embedded object that contains the provisioning parameters. - Parameters map[string]*string + Parameters map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeStacks.go b/service/opsworks/api_op_DescribeStacks.go index fa0f8dc44ed..e7d91c8bd36 100644 --- a/service/opsworks/api_op_DescribeStacks.go +++ b/service/opsworks/api_op_DescribeStacks.go @@ -35,14 +35,14 @@ type DescribeStacksInput struct { // An array of stack IDs that specify the stacks to be described. If you omit this // parameter, DescribeStacks returns a description of every stack. - StackIds []*string + StackIds []string } // Contains the response to a DescribeStacks request. type DescribeStacksOutput struct { // An array of Stack objects that describe the stacks. - Stacks []*types.Stack + Stacks []types.Stack // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeTimeBasedAutoScaling.go b/service/opsworks/api_op_DescribeTimeBasedAutoScaling.go index e53130c130a..9f8d11b35b2 100644 --- a/service/opsworks/api_op_DescribeTimeBasedAutoScaling.go +++ b/service/opsworks/api_op_DescribeTimeBasedAutoScaling.go @@ -37,7 +37,7 @@ type DescribeTimeBasedAutoScalingInput struct { // An array of instance IDs. // // This member is required. - InstanceIds []*string + InstanceIds []string } // Contains the response to a DescribeTimeBasedAutoScaling request. @@ -45,7 +45,7 @@ type DescribeTimeBasedAutoScalingOutput struct { // An array of TimeBasedAutoScalingConfiguration objects that describe the // configuration for the specified instances. - TimeBasedAutoScalingConfigurations []*types.TimeBasedAutoScalingConfiguration + TimeBasedAutoScalingConfigurations []types.TimeBasedAutoScalingConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeUserProfiles.go b/service/opsworks/api_op_DescribeUserProfiles.go index cdb2eba03bd..5bae00c6c95 100644 --- a/service/opsworks/api_op_DescribeUserProfiles.go +++ b/service/opsworks/api_op_DescribeUserProfiles.go @@ -33,14 +33,14 @@ func (c *Client) DescribeUserProfiles(ctx context.Context, params *DescribeUserP type DescribeUserProfilesInput struct { // An array of IAM or federated user ARNs that identify the users to be described. - IamUserArns []*string + IamUserArns []string } // Contains the response to a DescribeUserProfiles request. type DescribeUserProfilesOutput struct { // A Users object that describes the specified users. - UserProfiles []*types.UserProfile + UserProfiles []types.UserProfile // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_DescribeVolumes.go b/service/opsworks/api_op_DescribeVolumes.go index 0fb5f2fab8a..e1c7cd8c0b0 100644 --- a/service/opsworks/api_op_DescribeVolumes.go +++ b/service/opsworks/api_op_DescribeVolumes.go @@ -48,14 +48,14 @@ type DescribeVolumesInput struct { // Am array of volume IDs. If you use this parameter, DescribeVolumes returns // descriptions of the specified volumes. Otherwise, it returns a description of // every volume. - VolumeIds []*string + VolumeIds []string } // Contains the response to a DescribeVolumes request. type DescribeVolumesOutput struct { // An array of volume IDs. - Volumes []*types.Volume + Volumes []types.Volume // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_ListTags.go b/service/opsworks/api_op_ListTags.go index c4512b7c483..90c39ee2932 100644 --- a/service/opsworks/api_op_ListTags.go +++ b/service/opsworks/api_op_ListTags.go @@ -35,7 +35,7 @@ type ListTagsInput struct { // Do not use. A validation exception occurs if you add a MaxResults parameter to a // ListTagsRequest call. - MaxResults *int32 + MaxResults int32 // Do not use. A validation exception occurs if you add a NextToken parameter to a // ListTagsRequest call. @@ -53,7 +53,7 @@ type ListTagsOutput struct { // A set of key-value pairs that contain tag keys and tag values that are attached // to a stack or layer. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworks/api_op_TagResource.go b/service/opsworks/api_op_TagResource.go index c8b4c565444..446d7707fff 100644 --- a/service/opsworks/api_op_TagResource.go +++ b/service/opsworks/api_op_TagResource.go @@ -56,7 +56,7 @@ type TagResourceInput struct { // any resource. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/opsworks/api_op_UntagResource.go b/service/opsworks/api_op_UntagResource.go index 02cf04c8762..a2ff04ccb95 100644 --- a/service/opsworks/api_op_UntagResource.go +++ b/service/opsworks/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // A list of the keys of tags to be removed from a stack or layer. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/opsworks/api_op_UpdateApp.go b/service/opsworks/api_op_UpdateApp.go index 72a6bb4e06b..f09ed725968 100644 --- a/service/opsworks/api_op_UpdateApp.go +++ b/service/opsworks/api_op_UpdateApp.go @@ -42,17 +42,17 @@ type UpdateAppInput struct { AppSource *types.Source // One or more user-defined key/value pairs to be added to the stack attributes. - Attributes map[string]*string + Attributes map[string]string // The app's data sources. - DataSources []*types.DataSource + DataSources []types.DataSource // A description of the app. Description *string // The app's virtual host settings, with multiple domains separated by commas. For // example: 'www.example.com, example.com' - Domains []*string + Domains []string // Whether SSL is enabled for the app. EnableSsl *bool @@ -69,7 +69,7 @@ type UpdateAppInput struct { // the message, "Environment: is too large (maximum is 20 KB)." If you have // specified one or more environment variables, you cannot modify the stack's Chef // version. - Environment []*types.EnvironmentVariable + Environment []types.EnvironmentVariable // The app name. Name *string diff --git a/service/opsworks/api_op_UpdateInstance.go b/service/opsworks/api_op_UpdateInstance.go index b9114d15d7d..9c642997071 100644 --- a/service/opsworks/api_op_UpdateInstance.go +++ b/service/opsworks/api_op_UpdateInstance.go @@ -96,7 +96,7 @@ type UpdateInstanceInput struct { InstanceType *string // The instance's layer IDs. - LayerIds []*string + LayerIds []string // The instance's operating system, which must be set to one of the following. You // cannot update an instance that is using a custom AMI. diff --git a/service/opsworks/api_op_UpdateLayer.go b/service/opsworks/api_op_UpdateLayer.go index b91bf85f65e..da1483db9dc 100644 --- a/service/opsworks/api_op_UpdateLayer.go +++ b/service/opsworks/api_op_UpdateLayer.go @@ -39,7 +39,7 @@ type UpdateLayerInput struct { LayerId *string // One or more user-defined key/value pairs to be added to the stack attributes. - Attributes map[string]*string + Attributes map[string]string // Whether to automatically assign an Elastic IP address // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) @@ -72,7 +72,7 @@ type UpdateLayerInput struct { CustomRecipes *types.Recipes // An array containing the layer's custom security group IDs. - CustomSecurityGroupIds []*string + CustomSecurityGroupIds []string // Whether to disable auto healing for the layer. EnableAutoHealing *bool @@ -93,7 +93,7 @@ type UpdateLayerInput struct { Name *string // An array of Package objects that describe the layer's packages. - Packages []*string + Packages []string // For custom layers only, use this parameter to specify the layer's short name, // which is used internally by AWS OpsWorks Stacks and by Chef. The short name is @@ -108,7 +108,7 @@ type UpdateLayerInput struct { UseEbsOptimizedInstances *bool // A VolumeConfigurations object that describes the layer's Amazon EBS volumes. - VolumeConfigurations []*types.VolumeConfiguration + VolumeConfigurations []types.VolumeConfiguration } type UpdateLayerOutput struct { diff --git a/service/opsworks/api_op_UpdateStack.go b/service/opsworks/api_op_UpdateStack.go index ebb48b505ec..24e23e7d85b 100644 --- a/service/opsworks/api_op_UpdateStack.go +++ b/service/opsworks/api_op_UpdateStack.go @@ -59,7 +59,7 @@ type UpdateStackInput struct { AgentVersion *string // One or more user-defined key-value pairs to be added to the stack attributes. - Attributes map[string]*string + Attributes map[string]string // A ChefConfiguration object that specifies whether to enable Berkshelf and the // Berkshelf version on Chef 11.10 stacks. For more information, see Create a New diff --git a/service/opsworks/deserializers.go b/service/opsworks/deserializers.go index 4960ae0b76d..347c77b6c65 100644 --- a/service/opsworks/deserializers.go +++ b/service/opsworks/deserializers.go @@ -8533,7 +8533,7 @@ func awsAwsjson11_deserializeDocumentAgentVersion(v **types.AgentVersion, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -8545,7 +8545,7 @@ func awsAwsjson11_deserializeDocumentAgentVersion(v **types.AgentVersion, value return nil } -func awsAwsjson11_deserializeDocumentAgentVersions(v *[]*types.AgentVersion, value interface{}) error { +func awsAwsjson11_deserializeDocumentAgentVersions(v *[]types.AgentVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8558,18 +8558,20 @@ func awsAwsjson11_deserializeDocumentAgentVersions(v *[]*types.AgentVersion, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AgentVersion + var cv []types.AgentVersion if *v == nil { - cv = []*types.AgentVersion{} + cv = []types.AgentVersion{} } else { cv = *v } for _, value := range shape { - var col *types.AgentVersion - if err := awsAwsjson11_deserializeDocumentAgentVersion(&col, value); err != nil { + var col types.AgentVersion + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAgentVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8605,7 +8607,7 @@ func awsAwsjson11_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AppId = &jtv + sv.AppId = ptr.String(jtv) } case "AppSource": @@ -8624,7 +8626,7 @@ func awsAwsjson11_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "DataSources": @@ -8638,7 +8640,7 @@ func awsAwsjson11_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Domains": @@ -8652,7 +8654,7 @@ func awsAwsjson11_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableSsl = &jtv + sv.EnableSsl = ptr.Bool(jtv) } case "Environment": @@ -8666,7 +8668,7 @@ func awsAwsjson11_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Shortname": @@ -8675,7 +8677,7 @@ func awsAwsjson11_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Shortname = &jtv + sv.Shortname = ptr.String(jtv) } case "SslConfiguration": @@ -8689,7 +8691,7 @@ func awsAwsjson11_deserializeDocumentApp(v **types.App, value interface{}) error if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } case "Type": @@ -8710,7 +8712,7 @@ func awsAwsjson11_deserializeDocumentApp(v **types.App, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentAppAttributes(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAppAttributes(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8723,21 +8725,21 @@ func awsAwsjson11_deserializeDocumentAppAttributes(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -8746,7 +8748,7 @@ func awsAwsjson11_deserializeDocumentAppAttributes(v *map[string]*string, value return nil } -func awsAwsjson11_deserializeDocumentApps(v *[]*types.App, value interface{}) error { +func awsAwsjson11_deserializeDocumentApps(v *[]types.App, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8759,18 +8761,20 @@ func awsAwsjson11_deserializeDocumentApps(v *[]*types.App, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.App + var cv []types.App if *v == nil { - cv = []*types.App{} + cv = []types.App{} } else { cv = *v } for _, value := range shape { - var col *types.App - if err := awsAwsjson11_deserializeDocumentApp(&col, value); err != nil { + var col types.App + destAddr := &col + if err := awsAwsjson11_deserializeDocumentApp(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8815,7 +8819,7 @@ func awsAwsjson11_deserializeDocumentAutoScalingThresholds(v **types.AutoScaling if err != nil { return err } - sv.CpuThreshold = &f64 + sv.CpuThreshold = ptr.Float64(f64) } case "IgnoreMetricsTime": @@ -8854,7 +8858,7 @@ func awsAwsjson11_deserializeDocumentAutoScalingThresholds(v **types.AutoScaling if err != nil { return err } - sv.LoadThreshold = &f64 + sv.LoadThreshold = ptr.Float64(f64) } case "MemoryThreshold": @@ -8867,7 +8871,7 @@ func awsAwsjson11_deserializeDocumentAutoScalingThresholds(v **types.AutoScaling if err != nil { return err } - sv.MemoryThreshold = &f64 + sv.MemoryThreshold = ptr.Float64(f64) } case "ThresholdsWaitTime": @@ -8920,7 +8924,7 @@ func awsAwsjson11_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMap if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeviceName = &jtv + sv.DeviceName = ptr.String(jtv) } case "Ebs": @@ -8934,7 +8938,7 @@ func awsAwsjson11_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMap if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NoDevice = &jtv + sv.NoDevice = ptr.String(jtv) } case "VirtualName": @@ -8943,7 +8947,7 @@ func awsAwsjson11_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMap if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VirtualName = &jtv + sv.VirtualName = ptr.String(jtv) } default: @@ -8955,7 +8959,7 @@ func awsAwsjson11_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMap return nil } -func awsAwsjson11_deserializeDocumentBlockDeviceMappings(v *[]*types.BlockDeviceMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentBlockDeviceMappings(v *[]types.BlockDeviceMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8968,18 +8972,20 @@ func awsAwsjson11_deserializeDocumentBlockDeviceMappings(v *[]*types.BlockDevice return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BlockDeviceMapping + var cv []types.BlockDeviceMapping if *v == nil { - cv = []*types.BlockDeviceMapping{} + cv = []types.BlockDeviceMapping{} } else { cv = *v } for _, value := range shape { - var col *types.BlockDeviceMapping - if err := awsAwsjson11_deserializeDocumentBlockDeviceMapping(&col, value); err != nil { + var col types.BlockDeviceMapping + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBlockDeviceMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9015,7 +9021,7 @@ func awsAwsjson11_deserializeDocumentChefConfiguration(v **types.ChefConfigurati if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BerkshelfVersion = &jtv + sv.BerkshelfVersion = ptr.String(jtv) } case "ManageBerkshelf": @@ -9024,7 +9030,7 @@ func awsAwsjson11_deserializeDocumentChefConfiguration(v **types.ChefConfigurati if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ManageBerkshelf = &jtv + sv.ManageBerkshelf = ptr.Bool(jtv) } default: @@ -9064,7 +9070,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLogsConfiguration(v **types.Cloud if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = ptr.Bool(jtv) } case "LogStreams": @@ -9148,7 +9154,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLogsLogStream(v **types.CloudWatc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatetimeFormat = &jtv + sv.DatetimeFormat = ptr.String(jtv) } case "Encoding": @@ -9166,7 +9172,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLogsLogStream(v **types.CloudWatc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.File = &jtv + sv.File = ptr.String(jtv) } case "FileFingerprintLines": @@ -9175,7 +9181,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLogsLogStream(v **types.CloudWatc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FileFingerprintLines = &jtv + sv.FileFingerprintLines = ptr.String(jtv) } case "InitialPosition": @@ -9193,7 +9199,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLogsLogStream(v **types.CloudWatc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LogGroupName = &jtv + sv.LogGroupName = ptr.String(jtv) } case "MultiLineStartPattern": @@ -9202,7 +9208,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLogsLogStream(v **types.CloudWatc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MultiLineStartPattern = &jtv + sv.MultiLineStartPattern = ptr.String(jtv) } case "TimeZone": @@ -9223,7 +9229,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchLogsLogStream(v **types.CloudWatc return nil } -func awsAwsjson11_deserializeDocumentCloudWatchLogsLogStreams(v *[]*types.CloudWatchLogsLogStream, value interface{}) error { +func awsAwsjson11_deserializeDocumentCloudWatchLogsLogStreams(v *[]types.CloudWatchLogsLogStream, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9236,18 +9242,20 @@ func awsAwsjson11_deserializeDocumentCloudWatchLogsLogStreams(v *[]*types.CloudW return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CloudWatchLogsLogStream + var cv []types.CloudWatchLogsLogStream if *v == nil { - cv = []*types.CloudWatchLogsLogStream{} + cv = []types.CloudWatchLogsLogStream{} } else { cv = *v } for _, value := range shape { - var col *types.CloudWatchLogsLogStream - if err := awsAwsjson11_deserializeDocumentCloudWatchLogsLogStream(&col, value); err != nil { + var col types.CloudWatchLogsLogStream + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCloudWatchLogsLogStream(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9283,7 +9291,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.AcknowledgedAt = &jtv + sv.AcknowledgedAt = ptr.String(jtv) } case "CommandId": @@ -9292,7 +9300,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CommandId = &jtv + sv.CommandId = ptr.String(jtv) } case "CompletedAt": @@ -9301,7 +9309,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.CompletedAt = &jtv + sv.CompletedAt = ptr.String(jtv) } case "CreatedAt": @@ -9310,7 +9318,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "DeploymentId": @@ -9319,7 +9327,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "ExitCode": @@ -9341,7 +9349,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "LogUrl": @@ -9350,7 +9358,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LogUrl = &jtv + sv.LogUrl = ptr.String(jtv) } case "Status": @@ -9359,7 +9367,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "Type": @@ -9368,7 +9376,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -9380,7 +9388,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ return nil } -func awsAwsjson11_deserializeDocumentCommands(v *[]*types.Command, value interface{}) error { +func awsAwsjson11_deserializeDocumentCommands(v *[]types.Command, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9393,18 +9401,20 @@ func awsAwsjson11_deserializeDocumentCommands(v *[]*types.Command, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Command + var cv []types.Command if *v == nil { - cv = []*types.Command{} + cv = []types.Command{} } else { cv = *v } for _, value := range shape { - var col *types.Command - if err := awsAwsjson11_deserializeDocumentCommand(&col, value); err != nil { + var col types.Command + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCommand(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9412,7 +9422,7 @@ func awsAwsjson11_deserializeDocumentCommands(v *[]*types.Command, value interfa return nil } -func awsAwsjson11_deserializeDocumentDailyAutoScalingSchedule(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDailyAutoScalingSchedule(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9425,21 +9435,21 @@ func awsAwsjson11_deserializeDocumentDailyAutoScalingSchedule(v *map[string]*str return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Switch to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -9476,7 +9486,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "DatabaseName": @@ -9485,7 +9495,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "Type": @@ -9494,7 +9504,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -9506,7 +9516,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte return nil } -func awsAwsjson11_deserializeDocumentDataSources(v *[]*types.DataSource, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSources(v *[]types.DataSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9519,18 +9529,20 @@ func awsAwsjson11_deserializeDocumentDataSources(v *[]*types.DataSource, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataSource + var cv []types.DataSource if *v == nil { - cv = []*types.DataSource{} + cv = []types.DataSource{} } else { cv = *v } for _, value := range shape { - var col *types.DataSource - if err := awsAwsjson11_deserializeDocumentDataSource(&col, value); err != nil { + var col types.DataSource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9566,7 +9578,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AppId = &jtv + sv.AppId = ptr.String(jtv) } case "Command": @@ -9580,7 +9592,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Comment = &jtv + sv.Comment = ptr.String(jtv) } case "CompletedAt": @@ -9589,7 +9601,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.CompletedAt = &jtv + sv.CompletedAt = ptr.String(jtv) } case "CreatedAt": @@ -9598,7 +9610,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "CustomJson": @@ -9607,7 +9619,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CustomJson = &jtv + sv.CustomJson = ptr.String(jtv) } case "DeploymentId": @@ -9616,7 +9628,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "Duration": @@ -9638,7 +9650,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IamUserArn = &jtv + sv.IamUserArn = ptr.String(jtv) } case "InstanceIds": @@ -9652,7 +9664,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } case "Status": @@ -9661,7 +9673,7 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -9718,7 +9730,7 @@ func awsAwsjson11_deserializeDocumentDeploymentCommand(v **types.DeploymentComma return nil } -func awsAwsjson11_deserializeDocumentDeploymentCommandArgs(v *map[string][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeploymentCommandArgs(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9731,18 +9743,20 @@ func awsAwsjson11_deserializeDocumentDeploymentCommandArgs(v *map[string][]*stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsAwsjson11_deserializeDocumentStrings(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentStrings(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -9750,7 +9764,7 @@ func awsAwsjson11_deserializeDocumentDeploymentCommandArgs(v *map[string][]*stri return nil } -func awsAwsjson11_deserializeDocumentDeployments(v *[]*types.Deployment, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeployments(v *[]types.Deployment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9763,18 +9777,20 @@ func awsAwsjson11_deserializeDocumentDeployments(v *[]*types.Deployment, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Deployment + var cv []types.Deployment if *v == nil { - cv = []*types.Deployment{} + cv = []types.Deployment{} } else { cv = *v } for _, value := range shape { - var col *types.Deployment - if err := awsAwsjson11_deserializeDocumentDeployment(&col, value); err != nil { + var col types.Deployment + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeployment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9810,7 +9826,7 @@ func awsAwsjson11_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DeleteOnTermination = &jtv + sv.DeleteOnTermination = ptr.Bool(jtv) } case "Iops": @@ -9832,7 +9848,7 @@ func awsAwsjson11_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SnapshotId = &jtv + sv.SnapshotId = ptr.String(jtv) } case "VolumeSize": @@ -9894,7 +9910,7 @@ func awsAwsjson11_deserializeDocumentEcsCluster(v **types.EcsCluster, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EcsClusterArn = &jtv + sv.EcsClusterArn = ptr.String(jtv) } case "EcsClusterName": @@ -9903,7 +9919,7 @@ func awsAwsjson11_deserializeDocumentEcsCluster(v **types.EcsCluster, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EcsClusterName = &jtv + sv.EcsClusterName = ptr.String(jtv) } case "RegisteredAt": @@ -9912,7 +9928,7 @@ func awsAwsjson11_deserializeDocumentEcsCluster(v **types.EcsCluster, value inte if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.RegisteredAt = &jtv + sv.RegisteredAt = ptr.String(jtv) } case "StackId": @@ -9921,7 +9937,7 @@ func awsAwsjson11_deserializeDocumentEcsCluster(v **types.EcsCluster, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } default: @@ -9933,7 +9949,7 @@ func awsAwsjson11_deserializeDocumentEcsCluster(v **types.EcsCluster, value inte return nil } -func awsAwsjson11_deserializeDocumentEcsClusters(v *[]*types.EcsCluster, value interface{}) error { +func awsAwsjson11_deserializeDocumentEcsClusters(v *[]types.EcsCluster, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9946,18 +9962,20 @@ func awsAwsjson11_deserializeDocumentEcsClusters(v *[]*types.EcsCluster, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EcsCluster + var cv []types.EcsCluster if *v == nil { - cv = []*types.EcsCluster{} + cv = []types.EcsCluster{} } else { cv = *v } for _, value := range shape { - var col *types.EcsCluster - if err := awsAwsjson11_deserializeDocumentEcsCluster(&col, value); err != nil { + var col types.EcsCluster + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEcsCluster(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9993,7 +10011,7 @@ func awsAwsjson11_deserializeDocumentElasticIp(v **types.ElasticIp, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Domain = &jtv + sv.Domain = ptr.String(jtv) } case "InstanceId": @@ -10002,7 +10020,7 @@ func awsAwsjson11_deserializeDocumentElasticIp(v **types.ElasticIp, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "Ip": @@ -10011,7 +10029,7 @@ func awsAwsjson11_deserializeDocumentElasticIp(v **types.ElasticIp, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Ip = &jtv + sv.Ip = ptr.String(jtv) } case "Name": @@ -10020,7 +10038,7 @@ func awsAwsjson11_deserializeDocumentElasticIp(v **types.ElasticIp, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Region": @@ -10029,7 +10047,7 @@ func awsAwsjson11_deserializeDocumentElasticIp(v **types.ElasticIp, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } default: @@ -10041,7 +10059,7 @@ func awsAwsjson11_deserializeDocumentElasticIp(v **types.ElasticIp, value interf return nil } -func awsAwsjson11_deserializeDocumentElasticIps(v *[]*types.ElasticIp, value interface{}) error { +func awsAwsjson11_deserializeDocumentElasticIps(v *[]types.ElasticIp, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10054,18 +10072,20 @@ func awsAwsjson11_deserializeDocumentElasticIps(v *[]*types.ElasticIp, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ElasticIp + var cv []types.ElasticIp if *v == nil { - cv = []*types.ElasticIp{} + cv = []types.ElasticIp{} } else { cv = *v } for _, value := range shape { - var col *types.ElasticIp - if err := awsAwsjson11_deserializeDocumentElasticIp(&col, value); err != nil { + var col types.ElasticIp + destAddr := &col + if err := awsAwsjson11_deserializeDocumentElasticIp(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10106,7 +10126,7 @@ func awsAwsjson11_deserializeDocumentElasticLoadBalancer(v **types.ElasticLoadBa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DnsName = &jtv + sv.DnsName = ptr.String(jtv) } case "Ec2InstanceIds": @@ -10120,7 +10140,7 @@ func awsAwsjson11_deserializeDocumentElasticLoadBalancer(v **types.ElasticLoadBa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ElasticLoadBalancerName = &jtv + sv.ElasticLoadBalancerName = ptr.String(jtv) } case "LayerId": @@ -10129,7 +10149,7 @@ func awsAwsjson11_deserializeDocumentElasticLoadBalancer(v **types.ElasticLoadBa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LayerId = &jtv + sv.LayerId = ptr.String(jtv) } case "Region": @@ -10138,7 +10158,7 @@ func awsAwsjson11_deserializeDocumentElasticLoadBalancer(v **types.ElasticLoadBa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "StackId": @@ -10147,7 +10167,7 @@ func awsAwsjson11_deserializeDocumentElasticLoadBalancer(v **types.ElasticLoadBa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } case "SubnetIds": @@ -10161,7 +10181,7 @@ func awsAwsjson11_deserializeDocumentElasticLoadBalancer(v **types.ElasticLoadBa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -10173,7 +10193,7 @@ func awsAwsjson11_deserializeDocumentElasticLoadBalancer(v **types.ElasticLoadBa return nil } -func awsAwsjson11_deserializeDocumentElasticLoadBalancers(v *[]*types.ElasticLoadBalancer, value interface{}) error { +func awsAwsjson11_deserializeDocumentElasticLoadBalancers(v *[]types.ElasticLoadBalancer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10186,18 +10206,20 @@ func awsAwsjson11_deserializeDocumentElasticLoadBalancers(v *[]*types.ElasticLoa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ElasticLoadBalancer + var cv []types.ElasticLoadBalancer if *v == nil { - cv = []*types.ElasticLoadBalancer{} + cv = []types.ElasticLoadBalancer{} } else { cv = *v } for _, value := range shape { - var col *types.ElasticLoadBalancer - if err := awsAwsjson11_deserializeDocumentElasticLoadBalancer(&col, value); err != nil { + var col types.ElasticLoadBalancer + destAddr := &col + if err := awsAwsjson11_deserializeDocumentElasticLoadBalancer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10233,7 +10255,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentVariable(v **types.EnvironmentVa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Secure": @@ -10242,7 +10264,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentVariable(v **types.EnvironmentVa if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Secure = &jtv + sv.Secure = ptr.Bool(jtv) } case "Value": @@ -10251,7 +10273,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentVariable(v **types.EnvironmentVa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -10263,7 +10285,7 @@ func awsAwsjson11_deserializeDocumentEnvironmentVariable(v **types.EnvironmentVa return nil } -func awsAwsjson11_deserializeDocumentEnvironmentVariables(v *[]*types.EnvironmentVariable, value interface{}) error { +func awsAwsjson11_deserializeDocumentEnvironmentVariables(v *[]types.EnvironmentVariable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10276,18 +10298,20 @@ func awsAwsjson11_deserializeDocumentEnvironmentVariables(v *[]*types.Environmen return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EnvironmentVariable + var cv []types.EnvironmentVariable if *v == nil { - cv = []*types.EnvironmentVariable{} + cv = []types.EnvironmentVariable{} } else { cv = *v } for _, value := range shape { - var col *types.EnvironmentVariable - if err := awsAwsjson11_deserializeDocumentEnvironmentVariable(&col, value); err != nil { + var col types.EnvironmentVariable + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEnvironmentVariable(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10323,7 +10347,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AgentVersion = &jtv + sv.AgentVersion = ptr.String(jtv) } case "AmiId": @@ -10332,7 +10356,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AmiId = &jtv + sv.AmiId = ptr.String(jtv) } case "Architecture": @@ -10350,7 +10374,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AutoScalingType": @@ -10368,7 +10392,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "BlockDeviceMappings": @@ -10382,7 +10406,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "EbsOptimized": @@ -10391,7 +10415,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EbsOptimized = &jtv + sv.EbsOptimized = ptr.Bool(jtv) } case "Ec2InstanceId": @@ -10400,7 +10424,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Ec2InstanceId = &jtv + sv.Ec2InstanceId = ptr.String(jtv) } case "EcsClusterArn": @@ -10409,7 +10433,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EcsClusterArn = &jtv + sv.EcsClusterArn = ptr.String(jtv) } case "EcsContainerInstanceArn": @@ -10418,7 +10442,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EcsContainerInstanceArn = &jtv + sv.EcsContainerInstanceArn = ptr.String(jtv) } case "ElasticIp": @@ -10427,7 +10451,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ElasticIp = &jtv + sv.ElasticIp = ptr.String(jtv) } case "Hostname": @@ -10436,7 +10460,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Hostname = &jtv + sv.Hostname = ptr.String(jtv) } case "InfrastructureClass": @@ -10445,7 +10469,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InfrastructureClass = &jtv + sv.InfrastructureClass = ptr.String(jtv) } case "InstallUpdatesOnBoot": @@ -10454,7 +10478,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.InstallUpdatesOnBoot = &jtv + sv.InstallUpdatesOnBoot = ptr.Bool(jtv) } case "InstanceId": @@ -10463,7 +10487,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "InstanceProfileArn": @@ -10472,7 +10496,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceProfileArn = &jtv + sv.InstanceProfileArn = ptr.String(jtv) } case "InstanceType": @@ -10481,7 +10505,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "LastServiceErrorId": @@ -10490,7 +10514,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastServiceErrorId = &jtv + sv.LastServiceErrorId = ptr.String(jtv) } case "LayerIds": @@ -10504,7 +10528,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Os = &jtv + sv.Os = ptr.String(jtv) } case "Platform": @@ -10513,7 +10537,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "PrivateDns": @@ -10522,7 +10546,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrivateDns = &jtv + sv.PrivateDns = ptr.String(jtv) } case "PrivateIp": @@ -10531,7 +10555,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrivateIp = &jtv + sv.PrivateIp = ptr.String(jtv) } case "PublicDns": @@ -10540,7 +10564,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PublicDns = &jtv + sv.PublicDns = ptr.String(jtv) } case "PublicIp": @@ -10549,7 +10573,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PublicIp = &jtv + sv.PublicIp = ptr.String(jtv) } case "RegisteredBy": @@ -10558,7 +10582,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RegisteredBy = &jtv + sv.RegisteredBy = ptr.String(jtv) } case "ReportedAgentVersion": @@ -10567,7 +10591,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReportedAgentVersion = &jtv + sv.ReportedAgentVersion = ptr.String(jtv) } case "ReportedOs": @@ -10590,7 +10614,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RootDeviceVolumeId = &jtv + sv.RootDeviceVolumeId = ptr.String(jtv) } case "SecurityGroupIds": @@ -10604,7 +10628,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SshHostDsaKeyFingerprint = &jtv + sv.SshHostDsaKeyFingerprint = ptr.String(jtv) } case "SshHostRsaKeyFingerprint": @@ -10613,7 +10637,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SshHostRsaKeyFingerprint = &jtv + sv.SshHostRsaKeyFingerprint = ptr.String(jtv) } case "SshKeyName": @@ -10622,7 +10646,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SshKeyName = &jtv + sv.SshKeyName = ptr.String(jtv) } case "StackId": @@ -10631,7 +10655,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } case "Status": @@ -10640,7 +10664,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "SubnetId": @@ -10649,7 +10673,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "Tenancy": @@ -10658,7 +10682,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Tenancy = &jtv + sv.Tenancy = ptr.String(jtv) } case "VirtualizationType": @@ -10679,7 +10703,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac return nil } -func awsAwsjson11_deserializeDocumentInstances(v *[]*types.Instance, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstances(v *[]types.Instance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10692,18 +10716,20 @@ func awsAwsjson11_deserializeDocumentInstances(v *[]*types.Instance, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Instance + var cv []types.Instance if *v == nil { - cv = []*types.Instance{} + cv = []types.Instance{} } else { cv = *v } for _, value := range shape { - var col *types.Instance - if err := awsAwsjson11_deserializeDocumentInstance(&col, value); err != nil { + var col types.Instance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11030,7 +11056,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Attributes": @@ -11044,7 +11070,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoAssignElasticIps = &jtv + sv.AutoAssignElasticIps = ptr.Bool(jtv) } case "AutoAssignPublicIps": @@ -11053,7 +11079,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoAssignPublicIps = &jtv + sv.AutoAssignPublicIps = ptr.Bool(jtv) } case "CloudWatchLogsConfiguration": @@ -11067,7 +11093,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "CustomInstanceProfileArn": @@ -11076,7 +11102,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CustomInstanceProfileArn = &jtv + sv.CustomInstanceProfileArn = ptr.String(jtv) } case "CustomJson": @@ -11085,7 +11111,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CustomJson = &jtv + sv.CustomJson = ptr.String(jtv) } case "CustomRecipes": @@ -11114,7 +11140,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableAutoHealing = &jtv + sv.EnableAutoHealing = ptr.Bool(jtv) } case "InstallUpdatesOnBoot": @@ -11123,7 +11149,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.InstallUpdatesOnBoot = &jtv + sv.InstallUpdatesOnBoot = ptr.Bool(jtv) } case "LayerId": @@ -11132,7 +11158,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LayerId = &jtv + sv.LayerId = ptr.String(jtv) } case "LifecycleEventConfiguration": @@ -11146,7 +11172,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Packages": @@ -11160,7 +11186,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Shortname = &jtv + sv.Shortname = ptr.String(jtv) } case "StackId": @@ -11169,7 +11195,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } case "Type": @@ -11187,7 +11213,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.UseEbsOptimizedInstances = &jtv + sv.UseEbsOptimizedInstances = ptr.Bool(jtv) } case "VolumeConfigurations": @@ -11204,7 +11230,7 @@ func awsAwsjson11_deserializeDocumentLayer(v **types.Layer, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentLayerAttributes(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLayerAttributes(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11217,21 +11243,21 @@ func awsAwsjson11_deserializeDocumentLayerAttributes(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -11240,7 +11266,7 @@ func awsAwsjson11_deserializeDocumentLayerAttributes(v *map[string]*string, valu return nil } -func awsAwsjson11_deserializeDocumentLayers(v *[]*types.Layer, value interface{}) error { +func awsAwsjson11_deserializeDocumentLayers(v *[]types.Layer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11253,18 +11279,20 @@ func awsAwsjson11_deserializeDocumentLayers(v *[]*types.Layer, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Layer + var cv []types.Layer if *v == nil { - cv = []*types.Layer{} + cv = []types.Layer{} } else { cv = *v } for _, value := range shape { - var col *types.Layer - if err := awsAwsjson11_deserializeDocumentLayer(&col, value); err != nil { + var col types.Layer + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLayer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11341,7 +11369,7 @@ func awsAwsjson11_deserializeDocumentLoadBasedAutoScalingConfiguration(v **types if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enable = &jtv + sv.Enable = ptr.Bool(jtv) } case "LayerId": @@ -11350,7 +11378,7 @@ func awsAwsjson11_deserializeDocumentLoadBasedAutoScalingConfiguration(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LayerId = &jtv + sv.LayerId = ptr.String(jtv) } case "UpScaling": @@ -11367,7 +11395,7 @@ func awsAwsjson11_deserializeDocumentLoadBasedAutoScalingConfiguration(v **types return nil } -func awsAwsjson11_deserializeDocumentLoadBasedAutoScalingConfigurations(v *[]*types.LoadBasedAutoScalingConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentLoadBasedAutoScalingConfigurations(v *[]types.LoadBasedAutoScalingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11380,18 +11408,20 @@ func awsAwsjson11_deserializeDocumentLoadBasedAutoScalingConfigurations(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LoadBasedAutoScalingConfiguration + var cv []types.LoadBasedAutoScalingConfiguration if *v == nil { - cv = []*types.LoadBasedAutoScalingConfiguration{} + cv = []types.LoadBasedAutoScalingConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.LoadBasedAutoScalingConfiguration - if err := awsAwsjson11_deserializeDocumentLoadBasedAutoScalingConfiguration(&col, value); err != nil { + var col types.LoadBasedAutoScalingConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLoadBasedAutoScalingConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11432,7 +11462,7 @@ func awsAwsjson11_deserializeDocumentOperatingSystem(v **types.OperatingSystem, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -11441,7 +11471,7 @@ func awsAwsjson11_deserializeDocumentOperatingSystem(v **types.OperatingSystem, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ReportedName": @@ -11450,7 +11480,7 @@ func awsAwsjson11_deserializeDocumentOperatingSystem(v **types.OperatingSystem, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReportedName = &jtv + sv.ReportedName = ptr.String(jtv) } case "ReportedVersion": @@ -11459,7 +11489,7 @@ func awsAwsjson11_deserializeDocumentOperatingSystem(v **types.OperatingSystem, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReportedVersion = &jtv + sv.ReportedVersion = ptr.String(jtv) } case "Supported": @@ -11468,7 +11498,7 @@ func awsAwsjson11_deserializeDocumentOperatingSystem(v **types.OperatingSystem, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Supported = &jtv + sv.Supported = ptr.Bool(jtv) } case "Type": @@ -11477,7 +11507,7 @@ func awsAwsjson11_deserializeDocumentOperatingSystem(v **types.OperatingSystem, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11517,7 +11547,7 @@ func awsAwsjson11_deserializeDocumentOperatingSystemConfigurationManager(v **typ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Version": @@ -11526,7 +11556,7 @@ func awsAwsjson11_deserializeDocumentOperatingSystemConfigurationManager(v **typ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -11538,7 +11568,7 @@ func awsAwsjson11_deserializeDocumentOperatingSystemConfigurationManager(v **typ return nil } -func awsAwsjson11_deserializeDocumentOperatingSystemConfigurationManagers(v *[]*types.OperatingSystemConfigurationManager, value interface{}) error { +func awsAwsjson11_deserializeDocumentOperatingSystemConfigurationManagers(v *[]types.OperatingSystemConfigurationManager, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11551,18 +11581,20 @@ func awsAwsjson11_deserializeDocumentOperatingSystemConfigurationManagers(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OperatingSystemConfigurationManager + var cv []types.OperatingSystemConfigurationManager if *v == nil { - cv = []*types.OperatingSystemConfigurationManager{} + cv = []types.OperatingSystemConfigurationManager{} } else { cv = *v } for _, value := range shape { - var col *types.OperatingSystemConfigurationManager - if err := awsAwsjson11_deserializeDocumentOperatingSystemConfigurationManager(&col, value); err != nil { + var col types.OperatingSystemConfigurationManager + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOperatingSystemConfigurationManager(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11570,7 +11602,7 @@ func awsAwsjson11_deserializeDocumentOperatingSystemConfigurationManagers(v *[]* return nil } -func awsAwsjson11_deserializeDocumentOperatingSystems(v *[]*types.OperatingSystem, value interface{}) error { +func awsAwsjson11_deserializeDocumentOperatingSystems(v *[]types.OperatingSystem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11583,18 +11615,20 @@ func awsAwsjson11_deserializeDocumentOperatingSystems(v *[]*types.OperatingSyste return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OperatingSystem + var cv []types.OperatingSystem if *v == nil { - cv = []*types.OperatingSystem{} + cv = []types.OperatingSystem{} } else { cv = *v } for _, value := range shape { - var col *types.OperatingSystem - if err := awsAwsjson11_deserializeDocumentOperatingSystem(&col, value); err != nil { + var col types.OperatingSystem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOperatingSystem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11602,7 +11636,7 @@ func awsAwsjson11_deserializeDocumentOperatingSystems(v *[]*types.OperatingSyste return nil } -func awsAwsjson11_deserializeDocumentParameters(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11615,21 +11649,21 @@ func awsAwsjson11_deserializeDocumentParameters(v *map[string]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -11666,7 +11700,7 @@ func awsAwsjson11_deserializeDocumentPermission(v **types.Permission, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllowSsh = &jtv + sv.AllowSsh = ptr.Bool(jtv) } case "AllowSudo": @@ -11675,7 +11709,7 @@ func awsAwsjson11_deserializeDocumentPermission(v **types.Permission, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllowSudo = &jtv + sv.AllowSudo = ptr.Bool(jtv) } case "IamUserArn": @@ -11684,7 +11718,7 @@ func awsAwsjson11_deserializeDocumentPermission(v **types.Permission, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IamUserArn = &jtv + sv.IamUserArn = ptr.String(jtv) } case "Level": @@ -11693,7 +11727,7 @@ func awsAwsjson11_deserializeDocumentPermission(v **types.Permission, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Level = &jtv + sv.Level = ptr.String(jtv) } case "StackId": @@ -11702,7 +11736,7 @@ func awsAwsjson11_deserializeDocumentPermission(v **types.Permission, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } default: @@ -11714,7 +11748,7 @@ func awsAwsjson11_deserializeDocumentPermission(v **types.Permission, value inte return nil } -func awsAwsjson11_deserializeDocumentPermissions(v *[]*types.Permission, value interface{}) error { +func awsAwsjson11_deserializeDocumentPermissions(v *[]types.Permission, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11727,18 +11761,20 @@ func awsAwsjson11_deserializeDocumentPermissions(v *[]*types.Permission, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Permission + var cv []types.Permission if *v == nil { - cv = []*types.Permission{} + cv = []types.Permission{} } else { cv = *v } for _, value := range shape { - var col *types.Permission - if err := awsAwsjson11_deserializeDocumentPermission(&col, value); err != nil { + var col types.Permission + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPermission(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11774,7 +11810,7 @@ func awsAwsjson11_deserializeDocumentRaidArray(v **types.RaidArray, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "CreatedAt": @@ -11783,7 +11819,7 @@ func awsAwsjson11_deserializeDocumentRaidArray(v **types.RaidArray, value interf if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "Device": @@ -11792,7 +11828,7 @@ func awsAwsjson11_deserializeDocumentRaidArray(v **types.RaidArray, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Device = &jtv + sv.Device = ptr.String(jtv) } case "InstanceId": @@ -11801,7 +11837,7 @@ func awsAwsjson11_deserializeDocumentRaidArray(v **types.RaidArray, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "Iops": @@ -11823,7 +11859,7 @@ func awsAwsjson11_deserializeDocumentRaidArray(v **types.RaidArray, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MountPoint = &jtv + sv.MountPoint = ptr.String(jtv) } case "Name": @@ -11832,7 +11868,7 @@ func awsAwsjson11_deserializeDocumentRaidArray(v **types.RaidArray, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NumberOfDisks": @@ -11854,7 +11890,7 @@ func awsAwsjson11_deserializeDocumentRaidArray(v **types.RaidArray, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RaidArrayId = &jtv + sv.RaidArrayId = ptr.String(jtv) } case "RaidLevel": @@ -11889,7 +11925,7 @@ func awsAwsjson11_deserializeDocumentRaidArray(v **types.RaidArray, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } case "VolumeType": @@ -11898,7 +11934,7 @@ func awsAwsjson11_deserializeDocumentRaidArray(v **types.RaidArray, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VolumeType = &jtv + sv.VolumeType = ptr.String(jtv) } default: @@ -11910,7 +11946,7 @@ func awsAwsjson11_deserializeDocumentRaidArray(v **types.RaidArray, value interf return nil } -func awsAwsjson11_deserializeDocumentRaidArrays(v *[]*types.RaidArray, value interface{}) error { +func awsAwsjson11_deserializeDocumentRaidArrays(v *[]types.RaidArray, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11923,18 +11959,20 @@ func awsAwsjson11_deserializeDocumentRaidArrays(v *[]*types.RaidArray, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RaidArray + var cv []types.RaidArray if *v == nil { - cv = []*types.RaidArray{} + cv = []types.RaidArray{} } else { cv = *v } for _, value := range shape { - var col *types.RaidArray - if err := awsAwsjson11_deserializeDocumentRaidArray(&col, value); err != nil { + var col types.RaidArray + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRaidArray(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11970,7 +12008,7 @@ func awsAwsjson11_deserializeDocumentRdsDbInstance(v **types.RdsDbInstance, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "DbInstanceIdentifier": @@ -11979,7 +12017,7 @@ func awsAwsjson11_deserializeDocumentRdsDbInstance(v **types.RdsDbInstance, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DbInstanceIdentifier = &jtv + sv.DbInstanceIdentifier = ptr.String(jtv) } case "DbPassword": @@ -11988,7 +12026,7 @@ func awsAwsjson11_deserializeDocumentRdsDbInstance(v **types.RdsDbInstance, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DbPassword = &jtv + sv.DbPassword = ptr.String(jtv) } case "DbUser": @@ -11997,7 +12035,7 @@ func awsAwsjson11_deserializeDocumentRdsDbInstance(v **types.RdsDbInstance, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DbUser = &jtv + sv.DbUser = ptr.String(jtv) } case "Engine": @@ -12006,7 +12044,7 @@ func awsAwsjson11_deserializeDocumentRdsDbInstance(v **types.RdsDbInstance, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Engine = &jtv + sv.Engine = ptr.String(jtv) } case "MissingOnRds": @@ -12015,7 +12053,7 @@ func awsAwsjson11_deserializeDocumentRdsDbInstance(v **types.RdsDbInstance, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.MissingOnRds = &jtv + sv.MissingOnRds = ptr.Bool(jtv) } case "RdsDbInstanceArn": @@ -12024,7 +12062,7 @@ func awsAwsjson11_deserializeDocumentRdsDbInstance(v **types.RdsDbInstance, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RdsDbInstanceArn = &jtv + sv.RdsDbInstanceArn = ptr.String(jtv) } case "Region": @@ -12033,7 +12071,7 @@ func awsAwsjson11_deserializeDocumentRdsDbInstance(v **types.RdsDbInstance, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "StackId": @@ -12042,7 +12080,7 @@ func awsAwsjson11_deserializeDocumentRdsDbInstance(v **types.RdsDbInstance, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } default: @@ -12054,7 +12092,7 @@ func awsAwsjson11_deserializeDocumentRdsDbInstance(v **types.RdsDbInstance, valu return nil } -func awsAwsjson11_deserializeDocumentRdsDbInstances(v *[]*types.RdsDbInstance, value interface{}) error { +func awsAwsjson11_deserializeDocumentRdsDbInstances(v *[]types.RdsDbInstance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12067,18 +12105,20 @@ func awsAwsjson11_deserializeDocumentRdsDbInstances(v *[]*types.RdsDbInstance, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RdsDbInstance + var cv []types.RdsDbInstance if *v == nil { - cv = []*types.RdsDbInstance{} + cv = []types.RdsDbInstance{} } else { cv = *v } for _, value := range shape { - var col *types.RdsDbInstance - if err := awsAwsjson11_deserializeDocumentRdsDbInstance(&col, value); err != nil { + var col types.RdsDbInstance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRdsDbInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12170,7 +12210,7 @@ func awsAwsjson11_deserializeDocumentReportedOs(v **types.ReportedOs, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Family = &jtv + sv.Family = ptr.String(jtv) } case "Name": @@ -12179,7 +12219,7 @@ func awsAwsjson11_deserializeDocumentReportedOs(v **types.ReportedOs, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Version": @@ -12188,7 +12228,7 @@ func awsAwsjson11_deserializeDocumentReportedOs(v **types.ReportedOs, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -12228,7 +12268,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12268,7 +12308,7 @@ func awsAwsjson11_deserializeDocumentSelfUserProfile(v **types.SelfUserProfile, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IamUserArn = &jtv + sv.IamUserArn = ptr.String(jtv) } case "Name": @@ -12277,7 +12317,7 @@ func awsAwsjson11_deserializeDocumentSelfUserProfile(v **types.SelfUserProfile, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SshPublicKey": @@ -12286,7 +12326,7 @@ func awsAwsjson11_deserializeDocumentSelfUserProfile(v **types.SelfUserProfile, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SshPublicKey = &jtv + sv.SshPublicKey = ptr.String(jtv) } case "SshUsername": @@ -12295,7 +12335,7 @@ func awsAwsjson11_deserializeDocumentSelfUserProfile(v **types.SelfUserProfile, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SshUsername = &jtv + sv.SshUsername = ptr.String(jtv) } default: @@ -12335,7 +12375,7 @@ func awsAwsjson11_deserializeDocumentServiceError(v **types.ServiceError, value if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "InstanceId": @@ -12344,7 +12384,7 @@ func awsAwsjson11_deserializeDocumentServiceError(v **types.ServiceError, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "Message": @@ -12353,7 +12393,7 @@ func awsAwsjson11_deserializeDocumentServiceError(v **types.ServiceError, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ServiceErrorId": @@ -12362,7 +12402,7 @@ func awsAwsjson11_deserializeDocumentServiceError(v **types.ServiceError, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceErrorId = &jtv + sv.ServiceErrorId = ptr.String(jtv) } case "StackId": @@ -12371,7 +12411,7 @@ func awsAwsjson11_deserializeDocumentServiceError(v **types.ServiceError, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } case "Type": @@ -12380,7 +12420,7 @@ func awsAwsjson11_deserializeDocumentServiceError(v **types.ServiceError, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -12392,7 +12432,7 @@ func awsAwsjson11_deserializeDocumentServiceError(v **types.ServiceError, value return nil } -func awsAwsjson11_deserializeDocumentServiceErrors(v *[]*types.ServiceError, value interface{}) error { +func awsAwsjson11_deserializeDocumentServiceErrors(v *[]types.ServiceError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12405,18 +12445,20 @@ func awsAwsjson11_deserializeDocumentServiceErrors(v *[]*types.ServiceError, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServiceError + var cv []types.ServiceError if *v == nil { - cv = []*types.ServiceError{} + cv = []types.ServiceError{} } else { cv = *v } for _, value := range shape { - var col *types.ServiceError - if err := awsAwsjson11_deserializeDocumentServiceError(&col, value); err != nil { + var col types.ServiceError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServiceError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12452,7 +12494,7 @@ func awsAwsjson11_deserializeDocumentShutdownEventConfiguration(v **types.Shutdo if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DelayUntilElbConnectionsDrained = &jtv + sv.DelayUntilElbConnectionsDrained = ptr.Bool(jtv) } case "ExecutionTimeout": @@ -12505,7 +12547,7 @@ func awsAwsjson11_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "Revision": @@ -12514,7 +12556,7 @@ func awsAwsjson11_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Revision = &jtv + sv.Revision = ptr.String(jtv) } case "SshKey": @@ -12523,7 +12565,7 @@ func awsAwsjson11_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SshKey = &jtv + sv.SshKey = ptr.String(jtv) } case "Type": @@ -12541,7 +12583,7 @@ func awsAwsjson11_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } case "Username": @@ -12550,7 +12592,7 @@ func awsAwsjson11_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -12590,7 +12632,7 @@ func awsAwsjson11_deserializeDocumentSslConfiguration(v **types.SslConfiguration if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Certificate = &jtv + sv.Certificate = ptr.String(jtv) } case "Chain": @@ -12599,7 +12641,7 @@ func awsAwsjson11_deserializeDocumentSslConfiguration(v **types.SslConfiguration if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Chain = &jtv + sv.Chain = ptr.String(jtv) } case "PrivateKey": @@ -12608,7 +12650,7 @@ func awsAwsjson11_deserializeDocumentSslConfiguration(v **types.SslConfiguration if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrivateKey = &jtv + sv.PrivateKey = ptr.String(jtv) } default: @@ -12648,7 +12690,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AgentVersion = &jtv + sv.AgentVersion = ptr.String(jtv) } case "Arn": @@ -12657,7 +12699,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Attributes": @@ -12681,7 +12723,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "CustomCookbooksSource": @@ -12695,7 +12737,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CustomJson = &jtv + sv.CustomJson = ptr.String(jtv) } case "DefaultAvailabilityZone": @@ -12704,7 +12746,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DefaultAvailabilityZone = &jtv + sv.DefaultAvailabilityZone = ptr.String(jtv) } case "DefaultInstanceProfileArn": @@ -12713,7 +12755,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DefaultInstanceProfileArn = &jtv + sv.DefaultInstanceProfileArn = ptr.String(jtv) } case "DefaultOs": @@ -12722,7 +12764,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DefaultOs = &jtv + sv.DefaultOs = ptr.String(jtv) } case "DefaultRootDeviceType": @@ -12740,7 +12782,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DefaultSshKeyName = &jtv + sv.DefaultSshKeyName = ptr.String(jtv) } case "DefaultSubnetId": @@ -12749,7 +12791,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DefaultSubnetId = &jtv + sv.DefaultSubnetId = ptr.String(jtv) } case "HostnameTheme": @@ -12758,7 +12800,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HostnameTheme = &jtv + sv.HostnameTheme = ptr.String(jtv) } case "Name": @@ -12767,7 +12809,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Region": @@ -12776,7 +12818,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "ServiceRoleArn": @@ -12785,7 +12827,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceRoleArn = &jtv + sv.ServiceRoleArn = ptr.String(jtv) } case "StackId": @@ -12794,7 +12836,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } case "UseCustomCookbooks": @@ -12803,7 +12845,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.UseCustomCookbooks = &jtv + sv.UseCustomCookbooks = ptr.Bool(jtv) } case "UseOpsworksSecurityGroups": @@ -12812,7 +12854,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.UseOpsworksSecurityGroups = &jtv + sv.UseOpsworksSecurityGroups = ptr.Bool(jtv) } case "VpcId": @@ -12821,7 +12863,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -12833,7 +12875,7 @@ func awsAwsjson11_deserializeDocumentStack(v **types.Stack, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentStackAttributes(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStackAttributes(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12846,21 +12888,21 @@ func awsAwsjson11_deserializeDocumentStackAttributes(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -12897,7 +12939,7 @@ func awsAwsjson11_deserializeDocumentStackConfigurationManager(v **types.StackCo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Version": @@ -12906,7 +12948,7 @@ func awsAwsjson11_deserializeDocumentStackConfigurationManager(v **types.StackCo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -12918,7 +12960,7 @@ func awsAwsjson11_deserializeDocumentStackConfigurationManager(v **types.StackCo return nil } -func awsAwsjson11_deserializeDocumentStacks(v *[]*types.Stack, value interface{}) error { +func awsAwsjson11_deserializeDocumentStacks(v *[]types.Stack, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12931,18 +12973,20 @@ func awsAwsjson11_deserializeDocumentStacks(v *[]*types.Stack, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Stack + var cv []types.Stack if *v == nil { - cv = []*types.Stack{} + cv = []types.Stack{} } else { cv = *v } for _, value := range shape { - var col *types.Stack - if err := awsAwsjson11_deserializeDocumentStack(&col, value); err != nil { + var col types.Stack + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStack(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12991,7 +13035,7 @@ func awsAwsjson11_deserializeDocumentStackSummary(v **types.StackSummary, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "InstancesCount": @@ -13018,7 +13062,7 @@ func awsAwsjson11_deserializeDocumentStackSummary(v **types.StackSummary, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "StackId": @@ -13027,7 +13071,7 @@ func awsAwsjson11_deserializeDocumentStackSummary(v **types.StackSummary, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } default: @@ -13039,7 +13083,7 @@ func awsAwsjson11_deserializeDocumentStackSummary(v **types.StackSummary, value return nil } -func awsAwsjson11_deserializeDocumentStrings(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStrings(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13052,21 +13096,21 @@ func awsAwsjson11_deserializeDocumentStrings(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -13075,7 +13119,7 @@ func awsAwsjson11_deserializeDocumentStrings(v *[]*string, value interface{}) er return nil } -func awsAwsjson11_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13088,21 +13132,21 @@ func awsAwsjson11_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -13139,7 +13183,7 @@ func awsAwsjson11_deserializeDocumentTemporaryCredential(v **types.TemporaryCred if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "Password": @@ -13148,7 +13192,7 @@ func awsAwsjson11_deserializeDocumentTemporaryCredential(v **types.TemporaryCred if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } case "Username": @@ -13157,7 +13201,7 @@ func awsAwsjson11_deserializeDocumentTemporaryCredential(v **types.TemporaryCred if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } case "ValidForInMinutes": @@ -13215,7 +13259,7 @@ func awsAwsjson11_deserializeDocumentTimeBasedAutoScalingConfiguration(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } default: @@ -13227,7 +13271,7 @@ func awsAwsjson11_deserializeDocumentTimeBasedAutoScalingConfiguration(v **types return nil } -func awsAwsjson11_deserializeDocumentTimeBasedAutoScalingConfigurations(v *[]*types.TimeBasedAutoScalingConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentTimeBasedAutoScalingConfigurations(v *[]types.TimeBasedAutoScalingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13240,18 +13284,20 @@ func awsAwsjson11_deserializeDocumentTimeBasedAutoScalingConfigurations(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TimeBasedAutoScalingConfiguration + var cv []types.TimeBasedAutoScalingConfiguration if *v == nil { - cv = []*types.TimeBasedAutoScalingConfiguration{} + cv = []types.TimeBasedAutoScalingConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.TimeBasedAutoScalingConfiguration - if err := awsAwsjson11_deserializeDocumentTimeBasedAutoScalingConfiguration(&col, value); err != nil { + var col types.TimeBasedAutoScalingConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTimeBasedAutoScalingConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13287,7 +13333,7 @@ func awsAwsjson11_deserializeDocumentUserProfile(v **types.UserProfile, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllowSelfManagement = &jtv + sv.AllowSelfManagement = ptr.Bool(jtv) } case "IamUserArn": @@ -13296,7 +13342,7 @@ func awsAwsjson11_deserializeDocumentUserProfile(v **types.UserProfile, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IamUserArn = &jtv + sv.IamUserArn = ptr.String(jtv) } case "Name": @@ -13305,7 +13351,7 @@ func awsAwsjson11_deserializeDocumentUserProfile(v **types.UserProfile, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SshPublicKey": @@ -13314,7 +13360,7 @@ func awsAwsjson11_deserializeDocumentUserProfile(v **types.UserProfile, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SshPublicKey = &jtv + sv.SshPublicKey = ptr.String(jtv) } case "SshUsername": @@ -13323,7 +13369,7 @@ func awsAwsjson11_deserializeDocumentUserProfile(v **types.UserProfile, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SshUsername = &jtv + sv.SshUsername = ptr.String(jtv) } default: @@ -13335,7 +13381,7 @@ func awsAwsjson11_deserializeDocumentUserProfile(v **types.UserProfile, value in return nil } -func awsAwsjson11_deserializeDocumentUserProfiles(v *[]*types.UserProfile, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserProfiles(v *[]types.UserProfile, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13348,18 +13394,20 @@ func awsAwsjson11_deserializeDocumentUserProfiles(v *[]*types.UserProfile, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserProfile + var cv []types.UserProfile if *v == nil { - cv = []*types.UserProfile{} + cv = []types.UserProfile{} } else { cv = *v } for _, value := range shape { - var col *types.UserProfile - if err := awsAwsjson11_deserializeDocumentUserProfile(&col, value); err != nil { + var col types.UserProfile + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUserProfile(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13395,7 +13443,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13435,7 +13483,7 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "Device": @@ -13444,7 +13492,7 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Device = &jtv + sv.Device = ptr.String(jtv) } case "Ec2VolumeId": @@ -13453,7 +13501,7 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Ec2VolumeId = &jtv + sv.Ec2VolumeId = ptr.String(jtv) } case "Encrypted": @@ -13462,7 +13510,7 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = ptr.Bool(jtv) } case "InstanceId": @@ -13471,7 +13519,7 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "Iops": @@ -13493,7 +13541,7 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MountPoint = &jtv + sv.MountPoint = ptr.String(jtv) } case "Name": @@ -13502,7 +13550,7 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RaidArrayId": @@ -13511,7 +13559,7 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RaidArrayId = &jtv + sv.RaidArrayId = ptr.String(jtv) } case "Region": @@ -13520,7 +13568,7 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "Size": @@ -13542,7 +13590,7 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "VolumeId": @@ -13551,7 +13599,7 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VolumeId = &jtv + sv.VolumeId = ptr.String(jtv) } case "VolumeType": @@ -13560,7 +13608,7 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VolumeType = &jtv + sv.VolumeType = ptr.String(jtv) } default: @@ -13600,7 +13648,7 @@ func awsAwsjson11_deserializeDocumentVolumeConfiguration(v **types.VolumeConfigu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = ptr.Bool(jtv) } case "Iops": @@ -13622,7 +13670,7 @@ func awsAwsjson11_deserializeDocumentVolumeConfiguration(v **types.VolumeConfigu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MountPoint = &jtv + sv.MountPoint = ptr.String(jtv) } case "NumberOfDisks": @@ -13670,7 +13718,7 @@ func awsAwsjson11_deserializeDocumentVolumeConfiguration(v **types.VolumeConfigu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VolumeType = &jtv + sv.VolumeType = ptr.String(jtv) } default: @@ -13682,7 +13730,7 @@ func awsAwsjson11_deserializeDocumentVolumeConfiguration(v **types.VolumeConfigu return nil } -func awsAwsjson11_deserializeDocumentVolumeConfigurations(v *[]*types.VolumeConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentVolumeConfigurations(v *[]types.VolumeConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13695,18 +13743,20 @@ func awsAwsjson11_deserializeDocumentVolumeConfigurations(v *[]*types.VolumeConf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VolumeConfiguration + var cv []types.VolumeConfiguration if *v == nil { - cv = []*types.VolumeConfiguration{} + cv = []types.VolumeConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.VolumeConfiguration - if err := awsAwsjson11_deserializeDocumentVolumeConfiguration(&col, value); err != nil { + var col types.VolumeConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVolumeConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13714,7 +13764,7 @@ func awsAwsjson11_deserializeDocumentVolumeConfigurations(v *[]*types.VolumeConf return nil } -func awsAwsjson11_deserializeDocumentVolumes(v *[]*types.Volume, value interface{}) error { +func awsAwsjson11_deserializeDocumentVolumes(v *[]types.Volume, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13727,18 +13777,20 @@ func awsAwsjson11_deserializeDocumentVolumes(v *[]*types.Volume, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Volume + var cv []types.Volume if *v == nil { - cv = []*types.Volume{} + cv = []types.Volume{} } else { cv = *v } for _, value := range shape { - var col *types.Volume - if err := awsAwsjson11_deserializeDocumentVolume(&col, value); err != nil { + var col types.Volume + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVolume(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13964,7 +14016,7 @@ func awsAwsjson11_deserializeOpDocumentCloneStackOutput(v **CloneStackOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } default: @@ -14004,7 +14056,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAppOutput(v **CreateAppOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AppId = &jtv + sv.AppId = ptr.String(jtv) } default: @@ -14044,7 +14096,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } default: @@ -14084,7 +14136,7 @@ func awsAwsjson11_deserializeOpDocumentCreateInstanceOutput(v **CreateInstanceOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } default: @@ -14124,7 +14176,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLayerOutput(v **CreateLayerOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LayerId = &jtv + sv.LayerId = ptr.String(jtv) } default: @@ -14164,7 +14216,7 @@ func awsAwsjson11_deserializeOpDocumentCreateStackOutput(v **CreateStackOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } default: @@ -14204,7 +14256,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUserProfileOutput(v **CreateUserPro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IamUserArn = &jtv + sv.IamUserArn = ptr.String(jtv) } default: @@ -14703,7 +14755,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEcsClustersOutput(v **DescribeEcs if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -15139,7 +15191,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStackProvisioningParametersOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AgentInstallerUrl = &jtv + sv.AgentInstallerUrl = ptr.String(jtv) } case "Parameters": @@ -15426,7 +15478,7 @@ func awsAwsjson11_deserializeOpDocumentGetHostnameSuggestionOutput(v **GetHostna if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Hostname = &jtv + sv.Hostname = ptr.String(jtv) } case "LayerId": @@ -15435,7 +15487,7 @@ func awsAwsjson11_deserializeOpDocumentGetHostnameSuggestionOutput(v **GetHostna if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LayerId = &jtv + sv.LayerId = ptr.String(jtv) } default: @@ -15511,7 +15563,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsOutput(v **ListTagsOutput, value if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -15587,7 +15639,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterEcsClusterOutput(v **RegisterEcsC if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EcsClusterArn = &jtv + sv.EcsClusterArn = ptr.String(jtv) } default: @@ -15627,7 +15679,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterElasticIpOutput(v **RegisterElast if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ElasticIp = &jtv + sv.ElasticIp = ptr.String(jtv) } default: @@ -15667,7 +15719,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterInstanceOutput(v **RegisterInstan if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } default: @@ -15738,7 +15790,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterVolumeOutput(v **RegisterVolumeOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VolumeId = &jtv + sv.VolumeId = ptr.String(jtv) } default: diff --git a/service/opsworks/go.mod b/service/opsworks/go.mod index df382dc84c9..a67b3d9840d 100644 --- a/service/opsworks/go.mod +++ b/service/opsworks/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/opsworks go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/opsworks/serializers.go b/service/opsworks/serializers.go index be6f410cec1..4c418b0d266 100644 --- a/service/opsworks/serializers.go +++ b/service/opsworks/serializers.go @@ -3403,17 +3403,13 @@ func (m *awsAwsjson11_serializeOpUpdateVolume) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAppAttributes(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAppAttributes(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3491,17 +3487,13 @@ func awsAwsjson11_serializeDocumentBlockDeviceMapping(v *types.BlockDeviceMappin return nil } -func awsAwsjson11_serializeDocumentBlockDeviceMappings(v []*types.BlockDeviceMapping, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBlockDeviceMappings(v []types.BlockDeviceMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentBlockDeviceMapping(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentBlockDeviceMapping(&v[i], av); err != nil { return err } } @@ -3606,34 +3598,26 @@ func awsAwsjson11_serializeDocumentCloudWatchLogsLogStream(v *types.CloudWatchLo return nil } -func awsAwsjson11_serializeDocumentCloudWatchLogsLogStreams(v []*types.CloudWatchLogsLogStream, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCloudWatchLogsLogStreams(v []types.CloudWatchLogsLogStream, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCloudWatchLogsLogStream(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCloudWatchLogsLogStream(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentDailyAutoScalingSchedule(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDailyAutoScalingSchedule(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3660,17 +3644,13 @@ func awsAwsjson11_serializeDocumentDataSource(v *types.DataSource, value smithyj return nil } -func awsAwsjson11_serializeDocumentDataSources(v []*types.DataSource, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDataSources(v []types.DataSource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDataSource(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDataSource(&v[i], av); err != nil { return err } } @@ -3696,14 +3676,13 @@ func awsAwsjson11_serializeDocumentDeploymentCommand(v *types.DeploymentCommand, return nil } -func awsAwsjson11_serializeDocumentDeploymentCommandArgs(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDeploymentCommandArgs(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentStrings(v[key], om); err != nil { @@ -3767,17 +3746,13 @@ func awsAwsjson11_serializeDocumentEnvironmentVariable(v *types.EnvironmentVaria return nil } -func awsAwsjson11_serializeDocumentEnvironmentVariables(v []*types.EnvironmentVariable, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEnvironmentVariables(v []types.EnvironmentVariable, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEnvironmentVariable(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEnvironmentVariable(&v[i], av); err != nil { return err } } @@ -3801,17 +3776,13 @@ func awsAwsjson11_serializeDocumentInstanceIdentity(v *types.InstanceIdentity, v return nil } -func awsAwsjson11_serializeDocumentLayerAttributes(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLayerAttributes(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3948,17 +3919,13 @@ func awsAwsjson11_serializeDocumentSslConfiguration(v *types.SslConfiguration, v return nil } -func awsAwsjson11_serializeDocumentStackAttributes(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStackAttributes(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3980,47 +3947,35 @@ func awsAwsjson11_serializeDocumentStackConfigurationManager(v *types.StackConfi return nil } -func awsAwsjson11_serializeDocumentStrings(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStrings(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -4067,17 +4022,13 @@ func awsAwsjson11_serializeDocumentVolumeConfiguration(v *types.VolumeConfigurat return nil } -func awsAwsjson11_serializeDocumentVolumeConfigurations(v []*types.VolumeConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVolumeConfigurations(v []types.VolumeConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentVolumeConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentVolumeConfiguration(&v[i], av); err != nil { return err } } @@ -5413,9 +5364,9 @@ func awsAwsjson11_serializeOpDocumentListTagsInput(v *ListTagsInput, value smith object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { diff --git a/service/opsworks/types/types.go b/service/opsworks/types/types.go index d804ae21227..e64b0c87ca3 100644 --- a/service/opsworks/types/types.go +++ b/service/opsworks/types/types.go @@ -22,20 +22,20 @@ type App struct { AppSource *Source // The stack attributes. - Attributes map[string]*string + Attributes map[string]string // When the app was created. CreatedAt *string // The app's data sources. - DataSources []*DataSource + DataSources []DataSource // A description of the app. Description *string // The app vhost settings with multiple domains separated by commas. For example: // 'www.example.com, example.com' - Domains []*string + Domains []string // Whether to enable SSL for the app. EnableSsl *bool @@ -51,7 +51,7 @@ type App struct { // accommodate most if not all use cases, but if you do exceed it, you will cause // an exception (API) with an "Environment: is too large (maximum is 20 KB)" // message. - Environment []*EnvironmentVariable + Environment []EnvironmentVariable // The app name. Name *string @@ -82,7 +82,7 @@ type AutoScalingThresholds struct { // manually. For more information, see Allowing AWS OpsWorks Stacks to Act on Your // Behalf // (https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-servicerole.html). - Alarms []*string + Alarms []string // The CPU utilization threshold, as a percent of the available CPU. A value of -1 // disables the threshold. @@ -155,7 +155,7 @@ type CloudWatchLogsConfiguration struct { Enabled *bool // A list of configuration options for CloudWatch Logs. - LogStreams []*CloudWatchLogsLogStream + LogStreams []CloudWatchLogsLogStream } // Describes the Amazon CloudWatch logs configuration for a layer. For detailed @@ -341,7 +341,7 @@ type Deployment struct { IamUserArn *string // The IDs of the target instances. - InstanceIds []*string + InstanceIds []string // The stack ID. StackId *string @@ -420,7 +420,7 @@ type DeploymentCommand struct { // For example, to upgrade an instance to // Amazon Linux 2016.09, set Args to the following. { "upgrade_os_to":["Amazon // Linux 2016.09"], "allow_reboot":["true"] } - Args map[string][]*string + Args map[string][]string } // Describes an Amazon EBS volume. This data type maps directly to the Amazon EC2 @@ -494,14 +494,14 @@ type ElasticIp struct { type ElasticLoadBalancer struct { // A list of Availability Zones. - AvailabilityZones []*string + AvailabilityZones []string // The instance's public DNS name. DnsName *string // A list of the EC2 instances that the Elastic Load Balancing instance is managing // traffic for. - Ec2InstanceIds []*string + Ec2InstanceIds []string // The Elastic Load Balancing instance's name. ElasticLoadBalancerName *string @@ -516,7 +516,7 @@ type ElasticLoadBalancer struct { StackId *string // A list of subnet IDs, if the stack is running in a VPC. - SubnetIds []*string + SubnetIds []string // The VPC ID. VpcId *string @@ -574,7 +574,7 @@ type Instance struct { // An array of BlockDeviceMapping objects that specify the instance's block device // mappings. - BlockDeviceMappings []*BlockDeviceMapping + BlockDeviceMappings []BlockDeviceMapping // The time that the instance was created. CreatedAt *string @@ -625,7 +625,7 @@ type Instance struct { LastServiceErrorId *string // An array containing the instance layer IDs. - LayerIds []*string + LayerIds []string // The instance's operating system. Os *string @@ -663,7 +663,7 @@ type Instance struct { RootDeviceVolumeId *string // An array containing the instance security group IDs. - SecurityGroupIds []*string + SecurityGroupIds []string // The SSH key's Deep Security Agent (DSA) fingerprint. SshHostDsaKeyFingerprint *string @@ -808,7 +808,7 @@ type Layer struct { // GangliaPassword attributes, AWS OpsWorks Stacks returns *****FILTERED***** // instead of the actual value For an ECS Cluster layer, AWS OpsWorks Stacks the // EcsClusterArn attribute is set to the cluster's ARN. - Attributes map[string]*string + Attributes map[string]string // Whether to automatically assign an Elastic IP address // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) @@ -841,7 +841,7 @@ type Layer struct { CustomRecipes *Recipes // An array containing the layer's custom security group IDs. - CustomSecurityGroupIds []*string + CustomSecurityGroupIds []string // AWS OpsWorks Stacks supports five lifecycle events: setup, configuration, // deploy, undeploy, and shutdown. For each layer, AWS OpsWorks Stacks runs a set @@ -856,7 +856,7 @@ type Layer struct { DefaultRecipes *Recipes // An array containing the layer's security group names. - DefaultSecurityGroupNames []*string + DefaultSecurityGroupNames []string // Whether auto healing is disabled for the layer. EnableAutoHealing *bool @@ -880,7 +880,7 @@ type Layer struct { Name *string // An array of Package objects that describe the layer's packages. - Packages []*string + Packages []string // The layer short name. Shortname *string @@ -895,7 +895,7 @@ type Layer struct { UseEbsOptimizedInstances *bool // A VolumeConfigurations object that describes the layer's Amazon EBS volumes. - VolumeConfigurations []*VolumeConfiguration + VolumeConfigurations []VolumeConfiguration } // Specifies the lifecycle event configuration @@ -930,7 +930,7 @@ type OperatingSystem struct { // Supported configuration manager name and versions for an AWS OpsWorks Stacks // operating system. - ConfigurationManagers []*OperatingSystemConfigurationManager + ConfigurationManagers []OperatingSystemConfigurationManager // The ID of a supported operating system, such as Amazon Linux 2018.03. Id *string @@ -1092,19 +1092,19 @@ type RdsDbInstance struct { type Recipes struct { // An array of custom recipe names to be run following a configure event. - Configure []*string + Configure []string // An array of custom recipe names to be run following a deploy event. - Deploy []*string + Deploy []string // An array of custom recipe names to be run following a setup event. - Setup []*string + Setup []string // An array of custom recipe names to be run following a shutdown event. - Shutdown []*string + Shutdown []string // An array of custom recipe names to be run following a undeploy event. - Undeploy []*string + Undeploy []string } // A registered instance's reported operating system. @@ -1250,7 +1250,7 @@ type Stack struct { Arn *string // The stack's attributes. - Attributes map[string]*string + Attributes map[string]string // A ChefConfiguration object that specifies whether to enable Berkshelf and the // Berkshelf version. For more information, see Create a New Stack @@ -1558,23 +1558,23 @@ type VolumeConfiguration struct { type WeeklyAutoScalingSchedule struct { // The schedule for Friday. - Friday map[string]*string + Friday map[string]string // The schedule for Monday. - Monday map[string]*string + Monday map[string]string // The schedule for Saturday. - Saturday map[string]*string + Saturday map[string]string // The schedule for Sunday. - Sunday map[string]*string + Sunday map[string]string // The schedule for Thursday. - Thursday map[string]*string + Thursday map[string]string // The schedule for Tuesday. - Tuesday map[string]*string + Tuesday map[string]string // The schedule for Wednesday. - Wednesday map[string]*string + Wednesday map[string]string } diff --git a/service/opsworks/validators.go b/service/opsworks/validators.go index 8966ded4ff2..5e07bbcf95b 100644 --- a/service/opsworks/validators.go +++ b/service/opsworks/validators.go @@ -1387,13 +1387,13 @@ func validateEnvironmentVariable(v *types.EnvironmentVariable) error { } } -func validateEnvironmentVariables(v []*types.EnvironmentVariable) error { +func validateEnvironmentVariables(v []types.EnvironmentVariable) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "EnvironmentVariables"} for i := range v { - if err := validateEnvironmentVariable(v[i]); err != nil { + if err := validateEnvironmentVariable(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1443,13 +1443,13 @@ func validateVolumeConfiguration(v *types.VolumeConfiguration) error { } } -func validateVolumeConfigurations(v []*types.VolumeConfiguration) error { +func validateVolumeConfigurations(v []types.VolumeConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "VolumeConfigurations"} for i := range v { - if err := validateVolumeConfiguration(v[i]); err != nil { + if err := validateVolumeConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/opsworkscm/api_op_AssociateNode.go b/service/opsworkscm/api_op_AssociateNode.go index 3aea5e8c5f0..f47e63b6fee 100644 --- a/service/opsworkscm/api_op_AssociateNode.go +++ b/service/opsworkscm/api_op_AssociateNode.go @@ -60,7 +60,7 @@ type AssociateNodeInput struct { // certificate-signing request (CSR) that is created by the node. // // This member is required. - EngineAttributes []*types.EngineAttribute + EngineAttributes []types.EngineAttribute // The name of the node. // diff --git a/service/opsworkscm/api_op_CreateBackup.go b/service/opsworkscm/api_op_CreateBackup.go index 46f7d2036d8..a0d1b80f94f 100644 --- a/service/opsworkscm/api_op_CreateBackup.go +++ b/service/opsworkscm/api_op_CreateBackup.go @@ -63,7 +63,7 @@ type CreateBackupInput struct { // // * A maximum of 50 user-applied tags is // allowed for tag-supported AWS OpsWorks-CM resources. - Tags []*types.Tag + Tags []types.Tag } type CreateBackupOutput struct { diff --git a/service/opsworkscm/api_op_CreateServer.go b/service/opsworkscm/api_op_CreateServer.go index 8865c62b916..5a61b873026 100644 --- a/service/opsworkscm/api_op_CreateServer.go +++ b/service/opsworkscm/api_op_CreateServer.go @@ -175,7 +175,7 @@ type CreateServerInput struct { // * PUPPET_R10K_PRIVATE_KEY: If you are using a private Git // repository, add PUPPET_R10K_PRIVATE_KEY to specify a PEM-encoded private SSH // key. - EngineAttributes []*types.EngineAttribute + EngineAttributes []types.EngineAttribute // The engine model of the server. Valid values in this release include Monolithic // for Puppet and Single for Chef. @@ -221,7 +221,7 @@ type CreateServerInput struct { // specified by SubnetIds. If you do not specify this parameter, AWS OpsWorks CM // creates one new security group that uses TCP ports 22 and 443, open to 0.0.0.0/0 // (everyone). - SecurityGroupIds []*string + SecurityGroupIds []string // The IDs of subnets in which to launch the server EC2 instance. Amazon // EC2-Classic customers: This field is required. All servers must run within a @@ -231,7 +231,7 @@ type CreateServerInput struct { // subnet IDs, the VPC must have "Auto Assign Public IP" enabled. For more // information about supported Amazon EC2 platforms, see Supported Platforms // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html). - SubnetIds []*string + SubnetIds []string // A map that contains tag keys and tag values to attach to an AWS OpsWorks for // Chef Automate or AWS OpsWorks for Puppet Enterprise server. @@ -252,7 +252,7 @@ type CreateServerInput struct { // // * A maximum of 50 user-applied tags is allowed for any AWS // OpsWorks-CM server. - Tags []*types.Tag + Tags []types.Tag } type CreateServerOutput struct { diff --git a/service/opsworkscm/api_op_DescribeAccountAttributes.go b/service/opsworkscm/api_op_DescribeAccountAttributes.go index b5bcb7f4d64..3f60c382b86 100644 --- a/service/opsworkscm/api_op_DescribeAccountAttributes.go +++ b/service/opsworkscm/api_op_DescribeAccountAttributes.go @@ -33,7 +33,7 @@ type DescribeAccountAttributesInput struct { type DescribeAccountAttributesOutput struct { // The attributes that are currently set for the account. - Attributes []*types.AccountAttribute + Attributes []types.AccountAttribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworkscm/api_op_DescribeBackups.go b/service/opsworkscm/api_op_DescribeBackups.go index 4b1440b2437..082121e5de6 100644 --- a/service/opsworkscm/api_op_DescribeBackups.go +++ b/service/opsworkscm/api_op_DescribeBackups.go @@ -49,7 +49,7 @@ type DescribeBackupsInput struct { type DescribeBackupsOutput struct { // Contains the response to a DescribeBackups request. - Backups []*types.Backup + Backups []types.Backup // This is not currently implemented for DescribeBackups requests. NextToken *string diff --git a/service/opsworkscm/api_op_DescribeEvents.go b/service/opsworkscm/api_op_DescribeEvents.go index 4aa94516277..6303cad0197 100644 --- a/service/opsworkscm/api_op_DescribeEvents.go +++ b/service/opsworkscm/api_op_DescribeEvents.go @@ -65,7 +65,7 @@ type DescribeEventsOutput struct { NextToken *string // Contains the response to a DescribeEvents request. - ServerEvents []*types.ServerEvent + ServerEvents []types.ServerEvent // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworkscm/api_op_DescribeNodeAssociationStatus.go b/service/opsworkscm/api_op_DescribeNodeAssociationStatus.go index d33f9b8948c..1de7fcfb10c 100644 --- a/service/opsworkscm/api_op_DescribeNodeAssociationStatus.go +++ b/service/opsworkscm/api_op_DescribeNodeAssociationStatus.go @@ -49,7 +49,7 @@ type DescribeNodeAssociationStatusOutput struct { // Attributes specific to the node association. In Puppet, the attibute // PUPPET_NODE_CERT contains the signed certificate (the result of the CSR). - EngineAttributes []*types.EngineAttribute + EngineAttributes []types.EngineAttribute // The status of the association or disassociation request. Possible values: // diff --git a/service/opsworkscm/api_op_DescribeServers.go b/service/opsworkscm/api_op_DescribeServers.go index 9038f66c9e6..18b81905c1f 100644 --- a/service/opsworkscm/api_op_DescribeServers.go +++ b/service/opsworkscm/api_op_DescribeServers.go @@ -57,7 +57,7 @@ type DescribeServersOutput struct { // PUPPET_API_CA_CERT. This is the PEM-encoded CA certificate that is used by the // Puppet API over TCP port number 8140. The CA certificate is also used to sign // node certificates. - Servers []*types.Server + Servers []types.Server // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworkscm/api_op_DisassociateNode.go b/service/opsworkscm/api_op_DisassociateNode.go index a837254abb8..2acd9d1319a 100644 --- a/service/opsworkscm/api_op_DisassociateNode.go +++ b/service/opsworkscm/api_op_DisassociateNode.go @@ -52,7 +52,7 @@ type DisassociateNodeInput struct { // // * CHEF_ORGANIZATION: The Chef organization with which the node was // associated. By default only one organization named default can exist. - EngineAttributes []*types.EngineAttribute + EngineAttributes []types.EngineAttribute } type DisassociateNodeOutput struct { diff --git a/service/opsworkscm/api_op_ExportServerEngineAttribute.go b/service/opsworkscm/api_op_ExportServerEngineAttribute.go index d09d0f706b5..4c4f9c4bec7 100644 --- a/service/opsworkscm/api_op_ExportServerEngineAttribute.go +++ b/service/opsworkscm/api_op_ExportServerEngineAttribute.go @@ -67,7 +67,7 @@ type ExportServerEngineAttributeInput struct { // the Chef engine (three numbers separated by dots, such as 13.8.5). If this // attribute is empty, OpsWorks for Chef Automate uses the most current version. In // Puppet, this parameter is ignored. - InputAttributes []*types.EngineAttribute + InputAttributes []types.EngineAttribute } type ExportServerEngineAttributeOutput struct { diff --git a/service/opsworkscm/api_op_ListTagsForResource.go b/service/opsworkscm/api_op_ListTagsForResource.go index 32cea1b19d8..4f0e4ed8c58 100644 --- a/service/opsworkscm/api_op_ListTagsForResource.go +++ b/service/opsworkscm/api_op_ListTagsForResource.go @@ -62,7 +62,7 @@ type ListTagsForResourceOutput struct { NextToken *string // Tags that have been applied to the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/opsworkscm/api_op_StartMaintenance.go b/service/opsworkscm/api_op_StartMaintenance.go index c66857da73e..267de457fce 100644 --- a/service/opsworkscm/api_op_StartMaintenance.go +++ b/service/opsworkscm/api_op_StartMaintenance.go @@ -49,7 +49,7 @@ type StartMaintenanceInput struct { // value to true to upgrade the server to Chef Automate 2. For more information, // see Upgrade an AWS OpsWorks for Chef Automate Server to Chef Automate 2 // (https://docs.aws.amazon.com/opsworks/latest/userguide/opscm-a2upgrade.html). - EngineAttributes []*types.EngineAttribute + EngineAttributes []types.EngineAttribute } type StartMaintenanceOutput struct { diff --git a/service/opsworkscm/api_op_TagResource.go b/service/opsworkscm/api_op_TagResource.go index 7f1ce23cb58..a97b0b751df 100644 --- a/service/opsworkscm/api_op_TagResource.go +++ b/service/opsworkscm/api_op_TagResource.go @@ -57,7 +57,7 @@ type TagResourceInput struct { // allowed for any AWS OpsWorks-CM server or backup. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/opsworkscm/api_op_UntagResource.go b/service/opsworkscm/api_op_UntagResource.go index 7d0e046a6ae..26d275a23b2 100644 --- a/service/opsworkscm/api_op_UntagResource.go +++ b/service/opsworkscm/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // The keys of tags that you want to remove. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/opsworkscm/deserializers.go b/service/opsworkscm/deserializers.go index 13b8e4a010b..c521866ec38 100644 --- a/service/opsworkscm/deserializers.go +++ b/service/opsworkscm/deserializers.go @@ -2484,7 +2484,7 @@ func awsAwsjson11_deserializeDocumentAccountAttribute(v **types.AccountAttribute if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Used": @@ -2509,7 +2509,7 @@ func awsAwsjson11_deserializeDocumentAccountAttribute(v **types.AccountAttribute return nil } -func awsAwsjson11_deserializeDocumentAccountAttributes(v *[]*types.AccountAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccountAttributes(v *[]types.AccountAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2522,18 +2522,20 @@ func awsAwsjson11_deserializeDocumentAccountAttributes(v *[]*types.AccountAttrib return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AccountAttribute + var cv []types.AccountAttribute if *v == nil { - cv = []*types.AccountAttribute{} + cv = []types.AccountAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.AccountAttribute - if err := awsAwsjson11_deserializeDocumentAccountAttribute(&col, value); err != nil { + var col types.AccountAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAccountAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2569,7 +2571,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BackupArn = &jtv + sv.BackupArn = ptr.String(jtv) } case "BackupId": @@ -2578,7 +2580,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) } - sv.BackupId = &jtv + sv.BackupId = ptr.String(jtv) } case "BackupType": @@ -2609,7 +2611,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Engine": @@ -2618,7 +2620,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Engine = &jtv + sv.Engine = ptr.String(jtv) } case "EngineModel": @@ -2627,7 +2629,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EngineModel = &jtv + sv.EngineModel = ptr.String(jtv) } case "EngineVersion": @@ -2636,7 +2638,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "InstanceProfileArn": @@ -2645,7 +2647,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceProfileArn = &jtv + sv.InstanceProfileArn = ptr.String(jtv) } case "InstanceType": @@ -2654,7 +2656,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "KeyPair": @@ -2663,7 +2665,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KeyPair = &jtv + sv.KeyPair = ptr.String(jtv) } case "PreferredBackupWindow": @@ -2672,7 +2674,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected TimeWindowDefinition to be of type string, got %T instead", value) } - sv.PreferredBackupWindow = &jtv + sv.PreferredBackupWindow = ptr.String(jtv) } case "PreferredMaintenanceWindow": @@ -2681,7 +2683,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected TimeWindowDefinition to be of type string, got %T instead", value) } - sv.PreferredMaintenanceWindow = &jtv + sv.PreferredMaintenanceWindow = ptr.String(jtv) } case "S3DataSize": @@ -2703,7 +2705,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3DataUrl = &jtv + sv.S3DataUrl = ptr.String(jtv) } case "S3LogUrl": @@ -2712,7 +2714,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.S3LogUrl = &jtv + sv.S3LogUrl = ptr.String(jtv) } case "SecurityGroupIds": @@ -2726,7 +2728,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected ServerName to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } case "ServiceRoleArn": @@ -2735,7 +2737,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceRoleArn = &jtv + sv.ServiceRoleArn = ptr.String(jtv) } case "Status": @@ -2753,7 +2755,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusDescription = &jtv + sv.StatusDescription = ptr.String(jtv) } case "SubnetIds": @@ -2767,7 +2769,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ToolsVersion = &jtv + sv.ToolsVersion = ptr.String(jtv) } case "UserArn": @@ -2776,7 +2778,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } default: @@ -2788,7 +2790,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentBackups(v *[]*types.Backup, value interface{}) error { +func awsAwsjson11_deserializeDocumentBackups(v *[]types.Backup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2801,18 +2803,20 @@ func awsAwsjson11_deserializeDocumentBackups(v *[]*types.Backup, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Backup + var cv []types.Backup if *v == nil { - cv = []*types.Backup{} + cv = []types.Backup{} } else { cv = *v } for _, value := range shape { - var col *types.Backup - if err := awsAwsjson11_deserializeDocumentBackup(&col, value); err != nil { + var col types.Backup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBackup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2848,7 +2852,7 @@ func awsAwsjson11_deserializeDocumentEngineAttribute(v **types.EngineAttribute, if !ok { return fmt.Errorf("expected EngineAttributeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Value": @@ -2857,7 +2861,7 @@ func awsAwsjson11_deserializeDocumentEngineAttribute(v **types.EngineAttribute, if !ok { return fmt.Errorf("expected EngineAttributeValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -2869,7 +2873,7 @@ func awsAwsjson11_deserializeDocumentEngineAttribute(v **types.EngineAttribute, return nil } -func awsAwsjson11_deserializeDocumentEngineAttributes(v *[]*types.EngineAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentEngineAttributes(v *[]types.EngineAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2882,18 +2886,20 @@ func awsAwsjson11_deserializeDocumentEngineAttributes(v *[]*types.EngineAttribut return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EngineAttribute + var cv []types.EngineAttribute if *v == nil { - cv = []*types.EngineAttribute{} + cv = []types.EngineAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.EngineAttribute - if err := awsAwsjson11_deserializeDocumentEngineAttribute(&col, value); err != nil { + var col types.EngineAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEngineAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2929,7 +2935,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2969,7 +2975,7 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3009,7 +3015,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3049,7 +3055,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3089,7 +3095,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3129,7 +3135,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AssociatePublicIpAddress = &jtv + sv.AssociatePublicIpAddress = ptr.Bool(jtv) } case "BackupRetentionCount": @@ -3151,7 +3157,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CloudFormationStackArn = &jtv + sv.CloudFormationStackArn = ptr.String(jtv) } case "CreatedAt": @@ -3173,7 +3179,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected CustomDomain to be of type string, got %T instead", value) } - sv.CustomDomain = &jtv + sv.CustomDomain = ptr.String(jtv) } case "DisableAutomatedBackup": @@ -3182,7 +3188,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DisableAutomatedBackup = &jtv + sv.DisableAutomatedBackup = ptr.Bool(jtv) } case "Endpoint": @@ -3191,7 +3197,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Endpoint = &jtv + sv.Endpoint = ptr.String(jtv) } case "Engine": @@ -3200,7 +3206,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Engine = &jtv + sv.Engine = ptr.String(jtv) } case "EngineAttributes": @@ -3214,7 +3220,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EngineModel = &jtv + sv.EngineModel = ptr.String(jtv) } case "EngineVersion": @@ -3223,7 +3229,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "InstanceProfileArn": @@ -3232,7 +3238,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceProfileArn = &jtv + sv.InstanceProfileArn = ptr.String(jtv) } case "InstanceType": @@ -3241,7 +3247,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "KeyPair": @@ -3250,7 +3256,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KeyPair = &jtv + sv.KeyPair = ptr.String(jtv) } case "MaintenanceStatus": @@ -3268,7 +3274,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected TimeWindowDefinition to be of type string, got %T instead", value) } - sv.PreferredBackupWindow = &jtv + sv.PreferredBackupWindow = ptr.String(jtv) } case "PreferredMaintenanceWindow": @@ -3277,7 +3283,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected TimeWindowDefinition to be of type string, got %T instead", value) } - sv.PreferredMaintenanceWindow = &jtv + sv.PreferredMaintenanceWindow = ptr.String(jtv) } case "SecurityGroupIds": @@ -3291,7 +3297,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerArn = &jtv + sv.ServerArn = ptr.String(jtv) } case "ServerName": @@ -3300,7 +3306,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } case "ServiceRoleArn": @@ -3309,7 +3315,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceRoleArn = &jtv + sv.ServiceRoleArn = ptr.String(jtv) } case "Status": @@ -3327,7 +3333,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } case "SubnetIds": @@ -3385,7 +3391,7 @@ func awsAwsjson11_deserializeDocumentServerEvent(v **types.ServerEvent, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LogUrl = &jtv + sv.LogUrl = ptr.String(jtv) } case "Message": @@ -3394,7 +3400,7 @@ func awsAwsjson11_deserializeDocumentServerEvent(v **types.ServerEvent, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ServerName": @@ -3403,7 +3409,7 @@ func awsAwsjson11_deserializeDocumentServerEvent(v **types.ServerEvent, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } default: @@ -3415,7 +3421,7 @@ func awsAwsjson11_deserializeDocumentServerEvent(v **types.ServerEvent, value in return nil } -func awsAwsjson11_deserializeDocumentServerEvents(v *[]*types.ServerEvent, value interface{}) error { +func awsAwsjson11_deserializeDocumentServerEvents(v *[]types.ServerEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3428,18 +3434,20 @@ func awsAwsjson11_deserializeDocumentServerEvents(v *[]*types.ServerEvent, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServerEvent + var cv []types.ServerEvent if *v == nil { - cv = []*types.ServerEvent{} + cv = []types.ServerEvent{} } else { cv = *v } for _, value := range shape { - var col *types.ServerEvent - if err := awsAwsjson11_deserializeDocumentServerEvent(&col, value); err != nil { + var col types.ServerEvent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServerEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3447,7 +3455,7 @@ func awsAwsjson11_deserializeDocumentServerEvents(v *[]*types.ServerEvent, value return nil } -func awsAwsjson11_deserializeDocumentServers(v *[]*types.Server, value interface{}) error { +func awsAwsjson11_deserializeDocumentServers(v *[]types.Server, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3460,18 +3468,20 @@ func awsAwsjson11_deserializeDocumentServers(v *[]*types.Server, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Server + var cv []types.Server if *v == nil { - cv = []*types.Server{} + cv = []types.Server{} } else { cv = *v } for _, value := range shape { - var col *types.Server - if err := awsAwsjson11_deserializeDocumentServer(&col, value); err != nil { + var col types.Server + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3479,7 +3489,7 @@ func awsAwsjson11_deserializeDocumentServers(v *[]*types.Server, value interface return nil } -func awsAwsjson11_deserializeDocumentStrings(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStrings(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3492,21 +3502,21 @@ func awsAwsjson11_deserializeDocumentStrings(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -3543,7 +3553,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -3552,7 +3562,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -3564,7 +3574,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3577,18 +3587,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3624,7 +3636,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3664,7 +3676,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateNodeOutput(v **AssociateNodeOutp if !ok { return fmt.Errorf("expected NodeAssociationStatusToken to be of type string, got %T instead", value) } - sv.NodeAssociationStatusToken = &jtv + sv.NodeAssociationStatusToken = ptr.String(jtv) } default: @@ -3879,7 +3891,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBackupsOutput(v **DescribeBackups if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3919,7 +3931,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEventsOutput(v **DescribeEventsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ServerEvents": @@ -4009,7 +4021,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeServersOutput(v **DescribeServers if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Servers": @@ -4054,7 +4066,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateNodeOutput(v **DisassociateNo if !ok { return fmt.Errorf("expected NodeAssociationStatusToken to be of type string, got %T instead", value) } - sv.NodeAssociationStatusToken = &jtv + sv.NodeAssociationStatusToken = ptr.String(jtv) } default: @@ -4099,7 +4111,7 @@ func awsAwsjson11_deserializeOpDocumentExportServerEngineAttributeOutput(v **Exp if !ok { return fmt.Errorf("expected ServerName to be of type string, got %T instead", value) } - sv.ServerName = &jtv + sv.ServerName = ptr.String(jtv) } default: @@ -4139,7 +4151,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": diff --git a/service/opsworkscm/go.mod b/service/opsworkscm/go.mod index ade46174ffa..cd1e5ebe218 100644 --- a/service/opsworkscm/go.mod +++ b/service/opsworkscm/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/opsworkscm go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/opsworkscm/serializers.go b/service/opsworkscm/serializers.go index ea164cc44d7..c1190aed318 100644 --- a/service/opsworkscm/serializers.go +++ b/service/opsworkscm/serializers.go @@ -897,34 +897,26 @@ func awsAwsjson11_serializeDocumentEngineAttribute(v *types.EngineAttribute, val return nil } -func awsAwsjson11_serializeDocumentEngineAttributes(v []*types.EngineAttribute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEngineAttributes(v []types.EngineAttribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEngineAttribute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEngineAttribute(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentStrings(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStrings(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -946,32 +938,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/opsworkscm/types/types.go b/service/opsworkscm/types/types.go index fc245c0ab1f..e9ac57a3705 100644 --- a/service/opsworkscm/types/types.go +++ b/service/opsworkscm/types/types.go @@ -87,7 +87,7 @@ type Backup struct { // The security group IDs that are obtained from the server when the backup is // created. - SecurityGroupIds []*string + SecurityGroupIds []string // The name of the server from which the backup was made. ServerName *string @@ -103,7 +103,7 @@ type Backup struct { StatusDescription *string // The subnet IDs that are obtained from the server when the backup is created. - SubnetIds []*string + SubnetIds []string // The version of AWS OpsWorks CM-specific tools that is obtained from the server // when the backup is created. @@ -183,7 +183,7 @@ type Server struct { // // * PUPPET_ADMIN_PASSWORD: An administrator password that you can use // to sign in to the Puppet Enterprise console after the server is online. - EngineAttributes []*EngineAttribute + EngineAttributes []EngineAttribute // The engine model of the server. Valid values in this release include Monolithic // for Puppet and Single for Chef. @@ -214,7 +214,7 @@ type Server struct { // The security group IDs for the server, as specified in the CloudFormation stack. // These might not be the same security groups that are shown in the EC2 console. - SecurityGroupIds []*string + SecurityGroupIds []string // The ARN of the server. ServerArn *string @@ -236,7 +236,7 @@ type Server struct { StatusReason *string // The subnet IDs specified in a CreateServer request. - SubnetIds []*string + SubnetIds []string } // An event that is related to the server, such as the start of maintenance or diff --git a/service/opsworkscm/validators.go b/service/opsworkscm/validators.go index 2d7f08a7264..54496bf2c13 100644 --- a/service/opsworkscm/validators.go +++ b/service/opsworkscm/validators.go @@ -412,13 +412,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/organizations/api_op_CreateAccount.go b/service/organizations/api_op_CreateAccount.go index e031692c952..dc6a6279c2f 100644 --- a/service/organizations/api_op_CreateAccount.go +++ b/service/organizations/api_op_CreateAccount.go @@ -156,7 +156,7 @@ type CreateAccountInput struct { // in the AWS Organizations User Guide. If any one of the tags is invalid or if you // exceed the allowed number of tags for an account, then the entire request fails // and the account is not created. - Tags []*types.Tag + Tags []types.Tag } type CreateAccountOutput struct { diff --git a/service/organizations/api_op_CreateGovCloudAccount.go b/service/organizations/api_op_CreateGovCloudAccount.go index 7a460ddf25a..14110e0ebcc 100644 --- a/service/organizations/api_op_CreateGovCloudAccount.go +++ b/service/organizations/api_op_CreateGovCloudAccount.go @@ -203,7 +203,7 @@ type CreateGovCloudAccountInput struct { // in the AWS Organizations User Guide. If any one of the tags is invalid or if you // exceed the allowed number of tags for an account, then the entire request fails // and the account is not created. - Tags []*types.Tag + Tags []types.Tag } type CreateGovCloudAccountOutput struct { diff --git a/service/organizations/api_op_CreateOrganizationalUnit.go b/service/organizations/api_op_CreateOrganizationalUnit.go index 218b6d37dbc..2d6c2989923 100644 --- a/service/organizations/api_op_CreateOrganizationalUnit.go +++ b/service/organizations/api_op_CreateOrganizationalUnit.go @@ -67,7 +67,7 @@ type CreateOrganizationalUnitInput struct { // in the AWS Organizations User Guide. If any one of the tags is invalid or if you // exceed the allowed number of tags for an OU, then the entire request fails and // the OU is not created. - Tags []*types.Tag + Tags []types.Tag } type CreateOrganizationalUnitOutput struct { diff --git a/service/organizations/api_op_CreatePolicy.go b/service/organizations/api_op_CreatePolicy.go index 70d3c8d54c5..2e4a9e54bec 100644 --- a/service/organizations/api_op_CreatePolicy.go +++ b/service/organizations/api_op_CreatePolicy.go @@ -82,7 +82,7 @@ type CreatePolicyInput struct { // in the AWS Organizations User Guide. If any one of the tags is invalid or if you // exceed the allowed number of tags for a policy, then the entire request fails // and the policy is not created. - Tags []*types.Tag + Tags []types.Tag } type CreatePolicyOutput struct { diff --git a/service/organizations/api_op_InviteAccountToOrganization.go b/service/organizations/api_op_InviteAccountToOrganization.go index ae245c93bbf..8c72bc69238 100644 --- a/service/organizations/api_op_InviteAccountToOrganization.go +++ b/service/organizations/api_op_InviteAccountToOrganization.go @@ -82,7 +82,7 @@ type InviteAccountToOrganizationInput struct { // then that tags could potentially be non-compliant. If any one of the tags is // invalid or if you exceed the allowed number of tags for an account, then the // entire request fails and invitations are not sent. - Tags []*types.Tag + Tags []types.Tag } type InviteAccountToOrganizationOutput struct { diff --git a/service/organizations/api_op_ListAWSServiceAccessForOrganization.go b/service/organizations/api_op_ListAWSServiceAccessForOrganization.go index 93babe5beab..5e46b3f4f89 100644 --- a/service/organizations/api_op_ListAWSServiceAccessForOrganization.go +++ b/service/organizations/api_op_ListAWSServiceAccessForOrganization.go @@ -61,7 +61,7 @@ type ListAWSServiceAccessForOrganizationOutput struct { // A list of the service principals for the services that are enabled to integrate // with your organization. Each principal is a structure that includes the name and // the date that it was enabled for integration with AWS Organizations. - EnabledServicePrincipals []*types.EnabledServicePrincipal + EnabledServicePrincipals []types.EnabledServicePrincipal // If present, indicates that more output is available than is included in the // current response. Use this value in the NextToken request parameter in a diff --git a/service/organizations/api_op_ListAccounts.go b/service/organizations/api_op_ListAccounts.go index 6578cc903db..40061ee48ed 100644 --- a/service/organizations/api_op_ListAccounts.go +++ b/service/organizations/api_op_ListAccounts.go @@ -58,7 +58,7 @@ type ListAccountsInput struct { type ListAccountsOutput struct { // A list of objects in the organization. - Accounts []*types.Account + Accounts []types.Account // If present, indicates that more output is available than is included in the // current response. Use this value in the NextToken request parameter in a diff --git a/service/organizations/api_op_ListAccountsForParent.go b/service/organizations/api_op_ListAccountsForParent.go index b6270279b0d..291fab1bb56 100644 --- a/service/organizations/api_op_ListAccountsForParent.go +++ b/service/organizations/api_op_ListAccountsForParent.go @@ -66,7 +66,7 @@ type ListAccountsForParentInput struct { type ListAccountsForParentOutput struct { // A list of the accounts in the specified root or OU. - Accounts []*types.Account + Accounts []types.Account // If present, indicates that more output is available than is included in the // current response. Use this value in the NextToken request parameter in a diff --git a/service/organizations/api_op_ListChildren.go b/service/organizations/api_op_ListChildren.go index d437c00aabd..9728db8aa98 100644 --- a/service/organizations/api_op_ListChildren.go +++ b/service/organizations/api_op_ListChildren.go @@ -78,7 +78,7 @@ type ListChildrenInput struct { type ListChildrenOutput struct { // The list of children of the specified parent container. - Children []*types.Child + Children []types.Child // If present, indicates that more output is available than is included in the // current response. Use this value in the NextToken request parameter in a diff --git a/service/organizations/api_op_ListCreateAccountStatus.go b/service/organizations/api_op_ListCreateAccountStatus.go index 37e9206c3af..194bc5d4503 100644 --- a/service/organizations/api_op_ListCreateAccountStatus.go +++ b/service/organizations/api_op_ListCreateAccountStatus.go @@ -63,7 +63,7 @@ type ListCreateAccountStatusOutput struct { // A list of objects with details about the requests. Certain elements, such as the // accountId number, are present in the output only after the account has been // successfully created. - CreateAccountStatuses []*types.CreateAccountStatus + CreateAccountStatuses []types.CreateAccountStatus // If present, indicates that more output is available than is included in the // current response. Use this value in the NextToken request parameter in a diff --git a/service/organizations/api_op_ListDelegatedAdministrators.go b/service/organizations/api_op_ListDelegatedAdministrators.go index 9e446381145..1f039c6dfb9 100644 --- a/service/organizations/api_op_ListDelegatedAdministrators.go +++ b/service/organizations/api_op_ListDelegatedAdministrators.go @@ -59,7 +59,7 @@ type ListDelegatedAdministratorsInput struct { type ListDelegatedAdministratorsOutput struct { // The list of delegated administrators in your organization. - DelegatedAdministrators []*types.DelegatedAdministrator + DelegatedAdministrators []types.DelegatedAdministrator // If present, indicates that more output is available than is included in the // current response. Use this value in the NextToken request parameter in a diff --git a/service/organizations/api_op_ListDelegatedServicesForAccount.go b/service/organizations/api_op_ListDelegatedServicesForAccount.go index a2ab6aa85c7..bb9e520a6fd 100644 --- a/service/organizations/api_op_ListDelegatedServicesForAccount.go +++ b/service/organizations/api_op_ListDelegatedServicesForAccount.go @@ -58,7 +58,7 @@ type ListDelegatedServicesForAccountInput struct { type ListDelegatedServicesForAccountOutput struct { // The services for which the account is a delegated administrator. - DelegatedServices []*types.DelegatedService + DelegatedServices []types.DelegatedService // If present, indicates that more output is available than is included in the // current response. Use this value in the NextToken request parameter in a diff --git a/service/organizations/api_op_ListHandshakesForAccount.go b/service/organizations/api_op_ListHandshakesForAccount.go index a748acc9424..9568d2e78cb 100644 --- a/service/organizations/api_op_ListHandshakesForAccount.go +++ b/service/organizations/api_op_ListHandshakesForAccount.go @@ -67,7 +67,7 @@ type ListHandshakesForAccountOutput struct { // A list of Handshake objects with details about each of the handshakes that is // associated with the specified account. - Handshakes []*types.Handshake + Handshakes []types.Handshake // If present, indicates that more output is available than is included in the // current response. Use this value in the NextToken request parameter in a diff --git a/service/organizations/api_op_ListHandshakesForOrganization.go b/service/organizations/api_op_ListHandshakesForOrganization.go index e6db515dba9..bd955a6d4dd 100644 --- a/service/organizations/api_op_ListHandshakesForOrganization.go +++ b/service/organizations/api_op_ListHandshakesForOrganization.go @@ -70,7 +70,7 @@ type ListHandshakesForOrganizationOutput struct { // A list of Handshake objects with details about each of the handshakes that are // associated with an organization. - Handshakes []*types.Handshake + Handshakes []types.Handshake // If present, indicates that more output is available than is included in the // current response. Use this value in the NextToken request parameter in a diff --git a/service/organizations/api_op_ListOrganizationalUnitsForParent.go b/service/organizations/api_op_ListOrganizationalUnitsForParent.go index 443a03bf1c1..91090642d56 100644 --- a/service/organizations/api_op_ListOrganizationalUnitsForParent.go +++ b/service/organizations/api_op_ListOrganizationalUnitsForParent.go @@ -77,7 +77,7 @@ type ListOrganizationalUnitsForParentOutput struct { NextToken *string // A list of the OUs in the specified root or parent OU. - OrganizationalUnits []*types.OrganizationalUnit + OrganizationalUnits []types.OrganizationalUnit // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/organizations/api_op_ListParents.go b/service/organizations/api_op_ListParents.go index b097415352c..ef71b4293bb 100644 --- a/service/organizations/api_op_ListParents.go +++ b/service/organizations/api_op_ListParents.go @@ -81,7 +81,7 @@ type ListParentsOutput struct { NextToken *string // A list of parents for the specified child account or OU. - Parents []*types.Parent + Parents []types.Parent // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/organizations/api_op_ListPolicies.go b/service/organizations/api_op_ListPolicies.go index c3e11212e3e..985bd2e20aa 100644 --- a/service/organizations/api_op_ListPolicies.go +++ b/service/organizations/api_op_ListPolicies.go @@ -85,7 +85,7 @@ type ListPoliciesOutput struct { // A list of policies that match the filter criteria in the request. The output // list doesn't include the policy contents. To see the content for a policy, see // DescribePolicy. - Policies []*types.PolicySummary + Policies []types.PolicySummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/organizations/api_op_ListPoliciesForTarget.go b/service/organizations/api_op_ListPoliciesForTarget.go index 31a6ddeb5d1..00bb6c4248f 100644 --- a/service/organizations/api_op_ListPoliciesForTarget.go +++ b/service/organizations/api_op_ListPoliciesForTarget.go @@ -104,7 +104,7 @@ type ListPoliciesForTargetOutput struct { NextToken *string // The list of policies that match the criteria in the request. - Policies []*types.PolicySummary + Policies []types.PolicySummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/organizations/api_op_ListRoots.go b/service/organizations/api_op_ListRoots.go index 12ef8b5f36e..d87798cebab 100644 --- a/service/organizations/api_op_ListRoots.go +++ b/service/organizations/api_op_ListRoots.go @@ -67,7 +67,7 @@ type ListRootsOutput struct { NextToken *string // A list of roots that are defined in an organization. - Roots []*types.Root + Roots []types.Root // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/organizations/api_op_ListTagsForResource.go b/service/organizations/api_op_ListTagsForResource.go index d46d2a03580..6281f6a076c 100644 --- a/service/organizations/api_op_ListTagsForResource.go +++ b/service/organizations/api_op_ListTagsForResource.go @@ -77,7 +77,7 @@ type ListTagsForResourceOutput struct { NextToken *string // The tags that are assigned to the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/organizations/api_op_ListTargetsForPolicy.go b/service/organizations/api_op_ListTargetsForPolicy.go index 0be1a70108d..e284e19f4e8 100644 --- a/service/organizations/api_op_ListTargetsForPolicy.go +++ b/service/organizations/api_op_ListTargetsForPolicy.go @@ -72,7 +72,7 @@ type ListTargetsForPolicyOutput struct { // A list of structures, each of which contains details about one of the entities // to which the specified policy is attached. - Targets []*types.PolicyTargetSummary + Targets []types.PolicyTargetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/organizations/api_op_TagResource.go b/service/organizations/api_op_TagResource.go index a3899b0f971..a9e54ea8265 100644 --- a/service/organizations/api_op_TagResource.go +++ b/service/organizations/api_op_TagResource.go @@ -69,7 +69,7 @@ type TagResourceInput struct { // the account is not created. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/organizations/api_op_UntagResource.go b/service/organizations/api_op_UntagResource.go index 23f6692bac2..7ee9b45a3ca 100644 --- a/service/organizations/api_op_UntagResource.go +++ b/service/organizations/api_op_UntagResource.go @@ -62,7 +62,7 @@ type UntagResourceInput struct { // The list of keys for tags to remove from the specified resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/organizations/deserializers.go b/service/organizations/deserializers.go index 299fb6bb35f..c52e171b15c 100644 --- a/service/organizations/deserializers.go +++ b/service/organizations/deserializers.go @@ -8322,7 +8322,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8362,7 +8362,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedForDependencyException(v **type if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Reason": @@ -8411,7 +8411,7 @@ func awsAwsjson11_deserializeDocumentAccount(v **types.Account, value interface{ if !ok { return fmt.Errorf("expected AccountArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Email": @@ -8420,7 +8420,7 @@ func awsAwsjson11_deserializeDocumentAccount(v **types.Account, value interface{ if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "Id": @@ -8429,7 +8429,7 @@ func awsAwsjson11_deserializeDocumentAccount(v **types.Account, value interface{ if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "JoinedMethod": @@ -8460,7 +8460,7 @@ func awsAwsjson11_deserializeDocumentAccount(v **types.Account, value interface{ if !ok { return fmt.Errorf("expected AccountName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -8509,7 +8509,7 @@ func awsAwsjson11_deserializeDocumentAccountAlreadyRegisteredException(v **types if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8549,7 +8549,7 @@ func awsAwsjson11_deserializeDocumentAccountNotFoundException(v **types.AccountN if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8589,7 +8589,7 @@ func awsAwsjson11_deserializeDocumentAccountNotRegisteredException(v **types.Acc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8629,7 +8629,7 @@ func awsAwsjson11_deserializeDocumentAccountOwnerNotVerifiedException(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8641,7 +8641,7 @@ func awsAwsjson11_deserializeDocumentAccountOwnerNotVerifiedException(v **types. return nil } -func awsAwsjson11_deserializeDocumentAccounts(v *[]*types.Account, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccounts(v *[]types.Account, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8654,18 +8654,20 @@ func awsAwsjson11_deserializeDocumentAccounts(v *[]*types.Account, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Account + var cv []types.Account if *v == nil { - cv = []*types.Account{} + cv = []types.Account{} } else { cv = *v } for _, value := range shape { - var col *types.Account - if err := awsAwsjson11_deserializeDocumentAccount(&col, value); err != nil { + var col types.Account + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAccount(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8701,7 +8703,7 @@ func awsAwsjson11_deserializeDocumentAlreadyInOrganizationException(v **types.Al if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8741,7 +8743,7 @@ func awsAwsjson11_deserializeDocumentAWSOrganizationsNotInUseException(v **types if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8781,7 +8783,7 @@ func awsAwsjson11_deserializeDocumentChild(v **types.Child, value interface{}) e if !ok { return fmt.Errorf("expected ChildId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Type": @@ -8830,7 +8832,7 @@ func awsAwsjson11_deserializeDocumentChildNotFoundException(v **types.ChildNotFo if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8842,7 +8844,7 @@ func awsAwsjson11_deserializeDocumentChildNotFoundException(v **types.ChildNotFo return nil } -func awsAwsjson11_deserializeDocumentChildren(v *[]*types.Child, value interface{}) error { +func awsAwsjson11_deserializeDocumentChildren(v *[]types.Child, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8855,18 +8857,20 @@ func awsAwsjson11_deserializeDocumentChildren(v *[]*types.Child, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Child + var cv []types.Child if *v == nil { - cv = []*types.Child{} + cv = []types.Child{} } else { cv = *v } for _, value := range shape { - var col *types.Child - if err := awsAwsjson11_deserializeDocumentChild(&col, value); err != nil { + var col types.Child + destAddr := &col + if err := awsAwsjson11_deserializeDocumentChild(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8902,7 +8906,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8942,7 +8946,7 @@ func awsAwsjson11_deserializeDocumentConstraintViolationException(v **types.Cons if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Reason": @@ -8991,7 +8995,7 @@ func awsAwsjson11_deserializeDocumentCreateAccountStatus(v **types.CreateAccount if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "AccountName": @@ -9000,7 +9004,7 @@ func awsAwsjson11_deserializeDocumentCreateAccountStatus(v **types.CreateAccount if !ok { return fmt.Errorf("expected AccountName to be of type string, got %T instead", value) } - sv.AccountName = &jtv + sv.AccountName = ptr.String(jtv) } case "CompletedTimestamp": @@ -9031,7 +9035,7 @@ func awsAwsjson11_deserializeDocumentCreateAccountStatus(v **types.CreateAccount if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.GovCloudAccountId = &jtv + sv.GovCloudAccountId = ptr.String(jtv) } case "Id": @@ -9040,7 +9044,7 @@ func awsAwsjson11_deserializeDocumentCreateAccountStatus(v **types.CreateAccount if !ok { return fmt.Errorf("expected CreateAccountRequestId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "RequestedTimestamp": @@ -9074,7 +9078,7 @@ func awsAwsjson11_deserializeDocumentCreateAccountStatus(v **types.CreateAccount return nil } -func awsAwsjson11_deserializeDocumentCreateAccountStatuses(v *[]*types.CreateAccountStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentCreateAccountStatuses(v *[]types.CreateAccountStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9087,18 +9091,20 @@ func awsAwsjson11_deserializeDocumentCreateAccountStatuses(v *[]*types.CreateAcc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CreateAccountStatus + var cv []types.CreateAccountStatus if *v == nil { - cv = []*types.CreateAccountStatus{} + cv = []types.CreateAccountStatus{} } else { cv = *v } for _, value := range shape { - var col *types.CreateAccountStatus - if err := awsAwsjson11_deserializeDocumentCreateAccountStatus(&col, value); err != nil { + var col types.CreateAccountStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCreateAccountStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9134,7 +9140,7 @@ func awsAwsjson11_deserializeDocumentCreateAccountStatusNotFoundException(v **ty if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9174,7 +9180,7 @@ func awsAwsjson11_deserializeDocumentDelegatedAdministrator(v **types.DelegatedA if !ok { return fmt.Errorf("expected AccountArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "DelegationEnabledDate": @@ -9196,7 +9202,7 @@ func awsAwsjson11_deserializeDocumentDelegatedAdministrator(v **types.DelegatedA if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "Id": @@ -9205,7 +9211,7 @@ func awsAwsjson11_deserializeDocumentDelegatedAdministrator(v **types.DelegatedA if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "JoinedMethod": @@ -9236,7 +9242,7 @@ func awsAwsjson11_deserializeDocumentDelegatedAdministrator(v **types.DelegatedA if !ok { return fmt.Errorf("expected AccountName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -9257,7 +9263,7 @@ func awsAwsjson11_deserializeDocumentDelegatedAdministrator(v **types.DelegatedA return nil } -func awsAwsjson11_deserializeDocumentDelegatedAdministrators(v *[]*types.DelegatedAdministrator, value interface{}) error { +func awsAwsjson11_deserializeDocumentDelegatedAdministrators(v *[]types.DelegatedAdministrator, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9270,18 +9276,20 @@ func awsAwsjson11_deserializeDocumentDelegatedAdministrators(v *[]*types.Delegat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DelegatedAdministrator + var cv []types.DelegatedAdministrator if *v == nil { - cv = []*types.DelegatedAdministrator{} + cv = []types.DelegatedAdministrator{} } else { cv = *v } for _, value := range shape { - var col *types.DelegatedAdministrator - if err := awsAwsjson11_deserializeDocumentDelegatedAdministrator(&col, value); err != nil { + var col types.DelegatedAdministrator + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDelegatedAdministrator(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9330,7 +9338,7 @@ func awsAwsjson11_deserializeDocumentDelegatedService(v **types.DelegatedService if !ok { return fmt.Errorf("expected ServicePrincipal to be of type string, got %T instead", value) } - sv.ServicePrincipal = &jtv + sv.ServicePrincipal = ptr.String(jtv) } default: @@ -9342,7 +9350,7 @@ func awsAwsjson11_deserializeDocumentDelegatedService(v **types.DelegatedService return nil } -func awsAwsjson11_deserializeDocumentDelegatedServices(v *[]*types.DelegatedService, value interface{}) error { +func awsAwsjson11_deserializeDocumentDelegatedServices(v *[]types.DelegatedService, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9355,18 +9363,20 @@ func awsAwsjson11_deserializeDocumentDelegatedServices(v *[]*types.DelegatedServ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DelegatedService + var cv []types.DelegatedService if *v == nil { - cv = []*types.DelegatedService{} + cv = []types.DelegatedService{} } else { cv = *v } for _, value := range shape { - var col *types.DelegatedService - if err := awsAwsjson11_deserializeDocumentDelegatedService(&col, value); err != nil { + var col types.DelegatedService + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDelegatedService(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9402,7 +9412,7 @@ func awsAwsjson11_deserializeDocumentDestinationParentNotFoundException(v **type if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9442,7 +9452,7 @@ func awsAwsjson11_deserializeDocumentDuplicateAccountException(v **types.Duplica if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9482,7 +9492,7 @@ func awsAwsjson11_deserializeDocumentDuplicateHandshakeException(v **types.Dupli if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9522,7 +9532,7 @@ func awsAwsjson11_deserializeDocumentDuplicateOrganizationalUnitException(v **ty if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9562,7 +9572,7 @@ func awsAwsjson11_deserializeDocumentDuplicatePolicyAttachmentException(v **type if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9602,7 +9612,7 @@ func awsAwsjson11_deserializeDocumentDuplicatePolicyException(v **types.Duplicat if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9655,7 +9665,7 @@ func awsAwsjson11_deserializeDocumentEffectivePolicy(v **types.EffectivePolicy, if !ok { return fmt.Errorf("expected PolicyContent to be of type string, got %T instead", value) } - sv.PolicyContent = &jtv + sv.PolicyContent = ptr.String(jtv) } case "PolicyType": @@ -9673,7 +9683,7 @@ func awsAwsjson11_deserializeDocumentEffectivePolicy(v **types.EffectivePolicy, if !ok { return fmt.Errorf("expected PolicyTargetId to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } default: @@ -9713,7 +9723,7 @@ func awsAwsjson11_deserializeDocumentEffectivePolicyNotFoundException(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9766,7 +9776,7 @@ func awsAwsjson11_deserializeDocumentEnabledServicePrincipal(v **types.EnabledSe if !ok { return fmt.Errorf("expected ServicePrincipal to be of type string, got %T instead", value) } - sv.ServicePrincipal = &jtv + sv.ServicePrincipal = ptr.String(jtv) } default: @@ -9778,7 +9788,7 @@ func awsAwsjson11_deserializeDocumentEnabledServicePrincipal(v **types.EnabledSe return nil } -func awsAwsjson11_deserializeDocumentEnabledServicePrincipals(v *[]*types.EnabledServicePrincipal, value interface{}) error { +func awsAwsjson11_deserializeDocumentEnabledServicePrincipals(v *[]types.EnabledServicePrincipal, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9791,18 +9801,20 @@ func awsAwsjson11_deserializeDocumentEnabledServicePrincipals(v *[]*types.Enable return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EnabledServicePrincipal + var cv []types.EnabledServicePrincipal if *v == nil { - cv = []*types.EnabledServicePrincipal{} + cv = []types.EnabledServicePrincipal{} } else { cv = *v } for _, value := range shape { - var col *types.EnabledServicePrincipal - if err := awsAwsjson11_deserializeDocumentEnabledServicePrincipal(&col, value); err != nil { + var col types.EnabledServicePrincipal + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEnabledServicePrincipal(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9838,7 +9850,7 @@ func awsAwsjson11_deserializeDocumentFinalizingOrganizationException(v **types.F if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9887,7 +9899,7 @@ func awsAwsjson11_deserializeDocumentHandshake(v **types.Handshake, value interf if !ok { return fmt.Errorf("expected HandshakeArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "ExpirationTimestamp": @@ -9909,7 +9921,7 @@ func awsAwsjson11_deserializeDocumentHandshake(v **types.Handshake, value interf if !ok { return fmt.Errorf("expected HandshakeId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Parties": @@ -9981,7 +9993,7 @@ func awsAwsjson11_deserializeDocumentHandshakeAlreadyInStateException(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10021,7 +10033,7 @@ func awsAwsjson11_deserializeDocumentHandshakeConstraintViolationException(v **t if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Reason": @@ -10070,7 +10082,7 @@ func awsAwsjson11_deserializeDocumentHandshakeNotFoundException(v **types.Handsh if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10082,7 +10094,7 @@ func awsAwsjson11_deserializeDocumentHandshakeNotFoundException(v **types.Handsh return nil } -func awsAwsjson11_deserializeDocumentHandshakeParties(v *[]*types.HandshakeParty, value interface{}) error { +func awsAwsjson11_deserializeDocumentHandshakeParties(v *[]types.HandshakeParty, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10095,18 +10107,20 @@ func awsAwsjson11_deserializeDocumentHandshakeParties(v *[]*types.HandshakeParty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HandshakeParty + var cv []types.HandshakeParty if *v == nil { - cv = []*types.HandshakeParty{} + cv = []types.HandshakeParty{} } else { cv = *v } for _, value := range shape { - var col *types.HandshakeParty - if err := awsAwsjson11_deserializeDocumentHandshakeParty(&col, value); err != nil { + var col types.HandshakeParty + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHandshakeParty(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10142,7 +10156,7 @@ func awsAwsjson11_deserializeDocumentHandshakeParty(v **types.HandshakeParty, va if !ok { return fmt.Errorf("expected HandshakePartyId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Type": @@ -10205,7 +10219,7 @@ func awsAwsjson11_deserializeDocumentHandshakeResource(v **types.HandshakeResour if !ok { return fmt.Errorf("expected HandshakeResourceValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -10217,7 +10231,7 @@ func awsAwsjson11_deserializeDocumentHandshakeResource(v **types.HandshakeResour return nil } -func awsAwsjson11_deserializeDocumentHandshakeResources(v *[]*types.HandshakeResource, value interface{}) error { +func awsAwsjson11_deserializeDocumentHandshakeResources(v *[]types.HandshakeResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10230,18 +10244,20 @@ func awsAwsjson11_deserializeDocumentHandshakeResources(v *[]*types.HandshakeRes return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HandshakeResource + var cv []types.HandshakeResource if *v == nil { - cv = []*types.HandshakeResource{} + cv = []types.HandshakeResource{} } else { cv = *v } for _, value := range shape { - var col *types.HandshakeResource - if err := awsAwsjson11_deserializeDocumentHandshakeResource(&col, value); err != nil { + var col types.HandshakeResource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHandshakeResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10249,7 +10265,7 @@ func awsAwsjson11_deserializeDocumentHandshakeResources(v *[]*types.HandshakeRes return nil } -func awsAwsjson11_deserializeDocumentHandshakes(v *[]*types.Handshake, value interface{}) error { +func awsAwsjson11_deserializeDocumentHandshakes(v *[]types.Handshake, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10262,18 +10278,20 @@ func awsAwsjson11_deserializeDocumentHandshakes(v *[]*types.Handshake, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Handshake + var cv []types.Handshake if *v == nil { - cv = []*types.Handshake{} + cv = []types.Handshake{} } else { cv = *v } for _, value := range shape { - var col *types.Handshake - if err := awsAwsjson11_deserializeDocumentHandshake(&col, value); err != nil { + var col types.Handshake + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHandshake(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10309,7 +10327,7 @@ func awsAwsjson11_deserializeDocumentInvalidHandshakeTransitionException(v **typ if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10349,7 +10367,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Reason": @@ -10398,7 +10416,7 @@ func awsAwsjson11_deserializeDocumentMalformedPolicyDocumentException(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10438,7 +10456,7 @@ func awsAwsjson11_deserializeDocumentMasterCannotLeaveOrganizationException(v ** if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10478,7 +10496,7 @@ func awsAwsjson11_deserializeDocumentOrganization(v **types.Organization, value if !ok { return fmt.Errorf("expected OrganizationArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AvailablePolicyTypes": @@ -10501,7 +10519,7 @@ func awsAwsjson11_deserializeDocumentOrganization(v **types.Organization, value if !ok { return fmt.Errorf("expected OrganizationId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "MasterAccountArn": @@ -10510,7 +10528,7 @@ func awsAwsjson11_deserializeDocumentOrganization(v **types.Organization, value if !ok { return fmt.Errorf("expected AccountArn to be of type string, got %T instead", value) } - sv.MasterAccountArn = &jtv + sv.MasterAccountArn = ptr.String(jtv) } case "MasterAccountEmail": @@ -10519,7 +10537,7 @@ func awsAwsjson11_deserializeDocumentOrganization(v **types.Organization, value if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.MasterAccountEmail = &jtv + sv.MasterAccountEmail = ptr.String(jtv) } case "MasterAccountId": @@ -10528,7 +10546,7 @@ func awsAwsjson11_deserializeDocumentOrganization(v **types.Organization, value if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.MasterAccountId = &jtv + sv.MasterAccountId = ptr.String(jtv) } default: @@ -10568,7 +10586,7 @@ func awsAwsjson11_deserializeDocumentOrganizationalUnit(v **types.Organizational if !ok { return fmt.Errorf("expected OrganizationalUnitArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -10577,7 +10595,7 @@ func awsAwsjson11_deserializeDocumentOrganizationalUnit(v **types.Organizational if !ok { return fmt.Errorf("expected OrganizationalUnitId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -10586,7 +10604,7 @@ func awsAwsjson11_deserializeDocumentOrganizationalUnit(v **types.Organizational if !ok { return fmt.Errorf("expected OrganizationalUnitName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10626,7 +10644,7 @@ func awsAwsjson11_deserializeDocumentOrganizationalUnitNotEmptyException(v **typ if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10666,7 +10684,7 @@ func awsAwsjson11_deserializeDocumentOrganizationalUnitNotFoundException(v **typ if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10678,7 +10696,7 @@ func awsAwsjson11_deserializeDocumentOrganizationalUnitNotFoundException(v **typ return nil } -func awsAwsjson11_deserializeDocumentOrganizationalUnits(v *[]*types.OrganizationalUnit, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrganizationalUnits(v *[]types.OrganizationalUnit, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10691,18 +10709,20 @@ func awsAwsjson11_deserializeDocumentOrganizationalUnits(v *[]*types.Organizatio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrganizationalUnit + var cv []types.OrganizationalUnit if *v == nil { - cv = []*types.OrganizationalUnit{} + cv = []types.OrganizationalUnit{} } else { cv = *v } for _, value := range shape { - var col *types.OrganizationalUnit - if err := awsAwsjson11_deserializeDocumentOrganizationalUnit(&col, value); err != nil { + var col types.OrganizationalUnit + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrganizationalUnit(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10738,7 +10758,7 @@ func awsAwsjson11_deserializeDocumentOrganizationNotEmptyException(v **types.Org if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10778,7 +10798,7 @@ func awsAwsjson11_deserializeDocumentParent(v **types.Parent, value interface{}) if !ok { return fmt.Errorf("expected ParentId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Type": @@ -10827,7 +10847,7 @@ func awsAwsjson11_deserializeDocumentParentNotFoundException(v **types.ParentNot if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10839,7 +10859,7 @@ func awsAwsjson11_deserializeDocumentParentNotFoundException(v **types.ParentNot return nil } -func awsAwsjson11_deserializeDocumentParents(v *[]*types.Parent, value interface{}) error { +func awsAwsjson11_deserializeDocumentParents(v *[]types.Parent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10852,18 +10872,20 @@ func awsAwsjson11_deserializeDocumentParents(v *[]*types.Parent, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Parent + var cv []types.Parent if *v == nil { - cv = []*types.Parent{} + cv = []types.Parent{} } else { cv = *v } for _, value := range shape { - var col *types.Parent - if err := awsAwsjson11_deserializeDocumentParent(&col, value); err != nil { + var col types.Parent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10871,7 +10893,7 @@ func awsAwsjson11_deserializeDocumentParents(v *[]*types.Parent, value interface return nil } -func awsAwsjson11_deserializeDocumentPolicies(v *[]*types.PolicySummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentPolicies(v *[]types.PolicySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10884,18 +10906,20 @@ func awsAwsjson11_deserializeDocumentPolicies(v *[]*types.PolicySummary, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PolicySummary + var cv []types.PolicySummary if *v == nil { - cv = []*types.PolicySummary{} + cv = []types.PolicySummary{} } else { cv = *v } for _, value := range shape { - var col *types.PolicySummary - if err := awsAwsjson11_deserializeDocumentPolicySummary(&col, value); err != nil { + var col types.PolicySummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPolicySummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10931,7 +10955,7 @@ func awsAwsjson11_deserializeDocumentPolicy(v **types.Policy, value interface{}) if !ok { return fmt.Errorf("expected PolicyContent to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "PolicySummary": @@ -10976,7 +11000,7 @@ func awsAwsjson11_deserializeDocumentPolicyChangesInProgressException(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11016,7 +11040,7 @@ func awsAwsjson11_deserializeDocumentPolicyInUseException(v **types.PolicyInUseE if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11056,7 +11080,7 @@ func awsAwsjson11_deserializeDocumentPolicyNotAttachedException(v **types.Policy if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11096,7 +11120,7 @@ func awsAwsjson11_deserializeDocumentPolicyNotFoundException(v **types.PolicyNot if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11136,7 +11160,7 @@ func awsAwsjson11_deserializeDocumentPolicySummary(v **types.PolicySummary, valu if !ok { return fmt.Errorf("expected PolicyArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AwsManaged": @@ -11145,7 +11169,7 @@ func awsAwsjson11_deserializeDocumentPolicySummary(v **types.PolicySummary, valu if !ok { return fmt.Errorf("expected AwsManagedPolicy to be of type *bool, got %T instead", value) } - sv.AwsManaged = &jtv + sv.AwsManaged = jtv } case "Description": @@ -11154,7 +11178,7 @@ func awsAwsjson11_deserializeDocumentPolicySummary(v **types.PolicySummary, valu if !ok { return fmt.Errorf("expected PolicyDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -11163,7 +11187,7 @@ func awsAwsjson11_deserializeDocumentPolicySummary(v **types.PolicySummary, valu if !ok { return fmt.Errorf("expected PolicyId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -11172,7 +11196,7 @@ func awsAwsjson11_deserializeDocumentPolicySummary(v **types.PolicySummary, valu if !ok { return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Type": @@ -11193,7 +11217,7 @@ func awsAwsjson11_deserializeDocumentPolicySummary(v **types.PolicySummary, valu return nil } -func awsAwsjson11_deserializeDocumentPolicyTargets(v *[]*types.PolicyTargetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentPolicyTargets(v *[]types.PolicyTargetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11206,18 +11230,20 @@ func awsAwsjson11_deserializeDocumentPolicyTargets(v *[]*types.PolicyTargetSumma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PolicyTargetSummary + var cv []types.PolicyTargetSummary if *v == nil { - cv = []*types.PolicyTargetSummary{} + cv = []types.PolicyTargetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.PolicyTargetSummary - if err := awsAwsjson11_deserializeDocumentPolicyTargetSummary(&col, value); err != nil { + var col types.PolicyTargetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPolicyTargetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11253,7 +11279,7 @@ func awsAwsjson11_deserializeDocumentPolicyTargetSummary(v **types.PolicyTargetS if !ok { return fmt.Errorf("expected GenericArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Name": @@ -11262,7 +11288,7 @@ func awsAwsjson11_deserializeDocumentPolicyTargetSummary(v **types.PolicyTargetS if !ok { return fmt.Errorf("expected TargetName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "TargetId": @@ -11271,7 +11297,7 @@ func awsAwsjson11_deserializeDocumentPolicyTargetSummary(v **types.PolicyTargetS if !ok { return fmt.Errorf("expected PolicyTargetId to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } case "Type": @@ -11320,7 +11346,7 @@ func awsAwsjson11_deserializeDocumentPolicyTypeAlreadyEnabledException(v **types if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11360,7 +11386,7 @@ func awsAwsjson11_deserializeDocumentPolicyTypeNotAvailableForOrganizationExcept if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11400,7 +11426,7 @@ func awsAwsjson11_deserializeDocumentPolicyTypeNotEnabledException(v **types.Pol if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11412,7 +11438,7 @@ func awsAwsjson11_deserializeDocumentPolicyTypeNotEnabledException(v **types.Pol return nil } -func awsAwsjson11_deserializeDocumentPolicyTypes(v *[]*types.PolicyTypeSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentPolicyTypes(v *[]types.PolicyTypeSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11425,18 +11451,20 @@ func awsAwsjson11_deserializeDocumentPolicyTypes(v *[]*types.PolicyTypeSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PolicyTypeSummary + var cv []types.PolicyTypeSummary if *v == nil { - cv = []*types.PolicyTypeSummary{} + cv = []types.PolicyTypeSummary{} } else { cv = *v } for _, value := range shape { - var col *types.PolicyTypeSummary - if err := awsAwsjson11_deserializeDocumentPolicyTypeSummary(&col, value); err != nil { + var col types.PolicyTypeSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPolicyTypeSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11521,7 +11549,7 @@ func awsAwsjson11_deserializeDocumentRoot(v **types.Root, value interface{}) err if !ok { return fmt.Errorf("expected RootArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -11530,7 +11558,7 @@ func awsAwsjson11_deserializeDocumentRoot(v **types.Root, value interface{}) err if !ok { return fmt.Errorf("expected RootId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -11539,7 +11567,7 @@ func awsAwsjson11_deserializeDocumentRoot(v **types.Root, value interface{}) err if !ok { return fmt.Errorf("expected RootName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PolicyTypes": @@ -11584,7 +11612,7 @@ func awsAwsjson11_deserializeDocumentRootNotFoundException(v **types.RootNotFoun if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11596,7 +11624,7 @@ func awsAwsjson11_deserializeDocumentRootNotFoundException(v **types.RootNotFoun return nil } -func awsAwsjson11_deserializeDocumentRoots(v *[]*types.Root, value interface{}) error { +func awsAwsjson11_deserializeDocumentRoots(v *[]types.Root, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11609,18 +11637,20 @@ func awsAwsjson11_deserializeDocumentRoots(v *[]*types.Root, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Root + var cv []types.Root if *v == nil { - cv = []*types.Root{} + cv = []types.Root{} } else { cv = *v } for _, value := range shape { - var col *types.Root - if err := awsAwsjson11_deserializeDocumentRoot(&col, value); err != nil { + var col types.Root + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRoot(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11656,7 +11686,7 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11696,7 +11726,7 @@ func awsAwsjson11_deserializeDocumentSourceParentNotFoundException(v **types.Sou if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11736,7 +11766,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -11745,7 +11775,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -11757,7 +11787,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11770,18 +11800,20 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11817,7 +11849,7 @@ func awsAwsjson11_deserializeDocumentTargetNotFoundException(v **types.TargetNot if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11857,7 +11889,7 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -11866,7 +11898,7 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected ExceptionType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -11906,7 +11938,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedAPIEndpointException(v **types.U if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12914,7 +12946,7 @@ func awsAwsjson11_deserializeOpDocumentListAccountsForParentOutput(v **ListAccou if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -12959,7 +12991,7 @@ func awsAwsjson11_deserializeOpDocumentListAccountsOutput(v **ListAccountsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13004,7 +13036,7 @@ func awsAwsjson11_deserializeOpDocumentListAWSServiceAccessForOrganizationOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13049,7 +13081,7 @@ func awsAwsjson11_deserializeOpDocumentListChildrenOutput(v **ListChildrenOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13094,7 +13126,7 @@ func awsAwsjson11_deserializeOpDocumentListCreateAccountStatusOutput(v **ListCre if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13139,7 +13171,7 @@ func awsAwsjson11_deserializeOpDocumentListDelegatedAdministratorsOutput(v **Lis if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13184,7 +13216,7 @@ func awsAwsjson11_deserializeOpDocumentListDelegatedServicesForAccountOutput(v * if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13229,7 +13261,7 @@ func awsAwsjson11_deserializeOpDocumentListHandshakesForAccountOutput(v **ListHa if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13274,7 +13306,7 @@ func awsAwsjson11_deserializeOpDocumentListHandshakesForOrganizationOutput(v **L if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -13314,7 +13346,7 @@ func awsAwsjson11_deserializeOpDocumentListOrganizationalUnitsForParentOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "OrganizationalUnits": @@ -13359,7 +13391,7 @@ func awsAwsjson11_deserializeOpDocumentListParentsOutput(v **ListParentsOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Parents": @@ -13404,7 +13436,7 @@ func awsAwsjson11_deserializeOpDocumentListPoliciesForTargetOutput(v **ListPolic if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Policies": @@ -13449,7 +13481,7 @@ func awsAwsjson11_deserializeOpDocumentListPoliciesOutput(v **ListPoliciesOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Policies": @@ -13494,7 +13526,7 @@ func awsAwsjson11_deserializeOpDocumentListRootsOutput(v **ListRootsOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Roots": @@ -13539,7 +13571,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -13584,7 +13616,7 @@ func awsAwsjson11_deserializeOpDocumentListTargetsForPolicyOutput(v **ListTarget if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Targets": diff --git a/service/organizations/go.mod b/service/organizations/go.mod index b599200aae6..578f3e2a15d 100644 --- a/service/organizations/go.mod +++ b/service/organizations/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/organizations go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/organizations/serializers.go b/service/organizations/serializers.go index 7520d8a760e..17b93ce4ef3 100644 --- a/service/organizations/serializers.go +++ b/service/organizations/serializers.go @@ -2393,32 +2393,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/organizations/types/types.go b/service/organizations/types/types.go index 9d5fac2c947..06dfe895efa 100644 --- a/service/organizations/types/types.go +++ b/service/organizations/types/types.go @@ -249,13 +249,13 @@ type Handshake struct { Id *string // Information about the two accounts that are participating in the handshake. - Parties []*HandshakeParty + Parties []HandshakeParty // The date and time that the handshake request was made. RequestedTimestamp *time.Time // Additional information that is needed to process the handshake. - Resources []*HandshakeResource + Resources []HandshakeResource // The current state of the handshake. Use the state to trace the flow of the // handshake through the process from its creation to its acceptance. The meaning @@ -320,7 +320,7 @@ type HandshakeParty struct { type HandshakeResource struct { // When needed, contains an additional array of HandshakeResource objects. - Resources []*HandshakeResource + Resources []HandshakeResource // The type of information being passed, specifying how the value is to be // interpreted by the other party: @@ -366,7 +366,7 @@ type Organization struct { // about the policies in your organization. To determine the policies that are // enabled and available for use in your organization, use the ListRoots operation // instead. - AvailablePolicyTypes []*PolicyTypeSummary + AvailablePolicyTypes []PolicyTypeSummary // Specifies the functionality that currently is available to the organization. If // set to "ALL", then all features are enabled and policies can be applied to @@ -469,7 +469,7 @@ type PolicySummary struct { // A boolean value that indicates whether the specified policy is an AWS managed // policy. If true, then you can attach the policy to roots, OUs, or accounts, but // you cannot edit it. - AwsManaged *bool + AwsManaged bool // The description of the policy. Description *string @@ -562,7 +562,7 @@ type Root struct { // them at the root level by using EnablePolicyType and DisablePolicyType. Use // DescribeOrganization to see the availability of the policy types in that // organization. - PolicyTypes []*PolicyTypeSummary + PolicyTypes []PolicyTypeSummary } // A custom key-value pair associated with a resource within your organization. You diff --git a/service/organizations/validators.go b/service/organizations/validators.go index dd97662d7b0..ef147aa6b9e 100644 --- a/service/organizations/validators.go +++ b/service/organizations/validators.go @@ -982,13 +982,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/outposts/api_op_GetOutpostInstanceTypes.go b/service/outposts/api_op_GetOutpostInstanceTypes.go index bc173ef9ff2..f1fa07da445 100644 --- a/service/outposts/api_op_GetOutpostInstanceTypes.go +++ b/service/outposts/api_op_GetOutpostInstanceTypes.go @@ -44,7 +44,7 @@ type GetOutpostInstanceTypesInput struct { type GetOutpostInstanceTypesOutput struct { // Information about the instance types. - InstanceTypes []*types.InstanceTypeItem + InstanceTypes []types.InstanceTypeItem // The pagination token. NextToken *string diff --git a/service/outposts/api_op_ListOutposts.go b/service/outposts/api_op_ListOutposts.go index 7e1b618386c..f8eb3216eaa 100644 --- a/service/outposts/api_op_ListOutposts.go +++ b/service/outposts/api_op_ListOutposts.go @@ -42,7 +42,7 @@ type ListOutpostsOutput struct { NextToken *string // Information about the Outposts. - Outposts []*types.Outpost + Outposts []types.Outpost // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/outposts/api_op_ListSites.go b/service/outposts/api_op_ListSites.go index 34214783de2..9b0e2d335c0 100644 --- a/service/outposts/api_op_ListSites.go +++ b/service/outposts/api_op_ListSites.go @@ -42,7 +42,7 @@ type ListSitesOutput struct { NextToken *string // Information about the sites. - Sites []*types.Site + Sites []types.Site // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/outposts/deserializers.go b/service/outposts/deserializers.go index 385efa6df0d..7232d778da9 100644 --- a/service/outposts/deserializers.go +++ b/service/outposts/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -669,7 +670,7 @@ func awsRestjson1_deserializeOpDocumentGetOutpostInstanceTypesOutput(v **GetOutp if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "OutpostArn": @@ -678,7 +679,7 @@ func awsRestjson1_deserializeOpDocumentGetOutpostInstanceTypesOutput(v **GetOutp if !ok { return fmt.Errorf("expected OutpostArn to be of type string, got %T instead", value) } - sv.OutpostArn = &jtv + sv.OutpostArn = ptr.String(jtv) } case "OutpostId": @@ -687,7 +688,7 @@ func awsRestjson1_deserializeOpDocumentGetOutpostInstanceTypesOutput(v **GetOutp if !ok { return fmt.Errorf("expected OutpostId to be of type string, got %T instead", value) } - sv.OutpostId = &jtv + sv.OutpostId = ptr.String(jtv) } default: @@ -844,7 +845,7 @@ func awsRestjson1_deserializeOpDocumentListOutpostsOutput(v **ListOutpostsOutput if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Outposts": @@ -1006,7 +1007,7 @@ func awsRestjson1_deserializeOpDocumentListSitesOutput(v **ListSitesOutput, valu if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Sites": @@ -1231,7 +1232,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1271,7 +1272,7 @@ func awsRestjson1_deserializeDocumentInstanceTypeItem(v **types.InstanceTypeItem if !ok { return fmt.Errorf("expected InstanceType to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } default: @@ -1283,7 +1284,7 @@ func awsRestjson1_deserializeDocumentInstanceTypeItem(v **types.InstanceTypeItem return nil } -func awsRestjson1_deserializeDocumentInstanceTypeListDefinition(v *[]*types.InstanceTypeItem, value interface{}) error { +func awsRestjson1_deserializeDocumentInstanceTypeListDefinition(v *[]types.InstanceTypeItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1296,18 +1297,20 @@ func awsRestjson1_deserializeDocumentInstanceTypeListDefinition(v *[]*types.Inst return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceTypeItem + var cv []types.InstanceTypeItem if *v == nil { - cv = []*types.InstanceTypeItem{} + cv = []types.InstanceTypeItem{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceTypeItem - if err := awsRestjson1_deserializeDocumentInstanceTypeItem(&col, value); err != nil { + var col types.InstanceTypeItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentInstanceTypeItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1343,7 +1346,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1383,7 +1386,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1423,7 +1426,7 @@ func awsRestjson1_deserializeDocumentOutpost(v **types.Outpost, value interface{ if !ok { return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "AvailabilityZoneId": @@ -1432,7 +1435,7 @@ func awsRestjson1_deserializeDocumentOutpost(v **types.Outpost, value interface{ if !ok { return fmt.Errorf("expected AvailabilityZoneId to be of type string, got %T instead", value) } - sv.AvailabilityZoneId = &jtv + sv.AvailabilityZoneId = ptr.String(jtv) } case "Description": @@ -1441,7 +1444,7 @@ func awsRestjson1_deserializeDocumentOutpost(v **types.Outpost, value interface{ if !ok { return fmt.Errorf("expected OutpostDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LifeCycleStatus": @@ -1450,7 +1453,7 @@ func awsRestjson1_deserializeDocumentOutpost(v **types.Outpost, value interface{ if !ok { return fmt.Errorf("expected LifeCycleStatus to be of type string, got %T instead", value) } - sv.LifeCycleStatus = &jtv + sv.LifeCycleStatus = ptr.String(jtv) } case "Name": @@ -1459,7 +1462,7 @@ func awsRestjson1_deserializeDocumentOutpost(v **types.Outpost, value interface{ if !ok { return fmt.Errorf("expected OutpostName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OutpostArn": @@ -1468,7 +1471,7 @@ func awsRestjson1_deserializeDocumentOutpost(v **types.Outpost, value interface{ if !ok { return fmt.Errorf("expected OutpostArn to be of type string, got %T instead", value) } - sv.OutpostArn = &jtv + sv.OutpostArn = ptr.String(jtv) } case "OutpostId": @@ -1477,7 +1480,7 @@ func awsRestjson1_deserializeDocumentOutpost(v **types.Outpost, value interface{ if !ok { return fmt.Errorf("expected OutpostId to be of type string, got %T instead", value) } - sv.OutpostId = &jtv + sv.OutpostId = ptr.String(jtv) } case "OwnerId": @@ -1486,7 +1489,7 @@ func awsRestjson1_deserializeDocumentOutpost(v **types.Outpost, value interface{ if !ok { return fmt.Errorf("expected OwnerId to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "SiteId": @@ -1495,7 +1498,7 @@ func awsRestjson1_deserializeDocumentOutpost(v **types.Outpost, value interface{ if !ok { return fmt.Errorf("expected SiteId to be of type string, got %T instead", value) } - sv.SiteId = &jtv + sv.SiteId = ptr.String(jtv) } default: @@ -1507,7 +1510,7 @@ func awsRestjson1_deserializeDocumentOutpost(v **types.Outpost, value interface{ return nil } -func awsRestjson1_deserializeDocumentOutpostListDefinition(v *[]*types.Outpost, value interface{}) error { +func awsRestjson1_deserializeDocumentOutpostListDefinition(v *[]types.Outpost, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1520,18 +1523,20 @@ func awsRestjson1_deserializeDocumentOutpostListDefinition(v *[]*types.Outpost, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Outpost + var cv []types.Outpost if *v == nil { - cv = []*types.Outpost{} + cv = []types.Outpost{} } else { cv = *v } for _, value := range shape { - var col *types.Outpost - if err := awsRestjson1_deserializeDocumentOutpost(&col, value); err != nil { + var col types.Outpost + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutpost(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1567,7 +1572,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1607,7 +1612,7 @@ func awsRestjson1_deserializeDocumentSite(v **types.Site, value interface{}) err if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "Description": @@ -1616,7 +1621,7 @@ func awsRestjson1_deserializeDocumentSite(v **types.Site, value interface{}) err if !ok { return fmt.Errorf("expected SiteDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -1625,7 +1630,7 @@ func awsRestjson1_deserializeDocumentSite(v **types.Site, value interface{}) err if !ok { return fmt.Errorf("expected SiteName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SiteId": @@ -1634,7 +1639,7 @@ func awsRestjson1_deserializeDocumentSite(v **types.Site, value interface{}) err if !ok { return fmt.Errorf("expected SiteId to be of type string, got %T instead", value) } - sv.SiteId = &jtv + sv.SiteId = ptr.String(jtv) } default: @@ -1646,7 +1651,7 @@ func awsRestjson1_deserializeDocumentSite(v **types.Site, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentSiteListDefinition(v *[]*types.Site, value interface{}) error { +func awsRestjson1_deserializeDocumentSiteListDefinition(v *[]types.Site, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1659,18 +1664,20 @@ func awsRestjson1_deserializeDocumentSiteListDefinition(v *[]*types.Site, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Site + var cv []types.Site if *v == nil { - cv = []*types.Site{} + cv = []types.Site{} } else { cv = *v } for _, value := range shape { - var col *types.Site - if err := awsRestjson1_deserializeDocumentSite(&col, value); err != nil { + var col types.Site + destAddr := &col + if err := awsRestjson1_deserializeDocumentSite(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1706,7 +1713,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/outposts/go.mod b/service/outposts/go.mod index bd0fec6058b..e9839ef0ecf 100644 --- a/service/outposts/go.mod +++ b/service/outposts/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/outposts go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/outposts/serializers.go b/service/outposts/serializers.go index bdb32230c5c..952d0183cee 100644 --- a/service/outposts/serializers.go +++ b/service/outposts/serializers.go @@ -157,13 +157,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteOutpostInput(v *DeleteOutpostInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.OutpostId == nil { + if v.OutpostId == nil || len(*v.OutpostId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OutpostId must not be empty")} } if v.OutpostId != nil { - if len(*v.OutpostId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member OutpostId must not be empty")} - } if err := encoder.SetURI("OutpostId").String(*v.OutpostId); err != nil { return err } @@ -223,13 +220,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSiteInput(v *DeleteSiteInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.SiteId == nil { + if v.SiteId == nil || len(*v.SiteId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SiteId must not be empty")} } if v.SiteId != nil { - if len(*v.SiteId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SiteId must not be empty")} - } if err := encoder.SetURI("SiteId").String(*v.SiteId); err != nil { return err } @@ -289,13 +283,10 @@ func awsRestjson1_serializeOpHttpBindingsGetOutpostInput(v *GetOutpostInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.OutpostId == nil { + if v.OutpostId == nil || len(*v.OutpostId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OutpostId must not be empty")} } if v.OutpostId != nil { - if len(*v.OutpostId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member OutpostId must not be empty")} - } if err := encoder.SetURI("OutpostId").String(*v.OutpostId); err != nil { return err } @@ -363,13 +354,10 @@ func awsRestjson1_serializeOpHttpBindingsGetOutpostInstanceTypesInput(v *GetOutp encoder.SetQuery("NextToken").String(*v.NextToken) } - if v.OutpostId == nil { + if v.OutpostId == nil || len(*v.OutpostId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OutpostId must not be empty")} } if v.OutpostId != nil { - if len(*v.OutpostId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member OutpostId must not be empty")} - } if err := encoder.SetURI("OutpostId").String(*v.OutpostId); err != nil { return err } diff --git a/service/personalize/api_op_CreateSolution.go b/service/personalize/api_op_CreateSolution.go index 0db470b1d4f..a98b6f15dbd 100644 --- a/service/personalize/api_op_CreateSolution.go +++ b/service/personalize/api_op_CreateSolution.go @@ -89,7 +89,7 @@ type CreateSolutionInput struct { // determines the optimal recipe by running tests with different values for the // hyperparameters. AutoML lengthens the training process as compared to selecting // a specific recipe. - PerformAutoML *bool + PerformAutoML bool // Whether to perform hyperparameter optimization (HPO) on the specified or // selected recipe. The default is false. When performing AutoML, this parameter is diff --git a/service/personalize/api_op_GetSolutionMetrics.go b/service/personalize/api_op_GetSolutionMetrics.go index 7538cb35713..f9b422ff56a 100644 --- a/service/personalize/api_op_GetSolutionMetrics.go +++ b/service/personalize/api_op_GetSolutionMetrics.go @@ -37,7 +37,7 @@ type GetSolutionMetricsInput struct { type GetSolutionMetricsOutput struct { // The metrics for the solution version. - Metrics map[string]*float64 + Metrics map[string]float64 // The same solution version ARN as specified in the request. SolutionVersionArn *string diff --git a/service/personalize/api_op_ListBatchInferenceJobs.go b/service/personalize/api_op_ListBatchInferenceJobs.go index c4fbc541f7b..a4b7f865da8 100644 --- a/service/personalize/api_op_ListBatchInferenceJobs.go +++ b/service/personalize/api_op_ListBatchInferenceJobs.go @@ -45,7 +45,7 @@ type ListBatchInferenceJobsInput struct { type ListBatchInferenceJobsOutput struct { // A list containing information on each job that is returned. - BatchInferenceJobs []*types.BatchInferenceJobSummary + BatchInferenceJobs []types.BatchInferenceJobSummary // The token to use to retreive the next page of results. The value is null when // there are no more results to return. diff --git a/service/personalize/api_op_ListCampaigns.go b/service/personalize/api_op_ListCampaigns.go index 9b132160d17..2ed7cd5600d 100644 --- a/service/personalize/api_op_ListCampaigns.go +++ b/service/personalize/api_op_ListCampaigns.go @@ -48,7 +48,7 @@ type ListCampaignsInput struct { type ListCampaignsOutput struct { // A list of the campaigns. - Campaigns []*types.CampaignSummary + Campaigns []types.CampaignSummary // A token for getting the next set of campaigns (if they exist). NextToken *string diff --git a/service/personalize/api_op_ListDatasetGroups.go b/service/personalize/api_op_ListDatasetGroups.go index 0e255241e1d..77f1449cc7c 100644 --- a/service/personalize/api_op_ListDatasetGroups.go +++ b/service/personalize/api_op_ListDatasetGroups.go @@ -42,7 +42,7 @@ type ListDatasetGroupsInput struct { type ListDatasetGroupsOutput struct { // The list of your dataset groups. - DatasetGroups []*types.DatasetGroupSummary + DatasetGroups []types.DatasetGroupSummary // A token for getting the next set of dataset groups (if they exist). NextToken *string diff --git a/service/personalize/api_op_ListDatasetImportJobs.go b/service/personalize/api_op_ListDatasetImportJobs.go index 80b37fda080..9db6f0a6b85 100644 --- a/service/personalize/api_op_ListDatasetImportJobs.go +++ b/service/personalize/api_op_ListDatasetImportJobs.go @@ -49,7 +49,7 @@ type ListDatasetImportJobsInput struct { type ListDatasetImportJobsOutput struct { // The list of dataset import jobs. - DatasetImportJobs []*types.DatasetImportJobSummary + DatasetImportJobs []types.DatasetImportJobSummary // A token for getting the next set of dataset import jobs (if they exist). NextToken *string diff --git a/service/personalize/api_op_ListDatasets.go b/service/personalize/api_op_ListDatasets.go index 49eec666327..85c54600b97 100644 --- a/service/personalize/api_op_ListDatasets.go +++ b/service/personalize/api_op_ListDatasets.go @@ -46,7 +46,7 @@ type ListDatasetsInput struct { type ListDatasetsOutput struct { // An array of Dataset objects. Each object provides metadata information. - Datasets []*types.DatasetSummary + Datasets []types.DatasetSummary // A token for getting the next set of datasets (if they exist). NextToken *string diff --git a/service/personalize/api_op_ListEventTrackers.go b/service/personalize/api_op_ListEventTrackers.go index db3c6fb7903..a38778297ba 100644 --- a/service/personalize/api_op_ListEventTrackers.go +++ b/service/personalize/api_op_ListEventTrackers.go @@ -46,7 +46,7 @@ type ListEventTrackersInput struct { type ListEventTrackersOutput struct { // A list of event trackers. - EventTrackers []*types.EventTrackerSummary + EventTrackers []types.EventTrackerSummary // A token for getting the next set of event trackers (if they exist). NextToken *string diff --git a/service/personalize/api_op_ListFilters.go b/service/personalize/api_op_ListFilters.go index 9de404f861a..a89083b310d 100644 --- a/service/personalize/api_op_ListFilters.go +++ b/service/personalize/api_op_ListFilters.go @@ -43,7 +43,7 @@ type ListFiltersInput struct { type ListFiltersOutput struct { // A list of returned filters. - Filters []*types.FilterSummary + Filters []types.FilterSummary // A token for getting the next set of filters (if they exist). NextToken *string diff --git a/service/personalize/api_op_ListRecipes.go b/service/personalize/api_op_ListRecipes.go index ae62a1e3f59..a54a1f32066 100644 --- a/service/personalize/api_op_ListRecipes.go +++ b/service/personalize/api_op_ListRecipes.go @@ -47,7 +47,7 @@ type ListRecipesOutput struct { NextToken *string // The list of available recipes. - Recipes []*types.RecipeSummary + Recipes []types.RecipeSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/personalize/api_op_ListSchemas.go b/service/personalize/api_op_ListSchemas.go index e9b55e61eb6..6014f673037 100644 --- a/service/personalize/api_op_ListSchemas.go +++ b/service/personalize/api_op_ListSchemas.go @@ -45,7 +45,7 @@ type ListSchemasOutput struct { NextToken *string // A list of schemas. - Schemas []*types.DatasetSchemaSummary + Schemas []types.DatasetSchemaSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/personalize/api_op_ListSolutionVersions.go b/service/personalize/api_op_ListSolutionVersions.go index dc1e6dc7ac9..aeeec7af7a7 100644 --- a/service/personalize/api_op_ListSolutionVersions.go +++ b/service/personalize/api_op_ListSolutionVersions.go @@ -50,7 +50,7 @@ type ListSolutionVersionsOutput struct { NextToken *string // A list of solution versions describing the version properties. - SolutionVersions []*types.SolutionVersionSummary + SolutionVersions []types.SolutionVersionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/personalize/api_op_ListSolutions.go b/service/personalize/api_op_ListSolutions.go index a5b8de012e7..50344724399 100644 --- a/service/personalize/api_op_ListSolutions.go +++ b/service/personalize/api_op_ListSolutions.go @@ -50,7 +50,7 @@ type ListSolutionsOutput struct { NextToken *string // A list of the current solutions. - Solutions []*types.SolutionSummary + Solutions []types.SolutionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/personalize/deserializers.go b/service/personalize/deserializers.go index e1e160ce8dc..1891b3691cc 100644 --- a/service/personalize/deserializers.go +++ b/service/personalize/deserializers.go @@ -5252,7 +5252,7 @@ func awsAwsjson11_deserializeDocumentAlgorithm(v **types.Algorithm, value interf if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AlgorithmArn = &jtv + sv.AlgorithmArn = ptr.String(jtv) } case "algorithmImage": @@ -5307,7 +5307,7 @@ func awsAwsjson11_deserializeDocumentAlgorithm(v **types.Algorithm, value interf if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "roleArn": @@ -5316,7 +5316,7 @@ func awsAwsjson11_deserializeDocumentAlgorithm(v **types.Algorithm, value interf if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "trainingInputMode": @@ -5325,7 +5325,7 @@ func awsAwsjson11_deserializeDocumentAlgorithm(v **types.Algorithm, value interf if !ok { return fmt.Errorf("expected TrainingInputMode to be of type string, got %T instead", value) } - sv.TrainingInputMode = &jtv + sv.TrainingInputMode = ptr.String(jtv) } default: @@ -5365,7 +5365,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmImage(v **types.AlgorithmImage, va if !ok { return fmt.Errorf("expected DockerURI to be of type string, got %T instead", value) } - sv.DockerURI = &jtv + sv.DockerURI = ptr.String(jtv) } case "name": @@ -5374,7 +5374,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmImage(v **types.AlgorithmImage, va if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5386,7 +5386,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmImage(v **types.AlgorithmImage, va return nil } -func awsAwsjson11_deserializeDocumentArnList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5399,21 +5399,21 @@ func awsAwsjson11_deserializeDocumentArnList(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -5450,7 +5450,7 @@ func awsAwsjson11_deserializeDocumentAutoMLConfig(v **types.AutoMLConfig, value if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "recipeList": @@ -5495,7 +5495,7 @@ func awsAwsjson11_deserializeDocumentAutoMLResult(v **types.AutoMLResult, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.BestRecipeArn = &jtv + sv.BestRecipeArn = ptr.String(jtv) } default: @@ -5535,7 +5535,7 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJob(v **types.BatchInferenceJ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.BatchInferenceJobArn = &jtv + sv.BatchInferenceJobArn = ptr.String(jtv) } case "batchInferenceJobConfig": @@ -5562,7 +5562,7 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJob(v **types.BatchInferenceJ if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "filterArn": @@ -5571,7 +5571,7 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJob(v **types.BatchInferenceJ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.FilterArn = &jtv + sv.FilterArn = ptr.String(jtv) } case "jobInput": @@ -5585,7 +5585,7 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJob(v **types.BatchInferenceJ if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "jobOutput": @@ -5625,7 +5625,7 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJob(v **types.BatchInferenceJ if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "solutionVersionArn": @@ -5634,7 +5634,7 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJob(v **types.BatchInferenceJ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SolutionVersionArn = &jtv + sv.SolutionVersionArn = ptr.String(jtv) } case "status": @@ -5643,7 +5643,7 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJob(v **types.BatchInferenceJ if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -5763,7 +5763,7 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJobOutput(v **types.BatchInfe return nil } -func awsAwsjson11_deserializeDocumentBatchInferenceJobs(v *[]*types.BatchInferenceJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchInferenceJobs(v *[]types.BatchInferenceJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5776,18 +5776,20 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJobs(v *[]*types.BatchInferen return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchInferenceJobSummary + var cv []types.BatchInferenceJobSummary if *v == nil { - cv = []*types.BatchInferenceJobSummary{} + cv = []types.BatchInferenceJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.BatchInferenceJobSummary - if err := awsAwsjson11_deserializeDocumentBatchInferenceJobSummary(&col, value); err != nil { + var col types.BatchInferenceJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchInferenceJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5823,7 +5825,7 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJobSummary(v **types.BatchInf if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.BatchInferenceJobArn = &jtv + sv.BatchInferenceJobArn = ptr.String(jtv) } case "creationDateTime": @@ -5845,7 +5847,7 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJobSummary(v **types.BatchInf if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "jobName": @@ -5854,7 +5856,7 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJobSummary(v **types.BatchInf if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -5876,7 +5878,7 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJobSummary(v **types.BatchInf if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SolutionVersionArn = &jtv + sv.SolutionVersionArn = ptr.String(jtv) } case "status": @@ -5885,7 +5887,7 @@ func awsAwsjson11_deserializeDocumentBatchInferenceJobSummary(v **types.BatchInf if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -5925,7 +5927,7 @@ func awsAwsjson11_deserializeDocumentCampaign(v **types.Campaign, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CampaignArn = &jtv + sv.CampaignArn = ptr.String(jtv) } case "campaignConfig": @@ -5952,7 +5954,7 @@ func awsAwsjson11_deserializeDocumentCampaign(v **types.Campaign, value interfac if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -5992,7 +5994,7 @@ func awsAwsjson11_deserializeDocumentCampaign(v **types.Campaign, value interfac if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "solutionVersionArn": @@ -6001,7 +6003,7 @@ func awsAwsjson11_deserializeDocumentCampaign(v **types.Campaign, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SolutionVersionArn = &jtv + sv.SolutionVersionArn = ptr.String(jtv) } case "status": @@ -6010,7 +6012,7 @@ func awsAwsjson11_deserializeDocumentCampaign(v **types.Campaign, value interfac if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -6058,7 +6060,7 @@ func awsAwsjson11_deserializeDocumentCampaignConfig(v **types.CampaignConfig, va return nil } -func awsAwsjson11_deserializeDocumentCampaigns(v *[]*types.CampaignSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentCampaigns(v *[]types.CampaignSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6071,18 +6073,20 @@ func awsAwsjson11_deserializeDocumentCampaigns(v *[]*types.CampaignSummary, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CampaignSummary + var cv []types.CampaignSummary if *v == nil { - cv = []*types.CampaignSummary{} + cv = []types.CampaignSummary{} } else { cv = *v } for _, value := range shape { - var col *types.CampaignSummary - if err := awsAwsjson11_deserializeDocumentCampaignSummary(&col, value); err != nil { + var col types.CampaignSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCampaignSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6118,7 +6122,7 @@ func awsAwsjson11_deserializeDocumentCampaignSummary(v **types.CampaignSummary, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CampaignArn = &jtv + sv.CampaignArn = ptr.String(jtv) } case "creationDateTime": @@ -6140,7 +6144,7 @@ func awsAwsjson11_deserializeDocumentCampaignSummary(v **types.CampaignSummary, if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -6162,7 +6166,7 @@ func awsAwsjson11_deserializeDocumentCampaignSummary(v **types.CampaignSummary, if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -6171,7 +6175,7 @@ func awsAwsjson11_deserializeDocumentCampaignSummary(v **types.CampaignSummary, if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -6229,7 +6233,7 @@ func awsAwsjson11_deserializeDocumentCampaignUpdateSummary(v **types.CampaignUpd if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -6264,7 +6268,7 @@ func awsAwsjson11_deserializeDocumentCampaignUpdateSummary(v **types.CampaignUpd if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SolutionVersionArn = &jtv + sv.SolutionVersionArn = ptr.String(jtv) } case "status": @@ -6273,7 +6277,7 @@ func awsAwsjson11_deserializeDocumentCampaignUpdateSummary(v **types.CampaignUpd if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -6313,7 +6317,7 @@ func awsAwsjson11_deserializeDocumentCategoricalHyperParameterRange(v **types.Ca if !ok { return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "values": @@ -6330,7 +6334,7 @@ func awsAwsjson11_deserializeDocumentCategoricalHyperParameterRange(v **types.Ca return nil } -func awsAwsjson11_deserializeDocumentCategoricalHyperParameterRanges(v *[]*types.CategoricalHyperParameterRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentCategoricalHyperParameterRanges(v *[]types.CategoricalHyperParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6343,18 +6347,20 @@ func awsAwsjson11_deserializeDocumentCategoricalHyperParameterRanges(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CategoricalHyperParameterRange + var cv []types.CategoricalHyperParameterRange if *v == nil { - cv = []*types.CategoricalHyperParameterRange{} + cv = []types.CategoricalHyperParameterRange{} } else { cv = *v } for _, value := range shape { - var col *types.CategoricalHyperParameterRange - if err := awsAwsjson11_deserializeDocumentCategoricalHyperParameterRange(&col, value); err != nil { + var col types.CategoricalHyperParameterRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCategoricalHyperParameterRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6362,7 +6368,7 @@ func awsAwsjson11_deserializeDocumentCategoricalHyperParameterRanges(v *[]*types return nil } -func awsAwsjson11_deserializeDocumentCategoricalValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCategoricalValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6375,21 +6381,21 @@ func awsAwsjson11_deserializeDocumentCategoricalValues(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected CategoricalValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6430,7 +6436,7 @@ func awsAwsjson11_deserializeDocumentContinuousHyperParameterRange(v **types.Con if err != nil { return err } - sv.MaxValue = &f64 + sv.MaxValue = f64 } case "minValue": @@ -6443,7 +6449,7 @@ func awsAwsjson11_deserializeDocumentContinuousHyperParameterRange(v **types.Con if err != nil { return err } - sv.MinValue = &f64 + sv.MinValue = f64 } case "name": @@ -6452,7 +6458,7 @@ func awsAwsjson11_deserializeDocumentContinuousHyperParameterRange(v **types.Con if !ok { return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -6464,7 +6470,7 @@ func awsAwsjson11_deserializeDocumentContinuousHyperParameterRange(v **types.Con return nil } -func awsAwsjson11_deserializeDocumentContinuousHyperParameterRanges(v *[]*types.ContinuousHyperParameterRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentContinuousHyperParameterRanges(v *[]types.ContinuousHyperParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6477,18 +6483,20 @@ func awsAwsjson11_deserializeDocumentContinuousHyperParameterRanges(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContinuousHyperParameterRange + var cv []types.ContinuousHyperParameterRange if *v == nil { - cv = []*types.ContinuousHyperParameterRange{} + cv = []types.ContinuousHyperParameterRange{} } else { cv = *v } for _, value := range shape { - var col *types.ContinuousHyperParameterRange - if err := awsAwsjson11_deserializeDocumentContinuousHyperParameterRange(&col, value); err != nil { + var col types.ContinuousHyperParameterRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContinuousHyperParameterRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6537,7 +6545,7 @@ func awsAwsjson11_deserializeDocumentDataset(v **types.Dataset, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetArn = &jtv + sv.DatasetArn = ptr.String(jtv) } case "datasetGroupArn": @@ -6546,7 +6554,7 @@ func awsAwsjson11_deserializeDocumentDataset(v **types.Dataset, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "datasetType": @@ -6555,7 +6563,7 @@ func awsAwsjson11_deserializeDocumentDataset(v **types.Dataset, value interface{ if !ok { return fmt.Errorf("expected DatasetType to be of type string, got %T instead", value) } - sv.DatasetType = &jtv + sv.DatasetType = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -6577,7 +6585,7 @@ func awsAwsjson11_deserializeDocumentDataset(v **types.Dataset, value interface{ if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "schemaArn": @@ -6586,7 +6594,7 @@ func awsAwsjson11_deserializeDocumentDataset(v **types.Dataset, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } case "status": @@ -6595,7 +6603,7 @@ func awsAwsjson11_deserializeDocumentDataset(v **types.Dataset, value interface{ if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -6648,7 +6656,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroup(v **types.DatasetGroup, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "failureReason": @@ -6657,7 +6665,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroup(v **types.DatasetGroup, value if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "kmsKeyArn": @@ -6666,7 +6674,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroup(v **types.DatasetGroup, value if !ok { return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -6688,7 +6696,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroup(v **types.DatasetGroup, value if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "roleArn": @@ -6697,7 +6705,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroup(v **types.DatasetGroup, value if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "status": @@ -6706,7 +6714,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroup(v **types.DatasetGroup, value if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -6718,7 +6726,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroup(v **types.DatasetGroup, value return nil } -func awsAwsjson11_deserializeDocumentDatasetGroups(v *[]*types.DatasetGroupSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentDatasetGroups(v *[]types.DatasetGroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6731,18 +6739,20 @@ func awsAwsjson11_deserializeDocumentDatasetGroups(v *[]*types.DatasetGroupSumma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetGroupSummary + var cv []types.DatasetGroupSummary if *v == nil { - cv = []*types.DatasetGroupSummary{} + cv = []types.DatasetGroupSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetGroupSummary - if err := awsAwsjson11_deserializeDocumentDatasetGroupSummary(&col, value); err != nil { + var col types.DatasetGroupSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDatasetGroupSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6791,7 +6801,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroupSummary(v **types.DatasetGroupS if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "failureReason": @@ -6800,7 +6810,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroupSummary(v **types.DatasetGroupS if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -6822,7 +6832,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroupSummary(v **types.DatasetGroupS if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -6831,7 +6841,7 @@ func awsAwsjson11_deserializeDocumentDatasetGroupSummary(v **types.DatasetGroupS if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -6884,7 +6894,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJob(v **types.DatasetImportJob if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetArn = &jtv + sv.DatasetArn = ptr.String(jtv) } case "datasetImportJobArn": @@ -6893,7 +6903,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJob(v **types.DatasetImportJob if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetImportJobArn = &jtv + sv.DatasetImportJobArn = ptr.String(jtv) } case "dataSource": @@ -6907,7 +6917,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJob(v **types.DatasetImportJob if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "jobName": @@ -6916,7 +6926,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJob(v **types.DatasetImportJob if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -6938,7 +6948,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJob(v **types.DatasetImportJob if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "status": @@ -6947,7 +6957,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJob(v **types.DatasetImportJob if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -6959,7 +6969,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJob(v **types.DatasetImportJob return nil } -func awsAwsjson11_deserializeDocumentDatasetImportJobs(v *[]*types.DatasetImportJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentDatasetImportJobs(v *[]types.DatasetImportJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6972,18 +6982,20 @@ func awsAwsjson11_deserializeDocumentDatasetImportJobs(v *[]*types.DatasetImport return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetImportJobSummary + var cv []types.DatasetImportJobSummary if *v == nil { - cv = []*types.DatasetImportJobSummary{} + cv = []types.DatasetImportJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetImportJobSummary - if err := awsAwsjson11_deserializeDocumentDatasetImportJobSummary(&col, value); err != nil { + var col types.DatasetImportJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDatasetImportJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7032,7 +7044,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJobSummary(v **types.DatasetIm if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetImportJobArn = &jtv + sv.DatasetImportJobArn = ptr.String(jtv) } case "failureReason": @@ -7041,7 +7053,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJobSummary(v **types.DatasetIm if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "jobName": @@ -7050,7 +7062,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJobSummary(v **types.DatasetIm if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -7072,7 +7084,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJobSummary(v **types.DatasetIm if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -7084,7 +7096,7 @@ func awsAwsjson11_deserializeDocumentDatasetImportJobSummary(v **types.DatasetIm return nil } -func awsAwsjson11_deserializeDocumentDatasets(v *[]*types.DatasetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentDatasets(v *[]types.DatasetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7097,18 +7109,20 @@ func awsAwsjson11_deserializeDocumentDatasets(v *[]*types.DatasetSummary, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetSummary + var cv []types.DatasetSummary if *v == nil { - cv = []*types.DatasetSummary{} + cv = []types.DatasetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetSummary - if err := awsAwsjson11_deserializeDocumentDatasetSummary(&col, value); err != nil { + var col types.DatasetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDatasetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7170,7 +7184,7 @@ func awsAwsjson11_deserializeDocumentDatasetSchema(v **types.DatasetSchema, valu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "schema": @@ -7179,7 +7193,7 @@ func awsAwsjson11_deserializeDocumentDatasetSchema(v **types.DatasetSchema, valu if !ok { return fmt.Errorf("expected AvroSchema to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } case "schemaArn": @@ -7188,7 +7202,7 @@ func awsAwsjson11_deserializeDocumentDatasetSchema(v **types.DatasetSchema, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } default: @@ -7254,7 +7268,7 @@ func awsAwsjson11_deserializeDocumentDatasetSchemaSummary(v **types.DatasetSchem if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "schemaArn": @@ -7263,7 +7277,7 @@ func awsAwsjson11_deserializeDocumentDatasetSchemaSummary(v **types.DatasetSchem if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } default: @@ -7316,7 +7330,7 @@ func awsAwsjson11_deserializeDocumentDatasetSummary(v **types.DatasetSummary, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetArn = &jtv + sv.DatasetArn = ptr.String(jtv) } case "datasetType": @@ -7325,7 +7339,7 @@ func awsAwsjson11_deserializeDocumentDatasetSummary(v **types.DatasetSummary, va if !ok { return fmt.Errorf("expected DatasetType to be of type string, got %T instead", value) } - sv.DatasetType = &jtv + sv.DatasetType = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -7347,7 +7361,7 @@ func awsAwsjson11_deserializeDocumentDatasetSummary(v **types.DatasetSummary, va if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -7356,7 +7370,7 @@ func awsAwsjson11_deserializeDocumentDatasetSummary(v **types.DatasetSummary, va if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -7396,7 +7410,7 @@ func awsAwsjson11_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected S3Location to be of type string, got %T instead", value) } - sv.DataLocation = &jtv + sv.DataLocation = ptr.String(jtv) } default: @@ -7436,7 +7450,7 @@ func awsAwsjson11_deserializeDocumentDefaultCategoricalHyperParameterRange(v **t if !ok { return fmt.Errorf("expected Tunable to be of type *bool, got %T instead", value) } - sv.IsTunable = &jtv + sv.IsTunable = jtv } case "name": @@ -7445,7 +7459,7 @@ func awsAwsjson11_deserializeDocumentDefaultCategoricalHyperParameterRange(v **t if !ok { return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "values": @@ -7462,7 +7476,7 @@ func awsAwsjson11_deserializeDocumentDefaultCategoricalHyperParameterRange(v **t return nil } -func awsAwsjson11_deserializeDocumentDefaultCategoricalHyperParameterRanges(v *[]*types.DefaultCategoricalHyperParameterRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentDefaultCategoricalHyperParameterRanges(v *[]types.DefaultCategoricalHyperParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7475,18 +7489,20 @@ func awsAwsjson11_deserializeDocumentDefaultCategoricalHyperParameterRanges(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DefaultCategoricalHyperParameterRange + var cv []types.DefaultCategoricalHyperParameterRange if *v == nil { - cv = []*types.DefaultCategoricalHyperParameterRange{} + cv = []types.DefaultCategoricalHyperParameterRange{} } else { cv = *v } for _, value := range shape { - var col *types.DefaultCategoricalHyperParameterRange - if err := awsAwsjson11_deserializeDocumentDefaultCategoricalHyperParameterRange(&col, value); err != nil { + var col types.DefaultCategoricalHyperParameterRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDefaultCategoricalHyperParameterRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7522,7 +7538,7 @@ func awsAwsjson11_deserializeDocumentDefaultContinuousHyperParameterRange(v **ty if !ok { return fmt.Errorf("expected Tunable to be of type *bool, got %T instead", value) } - sv.IsTunable = &jtv + sv.IsTunable = jtv } case "maxValue": @@ -7535,7 +7551,7 @@ func awsAwsjson11_deserializeDocumentDefaultContinuousHyperParameterRange(v **ty if err != nil { return err } - sv.MaxValue = &f64 + sv.MaxValue = f64 } case "minValue": @@ -7548,7 +7564,7 @@ func awsAwsjson11_deserializeDocumentDefaultContinuousHyperParameterRange(v **ty if err != nil { return err } - sv.MinValue = &f64 + sv.MinValue = f64 } case "name": @@ -7557,7 +7573,7 @@ func awsAwsjson11_deserializeDocumentDefaultContinuousHyperParameterRange(v **ty if !ok { return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7569,7 +7585,7 @@ func awsAwsjson11_deserializeDocumentDefaultContinuousHyperParameterRange(v **ty return nil } -func awsAwsjson11_deserializeDocumentDefaultContinuousHyperParameterRanges(v *[]*types.DefaultContinuousHyperParameterRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentDefaultContinuousHyperParameterRanges(v *[]types.DefaultContinuousHyperParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7582,18 +7598,20 @@ func awsAwsjson11_deserializeDocumentDefaultContinuousHyperParameterRanges(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DefaultContinuousHyperParameterRange + var cv []types.DefaultContinuousHyperParameterRange if *v == nil { - cv = []*types.DefaultContinuousHyperParameterRange{} + cv = []types.DefaultContinuousHyperParameterRange{} } else { cv = *v } for _, value := range shape { - var col *types.DefaultContinuousHyperParameterRange - if err := awsAwsjson11_deserializeDocumentDefaultContinuousHyperParameterRange(&col, value); err != nil { + var col types.DefaultContinuousHyperParameterRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDefaultContinuousHyperParameterRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7675,7 +7693,7 @@ func awsAwsjson11_deserializeDocumentDefaultIntegerHyperParameterRange(v **types if !ok { return fmt.Errorf("expected Tunable to be of type *bool, got %T instead", value) } - sv.IsTunable = &jtv + sv.IsTunable = jtv } case "maxValue": @@ -7688,7 +7706,7 @@ func awsAwsjson11_deserializeDocumentDefaultIntegerHyperParameterRange(v **types if err != nil { return err } - sv.MaxValue = ptr.Int32(int32(i64)) + sv.MaxValue = int32(i64) } case "minValue": @@ -7701,7 +7719,7 @@ func awsAwsjson11_deserializeDocumentDefaultIntegerHyperParameterRange(v **types if err != nil { return err } - sv.MinValue = ptr.Int32(int32(i64)) + sv.MinValue = int32(i64) } case "name": @@ -7710,7 +7728,7 @@ func awsAwsjson11_deserializeDocumentDefaultIntegerHyperParameterRange(v **types if !ok { return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7722,7 +7740,7 @@ func awsAwsjson11_deserializeDocumentDefaultIntegerHyperParameterRange(v **types return nil } -func awsAwsjson11_deserializeDocumentDefaultIntegerHyperParameterRanges(v *[]*types.DefaultIntegerHyperParameterRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentDefaultIntegerHyperParameterRanges(v *[]types.DefaultIntegerHyperParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7735,18 +7753,20 @@ func awsAwsjson11_deserializeDocumentDefaultIntegerHyperParameterRanges(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DefaultIntegerHyperParameterRange + var cv []types.DefaultIntegerHyperParameterRange if *v == nil { - cv = []*types.DefaultIntegerHyperParameterRange{} + cv = []types.DefaultIntegerHyperParameterRange{} } else { cv = *v } for _, value := range shape { - var col *types.DefaultIntegerHyperParameterRange - if err := awsAwsjson11_deserializeDocumentDefaultIntegerHyperParameterRange(&col, value); err != nil { + var col types.DefaultIntegerHyperParameterRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDefaultIntegerHyperParameterRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7782,7 +7802,7 @@ func awsAwsjson11_deserializeDocumentEventTracker(v **types.EventTracker, value if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "creationDateTime": @@ -7804,7 +7824,7 @@ func awsAwsjson11_deserializeDocumentEventTracker(v **types.EventTracker, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "eventTrackerArn": @@ -7813,7 +7833,7 @@ func awsAwsjson11_deserializeDocumentEventTracker(v **types.EventTracker, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.EventTrackerArn = &jtv + sv.EventTrackerArn = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -7835,7 +7855,7 @@ func awsAwsjson11_deserializeDocumentEventTracker(v **types.EventTracker, value if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -7844,7 +7864,7 @@ func awsAwsjson11_deserializeDocumentEventTracker(v **types.EventTracker, value if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "trackingId": @@ -7853,7 +7873,7 @@ func awsAwsjson11_deserializeDocumentEventTracker(v **types.EventTracker, value if !ok { return fmt.Errorf("expected TrackingId to be of type string, got %T instead", value) } - sv.TrackingId = &jtv + sv.TrackingId = ptr.String(jtv) } default: @@ -7865,7 +7885,7 @@ func awsAwsjson11_deserializeDocumentEventTracker(v **types.EventTracker, value return nil } -func awsAwsjson11_deserializeDocumentEventTrackers(v *[]*types.EventTrackerSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventTrackers(v *[]types.EventTrackerSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7878,18 +7898,20 @@ func awsAwsjson11_deserializeDocumentEventTrackers(v *[]*types.EventTrackerSumma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventTrackerSummary + var cv []types.EventTrackerSummary if *v == nil { - cv = []*types.EventTrackerSummary{} + cv = []types.EventTrackerSummary{} } else { cv = *v } for _, value := range shape { - var col *types.EventTrackerSummary - if err := awsAwsjson11_deserializeDocumentEventTrackerSummary(&col, value); err != nil { + var col types.EventTrackerSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventTrackerSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7938,7 +7960,7 @@ func awsAwsjson11_deserializeDocumentEventTrackerSummary(v **types.EventTrackerS if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.EventTrackerArn = &jtv + sv.EventTrackerArn = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -7960,7 +7982,7 @@ func awsAwsjson11_deserializeDocumentEventTrackerSummary(v **types.EventTrackerS if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -7969,7 +7991,7 @@ func awsAwsjson11_deserializeDocumentEventTrackerSummary(v **types.EventTrackerS if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -8027,7 +8049,7 @@ func awsAwsjson11_deserializeDocumentFeatureTransformation(v **types.FeatureTran if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.FeatureTransformationArn = &jtv + sv.FeatureTransformationArn = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -8049,7 +8071,7 @@ func awsAwsjson11_deserializeDocumentFeatureTransformation(v **types.FeatureTran if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -8058,7 +8080,7 @@ func awsAwsjson11_deserializeDocumentFeatureTransformation(v **types.FeatureTran if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -8070,7 +8092,7 @@ func awsAwsjson11_deserializeDocumentFeatureTransformation(v **types.FeatureTran return nil } -func awsAwsjson11_deserializeDocumentFeatureTransformationParameters(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentFeatureTransformationParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8083,21 +8105,21 @@ func awsAwsjson11_deserializeDocumentFeatureTransformationParameters(v *map[stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -8106,7 +8128,7 @@ func awsAwsjson11_deserializeDocumentFeatureTransformationParameters(v *map[stri return nil } -func awsAwsjson11_deserializeDocumentFeaturizationParameters(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentFeaturizationParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8119,21 +8141,21 @@ func awsAwsjson11_deserializeDocumentFeaturizationParameters(v *map[string]*stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -8183,7 +8205,7 @@ func awsAwsjson11_deserializeDocumentFilter(v **types.Filter, value interface{}) if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "failureReason": @@ -8192,7 +8214,7 @@ func awsAwsjson11_deserializeDocumentFilter(v **types.Filter, value interface{}) if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "filterArn": @@ -8201,7 +8223,7 @@ func awsAwsjson11_deserializeDocumentFilter(v **types.Filter, value interface{}) if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.FilterArn = &jtv + sv.FilterArn = ptr.String(jtv) } case "filterExpression": @@ -8210,7 +8232,7 @@ func awsAwsjson11_deserializeDocumentFilter(v **types.Filter, value interface{}) if !ok { return fmt.Errorf("expected FilterExpression to be of type string, got %T instead", value) } - sv.FilterExpression = &jtv + sv.FilterExpression = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -8232,7 +8254,7 @@ func awsAwsjson11_deserializeDocumentFilter(v **types.Filter, value interface{}) if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -8241,7 +8263,7 @@ func awsAwsjson11_deserializeDocumentFilter(v **types.Filter, value interface{}) if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -8253,7 +8275,7 @@ func awsAwsjson11_deserializeDocumentFilter(v **types.Filter, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentFilters(v *[]*types.FilterSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentFilters(v *[]types.FilterSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8266,18 +8288,20 @@ func awsAwsjson11_deserializeDocumentFilters(v *[]*types.FilterSummary, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FilterSummary + var cv []types.FilterSummary if *v == nil { - cv = []*types.FilterSummary{} + cv = []types.FilterSummary{} } else { cv = *v } for _, value := range shape { - var col *types.FilterSummary - if err := awsAwsjson11_deserializeDocumentFilterSummary(&col, value); err != nil { + var col types.FilterSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFilterSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8326,7 +8350,7 @@ func awsAwsjson11_deserializeDocumentFilterSummary(v **types.FilterSummary, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "failureReason": @@ -8335,7 +8359,7 @@ func awsAwsjson11_deserializeDocumentFilterSummary(v **types.FilterSummary, valu if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "filterArn": @@ -8344,7 +8368,7 @@ func awsAwsjson11_deserializeDocumentFilterSummary(v **types.FilterSummary, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.FilterArn = &jtv + sv.FilterArn = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -8366,7 +8390,7 @@ func awsAwsjson11_deserializeDocumentFilterSummary(v **types.FilterSummary, valu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -8375,7 +8399,7 @@ func awsAwsjson11_deserializeDocumentFilterSummary(v **types.FilterSummary, valu if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -8461,7 +8485,7 @@ func awsAwsjson11_deserializeDocumentHPOObjective(v **types.HPOObjective, value if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "metricRegex": @@ -8470,7 +8494,7 @@ func awsAwsjson11_deserializeDocumentHPOObjective(v **types.HPOObjective, value if !ok { return fmt.Errorf("expected MetricRegex to be of type string, got %T instead", value) } - sv.MetricRegex = &jtv + sv.MetricRegex = ptr.String(jtv) } case "type": @@ -8479,7 +8503,7 @@ func awsAwsjson11_deserializeDocumentHPOObjective(v **types.HPOObjective, value if !ok { return fmt.Errorf("expected HPOObjectiveType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -8519,7 +8543,7 @@ func awsAwsjson11_deserializeDocumentHPOResourceConfig(v **types.HPOResourceConf if !ok { return fmt.Errorf("expected HPOResource to be of type string, got %T instead", value) } - sv.MaxNumberOfTrainingJobs = &jtv + sv.MaxNumberOfTrainingJobs = ptr.String(jtv) } case "maxParallelTrainingJobs": @@ -8528,7 +8552,7 @@ func awsAwsjson11_deserializeDocumentHPOResourceConfig(v **types.HPOResourceConf if !ok { return fmt.Errorf("expected HPOResource to be of type string, got %T instead", value) } - sv.MaxParallelTrainingJobs = &jtv + sv.MaxParallelTrainingJobs = ptr.String(jtv) } default: @@ -8586,7 +8610,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterRanges(v **types.HyperParamet return nil } -func awsAwsjson11_deserializeDocumentHyperParameters(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentHyperParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8599,21 +8623,21 @@ func awsAwsjson11_deserializeDocumentHyperParameters(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -8654,7 +8678,7 @@ func awsAwsjson11_deserializeDocumentIntegerHyperParameterRange(v **types.Intege if err != nil { return err } - sv.MaxValue = ptr.Int32(int32(i64)) + sv.MaxValue = int32(i64) } case "minValue": @@ -8667,7 +8691,7 @@ func awsAwsjson11_deserializeDocumentIntegerHyperParameterRange(v **types.Intege if err != nil { return err } - sv.MinValue = ptr.Int32(int32(i64)) + sv.MinValue = int32(i64) } case "name": @@ -8676,7 +8700,7 @@ func awsAwsjson11_deserializeDocumentIntegerHyperParameterRange(v **types.Intege if !ok { return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8688,7 +8712,7 @@ func awsAwsjson11_deserializeDocumentIntegerHyperParameterRange(v **types.Intege return nil } -func awsAwsjson11_deserializeDocumentIntegerHyperParameterRanges(v *[]*types.IntegerHyperParameterRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentIntegerHyperParameterRanges(v *[]types.IntegerHyperParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8701,18 +8725,20 @@ func awsAwsjson11_deserializeDocumentIntegerHyperParameterRanges(v *[]*types.Int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IntegerHyperParameterRange + var cv []types.IntegerHyperParameterRange if *v == nil { - cv = []*types.IntegerHyperParameterRange{} + cv = []types.IntegerHyperParameterRange{} } else { cv = *v } for _, value := range shape { - var col *types.IntegerHyperParameterRange - if err := awsAwsjson11_deserializeDocumentIntegerHyperParameterRange(&col, value); err != nil { + var col types.IntegerHyperParameterRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIntegerHyperParameterRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8748,7 +8774,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8788,7 +8814,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8828,7 +8854,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8840,7 +8866,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson11_deserializeDocumentMetrics(v *map[string]*float64, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetrics(v *map[string]float64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8853,15 +8879,15 @@ func awsAwsjson11_deserializeDocumentMetrics(v *map[string]*float64, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*float64 + var mv map[string]float64 if *v == nil { - mv = map[string]*float64{} + mv = map[string]float64{} } else { mv = *v } for key, value := range shape { - var parsedVal *float64 + var parsedVal float64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -8871,7 +8897,7 @@ func awsAwsjson11_deserializeDocumentMetrics(v *map[string]*float64, value inter if err != nil { return err } - parsedVal = &f64 + parsedVal = f64 } mv[key] = parsedVal @@ -8908,7 +8934,7 @@ func awsAwsjson11_deserializeDocumentRecipe(v **types.Recipe, value interface{}) if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AlgorithmArn = &jtv + sv.AlgorithmArn = ptr.String(jtv) } case "creationDateTime": @@ -8930,7 +8956,7 @@ func awsAwsjson11_deserializeDocumentRecipe(v **types.Recipe, value interface{}) if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "featureTransformationArn": @@ -8939,7 +8965,7 @@ func awsAwsjson11_deserializeDocumentRecipe(v **types.Recipe, value interface{}) if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.FeatureTransformationArn = &jtv + sv.FeatureTransformationArn = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -8961,7 +8987,7 @@ func awsAwsjson11_deserializeDocumentRecipe(v **types.Recipe, value interface{}) if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "recipeArn": @@ -8970,7 +8996,7 @@ func awsAwsjson11_deserializeDocumentRecipe(v **types.Recipe, value interface{}) if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RecipeArn = &jtv + sv.RecipeArn = ptr.String(jtv) } case "recipeType": @@ -8979,7 +9005,7 @@ func awsAwsjson11_deserializeDocumentRecipe(v **types.Recipe, value interface{}) if !ok { return fmt.Errorf("expected RecipeType to be of type string, got %T instead", value) } - sv.RecipeType = &jtv + sv.RecipeType = ptr.String(jtv) } case "status": @@ -8988,7 +9014,7 @@ func awsAwsjson11_deserializeDocumentRecipe(v **types.Recipe, value interface{}) if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -9000,7 +9026,7 @@ func awsAwsjson11_deserializeDocumentRecipe(v **types.Recipe, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentRecipes(v *[]*types.RecipeSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentRecipes(v *[]types.RecipeSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9013,18 +9039,20 @@ func awsAwsjson11_deserializeDocumentRecipes(v *[]*types.RecipeSummary, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecipeSummary + var cv []types.RecipeSummary if *v == nil { - cv = []*types.RecipeSummary{} + cv = []types.RecipeSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RecipeSummary - if err := awsAwsjson11_deserializeDocumentRecipeSummary(&col, value); err != nil { + var col types.RecipeSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRecipeSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9086,7 +9114,7 @@ func awsAwsjson11_deserializeDocumentRecipeSummary(v **types.RecipeSummary, valu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "recipeArn": @@ -9095,7 +9123,7 @@ func awsAwsjson11_deserializeDocumentRecipeSummary(v **types.RecipeSummary, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RecipeArn = &jtv + sv.RecipeArn = ptr.String(jtv) } case "status": @@ -9104,7 +9132,7 @@ func awsAwsjson11_deserializeDocumentRecipeSummary(v **types.RecipeSummary, valu if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -9144,7 +9172,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9156,7 +9184,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re return nil } -func awsAwsjson11_deserializeDocumentResourceConfig(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceConfig(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9169,21 +9197,21 @@ func awsAwsjson11_deserializeDocumentResourceConfig(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -9220,7 +9248,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9260,7 +9288,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9300,7 +9328,7 @@ func awsAwsjson11_deserializeDocumentS3DataConfig(v **types.S3DataConfig, value if !ok { return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } case "path": @@ -9309,7 +9337,7 @@ func awsAwsjson11_deserializeDocumentS3DataConfig(v **types.S3DataConfig, value if !ok { return fmt.Errorf("expected S3Location to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } default: @@ -9321,7 +9349,7 @@ func awsAwsjson11_deserializeDocumentS3DataConfig(v **types.S3DataConfig, value return nil } -func awsAwsjson11_deserializeDocumentSchemas(v *[]*types.DatasetSchemaSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSchemas(v *[]types.DatasetSchemaSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9334,18 +9362,20 @@ func awsAwsjson11_deserializeDocumentSchemas(v *[]*types.DatasetSchemaSummary, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DatasetSchemaSummary + var cv []types.DatasetSchemaSummary if *v == nil { - cv = []*types.DatasetSchemaSummary{} + cv = []types.DatasetSchemaSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DatasetSchemaSummary - if err := awsAwsjson11_deserializeDocumentDatasetSchemaSummary(&col, value); err != nil { + var col types.DatasetSchemaSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDatasetSchemaSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9399,7 +9429,7 @@ func awsAwsjson11_deserializeDocumentSolution(v **types.Solution, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "eventType": @@ -9408,7 +9438,7 @@ func awsAwsjson11_deserializeDocumentSolution(v **types.Solution, value interfac if !ok { return fmt.Errorf("expected EventType to be of type string, got %T instead", value) } - sv.EventType = &jtv + sv.EventType = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -9435,7 +9465,7 @@ func awsAwsjson11_deserializeDocumentSolution(v **types.Solution, value interfac if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "performAutoML": @@ -9444,7 +9474,7 @@ func awsAwsjson11_deserializeDocumentSolution(v **types.Solution, value interfac if !ok { return fmt.Errorf("expected PerformAutoML to be of type *bool, got %T instead", value) } - sv.PerformAutoML = &jtv + sv.PerformAutoML = jtv } case "performHPO": @@ -9453,7 +9483,7 @@ func awsAwsjson11_deserializeDocumentSolution(v **types.Solution, value interfac if !ok { return fmt.Errorf("expected PerformHPO to be of type *bool, got %T instead", value) } - sv.PerformHPO = &jtv + sv.PerformHPO = jtv } case "recipeArn": @@ -9462,7 +9492,7 @@ func awsAwsjson11_deserializeDocumentSolution(v **types.Solution, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RecipeArn = &jtv + sv.RecipeArn = ptr.String(jtv) } case "solutionArn": @@ -9471,7 +9501,7 @@ func awsAwsjson11_deserializeDocumentSolution(v **types.Solution, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SolutionArn = &jtv + sv.SolutionArn = ptr.String(jtv) } case "solutionConfig": @@ -9485,7 +9515,7 @@ func awsAwsjson11_deserializeDocumentSolution(v **types.Solution, value interfac if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -9535,7 +9565,7 @@ func awsAwsjson11_deserializeDocumentSolutionConfig(v **types.SolutionConfig, va if !ok { return fmt.Errorf("expected EventValueThreshold to be of type string, got %T instead", value) } - sv.EventValueThreshold = &jtv + sv.EventValueThreshold = ptr.String(jtv) } case "featureTransformationParameters": @@ -9557,7 +9587,7 @@ func awsAwsjson11_deserializeDocumentSolutionConfig(v **types.SolutionConfig, va return nil } -func awsAwsjson11_deserializeDocumentSolutions(v *[]*types.SolutionSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSolutions(v *[]types.SolutionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9570,18 +9600,20 @@ func awsAwsjson11_deserializeDocumentSolutions(v *[]*types.SolutionSummary, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SolutionSummary + var cv []types.SolutionSummary if *v == nil { - cv = []*types.SolutionSummary{} + cv = []types.SolutionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SolutionSummary - if err := awsAwsjson11_deserializeDocumentSolutionSummary(&col, value); err != nil { + var col types.SolutionSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSolutionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9643,7 +9675,7 @@ func awsAwsjson11_deserializeDocumentSolutionSummary(v **types.SolutionSummary, if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "solutionArn": @@ -9652,7 +9684,7 @@ func awsAwsjson11_deserializeDocumentSolutionSummary(v **types.SolutionSummary, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SolutionArn = &jtv + sv.SolutionArn = ptr.String(jtv) } case "status": @@ -9661,7 +9693,7 @@ func awsAwsjson11_deserializeDocumentSolutionSummary(v **types.SolutionSummary, if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -9714,7 +9746,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersion(v **types.SolutionVersion, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } case "eventType": @@ -9723,7 +9755,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersion(v **types.SolutionVersion, if !ok { return fmt.Errorf("expected EventType to be of type string, got %T instead", value) } - sv.EventType = &jtv + sv.EventType = ptr.String(jtv) } case "failureReason": @@ -9732,7 +9764,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersion(v **types.SolutionVersion, if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -9754,7 +9786,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersion(v **types.SolutionVersion, if !ok { return fmt.Errorf("expected PerformAutoML to be of type *bool, got %T instead", value) } - sv.PerformAutoML = &jtv + sv.PerformAutoML = jtv } case "performHPO": @@ -9763,7 +9795,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersion(v **types.SolutionVersion, if !ok { return fmt.Errorf("expected PerformHPO to be of type *bool, got %T instead", value) } - sv.PerformHPO = &jtv + sv.PerformHPO = jtv } case "recipeArn": @@ -9772,7 +9804,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersion(v **types.SolutionVersion, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RecipeArn = &jtv + sv.RecipeArn = ptr.String(jtv) } case "solutionArn": @@ -9781,7 +9813,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersion(v **types.SolutionVersion, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SolutionArn = &jtv + sv.SolutionArn = ptr.String(jtv) } case "solutionConfig": @@ -9795,7 +9827,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersion(v **types.SolutionVersion, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SolutionVersionArn = &jtv + sv.SolutionVersionArn = ptr.String(jtv) } case "status": @@ -9804,7 +9836,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersion(v **types.SolutionVersion, if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "trainingHours": @@ -9817,7 +9849,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersion(v **types.SolutionVersion, if err != nil { return err } - sv.TrainingHours = &f64 + sv.TrainingHours = ptr.Float64(f64) } case "trainingMode": @@ -9843,7 +9875,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersion(v **types.SolutionVersion, return nil } -func awsAwsjson11_deserializeDocumentSolutionVersions(v *[]*types.SolutionVersionSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSolutionVersions(v *[]types.SolutionVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9856,18 +9888,20 @@ func awsAwsjson11_deserializeDocumentSolutionVersions(v *[]*types.SolutionVersio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SolutionVersionSummary + var cv []types.SolutionVersionSummary if *v == nil { - cv = []*types.SolutionVersionSummary{} + cv = []types.SolutionVersionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SolutionVersionSummary - if err := awsAwsjson11_deserializeDocumentSolutionVersionSummary(&col, value); err != nil { + var col types.SolutionVersionSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSolutionVersionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9916,7 +9950,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersionSummary(v **types.SolutionVe if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "lastUpdatedDateTime": @@ -9938,7 +9972,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersionSummary(v **types.SolutionVe if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SolutionVersionArn = &jtv + sv.SolutionVersionArn = ptr.String(jtv) } case "status": @@ -9947,7 +9981,7 @@ func awsAwsjson11_deserializeDocumentSolutionVersionSummary(v **types.SolutionVe if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -10023,7 +10057,7 @@ func awsAwsjson11_deserializeOpDocumentCreateBatchInferenceJobOutput(v **CreateB if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.BatchInferenceJobArn = &jtv + sv.BatchInferenceJobArn = ptr.String(jtv) } default: @@ -10063,7 +10097,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCampaignOutput(v **CreateCampaignOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CampaignArn = &jtv + sv.CampaignArn = ptr.String(jtv) } default: @@ -10103,7 +10137,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDatasetGroupOutput(v **CreateDatase if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetGroupArn = &jtv + sv.DatasetGroupArn = ptr.String(jtv) } default: @@ -10143,7 +10177,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDatasetImportJobOutput(v **CreateDa if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetImportJobArn = &jtv + sv.DatasetImportJobArn = ptr.String(jtv) } default: @@ -10183,7 +10217,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDatasetOutput(v **CreateDatasetOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DatasetArn = &jtv + sv.DatasetArn = ptr.String(jtv) } default: @@ -10223,7 +10257,7 @@ func awsAwsjson11_deserializeOpDocumentCreateEventTrackerOutput(v **CreateEventT if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.EventTrackerArn = &jtv + sv.EventTrackerArn = ptr.String(jtv) } case "trackingId": @@ -10232,7 +10266,7 @@ func awsAwsjson11_deserializeOpDocumentCreateEventTrackerOutput(v **CreateEventT if !ok { return fmt.Errorf("expected TrackingId to be of type string, got %T instead", value) } - sv.TrackingId = &jtv + sv.TrackingId = ptr.String(jtv) } default: @@ -10272,7 +10306,7 @@ func awsAwsjson11_deserializeOpDocumentCreateFilterOutput(v **CreateFilterOutput if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.FilterArn = &jtv + sv.FilterArn = ptr.String(jtv) } default: @@ -10312,7 +10346,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSchemaOutput(v **CreateSchemaOutput if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } default: @@ -10352,7 +10386,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSolutionOutput(v **CreateSolutionOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SolutionArn = &jtv + sv.SolutionArn = ptr.String(jtv) } default: @@ -10392,7 +10426,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSolutionVersionOutput(v **CreateSol if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SolutionVersionArn = &jtv + sv.SolutionVersionArn = ptr.String(jtv) } default: @@ -11122,7 +11156,7 @@ func awsAwsjson11_deserializeOpDocumentGetSolutionMetricsOutput(v **GetSolutionM if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SolutionVersionArn = &jtv + sv.SolutionVersionArn = ptr.String(jtv) } default: @@ -11167,7 +11201,7 @@ func awsAwsjson11_deserializeOpDocumentListBatchInferenceJobsOutput(v **ListBatc if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11212,7 +11246,7 @@ func awsAwsjson11_deserializeOpDocumentListCampaignsOutput(v **ListCampaignsOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11257,7 +11291,7 @@ func awsAwsjson11_deserializeOpDocumentListDatasetGroupsOutput(v **ListDatasetGr if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11302,7 +11336,7 @@ func awsAwsjson11_deserializeOpDocumentListDatasetImportJobsOutput(v **ListDatas if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11347,7 +11381,7 @@ func awsAwsjson11_deserializeOpDocumentListDatasetsOutput(v **ListDatasetsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11392,7 +11426,7 @@ func awsAwsjson11_deserializeOpDocumentListEventTrackersOutput(v **ListEventTrac if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11437,7 +11471,7 @@ func awsAwsjson11_deserializeOpDocumentListFiltersOutput(v **ListFiltersOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11477,7 +11511,7 @@ func awsAwsjson11_deserializeOpDocumentListRecipesOutput(v **ListRecipesOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "recipes": @@ -11522,7 +11556,7 @@ func awsAwsjson11_deserializeOpDocumentListSchemasOutput(v **ListSchemasOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "schemas": @@ -11567,7 +11601,7 @@ func awsAwsjson11_deserializeOpDocumentListSolutionsOutput(v **ListSolutionsOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "solutions": @@ -11612,7 +11646,7 @@ func awsAwsjson11_deserializeOpDocumentListSolutionVersionsOutput(v **ListSoluti if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "solutionVersions": @@ -11657,7 +11691,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateCampaignOutput(v **UpdateCampaignOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CampaignArn = &jtv + sv.CampaignArn = ptr.String(jtv) } default: diff --git a/service/personalize/go.mod b/service/personalize/go.mod index a424a1365b3..4bc52a8196a 100644 --- a/service/personalize/go.mod +++ b/service/personalize/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/personalize go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/personalize/serializers.go b/service/personalize/serializers.go index f3ddae1c911..d4038f530a7 100644 --- a/service/personalize/serializers.go +++ b/service/personalize/serializers.go @@ -1991,17 +1991,13 @@ func (m *awsAwsjson11_serializeOpUpdateCampaign) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentArnList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2100,34 +2096,26 @@ func awsAwsjson11_serializeDocumentCategoricalHyperParameterRange(v *types.Categ return nil } -func awsAwsjson11_serializeDocumentCategoricalHyperParameterRanges(v []*types.CategoricalHyperParameterRange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCategoricalHyperParameterRanges(v []types.CategoricalHyperParameterRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCategoricalHyperParameterRange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCategoricalHyperParameterRange(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentCategoricalValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCategoricalValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2136,14 +2124,14 @@ func awsAwsjson11_serializeDocumentContinuousHyperParameterRange(v *types.Contin object := value.Object() defer object.Close() - if v.MaxValue != nil { + if v.MaxValue != 0 { ok := object.Key("maxValue") - ok.Double(*v.MaxValue) + ok.Double(v.MaxValue) } - if v.MinValue != nil { + if v.MinValue != 0 { ok := object.Key("minValue") - ok.Double(*v.MinValue) + ok.Double(v.MinValue) } if v.Name != nil { @@ -2154,17 +2142,13 @@ func awsAwsjson11_serializeDocumentContinuousHyperParameterRange(v *types.Contin return nil } -func awsAwsjson11_serializeDocumentContinuousHyperParameterRanges(v []*types.ContinuousHyperParameterRange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentContinuousHyperParameterRanges(v []types.ContinuousHyperParameterRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentContinuousHyperParameterRange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentContinuousHyperParameterRange(&v[i], av); err != nil { return err } } @@ -2183,17 +2167,13 @@ func awsAwsjson11_serializeDocumentDataSource(v *types.DataSource, value smithyj return nil } -func awsAwsjson11_serializeDocumentFeatureTransformationParameters(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFeatureTransformationParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2293,17 +2273,13 @@ func awsAwsjson11_serializeDocumentHyperParameterRanges(v *types.HyperParameterR return nil } -func awsAwsjson11_serializeDocumentHyperParameters(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHyperParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2312,14 +2288,14 @@ func awsAwsjson11_serializeDocumentIntegerHyperParameterRange(v *types.IntegerHy object := value.Object() defer object.Close() - if v.MaxValue != nil { + if v.MaxValue != 0 { ok := object.Key("maxValue") - ok.Integer(*v.MaxValue) + ok.Integer(v.MaxValue) } - if v.MinValue != nil { + if v.MinValue != 0 { ok := object.Key("minValue") - ok.Integer(*v.MinValue) + ok.Integer(v.MinValue) } if v.Name != nil { @@ -2330,17 +2306,13 @@ func awsAwsjson11_serializeDocumentIntegerHyperParameterRange(v *types.IntegerHy return nil } -func awsAwsjson11_serializeDocumentIntegerHyperParameterRanges(v []*types.IntegerHyperParameterRange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIntegerHyperParameterRanges(v []types.IntegerHyperParameterRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentIntegerHyperParameterRange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentIntegerHyperParameterRange(&v[i], av); err != nil { return err } } @@ -2639,9 +2611,9 @@ func awsAwsjson11_serializeOpDocumentCreateSolutionInput(v *CreateSolutionInput, ok.String(*v.Name) } - if v.PerformAutoML != nil { + if v.PerformAutoML { ok := object.Key("performAutoML") - ok.Boolean(*v.PerformAutoML) + ok.Boolean(v.PerformAutoML) } if v.PerformHPO != nil { diff --git a/service/personalize/types/types.go b/service/personalize/types/types.go index 2fe0a3db9ba..aead43f6310 100644 --- a/service/personalize/types/types.go +++ b/service/personalize/types/types.go @@ -24,11 +24,11 @@ type Algorithm struct { DefaultHyperParameterRanges *DefaultHyperParameterRanges // Specifies the default hyperparameters. - DefaultHyperParameters map[string]*string + DefaultHyperParameters map[string]string // Specifies the default maximum number of training jobs and parallel training // jobs. - DefaultResourceConfig map[string]*string + DefaultResourceConfig map[string]string // The date and time (in Unix time) that the algorithm was last updated. LastUpdatedDateTime *time.Time @@ -64,7 +64,7 @@ type AutoMLConfig struct { MetricName *string // The list of candidate recipes. - RecipeList []*string + RecipeList []string } // When the solution performs AutoML (performAutoML is true in CreateSolution), @@ -137,7 +137,7 @@ type BatchInferenceJobConfig struct { // A string to string map specifying the inference hyperparameters you wish to use // for hyperparameter optimization. See customizing-solution-config-hpo. - ItemExplorationConfig map[string]*string + ItemExplorationConfig map[string]string } // The input configuration of a batch inference job. @@ -244,7 +244,7 @@ type CampaignConfig struct { // A string to string map specifying the inference hyperparameters you wish to use // for hyperparameter optimization. See customizing-solution-config-hpo. - ItemExplorationConfig map[string]*string + ItemExplorationConfig map[string]string } // Provides a summary of the properties of a campaign. For a complete listing, call @@ -316,17 +316,17 @@ type CategoricalHyperParameterRange struct { Name *string // A list of the categories for the hyperparameter. - Values []*string + Values []string } // Provides the name and range of a continuous hyperparameter. type ContinuousHyperParameterRange struct { // The maximum allowable value for the hyperparameter. - MaxValue *float64 + MaxValue float64 // The minimum allowable value for the hyperparameter. - MinValue *float64 + MinValue float64 // The name of the hyperparameter. Name *string @@ -597,13 +597,13 @@ type DataSource struct { type DefaultCategoricalHyperParameterRange struct { // Whether the hyperparameter is tunable. - IsTunable *bool + IsTunable bool // The name of the hyperparameter. Name *string // A list of the categories for the hyperparameter. - Values []*string + Values []string } // Provides the name and default range of a continuous hyperparameter and whether @@ -612,13 +612,13 @@ type DefaultCategoricalHyperParameterRange struct { type DefaultContinuousHyperParameterRange struct { // Whether the hyperparameter is tunable. - IsTunable *bool + IsTunable bool // The maximum allowable value for the hyperparameter. - MaxValue *float64 + MaxValue float64 // The minimum allowable value for the hyperparameter. - MinValue *float64 + MinValue float64 // The name of the hyperparameter. Name *string @@ -629,13 +629,13 @@ type DefaultContinuousHyperParameterRange struct { type DefaultHyperParameterRanges struct { // The categorical hyperparameters and their default ranges. - CategoricalHyperParameterRanges []*DefaultCategoricalHyperParameterRange + CategoricalHyperParameterRanges []DefaultCategoricalHyperParameterRange // The continuous hyperparameters and their default ranges. - ContinuousHyperParameterRanges []*DefaultContinuousHyperParameterRange + ContinuousHyperParameterRanges []DefaultContinuousHyperParameterRange // The integer-valued hyperparameters and their default ranges. - IntegerHyperParameterRanges []*DefaultIntegerHyperParameterRange + IntegerHyperParameterRanges []DefaultIntegerHyperParameterRange } // Provides the name and default range of a integer-valued hyperparameter and @@ -644,13 +644,13 @@ type DefaultHyperParameterRanges struct { type DefaultIntegerHyperParameterRange struct { // Indicates whether the hyperparameter is tunable. - IsTunable *bool + IsTunable bool // The maximum allowable value for the hyperparameter. - MaxValue *int32 + MaxValue int32 // The minimum allowable value for the hyperparameter. - MinValue *int32 + MinValue int32 // The name of the hyperparameter. Name *string @@ -727,7 +727,7 @@ type FeatureTransformation struct { CreationDateTime *time.Time // Provides the default parameters for feature transformation. - DefaultParameters map[string]*string + DefaultParameters map[string]string // The Amazon Resource Name (ARN) of the FeatureTransformation object. FeatureTransformationArn *string @@ -848,23 +848,23 @@ type HPOResourceConfig struct { type HyperParameterRanges struct { // The categorical hyperparameters and their ranges. - CategoricalHyperParameterRanges []*CategoricalHyperParameterRange + CategoricalHyperParameterRanges []CategoricalHyperParameterRange // The continuous hyperparameters and their ranges. - ContinuousHyperParameterRanges []*ContinuousHyperParameterRange + ContinuousHyperParameterRanges []ContinuousHyperParameterRange // The integer-valued hyperparameters and their ranges. - IntegerHyperParameterRanges []*IntegerHyperParameterRange + IntegerHyperParameterRanges []IntegerHyperParameterRange } // Provides the name and range of an integer-valued hyperparameter. type IntegerHyperParameterRange struct { // The maximum allowable value for the hyperparameter. - MaxValue *int32 + MaxValue int32 // The minimum allowable value for the hyperparameter. - MinValue *int32 + MinValue int32 // The name of the hyperparameter. Name *string @@ -976,11 +976,11 @@ type Solution struct { // USER_PERSONALIZATION recipe from the list specified in the solution // configuration (recipeArn must not be specified). When false (the default), // Amazon Personalize uses recipeArn for training. - PerformAutoML *bool + PerformAutoML bool // Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The // default is false. - PerformHPO *bool + PerformHPO bool // The ARN of the recipe used to create the solution. RecipeArn *string @@ -1005,7 +1005,7 @@ type Solution struct { type SolutionConfig struct { // Lists the hyperparameter names and ranges. - AlgorithmHyperParameters map[string]*string + AlgorithmHyperParameters map[string]string // The AutoMLConfig object containing a list of recipes to search when AutoML is // performed. @@ -1016,7 +1016,7 @@ type SolutionConfig struct { EventValueThreshold *string // Lists the feature transformation parameters. - FeatureTransformationParameters map[string]*string + FeatureTransformationParameters map[string]string // Describes the properties for hyperparameter optimization (HPO). HpoConfig *HPOConfig @@ -1070,11 +1070,11 @@ type SolutionVersion struct { // When true, Amazon Personalize searches for the most optimal recipe according to // the solution configuration. When false (the default), Amazon Personalize uses // recipeArn. - PerformAutoML *bool + PerformAutoML bool // Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The // default is false. - PerformHPO *bool + PerformHPO bool // The ARN of the recipe used in the solution. RecipeArn *string @@ -1150,5 +1150,5 @@ type SolutionVersionSummary struct { type TunedHPOParams struct { // A list of the hyperparameter values of the best performing model. - AlgorithmHyperParameters map[string]*string + AlgorithmHyperParameters map[string]string } diff --git a/service/personalizeevents/api_op_PutEvents.go b/service/personalizeevents/api_op_PutEvents.go index 6c67fbae650..e81479979fe 100644 --- a/service/personalizeevents/api_op_PutEvents.go +++ b/service/personalizeevents/api_op_PutEvents.go @@ -32,7 +32,7 @@ type PutEventsInput struct { // A list of event data from the session. // // This member is required. - EventList []*types.Event + EventList []types.Event // The session ID associated with the user's visit. Your application generates the // sessionId when a user first visits your website or uses your application. Amazon diff --git a/service/personalizeevents/api_op_PutItems.go b/service/personalizeevents/api_op_PutItems.go index 58ef12a0ee6..fcb9d55d4c8 100644 --- a/service/personalizeevents/api_op_PutItems.go +++ b/service/personalizeevents/api_op_PutItems.go @@ -39,7 +39,7 @@ type PutItemsInput struct { // A list of item data. // // This member is required. - Items []*types.Item + Items []types.Item } type PutItemsOutput struct { diff --git a/service/personalizeevents/api_op_PutUsers.go b/service/personalizeevents/api_op_PutUsers.go index 5a0c2e1ae08..264ba36fe40 100644 --- a/service/personalizeevents/api_op_PutUsers.go +++ b/service/personalizeevents/api_op_PutUsers.go @@ -39,7 +39,7 @@ type PutUsersInput struct { // A list of user data. // // This member is required. - Users []*types.User + Users []types.User } type PutUsersOutput struct { diff --git a/service/personalizeevents/deserializers.go b/service/personalizeevents/deserializers.go index 644c6ff23f5..544d2c07678 100644 --- a/service/personalizeevents/deserializers.go +++ b/service/personalizeevents/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -372,7 +373,7 @@ func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -412,7 +413,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/personalizeevents/go.mod b/service/personalizeevents/go.mod index 39715740bbf..ba1e9aaf12b 100644 --- a/service/personalizeevents/go.mod +++ b/service/personalizeevents/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/personalizeevents go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/personalizeevents/serializers.go b/service/personalizeevents/serializers.go index f4a1bb00734..3b63c2c476b 100644 --- a/service/personalizeevents/serializers.go +++ b/service/personalizeevents/serializers.go @@ -314,34 +314,26 @@ func awsRestjson1_serializeDocumentEvent(v *types.Event, value smithyjson.Value) return nil } -func awsRestjson1_serializeDocumentEventList(v []*types.Event, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEventList(v []types.Event, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentEvent(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentEvent(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentImpression(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentImpression(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -363,17 +355,13 @@ func awsRestjson1_serializeDocumentItem(v *types.Item, value smithyjson.Value) e return nil } -func awsRestjson1_serializeDocumentItemList(v []*types.Item, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentItemList(v []types.Item, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentItem(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentItem(&v[i], av); err != nil { return err } } @@ -397,17 +385,13 @@ func awsRestjson1_serializeDocumentUser(v *types.User, value smithyjson.Value) e return nil } -func awsRestjson1_serializeDocumentUserList(v []*types.User, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentUserList(v []types.User, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentUser(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentUser(&v[i], av); err != nil { return err } } diff --git a/service/personalizeevents/types/types.go b/service/personalizeevents/types/types.go index 9c0453ceb19..f16156833be 100644 --- a/service/personalizeevents/types/types.go +++ b/service/personalizeevents/types/types.go @@ -34,7 +34,7 @@ type Event struct { // A list of item IDs that represents the sequence of items you have shown the // user. For example, ["itemId1", "itemId2", "itemId3"]. - Impression []*string + Impression []string // The item ID key that corresponds to the ITEM_ID field of the Interactions // schema. diff --git a/service/personalizeevents/validators.go b/service/personalizeevents/validators.go index bade1e7d22e..eaa6d9eead7 100644 --- a/service/personalizeevents/validators.go +++ b/service/personalizeevents/validators.go @@ -100,13 +100,13 @@ func validateEvent(v *types.Event) error { } } -func validateEventList(v []*types.Event) error { +func validateEventList(v []types.Event) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "EventList"} for i := range v { - if err := validateEvent(v[i]); err != nil { + if err := validateEvent(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -132,13 +132,13 @@ func validateItem(v *types.Item) error { } } -func validateItemList(v []*types.Item) error { +func validateItemList(v []types.Item) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ItemList"} for i := range v { - if err := validateItem(v[i]); err != nil { + if err := validateItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -164,13 +164,13 @@ func validateUser(v *types.User) error { } } -func validateUserList(v []*types.User) error { +func validateUserList(v []types.User) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UserList"} for i := range v { - if err := validateUser(v[i]); err != nil { + if err := validateUser(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/personalizeruntime/api_op_GetPersonalizedRanking.go b/service/personalizeruntime/api_op_GetPersonalizedRanking.go index 3d9c4e19a80..1d08e601000 100644 --- a/service/personalizeruntime/api_op_GetPersonalizedRanking.go +++ b/service/personalizeruntime/api_op_GetPersonalizedRanking.go @@ -43,7 +43,7 @@ type GetPersonalizedRankingInput struct { // 500. // // This member is required. - InputList []*string + InputList []string // The user for which you want the campaign to provide a personalized ranking. // @@ -53,7 +53,7 @@ type GetPersonalizedRankingInput struct { // The contextual metadata to use when getting recommendations. Contextual metadata // includes any interaction information that might be relevant when getting a // user's recommendations, such as the user's current location or device type. - Context map[string]*string + Context map[string]string // The Amazon Resource Name (ARN) of a filter you created to include or exclude // items from recommendations for a given user. @@ -64,7 +64,7 @@ type GetPersonalizedRankingOutput struct { // A list of items in order of most likely interest to the user. The maximum is // 500. - PersonalizedRanking []*types.PredictedItem + PersonalizedRanking []types.PredictedItem // The ID of the recommendation. RecommendationId *string diff --git a/service/personalizeruntime/api_op_GetRecommendations.go b/service/personalizeruntime/api_op_GetRecommendations.go index c0c1ea38f95..8fff88dfe7c 100644 --- a/service/personalizeruntime/api_op_GetRecommendations.go +++ b/service/personalizeruntime/api_op_GetRecommendations.go @@ -48,7 +48,7 @@ type GetRecommendationsInput struct { // The contextual metadata to use when getting recommendations. Contextual metadata // includes any interaction information that might be relevant when getting a // user's recommendations, such as the user's current location or device type. - Context map[string]*string + Context map[string]string // The ARN of the filter to apply to the returned recommendations. For more // information, see Using Filters with Amazon Personalize @@ -61,7 +61,7 @@ type GetRecommendationsInput struct { ItemId *string // The number of results to return. The default is 25. The maximum is 500. - NumResults *int32 + NumResults int32 // The user ID to provide recommendations for. Required for USER_PERSONALIZATION // recipe type. @@ -72,7 +72,7 @@ type GetRecommendationsOutput struct { // A list of recommendations sorted in ascending order by prediction score. There // can be a maximum of 500 items in the list. - ItemList []*types.PredictedItem + ItemList []types.PredictedItem // The ID of the recommendation. RecommendationId *string diff --git a/service/personalizeruntime/deserializers.go b/service/personalizeruntime/deserializers.go index f88c606d11d..c4292030e15 100644 --- a/service/personalizeruntime/deserializers.go +++ b/service/personalizeruntime/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -164,7 +165,7 @@ func awsRestjson1_deserializeOpDocumentGetPersonalizedRankingOutput(v **GetPerso if !ok { return fmt.Errorf("expected RecommendationID to be of type string, got %T instead", value) } - sv.RecommendationId = &jtv + sv.RecommendationId = ptr.String(jtv) } default: @@ -323,7 +324,7 @@ func awsRestjson1_deserializeOpDocumentGetRecommendationsOutput(v **GetRecommend if !ok { return fmt.Errorf("expected RecommendationID to be of type string, got %T instead", value) } - sv.RecommendationId = &jtv + sv.RecommendationId = ptr.String(jtv) } default: @@ -435,7 +436,7 @@ func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -447,7 +448,7 @@ func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInpu return nil } -func awsRestjson1_deserializeDocumentItemList(v *[]*types.PredictedItem, value interface{}) error { +func awsRestjson1_deserializeDocumentItemList(v *[]types.PredictedItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -460,18 +461,20 @@ func awsRestjson1_deserializeDocumentItemList(v *[]*types.PredictedItem, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PredictedItem + var cv []types.PredictedItem if *v == nil { - cv = []*types.PredictedItem{} + cv = []types.PredictedItem{} } else { cv = *v } for _, value := range shape { - var col *types.PredictedItem - if err := awsRestjson1_deserializeDocumentPredictedItem(&col, value); err != nil { + var col types.PredictedItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentPredictedItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -507,7 +510,7 @@ func awsRestjson1_deserializeDocumentPredictedItem(v **types.PredictedItem, valu if !ok { return fmt.Errorf("expected ItemID to be of type string, got %T instead", value) } - sv.ItemId = &jtv + sv.ItemId = ptr.String(jtv) } case "score": @@ -520,7 +523,7 @@ func awsRestjson1_deserializeDocumentPredictedItem(v **types.PredictedItem, valu if err != nil { return err } - sv.Score = &f64 + sv.Score = ptr.Float64(f64) } default: @@ -560,7 +563,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/personalizeruntime/go.mod b/service/personalizeruntime/go.mod index b0c574e161f..d10aab59568 100644 --- a/service/personalizeruntime/go.mod +++ b/service/personalizeruntime/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/personalizeruntime go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/personalizeruntime/serializers.go b/service/personalizeruntime/serializers.go index ca88dd93949..4f2c43a82cc 100644 --- a/service/personalizeruntime/serializers.go +++ b/service/personalizeruntime/serializers.go @@ -197,9 +197,9 @@ func awsRestjson1_serializeOpDocumentGetRecommendationsInput(v *GetRecommendatio ok.String(*v.ItemId) } - if v.NumResults != nil { + if v.NumResults != 0 { ok := object.Key("numResults") - ok.Integer(*v.NumResults) + ok.Integer(v.NumResults) } if v.UserId != nil { @@ -210,32 +210,24 @@ func awsRestjson1_serializeOpDocumentGetRecommendationsInput(v *GetRecommendatio return nil } -func awsRestjson1_serializeDocumentContext(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentContext(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentInputList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentInputList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/pi/api_op_DescribeDimensionKeys.go b/service/pi/api_op_DescribeDimensionKeys.go index 3f6dab2e585..3f1e4b418c7 100644 --- a/service/pi/api_op_DescribeDimensionKeys.go +++ b/service/pi/api_op_DescribeDimensionKeys.go @@ -88,7 +88,7 @@ type DescribeDimensionKeysInput struct { // parameters. // // * A single filter for any other dimension in this dimension group. - Filter map[string]*string + Filter map[string]string // The maximum number of items to return in the response. If more items exist than // the specified MaxRecords value, a pagination token is included in the response @@ -138,7 +138,7 @@ type DescribeDimensionKeysOutput struct { AlignedStartTime *time.Time // The dimension keys that were requested. - Keys []*types.DimensionKeyDescription + Keys []types.DimensionKeyDescription // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the token, up to the @@ -147,7 +147,7 @@ type DescribeDimensionKeysOutput struct { // If PartitionBy was present in the request, PartitionKeys contains the breakdown // of dimension keys by the specified partitions. - PartitionKeys []*types.ResponsePartitionKey + PartitionKeys []types.ResponsePartitionKey // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/pi/api_op_GetResourceMetrics.go b/service/pi/api_op_GetResourceMetrics.go index 2d825b76726..3f3a226735d 100644 --- a/service/pi/api_op_GetResourceMetrics.go +++ b/service/pi/api_op_GetResourceMetrics.go @@ -53,7 +53,7 @@ type GetResourceMetricsInput struct { // filtering criteria. // // This member is required. - MetricQueries []*types.MetricQuery + MetricQueries []types.MetricQuery // The AWS service for which Performance Insights will return metrics. The only // valid value for ServiceType is: RDS @@ -120,7 +120,7 @@ type GetResourceMetricsOutput struct { // An array of metric results,, where each array element contains all of the data // points for a particular dimension. - MetricList []*types.MetricKeyDataPoints + MetricList []types.MetricKeyDataPoints // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the token, up to the diff --git a/service/pi/deserializers.go b/service/pi/deserializers.go index 6804ef05253..82c6b09a9d7 100644 --- a/service/pi/deserializers.go +++ b/service/pi/deserializers.go @@ -403,7 +403,7 @@ func awsAwsjson11_deserializeDocumentDataPoint(v **types.DataPoint, value interf if err != nil { return err } - sv.Value = &f64 + sv.Value = ptr.Float64(f64) } default: @@ -415,7 +415,7 @@ func awsAwsjson11_deserializeDocumentDataPoint(v **types.DataPoint, value interf return nil } -func awsAwsjson11_deserializeDocumentDataPointsList(v *[]*types.DataPoint, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataPointsList(v *[]types.DataPoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -428,18 +428,20 @@ func awsAwsjson11_deserializeDocumentDataPointsList(v *[]*types.DataPoint, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataPoint + var cv []types.DataPoint if *v == nil { - cv = []*types.DataPoint{} + cv = []types.DataPoint{} } else { cv = *v } for _, value := range shape { - var col *types.DataPoint - if err := awsAwsjson11_deserializeDocumentDataPoint(&col, value); err != nil { + var col types.DataPoint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataPoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -489,7 +491,7 @@ func awsAwsjson11_deserializeDocumentDimensionKeyDescription(v **types.Dimension if err != nil { return err } - sv.Total = &f64 + sv.Total = ptr.Float64(f64) } default: @@ -501,7 +503,7 @@ func awsAwsjson11_deserializeDocumentDimensionKeyDescription(v **types.Dimension return nil } -func awsAwsjson11_deserializeDocumentDimensionKeyDescriptionList(v *[]*types.DimensionKeyDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentDimensionKeyDescriptionList(v *[]types.DimensionKeyDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -514,18 +516,20 @@ func awsAwsjson11_deserializeDocumentDimensionKeyDescriptionList(v *[]*types.Dim return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DimensionKeyDescription + var cv []types.DimensionKeyDescription if *v == nil { - cv = []*types.DimensionKeyDescription{} + cv = []types.DimensionKeyDescription{} } else { cv = *v } for _, value := range shape { - var col *types.DimensionKeyDescription - if err := awsAwsjson11_deserializeDocumentDimensionKeyDescription(&col, value); err != nil { + var col types.DimensionKeyDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDimensionKeyDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -533,7 +537,7 @@ func awsAwsjson11_deserializeDocumentDimensionKeyDescriptionList(v *[]*types.Dim return nil } -func awsAwsjson11_deserializeDocumentDimensionMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDimensionMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -546,21 +550,21 @@ func awsAwsjson11_deserializeDocumentDimensionMap(v *map[string]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -597,7 +601,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceError(v **types.InternalServ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -637,7 +641,7 @@ func awsAwsjson11_deserializeDocumentInvalidArgumentException(v **types.InvalidA if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -690,7 +694,7 @@ func awsAwsjson11_deserializeDocumentMetricKeyDataPoints(v **types.MetricKeyData return nil } -func awsAwsjson11_deserializeDocumentMetricKeyDataPointsList(v *[]*types.MetricKeyDataPoints, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricKeyDataPointsList(v *[]types.MetricKeyDataPoints, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -703,18 +707,20 @@ func awsAwsjson11_deserializeDocumentMetricKeyDataPointsList(v *[]*types.MetricK return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MetricKeyDataPoints + var cv []types.MetricKeyDataPoints if *v == nil { - cv = []*types.MetricKeyDataPoints{} + cv = []types.MetricKeyDataPoints{} } else { cv = *v } for _, value := range shape { - var col *types.MetricKeyDataPoints - if err := awsAwsjson11_deserializeDocumentMetricKeyDataPoints(&col, value); err != nil { + var col types.MetricKeyDataPoints + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMetricKeyDataPoints(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -722,7 +728,7 @@ func awsAwsjson11_deserializeDocumentMetricKeyDataPointsList(v *[]*types.MetricK return nil } -func awsAwsjson11_deserializeDocumentMetricValuesList(v *[]*float64, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricValuesList(v *[]float64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -735,15 +741,15 @@ func awsAwsjson11_deserializeDocumentMetricValuesList(v *[]*float64, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*float64 + var cv []float64 if *v == nil { - cv = []*float64{} + cv = []float64{} } else { cv = *v } for _, value := range shape { - var col *float64 + var col float64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -753,7 +759,7 @@ func awsAwsjson11_deserializeDocumentMetricValuesList(v *[]*float64, value inter if err != nil { return err } - col = &f64 + col = f64 } cv = append(cv, col) @@ -790,7 +796,7 @@ func awsAwsjson11_deserializeDocumentNotAuthorizedException(v **types.NotAuthori if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -838,7 +844,7 @@ func awsAwsjson11_deserializeDocumentResponsePartitionKey(v **types.ResponsePart return nil } -func awsAwsjson11_deserializeDocumentResponsePartitionKeyList(v *[]*types.ResponsePartitionKey, value interface{}) error { +func awsAwsjson11_deserializeDocumentResponsePartitionKeyList(v *[]types.ResponsePartitionKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -851,18 +857,20 @@ func awsAwsjson11_deserializeDocumentResponsePartitionKeyList(v *[]*types.Respon return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResponsePartitionKey + var cv []types.ResponsePartitionKey if *v == nil { - cv = []*types.ResponsePartitionKey{} + cv = []types.ResponsePartitionKey{} } else { cv = *v } for _, value := range shape { - var col *types.ResponsePartitionKey - if err := awsAwsjson11_deserializeDocumentResponsePartitionKey(&col, value); err != nil { + var col types.ResponsePartitionKey + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResponsePartitionKey(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -903,7 +911,7 @@ func awsAwsjson11_deserializeDocumentResponseResourceMetricKey(v **types.Respons if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Metric = &jtv + sv.Metric = ptr.String(jtv) } default: @@ -974,7 +982,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDimensionKeysOutput(v **DescribeD if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PartitionKeys": @@ -1045,7 +1053,7 @@ func awsAwsjson11_deserializeOpDocumentGetResourceMetricsOutput(v **GetResourceM if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Identifier = &jtv + sv.Identifier = ptr.String(jtv) } case "MetricList": @@ -1059,7 +1067,7 @@ func awsAwsjson11_deserializeOpDocumentGetResourceMetricsOutput(v **GetResourceM if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: diff --git a/service/pi/go.mod b/service/pi/go.mod index 12b29a51c22..afafe3978a6 100644 --- a/service/pi/go.mod +++ b/service/pi/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/pi go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/pi/serializers.go b/service/pi/serializers.go index e1a4084fed8..146f4e7aab3 100644 --- a/service/pi/serializers.go +++ b/service/pi/serializers.go @@ -156,49 +156,37 @@ func awsAwsjson11_serializeDocumentMetricQuery(v *types.MetricQuery, value smith return nil } -func awsAwsjson11_serializeDocumentMetricQueryFilterMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMetricQueryFilterMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentMetricQueryList(v []*types.MetricQuery, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMetricQueryList(v []types.MetricQuery, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMetricQuery(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMetricQuery(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/pi/types/types.go b/service/pi/types/types.go index cb260a2916d..8e7c986bdc2 100644 --- a/service/pi/types/types.go +++ b/service/pi/types/types.go @@ -80,7 +80,7 @@ type DimensionGroup struct { // // * // db.wait_event_type.name - Dimensions []*string + Dimensions []string // The maximum number of items to fetch for this dimension group. Limit *int32 @@ -91,10 +91,10 @@ type DimensionGroup struct { type DimensionKeyDescription struct { // A map of name-value pairs for the dimensions in the group. - Dimensions map[string]*string + Dimensions map[string]string // If PartitionBy was specified, PartitionKeys contains the dimensions that were. - Partitions []*float64 + Partitions []float64 // The aggregated metric value for the dimension(s), over the requested time range. Total *float64 @@ -106,7 +106,7 @@ type MetricKeyDataPoints struct { // An array of timestamp-value pairs, representing measurements over a period of // time. - DataPoints []*DataPoint + DataPoints []DataPoint // The dimension(s) to which the data points apply. Key *ResponseResourceMetricKey @@ -138,7 +138,7 @@ type MetricQuery struct { // // * A // single filter for any other dimension in this dimension group. - Filter map[string]*string + Filter map[string]string // A specification for how to aggregate the data points from a query result. You // must specify a valid dimension group. Performance Insights will return all of @@ -155,7 +155,7 @@ type ResponsePartitionKey struct { // A dimension map that contains the dimension(s) for this partition. // // This member is required. - Dimensions map[string]*string + Dimensions map[string]string } // An object describing a Performance Insights metric and one or more dimensions @@ -175,5 +175,5 @@ type ResponseResourceMetricKey struct { Metric *string // The valid dimensions for the metric. - Dimensions map[string]*string + Dimensions map[string]string } diff --git a/service/pi/validators.go b/service/pi/validators.go index 55153a24756..f5fc5411503 100644 --- a/service/pi/validators.go +++ b/service/pi/validators.go @@ -93,13 +93,13 @@ func validateMetricQuery(v *types.MetricQuery) error { } } -func validateMetricQueryList(v []*types.MetricQuery) error { +func validateMetricQueryList(v []types.MetricQuery) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MetricQueryList"} for i := range v { - if err := validateMetricQuery(v[i]); err != nil { + if err := validateMetricQuery(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/pinpoint/api_op_UntagResource.go b/service/pinpoint/api_op_UntagResource.go index 1eb10be0e9c..e4bdad50d66 100644 --- a/service/pinpoint/api_op_UntagResource.go +++ b/service/pinpoint/api_op_UntagResource.go @@ -39,7 +39,7 @@ type UntagResourceInput struct { // by an ampersand (&). // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/pinpoint/api_op_UpdateEmailTemplate.go b/service/pinpoint/api_op_UpdateEmailTemplate.go index 4d9837bed73..eb0494dbcd9 100644 --- a/service/pinpoint/api_op_UpdateEmailTemplate.go +++ b/service/pinpoint/api_op_UpdateEmailTemplate.go @@ -51,7 +51,7 @@ type UpdateEmailTemplateInput struct { // (overwrites) the latest existing version of the template. If you specify a value // of true for this parameter, don't specify a value for the version parameter. // Otherwise, an error will occur. - CreateNewVersion *bool + CreateNewVersion bool // The unique identifier for the version of the message template to update, // retrieve information about, or delete. To retrieve identifiers and other diff --git a/service/pinpoint/api_op_UpdatePushTemplate.go b/service/pinpoint/api_op_UpdatePushTemplate.go index 06a8f11a7f1..e2d983e7fd4 100644 --- a/service/pinpoint/api_op_UpdatePushTemplate.go +++ b/service/pinpoint/api_op_UpdatePushTemplate.go @@ -51,7 +51,7 @@ type UpdatePushTemplateInput struct { // (overwrites) the latest existing version of the template. If you specify a value // of true for this parameter, don't specify a value for the version parameter. // Otherwise, an error will occur. - CreateNewVersion *bool + CreateNewVersion bool // The unique identifier for the version of the message template to update, // retrieve information about, or delete. To retrieve identifiers and other diff --git a/service/pinpoint/api_op_UpdateSmsTemplate.go b/service/pinpoint/api_op_UpdateSmsTemplate.go index cd7c2a13441..5301483c3d0 100644 --- a/service/pinpoint/api_op_UpdateSmsTemplate.go +++ b/service/pinpoint/api_op_UpdateSmsTemplate.go @@ -51,7 +51,7 @@ type UpdateSmsTemplateInput struct { // (overwrites) the latest existing version of the template. If you specify a value // of true for this parameter, don't specify a value for the version parameter. // Otherwise, an error will occur. - CreateNewVersion *bool + CreateNewVersion bool // The unique identifier for the version of the message template to update, // retrieve information about, or delete. To retrieve identifiers and other diff --git a/service/pinpoint/api_op_UpdateVoiceTemplate.go b/service/pinpoint/api_op_UpdateVoiceTemplate.go index d862f5d079e..23da936b9f2 100644 --- a/service/pinpoint/api_op_UpdateVoiceTemplate.go +++ b/service/pinpoint/api_op_UpdateVoiceTemplate.go @@ -51,7 +51,7 @@ type UpdateVoiceTemplateInput struct { // (overwrites) the latest existing version of the template. If you specify a value // of true for this parameter, don't specify a value for the version parameter. // Otherwise, an error will occur. - CreateNewVersion *bool + CreateNewVersion bool // The unique identifier for the version of the message template to update, // retrieve information about, or delete. To retrieve identifiers and other diff --git a/service/pinpoint/deserializers.go b/service/pinpoint/deserializers.go index 2742b74eba7..3628eea462d 100644 --- a/service/pinpoint/deserializers.go +++ b/service/pinpoint/deserializers.go @@ -18602,7 +18602,7 @@ func awsRestjson1_deserializeDocumentActivitiesResponse(v **types.ActivitiesResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -18652,7 +18652,7 @@ func awsRestjson1_deserializeDocumentActivity(v **types.Activity, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EMAIL": @@ -18727,7 +18727,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CampaignId": @@ -18736,7 +18736,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CampaignId = &jtv + sv.CampaignId = ptr.String(jtv) } case "End": @@ -18745,7 +18745,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.End = &jtv + sv.End = ptr.String(jtv) } case "Id": @@ -18754,7 +18754,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Result": @@ -18763,7 +18763,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Result = &jtv + sv.Result = ptr.String(jtv) } case "ScheduledStart": @@ -18772,7 +18772,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ScheduledStart = &jtv + sv.ScheduledStart = ptr.String(jtv) } case "Start": @@ -18781,7 +18781,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Start = &jtv + sv.Start = ptr.String(jtv) } case "State": @@ -18790,7 +18790,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } case "SuccessfulEndpointCount": @@ -18803,7 +18803,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if err != nil { return err } - sv.SuccessfulEndpointCount = ptr.Int32(int32(i64)) + sv.SuccessfulEndpointCount = int32(i64) } case "TimezonesCompletedCount": @@ -18816,7 +18816,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if err != nil { return err } - sv.TimezonesCompletedCount = ptr.Int32(int32(i64)) + sv.TimezonesCompletedCount = int32(i64) } case "TimezonesTotalCount": @@ -18829,7 +18829,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if err != nil { return err } - sv.TimezonesTotalCount = ptr.Int32(int32(i64)) + sv.TimezonesTotalCount = int32(i64) } case "TotalEndpointCount": @@ -18842,7 +18842,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if err != nil { return err } - sv.TotalEndpointCount = ptr.Int32(int32(i64)) + sv.TotalEndpointCount = int32(i64) } case "TreatmentId": @@ -18851,7 +18851,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TreatmentId = &jtv + sv.TreatmentId = ptr.String(jtv) } default: @@ -18891,7 +18891,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CreationDate": @@ -18900,7 +18900,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Enabled": @@ -18909,7 +18909,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "HasCredential": @@ -18918,7 +18918,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = &jtv + sv.HasCredential = jtv } case "Id": @@ -18927,7 +18927,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IsArchived": @@ -18936,7 +18936,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = &jtv + sv.IsArchived = jtv } case "LastModifiedBy": @@ -18945,7 +18945,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedDate": @@ -18954,7 +18954,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Platform": @@ -18963,7 +18963,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "Version": @@ -18976,7 +18976,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -19025,7 +19025,7 @@ func awsRestjson1_deserializeDocumentAndroidPushNotificationTemplate(v **types.A if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Body = &jtv + sv.Body = ptr.String(jtv) } case "ImageIconUrl": @@ -19034,7 +19034,7 @@ func awsRestjson1_deserializeDocumentAndroidPushNotificationTemplate(v **types.A if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ImageIconUrl = &jtv + sv.ImageIconUrl = ptr.String(jtv) } case "ImageUrl": @@ -19043,7 +19043,7 @@ func awsRestjson1_deserializeDocumentAndroidPushNotificationTemplate(v **types.A if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ImageUrl = &jtv + sv.ImageUrl = ptr.String(jtv) } case "RawContent": @@ -19052,7 +19052,7 @@ func awsRestjson1_deserializeDocumentAndroidPushNotificationTemplate(v **types.A if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RawContent = &jtv + sv.RawContent = ptr.String(jtv) } case "SmallImageIconUrl": @@ -19061,7 +19061,7 @@ func awsRestjson1_deserializeDocumentAndroidPushNotificationTemplate(v **types.A if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SmallImageIconUrl = &jtv + sv.SmallImageIconUrl = ptr.String(jtv) } case "Sound": @@ -19070,7 +19070,7 @@ func awsRestjson1_deserializeDocumentAndroidPushNotificationTemplate(v **types.A if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Sound = &jtv + sv.Sound = ptr.String(jtv) } case "Title": @@ -19079,7 +19079,7 @@ func awsRestjson1_deserializeDocumentAndroidPushNotificationTemplate(v **types.A if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } case "Url": @@ -19088,7 +19088,7 @@ func awsRestjson1_deserializeDocumentAndroidPushNotificationTemplate(v **types.A if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -19128,7 +19128,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CreationDate": @@ -19137,7 +19137,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "DefaultAuthenticationMethod": @@ -19146,7 +19146,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DefaultAuthenticationMethod = &jtv + sv.DefaultAuthenticationMethod = ptr.String(jtv) } case "Enabled": @@ -19155,7 +19155,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "HasCredential": @@ -19164,7 +19164,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = &jtv + sv.HasCredential = jtv } case "HasTokenKey": @@ -19173,7 +19173,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasTokenKey = &jtv + sv.HasTokenKey = jtv } case "Id": @@ -19182,7 +19182,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IsArchived": @@ -19191,7 +19191,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = &jtv + sv.IsArchived = jtv } case "LastModifiedBy": @@ -19200,7 +19200,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedDate": @@ -19209,7 +19209,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Platform": @@ -19218,7 +19218,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "Version": @@ -19231,7 +19231,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -19280,7 +19280,7 @@ func awsRestjson1_deserializeDocumentAPNSPushNotificationTemplate(v **types.APNS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Body = &jtv + sv.Body = ptr.String(jtv) } case "MediaUrl": @@ -19289,7 +19289,7 @@ func awsRestjson1_deserializeDocumentAPNSPushNotificationTemplate(v **types.APNS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MediaUrl = &jtv + sv.MediaUrl = ptr.String(jtv) } case "RawContent": @@ -19298,7 +19298,7 @@ func awsRestjson1_deserializeDocumentAPNSPushNotificationTemplate(v **types.APNS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RawContent = &jtv + sv.RawContent = ptr.String(jtv) } case "Sound": @@ -19307,7 +19307,7 @@ func awsRestjson1_deserializeDocumentAPNSPushNotificationTemplate(v **types.APNS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Sound = &jtv + sv.Sound = ptr.String(jtv) } case "Title": @@ -19316,7 +19316,7 @@ func awsRestjson1_deserializeDocumentAPNSPushNotificationTemplate(v **types.APNS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } case "Url": @@ -19325,7 +19325,7 @@ func awsRestjson1_deserializeDocumentAPNSPushNotificationTemplate(v **types.APNS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -19365,7 +19365,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CreationDate": @@ -19374,7 +19374,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "DefaultAuthenticationMethod": @@ -19383,7 +19383,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DefaultAuthenticationMethod = &jtv + sv.DefaultAuthenticationMethod = ptr.String(jtv) } case "Enabled": @@ -19392,7 +19392,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "HasCredential": @@ -19401,7 +19401,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = &jtv + sv.HasCredential = jtv } case "HasTokenKey": @@ -19410,7 +19410,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasTokenKey = &jtv + sv.HasTokenKey = jtv } case "Id": @@ -19419,7 +19419,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IsArchived": @@ -19428,7 +19428,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = &jtv + sv.IsArchived = jtv } case "LastModifiedBy": @@ -19437,7 +19437,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedDate": @@ -19446,7 +19446,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Platform": @@ -19455,7 +19455,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "Version": @@ -19468,7 +19468,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -19508,7 +19508,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CreationDate": @@ -19517,7 +19517,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "DefaultAuthenticationMethod": @@ -19526,7 +19526,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DefaultAuthenticationMethod = &jtv + sv.DefaultAuthenticationMethod = ptr.String(jtv) } case "Enabled": @@ -19535,7 +19535,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "HasCredential": @@ -19544,7 +19544,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = &jtv + sv.HasCredential = jtv } case "HasTokenKey": @@ -19553,7 +19553,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasTokenKey = &jtv + sv.HasTokenKey = jtv } case "Id": @@ -19562,7 +19562,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IsArchived": @@ -19571,7 +19571,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = &jtv + sv.IsArchived = jtv } case "LastModifiedBy": @@ -19580,7 +19580,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedDate": @@ -19589,7 +19589,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Platform": @@ -19598,7 +19598,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "Version": @@ -19611,7 +19611,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -19651,7 +19651,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CreationDate": @@ -19660,7 +19660,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "DefaultAuthenticationMethod": @@ -19669,7 +19669,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DefaultAuthenticationMethod = &jtv + sv.DefaultAuthenticationMethod = ptr.String(jtv) } case "Enabled": @@ -19678,7 +19678,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "HasCredential": @@ -19687,7 +19687,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = &jtv + sv.HasCredential = jtv } case "HasTokenKey": @@ -19696,7 +19696,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasTokenKey = &jtv + sv.HasTokenKey = jtv } case "Id": @@ -19705,7 +19705,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IsArchived": @@ -19714,7 +19714,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = &jtv + sv.IsArchived = jtv } case "LastModifiedBy": @@ -19723,7 +19723,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedDate": @@ -19732,7 +19732,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Platform": @@ -19741,7 +19741,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "Version": @@ -19754,7 +19754,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -19794,7 +19794,7 @@ func awsRestjson1_deserializeDocumentApplicationDateRangeKpiResponse(v **types.A if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "EndTime": @@ -19807,7 +19807,7 @@ func awsRestjson1_deserializeDocumentApplicationDateRangeKpiResponse(v **types.A if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case "KpiName": @@ -19816,7 +19816,7 @@ func awsRestjson1_deserializeDocumentApplicationDateRangeKpiResponse(v **types.A if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KpiName = &jtv + sv.KpiName = ptr.String(jtv) } case "KpiResult": @@ -19830,7 +19830,7 @@ func awsRestjson1_deserializeDocumentApplicationDateRangeKpiResponse(v **types.A if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StartTime": @@ -19843,7 +19843,7 @@ func awsRestjson1_deserializeDocumentApplicationDateRangeKpiResponse(v **types.A if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } default: @@ -19883,7 +19883,7 @@ func awsRestjson1_deserializeDocumentApplicationResponse(v **types.ApplicationRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Id": @@ -19892,7 +19892,7 @@ func awsRestjson1_deserializeDocumentApplicationResponse(v **types.ApplicationRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -19901,7 +19901,7 @@ func awsRestjson1_deserializeDocumentApplicationResponse(v **types.ApplicationRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -19946,7 +19946,7 @@ func awsRestjson1_deserializeDocumentApplicationSettingsResource(v **types.Appli if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CampaignHook": @@ -19960,7 +19960,7 @@ func awsRestjson1_deserializeDocumentApplicationSettingsResource(v **types.Appli if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Limits": @@ -20015,7 +20015,7 @@ func awsRestjson1_deserializeDocumentApplicationsResponse(v **types.Applications if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -20100,7 +20100,7 @@ func awsRestjson1_deserializeDocumentAttributesResource(v **types.AttributesReso if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "Attributes": @@ -20114,7 +20114,7 @@ func awsRestjson1_deserializeDocumentAttributesResource(v **types.AttributesReso if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AttributeType = &jtv + sv.AttributeType = ptr.String(jtv) } default: @@ -20154,7 +20154,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestID": @@ -20163,7 +20163,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestID = &jtv + sv.RequestID = ptr.String(jtv) } default: @@ -20203,7 +20203,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CreationDate": @@ -20212,7 +20212,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Credential": @@ -20221,7 +20221,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Credential = &jtv + sv.Credential = ptr.String(jtv) } case "Enabled": @@ -20230,7 +20230,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "HasCredential": @@ -20239,7 +20239,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = &jtv + sv.HasCredential = jtv } case "Id": @@ -20248,7 +20248,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IsArchived": @@ -20257,7 +20257,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = &jtv + sv.IsArchived = jtv } case "LastModifiedBy": @@ -20266,7 +20266,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedDate": @@ -20275,7 +20275,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Platform": @@ -20284,7 +20284,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "Version": @@ -20297,7 +20297,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -20373,7 +20373,7 @@ func awsRestjson1_deserializeDocumentCampaignCustomMessage(v **types.CampaignCus if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Data = &jtv + sv.Data = ptr.String(jtv) } default: @@ -20413,7 +20413,7 @@ func awsRestjson1_deserializeDocumentCampaignDateRangeKpiResponse(v **types.Camp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CampaignId": @@ -20422,7 +20422,7 @@ func awsRestjson1_deserializeDocumentCampaignDateRangeKpiResponse(v **types.Camp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CampaignId = &jtv + sv.CampaignId = ptr.String(jtv) } case "EndTime": @@ -20435,7 +20435,7 @@ func awsRestjson1_deserializeDocumentCampaignDateRangeKpiResponse(v **types.Camp if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case "KpiName": @@ -20444,7 +20444,7 @@ func awsRestjson1_deserializeDocumentCampaignDateRangeKpiResponse(v **types.Camp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KpiName = &jtv + sv.KpiName = ptr.String(jtv) } case "KpiResult": @@ -20458,7 +20458,7 @@ func awsRestjson1_deserializeDocumentCampaignDateRangeKpiResponse(v **types.Camp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StartTime": @@ -20471,7 +20471,7 @@ func awsRestjson1_deserializeDocumentCampaignDateRangeKpiResponse(v **types.Camp if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } default: @@ -20511,7 +20511,7 @@ func awsRestjson1_deserializeDocumentCampaignEmailMessage(v **types.CampaignEmai if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Body = &jtv + sv.Body = ptr.String(jtv) } case "FromAddress": @@ -20520,7 +20520,7 @@ func awsRestjson1_deserializeDocumentCampaignEmailMessage(v **types.CampaignEmai if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FromAddress = &jtv + sv.FromAddress = ptr.String(jtv) } case "HtmlBody": @@ -20529,7 +20529,7 @@ func awsRestjson1_deserializeDocumentCampaignEmailMessage(v **types.CampaignEmai if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.HtmlBody = &jtv + sv.HtmlBody = ptr.String(jtv) } case "Title": @@ -20538,7 +20538,7 @@ func awsRestjson1_deserializeDocumentCampaignEmailMessage(v **types.CampaignEmai if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } default: @@ -20623,7 +20623,7 @@ func awsRestjson1_deserializeDocumentCampaignHook(v **types.CampaignHook, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LambdaFunctionName = &jtv + sv.LambdaFunctionName = ptr.String(jtv) } case "Mode": @@ -20641,7 +20641,7 @@ func awsRestjson1_deserializeDocumentCampaignHook(v **types.CampaignHook, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.WebUrl = &jtv + sv.WebUrl = ptr.String(jtv) } default: @@ -20685,7 +20685,7 @@ func awsRestjson1_deserializeDocumentCampaignLimits(v **types.CampaignLimits, va if err != nil { return err } - sv.Daily = ptr.Int32(int32(i64)) + sv.Daily = int32(i64) } case "MaximumDuration": @@ -20698,7 +20698,7 @@ func awsRestjson1_deserializeDocumentCampaignLimits(v **types.CampaignLimits, va if err != nil { return err } - sv.MaximumDuration = ptr.Int32(int32(i64)) + sv.MaximumDuration = int32(i64) } case "MessagesPerSecond": @@ -20711,7 +20711,7 @@ func awsRestjson1_deserializeDocumentCampaignLimits(v **types.CampaignLimits, va if err != nil { return err } - sv.MessagesPerSecond = ptr.Int32(int32(i64)) + sv.MessagesPerSecond = int32(i64) } case "Total": @@ -20724,7 +20724,7 @@ func awsRestjson1_deserializeDocumentCampaignLimits(v **types.CampaignLimits, va if err != nil { return err } - sv.Total = ptr.Int32(int32(i64)) + sv.Total = int32(i64) } default: @@ -20769,7 +20769,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "Arn": @@ -20778,7 +20778,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationDate": @@ -20787,7 +20787,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "CustomDeliveryConfiguration": @@ -20806,7 +20806,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "HoldoutPercent": @@ -20819,7 +20819,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if err != nil { return err } - sv.HoldoutPercent = ptr.Int32(int32(i64)) + sv.HoldoutPercent = int32(i64) } case "Hook": @@ -20833,7 +20833,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IsPaused": @@ -20842,7 +20842,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsPaused = &jtv + sv.IsPaused = jtv } case "LastModifiedDate": @@ -20851,7 +20851,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Limits": @@ -20870,7 +20870,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Schedule": @@ -20884,7 +20884,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SegmentId = &jtv + sv.SegmentId = ptr.String(jtv) } case "SegmentVersion": @@ -20897,7 +20897,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if err != nil { return err } - sv.SegmentVersion = ptr.Int32(int32(i64)) + sv.SegmentVersion = int32(i64) } case "State": @@ -20921,7 +20921,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TreatmentDescription = &jtv + sv.TreatmentDescription = ptr.String(jtv) } case "TreatmentName": @@ -20930,7 +20930,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TreatmentName = &jtv + sv.TreatmentName = ptr.String(jtv) } case "Version": @@ -20943,7 +20943,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -20983,7 +20983,7 @@ func awsRestjson1_deserializeDocumentCampaignSmsMessage(v **types.CampaignSmsMes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Body = &jtv + sv.Body = ptr.String(jtv) } case "MessageType": @@ -21001,7 +21001,7 @@ func awsRestjson1_deserializeDocumentCampaignSmsMessage(v **types.CampaignSmsMes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SenderId = &jtv + sv.SenderId = ptr.String(jtv) } default: @@ -21046,7 +21046,7 @@ func awsRestjson1_deserializeDocumentCampaignsResponse(v **types.CampaignsRespon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -21126,7 +21126,7 @@ func awsRestjson1_deserializeDocumentChannelResponse(v **types.ChannelResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CreationDate": @@ -21135,7 +21135,7 @@ func awsRestjson1_deserializeDocumentChannelResponse(v **types.ChannelResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Enabled": @@ -21144,7 +21144,7 @@ func awsRestjson1_deserializeDocumentChannelResponse(v **types.ChannelResponse, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "HasCredential": @@ -21153,7 +21153,7 @@ func awsRestjson1_deserializeDocumentChannelResponse(v **types.ChannelResponse, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = &jtv + sv.HasCredential = jtv } case "Id": @@ -21162,7 +21162,7 @@ func awsRestjson1_deserializeDocumentChannelResponse(v **types.ChannelResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IsArchived": @@ -21171,7 +21171,7 @@ func awsRestjson1_deserializeDocumentChannelResponse(v **types.ChannelResponse, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = &jtv + sv.IsArchived = jtv } case "LastModifiedBy": @@ -21180,7 +21180,7 @@ func awsRestjson1_deserializeDocumentChannelResponse(v **types.ChannelResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedDate": @@ -21189,7 +21189,7 @@ func awsRestjson1_deserializeDocumentChannelResponse(v **types.ChannelResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Version": @@ -21202,7 +21202,7 @@ func awsRestjson1_deserializeDocumentChannelResponse(v **types.ChannelResponse, if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -21333,7 +21333,7 @@ func awsRestjson1_deserializeDocumentConditionalSplitActivity(v **types.Conditio if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FalseActivity = &jtv + sv.FalseActivity = ptr.String(jtv) } case "TrueActivity": @@ -21342,7 +21342,7 @@ func awsRestjson1_deserializeDocumentConditionalSplitActivity(v **types.Conditio if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TrueActivity = &jtv + sv.TrueActivity = ptr.String(jtv) } default: @@ -21382,7 +21382,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestID": @@ -21391,7 +21391,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestID = &jtv + sv.RequestID = ptr.String(jtv) } default: @@ -21431,7 +21431,7 @@ func awsRestjson1_deserializeDocumentCreateTemplateMessageBody(v **types.CreateT if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Message": @@ -21440,7 +21440,7 @@ func awsRestjson1_deserializeDocumentCreateTemplateMessageBody(v **types.CreateT if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestID": @@ -21449,7 +21449,7 @@ func awsRestjson1_deserializeDocumentCreateTemplateMessageBody(v **types.CreateT if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestID = &jtv + sv.RequestID = ptr.String(jtv) } default: @@ -21489,7 +21489,7 @@ func awsRestjson1_deserializeDocumentCustomDeliveryConfiguration(v **types.Custo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeliveryUri = &jtv + sv.DeliveryUri = ptr.String(jtv) } case "EndpointTypes": @@ -21534,7 +21534,7 @@ func awsRestjson1_deserializeDocumentCustomMessageActivity(v **types.CustomMessa if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DeliveryUri = &jtv + sv.DeliveryUri = ptr.String(jtv) } case "EndpointTypes": @@ -21553,7 +21553,7 @@ func awsRestjson1_deserializeDocumentCustomMessageActivity(v **types.CustomMessa if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextActivity = &jtv + sv.NextActivity = ptr.String(jtv) } case "TemplateName": @@ -21562,7 +21562,7 @@ func awsRestjson1_deserializeDocumentCustomMessageActivity(v **types.CustomMessa if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } case "TemplateVersion": @@ -21571,7 +21571,7 @@ func awsRestjson1_deserializeDocumentCustomMessageActivity(v **types.CustomMessa if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateVersion = &jtv + sv.TemplateVersion = ptr.String(jtv) } default: @@ -21620,7 +21620,7 @@ func awsRestjson1_deserializeDocumentDefaultPushNotificationTemplate(v **types.D if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Body = &jtv + sv.Body = ptr.String(jtv) } case "Sound": @@ -21629,7 +21629,7 @@ func awsRestjson1_deserializeDocumentDefaultPushNotificationTemplate(v **types.D if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Sound = &jtv + sv.Sound = ptr.String(jtv) } case "Title": @@ -21638,7 +21638,7 @@ func awsRestjson1_deserializeDocumentDefaultPushNotificationTemplate(v **types.D if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } case "Url": @@ -21647,7 +21647,7 @@ func awsRestjson1_deserializeDocumentDefaultPushNotificationTemplate(v **types.D if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -21687,7 +21687,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "ConfigurationSet": @@ -21696,7 +21696,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ConfigurationSet = &jtv + sv.ConfigurationSet = ptr.String(jtv) } case "CreationDate": @@ -21705,7 +21705,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Enabled": @@ -21714,7 +21714,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "FromAddress": @@ -21723,7 +21723,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FromAddress = &jtv + sv.FromAddress = ptr.String(jtv) } case "HasCredential": @@ -21732,7 +21732,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = &jtv + sv.HasCredential = jtv } case "Id": @@ -21741,7 +21741,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Identity": @@ -21750,7 +21750,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Identity = &jtv + sv.Identity = ptr.String(jtv) } case "IsArchived": @@ -21759,7 +21759,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = &jtv + sv.IsArchived = jtv } case "LastModifiedBy": @@ -21768,7 +21768,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedDate": @@ -21777,7 +21777,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "MessagesPerSecond": @@ -21790,7 +21790,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if err != nil { return err } - sv.MessagesPerSecond = ptr.Int32(int32(i64)) + sv.MessagesPerSecond = int32(i64) } case "Platform": @@ -21799,7 +21799,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "RoleArn": @@ -21808,7 +21808,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "Version": @@ -21821,7 +21821,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -21866,7 +21866,7 @@ func awsRestjson1_deserializeDocumentEmailMessageActivity(v **types.EmailMessage if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextActivity = &jtv + sv.NextActivity = ptr.String(jtv) } case "TemplateName": @@ -21875,7 +21875,7 @@ func awsRestjson1_deserializeDocumentEmailMessageActivity(v **types.EmailMessage if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } case "TemplateVersion": @@ -21884,7 +21884,7 @@ func awsRestjson1_deserializeDocumentEmailMessageActivity(v **types.EmailMessage if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateVersion = &jtv + sv.TemplateVersion = ptr.String(jtv) } default: @@ -21924,7 +21924,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateResponse(v **types.EmailTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationDate": @@ -21933,7 +21933,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateResponse(v **types.EmailTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "DefaultSubstitutions": @@ -21942,7 +21942,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateResponse(v **types.EmailTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DefaultSubstitutions = &jtv + sv.DefaultSubstitutions = ptr.String(jtv) } case "HtmlPart": @@ -21951,7 +21951,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateResponse(v **types.EmailTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.HtmlPart = &jtv + sv.HtmlPart = ptr.String(jtv) } case "LastModifiedDate": @@ -21960,7 +21960,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateResponse(v **types.EmailTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "RecommenderId": @@ -21969,7 +21969,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateResponse(v **types.EmailTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RecommenderId = &jtv + sv.RecommenderId = ptr.String(jtv) } case "Subject": @@ -21978,7 +21978,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateResponse(v **types.EmailTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Subject = &jtv + sv.Subject = ptr.String(jtv) } case "tags": @@ -21992,7 +21992,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateResponse(v **types.EmailTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateDescription = &jtv + sv.TemplateDescription = ptr.String(jtv) } case "TemplateName": @@ -22001,7 +22001,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateResponse(v **types.EmailTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } case "TemplateType": @@ -22019,7 +22019,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateResponse(v **types.EmailTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TextPart = &jtv + sv.TextPart = ptr.String(jtv) } case "Version": @@ -22028,7 +22028,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateResponse(v **types.EmailTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -22068,7 +22068,7 @@ func awsRestjson1_deserializeDocumentEndpointDemographic(v **types.EndpointDemog if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AppVersion = &jtv + sv.AppVersion = ptr.String(jtv) } case "Locale": @@ -22077,7 +22077,7 @@ func awsRestjson1_deserializeDocumentEndpointDemographic(v **types.EndpointDemog if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Locale = &jtv + sv.Locale = ptr.String(jtv) } case "Make": @@ -22086,7 +22086,7 @@ func awsRestjson1_deserializeDocumentEndpointDemographic(v **types.EndpointDemog if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Make = &jtv + sv.Make = ptr.String(jtv) } case "Model": @@ -22095,7 +22095,7 @@ func awsRestjson1_deserializeDocumentEndpointDemographic(v **types.EndpointDemog if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Model = &jtv + sv.Model = ptr.String(jtv) } case "ModelVersion": @@ -22104,7 +22104,7 @@ func awsRestjson1_deserializeDocumentEndpointDemographic(v **types.EndpointDemog if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ModelVersion = &jtv + sv.ModelVersion = ptr.String(jtv) } case "Platform": @@ -22113,7 +22113,7 @@ func awsRestjson1_deserializeDocumentEndpointDemographic(v **types.EndpointDemog if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "PlatformVersion": @@ -22122,7 +22122,7 @@ func awsRestjson1_deserializeDocumentEndpointDemographic(v **types.EndpointDemog if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PlatformVersion = &jtv + sv.PlatformVersion = ptr.String(jtv) } case "Timezone": @@ -22131,7 +22131,7 @@ func awsRestjson1_deserializeDocumentEndpointDemographic(v **types.EndpointDemog if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Timezone = &jtv + sv.Timezone = ptr.String(jtv) } default: @@ -22171,7 +22171,7 @@ func awsRestjson1_deserializeDocumentEndpointItemResponse(v **types.EndpointItem if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "StatusCode": @@ -22184,7 +22184,7 @@ func awsRestjson1_deserializeDocumentEndpointItemResponse(v **types.EndpointItem if err != nil { return err } - sv.StatusCode = ptr.Int32(int32(i64)) + sv.StatusCode = int32(i64) } default: @@ -22224,7 +22224,7 @@ func awsRestjson1_deserializeDocumentEndpointLocation(v **types.EndpointLocation if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.City = &jtv + sv.City = ptr.String(jtv) } case "Country": @@ -22233,7 +22233,7 @@ func awsRestjson1_deserializeDocumentEndpointLocation(v **types.EndpointLocation if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Country = &jtv + sv.Country = ptr.String(jtv) } case "Latitude": @@ -22246,7 +22246,7 @@ func awsRestjson1_deserializeDocumentEndpointLocation(v **types.EndpointLocation if err != nil { return err } - sv.Latitude = &f64 + sv.Latitude = f64 } case "Longitude": @@ -22259,7 +22259,7 @@ func awsRestjson1_deserializeDocumentEndpointLocation(v **types.EndpointLocation if err != nil { return err } - sv.Longitude = &f64 + sv.Longitude = f64 } case "PostalCode": @@ -22268,7 +22268,7 @@ func awsRestjson1_deserializeDocumentEndpointLocation(v **types.EndpointLocation if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PostalCode = &jtv + sv.PostalCode = ptr.String(jtv) } case "Region": @@ -22277,7 +22277,7 @@ func awsRestjson1_deserializeDocumentEndpointLocation(v **types.EndpointLocation if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } default: @@ -22317,7 +22317,7 @@ func awsRestjson1_deserializeDocumentEndpointMessageResult(v **types.EndpointMes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "DeliveryStatus": @@ -22335,7 +22335,7 @@ func awsRestjson1_deserializeDocumentEndpointMessageResult(v **types.EndpointMes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MessageId = &jtv + sv.MessageId = ptr.String(jtv) } case "StatusCode": @@ -22348,7 +22348,7 @@ func awsRestjson1_deserializeDocumentEndpointMessageResult(v **types.EndpointMes if err != nil { return err } - sv.StatusCode = ptr.Int32(int32(i64)) + sv.StatusCode = int32(i64) } case "StatusMessage": @@ -22357,7 +22357,7 @@ func awsRestjson1_deserializeDocumentEndpointMessageResult(v **types.EndpointMes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "UpdatedToken": @@ -22366,7 +22366,7 @@ func awsRestjson1_deserializeDocumentEndpointMessageResult(v **types.EndpointMes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.UpdatedToken = &jtv + sv.UpdatedToken = ptr.String(jtv) } default: @@ -22406,7 +22406,7 @@ func awsRestjson1_deserializeDocumentEndpointResponse(v **types.EndpointResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "ApplicationId": @@ -22415,7 +22415,7 @@ func awsRestjson1_deserializeDocumentEndpointResponse(v **types.EndpointResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "Attributes": @@ -22438,7 +22438,7 @@ func awsRestjson1_deserializeDocumentEndpointResponse(v **types.EndpointResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CohortId = &jtv + sv.CohortId = ptr.String(jtv) } case "CreationDate": @@ -22447,7 +22447,7 @@ func awsRestjson1_deserializeDocumentEndpointResponse(v **types.EndpointResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Demographic": @@ -22461,7 +22461,7 @@ func awsRestjson1_deserializeDocumentEndpointResponse(v **types.EndpointResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EffectiveDate = &jtv + sv.EffectiveDate = ptr.String(jtv) } case "EndpointStatus": @@ -22470,7 +22470,7 @@ func awsRestjson1_deserializeDocumentEndpointResponse(v **types.EndpointResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EndpointStatus = &jtv + sv.EndpointStatus = ptr.String(jtv) } case "Id": @@ -22479,7 +22479,7 @@ func awsRestjson1_deserializeDocumentEndpointResponse(v **types.EndpointResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Location": @@ -22498,7 +22498,7 @@ func awsRestjson1_deserializeDocumentEndpointResponse(v **types.EndpointResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OptOut = &jtv + sv.OptOut = ptr.String(jtv) } case "RequestId": @@ -22507,7 +22507,7 @@ func awsRestjson1_deserializeDocumentEndpointResponse(v **types.EndpointResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "User": @@ -22593,7 +22593,7 @@ func awsRestjson1_deserializeDocumentEndpointUser(v **types.EndpointUser, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } default: @@ -22638,7 +22638,7 @@ func awsRestjson1_deserializeDocumentEventCondition(v **types.EventCondition, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MessageActivity = &jtv + sv.MessageActivity = ptr.String(jtv) } default: @@ -22769,7 +22769,7 @@ func awsRestjson1_deserializeDocumentEventItemResponse(v **types.EventItemRespon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "StatusCode": @@ -22782,7 +22782,7 @@ func awsRestjson1_deserializeDocumentEventItemResponse(v **types.EventItemRespon if err != nil { return err } - sv.StatusCode = ptr.Int32(int32(i64)) + sv.StatusCode = int32(i64) } default: @@ -22863,7 +22863,7 @@ func awsRestjson1_deserializeDocumentEventStartCondition(v **types.EventStartCon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SegmentId = &jtv + sv.SegmentId = ptr.String(jtv) } default: @@ -22903,7 +22903,7 @@ func awsRestjson1_deserializeDocumentEventStream(v **types.EventStream, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "DestinationStreamArn": @@ -22912,7 +22912,7 @@ func awsRestjson1_deserializeDocumentEventStream(v **types.EventStream, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DestinationStreamArn = &jtv + sv.DestinationStreamArn = ptr.String(jtv) } case "ExternalId": @@ -22921,7 +22921,7 @@ func awsRestjson1_deserializeDocumentEventStream(v **types.EventStream, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ExternalId = &jtv + sv.ExternalId = ptr.String(jtv) } case "LastModifiedDate": @@ -22930,7 +22930,7 @@ func awsRestjson1_deserializeDocumentEventStream(v **types.EventStream, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "LastUpdatedBy": @@ -22939,7 +22939,7 @@ func awsRestjson1_deserializeDocumentEventStream(v **types.EventStream, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastUpdatedBy = &jtv + sv.LastUpdatedBy = ptr.String(jtv) } case "RoleArn": @@ -22948,7 +22948,7 @@ func awsRestjson1_deserializeDocumentEventStream(v **types.EventStream, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -22988,7 +22988,7 @@ func awsRestjson1_deserializeDocumentExportJobResource(v **types.ExportJobResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "S3UrlPrefix": @@ -22997,7 +22997,7 @@ func awsRestjson1_deserializeDocumentExportJobResource(v **types.ExportJobResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.S3UrlPrefix = &jtv + sv.S3UrlPrefix = ptr.String(jtv) } case "SegmentId": @@ -23006,7 +23006,7 @@ func awsRestjson1_deserializeDocumentExportJobResource(v **types.ExportJobResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SegmentId = &jtv + sv.SegmentId = ptr.String(jtv) } case "SegmentVersion": @@ -23019,7 +23019,7 @@ func awsRestjson1_deserializeDocumentExportJobResource(v **types.ExportJobResour if err != nil { return err } - sv.SegmentVersion = ptr.Int32(int32(i64)) + sv.SegmentVersion = int32(i64) } default: @@ -23059,7 +23059,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CompletedPieces": @@ -23072,7 +23072,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if err != nil { return err } - sv.CompletedPieces = ptr.Int32(int32(i64)) + sv.CompletedPieces = int32(i64) } case "CompletionDate": @@ -23081,7 +23081,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CompletionDate = &jtv + sv.CompletionDate = ptr.String(jtv) } case "CreationDate": @@ -23090,7 +23090,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Definition": @@ -23108,7 +23108,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if err != nil { return err } - sv.FailedPieces = ptr.Int32(int32(i64)) + sv.FailedPieces = int32(i64) } case "Failures": @@ -23122,7 +23122,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "JobStatus": @@ -23144,7 +23144,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if err != nil { return err } - sv.TotalFailures = ptr.Int32(int32(i64)) + sv.TotalFailures = int32(i64) } case "TotalPieces": @@ -23157,7 +23157,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if err != nil { return err } - sv.TotalPieces = ptr.Int32(int32(i64)) + sv.TotalPieces = int32(i64) } case "TotalProcessed": @@ -23170,7 +23170,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if err != nil { return err } - sv.TotalProcessed = ptr.Int32(int32(i64)) + sv.TotalProcessed = int32(i64) } case "Type": @@ -23179,7 +23179,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -23224,7 +23224,7 @@ func awsRestjson1_deserializeDocumentExportJobsResponse(v **types.ExportJobsResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -23264,7 +23264,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestID": @@ -23273,7 +23273,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestID = &jtv + sv.RequestID = ptr.String(jtv) } default: @@ -23313,7 +23313,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CreationDate": @@ -23322,7 +23322,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Credential": @@ -23331,7 +23331,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Credential = &jtv + sv.Credential = ptr.String(jtv) } case "Enabled": @@ -23340,7 +23340,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "HasCredential": @@ -23349,7 +23349,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = &jtv + sv.HasCredential = jtv } case "Id": @@ -23358,7 +23358,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IsArchived": @@ -23367,7 +23367,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = &jtv + sv.IsArchived = jtv } case "LastModifiedBy": @@ -23376,7 +23376,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedDate": @@ -23385,7 +23385,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Platform": @@ -23394,7 +23394,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "Version": @@ -23407,7 +23407,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -23451,7 +23451,7 @@ func awsRestjson1_deserializeDocumentGPSCoordinates(v **types.GPSCoordinates, va if err != nil { return err } - sv.Latitude = &f64 + sv.Latitude = f64 } case "Longitude": @@ -23464,7 +23464,7 @@ func awsRestjson1_deserializeDocumentGPSCoordinates(v **types.GPSCoordinates, va if err != nil { return err } - sv.Longitude = &f64 + sv.Longitude = f64 } default: @@ -23513,7 +23513,7 @@ func awsRestjson1_deserializeDocumentGPSPointDimension(v **types.GPSPointDimensi if err != nil { return err } - sv.RangeInKilometers = &f64 + sv.RangeInKilometers = f64 } default: @@ -23553,7 +23553,7 @@ func awsRestjson1_deserializeDocumentHoldoutActivity(v **types.HoldoutActivity, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextActivity = &jtv + sv.NextActivity = ptr.String(jtv) } case "Percentage": @@ -23566,7 +23566,7 @@ func awsRestjson1_deserializeDocumentHoldoutActivity(v **types.HoldoutActivity, if err != nil { return err } - sv.Percentage = ptr.Int32(int32(i64)) + sv.Percentage = int32(i64) } default: @@ -23606,7 +23606,7 @@ func awsRestjson1_deserializeDocumentImportJobResource(v **types.ImportJobResour if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DefineSegment = &jtv + sv.DefineSegment = jtv } case "ExternalId": @@ -23615,7 +23615,7 @@ func awsRestjson1_deserializeDocumentImportJobResource(v **types.ImportJobResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ExternalId = &jtv + sv.ExternalId = ptr.String(jtv) } case "Format": @@ -23633,7 +23633,7 @@ func awsRestjson1_deserializeDocumentImportJobResource(v **types.ImportJobResour if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.RegisterEndpoints = &jtv + sv.RegisterEndpoints = jtv } case "RoleArn": @@ -23642,7 +23642,7 @@ func awsRestjson1_deserializeDocumentImportJobResource(v **types.ImportJobResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "S3Url": @@ -23651,7 +23651,7 @@ func awsRestjson1_deserializeDocumentImportJobResource(v **types.ImportJobResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.S3Url = &jtv + sv.S3Url = ptr.String(jtv) } case "SegmentId": @@ -23660,7 +23660,7 @@ func awsRestjson1_deserializeDocumentImportJobResource(v **types.ImportJobResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SegmentId = &jtv + sv.SegmentId = ptr.String(jtv) } case "SegmentName": @@ -23669,7 +23669,7 @@ func awsRestjson1_deserializeDocumentImportJobResource(v **types.ImportJobResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SegmentName = &jtv + sv.SegmentName = ptr.String(jtv) } default: @@ -23709,7 +23709,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CompletedPieces": @@ -23722,7 +23722,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if err != nil { return err } - sv.CompletedPieces = ptr.Int32(int32(i64)) + sv.CompletedPieces = int32(i64) } case "CompletionDate": @@ -23731,7 +23731,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CompletionDate = &jtv + sv.CompletionDate = ptr.String(jtv) } case "CreationDate": @@ -23740,7 +23740,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Definition": @@ -23758,7 +23758,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if err != nil { return err } - sv.FailedPieces = ptr.Int32(int32(i64)) + sv.FailedPieces = int32(i64) } case "Failures": @@ -23772,7 +23772,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "JobStatus": @@ -23794,7 +23794,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if err != nil { return err } - sv.TotalFailures = ptr.Int32(int32(i64)) + sv.TotalFailures = int32(i64) } case "TotalPieces": @@ -23807,7 +23807,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if err != nil { return err } - sv.TotalPieces = ptr.Int32(int32(i64)) + sv.TotalPieces = int32(i64) } case "TotalProcessed": @@ -23820,7 +23820,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if err != nil { return err } - sv.TotalProcessed = ptr.Int32(int32(i64)) + sv.TotalProcessed = int32(i64) } case "Type": @@ -23829,7 +23829,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -23874,7 +23874,7 @@ func awsRestjson1_deserializeDocumentImportJobsResponse(v **types.ImportJobsResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -23914,7 +23914,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestID": @@ -23923,7 +23923,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestID = &jtv + sv.RequestID = ptr.String(jtv) } default: @@ -24004,7 +24004,7 @@ func awsRestjson1_deserializeDocumentJourneyCustomMessage(v **types.JourneyCusto if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Data = &jtv + sv.Data = ptr.String(jtv) } default: @@ -24044,7 +24044,7 @@ func awsRestjson1_deserializeDocumentJourneyDateRangeKpiResponse(v **types.Journ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "EndTime": @@ -24057,7 +24057,7 @@ func awsRestjson1_deserializeDocumentJourneyDateRangeKpiResponse(v **types.Journ if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case "JourneyId": @@ -24066,7 +24066,7 @@ func awsRestjson1_deserializeDocumentJourneyDateRangeKpiResponse(v **types.Journ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JourneyId = &jtv + sv.JourneyId = ptr.String(jtv) } case "KpiName": @@ -24075,7 +24075,7 @@ func awsRestjson1_deserializeDocumentJourneyDateRangeKpiResponse(v **types.Journ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.KpiName = &jtv + sv.KpiName = ptr.String(jtv) } case "KpiResult": @@ -24089,7 +24089,7 @@ func awsRestjson1_deserializeDocumentJourneyDateRangeKpiResponse(v **types.Journ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StartTime": @@ -24102,7 +24102,7 @@ func awsRestjson1_deserializeDocumentJourneyDateRangeKpiResponse(v **types.Journ if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } default: @@ -24142,7 +24142,7 @@ func awsRestjson1_deserializeDocumentJourneyEmailMessage(v **types.JourneyEmailM if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.FromAddress = &jtv + sv.FromAddress = ptr.String(jtv) } default: @@ -24182,7 +24182,7 @@ func awsRestjson1_deserializeDocumentJourneyExecutionActivityMetricsResponse(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ActivityType = &jtv + sv.ActivityType = ptr.String(jtv) } case "ApplicationId": @@ -24191,7 +24191,7 @@ func awsRestjson1_deserializeDocumentJourneyExecutionActivityMetricsResponse(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "JourneyActivityId": @@ -24200,7 +24200,7 @@ func awsRestjson1_deserializeDocumentJourneyExecutionActivityMetricsResponse(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JourneyActivityId = &jtv + sv.JourneyActivityId = ptr.String(jtv) } case "JourneyId": @@ -24209,7 +24209,7 @@ func awsRestjson1_deserializeDocumentJourneyExecutionActivityMetricsResponse(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JourneyId = &jtv + sv.JourneyId = ptr.String(jtv) } case "LastEvaluatedTime": @@ -24218,7 +24218,7 @@ func awsRestjson1_deserializeDocumentJourneyExecutionActivityMetricsResponse(v * if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastEvaluatedTime = &jtv + sv.LastEvaluatedTime = ptr.String(jtv) } case "Metrics": @@ -24263,7 +24263,7 @@ func awsRestjson1_deserializeDocumentJourneyExecutionMetricsResponse(v **types.J if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "JourneyId": @@ -24272,7 +24272,7 @@ func awsRestjson1_deserializeDocumentJourneyExecutionMetricsResponse(v **types.J if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JourneyId = &jtv + sv.JourneyId = ptr.String(jtv) } case "LastEvaluatedTime": @@ -24281,7 +24281,7 @@ func awsRestjson1_deserializeDocumentJourneyExecutionMetricsResponse(v **types.J if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastEvaluatedTime = &jtv + sv.LastEvaluatedTime = ptr.String(jtv) } case "Metrics": @@ -24330,7 +24330,7 @@ func awsRestjson1_deserializeDocumentJourneyLimits(v **types.JourneyLimits, valu if err != nil { return err } - sv.DailyCap = ptr.Int32(int32(i64)) + sv.DailyCap = int32(i64) } case "EndpointReentryCap": @@ -24343,7 +24343,7 @@ func awsRestjson1_deserializeDocumentJourneyLimits(v **types.JourneyLimits, valu if err != nil { return err } - sv.EndpointReentryCap = ptr.Int32(int32(i64)) + sv.EndpointReentryCap = int32(i64) } case "MessagesPerSecond": @@ -24356,7 +24356,7 @@ func awsRestjson1_deserializeDocumentJourneyLimits(v **types.JourneyLimits, valu if err != nil { return err } - sv.MessagesPerSecond = ptr.Int32(int32(i64)) + sv.MessagesPerSecond = int32(i64) } default: @@ -24396,7 +24396,7 @@ func awsRestjson1_deserializeDocumentJourneyPushMessage(v **types.JourneyPushMes if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TimeToLive = &jtv + sv.TimeToLive = ptr.String(jtv) } default: @@ -24441,7 +24441,7 @@ func awsRestjson1_deserializeDocumentJourneyResponse(v **types.JourneyResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CreationDate": @@ -24450,7 +24450,7 @@ func awsRestjson1_deserializeDocumentJourneyResponse(v **types.JourneyResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Id": @@ -24459,7 +24459,7 @@ func awsRestjson1_deserializeDocumentJourneyResponse(v **types.JourneyResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastModifiedDate": @@ -24468,7 +24468,7 @@ func awsRestjson1_deserializeDocumentJourneyResponse(v **types.JourneyResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Limits": @@ -24482,7 +24482,7 @@ func awsRestjson1_deserializeDocumentJourneyResponse(v **types.JourneyResponse, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.LocalTime = &jtv + sv.LocalTime = jtv } case "Name": @@ -24491,7 +24491,7 @@ func awsRestjson1_deserializeDocumentJourneyResponse(v **types.JourneyResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "QuietTime": @@ -24505,7 +24505,7 @@ func awsRestjson1_deserializeDocumentJourneyResponse(v **types.JourneyResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RefreshFrequency = &jtv + sv.RefreshFrequency = ptr.String(jtv) } case "Schedule": @@ -24519,7 +24519,7 @@ func awsRestjson1_deserializeDocumentJourneyResponse(v **types.JourneyResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StartActivity = &jtv + sv.StartActivity = ptr.String(jtv) } case "StartCondition": @@ -24582,7 +24582,7 @@ func awsRestjson1_deserializeDocumentJourneySchedule(v **types.JourneySchedule, if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case "StartTime": @@ -24595,7 +24595,7 @@ func awsRestjson1_deserializeDocumentJourneySchedule(v **types.JourneySchedule, if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case "Timezone": @@ -24604,7 +24604,7 @@ func awsRestjson1_deserializeDocumentJourneySchedule(v **types.JourneySchedule, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Timezone = &jtv + sv.Timezone = ptr.String(jtv) } default: @@ -24653,7 +24653,7 @@ func awsRestjson1_deserializeDocumentJourneySMSMessage(v **types.JourneySMSMessa if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SenderId = &jtv + sv.SenderId = ptr.String(jtv) } default: @@ -24698,7 +24698,7 @@ func awsRestjson1_deserializeDocumentJourneysResponse(v **types.JourneysResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -24746,7 +24746,7 @@ func awsRestjson1_deserializeDocumentListOf__EndpointTypesElement(v *[]types.End return nil } -func awsRestjson1_deserializeDocumentListOf__string(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentListOf__string(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24759,21 +24759,21 @@ func awsRestjson1_deserializeDocumentListOf__string(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -24782,7 +24782,7 @@ func awsRestjson1_deserializeDocumentListOf__string(v *[]*string, value interfac return nil } -func awsRestjson1_deserializeDocumentListOfActivityResponse(v *[]*types.ActivityResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfActivityResponse(v *[]types.ActivityResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24795,18 +24795,20 @@ func awsRestjson1_deserializeDocumentListOfActivityResponse(v *[]*types.Activity return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActivityResponse + var cv []types.ActivityResponse if *v == nil { - cv = []*types.ActivityResponse{} + cv = []types.ActivityResponse{} } else { cv = *v } for _, value := range shape { - var col *types.ActivityResponse - if err := awsRestjson1_deserializeDocumentActivityResponse(&col, value); err != nil { + var col types.ActivityResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentActivityResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24814,7 +24816,7 @@ func awsRestjson1_deserializeDocumentListOfActivityResponse(v *[]*types.Activity return nil } -func awsRestjson1_deserializeDocumentListOfApplicationResponse(v *[]*types.ApplicationResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfApplicationResponse(v *[]types.ApplicationResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24827,18 +24829,20 @@ func awsRestjson1_deserializeDocumentListOfApplicationResponse(v *[]*types.Appli return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApplicationResponse + var cv []types.ApplicationResponse if *v == nil { - cv = []*types.ApplicationResponse{} + cv = []types.ApplicationResponse{} } else { cv = *v } for _, value := range shape { - var col *types.ApplicationResponse - if err := awsRestjson1_deserializeDocumentApplicationResponse(&col, value); err != nil { + var col types.ApplicationResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentApplicationResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24846,7 +24850,7 @@ func awsRestjson1_deserializeDocumentListOfApplicationResponse(v *[]*types.Appli return nil } -func awsRestjson1_deserializeDocumentListOfCampaignResponse(v *[]*types.CampaignResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfCampaignResponse(v *[]types.CampaignResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24859,18 +24863,20 @@ func awsRestjson1_deserializeDocumentListOfCampaignResponse(v *[]*types.Campaign return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CampaignResponse + var cv []types.CampaignResponse if *v == nil { - cv = []*types.CampaignResponse{} + cv = []types.CampaignResponse{} } else { cv = *v } for _, value := range shape { - var col *types.CampaignResponse - if err := awsRestjson1_deserializeDocumentCampaignResponse(&col, value); err != nil { + var col types.CampaignResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentCampaignResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24878,7 +24884,7 @@ func awsRestjson1_deserializeDocumentListOfCampaignResponse(v *[]*types.Campaign return nil } -func awsRestjson1_deserializeDocumentListOfEndpointResponse(v *[]*types.EndpointResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfEndpointResponse(v *[]types.EndpointResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24891,18 +24897,20 @@ func awsRestjson1_deserializeDocumentListOfEndpointResponse(v *[]*types.Endpoint return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EndpointResponse + var cv []types.EndpointResponse if *v == nil { - cv = []*types.EndpointResponse{} + cv = []types.EndpointResponse{} } else { cv = *v } for _, value := range shape { - var col *types.EndpointResponse - if err := awsRestjson1_deserializeDocumentEndpointResponse(&col, value); err != nil { + var col types.EndpointResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentEndpointResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24910,7 +24918,7 @@ func awsRestjson1_deserializeDocumentListOfEndpointResponse(v *[]*types.Endpoint return nil } -func awsRestjson1_deserializeDocumentListOfExportJobResponse(v *[]*types.ExportJobResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfExportJobResponse(v *[]types.ExportJobResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24923,18 +24931,20 @@ func awsRestjson1_deserializeDocumentListOfExportJobResponse(v *[]*types.ExportJ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExportJobResponse + var cv []types.ExportJobResponse if *v == nil { - cv = []*types.ExportJobResponse{} + cv = []types.ExportJobResponse{} } else { cv = *v } for _, value := range shape { - var col *types.ExportJobResponse - if err := awsRestjson1_deserializeDocumentExportJobResponse(&col, value); err != nil { + var col types.ExportJobResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentExportJobResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24942,7 +24952,7 @@ func awsRestjson1_deserializeDocumentListOfExportJobResponse(v *[]*types.ExportJ return nil } -func awsRestjson1_deserializeDocumentListOfImportJobResponse(v *[]*types.ImportJobResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfImportJobResponse(v *[]types.ImportJobResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24955,18 +24965,20 @@ func awsRestjson1_deserializeDocumentListOfImportJobResponse(v *[]*types.ImportJ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImportJobResponse + var cv []types.ImportJobResponse if *v == nil { - cv = []*types.ImportJobResponse{} + cv = []types.ImportJobResponse{} } else { cv = *v } for _, value := range shape { - var col *types.ImportJobResponse - if err := awsRestjson1_deserializeDocumentImportJobResponse(&col, value); err != nil { + var col types.ImportJobResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentImportJobResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24974,7 +24986,7 @@ func awsRestjson1_deserializeDocumentListOfImportJobResponse(v *[]*types.ImportJ return nil } -func awsRestjson1_deserializeDocumentListOfJourneyResponse(v *[]*types.JourneyResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfJourneyResponse(v *[]types.JourneyResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24987,18 +24999,20 @@ func awsRestjson1_deserializeDocumentListOfJourneyResponse(v *[]*types.JourneyRe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JourneyResponse + var cv []types.JourneyResponse if *v == nil { - cv = []*types.JourneyResponse{} + cv = []types.JourneyResponse{} } else { cv = *v } for _, value := range shape { - var col *types.JourneyResponse - if err := awsRestjson1_deserializeDocumentJourneyResponse(&col, value); err != nil { + var col types.JourneyResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentJourneyResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25006,7 +25020,7 @@ func awsRestjson1_deserializeDocumentListOfJourneyResponse(v *[]*types.JourneyRe return nil } -func awsRestjson1_deserializeDocumentListOfMultiConditionalBranch(v *[]*types.MultiConditionalBranch, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfMultiConditionalBranch(v *[]types.MultiConditionalBranch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25019,18 +25033,20 @@ func awsRestjson1_deserializeDocumentListOfMultiConditionalBranch(v *[]*types.Mu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MultiConditionalBranch + var cv []types.MultiConditionalBranch if *v == nil { - cv = []*types.MultiConditionalBranch{} + cv = []types.MultiConditionalBranch{} } else { cv = *v } for _, value := range shape { - var col *types.MultiConditionalBranch - if err := awsRestjson1_deserializeDocumentMultiConditionalBranch(&col, value); err != nil { + var col types.MultiConditionalBranch + destAddr := &col + if err := awsRestjson1_deserializeDocumentMultiConditionalBranch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25038,7 +25054,7 @@ func awsRestjson1_deserializeDocumentListOfMultiConditionalBranch(v *[]*types.Mu return nil } -func awsRestjson1_deserializeDocumentListOfRandomSplitEntry(v *[]*types.RandomSplitEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfRandomSplitEntry(v *[]types.RandomSplitEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25051,18 +25067,20 @@ func awsRestjson1_deserializeDocumentListOfRandomSplitEntry(v *[]*types.RandomSp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RandomSplitEntry + var cv []types.RandomSplitEntry if *v == nil { - cv = []*types.RandomSplitEntry{} + cv = []types.RandomSplitEntry{} } else { cv = *v } for _, value := range shape { - var col *types.RandomSplitEntry - if err := awsRestjson1_deserializeDocumentRandomSplitEntry(&col, value); err != nil { + var col types.RandomSplitEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentRandomSplitEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25070,7 +25088,7 @@ func awsRestjson1_deserializeDocumentListOfRandomSplitEntry(v *[]*types.RandomSp return nil } -func awsRestjson1_deserializeDocumentListOfRecommenderConfigurationResponse(v *[]*types.RecommenderConfigurationResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfRecommenderConfigurationResponse(v *[]types.RecommenderConfigurationResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25083,18 +25101,20 @@ func awsRestjson1_deserializeDocumentListOfRecommenderConfigurationResponse(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecommenderConfigurationResponse + var cv []types.RecommenderConfigurationResponse if *v == nil { - cv = []*types.RecommenderConfigurationResponse{} + cv = []types.RecommenderConfigurationResponse{} } else { cv = *v } for _, value := range shape { - var col *types.RecommenderConfigurationResponse - if err := awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(&col, value); err != nil { + var col types.RecommenderConfigurationResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25102,7 +25122,7 @@ func awsRestjson1_deserializeDocumentListOfRecommenderConfigurationResponse(v *[ return nil } -func awsRestjson1_deserializeDocumentListOfResultRow(v *[]*types.ResultRow, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfResultRow(v *[]types.ResultRow, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25115,18 +25135,20 @@ func awsRestjson1_deserializeDocumentListOfResultRow(v *[]*types.ResultRow, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResultRow + var cv []types.ResultRow if *v == nil { - cv = []*types.ResultRow{} + cv = []types.ResultRow{} } else { cv = *v } for _, value := range shape { - var col *types.ResultRow - if err := awsRestjson1_deserializeDocumentResultRow(&col, value); err != nil { + var col types.ResultRow + destAddr := &col + if err := awsRestjson1_deserializeDocumentResultRow(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25134,7 +25156,7 @@ func awsRestjson1_deserializeDocumentListOfResultRow(v *[]*types.ResultRow, valu return nil } -func awsRestjson1_deserializeDocumentListOfResultRowValue(v *[]*types.ResultRowValue, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfResultRowValue(v *[]types.ResultRowValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25147,18 +25169,20 @@ func awsRestjson1_deserializeDocumentListOfResultRowValue(v *[]*types.ResultRowV return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResultRowValue + var cv []types.ResultRowValue if *v == nil { - cv = []*types.ResultRowValue{} + cv = []types.ResultRowValue{} } else { cv = *v } for _, value := range shape { - var col *types.ResultRowValue - if err := awsRestjson1_deserializeDocumentResultRowValue(&col, value); err != nil { + var col types.ResultRowValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentResultRowValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25166,7 +25190,7 @@ func awsRestjson1_deserializeDocumentListOfResultRowValue(v *[]*types.ResultRowV return nil } -func awsRestjson1_deserializeDocumentListOfSegmentDimensions(v *[]*types.SegmentDimensions, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfSegmentDimensions(v *[]types.SegmentDimensions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25179,18 +25203,20 @@ func awsRestjson1_deserializeDocumentListOfSegmentDimensions(v *[]*types.Segment return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SegmentDimensions + var cv []types.SegmentDimensions if *v == nil { - cv = []*types.SegmentDimensions{} + cv = []types.SegmentDimensions{} } else { cv = *v } for _, value := range shape { - var col *types.SegmentDimensions - if err := awsRestjson1_deserializeDocumentSegmentDimensions(&col, value); err != nil { + var col types.SegmentDimensions + destAddr := &col + if err := awsRestjson1_deserializeDocumentSegmentDimensions(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25198,7 +25224,7 @@ func awsRestjson1_deserializeDocumentListOfSegmentDimensions(v *[]*types.Segment return nil } -func awsRestjson1_deserializeDocumentListOfSegmentGroup(v *[]*types.SegmentGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfSegmentGroup(v *[]types.SegmentGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25211,18 +25237,20 @@ func awsRestjson1_deserializeDocumentListOfSegmentGroup(v *[]*types.SegmentGroup return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SegmentGroup + var cv []types.SegmentGroup if *v == nil { - cv = []*types.SegmentGroup{} + cv = []types.SegmentGroup{} } else { cv = *v } for _, value := range shape { - var col *types.SegmentGroup - if err := awsRestjson1_deserializeDocumentSegmentGroup(&col, value); err != nil { + var col types.SegmentGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentSegmentGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25230,7 +25258,7 @@ func awsRestjson1_deserializeDocumentListOfSegmentGroup(v *[]*types.SegmentGroup return nil } -func awsRestjson1_deserializeDocumentListOfSegmentReference(v *[]*types.SegmentReference, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfSegmentReference(v *[]types.SegmentReference, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25243,18 +25271,20 @@ func awsRestjson1_deserializeDocumentListOfSegmentReference(v *[]*types.SegmentR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SegmentReference + var cv []types.SegmentReference if *v == nil { - cv = []*types.SegmentReference{} + cv = []types.SegmentReference{} } else { cv = *v } for _, value := range shape { - var col *types.SegmentReference - if err := awsRestjson1_deserializeDocumentSegmentReference(&col, value); err != nil { + var col types.SegmentReference + destAddr := &col + if err := awsRestjson1_deserializeDocumentSegmentReference(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25262,7 +25292,7 @@ func awsRestjson1_deserializeDocumentListOfSegmentReference(v *[]*types.SegmentR return nil } -func awsRestjson1_deserializeDocumentListOfSegmentResponse(v *[]*types.SegmentResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfSegmentResponse(v *[]types.SegmentResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25275,18 +25305,20 @@ func awsRestjson1_deserializeDocumentListOfSegmentResponse(v *[]*types.SegmentRe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SegmentResponse + var cv []types.SegmentResponse if *v == nil { - cv = []*types.SegmentResponse{} + cv = []types.SegmentResponse{} } else { cv = *v } for _, value := range shape { - var col *types.SegmentResponse - if err := awsRestjson1_deserializeDocumentSegmentResponse(&col, value); err != nil { + var col types.SegmentResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentSegmentResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25294,7 +25326,7 @@ func awsRestjson1_deserializeDocumentListOfSegmentResponse(v *[]*types.SegmentRe return nil } -func awsRestjson1_deserializeDocumentListOfSimpleCondition(v *[]*types.SimpleCondition, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfSimpleCondition(v *[]types.SimpleCondition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25307,18 +25339,20 @@ func awsRestjson1_deserializeDocumentListOfSimpleCondition(v *[]*types.SimpleCon return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SimpleCondition + var cv []types.SimpleCondition if *v == nil { - cv = []*types.SimpleCondition{} + cv = []types.SimpleCondition{} } else { cv = *v } for _, value := range shape { - var col *types.SimpleCondition - if err := awsRestjson1_deserializeDocumentSimpleCondition(&col, value); err != nil { + var col types.SimpleCondition + destAddr := &col + if err := awsRestjson1_deserializeDocumentSimpleCondition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25326,7 +25360,7 @@ func awsRestjson1_deserializeDocumentListOfSimpleCondition(v *[]*types.SimpleCon return nil } -func awsRestjson1_deserializeDocumentListOfTemplateResponse(v *[]*types.TemplateResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfTemplateResponse(v *[]types.TemplateResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25339,18 +25373,20 @@ func awsRestjson1_deserializeDocumentListOfTemplateResponse(v *[]*types.Template return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TemplateResponse + var cv []types.TemplateResponse if *v == nil { - cv = []*types.TemplateResponse{} + cv = []types.TemplateResponse{} } else { cv = *v } for _, value := range shape { - var col *types.TemplateResponse - if err := awsRestjson1_deserializeDocumentTemplateResponse(&col, value); err != nil { + var col types.TemplateResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentTemplateResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25358,7 +25394,7 @@ func awsRestjson1_deserializeDocumentListOfTemplateResponse(v *[]*types.Template return nil } -func awsRestjson1_deserializeDocumentListOfTemplateVersionResponse(v *[]*types.TemplateVersionResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfTemplateVersionResponse(v *[]types.TemplateVersionResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25371,18 +25407,20 @@ func awsRestjson1_deserializeDocumentListOfTemplateVersionResponse(v *[]*types.T return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TemplateVersionResponse + var cv []types.TemplateVersionResponse if *v == nil { - cv = []*types.TemplateVersionResponse{} + cv = []types.TemplateVersionResponse{} } else { cv = *v } for _, value := range shape { - var col *types.TemplateVersionResponse - if err := awsRestjson1_deserializeDocumentTemplateVersionResponse(&col, value); err != nil { + var col types.TemplateVersionResponse + destAddr := &col + if err := awsRestjson1_deserializeDocumentTemplateVersionResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25390,7 +25428,7 @@ func awsRestjson1_deserializeDocumentListOfTemplateVersionResponse(v *[]*types.T return nil } -func awsRestjson1_deserializeDocumentListOfTreatmentResource(v *[]*types.TreatmentResource, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfTreatmentResource(v *[]types.TreatmentResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25403,18 +25441,20 @@ func awsRestjson1_deserializeDocumentListOfTreatmentResource(v *[]*types.Treatme return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TreatmentResource + var cv []types.TreatmentResource if *v == nil { - cv = []*types.TreatmentResource{} + cv = []types.TreatmentResource{} } else { cv = *v } for _, value := range shape { - var col *types.TreatmentResource - if err := awsRestjson1_deserializeDocumentTreatmentResource(&col, value); err != nil { + var col types.TreatmentResource + destAddr := &col + if err := awsRestjson1_deserializeDocumentTreatmentResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25455,7 +25495,7 @@ func awsRestjson1_deserializeDocumentListRecommenderConfigurationsResponse(v **t if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -25467,7 +25507,7 @@ func awsRestjson1_deserializeDocumentListRecommenderConfigurationsResponse(v **t return nil } -func awsRestjson1_deserializeDocumentMapOf__double(v *map[string]*float64, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOf__double(v *map[string]float64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25480,15 +25520,15 @@ func awsRestjson1_deserializeDocumentMapOf__double(v *map[string]*float64, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*float64 + var mv map[string]float64 if *v == nil { - mv = map[string]*float64{} + mv = map[string]float64{} } else { mv = *v } for key, value := range shape { - var parsedVal *float64 + var parsedVal float64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -25498,7 +25538,7 @@ func awsRestjson1_deserializeDocumentMapOf__double(v *map[string]*float64, value if err != nil { return err } - parsedVal = &f64 + parsedVal = f64 } mv[key] = parsedVal @@ -25507,7 +25547,7 @@ func awsRestjson1_deserializeDocumentMapOf__double(v *map[string]*float64, value return nil } -func awsRestjson1_deserializeDocumentMapOf__integer(v *map[string]*int32, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOf__integer(v *map[string]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25520,15 +25560,15 @@ func awsRestjson1_deserializeDocumentMapOf__integer(v *map[string]*int32, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*int32 + var mv map[string]int32 if *v == nil { - mv = map[string]*int32{} + mv = map[string]int32{} } else { mv = *v } for key, value := range shape { - var parsedVal *int32 + var parsedVal int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -25538,7 +25578,7 @@ func awsRestjson1_deserializeDocumentMapOf__integer(v *map[string]*int32, value if err != nil { return err } - parsedVal = ptr.Int32(int32(i64)) + parsedVal = int32(i64) } mv[key] = parsedVal @@ -25547,7 +25587,7 @@ func awsRestjson1_deserializeDocumentMapOf__integer(v *map[string]*int32, value return nil } -func awsRestjson1_deserializeDocumentMapOf__string(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOf__string(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25560,21 +25600,21 @@ func awsRestjson1_deserializeDocumentMapOf__string(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -25583,7 +25623,7 @@ func awsRestjson1_deserializeDocumentMapOf__string(v *map[string]*string, value return nil } -func awsRestjson1_deserializeDocumentMapOfActivity(v *map[string]*types.Activity, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfActivity(v *map[string]types.Activity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25596,18 +25636,21 @@ func awsRestjson1_deserializeDocumentMapOfActivity(v *map[string]*types.Activity return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.Activity + var mv map[string]types.Activity if *v == nil { - mv = map[string]*types.Activity{} + mv = map[string]types.Activity{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.Activity - if err := awsRestjson1_deserializeDocumentActivity(&parsedVal, value); err != nil { + var parsedVal types.Activity + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentActivity(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -25615,7 +25658,7 @@ func awsRestjson1_deserializeDocumentMapOfActivity(v *map[string]*types.Activity return nil } -func awsRestjson1_deserializeDocumentMapOfAttributeDimension(v *map[string]*types.AttributeDimension, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfAttributeDimension(v *map[string]types.AttributeDimension, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25628,18 +25671,21 @@ func awsRestjson1_deserializeDocumentMapOfAttributeDimension(v *map[string]*type return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.AttributeDimension + var mv map[string]types.AttributeDimension if *v == nil { - mv = map[string]*types.AttributeDimension{} + mv = map[string]types.AttributeDimension{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.AttributeDimension - if err := awsRestjson1_deserializeDocumentAttributeDimension(&parsedVal, value); err != nil { + var parsedVal types.AttributeDimension + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentAttributeDimension(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -25647,7 +25693,7 @@ func awsRestjson1_deserializeDocumentMapOfAttributeDimension(v *map[string]*type return nil } -func awsRestjson1_deserializeDocumentMapOfChannelResponse(v *map[string]*types.ChannelResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfChannelResponse(v *map[string]types.ChannelResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25660,18 +25706,21 @@ func awsRestjson1_deserializeDocumentMapOfChannelResponse(v *map[string]*types.C return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.ChannelResponse + var mv map[string]types.ChannelResponse if *v == nil { - mv = map[string]*types.ChannelResponse{} + mv = map[string]types.ChannelResponse{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.ChannelResponse - if err := awsRestjson1_deserializeDocumentChannelResponse(&parsedVal, value); err != nil { + var parsedVal types.ChannelResponse + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentChannelResponse(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -25679,7 +25728,7 @@ func awsRestjson1_deserializeDocumentMapOfChannelResponse(v *map[string]*types.C return nil } -func awsRestjson1_deserializeDocumentMapOfEndpointMessageResult(v *map[string]*types.EndpointMessageResult, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfEndpointMessageResult(v *map[string]types.EndpointMessageResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25692,18 +25741,21 @@ func awsRestjson1_deserializeDocumentMapOfEndpointMessageResult(v *map[string]*t return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.EndpointMessageResult + var mv map[string]types.EndpointMessageResult if *v == nil { - mv = map[string]*types.EndpointMessageResult{} + mv = map[string]types.EndpointMessageResult{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.EndpointMessageResult - if err := awsRestjson1_deserializeDocumentEndpointMessageResult(&parsedVal, value); err != nil { + var parsedVal types.EndpointMessageResult + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentEndpointMessageResult(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -25711,7 +25763,7 @@ func awsRestjson1_deserializeDocumentMapOfEndpointMessageResult(v *map[string]*t return nil } -func awsRestjson1_deserializeDocumentMapOfEventItemResponse(v *map[string]*types.EventItemResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfEventItemResponse(v *map[string]types.EventItemResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25724,18 +25776,21 @@ func awsRestjson1_deserializeDocumentMapOfEventItemResponse(v *map[string]*types return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.EventItemResponse + var mv map[string]types.EventItemResponse if *v == nil { - mv = map[string]*types.EventItemResponse{} + mv = map[string]types.EventItemResponse{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.EventItemResponse - if err := awsRestjson1_deserializeDocumentEventItemResponse(&parsedVal, value); err != nil { + var parsedVal types.EventItemResponse + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentEventItemResponse(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -25743,7 +25798,7 @@ func awsRestjson1_deserializeDocumentMapOfEventItemResponse(v *map[string]*types return nil } -func awsRestjson1_deserializeDocumentMapOfItemResponse(v *map[string]*types.ItemResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfItemResponse(v *map[string]types.ItemResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25756,18 +25811,21 @@ func awsRestjson1_deserializeDocumentMapOfItemResponse(v *map[string]*types.Item return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.ItemResponse + var mv map[string]types.ItemResponse if *v == nil { - mv = map[string]*types.ItemResponse{} + mv = map[string]types.ItemResponse{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.ItemResponse - if err := awsRestjson1_deserializeDocumentItemResponse(&parsedVal, value); err != nil { + var parsedVal types.ItemResponse + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentItemResponse(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -25775,7 +25833,7 @@ func awsRestjson1_deserializeDocumentMapOfItemResponse(v *map[string]*types.Item return nil } -func awsRestjson1_deserializeDocumentMapOfListOf__string(v *map[string][]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfListOf__string(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25788,18 +25846,20 @@ func awsRestjson1_deserializeDocumentMapOfListOf__string(v *map[string][]*string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsRestjson1_deserializeDocumentListOf__string(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentListOf__string(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -25807,7 +25867,7 @@ func awsRestjson1_deserializeDocumentMapOfListOf__string(v *map[string][]*string return nil } -func awsRestjson1_deserializeDocumentMapOfMapOfEndpointMessageResult(v *map[string]map[string]*types.EndpointMessageResult, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfMapOfEndpointMessageResult(v *map[string]map[string]types.EndpointMessageResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25820,18 +25880,20 @@ func awsRestjson1_deserializeDocumentMapOfMapOfEndpointMessageResult(v *map[stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]map[string]*types.EndpointMessageResult + var mv map[string]map[string]types.EndpointMessageResult if *v == nil { - mv = map[string]map[string]*types.EndpointMessageResult{} + mv = map[string]map[string]types.EndpointMessageResult{} } else { mv = *v } for key, value := range shape { - var parsedVal map[string]*types.EndpointMessageResult - if err := awsRestjson1_deserializeDocumentMapOfEndpointMessageResult(&parsedVal, value); err != nil { + var parsedVal map[string]types.EndpointMessageResult + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentMapOfEndpointMessageResult(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -25839,7 +25901,7 @@ func awsRestjson1_deserializeDocumentMapOfMapOfEndpointMessageResult(v *map[stri return nil } -func awsRestjson1_deserializeDocumentMapOfMessageResult(v *map[string]*types.MessageResult, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfMessageResult(v *map[string]types.MessageResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25852,18 +25914,21 @@ func awsRestjson1_deserializeDocumentMapOfMessageResult(v *map[string]*types.Mes return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.MessageResult + var mv map[string]types.MessageResult if *v == nil { - mv = map[string]*types.MessageResult{} + mv = map[string]types.MessageResult{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.MessageResult - if err := awsRestjson1_deserializeDocumentMessageResult(&parsedVal, value); err != nil { + var parsedVal types.MessageResult + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentMessageResult(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -25871,7 +25936,7 @@ func awsRestjson1_deserializeDocumentMapOfMessageResult(v *map[string]*types.Mes return nil } -func awsRestjson1_deserializeDocumentMapOfMetricDimension(v *map[string]*types.MetricDimension, value interface{}) error { +func awsRestjson1_deserializeDocumentMapOfMetricDimension(v *map[string]types.MetricDimension, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25884,18 +25949,21 @@ func awsRestjson1_deserializeDocumentMapOfMetricDimension(v *map[string]*types.M return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.MetricDimension + var mv map[string]types.MetricDimension if *v == nil { - mv = map[string]*types.MetricDimension{} + mv = map[string]types.MetricDimension{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.MetricDimension - if err := awsRestjson1_deserializeDocumentMetricDimension(&parsedVal, value); err != nil { + var parsedVal types.MetricDimension + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentMetricDimension(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -25940,7 +26008,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Body = &jtv + sv.Body = ptr.String(jtv) } case "ImageIconUrl": @@ -25949,7 +26017,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ImageIconUrl = &jtv + sv.ImageIconUrl = ptr.String(jtv) } case "ImageSmallIconUrl": @@ -25958,7 +26026,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ImageSmallIconUrl = &jtv + sv.ImageSmallIconUrl = ptr.String(jtv) } case "ImageUrl": @@ -25967,7 +26035,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ImageUrl = &jtv + sv.ImageUrl = ptr.String(jtv) } case "JsonBody": @@ -25976,7 +26044,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.JsonBody = &jtv + sv.JsonBody = ptr.String(jtv) } case "MediaUrl": @@ -25985,7 +26053,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MediaUrl = &jtv + sv.MediaUrl = ptr.String(jtv) } case "RawContent": @@ -25994,7 +26062,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RawContent = &jtv + sv.RawContent = ptr.String(jtv) } case "SilentPush": @@ -26003,7 +26071,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.SilentPush = &jtv + sv.SilentPush = jtv } case "TimeToLive": @@ -26016,7 +26084,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if err != nil { return err } - sv.TimeToLive = ptr.Int32(int32(i64)) + sv.TimeToLive = int32(i64) } case "Title": @@ -26025,7 +26093,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } case "Url": @@ -26034,7 +26102,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -26074,7 +26142,7 @@ func awsRestjson1_deserializeDocumentMessageBody(v **types.MessageBody, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestID": @@ -26083,7 +26151,7 @@ func awsRestjson1_deserializeDocumentMessageBody(v **types.MessageBody, value in if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestID = &jtv + sv.RequestID = ptr.String(jtv) } default: @@ -26194,7 +26262,7 @@ func awsRestjson1_deserializeDocumentMessageResponse(v **types.MessageResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "EndpointResult": @@ -26208,7 +26276,7 @@ func awsRestjson1_deserializeDocumentMessageResponse(v **types.MessageResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "Result": @@ -26262,7 +26330,7 @@ func awsRestjson1_deserializeDocumentMessageResult(v **types.MessageResult, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.MessageId = &jtv + sv.MessageId = ptr.String(jtv) } case "StatusCode": @@ -26275,7 +26343,7 @@ func awsRestjson1_deserializeDocumentMessageResult(v **types.MessageResult, valu if err != nil { return err } - sv.StatusCode = ptr.Int32(int32(i64)) + sv.StatusCode = int32(i64) } case "StatusMessage": @@ -26284,7 +26352,7 @@ func awsRestjson1_deserializeDocumentMessageResult(v **types.MessageResult, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "UpdatedToken": @@ -26293,7 +26361,7 @@ func awsRestjson1_deserializeDocumentMessageResult(v **types.MessageResult, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.UpdatedToken = &jtv + sv.UpdatedToken = ptr.String(jtv) } default: @@ -26333,7 +26401,7 @@ func awsRestjson1_deserializeDocumentMethodNotAllowedException(v **types.MethodN if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestID": @@ -26342,7 +26410,7 @@ func awsRestjson1_deserializeDocumentMethodNotAllowedException(v **types.MethodN if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestID = &jtv + sv.RequestID = ptr.String(jtv) } default: @@ -26382,7 +26450,7 @@ func awsRestjson1_deserializeDocumentMetricDimension(v **types.MetricDimension, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ComparisonOperator = &jtv + sv.ComparisonOperator = ptr.String(jtv) } case "Value": @@ -26395,7 +26463,7 @@ func awsRestjson1_deserializeDocumentMetricDimension(v **types.MetricDimension, if err != nil { return err } - sv.Value = &f64 + sv.Value = f64 } default: @@ -26440,7 +26508,7 @@ func awsRestjson1_deserializeDocumentMultiConditionalBranch(v **types.MultiCondi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextActivity = &jtv + sv.NextActivity = ptr.String(jtv) } default: @@ -26485,7 +26553,7 @@ func awsRestjson1_deserializeDocumentMultiConditionalSplitActivity(v **types.Mul if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DefaultActivity = &jtv + sv.DefaultActivity = ptr.String(jtv) } case "EvaluationWaitTime": @@ -26530,7 +26598,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestID": @@ -26539,7 +26607,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestID = &jtv + sv.RequestID = ptr.String(jtv) } default: @@ -26579,7 +26647,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Carrier = &jtv + sv.Carrier = ptr.String(jtv) } case "City": @@ -26588,7 +26656,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.City = &jtv + sv.City = ptr.String(jtv) } case "CleansedPhoneNumberE164": @@ -26597,7 +26665,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CleansedPhoneNumberE164 = &jtv + sv.CleansedPhoneNumberE164 = ptr.String(jtv) } case "CleansedPhoneNumberNational": @@ -26606,7 +26674,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CleansedPhoneNumberNational = &jtv + sv.CleansedPhoneNumberNational = ptr.String(jtv) } case "Country": @@ -26615,7 +26683,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Country = &jtv + sv.Country = ptr.String(jtv) } case "CountryCodeIso2": @@ -26624,7 +26692,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CountryCodeIso2 = &jtv + sv.CountryCodeIso2 = ptr.String(jtv) } case "CountryCodeNumeric": @@ -26633,7 +26701,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CountryCodeNumeric = &jtv + sv.CountryCodeNumeric = ptr.String(jtv) } case "County": @@ -26642,7 +26710,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.County = &jtv + sv.County = ptr.String(jtv) } case "OriginalCountryCodeIso2": @@ -26651,7 +26719,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OriginalCountryCodeIso2 = &jtv + sv.OriginalCountryCodeIso2 = ptr.String(jtv) } case "OriginalPhoneNumber": @@ -26660,7 +26728,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.OriginalPhoneNumber = &jtv + sv.OriginalPhoneNumber = ptr.String(jtv) } case "PhoneType": @@ -26669,7 +26737,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.PhoneType = &jtv + sv.PhoneType = ptr.String(jtv) } case "PhoneTypeCode": @@ -26682,7 +26750,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if err != nil { return err } - sv.PhoneTypeCode = ptr.Int32(int32(i64)) + sv.PhoneTypeCode = int32(i64) } case "Timezone": @@ -26691,7 +26759,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Timezone = &jtv + sv.Timezone = ptr.String(jtv) } case "ZipCode": @@ -26700,7 +26768,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ZipCode = &jtv + sv.ZipCode = ptr.String(jtv) } default: @@ -26740,7 +26808,7 @@ func awsRestjson1_deserializeDocumentPayloadTooLargeException(v **types.PayloadT if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestID": @@ -26749,7 +26817,7 @@ func awsRestjson1_deserializeDocumentPayloadTooLargeException(v **types.PayloadT if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestID = &jtv + sv.RequestID = ptr.String(jtv) } default: @@ -26794,7 +26862,7 @@ func awsRestjson1_deserializeDocumentPushMessageActivity(v **types.PushMessageAc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextActivity = &jtv + sv.NextActivity = ptr.String(jtv) } case "TemplateName": @@ -26803,7 +26871,7 @@ func awsRestjson1_deserializeDocumentPushMessageActivity(v **types.PushMessageAc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } case "TemplateVersion": @@ -26812,7 +26880,7 @@ func awsRestjson1_deserializeDocumentPushMessageActivity(v **types.PushMessageAc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateVersion = &jtv + sv.TemplateVersion = ptr.String(jtv) } default: @@ -26862,7 +26930,7 @@ func awsRestjson1_deserializeDocumentPushNotificationTemplateResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Baidu": @@ -26876,7 +26944,7 @@ func awsRestjson1_deserializeDocumentPushNotificationTemplateResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Default": @@ -26890,7 +26958,7 @@ func awsRestjson1_deserializeDocumentPushNotificationTemplateResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DefaultSubstitutions = &jtv + sv.DefaultSubstitutions = ptr.String(jtv) } case "GCM": @@ -26904,7 +26972,7 @@ func awsRestjson1_deserializeDocumentPushNotificationTemplateResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "RecommenderId": @@ -26913,7 +26981,7 @@ func awsRestjson1_deserializeDocumentPushNotificationTemplateResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RecommenderId = &jtv + sv.RecommenderId = ptr.String(jtv) } case "tags": @@ -26927,7 +26995,7 @@ func awsRestjson1_deserializeDocumentPushNotificationTemplateResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateDescription = &jtv + sv.TemplateDescription = ptr.String(jtv) } case "TemplateName": @@ -26936,7 +27004,7 @@ func awsRestjson1_deserializeDocumentPushNotificationTemplateResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } case "TemplateType": @@ -26954,7 +27022,7 @@ func awsRestjson1_deserializeDocumentPushNotificationTemplateResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -26994,7 +27062,7 @@ func awsRestjson1_deserializeDocumentQuietTime(v **types.QuietTime, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.End = &jtv + sv.End = ptr.String(jtv) } case "Start": @@ -27003,7 +27071,7 @@ func awsRestjson1_deserializeDocumentQuietTime(v **types.QuietTime, value interf if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Start = &jtv + sv.Start = ptr.String(jtv) } default: @@ -27079,7 +27147,7 @@ func awsRestjson1_deserializeDocumentRandomSplitEntry(v **types.RandomSplitEntry if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextActivity = &jtv + sv.NextActivity = ptr.String(jtv) } case "Percentage": @@ -27092,7 +27160,7 @@ func awsRestjson1_deserializeDocumentRandomSplitEntry(v **types.RandomSplitEntry if err != nil { return err } - sv.Percentage = ptr.Int32(int32(i64)) + sv.Percentage = int32(i64) } default: @@ -27186,7 +27254,7 @@ func awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Description": @@ -27195,7 +27263,7 @@ func awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -27204,7 +27272,7 @@ func awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastModifiedDate": @@ -27213,7 +27281,7 @@ func awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Name": @@ -27222,7 +27290,7 @@ func awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RecommendationProviderIdType": @@ -27231,7 +27299,7 @@ func awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RecommendationProviderIdType = &jtv + sv.RecommendationProviderIdType = ptr.String(jtv) } case "RecommendationProviderRoleArn": @@ -27240,7 +27308,7 @@ func awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RecommendationProviderRoleArn = &jtv + sv.RecommendationProviderRoleArn = ptr.String(jtv) } case "RecommendationProviderUri": @@ -27249,7 +27317,7 @@ func awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RecommendationProviderUri = &jtv + sv.RecommendationProviderUri = ptr.String(jtv) } case "RecommendationsDisplayName": @@ -27258,7 +27326,7 @@ func awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RecommendationsDisplayName = &jtv + sv.RecommendationsDisplayName = ptr.String(jtv) } case "RecommendationsPerMessage": @@ -27271,7 +27339,7 @@ func awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(v **types. if err != nil { return err } - sv.RecommendationsPerMessage = ptr.Int32(int32(i64)) + sv.RecommendationsPerMessage = int32(i64) } case "RecommendationTransformerUri": @@ -27280,7 +27348,7 @@ func awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(v **types. if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RecommendationTransformerUri = &jtv + sv.RecommendationTransformerUri = ptr.String(jtv) } default: @@ -27361,7 +27429,7 @@ func awsRestjson1_deserializeDocumentResultRowValue(v **types.ResultRowValue, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Type": @@ -27370,7 +27438,7 @@ func awsRestjson1_deserializeDocumentResultRowValue(v **types.ResultRowValue, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "Value": @@ -27379,7 +27447,7 @@ func awsRestjson1_deserializeDocumentResultRowValue(v **types.ResultRowValue, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -27419,7 +27487,7 @@ func awsRestjson1_deserializeDocumentSchedule(v **types.Schedule, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.EndTime = &jtv + sv.EndTime = ptr.String(jtv) } case "EventFilter": @@ -27442,7 +27510,7 @@ func awsRestjson1_deserializeDocumentSchedule(v **types.Schedule, value interfac if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsLocalTime = &jtv + sv.IsLocalTime = jtv } case "QuietTime": @@ -27456,7 +27524,7 @@ func awsRestjson1_deserializeDocumentSchedule(v **types.Schedule, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StartTime = &jtv + sv.StartTime = ptr.String(jtv) } case "Timezone": @@ -27465,7 +27533,7 @@ func awsRestjson1_deserializeDocumentSchedule(v **types.Schedule, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Timezone = &jtv + sv.Timezone = ptr.String(jtv) } default: @@ -27541,7 +27609,7 @@ func awsRestjson1_deserializeDocumentSegmentCondition(v **types.SegmentCondition if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SegmentId = &jtv + sv.SegmentId = ptr.String(jtv) } default: @@ -27812,7 +27880,7 @@ func awsRestjson1_deserializeDocumentSegmentImportResource(v **types.SegmentImpo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ExternalId = &jtv + sv.ExternalId = ptr.String(jtv) } case "Format": @@ -27830,7 +27898,7 @@ func awsRestjson1_deserializeDocumentSegmentImportResource(v **types.SegmentImpo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "S3Url": @@ -27839,7 +27907,7 @@ func awsRestjson1_deserializeDocumentSegmentImportResource(v **types.SegmentImpo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.S3Url = &jtv + sv.S3Url = ptr.String(jtv) } case "Size": @@ -27852,7 +27920,7 @@ func awsRestjson1_deserializeDocumentSegmentImportResource(v **types.SegmentImpo if err != nil { return err } - sv.Size = ptr.Int32(int32(i64)) + sv.Size = int32(i64) } default: @@ -27933,7 +28001,7 @@ func awsRestjson1_deserializeDocumentSegmentReference(v **types.SegmentReference if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Version": @@ -27946,7 +28014,7 @@ func awsRestjson1_deserializeDocumentSegmentReference(v **types.SegmentReference if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -27986,7 +28054,7 @@ func awsRestjson1_deserializeDocumentSegmentResponse(v **types.SegmentResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "Arn": @@ -27995,7 +28063,7 @@ func awsRestjson1_deserializeDocumentSegmentResponse(v **types.SegmentResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationDate": @@ -28004,7 +28072,7 @@ func awsRestjson1_deserializeDocumentSegmentResponse(v **types.SegmentResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Dimensions": @@ -28018,7 +28086,7 @@ func awsRestjson1_deserializeDocumentSegmentResponse(v **types.SegmentResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ImportDefinition": @@ -28032,7 +28100,7 @@ func awsRestjson1_deserializeDocumentSegmentResponse(v **types.SegmentResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Name": @@ -28041,7 +28109,7 @@ func awsRestjson1_deserializeDocumentSegmentResponse(v **types.SegmentResponse, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SegmentGroups": @@ -28073,7 +28141,7 @@ func awsRestjson1_deserializeDocumentSegmentResponse(v **types.SegmentResponse, if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -28118,7 +28186,7 @@ func awsRestjson1_deserializeDocumentSegmentsResponse(v **types.SegmentsResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -28158,7 +28226,7 @@ func awsRestjson1_deserializeDocumentSendUsersMessageResponse(v **types.SendUser if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "RequestId": @@ -28167,7 +28235,7 @@ func awsRestjson1_deserializeDocumentSendUsersMessageResponse(v **types.SendUser if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "Result": @@ -28303,7 +28371,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CreationDate": @@ -28312,7 +28380,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Enabled": @@ -28321,7 +28389,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "HasCredential": @@ -28330,7 +28398,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = &jtv + sv.HasCredential = jtv } case "Id": @@ -28339,7 +28407,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IsArchived": @@ -28348,7 +28416,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = &jtv + sv.IsArchived = jtv } case "LastModifiedBy": @@ -28357,7 +28425,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedDate": @@ -28366,7 +28434,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Platform": @@ -28375,7 +28443,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "PromotionalMessagesPerSecond": @@ -28388,7 +28456,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if err != nil { return err } - sv.PromotionalMessagesPerSecond = ptr.Int32(int32(i64)) + sv.PromotionalMessagesPerSecond = int32(i64) } case "SenderId": @@ -28397,7 +28465,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SenderId = &jtv + sv.SenderId = ptr.String(jtv) } case "ShortCode": @@ -28406,7 +28474,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ShortCode = &jtv + sv.ShortCode = ptr.String(jtv) } case "TransactionalMessagesPerSecond": @@ -28419,7 +28487,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if err != nil { return err } - sv.TransactionalMessagesPerSecond = ptr.Int32(int32(i64)) + sv.TransactionalMessagesPerSecond = int32(i64) } case "Version": @@ -28432,7 +28500,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -28477,7 +28545,7 @@ func awsRestjson1_deserializeDocumentSMSMessageActivity(v **types.SMSMessageActi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextActivity = &jtv + sv.NextActivity = ptr.String(jtv) } case "TemplateName": @@ -28486,7 +28554,7 @@ func awsRestjson1_deserializeDocumentSMSMessageActivity(v **types.SMSMessageActi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } case "TemplateVersion": @@ -28495,7 +28563,7 @@ func awsRestjson1_deserializeDocumentSMSMessageActivity(v **types.SMSMessageActi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateVersion = &jtv + sv.TemplateVersion = ptr.String(jtv) } default: @@ -28535,7 +28603,7 @@ func awsRestjson1_deserializeDocumentSMSTemplateResponse(v **types.SMSTemplateRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Body": @@ -28544,7 +28612,7 @@ func awsRestjson1_deserializeDocumentSMSTemplateResponse(v **types.SMSTemplateRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Body = &jtv + sv.Body = ptr.String(jtv) } case "CreationDate": @@ -28553,7 +28621,7 @@ func awsRestjson1_deserializeDocumentSMSTemplateResponse(v **types.SMSTemplateRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "DefaultSubstitutions": @@ -28562,7 +28630,7 @@ func awsRestjson1_deserializeDocumentSMSTemplateResponse(v **types.SMSTemplateRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DefaultSubstitutions = &jtv + sv.DefaultSubstitutions = ptr.String(jtv) } case "LastModifiedDate": @@ -28571,7 +28639,7 @@ func awsRestjson1_deserializeDocumentSMSTemplateResponse(v **types.SMSTemplateRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "RecommenderId": @@ -28580,7 +28648,7 @@ func awsRestjson1_deserializeDocumentSMSTemplateResponse(v **types.SMSTemplateRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RecommenderId = &jtv + sv.RecommenderId = ptr.String(jtv) } case "tags": @@ -28594,7 +28662,7 @@ func awsRestjson1_deserializeDocumentSMSTemplateResponse(v **types.SMSTemplateRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateDescription = &jtv + sv.TemplateDescription = ptr.String(jtv) } case "TemplateName": @@ -28603,7 +28671,7 @@ func awsRestjson1_deserializeDocumentSMSTemplateResponse(v **types.SMSTemplateRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } case "TemplateType": @@ -28621,7 +28689,7 @@ func awsRestjson1_deserializeDocumentSMSTemplateResponse(v **types.SMSTemplateRe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -28661,7 +28729,7 @@ func awsRestjson1_deserializeDocumentStartCondition(v **types.StartCondition, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EventStartCondition": @@ -28747,7 +28815,7 @@ func awsRestjson1_deserializeDocumentTemplate(v **types.Template, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Version": @@ -28756,7 +28824,7 @@ func awsRestjson1_deserializeDocumentTemplate(v **types.Template, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -28847,7 +28915,7 @@ func awsRestjson1_deserializeDocumentTemplateResponse(v **types.TemplateResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationDate": @@ -28856,7 +28924,7 @@ func awsRestjson1_deserializeDocumentTemplateResponse(v **types.TemplateResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "DefaultSubstitutions": @@ -28865,7 +28933,7 @@ func awsRestjson1_deserializeDocumentTemplateResponse(v **types.TemplateResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DefaultSubstitutions = &jtv + sv.DefaultSubstitutions = ptr.String(jtv) } case "LastModifiedDate": @@ -28874,7 +28942,7 @@ func awsRestjson1_deserializeDocumentTemplateResponse(v **types.TemplateResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "tags": @@ -28888,7 +28956,7 @@ func awsRestjson1_deserializeDocumentTemplateResponse(v **types.TemplateResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateDescription = &jtv + sv.TemplateDescription = ptr.String(jtv) } case "TemplateName": @@ -28897,7 +28965,7 @@ func awsRestjson1_deserializeDocumentTemplateResponse(v **types.TemplateResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } case "TemplateType": @@ -28915,7 +28983,7 @@ func awsRestjson1_deserializeDocumentTemplateResponse(v **types.TemplateResponse if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -28960,7 +29028,7 @@ func awsRestjson1_deserializeDocumentTemplatesResponse(v **types.TemplatesRespon if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -29000,7 +29068,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionResponse(v **types.TemplateV if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "DefaultSubstitutions": @@ -29009,7 +29077,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionResponse(v **types.TemplateV if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DefaultSubstitutions = &jtv + sv.DefaultSubstitutions = ptr.String(jtv) } case "LastModifiedDate": @@ -29018,7 +29086,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionResponse(v **types.TemplateV if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "TemplateDescription": @@ -29027,7 +29095,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionResponse(v **types.TemplateV if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateDescription = &jtv + sv.TemplateDescription = ptr.String(jtv) } case "TemplateName": @@ -29036,7 +29104,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionResponse(v **types.TemplateV if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } case "TemplateType": @@ -29045,7 +29113,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionResponse(v **types.TemplateV if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateType = &jtv + sv.TemplateType = ptr.String(jtv) } case "Version": @@ -29054,7 +29122,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionResponse(v **types.TemplateV if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -29099,7 +29167,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionsResponse(v **types.Template if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "NextToken": @@ -29108,7 +29176,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionsResponse(v **types.Template if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestID": @@ -29117,7 +29185,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionsResponse(v **types.Template if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestID = &jtv + sv.RequestID = ptr.String(jtv) } default: @@ -29157,7 +29225,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestID": @@ -29166,7 +29234,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RequestID = &jtv + sv.RequestID = ptr.String(jtv) } default: @@ -29211,7 +29279,7 @@ func awsRestjson1_deserializeDocumentTreatmentResource(v **types.TreatmentResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "MessageConfiguration": @@ -29234,7 +29302,7 @@ func awsRestjson1_deserializeDocumentTreatmentResource(v **types.TreatmentResour if err != nil { return err } - sv.SizePercent = ptr.Int32(int32(i64)) + sv.SizePercent = int32(i64) } case "State": @@ -29253,7 +29321,7 @@ func awsRestjson1_deserializeDocumentTreatmentResource(v **types.TreatmentResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TreatmentDescription = &jtv + sv.TreatmentDescription = ptr.String(jtv) } case "TreatmentName": @@ -29262,7 +29330,7 @@ func awsRestjson1_deserializeDocumentTreatmentResource(v **types.TreatmentResour if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TreatmentName = &jtv + sv.TreatmentName = ptr.String(jtv) } default: @@ -29302,7 +29370,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "CreationDate": @@ -29311,7 +29379,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "Enabled": @@ -29320,7 +29388,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "HasCredential": @@ -29329,7 +29397,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = &jtv + sv.HasCredential = jtv } case "Id": @@ -29338,7 +29406,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IsArchived": @@ -29347,7 +29415,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = &jtv + sv.IsArchived = jtv } case "LastModifiedBy": @@ -29356,7 +29424,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedDate": @@ -29365,7 +29433,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "Platform": @@ -29374,7 +29442,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Platform = &jtv + sv.Platform = ptr.String(jtv) } case "Version": @@ -29387,7 +29455,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -29427,7 +29495,7 @@ func awsRestjson1_deserializeDocumentVoiceTemplateResponse(v **types.VoiceTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Body": @@ -29436,7 +29504,7 @@ func awsRestjson1_deserializeDocumentVoiceTemplateResponse(v **types.VoiceTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Body = &jtv + sv.Body = ptr.String(jtv) } case "CreationDate": @@ -29445,7 +29513,7 @@ func awsRestjson1_deserializeDocumentVoiceTemplateResponse(v **types.VoiceTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "DefaultSubstitutions": @@ -29454,7 +29522,7 @@ func awsRestjson1_deserializeDocumentVoiceTemplateResponse(v **types.VoiceTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DefaultSubstitutions = &jtv + sv.DefaultSubstitutions = ptr.String(jtv) } case "LanguageCode": @@ -29463,7 +29531,7 @@ func awsRestjson1_deserializeDocumentVoiceTemplateResponse(v **types.VoiceTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LanguageCode = &jtv + sv.LanguageCode = ptr.String(jtv) } case "LastModifiedDate": @@ -29472,7 +29540,7 @@ func awsRestjson1_deserializeDocumentVoiceTemplateResponse(v **types.VoiceTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LastModifiedDate = &jtv + sv.LastModifiedDate = ptr.String(jtv) } case "tags": @@ -29486,7 +29554,7 @@ func awsRestjson1_deserializeDocumentVoiceTemplateResponse(v **types.VoiceTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateDescription = &jtv + sv.TemplateDescription = ptr.String(jtv) } case "TemplateName": @@ -29495,7 +29563,7 @@ func awsRestjson1_deserializeDocumentVoiceTemplateResponse(v **types.VoiceTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } case "TemplateType": @@ -29513,7 +29581,7 @@ func awsRestjson1_deserializeDocumentVoiceTemplateResponse(v **types.VoiceTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "VoiceId": @@ -29522,7 +29590,7 @@ func awsRestjson1_deserializeDocumentVoiceTemplateResponse(v **types.VoiceTempla if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VoiceId = &jtv + sv.VoiceId = ptr.String(jtv) } default: @@ -29562,7 +29630,7 @@ func awsRestjson1_deserializeDocumentWaitActivity(v **types.WaitActivity, value if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextActivity = &jtv + sv.NextActivity = ptr.String(jtv) } case "WaitTime": @@ -29607,7 +29675,7 @@ func awsRestjson1_deserializeDocumentWaitTime(v **types.WaitTime, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.WaitFor = &jtv + sv.WaitFor = ptr.String(jtv) } case "WaitUntil": @@ -29616,7 +29684,7 @@ func awsRestjson1_deserializeDocumentWaitTime(v **types.WaitTime, value interfac if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.WaitUntil = &jtv + sv.WaitUntil = ptr.String(jtv) } default: diff --git a/service/pinpoint/go.mod b/service/pinpoint/go.mod index f333804a1b8..f3bd17622cc 100644 --- a/service/pinpoint/go.mod +++ b/service/pinpoint/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/pinpoint go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/pinpoint/serializers.go b/service/pinpoint/serializers.go index b02d66b1941..e62db702bea 100644 --- a/service/pinpoint/serializers.go +++ b/service/pinpoint/serializers.go @@ -146,13 +146,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateCampaignInput(v *CreateCampaignIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -227,13 +224,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateEmailTemplateInput(v *CreateEmail return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -308,13 +302,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateExportJobInput(v *CreateExportJob return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -389,13 +380,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateImportJobInput(v *CreateImportJob return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -470,13 +458,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateJourneyInput(v *CreateJourneyInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -551,13 +536,10 @@ func awsRestjson1_serializeOpHttpBindingsCreatePushTemplateInput(v *CreatePushTe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -697,13 +679,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateSegmentInput(v *CreateSegmentInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -778,13 +757,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateSmsTemplateInput(v *CreateSmsTemp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -859,13 +835,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateVoiceTemplateInput(v *CreateVoice return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -925,13 +898,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAdmChannelInput(v *DeleteAdmChann return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -991,13 +961,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteApnsChannelInput(v *DeleteApnsCha return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -1057,13 +1024,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteApnsSandboxChannelInput(v *Delete return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -1123,13 +1087,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteApnsVoipChannelInput(v *DeleteApn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -1189,13 +1150,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteApnsVoipSandboxChannelInput(v *De return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -1255,13 +1213,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAppInput(v *DeleteAppInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -1321,13 +1276,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBaiduChannelInput(v *DeleteBaiduC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -1387,25 +1339,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteCampaignInput(v *DeleteCampaignIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.CampaignId == nil { + if v.CampaignId == nil || len(*v.CampaignId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} } if v.CampaignId != nil { - if len(*v.CampaignId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} - } if err := encoder.SetURI("CampaignId").String(*v.CampaignId); err != nil { return err } @@ -1465,13 +1411,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteEmailChannelInput(v *DeleteEmailC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -1531,13 +1474,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteEmailTemplateInput(v *DeleteEmail return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -1601,25 +1541,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteEndpointInput(v *DeleteEndpointIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.EndpointId == nil { + if v.EndpointId == nil || len(*v.EndpointId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EndpointId must not be empty")} } if v.EndpointId != nil { - if len(*v.EndpointId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EndpointId must not be empty")} - } if err := encoder.SetURI("EndpointId").String(*v.EndpointId); err != nil { return err } @@ -1679,13 +1613,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteEventStreamInput(v *DeleteEventSt return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -1745,13 +1676,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteGcmChannelInput(v *DeleteGcmChann return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -1811,25 +1739,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteJourneyInput(v *DeleteJourneyInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.JourneyId == nil { + if v.JourneyId == nil || len(*v.JourneyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} } if v.JourneyId != nil { - if len(*v.JourneyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} - } if err := encoder.SetURI("JourneyId").String(*v.JourneyId); err != nil { return err } @@ -1889,13 +1811,10 @@ func awsRestjson1_serializeOpHttpBindingsDeletePushTemplateInput(v *DeletePushTe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -1959,13 +1878,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRecommenderConfigurationInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RecommenderId == nil { + if v.RecommenderId == nil || len(*v.RecommenderId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RecommenderId must not be empty")} } if v.RecommenderId != nil { - if len(*v.RecommenderId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RecommenderId must not be empty")} - } if err := encoder.SetURI("RecommenderId").String(*v.RecommenderId); err != nil { return err } @@ -2025,25 +1941,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSegmentInput(v *DeleteSegmentInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.SegmentId == nil { + if v.SegmentId == nil || len(*v.SegmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} } if v.SegmentId != nil { - if len(*v.SegmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} - } if err := encoder.SetURI("SegmentId").String(*v.SegmentId); err != nil { return err } @@ -2103,13 +2013,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSmsChannelInput(v *DeleteSmsChann return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -2169,13 +2076,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSmsTemplateInput(v *DeleteSmsTemp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -2239,25 +2143,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteUserEndpointsInput(v *DeleteUserE return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -2317,13 +2215,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVoiceChannelInput(v *DeleteVoiceC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -2383,13 +2278,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteVoiceTemplateInput(v *DeleteVoice return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -2453,13 +2345,10 @@ func awsRestjson1_serializeOpHttpBindingsGetAdmChannelInput(v *GetAdmChannelInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -2519,13 +2408,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApnsChannelInput(v *GetApnsChannelIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -2585,13 +2471,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApnsSandboxChannelInput(v *GetApnsSa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -2651,13 +2534,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApnsVoipChannelInput(v *GetApnsVoipC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -2717,13 +2597,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApnsVoipSandboxChannelInput(v *GetAp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -2783,13 +2660,10 @@ func awsRestjson1_serializeOpHttpBindingsGetAppInput(v *GetAppInput, encoder *ht return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -2849,13 +2723,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApplicationDateRangeKpiInput(v *GetA return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -2865,13 +2736,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApplicationDateRangeKpiInput(v *GetA encoder.SetQuery("end-time").String(smithytime.FormatDateTime(*v.EndTime)) } - if v.KpiName == nil { + if v.KpiName == nil || len(*v.KpiName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member KpiName must not be empty")} } if v.KpiName != nil { - if len(*v.KpiName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member KpiName must not be empty")} - } if err := encoder.SetURI("KpiName").String(*v.KpiName); err != nil { return err } @@ -2943,13 +2811,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApplicationSettingsInput(v *GetAppli return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -3071,13 +2936,10 @@ func awsRestjson1_serializeOpHttpBindingsGetBaiduChannelInput(v *GetBaiduChannel return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -3137,25 +2999,19 @@ func awsRestjson1_serializeOpHttpBindingsGetCampaignInput(v *GetCampaignInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.CampaignId == nil { + if v.CampaignId == nil || len(*v.CampaignId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} } if v.CampaignId != nil { - if len(*v.CampaignId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} - } if err := encoder.SetURI("CampaignId").String(*v.CampaignId); err != nil { return err } @@ -3215,25 +3071,19 @@ func awsRestjson1_serializeOpHttpBindingsGetCampaignActivitiesInput(v *GetCampai return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.CampaignId == nil { + if v.CampaignId == nil || len(*v.CampaignId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} } if v.CampaignId != nil { - if len(*v.CampaignId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} - } if err := encoder.SetURI("CampaignId").String(*v.CampaignId); err != nil { return err } @@ -3301,25 +3151,19 @@ func awsRestjson1_serializeOpHttpBindingsGetCampaignDateRangeKpiInput(v *GetCamp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.CampaignId == nil { + if v.CampaignId == nil || len(*v.CampaignId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} } if v.CampaignId != nil { - if len(*v.CampaignId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} - } if err := encoder.SetURI("CampaignId").String(*v.CampaignId); err != nil { return err } @@ -3329,13 +3173,10 @@ func awsRestjson1_serializeOpHttpBindingsGetCampaignDateRangeKpiInput(v *GetCamp encoder.SetQuery("end-time").String(smithytime.FormatDateTime(*v.EndTime)) } - if v.KpiName == nil { + if v.KpiName == nil || len(*v.KpiName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member KpiName must not be empty")} } if v.KpiName != nil { - if len(*v.KpiName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member KpiName must not be empty")} - } if err := encoder.SetURI("KpiName").String(*v.KpiName); err != nil { return err } @@ -3407,13 +3248,10 @@ func awsRestjson1_serializeOpHttpBindingsGetCampaignsInput(v *GetCampaignsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -3481,37 +3319,28 @@ func awsRestjson1_serializeOpHttpBindingsGetCampaignVersionInput(v *GetCampaignV return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.CampaignId == nil { + if v.CampaignId == nil || len(*v.CampaignId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} } if v.CampaignId != nil { - if len(*v.CampaignId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} - } if err := encoder.SetURI("CampaignId").String(*v.CampaignId); err != nil { return err } } - if v.Version == nil { + if v.Version == nil || len(*v.Version) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Version must not be empty")} } if v.Version != nil { - if len(*v.Version) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Version must not be empty")} - } if err := encoder.SetURI("Version").String(*v.Version); err != nil { return err } @@ -3571,25 +3400,19 @@ func awsRestjson1_serializeOpHttpBindingsGetCampaignVersionsInput(v *GetCampaign return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.CampaignId == nil { + if v.CampaignId == nil || len(*v.CampaignId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} } if v.CampaignId != nil { - if len(*v.CampaignId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} - } if err := encoder.SetURI("CampaignId").String(*v.CampaignId); err != nil { return err } @@ -3657,13 +3480,10 @@ func awsRestjson1_serializeOpHttpBindingsGetChannelsInput(v *GetChannelsInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -3723,13 +3543,10 @@ func awsRestjson1_serializeOpHttpBindingsGetEmailChannelInput(v *GetEmailChannel return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -3789,13 +3606,10 @@ func awsRestjson1_serializeOpHttpBindingsGetEmailTemplateInput(v *GetEmailTempla return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -3859,25 +3673,19 @@ func awsRestjson1_serializeOpHttpBindingsGetEndpointInput(v *GetEndpointInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.EndpointId == nil { + if v.EndpointId == nil || len(*v.EndpointId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EndpointId must not be empty")} } if v.EndpointId != nil { - if len(*v.EndpointId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EndpointId must not be empty")} - } if err := encoder.SetURI("EndpointId").String(*v.EndpointId); err != nil { return err } @@ -3937,13 +3745,10 @@ func awsRestjson1_serializeOpHttpBindingsGetEventStreamInput(v *GetEventStreamIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -4003,25 +3808,19 @@ func awsRestjson1_serializeOpHttpBindingsGetExportJobInput(v *GetExportJobInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} - } if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { return err } @@ -4081,13 +3880,10 @@ func awsRestjson1_serializeOpHttpBindingsGetExportJobsInput(v *GetExportJobsInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -4155,13 +3951,10 @@ func awsRestjson1_serializeOpHttpBindingsGetGcmChannelInput(v *GetGcmChannelInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -4221,25 +4014,19 @@ func awsRestjson1_serializeOpHttpBindingsGetImportJobInput(v *GetImportJobInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} - } if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { return err } @@ -4299,13 +4086,10 @@ func awsRestjson1_serializeOpHttpBindingsGetImportJobsInput(v *GetImportJobsInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -4373,25 +4157,19 @@ func awsRestjson1_serializeOpHttpBindingsGetJourneyInput(v *GetJourneyInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.JourneyId == nil { + if v.JourneyId == nil || len(*v.JourneyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} } if v.JourneyId != nil { - if len(*v.JourneyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} - } if err := encoder.SetURI("JourneyId").String(*v.JourneyId); err != nil { return err } @@ -4451,13 +4229,10 @@ func awsRestjson1_serializeOpHttpBindingsGetJourneyDateRangeKpiInput(v *GetJourn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -4467,25 +4242,19 @@ func awsRestjson1_serializeOpHttpBindingsGetJourneyDateRangeKpiInput(v *GetJourn encoder.SetQuery("end-time").String(smithytime.FormatDateTime(*v.EndTime)) } - if v.JourneyId == nil { + if v.JourneyId == nil || len(*v.JourneyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} } if v.JourneyId != nil { - if len(*v.JourneyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} - } if err := encoder.SetURI("JourneyId").String(*v.JourneyId); err != nil { return err } } - if v.KpiName == nil { + if v.KpiName == nil || len(*v.KpiName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member KpiName must not be empty")} } if v.KpiName != nil { - if len(*v.KpiName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member KpiName must not be empty")} - } if err := encoder.SetURI("KpiName").String(*v.KpiName); err != nil { return err } @@ -4557,37 +4326,28 @@ func awsRestjson1_serializeOpHttpBindingsGetJourneyExecutionActivityMetricsInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.JourneyActivityId == nil { + if v.JourneyActivityId == nil || len(*v.JourneyActivityId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyActivityId must not be empty")} } if v.JourneyActivityId != nil { - if len(*v.JourneyActivityId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyActivityId must not be empty")} - } if err := encoder.SetURI("JourneyActivityId").String(*v.JourneyActivityId); err != nil { return err } } - if v.JourneyId == nil { + if v.JourneyId == nil || len(*v.JourneyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} } if v.JourneyId != nil { - if len(*v.JourneyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} - } if err := encoder.SetURI("JourneyId").String(*v.JourneyId); err != nil { return err } @@ -4655,25 +4415,19 @@ func awsRestjson1_serializeOpHttpBindingsGetJourneyExecutionMetricsInput(v *GetJ return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.JourneyId == nil { + if v.JourneyId == nil || len(*v.JourneyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} } if v.JourneyId != nil { - if len(*v.JourneyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} - } if err := encoder.SetURI("JourneyId").String(*v.JourneyId); err != nil { return err } @@ -4741,13 +4495,10 @@ func awsRestjson1_serializeOpHttpBindingsGetPushTemplateInput(v *GetPushTemplate return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -4811,13 +4562,10 @@ func awsRestjson1_serializeOpHttpBindingsGetRecommenderConfigurationInput(v *Get return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RecommenderId == nil { + if v.RecommenderId == nil || len(*v.RecommenderId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RecommenderId must not be empty")} } if v.RecommenderId != nil { - if len(*v.RecommenderId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RecommenderId must not be empty")} - } if err := encoder.SetURI("RecommenderId").String(*v.RecommenderId); err != nil { return err } @@ -4939,25 +4687,19 @@ func awsRestjson1_serializeOpHttpBindingsGetSegmentInput(v *GetSegmentInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.SegmentId == nil { + if v.SegmentId == nil || len(*v.SegmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} } if v.SegmentId != nil { - if len(*v.SegmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} - } if err := encoder.SetURI("SegmentId").String(*v.SegmentId); err != nil { return err } @@ -5017,13 +4759,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSegmentExportJobsInput(v *GetSegment return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -5033,13 +4772,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSegmentExportJobsInput(v *GetSegment encoder.SetQuery("page-size").String(*v.PageSize) } - if v.SegmentId == nil { + if v.SegmentId == nil || len(*v.SegmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} } if v.SegmentId != nil { - if len(*v.SegmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} - } if err := encoder.SetURI("SegmentId").String(*v.SegmentId); err != nil { return err } @@ -5103,13 +4839,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSegmentImportJobsInput(v *GetSegment return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -5119,13 +4852,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSegmentImportJobsInput(v *GetSegment encoder.SetQuery("page-size").String(*v.PageSize) } - if v.SegmentId == nil { + if v.SegmentId == nil || len(*v.SegmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} } if v.SegmentId != nil { - if len(*v.SegmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} - } if err := encoder.SetURI("SegmentId").String(*v.SegmentId); err != nil { return err } @@ -5189,13 +4919,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSegmentsInput(v *GetSegmentsInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -5263,37 +4990,28 @@ func awsRestjson1_serializeOpHttpBindingsGetSegmentVersionInput(v *GetSegmentVer return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.SegmentId == nil { + if v.SegmentId == nil || len(*v.SegmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} } if v.SegmentId != nil { - if len(*v.SegmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} - } if err := encoder.SetURI("SegmentId").String(*v.SegmentId); err != nil { return err } } - if v.Version == nil { + if v.Version == nil || len(*v.Version) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Version must not be empty")} } if v.Version != nil { - if len(*v.Version) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Version must not be empty")} - } if err := encoder.SetURI("Version").String(*v.Version); err != nil { return err } @@ -5353,13 +5071,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSegmentVersionsInput(v *GetSegmentVe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -5369,13 +5084,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSegmentVersionsInput(v *GetSegmentVe encoder.SetQuery("page-size").String(*v.PageSize) } - if v.SegmentId == nil { + if v.SegmentId == nil || len(*v.SegmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} } if v.SegmentId != nil { - if len(*v.SegmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} - } if err := encoder.SetURI("SegmentId").String(*v.SegmentId); err != nil { return err } @@ -5439,13 +5151,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSmsChannelInput(v *GetSmsChannelInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -5505,13 +5214,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSmsTemplateInput(v *GetSmsTemplateIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -5575,25 +5281,19 @@ func awsRestjson1_serializeOpHttpBindingsGetUserEndpointsInput(v *GetUserEndpoin return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -5653,13 +5353,10 @@ func awsRestjson1_serializeOpHttpBindingsGetVoiceChannelInput(v *GetVoiceChannel return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -5719,13 +5416,10 @@ func awsRestjson1_serializeOpHttpBindingsGetVoiceTemplateInput(v *GetVoiceTempla return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -5789,13 +5483,10 @@ func awsRestjson1_serializeOpHttpBindingsListJourneysInput(v *ListJourneysInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -5863,13 +5554,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -6007,25 +5695,19 @@ func awsRestjson1_serializeOpHttpBindingsListTemplateVersionsInput(v *ListTempla encoder.SetQuery("page-size").String(*v.PageSize) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } } - if v.TemplateType == nil { + if v.TemplateType == nil || len(*v.TemplateType) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateType must not be empty")} } if v.TemplateType != nil { - if len(*v.TemplateType) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateType must not be empty")} - } if err := encoder.SetURI("TemplateType").String(*v.TemplateType); err != nil { return err } @@ -6165,13 +5847,10 @@ func awsRestjson1_serializeOpHttpBindingsPutEventsInput(v *PutEventsInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -6246,13 +5925,10 @@ func awsRestjson1_serializeOpHttpBindingsPutEventStreamInput(v *PutEventStreamIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -6327,25 +6003,19 @@ func awsRestjson1_serializeOpHttpBindingsRemoveAttributesInput(v *RemoveAttribut return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.AttributeType == nil { + if v.AttributeType == nil || len(*v.AttributeType) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AttributeType must not be empty")} } if v.AttributeType != nil { - if len(*v.AttributeType) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AttributeType must not be empty")} - } if err := encoder.SetURI("AttributeType").String(*v.AttributeType); err != nil { return err } @@ -6420,13 +6090,10 @@ func awsRestjson1_serializeOpHttpBindingsSendMessagesInput(v *SendMessagesInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -6501,13 +6168,10 @@ func awsRestjson1_serializeOpHttpBindingsSendUsersMessagesInput(v *SendUsersMess return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -6582,13 +6246,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -6648,13 +6309,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -6662,10 +6320,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -6738,13 +6393,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAdmChannelInput(v *UpdateAdmChann return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -6819,13 +6471,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateApnsChannelInput(v *UpdateApnsCha return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -6900,13 +6549,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateApnsSandboxChannelInput(v *Update return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -6981,13 +6627,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateApnsVoipChannelInput(v *UpdateApn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -7062,13 +6705,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateApnsVoipSandboxChannelInput(v *Up return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -7143,13 +6783,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateApplicationSettingsInput(v *Updat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -7224,13 +6861,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateBaiduChannelInput(v *UpdateBaiduC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -7305,25 +6939,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateCampaignInput(v *UpdateCampaignIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.CampaignId == nil { + if v.CampaignId == nil || len(*v.CampaignId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} } if v.CampaignId != nil { - if len(*v.CampaignId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} - } if err := encoder.SetURI("CampaignId").String(*v.CampaignId); err != nil { return err } @@ -7398,13 +7026,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateEmailChannelInput(v *UpdateEmailC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -7479,17 +7104,14 @@ func awsRestjson1_serializeOpHttpBindingsUpdateEmailTemplateInput(v *UpdateEmail return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CreateNewVersion != nil { - encoder.SetQuery("create-new-version").Boolean(*v.CreateNewVersion) + if v.CreateNewVersion { + encoder.SetQuery("create-new-version").Boolean(v.CreateNewVersion) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -7568,25 +7190,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateEndpointInput(v *UpdateEndpointIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.EndpointId == nil { + if v.EndpointId == nil || len(*v.EndpointId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EndpointId must not be empty")} } if v.EndpointId != nil { - if len(*v.EndpointId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EndpointId must not be empty")} - } if err := encoder.SetURI("EndpointId").String(*v.EndpointId); err != nil { return err } @@ -7661,13 +7277,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateEndpointsBatchInput(v *UpdateEndp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -7742,13 +7355,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateGcmChannelInput(v *UpdateGcmChann return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -7823,25 +7433,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateJourneyInput(v *UpdateJourneyInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.JourneyId == nil { + if v.JourneyId == nil || len(*v.JourneyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} } if v.JourneyId != nil { - if len(*v.JourneyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} - } if err := encoder.SetURI("JourneyId").String(*v.JourneyId); err != nil { return err } @@ -7916,25 +7520,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateJourneyStateInput(v *UpdateJourne return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.JourneyId == nil { + if v.JourneyId == nil || len(*v.JourneyId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} } if v.JourneyId != nil { - if len(*v.JourneyId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JourneyId must not be empty")} - } if err := encoder.SetURI("JourneyId").String(*v.JourneyId); err != nil { return err } @@ -8009,17 +7607,14 @@ func awsRestjson1_serializeOpHttpBindingsUpdatePushTemplateInput(v *UpdatePushTe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CreateNewVersion != nil { - encoder.SetQuery("create-new-version").Boolean(*v.CreateNewVersion) + if v.CreateNewVersion { + encoder.SetQuery("create-new-version").Boolean(v.CreateNewVersion) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -8098,13 +7693,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRecommenderConfigurationInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RecommenderId == nil { + if v.RecommenderId == nil || len(*v.RecommenderId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RecommenderId must not be empty")} } if v.RecommenderId != nil { - if len(*v.RecommenderId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RecommenderId must not be empty")} - } if err := encoder.SetURI("RecommenderId").String(*v.RecommenderId); err != nil { return err } @@ -8179,25 +7771,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateSegmentInput(v *UpdateSegmentInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.SegmentId == nil { + if v.SegmentId == nil || len(*v.SegmentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} } if v.SegmentId != nil { - if len(*v.SegmentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentId must not be empty")} - } if err := encoder.SetURI("SegmentId").String(*v.SegmentId); err != nil { return err } @@ -8272,13 +7858,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateSmsChannelInput(v *UpdateSmsChann return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -8353,17 +7936,14 @@ func awsRestjson1_serializeOpHttpBindingsUpdateSmsTemplateInput(v *UpdateSmsTemp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CreateNewVersion != nil { - encoder.SetQuery("create-new-version").Boolean(*v.CreateNewVersion) + if v.CreateNewVersion { + encoder.SetQuery("create-new-version").Boolean(v.CreateNewVersion) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -8442,25 +8022,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateTemplateActiveVersionInput(v *Upd return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } } - if v.TemplateType == nil { + if v.TemplateType == nil || len(*v.TemplateType) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateType must not be empty")} } if v.TemplateType != nil { - if len(*v.TemplateType) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateType must not be empty")} - } if err := encoder.SetURI("TemplateType").String(*v.TemplateType); err != nil { return err } @@ -8535,13 +8109,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVoiceChannelInput(v *UpdateVoiceC return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -8616,17 +8187,14 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVoiceTemplateInput(v *UpdateVoice return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CreateNewVersion != nil { - encoder.SetQuery("create-new-version").Boolean(*v.CreateNewVersion) + if v.CreateNewVersion { + encoder.SetQuery("create-new-version").Boolean(v.CreateNewVersion) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -8769,9 +8337,9 @@ func awsRestjson1_serializeDocumentADMChannelRequest(v *types.ADMChannelRequest, ok.String(*v.ClientSecret) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } return nil @@ -8833,9 +8401,9 @@ func awsRestjson1_serializeDocumentADMMessage(v *types.ADMMessage, value smithyj ok.String(*v.RawContent) } - if v.SilentPush != nil { + if v.SilentPush { ok := object.Key("SilentPush") - ok.Boolean(*v.SilentPush) + ok.Boolean(v.SilentPush) } if v.SmallImageIconUrl != nil { @@ -8939,9 +8507,9 @@ func awsRestjson1_serializeDocumentAPNSChannelRequest(v *types.APNSChannelReques ok.String(*v.DefaultAuthenticationMethod) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.PrivateKey != nil { @@ -8981,9 +8549,9 @@ func awsRestjson1_serializeDocumentAPNSMessage(v *types.APNSMessage, value smith ok.String(*v.APNSPushType) } - if v.Badge != nil { + if v.Badge != 0 { ok := object.Key("Badge") - ok.Integer(*v.Badge) + ok.Integer(v.Badge) } if v.Body != nil { @@ -9028,9 +8596,9 @@ func awsRestjson1_serializeDocumentAPNSMessage(v *types.APNSMessage, value smith ok.String(*v.RawContent) } - if v.SilentPush != nil { + if v.SilentPush { ok := object.Key("SilentPush") - ok.Boolean(*v.SilentPush) + ok.Boolean(v.SilentPush) } if v.Sound != nil { @@ -9050,9 +8618,9 @@ func awsRestjson1_serializeDocumentAPNSMessage(v *types.APNSMessage, value smith ok.String(*v.ThreadId) } - if v.TimeToLive != nil { + if v.TimeToLive != 0 { ok := object.Key("TimeToLive") - ok.Integer(*v.TimeToLive) + ok.Integer(v.TimeToLive) } if v.Title != nil { @@ -9129,9 +8697,9 @@ func awsRestjson1_serializeDocumentAPNSSandboxChannelRequest(v *types.APNSSandbo ok.String(*v.DefaultAuthenticationMethod) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.PrivateKey != nil { @@ -9176,9 +8744,9 @@ func awsRestjson1_serializeDocumentAPNSVoipChannelRequest(v *types.APNSVoipChann ok.String(*v.DefaultAuthenticationMethod) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.PrivateKey != nil { @@ -9223,9 +8791,9 @@ func awsRestjson1_serializeDocumentAPNSVoipSandboxChannelRequest(v *types.APNSVo ok.String(*v.DefaultAuthenticationMethod) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.PrivateKey != nil { @@ -9279,9 +8847,9 @@ func awsRestjson1_serializeDocumentBaiduChannelRequest(v *types.BaiduChannelRequ ok.String(*v.ApiKey) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.SecretKey != nil { @@ -9333,9 +8901,9 @@ func awsRestjson1_serializeDocumentBaiduMessage(v *types.BaiduMessage, value smi ok.String(*v.RawContent) } - if v.SilentPush != nil { + if v.SilentPush { ok := object.Key("SilentPush") - ok.Boolean(*v.SilentPush) + ok.Boolean(v.SilentPush) } if v.SmallImageIconUrl != nil { @@ -9355,9 +8923,9 @@ func awsRestjson1_serializeDocumentBaiduMessage(v *types.BaiduMessage, value smi } } - if v.TimeToLive != nil { + if v.TimeToLive != 0 { ok := object.Key("TimeToLive") - ok.Integer(*v.TimeToLive) + ok.Integer(v.TimeToLive) } if v.Title != nil { @@ -9457,24 +9025,24 @@ func awsRestjson1_serializeDocumentCampaignLimits(v *types.CampaignLimits, value object := value.Object() defer object.Close() - if v.Daily != nil { + if v.Daily != 0 { ok := object.Key("Daily") - ok.Integer(*v.Daily) + ok.Integer(v.Daily) } - if v.MaximumDuration != nil { + if v.MaximumDuration != 0 { ok := object.Key("MaximumDuration") - ok.Integer(*v.MaximumDuration) + ok.Integer(v.MaximumDuration) } - if v.MessagesPerSecond != nil { + if v.MessagesPerSecond != 0 { ok := object.Key("MessagesPerSecond") - ok.Integer(*v.MessagesPerSecond) + ok.Integer(v.MessagesPerSecond) } - if v.Total != nil { + if v.Total != 0 { ok := object.Key("Total") - ok.Integer(*v.Total) + ok.Integer(v.Total) } return nil @@ -9612,9 +9180,9 @@ func awsRestjson1_serializeDocumentCreateRecommenderConfigurationShape(v *types. ok.String(*v.RecommendationsDisplayName) } - if v.RecommendationsPerMessage != nil { + if v.RecommendationsPerMessage != 0 { ok := object.Key("RecommendationsPerMessage") - ok.Integer(*v.RecommendationsPerMessage) + ok.Integer(v.RecommendationsPerMessage) } if v.RecommendationTransformerUri != nil { @@ -9725,9 +9293,9 @@ func awsRestjson1_serializeDocumentDefaultPushNotificationMessage(v *types.Defau } } - if v.SilentPush != nil { + if v.SilentPush { ok := object.Key("SilentPush") - ok.Boolean(*v.SilentPush) + ok.Boolean(v.SilentPush) } if v.Substitutions != nil { @@ -9861,9 +9429,9 @@ func awsRestjson1_serializeDocumentEmailChannelRequest(v *types.EmailChannelRequ ok.String(*v.ConfigurationSet) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.FromAddress != nil { @@ -10159,14 +9727,14 @@ func awsRestjson1_serializeDocumentEndpointLocation(v *types.EndpointLocation, v ok.String(*v.Country) } - if v.Latitude != nil { + if v.Latitude != 0 { ok := object.Key("Latitude") - ok.Double(*v.Latitude) + ok.Double(v.Latitude) } - if v.Longitude != nil { + if v.Longitude != 0 { ok := object.Key("Longitude") - ok.Double(*v.Longitude) + ok.Double(v.Longitude) } if v.PostalCode != nil { @@ -10511,9 +10079,9 @@ func awsRestjson1_serializeDocumentExportJobRequest(v *types.ExportJobRequest, v ok.String(*v.SegmentId) } - if v.SegmentVersion != nil { + if v.SegmentVersion != 0 { ok := object.Key("SegmentVersion") - ok.Integer(*v.SegmentVersion) + ok.Integer(v.SegmentVersion) } return nil @@ -10528,9 +10096,9 @@ func awsRestjson1_serializeDocumentGCMChannelRequest(v *types.GCMChannelRequest, ok.String(*v.ApiKey) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } return nil @@ -10592,9 +10160,9 @@ func awsRestjson1_serializeDocumentGCMMessage(v *types.GCMMessage, value smithyj ok.String(*v.RestrictedPackageName) } - if v.SilentPush != nil { + if v.SilentPush { ok := object.Key("SilentPush") - ok.Boolean(*v.SilentPush) + ok.Boolean(v.SilentPush) } if v.SmallImageIconUrl != nil { @@ -10614,9 +10182,9 @@ func awsRestjson1_serializeDocumentGCMMessage(v *types.GCMMessage, value smithyj } } - if v.TimeToLive != nil { + if v.TimeToLive != 0 { ok := object.Key("TimeToLive") - ok.Integer(*v.TimeToLive) + ok.Integer(v.TimeToLive) } if v.Title != nil { @@ -10636,14 +10204,14 @@ func awsRestjson1_serializeDocumentGPSCoordinates(v *types.GPSCoordinates, value object := value.Object() defer object.Close() - if v.Latitude != nil { + if v.Latitude != 0 { ok := object.Key("Latitude") - ok.Double(*v.Latitude) + ok.Double(v.Latitude) } - if v.Longitude != nil { + if v.Longitude != 0 { ok := object.Key("Longitude") - ok.Double(*v.Longitude) + ok.Double(v.Longitude) } return nil @@ -10660,9 +10228,9 @@ func awsRestjson1_serializeDocumentGPSPointDimension(v *types.GPSPointDimension, } } - if v.RangeInKilometers != nil { + if v.RangeInKilometers != 0 { ok := object.Key("RangeInKilometers") - ok.Double(*v.RangeInKilometers) + ok.Double(v.RangeInKilometers) } return nil @@ -10677,9 +10245,9 @@ func awsRestjson1_serializeDocumentHoldoutActivity(v *types.HoldoutActivity, val ok.String(*v.NextActivity) } - if v.Percentage != nil { + if v.Percentage != 0 { ok := object.Key("Percentage") - ok.Integer(*v.Percentage) + ok.Integer(v.Percentage) } return nil @@ -10689,9 +10257,9 @@ func awsRestjson1_serializeDocumentImportJobRequest(v *types.ImportJobRequest, v object := value.Object() defer object.Close() - if v.DefineSegment != nil { + if v.DefineSegment { ok := object.Key("DefineSegment") - ok.Boolean(*v.DefineSegment) + ok.Boolean(v.DefineSegment) } if v.ExternalId != nil { @@ -10704,9 +10272,9 @@ func awsRestjson1_serializeDocumentImportJobRequest(v *types.ImportJobRequest, v ok.String(string(v.Format)) } - if v.RegisterEndpoints != nil { + if v.RegisterEndpoints { ok := object.Key("RegisterEndpoints") - ok.Boolean(*v.RegisterEndpoints) + ok.Boolean(v.RegisterEndpoints) } if v.RoleArn != nil { @@ -10760,19 +10328,19 @@ func awsRestjson1_serializeDocumentJourneyLimits(v *types.JourneyLimits, value s object := value.Object() defer object.Close() - if v.DailyCap != nil { + if v.DailyCap != 0 { ok := object.Key("DailyCap") - ok.Integer(*v.DailyCap) + ok.Integer(v.DailyCap) } - if v.EndpointReentryCap != nil { + if v.EndpointReentryCap != 0 { ok := object.Key("EndpointReentryCap") - ok.Integer(*v.EndpointReentryCap) + ok.Integer(v.EndpointReentryCap) } - if v.MessagesPerSecond != nil { + if v.MessagesPerSecond != 0 { ok := object.Key("MessagesPerSecond") - ok.Integer(*v.MessagesPerSecond) + ok.Integer(v.MessagesPerSecond) } return nil @@ -10852,297 +10420,234 @@ func awsRestjson1_serializeDocumentListOf__EndpointTypesElement(v []types.Endpoi return nil } -func awsRestjson1_serializeDocumentListOf__string(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentListOfEndpointBatchItem(v []*types.EndpointBatchItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfEndpointBatchItem(v []types.EndpointBatchItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentEndpointBatchItem(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentEndpointBatchItem(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentListOfMultiConditionalBranch(v []*types.MultiConditionalBranch, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfMultiConditionalBranch(v []types.MultiConditionalBranch, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMultiConditionalBranch(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMultiConditionalBranch(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentListOfRandomSplitEntry(v []*types.RandomSplitEntry, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfRandomSplitEntry(v []types.RandomSplitEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentRandomSplitEntry(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentRandomSplitEntry(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentListOfSegmentDimensions(v []*types.SegmentDimensions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfSegmentDimensions(v []types.SegmentDimensions, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSegmentDimensions(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSegmentDimensions(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentListOfSegmentGroup(v []*types.SegmentGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfSegmentGroup(v []types.SegmentGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSegmentGroup(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSegmentGroup(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentListOfSegmentReference(v []*types.SegmentReference, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfSegmentReference(v []types.SegmentReference, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSegmentReference(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSegmentReference(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentListOfSimpleCondition(v []*types.SimpleCondition, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfSimpleCondition(v []types.SimpleCondition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSimpleCondition(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSimpleCondition(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentListOfWriteTreatmentResource(v []*types.WriteTreatmentResource, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfWriteTreatmentResource(v []types.WriteTreatmentResource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentWriteTreatmentResource(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentWriteTreatmentResource(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentMapOf__double(v map[string]*float64, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOf__double(v map[string]float64, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.Double(*v[key]) + om.Double(v[key]) } return nil } -func awsRestjson1_serializeDocumentMapOf__string(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOf__string(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentMapOfActivity(v map[string]*types.Activity, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOfActivity(v map[string]types.Activity, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentActivity(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentActivity(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentMapOfAddressConfiguration(v map[string]*types.AddressConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOfAddressConfiguration(v map[string]types.AddressConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentAddressConfiguration(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentAddressConfiguration(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentMapOfAttributeDimension(v map[string]*types.AttributeDimension, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOfAttributeDimension(v map[string]types.AttributeDimension, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentAttributeDimension(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentAttributeDimension(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentMapOfEndpointSendConfiguration(v map[string]*types.EndpointSendConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOfEndpointSendConfiguration(v map[string]types.EndpointSendConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentEndpointSendConfiguration(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentEndpointSendConfiguration(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentMapOfEvent(v map[string]*types.Event, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOfEvent(v map[string]types.Event, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentEvent(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentEvent(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentMapOfEventsBatch(v map[string]*types.EventsBatch, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOfEventsBatch(v map[string]types.EventsBatch, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentEventsBatch(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentEventsBatch(&mapVar, om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentMapOfListOf__string(v map[string][]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOfListOf__string(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsRestjson1_serializeDocumentListOf__string(v[key], om); err != nil { @@ -11152,17 +10657,14 @@ func awsRestjson1_serializeDocumentMapOfListOf__string(v map[string][]*string, v return nil } -func awsRestjson1_serializeDocumentMapOfMetricDimension(v map[string]*types.MetricDimension, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapOfMetricDimension(v map[string]types.MetricDimension, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentMetricDimension(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentMetricDimension(&mapVar, om); err != nil { return err } } @@ -11213,14 +10715,14 @@ func awsRestjson1_serializeDocumentMessage(v *types.Message, value smithyjson.Va ok.String(*v.RawContent) } - if v.SilentPush != nil { + if v.SilentPush { ok := object.Key("SilentPush") - ok.Boolean(*v.SilentPush) + ok.Boolean(v.SilentPush) } - if v.TimeToLive != nil { + if v.TimeToLive != 0 { ok := object.Key("TimeToLive") - ok.Integer(*v.TimeToLive) + ok.Integer(v.TimeToLive) } if v.Title != nil { @@ -11355,9 +10857,9 @@ func awsRestjson1_serializeDocumentMetricDimension(v *types.MetricDimension, val ok.String(*v.ComparisonOperator) } - if v.Value != nil { + if v.Value != 0 { ok := object.Key("Value") - ok.Double(*v.Value) + ok.Double(v.Value) } return nil @@ -11630,9 +11132,9 @@ func awsRestjson1_serializeDocumentRandomSplitEntry(v *types.RandomSplitEntry, v ok.String(*v.NextActivity) } - if v.Percentage != nil { + if v.Percentage != 0 { ok := object.Key("Percentage") - ok.Integer(*v.Percentage) + ok.Integer(v.Percentage) } return nil @@ -11688,9 +11190,9 @@ func awsRestjson1_serializeDocumentSchedule(v *types.Schedule, value smithyjson. ok.String(string(v.Frequency)) } - if v.IsLocalTime != nil { + if v.IsLocalTime { ok := object.Key("IsLocalTime") - ok.Boolean(*v.IsLocalTime) + ok.Boolean(v.IsLocalTime) } if v.QuietTime != nil { @@ -11917,9 +11419,9 @@ func awsRestjson1_serializeDocumentSegmentReference(v *types.SegmentReference, v ok.String(*v.Id) } - if v.Version != nil { + if v.Version != 0 { ok := object.Key("Version") - ok.Integer(*v.Version) + ok.Integer(v.Version) } return nil @@ -11969,9 +11471,9 @@ func awsRestjson1_serializeDocumentSession(v *types.Session, value smithyjson.Va object := value.Object() defer object.Close() - if v.Duration != nil { + if v.Duration != 0 { ok := object.Key("Duration") - ok.Integer(*v.Duration) + ok.Integer(v.Duration) } if v.Id != nil { @@ -12088,9 +11590,9 @@ func awsRestjson1_serializeDocumentSMSChannelRequest(v *types.SMSChannelRequest, object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.SenderId != nil { @@ -12372,9 +11874,9 @@ func awsRestjson1_serializeDocumentUpdateRecommenderConfigurationShape(v *types. ok.String(*v.RecommendationsDisplayName) } - if v.RecommendationsPerMessage != nil { + if v.RecommendationsPerMessage != 0 { ok := object.Key("RecommendationsPerMessage") - ok.Integer(*v.RecommendationsPerMessage) + ok.Integer(v.RecommendationsPerMessage) } if v.RecommendationTransformerUri != nil { @@ -12389,9 +11891,9 @@ func awsRestjson1_serializeDocumentVoiceChannelRequest(v *types.VoiceChannelRequ object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } return nil @@ -12517,14 +12019,14 @@ func awsRestjson1_serializeDocumentWriteApplicationSettingsRequest(v *types.Writ } } - if v.CloudWatchMetricsEnabled != nil { + if v.CloudWatchMetricsEnabled { ok := object.Key("CloudWatchMetricsEnabled") - ok.Boolean(*v.CloudWatchMetricsEnabled) + ok.Boolean(v.CloudWatchMetricsEnabled) } - if v.EventTaggingEnabled != nil { + if v.EventTaggingEnabled { ok := object.Key("EventTaggingEnabled") - ok.Boolean(*v.EventTaggingEnabled) + ok.Boolean(v.EventTaggingEnabled) } if v.Limits != nil { @@ -12567,9 +12069,9 @@ func awsRestjson1_serializeDocumentWriteCampaignRequest(v *types.WriteCampaignRe ok.String(*v.Description) } - if v.HoldoutPercent != nil { + if v.HoldoutPercent != 0 { ok := object.Key("HoldoutPercent") - ok.Integer(*v.HoldoutPercent) + ok.Integer(v.HoldoutPercent) } if v.Hook != nil { @@ -12579,9 +12081,9 @@ func awsRestjson1_serializeDocumentWriteCampaignRequest(v *types.WriteCampaignRe } } - if v.IsPaused != nil { + if v.IsPaused { ok := object.Key("IsPaused") - ok.Boolean(*v.IsPaused) + ok.Boolean(v.IsPaused) } if v.Limits != nil { @@ -12615,9 +12117,9 @@ func awsRestjson1_serializeDocumentWriteCampaignRequest(v *types.WriteCampaignRe ok.String(*v.SegmentId) } - if v.SegmentVersion != nil { + if v.SegmentVersion != 0 { ok := object.Key("SegmentVersion") - ok.Integer(*v.SegmentVersion) + ok.Integer(v.SegmentVersion) } if v.Tags != nil { @@ -12692,9 +12194,9 @@ func awsRestjson1_serializeDocumentWriteJourneyRequest(v *types.WriteJourneyRequ } } - if v.LocalTime != nil { + if v.LocalTime { ok := object.Key("LocalTime") - ok.Boolean(*v.LocalTime) + ok.Boolean(v.LocalTime) } if v.Name != nil { @@ -12799,9 +12301,9 @@ func awsRestjson1_serializeDocumentWriteTreatmentResource(v *types.WriteTreatmen } } - if v.SizePercent != nil { + if v.SizePercent != 0 { ok := object.Key("SizePercent") - ok.Integer(*v.SizePercent) + ok.Integer(v.SizePercent) } if v.TemplateConfiguration != nil { diff --git a/service/pinpoint/types/types.go b/service/pinpoint/types/types.go index a111eefb3cd..32da945720a 100644 --- a/service/pinpoint/types/types.go +++ b/service/pinpoint/types/types.go @@ -12,7 +12,7 @@ type ActivitiesResponse struct { // An array of responses, one for each activity that was performed by the campaign. // // This member is required. - Item []*ActivityResponse + Item []ActivityResponse // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. @@ -103,17 +103,17 @@ type ActivityResponse struct { // The total number of endpoints that the campaign successfully delivered messages // to. - SuccessfulEndpointCount *int32 + SuccessfulEndpointCount int32 // The total number of time zones that were completed. - TimezonesCompletedCount *int32 + TimezonesCompletedCount int32 // The total number of unique time zones that are in the segment for the campaign. - TimezonesTotalCount *int32 + TimezonesTotalCount int32 // The total number of endpoints that the campaign attempted to deliver messages // to. - TotalEndpointCount *int32 + TotalEndpointCount int32 // The unique identifier for the campaign treatment that the activity applies to. A // treatment is a variation of a campaign that's used for A/B testing of a @@ -137,7 +137,7 @@ type AddressConfiguration struct { // notification, this payload is added to the data.pinpoint object. For an email or // text message, this payload is added to email/SMS delivery receipt event // attributes. - Context map[string]*string + Context map[string]string // The raw, JSON-formatted string to use as the payload for the message. If // specified, this value overrides all other values for the message. @@ -146,7 +146,7 @@ type AddressConfiguration struct { // A map of the message variables to merge with the variables specified by // properties of the DefaultMessage object. The variables specified in this map // take precedence over all other variables. - Substitutions map[string][]*string + Substitutions map[string][]string // The message title to use instead of the default message title. This value // overrides the default message title. @@ -168,7 +168,7 @@ type ADMChannelRequest struct { ClientSecret *string // Specifies whether to enable the ADM channel for the application. - Enabled *bool + Enabled bool } // Provides information about the status and settings of the ADM (Amazon Device @@ -188,17 +188,17 @@ type ADMChannelResponse struct { CreationDate *string // Specifies whether the ADM channel is enabled for the application. - Enabled *bool + Enabled bool // (Not used) This property is retained only for backward compatibility. - HasCredential *bool + HasCredential bool // (Deprecated) An identifier for the ADM channel. This property is retained only // for backward compatibility. Id *string // Specifies whether the ADM channel is archived. - IsArchived *bool + IsArchived bool // The user who last modified the ADM channel. LastModifiedBy *string @@ -207,7 +207,7 @@ type ADMChannelResponse struct { LastModifiedDate *string // The current version of the ADM channel. - Version *int32 + Version int32 } // Specifies the settings for a one-time message that's sent directly to an @@ -240,7 +240,7 @@ type ADMMessage struct { // The JSON data payload to use for the push notification, if the notification is a // silent push notification. This payload is added to the data.pinpoint.jsonBody // object of the notification. - Data map[string]*string + Data map[string]string // The amount of time, in seconds, that ADM should store the message if the // recipient's device is offline. Amazon Pinpoint specifies this value in the @@ -269,7 +269,7 @@ type ADMMessage struct { // push notification that doesn't display on a recipient's device. Silent push // notifications can be used for cases such as updating an app's configuration or // supporting phone home functionality. - SilentPush *bool + SilentPush bool // The URL of the small icon image to display in the status bar and the content // view of the push notification. @@ -282,7 +282,7 @@ type ADMMessage struct { // The default message variables to use in the notification message. You can // override the default variables with individual address variables. - Substitutions map[string][]*string + Substitutions map[string][]string // The title to display above the notification message on the recipient's device. Title *string @@ -367,7 +367,7 @@ type APNSChannelRequest struct { DefaultAuthenticationMethod *string // Specifies whether to enable the APNs channel for the application. - Enabled *bool + Enabled bool // The private key for the APNs client certificate that you want Amazon Pinpoint to // use to communicate with APNs. @@ -406,22 +406,22 @@ type APNSChannelResponse struct { DefaultAuthenticationMethod *string // Specifies whether the APNs channel is enabled for the application. - Enabled *bool + Enabled bool // (Not used) This property is retained only for backward compatibility. - HasCredential *bool + HasCredential bool // Specifies whether the APNs channel is configured to communicate with APNs by // using APNs tokens. To provide an authentication key for APNs tokens, set the // TokenKey property of the channel. - HasTokenKey *bool + HasTokenKey bool // (Deprecated) An identifier for the APNs channel. This property is retained only // for backward compatibility. Id *string // Specifies whether the APNs channel is archived. - IsArchived *bool + IsArchived bool // The user who last modified the APNs channel. LastModifiedBy *string @@ -430,7 +430,7 @@ type APNSChannelResponse struct { LastModifiedDate *string // The current version of the APNs channel. - Version *int32 + Version int32 } // Specifies the settings for a one-time message that's sent directly to an @@ -489,7 +489,7 @@ type APNSMessage struct { // when the recipient receives the push notification. If this key isn't included in // the dictionary, the badge doesn't change. To remove the badge, set this value to // 0. - Badge *int32 + Badge int32 // The body of the notification message. Body *string @@ -508,7 +508,7 @@ type APNSMessage struct { // The JSON payload to use for a silent push notification. This payload is added to // the data.pinpoint.jsonBody object of the notification. - Data map[string]*string + Data map[string]string // The URL of an image or video to display in the push notification. MediaUrl *string @@ -565,7 +565,7 @@ type APNSMessage struct { // "excessive" background notifications based on current traffic volumes. To // prevent your notifications being throttled, Apple recommends that you send no // more than 3 silent push notifications to each recipient per hour. - SilentPush *bool + SilentPush bool // The key for the sound to play when the recipient receives the push notification. // The value for this key is the name of a sound file in your app's main bundle or @@ -576,7 +576,7 @@ type APNSMessage struct { // The default message variables to use in the notification message. You can // override these default variables with individual address variables. - Substitutions map[string][]*string + Substitutions map[string][]string // The key that represents your app-specific identifier for grouping notifications. // If you provide a Notification Content app extension, you can use this value to @@ -589,7 +589,7 @@ type APNSMessage struct { // immediately and the service doesn't store or try to deliver the notification // again. Amazon Pinpoint specifies this value in the apns-expiration request // header when it sends the notification message to APNs. - TimeToLive *int32 + TimeToLive int32 // The title to display above the notification message on the recipient's device. Title *string @@ -667,7 +667,7 @@ type APNSSandboxChannelRequest struct { DefaultAuthenticationMethod *string // Specifies whether to enable the APNs sandbox channel for the application. - Enabled *bool + Enabled bool // The private key for the APNs client certificate that you want Amazon Pinpoint to // use to communicate with the APNs sandbox environment. @@ -707,22 +707,22 @@ type APNSSandboxChannelResponse struct { DefaultAuthenticationMethod *string // Specifies whether the APNs sandbox channel is enabled for the application. - Enabled *bool + Enabled bool // (Not used) This property is retained only for backward compatibility. - HasCredential *bool + HasCredential bool // Specifies whether the APNs sandbox channel is configured to communicate with // APNs by using APNs tokens. To provide an authentication key for APNs tokens, set // the TokenKey property of the channel. - HasTokenKey *bool + HasTokenKey bool // (Deprecated) An identifier for the APNs sandbox channel. This property is // retained only for backward compatibility. Id *string // Specifies whether the APNs sandbox channel is archived. - IsArchived *bool + IsArchived bool // The user who last modified the APNs sandbox channel. LastModifiedBy *string @@ -731,7 +731,7 @@ type APNSSandboxChannelResponse struct { LastModifiedDate *string // The current version of the APNs sandbox channel. - Version *int32 + Version int32 } // Specifies the status and settings of the APNs (Apple Push Notification service) @@ -751,7 +751,7 @@ type APNSVoipChannelRequest struct { DefaultAuthenticationMethod *string // Specifies whether to enable the APNs VoIP channel for the application. - Enabled *bool + Enabled bool // The private key for the APNs client certificate that you want Amazon Pinpoint to // use to communicate with APNs. @@ -790,22 +790,22 @@ type APNSVoipChannelResponse struct { DefaultAuthenticationMethod *string // Specifies whether the APNs VoIP channel is enabled for the application. - Enabled *bool + Enabled bool // (Not used) This property is retained only for backward compatibility. - HasCredential *bool + HasCredential bool // Specifies whether the APNs VoIP channel is configured to communicate with APNs // by using APNs tokens. To provide an authentication key for APNs tokens, set the // TokenKey property of the channel. - HasTokenKey *bool + HasTokenKey bool // (Deprecated) An identifier for the APNs VoIP channel. This property is retained // only for backward compatibility. Id *string // Specifies whether the APNs VoIP channel is archived. - IsArchived *bool + IsArchived bool // The user who last modified the APNs VoIP channel. LastModifiedBy *string @@ -814,7 +814,7 @@ type APNSVoipChannelResponse struct { LastModifiedDate *string // The current version of the APNs VoIP channel. - Version *int32 + Version int32 } // Specifies the status and settings of the APNs (Apple Push Notification service) @@ -836,7 +836,7 @@ type APNSVoipSandboxChannelRequest struct { DefaultAuthenticationMethod *string // Specifies whether the APNs VoIP sandbox channel is enabled for the application. - Enabled *bool + Enabled bool // The private key for the APNs client certificate that you want Amazon Pinpoint to // use to communicate with the APNs sandbox environment. @@ -876,22 +876,22 @@ type APNSVoipSandboxChannelResponse struct { DefaultAuthenticationMethod *string // Specifies whether the APNs VoIP sandbox channel is enabled for the application. - Enabled *bool + Enabled bool // (Not used) This property is retained only for backward compatibility. - HasCredential *bool + HasCredential bool // Specifies whether the APNs VoIP sandbox channel is configured to communicate // with APNs by using APNs tokens. To provide an authentication key for APNs // tokens, set the TokenKey property of the channel. - HasTokenKey *bool + HasTokenKey bool // (Deprecated) An identifier for the APNs VoIP sandbox channel. This property is // retained only for backward compatibility. Id *string // Specifies whether the APNs VoIP sandbox channel is archived. - IsArchived *bool + IsArchived bool // The user who last modified the APNs VoIP sandbox channel. LastModifiedBy *string @@ -900,7 +900,7 @@ type APNSVoipSandboxChannelResponse struct { LastModifiedDate *string // The current version of the APNs VoIP sandbox channel. - Version *int32 + Version int32 } // Provides the results of a query that retrieved the data for a standard metric @@ -969,7 +969,7 @@ type ApplicationResponse struct { // A string-to-string map of key-value pairs that identifies the tags that are // associated with the application. Each tag consists of a required tag key and an // associated tag value. - Tags map[string]*string + Tags map[string]string } // Provides information about an application, including the default settings for an @@ -1020,7 +1020,7 @@ type ApplicationSettingsResource struct { type ApplicationsResponse struct { // An array of responses, one for each application that was returned. - Item []*ApplicationResponse + Item []ApplicationResponse // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. @@ -1036,7 +1036,7 @@ type AttributeDimension struct { // if their attribute values match the criteria values. // // This member is required. - Values []*string + Values []string // The type of segment dimension to use. Valid values are: INCLUSIVE, endpoints // that match the criteria are included in the segment; and, EXCLUSIVE, endpoints @@ -1070,7 +1070,7 @@ type AttributesResource struct { // An array that specifies the names of the attributes that were removed from the // endpoints. - Attributes []*string + Attributes []string } // Specifies the status and settings of the Baidu (Baidu Cloud Push) channel for an @@ -1090,7 +1090,7 @@ type BaiduChannelRequest struct { SecretKey *string // Specifies whether to enable the Baidu channel for the application. - Enabled *bool + Enabled bool } // Provides information about the status and settings of the Baidu (Baidu Cloud @@ -1116,17 +1116,17 @@ type BaiduChannelResponse struct { CreationDate *string // Specifies whether the Baidu channel is enabled for the application. - Enabled *bool + Enabled bool // (Not used) This property is retained only for backward compatibility. - HasCredential *bool + HasCredential bool // (Deprecated) An identifier for the Baidu channel. This property is retained only // for backward compatibility. Id *string // Specifies whether the Baidu channel is archived. - IsArchived *bool + IsArchived bool // The user who last modified the Baidu channel. LastModifiedBy *string @@ -1135,7 +1135,7 @@ type BaiduChannelResponse struct { LastModifiedDate *string // The current version of the Baidu channel. - Version *int32 + Version int32 } // Specifies the settings for a one-time message that's sent directly to an @@ -1163,7 +1163,7 @@ type BaiduMessage struct { // The JSON data payload to use for the push notification, if the notification is a // silent push notification. This payload is added to the data.pinpoint.jsonBody // object of the notification. - Data map[string]*string + Data map[string]string // The icon image name of the asset saved in your app. IconReference *string @@ -1183,7 +1183,7 @@ type BaiduMessage struct { // push notification that doesn't display on a recipient's device. Silent push // notifications can be used for cases such as updating an app's configuration or // supporting phone home functionality. - SilentPush *bool + SilentPush bool // The URL of the small icon image to display in the status bar and the content // view of the push notification. @@ -1196,12 +1196,12 @@ type BaiduMessage struct { // The default message variables to use in the notification message. You can // override the default variables with individual address variables. - Substitutions map[string][]*string + Substitutions map[string][]string // The amount of time, in seconds, that the Baidu Cloud Push service should store // the message if the recipient's device is offline. The default value and maximum // supported time is 604,800 seconds (7 days). - TimeToLive *int32 + TimeToLive int32 // The title to display above the notification message on the recipient's device. Title *string @@ -1219,7 +1219,7 @@ type BaseKpiResult struct { // for a standard metric that applies to an application, campaign, or journey. // // This member is required. - Rows []*ResultRow + Rows []ResultRow } // Specifies the contents of a message that's sent through a custom channel to @@ -1349,23 +1349,23 @@ type CampaignLimits struct { // during a 24-hour period. For an application, this value specifies the default // limit for the number of messages that campaigns and journeys can send to a // single endpoint during a 24-hour period. The maximum value is 100. - Daily *int32 + Daily int32 // The maximum amount of time, in seconds, that a campaign can attempt to deliver a // message after the scheduled start time for the campaign. The minimum value is 60 // seconds. - MaximumDuration *int32 + MaximumDuration int32 // The maximum number of messages that a campaign can send each second. For an // application, this value specifies the default limit for the number of messages // that campaigns can send each second. The minimum value is 50. The maximum value // is 20,000. - MessagesPerSecond *int32 + MessagesPerSecond int32 // The maximum number of messages that a campaign can send to a single endpoint // during the course of the campaign. If a campaign recurs, this setting applies to // all runs of the campaign. The maximum value is 100. - Total *int32 + Total int32 } // Provides information about the status, configuration, and other settings for a @@ -1405,11 +1405,11 @@ type CampaignResponse struct { // The version number of the segment that's associated with the campaign. // // This member is required. - SegmentVersion *int32 + SegmentVersion int32 // An array of responses, one for each treatment that you defined for the campaign, // in addition to the default treatment. - AdditionalTreatments []*TreatmentResource + AdditionalTreatments []TreatmentResource // The delivery configuration settings for sending the campaign through a custom // channel. @@ -1424,7 +1424,7 @@ type CampaignResponse struct { // The allocated percentage of users (segment members) who shouldn't receive // messages from the campaign. - HoldoutPercent *int32 + HoldoutPercent int32 // The settings for the AWS Lambda function to use as a code hook for the campaign. // You can use this hook to customize the segment that's used by the campaign. @@ -1432,7 +1432,7 @@ type CampaignResponse struct { // Specifies whether the campaign is paused. A paused campaign doesn't run unless // you resume it by changing this value to false. - IsPaused *bool + IsPaused bool // The messaging limits for the campaign. Limits *CampaignLimits @@ -1452,7 +1452,7 @@ type CampaignResponse struct { // A string-to-string map of key-value pairs that identifies the tags that are // associated with the campaign. Each tag consists of a required tag key and an // associated tag value. - Tags map[string]*string + Tags map[string]string // The message template that’s used for the campaign. TemplateConfiguration *TemplateConfiguration @@ -1466,7 +1466,7 @@ type CampaignResponse struct { TreatmentName *string // The version number of the campaign. - Version *int32 + Version int32 } // Specifies the content and settings for an SMS message that's sent to recipients @@ -1494,7 +1494,7 @@ type CampaignsResponse struct { // application. // // This member is required. - Item []*CampaignResponse + Item []CampaignResponse // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. @@ -1523,17 +1523,17 @@ type ChannelResponse struct { CreationDate *string // Specifies whether the channel is enabled for the application. - Enabled *bool + Enabled bool // (Not used) This property is retained only for backward compatibility. - HasCredential *bool + HasCredential bool // (Deprecated) An identifier for the channel. This property is retained only for // backward compatibility. Id *string // Specifies whether the channel is archived. - IsArchived *bool + IsArchived bool // The user who last modified the channel. LastModifiedBy *string @@ -1542,7 +1542,7 @@ type ChannelResponse struct { LastModifiedDate *string // The current version of the channel. - Version *int32 + Version int32 } // Provides information about the general settings and status of all channels for @@ -1553,7 +1553,7 @@ type ChannelsResponse struct { // object, the ChannelType is the key and the Channel is the value. // // This member is required. - Channels map[string]*ChannelResponse + Channels map[string]ChannelResponse } // Specifies the conditions to evaluate for an activity in a journey, and how to @@ -1561,7 +1561,7 @@ type ChannelsResponse struct { type Condition struct { // The conditions to evaluate for the activity. - Conditions []*SimpleCondition + Conditions []SimpleCondition // Specifies how to handle multiple conditions for the activity. For example, if // you specify two conditions for an activity, whether both or only one of the @@ -1609,7 +1609,7 @@ type CreateApplicationRequest struct { // A string-to-string map of key-value pairs that defines the tags to associate // with the application. Each tag consists of a required tag key and an associated // tag value. - Tags map[string]*string + Tags map[string]string } // Specifies Amazon Pinpoint configuration settings for retrieving and processing @@ -1652,7 +1652,7 @@ type CreateRecommenderConfigurationShape struct { // This object is required if the configuration // invokes an AWS Lambda function (RecommendationTransformerUri) to process // recommendation data. Otherwise, don't include this object in your request. - Attributes map[string]*string + Attributes map[string]string // A custom description of the configuration for the recommender model. The // description can contain up to 128 characters. The characters can be letters, @@ -1704,7 +1704,7 @@ type CreateRecommenderConfigurationShape struct { // 5. To use multiple recommended items and custom attributes with message // variables, you have to use an AWS Lambda function (RecommendationTransformerUri) // to perform additional processing of recommendation data. - RecommendationsPerMessage *int32 + RecommendationsPerMessage int32 } // Provides information about a request to create a message template. @@ -1797,7 +1797,7 @@ type DefaultMessage struct { // The default message variables to use in the message. You can override these // default variables with individual address variables. - Substitutions map[string][]*string + Substitutions map[string][]string } // Specifies the default settings and content for a push notification that's sent @@ -1825,17 +1825,17 @@ type DefaultPushNotificationMessage struct { // The JSON data payload to use for the default push notification, if the // notification is a silent push notification. This payload is added to the // data.pinpoint.jsonBody object of the notification. - Data map[string]*string + Data map[string]string // Specifies whether the default notification is a silent push notification, which // is a push notification that doesn't display on a recipient's device. Silent push // notifications can be used for cases such as updating an app's configuration or // delivering messages to an in-app notification center. - SilentPush *bool + SilentPush bool // The default message variables to use in the notification message. You can // override the default variables with individual address variables. - Substitutions map[string][]*string + Substitutions map[string][]string // The default title to display above the notification message on a recipient's // device. @@ -1954,7 +1954,7 @@ type EmailChannelRequest struct { ConfigurationSet *string // Specifies whether to enable the email channel for the application. - Enabled *bool + Enabled bool // The ARN of the AWS Identity and Access Management (IAM) role that you want // Amazon Pinpoint to use when it submits email-related event data for the channel. @@ -1983,14 +1983,14 @@ type EmailChannelResponse struct { CreationDate *string // Specifies whether the email channel is enabled for the application. - Enabled *bool + Enabled bool // The verified email address that email is sent from when you send email through // the channel. FromAddress *string // (Not used) This property is retained only for backward compatibility. - HasCredential *bool + HasCredential bool // (Deprecated) An identifier for the email channel. This property is retained only // for backward compatibility. @@ -2001,7 +2001,7 @@ type EmailChannelResponse struct { Identity *string // Specifies whether the email channel is archived. - IsArchived *bool + IsArchived bool // The user who last modified the email channel. LastModifiedBy *string @@ -2010,14 +2010,14 @@ type EmailChannelResponse struct { LastModifiedDate *string // The maximum number of emails that can be sent through the channel each second. - MessagesPerSecond *int32 + MessagesPerSecond int32 // The ARN of the AWS Identity and Access Management (IAM) role that Amazon // Pinpoint uses to submit email-related event data for the channel. RoleArn *string // The current version of the email channel. - Version *int32 + Version int32 } // Specifies the default settings and content for a one-time email message that's @@ -2040,14 +2040,14 @@ type EmailMessage struct { // The reply-to email address(es) for the email message. If a recipient replies to // the email, each reply-to address receives the reply. - ReplyToAddresses []*string + ReplyToAddresses []string // The email message, composed of a subject, a text part, and an HTML part. SimpleEmail *SimpleEmail // The default message variables to use in the email message. You can override the // default variables with individual address variables. - Substitutions map[string][]*string + Substitutions map[string][]string } // Specifies the settings for an email activity in a journey. This type of activity @@ -2108,7 +2108,7 @@ type EmailTemplateRequest struct { // A string-to-string map of key-value pairs that defines the tags to associate // with the message template. Each tag consists of a required tag key and an // associated tag value. - Tags map[string]*string + Tags map[string]string // A custom description of the message template. TemplateDescription *string @@ -2169,7 +2169,7 @@ type EmailTemplateResponse struct { // A string-to-string map of key-value pairs that identifies the tags that are // associated with the message template. Each tag consists of a required tag key // and an associated tag value. - Tags map[string]*string + Tags map[string]string // The custom description of the message template. TemplateDescription *string @@ -2206,7 +2206,7 @@ type EndpointBatchItem struct { // (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display // attribute names that contain these characters. This restriction doesn't apply to // attribute values. - Attributes map[string][]*string + Attributes map[string][]string // The channel to use when sending messages or push notifications to the endpoint. ChannelType ChannelType @@ -2234,7 +2234,7 @@ type EndpointBatchItem struct { // One or more custom metrics that your app reports to Amazon Pinpoint for the // endpoint. - Metrics map[string]*float64 + Metrics map[string]float64 // Specifies whether the user who's associated with the endpoint has opted out of // receiving messages and push notifications from you. Possible values are: ALL, @@ -2260,7 +2260,7 @@ type EndpointBatchRequest struct { // items. // // This member is required. - Item []*EndpointBatchItem + Item []EndpointBatchItem } // Specifies demographic information about an endpoint, such as the applicable time @@ -2304,7 +2304,7 @@ type EndpointItemResponse struct { // The status code that's returned in the response as a result of processing the // endpoint data. - StatusCode *int32 + StatusCode int32 } // Specifies geographic information about an endpoint. @@ -2318,10 +2318,10 @@ type EndpointLocation struct { Country *string // The latitude coordinate of the endpoint location, rounded to one decimal place. - Latitude *float64 + Latitude float64 // The longitude coordinate of the endpoint location, rounded to one decimal place. - Longitude *float64 + Longitude float64 // The postal or ZIP code for the area where the endpoint is located. PostalCode *string @@ -2370,7 +2370,7 @@ type EndpointMessageResult struct { // The downstream service status code for delivering the message. // // This member is required. - StatusCode *int32 + StatusCode int32 // The endpoint address that the message was delivered to. Address *string @@ -2408,7 +2408,7 @@ type EndpointRequest struct { // (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display // attribute names that contain these characters. This restriction doesn't apply to // attribute values. - Attributes map[string][]*string + Attributes map[string][]string // The channel to use when sending messages or push notifications to the endpoint. ChannelType ChannelType @@ -2433,7 +2433,7 @@ type EndpointRequest struct { // One or more custom metrics that your app reports to Amazon Pinpoint for the // endpoint. - Metrics map[string]*float64 + Metrics map[string]float64 // Specifies whether the user who's associated with the endpoint has opted out of // receiving messages and push notifications from you. Possible values are: ALL, @@ -2469,7 +2469,7 @@ type EndpointResponse struct { // with an array of values. For example, the value of a custom attribute named // Interests might be: ["Science", "Music", "Travel"]. You can use these attributes // as filter criteria when you create segments. - Attributes map[string][]*string + Attributes map[string][]string // The channel that's used when sending messages or push notifications to the // endpoint. @@ -2509,7 +2509,7 @@ type EndpointResponse struct { // One or more custom metrics that your app reports to Amazon Pinpoint for the // endpoint. - Metrics map[string]*float64 + Metrics map[string]float64 // Specifies whether the user who's associated with the endpoint has opted out of // receiving messages and push notifications from you. Possible values are: ALL, @@ -2538,7 +2538,7 @@ type EndpointSendConfiguration struct { // names are case sensitive. For a push notification, this payload is added to the // data.pinpoint object. For an email or text message, this payload is added to // email/SMS delivery receipt event attributes. - Context map[string]*string + Context map[string]string // The raw, JSON-formatted string to use as the payload for the message. If // specified, this value overrides all other values for the message. @@ -2547,7 +2547,7 @@ type EndpointSendConfiguration struct { // A map of the message variables to merge with the variables specified for the // default message (DefaultMessage.Substitutions). The variables specified in this // map take precedence over all other variables. - Substitutions map[string][]*string + Substitutions map[string][]string // The title or subject line of the message. If specified, this value overrides the // default message title or subject line. @@ -2560,7 +2560,7 @@ type EndpointsResponse struct { // An array of responses, one for each endpoint that's associated with the user ID. // // This member is required. - Item []*EndpointResponse + Item []EndpointResponse } // Specifies data for one or more attributes that describe the user who's @@ -2577,7 +2577,7 @@ type EndpointUser struct { // backslash (\), and slash (/). The Amazon Pinpoint console can't display // attribute names that contain these characters. This restriction doesn't apply to // attribute values. - UserAttributes map[string][]*string + UserAttributes map[string][]string // The unique identifier for the user. UserId *string @@ -2606,13 +2606,13 @@ type Event struct { AppVersionCode *string // One or more custom attributes that are associated with the event. - Attributes map[string]*string + Attributes map[string]string // The version of the SDK that's running on the client device. ClientSdkVersion *string // One or more custom metrics that are associated with the event. - Metrics map[string]*float64 + Metrics map[string]float64 // The name of the SDK that's being used to record the event. SdkName *string @@ -2640,7 +2640,7 @@ type EventDimensions struct { // One or more custom attributes that your application reports to Amazon Pinpoint. // You can use these attributes as selection criteria when you create an event // filter. - Attributes map[string]*AttributeDimension + Attributes map[string]AttributeDimension // The name of the event that causes the campaign to be sent or the journey // activity to be performed. This can be a standard event that Amazon Pinpoint @@ -2653,7 +2653,7 @@ type EventDimensions struct { // One or more custom metrics that your application reports to Amazon Pinpoint. You // can use these metrics as selection criteria when you create an event filter. - Metrics map[string]*MetricDimension + Metrics map[string]MetricDimension } // Specifies the settings for an event that causes a campaign to be sent or a @@ -2685,7 +2685,7 @@ type EventItemResponse struct { // The status code that's returned in the response as a result of processing the // event. Possible values are: 202, for events that were accepted; and, 400, for // events that weren't valid. - StatusCode *int32 + StatusCode int32 } // Specifies a batch of endpoints and events to process. @@ -2699,7 +2699,7 @@ type EventsBatch struct { // A set of properties that are associated with the event. // // This member is required. - Events map[string]*Event + Events map[string]Event } // Specifies a batch of events to process. @@ -2709,7 +2709,7 @@ type EventsRequest struct { // as a key that has an EventsBatch object as its value. // // This member is required. - BatchItem map[string]*EventsBatch + BatchItem map[string]EventsBatch } // Provides information about endpoints and the events that they're associated @@ -2721,7 +2721,7 @@ type EventsResponse struct { // no item response exists, the value can also be one of the following: 202, the // request was processed successfully; or 400, the payload wasn't valid or required // fields were missing. - Results map[string]*ItemResponse + Results map[string]ItemResponse } // Specifies the settings for an event that causes a journey activity to start. @@ -2797,7 +2797,7 @@ type ExportJobRequest struct { SegmentId *string // The version of the segment to export endpoint definitions from, if specified. - SegmentVersion *int32 + SegmentVersion int32 } // Provides information about the resource settings for a job that exports endpoint @@ -2827,7 +2827,7 @@ type ExportJobResource struct { SegmentId *string // The version of the segment that the endpoint definitions were exported from. - SegmentVersion *int32 + SegmentVersion int32 } // Provides information about the status and settings of a job that exports @@ -2869,31 +2869,31 @@ type ExportJobResponse struct { // The number of pieces that were processed successfully (completed) by the export // job, as of the time of the request. - CompletedPieces *int32 + CompletedPieces int32 // The date, in ISO 8601 format, when the export job was completed. CompletionDate *string // The number of pieces that weren't processed successfully (failed) by the export // job, as of the time of the request. - FailedPieces *int32 + FailedPieces int32 // An array of entries, one for each of the first 100 entries that weren't // processed successfully (failed) by the export job, if any. - Failures []*string + Failures []string // The total number of endpoint definitions that weren't processed successfully // (failed) by the export job, typically because an error, such as a syntax error, // occurred. - TotalFailures *int32 + TotalFailures int32 // The total number of pieces that must be processed to complete the export job. // Each piece consists of an approximately equal portion of the endpoint // definitions that are part of the export job. - TotalPieces *int32 + TotalPieces int32 // The total number of endpoint definitions that were processed by the export job. - TotalProcessed *int32 + TotalProcessed int32 } // Provides information about all the export jobs that are associated with an @@ -2905,7 +2905,7 @@ type ExportJobsResponse struct { // application (Export Jobs resource) or segment (Segment Export Jobs resource). // // This member is required. - Item []*ExportJobResponse + Item []ExportJobResponse // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. @@ -2924,7 +2924,7 @@ type GCMChannelRequest struct { ApiKey *string // Specifies whether to enable the GCM channel for the application. - Enabled *bool + Enabled bool } // Provides information about the status and settings of the GCM channel for an @@ -2952,17 +2952,17 @@ type GCMChannelResponse struct { CreationDate *string // Specifies whether the GCM channel is enabled for the application. - Enabled *bool + Enabled bool // (Not used) This property is retained only for backward compatibility. - HasCredential *bool + HasCredential bool // (Deprecated) An identifier for the GCM channel. This property is retained only // for backward compatibility. Id *string // Specifies whether the GCM channel is archived. - IsArchived *bool + IsArchived bool // The user who last modified the GCM channel. LastModifiedBy *string @@ -2971,7 +2971,7 @@ type GCMChannelResponse struct { LastModifiedDate *string // The current version of the GCM channel. - Version *int32 + Version int32 } // Specifies the settings for a one-time message that's sent directly to an @@ -3009,7 +3009,7 @@ type GCMMessage struct { // The JSON data payload to use for the push notification, if the notification is a // silent push notification. This payload is added to the data.pinpoint.jsonBody // object of the notification. - Data map[string]*string + Data map[string]string // The icon image name of the asset saved in your app. IconReference *string @@ -3045,7 +3045,7 @@ type GCMMessage struct { // push notification that doesn't display on a recipient's device. Silent push // notifications can be used for cases such as updating an app's configuration or // supporting phone home functionality. - SilentPush *bool + SilentPush bool // The URL of the small icon image to display in the status bar and the content // view of the push notification. @@ -3058,14 +3058,14 @@ type GCMMessage struct { // The default message variables to use in the notification message. You can // override the default variables with individual address variables. - Substitutions map[string][]*string + Substitutions map[string][]string // The amount of time, in seconds, that FCM should store and attempt to deliver the // push notification, if the service is unable to deliver the notification the // first time. If you don't specify this value, FCM defaults to the maximum value, // which is 2,419,200 seconds (28 days). Amazon Pinpoint specifies this value in // the FCM time_to_live parameter when it sends the notification message to FCM. - TimeToLive *int32 + TimeToLive int32 // The title to display above the notification message on the recipient's device. Title *string @@ -3081,12 +3081,12 @@ type GPSCoordinates struct { // The latitude coordinate of the location. // // This member is required. - Latitude *float64 + Latitude float64 // The longitude coordinate of the location. // // This member is required. - Longitude *float64 + Longitude float64 } // Specifies GPS-based criteria for including or excluding endpoints from a @@ -3099,7 +3099,7 @@ type GPSPointDimension struct { Coordinates *GPSCoordinates // The range, in kilometers, from the GPS coordinates. - RangeInKilometers *float64 + RangeInKilometers float64 } // Specifies the settings for a holdout activity in a journey. This type of @@ -3113,7 +3113,7 @@ type HoldoutActivity struct { // specify. // // This member is required. - Percentage *int32 + Percentage int32 // The unique identifier for the next activity to perform, after performing the // holdout activity. @@ -3153,7 +3153,7 @@ type ImportJobRequest struct { // Specifies whether to create a segment that contains the endpoints, when the // endpoint definitions are imported. - DefineSegment *bool + DefineSegment bool // (Deprecated) Your AWS account ID, which you assigned to an external ID key in an // IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM @@ -3164,7 +3164,7 @@ type ImportJobRequest struct { // Specifies whether to register the endpoints with Amazon Pinpoint, when the // endpoint definitions are imported. - RegisterEndpoints *bool + RegisterEndpoints bool // The identifier for the segment to update or add the imported endpoint // definitions to, if the import job is meant to update an existing segment. @@ -3210,7 +3210,7 @@ type ImportJobResource struct { // Specifies whether the import job creates a segment that contains the endpoints, // when the endpoint definitions are imported. - DefineSegment *bool + DefineSegment bool // (Deprecated) Your AWS account ID, which you assigned to an external ID key in an // IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM @@ -3221,7 +3221,7 @@ type ImportJobResource struct { // Specifies whether the import job registers the endpoints with Amazon Pinpoint, // when the endpoint definitions are imported. - RegisterEndpoints *bool + RegisterEndpoints bool // The identifier for the segment that the import job updates or adds endpoint // definitions to, if the import job updates an existing segment. @@ -3271,31 +3271,31 @@ type ImportJobResponse struct { // The number of pieces that were processed successfully (completed) by the import // job, as of the time of the request. - CompletedPieces *int32 + CompletedPieces int32 // The date, in ISO 8601 format, when the import job was completed. CompletionDate *string // The number of pieces that weren't processed successfully (failed) by the import // job, as of the time of the request. - FailedPieces *int32 + FailedPieces int32 // An array of entries, one for each of the first 100 entries that weren't // processed successfully (failed) by the import job, if any. - Failures []*string + Failures []string // The total number of endpoint definitions that weren't processed successfully // (failed) by the import job, typically because an error, such as a syntax error, // occurred. - TotalFailures *int32 + TotalFailures int32 // The total number of pieces that must be processed to complete the import job. // Each piece consists of an approximately equal portion of the endpoint // definitions that are part of the import job. - TotalPieces *int32 + TotalPieces int32 // The total number of endpoint definitions that were processed by the import job. - TotalProcessed *int32 + TotalProcessed int32 } // Provides information about the status and settings of all the import jobs that @@ -3307,7 +3307,7 @@ type ImportJobsResponse struct { // application (Import Jobs resource) or segment (Segment Import Jobs resource). // // This member is required. - Item []*ImportJobResponse + Item []ImportJobResponse // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. @@ -3324,7 +3324,7 @@ type ItemResponse struct { // A multipart response object that contains a key and a value for each event in // the request. In each object, the event ID is the key and an EventItemResponse // object is the value. - EventsItemResponse map[string]*EventItemResponse + EventsItemResponse map[string]EventItemResponse } // Specifies the message content for a custom channel message that's sent to @@ -3453,7 +3453,7 @@ type JourneyExecutionActivityMetricsResponse struct { // (https://docs.aws.amazon.com/pinpoint/latest/developerguide/analytics-standard-metrics.html). // // This member is required. - Metrics map[string]*string + Metrics map[string]string } // Provides the results of a query that retrieved the data for a standard execution @@ -3481,7 +3481,7 @@ type JourneyExecutionMetricsResponse struct { // (https://docs.aws.amazon.com//pinpoint/latest/developerguide/analytics-standard-metrics.html). // // This member is required. - Metrics map[string]*string + Metrics map[string]string } // Specifies limits on the messages that a journey can send and the number of times @@ -3490,15 +3490,15 @@ type JourneyLimits struct { // The maximum number of messages that the journey can send to a single participant // during a 24-hour period. The maximum value is 100. - DailyCap *int32 + DailyCap int32 // The maximum number of times that a participant can enter the journey. The // maximum value is 100. To allow participants to enter the journey an unlimited // number of times, set this value to 0. - EndpointReentryCap *int32 + EndpointReentryCap int32 // The maximum number of messages that the journey can send each second. - MessagesPerSecond *int32 + MessagesPerSecond int32 } // Specifies the message configuration for a push notification that's sent to @@ -3537,7 +3537,7 @@ type JourneyResponse struct { // A map that contains a set of Activity objects, one object for each activity in // the journey. For each Activity object, the key is the unique identifier (string) // for an activity and the value is the settings for the activity. - Activities map[string]*Activity + Activities map[string]Activity // The date, in ISO 8601 format, when the journey was created. CreationDate *string @@ -3551,7 +3551,7 @@ type JourneyResponse struct { // Specifies whether the journey's scheduled start and end times use each // participant's local time. If this value is true, the schedule uses each // participant's local time. - LocalTime *bool + LocalTime bool // The quiet time settings for the journey. Quiet time is a specific time range // when a journey doesn't send messages to participants, if all the following @@ -3615,7 +3615,7 @@ type JourneyResponse struct { State State // This object is not used or supported. - Tags map[string]*string + Tags map[string]string } // Specifies the schedule settings for a journey. @@ -3661,7 +3661,7 @@ type JourneysResponse struct { // application. // // This member is required. - Item []*JourneyResponse + Item []JourneyResponse // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. @@ -3690,7 +3690,7 @@ type ListRecommenderConfigurationsResponse struct { // associated with your Amazon Pinpoint account. // // This member is required. - Item []*RecommenderConfigurationResponse + Item []RecommenderConfigurationResponse // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. @@ -3744,7 +3744,7 @@ type Message struct { // notifications can be used for cases such as updating an app's configuration, // displaying messages in an in-app message center, or supporting phone home // functionality. - SilentPush *bool + SilentPush bool // The number of seconds that the push-notification service should keep the // message, if the service is unable to deliver the notification the first time. @@ -3753,7 +3753,7 @@ type Message struct { // notification as if it expires immediately and the service doesn't store or try // to deliver the notification again. This value doesn't apply to messages that are // sent through the Amazon Device Messaging (ADM) service. - TimeToLive *int32 + TimeToLive int32 // The title to display above the notification message on a recipient's device. Title *string @@ -3829,12 +3829,12 @@ type MessageRequest struct { // (https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-messages.html#apps-application-id-messages-model-addressconfiguration) // object to tailor the message for an address by specifying settings such as // content overrides and message variables. - Addresses map[string]*AddressConfiguration + Addresses map[string]AddressConfiguration // A map of custom attributes to attach to the message. For a push notification, // this payload is added to the data.pinpoint object. For an email or text message, // this payload is added to email/SMS delivery receipt event attributes. - Context map[string]*string + Context map[string]string // A map of key-value pairs, where each key is an endpoint ID and each value is an // EndpointSendConfiguration @@ -3843,7 +3843,7 @@ type MessageRequest struct { // (https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-messages.html#apps-application-id-messages-model-endpointsendconfiguration) // object to tailor the message for an endpoint by specifying settings such as // content overrides and message variables. - Endpoints map[string]*EndpointSendConfiguration + Endpoints map[string]EndpointSendConfiguration // The message template to use for the message. TemplateConfiguration *TemplateConfiguration @@ -3864,7 +3864,7 @@ type MessageResponse struct { // A map that contains a multipart response for each address that the message was // sent to. In the map, the endpoint ID is the key and the result is the value. - EndpointResult map[string]*EndpointMessageResult + EndpointResult map[string]EndpointMessageResult // The identifier for the original request that the message was delivered for. RequestId *string @@ -3872,7 +3872,7 @@ type MessageResponse struct { // A map that contains a multipart response for each address (email address, phone // number, or push notification token) that the message was sent to. In the map, // the address is the key and the result is the value. - Result map[string]*MessageResult + Result map[string]MessageResult } // Provides information about the results of sending a message directly to an @@ -3914,7 +3914,7 @@ type MessageResult struct { // The downstream service status code for delivering the message. // // This member is required. - StatusCode *int32 + StatusCode int32 // The unique identifier for the message that was sent. MessageId *string @@ -3942,7 +3942,7 @@ type MetricDimension struct { // The value to compare. // // This member is required. - Value *float64 + Value float64 } // Specifies a condition to evaluate for an activity path in a journey. @@ -3969,7 +3969,7 @@ type MultiConditionalSplitActivity struct { // The paths for the activity, including the conditions for entering each path and // the activity to perform for each path. - Branches []*MultiConditionalBranch + Branches []MultiConditionalBranch // The unique identifier for the activity to perform for participants who don't // meet any of the conditions specified for other paths in the activity. @@ -4040,7 +4040,7 @@ type NumberValidateResponse struct { // The phone type, represented by an integer. Valid values are: 0 (mobile), 1 // (landline), 2 (VoIP), 3 (invalid), 4 (other), and 5 (prepaid). - PhoneTypeCode *int32 + PhoneTypeCode int32 // The time zone for the location where the phone number was originally registered. Timezone *string @@ -4061,7 +4061,7 @@ type PublicEndpoint struct { // One or more custom attributes that describe the endpoint by associating a name // with an array of values. You can use these attributes as filter criteria when // you create segments. - Attributes map[string][]*string + Attributes map[string][]string // The channel that's used when sending messages or push notifications to the // endpoint. @@ -4087,7 +4087,7 @@ type PublicEndpoint struct { // One or more custom metrics that your app reports to Amazon Pinpoint for the // endpoint. - Metrics map[string]*float64 + Metrics map[string]float64 // Specifies whether the user who's associated with the endpoint has opted out of // receiving messages and push notifications from you. Possible values are: ALL, @@ -4176,7 +4176,7 @@ type PushNotificationTemplateRequest struct { // A string-to-string map of key-value pairs that defines the tags to associate // with the message template. Each tag consists of a required tag key and an // associated tag value. - Tags map[string]*string + Tags map[string]string // A custom description of the message template. TemplateDescription *string @@ -4247,7 +4247,7 @@ type PushNotificationTemplateResponse struct { // A string-to-string map of key-value pairs that identifies the tags that are // associated with the message template. Each tag consists of a required tag key // and an associated tag value. - Tags map[string]*string + Tags map[string]string // The custom description of the message template. TemplateDescription *string @@ -4282,7 +4282,7 @@ type RandomSplitActivity struct { // The paths for the activity, including the percentage of participants to enter // each path and the activity to perform for each path. - Branches []*RandomSplitEntry + Branches []RandomSplitEntry } // Specifies the settings for a path in a random split activity in a journey. @@ -4297,7 +4297,7 @@ type RandomSplitEntry struct { // probability-based algorithm to the percentages that you specify for the paths. // Therefore, the actual percentage of participants who are sent down a path may // not be equal to the percentage that you specify. - Percentage *int32 + Percentage int32 } // Specifies the contents of an email message, represented as a raw MIME message. @@ -4369,7 +4369,7 @@ type RecommenderConfigurationResponse struct { // null if the configuration doesn't invoke an AWS Lambda function // (RecommendationTransformerUri) to perform additional processing of // recommendation data. - Attributes map[string]*string + Attributes map[string]string // The custom description of the configuration for the recommender model. Description *string @@ -4412,7 +4412,7 @@ type RecommenderConfigurationResponse struct { // endpoint or user, depending on the value for the RecommendationProviderIdType // property. This number determines how many recommended items are available for // use in message variables. - RecommendationsPerMessage *int32 + RecommendationsPerMessage int32 } // Provides the results of a query that retrieved the data for a standard metric @@ -4424,13 +4424,13 @@ type ResultRow struct { // the data in a result set isn’t grouped. // // This member is required. - GroupedBys []*ResultRowValue + GroupedBys []ResultRowValue // An array of objects that provides pre-aggregated values for a standard metric // that applies to an application, campaign, or journey. // // This member is required. - Values []*ResultRowValue + Values []ResultRowValue } // Provides a single value and metadata about that value as part of an array of @@ -4480,7 +4480,7 @@ type Schedule struct { // Specifies whether the start and end times for the campaign schedule use each // recipient's local time. To base the schedule on each recipient's local time, set // this value to true. - IsLocalTime *bool + IsLocalTime bool // The default quiet time for the campaign. Quiet time is a specific time range // when a campaign doesn't send messages to endpoints, if all the following @@ -4555,7 +4555,7 @@ type SegmentDemographics struct { type SegmentDimensions struct { // One or more custom attributes to use as criteria for the segment. - Attributes map[string]*AttributeDimension + Attributes map[string]AttributeDimension // The behavior-based criteria, such as how recently users have used your app, for // the segment. @@ -4568,10 +4568,10 @@ type SegmentDimensions struct { Location *SegmentLocation // One or more custom metrics to use as criteria for the segment. - Metrics map[string]*MetricDimension + Metrics map[string]MetricDimension // One or more custom user attributes to use as criteria for the segment. - UserAttributes map[string]*AttributeDimension + UserAttributes map[string]AttributeDimension } // Specifies the base segments and dimensions for a segment, and the relationships @@ -4579,7 +4579,7 @@ type SegmentDimensions struct { type SegmentGroup struct { // An array that defines the dimensions for the segment. - Dimensions []*SegmentDimensions + Dimensions []SegmentDimensions // The base segment to build the segment on. A base segment, also referred to as a // source segment, defines the initial population of endpoints for a segment. When @@ -4588,7 +4588,7 @@ type SegmentGroup struct { // segment or only one imported segment. If you specify an imported segment, the // Amazon Pinpoint console displays a segment size estimate that indicates the size // of the imported segment without any filters applied to it. - SourceSegments []*SegmentReference + SourceSegments []SegmentReference // Specifies how to handle multiple base segments for the segment. For example, if // you specify three base segments for the segment, whether the resulting segment @@ -4607,7 +4607,7 @@ type SegmentGroupList struct { // An array that defines the set of segment criteria to evaluate when handling // segment groups for the segment. - Groups []*SegmentGroup + Groups []SegmentGroup // Specifies how to handle multiple segment groups for the segment. For example, if // the segment includes three segment groups, whether the resulting segment @@ -4652,11 +4652,11 @@ type SegmentImportResource struct { // segment. // // This member is required. - Size *int32 + Size int32 // The number of channel types in the endpoint definitions that were imported to // create the segment. - ChannelCounts map[string]*int32 + ChannelCounts map[string]int32 } // Specifies geographical dimension settings for a segment. @@ -4678,7 +4678,7 @@ type SegmentReference struct { Id *string // The version number of the segment. - Version *int32 + Version int32 } // Provides information about the configuration, dimension, and other settings for @@ -4739,10 +4739,10 @@ type SegmentResponse struct { // A string-to-string map of key-value pairs that identifies the tags that are // associated with the segment. Each tag consists of a required tag key and an // associated tag value. - Tags map[string]*string + Tags map[string]string // The version number of the segment. - Version *int32 + Version int32 } // Provides information about all the segments that are associated with an @@ -4754,7 +4754,7 @@ type SegmentsResponse struct { // with the application (Segment Versions resource). // // This member is required. - Item []*SegmentResponse + Item []SegmentResponse // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. @@ -4779,13 +4779,13 @@ type SendUsersMessageRequest struct { // overrides and message variables. // // This member is required. - Users map[string]*EndpointSendConfiguration + Users map[string]EndpointSendConfiguration // A map of custom attribute-value pairs. For a push notification, Amazon Pinpoint // adds these attributes to the data.pinpoint object in the body of the // notification payload. Amazon Pinpoint also provides these attributes in the // events that it generates for users-messages deliveries. - Context map[string]*string + Context map[string]string // The message template to use for the message. TemplateConfiguration *TemplateConfiguration @@ -4810,7 +4810,7 @@ type SendUsersMessageResponse struct { // The object lists user IDs and, for each user ID, provides the endpoint IDs that // the message was sent to. For each endpoint ID, it provides an // EndpointMessageResult object. - Result map[string]map[string]*EndpointMessageResult + Result map[string]map[string]EndpointMessageResult } // Provides information about a session. @@ -4827,7 +4827,7 @@ type Session struct { StartTimestamp *string // The duration of the session, in milliseconds. - Duration *int32 + Duration int32 // The date and time when the session ended. StopTimestamp *string @@ -4841,7 +4841,7 @@ type SetDimension struct { // if their values match the criteria values. // // This member is required. - Values []*string + Values []string // The type of segment dimension to use. Valid values are: INCLUSIVE, endpoints // that match the criteria are included in the segment; and, EXCLUSIVE, endpoints @@ -4895,7 +4895,7 @@ type SimpleEmailPart struct { type SMSChannelRequest struct { // Specifies whether to enable the SMS channel for the application. - Enabled *bool + Enabled bool // The identity that you want to display on recipients' devices when they receive // messages from the SMS channel. @@ -4923,17 +4923,17 @@ type SMSChannelResponse struct { CreationDate *string // Specifies whether the SMS channel is enabled for the application. - Enabled *bool + Enabled bool // (Not used) This property is retained only for backward compatibility. - HasCredential *bool + HasCredential bool // (Deprecated) An identifier for the SMS channel. This property is retained only // for backward compatibility. Id *string // Specifies whether the SMS channel is archived. - IsArchived *bool + IsArchived bool // The user who last modified the SMS channel. LastModifiedBy *string @@ -4943,7 +4943,7 @@ type SMSChannelResponse struct { // The maximum number of promotional messages that you can send through the SMS // channel each second. - PromotionalMessagesPerSecond *int32 + PromotionalMessagesPerSecond int32 // The identity that displays on recipients' devices when they receive messages // from the SMS channel. @@ -4954,10 +4954,10 @@ type SMSChannelResponse struct { // The maximum number of transactional messages that you can send through the SMS // channel each second. - TransactionalMessagesPerSecond *int32 + TransactionalMessagesPerSecond int32 // The current version of the SMS channel. - Version *int32 + Version int32 } // Specifies the default settings for a one-time SMS message that's sent directly @@ -4991,7 +4991,7 @@ type SMSMessage struct { // The message variables to use in the SMS message. You can override the default // variables with individual address variables. - Substitutions map[string][]*string + Substitutions map[string][]string } // Specifies the settings for an SMS activity in a journey. This type of activity @@ -5045,7 +5045,7 @@ type SMSTemplateRequest struct { // A string-to-string map of key-value pairs that defines the tags to associate // with the message template. Each tag consists of a required tag key and an // associated tag value. - Tags map[string]*string + Tags map[string]string // A custom description of the message template. TemplateDescription *string @@ -5096,7 +5096,7 @@ type SMSTemplateResponse struct { // A string-to-string map of key-value pairs that identifies the tags that are // associated with the message template. Each tag consists of a required tag key // and an associated tag value. - Tags map[string]*string + Tags map[string]string // The custom description of the message template. TemplateDescription *string @@ -5133,7 +5133,7 @@ type TagsModel struct { // maximum length of a tag value is 256 characters. // // This member is required. - Tags map[string]*string + Tags map[string]string } // Specifies the name and version of the message template to use for the message. @@ -5229,7 +5229,7 @@ type TemplateResponse struct { // retrieve this object for a template, use the GetEmailTemplate, GetPushTemplate, // GetSmsTemplate, or GetVoiceTemplate operation, depending on the type of template // that you want to retrieve the object for. - Tags map[string]*string + Tags map[string]string // The custom description of the message template. This value isn't included in a // TemplateResponse object. To retrieve the description of a template, use the @@ -5252,7 +5252,7 @@ type TemplatesResponse struct { // request. // // This member is required. - Item []*TemplateResponse + Item []TemplateResponse // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. @@ -5306,7 +5306,7 @@ type TemplateVersionsResponse struct { // An array of responses, one for each version of the message template. // // This member is required. - Item []*TemplateVersionResponse + Item []TemplateVersionResponse // The message that's returned from the API for the request to retrieve information // about all the versions of the message template. @@ -5334,7 +5334,7 @@ type TreatmentResource struct { // to. // // This member is required. - SizePercent *int32 + SizePercent int32 // The delivery configuration settings for sending the treatment through a custom // channel. This object is required if the MessageConfiguration object for the @@ -5368,7 +5368,7 @@ type UpdateAttributesRequest struct { // with the application. The array can specify the complete, exact name of each // attribute to remove or it can specify a glob pattern that an attribute name must // match in order for the attribute to be removed. - Blacklist []*string + Blacklist []string } // Specifies Amazon Pinpoint configuration settings for retrieving and processing @@ -5411,7 +5411,7 @@ type UpdateRecommenderConfigurationShape struct { // This object is required if the configuration // invokes an AWS Lambda function (RecommendationTransformerUri) to process // recommendation data. Otherwise, don't include this object in your request. - Attributes map[string]*string + Attributes map[string]string // A custom description of the configuration for the recommender model. The // description can contain up to 128 characters. The characters can be letters, @@ -5463,14 +5463,14 @@ type UpdateRecommenderConfigurationShape struct { // 5. To use multiple recommended items and custom attributes with message // variables, you have to use an AWS Lambda function (RecommendationTransformerUri) // to perform additional processing of recommendation data. - RecommendationsPerMessage *int32 + RecommendationsPerMessage int32 } // Specifies the status and settings of the voice channel for an application. type VoiceChannelRequest struct { // Specifies whether to enable the voice channel for the application. - Enabled *bool + Enabled bool } // Provides information about the status and settings of the voice channel for an @@ -5490,17 +5490,17 @@ type VoiceChannelResponse struct { CreationDate *string // Specifies whether the voice channel is enabled for the application. - Enabled *bool + Enabled bool // (Not used) This property is retained only for backward compatibility. - HasCredential *bool + HasCredential bool // (Deprecated) An identifier for the voice channel. This property is retained only // for backward compatibility. Id *string // Specifies whether the voice channel is archived. - IsArchived *bool + IsArchived bool // The user who last modified the voice channel. LastModifiedBy *string @@ -5509,7 +5509,7 @@ type VoiceChannelResponse struct { LastModifiedDate *string // The current version of the voice channel. - Version *int32 + Version int32 } // Specifies the settings for a one-time voice message that's sent directly to an @@ -5533,7 +5533,7 @@ type VoiceMessage struct { // The default message variables to use in the voice message. You can override the // default variables with individual address variables. - Substitutions map[string][]*string + Substitutions map[string][]string // The name of the voice to use when delivering the message. For a list of // supported voices, see the Amazon Polly Developer Guide @@ -5566,7 +5566,7 @@ type VoiceTemplateRequest struct { // A string-to-string map of key-value pairs that defines the tags to associate // with the message template. Each tag consists of a required tag key and an // associated tag value. - Tags map[string]*string + Tags map[string]string // A custom description of the message template. TemplateDescription *string @@ -5624,7 +5624,7 @@ type VoiceTemplateResponse struct { // A string-to-string map of key-value pairs that identifies the tags that are // associated with the message template. Each tag consists of a required tag key // and an associated tag value. - Tags map[string]*string + Tags map[string]string // The custom description of the message template. TemplateDescription *string @@ -5681,9 +5681,9 @@ type WriteApplicationSettingsRequest struct { CampaignHook *CampaignHook // Specifies whether to enable application-related alarms in Amazon CloudWatch. - CloudWatchMetricsEnabled *bool + CloudWatchMetricsEnabled bool - EventTaggingEnabled *bool + EventTaggingEnabled bool // The default sending limits for campaigns in the application. To override these // limits and define custom limits for a specific campaign or journey, use the @@ -5720,7 +5720,7 @@ type WriteCampaignRequest struct { // An array of requests that defines additional treatments for the campaign, in // addition to the default treatment for the campaign. - AdditionalTreatments []*WriteTreatmentResource + AdditionalTreatments []WriteTreatmentResource // The delivery configuration settings for sending the campaign through a custom // channel. This object is required if the MessageConfiguration object for the @@ -5732,7 +5732,7 @@ type WriteCampaignRequest struct { // The allocated percentage of users (segment members) who shouldn't receive // messages from the campaign. - HoldoutPercent *int32 + HoldoutPercent int32 // The settings for the AWS Lambda function to invoke as a code hook for the // campaign. You can use this hook to customize the segment that's used by the @@ -5741,7 +5741,7 @@ type WriteCampaignRequest struct { // Specifies whether to pause the campaign. A paused campaign doesn't run unless // you resume it by changing this value to false. - IsPaused *bool + IsPaused bool // The messaging limits for the campaign. Limits *CampaignLimits @@ -5759,12 +5759,12 @@ type WriteCampaignRequest struct { SegmentId *string // The version of the segment to associate with the campaign. - SegmentVersion *int32 + SegmentVersion int32 // A string-to-string map of key-value pairs that defines the tags to associate // with the campaign. Each tag consists of a required tag key and an associated tag // value. - Tags map[string]*string + Tags map[string]string // The message template to use for the campaign. TemplateConfiguration *TemplateConfiguration @@ -5815,7 +5815,7 @@ type WriteJourneyRequest struct { // for an activity and the value is the settings for the activity. An activity // identifier can contain a maximum of 100 characters. The characters must be // alphanumeric characters. - Activities map[string]*Activity + Activities map[string]Activity // The date, in ISO 8601 format, when the journey was created. CreationDate *string @@ -5829,7 +5829,7 @@ type WriteJourneyRequest struct { // Specifies whether the journey's scheduled start and end times use each // participant's local time. To base the schedule on each participant's local time, // set this value to true. - LocalTime *bool + LocalTime bool // The quiet time settings for the journey. Quiet time is a specific time range // when a journey doesn't send messages to participants, if all the following @@ -5901,7 +5901,7 @@ type WriteSegmentRequest struct { // A string-to-string map of key-value pairs that defines the tags to associate // with the segment. Each tag consists of a required tag key and an associated tag // value. - Tags map[string]*string + Tags map[string]string } // Specifies the settings for a campaign treatment. A treatment is a variation of a @@ -5911,7 +5911,7 @@ type WriteTreatmentResource struct { // The allocated percentage of users (segment members) to send the treatment to. // // This member is required. - SizePercent *int32 + SizePercent int32 // The delivery configuration settings for sending the treatment through a custom // channel. This object is required if the MessageConfiguration object for the diff --git a/service/pinpoint/validators.go b/service/pinpoint/validators.go index c3674f4f426..e25d3198c3c 100644 --- a/service/pinpoint/validators.go +++ b/service/pinpoint/validators.go @@ -3026,12 +3026,6 @@ func validateGPSCoordinates(v *types.GPSCoordinates) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "GPSCoordinates"} - if v.Longitude == nil { - invalidParams.Add(smithy.NewErrParamRequired("Longitude")) - } - if v.Latitude == nil { - invalidParams.Add(smithy.NewErrParamRequired("Latitude")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3063,9 +3057,6 @@ func validateHoldoutActivity(v *types.HoldoutActivity) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "HoldoutActivity"} - if v.Percentage == nil { - invalidParams.Add(smithy.NewErrParamRequired("Percentage")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3094,13 +3085,13 @@ func validateImportJobRequest(v *types.ImportJobRequest) error { } } -func validateListOfMultiConditionalBranch(v []*types.MultiConditionalBranch) error { +func validateListOfMultiConditionalBranch(v []types.MultiConditionalBranch) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfMultiConditionalBranch"} for i := range v { - if err := validateMultiConditionalBranch(v[i]); err != nil { + if err := validateMultiConditionalBranch(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3111,13 +3102,13 @@ func validateListOfMultiConditionalBranch(v []*types.MultiConditionalBranch) err } } -func validateListOfSegmentDimensions(v []*types.SegmentDimensions) error { +func validateListOfSegmentDimensions(v []types.SegmentDimensions) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfSegmentDimensions"} for i := range v { - if err := validateSegmentDimensions(v[i]); err != nil { + if err := validateSegmentDimensions(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3128,13 +3119,13 @@ func validateListOfSegmentDimensions(v []*types.SegmentDimensions) error { } } -func validateListOfSegmentGroup(v []*types.SegmentGroup) error { +func validateListOfSegmentGroup(v []types.SegmentGroup) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfSegmentGroup"} for i := range v { - if err := validateSegmentGroup(v[i]); err != nil { + if err := validateSegmentGroup(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3145,13 +3136,13 @@ func validateListOfSegmentGroup(v []*types.SegmentGroup) error { } } -func validateListOfSegmentReference(v []*types.SegmentReference) error { +func validateListOfSegmentReference(v []types.SegmentReference) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfSegmentReference"} for i := range v { - if err := validateSegmentReference(v[i]); err != nil { + if err := validateSegmentReference(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3162,13 +3153,13 @@ func validateListOfSegmentReference(v []*types.SegmentReference) error { } } -func validateListOfSimpleCondition(v []*types.SimpleCondition) error { +func validateListOfSimpleCondition(v []types.SimpleCondition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfSimpleCondition"} for i := range v { - if err := validateSimpleCondition(v[i]); err != nil { + if err := validateSimpleCondition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3179,13 +3170,13 @@ func validateListOfSimpleCondition(v []*types.SimpleCondition) error { } } -func validateListOfWriteTreatmentResource(v []*types.WriteTreatmentResource) error { +func validateListOfWriteTreatmentResource(v []types.WriteTreatmentResource) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfWriteTreatmentResource"} for i := range v { - if err := validateWriteTreatmentResource(v[i]); err != nil { + if err := validateWriteTreatmentResource(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3196,13 +3187,14 @@ func validateListOfWriteTreatmentResource(v []*types.WriteTreatmentResource) err } } -func validateMapOfActivity(v map[string]*types.Activity) error { +func validateMapOfActivity(v map[string]types.Activity) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MapOfActivity"} for key := range v { - if err := validateActivity(v[key]); err != nil { + value := v[key] + if err := validateActivity(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -3213,13 +3205,14 @@ func validateMapOfActivity(v map[string]*types.Activity) error { } } -func validateMapOfAttributeDimension(v map[string]*types.AttributeDimension) error { +func validateMapOfAttributeDimension(v map[string]types.AttributeDimension) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MapOfAttributeDimension"} for key := range v { - if err := validateAttributeDimension(v[key]); err != nil { + value := v[key] + if err := validateAttributeDimension(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -3230,13 +3223,14 @@ func validateMapOfAttributeDimension(v map[string]*types.AttributeDimension) err } } -func validateMapOfEvent(v map[string]*types.Event) error { +func validateMapOfEvent(v map[string]types.Event) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MapOfEvent"} for key := range v { - if err := validateEvent(v[key]); err != nil { + value := v[key] + if err := validateEvent(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -3247,13 +3241,14 @@ func validateMapOfEvent(v map[string]*types.Event) error { } } -func validateMapOfEventsBatch(v map[string]*types.EventsBatch) error { +func validateMapOfEventsBatch(v map[string]types.EventsBatch) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MapOfEventsBatch"} for key := range v { - if err := validateEventsBatch(v[key]); err != nil { + value := v[key] + if err := validateEventsBatch(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -3264,13 +3259,14 @@ func validateMapOfEventsBatch(v map[string]*types.EventsBatch) error { } } -func validateMapOfMetricDimension(v map[string]*types.MetricDimension) error { +func validateMapOfMetricDimension(v map[string]types.MetricDimension) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MapOfMetricDimension"} for key := range v { - if err := validateMetricDimension(v[key]); err != nil { + value := v[key] + if err := validateMetricDimension(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -3301,9 +3297,6 @@ func validateMetricDimension(v *types.MetricDimension) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "MetricDimension"} - if v.Value == nil { - invalidParams.Add(smithy.NewErrParamRequired("Value")) - } if v.ComparisonOperator == nil { invalidParams.Add(smithy.NewErrParamRequired("ComparisonOperator")) } @@ -3813,9 +3806,6 @@ func validateWriteTreatmentResource(v *types.WriteTreatmentResource) error { invalidParams.AddNested("Schedule", err.(smithy.InvalidParamsError)) } } - if v.SizePercent == nil { - invalidParams.Add(smithy.NewErrParamRequired("SizePercent")) - } if v.CustomDeliveryConfiguration != nil { if err := validateCustomDeliveryConfiguration(v.CustomDeliveryConfiguration); err != nil { invalidParams.AddNested("CustomDeliveryConfiguration", err.(smithy.InvalidParamsError)) diff --git a/service/pinpointemail/api_op_CreateConfigurationSet.go b/service/pinpointemail/api_op_CreateConfigurationSet.go index e05d9bb85c0..d893e6eba9c 100644 --- a/service/pinpointemail/api_op_CreateConfigurationSet.go +++ b/service/pinpointemail/api_op_CreateConfigurationSet.go @@ -53,7 +53,7 @@ type CreateConfigurationSetInput struct { // An array of objects that define the tags (keys and values) that you want to // associate with the configuration set. - Tags []*types.Tag + Tags []types.Tag // An object that defines the open and click tracking options for emails that you // send using the configuration set. diff --git a/service/pinpointemail/api_op_CreateDedicatedIpPool.go b/service/pinpointemail/api_op_CreateDedicatedIpPool.go index c6f7180e5bd..647d0beac8d 100644 --- a/service/pinpointemail/api_op_CreateDedicatedIpPool.go +++ b/service/pinpointemail/api_op_CreateDedicatedIpPool.go @@ -41,7 +41,7 @@ type CreateDedicatedIpPoolInput struct { // An object that defines the tags (keys and values) that you want to associate // with the pool. - Tags []*types.Tag + Tags []types.Tag } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/pinpointemail/api_op_CreateDeliverabilityTestReport.go b/service/pinpointemail/api_op_CreateDeliverabilityTestReport.go index eb54d7cee0d..ce9051727ef 100644 --- a/service/pinpointemail/api_op_CreateDeliverabilityTestReport.go +++ b/service/pinpointemail/api_op_CreateDeliverabilityTestReport.go @@ -61,7 +61,7 @@ type CreateDeliverabilityTestReportInput struct { // An array of objects that define the tags (keys and values) that you want to // associate with the predictive inbox placement test. - Tags []*types.Tag + Tags []types.Tag } // Information about the predictive inbox placement test that you created. diff --git a/service/pinpointemail/api_op_CreateEmailIdentity.go b/service/pinpointemail/api_op_CreateEmailIdentity.go index 776339da16b..ff5309cc44e 100644 --- a/service/pinpointemail/api_op_CreateEmailIdentity.go +++ b/service/pinpointemail/api_op_CreateEmailIdentity.go @@ -49,7 +49,7 @@ type CreateEmailIdentityInput struct { // An array of objects that define the tags (keys and values) that you want to // associate with the email identity. - Tags []*types.Tag + Tags []types.Tag } // If the email identity is a domain, this object contains tokens that you can use @@ -70,7 +70,7 @@ type CreateEmailIdentityOutput struct { // only send email from verified email addresses or domains. For more information // about verifying identities, see the Amazon Pinpoint User Guide // (https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html). - VerifiedForSendingStatus *bool + VerifiedForSendingStatus bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/pinpointemail/api_op_GetAccount.go b/service/pinpointemail/api_op_GetAccount.go index d08fd6e7c21..af25c8eee2c 100644 --- a/service/pinpointemail/api_op_GetAccount.go +++ b/service/pinpointemail/api_op_GetAccount.go @@ -39,7 +39,7 @@ type GetAccountOutput struct { // Indicates whether or not the automatic warm-up feature is enabled for dedicated // IP addresses that are associated with your account. - DedicatedIpAutoWarmupEnabled *bool + DedicatedIpAutoWarmupEnabled bool // The reputation status of your Amazon Pinpoint account. The status can be one of // the following: @@ -66,7 +66,7 @@ type GetAccountOutput struct { // has production access. When your account has production access, you can send // email to any address. The sending quota and maximum sending rate for your // account vary based on your specific use case. - ProductionAccessEnabled *bool + ProductionAccessEnabled bool // An object that contains information about the per-day and per-second sending // limits for your Amazon Pinpoint account in the current AWS Region. @@ -74,7 +74,7 @@ type GetAccountOutput struct { // Indicates whether or not email sending is enabled for your Amazon Pinpoint // account in the current AWS Region. - SendingEnabled *bool + SendingEnabled bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/pinpointemail/api_op_GetBlacklistReports.go b/service/pinpointemail/api_op_GetBlacklistReports.go index eda2d134444..5d0bd493abb 100644 --- a/service/pinpointemail/api_op_GetBlacklistReports.go +++ b/service/pinpointemail/api_op_GetBlacklistReports.go @@ -36,7 +36,7 @@ type GetBlacklistReportsInput struct { // Amazon Pinpoint or Amazon SES. // // This member is required. - BlacklistItemNames []*string + BlacklistItemNames []string } // An object that contains information about blacklist events. @@ -46,7 +46,7 @@ type GetBlacklistReportsOutput struct { // IP addresses appears on. // // This member is required. - BlacklistReport map[string][]*types.BlacklistEntry + BlacklistReport map[string][]types.BlacklistEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/pinpointemail/api_op_GetConfigurationSet.go b/service/pinpointemail/api_op_GetConfigurationSet.go index 6652b16f92f..505d9daaae8 100644 --- a/service/pinpointemail/api_op_GetConfigurationSet.go +++ b/service/pinpointemail/api_op_GetConfigurationSet.go @@ -63,7 +63,7 @@ type GetConfigurationSetOutput struct { // An array of objects that define the tags (keys and values) that are associated // with the configuration set. - Tags []*types.Tag + Tags []types.Tag // An object that defines the open and click tracking options for emails that you // send using the configuration set. diff --git a/service/pinpointemail/api_op_GetConfigurationSetEventDestinations.go b/service/pinpointemail/api_op_GetConfigurationSetEventDestinations.go index 1063e2e433f..5b38cafe916 100644 --- a/service/pinpointemail/api_op_GetConfigurationSetEventDestinations.go +++ b/service/pinpointemail/api_op_GetConfigurationSetEventDestinations.go @@ -48,7 +48,7 @@ type GetConfigurationSetEventDestinationsOutput struct { // An array that includes all of the events destinations that have been configured // for the configuration set. - EventDestinations []*types.EventDestination + EventDestinations []types.EventDestination // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/pinpointemail/api_op_GetDedicatedIps.go b/service/pinpointemail/api_op_GetDedicatedIps.go index a5c99941a74..38873b67bbd 100644 --- a/service/pinpointemail/api_op_GetDedicatedIps.go +++ b/service/pinpointemail/api_op_GetDedicatedIps.go @@ -51,7 +51,7 @@ type GetDedicatedIpsOutput struct { // A list of dedicated IP addresses that are reserved for use by your Amazon // Pinpoint account. - DedicatedIps []*types.DedicatedIp + DedicatedIps []types.DedicatedIp // A token that indicates that there are additional dedicated IP addresses to list. // To view additional addresses, issue another request to GetDedicatedIps, passing diff --git a/service/pinpointemail/api_op_GetDeliverabilityDashboardOptions.go b/service/pinpointemail/api_op_GetDeliverabilityDashboardOptions.go index 51e85f00575..2217e7e1b7a 100644 --- a/service/pinpointemail/api_op_GetDeliverabilityDashboardOptions.go +++ b/service/pinpointemail/api_op_GetDeliverabilityDashboardOptions.go @@ -56,7 +56,7 @@ type GetDeliverabilityDashboardOptionsOutput struct { // Pinpoint account. If this value is true, the dashboard is enabled. // // This member is required. - DashboardEnabled *bool + DashboardEnabled bool // The current status of your Deliverability dashboard subscription. If this value // is PENDING_EXPIRATION, your subscription is scheduled to expire at the end of @@ -66,12 +66,12 @@ type GetDeliverabilityDashboardOptionsOutput struct { // An array of objects, one for each verified domain that you use to send email and // currently has an active Deliverability dashboard subscription that isn’t // scheduled to expire at the end of the current calendar month. - ActiveSubscribedDomains []*types.DomainDeliverabilityTrackingOption + ActiveSubscribedDomains []types.DomainDeliverabilityTrackingOption // An array of objects, one for each verified domain that you use to send email and // currently has an active Deliverability dashboard subscription that's scheduled // to expire at the end of the current calendar month. - PendingExpirationSubscribedDomains []*types.DomainDeliverabilityTrackingOption + PendingExpirationSubscribedDomains []types.DomainDeliverabilityTrackingOption // The date, in Unix time format, when your current subscription to the // Deliverability dashboard is scheduled to expire, if your subscription is diff --git a/service/pinpointemail/api_op_GetDeliverabilityTestReport.go b/service/pinpointemail/api_op_GetDeliverabilityTestReport.go index fa6667a0cd1..8065761e12d 100644 --- a/service/pinpointemail/api_op_GetDeliverabilityTestReport.go +++ b/service/pinpointemail/api_op_GetDeliverabilityTestReport.go @@ -48,7 +48,7 @@ type GetDeliverabilityTestReportOutput struct { // providers, including Gmail, Hotmail, Yahoo, AOL, and others. // // This member is required. - IspPlacements []*types.IspPlacement + IspPlacements []types.IspPlacement // An object that specifies how many test messages that were sent during the // predictive inbox placement test were delivered to recipients' inboxes, how many @@ -63,7 +63,7 @@ type GetDeliverabilityTestReportOutput struct { // An array of objects that define the tags (keys and values) that are associated // with the predictive inbox placement test. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/pinpointemail/api_op_GetDomainStatisticsReport.go b/service/pinpointemail/api_op_GetDomainStatisticsReport.go index 6ccb122460c..e1eec944eae 100644 --- a/service/pinpointemail/api_op_GetDomainStatisticsReport.go +++ b/service/pinpointemail/api_op_GetDomainStatisticsReport.go @@ -60,7 +60,7 @@ type GetDomainStatisticsReportOutput struct { // ending on the EndDate. // // This member is required. - DailyVolumes []*types.DailyVolume + DailyVolumes []types.DailyVolume // An object that contains deliverability metrics for the domain that you // specified. The data in this object is a summary of all of the data that was diff --git a/service/pinpointemail/api_op_GetEmailIdentity.go b/service/pinpointemail/api_op_GetEmailIdentity.go index 35cff4b557e..8e686ffcdb6 100644 --- a/service/pinpointemail/api_op_GetEmailIdentity.go +++ b/service/pinpointemail/api_op_GetEmailIdentity.go @@ -56,7 +56,7 @@ type GetEmailIdentityOutput struct { // mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends // an email notification when these events occur (even if this setting is // disabled). - FeedbackForwardingStatus *bool + FeedbackForwardingStatus bool // The email identity type. IdentityType types.IdentityType @@ -67,13 +67,13 @@ type GetEmailIdentityOutput struct { // An array of objects that define the tags (keys and values) that are associated // with the email identity. - Tags []*types.Tag + Tags []types.Tag // Specifies whether or not the identity is verified. In Amazon Pinpoint, you can // only send email from verified email addresses or domains. For more information // about verifying identities, see the Amazon Pinpoint User Guide // (https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html). - VerifiedForSendingStatus *bool + VerifiedForSendingStatus bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/pinpointemail/api_op_ListConfigurationSets.go b/service/pinpointemail/api_op_ListConfigurationSets.go index f9fe14d886a..2740cc94056 100644 --- a/service/pinpointemail/api_op_ListConfigurationSets.go +++ b/service/pinpointemail/api_op_ListConfigurationSets.go @@ -52,7 +52,7 @@ type ListConfigurationSetsOutput struct { // An array that contains all of the configuration sets in your Amazon Pinpoint // account in the current AWS Region. - ConfigurationSets []*string + ConfigurationSets []string // A token that indicates that there are additional configuration sets to list. To // view additional configuration sets, issue another request to diff --git a/service/pinpointemail/api_op_ListDedicatedIpPools.go b/service/pinpointemail/api_op_ListDedicatedIpPools.go index 26a32db2dc6..c1e1bff3097 100644 --- a/service/pinpointemail/api_op_ListDedicatedIpPools.go +++ b/service/pinpointemail/api_op_ListDedicatedIpPools.go @@ -46,7 +46,7 @@ type ListDedicatedIpPoolsOutput struct { // A list of all of the dedicated IP pools that are associated with your Amazon // Pinpoint account. - DedicatedIpPools []*string + DedicatedIpPools []string // A token that indicates that there are additional IP pools to list. To view // additional IP pools, issue another request to ListDedicatedIpPools, passing this diff --git a/service/pinpointemail/api_op_ListDeliverabilityTestReports.go b/service/pinpointemail/api_op_ListDeliverabilityTestReports.go index 3ff846b0f46..94612c4d9d4 100644 --- a/service/pinpointemail/api_op_ListDeliverabilityTestReports.go +++ b/service/pinpointemail/api_op_ListDeliverabilityTestReports.go @@ -54,7 +54,7 @@ type ListDeliverabilityTestReportsOutput struct { // performed. // // This member is required. - DeliverabilityTestReports []*types.DeliverabilityTestReport + DeliverabilityTestReports []types.DeliverabilityTestReport // A token that indicates that there are additional predictive inbox placement // tests to list. To view additional predictive inbox placement tests, issue diff --git a/service/pinpointemail/api_op_ListDomainDeliverabilityCampaigns.go b/service/pinpointemail/api_op_ListDomainDeliverabilityCampaigns.go index 25ebddc6a71..8f30fdccc9f 100644 --- a/service/pinpointemail/api_op_ListDomainDeliverabilityCampaigns.go +++ b/service/pinpointemail/api_op_ListDomainDeliverabilityCampaigns.go @@ -77,7 +77,7 @@ type ListDomainDeliverabilityCampaignsOutput struct { // during the specified time range. // // This member is required. - DomainDeliverabilityCampaigns []*types.DomainDeliverabilityCampaign + DomainDeliverabilityCampaigns []types.DomainDeliverabilityCampaign // A token that’s returned from a previous call to the // ListDomainDeliverabilityCampaigns operation. This token indicates the position diff --git a/service/pinpointemail/api_op_ListEmailIdentities.go b/service/pinpointemail/api_op_ListEmailIdentities.go index 7ec4aaa4f59..7c71bb53fc6 100644 --- a/service/pinpointemail/api_op_ListEmailIdentities.go +++ b/service/pinpointemail/api_op_ListEmailIdentities.go @@ -55,7 +55,7 @@ type ListEmailIdentitiesOutput struct { // An array that includes all of the identities associated with your Amazon // Pinpoint account. - EmailIdentities []*types.IdentityInfo + EmailIdentities []types.IdentityInfo // A token that indicates that there are additional configuration sets to list. To // view additional configuration sets, issue another request to diff --git a/service/pinpointemail/api_op_ListTagsForResource.go b/service/pinpointemail/api_op_ListTagsForResource.go index 41aacb754af..431e9d2df89 100644 --- a/service/pinpointemail/api_op_ListTagsForResource.go +++ b/service/pinpointemail/api_op_ListTagsForResource.go @@ -47,7 +47,7 @@ type ListTagsForResourceOutput struct { // consists of a required tag key (Key) and an associated tag value (Value) // // This member is required. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/pinpointemail/api_op_PutAccountDedicatedIpWarmupAttributes.go b/service/pinpointemail/api_op_PutAccountDedicatedIpWarmupAttributes.go index 52a95f49b90..27d870fbbbf 100644 --- a/service/pinpointemail/api_op_PutAccountDedicatedIpWarmupAttributes.go +++ b/service/pinpointemail/api_op_PutAccountDedicatedIpWarmupAttributes.go @@ -33,7 +33,7 @@ type PutAccountDedicatedIpWarmupAttributesInput struct { // that are associated with your Amazon Pinpoint account in the current AWS Region. // Set to true to enable the automatic warm-up feature, or set to false to disable // it. - AutoWarmupEnabled *bool + AutoWarmupEnabled bool } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/pinpointemail/api_op_PutAccountSendingAttributes.go b/service/pinpointemail/api_op_PutAccountSendingAttributes.go index 0d5c5c0aeee..636ea6e7826 100644 --- a/service/pinpointemail/api_op_PutAccountSendingAttributes.go +++ b/service/pinpointemail/api_op_PutAccountSendingAttributes.go @@ -33,7 +33,7 @@ type PutAccountSendingAttributesInput struct { // email sending, or set to false to disable email sending. If AWS paused your // account's ability to send email, you can't use this operation to resume your // account's ability to send email. - SendingEnabled *bool + SendingEnabled bool } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/pinpointemail/api_op_PutConfigurationSetReputationOptions.go b/service/pinpointemail/api_op_PutConfigurationSetReputationOptions.go index 160cc7c2d0d..979f79c393a 100644 --- a/service/pinpointemail/api_op_PutConfigurationSetReputationOptions.go +++ b/service/pinpointemail/api_op_PutConfigurationSetReputationOptions.go @@ -39,7 +39,7 @@ type PutConfigurationSetReputationOptionsInput struct { // If true, tracking of reputation metrics is enabled for the configuration set. If // false, tracking of reputation metrics is disabled for the configuration set. - ReputationMetricsEnabled *bool + ReputationMetricsEnabled bool } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/pinpointemail/api_op_PutConfigurationSetSendingOptions.go b/service/pinpointemail/api_op_PutConfigurationSetSendingOptions.go index 4e3266a10a3..12c24a4c61b 100644 --- a/service/pinpointemail/api_op_PutConfigurationSetSendingOptions.go +++ b/service/pinpointemail/api_op_PutConfigurationSetSendingOptions.go @@ -39,7 +39,7 @@ type PutConfigurationSetSendingOptionsInput struct { // If true, email sending is enabled for the configuration set. If false, email // sending is disabled for the configuration set. - SendingEnabled *bool + SendingEnabled bool } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/pinpointemail/api_op_PutDeliverabilityDashboardOption.go b/service/pinpointemail/api_op_PutDeliverabilityDashboardOption.go index ed0daca5a47..c615e9f0cd4 100644 --- a/service/pinpointemail/api_op_PutDeliverabilityDashboardOption.go +++ b/service/pinpointemail/api_op_PutDeliverabilityDashboardOption.go @@ -50,11 +50,11 @@ type PutDeliverabilityDashboardOptionInput struct { // Pinpoint account. To enable the dashboard, set this value to true. // // This member is required. - DashboardEnabled *bool + DashboardEnabled bool // An array of objects, one for each verified domain that you use to send email and // enabled the Deliverability dashboard for. - SubscribedDomains []*types.DomainDeliverabilityTrackingOption + SubscribedDomains []types.DomainDeliverabilityTrackingOption } // A response that indicates whether the Deliverability dashboard is enabled for diff --git a/service/pinpointemail/api_op_PutEmailIdentityDkimAttributes.go b/service/pinpointemail/api_op_PutEmailIdentityDkimAttributes.go index 46715a7265f..3a54e1b1da3 100644 --- a/service/pinpointemail/api_op_PutEmailIdentityDkimAttributes.go +++ b/service/pinpointemail/api_op_PutEmailIdentityDkimAttributes.go @@ -39,7 +39,7 @@ type PutEmailIdentityDkimAttributesInput struct { // true, then the messages that Amazon Pinpoint sends from the identity are // DKIM-signed. When you set this value to false, then the messages that Amazon // Pinpoint sends from the identity aren't DKIM-signed. - SigningEnabled *bool + SigningEnabled bool } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/pinpointemail/api_op_PutEmailIdentityFeedbackAttributes.go b/service/pinpointemail/api_op_PutEmailIdentityFeedbackAttributes.go index 569e12bde36..264dc0aeea1 100644 --- a/service/pinpointemail/api_op_PutEmailIdentityFeedbackAttributes.go +++ b/service/pinpointemail/api_op_PutEmailIdentityFeedbackAttributes.go @@ -56,7 +56,7 @@ type PutEmailIdentityFeedbackAttributesInput struct { // up another mechanism for receiving bounce or complaint notifications, Amazon // Pinpoint sends an email notification when these events occur (even if this // setting is disabled). - EmailForwardingEnabled *bool + EmailForwardingEnabled bool } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/pinpointemail/api_op_SendEmail.go b/service/pinpointemail/api_op_SendEmail.go index 6d6e0b54cb4..29de2b96ea5 100644 --- a/service/pinpointemail/api_op_SendEmail.go +++ b/service/pinpointemail/api_op_SendEmail.go @@ -58,7 +58,7 @@ type SendEmailInput struct { // A list of tags, in the form of name/value pairs, to apply to an email that you // send using the SendEmail operation. Tags correspond to characteristics of the // email that you define, so that you can publish email sending events. - EmailTags []*types.MessageTag + EmailTags []types.MessageTag // The address that Amazon Pinpoint should send bounce and complaint notifications // to. @@ -70,7 +70,7 @@ type SendEmailInput struct { // The "Reply-to" email addresses for the message. When the recipient replies to // the message, each Reply-to address receives the reply. - ReplyToAddresses []*string + ReplyToAddresses []string } // A unique message ID that you receive when Amazon Pinpoint accepts an email for diff --git a/service/pinpointemail/api_op_TagResource.go b/service/pinpointemail/api_op_TagResource.go index 2d8555843d2..d105aad09cd 100644 --- a/service/pinpointemail/api_op_TagResource.go +++ b/service/pinpointemail/api_op_TagResource.go @@ -47,7 +47,7 @@ type TagResourceInput struct { // characters. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/pinpointemail/api_op_UntagResource.go b/service/pinpointemail/api_op_UntagResource.go index c94d8902122..a4f295740d4 100644 --- a/service/pinpointemail/api_op_UntagResource.go +++ b/service/pinpointemail/api_op_UntagResource.go @@ -41,7 +41,7 @@ type UntagResourceInput struct { // example: /v1/email/tags?ResourceArn=ResourceArn&TagKeys=Key1&TagKeys=Key2 // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/pinpointemail/deserializers.go b/service/pinpointemail/deserializers.go index b6584297483..86320c9776b 100644 --- a/service/pinpointemail/deserializers.go +++ b/service/pinpointemail/deserializers.go @@ -479,7 +479,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeliverabilityTestReportOutput(v ** if !ok { return fmt.Errorf("expected ReportId to be of type string, got %T instead", value) } - sv.ReportId = &jtv + sv.ReportId = ptr.String(jtv) } default: @@ -653,7 +653,7 @@ func awsRestjson1_deserializeOpDocumentCreateEmailIdentityOutput(v **CreateEmail if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.VerifiedForSendingStatus = &jtv + sv.VerifiedForSendingStatus = jtv } default: @@ -1172,7 +1172,7 @@ func awsRestjson1_deserializeOpDocumentGetAccountOutput(v **GetAccountOutput, va if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.DedicatedIpAutoWarmupEnabled = &jtv + sv.DedicatedIpAutoWarmupEnabled = jtv } case "EnforcementStatus": @@ -1181,7 +1181,7 @@ func awsRestjson1_deserializeOpDocumentGetAccountOutput(v **GetAccountOutput, va if !ok { return fmt.Errorf("expected GeneralEnforcementStatus to be of type string, got %T instead", value) } - sv.EnforcementStatus = &jtv + sv.EnforcementStatus = ptr.String(jtv) } case "ProductionAccessEnabled": @@ -1190,7 +1190,7 @@ func awsRestjson1_deserializeOpDocumentGetAccountOutput(v **GetAccountOutput, va if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.ProductionAccessEnabled = &jtv + sv.ProductionAccessEnabled = jtv } case "SendingEnabled": @@ -1199,7 +1199,7 @@ func awsRestjson1_deserializeOpDocumentGetAccountOutput(v **GetAccountOutput, va if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.SendingEnabled = &jtv + sv.SendingEnabled = jtv } case "SendQuota": @@ -1514,7 +1514,7 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationSetOutput(v **GetConfigur if !ok { return fmt.Errorf("expected ConfigurationSetName to be of type string, got %T instead", value) } - sv.ConfigurationSetName = &jtv + sv.ConfigurationSetName = ptr.String(jtv) } case "DeliveryOptions": @@ -2007,7 +2007,7 @@ func awsRestjson1_deserializeOpDocumentGetDedicatedIpsOutput(v **GetDedicatedIps if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2178,7 +2178,7 @@ func awsRestjson1_deserializeOpDocumentGetDeliverabilityDashboardOptionsOutput(v if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.DashboardEnabled = &jtv + sv.DashboardEnabled = jtv } case "PendingExpirationSubscribedDomains": @@ -2363,7 +2363,7 @@ func awsRestjson1_deserializeOpDocumentGetDeliverabilityTestReportOutput(v **Get if !ok { return fmt.Errorf("expected MessageContent to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "OverallPlacement": @@ -2846,7 +2846,7 @@ func awsRestjson1_deserializeOpDocumentGetEmailIdentityOutput(v **GetEmailIdenti if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.FeedbackForwardingStatus = &jtv + sv.FeedbackForwardingStatus = jtv } case "IdentityType": @@ -2874,7 +2874,7 @@ func awsRestjson1_deserializeOpDocumentGetEmailIdentityOutput(v **GetEmailIdenti if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.VerifiedForSendingStatus = &jtv + sv.VerifiedForSendingStatus = jtv } default: @@ -3033,7 +3033,7 @@ func awsRestjson1_deserializeOpDocumentListConfigurationSetsOutput(v **ListConfi if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3192,7 +3192,7 @@ func awsRestjson1_deserializeOpDocumentListDedicatedIpPoolsOutput(v **ListDedica if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3354,7 +3354,7 @@ func awsRestjson1_deserializeOpDocumentListDeliverabilityTestReportsOutput(v **L if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3516,7 +3516,7 @@ func awsRestjson1_deserializeOpDocumentListDomainDeliverabilityCampaignsOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3675,7 +3675,7 @@ func awsRestjson1_deserializeOpDocumentListEmailIdentitiesOutput(v **ListEmailId if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5068,7 +5068,7 @@ func awsRestjson1_deserializeOpDocumentSendEmailOutput(v **SendEmailOutput, valu if !ok { return fmt.Errorf("expected OutboundMessageId to be of type string, got %T instead", value) } - sv.MessageId = &jtv + sv.MessageId = ptr.String(jtv) } default: @@ -5741,7 +5741,7 @@ func awsRestjson1_deserializeDocumentAccountSuspendedException(v **types.Account if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5781,7 +5781,7 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5821,7 +5821,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5833,7 +5833,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc return nil } -func awsRestjson1_deserializeDocumentBlacklistEntries(v *[]*types.BlacklistEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentBlacklistEntries(v *[]types.BlacklistEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5846,18 +5846,20 @@ func awsRestjson1_deserializeDocumentBlacklistEntries(v *[]*types.BlacklistEntry return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BlacklistEntry + var cv []types.BlacklistEntry if *v == nil { - cv = []*types.BlacklistEntry{} + cv = []types.BlacklistEntry{} } else { cv = *v } for _, value := range shape { - var col *types.BlacklistEntry - if err := awsRestjson1_deserializeDocumentBlacklistEntry(&col, value); err != nil { + var col types.BlacklistEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentBlacklistEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5893,7 +5895,7 @@ func awsRestjson1_deserializeDocumentBlacklistEntry(v **types.BlacklistEntry, va if !ok { return fmt.Errorf("expected BlacklistingDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ListingTime": @@ -5915,7 +5917,7 @@ func awsRestjson1_deserializeDocumentBlacklistEntry(v **types.BlacklistEntry, va if !ok { return fmt.Errorf("expected RblName to be of type string, got %T instead", value) } - sv.RblName = &jtv + sv.RblName = ptr.String(jtv) } default: @@ -5927,7 +5929,7 @@ func awsRestjson1_deserializeDocumentBlacklistEntry(v **types.BlacklistEntry, va return nil } -func awsRestjson1_deserializeDocumentBlacklistReport(v *map[string][]*types.BlacklistEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentBlacklistReport(v *map[string][]types.BlacklistEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5940,18 +5942,20 @@ func awsRestjson1_deserializeDocumentBlacklistReport(v *map[string][]*types.Blac return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*types.BlacklistEntry + var mv map[string][]types.BlacklistEntry if *v == nil { - mv = map[string][]*types.BlacklistEntry{} + mv = map[string][]types.BlacklistEntry{} } else { mv = *v } for key, value := range shape { - var parsedVal []*types.BlacklistEntry - if err := awsRestjson1_deserializeDocumentBlacklistEntries(&parsedVal, value); err != nil { + var parsedVal []types.BlacklistEntry + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentBlacklistEntries(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -6023,7 +6027,7 @@ func awsRestjson1_deserializeDocumentCloudWatchDimensionConfiguration(v **types. if !ok { return fmt.Errorf("expected DefaultDimensionValue to be of type string, got %T instead", value) } - sv.DefaultDimensionValue = &jtv + sv.DefaultDimensionValue = ptr.String(jtv) } case "DimensionName": @@ -6032,7 +6036,7 @@ func awsRestjson1_deserializeDocumentCloudWatchDimensionConfiguration(v **types. if !ok { return fmt.Errorf("expected DimensionName to be of type string, got %T instead", value) } - sv.DimensionName = &jtv + sv.DimensionName = ptr.String(jtv) } case "DimensionValueSource": @@ -6053,7 +6057,7 @@ func awsRestjson1_deserializeDocumentCloudWatchDimensionConfiguration(v **types. return nil } -func awsRestjson1_deserializeDocumentCloudWatchDimensionConfigurations(v *[]*types.CloudWatchDimensionConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentCloudWatchDimensionConfigurations(v *[]types.CloudWatchDimensionConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6066,18 +6070,20 @@ func awsRestjson1_deserializeDocumentCloudWatchDimensionConfigurations(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CloudWatchDimensionConfiguration + var cv []types.CloudWatchDimensionConfiguration if *v == nil { - cv = []*types.CloudWatchDimensionConfiguration{} + cv = []types.CloudWatchDimensionConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.CloudWatchDimensionConfiguration - if err := awsRestjson1_deserializeDocumentCloudWatchDimensionConfiguration(&col, value); err != nil { + var col types.CloudWatchDimensionConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentCloudWatchDimensionConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6113,7 +6119,7 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6125,7 +6131,7 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C return nil } -func awsRestjson1_deserializeDocumentConfigurationSetNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentConfigurationSetNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6138,21 +6144,21 @@ func awsRestjson1_deserializeDocumentConfigurationSetNameList(v *[]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ConfigurationSetName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6215,7 +6221,7 @@ func awsRestjson1_deserializeDocumentDailyVolume(v **types.DailyVolume, value in return nil } -func awsRestjson1_deserializeDocumentDailyVolumes(v *[]*types.DailyVolume, value interface{}) error { +func awsRestjson1_deserializeDocumentDailyVolumes(v *[]types.DailyVolume, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6228,18 +6234,20 @@ func awsRestjson1_deserializeDocumentDailyVolumes(v *[]*types.DailyVolume, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DailyVolume + var cv []types.DailyVolume if *v == nil { - cv = []*types.DailyVolume{} + cv = []types.DailyVolume{} } else { cv = *v } for _, value := range shape { - var col *types.DailyVolume - if err := awsRestjson1_deserializeDocumentDailyVolume(&col, value); err != nil { + var col types.DailyVolume + destAddr := &col + if err := awsRestjson1_deserializeDocumentDailyVolume(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6275,7 +6283,7 @@ func awsRestjson1_deserializeDocumentDedicatedIp(v **types.DedicatedIp, value in if !ok { return fmt.Errorf("expected Ip to be of type string, got %T instead", value) } - sv.Ip = &jtv + sv.Ip = ptr.String(jtv) } case "PoolName": @@ -6284,7 +6292,7 @@ func awsRestjson1_deserializeDocumentDedicatedIp(v **types.DedicatedIp, value in if !ok { return fmt.Errorf("expected PoolName to be of type string, got %T instead", value) } - sv.PoolName = &jtv + sv.PoolName = ptr.String(jtv) } case "WarmupPercentage": @@ -6318,7 +6326,7 @@ func awsRestjson1_deserializeDocumentDedicatedIp(v **types.DedicatedIp, value in return nil } -func awsRestjson1_deserializeDocumentDedicatedIpList(v *[]*types.DedicatedIp, value interface{}) error { +func awsRestjson1_deserializeDocumentDedicatedIpList(v *[]types.DedicatedIp, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6331,18 +6339,20 @@ func awsRestjson1_deserializeDocumentDedicatedIpList(v *[]*types.DedicatedIp, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DedicatedIp + var cv []types.DedicatedIp if *v == nil { - cv = []*types.DedicatedIp{} + cv = []types.DedicatedIp{} } else { cv = *v } for _, value := range shape { - var col *types.DedicatedIp - if err := awsRestjson1_deserializeDocumentDedicatedIp(&col, value); err != nil { + var col types.DedicatedIp + destAddr := &col + if err := awsRestjson1_deserializeDocumentDedicatedIp(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6400,7 +6410,7 @@ func awsRestjson1_deserializeDocumentDeliverabilityTestReport(v **types.Delivera if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.FromEmailAddress = &jtv + sv.FromEmailAddress = ptr.String(jtv) } case "ReportId": @@ -6409,7 +6419,7 @@ func awsRestjson1_deserializeDocumentDeliverabilityTestReport(v **types.Delivera if !ok { return fmt.Errorf("expected ReportId to be of type string, got %T instead", value) } - sv.ReportId = &jtv + sv.ReportId = ptr.String(jtv) } case "ReportName": @@ -6418,7 +6428,7 @@ func awsRestjson1_deserializeDocumentDeliverabilityTestReport(v **types.Delivera if !ok { return fmt.Errorf("expected ReportName to be of type string, got %T instead", value) } - sv.ReportName = &jtv + sv.ReportName = ptr.String(jtv) } case "Subject": @@ -6427,7 +6437,7 @@ func awsRestjson1_deserializeDocumentDeliverabilityTestReport(v **types.Delivera if !ok { return fmt.Errorf("expected DeliverabilityTestSubject to be of type string, got %T instead", value) } - sv.Subject = &jtv + sv.Subject = ptr.String(jtv) } default: @@ -6439,7 +6449,7 @@ func awsRestjson1_deserializeDocumentDeliverabilityTestReport(v **types.Delivera return nil } -func awsRestjson1_deserializeDocumentDeliverabilityTestReports(v *[]*types.DeliverabilityTestReport, value interface{}) error { +func awsRestjson1_deserializeDocumentDeliverabilityTestReports(v *[]types.DeliverabilityTestReport, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6452,18 +6462,20 @@ func awsRestjson1_deserializeDocumentDeliverabilityTestReports(v *[]*types.Deliv return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeliverabilityTestReport + var cv []types.DeliverabilityTestReport if *v == nil { - cv = []*types.DeliverabilityTestReport{} + cv = []types.DeliverabilityTestReport{} } else { cv = *v } for _, value := range shape { - var col *types.DeliverabilityTestReport - if err := awsRestjson1_deserializeDocumentDeliverabilityTestReport(&col, value); err != nil { + var col types.DeliverabilityTestReport + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeliverabilityTestReport(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6499,7 +6511,7 @@ func awsRestjson1_deserializeDocumentDeliveryOptions(v **types.DeliveryOptions, if !ok { return fmt.Errorf("expected PoolName to be of type string, got %T instead", value) } - sv.SendingPoolName = &jtv + sv.SendingPoolName = ptr.String(jtv) } case "TlsPolicy": @@ -6548,7 +6560,7 @@ func awsRestjson1_deserializeDocumentDkimAttributes(v **types.DkimAttributes, va if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.SigningEnabled = &jtv + sv.SigningEnabled = jtv } case "Status": @@ -6574,7 +6586,7 @@ func awsRestjson1_deserializeDocumentDkimAttributes(v **types.DkimAttributes, va return nil } -func awsRestjson1_deserializeDocumentDnsTokenList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDnsTokenList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6587,21 +6599,21 @@ func awsRestjson1_deserializeDocumentDnsTokenList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DnsToken to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6638,7 +6650,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if !ok { return fmt.Errorf("expected CampaignId to be of type string, got %T instead", value) } - sv.CampaignId = &jtv + sv.CampaignId = ptr.String(jtv) } case "DeleteRate": @@ -6651,7 +6663,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if err != nil { return err } - sv.DeleteRate = &f64 + sv.DeleteRate = ptr.Float64(f64) } case "Esps": @@ -6678,7 +6690,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if !ok { return fmt.Errorf("expected Identity to be of type string, got %T instead", value) } - sv.FromAddress = &jtv + sv.FromAddress = ptr.String(jtv) } case "ImageUrl": @@ -6687,7 +6699,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if !ok { return fmt.Errorf("expected ImageUrl to be of type string, got %T instead", value) } - sv.ImageUrl = &jtv + sv.ImageUrl = ptr.String(jtv) } case "InboxCount": @@ -6700,7 +6712,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if err != nil { return err } - sv.InboxCount = &i64 + sv.InboxCount = ptr.Int64(i64) } case "LastSeenDateTime": @@ -6726,7 +6738,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if err != nil { return err } - sv.ProjectedVolume = &i64 + sv.ProjectedVolume = ptr.Int64(i64) } case "ReadDeleteRate": @@ -6739,7 +6751,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if err != nil { return err } - sv.ReadDeleteRate = &f64 + sv.ReadDeleteRate = ptr.Float64(f64) } case "ReadRate": @@ -6752,7 +6764,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if err != nil { return err } - sv.ReadRate = &f64 + sv.ReadRate = ptr.Float64(f64) } case "SendingIps": @@ -6770,7 +6782,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if err != nil { return err } - sv.SpamCount = &i64 + sv.SpamCount = ptr.Int64(i64) } case "Subject": @@ -6779,7 +6791,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if !ok { return fmt.Errorf("expected Subject to be of type string, got %T instead", value) } - sv.Subject = &jtv + sv.Subject = ptr.String(jtv) } default: @@ -6791,7 +6803,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma return nil } -func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaignList(v *[]*types.DomainDeliverabilityCampaign, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaignList(v *[]types.DomainDeliverabilityCampaign, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6804,18 +6816,20 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaignList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainDeliverabilityCampaign + var cv []types.DomainDeliverabilityCampaign if *v == nil { - cv = []*types.DomainDeliverabilityCampaign{} + cv = []types.DomainDeliverabilityCampaign{} } else { cv = *v } for _, value := range shape { - var col *types.DomainDeliverabilityCampaign - if err := awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(&col, value); err != nil { + var col types.DomainDeliverabilityCampaign + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6851,7 +6865,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOption(v **type if !ok { return fmt.Errorf("expected Domain to be of type string, got %T instead", value) } - sv.Domain = &jtv + sv.Domain = ptr.String(jtv) } case "InboxPlacementTrackingOption": @@ -6881,7 +6895,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOption(v **type return nil } -func awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOptions(v *[]*types.DomainDeliverabilityTrackingOption, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOptions(v *[]types.DomainDeliverabilityTrackingOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6894,18 +6908,20 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOptions(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainDeliverabilityTrackingOption + var cv []types.DomainDeliverabilityTrackingOption if *v == nil { - cv = []*types.DomainDeliverabilityTrackingOption{} + cv = []types.DomainDeliverabilityTrackingOption{} } else { cv = *v } for _, value := range shape { - var col *types.DomainDeliverabilityTrackingOption - if err := awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOption(&col, value); err != nil { + var col types.DomainDeliverabilityTrackingOption + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOption(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6945,7 +6961,7 @@ func awsRestjson1_deserializeDocumentDomainIspPlacement(v **types.DomainIspPlace if err != nil { return err } - sv.InboxPercentage = &f64 + sv.InboxPercentage = ptr.Float64(f64) } case "InboxRawCount": @@ -6958,7 +6974,7 @@ func awsRestjson1_deserializeDocumentDomainIspPlacement(v **types.DomainIspPlace if err != nil { return err } - sv.InboxRawCount = &i64 + sv.InboxRawCount = ptr.Int64(i64) } case "IspName": @@ -6967,7 +6983,7 @@ func awsRestjson1_deserializeDocumentDomainIspPlacement(v **types.DomainIspPlace if !ok { return fmt.Errorf("expected IspName to be of type string, got %T instead", value) } - sv.IspName = &jtv + sv.IspName = ptr.String(jtv) } case "SpamPercentage": @@ -6980,7 +6996,7 @@ func awsRestjson1_deserializeDocumentDomainIspPlacement(v **types.DomainIspPlace if err != nil { return err } - sv.SpamPercentage = &f64 + sv.SpamPercentage = ptr.Float64(f64) } case "SpamRawCount": @@ -6993,7 +7009,7 @@ func awsRestjson1_deserializeDocumentDomainIspPlacement(v **types.DomainIspPlace if err != nil { return err } - sv.SpamRawCount = &i64 + sv.SpamRawCount = ptr.Int64(i64) } default: @@ -7005,7 +7021,7 @@ func awsRestjson1_deserializeDocumentDomainIspPlacement(v **types.DomainIspPlace return nil } -func awsRestjson1_deserializeDocumentDomainIspPlacements(v *[]*types.DomainIspPlacement, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainIspPlacements(v *[]types.DomainIspPlacement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7018,18 +7034,20 @@ func awsRestjson1_deserializeDocumentDomainIspPlacements(v *[]*types.DomainIspPl return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainIspPlacement + var cv []types.DomainIspPlacement if *v == nil { - cv = []*types.DomainIspPlacement{} + cv = []types.DomainIspPlacement{} } else { cv = *v } for _, value := range shape { - var col *types.DomainIspPlacement - if err := awsRestjson1_deserializeDocumentDomainIspPlacement(&col, value); err != nil { + var col types.DomainIspPlacement + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainIspPlacement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7037,7 +7055,7 @@ func awsRestjson1_deserializeDocumentDomainIspPlacements(v *[]*types.DomainIspPl return nil } -func awsRestjson1_deserializeDocumentEsps(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentEsps(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7050,21 +7068,21 @@ func awsRestjson1_deserializeDocumentEsps(v *[]*string, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Esp to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7106,7 +7124,7 @@ func awsRestjson1_deserializeDocumentEventDestination(v **types.EventDestination if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "KinesisFirehoseDestination": @@ -7125,7 +7143,7 @@ func awsRestjson1_deserializeDocumentEventDestination(v **types.EventDestination if !ok { return fmt.Errorf("expected EventDestinationName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PinpointDestination": @@ -7147,7 +7165,7 @@ func awsRestjson1_deserializeDocumentEventDestination(v **types.EventDestination return nil } -func awsRestjson1_deserializeDocumentEventDestinations(v *[]*types.EventDestination, value interface{}) error { +func awsRestjson1_deserializeDocumentEventDestinations(v *[]types.EventDestination, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7160,18 +7178,20 @@ func awsRestjson1_deserializeDocumentEventDestinations(v *[]*types.EventDestinat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventDestination + var cv []types.EventDestination if *v == nil { - cv = []*types.EventDestination{} + cv = []types.EventDestination{} } else { cv = *v } for _, value := range shape { - var col *types.EventDestination - if err := awsRestjson1_deserializeDocumentEventDestination(&col, value); err != nil { + var col types.EventDestination + destAddr := &col + if err := awsRestjson1_deserializeDocumentEventDestination(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7243,7 +7263,7 @@ func awsRestjson1_deserializeDocumentIdentityInfo(v **types.IdentityInfo, value if !ok { return fmt.Errorf("expected Identity to be of type string, got %T instead", value) } - sv.IdentityName = &jtv + sv.IdentityName = ptr.String(jtv) } case "IdentityType": @@ -7261,7 +7281,7 @@ func awsRestjson1_deserializeDocumentIdentityInfo(v **types.IdentityInfo, value if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.SendingEnabled = &jtv + sv.SendingEnabled = jtv } default: @@ -7273,7 +7293,7 @@ func awsRestjson1_deserializeDocumentIdentityInfo(v **types.IdentityInfo, value return nil } -func awsRestjson1_deserializeDocumentIdentityInfoList(v *[]*types.IdentityInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentIdentityInfoList(v *[]types.IdentityInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7286,18 +7306,20 @@ func awsRestjson1_deserializeDocumentIdentityInfoList(v *[]*types.IdentityInfo, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IdentityInfo + var cv []types.IdentityInfo if *v == nil { - cv = []*types.IdentityInfo{} + cv = []types.IdentityInfo{} } else { cv = *v } for _, value := range shape { - var col *types.IdentityInfo - if err := awsRestjson1_deserializeDocumentIdentityInfo(&col, value); err != nil { + var col types.IdentityInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentIdentityInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7333,7 +7355,7 @@ func awsRestjson1_deserializeDocumentInboxPlacementTrackingOption(v **types.Inbo if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.Global = &jtv + sv.Global = jtv } case "TrackedIsps": @@ -7350,7 +7372,7 @@ func awsRestjson1_deserializeDocumentInboxPlacementTrackingOption(v **types.Inbo return nil } -func awsRestjson1_deserializeDocumentIpList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentIpList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7363,21 +7385,21 @@ func awsRestjson1_deserializeDocumentIpList(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Ip to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7386,7 +7408,7 @@ func awsRestjson1_deserializeDocumentIpList(v *[]*string, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentIspNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentIspNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7399,21 +7421,21 @@ func awsRestjson1_deserializeDocumentIspNameList(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IspName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7450,7 +7472,7 @@ func awsRestjson1_deserializeDocumentIspPlacement(v **types.IspPlacement, value if !ok { return fmt.Errorf("expected IspName to be of type string, got %T instead", value) } - sv.IspName = &jtv + sv.IspName = ptr.String(jtv) } case "PlacementStatistics": @@ -7467,7 +7489,7 @@ func awsRestjson1_deserializeDocumentIspPlacement(v **types.IspPlacement, value return nil } -func awsRestjson1_deserializeDocumentIspPlacements(v *[]*types.IspPlacement, value interface{}) error { +func awsRestjson1_deserializeDocumentIspPlacements(v *[]types.IspPlacement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7480,18 +7502,20 @@ func awsRestjson1_deserializeDocumentIspPlacements(v *[]*types.IspPlacement, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IspPlacement + var cv []types.IspPlacement if *v == nil { - cv = []*types.IspPlacement{} + cv = []types.IspPlacement{} } else { cv = *v } for _, value := range shape { - var col *types.IspPlacement - if err := awsRestjson1_deserializeDocumentIspPlacement(&col, value); err != nil { + var col types.IspPlacement + destAddr := &col + if err := awsRestjson1_deserializeDocumentIspPlacement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7527,7 +7551,7 @@ func awsRestjson1_deserializeDocumentKinesisFirehoseDestination(v **types.Kinesi if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.DeliveryStreamArn = &jtv + sv.DeliveryStreamArn = ptr.String(jtv) } case "IamRoleArn": @@ -7536,7 +7560,7 @@ func awsRestjson1_deserializeDocumentKinesisFirehoseDestination(v **types.Kinesi if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } default: @@ -7576,7 +7600,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7588,7 +7612,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsRestjson1_deserializeDocumentListOfDedicatedIpPools(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfDedicatedIpPools(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7601,21 +7625,21 @@ func awsRestjson1_deserializeDocumentListOfDedicatedIpPools(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PoolName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7661,7 +7685,7 @@ func awsRestjson1_deserializeDocumentMailFromAttributes(v **types.MailFromAttrib if !ok { return fmt.Errorf("expected MailFromDomainName to be of type string, got %T instead", value) } - sv.MailFromDomain = &jtv + sv.MailFromDomain = ptr.String(jtv) } case "MailFromDomainStatus": @@ -7710,7 +7734,7 @@ func awsRestjson1_deserializeDocumentMailFromDomainNotVerifiedException(v **type if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7750,7 +7774,7 @@ func awsRestjson1_deserializeDocumentMessageRejected(v **types.MessageRejected, if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7790,7 +7814,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7839,7 +7863,7 @@ func awsRestjson1_deserializeDocumentOverallVolume(v **types.OverallVolume, valu if err != nil { return err } - sv.ReadRatePercent = &f64 + sv.ReadRatePercent = ptr.Float64(f64) } case "VolumeStatistics": @@ -7884,7 +7908,7 @@ func awsRestjson1_deserializeDocumentPinpointDestination(v **types.PinpointDesti if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.ApplicationArn = &jtv + sv.ApplicationArn = ptr.String(jtv) } default: @@ -7928,7 +7952,7 @@ func awsRestjson1_deserializeDocumentPlacementStatistics(v **types.PlacementStat if err != nil { return err } - sv.DkimPercentage = &f64 + sv.DkimPercentage = ptr.Float64(f64) } case "InboxPercentage": @@ -7941,7 +7965,7 @@ func awsRestjson1_deserializeDocumentPlacementStatistics(v **types.PlacementStat if err != nil { return err } - sv.InboxPercentage = &f64 + sv.InboxPercentage = ptr.Float64(f64) } case "MissingPercentage": @@ -7954,7 +7978,7 @@ func awsRestjson1_deserializeDocumentPlacementStatistics(v **types.PlacementStat if err != nil { return err } - sv.MissingPercentage = &f64 + sv.MissingPercentage = ptr.Float64(f64) } case "SpamPercentage": @@ -7967,7 +7991,7 @@ func awsRestjson1_deserializeDocumentPlacementStatistics(v **types.PlacementStat if err != nil { return err } - sv.SpamPercentage = &f64 + sv.SpamPercentage = ptr.Float64(f64) } case "SpfPercentage": @@ -7980,7 +8004,7 @@ func awsRestjson1_deserializeDocumentPlacementStatistics(v **types.PlacementStat if err != nil { return err } - sv.SpfPercentage = &f64 + sv.SpfPercentage = ptr.Float64(f64) } default: @@ -8033,7 +8057,7 @@ func awsRestjson1_deserializeDocumentReputationOptions(v **types.ReputationOptio if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.ReputationMetricsEnabled = &jtv + sv.ReputationMetricsEnabled = jtv } default: @@ -8073,7 +8097,7 @@ func awsRestjson1_deserializeDocumentSendingOptions(v **types.SendingOptions, va if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.SendingEnabled = &jtv + sv.SendingEnabled = jtv } default: @@ -8113,7 +8137,7 @@ func awsRestjson1_deserializeDocumentSendingPausedException(v **types.SendingPau if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8157,7 +8181,7 @@ func awsRestjson1_deserializeDocumentSendQuota(v **types.SendQuota, value interf if err != nil { return err } - sv.Max24HourSend = &f64 + sv.Max24HourSend = f64 } case "MaxSendRate": @@ -8170,7 +8194,7 @@ func awsRestjson1_deserializeDocumentSendQuota(v **types.SendQuota, value interf if err != nil { return err } - sv.MaxSendRate = &f64 + sv.MaxSendRate = f64 } case "SentLast24Hours": @@ -8183,7 +8207,7 @@ func awsRestjson1_deserializeDocumentSendQuota(v **types.SendQuota, value interf if err != nil { return err } - sv.SentLast24Hours = &f64 + sv.SentLast24Hours = f64 } default: @@ -8223,7 +8247,7 @@ func awsRestjson1_deserializeDocumentSnsDestination(v **types.SnsDestination, va if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.TopicArn = &jtv + sv.TopicArn = ptr.String(jtv) } default: @@ -8263,7 +8287,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -8272,7 +8296,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8284,7 +8308,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8297,18 +8321,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8344,7 +8370,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8384,7 +8410,7 @@ func awsRestjson1_deserializeDocumentTrackingOptions(v **types.TrackingOptions, if !ok { return fmt.Errorf("expected CustomRedirectDomain to be of type string, got %T instead", value) } - sv.CustomRedirectDomain = &jtv + sv.CustomRedirectDomain = ptr.String(jtv) } default: @@ -8428,7 +8454,7 @@ func awsRestjson1_deserializeDocumentVolumeStatistics(v **types.VolumeStatistics if err != nil { return err } - sv.InboxRawCount = &i64 + sv.InboxRawCount = ptr.Int64(i64) } case "ProjectedInbox": @@ -8441,7 +8467,7 @@ func awsRestjson1_deserializeDocumentVolumeStatistics(v **types.VolumeStatistics if err != nil { return err } - sv.ProjectedInbox = &i64 + sv.ProjectedInbox = ptr.Int64(i64) } case "ProjectedSpam": @@ -8454,7 +8480,7 @@ func awsRestjson1_deserializeDocumentVolumeStatistics(v **types.VolumeStatistics if err != nil { return err } - sv.ProjectedSpam = &i64 + sv.ProjectedSpam = ptr.Int64(i64) } case "SpamRawCount": @@ -8467,7 +8493,7 @@ func awsRestjson1_deserializeDocumentVolumeStatistics(v **types.VolumeStatistics if err != nil { return err } - sv.SpamRawCount = &i64 + sv.SpamRawCount = ptr.Int64(i64) } default: diff --git a/service/pinpointemail/go.mod b/service/pinpointemail/go.mod index b2876ccfac4..d875725ba50 100644 --- a/service/pinpointemail/go.mod +++ b/service/pinpointemail/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/pinpointemail go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/pinpointemail/serializers.go b/service/pinpointemail/serializers.go index 809bbd07dd2..7e847f41f6b 100644 --- a/service/pinpointemail/serializers.go +++ b/service/pinpointemail/serializers.go @@ -185,13 +185,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateConfigurationSetEventDestinationI return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -522,13 +519,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteConfigurationSetInput(v *DeleteCo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -588,25 +582,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteConfigurationSetEventDestinationI return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } } - if v.EventDestinationName == nil { + if v.EventDestinationName == nil || len(*v.EventDestinationName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EventDestinationName must not be empty")} } if v.EventDestinationName != nil { - if len(*v.EventDestinationName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EventDestinationName must not be empty")} - } if err := encoder.SetURI("EventDestinationName").String(*v.EventDestinationName); err != nil { return err } @@ -666,13 +654,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDedicatedIpPoolInput(v *DeleteDed return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PoolName == nil { + if v.PoolName == nil || len(*v.PoolName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PoolName must not be empty")} } if v.PoolName != nil { - if len(*v.PoolName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PoolName must not be empty")} - } if err := encoder.SetURI("PoolName").String(*v.PoolName); err != nil { return err } @@ -732,13 +717,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteEmailIdentityInput(v *DeleteEmail return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } @@ -850,10 +832,7 @@ func awsRestjson1_serializeOpHttpBindingsGetBlacklistReportsInput(v *GetBlacklis if v.BlacklistItemNames != nil { for i := range v.BlacklistItemNames { - if v.BlacklistItemNames[i] == nil { - continue - } - encoder.AddQuery("BlacklistItemNames").String(*v.BlacklistItemNames[i]) + encoder.AddQuery("BlacklistItemNames").String(v.BlacklistItemNames[i]) } } @@ -911,13 +890,10 @@ func awsRestjson1_serializeOpHttpBindingsGetConfigurationSetInput(v *GetConfigur return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -977,13 +953,10 @@ func awsRestjson1_serializeOpHttpBindingsGetConfigurationSetEventDestinationsInp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -1043,13 +1016,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDedicatedIpInput(v *GetDedicatedIpIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Ip == nil { + if v.Ip == nil || len(*v.Ip) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Ip must not be empty")} } if v.Ip != nil { - if len(*v.Ip) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Ip must not be empty")} - } if err := encoder.SetURI("Ip").String(*v.Ip); err != nil { return err } @@ -1225,13 +1195,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDeliverabilityTestReportInput(v *Get return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ReportId == nil { + if v.ReportId == nil || len(*v.ReportId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ReportId must not be empty")} } if v.ReportId != nil { - if len(*v.ReportId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ReportId must not be empty")} - } if err := encoder.SetURI("ReportId").String(*v.ReportId); err != nil { return err } @@ -1291,13 +1258,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDomainDeliverabilityCampaignInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CampaignId == nil { + if v.CampaignId == nil || len(*v.CampaignId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} } if v.CampaignId != nil { - if len(*v.CampaignId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} - } if err := encoder.SetURI("CampaignId").String(*v.CampaignId); err != nil { return err } @@ -1357,13 +1321,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDomainStatisticsReportInput(v *GetDo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Domain == nil { + if v.Domain == nil || len(*v.Domain) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Domain must not be empty")} } if v.Domain != nil { - if len(*v.Domain) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Domain must not be empty")} - } if err := encoder.SetURI("Domain").String(*v.Domain); err != nil { return err } @@ -1431,13 +1392,10 @@ func awsRestjson1_serializeOpHttpBindingsGetEmailIdentityInput(v *GetEmailIdenti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } @@ -1699,13 +1657,10 @@ func awsRestjson1_serializeOpHttpBindingsListDomainDeliverabilityCampaignsInput( encoder.SetQuery("StartDate").String(smithytime.FormatDateTime(*v.StartDate)) } - if v.SubscribedDomain == nil { + if v.SubscribedDomain == nil || len(*v.SubscribedDomain) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SubscribedDomain must not be empty")} } if v.SubscribedDomain != nil { - if len(*v.SubscribedDomain) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SubscribedDomain must not be empty")} - } if err := encoder.SetURI("SubscribedDomain").String(*v.SubscribedDomain); err != nil { return err } @@ -1899,9 +1854,9 @@ func awsRestjson1_serializeOpDocumentPutAccountDedicatedIpWarmupAttributesInput( object := value.Object() defer object.Close() - if v.AutoWarmupEnabled != nil { + if v.AutoWarmupEnabled { ok := object.Key("AutoWarmupEnabled") - ok.Boolean(*v.AutoWarmupEnabled) + ok.Boolean(v.AutoWarmupEnabled) } return nil @@ -1972,9 +1927,9 @@ func awsRestjson1_serializeOpDocumentPutAccountSendingAttributesInput(v *PutAcco object := value.Object() defer object.Close() - if v.SendingEnabled != nil { + if v.SendingEnabled { ok := object.Key("SendingEnabled") - ok.Boolean(*v.SendingEnabled) + ok.Boolean(v.SendingEnabled) } return nil @@ -2042,13 +1997,10 @@ func awsRestjson1_serializeOpHttpBindingsPutConfigurationSetDeliveryOptionsInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -2136,13 +2088,10 @@ func awsRestjson1_serializeOpHttpBindingsPutConfigurationSetReputationOptionsInp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -2155,9 +2104,9 @@ func awsRestjson1_serializeOpDocumentPutConfigurationSetReputationOptionsInput(v object := value.Object() defer object.Close() - if v.ReputationMetricsEnabled != nil { + if v.ReputationMetricsEnabled { ok := object.Key("ReputationMetricsEnabled") - ok.Boolean(*v.ReputationMetricsEnabled) + ok.Boolean(v.ReputationMetricsEnabled) } return nil @@ -2225,13 +2174,10 @@ func awsRestjson1_serializeOpHttpBindingsPutConfigurationSetSendingOptionsInput( return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -2244,9 +2190,9 @@ func awsRestjson1_serializeOpDocumentPutConfigurationSetSendingOptionsInput(v *P object := value.Object() defer object.Close() - if v.SendingEnabled != nil { + if v.SendingEnabled { ok := object.Key("SendingEnabled") - ok.Boolean(*v.SendingEnabled) + ok.Boolean(v.SendingEnabled) } return nil @@ -2314,13 +2260,10 @@ func awsRestjson1_serializeOpHttpBindingsPutConfigurationSetTrackingOptionsInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -2403,13 +2346,10 @@ func awsRestjson1_serializeOpHttpBindingsPutDedicatedIpInPoolInput(v *PutDedicat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Ip == nil { + if v.Ip == nil || len(*v.Ip) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Ip must not be empty")} } if v.Ip != nil { - if len(*v.Ip) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Ip must not be empty")} - } if err := encoder.SetURI("Ip").String(*v.Ip); err != nil { return err } @@ -2492,13 +2432,10 @@ func awsRestjson1_serializeOpHttpBindingsPutDedicatedIpWarmupAttributesInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Ip == nil { + if v.Ip == nil || len(*v.Ip) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Ip must not be empty")} } if v.Ip != nil { - if len(*v.Ip) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Ip must not be empty")} - } if err := encoder.SetURI("Ip").String(*v.Ip); err != nil { return err } @@ -2584,9 +2521,9 @@ func awsRestjson1_serializeOpDocumentPutDeliverabilityDashboardOptionInput(v *Pu object := value.Object() defer object.Close() - if v.DashboardEnabled != nil { + if v.DashboardEnabled { ok := object.Key("DashboardEnabled") - ok.Boolean(*v.DashboardEnabled) + ok.Boolean(v.DashboardEnabled) } if v.SubscribedDomains != nil { @@ -2661,13 +2598,10 @@ func awsRestjson1_serializeOpHttpBindingsPutEmailIdentityDkimAttributesInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } @@ -2680,9 +2614,9 @@ func awsRestjson1_serializeOpDocumentPutEmailIdentityDkimAttributesInput(v *PutE object := value.Object() defer object.Close() - if v.SigningEnabled != nil { + if v.SigningEnabled { ok := object.Key("SigningEnabled") - ok.Boolean(*v.SigningEnabled) + ok.Boolean(v.SigningEnabled) } return nil @@ -2750,13 +2684,10 @@ func awsRestjson1_serializeOpHttpBindingsPutEmailIdentityFeedbackAttributesInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } @@ -2769,9 +2700,9 @@ func awsRestjson1_serializeOpDocumentPutEmailIdentityFeedbackAttributesInput(v * object := value.Object() defer object.Close() - if v.EmailForwardingEnabled != nil { + if v.EmailForwardingEnabled { ok := object.Key("EmailForwardingEnabled") - ok.Boolean(*v.EmailForwardingEnabled) + ok.Boolean(v.EmailForwardingEnabled) } return nil @@ -2839,13 +2770,10 @@ func awsRestjson1_serializeOpHttpBindingsPutEmailIdentityMailFromAttributesInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } @@ -3119,10 +3047,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("TagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("TagKeys").String(v.TagKeys[i]) } } @@ -3191,25 +3116,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateConfigurationSetEventDestinationI return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } } - if v.EventDestinationName == nil { + if v.EventDestinationName == nil || len(*v.EventDestinationName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EventDestinationName must not be empty")} } if v.EventDestinationName != nil { - if len(*v.EventDestinationName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EventDestinationName must not be empty")} - } if err := encoder.SetURI("EventDestinationName").String(*v.EventDestinationName); err != nil { return err } @@ -3289,17 +3208,13 @@ func awsRestjson1_serializeDocumentCloudWatchDimensionConfiguration(v *types.Clo return nil } -func awsRestjson1_serializeDocumentCloudWatchDimensionConfigurations(v []*types.CloudWatchDimensionConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCloudWatchDimensionConfigurations(v []types.CloudWatchDimensionConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCloudWatchDimensionConfiguration(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCloudWatchDimensionConfiguration(&v[i], av); err != nil { return err } } @@ -3392,34 +3307,26 @@ func awsRestjson1_serializeDocumentDomainDeliverabilityTrackingOption(v *types.D return nil } -func awsRestjson1_serializeDocumentDomainDeliverabilityTrackingOptions(v []*types.DomainDeliverabilityTrackingOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDomainDeliverabilityTrackingOptions(v []types.DomainDeliverabilityTrackingOption, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDomainDeliverabilityTrackingOption(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDomainDeliverabilityTrackingOption(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentEmailAddressList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEmailAddressList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3463,9 +3370,9 @@ func awsRestjson1_serializeDocumentEventDestinationDefinition(v *types.EventDest } } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.KinesisFirehoseDestination != nil { @@ -3514,9 +3421,9 @@ func awsRestjson1_serializeDocumentInboxPlacementTrackingOption(v *types.InboxPl object := value.Object() defer object.Close() - if v.Global != nil { + if v.Global { ok := object.Key("Global") - ok.Boolean(*v.Global) + ok.Boolean(v.Global) } if v.TrackedIsps != nil { @@ -3529,17 +3436,13 @@ func awsRestjson1_serializeDocumentInboxPlacementTrackingOption(v *types.InboxPl return nil } -func awsRestjson1_serializeDocumentIspNameList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIspNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3599,17 +3502,13 @@ func awsRestjson1_serializeDocumentMessageTag(v *types.MessageTag, value smithyj return nil } -func awsRestjson1_serializeDocumentMessageTagList(v []*types.MessageTag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMessageTagList(v []types.MessageTag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMessageTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMessageTag(&v[i], av); err != nil { return err } } @@ -3649,9 +3548,9 @@ func awsRestjson1_serializeDocumentReputationOptions(v *types.ReputationOptions, ok.Double(smithytime.FormatEpochSeconds(*v.LastFreshStart)) } - if v.ReputationMetricsEnabled != nil { + if v.ReputationMetricsEnabled { ok := object.Key("ReputationMetricsEnabled") - ok.Boolean(*v.ReputationMetricsEnabled) + ok.Boolean(v.ReputationMetricsEnabled) } return nil @@ -3661,9 +3560,9 @@ func awsRestjson1_serializeDocumentSendingOptions(v *types.SendingOptions, value object := value.Object() defer object.Close() - if v.SendingEnabled != nil { + if v.SendingEnabled { ok := object.Key("SendingEnabled") - ok.Boolean(*v.SendingEnabled) + ok.Boolean(v.SendingEnabled) } return nil @@ -3698,17 +3597,13 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/pinpointemail/types/types.go b/service/pinpointemail/types/types.go index f8dafbbb853..d00302576a3 100644 --- a/service/pinpointemail/types/types.go +++ b/service/pinpointemail/types/types.go @@ -44,7 +44,7 @@ type CloudWatchDestination struct { // to Amazon CloudWatch. // // This member is required. - DimensionConfigurations []*CloudWatchDimensionConfiguration + DimensionConfigurations []CloudWatchDimensionConfiguration } // An object that defines the dimension configuration to use when you send Amazon @@ -109,7 +109,7 @@ type DailyVolume struct { // An object that contains inbox placement metrics for a specified day in the // analysis period, broken out by the recipient's email provider. - DomainIspPlacements []*DomainIspPlacement + DomainIspPlacements []DomainIspPlacement // The date that the DailyVolume metrics apply to, in Unix time. StartDate *time.Time @@ -198,14 +198,14 @@ type Destination struct { // An array that contains the email addresses of the "BCC" (blind carbon copy) // recipients for the email. - BccAddresses []*string + BccAddresses []string // An array that contains the email addresses of the "CC" (carbon copy) recipients // for the email. - CcAddresses []*string + CcAddresses []string // An array that contains the email addresses of the "To" recipients for the email. - ToAddresses []*string + ToAddresses []string } // An object that contains information about the DKIM configuration for an email @@ -215,7 +215,7 @@ type DkimAttributes struct { // If the value is true, then the messages that Amazon Pinpoint sends from the // identity are DKIM-signed. If the value is false, then the messages that Amazon // Pinpoint sends from the identity aren't DKIM-signed. - SigningEnabled *bool + SigningEnabled bool // Describes whether or not Amazon Pinpoint has successfully located the DKIM // records in the DNS records for the domain. The status can be one of the @@ -246,7 +246,7 @@ type DkimAttributes struct { // records in the DNS configuration for your domain, the DKIM authentication // process is complete. Amazon Pinpoint usually detects these records within about // 72 hours of adding them to the DNS configuration for your domain. - Tokens []*string + Tokens []string } // An object that contains the deliverability data for a specific campaign. This @@ -267,7 +267,7 @@ type DomainDeliverabilityCampaign struct { DeleteRate *float64 // The major email providers who handled the email message. - Esps []*string + Esps []string // The first time, in Unix time format, when the email message was delivered to any // recipient's inbox. This value can help you determine how long it took for a @@ -302,7 +302,7 @@ type DomainDeliverabilityCampaign struct { ReadRate *float64 // The IP addresses that were used to send the email message. - SendingIps []*string + SendingIps []string // The number of email messages that were delivered to recipients' spam or junk // mail folders. @@ -426,7 +426,7 @@ type EventDestination struct { // EventDestinationDefinition. If false, the event destination is disabled. When // the event destination is disabled, events aren't sent to the specified // destinations. - Enabled *bool + Enabled bool // An object that defines an Amazon Kinesis Data Firehose destination for email // events. You can use Amazon Kinesis Data Firehose to stream data to other @@ -459,7 +459,7 @@ type EventDestinationDefinition struct { // EventDestinationDefinition. If false, the event destination is disabled. When // the event destination is disabled, events aren't sent to the specified // destinations. - Enabled *bool + Enabled bool // An object that defines an Amazon Kinesis Data Firehose destination for email // events. You can use Amazon Kinesis Data Firehose to stream data to other @@ -502,7 +502,7 @@ type IdentityInfo struct { // Before you can send email from an identity, you have to demostrate that you own // the identity, and that you authorize Amazon Pinpoint to send email from that // identity. - SendingEnabled *bool + SendingEnabled bool } // An object that contains information about the inbox placement data settings for @@ -512,11 +512,11 @@ type IdentityInfo struct { type InboxPlacementTrackingOption struct { // Specifies whether inbox placement data is being tracked for the domain. - Global *bool + Global bool // An array of strings, one for each major email provider that the inbox placement // data applies to. - TrackedIsps []*string + TrackedIsps []string } // An object that describes how email sent during the predictive inbox placement @@ -639,7 +639,7 @@ type OverallVolume struct { // An object that contains inbox and junk mail placement metrics for individual // email providers. - DomainIspPlacements []*DomainIspPlacement + DomainIspPlacements []DomainIspPlacement // The percentage of emails that were sent from the domain that were read by their // recipients. @@ -727,7 +727,7 @@ type ReputationOptions struct { // If true, tracking of reputation metrics is enabled for the configuration set. If // false, tracking of reputation metrics is disabled for the configuration set. - ReputationMetricsEnabled *bool + ReputationMetricsEnabled bool } // Used to enable or disable email sending for messages that use this configuration @@ -736,7 +736,7 @@ type SendingOptions struct { // If true, email sending is enabled for the configuration set. If false, email // sending is disabled for the configuration set. - SendingEnabled *bool + SendingEnabled bool } // An object that contains information about the per-day and per-second sending @@ -745,16 +745,16 @@ type SendQuota struct { // The maximum number of emails that you can send in the current AWS Region over a // 24-hour period. This value is also called your sending quota. - Max24HourSend *float64 + Max24HourSend float64 // The maximum number of emails that you can send per second in the current AWS // Region. This value is also called your maximum sending rate or your maximum TPS // (transactions per second) rate. - MaxSendRate *float64 + MaxSendRate float64 // The number of emails sent from your Amazon Pinpoint account in the current AWS // Region over the past 24 hours. - SentLast24Hours *float64 + SentLast24Hours float64 } // An object that defines an Amazon SNS destination for email events. You can use diff --git a/service/pinpointemail/validators.go b/service/pinpointemail/validators.go index ed9a52e5085..1d0c8a250fe 100644 --- a/service/pinpointemail/validators.go +++ b/service/pinpointemail/validators.go @@ -864,13 +864,13 @@ func validateCloudWatchDimensionConfiguration(v *types.CloudWatchDimensionConfig } } -func validateCloudWatchDimensionConfigurations(v []*types.CloudWatchDimensionConfiguration) error { +func validateCloudWatchDimensionConfigurations(v []types.CloudWatchDimensionConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CloudWatchDimensionConfigurations"} for i := range v { - if err := validateCloudWatchDimensionConfiguration(v[i]); err != nil { + if err := validateCloudWatchDimensionConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1007,13 +1007,13 @@ func validateMessageTag(v *types.MessageTag) error { } } -func validateMessageTagList(v []*types.MessageTag) error { +func validateMessageTagList(v []types.MessageTag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MessageTagList"} for i := range v { - if err := validateMessageTag(v[i]); err != nil { + if err := validateMessageTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1072,13 +1072,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1547,9 +1547,6 @@ func validateOpPutDeliverabilityDashboardOptionInput(v *PutDeliverabilityDashboa return nil } invalidParams := smithy.InvalidParamsError{Context: "PutDeliverabilityDashboardOptionInput"} - if v.DashboardEnabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("DashboardEnabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/pinpointsmsvoice/api_op_GetConfigurationSetEventDestinations.go b/service/pinpointsmsvoice/api_op_GetConfigurationSetEventDestinations.go index 8ebc9a0bca0..b7391570fd8 100644 --- a/service/pinpointsmsvoice/api_op_GetConfigurationSetEventDestinations.go +++ b/service/pinpointsmsvoice/api_op_GetConfigurationSetEventDestinations.go @@ -42,7 +42,7 @@ type GetConfigurationSetEventDestinationsOutput struct { // An array of EventDestination objects. Each EventDestination object includes ARNs // and other information that define an event destination. - EventDestinations []*types.EventDestination + EventDestinations []types.EventDestination // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/pinpointsmsvoice/api_op_ListConfigurationSets.go b/service/pinpointsmsvoice/api_op_ListConfigurationSets.go index 9f8ba448a60..80a4e70b900 100644 --- a/service/pinpointsmsvoice/api_op_ListConfigurationSets.go +++ b/service/pinpointsmsvoice/api_op_ListConfigurationSets.go @@ -43,7 +43,7 @@ type ListConfigurationSetsOutput struct { // An object that contains a list of configuration sets for your account in the // current region. - ConfigurationSets []*string + ConfigurationSets []string // A token returned from a previous call to ListConfigurationSets to indicate the // position in the list of configuration sets. diff --git a/service/pinpointsmsvoice/deserializers.go b/service/pinpointsmsvoice/deserializers.go index 3d06803078f..7fcb4bc5d63 100644 --- a/service/pinpointsmsvoice/deserializers.go +++ b/service/pinpointsmsvoice/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -700,7 +701,7 @@ func awsRestjson1_deserializeOpDocumentListConfigurationSetsOutput(v **ListConfi if !ok { return fmt.Errorf("expected NextTokenString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -857,7 +858,7 @@ func awsRestjson1_deserializeOpDocumentSendVoiceMessageOutput(v **SendVoiceMessa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MessageId = &jtv + sv.MessageId = ptr.String(jtv) } default: @@ -1205,7 +1206,7 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1245,7 +1246,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1285,7 +1286,7 @@ func awsRestjson1_deserializeDocumentCloudWatchLogsDestination(v **types.CloudWa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } case "LogGroupArn": @@ -1294,7 +1295,7 @@ func awsRestjson1_deserializeDocumentCloudWatchLogsDestination(v **types.CloudWa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LogGroupArn = &jtv + sv.LogGroupArn = ptr.String(jtv) } default: @@ -1306,7 +1307,7 @@ func awsRestjson1_deserializeDocumentCloudWatchLogsDestination(v **types.CloudWa return nil } -func awsRestjson1_deserializeDocumentConfigurationSets(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentConfigurationSets(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1319,21 +1320,21 @@ func awsRestjson1_deserializeDocumentConfigurationSets(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected WordCharactersWithDelimiters to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1375,7 +1376,7 @@ func awsRestjson1_deserializeDocumentEventDestination(v **types.EventDestination if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "KinesisFirehoseDestination": @@ -1394,7 +1395,7 @@ func awsRestjson1_deserializeDocumentEventDestination(v **types.EventDestination if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SnsDestination": @@ -1411,7 +1412,7 @@ func awsRestjson1_deserializeDocumentEventDestination(v **types.EventDestination return nil } -func awsRestjson1_deserializeDocumentEventDestinations(v *[]*types.EventDestination, value interface{}) error { +func awsRestjson1_deserializeDocumentEventDestinations(v *[]types.EventDestination, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1424,18 +1425,20 @@ func awsRestjson1_deserializeDocumentEventDestinations(v *[]*types.EventDestinat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventDestination + var cv []types.EventDestination if *v == nil { - cv = []*types.EventDestination{} + cv = []types.EventDestination{} } else { cv = *v } for _, value := range shape { - var col *types.EventDestination - if err := awsRestjson1_deserializeDocumentEventDestination(&col, value); err != nil { + var col types.EventDestination + destAddr := &col + if err := awsRestjson1_deserializeDocumentEventDestination(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1507,7 +1510,7 @@ func awsRestjson1_deserializeDocumentInternalServiceErrorException(v **types.Int if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1547,7 +1550,7 @@ func awsRestjson1_deserializeDocumentKinesisFirehoseDestination(v **types.Kinesi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DeliveryStreamArn = &jtv + sv.DeliveryStreamArn = ptr.String(jtv) } case "IamRoleArn": @@ -1556,7 +1559,7 @@ func awsRestjson1_deserializeDocumentKinesisFirehoseDestination(v **types.Kinesi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } default: @@ -1596,7 +1599,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1636,7 +1639,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1676,7 +1679,7 @@ func awsRestjson1_deserializeDocumentSnsDestination(v **types.SnsDestination, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TopicArn = &jtv + sv.TopicArn = ptr.String(jtv) } default: @@ -1716,7 +1719,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/pinpointsmsvoice/go.mod b/service/pinpointsmsvoice/go.mod index 9b1d23381c9..d651244742f 100644 --- a/service/pinpointsmsvoice/go.mod +++ b/service/pinpointsmsvoice/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/pinpointsmsvoice go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/pinpointsmsvoice/serializers.go b/service/pinpointsmsvoice/serializers.go index b7b29e4c219..0dc05091ca8 100644 --- a/service/pinpointsmsvoice/serializers.go +++ b/service/pinpointsmsvoice/serializers.go @@ -149,13 +149,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateConfigurationSetEventDestinationI return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -234,13 +231,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteConfigurationSetInput(v *DeleteCo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -300,25 +294,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteConfigurationSetEventDestinationI return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } } - if v.EventDestinationName == nil { + if v.EventDestinationName == nil || len(*v.EventDestinationName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EventDestinationName must not be empty")} } if v.EventDestinationName != nil { - if len(*v.EventDestinationName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EventDestinationName must not be empty")} - } if err := encoder.SetURI("EventDestinationName").String(*v.EventDestinationName); err != nil { return err } @@ -378,13 +366,10 @@ func awsRestjson1_serializeOpHttpBindingsGetConfigurationSetEventDestinationsInp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -612,25 +597,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateConfigurationSetEventDestinationI return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } } - if v.EventDestinationName == nil { + if v.EventDestinationName == nil || len(*v.EventDestinationName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EventDestinationName must not be empty")} } if v.EventDestinationName != nil { - if len(*v.EventDestinationName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EventDestinationName must not be empty")} - } if err := encoder.SetURI("EventDestinationName").String(*v.EventDestinationName); err != nil { return err } @@ -693,9 +672,9 @@ func awsRestjson1_serializeDocumentEventDestinationDefinition(v *types.EventDest } } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.KinesisFirehoseDestination != nil { diff --git a/service/pinpointsmsvoice/types/types.go b/service/pinpointsmsvoice/types/types.go index a53ca313507..345cad9bc6f 100644 --- a/service/pinpointsmsvoice/types/types.go +++ b/service/pinpointsmsvoice/types/types.go @@ -33,7 +33,7 @@ type EventDestination struct { // Indicates whether or not the event destination is enabled. If the event // destination is enabled, then Amazon Pinpoint sends response data to the // specified event destination. - Enabled *bool + Enabled bool // An object that contains information about an event destination that sends data // to Amazon Kinesis Data Firehose. @@ -61,7 +61,7 @@ type EventDestinationDefinition struct { // Indicates whether or not the event destination is enabled. If the event // destination is enabled, then Amazon Pinpoint sends response data to the // specified event destination. - Enabled *bool + Enabled bool // An object that contains information about an event destination that sends data // to Amazon Kinesis Data Firehose. diff --git a/service/polly/api_op_DescribeVoices.go b/service/polly/api_op_DescribeVoices.go index 86c3be62e57..bce24104c30 100644 --- a/service/polly/api_op_DescribeVoices.go +++ b/service/polly/api_op_DescribeVoices.go @@ -49,7 +49,7 @@ type DescribeVoicesInput struct { // languages that use US English (es-US), and there is an Italian voice that speaks // both Italian (it-IT) and US English, that voice will be included if you specify // yes but not if you specify no. - IncludeAdditionalLanguageCodes *bool + IncludeAdditionalLanguageCodes bool // The language identification tag (ISO 639 code for the language name-ISO 3166 // country code) for filtering the list of voices returned. If you don't specify @@ -68,7 +68,7 @@ type DescribeVoicesOutput struct { NextToken *string // A list of voices with their properties. - Voices []*types.Voice + Voices []types.Voice // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/polly/api_op_ListLexicons.go b/service/polly/api_op_ListLexicons.go index abdd6fe2d90..a9fb8de16c5 100644 --- a/service/polly/api_op_ListLexicons.go +++ b/service/polly/api_op_ListLexicons.go @@ -39,7 +39,7 @@ type ListLexiconsInput struct { type ListLexiconsOutput struct { // A list of lexicon names and attributes. - Lexicons []*types.LexiconDescription + Lexicons []types.LexiconDescription // The pagination token to use in the next request to continue the listing of // lexicons. NextToken is returned only if the response is truncated. diff --git a/service/polly/api_op_ListSpeechSynthesisTasks.go b/service/polly/api_op_ListSpeechSynthesisTasks.go index d47b21fd654..775d8af7599 100644 --- a/service/polly/api_op_ListSpeechSynthesisTasks.go +++ b/service/polly/api_op_ListSpeechSynthesisTasks.go @@ -51,7 +51,7 @@ type ListSpeechSynthesisTasksOutput struct { // List of SynthesisTask objects that provides information from the specified task // in the list request, including output format, creation time, task status, and so // on. - SynthesisTasks []*types.SynthesisTask + SynthesisTasks []types.SynthesisTask // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/polly/api_op_StartSpeechSynthesisTask.go b/service/polly/api_op_StartSpeechSynthesisTask.go index 5ad199d1e9d..33778c9c000 100644 --- a/service/polly/api_op_StartSpeechSynthesisTask.go +++ b/service/polly/api_op_StartSpeechSynthesisTask.go @@ -76,7 +76,7 @@ type StartSpeechSynthesisTaskInput struct { // List of one or more pronunciation lexicon names you want the service to apply // during synthesis. Lexicons are applied only if the language of the lexicon is // the same as the language of the voice. - LexiconNames []*string + LexiconNames []string // The Amazon S3 key prefix for the output speech file. OutputS3KeyPrefix *string diff --git a/service/polly/api_op_SynthesizeSpeech.go b/service/polly/api_op_SynthesizeSpeech.go index e882766fcbb..5f80d09de82 100644 --- a/service/polly/api_op_SynthesizeSpeech.go +++ b/service/polly/api_op_SynthesizeSpeech.go @@ -76,7 +76,7 @@ type SynthesizeSpeechInput struct { // the same as the language of the voice. For information about storing lexicons, // see PutLexicon // (https://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html). - LexiconNames []*string + LexiconNames []string // The audio frequency specified in Hz. The valid values for mp3 and ogg_vorbis are // "8000", "16000", "22050", and "24000". The default value for standard voices is @@ -116,7 +116,7 @@ type SynthesizeSpeechOutput struct { ContentType *string // Number of characters synthesized. - RequestCharacters *int32 + RequestCharacters int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/polly/deserializers.go b/service/polly/deserializers.go index 3ee60112f3a..fef281abfda 100644 --- a/service/polly/deserializers.go +++ b/service/polly/deserializers.go @@ -248,7 +248,7 @@ func awsRestjson1_deserializeOpDocumentDescribeVoicesOutput(v **DescribeVoicesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Voices": @@ -720,7 +720,7 @@ func awsRestjson1_deserializeOpDocumentListLexiconsOutput(v **ListLexiconsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -874,7 +874,7 @@ func awsRestjson1_deserializeOpDocumentListSpeechSynthesisTasksOutput(v **ListSp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SynthesisTasks": @@ -1305,7 +1305,7 @@ func awsRestjson1_deserializeOpHttpBindingsSynthesizeSpeechOutput(v *SynthesizeS if err != nil { return err } - v.RequestCharacters = ptr.Int32(int32(vv)) + v.RequestCharacters = int32(vv) } return nil @@ -2139,7 +2139,7 @@ func awsRestjson1_deserializeDocumentEngineNotSupportedException(v **types.Engin if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2179,7 +2179,7 @@ func awsRestjson1_deserializeDocumentInvalidLexiconException(v **types.InvalidLe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2219,7 +2219,7 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2259,7 +2259,7 @@ func awsRestjson1_deserializeDocumentInvalidS3BucketException(v **types.InvalidS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2299,7 +2299,7 @@ func awsRestjson1_deserializeDocumentInvalidS3KeyException(v **types.InvalidS3Ke if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2339,7 +2339,7 @@ func awsRestjson1_deserializeDocumentInvalidSampleRateException(v **types.Invali if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2379,7 +2379,7 @@ func awsRestjson1_deserializeDocumentInvalidSnsTopicArnException(v **types.Inval if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2419,7 +2419,7 @@ func awsRestjson1_deserializeDocumentInvalidSsmlException(v **types.InvalidSsmlE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2459,7 +2459,7 @@ func awsRestjson1_deserializeDocumentInvalidTaskIdException(v **types.InvalidTas if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2535,7 +2535,7 @@ func awsRestjson1_deserializeDocumentLanguageNotSupportedException(v **types.Lan if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2575,7 +2575,7 @@ func awsRestjson1_deserializeDocumentLexicon(v **types.Lexicon, value interface{ if !ok { return fmt.Errorf("expected LexiconContent to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "Name": @@ -2584,7 +2584,7 @@ func awsRestjson1_deserializeDocumentLexicon(v **types.Lexicon, value interface{ if !ok { return fmt.Errorf("expected LexiconName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -2624,7 +2624,7 @@ func awsRestjson1_deserializeDocumentLexiconAttributes(v **types.LexiconAttribut if !ok { return fmt.Errorf("expected Alphabet to be of type string, got %T instead", value) } - sv.Alphabet = &jtv + sv.Alphabet = ptr.String(jtv) } case "LanguageCode": @@ -2659,7 +2659,7 @@ func awsRestjson1_deserializeDocumentLexiconAttributes(v **types.LexiconAttribut if err != nil { return err } - sv.LexemesCount = ptr.Int32(int32(i64)) + sv.LexemesCount = int32(i64) } case "LexiconArn": @@ -2668,7 +2668,7 @@ func awsRestjson1_deserializeDocumentLexiconAttributes(v **types.LexiconAttribut if !ok { return fmt.Errorf("expected LexiconArn to be of type string, got %T instead", value) } - sv.LexiconArn = &jtv + sv.LexiconArn = ptr.String(jtv) } case "Size": @@ -2681,7 +2681,7 @@ func awsRestjson1_deserializeDocumentLexiconAttributes(v **types.LexiconAttribut if err != nil { return err } - sv.Size = ptr.Int32(int32(i64)) + sv.Size = int32(i64) } default: @@ -2726,7 +2726,7 @@ func awsRestjson1_deserializeDocumentLexiconDescription(v **types.LexiconDescrip if !ok { return fmt.Errorf("expected LexiconName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -2738,7 +2738,7 @@ func awsRestjson1_deserializeDocumentLexiconDescription(v **types.LexiconDescrip return nil } -func awsRestjson1_deserializeDocumentLexiconDescriptionList(v *[]*types.LexiconDescription, value interface{}) error { +func awsRestjson1_deserializeDocumentLexiconDescriptionList(v *[]types.LexiconDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2751,18 +2751,20 @@ func awsRestjson1_deserializeDocumentLexiconDescriptionList(v *[]*types.LexiconD return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LexiconDescription + var cv []types.LexiconDescription if *v == nil { - cv = []*types.LexiconDescription{} + cv = []types.LexiconDescription{} } else { cv = *v } for _, value := range shape { - var col *types.LexiconDescription - if err := awsRestjson1_deserializeDocumentLexiconDescription(&col, value); err != nil { + var col types.LexiconDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentLexiconDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2770,7 +2772,7 @@ func awsRestjson1_deserializeDocumentLexiconDescriptionList(v *[]*types.LexiconD return nil } -func awsRestjson1_deserializeDocumentLexiconNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentLexiconNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2783,21 +2785,21 @@ func awsRestjson1_deserializeDocumentLexiconNameList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected LexiconName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2834,7 +2836,7 @@ func awsRestjson1_deserializeDocumentLexiconNotFoundException(v **types.LexiconN if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2874,7 +2876,7 @@ func awsRestjson1_deserializeDocumentLexiconSizeExceededException(v **types.Lexi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2914,7 +2916,7 @@ func awsRestjson1_deserializeDocumentMarksNotSupportedForFormatException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2954,7 +2956,7 @@ func awsRestjson1_deserializeDocumentMaxLexemeLengthExceededException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2994,7 +2996,7 @@ func awsRestjson1_deserializeDocumentMaxLexiconsNumberExceededException(v **type if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3034,7 +3036,7 @@ func awsRestjson1_deserializeDocumentServiceFailureException(v **types.ServiceFa if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3110,7 +3112,7 @@ func awsRestjson1_deserializeDocumentSsmlMarksNotSupportedForTextTypeException(v if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3195,7 +3197,7 @@ func awsRestjson1_deserializeDocumentSynthesisTask(v **types.SynthesisTask, valu if !ok { return fmt.Errorf("expected OutputUri to be of type string, got %T instead", value) } - sv.OutputUri = &jtv + sv.OutputUri = ptr.String(jtv) } case "RequestCharacters": @@ -3208,7 +3210,7 @@ func awsRestjson1_deserializeDocumentSynthesisTask(v **types.SynthesisTask, valu if err != nil { return err } - sv.RequestCharacters = ptr.Int32(int32(i64)) + sv.RequestCharacters = int32(i64) } case "SampleRate": @@ -3217,7 +3219,7 @@ func awsRestjson1_deserializeDocumentSynthesisTask(v **types.SynthesisTask, valu if !ok { return fmt.Errorf("expected SampleRate to be of type string, got %T instead", value) } - sv.SampleRate = &jtv + sv.SampleRate = ptr.String(jtv) } case "SnsTopicArn": @@ -3226,7 +3228,7 @@ func awsRestjson1_deserializeDocumentSynthesisTask(v **types.SynthesisTask, valu if !ok { return fmt.Errorf("expected SnsTopicArn to be of type string, got %T instead", value) } - sv.SnsTopicArn = &jtv + sv.SnsTopicArn = ptr.String(jtv) } case "SpeechMarkTypes": @@ -3240,7 +3242,7 @@ func awsRestjson1_deserializeDocumentSynthesisTask(v **types.SynthesisTask, valu if !ok { return fmt.Errorf("expected TaskId to be of type string, got %T instead", value) } - sv.TaskId = &jtv + sv.TaskId = ptr.String(jtv) } case "TaskStatus": @@ -3258,7 +3260,7 @@ func awsRestjson1_deserializeDocumentSynthesisTask(v **types.SynthesisTask, valu if !ok { return fmt.Errorf("expected TaskStatusReason to be of type string, got %T instead", value) } - sv.TaskStatusReason = &jtv + sv.TaskStatusReason = ptr.String(jtv) } case "TextType": @@ -3316,7 +3318,7 @@ func awsRestjson1_deserializeDocumentSynthesisTaskNotFoundException(v **types.Sy if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3328,7 +3330,7 @@ func awsRestjson1_deserializeDocumentSynthesisTaskNotFoundException(v **types.Sy return nil } -func awsRestjson1_deserializeDocumentSynthesisTasks(v *[]*types.SynthesisTask, value interface{}) error { +func awsRestjson1_deserializeDocumentSynthesisTasks(v *[]types.SynthesisTask, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3341,18 +3343,20 @@ func awsRestjson1_deserializeDocumentSynthesisTasks(v *[]*types.SynthesisTask, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SynthesisTask + var cv []types.SynthesisTask if *v == nil { - cv = []*types.SynthesisTask{} + cv = []types.SynthesisTask{} } else { cv = *v } for _, value := range shape { - var col *types.SynthesisTask - if err := awsRestjson1_deserializeDocumentSynthesisTask(&col, value); err != nil { + var col types.SynthesisTask + destAddr := &col + if err := awsRestjson1_deserializeDocumentSynthesisTask(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3388,7 +3392,7 @@ func awsRestjson1_deserializeDocumentTextLengthExceededException(v **types.TextL if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3428,7 +3432,7 @@ func awsRestjson1_deserializeDocumentUnsupportedPlsAlphabetException(v **types.U if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3468,7 +3472,7 @@ func awsRestjson1_deserializeDocumentUnsupportedPlsLanguageException(v **types.U if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3540,7 +3544,7 @@ func awsRestjson1_deserializeDocumentVoice(v **types.Voice, value interface{}) e if !ok { return fmt.Errorf("expected LanguageName to be of type string, got %T instead", value) } - sv.LanguageName = &jtv + sv.LanguageName = ptr.String(jtv) } case "Name": @@ -3549,7 +3553,7 @@ func awsRestjson1_deserializeDocumentVoice(v **types.Voice, value interface{}) e if !ok { return fmt.Errorf("expected VoiceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SupportedEngines": @@ -3566,7 +3570,7 @@ func awsRestjson1_deserializeDocumentVoice(v **types.Voice, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentVoiceList(v *[]*types.Voice, value interface{}) error { +func awsRestjson1_deserializeDocumentVoiceList(v *[]types.Voice, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3579,18 +3583,20 @@ func awsRestjson1_deserializeDocumentVoiceList(v *[]*types.Voice, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Voice + var cv []types.Voice if *v == nil { - cv = []*types.Voice{} + cv = []types.Voice{} } else { cv = *v } for _, value := range shape { - var col *types.Voice - if err := awsRestjson1_deserializeDocumentVoice(&col, value); err != nil { + var col types.Voice + destAddr := &col + if err := awsRestjson1_deserializeDocumentVoice(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/polly/go.mod b/service/polly/go.mod index e114a5b2404..42544c3ffc8 100644 --- a/service/polly/go.mod +++ b/service/polly/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/polly go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/polly/serializers.go b/service/polly/serializers.go index 8f5055f01fd..8d13df63e03 100644 --- a/service/polly/serializers.go +++ b/service/polly/serializers.go @@ -65,13 +65,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteLexiconInput(v *DeleteLexiconInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -135,8 +132,8 @@ func awsRestjson1_serializeOpHttpBindingsDescribeVoicesInput(v *DescribeVoicesIn encoder.SetQuery("Engine").String(string(v.Engine)) } - if v.IncludeAdditionalLanguageCodes != nil { - encoder.SetQuery("IncludeAdditionalLanguageCodes").Boolean(*v.IncludeAdditionalLanguageCodes) + if v.IncludeAdditionalLanguageCodes { + encoder.SetQuery("IncludeAdditionalLanguageCodes").Boolean(v.IncludeAdditionalLanguageCodes) } if len(v.LanguageCode) > 0 { @@ -201,13 +198,10 @@ func awsRestjson1_serializeOpHttpBindingsGetLexiconInput(v *GetLexiconInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -267,13 +261,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSpeechSynthesisTaskInput(v *GetSpeec return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TaskId == nil { + if v.TaskId == nil || len(*v.TaskId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TaskId must not be empty")} } if v.TaskId != nil { - if len(*v.TaskId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TaskId must not be empty")} - } if err := encoder.SetURI("TaskId").String(*v.TaskId); err != nil { return err } @@ -468,13 +459,10 @@ func awsRestjson1_serializeOpHttpBindingsPutLexiconInput(v *PutLexiconInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -744,17 +732,13 @@ func awsRestjson1_serializeOpDocumentSynthesizeSpeechInput(v *SynthesizeSpeechIn return nil } -func awsRestjson1_serializeDocumentLexiconNameList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLexiconNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/polly/types/types.go b/service/polly/types/types.go index d18e19218eb..dde38ef6df5 100644 --- a/service/polly/types/types.go +++ b/service/polly/types/types.go @@ -36,13 +36,13 @@ type LexiconAttributes struct { LastModified *time.Time // Number of lexemes in the lexicon. - LexemesCount *int32 + LexemesCount int32 // Amazon Resource Name (ARN) of the lexicon. LexiconArn *string // Total size of the lexicon, in characters. - Size *int32 + Size int32 } // Describes the content of the lexicon. @@ -79,7 +79,7 @@ type SynthesisTask struct { // List of one or more pronunciation lexicon names you want the service to apply // during synthesis. Lexicons are applied only if the language of the lexicon is // the same as the language of the voice. - LexiconNames []*string + LexiconNames []string // The format in which the returned output will be encoded. For audio stream, this // will be mp3, ogg_vorbis, or pcm. For speech marks, this will be json. @@ -89,7 +89,7 @@ type SynthesisTask struct { OutputUri *string // Number of billable characters synthesized. - RequestCharacters *int32 + RequestCharacters int32 // The audio frequency specified in Hz. The valid values for mp3 and ogg_vorbis are // "8000", "16000", "22050", and "24000". The default value for standard voices is diff --git a/service/pricing/api_op_DescribeServices.go b/service/pricing/api_op_DescribeServices.go index a5f2e47ef25..8436e4e205b 100644 --- a/service/pricing/api_op_DescribeServices.go +++ b/service/pricing/api_op_DescribeServices.go @@ -38,7 +38,7 @@ type DescribeServicesInput struct { FormatVersion *string // The maximum number of results that you want returned in the response. - MaxResults *int32 + MaxResults int32 // The pagination token that indicates the next set of results that you want to // retrieve. @@ -59,7 +59,7 @@ type DescribeServicesOutput struct { NextToken *string // The service metadata for the service or services in the response. - Services []*types.Service + Services []types.Service // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/pricing/api_op_GetAttributeValues.go b/service/pricing/api_op_GetAttributeValues.go index 14857232392..3dad704772e 100644 --- a/service/pricing/api_op_GetAttributeValues.go +++ b/service/pricing/api_op_GetAttributeValues.go @@ -47,7 +47,7 @@ type GetAttributeValuesInput struct { ServiceCode *string // The maximum number of results to return in response. - MaxResults *int32 + MaxResults int32 // The pagination token that indicates the next set of results that you want to // retrieve. @@ -58,7 +58,7 @@ type GetAttributeValuesOutput struct { // The list of values for an attribute. For example, Throughput Optimized HDD and // Provisioned IOPS are two available values for the AmazonEC2volumeType. - AttributeValues []*types.AttributeValue + AttributeValues []types.AttributeValue // The pagination token that indicates the next set of results to retrieve. NextToken *string diff --git a/service/pricing/api_op_GetProducts.go b/service/pricing/api_op_GetProducts.go index c22b8cd963b..73e6177e691 100644 --- a/service/pricing/api_op_GetProducts.go +++ b/service/pricing/api_op_GetProducts.go @@ -31,13 +31,13 @@ type GetProductsInput struct { // The list of filters that limit the returned products. only products that match // all filters are returned. - Filters []*types.Filter + Filters []types.Filter // The format version that you want the response to be in. Valid values are: aws_v1 FormatVersion *string // The maximum number of results to return in the response. - MaxResults *int32 + MaxResults int32 // The pagination token that indicates the next set of results that you want to // retrieve. @@ -57,7 +57,7 @@ type GetProductsOutput struct { // The list of products that match your filters. The list contains both the product // metadata and the price information. - PriceList []*string + PriceList []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/pricing/deserializers.go b/service/pricing/deserializers.go index f761eb13315..65f00440d3f 100644 --- a/service/pricing/deserializers.go +++ b/service/pricing/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -561,7 +562,7 @@ func awsAwsjson11_deserializeErrorNotFoundException(response *smithyhttp.Respons return output } -func awsAwsjson11_deserializeDocumentAttributeNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttributeNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -574,21 +575,21 @@ func awsAwsjson11_deserializeDocumentAttributeNameList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -625,7 +626,7 @@ func awsAwsjson11_deserializeDocumentAttributeValue(v **types.AttributeValue, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -637,7 +638,7 @@ func awsAwsjson11_deserializeDocumentAttributeValue(v **types.AttributeValue, va return nil } -func awsAwsjson11_deserializeDocumentAttributeValueList(v *[]*types.AttributeValue, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttributeValueList(v *[]types.AttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -650,18 +651,20 @@ func awsAwsjson11_deserializeDocumentAttributeValueList(v *[]*types.AttributeVal return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttributeValue + var cv []types.AttributeValue if *v == nil { - cv = []*types.AttributeValue{} + cv = []types.AttributeValue{} } else { cv = *v } for _, value := range shape { - var col *types.AttributeValue - if err := awsAwsjson11_deserializeDocumentAttributeValue(&col, value); err != nil { + var col types.AttributeValue + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttributeValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -697,7 +700,7 @@ func awsAwsjson11_deserializeDocumentExpiredNextTokenException(v **types.Expired if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -737,7 +740,7 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -777,7 +780,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -817,7 +820,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -857,7 +860,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -869,7 +872,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti return nil } -func awsAwsjson11_deserializeDocumentPriceList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPriceList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -882,21 +885,21 @@ func awsAwsjson11_deserializeDocumentPriceList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SynthesizedJsonPriceListItemJSON to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -938,7 +941,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceCode = &jtv + sv.ServiceCode = ptr.String(jtv) } default: @@ -950,7 +953,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ return nil } -func awsAwsjson11_deserializeDocumentServiceList(v *[]*types.Service, value interface{}) error { +func awsAwsjson11_deserializeDocumentServiceList(v *[]types.Service, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -963,18 +966,20 @@ func awsAwsjson11_deserializeDocumentServiceList(v *[]*types.Service, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Service + var cv []types.Service if *v == nil { - cv = []*types.Service{} + cv = []types.Service{} } else { cv = *v } for _, value := range shape { - var col *types.Service - if err := awsAwsjson11_deserializeDocumentService(&col, value); err != nil { + var col types.Service + destAddr := &col + if err := awsAwsjson11_deserializeDocumentService(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1010,7 +1015,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeServicesOutput(v **DescribeServic if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FormatVersion = &jtv + sv.FormatVersion = ptr.String(jtv) } case "NextToken": @@ -1019,7 +1024,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeServicesOutput(v **DescribeServic if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Services": @@ -1069,7 +1074,7 @@ func awsAwsjson11_deserializeOpDocumentGetAttributeValuesOutput(v **GetAttribute if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1109,7 +1114,7 @@ func awsAwsjson11_deserializeOpDocumentGetProductsOutput(v **GetProductsOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FormatVersion = &jtv + sv.FormatVersion = ptr.String(jtv) } case "NextToken": @@ -1118,7 +1123,7 @@ func awsAwsjson11_deserializeOpDocumentGetProductsOutput(v **GetProductsOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PriceList": diff --git a/service/pricing/go.mod b/service/pricing/go.mod index af6973db18a..0fd226b5079 100644 --- a/service/pricing/go.mod +++ b/service/pricing/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/pricing go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/pricing/serializers.go b/service/pricing/serializers.go index 68d4772e881..0a9f0089845 100644 --- a/service/pricing/serializers.go +++ b/service/pricing/serializers.go @@ -173,17 +173,13 @@ func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentFilters(v []*types.Filter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilters(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { return err } } @@ -199,9 +195,9 @@ func awsAwsjson11_serializeOpDocumentDescribeServicesInput(v *DescribeServicesIn ok.String(*v.FormatVersion) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -226,9 +222,9 @@ func awsAwsjson11_serializeOpDocumentGetAttributeValuesInput(v *GetAttributeValu ok.String(*v.AttributeName) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -260,9 +256,9 @@ func awsAwsjson11_serializeOpDocumentGetProductsInput(v *GetProductsInput, value ok.String(*v.FormatVersion) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { diff --git a/service/pricing/types/types.go b/service/pricing/types/types.go index bc19adcba18..ef1813c1c4e 100644 --- a/service/pricing/types/types.go +++ b/service/pricing/types/types.go @@ -45,7 +45,7 @@ type Filter struct { type Service struct { // The attributes that are available for this service. - AttributeNames []*string + AttributeNames []string // The code for the AWS service. ServiceCode *string diff --git a/service/pricing/validators.go b/service/pricing/validators.go index 27df9a71c20..9f44508c6c7 100644 --- a/service/pricing/validators.go +++ b/service/pricing/validators.go @@ -79,13 +79,13 @@ func validateFilter(v *types.Filter) error { } } -func validateFilters(v []*types.Filter) error { +func validateFilters(v []types.Filter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Filters"} for i := range v { - if err := validateFilter(v[i]); err != nil { + if err := validateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/qldb/api_op_CreateLedger.go b/service/qldb/api_op_CreateLedger.go index 080cbc53092..5104f74dede 100644 --- a/service/qldb/api_op_CreateLedger.go +++ b/service/qldb/api_op_CreateLedger.go @@ -55,7 +55,7 @@ type CreateLedgerInput struct { // The key-value pairs to add as tags to the ledger that you want to create. Tag // keys are case sensitive. Tag values are case sensitive and can be null. - Tags map[string]*string + Tags map[string]string } type CreateLedgerOutput struct { diff --git a/service/qldb/api_op_ListJournalKinesisStreamsForLedger.go b/service/qldb/api_op_ListJournalKinesisStreamsForLedger.go index 0c57a89e561..49c9211da5a 100644 --- a/service/qldb/api_op_ListJournalKinesisStreamsForLedger.go +++ b/service/qldb/api_op_ListJournalKinesisStreamsForLedger.go @@ -62,7 +62,7 @@ type ListJournalKinesisStreamsForLedgerOutput struct { // The array of QLDB journal stream descriptors that are associated with the given // ledger. - Streams []*types.JournalKinesisStreamDescription + Streams []types.JournalKinesisStreamDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/qldb/api_op_ListJournalS3Exports.go b/service/qldb/api_op_ListJournalS3Exports.go index e6c0d74b00b..7e371643d6f 100644 --- a/service/qldb/api_op_ListJournalS3Exports.go +++ b/service/qldb/api_op_ListJournalS3Exports.go @@ -49,7 +49,7 @@ type ListJournalS3ExportsOutput struct { // The array of journal export job descriptions for all ledgers that are associated // with the current AWS account and Region. - JournalS3Exports []*types.JournalS3ExportDescription + JournalS3Exports []types.JournalS3ExportDescription // * If NextToken is empty, then the last page of results has been processed and // there are no more results to be retrieved. diff --git a/service/qldb/api_op_ListJournalS3ExportsForLedger.go b/service/qldb/api_op_ListJournalS3ExportsForLedger.go index 4bc962701eb..63e741209c7 100644 --- a/service/qldb/api_op_ListJournalS3ExportsForLedger.go +++ b/service/qldb/api_op_ListJournalS3ExportsForLedger.go @@ -56,7 +56,7 @@ type ListJournalS3ExportsForLedgerOutput struct { // The array of journal export job descriptions that are associated with the // specified ledger. - JournalS3Exports []*types.JournalS3ExportDescription + JournalS3Exports []types.JournalS3ExportDescription // * If NextToken is empty, then the last page of results has been processed and // there are no more results to be retrieved. diff --git a/service/qldb/api_op_ListLedgers.go b/service/qldb/api_op_ListLedgers.go index da472e08710..2da9542b319 100644 --- a/service/qldb/api_op_ListLedgers.go +++ b/service/qldb/api_op_ListLedgers.go @@ -45,7 +45,7 @@ type ListLedgersOutput struct { // The array of ledger summaries that are associated with the current AWS account // and Region. - Ledgers []*types.LedgerSummary + Ledgers []types.LedgerSummary // A pagination token, indicating whether there are more results available: // diff --git a/service/qldb/api_op_ListTagsForResource.go b/service/qldb/api_op_ListTagsForResource.go index b6afd4f3c95..3d3c5b4ff92 100644 --- a/service/qldb/api_op_ListTagsForResource.go +++ b/service/qldb/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags that are currently associated with the specified Amazon QLDB resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/qldb/api_op_StreamJournalToKinesis.go b/service/qldb/api_op_StreamJournalToKinesis.go index b95dbde6649..d58b4f52df0 100644 --- a/service/qldb/api_op_StreamJournalToKinesis.go +++ b/service/qldb/api_op_StreamJournalToKinesis.go @@ -77,7 +77,7 @@ type StreamJournalToKinesisInput struct { // The key-value pairs to add as tags to the stream that you want to create. Tag // keys are case sensitive. Tag values are case sensitive and can be null. - Tags map[string]*string + Tags map[string]string } type StreamJournalToKinesisOutput struct { diff --git a/service/qldb/api_op_TagResource.go b/service/qldb/api_op_TagResource.go index 0a397d2a09d..40a812c397c 100644 --- a/service/qldb/api_op_TagResource.go +++ b/service/qldb/api_op_TagResource.go @@ -42,7 +42,7 @@ type TagResourceInput struct { // null. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/qldb/api_op_UntagResource.go b/service/qldb/api_op_UntagResource.go index ea5338eae35..aa6f4fae6c4 100644 --- a/service/qldb/api_op_UntagResource.go +++ b/service/qldb/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // The list of tag keys that you want to remove. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/qldb/deserializers.go b/service/qldb/deserializers.go index 6ac75abe430..11c4a09b000 100644 --- a/service/qldb/deserializers.go +++ b/service/qldb/deserializers.go @@ -165,7 +165,7 @@ func awsRestjson1_deserializeOpDocumentCancelJournalKinesisStreamOutput(v **Canc if !ok { return fmt.Errorf("expected UniqueId to be of type string, got %T instead", value) } - sv.StreamId = &jtv + sv.StreamId = ptr.String(jtv) } default: @@ -325,7 +325,7 @@ func awsRestjson1_deserializeOpDocumentCreateLedgerOutput(v **CreateLedgerOutput if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationDateTime": @@ -347,7 +347,7 @@ func awsRestjson1_deserializeOpDocumentCreateLedgerOutput(v **CreateLedgerOutput if !ok { return fmt.Errorf("expected DeletionProtection to be of type *bool, got %T instead", value) } - sv.DeletionProtection = &jtv + sv.DeletionProtection = ptr.Bool(jtv) } case "Name": @@ -356,7 +356,7 @@ func awsRestjson1_deserializeOpDocumentCreateLedgerOutput(v **CreateLedgerOutput if !ok { return fmt.Errorf("expected LedgerName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -911,7 +911,7 @@ func awsRestjson1_deserializeOpDocumentDescribeLedgerOutput(v **DescribeLedgerOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationDateTime": @@ -933,7 +933,7 @@ func awsRestjson1_deserializeOpDocumentDescribeLedgerOutput(v **DescribeLedgerOu if !ok { return fmt.Errorf("expected DeletionProtection to be of type *bool, got %T instead", value) } - sv.DeletionProtection = &jtv + sv.DeletionProtection = ptr.Bool(jtv) } case "Name": @@ -942,7 +942,7 @@ func awsRestjson1_deserializeOpDocumentDescribeLedgerOutput(v **DescribeLedgerOu if !ok { return fmt.Errorf("expected LedgerName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -1105,7 +1105,7 @@ func awsRestjson1_deserializeOpDocumentExportJournalToS3Output(v **ExportJournal if !ok { return fmt.Errorf("expected UniqueId to be of type string, got %T instead", value) } - sv.ExportId = &jtv + sv.ExportId = ptr.String(jtv) } default: @@ -1744,7 +1744,7 @@ func awsRestjson1_deserializeOpDocumentListJournalKinesisStreamsForLedgerOutput( if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Streams": @@ -1902,7 +1902,7 @@ func awsRestjson1_deserializeOpDocumentListJournalS3ExportsOutput(v **ListJourna if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2055,7 +2055,7 @@ func awsRestjson1_deserializeOpDocumentListJournalS3ExportsForLedgerOutput(v **L if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2208,7 +2208,7 @@ func awsRestjson1_deserializeOpDocumentListLedgersOutput(v **ListLedgersOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2515,7 +2515,7 @@ func awsRestjson1_deserializeOpDocumentStreamJournalToKinesisOutput(v **StreamJo if !ok { return fmt.Errorf("expected UniqueId to be of type string, got %T instead", value) } - sv.StreamId = &jtv + sv.StreamId = ptr.String(jtv) } default: @@ -2841,7 +2841,7 @@ func awsRestjson1_deserializeOpDocumentUpdateLedgerOutput(v **UpdateLedgerOutput if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationDateTime": @@ -2863,7 +2863,7 @@ func awsRestjson1_deserializeOpDocumentUpdateLedgerOutput(v **UpdateLedgerOutput if !ok { return fmt.Errorf("expected DeletionProtection to be of type *bool, got %T instead", value) } - sv.DeletionProtection = &jtv + sv.DeletionProtection = ptr.Bool(jtv) } case "Name": @@ -2872,7 +2872,7 @@ func awsRestjson1_deserializeOpDocumentUpdateLedgerOutput(v **UpdateLedgerOutput if !ok { return fmt.Errorf("expected LedgerName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -3137,7 +3137,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ParameterName": @@ -3146,7 +3146,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.ParameterName = &jtv + sv.ParameterName = ptr.String(jtv) } default: @@ -3186,7 +3186,7 @@ func awsRestjson1_deserializeDocumentJournalKinesisStreamDescription(v **types.J if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTime": @@ -3248,7 +3248,7 @@ func awsRestjson1_deserializeDocumentJournalKinesisStreamDescription(v **types.J if !ok { return fmt.Errorf("expected LedgerName to be of type string, got %T instead", value) } - sv.LedgerName = &jtv + sv.LedgerName = ptr.String(jtv) } case "RoleArn": @@ -3257,7 +3257,7 @@ func awsRestjson1_deserializeDocumentJournalKinesisStreamDescription(v **types.J if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "Status": @@ -3275,7 +3275,7 @@ func awsRestjson1_deserializeDocumentJournalKinesisStreamDescription(v **types.J if !ok { return fmt.Errorf("expected UniqueId to be of type string, got %T instead", value) } - sv.StreamId = &jtv + sv.StreamId = ptr.String(jtv) } case "StreamName": @@ -3284,7 +3284,7 @@ func awsRestjson1_deserializeDocumentJournalKinesisStreamDescription(v **types.J if !ok { return fmt.Errorf("expected StreamName to be of type string, got %T instead", value) } - sv.StreamName = &jtv + sv.StreamName = ptr.String(jtv) } default: @@ -3296,7 +3296,7 @@ func awsRestjson1_deserializeDocumentJournalKinesisStreamDescription(v **types.J return nil } -func awsRestjson1_deserializeDocumentJournalKinesisStreamDescriptionList(v *[]*types.JournalKinesisStreamDescription, value interface{}) error { +func awsRestjson1_deserializeDocumentJournalKinesisStreamDescriptionList(v *[]types.JournalKinesisStreamDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3309,18 +3309,20 @@ func awsRestjson1_deserializeDocumentJournalKinesisStreamDescriptionList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JournalKinesisStreamDescription + var cv []types.JournalKinesisStreamDescription if *v == nil { - cv = []*types.JournalKinesisStreamDescription{} + cv = []types.JournalKinesisStreamDescription{} } else { cv = *v } for _, value := range shape { - var col *types.JournalKinesisStreamDescription - if err := awsRestjson1_deserializeDocumentJournalKinesisStreamDescription(&col, value); err != nil { + var col types.JournalKinesisStreamDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentJournalKinesisStreamDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3382,7 +3384,7 @@ func awsRestjson1_deserializeDocumentJournalS3ExportDescription(v **types.Journa if !ok { return fmt.Errorf("expected UniqueId to be of type string, got %T instead", value) } - sv.ExportId = &jtv + sv.ExportId = ptr.String(jtv) } case "InclusiveStartTime": @@ -3404,7 +3406,7 @@ func awsRestjson1_deserializeDocumentJournalS3ExportDescription(v **types.Journa if !ok { return fmt.Errorf("expected LedgerName to be of type string, got %T instead", value) } - sv.LedgerName = &jtv + sv.LedgerName = ptr.String(jtv) } case "RoleArn": @@ -3413,7 +3415,7 @@ func awsRestjson1_deserializeDocumentJournalS3ExportDescription(v **types.Journa if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "S3ExportConfiguration": @@ -3439,7 +3441,7 @@ func awsRestjson1_deserializeDocumentJournalS3ExportDescription(v **types.Journa return nil } -func awsRestjson1_deserializeDocumentJournalS3ExportList(v *[]*types.JournalS3ExportDescription, value interface{}) error { +func awsRestjson1_deserializeDocumentJournalS3ExportList(v *[]types.JournalS3ExportDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3452,18 +3454,20 @@ func awsRestjson1_deserializeDocumentJournalS3ExportList(v *[]*types.JournalS3Ex return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JournalS3ExportDescription + var cv []types.JournalS3ExportDescription if *v == nil { - cv = []*types.JournalS3ExportDescription{} + cv = []types.JournalS3ExportDescription{} } else { cv = *v } for _, value := range shape { - var col *types.JournalS3ExportDescription - if err := awsRestjson1_deserializeDocumentJournalS3ExportDescription(&col, value); err != nil { + var col types.JournalS3ExportDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentJournalS3ExportDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3499,7 +3503,7 @@ func awsRestjson1_deserializeDocumentKinesisConfiguration(v **types.KinesisConfi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AggregationEnabled = &jtv + sv.AggregationEnabled = ptr.Bool(jtv) } case "StreamArn": @@ -3508,7 +3512,7 @@ func awsRestjson1_deserializeDocumentKinesisConfiguration(v **types.KinesisConfi if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.StreamArn = &jtv + sv.StreamArn = ptr.String(jtv) } default: @@ -3520,7 +3524,7 @@ func awsRestjson1_deserializeDocumentKinesisConfiguration(v **types.KinesisConfi return nil } -func awsRestjson1_deserializeDocumentLedgerList(v *[]*types.LedgerSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentLedgerList(v *[]types.LedgerSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3533,18 +3537,20 @@ func awsRestjson1_deserializeDocumentLedgerList(v *[]*types.LedgerSummary, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LedgerSummary + var cv []types.LedgerSummary if *v == nil { - cv = []*types.LedgerSummary{} + cv = []types.LedgerSummary{} } else { cv = *v } for _, value := range shape { - var col *types.LedgerSummary - if err := awsRestjson1_deserializeDocumentLedgerSummary(&col, value); err != nil { + var col types.LedgerSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentLedgerSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3593,7 +3599,7 @@ func awsRestjson1_deserializeDocumentLedgerSummary(v **types.LedgerSummary, valu if !ok { return fmt.Errorf("expected LedgerName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -3642,7 +3648,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceType": @@ -3651,7 +3657,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -3691,7 +3697,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceName": @@ -3700,7 +3706,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } case "ResourceType": @@ -3709,7 +3715,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -3749,7 +3755,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceName": @@ -3758,7 +3764,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } case "ResourceType": @@ -3767,7 +3773,7 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -3807,7 +3813,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceName": @@ -3816,7 +3822,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } case "ResourceType": @@ -3825,7 +3831,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -3865,7 +3871,7 @@ func awsRestjson1_deserializeDocumentResourcePreconditionNotMetException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceName": @@ -3874,7 +3880,7 @@ func awsRestjson1_deserializeDocumentResourcePreconditionNotMetException(v **typ if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } case "ResourceType": @@ -3883,7 +3889,7 @@ func awsRestjson1_deserializeDocumentResourcePreconditionNotMetException(v **typ if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -3923,7 +3929,7 @@ func awsRestjson1_deserializeDocumentS3EncryptionConfiguration(v **types.S3Encry if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } case "ObjectEncryptionType": @@ -3972,7 +3978,7 @@ func awsRestjson1_deserializeDocumentS3ExportConfiguration(v **types.S3ExportCon if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "EncryptionConfiguration": @@ -3986,7 +3992,7 @@ func awsRestjson1_deserializeDocumentS3ExportConfiguration(v **types.S3ExportCon if !ok { return fmt.Errorf("expected S3Prefix to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } default: @@ -3998,7 +4004,7 @@ func awsRestjson1_deserializeDocumentS3ExportConfiguration(v **types.S3ExportCon return nil } -func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4011,21 +4017,21 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -4062,7 +4068,7 @@ func awsRestjson1_deserializeDocumentValueHolder(v **types.ValueHolder, value in if !ok { return fmt.Errorf("expected IonText to be of type string, got %T instead", value) } - sv.IonText = &jtv + sv.IonText = ptr.String(jtv) } default: diff --git a/service/qldb/go.mod b/service/qldb/go.mod index 26532b0cac2..681ab78c714 100644 --- a/service/qldb/go.mod +++ b/service/qldb/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/qldb go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/qldb/serializers.go b/service/qldb/serializers.go index c4a42c68ff1..dc4f88c8c4d 100644 --- a/service/qldb/serializers.go +++ b/service/qldb/serializers.go @@ -66,25 +66,19 @@ func awsRestjson1_serializeOpHttpBindingsCancelJournalKinesisStreamInput(v *Canc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LedgerName == nil { + if v.LedgerName == nil || len(*v.LedgerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LedgerName must not be empty")} } if v.LedgerName != nil { - if len(*v.LedgerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LedgerName must not be empty")} - } if err := encoder.SetURI("LedgerName").String(*v.LedgerName); err != nil { return err } } - if v.StreamId == nil { + if v.StreamId == nil || len(*v.StreamId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member StreamId must not be empty")} } if v.StreamId != nil { - if len(*v.StreamId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member StreamId must not be empty")} - } if err := encoder.SetURI("StreamId").String(*v.StreamId); err != nil { return err } @@ -234,13 +228,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteLedgerInput(v *DeleteLedgerInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -300,25 +291,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeJournalKinesisStreamInput(v *De return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LedgerName == nil { + if v.LedgerName == nil || len(*v.LedgerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LedgerName must not be empty")} } if v.LedgerName != nil { - if len(*v.LedgerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LedgerName must not be empty")} - } if err := encoder.SetURI("LedgerName").String(*v.LedgerName); err != nil { return err } } - if v.StreamId == nil { + if v.StreamId == nil || len(*v.StreamId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member StreamId must not be empty")} } if v.StreamId != nil { - if len(*v.StreamId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member StreamId must not be empty")} - } if err := encoder.SetURI("StreamId").String(*v.StreamId); err != nil { return err } @@ -378,25 +363,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeJournalS3ExportInput(v *Describ return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ExportId == nil { + if v.ExportId == nil || len(*v.ExportId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ExportId must not be empty")} } if v.ExportId != nil { - if len(*v.ExportId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ExportId must not be empty")} - } if err := encoder.SetURI("ExportId").String(*v.ExportId); err != nil { return err } } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -456,13 +435,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeLedgerInput(v *DescribeLedgerIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -533,13 +509,10 @@ func awsRestjson1_serializeOpHttpBindingsExportJournalToS3Input(v *ExportJournal return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -639,13 +612,10 @@ func awsRestjson1_serializeOpHttpBindingsGetBlockInput(v *GetBlockInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -726,13 +696,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDigestInput(v *GetDigestInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -803,13 +770,10 @@ func awsRestjson1_serializeOpHttpBindingsGetRevisionInput(v *GetRevisionInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -895,13 +859,10 @@ func awsRestjson1_serializeOpHttpBindingsListJournalKinesisStreamsForLedgerInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LedgerName == nil { + if v.LedgerName == nil || len(*v.LedgerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LedgerName must not be empty")} } if v.LedgerName != nil { - if len(*v.LedgerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LedgerName must not be empty")} - } if err := encoder.SetURI("LedgerName").String(*v.LedgerName); err != nil { return err } @@ -1035,13 +996,10 @@ func awsRestjson1_serializeOpHttpBindingsListJournalS3ExportsForLedgerInput(v *L encoder.SetQuery("max_results").Integer(*v.MaxResults) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -1167,13 +1125,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1244,13 +1199,10 @@ func awsRestjson1_serializeOpHttpBindingsStreamJournalToKinesisInput(v *StreamJo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LedgerName == nil { + if v.LedgerName == nil || len(*v.LedgerName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member LedgerName must not be empty")} } if v.LedgerName != nil { - if len(*v.LedgerName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member LedgerName must not be empty")} - } if err := encoder.SetURI("LedgerName").String(*v.LedgerName); err != nil { return err } @@ -1362,13 +1314,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1442,13 +1391,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1456,10 +1402,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1528,13 +1471,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateLedgerInput(v *UpdateLedgerInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -1613,17 +1553,13 @@ func awsRestjson1_serializeDocumentS3ExportConfiguration(v *types.S3ExportConfig return nil } -func awsRestjson1_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/qldbsession/deserializers.go b/service/qldbsession/deserializers.go index fdfe79b465d..a77384e1955 100644 --- a/service/qldbsession/deserializers.go +++ b/service/qldbsession/deserializers.go @@ -13,6 +13,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -375,7 +376,7 @@ func awsAwsjson10_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -384,7 +385,7 @@ func awsAwsjson10_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -437,7 +438,7 @@ func awsAwsjson10_deserializeDocumentCommitTransactionResult(v **types.CommitTra if !ok { return fmt.Errorf("expected TransactionId to be of type string, got %T instead", value) } - sv.TransactionId = &jtv + sv.TransactionId = ptr.String(jtv) } default: @@ -580,7 +581,7 @@ func awsAwsjson10_deserializeDocumentInvalidSessionException(v **types.InvalidSe if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -589,7 +590,7 @@ func awsAwsjson10_deserializeDocumentInvalidSessionException(v **types.InvalidSe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -629,7 +630,7 @@ func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -669,7 +670,7 @@ func awsAwsjson10_deserializeDocumentOccConflictException(v **types.OccConflictE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -709,7 +710,7 @@ func awsAwsjson10_deserializeDocumentPage(v **types.Page, value interface{}) err if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "Values": @@ -754,7 +755,7 @@ func awsAwsjson10_deserializeDocumentRateExceededException(v **types.RateExceede if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -794,7 +795,7 @@ func awsAwsjson10_deserializeDocumentStartSessionResult(v **types.StartSessionRe if !ok { return fmt.Errorf("expected SessionToken to be of type string, got %T instead", value) } - sv.SessionToken = &jtv + sv.SessionToken = ptr.String(jtv) } default: @@ -834,7 +835,7 @@ func awsAwsjson10_deserializeDocumentStartTransactionResult(v **types.StartTrans if !ok { return fmt.Errorf("expected TransactionId to be of type string, got %T instead", value) } - sv.TransactionId = &jtv + sv.TransactionId = ptr.String(jtv) } default: @@ -887,7 +888,7 @@ func awsAwsjson10_deserializeDocumentValueHolder(v **types.ValueHolder, value in if !ok { return fmt.Errorf("expected IonText to be of type string, got %T instead", value) } - sv.IonText = &jtv + sv.IonText = ptr.String(jtv) } default: @@ -899,7 +900,7 @@ func awsAwsjson10_deserializeDocumentValueHolder(v **types.ValueHolder, value in return nil } -func awsAwsjson10_deserializeDocumentValueHolders(v *[]*types.ValueHolder, value interface{}) error { +func awsAwsjson10_deserializeDocumentValueHolders(v *[]types.ValueHolder, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -912,18 +913,20 @@ func awsAwsjson10_deserializeDocumentValueHolders(v *[]*types.ValueHolder, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ValueHolder + var cv []types.ValueHolder if *v == nil { - cv = []*types.ValueHolder{} + cv = []types.ValueHolder{} } else { cv = *v } for _, value := range shape { - var col *types.ValueHolder - if err := awsAwsjson10_deserializeDocumentValueHolder(&col, value); err != nil { + var col types.ValueHolder + destAddr := &col + if err := awsAwsjson10_deserializeDocumentValueHolder(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/qldbsession/go.mod b/service/qldbsession/go.mod index 1c753f56187..b6b489bd2b8 100644 --- a/service/qldbsession/go.mod +++ b/service/qldbsession/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/qldbsession go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/qldbsession/serializers.go b/service/qldbsession/serializers.go index 45ea7a557ac..2e409d813e6 100644 --- a/service/qldbsession/serializers.go +++ b/service/qldbsession/serializers.go @@ -150,17 +150,13 @@ func awsAwsjson10_serializeDocumentStartTransactionRequest(v *types.StartTransac return nil } -func awsAwsjson10_serializeDocumentStatementParameters(v []*types.ValueHolder, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentStatementParameters(v []types.ValueHolder, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentValueHolder(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentValueHolder(&v[i], av); err != nil { return err } } diff --git a/service/qldbsession/types/types.go b/service/qldbsession/types/types.go index 46427d7832a..ff6d2e87368 100644 --- a/service/qldbsession/types/types.go +++ b/service/qldbsession/types/types.go @@ -59,7 +59,7 @@ type ExecuteStatementRequest struct { TransactionId *string // Specifies the parameters for the parameterized statement in the request. - Parameters []*ValueHolder + Parameters []ValueHolder } // Contains the details of the executed statement. @@ -97,7 +97,7 @@ type Page struct { NextPageToken *string // A structure that contains values in multiple encoding formats. - Values []*ValueHolder + Values []ValueHolder } // Specifies a request to start a new session. diff --git a/service/quicksight/api_op_CancelIngestion.go b/service/quicksight/api_op_CancelIngestion.go index c7efe6e3d61..2a49eb2b49b 100644 --- a/service/quicksight/api_op_CancelIngestion.go +++ b/service/quicksight/api_op_CancelIngestion.go @@ -56,7 +56,7 @@ type CancelIngestionOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_CreateAccountCustomization.go b/service/quicksight/api_op_CreateAccountCustomization.go index b51a2639943..049f568a9b4 100644 --- a/service/quicksight/api_op_CreateAccountCustomization.go +++ b/service/quicksight/api_op_CreateAccountCustomization.go @@ -66,7 +66,7 @@ type CreateAccountCustomizationInput struct { Namespace *string // A list of the tags that you want to attach to this resource. - Tags []*types.Tag + Tags []types.Tag } type CreateAccountCustomizationOutput struct { @@ -88,7 +88,7 @@ type CreateAccountCustomizationOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_CreateAnalysis.go b/service/quicksight/api_op_CreateAnalysis.go index 32e2e478556..bccc8df3f85 100644 --- a/service/quicksight/api_op_CreateAnalysis.go +++ b/service/quicksight/api_op_CreateAnalysis.go @@ -62,11 +62,11 @@ type CreateAnalysisInput struct { // providing a list of AWS Identity and Access Management (IAM) action information // for each principal listed by Amazon Resource Name (ARN). To specify no // permissions, omit Permissions. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // Contains a map of the key-value pairs for the resource tag or tags assigned to // the analysis. - Tags []*types.Tag + Tags []types.Tag // The ARN for the theme to apply to the analysis that you're creating. To see the // theme in the QuickSight console, make sure that you have access to it. @@ -88,7 +88,7 @@ type CreateAnalysisOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_CreateDashboard.go b/service/quicksight/api_op_CreateDashboard.go index 064e911da21..9928c738688 100644 --- a/service/quicksight/api_op_CreateDashboard.go +++ b/service/quicksight/api_op_CreateDashboard.go @@ -88,11 +88,11 @@ type CreateDashboardInput struct { // A structure that contains the permissions of the dashboard. You can use this // structure for granting permissions by providing a list of IAM action information // for each principal ARN. To specify no permissions, omit the permissions list. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // Contains a map of the key-value pairs for the resource tag or tags assigned to // the dashboard. - Tags []*types.Tag + Tags []types.Tag // The Amazon Resource Name (ARN) of the theme that is being used for this // dashboard. If you add a value for this field, it overrides the value that is @@ -119,7 +119,7 @@ type CreateDashboardOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The ARN of the dashboard, including the version number of the first version that // is created. diff --git a/service/quicksight/api_op_CreateDataSet.go b/service/quicksight/api_op_CreateDataSet.go index 298eda43e0e..83fcf0adf4e 100644 --- a/service/quicksight/api_op_CreateDataSet.go +++ b/service/quicksight/api_op_CreateDataSet.go @@ -53,25 +53,25 @@ type CreateDataSetInput struct { // Declares the physical tables that are available in the underlying data sources. // // This member is required. - PhysicalTableMap map[string]*types.PhysicalTable + PhysicalTableMap map[string]types.PhysicalTable // Groupings of columns that work together in certain QuickSight features. // Currently, only geospatial hierarchy is supported. - ColumnGroups []*types.ColumnGroup + ColumnGroups []types.ColumnGroup // Configures the combination and transformation of the data from the physical // tables. - LogicalTableMap map[string]*types.LogicalTable + LogicalTableMap map[string]types.LogicalTable // A list of resource permissions on the dataset. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // The row-level security configuration for the data that you want to create. RowLevelPermissionDataSet *types.RowLevelPermissionDataSet // Contains a map of the key-value pairs for the resource tag or tags assigned to // the dataset. - Tags []*types.Tag + Tags []types.Tag } type CreateDataSetOutput struct { @@ -95,7 +95,7 @@ type CreateDataSetOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_CreateDataSource.go b/service/quicksight/api_op_CreateDataSource.go index 8a6585f0f3c..548cea2a9ba 100644 --- a/service/quicksight/api_op_CreateDataSource.go +++ b/service/quicksight/api_op_CreateDataSource.go @@ -61,7 +61,7 @@ type CreateDataSourceInput struct { DataSourceParameters *types.DataSourceParameters // A list of resource permissions on the data source. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // Secure Socket Layer (SSL) properties that apply when QuickSight connects to your // underlying source. @@ -69,7 +69,7 @@ type CreateDataSourceInput struct { // Contains a map of the key-value pairs for the resource tag or tags assigned to // the data source. - Tags []*types.Tag + Tags []types.Tag // Use this parameter only when you want QuickSight to use a VPC connection when // connecting to your underlying source. @@ -92,7 +92,7 @@ type CreateDataSourceOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_CreateGroup.go b/service/quicksight/api_op_CreateGroup.go index 174e781b68e..56e8c6cfaca 100644 --- a/service/quicksight/api_op_CreateGroup.go +++ b/service/quicksight/api_op_CreateGroup.go @@ -61,7 +61,7 @@ type CreateGroupOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_CreateGroupMembership.go b/service/quicksight/api_op_CreateGroupMembership.go index 0c615e053c0..72448c66558 100644 --- a/service/quicksight/api_op_CreateGroupMembership.go +++ b/service/quicksight/api_op_CreateGroupMembership.go @@ -60,7 +60,7 @@ type CreateGroupMembershipOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_CreateIAMPolicyAssignment.go b/service/quicksight/api_op_CreateIAMPolicyAssignment.go index dabad5e4776..52607e4607e 100644 --- a/service/quicksight/api_op_CreateIAMPolicyAssignment.go +++ b/service/quicksight/api_op_CreateIAMPolicyAssignment.go @@ -63,7 +63,7 @@ type CreateIAMPolicyAssignmentInput struct { Namespace *string // The QuickSight users, groups, or both that you want to assign the policy to. - Identities map[string][]*string + Identities map[string][]string // The ARN for the IAM policy to apply to the QuickSight users and groups specified // in this assignment. @@ -92,7 +92,7 @@ type CreateIAMPolicyAssignmentOutput struct { AssignmentStatus types.AssignmentStatus // The QuickSight users, groups, or both that the IAM policy is assigned to. - Identities map[string][]*string + Identities map[string][]string // The ARN for the IAM policy that is applied to the QuickSight users and groups // specified in this assignment. @@ -102,7 +102,7 @@ type CreateIAMPolicyAssignmentOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_CreateIngestion.go b/service/quicksight/api_op_CreateIngestion.go index c2dd5f11e0f..21f9d0544ee 100644 --- a/service/quicksight/api_op_CreateIngestion.go +++ b/service/quicksight/api_op_CreateIngestion.go @@ -66,7 +66,7 @@ type CreateIngestionOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_CreateNamespace.go b/service/quicksight/api_op_CreateNamespace.go index 58309dde051..f9fc209f009 100644 --- a/service/quicksight/api_op_CreateNamespace.go +++ b/service/quicksight/api_op_CreateNamespace.go @@ -53,7 +53,7 @@ type CreateNamespaceInput struct { Namespace *string // The tags that you want to associate with the namespace that you're creating. - Tags []*types.Tag + Tags []types.Tag } type CreateNamespaceOutput struct { @@ -82,7 +82,7 @@ type CreateNamespaceOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_CreateTemplate.go b/service/quicksight/api_op_CreateTemplate.go index 5c9aa45c122..a7d4de72c3e 100644 --- a/service/quicksight/api_op_CreateTemplate.go +++ b/service/quicksight/api_op_CreateTemplate.go @@ -65,11 +65,11 @@ type CreateTemplateInput struct { Name *string // A list of resource permissions to be set on the template. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // Contains a map of the key-value pairs for the resource tag or tags assigned to // the resource. - Tags []*types.Tag + Tags []types.Tag // A description of the current template version being created. This API operation // creates the first version of the template. Every time UpdateTemplate is called, @@ -90,7 +90,7 @@ type CreateTemplateOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The ID of the template. TemplateId *string diff --git a/service/quicksight/api_op_CreateTemplateAlias.go b/service/quicksight/api_op_CreateTemplateAlias.go index c9136746230..3d158ed3dab 100644 --- a/service/quicksight/api_op_CreateTemplateAlias.go +++ b/service/quicksight/api_op_CreateTemplateAlias.go @@ -59,7 +59,7 @@ type CreateTemplateAliasOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Information about the template alias. TemplateAlias *types.TemplateAlias diff --git a/service/quicksight/api_op_CreateTheme.go b/service/quicksight/api_op_CreateTheme.go index 70ec6a3f47e..aa48010a3bd 100644 --- a/service/quicksight/api_op_CreateTheme.go +++ b/service/quicksight/api_op_CreateTheme.go @@ -63,11 +63,11 @@ type CreateThemeInput struct { ThemeId *string // A valid grouping of resource permissions to apply to the new theme. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // A map of the key-value pairs for the resource tag or tags that you want to add // to the resource. - Tags []*types.Tag + Tags []types.Tag // A description of the first version of the theme that you're creating. Every time // UpdateTheme is called, a new version is created. Each version of the theme has a @@ -87,7 +87,7 @@ type CreateThemeOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The ID of the theme. ThemeId *string diff --git a/service/quicksight/api_op_CreateThemeAlias.go b/service/quicksight/api_op_CreateThemeAlias.go index 121705e4fe7..84fa45dde14 100644 --- a/service/quicksight/api_op_CreateThemeAlias.go +++ b/service/quicksight/api_op_CreateThemeAlias.go @@ -58,7 +58,7 @@ type CreateThemeAliasOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Information about the theme alias. ThemeAlias *types.ThemeAlias diff --git a/service/quicksight/api_op_DeleteAccountCustomization.go b/service/quicksight/api_op_DeleteAccountCustomization.go index 2025f518fac..b887bad5eec 100644 --- a/service/quicksight/api_op_DeleteAccountCustomization.go +++ b/service/quicksight/api_op_DeleteAccountCustomization.go @@ -45,7 +45,7 @@ type DeleteAccountCustomizationOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DeleteAnalysis.go b/service/quicksight/api_op_DeleteAnalysis.go index 80f568a2888..c070aea20e3 100644 --- a/service/quicksight/api_op_DeleteAnalysis.go +++ b/service/quicksight/api_op_DeleteAnalysis.go @@ -53,7 +53,7 @@ type DeleteAnalysisInput struct { // This option defaults to the value NoForceDeleteWithoutRecovery. To immediately // delete the analysis, add the ForceDeleteWithoutRecovery option. You can't // restore an analysis after it's deleted. - ForceDeleteWithoutRecovery *bool + ForceDeleteWithoutRecovery bool // A value that specifies the number of days that QuickSight waits before it // deletes the analysis. You can't use this parameter with the @@ -76,7 +76,7 @@ type DeleteAnalysisOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DeleteDashboard.go b/service/quicksight/api_op_DeleteDashboard.go index a919298cbc0..aed3f17f374 100644 --- a/service/quicksight/api_op_DeleteDashboard.go +++ b/service/quicksight/api_op_DeleteDashboard.go @@ -55,7 +55,7 @@ type DeleteDashboardOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DeleteDataSet.go b/service/quicksight/api_op_DeleteDataSet.go index af74c7b5237..03f61810f37 100644 --- a/service/quicksight/api_op_DeleteDataSet.go +++ b/service/quicksight/api_op_DeleteDataSet.go @@ -53,7 +53,7 @@ type DeleteDataSetOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DeleteDataSource.go b/service/quicksight/api_op_DeleteDataSource.go index 3736f2d7fdc..65620088817 100644 --- a/service/quicksight/api_op_DeleteDataSource.go +++ b/service/quicksight/api_op_DeleteDataSource.go @@ -54,7 +54,7 @@ type DeleteDataSourceOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DeleteGroup.go b/service/quicksight/api_op_DeleteGroup.go index 37f0f290dd9..19d730fd4fb 100644 --- a/service/quicksight/api_op_DeleteGroup.go +++ b/service/quicksight/api_op_DeleteGroup.go @@ -51,7 +51,7 @@ type DeleteGroupOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DeleteGroupMembership.go b/service/quicksight/api_op_DeleteGroupMembership.go index b015ca3d682..86fbf7cbe77 100644 --- a/service/quicksight/api_op_DeleteGroupMembership.go +++ b/service/quicksight/api_op_DeleteGroupMembership.go @@ -56,7 +56,7 @@ type DeleteGroupMembershipOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DeleteIAMPolicyAssignment.go b/service/quicksight/api_op_DeleteIAMPolicyAssignment.go index 6876c497f41..7cd8d4c230e 100644 --- a/service/quicksight/api_op_DeleteIAMPolicyAssignment.go +++ b/service/quicksight/api_op_DeleteIAMPolicyAssignment.go @@ -53,7 +53,7 @@ type DeleteIAMPolicyAssignmentOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DeleteNamespace.go b/service/quicksight/api_op_DeleteNamespace.go index 94dbddc7bb0..422a4f36ca1 100644 --- a/service/quicksight/api_op_DeleteNamespace.go +++ b/service/quicksight/api_op_DeleteNamespace.go @@ -49,7 +49,7 @@ type DeleteNamespaceOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DeleteTemplate.go b/service/quicksight/api_op_DeleteTemplate.go index 216d2e295a3..663cb262ad5 100644 --- a/service/quicksight/api_op_DeleteTemplate.go +++ b/service/quicksight/api_op_DeleteTemplate.go @@ -52,7 +52,7 @@ type DeleteTemplateOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // An ID for the template. TemplateId *string diff --git a/service/quicksight/api_op_DeleteTemplateAlias.go b/service/quicksight/api_op_DeleteTemplateAlias.go index ee74fdd5807..e4e48a6164d 100644 --- a/service/quicksight/api_op_DeleteTemplateAlias.go +++ b/service/quicksight/api_op_DeleteTemplateAlias.go @@ -60,7 +60,7 @@ type DeleteTemplateAliasOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // An ID for the template associated with the deletion. TemplateId *string diff --git a/service/quicksight/api_op_DeleteTheme.go b/service/quicksight/api_op_DeleteTheme.go index 7eb03496feb..60a55d6b3e5 100644 --- a/service/quicksight/api_op_DeleteTheme.go +++ b/service/quicksight/api_op_DeleteTheme.go @@ -53,7 +53,7 @@ type DeleteThemeOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // An ID for the theme. ThemeId *string diff --git a/service/quicksight/api_op_DeleteThemeAlias.go b/service/quicksight/api_op_DeleteThemeAlias.go index d69201a3430..0bbc216ddfc 100644 --- a/service/quicksight/api_op_DeleteThemeAlias.go +++ b/service/quicksight/api_op_DeleteThemeAlias.go @@ -58,7 +58,7 @@ type DeleteThemeAliasOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // An ID for the theme associated with the deletion. ThemeId *string diff --git a/service/quicksight/api_op_DeleteUser.go b/service/quicksight/api_op_DeleteUser.go index 3f251b19b23..0ce9d4265e0 100644 --- a/service/quicksight/api_op_DeleteUser.go +++ b/service/quicksight/api_op_DeleteUser.go @@ -53,7 +53,7 @@ type DeleteUserOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DeleteUserByPrincipalId.go b/service/quicksight/api_op_DeleteUserByPrincipalId.go index f23949ed375..49ad487461c 100644 --- a/service/quicksight/api_op_DeleteUserByPrincipalId.go +++ b/service/quicksight/api_op_DeleteUserByPrincipalId.go @@ -52,7 +52,7 @@ type DeleteUserByPrincipalIdOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeAccountCustomization.go b/service/quicksight/api_op_DescribeAccountCustomization.go index fe05a53a86d..b627fc226c9 100644 --- a/service/quicksight/api_op_DescribeAccountCustomization.go +++ b/service/quicksight/api_op_DescribeAccountCustomization.go @@ -90,7 +90,7 @@ type DescribeAccountCustomizationInput struct { // use the same view that QuickSight uses to identify which customizations to apply // to the console. Omit this flag, or set it to no-resolved, to reveal // customizations that are configured at different levels. - Resolved *bool + Resolved bool } type DescribeAccountCustomizationOutput struct { @@ -112,7 +112,7 @@ type DescribeAccountCustomizationOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeAccountSettings.go b/service/quicksight/api_op_DescribeAccountSettings.go index 5be5b6a8e72..57d534b1a77 100644 --- a/service/quicksight/api_op_DescribeAccountSettings.go +++ b/service/quicksight/api_op_DescribeAccountSettings.go @@ -51,7 +51,7 @@ type DescribeAccountSettingsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeAnalysis.go b/service/quicksight/api_op_DescribeAnalysis.go index 60daec0471a..5a76e9f2c69 100644 --- a/service/quicksight/api_op_DescribeAnalysis.go +++ b/service/quicksight/api_op_DescribeAnalysis.go @@ -52,7 +52,7 @@ type DescribeAnalysisOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeAnalysisPermissions.go b/service/quicksight/api_op_DescribeAnalysisPermissions.go index 329e57b9628..c2880d73bdb 100644 --- a/service/quicksight/api_op_DescribeAnalysisPermissions.go +++ b/service/quicksight/api_op_DescribeAnalysisPermissions.go @@ -53,13 +53,13 @@ type DescribeAnalysisPermissionsOutput struct { // A structure that describes the principals and the resource-level permissions on // an analysis. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeDashboard.go b/service/quicksight/api_op_DescribeDashboard.go index 8938886d253..234aa7d78dc 100644 --- a/service/quicksight/api_op_DescribeDashboard.go +++ b/service/quicksight/api_op_DescribeDashboard.go @@ -56,7 +56,7 @@ type DescribeDashboardOutput struct { RequestId *string // The HTTP status of this request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeDashboardPermissions.go b/service/quicksight/api_op_DescribeDashboardPermissions.go index 601601e3ad1..f6f0fd06d8b 100644 --- a/service/quicksight/api_op_DescribeDashboardPermissions.go +++ b/service/quicksight/api_op_DescribeDashboardPermissions.go @@ -50,13 +50,13 @@ type DescribeDashboardPermissionsOutput struct { DashboardId *string // A structure that contains the permissions for the dashboard. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeDataSet.go b/service/quicksight/api_op_DescribeDataSet.go index f535e92f6e2..88e2a95bbe7 100644 --- a/service/quicksight/api_op_DescribeDataSet.go +++ b/service/quicksight/api_op_DescribeDataSet.go @@ -50,7 +50,7 @@ type DescribeDataSetOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeDataSetPermissions.go b/service/quicksight/api_op_DescribeDataSetPermissions.go index 55db365d292..3c9836b26a7 100644 --- a/service/quicksight/api_op_DescribeDataSetPermissions.go +++ b/service/quicksight/api_op_DescribeDataSetPermissions.go @@ -52,13 +52,13 @@ type DescribeDataSetPermissionsOutput struct { DataSetId *string // A list of resource permissions on the dataset. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeDataSource.go b/service/quicksight/api_op_DescribeDataSource.go index 499dc2d3c89..cfbcd3d65f4 100644 --- a/service/quicksight/api_op_DescribeDataSource.go +++ b/service/quicksight/api_op_DescribeDataSource.go @@ -50,7 +50,7 @@ type DescribeDataSourceOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeDataSourcePermissions.go b/service/quicksight/api_op_DescribeDataSourcePermissions.go index 0365fe7c1fb..d9d56153a1e 100644 --- a/service/quicksight/api_op_DescribeDataSourcePermissions.go +++ b/service/quicksight/api_op_DescribeDataSourcePermissions.go @@ -51,13 +51,13 @@ type DescribeDataSourcePermissionsOutput struct { DataSourceId *string // A list of resource permissions on the data source. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeGroup.go b/service/quicksight/api_op_DescribeGroup.go index 3d9e0a18b3f..6a0c09250b9 100644 --- a/service/quicksight/api_op_DescribeGroup.go +++ b/service/quicksight/api_op_DescribeGroup.go @@ -55,7 +55,7 @@ type DescribeGroupOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeIAMPolicyAssignment.go b/service/quicksight/api_op_DescribeIAMPolicyAssignment.go index cae6f3b5793..5afe7ca9de3 100644 --- a/service/quicksight/api_op_DescribeIAMPolicyAssignment.go +++ b/service/quicksight/api_op_DescribeIAMPolicyAssignment.go @@ -56,7 +56,7 @@ type DescribeIAMPolicyAssignmentOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeIngestion.go b/service/quicksight/api_op_DescribeIngestion.go index cfdfc9a9a3d..7abb71933eb 100644 --- a/service/quicksight/api_op_DescribeIngestion.go +++ b/service/quicksight/api_op_DescribeIngestion.go @@ -54,7 +54,7 @@ type DescribeIngestionOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeNamespace.go b/service/quicksight/api_op_DescribeNamespace.go index d8a9780b1b0..3b7fb527f9d 100644 --- a/service/quicksight/api_op_DescribeNamespace.go +++ b/service/quicksight/api_op_DescribeNamespace.go @@ -54,7 +54,7 @@ type DescribeNamespaceOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_DescribeTemplate.go b/service/quicksight/api_op_DescribeTemplate.go index 53c15ceed16..2e99776caf4 100644 --- a/service/quicksight/api_op_DescribeTemplate.go +++ b/service/quicksight/api_op_DescribeTemplate.go @@ -56,7 +56,7 @@ type DescribeTemplateOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The template structure for the object you want to describe. Template *types.Template diff --git a/service/quicksight/api_op_DescribeTemplateAlias.go b/service/quicksight/api_op_DescribeTemplateAlias.go index aa2444f76db..2b692d86146 100644 --- a/service/quicksight/api_op_DescribeTemplateAlias.go +++ b/service/quicksight/api_op_DescribeTemplateAlias.go @@ -55,7 +55,7 @@ type DescribeTemplateAliasOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Information about the template alias. TemplateAlias *types.TemplateAlias diff --git a/service/quicksight/api_op_DescribeTemplatePermissions.go b/service/quicksight/api_op_DescribeTemplatePermissions.go index ae49f68c3f0..04a847a3999 100644 --- a/service/quicksight/api_op_DescribeTemplatePermissions.go +++ b/service/quicksight/api_op_DescribeTemplatePermissions.go @@ -43,13 +43,13 @@ type DescribeTemplatePermissionsInput struct { type DescribeTemplatePermissionsOutput struct { // A list of resource permissions to be set on the template. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The Amazon Resource Name (ARN) of the template. TemplateArn *string diff --git a/service/quicksight/api_op_DescribeTheme.go b/service/quicksight/api_op_DescribeTheme.go index 47d6a09458d..72b5350e397 100644 --- a/service/quicksight/api_op_DescribeTheme.go +++ b/service/quicksight/api_op_DescribeTheme.go @@ -56,7 +56,7 @@ type DescribeThemeOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The information about the theme that you are describing. Theme *types.Theme diff --git a/service/quicksight/api_op_DescribeThemeAlias.go b/service/quicksight/api_op_DescribeThemeAlias.go index f3b7a4ee0e4..8cafe9898f7 100644 --- a/service/quicksight/api_op_DescribeThemeAlias.go +++ b/service/quicksight/api_op_DescribeThemeAlias.go @@ -51,7 +51,7 @@ type DescribeThemeAliasOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Information about the theme alias. ThemeAlias *types.ThemeAlias diff --git a/service/quicksight/api_op_DescribeThemePermissions.go b/service/quicksight/api_op_DescribeThemePermissions.go index f0163fd63d2..5d9e05dcfa4 100644 --- a/service/quicksight/api_op_DescribeThemePermissions.go +++ b/service/quicksight/api_op_DescribeThemePermissions.go @@ -43,13 +43,13 @@ type DescribeThemePermissionsInput struct { type DescribeThemePermissionsOutput struct { // A list of resource permissions set on the theme. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The Amazon Resource Name (ARN) of the theme. ThemeArn *string diff --git a/service/quicksight/api_op_DescribeUser.go b/service/quicksight/api_op_DescribeUser.go index 11de7102af6..16da0cd13ce 100644 --- a/service/quicksight/api_op_DescribeUser.go +++ b/service/quicksight/api_op_DescribeUser.go @@ -52,7 +52,7 @@ type DescribeUserOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The user name. User *types.User diff --git a/service/quicksight/api_op_GetDashboardEmbedUrl.go b/service/quicksight/api_op_GetDashboardEmbedUrl.go index 682fb89ba31..ef2659bdb06 100644 --- a/service/quicksight/api_op_GetDashboardEmbedUrl.go +++ b/service/quicksight/api_op_GetDashboardEmbedUrl.go @@ -66,7 +66,7 @@ type GetDashboardEmbedUrlInput struct { // Remove the reset button on the embedded dashboard. The default is FALSE, which // enables the reset button. - ResetDisabled *bool + ResetDisabled bool // How many minutes the session is valid. The session lifetime must be 15-600 // minutes. @@ -74,7 +74,7 @@ type GetDashboardEmbedUrlInput struct { // Remove the undo/redo button on the embedded dashboard. The default is FALSE, // which enables the undo/redo button. - UndoRedoDisabled *bool + UndoRedoDisabled bool // The Amazon QuickSight user's Amazon Resource Name (ARN), for use with QUICKSIGHT // identity type. You can use this for any Amazon QuickSight users in your account @@ -106,7 +106,7 @@ type GetDashboardEmbedUrlOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_GetSessionEmbedUrl.go b/service/quicksight/api_op_GetSessionEmbedUrl.go index 8f03bef2505..e0e94f84248 100644 --- a/service/quicksight/api_op_GetSessionEmbedUrl.go +++ b/service/quicksight/api_op_GetSessionEmbedUrl.go @@ -104,7 +104,7 @@ type GetSessionEmbedUrlOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListAnalyses.go b/service/quicksight/api_op_ListAnalyses.go index 0e3caeaa765..f529e99345b 100644 --- a/service/quicksight/api_op_ListAnalyses.go +++ b/service/quicksight/api_op_ListAnalyses.go @@ -35,7 +35,7 @@ type ListAnalysesInput struct { AwsAccountId *string // The maximum number of results to return. - MaxResults *int32 + MaxResults int32 // A pagination token that can be used in a subsequent request. NextToken *string @@ -44,7 +44,7 @@ type ListAnalysesInput struct { type ListAnalysesOutput struct { // Metadata describing each of the analyses that are listed. - AnalysisSummaryList []*types.AnalysisSummary + AnalysisSummaryList []types.AnalysisSummary // A pagination token that can be used in a subsequent request. NextToken *string @@ -53,7 +53,7 @@ type ListAnalysesOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListDashboardVersions.go b/service/quicksight/api_op_ListDashboardVersions.go index fbfd5a7dd5e..1938f30d4be 100644 --- a/service/quicksight/api_op_ListDashboardVersions.go +++ b/service/quicksight/api_op_ListDashboardVersions.go @@ -41,7 +41,7 @@ type ListDashboardVersionsInput struct { DashboardId *string // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -50,7 +50,7 @@ type ListDashboardVersionsInput struct { type ListDashboardVersionsOutput struct { // A structure that contains information about each version of the dashboard. - DashboardVersionSummaryList []*types.DashboardVersionSummary + DashboardVersionSummaryList []types.DashboardVersionSummary // The token for the next set of results, or null if there are no more results. NextToken *string @@ -59,7 +59,7 @@ type ListDashboardVersionsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListDashboards.go b/service/quicksight/api_op_ListDashboards.go index d6674af774a..502bae0d866 100644 --- a/service/quicksight/api_op_ListDashboards.go +++ b/service/quicksight/api_op_ListDashboards.go @@ -35,7 +35,7 @@ type ListDashboardsInput struct { AwsAccountId *string // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -45,7 +45,7 @@ type ListDashboardsOutput struct { // A structure that contains all of the dashboards in your AWS account. This // structure provides basic information about the dashboards. - DashboardSummaryList []*types.DashboardSummary + DashboardSummaryList []types.DashboardSummary // The token for the next set of results, or null if there are no more results. NextToken *string @@ -54,7 +54,7 @@ type ListDashboardsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListDataSets.go b/service/quicksight/api_op_ListDataSets.go index 7d2df7b4e9a..8efc2c31e76 100644 --- a/service/quicksight/api_op_ListDataSets.go +++ b/service/quicksight/api_op_ListDataSets.go @@ -36,7 +36,7 @@ type ListDataSetsInput struct { AwsAccountId *string // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -45,7 +45,7 @@ type ListDataSetsInput struct { type ListDataSetsOutput struct { // The list of dataset summaries. - DataSetSummaries []*types.DataSetSummary + DataSetSummaries []types.DataSetSummary // The token for the next set of results, or null if there are no more results. NextToken *string @@ -54,7 +54,7 @@ type ListDataSetsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListDataSources.go b/service/quicksight/api_op_ListDataSources.go index d971d54be3f..f735330a964 100644 --- a/service/quicksight/api_op_ListDataSources.go +++ b/service/quicksight/api_op_ListDataSources.go @@ -35,7 +35,7 @@ type ListDataSourcesInput struct { AwsAccountId *string // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -44,7 +44,7 @@ type ListDataSourcesInput struct { type ListDataSourcesOutput struct { // A list of data sources. - DataSources []*types.DataSource + DataSources []types.DataSource // The token for the next set of results, or null if there are no more results. NextToken *string @@ -53,7 +53,7 @@ type ListDataSourcesOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListGroupMemberships.go b/service/quicksight/api_op_ListGroupMemberships.go index 362e62dc581..ae91e8ee9f4 100644 --- a/service/quicksight/api_op_ListGroupMemberships.go +++ b/service/quicksight/api_op_ListGroupMemberships.go @@ -46,7 +46,7 @@ type ListGroupMembershipsInput struct { Namespace *string // The maximum number of results to return from this request. - MaxResults *int32 + MaxResults int32 // A pagination token that can be used in a subsequent request. NextToken *string @@ -55,7 +55,7 @@ type ListGroupMembershipsInput struct { type ListGroupMembershipsOutput struct { // The list of the members of the group. - GroupMemberList []*types.GroupMember + GroupMemberList []types.GroupMember // A pagination token that can be used in a subsequent request. NextToken *string @@ -64,7 +64,7 @@ type ListGroupMembershipsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListGroups.go b/service/quicksight/api_op_ListGroups.go index 58066cf1b6b..94dd459e61e 100644 --- a/service/quicksight/api_op_ListGroups.go +++ b/service/quicksight/api_op_ListGroups.go @@ -41,7 +41,7 @@ type ListGroupsInput struct { Namespace *string // The maximum number of results to return. - MaxResults *int32 + MaxResults int32 // A pagination token that can be used in a subsequent request. NextToken *string @@ -50,7 +50,7 @@ type ListGroupsInput struct { type ListGroupsOutput struct { // The list of the groups. - GroupList []*types.Group + GroupList []types.Group // A pagination token that can be used in a subsequent request. NextToken *string @@ -59,7 +59,7 @@ type ListGroupsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListIAMPolicyAssignments.go b/service/quicksight/api_op_ListIAMPolicyAssignments.go index d65e8da2293..34484418410 100644 --- a/service/quicksight/api_op_ListIAMPolicyAssignments.go +++ b/service/quicksight/api_op_ListIAMPolicyAssignments.go @@ -43,7 +43,7 @@ type ListIAMPolicyAssignmentsInput struct { AssignmentStatus types.AssignmentStatus // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -52,7 +52,7 @@ type ListIAMPolicyAssignmentsInput struct { type ListIAMPolicyAssignmentsOutput struct { // Information describing the IAM policy assignments. - IAMPolicyAssignments []*types.IAMPolicyAssignmentSummary + IAMPolicyAssignments []types.IAMPolicyAssignmentSummary // The token for the next set of results, or null if there are no more results. NextToken *string @@ -61,7 +61,7 @@ type ListIAMPolicyAssignmentsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go b/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go index 17b10f4cebd..c5bf3875009 100644 --- a/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go +++ b/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go @@ -47,7 +47,7 @@ type ListIAMPolicyAssignmentsForUserInput struct { UserName *string // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -56,7 +56,7 @@ type ListIAMPolicyAssignmentsForUserInput struct { type ListIAMPolicyAssignmentsForUserOutput struct { // The active assignments for this user. - ActiveAssignments []*types.ActiveIAMPolicyAssignment + ActiveAssignments []types.ActiveIAMPolicyAssignment // The token for the next set of results, or null if there are no more results. NextToken *string @@ -65,7 +65,7 @@ type ListIAMPolicyAssignmentsForUserOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListIngestions.go b/service/quicksight/api_op_ListIngestions.go index 728228700bd..bdbe1629c14 100644 --- a/service/quicksight/api_op_ListIngestions.go +++ b/service/quicksight/api_op_ListIngestions.go @@ -40,7 +40,7 @@ type ListIngestionsInput struct { DataSetId *string // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -49,7 +49,7 @@ type ListIngestionsInput struct { type ListIngestionsOutput struct { // A list of the ingestions. - Ingestions []*types.Ingestion + Ingestions []types.Ingestion // The token for the next set of results, or null if there are no more results. NextToken *string @@ -58,7 +58,7 @@ type ListIngestionsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListNamespaces.go b/service/quicksight/api_op_ListNamespaces.go index 2f0c949e20c..acccfcdfa47 100644 --- a/service/quicksight/api_op_ListNamespaces.go +++ b/service/quicksight/api_op_ListNamespaces.go @@ -36,7 +36,7 @@ type ListNamespacesInput struct { AwsAccountId *string // The maximum number of results to return. - MaxResults *int32 + MaxResults int32 // A pagination token that can be used in a subsequent request. NextToken *string @@ -47,7 +47,7 @@ type ListNamespacesOutput struct { // The information about the namespaces in this AWS account. The response includes // the namespace ARN, name, AWS Region, notification email address, creation // status, and identity store. - Namespaces []*types.NamespaceInfoV2 + Namespaces []types.NamespaceInfoV2 // A pagination token that can be used in a subsequent request. NextToken *string @@ -56,7 +56,7 @@ type ListNamespacesOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListTagsForResource.go b/service/quicksight/api_op_ListTagsForResource.go index 05f649cbd94..3d909e5a60b 100644 --- a/service/quicksight/api_op_ListTagsForResource.go +++ b/service/quicksight/api_op_ListTagsForResource.go @@ -41,11 +41,11 @@ type ListTagsForResourceOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Contains a map of the key-value pairs for the resource tag or tags assigned to // the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListTemplateAliases.go b/service/quicksight/api_op_ListTemplateAliases.go index 2009b4cad3f..b7872b4bd52 100644 --- a/service/quicksight/api_op_ListTemplateAliases.go +++ b/service/quicksight/api_op_ListTemplateAliases.go @@ -41,7 +41,7 @@ type ListTemplateAliasesInput struct { TemplateId *string // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -56,10 +56,10 @@ type ListTemplateAliasesOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // A structure containing the list of the template's aliases. - TemplateAliasList []*types.TemplateAlias + TemplateAliasList []types.TemplateAlias // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListTemplateVersions.go b/service/quicksight/api_op_ListTemplateVersions.go index d7637420bf4..af51808161c 100644 --- a/service/quicksight/api_op_ListTemplateVersions.go +++ b/service/quicksight/api_op_ListTemplateVersions.go @@ -41,7 +41,7 @@ type ListTemplateVersionsInput struct { TemplateId *string // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -56,10 +56,10 @@ type ListTemplateVersionsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // A structure containing a list of all the versions of the specified template. - TemplateVersionSummaryList []*types.TemplateVersionSummary + TemplateVersionSummaryList []types.TemplateVersionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListTemplates.go b/service/quicksight/api_op_ListTemplates.go index c95722f9d9a..9d88762f805 100644 --- a/service/quicksight/api_op_ListTemplates.go +++ b/service/quicksight/api_op_ListTemplates.go @@ -35,7 +35,7 @@ type ListTemplatesInput struct { AwsAccountId *string // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -50,10 +50,10 @@ type ListTemplatesOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // A structure containing information about the templates in the list. - TemplateSummaryList []*types.TemplateSummary + TemplateSummaryList []types.TemplateSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListThemeAliases.go b/service/quicksight/api_op_ListThemeAliases.go index 7db2642c773..634317b61b6 100644 --- a/service/quicksight/api_op_ListThemeAliases.go +++ b/service/quicksight/api_op_ListThemeAliases.go @@ -40,7 +40,7 @@ type ListThemeAliasesInput struct { ThemeId *string // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -55,10 +55,10 @@ type ListThemeAliasesOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // A structure containing the list of the theme's aliases. - ThemeAliasList []*types.ThemeAlias + ThemeAliasList []types.ThemeAlias // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListThemeVersions.go b/service/quicksight/api_op_ListThemeVersions.go index af2f5db2a10..47cb0ebf020 100644 --- a/service/quicksight/api_op_ListThemeVersions.go +++ b/service/quicksight/api_op_ListThemeVersions.go @@ -40,7 +40,7 @@ type ListThemeVersionsInput struct { ThemeId *string // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -55,10 +55,10 @@ type ListThemeVersionsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // A structure containing a list of all the versions of the specified theme. - ThemeVersionSummaryList []*types.ThemeVersionSummary + ThemeVersionSummaryList []types.ThemeVersionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListThemes.go b/service/quicksight/api_op_ListThemes.go index be66b726ad5..4aca0ffb97d 100644 --- a/service/quicksight/api_op_ListThemes.go +++ b/service/quicksight/api_op_ListThemes.go @@ -35,7 +35,7 @@ type ListThemesInput struct { AwsAccountId *string // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -62,10 +62,10 @@ type ListThemesOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Information about the themes in the list. - ThemeSummaryList []*types.ThemeSummary + ThemeSummaryList []types.ThemeSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListUserGroups.go b/service/quicksight/api_op_ListUserGroups.go index 34b6e8f5c17..1eaf9e45b3f 100644 --- a/service/quicksight/api_op_ListUserGroups.go +++ b/service/quicksight/api_op_ListUserGroups.go @@ -47,7 +47,7 @@ type ListUserGroupsInput struct { UserName *string // The maximum number of results to return from this request. - MaxResults *int32 + MaxResults int32 // A pagination token that can be used in a subsequent request. NextToken *string @@ -56,7 +56,7 @@ type ListUserGroupsInput struct { type ListUserGroupsOutput struct { // The list of groups the user is a member of. - GroupList []*types.Group + GroupList []types.Group // A pagination token that can be used in a subsequent request. NextToken *string @@ -65,7 +65,7 @@ type ListUserGroupsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_ListUsers.go b/service/quicksight/api_op_ListUsers.go index 45117bf49a4..03535f57a58 100644 --- a/service/quicksight/api_op_ListUsers.go +++ b/service/quicksight/api_op_ListUsers.go @@ -41,7 +41,7 @@ type ListUsersInput struct { Namespace *string // The maximum number of results to return from this request. - MaxResults *int32 + MaxResults int32 // A pagination token that can be used in a subsequent request. NextToken *string @@ -56,10 +56,10 @@ type ListUsersOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The list of users. - UserList []*types.User + UserList []types.User // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_RegisterUser.go b/service/quicksight/api_op_RegisterUser.go index 7adb15d9cc8..571e177aeff 100644 --- a/service/quicksight/api_op_RegisterUser.go +++ b/service/quicksight/api_op_RegisterUser.go @@ -128,7 +128,7 @@ type RegisterUserOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The user's user name. User *types.User diff --git a/service/quicksight/api_op_RestoreAnalysis.go b/service/quicksight/api_op_RestoreAnalysis.go index 751db579833..878fa12fb70 100644 --- a/service/quicksight/api_op_RestoreAnalysis.go +++ b/service/quicksight/api_op_RestoreAnalysis.go @@ -51,7 +51,7 @@ type RestoreAnalysisOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_SearchAnalyses.go b/service/quicksight/api_op_SearchAnalyses.go index fa399b2105d..30763cbc39d 100644 --- a/service/quicksight/api_op_SearchAnalyses.go +++ b/service/quicksight/api_op_SearchAnalyses.go @@ -37,10 +37,10 @@ type SearchAnalysesInput struct { // The structure for the search filters that you want to apply to your search. // // This member is required. - Filters []*types.AnalysisSearchFilter + Filters []types.AnalysisSearchFilter // The maximum number of results to return. - MaxResults *int32 + MaxResults int32 // A pagination token that can be used in a subsequent request. NextToken *string @@ -49,7 +49,7 @@ type SearchAnalysesInput struct { type SearchAnalysesOutput struct { // Metadata describing the analyses that you searched for. - AnalysisSummaryList []*types.AnalysisSummary + AnalysisSummaryList []types.AnalysisSummary // A pagination token that can be used in a subsequent request. NextToken *string @@ -58,7 +58,7 @@ type SearchAnalysesOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_SearchDashboards.go b/service/quicksight/api_op_SearchDashboards.go index 726eb5ed832..08e928245b1 100644 --- a/service/quicksight/api_op_SearchDashboards.go +++ b/service/quicksight/api_op_SearchDashboards.go @@ -41,10 +41,10 @@ type SearchDashboardsInput struct { // } ] // // This member is required. - Filters []*types.DashboardSearchFilter + Filters []types.DashboardSearchFilter // The maximum number of results to be returned per request. - MaxResults *int32 + MaxResults int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -53,7 +53,7 @@ type SearchDashboardsInput struct { type SearchDashboardsOutput struct { // The list of dashboards owned by the user specified in Filters in your request. - DashboardSummaryList []*types.DashboardSummary + DashboardSummaryList []types.DashboardSummary // The token for the next set of results, or null if there are no more results. NextToken *string @@ -62,7 +62,7 @@ type SearchDashboardsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_TagResource.go b/service/quicksight/api_op_TagResource.go index cf99cb4d284..fee52f4df49 100644 --- a/service/quicksight/api_op_TagResource.go +++ b/service/quicksight/api_op_TagResource.go @@ -56,7 +56,7 @@ type TagResourceInput struct { // the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { @@ -65,7 +65,7 @@ type TagResourceOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_UntagResource.go b/service/quicksight/api_op_UntagResource.go index f451443ea69..42bdcf5a349 100644 --- a/service/quicksight/api_op_UntagResource.go +++ b/service/quicksight/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { @@ -46,7 +46,7 @@ type UntagResourceOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_UpdateAccountCustomization.go b/service/quicksight/api_op_UpdateAccountCustomization.go index 74fea36bce2..c0bb14c184c 100644 --- a/service/quicksight/api_op_UpdateAccountCustomization.go +++ b/service/quicksight/api_op_UpdateAccountCustomization.go @@ -69,7 +69,7 @@ type UpdateAccountCustomizationOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_UpdateAccountSettings.go b/service/quicksight/api_op_UpdateAccountSettings.go index 773aa23193c..fc2360b297f 100644 --- a/service/quicksight/api_op_UpdateAccountSettings.go +++ b/service/quicksight/api_op_UpdateAccountSettings.go @@ -53,7 +53,7 @@ type UpdateAccountSettingsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_UpdateAnalysis.go b/service/quicksight/api_op_UpdateAnalysis.go index aec62f97c00..c4252e655ee 100644 --- a/service/quicksight/api_op_UpdateAnalysis.go +++ b/service/quicksight/api_op_UpdateAnalysis.go @@ -75,7 +75,7 @@ type UpdateAnalysisOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The update status of the last update that was made to the analysis. UpdateStatus types.ResourceStatus diff --git a/service/quicksight/api_op_UpdateAnalysisPermissions.go b/service/quicksight/api_op_UpdateAnalysisPermissions.go index 7ff68f1e919..5c3e4ccea5d 100644 --- a/service/quicksight/api_op_UpdateAnalysisPermissions.go +++ b/service/quicksight/api_op_UpdateAnalysisPermissions.go @@ -43,11 +43,11 @@ type UpdateAnalysisPermissionsInput struct { // A structure that describes the permissions to add and the principal to add them // to. - GrantPermissions []*types.ResourcePermission + GrantPermissions []types.ResourcePermission // A structure that describes the permissions to remove and the principal to remove // them from. - RevokePermissions []*types.ResourcePermission + RevokePermissions []types.ResourcePermission } type UpdateAnalysisPermissionsOutput struct { @@ -60,13 +60,13 @@ type UpdateAnalysisPermissionsOutput struct { // A structure that describes the principals and the resource-level permissions on // an analysis. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_UpdateDashboard.go b/service/quicksight/api_op_UpdateDashboard.go index e5cca0c5827..dfc05db6b23 100644 --- a/service/quicksight/api_op_UpdateDashboard.go +++ b/service/quicksight/api_op_UpdateDashboard.go @@ -105,7 +105,7 @@ type UpdateDashboardOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The ARN of the dashboard, including the version number. VersionArn *string diff --git a/service/quicksight/api_op_UpdateDashboardPermissions.go b/service/quicksight/api_op_UpdateDashboardPermissions.go index 746f1e671b7..afa10d41ddc 100644 --- a/service/quicksight/api_op_UpdateDashboardPermissions.go +++ b/service/quicksight/api_op_UpdateDashboardPermissions.go @@ -41,10 +41,10 @@ type UpdateDashboardPermissionsInput struct { DashboardId *string // The permissions that you want to grant on this resource. - GrantPermissions []*types.ResourcePermission + GrantPermissions []types.ResourcePermission // The permissions that you want to revoke from this resource. - RevokePermissions []*types.ResourcePermission + RevokePermissions []types.ResourcePermission } type UpdateDashboardPermissionsOutput struct { @@ -56,13 +56,13 @@ type UpdateDashboardPermissionsOutput struct { DashboardId *string // Information about the permissions on the dashboard. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_UpdateDashboardPublishedVersion.go b/service/quicksight/api_op_UpdateDashboardPublishedVersion.go index ee6f4d141a7..0a790163dcb 100644 --- a/service/quicksight/api_op_UpdateDashboardPublishedVersion.go +++ b/service/quicksight/api_op_UpdateDashboardPublishedVersion.go @@ -56,7 +56,7 @@ type UpdateDashboardPublishedVersionOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_UpdateDataSet.go b/service/quicksight/api_op_UpdateDataSet.go index 006a0ca0dc3..7166e17ee7e 100644 --- a/service/quicksight/api_op_UpdateDataSet.go +++ b/service/quicksight/api_op_UpdateDataSet.go @@ -53,15 +53,15 @@ type UpdateDataSetInput struct { // Declares the physical tables that are available in the underlying data sources. // // This member is required. - PhysicalTableMap map[string]*types.PhysicalTable + PhysicalTableMap map[string]types.PhysicalTable // Groupings of columns that work together in certain QuickSight features. // Currently, only geospatial hierarchy is supported. - ColumnGroups []*types.ColumnGroup + ColumnGroups []types.ColumnGroup // Configures the combination and transformation of the data from the physical // tables. - LogicalTableMap map[string]*types.LogicalTable + LogicalTableMap map[string]types.LogicalTable // The row-level security configuration for the data you want to create. RowLevelPermissionDataSet *types.RowLevelPermissionDataSet @@ -88,7 +88,7 @@ type UpdateDataSetOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_UpdateDataSetPermissions.go b/service/quicksight/api_op_UpdateDataSetPermissions.go index aabd4cdda6a..617f07e91ae 100644 --- a/service/quicksight/api_op_UpdateDataSetPermissions.go +++ b/service/quicksight/api_op_UpdateDataSetPermissions.go @@ -42,10 +42,10 @@ type UpdateDataSetPermissionsInput struct { DataSetId *string // The resource permissions that you want to grant to the dataset. - GrantPermissions []*types.ResourcePermission + GrantPermissions []types.ResourcePermission // The resource permissions that you want to revoke from the dataset. - RevokePermissions []*types.ResourcePermission + RevokePermissions []types.ResourcePermission } type UpdateDataSetPermissionsOutput struct { @@ -61,7 +61,7 @@ type UpdateDataSetPermissionsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_UpdateDataSource.go b/service/quicksight/api_op_UpdateDataSource.go index 50bce6b9850..22014960fbc 100644 --- a/service/quicksight/api_op_UpdateDataSource.go +++ b/service/quicksight/api_op_UpdateDataSource.go @@ -74,7 +74,7 @@ type UpdateDataSourceOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The update status of the data source's last update. UpdateStatus types.ResourceStatus diff --git a/service/quicksight/api_op_UpdateDataSourcePermissions.go b/service/quicksight/api_op_UpdateDataSourcePermissions.go index 3200c168fe9..4e1a4afd6b9 100644 --- a/service/quicksight/api_op_UpdateDataSourcePermissions.go +++ b/service/quicksight/api_op_UpdateDataSourcePermissions.go @@ -41,10 +41,10 @@ type UpdateDataSourcePermissionsInput struct { DataSourceId *string // A list of resource permissions that you want to grant on the data source. - GrantPermissions []*types.ResourcePermission + GrantPermissions []types.ResourcePermission // A list of resource permissions that you want to revoke on the data source. - RevokePermissions []*types.ResourcePermission + RevokePermissions []types.ResourcePermission } type UpdateDataSourcePermissionsOutput struct { @@ -60,7 +60,7 @@ type UpdateDataSourcePermissionsOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_UpdateGroup.go b/service/quicksight/api_op_UpdateGroup.go index d7134bd1f68..8e600d51f5a 100644 --- a/service/quicksight/api_op_UpdateGroup.go +++ b/service/quicksight/api_op_UpdateGroup.go @@ -58,7 +58,7 @@ type UpdateGroupOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_UpdateIAMPolicyAssignment.go b/service/quicksight/api_op_UpdateIAMPolicyAssignment.go index 94317d041e6..f96b21dbbad 100644 --- a/service/quicksight/api_op_UpdateIAMPolicyAssignment.go +++ b/service/quicksight/api_op_UpdateIAMPolicyAssignment.go @@ -59,7 +59,7 @@ type UpdateIAMPolicyAssignmentInput struct { AssignmentStatus types.AssignmentStatus // The QuickSight users, groups, or both that you want to assign the policy to. - Identities map[string][]*string + Identities map[string][]string // The ARN for the IAM policy to apply to the QuickSight users and groups specified // in this assignment. @@ -88,7 +88,7 @@ type UpdateIAMPolicyAssignmentOutput struct { AssignmentStatus types.AssignmentStatus // The QuickSight users, groups, or both that the IAM policy is assigned to. - Identities map[string][]*string + Identities map[string][]string // The ARN for the IAM policy applied to the QuickSight users and groups specified // in this assignment. @@ -98,7 +98,7 @@ type UpdateIAMPolicyAssignmentOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/quicksight/api_op_UpdateTemplate.go b/service/quicksight/api_op_UpdateTemplate.go index bbbeb7a9bfc..491739a3fac 100644 --- a/service/quicksight/api_op_UpdateTemplate.go +++ b/service/quicksight/api_op_UpdateTemplate.go @@ -75,7 +75,7 @@ type UpdateTemplateOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The ID for the template. TemplateId *string diff --git a/service/quicksight/api_op_UpdateTemplateAlias.go b/service/quicksight/api_op_UpdateTemplateAlias.go index cc804ea02b0..bd11b14013c 100644 --- a/service/quicksight/api_op_UpdateTemplateAlias.go +++ b/service/quicksight/api_op_UpdateTemplateAlias.go @@ -59,7 +59,7 @@ type UpdateTemplateAliasOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The template alias. TemplateAlias *types.TemplateAlias diff --git a/service/quicksight/api_op_UpdateTemplatePermissions.go b/service/quicksight/api_op_UpdateTemplatePermissions.go index ccc797cf9ab..a69202f35de 100644 --- a/service/quicksight/api_op_UpdateTemplatePermissions.go +++ b/service/quicksight/api_op_UpdateTemplatePermissions.go @@ -40,22 +40,22 @@ type UpdateTemplatePermissionsInput struct { TemplateId *string // A list of resource permissions to be granted on the template. - GrantPermissions []*types.ResourcePermission + GrantPermissions []types.ResourcePermission // A list of resource permissions to be revoked from the template. - RevokePermissions []*types.ResourcePermission + RevokePermissions []types.ResourcePermission } type UpdateTemplatePermissionsOutput struct { // A list of resource permissions to be set on the template. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The Amazon Resource Name (ARN) of the template. TemplateArn *string diff --git a/service/quicksight/api_op_UpdateTheme.go b/service/quicksight/api_op_UpdateTheme.go index d88b5582f83..1a100983aa0 100644 --- a/service/quicksight/api_op_UpdateTheme.go +++ b/service/quicksight/api_op_UpdateTheme.go @@ -69,7 +69,7 @@ type UpdateThemeOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The ID for the theme. ThemeId *string diff --git a/service/quicksight/api_op_UpdateThemeAlias.go b/service/quicksight/api_op_UpdateThemeAlias.go index 32267d2f132..7161379cd96 100644 --- a/service/quicksight/api_op_UpdateThemeAlias.go +++ b/service/quicksight/api_op_UpdateThemeAlias.go @@ -56,7 +56,7 @@ type UpdateThemeAliasOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // Information about the theme alias. ThemeAlias *types.ThemeAlias diff --git a/service/quicksight/api_op_UpdateThemePermissions.go b/service/quicksight/api_op_UpdateThemePermissions.go index 252f98ed10a..a6d7ebeed01 100644 --- a/service/quicksight/api_op_UpdateThemePermissions.go +++ b/service/quicksight/api_op_UpdateThemePermissions.go @@ -88,22 +88,22 @@ type UpdateThemePermissionsInput struct { ThemeId *string // A list of resource permissions to be granted for the theme. - GrantPermissions []*types.ResourcePermission + GrantPermissions []types.ResourcePermission // A list of resource permissions to be revoked from the theme. - RevokePermissions []*types.ResourcePermission + RevokePermissions []types.ResourcePermission } type UpdateThemePermissionsOutput struct { // The resulting list of resource permissions for the theme. - Permissions []*types.ResourcePermission + Permissions []types.ResourcePermission // The AWS request ID for this operation. RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The Amazon Resource Name (ARN) of the theme. ThemeArn *string diff --git a/service/quicksight/api_op_UpdateUser.go b/service/quicksight/api_op_UpdateUser.go index 9a101db6b8f..1d2a37a2ad6 100644 --- a/service/quicksight/api_op_UpdateUser.go +++ b/service/quicksight/api_op_UpdateUser.go @@ -97,7 +97,7 @@ type UpdateUserInput struct { // from this user. Using this parameter resets the user to the state it was in // before a custom permissions profile was applied. This parameter defaults to NULL // and it doesn't accept any other value. - UnapplyCustomPermissions *bool + UnapplyCustomPermissions bool } type UpdateUserOutput struct { @@ -106,7 +106,7 @@ type UpdateUserOutput struct { RequestId *string // The HTTP status of the request. - Status *int32 + Status int32 // The Amazon QuickSight user. User *types.User diff --git a/service/quicksight/deserializers.go b/service/quicksight/deserializers.go index 80577f8dbc8..c046f06f119 100644 --- a/service/quicksight/deserializers.go +++ b/service/quicksight/deserializers.go @@ -155,7 +155,7 @@ func awsRestjson1_deserializeOpHttpBindingsCancelIngestionOutput(v *CancelIngest return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -187,7 +187,7 @@ func awsRestjson1_deserializeOpDocumentCancelIngestionOutput(v **CancelIngestion if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "IngestionId": @@ -196,7 +196,7 @@ func awsRestjson1_deserializeOpDocumentCancelIngestionOutput(v **CancelIngestion if !ok { return fmt.Errorf("expected IngestionId to be of type string, got %T instead", value) } - sv.IngestionId = &jtv + sv.IngestionId = ptr.String(jtv) } case "RequestId": @@ -205,7 +205,7 @@ func awsRestjson1_deserializeOpDocumentCancelIngestionOutput(v **CancelIngestion if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -356,7 +356,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateAccountCustomizationOutput(v *C return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -393,7 +393,7 @@ func awsRestjson1_deserializeOpDocumentCreateAccountCustomizationOutput(v **Crea if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AwsAccountId": @@ -402,7 +402,7 @@ func awsRestjson1_deserializeOpDocumentCreateAccountCustomizationOutput(v **Crea if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.AwsAccountId = &jtv + sv.AwsAccountId = ptr.String(jtv) } case "Namespace": @@ -411,7 +411,7 @@ func awsRestjson1_deserializeOpDocumentCreateAccountCustomizationOutput(v **Crea if !ok { return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "RequestId": @@ -420,7 +420,7 @@ func awsRestjson1_deserializeOpDocumentCreateAccountCustomizationOutput(v **Crea if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -571,7 +571,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateAnalysisOutput(v *CreateAnalysi return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -603,7 +603,7 @@ func awsRestjson1_deserializeOpDocumentCreateAnalysisOutput(v **CreateAnalysisOu if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.AnalysisId = &jtv + sv.AnalysisId = ptr.String(jtv) } case "Arn": @@ -612,7 +612,7 @@ func awsRestjson1_deserializeOpDocumentCreateAnalysisOutput(v **CreateAnalysisOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationStatus": @@ -630,7 +630,7 @@ func awsRestjson1_deserializeOpDocumentCreateAnalysisOutput(v **CreateAnalysisOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -781,7 +781,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateDashboardOutput(v *CreateDashbo return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -813,7 +813,7 @@ func awsRestjson1_deserializeOpDocumentCreateDashboardOutput(v **CreateDashboard if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationStatus": @@ -831,7 +831,7 @@ func awsRestjson1_deserializeOpDocumentCreateDashboardOutput(v **CreateDashboard if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.DashboardId = &jtv + sv.DashboardId = ptr.String(jtv) } case "RequestId": @@ -840,7 +840,7 @@ func awsRestjson1_deserializeOpDocumentCreateDashboardOutput(v **CreateDashboard if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "VersionArn": @@ -849,7 +849,7 @@ func awsRestjson1_deserializeOpDocumentCreateDashboardOutput(v **CreateDashboard if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.VersionArn = &jtv + sv.VersionArn = ptr.String(jtv) } default: @@ -1006,7 +1006,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateDataSetOutput(v *CreateDataSetO return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -1038,7 +1038,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSetOutput(v **CreateDataSetOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "DataSetId": @@ -1047,7 +1047,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSetOutput(v **CreateDataSetOutp if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "IngestionArn": @@ -1056,7 +1056,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSetOutput(v **CreateDataSetOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.IngestionArn = &jtv + sv.IngestionArn = ptr.String(jtv) } case "IngestionId": @@ -1065,7 +1065,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSetOutput(v **CreateDataSetOutp if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.IngestionId = &jtv + sv.IngestionId = ptr.String(jtv) } case "RequestId": @@ -1074,7 +1074,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSetOutput(v **CreateDataSetOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -1228,7 +1228,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateDataSourceOutput(v *CreateDataS return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -1260,7 +1260,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSourceOutput(v **CreateDataSour if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationStatus": @@ -1278,7 +1278,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSourceOutput(v **CreateDataSour if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataSourceId = &jtv + sv.DataSourceId = ptr.String(jtv) } case "RequestId": @@ -1287,7 +1287,7 @@ func awsRestjson1_deserializeOpDocumentCreateDataSourceOutput(v **CreateDataSour if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -1444,7 +1444,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateGroupOutput(v *CreateGroupOutpu return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -1481,7 +1481,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupOutput(v **CreateGroupOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -1632,7 +1632,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateGroupMembershipOutput(v *Create return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -1669,7 +1669,7 @@ func awsRestjson1_deserializeOpDocumentCreateGroupMembershipOutput(v **CreateGro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -1820,7 +1820,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateIAMPolicyAssignmentOutput(v *Cr return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -1852,7 +1852,7 @@ func awsRestjson1_deserializeOpDocumentCreateIAMPolicyAssignmentOutput(v **Creat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AssignmentId = &jtv + sv.AssignmentId = ptr.String(jtv) } case "AssignmentName": @@ -1861,7 +1861,7 @@ func awsRestjson1_deserializeOpDocumentCreateIAMPolicyAssignmentOutput(v **Creat if !ok { return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) } - sv.AssignmentName = &jtv + sv.AssignmentName = ptr.String(jtv) } case "AssignmentStatus": @@ -1884,7 +1884,7 @@ func awsRestjson1_deserializeOpDocumentCreateIAMPolicyAssignmentOutput(v **Creat if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } case "RequestId": @@ -1893,7 +1893,7 @@ func awsRestjson1_deserializeOpDocumentCreateIAMPolicyAssignmentOutput(v **Creat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -2044,7 +2044,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateIngestionOutput(v *CreateIngest return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -2076,7 +2076,7 @@ func awsRestjson1_deserializeOpDocumentCreateIngestionOutput(v **CreateIngestion if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "IngestionId": @@ -2085,7 +2085,7 @@ func awsRestjson1_deserializeOpDocumentCreateIngestionOutput(v **CreateIngestion if !ok { return fmt.Errorf("expected IngestionId to be of type string, got %T instead", value) } - sv.IngestionId = &jtv + sv.IngestionId = ptr.String(jtv) } case "IngestionStatus": @@ -2103,7 +2103,7 @@ func awsRestjson1_deserializeOpDocumentCreateIngestionOutput(v **CreateIngestion if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -2263,7 +2263,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateNamespaceOutput(v *CreateNamesp return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -2295,7 +2295,7 @@ func awsRestjson1_deserializeOpDocumentCreateNamespaceOutput(v **CreateNamespace if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CapacityRegion": @@ -2304,7 +2304,7 @@ func awsRestjson1_deserializeOpDocumentCreateNamespaceOutput(v **CreateNamespace if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CapacityRegion = &jtv + sv.CapacityRegion = ptr.String(jtv) } case "CreationStatus": @@ -2331,7 +2331,7 @@ func awsRestjson1_deserializeOpDocumentCreateNamespaceOutput(v **CreateNamespace if !ok { return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RequestId": @@ -2340,7 +2340,7 @@ func awsRestjson1_deserializeOpDocumentCreateNamespaceOutput(v **CreateNamespace if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -2497,7 +2497,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateTemplateOutput(v *CreateTemplat return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -2529,7 +2529,7 @@ func awsRestjson1_deserializeOpDocumentCreateTemplateOutput(v **CreateTemplateOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationStatus": @@ -2547,7 +2547,7 @@ func awsRestjson1_deserializeOpDocumentCreateTemplateOutput(v **CreateTemplateOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "TemplateId": @@ -2556,7 +2556,7 @@ func awsRestjson1_deserializeOpDocumentCreateTemplateOutput(v **CreateTemplateOu if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.TemplateId = &jtv + sv.TemplateId = ptr.String(jtv) } case "VersionArn": @@ -2565,7 +2565,7 @@ func awsRestjson1_deserializeOpDocumentCreateTemplateOutput(v **CreateTemplateOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.VersionArn = &jtv + sv.VersionArn = ptr.String(jtv) } default: @@ -2716,7 +2716,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateTemplateAliasOutput(v *CreateTe return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -2748,7 +2748,7 @@ func awsRestjson1_deserializeOpDocumentCreateTemplateAliasOutput(v **CreateTempl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "TemplateAlias": @@ -2907,7 +2907,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateThemeOutput(v *CreateThemeOutpu return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -2939,7 +2939,7 @@ func awsRestjson1_deserializeOpDocumentCreateThemeOutput(v **CreateThemeOutput, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationStatus": @@ -2957,7 +2957,7 @@ func awsRestjson1_deserializeOpDocumentCreateThemeOutput(v **CreateThemeOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ThemeId": @@ -2966,7 +2966,7 @@ func awsRestjson1_deserializeOpDocumentCreateThemeOutput(v **CreateThemeOutput, if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.ThemeId = &jtv + sv.ThemeId = ptr.String(jtv) } case "VersionArn": @@ -2975,7 +2975,7 @@ func awsRestjson1_deserializeOpDocumentCreateThemeOutput(v **CreateThemeOutput, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.VersionArn = &jtv + sv.VersionArn = ptr.String(jtv) } default: @@ -3129,7 +3129,7 @@ func awsRestjson1_deserializeOpHttpBindingsCreateThemeAliasOutput(v *CreateTheme return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -3161,7 +3161,7 @@ func awsRestjson1_deserializeOpDocumentCreateThemeAliasOutput(v **CreateThemeAli if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ThemeAlias": @@ -3314,7 +3314,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteAccountCustomizationOutput(v *D return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -3346,7 +3346,7 @@ func awsRestjson1_deserializeOpDocumentDeleteAccountCustomizationOutput(v **Dele if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -3494,7 +3494,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteAnalysisOutput(v *DeleteAnalysi return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -3526,7 +3526,7 @@ func awsRestjson1_deserializeOpDocumentDeleteAnalysisOutput(v **DeleteAnalysisOu if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.AnalysisId = &jtv + sv.AnalysisId = ptr.String(jtv) } case "Arn": @@ -3535,7 +3535,7 @@ func awsRestjson1_deserializeOpDocumentDeleteAnalysisOutput(v **DeleteAnalysisOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "DeletionTime": @@ -3557,7 +3557,7 @@ func awsRestjson1_deserializeOpDocumentDeleteAnalysisOutput(v **DeleteAnalysisOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -3705,7 +3705,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteDashboardOutput(v *DeleteDashbo return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -3737,7 +3737,7 @@ func awsRestjson1_deserializeOpDocumentDeleteDashboardOutput(v **DeleteDashboard if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "DashboardId": @@ -3746,7 +3746,7 @@ func awsRestjson1_deserializeOpDocumentDeleteDashboardOutput(v **DeleteDashboard if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.DashboardId = &jtv + sv.DashboardId = ptr.String(jtv) } case "RequestId": @@ -3755,7 +3755,7 @@ func awsRestjson1_deserializeOpDocumentDeleteDashboardOutput(v **DeleteDashboard if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -3900,7 +3900,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteDataSetOutput(v *DeleteDataSetO return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -3932,7 +3932,7 @@ func awsRestjson1_deserializeOpDocumentDeleteDataSetOutput(v **DeleteDataSetOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "DataSetId": @@ -3941,7 +3941,7 @@ func awsRestjson1_deserializeOpDocumentDeleteDataSetOutput(v **DeleteDataSetOutp if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "RequestId": @@ -3950,7 +3950,7 @@ func awsRestjson1_deserializeOpDocumentDeleteDataSetOutput(v **DeleteDataSetOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -4095,7 +4095,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteDataSourceOutput(v *DeleteDataS return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -4127,7 +4127,7 @@ func awsRestjson1_deserializeOpDocumentDeleteDataSourceOutput(v **DeleteDataSour if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "DataSourceId": @@ -4136,7 +4136,7 @@ func awsRestjson1_deserializeOpDocumentDeleteDataSourceOutput(v **DeleteDataSour if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataSourceId = &jtv + sv.DataSourceId = ptr.String(jtv) } case "RequestId": @@ -4145,7 +4145,7 @@ func awsRestjson1_deserializeOpDocumentDeleteDataSourceOutput(v **DeleteDataSour if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -4296,7 +4296,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteGroupOutput(v *DeleteGroupOutpu return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -4328,7 +4328,7 @@ func awsRestjson1_deserializeOpDocumentDeleteGroupOutput(v **DeleteGroupOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -4479,7 +4479,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteGroupMembershipOutput(v *Delete return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -4511,7 +4511,7 @@ func awsRestjson1_deserializeOpDocumentDeleteGroupMembershipOutput(v **DeleteGro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -4662,7 +4662,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteIAMPolicyAssignmentOutput(v *De return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -4694,7 +4694,7 @@ func awsRestjson1_deserializeOpDocumentDeleteIAMPolicyAssignmentOutput(v **Delet if !ok { return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) } - sv.AssignmentName = &jtv + sv.AssignmentName = ptr.String(jtv) } case "RequestId": @@ -4703,7 +4703,7 @@ func awsRestjson1_deserializeOpDocumentDeleteIAMPolicyAssignmentOutput(v **Delet if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -4854,7 +4854,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteNamespaceOutput(v *DeleteNamesp return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -4886,7 +4886,7 @@ func awsRestjson1_deserializeOpDocumentDeleteNamespaceOutput(v **DeleteNamespace if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -5037,7 +5037,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteTemplateOutput(v *DeleteTemplat return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -5069,7 +5069,7 @@ func awsRestjson1_deserializeOpDocumentDeleteTemplateOutput(v **DeleteTemplateOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "RequestId": @@ -5078,7 +5078,7 @@ func awsRestjson1_deserializeOpDocumentDeleteTemplateOutput(v **DeleteTemplateOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "TemplateId": @@ -5087,7 +5087,7 @@ func awsRestjson1_deserializeOpDocumentDeleteTemplateOutput(v **DeleteTemplateOu if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.TemplateId = &jtv + sv.TemplateId = ptr.String(jtv) } default: @@ -5232,7 +5232,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteTemplateAliasOutput(v *DeleteTe return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -5264,7 +5264,7 @@ func awsRestjson1_deserializeOpDocumentDeleteTemplateAliasOutput(v **DeleteTempl if !ok { return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) } - sv.AliasName = &jtv + sv.AliasName = ptr.String(jtv) } case "Arn": @@ -5273,7 +5273,7 @@ func awsRestjson1_deserializeOpDocumentDeleteTemplateAliasOutput(v **DeleteTempl if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "RequestId": @@ -5282,7 +5282,7 @@ func awsRestjson1_deserializeOpDocumentDeleteTemplateAliasOutput(v **DeleteTempl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "TemplateId": @@ -5291,7 +5291,7 @@ func awsRestjson1_deserializeOpDocumentDeleteTemplateAliasOutput(v **DeleteTempl if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.TemplateId = &jtv + sv.TemplateId = ptr.String(jtv) } default: @@ -5442,7 +5442,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteThemeOutput(v *DeleteThemeOutpu return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -5474,7 +5474,7 @@ func awsRestjson1_deserializeOpDocumentDeleteThemeOutput(v **DeleteThemeOutput, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "RequestId": @@ -5483,7 +5483,7 @@ func awsRestjson1_deserializeOpDocumentDeleteThemeOutput(v **DeleteThemeOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ThemeId": @@ -5492,7 +5492,7 @@ func awsRestjson1_deserializeOpDocumentDeleteThemeOutput(v **DeleteThemeOutput, if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.ThemeId = &jtv + sv.ThemeId = ptr.String(jtv) } default: @@ -5640,7 +5640,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteThemeAliasOutput(v *DeleteTheme return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -5672,7 +5672,7 @@ func awsRestjson1_deserializeOpDocumentDeleteThemeAliasOutput(v **DeleteThemeAli if !ok { return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) } - sv.AliasName = &jtv + sv.AliasName = ptr.String(jtv) } case "Arn": @@ -5681,7 +5681,7 @@ func awsRestjson1_deserializeOpDocumentDeleteThemeAliasOutput(v **DeleteThemeAli if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "RequestId": @@ -5690,7 +5690,7 @@ func awsRestjson1_deserializeOpDocumentDeleteThemeAliasOutput(v **DeleteThemeAli if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ThemeId": @@ -5699,7 +5699,7 @@ func awsRestjson1_deserializeOpDocumentDeleteThemeAliasOutput(v **DeleteThemeAli if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.ThemeId = &jtv + sv.ThemeId = ptr.String(jtv) } default: @@ -5850,7 +5850,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteUserOutput(v *DeleteUserOutput, return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -5882,7 +5882,7 @@ func awsRestjson1_deserializeOpDocumentDeleteUserOutput(v **DeleteUserOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -6033,7 +6033,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteUserByPrincipalIdOutput(v *Dele return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -6065,7 +6065,7 @@ func awsRestjson1_deserializeOpDocumentDeleteUserByPrincipalIdOutput(v **DeleteU if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -6213,7 +6213,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeAccountCustomizationOutput(v return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -6250,7 +6250,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountCustomizationOutput(v **De if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AwsAccountId": @@ -6259,7 +6259,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountCustomizationOutput(v **De if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.AwsAccountId = &jtv + sv.AwsAccountId = ptr.String(jtv) } case "Namespace": @@ -6268,7 +6268,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountCustomizationOutput(v **De if !ok { return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "RequestId": @@ -6277,7 +6277,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountCustomizationOutput(v **De if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -6425,7 +6425,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeAccountSettingsOutput(v *Desc return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -6462,7 +6462,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountSettingsOutput(v **Describ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -6610,7 +6610,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisOutput(v *DescribeAna return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -6647,7 +6647,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAnalysisOutput(v **DescribeAnalys if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -6792,7 +6792,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisPermissionsOutput(v * return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -6824,7 +6824,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAnalysisPermissionsOutput(v **Des if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AnalysisArn = &jtv + sv.AnalysisArn = ptr.String(jtv) } case "AnalysisId": @@ -6833,7 +6833,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAnalysisPermissionsOutput(v **Des if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.AnalysisId = &jtv + sv.AnalysisId = ptr.String(jtv) } case "Permissions": @@ -6847,7 +6847,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAnalysisPermissionsOutput(v **Des if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -6995,7 +6995,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDashboardOutput(v *DescribeDa return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -7032,7 +7032,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(v **DescribeDashb if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -7177,7 +7177,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDashboardPermissionsOutput(v return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -7209,7 +7209,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardPermissionsOutput(v **De if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DashboardArn = &jtv + sv.DashboardArn = ptr.String(jtv) } case "DashboardId": @@ -7218,7 +7218,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardPermissionsOutput(v **De if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.DashboardId = &jtv + sv.DashboardId = ptr.String(jtv) } case "Permissions": @@ -7232,7 +7232,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardPermissionsOutput(v **De if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -7377,7 +7377,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDataSetOutput(v *DescribeData return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -7414,7 +7414,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSetOutput(v **DescribeDataSet if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -7559,7 +7559,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDataSetPermissionsOutput(v *D return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -7591,7 +7591,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSetPermissionsOutput(v **Desc if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DataSetArn = &jtv + sv.DataSetArn = ptr.String(jtv) } case "DataSetId": @@ -7600,7 +7600,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSetPermissionsOutput(v **Desc if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "Permissions": @@ -7614,7 +7614,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSetPermissionsOutput(v **Desc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -7759,7 +7759,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDataSourceOutput(v *DescribeD return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -7796,7 +7796,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeData if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -7941,7 +7941,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDataSourcePermissionsOutput(v return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -7973,7 +7973,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSourcePermissionsOutput(v **D if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DataSourceArn = &jtv + sv.DataSourceArn = ptr.String(jtv) } case "DataSourceId": @@ -7982,7 +7982,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSourcePermissionsOutput(v **D if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataSourceId = &jtv + sv.DataSourceId = ptr.String(jtv) } case "Permissions": @@ -7996,7 +7996,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSourcePermissionsOutput(v **D if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -8147,7 +8147,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeGroupOutput(v *DescribeGroupO return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -8184,7 +8184,7 @@ func awsRestjson1_deserializeOpDocumentDescribeGroupOutput(v **DescribeGroupOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -8332,7 +8332,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeIAMPolicyAssignmentOutput(v * return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -8369,7 +8369,7 @@ func awsRestjson1_deserializeOpDocumentDescribeIAMPolicyAssignmentOutput(v **Des if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -8517,7 +8517,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeIngestionOutput(v *DescribeIn return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -8554,7 +8554,7 @@ func awsRestjson1_deserializeOpDocumentDescribeIngestionOutput(v **DescribeInges if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -8702,7 +8702,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeNamespaceOutput(v *DescribeNa return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -8739,7 +8739,7 @@ func awsRestjson1_deserializeOpDocumentDescribeNamespaceOutput(v **DescribeNames if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -8893,7 +8893,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeTemplateOutput(v *DescribeTem return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -8925,7 +8925,7 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplateOutput(v **DescribeTempla if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "Template": @@ -9072,7 +9072,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeTemplateAliasOutput(v *Descri return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -9104,7 +9104,7 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplateAliasOutput(v **DescribeT if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "TemplateAlias": @@ -9257,7 +9257,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeTemplatePermissionsOutput(v * return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -9294,7 +9294,7 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplatePermissionsOutput(v **Des if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "TemplateArn": @@ -9303,7 +9303,7 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplatePermissionsOutput(v **Des if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.TemplateArn = &jtv + sv.TemplateArn = ptr.String(jtv) } case "TemplateId": @@ -9312,7 +9312,7 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplatePermissionsOutput(v **Des if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.TemplateId = &jtv + sv.TemplateId = ptr.String(jtv) } default: @@ -9463,7 +9463,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeThemeOutput(v *DescribeThemeO return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -9495,7 +9495,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThemeOutput(v **DescribeThemeOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "Theme": @@ -9648,7 +9648,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeThemeAliasOutput(v *DescribeT return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -9680,7 +9680,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThemeAliasOutput(v **DescribeThem if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ThemeAlias": @@ -9833,7 +9833,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeThemePermissionsOutput(v *Des return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -9870,7 +9870,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThemePermissionsOutput(v **Descri if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ThemeArn": @@ -9879,7 +9879,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThemePermissionsOutput(v **Descri if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ThemeArn = &jtv + sv.ThemeArn = ptr.String(jtv) } case "ThemeId": @@ -9888,7 +9888,7 @@ func awsRestjson1_deserializeOpDocumentDescribeThemePermissionsOutput(v **Descri if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.ThemeId = &jtv + sv.ThemeId = ptr.String(jtv) } default: @@ -10039,7 +10039,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeUserOutput(v *DescribeUserOut return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -10071,7 +10071,7 @@ func awsRestjson1_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "User": @@ -10239,7 +10239,7 @@ func awsRestjson1_deserializeOpHttpBindingsGetDashboardEmbedUrlOutput(v *GetDash return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -10271,7 +10271,7 @@ func awsRestjson1_deserializeOpDocumentGetDashboardEmbedUrlOutput(v **GetDashboa if !ok { return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) } - sv.EmbedUrl = &jtv + sv.EmbedUrl = ptr.String(jtv) } case "RequestId": @@ -10280,7 +10280,7 @@ func awsRestjson1_deserializeOpDocumentGetDashboardEmbedUrlOutput(v **GetDashboa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -10437,7 +10437,7 @@ func awsRestjson1_deserializeOpHttpBindingsGetSessionEmbedUrlOutput(v *GetSessio return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -10469,7 +10469,7 @@ func awsRestjson1_deserializeOpDocumentGetSessionEmbedUrlOutput(v **GetSessionEm if !ok { return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) } - sv.EmbedUrl = &jtv + sv.EmbedUrl = ptr.String(jtv) } case "RequestId": @@ -10478,7 +10478,7 @@ func awsRestjson1_deserializeOpDocumentGetSessionEmbedUrlOutput(v **GetSessionEm if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -10620,7 +10620,7 @@ func awsRestjson1_deserializeOpHttpBindingsListAnalysesOutput(v *ListAnalysesOut return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -10657,7 +10657,7 @@ func awsRestjson1_deserializeOpDocumentListAnalysesOutput(v **ListAnalysesOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -10666,7 +10666,7 @@ func awsRestjson1_deserializeOpDocumentListAnalysesOutput(v **ListAnalysesOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -10808,7 +10808,7 @@ func awsRestjson1_deserializeOpHttpBindingsListDashboardsOutput(v *ListDashboard return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -10845,7 +10845,7 @@ func awsRestjson1_deserializeOpDocumentListDashboardsOutput(v **ListDashboardsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -10854,7 +10854,7 @@ func awsRestjson1_deserializeOpDocumentListDashboardsOutput(v **ListDashboardsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -11002,7 +11002,7 @@ func awsRestjson1_deserializeOpHttpBindingsListDashboardVersionsOutput(v *ListDa return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -11039,7 +11039,7 @@ func awsRestjson1_deserializeOpDocumentListDashboardVersionsOutput(v **ListDashb if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -11048,7 +11048,7 @@ func awsRestjson1_deserializeOpDocumentListDashboardVersionsOutput(v **ListDashb if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -11193,7 +11193,7 @@ func awsRestjson1_deserializeOpHttpBindingsListDataSetsOutput(v *ListDataSetsOut return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -11230,7 +11230,7 @@ func awsRestjson1_deserializeOpDocumentListDataSetsOutput(v **ListDataSetsOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -11239,7 +11239,7 @@ func awsRestjson1_deserializeOpDocumentListDataSetsOutput(v **ListDataSetsOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -11384,7 +11384,7 @@ func awsRestjson1_deserializeOpHttpBindingsListDataSourcesOutput(v *ListDataSour return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -11421,7 +11421,7 @@ func awsRestjson1_deserializeOpDocumentListDataSourcesOutput(v **ListDataSources if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -11430,7 +11430,7 @@ func awsRestjson1_deserializeOpDocumentListDataSourcesOutput(v **ListDataSources if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -11584,7 +11584,7 @@ func awsRestjson1_deserializeOpHttpBindingsListGroupMembershipsOutput(v *ListGro return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -11621,7 +11621,7 @@ func awsRestjson1_deserializeOpDocumentListGroupMembershipsOutput(v **ListGroupM if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -11630,7 +11630,7 @@ func awsRestjson1_deserializeOpDocumentListGroupMembershipsOutput(v **ListGroupM if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -11784,7 +11784,7 @@ func awsRestjson1_deserializeOpHttpBindingsListGroupsOutput(v *ListGroupsOutput, return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -11821,7 +11821,7 @@ func awsRestjson1_deserializeOpDocumentListGroupsOutput(v **ListGroupsOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -11830,7 +11830,7 @@ func awsRestjson1_deserializeOpDocumentListGroupsOutput(v **ListGroupsOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -11978,7 +11978,7 @@ func awsRestjson1_deserializeOpHttpBindingsListIAMPolicyAssignmentsOutput(v *Lis return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -12015,7 +12015,7 @@ func awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsOutput(v **ListIA if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -12024,7 +12024,7 @@ func awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsOutput(v **ListIA if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -12175,7 +12175,7 @@ func awsRestjson1_deserializeOpHttpBindingsListIAMPolicyAssignmentsForUserOutput return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -12212,7 +12212,7 @@ func awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsForUserOutput(v * if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -12221,7 +12221,7 @@ func awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsForUserOutput(v * if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -12372,7 +12372,7 @@ func awsRestjson1_deserializeOpHttpBindingsListIngestionsOutput(v *ListIngestion return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -12409,7 +12409,7 @@ func awsRestjson1_deserializeOpDocumentListIngestionsOutput(v **ListIngestionsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -12418,7 +12418,7 @@ func awsRestjson1_deserializeOpDocumentListIngestionsOutput(v **ListIngestionsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -12572,7 +12572,7 @@ func awsRestjson1_deserializeOpHttpBindingsListNamespacesOutput(v *ListNamespace return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -12609,7 +12609,7 @@ func awsRestjson1_deserializeOpDocumentListNamespacesOutput(v **ListNamespacesOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -12618,7 +12618,7 @@ func awsRestjson1_deserializeOpDocumentListNamespacesOutput(v **ListNamespacesOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -12763,7 +12763,7 @@ func awsRestjson1_deserializeOpHttpBindingsListTagsForResourceOutput(v *ListTags return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -12795,7 +12795,7 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "Tags": @@ -12945,7 +12945,7 @@ func awsRestjson1_deserializeOpHttpBindingsListTemplateAliasesOutput(v *ListTemp return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -12977,7 +12977,7 @@ func awsRestjson1_deserializeOpDocumentListTemplateAliasesOutput(v **ListTemplat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -12986,7 +12986,7 @@ func awsRestjson1_deserializeOpDocumentListTemplateAliasesOutput(v **ListTemplat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "TemplateAliasList": @@ -13139,7 +13139,7 @@ func awsRestjson1_deserializeOpHttpBindingsListTemplatesOutput(v *ListTemplatesO return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -13171,7 +13171,7 @@ func awsRestjson1_deserializeOpDocumentListTemplatesOutput(v **ListTemplatesOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -13180,7 +13180,7 @@ func awsRestjson1_deserializeOpDocumentListTemplatesOutput(v **ListTemplatesOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "TemplateSummaryList": @@ -13333,7 +13333,7 @@ func awsRestjson1_deserializeOpHttpBindingsListTemplateVersionsOutput(v *ListTem return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -13365,7 +13365,7 @@ func awsRestjson1_deserializeOpDocumentListTemplateVersionsOutput(v **ListTempla if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -13374,7 +13374,7 @@ func awsRestjson1_deserializeOpDocumentListTemplateVersionsOutput(v **ListTempla if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "TemplateVersionSummaryList": @@ -13530,7 +13530,7 @@ func awsRestjson1_deserializeOpHttpBindingsListThemeAliasesOutput(v *ListThemeAl return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -13562,7 +13562,7 @@ func awsRestjson1_deserializeOpDocumentListThemeAliasesOutput(v **ListThemeAlias if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -13571,7 +13571,7 @@ func awsRestjson1_deserializeOpDocumentListThemeAliasesOutput(v **ListThemeAlias if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ThemeAliasList": @@ -13727,7 +13727,7 @@ func awsRestjson1_deserializeOpHttpBindingsListThemesOutput(v *ListThemesOutput, return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -13759,7 +13759,7 @@ func awsRestjson1_deserializeOpDocumentListThemesOutput(v **ListThemesOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -13768,7 +13768,7 @@ func awsRestjson1_deserializeOpDocumentListThemesOutput(v **ListThemesOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ThemeSummaryList": @@ -13924,7 +13924,7 @@ func awsRestjson1_deserializeOpHttpBindingsListThemeVersionsOutput(v *ListThemeV return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -13956,7 +13956,7 @@ func awsRestjson1_deserializeOpDocumentListThemeVersionsOutput(v **ListThemeVers if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -13965,7 +13965,7 @@ func awsRestjson1_deserializeOpDocumentListThemeVersionsOutput(v **ListThemeVers if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ThemeVersionSummaryList": @@ -14121,7 +14121,7 @@ func awsRestjson1_deserializeOpHttpBindingsListUserGroupsOutput(v *ListUserGroup return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -14158,7 +14158,7 @@ func awsRestjson1_deserializeOpDocumentListUserGroupsOutput(v **ListUserGroupsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -14167,7 +14167,7 @@ func awsRestjson1_deserializeOpDocumentListUserGroupsOutput(v **ListUserGroupsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -14321,7 +14321,7 @@ func awsRestjson1_deserializeOpHttpBindingsListUsersOutput(v *ListUsersOutput, r return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -14353,7 +14353,7 @@ func awsRestjson1_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -14362,7 +14362,7 @@ func awsRestjson1_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "UserList": @@ -14524,7 +14524,7 @@ func awsRestjson1_deserializeOpHttpBindingsRegisterUserOutput(v *RegisterUserOut return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -14556,7 +14556,7 @@ func awsRestjson1_deserializeOpDocumentRegisterUserOutput(v **RegisterUserOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "User": @@ -14570,7 +14570,7 @@ func awsRestjson1_deserializeOpDocumentRegisterUserOutput(v **RegisterUserOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserInvitationUrl = &jtv + sv.UserInvitationUrl = ptr.String(jtv) } default: @@ -14718,7 +14718,7 @@ func awsRestjson1_deserializeOpHttpBindingsRestoreAnalysisOutput(v *RestoreAnaly return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -14750,7 +14750,7 @@ func awsRestjson1_deserializeOpDocumentRestoreAnalysisOutput(v **RestoreAnalysis if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.AnalysisId = &jtv + sv.AnalysisId = ptr.String(jtv) } case "Arn": @@ -14759,7 +14759,7 @@ func awsRestjson1_deserializeOpDocumentRestoreAnalysisOutput(v **RestoreAnalysis if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "RequestId": @@ -14768,7 +14768,7 @@ func awsRestjson1_deserializeOpDocumentRestoreAnalysisOutput(v **RestoreAnalysis if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -14916,7 +14916,7 @@ func awsRestjson1_deserializeOpHttpBindingsSearchAnalysesOutput(v *SearchAnalyse return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -14953,7 +14953,7 @@ func awsRestjson1_deserializeOpDocumentSearchAnalysesOutput(v **SearchAnalysesOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -14962,7 +14962,7 @@ func awsRestjson1_deserializeOpDocumentSearchAnalysesOutput(v **SearchAnalysesOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -15110,7 +15110,7 @@ func awsRestjson1_deserializeOpHttpBindingsSearchDashboardsOutput(v *SearchDashb return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -15147,7 +15147,7 @@ func awsRestjson1_deserializeOpDocumentSearchDashboardsOutput(v **SearchDashboar if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -15156,7 +15156,7 @@ func awsRestjson1_deserializeOpDocumentSearchDashboardsOutput(v **SearchDashboar if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -15304,7 +15304,7 @@ func awsRestjson1_deserializeOpHttpBindingsTagResourceOutput(v *TagResourceOutpu return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -15336,7 +15336,7 @@ func awsRestjson1_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -15481,7 +15481,7 @@ func awsRestjson1_deserializeOpHttpBindingsUntagResourceOutput(v *UntagResourceO return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -15513,7 +15513,7 @@ func awsRestjson1_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -15661,7 +15661,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateAccountCustomizationOutput(v *U return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -15698,7 +15698,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAccountCustomizationOutput(v **Upda if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AwsAccountId": @@ -15707,7 +15707,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAccountCustomizationOutput(v **Upda if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.AwsAccountId = &jtv + sv.AwsAccountId = ptr.String(jtv) } case "Namespace": @@ -15716,7 +15716,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAccountCustomizationOutput(v **Upda if !ok { return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "RequestId": @@ -15725,7 +15725,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAccountCustomizationOutput(v **Upda if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -15873,7 +15873,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateAccountSettingsOutput(v *Update return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -15905,7 +15905,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAccountSettingsOutput(v **UpdateAcc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -16056,7 +16056,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateAnalysisOutput(v *UpdateAnalysi return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -16088,7 +16088,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisOutput(v **UpdateAnalysisOu if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.AnalysisId = &jtv + sv.AnalysisId = ptr.String(jtv) } case "Arn": @@ -16097,7 +16097,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisOutput(v **UpdateAnalysisOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "RequestId": @@ -16106,7 +16106,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisOutput(v **UpdateAnalysisOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "UpdateStatus": @@ -16263,7 +16263,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateAnalysisPermissionsOutput(v *Up return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -16295,7 +16295,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisPermissionsOutput(v **Updat if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AnalysisArn = &jtv + sv.AnalysisArn = ptr.String(jtv) } case "AnalysisId": @@ -16304,7 +16304,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisPermissionsOutput(v **Updat if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.AnalysisId = &jtv + sv.AnalysisId = ptr.String(jtv) } case "Permissions": @@ -16318,7 +16318,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisPermissionsOutput(v **Updat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -16487,7 +16487,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardOutput(v **UpdateDashboard if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationStatus": @@ -16505,7 +16505,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardOutput(v **UpdateDashboard if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.DashboardId = &jtv + sv.DashboardId = ptr.String(jtv) } case "RequestId": @@ -16514,7 +16514,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardOutput(v **UpdateDashboard if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "Status": @@ -16527,7 +16527,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardOutput(v **UpdateDashboard if err != nil { return err } - sv.Status = ptr.Int32(int32(i64)) + sv.Status = int32(i64) } case "VersionArn": @@ -16536,7 +16536,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardOutput(v **UpdateDashboard if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.VersionArn = &jtv + sv.VersionArn = ptr.String(jtv) } default: @@ -16684,7 +16684,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateDashboardPermissionsOutput(v *U return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -16716,7 +16716,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardPermissionsOutput(v **Upda if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DashboardArn = &jtv + sv.DashboardArn = ptr.String(jtv) } case "DashboardId": @@ -16725,7 +16725,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardPermissionsOutput(v **Upda if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.DashboardId = &jtv + sv.DashboardId = ptr.String(jtv) } case "Permissions": @@ -16739,7 +16739,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardPermissionsOutput(v **Upda if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -16887,7 +16887,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateDashboardPublishedVersionOutput return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -16919,7 +16919,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardPublishedVersionOutput(v * if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DashboardArn = &jtv + sv.DashboardArn = ptr.String(jtv) } case "DashboardId": @@ -16928,7 +16928,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardPublishedVersionOutput(v * if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.DashboardId = &jtv + sv.DashboardId = ptr.String(jtv) } case "RequestId": @@ -16937,7 +16937,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardPublishedVersionOutput(v * if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -17091,7 +17091,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateDataSetOutput(v *UpdateDataSetO return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -17123,7 +17123,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "DataSetId": @@ -17132,7 +17132,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "IngestionArn": @@ -17141,7 +17141,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.IngestionArn = &jtv + sv.IngestionArn = ptr.String(jtv) } case "IngestionId": @@ -17150,7 +17150,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.IngestionId = &jtv + sv.IngestionId = ptr.String(jtv) } case "RequestId": @@ -17159,7 +17159,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -17307,7 +17307,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateDataSetPermissionsOutput(v *Upd return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -17339,7 +17339,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetPermissionsOutput(v **Update if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DataSetArn = &jtv + sv.DataSetArn = ptr.String(jtv) } case "DataSetId": @@ -17348,7 +17348,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetPermissionsOutput(v **Update if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "RequestId": @@ -17357,7 +17357,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetPermissionsOutput(v **Update if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -17505,7 +17505,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateDataSourceOutput(v *UpdateDataS return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -17537,7 +17537,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSourceOutput(v **UpdateDataSour if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "DataSourceId": @@ -17546,7 +17546,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSourceOutput(v **UpdateDataSour if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataSourceId = &jtv + sv.DataSourceId = ptr.String(jtv) } case "RequestId": @@ -17555,7 +17555,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSourceOutput(v **UpdateDataSour if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "UpdateStatus": @@ -17712,7 +17712,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateDataSourcePermissionsOutput(v * return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -17744,7 +17744,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSourcePermissionsOutput(v **Upd if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DataSourceArn = &jtv + sv.DataSourceArn = ptr.String(jtv) } case "DataSourceId": @@ -17753,7 +17753,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSourcePermissionsOutput(v **Upd if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataSourceId = &jtv + sv.DataSourceId = ptr.String(jtv) } case "RequestId": @@ -17762,7 +17762,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSourcePermissionsOutput(v **Upd if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -17913,7 +17913,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateGroupOutput(v *UpdateGroupOutpu return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -17950,7 +17950,7 @@ func awsRestjson1_deserializeOpDocumentUpdateGroupOutput(v **UpdateGroupOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -18101,7 +18101,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateIAMPolicyAssignmentOutput(v *Up return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -18133,7 +18133,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIAMPolicyAssignmentOutput(v **Updat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AssignmentId = &jtv + sv.AssignmentId = ptr.String(jtv) } case "AssignmentName": @@ -18142,7 +18142,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIAMPolicyAssignmentOutput(v **Updat if !ok { return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) } - sv.AssignmentName = &jtv + sv.AssignmentName = ptr.String(jtv) } case "AssignmentStatus": @@ -18165,7 +18165,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIAMPolicyAssignmentOutput(v **Updat if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } case "RequestId": @@ -18174,7 +18174,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIAMPolicyAssignmentOutput(v **Updat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -18328,7 +18328,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateTemplateOutput(v *UpdateTemplat return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -18360,7 +18360,7 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplateOutput(v **UpdateTemplateOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationStatus": @@ -18378,7 +18378,7 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplateOutput(v **UpdateTemplateOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "TemplateId": @@ -18387,7 +18387,7 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplateOutput(v **UpdateTemplateOu if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.TemplateId = &jtv + sv.TemplateId = ptr.String(jtv) } case "VersionArn": @@ -18396,7 +18396,7 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplateOutput(v **UpdateTemplateOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.VersionArn = &jtv + sv.VersionArn = ptr.String(jtv) } default: @@ -18541,7 +18541,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateTemplateAliasOutput(v *UpdateTe return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -18573,7 +18573,7 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplateAliasOutput(v **UpdateTempl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "TemplateAlias": @@ -18726,7 +18726,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateTemplatePermissionsOutput(v *Up return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -18763,7 +18763,7 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplatePermissionsOutput(v **Updat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "TemplateArn": @@ -18772,7 +18772,7 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplatePermissionsOutput(v **Updat if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.TemplateArn = &jtv + sv.TemplateArn = ptr.String(jtv) } case "TemplateId": @@ -18781,7 +18781,7 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplatePermissionsOutput(v **Updat if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.TemplateId = &jtv + sv.TemplateId = ptr.String(jtv) } default: @@ -18935,7 +18935,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateThemeOutput(v *UpdateThemeOutpu return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -18967,7 +18967,7 @@ func awsRestjson1_deserializeOpDocumentUpdateThemeOutput(v **UpdateThemeOutput, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationStatus": @@ -18985,7 +18985,7 @@ func awsRestjson1_deserializeOpDocumentUpdateThemeOutput(v **UpdateThemeOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ThemeId": @@ -18994,7 +18994,7 @@ func awsRestjson1_deserializeOpDocumentUpdateThemeOutput(v **UpdateThemeOutput, if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.ThemeId = &jtv + sv.ThemeId = ptr.String(jtv) } case "VersionArn": @@ -19003,7 +19003,7 @@ func awsRestjson1_deserializeOpDocumentUpdateThemeOutput(v **UpdateThemeOutput, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.VersionArn = &jtv + sv.VersionArn = ptr.String(jtv) } default: @@ -19154,7 +19154,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateThemeAliasOutput(v *UpdateTheme return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -19186,7 +19186,7 @@ func awsRestjson1_deserializeOpDocumentUpdateThemeAliasOutput(v **UpdateThemeAli if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ThemeAlias": @@ -19339,7 +19339,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateThemePermissionsOutput(v *Updat return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -19376,7 +19376,7 @@ func awsRestjson1_deserializeOpDocumentUpdateThemePermissionsOutput(v **UpdateTh if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ThemeArn": @@ -19385,7 +19385,7 @@ func awsRestjson1_deserializeOpDocumentUpdateThemePermissionsOutput(v **UpdateTh if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ThemeArn = &jtv + sv.ThemeArn = ptr.String(jtv) } case "ThemeId": @@ -19394,7 +19394,7 @@ func awsRestjson1_deserializeOpDocumentUpdateThemePermissionsOutput(v **UpdateTh if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.ThemeId = &jtv + sv.ThemeId = ptr.String(jtv) } default: @@ -19545,7 +19545,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateUserOutput(v *UpdateUserOutput, return fmt.Errorf("unsupported deserialization for nil %T", v) } - v.Status = ptr.Int32(int32(response.StatusCode)) + v.Status = int32(response.StatusCode) return nil } @@ -19577,7 +19577,7 @@ func awsRestjson1_deserializeOpDocumentUpdateUserOutput(v **UpdateUserOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "User": @@ -20234,7 +20234,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -20243,7 +20243,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -20283,7 +20283,7 @@ func awsRestjson1_deserializeDocumentAccountCustomization(v **types.AccountCusto if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DefaultTheme = &jtv + sv.DefaultTheme = ptr.String(jtv) } default: @@ -20323,7 +20323,7 @@ func awsRestjson1_deserializeDocumentAccountSettings(v **types.AccountSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccountName = &jtv + sv.AccountName = ptr.String(jtv) } case "DefaultNamespace": @@ -20332,7 +20332,7 @@ func awsRestjson1_deserializeDocumentAccountSettings(v **types.AccountSettings, if !ok { return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) } - sv.DefaultNamespace = &jtv + sv.DefaultNamespace = ptr.String(jtv) } case "Edition": @@ -20350,7 +20350,7 @@ func awsRestjson1_deserializeDocumentAccountSettings(v **types.AccountSettings, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NotificationEmail = &jtv + sv.NotificationEmail = ptr.String(jtv) } default: @@ -20362,7 +20362,7 @@ func awsRestjson1_deserializeDocumentAccountSettings(v **types.AccountSettings, return nil } -func awsRestjson1_deserializeDocumentActionList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentActionList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20375,21 +20375,21 @@ func awsRestjson1_deserializeDocumentActionList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -20426,7 +20426,7 @@ func awsRestjson1_deserializeDocumentActiveIAMPolicyAssignment(v **types.ActiveI if !ok { return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) } - sv.AssignmentName = &jtv + sv.AssignmentName = ptr.String(jtv) } case "PolicyArn": @@ -20435,7 +20435,7 @@ func awsRestjson1_deserializeDocumentActiveIAMPolicyAssignment(v **types.ActiveI if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } default: @@ -20447,7 +20447,7 @@ func awsRestjson1_deserializeDocumentActiveIAMPolicyAssignment(v **types.ActiveI return nil } -func awsRestjson1_deserializeDocumentActiveIAMPolicyAssignmentList(v *[]*types.ActiveIAMPolicyAssignment, value interface{}) error { +func awsRestjson1_deserializeDocumentActiveIAMPolicyAssignmentList(v *[]types.ActiveIAMPolicyAssignment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20460,18 +20460,20 @@ func awsRestjson1_deserializeDocumentActiveIAMPolicyAssignmentList(v *[]*types.A return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActiveIAMPolicyAssignment + var cv []types.ActiveIAMPolicyAssignment if *v == nil { - cv = []*types.ActiveIAMPolicyAssignment{} + cv = []types.ActiveIAMPolicyAssignment{} } else { cv = *v } for _, value := range shape { - var col *types.ActiveIAMPolicyAssignment - if err := awsRestjson1_deserializeDocumentActiveIAMPolicyAssignment(&col, value); err != nil { + var col types.ActiveIAMPolicyAssignment + destAddr := &col + if err := awsRestjson1_deserializeDocumentActiveIAMPolicyAssignment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20507,7 +20509,7 @@ func awsRestjson1_deserializeDocumentAmazonElasticsearchParameters(v **types.Ama if !ok { return fmt.Errorf("expected Domain to be of type string, got %T instead", value) } - sv.Domain = &jtv + sv.Domain = ptr.String(jtv) } default: @@ -20547,7 +20549,7 @@ func awsRestjson1_deserializeDocumentAnalysis(v **types.Analysis, value interfac if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.AnalysisId = &jtv + sv.AnalysisId = ptr.String(jtv) } case "Arn": @@ -20556,7 +20558,7 @@ func awsRestjson1_deserializeDocumentAnalysis(v **types.Analysis, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -20601,7 +20603,7 @@ func awsRestjson1_deserializeDocumentAnalysis(v **types.Analysis, value interfac if !ok { return fmt.Errorf("expected AnalysisName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Sheets": @@ -20624,7 +20626,7 @@ func awsRestjson1_deserializeDocumentAnalysis(v **types.Analysis, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ThemeArn = &jtv + sv.ThemeArn = ptr.String(jtv) } default: @@ -20664,7 +20666,7 @@ func awsRestjson1_deserializeDocumentAnalysisError(v **types.AnalysisError, valu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -20685,7 +20687,7 @@ func awsRestjson1_deserializeDocumentAnalysisError(v **types.AnalysisError, valu return nil } -func awsRestjson1_deserializeDocumentAnalysisErrorList(v *[]*types.AnalysisError, value interface{}) error { +func awsRestjson1_deserializeDocumentAnalysisErrorList(v *[]types.AnalysisError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20698,18 +20700,20 @@ func awsRestjson1_deserializeDocumentAnalysisErrorList(v *[]*types.AnalysisError return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AnalysisError + var cv []types.AnalysisError if *v == nil { - cv = []*types.AnalysisError{} + cv = []types.AnalysisError{} } else { cv = *v } for _, value := range shape { - var col *types.AnalysisError - if err := awsRestjson1_deserializeDocumentAnalysisError(&col, value); err != nil { + var col types.AnalysisError + destAddr := &col + if err := awsRestjson1_deserializeDocumentAnalysisError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20745,7 +20749,7 @@ func awsRestjson1_deserializeDocumentAnalysisSummary(v **types.AnalysisSummary, if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.AnalysisId = &jtv + sv.AnalysisId = ptr.String(jtv) } case "Arn": @@ -20754,7 +20758,7 @@ func awsRestjson1_deserializeDocumentAnalysisSummary(v **types.AnalysisSummary, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -20789,7 +20793,7 @@ func awsRestjson1_deserializeDocumentAnalysisSummary(v **types.AnalysisSummary, if !ok { return fmt.Errorf("expected AnalysisName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -20810,7 +20814,7 @@ func awsRestjson1_deserializeDocumentAnalysisSummary(v **types.AnalysisSummary, return nil } -func awsRestjson1_deserializeDocumentAnalysisSummaryList(v *[]*types.AnalysisSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentAnalysisSummaryList(v *[]types.AnalysisSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20823,18 +20827,20 @@ func awsRestjson1_deserializeDocumentAnalysisSummaryList(v *[]*types.AnalysisSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AnalysisSummary + var cv []types.AnalysisSummary if *v == nil { - cv = []*types.AnalysisSummary{} + cv = []types.AnalysisSummary{} } else { cv = *v } for _, value := range shape { - var col *types.AnalysisSummary - if err := awsRestjson1_deserializeDocumentAnalysisSummary(&col, value); err != nil { + var col types.AnalysisSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAnalysisSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20870,7 +20876,7 @@ func awsRestjson1_deserializeDocumentAthenaParameters(v **types.AthenaParameters if !ok { return fmt.Errorf("expected WorkGroup to be of type string, got %T instead", value) } - sv.WorkGroup = &jtv + sv.WorkGroup = ptr.String(jtv) } default: @@ -20910,7 +20916,7 @@ func awsRestjson1_deserializeDocumentAuroraParameters(v **types.AuroraParameters if !ok { return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "Host": @@ -20919,7 +20925,7 @@ func awsRestjson1_deserializeDocumentAuroraParameters(v **types.AuroraParameters if !ok { return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.Host = &jtv + sv.Host = ptr.String(jtv) } case "Port": @@ -20932,7 +20938,7 @@ func awsRestjson1_deserializeDocumentAuroraParameters(v **types.AuroraParameters if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -20972,7 +20978,7 @@ func awsRestjson1_deserializeDocumentAuroraPostgreSqlParameters(v **types.Aurora if !ok { return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "Host": @@ -20981,7 +20987,7 @@ func awsRestjson1_deserializeDocumentAuroraPostgreSqlParameters(v **types.Aurora if !ok { return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.Host = &jtv + sv.Host = ptr.String(jtv) } case "Port": @@ -20994,7 +21000,7 @@ func awsRestjson1_deserializeDocumentAuroraPostgreSqlParameters(v **types.Aurora if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -21034,7 +21040,7 @@ func awsRestjson1_deserializeDocumentAwsIotAnalyticsParameters(v **types.AwsIotA if !ok { return fmt.Errorf("expected DataSetName to be of type string, got %T instead", value) } - sv.DataSetName = &jtv + sv.DataSetName = ptr.String(jtv) } default: @@ -21074,7 +21080,7 @@ func awsRestjson1_deserializeDocumentBorderStyle(v **types.BorderStyle, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Show = &jtv + sv.Show = jtv } default: @@ -21114,7 +21120,7 @@ func awsRestjson1_deserializeDocumentCalculatedColumn(v **types.CalculatedColumn if !ok { return fmt.Errorf("expected ColumnId to be of type string, got %T instead", value) } - sv.ColumnId = &jtv + sv.ColumnId = ptr.String(jtv) } case "ColumnName": @@ -21123,7 +21129,7 @@ func awsRestjson1_deserializeDocumentCalculatedColumn(v **types.CalculatedColumn if !ok { return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.ColumnName = &jtv + sv.ColumnName = ptr.String(jtv) } case "Expression": @@ -21132,7 +21138,7 @@ func awsRestjson1_deserializeDocumentCalculatedColumn(v **types.CalculatedColumn if !ok { return fmt.Errorf("expected Expression to be of type string, got %T instead", value) } - sv.Expression = &jtv + sv.Expression = ptr.String(jtv) } default: @@ -21144,7 +21150,7 @@ func awsRestjson1_deserializeDocumentCalculatedColumn(v **types.CalculatedColumn return nil } -func awsRestjson1_deserializeDocumentCalculatedColumnList(v *[]*types.CalculatedColumn, value interface{}) error { +func awsRestjson1_deserializeDocumentCalculatedColumnList(v *[]types.CalculatedColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21157,18 +21163,20 @@ func awsRestjson1_deserializeDocumentCalculatedColumnList(v *[]*types.Calculated return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CalculatedColumn + var cv []types.CalculatedColumn if *v == nil { - cv = []*types.CalculatedColumn{} + cv = []types.CalculatedColumn{} } else { cv = *v } for _, value := range shape { - var col *types.CalculatedColumn - if err := awsRestjson1_deserializeDocumentCalculatedColumn(&col, value); err != nil { + var col types.CalculatedColumn + destAddr := &col + if err := awsRestjson1_deserializeDocumentCalculatedColumn(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21204,7 +21212,7 @@ func awsRestjson1_deserializeDocumentCastColumnTypeOperation(v **types.CastColum if !ok { return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.ColumnName = &jtv + sv.ColumnName = ptr.String(jtv) } case "Format": @@ -21213,7 +21221,7 @@ func awsRestjson1_deserializeDocumentCastColumnTypeOperation(v **types.CastColum if !ok { return fmt.Errorf("expected TypeCastFormat to be of type string, got %T instead", value) } - sv.Format = &jtv + sv.Format = ptr.String(jtv) } case "NewColumnType": @@ -21234,7 +21242,7 @@ func awsRestjson1_deserializeDocumentCastColumnTypeOperation(v **types.CastColum return nil } -func awsRestjson1_deserializeDocumentColorList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentColorList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21247,21 +21255,21 @@ func awsRestjson1_deserializeDocumentColorList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -21298,7 +21306,7 @@ func awsRestjson1_deserializeDocumentColumnDescription(v **types.ColumnDescripti if !ok { return fmt.Errorf("expected ColumnDescriptiveText to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } default: @@ -21374,7 +21382,7 @@ func awsRestjson1_deserializeDocumentColumnGroupColumnSchema(v **types.ColumnGro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -21386,7 +21394,7 @@ func awsRestjson1_deserializeDocumentColumnGroupColumnSchema(v **types.ColumnGro return nil } -func awsRestjson1_deserializeDocumentColumnGroupColumnSchemaList(v *[]*types.ColumnGroupColumnSchema, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnGroupColumnSchemaList(v *[]types.ColumnGroupColumnSchema, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21399,18 +21407,20 @@ func awsRestjson1_deserializeDocumentColumnGroupColumnSchemaList(v *[]*types.Col return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnGroupColumnSchema + var cv []types.ColumnGroupColumnSchema if *v == nil { - cv = []*types.ColumnGroupColumnSchema{} + cv = []types.ColumnGroupColumnSchema{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnGroupColumnSchema - if err := awsRestjson1_deserializeDocumentColumnGroupColumnSchema(&col, value); err != nil { + var col types.ColumnGroupColumnSchema + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnGroupColumnSchema(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21418,7 +21428,7 @@ func awsRestjson1_deserializeDocumentColumnGroupColumnSchemaList(v *[]*types.Col return nil } -func awsRestjson1_deserializeDocumentColumnGroupList(v *[]*types.ColumnGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnGroupList(v *[]types.ColumnGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21431,18 +21441,20 @@ func awsRestjson1_deserializeDocumentColumnGroupList(v *[]*types.ColumnGroup, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnGroup + var cv []types.ColumnGroup if *v == nil { - cv = []*types.ColumnGroup{} + cv = []types.ColumnGroup{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnGroup - if err := awsRestjson1_deserializeDocumentColumnGroup(&col, value); err != nil { + var col types.ColumnGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21483,7 +21495,7 @@ func awsRestjson1_deserializeDocumentColumnGroupSchema(v **types.ColumnGroupSche if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -21495,7 +21507,7 @@ func awsRestjson1_deserializeDocumentColumnGroupSchema(v **types.ColumnGroupSche return nil } -func awsRestjson1_deserializeDocumentColumnGroupSchemaList(v *[]*types.ColumnGroupSchema, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnGroupSchemaList(v *[]types.ColumnGroupSchema, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21508,18 +21520,20 @@ func awsRestjson1_deserializeDocumentColumnGroupSchemaList(v *[]*types.ColumnGro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnGroupSchema + var cv []types.ColumnGroupSchema if *v == nil { - cv = []*types.ColumnGroupSchema{} + cv = []types.ColumnGroupSchema{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnGroupSchema - if err := awsRestjson1_deserializeDocumentColumnGroupSchema(&col, value); err != nil { + var col types.ColumnGroupSchema + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnGroupSchema(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21527,7 +21541,7 @@ func awsRestjson1_deserializeDocumentColumnGroupSchemaList(v *[]*types.ColumnGro return nil } -func awsRestjson1_deserializeDocumentColumnList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21540,21 +21554,21 @@ func awsRestjson1_deserializeDocumentColumnList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -21591,7 +21605,7 @@ func awsRestjson1_deserializeDocumentColumnSchema(v **types.ColumnSchema, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataType = &jtv + sv.DataType = ptr.String(jtv) } case "GeographicRole": @@ -21600,7 +21614,7 @@ func awsRestjson1_deserializeDocumentColumnSchema(v **types.ColumnSchema, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GeographicRole = &jtv + sv.GeographicRole = ptr.String(jtv) } case "Name": @@ -21609,7 +21623,7 @@ func awsRestjson1_deserializeDocumentColumnSchema(v **types.ColumnSchema, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -21621,7 +21635,7 @@ func awsRestjson1_deserializeDocumentColumnSchema(v **types.ColumnSchema, value return nil } -func awsRestjson1_deserializeDocumentColumnSchemaList(v *[]*types.ColumnSchema, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnSchemaList(v *[]types.ColumnSchema, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21634,18 +21648,20 @@ func awsRestjson1_deserializeDocumentColumnSchemaList(v *[]*types.ColumnSchema, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnSchema + var cv []types.ColumnSchema if *v == nil { - cv = []*types.ColumnSchema{} + cv = []types.ColumnSchema{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnSchema - if err := awsRestjson1_deserializeDocumentColumnSchema(&col, value); err != nil { + var col types.ColumnSchema + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnSchema(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21698,7 +21714,7 @@ func awsRestjson1_deserializeDocumentColumnTag(v **types.ColumnTag, value interf return nil } -func awsRestjson1_deserializeDocumentColumnTagList(v *[]*types.ColumnTag, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnTagList(v *[]types.ColumnTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21711,18 +21727,20 @@ func awsRestjson1_deserializeDocumentColumnTagList(v *[]*types.ColumnTag, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnTag + var cv []types.ColumnTag if *v == nil { - cv = []*types.ColumnTag{} + cv = []types.ColumnTag{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnTag - if err := awsRestjson1_deserializeDocumentColumnTag(&col, value); err != nil { + var col types.ColumnTag + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21758,7 +21776,7 @@ func awsRestjson1_deserializeDocumentConcurrentUpdatingException(v **types.Concu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -21767,7 +21785,7 @@ func awsRestjson1_deserializeDocumentConcurrentUpdatingException(v **types.Concu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -21807,7 +21825,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -21816,7 +21834,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -21897,7 +21915,7 @@ func awsRestjson1_deserializeDocumentCustomSql(v **types.CustomSql, value interf if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DataSourceArn = &jtv + sv.DataSourceArn = ptr.String(jtv) } case "Name": @@ -21906,7 +21924,7 @@ func awsRestjson1_deserializeDocumentCustomSql(v **types.CustomSql, value interf if !ok { return fmt.Errorf("expected CustomSqlName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SqlQuery": @@ -21915,7 +21933,7 @@ func awsRestjson1_deserializeDocumentCustomSql(v **types.CustomSql, value interf if !ok { return fmt.Errorf("expected SqlQuery to be of type string, got %T instead", value) } - sv.SqlQuery = &jtv + sv.SqlQuery = ptr.String(jtv) } default: @@ -21955,7 +21973,7 @@ func awsRestjson1_deserializeDocumentDashboard(v **types.Dashboard, value interf if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -21977,7 +21995,7 @@ func awsRestjson1_deserializeDocumentDashboard(v **types.Dashboard, value interf if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.DashboardId = &jtv + sv.DashboardId = ptr.String(jtv) } case "LastPublishedTime": @@ -22012,7 +22030,7 @@ func awsRestjson1_deserializeDocumentDashboard(v **types.Dashboard, value interf if !ok { return fmt.Errorf("expected DashboardName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Version": @@ -22057,7 +22075,7 @@ func awsRestjson1_deserializeDocumentDashboardError(v **types.DashboardError, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -22078,7 +22096,7 @@ func awsRestjson1_deserializeDocumentDashboardError(v **types.DashboardError, va return nil } -func awsRestjson1_deserializeDocumentDashboardErrorList(v *[]*types.DashboardError, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardErrorList(v *[]types.DashboardError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22091,18 +22109,20 @@ func awsRestjson1_deserializeDocumentDashboardErrorList(v *[]*types.DashboardErr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DashboardError + var cv []types.DashboardError if *v == nil { - cv = []*types.DashboardError{} + cv = []types.DashboardError{} } else { cv = *v } for _, value := range shape { - var col *types.DashboardError - if err := awsRestjson1_deserializeDocumentDashboardError(&col, value); err != nil { + var col types.DashboardError + destAddr := &col + if err := awsRestjson1_deserializeDocumentDashboardError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22138,7 +22158,7 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -22160,7 +22180,7 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.DashboardId = &jtv + sv.DashboardId = ptr.String(jtv) } case "LastPublishedTime": @@ -22195,7 +22215,7 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary if !ok { return fmt.Errorf("expected DashboardName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PublishedVersionNumber": @@ -22208,7 +22228,7 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary if err != nil { return err } - sv.PublishedVersionNumber = &i64 + sv.PublishedVersionNumber = ptr.Int64(i64) } default: @@ -22220,7 +22240,7 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary return nil } -func awsRestjson1_deserializeDocumentDashboardSummaryList(v *[]*types.DashboardSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardSummaryList(v *[]types.DashboardSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22233,18 +22253,20 @@ func awsRestjson1_deserializeDocumentDashboardSummaryList(v *[]*types.DashboardS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DashboardSummary + var cv []types.DashboardSummary if *v == nil { - cv = []*types.DashboardSummary{} + cv = []types.DashboardSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DashboardSummary - if err := awsRestjson1_deserializeDocumentDashboardSummary(&col, value); err != nil { + var col types.DashboardSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDashboardSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22280,7 +22302,7 @@ func awsRestjson1_deserializeDocumentDashboardVersion(v **types.DashboardVersion if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -22307,7 +22329,7 @@ func awsRestjson1_deserializeDocumentDashboardVersion(v **types.DashboardVersion if !ok { return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Errors": @@ -22326,7 +22348,7 @@ func awsRestjson1_deserializeDocumentDashboardVersion(v **types.DashboardVersion if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SourceEntityArn = &jtv + sv.SourceEntityArn = ptr.String(jtv) } case "Status": @@ -22344,7 +22366,7 @@ func awsRestjson1_deserializeDocumentDashboardVersion(v **types.DashboardVersion if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ThemeArn = &jtv + sv.ThemeArn = ptr.String(jtv) } case "VersionNumber": @@ -22357,7 +22379,7 @@ func awsRestjson1_deserializeDocumentDashboardVersion(v **types.DashboardVersion if err != nil { return err } - sv.VersionNumber = &i64 + sv.VersionNumber = ptr.Int64(i64) } default: @@ -22397,7 +22419,7 @@ func awsRestjson1_deserializeDocumentDashboardVersionSummary(v **types.Dashboard if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -22419,7 +22441,7 @@ func awsRestjson1_deserializeDocumentDashboardVersionSummary(v **types.Dashboard if !ok { return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "SourceEntityArn": @@ -22428,7 +22450,7 @@ func awsRestjson1_deserializeDocumentDashboardVersionSummary(v **types.Dashboard if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SourceEntityArn = &jtv + sv.SourceEntityArn = ptr.String(jtv) } case "Status": @@ -22450,7 +22472,7 @@ func awsRestjson1_deserializeDocumentDashboardVersionSummary(v **types.Dashboard if err != nil { return err } - sv.VersionNumber = &i64 + sv.VersionNumber = ptr.Int64(i64) } default: @@ -22462,7 +22484,7 @@ func awsRestjson1_deserializeDocumentDashboardVersionSummary(v **types.Dashboard return nil } -func awsRestjson1_deserializeDocumentDashboardVersionSummaryList(v *[]*types.DashboardVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardVersionSummaryList(v *[]types.DashboardVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22475,18 +22497,20 @@ func awsRestjson1_deserializeDocumentDashboardVersionSummaryList(v *[]*types.Das return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DashboardVersionSummary + var cv []types.DashboardVersionSummary if *v == nil { - cv = []*types.DashboardVersionSummary{} + cv = []types.DashboardVersionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DashboardVersionSummary - if err := awsRestjson1_deserializeDocumentDashboardVersionSummary(&col, value); err != nil { + var col types.DashboardVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDashboardVersionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22527,7 +22551,7 @@ func awsRestjson1_deserializeDocumentDataColorPalette(v **types.DataColorPalette if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.EmptyFillColor = &jtv + sv.EmptyFillColor = ptr.String(jtv) } case "MinMaxGradient": @@ -22572,7 +22596,7 @@ func awsRestjson1_deserializeDocumentDataSet(v **types.DataSet, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "ColumnGroups": @@ -22590,7 +22614,7 @@ func awsRestjson1_deserializeDocumentDataSet(v **types.DataSet, value interface{ if err != nil { return err } - sv.ConsumedSpiceCapacityInBytes = &i64 + sv.ConsumedSpiceCapacityInBytes = i64 } case "CreatedTime": @@ -22612,7 +22636,7 @@ func awsRestjson1_deserializeDocumentDataSet(v **types.DataSet, value interface{ if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "ImportMode": @@ -22648,7 +22672,7 @@ func awsRestjson1_deserializeDocumentDataSet(v **types.DataSet, value interface{ if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OutputColumns": @@ -22675,7 +22699,7 @@ func awsRestjson1_deserializeDocumentDataSet(v **types.DataSet, value interface{ return nil } -func awsRestjson1_deserializeDocumentDataSetArnsList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSetArnsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22688,21 +22712,21 @@ func awsRestjson1_deserializeDocumentDataSetArnsList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -22749,7 +22773,7 @@ func awsRestjson1_deserializeDocumentDataSetConfiguration(v **types.DataSetConfi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Placeholder = &jtv + sv.Placeholder = ptr.String(jtv) } default: @@ -22761,7 +22785,7 @@ func awsRestjson1_deserializeDocumentDataSetConfiguration(v **types.DataSetConfi return nil } -func awsRestjson1_deserializeDocumentDataSetConfigurationList(v *[]*types.DataSetConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSetConfigurationList(v *[]types.DataSetConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22774,18 +22798,20 @@ func awsRestjson1_deserializeDocumentDataSetConfigurationList(v *[]*types.DataSe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataSetConfiguration + var cv []types.DataSetConfiguration if *v == nil { - cv = []*types.DataSetConfiguration{} + cv = []types.DataSetConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.DataSetConfiguration - if err := awsRestjson1_deserializeDocumentDataSetConfiguration(&col, value); err != nil { + var col types.DataSetConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataSetConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22857,7 +22883,7 @@ func awsRestjson1_deserializeDocumentDataSetSummary(v **types.DataSetSummary, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -22879,7 +22905,7 @@ func awsRestjson1_deserializeDocumentDataSetSummary(v **types.DataSetSummary, va if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataSetId = &jtv + sv.DataSetId = ptr.String(jtv) } case "ImportMode": @@ -22910,7 +22936,7 @@ func awsRestjson1_deserializeDocumentDataSetSummary(v **types.DataSetSummary, va if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RowLevelPermissionDataSet": @@ -22927,7 +22953,7 @@ func awsRestjson1_deserializeDocumentDataSetSummary(v **types.DataSetSummary, va return nil } -func awsRestjson1_deserializeDocumentDataSetSummaryList(v *[]*types.DataSetSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSetSummaryList(v *[]types.DataSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22940,18 +22966,20 @@ func awsRestjson1_deserializeDocumentDataSetSummaryList(v *[]*types.DataSetSumma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataSetSummary + var cv []types.DataSetSummary if *v == nil { - cv = []*types.DataSetSummary{} + cv = []types.DataSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DataSetSummary - if err := awsRestjson1_deserializeDocumentDataSetSummary(&col, value); err != nil { + var col types.DataSetSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22992,7 +23020,7 @@ func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -23014,7 +23042,7 @@ func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataSourceId = &jtv + sv.DataSourceId = ptr.String(jtv) } case "DataSourceParameters": @@ -23046,7 +23074,7 @@ func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SslProperties": @@ -23114,7 +23142,7 @@ func awsRestjson1_deserializeDocumentDataSourceErrorInfo(v **types.DataSourceErr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -23135,7 +23163,7 @@ func awsRestjson1_deserializeDocumentDataSourceErrorInfo(v **types.DataSourceErr return nil } -func awsRestjson1_deserializeDocumentDataSourceList(v *[]*types.DataSource, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSourceList(v *[]types.DataSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23148,18 +23176,20 @@ func awsRestjson1_deserializeDocumentDataSourceList(v *[]*types.DataSource, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataSource + var cv []types.DataSource if *v == nil { - cv = []*types.DataSource{} + cv = []types.DataSource{} } else { cv = *v } for _, value := range shape { - var col *types.DataSource - if err := awsRestjson1_deserializeDocumentDataSource(&col, value); err != nil { + var col types.DataSource + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23293,7 +23323,7 @@ func awsRestjson1_deserializeDocumentDataSourceParameters(v **types.DataSourcePa return nil } -func awsRestjson1_deserializeDocumentDataSourceParametersList(v *[]*types.DataSourceParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSourceParametersList(v *[]types.DataSourceParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23306,18 +23336,20 @@ func awsRestjson1_deserializeDocumentDataSourceParametersList(v *[]*types.DataSo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataSourceParameters + var cv []types.DataSourceParameters if *v == nil { - cv = []*types.DataSourceParameters{} + cv = []types.DataSourceParameters{} } else { cv = *v } for _, value := range shape { - var col *types.DataSourceParameters - if err := awsRestjson1_deserializeDocumentDataSourceParameters(&col, value); err != nil { + var col types.DataSourceParameters + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataSourceParameters(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23353,7 +23385,7 @@ func awsRestjson1_deserializeDocumentDomainNotWhitelistedException(v **types.Dom if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -23362,7 +23394,7 @@ func awsRestjson1_deserializeDocumentDomainNotWhitelistedException(v **types.Dom if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -23402,7 +23434,7 @@ func awsRestjson1_deserializeDocumentErrorInfo(v **types.ErrorInfo, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -23451,7 +23483,7 @@ func awsRestjson1_deserializeDocumentFilterOperation(v **types.FilterOperation, if !ok { return fmt.Errorf("expected Expression to be of type string, got %T instead", value) } - sv.ConditionExpression = &jtv + sv.ConditionExpression = ptr.String(jtv) } default: @@ -23505,7 +23537,7 @@ func awsRestjson1_deserializeDocumentGeoSpatialColumnGroup(v **types.GeoSpatialC if !ok { return fmt.Errorf("expected ColumnGroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -23545,7 +23577,7 @@ func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Description": @@ -23554,7 +23586,7 @@ func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected GroupDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "GroupName": @@ -23563,7 +23595,7 @@ func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected GroupName to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } case "PrincipalId": @@ -23572,7 +23604,7 @@ func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } default: @@ -23584,7 +23616,7 @@ func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentGroupList(v *[]*types.Group, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupList(v *[]types.Group, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23597,18 +23629,20 @@ func awsRestjson1_deserializeDocumentGroupList(v *[]*types.Group, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Group + var cv []types.Group if *v == nil { - cv = []*types.Group{} + cv = []types.Group{} } else { cv = *v } for _, value := range shape { - var col *types.Group - if err := awsRestjson1_deserializeDocumentGroup(&col, value); err != nil { + var col types.Group + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23644,7 +23678,7 @@ func awsRestjson1_deserializeDocumentGroupMember(v **types.GroupMember, value in if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "MemberName": @@ -23653,7 +23687,7 @@ func awsRestjson1_deserializeDocumentGroupMember(v **types.GroupMember, value in if !ok { return fmt.Errorf("expected GroupMemberName to be of type string, got %T instead", value) } - sv.MemberName = &jtv + sv.MemberName = ptr.String(jtv) } default: @@ -23665,7 +23699,7 @@ func awsRestjson1_deserializeDocumentGroupMember(v **types.GroupMember, value in return nil } -func awsRestjson1_deserializeDocumentGroupMemberList(v *[]*types.GroupMember, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupMemberList(v *[]types.GroupMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23678,18 +23712,20 @@ func awsRestjson1_deserializeDocumentGroupMemberList(v *[]*types.GroupMember, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupMember + var cv []types.GroupMember if *v == nil { - cv = []*types.GroupMember{} + cv = []types.GroupMember{} } else { cv = *v } for _, value := range shape { - var col *types.GroupMember - if err := awsRestjson1_deserializeDocumentGroupMember(&col, value); err != nil { + var col types.GroupMember + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroupMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23725,7 +23761,7 @@ func awsRestjson1_deserializeDocumentGutterStyle(v **types.GutterStyle, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Show = &jtv + sv.Show = jtv } default: @@ -23765,7 +23801,7 @@ func awsRestjson1_deserializeDocumentIAMPolicyAssignment(v **types.IAMPolicyAssi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AssignmentId = &jtv + sv.AssignmentId = ptr.String(jtv) } case "AssignmentName": @@ -23774,7 +23810,7 @@ func awsRestjson1_deserializeDocumentIAMPolicyAssignment(v **types.IAMPolicyAssi if !ok { return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) } - sv.AssignmentName = &jtv + sv.AssignmentName = ptr.String(jtv) } case "AssignmentStatus": @@ -23792,7 +23828,7 @@ func awsRestjson1_deserializeDocumentIAMPolicyAssignment(v **types.IAMPolicyAssi if !ok { return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.AwsAccountId = &jtv + sv.AwsAccountId = ptr.String(jtv) } case "Identities": @@ -23806,7 +23842,7 @@ func awsRestjson1_deserializeDocumentIAMPolicyAssignment(v **types.IAMPolicyAssi if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } default: @@ -23846,7 +23882,7 @@ func awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummary(v **types.IAMPol if !ok { return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) } - sv.AssignmentName = &jtv + sv.AssignmentName = ptr.String(jtv) } case "AssignmentStatus": @@ -23867,7 +23903,7 @@ func awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummary(v **types.IAMPol return nil } -func awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummaryList(v *[]*types.IAMPolicyAssignmentSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummaryList(v *[]types.IAMPolicyAssignmentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23880,18 +23916,20 @@ func awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummaryList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IAMPolicyAssignmentSummary + var cv []types.IAMPolicyAssignmentSummary if *v == nil { - cv = []*types.IAMPolicyAssignmentSummary{} + cv = []types.IAMPolicyAssignmentSummary{} } else { cv = *v } for _, value := range shape { - var col *types.IAMPolicyAssignmentSummary - if err := awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummary(&col, value); err != nil { + var col types.IAMPolicyAssignmentSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23899,7 +23937,7 @@ func awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummaryList(v *[]*types. return nil } -func awsRestjson1_deserializeDocumentIdentityMap(v *map[string][]*string, 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) } @@ -23912,18 +23950,20 @@ func awsRestjson1_deserializeDocumentIdentityMap(v *map[string][]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsRestjson1_deserializeDocumentIdentityNameList(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentIdentityNameList(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -23931,7 +23971,7 @@ func awsRestjson1_deserializeDocumentIdentityMap(v *map[string][]*string, value return nil } -func awsRestjson1_deserializeDocumentIdentityNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentIdentityNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23944,21 +23984,21 @@ func awsRestjson1_deserializeDocumentIdentityNameList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -23995,7 +24035,7 @@ func awsRestjson1_deserializeDocumentIdentityTypeNotSupportedException(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -24004,7 +24044,7 @@ func awsRestjson1_deserializeDocumentIdentityTypeNotSupportedException(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -24044,7 +24084,7 @@ func awsRestjson1_deserializeDocumentIngestion(v **types.Ingestion, value interf if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -24071,7 +24111,7 @@ func awsRestjson1_deserializeDocumentIngestion(v **types.Ingestion, value interf if !ok { return fmt.Errorf("expected IngestionId to be of type string, got %T instead", value) } - sv.IngestionId = &jtv + sv.IngestionId = ptr.String(jtv) } case "IngestionSizeInBytes": @@ -24084,7 +24124,7 @@ func awsRestjson1_deserializeDocumentIngestion(v **types.Ingestion, value interf if err != nil { return err } - sv.IngestionSizeInBytes = &i64 + sv.IngestionSizeInBytes = i64 } case "IngestionStatus": @@ -24106,7 +24146,7 @@ func awsRestjson1_deserializeDocumentIngestion(v **types.Ingestion, value interf if err != nil { return err } - sv.IngestionTimeInSeconds = &i64 + sv.IngestionTimeInSeconds = i64 } case "QueueInfo": @@ -24146,7 +24186,7 @@ func awsRestjson1_deserializeDocumentIngestion(v **types.Ingestion, value interf return nil } -func awsRestjson1_deserializeDocumentIngestions(v *[]*types.Ingestion, value interface{}) error { +func awsRestjson1_deserializeDocumentIngestions(v *[]types.Ingestion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24159,18 +24199,20 @@ func awsRestjson1_deserializeDocumentIngestions(v *[]*types.Ingestion, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Ingestion + var cv []types.Ingestion if *v == nil { - cv = []*types.Ingestion{} + cv = []types.Ingestion{} } else { cv = *v } for _, value := range shape { - var col *types.Ingestion - if err := awsRestjson1_deserializeDocumentIngestion(&col, value); err != nil { + var col types.Ingestion + destAddr := &col + if err := awsRestjson1_deserializeDocumentIngestion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24206,7 +24248,7 @@ func awsRestjson1_deserializeDocumentInputColumn(v **types.InputColumn, value in if !ok { return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Type": @@ -24227,7 +24269,7 @@ func awsRestjson1_deserializeDocumentInputColumn(v **types.InputColumn, value in return nil } -func awsRestjson1_deserializeDocumentInputColumnList(v *[]*types.InputColumn, value interface{}) error { +func awsRestjson1_deserializeDocumentInputColumnList(v *[]types.InputColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24240,18 +24282,20 @@ func awsRestjson1_deserializeDocumentInputColumnList(v *[]*types.InputColumn, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InputColumn + var cv []types.InputColumn if *v == nil { - cv = []*types.InputColumn{} + cv = []types.InputColumn{} } else { cv = *v } for _, value := range shape { - var col *types.InputColumn - if err := awsRestjson1_deserializeDocumentInputColumn(&col, value); err != nil { + var col types.InputColumn + destAddr := &col + if err := awsRestjson1_deserializeDocumentInputColumn(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24287,7 +24331,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -24296,7 +24340,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -24336,7 +24380,7 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -24345,7 +24389,7 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -24385,7 +24429,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -24394,7 +24438,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -24434,7 +24478,7 @@ func awsRestjson1_deserializeDocumentJiraParameters(v **types.JiraParameters, va if !ok { return fmt.Errorf("expected SiteBaseUrl to be of type string, got %T instead", value) } - sv.SiteBaseUrl = &jtv + sv.SiteBaseUrl = ptr.String(jtv) } default: @@ -24474,7 +24518,7 @@ func awsRestjson1_deserializeDocumentJoinInstruction(v **types.JoinInstruction, if !ok { return fmt.Errorf("expected LogicalTableId to be of type string, got %T instead", value) } - sv.LeftOperand = &jtv + sv.LeftOperand = ptr.String(jtv) } case "OnClause": @@ -24483,7 +24527,7 @@ func awsRestjson1_deserializeDocumentJoinInstruction(v **types.JoinInstruction, if !ok { return fmt.Errorf("expected OnClause to be of type string, got %T instead", value) } - sv.OnClause = &jtv + sv.OnClause = ptr.String(jtv) } case "RightOperand": @@ -24492,7 +24536,7 @@ func awsRestjson1_deserializeDocumentJoinInstruction(v **types.JoinInstruction, if !ok { return fmt.Errorf("expected LogicalTableId to be of type string, got %T instead", value) } - sv.RightOperand = &jtv + sv.RightOperand = ptr.String(jtv) } case "Type": @@ -24541,7 +24585,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -24550,7 +24594,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ResourceType": @@ -24599,7 +24643,7 @@ func awsRestjson1_deserializeDocumentLogicalTable(v **types.LogicalTable, value if !ok { return fmt.Errorf("expected LogicalTableAlias to be of type string, got %T instead", value) } - sv.Alias = &jtv + sv.Alias = ptr.String(jtv) } case "DataTransforms": @@ -24621,7 +24665,7 @@ func awsRestjson1_deserializeDocumentLogicalTable(v **types.LogicalTable, value return nil } -func awsRestjson1_deserializeDocumentLogicalTableMap(v *map[string]*types.LogicalTable, 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) } @@ -24634,18 +24678,21 @@ func awsRestjson1_deserializeDocumentLogicalTableMap(v *map[string]*types.Logica return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.LogicalTable + var mv map[string]types.LogicalTable if *v == nil { - mv = map[string]*types.LogicalTable{} + mv = map[string]types.LogicalTable{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.LogicalTable - if err := awsRestjson1_deserializeDocumentLogicalTable(&parsedVal, value); err != nil { + var parsedVal types.LogicalTable + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentLogicalTable(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -24686,7 +24733,7 @@ func awsRestjson1_deserializeDocumentLogicalTableSource(v **types.LogicalTableSo if !ok { return fmt.Errorf("expected PhysicalTableId to be of type string, got %T instead", value) } - sv.PhysicalTableId = &jtv + sv.PhysicalTableId = ptr.String(jtv) } default: @@ -24726,7 +24773,7 @@ func awsRestjson1_deserializeDocumentManifestFileLocation(v **types.ManifestFile if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "Key": @@ -24735,7 +24782,7 @@ func awsRestjson1_deserializeDocumentManifestFileLocation(v **types.ManifestFile if !ok { return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } default: @@ -24775,7 +24822,7 @@ func awsRestjson1_deserializeDocumentMarginStyle(v **types.MarginStyle, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Show = &jtv + sv.Show = jtv } default: @@ -24815,7 +24862,7 @@ func awsRestjson1_deserializeDocumentMariaDbParameters(v **types.MariaDbParamete if !ok { return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "Host": @@ -24824,7 +24871,7 @@ func awsRestjson1_deserializeDocumentMariaDbParameters(v **types.MariaDbParamete if !ok { return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.Host = &jtv + sv.Host = ptr.String(jtv) } case "Port": @@ -24837,7 +24884,7 @@ func awsRestjson1_deserializeDocumentMariaDbParameters(v **types.MariaDbParamete if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -24877,7 +24924,7 @@ func awsRestjson1_deserializeDocumentMySqlParameters(v **types.MySqlParameters, if !ok { return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "Host": @@ -24886,7 +24933,7 @@ func awsRestjson1_deserializeDocumentMySqlParameters(v **types.MySqlParameters, if !ok { return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.Host = &jtv + sv.Host = ptr.String(jtv) } case "Port": @@ -24899,7 +24946,7 @@ func awsRestjson1_deserializeDocumentMySqlParameters(v **types.MySqlParameters, if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -24939,7 +24986,7 @@ func awsRestjson1_deserializeDocumentNamespaceError(v **types.NamespaceError, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -24988,7 +25035,7 @@ func awsRestjson1_deserializeDocumentNamespaceInfoV2(v **types.NamespaceInfoV2, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CapacityRegion": @@ -24997,7 +25044,7 @@ func awsRestjson1_deserializeDocumentNamespaceInfoV2(v **types.NamespaceInfoV2, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CapacityRegion = &jtv + sv.CapacityRegion = ptr.String(jtv) } case "CreationStatus": @@ -25024,7 +25071,7 @@ func awsRestjson1_deserializeDocumentNamespaceInfoV2(v **types.NamespaceInfoV2, if !ok { return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NamespaceError": @@ -25041,7 +25088,7 @@ func awsRestjson1_deserializeDocumentNamespaceInfoV2(v **types.NamespaceInfoV2, return nil } -func awsRestjson1_deserializeDocumentNamespaces(v *[]*types.NamespaceInfoV2, value interface{}) error { +func awsRestjson1_deserializeDocumentNamespaces(v *[]types.NamespaceInfoV2, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25054,18 +25101,20 @@ func awsRestjson1_deserializeDocumentNamespaces(v *[]*types.NamespaceInfoV2, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NamespaceInfoV2 + var cv []types.NamespaceInfoV2 if *v == nil { - cv = []*types.NamespaceInfoV2{} + cv = []types.NamespaceInfoV2{} } else { cv = *v } for _, value := range shape { - var col *types.NamespaceInfoV2 - if err := awsRestjson1_deserializeDocumentNamespaceInfoV2(&col, value); err != nil { + var col types.NamespaceInfoV2 + destAddr := &col + if err := awsRestjson1_deserializeDocumentNamespaceInfoV2(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25101,7 +25150,7 @@ func awsRestjson1_deserializeDocumentOutputColumn(v **types.OutputColumn, value if !ok { return fmt.Errorf("expected ColumnDescriptiveText to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -25110,7 +25159,7 @@ func awsRestjson1_deserializeDocumentOutputColumn(v **types.OutputColumn, value if !ok { return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Type": @@ -25131,7 +25180,7 @@ func awsRestjson1_deserializeDocumentOutputColumn(v **types.OutputColumn, value return nil } -func awsRestjson1_deserializeDocumentOutputColumnList(v *[]*types.OutputColumn, value interface{}) error { +func awsRestjson1_deserializeDocumentOutputColumnList(v *[]types.OutputColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25144,18 +25193,20 @@ func awsRestjson1_deserializeDocumentOutputColumnList(v *[]*types.OutputColumn, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OutputColumn + var cv []types.OutputColumn if *v == nil { - cv = []*types.OutputColumn{} + cv = []types.OutputColumn{} } else { cv = *v } for _, value := range shape { - var col *types.OutputColumn - if err := awsRestjson1_deserializeDocumentOutputColumn(&col, value); err != nil { + var col types.OutputColumn + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutputColumn(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25209,7 +25260,7 @@ func awsRestjson1_deserializeDocumentPhysicalTable(v **types.PhysicalTable, valu return nil } -func awsRestjson1_deserializeDocumentPhysicalTableMap(v *map[string]*types.PhysicalTable, 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) } @@ -25222,18 +25273,21 @@ func awsRestjson1_deserializeDocumentPhysicalTableMap(v *map[string]*types.Physi return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.PhysicalTable + var mv map[string]types.PhysicalTable if *v == nil { - mv = map[string]*types.PhysicalTable{} + mv = map[string]types.PhysicalTable{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.PhysicalTable - if err := awsRestjson1_deserializeDocumentPhysicalTable(&parsedVal, value); err != nil { + var parsedVal types.PhysicalTable + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentPhysicalTable(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -25269,7 +25323,7 @@ func awsRestjson1_deserializeDocumentPostgreSqlParameters(v **types.PostgreSqlPa if !ok { return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "Host": @@ -25278,7 +25332,7 @@ func awsRestjson1_deserializeDocumentPostgreSqlParameters(v **types.PostgreSqlPa if !ok { return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.Host = &jtv + sv.Host = ptr.String(jtv) } case "Port": @@ -25291,7 +25345,7 @@ func awsRestjson1_deserializeDocumentPostgreSqlParameters(v **types.PostgreSqlPa if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -25331,7 +25385,7 @@ func awsRestjson1_deserializeDocumentPreconditionNotMetException(v **types.Preco if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -25340,7 +25394,7 @@ func awsRestjson1_deserializeDocumentPreconditionNotMetException(v **types.Preco if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -25380,7 +25434,7 @@ func awsRestjson1_deserializeDocumentPrestoParameters(v **types.PrestoParameters if !ok { return fmt.Errorf("expected Catalog to be of type string, got %T instead", value) } - sv.Catalog = &jtv + sv.Catalog = ptr.String(jtv) } case "Host": @@ -25389,7 +25443,7 @@ func awsRestjson1_deserializeDocumentPrestoParameters(v **types.PrestoParameters if !ok { return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.Host = &jtv + sv.Host = ptr.String(jtv) } case "Port": @@ -25402,7 +25456,7 @@ func awsRestjson1_deserializeDocumentPrestoParameters(v **types.PrestoParameters if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -25414,7 +25468,7 @@ func awsRestjson1_deserializeDocumentPrestoParameters(v **types.PrestoParameters return nil } -func awsRestjson1_deserializeDocumentProjectedColumnList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentProjectedColumnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25427,21 +25481,21 @@ func awsRestjson1_deserializeDocumentProjectedColumnList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -25514,7 +25568,7 @@ func awsRestjson1_deserializeDocumentQueueInfo(v **types.QueueInfo, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.QueuedIngestion = &jtv + sv.QueuedIngestion = ptr.String(jtv) } case "WaitingOnIngestion": @@ -25523,7 +25577,7 @@ func awsRestjson1_deserializeDocumentQueueInfo(v **types.QueueInfo, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.WaitingOnIngestion = &jtv + sv.WaitingOnIngestion = ptr.String(jtv) } default: @@ -25563,7 +25617,7 @@ func awsRestjson1_deserializeDocumentQuickSightUserNotFoundException(v **types.Q if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -25572,7 +25626,7 @@ func awsRestjson1_deserializeDocumentQuickSightUserNotFoundException(v **types.Q if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -25612,7 +25666,7 @@ func awsRestjson1_deserializeDocumentRdsParameters(v **types.RdsParameters, valu if !ok { return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "InstanceId": @@ -25621,7 +25675,7 @@ func awsRestjson1_deserializeDocumentRdsParameters(v **types.RdsParameters, valu if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } default: @@ -25661,7 +25715,7 @@ func awsRestjson1_deserializeDocumentRedshiftParameters(v **types.RedshiftParame if !ok { return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) } - sv.ClusterId = &jtv + sv.ClusterId = ptr.String(jtv) } case "Database": @@ -25670,7 +25724,7 @@ func awsRestjson1_deserializeDocumentRedshiftParameters(v **types.RedshiftParame if !ok { return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "Host": @@ -25679,7 +25733,7 @@ func awsRestjson1_deserializeDocumentRedshiftParameters(v **types.RedshiftParame if !ok { return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.Host = &jtv + sv.Host = ptr.String(jtv) } case "Port": @@ -25692,7 +25746,7 @@ func awsRestjson1_deserializeDocumentRedshiftParameters(v **types.RedshiftParame if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -25732,7 +25786,7 @@ func awsRestjson1_deserializeDocumentRelationalTable(v **types.RelationalTable, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DataSourceArn = &jtv + sv.DataSourceArn = ptr.String(jtv) } case "InputColumns": @@ -25746,7 +25800,7 @@ func awsRestjson1_deserializeDocumentRelationalTable(v **types.RelationalTable, if !ok { return fmt.Errorf("expected RelationalTableName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Schema": @@ -25755,7 +25809,7 @@ func awsRestjson1_deserializeDocumentRelationalTable(v **types.RelationalTable, if !ok { return fmt.Errorf("expected RelationalTableSchema to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } default: @@ -25795,7 +25849,7 @@ func awsRestjson1_deserializeDocumentRenameColumnOperation(v **types.RenameColum if !ok { return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.ColumnName = &jtv + sv.ColumnName = ptr.String(jtv) } case "NewColumnName": @@ -25804,7 +25858,7 @@ func awsRestjson1_deserializeDocumentRenameColumnOperation(v **types.RenameColum if !ok { return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.NewColumnName = &jtv + sv.NewColumnName = ptr.String(jtv) } default: @@ -25844,7 +25898,7 @@ func awsRestjson1_deserializeDocumentResourceExistsException(v **types.ResourceE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -25853,7 +25907,7 @@ func awsRestjson1_deserializeDocumentResourceExistsException(v **types.ResourceE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ResourceType": @@ -25902,7 +25956,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -25911,7 +25965,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ResourceType": @@ -25965,7 +26019,7 @@ func awsRestjson1_deserializeDocumentResourcePermission(v **types.ResourcePermis if !ok { return fmt.Errorf("expected Principal to be of type string, got %T instead", value) } - sv.Principal = &jtv + sv.Principal = ptr.String(jtv) } default: @@ -25977,7 +26031,7 @@ func awsRestjson1_deserializeDocumentResourcePermission(v **types.ResourcePermis return nil } -func awsRestjson1_deserializeDocumentResourcePermissionList(v *[]*types.ResourcePermission, value interface{}) error { +func awsRestjson1_deserializeDocumentResourcePermissionList(v *[]types.ResourcePermission, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25990,18 +26044,20 @@ func awsRestjson1_deserializeDocumentResourcePermissionList(v *[]*types.Resource return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourcePermission + var cv []types.ResourcePermission if *v == nil { - cv = []*types.ResourcePermission{} + cv = []types.ResourcePermission{} } else { cv = *v } for _, value := range shape { - var col *types.ResourcePermission - if err := awsRestjson1_deserializeDocumentResourcePermission(&col, value); err != nil { + var col types.ResourcePermission + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourcePermission(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26037,7 +26093,7 @@ func awsRestjson1_deserializeDocumentResourceUnavailableException(v **types.Reso if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -26046,7 +26102,7 @@ func awsRestjson1_deserializeDocumentResourceUnavailableException(v **types.Reso if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "ResourceType": @@ -26099,7 +26155,7 @@ func awsRestjson1_deserializeDocumentRowInfo(v **types.RowInfo, value interface{ if err != nil { return err } - sv.RowsDropped = &i64 + sv.RowsDropped = i64 } case "RowsIngested": @@ -26112,7 +26168,7 @@ func awsRestjson1_deserializeDocumentRowInfo(v **types.RowInfo, value interface{ if err != nil { return err } - sv.RowsIngested = &i64 + sv.RowsIngested = i64 } default: @@ -26152,7 +26208,7 @@ func awsRestjson1_deserializeDocumentRowLevelPermissionDataSet(v **types.RowLeve if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Namespace": @@ -26161,7 +26217,7 @@ func awsRestjson1_deserializeDocumentRowLevelPermissionDataSet(v **types.RowLeve if !ok { return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) } - sv.Namespace = &jtv + sv.Namespace = ptr.String(jtv) } case "PermissionPolicy": @@ -26246,7 +26302,7 @@ func awsRestjson1_deserializeDocumentS3Source(v **types.S3Source, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DataSourceArn = &jtv + sv.DataSourceArn = ptr.String(jtv) } case "InputColumns": @@ -26296,7 +26352,7 @@ func awsRestjson1_deserializeDocumentServiceNowParameters(v **types.ServiceNowPa if !ok { return fmt.Errorf("expected SiteBaseUrl to be of type string, got %T instead", value) } - sv.SiteBaseUrl = &jtv + sv.SiteBaseUrl = ptr.String(jtv) } default: @@ -26336,7 +26392,7 @@ func awsRestjson1_deserializeDocumentSessionLifetimeInMinutesInvalidException(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -26345,7 +26401,7 @@ func awsRestjson1_deserializeDocumentSessionLifetimeInMinutesInvalidException(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -26385,7 +26441,7 @@ func awsRestjson1_deserializeDocumentSheet(v **types.Sheet, value interface{}) e if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SheetId": @@ -26394,7 +26450,7 @@ func awsRestjson1_deserializeDocumentSheet(v **types.Sheet, value interface{}) e if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.SheetId = &jtv + sv.SheetId = ptr.String(jtv) } default: @@ -26406,7 +26462,7 @@ func awsRestjson1_deserializeDocumentSheet(v **types.Sheet, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentSheetList(v *[]*types.Sheet, value interface{}) error { +func awsRestjson1_deserializeDocumentSheetList(v *[]types.Sheet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26419,18 +26475,20 @@ func awsRestjson1_deserializeDocumentSheetList(v *[]*types.Sheet, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Sheet + var cv []types.Sheet if *v == nil { - cv = []*types.Sheet{} + cv = []types.Sheet{} } else { cv = *v } for _, value := range shape { - var col *types.Sheet - if err := awsRestjson1_deserializeDocumentSheet(&col, value); err != nil { + var col types.Sheet + destAddr := &col + if err := awsRestjson1_deserializeDocumentSheet(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26507,7 +26565,7 @@ func awsRestjson1_deserializeDocumentSnowflakeParameters(v **types.SnowflakePara if !ok { return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "Host": @@ -26516,7 +26574,7 @@ func awsRestjson1_deserializeDocumentSnowflakeParameters(v **types.SnowflakePara if !ok { return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.Host = &jtv + sv.Host = ptr.String(jtv) } case "Warehouse": @@ -26525,7 +26583,7 @@ func awsRestjson1_deserializeDocumentSnowflakeParameters(v **types.SnowflakePara if !ok { return fmt.Errorf("expected Warehouse to be of type string, got %T instead", value) } - sv.Warehouse = &jtv + sv.Warehouse = ptr.String(jtv) } default: @@ -26565,7 +26623,7 @@ func awsRestjson1_deserializeDocumentSparkParameters(v **types.SparkParameters, if !ok { return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.Host = &jtv + sv.Host = ptr.String(jtv) } case "Port": @@ -26578,7 +26636,7 @@ func awsRestjson1_deserializeDocumentSparkParameters(v **types.SparkParameters, if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -26618,7 +26676,7 @@ func awsRestjson1_deserializeDocumentSqlServerParameters(v **types.SqlServerPara if !ok { return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "Host": @@ -26627,7 +26685,7 @@ func awsRestjson1_deserializeDocumentSqlServerParameters(v **types.SqlServerPara if !ok { return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.Host = &jtv + sv.Host = ptr.String(jtv) } case "Port": @@ -26640,7 +26698,7 @@ func awsRestjson1_deserializeDocumentSqlServerParameters(v **types.SqlServerPara if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -26680,7 +26738,7 @@ func awsRestjson1_deserializeDocumentSslProperties(v **types.SslProperties, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DisableSsl = &jtv + sv.DisableSsl = jtv } default: @@ -26720,7 +26778,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -26729,7 +26787,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -26769,7 +26827,7 @@ func awsRestjson1_deserializeDocumentTagColumnOperation(v **types.TagColumnOpera if !ok { return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.ColumnName = &jtv + sv.ColumnName = ptr.String(jtv) } case "Tags": @@ -26786,7 +26844,7 @@ func awsRestjson1_deserializeDocumentTagColumnOperation(v **types.TagColumnOpera return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26799,18 +26857,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26846,7 +26906,7 @@ func awsRestjson1_deserializeDocumentTemplate(v **types.Template, value interfac if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -26881,7 +26941,7 @@ func awsRestjson1_deserializeDocumentTemplate(v **types.Template, value interfac if !ok { return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "TemplateId": @@ -26890,7 +26950,7 @@ func awsRestjson1_deserializeDocumentTemplate(v **types.Template, value interfac if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.TemplateId = &jtv + sv.TemplateId = ptr.String(jtv) } case "Version": @@ -26935,7 +26995,7 @@ func awsRestjson1_deserializeDocumentTemplateAlias(v **types.TemplateAlias, valu if !ok { return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) } - sv.AliasName = &jtv + sv.AliasName = ptr.String(jtv) } case "Arn": @@ -26944,7 +27004,7 @@ func awsRestjson1_deserializeDocumentTemplateAlias(v **types.TemplateAlias, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "TemplateVersionNumber": @@ -26957,7 +27017,7 @@ func awsRestjson1_deserializeDocumentTemplateAlias(v **types.TemplateAlias, valu if err != nil { return err } - sv.TemplateVersionNumber = &i64 + sv.TemplateVersionNumber = ptr.Int64(i64) } default: @@ -26969,7 +27029,7 @@ func awsRestjson1_deserializeDocumentTemplateAlias(v **types.TemplateAlias, valu return nil } -func awsRestjson1_deserializeDocumentTemplateAliasList(v *[]*types.TemplateAlias, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateAliasList(v *[]types.TemplateAlias, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26982,18 +27042,20 @@ func awsRestjson1_deserializeDocumentTemplateAliasList(v *[]*types.TemplateAlias return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TemplateAlias + var cv []types.TemplateAlias if *v == nil { - cv = []*types.TemplateAlias{} + cv = []types.TemplateAlias{} } else { cv = *v } for _, value := range shape { - var col *types.TemplateAlias - if err := awsRestjson1_deserializeDocumentTemplateAlias(&col, value); err != nil { + var col types.TemplateAlias + destAddr := &col + if err := awsRestjson1_deserializeDocumentTemplateAlias(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27029,7 +27091,7 @@ func awsRestjson1_deserializeDocumentTemplateError(v **types.TemplateError, valu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -27050,7 +27112,7 @@ func awsRestjson1_deserializeDocumentTemplateError(v **types.TemplateError, valu return nil } -func awsRestjson1_deserializeDocumentTemplateErrorList(v *[]*types.TemplateError, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateErrorList(v *[]types.TemplateError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27063,18 +27125,20 @@ func awsRestjson1_deserializeDocumentTemplateErrorList(v *[]*types.TemplateError return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TemplateError + var cv []types.TemplateError if *v == nil { - cv = []*types.TemplateError{} + cv = []types.TemplateError{} } else { cv = *v } for _, value := range shape { - var col *types.TemplateError - if err := awsRestjson1_deserializeDocumentTemplateError(&col, value); err != nil { + var col types.TemplateError + destAddr := &col + if err := awsRestjson1_deserializeDocumentTemplateError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27110,7 +27174,7 @@ func awsRestjson1_deserializeDocumentTemplateSummary(v **types.TemplateSummary, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -27149,7 +27213,7 @@ func awsRestjson1_deserializeDocumentTemplateSummary(v **types.TemplateSummary, if err != nil { return err } - sv.LatestVersionNumber = &i64 + sv.LatestVersionNumber = ptr.Int64(i64) } case "Name": @@ -27158,7 +27222,7 @@ func awsRestjson1_deserializeDocumentTemplateSummary(v **types.TemplateSummary, if !ok { return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "TemplateId": @@ -27167,7 +27231,7 @@ func awsRestjson1_deserializeDocumentTemplateSummary(v **types.TemplateSummary, if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.TemplateId = &jtv + sv.TemplateId = ptr.String(jtv) } default: @@ -27179,7 +27243,7 @@ func awsRestjson1_deserializeDocumentTemplateSummary(v **types.TemplateSummary, return nil } -func awsRestjson1_deserializeDocumentTemplateSummaryList(v *[]*types.TemplateSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateSummaryList(v *[]types.TemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27192,18 +27256,20 @@ func awsRestjson1_deserializeDocumentTemplateSummaryList(v *[]*types.TemplateSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TemplateSummary + var cv []types.TemplateSummary if *v == nil { - cv = []*types.TemplateSummary{} + cv = []types.TemplateSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TemplateSummary - if err := awsRestjson1_deserializeDocumentTemplateSummary(&col, value); err != nil { + var col types.TemplateSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentTemplateSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27257,7 +27323,7 @@ func awsRestjson1_deserializeDocumentTemplateVersion(v **types.TemplateVersion, if !ok { return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Errors": @@ -27276,7 +27342,7 @@ func awsRestjson1_deserializeDocumentTemplateVersion(v **types.TemplateVersion, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.SourceEntityArn = &jtv + sv.SourceEntityArn = ptr.String(jtv) } case "Status": @@ -27294,7 +27360,7 @@ func awsRestjson1_deserializeDocumentTemplateVersion(v **types.TemplateVersion, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ThemeArn = &jtv + sv.ThemeArn = ptr.String(jtv) } case "VersionNumber": @@ -27307,7 +27373,7 @@ func awsRestjson1_deserializeDocumentTemplateVersion(v **types.TemplateVersion, if err != nil { return err } - sv.VersionNumber = &i64 + sv.VersionNumber = ptr.Int64(i64) } default: @@ -27347,7 +27413,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionSummary(v **types.TemplateVe if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -27369,7 +27435,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionSummary(v **types.TemplateVe if !ok { return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Status": @@ -27391,7 +27457,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionSummary(v **types.TemplateVe if err != nil { return err } - sv.VersionNumber = &i64 + sv.VersionNumber = ptr.Int64(i64) } default: @@ -27403,7 +27469,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionSummary(v **types.TemplateVe return nil } -func awsRestjson1_deserializeDocumentTemplateVersionSummaryList(v *[]*types.TemplateVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateVersionSummaryList(v *[]types.TemplateVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27416,18 +27482,20 @@ func awsRestjson1_deserializeDocumentTemplateVersionSummaryList(v *[]*types.Temp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TemplateVersionSummary + var cv []types.TemplateVersionSummary if *v == nil { - cv = []*types.TemplateVersionSummary{} + cv = []types.TemplateVersionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TemplateVersionSummary - if err := awsRestjson1_deserializeDocumentTemplateVersionSummary(&col, value); err != nil { + var col types.TemplateVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentTemplateVersionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27463,7 +27531,7 @@ func awsRestjson1_deserializeDocumentTeradataParameters(v **types.TeradataParame if !ok { return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "Host": @@ -27472,7 +27540,7 @@ func awsRestjson1_deserializeDocumentTeradataParameters(v **types.TeradataParame if !ok { return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.Host = &jtv + sv.Host = ptr.String(jtv) } case "Port": @@ -27485,7 +27553,7 @@ func awsRestjson1_deserializeDocumentTeradataParameters(v **types.TeradataParame if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -27525,7 +27593,7 @@ func awsRestjson1_deserializeDocumentTheme(v **types.Theme, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -27560,7 +27628,7 @@ func awsRestjson1_deserializeDocumentTheme(v **types.Theme, value interface{}) e if !ok { return fmt.Errorf("expected ThemeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ThemeId": @@ -27569,7 +27637,7 @@ func awsRestjson1_deserializeDocumentTheme(v **types.Theme, value interface{}) e if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.ThemeId = &jtv + sv.ThemeId = ptr.String(jtv) } case "Type": @@ -27623,7 +27691,7 @@ func awsRestjson1_deserializeDocumentThemeAlias(v **types.ThemeAlias, value inte if !ok { return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) } - sv.AliasName = &jtv + sv.AliasName = ptr.String(jtv) } case "Arn": @@ -27632,7 +27700,7 @@ func awsRestjson1_deserializeDocumentThemeAlias(v **types.ThemeAlias, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "ThemeVersionNumber": @@ -27645,7 +27713,7 @@ func awsRestjson1_deserializeDocumentThemeAlias(v **types.ThemeAlias, value inte if err != nil { return err } - sv.ThemeVersionNumber = &i64 + sv.ThemeVersionNumber = ptr.Int64(i64) } default: @@ -27657,7 +27725,7 @@ func awsRestjson1_deserializeDocumentThemeAlias(v **types.ThemeAlias, value inte return nil } -func awsRestjson1_deserializeDocumentThemeAliasList(v *[]*types.ThemeAlias, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeAliasList(v *[]types.ThemeAlias, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27670,18 +27738,20 @@ func awsRestjson1_deserializeDocumentThemeAliasList(v *[]*types.ThemeAlias, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ThemeAlias + var cv []types.ThemeAlias if *v == nil { - cv = []*types.ThemeAlias{} + cv = []types.ThemeAlias{} } else { cv = *v } for _, value := range shape { - var col *types.ThemeAlias - if err := awsRestjson1_deserializeDocumentThemeAlias(&col, value); err != nil { + var col types.ThemeAlias + destAddr := &col + if err := awsRestjson1_deserializeDocumentThemeAlias(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27763,7 +27833,7 @@ func awsRestjson1_deserializeDocumentThemeError(v **types.ThemeError, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -27784,7 +27854,7 @@ func awsRestjson1_deserializeDocumentThemeError(v **types.ThemeError, value inte return nil } -func awsRestjson1_deserializeDocumentThemeErrorList(v *[]*types.ThemeError, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeErrorList(v *[]types.ThemeError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27797,18 +27867,20 @@ func awsRestjson1_deserializeDocumentThemeErrorList(v *[]*types.ThemeError, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ThemeError + var cv []types.ThemeError if *v == nil { - cv = []*types.ThemeError{} + cv = []types.ThemeError{} } else { cv = *v } for _, value := range shape { - var col *types.ThemeError - if err := awsRestjson1_deserializeDocumentThemeError(&col, value); err != nil { + var col types.ThemeError + destAddr := &col + if err := awsRestjson1_deserializeDocumentThemeError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27844,7 +27916,7 @@ func awsRestjson1_deserializeDocumentThemeSummary(v **types.ThemeSummary, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -27883,7 +27955,7 @@ func awsRestjson1_deserializeDocumentThemeSummary(v **types.ThemeSummary, value if err != nil { return err } - sv.LatestVersionNumber = &i64 + sv.LatestVersionNumber = ptr.Int64(i64) } case "Name": @@ -27892,7 +27964,7 @@ func awsRestjson1_deserializeDocumentThemeSummary(v **types.ThemeSummary, value if !ok { return fmt.Errorf("expected ThemeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ThemeId": @@ -27901,7 +27973,7 @@ func awsRestjson1_deserializeDocumentThemeSummary(v **types.ThemeSummary, value if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.ThemeId = &jtv + sv.ThemeId = ptr.String(jtv) } default: @@ -27913,7 +27985,7 @@ func awsRestjson1_deserializeDocumentThemeSummary(v **types.ThemeSummary, value return nil } -func awsRestjson1_deserializeDocumentThemeSummaryList(v *[]*types.ThemeSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeSummaryList(v *[]types.ThemeSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27926,18 +27998,20 @@ func awsRestjson1_deserializeDocumentThemeSummaryList(v *[]*types.ThemeSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ThemeSummary + var cv []types.ThemeSummary if *v == nil { - cv = []*types.ThemeSummary{} + cv = []types.ThemeSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ThemeSummary - if err := awsRestjson1_deserializeDocumentThemeSummary(&col, value); err != nil { + var col types.ThemeSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentThemeSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27973,7 +28047,7 @@ func awsRestjson1_deserializeDocumentThemeVersion(v **types.ThemeVersion, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "BaseThemeId": @@ -27982,7 +28056,7 @@ func awsRestjson1_deserializeDocumentThemeVersion(v **types.ThemeVersion, value if !ok { return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.BaseThemeId = &jtv + sv.BaseThemeId = ptr.String(jtv) } case "Configuration": @@ -28009,7 +28083,7 @@ func awsRestjson1_deserializeDocumentThemeVersion(v **types.ThemeVersion, value if !ok { return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Errors": @@ -28036,7 +28110,7 @@ func awsRestjson1_deserializeDocumentThemeVersion(v **types.ThemeVersion, value if err != nil { return err } - sv.VersionNumber = &i64 + sv.VersionNumber = ptr.Int64(i64) } default: @@ -28076,7 +28150,7 @@ func awsRestjson1_deserializeDocumentThemeVersionSummary(v **types.ThemeVersionS if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -28098,7 +28172,7 @@ func awsRestjson1_deserializeDocumentThemeVersionSummary(v **types.ThemeVersionS if !ok { return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Status": @@ -28120,7 +28194,7 @@ func awsRestjson1_deserializeDocumentThemeVersionSummary(v **types.ThemeVersionS if err != nil { return err } - sv.VersionNumber = &i64 + sv.VersionNumber = ptr.Int64(i64) } default: @@ -28132,7 +28206,7 @@ func awsRestjson1_deserializeDocumentThemeVersionSummary(v **types.ThemeVersionS return nil } -func awsRestjson1_deserializeDocumentThemeVersionSummaryList(v *[]*types.ThemeVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeVersionSummaryList(v *[]types.ThemeVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28145,18 +28219,20 @@ func awsRestjson1_deserializeDocumentThemeVersionSummaryList(v *[]*types.ThemeVe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ThemeVersionSummary + var cv []types.ThemeVersionSummary if *v == nil { - cv = []*types.ThemeVersionSummary{} + cv = []types.ThemeVersionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ThemeVersionSummary - if err := awsRestjson1_deserializeDocumentThemeVersionSummary(&col, value); err != nil { + var col types.ThemeVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentThemeVersionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28192,7 +28268,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -28201,7 +28277,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -28351,7 +28427,7 @@ func awsRestjson1_deserializeDocumentTransformOperation(v **types.TransformOpera return nil } -func awsRestjson1_deserializeDocumentTransformOperationList(v *[]*types.TransformOperation, value interface{}) error { +func awsRestjson1_deserializeDocumentTransformOperationList(v *[]types.TransformOperation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28364,18 +28440,20 @@ func awsRestjson1_deserializeDocumentTransformOperationList(v *[]*types.Transfor return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TransformOperation + var cv []types.TransformOperation if *v == nil { - cv = []*types.TransformOperation{} + cv = []types.TransformOperation{} } else { cv = *v } for _, value := range shape { - var col *types.TransformOperation - if err := awsRestjson1_deserializeDocumentTransformOperation(&col, value); err != nil { + var col types.TransformOperation + destAddr := &col + if err := awsRestjson1_deserializeDocumentTransformOperation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28415,7 +28493,7 @@ func awsRestjson1_deserializeDocumentTwitterParameters(v **types.TwitterParamete if err != nil { return err } - sv.MaxRows = ptr.Int32(int32(i64)) + sv.MaxRows = int32(i64) } case "Query": @@ -28424,7 +28502,7 @@ func awsRestjson1_deserializeDocumentTwitterParameters(v **types.TwitterParamete if !ok { return fmt.Errorf("expected Query to be of type string, got %T instead", value) } - sv.Query = &jtv + sv.Query = ptr.String(jtv) } default: @@ -28464,7 +28542,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.Accent = &jtv + sv.Accent = ptr.String(jtv) } case "AccentForeground": @@ -28473,7 +28551,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.AccentForeground = &jtv + sv.AccentForeground = ptr.String(jtv) } case "Danger": @@ -28482,7 +28560,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.Danger = &jtv + sv.Danger = ptr.String(jtv) } case "DangerForeground": @@ -28491,7 +28569,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.DangerForeground = &jtv + sv.DangerForeground = ptr.String(jtv) } case "Dimension": @@ -28500,7 +28578,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.Dimension = &jtv + sv.Dimension = ptr.String(jtv) } case "DimensionForeground": @@ -28509,7 +28587,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.DimensionForeground = &jtv + sv.DimensionForeground = ptr.String(jtv) } case "Measure": @@ -28518,7 +28596,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.Measure = &jtv + sv.Measure = ptr.String(jtv) } case "MeasureForeground": @@ -28527,7 +28605,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.MeasureForeground = &jtv + sv.MeasureForeground = ptr.String(jtv) } case "PrimaryBackground": @@ -28536,7 +28614,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.PrimaryBackground = &jtv + sv.PrimaryBackground = ptr.String(jtv) } case "PrimaryForeground": @@ -28545,7 +28623,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.PrimaryForeground = &jtv + sv.PrimaryForeground = ptr.String(jtv) } case "SecondaryBackground": @@ -28554,7 +28632,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.SecondaryBackground = &jtv + sv.SecondaryBackground = ptr.String(jtv) } case "SecondaryForeground": @@ -28563,7 +28641,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.SecondaryForeground = &jtv + sv.SecondaryForeground = ptr.String(jtv) } case "Success": @@ -28572,7 +28650,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.Success = &jtv + sv.Success = ptr.String(jtv) } case "SuccessForeground": @@ -28581,7 +28659,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.SuccessForeground = &jtv + sv.SuccessForeground = ptr.String(jtv) } case "Warning": @@ -28590,7 +28668,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.Warning = &jtv + sv.Warning = ptr.String(jtv) } case "WarningForeground": @@ -28599,7 +28677,7 @@ func awsRestjson1_deserializeDocumentUIColorPalette(v **types.UIColorPalette, va if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.WarningForeground = &jtv + sv.WarningForeground = ptr.String(jtv) } default: @@ -28639,7 +28717,7 @@ func awsRestjson1_deserializeDocumentUnsupportedUserEditionException(v **types.U if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RequestId": @@ -28648,7 +28726,7 @@ func awsRestjson1_deserializeDocumentUnsupportedUserEditionException(v **types.U if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } default: @@ -28688,7 +28766,7 @@ func awsRestjson1_deserializeDocumentUploadSettings(v **types.UploadSettings, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ContainsHeader = &jtv + sv.ContainsHeader = jtv } case "Delimiter": @@ -28697,7 +28775,7 @@ func awsRestjson1_deserializeDocumentUploadSettings(v **types.UploadSettings, va if !ok { return fmt.Errorf("expected Delimiter to be of type string, got %T instead", value) } - sv.Delimiter = &jtv + sv.Delimiter = ptr.String(jtv) } case "Format": @@ -28719,7 +28797,7 @@ func awsRestjson1_deserializeDocumentUploadSettings(v **types.UploadSettings, va if err != nil { return err } - sv.StartFromRow = ptr.Int32(int32(i64)) + sv.StartFromRow = int32(i64) } case "TextQualifier": @@ -28768,7 +28846,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Active = &jtv + sv.Active = jtv } case "Arn": @@ -28777,7 +28855,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CustomPermissionsName": @@ -28786,7 +28864,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected RoleName to be of type string, got %T instead", value) } - sv.CustomPermissionsName = &jtv + sv.CustomPermissionsName = ptr.String(jtv) } case "Email": @@ -28795,7 +28873,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "IdentityType": @@ -28813,7 +28891,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } case "Role": @@ -28831,7 +28909,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -28843,7 +28921,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentUserList(v *[]*types.User, value interface{}) error { +func awsRestjson1_deserializeDocumentUserList(v *[]types.User, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28856,18 +28934,20 @@ func awsRestjson1_deserializeDocumentUserList(v *[]*types.User, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.User + var cv []types.User if *v == nil { - cv = []*types.User{} + cv = []types.User{} } else { cv = *v } for _, value := range shape { - var col *types.User - if err := awsRestjson1_deserializeDocumentUser(&col, value); err != nil { + var col types.User + destAddr := &col + if err := awsRestjson1_deserializeDocumentUser(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28903,7 +28983,7 @@ func awsRestjson1_deserializeDocumentVpcConnectionProperties(v **types.VpcConnec if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.VpcConnectionArn = &jtv + sv.VpcConnectionArn = ptr.String(jtv) } default: diff --git a/service/quicksight/go.mod b/service/quicksight/go.mod index 2bc6b12f370..b59315fd112 100644 --- a/service/quicksight/go.mod +++ b/service/quicksight/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/quicksight go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/quicksight/serializers.go b/service/quicksight/serializers.go index 19af45aa28d..0b7a0dd8bab 100644 --- a/service/quicksight/serializers.go +++ b/service/quicksight/serializers.go @@ -67,37 +67,28 @@ func awsRestjson1_serializeOpHttpBindingsCancelIngestionInput(v *CancelIngestion return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } - if v.IngestionId == nil { + if v.IngestionId == nil || len(*v.IngestionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IngestionId must not be empty")} } if v.IngestionId != nil { - if len(*v.IngestionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IngestionId must not be empty")} - } if err := encoder.SetURI("IngestionId").String(*v.IngestionId); err != nil { return err } @@ -168,13 +159,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateAccountCustomizationInput(v *Crea return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -270,25 +258,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateAnalysisInput(v *CreateAnalysisIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalysisId == nil { + 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 len(*v.AnalysisId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} - } if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -404,25 +386,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateDashboardInput(v *CreateDashboard return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DashboardId == nil { + 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 len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} - } if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } @@ -550,13 +526,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateDataSetInput(v *CreateDataSetInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -691,13 +664,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateDataSourceInput(v *CreateDataSour return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -832,25 +802,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateGroupInput(v *CreateGroupInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -927,49 +891,37 @@ func awsRestjson1_serializeOpHttpBindingsCreateGroupMembershipInput(v *CreateGro return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.GroupName == nil { + 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 len(*v.GroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupName must not be empty")} - } if err := encoder.SetURI("GroupName").String(*v.GroupName); err != nil { return err } } - if v.MemberName == nil { + if v.MemberName == nil || len(*v.MemberName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MemberName must not be empty")} } if v.MemberName != nil { - if len(*v.MemberName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MemberName must not be empty")} - } if err := encoder.SetURI("MemberName").String(*v.MemberName); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -1040,25 +992,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateIAMPolicyAssignmentInput(v *Creat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -1147,37 +1093,28 @@ func awsRestjson1_serializeOpHttpBindingsCreateIngestionInput(v *CreateIngestion return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } - if v.IngestionId == nil { + if v.IngestionId == nil || len(*v.IngestionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IngestionId must not be empty")} } if v.IngestionId != nil { - if len(*v.IngestionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IngestionId must not be empty")} - } if err := encoder.SetURI("IngestionId").String(*v.IngestionId); err != nil { return err } @@ -1248,13 +1185,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateNamespaceInput(v *CreateNamespace return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -1349,25 +1283,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateTemplateInput(v *CreateTemplateIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.TemplateId == 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 len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } @@ -1476,37 +1404,28 @@ func awsRestjson1_serializeOpHttpBindingsCreateTemplateAliasInput(v *CreateTempl return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AliasName == 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 len(*v.AliasName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AliasName must not be empty")} - } if err := encoder.SetURI("AliasName").String(*v.AliasName); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.TemplateId == 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 len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } @@ -1589,25 +1508,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateThemeInput(v *CreateThemeInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.ThemeId == 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 len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } @@ -1721,37 +1634,28 @@ func awsRestjson1_serializeOpHttpBindingsCreateThemeAliasInput(v *CreateThemeAli return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AliasName == 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 len(*v.AliasName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AliasName must not be empty")} - } if err := encoder.SetURI("AliasName").String(*v.AliasName); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.ThemeId == 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 len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } @@ -1823,13 +1727,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAccountCustomizationInput(v *Dele return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -1893,32 +1794,26 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAnalysisInput(v *DeleteAnalysisIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalysisId == nil { + 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 len(*v.AnalysisId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} - } if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.ForceDeleteWithoutRecovery != nil { - encoder.SetQuery("force-delete-without-recovery").Boolean(*v.ForceDeleteWithoutRecovery) + if v.ForceDeleteWithoutRecovery { + encoder.SetQuery("force-delete-without-recovery").Boolean(v.ForceDeleteWithoutRecovery) } if v.RecoveryWindowInDays != nil { @@ -1979,25 +1874,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDashboardInput(v *DeleteDashboard return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DashboardId == nil { + 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 len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} - } if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } @@ -2061,25 +1950,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDataSetInput(v *DeleteDataSetInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } @@ -2139,25 +2022,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDataSourceInput(v *DeleteDataSour return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSourceId == nil { + 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 len(*v.DataSourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSourceId must not be empty")} - } if err := encoder.SetURI("DataSourceId").String(*v.DataSourceId); err != nil { return err } @@ -2217,37 +2094,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteGroupInput(v *DeleteGroupInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.GroupName == nil { + 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 len(*v.GroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupName must not be empty")} - } if err := encoder.SetURI("GroupName").String(*v.GroupName); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -2307,49 +2175,37 @@ func awsRestjson1_serializeOpHttpBindingsDeleteGroupMembershipInput(v *DeleteGro return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.GroupName == nil { + 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 len(*v.GroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupName must not be empty")} - } if err := encoder.SetURI("GroupName").String(*v.GroupName); err != nil { return err } } - if v.MemberName == nil { + if v.MemberName == nil || len(*v.MemberName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MemberName must not be empty")} } if v.MemberName != nil { - if len(*v.MemberName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member MemberName must not be empty")} - } if err := encoder.SetURI("MemberName").String(*v.MemberName); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -2409,37 +2265,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteIAMPolicyAssignmentInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssignmentName == nil { + 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 len(*v.AssignmentName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AssignmentName must not be empty")} - } if err := encoder.SetURI("AssignmentName").String(*v.AssignmentName); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -2499,25 +2346,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteNamespaceInput(v *DeleteNamespace return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -2577,25 +2418,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteTemplateInput(v *DeleteTemplateIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.TemplateId == 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 len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } @@ -2659,37 +2494,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteTemplateAliasInput(v *DeleteTempl return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AliasName == 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 len(*v.AliasName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AliasName must not be empty")} - } if err := encoder.SetURI("AliasName").String(*v.AliasName); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.TemplateId == 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 len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } @@ -2749,25 +2575,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteThemeInput(v *DeleteThemeInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.ThemeId == 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 len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } @@ -2831,37 +2651,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteThemeAliasInput(v *DeleteThemeAli return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AliasName == 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 len(*v.AliasName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AliasName must not be empty")} - } if err := encoder.SetURI("AliasName").String(*v.AliasName); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.ThemeId == 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 len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } @@ -2921,37 +2732,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteUserInput(v *DeleteUserInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } } - if v.UserName == nil { + 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 len(*v.UserName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} - } if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { return err } @@ -3011,37 +2813,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteUserByPrincipalIdInput(v *DeleteU return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } } - if v.PrincipalId == nil { + 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 len(*v.PrincipalId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PrincipalId must not be empty")} - } if err := encoder.SetURI("PrincipalId").String(*v.PrincipalId); err != nil { return err } @@ -3101,13 +2894,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAccountCustomizationInput(v *De return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -3117,8 +2907,8 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAccountCustomizationInput(v *De encoder.SetQuery("namespace").String(*v.Namespace) } - if v.Resolved != nil { - encoder.SetQuery("resolved").Boolean(*v.Resolved) + if v.Resolved { + encoder.SetQuery("resolved").Boolean(v.Resolved) } return nil @@ -3175,13 +2965,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAccountSettingsInput(v *Describ return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -3241,25 +3028,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAnalysisInput(v *DescribeAnalys return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalysisId == nil { + 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 len(*v.AnalysisId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} - } if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -3319,25 +3100,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeAnalysisPermissionsInput(v *Des return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalysisId == nil { + 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 len(*v.AnalysisId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} - } if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -3401,25 +3176,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDashboardInput(v *DescribeDashb encoder.SetQuery("alias-name").String(*v.AliasName) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DashboardId == nil { + 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 len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} - } if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } @@ -3483,25 +3252,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDashboardPermissionsInput(v *De return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DashboardId == nil { + 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 len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} - } if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } @@ -3561,25 +3324,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDataSetInput(v *DescribeDataSet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } @@ -3639,25 +3396,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDataSetPermissionsInput(v *Desc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } @@ -3717,25 +3468,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDataSourceInput(v *DescribeData return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSourceId == nil { + 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 len(*v.DataSourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSourceId must not be empty")} - } if err := encoder.SetURI("DataSourceId").String(*v.DataSourceId); err != nil { return err } @@ -3795,25 +3540,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDataSourcePermissionsInput(v *D return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSourceId == nil { + 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 len(*v.DataSourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSourceId must not be empty")} - } if err := encoder.SetURI("DataSourceId").String(*v.DataSourceId); err != nil { return err } @@ -3873,37 +3612,28 @@ func awsRestjson1_serializeOpHttpBindingsDescribeGroupInput(v *DescribeGroupInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.GroupName == nil { + 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 len(*v.GroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupName must not be empty")} - } if err := encoder.SetURI("GroupName").String(*v.GroupName); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -3963,37 +3693,28 @@ func awsRestjson1_serializeOpHttpBindingsDescribeIAMPolicyAssignmentInput(v *Des return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssignmentName == nil { + 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 len(*v.AssignmentName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AssignmentName must not be empty")} - } if err := encoder.SetURI("AssignmentName").String(*v.AssignmentName); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -4053,37 +3774,28 @@ func awsRestjson1_serializeOpHttpBindingsDescribeIngestionInput(v *DescribeInges return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } - if v.IngestionId == nil { + if v.IngestionId == nil || len(*v.IngestionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member IngestionId must not be empty")} } if v.IngestionId != nil { - if len(*v.IngestionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member IngestionId must not be empty")} - } if err := encoder.SetURI("IngestionId").String(*v.IngestionId); err != nil { return err } @@ -4143,25 +3855,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeNamespaceInput(v *DescribeNames return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -4225,25 +3931,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeTemplateInput(v *DescribeTempla encoder.SetQuery("alias-name").String(*v.AliasName) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.TemplateId == 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 len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } @@ -4307,37 +4007,28 @@ func awsRestjson1_serializeOpHttpBindingsDescribeTemplateAliasInput(v *DescribeT return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AliasName == 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 len(*v.AliasName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AliasName must not be empty")} - } if err := encoder.SetURI("AliasName").String(*v.AliasName); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.TemplateId == 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 len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } @@ -4397,25 +4088,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeTemplatePermissionsInput(v *Des return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.TemplateId == 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 len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } @@ -4479,25 +4164,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeThemeInput(v *DescribeThemeInpu encoder.SetQuery("alias-name").String(*v.AliasName) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.ThemeId == 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 len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } @@ -4561,37 +4240,28 @@ func awsRestjson1_serializeOpHttpBindingsDescribeThemeAliasInput(v *DescribeThem return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AliasName == 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 len(*v.AliasName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AliasName must not be empty")} - } if err := encoder.SetURI("AliasName").String(*v.AliasName); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.ThemeId == 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 len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } @@ -4651,25 +4321,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeThemePermissionsInput(v *Descri return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.ThemeId == 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 len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } @@ -4729,37 +4393,28 @@ func awsRestjson1_serializeOpHttpBindingsDescribeUserInput(v *DescribeUserInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } } - if v.UserName == nil { + 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 len(*v.UserName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} - } if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { return err } @@ -4819,25 +4474,19 @@ func awsRestjson1_serializeOpHttpBindingsGetDashboardEmbedUrlInput(v *GetDashboa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DashboardId == nil { + 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 len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} - } if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } @@ -4847,16 +4496,16 @@ func awsRestjson1_serializeOpHttpBindingsGetDashboardEmbedUrlInput(v *GetDashboa encoder.SetQuery("creds-type").String(string(v.IdentityType)) } - if v.ResetDisabled != nil { - encoder.SetQuery("reset-disabled").Boolean(*v.ResetDisabled) + if v.ResetDisabled { + encoder.SetQuery("reset-disabled").Boolean(v.ResetDisabled) } if v.SessionLifetimeInMinutes != nil { encoder.SetQuery("session-lifetime").Long(*v.SessionLifetimeInMinutes) } - if v.UndoRedoDisabled != nil { - encoder.SetQuery("undo-redo-disabled").Boolean(*v.UndoRedoDisabled) + if v.UndoRedoDisabled { + encoder.SetQuery("undo-redo-disabled").Boolean(v.UndoRedoDisabled) } if v.UserArn != nil { @@ -4917,13 +4566,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSessionEmbedUrlInput(v *GetSessionEm return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -4995,20 +4641,17 @@ func awsRestjson1_serializeOpHttpBindingsListAnalysesInput(v *ListAnalysesInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -5069,20 +4712,17 @@ func awsRestjson1_serializeOpHttpBindingsListDashboardsInput(v *ListDashboardsIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -5143,32 +4783,26 @@ func awsRestjson1_serializeOpHttpBindingsListDashboardVersionsInput(v *ListDashb return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DashboardId == nil { + 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 len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} - } if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -5229,20 +4863,17 @@ func awsRestjson1_serializeOpHttpBindingsListDataSetsInput(v *ListDataSetsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -5303,20 +4934,17 @@ func awsRestjson1_serializeOpHttpBindingsListDataSourcesInput(v *ListDataSources return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -5377,41 +5005,32 @@ func awsRestjson1_serializeOpHttpBindingsListGroupMembershipsInput(v *ListGroupM return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.GroupName == nil { + 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 len(*v.GroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupName must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -5475,29 +5094,23 @@ func awsRestjson1_serializeOpHttpBindingsListGroupsInput(v *ListGroupsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -5572,29 +5185,23 @@ func awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsInput(v *ListIA return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -5670,29 +5277,23 @@ func awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsForUserInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -5702,13 +5303,10 @@ func awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsForUserInput(v encoder.SetQuery("next-token").String(*v.NextToken) } - if v.UserName == nil { + 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 len(*v.UserName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} - } if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { return err } @@ -5768,32 +5366,26 @@ func awsRestjson1_serializeOpHttpBindingsListIngestionsInput(v *ListIngestionsIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -5854,20 +5446,17 @@ func awsRestjson1_serializeOpHttpBindingsListNamespacesInput(v *ListNamespacesIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -5928,13 +5517,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -5994,33 +5580,27 @@ func awsRestjson1_serializeOpHttpBindingsListTemplateAliasesInput(v *ListTemplat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("max-result").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("max-result").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("next-token").String(*v.NextToken) } - if v.TemplateId == 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 len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } @@ -6080,20 +5660,17 @@ func awsRestjson1_serializeOpHttpBindingsListTemplatesInput(v *ListTemplatesInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("max-result").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("max-result").Integer(v.MaxResults) } if v.NextToken != nil { @@ -6154,33 +5731,27 @@ func awsRestjson1_serializeOpHttpBindingsListTemplateVersionsInput(v *ListTempla return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("next-token").String(*v.NextToken) } - if v.TemplateId == 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 len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } @@ -6240,33 +5811,27 @@ func awsRestjson1_serializeOpHttpBindingsListThemeAliasesInput(v *ListThemeAlias return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("max-result").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("max-result").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("next-token").String(*v.NextToken) } - if v.ThemeId == 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 len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } @@ -6326,20 +5891,17 @@ func awsRestjson1_serializeOpHttpBindingsListThemesInput(v *ListThemesInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } if v.NextToken != nil { @@ -6404,33 +5966,27 @@ func awsRestjson1_serializeOpHttpBindingsListThemeVersionsInput(v *ListThemeVers return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("next-token").String(*v.NextToken) } - if v.ThemeId == 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 len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } @@ -6490,29 +6046,23 @@ func awsRestjson1_serializeOpHttpBindingsListUserGroupsInput(v *ListUserGroupsIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -6522,13 +6072,10 @@ func awsRestjson1_serializeOpHttpBindingsListUserGroupsInput(v *ListUserGroupsIn encoder.SetQuery("next-token").String(*v.NextToken) } - if v.UserName == nil { + 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 len(*v.UserName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} - } if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { return err } @@ -6588,29 +6135,23 @@ func awsRestjson1_serializeOpHttpBindingsListUsersInput(v *ListUsersInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } 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.MaxResults != 0 { + encoder.SetQuery("max-results").Integer(v.MaxResults) } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -6685,25 +6226,19 @@ func awsRestjson1_serializeOpHttpBindingsRegisterUserInput(v *RegisterUserInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -6805,25 +6340,19 @@ func awsRestjson1_serializeOpHttpBindingsRestoreAnalysisInput(v *RestoreAnalysis return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalysisId == nil { + 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 len(*v.AnalysisId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} - } if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -6894,13 +6423,10 @@ func awsRestjson1_serializeOpHttpBindingsSearchAnalysesInput(v *SearchAnalysesIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -6920,9 +6446,9 @@ func awsRestjson1_serializeOpDocumentSearchAnalysesInput(v *SearchAnalysesInput, } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -6995,13 +6521,10 @@ func awsRestjson1_serializeOpHttpBindingsSearchDashboardsInput(v *SearchDashboar return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -7021,9 +6544,9 @@ func awsRestjson1_serializeOpDocumentSearchDashboardsInput(v *SearchDashboardsIn } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -7096,13 +6619,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -7176,13 +6696,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -7190,10 +6707,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("keys").String(*v.TagKeys[i]) + encoder.AddQuery("keys").String(v.TagKeys[i]) } } @@ -7262,13 +6776,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAccountCustomizationInput(v *Upda return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -7357,13 +6868,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAccountSettingsInput(v *UpdateAcc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -7451,25 +6959,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAnalysisInput(v *UpdateAnalysisIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalysisId == nil { + 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 len(*v.AnalysisId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} - } if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -7571,25 +7073,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAnalysisPermissionsInput(v *Updat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalysisId == nil { + 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 len(*v.AnalysisId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} - } if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } @@ -7681,25 +7177,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDashboardInput(v *UpdateDashboard return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DashboardId == nil { + 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 len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} - } if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } @@ -7813,25 +7303,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDashboardPermissionsInput(v *Upda return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DashboardId == nil { + 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 len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} - } if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } @@ -7912,25 +7396,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDashboardPublishedVersionInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DashboardId == nil { + 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 len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} - } if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } @@ -8010,25 +7488,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDataSetInput(v *UpdateDataSetInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } @@ -8144,25 +7616,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDataSetPermissionsInput(v *Update return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSetId == nil { + 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 len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } @@ -8254,25 +7720,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDataSourceInput(v *UpdateDataSour return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSourceId == nil { + 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 len(*v.DataSourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSourceId must not be empty")} - } if err := encoder.SetURI("DataSourceId").String(*v.DataSourceId); err != nil { return err } @@ -8383,25 +7843,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDataSourcePermissionsInput(v *Upd return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.DataSourceId == nil { + 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 len(*v.DataSourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSourceId must not be empty")} - } if err := encoder.SetURI("DataSourceId").String(*v.DataSourceId); err != nil { return err } @@ -8493,37 +7947,28 @@ func awsRestjson1_serializeOpHttpBindingsUpdateGroupInput(v *UpdateGroupInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.GroupName == nil { + 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 len(*v.GroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupName must not be empty")} - } if err := encoder.SetURI("GroupName").String(*v.GroupName); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -8606,37 +8051,28 @@ func awsRestjson1_serializeOpHttpBindingsUpdateIAMPolicyAssignmentInput(v *Updat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssignmentName == nil { + 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 len(*v.AssignmentName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AssignmentName must not be empty")} - } if err := encoder.SetURI("AssignmentName").String(*v.AssignmentName); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } @@ -8731,25 +8167,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateTemplateInput(v *UpdateTemplateIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.TemplateId == 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 len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } @@ -8844,37 +8274,28 @@ func awsRestjson1_serializeOpHttpBindingsUpdateTemplateAliasInput(v *UpdateTempl return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AliasName == 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 len(*v.AliasName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AliasName must not be empty")} - } if err := encoder.SetURI("AliasName").String(*v.AliasName); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.TemplateId == 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 len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } @@ -8957,25 +8378,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateTemplatePermissionsInput(v *Updat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.TemplateId == 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 len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } @@ -9067,25 +8482,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateThemeInput(v *UpdateThemeInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.ThemeId == 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 len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } @@ -9185,37 +8594,28 @@ func awsRestjson1_serializeOpHttpBindingsUpdateThemeAliasInput(v *UpdateThemeAli return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AliasName == 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 len(*v.AliasName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AliasName must not be empty")} - } if err := encoder.SetURI("AliasName").String(*v.AliasName); err != nil { return err } } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.ThemeId == 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 len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } @@ -9298,25 +8698,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateThemePermissionsInput(v *UpdateTh return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.ThemeId == 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 len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } @@ -9408,37 +8802,28 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUserInput(v *UpdateUserInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == 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 len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.Namespace == 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 len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } } - if v.UserName == nil { + 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 len(*v.UserName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} - } if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { return err } @@ -9466,9 +8851,9 @@ func awsRestjson1_serializeOpDocumentUpdateUserInput(v *UpdateUserInput, value s ok.String(string(v.Role)) } - if v.UnapplyCustomPermissions != nil { + if v.UnapplyCustomPermissions { ok := object.Key("UnapplyCustomPermissions") - ok.Boolean(*v.UnapplyCustomPermissions) + ok.Boolean(v.UnapplyCustomPermissions) } return nil @@ -9486,17 +8871,13 @@ func awsRestjson1_serializeDocumentAccountCustomization(v *types.AccountCustomiz return nil } -func awsRestjson1_serializeDocumentActionList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentActionList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -9547,17 +8928,13 @@ func awsRestjson1_serializeDocumentAnalysisSearchFilter(v *types.AnalysisSearchF return nil } -func awsRestjson1_serializeDocumentAnalysisSearchFilterList(v []*types.AnalysisSearchFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAnalysisSearchFilterList(v []types.AnalysisSearchFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAnalysisSearchFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAnalysisSearchFilter(&v[i], av); err != nil { return err } } @@ -9623,9 +9000,9 @@ func awsRestjson1_serializeDocumentAuroraParameters(v *types.AuroraParameters, v ok.String(*v.Host) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } return nil @@ -9645,9 +9022,9 @@ func awsRestjson1_serializeDocumentAuroraPostgreSqlParameters(v *types.AuroraPos ok.String(*v.Host) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } return nil @@ -9669,9 +9046,9 @@ func awsRestjson1_serializeDocumentBorderStyle(v *types.BorderStyle, value smith object := value.Object() defer object.Close() - if v.Show != nil { + if v.Show { ok := object.Key("Show") - ok.Boolean(*v.Show) + ok.Boolean(v.Show) } return nil @@ -9699,17 +9076,13 @@ func awsRestjson1_serializeDocumentCalculatedColumn(v *types.CalculatedColumn, v return nil } -func awsRestjson1_serializeDocumentCalculatedColumnList(v []*types.CalculatedColumn, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCalculatedColumnList(v []types.CalculatedColumn, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCalculatedColumn(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCalculatedColumn(&v[i], av); err != nil { return err } } @@ -9738,17 +9111,13 @@ func awsRestjson1_serializeDocumentCastColumnTypeOperation(v *types.CastColumnTy return nil } -func awsRestjson1_serializeDocumentColorList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColorList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -9779,34 +9148,26 @@ func awsRestjson1_serializeDocumentColumnGroup(v *types.ColumnGroup, value smith return nil } -func awsRestjson1_serializeDocumentColumnGroupList(v []*types.ColumnGroup, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentColumnGroup(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentColumnGroup(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentColumnList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -9830,17 +9191,13 @@ func awsRestjson1_serializeDocumentColumnTag(v *types.ColumnTag, value smithyjso return nil } -func awsRestjson1_serializeDocumentColumnTagList(v []*types.ColumnTag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnTagList(v []types.ColumnTag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentColumnTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentColumnTag(&v[i], av); err != nil { return err } } @@ -9964,17 +9321,13 @@ func awsRestjson1_serializeDocumentDashboardSearchFilter(v *types.DashboardSearc return nil } -func awsRestjson1_serializeDocumentDashboardSearchFilterList(v []*types.DashboardSearchFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDashboardSearchFilterList(v []types.DashboardSearchFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDashboardSearchFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDashboardSearchFilter(&v[i], av); err != nil { return err } } @@ -10057,17 +9410,13 @@ func awsRestjson1_serializeDocumentDataSetReference(v *types.DataSetReference, v return nil } -func awsRestjson1_serializeDocumentDataSetReferenceList(v []*types.DataSetReference, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataSetReferenceList(v []types.DataSetReference, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDataSetReference(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDataSetReference(&v[i], av); err != nil { return err } } @@ -10233,17 +9582,13 @@ func awsRestjson1_serializeDocumentDataSourceParameters(v *types.DataSourceParam return nil } -func awsRestjson1_serializeDocumentDataSourceParametersList(v []*types.DataSourceParameters, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDataSourceParameters(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDataSourceParameters(&v[i], av); err != nil { return err } } @@ -10269,17 +9614,13 @@ func awsRestjson1_serializeDocumentDateTimeParameter(v *types.DateTimeParameter, return nil } -func awsRestjson1_serializeDocumentDateTimeParameterList(v []*types.DateTimeParameter, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDateTimeParameter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDateTimeParameter(&v[i], av); err != nil { return err } } @@ -10305,34 +9646,26 @@ func awsRestjson1_serializeDocumentDecimalParameter(v *types.DecimalParameter, v return nil } -func awsRestjson1_serializeDocumentDecimalParameterList(v []*types.DecimalParameter, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDecimalParameter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDecimalParameter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentDoubleList(v []*float64, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDoubleList(v []float64, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Double(*v[i]) + av.Double(v[i]) } return nil } @@ -10389,22 +9722,21 @@ func awsRestjson1_serializeDocumentGutterStyle(v *types.GutterStyle, value smith object := value.Object() defer object.Close() - if v.Show != nil { + if v.Show { ok := object.Key("Show") - ok.Boolean(*v.Show) + ok.Boolean(v.Show) } return nil } -func awsRestjson1_serializeDocumentIdentityMap(v map[string][]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIdentityMap(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsRestjson1_serializeDocumentIdentityNameList(v[key], om); err != nil { @@ -10414,17 +9746,13 @@ func awsRestjson1_serializeDocumentIdentityMap(v map[string][]*string, value smi return nil } -func awsRestjson1_serializeDocumentIdentityNameList(v []*string, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -10446,17 +9774,13 @@ func awsRestjson1_serializeDocumentInputColumn(v *types.InputColumn, value smith return nil } -func awsRestjson1_serializeDocumentInputColumnList(v []*types.InputColumn, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentInputColumn(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInputColumn(&v[i], av); err != nil { return err } } @@ -10482,17 +9806,13 @@ func awsRestjson1_serializeDocumentIntegerParameter(v *types.IntegerParameter, v return nil } -func awsRestjson1_serializeDocumentIntegerParameterList(v []*types.IntegerParameter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIntegerParameterList(v []types.IntegerParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentIntegerParameter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentIntegerParameter(&v[i], av); err != nil { return err } } @@ -10564,17 +9884,14 @@ func awsRestjson1_serializeDocumentLogicalTable(v *types.LogicalTable, value smi return nil } -func awsRestjson1_serializeDocumentLogicalTableMap(v map[string]*types.LogicalTable, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLogicalTableMap(v map[string]types.LogicalTable, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentLogicalTable(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentLogicalTable(&mapVar, om); err != nil { return err } } @@ -10600,17 +9917,13 @@ func awsRestjson1_serializeDocumentLogicalTableSource(v *types.LogicalTableSourc return nil } -func awsRestjson1_serializeDocumentLongList(v []*int64, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLongList(v []int64, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Long(*v[i]) + av.Long(v[i]) } return nil } @@ -10636,9 +9949,9 @@ func awsRestjson1_serializeDocumentMarginStyle(v *types.MarginStyle, value smith object := value.Object() defer object.Close() - if v.Show != nil { + if v.Show { ok := object.Key("Show") - ok.Boolean(*v.Show) + ok.Boolean(v.Show) } return nil @@ -10658,9 +9971,9 @@ func awsRestjson1_serializeDocumentMariaDbParameters(v *types.MariaDbParameters, ok.String(*v.Host) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } return nil @@ -10680,9 +9993,9 @@ func awsRestjson1_serializeDocumentMySqlParameters(v *types.MySqlParameters, val ok.String(*v.Host) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } return nil @@ -10751,17 +10064,14 @@ func awsRestjson1_serializeDocumentPhysicalTable(v *types.PhysicalTable, value s return nil } -func awsRestjson1_serializeDocumentPhysicalTableMap(v map[string]*types.PhysicalTable, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPhysicalTableMap(v map[string]types.PhysicalTable, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsRestjson1_serializeDocumentPhysicalTable(v[key], om); err != nil { + mapVar := v[key] + if err := awsRestjson1_serializeDocumentPhysicalTable(&mapVar, om); err != nil { return err } } @@ -10782,9 +10092,9 @@ func awsRestjson1_serializeDocumentPostgreSqlParameters(v *types.PostgreSqlParam ok.String(*v.Host) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } return nil @@ -10804,25 +10114,21 @@ func awsRestjson1_serializeDocumentPrestoParameters(v *types.PrestoParameters, v ok.String(*v.Host) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } return nil } -func awsRestjson1_serializeDocumentProjectedColumnList(v []*string, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -10877,9 +10183,9 @@ func awsRestjson1_serializeDocumentRedshiftParameters(v *types.RedshiftParameter ok.String(*v.Host) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } return nil @@ -10950,17 +10256,13 @@ func awsRestjson1_serializeDocumentResourcePermission(v *types.ResourcePermissio return nil } -func awsRestjson1_serializeDocumentResourcePermissionList(v []*types.ResourcePermission, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentResourcePermission(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentResourcePermission(&v[i], av); err != nil { return err } } @@ -11105,9 +10407,9 @@ func awsRestjson1_serializeDocumentSparkParameters(v *types.SparkParameters, val ok.String(*v.Host) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } return nil @@ -11127,9 +10429,9 @@ func awsRestjson1_serializeDocumentSqlServerParameters(v *types.SqlServerParamet ok.String(*v.Host) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } return nil @@ -11139,25 +10441,21 @@ func awsRestjson1_serializeDocumentSslProperties(v *types.SslProperties, value s object := value.Object() defer object.Close() - if v.DisableSsl != nil { + if v.DisableSsl { ok := object.Key("DisableSsl") - ok.Boolean(*v.DisableSsl) + ok.Boolean(v.DisableSsl) } return nil } -func awsRestjson1_serializeDocumentStringList(v []*string, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -11181,17 +10479,13 @@ func awsRestjson1_serializeDocumentStringParameter(v *types.StringParameter, val return nil } -func awsRestjson1_serializeDocumentStringParameterList(v []*types.StringParameter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStringParameterList(v []types.StringParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentStringParameter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentStringParameter(&v[i], av); err != nil { return err } } @@ -11234,17 +10528,13 @@ func awsRestjson1_serializeDocumentTagColumnOperation(v *types.TagColumnOperatio return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -11317,9 +10607,9 @@ func awsRestjson1_serializeDocumentTeradataParameters(v *types.TeradataParameter ok.String(*v.Host) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } return nil @@ -11388,17 +10678,13 @@ func awsRestjson1_serializeDocumentTileStyle(v *types.TileStyle, value smithyjso return nil } -func awsRestjson1_serializeDocumentTimestampList(v []*time.Time, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTimestampList(v []time.Time, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Double(smithytime.FormatEpochSeconds(*v[i])) + av.Double(smithytime.FormatEpochSeconds(v[i])) } return nil } @@ -11452,17 +10738,13 @@ func awsRestjson1_serializeDocumentTransformOperation(v *types.TransformOperatio return nil } -func awsRestjson1_serializeDocumentTransformOperationList(v []*types.TransformOperation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTransformOperationList(v []types.TransformOperation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTransformOperation(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTransformOperation(&v[i], av); err != nil { return err } } @@ -11473,9 +10755,9 @@ func awsRestjson1_serializeDocumentTwitterParameters(v *types.TwitterParameters, object := value.Object() defer object.Close() - if v.MaxRows != nil { + if v.MaxRows != 0 { ok := object.Key("MaxRows") - ok.Integer(*v.MaxRows) + ok.Integer(v.MaxRows) } if v.Query != nil { @@ -11573,17 +10855,13 @@ func awsRestjson1_serializeDocumentUIColorPalette(v *types.UIColorPalette, value return nil } -func awsRestjson1_serializeDocumentUpdateResourcePermissionList(v []*types.ResourcePermission, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentUpdateResourcePermissionList(v []types.ResourcePermission, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentResourcePermission(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentResourcePermission(&v[i], av); err != nil { return err } } @@ -11594,9 +10872,9 @@ func awsRestjson1_serializeDocumentUploadSettings(v *types.UploadSettings, value object := value.Object() defer object.Close() - if v.ContainsHeader != nil { + if v.ContainsHeader { ok := object.Key("ContainsHeader") - ok.Boolean(*v.ContainsHeader) + ok.Boolean(v.ContainsHeader) } if v.Delimiter != nil { @@ -11609,9 +10887,9 @@ func awsRestjson1_serializeDocumentUploadSettings(v *types.UploadSettings, value ok.String(string(v.Format)) } - if v.StartFromRow != nil { + if v.StartFromRow != 0 { ok := object.Key("StartFromRow") - ok.Integer(*v.StartFromRow) + ok.Integer(v.StartFromRow) } if len(v.TextQualifier) > 0 { diff --git a/service/quicksight/types/types.go b/service/quicksight/types/types.go index df58c11ef28..2bddeaafed7 100644 --- a/service/quicksight/types/types.go +++ b/service/quicksight/types/types.go @@ -72,10 +72,10 @@ type Analysis struct { CreatedTime *time.Time // The ARNs of the datasets of the analysis. - DataSetArns []*string + DataSetArns []string // Errors associated with the analysis. - Errors []*AnalysisError + Errors []AnalysisError // The time that the analysis was last updated. LastUpdatedTime *time.Time @@ -85,7 +85,7 @@ type Analysis struct { // A list of the associated sheets with the unique identifier and name of each // sheet. - Sheets []*Sheet + Sheets []Sheet // Status associated with the analysis. Status ResourceStatus @@ -139,7 +139,7 @@ type AnalysisSourceTemplate struct { // The dataset references of the source template of an analysis. // // This member is required. - DataSetReferences []*DataSetReference + DataSetReferences []DataSetReference } // The summary metadata that describes an analysis. @@ -187,7 +187,7 @@ type AuroraParameters struct { // Port. // // This member is required. - Port *int32 + Port int32 } // Amazon Aurora with PostgreSQL compatibility parameters. @@ -206,7 +206,7 @@ type AuroraPostgreSqlParameters struct { // Port. // // This member is required. - Port *int32 + Port int32 } // AWS IoT Analytics parameters. @@ -222,7 +222,7 @@ type AwsIotAnalyticsParameters struct { type BorderStyle struct { // The option to enable display of borders for visuals. - Show *bool + Show bool } // A calculated column for a dataset. @@ -291,7 +291,7 @@ type ColumnGroupColumnSchema struct { type ColumnGroupSchema struct { // A structure containing the list of schemas for column group columns. - ColumnGroupColumnSchemaList []*ColumnGroupColumnSchema + ColumnGroupColumnSchemaList []ColumnGroupColumnSchema // The name of the column group schema. Name *string @@ -329,7 +329,7 @@ type CreateColumnsOperation struct { // Calculated columns to create. // // This member is required. - Columns []*CalculatedColumn + Columns []CalculatedColumn } // The combination of user name and password that are used as credentials. @@ -354,7 +354,7 @@ type CredentialPair struct { // with the existing credentials. If the AlternateDataSourceParameters list is // null, the DataSourceParameters originally used with these Credentials is // automatically allowed. - AlternateDataSourceParameters []*DataSourceParameters + AlternateDataSourceParameters []DataSourceParameters } // A physical table type built from the results of the custom SQL query. @@ -376,7 +376,7 @@ type CustomSql struct { SqlQuery *string // The column schema from the SQL query result set. - Columns []*InputColumn + Columns []InputColumn } // Dashboard. @@ -464,7 +464,7 @@ type DashboardSourceTemplate struct { // Dataset references. // // This member is required. - DataSetReferences []*DataSetReference + DataSetReferences []DataSetReference } // Dashboard summary. @@ -503,17 +503,17 @@ type DashboardVersion struct { // The Amazon Resource Numbers (ARNs) for the datasets that are associated with // this version of the dashboard. - DataSetArns []*string + DataSetArns []string // Description. Description *string // Errors associated with this dashboard version. - Errors []*DashboardError + Errors []DashboardError // A list of the associated sheets with the unique identifier and name of each // sheet. - Sheets []*Sheet + Sheets []Sheet // Source entity ARN. SourceEntityArn *string @@ -556,14 +556,14 @@ type DashboardVersionSummary struct { type DataColorPalette struct { // The hexadecimal codes for the colors. - Colors []*string + Colors []string // The hexadecimal code of a color that applies to charts where a lack of data is // highlighted. EmptyFillColor *string // The minimum and maximum hexadecimal codes that describe a color gradient. - MinMaxGradient []*string + MinMaxGradient []string } // Dataset. @@ -574,11 +574,11 @@ type DataSet struct { // Groupings of columns that work together in certain Amazon QuickSight features. // Currently, only geospatial hierarchy is supported. - ColumnGroups []*ColumnGroup + ColumnGroups []ColumnGroup // The amount of SPICE capacity used by this dataset. This is 0 if the dataset // isn't imported into SPICE. - ConsumedSpiceCapacityInBytes *int64 + ConsumedSpiceCapacityInBytes int64 // The time that this dataset was created. CreatedTime *time.Time @@ -594,17 +594,17 @@ type DataSet struct { // Configures the combination and transformation of the data from the physical // tables. - LogicalTableMap map[string]*LogicalTable + LogicalTableMap map[string]LogicalTable // A display name for the dataset. Name *string // The list of columns after all transforms. These columns are available in // templates, analyses, and dashboards. - OutputColumns []*OutputColumn + OutputColumns []OutputColumn // Declares the physical tables that are available in the underlying data sources. - PhysicalTableMap map[string]*PhysicalTable + PhysicalTableMap map[string]PhysicalTable // The row-level security configuration for the dataset. RowLevelPermissionDataSet *RowLevelPermissionDataSet @@ -614,7 +614,7 @@ type DataSet struct { type DataSetConfiguration struct { // A structure containing the list of column group schemas. - ColumnGroupSchemaList []*ColumnGroupSchema + ColumnGroupSchemaList []ColumnGroupSchema // Dataset schema. DataSetSchema *DataSetSchema @@ -641,7 +641,7 @@ type DataSetReference struct { type DataSetSchema struct { // A structure containing the list of column schemas. - ColumnSchemaList []*ColumnSchema + ColumnSchemaList []ColumnSchema } // Dataset summary. @@ -681,7 +681,7 @@ type DataSource struct { // the credentials from this existing data source. If the // AlternateDataSourceParameters list is null, the Credentials originally used with // this DataSourceParameters are automatically allowed. - AlternateDataSourceParameters []*DataSourceParameters + AlternateDataSourceParameters []DataSourceParameters // The Amazon Resource Name (ARN) of the data source. Arn *string @@ -822,7 +822,7 @@ type DateTimeParameter struct { // The values for the date-time parameter. // // This member is required. - Values []*time.Time + Values []time.Time } // A decimal parameter. @@ -836,7 +836,7 @@ type DecimalParameter struct { // The values for the decimal parameter. // // This member is required. - Values []*float64 + Values []float64 } // Error information for the SPICE ingestion of a dataset. @@ -872,7 +872,7 @@ type GeoSpatialColumnGroup struct { // Columns in this hierarchy. // // This member is required. - Columns []*string + Columns []string // Country code. // @@ -918,7 +918,7 @@ type GutterStyle struct { // This Boolean value controls whether to display a gutter space between sheet // tiles. - Show *bool + Show bool } // An AWS Identity and Access Management (IAM) policy assignment. @@ -937,7 +937,7 @@ type IAMPolicyAssignment struct { AwsAccountId *string // Identities. - Identities map[string][]*string + Identities map[string][]string // The Amazon Resource Name (ARN) for the IAM policy. PolicyArn *string @@ -978,10 +978,10 @@ type Ingestion struct { IngestionId *string // The size of the data ingested, in bytes. - IngestionSizeInBytes *int64 + IngestionSizeInBytes int64 // The time that this ingestion took, measured in seconds. - IngestionTimeInSeconds *int64 + IngestionTimeInSeconds int64 // Information about a queued dataset SPICE ingestion. QueueInfo *QueueInfo @@ -1021,7 +1021,7 @@ type IntegerParameter struct { // The values for the integer parameter. // // This member is required. - Values []*int64 + Values []int64 } // Jira parameters. @@ -1074,7 +1074,7 @@ type LogicalTable struct { Source *LogicalTableSource // Transform operations that act on this logical table. - DataTransforms []*TransformOperation + DataTransforms []TransformOperation } // Information about the source of a logical table. This is a variant type @@ -1107,7 +1107,7 @@ type ManifestFileLocation struct { type MarginStyle struct { // This Boolean value controls whether to display sheet margins. - Show *bool + Show bool } // MariaDB parameters. @@ -1126,7 +1126,7 @@ type MariaDbParameters struct { // Port. // // This member is required. - Port *int32 + Port int32 } // MySQL parameters. @@ -1145,7 +1145,7 @@ type MySqlParameters struct { // Port. // // This member is required. - Port *int32 + Port int32 } // Errors that occur during namespace creation. @@ -1197,16 +1197,16 @@ type OutputColumn struct { type Parameters struct { // Date-time parameters. - DateTimeParameters []*DateTimeParameter + DateTimeParameters []DateTimeParameter // Decimal parameters. - DecimalParameters []*DecimalParameter + DecimalParameters []DecimalParameter // Integer parameters. - IntegerParameters []*IntegerParameter + IntegerParameters []IntegerParameter // String parameters. - StringParameters []*StringParameter + StringParameters []StringParameter } // A view of a data source that contains information about the shape of the data in @@ -1240,7 +1240,7 @@ type PostgreSqlParameters struct { // Port. // // This member is required. - Port *int32 + Port int32 } // Presto parameters. @@ -1259,7 +1259,7 @@ type PrestoParameters struct { // Port. // // This member is required. - Port *int32 + Port int32 } // A transform operation that projects columns. Operations that come after a @@ -1269,7 +1269,7 @@ type ProjectOperation struct { // Projected columns. // // This member is required. - ProjectedColumns []*string + ProjectedColumns []string } // Information about a queued dataset SPICE ingestion. @@ -1318,7 +1318,7 @@ type RedshiftParameters struct { Host *string // Port. This field can be blank if the ClusterId is provided. - Port *int32 + Port int32 } // A physical table type for relational data sources. @@ -1332,7 +1332,7 @@ type RelationalTable struct { // The column schema of the table. // // This member is required. - InputColumns []*InputColumn + InputColumns []InputColumn // The name of the relational table. // @@ -1364,7 +1364,7 @@ type ResourcePermission struct { // "quicksight:DescribeDashboard". // // This member is required. - Actions []*string + Actions []string // The Amazon Resource Name (ARN) of the principal. This can be one of the // following: @@ -1388,10 +1388,10 @@ type ResourcePermission struct { type RowInfo struct { // The number of rows that were not ingested. - RowsDropped *int64 + RowsDropped int64 // The number of rows that were ingested. - RowsIngested *int64 + RowsIngested int64 } // The row-level security configuration for the dataset. @@ -1432,7 +1432,7 @@ type S3Source struct { // A physical table type for as S3 data source. // // This member is required. - InputColumns []*InputColumn + InputColumns []InputColumn // Information about the format for the S3 source file or files. UploadSettings *UploadSettings @@ -1510,7 +1510,7 @@ type SparkParameters struct { // Port. // // This member is required. - Port *int32 + Port int32 } // SQL Server parameters. @@ -1529,7 +1529,7 @@ type SqlServerParameters struct { // Port. // // This member is required. - Port *int32 + Port int32 } // Secure Socket Layer (SSL) properties that apply when QuickSight connects to your @@ -1537,7 +1537,7 @@ type SqlServerParameters struct { type SslProperties struct { // A Boolean option to control whether SSL should be disabled. - DisableSsl *bool + DisableSsl bool } // A string parameter. @@ -1551,7 +1551,7 @@ type StringParameter struct { // The values of a string parameter. // // This member is required. - Values []*string + Values []string } // The key or keys of the key-value pairs for the resource tag or tags assigned to @@ -1581,7 +1581,7 @@ type TagColumnOperation struct { // is not tags for the AWS tagging feature. . // // This member is required. - Tags []*ColumnTag + Tags []ColumnTag } // A template object. A template is an entity in QuickSight that encapsulates the @@ -1648,7 +1648,7 @@ type TemplateSourceAnalysis struct { // placeholders in the template. // // This member is required. - DataSetReferences []*DataSetReference + DataSetReferences []DataSetReference } // The source entity of the template. @@ -1701,17 +1701,17 @@ type TemplateVersion struct { // Schema of the dataset identified by the placeholder. Any dashboard created from // this template should be bound to new datasets matching the same schema described // through this API operation. - DataSetConfigurations []*DataSetConfiguration + DataSetConfigurations []DataSetConfiguration // The description of the template. Description *string // Errors associated with this template version. - Errors []*TemplateError + Errors []TemplateError // A list of the associated sheets with the unique identifier and name of each // sheet. - Sheets []*Sheet + Sheets []Sheet // The Amazon Resource Name (ARN) of an analysis or template that was used to // create this template. @@ -1762,7 +1762,7 @@ type TeradataParameters struct { // Port. // // This member is required. - Port *int32 + Port int32 } // Summary information about a theme. @@ -1871,7 +1871,7 @@ type ThemeVersion struct { Description *string // Errors associated with the theme. - Errors []*ThemeError + Errors []ThemeError // The status of the theme version. Status ResourceStatus @@ -1947,7 +1947,7 @@ type TwitterParameters struct { // Maximum number of rows to query Twitter. // // This member is required. - MaxRows *int32 + MaxRows int32 // Twitter query string. // @@ -2026,7 +2026,7 @@ type UIColorPalette struct { type UploadSettings struct { // Whether the file has a header row, or the files each have a header row. - ContainsHeader *bool + ContainsHeader bool // The delimiter between values in the file. Delimiter *string @@ -2035,7 +2035,7 @@ type UploadSettings struct { Format FileFormat // A row number to start reading data from. - StartFromRow *int32 + StartFromRow int32 // Text qualifier. TextQualifier TextQualifier @@ -2047,7 +2047,7 @@ type User struct { // The active status of user. When you create an Amazon QuickSight user that’s not // an IAM user or an Active Directory user, that user is inactive until they sign // in and provide a password. - Active *bool + Active bool // The Amazon Resource Name (ARN) for the user. Arn *string diff --git a/service/quicksight/validators.go b/service/quicksight/validators.go index b2615a30b29..bc8f62fb84f 100644 --- a/service/quicksight/validators.go +++ b/service/quicksight/validators.go @@ -2445,9 +2445,6 @@ func validateAuroraParameters(v *types.AuroraParameters) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "AuroraParameters"} - if v.Port == nil { - invalidParams.Add(smithy.NewErrParamRequired("Port")) - } if v.Database == nil { invalidParams.Add(smithy.NewErrParamRequired("Database")) } @@ -2472,9 +2469,6 @@ func validateAuroraPostgreSqlParameters(v *types.AuroraPostgreSqlParameters) err if v.Database == nil { invalidParams.Add(smithy.NewErrParamRequired("Database")) } - if v.Port == nil { - invalidParams.Add(smithy.NewErrParamRequired("Port")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2518,13 +2512,13 @@ func validateCalculatedColumn(v *types.CalculatedColumn) error { } } -func validateCalculatedColumnList(v []*types.CalculatedColumn) error { +func validateCalculatedColumnList(v []types.CalculatedColumn) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CalculatedColumnList"} for i := range v { - if err := validateCalculatedColumn(v[i]); err != nil { + if err := validateCalculatedColumn(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2570,13 +2564,13 @@ func validateColumnGroup(v *types.ColumnGroup) error { } } -func validateColumnGroupList(v []*types.ColumnGroup) error { +func validateColumnGroupList(v []types.ColumnGroup) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ColumnGroupList"} for i := range v { - if err := validateColumnGroup(v[i]); err != nil { + if err := validateColumnGroup(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2670,13 +2664,13 @@ func validateDashboardSearchFilter(v *types.DashboardSearchFilter) error { } } -func validateDashboardSearchFilterList(v []*types.DashboardSearchFilter) error { +func validateDashboardSearchFilterList(v []types.DashboardSearchFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DashboardSearchFilterList"} for i := range v { - if err := validateDashboardSearchFilter(v[i]); err != nil { + if err := validateDashboardSearchFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2744,13 +2738,13 @@ func validateDataSetReference(v *types.DataSetReference) error { } } -func validateDataSetReferenceList(v []*types.DataSetReference) error { +func validateDataSetReferenceList(v []types.DataSetReference) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DataSetReferenceList"} for i := range v { - if err := validateDataSetReference(v[i]); err != nil { + if err := validateDataSetReference(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2880,13 +2874,13 @@ func validateDataSourceParameters(v *types.DataSourceParameters) error { } } -func validateDataSourceParametersList(v []*types.DataSourceParameters) error { +func validateDataSourceParametersList(v []types.DataSourceParameters) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DataSourceParametersList"} for i := range v { - if err := validateDataSourceParameters(v[i]); err != nil { + if err := validateDataSourceParameters(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2915,13 +2909,13 @@ func validateDateTimeParameter(v *types.DateTimeParameter) error { } } -func validateDateTimeParameterList(v []*types.DateTimeParameter) error { +func validateDateTimeParameterList(v []types.DateTimeParameter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DateTimeParameterList"} for i := range v { - if err := validateDateTimeParameter(v[i]); err != nil { + if err := validateDateTimeParameter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2950,13 +2944,13 @@ func validateDecimalParameter(v *types.DecimalParameter) error { } } -func validateDecimalParameterList(v []*types.DecimalParameter) error { +func validateDecimalParameterList(v []types.DecimalParameter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DecimalParameterList"} for i := range v { - if err := validateDecimalParameter(v[i]); err != nil { + if err := validateDecimalParameter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3021,13 +3015,13 @@ func validateInputColumn(v *types.InputColumn) error { } } -func validateInputColumnList(v []*types.InputColumn) error { +func validateInputColumnList(v []types.InputColumn) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InputColumnList"} for i := range v { - if err := validateInputColumn(v[i]); err != nil { + if err := validateInputColumn(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3056,13 +3050,13 @@ func validateIntegerParameter(v *types.IntegerParameter) error { } } -func validateIntegerParameterList(v []*types.IntegerParameter) error { +func validateIntegerParameterList(v []types.IntegerParameter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "IntegerParameterList"} for i := range v { - if err := validateIntegerParameter(v[i]); err != nil { + if err := validateIntegerParameter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3139,13 +3133,14 @@ func validateLogicalTable(v *types.LogicalTable) error { } } -func validateLogicalTableMap(v map[string]*types.LogicalTable) error { +func validateLogicalTableMap(v map[string]types.LogicalTable) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LogicalTableMap"} for key := range v { - if err := validateLogicalTable(v[key]); err != nil { + value := v[key] + if err := validateLogicalTable(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -3202,9 +3197,6 @@ func validateMariaDbParameters(v *types.MariaDbParameters) error { if v.Host == nil { invalidParams.Add(smithy.NewErrParamRequired("Host")) } - if v.Port == nil { - invalidParams.Add(smithy.NewErrParamRequired("Port")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3217,9 +3209,6 @@ func validateMySqlParameters(v *types.MySqlParameters) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "MySqlParameters"} - if v.Port == nil { - invalidParams.Add(smithy.NewErrParamRequired("Port")) - } if v.Host == nil { invalidParams.Add(smithy.NewErrParamRequired("Host")) } @@ -3292,13 +3281,14 @@ func validatePhysicalTable(v *types.PhysicalTable) error { } } -func validatePhysicalTableMap(v map[string]*types.PhysicalTable) error { +func validatePhysicalTableMap(v map[string]types.PhysicalTable) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PhysicalTableMap"} for key := range v { - if err := validatePhysicalTable(v[key]); err != nil { + value := v[key] + if err := validatePhysicalTable(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -3320,9 +3310,6 @@ func validatePostgreSqlParameters(v *types.PostgreSqlParameters) error { if v.Host == nil { invalidParams.Add(smithy.NewErrParamRequired("Host")) } - if v.Port == nil { - invalidParams.Add(smithy.NewErrParamRequired("Port")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3335,9 +3322,6 @@ func validatePrestoParameters(v *types.PrestoParameters) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "PrestoParameters"} - if v.Port == nil { - invalidParams.Add(smithy.NewErrParamRequired("Port")) - } if v.Catalog == nil { invalidParams.Add(smithy.NewErrParamRequired("Catalog")) } @@ -3460,13 +3444,13 @@ func validateResourcePermission(v *types.ResourcePermission) error { } } -func validateResourcePermissionList(v []*types.ResourcePermission) error { +func validateResourcePermissionList(v []types.ResourcePermission) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourcePermissionList"} for i := range v { - if err := validateResourcePermission(v[i]); err != nil { + if err := validateResourcePermission(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3577,9 +3561,6 @@ func validateSparkParameters(v *types.SparkParameters) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "SparkParameters"} - if v.Port == nil { - invalidParams.Add(smithy.NewErrParamRequired("Port")) - } if v.Host == nil { invalidParams.Add(smithy.NewErrParamRequired("Host")) } @@ -3601,9 +3582,6 @@ func validateSqlServerParameters(v *types.SqlServerParameters) error { if v.Database == nil { invalidParams.Add(smithy.NewErrParamRequired("Database")) } - if v.Port == nil { - invalidParams.Add(smithy.NewErrParamRequired("Port")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3629,13 +3607,13 @@ func validateStringParameter(v *types.StringParameter) error { } } -func validateStringParameterList(v []*types.StringParameter) error { +func validateStringParameterList(v []types.StringParameter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "StringParameterList"} for i := range v { - if err := validateStringParameter(v[i]); err != nil { + if err := validateStringParameter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3682,13 +3660,13 @@ func validateTagColumnOperation(v *types.TagColumnOperation) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3766,9 +3744,6 @@ func validateTeradataParameters(v *types.TeradataParameters) error { if v.Database == nil { invalidParams.Add(smithy.NewErrParamRequired("Database")) } - if v.Port == nil { - invalidParams.Add(smithy.NewErrParamRequired("Port")) - } if v.Host == nil { invalidParams.Add(smithy.NewErrParamRequired("Host")) } @@ -3821,13 +3796,13 @@ func validateTransformOperation(v *types.TransformOperation) error { } } -func validateTransformOperationList(v []*types.TransformOperation) error { +func validateTransformOperationList(v []types.TransformOperation) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TransformOperationList"} for i := range v { - if err := validateTransformOperation(v[i]); err != nil { + if err := validateTransformOperation(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3846,9 +3821,6 @@ func validateTwitterParameters(v *types.TwitterParameters) error { if v.Query == nil { invalidParams.Add(smithy.NewErrParamRequired("Query")) } - if v.MaxRows == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxRows")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3856,13 +3828,13 @@ func validateTwitterParameters(v *types.TwitterParameters) error { } } -func validateUpdateResourcePermissionList(v []*types.ResourcePermission) error { +func validateUpdateResourcePermissionList(v []types.ResourcePermission) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateResourcePermissionList"} for i := range v { - if err := validateResourcePermission(v[i]); err != nil { + if err := validateResourcePermission(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/ram/api_op_AssociateResourceShare.go b/service/ram/api_op_AssociateResourceShare.go index 76f1848040c..83e6bfe3958 100644 --- a/service/ram/api_op_AssociateResourceShare.go +++ b/service/ram/api_op_AssociateResourceShare.go @@ -40,10 +40,10 @@ type AssociateResourceShareInput struct { ClientToken *string // The principals. - Principals []*string + Principals []string // The Amazon Resource Names (ARN) of the resources. - ResourceArns []*string + ResourceArns []string } type AssociateResourceShareOutput struct { @@ -53,7 +53,7 @@ type AssociateResourceShareOutput struct { ClientToken *string // Information about the associations. - ResourceShareAssociations []*types.ResourceShareAssociation + ResourceShareAssociations []types.ResourceShareAssociation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ram/api_op_CreateResourceShare.go b/service/ram/api_op_CreateResourceShare.go index 540a9e2ef46..97142e80ba8 100644 --- a/service/ram/api_op_CreateResourceShare.go +++ b/service/ram/api_op_CreateResourceShare.go @@ -45,18 +45,18 @@ type CreateResourceShareInput struct { // The ARNs of the permissions to associate with the resource share. If you do not // specify an ARN for the permission, AWS RAM automatically attaches the default // version of the permission for each resource type. - PermissionArns []*string + PermissionArns []string // The principals to associate with the resource share. The possible values are IDs // of AWS accounts, the ARN of an OU or organization from AWS Organizations. - Principals []*string + Principals []string // The Amazon Resource Names (ARN) of the resources to associate with the resource // share. - ResourceArns []*string + ResourceArns []string // One or more tags. - Tags []*types.Tag + Tags []types.Tag } type CreateResourceShareOutput struct { diff --git a/service/ram/api_op_DisassociateResourceShare.go b/service/ram/api_op_DisassociateResourceShare.go index 4232273c9b1..a92f0d7e64b 100644 --- a/service/ram/api_op_DisassociateResourceShare.go +++ b/service/ram/api_op_DisassociateResourceShare.go @@ -40,10 +40,10 @@ type DisassociateResourceShareInput struct { ClientToken *string // The principals. - Principals []*string + Principals []string // The Amazon Resource Names (ARNs) of the resources. - ResourceArns []*string + ResourceArns []string } type DisassociateResourceShareOutput struct { @@ -53,7 +53,7 @@ type DisassociateResourceShareOutput struct { ClientToken *string // Information about the associations. - ResourceShareAssociations []*types.ResourceShareAssociation + ResourceShareAssociations []types.ResourceShareAssociation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ram/api_op_GetResourcePolicies.go b/service/ram/api_op_GetResourcePolicies.go index f3e6e23f789..bc18f6a908f 100644 --- a/service/ram/api_op_GetResourcePolicies.go +++ b/service/ram/api_op_GetResourcePolicies.go @@ -31,7 +31,7 @@ type GetResourcePoliciesInput struct { // The Amazon Resource Names (ARN) of the resources. // // This member is required. - ResourceArns []*string + ResourceArns []string // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. @@ -51,7 +51,7 @@ type GetResourcePoliciesOutput struct { NextToken *string // A key policy document, in JSON format. - Policies []*string + Policies []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ram/api_op_GetResourceShareAssociations.go b/service/ram/api_op_GetResourceShareAssociations.go index b12ebfa2c18..0e0d841d6b8 100644 --- a/service/ram/api_op_GetResourceShareAssociations.go +++ b/service/ram/api_op_GetResourceShareAssociations.go @@ -55,7 +55,7 @@ type GetResourceShareAssociationsInput struct { ResourceArn *string // The Amazon Resource Names (ARN) of the resource shares. - ResourceShareArns []*string + ResourceShareArns []string } type GetResourceShareAssociationsOutput struct { @@ -65,7 +65,7 @@ type GetResourceShareAssociationsOutput struct { NextToken *string // Information about the associations. - ResourceShareAssociations []*types.ResourceShareAssociation + ResourceShareAssociations []types.ResourceShareAssociation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ram/api_op_GetResourceShareInvitations.go b/service/ram/api_op_GetResourceShareInvitations.go index 0a4543494e1..907f5044736 100644 --- a/service/ram/api_op_GetResourceShareInvitations.go +++ b/service/ram/api_op_GetResourceShareInvitations.go @@ -37,10 +37,10 @@ type GetResourceShareInvitationsInput struct { NextToken *string // The Amazon Resource Names (ARN) of the resource shares. - ResourceShareArns []*string + ResourceShareArns []string // The Amazon Resource Names (ARN) of the invitations. - ResourceShareInvitationArns []*string + ResourceShareInvitationArns []string } type GetResourceShareInvitationsOutput struct { @@ -50,7 +50,7 @@ type GetResourceShareInvitationsOutput struct { NextToken *string // Information about the invitations. - ResourceShareInvitations []*types.ResourceShareInvitation + ResourceShareInvitations []types.ResourceShareInvitation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ram/api_op_GetResourceShares.go b/service/ram/api_op_GetResourceShares.go index 7a90129ef37..ad4ead714d1 100644 --- a/service/ram/api_op_GetResourceShares.go +++ b/service/ram/api_op_GetResourceShares.go @@ -46,13 +46,13 @@ type GetResourceSharesInput struct { NextToken *string // The Amazon Resource Names (ARN) of the resource shares. - ResourceShareArns []*string + ResourceShareArns []string // The status of the resource share. ResourceShareStatus types.ResourceShareStatus // One or more tag filters. - TagFilters []*types.TagFilter + TagFilters []types.TagFilter } type GetResourceSharesOutput struct { @@ -62,7 +62,7 @@ type GetResourceSharesOutput struct { NextToken *string // Information about the resource shares. - ResourceShares []*types.ResourceShare + ResourceShares []types.ResourceShare // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ram/api_op_ListPendingInvitationResources.go b/service/ram/api_op_ListPendingInvitationResources.go index 7a838c73cac..1af4b003eb7 100644 --- a/service/ram/api_op_ListPendingInvitationResources.go +++ b/service/ram/api_op_ListPendingInvitationResources.go @@ -50,7 +50,7 @@ type ListPendingInvitationResourcesOutput struct { NextToken *string // Information about the resources included the resource share. - Resources []*types.Resource + Resources []types.Resource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ram/api_op_ListPermissions.go b/service/ram/api_op_ListPermissions.go index 47ca4124da8..b811bc024bf 100644 --- a/service/ram/api_op_ListPermissions.go +++ b/service/ram/api_op_ListPermissions.go @@ -48,7 +48,7 @@ type ListPermissionsOutput struct { NextToken *string // Information about the permissions. - Permissions []*types.ResourceSharePermissionSummary + Permissions []types.ResourceSharePermissionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ram/api_op_ListPrincipals.go b/service/ram/api_op_ListPrincipals.go index a8f7927a8ef..272d5fda66c 100644 --- a/service/ram/api_op_ListPrincipals.go +++ b/service/ram/api_op_ListPrincipals.go @@ -43,13 +43,13 @@ type ListPrincipalsInput struct { NextToken *string // The principals. - Principals []*string + Principals []string // The Amazon Resource Name (ARN) of the resource. ResourceArn *string // The Amazon Resource Names (ARN) of the resource shares. - ResourceShareArns []*string + ResourceShareArns []string // The resource type. Valid values: codebuild:Project | codebuild:ReportGroup | // ec2:CapacityReservation | ec2:DedicatedHost | ec2:Subnet | @@ -67,7 +67,7 @@ type ListPrincipalsOutput struct { NextToken *string // The principals. - Principals []*types.Principal + Principals []types.Principal // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ram/api_op_ListResourceSharePermissions.go b/service/ram/api_op_ListResourceSharePermissions.go index 43796b1fb22..f148c7623d1 100644 --- a/service/ram/api_op_ListResourceSharePermissions.go +++ b/service/ram/api_op_ListResourceSharePermissions.go @@ -49,7 +49,7 @@ type ListResourceSharePermissionsOutput struct { NextToken *string // The permissions associated with the resource share. - Permissions []*types.ResourceSharePermissionSummary + Permissions []types.ResourceSharePermissionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ram/api_op_ListResourceTypes.go b/service/ram/api_op_ListResourceTypes.go index 0cf56c82eca..674879e7247 100644 --- a/service/ram/api_op_ListResourceTypes.go +++ b/service/ram/api_op_ListResourceTypes.go @@ -44,7 +44,7 @@ type ListResourceTypesOutput struct { NextToken *string // The shareable resource types supported by AWS RAM. - ResourceTypes []*types.ServiceNameAndResourceType + ResourceTypes []types.ServiceNameAndResourceType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ram/api_op_ListResources.go b/service/ram/api_op_ListResources.go index 9a838f9d712..9ac08b52272 100644 --- a/service/ram/api_op_ListResources.go +++ b/service/ram/api_op_ListResources.go @@ -46,10 +46,10 @@ type ListResourcesInput struct { Principal *string // The Amazon Resource Names (ARN) of the resources. - ResourceArns []*string + ResourceArns []string // The Amazon Resource Names (ARN) of the resource shares. - ResourceShareArns []*string + ResourceShareArns []string // The resource type. Valid values: codebuild:Project | codebuild:ReportGroup | // ec2:CapacityReservation | ec2:DedicatedHost | ec2:Subnet | @@ -67,7 +67,7 @@ type ListResourcesOutput struct { NextToken *string // Information about the resources. - Resources []*types.Resource + Resources []types.Resource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ram/api_op_TagResource.go b/service/ram/api_op_TagResource.go index 6371eef4548..30a40a07a5b 100644 --- a/service/ram/api_op_TagResource.go +++ b/service/ram/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // One or more tags. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/ram/api_op_UntagResource.go b/service/ram/api_op_UntagResource.go index 5b385e644c3..da697c94eee 100644 --- a/service/ram/api_op_UntagResource.go +++ b/service/ram/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The tag keys of the tags to remove. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/ram/deserializers.go b/service/ram/deserializers.go index 559b48b1f5a..ca6fd9f4e7a 100644 --- a/service/ram/deserializers.go +++ b/service/ram/deserializers.go @@ -185,7 +185,7 @@ func awsRestjson1_deserializeOpDocumentAcceptResourceShareInvitationOutput(v **A if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "resourceShareInvitation": @@ -368,7 +368,7 @@ func awsRestjson1_deserializeOpDocumentAssociateResourceShareOutput(v **Associat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "resourceShareAssociations": @@ -542,7 +542,7 @@ func awsRestjson1_deserializeOpDocumentAssociateResourceSharePermissionOutput(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "returnValue": @@ -551,7 +551,7 @@ func awsRestjson1_deserializeOpDocumentAssociateResourceSharePermissionOutput(v if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ReturnValue = &jtv + sv.ReturnValue = ptr.Bool(jtv) } default: @@ -732,7 +732,7 @@ func awsRestjson1_deserializeOpDocumentCreateResourceShareOutput(v **CreateResou if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "resourceShare": @@ -912,7 +912,7 @@ func awsRestjson1_deserializeOpDocumentDeleteResourceShareOutput(v **DeleteResou if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "returnValue": @@ -921,7 +921,7 @@ func awsRestjson1_deserializeOpDocumentDeleteResourceShareOutput(v **DeleteResou if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ReturnValue = &jtv + sv.ReturnValue = ptr.Bool(jtv) } default: @@ -1099,7 +1099,7 @@ func awsRestjson1_deserializeOpDocumentDisassociateResourceShareOutput(v **Disas if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "resourceShareAssociations": @@ -1273,7 +1273,7 @@ func awsRestjson1_deserializeOpDocumentDisassociateResourceSharePermissionOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "returnValue": @@ -1282,7 +1282,7 @@ func awsRestjson1_deserializeOpDocumentDisassociateResourceSharePermissionOutput if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ReturnValue = &jtv + sv.ReturnValue = ptr.Bool(jtv) } default: @@ -1439,7 +1439,7 @@ func awsRestjson1_deserializeOpDocumentEnableSharingWithAwsOrganizationOutput(v if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ReturnValue = &jtv + sv.ReturnValue = ptr.Bool(jtv) } default: @@ -1767,7 +1767,7 @@ func awsRestjson1_deserializeOpDocumentGetResourcePoliciesOutput(v **GetResource if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "policies": @@ -1941,7 +1941,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceShareAssociationsOutput(v **Ge if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "resourceShareAssociations": @@ -2118,7 +2118,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceShareInvitationsOutput(v **Get if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "resourceShareInvitations": @@ -2289,7 +2289,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceSharesOutput(v **GetResourceSh if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "resourceShares": @@ -2469,7 +2469,7 @@ func awsRestjson1_deserializeOpDocumentListPendingInvitationResourcesOutput(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "resources": @@ -2637,7 +2637,7 @@ func awsRestjson1_deserializeOpDocumentListPermissionsOutput(v **ListPermissions if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "permissions": @@ -2808,7 +2808,7 @@ func awsRestjson1_deserializeOpDocumentListPrincipalsOutput(v **ListPrincipalsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "principals": @@ -2982,7 +2982,7 @@ func awsRestjson1_deserializeOpDocumentListResourcesOutput(v **ListResourcesOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "resources": @@ -3156,7 +3156,7 @@ func awsRestjson1_deserializeOpDocumentListResourceSharePermissionsOutput(v **Li if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "permissions": @@ -3321,7 +3321,7 @@ func awsRestjson1_deserializeOpDocumentListResourceTypesOutput(v **ListResourceT if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "resourceTypes": @@ -3495,7 +3495,7 @@ func awsRestjson1_deserializeOpDocumentPromoteResourceShareCreatedFromPolicyOutp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ReturnValue = &jtv + sv.ReturnValue = ptr.Bool(jtv) } default: @@ -3673,7 +3673,7 @@ func awsRestjson1_deserializeOpDocumentRejectResourceShareInvitationOutput(v **R if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "resourceShareInvitation": @@ -4043,7 +4043,7 @@ func awsRestjson1_deserializeOpDocumentUpdateResourceShareOutput(v **UpdateResou if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientToken = &jtv + sv.ClientToken = ptr.String(jtv) } case "resourceShare": @@ -4844,7 +4844,7 @@ func awsRestjson1_deserializeDocumentIdempotentParameterMismatchException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4884,7 +4884,7 @@ func awsRestjson1_deserializeDocumentInvalidClientTokenException(v **types.Inval if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4924,7 +4924,7 @@ func awsRestjson1_deserializeDocumentInvalidMaxResultsException(v **types.Invali if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4964,7 +4964,7 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5004,7 +5004,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5044,7 +5044,7 @@ func awsRestjson1_deserializeDocumentInvalidResourceTypeException(v **types.Inva if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5084,7 +5084,7 @@ func awsRestjson1_deserializeDocumentInvalidStateTransitionException(v **types.I if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5124,7 +5124,7 @@ func awsRestjson1_deserializeDocumentMalformedArnException(v **types.MalformedAr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5164,7 +5164,7 @@ func awsRestjson1_deserializeDocumentMissingRequiredParameterException(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5204,7 +5204,7 @@ func awsRestjson1_deserializeDocumentOperationNotPermittedException(v **types.Op if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5216,7 +5216,7 @@ func awsRestjson1_deserializeDocumentOperationNotPermittedException(v **types.Op return nil } -func awsRestjson1_deserializeDocumentPolicyList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentPolicyList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5229,21 +5229,21 @@ func awsRestjson1_deserializeDocumentPolicyList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Policy to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5293,7 +5293,7 @@ func awsRestjson1_deserializeDocumentPrincipal(v **types.Principal, value interf if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.External = &jtv + sv.External = ptr.Bool(jtv) } case "id": @@ -5302,7 +5302,7 @@ func awsRestjson1_deserializeDocumentPrincipal(v **types.Principal, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "lastUpdatedTime": @@ -5324,7 +5324,7 @@ func awsRestjson1_deserializeDocumentPrincipal(v **types.Principal, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceShareArn = &jtv + sv.ResourceShareArn = ptr.String(jtv) } default: @@ -5336,7 +5336,7 @@ func awsRestjson1_deserializeDocumentPrincipal(v **types.Principal, value interf return nil } -func awsRestjson1_deserializeDocumentPrincipalList(v *[]*types.Principal, value interface{}) error { +func awsRestjson1_deserializeDocumentPrincipalList(v *[]types.Principal, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5349,18 +5349,20 @@ func awsRestjson1_deserializeDocumentPrincipalList(v *[]*types.Principal, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Principal + var cv []types.Principal if *v == nil { - cv = []*types.Principal{} + cv = []types.Principal{} } else { cv = *v } for _, value := range shape { - var col *types.Principal - if err := awsRestjson1_deserializeDocumentPrincipal(&col, value); err != nil { + var col types.Principal + destAddr := &col + if err := awsRestjson1_deserializeDocumentPrincipal(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5396,7 +5398,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationTime": @@ -5431,7 +5433,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceGroupArn = &jtv + sv.ResourceGroupArn = ptr.String(jtv) } case "resourceShareArn": @@ -5440,7 +5442,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceShareArn = &jtv + sv.ResourceShareArn = ptr.String(jtv) } case "status": @@ -5458,7 +5460,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "type": @@ -5467,7 +5469,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -5507,7 +5509,7 @@ func awsRestjson1_deserializeDocumentResourceArnNotFoundException(v **types.Reso if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5519,7 +5521,7 @@ func awsRestjson1_deserializeDocumentResourceArnNotFoundException(v **types.Reso return nil } -func awsRestjson1_deserializeDocumentResourceList(v *[]*types.Resource, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceList(v *[]types.Resource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5532,18 +5534,20 @@ func awsRestjson1_deserializeDocumentResourceList(v *[]*types.Resource, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Resource + var cv []types.Resource if *v == nil { - cv = []*types.Resource{} + cv = []types.Resource{} } else { cv = *v } for _, value := range shape { - var col *types.Resource - if err := awsRestjson1_deserializeDocumentResource(&col, value); err != nil { + var col types.Resource + destAddr := &col + if err := awsRestjson1_deserializeDocumentResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5579,7 +5583,7 @@ func awsRestjson1_deserializeDocumentResourceShare(v **types.ResourceShare, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllowExternalPrincipals = &jtv + sv.AllowExternalPrincipals = ptr.Bool(jtv) } case "creationTime": @@ -5623,7 +5627,7 @@ func awsRestjson1_deserializeDocumentResourceShare(v **types.ResourceShare, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "owningAccountId": @@ -5632,7 +5636,7 @@ func awsRestjson1_deserializeDocumentResourceShare(v **types.ResourceShare, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OwningAccountId = &jtv + sv.OwningAccountId = ptr.String(jtv) } case "resourceShareArn": @@ -5641,7 +5645,7 @@ func awsRestjson1_deserializeDocumentResourceShare(v **types.ResourceShare, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceShareArn = &jtv + sv.ResourceShareArn = ptr.String(jtv) } case "status": @@ -5659,7 +5663,7 @@ func awsRestjson1_deserializeDocumentResourceShare(v **types.ResourceShare, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "tags": @@ -5704,7 +5708,7 @@ func awsRestjson1_deserializeDocumentResourceShareAssociation(v **types.Resource if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AssociatedEntity = &jtv + sv.AssociatedEntity = ptr.String(jtv) } case "associationType": @@ -5735,7 +5739,7 @@ func awsRestjson1_deserializeDocumentResourceShareAssociation(v **types.Resource if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.External = &jtv + sv.External = ptr.Bool(jtv) } case "lastUpdatedTime": @@ -5757,7 +5761,7 @@ func awsRestjson1_deserializeDocumentResourceShareAssociation(v **types.Resource if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceShareArn = &jtv + sv.ResourceShareArn = ptr.String(jtv) } case "resourceShareName": @@ -5766,7 +5770,7 @@ func awsRestjson1_deserializeDocumentResourceShareAssociation(v **types.Resource if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceShareName = &jtv + sv.ResourceShareName = ptr.String(jtv) } case "status": @@ -5784,7 +5788,7 @@ func awsRestjson1_deserializeDocumentResourceShareAssociation(v **types.Resource if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } default: @@ -5796,7 +5800,7 @@ func awsRestjson1_deserializeDocumentResourceShareAssociation(v **types.Resource return nil } -func awsRestjson1_deserializeDocumentResourceShareAssociationList(v *[]*types.ResourceShareAssociation, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceShareAssociationList(v *[]types.ResourceShareAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5809,18 +5813,20 @@ func awsRestjson1_deserializeDocumentResourceShareAssociationList(v *[]*types.Re return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceShareAssociation + var cv []types.ResourceShareAssociation if *v == nil { - cv = []*types.ResourceShareAssociation{} + cv = []types.ResourceShareAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceShareAssociation - if err := awsRestjson1_deserializeDocumentResourceShareAssociation(&col, value); err != nil { + var col types.ResourceShareAssociation + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceShareAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5869,7 +5875,7 @@ func awsRestjson1_deserializeDocumentResourceShareInvitation(v **types.ResourceS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ReceiverAccountId = &jtv + sv.ReceiverAccountId = ptr.String(jtv) } case "resourceShareArn": @@ -5878,7 +5884,7 @@ func awsRestjson1_deserializeDocumentResourceShareInvitation(v **types.ResourceS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceShareArn = &jtv + sv.ResourceShareArn = ptr.String(jtv) } case "resourceShareAssociations": @@ -5892,7 +5898,7 @@ func awsRestjson1_deserializeDocumentResourceShareInvitation(v **types.ResourceS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceShareInvitationArn = &jtv + sv.ResourceShareInvitationArn = ptr.String(jtv) } case "resourceShareName": @@ -5901,7 +5907,7 @@ func awsRestjson1_deserializeDocumentResourceShareInvitation(v **types.ResourceS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceShareName = &jtv + sv.ResourceShareName = ptr.String(jtv) } case "senderAccountId": @@ -5910,7 +5916,7 @@ func awsRestjson1_deserializeDocumentResourceShareInvitation(v **types.ResourceS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SenderAccountId = &jtv + sv.SenderAccountId = ptr.String(jtv) } case "status": @@ -5959,7 +5965,7 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationAlreadyAcceptedExcep if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5999,7 +6005,7 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationAlreadyRejectedExcep if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6039,7 +6045,7 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationArnNotFoundException if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6079,7 +6085,7 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationExpiredException(v * if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6091,7 +6097,7 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationExpiredException(v * return nil } -func awsRestjson1_deserializeDocumentResourceShareInvitationList(v *[]*types.ResourceShareInvitation, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceShareInvitationList(v *[]types.ResourceShareInvitation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6104,18 +6110,20 @@ func awsRestjson1_deserializeDocumentResourceShareInvitationList(v *[]*types.Res return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceShareInvitation + var cv []types.ResourceShareInvitation if *v == nil { - cv = []*types.ResourceShareInvitation{} + cv = []types.ResourceShareInvitation{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceShareInvitation - if err := awsRestjson1_deserializeDocumentResourceShareInvitation(&col, value); err != nil { + var col types.ResourceShareInvitation + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceShareInvitation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6151,7 +6159,7 @@ func awsRestjson1_deserializeDocumentResourceShareLimitExceededException(v **typ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6163,7 +6171,7 @@ func awsRestjson1_deserializeDocumentResourceShareLimitExceededException(v **typ return nil } -func awsRestjson1_deserializeDocumentResourceShareList(v *[]*types.ResourceShare, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceShareList(v *[]types.ResourceShare, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6176,18 +6184,20 @@ func awsRestjson1_deserializeDocumentResourceShareList(v *[]*types.ResourceShare return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceShare + var cv []types.ResourceShare if *v == nil { - cv = []*types.ResourceShare{} + cv = []types.ResourceShare{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceShare - if err := awsRestjson1_deserializeDocumentResourceShare(&col, value); err != nil { + var col types.ResourceShare + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceShare(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6223,7 +6233,7 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionDetail(v **types.Res if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationTime": @@ -6245,7 +6255,7 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionDetail(v **types.Res if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DefaultVersion = &jtv + sv.DefaultVersion = ptr.Bool(jtv) } case "lastUpdatedTime": @@ -6267,7 +6277,7 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionDetail(v **types.Res if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "permission": @@ -6276,7 +6286,7 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionDetail(v **types.Res if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Permission = &jtv + sv.Permission = ptr.String(jtv) } case "resourceType": @@ -6285,7 +6295,7 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionDetail(v **types.Res if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "version": @@ -6294,7 +6304,7 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionDetail(v **types.Res if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -6306,7 +6316,7 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionDetail(v **types.Res return nil } -func awsRestjson1_deserializeDocumentResourceSharePermissionList(v *[]*types.ResourceSharePermissionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceSharePermissionList(v *[]types.ResourceSharePermissionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6319,18 +6329,20 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionList(v *[]*types.Res return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceSharePermissionSummary + var cv []types.ResourceSharePermissionSummary if *v == nil { - cv = []*types.ResourceSharePermissionSummary{} + cv = []types.ResourceSharePermissionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceSharePermissionSummary - if err := awsRestjson1_deserializeDocumentResourceSharePermissionSummary(&col, value); err != nil { + var col types.ResourceSharePermissionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceSharePermissionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6366,7 +6378,7 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionSummary(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "creationTime": @@ -6388,7 +6400,7 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionSummary(v **types.Re if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DefaultVersion = &jtv + sv.DefaultVersion = ptr.Bool(jtv) } case "lastUpdatedTime": @@ -6410,7 +6422,7 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionSummary(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "resourceType": @@ -6419,7 +6431,7 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionSummary(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "status": @@ -6428,7 +6440,7 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionSummary(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "version": @@ -6437,7 +6449,7 @@ func awsRestjson1_deserializeDocumentResourceSharePermissionSummary(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -6477,7 +6489,7 @@ func awsRestjson1_deserializeDocumentServerInternalException(v **types.ServerInt if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6517,7 +6529,7 @@ func awsRestjson1_deserializeDocumentServiceNameAndResourceType(v **types.Servic if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "serviceName": @@ -6526,7 +6538,7 @@ func awsRestjson1_deserializeDocumentServiceNameAndResourceType(v **types.Servic if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } default: @@ -6538,7 +6550,7 @@ func awsRestjson1_deserializeDocumentServiceNameAndResourceType(v **types.Servic return nil } -func awsRestjson1_deserializeDocumentServiceNameAndResourceTypeList(v *[]*types.ServiceNameAndResourceType, value interface{}) error { +func awsRestjson1_deserializeDocumentServiceNameAndResourceTypeList(v *[]types.ServiceNameAndResourceType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6551,18 +6563,20 @@ func awsRestjson1_deserializeDocumentServiceNameAndResourceTypeList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServiceNameAndResourceType + var cv []types.ServiceNameAndResourceType if *v == nil { - cv = []*types.ServiceNameAndResourceType{} + cv = []types.ServiceNameAndResourceType{} } else { cv = *v } for _, value := range shape { - var col *types.ServiceNameAndResourceType - if err := awsRestjson1_deserializeDocumentServiceNameAndResourceType(&col, value); err != nil { + var col types.ServiceNameAndResourceType + destAddr := &col + if err := awsRestjson1_deserializeDocumentServiceNameAndResourceType(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6598,7 +6612,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6638,7 +6652,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -6647,7 +6661,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6687,7 +6701,7 @@ func awsRestjson1_deserializeDocumentTagLimitExceededException(v **types.TagLimi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6699,7 +6713,7 @@ func awsRestjson1_deserializeDocumentTagLimitExceededException(v **types.TagLimi return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6712,18 +6726,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6759,7 +6775,7 @@ func awsRestjson1_deserializeDocumentTagPolicyViolationException(v **types.TagPo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6799,7 +6815,7 @@ func awsRestjson1_deserializeDocumentUnknownResourceException(v **types.UnknownR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/ram/go.mod b/service/ram/go.mod index 63d8a5d7ce8..eecf606fab4 100644 --- a/service/ram/go.mod +++ b/service/ram/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/ram go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/ram/serializers.go b/service/ram/serializers.go index a9efe3061a9..09edc26c96b 100644 --- a/service/ram/serializers.go +++ b/service/ram/serializers.go @@ -2067,77 +2067,57 @@ func awsRestjson1_serializeOpDocumentUpdateResourceShareInput(v *UpdateResourceS return nil } -func awsRestjson1_serializeDocumentPermissionArnList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPermissionArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentPrincipalArnOrIdList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPrincipalArnOrIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentResourceArnList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourceArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentResourceShareArnList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourceShareArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentResourceShareInvitationArnList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourceShareInvitationArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2178,66 +2158,50 @@ func awsRestjson1_serializeDocumentTagFilter(v *types.TagFilter, value smithyjso return nil } -func awsRestjson1_serializeDocumentTagFilters(v []*types.TagFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagFilters(v []types.TagFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTagFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTagFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTagValueList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/ram/types/types.go b/service/ram/types/types.go index 6035782c9a1..e5e54870b82 100644 --- a/service/ram/types/types.go +++ b/service/ram/types/types.go @@ -101,7 +101,7 @@ type ResourceShare struct { StatusMessage *string // The tags for the resource share. - Tags []*Tag + Tags []Tag } // Describes an association with a resource share. @@ -153,7 +153,7 @@ type ResourceShareInvitation struct { // To view the resources associated with a pending resource share invitation, use // ListPendingInvitationResources // (https://docs.aws.amazon.com/ram/latest/APIReference/API_ListPendingInvitationResources.html). - ResourceShareAssociations []*ResourceShareAssociation + ResourceShareAssociations []ResourceShareAssociation // The Amazon Resource Name (ARN) of the invitation. ResourceShareInvitationArn *string @@ -256,5 +256,5 @@ type TagFilter struct { TagKey *string // The tag values. - TagValues []*string + TagValues []string } diff --git a/service/rds/api_op_AddTagsToResource.go b/service/rds/api_op_AddTagsToResource.go index dc1712852e7..a2320ed95a7 100644 --- a/service/rds/api_op_AddTagsToResource.go +++ b/service/rds/api_op_AddTagsToResource.go @@ -45,7 +45,7 @@ type AddTagsToResourceInput struct { // The tags to be assigned to the Amazon RDS resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type AddTagsToResourceOutput struct { diff --git a/service/rds/api_op_CancelExportTask.go b/service/rds/api_op_CancelExportTask.go index 10d4291ab09..0fcb16ba324 100644 --- a/service/rds/api_op_CancelExportTask.go +++ b/service/rds/api_op_CancelExportTask.go @@ -56,7 +56,7 @@ type CancelExportTaskOutput struct { // * database.schema.table table-name - Export a // table of the database schema. This format is valid only for RDS for PostgreSQL // and Aurora PostgreSQL. - ExportOnly []*string + ExportOnly []string // A unique identifier for the snapshot export task. This ID isn't an identifier // for the Amazon S3 bucket where the snapshot is exported to. @@ -77,7 +77,7 @@ type CancelExportTaskOutput struct { KmsKeyId *string // The progress of the snapshot export task as a percentage. - PercentProgress *int32 + PercentProgress int32 // The Amazon S3 bucket that the snapshot is exported to. S3Bucket *string @@ -102,7 +102,7 @@ type CancelExportTaskOutput struct { TaskStartTime *time.Time // The total amount of data exported, in gigabytes. - TotalExtractedDataInGB *int32 + TotalExtractedDataInGB int32 // A warning about the snapshot export task. WarningMessage *string diff --git a/service/rds/api_op_CopyDBClusterParameterGroup.go b/service/rds/api_op_CopyDBClusterParameterGroup.go index 7c2e0c8460d..4a6424a083f 100644 --- a/service/rds/api_op_CopyDBClusterParameterGroup.go +++ b/service/rds/api_op_CopyDBClusterParameterGroup.go @@ -77,7 +77,7 @@ type CopyDBClusterParameterGroupInput struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag } type CopyDBClusterParameterGroupOutput struct { diff --git a/service/rds/api_op_CopyDBClusterSnapshot.go b/service/rds/api_op_CopyDBClusterSnapshot.go index 29fedc93546..441daece3b4 100644 --- a/service/rds/api_op_CopyDBClusterSnapshot.go +++ b/service/rds/api_op_CopyDBClusterSnapshot.go @@ -206,7 +206,7 @@ type CopyDBClusterSnapshotInput struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag // Used by the SDK's PresignURL autofill customization to specify the region the of // the client's request. diff --git a/service/rds/api_op_CopyDBParameterGroup.go b/service/rds/api_op_CopyDBParameterGroup.go index 020055e28fa..f3424b2df67 100644 --- a/service/rds/api_op_CopyDBParameterGroup.go +++ b/service/rds/api_op_CopyDBParameterGroup.go @@ -70,7 +70,7 @@ type CopyDBParameterGroupInput struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag } type CopyDBParameterGroupOutput struct { diff --git a/service/rds/api_op_CopyDBSnapshot.go b/service/rds/api_op_CopyDBSnapshot.go index a9db750f7ee..8f1fe711d46 100644 --- a/service/rds/api_op_CopyDBSnapshot.go +++ b/service/rds/api_op_CopyDBSnapshot.go @@ -159,7 +159,7 @@ type CopyDBSnapshotInput struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag // Used by the SDK's PresignURL autofill customization to specify the region the of // the client's request. diff --git a/service/rds/api_op_CopyOptionGroup.go b/service/rds/api_op_CopyOptionGroup.go index 036b88ee1a3..74aaa7c4d11 100644 --- a/service/rds/api_op_CopyOptionGroup.go +++ b/service/rds/api_op_CopyOptionGroup.go @@ -64,7 +64,7 @@ type CopyOptionGroupInput struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag } type CopyOptionGroupOutput struct { diff --git a/service/rds/api_op_CreateDBCluster.go b/service/rds/api_op_CreateDBCluster.go index 4d2638c8d11..85d3f03016d 100644 --- a/service/rds/api_op_CreateDBCluster.go +++ b/service/rds/api_op_CreateDBCluster.go @@ -71,7 +71,7 @@ type CreateDBClusterInput struct { // Regions and Availability Zones // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html) // in the Amazon Aurora User Guide. - AvailabilityZones []*string + AvailabilityZones []string // The target backtrack window, in seconds. To disable backtracking, set this value // to 0. Currently, Backtrack is only supported for Aurora MySQL DB clusters. @@ -136,7 +136,7 @@ type CreateDBClusterInput struct { // in the Amazon Aurora User Guide. Aurora MySQL Possible values are audit, error, // general, and slowquery. Aurora PostgreSQL Possible values are postgresql and // upgrade. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // A value that indicates whether to enable write operations to be forwarded from // this cluster to the primary cluster in an Aurora global database. The resulting @@ -339,10 +339,10 @@ type CreateDBClusterInput struct { StorageEncrypted *bool // Tags to assign to the DB cluster. - Tags []*types.Tag + Tags []types.Tag // A list of EC2 VPC security groups to associate with this DB cluster. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string // Used by the SDK's PresignURL autofill customization to specify the region the of // the client's request. diff --git a/service/rds/api_op_CreateDBClusterEndpoint.go b/service/rds/api_op_CreateDBClusterEndpoint.go index 0f7b5bbd4d1..8f0cb4ebdbc 100644 --- a/service/rds/api_op_CreateDBClusterEndpoint.go +++ b/service/rds/api_op_CreateDBClusterEndpoint.go @@ -50,13 +50,13 @@ type CreateDBClusterEndpointInput struct { // List of DB instance identifiers that aren't part of the custom endpoint group. // All other eligible instances are reachable through the custom endpoint. Only // relevant if the list of static members is empty. - ExcludedMembers []*string + ExcludedMembers []string // List of DB instance identifiers that are part of the custom endpoint group. - StaticMembers []*string + StaticMembers []string // The tags to be assigned to the Amazon RDS resource. - Tags []*types.Tag + Tags []types.Tag } // This data type represents the information you need to connect to an Amazon @@ -103,10 +103,10 @@ type CreateDBClusterEndpointOutput struct { // List of DB instance identifiers that aren't part of the custom endpoint group. // All other eligible instances are reachable through the custom endpoint. Only // relevant if the list of static members is empty. - ExcludedMembers []*string + ExcludedMembers []string // List of DB instance identifiers that are part of the custom endpoint group. - StaticMembers []*string + StaticMembers []string // The current status of the endpoint. One of: creating, available, deleting, // inactive, modifying. The inactive state applies to an endpoint that can't be diff --git a/service/rds/api_op_CreateDBClusterParameterGroup.go b/service/rds/api_op_CreateDBClusterParameterGroup.go index ae354d83fb1..0e9d7a1c459 100644 --- a/service/rds/api_op_CreateDBClusterParameterGroup.go +++ b/service/rds/api_op_CreateDBClusterParameterGroup.go @@ -80,7 +80,7 @@ type CreateDBClusterParameterGroupInput struct { Description *string // Tags to assign to the DB cluster parameter group. - Tags []*types.Tag + Tags []types.Tag } type CreateDBClusterParameterGroupOutput struct { diff --git a/service/rds/api_op_CreateDBClusterSnapshot.go b/service/rds/api_op_CreateDBClusterSnapshot.go index 52cee39626c..ea4a13d1316 100644 --- a/service/rds/api_op_CreateDBClusterSnapshot.go +++ b/service/rds/api_op_CreateDBClusterSnapshot.go @@ -61,7 +61,7 @@ type CreateDBClusterSnapshotInput struct { DBClusterSnapshotIdentifier *string // The tags to be assigned to the DB cluster snapshot. - Tags []*types.Tag + Tags []types.Tag } type CreateDBClusterSnapshotOutput struct { diff --git a/service/rds/api_op_CreateDBInstance.go b/service/rds/api_op_CreateDBInstance.go index 98434bcc891..563deddf461 100644 --- a/service/rds/api_op_CreateDBInstance.go +++ b/service/rds/api_op_CreateDBInstance.go @@ -291,7 +291,7 @@ type CreateDBInstanceInput struct { // A list of DB security groups to associate with this DB instance. Default: The // default DB security group for the database engine. - DBSecurityGroups []*string + DBSecurityGroups []string // A DB subnet group to associate with this DB instance. If there is no DB subnet // group, then it is a non-VPC DB instance. @@ -330,7 +330,7 @@ type CreateDBInstanceInput struct { // Possible values are agent and error. MySQL Possible values are audit, error, // general, and slowquery. Oracle Possible values are alert, audit, listener, and // trace. PostgreSQL Possible values are postgresql and upgrade. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // A value that indicates whether to enable mapping of AWS Identity and Access // Management (IAM) accounts to database accounts. By default, mapping is disabled. @@ -573,7 +573,7 @@ type CreateDBInstanceInput struct { // The number of CPU cores and the number of threads per core for the DB instance // class of the DB instance. - ProcessorFeatures []*types.ProcessorFeature + ProcessorFeatures []types.ProcessorFeature // A value that specifies the order in which an Aurora Replica is promoted to the // primary instance after a failure of the existing primary instance. For more @@ -623,7 +623,7 @@ type CreateDBInstanceInput struct { StorageType *string // Tags to assign to the DB instance. - Tags []*types.Tag + Tags []types.Tag // The ARN from the key store with which to associate the instance for TDE // encryption. @@ -641,7 +641,7 @@ type CreateDBInstanceInput struct { // Amazon Aurora Not applicable. The associated list of EC2 VPC security groups is // managed by the DB cluster. Default: The default EC2 VPC security group for the // DB subnet group's VPC. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type CreateDBInstanceOutput struct { diff --git a/service/rds/api_op_CreateDBInstanceReadReplica.go b/service/rds/api_op_CreateDBInstanceReadReplica.go index c0059984b7e..b995932f4c6 100644 --- a/service/rds/api_op_CreateDBInstanceReadReplica.go +++ b/service/rds/api_op_CreateDBInstanceReadReplica.go @@ -180,7 +180,7 @@ type CreateDBInstanceReadReplicaInput struct { // Publishing Database Logs to Amazon CloudWatch Logs // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) // in the Amazon RDS User Guide. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // A value that indicates whether to enable mapping of AWS Identity and Access // Management (IAM) accounts to database accounts. By default, mapping is disabled. @@ -307,7 +307,7 @@ type CreateDBInstanceReadReplicaInput struct { // The number of CPU cores and the number of threads per core for the DB instance // class of the DB instance. - ProcessorFeatures []*types.ProcessorFeature + ProcessorFeatures []types.ProcessorFeature // A value that indicates whether the DB instance is publicly accessible. When the // DB instance is publicly accessible, its DNS endpoint resolves to the private IP @@ -345,7 +345,7 @@ type CreateDBInstanceReadReplicaInput struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag // A value that indicates whether the DB instance class of the DB instance uses its // default processor features. @@ -353,7 +353,7 @@ type CreateDBInstanceReadReplicaInput struct { // A list of EC2 VPC security groups to associate with the read replica. Default: // The default EC2 VPC security group for the DB subnet group's VPC. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string // Used by the SDK's PresignURL autofill customization to specify the region the of // the client's request. diff --git a/service/rds/api_op_CreateDBParameterGroup.go b/service/rds/api_op_CreateDBParameterGroup.go index a1d491291ea..39384278c55 100644 --- a/service/rds/api_op_CreateDBParameterGroup.go +++ b/service/rds/api_op_CreateDBParameterGroup.go @@ -78,7 +78,7 @@ type CreateDBParameterGroupInput struct { Description *string // Tags to assign to the DB parameter group. - Tags []*types.Tag + Tags []types.Tag } type CreateDBParameterGroupOutput struct { diff --git a/service/rds/api_op_CreateDBProxy.go b/service/rds/api_op_CreateDBProxy.go index 59f9cdc83ff..7b56f59912c 100644 --- a/service/rds/api_op_CreateDBProxy.go +++ b/service/rds/api_op_CreateDBProxy.go @@ -32,7 +32,7 @@ type CreateDBProxyInput struct { // The authorization mechanism that the proxy uses. // // This member is required. - Auth []*types.UserAuthConfig + Auth []types.UserAuthConfig // The identifier for the proxy. This name must be unique for all proxies owned by // your AWS account in the specified AWS Region. An identifier must begin with a @@ -59,7 +59,7 @@ type CreateDBProxyInput struct { // One or more VPC subnet IDs to associate with the new proxy. // // This member is required. - VpcSubnetIds []*string + VpcSubnetIds []string // Whether the proxy includes detailed information about SQL statements in its // logs. This information helps you to debug issues involving SQL behavior or the @@ -68,7 +68,7 @@ type CreateDBProxyInput struct { // only enable this setting when needed for debugging, and only when you have // security measures in place to safeguard any sensitive information that appears // in the logs. - DebugLogging *bool + DebugLogging bool // The number of seconds that a connection to the proxy can be inactive before the // proxy disconnects it. You can set this value higher or lower than the connection @@ -78,14 +78,14 @@ type CreateDBProxyInput struct { // A Boolean parameter that specifies whether Transport Layer Security (TLS) // encryption is required for connections to the proxy. By enabling this setting, // you can enforce encrypted TLS connections to the proxy. - RequireTLS *bool + RequireTLS bool // An optional set of key-value pairs to associate arbitrary data of your choosing // with the proxy. - Tags []*types.Tag + Tags []types.Tag // One or more VPC security group IDs to associate with the new proxy. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type CreateDBProxyOutput struct { diff --git a/service/rds/api_op_CreateDBSecurityGroup.go b/service/rds/api_op_CreateDBSecurityGroup.go index 67ef73a1c4d..81001a40ef2 100644 --- a/service/rds/api_op_CreateDBSecurityGroup.go +++ b/service/rds/api_op_CreateDBSecurityGroup.go @@ -56,7 +56,7 @@ type CreateDBSecurityGroupInput struct { DBSecurityGroupName *string // Tags to assign to the DB security group. - Tags []*types.Tag + Tags []types.Tag } type CreateDBSecurityGroupOutput struct { diff --git a/service/rds/api_op_CreateDBSnapshot.go b/service/rds/api_op_CreateDBSnapshot.go index 050da837070..890147661aa 100644 --- a/service/rds/api_op_CreateDBSnapshot.go +++ b/service/rds/api_op_CreateDBSnapshot.go @@ -60,7 +60,7 @@ type CreateDBSnapshotInput struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag } type CreateDBSnapshotOutput struct { diff --git a/service/rds/api_op_CreateDBSubnetGroup.go b/service/rds/api_op_CreateDBSubnetGroup.go index df93280549f..933955a48be 100644 --- a/service/rds/api_op_CreateDBSubnetGroup.go +++ b/service/rds/api_op_CreateDBSubnetGroup.go @@ -46,10 +46,10 @@ type CreateDBSubnetGroupInput struct { // The EC2 Subnet IDs for the DB subnet group. // // This member is required. - SubnetIds []*string + SubnetIds []string // Tags to assign to the DB subnet group. - Tags []*types.Tag + Tags []types.Tag } type CreateDBSubnetGroupOutput struct { diff --git a/service/rds/api_op_CreateEventSubscription.go b/service/rds/api_op_CreateEventSubscription.go index cb96b4c2589..1016bc3b1ac 100644 --- a/service/rds/api_op_CreateEventSubscription.go +++ b/service/rds/api_op_CreateEventSubscription.go @@ -69,7 +69,7 @@ type CreateEventSubscriptionInput struct { // type in Events // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html) in the // Amazon RDS User Guide or by using the DescribeEventCategories operation. - EventCategories []*string + EventCategories []string // The list of identifiers of the event sources for which events are returned. If // not specified, then all sources are included in the response. An identifier must @@ -97,7 +97,7 @@ type CreateEventSubscriptionInput struct { // // * If the source type is a DB // cluster snapshot, a DBClusterSnapshotIdentifier value must be supplied. - SourceIds []*string + SourceIds []string // The type of source that is generating the events. For example, if you want to be // notified of events generated by a DB instance, you set this parameter to @@ -109,7 +109,7 @@ type CreateEventSubscriptionInput struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag } type CreateEventSubscriptionOutput struct { diff --git a/service/rds/api_op_CreateOptionGroup.go b/service/rds/api_op_CreateOptionGroup.go index fd7b328627f..7a3bc9c4329 100644 --- a/service/rds/api_op_CreateOptionGroup.go +++ b/service/rds/api_op_CreateOptionGroup.go @@ -63,7 +63,7 @@ type CreateOptionGroupInput struct { OptionGroupName *string // Tags to assign to the option group. - Tags []*types.Tag + Tags []types.Tag } type CreateOptionGroupOutput struct { diff --git a/service/rds/api_op_DeleteDBCluster.go b/service/rds/api_op_DeleteDBCluster.go index c8929cfca66..8001ead38d5 100644 --- a/service/rds/api_op_DeleteDBCluster.go +++ b/service/rds/api_op_DeleteDBCluster.go @@ -63,7 +63,7 @@ type DeleteDBClusterInput struct { // before the DB cluster is deleted. By default, skip isn't specified, and the DB // cluster snapshot is created. By default, this parameter is disabled. You must // specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot is disabled. - SkipFinalSnapshot *bool + SkipFinalSnapshot bool } type DeleteDBClusterOutput struct { diff --git a/service/rds/api_op_DeleteDBClusterEndpoint.go b/service/rds/api_op_DeleteDBClusterEndpoint.go index d989b417f4d..24bd1599979 100644 --- a/service/rds/api_op_DeleteDBClusterEndpoint.go +++ b/service/rds/api_op_DeleteDBClusterEndpoint.go @@ -80,10 +80,10 @@ type DeleteDBClusterEndpointOutput struct { // List of DB instance identifiers that aren't part of the custom endpoint group. // All other eligible instances are reachable through the custom endpoint. Only // relevant if the list of static members is empty. - ExcludedMembers []*string + ExcludedMembers []string // List of DB instance identifiers that are part of the custom endpoint group. - StaticMembers []*string + StaticMembers []string // The current status of the endpoint. One of: creating, available, deleting, // inactive, modifying. The inactive state applies to an endpoint that can't be diff --git a/service/rds/api_op_DeleteDBInstance.go b/service/rds/api_op_DeleteDBInstance.go index 236c9a0338e..04ad126f58b 100644 --- a/service/rds/api_op_DeleteDBInstance.go +++ b/service/rds/api_op_DeleteDBInstance.go @@ -90,7 +90,7 @@ type DeleteDBInstanceInput struct { // 'incompatible-restore', or 'incompatible-network', it can only be deleted when // skip is specified. Specify skip when deleting a read replica. The // FinalDBSnapshotIdentifier parameter must be specified if skip isn't specified. - SkipFinalSnapshot *bool + SkipFinalSnapshot bool } type DeleteDBInstanceOutput struct { diff --git a/service/rds/api_op_DeregisterDBProxyTargets.go b/service/rds/api_op_DeregisterDBProxyTargets.go index 273f91a6ba8..d9cdf0c3539 100644 --- a/service/rds/api_op_DeregisterDBProxyTargets.go +++ b/service/rds/api_op_DeregisterDBProxyTargets.go @@ -35,10 +35,10 @@ type DeregisterDBProxyTargetsInput struct { DBProxyName *string // One or more DB cluster identifiers. - DBClusterIdentifiers []*string + DBClusterIdentifiers []string // One or more DB instance identifiers. - DBInstanceIdentifiers []*string + DBInstanceIdentifiers []string // The identifier of the DBProxyTargetGroup. TargetGroupName *string diff --git a/service/rds/api_op_DescribeAccountAttributes.go b/service/rds/api_op_DescribeAccountAttributes.go index 9cf436895bb..a96f48a9bde 100644 --- a/service/rds/api_op_DescribeAccountAttributes.go +++ b/service/rds/api_op_DescribeAccountAttributes.go @@ -39,7 +39,7 @@ type DescribeAccountAttributesOutput struct { // A list of AccountQuota objects. Within this list, each quota has a name, a count // of usage toward the quota maximum, and a maximum value for the quota. - AccountQuotas []*types.AccountQuota + AccountQuotas []types.AccountQuota // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_DescribeCertificates.go b/service/rds/api_op_DescribeCertificates.go index 02e9150eb49..3310ed6edfc 100644 --- a/service/rds/api_op_DescribeCertificates.go +++ b/service/rds/api_op_DescribeCertificates.go @@ -39,7 +39,7 @@ type DescribeCertificatesInput struct { CertificateIdentifier *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeCertificates // request. If this parameter is specified, the response includes only records @@ -57,7 +57,7 @@ type DescribeCertificatesInput struct { type DescribeCertificatesOutput struct { // The list of Certificate objects for the AWS account. - Certificates []*types.Certificate + Certificates []types.Certificate // An optional pagination token provided by a previous DescribeCertificates // request. If this parameter is specified, the response includes only records diff --git a/service/rds/api_op_DescribeCustomAvailabilityZones.go b/service/rds/api_op_DescribeCustomAvailabilityZones.go index df24db31691..9e77268fc18 100644 --- a/service/rds/api_op_DescribeCustomAvailabilityZones.go +++ b/service/rds/api_op_DescribeCustomAvailabilityZones.go @@ -37,7 +37,7 @@ type DescribeCustomAvailabilityZonesInput struct { CustomAvailabilityZoneId *string // A filter that specifies one or more custom AZs to describe. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous // DescribeCustomAvailabilityZones request. If this parameter is specified, the @@ -55,7 +55,7 @@ type DescribeCustomAvailabilityZonesInput struct { type DescribeCustomAvailabilityZonesOutput struct { // The list of CustomAvailabilityZone objects for the AWS account. - CustomAvailabilityZones []*types.CustomAvailabilityZone + CustomAvailabilityZones []types.CustomAvailabilityZone // An optional pagination token provided by a previous // DescribeCustomAvailabilityZones request. If this parameter is specified, the diff --git a/service/rds/api_op_DescribeDBClusterBacktracks.go b/service/rds/api_op_DescribeDBClusterBacktracks.go index 2f1711893e6..47d6091cab9 100644 --- a/service/rds/api_op_DescribeDBClusterBacktracks.go +++ b/service/rds/api_op_DescribeDBClusterBacktracks.go @@ -83,7 +83,7 @@ type DescribeDBClusterBacktracksInput struct { // // The results list includes information about only the backtracks // identified by these values. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBClusterBacktracks // request. If this parameter is specified, the response includes only records @@ -102,7 +102,7 @@ type DescribeDBClusterBacktracksInput struct { type DescribeDBClusterBacktracksOutput struct { // Contains a list of backtracks for the user. - DBClusterBacktracks []*types.DBClusterBacktrack + DBClusterBacktracks []types.DBClusterBacktrack // A pagination token that can be used in a later DescribeDBClusterBacktracks // request. diff --git a/service/rds/api_op_DescribeDBClusterEndpoints.go b/service/rds/api_op_DescribeDBClusterEndpoints.go index 0d9681181bb..7751024526a 100644 --- a/service/rds/api_op_DescribeDBClusterEndpoints.go +++ b/service/rds/api_op_DescribeDBClusterEndpoints.go @@ -47,7 +47,7 @@ type DescribeDBClusterEndpointsInput struct { // Values for the db-cluster-endpoint-custom-type filter can be one or more of: // reader, any. Values for the db-cluster-endpoint-status filter can be one or more // of: available, creating, deleting, inactive, modifying. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBClusterEndpoints // request. If this parameter is specified, the response includes only records @@ -65,7 +65,7 @@ type DescribeDBClusterEndpointsOutput struct { // Contains the details of the endpoints associated with the cluster and matching // any filter conditions. - DBClusterEndpoints []*types.DBClusterEndpoint + DBClusterEndpoints []types.DBClusterEndpoint // An optional pagination token provided by a previous DescribeDBClusterEndpoints // request. If this parameter is specified, the response includes only records diff --git a/service/rds/api_op_DescribeDBClusterParameterGroups.go b/service/rds/api_op_DescribeDBClusterParameterGroups.go index f84dc99feff..044ea92774d 100644 --- a/service/rds/api_op_DescribeDBClusterParameterGroups.go +++ b/service/rds/api_op_DescribeDBClusterParameterGroups.go @@ -43,7 +43,7 @@ type DescribeDBClusterParameterGroupsInput struct { DBClusterParameterGroupName *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous // DescribeDBClusterParameterGroups request. If this parameter is specified, the @@ -62,7 +62,7 @@ type DescribeDBClusterParameterGroupsInput struct { type DescribeDBClusterParameterGroupsOutput struct { // A list of DB cluster parameter groups. - DBClusterParameterGroups []*types.DBClusterParameterGroup + DBClusterParameterGroups []types.DBClusterParameterGroup // An optional pagination token provided by a previous // DescribeDBClusterParameterGroups request. If this parameter is specified, the diff --git a/service/rds/api_op_DescribeDBClusterParameters.go b/service/rds/api_op_DescribeDBClusterParameters.go index a73045aa160..73244c61884 100644 --- a/service/rds/api_op_DescribeDBClusterParameters.go +++ b/service/rds/api_op_DescribeDBClusterParameters.go @@ -43,7 +43,7 @@ type DescribeDBClusterParametersInput struct { DBClusterParameterGroupName *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBClusterParameters // request. If this parameter is specified, the response includes only records @@ -71,7 +71,7 @@ type DescribeDBClusterParametersOutput struct { Marker *string // Provides a list of parameters for the DB cluster parameter group. - Parameters []*types.Parameter + Parameters []types.Parameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_DescribeDBClusterSnapshots.go b/service/rds/api_op_DescribeDBClusterSnapshots.go index 56c7b66371c..7748e029553 100644 --- a/service/rds/api_op_DescribeDBClusterSnapshots.go +++ b/service/rds/api_op_DescribeDBClusterSnapshots.go @@ -65,20 +65,20 @@ type DescribeDBClusterSnapshotsInput struct { // // * engine // - Accepts names of database engines. - Filters []*types.Filter + Filters []types.Filter // A value that indicates whether to include manual DB cluster snapshots that are // public and can be copied or restored by any AWS account. By default, the public // snapshots are not included. You can share a manual DB cluster snapshot as public // by using the ModifyDBClusterSnapshotAttribute API action. - IncludePublic *bool + IncludePublic bool // A value that indicates whether to include shared manual DB cluster snapshots // from other AWS accounts that this AWS account has been given permission to copy // or restore. By default, these snapshots are not included. You can give an AWS // account permission to restore a manual DB cluster snapshot from another AWS // account by the ModifyDBClusterSnapshotAttribute API action. - IncludeShared *bool + IncludeShared bool // An optional pagination token provided by a previous DescribeDBClusterSnapshots // request. If this parameter is specified, the response includes only records @@ -123,7 +123,7 @@ type DescribeDBClusterSnapshotsInput struct { type DescribeDBClusterSnapshotsOutput struct { // Provides a list of DB cluster snapshots for the user. - DBClusterSnapshots []*types.DBClusterSnapshot + DBClusterSnapshots []types.DBClusterSnapshot // An optional pagination token provided by a previous DescribeDBClusterSnapshots // request. If this parameter is specified, the response includes only records diff --git a/service/rds/api_op_DescribeDBClusters.go b/service/rds/api_op_DescribeDBClusters.go index 397080eb6d2..adc6877852e 100644 --- a/service/rds/api_op_DescribeDBClusters.go +++ b/service/rds/api_op_DescribeDBClusters.go @@ -48,11 +48,11 @@ type DescribeDBClustersInput struct { // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon // Resource Names (ARNs). The results list will only include information about the // DB clusters identified by these ARNs. - Filters []*types.Filter + Filters []types.Filter // Optional Boolean parameter that specifies whether the output includes // information about clusters shared from other AWS accounts. - IncludeShared *bool + IncludeShared bool // An optional pagination token provided by a previous DescribeDBClusters request. // If this parameter is specified, the response includes only records beyond the @@ -70,7 +70,7 @@ type DescribeDBClustersInput struct { type DescribeDBClustersOutput struct { // Contains a list of DB clusters for the user. - DBClusters []*types.DBCluster + DBClusters []types.DBCluster // A pagination token that can be used in a later DescribeDBClusters request. Marker *string diff --git a/service/rds/api_op_DescribeDBEngineVersions.go b/service/rds/api_op_DescribeDBEngineVersions.go index 435eea58454..33cf14802cd 100644 --- a/service/rds/api_op_DescribeDBEngineVersions.go +++ b/service/rds/api_op_DescribeDBEngineVersions.go @@ -37,7 +37,7 @@ type DescribeDBEngineVersionsInput struct { // A value that indicates whether only the default version of the specified engine // or engine and major version combination is returned. - DefaultOnly *bool + DefaultOnly bool // The database engine to return. Engine *string @@ -46,7 +46,7 @@ type DescribeDBEngineVersionsInput struct { EngineVersion *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // A value that indicates whether to include engine versions that aren't available // in the list. The default is to list only available engine versions. @@ -81,7 +81,7 @@ type DescribeDBEngineVersionsInput struct { type DescribeDBEngineVersionsOutput struct { // A list of DBEngineVersion elements. - DBEngineVersions []*types.DBEngineVersion + DBEngineVersions []types.DBEngineVersion // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/rds/api_op_DescribeDBInstanceAutomatedBackups.go b/service/rds/api_op_DescribeDBInstanceAutomatedBackups.go index eb11ea070e8..d00f0a7ebc3 100644 --- a/service/rds/api_op_DescribeDBInstanceAutomatedBackups.go +++ b/service/rds/api_op_DescribeDBInstanceAutomatedBackups.go @@ -70,7 +70,7 @@ type DescribeDBInstanceAutomatedBackupsInput struct { // Returns // all resources by default. The status for each resource is specified in the // response. - Filters []*types.Filter + Filters []types.Filter // The pagination token provided in the previous request. If this parameter is // specified the response includes only records beyond the marker, up to @@ -88,7 +88,7 @@ type DescribeDBInstanceAutomatedBackupsInput struct { type DescribeDBInstanceAutomatedBackupsOutput struct { // A list of DBInstanceAutomatedBackup instances. - DBInstanceAutomatedBackups []*types.DBInstanceAutomatedBackup + DBInstanceAutomatedBackups []types.DBInstanceAutomatedBackup // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/rds/api_op_DescribeDBInstances.go b/service/rds/api_op_DescribeDBInstances.go index b9325754ab9..961a2f97e5e 100644 --- a/service/rds/api_op_DescribeDBInstances.go +++ b/service/rds/api_op_DescribeDBInstances.go @@ -63,7 +63,7 @@ type DescribeDBInstancesInput struct { // * engine - // Accepts engine names. The results list will only include information about the // DB instances for these engines. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBInstances request. // If this parameter is specified, the response includes only records beyond the @@ -82,7 +82,7 @@ type DescribeDBInstancesInput struct { type DescribeDBInstancesOutput struct { // A list of DBInstance instances. - DBInstances []*types.DBInstance + DBInstances []types.DBInstance // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/rds/api_op_DescribeDBLogFiles.go b/service/rds/api_op_DescribeDBLogFiles.go index f799b4fd1cc..99c19fac9e7 100644 --- a/service/rds/api_op_DescribeDBLogFiles.go +++ b/service/rds/api_op_DescribeDBLogFiles.go @@ -41,17 +41,17 @@ type DescribeDBLogFilesInput struct { // Filters the available log files for files written since the specified date, in // POSIX timestamp format with milliseconds. - FileLastWritten *int64 + FileLastWritten int64 // Filters the available log files for files larger than the specified size. - FileSize *int64 + FileSize int64 // Filters the available log files for log file names that contain the specified // string. FilenameContains *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // The pagination token provided in the previous request. If this parameter is // specified the response includes only records beyond the marker, up to @@ -68,7 +68,7 @@ type DescribeDBLogFilesInput struct { type DescribeDBLogFilesOutput struct { // The DB log files returned. - DescribeDBLogFiles []*types.DescribeDBLogFilesDetails + DescribeDBLogFiles []types.DescribeDBLogFilesDetails // A pagination token that can be used in a later DescribeDBLogFiles request. Marker *string diff --git a/service/rds/api_op_DescribeDBParameterGroups.go b/service/rds/api_op_DescribeDBParameterGroups.go index 7f0b4601d4c..de187084538 100644 --- a/service/rds/api_op_DescribeDBParameterGroups.go +++ b/service/rds/api_op_DescribeDBParameterGroups.go @@ -39,7 +39,7 @@ type DescribeDBParameterGroupsInput struct { DBParameterGroupName *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBParameterGroups // request. If this parameter is specified, the response includes only records @@ -58,7 +58,7 @@ type DescribeDBParameterGroupsInput struct { type DescribeDBParameterGroupsOutput struct { // A list of DBParameterGroup instances. - DBParameterGroups []*types.DBParameterGroup + DBParameterGroups []types.DBParameterGroup // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/rds/api_op_DescribeDBParameters.go b/service/rds/api_op_DescribeDBParameters.go index e79eef71955..40b8445e925 100644 --- a/service/rds/api_op_DescribeDBParameters.go +++ b/service/rds/api_op_DescribeDBParameters.go @@ -38,7 +38,7 @@ type DescribeDBParametersInput struct { DBParameterGroupName *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBParameters // request. If this parameter is specified, the response includes only records @@ -66,7 +66,7 @@ type DescribeDBParametersOutput struct { Marker *string // A list of Parameter values. - Parameters []*types.Parameter + Parameters []types.Parameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_DescribeDBProxies.go b/service/rds/api_op_DescribeDBProxies.go index 15941f74a81..e5ff02933ff 100644 --- a/service/rds/api_op_DescribeDBProxies.go +++ b/service/rds/api_op_DescribeDBProxies.go @@ -33,7 +33,7 @@ type DescribeDBProxiesInput struct { DBProxyName *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -50,7 +50,7 @@ type DescribeDBProxiesInput struct { type DescribeDBProxiesOutput struct { // A return value representing an arbitrary number of DBProxy data structures. - DBProxies []*types.DBProxy + DBProxies []types.DBProxy // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/rds/api_op_DescribeDBProxyTargetGroups.go b/service/rds/api_op_DescribeDBProxyTargetGroups.go index 056e4ad94a7..5b65c23899d 100644 --- a/service/rds/api_op_DescribeDBProxyTargetGroups.go +++ b/service/rds/api_op_DescribeDBProxyTargetGroups.go @@ -36,7 +36,7 @@ type DescribeDBProxyTargetGroupsInput struct { DBProxyName *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -62,7 +62,7 @@ type DescribeDBProxyTargetGroupsOutput struct { // An arbitrary number of DBProxyTargetGroup objects, containing details of the // corresponding target groups. - TargetGroups []*types.DBProxyTargetGroup + TargetGroups []types.DBProxyTargetGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_DescribeDBProxyTargets.go b/service/rds/api_op_DescribeDBProxyTargets.go index f2ef0ab06b6..dd3d5be080e 100644 --- a/service/rds/api_op_DescribeDBProxyTargets.go +++ b/service/rds/api_op_DescribeDBProxyTargets.go @@ -35,7 +35,7 @@ type DescribeDBProxyTargetsInput struct { DBProxyName *string // This parameter is not currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -61,7 +61,7 @@ type DescribeDBProxyTargetsOutput struct { // An arbitrary number of DBProxyTarget objects, containing details of the // corresponding targets. - Targets []*types.DBProxyTarget + Targets []types.DBProxyTarget // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_DescribeDBSecurityGroups.go b/service/rds/api_op_DescribeDBSecurityGroups.go index 478be788ef1..505bdeec534 100644 --- a/service/rds/api_op_DescribeDBSecurityGroups.go +++ b/service/rds/api_op_DescribeDBSecurityGroups.go @@ -36,7 +36,7 @@ type DescribeDBSecurityGroupsInput struct { DBSecurityGroupName *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBSecurityGroups // request. If this parameter is specified, the response includes only records @@ -55,7 +55,7 @@ type DescribeDBSecurityGroupsInput struct { type DescribeDBSecurityGroupsOutput struct { // A list of DBSecurityGroup instances. - DBSecurityGroups []*types.DBSecurityGroup + DBSecurityGroups []types.DBSecurityGroup // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/rds/api_op_DescribeDBSnapshots.go b/service/rds/api_op_DescribeDBSnapshots.go index 4aee3087886..6f9598e4c31 100644 --- a/service/rds/api_op_DescribeDBSnapshots.go +++ b/service/rds/api_op_DescribeDBSnapshots.go @@ -68,20 +68,20 @@ type DescribeDBSnapshotsInput struct { // // * engine - Accepts names of // database engines. - Filters []*types.Filter + Filters []types.Filter // A value that indicates whether to include manual DB cluster snapshots that are // public and can be copied or restored by any AWS account. By default, the public // snapshots are not included. You can share a manual DB snapshot as public by // using the ModifyDBSnapshotAttribute API. - IncludePublic *bool + IncludePublic bool // A value that indicates whether to include shared manual DB cluster snapshots // from other AWS accounts that this AWS account has been given permission to copy // or restore. By default, these snapshots are not included. You can give an AWS // account permission to restore a manual DB snapshot from another AWS account by // using the ModifyDBSnapshotAttribute API action. - IncludeShared *bool + IncludeShared bool // An optional pagination token provided by a previous DescribeDBSnapshots request. // If this parameter is specified, the response includes only records beyond the @@ -132,7 +132,7 @@ type DescribeDBSnapshotsInput struct { type DescribeDBSnapshotsOutput struct { // A list of DBSnapshot instances. - DBSnapshots []*types.DBSnapshot + DBSnapshots []types.DBSnapshot // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/rds/api_op_DescribeDBSubnetGroups.go b/service/rds/api_op_DescribeDBSubnetGroups.go index bdf811da758..98d5d1c340e 100644 --- a/service/rds/api_op_DescribeDBSubnetGroups.go +++ b/service/rds/api_op_DescribeDBSubnetGroups.go @@ -37,7 +37,7 @@ type DescribeDBSubnetGroupsInput struct { DBSubnetGroupName *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeDBSubnetGroups // request. If this parameter is specified, the response includes only records @@ -56,7 +56,7 @@ type DescribeDBSubnetGroupsInput struct { type DescribeDBSubnetGroupsOutput struct { // A list of DBSubnetGroup instances. - DBSubnetGroups []*types.DBSubnetGroup + DBSubnetGroups []types.DBSubnetGroup // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the diff --git a/service/rds/api_op_DescribeEngineDefaultClusterParameters.go b/service/rds/api_op_DescribeEngineDefaultClusterParameters.go index 74db04c180e..d0b36ec72b5 100644 --- a/service/rds/api_op_DescribeEngineDefaultClusterParameters.go +++ b/service/rds/api_op_DescribeEngineDefaultClusterParameters.go @@ -41,7 +41,7 @@ type DescribeEngineDefaultClusterParametersInput struct { DBParameterGroupFamily *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous // DescribeEngineDefaultClusterParameters request. If this parameter is specified, diff --git a/service/rds/api_op_DescribeEngineDefaultParameters.go b/service/rds/api_op_DescribeEngineDefaultParameters.go index 92e2f140063..d7b26e601c3 100644 --- a/service/rds/api_op_DescribeEngineDefaultParameters.go +++ b/service/rds/api_op_DescribeEngineDefaultParameters.go @@ -37,7 +37,7 @@ type DescribeEngineDefaultParametersInput struct { DBParameterGroupFamily *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous // DescribeEngineDefaultParameters request. If this parameter is specified, the diff --git a/service/rds/api_op_DescribeEventCategories.go b/service/rds/api_op_DescribeEventCategories.go index 90facb8e3b3..ba9143b2987 100644 --- a/service/rds/api_op_DescribeEventCategories.go +++ b/service/rds/api_op_DescribeEventCategories.go @@ -35,7 +35,7 @@ func (c *Client) DescribeEventCategories(ctx context.Context, params *DescribeEv type DescribeEventCategoriesInput struct { // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // The type of source that is generating the events. Valid values: db-instance | // db-cluster | db-parameter-group | db-security-group | db-snapshot | @@ -47,7 +47,7 @@ type DescribeEventCategoriesInput struct { type DescribeEventCategoriesOutput struct { // A list of EventCategoriesMap data types. - EventCategoriesMapList []*types.EventCategoriesMap + EventCategoriesMapList []types.EventCategoriesMap // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_DescribeEventSubscriptions.go b/service/rds/api_op_DescribeEventSubscriptions.go index 58077516c0e..9103ef51c33 100644 --- a/service/rds/api_op_DescribeEventSubscriptions.go +++ b/service/rds/api_op_DescribeEventSubscriptions.go @@ -34,7 +34,7 @@ func (c *Client) DescribeEventSubscriptions(ctx context.Context, params *Describ type DescribeEventSubscriptionsInput struct { // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous // DescribeOrderableDBInstanceOptions request. If this parameter is specified, the @@ -56,7 +56,7 @@ type DescribeEventSubscriptionsInput struct { type DescribeEventSubscriptionsOutput struct { // A list of EventSubscriptions data types. - EventSubscriptionsList []*types.EventSubscription + EventSubscriptionsList []types.EventSubscription // An optional pagination token provided by a previous // DescribeOrderableDBInstanceOptions request. If this parameter is specified, the diff --git a/service/rds/api_op_DescribeEvents.go b/service/rds/api_op_DescribeEvents.go index ec31909db69..9d14c8b26a5 100644 --- a/service/rds/api_op_DescribeEvents.go +++ b/service/rds/api_op_DescribeEvents.go @@ -46,10 +46,10 @@ type DescribeEventsInput struct { // A list of event categories that trigger notifications for a event notification // subscription. - EventCategories []*string + EventCategories []string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeEvents request. If // this parameter is specified, the response includes only records beyond the @@ -105,7 +105,7 @@ type DescribeEventsInput struct { type DescribeEventsOutput struct { // A list of Event instances. - Events []*types.Event + Events []types.Event // An optional pagination token provided by a previous Events request. If this // parameter is specified, the response includes only records beyond the marker, up diff --git a/service/rds/api_op_DescribeExportTasks.go b/service/rds/api_op_DescribeExportTasks.go index f34c4982371..39d031a7315 100644 --- a/service/rds/api_op_DescribeExportTasks.go +++ b/service/rds/api_op_DescribeExportTasks.go @@ -48,7 +48,7 @@ type DescribeExportTasksInput struct { // // * status - // The status of the export task. Must be lowercase, for example, complete. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeExportTasks request. // If you specify this parameter, the response includes only records beyond the @@ -69,7 +69,7 @@ type DescribeExportTasksInput struct { type DescribeExportTasksOutput struct { // Information about an export of a snapshot to Amazon S3. - ExportTasks []*types.ExportTask + ExportTasks []types.ExportTask // A pagination token that can be used in a later DescribeExportTasks request. A // marker is used for pagination to identify the location to begin output for the diff --git a/service/rds/api_op_DescribeGlobalClusters.go b/service/rds/api_op_DescribeGlobalClusters.go index a3541ea9228..ddfa8ea37f3 100644 --- a/service/rds/api_op_DescribeGlobalClusters.go +++ b/service/rds/api_op_DescribeGlobalClusters.go @@ -38,7 +38,7 @@ type DescribeGlobalClustersInput struct { // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon // Resource Names (ARNs). The results list will only include information about the // DB clusters identified by these ARNs. - Filters []*types.Filter + Filters []types.Filter // The user-supplied DB cluster identifier. If this parameter is specified, // information from only the specific DB cluster is returned. This parameter isn't @@ -63,7 +63,7 @@ type DescribeGlobalClustersInput struct { type DescribeGlobalClustersOutput struct { // The list of global clusters returned by this request. - GlobalClusters []*types.GlobalCluster + GlobalClusters []types.GlobalCluster // An optional pagination token provided by a previous DescribeGlobalClusters // request. If this parameter is specified, the response includes only records diff --git a/service/rds/api_op_DescribeInstallationMedia.go b/service/rds/api_op_DescribeInstallationMedia.go index 172ee486c1e..25ab296388c 100644 --- a/service/rds/api_op_DescribeInstallationMedia.go +++ b/service/rds/api_op_DescribeInstallationMedia.go @@ -41,7 +41,7 @@ type DescribeInstallationMediaInput struct { // database engines. The results list includes information about only the database // engines identified by these identifiers. For more information about the valid // engines for installation media, see ImportInstallationMedia. - Filters []*types.Filter + Filters []types.Filter // The installation medium ID. InstallationMediaId *string @@ -60,7 +60,7 @@ type DescribeInstallationMediaInput struct { type DescribeInstallationMediaOutput struct { // The list of InstallationMedia objects for the AWS account. - InstallationMedia []*types.InstallationMedia + InstallationMedia []types.InstallationMedia // An optional pagination token provided by a previous DescribeInstallationMedia // request. If this parameter is specified, the response includes only records diff --git a/service/rds/api_op_DescribeOptionGroupOptions.go b/service/rds/api_op_DescribeOptionGroupOptions.go index 7142748ff89..e2e36bc9cde 100644 --- a/service/rds/api_op_DescribeOptionGroupOptions.go +++ b/service/rds/api_op_DescribeOptionGroupOptions.go @@ -36,7 +36,7 @@ type DescribeOptionGroupOptionsInput struct { EngineName *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // If specified, filters the results to include only options for the specified // major engine version. @@ -63,7 +63,7 @@ type DescribeOptionGroupOptionsOutput struct { Marker *string // List of available option group options. - OptionGroupOptions []*types.OptionGroupOption + OptionGroupOptions []types.OptionGroupOption // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_DescribeOptionGroups.go b/service/rds/api_op_DescribeOptionGroups.go index 5d054577c6d..2beb1252c16 100644 --- a/service/rds/api_op_DescribeOptionGroups.go +++ b/service/rds/api_op_DescribeOptionGroups.go @@ -35,7 +35,7 @@ type DescribeOptionGroupsInput struct { EngineName *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // Filters the list of option groups to only include groups associated with a // specific database engine version. If specified, then EngineName must also be @@ -67,7 +67,7 @@ type DescribeOptionGroupsOutput struct { Marker *string // List of option groups. - OptionGroupsList []*types.OptionGroup + OptionGroupsList []types.OptionGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_DescribeOrderableDBInstanceOptions.go b/service/rds/api_op_DescribeOrderableDBInstanceOptions.go index 038e515f6ba..14d40eb84ff 100644 --- a/service/rds/api_op_DescribeOrderableDBInstanceOptions.go +++ b/service/rds/api_op_DescribeOrderableDBInstanceOptions.go @@ -49,7 +49,7 @@ type DescribeOrderableDBInstanceOptionsInput struct { EngineVersion *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // The license model filter value. Specify this parameter to show only the // available offerings matching the specified license model. @@ -82,7 +82,7 @@ type DescribeOrderableDBInstanceOptionsOutput struct { // An OrderableDBInstanceOption structure containing information about orderable // options for the DB instance. - OrderableDBInstanceOptions []*types.OrderableDBInstanceOption + OrderableDBInstanceOptions []types.OrderableDBInstanceOption // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_DescribePendingMaintenanceActions.go b/service/rds/api_op_DescribePendingMaintenanceActions.go index 74977e79824..d7e09b4b27c 100644 --- a/service/rds/api_op_DescribePendingMaintenanceActions.go +++ b/service/rds/api_op_DescribePendingMaintenanceActions.go @@ -42,7 +42,7 @@ type DescribePendingMaintenanceActionsInput struct { // * db-instance-id - Accepts DB instance identifiers and DB instance ARNs. // The results list will only include pending maintenance actions for the DB // instances identified by these ARNs. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous // DescribePendingMaintenanceActions request. If this parameter is specified, the @@ -70,7 +70,7 @@ type DescribePendingMaintenanceActionsOutput struct { Marker *string // A list of the pending maintenance actions for the resource. - PendingMaintenanceActions []*types.ResourcePendingMaintenanceActions + PendingMaintenanceActions []types.ResourcePendingMaintenanceActions // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_DescribeReservedDBInstances.go b/service/rds/api_op_DescribeReservedDBInstances.go index bddce01fc68..8bc248876bb 100644 --- a/service/rds/api_op_DescribeReservedDBInstances.go +++ b/service/rds/api_op_DescribeReservedDBInstances.go @@ -41,7 +41,7 @@ type DescribeReservedDBInstancesInput struct { Duration *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // The lease identifier filter value. Specify this parameter to show only the // reservation that matches the specified lease ID. AWS Support might request the @@ -91,7 +91,7 @@ type DescribeReservedDBInstancesOutput struct { Marker *string // A list of reserved DB instances. - ReservedDBInstances []*types.ReservedDBInstance + ReservedDBInstances []types.ReservedDBInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_DescribeReservedDBInstancesOfferings.go b/service/rds/api_op_DescribeReservedDBInstancesOfferings.go index 236d02d47ca..45a05c971e4 100644 --- a/service/rds/api_op_DescribeReservedDBInstancesOfferings.go +++ b/service/rds/api_op_DescribeReservedDBInstancesOfferings.go @@ -40,7 +40,7 @@ type DescribeReservedDBInstancesOfferingsInput struct { Duration *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to the @@ -83,7 +83,7 @@ type DescribeReservedDBInstancesOfferingsOutput struct { Marker *string // A list of reserved DB instance offerings. - ReservedDBInstancesOfferings []*types.ReservedDBInstancesOffering + ReservedDBInstancesOfferings []types.ReservedDBInstancesOffering // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_DescribeSourceRegions.go b/service/rds/api_op_DescribeSourceRegions.go index 5ccc1ff072b..bef92028f0d 100644 --- a/service/rds/api_op_DescribeSourceRegions.go +++ b/service/rds/api_op_DescribeSourceRegions.go @@ -32,7 +32,7 @@ func (c *Client) DescribeSourceRegions(ctx context.Context, params *DescribeSour type DescribeSourceRegionsInput struct { // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter // An optional pagination token provided by a previous DescribeSourceRegions // request. If this parameter is specified, the response includes only records @@ -63,7 +63,7 @@ type DescribeSourceRegionsOutput struct { // A list of SourceRegion instances that contains each source AWS Region that the // current AWS Region can get a read replica or a DB snapshot from. - SourceRegions []*types.SourceRegion + SourceRegions []types.SourceRegion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_DownloadDBLogFilePortion.go b/service/rds/api_op_DownloadDBLogFilePortion.go index 5be517124b9..74e4d9c0628 100644 --- a/service/rds/api_op_DownloadDBLogFilePortion.go +++ b/service/rds/api_op_DownloadDBLogFilePortion.go @@ -71,14 +71,14 @@ type DownloadDBLogFilePortionInput struct { // parameter in your first request. Include the Marker value returned in the // response as the Marker value for the next request, continuing until the // AdditionalDataPending response element returns false. - NumberOfLines *int32 + NumberOfLines int32 } // This data type is used as a response element to DownloadDBLogFilePortion. type DownloadDBLogFilePortionOutput struct { // Boolean value that if true, indicates there is more data to be downloaded. - AdditionalDataPending *bool + AdditionalDataPending bool // Entries from the specified log file. LogFileData *string diff --git a/service/rds/api_op_ListTagsForResource.go b/service/rds/api_op_ListTagsForResource.go index 1f06d60fc6d..9ea632b2887 100644 --- a/service/rds/api_op_ListTagsForResource.go +++ b/service/rds/api_op_ListTagsForResource.go @@ -43,14 +43,14 @@ type ListTagsForResourceInput struct { ResourceName *string // This parameter isn't currently supported. - Filters []*types.Filter + Filters []types.Filter } // type ListTagsForResourceOutput struct { // List of tags returned by the ListTagsForResource operation. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_ModifyDBCluster.go b/service/rds/api_op_ModifyDBCluster.go index d5104fd1d07..55041894ba0 100644 --- a/service/rds/api_op_ModifyDBCluster.go +++ b/service/rds/api_op_ModifyDBCluster.go @@ -46,7 +46,7 @@ type ModifyDBClusterInput struct { // You must allow major version upgrades when specifying a value for the // EngineVersion parameter that is a different major version than the DB cluster's // current version. - AllowMajorVersionUpgrade *bool + AllowMajorVersionUpgrade bool // A value that indicates whether the modifications in this request and any pending // modifications are asynchronously applied as soon as possible, regardless of the @@ -59,7 +59,7 @@ type ModifyDBClusterInput struct { // values are applied during the next maintenance window. All other changes are // applied immediately, regardless of the value of the ApplyImmediately parameter. // By default, this parameter is disabled. - ApplyImmediately *bool + ApplyImmediately bool // The target backtrack window, in seconds. To disable backtracking, set this value // to 0. Currently, Backtrack is only supported for Aurora MySQL DB clusters. @@ -222,7 +222,7 @@ type ModifyDBClusterInput struct { ScalingConfiguration *types.ScalingConfiguration // A list of VPC security groups that the DB cluster will belong to. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type ModifyDBClusterOutput struct { diff --git a/service/rds/api_op_ModifyDBClusterEndpoint.go b/service/rds/api_op_ModifyDBClusterEndpoint.go index e6b83430b2f..9d9b56bfddf 100644 --- a/service/rds/api_op_ModifyDBClusterEndpoint.go +++ b/service/rds/api_op_ModifyDBClusterEndpoint.go @@ -41,10 +41,10 @@ type ModifyDBClusterEndpointInput struct { // List of DB instance identifiers that aren't part of the custom endpoint group. // All other eligible instances are reachable through the custom endpoint. Only // relevant if the list of static members is empty. - ExcludedMembers []*string + ExcludedMembers []string // List of DB instance identifiers that are part of the custom endpoint group. - StaticMembers []*string + StaticMembers []string } // This data type represents the information you need to connect to an Amazon @@ -91,10 +91,10 @@ type ModifyDBClusterEndpointOutput struct { // List of DB instance identifiers that aren't part of the custom endpoint group. // All other eligible instances are reachable through the custom endpoint. Only // relevant if the list of static members is empty. - ExcludedMembers []*string + ExcludedMembers []string // List of DB instance identifiers that are part of the custom endpoint group. - StaticMembers []*string + StaticMembers []string // The current status of the endpoint. One of: creating, available, deleting, // inactive, modifying. The inactive state applies to an endpoint that can't be diff --git a/service/rds/api_op_ModifyDBClusterParameterGroup.go b/service/rds/api_op_ModifyDBClusterParameterGroup.go index ed6af701899..443b1365ae8 100644 --- a/service/rds/api_op_ModifyDBClusterParameterGroup.go +++ b/service/rds/api_op_ModifyDBClusterParameterGroup.go @@ -60,7 +60,7 @@ type ModifyDBClusterParameterGroupInput struct { // A list of parameters in the DB cluster parameter group to modify. // // This member is required. - Parameters []*types.Parameter + Parameters []types.Parameter } // diff --git a/service/rds/api_op_ModifyDBClusterSnapshotAttribute.go b/service/rds/api_op_ModifyDBClusterSnapshotAttribute.go index 2609fdd9bbb..6cdde362ea2 100644 --- a/service/rds/api_op_ModifyDBClusterSnapshotAttribute.go +++ b/service/rds/api_op_ModifyDBClusterSnapshotAttribute.go @@ -64,7 +64,7 @@ type ModifyDBClusterSnapshotAttributeInput struct { // to make the manual DB cluster snapshot restorable by any AWS account. Do not add // the all value for any manual DB cluster snapshots that contain private // information that you don't want available to all AWS accounts. - ValuesToAdd []*string + ValuesToAdd []string // A list of DB cluster snapshot attributes to remove from the attribute specified // by AttributeName. To remove authorization for other AWS accounts to copy or @@ -73,7 +73,7 @@ type ModifyDBClusterSnapshotAttributeInput struct { // or restore the DB cluster snapshot. If you specify all, an AWS account whose // account ID is explicitly added to the restore attribute can still copy or // restore a manual DB cluster snapshot. - ValuesToRemove []*string + ValuesToRemove []string } type ModifyDBClusterSnapshotAttributeOutput struct { diff --git a/service/rds/api_op_ModifyDBInstance.go b/service/rds/api_op_ModifyDBInstance.go index 8c2ddb1a628..a5806ac0df8 100644 --- a/service/rds/api_op_ModifyDBInstance.go +++ b/service/rds/api_op_ModifyDBInstance.go @@ -54,7 +54,7 @@ type ModifyDBInstanceInput struct { // as soon as possible. Constraints: Major version upgrades must be allowed when // specifying a value for the EngineVersion parameter that is a different major // version than the DB instance's current version. - AllowMajorVersionUpgrade *bool + AllowMajorVersionUpgrade bool // A value that indicates whether the modifications in this request and any pending // modifications are asynchronously applied as soon as possible, regardless of the @@ -67,7 +67,7 @@ type ModifyDBInstanceInput struct { // in the Amazon RDS User Guide. to see the impact of enabling or disabling // ApplyImmediately for each modified parameter and to determine when the changes // are applied. - ApplyImmediately *bool + ApplyImmediately bool // A value that indicates whether minor version upgrades are applied automatically // to the DB instance during the maintenance window. Changing this parameter @@ -175,7 +175,7 @@ type ModifyDBInstanceInput struct { // // * If supplied, must match existing // DBSecurityGroups. - DBSecurityGroups []*string + DBSecurityGroups []string // The new DB subnet group for the DB instance. You can use this parameter to move // your DB instance to a different VPC. If your DB instance isn't in a VPC, you can @@ -376,7 +376,7 @@ type ModifyDBInstanceInput struct { // The number of CPU cores and the number of threads per core for the DB instance // class of the DB instance. - ProcessorFeatures []*types.ProcessorFeature + ProcessorFeatures []types.ProcessorFeature // A value that specifies the order in which an Aurora Replica is promoted to the // primary instance after a failure of the existing primary instance. For more @@ -447,7 +447,7 @@ type ModifyDBInstanceInput struct { // // * If supplied, must match // existing VpcSecurityGroupIds. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type ModifyDBInstanceOutput struct { diff --git a/service/rds/api_op_ModifyDBParameterGroup.go b/service/rds/api_op_ModifyDBParameterGroup.go index a3c04ce8fc3..17dd8b07e57 100644 --- a/service/rds/api_op_ModifyDBParameterGroup.go +++ b/service/rds/api_op_ModifyDBParameterGroup.go @@ -62,7 +62,7 @@ type ModifyDBParameterGroupInput struct { // changes are applied when you reboot the DB instance without failover. // // This member is required. - Parameters []*types.Parameter + Parameters []types.Parameter } // Contains the result of a successful invocation of the ModifyDBParameterGroup or diff --git a/service/rds/api_op_ModifyDBProxy.go b/service/rds/api_op_ModifyDBProxy.go index d1a59facb97..af5b710b147 100644 --- a/service/rds/api_op_ModifyDBProxy.go +++ b/service/rds/api_op_ModifyDBProxy.go @@ -35,7 +35,7 @@ type ModifyDBProxyInput struct { DBProxyName *string // The new authentication settings for the DBProxy. - Auth []*types.UserAuthConfig + Auth []types.UserAuthConfig // Whether the proxy includes detailed information about SQL statements in its // logs. This information helps you to debug issues involving SQL behavior or the @@ -66,7 +66,7 @@ type ModifyDBProxyInput struct { RoleArn *string // The new list of security groups for the DBProxy. - SecurityGroups []*string + SecurityGroups []string } type ModifyDBProxyOutput struct { diff --git a/service/rds/api_op_ModifyDBSnapshotAttribute.go b/service/rds/api_op_ModifyDBSnapshotAttribute.go index 0419cc57d2f..f15f4c68218 100644 --- a/service/rds/api_op_ModifyDBSnapshotAttribute.go +++ b/service/rds/api_op_ModifyDBSnapshotAttribute.go @@ -62,7 +62,7 @@ type ModifyDBSnapshotAttributeInput struct { // the manual DB snapshot restorable by any AWS account. Do not add the all value // for any manual DB snapshots that contain private information that you don't want // available to all AWS accounts. - ValuesToAdd []*string + ValuesToAdd []string // A list of DB snapshot attributes to remove from the attribute specified by // AttributeName. To remove authorization for other AWS accounts to copy or restore @@ -70,7 +70,7 @@ type ModifyDBSnapshotAttributeInput struct { // or all to remove authorization for any AWS account to copy or restore the DB // snapshot. If you specify all, an AWS account whose account ID is explicitly // added to the restore attribute can still copy or restore the manual DB snapshot. - ValuesToRemove []*string + ValuesToRemove []string } type ModifyDBSnapshotAttributeOutput struct { diff --git a/service/rds/api_op_ModifyDBSubnetGroup.go b/service/rds/api_op_ModifyDBSubnetGroup.go index 9b068e35491..9aaff8ffa8d 100644 --- a/service/rds/api_op_ModifyDBSubnetGroup.go +++ b/service/rds/api_op_ModifyDBSubnetGroup.go @@ -41,7 +41,7 @@ type ModifyDBSubnetGroupInput struct { // The EC2 subnet IDs for the DB subnet group. // // This member is required. - SubnetIds []*string + SubnetIds []string // The description for the DB subnet group. DBSubnetGroupDescription *string diff --git a/service/rds/api_op_ModifyEventSubscription.go b/service/rds/api_op_ModifyEventSubscription.go index 8256b8706e6..7e36b6ae122 100644 --- a/service/rds/api_op_ModifyEventSubscription.go +++ b/service/rds/api_op_ModifyEventSubscription.go @@ -48,7 +48,7 @@ type ModifyEventSubscriptionInput struct { // subscribe to. You can see a list of the categories for a given source type in // Events (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html) // in the Amazon RDS User Guide or by using the DescribeEventCategories operation. - EventCategories []*string + EventCategories []string // The Amazon Resource Name (ARN) of the SNS topic created for event notification. // The ARN is created by Amazon SNS when you create a topic and subscribe to it. diff --git a/service/rds/api_op_ModifyOptionGroup.go b/service/rds/api_op_ModifyOptionGroup.go index 1a7f1edd8b4..67674357aa1 100644 --- a/service/rds/api_op_ModifyOptionGroup.go +++ b/service/rds/api_op_ModifyOptionGroup.go @@ -40,14 +40,14 @@ type ModifyOptionGroupInput struct { // A value that indicates whether to apply the change immediately or during the // next maintenance window for each instance associated with the option group. - ApplyImmediately *bool + ApplyImmediately bool // Options in this list are added to the option group or, if already present, the // specified configuration is used to update the existing configuration. - OptionsToInclude []*types.OptionConfiguration + OptionsToInclude []types.OptionConfiguration // Options in this list are removed from the option group. - OptionsToRemove []*string + OptionsToRemove []string } type ModifyOptionGroupOutput struct { diff --git a/service/rds/api_op_PurchaseReservedDBInstancesOffering.go b/service/rds/api_op_PurchaseReservedDBInstancesOffering.go index 481184a1e13..d380dd9ea4e 100644 --- a/service/rds/api_op_PurchaseReservedDBInstancesOffering.go +++ b/service/rds/api_op_PurchaseReservedDBInstancesOffering.go @@ -46,7 +46,7 @@ type PurchaseReservedDBInstancesOfferingInput struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag } type PurchaseReservedDBInstancesOfferingOutput struct { diff --git a/service/rds/api_op_RegisterDBProxyTargets.go b/service/rds/api_op_RegisterDBProxyTargets.go index e2acd1ecf3d..14e17317c58 100644 --- a/service/rds/api_op_RegisterDBProxyTargets.go +++ b/service/rds/api_op_RegisterDBProxyTargets.go @@ -35,10 +35,10 @@ type RegisterDBProxyTargetsInput struct { DBProxyName *string // One or more DB cluster identifiers. - DBClusterIdentifiers []*string + DBClusterIdentifiers []string // One or more DB instance identifiers. - DBInstanceIdentifiers []*string + DBInstanceIdentifiers []string // The identifier of the DBProxyTargetGroup. TargetGroupName *string @@ -48,7 +48,7 @@ type RegisterDBProxyTargetsOutput struct { // One or more DBProxyTarget objects that are created when you register targets // with a target group. - DBProxyTargets []*types.DBProxyTarget + DBProxyTargets []types.DBProxyTarget // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rds/api_op_RemoveTagsFromResource.go b/service/rds/api_op_RemoveTagsFromResource.go index c5bc8bbc584..4bf1fc8c97d 100644 --- a/service/rds/api_op_RemoveTagsFromResource.go +++ b/service/rds/api_op_RemoveTagsFromResource.go @@ -44,7 +44,7 @@ type RemoveTagsFromResourceInput struct { // The tag key (name) of the tag to be removed. // // This member is required. - TagKeys []*string + TagKeys []string } type RemoveTagsFromResourceOutput struct { diff --git a/service/rds/api_op_ResetDBClusterParameterGroup.go b/service/rds/api_op_ResetDBClusterParameterGroup.go index 4dd12e7ad19..676e5232b17 100644 --- a/service/rds/api_op_ResetDBClusterParameterGroup.go +++ b/service/rds/api_op_ResetDBClusterParameterGroup.go @@ -50,12 +50,12 @@ type ResetDBClusterParameterGroupInput struct { // A list of parameter names in the DB cluster parameter group to reset to the // default values. You can't use this parameter if the ResetAllParameters parameter // is enabled. - Parameters []*types.Parameter + Parameters []types.Parameter // A value that indicates whether to reset all parameters in the DB cluster // parameter group to their default values. You can't use this parameter if there // is a list of parameter names specified for the Parameters parameter. - ResetAllParameters *bool + ResetAllParameters bool } // diff --git a/service/rds/api_op_ResetDBParameterGroup.go b/service/rds/api_op_ResetDBParameterGroup.go index a161e87b569..561e42b108f 100644 --- a/service/rds/api_op_ResetDBParameterGroup.go +++ b/service/rds/api_op_ResetDBParameterGroup.go @@ -55,12 +55,12 @@ type ResetDBParameterGroupInput struct { // parameters only. You can use the pending-reboot value for both dynamic and // static parameters, and changes are applied when DB instance reboots. Oracle // Valid Values (for Apply method): pending-reboot - Parameters []*types.Parameter + Parameters []types.Parameter // A value that indicates whether to reset all parameters in the DB parameter group // to default values. By default, all parameters in the DB parameter group are // reset to default values. - ResetAllParameters *bool + ResetAllParameters bool } // Contains the result of a successful invocation of the ModifyDBParameterGroup or diff --git a/service/rds/api_op_RestoreDBClusterFromS3.go b/service/rds/api_op_RestoreDBClusterFromS3.go index 2bc01b09507..1b0a4cc5298 100644 --- a/service/rds/api_op_RestoreDBClusterFromS3.go +++ b/service/rds/api_op_RestoreDBClusterFromS3.go @@ -113,7 +113,7 @@ type RestoreDBClusterFromS3Input struct { // A list of Availability Zones (AZs) where instances in the restored DB cluster // can be created. - AvailabilityZones []*string + AvailabilityZones []string // The target backtrack window, in seconds. To disable backtracking, set this value // to 0. Currently, Backtrack is only supported for Aurora MySQL DB clusters. @@ -175,7 +175,7 @@ type RestoreDBClusterFromS3Input struct { // see Publishing Database Logs to Amazon CloudWatch Logs // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) // in the Amazon Aurora User Guide. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // A value that indicates whether to enable mapping of AWS Identity and Access // Management (IAM) accounts to database accounts. By default, mapping is disabled. @@ -260,10 +260,10 @@ type RestoreDBClusterFromS3Input struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag // A list of EC2 VPC security groups to associate with the restored DB cluster. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type RestoreDBClusterFromS3Output struct { diff --git a/service/rds/api_op_RestoreDBClusterFromSnapshot.go b/service/rds/api_op_RestoreDBClusterFromSnapshot.go index aee45794cc2..6c91bdecc1d 100644 --- a/service/rds/api_op_RestoreDBClusterFromSnapshot.go +++ b/service/rds/api_op_RestoreDBClusterFromSnapshot.go @@ -76,7 +76,7 @@ type RestoreDBClusterFromSnapshotInput struct { // Provides the list of Availability Zones (AZs) where instances in the restored DB // cluster can be created. - AvailabilityZones []*string + AvailabilityZones []string // The target backtrack window, in seconds. To disable backtracking, set this value // to 0. Currently, Backtrack is only supported for Aurora MySQL DB clusters. @@ -136,7 +136,7 @@ type RestoreDBClusterFromSnapshotInput struct { // information, see Publishing Database Logs to Amazon CloudWatch Logs // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) // in the Amazon Aurora User Guide. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // A value that indicates whether to enable mapping of AWS Identity and Access // Management (IAM) accounts to database accounts. By default, mapping is disabled. @@ -196,10 +196,10 @@ type RestoreDBClusterFromSnapshotInput struct { ScalingConfiguration *types.ScalingConfiguration // The tags to be assigned to the restored DB cluster. - Tags []*types.Tag + Tags []types.Tag // A list of VPC security groups that the new DB cluster will belong to. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type RestoreDBClusterFromSnapshotOutput struct { diff --git a/service/rds/api_op_RestoreDBClusterToPointInTime.go b/service/rds/api_op_RestoreDBClusterToPointInTime.go index ea53d929e11..27b9358f94c 100644 --- a/service/rds/api_op_RestoreDBClusterToPointInTime.go +++ b/service/rds/api_op_RestoreDBClusterToPointInTime.go @@ -119,7 +119,7 @@ type RestoreDBClusterToPointInTimeInput struct { // see Publishing Database Logs to Amazon CloudWatch Logs // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) // in the Amazon Aurora User Guide. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // A value that indicates whether to enable mapping of AWS Identity and Access // Management (IAM) accounts to database accounts. By default, mapping is disabled. @@ -193,16 +193,16 @@ type RestoreDBClusterToPointInTimeInput struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag // A value that indicates whether to restore the DB cluster to the latest // restorable backup time. By default, the DB cluster isn't restored to the latest // restorable backup time. Constraints: Can't be specified if RestoreToTime // parameter is provided. - UseLatestRestorableTime *bool + UseLatestRestorableTime bool // A list of VPC security groups that the new DB cluster belongs to. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type RestoreDBClusterToPointInTimeOutput struct { diff --git a/service/rds/api_op_RestoreDBInstanceFromDBSnapshot.go b/service/rds/api_op_RestoreDBInstanceFromDBSnapshot.go index 32402a26bfb..4808b7e5a62 100644 --- a/service/rds/api_op_RestoreDBInstanceFromDBSnapshot.go +++ b/service/rds/api_op_RestoreDBInstanceFromDBSnapshot.go @@ -145,7 +145,7 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // see Publishing Database Logs to Amazon CloudWatch Logs // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) // in the Amazon RDS User Guide. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // A value that indicates whether to enable mapping of AWS Identity and Access // Management (IAM) accounts to database accounts. By default, mapping is disabled. @@ -219,7 +219,7 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // The number of CPU cores and the number of threads per core for the DB instance // class of the DB instance. - ProcessorFeatures []*types.ProcessorFeature + ProcessorFeatures []types.ProcessorFeature // A value that indicates whether the DB instance is publicly accessible. When the // DB instance is publicly accessible, its DNS endpoint resolves to the private IP @@ -240,7 +240,7 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag // The ARN from the key store with which to associate the instance for TDE // encryption. @@ -255,7 +255,7 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // A list of EC2 VPC security groups to associate with this DB instance. Default: // The default EC2 VPC security group for the DB subnet group's VPC. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type RestoreDBInstanceFromDBSnapshotOutput struct { diff --git a/service/rds/api_op_RestoreDBInstanceFromS3.go b/service/rds/api_op_RestoreDBInstanceFromS3.go index 639fb49bb83..57784c550c8 100644 --- a/service/rds/api_op_RestoreDBInstanceFromS3.go +++ b/service/rds/api_op_RestoreDBInstanceFromS3.go @@ -131,7 +131,7 @@ type RestoreDBInstanceFromS3Input struct { // A list of DB security groups to associate with this DB instance. Default: The // default DB security group for the database engine. - DBSecurityGroups []*string + DBSecurityGroups []string // A DB subnet group to associate with this DB instance. DBSubnetGroupName *string @@ -148,7 +148,7 @@ type RestoreDBInstanceFromS3Input struct { // see Publishing Database Logs to Amazon CloudWatch Logs // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) // in the Amazon RDS User Guide. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // A value that indicates whether to enable mapping of AWS Identity and Access // Management (IAM) accounts to database accounts. By default, mapping is disabled. @@ -289,7 +289,7 @@ type RestoreDBInstanceFromS3Input struct { // The number of CPU cores and the number of threads per core for the DB instance // class of the DB instance. - ProcessorFeatures []*types.ProcessorFeature + ProcessorFeatures []types.ProcessorFeature // A value that indicates whether the DB instance is publicly accessible. When the // DB instance is publicly accessible, its DNS endpoint resolves to the private IP @@ -317,14 +317,14 @@ type RestoreDBInstanceFromS3Input struct { // Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag // A value that indicates whether the DB instance class of the DB instance uses its // default processor features. UseDefaultProcessorFeatures *bool // A list of VPC security groups to associate with this DB instance. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type RestoreDBInstanceFromS3Output struct { diff --git a/service/rds/api_op_RestoreDBInstanceToPointInTime.go b/service/rds/api_op_RestoreDBInstanceToPointInTime.go index e6c86d17e10..a5e64ef5e0c 100644 --- a/service/rds/api_op_RestoreDBInstanceToPointInTime.go +++ b/service/rds/api_op_RestoreDBInstanceToPointInTime.go @@ -125,7 +125,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // see Publishing Database Logs to Amazon CloudWatch Logs // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) // in the Amazon RDS User Guide. - EnableCloudwatchLogsExports []*string + EnableCloudwatchLogsExports []string // A value that indicates whether to enable mapping of AWS Identity and Access // Management (IAM) accounts to database accounts. By default, mapping is disabled. @@ -195,7 +195,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // The number of CPU cores and the number of threads per core for the DB instance // class of the DB instance. - ProcessorFeatures []*types.ProcessorFeature + ProcessorFeatures []types.ProcessorFeature // A value that indicates whether the DB instance is publicly accessible. When the // DB instance is publicly accessible, its DNS endpoint resolves to the private IP @@ -237,7 +237,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - Tags []*types.Tag + Tags []types.Tag // The ARN from the key store with which to associate the instance for TDE // encryption. @@ -253,11 +253,11 @@ type RestoreDBInstanceToPointInTimeInput struct { // A value that indicates whether the DB instance is restored from the latest // backup time. By default, the DB instance isn't restored from the latest backup // time. Constraints: Can't be specified if the RestoreTime parameter is provided. - UseLatestRestorableTime *bool + UseLatestRestorableTime bool // A list of EC2 VPC security groups to associate with this DB instance. Default: // The default EC2 VPC security group for the DB subnet group's VPC. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type RestoreDBInstanceToPointInTimeOutput struct { diff --git a/service/rds/api_op_StartActivityStream.go b/service/rds/api_op_StartActivityStream.go index b44e22e1728..85e42d3b315 100644 --- a/service/rds/api_op_StartActivityStream.go +++ b/service/rds/api_op_StartActivityStream.go @@ -60,7 +60,7 @@ type StartActivityStreamOutput struct { // Indicates whether or not the database activity stream will start as soon as // possible, regardless of the maintenance window for the database. - ApplyImmediately *bool + ApplyImmediately bool // The name of the Amazon Kinesis data stream to be used for the database activity // stream. diff --git a/service/rds/api_op_StartExportTask.go b/service/rds/api_op_StartExportTask.go index 9ce1490b982..56a0dfbcb62 100644 --- a/service/rds/api_op_StartExportTask.go +++ b/service/rds/api_op_StartExportTask.go @@ -101,7 +101,7 @@ type StartExportTaskInput struct { // * database.schema.table table-name - Export a // table of the database schema. This format is valid only for RDS for PostgreSQL // and Aurora PostgreSQL. - ExportOnly []*string + ExportOnly []string // The Amazon S3 bucket prefix to use as the file name and path of the exported // snapshot. @@ -128,7 +128,7 @@ type StartExportTaskOutput struct { // * database.schema.table table-name - Export a // table of the database schema. This format is valid only for RDS for PostgreSQL // and Aurora PostgreSQL. - ExportOnly []*string + ExportOnly []string // A unique identifier for the snapshot export task. This ID isn't an identifier // for the Amazon S3 bucket where the snapshot is exported to. @@ -149,7 +149,7 @@ type StartExportTaskOutput struct { KmsKeyId *string // The progress of the snapshot export task as a percentage. - PercentProgress *int32 + PercentProgress int32 // The Amazon S3 bucket that the snapshot is exported to. S3Bucket *string @@ -174,7 +174,7 @@ type StartExportTaskOutput struct { TaskStartTime *time.Time // The total amount of data exported, in gigabytes. - TotalExtractedDataInGB *int32 + TotalExtractedDataInGB int32 // A warning about the snapshot export task. WarningMessage *string diff --git a/service/rds/deserializers.go b/service/rds/deserializers.go index 0504ee0c7c1..3a65d2efd62 100644 --- a/service/rds/deserializers.go +++ b/service/rds/deserializers.go @@ -17388,7 +17388,7 @@ func awsAwsquery_deserializeDocumentAccountQuota(v **types.AccountQuota, decoder } if val != nil { xtv := string(val) - sv.AccountQuotaName = &xtv + sv.AccountQuotaName = ptr.String(xtv) } case strings.EqualFold("Max", t.Name.Local): @@ -17405,7 +17405,7 @@ func awsAwsquery_deserializeDocumentAccountQuota(v **types.AccountQuota, decoder if err != nil { return err } - sv.Max = &i64 + sv.Max = i64 } case strings.EqualFold("Used", t.Name.Local): @@ -17422,7 +17422,7 @@ func awsAwsquery_deserializeDocumentAccountQuota(v **types.AccountQuota, decoder if err != nil { return err } - sv.Used = &i64 + sv.Used = i64 } default: @@ -17435,13 +17435,13 @@ func awsAwsquery_deserializeDocumentAccountQuota(v **types.AccountQuota, decoder return nil } -func awsAwsquery_deserializeDocumentAccountQuotaList(v *[]*types.AccountQuota, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAccountQuotaList(v *[]types.AccountQuota, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AccountQuota + var sv []types.AccountQuota if *v == nil { - sv = make([]*types.AccountQuota, 0) + sv = make([]types.AccountQuota, 0) } else { sv = *v } @@ -17457,11 +17457,13 @@ func awsAwsquery_deserializeDocumentAccountQuotaList(v *[]*types.AccountQuota, d } for { if strings.EqualFold("AccountQuota", t.Name.Local) { - var col *types.AccountQuota + var col types.AccountQuota nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAccountQuota(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAccountQuota(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17474,35 +17476,37 @@ func awsAwsquery_deserializeDocumentAccountQuotaList(v *[]*types.AccountQuota, d return nil } -func awsAwsquery_deserializeDocumentAccountQuotaListUnwrapped(v *[]*types.AccountQuota, decoder smithyxml.NodeDecoder) error { - var sv []*types.AccountQuota +func awsAwsquery_deserializeDocumentAccountQuotaListUnwrapped(v *[]types.AccountQuota, decoder smithyxml.NodeDecoder) error { + var sv []types.AccountQuota if *v == nil { - sv = make([]*types.AccountQuota, 0) + sv = make([]types.AccountQuota, 0) } else { sv = *v } switch { default: - var mv *types.AccountQuota + var mv types.AccountQuota t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAccountQuota(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAccountQuota(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAttributeValueList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAttributeValueList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -17520,20 +17524,17 @@ func awsAwsquery_deserializeDocumentAttributeValueList(v *[]*string, decoder smi decoder = memberDecoder for { if strings.EqualFold("AttributeValue", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -17546,17 +17547,17 @@ func awsAwsquery_deserializeDocumentAttributeValueList(v *[]*string, decoder smi return nil } -func awsAwsquery_deserializeDocumentAttributeValueListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAttributeValueListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -17564,14 +17565,11 @@ func awsAwsquery_deserializeDocumentAttributeValueListUnwrapped(v *[]*string, de return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -17613,7 +17611,7 @@ func awsAwsquery_deserializeDocumentAuthorizationAlreadyExistsFault(v **types.Au } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17661,7 +17659,7 @@ func awsAwsquery_deserializeDocumentAuthorizationNotFoundFault(v **types.Authori } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17709,7 +17707,7 @@ func awsAwsquery_deserializeDocumentAuthorizationQuotaExceededFault(v **types.Au } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17757,7 +17755,7 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -17770,13 +17768,13 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, return nil } -func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]*types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AvailabilityZone + var sv []types.AvailabilityZone if *v == nil { - sv = make([]*types.AvailabilityZone, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } @@ -17792,11 +17790,13 @@ func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]*types.Availabilit } for { if strings.EqualFold("AvailabilityZone", t.Name.Local) { - var col *types.AvailabilityZone + var col types.AvailabilityZone nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZone(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17809,35 +17809,37 @@ func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]*types.Availabilit return nil } -func awsAwsquery_deserializeDocumentAvailabilityZoneListUnwrapped(v *[]*types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { - var sv []*types.AvailabilityZone +func awsAwsquery_deserializeDocumentAvailabilityZoneListUnwrapped(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { + var sv []types.AvailabilityZone if *v == nil { - sv = make([]*types.AvailabilityZone, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } switch { default: - var mv *types.AvailabilityZone + var mv types.AvailabilityZone t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZone(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -17855,20 +17857,17 @@ func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("AvailabilityZone", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -17881,17 +17880,17 @@ func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]*string, decoder smit return nil } -func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -17899,14 +17898,11 @@ func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -17948,7 +17944,7 @@ func awsAwsquery_deserializeDocumentAvailableProcessorFeature(v **types.Availabl } if val != nil { xtv := string(val) - sv.AllowedValues = &xtv + sv.AllowedValues = ptr.String(xtv) } case strings.EqualFold("DefaultValue", t.Name.Local): @@ -17964,7 +17960,7 @@ func awsAwsquery_deserializeDocumentAvailableProcessorFeature(v **types.Availabl } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -17980,7 +17976,7 @@ func awsAwsquery_deserializeDocumentAvailableProcessorFeature(v **types.Availabl } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -17993,13 +17989,13 @@ func awsAwsquery_deserializeDocumentAvailableProcessorFeature(v **types.Availabl return nil } -func awsAwsquery_deserializeDocumentAvailableProcessorFeatureList(v *[]*types.AvailableProcessorFeature, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailableProcessorFeatureList(v *[]types.AvailableProcessorFeature, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AvailableProcessorFeature + var sv []types.AvailableProcessorFeature if *v == nil { - sv = make([]*types.AvailableProcessorFeature, 0) + sv = make([]types.AvailableProcessorFeature, 0) } else { sv = *v } @@ -18015,11 +18011,13 @@ func awsAwsquery_deserializeDocumentAvailableProcessorFeatureList(v *[]*types.Av } for { if strings.EqualFold("AvailableProcessorFeature", t.Name.Local) { - var col *types.AvailableProcessorFeature + var col types.AvailableProcessorFeature nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailableProcessorFeature(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAvailableProcessorFeature(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18032,23 +18030,25 @@ func awsAwsquery_deserializeDocumentAvailableProcessorFeatureList(v *[]*types.Av return nil } -func awsAwsquery_deserializeDocumentAvailableProcessorFeatureListUnwrapped(v *[]*types.AvailableProcessorFeature, decoder smithyxml.NodeDecoder) error { - var sv []*types.AvailableProcessorFeature +func awsAwsquery_deserializeDocumentAvailableProcessorFeatureListUnwrapped(v *[]types.AvailableProcessorFeature, decoder smithyxml.NodeDecoder) error { + var sv []types.AvailableProcessorFeature if *v == nil { - sv = make([]*types.AvailableProcessorFeature, 0) + sv = make([]types.AvailableProcessorFeature, 0) } else { sv = *v } switch { default: - var mv *types.AvailableProcessorFeature + var mv types.AvailableProcessorFeature t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailableProcessorFeature(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAvailableProcessorFeature(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18089,7 +18089,7 @@ func awsAwsquery_deserializeDocumentBackupPolicyNotFoundFault(v **types.BackupPo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18137,7 +18137,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s } if val != nil { xtv := string(val) - sv.CertificateArn = &xtv + sv.CertificateArn = ptr.String(xtv) } case strings.EqualFold("CertificateIdentifier", t.Name.Local): @@ -18153,7 +18153,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s } if val != nil { xtv := string(val) - sv.CertificateIdentifier = &xtv + sv.CertificateIdentifier = ptr.String(xtv) } case strings.EqualFold("CertificateType", t.Name.Local): @@ -18169,7 +18169,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s } if val != nil { xtv := string(val) - sv.CertificateType = &xtv + sv.CertificateType = ptr.String(xtv) } case strings.EqualFold("CustomerOverride", t.Name.Local): @@ -18185,7 +18185,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.CustomerOverride = &xtv + sv.CustomerOverride = ptr.Bool(xtv) } case strings.EqualFold("CustomerOverrideValidTill", t.Name.Local): @@ -18202,7 +18202,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s if err != nil { return err } - sv.CustomerOverrideValidTill = &t + sv.CustomerOverrideValidTill = ptr.Time(t) } case strings.EqualFold("Thumbprint", t.Name.Local): @@ -18218,7 +18218,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s } if val != nil { xtv := string(val) - sv.Thumbprint = &xtv + sv.Thumbprint = ptr.String(xtv) } case strings.EqualFold("ValidFrom", t.Name.Local): @@ -18235,7 +18235,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s if err != nil { return err } - sv.ValidFrom = &t + sv.ValidFrom = ptr.Time(t) } case strings.EqualFold("ValidTill", t.Name.Local): @@ -18252,7 +18252,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s if err != nil { return err } - sv.ValidTill = &t + sv.ValidTill = ptr.Time(t) } default: @@ -18265,13 +18265,13 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s return nil } -func awsAwsquery_deserializeDocumentCertificateList(v *[]*types.Certificate, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCertificateList(v *[]types.Certificate, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Certificate + var sv []types.Certificate if *v == nil { - sv = make([]*types.Certificate, 0) + sv = make([]types.Certificate, 0) } else { sv = *v } @@ -18287,11 +18287,13 @@ func awsAwsquery_deserializeDocumentCertificateList(v *[]*types.Certificate, dec } for { if strings.EqualFold("Certificate", t.Name.Local) { - var col *types.Certificate + var col types.Certificate nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCertificate(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCertificate(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18304,23 +18306,25 @@ func awsAwsquery_deserializeDocumentCertificateList(v *[]*types.Certificate, dec return nil } -func awsAwsquery_deserializeDocumentCertificateListUnwrapped(v *[]*types.Certificate, decoder smithyxml.NodeDecoder) error { - var sv []*types.Certificate +func awsAwsquery_deserializeDocumentCertificateListUnwrapped(v *[]types.Certificate, decoder smithyxml.NodeDecoder) error { + var sv []types.Certificate if *v == nil { - sv = make([]*types.Certificate, 0) + sv = make([]types.Certificate, 0) } else { sv = *v } switch { default: - var mv *types.Certificate + var mv types.Certificate t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCertificate(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCertificate(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18361,7 +18365,7 @@ func awsAwsquery_deserializeDocumentCertificateNotFoundFault(v **types.Certifica } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18409,7 +18413,7 @@ func awsAwsquery_deserializeDocumentCharacterSet(v **types.CharacterSet, decoder } if val != nil { xtv := string(val) - sv.CharacterSetDescription = &xtv + sv.CharacterSetDescription = ptr.String(xtv) } case strings.EqualFold("CharacterSetName", t.Name.Local): @@ -18425,7 +18429,7 @@ func awsAwsquery_deserializeDocumentCharacterSet(v **types.CharacterSet, decoder } if val != nil { xtv := string(val) - sv.CharacterSetName = &xtv + sv.CharacterSetName = ptr.String(xtv) } default: @@ -18474,7 +18478,7 @@ func awsAwsquery_deserializeDocumentConnectionPoolConfigurationInfo(v **types.Co if err != nil { return err } - sv.ConnectionBorrowTimeout = ptr.Int32(int32(i64)) + sv.ConnectionBorrowTimeout = int32(i64) } case strings.EqualFold("InitQuery", t.Name.Local): @@ -18490,7 +18494,7 @@ func awsAwsquery_deserializeDocumentConnectionPoolConfigurationInfo(v **types.Co } if val != nil { xtv := string(val) - sv.InitQuery = &xtv + sv.InitQuery = ptr.String(xtv) } case strings.EqualFold("MaxConnectionsPercent", t.Name.Local): @@ -18507,7 +18511,7 @@ func awsAwsquery_deserializeDocumentConnectionPoolConfigurationInfo(v **types.Co if err != nil { return err } - sv.MaxConnectionsPercent = ptr.Int32(int32(i64)) + sv.MaxConnectionsPercent = int32(i64) } case strings.EqualFold("MaxIdleConnectionsPercent", t.Name.Local): @@ -18524,7 +18528,7 @@ func awsAwsquery_deserializeDocumentConnectionPoolConfigurationInfo(v **types.Co if err != nil { return err } - sv.MaxIdleConnectionsPercent = ptr.Int32(int32(i64)) + sv.MaxIdleConnectionsPercent = int32(i64) } case strings.EqualFold("SessionPinningFilters", t.Name.Local): @@ -18578,7 +18582,7 @@ func awsAwsquery_deserializeDocumentCustomAvailabilityZone(v **types.CustomAvail } if val != nil { xtv := string(val) - sv.CustomAvailabilityZoneId = &xtv + sv.CustomAvailabilityZoneId = ptr.String(xtv) } case strings.EqualFold("CustomAvailabilityZoneName", t.Name.Local): @@ -18594,7 +18598,7 @@ func awsAwsquery_deserializeDocumentCustomAvailabilityZone(v **types.CustomAvail } if val != nil { xtv := string(val) - sv.CustomAvailabilityZoneName = &xtv + sv.CustomAvailabilityZoneName = ptr.String(xtv) } case strings.EqualFold("CustomAvailabilityZoneStatus", t.Name.Local): @@ -18610,7 +18614,7 @@ func awsAwsquery_deserializeDocumentCustomAvailabilityZone(v **types.CustomAvail } if val != nil { xtv := string(val) - sv.CustomAvailabilityZoneStatus = &xtv + sv.CustomAvailabilityZoneStatus = ptr.String(xtv) } case strings.EqualFold("VpnDetails", t.Name.Local): @@ -18664,7 +18668,7 @@ func awsAwsquery_deserializeDocumentCustomAvailabilityZoneAlreadyExistsFault(v * } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18677,13 +18681,13 @@ func awsAwsquery_deserializeDocumentCustomAvailabilityZoneAlreadyExistsFault(v * return nil } -func awsAwsquery_deserializeDocumentCustomAvailabilityZoneList(v *[]*types.CustomAvailabilityZone, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCustomAvailabilityZoneList(v *[]types.CustomAvailabilityZone, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CustomAvailabilityZone + var sv []types.CustomAvailabilityZone if *v == nil { - sv = make([]*types.CustomAvailabilityZone, 0) + sv = make([]types.CustomAvailabilityZone, 0) } else { sv = *v } @@ -18699,11 +18703,13 @@ func awsAwsquery_deserializeDocumentCustomAvailabilityZoneList(v *[]*types.Custo } for { if strings.EqualFold("CustomAvailabilityZone", t.Name.Local) { - var col *types.CustomAvailabilityZone + var col types.CustomAvailabilityZone nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCustomAvailabilityZone(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCustomAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18716,23 +18722,25 @@ func awsAwsquery_deserializeDocumentCustomAvailabilityZoneList(v *[]*types.Custo return nil } -func awsAwsquery_deserializeDocumentCustomAvailabilityZoneListUnwrapped(v *[]*types.CustomAvailabilityZone, decoder smithyxml.NodeDecoder) error { - var sv []*types.CustomAvailabilityZone +func awsAwsquery_deserializeDocumentCustomAvailabilityZoneListUnwrapped(v *[]types.CustomAvailabilityZone, decoder smithyxml.NodeDecoder) error { + var sv []types.CustomAvailabilityZone if *v == nil { - sv = make([]*types.CustomAvailabilityZone, 0) + sv = make([]types.CustomAvailabilityZone, 0) } else { sv = *v } switch { default: - var mv *types.CustomAvailabilityZone + var mv types.CustomAvailabilityZone t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCustomAvailabilityZone(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCustomAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18773,7 +18781,7 @@ func awsAwsquery_deserializeDocumentCustomAvailabilityZoneNotFoundFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18821,7 +18829,7 @@ func awsAwsquery_deserializeDocumentCustomAvailabilityZoneQuotaExceededFault(v * } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18869,7 +18877,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.ActivityStreamKinesisStreamName = &xtv + sv.ActivityStreamKinesisStreamName = ptr.String(xtv) } case strings.EqualFold("ActivityStreamKmsKeyId", t.Name.Local): @@ -18885,7 +18893,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.ActivityStreamKmsKeyId = &xtv + sv.ActivityStreamKmsKeyId = ptr.String(xtv) } case strings.EqualFold("ActivityStreamMode", t.Name.Local): @@ -18957,7 +18965,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return err } - sv.BacktrackConsumedChangeRecords = &i64 + sv.BacktrackConsumedChangeRecords = ptr.Int64(i64) } case strings.EqualFold("BacktrackWindow", t.Name.Local): @@ -18974,7 +18982,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return err } - sv.BacktrackWindow = &i64 + sv.BacktrackWindow = ptr.Int64(i64) } case strings.EqualFold("BackupRetentionPeriod", t.Name.Local): @@ -19024,7 +19032,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.CharacterSetName = &xtv + sv.CharacterSetName = ptr.String(xtv) } case strings.EqualFold("CloneGroupId", t.Name.Local): @@ -19040,7 +19048,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.CloneGroupId = &xtv + sv.CloneGroupId = ptr.String(xtv) } case strings.EqualFold("ClusterCreateTime", t.Name.Local): @@ -19057,7 +19065,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return err } - sv.ClusterCreateTime = &t + sv.ClusterCreateTime = ptr.Time(t) } case strings.EqualFold("CopyTagsToSnapshot", t.Name.Local): @@ -19073,7 +19081,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.CopyTagsToSnapshot = &xtv + sv.CopyTagsToSnapshot = ptr.Bool(xtv) } case strings.EqualFold("CrossAccountClone", t.Name.Local): @@ -19089,7 +19097,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.CrossAccountClone = &xtv + sv.CrossAccountClone = ptr.Bool(xtv) } case strings.EqualFold("CustomEndpoints", t.Name.Local): @@ -19111,7 +19119,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DatabaseName = &xtv + sv.DatabaseName = ptr.String(xtv) } case strings.EqualFold("DBClusterArn", t.Name.Local): @@ -19127,7 +19135,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DBClusterArn = &xtv + sv.DBClusterArn = ptr.String(xtv) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -19143,7 +19151,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterMembers", t.Name.Local): @@ -19171,7 +19179,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DBClusterParameterGroup = &xtv + sv.DBClusterParameterGroup = ptr.String(xtv) } case strings.EqualFold("DbClusterResourceId", t.Name.Local): @@ -19187,7 +19195,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DbClusterResourceId = &xtv + sv.DbClusterResourceId = ptr.String(xtv) } case strings.EqualFold("DBSubnetGroup", t.Name.Local): @@ -19203,7 +19211,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.DBSubnetGroup = &xtv + sv.DBSubnetGroup = ptr.String(xtv) } case strings.EqualFold("DeletionProtection", t.Name.Local): @@ -19219,7 +19227,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.DeletionProtection = &xtv + sv.DeletionProtection = ptr.Bool(xtv) } case strings.EqualFold("DomainMemberships", t.Name.Local): @@ -19242,7 +19250,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return err } - sv.EarliestBacktrackTime = &t + sv.EarliestBacktrackTime = ptr.Time(t) } case strings.EqualFold("EarliestRestorableTime", t.Name.Local): @@ -19259,7 +19267,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return err } - sv.EarliestRestorableTime = &t + sv.EarliestRestorableTime = ptr.Time(t) } case strings.EqualFold("EnabledCloudwatchLogsExports", t.Name.Local): @@ -19281,7 +19289,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -19297,7 +19305,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineMode", t.Name.Local): @@ -19313,7 +19321,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.EngineMode = &xtv + sv.EngineMode = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -19329,7 +19337,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("GlobalWriteForwardingRequested", t.Name.Local): @@ -19345,7 +19353,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.GlobalWriteForwardingRequested = &xtv + sv.GlobalWriteForwardingRequested = ptr.Bool(xtv) } case strings.EqualFold("GlobalWriteForwardingStatus", t.Name.Local): @@ -19374,7 +19382,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } case strings.EqualFold("HttpEndpointEnabled", t.Name.Local): @@ -19390,7 +19398,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.HttpEndpointEnabled = &xtv + sv.HttpEndpointEnabled = ptr.Bool(xtv) } case strings.EqualFold("IAMDatabaseAuthenticationEnabled", t.Name.Local): @@ -19406,7 +19414,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.IAMDatabaseAuthenticationEnabled = &xtv + sv.IAMDatabaseAuthenticationEnabled = ptr.Bool(xtv) } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -19422,7 +19430,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("LatestRestorableTime", t.Name.Local): @@ -19439,7 +19447,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return err } - sv.LatestRestorableTime = &t + sv.LatestRestorableTime = ptr.Time(t) } case strings.EqualFold("MasterUsername", t.Name.Local): @@ -19455,7 +19463,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.MasterUsername = &xtv + sv.MasterUsername = ptr.String(xtv) } case strings.EqualFold("MultiAZ", t.Name.Local): @@ -19471,7 +19479,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.MultiAZ = &xtv + sv.MultiAZ = ptr.Bool(xtv) } case strings.EqualFold("PercentProgress", t.Name.Local): @@ -19487,7 +19495,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.PercentProgress = &xtv + sv.PercentProgress = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -19520,7 +19528,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.PreferredBackupWindow = &xtv + sv.PreferredBackupWindow = ptr.String(xtv) } case strings.EqualFold("PreferredMaintenanceWindow", t.Name.Local): @@ -19536,7 +19544,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.PreferredMaintenanceWindow = &xtv + sv.PreferredMaintenanceWindow = ptr.String(xtv) } case strings.EqualFold("ReaderEndpoint", t.Name.Local): @@ -19552,7 +19560,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.ReaderEndpoint = &xtv + sv.ReaderEndpoint = ptr.String(xtv) } case strings.EqualFold("ReadReplicaIdentifiers", t.Name.Local): @@ -19574,7 +19582,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.ReplicationSourceIdentifier = &xtv + sv.ReplicationSourceIdentifier = ptr.String(xtv) } case strings.EqualFold("ScalingConfigurationInfo", t.Name.Local): @@ -19596,7 +19604,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("StorageEncrypted", t.Name.Local): @@ -19612,7 +19620,7 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.StorageEncrypted = &xtv + sv.StorageEncrypted = xtv } case strings.EqualFold("TagList", t.Name.Local): @@ -19672,7 +19680,7 @@ func awsAwsquery_deserializeDocumentDBClusterAlreadyExistsFault(v **types.DBClus } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19721,7 +19729,7 @@ func awsAwsquery_deserializeDocumentDBClusterBacktrack(v **types.DBClusterBacktr if err != nil { return err } - sv.BacktrackedFrom = &t + sv.BacktrackedFrom = ptr.Time(t) } case strings.EqualFold("BacktrackIdentifier", t.Name.Local): @@ -19737,7 +19745,7 @@ func awsAwsquery_deserializeDocumentDBClusterBacktrack(v **types.DBClusterBacktr } if val != nil { xtv := string(val) - sv.BacktrackIdentifier = &xtv + sv.BacktrackIdentifier = ptr.String(xtv) } case strings.EqualFold("BacktrackRequestCreationTime", t.Name.Local): @@ -19754,7 +19762,7 @@ func awsAwsquery_deserializeDocumentDBClusterBacktrack(v **types.DBClusterBacktr if err != nil { return err } - sv.BacktrackRequestCreationTime = &t + sv.BacktrackRequestCreationTime = ptr.Time(t) } case strings.EqualFold("BacktrackTo", t.Name.Local): @@ -19771,7 +19779,7 @@ func awsAwsquery_deserializeDocumentDBClusterBacktrack(v **types.DBClusterBacktr if err != nil { return err } - sv.BacktrackTo = &t + sv.BacktrackTo = ptr.Time(t) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -19787,7 +19795,7 @@ func awsAwsquery_deserializeDocumentDBClusterBacktrack(v **types.DBClusterBacktr } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -19803,7 +19811,7 @@ func awsAwsquery_deserializeDocumentDBClusterBacktrack(v **types.DBClusterBacktr } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -19816,13 +19824,13 @@ func awsAwsquery_deserializeDocumentDBClusterBacktrack(v **types.DBClusterBacktr return nil } -func awsAwsquery_deserializeDocumentDBClusterBacktrackList(v *[]*types.DBClusterBacktrack, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterBacktrackList(v *[]types.DBClusterBacktrack, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterBacktrack + var sv []types.DBClusterBacktrack if *v == nil { - sv = make([]*types.DBClusterBacktrack, 0) + sv = make([]types.DBClusterBacktrack, 0) } else { sv = *v } @@ -19838,11 +19846,13 @@ func awsAwsquery_deserializeDocumentDBClusterBacktrackList(v *[]*types.DBCluster } for { if strings.EqualFold("DBClusterBacktrack", t.Name.Local) { - var col *types.DBClusterBacktrack + var col types.DBClusterBacktrack nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterBacktrack(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterBacktrack(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19855,23 +19865,25 @@ func awsAwsquery_deserializeDocumentDBClusterBacktrackList(v *[]*types.DBCluster return nil } -func awsAwsquery_deserializeDocumentDBClusterBacktrackListUnwrapped(v *[]*types.DBClusterBacktrack, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterBacktrack +func awsAwsquery_deserializeDocumentDBClusterBacktrackListUnwrapped(v *[]types.DBClusterBacktrack, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterBacktrack if *v == nil { - sv = make([]*types.DBClusterBacktrack, 0) + sv = make([]types.DBClusterBacktrack, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterBacktrack + var mv types.DBClusterBacktrack t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterBacktrack(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterBacktrack(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19912,7 +19924,7 @@ func awsAwsquery_deserializeDocumentDBClusterBacktrackNotFoundFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19960,7 +19972,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.CustomEndpointType = &xtv + sv.CustomEndpointType = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointArn", t.Name.Local): @@ -19976,7 +19988,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.DBClusterEndpointArn = &xtv + sv.DBClusterEndpointArn = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointIdentifier", t.Name.Local): @@ -19992,7 +20004,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.DBClusterEndpointIdentifier = &xtv + sv.DBClusterEndpointIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointResourceIdentifier", t.Name.Local): @@ -20008,7 +20020,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.DBClusterEndpointResourceIdentifier = &xtv + sv.DBClusterEndpointResourceIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -20024,7 +20036,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("Endpoint", t.Name.Local): @@ -20040,7 +20052,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("EndpointType", t.Name.Local): @@ -20056,7 +20068,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.EndpointType = &xtv + sv.EndpointType = ptr.String(xtv) } case strings.EqualFold("ExcludedMembers", t.Name.Local): @@ -20084,7 +20096,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpoint(v **types.DBClusterEndpoin } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -20132,7 +20144,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointAlreadyExistsFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20145,13 +20157,13 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointAlreadyExistsFault(v **type return nil } -func awsAwsquery_deserializeDocumentDBClusterEndpointList(v *[]*types.DBClusterEndpoint, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterEndpointList(v *[]types.DBClusterEndpoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterEndpoint + var sv []types.DBClusterEndpoint if *v == nil { - sv = make([]*types.DBClusterEndpoint, 0) + sv = make([]types.DBClusterEndpoint, 0) } else { sv = *v } @@ -20167,11 +20179,13 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointList(v *[]*types.DBClusterE } for { if strings.EqualFold("DBClusterEndpointList", t.Name.Local) { - var col *types.DBClusterEndpoint + var col types.DBClusterEndpoint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterEndpoint(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterEndpoint(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20184,23 +20198,25 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointList(v *[]*types.DBClusterE return nil } -func awsAwsquery_deserializeDocumentDBClusterEndpointListUnwrapped(v *[]*types.DBClusterEndpoint, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterEndpoint +func awsAwsquery_deserializeDocumentDBClusterEndpointListUnwrapped(v *[]types.DBClusterEndpoint, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterEndpoint if *v == nil { - sv = make([]*types.DBClusterEndpoint, 0) + sv = make([]types.DBClusterEndpoint, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterEndpoint + var mv types.DBClusterEndpoint t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterEndpoint(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterEndpoint(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -20241,7 +20257,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointNotFoundFault(v **types.DBC } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20289,7 +20305,7 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointQuotaExceededFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20302,13 +20318,13 @@ func awsAwsquery_deserializeDocumentDBClusterEndpointQuotaExceededFault(v **type return nil } -func awsAwsquery_deserializeDocumentDBClusterList(v *[]*types.DBCluster, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterList(v *[]types.DBCluster, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBCluster + var sv []types.DBCluster if *v == nil { - sv = make([]*types.DBCluster, 0) + sv = make([]types.DBCluster, 0) } else { sv = *v } @@ -20324,11 +20340,13 @@ func awsAwsquery_deserializeDocumentDBClusterList(v *[]*types.DBCluster, decoder } for { if strings.EqualFold("DBCluster", t.Name.Local) { - var col *types.DBCluster + var col types.DBCluster nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBCluster(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBCluster(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20341,23 +20359,25 @@ func awsAwsquery_deserializeDocumentDBClusterList(v *[]*types.DBCluster, decoder return nil } -func awsAwsquery_deserializeDocumentDBClusterListUnwrapped(v *[]*types.DBCluster, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBCluster +func awsAwsquery_deserializeDocumentDBClusterListUnwrapped(v *[]types.DBCluster, decoder smithyxml.NodeDecoder) error { + var sv []types.DBCluster if *v == nil { - sv = make([]*types.DBCluster, 0) + sv = make([]types.DBCluster, 0) } else { sv = *v } switch { default: - var mv *types.DBCluster + var mv types.DBCluster t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBCluster(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBCluster(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -20398,7 +20418,7 @@ func awsAwsquery_deserializeDocumentDBClusterMember(v **types.DBClusterMember, d } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupStatus = &xtv + sv.DBClusterParameterGroupStatus = ptr.String(xtv) } case strings.EqualFold("DBInstanceIdentifier", t.Name.Local): @@ -20414,7 +20434,7 @@ func awsAwsquery_deserializeDocumentDBClusterMember(v **types.DBClusterMember, d } if val != nil { xtv := string(val) - sv.DBInstanceIdentifier = &xtv + sv.DBInstanceIdentifier = ptr.String(xtv) } case strings.EqualFold("IsClusterWriter", t.Name.Local): @@ -20430,7 +20450,7 @@ func awsAwsquery_deserializeDocumentDBClusterMember(v **types.DBClusterMember, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsClusterWriter = &xtv + sv.IsClusterWriter = xtv } case strings.EqualFold("PromotionTier", t.Name.Local): @@ -20460,13 +20480,13 @@ func awsAwsquery_deserializeDocumentDBClusterMember(v **types.DBClusterMember, d return nil } -func awsAwsquery_deserializeDocumentDBClusterMemberList(v *[]*types.DBClusterMember, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterMemberList(v *[]types.DBClusterMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterMember + var sv []types.DBClusterMember if *v == nil { - sv = make([]*types.DBClusterMember, 0) + sv = make([]types.DBClusterMember, 0) } else { sv = *v } @@ -20482,11 +20502,13 @@ func awsAwsquery_deserializeDocumentDBClusterMemberList(v *[]*types.DBClusterMem } for { if strings.EqualFold("DBClusterMember", t.Name.Local) { - var col *types.DBClusterMember + var col types.DBClusterMember nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterMember(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterMember(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20499,23 +20521,25 @@ func awsAwsquery_deserializeDocumentDBClusterMemberList(v *[]*types.DBClusterMem return nil } -func awsAwsquery_deserializeDocumentDBClusterMemberListUnwrapped(v *[]*types.DBClusterMember, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterMember +func awsAwsquery_deserializeDocumentDBClusterMemberListUnwrapped(v *[]types.DBClusterMember, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterMember if *v == nil { - sv = make([]*types.DBClusterMember, 0) + sv = make([]types.DBClusterMember, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterMember + var mv types.DBClusterMember t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterMember(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterMember(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -20556,7 +20580,7 @@ func awsAwsquery_deserializeDocumentDBClusterNotFoundFault(v **types.DBClusterNo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20569,13 +20593,13 @@ func awsAwsquery_deserializeDocumentDBClusterNotFoundFault(v **types.DBClusterNo return nil } -func awsAwsquery_deserializeDocumentDBClusterOptionGroupMemberships(v *[]*types.DBClusterOptionGroupStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterOptionGroupMemberships(v *[]types.DBClusterOptionGroupStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterOptionGroupStatus + var sv []types.DBClusterOptionGroupStatus if *v == nil { - sv = make([]*types.DBClusterOptionGroupStatus, 0) + sv = make([]types.DBClusterOptionGroupStatus, 0) } else { sv = *v } @@ -20591,11 +20615,13 @@ func awsAwsquery_deserializeDocumentDBClusterOptionGroupMemberships(v *[]*types. } for { if strings.EqualFold("DBClusterOptionGroup", t.Name.Local) { - var col *types.DBClusterOptionGroupStatus + var col types.DBClusterOptionGroupStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterOptionGroupStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterOptionGroupStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20608,23 +20634,25 @@ func awsAwsquery_deserializeDocumentDBClusterOptionGroupMemberships(v *[]*types. return nil } -func awsAwsquery_deserializeDocumentDBClusterOptionGroupMembershipsUnwrapped(v *[]*types.DBClusterOptionGroupStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterOptionGroupStatus +func awsAwsquery_deserializeDocumentDBClusterOptionGroupMembershipsUnwrapped(v *[]types.DBClusterOptionGroupStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterOptionGroupStatus if *v == nil { - sv = make([]*types.DBClusterOptionGroupStatus, 0) + sv = make([]types.DBClusterOptionGroupStatus, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterOptionGroupStatus + var mv types.DBClusterOptionGroupStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterOptionGroupStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterOptionGroupStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -20665,7 +20693,7 @@ func awsAwsquery_deserializeDocumentDBClusterOptionGroupStatus(v **types.DBClust } if val != nil { xtv := string(val) - sv.DBClusterOptionGroupName = &xtv + sv.DBClusterOptionGroupName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -20681,7 +20709,7 @@ func awsAwsquery_deserializeDocumentDBClusterOptionGroupStatus(v **types.DBClust } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -20729,7 +20757,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupArn = &xtv + sv.DBClusterParameterGroupArn = ptr.String(xtv) } case strings.EqualFold("DBClusterParameterGroupName", t.Name.Local): @@ -20745,7 +20773,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupName = &xtv + sv.DBClusterParameterGroupName = ptr.String(xtv) } case strings.EqualFold("DBParameterGroupFamily", t.Name.Local): @@ -20761,7 +20789,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP } if val != nil { xtv := string(val) - sv.DBParameterGroupFamily = &xtv + sv.DBParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -20777,7 +20805,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } default: @@ -20790,13 +20818,13 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroup(v **types.DBClusterP return nil } -func awsAwsquery_deserializeDocumentDBClusterParameterGroupList(v *[]*types.DBClusterParameterGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterParameterGroupList(v *[]types.DBClusterParameterGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterParameterGroup + var sv []types.DBClusterParameterGroup if *v == nil { - sv = make([]*types.DBClusterParameterGroup, 0) + sv = make([]types.DBClusterParameterGroup, 0) } else { sv = *v } @@ -20812,11 +20840,13 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroupList(v *[]*types.DBCl } for { if strings.EqualFold("DBClusterParameterGroup", t.Name.Local) { - var col *types.DBClusterParameterGroup + var col types.DBClusterParameterGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterParameterGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -20829,23 +20859,25 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroupList(v *[]*types.DBCl return nil } -func awsAwsquery_deserializeDocumentDBClusterParameterGroupListUnwrapped(v *[]*types.DBClusterParameterGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterParameterGroup +func awsAwsquery_deserializeDocumentDBClusterParameterGroupListUnwrapped(v *[]types.DBClusterParameterGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterParameterGroup if *v == nil { - sv = make([]*types.DBClusterParameterGroup, 0) + sv = make([]types.DBClusterParameterGroup, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterParameterGroup + var mv types.DBClusterParameterGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterParameterGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -20886,7 +20918,7 @@ func awsAwsquery_deserializeDocumentDBClusterParameterGroupNotFoundFault(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20934,7 +20966,7 @@ func awsAwsquery_deserializeDocumentDBClusterQuotaExceededFault(v **types.DBClus } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20982,7 +21014,7 @@ func awsAwsquery_deserializeDocumentDBClusterRole(v **types.DBClusterRole, decod } if val != nil { xtv := string(val) - sv.FeatureName = &xtv + sv.FeatureName = ptr.String(xtv) } case strings.EqualFold("RoleArn", t.Name.Local): @@ -20998,7 +21030,7 @@ func awsAwsquery_deserializeDocumentDBClusterRole(v **types.DBClusterRole, decod } if val != nil { xtv := string(val) - sv.RoleArn = &xtv + sv.RoleArn = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -21014,7 +21046,7 @@ func awsAwsquery_deserializeDocumentDBClusterRole(v **types.DBClusterRole, decod } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -21062,7 +21094,7 @@ func awsAwsquery_deserializeDocumentDBClusterRoleAlreadyExistsFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21110,7 +21142,7 @@ func awsAwsquery_deserializeDocumentDBClusterRoleNotFoundFault(v **types.DBClust } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21158,7 +21190,7 @@ func awsAwsquery_deserializeDocumentDBClusterRoleQuotaExceededFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21171,13 +21203,13 @@ func awsAwsquery_deserializeDocumentDBClusterRoleQuotaExceededFault(v **types.DB return nil } -func awsAwsquery_deserializeDocumentDBClusterRoles(v *[]*types.DBClusterRole, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterRoles(v *[]types.DBClusterRole, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterRole + var sv []types.DBClusterRole if *v == nil { - sv = make([]*types.DBClusterRole, 0) + sv = make([]types.DBClusterRole, 0) } else { sv = *v } @@ -21193,11 +21225,13 @@ func awsAwsquery_deserializeDocumentDBClusterRoles(v *[]*types.DBClusterRole, de } for { if strings.EqualFold("DBClusterRole", t.Name.Local) { - var col *types.DBClusterRole + var col types.DBClusterRole nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterRole(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterRole(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21210,23 +21244,25 @@ func awsAwsquery_deserializeDocumentDBClusterRoles(v *[]*types.DBClusterRole, de return nil } -func awsAwsquery_deserializeDocumentDBClusterRolesUnwrapped(v *[]*types.DBClusterRole, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterRole +func awsAwsquery_deserializeDocumentDBClusterRolesUnwrapped(v *[]types.DBClusterRole, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterRole if *v == nil { - sv = make([]*types.DBClusterRole, 0) + sv = make([]types.DBClusterRole, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterRole + var mv types.DBClusterRole t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterRole(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterRole(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -21268,7 +21304,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.AllocatedStorage = ptr.Int32(int32(i64)) + sv.AllocatedStorage = int32(i64) } case strings.EqualFold("AvailabilityZones", t.Name.Local): @@ -21291,7 +21327,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.ClusterCreateTime = &t + sv.ClusterCreateTime = ptr.Time(t) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -21307,7 +21343,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterSnapshotArn", t.Name.Local): @@ -21323,7 +21359,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.DBClusterSnapshotArn = &xtv + sv.DBClusterSnapshotArn = ptr.String(xtv) } case strings.EqualFold("DBClusterSnapshotIdentifier", t.Name.Local): @@ -21339,7 +21375,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.DBClusterSnapshotIdentifier = &xtv + sv.DBClusterSnapshotIdentifier = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -21355,7 +21391,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -21371,7 +21407,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("IAMDatabaseAuthenticationEnabled", t.Name.Local): @@ -21387,7 +21423,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IAMDatabaseAuthenticationEnabled = &xtv + sv.IAMDatabaseAuthenticationEnabled = xtv } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -21403,7 +21439,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("LicenseModel", t.Name.Local): @@ -21419,7 +21455,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.LicenseModel = &xtv + sv.LicenseModel = ptr.String(xtv) } case strings.EqualFold("MasterUsername", t.Name.Local): @@ -21435,7 +21471,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.MasterUsername = &xtv + sv.MasterUsername = ptr.String(xtv) } case strings.EqualFold("PercentProgress", t.Name.Local): @@ -21452,7 +21488,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.PercentProgress = ptr.Int32(int32(i64)) + sv.PercentProgress = int32(i64) } case strings.EqualFold("Port", t.Name.Local): @@ -21469,7 +21505,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case strings.EqualFold("SnapshotCreateTime", t.Name.Local): @@ -21486,7 +21522,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return err } - sv.SnapshotCreateTime = &t + sv.SnapshotCreateTime = ptr.Time(t) } case strings.EqualFold("SnapshotType", t.Name.Local): @@ -21502,7 +21538,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.SnapshotType = &xtv + sv.SnapshotType = ptr.String(xtv) } case strings.EqualFold("SourceDBClusterSnapshotArn", t.Name.Local): @@ -21518,7 +21554,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.SourceDBClusterSnapshotArn = &xtv + sv.SourceDBClusterSnapshotArn = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -21534,7 +21570,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("StorageEncrypted", t.Name.Local): @@ -21550,7 +21586,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.StorageEncrypted = &xtv + sv.StorageEncrypted = xtv } case strings.EqualFold("TagList", t.Name.Local): @@ -21572,7 +21608,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -21620,7 +21656,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAlreadyExistsFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21668,7 +21704,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(v **types.DBClust } if val != nil { xtv := string(val) - sv.AttributeName = &xtv + sv.AttributeName = ptr.String(xtv) } case strings.EqualFold("AttributeValues", t.Name.Local): @@ -21687,13 +21723,13 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(v **types.DBClust return nil } -func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeList(v *[]*types.DBClusterSnapshotAttribute, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeList(v *[]types.DBClusterSnapshotAttribute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterSnapshotAttribute + var sv []types.DBClusterSnapshotAttribute if *v == nil { - sv = make([]*types.DBClusterSnapshotAttribute, 0) + sv = make([]types.DBClusterSnapshotAttribute, 0) } else { sv = *v } @@ -21709,11 +21745,13 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeList(v *[]*types.D } for { if strings.EqualFold("DBClusterSnapshotAttribute", t.Name.Local) { - var col *types.DBClusterSnapshotAttribute + var col types.DBClusterSnapshotAttribute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21726,23 +21764,25 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeList(v *[]*types.D return nil } -func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeListUnwrapped(v *[]*types.DBClusterSnapshotAttribute, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterSnapshotAttribute +func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributeListUnwrapped(v *[]types.DBClusterSnapshotAttribute, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterSnapshotAttribute if *v == nil { - sv = make([]*types.DBClusterSnapshotAttribute, 0) + sv = make([]types.DBClusterSnapshotAttribute, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterSnapshotAttribute + var mv types.DBClusterSnapshotAttribute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterSnapshotAttribute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -21789,7 +21829,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributesResult(v **types. } if val != nil { xtv := string(val) - sv.DBClusterSnapshotIdentifier = &xtv + sv.DBClusterSnapshotIdentifier = ptr.String(xtv) } default: @@ -21802,13 +21842,13 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotAttributesResult(v **types. return nil } -func awsAwsquery_deserializeDocumentDBClusterSnapshotList(v *[]*types.DBClusterSnapshot, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBClusterSnapshotList(v *[]types.DBClusterSnapshot, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBClusterSnapshot + var sv []types.DBClusterSnapshot if *v == nil { - sv = make([]*types.DBClusterSnapshot, 0) + sv = make([]types.DBClusterSnapshot, 0) } else { sv = *v } @@ -21824,11 +21864,13 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotList(v *[]*types.DBClusterS } for { if strings.EqualFold("DBClusterSnapshot", t.Name.Local) { - var col *types.DBClusterSnapshot + var col types.DBClusterSnapshot nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterSnapshot(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBClusterSnapshot(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21841,23 +21883,25 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotList(v *[]*types.DBClusterS return nil } -func awsAwsquery_deserializeDocumentDBClusterSnapshotListUnwrapped(v *[]*types.DBClusterSnapshot, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBClusterSnapshot +func awsAwsquery_deserializeDocumentDBClusterSnapshotListUnwrapped(v *[]types.DBClusterSnapshot, decoder smithyxml.NodeDecoder) error { + var sv []types.DBClusterSnapshot if *v == nil { - sv = make([]*types.DBClusterSnapshot, 0) + sv = make([]types.DBClusterSnapshot, 0) } else { sv = *v } switch { default: - var mv *types.DBClusterSnapshot + var mv types.DBClusterSnapshot t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBClusterSnapshot(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBClusterSnapshot(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -21898,7 +21942,7 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshotNotFoundFault(v **types.DBC } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21946,7 +21990,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.DBEngineDescription = &xtv + sv.DBEngineDescription = ptr.String(xtv) } case strings.EqualFold("DBEngineVersionDescription", t.Name.Local): @@ -21962,7 +22006,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.DBEngineVersionDescription = &xtv + sv.DBEngineVersionDescription = ptr.String(xtv) } case strings.EqualFold("DBParameterGroupFamily", t.Name.Local): @@ -21978,7 +22022,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.DBParameterGroupFamily = &xtv + sv.DBParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("DefaultCharacterSet", t.Name.Local): @@ -22000,7 +22044,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -22016,7 +22060,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("ExportableLogTypes", t.Name.Local): @@ -22038,7 +22082,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("SupportedCharacterSets", t.Name.Local): @@ -22084,7 +22128,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsGlobalDatabases = &xtv + sv.SupportsGlobalDatabases = xtv } case strings.EqualFold("SupportsLogExportsToCloudwatchLogs", t.Name.Local): @@ -22100,7 +22144,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsLogExportsToCloudwatchLogs = &xtv + sv.SupportsLogExportsToCloudwatchLogs = xtv } case strings.EqualFold("SupportsParallelQuery", t.Name.Local): @@ -22116,7 +22160,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsParallelQuery = &xtv + sv.SupportsParallelQuery = xtv } case strings.EqualFold("SupportsReadReplica", t.Name.Local): @@ -22132,7 +22176,7 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsReadReplica = &xtv + sv.SupportsReadReplica = xtv } case strings.EqualFold("ValidUpgradeTarget", t.Name.Local): @@ -22151,13 +22195,13 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d return nil } -func awsAwsquery_deserializeDocumentDBEngineVersionList(v *[]*types.DBEngineVersion, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBEngineVersionList(v *[]types.DBEngineVersion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBEngineVersion + var sv []types.DBEngineVersion if *v == nil { - sv = make([]*types.DBEngineVersion, 0) + sv = make([]types.DBEngineVersion, 0) } else { sv = *v } @@ -22173,11 +22217,13 @@ func awsAwsquery_deserializeDocumentDBEngineVersionList(v *[]*types.DBEngineVers } for { if strings.EqualFold("DBEngineVersion", t.Name.Local) { - var col *types.DBEngineVersion + var col types.DBEngineVersion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBEngineVersion(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBEngineVersion(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -22190,23 +22236,25 @@ func awsAwsquery_deserializeDocumentDBEngineVersionList(v *[]*types.DBEngineVers return nil } -func awsAwsquery_deserializeDocumentDBEngineVersionListUnwrapped(v *[]*types.DBEngineVersion, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBEngineVersion +func awsAwsquery_deserializeDocumentDBEngineVersionListUnwrapped(v *[]types.DBEngineVersion, decoder smithyxml.NodeDecoder) error { + var sv []types.DBEngineVersion if *v == nil { - sv = make([]*types.DBEngineVersion, 0) + sv = make([]types.DBEngineVersion, 0) } else { sv = *v } switch { default: - var mv *types.DBEngineVersion + var mv types.DBEngineVersion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBEngineVersion(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBEngineVersion(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -22248,7 +22296,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return err } - sv.AllocatedStorage = ptr.Int32(int32(i64)) + sv.AllocatedStorage = int32(i64) } case strings.EqualFold("AssociatedRoles", t.Name.Local): @@ -22270,7 +22318,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AutoMinorVersionUpgrade = &xtv + sv.AutoMinorVersionUpgrade = xtv } case strings.EqualFold("AvailabilityZone", t.Name.Local): @@ -22286,7 +22334,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("BackupRetentionPeriod", t.Name.Local): @@ -22303,7 +22351,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return err } - sv.BackupRetentionPeriod = ptr.Int32(int32(i64)) + sv.BackupRetentionPeriod = int32(i64) } case strings.EqualFold("CACertificateIdentifier", t.Name.Local): @@ -22319,7 +22367,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.CACertificateIdentifier = &xtv + sv.CACertificateIdentifier = ptr.String(xtv) } case strings.EqualFold("CharacterSetName", t.Name.Local): @@ -22335,7 +22383,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.CharacterSetName = &xtv + sv.CharacterSetName = ptr.String(xtv) } case strings.EqualFold("CopyTagsToSnapshot", t.Name.Local): @@ -22351,7 +22399,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.CopyTagsToSnapshot = &xtv + sv.CopyTagsToSnapshot = xtv } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -22367,7 +22415,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("DBInstanceArn", t.Name.Local): @@ -22383,7 +22431,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBInstanceArn = &xtv + sv.DBInstanceArn = ptr.String(xtv) } case strings.EqualFold("DBInstanceClass", t.Name.Local): @@ -22399,7 +22447,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBInstanceClass = &xtv + sv.DBInstanceClass = ptr.String(xtv) } case strings.EqualFold("DBInstanceIdentifier", t.Name.Local): @@ -22415,7 +22463,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBInstanceIdentifier = &xtv + sv.DBInstanceIdentifier = ptr.String(xtv) } case strings.EqualFold("DbInstancePort", t.Name.Local): @@ -22432,7 +22480,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return err } - sv.DbInstancePort = ptr.Int32(int32(i64)) + sv.DbInstancePort = int32(i64) } case strings.EqualFold("DBInstanceStatus", t.Name.Local): @@ -22448,7 +22496,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBInstanceStatus = &xtv + sv.DBInstanceStatus = ptr.String(xtv) } case strings.EqualFold("DbiResourceId", t.Name.Local): @@ -22464,7 +22512,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DbiResourceId = &xtv + sv.DbiResourceId = ptr.String(xtv) } case strings.EqualFold("DBName", t.Name.Local): @@ -22480,7 +22528,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.DBName = &xtv + sv.DBName = ptr.String(xtv) } case strings.EqualFold("DBParameterGroups", t.Name.Local): @@ -22514,7 +22562,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeletionProtection = &xtv + sv.DeletionProtection = xtv } case strings.EqualFold("DomainMemberships", t.Name.Local): @@ -22548,7 +22596,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -22564,7 +22612,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("EnhancedMonitoringResourceArn", t.Name.Local): @@ -22580,7 +22628,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.EnhancedMonitoringResourceArn = &xtv + sv.EnhancedMonitoringResourceArn = ptr.String(xtv) } case strings.EqualFold("IAMDatabaseAuthenticationEnabled", t.Name.Local): @@ -22596,7 +22644,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IAMDatabaseAuthenticationEnabled = &xtv + sv.IAMDatabaseAuthenticationEnabled = xtv } case strings.EqualFold("InstanceCreateTime", t.Name.Local): @@ -22613,7 +22661,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return err } - sv.InstanceCreateTime = &t + sv.InstanceCreateTime = ptr.Time(t) } case strings.EqualFold("Iops", t.Name.Local): @@ -22646,7 +22694,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("LatestRestorableTime", t.Name.Local): @@ -22663,7 +22711,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return err } - sv.LatestRestorableTime = &t + sv.LatestRestorableTime = ptr.Time(t) } case strings.EqualFold("LicenseModel", t.Name.Local): @@ -22679,7 +22727,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.LicenseModel = &xtv + sv.LicenseModel = ptr.String(xtv) } case strings.EqualFold("ListenerEndpoint", t.Name.Local): @@ -22701,7 +22749,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.MasterUsername = &xtv + sv.MasterUsername = ptr.String(xtv) } case strings.EqualFold("MaxAllocatedStorage", t.Name.Local): @@ -22751,7 +22799,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.MonitoringRoleArn = &xtv + sv.MonitoringRoleArn = ptr.String(xtv) } case strings.EqualFold("MultiAZ", t.Name.Local): @@ -22767,7 +22815,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MultiAZ = &xtv + sv.MultiAZ = xtv } case strings.EqualFold("NcharCharacterSetName", t.Name.Local): @@ -22783,7 +22831,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.NcharCharacterSetName = &xtv + sv.NcharCharacterSetName = ptr.String(xtv) } case strings.EqualFold("OptionGroupMemberships", t.Name.Local): @@ -22811,7 +22859,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.PerformanceInsightsEnabled = &xtv + sv.PerformanceInsightsEnabled = ptr.Bool(xtv) } case strings.EqualFold("PerformanceInsightsKMSKeyId", t.Name.Local): @@ -22827,7 +22875,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.PerformanceInsightsKMSKeyId = &xtv + sv.PerformanceInsightsKMSKeyId = ptr.String(xtv) } case strings.EqualFold("PerformanceInsightsRetentionPeriod", t.Name.Local): @@ -22860,7 +22908,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.PreferredBackupWindow = &xtv + sv.PreferredBackupWindow = ptr.String(xtv) } case strings.EqualFold("PreferredMaintenanceWindow", t.Name.Local): @@ -22876,7 +22924,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.PreferredMaintenanceWindow = &xtv + sv.PreferredMaintenanceWindow = ptr.String(xtv) } case strings.EqualFold("ProcessorFeatures", t.Name.Local): @@ -22915,7 +22963,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.PubliclyAccessible = &xtv + sv.PubliclyAccessible = xtv } case strings.EqualFold("ReadReplicaDBClusterIdentifiers", t.Name.Local): @@ -22943,7 +22991,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.ReadReplicaSourceDBInstanceIdentifier = &xtv + sv.ReadReplicaSourceDBInstanceIdentifier = ptr.String(xtv) } case strings.EqualFold("ReplicaMode", t.Name.Local): @@ -22972,7 +23020,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.SecondaryAvailabilityZone = &xtv + sv.SecondaryAvailabilityZone = ptr.String(xtv) } case strings.EqualFold("StatusInfos", t.Name.Local): @@ -22994,7 +23042,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.StorageEncrypted = &xtv + sv.StorageEncrypted = xtv } case strings.EqualFold("StorageType", t.Name.Local): @@ -23010,7 +23058,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.StorageType = &xtv + sv.StorageType = ptr.String(xtv) } case strings.EqualFold("TagList", t.Name.Local): @@ -23032,7 +23080,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.TdeCredentialArn = &xtv + sv.TdeCredentialArn = ptr.String(xtv) } case strings.EqualFold("Timezone", t.Name.Local): @@ -23048,7 +23096,7 @@ func awsAwsquery_deserializeDocumentDBInstance(v **types.DBInstance, decoder smi } if val != nil { xtv := string(val) - sv.Timezone = &xtv + sv.Timezone = ptr.String(xtv) } case strings.EqualFold("VpcSecurityGroups", t.Name.Local): @@ -23102,7 +23150,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAlreadyExistsFault(v **types.DBIns } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23151,7 +23199,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan if err != nil { return err } - sv.AllocatedStorage = ptr.Int32(int32(i64)) + sv.AllocatedStorage = int32(i64) } case strings.EqualFold("AvailabilityZone", t.Name.Local): @@ -23167,7 +23215,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("DBInstanceArn", t.Name.Local): @@ -23183,7 +23231,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.DBInstanceArn = &xtv + sv.DBInstanceArn = ptr.String(xtv) } case strings.EqualFold("DBInstanceIdentifier", t.Name.Local): @@ -23199,7 +23247,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.DBInstanceIdentifier = &xtv + sv.DBInstanceIdentifier = ptr.String(xtv) } case strings.EqualFold("DbiResourceId", t.Name.Local): @@ -23215,7 +23263,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.DbiResourceId = &xtv + sv.DbiResourceId = ptr.String(xtv) } case strings.EqualFold("Encrypted", t.Name.Local): @@ -23231,7 +23279,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("Engine", t.Name.Local): @@ -23247,7 +23295,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -23263,7 +23311,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("IAMDatabaseAuthenticationEnabled", t.Name.Local): @@ -23279,7 +23327,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IAMDatabaseAuthenticationEnabled = &xtv + sv.IAMDatabaseAuthenticationEnabled = xtv } case strings.EqualFold("InstanceCreateTime", t.Name.Local): @@ -23296,7 +23344,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan if err != nil { return err } - sv.InstanceCreateTime = &t + sv.InstanceCreateTime = ptr.Time(t) } case strings.EqualFold("Iops", t.Name.Local): @@ -23329,7 +23377,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("LicenseModel", t.Name.Local): @@ -23345,7 +23393,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.LicenseModel = &xtv + sv.LicenseModel = ptr.String(xtv) } case strings.EqualFold("MasterUsername", t.Name.Local): @@ -23361,7 +23409,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.MasterUsername = &xtv + sv.MasterUsername = ptr.String(xtv) } case strings.EqualFold("OptionGroupName", t.Name.Local): @@ -23377,7 +23425,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.OptionGroupName = &xtv + sv.OptionGroupName = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -23394,7 +23442,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case strings.EqualFold("Region", t.Name.Local): @@ -23410,7 +23458,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.Region = &xtv + sv.Region = ptr.String(xtv) } case strings.EqualFold("RestoreWindow", t.Name.Local): @@ -23432,7 +23480,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("StorageType", t.Name.Local): @@ -23448,7 +23496,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.StorageType = &xtv + sv.StorageType = ptr.String(xtv) } case strings.EqualFold("TdeCredentialArn", t.Name.Local): @@ -23464,7 +23512,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.TdeCredentialArn = &xtv + sv.TdeCredentialArn = ptr.String(xtv) } case strings.EqualFold("Timezone", t.Name.Local): @@ -23480,7 +23528,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.Timezone = &xtv + sv.Timezone = ptr.String(xtv) } case strings.EqualFold("VpcId", t.Name.Local): @@ -23496,7 +23544,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -23509,13 +23557,13 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(v **types.DBInstan return nil } -func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackupList(v *[]*types.DBInstanceAutomatedBackup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackupList(v *[]types.DBInstanceAutomatedBackup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBInstanceAutomatedBackup + var sv []types.DBInstanceAutomatedBackup if *v == nil { - sv = make([]*types.DBInstanceAutomatedBackup, 0) + sv = make([]types.DBInstanceAutomatedBackup, 0) } else { sv = *v } @@ -23531,11 +23579,13 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackupList(v *[]*types.DB } for { if strings.EqualFold("DBInstanceAutomatedBackup", t.Name.Local) { - var col *types.DBInstanceAutomatedBackup + var col types.DBInstanceAutomatedBackup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -23548,23 +23598,25 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackupList(v *[]*types.DB return nil } -func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackupListUnwrapped(v *[]*types.DBInstanceAutomatedBackup, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBInstanceAutomatedBackup +func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackupListUnwrapped(v *[]types.DBInstanceAutomatedBackup, decoder smithyxml.NodeDecoder) error { + var sv []types.DBInstanceAutomatedBackup if *v == nil { - sv = make([]*types.DBInstanceAutomatedBackup, 0) + sv = make([]types.DBInstanceAutomatedBackup, 0) } else { sv = *v } switch { default: - var mv *types.DBInstanceAutomatedBackup + var mv types.DBInstanceAutomatedBackup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBInstanceAutomatedBackup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -23605,7 +23657,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackupNotFoundFault(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23653,7 +23705,7 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackupQuotaExceededFault( } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23666,13 +23718,13 @@ func awsAwsquery_deserializeDocumentDBInstanceAutomatedBackupQuotaExceededFault( return nil } -func awsAwsquery_deserializeDocumentDBInstanceList(v *[]*types.DBInstance, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBInstanceList(v *[]types.DBInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBInstance + var sv []types.DBInstance if *v == nil { - sv = make([]*types.DBInstance, 0) + sv = make([]types.DBInstance, 0) } else { sv = *v } @@ -23688,11 +23740,13 @@ func awsAwsquery_deserializeDocumentDBInstanceList(v *[]*types.DBInstance, decod } for { if strings.EqualFold("DBInstance", t.Name.Local) { - var col *types.DBInstance + var col types.DBInstance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -23705,23 +23759,25 @@ func awsAwsquery_deserializeDocumentDBInstanceList(v *[]*types.DBInstance, decod return nil } -func awsAwsquery_deserializeDocumentDBInstanceListUnwrapped(v *[]*types.DBInstance, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBInstance +func awsAwsquery_deserializeDocumentDBInstanceListUnwrapped(v *[]types.DBInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.DBInstance if *v == nil { - sv = make([]*types.DBInstance, 0) + sv = make([]types.DBInstance, 0) } else { sv = *v } switch { default: - var mv *types.DBInstance + var mv types.DBInstance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -23762,7 +23818,7 @@ func awsAwsquery_deserializeDocumentDBInstanceNotFoundFault(v **types.DBInstance } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23810,7 +23866,7 @@ func awsAwsquery_deserializeDocumentDBInstanceRole(v **types.DBInstanceRole, dec } if val != nil { xtv := string(val) - sv.FeatureName = &xtv + sv.FeatureName = ptr.String(xtv) } case strings.EqualFold("RoleArn", t.Name.Local): @@ -23826,7 +23882,7 @@ func awsAwsquery_deserializeDocumentDBInstanceRole(v **types.DBInstanceRole, dec } if val != nil { xtv := string(val) - sv.RoleArn = &xtv + sv.RoleArn = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -23842,7 +23898,7 @@ func awsAwsquery_deserializeDocumentDBInstanceRole(v **types.DBInstanceRole, dec } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -23890,7 +23946,7 @@ func awsAwsquery_deserializeDocumentDBInstanceRoleAlreadyExistsFault(v **types.D } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23938,7 +23994,7 @@ func awsAwsquery_deserializeDocumentDBInstanceRoleNotFoundFault(v **types.DBInst } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23986,7 +24042,7 @@ func awsAwsquery_deserializeDocumentDBInstanceRoleQuotaExceededFault(v **types.D } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23999,13 +24055,13 @@ func awsAwsquery_deserializeDocumentDBInstanceRoleQuotaExceededFault(v **types.D return nil } -func awsAwsquery_deserializeDocumentDBInstanceRoles(v *[]*types.DBInstanceRole, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBInstanceRoles(v *[]types.DBInstanceRole, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBInstanceRole + var sv []types.DBInstanceRole if *v == nil { - sv = make([]*types.DBInstanceRole, 0) + sv = make([]types.DBInstanceRole, 0) } else { sv = *v } @@ -24021,11 +24077,13 @@ func awsAwsquery_deserializeDocumentDBInstanceRoles(v *[]*types.DBInstanceRole, } for { if strings.EqualFold("DBInstanceRole", t.Name.Local) { - var col *types.DBInstanceRole + var col types.DBInstanceRole nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstanceRole(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBInstanceRole(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -24038,23 +24096,25 @@ func awsAwsquery_deserializeDocumentDBInstanceRoles(v *[]*types.DBInstanceRole, return nil } -func awsAwsquery_deserializeDocumentDBInstanceRolesUnwrapped(v *[]*types.DBInstanceRole, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBInstanceRole +func awsAwsquery_deserializeDocumentDBInstanceRolesUnwrapped(v *[]types.DBInstanceRole, decoder smithyxml.NodeDecoder) error { + var sv []types.DBInstanceRole if *v == nil { - sv = make([]*types.DBInstanceRole, 0) + sv = make([]types.DBInstanceRole, 0) } else { sv = *v } switch { default: - var mv *types.DBInstanceRole + var mv types.DBInstanceRole t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstanceRole(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBInstanceRole(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -24095,7 +24155,7 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("Normal", t.Name.Local): @@ -24111,7 +24171,7 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Normal = &xtv + sv.Normal = xtv } case strings.EqualFold("Status", t.Name.Local): @@ -24127,7 +24187,7 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("StatusType", t.Name.Local): @@ -24143,7 +24203,7 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta } if val != nil { xtv := string(val) - sv.StatusType = &xtv + sv.StatusType = ptr.String(xtv) } default: @@ -24156,13 +24216,13 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfo(v **types.DBInstanceSta return nil } -func awsAwsquery_deserializeDocumentDBInstanceStatusInfoList(v *[]*types.DBInstanceStatusInfo, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBInstanceStatusInfoList(v *[]types.DBInstanceStatusInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBInstanceStatusInfo + var sv []types.DBInstanceStatusInfo if *v == nil { - sv = make([]*types.DBInstanceStatusInfo, 0) + sv = make([]types.DBInstanceStatusInfo, 0) } else { sv = *v } @@ -24178,11 +24238,13 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfoList(v *[]*types.DBInsta } for { if strings.EqualFold("DBInstanceStatusInfo", t.Name.Local) { - var col *types.DBInstanceStatusInfo + var col types.DBInstanceStatusInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstanceStatusInfo(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBInstanceStatusInfo(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -24195,23 +24257,25 @@ func awsAwsquery_deserializeDocumentDBInstanceStatusInfoList(v *[]*types.DBInsta return nil } -func awsAwsquery_deserializeDocumentDBInstanceStatusInfoListUnwrapped(v *[]*types.DBInstanceStatusInfo, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBInstanceStatusInfo +func awsAwsquery_deserializeDocumentDBInstanceStatusInfoListUnwrapped(v *[]types.DBInstanceStatusInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.DBInstanceStatusInfo if *v == nil { - sv = make([]*types.DBInstanceStatusInfo, 0) + sv = make([]types.DBInstanceStatusInfo, 0) } else { sv = *v } switch { default: - var mv *types.DBInstanceStatusInfo + var mv types.DBInstanceStatusInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBInstanceStatusInfo(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBInstanceStatusInfo(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -24252,7 +24316,7 @@ func awsAwsquery_deserializeDocumentDBLogFileNotFoundFault(v **types.DBLogFileNo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24300,7 +24364,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroup(v **types.DBParameterGroup, } if val != nil { xtv := string(val) - sv.DBParameterGroupArn = &xtv + sv.DBParameterGroupArn = ptr.String(xtv) } case strings.EqualFold("DBParameterGroupFamily", t.Name.Local): @@ -24316,7 +24380,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroup(v **types.DBParameterGroup, } if val != nil { xtv := string(val) - sv.DBParameterGroupFamily = &xtv + sv.DBParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("DBParameterGroupName", t.Name.Local): @@ -24332,7 +24396,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroup(v **types.DBParameterGroup, } if val != nil { xtv := string(val) - sv.DBParameterGroupName = &xtv + sv.DBParameterGroupName = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -24348,7 +24412,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroup(v **types.DBParameterGroup, } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } default: @@ -24396,7 +24460,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroupAlreadyExistsFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24409,13 +24473,13 @@ func awsAwsquery_deserializeDocumentDBParameterGroupAlreadyExistsFault(v **types return nil } -func awsAwsquery_deserializeDocumentDBParameterGroupList(v *[]*types.DBParameterGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBParameterGroupList(v *[]types.DBParameterGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBParameterGroup + var sv []types.DBParameterGroup if *v == nil { - sv = make([]*types.DBParameterGroup, 0) + sv = make([]types.DBParameterGroup, 0) } else { sv = *v } @@ -24431,11 +24495,13 @@ func awsAwsquery_deserializeDocumentDBParameterGroupList(v *[]*types.DBParameter } for { if strings.EqualFold("DBParameterGroup", t.Name.Local) { - var col *types.DBParameterGroup + var col types.DBParameterGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBParameterGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -24448,23 +24514,25 @@ func awsAwsquery_deserializeDocumentDBParameterGroupList(v *[]*types.DBParameter return nil } -func awsAwsquery_deserializeDocumentDBParameterGroupListUnwrapped(v *[]*types.DBParameterGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBParameterGroup +func awsAwsquery_deserializeDocumentDBParameterGroupListUnwrapped(v *[]types.DBParameterGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.DBParameterGroup if *v == nil { - sv = make([]*types.DBParameterGroup, 0) + sv = make([]types.DBParameterGroup, 0) } else { sv = *v } switch { default: - var mv *types.DBParameterGroup + var mv types.DBParameterGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBParameterGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -24505,7 +24573,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroupNotFoundFault(v **types.DBPa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24553,7 +24621,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroupQuotaExceededFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24601,7 +24669,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroupStatus(v **types.DBParameter } if val != nil { xtv := string(val) - sv.DBParameterGroupName = &xtv + sv.DBParameterGroupName = ptr.String(xtv) } case strings.EqualFold("ParameterApplyStatus", t.Name.Local): @@ -24617,7 +24685,7 @@ func awsAwsquery_deserializeDocumentDBParameterGroupStatus(v **types.DBParameter } if val != nil { xtv := string(val) - sv.ParameterApplyStatus = &xtv + sv.ParameterApplyStatus = ptr.String(xtv) } default: @@ -24630,13 +24698,13 @@ func awsAwsquery_deserializeDocumentDBParameterGroupStatus(v **types.DBParameter return nil } -func awsAwsquery_deserializeDocumentDBParameterGroupStatusList(v *[]*types.DBParameterGroupStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBParameterGroupStatusList(v *[]types.DBParameterGroupStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBParameterGroupStatus + var sv []types.DBParameterGroupStatus if *v == nil { - sv = make([]*types.DBParameterGroupStatus, 0) + sv = make([]types.DBParameterGroupStatus, 0) } else { sv = *v } @@ -24652,11 +24720,13 @@ func awsAwsquery_deserializeDocumentDBParameterGroupStatusList(v *[]*types.DBPar } for { if strings.EqualFold("DBParameterGroup", t.Name.Local) { - var col *types.DBParameterGroupStatus + var col types.DBParameterGroupStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBParameterGroupStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBParameterGroupStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -24669,23 +24739,25 @@ func awsAwsquery_deserializeDocumentDBParameterGroupStatusList(v *[]*types.DBPar return nil } -func awsAwsquery_deserializeDocumentDBParameterGroupStatusListUnwrapped(v *[]*types.DBParameterGroupStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBParameterGroupStatus +func awsAwsquery_deserializeDocumentDBParameterGroupStatusListUnwrapped(v *[]types.DBParameterGroupStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.DBParameterGroupStatus if *v == nil { - sv = make([]*types.DBParameterGroupStatus, 0) + sv = make([]types.DBParameterGroupStatus, 0) } else { sv = *v } switch { default: - var mv *types.DBParameterGroupStatus + var mv types.DBParameterGroupStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBParameterGroupStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBParameterGroupStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -24733,7 +24805,7 @@ func awsAwsquery_deserializeDocumentDBProxy(v **types.DBProxy, decoder smithyxml if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case strings.EqualFold("DBProxyArn", t.Name.Local): @@ -24749,7 +24821,7 @@ func awsAwsquery_deserializeDocumentDBProxy(v **types.DBProxy, decoder smithyxml } if val != nil { xtv := string(val) - sv.DBProxyArn = &xtv + sv.DBProxyArn = ptr.String(xtv) } case strings.EqualFold("DBProxyName", t.Name.Local): @@ -24765,7 +24837,7 @@ func awsAwsquery_deserializeDocumentDBProxy(v **types.DBProxy, decoder smithyxml } if val != nil { xtv := string(val) - sv.DBProxyName = &xtv + sv.DBProxyName = ptr.String(xtv) } case strings.EqualFold("DebugLogging", t.Name.Local): @@ -24781,7 +24853,7 @@ func awsAwsquery_deserializeDocumentDBProxy(v **types.DBProxy, decoder smithyxml if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DebugLogging = &xtv + sv.DebugLogging = xtv } case strings.EqualFold("Endpoint", t.Name.Local): @@ -24797,7 +24869,7 @@ func awsAwsquery_deserializeDocumentDBProxy(v **types.DBProxy, decoder smithyxml } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("EngineFamily", t.Name.Local): @@ -24813,7 +24885,7 @@ func awsAwsquery_deserializeDocumentDBProxy(v **types.DBProxy, decoder smithyxml } if val != nil { xtv := string(val) - sv.EngineFamily = &xtv + sv.EngineFamily = ptr.String(xtv) } case strings.EqualFold("IdleClientTimeout", t.Name.Local): @@ -24830,7 +24902,7 @@ func awsAwsquery_deserializeDocumentDBProxy(v **types.DBProxy, decoder smithyxml if err != nil { return err } - sv.IdleClientTimeout = ptr.Int32(int32(i64)) + sv.IdleClientTimeout = int32(i64) } case strings.EqualFold("RequireTLS", t.Name.Local): @@ -24846,7 +24918,7 @@ func awsAwsquery_deserializeDocumentDBProxy(v **types.DBProxy, decoder smithyxml if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.RequireTLS = &xtv + sv.RequireTLS = xtv } case strings.EqualFold("RoleArn", t.Name.Local): @@ -24862,7 +24934,7 @@ func awsAwsquery_deserializeDocumentDBProxy(v **types.DBProxy, decoder smithyxml } if val != nil { xtv := string(val) - sv.RoleArn = &xtv + sv.RoleArn = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -24892,7 +24964,7 @@ func awsAwsquery_deserializeDocumentDBProxy(v **types.DBProxy, decoder smithyxml if err != nil { return err } - sv.UpdatedDate = &t + sv.UpdatedDate = ptr.Time(t) } case strings.EqualFold("VpcSecurityGroupIds", t.Name.Local): @@ -24952,7 +25024,7 @@ func awsAwsquery_deserializeDocumentDBProxyAlreadyExistsFault(v **types.DBProxyA } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24965,13 +25037,13 @@ func awsAwsquery_deserializeDocumentDBProxyAlreadyExistsFault(v **types.DBProxyA return nil } -func awsAwsquery_deserializeDocumentDBProxyList(v *[]*types.DBProxy, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBProxyList(v *[]types.DBProxy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBProxy + var sv []types.DBProxy if *v == nil { - sv = make([]*types.DBProxy, 0) + sv = make([]types.DBProxy, 0) } else { sv = *v } @@ -24987,11 +25059,13 @@ func awsAwsquery_deserializeDocumentDBProxyList(v *[]*types.DBProxy, decoder smi } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.DBProxy + var col types.DBProxy nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBProxy(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBProxy(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -25004,23 +25078,25 @@ func awsAwsquery_deserializeDocumentDBProxyList(v *[]*types.DBProxy, decoder smi return nil } -func awsAwsquery_deserializeDocumentDBProxyListUnwrapped(v *[]*types.DBProxy, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBProxy +func awsAwsquery_deserializeDocumentDBProxyListUnwrapped(v *[]types.DBProxy, decoder smithyxml.NodeDecoder) error { + var sv []types.DBProxy if *v == nil { - sv = make([]*types.DBProxy, 0) + sv = make([]types.DBProxy, 0) } else { sv = *v } switch { default: - var mv *types.DBProxy + var mv types.DBProxy t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBProxy(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBProxy(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -25061,7 +25137,7 @@ func awsAwsquery_deserializeDocumentDBProxyNotFoundFault(v **types.DBProxyNotFou } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25109,7 +25185,7 @@ func awsAwsquery_deserializeDocumentDBProxyQuotaExceededFault(v **types.DBProxyQ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25157,7 +25233,7 @@ func awsAwsquery_deserializeDocumentDBProxyTarget(v **types.DBProxyTarget, decod } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -25174,7 +25250,7 @@ func awsAwsquery_deserializeDocumentDBProxyTarget(v **types.DBProxyTarget, decod if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case strings.EqualFold("RdsResourceId", t.Name.Local): @@ -25190,7 +25266,7 @@ func awsAwsquery_deserializeDocumentDBProxyTarget(v **types.DBProxyTarget, decod } if val != nil { xtv := string(val) - sv.RdsResourceId = &xtv + sv.RdsResourceId = ptr.String(xtv) } case strings.EqualFold("TargetArn", t.Name.Local): @@ -25206,7 +25282,7 @@ func awsAwsquery_deserializeDocumentDBProxyTarget(v **types.DBProxyTarget, decod } if val != nil { xtv := string(val) - sv.TargetArn = &xtv + sv.TargetArn = ptr.String(xtv) } case strings.EqualFold("TargetHealth", t.Name.Local): @@ -25228,7 +25304,7 @@ func awsAwsquery_deserializeDocumentDBProxyTarget(v **types.DBProxyTarget, decod } if val != nil { xtv := string(val) - sv.TrackedClusterId = &xtv + sv.TrackedClusterId = ptr.String(xtv) } case strings.EqualFold("Type", t.Name.Local): @@ -25289,7 +25365,7 @@ func awsAwsquery_deserializeDocumentDBProxyTargetAlreadyRegisteredFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25344,7 +25420,7 @@ func awsAwsquery_deserializeDocumentDBProxyTargetGroup(v **types.DBProxyTargetGr if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case strings.EqualFold("DBProxyName", t.Name.Local): @@ -25360,7 +25436,7 @@ func awsAwsquery_deserializeDocumentDBProxyTargetGroup(v **types.DBProxyTargetGr } if val != nil { xtv := string(val) - sv.DBProxyName = &xtv + sv.DBProxyName = ptr.String(xtv) } case strings.EqualFold("IsDefault", t.Name.Local): @@ -25376,7 +25452,7 @@ func awsAwsquery_deserializeDocumentDBProxyTargetGroup(v **types.DBProxyTargetGr if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsDefault = &xtv + sv.IsDefault = xtv } case strings.EqualFold("Status", t.Name.Local): @@ -25392,7 +25468,7 @@ func awsAwsquery_deserializeDocumentDBProxyTargetGroup(v **types.DBProxyTargetGr } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("TargetGroupArn", t.Name.Local): @@ -25408,7 +25484,7 @@ func awsAwsquery_deserializeDocumentDBProxyTargetGroup(v **types.DBProxyTargetGr } if val != nil { xtv := string(val) - sv.TargetGroupArn = &xtv + sv.TargetGroupArn = ptr.String(xtv) } case strings.EqualFold("TargetGroupName", t.Name.Local): @@ -25424,7 +25500,7 @@ func awsAwsquery_deserializeDocumentDBProxyTargetGroup(v **types.DBProxyTargetGr } if val != nil { xtv := string(val) - sv.TargetGroupName = &xtv + sv.TargetGroupName = ptr.String(xtv) } case strings.EqualFold("UpdatedDate", t.Name.Local): @@ -25441,7 +25517,7 @@ func awsAwsquery_deserializeDocumentDBProxyTargetGroup(v **types.DBProxyTargetGr if err != nil { return err } - sv.UpdatedDate = &t + sv.UpdatedDate = ptr.Time(t) } default: @@ -25489,7 +25565,7 @@ func awsAwsquery_deserializeDocumentDBProxyTargetGroupNotFoundFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25537,7 +25613,7 @@ func awsAwsquery_deserializeDocumentDBProxyTargetNotFoundFault(v **types.DBProxy } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25585,7 +25661,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroup(v **types.DBSecurityGroup, d } if val != nil { xtv := string(val) - sv.DBSecurityGroupArn = &xtv + sv.DBSecurityGroupArn = ptr.String(xtv) } case strings.EqualFold("DBSecurityGroupDescription", t.Name.Local): @@ -25601,7 +25677,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroup(v **types.DBSecurityGroup, d } if val != nil { xtv := string(val) - sv.DBSecurityGroupDescription = &xtv + sv.DBSecurityGroupDescription = ptr.String(xtv) } case strings.EqualFold("DBSecurityGroupName", t.Name.Local): @@ -25617,7 +25693,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroup(v **types.DBSecurityGroup, d } if val != nil { xtv := string(val) - sv.DBSecurityGroupName = &xtv + sv.DBSecurityGroupName = ptr.String(xtv) } case strings.EqualFold("EC2SecurityGroups", t.Name.Local): @@ -25645,7 +25721,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroup(v **types.DBSecurityGroup, d } if val != nil { xtv := string(val) - sv.OwnerId = &xtv + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("VpcId", t.Name.Local): @@ -25661,7 +25737,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroup(v **types.DBSecurityGroup, d } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -25709,7 +25785,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupAlreadyExistsFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25757,7 +25833,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupMembership(v **types.DBSecuri } if val != nil { xtv := string(val) - sv.DBSecurityGroupName = &xtv + sv.DBSecurityGroupName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -25773,7 +25849,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupMembership(v **types.DBSecuri } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -25786,13 +25862,13 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupMembership(v **types.DBSecuri return nil } -func awsAwsquery_deserializeDocumentDBSecurityGroupMembershipList(v *[]*types.DBSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBSecurityGroupMembershipList(v *[]types.DBSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBSecurityGroupMembership + var sv []types.DBSecurityGroupMembership if *v == nil { - sv = make([]*types.DBSecurityGroupMembership, 0) + sv = make([]types.DBSecurityGroupMembership, 0) } else { sv = *v } @@ -25808,11 +25884,13 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupMembershipList(v *[]*types.DB } for { if strings.EqualFold("DBSecurityGroup", t.Name.Local) { - var col *types.DBSecurityGroupMembership + var col types.DBSecurityGroupMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSecurityGroupMembership(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -25825,23 +25903,25 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupMembershipList(v *[]*types.DB return nil } -func awsAwsquery_deserializeDocumentDBSecurityGroupMembershipListUnwrapped(v *[]*types.DBSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBSecurityGroupMembership +func awsAwsquery_deserializeDocumentDBSecurityGroupMembershipListUnwrapped(v *[]types.DBSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.DBSecurityGroupMembership if *v == nil { - sv = make([]*types.DBSecurityGroupMembership, 0) + sv = make([]types.DBSecurityGroupMembership, 0) } else { sv = *v } switch { default: - var mv *types.DBSecurityGroupMembership + var mv types.DBSecurityGroupMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSecurityGroupMembership(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -25882,7 +25962,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupNotFoundFault(v **types.DBSec } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25930,7 +26010,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupNotSupportedFault(v **types.D } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25978,7 +26058,7 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupQuotaExceededFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25991,13 +26071,13 @@ func awsAwsquery_deserializeDocumentDBSecurityGroupQuotaExceededFault(v **types. return nil } -func awsAwsquery_deserializeDocumentDBSecurityGroups(v *[]*types.DBSecurityGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBSecurityGroups(v *[]types.DBSecurityGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBSecurityGroup + var sv []types.DBSecurityGroup if *v == nil { - sv = make([]*types.DBSecurityGroup, 0) + sv = make([]types.DBSecurityGroup, 0) } else { sv = *v } @@ -26013,11 +26093,13 @@ func awsAwsquery_deserializeDocumentDBSecurityGroups(v *[]*types.DBSecurityGroup } for { if strings.EqualFold("DBSecurityGroup", t.Name.Local) { - var col *types.DBSecurityGroup + var col types.DBSecurityGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSecurityGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBSecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -26030,23 +26112,25 @@ func awsAwsquery_deserializeDocumentDBSecurityGroups(v *[]*types.DBSecurityGroup return nil } -func awsAwsquery_deserializeDocumentDBSecurityGroupsUnwrapped(v *[]*types.DBSecurityGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBSecurityGroup +func awsAwsquery_deserializeDocumentDBSecurityGroupsUnwrapped(v *[]types.DBSecurityGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.DBSecurityGroup if *v == nil { - sv = make([]*types.DBSecurityGroup, 0) + sv = make([]types.DBSecurityGroup, 0) } else { sv = *v } switch { default: - var mv *types.DBSecurityGroup + var mv types.DBSecurityGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSecurityGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBSecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -26088,7 +26172,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi if err != nil { return err } - sv.AllocatedStorage = ptr.Int32(int32(i64)) + sv.AllocatedStorage = int32(i64) } case strings.EqualFold("AvailabilityZone", t.Name.Local): @@ -26104,7 +26188,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("DBInstanceIdentifier", t.Name.Local): @@ -26120,7 +26204,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.DBInstanceIdentifier = &xtv + sv.DBInstanceIdentifier = ptr.String(xtv) } case strings.EqualFold("DbiResourceId", t.Name.Local): @@ -26136,7 +26220,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.DbiResourceId = &xtv + sv.DbiResourceId = ptr.String(xtv) } case strings.EqualFold("DBSnapshotArn", t.Name.Local): @@ -26152,7 +26236,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.DBSnapshotArn = &xtv + sv.DBSnapshotArn = ptr.String(xtv) } case strings.EqualFold("DBSnapshotIdentifier", t.Name.Local): @@ -26168,7 +26252,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.DBSnapshotIdentifier = &xtv + sv.DBSnapshotIdentifier = ptr.String(xtv) } case strings.EqualFold("Encrypted", t.Name.Local): @@ -26184,7 +26268,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("Engine", t.Name.Local): @@ -26200,7 +26284,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -26216,7 +26300,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("IAMDatabaseAuthenticationEnabled", t.Name.Local): @@ -26232,7 +26316,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IAMDatabaseAuthenticationEnabled = &xtv + sv.IAMDatabaseAuthenticationEnabled = xtv } case strings.EqualFold("InstanceCreateTime", t.Name.Local): @@ -26249,7 +26333,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi if err != nil { return err } - sv.InstanceCreateTime = &t + sv.InstanceCreateTime = ptr.Time(t) } case strings.EqualFold("Iops", t.Name.Local): @@ -26282,7 +26366,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("LicenseModel", t.Name.Local): @@ -26298,7 +26382,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.LicenseModel = &xtv + sv.LicenseModel = ptr.String(xtv) } case strings.EqualFold("MasterUsername", t.Name.Local): @@ -26314,7 +26398,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.MasterUsername = &xtv + sv.MasterUsername = ptr.String(xtv) } case strings.EqualFold("OptionGroupName", t.Name.Local): @@ -26330,7 +26414,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.OptionGroupName = &xtv + sv.OptionGroupName = ptr.String(xtv) } case strings.EqualFold("PercentProgress", t.Name.Local): @@ -26347,7 +26431,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi if err != nil { return err } - sv.PercentProgress = ptr.Int32(int32(i64)) + sv.PercentProgress = int32(i64) } case strings.EqualFold("Port", t.Name.Local): @@ -26364,7 +26448,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case strings.EqualFold("ProcessorFeatures", t.Name.Local): @@ -26387,7 +26471,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi if err != nil { return err } - sv.SnapshotCreateTime = &t + sv.SnapshotCreateTime = ptr.Time(t) } case strings.EqualFold("SnapshotType", t.Name.Local): @@ -26403,7 +26487,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.SnapshotType = &xtv + sv.SnapshotType = ptr.String(xtv) } case strings.EqualFold("SourceDBSnapshotIdentifier", t.Name.Local): @@ -26419,7 +26503,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.SourceDBSnapshotIdentifier = &xtv + sv.SourceDBSnapshotIdentifier = ptr.String(xtv) } case strings.EqualFold("SourceRegion", t.Name.Local): @@ -26435,7 +26519,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.SourceRegion = &xtv + sv.SourceRegion = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -26451,7 +26535,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("StorageType", t.Name.Local): @@ -26467,7 +26551,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.StorageType = &xtv + sv.StorageType = ptr.String(xtv) } case strings.EqualFold("TagList", t.Name.Local): @@ -26489,7 +26573,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.TdeCredentialArn = &xtv + sv.TdeCredentialArn = ptr.String(xtv) } case strings.EqualFold("Timezone", t.Name.Local): @@ -26505,7 +26589,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.Timezone = &xtv + sv.Timezone = ptr.String(xtv) } case strings.EqualFold("VpcId", t.Name.Local): @@ -26521,7 +26605,7 @@ func awsAwsquery_deserializeDocumentDBSnapshot(v **types.DBSnapshot, decoder smi } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -26569,7 +26653,7 @@ func awsAwsquery_deserializeDocumentDBSnapshotAlreadyExistsFault(v **types.DBSna } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26617,7 +26701,7 @@ func awsAwsquery_deserializeDocumentDBSnapshotAttribute(v **types.DBSnapshotAttr } if val != nil { xtv := string(val) - sv.AttributeName = &xtv + sv.AttributeName = ptr.String(xtv) } case strings.EqualFold("AttributeValues", t.Name.Local): @@ -26636,13 +26720,13 @@ func awsAwsquery_deserializeDocumentDBSnapshotAttribute(v **types.DBSnapshotAttr return nil } -func awsAwsquery_deserializeDocumentDBSnapshotAttributeList(v *[]*types.DBSnapshotAttribute, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBSnapshotAttributeList(v *[]types.DBSnapshotAttribute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBSnapshotAttribute + var sv []types.DBSnapshotAttribute if *v == nil { - sv = make([]*types.DBSnapshotAttribute, 0) + sv = make([]types.DBSnapshotAttribute, 0) } else { sv = *v } @@ -26658,11 +26742,13 @@ func awsAwsquery_deserializeDocumentDBSnapshotAttributeList(v *[]*types.DBSnapsh } for { if strings.EqualFold("DBSnapshotAttribute", t.Name.Local) { - var col *types.DBSnapshotAttribute + var col types.DBSnapshotAttribute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSnapshotAttribute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBSnapshotAttribute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -26675,23 +26761,25 @@ func awsAwsquery_deserializeDocumentDBSnapshotAttributeList(v *[]*types.DBSnapsh return nil } -func awsAwsquery_deserializeDocumentDBSnapshotAttributeListUnwrapped(v *[]*types.DBSnapshotAttribute, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBSnapshotAttribute +func awsAwsquery_deserializeDocumentDBSnapshotAttributeListUnwrapped(v *[]types.DBSnapshotAttribute, decoder smithyxml.NodeDecoder) error { + var sv []types.DBSnapshotAttribute if *v == nil { - sv = make([]*types.DBSnapshotAttribute, 0) + sv = make([]types.DBSnapshotAttribute, 0) } else { sv = *v } switch { default: - var mv *types.DBSnapshotAttribute + var mv types.DBSnapshotAttribute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSnapshotAttribute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBSnapshotAttribute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -26738,7 +26826,7 @@ func awsAwsquery_deserializeDocumentDBSnapshotAttributesResult(v **types.DBSnaps } if val != nil { xtv := string(val) - sv.DBSnapshotIdentifier = &xtv + sv.DBSnapshotIdentifier = ptr.String(xtv) } default: @@ -26751,13 +26839,13 @@ func awsAwsquery_deserializeDocumentDBSnapshotAttributesResult(v **types.DBSnaps return nil } -func awsAwsquery_deserializeDocumentDBSnapshotList(v *[]*types.DBSnapshot, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBSnapshotList(v *[]types.DBSnapshot, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBSnapshot + var sv []types.DBSnapshot if *v == nil { - sv = make([]*types.DBSnapshot, 0) + sv = make([]types.DBSnapshot, 0) } else { sv = *v } @@ -26773,11 +26861,13 @@ func awsAwsquery_deserializeDocumentDBSnapshotList(v *[]*types.DBSnapshot, decod } for { if strings.EqualFold("DBSnapshot", t.Name.Local) { - var col *types.DBSnapshot + var col types.DBSnapshot nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSnapshot(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBSnapshot(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -26790,23 +26880,25 @@ func awsAwsquery_deserializeDocumentDBSnapshotList(v *[]*types.DBSnapshot, decod return nil } -func awsAwsquery_deserializeDocumentDBSnapshotListUnwrapped(v *[]*types.DBSnapshot, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBSnapshot +func awsAwsquery_deserializeDocumentDBSnapshotListUnwrapped(v *[]types.DBSnapshot, decoder smithyxml.NodeDecoder) error { + var sv []types.DBSnapshot if *v == nil { - sv = make([]*types.DBSnapshot, 0) + sv = make([]types.DBSnapshot, 0) } else { sv = *v } switch { default: - var mv *types.DBSnapshot + var mv types.DBSnapshot t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSnapshot(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBSnapshot(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -26847,7 +26939,7 @@ func awsAwsquery_deserializeDocumentDBSnapshotNotFoundFault(v **types.DBSnapshot } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26895,7 +26987,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.DBSubnetGroupArn = &xtv + sv.DBSubnetGroupArn = ptr.String(xtv) } case strings.EqualFold("DBSubnetGroupDescription", t.Name.Local): @@ -26911,7 +27003,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.DBSubnetGroupDescription = &xtv + sv.DBSubnetGroupDescription = ptr.String(xtv) } case strings.EqualFold("DBSubnetGroupName", t.Name.Local): @@ -26927,7 +27019,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.DBSubnetGroupName = &xtv + sv.DBSubnetGroupName = ptr.String(xtv) } case strings.EqualFold("SubnetGroupStatus", t.Name.Local): @@ -26943,7 +27035,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.SubnetGroupStatus = &xtv + sv.SubnetGroupStatus = ptr.String(xtv) } case strings.EqualFold("Subnets", t.Name.Local): @@ -26965,7 +27057,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroup(v **types.DBSubnetGroup, decod } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -27013,7 +27105,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupAlreadyExistsFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27061,7 +27153,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupDoesNotCoverEnoughAZs(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27109,7 +27201,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupNotAllowedFault(v **types.DBSub } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27157,7 +27249,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupNotFoundFault(v **types.DBSubne } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27205,7 +27297,7 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupQuotaExceededFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27218,13 +27310,13 @@ func awsAwsquery_deserializeDocumentDBSubnetGroupQuotaExceededFault(v **types.DB return nil } -func awsAwsquery_deserializeDocumentDBSubnetGroups(v *[]*types.DBSubnetGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDBSubnetGroups(v *[]types.DBSubnetGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBSubnetGroup + var sv []types.DBSubnetGroup if *v == nil { - sv = make([]*types.DBSubnetGroup, 0) + sv = make([]types.DBSubnetGroup, 0) } else { sv = *v } @@ -27240,11 +27332,13 @@ func awsAwsquery_deserializeDocumentDBSubnetGroups(v *[]*types.DBSubnetGroup, de } for { if strings.EqualFold("DBSubnetGroup", t.Name.Local) { - var col *types.DBSubnetGroup + var col types.DBSubnetGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSubnetGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBSubnetGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -27257,23 +27351,25 @@ func awsAwsquery_deserializeDocumentDBSubnetGroups(v *[]*types.DBSubnetGroup, de return nil } -func awsAwsquery_deserializeDocumentDBSubnetGroupsUnwrapped(v *[]*types.DBSubnetGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBSubnetGroup +func awsAwsquery_deserializeDocumentDBSubnetGroupsUnwrapped(v *[]types.DBSubnetGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.DBSubnetGroup if *v == nil { - sv = make([]*types.DBSubnetGroup, 0) + sv = make([]types.DBSubnetGroup, 0) } else { sv = *v } switch { default: - var mv *types.DBSubnetGroup + var mv types.DBSubnetGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBSubnetGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBSubnetGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -27314,7 +27410,7 @@ func awsAwsquery_deserializeDocumentDBSubnetQuotaExceededFault(v **types.DBSubne } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27362,7 +27458,7 @@ func awsAwsquery_deserializeDocumentDBUpgradeDependencyFailureFault(v **types.DB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27411,7 +27507,7 @@ func awsAwsquery_deserializeDocumentDescribeDBLogFilesDetails(v **types.Describe if err != nil { return err } - sv.LastWritten = &i64 + sv.LastWritten = i64 } case strings.EqualFold("LogFileName", t.Name.Local): @@ -27427,7 +27523,7 @@ func awsAwsquery_deserializeDocumentDescribeDBLogFilesDetails(v **types.Describe } if val != nil { xtv := string(val) - sv.LogFileName = &xtv + sv.LogFileName = ptr.String(xtv) } case strings.EqualFold("Size", t.Name.Local): @@ -27444,7 +27540,7 @@ func awsAwsquery_deserializeDocumentDescribeDBLogFilesDetails(v **types.Describe if err != nil { return err } - sv.Size = &i64 + sv.Size = i64 } default: @@ -27457,13 +27553,13 @@ func awsAwsquery_deserializeDocumentDescribeDBLogFilesDetails(v **types.Describe return nil } -func awsAwsquery_deserializeDocumentDescribeDBLogFilesList(v *[]*types.DescribeDBLogFilesDetails, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDescribeDBLogFilesList(v *[]types.DescribeDBLogFilesDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DescribeDBLogFilesDetails + var sv []types.DescribeDBLogFilesDetails if *v == nil { - sv = make([]*types.DescribeDBLogFilesDetails, 0) + sv = make([]types.DescribeDBLogFilesDetails, 0) } else { sv = *v } @@ -27479,11 +27575,13 @@ func awsAwsquery_deserializeDocumentDescribeDBLogFilesList(v *[]*types.DescribeD } for { if strings.EqualFold("DescribeDBLogFilesDetails", t.Name.Local) { - var col *types.DescribeDBLogFilesDetails + var col types.DescribeDBLogFilesDetails nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDescribeDBLogFilesDetails(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDescribeDBLogFilesDetails(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -27496,23 +27594,25 @@ func awsAwsquery_deserializeDocumentDescribeDBLogFilesList(v *[]*types.DescribeD return nil } -func awsAwsquery_deserializeDocumentDescribeDBLogFilesListUnwrapped(v *[]*types.DescribeDBLogFilesDetails, decoder smithyxml.NodeDecoder) error { - var sv []*types.DescribeDBLogFilesDetails +func awsAwsquery_deserializeDocumentDescribeDBLogFilesListUnwrapped(v *[]types.DescribeDBLogFilesDetails, decoder smithyxml.NodeDecoder) error { + var sv []types.DescribeDBLogFilesDetails if *v == nil { - sv = make([]*types.DescribeDBLogFilesDetails, 0) + sv = make([]types.DescribeDBLogFilesDetails, 0) } else { sv = *v } switch { default: - var mv *types.DescribeDBLogFilesDetails + var mv types.DescribeDBLogFilesDetails t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDescribeDBLogFilesDetails(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDescribeDBLogFilesDetails(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -27553,7 +27653,7 @@ func awsAwsquery_deserializeDocumentDomainMembership(v **types.DomainMembership, } if val != nil { xtv := string(val) - sv.Domain = &xtv + sv.Domain = ptr.String(xtv) } case strings.EqualFold("FQDN", t.Name.Local): @@ -27569,7 +27669,7 @@ func awsAwsquery_deserializeDocumentDomainMembership(v **types.DomainMembership, } if val != nil { xtv := string(val) - sv.FQDN = &xtv + sv.FQDN = ptr.String(xtv) } case strings.EqualFold("IAMRoleName", t.Name.Local): @@ -27585,7 +27685,7 @@ func awsAwsquery_deserializeDocumentDomainMembership(v **types.DomainMembership, } if val != nil { xtv := string(val) - sv.IAMRoleName = &xtv + sv.IAMRoleName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -27601,7 +27701,7 @@ func awsAwsquery_deserializeDocumentDomainMembership(v **types.DomainMembership, } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -27614,13 +27714,13 @@ func awsAwsquery_deserializeDocumentDomainMembership(v **types.DomainMembership, return nil } -func awsAwsquery_deserializeDocumentDomainMembershipList(v *[]*types.DomainMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDomainMembershipList(v *[]types.DomainMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DomainMembership + var sv []types.DomainMembership if *v == nil { - sv = make([]*types.DomainMembership, 0) + sv = make([]types.DomainMembership, 0) } else { sv = *v } @@ -27636,11 +27736,13 @@ func awsAwsquery_deserializeDocumentDomainMembershipList(v *[]*types.DomainMembe } for { if strings.EqualFold("DomainMembership", t.Name.Local) { - var col *types.DomainMembership + var col types.DomainMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDomainMembership(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDomainMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -27653,23 +27755,25 @@ func awsAwsquery_deserializeDocumentDomainMembershipList(v *[]*types.DomainMembe return nil } -func awsAwsquery_deserializeDocumentDomainMembershipListUnwrapped(v *[]*types.DomainMembership, decoder smithyxml.NodeDecoder) error { - var sv []*types.DomainMembership +func awsAwsquery_deserializeDocumentDomainMembershipListUnwrapped(v *[]types.DomainMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.DomainMembership if *v == nil { - sv = make([]*types.DomainMembership, 0) + sv = make([]types.DomainMembership, 0) } else { sv = *v } switch { default: - var mv *types.DomainMembership + var mv types.DomainMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDomainMembership(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDomainMembership(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -27710,7 +27814,7 @@ func awsAwsquery_deserializeDocumentDomainNotFoundFault(v **types.DomainNotFound } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27759,7 +27863,7 @@ func awsAwsquery_deserializeDocumentDoubleRange(v **types.DoubleRange, decoder s if err != nil { return err } - sv.From = &f64 + sv.From = f64 } case strings.EqualFold("To", t.Name.Local): @@ -27776,7 +27880,7 @@ func awsAwsquery_deserializeDocumentDoubleRange(v **types.DoubleRange, decoder s if err != nil { return err } - sv.To = &f64 + sv.To = f64 } default: @@ -27789,13 +27893,13 @@ func awsAwsquery_deserializeDocumentDoubleRange(v **types.DoubleRange, decoder s return nil } -func awsAwsquery_deserializeDocumentDoubleRangeList(v *[]*types.DoubleRange, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDoubleRangeList(v *[]types.DoubleRange, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DoubleRange + var sv []types.DoubleRange if *v == nil { - sv = make([]*types.DoubleRange, 0) + sv = make([]types.DoubleRange, 0) } else { sv = *v } @@ -27811,11 +27915,13 @@ func awsAwsquery_deserializeDocumentDoubleRangeList(v *[]*types.DoubleRange, dec } for { if strings.EqualFold("DoubleRange", t.Name.Local) { - var col *types.DoubleRange + var col types.DoubleRange nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDoubleRange(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDoubleRange(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -27828,23 +27934,25 @@ func awsAwsquery_deserializeDocumentDoubleRangeList(v *[]*types.DoubleRange, dec return nil } -func awsAwsquery_deserializeDocumentDoubleRangeListUnwrapped(v *[]*types.DoubleRange, decoder smithyxml.NodeDecoder) error { - var sv []*types.DoubleRange +func awsAwsquery_deserializeDocumentDoubleRangeListUnwrapped(v *[]types.DoubleRange, decoder smithyxml.NodeDecoder) error { + var sv []types.DoubleRange if *v == nil { - sv = make([]*types.DoubleRange, 0) + sv = make([]types.DoubleRange, 0) } else { sv = *v } switch { default: - var mv *types.DoubleRange + var mv types.DoubleRange t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDoubleRange(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDoubleRange(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -27885,7 +27993,7 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, } if val != nil { xtv := string(val) - sv.EC2SecurityGroupId = &xtv + sv.EC2SecurityGroupId = ptr.String(xtv) } case strings.EqualFold("EC2SecurityGroupName", t.Name.Local): @@ -27901,7 +28009,7 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, } if val != nil { xtv := string(val) - sv.EC2SecurityGroupName = &xtv + sv.EC2SecurityGroupName = ptr.String(xtv) } case strings.EqualFold("EC2SecurityGroupOwnerId", t.Name.Local): @@ -27917,7 +28025,7 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, } if val != nil { xtv := string(val) - sv.EC2SecurityGroupOwnerId = &xtv + sv.EC2SecurityGroupOwnerId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -27933,7 +28041,7 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -27946,13 +28054,13 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, return nil } -func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]*types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EC2SecurityGroup + var sv []types.EC2SecurityGroup if *v == nil { - sv = make([]*types.EC2SecurityGroup, 0) + sv = make([]types.EC2SecurityGroup, 0) } else { sv = *v } @@ -27968,11 +28076,13 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]*types.EC2Security } for { if strings.EqualFold("EC2SecurityGroup", t.Name.Local) { - var col *types.EC2SecurityGroup + var col types.EC2SecurityGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -27985,23 +28095,25 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]*types.EC2Security return nil } -func awsAwsquery_deserializeDocumentEC2SecurityGroupListUnwrapped(v *[]*types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.EC2SecurityGroup +func awsAwsquery_deserializeDocumentEC2SecurityGroupListUnwrapped(v *[]types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.EC2SecurityGroup if *v == nil { - sv = make([]*types.EC2SecurityGroup, 0) + sv = make([]types.EC2SecurityGroup, 0) } else { sv = *v } switch { default: - var mv *types.EC2SecurityGroup + var mv types.EC2SecurityGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -28042,7 +28154,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx } if val != nil { xtv := string(val) - sv.Address = &xtv + sv.Address = ptr.String(xtv) } case strings.EqualFold("HostedZoneId", t.Name.Local): @@ -28058,7 +28170,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -28075,7 +28187,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -28123,7 +28235,7 @@ func awsAwsquery_deserializeDocumentEngineDefaults(v **types.EngineDefaults, dec } if val != nil { xtv := string(val) - sv.DBParameterGroupFamily = &xtv + sv.DBParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("Marker", t.Name.Local): @@ -28139,7 +28251,7 @@ func awsAwsquery_deserializeDocumentEngineDefaults(v **types.EngineDefaults, dec } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): @@ -28158,13 +28270,13 @@ func awsAwsquery_deserializeDocumentEngineDefaults(v **types.EngineDefaults, dec return nil } -func awsAwsquery_deserializeDocumentEngineModeList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEngineModeList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -28182,20 +28294,17 @@ func awsAwsquery_deserializeDocumentEngineModeList(v *[]*string, decoder smithyx decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -28208,17 +28317,17 @@ func awsAwsquery_deserializeDocumentEngineModeList(v *[]*string, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentEngineModeListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentEngineModeListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -28226,14 +28335,11 @@ func awsAwsquery_deserializeDocumentEngineModeListUnwrapped(v *[]*string, decode return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -28276,7 +28382,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod if err != nil { return err } - sv.Date = &t + sv.Date = ptr.Time(t) } case strings.EqualFold("EventCategories", t.Name.Local): @@ -28298,7 +28404,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("SourceArn", t.Name.Local): @@ -28314,7 +28420,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.SourceArn = &xtv + sv.SourceArn = ptr.String(xtv) } case strings.EqualFold("SourceIdentifier", t.Name.Local): @@ -28330,7 +28436,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.SourceIdentifier = &xtv + sv.SourceIdentifier = ptr.String(xtv) } case strings.EqualFold("SourceType", t.Name.Local): @@ -28356,13 +28462,13 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -28380,20 +28486,17 @@ func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]*string, decoder sm decoder = memberDecoder for { if strings.EqualFold("EventCategory", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -28406,17 +28509,17 @@ func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]*string, decoder sm return nil } -func awsAwsquery_deserializeDocumentEventCategoriesListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentEventCategoriesListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -28424,14 +28527,11 @@ func awsAwsquery_deserializeDocumentEventCategoriesListUnwrapped(v *[]*string, d return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -28479,7 +28579,7 @@ func awsAwsquery_deserializeDocumentEventCategoriesMap(v **types.EventCategories } if val != nil { xtv := string(val) - sv.SourceType = &xtv + sv.SourceType = ptr.String(xtv) } default: @@ -28492,13 +28592,13 @@ func awsAwsquery_deserializeDocumentEventCategoriesMap(v **types.EventCategories return nil } -func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]*types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EventCategoriesMap + var sv []types.EventCategoriesMap if *v == nil { - sv = make([]*types.EventCategoriesMap, 0) + sv = make([]types.EventCategoriesMap, 0) } else { sv = *v } @@ -28514,11 +28614,13 @@ func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]*types.EventCate } for { if strings.EqualFold("EventCategoriesMap", t.Name.Local) { - var col *types.EventCategoriesMap + var col types.EventCategoriesMap nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -28531,35 +28633,37 @@ func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]*types.EventCate return nil } -func awsAwsquery_deserializeDocumentEventCategoriesMapListUnwrapped(v *[]*types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { - var sv []*types.EventCategoriesMap +func awsAwsquery_deserializeDocumentEventCategoriesMapListUnwrapped(v *[]types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { + var sv []types.EventCategoriesMap if *v == nil { - sv = make([]*types.EventCategoriesMap, 0) + sv = make([]types.EventCategoriesMap, 0) } else { sv = *v } switch { default: - var mv *types.EventCategoriesMap + var mv types.EventCategoriesMap t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventList(v *[]types.Event, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Event + var sv []types.Event if *v == nil { - sv = make([]*types.Event, 0) + sv = make([]types.Event, 0) } else { sv = *v } @@ -28575,11 +28679,13 @@ func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyx } for { if strings.EqualFold("Event", t.Name.Local) { - var col *types.Event + var col types.Event nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEvent(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -28592,23 +28698,25 @@ func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentEventListUnwrapped(v *[]*types.Event, decoder smithyxml.NodeDecoder) error { - var sv []*types.Event +func awsAwsquery_deserializeDocumentEventListUnwrapped(v *[]types.Event, decoder smithyxml.NodeDecoder) error { + var sv []types.Event if *v == nil { - sv = make([]*types.Event, 0) + sv = make([]types.Event, 0) } else { sv = *v } switch { default: - var mv *types.Event + var mv types.Event t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEvent(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -28649,7 +28757,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.CustomerAwsId = &xtv + sv.CustomerAwsId = ptr.String(xtv) } case strings.EqualFold("CustSubscriptionId", t.Name.Local): @@ -28665,7 +28773,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.CustSubscriptionId = &xtv + sv.CustSubscriptionId = ptr.String(xtv) } case strings.EqualFold("Enabled", t.Name.Local): @@ -28681,7 +28789,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } case strings.EqualFold("EventCategoriesList", t.Name.Local): @@ -28703,7 +28811,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.EventSubscriptionArn = &xtv + sv.EventSubscriptionArn = ptr.String(xtv) } case strings.EqualFold("SnsTopicArn", t.Name.Local): @@ -28719,7 +28827,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.SnsTopicArn = &xtv + sv.SnsTopicArn = ptr.String(xtv) } case strings.EqualFold("SourceIdsList", t.Name.Local): @@ -28741,7 +28849,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.SourceType = &xtv + sv.SourceType = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -28757,7 +28865,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("SubscriptionCreationTime", t.Name.Local): @@ -28773,7 +28881,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.SubscriptionCreationTime = &xtv + sv.SubscriptionCreationTime = ptr.String(xtv) } default: @@ -28821,7 +28929,7 @@ func awsAwsquery_deserializeDocumentEventSubscriptionQuotaExceededFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -28834,13 +28942,13 @@ func awsAwsquery_deserializeDocumentEventSubscriptionQuotaExceededFault(v **type return nil } -func awsAwsquery_deserializeDocumentEventSubscriptionsList(v *[]*types.EventSubscription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventSubscriptionsList(v *[]types.EventSubscription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EventSubscription + var sv []types.EventSubscription if *v == nil { - sv = make([]*types.EventSubscription, 0) + sv = make([]types.EventSubscription, 0) } else { sv = *v } @@ -28856,11 +28964,13 @@ func awsAwsquery_deserializeDocumentEventSubscriptionsList(v *[]*types.EventSubs } for { if strings.EqualFold("EventSubscription", t.Name.Local) { - var col *types.EventSubscription + var col types.EventSubscription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventSubscription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEventSubscription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -28873,23 +28983,25 @@ func awsAwsquery_deserializeDocumentEventSubscriptionsList(v *[]*types.EventSubs return nil } -func awsAwsquery_deserializeDocumentEventSubscriptionsListUnwrapped(v *[]*types.EventSubscription, decoder smithyxml.NodeDecoder) error { - var sv []*types.EventSubscription +func awsAwsquery_deserializeDocumentEventSubscriptionsListUnwrapped(v *[]types.EventSubscription, decoder smithyxml.NodeDecoder) error { + var sv []types.EventSubscription if *v == nil { - sv = make([]*types.EventSubscription, 0) + sv = make([]types.EventSubscription, 0) } else { sv = *v } switch { default: - var mv *types.EventSubscription + var mv types.EventSubscription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventSubscription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEventSubscription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -28936,7 +29048,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } if val != nil { xtv := string(val) - sv.ExportTaskIdentifier = &xtv + sv.ExportTaskIdentifier = ptr.String(xtv) } case strings.EqualFold("FailureCause", t.Name.Local): @@ -28952,7 +29064,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } if val != nil { xtv := string(val) - sv.FailureCause = &xtv + sv.FailureCause = ptr.String(xtv) } case strings.EqualFold("IamRoleArn", t.Name.Local): @@ -28968,7 +29080,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } if val != nil { xtv := string(val) - sv.IamRoleArn = &xtv + sv.IamRoleArn = ptr.String(xtv) } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -28984,7 +29096,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("PercentProgress", t.Name.Local): @@ -29001,7 +29113,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi if err != nil { return err } - sv.PercentProgress = ptr.Int32(int32(i64)) + sv.PercentProgress = int32(i64) } case strings.EqualFold("S3Bucket", t.Name.Local): @@ -29017,7 +29129,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } if val != nil { xtv := string(val) - sv.S3Bucket = &xtv + sv.S3Bucket = ptr.String(xtv) } case strings.EqualFold("S3Prefix", t.Name.Local): @@ -29033,7 +29145,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } if val != nil { xtv := string(val) - sv.S3Prefix = &xtv + sv.S3Prefix = ptr.String(xtv) } case strings.EqualFold("SnapshotTime", t.Name.Local): @@ -29050,7 +29162,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi if err != nil { return err } - sv.SnapshotTime = &t + sv.SnapshotTime = ptr.Time(t) } case strings.EqualFold("SourceArn", t.Name.Local): @@ -29066,7 +29178,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } if val != nil { xtv := string(val) - sv.SourceArn = &xtv + sv.SourceArn = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -29082,7 +29194,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("TaskEndTime", t.Name.Local): @@ -29099,7 +29211,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi if err != nil { return err } - sv.TaskEndTime = &t + sv.TaskEndTime = ptr.Time(t) } case strings.EqualFold("TaskStartTime", t.Name.Local): @@ -29116,7 +29228,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi if err != nil { return err } - sv.TaskStartTime = &t + sv.TaskStartTime = ptr.Time(t) } case strings.EqualFold("TotalExtractedDataInGB", t.Name.Local): @@ -29133,7 +29245,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi if err != nil { return err } - sv.TotalExtractedDataInGB = ptr.Int32(int32(i64)) + sv.TotalExtractedDataInGB = int32(i64) } case strings.EqualFold("WarningMessage", t.Name.Local): @@ -29149,7 +29261,7 @@ func awsAwsquery_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } if val != nil { xtv := string(val) - sv.WarningMessage = &xtv + sv.WarningMessage = ptr.String(xtv) } default: @@ -29197,7 +29309,7 @@ func awsAwsquery_deserializeDocumentExportTaskAlreadyExistsFault(v **types.Expor } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29245,7 +29357,7 @@ func awsAwsquery_deserializeDocumentExportTaskNotFoundFault(v **types.ExportTask } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29258,13 +29370,13 @@ func awsAwsquery_deserializeDocumentExportTaskNotFoundFault(v **types.ExportTask return nil } -func awsAwsquery_deserializeDocumentExportTasksList(v *[]*types.ExportTask, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentExportTasksList(v *[]types.ExportTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ExportTask + var sv []types.ExportTask if *v == nil { - sv = make([]*types.ExportTask, 0) + sv = make([]types.ExportTask, 0) } else { sv = *v } @@ -29280,11 +29392,13 @@ func awsAwsquery_deserializeDocumentExportTasksList(v *[]*types.ExportTask, deco } for { if strings.EqualFold("ExportTask", t.Name.Local) { - var col *types.ExportTask + var col types.ExportTask nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentExportTask(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentExportTask(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -29297,35 +29411,37 @@ func awsAwsquery_deserializeDocumentExportTasksList(v *[]*types.ExportTask, deco return nil } -func awsAwsquery_deserializeDocumentExportTasksListUnwrapped(v *[]*types.ExportTask, decoder smithyxml.NodeDecoder) error { - var sv []*types.ExportTask +func awsAwsquery_deserializeDocumentExportTasksListUnwrapped(v *[]types.ExportTask, decoder smithyxml.NodeDecoder) error { + var sv []types.ExportTask if *v == nil { - sv = make([]*types.ExportTask, 0) + sv = make([]types.ExportTask, 0) } else { sv = *v } switch { default: - var mv *types.ExportTask + var mv types.ExportTask t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentExportTask(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentExportTask(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentFeatureNameList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentFeatureNameList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -29343,20 +29459,17 @@ func awsAwsquery_deserializeDocumentFeatureNameList(v *[]*string, decoder smithy decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -29369,17 +29482,17 @@ func awsAwsquery_deserializeDocumentFeatureNameList(v *[]*string, decoder smithy return nil } -func awsAwsquery_deserializeDocumentFeatureNameListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentFeatureNameListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -29387,14 +29500,11 @@ func awsAwsquery_deserializeDocumentFeatureNameListUnwrapped(v *[]*string, decod return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -29436,7 +29546,7 @@ func awsAwsquery_deserializeDocumentGlobalCluster(v **types.GlobalCluster, decod } if val != nil { xtv := string(val) - sv.DatabaseName = &xtv + sv.DatabaseName = ptr.String(xtv) } case strings.EqualFold("DeletionProtection", t.Name.Local): @@ -29452,7 +29562,7 @@ func awsAwsquery_deserializeDocumentGlobalCluster(v **types.GlobalCluster, decod if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.DeletionProtection = &xtv + sv.DeletionProtection = ptr.Bool(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -29468,7 +29578,7 @@ func awsAwsquery_deserializeDocumentGlobalCluster(v **types.GlobalCluster, decod } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -29484,7 +29594,7 @@ func awsAwsquery_deserializeDocumentGlobalCluster(v **types.GlobalCluster, decod } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("GlobalClusterArn", t.Name.Local): @@ -29500,7 +29610,7 @@ func awsAwsquery_deserializeDocumentGlobalCluster(v **types.GlobalCluster, decod } if val != nil { xtv := string(val) - sv.GlobalClusterArn = &xtv + sv.GlobalClusterArn = ptr.String(xtv) } case strings.EqualFold("GlobalClusterIdentifier", t.Name.Local): @@ -29516,7 +29626,7 @@ func awsAwsquery_deserializeDocumentGlobalCluster(v **types.GlobalCluster, decod } if val != nil { xtv := string(val) - sv.GlobalClusterIdentifier = &xtv + sv.GlobalClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("GlobalClusterMembers", t.Name.Local): @@ -29538,7 +29648,7 @@ func awsAwsquery_deserializeDocumentGlobalCluster(v **types.GlobalCluster, decod } if val != nil { xtv := string(val) - sv.GlobalClusterResourceId = &xtv + sv.GlobalClusterResourceId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -29554,7 +29664,7 @@ func awsAwsquery_deserializeDocumentGlobalCluster(v **types.GlobalCluster, decod } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("StorageEncrypted", t.Name.Local): @@ -29570,7 +29680,7 @@ func awsAwsquery_deserializeDocumentGlobalCluster(v **types.GlobalCluster, decod if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.StorageEncrypted = &xtv + sv.StorageEncrypted = ptr.Bool(xtv) } default: @@ -29618,7 +29728,7 @@ func awsAwsquery_deserializeDocumentGlobalClusterAlreadyExistsFault(v **types.Gl } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29631,13 +29741,13 @@ func awsAwsquery_deserializeDocumentGlobalClusterAlreadyExistsFault(v **types.Gl return nil } -func awsAwsquery_deserializeDocumentGlobalClusterList(v *[]*types.GlobalCluster, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalClusterList(v *[]types.GlobalCluster, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.GlobalCluster + var sv []types.GlobalCluster if *v == nil { - sv = make([]*types.GlobalCluster, 0) + sv = make([]types.GlobalCluster, 0) } else { sv = *v } @@ -29653,11 +29763,13 @@ func awsAwsquery_deserializeDocumentGlobalClusterList(v *[]*types.GlobalCluster, } for { if strings.EqualFold("GlobalClusterMember", t.Name.Local) { - var col *types.GlobalCluster + var col types.GlobalCluster nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGlobalCluster(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentGlobalCluster(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -29670,23 +29782,25 @@ func awsAwsquery_deserializeDocumentGlobalClusterList(v *[]*types.GlobalCluster, return nil } -func awsAwsquery_deserializeDocumentGlobalClusterListUnwrapped(v *[]*types.GlobalCluster, decoder smithyxml.NodeDecoder) error { - var sv []*types.GlobalCluster +func awsAwsquery_deserializeDocumentGlobalClusterListUnwrapped(v *[]types.GlobalCluster, decoder smithyxml.NodeDecoder) error { + var sv []types.GlobalCluster if *v == nil { - sv = make([]*types.GlobalCluster, 0) + sv = make([]types.GlobalCluster, 0) } else { sv = *v } switch { default: - var mv *types.GlobalCluster + var mv types.GlobalCluster t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGlobalCluster(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentGlobalCluster(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -29727,7 +29841,7 @@ func awsAwsquery_deserializeDocumentGlobalClusterMember(v **types.GlobalClusterM } if val != nil { xtv := string(val) - sv.DBClusterArn = &xtv + sv.DBClusterArn = ptr.String(xtv) } case strings.EqualFold("GlobalWriteForwardingStatus", t.Name.Local): @@ -29756,7 +29870,7 @@ func awsAwsquery_deserializeDocumentGlobalClusterMember(v **types.GlobalClusterM if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsWriter = &xtv + sv.IsWriter = xtv } case strings.EqualFold("Readers", t.Name.Local): @@ -29775,13 +29889,13 @@ func awsAwsquery_deserializeDocumentGlobalClusterMember(v **types.GlobalClusterM return nil } -func awsAwsquery_deserializeDocumentGlobalClusterMemberList(v *[]*types.GlobalClusterMember, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentGlobalClusterMemberList(v *[]types.GlobalClusterMember, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.GlobalClusterMember + var sv []types.GlobalClusterMember if *v == nil { - sv = make([]*types.GlobalClusterMember, 0) + sv = make([]types.GlobalClusterMember, 0) } else { sv = *v } @@ -29797,11 +29911,13 @@ func awsAwsquery_deserializeDocumentGlobalClusterMemberList(v *[]*types.GlobalCl } for { if strings.EqualFold("GlobalClusterMember", t.Name.Local) { - var col *types.GlobalClusterMember + var col types.GlobalClusterMember nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGlobalClusterMember(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentGlobalClusterMember(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -29814,23 +29930,25 @@ func awsAwsquery_deserializeDocumentGlobalClusterMemberList(v *[]*types.GlobalCl return nil } -func awsAwsquery_deserializeDocumentGlobalClusterMemberListUnwrapped(v *[]*types.GlobalClusterMember, decoder smithyxml.NodeDecoder) error { - var sv []*types.GlobalClusterMember +func awsAwsquery_deserializeDocumentGlobalClusterMemberListUnwrapped(v *[]types.GlobalClusterMember, decoder smithyxml.NodeDecoder) error { + var sv []types.GlobalClusterMember if *v == nil { - sv = make([]*types.GlobalClusterMember, 0) + sv = make([]types.GlobalClusterMember, 0) } else { sv = *v } switch { default: - var mv *types.GlobalClusterMember + var mv types.GlobalClusterMember t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentGlobalClusterMember(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentGlobalClusterMember(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -29871,7 +29989,7 @@ func awsAwsquery_deserializeDocumentGlobalClusterNotFoundFault(v **types.GlobalC } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29919,7 +30037,7 @@ func awsAwsquery_deserializeDocumentGlobalClusterQuotaExceededFault(v **types.Gl } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -29967,7 +30085,7 @@ func awsAwsquery_deserializeDocumentIamRoleMissingPermissionsFault(v **types.Iam } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30015,7 +30133,7 @@ func awsAwsquery_deserializeDocumentIamRoleNotFoundFault(v **types.IamRoleNotFou } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30063,7 +30181,7 @@ func awsAwsquery_deserializeDocumentInstallationMedia(v **types.InstallationMedi } if val != nil { xtv := string(val) - sv.CustomAvailabilityZoneId = &xtv + sv.CustomAvailabilityZoneId = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -30079,7 +30197,7 @@ func awsAwsquery_deserializeDocumentInstallationMedia(v **types.InstallationMedi } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineInstallationMediaPath", t.Name.Local): @@ -30095,7 +30213,7 @@ func awsAwsquery_deserializeDocumentInstallationMedia(v **types.InstallationMedi } if val != nil { xtv := string(val) - sv.EngineInstallationMediaPath = &xtv + sv.EngineInstallationMediaPath = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -30111,7 +30229,7 @@ func awsAwsquery_deserializeDocumentInstallationMedia(v **types.InstallationMedi } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("FailureCause", t.Name.Local): @@ -30133,7 +30251,7 @@ func awsAwsquery_deserializeDocumentInstallationMedia(v **types.InstallationMedi } if val != nil { xtv := string(val) - sv.InstallationMediaId = &xtv + sv.InstallationMediaId = ptr.String(xtv) } case strings.EqualFold("OSInstallationMediaPath", t.Name.Local): @@ -30149,7 +30267,7 @@ func awsAwsquery_deserializeDocumentInstallationMedia(v **types.InstallationMedi } if val != nil { xtv := string(val) - sv.OSInstallationMediaPath = &xtv + sv.OSInstallationMediaPath = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -30165,7 +30283,7 @@ func awsAwsquery_deserializeDocumentInstallationMedia(v **types.InstallationMedi } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -30213,7 +30331,7 @@ func awsAwsquery_deserializeDocumentInstallationMediaAlreadyExistsFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30261,7 +30379,7 @@ func awsAwsquery_deserializeDocumentInstallationMediaFailureCause(v **types.Inst } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30274,13 +30392,13 @@ func awsAwsquery_deserializeDocumentInstallationMediaFailureCause(v **types.Inst return nil } -func awsAwsquery_deserializeDocumentInstallationMediaList(v *[]*types.InstallationMedia, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentInstallationMediaList(v *[]types.InstallationMedia, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InstallationMedia + var sv []types.InstallationMedia if *v == nil { - sv = make([]*types.InstallationMedia, 0) + sv = make([]types.InstallationMedia, 0) } else { sv = *v } @@ -30296,11 +30414,13 @@ func awsAwsquery_deserializeDocumentInstallationMediaList(v *[]*types.Installati } for { if strings.EqualFold("InstallationMedia", t.Name.Local) { - var col *types.InstallationMedia + var col types.InstallationMedia nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstallationMedia(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentInstallationMedia(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -30313,23 +30433,25 @@ func awsAwsquery_deserializeDocumentInstallationMediaList(v *[]*types.Installati return nil } -func awsAwsquery_deserializeDocumentInstallationMediaListUnwrapped(v *[]*types.InstallationMedia, decoder smithyxml.NodeDecoder) error { - var sv []*types.InstallationMedia +func awsAwsquery_deserializeDocumentInstallationMediaListUnwrapped(v *[]types.InstallationMedia, decoder smithyxml.NodeDecoder) error { + var sv []types.InstallationMedia if *v == nil { - sv = make([]*types.InstallationMedia, 0) + sv = make([]types.InstallationMedia, 0) } else { sv = *v } switch { default: - var mv *types.InstallationMedia + var mv types.InstallationMedia t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentInstallationMedia(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentInstallationMedia(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -30370,7 +30492,7 @@ func awsAwsquery_deserializeDocumentInstallationMediaNotFoundFault(v **types.Ins } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30418,7 +30540,7 @@ func awsAwsquery_deserializeDocumentInstanceQuotaExceededFault(v **types.Instanc } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30466,7 +30588,7 @@ func awsAwsquery_deserializeDocumentInsufficientAvailableIPsInSubnetFault(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30514,7 +30636,7 @@ func awsAwsquery_deserializeDocumentInsufficientDBClusterCapacityFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30562,7 +30684,7 @@ func awsAwsquery_deserializeDocumentInsufficientDBInstanceCapacityFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30610,7 +30732,7 @@ func awsAwsquery_deserializeDocumentInsufficientStorageClusterCapacityFault(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30658,7 +30780,7 @@ func awsAwsquery_deserializeDocumentInvalidDBClusterCapacityFault(v **types.Inva } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30706,7 +30828,7 @@ func awsAwsquery_deserializeDocumentInvalidDBClusterEndpointStateFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30754,7 +30876,7 @@ func awsAwsquery_deserializeDocumentInvalidDBClusterSnapshotStateFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30802,7 +30924,7 @@ func awsAwsquery_deserializeDocumentInvalidDBClusterStateFault(v **types.Invalid } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30850,7 +30972,7 @@ func awsAwsquery_deserializeDocumentInvalidDBInstanceAutomatedBackupStateFault(v } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30898,7 +31020,7 @@ func awsAwsquery_deserializeDocumentInvalidDBInstanceStateFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30946,7 +31068,7 @@ func awsAwsquery_deserializeDocumentInvalidDBParameterGroupStateFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -30994,7 +31116,7 @@ func awsAwsquery_deserializeDocumentInvalidDBProxyStateFault(v **types.InvalidDB } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31042,7 +31164,7 @@ func awsAwsquery_deserializeDocumentInvalidDBSecurityGroupStateFault(v **types.I } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31090,7 +31212,7 @@ func awsAwsquery_deserializeDocumentInvalidDBSnapshotStateFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31138,7 +31260,7 @@ func awsAwsquery_deserializeDocumentInvalidDBSubnetGroupFault(v **types.InvalidD } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31186,7 +31308,7 @@ func awsAwsquery_deserializeDocumentInvalidDBSubnetGroupStateFault(v **types.Inv } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31234,7 +31356,7 @@ func awsAwsquery_deserializeDocumentInvalidDBSubnetStateFault(v **types.InvalidD } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31282,7 +31404,7 @@ func awsAwsquery_deserializeDocumentInvalidEventSubscriptionStateFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31330,7 +31452,7 @@ func awsAwsquery_deserializeDocumentInvalidExportOnlyFault(v **types.InvalidExpo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31378,7 +31500,7 @@ func awsAwsquery_deserializeDocumentInvalidExportSourceStateFault(v **types.Inva } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31426,7 +31548,7 @@ func awsAwsquery_deserializeDocumentInvalidExportTaskStateFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31474,7 +31596,7 @@ func awsAwsquery_deserializeDocumentInvalidGlobalClusterStateFault(v **types.Inv } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31522,7 +31644,7 @@ func awsAwsquery_deserializeDocumentInvalidOptionGroupStateFault(v **types.Inval } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31570,7 +31692,7 @@ func awsAwsquery_deserializeDocumentInvalidRestoreFault(v **types.InvalidRestore } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31618,7 +31740,7 @@ func awsAwsquery_deserializeDocumentInvalidS3BucketFault(v **types.InvalidS3Buck } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31666,7 +31788,7 @@ func awsAwsquery_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, decod } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31714,7 +31836,7 @@ func awsAwsquery_deserializeDocumentInvalidVPCNetworkStateFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31762,7 +31884,7 @@ func awsAwsquery_deserializeDocumentIPRange(v **types.IPRange, decoder smithyxml } if val != nil { xtv := string(val) - sv.CIDRIP = &xtv + sv.CIDRIP = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -31778,7 +31900,7 @@ func awsAwsquery_deserializeDocumentIPRange(v **types.IPRange, decoder smithyxml } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -31791,13 +31913,13 @@ func awsAwsquery_deserializeDocumentIPRange(v **types.IPRange, decoder smithyxml return nil } -func awsAwsquery_deserializeDocumentIPRangeList(v *[]*types.IPRange, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentIPRangeList(v *[]types.IPRange, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.IPRange + var sv []types.IPRange if *v == nil { - sv = make([]*types.IPRange, 0) + sv = make([]types.IPRange, 0) } else { sv = *v } @@ -31813,11 +31935,13 @@ func awsAwsquery_deserializeDocumentIPRangeList(v *[]*types.IPRange, decoder smi } for { if strings.EqualFold("IPRange", t.Name.Local) { - var col *types.IPRange + var col types.IPRange nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentIPRange(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentIPRange(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -31830,23 +31954,25 @@ func awsAwsquery_deserializeDocumentIPRangeList(v *[]*types.IPRange, decoder smi return nil } -func awsAwsquery_deserializeDocumentIPRangeListUnwrapped(v *[]*types.IPRange, decoder smithyxml.NodeDecoder) error { - var sv []*types.IPRange +func awsAwsquery_deserializeDocumentIPRangeListUnwrapped(v *[]types.IPRange, decoder smithyxml.NodeDecoder) error { + var sv []types.IPRange if *v == nil { - sv = make([]*types.IPRange, 0) + sv = make([]types.IPRange, 0) } else { sv = *v } switch { default: - var mv *types.IPRange + var mv types.IPRange t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentIPRange(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentIPRange(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -31887,7 +32013,7 @@ func awsAwsquery_deserializeDocumentKMSKeyNotAccessibleFault(v **types.KMSKeyNot } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -31900,13 +32026,13 @@ func awsAwsquery_deserializeDocumentKMSKeyNotAccessibleFault(v **types.KMSKeyNot return nil } -func awsAwsquery_deserializeDocumentLogTypeList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentLogTypeList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -31924,20 +32050,17 @@ func awsAwsquery_deserializeDocumentLogTypeList(v *[]*string, decoder smithyxml. decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -31950,17 +32073,17 @@ func awsAwsquery_deserializeDocumentLogTypeList(v *[]*string, decoder smithyxml. return nil } -func awsAwsquery_deserializeDocumentLogTypeListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentLogTypeListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -31968,14 +32091,11 @@ func awsAwsquery_deserializeDocumentLogTypeListUnwrapped(v *[]*string, decoder s return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -32017,7 +32137,7 @@ func awsAwsquery_deserializeDocumentMinimumEngineVersionPerAllowedValue(v **type } if val != nil { xtv := string(val) - sv.AllowedValue = &xtv + sv.AllowedValue = ptr.String(xtv) } case strings.EqualFold("MinimumEngineVersion", t.Name.Local): @@ -32033,7 +32153,7 @@ func awsAwsquery_deserializeDocumentMinimumEngineVersionPerAllowedValue(v **type } if val != nil { xtv := string(val) - sv.MinimumEngineVersion = &xtv + sv.MinimumEngineVersion = ptr.String(xtv) } default: @@ -32046,13 +32166,13 @@ func awsAwsquery_deserializeDocumentMinimumEngineVersionPerAllowedValue(v **type return nil } -func awsAwsquery_deserializeDocumentMinimumEngineVersionPerAllowedValueList(v *[]*types.MinimumEngineVersionPerAllowedValue, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMinimumEngineVersionPerAllowedValueList(v *[]types.MinimumEngineVersionPerAllowedValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.MinimumEngineVersionPerAllowedValue + var sv []types.MinimumEngineVersionPerAllowedValue if *v == nil { - sv = make([]*types.MinimumEngineVersionPerAllowedValue, 0) + sv = make([]types.MinimumEngineVersionPerAllowedValue, 0) } else { sv = *v } @@ -32068,11 +32188,13 @@ func awsAwsquery_deserializeDocumentMinimumEngineVersionPerAllowedValueList(v *[ } for { if strings.EqualFold("MinimumEngineVersionPerAllowedValue", t.Name.Local) { - var col *types.MinimumEngineVersionPerAllowedValue + var col types.MinimumEngineVersionPerAllowedValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMinimumEngineVersionPerAllowedValue(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentMinimumEngineVersionPerAllowedValue(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -32085,23 +32207,25 @@ func awsAwsquery_deserializeDocumentMinimumEngineVersionPerAllowedValueList(v *[ return nil } -func awsAwsquery_deserializeDocumentMinimumEngineVersionPerAllowedValueListUnwrapped(v *[]*types.MinimumEngineVersionPerAllowedValue, decoder smithyxml.NodeDecoder) error { - var sv []*types.MinimumEngineVersionPerAllowedValue +func awsAwsquery_deserializeDocumentMinimumEngineVersionPerAllowedValueListUnwrapped(v *[]types.MinimumEngineVersionPerAllowedValue, decoder smithyxml.NodeDecoder) error { + var sv []types.MinimumEngineVersionPerAllowedValue if *v == nil { - sv = make([]*types.MinimumEngineVersionPerAllowedValue, 0) + sv = make([]types.MinimumEngineVersionPerAllowedValue, 0) } else { sv = *v } switch { default: - var mv *types.MinimumEngineVersionPerAllowedValue + var mv types.MinimumEngineVersionPerAllowedValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMinimumEngineVersionPerAllowedValue(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentMinimumEngineVersionPerAllowedValue(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -32148,7 +32272,7 @@ func awsAwsquery_deserializeDocumentOption(v **types.Option, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.OptionDescription = &xtv + sv.OptionDescription = ptr.String(xtv) } case strings.EqualFold("OptionName", t.Name.Local): @@ -32164,7 +32288,7 @@ func awsAwsquery_deserializeDocumentOption(v **types.Option, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.OptionName = &xtv + sv.OptionName = ptr.String(xtv) } case strings.EqualFold("OptionSettings", t.Name.Local): @@ -32186,7 +32310,7 @@ func awsAwsquery_deserializeDocumentOption(v **types.Option, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.OptionVersion = &xtv + sv.OptionVersion = ptr.String(xtv) } case strings.EqualFold("Permanent", t.Name.Local): @@ -32202,7 +32326,7 @@ func awsAwsquery_deserializeDocumentOption(v **types.Option, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Permanent = &xtv + sv.Permanent = xtv } case strings.EqualFold("Persistent", t.Name.Local): @@ -32218,7 +32342,7 @@ func awsAwsquery_deserializeDocumentOption(v **types.Option, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Persistent = &xtv + sv.Persistent = xtv } case strings.EqualFold("Port", t.Name.Local): @@ -32289,7 +32413,7 @@ func awsAwsquery_deserializeDocumentOptionGroup(v **types.OptionGroup, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowsVpcAndNonVpcInstanceMemberships = &xtv + sv.AllowsVpcAndNonVpcInstanceMemberships = xtv } case strings.EqualFold("EngineName", t.Name.Local): @@ -32305,7 +32429,7 @@ func awsAwsquery_deserializeDocumentOptionGroup(v **types.OptionGroup, decoder s } if val != nil { xtv := string(val) - sv.EngineName = &xtv + sv.EngineName = ptr.String(xtv) } case strings.EqualFold("MajorEngineVersion", t.Name.Local): @@ -32321,7 +32445,7 @@ func awsAwsquery_deserializeDocumentOptionGroup(v **types.OptionGroup, decoder s } if val != nil { xtv := string(val) - sv.MajorEngineVersion = &xtv + sv.MajorEngineVersion = ptr.String(xtv) } case strings.EqualFold("OptionGroupArn", t.Name.Local): @@ -32337,7 +32461,7 @@ func awsAwsquery_deserializeDocumentOptionGroup(v **types.OptionGroup, decoder s } if val != nil { xtv := string(val) - sv.OptionGroupArn = &xtv + sv.OptionGroupArn = ptr.String(xtv) } case strings.EqualFold("OptionGroupDescription", t.Name.Local): @@ -32353,7 +32477,7 @@ func awsAwsquery_deserializeDocumentOptionGroup(v **types.OptionGroup, decoder s } if val != nil { xtv := string(val) - sv.OptionGroupDescription = &xtv + sv.OptionGroupDescription = ptr.String(xtv) } case strings.EqualFold("OptionGroupName", t.Name.Local): @@ -32369,7 +32493,7 @@ func awsAwsquery_deserializeDocumentOptionGroup(v **types.OptionGroup, decoder s } if val != nil { xtv := string(val) - sv.OptionGroupName = &xtv + sv.OptionGroupName = ptr.String(xtv) } case strings.EqualFold("Options", t.Name.Local): @@ -32391,7 +32515,7 @@ func awsAwsquery_deserializeDocumentOptionGroup(v **types.OptionGroup, decoder s } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -32439,7 +32563,7 @@ func awsAwsquery_deserializeDocumentOptionGroupAlreadyExistsFault(v **types.Opti } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -32487,7 +32611,7 @@ func awsAwsquery_deserializeDocumentOptionGroupMembership(v **types.OptionGroupM } if val != nil { xtv := string(val) - sv.OptionGroupName = &xtv + sv.OptionGroupName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -32503,7 +32627,7 @@ func awsAwsquery_deserializeDocumentOptionGroupMembership(v **types.OptionGroupM } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -32516,13 +32640,13 @@ func awsAwsquery_deserializeDocumentOptionGroupMembership(v **types.OptionGroupM return nil } -func awsAwsquery_deserializeDocumentOptionGroupMembershipList(v *[]*types.OptionGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOptionGroupMembershipList(v *[]types.OptionGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OptionGroupMembership + var sv []types.OptionGroupMembership if *v == nil { - sv = make([]*types.OptionGroupMembership, 0) + sv = make([]types.OptionGroupMembership, 0) } else { sv = *v } @@ -32538,11 +32662,13 @@ func awsAwsquery_deserializeDocumentOptionGroupMembershipList(v *[]*types.Option } for { if strings.EqualFold("OptionGroupMembership", t.Name.Local) { - var col *types.OptionGroupMembership + var col types.OptionGroupMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionGroupMembership(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOptionGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -32555,23 +32681,25 @@ func awsAwsquery_deserializeDocumentOptionGroupMembershipList(v *[]*types.Option return nil } -func awsAwsquery_deserializeDocumentOptionGroupMembershipListUnwrapped(v *[]*types.OptionGroupMembership, decoder smithyxml.NodeDecoder) error { - var sv []*types.OptionGroupMembership +func awsAwsquery_deserializeDocumentOptionGroupMembershipListUnwrapped(v *[]types.OptionGroupMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.OptionGroupMembership if *v == nil { - sv = make([]*types.OptionGroupMembership, 0) + sv = make([]types.OptionGroupMembership, 0) } else { sv = *v } switch { default: - var mv *types.OptionGroupMembership + var mv types.OptionGroupMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionGroupMembership(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOptionGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -32612,7 +32740,7 @@ func awsAwsquery_deserializeDocumentOptionGroupNotFoundFault(v **types.OptionGro } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -32677,7 +32805,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOption(v **types.OptionGroupOptio } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("EngineName", t.Name.Local): @@ -32693,7 +32821,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOption(v **types.OptionGroupOptio } if val != nil { xtv := string(val) - sv.EngineName = &xtv + sv.EngineName = ptr.String(xtv) } case strings.EqualFold("MajorEngineVersion", t.Name.Local): @@ -32709,7 +32837,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOption(v **types.OptionGroupOptio } if val != nil { xtv := string(val) - sv.MajorEngineVersion = &xtv + sv.MajorEngineVersion = ptr.String(xtv) } case strings.EqualFold("MinimumRequiredMinorEngineVersion", t.Name.Local): @@ -32725,7 +32853,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOption(v **types.OptionGroupOptio } if val != nil { xtv := string(val) - sv.MinimumRequiredMinorEngineVersion = &xtv + sv.MinimumRequiredMinorEngineVersion = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -32741,7 +32869,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOption(v **types.OptionGroupOptio } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("OptionGroupOptionSettings", t.Name.Local): @@ -32781,7 +32909,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOption(v **types.OptionGroupOptio if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Permanent = &xtv + sv.Permanent = xtv } case strings.EqualFold("Persistent", t.Name.Local): @@ -32797,7 +32925,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOption(v **types.OptionGroupOptio if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Persistent = &xtv + sv.Persistent = xtv } case strings.EqualFold("PortRequired", t.Name.Local): @@ -32813,7 +32941,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOption(v **types.OptionGroupOptio if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.PortRequired = &xtv + sv.PortRequired = xtv } case strings.EqualFold("RequiresAutoMinorEngineVersionUpgrade", t.Name.Local): @@ -32829,7 +32957,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOption(v **types.OptionGroupOptio if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.RequiresAutoMinorEngineVersionUpgrade = &xtv + sv.RequiresAutoMinorEngineVersionUpgrade = xtv } case strings.EqualFold("SupportsOptionVersionDowngrade", t.Name.Local): @@ -32845,7 +32973,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOption(v **types.OptionGroupOptio if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.SupportsOptionVersionDowngrade = &xtv + sv.SupportsOptionVersionDowngrade = ptr.Bool(xtv) } case strings.EqualFold("VpcOnly", t.Name.Local): @@ -32861,7 +32989,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOption(v **types.OptionGroupOptio if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.VpcOnly = &xtv + sv.VpcOnly = xtv } default: @@ -32909,7 +33037,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionSetting(v **types.OptionGro } if val != nil { xtv := string(val) - sv.AllowedValues = &xtv + sv.AllowedValues = ptr.String(xtv) } case strings.EqualFold("ApplyType", t.Name.Local): @@ -32925,7 +33053,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionSetting(v **types.OptionGro } if val != nil { xtv := string(val) - sv.ApplyType = &xtv + sv.ApplyType = ptr.String(xtv) } case strings.EqualFold("DefaultValue", t.Name.Local): @@ -32941,7 +33069,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionSetting(v **types.OptionGro } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("IsModifiable", t.Name.Local): @@ -32957,7 +33085,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionSetting(v **types.OptionGro if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsModifiable = &xtv + sv.IsModifiable = xtv } case strings.EqualFold("IsRequired", t.Name.Local): @@ -32973,7 +33101,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionSetting(v **types.OptionGro if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsRequired = &xtv + sv.IsRequired = xtv } case strings.EqualFold("MinimumEngineVersionPerAllowedValue", t.Name.Local): @@ -32995,7 +33123,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionSetting(v **types.OptionGro } if val != nil { xtv := string(val) - sv.SettingDescription = &xtv + sv.SettingDescription = ptr.String(xtv) } case strings.EqualFold("SettingName", t.Name.Local): @@ -33011,7 +33139,7 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionSetting(v **types.OptionGro } if val != nil { xtv := string(val) - sv.SettingName = &xtv + sv.SettingName = ptr.String(xtv) } default: @@ -33024,13 +33152,13 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionSetting(v **types.OptionGro return nil } -func awsAwsquery_deserializeDocumentOptionGroupOptionSettingsList(v *[]*types.OptionGroupOptionSetting, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOptionGroupOptionSettingsList(v *[]types.OptionGroupOptionSetting, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OptionGroupOptionSetting + var sv []types.OptionGroupOptionSetting if *v == nil { - sv = make([]*types.OptionGroupOptionSetting, 0) + sv = make([]types.OptionGroupOptionSetting, 0) } else { sv = *v } @@ -33046,11 +33174,13 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionSettingsList(v *[]*types.Op } for { if strings.EqualFold("OptionGroupOptionSetting", t.Name.Local) { - var col *types.OptionGroupOptionSetting + var col types.OptionGroupOptionSetting nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionGroupOptionSetting(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOptionGroupOptionSetting(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -33063,35 +33193,37 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionSettingsList(v *[]*types.Op return nil } -func awsAwsquery_deserializeDocumentOptionGroupOptionSettingsListUnwrapped(v *[]*types.OptionGroupOptionSetting, decoder smithyxml.NodeDecoder) error { - var sv []*types.OptionGroupOptionSetting +func awsAwsquery_deserializeDocumentOptionGroupOptionSettingsListUnwrapped(v *[]types.OptionGroupOptionSetting, decoder smithyxml.NodeDecoder) error { + var sv []types.OptionGroupOptionSetting if *v == nil { - sv = make([]*types.OptionGroupOptionSetting, 0) + sv = make([]types.OptionGroupOptionSetting, 0) } else { sv = *v } switch { default: - var mv *types.OptionGroupOptionSetting + var mv types.OptionGroupOptionSetting t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionGroupOptionSetting(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOptionGroupOptionSetting(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentOptionGroupOptionsList(v *[]*types.OptionGroupOption, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOptionGroupOptionsList(v *[]types.OptionGroupOption, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OptionGroupOption + var sv []types.OptionGroupOption if *v == nil { - sv = make([]*types.OptionGroupOption, 0) + sv = make([]types.OptionGroupOption, 0) } else { sv = *v } @@ -33107,11 +33239,13 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionsList(v *[]*types.OptionGro } for { if strings.EqualFold("OptionGroupOption", t.Name.Local) { - var col *types.OptionGroupOption + var col types.OptionGroupOption nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionGroupOption(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOptionGroupOption(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -33124,35 +33258,37 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionsList(v *[]*types.OptionGro return nil } -func awsAwsquery_deserializeDocumentOptionGroupOptionsListUnwrapped(v *[]*types.OptionGroupOption, decoder smithyxml.NodeDecoder) error { - var sv []*types.OptionGroupOption +func awsAwsquery_deserializeDocumentOptionGroupOptionsListUnwrapped(v *[]types.OptionGroupOption, decoder smithyxml.NodeDecoder) error { + var sv []types.OptionGroupOption if *v == nil { - sv = make([]*types.OptionGroupOption, 0) + sv = make([]types.OptionGroupOption, 0) } else { sv = *v } switch { default: - var mv *types.OptionGroupOption + var mv types.OptionGroupOption t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionGroupOption(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOptionGroupOption(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentOptionGroupOptionVersionsList(v *[]*types.OptionVersion, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOptionGroupOptionVersionsList(v *[]types.OptionVersion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OptionVersion + var sv []types.OptionVersion if *v == nil { - sv = make([]*types.OptionVersion, 0) + sv = make([]types.OptionVersion, 0) } else { sv = *v } @@ -33168,11 +33304,13 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionVersionsList(v *[]*types.Op } for { if strings.EqualFold("OptionVersion", t.Name.Local) { - var col *types.OptionVersion + var col types.OptionVersion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionVersion(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOptionVersion(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -33185,23 +33323,25 @@ func awsAwsquery_deserializeDocumentOptionGroupOptionVersionsList(v *[]*types.Op return nil } -func awsAwsquery_deserializeDocumentOptionGroupOptionVersionsListUnwrapped(v *[]*types.OptionVersion, decoder smithyxml.NodeDecoder) error { - var sv []*types.OptionVersion +func awsAwsquery_deserializeDocumentOptionGroupOptionVersionsListUnwrapped(v *[]types.OptionVersion, decoder smithyxml.NodeDecoder) error { + var sv []types.OptionVersion if *v == nil { - sv = make([]*types.OptionVersion, 0) + sv = make([]types.OptionVersion, 0) } else { sv = *v } switch { default: - var mv *types.OptionVersion + var mv types.OptionVersion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionVersion(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOptionVersion(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -33242,7 +33382,7 @@ func awsAwsquery_deserializeDocumentOptionGroupQuotaExceededFault(v **types.Opti } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -33255,13 +33395,13 @@ func awsAwsquery_deserializeDocumentOptionGroupQuotaExceededFault(v **types.Opti return nil } -func awsAwsquery_deserializeDocumentOptionGroupsList(v *[]*types.OptionGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOptionGroupsList(v *[]types.OptionGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OptionGroup + var sv []types.OptionGroup if *v == nil { - sv = make([]*types.OptionGroup, 0) + sv = make([]types.OptionGroup, 0) } else { sv = *v } @@ -33277,11 +33417,13 @@ func awsAwsquery_deserializeDocumentOptionGroupsList(v *[]*types.OptionGroup, de } for { if strings.EqualFold("OptionGroup", t.Name.Local) { - var col *types.OptionGroup + var col types.OptionGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOptionGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -33294,35 +33436,37 @@ func awsAwsquery_deserializeDocumentOptionGroupsList(v *[]*types.OptionGroup, de return nil } -func awsAwsquery_deserializeDocumentOptionGroupsListUnwrapped(v *[]*types.OptionGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.OptionGroup +func awsAwsquery_deserializeDocumentOptionGroupsListUnwrapped(v *[]types.OptionGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.OptionGroup if *v == nil { - sv = make([]*types.OptionGroup, 0) + sv = make([]types.OptionGroup, 0) } else { sv = *v } switch { default: - var mv *types.OptionGroup + var mv types.OptionGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOptionGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentOptionsConflictsWith(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOptionsConflictsWith(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -33340,20 +33484,17 @@ func awsAwsquery_deserializeDocumentOptionsConflictsWith(v *[]*string, decoder s decoder = memberDecoder for { if strings.EqualFold("OptionConflictName", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -33366,17 +33507,17 @@ func awsAwsquery_deserializeDocumentOptionsConflictsWith(v *[]*string, decoder s return nil } -func awsAwsquery_deserializeDocumentOptionsConflictsWithUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentOptionsConflictsWithUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -33384,27 +33525,24 @@ func awsAwsquery_deserializeDocumentOptionsConflictsWithUnwrapped(v *[]*string, return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentOptionsDependedOn(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOptionsDependedOn(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -33422,20 +33560,17 @@ func awsAwsquery_deserializeDocumentOptionsDependedOn(v *[]*string, decoder smit decoder = memberDecoder for { if strings.EqualFold("OptionName", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -33448,17 +33583,17 @@ func awsAwsquery_deserializeDocumentOptionsDependedOn(v *[]*string, decoder smit return nil } -func awsAwsquery_deserializeDocumentOptionsDependedOnUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentOptionsDependedOnUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -33466,14 +33601,11 @@ func awsAwsquery_deserializeDocumentOptionsDependedOnUnwrapped(v *[]*string, dec return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -33515,7 +33647,7 @@ func awsAwsquery_deserializeDocumentOptionSetting(v **types.OptionSetting, decod } if val != nil { xtv := string(val) - sv.AllowedValues = &xtv + sv.AllowedValues = ptr.String(xtv) } case strings.EqualFold("ApplyType", t.Name.Local): @@ -33531,7 +33663,7 @@ func awsAwsquery_deserializeDocumentOptionSetting(v **types.OptionSetting, decod } if val != nil { xtv := string(val) - sv.ApplyType = &xtv + sv.ApplyType = ptr.String(xtv) } case strings.EqualFold("DataType", t.Name.Local): @@ -33547,7 +33679,7 @@ func awsAwsquery_deserializeDocumentOptionSetting(v **types.OptionSetting, decod } if val != nil { xtv := string(val) - sv.DataType = &xtv + sv.DataType = ptr.String(xtv) } case strings.EqualFold("DefaultValue", t.Name.Local): @@ -33563,7 +33695,7 @@ func awsAwsquery_deserializeDocumentOptionSetting(v **types.OptionSetting, decod } if val != nil { xtv := string(val) - sv.DefaultValue = &xtv + sv.DefaultValue = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -33579,7 +33711,7 @@ func awsAwsquery_deserializeDocumentOptionSetting(v **types.OptionSetting, decod } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("IsCollection", t.Name.Local): @@ -33595,7 +33727,7 @@ func awsAwsquery_deserializeDocumentOptionSetting(v **types.OptionSetting, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsCollection = &xtv + sv.IsCollection = xtv } case strings.EqualFold("IsModifiable", t.Name.Local): @@ -33611,7 +33743,7 @@ func awsAwsquery_deserializeDocumentOptionSetting(v **types.OptionSetting, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsModifiable = &xtv + sv.IsModifiable = xtv } case strings.EqualFold("Name", t.Name.Local): @@ -33627,7 +33759,7 @@ func awsAwsquery_deserializeDocumentOptionSetting(v **types.OptionSetting, decod } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -33643,7 +33775,7 @@ func awsAwsquery_deserializeDocumentOptionSetting(v **types.OptionSetting, decod } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -33656,13 +33788,13 @@ func awsAwsquery_deserializeDocumentOptionSetting(v **types.OptionSetting, decod return nil } -func awsAwsquery_deserializeDocumentOptionSettingConfigurationList(v *[]*types.OptionSetting, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOptionSettingConfigurationList(v *[]types.OptionSetting, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OptionSetting + var sv []types.OptionSetting if *v == nil { - sv = make([]*types.OptionSetting, 0) + sv = make([]types.OptionSetting, 0) } else { sv = *v } @@ -33678,11 +33810,13 @@ func awsAwsquery_deserializeDocumentOptionSettingConfigurationList(v *[]*types.O } for { if strings.EqualFold("OptionSetting", t.Name.Local) { - var col *types.OptionSetting + var col types.OptionSetting nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionSetting(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOptionSetting(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -33695,35 +33829,37 @@ func awsAwsquery_deserializeDocumentOptionSettingConfigurationList(v *[]*types.O return nil } -func awsAwsquery_deserializeDocumentOptionSettingConfigurationListUnwrapped(v *[]*types.OptionSetting, decoder smithyxml.NodeDecoder) error { - var sv []*types.OptionSetting +func awsAwsquery_deserializeDocumentOptionSettingConfigurationListUnwrapped(v *[]types.OptionSetting, decoder smithyxml.NodeDecoder) error { + var sv []types.OptionSetting if *v == nil { - sv = make([]*types.OptionSetting, 0) + sv = make([]types.OptionSetting, 0) } else { sv = *v } switch { default: - var mv *types.OptionSetting + var mv types.OptionSetting t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOptionSetting(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOptionSetting(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentOptionsList(v *[]*types.Option, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOptionsList(v *[]types.Option, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Option + var sv []types.Option if *v == nil { - sv = make([]*types.Option, 0) + sv = make([]types.Option, 0) } else { sv = *v } @@ -33739,11 +33875,13 @@ func awsAwsquery_deserializeDocumentOptionsList(v *[]*types.Option, decoder smit } for { if strings.EqualFold("Option", t.Name.Local) { - var col *types.Option + var col types.Option nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOption(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOption(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -33756,23 +33894,25 @@ func awsAwsquery_deserializeDocumentOptionsList(v *[]*types.Option, decoder smit return nil } -func awsAwsquery_deserializeDocumentOptionsListUnwrapped(v *[]*types.Option, decoder smithyxml.NodeDecoder) error { - var sv []*types.Option +func awsAwsquery_deserializeDocumentOptionsListUnwrapped(v *[]types.Option, decoder smithyxml.NodeDecoder) error { + var sv []types.Option if *v == nil { - sv = make([]*types.Option, 0) + sv = make([]types.Option, 0) } else { sv = *v } switch { default: - var mv *types.Option + var mv types.Option t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOption(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOption(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -33813,7 +33953,7 @@ func awsAwsquery_deserializeDocumentOptionVersion(v **types.OptionVersion, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsDefault = &xtv + sv.IsDefault = xtv } case strings.EqualFold("Version", t.Name.Local): @@ -33829,7 +33969,7 @@ func awsAwsquery_deserializeDocumentOptionVersion(v **types.OptionVersion, decod } if val != nil { xtv := string(val) - sv.Version = &xtv + sv.Version = ptr.String(xtv) } default: @@ -33877,7 +34017,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.AvailabilityZoneGroup = &xtv + sv.AvailabilityZoneGroup = ptr.String(xtv) } case strings.EqualFold("AvailabilityZones", t.Name.Local): @@ -33905,7 +34045,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.DBInstanceClass = &xtv + sv.DBInstanceClass = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -33921,7 +34061,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -33937,7 +34077,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("LicenseModel", t.Name.Local): @@ -33953,7 +34093,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.LicenseModel = &xtv + sv.LicenseModel = ptr.String(xtv) } case strings.EqualFold("MaxIopsPerDbInstance", t.Name.Local): @@ -33987,7 +34127,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return err } - sv.MaxIopsPerGib = &f64 + sv.MaxIopsPerGib = ptr.Float64(f64) } case strings.EqualFold("MaxStorageSize", t.Name.Local): @@ -34038,7 +34178,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return err } - sv.MinIopsPerGib = &f64 + sv.MinIopsPerGib = ptr.Float64(f64) } case strings.EqualFold("MinStorageSize", t.Name.Local): @@ -34071,7 +34211,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MultiAZCapable = &xtv + sv.MultiAZCapable = xtv } case strings.EqualFold("OutpostCapable", t.Name.Local): @@ -34087,7 +34227,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.OutpostCapable = &xtv + sv.OutpostCapable = xtv } case strings.EqualFold("ReadReplicaCapable", t.Name.Local): @@ -34103,7 +34243,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReadReplicaCapable = &xtv + sv.ReadReplicaCapable = xtv } case strings.EqualFold("StorageType", t.Name.Local): @@ -34119,7 +34259,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl } if val != nil { xtv := string(val) - sv.StorageType = &xtv + sv.StorageType = ptr.String(xtv) } case strings.EqualFold("SupportedEngineModes", t.Name.Local): @@ -34141,7 +34281,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsEnhancedMonitoring = &xtv + sv.SupportsEnhancedMonitoring = xtv } case strings.EqualFold("SupportsGlobalDatabases", t.Name.Local): @@ -34157,7 +34297,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsGlobalDatabases = &xtv + sv.SupportsGlobalDatabases = xtv } case strings.EqualFold("SupportsIAMDatabaseAuthentication", t.Name.Local): @@ -34173,7 +34313,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsIAMDatabaseAuthentication = &xtv + sv.SupportsIAMDatabaseAuthentication = xtv } case strings.EqualFold("SupportsIops", t.Name.Local): @@ -34189,7 +34329,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsIops = &xtv + sv.SupportsIops = xtv } case strings.EqualFold("SupportsKerberosAuthentication", t.Name.Local): @@ -34205,7 +34345,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.SupportsKerberosAuthentication = &xtv + sv.SupportsKerberosAuthentication = ptr.Bool(xtv) } case strings.EqualFold("SupportsPerformanceInsights", t.Name.Local): @@ -34221,7 +34361,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsPerformanceInsights = &xtv + sv.SupportsPerformanceInsights = xtv } case strings.EqualFold("SupportsStorageAutoscaling", t.Name.Local): @@ -34237,7 +34377,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.SupportsStorageAutoscaling = &xtv + sv.SupportsStorageAutoscaling = ptr.Bool(xtv) } case strings.EqualFold("SupportsStorageEncryption", t.Name.Local): @@ -34253,7 +34393,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsStorageEncryption = &xtv + sv.SupportsStorageEncryption = xtv } case strings.EqualFold("Vpc", t.Name.Local): @@ -34269,7 +34409,7 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Vpc = &xtv + sv.Vpc = xtv } default: @@ -34282,13 +34422,13 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl return nil } -func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsList(v *[]*types.OrderableDBInstanceOption, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsList(v *[]types.OrderableDBInstanceOption, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OrderableDBInstanceOption + var sv []types.OrderableDBInstanceOption if *v == nil { - sv = make([]*types.OrderableDBInstanceOption, 0) + sv = make([]types.OrderableDBInstanceOption, 0) } else { sv = *v } @@ -34304,11 +34444,13 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsList(v *[]*types.O } for { if strings.EqualFold("OrderableDBInstanceOption", t.Name.Local) { - var col *types.OrderableDBInstanceOption + var col types.OrderableDBInstanceOption nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOrderableDBInstanceOption(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOrderableDBInstanceOption(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -34321,23 +34463,25 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsList(v *[]*types.O return nil } -func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsListUnwrapped(v *[]*types.OrderableDBInstanceOption, decoder smithyxml.NodeDecoder) error { - var sv []*types.OrderableDBInstanceOption +func awsAwsquery_deserializeDocumentOrderableDBInstanceOptionsListUnwrapped(v *[]types.OrderableDBInstanceOption, decoder smithyxml.NodeDecoder) error { + var sv []types.OrderableDBInstanceOption if *v == nil { - sv = make([]*types.OrderableDBInstanceOption, 0) + sv = make([]types.OrderableDBInstanceOption, 0) } else { sv = *v } switch { default: - var mv *types.OrderableDBInstanceOption + var mv types.OrderableDBInstanceOption t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOrderableDBInstanceOption(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOrderableDBInstanceOption(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -34378,7 +34522,7 @@ func awsAwsquery_deserializeDocumentOutpost(v **types.Outpost, decoder smithyxml } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } default: @@ -34426,7 +34570,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.AllowedValues = &xtv + sv.AllowedValues = ptr.String(xtv) } case strings.EqualFold("ApplyMethod", t.Name.Local): @@ -34455,7 +34599,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ApplyType = &xtv + sv.ApplyType = ptr.String(xtv) } case strings.EqualFold("DataType", t.Name.Local): @@ -34471,7 +34615,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.DataType = &xtv + sv.DataType = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -34487,7 +34631,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("IsModifiable", t.Name.Local): @@ -34503,7 +34647,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsModifiable = &xtv + sv.IsModifiable = xtv } case strings.EqualFold("MinimumEngineVersion", t.Name.Local): @@ -34519,7 +34663,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.MinimumEngineVersion = &xtv + sv.MinimumEngineVersion = ptr.String(xtv) } case strings.EqualFold("ParameterName", t.Name.Local): @@ -34535,7 +34679,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ParameterName = &xtv + sv.ParameterName = ptr.String(xtv) } case strings.EqualFold("ParameterValue", t.Name.Local): @@ -34551,7 +34695,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ParameterValue = &xtv + sv.ParameterValue = ptr.String(xtv) } case strings.EqualFold("Source", t.Name.Local): @@ -34567,7 +34711,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.Source = &xtv + sv.Source = ptr.String(xtv) } case strings.EqualFold("SupportedEngineModes", t.Name.Local): @@ -34586,13 +34730,13 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith return nil } -func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentParametersList(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Parameter + var sv []types.Parameter if *v == nil { - sv = make([]*types.Parameter, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } @@ -34608,11 +34752,13 @@ func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decode } for { if strings.EqualFold("Parameter", t.Name.Local) { - var col *types.Parameter + var col types.Parameter nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameter(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -34625,23 +34771,25 @@ func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decode return nil } -func awsAwsquery_deserializeDocumentParametersListUnwrapped(v *[]*types.Parameter, decoder smithyxml.NodeDecoder) error { - var sv []*types.Parameter +func awsAwsquery_deserializeDocumentParametersListUnwrapped(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { + var sv []types.Parameter if *v == nil { - sv = make([]*types.Parameter, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } switch { default: - var mv *types.Parameter + var mv types.Parameter t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameter(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -34726,7 +34874,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa } if val != nil { xtv := string(val) - sv.Action = &xtv + sv.Action = ptr.String(xtv) } case strings.EqualFold("AutoAppliedAfterDate", t.Name.Local): @@ -34743,7 +34891,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa if err != nil { return err } - sv.AutoAppliedAfterDate = &t + sv.AutoAppliedAfterDate = ptr.Time(t) } case strings.EqualFold("CurrentApplyDate", t.Name.Local): @@ -34760,7 +34908,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa if err != nil { return err } - sv.CurrentApplyDate = &t + sv.CurrentApplyDate = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -34776,7 +34924,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("ForcedApplyDate", t.Name.Local): @@ -34793,7 +34941,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa if err != nil { return err } - sv.ForcedApplyDate = &t + sv.ForcedApplyDate = ptr.Time(t) } case strings.EqualFold("OptInStatus", t.Name.Local): @@ -34809,7 +34957,7 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa } if val != nil { xtv := string(val) - sv.OptInStatus = &xtv + sv.OptInStatus = ptr.String(xtv) } default: @@ -34822,13 +34970,13 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceAction(v **types.PendingMa return nil } -func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetails(v *[]*types.PendingMaintenanceAction, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetails(v *[]types.PendingMaintenanceAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PendingMaintenanceAction + var sv []types.PendingMaintenanceAction if *v == nil { - sv = make([]*types.PendingMaintenanceAction, 0) + sv = make([]types.PendingMaintenanceAction, 0) } else { sv = *v } @@ -34844,11 +34992,13 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetails(v *[]*types. } for { if strings.EqualFold("PendingMaintenanceAction", t.Name.Local) { - var col *types.PendingMaintenanceAction + var col types.PendingMaintenanceAction nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPendingMaintenanceAction(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPendingMaintenanceAction(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -34861,35 +35011,37 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetails(v *[]*types. return nil } -func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetailsUnwrapped(v *[]*types.PendingMaintenanceAction, decoder smithyxml.NodeDecoder) error { - var sv []*types.PendingMaintenanceAction +func awsAwsquery_deserializeDocumentPendingMaintenanceActionDetailsUnwrapped(v *[]types.PendingMaintenanceAction, decoder smithyxml.NodeDecoder) error { + var sv []types.PendingMaintenanceAction if *v == nil { - sv = make([]*types.PendingMaintenanceAction, 0) + sv = make([]types.PendingMaintenanceAction, 0) } else { sv = *v } switch { default: - var mv *types.PendingMaintenanceAction + var mv types.PendingMaintenanceAction t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPendingMaintenanceAction(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPendingMaintenanceAction(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentPendingMaintenanceActions(v *[]*types.ResourcePendingMaintenanceActions, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPendingMaintenanceActions(v *[]types.ResourcePendingMaintenanceActions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ResourcePendingMaintenanceActions + var sv []types.ResourcePendingMaintenanceActions if *v == nil { - sv = make([]*types.ResourcePendingMaintenanceActions, 0) + sv = make([]types.ResourcePendingMaintenanceActions, 0) } else { sv = *v } @@ -34905,11 +35057,13 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceActions(v *[]*types.Resour } for { if strings.EqualFold("ResourcePendingMaintenanceActions", t.Name.Local) { - var col *types.ResourcePendingMaintenanceActions + var col types.ResourcePendingMaintenanceActions nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -34922,23 +35076,25 @@ func awsAwsquery_deserializeDocumentPendingMaintenanceActions(v *[]*types.Resour return nil } -func awsAwsquery_deserializeDocumentPendingMaintenanceActionsUnwrapped(v *[]*types.ResourcePendingMaintenanceActions, decoder smithyxml.NodeDecoder) error { - var sv []*types.ResourcePendingMaintenanceActions +func awsAwsquery_deserializeDocumentPendingMaintenanceActionsUnwrapped(v *[]types.ResourcePendingMaintenanceActions, decoder smithyxml.NodeDecoder) error { + var sv []types.ResourcePendingMaintenanceActions if *v == nil { - sv = make([]*types.ResourcePendingMaintenanceActions, 0) + sv = make([]types.ResourcePendingMaintenanceActions, 0) } else { sv = *v } switch { default: - var mv *types.ResourcePendingMaintenanceActions + var mv types.ResourcePendingMaintenanceActions t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -35013,7 +35169,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.CACertificateIdentifier = &xtv + sv.CACertificateIdentifier = ptr.String(xtv) } case strings.EqualFold("DBInstanceClass", t.Name.Local): @@ -35029,7 +35185,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.DBInstanceClass = &xtv + sv.DBInstanceClass = ptr.String(xtv) } case strings.EqualFold("DBInstanceIdentifier", t.Name.Local): @@ -35045,7 +35201,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.DBInstanceIdentifier = &xtv + sv.DBInstanceIdentifier = ptr.String(xtv) } case strings.EqualFold("DBSubnetGroupName", t.Name.Local): @@ -35061,7 +35217,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.DBSubnetGroupName = &xtv + sv.DBSubnetGroupName = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -35077,7 +35233,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("Iops", t.Name.Local): @@ -35110,7 +35266,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.LicenseModel = &xtv + sv.LicenseModel = ptr.String(xtv) } case strings.EqualFold("MasterUserPassword", t.Name.Local): @@ -35126,7 +35282,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.MasterUserPassword = &xtv + sv.MasterUserPassword = ptr.String(xtv) } case strings.EqualFold("MultiAZ", t.Name.Local): @@ -35142,7 +35298,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.MultiAZ = &xtv + sv.MultiAZ = ptr.Bool(xtv) } case strings.EqualFold("PendingCloudwatchLogsExports", t.Name.Local): @@ -35187,7 +35343,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.StorageType = &xtv + sv.StorageType = ptr.String(xtv) } default: @@ -35235,7 +35391,7 @@ func awsAwsquery_deserializeDocumentPointInTimeRestoreNotEnabledFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -35283,7 +35439,7 @@ func awsAwsquery_deserializeDocumentProcessorFeature(v **types.ProcessorFeature, } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -35299,7 +35455,7 @@ func awsAwsquery_deserializeDocumentProcessorFeature(v **types.ProcessorFeature, } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -35312,13 +35468,13 @@ func awsAwsquery_deserializeDocumentProcessorFeature(v **types.ProcessorFeature, return nil } -func awsAwsquery_deserializeDocumentProcessorFeatureList(v *[]*types.ProcessorFeature, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentProcessorFeatureList(v *[]types.ProcessorFeature, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ProcessorFeature + var sv []types.ProcessorFeature if *v == nil { - sv = make([]*types.ProcessorFeature, 0) + sv = make([]types.ProcessorFeature, 0) } else { sv = *v } @@ -35334,11 +35490,13 @@ func awsAwsquery_deserializeDocumentProcessorFeatureList(v *[]*types.ProcessorFe } for { if strings.EqualFold("ProcessorFeature", t.Name.Local) { - var col *types.ProcessorFeature + var col types.ProcessorFeature nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentProcessorFeature(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentProcessorFeature(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -35351,23 +35509,25 @@ func awsAwsquery_deserializeDocumentProcessorFeatureList(v *[]*types.ProcessorFe return nil } -func awsAwsquery_deserializeDocumentProcessorFeatureListUnwrapped(v *[]*types.ProcessorFeature, decoder smithyxml.NodeDecoder) error { - var sv []*types.ProcessorFeature +func awsAwsquery_deserializeDocumentProcessorFeatureListUnwrapped(v *[]types.ProcessorFeature, decoder smithyxml.NodeDecoder) error { + var sv []types.ProcessorFeature if *v == nil { - sv = make([]*types.ProcessorFeature, 0) + sv = make([]types.ProcessorFeature, 0) } else { sv = *v } switch { default: - var mv *types.ProcessorFeature + var mv types.ProcessorFeature t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentProcessorFeature(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentProcessorFeature(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -35408,7 +35568,7 @@ func awsAwsquery_deserializeDocumentProvisionedIopsNotAvailableInAZFault(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -35457,7 +35617,7 @@ func awsAwsquery_deserializeDocumentRange(v **types.Range, decoder smithyxml.Nod if err != nil { return err } - sv.From = ptr.Int32(int32(i64)) + sv.From = int32(i64) } case strings.EqualFold("Step", t.Name.Local): @@ -35491,7 +35651,7 @@ func awsAwsquery_deserializeDocumentRange(v **types.Range, decoder smithyxml.Nod if err != nil { return err } - sv.To = ptr.Int32(int32(i64)) + sv.To = int32(i64) } default: @@ -35504,13 +35664,13 @@ func awsAwsquery_deserializeDocumentRange(v **types.Range, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentRangeList(v *[]*types.Range, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRangeList(v *[]types.Range, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Range + var sv []types.Range if *v == nil { - sv = make([]*types.Range, 0) + sv = make([]types.Range, 0) } else { sv = *v } @@ -35526,11 +35686,13 @@ func awsAwsquery_deserializeDocumentRangeList(v *[]*types.Range, decoder smithyx } for { if strings.EqualFold("Range", t.Name.Local) { - var col *types.Range + var col types.Range nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRange(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentRange(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -35543,35 +35705,37 @@ func awsAwsquery_deserializeDocumentRangeList(v *[]*types.Range, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentRangeListUnwrapped(v *[]*types.Range, decoder smithyxml.NodeDecoder) error { - var sv []*types.Range +func awsAwsquery_deserializeDocumentRangeListUnwrapped(v *[]types.Range, decoder smithyxml.NodeDecoder) error { + var sv []types.Range if *v == nil { - sv = make([]*types.Range, 0) + sv = make([]types.Range, 0) } else { sv = *v } switch { default: - var mv *types.Range + var mv types.Range t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRange(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRange(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentReadersArnList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReadersArnList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -35589,20 +35753,17 @@ func awsAwsquery_deserializeDocumentReadersArnList(v *[]*string, decoder smithyx decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -35615,17 +35776,17 @@ func awsAwsquery_deserializeDocumentReadersArnList(v *[]*string, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentReadersArnListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentReadersArnListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -35633,27 +35794,24 @@ func awsAwsquery_deserializeDocumentReadersArnListUnwrapped(v *[]*string, decode return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -35671,20 +35829,17 @@ func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierList(v *[]*str decoder = memberDecoder for { if strings.EqualFold("ReadReplicaDBClusterIdentifier", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -35697,17 +35852,17 @@ func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierList(v *[]*str return nil } -func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -35715,27 +35870,24 @@ func awsAwsquery_deserializeDocumentReadReplicaDBClusterIdentifierListUnwrapped( return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -35753,20 +35905,17 @@ func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierList(v *[]*st decoder = memberDecoder for { if strings.EqualFold("ReadReplicaDBInstanceIdentifier", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -35779,17 +35928,17 @@ func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierList(v *[]*st return nil } -func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -35797,27 +35946,24 @@ func awsAwsquery_deserializeDocumentReadReplicaDBInstanceIdentifierListUnwrapped return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentReadReplicaIdentifierList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReadReplicaIdentifierList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -35835,20 +35981,17 @@ func awsAwsquery_deserializeDocumentReadReplicaIdentifierList(v *[]*string, deco decoder = memberDecoder for { if strings.EqualFold("ReadReplicaIdentifier", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -35861,17 +36004,17 @@ func awsAwsquery_deserializeDocumentReadReplicaIdentifierList(v *[]*string, deco return nil } -func awsAwsquery_deserializeDocumentReadReplicaIdentifierListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentReadReplicaIdentifierListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -35879,14 +36022,11 @@ func awsAwsquery_deserializeDocumentReadReplicaIdentifierListUnwrapped(v *[]*str return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -35929,7 +36069,7 @@ func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d if err != nil { return err } - sv.RecurringChargeAmount = &f64 + sv.RecurringChargeAmount = f64 } case strings.EqualFold("RecurringChargeFrequency", t.Name.Local): @@ -35945,7 +36085,7 @@ func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d } if val != nil { xtv := string(val) - sv.RecurringChargeFrequency = &xtv + sv.RecurringChargeFrequency = ptr.String(xtv) } default: @@ -35958,13 +36098,13 @@ func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d return nil } -func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]*types.RecurringCharge, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RecurringCharge + var sv []types.RecurringCharge if *v == nil { - sv = make([]*types.RecurringCharge, 0) + sv = make([]types.RecurringCharge, 0) } else { sv = *v } @@ -35980,11 +36120,13 @@ func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]*types.RecurringCha } for { if strings.EqualFold("RecurringCharge", t.Name.Local) { - var col *types.RecurringCharge + var col types.RecurringCharge nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRecurringCharge(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentRecurringCharge(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -35997,23 +36139,25 @@ func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]*types.RecurringCha return nil } -func awsAwsquery_deserializeDocumentRecurringChargeListUnwrapped(v *[]*types.RecurringCharge, decoder smithyxml.NodeDecoder) error { - var sv []*types.RecurringCharge +func awsAwsquery_deserializeDocumentRecurringChargeListUnwrapped(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error { + var sv []types.RecurringCharge if *v == nil { - sv = make([]*types.RecurringCharge, 0) + sv = make([]types.RecurringCharge, 0) } else { sv = *v } switch { default: - var mv *types.RecurringCharge + var mv types.RecurringCharge t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRecurringCharge(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRecurringCharge(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -36054,7 +36198,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta } if val != nil { xtv := string(val) - sv.CurrencyCode = &xtv + sv.CurrencyCode = ptr.String(xtv) } case strings.EqualFold("DBInstanceClass", t.Name.Local): @@ -36070,7 +36214,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta } if val != nil { xtv := string(val) - sv.DBInstanceClass = &xtv + sv.DBInstanceClass = ptr.String(xtv) } case strings.EqualFold("DBInstanceCount", t.Name.Local): @@ -36087,7 +36231,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta if err != nil { return err } - sv.DBInstanceCount = ptr.Int32(int32(i64)) + sv.DBInstanceCount = int32(i64) } case strings.EqualFold("Duration", t.Name.Local): @@ -36104,7 +36248,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case strings.EqualFold("FixedPrice", t.Name.Local): @@ -36121,7 +36265,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta if err != nil { return err } - sv.FixedPrice = &f64 + sv.FixedPrice = f64 } case strings.EqualFold("LeaseId", t.Name.Local): @@ -36137,7 +36281,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta } if val != nil { xtv := string(val) - sv.LeaseId = &xtv + sv.LeaseId = ptr.String(xtv) } case strings.EqualFold("MultiAZ", t.Name.Local): @@ -36153,7 +36297,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MultiAZ = &xtv + sv.MultiAZ = xtv } case strings.EqualFold("OfferingType", t.Name.Local): @@ -36169,7 +36313,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta } if val != nil { xtv := string(val) - sv.OfferingType = &xtv + sv.OfferingType = ptr.String(xtv) } case strings.EqualFold("ProductDescription", t.Name.Local): @@ -36185,7 +36329,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta } if val != nil { xtv := string(val) - sv.ProductDescription = &xtv + sv.ProductDescription = ptr.String(xtv) } case strings.EqualFold("RecurringCharges", t.Name.Local): @@ -36207,7 +36351,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta } if val != nil { xtv := string(val) - sv.ReservedDBInstanceArn = &xtv + sv.ReservedDBInstanceArn = ptr.String(xtv) } case strings.EqualFold("ReservedDBInstanceId", t.Name.Local): @@ -36223,7 +36367,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta } if val != nil { xtv := string(val) - sv.ReservedDBInstanceId = &xtv + sv.ReservedDBInstanceId = ptr.String(xtv) } case strings.EqualFold("ReservedDBInstancesOfferingId", t.Name.Local): @@ -36239,7 +36383,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta } if val != nil { xtv := string(val) - sv.ReservedDBInstancesOfferingId = &xtv + sv.ReservedDBInstancesOfferingId = ptr.String(xtv) } case strings.EqualFold("StartTime", t.Name.Local): @@ -36256,7 +36400,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("State", t.Name.Local): @@ -36272,7 +36416,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } case strings.EqualFold("UsagePrice", t.Name.Local): @@ -36289,7 +36433,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstance(v **types.ReservedDBInsta if err != nil { return err } - sv.UsagePrice = &f64 + sv.UsagePrice = f64 } default: @@ -36337,7 +36481,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstanceAlreadyExistsFault(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -36350,13 +36494,13 @@ func awsAwsquery_deserializeDocumentReservedDBInstanceAlreadyExistsFault(v **typ return nil } -func awsAwsquery_deserializeDocumentReservedDBInstanceList(v *[]*types.ReservedDBInstance, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReservedDBInstanceList(v *[]types.ReservedDBInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReservedDBInstance + var sv []types.ReservedDBInstance if *v == nil { - sv = make([]*types.ReservedDBInstance, 0) + sv = make([]types.ReservedDBInstance, 0) } else { sv = *v } @@ -36372,11 +36516,13 @@ func awsAwsquery_deserializeDocumentReservedDBInstanceList(v *[]*types.ReservedD } for { if strings.EqualFold("ReservedDBInstance", t.Name.Local) { - var col *types.ReservedDBInstance + var col types.ReservedDBInstance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReservedDBInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentReservedDBInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -36389,23 +36535,25 @@ func awsAwsquery_deserializeDocumentReservedDBInstanceList(v *[]*types.ReservedD return nil } -func awsAwsquery_deserializeDocumentReservedDBInstanceListUnwrapped(v *[]*types.ReservedDBInstance, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReservedDBInstance +func awsAwsquery_deserializeDocumentReservedDBInstanceListUnwrapped(v *[]types.ReservedDBInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedDBInstance if *v == nil { - sv = make([]*types.ReservedDBInstance, 0) + sv = make([]types.ReservedDBInstance, 0) } else { sv = *v } switch { default: - var mv *types.ReservedDBInstance + var mv types.ReservedDBInstance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReservedDBInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentReservedDBInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -36446,7 +36594,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstanceNotFoundFault(v **types.Re } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -36494,7 +36642,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstanceQuotaExceededFault(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -36542,7 +36690,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstancesOffering(v **types.Reserv } if val != nil { xtv := string(val) - sv.CurrencyCode = &xtv + sv.CurrencyCode = ptr.String(xtv) } case strings.EqualFold("DBInstanceClass", t.Name.Local): @@ -36558,7 +36706,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstancesOffering(v **types.Reserv } if val != nil { xtv := string(val) - sv.DBInstanceClass = &xtv + sv.DBInstanceClass = ptr.String(xtv) } case strings.EqualFold("Duration", t.Name.Local): @@ -36575,7 +36723,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstancesOffering(v **types.Reserv if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case strings.EqualFold("FixedPrice", t.Name.Local): @@ -36592,7 +36740,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstancesOffering(v **types.Reserv if err != nil { return err } - sv.FixedPrice = &f64 + sv.FixedPrice = f64 } case strings.EqualFold("MultiAZ", t.Name.Local): @@ -36608,7 +36756,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstancesOffering(v **types.Reserv if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MultiAZ = &xtv + sv.MultiAZ = xtv } case strings.EqualFold("OfferingType", t.Name.Local): @@ -36624,7 +36772,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstancesOffering(v **types.Reserv } if val != nil { xtv := string(val) - sv.OfferingType = &xtv + sv.OfferingType = ptr.String(xtv) } case strings.EqualFold("ProductDescription", t.Name.Local): @@ -36640,7 +36788,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstancesOffering(v **types.Reserv } if val != nil { xtv := string(val) - sv.ProductDescription = &xtv + sv.ProductDescription = ptr.String(xtv) } case strings.EqualFold("RecurringCharges", t.Name.Local): @@ -36662,7 +36810,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstancesOffering(v **types.Reserv } if val != nil { xtv := string(val) - sv.ReservedDBInstancesOfferingId = &xtv + sv.ReservedDBInstancesOfferingId = ptr.String(xtv) } case strings.EqualFold("UsagePrice", t.Name.Local): @@ -36679,7 +36827,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstancesOffering(v **types.Reserv if err != nil { return err } - sv.UsagePrice = &f64 + sv.UsagePrice = f64 } default: @@ -36692,13 +36840,13 @@ func awsAwsquery_deserializeDocumentReservedDBInstancesOffering(v **types.Reserv return nil } -func awsAwsquery_deserializeDocumentReservedDBInstancesOfferingList(v *[]*types.ReservedDBInstancesOffering, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReservedDBInstancesOfferingList(v *[]types.ReservedDBInstancesOffering, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReservedDBInstancesOffering + var sv []types.ReservedDBInstancesOffering if *v == nil { - sv = make([]*types.ReservedDBInstancesOffering, 0) + sv = make([]types.ReservedDBInstancesOffering, 0) } else { sv = *v } @@ -36714,11 +36862,13 @@ func awsAwsquery_deserializeDocumentReservedDBInstancesOfferingList(v *[]*types. } for { if strings.EqualFold("ReservedDBInstancesOffering", t.Name.Local) { - var col *types.ReservedDBInstancesOffering + var col types.ReservedDBInstancesOffering nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReservedDBInstancesOffering(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentReservedDBInstancesOffering(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -36731,23 +36881,25 @@ func awsAwsquery_deserializeDocumentReservedDBInstancesOfferingList(v *[]*types. return nil } -func awsAwsquery_deserializeDocumentReservedDBInstancesOfferingListUnwrapped(v *[]*types.ReservedDBInstancesOffering, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReservedDBInstancesOffering +func awsAwsquery_deserializeDocumentReservedDBInstancesOfferingListUnwrapped(v *[]types.ReservedDBInstancesOffering, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedDBInstancesOffering if *v == nil { - sv = make([]*types.ReservedDBInstancesOffering, 0) + sv = make([]types.ReservedDBInstancesOffering, 0) } else { sv = *v } switch { default: - var mv *types.ReservedDBInstancesOffering + var mv types.ReservedDBInstancesOffering t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReservedDBInstancesOffering(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentReservedDBInstancesOffering(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -36788,7 +36940,7 @@ func awsAwsquery_deserializeDocumentReservedDBInstancesOfferingNotFoundFault(v * } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -36836,7 +36988,7 @@ func awsAwsquery_deserializeDocumentResourceNotFoundFault(v **types.ResourceNotF } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -36890,7 +37042,7 @@ func awsAwsquery_deserializeDocumentResourcePendingMaintenanceActions(v **types. } if val != nil { xtv := string(val) - sv.ResourceIdentifier = &xtv + sv.ResourceIdentifier = ptr.String(xtv) } default: @@ -36939,7 +37091,7 @@ func awsAwsquery_deserializeDocumentRestoreWindow(v **types.RestoreWindow, decod if err != nil { return err } - sv.EarliestTime = &t + sv.EarliestTime = ptr.Time(t) } case strings.EqualFold("LatestTime", t.Name.Local): @@ -36956,7 +37108,7 @@ func awsAwsquery_deserializeDocumentRestoreWindow(v **types.RestoreWindow, decod if err != nil { return err } - sv.LatestTime = &t + sv.LatestTime = ptr.Time(t) } default: @@ -37004,7 +37156,7 @@ func awsAwsquery_deserializeDocumentScalingConfigurationInfo(v **types.ScalingCo if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.AutoPause = &xtv + sv.AutoPause = ptr.Bool(xtv) } case strings.EqualFold("MaxCapacity", t.Name.Local): @@ -37071,7 +37223,7 @@ func awsAwsquery_deserializeDocumentScalingConfigurationInfo(v **types.ScalingCo } if val != nil { xtv := string(val) - sv.TimeoutAction = &xtv + sv.TimeoutAction = ptr.String(xtv) } default: @@ -37119,7 +37271,7 @@ func awsAwsquery_deserializeDocumentSharedSnapshotQuotaExceededFault(v **types.S } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -37167,7 +37319,7 @@ func awsAwsquery_deserializeDocumentSnapshotQuotaExceededFault(v **types.Snapsho } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -37215,7 +37367,7 @@ func awsAwsquery_deserializeDocumentSNSInvalidTopicFault(v **types.SNSInvalidTop } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -37263,7 +37415,7 @@ func awsAwsquery_deserializeDocumentSNSNoAuthorizationFault(v **types.SNSNoAutho } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -37311,7 +37463,7 @@ func awsAwsquery_deserializeDocumentSNSTopicArnNotFoundFault(v **types.SNSTopicA } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -37324,13 +37476,13 @@ func awsAwsquery_deserializeDocumentSNSTopicArnNotFoundFault(v **types.SNSTopicA return nil } -func awsAwsquery_deserializeDocumentSourceIdsList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSourceIdsList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -37348,20 +37500,17 @@ func awsAwsquery_deserializeDocumentSourceIdsList(v *[]*string, decoder smithyxm decoder = memberDecoder for { if strings.EqualFold("SourceId", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -37374,17 +37523,17 @@ func awsAwsquery_deserializeDocumentSourceIdsList(v *[]*string, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentSourceIdsListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentSourceIdsListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -37392,14 +37541,11 @@ func awsAwsquery_deserializeDocumentSourceIdsListUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -37441,7 +37587,7 @@ func awsAwsquery_deserializeDocumentSourceNotFoundFault(v **types.SourceNotFound } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -37489,7 +37635,7 @@ func awsAwsquery_deserializeDocumentSourceRegion(v **types.SourceRegion, decoder } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("RegionName", t.Name.Local): @@ -37505,7 +37651,7 @@ func awsAwsquery_deserializeDocumentSourceRegion(v **types.SourceRegion, decoder } if val != nil { xtv := string(val) - sv.RegionName = &xtv + sv.RegionName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -37521,7 +37667,7 @@ func awsAwsquery_deserializeDocumentSourceRegion(v **types.SourceRegion, decoder } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -37534,13 +37680,13 @@ func awsAwsquery_deserializeDocumentSourceRegion(v **types.SourceRegion, decoder return nil } -func awsAwsquery_deserializeDocumentSourceRegionList(v *[]*types.SourceRegion, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSourceRegionList(v *[]types.SourceRegion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SourceRegion + var sv []types.SourceRegion if *v == nil { - sv = make([]*types.SourceRegion, 0) + sv = make([]types.SourceRegion, 0) } else { sv = *v } @@ -37556,11 +37702,13 @@ func awsAwsquery_deserializeDocumentSourceRegionList(v *[]*types.SourceRegion, d } for { if strings.EqualFold("SourceRegion", t.Name.Local) { - var col *types.SourceRegion + var col types.SourceRegion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSourceRegion(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSourceRegion(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -37573,23 +37721,25 @@ func awsAwsquery_deserializeDocumentSourceRegionList(v *[]*types.SourceRegion, d return nil } -func awsAwsquery_deserializeDocumentSourceRegionListUnwrapped(v *[]*types.SourceRegion, decoder smithyxml.NodeDecoder) error { - var sv []*types.SourceRegion +func awsAwsquery_deserializeDocumentSourceRegionListUnwrapped(v *[]types.SourceRegion, decoder smithyxml.NodeDecoder) error { + var sv []types.SourceRegion if *v == nil { - sv = make([]*types.SourceRegion, 0) + sv = make([]types.SourceRegion, 0) } else { sv = *v } switch { default: - var mv *types.SourceRegion + var mv types.SourceRegion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSourceRegion(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSourceRegion(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -37630,7 +37780,7 @@ func awsAwsquery_deserializeDocumentStorageQuotaExceededFault(v **types.StorageQ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -37678,7 +37828,7 @@ func awsAwsquery_deserializeDocumentStorageTypeNotSupportedFault(v **types.Stora } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -37691,13 +37841,13 @@ func awsAwsquery_deserializeDocumentStorageTypeNotSupportedFault(v **types.Stora return nil } -func awsAwsquery_deserializeDocumentStringList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentStringList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -37715,20 +37865,17 @@ func awsAwsquery_deserializeDocumentStringList(v *[]*string, decoder smithyxml.N decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -37741,17 +37888,17 @@ func awsAwsquery_deserializeDocumentStringList(v *[]*string, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentStringListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -37759,14 +37906,11 @@ func awsAwsquery_deserializeDocumentStringListUnwrapped(v *[]*string, decoder sm return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -37814,7 +37958,7 @@ func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.SubnetIdentifier = &xtv + sv.SubnetIdentifier = ptr.String(xtv) } case strings.EqualFold("SubnetOutpost", t.Name.Local): @@ -37836,7 +37980,7 @@ func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.SubnetStatus = &xtv + sv.SubnetStatus = ptr.String(xtv) } default: @@ -37884,7 +38028,7 @@ func awsAwsquery_deserializeDocumentSubnetAlreadyInUse(v **types.SubnetAlreadyIn } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -37897,13 +38041,13 @@ func awsAwsquery_deserializeDocumentSubnetAlreadyInUse(v **types.SubnetAlreadyIn return nil } -func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSubnetList(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Subnet + var sv []types.Subnet if *v == nil { - sv = make([]*types.Subnet, 0) + sv = make([]types.Subnet, 0) } else { sv = *v } @@ -37919,11 +38063,13 @@ func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smith } for { if strings.EqualFold("Subnet", t.Name.Local) { - var col *types.Subnet + var col types.Subnet nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubnet(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSubnet(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -37936,23 +38082,25 @@ func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smith return nil } -func awsAwsquery_deserializeDocumentSubnetListUnwrapped(v *[]*types.Subnet, decoder smithyxml.NodeDecoder) error { - var sv []*types.Subnet +func awsAwsquery_deserializeDocumentSubnetListUnwrapped(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error { + var sv []types.Subnet if *v == nil { - sv = make([]*types.Subnet, 0) + sv = make([]types.Subnet, 0) } else { sv = *v } switch { default: - var mv *types.Subnet + var mv types.Subnet t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubnet(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSubnet(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -37993,7 +38141,7 @@ func awsAwsquery_deserializeDocumentSubscriptionAlreadyExistFault(v **types.Subs } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -38041,7 +38189,7 @@ func awsAwsquery_deserializeDocumentSubscriptionCategoryNotFoundFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -38089,7 +38237,7 @@ func awsAwsquery_deserializeDocumentSubscriptionNotFoundFault(v **types.Subscrip } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -38102,13 +38250,13 @@ func awsAwsquery_deserializeDocumentSubscriptionNotFoundFault(v **types.Subscrip return nil } -func awsAwsquery_deserializeDocumentSupportedCharacterSetsList(v *[]*types.CharacterSet, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSupportedCharacterSetsList(v *[]types.CharacterSet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CharacterSet + var sv []types.CharacterSet if *v == nil { - sv = make([]*types.CharacterSet, 0) + sv = make([]types.CharacterSet, 0) } else { sv = *v } @@ -38124,11 +38272,13 @@ func awsAwsquery_deserializeDocumentSupportedCharacterSetsList(v *[]*types.Chara } for { if strings.EqualFold("CharacterSet", t.Name.Local) { - var col *types.CharacterSet + var col types.CharacterSet nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCharacterSet(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCharacterSet(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -38141,35 +38291,37 @@ func awsAwsquery_deserializeDocumentSupportedCharacterSetsList(v *[]*types.Chara return nil } -func awsAwsquery_deserializeDocumentSupportedCharacterSetsListUnwrapped(v *[]*types.CharacterSet, decoder smithyxml.NodeDecoder) error { - var sv []*types.CharacterSet +func awsAwsquery_deserializeDocumentSupportedCharacterSetsListUnwrapped(v *[]types.CharacterSet, decoder smithyxml.NodeDecoder) error { + var sv []types.CharacterSet if *v == nil { - sv = make([]*types.CharacterSet, 0) + sv = make([]types.CharacterSet, 0) } else { sv = *v } switch { default: - var mv *types.CharacterSet + var mv types.CharacterSet t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCharacterSet(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCharacterSet(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentSupportedTimezonesList(v *[]*types.Timezone, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSupportedTimezonesList(v *[]types.Timezone, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Timezone + var sv []types.Timezone if *v == nil { - sv = make([]*types.Timezone, 0) + sv = make([]types.Timezone, 0) } else { sv = *v } @@ -38185,11 +38337,13 @@ func awsAwsquery_deserializeDocumentSupportedTimezonesList(v *[]*types.Timezone, } for { if strings.EqualFold("Timezone", t.Name.Local) { - var col *types.Timezone + var col types.Timezone nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTimezone(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTimezone(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -38202,23 +38356,25 @@ func awsAwsquery_deserializeDocumentSupportedTimezonesList(v *[]*types.Timezone, return nil } -func awsAwsquery_deserializeDocumentSupportedTimezonesListUnwrapped(v *[]*types.Timezone, decoder smithyxml.NodeDecoder) error { - var sv []*types.Timezone +func awsAwsquery_deserializeDocumentSupportedTimezonesListUnwrapped(v *[]types.Timezone, decoder smithyxml.NodeDecoder) error { + var sv []types.Timezone if *v == nil { - sv = make([]*types.Timezone, 0) + sv = make([]types.Timezone, 0) } else { sv = *v } switch { default: - var mv *types.Timezone + var mv types.Timezone t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTimezone(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTimezone(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -38259,7 +38415,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -38275,7 +38431,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -38288,13 +38444,13 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec return nil } -func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -38310,11 +38466,13 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N } for { if strings.EqualFold("Tag", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -38327,35 +38485,37 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentTargetGroupList(v *[]*types.DBProxyTargetGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTargetGroupList(v *[]types.DBProxyTargetGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBProxyTargetGroup + var sv []types.DBProxyTargetGroup if *v == nil { - sv = make([]*types.DBProxyTargetGroup, 0) + sv = make([]types.DBProxyTargetGroup, 0) } else { sv = *v } @@ -38371,11 +38531,13 @@ func awsAwsquery_deserializeDocumentTargetGroupList(v *[]*types.DBProxyTargetGro } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.DBProxyTargetGroup + var col types.DBProxyTargetGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBProxyTargetGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBProxyTargetGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -38388,23 +38550,25 @@ func awsAwsquery_deserializeDocumentTargetGroupList(v *[]*types.DBProxyTargetGro return nil } -func awsAwsquery_deserializeDocumentTargetGroupListUnwrapped(v *[]*types.DBProxyTargetGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBProxyTargetGroup +func awsAwsquery_deserializeDocumentTargetGroupListUnwrapped(v *[]types.DBProxyTargetGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.DBProxyTargetGroup if *v == nil { - sv = make([]*types.DBProxyTargetGroup, 0) + sv = make([]types.DBProxyTargetGroup, 0) } else { sv = *v } switch { default: - var mv *types.DBProxyTargetGroup + var mv types.DBProxyTargetGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBProxyTargetGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBProxyTargetGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -38445,7 +38609,7 @@ func awsAwsquery_deserializeDocumentTargetHealth(v **types.TargetHealth, decoder } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("Reason", t.Name.Local): @@ -38484,13 +38648,13 @@ func awsAwsquery_deserializeDocumentTargetHealth(v **types.TargetHealth, decoder return nil } -func awsAwsquery_deserializeDocumentTargetList(v *[]*types.DBProxyTarget, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTargetList(v *[]types.DBProxyTarget, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DBProxyTarget + var sv []types.DBProxyTarget if *v == nil { - sv = make([]*types.DBProxyTarget, 0) + sv = make([]types.DBProxyTarget, 0) } else { sv = *v } @@ -38506,11 +38670,13 @@ func awsAwsquery_deserializeDocumentTargetList(v *[]*types.DBProxyTarget, decode } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.DBProxyTarget + var col types.DBProxyTarget nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBProxyTarget(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDBProxyTarget(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -38523,23 +38689,25 @@ func awsAwsquery_deserializeDocumentTargetList(v *[]*types.DBProxyTarget, decode return nil } -func awsAwsquery_deserializeDocumentTargetListUnwrapped(v *[]*types.DBProxyTarget, decoder smithyxml.NodeDecoder) error { - var sv []*types.DBProxyTarget +func awsAwsquery_deserializeDocumentTargetListUnwrapped(v *[]types.DBProxyTarget, decoder smithyxml.NodeDecoder) error { + var sv []types.DBProxyTarget if *v == nil { - sv = make([]*types.DBProxyTarget, 0) + sv = make([]types.DBProxyTarget, 0) } else { sv = *v } switch { default: - var mv *types.DBProxyTarget + var mv types.DBProxyTarget t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDBProxyTarget(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDBProxyTarget(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -38580,7 +38748,7 @@ func awsAwsquery_deserializeDocumentTimezone(v **types.Timezone, decoder smithyx } if val != nil { xtv := string(val) - sv.TimezoneName = &xtv + sv.TimezoneName = ptr.String(xtv) } default: @@ -38628,7 +38796,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AutoUpgrade = &xtv + sv.AutoUpgrade = xtv } case strings.EqualFold("Description", t.Name.Local): @@ -38644,7 +38812,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -38660,7 +38828,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -38676,7 +38844,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("IsMajorVersionUpgrade", t.Name.Local): @@ -38692,7 +38860,7 @@ func awsAwsquery_deserializeDocumentUpgradeTarget(v **types.UpgradeTarget, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsMajorVersionUpgrade = &xtv + sv.IsMajorVersionUpgrade = xtv } default: @@ -38753,7 +38921,7 @@ func awsAwsquery_deserializeDocumentUserAuthConfigInfo(v **types.UserAuthConfigI } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("IAMAuth", t.Name.Local): @@ -38782,7 +38950,7 @@ func awsAwsquery_deserializeDocumentUserAuthConfigInfo(v **types.UserAuthConfigI } if val != nil { xtv := string(val) - sv.SecretArn = &xtv + sv.SecretArn = ptr.String(xtv) } case strings.EqualFold("UserName", t.Name.Local): @@ -38798,7 +38966,7 @@ func awsAwsquery_deserializeDocumentUserAuthConfigInfo(v **types.UserAuthConfigI } if val != nil { xtv := string(val) - sv.UserName = &xtv + sv.UserName = ptr.String(xtv) } default: @@ -38811,13 +38979,13 @@ func awsAwsquery_deserializeDocumentUserAuthConfigInfo(v **types.UserAuthConfigI return nil } -func awsAwsquery_deserializeDocumentUserAuthConfigInfoList(v *[]*types.UserAuthConfigInfo, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentUserAuthConfigInfoList(v *[]types.UserAuthConfigInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UserAuthConfigInfo + var sv []types.UserAuthConfigInfo if *v == nil { - sv = make([]*types.UserAuthConfigInfo, 0) + sv = make([]types.UserAuthConfigInfo, 0) } else { sv = *v } @@ -38833,11 +39001,13 @@ func awsAwsquery_deserializeDocumentUserAuthConfigInfoList(v *[]*types.UserAuthC } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.UserAuthConfigInfo + var col types.UserAuthConfigInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUserAuthConfigInfo(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentUserAuthConfigInfo(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -38850,23 +39020,25 @@ func awsAwsquery_deserializeDocumentUserAuthConfigInfoList(v *[]*types.UserAuthC return nil } -func awsAwsquery_deserializeDocumentUserAuthConfigInfoListUnwrapped(v *[]*types.UserAuthConfigInfo, decoder smithyxml.NodeDecoder) error { - var sv []*types.UserAuthConfigInfo +func awsAwsquery_deserializeDocumentUserAuthConfigInfoListUnwrapped(v *[]types.UserAuthConfigInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.UserAuthConfigInfo if *v == nil { - sv = make([]*types.UserAuthConfigInfo, 0) + sv = make([]types.UserAuthConfigInfo, 0) } else { sv = *v } switch { default: - var mv *types.UserAuthConfigInfo + var mv types.UserAuthConfigInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUserAuthConfigInfo(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentUserAuthConfigInfo(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -38969,7 +39141,7 @@ func awsAwsquery_deserializeDocumentValidStorageOptions(v **types.ValidStorageOp } if val != nil { xtv := string(val) - sv.StorageType = &xtv + sv.StorageType = ptr.String(xtv) } case strings.EqualFold("SupportsStorageAutoscaling", t.Name.Local): @@ -38985,7 +39157,7 @@ func awsAwsquery_deserializeDocumentValidStorageOptions(v **types.ValidStorageOp if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SupportsStorageAutoscaling = &xtv + sv.SupportsStorageAutoscaling = xtv } default: @@ -38998,13 +39170,13 @@ func awsAwsquery_deserializeDocumentValidStorageOptions(v **types.ValidStorageOp return nil } -func awsAwsquery_deserializeDocumentValidStorageOptionsList(v *[]*types.ValidStorageOptions, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentValidStorageOptionsList(v *[]types.ValidStorageOptions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ValidStorageOptions + var sv []types.ValidStorageOptions if *v == nil { - sv = make([]*types.ValidStorageOptions, 0) + sv = make([]types.ValidStorageOptions, 0) } else { sv = *v } @@ -39020,11 +39192,13 @@ func awsAwsquery_deserializeDocumentValidStorageOptionsList(v *[]*types.ValidSto } for { if strings.EqualFold("ValidStorageOptions", t.Name.Local) { - var col *types.ValidStorageOptions + var col types.ValidStorageOptions nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentValidStorageOptions(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentValidStorageOptions(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -39037,35 +39211,37 @@ func awsAwsquery_deserializeDocumentValidStorageOptionsList(v *[]*types.ValidSto return nil } -func awsAwsquery_deserializeDocumentValidStorageOptionsListUnwrapped(v *[]*types.ValidStorageOptions, decoder smithyxml.NodeDecoder) error { - var sv []*types.ValidStorageOptions +func awsAwsquery_deserializeDocumentValidStorageOptionsListUnwrapped(v *[]types.ValidStorageOptions, decoder smithyxml.NodeDecoder) error { + var sv []types.ValidStorageOptions if *v == nil { - sv = make([]*types.ValidStorageOptions, 0) + sv = make([]types.ValidStorageOptions, 0) } else { sv = *v } switch { default: - var mv *types.ValidStorageOptions + var mv types.ValidStorageOptions t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentValidStorageOptions(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentValidStorageOptions(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentValidUpgradeTargetList(v *[]*types.UpgradeTarget, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentValidUpgradeTargetList(v *[]types.UpgradeTarget, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UpgradeTarget + var sv []types.UpgradeTarget if *v == nil { - sv = make([]*types.UpgradeTarget, 0) + sv = make([]types.UpgradeTarget, 0) } else { sv = *v } @@ -39081,11 +39257,13 @@ func awsAwsquery_deserializeDocumentValidUpgradeTargetList(v *[]*types.UpgradeTa } for { if strings.EqualFold("UpgradeTarget", t.Name.Local) { - var col *types.UpgradeTarget + var col types.UpgradeTarget nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUpgradeTarget(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentUpgradeTarget(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -39098,23 +39276,25 @@ func awsAwsquery_deserializeDocumentValidUpgradeTargetList(v *[]*types.UpgradeTa return nil } -func awsAwsquery_deserializeDocumentValidUpgradeTargetListUnwrapped(v *[]*types.UpgradeTarget, decoder smithyxml.NodeDecoder) error { - var sv []*types.UpgradeTarget +func awsAwsquery_deserializeDocumentValidUpgradeTargetListUnwrapped(v *[]types.UpgradeTarget, decoder smithyxml.NodeDecoder) error { + var sv []types.UpgradeTarget if *v == nil { - sv = make([]*types.UpgradeTarget, 0) + sv = make([]types.UpgradeTarget, 0) } else { sv = *v } switch { default: - var mv *types.UpgradeTarget + var mv types.UpgradeTarget t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUpgradeTarget(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentUpgradeTarget(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -39155,7 +39335,7 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSecu } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("VpcSecurityGroupId", t.Name.Local): @@ -39171,7 +39351,7 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSecu } if val != nil { xtv := string(val) - sv.VpcSecurityGroupId = &xtv + sv.VpcSecurityGroupId = ptr.String(xtv) } default: @@ -39184,13 +39364,13 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSecu return nil } -func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpcSecurityGroupMembership + var sv []types.VpcSecurityGroupMembership if *v == nil { - sv = make([]*types.VpcSecurityGroupMembership, 0) + sv = make([]types.VpcSecurityGroupMembership, 0) } else { sv = *v } @@ -39206,11 +39386,13 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types.V } for { if strings.EqualFold("VpcSecurityGroupMembership", t.Name.Local) { - var col *types.VpcSecurityGroupMembership + var col types.VpcSecurityGroupMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -39223,23 +39405,25 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types.V return nil } -func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipListUnwrapped(v *[]*types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpcSecurityGroupMembership +func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipListUnwrapped(v *[]types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcSecurityGroupMembership if *v == nil { - sv = make([]*types.VpcSecurityGroupMembership, 0) + sv = make([]types.VpcSecurityGroupMembership, 0) } else { sv = *v } switch { default: - var mv *types.VpcSecurityGroupMembership + var mv types.VpcSecurityGroupMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -39280,7 +39464,7 @@ func awsAwsquery_deserializeDocumentVpnDetails(v **types.VpnDetails, decoder smi } if val != nil { xtv := string(val) - sv.VpnGatewayIp = &xtv + sv.VpnGatewayIp = ptr.String(xtv) } case strings.EqualFold("VpnId", t.Name.Local): @@ -39296,7 +39480,7 @@ func awsAwsquery_deserializeDocumentVpnDetails(v **types.VpnDetails, decoder smi } if val != nil { xtv := string(val) - sv.VpnId = &xtv + sv.VpnId = ptr.String(xtv) } case strings.EqualFold("VpnName", t.Name.Local): @@ -39312,7 +39496,7 @@ func awsAwsquery_deserializeDocumentVpnDetails(v **types.VpnDetails, decoder smi } if val != nil { xtv := string(val) - sv.VpnName = &xtv + sv.VpnName = ptr.String(xtv) } case strings.EqualFold("VpnPSK", t.Name.Local): @@ -39328,7 +39512,7 @@ func awsAwsquery_deserializeDocumentVpnDetails(v **types.VpnDetails, decoder smi } if val != nil { xtv := string(val) - sv.VpnPSK = &xtv + sv.VpnPSK = ptr.String(xtv) } case strings.EqualFold("VpnState", t.Name.Local): @@ -39344,7 +39528,7 @@ func awsAwsquery_deserializeDocumentVpnDetails(v **types.VpnDetails, decoder smi } if val != nil { xtv := string(val) - sv.VpnState = &xtv + sv.VpnState = ptr.String(xtv) } case strings.EqualFold("VpnTunnelOriginatorIP", t.Name.Local): @@ -39360,7 +39544,7 @@ func awsAwsquery_deserializeDocumentVpnDetails(v **types.VpnDetails, decoder smi } if val != nil { xtv := string(val) - sv.VpnTunnelOriginatorIP = &xtv + sv.VpnTunnelOriginatorIP = ptr.String(xtv) } default: @@ -39619,7 +39803,7 @@ func awsAwsquery_deserializeOpDocumentBacktrackDBClusterOutput(v **BacktrackDBCl if err != nil { return err } - sv.BacktrackedFrom = &t + sv.BacktrackedFrom = ptr.Time(t) } case strings.EqualFold("BacktrackIdentifier", t.Name.Local): @@ -39635,7 +39819,7 @@ func awsAwsquery_deserializeOpDocumentBacktrackDBClusterOutput(v **BacktrackDBCl } if val != nil { xtv := string(val) - sv.BacktrackIdentifier = &xtv + sv.BacktrackIdentifier = ptr.String(xtv) } case strings.EqualFold("BacktrackRequestCreationTime", t.Name.Local): @@ -39652,7 +39836,7 @@ func awsAwsquery_deserializeOpDocumentBacktrackDBClusterOutput(v **BacktrackDBCl if err != nil { return err } - sv.BacktrackRequestCreationTime = &t + sv.BacktrackRequestCreationTime = ptr.Time(t) } case strings.EqualFold("BacktrackTo", t.Name.Local): @@ -39669,7 +39853,7 @@ func awsAwsquery_deserializeOpDocumentBacktrackDBClusterOutput(v **BacktrackDBCl if err != nil { return err } - sv.BacktrackTo = &t + sv.BacktrackTo = ptr.Time(t) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -39685,7 +39869,7 @@ func awsAwsquery_deserializeOpDocumentBacktrackDBClusterOutput(v **BacktrackDBCl } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -39701,7 +39885,7 @@ func awsAwsquery_deserializeOpDocumentBacktrackDBClusterOutput(v **BacktrackDBCl } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -39755,7 +39939,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas } if val != nil { xtv := string(val) - sv.ExportTaskIdentifier = &xtv + sv.ExportTaskIdentifier = ptr.String(xtv) } case strings.EqualFold("FailureCause", t.Name.Local): @@ -39771,7 +39955,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas } if val != nil { xtv := string(val) - sv.FailureCause = &xtv + sv.FailureCause = ptr.String(xtv) } case strings.EqualFold("IamRoleArn", t.Name.Local): @@ -39787,7 +39971,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas } if val != nil { xtv := string(val) - sv.IamRoleArn = &xtv + sv.IamRoleArn = ptr.String(xtv) } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -39803,7 +39987,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("PercentProgress", t.Name.Local): @@ -39820,7 +40004,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas if err != nil { return err } - sv.PercentProgress = ptr.Int32(int32(i64)) + sv.PercentProgress = int32(i64) } case strings.EqualFold("S3Bucket", t.Name.Local): @@ -39836,7 +40020,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas } if val != nil { xtv := string(val) - sv.S3Bucket = &xtv + sv.S3Bucket = ptr.String(xtv) } case strings.EqualFold("S3Prefix", t.Name.Local): @@ -39852,7 +40036,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas } if val != nil { xtv := string(val) - sv.S3Prefix = &xtv + sv.S3Prefix = ptr.String(xtv) } case strings.EqualFold("SnapshotTime", t.Name.Local): @@ -39869,7 +40053,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas if err != nil { return err } - sv.SnapshotTime = &t + sv.SnapshotTime = ptr.Time(t) } case strings.EqualFold("SourceArn", t.Name.Local): @@ -39885,7 +40069,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas } if val != nil { xtv := string(val) - sv.SourceArn = &xtv + sv.SourceArn = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -39901,7 +40085,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("TaskEndTime", t.Name.Local): @@ -39918,7 +40102,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas if err != nil { return err } - sv.TaskEndTime = &t + sv.TaskEndTime = ptr.Time(t) } case strings.EqualFold("TaskStartTime", t.Name.Local): @@ -39935,7 +40119,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas if err != nil { return err } - sv.TaskStartTime = &t + sv.TaskStartTime = ptr.Time(t) } case strings.EqualFold("TotalExtractedDataInGB", t.Name.Local): @@ -39952,7 +40136,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas if err != nil { return err } - sv.TotalExtractedDataInGB = ptr.Int32(int32(i64)) + sv.TotalExtractedDataInGB = int32(i64) } case strings.EqualFold("WarningMessage", t.Name.Local): @@ -39968,7 +40152,7 @@ func awsAwsquery_deserializeOpDocumentCancelExportTaskOutput(v **CancelExportTas } if val != nil { xtv := string(val) - sv.WarningMessage = &xtv + sv.WarningMessage = ptr.String(xtv) } default: @@ -40244,7 +40428,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.CustomEndpointType = &xtv + sv.CustomEndpointType = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointArn", t.Name.Local): @@ -40260,7 +40444,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointArn = &xtv + sv.DBClusterEndpointArn = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointIdentifier", t.Name.Local): @@ -40276,7 +40460,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointIdentifier = &xtv + sv.DBClusterEndpointIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointResourceIdentifier", t.Name.Local): @@ -40292,7 +40476,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointResourceIdentifier = &xtv + sv.DBClusterEndpointResourceIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -40308,7 +40492,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("Endpoint", t.Name.Local): @@ -40324,7 +40508,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("EndpointType", t.Name.Local): @@ -40340,7 +40524,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.EndpointType = &xtv + sv.EndpointType = ptr.String(xtv) } case strings.EqualFold("ExcludedMembers", t.Name.Local): @@ -40368,7 +40552,7 @@ func awsAwsquery_deserializeOpDocumentCreateDBClusterEndpointOutput(v **CreateDB } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -40948,7 +41132,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.CustomEndpointType = &xtv + sv.CustomEndpointType = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointArn", t.Name.Local): @@ -40964,7 +41148,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointArn = &xtv + sv.DBClusterEndpointArn = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointIdentifier", t.Name.Local): @@ -40980,7 +41164,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointIdentifier = &xtv + sv.DBClusterEndpointIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointResourceIdentifier", t.Name.Local): @@ -40996,7 +41180,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointResourceIdentifier = &xtv + sv.DBClusterEndpointResourceIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -41012,7 +41196,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("Endpoint", t.Name.Local): @@ -41028,7 +41212,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("EndpointType", t.Name.Local): @@ -41044,7 +41228,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.EndpointType = &xtv + sv.EndpointType = ptr.String(xtv) } case strings.EqualFold("ExcludedMembers", t.Name.Local): @@ -41072,7 +41256,7 @@ func awsAwsquery_deserializeOpDocumentDeleteDBClusterEndpointOutput(v **DeleteDB } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -41552,7 +41736,7 @@ func awsAwsquery_deserializeOpDocumentDeleteInstallationMediaOutput(v **DeleteIn } if val != nil { xtv := string(val) - sv.CustomAvailabilityZoneId = &xtv + sv.CustomAvailabilityZoneId = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -41568,7 +41752,7 @@ func awsAwsquery_deserializeOpDocumentDeleteInstallationMediaOutput(v **DeleteIn } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineInstallationMediaPath", t.Name.Local): @@ -41584,7 +41768,7 @@ func awsAwsquery_deserializeOpDocumentDeleteInstallationMediaOutput(v **DeleteIn } if val != nil { xtv := string(val) - sv.EngineInstallationMediaPath = &xtv + sv.EngineInstallationMediaPath = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -41600,7 +41784,7 @@ func awsAwsquery_deserializeOpDocumentDeleteInstallationMediaOutput(v **DeleteIn } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("FailureCause", t.Name.Local): @@ -41622,7 +41806,7 @@ func awsAwsquery_deserializeOpDocumentDeleteInstallationMediaOutput(v **DeleteIn } if val != nil { xtv := string(val) - sv.InstallationMediaId = &xtv + sv.InstallationMediaId = ptr.String(xtv) } case strings.EqualFold("OSInstallationMediaPath", t.Name.Local): @@ -41638,7 +41822,7 @@ func awsAwsquery_deserializeOpDocumentDeleteInstallationMediaOutput(v **DeleteIn } if val != nil { xtv := string(val) - sv.OSInstallationMediaPath = &xtv + sv.OSInstallationMediaPath = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -41654,7 +41838,7 @@ func awsAwsquery_deserializeOpDocumentDeleteInstallationMediaOutput(v **DeleteIn } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -41810,7 +41994,7 @@ func awsAwsquery_deserializeOpDocumentDescribeCertificatesOutput(v **DescribeCer } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -41864,7 +42048,7 @@ func awsAwsquery_deserializeOpDocumentDescribeCustomAvailabilityZonesOutput(v ** } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -41918,7 +42102,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClusterBacktracksOutput(v **Desc } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -41972,7 +42156,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClusterEndpointsOutput(v **Descr } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -42026,7 +42210,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClusterParameterGroupsOutput(v * } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -42074,7 +42258,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClusterParametersOutput(v **Desc } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): @@ -42172,7 +42356,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClusterSnapshotsOutput(v **Descr } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -42226,7 +42410,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBClustersOutput(v **DescribeDBClu } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -42280,7 +42464,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBEngineVersionsOutput(v **Describ } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -42334,7 +42518,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBInstanceAutomatedBackupsOutput(v } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -42388,7 +42572,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBInstancesOutput(v **DescribeDBIn } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -42442,7 +42626,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBLogFilesOutput(v **DescribeDBLog } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -42496,7 +42680,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBParameterGroupsOutput(v **Descri } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -42544,7 +42728,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBParametersOutput(v **DescribeDBP } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): @@ -42604,7 +42788,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBProxiesOutput(v **DescribeDBProx } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -42652,7 +42836,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBProxyTargetGroupsOutput(v **Desc } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("TargetGroups", t.Name.Local): @@ -42706,7 +42890,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBProxyTargetsOutput(v **DescribeD } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Targets", t.Name.Local): @@ -42766,7 +42950,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBSecurityGroupsOutput(v **Describ } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -42858,7 +43042,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBSnapshotsOutput(v **DescribeDBSn } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -42912,7 +43096,7 @@ func awsAwsquery_deserializeOpDocumentDescribeDBSubnetGroupsOutput(v **DescribeD } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -43080,7 +43264,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEventsOutput(v **DescribeEventsOut } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -43134,7 +43318,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEventSubscriptionsOutput(v **Descr } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -43188,7 +43372,7 @@ func awsAwsquery_deserializeOpDocumentDescribeExportTasksOutput(v **DescribeExpo } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -43242,7 +43426,7 @@ func awsAwsquery_deserializeOpDocumentDescribeGlobalClustersOutput(v **DescribeG } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -43296,7 +43480,7 @@ func awsAwsquery_deserializeOpDocumentDescribeInstallationMediaOutput(v **Descri } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -43344,7 +43528,7 @@ func awsAwsquery_deserializeOpDocumentDescribeOptionGroupOptionsOutput(v **Descr } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("OptionGroupOptions", t.Name.Local): @@ -43398,7 +43582,7 @@ func awsAwsquery_deserializeOpDocumentDescribeOptionGroupsOutput(v **DescribeOpt } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("OptionGroupsList", t.Name.Local): @@ -43452,7 +43636,7 @@ func awsAwsquery_deserializeOpDocumentDescribeOrderableDBInstanceOptionsOutput(v } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("OrderableDBInstanceOptions", t.Name.Local): @@ -43506,7 +43690,7 @@ func awsAwsquery_deserializeOpDocumentDescribePendingMaintenanceActionsOutput(v } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("PendingMaintenanceActions", t.Name.Local): @@ -43560,7 +43744,7 @@ func awsAwsquery_deserializeOpDocumentDescribeReservedDBInstancesOfferingsOutput } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ReservedDBInstancesOfferings", t.Name.Local): @@ -43614,7 +43798,7 @@ func awsAwsquery_deserializeOpDocumentDescribeReservedDBInstancesOutput(v **Desc } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ReservedDBInstances", t.Name.Local): @@ -43668,7 +43852,7 @@ func awsAwsquery_deserializeOpDocumentDescribeSourceRegionsOutput(v **DescribeSo } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("SourceRegions", t.Name.Local): @@ -43760,7 +43944,7 @@ func awsAwsquery_deserializeOpDocumentDownloadDBLogFilePortionOutput(v **Downloa if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AdditionalDataPending = &xtv + sv.AdditionalDataPending = xtv } case strings.EqualFold("LogFileData", t.Name.Local): @@ -43776,7 +43960,7 @@ func awsAwsquery_deserializeOpDocumentDownloadDBLogFilePortionOutput(v **Downloa } if val != nil { xtv := string(val) - sv.LogFileData = &xtv + sv.LogFileData = ptr.String(xtv) } case strings.EqualFold("Marker", t.Name.Local): @@ -43792,7 +43976,7 @@ func awsAwsquery_deserializeOpDocumentDownloadDBLogFilePortionOutput(v **Downloa } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -43878,7 +44062,7 @@ func awsAwsquery_deserializeOpDocumentImportInstallationMediaOutput(v **ImportIn } if val != nil { xtv := string(val) - sv.CustomAvailabilityZoneId = &xtv + sv.CustomAvailabilityZoneId = ptr.String(xtv) } case strings.EqualFold("Engine", t.Name.Local): @@ -43894,7 +44078,7 @@ func awsAwsquery_deserializeOpDocumentImportInstallationMediaOutput(v **ImportIn } if val != nil { xtv := string(val) - sv.Engine = &xtv + sv.Engine = ptr.String(xtv) } case strings.EqualFold("EngineInstallationMediaPath", t.Name.Local): @@ -43910,7 +44094,7 @@ func awsAwsquery_deserializeOpDocumentImportInstallationMediaOutput(v **ImportIn } if val != nil { xtv := string(val) - sv.EngineInstallationMediaPath = &xtv + sv.EngineInstallationMediaPath = ptr.String(xtv) } case strings.EqualFold("EngineVersion", t.Name.Local): @@ -43926,7 +44110,7 @@ func awsAwsquery_deserializeOpDocumentImportInstallationMediaOutput(v **ImportIn } if val != nil { xtv := string(val) - sv.EngineVersion = &xtv + sv.EngineVersion = ptr.String(xtv) } case strings.EqualFold("FailureCause", t.Name.Local): @@ -43948,7 +44132,7 @@ func awsAwsquery_deserializeOpDocumentImportInstallationMediaOutput(v **ImportIn } if val != nil { xtv := string(val) - sv.InstallationMediaId = &xtv + sv.InstallationMediaId = ptr.String(xtv) } case strings.EqualFold("OSInstallationMediaPath", t.Name.Local): @@ -43964,7 +44148,7 @@ func awsAwsquery_deserializeOpDocumentImportInstallationMediaOutput(v **ImportIn } if val != nil { xtv := string(val) - sv.OSInstallationMediaPath = &xtv + sv.OSInstallationMediaPath = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -43980,7 +44164,7 @@ func awsAwsquery_deserializeOpDocumentImportInstallationMediaOutput(v **ImportIn } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -44121,7 +44305,7 @@ func awsAwsquery_deserializeOpDocumentModifyCurrentDBClusterCapacityOutput(v **M } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("PendingCapacity", t.Name.Local): @@ -44171,7 +44355,7 @@ func awsAwsquery_deserializeOpDocumentModifyCurrentDBClusterCapacityOutput(v **M } if val != nil { xtv := string(val) - sv.TimeoutAction = &xtv + sv.TimeoutAction = ptr.String(xtv) } default: @@ -44219,7 +44403,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.CustomEndpointType = &xtv + sv.CustomEndpointType = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointArn", t.Name.Local): @@ -44235,7 +44419,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointArn = &xtv + sv.DBClusterEndpointArn = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointIdentifier", t.Name.Local): @@ -44251,7 +44435,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointIdentifier = &xtv + sv.DBClusterEndpointIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterEndpointResourceIdentifier", t.Name.Local): @@ -44267,7 +44451,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.DBClusterEndpointResourceIdentifier = &xtv + sv.DBClusterEndpointResourceIdentifier = ptr.String(xtv) } case strings.EqualFold("DBClusterIdentifier", t.Name.Local): @@ -44283,7 +44467,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.DBClusterIdentifier = &xtv + sv.DBClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("Endpoint", t.Name.Local): @@ -44299,7 +44483,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("EndpointType", t.Name.Local): @@ -44315,7 +44499,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.EndpointType = &xtv + sv.EndpointType = ptr.String(xtv) } case strings.EqualFold("ExcludedMembers", t.Name.Local): @@ -44343,7 +44527,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterEndpointOutput(v **ModifyDB } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -44429,7 +44613,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBClusterParameterGroupOutput(v **Mo } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupName = &xtv + sv.DBClusterParameterGroupName = ptr.String(xtv) } default: @@ -44553,7 +44737,7 @@ func awsAwsquery_deserializeOpDocumentModifyDBParameterGroupOutput(v **ModifyDBP } if val != nil { xtv := string(val) - sv.DBParameterGroupName = &xtv + sv.DBParameterGroupName = ptr.String(xtv) } default: @@ -45267,7 +45451,7 @@ func awsAwsquery_deserializeOpDocumentResetDBClusterParameterGroupOutput(v **Res } if val != nil { xtv := string(val) - sv.DBClusterParameterGroupName = &xtv + sv.DBClusterParameterGroupName = ptr.String(xtv) } default: @@ -45315,7 +45499,7 @@ func awsAwsquery_deserializeOpDocumentResetDBParameterGroupOutput(v **ResetDBPar } if val != nil { xtv := string(val) - sv.DBParameterGroupName = &xtv + sv.DBParameterGroupName = ptr.String(xtv) } default: @@ -45629,7 +45813,7 @@ func awsAwsquery_deserializeOpDocumentStartActivityStreamOutput(v **StartActivit if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ApplyImmediately = &xtv + sv.ApplyImmediately = xtv } case strings.EqualFold("KinesisStreamName", t.Name.Local): @@ -45645,7 +45829,7 @@ func awsAwsquery_deserializeOpDocumentStartActivityStreamOutput(v **StartActivit } if val != nil { xtv := string(val) - sv.KinesisStreamName = &xtv + sv.KinesisStreamName = ptr.String(xtv) } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -45661,7 +45845,7 @@ func awsAwsquery_deserializeOpDocumentStartActivityStreamOutput(v **StartActivit } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("Mode", t.Name.Local): @@ -45817,7 +46001,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO } if val != nil { xtv := string(val) - sv.ExportTaskIdentifier = &xtv + sv.ExportTaskIdentifier = ptr.String(xtv) } case strings.EqualFold("FailureCause", t.Name.Local): @@ -45833,7 +46017,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO } if val != nil { xtv := string(val) - sv.FailureCause = &xtv + sv.FailureCause = ptr.String(xtv) } case strings.EqualFold("IamRoleArn", t.Name.Local): @@ -45849,7 +46033,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO } if val != nil { xtv := string(val) - sv.IamRoleArn = &xtv + sv.IamRoleArn = ptr.String(xtv) } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -45865,7 +46049,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("PercentProgress", t.Name.Local): @@ -45882,7 +46066,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO if err != nil { return err } - sv.PercentProgress = ptr.Int32(int32(i64)) + sv.PercentProgress = int32(i64) } case strings.EqualFold("S3Bucket", t.Name.Local): @@ -45898,7 +46082,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO } if val != nil { xtv := string(val) - sv.S3Bucket = &xtv + sv.S3Bucket = ptr.String(xtv) } case strings.EqualFold("S3Prefix", t.Name.Local): @@ -45914,7 +46098,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO } if val != nil { xtv := string(val) - sv.S3Prefix = &xtv + sv.S3Prefix = ptr.String(xtv) } case strings.EqualFold("SnapshotTime", t.Name.Local): @@ -45931,7 +46115,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO if err != nil { return err } - sv.SnapshotTime = &t + sv.SnapshotTime = ptr.Time(t) } case strings.EqualFold("SourceArn", t.Name.Local): @@ -45947,7 +46131,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO } if val != nil { xtv := string(val) - sv.SourceArn = &xtv + sv.SourceArn = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -45963,7 +46147,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("TaskEndTime", t.Name.Local): @@ -45980,7 +46164,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO if err != nil { return err } - sv.TaskEndTime = &t + sv.TaskEndTime = ptr.Time(t) } case strings.EqualFold("TaskStartTime", t.Name.Local): @@ -45997,7 +46181,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO if err != nil { return err } - sv.TaskStartTime = &t + sv.TaskStartTime = ptr.Time(t) } case strings.EqualFold("TotalExtractedDataInGB", t.Name.Local): @@ -46014,7 +46198,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO if err != nil { return err } - sv.TotalExtractedDataInGB = ptr.Int32(int32(i64)) + sv.TotalExtractedDataInGB = int32(i64) } case strings.EqualFold("WarningMessage", t.Name.Local): @@ -46030,7 +46214,7 @@ func awsAwsquery_deserializeOpDocumentStartExportTaskOutput(v **StartExportTaskO } if val != nil { xtv := string(val) - sv.WarningMessage = &xtv + sv.WarningMessage = ptr.String(xtv) } default: @@ -46078,7 +46262,7 @@ func awsAwsquery_deserializeOpDocumentStopActivityStreamOutput(v **StopActivityS } if val != nil { xtv := string(val) - sv.KinesisStreamName = &xtv + sv.KinesisStreamName = ptr.String(xtv) } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -46094,7 +46278,7 @@ func awsAwsquery_deserializeOpDocumentStopActivityStreamOutput(v **StopActivityS } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): diff --git a/service/rds/go.mod b/service/rds/go.mod index f8da328e78a..08e5b758eb2 100644 --- a/service/rds/go.mod +++ b/service/rds/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/rds go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v0.1.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v0.1.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/rds/serializers.go b/service/rds/serializers.go index 6afbc03edcd..293976b327e 100644 --- a/service/rds/serializers.go +++ b/service/rds/serializers.go @@ -7162,34 +7162,28 @@ func (m *awsAwsquery_serializeOpStopDBInstance) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentAttributeValueList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAttributeValueList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("AttributeValue") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentAvailabilityZones(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAvailabilityZones(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("AvailabilityZone") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7249,50 +7243,41 @@ func awsAwsquery_serializeDocumentConnectionPoolConfiguration(v *types.Connectio return nil } -func awsAwsquery_serializeDocumentDBSecurityGroupNameList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentDBSecurityGroupNameList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("DBSecurityGroupName") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentEngineModeList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentEngineModeList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentEventCategoriesList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentEventCategoriesList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("EventCategory") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7316,68 +7301,56 @@ func awsAwsquery_serializeDocumentFilter(v *types.Filter, value query.Value) err return nil } -func awsAwsquery_serializeDocumentFilterList(v []*types.Filter, value query.Value) error { +func awsAwsquery_serializeDocumentFilterList(v []types.Filter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Filter") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentFilterValueList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentFilterValueList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Value") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentKeyList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentKeyList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentLogTypeList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentLogTypeList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7425,36 +7398,30 @@ func awsAwsquery_serializeDocumentOptionConfiguration(v *types.OptionConfigurati return nil } -func awsAwsquery_serializeDocumentOptionConfigurationList(v []*types.OptionConfiguration, value query.Value) error { +func awsAwsquery_serializeDocumentOptionConfigurationList(v []types.OptionConfiguration, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("OptionConfiguration") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentOptionConfiguration(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentOptionConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentOptionNamesList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentOptionNamesList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7488,14 +7455,14 @@ func awsAwsquery_serializeDocumentOptionSetting(v *types.OptionSetting, value qu objectKey.String(*v.Description) } - if v.IsCollection != nil { + if v.IsCollection { objectKey := object.Key("IsCollection") - objectKey.Boolean(*v.IsCollection) + objectKey.Boolean(v.IsCollection) } - if v.IsModifiable != nil { + if v.IsModifiable { objectKey := object.Key("IsModifiable") - objectKey.Boolean(*v.IsModifiable) + objectKey.Boolean(v.IsModifiable) } if v.Name != nil { @@ -7511,18 +7478,15 @@ func awsAwsquery_serializeDocumentOptionSetting(v *types.OptionSetting, value qu return nil } -func awsAwsquery_serializeDocumentOptionSettingsList(v []*types.OptionSetting, value query.Value) error { +func awsAwsquery_serializeDocumentOptionSettingsList(v []types.OptionSetting, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("OptionSetting") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentOptionSetting(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentOptionSetting(&v[i], av); err != nil { return err } } @@ -7558,9 +7522,9 @@ func awsAwsquery_serializeDocumentParameter(v *types.Parameter, value query.Valu objectKey.String(*v.Description) } - if v.IsModifiable != nil { + if v.IsModifiable { objectKey := object.Key("IsModifiable") - objectKey.Boolean(*v.IsModifiable) + objectKey.Boolean(v.IsModifiable) } if v.MinimumEngineVersion != nil { @@ -7593,18 +7557,15 @@ func awsAwsquery_serializeDocumentParameter(v *types.Parameter, value query.Valu return nil } -func awsAwsquery_serializeDocumentParametersList(v []*types.Parameter, value query.Value) error { +func awsAwsquery_serializeDocumentParametersList(v []types.Parameter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Parameter") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentParameter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentParameter(&v[i], av); err != nil { return err } } @@ -7628,18 +7589,15 @@ func awsAwsquery_serializeDocumentProcessorFeature(v *types.ProcessorFeature, va return nil } -func awsAwsquery_serializeDocumentProcessorFeatureList(v []*types.ProcessorFeature, value query.Value) error { +func awsAwsquery_serializeDocumentProcessorFeatureList(v []types.ProcessorFeature, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ProcessorFeature") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentProcessorFeature(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentProcessorFeature(&v[i], av); err != nil { return err } } @@ -7678,50 +7636,41 @@ func awsAwsquery_serializeDocumentScalingConfiguration(v *types.ScalingConfigura return nil } -func awsAwsquery_serializeDocumentSourceIdsList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSourceIdsList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SourceId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentStringList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentSubnetIdentifierList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSubnetIdentifierList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SubnetIdentifier") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7743,18 +7692,15 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTagList(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTagList(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Tag") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -7793,36 +7739,30 @@ func awsAwsquery_serializeDocumentUserAuthConfig(v *types.UserAuthConfig, value return nil } -func awsAwsquery_serializeDocumentUserAuthConfigList(v []*types.UserAuthConfig, value query.Value) error { +func awsAwsquery_serializeDocumentUserAuthConfigList(v []types.UserAuthConfig, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentUserAuthConfig(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentUserAuthConfig(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentVpcSecurityGroupIdList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentVpcSecurityGroupIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("VpcSecurityGroupId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8962,9 +8902,9 @@ func awsAwsquery_serializeOpDocumentCreateDBProxyInput(v *CreateDBProxyInput, va objectKey.String(*v.DBProxyName) } - if v.DebugLogging != nil { + if v.DebugLogging { objectKey := object.Key("DebugLogging") - objectKey.Boolean(*v.DebugLogging) + objectKey.Boolean(v.DebugLogging) } if len(v.EngineFamily) > 0 { @@ -8977,9 +8917,9 @@ func awsAwsquery_serializeOpDocumentCreateDBProxyInput(v *CreateDBProxyInput, va objectKey.Integer(*v.IdleClientTimeout) } - if v.RequireTLS != nil { + if v.RequireTLS { objectKey := object.Key("RequireTLS") - objectKey.Boolean(*v.RequireTLS) + objectKey.Boolean(v.RequireTLS) } if v.RoleArn != nil { @@ -9252,9 +9192,9 @@ func awsAwsquery_serializeOpDocumentDeleteDBClusterInput(v *DeleteDBClusterInput objectKey.String(*v.FinalDBSnapshotIdentifier) } - if v.SkipFinalSnapshot != nil { + if v.SkipFinalSnapshot { objectKey := object.Key("SkipFinalSnapshot") - objectKey.Boolean(*v.SkipFinalSnapshot) + objectKey.Boolean(v.SkipFinalSnapshot) } return nil @@ -9315,9 +9255,9 @@ func awsAwsquery_serializeOpDocumentDeleteDBInstanceInput(v *DeleteDBInstanceInp objectKey.String(*v.FinalDBSnapshotIdentifier) } - if v.SkipFinalSnapshot != nil { + if v.SkipFinalSnapshot { objectKey := object.Key("SkipFinalSnapshot") - objectKey.Boolean(*v.SkipFinalSnapshot) + objectKey.Boolean(v.SkipFinalSnapshot) } return nil @@ -9674,9 +9614,9 @@ func awsAwsquery_serializeOpDocumentDescribeDBClustersInput(v *DescribeDBCluster } } - if v.IncludeShared != nil { + if v.IncludeShared { objectKey := object.Key("IncludeShared") - objectKey.Boolean(*v.IncludeShared) + objectKey.Boolean(v.IncludeShared) } if v.Marker != nil { @@ -9725,14 +9665,14 @@ func awsAwsquery_serializeOpDocumentDescribeDBClusterSnapshotsInput(v *DescribeD } } - if v.IncludePublic != nil { + if v.IncludePublic { objectKey := object.Key("IncludePublic") - objectKey.Boolean(*v.IncludePublic) + objectKey.Boolean(v.IncludePublic) } - if v.IncludeShared != nil { + if v.IncludeShared { objectKey := object.Key("IncludeShared") - objectKey.Boolean(*v.IncludeShared) + objectKey.Boolean(v.IncludeShared) } if v.Marker != nil { @@ -9762,9 +9702,9 @@ func awsAwsquery_serializeOpDocumentDescribeDBEngineVersionsInput(v *DescribeDBE objectKey.String(*v.DBParameterGroupFamily) } - if v.DefaultOnly != nil { + if v.DefaultOnly { objectKey := object.Key("DefaultOnly") - objectKey.Boolean(*v.DefaultOnly) + objectKey.Boolean(v.DefaultOnly) } if v.Engine != nil { @@ -9884,9 +9824,9 @@ func awsAwsquery_serializeOpDocumentDescribeDBLogFilesInput(v *DescribeDBLogFile objectKey.String(*v.DBInstanceIdentifier) } - if v.FileLastWritten != nil { + if v.FileLastWritten != 0 { objectKey := object.Key("FileLastWritten") - objectKey.Long(*v.FileLastWritten) + objectKey.Long(v.FileLastWritten) } if v.FilenameContains != nil { @@ -9894,9 +9834,9 @@ func awsAwsquery_serializeOpDocumentDescribeDBLogFilesInput(v *DescribeDBLogFile objectKey.String(*v.FilenameContains) } - if v.FileSize != nil { + if v.FileSize != 0 { objectKey := object.Key("FileSize") - objectKey.Long(*v.FileSize) + objectKey.Long(v.FileSize) } if v.Filters != nil { @@ -10146,14 +10086,14 @@ func awsAwsquery_serializeOpDocumentDescribeDBSnapshotsInput(v *DescribeDBSnapsh } } - if v.IncludePublic != nil { + if v.IncludePublic { objectKey := object.Key("IncludePublic") - objectKey.Boolean(*v.IncludePublic) + objectKey.Boolean(v.IncludePublic) } - if v.IncludeShared != nil { + if v.IncludeShared { objectKey := object.Key("IncludeShared") - objectKey.Boolean(*v.IncludeShared) + objectKey.Boolean(v.IncludeShared) } if v.Marker != nil { @@ -10791,9 +10731,9 @@ func awsAwsquery_serializeOpDocumentDownloadDBLogFilePortionInput(v *DownloadDBL objectKey.String(*v.Marker) } - if v.NumberOfLines != nil { + if v.NumberOfLines != 0 { objectKey := object.Key("NumberOfLines") - objectKey.Integer(*v.NumberOfLines) + objectKey.Integer(v.NumberOfLines) } return nil @@ -10946,14 +10886,14 @@ func awsAwsquery_serializeOpDocumentModifyDBClusterInput(v *ModifyDBClusterInput object := value.Object() _ = object - if v.AllowMajorVersionUpgrade != nil { + if v.AllowMajorVersionUpgrade { objectKey := object.Key("AllowMajorVersionUpgrade") - objectKey.Boolean(*v.AllowMajorVersionUpgrade) + objectKey.Boolean(v.AllowMajorVersionUpgrade) } - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.BacktrackWindow != nil { @@ -11134,14 +11074,14 @@ func awsAwsquery_serializeOpDocumentModifyDBInstanceInput(v *ModifyDBInstanceInp objectKey.Integer(*v.AllocatedStorage) } - if v.AllowMajorVersionUpgrade != nil { + if v.AllowMajorVersionUpgrade { objectKey := object.Key("AllowMajorVersionUpgrade") - objectKey.Boolean(*v.AllowMajorVersionUpgrade) + objectKey.Boolean(v.AllowMajorVersionUpgrade) } - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.AutoMinorVersionUpgrade != nil { @@ -11591,9 +11531,9 @@ func awsAwsquery_serializeOpDocumentModifyOptionGroupInput(v *ModifyOptionGroupI object := value.Object() _ = object - if v.ApplyImmediately != nil { + if v.ApplyImmediately { objectKey := object.Key("ApplyImmediately") - objectKey.Boolean(*v.ApplyImmediately) + objectKey.Boolean(v.ApplyImmediately) } if v.OptionGroupName != nil { @@ -11842,9 +11782,9 @@ func awsAwsquery_serializeOpDocumentResetDBClusterParameterGroupInput(v *ResetDB } } - if v.ResetAllParameters != nil { + if v.ResetAllParameters { objectKey := object.Key("ResetAllParameters") - objectKey.Boolean(*v.ResetAllParameters) + objectKey.Boolean(v.ResetAllParameters) } return nil @@ -11866,9 +11806,9 @@ func awsAwsquery_serializeOpDocumentResetDBParameterGroupInput(v *ResetDBParamet } } - if v.ResetAllParameters != nil { + if v.ResetAllParameters { objectKey := object.Key("ResetAllParameters") - objectKey.Boolean(*v.ResetAllParameters) + objectKey.Boolean(v.ResetAllParameters) } return nil @@ -12264,9 +12204,9 @@ func awsAwsquery_serializeOpDocumentRestoreDBClusterToPointInTimeInput(v *Restor } } - if v.UseLatestRestorableTime != nil { + if v.UseLatestRestorableTime { objectKey := object.Key("UseLatestRestorableTime") - objectKey.Boolean(*v.UseLatestRestorableTime) + objectKey.Boolean(v.UseLatestRestorableTime) } if v.VpcSecurityGroupIds != nil { @@ -12831,9 +12771,9 @@ func awsAwsquery_serializeOpDocumentRestoreDBInstanceToPointInTimeInput(v *Resto objectKey.Boolean(*v.UseDefaultProcessorFeatures) } - if v.UseLatestRestorableTime != nil { + if v.UseLatestRestorableTime { objectKey := object.Key("UseLatestRestorableTime") - objectKey.Boolean(*v.UseLatestRestorableTime) + objectKey.Boolean(v.UseLatestRestorableTime) } if v.VpcSecurityGroupIds != nil { diff --git a/service/rds/types/types.go b/service/rds/types/types.go index 07bad65748d..ab17b1fd7a2 100644 --- a/service/rds/types/types.go +++ b/service/rds/types/types.go @@ -102,10 +102,10 @@ type AccountQuota struct { AccountQuotaName *string // The maximum allowed value for the quota. - Max *int64 + Max int64 // The amount currently used toward the quota maximum. - Used *int64 + Used int64 } // Contains Availability Zone information. This data type is used as an element in @@ -188,10 +188,10 @@ type CharacterSet struct { type CloudwatchLogsExportConfiguration struct { // The list of log types to disable. - DisableLogTypes []*string + DisableLogTypes []string // The list of log types to enable. - EnableLogTypes []*string + EnableLogTypes []string } // Specifies the settings that control the size and behavior of the connection pool @@ -231,7 +231,7 @@ type ConnectionPoolConfiguration struct { // all later statements in a session using a proxy to be pinned to the same // underlying database connection. Including an item in the list exempts that class // of SQL operations from the pinning behavior. Default: no session pinning filters - SessionPinningFilters []*string + SessionPinningFilters []string } // Displays the settings that control the size and behavior of the connection pool @@ -241,7 +241,7 @@ type ConnectionPoolConfigurationInfo struct { // The number of seconds for a proxy to wait for a connection to become available // in the connection pool. Only applies when the proxy has opened its maximum // number of connections and all connections are busy with client sessions. - ConnectionBorrowTimeout *int32 + ConnectionBorrowTimeout int32 // One or more SQL statements for the proxy to run when opening each new database // connection. Typically used with SET statements to make sure that each connection @@ -254,7 +254,7 @@ type ConnectionPoolConfigurationInfo struct { // The maximum size of the connection pool for each target in a target group. For // Aurora MySQL, it is expressed as a percentage of the max_connections setting for // the RDS DB instance or Aurora DB cluster used by the target group. - MaxConnectionsPercent *int32 + MaxConnectionsPercent int32 // Controls how actively the proxy closes idle database connections in the // connection pool. A high value enables the proxy to leave a high percentage of @@ -262,14 +262,14 @@ type ConnectionPoolConfigurationInfo struct { // connections and return the underlying database connections to the connection // pool. For Aurora MySQL, it is expressed as a percentage of the max_connections // setting for the RDS DB instance or Aurora DB cluster used by the target group. - MaxIdleConnectionsPercent *int32 + MaxIdleConnectionsPercent int32 // Each item in the list represents a class of SQL operations that normally cause // all later statements in a session using a proxy to be pinned to the same // underlying database connection. Including an item in the list exempts that class // of SQL operations from the pinning behavior. Currently, the only allowed value // is EXCLUDE_VARIABLE_SETS. - SessionPinningFilters []*string + SessionPinningFilters []string } // A custom Availability Zone (AZ) is an on-premises AZ that is integrated with a @@ -323,11 +323,11 @@ type DBCluster struct { // Provides a list of the AWS Identity and Access Management (IAM) roles that are // associated with the DB cluster. IAM roles that are associated with a DB cluster // grant permission for the DB cluster to access other AWS services on your behalf. - AssociatedRoles []*DBClusterRole + AssociatedRoles []DBClusterRole // Provides the list of Availability Zones (AZs) where instances in the DB cluster // can be created. - AvailabilityZones []*string + AvailabilityZones []string // The number of change records stored for Backtrack. BacktrackConsumedChangeRecords *int64 @@ -366,7 +366,7 @@ type DBCluster struct { CrossAccountClone *bool // Identifies all custom endpoints associated with the cluster. - CustomEndpoints []*string + CustomEndpoints []string // The Amazon Resource Name (ARN) for the DB cluster. DBClusterArn *string @@ -376,10 +376,10 @@ type DBCluster struct { DBClusterIdentifier *string // Provides the list of instances that make up the DB cluster. - DBClusterMembers []*DBClusterMember + DBClusterMembers []DBClusterMember // Provides the list of option group memberships for this DB cluster. - DBClusterOptionGroupMemberships []*DBClusterOptionGroupStatus + DBClusterOptionGroupMemberships []DBClusterOptionGroupStatus // Specifies the name of the DB cluster parameter group for the DB cluster. DBClusterParameterGroup *string @@ -403,7 +403,7 @@ type DBCluster struct { DeletionProtection *bool // The Active Directory Domain membership records associated with the DB cluster. - DomainMemberships []*DomainMembership + DomainMemberships []DomainMembership // The earliest time to which a DB cluster can be backtracked. EarliestBacktrackTime *time.Time @@ -417,7 +417,7 @@ type DBCluster struct { // DB engine, see Amazon RDS Database Log Files // (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html) // in the Amazon Aurora User Guide. - EnabledCloudwatchLogsExports []*string + EnabledCloudwatchLogsExports []string // Specifies the connection endpoint for the primary instance of the DB cluster. Endpoint *string @@ -491,7 +491,7 @@ type DBCluster struct { // Contains one or more identifiers of the read replicas associated with this DB // cluster. - ReadReplicaIdentifiers []*string + ReadReplicaIdentifiers []string // The reader endpoint for the DB cluster. The reader endpoint for a DB cluster // load-balances connections across the Aurora Replicas that are available in a DB @@ -518,15 +518,15 @@ type DBCluster struct { Status *string // Specifies whether the DB cluster is encrypted. - StorageEncrypted *bool + StorageEncrypted bool // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - TagList []*Tag + TagList []Tag // Provides a list of VPC security groups that the DB cluster belongs to. - VpcSecurityGroups []*VpcSecurityGroupMembership + VpcSecurityGroups []VpcSecurityGroupMembership } // This data type is used as a response element in the DescribeDBClusterBacktracks @@ -610,10 +610,10 @@ type DBClusterEndpoint struct { // List of DB instance identifiers that aren't part of the custom endpoint group. // All other eligible instances are reachable through the custom endpoint. Only // relevant if the list of static members is empty. - ExcludedMembers []*string + ExcludedMembers []string // List of DB instance identifiers that are part of the custom endpoint group. - StaticMembers []*string + StaticMembers []string // The current status of the endpoint. One of: creating, available, deleting, // inactive, modifying. The inactive state applies to an endpoint that can't be @@ -634,7 +634,7 @@ type DBClusterMember struct { // Value that is true if the cluster member is the primary instance for the DB // cluster and false otherwise. - IsClusterWriter *bool + IsClusterWriter bool // A value that specifies the order in which an Aurora Replica is promoted to the // primary instance after a failure of the existing primary instance. For more @@ -705,11 +705,11 @@ type DBClusterRole struct { type DBClusterSnapshot struct { // Specifies the allocated storage size in gibibytes (GiB). - AllocatedStorage *int32 + AllocatedStorage int32 // Provides the list of Availability Zones (AZs) where instances in the DB cluster // snapshot can be restored. - AvailabilityZones []*string + AvailabilityZones []string // Specifies the time when the DB cluster was created, in Universal Coordinated // Time (UTC). @@ -733,7 +733,7 @@ type DBClusterSnapshot struct { // True if mapping of AWS Identity and Access Management (IAM) accounts to database // accounts is enabled, and otherwise false. - IAMDatabaseAuthenticationEnabled *bool + IAMDatabaseAuthenticationEnabled bool // If StorageEncrypted is true, the AWS KMS key identifier for the encrypted DB // cluster snapshot. @@ -746,11 +746,11 @@ type DBClusterSnapshot struct { MasterUsername *string // Specifies the percentage of the estimated data that has been transferred. - PercentProgress *int32 + PercentProgress int32 // Specifies the port that the DB cluster was listening on at the time of the // snapshot. - Port *int32 + Port int32 // Provides the time when the snapshot was taken, in Universal Coordinated Time // (UTC). @@ -768,12 +768,12 @@ type DBClusterSnapshot struct { Status *string // Specifies whether the DB cluster snapshot is encrypted. - StorageEncrypted *bool + StorageEncrypted bool // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - TagList []*Tag + TagList []Tag // Provides the VPC ID associated with the DB cluster snapshot. VpcId *string @@ -796,7 +796,7 @@ type DBClusterSnapshotAttribute struct { // accounts that are authorized to copy or restore the manual DB cluster snapshot. // If a value of all is in the list, then the manual DB cluster snapshot is public // and available for any AWS account to copy or restore. - AttributeValues []*string + AttributeValues []string } // Contains the results of a successful call to the @@ -807,7 +807,7 @@ type DBClusterSnapshotAttribute struct { type DBClusterSnapshotAttributesResult struct { // The list of attributes and values for the manual DB cluster snapshot. - DBClusterSnapshotAttributes []*DBClusterSnapshotAttribute + DBClusterSnapshotAttributes []DBClusterSnapshotAttribute // The identifier of the manual DB cluster snapshot that the attributes apply to. DBClusterSnapshotIdentifier *string @@ -838,49 +838,49 @@ type DBEngineVersion struct { // The types of logs that the database engine has available for export to // CloudWatch Logs. - ExportableLogTypes []*string + ExportableLogTypes []string // The status of the DB engine version, either available or deprecated. Status *string // A list of the character sets supported by this engine for the CharacterSetName // parameter of the CreateDBInstance operation. - SupportedCharacterSets []*CharacterSet + SupportedCharacterSets []CharacterSet // A list of the supported DB engine modes. - SupportedEngineModes []*string + SupportedEngineModes []string // A list of features supported by the DB engine. Supported feature names include // the following. // // * s3Import - SupportedFeatureNames []*string + SupportedFeatureNames []string // A list of the character sets supported by the Oracle DB engine for the // NcharCharacterSetName parameter of the CreateDBInstance operation. - SupportedNcharCharacterSets []*CharacterSet + SupportedNcharCharacterSets []CharacterSet // A list of the time zones supported by this engine for the Timezone parameter of // the CreateDBInstance action. - SupportedTimezones []*Timezone + SupportedTimezones []Timezone // A value that indicates whether you can use Aurora global databases with a // specific DB engine version. - SupportsGlobalDatabases *bool + SupportsGlobalDatabases bool // A value that indicates whether the engine version supports exporting the log // types specified by ExportableLogTypes to CloudWatch Logs. - SupportsLogExportsToCloudwatchLogs *bool + SupportsLogExportsToCloudwatchLogs bool // A value that indicates whether you can use Aurora parallel query with a specific // DB engine version. - SupportsParallelQuery *bool + SupportsParallelQuery bool // Indicates whether the database engine version supports read replicas. - SupportsReadReplica *bool + SupportsReadReplica bool // A list of engine versions that this database engine version can be upgraded to. - ValidUpgradeTarget []*UpgradeTarget + ValidUpgradeTarget []UpgradeTarget } // Contains the details of an Amazon RDS DB instance. This data type is used as a @@ -888,20 +888,20 @@ type DBEngineVersion struct { type DBInstance struct { // Specifies the allocated storage size specified in gibibytes. - AllocatedStorage *int32 + AllocatedStorage int32 // The AWS Identity and Access Management (IAM) roles associated with the DB // instance. - AssociatedRoles []*DBInstanceRole + AssociatedRoles []DBInstanceRole // Indicates that minor version patches are applied automatically. - AutoMinorVersionUpgrade *bool + AutoMinorVersionUpgrade bool // Specifies the name of the Availability Zone the DB instance is located in. AvailabilityZone *string // Specifies the number of days for which automatic DB snapshots are retained. - BackupRetentionPeriod *int32 + BackupRetentionPeriod int32 // The identifier of the CA certificate for this DB instance. CACertificateIdentifier *string @@ -914,7 +914,7 @@ type DBInstance struct { // instance. Amazon Aurora Not applicable. Copying tags to snapshots is managed by // the DB cluster. Setting this value for an Aurora DB instance has no effect on // the DB cluster setting. For more information, see DBCluster. - CopyTagsToSnapshot *bool + CopyTagsToSnapshot bool // If the DB instance is a member of a DB cluster, contains the name of the DB // cluster that the DB instance is a member of. @@ -946,11 +946,11 @@ type DBInstance struct { DBName *string // Provides the list of DB parameter groups applied to this DB instance. - DBParameterGroups []*DBParameterGroupStatus + DBParameterGroups []DBParameterGroupStatus // A list of DB security group elements containing DBSecurityGroup.Name and // DBSecurityGroup.Status subelements. - DBSecurityGroups []*DBSecurityGroupMembership + DBSecurityGroups []DBSecurityGroupMembership // Specifies information on the subnet group associated with the DB instance, // including the name, description, and subnets in the subnet group. @@ -958,7 +958,7 @@ type DBInstance struct { // Specifies the port that the DB instance listens on. If the DB instance is part // of a DB cluster, this can be a different port than the DB cluster port. - DbInstancePort *int32 + DbInstancePort int32 // The AWS Region-unique, immutable identifier for the DB instance. This identifier // is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB @@ -969,17 +969,17 @@ type DBInstance struct { // be deleted when deletion protection is enabled. For more information, see // Deleting a DB Instance // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). - DeletionProtection *bool + DeletionProtection bool // The Active Directory Domain membership records associated with the DB instance. - DomainMemberships []*DomainMembership + DomainMemberships []DomainMembership // A list of log types that this DB instance is configured to export to CloudWatch // Logs. Log types vary by DB engine. For information about the log types for each // DB engine, see Amazon RDS Database Log Files // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html) in // the Amazon RDS User Guide. - EnabledCloudwatchLogsExports []*string + EnabledCloudwatchLogsExports []string // Specifies the connection endpoint. Endpoint *Endpoint @@ -1005,7 +1005,7 @@ type DBInstance struct { // // * Aurora 5.6 // or higher. To enable IAM database authentication for Aurora, see DBCluster Type. - IAMDatabaseAuthenticationEnabled *bool + IAMDatabaseAuthenticationEnabled bool // Provides the date and time the DB instance was created. InstanceCreateTime *time.Time @@ -1043,7 +1043,7 @@ type DBInstance struct { MonitoringRoleArn *string // Specifies if the DB instance is a Multi-AZ deployment. - MultiAZ *bool + MultiAZ bool // The name of the NCHAR character set for the Oracle DB instance. This character // set specifies the Unicode encoding for data stored in table columns of type @@ -1051,7 +1051,7 @@ type DBInstance struct { NcharCharacterSetName *string // Provides the list of option group memberships for this DB instance. - OptionGroupMemberships []*OptionGroupMembership + OptionGroupMemberships []OptionGroupMembership // Specifies that changes to the DB instance are pending. This element is only // included when changes are pending. Specific changes are identified by @@ -1081,7 +1081,7 @@ type DBInstance struct { // The number of CPU cores and the number of threads per core for the DB instance // class of the DB instance. - ProcessorFeatures []*ProcessorFeature + ProcessorFeatures []ProcessorFeature // A value that specifies the order in which an Aurora Replica is promoted to the // primary instance after a failure of the existing primary instance. For more @@ -1098,7 +1098,7 @@ type DBInstance struct { // group assigned to the DB instance doesn't permit it. When the DB instance isn't // publicly accessible, it is an internal DB instance with a DNS name that resolves // to a private IP address. For more information, see CreateDBInstance. - PubliclyAccessible *bool + PubliclyAccessible bool // Contains one or more identifiers of Aurora DB clusters to which the RDS DB // instance is replicated as a read replica. For example, when you create an Aurora @@ -1106,11 +1106,11 @@ type DBInstance struct { // Aurora read replica is shown. This output does not contain information about // cross region Aurora read replicas. Currently, each RDS DB instance can have only // one Aurora read replica. - ReadReplicaDBClusterIdentifiers []*string + ReadReplicaDBClusterIdentifiers []string // Contains one or more identifiers of the read replicas associated with this DB // instance. - ReadReplicaDBInstanceIdentifiers []*string + ReadReplicaDBInstanceIdentifiers []string // Contains the identifier of the source DB instance if this DB instance is a read // replica. @@ -1129,10 +1129,10 @@ type DBInstance struct { // The status of a read replica. If the instance isn't a read replica, this is // blank. - StatusInfos []*DBInstanceStatusInfo + StatusInfos []DBInstanceStatusInfo // Specifies whether the DB instance is encrypted. - StorageEncrypted *bool + StorageEncrypted bool // Specifies the storage type associated with DB instance. StorageType *string @@ -1140,7 +1140,7 @@ type DBInstance struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - TagList []*Tag + TagList []Tag // The ARN from the key store with which the instance is associated for TDE // encryption. @@ -1152,7 +1152,7 @@ type DBInstance struct { Timezone *string // Provides a list of VPC security group elements that the DB instance belongs to. - VpcSecurityGroups []*VpcSecurityGroupMembership + VpcSecurityGroups []VpcSecurityGroupMembership } // An automated backup of a DB instance. It it consists of system backups, @@ -1161,7 +1161,7 @@ type DBInstance struct { type DBInstanceAutomatedBackup struct { // Specifies the allocated storage size in gibibytes (GiB). - AllocatedStorage *int32 + AllocatedStorage int32 // The Availability Zone that the automated backup was created in. For information // on AWS Regions and Availability Zones, see Regions and Availability Zones @@ -1180,7 +1180,7 @@ type DBInstanceAutomatedBackup struct { DbiResourceId *string // Specifies whether the automated backup is encrypted. - Encrypted *bool + Encrypted bool // The name of the database engine for this automated backup. Engine *string @@ -1190,7 +1190,7 @@ type DBInstanceAutomatedBackup struct { // True if mapping of AWS Identity and Access Management (IAM) accounts to database // accounts is enabled, and otherwise false. - IAMDatabaseAuthenticationEnabled *bool + IAMDatabaseAuthenticationEnabled bool // Provides the date and time that the DB instance was created. InstanceCreateTime *time.Time @@ -1215,7 +1215,7 @@ type DBInstanceAutomatedBackup struct { // The port number that the automated backup used for connections. Default: // Inherits from the source DB instance Valid Values: 1150-65535 - Port *int32 + Port int32 // The AWS Region associated with the automated backup. Region *string @@ -1288,7 +1288,7 @@ type DBInstanceStatusInfo struct { // Boolean value that is true if the instance is operating normally, or false if // the instance is in an error state. - Normal *bool + Normal bool // Status of the DB instance. For a StatusType of read replica, the values can be // replicating, replication stop point set, replication stop point reached, error, @@ -1348,7 +1348,7 @@ type DBProxy struct { // One or more data structures specifying the authorization mechanism to connect to // the associated RDS DB instance or Aurora DB cluster. - Auth []*UserAuthConfigInfo + Auth []UserAuthConfigInfo // The date and time when the proxy was first created. CreatedDate *time.Time @@ -1367,7 +1367,7 @@ type DBProxy struct { // only enable this setting when needed for debugging, and only when you have // security measures in place to safeguard any sensitive information that appears // in the logs. - DebugLogging *bool + DebugLogging bool // The endpoint that you can use to connect to the proxy. You include the endpoint // value in the connection string for a database client application. @@ -1380,11 +1380,11 @@ type DBProxy struct { // proxy drops the client connection. The proxy keeps the underlying database // connection open and puts it back into the connection pool for reuse by later // connection requests. Default: 1800 (30 minutes) Constraints: 1 to 28,800 - IdleClientTimeout *int32 + IdleClientTimeout int32 // Indicates whether Transport Layer Security (TLS) encryption is required for // connections to the proxy. - RequireTLS *bool + RequireTLS bool // The Amazon Resource Name (ARN) for the IAM role that the proxy uses to access // Amazon Secrets Manager. @@ -1399,10 +1399,10 @@ type DBProxy struct { UpdatedDate *time.Time // Provides a list of VPC security groups that the proxy belongs to. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string // The EC2 subnet IDs for the proxy. - VpcSubnetIds []*string + VpcSubnetIds []string } // Contains the details for an RDS Proxy target. It represents an RDS DB instance @@ -1416,7 +1416,7 @@ type DBProxyTarget struct { // The port that the RDS Proxy uses to connect to the target RDS DB instance or // Aurora DB cluster. - Port *int32 + Port int32 // The identifier representing the target. It can be the instance identifier for an // RDS DB instance, or the cluster identifier for an Aurora DB cluster. @@ -1456,7 +1456,7 @@ type DBProxyTargetGroup struct { // Whether this target group is the first one used for connection requests by the // associated proxy. Because each proxy is currently associated with a single // target group, currently this setting is always true. - IsDefault *bool + IsDefault bool // The current status of this target group. A status of available means the target // group is correctly associated with a database. Other values indicate that you @@ -1489,10 +1489,10 @@ type DBSecurityGroup struct { DBSecurityGroupName *string // Contains a list of EC2SecurityGroup elements. - EC2SecurityGroups []*EC2SecurityGroup + EC2SecurityGroups []EC2SecurityGroup // Contains a list of IPRange elements. - IPRanges []*IPRange + IPRanges []IPRange // Provides the AWS ID of the owner of a specific DB security group. OwnerId *string @@ -1526,7 +1526,7 @@ type DBSecurityGroupMembership struct { type DBSnapshot struct { // Specifies the allocated storage size in gibibytes (GiB). - AllocatedStorage *int32 + AllocatedStorage int32 // Specifies the name of the Availability Zone the DB instance was located in at // the time of the DB snapshot. @@ -1547,7 +1547,7 @@ type DBSnapshot struct { DbiResourceId *string // Specifies whether the DB snapshot is encrypted. - Encrypted *bool + Encrypted bool // Specifies the name of the database engine. Engine *string @@ -1557,7 +1557,7 @@ type DBSnapshot struct { // True if mapping of AWS Identity and Access Management (IAM) accounts to database // accounts is enabled, and otherwise false. - IAMDatabaseAuthenticationEnabled *bool + IAMDatabaseAuthenticationEnabled bool // Specifies the time in Coordinated Universal Time (UTC) when the DB instance, // from which the snapshot was taken, was created. @@ -1580,15 +1580,15 @@ type DBSnapshot struct { OptionGroupName *string // The percentage of the estimated data that has been transferred. - PercentProgress *int32 + PercentProgress int32 // Specifies the port that the database engine was listening on at the time of the // snapshot. - Port *int32 + Port int32 // The number of CPU cores and the number of threads per core for the DB instance // class of the DB instance when the DB snapshot was created. - ProcessorFeatures []*ProcessorFeature + ProcessorFeatures []ProcessorFeature // Specifies when the snapshot was taken in Coodinated Universal Time (UTC). SnapshotCreateTime *time.Time @@ -1612,7 +1612,7 @@ type DBSnapshot struct { // A list of tags. For more information, see Tagging Amazon RDS Resources // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in // the Amazon RDS User Guide. - TagList []*Tag + TagList []Tag // The ARN from the key store with which to associate the instance for TDE // encryption. @@ -1643,7 +1643,7 @@ type DBSnapshotAttribute struct { // accounts that are authorized to copy or restore the manual DB snapshot. If a // value of all is in the list, then the manual DB snapshot is public and available // for any AWS account to copy or restore. - AttributeValues []*string + AttributeValues []string } // Contains the results of a successful call to the DescribeDBSnapshotAttributes @@ -1653,7 +1653,7 @@ type DBSnapshotAttribute struct { type DBSnapshotAttributesResult struct { // The list of attributes and values for the manual DB snapshot. - DBSnapshotAttributes []*DBSnapshotAttribute + DBSnapshotAttributes []DBSnapshotAttribute // The identifier of the manual DB snapshot that the attributes apply to. DBSnapshotIdentifier *string @@ -1676,7 +1676,7 @@ type DBSubnetGroup struct { SubnetGroupStatus *string // Contains a list of Subnet elements. - Subnets []*Subnet + Subnets []Subnet // Provides the VpcId of the DB subnet group. VpcId *string @@ -1686,13 +1686,13 @@ type DBSubnetGroup struct { type DescribeDBLogFilesDetails struct { // A POSIX timestamp when the last log entry was written. - LastWritten *int64 + LastWritten int64 // The name of the log file for the specified DB instance. LogFileName *string // The size, in bytes, of the log file for the specified DB instance. - Size *int64 + Size int64 } // An Active Directory Domain membership record associated with the DB instance or @@ -1718,10 +1718,10 @@ type DomainMembership struct { type DoubleRange struct { // The minimum value in the range. - From *float64 + From float64 // The maximum value in the range. - To *float64 + To float64 } // This data type is used as a response element in the following actions: @@ -1772,7 +1772,7 @@ type Endpoint struct { HostedZoneId *string // Specifies the port that the database engine is listening on. - Port *int32 + Port int32 } // Contains the result of a successful invocation of the @@ -1789,7 +1789,7 @@ type EngineDefaults struct { Marker *string // Contains a list of engine default parameters. - Parameters []*Parameter + Parameters []Parameter } // This data type is used as a response element in the DescribeEvents action. @@ -1799,7 +1799,7 @@ type Event struct { Date *time.Time // Specifies the category for the event. - EventCategories []*string + EventCategories []string // Provides the text of this event. Message *string @@ -1819,7 +1819,7 @@ type Event struct { type EventCategoriesMap struct { // The event categories for the specified source type - EventCategories []*string + EventCategories []string // The source type that the returned categories belong to SourceType *string @@ -1838,10 +1838,10 @@ type EventSubscription struct { // A Boolean value indicating if the subscription is enabled. True indicates the // subscription is enabled. - Enabled *bool + Enabled bool // A list of event categories for the RDS event notification subscription. - EventCategoriesList []*string + EventCategoriesList []string // The Amazon Resource Name (ARN) for the event subscription. EventSubscriptionArn *string @@ -1850,7 +1850,7 @@ type EventSubscription struct { SnsTopicArn *string // A list of source IDs for the RDS event notification subscription. - SourceIdsList []*string + SourceIdsList []string // The source type for the RDS event notification subscription. SourceType *string @@ -1886,7 +1886,7 @@ type ExportTask struct { // * database.schema.table table-name - Export a // table of the database schema. This format is valid only for RDS for PostgreSQL // and Aurora PostgreSQL. - ExportOnly []*string + ExportOnly []string // A unique identifier for the snapshot export task. This ID isn't an identifier // for the Amazon S3 bucket where the snapshot is exported to. @@ -1907,7 +1907,7 @@ type ExportTask struct { KmsKeyId *string // The progress of the snapshot export task as a percentage. - PercentProgress *int32 + PercentProgress int32 // The Amazon S3 bucket that the snapshot is exported to. S3Bucket *string @@ -1932,7 +1932,7 @@ type ExportTask struct { TaskStartTime *time.Time // The total amount of data exported, in gigabytes. - TotalExtractedDataInGB *int32 + TotalExtractedDataInGB int32 // A warning about the snapshot export task. WarningMessage *string @@ -1965,7 +1965,7 @@ type Filter struct { // One or more filter values. Filter values are case-sensitive. // // This member is required. - Values []*string + Values []string } // A data type representing an Aurora global database. @@ -1992,7 +1992,7 @@ type GlobalCluster struct { // The list of cluster IDs for secondary clusters within the global database // cluster. Currently limited to 1 item. - GlobalClusterMembers []*GlobalClusterMember + GlobalClusterMembers []GlobalClusterMember // The AWS Region-unique, immutable identifier for the global database cluster. // This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key @@ -2020,11 +2020,11 @@ type GlobalClusterMember struct { // Specifies whether the Aurora cluster is the primary cluster (that is, has // read-write capability) for the Aurora global database with which it is // associated. - IsWriter *bool + IsWriter bool // The Amazon Resource Name (ARN) for each read-only secondary cluster associated // with the Aurora global database. - Readers []*string + Readers []string } // Contains the installation media for a DB engine that requires an on-premises @@ -2094,7 +2094,7 @@ type Option struct { // If the option requires access to a port, then this DB security group allows // access to the port. - DBSecurityGroupMemberships []*DBSecurityGroupMembership + DBSecurityGroupMemberships []DBSecurityGroupMembership // The description of the option. OptionDescription *string @@ -2103,23 +2103,23 @@ type Option struct { OptionName *string // The option settings for this option. - OptionSettings []*OptionSetting + OptionSettings []OptionSetting // The version of the option. OptionVersion *string // Indicate if this option is permanent. - Permanent *bool + Permanent bool // Indicate if this option is persistent. - Persistent *bool + Persistent bool // If required, the port configured for this option to use. Port *int32 // If the option requires access to a port, then this VPC security group allows // access to the port. - VpcSecurityGroupMemberships []*VpcSecurityGroupMembership + VpcSecurityGroupMemberships []VpcSecurityGroupMembership } // A list of all available options @@ -2131,10 +2131,10 @@ type OptionConfiguration struct { OptionName *string // A list of DBSecurityGroupMembership name strings used for this option. - DBSecurityGroupMemberships []*string + DBSecurityGroupMemberships []string // The option settings to include in an option group. - OptionSettings []*OptionSetting + OptionSettings []OptionSetting // The version for the option. OptionVersion *string @@ -2143,7 +2143,7 @@ type OptionConfiguration struct { Port *int32 // A list of VpcSecurityGroupMembership name strings used for this option. - VpcSecurityGroupMemberships []*string + VpcSecurityGroupMemberships []string } // @@ -2152,7 +2152,7 @@ type OptionGroup struct { // Indicates whether this option group can be applied to both VPC and non-VPC // instances. The value true indicates the option group can be applied to both VPC // and non-VPC instances. - AllowsVpcAndNonVpcInstanceMemberships *bool + AllowsVpcAndNonVpcInstanceMemberships bool // Indicates the name of the engine that this option group can be applied to. EngineName *string @@ -2170,7 +2170,7 @@ type OptionGroup struct { OptionGroupName *string // Indicates what options are available in the option group. - Options []*Option + Options []Option // If AllowsVpcAndNonVpcInstanceMemberships is false, this field is blank. If // AllowsVpcAndNonVpcInstanceMemberships is true and this field is blank, then this @@ -2215,41 +2215,41 @@ type OptionGroupOption struct { // The option settings that are available (and the default value) for each option // in an option group. - OptionGroupOptionSettings []*OptionGroupOptionSetting + OptionGroupOptionSettings []OptionGroupOptionSetting // The versions that are available for the option. - OptionGroupOptionVersions []*OptionVersion + OptionGroupOptionVersions []OptionVersion // The options that conflict with this option. - OptionsConflictsWith []*string + OptionsConflictsWith []string // The options that are prerequisites for this option. - OptionsDependedOn []*string + OptionsDependedOn []string // Permanent options can never be removed from an option group. An option group // containing a permanent option can't be removed from a DB instance. - Permanent *bool + Permanent bool // Persistent options can't be removed from an option group while DB instances are // associated with the option group. If you disassociate all DB instances from the // option group, your can remove the persistent option from the option group. - Persistent *bool + Persistent bool // Specifies whether the option requires a port. - PortRequired *bool + PortRequired bool // If true, you must enable the Auto Minor Version Upgrade setting for your DB // instance before you can use this option. You can enable Auto Minor Version // Upgrade when you first create your DB instance, or by modifying your DB instance // later. - RequiresAutoMinorEngineVersionUpgrade *bool + RequiresAutoMinorEngineVersionUpgrade bool // If true, you can change the option to an earlier version of the option. This // only applies to options that have different versions available. SupportsOptionVersionDowngrade *bool // If true, you can only use this option with a DB instance that is in a VPC. - VpcOnly *bool + VpcOnly bool } // Option group option settings are used to display settings available for each @@ -2268,15 +2268,15 @@ type OptionGroupOptionSetting struct { // Boolean value where true indicates that this option group option can be changed // from the default value. - IsModifiable *bool + IsModifiable bool // Boolean value where true indicates that a value must be specified for this // option setting of the option group option. - IsRequired *bool + IsRequired bool // The minimum DB engine version required for the corresponding allowed value for // this option setting. - MinimumEngineVersionPerAllowedValue []*MinimumEngineVersionPerAllowedValue + MinimumEngineVersionPerAllowedValue []MinimumEngineVersionPerAllowedValue // The description of the option group option. SettingDescription *string @@ -2307,11 +2307,11 @@ type OptionSetting struct { Description *string // Indicates if the option setting is part of a collection. - IsCollection *bool + IsCollection bool // A Boolean value that, when true, indicates the option setting can be modified // from the default. - IsModifiable *bool + IsModifiable bool // The name of the option that has settings that you can set. Name *string @@ -2325,7 +2325,7 @@ type OptionSetting struct { type OptionVersion struct { // True if the version is the default version of the option, and otherwise false. - IsDefault *bool + IsDefault bool // The version of the option. Version *string @@ -2339,11 +2339,11 @@ type OrderableDBInstanceOption struct { AvailabilityZoneGroup *string // A list of Availability Zones for a DB instance. - AvailabilityZones []*AvailabilityZone + AvailabilityZones []AvailabilityZone // A list of the available processor features for the DB instance class of a DB // instance. - AvailableProcessorFeatures []*AvailableProcessorFeature + AvailableProcessorFeatures []AvailableProcessorFeature // The DB instance class for a DB instance. DBInstanceClass *string @@ -2376,52 +2376,52 @@ type OrderableDBInstanceOption struct { MinStorageSize *int32 // Indicates whether a DB instance is Multi-AZ capable. - MultiAZCapable *bool + MultiAZCapable bool // Whether a DB instance supports RDS on Outposts. For more information about RDS // on Outposts, see Amazon RDS on AWS Outposts // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) in // the Amazon RDS User Guide. - OutpostCapable *bool + OutpostCapable bool // Indicates whether a DB instance can have a read replica. - ReadReplicaCapable *bool + ReadReplicaCapable bool // Indicates the storage type for a DB instance. StorageType *string // A list of the supported DB engine modes. - SupportedEngineModes []*string + SupportedEngineModes []string // Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 // to 60 seconds. - SupportsEnhancedMonitoring *bool + SupportsEnhancedMonitoring bool // A value that indicates whether you can use Aurora global databases with a // specific combination of other DB engine attributes. - SupportsGlobalDatabases *bool + SupportsGlobalDatabases bool // Indicates whether a DB instance supports IAM database authentication. - SupportsIAMDatabaseAuthentication *bool + SupportsIAMDatabaseAuthentication bool // Indicates whether a DB instance supports provisioned IOPS. - SupportsIops *bool + SupportsIops bool // Whether a DB instance supports Kerberos Authentication. SupportsKerberosAuthentication *bool // True if a DB instance supports Performance Insights, otherwise false. - SupportsPerformanceInsights *bool + SupportsPerformanceInsights bool // Whether Amazon RDS can automatically scale storage for DB instances that use the // specified DB instance class. SupportsStorageAutoscaling *bool // Indicates whether a DB instance supports encrypted storage. - SupportsStorageEncryption *bool + SupportsStorageEncryption bool // Indicates whether a DB instance is in a VPC. - Vpc *bool + Vpc bool } // A data type that represents an Outpost. For more information about RDS on @@ -2457,7 +2457,7 @@ type Parameter struct { // Indicates whether (true) or not (false) the parameter can be modified. Some // parameters have security or operational implications that prevent them from // being changed. - IsModifiable *bool + IsModifiable bool // The earliest engine version to which the parameter can apply. MinimumEngineVersion *string @@ -2472,7 +2472,7 @@ type Parameter struct { Source *string // The valid DB engine modes. - SupportedEngineModes []*string + SupportedEngineModes []string } // A list of the log types whose configuration is still pending. In other words, @@ -2481,11 +2481,11 @@ type PendingCloudwatchLogsExports struct { // Log types that are in the process of being enabled. After they are enabled, // these log types are exported to CloudWatch Logs. - LogTypesToDisable []*string + LogTypesToDisable []string // Log types that are in the process of being deactivated. After they are // deactivated, these log types aren't exported to CloudWatch Logs. - LogTypesToEnable []*string + LogTypesToEnable []string } // Provides information about a pending maintenance action for a resource. @@ -2572,7 +2572,7 @@ type PendingModifiedValues struct { // The number of CPU cores and the number of threads per core for the DB instance // class of the DB instance. - ProcessorFeatures []*ProcessorFeature + ProcessorFeatures []ProcessorFeature // Specifies the storage type to be associated with the DB instance. StorageType *string @@ -2639,7 +2639,7 @@ type ProcessorFeature struct { type Range struct { // The minimum value in the range. - From *int32 + From int32 // The step value for the range. For example, if you have a range of 5,000 to // 10,000, with a step value of 1,000, the valid values start at 5,000 and step up @@ -2648,7 +2648,7 @@ type Range struct { Step *int32 // The maximum value in the range. - To *int32 + To int32 } // This data type is used as a response element in the DescribeReservedDBInstances @@ -2656,7 +2656,7 @@ type Range struct { type RecurringCharge struct { // The amount of the recurring charge. - RecurringChargeAmount *float64 + RecurringChargeAmount float64 // The frequency of the recurring charge. RecurringChargeFrequency *string @@ -2673,13 +2673,13 @@ type ReservedDBInstance struct { DBInstanceClass *string // The number of reserved DB instances. - DBInstanceCount *int32 + DBInstanceCount int32 // The duration of the reservation in seconds. - Duration *int32 + Duration int32 // The fixed price charged for this reserved DB instance. - FixedPrice *float64 + FixedPrice float64 // The unique identifier for the lease associated with the reserved DB instance. // AWS Support might request the lease ID for an issue related to a reserved DB @@ -2687,7 +2687,7 @@ type ReservedDBInstance struct { LeaseId *string // Indicates if the reservation applies to Multi-AZ deployments. - MultiAZ *bool + MultiAZ bool // The offering type of this reserved DB instance. OfferingType *string @@ -2696,7 +2696,7 @@ type ReservedDBInstance struct { ProductDescription *string // The recurring price charged to run this reserved DB instance. - RecurringCharges []*RecurringCharge + RecurringCharges []RecurringCharge // The Amazon Resource Name (ARN) for the reserved DB instance. ReservedDBInstanceArn *string @@ -2714,7 +2714,7 @@ type ReservedDBInstance struct { State *string // The hourly price charged for this reserved DB instance. - UsagePrice *float64 + UsagePrice float64 } // This data type is used as a response element in the @@ -2728,13 +2728,13 @@ type ReservedDBInstancesOffering struct { DBInstanceClass *string // The duration of the offering in seconds. - Duration *int32 + Duration int32 // The fixed price charged for this offering. - FixedPrice *float64 + FixedPrice float64 // Indicates if the offering applies to Multi-AZ deployments. - MultiAZ *bool + MultiAZ bool // The offering type. OfferingType *string @@ -2743,13 +2743,13 @@ type ReservedDBInstancesOffering struct { ProductDescription *string // The recurring price charged to run this reserved DB instance. - RecurringCharges []*RecurringCharge + RecurringCharges []RecurringCharge // The offering identifier. ReservedDBInstancesOfferingId *string // The hourly price charged for this offering. - UsagePrice *float64 + UsagePrice float64 } // Describes the pending maintenance actions for a resource. @@ -2757,7 +2757,7 @@ type ResourcePendingMaintenanceActions struct { // A list that provides details about the pending maintenance actions for the // resource. - PendingMaintenanceActionDetails []*PendingMaintenanceAction + PendingMaintenanceActionDetails []PendingMaintenanceAction // The ARN of the resource that has pending maintenance actions. ResourceIdentifier *string @@ -2923,7 +2923,7 @@ type UpgradeTarget struct { // A value that indicates whether the target version is applied to any source DB // instances that have AutoMinorVersionUpgrade set to true. - AutoUpgrade *bool + AutoUpgrade bool // The version of the database engine that a DB instance can be upgraded to. Description *string @@ -2935,7 +2935,7 @@ type UpgradeTarget struct { EngineVersion *string // A value that indicates whether a database engine is upgraded to a major version. - IsMajorVersionUpgrade *bool + IsMajorVersionUpgrade bool } // Specifies the details of authentication used by a proxy to log in as a specific @@ -2995,10 +2995,10 @@ type UserAuthConfigInfo struct { type ValidDBInstanceModificationsMessage struct { // Valid storage options for your DB instance. - Storage []*ValidStorageOptions + Storage []ValidStorageOptions // Valid processor features for your DB instance. - ValidProcessorFeatures []*AvailableProcessorFeature + ValidProcessorFeatures []AvailableProcessorFeature } // Information about valid modifications that you can make to your DB instance. @@ -3009,20 +3009,20 @@ type ValidStorageOptions struct { // The valid range of Provisioned IOPS to gibibytes of storage multiplier. For // example, 3-10, which means that provisioned IOPS can be between 3 and 10 times // storage. - IopsToStorageRatio []*DoubleRange + IopsToStorageRatio []DoubleRange // The valid range of provisioned IOPS. For example, 1000-20000. - ProvisionedIops []*Range + ProvisionedIops []Range // The valid range of storage in gibibytes. For example, 100 to 16384. - StorageSize []*Range + StorageSize []Range // The valid storage types for your DB instance. For example, gp2, io1. StorageType *string // Whether or not Amazon RDS can automatically scale storage for DB instances that // use the new instance class. - SupportsStorageAutoscaling *bool + SupportsStorageAutoscaling bool } // This data type is used as a response element for queries on VPC security group diff --git a/service/rds/validators.go b/service/rds/validators.go index c9e9e716bc1..1b243622cb4 100644 --- a/service/rds/validators.go +++ b/service/rds/validators.go @@ -3028,13 +3028,13 @@ func validateFilter(v *types.Filter) error { } } -func validateFilterList(v []*types.Filter) error { +func validateFilterList(v []types.Filter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FilterList"} for i := range v { - if err := validateFilter(v[i]); err != nil { + if err := validateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3060,13 +3060,13 @@ func validateOptionConfiguration(v *types.OptionConfiguration) error { } } -func validateOptionConfigurationList(v []*types.OptionConfiguration) error { +func validateOptionConfigurationList(v []types.OptionConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OptionConfigurationList"} for i := range v { - if err := validateOptionConfiguration(v[i]); err != nil { + if err := validateOptionConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/rdsdata/api_op_BatchExecuteStatement.go b/service/rdsdata/api_op_BatchExecuteStatement.go index 4adb9744c5f..43ac22b9318 100644 --- a/service/rdsdata/api_op_BatchExecuteStatement.go +++ b/service/rdsdata/api_op_BatchExecuteStatement.go @@ -65,7 +65,7 @@ type BatchExecuteStatementInput struct { // BatchExecuteStatement operation. // // Array parameters are not supported. - ParameterSets [][]*types.SqlParameter + ParameterSets [][]types.SqlParameter // The name of the database schema. Schema *string @@ -82,7 +82,7 @@ type BatchExecuteStatementInput struct { type BatchExecuteStatementOutput struct { // The execution results of each batch entry. - UpdateResults []*types.UpdateResult + UpdateResults []types.UpdateResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rdsdata/api_op_ExecuteSql.go b/service/rdsdata/api_op_ExecuteSql.go index 70d77922bd2..3f5b91c4f83 100644 --- a/service/rdsdata/api_op_ExecuteSql.go +++ b/service/rdsdata/api_op_ExecuteSql.go @@ -62,7 +62,7 @@ type ExecuteSqlInput struct { type ExecuteSqlOutput struct { // The results of the SQL statement or statements. - SqlStatementResults []*types.SqlStatementResult + SqlStatementResults []types.SqlStatementResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rdsdata/api_op_ExecuteStatement.go b/service/rdsdata/api_op_ExecuteStatement.go index c4d5c1719f0..795180f3b11 100644 --- a/service/rdsdata/api_op_ExecuteStatement.go +++ b/service/rdsdata/api_op_ExecuteStatement.go @@ -54,16 +54,16 @@ type ExecuteStatementInput struct { // DDL statements, we recommend continuing to run the statement after the call // times out. When a DDL statement terminates before it is finished running, it can // result in errors and possibly corrupted data structures. - ContinueAfterTimeout *bool + ContinueAfterTimeout bool // The name of the database. Database *string // A value that indicates whether to include metadata in the results. - IncludeResultMetadata *bool + IncludeResultMetadata bool // The parameters for the SQL statement. Array parameters are not supported. - Parameters []*types.SqlParameter + Parameters []types.SqlParameter // Options that control how the result set is returned. ResultSetOptions *types.ResultSetOptions @@ -84,7 +84,7 @@ type ExecuteStatementInput struct { type ExecuteStatementOutput struct { // Metadata for the columns included in the results. - ColumnMetadata []*types.ColumnMetadata + ColumnMetadata []types.ColumnMetadata // Values for fields generated during the request. The generatedFields data isn't // supported by Aurora PostgreSQL. To get the values of generated fields, use the @@ -94,7 +94,7 @@ type ExecuteStatementOutput struct { GeneratedFields []types.Field // The number of records updated by the request. - NumberOfRecordsUpdated *int64 + NumberOfRecordsUpdated int64 // The records returned by the SQL statement. Records [][]types.Field diff --git a/service/rdsdata/deserializers.go b/service/rdsdata/deserializers.go index 10769831492..7a0bd5d12d5 100644 --- a/service/rdsdata/deserializers.go +++ b/service/rdsdata/deserializers.go @@ -329,7 +329,7 @@ func awsRestjson1_deserializeOpDocumentBeginTransactionOutput(v **BeginTransacti if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.TransactionId = &jtv + sv.TransactionId = ptr.String(jtv) } default: @@ -495,7 +495,7 @@ func awsRestjson1_deserializeOpDocumentCommitTransactionOutput(v **CommitTransac if !ok { return fmt.Errorf("expected TransactionStatus to be of type string, got %T instead", value) } - sv.TransactionStatus = &jtv + sv.TransactionStatus = ptr.String(jtv) } default: @@ -828,7 +828,7 @@ func awsRestjson1_deserializeOpDocumentExecuteStatementOutput(v **ExecuteStateme if err != nil { return err } - sv.NumberOfRecordsUpdated = &i64 + sv.NumberOfRecordsUpdated = i64 } case "records": @@ -999,7 +999,7 @@ func awsRestjson1_deserializeOpDocumentRollbackTransactionOutput(v **RollbackTra if !ok { return fmt.Errorf("expected TransactionStatus to be of type string, got %T instead", value) } - sv.TransactionStatus = &jtv + sv.TransactionStatus = ptr.String(jtv) } default: @@ -1223,7 +1223,7 @@ loop: break loop case "booleanValues": - var mv []*bool + var mv []bool if err := awsRestjson1_deserializeDocumentBooleanArray(&mv, value); err != nil { return err } @@ -1231,7 +1231,7 @@ loop: break loop case "doubleValues": - var mv []*float64 + var mv []float64 if err := awsRestjson1_deserializeDocumentDoubleArray(&mv, value); err != nil { return err } @@ -1239,7 +1239,7 @@ loop: break loop case "longValues": - var mv []*int64 + var mv []int64 if err := awsRestjson1_deserializeDocumentLongArray(&mv, value); err != nil { return err } @@ -1247,7 +1247,7 @@ loop: break loop case "stringValues": - var mv []*string + var mv []string if err := awsRestjson1_deserializeDocumentStringArray(&mv, value); err != nil { return err } @@ -1326,7 +1326,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1338,7 +1338,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc return nil } -func awsRestjson1_deserializeDocumentBooleanArray(v *[]*bool, value interface{}) error { +func awsRestjson1_deserializeDocumentBooleanArray(v *[]bool, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1351,21 +1351,21 @@ func awsRestjson1_deserializeDocumentBooleanArray(v *[]*bool, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*bool + var cv []bool if *v == nil { - cv = []*bool{} + cv = []bool{} } else { cv = *v } for _, value := range shape { - var col *bool + var col bool if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1406,7 +1406,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if err != nil { return err } - sv.ArrayBaseColumnType = ptr.Int32(int32(i64)) + sv.ArrayBaseColumnType = int32(i64) } case "isAutoIncrement": @@ -1415,7 +1415,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsAutoIncrement = &jtv + sv.IsAutoIncrement = jtv } case "isCaseSensitive": @@ -1424,7 +1424,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsCaseSensitive = &jtv + sv.IsCaseSensitive = jtv } case "isCurrency": @@ -1433,7 +1433,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsCurrency = &jtv + sv.IsCurrency = jtv } case "isSigned": @@ -1442,7 +1442,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsSigned = &jtv + sv.IsSigned = jtv } case "label": @@ -1451,7 +1451,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Label = &jtv + sv.Label = ptr.String(jtv) } case "name": @@ -1460,7 +1460,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "nullable": @@ -1473,7 +1473,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if err != nil { return err } - sv.Nullable = ptr.Int32(int32(i64)) + sv.Nullable = int32(i64) } case "precision": @@ -1486,7 +1486,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if err != nil { return err } - sv.Precision = ptr.Int32(int32(i64)) + sv.Precision = int32(i64) } case "scale": @@ -1499,7 +1499,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if err != nil { return err } - sv.Scale = ptr.Int32(int32(i64)) + sv.Scale = int32(i64) } case "schemaName": @@ -1508,7 +1508,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SchemaName = &jtv + sv.SchemaName = ptr.String(jtv) } case "tableName": @@ -1517,7 +1517,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "type": @@ -1530,7 +1530,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if err != nil { return err } - sv.Type = ptr.Int32(int32(i64)) + sv.Type = int32(i64) } case "typeName": @@ -1539,7 +1539,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TypeName = &jtv + sv.TypeName = ptr.String(jtv) } default: @@ -1551,7 +1551,7 @@ func awsRestjson1_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va return nil } -func awsRestjson1_deserializeDocumentDoubleArray(v *[]*float64, value interface{}) error { +func awsRestjson1_deserializeDocumentDoubleArray(v *[]float64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1564,15 +1564,15 @@ func awsRestjson1_deserializeDocumentDoubleArray(v *[]*float64, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*float64 + var cv []float64 if *v == nil { - cv = []*float64{} + cv = []float64{} } else { cv = *v } for _, value := range shape { - var col *float64 + var col float64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -1582,7 +1582,7 @@ func awsRestjson1_deserializeDocumentDoubleArray(v *[]*float64, value interface{ if err != nil { return err } - col = &f64 + col = f64 } cv = append(cv, col) @@ -1633,19 +1633,19 @@ loop: break loop case "booleanValue": - var mv *bool + var mv bool if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.FieldMemberBooleanValue{Value: *mv} + uv = &types.FieldMemberBooleanValue{Value: mv} break loop case "doubleValue": - var mv *float64 + var mv float64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -1655,25 +1655,25 @@ loop: if err != nil { return err } - mv = &f64 + mv = f64 } - uv = &types.FieldMemberDoubleValue{Value: *mv} + uv = &types.FieldMemberDoubleValue{Value: mv} break loop case "isNull": - var mv *bool + var mv bool if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.FieldMemberIsNull{Value: *mv} + uv = &types.FieldMemberIsNull{Value: mv} break loop case "longValue": - var mv *int64 + var mv int64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -1683,21 +1683,21 @@ loop: if err != nil { return err } - mv = &i64 + mv = i64 } - uv = &types.FieldMemberLongValue{Value: *mv} + uv = &types.FieldMemberLongValue{Value: mv} break loop case "stringValue": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.FieldMemberStringValue{Value: *mv} + uv = &types.FieldMemberStringValue{Value: mv} break loop default: @@ -1772,7 +1772,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1815,7 +1815,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte return nil } -func awsRestjson1_deserializeDocumentLongArray(v *[]*int64, value interface{}) error { +func awsRestjson1_deserializeDocumentLongArray(v *[]int64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1828,15 +1828,15 @@ func awsRestjson1_deserializeDocumentLongArray(v *[]*int64, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int64 + var cv []int64 if *v == nil { - cv = []*int64{} + cv = []int64{} } else { cv = *v } for _, value := range shape { - var col *int64 + var col int64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -1846,7 +1846,7 @@ func awsRestjson1_deserializeDocumentLongArray(v *[]*int64, value interface{}) e if err != nil { return err } - col = &i64 + col = i64 } cv = append(cv, col) @@ -1855,7 +1855,7 @@ func awsRestjson1_deserializeDocumentLongArray(v *[]*int64, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentMetadata(v *[]*types.ColumnMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentMetadata(v *[]types.ColumnMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1868,18 +1868,20 @@ func awsRestjson1_deserializeDocumentMetadata(v *[]*types.ColumnMetadata, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnMetadata + var cv []types.ColumnMetadata if *v == nil { - cv = []*types.ColumnMetadata{} + cv = []types.ColumnMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnMetadata - if err := awsRestjson1_deserializeDocumentColumnMetadata(&col, value); err != nil { + var col types.ColumnMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1915,7 +1917,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1963,7 +1965,7 @@ func awsRestjson1_deserializeDocumentRecord(v **types.Record, value interface{}) return nil } -func awsRestjson1_deserializeDocumentRecords(v *[]*types.Record, value interface{}) error { +func awsRestjson1_deserializeDocumentRecords(v *[]types.Record, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1976,18 +1978,20 @@ func awsRestjson1_deserializeDocumentRecords(v *[]*types.Record, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Record + var cv []types.Record if *v == nil { - cv = []*types.Record{} + cv = []types.Record{} } else { cv = *v } for _, value := range shape { - var col *types.Record - if err := awsRestjson1_deserializeDocumentRecord(&col, value); err != nil { + var col types.Record + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2068,7 +2072,7 @@ func awsRestjson1_deserializeDocumentResultSetMetadata(v **types.ResultSetMetada if err != nil { return err } - sv.ColumnCount = &i64 + sv.ColumnCount = i64 } case "columnMetadata": @@ -2212,7 +2216,7 @@ func awsRestjson1_deserializeDocumentSqlStatementResult(v **types.SqlStatementRe if err != nil { return err } - sv.NumberOfRecordsUpdated = &i64 + sv.NumberOfRecordsUpdated = i64 } case "resultFrame": @@ -2229,7 +2233,7 @@ func awsRestjson1_deserializeDocumentSqlStatementResult(v **types.SqlStatementRe return nil } -func awsRestjson1_deserializeDocumentSqlStatementResults(v *[]*types.SqlStatementResult, value interface{}) error { +func awsRestjson1_deserializeDocumentSqlStatementResults(v *[]types.SqlStatementResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2242,18 +2246,20 @@ func awsRestjson1_deserializeDocumentSqlStatementResults(v *[]*types.SqlStatemen return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SqlStatementResult + var cv []types.SqlStatementResult if *v == nil { - cv = []*types.SqlStatementResult{} + cv = []types.SqlStatementResult{} } else { cv = *v } for _, value := range shape { - var col *types.SqlStatementResult - if err := awsRestjson1_deserializeDocumentSqlStatementResult(&col, value); err != nil { + var col types.SqlStatementResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentSqlStatementResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2293,7 +2299,7 @@ func awsRestjson1_deserializeDocumentStatementTimeoutException(v **types.Stateme if err != nil { return err } - sv.DbConnectionId = &i64 + sv.DbConnectionId = i64 } case "message": @@ -2302,7 +2308,7 @@ func awsRestjson1_deserializeDocumentStatementTimeoutException(v **types.Stateme if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2314,7 +2320,7 @@ func awsRestjson1_deserializeDocumentStatementTimeoutException(v **types.Stateme return nil } -func awsRestjson1_deserializeDocumentStringArray(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStringArray(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2327,21 +2333,21 @@ func awsRestjson1_deserializeDocumentStringArray(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -2422,7 +2428,7 @@ func awsRestjson1_deserializeDocumentUpdateResult(v **types.UpdateResult, value return nil } -func awsRestjson1_deserializeDocumentUpdateResults(v *[]*types.UpdateResult, value interface{}) error { +func awsRestjson1_deserializeDocumentUpdateResults(v *[]types.UpdateResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2435,18 +2441,20 @@ func awsRestjson1_deserializeDocumentUpdateResults(v *[]*types.UpdateResult, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UpdateResult + var cv []types.UpdateResult if *v == nil { - cv = []*types.UpdateResult{} + cv = []types.UpdateResult{} } else { cv = *v } for _, value := range shape { - var col *types.UpdateResult - if err := awsRestjson1_deserializeDocumentUpdateResult(&col, value); err != nil { + var col types.UpdateResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentUpdateResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2480,7 +2488,7 @@ loop: break loop case "bigIntValue": - var mv *int64 + var mv int64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -2490,21 +2498,21 @@ loop: if err != nil { return err } - mv = &i64 + mv = i64 } - uv = &types.ValueMemberBigIntValue{Value: *mv} + uv = &types.ValueMemberBigIntValue{Value: mv} break loop case "bitValue": - var mv *bool + var mv bool if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.ValueMemberBitValue{Value: *mv} + uv = &types.ValueMemberBitValue{Value: mv} break loop case "blobValue": @@ -2524,7 +2532,7 @@ loop: break loop case "doubleValue": - var mv *float64 + var mv float64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -2534,13 +2542,13 @@ loop: if err != nil { return err } - mv = &f64 + mv = f64 } - uv = &types.ValueMemberDoubleValue{Value: *mv} + uv = &types.ValueMemberDoubleValue{Value: mv} break loop case "intValue": - var mv *int32 + var mv int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -2550,25 +2558,25 @@ loop: if err != nil { return err } - mv = ptr.Int32(int32(i64)) + mv = int32(i64) } - uv = &types.ValueMemberIntValue{Value: *mv} + uv = &types.ValueMemberIntValue{Value: mv} break loop case "isNull": - var mv *bool + var mv bool if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.ValueMemberIsNull{Value: *mv} + uv = &types.ValueMemberIsNull{Value: mv} break loop case "realValue": - var mv *float32 + var mv float32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -2578,28 +2586,30 @@ loop: if err != nil { return err } - mv = ptr.Float32(float32(f64)) + mv = float32(f64) } - uv = &types.ValueMemberRealValue{Value: *mv} + uv = &types.ValueMemberRealValue{Value: mv} break loop case "stringValue": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.ValueMemberStringValue{Value: *mv} + uv = &types.ValueMemberStringValue{Value: mv} break loop case "structValue": - var mv *types.StructValue - if err := awsRestjson1_deserializeDocumentStructValue(&mv, value); err != nil { + var mv types.StructValue + destAddr := &mv + if err := awsRestjson1_deserializeDocumentStructValue(&destAddr, value); err != nil { return err } + mv = *destAddr uv = &types.ValueMemberStructValue{Value: mv} break loop diff --git a/service/rdsdata/go.mod b/service/rdsdata/go.mod index d0b8ddaedef..bab4ca13b37 100644 --- a/service/rdsdata/go.mod +++ b/service/rdsdata/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/rdsdata go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/rdsdata/serializers.go b/service/rdsdata/serializers.go index d63df6353c3..44097597a0c 100644 --- a/service/rdsdata/serializers.go +++ b/service/rdsdata/serializers.go @@ -448,9 +448,9 @@ func awsRestjson1_serializeOpDocumentExecuteStatementInput(v *ExecuteStatementIn object := value.Object() defer object.Close() - if v.ContinueAfterTimeout != nil { + if v.ContinueAfterTimeout { ok := object.Key("continueAfterTimeout") - ok.Boolean(*v.ContinueAfterTimeout) + ok.Boolean(v.ContinueAfterTimeout) } if v.Database != nil { @@ -458,9 +458,9 @@ func awsRestjson1_serializeOpDocumentExecuteStatementInput(v *ExecuteStatementIn ok.String(*v.Database) } - if v.IncludeResultMetadata != nil { + if v.IncludeResultMetadata { ok := object.Key("includeResultMetadata") - ok.Boolean(*v.IncludeResultMetadata) + ok.Boolean(v.IncludeResultMetadata) } if v.Parameters != nil { @@ -595,7 +595,6 @@ func awsRestjson1_serializeDocumentArrayOfArray(v []types.ArrayValue, value smit for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsRestjson1_serializeDocumentArrayValue(v[i], av); err != nil { @@ -647,32 +646,24 @@ func awsRestjson1_serializeDocumentArrayValue(v types.ArrayValue, value smithyjs return nil } -func awsRestjson1_serializeDocumentBooleanArray(v []*bool, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBooleanArray(v []bool, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Boolean(*v[i]) + av.Boolean(v[i]) } return nil } -func awsRestjson1_serializeDocumentDoubleArray(v []*float64, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDoubleArray(v []float64, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Double(*v[i]) + av.Double(v[i]) } return nil } @@ -719,17 +710,13 @@ func awsRestjson1_serializeDocumentField(v types.Field, value smithyjson.Value) return nil } -func awsRestjson1_serializeDocumentLongArray(v []*int64, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLongArray(v []int64, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Long(*v[i]) + av.Long(v[i]) } return nil } @@ -770,14 +757,13 @@ func awsRestjson1_serializeDocumentSqlParameter(v *types.SqlParameter, value smi return nil } -func awsRestjson1_serializeDocumentSqlParameterSets(v [][]*types.SqlParameter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSqlParameterSets(v [][]types.SqlParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsRestjson1_serializeDocumentSqlParametersList(v[i], av); err != nil { @@ -787,34 +773,26 @@ func awsRestjson1_serializeDocumentSqlParameterSets(v [][]*types.SqlParameter, v return nil } -func awsRestjson1_serializeDocumentSqlParametersList(v []*types.SqlParameter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSqlParametersList(v []types.SqlParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSqlParameter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSqlParameter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentStringArray(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStringArray(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/rdsdata/types/errors.go b/service/rdsdata/types/errors.go index ca5e0aad555..8c8d35c1297 100644 --- a/service/rdsdata/types/errors.go +++ b/service/rdsdata/types/errors.go @@ -96,7 +96,7 @@ func (e *ServiceUnavailableError) ErrorFault() smithy.ErrorFault { return smithy type StatementTimeoutException struct { Message *string - DbConnectionId *int64 + DbConnectionId int64 } func (e *StatementTimeoutException) Error() string { diff --git a/service/rdsdata/types/types.go b/service/rdsdata/types/types.go index 76cd7d5e432..673a2385595 100644 --- a/service/rdsdata/types/types.go +++ b/service/rdsdata/types/types.go @@ -16,28 +16,28 @@ func (*ArrayValueMemberArrayValues) isArrayValue() {} // An array of Boolean values. type ArrayValueMemberBooleanValues struct { - Value []*bool + Value []bool } func (*ArrayValueMemberBooleanValues) isArrayValue() {} // An array of integers. type ArrayValueMemberDoubleValues struct { - Value []*float64 + Value []float64 } func (*ArrayValueMemberDoubleValues) isArrayValue() {} // An array of floating point numbers. type ArrayValueMemberLongValues struct { - Value []*int64 + Value []int64 } func (*ArrayValueMemberLongValues) isArrayValue() {} // An array of strings. type ArrayValueMemberStringValues struct { - Value []*string + Value []string } func (*ArrayValueMemberStringValues) isArrayValue() {} @@ -46,19 +46,19 @@ func (*ArrayValueMemberStringValues) isArrayValue() {} type ColumnMetadata struct { // The type of the column. - ArrayBaseColumnType *int32 + ArrayBaseColumnType int32 // A value that indicates whether the column increments automatically. - IsAutoIncrement *bool + IsAutoIncrement bool // A value that indicates whether the column is case-sensitive. - IsCaseSensitive *bool + IsCaseSensitive bool // A value that indicates whether the column contains currency values. - IsCurrency *bool + IsCurrency bool // A value that indicates whether an integer column is signed. - IsSigned *bool + IsSigned bool // The label for the column. Label *string @@ -67,13 +67,13 @@ type ColumnMetadata struct { Name *string // A value that indicates whether the column is nullable. - Nullable *int32 + Nullable int32 // The precision value of a decimal number column. - Precision *int32 + Precision int32 // The scale value of a decimal number column. - Scale *int32 + Scale int32 // The name of the schema that owns the table that includes the column. SchemaName *string @@ -82,7 +82,7 @@ type ColumnMetadata struct { TableName *string // The type of the column. - Type *int32 + Type int32 // The database-specific data type of the column. TypeName *string @@ -153,7 +153,7 @@ type Record struct { type ResultFrame struct { // The records in the result set. - Records []*Record + Records []Record // The result-set metadata in the result set. ResultSetMetadata *ResultSetMetadata @@ -163,10 +163,10 @@ type ResultFrame struct { type ResultSetMetadata struct { // The number of columns in the result set. - ColumnCount *int64 + ColumnCount int64 // The metadata of the columns in the result set. - ColumnMetadata []*ColumnMetadata + ColumnMetadata []ColumnMetadata } // Options that control how the result set is returned. @@ -214,7 +214,7 @@ type SqlParameter struct { type SqlStatementResult struct { // The number of records updated by a SQL statement. - NumberOfRecordsUpdated *int64 + NumberOfRecordsUpdated int64 // The result set of the SQL statement. ResultFrame *ResultFrame @@ -304,7 +304,7 @@ func (*ValueMemberStringValue) isValue() {} // A value for a column of STRUCT data type. type ValueMemberStructValue struct { - Value *StructValue + Value StructValue } func (*ValueMemberStructValue) isValue() {} diff --git a/service/redshift/api_op_BatchDeleteClusterSnapshots.go b/service/redshift/api_op_BatchDeleteClusterSnapshots.go index e0b18ddd4fd..cbde4e72eac 100644 --- a/service/redshift/api_op_BatchDeleteClusterSnapshots.go +++ b/service/redshift/api_op_BatchDeleteClusterSnapshots.go @@ -32,16 +32,16 @@ type BatchDeleteClusterSnapshotsInput struct { // A list of identifiers for the snapshots that you want to delete. // // This member is required. - Identifiers []*types.DeleteClusterSnapshotMessage + Identifiers []types.DeleteClusterSnapshotMessage } type BatchDeleteClusterSnapshotsOutput struct { // A list of any errors returned. - Errors []*types.SnapshotErrorMessage + Errors []types.SnapshotErrorMessage // A list of the snapshot identifiers that were deleted. - Resources []*string + Resources []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_BatchModifyClusterSnapshots.go b/service/redshift/api_op_BatchModifyClusterSnapshots.go index 767e8073a50..51e7f8e1260 100644 --- a/service/redshift/api_op_BatchModifyClusterSnapshots.go +++ b/service/redshift/api_op_BatchModifyClusterSnapshots.go @@ -32,11 +32,11 @@ type BatchModifyClusterSnapshotsInput struct { // A list of snapshot identifiers you want to modify. // // This member is required. - SnapshotIdentifierList []*string + SnapshotIdentifierList []string // A boolean value indicating whether to override an exception if the retention // period has passed. - Force *bool + Force bool // The number of days that a manual snapshot is retained. If you specify the value // -1, the manual snapshot is retained indefinitely. The number must be either -1 @@ -50,10 +50,10 @@ type BatchModifyClusterSnapshotsInput struct { type BatchModifyClusterSnapshotsOutput struct { // A list of any errors returned. - Errors []*types.SnapshotErrorMessage + Errors []types.SnapshotErrorMessage // A list of the snapshots that were modified. - Resources []*string + Resources []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_CancelResize.go b/service/redshift/api_op_CancelResize.go index 2c6d67a84ea..a3b66cb2c03 100644 --- a/service/redshift/api_op_CancelResize.go +++ b/service/redshift/api_op_CancelResize.go @@ -59,15 +59,15 @@ type CancelResizeOutput struct { // The names of tables that have been completely imported . Valid Values: List of // table names. - ImportTablesCompleted []*string + ImportTablesCompleted []string // The names of tables that are being currently imported. Valid Values: List of // table names. - ImportTablesInProgress []*string + ImportTablesInProgress []string // The names of tables that have not been yet imported. Valid Values: List of table // names - ImportTablesNotStarted []*string + ImportTablesNotStarted []string // An optional string to provide additional details about the resize action. Message *string diff --git a/service/redshift/api_op_CreateCluster.go b/service/redshift/api_op_CreateCluster.go index 15396226db4..7faf48f8caa 100644 --- a/service/redshift/api_op_CreateCluster.go +++ b/service/redshift/api_op_CreateCluster.go @@ -147,7 +147,7 @@ type CreateClusterInput struct { // A list of security groups to be associated with this cluster. Default: The // default cluster security group for Amazon Redshift. - ClusterSecurityGroups []*string + ClusterSecurityGroups []string // The name of a cluster subnet group to be associated with this cluster. If this // parameter is not provided the resulting cluster will be deployed outside virtual @@ -221,7 +221,7 @@ type CreateClusterInput struct { // cluster to access other AWS services. You must supply the IAM roles in their // Amazon Resource Name (ARN) format. You can supply up to 10 IAM roles in a single // request. A cluster can have up to 10 IAM roles associated with it at any time. - IamRoles []*string + IamRoles []string // The AWS Key Management Service (KMS) key ID of the encryption key that you want // to use to encrypt data in the cluster. @@ -271,11 +271,11 @@ type CreateClusterInput struct { SnapshotScheduleIdentifier *string // A list of tag instances. - Tags []*types.Tag + Tags []types.Tag // A list of Virtual Private Cloud (VPC) security groups to be associated with the // cluster. Default: The default VPC security group is associated with the cluster. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type CreateClusterOutput struct { diff --git a/service/redshift/api_op_CreateClusterParameterGroup.go b/service/redshift/api_op_CreateClusterParameterGroup.go index fc5428298e0..becc163a4f0 100644 --- a/service/redshift/api_op_CreateClusterParameterGroup.go +++ b/service/redshift/api_op_CreateClusterParameterGroup.go @@ -74,7 +74,7 @@ type CreateClusterParameterGroupInput struct { ParameterGroupName *string // A list of tag instances. - Tags []*types.Tag + Tags []types.Tag } type CreateClusterParameterGroupOutput struct { diff --git a/service/redshift/api_op_CreateClusterSecurityGroup.go b/service/redshift/api_op_CreateClusterSecurityGroup.go index 98c1ddc2324..06cf449fbc2 100644 --- a/service/redshift/api_op_CreateClusterSecurityGroup.go +++ b/service/redshift/api_op_CreateClusterSecurityGroup.go @@ -56,7 +56,7 @@ type CreateClusterSecurityGroupInput struct { Description *string // A list of tag instances. - Tags []*types.Tag + Tags []types.Tag } type CreateClusterSecurityGroupOutput struct { diff --git a/service/redshift/api_op_CreateClusterSnapshot.go b/service/redshift/api_op_CreateClusterSnapshot.go index d6e45d40057..802783a2002 100644 --- a/service/redshift/api_op_CreateClusterSnapshot.go +++ b/service/redshift/api_op_CreateClusterSnapshot.go @@ -64,7 +64,7 @@ type CreateClusterSnapshotInput struct { ManualSnapshotRetentionPeriod *int32 // A list of tag instances. - Tags []*types.Tag + Tags []types.Tag } type CreateClusterSnapshotOutput struct { diff --git a/service/redshift/api_op_CreateClusterSubnetGroup.go b/service/redshift/api_op_CreateClusterSubnetGroup.go index 8a631371ea1..f88ad1f31b6 100644 --- a/service/redshift/api_op_CreateClusterSubnetGroup.go +++ b/service/redshift/api_op_CreateClusterSubnetGroup.go @@ -60,10 +60,10 @@ type CreateClusterSubnetGroupInput struct { // request. // // This member is required. - SubnetIds []*string + SubnetIds []string // A list of tag instances. - Tags []*types.Tag + Tags []types.Tag } type CreateClusterSubnetGroupOutput struct { diff --git a/service/redshift/api_op_CreateEventSubscription.go b/service/redshift/api_op_CreateEventSubscription.go index 08df32408f3..58670d3ce52 100644 --- a/service/redshift/api_op_CreateEventSubscription.go +++ b/service/redshift/api_op_CreateEventSubscription.go @@ -78,7 +78,7 @@ type CreateEventSubscriptionInput struct { // Specifies the Amazon Redshift event categories to be published by the event // notification subscription. Values: configuration, management, monitoring, // security - EventCategories []*string + EventCategories []string // Specifies the Amazon Redshift event severity to be published by the event // notification subscription. Values: ERROR, INFO @@ -90,7 +90,7 @@ type CreateEventSubscriptionInput struct { // objects. If not specified, then events are returned for all objects within the // source type specified. Example: my-cluster-1, my-cluster-2 Example: // my-snapshot-20131010 - SourceIds []*string + SourceIds []string // The type of source that will be generating the events. For example, if you want // to be notified of events generated by a cluster, you would set this parameter to @@ -101,7 +101,7 @@ type CreateEventSubscriptionInput struct { SourceType *string // A list of tag instances. - Tags []*types.Tag + Tags []types.Tag } type CreateEventSubscriptionOutput struct { diff --git a/service/redshift/api_op_CreateHsmClientCertificate.go b/service/redshift/api_op_CreateHsmClientCertificate.go index 86ebcc99c3c..1f2c631137f 100644 --- a/service/redshift/api_op_CreateHsmClientCertificate.go +++ b/service/redshift/api_op_CreateHsmClientCertificate.go @@ -45,7 +45,7 @@ type CreateHsmClientCertificateInput struct { HsmClientCertificateIdentifier *string // A list of tag instances. - Tags []*types.Tag + Tags []types.Tag } type CreateHsmClientCertificateOutput struct { diff --git a/service/redshift/api_op_CreateHsmConfiguration.go b/service/redshift/api_op_CreateHsmConfiguration.go index 3abdc25cffc..b914aefac28 100644 --- a/service/redshift/api_op_CreateHsmConfiguration.go +++ b/service/redshift/api_op_CreateHsmConfiguration.go @@ -71,7 +71,7 @@ type CreateHsmConfigurationInput struct { HsmServerPublicCertificate *string // A list of tag instances. - Tags []*types.Tag + Tags []types.Tag } type CreateHsmConfigurationOutput struct { diff --git a/service/redshift/api_op_CreateScheduledAction.go b/service/redshift/api_op_CreateScheduledAction.go index 08b1f2e3e99..c4e599d5b07 100644 --- a/service/redshift/api_op_CreateScheduledAction.go +++ b/service/redshift/api_op_CreateScheduledAction.go @@ -95,7 +95,7 @@ type CreateScheduledActionOutput struct { IamRole *string // List of times when the scheduled action will run. - NextInvocations []*time.Time + NextInvocations []time.Time // The schedule for a one-time (at format) or recurring (cron format) scheduled // action. Schedule invocations must be separated by at least one hour. Format of diff --git a/service/redshift/api_op_CreateSnapshotCopyGrant.go b/service/redshift/api_op_CreateSnapshotCopyGrant.go index e6a413aa5ee..8194bc03108 100644 --- a/service/redshift/api_op_CreateSnapshotCopyGrant.go +++ b/service/redshift/api_op_CreateSnapshotCopyGrant.go @@ -59,7 +59,7 @@ type CreateSnapshotCopyGrantInput struct { KmsKeyId *string // A list of tag instances. - Tags []*types.Tag + Tags []types.Tag } type CreateSnapshotCopyGrantOutput struct { diff --git a/service/redshift/api_op_CreateSnapshotSchedule.go b/service/redshift/api_op_CreateSnapshotSchedule.go index 4ed30f642f3..a031b25d455 100644 --- a/service/redshift/api_op_CreateSnapshotSchedule.go +++ b/service/redshift/api_op_CreateSnapshotSchedule.go @@ -39,7 +39,7 @@ type CreateSnapshotScheduleInput struct { // The definition of the snapshot schedule. The definition is made up of schedule // expressions, for example "cron(30 12 *)" or "rate(12 hours)". - ScheduleDefinitions []*string + ScheduleDefinitions []string // The description of the snapshot schedule. ScheduleDescription *string @@ -49,7 +49,7 @@ type CreateSnapshotScheduleInput struct { ScheduleIdentifier *string // An optional set of tags you can use to search for the schedule. - Tags []*types.Tag + Tags []types.Tag } // Describes a snapshot schedule. You can set a regular interval for creating @@ -61,13 +61,13 @@ type CreateSnapshotScheduleOutput struct { // A list of clusters associated with the schedule. A maximum of 100 clusters is // returned. - AssociatedClusters []*types.ClusterAssociatedToSchedule + AssociatedClusters []types.ClusterAssociatedToSchedule // - NextInvocations []*time.Time + NextInvocations []time.Time // A list of ScheduleDefinitions. - ScheduleDefinitions []*string + ScheduleDefinitions []string // The description of the schedule. ScheduleDescription *string @@ -76,7 +76,7 @@ type CreateSnapshotScheduleOutput struct { ScheduleIdentifier *string // An optional set of tags describing the schedule. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_CreateTags.go b/service/redshift/api_op_CreateTags.go index 9185f0746ef..24872733d1f 100644 --- a/service/redshift/api_op_CreateTags.go +++ b/service/redshift/api_op_CreateTags.go @@ -47,7 +47,7 @@ type CreateTagsInput struct { // "Key"="version","Value"="1.0". // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type CreateTagsOutput struct { diff --git a/service/redshift/api_op_CreateUsageLimit.go b/service/redshift/api_op_CreateUsageLimit.go index 7a04172ee7c..fec47743540 100644 --- a/service/redshift/api_op_CreateUsageLimit.go +++ b/service/redshift/api_op_CreateUsageLimit.go @@ -34,7 +34,7 @@ type CreateUsageLimitInput struct { // amount is in terabytes (TB). The value must be a positive number. // // This member is required. - Amount *int64 + Amount int64 // The identifier of the cluster that you want to limit usage. // @@ -63,7 +63,7 @@ type CreateUsageLimitInput struct { Period types.UsageLimitPeriod // A list of tag instances. - Tags []*types.Tag + Tags []types.Tag } // Describes a usage limit object for a cluster. @@ -71,7 +71,7 @@ type CreateUsageLimitOutput struct { // The limit amount. If time-based, this amount is in minutes. If data-based, this // amount is in terabytes (TB). - Amount *int64 + Amount int64 // The action that Amazon Redshift takes when the limit is reached. Possible values // are: @@ -100,7 +100,7 @@ type CreateUsageLimitOutput struct { Period types.UsageLimitPeriod // A list of tag instances. - Tags []*types.Tag + Tags []types.Tag // The identifier of the usage limit. UsageLimitId *string diff --git a/service/redshift/api_op_DeleteCluster.go b/service/redshift/api_op_DeleteCluster.go index 23114b07df6..25d2f64f828 100644 --- a/service/redshift/api_op_DeleteCluster.go +++ b/service/redshift/api_op_DeleteCluster.go @@ -83,7 +83,7 @@ type DeleteClusterInput struct { // If false, a final cluster snapshot is created before the cluster is deleted. The // FinalClusterSnapshotIdentifier parameter must be specified if // SkipFinalClusterSnapshot is false. Default: false - SkipFinalClusterSnapshot *bool + SkipFinalClusterSnapshot bool } type DeleteClusterOutput struct { diff --git a/service/redshift/api_op_DeleteTags.go b/service/redshift/api_op_DeleteTags.go index fd2c8784f27..e77d788e9d2 100644 --- a/service/redshift/api_op_DeleteTags.go +++ b/service/redshift/api_op_DeleteTags.go @@ -39,7 +39,7 @@ type DeleteTagsInput struct { // The tag key that you want to delete. // // This member is required. - TagKeys []*string + TagKeys []string } type DeleteTagsOutput struct { diff --git a/service/redshift/api_op_DescribeAccountAttributes.go b/service/redshift/api_op_DescribeAccountAttributes.go index b2318b40d69..cb3dd4809df 100644 --- a/service/redshift/api_op_DescribeAccountAttributes.go +++ b/service/redshift/api_op_DescribeAccountAttributes.go @@ -30,13 +30,13 @@ func (c *Client) DescribeAccountAttributes(ctx context.Context, params *Describe type DescribeAccountAttributesInput struct { // A list of attribute names. - AttributeNames []*string + AttributeNames []string } type DescribeAccountAttributesOutput struct { // A list of attributes assigned to an account. - AccountAttributes []*types.AccountAttribute + AccountAttributes []types.AccountAttribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeClusterDbRevisions.go b/service/redshift/api_op_DescribeClusterDbRevisions.go index 61aec587818..0b68abc7deb 100644 --- a/service/redshift/api_op_DescribeClusterDbRevisions.go +++ b/service/redshift/api_op_DescribeClusterDbRevisions.go @@ -54,7 +54,7 @@ type DescribeClusterDbRevisionsInput struct { type DescribeClusterDbRevisionsOutput struct { // A list of revisions. - ClusterDbRevisions []*types.ClusterDbRevision + ClusterDbRevisions []types.ClusterDbRevision // A string representing the starting point for the next set of revisions. If a // value is returned in a response, you can retrieve the next set of revisions by diff --git a/service/redshift/api_op_DescribeClusterParameterGroups.go b/service/redshift/api_op_DescribeClusterParameterGroups.go index ce1b0beffe0..e978ef7d093 100644 --- a/service/redshift/api_op_DescribeClusterParameterGroups.go +++ b/service/redshift/api_op_DescribeClusterParameterGroups.go @@ -68,7 +68,7 @@ type DescribeClusterParameterGroupsInput struct { // environment. If you specify both of these tag keys in the request, Amazon // Redshift returns a response with the parameter groups that have either or both // of these tag keys associated with them. - TagKeys []*string + TagKeys []string // A tag value or values for which you want to return all matching cluster // parameter groups that are associated with the specified tag value or values. For @@ -76,7 +76,7 @@ type DescribeClusterParameterGroupsInput struct { // called admin and test. If you specify both of these tag values in the request, // Amazon Redshift returns a response with the parameter groups that have either or // both of these tag values associated with them. - TagValues []*string + TagValues []string } // Contains the output from the DescribeClusterParameterGroups action. @@ -91,7 +91,7 @@ type DescribeClusterParameterGroupsOutput struct { // A list of ClusterParameterGroup instances. Each instance describes one cluster // parameter group. - ParameterGroups []*types.ClusterParameterGroup + ParameterGroups []types.ClusterParameterGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeClusterParameters.go b/service/redshift/api_op_DescribeClusterParameters.go index 820fc3051b8..c0e6690415e 100644 --- a/service/redshift/api_op_DescribeClusterParameters.go +++ b/service/redshift/api_op_DescribeClusterParameters.go @@ -77,7 +77,7 @@ type DescribeClusterParametersOutput struct { // A list of Parameter instances. Each instance lists the parameters of one cluster // parameter group. - Parameters []*types.Parameter + Parameters []types.Parameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeClusterSecurityGroups.go b/service/redshift/api_op_DescribeClusterSecurityGroups.go index b9168a576dd..9434530b73a 100644 --- a/service/redshift/api_op_DescribeClusterSecurityGroups.go +++ b/service/redshift/api_op_DescribeClusterSecurityGroups.go @@ -68,7 +68,7 @@ type DescribeClusterSecurityGroupsInput struct { // environment. If you specify both of these tag keys in the request, Amazon // Redshift returns a response with the security groups that have either or both of // these tag keys associated with them. - TagKeys []*string + TagKeys []string // A tag value or values for which you want to return all matching cluster security // groups that are associated with the specified tag value or values. For example, @@ -76,14 +76,14 @@ type DescribeClusterSecurityGroupsInput struct { // and test. If you specify both of these tag values in the request, Amazon // Redshift returns a response with the security groups that have either or both of // these tag values associated with them. - TagValues []*string + TagValues []string } // type DescribeClusterSecurityGroupsOutput struct { // A list of ClusterSecurityGroup instances. - ClusterSecurityGroups []*types.ClusterSecurityGroup + ClusterSecurityGroups []types.ClusterSecurityGroup // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve diff --git a/service/redshift/api_op_DescribeClusterSnapshots.go b/service/redshift/api_op_DescribeClusterSnapshots.go index 0d0c74beb2e..a6b19616923 100644 --- a/service/redshift/api_op_DescribeClusterSnapshots.go +++ b/service/redshift/api_op_DescribeClusterSnapshots.go @@ -99,7 +99,7 @@ type DescribeClusterSnapshotsInput struct { SnapshotType *string // - SortingEntities []*types.SnapshotSortingEntity + SortingEntities []types.SnapshotSortingEntity // A value that requests only snapshots created at or after the specified time. The // time value is specified in ISO 8601 format. For more information about ISO 8601, @@ -113,7 +113,7 @@ type DescribeClusterSnapshotsInput struct { // you specify both of these tag keys in the request, Amazon Redshift returns a // response with the snapshots that have either or both of these tag keys // associated with them. - TagKeys []*string + TagKeys []string // A tag value or values for which you want to return all matching cluster // snapshots that are associated with the specified tag value or values. For @@ -121,7 +121,7 @@ type DescribeClusterSnapshotsInput struct { // admin and test. If you specify both of these tag values in the request, Amazon // Redshift returns a response with the snapshots that have either or both of these // tag values associated with them. - TagValues []*string + TagValues []string } // Contains the output from the DescribeClusterSnapshots action. @@ -135,7 +135,7 @@ type DescribeClusterSnapshotsOutput struct { Marker *string // A list of Snapshot instances. - Snapshots []*types.Snapshot + Snapshots []types.Snapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeClusterSubnetGroups.go b/service/redshift/api_op_DescribeClusterSubnetGroups.go index cff1fd0513f..836412de269 100644 --- a/service/redshift/api_op_DescribeClusterSubnetGroups.go +++ b/service/redshift/api_op_DescribeClusterSubnetGroups.go @@ -63,7 +63,7 @@ type DescribeClusterSubnetGroupsInput struct { // environment. If you specify both of these tag keys in the request, Amazon // Redshift returns a response with the subnet groups that have either or both of // these tag keys associated with them. - TagKeys []*string + TagKeys []string // A tag value or values for which you want to return all matching cluster subnet // groups that are associated with the specified tag value or values. For example, @@ -71,14 +71,14 @@ type DescribeClusterSubnetGroupsInput struct { // test. If you specify both of these tag values in the request, Amazon Redshift // returns a response with the subnet groups that have either or both of these tag // values associated with them. - TagValues []*string + TagValues []string } // Contains the output from the DescribeClusterSubnetGroups action. type DescribeClusterSubnetGroupsOutput struct { // A list of ClusterSubnetGroup instances. - ClusterSubnetGroups []*types.ClusterSubnetGroup + ClusterSubnetGroups []types.ClusterSubnetGroup // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve diff --git a/service/redshift/api_op_DescribeClusterTracks.go b/service/redshift/api_op_DescribeClusterTracks.go index 6f712d27647..f03722fb3e7 100644 --- a/service/redshift/api_op_DescribeClusterTracks.go +++ b/service/redshift/api_op_DescribeClusterTracks.go @@ -47,7 +47,7 @@ type DescribeClusterTracksInput struct { type DescribeClusterTracksOutput struct { // A list of maintenance tracks output by the DescribeClusterTracks operation. - MaintenanceTracks []*types.MaintenanceTrack + MaintenanceTracks []types.MaintenanceTrack // The starting point to return a set of response tracklist records. You can // retrieve the next set of response records by providing the returned marker value diff --git a/service/redshift/api_op_DescribeClusterVersions.go b/service/redshift/api_op_DescribeClusterVersions.go index ee2c0ce5130..79be862714c 100644 --- a/service/redshift/api_op_DescribeClusterVersions.go +++ b/service/redshift/api_op_DescribeClusterVersions.go @@ -68,7 +68,7 @@ type DescribeClusterVersionsInput struct { type DescribeClusterVersionsOutput struct { // A list of Version elements. - ClusterVersions []*types.ClusterVersion + ClusterVersions []types.ClusterVersion // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve diff --git a/service/redshift/api_op_DescribeClusters.go b/service/redshift/api_op_DescribeClusters.go index cd71b8c0f6a..49fcf4ba2ee 100644 --- a/service/redshift/api_op_DescribeClusters.go +++ b/service/redshift/api_op_DescribeClusters.go @@ -67,7 +67,7 @@ type DescribeClustersInput struct { // clusters that are tagged with keys called owner and environment. If you specify // both of these tag keys in the request, Amazon Redshift returns a response with // the clusters that have either or both of these tag keys associated with them. - TagKeys []*string + TagKeys []string // A tag value or values for which you want to return all matching clusters that // are associated with the specified tag value or values. For example, suppose that @@ -75,14 +75,14 @@ type DescribeClustersInput struct { // specify both of these tag values in the request, Amazon Redshift returns a // response with the clusters that have either or both of these tag values // associated with them. - TagValues []*string + TagValues []string } // Contains the output from the DescribeClusters action. type DescribeClustersOutput struct { // A list of Cluster objects, where each object describes one cluster. - Clusters []*types.Cluster + Clusters []types.Cluster // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve diff --git a/service/redshift/api_op_DescribeEventCategories.go b/service/redshift/api_op_DescribeEventCategories.go index 0a10e52b929..df43bc94610 100644 --- a/service/redshift/api_op_DescribeEventCategories.go +++ b/service/redshift/api_op_DescribeEventCategories.go @@ -43,7 +43,7 @@ type DescribeEventCategoriesInput struct { type DescribeEventCategoriesOutput struct { // A list of event categories descriptions. - EventCategoriesMapList []*types.EventCategoriesMap + EventCategoriesMapList []types.EventCategoriesMap // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeEventSubscriptions.go b/service/redshift/api_op_DescribeEventSubscriptions.go index e646d9dfbec..800a06bebba 100644 --- a/service/redshift/api_op_DescribeEventSubscriptions.go +++ b/service/redshift/api_op_DescribeEventSubscriptions.go @@ -63,7 +63,7 @@ type DescribeEventSubscriptionsInput struct { // environment. If you specify both of these tag keys in the request, Amazon // Redshift returns a response with the subscriptions that have either or both of // these tag keys associated with them. - TagKeys []*string + TagKeys []string // A tag value or values for which you want to return all matching event // notification subscriptions that are associated with the specified tag value or @@ -71,14 +71,14 @@ type DescribeEventSubscriptionsInput struct { // values called admin and test. If you specify both of these tag values in the // request, Amazon Redshift returns a response with the subscriptions that have // either or both of these tag values associated with them. - TagValues []*string + TagValues []string } // type DescribeEventSubscriptionsOutput struct { // A list of event subscriptions. - EventSubscriptionsList []*types.EventSubscription + EventSubscriptionsList []types.EventSubscription // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve diff --git a/service/redshift/api_op_DescribeEvents.go b/service/redshift/api_op_DescribeEvents.go index 4f95784bfca..84077e3734e 100644 --- a/service/redshift/api_op_DescribeEvents.go +++ b/service/redshift/api_op_DescribeEvents.go @@ -104,7 +104,7 @@ type DescribeEventsInput struct { type DescribeEventsOutput struct { // A list of Event instances. - Events []*types.Event + Events []types.Event // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve diff --git a/service/redshift/api_op_DescribeHsmClientCertificates.go b/service/redshift/api_op_DescribeHsmClientCertificates.go index a427edf9117..2d9142b6182 100644 --- a/service/redshift/api_op_DescribeHsmClientCertificates.go +++ b/service/redshift/api_op_DescribeHsmClientCertificates.go @@ -65,7 +65,7 @@ type DescribeHsmClientCertificatesInput struct { // owner and environment. If you specify both of these tag keys in the request, // Amazon Redshift returns a response with the HSM client certificates that have // either or both of these tag keys associated with them. - TagKeys []*string + TagKeys []string // A tag value or values for which you want to return all matching HSM client // certificates that are associated with the specified tag value or values. For @@ -73,7 +73,7 @@ type DescribeHsmClientCertificatesInput struct { // values called admin and test. If you specify both of these tag values in the // request, Amazon Redshift returns a response with the HSM client certificates // that have either or both of these tag values associated with them. - TagValues []*string + TagValues []string } // @@ -81,7 +81,7 @@ type DescribeHsmClientCertificatesOutput struct { // A list of the identifiers for one or more HSM client certificates used by Amazon // Redshift clusters to store and retrieve database encryption keys in an HSM. - HsmClientCertificates []*types.HsmClientCertificate + HsmClientCertificates []types.HsmClientCertificate // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve diff --git a/service/redshift/api_op_DescribeHsmConfigurations.go b/service/redshift/api_op_DescribeHsmConfigurations.go index cec48b842e9..47c87d76edb 100644 --- a/service/redshift/api_op_DescribeHsmConfigurations.go +++ b/service/redshift/api_op_DescribeHsmConfigurations.go @@ -63,7 +63,7 @@ type DescribeHsmConfigurationsInput struct { // environment. If you specify both of these tag keys in the request, Amazon // Redshift returns a response with the HSM configurations that have either or both // of these tag keys associated with them. - TagKeys []*string + TagKeys []string // A tag value or values for which you want to return all matching HSM // configurations that are associated with the specified tag value or values. For @@ -71,14 +71,14 @@ type DescribeHsmConfigurationsInput struct { // called admin and test. If you specify both of these tag values in the request, // Amazon Redshift returns a response with the HSM configurations that have either // or both of these tag values associated with them. - TagValues []*string + TagValues []string } // type DescribeHsmConfigurationsOutput struct { // A list of HsmConfiguration objects. - HsmConfigurations []*types.HsmConfiguration + HsmConfigurations []types.HsmConfiguration // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve diff --git a/service/redshift/api_op_DescribeLoggingStatus.go b/service/redshift/api_op_DescribeLoggingStatus.go index 1d837e54c7b..8e521021d45 100644 --- a/service/redshift/api_op_DescribeLoggingStatus.go +++ b/service/redshift/api_op_DescribeLoggingStatus.go @@ -54,7 +54,7 @@ type DescribeLoggingStatusOutput struct { LastSuccessfulDeliveryTime *time.Time // true if logging is on, false if logging is off. - LoggingEnabled *bool + LoggingEnabled bool // The prefix applied to the log file names. S3KeyPrefix *string diff --git a/service/redshift/api_op_DescribeNodeConfigurationOptions.go b/service/redshift/api_op_DescribeNodeConfigurationOptions.go index 005fcd9f6dd..3251d92e273 100644 --- a/service/redshift/api_op_DescribeNodeConfigurationOptions.go +++ b/service/redshift/api_op_DescribeNodeConfigurationOptions.go @@ -43,7 +43,7 @@ type DescribeNodeConfigurationOptionsInput struct { ClusterIdentifier *string // A set of name, operator, and value items to filter the results. - Filters []*types.NodeConfigurationOptionsFilter + Filters []types.NodeConfigurationOptionsFilter // An optional parameter that specifies the starting point to return a set of // response records. When the results of a DescribeNodeConfigurationOptions request @@ -78,7 +78,7 @@ type DescribeNodeConfigurationOptionsOutput struct { Marker *string // A list of valid node configurations. - NodeConfigurationOptionList []*types.NodeConfigurationOption + NodeConfigurationOptionList []types.NodeConfigurationOption // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeOrderableClusterOptions.go b/service/redshift/api_op_DescribeOrderableClusterOptions.go index 3c59bbd6795..ebe621f70bc 100644 --- a/service/redshift/api_op_DescribeOrderableClusterOptions.go +++ b/service/redshift/api_op_DescribeOrderableClusterOptions.go @@ -75,7 +75,7 @@ type DescribeOrderableClusterOptionsOutput struct { // An OrderableClusterOption structure containing information about orderable // options for the cluster. - OrderableClusterOptions []*types.OrderableClusterOption + OrderableClusterOptions []types.OrderableClusterOption // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeReservedNodeOfferings.go b/service/redshift/api_op_DescribeReservedNodeOfferings.go index 06067ea8d02..5b0972d9a63 100644 --- a/service/redshift/api_op_DescribeReservedNodeOfferings.go +++ b/service/redshift/api_op_DescribeReservedNodeOfferings.go @@ -69,7 +69,7 @@ type DescribeReservedNodeOfferingsOutput struct { Marker *string // A list of ReservedNodeOffering objects. - ReservedNodeOfferings []*types.ReservedNodeOffering + ReservedNodeOfferings []types.ReservedNodeOffering // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeReservedNodes.go b/service/redshift/api_op_DescribeReservedNodes.go index 2d0c022219a..813efe02c7e 100644 --- a/service/redshift/api_op_DescribeReservedNodes.go +++ b/service/redshift/api_op_DescribeReservedNodes.go @@ -59,7 +59,7 @@ type DescribeReservedNodesOutput struct { Marker *string // The list of ReservedNode objects. - ReservedNodes []*types.ReservedNode + ReservedNodes []types.ReservedNode // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeResize.go b/service/redshift/api_op_DescribeResize.go index aa44b643a4b..37d15e0d872 100644 --- a/service/redshift/api_op_DescribeResize.go +++ b/service/redshift/api_op_DescribeResize.go @@ -66,15 +66,15 @@ type DescribeResizeOutput struct { // The names of tables that have been completely imported . Valid Values: List of // table names. - ImportTablesCompleted []*string + ImportTablesCompleted []string // The names of tables that are being currently imported. Valid Values: List of // table names. - ImportTablesInProgress []*string + ImportTablesInProgress []string // The names of tables that have not been yet imported. Valid Values: List of table // names - ImportTablesNotStarted []*string + ImportTablesNotStarted []string // An optional string to provide additional details about the resize action. Message *string diff --git a/service/redshift/api_op_DescribeScheduledActions.go b/service/redshift/api_op_DescribeScheduledActions.go index 185957c82dd..8d19ab6b91b 100644 --- a/service/redshift/api_op_DescribeScheduledActions.go +++ b/service/redshift/api_op_DescribeScheduledActions.go @@ -39,7 +39,7 @@ type DescribeScheduledActionsInput struct { EndTime *time.Time // List of scheduled action filters. - Filters []*types.ScheduledActionFilter + Filters []types.ScheduledActionFilter // An optional parameter that specifies the starting point to return a set of // response records. When the results of a DescribeScheduledActions request exceed @@ -76,7 +76,7 @@ type DescribeScheduledActionsOutput struct { Marker *string // List of retrieved scheduled actions. - ScheduledActions []*types.ScheduledAction + ScheduledActions []types.ScheduledAction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeSnapshotCopyGrants.go b/service/redshift/api_op_DescribeSnapshotCopyGrants.go index e8a47cd3220..bf10bbee604 100644 --- a/service/redshift/api_op_DescribeSnapshotCopyGrants.go +++ b/service/redshift/api_op_DescribeSnapshotCopyGrants.go @@ -58,14 +58,14 @@ type DescribeSnapshotCopyGrantsInput struct { // resources tagged with keys called owner and environment. If you specify both of // these tag keys in the request, Amazon Redshift returns a response with all // resources that have either or both of these tag keys associated with them. - TagKeys []*string + TagKeys []string // A tag value or values for which you want to return all matching resources that // are associated with the specified value or values. For example, suppose that you // have resources tagged with values called admin and test. If you specify both of // these tag values in the request, Amazon Redshift returns a response with all // resources that have either or both of these tag values associated with them. - TagValues []*string + TagValues []string } // @@ -81,7 +81,7 @@ type DescribeSnapshotCopyGrantsOutput struct { Marker *string // The list of SnapshotCopyGrant objects. - SnapshotCopyGrants []*types.SnapshotCopyGrant + SnapshotCopyGrants []types.SnapshotCopyGrant // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeSnapshotSchedules.go b/service/redshift/api_op_DescribeSnapshotSchedules.go index 970d7812591..7fb56c6920c 100644 --- a/service/redshift/api_op_DescribeSnapshotSchedules.go +++ b/service/redshift/api_op_DescribeSnapshotSchedules.go @@ -49,10 +49,10 @@ type DescribeSnapshotSchedulesInput struct { ScheduleIdentifier *string // The key value for a snapshot schedule tag. - TagKeys []*string + TagKeys []string // The value corresponding to the key of the snapshot schedule tag. - TagValues []*string + TagValues []string } type DescribeSnapshotSchedulesOutput struct { @@ -65,7 +65,7 @@ type DescribeSnapshotSchedulesOutput struct { Marker *string // A list of SnapshotSchedules. - SnapshotSchedules []*types.SnapshotSchedule + SnapshotSchedules []types.SnapshotSchedule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeStorage.go b/service/redshift/api_op_DescribeStorage.go index f864ea1dbda..a18dae190c2 100644 --- a/service/redshift/api_op_DescribeStorage.go +++ b/service/redshift/api_op_DescribeStorage.go @@ -32,10 +32,10 @@ type DescribeStorageInput struct { type DescribeStorageOutput struct { // The total amount of storage currently used for snapshots. - TotalBackupSizeInMegaBytes *float64 + TotalBackupSizeInMegaBytes float64 // The total amount of storage currently provisioned. - TotalProvisionedStorageInMegaBytes *float64 + TotalProvisionedStorageInMegaBytes float64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeTableRestoreStatus.go b/service/redshift/api_op_DescribeTableRestoreStatus.go index 17ada227ede..354939ea3f6 100644 --- a/service/redshift/api_op_DescribeTableRestoreStatus.go +++ b/service/redshift/api_op_DescribeTableRestoreStatus.go @@ -62,7 +62,7 @@ type DescribeTableRestoreStatusOutput struct { Marker *string // A list of status details for one or more table restore requests. - TableRestoreStatusDetails []*types.TableRestoreStatus + TableRestoreStatusDetails []types.TableRestoreStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeTags.go b/service/redshift/api_op_DescribeTags.go index f8fdb7568e8..c349fcf3f35 100644 --- a/service/redshift/api_op_DescribeTags.go +++ b/service/redshift/api_op_DescribeTags.go @@ -104,14 +104,14 @@ type DescribeTagsInput struct { // resources tagged with keys called owner and environment. If you specify both of // these tag keys in the request, Amazon Redshift returns a response with all // resources that have either or both of these tag keys associated with them. - TagKeys []*string + TagKeys []string // A tag value or values for which you want to return all matching resources that // are associated with the specified value or values. For example, suppose that you // have resources tagged with values called admin and test. If you specify both of // these tag values in the request, Amazon Redshift returns a response with all // resources that have either or both of these tag values associated with them. - TagValues []*string + TagValues []string } // @@ -125,7 +125,7 @@ type DescribeTagsOutput struct { Marker *string // A list of tags with their associated resources. - TaggedResources []*types.TaggedResource + TaggedResources []types.TaggedResource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DescribeUsageLimits.go b/service/redshift/api_op_DescribeUsageLimits.go index 4a85c4ee0ad..853d69d327b 100644 --- a/service/redshift/api_op_DescribeUsageLimits.go +++ b/service/redshift/api_op_DescribeUsageLimits.go @@ -71,7 +71,7 @@ type DescribeUsageLimitsInput struct { // environment. If you specify both of these tag keys in the request, Amazon // Redshift returns a response with the usage limit objects have either or both of // these tag keys associated with them. - TagKeys []*string + TagKeys []string // A tag value or values for which you want to return all matching usage limit // objects that are associated with the specified tag value or values. For example, @@ -79,7 +79,7 @@ type DescribeUsageLimitsInput struct { // and test. If you specify both of these tag values in the request, Amazon // Redshift returns a response with the usage limit objects that have either or // both of these tag values associated with them. - TagValues []*string + TagValues []string // The identifier of the usage limit to describe. UsageLimitId *string @@ -95,7 +95,7 @@ type DescribeUsageLimitsOutput struct { Marker *string // Contains the output from the DescribeUsageLimits action. - UsageLimits []*types.UsageLimit + UsageLimits []types.UsageLimit // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_DisableLogging.go b/service/redshift/api_op_DisableLogging.go index 6e30c9a87df..6e34b7c4de7 100644 --- a/service/redshift/api_op_DisableLogging.go +++ b/service/redshift/api_op_DisableLogging.go @@ -54,7 +54,7 @@ type DisableLoggingOutput struct { LastSuccessfulDeliveryTime *time.Time // true if logging is on, false if logging is off. - LoggingEnabled *bool + LoggingEnabled bool // The prefix applied to the log file names. S3KeyPrefix *string diff --git a/service/redshift/api_op_EnableLogging.go b/service/redshift/api_op_EnableLogging.go index 616508f14b8..d0cba25a4b6 100644 --- a/service/redshift/api_op_EnableLogging.go +++ b/service/redshift/api_op_EnableLogging.go @@ -85,7 +85,7 @@ type EnableLoggingOutput struct { LastSuccessfulDeliveryTime *time.Time // true if logging is on, false if logging is off. - LoggingEnabled *bool + LoggingEnabled bool // The prefix applied to the log file names. S3KeyPrefix *string diff --git a/service/redshift/api_op_GetClusterCredentials.go b/service/redshift/api_op_GetClusterCredentials.go index c261397a12c..ddfcce99cdd 100644 --- a/service/redshift/api_op_GetClusterCredentials.go +++ b/service/redshift/api_op_GetClusterCredentials.go @@ -110,7 +110,7 @@ type GetClusterCredentialsInput struct { // of reserved words can be found in Reserved Words // (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html) in the Amazon // Redshift Database Developer Guide. - DbGroups []*string + DbGroups []string // The name of a database that DbUser is authorized to log on to. If DbName is not // specified, DbUser can log on to any existing database. Constraints: diff --git a/service/redshift/api_op_GetReservedNodeExchangeOfferings.go b/service/redshift/api_op_GetReservedNodeExchangeOfferings.go index 538209768c7..e01e58d6011 100644 --- a/service/redshift/api_op_GetReservedNodeExchangeOfferings.go +++ b/service/redshift/api_op_GetReservedNodeExchangeOfferings.go @@ -56,7 +56,7 @@ type GetReservedNodeExchangeOfferingsOutput struct { Marker *string // Returns an array of ReservedNodeOffering objects. - ReservedNodeOfferings []*types.ReservedNodeOffering + ReservedNodeOfferings []types.ReservedNodeOffering // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_ModifyCluster.go b/service/redshift/api_op_ModifyCluster.go index f0a18fb053c..775ff46f2be 100644 --- a/service/redshift/api_op_ModifyCluster.go +++ b/service/redshift/api_op_ModifyCluster.go @@ -76,7 +76,7 @@ type ModifyClusterInput struct { // // * Cannot end with a // hyphen or contain two consecutive hyphens - ClusterSecurityGroups []*string + ClusterSecurityGroups []string // The new cluster type. When you submit your cluster resize request, your existing // cluster goes into a read-only mode. After Amazon Redshift provisions a new @@ -220,7 +220,7 @@ type ModifyClusterInput struct { // A list of virtual private cloud (VPC) security groups to be associated with the // cluster. This change is asynchronously applied as soon as possible. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type ModifyClusterOutput struct { diff --git a/service/redshift/api_op_ModifyClusterIamRoles.go b/service/redshift/api_op_ModifyClusterIamRoles.go index 3e0bcd2e9b5..808464885f6 100644 --- a/service/redshift/api_op_ModifyClusterIamRoles.go +++ b/service/redshift/api_op_ModifyClusterIamRoles.go @@ -41,11 +41,11 @@ type ModifyClusterIamRolesInput struct { // Zero or more IAM roles to associate with the cluster. The roles must be in their // Amazon Resource Name (ARN) format. You can associate up to 10 IAM roles with a // single cluster in a single request. - AddIamRoles []*string + AddIamRoles []string // Zero or more IAM roles in ARN format to disassociate from the cluster. You can // disassociate up to 10 IAM roles from a single cluster in a single request. - RemoveIamRoles []*string + RemoveIamRoles []string } type ModifyClusterIamRolesOutput struct { diff --git a/service/redshift/api_op_ModifyClusterParameterGroup.go b/service/redshift/api_op_ModifyClusterParameterGroup.go index 8ed0734727e..4d48ccdc119 100644 --- a/service/redshift/api_op_ModifyClusterParameterGroup.go +++ b/service/redshift/api_op_ModifyClusterParameterGroup.go @@ -45,7 +45,7 @@ type ModifyClusterParameterGroupInput struct { // must supply all the name-value pairs in the wlm_json_configuration parameter. // // This member is required. - Parameters []*types.Parameter + Parameters []types.Parameter } // diff --git a/service/redshift/api_op_ModifyClusterSnapshot.go b/service/redshift/api_op_ModifyClusterSnapshot.go index 4b618f38c44..fe7154f5ec0 100644 --- a/service/redshift/api_op_ModifyClusterSnapshot.go +++ b/service/redshift/api_op_ModifyClusterSnapshot.go @@ -37,7 +37,7 @@ type ModifyClusterSnapshotInput struct { // A Boolean option to override an exception if the retention period has already // passed. - Force *bool + Force bool // The number of days that a manual snapshot is retained. If the value is -1, the // manual snapshot is retained indefinitely. If the manual snapshot falls outside diff --git a/service/redshift/api_op_ModifyClusterSubnetGroup.go b/service/redshift/api_op_ModifyClusterSubnetGroup.go index 5e158bb0fe1..093256c123c 100644 --- a/service/redshift/api_op_ModifyClusterSubnetGroup.go +++ b/service/redshift/api_op_ModifyClusterSubnetGroup.go @@ -41,7 +41,7 @@ type ModifyClusterSubnetGroupInput struct { // request. // // This member is required. - SubnetIds []*string + SubnetIds []string // A text description of the subnet group to be modified. Description *string diff --git a/service/redshift/api_op_ModifyEventSubscription.go b/service/redshift/api_op_ModifyEventSubscription.go index d2d2763c321..1b3750736db 100644 --- a/service/redshift/api_op_ModifyEventSubscription.go +++ b/service/redshift/api_op_ModifyEventSubscription.go @@ -42,7 +42,7 @@ type ModifyEventSubscriptionInput struct { // Specifies the Amazon Redshift event categories to be published by the event // notification subscription. Values: configuration, management, monitoring, // security - EventCategories []*string + EventCategories []string // Specifies the Amazon Redshift event severity to be published by the event // notification subscription. Values: ERROR, INFO @@ -58,7 +58,7 @@ type ModifyEventSubscriptionInput struct { // objects. If not specified, then events are returned for all objects within the // source type specified. Example: my-cluster-1, my-cluster-2 Example: // my-snapshot-20131010 - SourceIds []*string + SourceIds []string // The type of source that will be generating the events. For example, if you want // to be notified of events generated by a cluster, you would set this parameter to diff --git a/service/redshift/api_op_ModifyScheduledAction.go b/service/redshift/api_op_ModifyScheduledAction.go index ad7c514ba2f..d1587a80ee4 100644 --- a/service/redshift/api_op_ModifyScheduledAction.go +++ b/service/redshift/api_op_ModifyScheduledAction.go @@ -83,7 +83,7 @@ type ModifyScheduledActionOutput struct { IamRole *string // List of times when the scheduled action will run. - NextInvocations []*time.Time + NextInvocations []time.Time // The schedule for a one-time (at format) or recurring (cron format) scheduled // action. Schedule invocations must be separated by at least one hour. Format of diff --git a/service/redshift/api_op_ModifySnapshotCopyRetentionPeriod.go b/service/redshift/api_op_ModifySnapshotCopyRetentionPeriod.go index f98ae0d3946..a934cd62449 100644 --- a/service/redshift/api_op_ModifySnapshotCopyRetentionPeriod.go +++ b/service/redshift/api_op_ModifySnapshotCopyRetentionPeriod.go @@ -57,11 +57,11 @@ type ModifySnapshotCopyRetentionPeriodInput struct { // be either -1 or an integer between 1 and 3,653 for manual snapshots. // // This member is required. - RetentionPeriod *int32 + RetentionPeriod int32 // Indicates whether to apply the snapshot retention period to newly copied manual // snapshots instead of automated snapshots. - Manual *bool + Manual bool } type ModifySnapshotCopyRetentionPeriodOutput struct { diff --git a/service/redshift/api_op_ModifySnapshotSchedule.go b/service/redshift/api_op_ModifySnapshotSchedule.go index 4bec9b59f02..23fc7cb4401 100644 --- a/service/redshift/api_op_ModifySnapshotSchedule.go +++ b/service/redshift/api_op_ModifySnapshotSchedule.go @@ -35,7 +35,7 @@ type ModifySnapshotScheduleInput struct { // schedule expressions, for example, "cron(30 12 *)" or "rate(12 hours)". // // This member is required. - ScheduleDefinitions []*string + ScheduleDefinitions []string // A unique alphanumeric identifier of the schedule to modify. // @@ -52,13 +52,13 @@ type ModifySnapshotScheduleOutput struct { // A list of clusters associated with the schedule. A maximum of 100 clusters is // returned. - AssociatedClusters []*types.ClusterAssociatedToSchedule + AssociatedClusters []types.ClusterAssociatedToSchedule // - NextInvocations []*time.Time + NextInvocations []time.Time // A list of ScheduleDefinitions. - ScheduleDefinitions []*string + ScheduleDefinitions []string // The description of the schedule. ScheduleDescription *string @@ -67,7 +67,7 @@ type ModifySnapshotScheduleOutput struct { ScheduleIdentifier *string // An optional set of tags describing the schedule. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshift/api_op_ModifyUsageLimit.go b/service/redshift/api_op_ModifyUsageLimit.go index 68fad08820d..b28a33b87f2 100644 --- a/service/redshift/api_op_ModifyUsageLimit.go +++ b/service/redshift/api_op_ModifyUsageLimit.go @@ -48,7 +48,7 @@ type ModifyUsageLimitOutput struct { // The limit amount. If time-based, this amount is in minutes. If data-based, this // amount is in terabytes (TB). - Amount *int64 + Amount int64 // The action that Amazon Redshift takes when the limit is reached. Possible values // are: @@ -77,7 +77,7 @@ type ModifyUsageLimitOutput struct { Period types.UsageLimitPeriod // A list of tag instances. - Tags []*types.Tag + Tags []types.Tag // The identifier of the usage limit. UsageLimitId *string diff --git a/service/redshift/api_op_ResetClusterParameterGroup.go b/service/redshift/api_op_ResetClusterParameterGroup.go index f3ed05e2f5a..6f06bff89c9 100644 --- a/service/redshift/api_op_ResetClusterParameterGroup.go +++ b/service/redshift/api_op_ResetClusterParameterGroup.go @@ -41,11 +41,11 @@ type ResetClusterParameterGroupInput struct { // An array of names of parameters to be reset. If ResetAllParameters option is not // used, then at least one parameter name must be supplied. Constraints: A maximum // of 20 parameters can be reset in a single request. - Parameters []*types.Parameter + Parameters []types.Parameter // If true, all parameters in the specified parameter group will be reset to their // default values. Default: true - ResetAllParameters *bool + ResetAllParameters bool } // diff --git a/service/redshift/api_op_ResizeCluster.go b/service/redshift/api_op_ResizeCluster.go index 754a7bc6f4e..887a469921a 100644 --- a/service/redshift/api_op_ResizeCluster.go +++ b/service/redshift/api_op_ResizeCluster.go @@ -78,7 +78,7 @@ type ResizeClusterInput struct { // The new number of nodes for the cluster. If not specified, the cluster's current // number of nodes is used. - NumberOfNodes *int32 + NumberOfNodes int32 } type ResizeClusterOutput struct { diff --git a/service/redshift/api_op_RestoreFromClusterSnapshot.go b/service/redshift/api_op_RestoreFromClusterSnapshot.go index 17a72038f34..7578c8f99ff 100644 --- a/service/redshift/api_op_RestoreFromClusterSnapshot.go +++ b/service/redshift/api_op_RestoreFromClusterSnapshot.go @@ -102,7 +102,7 @@ type RestoreFromClusterSnapshotInput struct { // A list of security groups to be associated with this cluster. Default: The // default cluster security group for Amazon Redshift. Cluster security groups only // apply to clusters outside of VPCs. - ClusterSecurityGroups []*string + ClusterSecurityGroups []string // The name of the subnet group where you want to cluster restored. A snapshot of // cluster in VPC can be restored only in VPC. Therefore, you must provide subnet @@ -132,7 +132,7 @@ type RestoreFromClusterSnapshotInput struct { // cluster to access other AWS services. You must supply the IAM roles in their // Amazon Resource Name (ARN) format. You can supply up to 10 IAM roles in a single // request. A cluster can have up to 10 IAM roles associated at any time. - IamRoles []*string + IamRoles []string // The AWS Key Management Service (KMS) key ID of the encryption key that you want // to use to encrypt data in the cluster that you restore from a shared snapshot. @@ -200,7 +200,7 @@ type RestoreFromClusterSnapshotInput struct { // A list of Virtual Private Cloud (VPC) security groups to be associated with the // cluster. Default: The default VPC security group is associated with the cluster. // VPC security groups only apply to clusters in VPCs. - VpcSecurityGroupIds []*string + VpcSecurityGroupIds []string } type RestoreFromClusterSnapshotOutput struct { diff --git a/service/redshift/deserializers.go b/service/redshift/deserializers.go index a57561f89ad..cb8295ec64e 100644 --- a/service/redshift/deserializers.go +++ b/service/redshift/deserializers.go @@ -13198,7 +13198,7 @@ func awsAwsquery_deserializeDocumentAccessToSnapshotDeniedFault(v **types.Access } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13246,7 +13246,7 @@ func awsAwsquery_deserializeDocumentAccountAttribute(v **types.AccountAttribute, } if val != nil { xtv := string(val) - sv.AttributeName = &xtv + sv.AttributeName = ptr.String(xtv) } case strings.EqualFold("AttributeValues", t.Name.Local): @@ -13265,13 +13265,13 @@ func awsAwsquery_deserializeDocumentAccountAttribute(v **types.AccountAttribute, return nil } -func awsAwsquery_deserializeDocumentAccountsWithRestoreAccessList(v *[]*types.AccountWithRestoreAccess, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAccountsWithRestoreAccessList(v *[]types.AccountWithRestoreAccess, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AccountWithRestoreAccess + var sv []types.AccountWithRestoreAccess if *v == nil { - sv = make([]*types.AccountWithRestoreAccess, 0) + sv = make([]types.AccountWithRestoreAccess, 0) } else { sv = *v } @@ -13287,11 +13287,13 @@ func awsAwsquery_deserializeDocumentAccountsWithRestoreAccessList(v *[]*types.Ac } for { if strings.EqualFold("AccountWithRestoreAccess", t.Name.Local) { - var col *types.AccountWithRestoreAccess + var col types.AccountWithRestoreAccess nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAccountWithRestoreAccess(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAccountWithRestoreAccess(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13304,23 +13306,25 @@ func awsAwsquery_deserializeDocumentAccountsWithRestoreAccessList(v *[]*types.Ac return nil } -func awsAwsquery_deserializeDocumentAccountsWithRestoreAccessListUnwrapped(v *[]*types.AccountWithRestoreAccess, decoder smithyxml.NodeDecoder) error { - var sv []*types.AccountWithRestoreAccess +func awsAwsquery_deserializeDocumentAccountsWithRestoreAccessListUnwrapped(v *[]types.AccountWithRestoreAccess, decoder smithyxml.NodeDecoder) error { + var sv []types.AccountWithRestoreAccess if *v == nil { - sv = make([]*types.AccountWithRestoreAccess, 0) + sv = make([]types.AccountWithRestoreAccess, 0) } else { sv = *v } switch { default: - var mv *types.AccountWithRestoreAccess + var mv types.AccountWithRestoreAccess t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAccountWithRestoreAccess(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAccountWithRestoreAccess(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13361,7 +13365,7 @@ func awsAwsquery_deserializeDocumentAccountWithRestoreAccess(v **types.AccountWi } if val != nil { xtv := string(val) - sv.AccountAlias = &xtv + sv.AccountAlias = ptr.String(xtv) } case strings.EqualFold("AccountId", t.Name.Local): @@ -13377,7 +13381,7 @@ func awsAwsquery_deserializeDocumentAccountWithRestoreAccess(v **types.AccountWi } if val != nil { xtv := string(val) - sv.AccountId = &xtv + sv.AccountId = ptr.String(xtv) } default: @@ -13390,13 +13394,13 @@ func awsAwsquery_deserializeDocumentAccountWithRestoreAccess(v **types.AccountWi return nil } -func awsAwsquery_deserializeDocumentAssociatedClusterList(v *[]*types.ClusterAssociatedToSchedule, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAssociatedClusterList(v *[]types.ClusterAssociatedToSchedule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClusterAssociatedToSchedule + var sv []types.ClusterAssociatedToSchedule if *v == nil { - sv = make([]*types.ClusterAssociatedToSchedule, 0) + sv = make([]types.ClusterAssociatedToSchedule, 0) } else { sv = *v } @@ -13412,11 +13416,13 @@ func awsAwsquery_deserializeDocumentAssociatedClusterList(v *[]*types.ClusterAss } for { if strings.EqualFold("ClusterAssociatedToSchedule", t.Name.Local) { - var col *types.ClusterAssociatedToSchedule + var col types.ClusterAssociatedToSchedule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterAssociatedToSchedule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentClusterAssociatedToSchedule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13429,35 +13435,37 @@ func awsAwsquery_deserializeDocumentAssociatedClusterList(v *[]*types.ClusterAss return nil } -func awsAwsquery_deserializeDocumentAssociatedClusterListUnwrapped(v *[]*types.ClusterAssociatedToSchedule, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClusterAssociatedToSchedule +func awsAwsquery_deserializeDocumentAssociatedClusterListUnwrapped(v *[]types.ClusterAssociatedToSchedule, decoder smithyxml.NodeDecoder) error { + var sv []types.ClusterAssociatedToSchedule if *v == nil { - sv = make([]*types.ClusterAssociatedToSchedule, 0) + sv = make([]types.ClusterAssociatedToSchedule, 0) } else { sv = *v } switch { default: - var mv *types.ClusterAssociatedToSchedule + var mv types.ClusterAssociatedToSchedule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterAssociatedToSchedule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentClusterAssociatedToSchedule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAttributeList(v *[]*types.AccountAttribute, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAttributeList(v *[]types.AccountAttribute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AccountAttribute + var sv []types.AccountAttribute if *v == nil { - sv = make([]*types.AccountAttribute, 0) + sv = make([]types.AccountAttribute, 0) } else { sv = *v } @@ -13473,11 +13481,13 @@ func awsAwsquery_deserializeDocumentAttributeList(v *[]*types.AccountAttribute, } for { if strings.EqualFold("AccountAttribute", t.Name.Local) { - var col *types.AccountAttribute + var col types.AccountAttribute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAccountAttribute(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAccountAttribute(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13490,35 +13500,37 @@ func awsAwsquery_deserializeDocumentAttributeList(v *[]*types.AccountAttribute, return nil } -func awsAwsquery_deserializeDocumentAttributeListUnwrapped(v *[]*types.AccountAttribute, decoder smithyxml.NodeDecoder) error { - var sv []*types.AccountAttribute +func awsAwsquery_deserializeDocumentAttributeListUnwrapped(v *[]types.AccountAttribute, decoder smithyxml.NodeDecoder) error { + var sv []types.AccountAttribute if *v == nil { - sv = make([]*types.AccountAttribute, 0) + sv = make([]types.AccountAttribute, 0) } else { sv = *v } switch { default: - var mv *types.AccountAttribute + var mv types.AccountAttribute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAccountAttribute(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAccountAttribute(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentAttributeValueList(v *[]*types.AttributeValueTarget, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAttributeValueList(v *[]types.AttributeValueTarget, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AttributeValueTarget + var sv []types.AttributeValueTarget if *v == nil { - sv = make([]*types.AttributeValueTarget, 0) + sv = make([]types.AttributeValueTarget, 0) } else { sv = *v } @@ -13534,11 +13546,13 @@ func awsAwsquery_deserializeDocumentAttributeValueList(v *[]*types.AttributeValu } for { if strings.EqualFold("AttributeValueTarget", t.Name.Local) { - var col *types.AttributeValueTarget + var col types.AttributeValueTarget nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAttributeValueTarget(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAttributeValueTarget(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13551,23 +13565,25 @@ func awsAwsquery_deserializeDocumentAttributeValueList(v *[]*types.AttributeValu return nil } -func awsAwsquery_deserializeDocumentAttributeValueListUnwrapped(v *[]*types.AttributeValueTarget, decoder smithyxml.NodeDecoder) error { - var sv []*types.AttributeValueTarget +func awsAwsquery_deserializeDocumentAttributeValueListUnwrapped(v *[]types.AttributeValueTarget, decoder smithyxml.NodeDecoder) error { + var sv []types.AttributeValueTarget if *v == nil { - sv = make([]*types.AttributeValueTarget, 0) + sv = make([]types.AttributeValueTarget, 0) } else { sv = *v } switch { default: - var mv *types.AttributeValueTarget + var mv types.AttributeValueTarget t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAttributeValueTarget(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAttributeValueTarget(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13608,7 +13624,7 @@ func awsAwsquery_deserializeDocumentAttributeValueTarget(v **types.AttributeValu } if val != nil { xtv := string(val) - sv.AttributeValue = &xtv + sv.AttributeValue = ptr.String(xtv) } default: @@ -13656,7 +13672,7 @@ func awsAwsquery_deserializeDocumentAuthorizationAlreadyExistsFault(v **types.Au } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13704,7 +13720,7 @@ func awsAwsquery_deserializeDocumentAuthorizationNotFoundFault(v **types.Authori } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13752,7 +13768,7 @@ func awsAwsquery_deserializeDocumentAuthorizationQuotaExceededFault(v **types.Au } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13800,7 +13816,7 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("SupportedPlatforms", t.Name.Local): @@ -13819,13 +13835,13 @@ func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, return nil } -func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]*types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AvailabilityZone + var sv []types.AvailabilityZone if *v == nil { - sv = make([]*types.AvailabilityZone, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } @@ -13841,11 +13857,13 @@ func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]*types.Availabilit } for { if strings.EqualFold("AvailabilityZone", t.Name.Local) { - var col *types.AvailabilityZone + var col types.AvailabilityZone nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZone(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13858,23 +13876,25 @@ func awsAwsquery_deserializeDocumentAvailabilityZoneList(v *[]*types.Availabilit return nil } -func awsAwsquery_deserializeDocumentAvailabilityZoneListUnwrapped(v *[]*types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { - var sv []*types.AvailabilityZone +func awsAwsquery_deserializeDocumentAvailabilityZoneListUnwrapped(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { + var sv []types.AvailabilityZone if *v == nil { - sv = make([]*types.AvailabilityZone, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } switch { default: - var mv *types.AvailabilityZone + var mv types.AvailabilityZone t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZone(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13915,7 +13935,7 @@ func awsAwsquery_deserializeDocumentBatchDeleteRequestSizeExceededFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13963,7 +13983,7 @@ func awsAwsquery_deserializeDocumentBatchModifyClusterSnapshotsLimitExceededFaul } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13976,13 +13996,13 @@ func awsAwsquery_deserializeDocumentBatchModifyClusterSnapshotsLimitExceededFaul return nil } -func awsAwsquery_deserializeDocumentBatchSnapshotOperationErrorList(v *[]*types.SnapshotErrorMessage, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentBatchSnapshotOperationErrorList(v *[]types.SnapshotErrorMessage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SnapshotErrorMessage + var sv []types.SnapshotErrorMessage if *v == nil { - sv = make([]*types.SnapshotErrorMessage, 0) + sv = make([]types.SnapshotErrorMessage, 0) } else { sv = *v } @@ -13998,11 +14018,13 @@ func awsAwsquery_deserializeDocumentBatchSnapshotOperationErrorList(v *[]*types. } for { if strings.EqualFold("SnapshotErrorMessage", t.Name.Local) { - var col *types.SnapshotErrorMessage + var col types.SnapshotErrorMessage nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSnapshotErrorMessage(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSnapshotErrorMessage(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14015,35 +14037,37 @@ func awsAwsquery_deserializeDocumentBatchSnapshotOperationErrorList(v *[]*types. return nil } -func awsAwsquery_deserializeDocumentBatchSnapshotOperationErrorListUnwrapped(v *[]*types.SnapshotErrorMessage, decoder smithyxml.NodeDecoder) error { - var sv []*types.SnapshotErrorMessage +func awsAwsquery_deserializeDocumentBatchSnapshotOperationErrorListUnwrapped(v *[]types.SnapshotErrorMessage, decoder smithyxml.NodeDecoder) error { + var sv []types.SnapshotErrorMessage if *v == nil { - sv = make([]*types.SnapshotErrorMessage, 0) + sv = make([]types.SnapshotErrorMessage, 0) } else { sv = *v } switch { default: - var mv *types.SnapshotErrorMessage + var mv types.SnapshotErrorMessage t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSnapshotErrorMessage(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSnapshotErrorMessage(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentBatchSnapshotOperationErrors(v *[]*types.SnapshotErrorMessage, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentBatchSnapshotOperationErrors(v *[]types.SnapshotErrorMessage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SnapshotErrorMessage + var sv []types.SnapshotErrorMessage if *v == nil { - sv = make([]*types.SnapshotErrorMessage, 0) + sv = make([]types.SnapshotErrorMessage, 0) } else { sv = *v } @@ -14059,11 +14083,13 @@ func awsAwsquery_deserializeDocumentBatchSnapshotOperationErrors(v *[]*types.Sna } for { if strings.EqualFold("SnapshotErrorMessage", t.Name.Local) { - var col *types.SnapshotErrorMessage + var col types.SnapshotErrorMessage nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSnapshotErrorMessage(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSnapshotErrorMessage(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14076,23 +14102,25 @@ func awsAwsquery_deserializeDocumentBatchSnapshotOperationErrors(v *[]*types.Sna return nil } -func awsAwsquery_deserializeDocumentBatchSnapshotOperationErrorsUnwrapped(v *[]*types.SnapshotErrorMessage, decoder smithyxml.NodeDecoder) error { - var sv []*types.SnapshotErrorMessage +func awsAwsquery_deserializeDocumentBatchSnapshotOperationErrorsUnwrapped(v *[]types.SnapshotErrorMessage, decoder smithyxml.NodeDecoder) error { + var sv []types.SnapshotErrorMessage if *v == nil { - sv = make([]*types.SnapshotErrorMessage, 0) + sv = make([]types.SnapshotErrorMessage, 0) } else { sv = *v } switch { default: - var mv *types.SnapshotErrorMessage + var mv types.SnapshotErrorMessage t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSnapshotErrorMessage(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSnapshotErrorMessage(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -14133,7 +14161,7 @@ func awsAwsquery_deserializeDocumentBucketNotFoundFault(v **types.BucketNotFound } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14181,7 +14209,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowVersionUpgrade = &xtv + sv.AllowVersionUpgrade = xtv } case strings.EqualFold("AutomatedSnapshotRetentionPeriod", t.Name.Local): @@ -14198,7 +14226,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml if err != nil { return err } - sv.AutomatedSnapshotRetentionPeriod = ptr.Int32(int32(i64)) + sv.AutomatedSnapshotRetentionPeriod = int32(i64) } case strings.EqualFold("AvailabilityZone", t.Name.Local): @@ -14214,7 +14242,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("ClusterAvailabilityStatus", t.Name.Local): @@ -14230,7 +14258,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.ClusterAvailabilityStatus = &xtv + sv.ClusterAvailabilityStatus = ptr.String(xtv) } case strings.EqualFold("ClusterCreateTime", t.Name.Local): @@ -14247,7 +14275,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml if err != nil { return err } - sv.ClusterCreateTime = &t + sv.ClusterCreateTime = ptr.Time(t) } case strings.EqualFold("ClusterIdentifier", t.Name.Local): @@ -14263,7 +14291,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.ClusterIdentifier = &xtv + sv.ClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("ClusterNodes", t.Name.Local): @@ -14291,7 +14319,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.ClusterPublicKey = &xtv + sv.ClusterPublicKey = ptr.String(xtv) } case strings.EqualFold("ClusterRevisionNumber", t.Name.Local): @@ -14307,7 +14335,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.ClusterRevisionNumber = &xtv + sv.ClusterRevisionNumber = ptr.String(xtv) } case strings.EqualFold("ClusterSecurityGroups", t.Name.Local): @@ -14335,7 +14363,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.ClusterStatus = &xtv + sv.ClusterStatus = ptr.String(xtv) } case strings.EqualFold("ClusterSubnetGroupName", t.Name.Local): @@ -14351,7 +14379,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.ClusterSubnetGroupName = &xtv + sv.ClusterSubnetGroupName = ptr.String(xtv) } case strings.EqualFold("ClusterVersion", t.Name.Local): @@ -14367,7 +14395,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.ClusterVersion = &xtv + sv.ClusterVersion = ptr.String(xtv) } case strings.EqualFold("DataTransferProgress", t.Name.Local): @@ -14389,7 +14417,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.DBName = &xtv + sv.DBName = ptr.String(xtv) } case strings.EqualFold("DeferredMaintenanceWindows", t.Name.Local): @@ -14417,7 +14445,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.ElasticResizeNumberOfNodeOptions = &xtv + sv.ElasticResizeNumberOfNodeOptions = ptr.String(xtv) } case strings.EqualFold("Encrypted", t.Name.Local): @@ -14433,7 +14461,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("Endpoint", t.Name.Local): @@ -14455,7 +14483,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EnhancedVpcRouting = &xtv + sv.EnhancedVpcRouting = xtv } case strings.EqualFold("ExpectedNextSnapshotScheduleTime", t.Name.Local): @@ -14472,7 +14500,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml if err != nil { return err } - sv.ExpectedNextSnapshotScheduleTime = &t + sv.ExpectedNextSnapshotScheduleTime = ptr.Time(t) } case strings.EqualFold("ExpectedNextSnapshotScheduleTimeStatus", t.Name.Local): @@ -14488,7 +14516,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.ExpectedNextSnapshotScheduleTimeStatus = &xtv + sv.ExpectedNextSnapshotScheduleTimeStatus = ptr.String(xtv) } case strings.EqualFold("HsmStatus", t.Name.Local): @@ -14516,7 +14544,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("MaintenanceTrackName", t.Name.Local): @@ -14532,7 +14560,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.MaintenanceTrackName = &xtv + sv.MaintenanceTrackName = ptr.String(xtv) } case strings.EqualFold("ManualSnapshotRetentionPeriod", t.Name.Local): @@ -14549,7 +14577,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml if err != nil { return err } - sv.ManualSnapshotRetentionPeriod = ptr.Int32(int32(i64)) + sv.ManualSnapshotRetentionPeriod = int32(i64) } case strings.EqualFold("MasterUsername", t.Name.Local): @@ -14565,7 +14593,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.MasterUsername = &xtv + sv.MasterUsername = ptr.String(xtv) } case strings.EqualFold("ModifyStatus", t.Name.Local): @@ -14581,7 +14609,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.ModifyStatus = &xtv + sv.ModifyStatus = ptr.String(xtv) } case strings.EqualFold("NextMaintenanceWindowStartTime", t.Name.Local): @@ -14598,7 +14626,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml if err != nil { return err } - sv.NextMaintenanceWindowStartTime = &t + sv.NextMaintenanceWindowStartTime = ptr.Time(t) } case strings.EqualFold("NodeType", t.Name.Local): @@ -14614,7 +14642,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.NodeType = &xtv + sv.NodeType = ptr.String(xtv) } case strings.EqualFold("NumberOfNodes", t.Name.Local): @@ -14631,7 +14659,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml if err != nil { return err } - sv.NumberOfNodes = ptr.Int32(int32(i64)) + sv.NumberOfNodes = int32(i64) } case strings.EqualFold("PendingActions", t.Name.Local): @@ -14659,7 +14687,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.PreferredMaintenanceWindow = &xtv + sv.PreferredMaintenanceWindow = ptr.String(xtv) } case strings.EqualFold("PubliclyAccessible", t.Name.Local): @@ -14675,7 +14703,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.PubliclyAccessible = &xtv + sv.PubliclyAccessible = xtv } case strings.EqualFold("ResizeInfo", t.Name.Local): @@ -14703,7 +14731,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.SnapshotScheduleIdentifier = &xtv + sv.SnapshotScheduleIdentifier = ptr.String(xtv) } case strings.EqualFold("SnapshotScheduleState", t.Name.Local): @@ -14738,7 +14766,7 @@ func awsAwsquery_deserializeDocumentCluster(v **types.Cluster, decoder smithyxml } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } case strings.EqualFold("VpcSecurityGroups", t.Name.Local): @@ -14792,7 +14820,7 @@ func awsAwsquery_deserializeDocumentClusterAlreadyExistsFault(v **types.ClusterA } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14840,7 +14868,7 @@ func awsAwsquery_deserializeDocumentClusterAssociatedToSchedule(v **types.Cluste } if val != nil { xtv := string(val) - sv.ClusterIdentifier = &xtv + sv.ClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("ScheduleAssociationState", t.Name.Local): @@ -14901,7 +14929,7 @@ func awsAwsquery_deserializeDocumentClusterDbRevision(v **types.ClusterDbRevisio } if val != nil { xtv := string(val) - sv.ClusterIdentifier = &xtv + sv.ClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("CurrentDatabaseRevision", t.Name.Local): @@ -14917,7 +14945,7 @@ func awsAwsquery_deserializeDocumentClusterDbRevision(v **types.ClusterDbRevisio } if val != nil { xtv := string(val) - sv.CurrentDatabaseRevision = &xtv + sv.CurrentDatabaseRevision = ptr.String(xtv) } case strings.EqualFold("DatabaseRevisionReleaseDate", t.Name.Local): @@ -14934,7 +14962,7 @@ func awsAwsquery_deserializeDocumentClusterDbRevision(v **types.ClusterDbRevisio if err != nil { return err } - sv.DatabaseRevisionReleaseDate = &t + sv.DatabaseRevisionReleaseDate = ptr.Time(t) } case strings.EqualFold("RevisionTargets", t.Name.Local): @@ -14953,13 +14981,13 @@ func awsAwsquery_deserializeDocumentClusterDbRevision(v **types.ClusterDbRevisio return nil } -func awsAwsquery_deserializeDocumentClusterDbRevisionsList(v *[]*types.ClusterDbRevision, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClusterDbRevisionsList(v *[]types.ClusterDbRevision, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClusterDbRevision + var sv []types.ClusterDbRevision if *v == nil { - sv = make([]*types.ClusterDbRevision, 0) + sv = make([]types.ClusterDbRevision, 0) } else { sv = *v } @@ -14975,11 +15003,13 @@ func awsAwsquery_deserializeDocumentClusterDbRevisionsList(v *[]*types.ClusterDb } for { if strings.EqualFold("ClusterDbRevision", t.Name.Local) { - var col *types.ClusterDbRevision + var col types.ClusterDbRevision nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterDbRevision(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentClusterDbRevision(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14992,23 +15022,25 @@ func awsAwsquery_deserializeDocumentClusterDbRevisionsList(v *[]*types.ClusterDb return nil } -func awsAwsquery_deserializeDocumentClusterDbRevisionsListUnwrapped(v *[]*types.ClusterDbRevision, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClusterDbRevision +func awsAwsquery_deserializeDocumentClusterDbRevisionsListUnwrapped(v *[]types.ClusterDbRevision, decoder smithyxml.NodeDecoder) error { + var sv []types.ClusterDbRevision if *v == nil { - sv = make([]*types.ClusterDbRevision, 0) + sv = make([]types.ClusterDbRevision, 0) } else { sv = *v } switch { default: - var mv *types.ClusterDbRevision + var mv types.ClusterDbRevision t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterDbRevision(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentClusterDbRevision(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15049,7 +15081,7 @@ func awsAwsquery_deserializeDocumentClusterIamRole(v **types.ClusterIamRole, dec } if val != nil { xtv := string(val) - sv.ApplyStatus = &xtv + sv.ApplyStatus = ptr.String(xtv) } case strings.EqualFold("IamRoleArn", t.Name.Local): @@ -15065,7 +15097,7 @@ func awsAwsquery_deserializeDocumentClusterIamRole(v **types.ClusterIamRole, dec } if val != nil { xtv := string(val) - sv.IamRoleArn = &xtv + sv.IamRoleArn = ptr.String(xtv) } default: @@ -15078,13 +15110,13 @@ func awsAwsquery_deserializeDocumentClusterIamRole(v **types.ClusterIamRole, dec return nil } -func awsAwsquery_deserializeDocumentClusterIamRoleList(v *[]*types.ClusterIamRole, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClusterIamRoleList(v *[]types.ClusterIamRole, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClusterIamRole + var sv []types.ClusterIamRole if *v == nil { - sv = make([]*types.ClusterIamRole, 0) + sv = make([]types.ClusterIamRole, 0) } else { sv = *v } @@ -15100,11 +15132,13 @@ func awsAwsquery_deserializeDocumentClusterIamRoleList(v *[]*types.ClusterIamRol } for { if strings.EqualFold("ClusterIamRole", t.Name.Local) { - var col *types.ClusterIamRole + var col types.ClusterIamRole nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterIamRole(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentClusterIamRole(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15117,35 +15151,37 @@ func awsAwsquery_deserializeDocumentClusterIamRoleList(v *[]*types.ClusterIamRol return nil } -func awsAwsquery_deserializeDocumentClusterIamRoleListUnwrapped(v *[]*types.ClusterIamRole, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClusterIamRole +func awsAwsquery_deserializeDocumentClusterIamRoleListUnwrapped(v *[]types.ClusterIamRole, decoder smithyxml.NodeDecoder) error { + var sv []types.ClusterIamRole if *v == nil { - sv = make([]*types.ClusterIamRole, 0) + sv = make([]types.ClusterIamRole, 0) } else { sv = *v } switch { default: - var mv *types.ClusterIamRole + var mv types.ClusterIamRole t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterIamRole(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentClusterIamRole(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentClusterList(v *[]*types.Cluster, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClusterList(v *[]types.Cluster, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Cluster + var sv []types.Cluster if *v == nil { - sv = make([]*types.Cluster, 0) + sv = make([]types.Cluster, 0) } else { sv = *v } @@ -15161,11 +15197,13 @@ func awsAwsquery_deserializeDocumentClusterList(v *[]*types.Cluster, decoder smi } for { if strings.EqualFold("Cluster", t.Name.Local) { - var col *types.Cluster + var col types.Cluster nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCluster(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCluster(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15178,23 +15216,25 @@ func awsAwsquery_deserializeDocumentClusterList(v *[]*types.Cluster, decoder smi return nil } -func awsAwsquery_deserializeDocumentClusterListUnwrapped(v *[]*types.Cluster, decoder smithyxml.NodeDecoder) error { - var sv []*types.Cluster +func awsAwsquery_deserializeDocumentClusterListUnwrapped(v *[]types.Cluster, decoder smithyxml.NodeDecoder) error { + var sv []types.Cluster if *v == nil { - sv = make([]*types.Cluster, 0) + sv = make([]types.Cluster, 0) } else { sv = *v } switch { default: - var mv *types.Cluster + var mv types.Cluster t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCluster(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCluster(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15235,7 +15275,7 @@ func awsAwsquery_deserializeDocumentClusterNode(v **types.ClusterNode, decoder s } if val != nil { xtv := string(val) - sv.NodeRole = &xtv + sv.NodeRole = ptr.String(xtv) } case strings.EqualFold("PrivateIPAddress", t.Name.Local): @@ -15251,7 +15291,7 @@ func awsAwsquery_deserializeDocumentClusterNode(v **types.ClusterNode, decoder s } if val != nil { xtv := string(val) - sv.PrivateIPAddress = &xtv + sv.PrivateIPAddress = ptr.String(xtv) } case strings.EqualFold("PublicIPAddress", t.Name.Local): @@ -15267,7 +15307,7 @@ func awsAwsquery_deserializeDocumentClusterNode(v **types.ClusterNode, decoder s } if val != nil { xtv := string(val) - sv.PublicIPAddress = &xtv + sv.PublicIPAddress = ptr.String(xtv) } default: @@ -15280,13 +15320,13 @@ func awsAwsquery_deserializeDocumentClusterNode(v **types.ClusterNode, decoder s return nil } -func awsAwsquery_deserializeDocumentClusterNodesList(v *[]*types.ClusterNode, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClusterNodesList(v *[]types.ClusterNode, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClusterNode + var sv []types.ClusterNode if *v == nil { - sv = make([]*types.ClusterNode, 0) + sv = make([]types.ClusterNode, 0) } else { sv = *v } @@ -15302,11 +15342,13 @@ func awsAwsquery_deserializeDocumentClusterNodesList(v *[]*types.ClusterNode, de } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ClusterNode + var col types.ClusterNode nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterNode(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentClusterNode(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15319,23 +15361,25 @@ func awsAwsquery_deserializeDocumentClusterNodesList(v *[]*types.ClusterNode, de return nil } -func awsAwsquery_deserializeDocumentClusterNodesListUnwrapped(v *[]*types.ClusterNode, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClusterNode +func awsAwsquery_deserializeDocumentClusterNodesListUnwrapped(v *[]types.ClusterNode, decoder smithyxml.NodeDecoder) error { + var sv []types.ClusterNode if *v == nil { - sv = make([]*types.ClusterNode, 0) + sv = make([]types.ClusterNode, 0) } else { sv = *v } switch { default: - var mv *types.ClusterNode + var mv types.ClusterNode t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterNode(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentClusterNode(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15376,7 +15420,7 @@ func awsAwsquery_deserializeDocumentClusterNotFoundFault(v **types.ClusterNotFou } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15424,7 +15468,7 @@ func awsAwsquery_deserializeDocumentClusterOnLatestRevisionFault(v **types.Clust } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15472,7 +15516,7 @@ func awsAwsquery_deserializeDocumentClusterParameterGroup(v **types.ClusterParam } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("ParameterGroupFamily", t.Name.Local): @@ -15488,7 +15532,7 @@ func awsAwsquery_deserializeDocumentClusterParameterGroup(v **types.ClusterParam } if val != nil { xtv := string(val) - sv.ParameterGroupFamily = &xtv + sv.ParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("ParameterGroupName", t.Name.Local): @@ -15504,7 +15548,7 @@ func awsAwsquery_deserializeDocumentClusterParameterGroup(v **types.ClusterParam } if val != nil { xtv := string(val) - sv.ParameterGroupName = &xtv + sv.ParameterGroupName = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -15558,7 +15602,7 @@ func awsAwsquery_deserializeDocumentClusterParameterGroupAlreadyExistsFault(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15606,7 +15650,7 @@ func awsAwsquery_deserializeDocumentClusterParameterGroupNotFoundFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15654,7 +15698,7 @@ func awsAwsquery_deserializeDocumentClusterParameterGroupQuotaExceededFault(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15708,7 +15752,7 @@ func awsAwsquery_deserializeDocumentClusterParameterGroupStatus(v **types.Cluste } if val != nil { xtv := string(val) - sv.ParameterApplyStatus = &xtv + sv.ParameterApplyStatus = ptr.String(xtv) } case strings.EqualFold("ParameterGroupName", t.Name.Local): @@ -15724,7 +15768,7 @@ func awsAwsquery_deserializeDocumentClusterParameterGroupStatus(v **types.Cluste } if val != nil { xtv := string(val) - sv.ParameterGroupName = &xtv + sv.ParameterGroupName = ptr.String(xtv) } default: @@ -15737,13 +15781,13 @@ func awsAwsquery_deserializeDocumentClusterParameterGroupStatus(v **types.Cluste return nil } -func awsAwsquery_deserializeDocumentClusterParameterGroupStatusList(v *[]*types.ClusterParameterGroupStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClusterParameterGroupStatusList(v *[]types.ClusterParameterGroupStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClusterParameterGroupStatus + var sv []types.ClusterParameterGroupStatus if *v == nil { - sv = make([]*types.ClusterParameterGroupStatus, 0) + sv = make([]types.ClusterParameterGroupStatus, 0) } else { sv = *v } @@ -15759,11 +15803,13 @@ func awsAwsquery_deserializeDocumentClusterParameterGroupStatusList(v *[]*types. } for { if strings.EqualFold("ClusterParameterGroup", t.Name.Local) { - var col *types.ClusterParameterGroupStatus + var col types.ClusterParameterGroupStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterParameterGroupStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentClusterParameterGroupStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15776,23 +15822,25 @@ func awsAwsquery_deserializeDocumentClusterParameterGroupStatusList(v *[]*types. return nil } -func awsAwsquery_deserializeDocumentClusterParameterGroupStatusListUnwrapped(v *[]*types.ClusterParameterGroupStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClusterParameterGroupStatus +func awsAwsquery_deserializeDocumentClusterParameterGroupStatusListUnwrapped(v *[]types.ClusterParameterGroupStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.ClusterParameterGroupStatus if *v == nil { - sv = make([]*types.ClusterParameterGroupStatus, 0) + sv = make([]types.ClusterParameterGroupStatus, 0) } else { sv = *v } switch { default: - var mv *types.ClusterParameterGroupStatus + var mv types.ClusterParameterGroupStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterParameterGroupStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentClusterParameterGroupStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15833,7 +15881,7 @@ func awsAwsquery_deserializeDocumentClusterParameterStatus(v **types.ClusterPara } if val != nil { xtv := string(val) - sv.ParameterApplyErrorDescription = &xtv + sv.ParameterApplyErrorDescription = ptr.String(xtv) } case strings.EqualFold("ParameterApplyStatus", t.Name.Local): @@ -15849,7 +15897,7 @@ func awsAwsquery_deserializeDocumentClusterParameterStatus(v **types.ClusterPara } if val != nil { xtv := string(val) - sv.ParameterApplyStatus = &xtv + sv.ParameterApplyStatus = ptr.String(xtv) } case strings.EqualFold("ParameterName", t.Name.Local): @@ -15865,7 +15913,7 @@ func awsAwsquery_deserializeDocumentClusterParameterStatus(v **types.ClusterPara } if val != nil { xtv := string(val) - sv.ParameterName = &xtv + sv.ParameterName = ptr.String(xtv) } default: @@ -15878,13 +15926,13 @@ func awsAwsquery_deserializeDocumentClusterParameterStatus(v **types.ClusterPara return nil } -func awsAwsquery_deserializeDocumentClusterParameterStatusList(v *[]*types.ClusterParameterStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClusterParameterStatusList(v *[]types.ClusterParameterStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClusterParameterStatus + var sv []types.ClusterParameterStatus if *v == nil { - sv = make([]*types.ClusterParameterStatus, 0) + sv = make([]types.ClusterParameterStatus, 0) } else { sv = *v } @@ -15900,11 +15948,13 @@ func awsAwsquery_deserializeDocumentClusterParameterStatusList(v *[]*types.Clust } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ClusterParameterStatus + var col types.ClusterParameterStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterParameterStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentClusterParameterStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15917,23 +15967,25 @@ func awsAwsquery_deserializeDocumentClusterParameterStatusList(v *[]*types.Clust return nil } -func awsAwsquery_deserializeDocumentClusterParameterStatusListUnwrapped(v *[]*types.ClusterParameterStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClusterParameterStatus +func awsAwsquery_deserializeDocumentClusterParameterStatusListUnwrapped(v *[]types.ClusterParameterStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.ClusterParameterStatus if *v == nil { - sv = make([]*types.ClusterParameterStatus, 0) + sv = make([]types.ClusterParameterStatus, 0) } else { sv = *v } switch { default: - var mv *types.ClusterParameterStatus + var mv types.ClusterParameterStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterParameterStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentClusterParameterStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15974,7 +16026,7 @@ func awsAwsquery_deserializeDocumentClusterQuotaExceededFault(v **types.ClusterQ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16022,7 +16074,7 @@ func awsAwsquery_deserializeDocumentClusterSecurityGroup(v **types.ClusterSecuri } if val != nil { xtv := string(val) - sv.ClusterSecurityGroupName = &xtv + sv.ClusterSecurityGroupName = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -16038,7 +16090,7 @@ func awsAwsquery_deserializeDocumentClusterSecurityGroup(v **types.ClusterSecuri } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("EC2SecurityGroups", t.Name.Local): @@ -16104,7 +16156,7 @@ func awsAwsquery_deserializeDocumentClusterSecurityGroupAlreadyExistsFault(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16152,7 +16204,7 @@ func awsAwsquery_deserializeDocumentClusterSecurityGroupMembership(v **types.Clu } if val != nil { xtv := string(val) - sv.ClusterSecurityGroupName = &xtv + sv.ClusterSecurityGroupName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -16168,7 +16220,7 @@ func awsAwsquery_deserializeDocumentClusterSecurityGroupMembership(v **types.Clu } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -16181,13 +16233,13 @@ func awsAwsquery_deserializeDocumentClusterSecurityGroupMembership(v **types.Clu return nil } -func awsAwsquery_deserializeDocumentClusterSecurityGroupMembershipList(v *[]*types.ClusterSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClusterSecurityGroupMembershipList(v *[]types.ClusterSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClusterSecurityGroupMembership + var sv []types.ClusterSecurityGroupMembership if *v == nil { - sv = make([]*types.ClusterSecurityGroupMembership, 0) + sv = make([]types.ClusterSecurityGroupMembership, 0) } else { sv = *v } @@ -16203,11 +16255,13 @@ func awsAwsquery_deserializeDocumentClusterSecurityGroupMembershipList(v *[]*typ } for { if strings.EqualFold("ClusterSecurityGroup", t.Name.Local) { - var col *types.ClusterSecurityGroupMembership + var col types.ClusterSecurityGroupMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterSecurityGroupMembership(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentClusterSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16220,23 +16274,25 @@ func awsAwsquery_deserializeDocumentClusterSecurityGroupMembershipList(v *[]*typ return nil } -func awsAwsquery_deserializeDocumentClusterSecurityGroupMembershipListUnwrapped(v *[]*types.ClusterSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClusterSecurityGroupMembership +func awsAwsquery_deserializeDocumentClusterSecurityGroupMembershipListUnwrapped(v *[]types.ClusterSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.ClusterSecurityGroupMembership if *v == nil { - sv = make([]*types.ClusterSecurityGroupMembership, 0) + sv = make([]types.ClusterSecurityGroupMembership, 0) } else { sv = *v } switch { default: - var mv *types.ClusterSecurityGroupMembership + var mv types.ClusterSecurityGroupMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterSecurityGroupMembership(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentClusterSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16277,7 +16333,7 @@ func awsAwsquery_deserializeDocumentClusterSecurityGroupNotFoundFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16325,7 +16381,7 @@ func awsAwsquery_deserializeDocumentClusterSecurityGroupQuotaExceededFault(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16338,13 +16394,13 @@ func awsAwsquery_deserializeDocumentClusterSecurityGroupQuotaExceededFault(v **t return nil } -func awsAwsquery_deserializeDocumentClusterSecurityGroups(v *[]*types.ClusterSecurityGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClusterSecurityGroups(v *[]types.ClusterSecurityGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClusterSecurityGroup + var sv []types.ClusterSecurityGroup if *v == nil { - sv = make([]*types.ClusterSecurityGroup, 0) + sv = make([]types.ClusterSecurityGroup, 0) } else { sv = *v } @@ -16360,11 +16416,13 @@ func awsAwsquery_deserializeDocumentClusterSecurityGroups(v *[]*types.ClusterSec } for { if strings.EqualFold("ClusterSecurityGroup", t.Name.Local) { - var col *types.ClusterSecurityGroup + var col types.ClusterSecurityGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterSecurityGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentClusterSecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16377,23 +16435,25 @@ func awsAwsquery_deserializeDocumentClusterSecurityGroups(v *[]*types.ClusterSec return nil } -func awsAwsquery_deserializeDocumentClusterSecurityGroupsUnwrapped(v *[]*types.ClusterSecurityGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClusterSecurityGroup +func awsAwsquery_deserializeDocumentClusterSecurityGroupsUnwrapped(v *[]types.ClusterSecurityGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.ClusterSecurityGroup if *v == nil { - sv = make([]*types.ClusterSecurityGroup, 0) + sv = make([]types.ClusterSecurityGroup, 0) } else { sv = *v } switch { default: - var mv *types.ClusterSecurityGroup + var mv types.ClusterSecurityGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterSecurityGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentClusterSecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16434,7 +16494,7 @@ func awsAwsquery_deserializeDocumentClusterSnapshotAlreadyExistsFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16482,7 +16542,7 @@ func awsAwsquery_deserializeDocumentClusterSnapshotCopyStatus(v **types.ClusterS } if val != nil { xtv := string(val) - sv.DestinationRegion = &xtv + sv.DestinationRegion = ptr.String(xtv) } case strings.EqualFold("ManualSnapshotRetentionPeriod", t.Name.Local): @@ -16499,7 +16559,7 @@ func awsAwsquery_deserializeDocumentClusterSnapshotCopyStatus(v **types.ClusterS if err != nil { return err } - sv.ManualSnapshotRetentionPeriod = ptr.Int32(int32(i64)) + sv.ManualSnapshotRetentionPeriod = int32(i64) } case strings.EqualFold("RetentionPeriod", t.Name.Local): @@ -16516,7 +16576,7 @@ func awsAwsquery_deserializeDocumentClusterSnapshotCopyStatus(v **types.ClusterS if err != nil { return err } - sv.RetentionPeriod = &i64 + sv.RetentionPeriod = i64 } case strings.EqualFold("SnapshotCopyGrantName", t.Name.Local): @@ -16532,7 +16592,7 @@ func awsAwsquery_deserializeDocumentClusterSnapshotCopyStatus(v **types.ClusterS } if val != nil { xtv := string(val) - sv.SnapshotCopyGrantName = &xtv + sv.SnapshotCopyGrantName = ptr.String(xtv) } default: @@ -16580,7 +16640,7 @@ func awsAwsquery_deserializeDocumentClusterSnapshotNotFoundFault(v **types.Clust } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16628,7 +16688,7 @@ func awsAwsquery_deserializeDocumentClusterSnapshotQuotaExceededFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16676,7 +16736,7 @@ func awsAwsquery_deserializeDocumentClusterSubnetGroup(v **types.ClusterSubnetGr } if val != nil { xtv := string(val) - sv.ClusterSubnetGroupName = &xtv + sv.ClusterSubnetGroupName = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -16692,7 +16752,7 @@ func awsAwsquery_deserializeDocumentClusterSubnetGroup(v **types.ClusterSubnetGr } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("SubnetGroupStatus", t.Name.Local): @@ -16708,7 +16768,7 @@ func awsAwsquery_deserializeDocumentClusterSubnetGroup(v **types.ClusterSubnetGr } if val != nil { xtv := string(val) - sv.SubnetGroupStatus = &xtv + sv.SubnetGroupStatus = ptr.String(xtv) } case strings.EqualFold("Subnets", t.Name.Local): @@ -16736,7 +16796,7 @@ func awsAwsquery_deserializeDocumentClusterSubnetGroup(v **types.ClusterSubnetGr } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -16784,7 +16844,7 @@ func awsAwsquery_deserializeDocumentClusterSubnetGroupAlreadyExistsFault(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16832,7 +16892,7 @@ func awsAwsquery_deserializeDocumentClusterSubnetGroupNotFoundFault(v **types.Cl } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16880,7 +16940,7 @@ func awsAwsquery_deserializeDocumentClusterSubnetGroupQuotaExceededFault(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16893,13 +16953,13 @@ func awsAwsquery_deserializeDocumentClusterSubnetGroupQuotaExceededFault(v **typ return nil } -func awsAwsquery_deserializeDocumentClusterSubnetGroups(v *[]*types.ClusterSubnetGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClusterSubnetGroups(v *[]types.ClusterSubnetGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClusterSubnetGroup + var sv []types.ClusterSubnetGroup if *v == nil { - sv = make([]*types.ClusterSubnetGroup, 0) + sv = make([]types.ClusterSubnetGroup, 0) } else { sv = *v } @@ -16915,11 +16975,13 @@ func awsAwsquery_deserializeDocumentClusterSubnetGroups(v *[]*types.ClusterSubne } for { if strings.EqualFold("ClusterSubnetGroup", t.Name.Local) { - var col *types.ClusterSubnetGroup + var col types.ClusterSubnetGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterSubnetGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentClusterSubnetGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16932,23 +16994,25 @@ func awsAwsquery_deserializeDocumentClusterSubnetGroups(v *[]*types.ClusterSubne return nil } -func awsAwsquery_deserializeDocumentClusterSubnetGroupsUnwrapped(v *[]*types.ClusterSubnetGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClusterSubnetGroup +func awsAwsquery_deserializeDocumentClusterSubnetGroupsUnwrapped(v *[]types.ClusterSubnetGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.ClusterSubnetGroup if *v == nil { - sv = make([]*types.ClusterSubnetGroup, 0) + sv = make([]types.ClusterSubnetGroup, 0) } else { sv = *v } switch { default: - var mv *types.ClusterSubnetGroup + var mv types.ClusterSubnetGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterSubnetGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentClusterSubnetGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16989,7 +17053,7 @@ func awsAwsquery_deserializeDocumentClusterSubnetQuotaExceededFault(v **types.Cl } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17037,7 +17101,7 @@ func awsAwsquery_deserializeDocumentClusterVersion(v **types.ClusterVersion, dec } if val != nil { xtv := string(val) - sv.ClusterParameterGroupFamily = &xtv + sv.ClusterParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("ClusterVersion", t.Name.Local): @@ -17053,7 +17117,7 @@ func awsAwsquery_deserializeDocumentClusterVersion(v **types.ClusterVersion, dec } if val != nil { xtv := string(val) - sv.ClusterVersion = &xtv + sv.ClusterVersion = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -17069,7 +17133,7 @@ func awsAwsquery_deserializeDocumentClusterVersion(v **types.ClusterVersion, dec } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } default: @@ -17082,13 +17146,13 @@ func awsAwsquery_deserializeDocumentClusterVersion(v **types.ClusterVersion, dec return nil } -func awsAwsquery_deserializeDocumentClusterVersionList(v *[]*types.ClusterVersion, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentClusterVersionList(v *[]types.ClusterVersion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClusterVersion + var sv []types.ClusterVersion if *v == nil { - sv = make([]*types.ClusterVersion, 0) + sv = make([]types.ClusterVersion, 0) } else { sv = *v } @@ -17104,11 +17168,13 @@ func awsAwsquery_deserializeDocumentClusterVersionList(v *[]*types.ClusterVersio } for { if strings.EqualFold("ClusterVersion", t.Name.Local) { - var col *types.ClusterVersion + var col types.ClusterVersion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterVersion(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentClusterVersion(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17121,23 +17187,25 @@ func awsAwsquery_deserializeDocumentClusterVersionList(v *[]*types.ClusterVersio return nil } -func awsAwsquery_deserializeDocumentClusterVersionListUnwrapped(v *[]*types.ClusterVersion, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClusterVersion +func awsAwsquery_deserializeDocumentClusterVersionListUnwrapped(v *[]types.ClusterVersion, decoder smithyxml.NodeDecoder) error { + var sv []types.ClusterVersion if *v == nil { - sv = make([]*types.ClusterVersion, 0) + sv = make([]types.ClusterVersion, 0) } else { sv = *v } switch { default: - var mv *types.ClusterVersion + var mv types.ClusterVersion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterVersion(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentClusterVersion(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17178,7 +17246,7 @@ func awsAwsquery_deserializeDocumentCopyToRegionDisabledFault(v **types.CopyToRe } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17227,7 +17295,7 @@ func awsAwsquery_deserializeDocumentDataTransferProgress(v **types.DataTransferP if err != nil { return err } - sv.CurrentRateInMegaBytesPerSecond = &f64 + sv.CurrentRateInMegaBytesPerSecond = ptr.Float64(f64) } case strings.EqualFold("DataTransferredInMegaBytes", t.Name.Local): @@ -17244,7 +17312,7 @@ func awsAwsquery_deserializeDocumentDataTransferProgress(v **types.DataTransferP if err != nil { return err } - sv.DataTransferredInMegaBytes = &i64 + sv.DataTransferredInMegaBytes = i64 } case strings.EqualFold("ElapsedTimeInSeconds", t.Name.Local): @@ -17261,7 +17329,7 @@ func awsAwsquery_deserializeDocumentDataTransferProgress(v **types.DataTransferP if err != nil { return err } - sv.ElapsedTimeInSeconds = &i64 + sv.ElapsedTimeInSeconds = ptr.Int64(i64) } case strings.EqualFold("EstimatedTimeToCompletionInSeconds", t.Name.Local): @@ -17278,7 +17346,7 @@ func awsAwsquery_deserializeDocumentDataTransferProgress(v **types.DataTransferP if err != nil { return err } - sv.EstimatedTimeToCompletionInSeconds = &i64 + sv.EstimatedTimeToCompletionInSeconds = ptr.Int64(i64) } case strings.EqualFold("Status", t.Name.Local): @@ -17294,7 +17362,7 @@ func awsAwsquery_deserializeDocumentDataTransferProgress(v **types.DataTransferP } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("TotalDataInMegaBytes", t.Name.Local): @@ -17311,7 +17379,7 @@ func awsAwsquery_deserializeDocumentDataTransferProgress(v **types.DataTransferP if err != nil { return err } - sv.TotalDataInMegaBytes = &i64 + sv.TotalDataInMegaBytes = i64 } default: @@ -17359,7 +17427,7 @@ func awsAwsquery_deserializeDocumentDefaultClusterParameters(v **types.DefaultCl } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ParameterGroupFamily", t.Name.Local): @@ -17375,7 +17443,7 @@ func awsAwsquery_deserializeDocumentDefaultClusterParameters(v **types.DefaultCl } if val != nil { xtv := string(val) - sv.ParameterGroupFamily = &xtv + sv.ParameterGroupFamily = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): @@ -17430,7 +17498,7 @@ func awsAwsquery_deserializeDocumentDeferredMaintenanceWindow(v **types.Deferred if err != nil { return err } - sv.DeferMaintenanceEndTime = &t + sv.DeferMaintenanceEndTime = ptr.Time(t) } case strings.EqualFold("DeferMaintenanceIdentifier", t.Name.Local): @@ -17446,7 +17514,7 @@ func awsAwsquery_deserializeDocumentDeferredMaintenanceWindow(v **types.Deferred } if val != nil { xtv := string(val) - sv.DeferMaintenanceIdentifier = &xtv + sv.DeferMaintenanceIdentifier = ptr.String(xtv) } case strings.EqualFold("DeferMaintenanceStartTime", t.Name.Local): @@ -17463,7 +17531,7 @@ func awsAwsquery_deserializeDocumentDeferredMaintenanceWindow(v **types.Deferred if err != nil { return err } - sv.DeferMaintenanceStartTime = &t + sv.DeferMaintenanceStartTime = ptr.Time(t) } default: @@ -17476,13 +17544,13 @@ func awsAwsquery_deserializeDocumentDeferredMaintenanceWindow(v **types.Deferred return nil } -func awsAwsquery_deserializeDocumentDeferredMaintenanceWindowsList(v *[]*types.DeferredMaintenanceWindow, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDeferredMaintenanceWindowsList(v *[]types.DeferredMaintenanceWindow, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DeferredMaintenanceWindow + var sv []types.DeferredMaintenanceWindow if *v == nil { - sv = make([]*types.DeferredMaintenanceWindow, 0) + sv = make([]types.DeferredMaintenanceWindow, 0) } else { sv = *v } @@ -17498,11 +17566,13 @@ func awsAwsquery_deserializeDocumentDeferredMaintenanceWindowsList(v *[]*types.D } for { if strings.EqualFold("DeferredMaintenanceWindow", t.Name.Local) { - var col *types.DeferredMaintenanceWindow + var col types.DeferredMaintenanceWindow nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDeferredMaintenanceWindow(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDeferredMaintenanceWindow(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17515,23 +17585,25 @@ func awsAwsquery_deserializeDocumentDeferredMaintenanceWindowsList(v *[]*types.D return nil } -func awsAwsquery_deserializeDocumentDeferredMaintenanceWindowsListUnwrapped(v *[]*types.DeferredMaintenanceWindow, decoder smithyxml.NodeDecoder) error { - var sv []*types.DeferredMaintenanceWindow +func awsAwsquery_deserializeDocumentDeferredMaintenanceWindowsListUnwrapped(v *[]types.DeferredMaintenanceWindow, decoder smithyxml.NodeDecoder) error { + var sv []types.DeferredMaintenanceWindow if *v == nil { - sv = make([]*types.DeferredMaintenanceWindow, 0) + sv = make([]types.DeferredMaintenanceWindow, 0) } else { sv = *v } switch { default: - var mv *types.DeferredMaintenanceWindow + var mv types.DeferredMaintenanceWindow t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDeferredMaintenanceWindow(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDeferredMaintenanceWindow(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17572,7 +17644,7 @@ func awsAwsquery_deserializeDocumentDependentServiceRequestThrottlingFault(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17620,7 +17692,7 @@ func awsAwsquery_deserializeDocumentDependentServiceUnavailableFault(v **types.D } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -17668,7 +17740,7 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, } if val != nil { xtv := string(val) - sv.EC2SecurityGroupName = &xtv + sv.EC2SecurityGroupName = ptr.String(xtv) } case strings.EqualFold("EC2SecurityGroupOwnerId", t.Name.Local): @@ -17684,7 +17756,7 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, } if val != nil { xtv := string(val) - sv.EC2SecurityGroupOwnerId = &xtv + sv.EC2SecurityGroupOwnerId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -17700,7 +17772,7 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -17719,13 +17791,13 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroup(v **types.EC2SecurityGroup, return nil } -func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]*types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EC2SecurityGroup + var sv []types.EC2SecurityGroup if *v == nil { - sv = make([]*types.EC2SecurityGroup, 0) + sv = make([]types.EC2SecurityGroup, 0) } else { sv = *v } @@ -17741,11 +17813,13 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]*types.EC2Security } for { if strings.EqualFold("EC2SecurityGroup", t.Name.Local) { - var col *types.EC2SecurityGroup + var col types.EC2SecurityGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17758,23 +17832,25 @@ func awsAwsquery_deserializeDocumentEC2SecurityGroupList(v *[]*types.EC2Security return nil } -func awsAwsquery_deserializeDocumentEC2SecurityGroupListUnwrapped(v *[]*types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.EC2SecurityGroup +func awsAwsquery_deserializeDocumentEC2SecurityGroupListUnwrapped(v *[]types.EC2SecurityGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.EC2SecurityGroup if *v == nil { - sv = make([]*types.EC2SecurityGroup, 0) + sv = make([]types.EC2SecurityGroup, 0) } else { sv = *v } switch { default: - var mv *types.EC2SecurityGroup + var mv types.EC2SecurityGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEC2SecurityGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17815,7 +17891,7 @@ func awsAwsquery_deserializeDocumentElasticIpStatus(v **types.ElasticIpStatus, d } if val != nil { xtv := string(val) - sv.ElasticIp = &xtv + sv.ElasticIp = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -17831,7 +17907,7 @@ func awsAwsquery_deserializeDocumentElasticIpStatus(v **types.ElasticIpStatus, d } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -17844,13 +17920,13 @@ func awsAwsquery_deserializeDocumentElasticIpStatus(v **types.ElasticIpStatus, d return nil } -func awsAwsquery_deserializeDocumentEligibleTracksToUpdateList(v *[]*types.UpdateTarget, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEligibleTracksToUpdateList(v *[]types.UpdateTarget, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UpdateTarget + var sv []types.UpdateTarget if *v == nil { - sv = make([]*types.UpdateTarget, 0) + sv = make([]types.UpdateTarget, 0) } else { sv = *v } @@ -17866,11 +17942,13 @@ func awsAwsquery_deserializeDocumentEligibleTracksToUpdateList(v *[]*types.Updat } for { if strings.EqualFold("UpdateTarget", t.Name.Local) { - var col *types.UpdateTarget + var col types.UpdateTarget nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUpdateTarget(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentUpdateTarget(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17883,23 +17961,25 @@ func awsAwsquery_deserializeDocumentEligibleTracksToUpdateList(v *[]*types.Updat return nil } -func awsAwsquery_deserializeDocumentEligibleTracksToUpdateListUnwrapped(v *[]*types.UpdateTarget, decoder smithyxml.NodeDecoder) error { - var sv []*types.UpdateTarget +func awsAwsquery_deserializeDocumentEligibleTracksToUpdateListUnwrapped(v *[]types.UpdateTarget, decoder smithyxml.NodeDecoder) error { + var sv []types.UpdateTarget if *v == nil { - sv = make([]*types.UpdateTarget, 0) + sv = make([]types.UpdateTarget, 0) } else { sv = *v } switch { default: - var mv *types.UpdateTarget + var mv types.UpdateTarget t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUpdateTarget(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentUpdateTarget(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17940,7 +18020,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx } if val != nil { xtv := string(val) - sv.Address = &xtv + sv.Address = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -17957,7 +18037,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -18006,7 +18086,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod if err != nil { return err } - sv.Date = &t + sv.Date = ptr.Time(t) } case strings.EqualFold("EventCategories", t.Name.Local): @@ -18028,7 +18108,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.EventId = &xtv + sv.EventId = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -18044,7 +18124,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("Severity", t.Name.Local): @@ -18060,7 +18140,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.Severity = &xtv + sv.Severity = ptr.String(xtv) } case strings.EqualFold("SourceIdentifier", t.Name.Local): @@ -18076,7 +18156,7 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.SourceIdentifier = &xtv + sv.SourceIdentifier = ptr.String(xtv) } case strings.EqualFold("SourceType", t.Name.Local): @@ -18102,13 +18182,13 @@ func awsAwsquery_deserializeDocumentEvent(v **types.Event, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -18126,20 +18206,17 @@ func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]*string, decoder sm decoder = memberDecoder for { if strings.EqualFold("EventCategory", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -18152,17 +18229,17 @@ func awsAwsquery_deserializeDocumentEventCategoriesList(v *[]*string, decoder sm return nil } -func awsAwsquery_deserializeDocumentEventCategoriesListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentEventCategoriesListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -18170,14 +18247,11 @@ func awsAwsquery_deserializeDocumentEventCategoriesListUnwrapped(v *[]*string, d return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -18225,7 +18299,7 @@ func awsAwsquery_deserializeDocumentEventCategoriesMap(v **types.EventCategories } if val != nil { xtv := string(val) - sv.SourceType = &xtv + sv.SourceType = ptr.String(xtv) } default: @@ -18238,13 +18312,13 @@ func awsAwsquery_deserializeDocumentEventCategoriesMap(v **types.EventCategories return nil } -func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]*types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EventCategoriesMap + var sv []types.EventCategoriesMap if *v == nil { - sv = make([]*types.EventCategoriesMap, 0) + sv = make([]types.EventCategoriesMap, 0) } else { sv = *v } @@ -18260,11 +18334,13 @@ func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]*types.EventCate } for { if strings.EqualFold("EventCategoriesMap", t.Name.Local) { - var col *types.EventCategoriesMap + var col types.EventCategoriesMap nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18277,23 +18353,25 @@ func awsAwsquery_deserializeDocumentEventCategoriesMapList(v *[]*types.EventCate return nil } -func awsAwsquery_deserializeDocumentEventCategoriesMapListUnwrapped(v *[]*types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { - var sv []*types.EventCategoriesMap +func awsAwsquery_deserializeDocumentEventCategoriesMapListUnwrapped(v *[]types.EventCategoriesMap, decoder smithyxml.NodeDecoder) error { + var sv []types.EventCategoriesMap if *v == nil { - sv = make([]*types.EventCategoriesMap, 0) + sv = make([]types.EventCategoriesMap, 0) } else { sv = *v } switch { default: - var mv *types.EventCategoriesMap + var mv types.EventCategoriesMap t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEventCategoriesMap(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18340,7 +18418,7 @@ func awsAwsquery_deserializeDocumentEventInfoMap(v **types.EventInfoMap, decoder } if val != nil { xtv := string(val) - sv.EventDescription = &xtv + sv.EventDescription = ptr.String(xtv) } case strings.EqualFold("EventId", t.Name.Local): @@ -18356,7 +18434,7 @@ func awsAwsquery_deserializeDocumentEventInfoMap(v **types.EventInfoMap, decoder } if val != nil { xtv := string(val) - sv.EventId = &xtv + sv.EventId = ptr.String(xtv) } case strings.EqualFold("Severity", t.Name.Local): @@ -18372,7 +18450,7 @@ func awsAwsquery_deserializeDocumentEventInfoMap(v **types.EventInfoMap, decoder } if val != nil { xtv := string(val) - sv.Severity = &xtv + sv.Severity = ptr.String(xtv) } default: @@ -18385,13 +18463,13 @@ func awsAwsquery_deserializeDocumentEventInfoMap(v **types.EventInfoMap, decoder return nil } -func awsAwsquery_deserializeDocumentEventInfoMapList(v *[]*types.EventInfoMap, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventInfoMapList(v *[]types.EventInfoMap, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EventInfoMap + var sv []types.EventInfoMap if *v == nil { - sv = make([]*types.EventInfoMap, 0) + sv = make([]types.EventInfoMap, 0) } else { sv = *v } @@ -18407,11 +18485,13 @@ func awsAwsquery_deserializeDocumentEventInfoMapList(v *[]*types.EventInfoMap, d } for { if strings.EqualFold("EventInfoMap", t.Name.Local) { - var col *types.EventInfoMap + var col types.EventInfoMap nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventInfoMap(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEventInfoMap(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18424,35 +18504,37 @@ func awsAwsquery_deserializeDocumentEventInfoMapList(v *[]*types.EventInfoMap, d return nil } -func awsAwsquery_deserializeDocumentEventInfoMapListUnwrapped(v *[]*types.EventInfoMap, decoder smithyxml.NodeDecoder) error { - var sv []*types.EventInfoMap +func awsAwsquery_deserializeDocumentEventInfoMapListUnwrapped(v *[]types.EventInfoMap, decoder smithyxml.NodeDecoder) error { + var sv []types.EventInfoMap if *v == nil { - sv = make([]*types.EventInfoMap, 0) + sv = make([]types.EventInfoMap, 0) } else { sv = *v } switch { default: - var mv *types.EventInfoMap + var mv types.EventInfoMap t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventInfoMap(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEventInfoMap(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventList(v *[]types.Event, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Event + var sv []types.Event if *v == nil { - sv = make([]*types.Event, 0) + sv = make([]types.Event, 0) } else { sv = *v } @@ -18468,11 +18550,13 @@ func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyx } for { if strings.EqualFold("Event", t.Name.Local) { - var col *types.Event + var col types.Event nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEvent(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18485,23 +18569,25 @@ func awsAwsquery_deserializeDocumentEventList(v *[]*types.Event, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentEventListUnwrapped(v *[]*types.Event, decoder smithyxml.NodeDecoder) error { - var sv []*types.Event +func awsAwsquery_deserializeDocumentEventListUnwrapped(v *[]types.Event, decoder smithyxml.NodeDecoder) error { + var sv []types.Event if *v == nil { - sv = make([]*types.Event, 0) + sv = make([]types.Event, 0) } else { sv = *v } switch { default: - var mv *types.Event + var mv types.Event t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEvent(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEvent(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18542,7 +18628,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.CustomerAwsId = &xtv + sv.CustomerAwsId = ptr.String(xtv) } case strings.EqualFold("CustSubscriptionId", t.Name.Local): @@ -18558,7 +18644,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.CustSubscriptionId = &xtv + sv.CustSubscriptionId = ptr.String(xtv) } case strings.EqualFold("Enabled", t.Name.Local): @@ -18574,7 +18660,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } case strings.EqualFold("EventCategoriesList", t.Name.Local): @@ -18596,7 +18682,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.Severity = &xtv + sv.Severity = ptr.String(xtv) } case strings.EqualFold("SnsTopicArn", t.Name.Local): @@ -18612,7 +18698,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.SnsTopicArn = &xtv + sv.SnsTopicArn = ptr.String(xtv) } case strings.EqualFold("SourceIdsList", t.Name.Local): @@ -18634,7 +18720,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.SourceType = &xtv + sv.SourceType = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -18650,7 +18736,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("SubscriptionCreationTime", t.Name.Local): @@ -18667,7 +18753,7 @@ func awsAwsquery_deserializeDocumentEventSubscription(v **types.EventSubscriptio if err != nil { return err } - sv.SubscriptionCreationTime = &t + sv.SubscriptionCreationTime = ptr.Time(t) } case strings.EqualFold("Tags", t.Name.Local): @@ -18721,7 +18807,7 @@ func awsAwsquery_deserializeDocumentEventSubscriptionQuotaExceededFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18734,13 +18820,13 @@ func awsAwsquery_deserializeDocumentEventSubscriptionQuotaExceededFault(v **type return nil } -func awsAwsquery_deserializeDocumentEventSubscriptionsList(v *[]*types.EventSubscription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventSubscriptionsList(v *[]types.EventSubscription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EventSubscription + var sv []types.EventSubscription if *v == nil { - sv = make([]*types.EventSubscription, 0) + sv = make([]types.EventSubscription, 0) } else { sv = *v } @@ -18756,11 +18842,13 @@ func awsAwsquery_deserializeDocumentEventSubscriptionsList(v *[]*types.EventSubs } for { if strings.EqualFold("EventSubscription", t.Name.Local) { - var col *types.EventSubscription + var col types.EventSubscription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventSubscription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEventSubscription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18773,23 +18861,25 @@ func awsAwsquery_deserializeDocumentEventSubscriptionsList(v *[]*types.EventSubs return nil } -func awsAwsquery_deserializeDocumentEventSubscriptionsListUnwrapped(v *[]*types.EventSubscription, decoder smithyxml.NodeDecoder) error { - var sv []*types.EventSubscription +func awsAwsquery_deserializeDocumentEventSubscriptionsListUnwrapped(v *[]types.EventSubscription, decoder smithyxml.NodeDecoder) error { + var sv []types.EventSubscription if *v == nil { - sv = make([]*types.EventSubscription, 0) + sv = make([]types.EventSubscription, 0) } else { sv = *v } switch { default: - var mv *types.EventSubscription + var mv types.EventSubscription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventSubscription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEventSubscription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18830,7 +18920,7 @@ func awsAwsquery_deserializeDocumentHsmClientCertificate(v **types.HsmClientCert } if val != nil { xtv := string(val) - sv.HsmClientCertificateIdentifier = &xtv + sv.HsmClientCertificateIdentifier = ptr.String(xtv) } case strings.EqualFold("HsmClientCertificatePublicKey", t.Name.Local): @@ -18846,7 +18936,7 @@ func awsAwsquery_deserializeDocumentHsmClientCertificate(v **types.HsmClientCert } if val != nil { xtv := string(val) - sv.HsmClientCertificatePublicKey = &xtv + sv.HsmClientCertificatePublicKey = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -18900,7 +18990,7 @@ func awsAwsquery_deserializeDocumentHsmClientCertificateAlreadyExistsFault(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -18913,13 +19003,13 @@ func awsAwsquery_deserializeDocumentHsmClientCertificateAlreadyExistsFault(v **t return nil } -func awsAwsquery_deserializeDocumentHsmClientCertificateList(v *[]*types.HsmClientCertificate, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentHsmClientCertificateList(v *[]types.HsmClientCertificate, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.HsmClientCertificate + var sv []types.HsmClientCertificate if *v == nil { - sv = make([]*types.HsmClientCertificate, 0) + sv = make([]types.HsmClientCertificate, 0) } else { sv = *v } @@ -18935,11 +19025,13 @@ func awsAwsquery_deserializeDocumentHsmClientCertificateList(v *[]*types.HsmClie } for { if strings.EqualFold("HsmClientCertificate", t.Name.Local) { - var col *types.HsmClientCertificate + var col types.HsmClientCertificate nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentHsmClientCertificate(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentHsmClientCertificate(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18952,23 +19044,25 @@ func awsAwsquery_deserializeDocumentHsmClientCertificateList(v *[]*types.HsmClie return nil } -func awsAwsquery_deserializeDocumentHsmClientCertificateListUnwrapped(v *[]*types.HsmClientCertificate, decoder smithyxml.NodeDecoder) error { - var sv []*types.HsmClientCertificate +func awsAwsquery_deserializeDocumentHsmClientCertificateListUnwrapped(v *[]types.HsmClientCertificate, decoder smithyxml.NodeDecoder) error { + var sv []types.HsmClientCertificate if *v == nil { - sv = make([]*types.HsmClientCertificate, 0) + sv = make([]types.HsmClientCertificate, 0) } else { sv = *v } switch { default: - var mv *types.HsmClientCertificate + var mv types.HsmClientCertificate t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentHsmClientCertificate(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentHsmClientCertificate(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19009,7 +19103,7 @@ func awsAwsquery_deserializeDocumentHsmClientCertificateNotFoundFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19057,7 +19151,7 @@ func awsAwsquery_deserializeDocumentHsmClientCertificateQuotaExceededFault(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19105,7 +19199,7 @@ func awsAwsquery_deserializeDocumentHsmConfiguration(v **types.HsmConfiguration, } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("HsmConfigurationIdentifier", t.Name.Local): @@ -19121,7 +19215,7 @@ func awsAwsquery_deserializeDocumentHsmConfiguration(v **types.HsmConfiguration, } if val != nil { xtv := string(val) - sv.HsmConfigurationIdentifier = &xtv + sv.HsmConfigurationIdentifier = ptr.String(xtv) } case strings.EqualFold("HsmIpAddress", t.Name.Local): @@ -19137,7 +19231,7 @@ func awsAwsquery_deserializeDocumentHsmConfiguration(v **types.HsmConfiguration, } if val != nil { xtv := string(val) - sv.HsmIpAddress = &xtv + sv.HsmIpAddress = ptr.String(xtv) } case strings.EqualFold("HsmPartitionName", t.Name.Local): @@ -19153,7 +19247,7 @@ func awsAwsquery_deserializeDocumentHsmConfiguration(v **types.HsmConfiguration, } if val != nil { xtv := string(val) - sv.HsmPartitionName = &xtv + sv.HsmPartitionName = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -19207,7 +19301,7 @@ func awsAwsquery_deserializeDocumentHsmConfigurationAlreadyExistsFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19220,13 +19314,13 @@ func awsAwsquery_deserializeDocumentHsmConfigurationAlreadyExistsFault(v **types return nil } -func awsAwsquery_deserializeDocumentHsmConfigurationList(v *[]*types.HsmConfiguration, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentHsmConfigurationList(v *[]types.HsmConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.HsmConfiguration + var sv []types.HsmConfiguration if *v == nil { - sv = make([]*types.HsmConfiguration, 0) + sv = make([]types.HsmConfiguration, 0) } else { sv = *v } @@ -19242,11 +19336,13 @@ func awsAwsquery_deserializeDocumentHsmConfigurationList(v *[]*types.HsmConfigur } for { if strings.EqualFold("HsmConfiguration", t.Name.Local) { - var col *types.HsmConfiguration + var col types.HsmConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentHsmConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentHsmConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -19259,23 +19355,25 @@ func awsAwsquery_deserializeDocumentHsmConfigurationList(v *[]*types.HsmConfigur return nil } -func awsAwsquery_deserializeDocumentHsmConfigurationListUnwrapped(v *[]*types.HsmConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.HsmConfiguration +func awsAwsquery_deserializeDocumentHsmConfigurationListUnwrapped(v *[]types.HsmConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.HsmConfiguration if *v == nil { - sv = make([]*types.HsmConfiguration, 0) + sv = make([]types.HsmConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.HsmConfiguration + var mv types.HsmConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentHsmConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentHsmConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -19316,7 +19414,7 @@ func awsAwsquery_deserializeDocumentHsmConfigurationNotFoundFault(v **types.HsmC } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19364,7 +19462,7 @@ func awsAwsquery_deserializeDocumentHsmConfigurationQuotaExceededFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19412,7 +19510,7 @@ func awsAwsquery_deserializeDocumentHsmStatus(v **types.HsmStatus, decoder smith } if val != nil { xtv := string(val) - sv.HsmClientCertificateIdentifier = &xtv + sv.HsmClientCertificateIdentifier = ptr.String(xtv) } case strings.EqualFold("HsmConfigurationIdentifier", t.Name.Local): @@ -19428,7 +19526,7 @@ func awsAwsquery_deserializeDocumentHsmStatus(v **types.HsmStatus, decoder smith } if val != nil { xtv := string(val) - sv.HsmConfigurationIdentifier = &xtv + sv.HsmConfigurationIdentifier = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -19444,7 +19542,7 @@ func awsAwsquery_deserializeDocumentHsmStatus(v **types.HsmStatus, decoder smith } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -19457,13 +19555,13 @@ func awsAwsquery_deserializeDocumentHsmStatus(v **types.HsmStatus, decoder smith return nil } -func awsAwsquery_deserializeDocumentImportTablesCompleted(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentImportTablesCompleted(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -19481,20 +19579,17 @@ func awsAwsquery_deserializeDocumentImportTablesCompleted(v *[]*string, decoder decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -19507,17 +19602,17 @@ func awsAwsquery_deserializeDocumentImportTablesCompleted(v *[]*string, decoder return nil } -func awsAwsquery_deserializeDocumentImportTablesCompletedUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentImportTablesCompletedUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -19525,27 +19620,24 @@ func awsAwsquery_deserializeDocumentImportTablesCompletedUnwrapped(v *[]*string, return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentImportTablesInProgress(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentImportTablesInProgress(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -19563,20 +19655,17 @@ func awsAwsquery_deserializeDocumentImportTablesInProgress(v *[]*string, decoder decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -19589,17 +19678,17 @@ func awsAwsquery_deserializeDocumentImportTablesInProgress(v *[]*string, decoder return nil } -func awsAwsquery_deserializeDocumentImportTablesInProgressUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentImportTablesInProgressUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -19607,27 +19696,24 @@ func awsAwsquery_deserializeDocumentImportTablesInProgressUnwrapped(v *[]*string return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentImportTablesNotStarted(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentImportTablesNotStarted(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -19645,20 +19731,17 @@ func awsAwsquery_deserializeDocumentImportTablesNotStarted(v *[]*string, decoder decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -19671,17 +19754,17 @@ func awsAwsquery_deserializeDocumentImportTablesNotStarted(v *[]*string, decoder return nil } -func awsAwsquery_deserializeDocumentImportTablesNotStartedUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentImportTablesNotStartedUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -19689,14 +19772,11 @@ func awsAwsquery_deserializeDocumentImportTablesNotStartedUnwrapped(v *[]*string return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -19738,7 +19818,7 @@ func awsAwsquery_deserializeDocumentIncompatibleOrderableOptions(v **types.Incom } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19786,7 +19866,7 @@ func awsAwsquery_deserializeDocumentInProgressTableRestoreQuotaExceededFault(v * } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19834,7 +19914,7 @@ func awsAwsquery_deserializeDocumentInsufficientClusterCapacityFault(v **types.I } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19882,7 +19962,7 @@ func awsAwsquery_deserializeDocumentInsufficientS3BucketPolicyFault(v **types.In } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19930,7 +20010,7 @@ func awsAwsquery_deserializeDocumentInvalidClusterParameterGroupStateFault(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -19978,7 +20058,7 @@ func awsAwsquery_deserializeDocumentInvalidClusterSecurityGroupStateFault(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20026,7 +20106,7 @@ func awsAwsquery_deserializeDocumentInvalidClusterSnapshotScheduleStateFault(v * } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20074,7 +20154,7 @@ func awsAwsquery_deserializeDocumentInvalidClusterSnapshotStateFault(v **types.I } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20122,7 +20202,7 @@ func awsAwsquery_deserializeDocumentInvalidClusterStateFault(v **types.InvalidCl } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20170,7 +20250,7 @@ func awsAwsquery_deserializeDocumentInvalidClusterSubnetGroupStateFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20218,7 +20298,7 @@ func awsAwsquery_deserializeDocumentInvalidClusterSubnetStateFault(v **types.Inv } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20266,7 +20346,7 @@ func awsAwsquery_deserializeDocumentInvalidClusterTrackFault(v **types.InvalidCl } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20314,7 +20394,7 @@ func awsAwsquery_deserializeDocumentInvalidElasticIpFault(v **types.InvalidElast } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20362,7 +20442,7 @@ func awsAwsquery_deserializeDocumentInvalidHsmClientCertificateStateFault(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20410,7 +20490,7 @@ func awsAwsquery_deserializeDocumentInvalidHsmConfigurationStateFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20458,7 +20538,7 @@ func awsAwsquery_deserializeDocumentInvalidReservedNodeStateFault(v **types.Inva } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20506,7 +20586,7 @@ func awsAwsquery_deserializeDocumentInvalidRestoreFault(v **types.InvalidRestore } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20554,7 +20634,7 @@ func awsAwsquery_deserializeDocumentInvalidRetentionPeriodFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20602,7 +20682,7 @@ func awsAwsquery_deserializeDocumentInvalidS3BucketNameFault(v **types.InvalidS3 } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20650,7 +20730,7 @@ func awsAwsquery_deserializeDocumentInvalidS3KeyPrefixFault(v **types.InvalidS3K } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20698,7 +20778,7 @@ func awsAwsquery_deserializeDocumentInvalidScheduledActionFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20746,7 +20826,7 @@ func awsAwsquery_deserializeDocumentInvalidScheduleFault(v **types.InvalidSchedu } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20794,7 +20874,7 @@ func awsAwsquery_deserializeDocumentInvalidSnapshotCopyGrantStateFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20842,7 +20922,7 @@ func awsAwsquery_deserializeDocumentInvalidSubnet(v **types.InvalidSubnet, decod } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20890,7 +20970,7 @@ func awsAwsquery_deserializeDocumentInvalidSubscriptionStateFault(v **types.Inva } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20938,7 +21018,7 @@ func awsAwsquery_deserializeDocumentInvalidTableRestoreArgumentFault(v **types.I } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -20986,7 +21066,7 @@ func awsAwsquery_deserializeDocumentInvalidTagFault(v **types.InvalidTagFault, d } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21034,7 +21114,7 @@ func awsAwsquery_deserializeDocumentInvalidUsageLimitFault(v **types.InvalidUsag } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21082,7 +21162,7 @@ func awsAwsquery_deserializeDocumentInvalidVPCNetworkStateFault(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21130,7 +21210,7 @@ func awsAwsquery_deserializeDocumentIPRange(v **types.IPRange, decoder smithyxml } if val != nil { xtv := string(val) - sv.CIDRIP = &xtv + sv.CIDRIP = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -21146,7 +21226,7 @@ func awsAwsquery_deserializeDocumentIPRange(v **types.IPRange, decoder smithyxml } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -21165,13 +21245,13 @@ func awsAwsquery_deserializeDocumentIPRange(v **types.IPRange, decoder smithyxml return nil } -func awsAwsquery_deserializeDocumentIPRangeList(v *[]*types.IPRange, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentIPRangeList(v *[]types.IPRange, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.IPRange + var sv []types.IPRange if *v == nil { - sv = make([]*types.IPRange, 0) + sv = make([]types.IPRange, 0) } else { sv = *v } @@ -21187,11 +21267,13 @@ func awsAwsquery_deserializeDocumentIPRangeList(v *[]*types.IPRange, decoder smi } for { if strings.EqualFold("IPRange", t.Name.Local) { - var col *types.IPRange + var col types.IPRange nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentIPRange(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentIPRange(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21204,23 +21286,25 @@ func awsAwsquery_deserializeDocumentIPRangeList(v *[]*types.IPRange, decoder smi return nil } -func awsAwsquery_deserializeDocumentIPRangeListUnwrapped(v *[]*types.IPRange, decoder smithyxml.NodeDecoder) error { - var sv []*types.IPRange +func awsAwsquery_deserializeDocumentIPRangeListUnwrapped(v *[]types.IPRange, decoder smithyxml.NodeDecoder) error { + var sv []types.IPRange if *v == nil { - sv = make([]*types.IPRange, 0) + sv = make([]types.IPRange, 0) } else { sv = *v } switch { default: - var mv *types.IPRange + var mv types.IPRange t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentIPRange(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentIPRange(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -21261,7 +21345,7 @@ func awsAwsquery_deserializeDocumentLimitExceededFault(v **types.LimitExceededFa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21309,7 +21393,7 @@ func awsAwsquery_deserializeDocumentMaintenanceTrack(v **types.MaintenanceTrack, } if val != nil { xtv := string(val) - sv.DatabaseVersion = &xtv + sv.DatabaseVersion = ptr.String(xtv) } case strings.EqualFold("MaintenanceTrackName", t.Name.Local): @@ -21325,7 +21409,7 @@ func awsAwsquery_deserializeDocumentMaintenanceTrack(v **types.MaintenanceTrack, } if val != nil { xtv := string(val) - sv.MaintenanceTrackName = &xtv + sv.MaintenanceTrackName = ptr.String(xtv) } case strings.EqualFold("UpdateTargets", t.Name.Local): @@ -21380,7 +21464,7 @@ func awsAwsquery_deserializeDocumentNodeConfigurationOption(v **types.NodeConfig if err != nil { return err } - sv.EstimatedDiskUtilizationPercent = &f64 + sv.EstimatedDiskUtilizationPercent = ptr.Float64(f64) } case strings.EqualFold("Mode", t.Name.Local): @@ -21409,7 +21493,7 @@ func awsAwsquery_deserializeDocumentNodeConfigurationOption(v **types.NodeConfig } if val != nil { xtv := string(val) - sv.NodeType = &xtv + sv.NodeType = ptr.String(xtv) } case strings.EqualFold("NumberOfNodes", t.Name.Local): @@ -21426,7 +21510,7 @@ func awsAwsquery_deserializeDocumentNodeConfigurationOption(v **types.NodeConfig if err != nil { return err } - sv.NumberOfNodes = ptr.Int32(int32(i64)) + sv.NumberOfNodes = int32(i64) } default: @@ -21439,13 +21523,13 @@ func awsAwsquery_deserializeDocumentNodeConfigurationOption(v **types.NodeConfig return nil } -func awsAwsquery_deserializeDocumentNodeConfigurationOptionList(v *[]*types.NodeConfigurationOption, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNodeConfigurationOptionList(v *[]types.NodeConfigurationOption, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NodeConfigurationOption + var sv []types.NodeConfigurationOption if *v == nil { - sv = make([]*types.NodeConfigurationOption, 0) + sv = make([]types.NodeConfigurationOption, 0) } else { sv = *v } @@ -21461,11 +21545,13 @@ func awsAwsquery_deserializeDocumentNodeConfigurationOptionList(v *[]*types.Node } for { if strings.EqualFold("NodeConfigurationOption", t.Name.Local) { - var col *types.NodeConfigurationOption + var col types.NodeConfigurationOption nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeConfigurationOption(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentNodeConfigurationOption(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21478,23 +21564,25 @@ func awsAwsquery_deserializeDocumentNodeConfigurationOptionList(v *[]*types.Node return nil } -func awsAwsquery_deserializeDocumentNodeConfigurationOptionListUnwrapped(v *[]*types.NodeConfigurationOption, decoder smithyxml.NodeDecoder) error { - var sv []*types.NodeConfigurationOption +func awsAwsquery_deserializeDocumentNodeConfigurationOptionListUnwrapped(v *[]types.NodeConfigurationOption, decoder smithyxml.NodeDecoder) error { + var sv []types.NodeConfigurationOption if *v == nil { - sv = make([]*types.NodeConfigurationOption, 0) + sv = make([]types.NodeConfigurationOption, 0) } else { sv = *v } switch { default: - var mv *types.NodeConfigurationOption + var mv types.NodeConfigurationOption t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentNodeConfigurationOption(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentNodeConfigurationOption(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -21535,7 +21623,7 @@ func awsAwsquery_deserializeDocumentNumberOfNodesPerClusterLimitExceededFault(v } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21583,7 +21671,7 @@ func awsAwsquery_deserializeDocumentNumberOfNodesQuotaExceededFault(v **types.Nu } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -21637,7 +21725,7 @@ func awsAwsquery_deserializeDocumentOrderableClusterOption(v **types.OrderableCl } if val != nil { xtv := string(val) - sv.ClusterType = &xtv + sv.ClusterType = ptr.String(xtv) } case strings.EqualFold("ClusterVersion", t.Name.Local): @@ -21653,7 +21741,7 @@ func awsAwsquery_deserializeDocumentOrderableClusterOption(v **types.OrderableCl } if val != nil { xtv := string(val) - sv.ClusterVersion = &xtv + sv.ClusterVersion = ptr.String(xtv) } case strings.EqualFold("NodeType", t.Name.Local): @@ -21669,7 +21757,7 @@ func awsAwsquery_deserializeDocumentOrderableClusterOption(v **types.OrderableCl } if val != nil { xtv := string(val) - sv.NodeType = &xtv + sv.NodeType = ptr.String(xtv) } default: @@ -21682,13 +21770,13 @@ func awsAwsquery_deserializeDocumentOrderableClusterOption(v **types.OrderableCl return nil } -func awsAwsquery_deserializeDocumentOrderableClusterOptionsList(v *[]*types.OrderableClusterOption, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentOrderableClusterOptionsList(v *[]types.OrderableClusterOption, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OrderableClusterOption + var sv []types.OrderableClusterOption if *v == nil { - sv = make([]*types.OrderableClusterOption, 0) + sv = make([]types.OrderableClusterOption, 0) } else { sv = *v } @@ -21704,11 +21792,13 @@ func awsAwsquery_deserializeDocumentOrderableClusterOptionsList(v *[]*types.Orde } for { if strings.EqualFold("OrderableClusterOption", t.Name.Local) { - var col *types.OrderableClusterOption + var col types.OrderableClusterOption nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOrderableClusterOption(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentOrderableClusterOption(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21721,23 +21811,25 @@ func awsAwsquery_deserializeDocumentOrderableClusterOptionsList(v *[]*types.Orde return nil } -func awsAwsquery_deserializeDocumentOrderableClusterOptionsListUnwrapped(v *[]*types.OrderableClusterOption, decoder smithyxml.NodeDecoder) error { - var sv []*types.OrderableClusterOption +func awsAwsquery_deserializeDocumentOrderableClusterOptionsListUnwrapped(v *[]types.OrderableClusterOption, decoder smithyxml.NodeDecoder) error { + var sv []types.OrderableClusterOption if *v == nil { - sv = make([]*types.OrderableClusterOption, 0) + sv = make([]types.OrderableClusterOption, 0) } else { sv = *v } switch { default: - var mv *types.OrderableClusterOption + var mv types.OrderableClusterOption t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentOrderableClusterOption(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentOrderableClusterOption(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -21778,7 +21870,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.AllowedValues = &xtv + sv.AllowedValues = ptr.String(xtv) } case strings.EqualFold("ApplyType", t.Name.Local): @@ -21807,7 +21899,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.DataType = &xtv + sv.DataType = ptr.String(xtv) } case strings.EqualFold("Description", t.Name.Local): @@ -21823,7 +21915,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("IsModifiable", t.Name.Local): @@ -21839,7 +21931,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsModifiable = &xtv + sv.IsModifiable = xtv } case strings.EqualFold("MinimumEngineVersion", t.Name.Local): @@ -21855,7 +21947,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.MinimumEngineVersion = &xtv + sv.MinimumEngineVersion = ptr.String(xtv) } case strings.EqualFold("ParameterName", t.Name.Local): @@ -21871,7 +21963,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ParameterName = &xtv + sv.ParameterName = ptr.String(xtv) } case strings.EqualFold("ParameterValue", t.Name.Local): @@ -21887,7 +21979,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.ParameterValue = &xtv + sv.ParameterValue = ptr.String(xtv) } case strings.EqualFold("Source", t.Name.Local): @@ -21903,7 +21995,7 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith } if val != nil { xtv := string(val) - sv.Source = &xtv + sv.Source = ptr.String(xtv) } default: @@ -21916,13 +22008,13 @@ func awsAwsquery_deserializeDocumentParameter(v **types.Parameter, decoder smith return nil } -func awsAwsquery_deserializeDocumentParameterGroupList(v *[]*types.ClusterParameterGroup, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentParameterGroupList(v *[]types.ClusterParameterGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ClusterParameterGroup + var sv []types.ClusterParameterGroup if *v == nil { - sv = make([]*types.ClusterParameterGroup, 0) + sv = make([]types.ClusterParameterGroup, 0) } else { sv = *v } @@ -21938,11 +22030,13 @@ func awsAwsquery_deserializeDocumentParameterGroupList(v *[]*types.ClusterParame } for { if strings.EqualFold("ClusterParameterGroup", t.Name.Local) { - var col *types.ClusterParameterGroup + var col types.ClusterParameterGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterParameterGroup(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentClusterParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -21955,35 +22049,37 @@ func awsAwsquery_deserializeDocumentParameterGroupList(v *[]*types.ClusterParame return nil } -func awsAwsquery_deserializeDocumentParameterGroupListUnwrapped(v *[]*types.ClusterParameterGroup, decoder smithyxml.NodeDecoder) error { - var sv []*types.ClusterParameterGroup +func awsAwsquery_deserializeDocumentParameterGroupListUnwrapped(v *[]types.ClusterParameterGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.ClusterParameterGroup if *v == nil { - sv = make([]*types.ClusterParameterGroup, 0) + sv = make([]types.ClusterParameterGroup, 0) } else { sv = *v } switch { default: - var mv *types.ClusterParameterGroup + var mv types.ClusterParameterGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentClusterParameterGroup(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentClusterParameterGroup(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentParametersList(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Parameter + var sv []types.Parameter if *v == nil { - sv = make([]*types.Parameter, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } @@ -21999,11 +22095,13 @@ func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decode } for { if strings.EqualFold("Parameter", t.Name.Local) { - var col *types.Parameter + var col types.Parameter nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameter(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -22016,23 +22114,25 @@ func awsAwsquery_deserializeDocumentParametersList(v *[]*types.Parameter, decode return nil } -func awsAwsquery_deserializeDocumentParametersListUnwrapped(v *[]*types.Parameter, decoder smithyxml.NodeDecoder) error { - var sv []*types.Parameter +func awsAwsquery_deserializeDocumentParametersListUnwrapped(v *[]types.Parameter, decoder smithyxml.NodeDecoder) error { + var sv []types.Parameter if *v == nil { - sv = make([]*types.Parameter, 0) + sv = make([]types.Parameter, 0) } else { sv = *v } switch { default: - var mv *types.Parameter + var mv types.Parameter t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentParameter(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentParameter(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -22073,7 +22173,7 @@ func awsAwsquery_deserializeDocumentPauseClusterMessage(v **types.PauseClusterMe } if val != nil { xtv := string(val) - sv.ClusterIdentifier = &xtv + sv.ClusterIdentifier = ptr.String(xtv) } default: @@ -22086,13 +22186,13 @@ func awsAwsquery_deserializeDocumentPauseClusterMessage(v **types.PauseClusterMe return nil } -func awsAwsquery_deserializeDocumentPendingActionsList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPendingActionsList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -22110,20 +22210,17 @@ func awsAwsquery_deserializeDocumentPendingActionsList(v *[]*string, decoder smi decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -22136,17 +22233,17 @@ func awsAwsquery_deserializeDocumentPendingActionsList(v *[]*string, decoder smi return nil } -func awsAwsquery_deserializeDocumentPendingActionsListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentPendingActionsListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -22154,14 +22251,11 @@ func awsAwsquery_deserializeDocumentPendingActionsListUnwrapped(v *[]*string, de return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -22220,7 +22314,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.ClusterIdentifier = &xtv + sv.ClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("ClusterType", t.Name.Local): @@ -22236,7 +22330,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.ClusterType = &xtv + sv.ClusterType = ptr.String(xtv) } case strings.EqualFold("ClusterVersion", t.Name.Local): @@ -22252,7 +22346,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.ClusterVersion = &xtv + sv.ClusterVersion = ptr.String(xtv) } case strings.EqualFold("EncryptionType", t.Name.Local): @@ -22268,7 +22362,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.EncryptionType = &xtv + sv.EncryptionType = ptr.String(xtv) } case strings.EqualFold("EnhancedVpcRouting", t.Name.Local): @@ -22284,7 +22378,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.EnhancedVpcRouting = &xtv + sv.EnhancedVpcRouting = ptr.Bool(xtv) } case strings.EqualFold("MaintenanceTrackName", t.Name.Local): @@ -22300,7 +22394,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.MaintenanceTrackName = &xtv + sv.MaintenanceTrackName = ptr.String(xtv) } case strings.EqualFold("MasterUserPassword", t.Name.Local): @@ -22316,7 +22410,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.MasterUserPassword = &xtv + sv.MasterUserPassword = ptr.String(xtv) } case strings.EqualFold("NodeType", t.Name.Local): @@ -22332,7 +22426,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif } if val != nil { xtv := string(val) - sv.NodeType = &xtv + sv.NodeType = ptr.String(xtv) } case strings.EqualFold("NumberOfNodes", t.Name.Local): @@ -22365,7 +22459,7 @@ func awsAwsquery_deserializeDocumentPendingModifiedValues(v **types.PendingModif if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.PubliclyAccessible = &xtv + sv.PubliclyAccessible = ptr.Bool(xtv) } default: @@ -22414,7 +22508,7 @@ func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d if err != nil { return err } - sv.RecurringChargeAmount = &f64 + sv.RecurringChargeAmount = f64 } case strings.EqualFold("RecurringChargeFrequency", t.Name.Local): @@ -22430,7 +22524,7 @@ func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d } if val != nil { xtv := string(val) - sv.RecurringChargeFrequency = &xtv + sv.RecurringChargeFrequency = ptr.String(xtv) } default: @@ -22443,13 +22537,13 @@ func awsAwsquery_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d return nil } -func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]*types.RecurringCharge, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RecurringCharge + var sv []types.RecurringCharge if *v == nil { - sv = make([]*types.RecurringCharge, 0) + sv = make([]types.RecurringCharge, 0) } else { sv = *v } @@ -22465,11 +22559,13 @@ func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]*types.RecurringCha } for { if strings.EqualFold("RecurringCharge", t.Name.Local) { - var col *types.RecurringCharge + var col types.RecurringCharge nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRecurringCharge(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentRecurringCharge(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -22482,23 +22578,25 @@ func awsAwsquery_deserializeDocumentRecurringChargeList(v *[]*types.RecurringCha return nil } -func awsAwsquery_deserializeDocumentRecurringChargeListUnwrapped(v *[]*types.RecurringCharge, decoder smithyxml.NodeDecoder) error { - var sv []*types.RecurringCharge +func awsAwsquery_deserializeDocumentRecurringChargeListUnwrapped(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error { + var sv []types.RecurringCharge if *v == nil { - sv = make([]*types.RecurringCharge, 0) + sv = make([]types.RecurringCharge, 0) } else { sv = *v } switch { default: - var mv *types.RecurringCharge + var mv types.RecurringCharge t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRecurringCharge(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRecurringCharge(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -22539,7 +22637,7 @@ func awsAwsquery_deserializeDocumentReservedNode(v **types.ReservedNode, decoder } if val != nil { xtv := string(val) - sv.CurrencyCode = &xtv + sv.CurrencyCode = ptr.String(xtv) } case strings.EqualFold("Duration", t.Name.Local): @@ -22556,7 +22654,7 @@ func awsAwsquery_deserializeDocumentReservedNode(v **types.ReservedNode, decoder if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case strings.EqualFold("FixedPrice", t.Name.Local): @@ -22573,7 +22671,7 @@ func awsAwsquery_deserializeDocumentReservedNode(v **types.ReservedNode, decoder if err != nil { return err } - sv.FixedPrice = &f64 + sv.FixedPrice = f64 } case strings.EqualFold("NodeCount", t.Name.Local): @@ -22590,7 +22688,7 @@ func awsAwsquery_deserializeDocumentReservedNode(v **types.ReservedNode, decoder if err != nil { return err } - sv.NodeCount = ptr.Int32(int32(i64)) + sv.NodeCount = int32(i64) } case strings.EqualFold("NodeType", t.Name.Local): @@ -22606,7 +22704,7 @@ func awsAwsquery_deserializeDocumentReservedNode(v **types.ReservedNode, decoder } if val != nil { xtv := string(val) - sv.NodeType = &xtv + sv.NodeType = ptr.String(xtv) } case strings.EqualFold("OfferingType", t.Name.Local): @@ -22622,7 +22720,7 @@ func awsAwsquery_deserializeDocumentReservedNode(v **types.ReservedNode, decoder } if val != nil { xtv := string(val) - sv.OfferingType = &xtv + sv.OfferingType = ptr.String(xtv) } case strings.EqualFold("RecurringCharges", t.Name.Local): @@ -22644,7 +22742,7 @@ func awsAwsquery_deserializeDocumentReservedNode(v **types.ReservedNode, decoder } if val != nil { xtv := string(val) - sv.ReservedNodeId = &xtv + sv.ReservedNodeId = ptr.String(xtv) } case strings.EqualFold("ReservedNodeOfferingId", t.Name.Local): @@ -22660,7 +22758,7 @@ func awsAwsquery_deserializeDocumentReservedNode(v **types.ReservedNode, decoder } if val != nil { xtv := string(val) - sv.ReservedNodeOfferingId = &xtv + sv.ReservedNodeOfferingId = ptr.String(xtv) } case strings.EqualFold("ReservedNodeOfferingType", t.Name.Local): @@ -22690,7 +22788,7 @@ func awsAwsquery_deserializeDocumentReservedNode(v **types.ReservedNode, decoder if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("State", t.Name.Local): @@ -22706,7 +22804,7 @@ func awsAwsquery_deserializeDocumentReservedNode(v **types.ReservedNode, decoder } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } case strings.EqualFold("UsagePrice", t.Name.Local): @@ -22723,7 +22821,7 @@ func awsAwsquery_deserializeDocumentReservedNode(v **types.ReservedNode, decoder if err != nil { return err } - sv.UsagePrice = &f64 + sv.UsagePrice = f64 } default: @@ -22771,7 +22869,7 @@ func awsAwsquery_deserializeDocumentReservedNodeAlreadyExistsFault(v **types.Res } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22819,7 +22917,7 @@ func awsAwsquery_deserializeDocumentReservedNodeAlreadyMigratedFault(v **types.R } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22832,13 +22930,13 @@ func awsAwsquery_deserializeDocumentReservedNodeAlreadyMigratedFault(v **types.R return nil } -func awsAwsquery_deserializeDocumentReservedNodeList(v *[]*types.ReservedNode, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReservedNodeList(v *[]types.ReservedNode, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReservedNode + var sv []types.ReservedNode if *v == nil { - sv = make([]*types.ReservedNode, 0) + sv = make([]types.ReservedNode, 0) } else { sv = *v } @@ -22854,11 +22952,13 @@ func awsAwsquery_deserializeDocumentReservedNodeList(v *[]*types.ReservedNode, d } for { if strings.EqualFold("ReservedNode", t.Name.Local) { - var col *types.ReservedNode + var col types.ReservedNode nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReservedNode(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentReservedNode(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -22871,23 +22971,25 @@ func awsAwsquery_deserializeDocumentReservedNodeList(v *[]*types.ReservedNode, d return nil } -func awsAwsquery_deserializeDocumentReservedNodeListUnwrapped(v *[]*types.ReservedNode, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReservedNode +func awsAwsquery_deserializeDocumentReservedNodeListUnwrapped(v *[]types.ReservedNode, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedNode if *v == nil { - sv = make([]*types.ReservedNode, 0) + sv = make([]types.ReservedNode, 0) } else { sv = *v } switch { default: - var mv *types.ReservedNode + var mv types.ReservedNode t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReservedNode(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentReservedNode(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -22928,7 +23030,7 @@ func awsAwsquery_deserializeDocumentReservedNodeNotFoundFault(v **types.Reserved } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -22976,7 +23078,7 @@ func awsAwsquery_deserializeDocumentReservedNodeOffering(v **types.ReservedNodeO } if val != nil { xtv := string(val) - sv.CurrencyCode = &xtv + sv.CurrencyCode = ptr.String(xtv) } case strings.EqualFold("Duration", t.Name.Local): @@ -22993,7 +23095,7 @@ func awsAwsquery_deserializeDocumentReservedNodeOffering(v **types.ReservedNodeO if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case strings.EqualFold("FixedPrice", t.Name.Local): @@ -23010,7 +23112,7 @@ func awsAwsquery_deserializeDocumentReservedNodeOffering(v **types.ReservedNodeO if err != nil { return err } - sv.FixedPrice = &f64 + sv.FixedPrice = f64 } case strings.EqualFold("NodeType", t.Name.Local): @@ -23026,7 +23128,7 @@ func awsAwsquery_deserializeDocumentReservedNodeOffering(v **types.ReservedNodeO } if val != nil { xtv := string(val) - sv.NodeType = &xtv + sv.NodeType = ptr.String(xtv) } case strings.EqualFold("OfferingType", t.Name.Local): @@ -23042,7 +23144,7 @@ func awsAwsquery_deserializeDocumentReservedNodeOffering(v **types.ReservedNodeO } if val != nil { xtv := string(val) - sv.OfferingType = &xtv + sv.OfferingType = ptr.String(xtv) } case strings.EqualFold("RecurringCharges", t.Name.Local): @@ -23064,7 +23166,7 @@ func awsAwsquery_deserializeDocumentReservedNodeOffering(v **types.ReservedNodeO } if val != nil { xtv := string(val) - sv.ReservedNodeOfferingId = &xtv + sv.ReservedNodeOfferingId = ptr.String(xtv) } case strings.EqualFold("ReservedNodeOfferingType", t.Name.Local): @@ -23094,7 +23196,7 @@ func awsAwsquery_deserializeDocumentReservedNodeOffering(v **types.ReservedNodeO if err != nil { return err } - sv.UsagePrice = &f64 + sv.UsagePrice = f64 } default: @@ -23107,13 +23209,13 @@ func awsAwsquery_deserializeDocumentReservedNodeOffering(v **types.ReservedNodeO return nil } -func awsAwsquery_deserializeDocumentReservedNodeOfferingList(v *[]*types.ReservedNodeOffering, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReservedNodeOfferingList(v *[]types.ReservedNodeOffering, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReservedNodeOffering + var sv []types.ReservedNodeOffering if *v == nil { - sv = make([]*types.ReservedNodeOffering, 0) + sv = make([]types.ReservedNodeOffering, 0) } else { sv = *v } @@ -23129,11 +23231,13 @@ func awsAwsquery_deserializeDocumentReservedNodeOfferingList(v *[]*types.Reserve } for { if strings.EqualFold("ReservedNodeOffering", t.Name.Local) { - var col *types.ReservedNodeOffering + var col types.ReservedNodeOffering nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReservedNodeOffering(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentReservedNodeOffering(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -23146,23 +23250,25 @@ func awsAwsquery_deserializeDocumentReservedNodeOfferingList(v *[]*types.Reserve return nil } -func awsAwsquery_deserializeDocumentReservedNodeOfferingListUnwrapped(v *[]*types.ReservedNodeOffering, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReservedNodeOffering +func awsAwsquery_deserializeDocumentReservedNodeOfferingListUnwrapped(v *[]types.ReservedNodeOffering, decoder smithyxml.NodeDecoder) error { + var sv []types.ReservedNodeOffering if *v == nil { - sv = make([]*types.ReservedNodeOffering, 0) + sv = make([]types.ReservedNodeOffering, 0) } else { sv = *v } switch { default: - var mv *types.ReservedNodeOffering + var mv types.ReservedNodeOffering t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReservedNodeOffering(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentReservedNodeOffering(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -23203,7 +23309,7 @@ func awsAwsquery_deserializeDocumentReservedNodeOfferingNotFoundFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23251,7 +23357,7 @@ func awsAwsquery_deserializeDocumentReservedNodeQuotaExceededFault(v **types.Res } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23299,7 +23405,7 @@ func awsAwsquery_deserializeDocumentResizeClusterMessage(v **types.ResizeCluster if err != nil { return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", val) } - sv.Classic = &xtv + sv.Classic = ptr.Bool(xtv) } case strings.EqualFold("ClusterIdentifier", t.Name.Local): @@ -23315,7 +23421,7 @@ func awsAwsquery_deserializeDocumentResizeClusterMessage(v **types.ResizeCluster } if val != nil { xtv := string(val) - sv.ClusterIdentifier = &xtv + sv.ClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("ClusterType", t.Name.Local): @@ -23331,7 +23437,7 @@ func awsAwsquery_deserializeDocumentResizeClusterMessage(v **types.ResizeCluster } if val != nil { xtv := string(val) - sv.ClusterType = &xtv + sv.ClusterType = ptr.String(xtv) } case strings.EqualFold("NodeType", t.Name.Local): @@ -23347,7 +23453,7 @@ func awsAwsquery_deserializeDocumentResizeClusterMessage(v **types.ResizeCluster } if val != nil { xtv := string(val) - sv.NodeType = &xtv + sv.NodeType = ptr.String(xtv) } case strings.EqualFold("NumberOfNodes", t.Name.Local): @@ -23364,7 +23470,7 @@ func awsAwsquery_deserializeDocumentResizeClusterMessage(v **types.ResizeCluster if err != nil { return err } - sv.NumberOfNodes = ptr.Int32(int32(i64)) + sv.NumberOfNodes = int32(i64) } default: @@ -23412,7 +23518,7 @@ func awsAwsquery_deserializeDocumentResizeInfo(v **types.ResizeInfo, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowCancelResize = &xtv + sv.AllowCancelResize = xtv } case strings.EqualFold("ResizeType", t.Name.Local): @@ -23428,7 +23534,7 @@ func awsAwsquery_deserializeDocumentResizeInfo(v **types.ResizeInfo, decoder smi } if val != nil { xtv := string(val) - sv.ResizeType = &xtv + sv.ResizeType = ptr.String(xtv) } default: @@ -23476,7 +23582,7 @@ func awsAwsquery_deserializeDocumentResizeNotFoundFault(v **types.ResizeNotFound } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23524,7 +23630,7 @@ func awsAwsquery_deserializeDocumentResourceNotFoundFault(v **types.ResourceNotF } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -23537,13 +23643,13 @@ func awsAwsquery_deserializeDocumentResourceNotFoundFault(v **types.ResourceNotF return nil } -func awsAwsquery_deserializeDocumentRestorableNodeTypeList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRestorableNodeTypeList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -23561,20 +23667,17 @@ func awsAwsquery_deserializeDocumentRestorableNodeTypeList(v *[]*string, decoder decoder = memberDecoder for { if strings.EqualFold("NodeType", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -23587,17 +23690,17 @@ func awsAwsquery_deserializeDocumentRestorableNodeTypeList(v *[]*string, decoder return nil } -func awsAwsquery_deserializeDocumentRestorableNodeTypeListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentRestorableNodeTypeListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -23605,14 +23708,11 @@ func awsAwsquery_deserializeDocumentRestorableNodeTypeListUnwrapped(v *[]*string return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -23655,7 +23755,7 @@ func awsAwsquery_deserializeDocumentRestoreStatus(v **types.RestoreStatus, decod if err != nil { return err } - sv.CurrentRestoreRateInMegaBytesPerSecond = &f64 + sv.CurrentRestoreRateInMegaBytesPerSecond = f64 } case strings.EqualFold("ElapsedTimeInSeconds", t.Name.Local): @@ -23672,7 +23772,7 @@ func awsAwsquery_deserializeDocumentRestoreStatus(v **types.RestoreStatus, decod if err != nil { return err } - sv.ElapsedTimeInSeconds = &i64 + sv.ElapsedTimeInSeconds = i64 } case strings.EqualFold("EstimatedTimeToCompletionInSeconds", t.Name.Local): @@ -23689,7 +23789,7 @@ func awsAwsquery_deserializeDocumentRestoreStatus(v **types.RestoreStatus, decod if err != nil { return err } - sv.EstimatedTimeToCompletionInSeconds = &i64 + sv.EstimatedTimeToCompletionInSeconds = i64 } case strings.EqualFold("ProgressInMegaBytes", t.Name.Local): @@ -23706,7 +23806,7 @@ func awsAwsquery_deserializeDocumentRestoreStatus(v **types.RestoreStatus, decod if err != nil { return err } - sv.ProgressInMegaBytes = &i64 + sv.ProgressInMegaBytes = i64 } case strings.EqualFold("SnapshotSizeInMegaBytes", t.Name.Local): @@ -23723,7 +23823,7 @@ func awsAwsquery_deserializeDocumentRestoreStatus(v **types.RestoreStatus, decod if err != nil { return err } - sv.SnapshotSizeInMegaBytes = &i64 + sv.SnapshotSizeInMegaBytes = i64 } case strings.EqualFold("Status", t.Name.Local): @@ -23739,7 +23839,7 @@ func awsAwsquery_deserializeDocumentRestoreStatus(v **types.RestoreStatus, decod } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -23787,7 +23887,7 @@ func awsAwsquery_deserializeDocumentResumeClusterMessage(v **types.ResumeCluster } if val != nil { xtv := string(val) - sv.ClusterIdentifier = &xtv + sv.ClusterIdentifier = ptr.String(xtv) } default: @@ -23835,7 +23935,7 @@ func awsAwsquery_deserializeDocumentRevisionTarget(v **types.RevisionTarget, dec } if val != nil { xtv := string(val) - sv.DatabaseRevision = &xtv + sv.DatabaseRevision = ptr.String(xtv) } case strings.EqualFold("DatabaseRevisionReleaseDate", t.Name.Local): @@ -23852,7 +23952,7 @@ func awsAwsquery_deserializeDocumentRevisionTarget(v **types.RevisionTarget, dec if err != nil { return err } - sv.DatabaseRevisionReleaseDate = &t + sv.DatabaseRevisionReleaseDate = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -23868,7 +23968,7 @@ func awsAwsquery_deserializeDocumentRevisionTarget(v **types.RevisionTarget, dec } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } default: @@ -23881,13 +23981,13 @@ func awsAwsquery_deserializeDocumentRevisionTarget(v **types.RevisionTarget, dec return nil } -func awsAwsquery_deserializeDocumentRevisionTargetsList(v *[]*types.RevisionTarget, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRevisionTargetsList(v *[]types.RevisionTarget, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RevisionTarget + var sv []types.RevisionTarget if *v == nil { - sv = make([]*types.RevisionTarget, 0) + sv = make([]types.RevisionTarget, 0) } else { sv = *v } @@ -23903,11 +24003,13 @@ func awsAwsquery_deserializeDocumentRevisionTargetsList(v *[]*types.RevisionTarg } for { if strings.EqualFold("RevisionTarget", t.Name.Local) { - var col *types.RevisionTarget + var col types.RevisionTarget nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRevisionTarget(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentRevisionTarget(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -23920,23 +24022,25 @@ func awsAwsquery_deserializeDocumentRevisionTargetsList(v *[]*types.RevisionTarg return nil } -func awsAwsquery_deserializeDocumentRevisionTargetsListUnwrapped(v *[]*types.RevisionTarget, decoder smithyxml.NodeDecoder) error { - var sv []*types.RevisionTarget +func awsAwsquery_deserializeDocumentRevisionTargetsListUnwrapped(v *[]types.RevisionTarget, decoder smithyxml.NodeDecoder) error { + var sv []types.RevisionTarget if *v == nil { - sv = make([]*types.RevisionTarget, 0) + sv = make([]types.RevisionTarget, 0) } else { sv = *v } switch { default: - var mv *types.RevisionTarget + var mv types.RevisionTarget t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRevisionTarget(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentRevisionTarget(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -23978,7 +24082,7 @@ func awsAwsquery_deserializeDocumentScheduledAction(v **types.ScheduledAction, d if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case strings.EqualFold("IamRole", t.Name.Local): @@ -23994,7 +24098,7 @@ func awsAwsquery_deserializeDocumentScheduledAction(v **types.ScheduledAction, d } if val != nil { xtv := string(val) - sv.IamRole = &xtv + sv.IamRole = ptr.String(xtv) } case strings.EqualFold("NextInvocations", t.Name.Local): @@ -24016,7 +24120,7 @@ func awsAwsquery_deserializeDocumentScheduledAction(v **types.ScheduledAction, d } if val != nil { xtv := string(val) - sv.Schedule = &xtv + sv.Schedule = ptr.String(xtv) } case strings.EqualFold("ScheduledActionDescription", t.Name.Local): @@ -24032,7 +24136,7 @@ func awsAwsquery_deserializeDocumentScheduledAction(v **types.ScheduledAction, d } if val != nil { xtv := string(val) - sv.ScheduledActionDescription = &xtv + sv.ScheduledActionDescription = ptr.String(xtv) } case strings.EqualFold("ScheduledActionName", t.Name.Local): @@ -24048,7 +24152,7 @@ func awsAwsquery_deserializeDocumentScheduledAction(v **types.ScheduledAction, d } if val != nil { xtv := string(val) - sv.ScheduledActionName = &xtv + sv.ScheduledActionName = ptr.String(xtv) } case strings.EqualFold("StartTime", t.Name.Local): @@ -24065,7 +24169,7 @@ func awsAwsquery_deserializeDocumentScheduledAction(v **types.ScheduledAction, d if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("State", t.Name.Local): @@ -24132,7 +24236,7 @@ func awsAwsquery_deserializeDocumentScheduledActionAlreadyExistsFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24145,13 +24249,13 @@ func awsAwsquery_deserializeDocumentScheduledActionAlreadyExistsFault(v **types. return nil } -func awsAwsquery_deserializeDocumentScheduledActionList(v *[]*types.ScheduledAction, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentScheduledActionList(v *[]types.ScheduledAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ScheduledAction + var sv []types.ScheduledAction if *v == nil { - sv = make([]*types.ScheduledAction, 0) + sv = make([]types.ScheduledAction, 0) } else { sv = *v } @@ -24167,11 +24271,13 @@ func awsAwsquery_deserializeDocumentScheduledActionList(v *[]*types.ScheduledAct } for { if strings.EqualFold("ScheduledAction", t.Name.Local) { - var col *types.ScheduledAction + var col types.ScheduledAction nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentScheduledAction(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentScheduledAction(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -24184,23 +24290,25 @@ func awsAwsquery_deserializeDocumentScheduledActionList(v *[]*types.ScheduledAct return nil } -func awsAwsquery_deserializeDocumentScheduledActionListUnwrapped(v *[]*types.ScheduledAction, decoder smithyxml.NodeDecoder) error { - var sv []*types.ScheduledAction +func awsAwsquery_deserializeDocumentScheduledActionListUnwrapped(v *[]types.ScheduledAction, decoder smithyxml.NodeDecoder) error { + var sv []types.ScheduledAction if *v == nil { - sv = make([]*types.ScheduledAction, 0) + sv = make([]types.ScheduledAction, 0) } else { sv = *v } switch { default: - var mv *types.ScheduledAction + var mv types.ScheduledAction t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentScheduledAction(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentScheduledAction(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -24241,7 +24349,7 @@ func awsAwsquery_deserializeDocumentScheduledActionNotFoundFault(v **types.Sched } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24289,7 +24397,7 @@ func awsAwsquery_deserializeDocumentScheduledActionQuotaExceededFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24302,13 +24410,13 @@ func awsAwsquery_deserializeDocumentScheduledActionQuotaExceededFault(v **types. return nil } -func awsAwsquery_deserializeDocumentScheduledActionTimeList(v *[]*time.Time, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentScheduledActionTimeList(v *[]time.Time, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*time.Time + var sv []time.Time if *v == nil { - sv = make([]*time.Time, 0) + sv = make([]time.Time, 0) } else { sv = *v } @@ -24326,7 +24434,7 @@ func awsAwsquery_deserializeDocumentScheduledActionTimeList(v *[]*time.Time, dec decoder = memberDecoder for { if strings.EqualFold("ScheduledActionTime", t.Name.Local) { - var col *time.Time + var col time.Time val, done, err := decoder.Value() if err != nil { return err @@ -24340,7 +24448,7 @@ func awsAwsquery_deserializeDocumentScheduledActionTimeList(v *[]*time.Time, dec if err != nil { return err } - col = &t + col = t } sv = append(sv, col) } else { @@ -24353,17 +24461,17 @@ func awsAwsquery_deserializeDocumentScheduledActionTimeList(v *[]*time.Time, dec return nil } -func awsAwsquery_deserializeDocumentScheduledActionTimeListUnwrapped(v *[]*time.Time, decoder smithyxml.NodeDecoder) error { - var sv []*time.Time +func awsAwsquery_deserializeDocumentScheduledActionTimeListUnwrapped(v *[]time.Time, decoder smithyxml.NodeDecoder) error { + var sv []time.Time if *v == nil { - sv = make([]*time.Time, 0) + sv = make([]time.Time, 0) } else { sv = *v } switch { default: - var mv *time.Time + var mv time.Time t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -24379,7 +24487,7 @@ func awsAwsquery_deserializeDocumentScheduledActionTimeListUnwrapped(v *[]*time. if err != nil { return err } - mv = &t + mv = t } sv = append(sv, mv) } @@ -24471,7 +24579,7 @@ func awsAwsquery_deserializeDocumentScheduledActionTypeUnsupportedFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24484,13 +24592,13 @@ func awsAwsquery_deserializeDocumentScheduledActionTypeUnsupportedFault(v **type return nil } -func awsAwsquery_deserializeDocumentScheduleDefinitionList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentScheduleDefinitionList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -24508,20 +24616,17 @@ func awsAwsquery_deserializeDocumentScheduleDefinitionList(v *[]*string, decoder decoder = memberDecoder for { if strings.EqualFold("ScheduleDefinition", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -24534,17 +24639,17 @@ func awsAwsquery_deserializeDocumentScheduleDefinitionList(v *[]*string, decoder return nil } -func awsAwsquery_deserializeDocumentScheduleDefinitionListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentScheduleDefinitionListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -24552,14 +24657,11 @@ func awsAwsquery_deserializeDocumentScheduleDefinitionListUnwrapped(v *[]*string return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -24601,7 +24703,7 @@ func awsAwsquery_deserializeDocumentScheduleDefinitionTypeUnsupportedFault(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -24614,13 +24716,13 @@ func awsAwsquery_deserializeDocumentScheduleDefinitionTypeUnsupportedFault(v **t return nil } -func awsAwsquery_deserializeDocumentScheduledSnapshotTimeList(v *[]*time.Time, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentScheduledSnapshotTimeList(v *[]time.Time, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*time.Time + var sv []time.Time if *v == nil { - sv = make([]*time.Time, 0) + sv = make([]time.Time, 0) } else { sv = *v } @@ -24638,7 +24740,7 @@ func awsAwsquery_deserializeDocumentScheduledSnapshotTimeList(v *[]*time.Time, d decoder = memberDecoder for { if strings.EqualFold("SnapshotTime", t.Name.Local) { - var col *time.Time + var col time.Time val, done, err := decoder.Value() if err != nil { return err @@ -24652,7 +24754,7 @@ func awsAwsquery_deserializeDocumentScheduledSnapshotTimeList(v *[]*time.Time, d if err != nil { return err } - col = &t + col = t } sv = append(sv, col) } else { @@ -24665,17 +24767,17 @@ func awsAwsquery_deserializeDocumentScheduledSnapshotTimeList(v *[]*time.Time, d return nil } -func awsAwsquery_deserializeDocumentScheduledSnapshotTimeListUnwrapped(v *[]*time.Time, decoder smithyxml.NodeDecoder) error { - var sv []*time.Time +func awsAwsquery_deserializeDocumentScheduledSnapshotTimeListUnwrapped(v *[]time.Time, decoder smithyxml.NodeDecoder) error { + var sv []time.Time if *v == nil { - sv = make([]*time.Time, 0) + sv = make([]time.Time, 0) } else { sv = *v } switch { default: - var mv *time.Time + var mv time.Time t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -24691,7 +24793,7 @@ func awsAwsquery_deserializeDocumentScheduledSnapshotTimeListUnwrapped(v *[]*tim if err != nil { return err } - mv = &t + mv = t } sv = append(sv, mv) } @@ -24740,7 +24842,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.ActualIncrementalBackupSizeInMegaBytes = &f64 + sv.ActualIncrementalBackupSizeInMegaBytes = f64 } case strings.EqualFold("AvailabilityZone", t.Name.Local): @@ -24756,7 +24858,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.AvailabilityZone = &xtv + sv.AvailabilityZone = ptr.String(xtv) } case strings.EqualFold("BackupProgressInMegaBytes", t.Name.Local): @@ -24773,7 +24875,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.BackupProgressInMegaBytes = &f64 + sv.BackupProgressInMegaBytes = f64 } case strings.EqualFold("ClusterCreateTime", t.Name.Local): @@ -24790,7 +24892,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.ClusterCreateTime = &t + sv.ClusterCreateTime = ptr.Time(t) } case strings.EqualFold("ClusterIdentifier", t.Name.Local): @@ -24806,7 +24908,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.ClusterIdentifier = &xtv + sv.ClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("ClusterVersion", t.Name.Local): @@ -24822,7 +24924,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.ClusterVersion = &xtv + sv.ClusterVersion = ptr.String(xtv) } case strings.EqualFold("CurrentBackupRateInMegaBytesPerSecond", t.Name.Local): @@ -24839,7 +24941,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.CurrentBackupRateInMegaBytesPerSecond = &f64 + sv.CurrentBackupRateInMegaBytesPerSecond = f64 } case strings.EqualFold("DBName", t.Name.Local): @@ -24855,7 +24957,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.DBName = &xtv + sv.DBName = ptr.String(xtv) } case strings.EqualFold("ElapsedTimeInSeconds", t.Name.Local): @@ -24872,7 +24974,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.ElapsedTimeInSeconds = &i64 + sv.ElapsedTimeInSeconds = i64 } case strings.EqualFold("Encrypted", t.Name.Local): @@ -24888,7 +24990,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = &xtv + sv.Encrypted = xtv } case strings.EqualFold("EncryptedWithHSM", t.Name.Local): @@ -24904,7 +25006,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EncryptedWithHSM = &xtv + sv.EncryptedWithHSM = xtv } case strings.EqualFold("EnhancedVpcRouting", t.Name.Local): @@ -24920,7 +25022,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EnhancedVpcRouting = &xtv + sv.EnhancedVpcRouting = xtv } case strings.EqualFold("EstimatedSecondsToCompletion", t.Name.Local): @@ -24937,7 +25039,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.EstimatedSecondsToCompletion = &i64 + sv.EstimatedSecondsToCompletion = i64 } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -24953,7 +25055,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("MaintenanceTrackName", t.Name.Local): @@ -24969,7 +25071,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.MaintenanceTrackName = &xtv + sv.MaintenanceTrackName = ptr.String(xtv) } case strings.EqualFold("ManualSnapshotRemainingDays", t.Name.Local): @@ -25019,7 +25121,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.MasterUsername = &xtv + sv.MasterUsername = ptr.String(xtv) } case strings.EqualFold("NodeType", t.Name.Local): @@ -25035,7 +25137,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.NodeType = &xtv + sv.NodeType = ptr.String(xtv) } case strings.EqualFold("NumberOfNodes", t.Name.Local): @@ -25052,7 +25154,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.NumberOfNodes = ptr.Int32(int32(i64)) + sv.NumberOfNodes = int32(i64) } case strings.EqualFold("OwnerAccount", t.Name.Local): @@ -25068,7 +25170,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.OwnerAccount = &xtv + sv.OwnerAccount = ptr.String(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -25085,7 +25187,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case strings.EqualFold("RestorableNodeTypes", t.Name.Local): @@ -25108,7 +25210,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.SnapshotCreateTime = &t + sv.SnapshotCreateTime = ptr.Time(t) } case strings.EqualFold("SnapshotIdentifier", t.Name.Local): @@ -25124,7 +25226,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.SnapshotIdentifier = &xtv + sv.SnapshotIdentifier = ptr.String(xtv) } case strings.EqualFold("SnapshotRetentionStartTime", t.Name.Local): @@ -25141,7 +25243,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.SnapshotRetentionStartTime = &t + sv.SnapshotRetentionStartTime = ptr.Time(t) } case strings.EqualFold("SnapshotType", t.Name.Local): @@ -25157,7 +25259,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.SnapshotType = &xtv + sv.SnapshotType = ptr.String(xtv) } case strings.EqualFold("SourceRegion", t.Name.Local): @@ -25173,7 +25275,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.SourceRegion = &xtv + sv.SourceRegion = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -25189,7 +25291,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -25212,7 +25314,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.TotalBackupSizeInMegaBytes = &f64 + sv.TotalBackupSizeInMegaBytes = f64 } case strings.EqualFold("VpcId", t.Name.Local): @@ -25228,7 +25330,7 @@ func awsAwsquery_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: @@ -25276,7 +25378,7 @@ func awsAwsquery_deserializeDocumentSnapshotCopyAlreadyDisabledFault(v **types.S } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25324,7 +25426,7 @@ func awsAwsquery_deserializeDocumentSnapshotCopyAlreadyEnabledFault(v **types.Sn } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25372,7 +25474,7 @@ func awsAwsquery_deserializeDocumentSnapshotCopyDisabledFault(v **types.Snapshot } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25420,7 +25522,7 @@ func awsAwsquery_deserializeDocumentSnapshotCopyGrant(v **types.SnapshotCopyGran } if val != nil { xtv := string(val) - sv.KmsKeyId = &xtv + sv.KmsKeyId = ptr.String(xtv) } case strings.EqualFold("SnapshotCopyGrantName", t.Name.Local): @@ -25436,7 +25538,7 @@ func awsAwsquery_deserializeDocumentSnapshotCopyGrant(v **types.SnapshotCopyGran } if val != nil { xtv := string(val) - sv.SnapshotCopyGrantName = &xtv + sv.SnapshotCopyGrantName = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -25490,7 +25592,7 @@ func awsAwsquery_deserializeDocumentSnapshotCopyGrantAlreadyExistsFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25503,13 +25605,13 @@ func awsAwsquery_deserializeDocumentSnapshotCopyGrantAlreadyExistsFault(v **type return nil } -func awsAwsquery_deserializeDocumentSnapshotCopyGrantList(v *[]*types.SnapshotCopyGrant, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSnapshotCopyGrantList(v *[]types.SnapshotCopyGrant, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SnapshotCopyGrant + var sv []types.SnapshotCopyGrant if *v == nil { - sv = make([]*types.SnapshotCopyGrant, 0) + sv = make([]types.SnapshotCopyGrant, 0) } else { sv = *v } @@ -25525,11 +25627,13 @@ func awsAwsquery_deserializeDocumentSnapshotCopyGrantList(v *[]*types.SnapshotCo } for { if strings.EqualFold("SnapshotCopyGrant", t.Name.Local) { - var col *types.SnapshotCopyGrant + var col types.SnapshotCopyGrant nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSnapshotCopyGrant(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSnapshotCopyGrant(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -25542,23 +25646,25 @@ func awsAwsquery_deserializeDocumentSnapshotCopyGrantList(v *[]*types.SnapshotCo return nil } -func awsAwsquery_deserializeDocumentSnapshotCopyGrantListUnwrapped(v *[]*types.SnapshotCopyGrant, decoder smithyxml.NodeDecoder) error { - var sv []*types.SnapshotCopyGrant +func awsAwsquery_deserializeDocumentSnapshotCopyGrantListUnwrapped(v *[]types.SnapshotCopyGrant, decoder smithyxml.NodeDecoder) error { + var sv []types.SnapshotCopyGrant if *v == nil { - sv = make([]*types.SnapshotCopyGrant, 0) + sv = make([]types.SnapshotCopyGrant, 0) } else { sv = *v } switch { default: - var mv *types.SnapshotCopyGrant + var mv types.SnapshotCopyGrant t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSnapshotCopyGrant(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSnapshotCopyGrant(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -25599,7 +25705,7 @@ func awsAwsquery_deserializeDocumentSnapshotCopyGrantNotFoundFault(v **types.Sna } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25647,7 +25753,7 @@ func awsAwsquery_deserializeDocumentSnapshotCopyGrantQuotaExceededFault(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -25695,7 +25801,7 @@ func awsAwsquery_deserializeDocumentSnapshotErrorMessage(v **types.SnapshotError } if val != nil { xtv := string(val) - sv.FailureCode = &xtv + sv.FailureCode = ptr.String(xtv) } case strings.EqualFold("FailureReason", t.Name.Local): @@ -25711,7 +25817,7 @@ func awsAwsquery_deserializeDocumentSnapshotErrorMessage(v **types.SnapshotError } if val != nil { xtv := string(val) - sv.FailureReason = &xtv + sv.FailureReason = ptr.String(xtv) } case strings.EqualFold("SnapshotClusterIdentifier", t.Name.Local): @@ -25727,7 +25833,7 @@ func awsAwsquery_deserializeDocumentSnapshotErrorMessage(v **types.SnapshotError } if val != nil { xtv := string(val) - sv.SnapshotClusterIdentifier = &xtv + sv.SnapshotClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("SnapshotIdentifier", t.Name.Local): @@ -25743,7 +25849,7 @@ func awsAwsquery_deserializeDocumentSnapshotErrorMessage(v **types.SnapshotError } if val != nil { xtv := string(val) - sv.SnapshotIdentifier = &xtv + sv.SnapshotIdentifier = ptr.String(xtv) } default: @@ -25756,13 +25862,13 @@ func awsAwsquery_deserializeDocumentSnapshotErrorMessage(v **types.SnapshotError return nil } -func awsAwsquery_deserializeDocumentSnapshotIdentifierList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSnapshotIdentifierList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -25780,20 +25886,17 @@ func awsAwsquery_deserializeDocumentSnapshotIdentifierList(v *[]*string, decoder decoder = memberDecoder for { if strings.EqualFold("String", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -25806,17 +25909,17 @@ func awsAwsquery_deserializeDocumentSnapshotIdentifierList(v *[]*string, decoder return nil } -func awsAwsquery_deserializeDocumentSnapshotIdentifierListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentSnapshotIdentifierListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -25824,27 +25927,24 @@ func awsAwsquery_deserializeDocumentSnapshotIdentifierListUnwrapped(v *[]*string return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentSnapshotList(v *[]*types.Snapshot, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSnapshotList(v *[]types.Snapshot, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Snapshot + var sv []types.Snapshot if *v == nil { - sv = make([]*types.Snapshot, 0) + sv = make([]types.Snapshot, 0) } else { sv = *v } @@ -25860,11 +25960,13 @@ func awsAwsquery_deserializeDocumentSnapshotList(v *[]*types.Snapshot, decoder s } for { if strings.EqualFold("Snapshot", t.Name.Local) { - var col *types.Snapshot + var col types.Snapshot nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSnapshot(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSnapshot(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -25877,23 +25979,25 @@ func awsAwsquery_deserializeDocumentSnapshotList(v *[]*types.Snapshot, decoder s return nil } -func awsAwsquery_deserializeDocumentSnapshotListUnwrapped(v *[]*types.Snapshot, decoder smithyxml.NodeDecoder) error { - var sv []*types.Snapshot +func awsAwsquery_deserializeDocumentSnapshotListUnwrapped(v *[]types.Snapshot, decoder smithyxml.NodeDecoder) error { + var sv []types.Snapshot if *v == nil { - sv = make([]*types.Snapshot, 0) + sv = make([]types.Snapshot, 0) } else { sv = *v } switch { default: - var mv *types.Snapshot + var mv types.Snapshot t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSnapshot(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSnapshot(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -25969,7 +26073,7 @@ func awsAwsquery_deserializeDocumentSnapshotSchedule(v **types.SnapshotSchedule, } if val != nil { xtv := string(val) - sv.ScheduleDescription = &xtv + sv.ScheduleDescription = ptr.String(xtv) } case strings.EqualFold("ScheduleIdentifier", t.Name.Local): @@ -25985,7 +26089,7 @@ func awsAwsquery_deserializeDocumentSnapshotSchedule(v **types.SnapshotSchedule, } if val != nil { xtv := string(val) - sv.ScheduleIdentifier = &xtv + sv.ScheduleIdentifier = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -26039,7 +26143,7 @@ func awsAwsquery_deserializeDocumentSnapshotScheduleAlreadyExistsFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26052,13 +26156,13 @@ func awsAwsquery_deserializeDocumentSnapshotScheduleAlreadyExistsFault(v **types return nil } -func awsAwsquery_deserializeDocumentSnapshotScheduleList(v *[]*types.SnapshotSchedule, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSnapshotScheduleList(v *[]types.SnapshotSchedule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SnapshotSchedule + var sv []types.SnapshotSchedule if *v == nil { - sv = make([]*types.SnapshotSchedule, 0) + sv = make([]types.SnapshotSchedule, 0) } else { sv = *v } @@ -26074,11 +26178,13 @@ func awsAwsquery_deserializeDocumentSnapshotScheduleList(v *[]*types.SnapshotSch } for { if strings.EqualFold("SnapshotSchedule", t.Name.Local) { - var col *types.SnapshotSchedule + var col types.SnapshotSchedule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSnapshotSchedule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSnapshotSchedule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -26091,23 +26197,25 @@ func awsAwsquery_deserializeDocumentSnapshotScheduleList(v *[]*types.SnapshotSch return nil } -func awsAwsquery_deserializeDocumentSnapshotScheduleListUnwrapped(v *[]*types.SnapshotSchedule, decoder smithyxml.NodeDecoder) error { - var sv []*types.SnapshotSchedule +func awsAwsquery_deserializeDocumentSnapshotScheduleListUnwrapped(v *[]types.SnapshotSchedule, decoder smithyxml.NodeDecoder) error { + var sv []types.SnapshotSchedule if *v == nil { - sv = make([]*types.SnapshotSchedule, 0) + sv = make([]types.SnapshotSchedule, 0) } else { sv = *v } switch { default: - var mv *types.SnapshotSchedule + var mv types.SnapshotSchedule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSnapshotSchedule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSnapshotSchedule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -26148,7 +26256,7 @@ func awsAwsquery_deserializeDocumentSnapshotScheduleNotFoundFault(v **types.Snap } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26196,7 +26304,7 @@ func awsAwsquery_deserializeDocumentSnapshotScheduleQuotaExceededFault(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26244,7 +26352,7 @@ func awsAwsquery_deserializeDocumentSnapshotScheduleUpdateInProgressFault(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26292,7 +26400,7 @@ func awsAwsquery_deserializeDocumentSNSInvalidTopicFault(v **types.SNSInvalidTop } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26340,7 +26448,7 @@ func awsAwsquery_deserializeDocumentSNSNoAuthorizationFault(v **types.SNSNoAutho } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26388,7 +26496,7 @@ func awsAwsquery_deserializeDocumentSNSTopicArnNotFoundFault(v **types.SNSTopicA } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26401,13 +26509,13 @@ func awsAwsquery_deserializeDocumentSNSTopicArnNotFoundFault(v **types.SNSTopicA return nil } -func awsAwsquery_deserializeDocumentSourceIdsList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSourceIdsList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -26425,20 +26533,17 @@ func awsAwsquery_deserializeDocumentSourceIdsList(v *[]*string, decoder smithyxm decoder = memberDecoder for { if strings.EqualFold("SourceId", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -26451,17 +26556,17 @@ func awsAwsquery_deserializeDocumentSourceIdsList(v *[]*string, decoder smithyxm return nil } -func awsAwsquery_deserializeDocumentSourceIdsListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentSourceIdsListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -26469,14 +26574,11 @@ func awsAwsquery_deserializeDocumentSourceIdsListUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -26518,7 +26620,7 @@ func awsAwsquery_deserializeDocumentSourceNotFoundFault(v **types.SourceNotFound } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26572,7 +26674,7 @@ func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.SubnetIdentifier = &xtv + sv.SubnetIdentifier = ptr.String(xtv) } case strings.EqualFold("SubnetStatus", t.Name.Local): @@ -26588,7 +26690,7 @@ func awsAwsquery_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N } if val != nil { xtv := string(val) - sv.SubnetStatus = &xtv + sv.SubnetStatus = ptr.String(xtv) } default: @@ -26636,7 +26738,7 @@ func awsAwsquery_deserializeDocumentSubnetAlreadyInUse(v **types.SubnetAlreadyIn } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26649,13 +26751,13 @@ func awsAwsquery_deserializeDocumentSubnetAlreadyInUse(v **types.SubnetAlreadyIn return nil } -func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSubnetList(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Subnet + var sv []types.Subnet if *v == nil { - sv = make([]*types.Subnet, 0) + sv = make([]types.Subnet, 0) } else { sv = *v } @@ -26671,11 +26773,13 @@ func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smith } for { if strings.EqualFold("Subnet", t.Name.Local) { - var col *types.Subnet + var col types.Subnet nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubnet(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSubnet(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -26688,23 +26792,25 @@ func awsAwsquery_deserializeDocumentSubnetList(v *[]*types.Subnet, decoder smith return nil } -func awsAwsquery_deserializeDocumentSubnetListUnwrapped(v *[]*types.Subnet, decoder smithyxml.NodeDecoder) error { - var sv []*types.Subnet +func awsAwsquery_deserializeDocumentSubnetListUnwrapped(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error { + var sv []types.Subnet if *v == nil { - sv = make([]*types.Subnet, 0) + sv = make([]types.Subnet, 0) } else { sv = *v } switch { default: - var mv *types.Subnet + var mv types.Subnet t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubnet(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSubnet(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -26745,7 +26851,7 @@ func awsAwsquery_deserializeDocumentSubscriptionAlreadyExistFault(v **types.Subs } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26793,7 +26899,7 @@ func awsAwsquery_deserializeDocumentSubscriptionCategoryNotFoundFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26841,7 +26947,7 @@ func awsAwsquery_deserializeDocumentSubscriptionEventIdNotFoundFault(v **types.S } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26889,7 +26995,7 @@ func awsAwsquery_deserializeDocumentSubscriptionNotFoundFault(v **types.Subscrip } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26937,7 +27043,7 @@ func awsAwsquery_deserializeDocumentSubscriptionSeverityNotFoundFault(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -26985,7 +27091,7 @@ func awsAwsquery_deserializeDocumentSupportedOperation(v **types.SupportedOperat } if val != nil { xtv := string(val) - sv.OperationName = &xtv + sv.OperationName = ptr.String(xtv) } default: @@ -26998,13 +27104,13 @@ func awsAwsquery_deserializeDocumentSupportedOperation(v **types.SupportedOperat return nil } -func awsAwsquery_deserializeDocumentSupportedOperationList(v *[]*types.SupportedOperation, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSupportedOperationList(v *[]types.SupportedOperation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SupportedOperation + var sv []types.SupportedOperation if *v == nil { - sv = make([]*types.SupportedOperation, 0) + sv = make([]types.SupportedOperation, 0) } else { sv = *v } @@ -27020,11 +27126,13 @@ func awsAwsquery_deserializeDocumentSupportedOperationList(v *[]*types.Supported } for { if strings.EqualFold("SupportedOperation", t.Name.Local) { - var col *types.SupportedOperation + var col types.SupportedOperation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSupportedOperation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSupportedOperation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -27037,23 +27145,25 @@ func awsAwsquery_deserializeDocumentSupportedOperationList(v *[]*types.Supported return nil } -func awsAwsquery_deserializeDocumentSupportedOperationListUnwrapped(v *[]*types.SupportedOperation, decoder smithyxml.NodeDecoder) error { - var sv []*types.SupportedOperation +func awsAwsquery_deserializeDocumentSupportedOperationListUnwrapped(v *[]types.SupportedOperation, decoder smithyxml.NodeDecoder) error { + var sv []types.SupportedOperation if *v == nil { - sv = make([]*types.SupportedOperation, 0) + sv = make([]types.SupportedOperation, 0) } else { sv = *v } switch { default: - var mv *types.SupportedOperation + var mv types.SupportedOperation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSupportedOperation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSupportedOperation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -27094,7 +27204,7 @@ func awsAwsquery_deserializeDocumentSupportedPlatform(v **types.SupportedPlatfor } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -27107,13 +27217,13 @@ func awsAwsquery_deserializeDocumentSupportedPlatform(v **types.SupportedPlatfor return nil } -func awsAwsquery_deserializeDocumentSupportedPlatformsList(v *[]*types.SupportedPlatform, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSupportedPlatformsList(v *[]types.SupportedPlatform, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SupportedPlatform + var sv []types.SupportedPlatform if *v == nil { - sv = make([]*types.SupportedPlatform, 0) + sv = make([]types.SupportedPlatform, 0) } else { sv = *v } @@ -27129,11 +27239,13 @@ func awsAwsquery_deserializeDocumentSupportedPlatformsList(v *[]*types.Supported } for { if strings.EqualFold("SupportedPlatform", t.Name.Local) { - var col *types.SupportedPlatform + var col types.SupportedPlatform nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSupportedPlatform(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSupportedPlatform(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -27146,23 +27258,25 @@ func awsAwsquery_deserializeDocumentSupportedPlatformsList(v *[]*types.Supported return nil } -func awsAwsquery_deserializeDocumentSupportedPlatformsListUnwrapped(v *[]*types.SupportedPlatform, decoder smithyxml.NodeDecoder) error { - var sv []*types.SupportedPlatform +func awsAwsquery_deserializeDocumentSupportedPlatformsListUnwrapped(v *[]types.SupportedPlatform, decoder smithyxml.NodeDecoder) error { + var sv []types.SupportedPlatform if *v == nil { - sv = make([]*types.SupportedPlatform, 0) + sv = make([]types.SupportedPlatform, 0) } else { sv = *v } switch { default: - var mv *types.SupportedPlatform + var mv types.SupportedPlatform t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSupportedPlatform(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSupportedPlatform(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -27203,7 +27317,7 @@ func awsAwsquery_deserializeDocumentTableLimitExceededFault(v **types.TableLimit } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27251,7 +27365,7 @@ func awsAwsquery_deserializeDocumentTableRestoreNotFoundFault(v **types.TableRes } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27299,7 +27413,7 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta } if val != nil { xtv := string(val) - sv.ClusterIdentifier = &xtv + sv.ClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -27315,7 +27429,7 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("NewTableName", t.Name.Local): @@ -27331,7 +27445,7 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta } if val != nil { xtv := string(val) - sv.NewTableName = &xtv + sv.NewTableName = ptr.String(xtv) } case strings.EqualFold("ProgressInMegaBytes", t.Name.Local): @@ -27348,7 +27462,7 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta if err != nil { return err } - sv.ProgressInMegaBytes = &i64 + sv.ProgressInMegaBytes = ptr.Int64(i64) } case strings.EqualFold("RequestTime", t.Name.Local): @@ -27365,7 +27479,7 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta if err != nil { return err } - sv.RequestTime = &t + sv.RequestTime = ptr.Time(t) } case strings.EqualFold("SnapshotIdentifier", t.Name.Local): @@ -27381,7 +27495,7 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta } if val != nil { xtv := string(val) - sv.SnapshotIdentifier = &xtv + sv.SnapshotIdentifier = ptr.String(xtv) } case strings.EqualFold("SourceDatabaseName", t.Name.Local): @@ -27397,7 +27511,7 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta } if val != nil { xtv := string(val) - sv.SourceDatabaseName = &xtv + sv.SourceDatabaseName = ptr.String(xtv) } case strings.EqualFold("SourceSchemaName", t.Name.Local): @@ -27413,7 +27527,7 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta } if val != nil { xtv := string(val) - sv.SourceSchemaName = &xtv + sv.SourceSchemaName = ptr.String(xtv) } case strings.EqualFold("SourceTableName", t.Name.Local): @@ -27429,7 +27543,7 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta } if val != nil { xtv := string(val) - sv.SourceTableName = &xtv + sv.SourceTableName = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -27458,7 +27572,7 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta } if val != nil { xtv := string(val) - sv.TableRestoreRequestId = &xtv + sv.TableRestoreRequestId = ptr.String(xtv) } case strings.EqualFold("TargetDatabaseName", t.Name.Local): @@ -27474,7 +27588,7 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta } if val != nil { xtv := string(val) - sv.TargetDatabaseName = &xtv + sv.TargetDatabaseName = ptr.String(xtv) } case strings.EqualFold("TargetSchemaName", t.Name.Local): @@ -27490,7 +27604,7 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta } if val != nil { xtv := string(val) - sv.TargetSchemaName = &xtv + sv.TargetSchemaName = ptr.String(xtv) } case strings.EqualFold("TotalDataInMegaBytes", t.Name.Local): @@ -27507,7 +27621,7 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta if err != nil { return err } - sv.TotalDataInMegaBytes = &i64 + sv.TotalDataInMegaBytes = ptr.Int64(i64) } default: @@ -27520,13 +27634,13 @@ func awsAwsquery_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSta return nil } -func awsAwsquery_deserializeDocumentTableRestoreStatusList(v *[]*types.TableRestoreStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTableRestoreStatusList(v *[]types.TableRestoreStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TableRestoreStatus + var sv []types.TableRestoreStatus if *v == nil { - sv = make([]*types.TableRestoreStatus, 0) + sv = make([]types.TableRestoreStatus, 0) } else { sv = *v } @@ -27542,11 +27656,13 @@ func awsAwsquery_deserializeDocumentTableRestoreStatusList(v *[]*types.TableRest } for { if strings.EqualFold("TableRestoreStatus", t.Name.Local) { - var col *types.TableRestoreStatus + var col types.TableRestoreStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTableRestoreStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTableRestoreStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -27559,23 +27675,25 @@ func awsAwsquery_deserializeDocumentTableRestoreStatusList(v *[]*types.TableRest return nil } -func awsAwsquery_deserializeDocumentTableRestoreStatusListUnwrapped(v *[]*types.TableRestoreStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.TableRestoreStatus +func awsAwsquery_deserializeDocumentTableRestoreStatusListUnwrapped(v *[]types.TableRestoreStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.TableRestoreStatus if *v == nil { - sv = make([]*types.TableRestoreStatus, 0) + sv = make([]types.TableRestoreStatus, 0) } else { sv = *v } switch { default: - var mv *types.TableRestoreStatus + var mv types.TableRestoreStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTableRestoreStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTableRestoreStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -27616,7 +27734,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -27632,7 +27750,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -27680,7 +27798,7 @@ func awsAwsquery_deserializeDocumentTaggedResource(v **types.TaggedResource, dec } if val != nil { xtv := string(val) - sv.ResourceName = &xtv + sv.ResourceName = ptr.String(xtv) } case strings.EqualFold("ResourceType", t.Name.Local): @@ -27696,7 +27814,7 @@ func awsAwsquery_deserializeDocumentTaggedResource(v **types.TaggedResource, dec } if val != nil { xtv := string(val) - sv.ResourceType = &xtv + sv.ResourceType = ptr.String(xtv) } case strings.EqualFold("Tag", t.Name.Local): @@ -27715,13 +27833,13 @@ func awsAwsquery_deserializeDocumentTaggedResource(v **types.TaggedResource, dec return nil } -func awsAwsquery_deserializeDocumentTaggedResourceList(v *[]*types.TaggedResource, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTaggedResourceList(v *[]types.TaggedResource, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TaggedResource + var sv []types.TaggedResource if *v == nil { - sv = make([]*types.TaggedResource, 0) + sv = make([]types.TaggedResource, 0) } else { sv = *v } @@ -27737,11 +27855,13 @@ func awsAwsquery_deserializeDocumentTaggedResourceList(v *[]*types.TaggedResourc } for { if strings.EqualFold("TaggedResource", t.Name.Local) { - var col *types.TaggedResource + var col types.TaggedResource nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTaggedResource(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTaggedResource(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -27754,23 +27874,25 @@ func awsAwsquery_deserializeDocumentTaggedResourceList(v *[]*types.TaggedResourc return nil } -func awsAwsquery_deserializeDocumentTaggedResourceListUnwrapped(v *[]*types.TaggedResource, decoder smithyxml.NodeDecoder) error { - var sv []*types.TaggedResource +func awsAwsquery_deserializeDocumentTaggedResourceListUnwrapped(v *[]types.TaggedResource, decoder smithyxml.NodeDecoder) error { + var sv []types.TaggedResource if *v == nil { - sv = make([]*types.TaggedResource, 0) + sv = make([]types.TaggedResource, 0) } else { sv = *v } switch { default: - var mv *types.TaggedResource + var mv types.TaggedResource t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTaggedResource(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTaggedResource(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -27811,7 +27933,7 @@ func awsAwsquery_deserializeDocumentTagLimitExceededFault(v **types.TagLimitExce } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -27824,13 +27946,13 @@ func awsAwsquery_deserializeDocumentTagLimitExceededFault(v **types.TagLimitExce return nil } -func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -27846,11 +27968,13 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N } for { if strings.EqualFold("Tag", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -27863,35 +27987,37 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentTrackList(v *[]*types.MaintenanceTrack, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTrackList(v *[]types.MaintenanceTrack, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.MaintenanceTrack + var sv []types.MaintenanceTrack if *v == nil { - sv = make([]*types.MaintenanceTrack, 0) + sv = make([]types.MaintenanceTrack, 0) } else { sv = *v } @@ -27907,11 +28033,13 @@ func awsAwsquery_deserializeDocumentTrackList(v *[]*types.MaintenanceTrack, deco } for { if strings.EqualFold("MaintenanceTrack", t.Name.Local) { - var col *types.MaintenanceTrack + var col types.MaintenanceTrack nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMaintenanceTrack(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentMaintenanceTrack(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -27924,23 +28052,25 @@ func awsAwsquery_deserializeDocumentTrackList(v *[]*types.MaintenanceTrack, deco return nil } -func awsAwsquery_deserializeDocumentTrackListUnwrapped(v *[]*types.MaintenanceTrack, decoder smithyxml.NodeDecoder) error { - var sv []*types.MaintenanceTrack +func awsAwsquery_deserializeDocumentTrackListUnwrapped(v *[]types.MaintenanceTrack, decoder smithyxml.NodeDecoder) error { + var sv []types.MaintenanceTrack if *v == nil { - sv = make([]*types.MaintenanceTrack, 0) + sv = make([]types.MaintenanceTrack, 0) } else { sv = *v } switch { default: - var mv *types.MaintenanceTrack + var mv types.MaintenanceTrack t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMaintenanceTrack(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentMaintenanceTrack(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -27981,7 +28111,7 @@ func awsAwsquery_deserializeDocumentUnauthorizedOperation(v **types.Unauthorized } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -28029,7 +28159,7 @@ func awsAwsquery_deserializeDocumentUnknownSnapshotCopyRegionFault(v **types.Unk } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -28077,7 +28207,7 @@ func awsAwsquery_deserializeDocumentUnsupportedOperationFault(v **types.Unsuppor } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -28125,7 +28255,7 @@ func awsAwsquery_deserializeDocumentUnsupportedOptionFault(v **types.Unsupported } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -28173,7 +28303,7 @@ func awsAwsquery_deserializeDocumentUpdateTarget(v **types.UpdateTarget, decoder } if val != nil { xtv := string(val) - sv.DatabaseVersion = &xtv + sv.DatabaseVersion = ptr.String(xtv) } case strings.EqualFold("MaintenanceTrackName", t.Name.Local): @@ -28189,7 +28319,7 @@ func awsAwsquery_deserializeDocumentUpdateTarget(v **types.UpdateTarget, decoder } if val != nil { xtv := string(val) - sv.MaintenanceTrackName = &xtv + sv.MaintenanceTrackName = ptr.String(xtv) } case strings.EqualFold("SupportedOperations", t.Name.Local): @@ -28244,7 +28374,7 @@ func awsAwsquery_deserializeDocumentUsageLimit(v **types.UsageLimit, decoder smi if err != nil { return err } - sv.Amount = &i64 + sv.Amount = i64 } case strings.EqualFold("BreachAction", t.Name.Local): @@ -28273,7 +28403,7 @@ func awsAwsquery_deserializeDocumentUsageLimit(v **types.UsageLimit, decoder smi } if val != nil { xtv := string(val) - sv.ClusterIdentifier = &xtv + sv.ClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("FeatureType", t.Name.Local): @@ -28334,7 +28464,7 @@ func awsAwsquery_deserializeDocumentUsageLimit(v **types.UsageLimit, decoder smi } if val != nil { xtv := string(val) - sv.UsageLimitId = &xtv + sv.UsageLimitId = ptr.String(xtv) } default: @@ -28382,7 +28512,7 @@ func awsAwsquery_deserializeDocumentUsageLimitAlreadyExistsFault(v **types.Usage } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -28430,7 +28560,7 @@ func awsAwsquery_deserializeDocumentUsageLimitNotFoundFault(v **types.UsageLimit } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -28443,13 +28573,13 @@ func awsAwsquery_deserializeDocumentUsageLimitNotFoundFault(v **types.UsageLimit return nil } -func awsAwsquery_deserializeDocumentUsageLimits(v *[]*types.UsageLimit, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentUsageLimits(v *[]types.UsageLimit, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.UsageLimit + var sv []types.UsageLimit if *v == nil { - sv = make([]*types.UsageLimit, 0) + sv = make([]types.UsageLimit, 0) } else { sv = *v } @@ -28465,11 +28595,13 @@ func awsAwsquery_deserializeDocumentUsageLimits(v *[]*types.UsageLimit, decoder } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.UsageLimit + var col types.UsageLimit nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUsageLimit(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentUsageLimit(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -28482,23 +28614,25 @@ func awsAwsquery_deserializeDocumentUsageLimits(v *[]*types.UsageLimit, decoder return nil } -func awsAwsquery_deserializeDocumentUsageLimitsUnwrapped(v *[]*types.UsageLimit, decoder smithyxml.NodeDecoder) error { - var sv []*types.UsageLimit +func awsAwsquery_deserializeDocumentUsageLimitsUnwrapped(v *[]types.UsageLimit, decoder smithyxml.NodeDecoder) error { + var sv []types.UsageLimit if *v == nil { - sv = make([]*types.UsageLimit, 0) + sv = make([]types.UsageLimit, 0) } else { sv = *v } switch { default: - var mv *types.UsageLimit + var mv types.UsageLimit t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUsageLimit(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentUsageLimit(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -28539,7 +28673,7 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSecu } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("VpcSecurityGroupId", t.Name.Local): @@ -28555,7 +28689,7 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSecu } if val != nil { xtv := string(val) - sv.VpcSecurityGroupId = &xtv + sv.VpcSecurityGroupId = ptr.String(xtv) } default: @@ -28568,13 +28702,13 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSecu return nil } -func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VpcSecurityGroupMembership + var sv []types.VpcSecurityGroupMembership if *v == nil { - sv = make([]*types.VpcSecurityGroupMembership, 0) + sv = make([]types.VpcSecurityGroupMembership, 0) } else { sv = *v } @@ -28590,11 +28724,13 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types.V } for { if strings.EqualFold("VpcSecurityGroup", t.Name.Local) { - var col *types.VpcSecurityGroupMembership + var col types.VpcSecurityGroupMembership nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -28607,23 +28743,25 @@ func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(v *[]*types.V return nil } -func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipListUnwrapped(v *[]*types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { - var sv []*types.VpcSecurityGroupMembership +func awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipListUnwrapped(v *[]types.VpcSecurityGroupMembership, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcSecurityGroupMembership if *v == nil { - sv = make([]*types.VpcSecurityGroupMembership, 0) + sv = make([]types.VpcSecurityGroupMembership, 0) } else { sv = *v } switch { default: - var mv *types.VpcSecurityGroupMembership + var mv types.VpcSecurityGroupMembership t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembership(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -28867,7 +29005,7 @@ func awsAwsquery_deserializeOpDocumentCancelResizeOutput(v **CancelResizeOutput, if err != nil { return err } - sv.AvgResizeRateInMegaBytesPerSecond = &f64 + sv.AvgResizeRateInMegaBytesPerSecond = ptr.Float64(f64) } case strings.EqualFold("DataTransferProgressPercent", t.Name.Local): @@ -28884,7 +29022,7 @@ func awsAwsquery_deserializeOpDocumentCancelResizeOutput(v **CancelResizeOutput, if err != nil { return err } - sv.DataTransferProgressPercent = &f64 + sv.DataTransferProgressPercent = ptr.Float64(f64) } case strings.EqualFold("ElapsedTimeInSeconds", t.Name.Local): @@ -28901,7 +29039,7 @@ func awsAwsquery_deserializeOpDocumentCancelResizeOutput(v **CancelResizeOutput, if err != nil { return err } - sv.ElapsedTimeInSeconds = &i64 + sv.ElapsedTimeInSeconds = ptr.Int64(i64) } case strings.EqualFold("EstimatedTimeToCompletionInSeconds", t.Name.Local): @@ -28918,7 +29056,7 @@ func awsAwsquery_deserializeOpDocumentCancelResizeOutput(v **CancelResizeOutput, if err != nil { return err } - sv.EstimatedTimeToCompletionInSeconds = &i64 + sv.EstimatedTimeToCompletionInSeconds = ptr.Int64(i64) } case strings.EqualFold("ImportTablesCompleted", t.Name.Local): @@ -28952,7 +29090,7 @@ func awsAwsquery_deserializeOpDocumentCancelResizeOutput(v **CancelResizeOutput, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("ProgressInMegaBytes", t.Name.Local): @@ -28969,7 +29107,7 @@ func awsAwsquery_deserializeOpDocumentCancelResizeOutput(v **CancelResizeOutput, if err != nil { return err } - sv.ProgressInMegaBytes = &i64 + sv.ProgressInMegaBytes = ptr.Int64(i64) } case strings.EqualFold("ResizeType", t.Name.Local): @@ -28985,7 +29123,7 @@ func awsAwsquery_deserializeOpDocumentCancelResizeOutput(v **CancelResizeOutput, } if val != nil { xtv := string(val) - sv.ResizeType = &xtv + sv.ResizeType = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -29001,7 +29139,7 @@ func awsAwsquery_deserializeOpDocumentCancelResizeOutput(v **CancelResizeOutput, } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("TargetClusterType", t.Name.Local): @@ -29017,7 +29155,7 @@ func awsAwsquery_deserializeOpDocumentCancelResizeOutput(v **CancelResizeOutput, } if val != nil { xtv := string(val) - sv.TargetClusterType = &xtv + sv.TargetClusterType = ptr.String(xtv) } case strings.EqualFold("TargetEncryptionType", t.Name.Local): @@ -29033,7 +29171,7 @@ func awsAwsquery_deserializeOpDocumentCancelResizeOutput(v **CancelResizeOutput, } if val != nil { xtv := string(val) - sv.TargetEncryptionType = &xtv + sv.TargetEncryptionType = ptr.String(xtv) } case strings.EqualFold("TargetNodeType", t.Name.Local): @@ -29049,7 +29187,7 @@ func awsAwsquery_deserializeOpDocumentCancelResizeOutput(v **CancelResizeOutput, } if val != nil { xtv := string(val) - sv.TargetNodeType = &xtv + sv.TargetNodeType = ptr.String(xtv) } case strings.EqualFold("TargetNumberOfNodes", t.Name.Local): @@ -29083,7 +29221,7 @@ func awsAwsquery_deserializeOpDocumentCancelResizeOutput(v **CancelResizeOutput, if err != nil { return err } - sv.TotalResizeDataInMegaBytes = &i64 + sv.TotalResizeDataInMegaBytes = ptr.Int64(i64) } default: @@ -29474,7 +29612,7 @@ func awsAwsquery_deserializeOpDocumentCreateScheduledActionOutput(v **CreateSche if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case strings.EqualFold("IamRole", t.Name.Local): @@ -29490,7 +29628,7 @@ func awsAwsquery_deserializeOpDocumentCreateScheduledActionOutput(v **CreateSche } if val != nil { xtv := string(val) - sv.IamRole = &xtv + sv.IamRole = ptr.String(xtv) } case strings.EqualFold("NextInvocations", t.Name.Local): @@ -29512,7 +29650,7 @@ func awsAwsquery_deserializeOpDocumentCreateScheduledActionOutput(v **CreateSche } if val != nil { xtv := string(val) - sv.Schedule = &xtv + sv.Schedule = ptr.String(xtv) } case strings.EqualFold("ScheduledActionDescription", t.Name.Local): @@ -29528,7 +29666,7 @@ func awsAwsquery_deserializeOpDocumentCreateScheduledActionOutput(v **CreateSche } if val != nil { xtv := string(val) - sv.ScheduledActionDescription = &xtv + sv.ScheduledActionDescription = ptr.String(xtv) } case strings.EqualFold("ScheduledActionName", t.Name.Local): @@ -29544,7 +29682,7 @@ func awsAwsquery_deserializeOpDocumentCreateScheduledActionOutput(v **CreateSche } if val != nil { xtv := string(val) - sv.ScheduledActionName = &xtv + sv.ScheduledActionName = ptr.String(xtv) } case strings.EqualFold("StartTime", t.Name.Local): @@ -29561,7 +29699,7 @@ func awsAwsquery_deserializeOpDocumentCreateScheduledActionOutput(v **CreateSche if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("State", t.Name.Local): @@ -29701,7 +29839,7 @@ func awsAwsquery_deserializeOpDocumentCreateSnapshotScheduleOutput(v **CreateSna } if val != nil { xtv := string(val) - sv.ScheduleDescription = &xtv + sv.ScheduleDescription = ptr.String(xtv) } case strings.EqualFold("ScheduleIdentifier", t.Name.Local): @@ -29717,7 +29855,7 @@ func awsAwsquery_deserializeOpDocumentCreateSnapshotScheduleOutput(v **CreateSna } if val != nil { xtv := string(val) - sv.ScheduleIdentifier = &xtv + sv.ScheduleIdentifier = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -29804,7 +29942,7 @@ func awsAwsquery_deserializeOpDocumentCreateUsageLimitOutput(v **CreateUsageLimi if err != nil { return err } - sv.Amount = &i64 + sv.Amount = i64 } case strings.EqualFold("BreachAction", t.Name.Local): @@ -29833,7 +29971,7 @@ func awsAwsquery_deserializeOpDocumentCreateUsageLimitOutput(v **CreateUsageLimi } if val != nil { xtv := string(val) - sv.ClusterIdentifier = &xtv + sv.ClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("FeatureType", t.Name.Local): @@ -29894,7 +30032,7 @@ func awsAwsquery_deserializeOpDocumentCreateUsageLimitOutput(v **CreateUsageLimi } if val != nil { xtv := string(val) - sv.UsageLimitId = &xtv + sv.UsageLimitId = ptr.String(xtv) } default: @@ -30414,7 +30552,7 @@ func awsAwsquery_deserializeOpDocumentDescribeClusterDbRevisionsOutput(v **Descr } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -30462,7 +30600,7 @@ func awsAwsquery_deserializeOpDocumentDescribeClusterParameterGroupsOutput(v **D } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ParameterGroups", t.Name.Local): @@ -30516,7 +30654,7 @@ func awsAwsquery_deserializeOpDocumentDescribeClusterParametersOutput(v **Descri } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Parameters", t.Name.Local): @@ -30576,7 +30714,7 @@ func awsAwsquery_deserializeOpDocumentDescribeClusterSecurityGroupsOutput(v **De } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -30624,7 +30762,7 @@ func awsAwsquery_deserializeOpDocumentDescribeClusterSnapshotsOutput(v **Describ } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("Snapshots", t.Name.Local): @@ -30684,7 +30822,7 @@ func awsAwsquery_deserializeOpDocumentDescribeClustersOutput(v **DescribeCluster } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -30738,7 +30876,7 @@ func awsAwsquery_deserializeOpDocumentDescribeClusterSubnetGroupsOutput(v **Desc } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -30792,7 +30930,7 @@ func awsAwsquery_deserializeOpDocumentDescribeClusterTracksOutput(v **DescribeCl } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -30846,7 +30984,7 @@ func awsAwsquery_deserializeOpDocumentDescribeClusterVersionsOutput(v **Describe } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -30976,7 +31114,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEventsOutput(v **DescribeEventsOut } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -31030,7 +31168,7 @@ func awsAwsquery_deserializeOpDocumentDescribeEventSubscriptionsOutput(v **Descr } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -31084,7 +31222,7 @@ func awsAwsquery_deserializeOpDocumentDescribeHsmClientCertificatesOutput(v **De } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -31138,7 +31276,7 @@ func awsAwsquery_deserializeOpDocumentDescribeHsmConfigurationsOutput(v **Descri } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } default: @@ -31186,7 +31324,7 @@ func awsAwsquery_deserializeOpDocumentDescribeLoggingStatusOutput(v **DescribeLo } if val != nil { xtv := string(val) - sv.BucketName = &xtv + sv.BucketName = ptr.String(xtv) } case strings.EqualFold("LastFailureMessage", t.Name.Local): @@ -31202,7 +31340,7 @@ func awsAwsquery_deserializeOpDocumentDescribeLoggingStatusOutput(v **DescribeLo } if val != nil { xtv := string(val) - sv.LastFailureMessage = &xtv + sv.LastFailureMessage = ptr.String(xtv) } case strings.EqualFold("LastFailureTime", t.Name.Local): @@ -31219,7 +31357,7 @@ func awsAwsquery_deserializeOpDocumentDescribeLoggingStatusOutput(v **DescribeLo if err != nil { return err } - sv.LastFailureTime = &t + sv.LastFailureTime = ptr.Time(t) } case strings.EqualFold("LastSuccessfulDeliveryTime", t.Name.Local): @@ -31236,7 +31374,7 @@ func awsAwsquery_deserializeOpDocumentDescribeLoggingStatusOutput(v **DescribeLo if err != nil { return err } - sv.LastSuccessfulDeliveryTime = &t + sv.LastSuccessfulDeliveryTime = ptr.Time(t) } case strings.EqualFold("LoggingEnabled", t.Name.Local): @@ -31252,7 +31390,7 @@ func awsAwsquery_deserializeOpDocumentDescribeLoggingStatusOutput(v **DescribeLo if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.LoggingEnabled = &xtv + sv.LoggingEnabled = xtv } case strings.EqualFold("S3KeyPrefix", t.Name.Local): @@ -31268,7 +31406,7 @@ func awsAwsquery_deserializeOpDocumentDescribeLoggingStatusOutput(v **DescribeLo } if val != nil { xtv := string(val) - sv.S3KeyPrefix = &xtv + sv.S3KeyPrefix = ptr.String(xtv) } default: @@ -31316,7 +31454,7 @@ func awsAwsquery_deserializeOpDocumentDescribeNodeConfigurationOptionsOutput(v * } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("NodeConfigurationOptionList", t.Name.Local): @@ -31370,7 +31508,7 @@ func awsAwsquery_deserializeOpDocumentDescribeOrderableClusterOptionsOutput(v ** } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("OrderableClusterOptions", t.Name.Local): @@ -31424,7 +31562,7 @@ func awsAwsquery_deserializeOpDocumentDescribeReservedNodeOfferingsOutput(v **De } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ReservedNodeOfferings", t.Name.Local): @@ -31478,7 +31616,7 @@ func awsAwsquery_deserializeOpDocumentDescribeReservedNodesOutput(v **DescribeRe } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ReservedNodes", t.Name.Local): @@ -31533,7 +31671,7 @@ func awsAwsquery_deserializeOpDocumentDescribeResizeOutput(v **DescribeResizeOut if err != nil { return err } - sv.AvgResizeRateInMegaBytesPerSecond = &f64 + sv.AvgResizeRateInMegaBytesPerSecond = ptr.Float64(f64) } case strings.EqualFold("DataTransferProgressPercent", t.Name.Local): @@ -31550,7 +31688,7 @@ func awsAwsquery_deserializeOpDocumentDescribeResizeOutput(v **DescribeResizeOut if err != nil { return err } - sv.DataTransferProgressPercent = &f64 + sv.DataTransferProgressPercent = ptr.Float64(f64) } case strings.EqualFold("ElapsedTimeInSeconds", t.Name.Local): @@ -31567,7 +31705,7 @@ func awsAwsquery_deserializeOpDocumentDescribeResizeOutput(v **DescribeResizeOut if err != nil { return err } - sv.ElapsedTimeInSeconds = &i64 + sv.ElapsedTimeInSeconds = ptr.Int64(i64) } case strings.EqualFold("EstimatedTimeToCompletionInSeconds", t.Name.Local): @@ -31584,7 +31722,7 @@ func awsAwsquery_deserializeOpDocumentDescribeResizeOutput(v **DescribeResizeOut if err != nil { return err } - sv.EstimatedTimeToCompletionInSeconds = &i64 + sv.EstimatedTimeToCompletionInSeconds = ptr.Int64(i64) } case strings.EqualFold("ImportTablesCompleted", t.Name.Local): @@ -31618,7 +31756,7 @@ func awsAwsquery_deserializeOpDocumentDescribeResizeOutput(v **DescribeResizeOut } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("ProgressInMegaBytes", t.Name.Local): @@ -31635,7 +31773,7 @@ func awsAwsquery_deserializeOpDocumentDescribeResizeOutput(v **DescribeResizeOut if err != nil { return err } - sv.ProgressInMegaBytes = &i64 + sv.ProgressInMegaBytes = ptr.Int64(i64) } case strings.EqualFold("ResizeType", t.Name.Local): @@ -31651,7 +31789,7 @@ func awsAwsquery_deserializeOpDocumentDescribeResizeOutput(v **DescribeResizeOut } if val != nil { xtv := string(val) - sv.ResizeType = &xtv + sv.ResizeType = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -31667,7 +31805,7 @@ func awsAwsquery_deserializeOpDocumentDescribeResizeOutput(v **DescribeResizeOut } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } case strings.EqualFold("TargetClusterType", t.Name.Local): @@ -31683,7 +31821,7 @@ func awsAwsquery_deserializeOpDocumentDescribeResizeOutput(v **DescribeResizeOut } if val != nil { xtv := string(val) - sv.TargetClusterType = &xtv + sv.TargetClusterType = ptr.String(xtv) } case strings.EqualFold("TargetEncryptionType", t.Name.Local): @@ -31699,7 +31837,7 @@ func awsAwsquery_deserializeOpDocumentDescribeResizeOutput(v **DescribeResizeOut } if val != nil { xtv := string(val) - sv.TargetEncryptionType = &xtv + sv.TargetEncryptionType = ptr.String(xtv) } case strings.EqualFold("TargetNodeType", t.Name.Local): @@ -31715,7 +31853,7 @@ func awsAwsquery_deserializeOpDocumentDescribeResizeOutput(v **DescribeResizeOut } if val != nil { xtv := string(val) - sv.TargetNodeType = &xtv + sv.TargetNodeType = ptr.String(xtv) } case strings.EqualFold("TargetNumberOfNodes", t.Name.Local): @@ -31749,7 +31887,7 @@ func awsAwsquery_deserializeOpDocumentDescribeResizeOutput(v **DescribeResizeOut if err != nil { return err } - sv.TotalResizeDataInMegaBytes = &i64 + sv.TotalResizeDataInMegaBytes = ptr.Int64(i64) } default: @@ -31797,7 +31935,7 @@ func awsAwsquery_deserializeOpDocumentDescribeScheduledActionsOutput(v **Describ } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ScheduledActions", t.Name.Local): @@ -31851,7 +31989,7 @@ func awsAwsquery_deserializeOpDocumentDescribeSnapshotCopyGrantsOutput(v **Descr } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("SnapshotCopyGrants", t.Name.Local): @@ -31905,7 +32043,7 @@ func awsAwsquery_deserializeOpDocumentDescribeSnapshotSchedulesOutput(v **Descri } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("SnapshotSchedules", t.Name.Local): @@ -31960,7 +32098,7 @@ func awsAwsquery_deserializeOpDocumentDescribeStorageOutput(v **DescribeStorageO if err != nil { return err } - sv.TotalBackupSizeInMegaBytes = &f64 + sv.TotalBackupSizeInMegaBytes = f64 } case strings.EqualFold("TotalProvisionedStorageInMegaBytes", t.Name.Local): @@ -31977,7 +32115,7 @@ func awsAwsquery_deserializeOpDocumentDescribeStorageOutput(v **DescribeStorageO if err != nil { return err } - sv.TotalProvisionedStorageInMegaBytes = &f64 + sv.TotalProvisionedStorageInMegaBytes = f64 } default: @@ -32025,7 +32163,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTableRestoreStatusOutput(v **Descr } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("TableRestoreStatusDetails", t.Name.Local): @@ -32079,7 +32217,7 @@ func awsAwsquery_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("TaggedResources", t.Name.Local): @@ -32133,7 +32271,7 @@ func awsAwsquery_deserializeOpDocumentDescribeUsageLimitsOutput(v **DescribeUsag } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("UsageLimits", t.Name.Local): @@ -32187,7 +32325,7 @@ func awsAwsquery_deserializeOpDocumentDisableLoggingOutput(v **DisableLoggingOut } if val != nil { xtv := string(val) - sv.BucketName = &xtv + sv.BucketName = ptr.String(xtv) } case strings.EqualFold("LastFailureMessage", t.Name.Local): @@ -32203,7 +32341,7 @@ func awsAwsquery_deserializeOpDocumentDisableLoggingOutput(v **DisableLoggingOut } if val != nil { xtv := string(val) - sv.LastFailureMessage = &xtv + sv.LastFailureMessage = ptr.String(xtv) } case strings.EqualFold("LastFailureTime", t.Name.Local): @@ -32220,7 +32358,7 @@ func awsAwsquery_deserializeOpDocumentDisableLoggingOutput(v **DisableLoggingOut if err != nil { return err } - sv.LastFailureTime = &t + sv.LastFailureTime = ptr.Time(t) } case strings.EqualFold("LastSuccessfulDeliveryTime", t.Name.Local): @@ -32237,7 +32375,7 @@ func awsAwsquery_deserializeOpDocumentDisableLoggingOutput(v **DisableLoggingOut if err != nil { return err } - sv.LastSuccessfulDeliveryTime = &t + sv.LastSuccessfulDeliveryTime = ptr.Time(t) } case strings.EqualFold("LoggingEnabled", t.Name.Local): @@ -32253,7 +32391,7 @@ func awsAwsquery_deserializeOpDocumentDisableLoggingOutput(v **DisableLoggingOut if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.LoggingEnabled = &xtv + sv.LoggingEnabled = xtv } case strings.EqualFold("S3KeyPrefix", t.Name.Local): @@ -32269,7 +32407,7 @@ func awsAwsquery_deserializeOpDocumentDisableLoggingOutput(v **DisableLoggingOut } if val != nil { xtv := string(val) - sv.S3KeyPrefix = &xtv + sv.S3KeyPrefix = ptr.String(xtv) } default: @@ -32355,7 +32493,7 @@ func awsAwsquery_deserializeOpDocumentEnableLoggingOutput(v **EnableLoggingOutpu } if val != nil { xtv := string(val) - sv.BucketName = &xtv + sv.BucketName = ptr.String(xtv) } case strings.EqualFold("LastFailureMessage", t.Name.Local): @@ -32371,7 +32509,7 @@ func awsAwsquery_deserializeOpDocumentEnableLoggingOutput(v **EnableLoggingOutpu } if val != nil { xtv := string(val) - sv.LastFailureMessage = &xtv + sv.LastFailureMessage = ptr.String(xtv) } case strings.EqualFold("LastFailureTime", t.Name.Local): @@ -32388,7 +32526,7 @@ func awsAwsquery_deserializeOpDocumentEnableLoggingOutput(v **EnableLoggingOutpu if err != nil { return err } - sv.LastFailureTime = &t + sv.LastFailureTime = ptr.Time(t) } case strings.EqualFold("LastSuccessfulDeliveryTime", t.Name.Local): @@ -32405,7 +32543,7 @@ func awsAwsquery_deserializeOpDocumentEnableLoggingOutput(v **EnableLoggingOutpu if err != nil { return err } - sv.LastSuccessfulDeliveryTime = &t + sv.LastSuccessfulDeliveryTime = ptr.Time(t) } case strings.EqualFold("LoggingEnabled", t.Name.Local): @@ -32421,7 +32559,7 @@ func awsAwsquery_deserializeOpDocumentEnableLoggingOutput(v **EnableLoggingOutpu if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.LoggingEnabled = &xtv + sv.LoggingEnabled = xtv } case strings.EqualFold("S3KeyPrefix", t.Name.Local): @@ -32437,7 +32575,7 @@ func awsAwsquery_deserializeOpDocumentEnableLoggingOutput(v **EnableLoggingOutpu } if val != nil { xtv := string(val) - sv.S3KeyPrefix = &xtv + sv.S3KeyPrefix = ptr.String(xtv) } default: @@ -32523,7 +32661,7 @@ func awsAwsquery_deserializeOpDocumentGetClusterCredentialsOutput(v **GetCluster } if val != nil { xtv := string(val) - sv.DbPassword = &xtv + sv.DbPassword = ptr.String(xtv) } case strings.EqualFold("DbUser", t.Name.Local): @@ -32539,7 +32677,7 @@ func awsAwsquery_deserializeOpDocumentGetClusterCredentialsOutput(v **GetCluster } if val != nil { xtv := string(val) - sv.DbUser = &xtv + sv.DbUser = ptr.String(xtv) } case strings.EqualFold("Expiration", t.Name.Local): @@ -32556,7 +32694,7 @@ func awsAwsquery_deserializeOpDocumentGetClusterCredentialsOutput(v **GetCluster if err != nil { return err } - sv.Expiration = &t + sv.Expiration = ptr.Time(t) } default: @@ -32604,7 +32742,7 @@ func awsAwsquery_deserializeOpDocumentGetReservedNodeExchangeOfferingsOutput(v * } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("ReservedNodeOfferings", t.Name.Local): @@ -32810,7 +32948,7 @@ func awsAwsquery_deserializeOpDocumentModifyClusterParameterGroupOutput(v **Modi } if val != nil { xtv := string(val) - sv.ParameterGroupName = &xtv + sv.ParameterGroupName = ptr.String(xtv) } case strings.EqualFold("ParameterGroupStatus", t.Name.Local): @@ -32826,7 +32964,7 @@ func awsAwsquery_deserializeOpDocumentModifyClusterParameterGroupOutput(v **Modi } if val != nil { xtv := string(val) - sv.ParameterGroupStatus = &xtv + sv.ParameterGroupStatus = ptr.String(xtv) } default: @@ -33021,7 +33159,7 @@ func awsAwsquery_deserializeOpDocumentModifyScheduledActionOutput(v **ModifySche if err != nil { return err } - sv.EndTime = &t + sv.EndTime = ptr.Time(t) } case strings.EqualFold("IamRole", t.Name.Local): @@ -33037,7 +33175,7 @@ func awsAwsquery_deserializeOpDocumentModifyScheduledActionOutput(v **ModifySche } if val != nil { xtv := string(val) - sv.IamRole = &xtv + sv.IamRole = ptr.String(xtv) } case strings.EqualFold("NextInvocations", t.Name.Local): @@ -33059,7 +33197,7 @@ func awsAwsquery_deserializeOpDocumentModifyScheduledActionOutput(v **ModifySche } if val != nil { xtv := string(val) - sv.Schedule = &xtv + sv.Schedule = ptr.String(xtv) } case strings.EqualFold("ScheduledActionDescription", t.Name.Local): @@ -33075,7 +33213,7 @@ func awsAwsquery_deserializeOpDocumentModifyScheduledActionOutput(v **ModifySche } if val != nil { xtv := string(val) - sv.ScheduledActionDescription = &xtv + sv.ScheduledActionDescription = ptr.String(xtv) } case strings.EqualFold("ScheduledActionName", t.Name.Local): @@ -33091,7 +33229,7 @@ func awsAwsquery_deserializeOpDocumentModifyScheduledActionOutput(v **ModifySche } if val != nil { xtv := string(val) - sv.ScheduledActionName = &xtv + sv.ScheduledActionName = ptr.String(xtv) } case strings.EqualFold("StartTime", t.Name.Local): @@ -33108,7 +33246,7 @@ func awsAwsquery_deserializeOpDocumentModifyScheduledActionOutput(v **ModifySche if err != nil { return err } - sv.StartTime = &t + sv.StartTime = ptr.Time(t) } case strings.EqualFold("State", t.Name.Local): @@ -33248,7 +33386,7 @@ func awsAwsquery_deserializeOpDocumentModifySnapshotScheduleOutput(v **ModifySna } if val != nil { xtv := string(val) - sv.ScheduleDescription = &xtv + sv.ScheduleDescription = ptr.String(xtv) } case strings.EqualFold("ScheduleIdentifier", t.Name.Local): @@ -33264,7 +33402,7 @@ func awsAwsquery_deserializeOpDocumentModifySnapshotScheduleOutput(v **ModifySna } if val != nil { xtv := string(val) - sv.ScheduleIdentifier = &xtv + sv.ScheduleIdentifier = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -33319,7 +33457,7 @@ func awsAwsquery_deserializeOpDocumentModifyUsageLimitOutput(v **ModifyUsageLimi if err != nil { return err } - sv.Amount = &i64 + sv.Amount = i64 } case strings.EqualFold("BreachAction", t.Name.Local): @@ -33348,7 +33486,7 @@ func awsAwsquery_deserializeOpDocumentModifyUsageLimitOutput(v **ModifyUsageLimi } if val != nil { xtv := string(val) - sv.ClusterIdentifier = &xtv + sv.ClusterIdentifier = ptr.String(xtv) } case strings.EqualFold("FeatureType", t.Name.Local): @@ -33409,7 +33547,7 @@ func awsAwsquery_deserializeOpDocumentModifyUsageLimitOutput(v **ModifyUsageLimi } if val != nil { xtv := string(val) - sv.UsageLimitId = &xtv + sv.UsageLimitId = ptr.String(xtv) } default: @@ -33571,7 +33709,7 @@ func awsAwsquery_deserializeOpDocumentResetClusterParameterGroupOutput(v **Reset } if val != nil { xtv := string(val) - sv.ParameterGroupName = &xtv + sv.ParameterGroupName = ptr.String(xtv) } case strings.EqualFold("ParameterGroupStatus", t.Name.Local): @@ -33587,7 +33725,7 @@ func awsAwsquery_deserializeOpDocumentResetClusterParameterGroupOutput(v **Reset } if val != nil { xtv := string(val) - sv.ParameterGroupStatus = &xtv + sv.ParameterGroupStatus = ptr.String(xtv) } default: diff --git a/service/redshift/go.mod b/service/redshift/go.mod index b93b57ca2e4..dcfeb1c13e5 100644 --- a/service/redshift/go.mod +++ b/service/redshift/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/redshift go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/redshift/serializers.go b/service/redshift/serializers.go index ac2262cc364..fb37ac5695d 100644 --- a/service/redshift/serializers.go +++ b/service/redshift/serializers.go @@ -5072,50 +5072,41 @@ func (m *awsAwsquery_serializeOpRotateEncryptionKey) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentAttributeNameList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAttributeNameList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("AttributeName") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentClusterSecurityGroupNameList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentClusterSecurityGroupNameList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ClusterSecurityGroupName") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentDbGroupList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentDbGroupList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("DbGroup") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5137,52 +5128,43 @@ func awsAwsquery_serializeDocumentDeleteClusterSnapshotMessage(v *types.DeleteCl return nil } -func awsAwsquery_serializeDocumentDeleteClusterSnapshotMessageList(v []*types.DeleteClusterSnapshotMessage, value query.Value) error { +func awsAwsquery_serializeDocumentDeleteClusterSnapshotMessageList(v []types.DeleteClusterSnapshotMessage, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("DeleteClusterSnapshotMessage") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentDeleteClusterSnapshotMessage(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentDeleteClusterSnapshotMessage(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentEventCategoriesList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentEventCategoriesList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("EventCategory") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentIamRoleArnList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentIamRoleArnList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("IamRoleArn") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5211,18 +5193,15 @@ func awsAwsquery_serializeDocumentNodeConfigurationOptionsFilter(v *types.NodeCo return nil } -func awsAwsquery_serializeDocumentNodeConfigurationOptionsFilterList(v []*types.NodeConfigurationOptionsFilter, value query.Value) error { +func awsAwsquery_serializeDocumentNodeConfigurationOptionsFilterList(v []types.NodeConfigurationOptionsFilter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("NodeConfigurationOptionsFilter") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentNodeConfigurationOptionsFilter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentNodeConfigurationOptionsFilter(&v[i], av); err != nil { return err } } @@ -5253,9 +5232,9 @@ func awsAwsquery_serializeDocumentParameter(v *types.Parameter, value query.Valu objectKey.String(*v.Description) } - if v.IsModifiable != nil { + if v.IsModifiable { objectKey := object.Key("IsModifiable") - objectKey.Boolean(*v.IsModifiable) + objectKey.Boolean(v.IsModifiable) } if v.MinimumEngineVersion != nil { @@ -5281,18 +5260,15 @@ func awsAwsquery_serializeDocumentParameter(v *types.Parameter, value query.Valu return nil } -func awsAwsquery_serializeDocumentParametersList(v []*types.Parameter, value query.Value) error { +func awsAwsquery_serializeDocumentParametersList(v []types.Parameter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Parameter") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentParameter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentParameter(&v[i], av); err != nil { return err } } @@ -5335,9 +5311,9 @@ func awsAwsquery_serializeDocumentResizeClusterMessage(v *types.ResizeClusterMes objectKey.String(*v.NodeType) } - if v.NumberOfNodes != nil { + if v.NumberOfNodes != 0 { objectKey := object.Key("NumberOfNodes") - objectKey.Integer(*v.NumberOfNodes) + objectKey.Integer(v.NumberOfNodes) } return nil @@ -5374,18 +5350,15 @@ func awsAwsquery_serializeDocumentScheduledActionFilter(v *types.ScheduledAction return nil } -func awsAwsquery_serializeDocumentScheduledActionFilterList(v []*types.ScheduledActionFilter, value query.Value) error { +func awsAwsquery_serializeDocumentScheduledActionFilterList(v []types.ScheduledActionFilter, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ScheduledActionFilter") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentScheduledActionFilter(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentScheduledActionFilter(&v[i], av); err != nil { return err } } @@ -5420,34 +5393,28 @@ func awsAwsquery_serializeDocumentScheduledActionType(v *types.ScheduledActionTy return nil } -func awsAwsquery_serializeDocumentScheduleDefinitionList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentScheduleDefinitionList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("ScheduleDefinition") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentSnapshotIdentifierList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSnapshotIdentifierList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("String") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5469,52 +5436,43 @@ func awsAwsquery_serializeDocumentSnapshotSortingEntity(v *types.SnapshotSorting return nil } -func awsAwsquery_serializeDocumentSnapshotSortingEntityList(v []*types.SnapshotSortingEntity, value query.Value) error { +func awsAwsquery_serializeDocumentSnapshotSortingEntityList(v []types.SnapshotSortingEntity, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SnapshotSortingEntity") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentSnapshotSortingEntity(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentSnapshotSortingEntity(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentSourceIdsList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSourceIdsList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SourceId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentSubnetIdentifierList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentSubnetIdentifierList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("SubnetIdentifier") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5536,84 +5494,69 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTagKeyList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentTagKeyList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("TagKey") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentTagList(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTagList(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("Tag") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentTagValueList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentTagValueList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("TagValue") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentValueStringList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentValueStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("item") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentVpcSecurityGroupIdList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentVpcSecurityGroupIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("VpcSecurityGroupId") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5702,9 +5645,9 @@ func awsAwsquery_serializeOpDocumentBatchModifyClusterSnapshotsInput(v *BatchMod object := value.Object() _ = object - if v.Force != nil { + if v.Force { objectKey := object.Key("Force") - objectKey.Boolean(*v.Force) + objectKey.Boolean(v.Force) } if v.ManualSnapshotRetentionPeriod != nil { @@ -6292,9 +6235,9 @@ func awsAwsquery_serializeOpDocumentCreateUsageLimitInput(v *CreateUsageLimitInp object := value.Object() _ = object - if v.Amount != nil { + if v.Amount != 0 { objectKey := object.Key("Amount") - objectKey.Long(*v.Amount) + objectKey.Long(v.Amount) } if len(v.BreachAction) > 0 { @@ -6351,9 +6294,9 @@ func awsAwsquery_serializeOpDocumentDeleteClusterInput(v *DeleteClusterInput, va objectKey.Integer(*v.FinalClusterSnapshotRetentionPeriod) } - if v.SkipFinalClusterSnapshot != nil { + if v.SkipFinalClusterSnapshot { objectKey := object.Key("SkipFinalClusterSnapshot") - objectKey.Boolean(*v.SkipFinalClusterSnapshot) + objectKey.Boolean(v.SkipFinalClusterSnapshot) } return nil @@ -7777,9 +7720,9 @@ func awsAwsquery_serializeOpDocumentModifyClusterSnapshotInput(v *ModifyClusterS object := value.Object() _ = object - if v.Force != nil { + if v.Force { objectKey := object.Key("Force") - objectKey.Boolean(*v.Force) + objectKey.Boolean(v.Force) } if v.ManualSnapshotRetentionPeriod != nil { @@ -7945,14 +7888,14 @@ func awsAwsquery_serializeOpDocumentModifySnapshotCopyRetentionPeriodInput(v *Mo objectKey.String(*v.ClusterIdentifier) } - if v.Manual != nil { + if v.Manual { objectKey := object.Key("Manual") - objectKey.Boolean(*v.Manual) + objectKey.Boolean(v.Manual) } - if v.RetentionPeriod != nil { + if v.RetentionPeriod != 0 { objectKey := object.Key("RetentionPeriod") - objectKey.Integer(*v.RetentionPeriod) + objectKey.Integer(v.RetentionPeriod) } return nil @@ -8056,9 +7999,9 @@ func awsAwsquery_serializeOpDocumentResetClusterParameterGroupInput(v *ResetClus } } - if v.ResetAllParameters != nil { + if v.ResetAllParameters { objectKey := object.Key("ResetAllParameters") - objectKey.Boolean(*v.ResetAllParameters) + objectKey.Boolean(v.ResetAllParameters) } return nil @@ -8088,9 +8031,9 @@ func awsAwsquery_serializeOpDocumentResizeClusterInput(v *ResizeClusterInput, va objectKey.String(*v.NodeType) } - if v.NumberOfNodes != nil { + if v.NumberOfNodes != 0 { objectKey := object.Key("NumberOfNodes") - objectKey.Integer(*v.NumberOfNodes) + objectKey.Integer(v.NumberOfNodes) } return nil diff --git a/service/redshift/types/types.go b/service/redshift/types/types.go index 88647edc8e0..785bdbe3736 100644 --- a/service/redshift/types/types.go +++ b/service/redshift/types/types.go @@ -13,7 +13,7 @@ type AccountAttribute struct { AttributeName *string // A list of attribute values. - AttributeValues []*AttributeValueTarget + AttributeValues []AttributeValueTarget } // Describes an AWS customer account authorized to restore a snapshot. @@ -41,7 +41,7 @@ type AvailabilityZone struct { Name *string // - SupportedPlatforms []*SupportedPlatform + SupportedPlatforms []SupportedPlatform } // Describes a cluster. @@ -49,10 +49,10 @@ type Cluster struct { // A boolean value that, if true, indicates that major version upgrades will be // applied automatically to the cluster during the maintenance window. - AllowVersionUpgrade *bool + AllowVersionUpgrade bool // The number of days that automatic cluster snapshots are retained. - AutomatedSnapshotRetentionPeriod *int32 + AutomatedSnapshotRetentionPeriod int32 // The name of the Availability Zone in which the cluster is located. AvailabilityZone *string @@ -82,11 +82,11 @@ type Cluster struct { ClusterIdentifier *string // The nodes in the cluster. - ClusterNodes []*ClusterNode + ClusterNodes []ClusterNode // The list of cluster parameter groups that are associated with this cluster. Each // parameter group in the list is returned with its status. - ClusterParameterGroups []*ClusterParameterGroupStatus + ClusterParameterGroups []ClusterParameterGroupStatus // The public key for the cluster. ClusterPublicKey *string @@ -100,7 +100,7 @@ type Cluster struct { // security groups are used when the cluster is not created in an Amazon Virtual // Private Cloud (VPC). Clusters that are created in a VPC use VPC security groups, // which are listed by the VpcSecurityGroups parameter. - ClusterSecurityGroups []*ClusterSecurityGroupMembership + ClusterSecurityGroups []ClusterSecurityGroupMembership // A value that returns the destination region and retention period that are // configured for cross-region snapshot copy. @@ -171,7 +171,7 @@ type Cluster struct { DataTransferProgress *DataTransferProgress // Describes a group of DeferredMaintenanceWindow objects. - DeferredMaintenanceWindows []*DeferredMaintenanceWindow + DeferredMaintenanceWindows []DeferredMaintenanceWindow // The status of the elastic IP (EIP) address. ElasticIpStatus *ElasticIpStatus @@ -182,7 +182,7 @@ type Cluster struct { // A boolean value that, if true, indicates that data in the cluster is encrypted // at rest. - Encrypted *bool + Encrypted bool // The connection endpoint. Endpoint *Endpoint @@ -193,7 +193,7 @@ type Cluster struct { // (https://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html) in // the Amazon Redshift Cluster Management Guide. If this option is true, enhanced // VPC routing is enabled. Default: false - EnhancedVpcRouting *bool + EnhancedVpcRouting bool // The date and time when the next snapshot is expected to be taken for clusters // with a valid snapshot schedule and backups enabled. @@ -216,7 +216,7 @@ type Cluster struct { // A list of AWS Identity and Access Management (IAM) roles that can be used by the // cluster to access other AWS services. - IamRoles []*ClusterIamRole + IamRoles []ClusterIamRole // The AWS Key Management Service (AWS KMS) key ID of the encryption key used to // encrypt data in the cluster. @@ -229,7 +229,7 @@ type Cluster struct { // snapshot is retained indefinitely. This setting doesn't change the retention // period of existing snapshots. The value must be either -1 or an integer between // 1 and 3,653. - ManualSnapshotRetentionPeriod *int32 + ManualSnapshotRetentionPeriod int32 // The master user name for the cluster. This name is used to connect to the // database that is specified in the DBName parameter. @@ -245,10 +245,10 @@ type Cluster struct { NodeType *string // The number of compute nodes in the cluster. - NumberOfNodes *int32 + NumberOfNodes int32 // Cluster operations that are waiting to be started. - PendingActions []*string + PendingActions []string // A value that, if present, indicates that changes to the cluster are pending. // Specific pending changes are identified by subelements. @@ -260,7 +260,7 @@ type Cluster struct { // A boolean value that, if true, indicates that the cluster can be accessed from a // public network. - PubliclyAccessible *bool + PubliclyAccessible bool // Returns the following: // @@ -281,7 +281,7 @@ type Cluster struct { SnapshotScheduleState ScheduleState // The list of tags for the cluster. - Tags []*Tag + Tags []Tag // The identifier of the VPC the cluster is in, if the cluster is in a VPC. VpcId *string @@ -289,7 +289,7 @@ type Cluster struct { // A list of Amazon Virtual Private Cloud (Amazon VPC) security groups that are // associated with the cluster. This parameter is returned only if the cluster is // in a VPC. - VpcSecurityGroups []*VpcSecurityGroupMembership + VpcSecurityGroups []VpcSecurityGroupMembership } // @@ -316,7 +316,7 @@ type ClusterDbRevision struct { // A list of RevisionTarget objects, where each object describes the database // revision that a cluster can be updated to. - RevisionTargets []*RevisionTarget + RevisionTargets []RevisionTarget } // An AWS Identity and Access Management (IAM) role that can be used by the @@ -368,7 +368,7 @@ type ClusterParameterGroup struct { ParameterGroupName *string // The list of tags for the cluster parameter group. - Tags []*Tag + Tags []Tag } // Describes the status of a parameter group. @@ -378,7 +378,7 @@ type ClusterParameterGroupStatus struct { // parameter groups, go to Amazon Redshift Parameter Groups // (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. - ClusterParameterStatusList []*ClusterParameterStatus + ClusterParameterStatusList []ClusterParameterStatus // The status of parameter updates. ParameterApplyStatus *string @@ -436,14 +436,14 @@ type ClusterSecurityGroup struct { // A list of EC2 security groups that are permitted to access clusters associated // with this cluster security group. - EC2SecurityGroups []*EC2SecurityGroup + EC2SecurityGroups []EC2SecurityGroup // A list of IP ranges (CIDR blocks) that are permitted to access clusters // associated with this cluster security group. - IPRanges []*IPRange + IPRanges []IPRange // The list of tags for the cluster security group. - Tags []*Tag + Tags []Tag } // Describes a cluster security group. @@ -468,11 +468,11 @@ type ClusterSnapshotCopyStatus struct { // region after they are copied from a source region. If the value is -1, the // manual snapshot is retained indefinitely. The value must be either -1 or an // integer between 1 and 3,653. - ManualSnapshotRetentionPeriod *int32 + ManualSnapshotRetentionPeriod int32 // The number of days that automated snapshots are retained in the destination // region after they are copied from a source region. - RetentionPeriod *int64 + RetentionPeriod int64 // The name of the snapshot copy grant. SnapshotCopyGrantName *string @@ -492,10 +492,10 @@ type ClusterSubnetGroup struct { SubnetGroupStatus *string // A list of the VPC Subnet elements. - Subnets []*Subnet + Subnets []Subnet // The list of tags for the cluster subnet group. - Tags []*Tag + Tags []Tag // The VPC ID of the cluster subnet group. VpcId *string @@ -523,7 +523,7 @@ type DataTransferProgress struct { CurrentRateInMegaBytesPerSecond *float64 // Describes the total amount of data that has been transfered in MB's. - DataTransferredInMegaBytes *int64 + DataTransferredInMegaBytes int64 // Describes the number of seconds that have elapsed during the data transfer. ElapsedTimeInSeconds *int64 @@ -536,7 +536,7 @@ type DataTransferProgress struct { Status *string // Describes the total amount of data to be transfered in megabytes. - TotalDataInMegaBytes *int64 + TotalDataInMegaBytes int64 } // Describes the default cluster parameters for a parameter group family. @@ -554,7 +554,7 @@ type DefaultClusterParameters struct { ParameterGroupFamily *string // The list of cluster default parameters. - Parameters []*Parameter + Parameters []Parameter } // Describes a deferred maintenance window @@ -601,7 +601,7 @@ type EC2SecurityGroup struct { Status *string // The list of tags for the EC2 security group. - Tags []*Tag + Tags []Tag } // Describes the status of the elastic IP (EIP) address. @@ -621,7 +621,7 @@ type Endpoint struct { Address *string // The port that the database engine is listening on. - Port *int32 + Port int32 } // Describes an event. @@ -632,7 +632,7 @@ type Event struct { // A list of the event categories. Values: Configuration, Management, Monitoring, // Security - EventCategories []*string + EventCategories []string // The identifier of the event. EventId *string @@ -654,7 +654,7 @@ type Event struct { type EventCategoriesMap struct { // The events in the event category. - Events []*EventInfoMap + Events []EventInfoMap // The source type, such as cluster or cluster-snapshot, that the returned // categories belong to. @@ -665,7 +665,7 @@ type EventCategoriesMap struct { type EventInfoMap struct { // The category of an Amazon Redshift event. - EventCategories []*string + EventCategories []string // The description of an Amazon Redshift event. EventDescription *string @@ -689,11 +689,11 @@ type EventSubscription struct { // A boolean value indicating whether the subscription is enabled; true indicates // that the subscription is enabled. - Enabled *bool + Enabled bool // The list of Amazon Redshift event categories specified in the event notification // subscription. Values: Configuration, Management, Monitoring, Security - EventCategoriesList []*string + EventCategoriesList []string // The event severity specified in the Amazon Redshift event notification // subscription. Values: ERROR, INFO @@ -705,7 +705,7 @@ type EventSubscription struct { // A list of the sources that publish events to the Amazon Redshift event // notification subscription. - SourceIdsList []*string + SourceIdsList []string // The source type of the events returned by the Amazon Redshift event // notification, such as cluster, cluster-snapshot, cluster-parameter-group, @@ -729,7 +729,7 @@ type EventSubscription struct { SubscriptionCreationTime *time.Time // The list of tags for the event subscription. - Tags []*Tag + Tags []Tag } // Returns information about an HSM client certificate. The certificate is stored @@ -745,7 +745,7 @@ type HsmClientCertificate struct { HsmClientCertificatePublicKey *string // The list of tags for the HSM client certificate. - Tags []*Tag + Tags []Tag } // Returns information about an HSM configuration, which is an object that @@ -767,7 +767,7 @@ type HsmConfiguration struct { HsmPartitionName *string // The list of tags for the HSM configuration. - Tags []*Tag + Tags []Tag } // Describes the status of changes to HSM settings. @@ -796,7 +796,7 @@ type IPRange struct { Status *string // The list of tags for the IP range. - Tags []*Tag + Tags []Tag } // Defines a maintenance track that determines which Amazon Redshift version to @@ -813,7 +813,7 @@ type MaintenanceTrack struct { MaintenanceTrackName *string // An array of UpdateTarget objects to update with the maintenance track. - UpdateTargets []*UpdateTarget + UpdateTargets []UpdateTarget } // A list of node configurations. @@ -829,7 +829,7 @@ type NodeConfigurationOption struct { NodeType *string // The number of nodes. - NumberOfNodes *int32 + NumberOfNodes int32 } // A set of elements to filter the returned node configurations. @@ -847,14 +847,14 @@ type NodeConfigurationOptionsFilter struct { // NumberOfNodes, then values can range from 0 to 200. If filter Name is // EstimatedDiskUtilizationPercent, then values can range from 0 to 100. For // example, filter NumberOfNodes (name) GT (operator) 3 (values). - Values []*string + Values []string } // Describes an orderable cluster option. type OrderableClusterOption struct { // A list of availability zones for the orderable cluster. - AvailabilityZones []*AvailabilityZone + AvailabilityZones []AvailabilityZone // The cluster type, for example multi-node. ClusterType *string @@ -888,7 +888,7 @@ type Parameter struct { // If true, the parameter can be modified. Some parameters have security or // operational implications that prevent them from being changed. - IsModifiable *bool + IsModifiable bool // The earliest engine version to which the parameter can apply. MinimumEngineVersion *string @@ -963,7 +963,7 @@ type RecurringCharge struct { // The amount charged per the period of time specified by the recurring charge // frequency. - RecurringChargeAmount *float64 + RecurringChargeAmount float64 // The frequency at which the recurring charge amount is applied. RecurringChargeFrequency *string @@ -977,13 +977,13 @@ type ReservedNode struct { CurrencyCode *string // The duration of the node reservation in seconds. - Duration *int32 + Duration int32 // The fixed cost Amazon Redshift charges you for this reserved node. - FixedPrice *float64 + FixedPrice float64 // The number of reserved compute nodes. - NodeCount *int32 + NodeCount int32 // The node type of the reserved node. NodeType *string @@ -993,7 +993,7 @@ type ReservedNode struct { OfferingType *string // The recurring charges for the reserved node. - RecurringCharges []*RecurringCharge + RecurringCharges []RecurringCharge // The unique identifier for the reservation. ReservedNodeId *string @@ -1027,7 +1027,7 @@ type ReservedNode struct { State *string // The hourly rate Amazon Redshift charges you for this reserved node. - UsagePrice *float64 + UsagePrice float64 } // Describes a reserved node offering. @@ -1037,11 +1037,11 @@ type ReservedNodeOffering struct { CurrencyCode *string // The duration, in seconds, for which the offering will reserve the node. - Duration *int32 + Duration int32 // The upfront fixed charge you will pay to purchase the specific reserved node // offering. - FixedPrice *float64 + FixedPrice float64 // The node type offered by the reserved node offering. NodeType *string @@ -1053,7 +1053,7 @@ type ReservedNodeOffering struct { // The charge to your account regardless of whether you are creating any clusters // using the node offering. Recurring charges are only in effect for // heavy-utilization reserved nodes. - RecurringCharges []*RecurringCharge + RecurringCharges []RecurringCharge // The offering identifier. ReservedNodeOfferingId *string @@ -1063,7 +1063,7 @@ type ReservedNodeOffering struct { // The rate you are charged for each hour the cluster that is using the offering is // running. - UsagePrice *float64 + UsagePrice float64 } // Describes a resize cluster operation. For example, a scheduled action to run the @@ -1089,14 +1089,14 @@ type ResizeClusterMessage struct { // The new number of nodes for the cluster. If not specified, the cluster's current // number of nodes is used. - NumberOfNodes *int32 + NumberOfNodes int32 } // Describes a resize operation. type ResizeInfo struct { // A boolean value indicating if the resize operation can be cancelled. - AllowCancelResize *bool + AllowCancelResize bool // Returns the value ClassicResize. ResizeType *string @@ -1109,25 +1109,25 @@ type RestoreStatus struct { // The number of megabytes per second being transferred from the backup storage. // Returns the average rate for a completed backup. This field is only updated when // you restore to DC2 and DS2 node types. - CurrentRestoreRateInMegaBytesPerSecond *float64 + CurrentRestoreRateInMegaBytesPerSecond float64 // The amount of time an in-progress restore has been running, or the amount of // time it took a completed restore to finish. This field is only updated when you // restore to DC2 and DS2 node types. - ElapsedTimeInSeconds *int64 + ElapsedTimeInSeconds int64 // The estimate of the time remaining before the restore will complete. Returns 0 // for a completed restore. This field is only updated when you restore to DC2 and // DS2 node types. - EstimatedTimeToCompletionInSeconds *int64 + EstimatedTimeToCompletionInSeconds int64 // The number of megabytes that have been transferred from snapshot storage. This // field is only updated when you restore to DC2 and DS2 node types. - ProgressInMegaBytes *int64 + ProgressInMegaBytes int64 // The size of the set of snapshot data used to restore the cluster. This field is // only updated when you restore to DC2 and DS2 node types. - SnapshotSizeInMegaBytes *int64 + SnapshotSizeInMegaBytes int64 // The status of the restore action. Returns starting, restoring, completed, or // failed. @@ -1179,7 +1179,7 @@ type ScheduledAction struct { IamRole *string // List of times when the scheduled action will run. - NextInvocations []*time.Time + NextInvocations []time.Time // The schedule for a one-time (at format) or recurring (cron format) scheduled // action. Schedule invocations must be separated by at least one hour. Format of @@ -1221,7 +1221,7 @@ type ScheduledActionFilter struct { // the list of scheduled actions. // // This member is required. - Values []*string + Values []string } // The action type that specifies an Amazon Redshift API operation that is @@ -1243,16 +1243,16 @@ type Snapshot struct { // A list of the AWS customer accounts authorized to restore the snapshot. Returns // null if no accounts are authorized. Visible only to the snapshot owner. - AccountsWithRestoreAccess []*AccountWithRestoreAccess + AccountsWithRestoreAccess []AccountWithRestoreAccess // The size of the incremental backup. - ActualIncrementalBackupSizeInMegaBytes *float64 + ActualIncrementalBackupSizeInMegaBytes float64 // The Availability Zone in which the cluster was created. AvailabilityZone *string // The number of megabytes that have been transferred to the snapshot backup. - BackupProgressInMegaBytes *float64 + BackupProgressInMegaBytes float64 // The time (UTC) when the cluster was originally created. ClusterCreateTime *time.Time @@ -1265,22 +1265,22 @@ type Snapshot struct { // The number of megabytes per second being transferred to the snapshot backup. // Returns 0 for a completed backup. - CurrentBackupRateInMegaBytesPerSecond *float64 + CurrentBackupRateInMegaBytesPerSecond float64 // The name of the database that was created when the cluster was created. DBName *string // The amount of time an in-progress snapshot backup has been running, or the // amount of time it took a completed backup to finish. - ElapsedTimeInSeconds *int64 + ElapsedTimeInSeconds int64 // If true, the data in the snapshot is encrypted at rest. - Encrypted *bool + Encrypted bool // A boolean that indicates whether the snapshot data is encrypted using the HSM // keys of the source cluster. true indicates that the data is encrypted using HSM // keys. - EncryptedWithHSM *bool + EncryptedWithHSM bool // An option that specifies whether to create the cluster with enhanced VPC routing // enabled. To create a cluster that uses enhanced VPC routing, the cluster must be @@ -1288,11 +1288,11 @@ type Snapshot struct { // (https://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html) in // the Amazon Redshift Cluster Management Guide. If this option is true, enhanced // VPC routing is enabled. Default: false - EnhancedVpcRouting *bool + EnhancedVpcRouting bool // The estimate of the time remaining before the snapshot backup will complete. // Returns 0 for a completed backup. - EstimatedSecondsToCompletion *int64 + EstimatedSecondsToCompletion int64 // The AWS Key Management Service (KMS) key ID of the encryption key that was used // to encrypt data in the cluster from which the snapshot was taken. @@ -1316,7 +1316,7 @@ type Snapshot struct { NodeType *string // The number of nodes in the cluster. - NumberOfNodes *int32 + NumberOfNodes int32 // For manual snapshots, the AWS customer account used to create or copy the // snapshot. For automatic snapshots, the owner of the cluster. The owner can @@ -1324,10 +1324,10 @@ type Snapshot struct { OwnerAccount *string // The port that the cluster is listening on. - Port *int32 + Port int32 // The list of node types that this cluster snapshot is able to restore into. - RestorableNodeTypes []*string + RestorableNodeTypes []string // The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot // contains a copy of the cluster data as of this exact time. @@ -1360,11 +1360,11 @@ type Snapshot struct { Status *string // The list of tags for the cluster snapshot. - Tags []*Tag + Tags []Tag // The size of the complete set of backup data that would be used to restore the // cluster. - TotalBackupSizeInMegaBytes *float64 + TotalBackupSizeInMegaBytes float64 // The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. // Otherwise, this field is not in the output. @@ -1387,7 +1387,7 @@ type SnapshotCopyGrant struct { SnapshotCopyGrantName *string // A list of tag instances. - Tags []*Tag + Tags []Tag } // Describes the errors returned by a snapshot. @@ -1415,13 +1415,13 @@ type SnapshotSchedule struct { // A list of clusters associated with the schedule. A maximum of 100 clusters is // returned. - AssociatedClusters []*ClusterAssociatedToSchedule + AssociatedClusters []ClusterAssociatedToSchedule // - NextInvocations []*time.Time + NextInvocations []time.Time // A list of ScheduleDefinitions. - ScheduleDefinitions []*string + ScheduleDefinitions []string // The description of the schedule. ScheduleDescription *string @@ -1430,7 +1430,7 @@ type SnapshotSchedule struct { ScheduleIdentifier *string // An optional set of tags describing the schedule. - Tags []*Tag + Tags []Tag } // Describes a sorting entity @@ -1583,7 +1583,7 @@ type UpdateTarget struct { MaintenanceTrackName *string // A list of operations supported by the maintenance track. - SupportedOperations []*SupportedOperation + SupportedOperations []SupportedOperation } // Describes a usage limit object for a cluster. @@ -1591,7 +1591,7 @@ type UsageLimit struct { // The limit amount. If time-based, this amount is in minutes. If data-based, this // amount is in terabytes (TB). - Amount *int64 + Amount int64 // The action that Amazon Redshift takes when the limit is reached. Possible values // are: @@ -1620,7 +1620,7 @@ type UsageLimit struct { Period UsageLimitPeriod // A list of tag instances. - Tags []*Tag + Tags []Tag // The identifier of the usage limit. UsageLimitId *string diff --git a/service/redshift/validators.go b/service/redshift/validators.go index 01b780334d0..e76f7127b5e 100644 --- a/service/redshift/validators.go +++ b/service/redshift/validators.go @@ -1681,13 +1681,13 @@ func validateDeleteClusterSnapshotMessage(v *types.DeleteClusterSnapshotMessage) } } -func validateDeleteClusterSnapshotMessageList(v []*types.DeleteClusterSnapshotMessage) error { +func validateDeleteClusterSnapshotMessageList(v []types.DeleteClusterSnapshotMessage) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteClusterSnapshotMessageList"} for i := range v { - if err := validateDeleteClusterSnapshotMessage(v[i]); err != nil { + if err := validateDeleteClusterSnapshotMessage(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1761,13 +1761,13 @@ func validateScheduledActionFilter(v *types.ScheduledActionFilter) error { } } -func validateScheduledActionFilterList(v []*types.ScheduledActionFilter) error { +func validateScheduledActionFilterList(v []types.ScheduledActionFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ScheduledActionFilterList"} for i := range v { - if err := validateScheduledActionFilter(v[i]); err != nil { + if err := validateScheduledActionFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1820,13 +1820,13 @@ func validateSnapshotSortingEntity(v *types.SnapshotSortingEntity) error { } } -func validateSnapshotSortingEntityList(v []*types.SnapshotSortingEntity) error { +func validateSnapshotSortingEntityList(v []types.SnapshotSortingEntity) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SnapshotSortingEntityList"} for i := range v { - if err := validateSnapshotSortingEntity(v[i]); err != nil { + if err := validateSnapshotSortingEntity(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2186,9 +2186,6 @@ func validateOpCreateUsageLimitInput(v *CreateUsageLimitInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateUsageLimitInput"} - if v.Amount == nil { - invalidParams.Add(smithy.NewErrParamRequired("Amount")) - } if len(v.FeatureType) == 0 { invalidParams.Add(smithy.NewErrParamRequired("FeatureType")) } @@ -2780,9 +2777,6 @@ func validateOpModifySnapshotCopyRetentionPeriodInput(v *ModifySnapshotCopyReten return nil } invalidParams := smithy.InvalidParamsError{Context: "ModifySnapshotCopyRetentionPeriodInput"} - if v.RetentionPeriod == nil { - invalidParams.Add(smithy.NewErrParamRequired("RetentionPeriod")) - } if v.ClusterIdentifier == nil { invalidParams.Add(smithy.NewErrParamRequired("ClusterIdentifier")) } diff --git a/service/redshiftdata/api_op_DescribeStatement.go b/service/redshiftdata/api_op_DescribeStatement.go index 64485dc4dc7..3e4a00f93c7 100644 --- a/service/redshiftdata/api_op_DescribeStatement.go +++ b/service/redshiftdata/api_op_DescribeStatement.go @@ -62,7 +62,7 @@ type DescribeStatementOutput struct { DbUser *string // The amount of time in nanoseconds that the statement ran. - Duration *int64 + Duration int64 // The error message from the cluster if the SQL statement encountered an error // while running. @@ -72,20 +72,20 @@ type DescribeStatementOutput struct { QueryString *string // The process identifier from Amazon Redshift. - RedshiftPid *int64 + RedshiftPid int64 // The identifier of the query generated by Amazon Redshift. These identifiers are // also available in the query column of the STL_QUERY system view. - RedshiftQueryId *int64 + RedshiftQueryId int64 // Either the number of rows returned from the SQL statement or the number of rows // affected. If result size is greater than zero, the result rows can be the number // of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and // others. - ResultRows *int64 + ResultRows int64 // The size in bytes of the returned results. - ResultSize *int64 + ResultSize int64 // The name or Amazon Resource Name (ARN) of the secret that enables access to the // database. diff --git a/service/redshiftdata/api_op_DescribeTable.go b/service/redshiftdata/api_op_DescribeTable.go index 1cd595b88d7..8abefa74839 100644 --- a/service/redshiftdata/api_op_DescribeTable.go +++ b/service/redshiftdata/api_op_DescribeTable.go @@ -57,7 +57,7 @@ type DescribeTableInput struct { // The maximum number of tables to return in the response. If more tables exist // than fit in one response, then NextToken is returned to page through the // results. - MaxResults *int32 + MaxResults int32 // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve @@ -83,7 +83,7 @@ type DescribeTableInput struct { type DescribeTableOutput struct { // A list of columns in the table. - ColumnList []*types.ColumnMetadata + ColumnList []types.ColumnMetadata // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve diff --git a/service/redshiftdata/api_op_GetStatementResult.go b/service/redshiftdata/api_op_GetStatementResult.go index cfefdf62cc3..b02af2e1a1b 100644 --- a/service/redshiftdata/api_op_GetStatementResult.go +++ b/service/redshiftdata/api_op_GetStatementResult.go @@ -53,7 +53,7 @@ type GetStatementResultOutput struct { Records [][]types.Field // The properties (metadata) of a column. - ColumnMetadata []*types.ColumnMetadata + ColumnMetadata []types.ColumnMetadata // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve @@ -65,7 +65,7 @@ type GetStatementResultOutput struct { // The total number of rows in the result set returned from a query. You can use // this number to estimate the number of calls to the GetStatementResult operation // needed to page through the results. - TotalNumRows *int64 + TotalNumRows int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshiftdata/api_op_ListDatabases.go b/service/redshiftdata/api_op_ListDatabases.go index ba01ae39ba4..0728252a8d1 100644 --- a/service/redshiftdata/api_op_ListDatabases.go +++ b/service/redshiftdata/api_op_ListDatabases.go @@ -55,7 +55,7 @@ type ListDatabasesInput struct { // The maximum number of databases to return in the response. If more databases // exist than fit in one response, then NextToken is returned to page through the // results. - MaxResults *int32 + MaxResults int32 // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve @@ -72,7 +72,7 @@ type ListDatabasesInput struct { type ListDatabasesOutput struct { // The names of databases. - Databases []*string + Databases []string // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve diff --git a/service/redshiftdata/api_op_ListSchemas.go b/service/redshiftdata/api_op_ListSchemas.go index 7669b837214..d2d22e6519b 100644 --- a/service/redshiftdata/api_op_ListSchemas.go +++ b/service/redshiftdata/api_op_ListSchemas.go @@ -57,7 +57,7 @@ type ListSchemasInput struct { // The maximum number of schemas to return in the response. If more schemas exist // than fit in one response, then NextToken is returned to page through the // results. - MaxResults *int32 + MaxResults int32 // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve @@ -86,7 +86,7 @@ type ListSchemasOutput struct { NextToken *string // The schemas that match the request pattern. - Schemas []*string + Schemas []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshiftdata/api_op_ListStatements.go b/service/redshiftdata/api_op_ListStatements.go index 79ba6849eff..1de33c6eeb0 100644 --- a/service/redshiftdata/api_op_ListStatements.go +++ b/service/redshiftdata/api_op_ListStatements.go @@ -33,7 +33,7 @@ type ListStatementsInput struct { // The maximum number of SQL statements to return in the response. If more SQL // statements exist than fit in one response, then NextToken is returned to page // through the results. - MaxResults *int32 + MaxResults int32 // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve @@ -78,7 +78,7 @@ type ListStatementsOutput struct { // The SQL statements. // // This member is required. - Statements []*types.StatementData + Statements []types.StatementData // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve diff --git a/service/redshiftdata/api_op_ListTables.go b/service/redshiftdata/api_op_ListTables.go index 281e98f3cd5..ac2f2e593c4 100644 --- a/service/redshiftdata/api_op_ListTables.go +++ b/service/redshiftdata/api_op_ListTables.go @@ -60,7 +60,7 @@ type ListTablesInput struct { // The maximum number of tables to return in the response. If more tables exist // than fit in one response, then NextToken is returned to page through the // results. - MaxResults *int32 + MaxResults int32 // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve @@ -100,7 +100,7 @@ type ListTablesOutput struct { NextToken *string // The tables that match the request pattern. - Tables []*types.TableMember + Tables []types.TableMember // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/redshiftdata/deserializers.go b/service/redshiftdata/deserializers.go index 1bc10fae1bf..85cc8c49d14 100644 --- a/service/redshiftdata/deserializers.go +++ b/service/redshiftdata/deserializers.go @@ -1192,7 +1192,7 @@ func awsAwsjson11_deserializeErrorValidationException(response *smithyhttp.Respo return output } -func awsAwsjson11_deserializeDocumentColumnList(v *[]*types.ColumnMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentColumnList(v *[]types.ColumnMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1205,18 +1205,20 @@ func awsAwsjson11_deserializeDocumentColumnList(v *[]*types.ColumnMetadata, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnMetadata + var cv []types.ColumnMetadata if *v == nil { - cv = []*types.ColumnMetadata{} + cv = []types.ColumnMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnMetadata - if err := awsAwsjson11_deserializeDocumentColumnMetadata(&col, value); err != nil { + var col types.ColumnMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentColumnMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1252,7 +1254,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ColumnDefault = &jtv + sv.ColumnDefault = ptr.String(jtv) } case "isCaseSensitive": @@ -1261,7 +1263,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected bool to be of type *bool, got %T instead", value) } - sv.IsCaseSensitive = &jtv + sv.IsCaseSensitive = jtv } case "isCurrency": @@ -1270,7 +1272,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected bool to be of type *bool, got %T instead", value) } - sv.IsCurrency = &jtv + sv.IsCurrency = jtv } case "isSigned": @@ -1279,7 +1281,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected bool to be of type *bool, got %T instead", value) } - sv.IsSigned = &jtv + sv.IsSigned = jtv } case "label": @@ -1288,7 +1290,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Label = &jtv + sv.Label = ptr.String(jtv) } case "length": @@ -1301,7 +1303,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if err != nil { return err } - sv.Length = ptr.Int32(int32(i64)) + sv.Length = int32(i64) } case "name": @@ -1310,7 +1312,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "nullable": @@ -1323,7 +1325,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if err != nil { return err } - sv.Nullable = ptr.Int32(int32(i64)) + sv.Nullable = int32(i64) } case "precision": @@ -1336,7 +1338,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if err != nil { return err } - sv.Precision = ptr.Int32(int32(i64)) + sv.Precision = int32(i64) } case "scale": @@ -1349,7 +1351,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if err != nil { return err } - sv.Scale = ptr.Int32(int32(i64)) + sv.Scale = int32(i64) } case "schemaName": @@ -1358,7 +1360,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SchemaName = &jtv + sv.SchemaName = ptr.String(jtv) } case "tableName": @@ -1367,7 +1369,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "typeName": @@ -1376,7 +1378,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TypeName = &jtv + sv.TypeName = ptr.String(jtv) } default: @@ -1388,7 +1390,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadata(v **types.ColumnMetadata, va return nil } -func awsAwsjson11_deserializeDocumentColumnMetadataList(v *[]*types.ColumnMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentColumnMetadataList(v *[]types.ColumnMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1401,18 +1403,20 @@ func awsAwsjson11_deserializeDocumentColumnMetadataList(v *[]*types.ColumnMetada return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnMetadata + var cv []types.ColumnMetadata if *v == nil { - cv = []*types.ColumnMetadata{} + cv = []types.ColumnMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnMetadata - if err := awsAwsjson11_deserializeDocumentColumnMetadata(&col, value); err != nil { + var col types.ColumnMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentColumnMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1420,7 +1424,7 @@ func awsAwsjson11_deserializeDocumentColumnMetadataList(v *[]*types.ColumnMetada return nil } -func awsAwsjson11_deserializeDocumentDatabaseList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDatabaseList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1433,21 +1437,21 @@ func awsAwsjson11_deserializeDocumentDatabaseList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -1484,7 +1488,7 @@ func awsAwsjson11_deserializeDocumentExecuteStatementException(v **types.Execute if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "StatementId": @@ -1493,7 +1497,7 @@ func awsAwsjson11_deserializeDocumentExecuteStatementException(v **types.Execute if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatementId = &jtv + sv.StatementId = ptr.String(jtv) } default: @@ -1539,19 +1543,19 @@ loop: break loop case "booleanValue": - var mv *bool + var mv bool if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.FieldMemberBooleanValue{Value: *mv} + uv = &types.FieldMemberBooleanValue{Value: mv} break loop case "doubleValue": - var mv *float64 + var mv float64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -1561,25 +1565,25 @@ loop: if err != nil { return err } - mv = &f64 + mv = f64 } - uv = &types.FieldMemberDoubleValue{Value: *mv} + uv = &types.FieldMemberDoubleValue{Value: mv} break loop case "isNull": - var mv *bool + var mv bool if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.FieldMemberIsNull{Value: *mv} + uv = &types.FieldMemberIsNull{Value: mv} break loop case "longValue": - var mv *int64 + var mv int64 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -1589,21 +1593,21 @@ loop: if err != nil { return err } - mv = &i64 + mv = i64 } - uv = &types.FieldMemberLongValue{Value: *mv} + uv = &types.FieldMemberLongValue{Value: mv} break loop case "stringValue": - var mv *string + var mv string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - mv = &jtv + mv = jtv } - uv = &types.FieldMemberStringValue{Value: *mv} + uv = &types.FieldMemberStringValue{Value: mv} break loop default: @@ -1678,7 +1682,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1718,7 +1722,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceId": @@ -1727,7 +1731,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } default: @@ -1739,7 +1743,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsAwsjson11_deserializeDocumentSchemaList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSchemaList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1752,21 +1756,21 @@ func awsAwsjson11_deserializeDocumentSchemaList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -1848,7 +1852,7 @@ func awsAwsjson11_deserializeDocumentStatementData(v **types.StatementData, valu if !ok { return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "QueryString": @@ -1857,7 +1861,7 @@ func awsAwsjson11_deserializeDocumentStatementData(v **types.StatementData, valu if !ok { return fmt.Errorf("expected StatementString to be of type string, got %T instead", value) } - sv.QueryString = &jtv + sv.QueryString = ptr.String(jtv) } case "SecretArn": @@ -1866,7 +1870,7 @@ func awsAwsjson11_deserializeDocumentStatementData(v **types.StatementData, valu if !ok { return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) } - sv.SecretArn = &jtv + sv.SecretArn = ptr.String(jtv) } case "StatementName": @@ -1875,7 +1879,7 @@ func awsAwsjson11_deserializeDocumentStatementData(v **types.StatementData, valu if !ok { return fmt.Errorf("expected StatementNameString to be of type string, got %T instead", value) } - sv.StatementName = &jtv + sv.StatementName = ptr.String(jtv) } case "Status": @@ -1909,7 +1913,7 @@ func awsAwsjson11_deserializeDocumentStatementData(v **types.StatementData, valu return nil } -func awsAwsjson11_deserializeDocumentStatementList(v *[]*types.StatementData, value interface{}) error { +func awsAwsjson11_deserializeDocumentStatementList(v *[]types.StatementData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1922,18 +1926,20 @@ func awsAwsjson11_deserializeDocumentStatementList(v *[]*types.StatementData, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StatementData + var cv []types.StatementData if *v == nil { - cv = []*types.StatementData{} + cv = []types.StatementData{} } else { cv = *v } for _, value := range shape { - var col *types.StatementData - if err := awsAwsjson11_deserializeDocumentStatementData(&col, value); err != nil { + var col types.StatementData + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStatementData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1941,7 +1947,7 @@ func awsAwsjson11_deserializeDocumentStatementList(v *[]*types.StatementData, va return nil } -func awsAwsjson11_deserializeDocumentTableList(v *[]*types.TableMember, value interface{}) error { +func awsAwsjson11_deserializeDocumentTableList(v *[]types.TableMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1954,18 +1960,20 @@ func awsAwsjson11_deserializeDocumentTableList(v *[]*types.TableMember, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TableMember + var cv []types.TableMember if *v == nil { - cv = []*types.TableMember{} + cv = []types.TableMember{} } else { cv = *v } for _, value := range shape { - var col *types.TableMember - if err := awsAwsjson11_deserializeDocumentTableMember(&col, value); err != nil { + var col types.TableMember + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTableMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2001,7 +2009,7 @@ func awsAwsjson11_deserializeDocumentTableMember(v **types.TableMember, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "schema": @@ -2010,7 +2018,7 @@ func awsAwsjson11_deserializeDocumentTableMember(v **types.TableMember, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Schema = &jtv + sv.Schema = ptr.String(jtv) } case "type": @@ -2019,7 +2027,7 @@ func awsAwsjson11_deserializeDocumentTableMember(v **types.TableMember, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -2059,7 +2067,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2099,7 +2107,7 @@ func awsAwsjson11_deserializeOpDocumentCancelStatementOutput(v **CancelStatement if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.Bool(jtv) } default: @@ -2139,7 +2147,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterIdentifier = &jtv + sv.ClusterIdentifier = ptr.String(jtv) } case "CreatedAt": @@ -2161,7 +2169,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "DbUser": @@ -2170,7 +2178,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DbUser = &jtv + sv.DbUser = ptr.String(jtv) } case "Duration": @@ -2183,7 +2191,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if err != nil { return err } - sv.Duration = &i64 + sv.Duration = i64 } case "Error": @@ -2192,7 +2200,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } case "Id": @@ -2201,7 +2209,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if !ok { return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "QueryString": @@ -2210,7 +2218,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if !ok { return fmt.Errorf("expected StatementString to be of type string, got %T instead", value) } - sv.QueryString = &jtv + sv.QueryString = ptr.String(jtv) } case "RedshiftPid": @@ -2223,7 +2231,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if err != nil { return err } - sv.RedshiftPid = &i64 + sv.RedshiftPid = i64 } case "RedshiftQueryId": @@ -2236,7 +2244,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if err != nil { return err } - sv.RedshiftQueryId = &i64 + sv.RedshiftQueryId = i64 } case "ResultRows": @@ -2249,7 +2257,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if err != nil { return err } - sv.ResultRows = &i64 + sv.ResultRows = i64 } case "ResultSize": @@ -2262,7 +2270,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if err != nil { return err } - sv.ResultSize = &i64 + sv.ResultSize = i64 } case "SecretArn": @@ -2271,7 +2279,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStatementOutput(v **DescribeState if !ok { return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) } - sv.SecretArn = &jtv + sv.SecretArn = ptr.String(jtv) } case "Status": @@ -2338,7 +2346,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTableOutput(v **DescribeTableOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TableName": @@ -2347,7 +2355,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTableOutput(v **DescribeTableOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } default: @@ -2387,7 +2395,7 @@ func awsAwsjson11_deserializeOpDocumentExecuteStatementOutput(v **ExecuteStateme if !ok { return fmt.Errorf("expected Location to be of type string, got %T instead", value) } - sv.ClusterIdentifier = &jtv + sv.ClusterIdentifier = ptr.String(jtv) } case "CreatedAt": @@ -2409,7 +2417,7 @@ func awsAwsjson11_deserializeOpDocumentExecuteStatementOutput(v **ExecuteStateme if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Database = &jtv + sv.Database = ptr.String(jtv) } case "DbUser": @@ -2418,7 +2426,7 @@ func awsAwsjson11_deserializeOpDocumentExecuteStatementOutput(v **ExecuteStateme if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DbUser = &jtv + sv.DbUser = ptr.String(jtv) } case "Id": @@ -2427,7 +2435,7 @@ func awsAwsjson11_deserializeOpDocumentExecuteStatementOutput(v **ExecuteStateme if !ok { return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "SecretArn": @@ -2436,7 +2444,7 @@ func awsAwsjson11_deserializeOpDocumentExecuteStatementOutput(v **ExecuteStateme if !ok { return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) } - sv.SecretArn = &jtv + sv.SecretArn = ptr.String(jtv) } default: @@ -2481,7 +2489,7 @@ func awsAwsjson11_deserializeOpDocumentGetStatementResultOutput(v **GetStatement if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Records": @@ -2499,7 +2507,7 @@ func awsAwsjson11_deserializeOpDocumentGetStatementResultOutput(v **GetStatement if err != nil { return err } - sv.TotalNumRows = &i64 + sv.TotalNumRows = i64 } default: @@ -2544,7 +2552,7 @@ func awsAwsjson11_deserializeOpDocumentListDatabasesOutput(v **ListDatabasesOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2584,7 +2592,7 @@ func awsAwsjson11_deserializeOpDocumentListSchemasOutput(v **ListSchemasOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Schemas": @@ -2629,7 +2637,7 @@ func awsAwsjson11_deserializeOpDocumentListStatementsOutput(v **ListStatementsOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Statements": @@ -2674,7 +2682,7 @@ func awsAwsjson11_deserializeOpDocumentListTablesOutput(v **ListTablesOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tables": diff --git a/service/redshiftdata/go.mod b/service/redshiftdata/go.mod index 959bdfe31cc..cfa0476cddf 100644 --- a/service/redshiftdata/go.mod +++ b/service/redshiftdata/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/redshiftdata go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/redshiftdata/serializers.go b/service/redshiftdata/serializers.go index 1d07ca928e8..69599a943ed 100644 --- a/service/redshiftdata/serializers.go +++ b/service/redshiftdata/serializers.go @@ -469,9 +469,9 @@ func awsAwsjson11_serializeOpDocumentDescribeTableInput(v *DescribeTableInput, v ok.String(*v.DbUser) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -575,9 +575,9 @@ func awsAwsjson11_serializeOpDocumentListDatabasesInput(v *ListDatabasesInput, v ok.String(*v.DbUser) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -612,9 +612,9 @@ func awsAwsjson11_serializeOpDocumentListSchemasInput(v *ListSchemasInput, value ok.String(*v.DbUser) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -639,9 +639,9 @@ func awsAwsjson11_serializeOpDocumentListStatementsInput(v *ListStatementsInput, object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -681,9 +681,9 @@ func awsAwsjson11_serializeOpDocumentListTablesInput(v *ListTablesInput, value s ok.String(*v.DbUser) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { diff --git a/service/redshiftdata/types/types.go b/service/redshiftdata/types/types.go index 1b5cfeccd27..bc9f388f52f 100644 --- a/service/redshiftdata/types/types.go +++ b/service/redshiftdata/types/types.go @@ -13,31 +13,31 @@ type ColumnMetadata struct { ColumnDefault *string // A value that indicates whether the column is case-sensitive. - IsCaseSensitive *bool + IsCaseSensitive bool // A value that indicates whether the column contains currency values. - IsCurrency *bool + IsCurrency bool // A value that indicates whether an integer column is signed. - IsSigned *bool + IsSigned bool // The label for the column. Label *string // The length of the column. - Length *int32 + Length int32 // The name of the column. Name *string // A value that indicates whether the column is nullable. - Nullable *int32 + Nullable int32 // The precision value of a decimal number column. - Precision *int32 + Precision int32 // The scale value of a decimal number column. - Scale *int32 + Scale int32 // The name of the schema that contains the table that includes the column. SchemaName *string diff --git a/service/rekognition/api_op_CompareFaces.go b/service/rekognition/api_op_CompareFaces.go index 4f400284bb2..0337572500d 100644 --- a/service/rekognition/api_op_CompareFaces.go +++ b/service/rekognition/api_op_CompareFaces.go @@ -101,7 +101,7 @@ type CompareFacesOutput struct { // CompareFacesMatch object provides the bounding box, the confidence level that // the bounding box contains a face, and the similarity score for the face in the // bounding box and the face in the source image. - FaceMatches []*types.CompareFacesMatch + FaceMatches []types.CompareFacesMatch // The face in the source image that was used for comparison. SourceImageFace *types.ComparedSourceImageFace @@ -133,7 +133,7 @@ type CompareFacesOutput struct { TargetImageOrientationCorrection types.OrientationCorrection // An array of faces in the target image that did not match the source image face. - UnmatchedFaces []*types.ComparedFace + UnmatchedFaces []types.ComparedFace // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rekognition/api_op_DeleteFaces.go b/service/rekognition/api_op_DeleteFaces.go index 85f4e08d7a4..0dca06bebf4 100644 --- a/service/rekognition/api_op_DeleteFaces.go +++ b/service/rekognition/api_op_DeleteFaces.go @@ -38,13 +38,13 @@ type DeleteFacesInput struct { // An array of face IDs to delete. // // This member is required. - FaceIds []*string + FaceIds []string } type DeleteFacesOutput struct { // An array of strings (face IDs) of the faces that were deleted. - DeletedFaces []*string + DeletedFaces []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rekognition/api_op_DescribeProjectVersions.go b/service/rekognition/api_op_DescribeProjectVersions.go index b5a9e8549b4..3df4d5f955e 100644 --- a/service/rekognition/api_op_DescribeProjectVersions.go +++ b/service/rekognition/api_op_DescribeProjectVersions.go @@ -54,7 +54,7 @@ type DescribeProjectVersionsInput struct { // ARN. For example, my-model.2020-01-21T09.10.15 is the version name in the // following ARN. // arn:aws:rekognition:us-east-1:123456789012:project/getting-started/version/my-model.2020-01-21T09.10.15/1234567890123. - VersionNames []*string + VersionNames []string } type DescribeProjectVersionsOutput struct { @@ -66,7 +66,7 @@ type DescribeProjectVersionsOutput struct { // A list of model descriptions. The list is sorted by the creation date and time // of the model versions, latest to earliest. - ProjectVersionDescriptions []*types.ProjectVersionDescription + ProjectVersionDescriptions []types.ProjectVersionDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rekognition/api_op_DescribeProjects.go b/service/rekognition/api_op_DescribeProjects.go index 8d53d1a612d..a37b46799fd 100644 --- a/service/rekognition/api_op_DescribeProjects.go +++ b/service/rekognition/api_op_DescribeProjects.go @@ -51,7 +51,7 @@ type DescribeProjectsOutput struct { // A list of project descriptions. The list is sorted by the date and time the // projects are created. - ProjectDescriptions []*types.ProjectDescription + ProjectDescriptions []types.ProjectDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rekognition/api_op_DetectCustomLabels.go b/service/rekognition/api_op_DetectCustomLabels.go index db215bd771d..69921217104 100644 --- a/service/rekognition/api_op_DetectCustomLabels.go +++ b/service/rekognition/api_op_DetectCustomLabels.go @@ -91,7 +91,7 @@ type DetectCustomLabelsInput struct { type DetectCustomLabelsOutput struct { // An array of custom labels detected in the input image. - CustomLabels []*types.CustomLabel + CustomLabels []types.CustomLabel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rekognition/api_op_DetectFaces.go b/service/rekognition/api_op_DetectFaces.go index 82453a9f554..d7587864b9f 100644 --- a/service/rekognition/api_op_DetectFaces.go +++ b/service/rekognition/api_op_DetectFaces.go @@ -65,7 +65,7 @@ type DetectFacesInput struct { type DetectFacesOutput struct { // Details of each face found in the image. - FaceDetails []*types.FaceDetail + FaceDetails []types.FaceDetail // The value of OrientationCorrection is always null. If the input image is in // .jpeg format, it might contain exchangeable image file format (Exif) metadata diff --git a/service/rekognition/api_op_DetectLabels.go b/service/rekognition/api_op_DetectLabels.go index 22c71edbfcf..8bfe79a980f 100644 --- a/service/rekognition/api_op_DetectLabels.go +++ b/service/rekognition/api_op_DetectLabels.go @@ -104,7 +104,7 @@ type DetectLabelsOutput struct { LabelModelVersion *string // An array of labels for the real-world objects detected. - Labels []*types.Label + Labels []types.Label // The value of OrientationCorrection is always null. If the input image is in // .jpeg format, it might contain exchangeable image file format (Exif) metadata diff --git a/service/rekognition/api_op_DetectModerationLabels.go b/service/rekognition/api_op_DetectModerationLabels.go index 7c44bda60ca..efe354424ac 100644 --- a/service/rekognition/api_op_DetectModerationLabels.go +++ b/service/rekognition/api_op_DetectModerationLabels.go @@ -65,7 +65,7 @@ type DetectModerationLabelsOutput struct { // Array of detected Moderation labels and the time, in milliseconds from the start // of the video, they were detected. - ModerationLabels []*types.ModerationLabel + ModerationLabels []types.ModerationLabel // Version number of the moderation detection model that was used to detect unsafe // content. diff --git a/service/rekognition/api_op_DetectProtectiveEquipment.go b/service/rekognition/api_op_DetectProtectiveEquipment.go index 46e2c3663c9..fe658e3a7f6 100644 --- a/service/rekognition/api_op_DetectProtectiveEquipment.go +++ b/service/rekognition/api_op_DetectProtectiveEquipment.go @@ -77,7 +77,7 @@ type DetectProtectiveEquipmentInput struct { type DetectProtectiveEquipmentOutput struct { // An array of persons detected in the image (including persons not wearing PPE). - Persons []*types.ProtectiveEquipmentPerson + Persons []types.ProtectiveEquipmentPerson // The version number of the PPE detection model used to detect PPE in the image. ProtectiveEquipmentModelVersion *string diff --git a/service/rekognition/api_op_DetectText.go b/service/rekognition/api_op_DetectText.go index 21ff905a033..e4383bd1771 100644 --- a/service/rekognition/api_op_DetectText.go +++ b/service/rekognition/api_op_DetectText.go @@ -66,7 +66,7 @@ type DetectTextInput struct { type DetectTextOutput struct { // An array of text that was detected in the input image. - TextDetections []*types.TextDetection + TextDetections []types.TextDetection // The model version used to detect text. TextModelVersion *string diff --git a/service/rekognition/api_op_GetCelebrityInfo.go b/service/rekognition/api_op_GetCelebrityInfo.go index a7920be6ef3..6eefb4f486f 100644 --- a/service/rekognition/api_op_GetCelebrityInfo.go +++ b/service/rekognition/api_op_GetCelebrityInfo.go @@ -46,7 +46,7 @@ type GetCelebrityInfoOutput struct { Name *string // An array of URLs pointing to additional celebrity information. - Urls []*string + Urls []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rekognition/api_op_GetCelebrityRecognition.go b/service/rekognition/api_op_GetCelebrityRecognition.go index d7d31c193fb..c2492c693d4 100644 --- a/service/rekognition/api_op_GetCelebrityRecognition.go +++ b/service/rekognition/api_op_GetCelebrityRecognition.go @@ -88,7 +88,7 @@ type GetCelebrityRecognitionInput struct { type GetCelebrityRecognitionOutput struct { // Array of celebrities recognized in the video. - Celebrities []*types.CelebrityRecognition + Celebrities []types.CelebrityRecognition // The current status of the celebrity recognition job. JobStatus types.VideoJobStatus diff --git a/service/rekognition/api_op_GetContentModeration.go b/service/rekognition/api_op_GetContentModeration.go index 3b2f2030484..278b95a2b40 100644 --- a/service/rekognition/api_op_GetContentModeration.go +++ b/service/rekognition/api_op_GetContentModeration.go @@ -82,7 +82,7 @@ type GetContentModerationOutput struct { JobStatus types.VideoJobStatus // The detected unsafe content labels and the time(s) they were detected. - ModerationLabels []*types.ContentModerationDetection + ModerationLabels []types.ContentModerationDetection // Version number of the moderation detection model that was used to detect unsafe // content. diff --git a/service/rekognition/api_op_GetFaceDetection.go b/service/rekognition/api_op_GetFaceDetection.go index 20e1ce0e970..6efc42ae00d 100644 --- a/service/rekognition/api_op_GetFaceDetection.go +++ b/service/rekognition/api_op_GetFaceDetection.go @@ -66,7 +66,7 @@ type GetFaceDetectionOutput struct { // An array of faces detected in the video. Each element contains a detected face's // details and the time, in milliseconds from the start of the video, the face was // detected. - Faces []*types.FaceDetection + Faces []types.FaceDetection // The current status of the face detection job. JobStatus types.VideoJobStatus diff --git a/service/rekognition/api_op_GetFaceSearch.go b/service/rekognition/api_op_GetFaceSearch.go index 6ff345c3220..5fb6bb51117 100644 --- a/service/rekognition/api_op_GetFaceSearch.go +++ b/service/rekognition/api_op_GetFaceSearch.go @@ -89,7 +89,7 @@ type GetFaceSearchOutput struct { // call to StartFaceSearch. Each Persons element includes a time the person was // matched, face match details (FaceMatches) for matching faces in the collection, // and person information (Person) for the matched person. - Persons []*types.PersonMatch + Persons []types.PersonMatch // If the job fails, StatusMessage provides a descriptive error message. StatusMessage *string diff --git a/service/rekognition/api_op_GetLabelDetection.go b/service/rekognition/api_op_GetLabelDetection.go index 12fdf655c1f..9c9b52c3d5c 100644 --- a/service/rekognition/api_op_GetLabelDetection.go +++ b/service/rekognition/api_op_GetLabelDetection.go @@ -83,7 +83,7 @@ type GetLabelDetectionOutput struct { // An array of labels detected in the video. Each element contains the detected // label and the time, in milliseconds from the start of the video, that the label // was detected. - Labels []*types.LabelDetection + Labels []types.LabelDetection // If the response is truncated, Amazon Rekognition Video returns this token that // you can use in the subsequent request to retrieve the next set of labels. diff --git a/service/rekognition/api_op_GetPersonTracking.go b/service/rekognition/api_op_GetPersonTracking.go index cb7dcf8d219..34a29230f09 100644 --- a/service/rekognition/api_op_GetPersonTracking.go +++ b/service/rekognition/api_op_GetPersonTracking.go @@ -87,7 +87,7 @@ type GetPersonTrackingOutput struct { // An array of the persons detected in the video and the time(s) their path was // tracked throughout the video. An array element will exist for each time a // person's path is tracked. - Persons []*types.PersonDetection + Persons []types.PersonDetection // If the job fails, StatusMessage provides a descriptive error message. StatusMessage *string diff --git a/service/rekognition/api_op_GetSegmentDetection.go b/service/rekognition/api_op_GetSegmentDetection.go index 1df8b110b3c..b2c32d85697 100644 --- a/service/rekognition/api_op_GetSegmentDetection.go +++ b/service/rekognition/api_op_GetSegmentDetection.go @@ -75,7 +75,7 @@ type GetSegmentDetectionOutput struct { // AudioMetadata objects includes the audio codec, the number of audio channels, // the duration of the audio stream, and the sample rate. Audio metadata is // returned in each page of information returned by GetSegmentDetection. - AudioMetadata []*types.AudioMetadata + AudioMetadata []types.AudioMetadata // Current status of the segment detection job. JobStatus types.VideoJobStatus @@ -89,11 +89,11 @@ type GetSegmentDetectionOutput struct { // types (TECHNICAL_CUE or SHOT) specified in the SegmentTypes input parameter of // StartSegmentDetection. Within each segment type the array is sorted by timestamp // values. - Segments []*types.SegmentDetection + Segments []types.SegmentDetection // An array containing the segment types requested in the call to // StartSegmentDetection. - SelectedSegmentTypes []*types.SegmentTypeInfo + SelectedSegmentTypes []types.SegmentTypeInfo // If the job fails, StatusMessage provides a descriptive error message. StatusMessage *string @@ -103,7 +103,7 @@ type GetSegmentDetectionOutput struct { // that Amazon Rekognition Video chose to analyze. The VideoMetadata object // includes the video codec, video format and other information. Video metadata is // returned in each page of information returned by GetSegmentDetection. - VideoMetadata []*types.VideoMetadata + VideoMetadata []types.VideoMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rekognition/api_op_GetTextDetection.go b/service/rekognition/api_op_GetTextDetection.go index d39dc0bdb73..c210ebf4883 100644 --- a/service/rekognition/api_op_GetTextDetection.go +++ b/service/rekognition/api_op_GetTextDetection.go @@ -79,7 +79,7 @@ type GetTextDetectionOutput struct { // An array of text detected in the video. Each element contains the detected text, // the time in milliseconds from the start of the video that the text was detected, // and where it was detected on the screen. - TextDetections []*types.TextDetectionResult + TextDetections []types.TextDetectionResult // Version number of the text detection model that was used to detect text. TextModelVersion *string diff --git a/service/rekognition/api_op_IndexFaces.go b/service/rekognition/api_op_IndexFaces.go index cb2a5a929ef..bc0124a6e43 100644 --- a/service/rekognition/api_op_IndexFaces.go +++ b/service/rekognition/api_op_IndexFaces.go @@ -169,7 +169,7 @@ type IndexFacesOutput struct { // An array of faces detected and added to the collection. For more information, // see Searching Faces in a Collection in the Amazon Rekognition Developer Guide. - FaceRecords []*types.FaceRecord + FaceRecords []types.FaceRecord // If your collection is associated with a face detection model that's later than // version 3.0, the value of OrientationCorrection is always null and no @@ -200,7 +200,7 @@ type IndexFacesOutput struct { // weren't indexed because the quality filter identified them as low quality, or // the MaxFaces request parameter filtered them out. To use the quality filter, you // specify the QualityFilter request parameter. - UnindexedFaces []*types.UnindexedFace + UnindexedFaces []types.UnindexedFace // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rekognition/api_op_ListCollections.go b/service/rekognition/api_op_ListCollections.go index d4a327204e0..e86e0ea86e0 100644 --- a/service/rekognition/api_op_ListCollections.go +++ b/service/rekognition/api_op_ListCollections.go @@ -42,13 +42,13 @@ type ListCollectionsInput struct { type ListCollectionsOutput struct { // An array of collection IDs. - CollectionIds []*string + CollectionIds []string // Version numbers of the face detection models associated with the collections in // the array CollectionIds. For example, the value of FaceModelVersions[2] is the // version number for the face detection model used by the collection in // CollectionId[2]. - FaceModelVersions []*string + FaceModelVersions []string // If the result is truncated, the response provides a NextToken that you can use // in the subsequent request to fetch the next set of collection IDs. diff --git a/service/rekognition/api_op_ListFaces.go b/service/rekognition/api_op_ListFaces.go index 5d61a3b1857..c93f13f0b4e 100644 --- a/service/rekognition/api_op_ListFaces.go +++ b/service/rekognition/api_op_ListFaces.go @@ -54,7 +54,7 @@ type ListFacesOutput struct { FaceModelVersion *string // An array of Face objects. - Faces []*types.Face + Faces []types.Face // If the response is truncated, Amazon Rekognition returns this token that you can // use in the subsequent request to retrieve the next set of faces. diff --git a/service/rekognition/api_op_ListStreamProcessors.go b/service/rekognition/api_op_ListStreamProcessors.go index e5557b685c1..72609bda70c 100644 --- a/service/rekognition/api_op_ListStreamProcessors.go +++ b/service/rekognition/api_op_ListStreamProcessors.go @@ -49,7 +49,7 @@ type ListStreamProcessorsOutput struct { NextToken *string // List of stream processors that you have created. - StreamProcessors []*types.StreamProcessor + StreamProcessors []types.StreamProcessor // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rekognition/api_op_RecognizeCelebrities.go b/service/rekognition/api_op_RecognizeCelebrities.go index a5bb6a90bfd..a5bda3020b8 100644 --- a/service/rekognition/api_op_RecognizeCelebrities.go +++ b/service/rekognition/api_op_RecognizeCelebrities.go @@ -63,7 +63,7 @@ type RecognizeCelebritiesOutput struct { // Details about each celebrity found in the image. Amazon Rekognition can detect a // maximum of 64 celebrities in an image. - CelebrityFaces []*types.Celebrity + CelebrityFaces []types.Celebrity // The orientation of the input image (counterclockwise direction). If your // application displays the image, you can use this value to correct the @@ -78,7 +78,7 @@ type RecognizeCelebritiesOutput struct { OrientationCorrection types.OrientationCorrection // Details about each unrecognized face in the image. - UnrecognizedFaces []*types.ComparedFace + UnrecognizedFaces []types.ComparedFace // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/rekognition/api_op_SearchFaces.go b/service/rekognition/api_op_SearchFaces.go index ceda3ab7204..14e5d2a0bb4 100644 --- a/service/rekognition/api_op_SearchFaces.go +++ b/service/rekognition/api_op_SearchFaces.go @@ -64,7 +64,7 @@ type SearchFacesOutput struct { // An array of faces that matched the input face, along with the confidence in the // match. - FaceMatches []*types.FaceMatch + FaceMatches []types.FaceMatch // Version number of the face detection model associated with the input collection // (CollectionId). diff --git a/service/rekognition/api_op_SearchFacesByImage.go b/service/rekognition/api_op_SearchFacesByImage.go index 8f8bb5bf484..9c84016bf31 100644 --- a/service/rekognition/api_op_SearchFacesByImage.go +++ b/service/rekognition/api_op_SearchFacesByImage.go @@ -95,7 +95,7 @@ type SearchFacesByImageOutput struct { // An array of faces that match the input face, along with the confidence in the // match. - FaceMatches []*types.FaceMatch + FaceMatches []types.FaceMatch // Version number of the face detection model associated with the input collection // (CollectionId). diff --git a/service/rekognition/deserializers.go b/service/rekognition/deserializers.go index 54c21824fa3..d63e7b07dee 100644 --- a/service/rekognition/deserializers.go +++ b/service/rekognition/deserializers.go @@ -6950,7 +6950,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -6959,7 +6959,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -6968,7 +6968,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7073,7 +7073,7 @@ func awsAwsjson11_deserializeDocumentAsset(v **types.Asset, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentAssets(v *[]*types.Asset, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssets(v *[]types.Asset, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7086,18 +7086,20 @@ func awsAwsjson11_deserializeDocumentAssets(v *[]*types.Asset, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Asset + var cv []types.Asset if *v == nil { - cv = []*types.Asset{} + cv = []types.Asset{} } else { cv = *v } for _, value := range shape { - var col *types.Asset - if err := awsAwsjson11_deserializeDocumentAsset(&col, value); err != nil { + var col types.Asset + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAsset(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7133,7 +7135,7 @@ func awsAwsjson11_deserializeDocumentAudioMetadata(v **types.AudioMetadata, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Codec = &jtv + sv.Codec = ptr.String(jtv) } case "DurationMillis": @@ -7146,7 +7148,7 @@ func awsAwsjson11_deserializeDocumentAudioMetadata(v **types.AudioMetadata, valu if err != nil { return err } - sv.DurationMillis = &i64 + sv.DurationMillis = ptr.Int64(i64) } case "NumberOfChannels": @@ -7159,7 +7161,7 @@ func awsAwsjson11_deserializeDocumentAudioMetadata(v **types.AudioMetadata, valu if err != nil { return err } - sv.NumberOfChannels = &i64 + sv.NumberOfChannels = ptr.Int64(i64) } case "SampleRate": @@ -7172,7 +7174,7 @@ func awsAwsjson11_deserializeDocumentAudioMetadata(v **types.AudioMetadata, valu if err != nil { return err } - sv.SampleRate = &i64 + sv.SampleRate = ptr.Int64(i64) } default: @@ -7184,7 +7186,7 @@ func awsAwsjson11_deserializeDocumentAudioMetadata(v **types.AudioMetadata, valu return nil } -func awsAwsjson11_deserializeDocumentAudioMetadataList(v *[]*types.AudioMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentAudioMetadataList(v *[]types.AudioMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7197,18 +7199,20 @@ func awsAwsjson11_deserializeDocumentAudioMetadataList(v *[]*types.AudioMetadata return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AudioMetadata + var cv []types.AudioMetadata if *v == nil { - cv = []*types.AudioMetadata{} + cv = []types.AudioMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.AudioMetadata - if err := awsAwsjson11_deserializeDocumentAudioMetadata(&col, value); err != nil { + var col types.AudioMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAudioMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7257,7 +7261,7 @@ func awsAwsjson11_deserializeDocumentBeard(v **types.Beard, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Value = &jtv + sv.Value = jtv } default: @@ -7269,7 +7273,7 @@ func awsAwsjson11_deserializeDocumentBeard(v **types.Beard, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentBodyParts(v *[]*types.ProtectiveEquipmentBodyPart, value interface{}) error { +func awsAwsjson11_deserializeDocumentBodyParts(v *[]types.ProtectiveEquipmentBodyPart, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7282,18 +7286,20 @@ func awsAwsjson11_deserializeDocumentBodyParts(v *[]*types.ProtectiveEquipmentBo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProtectiveEquipmentBodyPart + var cv []types.ProtectiveEquipmentBodyPart if *v == nil { - cv = []*types.ProtectiveEquipmentBodyPart{} + cv = []types.ProtectiveEquipmentBodyPart{} } else { cv = *v } for _, value := range shape { - var col *types.ProtectiveEquipmentBodyPart - if err := awsAwsjson11_deserializeDocumentProtectiveEquipmentBodyPart(&col, value); err != nil { + var col types.ProtectiveEquipmentBodyPart + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProtectiveEquipmentBodyPart(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7417,7 +7423,7 @@ func awsAwsjson11_deserializeDocumentCelebrity(v **types.Celebrity, value interf if !ok { return fmt.Errorf("expected RekognitionUniqueId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "MatchConfidence": @@ -7439,7 +7445,7 @@ func awsAwsjson11_deserializeDocumentCelebrity(v **types.Celebrity, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Urls": @@ -7507,7 +7513,7 @@ func awsAwsjson11_deserializeDocumentCelebrityDetail(v **types.CelebrityDetail, if !ok { return fmt.Errorf("expected RekognitionUniqueId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -7516,7 +7522,7 @@ func awsAwsjson11_deserializeDocumentCelebrityDetail(v **types.CelebrityDetail, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Urls": @@ -7533,7 +7539,7 @@ func awsAwsjson11_deserializeDocumentCelebrityDetail(v **types.CelebrityDetail, return nil } -func awsAwsjson11_deserializeDocumentCelebrityList(v *[]*types.Celebrity, value interface{}) error { +func awsAwsjson11_deserializeDocumentCelebrityList(v *[]types.Celebrity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7546,18 +7552,20 @@ func awsAwsjson11_deserializeDocumentCelebrityList(v *[]*types.Celebrity, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Celebrity + var cv []types.Celebrity if *v == nil { - cv = []*types.Celebrity{} + cv = []types.Celebrity{} } else { cv = *v } for _, value := range shape { - var col *types.Celebrity - if err := awsAwsjson11_deserializeDocumentCelebrity(&col, value); err != nil { + var col types.Celebrity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCelebrity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7602,7 +7610,7 @@ func awsAwsjson11_deserializeDocumentCelebrityRecognition(v **types.CelebrityRec if err != nil { return err } - sv.Timestamp = &i64 + sv.Timestamp = i64 } default: @@ -7614,7 +7622,7 @@ func awsAwsjson11_deserializeDocumentCelebrityRecognition(v **types.CelebrityRec return nil } -func awsAwsjson11_deserializeDocumentCelebrityRecognitions(v *[]*types.CelebrityRecognition, value interface{}) error { +func awsAwsjson11_deserializeDocumentCelebrityRecognitions(v *[]types.CelebrityRecognition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7627,18 +7635,20 @@ func awsAwsjson11_deserializeDocumentCelebrityRecognitions(v *[]*types.Celebrity return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CelebrityRecognition + var cv []types.CelebrityRecognition if *v == nil { - cv = []*types.CelebrityRecognition{} + cv = []types.CelebrityRecognition{} } else { cv = *v } for _, value := range shape { - var col *types.CelebrityRecognition - if err := awsAwsjson11_deserializeDocumentCelebrityRecognition(&col, value); err != nil { + var col types.CelebrityRecognition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCelebrityRecognition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7646,7 +7656,7 @@ func awsAwsjson11_deserializeDocumentCelebrityRecognitions(v *[]*types.Celebrity return nil } -func awsAwsjson11_deserializeDocumentCollectionIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCollectionIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7659,21 +7669,21 @@ func awsAwsjson11_deserializeDocumentCollectionIdList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected CollectionId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7746,7 +7756,7 @@ func awsAwsjson11_deserializeDocumentComparedFace(v **types.ComparedFace, value return nil } -func awsAwsjson11_deserializeDocumentComparedFaceList(v *[]*types.ComparedFace, value interface{}) error { +func awsAwsjson11_deserializeDocumentComparedFaceList(v *[]types.ComparedFace, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7759,18 +7769,20 @@ func awsAwsjson11_deserializeDocumentComparedFaceList(v *[]*types.ComparedFace, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComparedFace + var cv []types.ComparedFace if *v == nil { - cv = []*types.ComparedFace{} + cv = []types.ComparedFace{} } else { cv = *v } for _, value := range shape { - var col *types.ComparedFace - if err := awsAwsjson11_deserializeDocumentComparedFace(&col, value); err != nil { + var col types.ComparedFace + destAddr := &col + if err := awsAwsjson11_deserializeDocumentComparedFace(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7876,7 +7888,7 @@ func awsAwsjson11_deserializeDocumentCompareFacesMatch(v **types.CompareFacesMat return nil } -func awsAwsjson11_deserializeDocumentCompareFacesMatchList(v *[]*types.CompareFacesMatch, value interface{}) error { +func awsAwsjson11_deserializeDocumentCompareFacesMatchList(v *[]types.CompareFacesMatch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7889,18 +7901,20 @@ func awsAwsjson11_deserializeDocumentCompareFacesMatchList(v *[]*types.CompareFa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CompareFacesMatch + var cv []types.CompareFacesMatch if *v == nil { - cv = []*types.CompareFacesMatch{} + cv = []types.CompareFacesMatch{} } else { cv = *v } for _, value := range shape { - var col *types.CompareFacesMatch - if err := awsAwsjson11_deserializeDocumentCompareFacesMatch(&col, value); err != nil { + var col types.CompareFacesMatch + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCompareFacesMatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7908,7 +7922,7 @@ func awsAwsjson11_deserializeDocumentCompareFacesMatchList(v *[]*types.CompareFa return nil } -func awsAwsjson11_deserializeDocumentCompareFacesUnmatchList(v *[]*types.ComparedFace, value interface{}) error { +func awsAwsjson11_deserializeDocumentCompareFacesUnmatchList(v *[]types.ComparedFace, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7921,18 +7935,20 @@ func awsAwsjson11_deserializeDocumentCompareFacesUnmatchList(v *[]*types.Compare return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComparedFace + var cv []types.ComparedFace if *v == nil { - cv = []*types.ComparedFace{} + cv = []types.ComparedFace{} } else { cv = *v } for _, value := range shape { - var col *types.ComparedFace - if err := awsAwsjson11_deserializeDocumentComparedFace(&col, value); err != nil { + var col types.ComparedFace + destAddr := &col + if err := awsAwsjson11_deserializeDocumentComparedFace(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7977,7 +7993,7 @@ func awsAwsjson11_deserializeDocumentContentModerationDetection(v **types.Conten if err != nil { return err } - sv.Timestamp = &i64 + sv.Timestamp = i64 } default: @@ -7989,7 +8005,7 @@ func awsAwsjson11_deserializeDocumentContentModerationDetection(v **types.Conten return nil } -func awsAwsjson11_deserializeDocumentContentModerationDetections(v *[]*types.ContentModerationDetection, value interface{}) error { +func awsAwsjson11_deserializeDocumentContentModerationDetections(v *[]types.ContentModerationDetection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8002,18 +8018,20 @@ func awsAwsjson11_deserializeDocumentContentModerationDetections(v *[]*types.Con return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContentModerationDetection + var cv []types.ContentModerationDetection if *v == nil { - cv = []*types.ContentModerationDetection{} + cv = []types.ContentModerationDetection{} } else { cv = *v } for _, value := range shape { - var col *types.ContentModerationDetection - if err := awsAwsjson11_deserializeDocumentContentModerationDetection(&col, value); err != nil { + var col types.ContentModerationDetection + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContentModerationDetection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8062,7 +8080,7 @@ func awsAwsjson11_deserializeDocumentCoversBodyPart(v **types.CoversBodyPart, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Value = &jtv + sv.Value = jtv } default: @@ -8120,7 +8138,7 @@ func awsAwsjson11_deserializeDocumentCustomLabel(v **types.CustomLabel, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8132,7 +8150,7 @@ func awsAwsjson11_deserializeDocumentCustomLabel(v **types.CustomLabel, value in return nil } -func awsAwsjson11_deserializeDocumentCustomLabels(v *[]*types.CustomLabel, value interface{}) error { +func awsAwsjson11_deserializeDocumentCustomLabels(v *[]types.CustomLabel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8145,18 +8163,20 @@ func awsAwsjson11_deserializeDocumentCustomLabels(v *[]*types.CustomLabel, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CustomLabel + var cv []types.CustomLabel if *v == nil { - cv = []*types.CustomLabel{} + cv = []types.CustomLabel{} } else { cv = *v } for _, value := range shape { - var col *types.CustomLabel - if err := awsAwsjson11_deserializeDocumentCustomLabel(&col, value); err != nil { + var col types.CustomLabel + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCustomLabel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8217,7 +8237,7 @@ func awsAwsjson11_deserializeDocumentEmotion(v **types.Emotion, value interface{ return nil } -func awsAwsjson11_deserializeDocumentEmotions(v *[]*types.Emotion, value interface{}) error { +func awsAwsjson11_deserializeDocumentEmotions(v *[]types.Emotion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8230,18 +8250,20 @@ func awsAwsjson11_deserializeDocumentEmotions(v *[]*types.Emotion, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Emotion + var cv []types.Emotion if *v == nil { - cv = []*types.Emotion{} + cv = []types.Emotion{} } else { cv = *v } for _, value := range shape { - var col *types.Emotion - if err := awsAwsjson11_deserializeDocumentEmotion(&col, value); err != nil { + var col types.Emotion + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEmotion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8312,7 +8334,7 @@ func awsAwsjson11_deserializeDocumentEquipmentDetection(v **types.EquipmentDetec return nil } -func awsAwsjson11_deserializeDocumentEquipmentDetections(v *[]*types.EquipmentDetection, value interface{}) error { +func awsAwsjson11_deserializeDocumentEquipmentDetections(v *[]types.EquipmentDetection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8325,18 +8347,20 @@ func awsAwsjson11_deserializeDocumentEquipmentDetections(v *[]*types.EquipmentDe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EquipmentDetection + var cv []types.EquipmentDetection if *v == nil { - cv = []*types.EquipmentDetection{} + cv = []types.EquipmentDetection{} } else { cv = *v } for _, value := range shape { - var col *types.EquipmentDetection - if err := awsAwsjson11_deserializeDocumentEquipmentDetection(&col, value); err != nil { + var col types.EquipmentDetection + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEquipmentDetection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8434,7 +8458,7 @@ func awsAwsjson11_deserializeDocumentEyeglasses(v **types.Eyeglasses, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Value = &jtv + sv.Value = jtv } default: @@ -8487,7 +8511,7 @@ func awsAwsjson11_deserializeDocumentEyeOpen(v **types.EyeOpen, value interface{ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Value = &jtv + sv.Value = jtv } default: @@ -8545,7 +8569,7 @@ func awsAwsjson11_deserializeDocumentFace(v **types.Face, value interface{}) err if !ok { return fmt.Errorf("expected ExternalImageId to be of type string, got %T instead", value) } - sv.ExternalImageId = &jtv + sv.ExternalImageId = ptr.String(jtv) } case "FaceId": @@ -8554,7 +8578,7 @@ func awsAwsjson11_deserializeDocumentFace(v **types.Face, value interface{}) err if !ok { return fmt.Errorf("expected FaceId to be of type string, got %T instead", value) } - sv.FaceId = &jtv + sv.FaceId = ptr.String(jtv) } case "ImageId": @@ -8563,7 +8587,7 @@ func awsAwsjson11_deserializeDocumentFace(v **types.Face, value interface{}) err if !ok { return fmt.Errorf("expected ImageId to be of type string, got %T instead", value) } - sv.ImageId = &jtv + sv.ImageId = ptr.String(jtv) } default: @@ -8689,7 +8713,7 @@ func awsAwsjson11_deserializeDocumentFaceDetail(v **types.FaceDetail, value inte return nil } -func awsAwsjson11_deserializeDocumentFaceDetailList(v *[]*types.FaceDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentFaceDetailList(v *[]types.FaceDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8702,18 +8726,20 @@ func awsAwsjson11_deserializeDocumentFaceDetailList(v *[]*types.FaceDetail, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FaceDetail + var cv []types.FaceDetail if *v == nil { - cv = []*types.FaceDetail{} + cv = []types.FaceDetail{} } else { cv = *v } for _, value := range shape { - var col *types.FaceDetail - if err := awsAwsjson11_deserializeDocumentFaceDetail(&col, value); err != nil { + var col types.FaceDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFaceDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8758,7 +8784,7 @@ func awsAwsjson11_deserializeDocumentFaceDetection(v **types.FaceDetection, valu if err != nil { return err } - sv.Timestamp = &i64 + sv.Timestamp = i64 } default: @@ -8770,7 +8796,7 @@ func awsAwsjson11_deserializeDocumentFaceDetection(v **types.FaceDetection, valu return nil } -func awsAwsjson11_deserializeDocumentFaceDetections(v *[]*types.FaceDetection, value interface{}) error { +func awsAwsjson11_deserializeDocumentFaceDetections(v *[]types.FaceDetection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8783,18 +8809,20 @@ func awsAwsjson11_deserializeDocumentFaceDetections(v *[]*types.FaceDetection, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FaceDetection + var cv []types.FaceDetection if *v == nil { - cv = []*types.FaceDetection{} + cv = []types.FaceDetection{} } else { cv = *v } for _, value := range shape { - var col *types.FaceDetection - if err := awsAwsjson11_deserializeDocumentFaceDetection(&col, value); err != nil { + var col types.FaceDetection + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFaceDetection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8802,7 +8830,7 @@ func awsAwsjson11_deserializeDocumentFaceDetections(v *[]*types.FaceDetection, v return nil } -func awsAwsjson11_deserializeDocumentFaceIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentFaceIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8815,21 +8843,21 @@ func awsAwsjson11_deserializeDocumentFaceIdList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FaceId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8838,7 +8866,7 @@ func awsAwsjson11_deserializeDocumentFaceIdList(v *[]*string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentFaceList(v *[]*types.Face, value interface{}) error { +func awsAwsjson11_deserializeDocumentFaceList(v *[]types.Face, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8851,18 +8879,20 @@ func awsAwsjson11_deserializeDocumentFaceList(v *[]*types.Face, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Face + var cv []types.Face if *v == nil { - cv = []*types.Face{} + cv = []types.Face{} } else { cv = *v } for _, value := range shape { - var col *types.Face - if err := awsAwsjson11_deserializeDocumentFace(&col, value); err != nil { + var col types.Face + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFace(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8919,7 +8949,7 @@ func awsAwsjson11_deserializeDocumentFaceMatch(v **types.FaceMatch, value interf return nil } -func awsAwsjson11_deserializeDocumentFaceMatchList(v *[]*types.FaceMatch, value interface{}) error { +func awsAwsjson11_deserializeDocumentFaceMatchList(v *[]types.FaceMatch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8932,18 +8962,20 @@ func awsAwsjson11_deserializeDocumentFaceMatchList(v *[]*types.FaceMatch, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FaceMatch + var cv []types.FaceMatch if *v == nil { - cv = []*types.FaceMatch{} + cv = []types.FaceMatch{} } else { cv = *v } for _, value := range shape { - var col *types.FaceMatch - if err := awsAwsjson11_deserializeDocumentFaceMatch(&col, value); err != nil { + var col types.FaceMatch + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFaceMatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8951,7 +8983,7 @@ func awsAwsjson11_deserializeDocumentFaceMatchList(v *[]*types.FaceMatch, value return nil } -func awsAwsjson11_deserializeDocumentFaceModelVersionList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentFaceModelVersionList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8964,21 +8996,21 @@ func awsAwsjson11_deserializeDocumentFaceModelVersionList(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -9028,7 +9060,7 @@ func awsAwsjson11_deserializeDocumentFaceRecord(v **types.FaceRecord, value inte return nil } -func awsAwsjson11_deserializeDocumentFaceRecordList(v *[]*types.FaceRecord, value interface{}) error { +func awsAwsjson11_deserializeDocumentFaceRecordList(v *[]types.FaceRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9041,18 +9073,20 @@ func awsAwsjson11_deserializeDocumentFaceRecordList(v *[]*types.FaceRecord, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FaceRecord + var cv []types.FaceRecord if *v == nil { - cv = []*types.FaceRecord{} + cv = []types.FaceRecord{} } else { cv = *v } for _, value := range shape { - var col *types.FaceRecord - if err := awsAwsjson11_deserializeDocumentFaceRecord(&col, value); err != nil { + var col types.FaceRecord + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFaceRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9088,7 +9122,7 @@ func awsAwsjson11_deserializeDocumentFaceSearchSettings(v **types.FaceSearchSett if !ok { return fmt.Errorf("expected CollectionId to be of type string, got %T instead", value) } - sv.CollectionId = &jtv + sv.CollectionId = ptr.String(jtv) } case "FaceMatchThreshold": @@ -9271,7 +9305,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopActivationOutput(v **types.HumanLo if !ok { return fmt.Errorf("expected SynthesizedJsonHumanLoopActivationConditionsEvaluationResults to be of type string, got %T instead", value) } - sv.HumanLoopActivationConditionsEvaluationResults = &jtv + sv.HumanLoopActivationConditionsEvaluationResults = ptr.String(jtv) } case "HumanLoopActivationReasons": @@ -9285,7 +9319,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopActivationOutput(v **types.HumanLo if !ok { return fmt.Errorf("expected HumanLoopArn to be of type string, got %T instead", value) } - sv.HumanLoopArn = &jtv + sv.HumanLoopArn = ptr.String(jtv) } default: @@ -9297,7 +9331,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopActivationOutput(v **types.HumanLo return nil } -func awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9310,21 +9344,21 @@ func awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(v *[]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HumanLoopActivationReason to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9361,7 +9395,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -9370,7 +9404,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -9379,7 +9413,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "QuotaCode": @@ -9388,7 +9422,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.QuotaCode = &jtv + sv.QuotaCode = ptr.String(jtv) } case "ResourceType": @@ -9397,7 +9431,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "ServiceCode": @@ -9406,7 +9440,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceCode = &jtv + sv.ServiceCode = ptr.String(jtv) } default: @@ -9446,7 +9480,7 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -9455,7 +9489,7 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -9464,7 +9498,7 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9561,7 +9595,7 @@ func awsAwsjson11_deserializeDocumentImageTooLargeException(v **types.ImageTooLa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -9570,7 +9604,7 @@ func awsAwsjson11_deserializeDocumentImageTooLargeException(v **types.ImageTooLa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -9579,7 +9613,7 @@ func awsAwsjson11_deserializeDocumentImageTooLargeException(v **types.ImageTooLa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9640,7 +9674,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac return nil } -func awsAwsjson11_deserializeDocumentInstances(v *[]*types.Instance, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstances(v *[]types.Instance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9653,18 +9687,20 @@ func awsAwsjson11_deserializeDocumentInstances(v *[]*types.Instance, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Instance + var cv []types.Instance if *v == nil { - cv = []*types.Instance{} + cv = []types.Instance{} } else { cv = *v } for _, value := range shape { - var col *types.Instance - if err := awsAwsjson11_deserializeDocumentInstance(&col, value); err != nil { + var col types.Instance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9700,7 +9736,7 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -9709,7 +9745,7 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -9718,7 +9754,7 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9758,7 +9794,7 @@ func awsAwsjson11_deserializeDocumentInvalidImageFormatException(v **types.Inval if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -9767,7 +9803,7 @@ func awsAwsjson11_deserializeDocumentInvalidImageFormatException(v **types.Inval if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -9776,7 +9812,7 @@ func awsAwsjson11_deserializeDocumentInvalidImageFormatException(v **types.Inval if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9816,7 +9852,7 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationTokenException(v **types.I if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -9825,7 +9861,7 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationTokenException(v **types.I if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -9834,7 +9870,7 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationTokenException(v **types.I if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9874,7 +9910,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -9883,7 +9919,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -9892,7 +9928,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9932,7 +9968,7 @@ func awsAwsjson11_deserializeDocumentInvalidS3ObjectException(v **types.InvalidS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -9941,7 +9977,7 @@ func awsAwsjson11_deserializeDocumentInvalidS3ObjectException(v **types.InvalidS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -9950,7 +9986,7 @@ func awsAwsjson11_deserializeDocumentInvalidS3ObjectException(v **types.InvalidS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9990,7 +10026,7 @@ func awsAwsjson11_deserializeDocumentKinesisDataStream(v **types.KinesisDataStre if !ok { return fmt.Errorf("expected KinesisDataArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -10030,7 +10066,7 @@ func awsAwsjson11_deserializeDocumentKinesisVideoStream(v **types.KinesisVideoSt if !ok { return fmt.Errorf("expected KinesisVideoArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -10088,7 +10124,7 @@ func awsAwsjson11_deserializeDocumentLabel(v **types.Label, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Parents": @@ -10142,7 +10178,7 @@ func awsAwsjson11_deserializeDocumentLabelDetection(v **types.LabelDetection, va if err != nil { return err } - sv.Timestamp = &i64 + sv.Timestamp = i64 } default: @@ -10154,7 +10190,7 @@ func awsAwsjson11_deserializeDocumentLabelDetection(v **types.LabelDetection, va return nil } -func awsAwsjson11_deserializeDocumentLabelDetections(v *[]*types.LabelDetection, value interface{}) error { +func awsAwsjson11_deserializeDocumentLabelDetections(v *[]types.LabelDetection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10167,18 +10203,20 @@ func awsAwsjson11_deserializeDocumentLabelDetections(v *[]*types.LabelDetection, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LabelDetection + var cv []types.LabelDetection if *v == nil { - cv = []*types.LabelDetection{} + cv = []types.LabelDetection{} } else { cv = *v } for _, value := range shape { - var col *types.LabelDetection - if err := awsAwsjson11_deserializeDocumentLabelDetection(&col, value); err != nil { + var col types.LabelDetection + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLabelDetection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10186,7 +10224,7 @@ func awsAwsjson11_deserializeDocumentLabelDetections(v *[]*types.LabelDetection, return nil } -func awsAwsjson11_deserializeDocumentLabels(v *[]*types.Label, value interface{}) error { +func awsAwsjson11_deserializeDocumentLabels(v *[]types.Label, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10199,18 +10237,20 @@ func awsAwsjson11_deserializeDocumentLabels(v *[]*types.Label, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Label + var cv []types.Label if *v == nil { - cv = []*types.Label{} + cv = []types.Label{} } else { cv = *v } for _, value := range shape { - var col *types.Label - if err := awsAwsjson11_deserializeDocumentLabel(&col, value); err != nil { + var col types.Label + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLabel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10284,7 +10324,7 @@ func awsAwsjson11_deserializeDocumentLandmark(v **types.Landmark, value interfac return nil } -func awsAwsjson11_deserializeDocumentLandmarks(v *[]*types.Landmark, value interface{}) error { +func awsAwsjson11_deserializeDocumentLandmarks(v *[]types.Landmark, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10297,18 +10337,20 @@ func awsAwsjson11_deserializeDocumentLandmarks(v *[]*types.Landmark, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Landmark + var cv []types.Landmark if *v == nil { - cv = []*types.Landmark{} + cv = []types.Landmark{} } else { cv = *v } for _, value := range shape { - var col *types.Landmark - if err := awsAwsjson11_deserializeDocumentLandmark(&col, value); err != nil { + var col types.Landmark + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLandmark(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10344,7 +10386,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -10353,7 +10395,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -10362,7 +10404,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10415,7 +10457,7 @@ func awsAwsjson11_deserializeDocumentModerationLabel(v **types.ModerationLabel, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ParentName": @@ -10424,7 +10466,7 @@ func awsAwsjson11_deserializeDocumentModerationLabel(v **types.ModerationLabel, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ParentName = &jtv + sv.ParentName = ptr.String(jtv) } default: @@ -10436,7 +10478,7 @@ func awsAwsjson11_deserializeDocumentModerationLabel(v **types.ModerationLabel, return nil } -func awsAwsjson11_deserializeDocumentModerationLabels(v *[]*types.ModerationLabel, value interface{}) error { +func awsAwsjson11_deserializeDocumentModerationLabels(v *[]types.ModerationLabel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10449,18 +10491,20 @@ func awsAwsjson11_deserializeDocumentModerationLabels(v *[]*types.ModerationLabe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ModerationLabel + var cv []types.ModerationLabel if *v == nil { - cv = []*types.ModerationLabel{} + cv = []types.ModerationLabel{} } else { cv = *v } for _, value := range shape { - var col *types.ModerationLabel - if err := awsAwsjson11_deserializeDocumentModerationLabel(&col, value); err != nil { + var col types.ModerationLabel + destAddr := &col + if err := awsAwsjson11_deserializeDocumentModerationLabel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10509,7 +10553,7 @@ func awsAwsjson11_deserializeDocumentMouthOpen(v **types.MouthOpen, value interf if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Value = &jtv + sv.Value = jtv } default: @@ -10562,7 +10606,7 @@ func awsAwsjson11_deserializeDocumentMustache(v **types.Mustache, value interfac if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Value = &jtv + sv.Value = jtv } default: @@ -10602,7 +10646,7 @@ func awsAwsjson11_deserializeDocumentOutputConfig(v **types.OutputConfig, value if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.S3Bucket = &jtv + sv.S3Bucket = ptr.String(jtv) } case "S3KeyPrefix": @@ -10611,7 +10655,7 @@ func awsAwsjson11_deserializeDocumentOutputConfig(v **types.OutputConfig, value if !ok { return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) } - sv.S3KeyPrefix = &jtv + sv.S3KeyPrefix = ptr.String(jtv) } default: @@ -10651,7 +10695,7 @@ func awsAwsjson11_deserializeDocumentParent(v **types.Parent, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10663,7 +10707,7 @@ func awsAwsjson11_deserializeDocumentParent(v **types.Parent, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentParents(v *[]*types.Parent, value interface{}) error { +func awsAwsjson11_deserializeDocumentParents(v *[]types.Parent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10676,18 +10720,20 @@ func awsAwsjson11_deserializeDocumentParents(v *[]*types.Parent, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Parent + var cv []types.Parent if *v == nil { - cv = []*types.Parent{} + cv = []types.Parent{} } else { cv = *v } for _, value := range shape { - var col *types.Parent - if err := awsAwsjson11_deserializeDocumentParent(&col, value); err != nil { + var col types.Parent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10737,7 +10783,7 @@ func awsAwsjson11_deserializeDocumentPersonDetail(v **types.PersonDetail, value if err != nil { return err } - sv.Index = &i64 + sv.Index = i64 } default: @@ -10786,7 +10832,7 @@ func awsAwsjson11_deserializeDocumentPersonDetection(v **types.PersonDetection, if err != nil { return err } - sv.Timestamp = &i64 + sv.Timestamp = i64 } default: @@ -10798,7 +10844,7 @@ func awsAwsjson11_deserializeDocumentPersonDetection(v **types.PersonDetection, return nil } -func awsAwsjson11_deserializeDocumentPersonDetections(v *[]*types.PersonDetection, value interface{}) error { +func awsAwsjson11_deserializeDocumentPersonDetections(v *[]types.PersonDetection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10811,18 +10857,20 @@ func awsAwsjson11_deserializeDocumentPersonDetections(v *[]*types.PersonDetectio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PersonDetection + var cv []types.PersonDetection if *v == nil { - cv = []*types.PersonDetection{} + cv = []types.PersonDetection{} } else { cv = *v } for _, value := range shape { - var col *types.PersonDetection - if err := awsAwsjson11_deserializeDocumentPersonDetection(&col, value); err != nil { + var col types.PersonDetection + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPersonDetection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10872,7 +10920,7 @@ func awsAwsjson11_deserializeDocumentPersonMatch(v **types.PersonMatch, value in if err != nil { return err } - sv.Timestamp = &i64 + sv.Timestamp = i64 } default: @@ -10884,7 +10932,7 @@ func awsAwsjson11_deserializeDocumentPersonMatch(v **types.PersonMatch, value in return nil } -func awsAwsjson11_deserializeDocumentPersonMatches(v *[]*types.PersonMatch, value interface{}) error { +func awsAwsjson11_deserializeDocumentPersonMatches(v *[]types.PersonMatch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10897,18 +10945,20 @@ func awsAwsjson11_deserializeDocumentPersonMatches(v *[]*types.PersonMatch, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PersonMatch + var cv []types.PersonMatch if *v == nil { - cv = []*types.PersonMatch{} + cv = []types.PersonMatch{} } else { cv = *v } for _, value := range shape { - var col *types.PersonMatch - if err := awsAwsjson11_deserializeDocumentPersonMatch(&col, value); err != nil { + var col types.PersonMatch + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPersonMatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10973,7 +11023,7 @@ func awsAwsjson11_deserializeDocumentPoint(v **types.Point, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentPolygon(v *[]*types.Point, value interface{}) error { +func awsAwsjson11_deserializeDocumentPolygon(v *[]types.Point, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10986,18 +11036,20 @@ func awsAwsjson11_deserializeDocumentPolygon(v *[]*types.Point, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Point + var cv []types.Point if *v == nil { - cv = []*types.Point{} + cv = []types.Point{} } else { cv = *v } for _, value := range shape { - var col *types.Point - if err := awsAwsjson11_deserializeDocumentPoint(&col, value); err != nil { + var col types.Point + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11116,7 +11168,7 @@ func awsAwsjson11_deserializeDocumentProjectDescription(v **types.ProjectDescrip if !ok { return fmt.Errorf("expected ProjectArn to be of type string, got %T instead", value) } - sv.ProjectArn = &jtv + sv.ProjectArn = ptr.String(jtv) } case "Status": @@ -11137,7 +11189,7 @@ func awsAwsjson11_deserializeDocumentProjectDescription(v **types.ProjectDescrip return nil } -func awsAwsjson11_deserializeDocumentProjectDescriptions(v *[]*types.ProjectDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentProjectDescriptions(v *[]types.ProjectDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11150,18 +11202,20 @@ func awsAwsjson11_deserializeDocumentProjectDescriptions(v *[]*types.ProjectDesc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProjectDescription + var cv []types.ProjectDescription if *v == nil { - cv = []*types.ProjectDescription{} + cv = []types.ProjectDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ProjectDescription - if err := awsAwsjson11_deserializeDocumentProjectDescription(&col, value); err != nil { + var col types.ProjectDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProjectDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11201,7 +11255,7 @@ func awsAwsjson11_deserializeDocumentProjectVersionDescription(v **types.Project if err != nil { return err } - sv.BillableTrainingTimeInSeconds = &i64 + sv.BillableTrainingTimeInSeconds = ptr.Int64(i64) } case "CreationTimestamp": @@ -11251,7 +11305,7 @@ func awsAwsjson11_deserializeDocumentProjectVersionDescription(v **types.Project if !ok { return fmt.Errorf("expected ProjectVersionArn to be of type string, got %T instead", value) } - sv.ProjectVersionArn = &jtv + sv.ProjectVersionArn = ptr.String(jtv) } case "Status": @@ -11269,7 +11323,7 @@ func awsAwsjson11_deserializeDocumentProjectVersionDescription(v **types.Project if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "TestingDataResult": @@ -11304,7 +11358,7 @@ func awsAwsjson11_deserializeDocumentProjectVersionDescription(v **types.Project return nil } -func awsAwsjson11_deserializeDocumentProjectVersionDescriptions(v *[]*types.ProjectVersionDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentProjectVersionDescriptions(v *[]types.ProjectVersionDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11317,18 +11371,20 @@ func awsAwsjson11_deserializeDocumentProjectVersionDescriptions(v *[]*types.Proj return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProjectVersionDescription + var cv []types.ProjectVersionDescription if *v == nil { - cv = []*types.ProjectVersionDescription{} + cv = []types.ProjectVersionDescription{} } else { cv = *v } for _, value := range shape { - var col *types.ProjectVersionDescription - if err := awsAwsjson11_deserializeDocumentProjectVersionDescription(&col, value); err != nil { + var col types.ProjectVersionDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProjectVersionDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11461,7 +11517,7 @@ func awsAwsjson11_deserializeDocumentProtectiveEquipmentPerson(v **types.Protect return nil } -func awsAwsjson11_deserializeDocumentProtectiveEquipmentPersonIds(v *[]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentProtectiveEquipmentPersonIds(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11474,15 +11530,15 @@ func awsAwsjson11_deserializeDocumentProtectiveEquipmentPersonIds(v *[]*int32, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int32 + var cv []int32 if *v == nil { - cv = []*int32{} + cv = []int32{} } else { cv = *v } for _, value := range shape { - var col *int32 + var col int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -11492,7 +11548,7 @@ func awsAwsjson11_deserializeDocumentProtectiveEquipmentPersonIds(v *[]*int32, v if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } cv = append(cv, col) @@ -11501,7 +11557,7 @@ func awsAwsjson11_deserializeDocumentProtectiveEquipmentPersonIds(v *[]*int32, v return nil } -func awsAwsjson11_deserializeDocumentProtectiveEquipmentPersons(v *[]*types.ProtectiveEquipmentPerson, value interface{}) error { +func awsAwsjson11_deserializeDocumentProtectiveEquipmentPersons(v *[]types.ProtectiveEquipmentPerson, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11514,18 +11570,20 @@ func awsAwsjson11_deserializeDocumentProtectiveEquipmentPersons(v *[]*types.Prot return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProtectiveEquipmentPerson + var cv []types.ProtectiveEquipmentPerson if *v == nil { - cv = []*types.ProtectiveEquipmentPerson{} + cv = []types.ProtectiveEquipmentPerson{} } else { cv = *v } for _, value := range shape { - var col *types.ProtectiveEquipmentPerson - if err := awsAwsjson11_deserializeDocumentProtectiveEquipmentPerson(&col, value); err != nil { + var col types.ProtectiveEquipmentPerson + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProtectiveEquipmentPerson(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11607,7 +11665,7 @@ func awsAwsjson11_deserializeDocumentProvisionedThroughputExceededException(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -11616,7 +11674,7 @@ func awsAwsjson11_deserializeDocumentProvisionedThroughputExceededException(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -11625,7 +11683,7 @@ func awsAwsjson11_deserializeDocumentProvisionedThroughputExceededException(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11701,7 +11759,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -11710,7 +11768,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -11719,7 +11777,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11759,7 +11817,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -11768,7 +11826,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -11777,7 +11835,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11817,7 +11875,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -11826,7 +11884,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -11835,7 +11893,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11875,7 +11933,7 @@ func awsAwsjson11_deserializeDocumentResourceNotReadyException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -11884,7 +11942,7 @@ func awsAwsjson11_deserializeDocumentResourceNotReadyException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -11893,7 +11951,7 @@ func awsAwsjson11_deserializeDocumentResourceNotReadyException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11933,7 +11991,7 @@ func awsAwsjson11_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "Name": @@ -11942,7 +12000,7 @@ func awsAwsjson11_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected S3ObjectName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Version": @@ -11951,7 +12009,7 @@ func awsAwsjson11_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected S3ObjectVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -11995,7 +12053,7 @@ func awsAwsjson11_deserializeDocumentSegmentDetection(v **types.SegmentDetection if err != nil { return err } - sv.DurationMillis = &i64 + sv.DurationMillis = ptr.Int64(i64) } case "DurationSMPTE": @@ -12004,7 +12062,7 @@ func awsAwsjson11_deserializeDocumentSegmentDetection(v **types.SegmentDetection if !ok { return fmt.Errorf("expected Timecode to be of type string, got %T instead", value) } - sv.DurationSMPTE = &jtv + sv.DurationSMPTE = ptr.String(jtv) } case "EndTimecodeSMPTE": @@ -12013,7 +12071,7 @@ func awsAwsjson11_deserializeDocumentSegmentDetection(v **types.SegmentDetection if !ok { return fmt.Errorf("expected Timecode to be of type string, got %T instead", value) } - sv.EndTimecodeSMPTE = &jtv + sv.EndTimecodeSMPTE = ptr.String(jtv) } case "EndTimestampMillis": @@ -12026,7 +12084,7 @@ func awsAwsjson11_deserializeDocumentSegmentDetection(v **types.SegmentDetection if err != nil { return err } - sv.EndTimestampMillis = &i64 + sv.EndTimestampMillis = i64 } case "ShotSegment": @@ -12040,7 +12098,7 @@ func awsAwsjson11_deserializeDocumentSegmentDetection(v **types.SegmentDetection if !ok { return fmt.Errorf("expected Timecode to be of type string, got %T instead", value) } - sv.StartTimecodeSMPTE = &jtv + sv.StartTimecodeSMPTE = ptr.String(jtv) } case "StartTimestampMillis": @@ -12053,7 +12111,7 @@ func awsAwsjson11_deserializeDocumentSegmentDetection(v **types.SegmentDetection if err != nil { return err } - sv.StartTimestampMillis = &i64 + sv.StartTimestampMillis = i64 } case "TechnicalCueSegment": @@ -12079,7 +12137,7 @@ func awsAwsjson11_deserializeDocumentSegmentDetection(v **types.SegmentDetection return nil } -func awsAwsjson11_deserializeDocumentSegmentDetections(v *[]*types.SegmentDetection, value interface{}) error { +func awsAwsjson11_deserializeDocumentSegmentDetections(v *[]types.SegmentDetection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12092,18 +12150,20 @@ func awsAwsjson11_deserializeDocumentSegmentDetections(v *[]*types.SegmentDetect return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SegmentDetection + var cv []types.SegmentDetection if *v == nil { - cv = []*types.SegmentDetection{} + cv = []types.SegmentDetection{} } else { cv = *v } for _, value := range shape { - var col *types.SegmentDetection - if err := awsAwsjson11_deserializeDocumentSegmentDetection(&col, value); err != nil { + var col types.SegmentDetection + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSegmentDetection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12139,7 +12199,7 @@ func awsAwsjson11_deserializeDocumentSegmentTypeInfo(v **types.SegmentTypeInfo, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ModelVersion = &jtv + sv.ModelVersion = ptr.String(jtv) } case "Type": @@ -12160,7 +12220,7 @@ func awsAwsjson11_deserializeDocumentSegmentTypeInfo(v **types.SegmentTypeInfo, return nil } -func awsAwsjson11_deserializeDocumentSegmentTypesInfo(v *[]*types.SegmentTypeInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentSegmentTypesInfo(v *[]types.SegmentTypeInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12173,18 +12233,20 @@ func awsAwsjson11_deserializeDocumentSegmentTypesInfo(v *[]*types.SegmentTypeInf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SegmentTypeInfo + var cv []types.SegmentTypeInfo if *v == nil { - cv = []*types.SegmentTypeInfo{} + cv = []types.SegmentTypeInfo{} } else { cv = *v } for _, value := range shape { - var col *types.SegmentTypeInfo - if err := awsAwsjson11_deserializeDocumentSegmentTypeInfo(&col, value); err != nil { + var col types.SegmentTypeInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSegmentTypeInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12220,7 +12282,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -12229,7 +12291,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -12238,7 +12300,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12295,7 +12357,7 @@ func awsAwsjson11_deserializeDocumentShotSegment(v **types.ShotSegment, value in if err != nil { return err } - sv.Index = &i64 + sv.Index = ptr.Int64(i64) } default: @@ -12348,7 +12410,7 @@ func awsAwsjson11_deserializeDocumentSmile(v **types.Smile, value interface{}) e if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Value = &jtv + sv.Value = jtv } default: @@ -12388,7 +12450,7 @@ func awsAwsjson11_deserializeDocumentStreamProcessor(v **types.StreamProcessor, if !ok { return fmt.Errorf("expected StreamProcessorName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -12445,7 +12507,7 @@ func awsAwsjson11_deserializeDocumentStreamProcessorInput(v **types.StreamProces return nil } -func awsAwsjson11_deserializeDocumentStreamProcessorList(v *[]*types.StreamProcessor, value interface{}) error { +func awsAwsjson11_deserializeDocumentStreamProcessorList(v *[]types.StreamProcessor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12458,18 +12520,20 @@ func awsAwsjson11_deserializeDocumentStreamProcessorList(v *[]*types.StreamProce return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StreamProcessor + var cv []types.StreamProcessor if *v == nil { - cv = []*types.StreamProcessor{} + cv = []types.StreamProcessor{} } else { cv = *v } for _, value := range shape { - var col *types.StreamProcessor - if err := awsAwsjson11_deserializeDocumentStreamProcessor(&col, value); err != nil { + var col types.StreamProcessor + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStreamProcessor(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12626,7 +12690,7 @@ func awsAwsjson11_deserializeDocumentSunglasses(v **types.Sunglasses, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Value = &jtv + sv.Value = jtv } default: @@ -12724,7 +12788,7 @@ func awsAwsjson11_deserializeDocumentTestingData(v **types.TestingData, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoCreate = &jtv + sv.AutoCreate = jtv } default: @@ -12823,7 +12887,7 @@ func awsAwsjson11_deserializeDocumentTextDetection(v **types.TextDetection, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DetectedText = &jtv + sv.DetectedText = ptr.String(jtv) } case "Geometry": @@ -12875,7 +12939,7 @@ func awsAwsjson11_deserializeDocumentTextDetection(v **types.TextDetection, valu return nil } -func awsAwsjson11_deserializeDocumentTextDetectionList(v *[]*types.TextDetection, value interface{}) error { +func awsAwsjson11_deserializeDocumentTextDetectionList(v *[]types.TextDetection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12888,18 +12952,20 @@ func awsAwsjson11_deserializeDocumentTextDetectionList(v *[]*types.TextDetection return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TextDetection + var cv []types.TextDetection if *v == nil { - cv = []*types.TextDetection{} + cv = []types.TextDetection{} } else { cv = *v } for _, value := range shape { - var col *types.TextDetection - if err := awsAwsjson11_deserializeDocumentTextDetection(&col, value); err != nil { + var col types.TextDetection + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTextDetection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12944,7 +13010,7 @@ func awsAwsjson11_deserializeDocumentTextDetectionResult(v **types.TextDetection if err != nil { return err } - sv.Timestamp = &i64 + sv.Timestamp = i64 } default: @@ -12956,7 +13022,7 @@ func awsAwsjson11_deserializeDocumentTextDetectionResult(v **types.TextDetection return nil } -func awsAwsjson11_deserializeDocumentTextDetectionResults(v *[]*types.TextDetectionResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentTextDetectionResults(v *[]types.TextDetectionResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12969,18 +13035,20 @@ func awsAwsjson11_deserializeDocumentTextDetectionResults(v *[]*types.TextDetect return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TextDetectionResult + var cv []types.TextDetectionResult if *v == nil { - cv = []*types.TextDetectionResult{} + cv = []types.TextDetectionResult{} } else { cv = *v } for _, value := range shape { - var col *types.TextDetectionResult - if err := awsAwsjson11_deserializeDocumentTextDetectionResult(&col, value); err != nil { + var col types.TextDetectionResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTextDetectionResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13016,7 +13084,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -13025,7 +13093,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -13034,7 +13102,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13169,7 +13237,7 @@ func awsAwsjson11_deserializeDocumentUnindexedFace(v **types.UnindexedFace, valu return nil } -func awsAwsjson11_deserializeDocumentUnindexedFaces(v *[]*types.UnindexedFace, value interface{}) error { +func awsAwsjson11_deserializeDocumentUnindexedFaces(v *[]types.UnindexedFace, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13182,18 +13250,20 @@ func awsAwsjson11_deserializeDocumentUnindexedFaces(v *[]*types.UnindexedFace, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UnindexedFace + var cv []types.UnindexedFace if *v == nil { - cv = []*types.UnindexedFace{} + cv = []types.UnindexedFace{} } else { cv = *v } for _, value := range shape { - var col *types.UnindexedFace - if err := awsAwsjson11_deserializeDocumentUnindexedFace(&col, value); err != nil { + var col types.UnindexedFace + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUnindexedFace(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13201,7 +13271,7 @@ func awsAwsjson11_deserializeDocumentUnindexedFaces(v *[]*types.UnindexedFace, v return nil } -func awsAwsjson11_deserializeDocumentUrls(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentUrls(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13214,21 +13284,21 @@ func awsAwsjson11_deserializeDocumentUrls(v *[]*string, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -13301,7 +13371,7 @@ func awsAwsjson11_deserializeDocumentVideoMetadata(v **types.VideoMetadata, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Codec = &jtv + sv.Codec = ptr.String(jtv) } case "DurationMillis": @@ -13314,7 +13384,7 @@ func awsAwsjson11_deserializeDocumentVideoMetadata(v **types.VideoMetadata, valu if err != nil { return err } - sv.DurationMillis = &i64 + sv.DurationMillis = ptr.Int64(i64) } case "Format": @@ -13323,7 +13393,7 @@ func awsAwsjson11_deserializeDocumentVideoMetadata(v **types.VideoMetadata, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Format = &jtv + sv.Format = ptr.String(jtv) } case "FrameHeight": @@ -13336,7 +13406,7 @@ func awsAwsjson11_deserializeDocumentVideoMetadata(v **types.VideoMetadata, valu if err != nil { return err } - sv.FrameHeight = &i64 + sv.FrameHeight = ptr.Int64(i64) } case "FrameRate": @@ -13362,7 +13432,7 @@ func awsAwsjson11_deserializeDocumentVideoMetadata(v **types.VideoMetadata, valu if err != nil { return err } - sv.FrameWidth = &i64 + sv.FrameWidth = ptr.Int64(i64) } default: @@ -13374,7 +13444,7 @@ func awsAwsjson11_deserializeDocumentVideoMetadata(v **types.VideoMetadata, valu return nil } -func awsAwsjson11_deserializeDocumentVideoMetadataList(v *[]*types.VideoMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentVideoMetadataList(v *[]types.VideoMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13387,18 +13457,20 @@ func awsAwsjson11_deserializeDocumentVideoMetadataList(v *[]*types.VideoMetadata return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VideoMetadata + var cv []types.VideoMetadata if *v == nil { - cv = []*types.VideoMetadata{} + cv = []types.VideoMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.VideoMetadata - if err := awsAwsjson11_deserializeDocumentVideoMetadata(&col, value); err != nil { + var col types.VideoMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVideoMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13434,7 +13506,7 @@ func awsAwsjson11_deserializeDocumentVideoTooLargeException(v **types.VideoTooLa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Logref": @@ -13443,7 +13515,7 @@ func awsAwsjson11_deserializeDocumentVideoTooLargeException(v **types.VideoTooLa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Logref = &jtv + sv.Logref = ptr.String(jtv) } case "Message": @@ -13452,7 +13524,7 @@ func awsAwsjson11_deserializeDocumentVideoTooLargeException(v **types.VideoTooLa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13556,7 +13628,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCollectionOutput(v **CreateCollecti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CollectionArn = &jtv + sv.CollectionArn = ptr.String(jtv) } case "FaceModelVersion": @@ -13565,7 +13637,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCollectionOutput(v **CreateCollecti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FaceModelVersion = &jtv + sv.FaceModelVersion = ptr.String(jtv) } case "StatusCode": @@ -13618,7 +13690,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProjectOutput(v **CreateProjectOutp if !ok { return fmt.Errorf("expected ProjectArn to be of type string, got %T instead", value) } - sv.ProjectArn = &jtv + sv.ProjectArn = ptr.String(jtv) } default: @@ -13658,7 +13730,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProjectVersionOutput(v **CreateProj if !ok { return fmt.Errorf("expected ProjectVersionArn to be of type string, got %T instead", value) } - sv.ProjectVersionArn = &jtv + sv.ProjectVersionArn = ptr.String(jtv) } default: @@ -13698,7 +13770,7 @@ func awsAwsjson11_deserializeOpDocumentCreateStreamProcessorOutput(v **CreateStr if !ok { return fmt.Errorf("expected StreamProcessorArn to be of type string, got %T instead", value) } - sv.StreamProcessorArn = &jtv + sv.StreamProcessorArn = ptr.String(jtv) } default: @@ -13929,7 +14001,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCollectionOutput(v **DescribeColl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CollectionARN = &jtv + sv.CollectionARN = ptr.String(jtv) } case "CreationTimestamp": @@ -13955,7 +14027,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCollectionOutput(v **DescribeColl if err != nil { return err } - sv.FaceCount = &i64 + sv.FaceCount = ptr.Int64(i64) } case "FaceModelVersion": @@ -13964,7 +14036,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCollectionOutput(v **DescribeColl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FaceModelVersion = &jtv + sv.FaceModelVersion = ptr.String(jtv) } default: @@ -14004,7 +14076,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProjectsOutput(v **DescribeProjec if !ok { return fmt.Errorf("expected ExtendedPaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ProjectDescriptions": @@ -14049,7 +14121,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProjectVersionsOutput(v **Describ if !ok { return fmt.Errorf("expected ExtendedPaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ProjectVersionDescriptions": @@ -14125,7 +14197,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStreamProcessorOutput(v **Describ if !ok { return fmt.Errorf("expected StreamProcessorName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Output": @@ -14139,7 +14211,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStreamProcessorOutput(v **Describ if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "Settings": @@ -14162,7 +14234,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStreamProcessorOutput(v **Describ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "StreamProcessorArn": @@ -14171,7 +14243,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeStreamProcessorOutput(v **Describ if !ok { return fmt.Errorf("expected StreamProcessorArn to be of type string, got %T instead", value) } - sv.StreamProcessorArn = &jtv + sv.StreamProcessorArn = ptr.String(jtv) } default: @@ -14292,7 +14364,7 @@ func awsAwsjson11_deserializeOpDocumentDetectLabelsOutput(v **DetectLabelsOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LabelModelVersion = &jtv + sv.LabelModelVersion = ptr.String(jtv) } case "Labels": @@ -14356,7 +14428,7 @@ func awsAwsjson11_deserializeOpDocumentDetectModerationLabelsOutput(v **DetectMo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ModerationModelVersion = &jtv + sv.ModerationModelVersion = ptr.String(jtv) } default: @@ -14401,7 +14473,7 @@ func awsAwsjson11_deserializeOpDocumentDetectProtectiveEquipmentOutput(v **Detec if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ProtectiveEquipmentModelVersion = &jtv + sv.ProtectiveEquipmentModelVersion = ptr.String(jtv) } case "Summary": @@ -14451,7 +14523,7 @@ func awsAwsjson11_deserializeOpDocumentDetectTextOutput(v **DetectTextOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TextModelVersion = &jtv + sv.TextModelVersion = ptr.String(jtv) } default: @@ -14491,7 +14563,7 @@ func awsAwsjson11_deserializeOpDocumentGetCelebrityInfoOutput(v **GetCelebrityIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Urls": @@ -14550,7 +14622,7 @@ func awsAwsjson11_deserializeOpDocumentGetCelebrityRecognitionOutput(v **GetCele if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StatusMessage": @@ -14559,7 +14631,7 @@ func awsAwsjson11_deserializeOpDocumentGetCelebrityRecognitionOutput(v **GetCele if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "VideoMetadata": @@ -14618,7 +14690,7 @@ func awsAwsjson11_deserializeOpDocumentGetContentModerationOutput(v **GetContent if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ModerationModelVersion = &jtv + sv.ModerationModelVersion = ptr.String(jtv) } case "NextToken": @@ -14627,7 +14699,7 @@ func awsAwsjson11_deserializeOpDocumentGetContentModerationOutput(v **GetContent if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StatusMessage": @@ -14636,7 +14708,7 @@ func awsAwsjson11_deserializeOpDocumentGetContentModerationOutput(v **GetContent if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "VideoMetadata": @@ -14695,7 +14767,7 @@ func awsAwsjson11_deserializeOpDocumentGetFaceDetectionOutput(v **GetFaceDetecti if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StatusMessage": @@ -14704,7 +14776,7 @@ func awsAwsjson11_deserializeOpDocumentGetFaceDetectionOutput(v **GetFaceDetecti if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "VideoMetadata": @@ -14758,7 +14830,7 @@ func awsAwsjson11_deserializeOpDocumentGetFaceSearchOutput(v **GetFaceSearchOutp if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Persons": @@ -14772,7 +14844,7 @@ func awsAwsjson11_deserializeOpDocumentGetFaceSearchOutput(v **GetFaceSearchOutp if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "VideoMetadata": @@ -14826,7 +14898,7 @@ func awsAwsjson11_deserializeOpDocumentGetLabelDetectionOutput(v **GetLabelDetec if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LabelModelVersion = &jtv + sv.LabelModelVersion = ptr.String(jtv) } case "Labels": @@ -14840,7 +14912,7 @@ func awsAwsjson11_deserializeOpDocumentGetLabelDetectionOutput(v **GetLabelDetec if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StatusMessage": @@ -14849,7 +14921,7 @@ func awsAwsjson11_deserializeOpDocumentGetLabelDetectionOutput(v **GetLabelDetec if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "VideoMetadata": @@ -14903,7 +14975,7 @@ func awsAwsjson11_deserializeOpDocumentGetPersonTrackingOutput(v **GetPersonTrac if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Persons": @@ -14917,7 +14989,7 @@ func awsAwsjson11_deserializeOpDocumentGetPersonTrackingOutput(v **GetPersonTrac if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "VideoMetadata": @@ -14976,7 +15048,7 @@ func awsAwsjson11_deserializeOpDocumentGetSegmentDetectionOutput(v **GetSegmentD if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Segments": @@ -14995,7 +15067,7 @@ func awsAwsjson11_deserializeOpDocumentGetSegmentDetectionOutput(v **GetSegmentD if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "VideoMetadata": @@ -15049,7 +15121,7 @@ func awsAwsjson11_deserializeOpDocumentGetTextDetectionOutput(v **GetTextDetecti if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StatusMessage": @@ -15058,7 +15130,7 @@ func awsAwsjson11_deserializeOpDocumentGetTextDetectionOutput(v **GetTextDetecti if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "TextDetections": @@ -15072,7 +15144,7 @@ func awsAwsjson11_deserializeOpDocumentGetTextDetectionOutput(v **GetTextDetecti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TextModelVersion = &jtv + sv.TextModelVersion = ptr.String(jtv) } case "VideoMetadata": @@ -15117,7 +15189,7 @@ func awsAwsjson11_deserializeOpDocumentIndexFacesOutput(v **IndexFacesOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FaceModelVersion = &jtv + sv.FaceModelVersion = ptr.String(jtv) } case "FaceRecords": @@ -15186,7 +15258,7 @@ func awsAwsjson11_deserializeOpDocumentListCollectionsOutput(v **ListCollections if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -15226,7 +15298,7 @@ func awsAwsjson11_deserializeOpDocumentListFacesOutput(v **ListFacesOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FaceModelVersion = &jtv + sv.FaceModelVersion = ptr.String(jtv) } case "Faces": @@ -15240,7 +15312,7 @@ func awsAwsjson11_deserializeOpDocumentListFacesOutput(v **ListFacesOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -15280,7 +15352,7 @@ func awsAwsjson11_deserializeOpDocumentListStreamProcessorsOutput(v **ListStream if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StreamProcessors": @@ -15380,7 +15452,7 @@ func awsAwsjson11_deserializeOpDocumentSearchFacesByImageOutput(v **SearchFacesB if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FaceModelVersion = &jtv + sv.FaceModelVersion = ptr.String(jtv) } case "SearchedFaceBoundingBox": @@ -15443,7 +15515,7 @@ func awsAwsjson11_deserializeOpDocumentSearchFacesOutput(v **SearchFacesOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FaceModelVersion = &jtv + sv.FaceModelVersion = ptr.String(jtv) } case "SearchedFaceId": @@ -15452,7 +15524,7 @@ func awsAwsjson11_deserializeOpDocumentSearchFacesOutput(v **SearchFacesOutput, if !ok { return fmt.Errorf("expected FaceId to be of type string, got %T instead", value) } - sv.SearchedFaceId = &jtv + sv.SearchedFaceId = ptr.String(jtv) } default: @@ -15492,7 +15564,7 @@ func awsAwsjson11_deserializeOpDocumentStartCelebrityRecognitionOutput(v **Start if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -15532,7 +15604,7 @@ func awsAwsjson11_deserializeOpDocumentStartContentModerationOutput(v **StartCon if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -15572,7 +15644,7 @@ func awsAwsjson11_deserializeOpDocumentStartFaceDetectionOutput(v **StartFaceDet if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -15612,7 +15684,7 @@ func awsAwsjson11_deserializeOpDocumentStartFaceSearchOutput(v **StartFaceSearch if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -15652,7 +15724,7 @@ func awsAwsjson11_deserializeOpDocumentStartLabelDetectionOutput(v **StartLabelD if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -15692,7 +15764,7 @@ func awsAwsjson11_deserializeOpDocumentStartPersonTrackingOutput(v **StartPerson if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -15772,7 +15844,7 @@ func awsAwsjson11_deserializeOpDocumentStartSegmentDetectionOutput(v **StartSegm if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -15843,7 +15915,7 @@ func awsAwsjson11_deserializeOpDocumentStartTextDetectionOutput(v **StartTextDet if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: diff --git a/service/rekognition/go.mod b/service/rekognition/go.mod index 2334a7cc1c4..fe1bed76c3e 100644 --- a/service/rekognition/go.mod +++ b/service/rekognition/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/rekognition go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/rekognition/serializers.go b/service/rekognition/serializers.go index f79106c3d35..f66d6e42be1 100644 --- a/service/rekognition/serializers.go +++ b/service/rekognition/serializers.go @@ -2235,17 +2235,13 @@ func awsAwsjson11_serializeDocumentAsset(v *types.Asset, value smithyjson.Value) return nil } -func awsAwsjson11_serializeDocumentAssets(v []*types.Asset, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAssets(v []types.Asset, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAsset(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAsset(&v[i], av); err != nil { return err } } @@ -2344,17 +2340,13 @@ func awsAwsjson11_serializeDocumentDetectTextFilters(v *types.DetectTextFilters, return nil } -func awsAwsjson11_serializeDocumentFaceIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFaceIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2549,17 +2541,13 @@ func awsAwsjson11_serializeDocumentRegionOfInterest(v *types.RegionOfInterest, v return nil } -func awsAwsjson11_serializeDocumentRegionsOfInterest(v []*types.RegionOfInterest, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRegionsOfInterest(v []types.RegionOfInterest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRegionOfInterest(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRegionOfInterest(&v[i], av); err != nil { return err } } @@ -2718,9 +2706,9 @@ func awsAwsjson11_serializeDocumentTestingData(v *types.TestingData, value smith } } - if v.AutoCreate != nil { + if v.AutoCreate { ok := object.Key("AutoCreate") - ok.Boolean(*v.AutoCreate) + ok.Boolean(v.AutoCreate) } return nil @@ -2740,17 +2728,13 @@ func awsAwsjson11_serializeDocumentTrainingData(v *types.TrainingData, value smi return nil } -func awsAwsjson11_serializeDocumentVersionNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVersionNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/rekognition/types/types.go b/service/rekognition/types/types.go index 076b7ff2c26..82b22d1d117 100644 --- a/service/rekognition/types/types.go +++ b/service/rekognition/types/types.go @@ -56,7 +56,7 @@ type Beard struct { Confidence *float32 // Boolean value that indicates whether the face has beard or not. - Value *bool + Value bool } // Identifies the bounding box around the label, face, text or personal protective @@ -109,7 +109,7 @@ type Celebrity struct { // An array of URLs pointing to additional information about the celebrity. If // there is no additional information about the celebrity, this list is empty. - Urls []*string + Urls []string } // Information about a recognized celebrity. @@ -132,7 +132,7 @@ type CelebrityDetail struct { Name *string // An array of URLs pointing to additional celebrity information. - Urls []*string + Urls []string } // Information about a detected celebrity and the time the celebrity was detected @@ -145,7 +145,7 @@ type CelebrityRecognition struct { // The time, in milliseconds from the start of the video, that the celebrity was // recognized. - Timestamp *int64 + Timestamp int64 } // Provides face metadata for target image faces that are analyzed by CompareFaces @@ -159,7 +159,7 @@ type ComparedFace struct { Confidence *float32 // An array of facial landmarks. - Landmarks []*Landmark + Landmarks []Landmark // Indicates the pose of the face as determined by its pitch, roll, and yaw. Pose *Pose @@ -203,7 +203,7 @@ type ContentModerationDetection struct { // Time, in milliseconds from the beginning of the video, that the unsafe content // label was detected. - Timestamp *int64 + Timestamp int64 } // Information about an item of Personal Protective Equipment covering a @@ -214,7 +214,7 @@ type CoversBodyPart struct { Confidence *float32 // True if the PPE covers the corresponding body part, otherwise false. - Value *bool + Value bool } // A custom label detected in an image by a call to DetectCustomLabels. @@ -261,7 +261,7 @@ type DetectTextFilters struct { // A Filter focusing on a certain area of the image. Uses a BoundingBox object to // set the region of the image. - RegionsOfInterest []*RegionOfInterest + RegionsOfInterest []RegionOfInterest // A set of parameters that allow you to filter out certain results from your // returned results. @@ -321,7 +321,7 @@ type Eyeglasses struct { Confidence *float32 // Boolean value that indicates whether the face is wearing eye glasses or not. - Value *bool + Value bool } // Indicates whether or not the eyes on the face are open, and the confidence level @@ -332,7 +332,7 @@ type EyeOpen struct { Confidence *float32 // Boolean value that indicates whether the eyes on the face are open. - Value *bool + Value bool } // Describes the face properties such as the bounding box, face ID, image ID of the @@ -399,7 +399,7 @@ type FaceDetail struct { // appearance of a person's face. It is not a determination of the person’s // internal emotional state and should not be used in such a way. For example, a // person pretending to have a sad face might not be sad emotionally. - Emotions []*Emotion + Emotions []Emotion // Indicates whether or not the face is wearing eye glasses, and the confidence // level in the determination. @@ -413,7 +413,7 @@ type FaceDetail struct { Gender *Gender // Indicates the location of landmarks on the face. Default attribute. - Landmarks []*Landmark + Landmarks []Landmark // Indicates whether or not the mouth on the face is open, and the confidence level // in the determination. @@ -447,7 +447,7 @@ type FaceDetection struct { Face *FaceDetail // Time, in milliseconds from the start of the video, that the face was detected. - Timestamp *int64 + Timestamp int64 } // Provides face metadata. In addition, it also provides the confidence in the @@ -517,7 +517,7 @@ type Geometry struct { BoundingBox *BoundingBox // Within the bounding box, a fine-grained polygon around the detected item. - Polygon []*Point + Polygon []Point } // The S3 bucket that contains an Amazon Sagemaker Ground Truth format manifest @@ -542,7 +542,7 @@ type HumanLoopActivationOutput struct { HumanLoopActivationConditionsEvaluationResults *string // Shows if and why human review was needed. - HumanLoopActivationReasons []*string + HumanLoopActivationReasons []string // The Amazon Resource Name (ARN) of the HumanLoop created. HumanLoopArn *string @@ -655,13 +655,13 @@ type Label struct { // If Label represents an object, Instances contains the bounding boxes for each // instance of the detected object. Bounding boxes are returned for common object // labels such as people, cars, furniture, apparel or pets. - Instances []*Instance + Instances []Instance // The name (label) of the object or scene. Name *string // The parent labels for a label. The response includes all ancestor labels. - Parents []*Parent + Parents []Parent } // Information about a label detected in a video analysis request and the time the @@ -672,7 +672,7 @@ type LabelDetection struct { Label *Label // Time, in milliseconds from the start of the video, that the label was detected. - Timestamp *int64 + Timestamp int64 } // Indicates the location of the landmark on the face. @@ -722,7 +722,7 @@ type MouthOpen struct { Confidence *float32 // Boolean value that indicates whether the mouth on the face is open or not. - Value *bool + Value bool } // Indicates whether or not the face has a mustache, and the confidence level in @@ -733,7 +733,7 @@ type Mustache struct { Confidence *float32 // Boolean value that indicates whether the face has mustache or not. - Value *bool + Value bool } // The Amazon Simple Notification Service topic to which Amazon Rekognition @@ -782,7 +782,7 @@ type PersonDetail struct { // Identifier for the person detected person within a video. Use to keep track of // the person throughout the video. The identifier is not stored by Amazon // Rekognition. - Index *int64 + Index int64 } // Details and path tracking information for a single time a person's path is @@ -797,7 +797,7 @@ type PersonDetection struct { // The time, in milliseconds from the start of the video, that the person's path // was tracked. - Timestamp *int64 + Timestamp int64 } // Information about a person whose face matches a face(s) in an Amazon Rekognition @@ -809,14 +809,14 @@ type PersonMatch struct { // Information about the faces in the input collection that match the face of a // person in the video. - FaceMatches []*FaceMatch + FaceMatches []FaceMatch // Information about the matched person. Person *PersonDetail // The time, in milliseconds from the beginning of the video, that the person was // matched in the video. - Timestamp *int64 + Timestamp int64 } // The X and Y coordinates of a point on an image. The X and Y values returned are @@ -915,7 +915,7 @@ type ProtectiveEquipmentBodyPart struct { Confidence *float32 // An array of Personal Protective Equipment items detected around a body part. - EquipmentDetections []*EquipmentDetection + EquipmentDetections []EquipmentDetection // The detected body part. Name BodyPart @@ -928,7 +928,7 @@ type ProtectiveEquipmentPerson struct { // An array of body parts detected on a person's body (including body parts without // PPE). - BodyParts []*ProtectiveEquipmentBodyPart + BodyParts []ProtectiveEquipmentBodyPart // A bounding box around the detected person. BoundingBox *BoundingBox @@ -993,16 +993,16 @@ type ProtectiveEquipmentSummary struct { // An array of IDs for persons where it was not possible to determine if they are // wearing personal protective equipment. - PersonsIndeterminate []*int32 + PersonsIndeterminate []int32 // An array of IDs for persons who are wearing detected personal protective // equipment. - PersonsWithRequiredEquipment []*int32 + PersonsWithRequiredEquipment []int32 // An array of IDs for persons who are not wearing all of the types of PPE // specified in the RequiredEquipmentTypes field of the detected personal // protective equipment. - PersonsWithoutRequiredEquipment []*int32 + PersonsWithoutRequiredEquipment []int32 } // Specifies a location within the frame that Rekognition checks for text. Uses a @@ -1051,7 +1051,7 @@ type SegmentDetection struct { // The end time of the detected segment, in milliseconds, from the start of the // video. This value is rounded down. - EndTimestampMillis *int64 + EndTimestampMillis int64 // If the segment is a shot detection, contains information about the shot // detection. @@ -1065,7 +1065,7 @@ type SegmentDetection struct { // The start time of the detected segment in milliseconds from the start of the // video. This value is rounded down. For example, if the actual timestamp is // 100.6667 milliseconds, Amazon Rekognition Video returns a value of 100 millis. - StartTimestampMillis *int64 + StartTimestampMillis int64 // If the segment is a technical cue, contains information about the technical cue. TechnicalCueSegment *TechnicalCueSegment @@ -1106,7 +1106,7 @@ type Smile struct { Confidence *float32 // Boolean value that indicates whether the face is smiling or not. - Value *bool + Value bool } // Filters applied to the technical cue or shot detection segments. For more @@ -1156,7 +1156,7 @@ type StartTextDetectionFilters struct { // Filter focusing on a certain area of the frame. Uses a BoundingBox object to set // the region of the screen. - RegionsOfInterest []*RegionOfInterest + RegionsOfInterest []RegionOfInterest // Filters focusing on qualities of the text, such as confidence or size. WordFilter *DetectionFilter @@ -1224,7 +1224,7 @@ type Sunglasses struct { Confidence *float32 // Boolean value that indicates whether the face is wearing sunglasses or not. - Value *bool + Value bool } // Information about a technical cue segment. For more information, see @@ -1245,11 +1245,11 @@ type TechnicalCueSegment struct { type TestingData struct { // The assets used for testing. - Assets []*Asset + Assets []Asset // If specified, Amazon Rekognition Custom Labels creates a testing dataset with an // 80/20 split of the training dataset. - AutoCreate *bool + AutoCreate bool } // Sagemaker Groundtruth format manifest files for the input, output and validation @@ -1311,7 +1311,7 @@ type TextDetectionResult struct { // The time, in milliseconds from the start of the video, that the text was // detected. - Timestamp *int64 + Timestamp int64 } // The dataset used for training. @@ -1319,7 +1319,7 @@ type TrainingData struct { // A Sagemaker GroundTruth manifest file that contains the training images // (assets). - Assets []*Asset + Assets []Asset } // Sagemaker Groundtruth format manifest files for the input, output and validation @@ -1382,7 +1382,7 @@ type UnindexedFace struct { type ValidationData struct { // The assets that comprise the validation data. - Assets []*Asset + Assets []Asset } // Video file stored in an Amazon S3 bucket. Amazon Rekognition video start diff --git a/service/resourcegroups/api_op_CreateGroup.go b/service/resourcegroups/api_op_CreateGroup.go index d4a5b737184..cafcb865d1d 100644 --- a/service/resourcegroups/api_op_CreateGroup.go +++ b/service/resourcegroups/api_op_CreateGroup.go @@ -43,7 +43,7 @@ type CreateGroupInput struct { // how the service can interact with the resources in the group. A configuration is // an array of GroupConfigurationItem elements. You can specify either a // Configuration or a ResourceQuery in a group, but not both. - Configuration []*types.GroupConfigurationItem + Configuration []types.GroupConfigurationItem // The description of the resource group. Descriptions can consist of letters, // numbers, hyphens, underscores, periods, and spaces. @@ -54,7 +54,7 @@ type CreateGroupInput struct { ResourceQuery *types.ResourceQuery // The tags to add to the group. A tag is key-value pair string. - Tags map[string]*string + Tags map[string]string } type CreateGroupOutput struct { @@ -76,7 +76,7 @@ type CreateGroupOutput struct { ResourceQuery *types.ResourceQuery // The tags associated with the group. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroups/api_op_GetTags.go b/service/resourcegroups/api_op_GetTags.go index f49a1721a31..e5c0d4e1777 100644 --- a/service/resourcegroups/api_op_GetTags.go +++ b/service/resourcegroups/api_op_GetTags.go @@ -41,7 +41,7 @@ type GetTagsOutput struct { Arn *string // The tags associated with the specified resource group. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroups/api_op_GroupResources.go b/service/resourcegroups/api_op_GroupResources.go index 02b01d09b8a..832381eea0f 100644 --- a/service/resourcegroups/api_op_GroupResources.go +++ b/service/resourcegroups/api_op_GroupResources.go @@ -37,18 +37,18 @@ type GroupResourcesInput struct { // The list of ARNs for resources to be added to the group. // // This member is required. - ResourceArns []*string + ResourceArns []string } type GroupResourcesOutput struct { // The ARNs of the resources that failed to be added to the group by this // operation. - Failed []*types.FailedResource + Failed []types.FailedResource // The ARNs of the resources that were successfully added to the group by this // operation. - Succeeded []*string + Succeeded []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroups/api_op_ListGroupResources.go b/service/resourcegroups/api_op_ListGroupResources.go index 6b8ae8dd5bd..6ccb2513527 100644 --- a/service/resourcegroups/api_op_ListGroupResources.go +++ b/service/resourcegroups/api_op_ListGroupResources.go @@ -51,7 +51,7 @@ type ListGroupResourcesInput struct { // This validation doesn't occur when the group query specifies AWS::AllSupported, // because a group based on such a query can contain any of the allowed resource // types for the query type (tag-based or AWS CloudFormation stack-based queries). - Filters []*types.ResourceFilter + Filters []types.ResourceFilter // The name or the ARN of the resource group Group *string @@ -88,11 +88,11 @@ type ListGroupResourcesOutput struct { // A list of QueryError objects. Each error is an object that contains ErrorCode // and Message structures. Possible values for ErrorCode are // CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING. - QueryErrors []*types.QueryError + QueryErrors []types.QueryError // The ARNs and resource types of resources that are members of the group that you // specified. - ResourceIdentifiers []*types.ResourceIdentifier + ResourceIdentifiers []types.ResourceIdentifier // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroups/api_op_ListGroups.go b/service/resourcegroups/api_op_ListGroups.go index 8d73eaaf674..46d14f995c4 100644 --- a/service/resourcegroups/api_op_ListGroups.go +++ b/service/resourcegroups/api_op_ListGroups.go @@ -42,7 +42,7 @@ type ListGroupsInput struct { // supported values are: // // * AWS:EC2::CapacityReservationPool - Filters []*types.GroupFilter + Filters []types.GroupFilter // The total number of results that you want included on each page of the response. // If you do not include this parameter, it defaults to a value that is specific to @@ -66,11 +66,11 @@ type ListGroupsOutput struct { // A list of GroupIdentifier objects. Each identifier is an object that contains // both the Name and the GroupArn. - GroupIdentifiers []*types.GroupIdentifier + GroupIdentifiers []types.GroupIdentifier // This output element is deprecated and shouldn't be used. Refer to // GroupIdentifiers instead. - Groups []*types.Group + Groups []types.Group // If present, indicates that more output is available than is included in the // current response. Use this value in the NextToken request parameter in a diff --git a/service/resourcegroups/api_op_SearchResources.go b/service/resourcegroups/api_op_SearchResources.go index 2702e8ed89c..0879d2619e5 100644 --- a/service/resourcegroups/api_op_SearchResources.go +++ b/service/resourcegroups/api_op_SearchResources.go @@ -66,11 +66,11 @@ type SearchResourcesOutput struct { // A list of QueryError objects. Each error is an object that contains ErrorCode // and Message structures. Possible values for ErrorCode are // CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING. - QueryErrors []*types.QueryError + QueryErrors []types.QueryError // The ARNs and resource types of resources that are members of the group that you // specified. - ResourceIdentifiers []*types.ResourceIdentifier + ResourceIdentifiers []types.ResourceIdentifier // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroups/api_op_Tag.go b/service/resourcegroups/api_op_Tag.go index 9c37bd9575f..a5384ca1a05 100644 --- a/service/resourcegroups/api_op_Tag.go +++ b/service/resourcegroups/api_op_Tag.go @@ -42,7 +42,7 @@ type TagInput struct { // of key-value pairs. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagOutput struct { @@ -51,7 +51,7 @@ type TagOutput struct { Arn *string // The tags that have been added to the specified resource group. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroups/api_op_UngroupResources.go b/service/resourcegroups/api_op_UngroupResources.go index 252c664fd23..30e9d18eb1a 100644 --- a/service/resourcegroups/api_op_UngroupResources.go +++ b/service/resourcegroups/api_op_UngroupResources.go @@ -37,16 +37,16 @@ type UngroupResourcesInput struct { // The ARNs of the resources to be removed from the group. // // This member is required. - ResourceArns []*string + ResourceArns []string } type UngroupResourcesOutput struct { // The resources that failed to be removed from the group. - Failed []*types.FailedResource + Failed []types.FailedResource // The ARNs of the resources that were successfully removed from the group. - Succeeded []*string + Succeeded []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroups/api_op_Untag.go b/service/resourcegroups/api_op_Untag.go index bbb5a8d40bb..0c7840cf7ac 100644 --- a/service/resourcegroups/api_op_Untag.go +++ b/service/resourcegroups/api_op_Untag.go @@ -37,7 +37,7 @@ type UntagInput struct { // The keys of the tags to be removed. // // This member is required. - Keys []*string + Keys []string } type UntagOutput struct { @@ -46,7 +46,7 @@ type UntagOutput struct { Arn *string // The keys of the tags that were removed. - Keys []*string + Keys []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroups/deserializers.go b/service/resourcegroups/deserializers.go index 2b0eafe5f53..eedd17be83e 100644 --- a/service/resourcegroups/deserializers.go +++ b/service/resourcegroups/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -993,7 +994,7 @@ func awsRestjson1_deserializeOpDocumentGetTagsOutput(v **GetTagsOutput, value in if !ok { return fmt.Errorf("expected GroupArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Tags": @@ -1334,7 +1335,7 @@ func awsRestjson1_deserializeOpDocumentListGroupResourcesOutput(v **ListGroupRes if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "QueryErrors": @@ -1517,7 +1518,7 @@ func awsRestjson1_deserializeOpDocumentListGroupsOutput(v **ListGroupsOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1683,7 +1684,7 @@ func awsRestjson1_deserializeOpDocumentSearchResourcesOutput(v **SearchResources if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "QueryErrors": @@ -1859,7 +1860,7 @@ func awsRestjson1_deserializeOpDocumentTagOutput(v **TagOutput, value interface{ if !ok { return fmt.Errorf("expected GroupArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Tags": @@ -2197,7 +2198,7 @@ func awsRestjson1_deserializeOpDocumentUntagOutput(v **UntagOutput, value interf if !ok { return fmt.Errorf("expected GroupArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Keys": @@ -2818,7 +2819,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2858,7 +2859,7 @@ func awsRestjson1_deserializeDocumentFailedResource(v **types.FailedResource, va if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -2867,7 +2868,7 @@ func awsRestjson1_deserializeDocumentFailedResource(v **types.FailedResource, va if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "ResourceArn": @@ -2876,7 +2877,7 @@ func awsRestjson1_deserializeDocumentFailedResource(v **types.FailedResource, va if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } default: @@ -2888,7 +2889,7 @@ func awsRestjson1_deserializeDocumentFailedResource(v **types.FailedResource, va return nil } -func awsRestjson1_deserializeDocumentFailedResourceList(v *[]*types.FailedResource, value interface{}) error { +func awsRestjson1_deserializeDocumentFailedResourceList(v *[]types.FailedResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2901,18 +2902,20 @@ func awsRestjson1_deserializeDocumentFailedResourceList(v *[]*types.FailedResour return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedResource + var cv []types.FailedResource if *v == nil { - cv = []*types.FailedResource{} + cv = []types.FailedResource{} } else { cv = *v } for _, value := range shape { - var col *types.FailedResource - if err := awsRestjson1_deserializeDocumentFailedResource(&col, value); err != nil { + var col types.FailedResource + destAddr := &col + if err := awsRestjson1_deserializeDocumentFailedResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2948,7 +2951,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2988,7 +2991,7 @@ func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "GroupArn": @@ -2997,7 +3000,7 @@ func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected GroupArn to be of type string, got %T instead", value) } - sv.GroupArn = &jtv + sv.GroupArn = ptr.String(jtv) } case "Name": @@ -3006,7 +3009,7 @@ func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected GroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -3051,7 +3054,7 @@ func awsRestjson1_deserializeDocumentGroupConfiguration(v **types.GroupConfigura if !ok { return fmt.Errorf("expected GroupConfigurationFailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "ProposedConfiguration": @@ -3110,7 +3113,7 @@ func awsRestjson1_deserializeDocumentGroupConfigurationItem(v **types.GroupConfi if !ok { return fmt.Errorf("expected GroupConfigurationType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -3122,7 +3125,7 @@ func awsRestjson1_deserializeDocumentGroupConfigurationItem(v **types.GroupConfi return nil } -func awsRestjson1_deserializeDocumentGroupConfigurationList(v *[]*types.GroupConfigurationItem, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupConfigurationList(v *[]types.GroupConfigurationItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3135,18 +3138,20 @@ func awsRestjson1_deserializeDocumentGroupConfigurationList(v *[]*types.GroupCon return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupConfigurationItem + var cv []types.GroupConfigurationItem if *v == nil { - cv = []*types.GroupConfigurationItem{} + cv = []types.GroupConfigurationItem{} } else { cv = *v } for _, value := range shape { - var col *types.GroupConfigurationItem - if err := awsRestjson1_deserializeDocumentGroupConfigurationItem(&col, value); err != nil { + var col types.GroupConfigurationItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroupConfigurationItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3182,7 +3187,7 @@ func awsRestjson1_deserializeDocumentGroupConfigurationParameter(v **types.Group if !ok { return fmt.Errorf("expected GroupConfigurationParameterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Values": @@ -3199,7 +3204,7 @@ func awsRestjson1_deserializeDocumentGroupConfigurationParameter(v **types.Group return nil } -func awsRestjson1_deserializeDocumentGroupConfigurationParameterValueList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupConfigurationParameterValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3212,21 +3217,21 @@ func awsRestjson1_deserializeDocumentGroupConfigurationParameterValueList(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected GroupConfigurationParameterValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3263,7 +3268,7 @@ func awsRestjson1_deserializeDocumentGroupIdentifier(v **types.GroupIdentifier, if !ok { return fmt.Errorf("expected GroupArn to be of type string, got %T instead", value) } - sv.GroupArn = &jtv + sv.GroupArn = ptr.String(jtv) } case "GroupName": @@ -3272,7 +3277,7 @@ func awsRestjson1_deserializeDocumentGroupIdentifier(v **types.GroupIdentifier, if !ok { return fmt.Errorf("expected GroupName to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } default: @@ -3284,7 +3289,7 @@ func awsRestjson1_deserializeDocumentGroupIdentifier(v **types.GroupIdentifier, return nil } -func awsRestjson1_deserializeDocumentGroupIdentifierList(v *[]*types.GroupIdentifier, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupIdentifierList(v *[]types.GroupIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3297,18 +3302,20 @@ func awsRestjson1_deserializeDocumentGroupIdentifierList(v *[]*types.GroupIdenti return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupIdentifier + var cv []types.GroupIdentifier if *v == nil { - cv = []*types.GroupIdentifier{} + cv = []types.GroupIdentifier{} } else { cv = *v } for _, value := range shape { - var col *types.GroupIdentifier - if err := awsRestjson1_deserializeDocumentGroupIdentifier(&col, value); err != nil { + var col types.GroupIdentifier + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroupIdentifier(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3316,7 +3323,7 @@ func awsRestjson1_deserializeDocumentGroupIdentifierList(v *[]*types.GroupIdenti return nil } -func awsRestjson1_deserializeDocumentGroupList(v *[]*types.Group, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupList(v *[]types.Group, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3329,18 +3336,20 @@ func awsRestjson1_deserializeDocumentGroupList(v *[]*types.Group, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Group + var cv []types.Group if *v == nil { - cv = []*types.Group{} + cv = []types.Group{} } else { cv = *v } for _, value := range shape { - var col *types.Group - if err := awsRestjson1_deserializeDocumentGroup(&col, value); err != nil { + var col types.Group + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3348,7 +3357,7 @@ func awsRestjson1_deserializeDocumentGroupList(v *[]*types.Group, value interfac return nil } -func awsRestjson1_deserializeDocumentGroupParameterList(v *[]*types.GroupConfigurationParameter, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupParameterList(v *[]types.GroupConfigurationParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3361,18 +3370,20 @@ func awsRestjson1_deserializeDocumentGroupParameterList(v *[]*types.GroupConfigu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupConfigurationParameter + var cv []types.GroupConfigurationParameter if *v == nil { - cv = []*types.GroupConfigurationParameter{} + cv = []types.GroupConfigurationParameter{} } else { cv = *v } for _, value := range shape { - var col *types.GroupConfigurationParameter - if err := awsRestjson1_deserializeDocumentGroupConfigurationParameter(&col, value); err != nil { + var col types.GroupConfigurationParameter + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroupConfigurationParameter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3408,7 +3419,7 @@ func awsRestjson1_deserializeDocumentGroupQuery(v **types.GroupQuery, value inte if !ok { return fmt.Errorf("expected GroupName to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } case "ResourceQuery": @@ -3453,7 +3464,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3493,7 +3504,7 @@ func awsRestjson1_deserializeDocumentMethodNotAllowedException(v **types.MethodN if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3533,7 +3544,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3582,7 +3593,7 @@ func awsRestjson1_deserializeDocumentQueryError(v **types.QueryError, value inte if !ok { return fmt.Errorf("expected QueryErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3594,7 +3605,7 @@ func awsRestjson1_deserializeDocumentQueryError(v **types.QueryError, value inte return nil } -func awsRestjson1_deserializeDocumentQueryErrorList(v *[]*types.QueryError, value interface{}) error { +func awsRestjson1_deserializeDocumentQueryErrorList(v *[]types.QueryError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3607,18 +3618,20 @@ func awsRestjson1_deserializeDocumentQueryErrorList(v *[]*types.QueryError, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.QueryError + var cv []types.QueryError if *v == nil { - cv = []*types.QueryError{} + cv = []types.QueryError{} } else { cv = *v } for _, value := range shape { - var col *types.QueryError - if err := awsRestjson1_deserializeDocumentQueryError(&col, value); err != nil { + var col types.QueryError + destAddr := &col + if err := awsRestjson1_deserializeDocumentQueryError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3626,7 +3639,7 @@ func awsRestjson1_deserializeDocumentQueryErrorList(v *[]*types.QueryError, valu return nil } -func awsRestjson1_deserializeDocumentResourceArnList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3639,21 +3652,21 @@ func awsRestjson1_deserializeDocumentResourceArnList(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3690,7 +3703,7 @@ func awsRestjson1_deserializeDocumentResourceIdentifier(v **types.ResourceIdenti if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "ResourceType": @@ -3699,7 +3712,7 @@ func awsRestjson1_deserializeDocumentResourceIdentifier(v **types.ResourceIdenti if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -3711,7 +3724,7 @@ func awsRestjson1_deserializeDocumentResourceIdentifier(v **types.ResourceIdenti return nil } -func awsRestjson1_deserializeDocumentResourceIdentifierList(v *[]*types.ResourceIdentifier, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceIdentifierList(v *[]types.ResourceIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3724,18 +3737,20 @@ func awsRestjson1_deserializeDocumentResourceIdentifierList(v *[]*types.Resource return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceIdentifier + var cv []types.ResourceIdentifier if *v == nil { - cv = []*types.ResourceIdentifier{} + cv = []types.ResourceIdentifier{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceIdentifier - if err := awsRestjson1_deserializeDocumentResourceIdentifier(&col, value); err != nil { + var col types.ResourceIdentifier + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceIdentifier(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3771,7 +3786,7 @@ func awsRestjson1_deserializeDocumentResourceQuery(v **types.ResourceQuery, valu if !ok { return fmt.Errorf("expected Query to be of type string, got %T instead", value) } - sv.Query = &jtv + sv.Query = ptr.String(jtv) } case "Type": @@ -3792,7 +3807,7 @@ func awsRestjson1_deserializeDocumentResourceQuery(v **types.ResourceQuery, valu return nil } -func awsRestjson1_deserializeDocumentTagKeyList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagKeyList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3805,21 +3820,21 @@ func awsRestjson1_deserializeDocumentTagKeyList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3828,7 +3843,7 @@ func awsRestjson1_deserializeDocumentTagKeyList(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3841,21 +3856,21 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -3892,7 +3907,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3932,7 +3947,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/resourcegroups/go.mod b/service/resourcegroups/go.mod index 23cc4ea667c..e0e785f1f2e 100644 --- a/service/resourcegroups/go.mod +++ b/service/resourcegroups/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/resourcegroups go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/resourcegroups/serializers.go b/service/resourcegroups/serializers.go index ff6beaa8279..026caeec671 100644 --- a/service/resourcegroups/serializers.go +++ b/service/resourcegroups/serializers.go @@ -471,13 +471,10 @@ func awsRestjson1_serializeOpHttpBindingsGetTagsInput(v *GetTagsInput, encoder * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Arn == nil { + if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { - if len(*v.Arn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} - } if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } @@ -895,13 +892,10 @@ func awsRestjson1_serializeOpHttpBindingsTagInput(v *TagInput, encoder *httpbind return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Arn == nil { + if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { - if len(*v.Arn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} - } if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } @@ -1066,13 +1060,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagInput(v *UntagInput, encoder *http return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Arn == nil { + if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { - if len(*v.Arn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} - } if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } @@ -1282,17 +1273,13 @@ func awsRestjson1_serializeDocumentGroupConfigurationItem(v *types.GroupConfigur return nil } -func awsRestjson1_serializeDocumentGroupConfigurationList(v []*types.GroupConfigurationItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGroupConfigurationList(v []types.GroupConfigurationItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentGroupConfigurationItem(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentGroupConfigurationItem(&v[i], av); err != nil { return err } } @@ -1318,17 +1305,13 @@ func awsRestjson1_serializeDocumentGroupConfigurationParameter(v *types.GroupCon return nil } -func awsRestjson1_serializeDocumentGroupConfigurationParameterValueList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGroupConfigurationParameterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1352,66 +1335,50 @@ func awsRestjson1_serializeDocumentGroupFilter(v *types.GroupFilter, value smith return nil } -func awsRestjson1_serializeDocumentGroupFilterList(v []*types.GroupFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGroupFilterList(v []types.GroupFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentGroupFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentGroupFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentGroupFilterValues(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGroupFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentGroupParameterList(v []*types.GroupConfigurationParameter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGroupParameterList(v []types.GroupConfigurationParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentGroupConfigurationParameter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentGroupConfigurationParameter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentResourceArnList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourceArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1435,34 +1402,26 @@ func awsRestjson1_serializeDocumentResourceFilter(v *types.ResourceFilter, value return nil } -func awsRestjson1_serializeDocumentResourceFilterList(v []*types.ResourceFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourceFilterList(v []types.ResourceFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentResourceFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentResourceFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentResourceFilterValues(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourceFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1484,32 +1443,24 @@ func awsRestjson1_serializeDocumentResourceQuery(v *types.ResourceQuery, value s return nil } -func awsRestjson1_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/resourcegroups/types/types.go b/service/resourcegroups/types/types.go index fa85e5978c5..edf5e628f3b 100644 --- a/service/resourcegroups/types/types.go +++ b/service/resourcegroups/types/types.go @@ -50,14 +50,14 @@ type Group struct { type GroupConfiguration struct { // The configuration currently associated with the group and in effect. - Configuration []*GroupConfigurationItem + Configuration []GroupConfigurationItem // If present, the reason why a request to update the group configuration failed. FailureReason *string // If present, the new configuration that is in the process of being applied to the // group. - ProposedConfiguration []*GroupConfigurationItem + ProposedConfiguration []GroupConfigurationItem // The current status of an attempt to update the group configuration. Status GroupConfigurationStatus @@ -83,7 +83,7 @@ type GroupConfigurationItem struct { Type *string // A collection of parameters for this group configuration item. - Parameters []*GroupConfigurationParameter + Parameters []GroupConfigurationParameter } // A parameter for a group configuration item. @@ -117,7 +117,7 @@ type GroupConfigurationParameter struct { // * // For item type allowed-resource-types: the only supported parameter value is // AWS::EC2::CapacityReservation. - Values []*string + Values []string } // A filter collection that you can use to restrict the results from a List @@ -133,7 +133,7 @@ type GroupFilter struct { // are case-sensitive. // // This member is required. - Values []*string + Values []string } // The unique identifiers for a resource group. @@ -196,7 +196,7 @@ type ResourceFilter struct { // and are case-sensitive. // // This member is required. - Values []*string + Values []string } // The ARN of a resource, and its resource type. diff --git a/service/resourcegroups/validators.go b/service/resourcegroups/validators.go index 07386c4625d..3a1630c54ac 100644 --- a/service/resourcegroups/validators.go +++ b/service/resourcegroups/validators.go @@ -270,13 +270,13 @@ func validateGroupConfigurationItem(v *types.GroupConfigurationItem) error { } } -func validateGroupConfigurationList(v []*types.GroupConfigurationItem) error { +func validateGroupConfigurationList(v []types.GroupConfigurationItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GroupConfigurationList"} for i := range v { - if err := validateGroupConfigurationItem(v[i]); err != nil { + if err := validateGroupConfigurationItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -320,13 +320,13 @@ func validateGroupFilter(v *types.GroupFilter) error { } } -func validateGroupFilterList(v []*types.GroupFilter) error { +func validateGroupFilterList(v []types.GroupFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GroupFilterList"} for i := range v { - if err := validateGroupFilter(v[i]); err != nil { + if err := validateGroupFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -337,13 +337,13 @@ func validateGroupFilterList(v []*types.GroupFilter) error { } } -func validateGroupParameterList(v []*types.GroupConfigurationParameter) error { +func validateGroupParameterList(v []types.GroupConfigurationParameter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GroupParameterList"} for i := range v { - if err := validateGroupConfigurationParameter(v[i]); err != nil { + if err := validateGroupConfigurationParameter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -372,13 +372,13 @@ func validateResourceFilter(v *types.ResourceFilter) error { } } -func validateResourceFilterList(v []*types.ResourceFilter) error { +func validateResourceFilterList(v []types.ResourceFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceFilterList"} for i := range v { - if err := validateResourceFilter(v[i]); err != nil { + if err := validateResourceFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/resourcegroupstaggingapi/api_op_GetComplianceSummary.go b/service/resourcegroupstaggingapi/api_op_GetComplianceSummary.go index dccf77dc1df..e28dd971c67 100644 --- a/service/resourcegroupstaggingapi/api_op_GetComplianceSummary.go +++ b/service/resourcegroupstaggingapi/api_op_GetComplianceSummary.go @@ -48,7 +48,7 @@ type GetComplianceSummaryInput struct { // A list of Regions to limit the output by. If you use this parameter, the count // of returned noncompliant resources includes only resources in the specified // Regions. - RegionFilters []*string + RegionFilters []string // The constraints on the resources that you want returned. The format of each // resource type is service[:resourceType]. For example, specifying a resource type @@ -74,17 +74,17 @@ type GetComplianceSummaryInput struct { // can specify multiple resource types by using an array. The array can include up // to 100 items. Note that the length constraint requirement applies to each // resource type filter. - ResourceTypeFilters []*string + ResourceTypeFilters []string // A list of tag keys to limit the output by. If you use this parameter, the count // of returned noncompliant resources includes only resources that have the // specified tag keys. - TagKeyFilters []*string + TagKeyFilters []string // The target identifiers (usually, specific account IDs) to limit the output by. // If you use this parameter, the count of returned noncompliant resources includes // only resources with the specified target IDs. - TargetIdFilters []*string + TargetIdFilters []string } type GetComplianceSummaryOutput struct { @@ -95,7 +95,7 @@ type GetComplianceSummaryOutput struct { PaginationToken *string // A table that shows counts of noncompliant resources. - SummaryList []*types.Summary + SummaryList []types.Summary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroupstaggingapi/api_op_GetResources.go b/service/resourcegroupstaggingapi/api_op_GetResources.go index 0472b5ec925..63e6a457dd6 100644 --- a/service/resourcegroupstaggingapi/api_op_GetResources.go +++ b/service/resourcegroupstaggingapi/api_op_GetResources.go @@ -86,7 +86,7 @@ type GetResourcesInput struct { // can specify multiple resource types by using an array. The array can include up // to 100 items. Note that the length constraint requirement applies to each // resource type filter. - ResourceTypeFilters []*string + ResourceTypeFilters []string // A limit that restricts the number of resources returned by GetResources in // paginated output. You can set ResourcesPerPage to a minimum of 1 item and the @@ -132,7 +132,7 @@ type GetResourcesInput struct { // * GetResources( {filter1,filter2,filter3} ) returns // resources tagged with ( key1=value1) and ( key2=value2 or key2=value3 or // key2=value4) and (key3, irrespective of the value) - TagFilters []*types.TagFilter + TagFilters []types.TagFilter // AWS recommends using ResourcesPerPage instead of this parameter. A limit that // restricts the number of tags (key and value pairs) returned by GetResources in @@ -158,7 +158,7 @@ type GetResourcesOutput struct { PaginationToken *string // A list of resource ARNs and the tags (keys and values) associated with each. - ResourceTagMappingList []*types.ResourceTagMapping + ResourceTagMappingList []types.ResourceTagMapping // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroupstaggingapi/api_op_GetTagKeys.go b/service/resourcegroupstaggingapi/api_op_GetTagKeys.go index b225de4e7c4..c6c38f2926c 100644 --- a/service/resourcegroupstaggingapi/api_op_GetTagKeys.go +++ b/service/resourcegroupstaggingapi/api_op_GetTagKeys.go @@ -43,7 +43,7 @@ type GetTagKeysOutput struct { PaginationToken *string // A list of all tag keys in the AWS account. - TagKeys []*string + TagKeys []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroupstaggingapi/api_op_GetTagValues.go b/service/resourcegroupstaggingapi/api_op_GetTagValues.go index 0d87752a40b..7de25a898b6 100644 --- a/service/resourcegroupstaggingapi/api_op_GetTagValues.go +++ b/service/resourcegroupstaggingapi/api_op_GetTagValues.go @@ -51,7 +51,7 @@ type GetTagValuesOutput struct { PaginationToken *string // A list of all tag values for the specified key in the AWS account. - TagValues []*string + TagValues []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroupstaggingapi/api_op_TagResources.go b/service/resourcegroupstaggingapi/api_op_TagResources.go index e6e526ca646..32dda99a17e 100644 --- a/service/resourcegroupstaggingapi/api_op_TagResources.go +++ b/service/resourcegroupstaggingapi/api_op_TagResources.go @@ -61,13 +61,13 @@ type TagResourcesInput struct { // the AWS General Reference. // // This member is required. - ResourceARNList []*string + ResourceARNList []string // The tags that you want to add to the specified resources. A tag consists of a // key and a value that you define. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourcesOutput struct { @@ -76,7 +76,7 @@ type TagResourcesOutput struct { // The key is the ARN of the failed resource. The value is a FailureInfo object // that contains an error code, a status code, and an error message. If there are // no errors, the FailedResourcesMap is empty. - FailedResourcesMap map[string]*types.FailureInfo + FailedResourcesMap map[string]types.FailureInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroupstaggingapi/api_op_UntagResources.go b/service/resourcegroupstaggingapi/api_op_UntagResources.go index 27e7504d8e7..2533e9ddef3 100644 --- a/service/resourcegroupstaggingapi/api_op_UntagResources.go +++ b/service/resourcegroupstaggingapi/api_op_UntagResources.go @@ -48,19 +48,19 @@ type UntagResourcesInput struct { // the AWS General Reference. // // This member is required. - ResourceARNList []*string + ResourceARNList []string // A list of the tag keys that you want to remove from the specified resources. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourcesOutput struct { // Details of resources that could not be untagged. An error code, status code, and // error message are returned for each failed item. - FailedResourcesMap map[string]*types.FailureInfo + FailedResourcesMap map[string]types.FailureInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/resourcegroupstaggingapi/deserializers.go b/service/resourcegroupstaggingapi/deserializers.go index 10a7b2a04b2..804ea6a7966 100644 --- a/service/resourcegroupstaggingapi/deserializers.go +++ b/service/resourcegroupstaggingapi/deserializers.go @@ -1213,7 +1213,7 @@ func awsAwsjson11_deserializeDocumentComplianceDetails(v **types.ComplianceDetai if !ok { return fmt.Errorf("expected ComplianceStatus to be of type *bool, got %T instead", value) } - sv.ComplianceStatus = &jtv + sv.ComplianceStatus = ptr.Bool(jtv) } case "KeysWithNoncompliantValues": @@ -1263,7 +1263,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1303,7 +1303,7 @@ func awsAwsjson11_deserializeDocumentConstraintViolationException(v **types.Cons if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1315,7 +1315,7 @@ func awsAwsjson11_deserializeDocumentConstraintViolationException(v **types.Cons return nil } -func awsAwsjson11_deserializeDocumentFailedResourcesMap(v *map[string]*types.FailureInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedResourcesMap(v *map[string]types.FailureInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1328,18 +1328,21 @@ func awsAwsjson11_deserializeDocumentFailedResourcesMap(v *map[string]*types.Fai return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.FailureInfo + var mv map[string]types.FailureInfo if *v == nil { - mv = map[string]*types.FailureInfo{} + mv = map[string]types.FailureInfo{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.FailureInfo - if err := awsAwsjson11_deserializeDocumentFailureInfo(&parsedVal, value); err != nil { + var parsedVal types.FailureInfo + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentFailureInfo(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -1384,7 +1387,7 @@ func awsAwsjson11_deserializeDocumentFailureInfo(v **types.FailureInfo, value in if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "StatusCode": @@ -1397,7 +1400,7 @@ func awsAwsjson11_deserializeDocumentFailureInfo(v **types.FailureInfo, value in if err != nil { return err } - sv.StatusCode = ptr.Int32(int32(i64)) + sv.StatusCode = int32(i64) } default: @@ -1437,7 +1440,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1477,7 +1480,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1517,7 +1520,7 @@ func awsAwsjson11_deserializeDocumentPaginationTokenExpiredException(v **types.P if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1562,7 +1565,7 @@ func awsAwsjson11_deserializeDocumentResourceTagMapping(v **types.ResourceTagMap if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "Tags": @@ -1579,7 +1582,7 @@ func awsAwsjson11_deserializeDocumentResourceTagMapping(v **types.ResourceTagMap return nil } -func awsAwsjson11_deserializeDocumentResourceTagMappingList(v *[]*types.ResourceTagMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceTagMappingList(v *[]types.ResourceTagMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1592,18 +1595,20 @@ func awsAwsjson11_deserializeDocumentResourceTagMappingList(v *[]*types.Resource return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceTagMapping + var cv []types.ResourceTagMapping if *v == nil { - cv = []*types.ResourceTagMapping{} + cv = []types.ResourceTagMapping{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceTagMapping - if err := awsAwsjson11_deserializeDocumentResourceTagMapping(&col, value); err != nil { + var col types.ResourceTagMapping + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceTagMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1639,7 +1644,7 @@ func awsAwsjson11_deserializeDocumentSummary(v **types.Summary, value interface{ if !ok { return fmt.Errorf("expected LastUpdated to be of type string, got %T instead", value) } - sv.LastUpdated = &jtv + sv.LastUpdated = ptr.String(jtv) } case "NonCompliantResources": @@ -1652,7 +1657,7 @@ func awsAwsjson11_deserializeDocumentSummary(v **types.Summary, value interface{ if err != nil { return err } - sv.NonCompliantResources = &i64 + sv.NonCompliantResources = i64 } case "Region": @@ -1661,7 +1666,7 @@ func awsAwsjson11_deserializeDocumentSummary(v **types.Summary, value interface{ if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "ResourceType": @@ -1670,7 +1675,7 @@ func awsAwsjson11_deserializeDocumentSummary(v **types.Summary, value interface{ if !ok { return fmt.Errorf("expected AmazonResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "TargetId": @@ -1679,7 +1684,7 @@ func awsAwsjson11_deserializeDocumentSummary(v **types.Summary, value interface{ if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } case "TargetIdType": @@ -1700,7 +1705,7 @@ func awsAwsjson11_deserializeDocumentSummary(v **types.Summary, value interface{ return nil } -func awsAwsjson11_deserializeDocumentSummaryList(v *[]*types.Summary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSummaryList(v *[]types.Summary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1713,18 +1718,20 @@ func awsAwsjson11_deserializeDocumentSummaryList(v *[]*types.Summary, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Summary + var cv []types.Summary if *v == nil { - cv = []*types.Summary{} + cv = []types.Summary{} } else { cv = *v } for _, value := range shape { - var col *types.Summary - if err := awsAwsjson11_deserializeDocumentSummary(&col, value); err != nil { + var col types.Summary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1760,7 +1767,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -1769,7 +1776,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -1781,7 +1788,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagKeyList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagKeyList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1794,21 +1801,21 @@ func awsAwsjson11_deserializeDocumentTagKeyList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1817,7 +1824,7 @@ func awsAwsjson11_deserializeDocumentTagKeyList(v *[]*string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1830,18 +1837,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1849,7 +1858,7 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentTagValuesOutputList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagValuesOutputList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1862,21 +1871,21 @@ func awsAwsjson11_deserializeDocumentTagValuesOutputList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1913,7 +1922,7 @@ func awsAwsjson11_deserializeDocumentThrottledException(v **types.ThrottledExcep if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1953,7 +1962,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReportCreationOutput(v **Describe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "S3Location": @@ -1962,7 +1971,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReportCreationOutput(v **Describe if !ok { return fmt.Errorf("expected S3Location to be of type string, got %T instead", value) } - sv.S3Location = &jtv + sv.S3Location = ptr.String(jtv) } case "StartDate": @@ -1971,7 +1980,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReportCreationOutput(v **Describe if !ok { return fmt.Errorf("expected StartDate to be of type string, got %T instead", value) } - sv.StartDate = &jtv + sv.StartDate = ptr.String(jtv) } case "Status": @@ -1980,7 +1989,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeReportCreationOutput(v **Describe if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -2020,7 +2029,7 @@ func awsAwsjson11_deserializeOpDocumentGetComplianceSummaryOutput(v **GetComplia if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.PaginationToken = &jtv + sv.PaginationToken = ptr.String(jtv) } case "SummaryList": @@ -2065,7 +2074,7 @@ func awsAwsjson11_deserializeOpDocumentGetResourcesOutput(v **GetResourcesOutput if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.PaginationToken = &jtv + sv.PaginationToken = ptr.String(jtv) } case "ResourceTagMappingList": @@ -2110,7 +2119,7 @@ func awsAwsjson11_deserializeOpDocumentGetTagKeysOutput(v **GetTagKeysOutput, va if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.PaginationToken = &jtv + sv.PaginationToken = ptr.String(jtv) } case "TagKeys": @@ -2155,7 +2164,7 @@ func awsAwsjson11_deserializeOpDocumentGetTagValuesOutput(v **GetTagValuesOutput if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.PaginationToken = &jtv + sv.PaginationToken = ptr.String(jtv) } case "TagValues": diff --git a/service/resourcegroupstaggingapi/go.mod b/service/resourcegroupstaggingapi/go.mod index 75e46c2ff16..07b9a76795d 100644 --- a/service/resourcegroupstaggingapi/go.mod +++ b/service/resourcegroupstaggingapi/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/resourcegroupstaggingapi/serializers.go b/service/resourcegroupstaggingapi/serializers.go index 1dd42a144f0..41c5660be86 100644 --- a/service/resourcegroupstaggingapi/serializers.go +++ b/service/resourcegroupstaggingapi/serializers.go @@ -385,47 +385,35 @@ func awsAwsjson11_serializeDocumentGroupBy(v []types.GroupByAttribute, value smi return nil } -func awsAwsjson11_serializeDocumentRegionFilterList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRegionFilterList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentResourceARNList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceARNList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentResourceTypeFilterList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceTypeFilterList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -449,94 +437,70 @@ func awsAwsjson11_serializeDocumentTagFilter(v *types.TagFilter, value smithyjso return nil } -func awsAwsjson11_serializeDocumentTagFilterList(v []*types.TagFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagFilterList(v []types.TagFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTagFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTagFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTagKeyFilterList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyFilterList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagKeyListForUntag(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyListForUntag(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentTagValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTargetIdFilterList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetIdFilterList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/resourcegroupstaggingapi/types/types.go b/service/resourcegroupstaggingapi/types/types.go index 139a8606545..442f21a50ba 100644 --- a/service/resourcegroupstaggingapi/types/types.go +++ b/service/resourcegroupstaggingapi/types/types.go @@ -11,10 +11,10 @@ type ComplianceDetails struct { // These are keys defined in the effective policy that are on the resource with // either incorrect case treatment or noncompliant values. - KeysWithNoncompliantValues []*string + KeysWithNoncompliantValues []string // These tag keys on the resource are noncompliant with the effective tag policy. - NoncompliantKeys []*string + NoncompliantKeys []string } // Information about the errors that are returned for each failed resource. This @@ -53,7 +53,7 @@ type FailureInfo struct { ErrorMessage *string // The HTTP status code of the common error. - StatusCode *int32 + StatusCode int32 } // A list of resource ARNs and the tags (keys and values) that are associated with @@ -68,7 +68,7 @@ type ResourceTagMapping struct { ResourceARN *string // The tags that have been applied to one or more AWS resources. - Tags []*Tag + Tags []Tag } // A count of noncompliant resources. @@ -78,7 +78,7 @@ type Summary struct { LastUpdated *string // The count of noncompliant resources. - NonCompliantResources *int64 + NonCompliantResources int64 // The AWS Region that the summary applies to. Region *string @@ -126,5 +126,5 @@ type TagFilter struct { // One part of a key-value pair that make up a tag. A value acts as a descriptor // within a tag category (key). The value can be empty or null. - Values []*string + Values []string } diff --git a/service/robomaker/api_op_BatchDeleteWorlds.go b/service/robomaker/api_op_BatchDeleteWorlds.go index 70b679eabaa..2ae6feb2c47 100644 --- a/service/robomaker/api_op_BatchDeleteWorlds.go +++ b/service/robomaker/api_op_BatchDeleteWorlds.go @@ -31,14 +31,14 @@ type BatchDeleteWorldsInput struct { // A list of Amazon Resource Names (arns) that correspond to worlds to delete. // // This member is required. - Worlds []*string + Worlds []string } type BatchDeleteWorldsOutput struct { // A list of unprocessed worlds associated with the call. These worlds were not // deleted. - UnprocessedWorlds []*string + UnprocessedWorlds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_BatchDescribeSimulationJob.go b/service/robomaker/api_op_BatchDescribeSimulationJob.go index 8b6db6fbce4..b9c4a8cf8b4 100644 --- a/service/robomaker/api_op_BatchDescribeSimulationJob.go +++ b/service/robomaker/api_op_BatchDescribeSimulationJob.go @@ -32,16 +32,16 @@ type BatchDescribeSimulationJobInput struct { // A list of Amazon Resource Names (ARNs) of simulation jobs to describe. // // This member is required. - Jobs []*string + Jobs []string } type BatchDescribeSimulationJobOutput struct { // A list of simulation jobs. - Jobs []*types.SimulationJob + Jobs []types.SimulationJob // A list of unprocessed simulation job Amazon Resource Names (ARNs). - UnprocessedJobs []*string + UnprocessedJobs []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_CreateDeploymentJob.go b/service/robomaker/api_op_CreateDeploymentJob.go index ba6d57b9165..394d744f578 100644 --- a/service/robomaker/api_op_CreateDeploymentJob.go +++ b/service/robomaker/api_op_CreateDeploymentJob.go @@ -46,7 +46,7 @@ type CreateDeploymentJobInput struct { // The deployment application configuration. // // This member is required. - DeploymentApplicationConfigs []*types.DeploymentApplicationConfig + DeploymentApplicationConfigs []types.DeploymentApplicationConfig // The Amazon Resource Name (ARN) of the fleet to deploy. // @@ -58,7 +58,7 @@ type CreateDeploymentJobInput struct { // A map that contains tag keys and tag values that are attached to the deployment // job. - Tags map[string]*string + Tags map[string]string } type CreateDeploymentJobOutput struct { @@ -70,7 +70,7 @@ type CreateDeploymentJobOutput struct { CreatedAt *time.Time // The deployment application configuration. - DeploymentApplicationConfigs []*types.DeploymentApplicationConfig + DeploymentApplicationConfigs []types.DeploymentApplicationConfig // The deployment configuration. DeploymentConfig *types.DeploymentConfig @@ -108,7 +108,7 @@ type CreateDeploymentJobOutput struct { Status types.DeploymentStatus // The list of all tags added to the deployment job. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_CreateFleet.go b/service/robomaker/api_op_CreateFleet.go index 4868d367dd6..93a1b2600ca 100644 --- a/service/robomaker/api_op_CreateFleet.go +++ b/service/robomaker/api_op_CreateFleet.go @@ -35,7 +35,7 @@ type CreateFleetInput struct { Name *string // A map that contains tag keys and tag values that are attached to the fleet. - Tags map[string]*string + Tags map[string]string } type CreateFleetOutput struct { @@ -50,7 +50,7 @@ type CreateFleetOutput struct { Name *string // The list of all tags added to the fleet. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_CreateRobot.go b/service/robomaker/api_op_CreateRobot.go index 4a362be3984..3122719d36c 100644 --- a/service/robomaker/api_op_CreateRobot.go +++ b/service/robomaker/api_op_CreateRobot.go @@ -46,7 +46,7 @@ type CreateRobotInput struct { Name *string // A map that contains tag keys and tag values that are attached to the robot. - Tags map[string]*string + Tags map[string]string } type CreateRobotOutput struct { @@ -68,7 +68,7 @@ type CreateRobotOutput struct { Name *string // The list of all tags added to the robot. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_CreateRobotApplication.go b/service/robomaker/api_op_CreateRobotApplication.go index f860388a220..a8d39c16e5e 100644 --- a/service/robomaker/api_op_CreateRobotApplication.go +++ b/service/robomaker/api_op_CreateRobotApplication.go @@ -43,11 +43,11 @@ type CreateRobotApplicationInput struct { // The sources of the robot application. // // This member is required. - Sources []*types.SourceConfig + Sources []types.SourceConfig // A map that contains tag keys and tag values that are attached to the robot // application. - Tags map[string]*string + Tags map[string]string } type CreateRobotApplicationOutput struct { @@ -69,10 +69,10 @@ type CreateRobotApplicationOutput struct { RobotSoftwareSuite *types.RobotSoftwareSuite // The sources of the robot application. - Sources []*types.Source + Sources []types.Source // The list of all tags added to the robot application. - Tags map[string]*string + Tags map[string]string // The version of the robot application. Version *string diff --git a/service/robomaker/api_op_CreateRobotApplicationVersion.go b/service/robomaker/api_op_CreateRobotApplicationVersion.go index e856d6b25e5..26a57bc2696 100644 --- a/service/robomaker/api_op_CreateRobotApplicationVersion.go +++ b/service/robomaker/api_op_CreateRobotApplicationVersion.go @@ -59,7 +59,7 @@ type CreateRobotApplicationVersionOutput struct { RobotSoftwareSuite *types.RobotSoftwareSuite // The sources of the robot application. - Sources []*types.Source + Sources []types.Source // The version of the robot application. Version *string diff --git a/service/robomaker/api_op_CreateSimulationApplication.go b/service/robomaker/api_op_CreateSimulationApplication.go index 38ee493b412..1dc3410ac5e 100644 --- a/service/robomaker/api_op_CreateSimulationApplication.go +++ b/service/robomaker/api_op_CreateSimulationApplication.go @@ -48,14 +48,14 @@ type CreateSimulationApplicationInput struct { // The sources of the simulation application. // // This member is required. - Sources []*types.SourceConfig + Sources []types.SourceConfig // The rendering engine for the simulation application. RenderingEngine *types.RenderingEngine // A map that contains tag keys and tag values that are attached to the simulation // application. - Tags map[string]*string + Tags map[string]string } type CreateSimulationApplicationOutput struct { @@ -83,10 +83,10 @@ type CreateSimulationApplicationOutput struct { SimulationSoftwareSuite *types.SimulationSoftwareSuite // The sources of the simulation application. - Sources []*types.Source + Sources []types.Source // The list of all tags added to the simulation application. - Tags map[string]*string + Tags map[string]string // The version of the simulation application. Version *string diff --git a/service/robomaker/api_op_CreateSimulationApplicationVersion.go b/service/robomaker/api_op_CreateSimulationApplicationVersion.go index 0ca604e75fb..2251d469cc6 100644 --- a/service/robomaker/api_op_CreateSimulationApplicationVersion.go +++ b/service/robomaker/api_op_CreateSimulationApplicationVersion.go @@ -65,7 +65,7 @@ type CreateSimulationApplicationVersionOutput struct { SimulationSoftwareSuite *types.SimulationSoftwareSuite // The sources of the simulation application. - Sources []*types.Source + Sources []types.Source // The version of the simulation application. Version *string diff --git a/service/robomaker/api_op_CreateSimulationJob.go b/service/robomaker/api_op_CreateSimulationJob.go index ebd26ff6132..50a30dd0ca8 100644 --- a/service/robomaker/api_op_CreateSimulationJob.go +++ b/service/robomaker/api_op_CreateSimulationJob.go @@ -44,7 +44,7 @@ type CreateSimulationJobInput struct { // will transition to Completed. // // This member is required. - MaxJobDurationInSeconds *int64 + MaxJobDurationInSeconds int64 // Unique, case-sensitive identifier that you provide to ensure the idempotency of // the request. @@ -57,7 +57,7 @@ type CreateSimulationJobInput struct { // These files are available under /opt/robomaker/datasources/data_source_name. // There is a limit of 100 files and a combined size of 25GB for all // DataSourceConfig objects. - DataSources []*types.DataSourceConfig + DataSources []types.DataSourceConfig // The failure behavior the simulation job. Continue Restart the simulation job in // the same host instance. Fail Stop the simulation job and terminate the instance. @@ -70,14 +70,14 @@ type CreateSimulationJobInput struct { OutputLocation *types.OutputLocation // The robot application to use in the simulation job. - RobotApplications []*types.RobotApplicationConfig + RobotApplications []types.RobotApplicationConfig // The simulation application to use in the simulation job. - SimulationApplications []*types.SimulationApplicationConfig + SimulationApplications []types.SimulationApplicationConfig // A map that contains tag keys and tag values that are attached to the simulation // job. - Tags map[string]*string + Tags map[string]string // If your simulation job accesses resources in a VPC, you provide this parameter // identifying the list of security group IDs and subnet IDs. These must belong to @@ -98,7 +98,7 @@ type CreateSimulationJobOutput struct { Compute *types.ComputeResponse // The data sources for the simulation job. - DataSources []*types.DataSource + DataSources []types.DataSource // the failure behavior for the simulation job. FailureBehavior types.FailureBehavior @@ -137,25 +137,25 @@ type CreateSimulationJobOutput struct { LoggingConfig *types.LoggingConfig // The maximum simulation job duration in seconds. - MaxJobDurationInSeconds *int64 + MaxJobDurationInSeconds int64 // Simulation job output files location. OutputLocation *types.OutputLocation // The robot application used by the simulation job. - RobotApplications []*types.RobotApplicationConfig + RobotApplications []types.RobotApplicationConfig // The simulation application used by the simulation job. - SimulationApplications []*types.SimulationApplicationConfig + SimulationApplications []types.SimulationApplicationConfig // The simulation job execution duration in milliseconds. - SimulationTimeMillis *int64 + SimulationTimeMillis int64 // The status of the simulation job. Status types.SimulationJobStatus // The list of all tags added to the simulation job. - Tags map[string]*string + Tags map[string]string // Information about the vpc configuration. VpcConfig *types.VPCConfigResponse diff --git a/service/robomaker/api_op_CreateWorldExportJob.go b/service/robomaker/api_op_CreateWorldExportJob.go index d603e9623d0..ce1ffb024d6 100644 --- a/service/robomaker/api_op_CreateWorldExportJob.go +++ b/service/robomaker/api_op_CreateWorldExportJob.go @@ -45,7 +45,7 @@ type CreateWorldExportJobInput struct { // A list of Amazon Resource Names (arns) that correspond to worlds to export. // // This member is required. - Worlds []*string + Worlds []string // Unique, case-sensitive identifier that you provide to ensure the idempotency of // the request. @@ -53,7 +53,7 @@ type CreateWorldExportJobInput struct { // A map that contains tag keys and tag values that are attached to the world // export job. - Tags map[string]*string + Tags map[string]string } type CreateWorldExportJobOutput struct { @@ -93,7 +93,7 @@ type CreateWorldExportJobOutput struct { // A map that contains tag keys and tag values that are attached to the world // export job. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_CreateWorldGenerationJob.go b/service/robomaker/api_op_CreateWorldGenerationJob.go index f146c96999d..56c6f63a1e8 100644 --- a/service/robomaker/api_op_CreateWorldGenerationJob.go +++ b/service/robomaker/api_op_CreateWorldGenerationJob.go @@ -48,7 +48,7 @@ type CreateWorldGenerationJobInput struct { // A map that contains tag keys and tag values that are attached to the world // generator job. - Tags map[string]*string + Tags map[string]string } type CreateWorldGenerationJobOutput struct { @@ -82,7 +82,7 @@ type CreateWorldGenerationJobOutput struct { // A map that contains tag keys and tag values that are attached to the world // generator job. - Tags map[string]*string + Tags map[string]string // The Amazon Resource Name (arn) of the world template. Template *string diff --git a/service/robomaker/api_op_CreateWorldTemplate.go b/service/robomaker/api_op_CreateWorldTemplate.go index 8944ec42bbd..da294fc7c91 100644 --- a/service/robomaker/api_op_CreateWorldTemplate.go +++ b/service/robomaker/api_op_CreateWorldTemplate.go @@ -39,7 +39,7 @@ type CreateWorldTemplateInput struct { // A map that contains tag keys and tag values that are attached to the world // template. - Tags map[string]*string + Tags map[string]string // The world template body. TemplateBody *string @@ -65,7 +65,7 @@ type CreateWorldTemplateOutput struct { // A map that contains tag keys and tag values that are attached to the world // template. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_DescribeDeploymentJob.go b/service/robomaker/api_op_DescribeDeploymentJob.go index d1a5a7015c2..5dc47301a7c 100644 --- a/service/robomaker/api_op_DescribeDeploymentJob.go +++ b/service/robomaker/api_op_DescribeDeploymentJob.go @@ -45,7 +45,7 @@ type DescribeDeploymentJobOutput struct { CreatedAt *time.Time // The deployment application configuration. - DeploymentApplicationConfigs []*types.DeploymentApplicationConfig + DeploymentApplicationConfigs []types.DeploymentApplicationConfig // The deployment configuration. DeploymentConfig *types.DeploymentConfig @@ -60,13 +60,13 @@ type DescribeDeploymentJobOutput struct { Fleet *string // A list of robot deployment summaries. - RobotDeploymentSummary []*types.RobotDeployment + RobotDeploymentSummary []types.RobotDeployment // The status of the deployment job. Status types.DeploymentStatus // The list of all tags added to the specified deployment job. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_DescribeFleet.go b/service/robomaker/api_op_DescribeFleet.go index 73187f32b03..038cbc0d2d1 100644 --- a/service/robomaker/api_op_DescribeFleet.go +++ b/service/robomaker/api_op_DescribeFleet.go @@ -57,10 +57,10 @@ type DescribeFleetOutput struct { Name *string // A list of robots. - Robots []*types.Robot + Robots []types.Robot // The list of all tags added to the specified fleet. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_DescribeRobot.go b/service/robomaker/api_op_DescribeRobot.go index 95f39b77eb2..f9d424ca5cc 100644 --- a/service/robomaker/api_op_DescribeRobot.go +++ b/service/robomaker/api_op_DescribeRobot.go @@ -66,7 +66,7 @@ type DescribeRobotOutput struct { Status types.RobotStatus // The list of all tags added to the specified robot. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_DescribeRobotApplication.go b/service/robomaker/api_op_DescribeRobotApplication.go index 92c8669aa75..939d9560da7 100644 --- a/service/robomaker/api_op_DescribeRobotApplication.go +++ b/service/robomaker/api_op_DescribeRobotApplication.go @@ -58,10 +58,10 @@ type DescribeRobotApplicationOutput struct { RobotSoftwareSuite *types.RobotSoftwareSuite // The sources of the robot application. - Sources []*types.Source + Sources []types.Source // The list of all tags added to the specified robot application. - Tags map[string]*string + Tags map[string]string // The version of the robot application. Version *string diff --git a/service/robomaker/api_op_DescribeSimulationApplication.go b/service/robomaker/api_op_DescribeSimulationApplication.go index ab8ce7ccf61..60dcdee233f 100644 --- a/service/robomaker/api_op_DescribeSimulationApplication.go +++ b/service/robomaker/api_op_DescribeSimulationApplication.go @@ -64,10 +64,10 @@ type DescribeSimulationApplicationOutput struct { SimulationSoftwareSuite *types.SimulationSoftwareSuite // The sources of the simulation application. - Sources []*types.Source + Sources []types.Source // The list of all tags added to the specified simulation application. - Tags map[string]*string + Tags map[string]string // The version of the simulation application. Version *string diff --git a/service/robomaker/api_op_DescribeSimulationJob.go b/service/robomaker/api_op_DescribeSimulationJob.go index 2ce44c922d4..35ac744f392 100644 --- a/service/robomaker/api_op_DescribeSimulationJob.go +++ b/service/robomaker/api_op_DescribeSimulationJob.go @@ -49,7 +49,7 @@ type DescribeSimulationJobOutput struct { Compute *types.ComputeResponse // The data sources for the simulation job. - DataSources []*types.DataSource + DataSources []types.DataSource // The failure behavior for the simulation job. FailureBehavior types.FailureBehavior @@ -94,7 +94,7 @@ type DescribeSimulationJobOutput struct { // The maximum job duration in seconds. The value must be 8 days (691,200 seconds) // or less. - MaxJobDurationInSeconds *int64 + MaxJobDurationInSeconds int64 // The name of the simulation job. Name *string @@ -106,19 +106,19 @@ type DescribeSimulationJobOutput struct { OutputLocation *types.OutputLocation // A list of robot applications. - RobotApplications []*types.RobotApplicationConfig + RobotApplications []types.RobotApplicationConfig // A list of simulation applications. - SimulationApplications []*types.SimulationApplicationConfig + SimulationApplications []types.SimulationApplicationConfig // The simulation job execution duration in milliseconds. - SimulationTimeMillis *int64 + SimulationTimeMillis int64 // The status of the simulation job. Status types.SimulationJobStatus // The list of all tags added to the specified simulation job. - Tags map[string]*string + Tags map[string]string // The VPC configuration. VpcConfig *types.VPCConfigResponse diff --git a/service/robomaker/api_op_DescribeSimulationJobBatch.go b/service/robomaker/api_op_DescribeSimulationJobBatch.go index 1012b9d5735..85a199d9c87 100644 --- a/service/robomaker/api_op_DescribeSimulationJobBatch.go +++ b/service/robomaker/api_op_DescribeSimulationJobBatch.go @@ -53,11 +53,11 @@ type DescribeSimulationJobBatchOutput struct { CreatedAt *time.Time // A list of created simulation job summaries. - CreatedRequests []*types.SimulationJobSummary + CreatedRequests []types.SimulationJobSummary // A list of failed create simulation job requests. The request failed to be // created into a simulation job. Failed requests do not have a simulation job ID. - FailedRequests []*types.FailedCreateSimulationJobRequest + FailedRequests []types.FailedCreateSimulationJobRequest // The failure code of the simulation job batch. FailureCode types.SimulationJobBatchErrorCode @@ -71,7 +71,7 @@ type DescribeSimulationJobBatchOutput struct { // A list of pending simulation job requests. These requests have not yet been // created into simulation jobs. - PendingRequests []*types.SimulationJobRequest + PendingRequests []types.SimulationJobRequest // The status of the batch. Pending The simulation job batch request is pending. // InProgress The simulation job batch is in progress. Failed The simulation job @@ -92,7 +92,7 @@ type DescribeSimulationJobBatchOutput struct { // A map that contains tag keys and tag values that are attached to the simulation // job batch. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_DescribeWorld.go b/service/robomaker/api_op_DescribeWorld.go index 5ce118a329f..07a5bd1a972 100644 --- a/service/robomaker/api_op_DescribeWorld.go +++ b/service/robomaker/api_op_DescribeWorld.go @@ -48,7 +48,7 @@ type DescribeWorldOutput struct { GenerationJob *string // A map that contains tag keys and tag values that are attached to the world. - Tags map[string]*string + Tags map[string]string // The world template. Template *string diff --git a/service/robomaker/api_op_DescribeWorldExportJob.go b/service/robomaker/api_op_DescribeWorldExportJob.go index f961e76c480..7a1c62be09a 100644 --- a/service/robomaker/api_op_DescribeWorldExportJob.go +++ b/service/robomaker/api_op_DescribeWorldExportJob.go @@ -76,10 +76,10 @@ type DescribeWorldExportJobOutput struct { // A map that contains tag keys and tag values that are attached to the world // export job. - Tags map[string]*string + Tags map[string]string // A list of Amazon Resource Names (arns) that correspond to worlds to be exported. - Worlds []*string + Worlds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_DescribeWorldGenerationJob.go b/service/robomaker/api_op_DescribeWorldGenerationJob.go index 1d532563f5f..b5e48959869 100644 --- a/service/robomaker/api_op_DescribeWorldGenerationJob.go +++ b/service/robomaker/api_op_DescribeWorldGenerationJob.go @@ -73,7 +73,7 @@ type DescribeWorldGenerationJobOutput struct { // A map that contains tag keys and tag values that are attached to the world // generation job. - Tags map[string]*string + Tags map[string]string // The Amazon Resource Name (arn) of the world template. Template *string diff --git a/service/robomaker/api_op_DescribeWorldTemplate.go b/service/robomaker/api_op_DescribeWorldTemplate.go index 453b1364368..22b3afd609d 100644 --- a/service/robomaker/api_op_DescribeWorldTemplate.go +++ b/service/robomaker/api_op_DescribeWorldTemplate.go @@ -56,7 +56,7 @@ type DescribeWorldTemplateOutput struct { // A map that contains tag keys and tag values that are attached to the world // template. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_ListDeploymentJobs.go b/service/robomaker/api_op_ListDeploymentJobs.go index b573cab055f..bbcf01d12e9 100644 --- a/service/robomaker/api_op_ListDeploymentJobs.go +++ b/service/robomaker/api_op_ListDeploymentJobs.go @@ -35,7 +35,7 @@ type ListDeploymentJobsInput struct { // You can use up to three filters, but they must be for the same named item. For // example, if you are looking for items with the status InProgress or the status // Pending. - Filters []*types.Filter + Filters []types.Filter // When this parameter is used, ListDeploymentJobs only returns maxResults results // in a single page along with a nextToken response element. The remaining results @@ -56,7 +56,7 @@ type ListDeploymentJobsInput struct { type ListDeploymentJobsOutput struct { // A list of deployment jobs that meet the criteria of the request. - DeploymentJobs []*types.DeploymentJob + DeploymentJobs []types.DeploymentJob // If the previous paginated request did not return all of the remaining results, // the response object's nextToken parameter value is set to a token. To retrieve diff --git a/service/robomaker/api_op_ListFleets.go b/service/robomaker/api_op_ListFleets.go index 8520343412e..38bfb198906 100644 --- a/service/robomaker/api_op_ListFleets.go +++ b/service/robomaker/api_op_ListFleets.go @@ -33,7 +33,7 @@ type ListFleetsInput struct { // Optional filters to limit results. The filter name name is supported. When // filtering, you must use the complete value of the filtered item. You can use up // to three filters. - Filters []*types.Filter + Filters []types.Filter // When this parameter is used, ListFleets only returns maxResults results in a // single page along with a nextToken response element. The remaining results of @@ -56,7 +56,7 @@ type ListFleetsInput struct { type ListFleetsOutput struct { // A list of fleet details meeting the request criteria. - FleetDetails []*types.Fleet + FleetDetails []types.Fleet // If the previous paginated request did not return all of the remaining results, // the response object's nextToken parameter value is set to a token. To retrieve diff --git a/service/robomaker/api_op_ListRobotApplications.go b/service/robomaker/api_op_ListRobotApplications.go index da40a6860ea..9753cd71f37 100644 --- a/service/robomaker/api_op_ListRobotApplications.go +++ b/service/robomaker/api_op_ListRobotApplications.go @@ -33,7 +33,7 @@ type ListRobotApplicationsInput struct { // Optional filters to limit results. The filter name name is supported. When // filtering, you must use the complete value of the filtered item. You can use up // to three filters. - Filters []*types.Filter + Filters []types.Filter // When this parameter is used, ListRobotApplications only returns maxResults // results in a single page along with a nextToken response element. The remaining @@ -64,7 +64,7 @@ type ListRobotApplicationsOutput struct { NextToken *string // A list of robot application summaries that meet the criteria of the request. - RobotApplicationSummaries []*types.RobotApplicationSummary + RobotApplicationSummaries []types.RobotApplicationSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_ListRobots.go b/service/robomaker/api_op_ListRobots.go index 207d1d00dee..08840a925f7 100644 --- a/service/robomaker/api_op_ListRobots.go +++ b/service/robomaker/api_op_ListRobots.go @@ -35,7 +35,7 @@ type ListRobotsInput struct { // You can use up to three filters, but they must be for the same named item. For // example, if you are looking for items with the status Registered or the status // Available. - Filters []*types.Filter + Filters []types.Filter // When this parameter is used, ListRobots only returns maxResults results in a // single page along with a nextToken response element. The remaining results of @@ -63,7 +63,7 @@ type ListRobotsOutput struct { NextToken *string // A list of robots that meet the criteria of the request. - Robots []*types.Robot + Robots []types.Robot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_ListSimulationApplications.go b/service/robomaker/api_op_ListSimulationApplications.go index 219390796f5..cc3b2164529 100644 --- a/service/robomaker/api_op_ListSimulationApplications.go +++ b/service/robomaker/api_op_ListSimulationApplications.go @@ -33,7 +33,7 @@ type ListSimulationApplicationsInput struct { // Optional list of filters to limit results. The filter name name is supported. // When filtering, you must use the complete value of the filtered item. You can // use up to three filters. - Filters []*types.Filter + Filters []types.Filter // When this parameter is used, ListSimulationApplications only returns maxResults // results in a single page along with a nextToken response element. The remaining @@ -66,7 +66,7 @@ type ListSimulationApplicationsOutput struct { // A list of simulation application summaries that meet the criteria of the // request. - SimulationApplicationSummaries []*types.SimulationApplicationSummary + SimulationApplicationSummaries []types.SimulationApplicationSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_ListSimulationJobBatches.go b/service/robomaker/api_op_ListSimulationJobBatches.go index 483065bc1e2..51c82d19d12 100644 --- a/service/robomaker/api_op_ListSimulationJobBatches.go +++ b/service/robomaker/api_op_ListSimulationJobBatches.go @@ -31,7 +31,7 @@ func (c *Client) ListSimulationJobBatches(ctx context.Context, params *ListSimul type ListSimulationJobBatchesInput struct { // Optional filters to limit results. - Filters []*types.Filter + Filters []types.Filter // When this parameter is used, ListSimulationJobBatches only returns maxResults // results in a single page along with a nextToken response element. The remaining @@ -57,7 +57,7 @@ type ListSimulationJobBatchesOutput struct { NextToken *string // A list of simulation job batch summaries. - SimulationJobBatchSummaries []*types.SimulationJobBatchSummary + SimulationJobBatchSummaries []types.SimulationJobBatchSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_ListSimulationJobs.go b/service/robomaker/api_op_ListSimulationJobs.go index 6b15e610399..18c4f171614 100644 --- a/service/robomaker/api_op_ListSimulationJobs.go +++ b/service/robomaker/api_op_ListSimulationJobs.go @@ -35,7 +35,7 @@ type ListSimulationJobsInput struct { // filtering, you must use the complete value of the filtered item. You can use up // to three filters, but they must be for the same named item. For example, if you // are looking for items with the status Preparing or the status Running. - Filters []*types.Filter + Filters []types.Filter // When this parameter is used, ListSimulationJobs only returns maxResults results // in a single page along with a nextToken response element. The remaining results @@ -58,7 +58,7 @@ type ListSimulationJobsOutput struct { // A list of simulation job summaries that meet the criteria of the request. // // This member is required. - SimulationJobSummaries []*types.SimulationJobSummary + SimulationJobSummaries []types.SimulationJobSummary // If the previous paginated request did not return all of the remaining results, // the response object's nextToken parameter value is set to a token. To retrieve diff --git a/service/robomaker/api_op_ListTagsForResource.go b/service/robomaker/api_op_ListTagsForResource.go index 6f45d91043c..dc43989ab32 100644 --- a/service/robomaker/api_op_ListTagsForResource.go +++ b/service/robomaker/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The list of all tags added to the specified resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_ListWorldExportJobs.go b/service/robomaker/api_op_ListWorldExportJobs.go index 2f99f4abce3..ddac24122b7 100644 --- a/service/robomaker/api_op_ListWorldExportJobs.go +++ b/service/robomaker/api_op_ListWorldExportJobs.go @@ -30,7 +30,7 @@ func (c *Client) ListWorldExportJobs(ctx context.Context, params *ListWorldExpor type ListWorldExportJobsInput struct { // Optional filters to limit results. You can use generationJobId and templateId. - Filters []*types.Filter + Filters []types.Filter // When this parameter is used, ListWorldExportJobs only returns maxResults results // in a single page along with a nextToken response element. The remaining results @@ -53,7 +53,7 @@ type ListWorldExportJobsOutput struct { // Summary information for world export jobs. // // This member is required. - WorldExportJobSummaries []*types.WorldExportJobSummary + WorldExportJobSummaries []types.WorldExportJobSummary // If the previous paginated request did not return all of the remaining results, // the response object's nextToken parameter value is set to a token. To retrieve diff --git a/service/robomaker/api_op_ListWorldGenerationJobs.go b/service/robomaker/api_op_ListWorldGenerationJobs.go index 4d88295c219..6ecc5c71ee7 100644 --- a/service/robomaker/api_op_ListWorldGenerationJobs.go +++ b/service/robomaker/api_op_ListWorldGenerationJobs.go @@ -30,7 +30,7 @@ func (c *Client) ListWorldGenerationJobs(ctx context.Context, params *ListWorldG type ListWorldGenerationJobsInput struct { // Optional filters to limit results. You can use status and templateId. - Filters []*types.Filter + Filters []types.Filter // When this parameter is used, ListWorldGeneratorJobs only returns maxResults // results in a single page along with a nextToken response element. The remaining @@ -54,7 +54,7 @@ type ListWorldGenerationJobsOutput struct { // Summary information for world generator jobs. // // This member is required. - WorldGenerationJobSummaries []*types.WorldGenerationJobSummary + WorldGenerationJobSummaries []types.WorldGenerationJobSummary // If the previous paginated request did not return all of the remaining results, // the response object's nextToken parameter value is set to a token. To retrieve diff --git a/service/robomaker/api_op_ListWorldTemplates.go b/service/robomaker/api_op_ListWorldTemplates.go index 3d1ea63a391..d4a4f1b24f1 100644 --- a/service/robomaker/api_op_ListWorldTemplates.go +++ b/service/robomaker/api_op_ListWorldTemplates.go @@ -55,7 +55,7 @@ type ListWorldTemplatesOutput struct { NextToken *string // Summary information for templates. - TemplateSummaries []*types.TemplateSummary + TemplateSummaries []types.TemplateSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_ListWorlds.go b/service/robomaker/api_op_ListWorlds.go index 53ebfe8968e..cdce19ea84e 100644 --- a/service/robomaker/api_op_ListWorlds.go +++ b/service/robomaker/api_op_ListWorlds.go @@ -30,7 +30,7 @@ func (c *Client) ListWorlds(ctx context.Context, params *ListWorldsInput, optFns type ListWorldsInput struct { // Optional filters to limit results. You can use status. - Filters []*types.Filter + Filters []types.Filter // When this parameter is used, ListWorlds only returns maxResults results in a // single page along with a nextToken response element. The remaining results of @@ -58,7 +58,7 @@ type ListWorldsOutput struct { NextToken *string // Summary information for worlds. - WorldSummaries []*types.WorldSummary + WorldSummaries []types.WorldSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_StartSimulationJobBatch.go b/service/robomaker/api_op_StartSimulationJobBatch.go index 46fb0f15072..6cf56fb9bdd 100644 --- a/service/robomaker/api_op_StartSimulationJobBatch.go +++ b/service/robomaker/api_op_StartSimulationJobBatch.go @@ -35,7 +35,7 @@ type StartSimulationJobBatchInput struct { // A list of simulation job requests to create in the batch. // // This member is required. - CreateSimulationJobRequests []*types.SimulationJobRequest + CreateSimulationJobRequests []types.SimulationJobRequest // The batch policy. BatchPolicy *types.BatchPolicy @@ -46,7 +46,7 @@ type StartSimulationJobBatchInput struct { // A map that contains tag keys and tag values that are attached to the deployment // job batch. - Tags map[string]*string + Tags map[string]string } type StartSimulationJobBatchOutput struct { @@ -66,11 +66,11 @@ type StartSimulationJobBatchOutput struct { CreatedAt *time.Time // A list of created simulation job request summaries. - CreatedRequests []*types.SimulationJobSummary + CreatedRequests []types.SimulationJobSummary // A list of failed simulation job requests. The request failed to be created into // a simulation job. Failed requests do not have a simulation job ID. - FailedRequests []*types.FailedCreateSimulationJobRequest + FailedRequests []types.FailedCreateSimulationJobRequest // The failure code if the simulation job batch failed. FailureCode types.SimulationJobBatchErrorCode @@ -80,7 +80,7 @@ type StartSimulationJobBatchOutput struct { // A list of pending simulation job requests. These requests have not yet been // created into simulation jobs. - PendingRequests []*types.SimulationJobRequest + PendingRequests []types.SimulationJobRequest // The status of the simulation job batch. Pending The simulation job batch request // is pending. InProgress The simulation job batch is in progress. Failed The @@ -102,7 +102,7 @@ type StartSimulationJobBatchOutput struct { // A map that contains tag keys and tag values that are attached to the deployment // job batch. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/robomaker/api_op_SyncDeploymentJob.go b/service/robomaker/api_op_SyncDeploymentJob.go index 518084cc907..ee0db225799 100644 --- a/service/robomaker/api_op_SyncDeploymentJob.go +++ b/service/robomaker/api_op_SyncDeploymentJob.go @@ -53,7 +53,7 @@ type SyncDeploymentJobOutput struct { CreatedAt *time.Time // Information about the deployment application configurations. - DeploymentApplicationConfigs []*types.DeploymentApplicationConfig + DeploymentApplicationConfigs []types.DeploymentApplicationConfig // Information about the deployment configuration. DeploymentConfig *types.DeploymentConfig diff --git a/service/robomaker/api_op_TagResource.go b/service/robomaker/api_op_TagResource.go index 3a82455cd89..94554a16fa7 100644 --- a/service/robomaker/api_op_TagResource.go +++ b/service/robomaker/api_op_TagResource.go @@ -41,7 +41,7 @@ type TagResourceInput struct { // A map that contains tag keys and tag values that are attached to the resource. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/robomaker/api_op_UntagResource.go b/service/robomaker/api_op_UntagResource.go index 4d0da36a5bd..537bc370e14 100644 --- a/service/robomaker/api_op_UntagResource.go +++ b/service/robomaker/api_op_UntagResource.go @@ -41,7 +41,7 @@ type UntagResourceInput struct { // resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/robomaker/api_op_UpdateRobotApplication.go b/service/robomaker/api_op_UpdateRobotApplication.go index e8923d74cda..923af829055 100644 --- a/service/robomaker/api_op_UpdateRobotApplication.go +++ b/service/robomaker/api_op_UpdateRobotApplication.go @@ -43,7 +43,7 @@ type UpdateRobotApplicationInput struct { // The sources of the robot application. // // This member is required. - Sources []*types.SourceConfig + Sources []types.SourceConfig // The revision id for the robot application. CurrentRevisionId *string @@ -68,7 +68,7 @@ type UpdateRobotApplicationOutput struct { RobotSoftwareSuite *types.RobotSoftwareSuite // The sources of the robot application. - Sources []*types.Source + Sources []types.Source // The version of the robot application. Version *string diff --git a/service/robomaker/api_op_UpdateSimulationApplication.go b/service/robomaker/api_op_UpdateSimulationApplication.go index 9f5781ab8a8..d53704b1554 100644 --- a/service/robomaker/api_op_UpdateSimulationApplication.go +++ b/service/robomaker/api_op_UpdateSimulationApplication.go @@ -48,7 +48,7 @@ type UpdateSimulationApplicationInput struct { // The sources of the simulation application. // // This member is required. - Sources []*types.SourceConfig + Sources []types.SourceConfig // The revision id for the robot application. CurrentRevisionId *string @@ -82,7 +82,7 @@ type UpdateSimulationApplicationOutput struct { SimulationSoftwareSuite *types.SimulationSoftwareSuite // The sources of the simulation application. - Sources []*types.Source + Sources []types.Source // The version of the robot application. Version *string diff --git a/service/robomaker/deserializers.go b/service/robomaker/deserializers.go index 7ed7374147f..303f727d057 100644 --- a/service/robomaker/deserializers.go +++ b/service/robomaker/deserializers.go @@ -950,7 +950,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentJobOutput(v **CreateDeplo if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -991,7 +991,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentJobOutput(v **CreateDeplo if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "fleet": @@ -1000,7 +1000,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentJobOutput(v **CreateDeplo if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Fleet = &jtv + sv.Fleet = ptr.String(jtv) } case "status": @@ -1174,7 +1174,7 @@ func awsRestjson1_deserializeOpDocumentCreateFleetOutput(v **CreateFleetOutput, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -1196,7 +1196,7 @@ func awsRestjson1_deserializeOpDocumentCreateFleetOutput(v **CreateFleetOutput, if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -1373,7 +1373,7 @@ func awsRestjson1_deserializeOpDocumentCreateRobotOutput(v **CreateRobotOutput, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -1395,7 +1395,7 @@ func awsRestjson1_deserializeOpDocumentCreateRobotOutput(v **CreateRobotOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.GreengrassGroupId = &jtv + sv.GreengrassGroupId = ptr.String(jtv) } case "name": @@ -1404,7 +1404,7 @@ func awsRestjson1_deserializeOpDocumentCreateRobotOutput(v **CreateRobotOutput, if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -1575,7 +1575,7 @@ func awsRestjson1_deserializeOpDocumentCreateRobotApplicationOutput(v **CreateRo if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "lastUpdatedAt": @@ -1597,7 +1597,7 @@ func awsRestjson1_deserializeOpDocumentCreateRobotApplicationOutput(v **CreateRo if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "revisionId": @@ -1606,7 +1606,7 @@ func awsRestjson1_deserializeOpDocumentCreateRobotApplicationOutput(v **CreateRo if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "robotSoftwareSuite": @@ -1630,7 +1630,7 @@ func awsRestjson1_deserializeOpDocumentCreateRobotApplicationOutput(v **CreateRo if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -1793,7 +1793,7 @@ func awsRestjson1_deserializeOpDocumentCreateRobotApplicationVersionOutput(v **C if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "lastUpdatedAt": @@ -1815,7 +1815,7 @@ func awsRestjson1_deserializeOpDocumentCreateRobotApplicationVersionOutput(v **C if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "revisionId": @@ -1824,7 +1824,7 @@ func awsRestjson1_deserializeOpDocumentCreateRobotApplicationVersionOutput(v **C if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "robotSoftwareSuite": @@ -1843,7 +1843,7 @@ func awsRestjson1_deserializeOpDocumentCreateRobotApplicationVersionOutput(v **C if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -2009,7 +2009,7 @@ func awsRestjson1_deserializeOpDocumentCreateSimulationApplicationOutput(v **Cre if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "lastUpdatedAt": @@ -2031,7 +2031,7 @@ func awsRestjson1_deserializeOpDocumentCreateSimulationApplicationOutput(v **Cre if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "renderingEngine": @@ -2045,7 +2045,7 @@ func awsRestjson1_deserializeOpDocumentCreateSimulationApplicationOutput(v **Cre if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "robotSoftwareSuite": @@ -2074,7 +2074,7 @@ func awsRestjson1_deserializeOpDocumentCreateSimulationApplicationOutput(v **Cre if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -2237,7 +2237,7 @@ func awsRestjson1_deserializeOpDocumentCreateSimulationApplicationVersionOutput( if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "lastUpdatedAt": @@ -2259,7 +2259,7 @@ func awsRestjson1_deserializeOpDocumentCreateSimulationApplicationVersionOutput( if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "renderingEngine": @@ -2273,7 +2273,7 @@ func awsRestjson1_deserializeOpDocumentCreateSimulationApplicationVersionOutput( if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "robotSoftwareSuite": @@ -2297,7 +2297,7 @@ func awsRestjson1_deserializeOpDocumentCreateSimulationApplicationVersionOutput( if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -2466,7 +2466,7 @@ func awsRestjson1_deserializeOpDocumentCreateSimulationJobOutput(v **CreateSimul if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "clientRequestToken": @@ -2475,7 +2475,7 @@ func awsRestjson1_deserializeOpDocumentCreateSimulationJobOutput(v **CreateSimul if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "compute": @@ -2512,7 +2512,7 @@ func awsRestjson1_deserializeOpDocumentCreateSimulationJobOutput(v **CreateSimul if !ok { return fmt.Errorf("expected IamRole to be of type string, got %T instead", value) } - sv.IamRole = &jtv + sv.IamRole = ptr.String(jtv) } case "lastStartedAt": @@ -2556,7 +2556,7 @@ func awsRestjson1_deserializeOpDocumentCreateSimulationJobOutput(v **CreateSimul if err != nil { return err } - sv.MaxJobDurationInSeconds = &i64 + sv.MaxJobDurationInSeconds = i64 } case "outputLocation": @@ -2584,7 +2584,7 @@ func awsRestjson1_deserializeOpDocumentCreateSimulationJobOutput(v **CreateSimul if err != nil { return err } - sv.SimulationTimeMillis = &i64 + sv.SimulationTimeMillis = i64 } case "status": @@ -2769,7 +2769,7 @@ func awsRestjson1_deserializeOpDocumentCreateWorldExportJobOutput(v **CreateWorl if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "clientRequestToken": @@ -2778,7 +2778,7 @@ func awsRestjson1_deserializeOpDocumentCreateWorldExportJobOutput(v **CreateWorl if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "createdAt": @@ -2809,7 +2809,7 @@ func awsRestjson1_deserializeOpDocumentCreateWorldExportJobOutput(v **CreateWorl if !ok { return fmt.Errorf("expected IamRole to be of type string, got %T instead", value) } - sv.IamRole = &jtv + sv.IamRole = ptr.String(jtv) } case "outputLocation": @@ -2997,7 +2997,7 @@ func awsRestjson1_deserializeOpDocumentCreateWorldGenerationJobOutput(v **Create if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "clientRequestToken": @@ -3006,7 +3006,7 @@ func awsRestjson1_deserializeOpDocumentCreateWorldGenerationJobOutput(v **Create if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "createdAt": @@ -3051,7 +3051,7 @@ func awsRestjson1_deserializeOpDocumentCreateWorldGenerationJobOutput(v **Create if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Template = &jtv + sv.Template = ptr.String(jtv) } case "worldCount": @@ -3222,7 +3222,7 @@ func awsRestjson1_deserializeOpDocumentCreateWorldTemplateOutput(v **CreateWorld if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "clientRequestToken": @@ -3231,7 +3231,7 @@ func awsRestjson1_deserializeOpDocumentCreateWorldTemplateOutput(v **CreateWorld if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "createdAt": @@ -3253,7 +3253,7 @@ func awsRestjson1_deserializeOpDocumentCreateWorldTemplateOutput(v **CreateWorld if !ok { return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -3866,7 +3866,7 @@ func awsRestjson1_deserializeOpDocumentDeregisterRobotOutput(v **DeregisterRobot if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Fleet = &jtv + sv.Fleet = ptr.String(jtv) } case "robot": @@ -3875,7 +3875,7 @@ func awsRestjson1_deserializeOpDocumentDeregisterRobotOutput(v **DeregisterRobot if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Robot = &jtv + sv.Robot = ptr.String(jtv) } default: @@ -4035,7 +4035,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDeploymentJobOutput(v **DescribeD if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -4076,7 +4076,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDeploymentJobOutput(v **DescribeD if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "fleet": @@ -4085,7 +4085,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDeploymentJobOutput(v **DescribeD if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Fleet = &jtv + sv.Fleet = ptr.String(jtv) } case "robotDeploymentSummary": @@ -4264,7 +4264,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFleetOutput(v **DescribeFleetOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -4286,7 +4286,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFleetOutput(v **DescribeFleetOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.LastDeploymentJob = &jtv + sv.LastDeploymentJob = ptr.String(jtv) } case "lastDeploymentStatus": @@ -4317,7 +4317,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFleetOutput(v **DescribeFleetOutp if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "robots": @@ -4496,7 +4496,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRobotOutput(v **DescribeRobotOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -4518,7 +4518,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRobotOutput(v **DescribeRobotOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.FleetArn = &jtv + sv.FleetArn = ptr.String(jtv) } case "greengrassGroupId": @@ -4527,7 +4527,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRobotOutput(v **DescribeRobotOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.GreengrassGroupId = &jtv + sv.GreengrassGroupId = ptr.String(jtv) } case "lastDeploymentJob": @@ -4536,7 +4536,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRobotOutput(v **DescribeRobotOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.LastDeploymentJob = &jtv + sv.LastDeploymentJob = ptr.String(jtv) } case "lastDeploymentTime": @@ -4558,7 +4558,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRobotOutput(v **DescribeRobotOutp if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -4732,7 +4732,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRobotApplicationOutput(v **Descri if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "lastUpdatedAt": @@ -4754,7 +4754,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRobotApplicationOutput(v **Descri if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "revisionId": @@ -4763,7 +4763,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRobotApplicationOutput(v **Descri if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "robotSoftwareSuite": @@ -4787,7 +4787,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRobotApplicationOutput(v **Descri if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -4947,7 +4947,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationApplicationOutput(v **D if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "lastUpdatedAt": @@ -4969,7 +4969,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationApplicationOutput(v **D if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "renderingEngine": @@ -4983,7 +4983,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationApplicationOutput(v **D if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "robotSoftwareSuite": @@ -5012,7 +5012,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationApplicationOutput(v **D if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -5172,7 +5172,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationJobOutput(v **DescribeS if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "clientRequestToken": @@ -5181,7 +5181,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationJobOutput(v **DescribeS if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "compute": @@ -5218,7 +5218,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationJobOutput(v **DescribeS if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "iamRole": @@ -5227,7 +5227,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationJobOutput(v **DescribeS if !ok { return fmt.Errorf("expected IamRole to be of type string, got %T instead", value) } - sv.IamRole = &jtv + sv.IamRole = ptr.String(jtv) } case "lastStartedAt": @@ -5271,7 +5271,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationJobOutput(v **DescribeS if err != nil { return err } - sv.MaxJobDurationInSeconds = &i64 + sv.MaxJobDurationInSeconds = i64 } case "name": @@ -5280,7 +5280,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationJobOutput(v **DescribeS if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "networkInterface": @@ -5313,7 +5313,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationJobOutput(v **DescribeS if err != nil { return err } - sv.SimulationTimeMillis = &i64 + sv.SimulationTimeMillis = i64 } case "status": @@ -5489,7 +5489,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationJobBatchOutput(v **Desc if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "batchPolicy": @@ -5503,7 +5503,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationJobBatchOutput(v **Desc if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "createdAt": @@ -5544,7 +5544,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSimulationJobBatchOutput(v **Desc if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "lastUpdatedAt": @@ -5736,7 +5736,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldOutput(v **DescribeWorldOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -5758,7 +5758,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldOutput(v **DescribeWorldOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.GenerationJob = &jtv + sv.GenerationJob = ptr.String(jtv) } case "tags": @@ -5772,7 +5772,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldOutput(v **DescribeWorldOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Template = &jtv + sv.Template = ptr.String(jtv) } default: @@ -5932,7 +5932,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldExportJobOutput(v **Describe if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "clientRequestToken": @@ -5941,7 +5941,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldExportJobOutput(v **Describe if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "createdAt": @@ -5972,7 +5972,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldExportJobOutput(v **Describe if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "iamRole": @@ -5981,7 +5981,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldExportJobOutput(v **Describe if !ok { return fmt.Errorf("expected IamRole to be of type string, got %T instead", value) } - sv.IamRole = &jtv + sv.IamRole = ptr.String(jtv) } case "outputLocation": @@ -6165,7 +6165,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldGenerationJobOutput(v **Desc if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "clientRequestToken": @@ -6174,7 +6174,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldGenerationJobOutput(v **Desc if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "createdAt": @@ -6205,7 +6205,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldGenerationJobOutput(v **Desc if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "finishedWorldsSummary": @@ -6233,7 +6233,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldGenerationJobOutput(v **Desc if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Template = &jtv + sv.Template = ptr.String(jtv) } case "worldCount": @@ -6398,7 +6398,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldTemplateOutput(v **DescribeW if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "clientRequestToken": @@ -6407,7 +6407,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldTemplateOutput(v **DescribeW if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "createdAt": @@ -6442,7 +6442,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWorldTemplateOutput(v **DescribeW if !ok { return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "tags": @@ -6607,7 +6607,7 @@ func awsRestjson1_deserializeOpDocumentGetWorldTemplateBodyOutput(v **GetWorldTe if !ok { return fmt.Errorf("expected Json to be of type string, got %T instead", value) } - sv.TemplateBody = &jtv + sv.TemplateBody = ptr.String(jtv) } default: @@ -6772,7 +6772,7 @@ func awsRestjson1_deserializeOpDocumentListDeploymentJobsOutput(v **ListDeployme if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6937,7 +6937,7 @@ func awsRestjson1_deserializeOpDocumentListFleetsOutput(v **ListFleetsOutput, va if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7094,7 +7094,7 @@ func awsRestjson1_deserializeOpDocumentListRobotApplicationsOutput(v **ListRobot if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "robotApplicationSummaries": @@ -7259,7 +7259,7 @@ func awsRestjson1_deserializeOpDocumentListRobotsOutput(v **ListRobotsOutput, va if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "robots": @@ -7421,7 +7421,7 @@ func awsRestjson1_deserializeOpDocumentListSimulationApplicationsOutput(v **List if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "simulationApplicationSummaries": @@ -7580,7 +7580,7 @@ func awsRestjson1_deserializeOpDocumentListSimulationJobBatchesOutput(v **ListSi if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "simulationJobBatchSummaries": @@ -7742,7 +7742,7 @@ func awsRestjson1_deserializeOpDocumentListSimulationJobsOutput(v **ListSimulati if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "simulationJobSummaries": @@ -8060,7 +8060,7 @@ func awsRestjson1_deserializeOpDocumentListWorldExportJobsOutput(v **ListWorldEx if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "worldExportJobSummaries": @@ -8222,7 +8222,7 @@ func awsRestjson1_deserializeOpDocumentListWorldGenerationJobsOutput(v **ListWor if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "worldGenerationJobSummaries": @@ -8384,7 +8384,7 @@ func awsRestjson1_deserializeOpDocumentListWorldsOutput(v **ListWorldsOutput, va if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "worldSummaries": @@ -8546,7 +8546,7 @@ func awsRestjson1_deserializeOpDocumentListWorldTemplatesOutput(v **ListWorldTem if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "templateSummaries": @@ -8714,7 +8714,7 @@ func awsRestjson1_deserializeOpDocumentRegisterRobotOutput(v **RegisterRobotOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Fleet = &jtv + sv.Fleet = ptr.String(jtv) } case "robot": @@ -8723,7 +8723,7 @@ func awsRestjson1_deserializeOpDocumentRegisterRobotOutput(v **RegisterRobotOutp if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Robot = &jtv + sv.Robot = ptr.String(jtv) } default: @@ -8981,7 +8981,7 @@ func awsRestjson1_deserializeOpDocumentStartSimulationJobBatchOutput(v **StartSi if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "batchPolicy": @@ -8995,7 +8995,7 @@ func awsRestjson1_deserializeOpDocumentStartSimulationJobBatchOutput(v **StartSi if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "createdAt": @@ -9036,7 +9036,7 @@ func awsRestjson1_deserializeOpDocumentStartSimulationJobBatchOutput(v **StartSi if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "pendingRequests": @@ -9224,7 +9224,7 @@ func awsRestjson1_deserializeOpDocumentSyncDeploymentJobOutput(v **SyncDeploymen if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -9265,7 +9265,7 @@ func awsRestjson1_deserializeOpDocumentSyncDeploymentJobOutput(v **SyncDeploymen if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "fleet": @@ -9274,7 +9274,7 @@ func awsRestjson1_deserializeOpDocumentSyncDeploymentJobOutput(v **SyncDeploymen if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Fleet = &jtv + sv.Fleet = ptr.String(jtv) } case "status": @@ -9630,7 +9630,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRobotApplicationOutput(v **UpdateRo if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "lastUpdatedAt": @@ -9652,7 +9652,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRobotApplicationOutput(v **UpdateRo if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "revisionId": @@ -9661,7 +9661,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRobotApplicationOutput(v **UpdateRo if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "robotSoftwareSuite": @@ -9680,7 +9680,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRobotApplicationOutput(v **UpdateRo if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -9843,7 +9843,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSimulationApplicationOutput(v **Upd if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "lastUpdatedAt": @@ -9865,7 +9865,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSimulationApplicationOutput(v **Upd if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "renderingEngine": @@ -9879,7 +9879,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSimulationApplicationOutput(v **Upd if !ok { return fmt.Errorf("expected RevisionId to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "robotSoftwareSuite": @@ -9903,7 +9903,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSimulationApplicationOutput(v **Upd if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -10063,7 +10063,7 @@ func awsRestjson1_deserializeOpDocumentUpdateWorldTemplateOutput(v **UpdateWorld if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -10098,7 +10098,7 @@ func awsRestjson1_deserializeOpDocumentUpdateWorldTemplateOutput(v **UpdateWorld if !ok { return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10434,7 +10434,7 @@ func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Respo return output } -func awsRestjson1_deserializeDocumentArns(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10447,21 +10447,21 @@ func awsRestjson1_deserializeDocumentArns(v *[]*string, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 + col = jtv } cv = append(cv, col) @@ -10515,7 +10515,7 @@ func awsRestjson1_deserializeDocumentBatchPolicy(v **types.BatchPolicy, value in if err != nil { return err } - sv.TimeoutInSeconds = &i64 + sv.TimeoutInSeconds = ptr.Int64(i64) } default: @@ -10643,7 +10643,7 @@ func awsRestjson1_deserializeDocumentConcurrentDeploymentException(v **types.Con if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10655,7 +10655,7 @@ func awsRestjson1_deserializeDocumentConcurrentDeploymentException(v **types.Con return nil } -func awsRestjson1_deserializeDocumentCreateSimulationJobRequests(v *[]*types.SimulationJobRequest, value interface{}) error { +func awsRestjson1_deserializeDocumentCreateSimulationJobRequests(v *[]types.SimulationJobRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10668,18 +10668,20 @@ func awsRestjson1_deserializeDocumentCreateSimulationJobRequests(v *[]*types.Sim return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SimulationJobRequest + var cv []types.SimulationJobRequest if *v == nil { - cv = []*types.SimulationJobRequest{} + cv = []types.SimulationJobRequest{} } else { cv = *v } for _, value := range shape { - var col *types.SimulationJobRequest - if err := awsRestjson1_deserializeDocumentSimulationJobRequest(&col, value); err != nil { + var col types.SimulationJobRequest + destAddr := &col + if err := awsRestjson1_deserializeDocumentSimulationJobRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10715,7 +10717,7 @@ func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "s3Bucket": @@ -10724,7 +10726,7 @@ func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value inte if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.S3Bucket = &jtv + sv.S3Bucket = ptr.String(jtv) } case "s3Keys": @@ -10769,7 +10771,7 @@ func awsRestjson1_deserializeDocumentDataSourceConfig(v **types.DataSourceConfig if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "s3Bucket": @@ -10778,7 +10780,7 @@ func awsRestjson1_deserializeDocumentDataSourceConfig(v **types.DataSourceConfig if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.S3Bucket = &jtv + sv.S3Bucket = ptr.String(jtv) } case "s3Keys": @@ -10795,7 +10797,7 @@ func awsRestjson1_deserializeDocumentDataSourceConfig(v **types.DataSourceConfig return nil } -func awsRestjson1_deserializeDocumentDataSourceConfigs(v *[]*types.DataSourceConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSourceConfigs(v *[]types.DataSourceConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10808,18 +10810,20 @@ func awsRestjson1_deserializeDocumentDataSourceConfigs(v *[]*types.DataSourceCon return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataSourceConfig + var cv []types.DataSourceConfig if *v == nil { - cv = []*types.DataSourceConfig{} + cv = []types.DataSourceConfig{} } else { cv = *v } for _, value := range shape { - var col *types.DataSourceConfig - if err := awsRestjson1_deserializeDocumentDataSourceConfig(&col, value); err != nil { + var col types.DataSourceConfig + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataSourceConfig(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10827,7 +10831,7 @@ func awsRestjson1_deserializeDocumentDataSourceConfigs(v *[]*types.DataSourceCon return nil } -func awsRestjson1_deserializeDocumentDataSourceNames(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSourceNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10840,21 +10844,21 @@ func awsRestjson1_deserializeDocumentDataSourceNames(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10863,7 +10867,7 @@ func awsRestjson1_deserializeDocumentDataSourceNames(v *[]*string, value interfa return nil } -func awsRestjson1_deserializeDocumentDataSources(v *[]*types.DataSource, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSources(v *[]types.DataSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10876,18 +10880,20 @@ func awsRestjson1_deserializeDocumentDataSources(v *[]*types.DataSource, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DataSource + var cv []types.DataSource if *v == nil { - cv = []*types.DataSource{} + cv = []types.DataSource{} } else { cv = *v } for _, value := range shape { - var col *types.DataSource - if err := awsRestjson1_deserializeDocumentDataSource(&col, value); err != nil { + var col types.DataSource + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10923,7 +10929,7 @@ func awsRestjson1_deserializeDocumentDeploymentApplicationConfig(v **types.Deplo if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Application = &jtv + sv.Application = ptr.String(jtv) } case "applicationVersion": @@ -10932,7 +10938,7 @@ func awsRestjson1_deserializeDocumentDeploymentApplicationConfig(v **types.Deplo if !ok { return fmt.Errorf("expected DeploymentVersion to be of type string, got %T instead", value) } - sv.ApplicationVersion = &jtv + sv.ApplicationVersion = ptr.String(jtv) } case "launchConfig": @@ -10949,7 +10955,7 @@ func awsRestjson1_deserializeDocumentDeploymentApplicationConfig(v **types.Deplo return nil } -func awsRestjson1_deserializeDocumentDeploymentApplicationConfigs(v *[]*types.DeploymentApplicationConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentDeploymentApplicationConfigs(v *[]types.DeploymentApplicationConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10962,18 +10968,20 @@ func awsRestjson1_deserializeDocumentDeploymentApplicationConfigs(v *[]*types.De return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeploymentApplicationConfig + var cv []types.DeploymentApplicationConfig if *v == nil { - cv = []*types.DeploymentApplicationConfig{} + cv = []types.DeploymentApplicationConfig{} } else { cv = *v } for _, value := range shape { - var col *types.DeploymentApplicationConfig - if err := awsRestjson1_deserializeDocumentDeploymentApplicationConfig(&col, value); err != nil { + var col types.DeploymentApplicationConfig + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeploymentApplicationConfig(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11044,7 +11052,7 @@ func awsRestjson1_deserializeDocumentDeploymentConfig(v **types.DeploymentConfig if err != nil { return err } - sv.RobotDeploymentTimeoutInSeconds = &i64 + sv.RobotDeploymentTimeoutInSeconds = ptr.Int64(i64) } default: @@ -11084,7 +11092,7 @@ func awsRestjson1_deserializeDocumentDeploymentJob(v **types.DeploymentJob, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -11125,7 +11133,7 @@ func awsRestjson1_deserializeDocumentDeploymentJob(v **types.DeploymentJob, valu if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "fleet": @@ -11134,7 +11142,7 @@ func awsRestjson1_deserializeDocumentDeploymentJob(v **types.DeploymentJob, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Fleet = &jtv + sv.Fleet = ptr.String(jtv) } case "status": @@ -11155,7 +11163,7 @@ func awsRestjson1_deserializeDocumentDeploymentJob(v **types.DeploymentJob, valu return nil } -func awsRestjson1_deserializeDocumentDeploymentJobs(v *[]*types.DeploymentJob, value interface{}) error { +func awsRestjson1_deserializeDocumentDeploymentJobs(v *[]types.DeploymentJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11168,18 +11176,20 @@ func awsRestjson1_deserializeDocumentDeploymentJobs(v *[]*types.DeploymentJob, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeploymentJob + var cv []types.DeploymentJob if *v == nil { - cv = []*types.DeploymentJob{} + cv = []types.DeploymentJob{} } else { cv = *v } for _, value := range shape { - var col *types.DeploymentJob - if err := awsRestjson1_deserializeDocumentDeploymentJob(&col, value); err != nil { + var col types.DeploymentJob + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeploymentJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11220,7 +11230,7 @@ func awsRestjson1_deserializeDocumentDeploymentLaunchConfig(v **types.Deployment if !ok { return fmt.Errorf("expected Command to be of type string, got %T instead", value) } - sv.LaunchFile = &jtv + sv.LaunchFile = ptr.String(jtv) } case "packageName": @@ -11229,7 +11239,7 @@ func awsRestjson1_deserializeDocumentDeploymentLaunchConfig(v **types.Deployment if !ok { return fmt.Errorf("expected Command to be of type string, got %T instead", value) } - sv.PackageName = &jtv + sv.PackageName = ptr.String(jtv) } case "postLaunchFile": @@ -11238,7 +11248,7 @@ func awsRestjson1_deserializeDocumentDeploymentLaunchConfig(v **types.Deployment if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.PostLaunchFile = &jtv + sv.PostLaunchFile = ptr.String(jtv) } case "preLaunchFile": @@ -11247,7 +11257,7 @@ func awsRestjson1_deserializeDocumentDeploymentLaunchConfig(v **types.Deployment if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.PreLaunchFile = &jtv + sv.PreLaunchFile = ptr.String(jtv) } default: @@ -11259,7 +11269,7 @@ func awsRestjson1_deserializeDocumentDeploymentLaunchConfig(v **types.Deployment return nil } -func awsRestjson1_deserializeDocumentEnvironmentVariableMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentEnvironmentVariableMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11272,21 +11282,21 @@ func awsRestjson1_deserializeDocumentEnvironmentVariableMap(v *map[string]*strin return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected EnvironmentVariableValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -11345,7 +11355,7 @@ func awsRestjson1_deserializeDocumentFailedCreateSimulationJobRequest(v **types. if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "request": @@ -11362,7 +11372,7 @@ func awsRestjson1_deserializeDocumentFailedCreateSimulationJobRequest(v **types. return nil } -func awsRestjson1_deserializeDocumentFailedCreateSimulationJobRequests(v *[]*types.FailedCreateSimulationJobRequest, value interface{}) error { +func awsRestjson1_deserializeDocumentFailedCreateSimulationJobRequests(v *[]types.FailedCreateSimulationJobRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11375,18 +11385,20 @@ func awsRestjson1_deserializeDocumentFailedCreateSimulationJobRequests(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedCreateSimulationJobRequest + var cv []types.FailedCreateSimulationJobRequest if *v == nil { - cv = []*types.FailedCreateSimulationJobRequest{} + cv = []types.FailedCreateSimulationJobRequest{} } else { cv = *v } for _, value := range shape { - var col *types.FailedCreateSimulationJobRequest - if err := awsRestjson1_deserializeDocumentFailedCreateSimulationJobRequest(&col, value); err != nil { + var col types.FailedCreateSimulationJobRequest + destAddr := &col + if err := awsRestjson1_deserializeDocumentFailedCreateSimulationJobRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11431,7 +11443,7 @@ func awsRestjson1_deserializeDocumentFailureSummary(v **types.FailureSummary, va if err != nil { return err } - sv.TotalFailureCount = ptr.Int32(int32(i64)) + sv.TotalFailureCount = int32(i64) } default: @@ -11480,7 +11492,7 @@ func awsRestjson1_deserializeDocumentFinishedWorldsSummary(v **types.FinishedWor if err != nil { return err } - sv.FinishedCount = ptr.Int32(int32(i64)) + sv.FinishedCount = int32(i64) } case "succeededWorlds": @@ -11525,7 +11537,7 @@ func awsRestjson1_deserializeDocumentFleet(v **types.Fleet, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -11547,7 +11559,7 @@ func awsRestjson1_deserializeDocumentFleet(v **types.Fleet, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.LastDeploymentJob = &jtv + sv.LastDeploymentJob = ptr.String(jtv) } case "lastDeploymentStatus": @@ -11578,7 +11590,7 @@ func awsRestjson1_deserializeDocumentFleet(v **types.Fleet, value interface{}) e if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -11590,7 +11602,7 @@ func awsRestjson1_deserializeDocumentFleet(v **types.Fleet, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentFleets(v *[]*types.Fleet, value interface{}) error { +func awsRestjson1_deserializeDocumentFleets(v *[]types.Fleet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11603,18 +11615,20 @@ func awsRestjson1_deserializeDocumentFleets(v *[]*types.Fleet, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Fleet + var cv []types.Fleet if *v == nil { - cv = []*types.Fleet{} + cv = []types.Fleet{} } else { cv = *v } for _, value := range shape { - var col *types.Fleet - if err := awsRestjson1_deserializeDocumentFleet(&col, value); err != nil { + var col types.Fleet + destAddr := &col + if err := awsRestjson1_deserializeDocumentFleet(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11650,7 +11664,7 @@ func awsRestjson1_deserializeDocumentIdempotentParameterMismatchException(v **ty if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11690,7 +11704,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11730,7 +11744,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11775,7 +11789,7 @@ func awsRestjson1_deserializeDocumentLaunchConfig(v **types.LaunchConfig, value if !ok { return fmt.Errorf("expected Command to be of type string, got %T instead", value) } - sv.LaunchFile = &jtv + sv.LaunchFile = ptr.String(jtv) } case "packageName": @@ -11784,7 +11798,7 @@ func awsRestjson1_deserializeDocumentLaunchConfig(v **types.LaunchConfig, value if !ok { return fmt.Errorf("expected Command to be of type string, got %T instead", value) } - sv.PackageName = &jtv + sv.PackageName = ptr.String(jtv) } case "portForwardingConfig": @@ -11798,7 +11812,7 @@ func awsRestjson1_deserializeDocumentLaunchConfig(v **types.LaunchConfig, value if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.StreamUI = &jtv + sv.StreamUI = jtv } default: @@ -11838,7 +11852,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11878,7 +11892,7 @@ func awsRestjson1_deserializeDocumentLoggingConfig(v **types.LoggingConfig, valu if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.RecordAllRosTopics = &jtv + sv.RecordAllRosTopics = ptr.Bool(jtv) } default: @@ -11918,7 +11932,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.NetworkInterfaceId = &jtv + sv.NetworkInterfaceId = ptr.String(jtv) } case "privateIpAddress": @@ -11927,7 +11941,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.PrivateIpAddress = &jtv + sv.PrivateIpAddress = ptr.String(jtv) } case "publicIpAddress": @@ -11936,7 +11950,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.PublicIpAddress = &jtv + sv.PublicIpAddress = ptr.String(jtv) } default: @@ -11976,7 +11990,7 @@ func awsRestjson1_deserializeDocumentOutputLocation(v **types.OutputLocation, va if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.S3Bucket = &jtv + sv.S3Bucket = ptr.String(jtv) } case "s3Prefix": @@ -11985,7 +11999,7 @@ func awsRestjson1_deserializeDocumentOutputLocation(v **types.OutputLocation, va if !ok { return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.S3Prefix = &jtv + sv.S3Prefix = ptr.String(jtv) } default: @@ -12065,7 +12079,7 @@ func awsRestjson1_deserializeDocumentPortMapping(v **types.PortMapping, value in if err != nil { return err } - sv.ApplicationPort = ptr.Int32(int32(i64)) + sv.ApplicationPort = int32(i64) } case "enableOnPublicIp": @@ -12074,7 +12088,7 @@ func awsRestjson1_deserializeDocumentPortMapping(v **types.PortMapping, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableOnPublicIp = &jtv + sv.EnableOnPublicIp = jtv } case "jobPort": @@ -12087,7 +12101,7 @@ func awsRestjson1_deserializeDocumentPortMapping(v **types.PortMapping, value in if err != nil { return err } - sv.JobPort = ptr.Int32(int32(i64)) + sv.JobPort = int32(i64) } default: @@ -12099,7 +12113,7 @@ func awsRestjson1_deserializeDocumentPortMapping(v **types.PortMapping, value in return nil } -func awsRestjson1_deserializeDocumentPortMappingList(v *[]*types.PortMapping, value interface{}) error { +func awsRestjson1_deserializeDocumentPortMappingList(v *[]types.PortMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12112,18 +12126,20 @@ func awsRestjson1_deserializeDocumentPortMappingList(v *[]*types.PortMapping, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PortMapping + var cv []types.PortMapping if *v == nil { - cv = []*types.PortMapping{} + cv = []types.PortMapping{} } else { cv = *v } for _, value := range shape { - var col *types.PortMapping - if err := awsRestjson1_deserializeDocumentPortMapping(&col, value); err != nil { + var col types.PortMapping + destAddr := &col + if err := awsRestjson1_deserializeDocumentPortMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12194,7 +12210,7 @@ func awsRestjson1_deserializeDocumentProgressDetail(v **types.ProgressDetail, va if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.TargetResource = &jtv + sv.TargetResource = ptr.String(jtv) } default: @@ -12243,7 +12259,7 @@ func awsRestjson1_deserializeDocumentRenderingEngine(v **types.RenderingEngine, if !ok { return fmt.Errorf("expected RenderingEngineVersionType to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -12283,7 +12299,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12323,7 +12339,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -12372,7 +12388,7 @@ func awsRestjson1_deserializeDocumentRobot(v **types.Robot, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -12394,7 +12410,7 @@ func awsRestjson1_deserializeDocumentRobot(v **types.Robot, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.FleetArn = &jtv + sv.FleetArn = ptr.String(jtv) } case "greenGrassGroupId": @@ -12403,7 +12419,7 @@ func awsRestjson1_deserializeDocumentRobot(v **types.Robot, value interface{}) e if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.GreenGrassGroupId = &jtv + sv.GreenGrassGroupId = ptr.String(jtv) } case "lastDeploymentJob": @@ -12412,7 +12428,7 @@ func awsRestjson1_deserializeDocumentRobot(v **types.Robot, value interface{}) e if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.LastDeploymentJob = &jtv + sv.LastDeploymentJob = ptr.String(jtv) } case "lastDeploymentTime": @@ -12434,7 +12450,7 @@ func awsRestjson1_deserializeDocumentRobot(v **types.Robot, value interface{}) e if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -12483,7 +12499,7 @@ func awsRestjson1_deserializeDocumentRobotApplicationConfig(v **types.RobotAppli if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Application = &jtv + sv.Application = ptr.String(jtv) } case "applicationVersion": @@ -12492,7 +12508,7 @@ func awsRestjson1_deserializeDocumentRobotApplicationConfig(v **types.RobotAppli if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.ApplicationVersion = &jtv + sv.ApplicationVersion = ptr.String(jtv) } case "launchConfig": @@ -12509,7 +12525,7 @@ func awsRestjson1_deserializeDocumentRobotApplicationConfig(v **types.RobotAppli return nil } -func awsRestjson1_deserializeDocumentRobotApplicationConfigs(v *[]*types.RobotApplicationConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentRobotApplicationConfigs(v *[]types.RobotApplicationConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12522,18 +12538,20 @@ func awsRestjson1_deserializeDocumentRobotApplicationConfigs(v *[]*types.RobotAp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RobotApplicationConfig + var cv []types.RobotApplicationConfig if *v == nil { - cv = []*types.RobotApplicationConfig{} + cv = []types.RobotApplicationConfig{} } else { cv = *v } for _, value := range shape { - var col *types.RobotApplicationConfig - if err := awsRestjson1_deserializeDocumentRobotApplicationConfig(&col, value); err != nil { + var col types.RobotApplicationConfig + destAddr := &col + if err := awsRestjson1_deserializeDocumentRobotApplicationConfig(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12541,7 +12559,7 @@ func awsRestjson1_deserializeDocumentRobotApplicationConfigs(v *[]*types.RobotAp return nil } -func awsRestjson1_deserializeDocumentRobotApplicationNames(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentRobotApplicationNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12554,21 +12572,21 @@ func awsRestjson1_deserializeDocumentRobotApplicationNames(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -12577,7 +12595,7 @@ func awsRestjson1_deserializeDocumentRobotApplicationNames(v *[]*string, value i return nil } -func awsRestjson1_deserializeDocumentRobotApplicationSummaries(v *[]*types.RobotApplicationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentRobotApplicationSummaries(v *[]types.RobotApplicationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12590,18 +12608,20 @@ func awsRestjson1_deserializeDocumentRobotApplicationSummaries(v *[]*types.Robot return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RobotApplicationSummary + var cv []types.RobotApplicationSummary if *v == nil { - cv = []*types.RobotApplicationSummary{} + cv = []types.RobotApplicationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RobotApplicationSummary - if err := awsRestjson1_deserializeDocumentRobotApplicationSummary(&col, value); err != nil { + var col types.RobotApplicationSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentRobotApplicationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12637,7 +12657,7 @@ func awsRestjson1_deserializeDocumentRobotApplicationSummary(v **types.RobotAppl if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "lastUpdatedAt": @@ -12659,7 +12679,7 @@ func awsRestjson1_deserializeDocumentRobotApplicationSummary(v **types.RobotAppl if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "robotSoftwareSuite": @@ -12673,7 +12693,7 @@ func awsRestjson1_deserializeDocumentRobotApplicationSummary(v **types.RobotAppl if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -12713,7 +12733,7 @@ func awsRestjson1_deserializeDocumentRobotDeployment(v **types.RobotDeployment, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "deploymentFinishTime": @@ -12757,7 +12777,7 @@ func awsRestjson1_deserializeDocumentRobotDeployment(v **types.RobotDeployment, if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "progressDetail": @@ -12783,7 +12803,7 @@ func awsRestjson1_deserializeDocumentRobotDeployment(v **types.RobotDeployment, return nil } -func awsRestjson1_deserializeDocumentRobotDeploymentSummary(v *[]*types.RobotDeployment, value interface{}) error { +func awsRestjson1_deserializeDocumentRobotDeploymentSummary(v *[]types.RobotDeployment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12796,18 +12816,20 @@ func awsRestjson1_deserializeDocumentRobotDeploymentSummary(v *[]*types.RobotDep return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RobotDeployment + var cv []types.RobotDeployment if *v == nil { - cv = []*types.RobotDeployment{} + cv = []types.RobotDeployment{} } else { cv = *v } for _, value := range shape { - var col *types.RobotDeployment - if err := awsRestjson1_deserializeDocumentRobotDeployment(&col, value); err != nil { + var col types.RobotDeployment + destAddr := &col + if err := awsRestjson1_deserializeDocumentRobotDeployment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12815,7 +12837,7 @@ func awsRestjson1_deserializeDocumentRobotDeploymentSummary(v *[]*types.RobotDep return nil } -func awsRestjson1_deserializeDocumentRobots(v *[]*types.Robot, value interface{}) error { +func awsRestjson1_deserializeDocumentRobots(v *[]types.Robot, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12828,18 +12850,20 @@ func awsRestjson1_deserializeDocumentRobots(v *[]*types.Robot, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Robot + var cv []types.Robot if *v == nil { - cv = []*types.Robot{} + cv = []types.Robot{} } else { cv = *v } for _, value := range shape { - var col *types.Robot - if err := awsRestjson1_deserializeDocumentRobot(&col, value); err != nil { + var col types.Robot + destAddr := &col + if err := awsRestjson1_deserializeDocumentRobot(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12924,7 +12948,7 @@ func awsRestjson1_deserializeDocumentS3KeyOutput(v **types.S3KeyOutput, value in if !ok { return fmt.Errorf("expected S3Etag to be of type string, got %T instead", value) } - sv.Etag = &jtv + sv.Etag = ptr.String(jtv) } case "s3Key": @@ -12933,7 +12957,7 @@ func awsRestjson1_deserializeDocumentS3KeyOutput(v **types.S3KeyOutput, value in if !ok { return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.S3Key = &jtv + sv.S3Key = ptr.String(jtv) } default: @@ -12945,7 +12969,7 @@ func awsRestjson1_deserializeDocumentS3KeyOutput(v **types.S3KeyOutput, value in return nil } -func awsRestjson1_deserializeDocumentS3KeyOutputs(v *[]*types.S3KeyOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentS3KeyOutputs(v *[]types.S3KeyOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12958,18 +12982,20 @@ func awsRestjson1_deserializeDocumentS3KeyOutputs(v *[]*types.S3KeyOutput, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.S3KeyOutput + var cv []types.S3KeyOutput if *v == nil { - cv = []*types.S3KeyOutput{} + cv = []types.S3KeyOutput{} } else { cv = *v } for _, value := range shape { - var col *types.S3KeyOutput - if err := awsRestjson1_deserializeDocumentS3KeyOutput(&col, value); err != nil { + var col types.S3KeyOutput + destAddr := &col + if err := awsRestjson1_deserializeDocumentS3KeyOutput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12977,7 +13003,7 @@ func awsRestjson1_deserializeDocumentS3KeyOutputs(v *[]*types.S3KeyOutput, value return nil } -func awsRestjson1_deserializeDocumentS3Keys(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentS3Keys(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12990,21 +13016,21 @@ func awsRestjson1_deserializeDocumentS3Keys(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -13041,7 +13067,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "etag": @@ -13050,7 +13076,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected S3Etag to be of type string, got %T instead", value) } - sv.Etag = &jtv + sv.Etag = ptr.String(jtv) } case "key": @@ -13059,7 +13085,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } default: @@ -13071,7 +13097,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac return nil } -func awsRestjson1_deserializeDocumentSecurityGroups(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityGroups(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13084,21 +13110,21 @@ func awsRestjson1_deserializeDocumentSecurityGroups(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -13135,7 +13161,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13175,7 +13201,7 @@ func awsRestjson1_deserializeDocumentSimulationApplicationConfig(v **types.Simul if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Application = &jtv + sv.Application = ptr.String(jtv) } case "applicationVersion": @@ -13184,7 +13210,7 @@ func awsRestjson1_deserializeDocumentSimulationApplicationConfig(v **types.Simul if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.ApplicationVersion = &jtv + sv.ApplicationVersion = ptr.String(jtv) } case "launchConfig": @@ -13206,7 +13232,7 @@ func awsRestjson1_deserializeDocumentSimulationApplicationConfig(v **types.Simul return nil } -func awsRestjson1_deserializeDocumentSimulationApplicationConfigs(v *[]*types.SimulationApplicationConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentSimulationApplicationConfigs(v *[]types.SimulationApplicationConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13219,18 +13245,20 @@ func awsRestjson1_deserializeDocumentSimulationApplicationConfigs(v *[]*types.Si return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SimulationApplicationConfig + var cv []types.SimulationApplicationConfig if *v == nil { - cv = []*types.SimulationApplicationConfig{} + cv = []types.SimulationApplicationConfig{} } else { cv = *v } for _, value := range shape { - var col *types.SimulationApplicationConfig - if err := awsRestjson1_deserializeDocumentSimulationApplicationConfig(&col, value); err != nil { + var col types.SimulationApplicationConfig + destAddr := &col + if err := awsRestjson1_deserializeDocumentSimulationApplicationConfig(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13238,7 +13266,7 @@ func awsRestjson1_deserializeDocumentSimulationApplicationConfigs(v *[]*types.Si return nil } -func awsRestjson1_deserializeDocumentSimulationApplicationNames(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSimulationApplicationNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13251,21 +13279,21 @@ func awsRestjson1_deserializeDocumentSimulationApplicationNames(v *[]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -13274,7 +13302,7 @@ func awsRestjson1_deserializeDocumentSimulationApplicationNames(v *[]*string, va return nil } -func awsRestjson1_deserializeDocumentSimulationApplicationSummaries(v *[]*types.SimulationApplicationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentSimulationApplicationSummaries(v *[]types.SimulationApplicationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13287,18 +13315,20 @@ func awsRestjson1_deserializeDocumentSimulationApplicationSummaries(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SimulationApplicationSummary + var cv []types.SimulationApplicationSummary if *v == nil { - cv = []*types.SimulationApplicationSummary{} + cv = []types.SimulationApplicationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SimulationApplicationSummary - if err := awsRestjson1_deserializeDocumentSimulationApplicationSummary(&col, value); err != nil { + var col types.SimulationApplicationSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentSimulationApplicationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13334,7 +13364,7 @@ func awsRestjson1_deserializeDocumentSimulationApplicationSummary(v **types.Simu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "lastUpdatedAt": @@ -13356,7 +13386,7 @@ func awsRestjson1_deserializeDocumentSimulationApplicationSummary(v **types.Simu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "robotSoftwareSuite": @@ -13375,7 +13405,7 @@ func awsRestjson1_deserializeDocumentSimulationApplicationSummary(v **types.Simu if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -13415,7 +13445,7 @@ func awsRestjson1_deserializeDocumentSimulationJob(v **types.SimulationJob, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "clientRequestToken": @@ -13424,7 +13454,7 @@ func awsRestjson1_deserializeDocumentSimulationJob(v **types.SimulationJob, valu if !ok { return fmt.Errorf("expected ClientRequestToken to be of type string, got %T instead", value) } - sv.ClientRequestToken = &jtv + sv.ClientRequestToken = ptr.String(jtv) } case "compute": @@ -13461,7 +13491,7 @@ func awsRestjson1_deserializeDocumentSimulationJob(v **types.SimulationJob, valu if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "iamRole": @@ -13470,7 +13500,7 @@ func awsRestjson1_deserializeDocumentSimulationJob(v **types.SimulationJob, valu if !ok { return fmt.Errorf("expected IamRole to be of type string, got %T instead", value) } - sv.IamRole = &jtv + sv.IamRole = ptr.String(jtv) } case "lastStartedAt": @@ -13514,7 +13544,7 @@ func awsRestjson1_deserializeDocumentSimulationJob(v **types.SimulationJob, valu if err != nil { return err } - sv.MaxJobDurationInSeconds = &i64 + sv.MaxJobDurationInSeconds = i64 } case "name": @@ -13523,7 +13553,7 @@ func awsRestjson1_deserializeDocumentSimulationJob(v **types.SimulationJob, valu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "networkInterface": @@ -13556,7 +13586,7 @@ func awsRestjson1_deserializeDocumentSimulationJob(v **types.SimulationJob, valu if err != nil { return err } - sv.SimulationTimeMillis = &i64 + sv.SimulationTimeMillis = i64 } case "status": @@ -13587,7 +13617,7 @@ func awsRestjson1_deserializeDocumentSimulationJob(v **types.SimulationJob, valu return nil } -func awsRestjson1_deserializeDocumentSimulationJobBatchSummaries(v *[]*types.SimulationJobBatchSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentSimulationJobBatchSummaries(v *[]types.SimulationJobBatchSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13600,18 +13630,20 @@ func awsRestjson1_deserializeDocumentSimulationJobBatchSummaries(v *[]*types.Sim return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SimulationJobBatchSummary + var cv []types.SimulationJobBatchSummary if *v == nil { - cv = []*types.SimulationJobBatchSummary{} + cv = []types.SimulationJobBatchSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SimulationJobBatchSummary - if err := awsRestjson1_deserializeDocumentSimulationJobBatchSummary(&col, value); err != nil { + var col types.SimulationJobBatchSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentSimulationJobBatchSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13647,7 +13679,7 @@ func awsRestjson1_deserializeDocumentSimulationJobBatchSummary(v **types.Simulat if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -13673,7 +13705,7 @@ func awsRestjson1_deserializeDocumentSimulationJobBatchSummary(v **types.Simulat if err != nil { return err } - sv.CreatedRequestCount = ptr.Int32(int32(i64)) + sv.CreatedRequestCount = int32(i64) } case "failedRequestCount": @@ -13686,7 +13718,7 @@ func awsRestjson1_deserializeDocumentSimulationJobBatchSummary(v **types.Simulat if err != nil { return err } - sv.FailedRequestCount = ptr.Int32(int32(i64)) + sv.FailedRequestCount = int32(i64) } case "lastUpdatedAt": @@ -13712,7 +13744,7 @@ func awsRestjson1_deserializeDocumentSimulationJobBatchSummary(v **types.Simulat if err != nil { return err } - sv.PendingRequestCount = ptr.Int32(int32(i64)) + sv.PendingRequestCount = int32(i64) } case "status": @@ -13780,7 +13812,7 @@ func awsRestjson1_deserializeDocumentSimulationJobRequest(v **types.SimulationJo if !ok { return fmt.Errorf("expected IamRole to be of type string, got %T instead", value) } - sv.IamRole = &jtv + sv.IamRole = ptr.String(jtv) } case "loggingConfig": @@ -13798,7 +13830,7 @@ func awsRestjson1_deserializeDocumentSimulationJobRequest(v **types.SimulationJo if err != nil { return err } - sv.MaxJobDurationInSeconds = &i64 + sv.MaxJobDurationInSeconds = i64 } case "outputLocation": @@ -13827,7 +13859,7 @@ func awsRestjson1_deserializeDocumentSimulationJobRequest(v **types.SimulationJo if !ok { return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value) } - sv.UseDefaultApplications = &jtv + sv.UseDefaultApplications = ptr.Bool(jtv) } case "vpcConfig": @@ -13844,7 +13876,7 @@ func awsRestjson1_deserializeDocumentSimulationJobRequest(v **types.SimulationJo return nil } -func awsRestjson1_deserializeDocumentSimulationJobs(v *[]*types.SimulationJob, value interface{}) error { +func awsRestjson1_deserializeDocumentSimulationJobs(v *[]types.SimulationJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13857,18 +13889,20 @@ func awsRestjson1_deserializeDocumentSimulationJobs(v *[]*types.SimulationJob, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SimulationJob + var cv []types.SimulationJob if *v == nil { - cv = []*types.SimulationJob{} + cv = []types.SimulationJob{} } else { cv = *v } for _, value := range shape { - var col *types.SimulationJob - if err := awsRestjson1_deserializeDocumentSimulationJob(&col, value); err != nil { + var col types.SimulationJob + destAddr := &col + if err := awsRestjson1_deserializeDocumentSimulationJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13876,7 +13910,7 @@ func awsRestjson1_deserializeDocumentSimulationJobs(v *[]*types.SimulationJob, v return nil } -func awsRestjson1_deserializeDocumentSimulationJobSummaries(v *[]*types.SimulationJobSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentSimulationJobSummaries(v *[]types.SimulationJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13889,18 +13923,20 @@ func awsRestjson1_deserializeDocumentSimulationJobSummaries(v *[]*types.Simulati return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SimulationJobSummary + var cv []types.SimulationJobSummary if *v == nil { - cv = []*types.SimulationJobSummary{} + cv = []types.SimulationJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SimulationJobSummary - if err := awsRestjson1_deserializeDocumentSimulationJobSummary(&col, value); err != nil { + var col types.SimulationJobSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentSimulationJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13936,7 +13972,7 @@ func awsRestjson1_deserializeDocumentSimulationJobSummary(v **types.SimulationJo if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "dataSourceNames": @@ -13963,7 +13999,7 @@ func awsRestjson1_deserializeDocumentSimulationJobSummary(v **types.SimulationJo if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "robotApplicationNames": @@ -14031,7 +14067,7 @@ func awsRestjson1_deserializeDocumentSimulationSoftwareSuite(v **types.Simulatio if !ok { return fmt.Errorf("expected SimulationSoftwareSuiteVersionType to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -14080,7 +14116,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected S3Etag to be of type string, got %T instead", value) } - sv.Etag = &jtv + sv.Etag = ptr.String(jtv) } case "s3Bucket": @@ -14089,7 +14125,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.S3Bucket = &jtv + sv.S3Bucket = ptr.String(jtv) } case "s3Key": @@ -14098,7 +14134,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if !ok { return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.S3Key = &jtv + sv.S3Key = ptr.String(jtv) } default: @@ -14110,7 +14146,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) return nil } -func awsRestjson1_deserializeDocumentSources(v *[]*types.Source, value interface{}) error { +func awsRestjson1_deserializeDocumentSources(v *[]types.Source, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14123,18 +14159,20 @@ func awsRestjson1_deserializeDocumentSources(v *[]*types.Source, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Source + var cv []types.Source if *v == nil { - cv = []*types.Source{} + cv = []types.Source{} } else { cv = *v } for _, value := range shape { - var col *types.Source - if err := awsRestjson1_deserializeDocumentSource(&col, value); err != nil { + var col types.Source + destAddr := &col + if err := awsRestjson1_deserializeDocumentSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14142,7 +14180,7 @@ func awsRestjson1_deserializeDocumentSources(v *[]*types.Source, value interface return nil } -func awsRestjson1_deserializeDocumentSubnets(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSubnets(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14155,21 +14193,21 @@ func awsRestjson1_deserializeDocumentSubnets(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14178,7 +14216,7 @@ func awsRestjson1_deserializeDocumentSubnets(v *[]*string, value interface{}) er return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14191,21 +14229,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -14214,7 +14252,7 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return nil } -func awsRestjson1_deserializeDocumentTemplateSummaries(v *[]*types.TemplateSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateSummaries(v *[]types.TemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14227,18 +14265,20 @@ func awsRestjson1_deserializeDocumentTemplateSummaries(v *[]*types.TemplateSumma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TemplateSummary + var cv []types.TemplateSummary if *v == nil { - cv = []*types.TemplateSummary{} + cv = []types.TemplateSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TemplateSummary - if err := awsRestjson1_deserializeDocumentTemplateSummary(&col, value); err != nil { + var col types.TemplateSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentTemplateSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14274,7 +14314,7 @@ func awsRestjson1_deserializeDocumentTemplateSummary(v **types.TemplateSummary, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -14309,7 +14349,7 @@ func awsRestjson1_deserializeDocumentTemplateSummary(v **types.TemplateSummary, if !ok { return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -14349,7 +14389,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14389,7 +14429,7 @@ func awsRestjson1_deserializeDocumentVPCConfig(v **types.VPCConfig, value interf if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AssignPublicIp = &jtv + sv.AssignPublicIp = jtv } case "securityGroups": @@ -14439,7 +14479,7 @@ func awsRestjson1_deserializeDocumentVPCConfigResponse(v **types.VPCConfigRespon if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AssignPublicIp = &jtv + sv.AssignPublicIp = jtv } case "securityGroups": @@ -14458,7 +14498,7 @@ func awsRestjson1_deserializeDocumentVPCConfigResponse(v **types.VPCConfigRespon if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -14498,7 +14538,7 @@ func awsRestjson1_deserializeDocumentWorldConfig(v **types.WorldConfig, value in if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.World = &jtv + sv.World = ptr.String(jtv) } default: @@ -14510,7 +14550,7 @@ func awsRestjson1_deserializeDocumentWorldConfig(v **types.WorldConfig, value in return nil } -func awsRestjson1_deserializeDocumentWorldConfigs(v *[]*types.WorldConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentWorldConfigs(v *[]types.WorldConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14523,18 +14563,20 @@ func awsRestjson1_deserializeDocumentWorldConfigs(v *[]*types.WorldConfig, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorldConfig + var cv []types.WorldConfig if *v == nil { - cv = []*types.WorldConfig{} + cv = []types.WorldConfig{} } else { cv = *v } for _, value := range shape { - var col *types.WorldConfig - if err := awsRestjson1_deserializeDocumentWorldConfig(&col, value); err != nil { + var col types.WorldConfig + destAddr := &col + if err := awsRestjson1_deserializeDocumentWorldConfig(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14599,7 +14641,7 @@ func awsRestjson1_deserializeDocumentWorldCount(v **types.WorldCount, value inte return nil } -func awsRestjson1_deserializeDocumentWorldExportJobSummaries(v *[]*types.WorldExportJobSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentWorldExportJobSummaries(v *[]types.WorldExportJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14612,18 +14654,20 @@ func awsRestjson1_deserializeDocumentWorldExportJobSummaries(v *[]*types.WorldEx return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorldExportJobSummary + var cv []types.WorldExportJobSummary if *v == nil { - cv = []*types.WorldExportJobSummary{} + cv = []types.WorldExportJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.WorldExportJobSummary - if err := awsRestjson1_deserializeDocumentWorldExportJobSummary(&col, value); err != nil { + var col types.WorldExportJobSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentWorldExportJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14659,7 +14703,7 @@ func awsRestjson1_deserializeDocumentWorldExportJobSummary(v **types.WorldExport if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -14739,7 +14783,7 @@ func awsRestjson1_deserializeDocumentWorldFailure(v **types.WorldFailure, value if err != nil { return err } - sv.FailureCount = ptr.Int32(int32(i64)) + sv.FailureCount = int32(i64) } case "sampleFailureReason": @@ -14748,7 +14792,7 @@ func awsRestjson1_deserializeDocumentWorldFailure(v **types.WorldFailure, value if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.SampleFailureReason = &jtv + sv.SampleFailureReason = ptr.String(jtv) } default: @@ -14760,7 +14804,7 @@ func awsRestjson1_deserializeDocumentWorldFailure(v **types.WorldFailure, value return nil } -func awsRestjson1_deserializeDocumentWorldFailures(v *[]*types.WorldFailure, value interface{}) error { +func awsRestjson1_deserializeDocumentWorldFailures(v *[]types.WorldFailure, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14773,18 +14817,20 @@ func awsRestjson1_deserializeDocumentWorldFailures(v *[]*types.WorldFailure, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorldFailure + var cv []types.WorldFailure if *v == nil { - cv = []*types.WorldFailure{} + cv = []types.WorldFailure{} } else { cv = *v } for _, value := range shape { - var col *types.WorldFailure - if err := awsRestjson1_deserializeDocumentWorldFailure(&col, value); err != nil { + var col types.WorldFailure + destAddr := &col + if err := awsRestjson1_deserializeDocumentWorldFailure(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14792,7 +14838,7 @@ func awsRestjson1_deserializeDocumentWorldFailures(v *[]*types.WorldFailure, val return nil } -func awsRestjson1_deserializeDocumentWorldGenerationJobSummaries(v *[]*types.WorldGenerationJobSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentWorldGenerationJobSummaries(v *[]types.WorldGenerationJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14805,18 +14851,20 @@ func awsRestjson1_deserializeDocumentWorldGenerationJobSummaries(v *[]*types.Wor return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorldGenerationJobSummary + var cv []types.WorldGenerationJobSummary if *v == nil { - cv = []*types.WorldGenerationJobSummary{} + cv = []types.WorldGenerationJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.WorldGenerationJobSummary - if err := awsRestjson1_deserializeDocumentWorldGenerationJobSummary(&col, value); err != nil { + var col types.WorldGenerationJobSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentWorldGenerationJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14852,7 +14900,7 @@ func awsRestjson1_deserializeDocumentWorldGenerationJobSummary(v **types.WorldGe if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -14878,7 +14926,7 @@ func awsRestjson1_deserializeDocumentWorldGenerationJobSummary(v **types.WorldGe if err != nil { return err } - sv.FailedWorldCount = ptr.Int32(int32(i64)) + sv.FailedWorldCount = int32(i64) } case "status": @@ -14900,7 +14948,7 @@ func awsRestjson1_deserializeDocumentWorldGenerationJobSummary(v **types.WorldGe if err != nil { return err } - sv.SucceededWorldCount = ptr.Int32(int32(i64)) + sv.SucceededWorldCount = int32(i64) } case "template": @@ -14909,7 +14957,7 @@ func awsRestjson1_deserializeDocumentWorldGenerationJobSummary(v **types.WorldGe if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Template = &jtv + sv.Template = ptr.String(jtv) } case "worldCount": @@ -14926,7 +14974,7 @@ func awsRestjson1_deserializeDocumentWorldGenerationJobSummary(v **types.WorldGe return nil } -func awsRestjson1_deserializeDocumentWorldSummaries(v *[]*types.WorldSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentWorldSummaries(v *[]types.WorldSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14939,18 +14987,20 @@ func awsRestjson1_deserializeDocumentWorldSummaries(v *[]*types.WorldSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorldSummary + var cv []types.WorldSummary if *v == nil { - cv = []*types.WorldSummary{} + cv = []types.WorldSummary{} } else { cv = *v } for _, value := range shape { - var col *types.WorldSummary - if err := awsRestjson1_deserializeDocumentWorldSummary(&col, value); err != nil { + var col types.WorldSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentWorldSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14986,7 +15036,7 @@ func awsRestjson1_deserializeDocumentWorldSummary(v **types.WorldSummary, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "createdAt": @@ -15008,7 +15058,7 @@ func awsRestjson1_deserializeDocumentWorldSummary(v **types.WorldSummary, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.GenerationJob = &jtv + sv.GenerationJob = ptr.String(jtv) } case "template": @@ -15017,7 +15067,7 @@ func awsRestjson1_deserializeDocumentWorldSummary(v **types.WorldSummary, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Template = &jtv + sv.Template = ptr.String(jtv) } default: diff --git a/service/robomaker/go.mod b/service/robomaker/go.mod index db5e8233bb8..7930601f26c 100644 --- a/service/robomaker/go.mod +++ b/service/robomaker/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/robomaker go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/robomaker/serializers.go b/service/robomaker/serializers.go index b18c2adc051..aa1df4ef9d1 100644 --- a/service/robomaker/serializers.go +++ b/service/robomaker/serializers.go @@ -1257,9 +1257,9 @@ func awsRestjson1_serializeOpDocumentCreateSimulationJobInput(v *CreateSimulatio } } - if v.MaxJobDurationInSeconds != nil { + if v.MaxJobDurationInSeconds != 0 { ok := object.Key("maxJobDurationInSeconds") - ok.Long(*v.MaxJobDurationInSeconds) + ok.Long(v.MaxJobDurationInSeconds) } if v.OutputLocation != nil { @@ -3588,13 +3588,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -4321,13 +4318,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -4401,13 +4395,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -4415,10 +4406,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -4713,17 +4701,13 @@ func awsRestjson1_serializeOpDocumentUpdateWorldTemplateInput(v *UpdateWorldTemp return nil } -func awsRestjson1_serializeDocumentArns(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentArns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4757,17 +4741,13 @@ func awsRestjson1_serializeDocumentCompute(v *types.Compute, value smithyjson.Va return nil } -func awsRestjson1_serializeDocumentCreateSimulationJobRequests(v []*types.SimulationJobRequest, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCreateSimulationJobRequests(v []types.SimulationJobRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSimulationJobRequest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSimulationJobRequest(&v[i], av); err != nil { return err } } @@ -4798,17 +4778,13 @@ func awsRestjson1_serializeDocumentDataSourceConfig(v *types.DataSourceConfig, v return nil } -func awsRestjson1_serializeDocumentDataSourceConfigs(v []*types.DataSourceConfig, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataSourceConfigs(v []types.DataSourceConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDataSourceConfig(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDataSourceConfig(&v[i], av); err != nil { return err } } @@ -4839,17 +4815,13 @@ func awsRestjson1_serializeDocumentDeploymentApplicationConfig(v *types.Deployme return nil } -func awsRestjson1_serializeDocumentDeploymentApplicationConfigs(v []*types.DeploymentApplicationConfig, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDeploymentApplicationConfigs(v []types.DeploymentApplicationConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDeploymentApplicationConfig(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDeploymentApplicationConfig(&v[i], av); err != nil { return err } } @@ -4919,17 +4891,13 @@ func awsRestjson1_serializeDocumentDeploymentLaunchConfig(v *types.DeploymentLau return nil } -func awsRestjson1_serializeDocumentEnvironmentVariableMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEnvironmentVariableMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -4953,34 +4921,26 @@ func awsRestjson1_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentFilters(v []*types.Filter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilters(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentFilterValues(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5013,9 +4973,9 @@ func awsRestjson1_serializeDocumentLaunchConfig(v *types.LaunchConfig, value smi } } - if v.StreamUI != nil { + if v.StreamUI { ok := object.Key("streamUI") - ok.Boolean(*v.StreamUI) + ok.Boolean(v.StreamUI) } return nil @@ -5068,35 +5028,31 @@ func awsRestjson1_serializeDocumentPortMapping(v *types.PortMapping, value smith object := value.Object() defer object.Close() - if v.ApplicationPort != nil { + if v.ApplicationPort != 0 { ok := object.Key("applicationPort") - ok.Integer(*v.ApplicationPort) + ok.Integer(v.ApplicationPort) } - if v.EnableOnPublicIp != nil { + if v.EnableOnPublicIp { ok := object.Key("enableOnPublicIp") - ok.Boolean(*v.EnableOnPublicIp) + ok.Boolean(v.EnableOnPublicIp) } - if v.JobPort != nil { + if v.JobPort != 0 { ok := object.Key("jobPort") - ok.Integer(*v.JobPort) + ok.Integer(v.JobPort) } return nil } -func awsRestjson1_serializeDocumentPortMappingList(v []*types.PortMapping, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPortMappingList(v []types.PortMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentPortMapping(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentPortMapping(&v[i], av); err != nil { return err } } @@ -5144,17 +5100,13 @@ func awsRestjson1_serializeDocumentRobotApplicationConfig(v *types.RobotApplicat return nil } -func awsRestjson1_serializeDocumentRobotApplicationConfigs(v []*types.RobotApplicationConfig, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRobotApplicationConfigs(v []types.RobotApplicationConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentRobotApplicationConfig(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentRobotApplicationConfig(&v[i], av); err != nil { return err } } @@ -5178,17 +5130,13 @@ func awsRestjson1_serializeDocumentRobotSoftwareSuite(v *types.RobotSoftwareSuit return nil } -func awsRestjson1_serializeDocumentS3Keys(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentS3Keys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5215,17 +5163,13 @@ func awsRestjson1_serializeDocumentS3Object(v *types.S3Object, value smithyjson. return nil } -func awsRestjson1_serializeDocumentSecurityGroups(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSecurityGroups(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5261,17 +5205,13 @@ func awsRestjson1_serializeDocumentSimulationApplicationConfig(v *types.Simulati return nil } -func awsRestjson1_serializeDocumentSimulationApplicationConfigs(v []*types.SimulationApplicationConfig, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSimulationApplicationConfigs(v []types.SimulationApplicationConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSimulationApplicationConfig(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSimulationApplicationConfig(&v[i], av); err != nil { return err } } @@ -5313,9 +5253,9 @@ func awsRestjson1_serializeDocumentSimulationJobRequest(v *types.SimulationJobRe } } - if v.MaxJobDurationInSeconds != nil { + if v.MaxJobDurationInSeconds != 0 { ok := object.Key("maxJobDurationInSeconds") - ok.Long(*v.MaxJobDurationInSeconds) + ok.Long(v.MaxJobDurationInSeconds) } if v.OutputLocation != nil { @@ -5400,49 +5340,37 @@ func awsRestjson1_serializeDocumentSourceConfig(v *types.SourceConfig, value smi return nil } -func awsRestjson1_serializeDocumentSourceConfigs(v []*types.SourceConfig, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSourceConfigs(v []types.SourceConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSourceConfig(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSourceConfig(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentSubnets(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSubnets(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -5468,9 +5396,9 @@ func awsRestjson1_serializeDocumentVPCConfig(v *types.VPCConfig, value smithyjso object := value.Object() defer object.Close() - if v.AssignPublicIp != nil { + if v.AssignPublicIp { ok := object.Key("assignPublicIp") - ok.Boolean(*v.AssignPublicIp) + ok.Boolean(v.AssignPublicIp) } if v.SecurityGroups != nil { @@ -5502,17 +5430,13 @@ func awsRestjson1_serializeDocumentWorldConfig(v *types.WorldConfig, value smith return nil } -func awsRestjson1_serializeDocumentWorldConfigs(v []*types.WorldConfig, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentWorldConfigs(v []types.WorldConfig, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentWorldConfig(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentWorldConfig(&v[i], av); err != nil { return err } } diff --git a/service/robomaker/types/types.go b/service/robomaker/types/types.go index 57c0dfbc51c..6b26f5c4ffd 100644 --- a/service/robomaker/types/types.go +++ b/service/robomaker/types/types.go @@ -54,7 +54,7 @@ type DataSource struct { S3Bucket *string // The list of S3 keys identifying the data source files. - S3Keys []*S3KeyOutput + S3Keys []S3KeyOutput } // Information about a data source. @@ -73,7 +73,7 @@ type DataSourceConfig struct { // The list of S3 keys identifying the data source files. // // This member is required. - S3Keys []*string + S3Keys []string } // Information about a deployment application configuration. @@ -122,7 +122,7 @@ type DeploymentJob struct { CreatedAt *time.Time // The deployment application configuration. - DeploymentApplicationConfigs []*DeploymentApplicationConfig + DeploymentApplicationConfigs []DeploymentApplicationConfig // The deployment configuration. DeploymentConfig *DeploymentConfig @@ -155,7 +155,7 @@ type DeploymentLaunchConfig struct { // An array of key/value pairs specifying environment variables for the robot // application - EnvironmentVariables map[string]*string + EnvironmentVariables map[string]string // The deployment post-launch file. This file will be executed after the launch // file. @@ -186,10 +186,10 @@ type FailedCreateSimulationJobRequest struct { type FailureSummary struct { // The worlds that failed. - Failures []*WorldFailure + Failures []WorldFailure // The total number of failures. - TotalFailureCount *int32 + TotalFailureCount int32 } // Information about a filter. @@ -199,7 +199,7 @@ type Filter struct { Name *string // A list of values. - Values []*string + Values []string } // Information about worlds that finished. @@ -209,10 +209,10 @@ type FinishedWorldsSummary struct { FailureSummary *FailureSummary // The total number of finished worlds. - FinishedCount *int32 + FinishedCount int32 // A list of worlds that succeeded. - SucceededWorlds []*string + SucceededWorlds []string } // Information about a fleet. @@ -251,7 +251,7 @@ type LaunchConfig struct { PackageName *string // The environment variables for the application launch. - EnvironmentVariables map[string]*string + EnvironmentVariables map[string]string // The port forwarding configuration. PortForwardingConfig *PortForwardingConfig @@ -260,7 +260,7 @@ type LaunchConfig struct { // application. If True, AWS RoboMaker will configure a connection so you can // interact with your application as it is running in the simulation. You must // configure and luanch the component. It must have a graphical user interface. - StreamUI *bool + StreamUI bool } // The logging configuration. @@ -299,7 +299,7 @@ type OutputLocation struct { type PortForwardingConfig struct { // The port mappings for the configuration. - PortMappings []*PortMapping + PortMappings []PortMapping } // An object representing a port mapping. @@ -308,16 +308,16 @@ type PortMapping struct { // The port number on the application. // // This member is required. - ApplicationPort *int32 + ApplicationPort int32 // The port number on the simulation job instance to use as a remote connection // point. // // This member is required. - JobPort *int32 + JobPort int32 // A Boolean indicating whether to enable this port mapping on public IP. - EnableOnPublicIp *bool + EnableOnPublicIp bool } // Information about the progress of a deployment job. @@ -500,7 +500,7 @@ type SimulationApplicationConfig struct { ApplicationVersion *string // A list of world configurations. - WorldConfigs []*WorldConfig + WorldConfigs []WorldConfig } // Summary information for a simulation application. @@ -539,7 +539,7 @@ type SimulationJob struct { Compute *ComputeResponse // The data sources for the simulation job. - DataSources []*DataSource + DataSources []DataSource // The failure behavior the simulation job. Continue Restart the simulation job in // the same host instance. Fail Stop the simulation job and terminate the instance. @@ -569,7 +569,7 @@ type SimulationJob struct { // The maximum simulation job duration in seconds. The value must be 8 days // (691,200 seconds) or less. - MaxJobDurationInSeconds *int64 + MaxJobDurationInSeconds int64 // The name of the simulation job. Name *string @@ -581,20 +581,20 @@ type SimulationJob struct { OutputLocation *OutputLocation // A list of robot applications. - RobotApplications []*RobotApplicationConfig + RobotApplications []RobotApplicationConfig // A list of simulation applications. - SimulationApplications []*SimulationApplicationConfig + SimulationApplications []SimulationApplicationConfig // The simulation job execution duration in milliseconds. - SimulationTimeMillis *int64 + SimulationTimeMillis int64 // Status of the simulation job. Status SimulationJobStatus // A map that contains tag keys and tag values that are attached to the simulation // job. - Tags map[string]*string + Tags map[string]string // VPC configuration information. VpcConfig *VPCConfigResponse @@ -611,17 +611,17 @@ type SimulationJobBatchSummary struct { CreatedAt *time.Time // The number of created simulation job requests. - CreatedRequestCount *int32 + CreatedRequestCount int32 // The number of failed simulation job requests. - FailedRequestCount *int32 + FailedRequestCount int32 // The time, in milliseconds since the epoch, when the simulation job batch was // last updated. LastUpdatedAt *time.Time // The number of pending simulation job requests. - PendingRequestCount *int32 + PendingRequestCount int32 // The status of the simulation job batch. Pending The simulation job batch request // is pending. InProgress The simulation job batch is in progress. Failed The @@ -649,7 +649,7 @@ type SimulationJobRequest struct { // (691,200 seconds) or less. // // This member is required. - MaxJobDurationInSeconds *int64 + MaxJobDurationInSeconds int64 // Compute information for the simulation job Compute *Compute @@ -658,7 +658,7 @@ type SimulationJobRequest struct { // These files are available under /opt/robomaker/datasources/data_source_name. // There is a limit of 100 files and a combined size of 25GB for all // DataSourceConfig objects. - DataSources []*DataSourceConfig + DataSources []DataSourceConfig // The failure behavior the simulation job. Continue Restart the simulation job in // the same host instance. Fail Stop the simulation job and terminate the instance. @@ -676,14 +676,14 @@ type SimulationJobRequest struct { OutputLocation *OutputLocation // The robot applications to use in the simulation job. - RobotApplications []*RobotApplicationConfig + RobotApplications []RobotApplicationConfig // The simulation applications to use in the simulation job. - SimulationApplications []*SimulationApplicationConfig + SimulationApplications []SimulationApplicationConfig // A map that contains tag keys and tag values that are attached to the simulation // job request. - Tags map[string]*string + Tags map[string]string // Boolean indicating whether to use default simulation tool applications. UseDefaultApplications *bool @@ -701,7 +701,7 @@ type SimulationJobSummary struct { Arn *string // The names of the data sources. - DataSourceNames []*string + DataSourceNames []string // The time, in milliseconds since the epoch, when the simulation job was last // updated. @@ -711,10 +711,10 @@ type SimulationJobSummary struct { Name *string // A list of simulation job robot application names. - RobotApplicationNames []*string + RobotApplicationNames []string // A list of simulation job simulation application names. - SimulationApplicationNames []*string + SimulationApplicationNames []string // The status of the simulation job. Status SimulationJobStatus @@ -797,26 +797,26 @@ type VPCConfig struct { // A list of one or more subnet IDs in your VPC. // // This member is required. - Subnets []*string + Subnets []string // A boolean indicating whether to assign a public IP address. - AssignPublicIp *bool + AssignPublicIp bool // A list of one or more security groups IDs in your VPC. - SecurityGroups []*string + SecurityGroups []string } // VPC configuration associated with your simulation job. type VPCConfigResponse struct { // A boolean indicating if a public IP was assigned. - AssignPublicIp *bool + AssignPublicIp bool // A list of security group IDs associated with the simulation job. - SecurityGroups []*string + SecurityGroups []string // A list of subnet IDs associated with the simulation job. - Subnets []*string + Subnets []string // The VPC ID associated with your simulation job. VpcId *string @@ -863,7 +863,7 @@ type WorldExportJobSummary struct { Status WorldExportJobStatus // A list of worlds. - Worlds []*string + Worlds []string } // Information about a failed world. @@ -878,7 +878,7 @@ type WorldFailure struct { FailureCode WorldGenerationJobErrorCode // The number of failed worlds. - FailureCount *int32 + FailureCount int32 // The sample reason why the world failed. World errors are aggregated. A sample is // used as the sampleFailureReason. @@ -896,7 +896,7 @@ type WorldGenerationJobSummary struct { CreatedAt *time.Time // The number of worlds that failed. - FailedWorldCount *int32 + FailedWorldCount int32 // The status of the world generator job: Pending The world generator job request // is pending. Running The world generator job is running. Completed The world @@ -907,7 +907,7 @@ type WorldGenerationJobSummary struct { Status WorldGenerationJobStatus // The number of worlds that were generated. - SucceededWorldCount *int32 + SucceededWorldCount int32 // The Amazon Resource Name (arn) of the world template. Template *string diff --git a/service/robomaker/validators.go b/service/robomaker/validators.go index 83179a41b6a..c0c5f570009 100644 --- a/service/robomaker/validators.go +++ b/service/robomaker/validators.go @@ -1090,13 +1090,13 @@ func addOpUpdateWorldTemplateValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpUpdateWorldTemplate{}, middleware.After) } -func validateCreateSimulationJobRequests(v []*types.SimulationJobRequest) error { +func validateCreateSimulationJobRequests(v []types.SimulationJobRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateSimulationJobRequests"} for i := range v { - if err := validateSimulationJobRequest(v[i]); err != nil { + if err := validateSimulationJobRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1128,13 +1128,13 @@ func validateDataSourceConfig(v *types.DataSourceConfig) error { } } -func validateDataSourceConfigs(v []*types.DataSourceConfig) error { +func validateDataSourceConfigs(v []types.DataSourceConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DataSourceConfigs"} for i := range v { - if err := validateDataSourceConfig(v[i]); err != nil { + if err := validateDataSourceConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1170,13 +1170,13 @@ func validateDeploymentApplicationConfig(v *types.DeploymentApplicationConfig) e } } -func validateDeploymentApplicationConfigs(v []*types.DeploymentApplicationConfig) error { +func validateDeploymentApplicationConfigs(v []types.DeploymentApplicationConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeploymentApplicationConfigs"} for i := range v { - if err := validateDeploymentApplicationConfig(v[i]); err != nil { + if err := validateDeploymentApplicationConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1282,12 +1282,6 @@ func validatePortMapping(v *types.PortMapping) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "PortMapping"} - if v.ApplicationPort == nil { - invalidParams.Add(smithy.NewErrParamRequired("ApplicationPort")) - } - if v.JobPort == nil { - invalidParams.Add(smithy.NewErrParamRequired("JobPort")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1295,13 +1289,13 @@ func validatePortMapping(v *types.PortMapping) error { } } -func validatePortMappingList(v []*types.PortMapping) error { +func validatePortMappingList(v []types.PortMapping) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PortMappingList"} for i := range v { - if err := validatePortMapping(v[i]); err != nil { + if err := validatePortMapping(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1334,13 +1328,13 @@ func validateRobotApplicationConfig(v *types.RobotApplicationConfig) error { } } -func validateRobotApplicationConfigs(v []*types.RobotApplicationConfig) error { +func validateRobotApplicationConfigs(v []types.RobotApplicationConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RobotApplicationConfigs"} for i := range v { - if err := validateRobotApplicationConfig(v[i]); err != nil { + if err := validateRobotApplicationConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1391,13 +1385,13 @@ func validateSimulationApplicationConfig(v *types.SimulationApplicationConfig) e } } -func validateSimulationApplicationConfigs(v []*types.SimulationApplicationConfig) error { +func validateSimulationApplicationConfigs(v []types.SimulationApplicationConfig) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SimulationApplicationConfigs"} for i := range v { - if err := validateSimulationApplicationConfig(v[i]); err != nil { + if err := validateSimulationApplicationConfig(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1413,9 +1407,6 @@ func validateSimulationJobRequest(v *types.SimulationJobRequest) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "SimulationJobRequest"} - if v.MaxJobDurationInSeconds == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxJobDurationInSeconds")) - } if v.LoggingConfig != nil { if err := validateLoggingConfig(v.LoggingConfig); err != nil { invalidParams.AddNested("LoggingConfig", err.(smithy.InvalidParamsError)) @@ -1752,9 +1743,6 @@ func validateOpCreateSimulationJobInput(v *CreateSimulationJobInput) error { invalidParams.AddNested("LoggingConfig", err.(smithy.InvalidParamsError)) } } - if v.MaxJobDurationInSeconds == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxJobDurationInSeconds")) - } if v.IamRole == nil { invalidParams.Add(smithy.NewErrParamRequired("IamRole")) } diff --git a/service/route53/api_op_ChangeTagsForResource.go b/service/route53/api_op_ChangeTagsForResource.go index 899eb5b0fe0..0c2ee7482ba 100644 --- a/service/route53/api_op_ChangeTagsForResource.go +++ b/service/route53/api_op_ChangeTagsForResource.go @@ -52,11 +52,11 @@ type ChangeTagsForResourceInput struct { // A complex type that contains a list of the tags that you want to add to the // specified health check or hosted zone and/or the tags that you want to edit // Value for. You can add a maximum of 10 tags to a health check or a hosted zone. - AddTags []*types.Tag + AddTags []types.Tag // A complex type that contains a list of the tags that you want to delete from the // specified health check or hosted zone. You can specify up to 10 keys. - RemoveTagKeys []*string + RemoveTagKeys []string } // Empty response for the request. diff --git a/service/route53/api_op_GetAccountLimit.go b/service/route53/api_op_GetAccountLimit.go index 6355a388391..d7615611b87 100644 --- a/service/route53/api_op_GetAccountLimit.go +++ b/service/route53/api_op_GetAccountLimit.go @@ -76,7 +76,7 @@ type GetAccountLimitOutput struct { // have created using the current account. // // This member is required. - Count *int64 + Count int64 // The current setting for the specified limit. For example, if you specified // MAX_HEALTH_CHECKS_BY_OWNER for the value of Type in the request, the value of diff --git a/service/route53/api_op_GetCheckerIpRanges.go b/service/route53/api_op_GetCheckerIpRanges.go index 9651a21980c..bcffb6c8a63 100644 --- a/service/route53/api_op_GetCheckerIpRanges.go +++ b/service/route53/api_op_GetCheckerIpRanges.go @@ -41,7 +41,7 @@ type GetCheckerIpRangesOutput struct { // Route 53 health checkers. // // This member is required. - CheckerIpRanges []*string + CheckerIpRanges []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53/api_op_GetHealthCheckLastFailureReason.go b/service/route53/api_op_GetHealthCheckLastFailureReason.go index fae7217fd50..93a9cfcd394 100644 --- a/service/route53/api_op_GetHealthCheckLastFailureReason.go +++ b/service/route53/api_op_GetHealthCheckLastFailureReason.go @@ -49,7 +49,7 @@ type GetHealthCheckLastFailureReasonOutput struct { // checker that is reporting a last failure reason. // // This member is required. - HealthCheckObservations []*types.HealthCheckObservation + HealthCheckObservations []types.HealthCheckObservation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53/api_op_GetHealthCheckStatus.go b/service/route53/api_op_GetHealthCheckStatus.go index 2b9318478d4..31a4a11e9ff 100644 --- a/service/route53/api_op_GetHealthCheckStatus.go +++ b/service/route53/api_op_GetHealthCheckStatus.go @@ -48,7 +48,7 @@ type GetHealthCheckStatusOutput struct { // health checker that is reporting a status about the health check endpoint. // // This member is required. - HealthCheckObservations []*types.HealthCheckObservation + HealthCheckObservations []types.HealthCheckObservation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53/api_op_GetHostedZone.go b/service/route53/api_op_GetHostedZone.go index 0c8e00ea736..8aa41022cfc 100644 --- a/service/route53/api_op_GetHostedZone.go +++ b/service/route53/api_op_GetHostedZone.go @@ -52,7 +52,7 @@ type GetHostedZoneOutput struct { // A complex type that contains information about the VPCs that are associated with // the specified hosted zone. - VPCs []*types.VPC + VPCs []types.VPC // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53/api_op_GetHostedZoneLimit.go b/service/route53/api_op_GetHostedZoneLimit.go index 29106e1b4a1..e7b3cc035b6 100644 --- a/service/route53/api_op_GetHostedZoneLimit.go +++ b/service/route53/api_op_GetHostedZoneLimit.go @@ -63,7 +63,7 @@ type GetHostedZoneLimitOutput struct { // created in the specified hosted zone. // // This member is required. - Count *int64 + Count int64 // The current setting for the specified limit. For example, if you specified // MAX_RRSETS_BY_ZONE for the value of Type in the request, the value of Limit is diff --git a/service/route53/api_op_GetReusableDelegationSetLimit.go b/service/route53/api_op_GetReusableDelegationSetLimit.go index 5b66b6243d2..6fb5b1e9fa6 100644 --- a/service/route53/api_op_GetReusableDelegationSetLimit.go +++ b/service/route53/api_op_GetReusableDelegationSetLimit.go @@ -54,7 +54,7 @@ type GetReusableDelegationSetLimitOutput struct { // reusable delegation set. // // This member is required. - Count *int64 + Count int64 // The current setting for the limit on hosted zones that you can associate with // the specified reusable delegation set. diff --git a/service/route53/api_op_ListGeoLocations.go b/service/route53/api_op_ListGeoLocations.go index cfd8f079f33..de9ab76e276 100644 --- a/service/route53/api_op_ListGeoLocations.go +++ b/service/route53/api_op_ListGeoLocations.go @@ -74,7 +74,7 @@ type ListGeoLocationsOutput struct { // that Amazon Route 53 supports for geolocation. // // This member is required. - GeoLocationDetailsList []*types.GeoLocationDetails + GeoLocationDetailsList []types.GeoLocationDetails // A value that indicates whether more locations remain to be listed after the last // location in this response. If so, the value of IsTruncated is true. To get more @@ -83,7 +83,7 @@ type ListGeoLocationsOutput struct { // startcountrycode, and startsubdivisioncode, as applicable. // // This member is required. - IsTruncated *bool + IsTruncated bool // The value that you specified for MaxItems in the request. // diff --git a/service/route53/api_op_ListHealthChecks.go b/service/route53/api_op_ListHealthChecks.go index a82bc2b8c7c..1d17a809708 100644 --- a/service/route53/api_op_ListHealthChecks.go +++ b/service/route53/api_op_ListHealthChecks.go @@ -54,7 +54,7 @@ type ListHealthChecksOutput struct { // is associated with the current AWS account. // // This member is required. - HealthChecks []*types.HealthCheck + HealthChecks []types.HealthCheck // A flag that indicates whether there are more health checks to be listed. If the // response was truncated, you can get the next group of health checks by @@ -62,7 +62,7 @@ type ListHealthChecksOutput struct { // NextMarker in the marker parameter. // // This member is required. - IsTruncated *bool + IsTruncated bool // For the second and subsequent calls to ListHealthChecks, Marker is the value // that you specified for the marker parameter in the previous request. diff --git a/service/route53/api_op_ListHostedZones.go b/service/route53/api_op_ListHostedZones.go index 8d607d6d717..bb0f50417e9 100644 --- a/service/route53/api_op_ListHostedZones.go +++ b/service/route53/api_op_ListHostedZones.go @@ -60,7 +60,7 @@ type ListHostedZonesOutput struct { // A complex type that contains general information about the hosted zone. // // This member is required. - HostedZones []*types.HostedZone + HostedZones []types.HostedZone // A flag indicating whether there are more hosted zones to be listed. If the // response was truncated, you can get more hosted zones by submitting another @@ -68,7 +68,7 @@ type ListHostedZonesOutput struct { // parameter. // // This member is required. - IsTruncated *bool + IsTruncated bool // For the second and subsequent calls to ListHostedZones, Marker is the value that // you specified for the marker parameter in the request that produced the current diff --git a/service/route53/api_op_ListHostedZonesByName.go b/service/route53/api_op_ListHostedZonesByName.go index 30f0d10de10..e9fa4ff31eb 100644 --- a/service/route53/api_op_ListHostedZonesByName.go +++ b/service/route53/api_op_ListHostedZonesByName.go @@ -101,7 +101,7 @@ type ListHostedZonesByNameOutput struct { // A complex type that contains general information about the hosted zone. // // This member is required. - HostedZones []*types.HostedZone + HostedZones []types.HostedZone // A flag that indicates whether there are more hosted zones to be listed. If the // response was truncated, you can get the next group of maxitems hosted zones by @@ -109,7 +109,7 @@ type ListHostedZonesByNameOutput struct { // NextHostedZoneId elements in the dnsname and hostedzoneid parameters. // // This member is required. - IsTruncated *bool + IsTruncated bool // The value that you specified for the maxitems parameter in the call to // ListHostedZonesByName that produced the current response. diff --git a/service/route53/api_op_ListHostedZonesByVPC.go b/service/route53/api_op_ListHostedZonesByVPC.go index 6aee89b0627..319b58dbf6f 100644 --- a/service/route53/api_op_ListHostedZonesByVPC.go +++ b/service/route53/api_op_ListHostedZonesByVPC.go @@ -76,7 +76,7 @@ type ListHostedZonesByVPCOutput struct { // the hosted zone name and ID, and information about who owns the hosted zone. // // This member is required. - HostedZoneSummaries []*types.HostedZoneSummary + HostedZoneSummaries []types.HostedZoneSummary // The value that you specified for MaxItems in the most recent // ListHostedZonesByVPC request. diff --git a/service/route53/api_op_ListQueryLoggingConfigs.go b/service/route53/api_op_ListQueryLoggingConfigs.go index 0b2032517fc..64ca150f786 100644 --- a/service/route53/api_op_ListQueryLoggingConfigs.go +++ b/service/route53/api_op_ListQueryLoggingConfigs.go @@ -67,7 +67,7 @@ type ListQueryLoggingConfigsOutput struct { // current AWS account. // // This member is required. - QueryLoggingConfigs []*types.QueryLoggingConfig + QueryLoggingConfigs []types.QueryLoggingConfig // If a response includes the last of the query logging configurations that are // associated with the current AWS account, NextToken doesn't appear in the diff --git a/service/route53/api_op_ListResourceRecordSets.go b/service/route53/api_op_ListResourceRecordSets.go index 9987f711471..bdf77fbcf5e 100644 --- a/service/route53/api_op_ListResourceRecordSets.go +++ b/service/route53/api_op_ListResourceRecordSets.go @@ -124,7 +124,7 @@ type ListResourceRecordSetsOutput struct { // using the NextRecordName element. // // This member is required. - IsTruncated *bool + IsTruncated bool // The maximum number of records you requested. // @@ -134,7 +134,7 @@ type ListResourceRecordSetsOutput struct { // Information about multiple resource record sets. // // This member is required. - ResourceRecordSets []*types.ResourceRecordSet + ResourceRecordSets []types.ResourceRecordSet // Resource record sets that have a routing policy other than simple: If results // were truncated for a given DNS name and type, the value of SetIdentifier for the diff --git a/service/route53/api_op_ListReusableDelegationSets.go b/service/route53/api_op_ListReusableDelegationSets.go index 0e1aa1762c4..635841b9367 100644 --- a/service/route53/api_op_ListReusableDelegationSets.go +++ b/service/route53/api_op_ListReusableDelegationSets.go @@ -55,13 +55,13 @@ type ListReusableDelegationSetsOutput struct { // delegation set that was created by the current AWS account. // // This member is required. - DelegationSets []*types.DelegationSet + DelegationSets []types.DelegationSet // A flag that indicates whether there are more reusable delegation sets to be // listed. // // This member is required. - IsTruncated *bool + IsTruncated bool // For the second and subsequent calls to ListReusableDelegationSets, Marker is the // value that you specified for the marker parameter in the request that produced diff --git a/service/route53/api_op_ListTagsForResources.go b/service/route53/api_op_ListTagsForResources.go index e8605cdb58e..7bf0d0c8f7d 100644 --- a/service/route53/api_op_ListTagsForResources.go +++ b/service/route53/api_op_ListTagsForResources.go @@ -38,7 +38,7 @@ type ListTagsForResourcesInput struct { // you want to get a list of tags. // // This member is required. - ResourceIds []*string + ResourceIds []string // The type of the resources. // @@ -58,7 +58,7 @@ type ListTagsForResourcesOutput struct { // resources. // // This member is required. - ResourceTagSets []*types.ResourceTagSet + ResourceTagSets []types.ResourceTagSet // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53/api_op_ListTrafficPolicies.go b/service/route53/api_op_ListTrafficPolicies.go index 2799887f8a9..2546c75ef3b 100644 --- a/service/route53/api_op_ListTrafficPolicies.go +++ b/service/route53/api_op_ListTrafficPolicies.go @@ -60,7 +60,7 @@ type ListTrafficPoliciesOutput struct { // TrafficPolicyIdMarker in the TrafficPolicyIdMarker request parameter. // // This member is required. - IsTruncated *bool + IsTruncated bool // The value that you specified for the MaxItems parameter in the // ListTrafficPolicies request that produced the current response. @@ -78,7 +78,7 @@ type ListTrafficPoliciesOutput struct { // that was created by the current AWS account. // // This member is required. - TrafficPolicySummaries []*types.TrafficPolicySummary + TrafficPolicySummaries []types.TrafficPolicySummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53/api_op_ListTrafficPolicyInstances.go b/service/route53/api_op_ListTrafficPolicyInstances.go index 541148f7691..da24151c64d 100644 --- a/service/route53/api_op_ListTrafficPolicyInstances.go +++ b/service/route53/api_op_ListTrafficPolicyInstances.go @@ -84,7 +84,7 @@ type ListTrafficPolicyInstancesOutput struct { // TrafficPolicyInstanceTypeMarker in the corresponding request parameters. // // This member is required. - IsTruncated *bool + IsTruncated bool // The value that you specified for the MaxItems parameter in the call to // ListTrafficPolicyInstances that produced the current response. @@ -96,7 +96,7 @@ type ListTrafficPolicyInstancesOutput struct { // instance that matches the elements in the request. // // This member is required. - TrafficPolicyInstances []*types.TrafficPolicyInstance + TrafficPolicyInstances []types.TrafficPolicyInstance // If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of the // first traffic policy instance that Route 53 will return if you submit another diff --git a/service/route53/api_op_ListTrafficPolicyInstancesByHostedZone.go b/service/route53/api_op_ListTrafficPolicyInstancesByHostedZone.go index b03f4e3b0ec..7ca8bf21a7a 100644 --- a/service/route53/api_op_ListTrafficPolicyInstancesByHostedZone.go +++ b/service/route53/api_op_ListTrafficPolicyInstancesByHostedZone.go @@ -81,7 +81,7 @@ type ListTrafficPolicyInstancesByHostedZoneOutput struct { // corresponding request parameters. // // This member is required. - IsTruncated *bool + IsTruncated bool // The value that you specified for the MaxItems parameter in the // ListTrafficPolicyInstancesByHostedZone request that produced the current @@ -94,7 +94,7 @@ type ListTrafficPolicyInstancesByHostedZoneOutput struct { // instance that matches the elements in the request. // // This member is required. - TrafficPolicyInstances []*types.TrafficPolicyInstance + TrafficPolicyInstances []types.TrafficPolicyInstance // If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the first // traffic policy instance in the next group of traffic policy instances. diff --git a/service/route53/api_op_ListTrafficPolicyInstancesByPolicy.go b/service/route53/api_op_ListTrafficPolicyInstancesByPolicy.go index 21752410537..f5c349487a0 100644 --- a/service/route53/api_op_ListTrafficPolicyInstancesByPolicy.go +++ b/service/route53/api_op_ListTrafficPolicyInstancesByPolicy.go @@ -100,7 +100,7 @@ type ListTrafficPolicyInstancesByPolicyOutput struct { // the corresponding request parameters. // // This member is required. - IsTruncated *bool + IsTruncated bool // The value that you specified for the MaxItems parameter in the call to // ListTrafficPolicyInstancesByPolicy that produced the current response. @@ -112,7 +112,7 @@ type ListTrafficPolicyInstancesByPolicyOutput struct { // instance that matches the elements in the request. // // This member is required. - TrafficPolicyInstances []*types.TrafficPolicyInstance + TrafficPolicyInstances []types.TrafficPolicyInstance // If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of the // first traffic policy instance in the next group of traffic policy instances. diff --git a/service/route53/api_op_ListTrafficPolicyVersions.go b/service/route53/api_op_ListTrafficPolicyVersions.go index 9108d578906..71ffd76c5cd 100644 --- a/service/route53/api_op_ListTrafficPolicyVersions.go +++ b/service/route53/api_op_ListTrafficPolicyVersions.go @@ -63,7 +63,7 @@ type ListTrafficPolicyVersionsOutput struct { // NextMarker in the marker parameter. // // This member is required. - IsTruncated *bool + IsTruncated bool // The value that you specified for the maxitems parameter in the // ListTrafficPolicyVersions request that produced the current response. @@ -75,7 +75,7 @@ type ListTrafficPolicyVersionsOutput struct { // that is associated with the specified traffic policy. // // This member is required. - TrafficPolicies []*types.TrafficPolicy + TrafficPolicies []types.TrafficPolicy // If IsTruncated is true, the value of TrafficPolicyVersionMarker identifies the // first traffic policy that Amazon Route 53 will return if you submit another diff --git a/service/route53/api_op_ListVPCAssociationAuthorizations.go b/service/route53/api_op_ListVPCAssociationAuthorizations.go index 6bc884bdb71..0ce0972d6db 100644 --- a/service/route53/api_op_ListVPCAssociationAuthorizations.go +++ b/service/route53/api_op_ListVPCAssociationAuthorizations.go @@ -66,7 +66,7 @@ type ListVPCAssociationAuthorizationsOutput struct { // zone. // // This member is required. - VPCs []*types.VPC + VPCs []types.VPC // When the response includes a NextToken element, there are more VPCs that can be // associated with the specified hosted zone. To get the next page of VPCs, submit diff --git a/service/route53/api_op_TestDNSAnswer.go b/service/route53/api_op_TestDNSAnswer.go index 8bcd316eb98..573a4057f01 100644 --- a/service/route53/api_op_TestDNSAnswer.go +++ b/service/route53/api_op_TestDNSAnswer.go @@ -93,7 +93,7 @@ type TestDNSAnswerOutput struct { // record set. // // This member is required. - RecordData []*string + RecordData []string // The name of the resource record set that you submitted a request for. // diff --git a/service/route53/api_op_UpdateHealthCheck.go b/service/route53/api_op_UpdateHealthCheck.go index e1bbfa7d8a1..e3f49e0d70e 100644 --- a/service/route53/api_op_UpdateHealthCheck.go +++ b/service/route53/api_op_UpdateHealthCheck.go @@ -49,7 +49,7 @@ type UpdateHealthCheckInput struct { // A complex type that contains one ChildHealthCheck element for each health check // that you want to associate with a CALCULATED health check. - ChildHealthChecks []*string + ChildHealthChecks []string // Stops Route 53 from performing health checks. When you disable a health check, // here's what happens: diff --git a/service/route53/deserializers.go b/service/route53/deserializers.go index 144f4150a85..12bad36ff87 100644 --- a/service/route53/deserializers.go +++ b/service/route53/deserializers.go @@ -1706,7 +1706,7 @@ func awsRestxml_deserializeOpDocumentCreateVPCAssociationAuthorizationOutput(v * } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } case strings.EqualFold("VPC", t.Name.Local): @@ -2596,7 +2596,7 @@ func awsRestxml_deserializeOpDocumentGetAccountLimitOutput(v **GetAccountLimitOu if err != nil { return err } - sv.Count = &i64 + sv.Count = i64 } case strings.EqualFold("Limit", t.Name.Local): @@ -3284,7 +3284,7 @@ func awsRestxml_deserializeOpDocumentGetHealthCheckCountOutput(v **GetHealthChec if err != nil { return err } - sv.HealthCheckCount = &i64 + sv.HealthCheckCount = ptr.Int64(i64) } default: @@ -3848,7 +3848,7 @@ func awsRestxml_deserializeOpDocumentGetHostedZoneCountOutput(v **GetHostedZoneC if err != nil { return err } - sv.HostedZoneCount = &i64 + sv.HostedZoneCount = ptr.Int64(i64) } default: @@ -3998,7 +3998,7 @@ func awsRestxml_deserializeOpDocumentGetHostedZoneLimitOutput(v **GetHostedZoneL if err != nil { return err } - sv.Count = &i64 + sv.Count = i64 } case strings.EqualFold("Limit", t.Name.Local): @@ -4426,7 +4426,7 @@ func awsRestxml_deserializeOpDocumentGetReusableDelegationSetLimitOutput(v **Get if err != nil { return err } - sv.Count = &i64 + sv.Count = i64 } case strings.EqualFold("Limit", t.Name.Local): @@ -4994,7 +4994,7 @@ func awsRestxml_deserializeOpDocumentListGeoLocationsOutput(v **ListGeoLocations if err != nil { return fmt.Errorf("expected PageTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("MaxItems", t.Name.Local): @@ -5010,7 +5010,7 @@ func awsRestxml_deserializeOpDocumentListGeoLocationsOutput(v **ListGeoLocations } if val != nil { xtv := string(val) - sv.MaxItems = &xtv + sv.MaxItems = ptr.String(xtv) } case strings.EqualFold("NextContinentCode", t.Name.Local): @@ -5026,7 +5026,7 @@ func awsRestxml_deserializeOpDocumentListGeoLocationsOutput(v **ListGeoLocations } if val != nil { xtv := string(val) - sv.NextContinentCode = &xtv + sv.NextContinentCode = ptr.String(xtv) } case strings.EqualFold("NextCountryCode", t.Name.Local): @@ -5042,7 +5042,7 @@ func awsRestxml_deserializeOpDocumentListGeoLocationsOutput(v **ListGeoLocations } if val != nil { xtv := string(val) - sv.NextCountryCode = &xtv + sv.NextCountryCode = ptr.String(xtv) } case strings.EqualFold("NextSubdivisionCode", t.Name.Local): @@ -5058,7 +5058,7 @@ func awsRestxml_deserializeOpDocumentListGeoLocationsOutput(v **ListGeoLocations } if val != nil { xtv := string(val) - sv.NextSubdivisionCode = &xtv + sv.NextSubdivisionCode = ptr.String(xtv) } default: @@ -5210,7 +5210,7 @@ func awsRestxml_deserializeOpDocumentListHealthChecksOutput(v **ListHealthChecks if err != nil { return fmt.Errorf("expected PageTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -5226,7 +5226,7 @@ func awsRestxml_deserializeOpDocumentListHealthChecksOutput(v **ListHealthChecks } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("MaxItems", t.Name.Local): @@ -5242,7 +5242,7 @@ func awsRestxml_deserializeOpDocumentListHealthChecksOutput(v **ListHealthChecks } if val != nil { xtv := string(val) - sv.MaxItems = &xtv + sv.MaxItems = ptr.String(xtv) } case strings.EqualFold("NextMarker", t.Name.Local): @@ -5258,7 +5258,7 @@ func awsRestxml_deserializeOpDocumentListHealthChecksOutput(v **ListHealthChecks } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } default: @@ -5413,7 +5413,7 @@ func awsRestxml_deserializeOpDocumentListHostedZonesOutput(v **ListHostedZonesOu if err != nil { return fmt.Errorf("expected PageTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -5429,7 +5429,7 @@ func awsRestxml_deserializeOpDocumentListHostedZonesOutput(v **ListHostedZonesOu } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("MaxItems", t.Name.Local): @@ -5445,7 +5445,7 @@ func awsRestxml_deserializeOpDocumentListHostedZonesOutput(v **ListHostedZonesOu } if val != nil { xtv := string(val) - sv.MaxItems = &xtv + sv.MaxItems = ptr.String(xtv) } case strings.EqualFold("NextMarker", t.Name.Local): @@ -5461,7 +5461,7 @@ func awsRestxml_deserializeOpDocumentListHostedZonesOutput(v **ListHostedZonesOu } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } default: @@ -5607,7 +5607,7 @@ func awsRestxml_deserializeOpDocumentListHostedZonesByNameOutput(v **ListHostedZ } if val != nil { xtv := string(val) - sv.DNSName = &xtv + sv.DNSName = ptr.String(xtv) } case strings.EqualFold("HostedZoneId", t.Name.Local): @@ -5623,7 +5623,7 @@ func awsRestxml_deserializeOpDocumentListHostedZonesByNameOutput(v **ListHostedZ } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } case strings.EqualFold("HostedZones", t.Name.Local): @@ -5645,7 +5645,7 @@ func awsRestxml_deserializeOpDocumentListHostedZonesByNameOutput(v **ListHostedZ if err != nil { return fmt.Errorf("expected PageTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("MaxItems", t.Name.Local): @@ -5661,7 +5661,7 @@ func awsRestxml_deserializeOpDocumentListHostedZonesByNameOutput(v **ListHostedZ } if val != nil { xtv := string(val) - sv.MaxItems = &xtv + sv.MaxItems = ptr.String(xtv) } case strings.EqualFold("NextDNSName", t.Name.Local): @@ -5677,7 +5677,7 @@ func awsRestxml_deserializeOpDocumentListHostedZonesByNameOutput(v **ListHostedZ } if val != nil { xtv := string(val) - sv.NextDNSName = &xtv + sv.NextDNSName = ptr.String(xtv) } case strings.EqualFold("NextHostedZoneId", t.Name.Local): @@ -5693,7 +5693,7 @@ func awsRestxml_deserializeOpDocumentListHostedZonesByNameOutput(v **ListHostedZ } if val != nil { xtv := string(val) - sv.NextHostedZoneId = &xtv + sv.NextHostedZoneId = ptr.String(xtv) } default: @@ -5845,7 +5845,7 @@ func awsRestxml_deserializeOpDocumentListHostedZonesByVPCOutput(v **ListHostedZo } if val != nil { xtv := string(val) - sv.MaxItems = &xtv + sv.MaxItems = ptr.String(xtv) } case strings.EqualFold("NextToken", t.Name.Local): @@ -5861,7 +5861,7 @@ func awsRestxml_deserializeOpDocumentListHostedZonesByVPCOutput(v **ListHostedZo } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -6010,7 +6010,7 @@ func awsRestxml_deserializeOpDocumentListQueryLoggingConfigsOutput(v **ListQuery } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("QueryLoggingConfigs", t.Name.Local): @@ -6162,7 +6162,7 @@ func awsRestxml_deserializeOpDocumentListResourceRecordSetsOutput(v **ListResour if err != nil { return fmt.Errorf("expected PageTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("MaxItems", t.Name.Local): @@ -6178,7 +6178,7 @@ func awsRestxml_deserializeOpDocumentListResourceRecordSetsOutput(v **ListResour } if val != nil { xtv := string(val) - sv.MaxItems = &xtv + sv.MaxItems = ptr.String(xtv) } case strings.EqualFold("NextRecordIdentifier", t.Name.Local): @@ -6194,7 +6194,7 @@ func awsRestxml_deserializeOpDocumentListResourceRecordSetsOutput(v **ListResour } if val != nil { xtv := string(val) - sv.NextRecordIdentifier = &xtv + sv.NextRecordIdentifier = ptr.String(xtv) } case strings.EqualFold("NextRecordName", t.Name.Local): @@ -6210,7 +6210,7 @@ func awsRestxml_deserializeOpDocumentListResourceRecordSetsOutput(v **ListResour } if val != nil { xtv := string(val) - sv.NextRecordName = &xtv + sv.NextRecordName = ptr.String(xtv) } case strings.EqualFold("NextRecordType", t.Name.Local): @@ -6378,7 +6378,7 @@ func awsRestxml_deserializeOpDocumentListReusableDelegationSetsOutput(v **ListRe if err != nil { return fmt.Errorf("expected PageTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -6394,7 +6394,7 @@ func awsRestxml_deserializeOpDocumentListReusableDelegationSetsOutput(v **ListRe } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("MaxItems", t.Name.Local): @@ -6410,7 +6410,7 @@ func awsRestxml_deserializeOpDocumentListReusableDelegationSetsOutput(v **ListRe } if val != nil { xtv := string(val) - sv.MaxItems = &xtv + sv.MaxItems = ptr.String(xtv) } case strings.EqualFold("NextMarker", t.Name.Local): @@ -6426,7 +6426,7 @@ func awsRestxml_deserializeOpDocumentListReusableDelegationSetsOutput(v **ListRe } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } default: @@ -6859,7 +6859,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPoliciesOutput(v **ListTrafficPo if err != nil { return fmt.Errorf("expected PageTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("MaxItems", t.Name.Local): @@ -6875,7 +6875,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPoliciesOutput(v **ListTrafficPo } if val != nil { xtv := string(val) - sv.MaxItems = &xtv + sv.MaxItems = ptr.String(xtv) } case strings.EqualFold("TrafficPolicyIdMarker", t.Name.Local): @@ -6891,7 +6891,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPoliciesOutput(v **ListTrafficPo } if val != nil { xtv := string(val) - sv.TrafficPolicyIdMarker = &xtv + sv.TrafficPolicyIdMarker = ptr.String(xtv) } case strings.EqualFold("TrafficPolicySummaries", t.Name.Local): @@ -7043,7 +7043,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyInstancesOutput(v **ListTr } if val != nil { xtv := string(val) - sv.HostedZoneIdMarker = &xtv + sv.HostedZoneIdMarker = ptr.String(xtv) } case strings.EqualFold("IsTruncated", t.Name.Local): @@ -7059,7 +7059,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyInstancesOutput(v **ListTr if err != nil { return fmt.Errorf("expected PageTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("MaxItems", t.Name.Local): @@ -7075,7 +7075,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyInstancesOutput(v **ListTr } if val != nil { xtv := string(val) - sv.MaxItems = &xtv + sv.MaxItems = ptr.String(xtv) } case strings.EqualFold("TrafficPolicyInstanceNameMarker", t.Name.Local): @@ -7091,7 +7091,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyInstancesOutput(v **ListTr } if val != nil { xtv := string(val) - sv.TrafficPolicyInstanceNameMarker = &xtv + sv.TrafficPolicyInstanceNameMarker = ptr.String(xtv) } case strings.EqualFold("TrafficPolicyInstances", t.Name.Local): @@ -7259,7 +7259,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyInstancesByHostedZoneOutpu if err != nil { return fmt.Errorf("expected PageTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("MaxItems", t.Name.Local): @@ -7275,7 +7275,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyInstancesByHostedZoneOutpu } if val != nil { xtv := string(val) - sv.MaxItems = &xtv + sv.MaxItems = ptr.String(xtv) } case strings.EqualFold("TrafficPolicyInstanceNameMarker", t.Name.Local): @@ -7291,7 +7291,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyInstancesByHostedZoneOutpu } if val != nil { xtv := string(val) - sv.TrafficPolicyInstanceNameMarker = &xtv + sv.TrafficPolicyInstanceNameMarker = ptr.String(xtv) } case strings.EqualFold("TrafficPolicyInstances", t.Name.Local): @@ -7459,7 +7459,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyInstancesByPolicyOutput(v } if val != nil { xtv := string(val) - sv.HostedZoneIdMarker = &xtv + sv.HostedZoneIdMarker = ptr.String(xtv) } case strings.EqualFold("IsTruncated", t.Name.Local): @@ -7475,7 +7475,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyInstancesByPolicyOutput(v if err != nil { return fmt.Errorf("expected PageTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("MaxItems", t.Name.Local): @@ -7491,7 +7491,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyInstancesByPolicyOutput(v } if val != nil { xtv := string(val) - sv.MaxItems = &xtv + sv.MaxItems = ptr.String(xtv) } case strings.EqualFold("TrafficPolicyInstanceNameMarker", t.Name.Local): @@ -7507,7 +7507,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyInstancesByPolicyOutput(v } if val != nil { xtv := string(val) - sv.TrafficPolicyInstanceNameMarker = &xtv + sv.TrafficPolicyInstanceNameMarker = ptr.String(xtv) } case strings.EqualFold("TrafficPolicyInstances", t.Name.Local): @@ -7672,7 +7672,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyVersionsOutput(v **ListTra if err != nil { return fmt.Errorf("expected PageTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("MaxItems", t.Name.Local): @@ -7688,7 +7688,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyVersionsOutput(v **ListTra } if val != nil { xtv := string(val) - sv.MaxItems = &xtv + sv.MaxItems = ptr.String(xtv) } case strings.EqualFold("TrafficPolicies", t.Name.Local): @@ -7710,7 +7710,7 @@ func awsRestxml_deserializeOpDocumentListTrafficPolicyVersionsOutput(v **ListTra } if val != nil { xtv := string(val) - sv.TrafficPolicyVersionMarker = &xtv + sv.TrafficPolicyVersionMarker = ptr.String(xtv) } default: @@ -7859,7 +7859,7 @@ func awsRestxml_deserializeOpDocumentListVPCAssociationAuthorizationsOutput(v ** } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } case strings.EqualFold("NextToken", t.Name.Local): @@ -7875,7 +7875,7 @@ func awsRestxml_deserializeOpDocumentListVPCAssociationAuthorizationsOutput(v ** } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("VPCs", t.Name.Local): @@ -8027,7 +8027,7 @@ func awsRestxml_deserializeOpDocumentTestDNSAnswerOutput(v **TestDNSAnswerOutput } if val != nil { xtv := string(val) - sv.Nameserver = &xtv + sv.Nameserver = ptr.String(xtv) } case strings.EqualFold("Protocol", t.Name.Local): @@ -8043,7 +8043,7 @@ func awsRestxml_deserializeOpDocumentTestDNSAnswerOutput(v **TestDNSAnswerOutput } if val != nil { xtv := string(val) - sv.Protocol = &xtv + sv.Protocol = ptr.String(xtv) } case strings.EqualFold("RecordData", t.Name.Local): @@ -8065,7 +8065,7 @@ func awsRestxml_deserializeOpDocumentTestDNSAnswerOutput(v **TestDNSAnswerOutput } if val != nil { xtv := string(val) - sv.RecordName = &xtv + sv.RecordName = ptr.String(xtv) } case strings.EqualFold("RecordType", t.Name.Local): @@ -8094,7 +8094,7 @@ func awsRestxml_deserializeOpDocumentTestDNSAnswerOutput(v **TestDNSAnswerOutput } if val != nil { xtv := string(val) - sv.ResponseCode = &xtv + sv.ResponseCode = ptr.String(xtv) } default: @@ -10398,7 +10398,7 @@ func awsRestxml_deserializeDocumentAccountLimit(v **types.AccountLimit, decoder if err != nil { return err } - sv.Value = &i64 + sv.Value = i64 } default: @@ -10446,7 +10446,7 @@ func awsRestxml_deserializeDocumentAlarmIdentifier(v **types.AlarmIdentifier, de } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Region", t.Name.Local): @@ -10507,7 +10507,7 @@ func awsRestxml_deserializeDocumentAliasTarget(v **types.AliasTarget, decoder sm } if val != nil { xtv := string(val) - sv.DNSName = &xtv + sv.DNSName = ptr.String(xtv) } case strings.EqualFold("EvaluateTargetHealth", t.Name.Local): @@ -10523,7 +10523,7 @@ func awsRestxml_deserializeDocumentAliasTarget(v **types.AliasTarget, decoder sm if err != nil { return fmt.Errorf("expected AliasHealthEnabled to be of type *bool, got %T instead", val) } - sv.EvaluateTargetHealth = &xtv + sv.EvaluateTargetHealth = xtv } case strings.EqualFold("HostedZoneId", t.Name.Local): @@ -10539,7 +10539,7 @@ func awsRestxml_deserializeDocumentAliasTarget(v **types.AliasTarget, decoder sm } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } default: @@ -10587,7 +10587,7 @@ func awsRestxml_deserializeDocumentChangeInfo(v **types.ChangeInfo, decoder smit } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -10603,7 +10603,7 @@ func awsRestxml_deserializeDocumentChangeInfo(v **types.ChangeInfo, decoder smit } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -10633,7 +10633,7 @@ func awsRestxml_deserializeDocumentChangeInfo(v **types.ChangeInfo, decoder smit if err != nil { return err } - sv.SubmittedAt = &t + sv.SubmittedAt = ptr.Time(t) } default: @@ -10646,13 +10646,13 @@ func awsRestxml_deserializeDocumentChangeInfo(v **types.ChangeInfo, decoder smit return nil } -func awsRestxml_deserializeDocumentCheckerIpRanges(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentCheckerIpRanges(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -10670,20 +10670,17 @@ func awsRestxml_deserializeDocumentCheckerIpRanges(v *[]*string, decoder smithyx decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -10696,17 +10693,17 @@ func awsRestxml_deserializeDocumentCheckerIpRanges(v *[]*string, decoder smithyx return nil } -func awsRestxml_deserializeDocumentCheckerIpRangesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentCheckerIpRangesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -10714,27 +10711,24 @@ func awsRestxml_deserializeDocumentCheckerIpRangesUnwrapped(v *[]*string, decode return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentChildHealthCheckList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentChildHealthCheckList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -10752,20 +10746,17 @@ func awsRestxml_deserializeDocumentChildHealthCheckList(v *[]*string, decoder sm decoder = memberDecoder for { if strings.EqualFold("ChildHealthCheck", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -10778,17 +10769,17 @@ func awsRestxml_deserializeDocumentChildHealthCheckList(v *[]*string, decoder sm return nil } -func awsRestxml_deserializeDocumentChildHealthCheckListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentChildHealthCheckListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -10796,14 +10787,11 @@ func awsRestxml_deserializeDocumentChildHealthCheckListUnwrapped(v *[]*string, d return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -10881,7 +10869,7 @@ func awsRestxml_deserializeDocumentCloudWatchAlarmConfiguration(v **types.CloudW } if val != nil { xtv := string(val) - sv.MetricName = &xtv + sv.MetricName = ptr.String(xtv) } case strings.EqualFold("Namespace", t.Name.Local): @@ -10897,7 +10885,7 @@ func awsRestxml_deserializeDocumentCloudWatchAlarmConfiguration(v **types.CloudW } if val != nil { xtv := string(val) - sv.Namespace = &xtv + sv.Namespace = ptr.String(xtv) } case strings.EqualFold("Period", t.Name.Local): @@ -10944,7 +10932,7 @@ func awsRestxml_deserializeDocumentCloudWatchAlarmConfiguration(v **types.CloudW if err != nil { return err } - sv.Threshold = &f64 + sv.Threshold = ptr.Float64(f64) } default: @@ -10992,7 +10980,7 @@ func awsRestxml_deserializeDocumentConcurrentModification(v **types.ConcurrentMo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11040,7 +11028,7 @@ func awsRestxml_deserializeDocumentConflictingDomainExists(v **types.Conflicting } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11088,7 +11076,7 @@ func awsRestxml_deserializeDocumentConflictingTypes(v **types.ConflictingTypes, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11136,7 +11124,7 @@ func awsRestxml_deserializeDocumentDelegationSet(v **types.DelegationSet, decode } if val != nil { xtv := string(val) - sv.CallerReference = &xtv + sv.CallerReference = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -11152,7 +11140,7 @@ func awsRestxml_deserializeDocumentDelegationSet(v **types.DelegationSet, decode } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("NameServers", t.Name.Local): @@ -11206,7 +11194,7 @@ func awsRestxml_deserializeDocumentDelegationSetAlreadyCreated(v **types.Delegat } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11254,7 +11242,7 @@ func awsRestxml_deserializeDocumentDelegationSetAlreadyReusable(v **types.Delega } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11302,7 +11290,7 @@ func awsRestxml_deserializeDocumentDelegationSetInUse(v **types.DelegationSetInU } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11315,13 +11303,13 @@ func awsRestxml_deserializeDocumentDelegationSetInUse(v **types.DelegationSetInU return nil } -func awsRestxml_deserializeDocumentDelegationSetNameServers(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentDelegationSetNameServers(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -11339,20 +11327,17 @@ func awsRestxml_deserializeDocumentDelegationSetNameServers(v *[]*string, decode decoder = memberDecoder for { if strings.EqualFold("NameServer", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -11365,17 +11350,17 @@ func awsRestxml_deserializeDocumentDelegationSetNameServers(v *[]*string, decode return nil } -func awsRestxml_deserializeDocumentDelegationSetNameServersUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentDelegationSetNameServersUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -11383,14 +11368,11 @@ func awsRestxml_deserializeDocumentDelegationSetNameServersUnwrapped(v *[]*strin return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -11432,7 +11414,7 @@ func awsRestxml_deserializeDocumentDelegationSetNotAvailable(v **types.Delegatio } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11480,7 +11462,7 @@ func awsRestxml_deserializeDocumentDelegationSetNotReusable(v **types.Delegation } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11493,13 +11475,13 @@ func awsRestxml_deserializeDocumentDelegationSetNotReusable(v **types.Delegation return nil } -func awsRestxml_deserializeDocumentDelegationSets(v *[]*types.DelegationSet, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentDelegationSets(v *[]types.DelegationSet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DelegationSet + var sv []types.DelegationSet if *v == nil { - sv = make([]*types.DelegationSet, 0) + sv = make([]types.DelegationSet, 0) } else { sv = *v } @@ -11515,11 +11497,13 @@ func awsRestxml_deserializeDocumentDelegationSets(v *[]*types.DelegationSet, dec } for { if strings.EqualFold("DelegationSet", t.Name.Local) { - var col *types.DelegationSet + var col types.DelegationSet nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDelegationSet(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentDelegationSet(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11532,23 +11516,25 @@ func awsRestxml_deserializeDocumentDelegationSets(v *[]*types.DelegationSet, dec return nil } -func awsRestxml_deserializeDocumentDelegationSetsUnwrapped(v *[]*types.DelegationSet, decoder smithyxml.NodeDecoder) error { - var sv []*types.DelegationSet +func awsRestxml_deserializeDocumentDelegationSetsUnwrapped(v *[]types.DelegationSet, decoder smithyxml.NodeDecoder) error { + var sv []types.DelegationSet if *v == nil { - sv = make([]*types.DelegationSet, 0) + sv = make([]types.DelegationSet, 0) } else { sv = *v } switch { default: - var mv *types.DelegationSet + var mv types.DelegationSet t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDelegationSet(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentDelegationSet(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11589,7 +11575,7 @@ func awsRestxml_deserializeDocumentDimension(v **types.Dimension, decoder smithy } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -11605,7 +11591,7 @@ func awsRestxml_deserializeDocumentDimension(v **types.Dimension, decoder smithy } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -11618,13 +11604,13 @@ func awsRestxml_deserializeDocumentDimension(v **types.Dimension, decoder smithy return nil } -func awsRestxml_deserializeDocumentDimensionList(v *[]*types.Dimension, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentDimensionList(v *[]types.Dimension, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Dimension + var sv []types.Dimension if *v == nil { - sv = make([]*types.Dimension, 0) + sv = make([]types.Dimension, 0) } else { sv = *v } @@ -11640,11 +11626,13 @@ func awsRestxml_deserializeDocumentDimensionList(v *[]*types.Dimension, decoder } for { if strings.EqualFold("Dimension", t.Name.Local) { - var col *types.Dimension + var col types.Dimension nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDimension(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentDimension(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11657,35 +11645,37 @@ func awsRestxml_deserializeDocumentDimensionList(v *[]*types.Dimension, decoder return nil } -func awsRestxml_deserializeDocumentDimensionListUnwrapped(v *[]*types.Dimension, decoder smithyxml.NodeDecoder) error { - var sv []*types.Dimension +func awsRestxml_deserializeDocumentDimensionListUnwrapped(v *[]types.Dimension, decoder smithyxml.NodeDecoder) error { + var sv []types.Dimension if *v == nil { - sv = make([]*types.Dimension, 0) + sv = make([]types.Dimension, 0) } else { sv = *v } switch { default: - var mv *types.Dimension + var mv types.Dimension t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDimension(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentDimension(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentErrorMessages(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentErrorMessages(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -11703,20 +11693,17 @@ func awsRestxml_deserializeDocumentErrorMessages(v *[]*string, decoder smithyxml decoder = memberDecoder for { if strings.EqualFold("Message", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -11729,17 +11716,17 @@ func awsRestxml_deserializeDocumentErrorMessages(v *[]*string, decoder smithyxml return nil } -func awsRestxml_deserializeDocumentErrorMessagesUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentErrorMessagesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -11747,14 +11734,11 @@ func awsRestxml_deserializeDocumentErrorMessagesUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -11796,7 +11780,7 @@ func awsRestxml_deserializeDocumentGeoLocation(v **types.GeoLocation, decoder sm } if val != nil { xtv := string(val) - sv.ContinentCode = &xtv + sv.ContinentCode = ptr.String(xtv) } case strings.EqualFold("CountryCode", t.Name.Local): @@ -11812,7 +11796,7 @@ func awsRestxml_deserializeDocumentGeoLocation(v **types.GeoLocation, decoder sm } if val != nil { xtv := string(val) - sv.CountryCode = &xtv + sv.CountryCode = ptr.String(xtv) } case strings.EqualFold("SubdivisionCode", t.Name.Local): @@ -11828,7 +11812,7 @@ func awsRestxml_deserializeDocumentGeoLocation(v **types.GeoLocation, decoder sm } if val != nil { xtv := string(val) - sv.SubdivisionCode = &xtv + sv.SubdivisionCode = ptr.String(xtv) } default: @@ -11876,7 +11860,7 @@ func awsRestxml_deserializeDocumentGeoLocationDetails(v **types.GeoLocationDetai } if val != nil { xtv := string(val) - sv.ContinentCode = &xtv + sv.ContinentCode = ptr.String(xtv) } case strings.EqualFold("ContinentName", t.Name.Local): @@ -11892,7 +11876,7 @@ func awsRestxml_deserializeDocumentGeoLocationDetails(v **types.GeoLocationDetai } if val != nil { xtv := string(val) - sv.ContinentName = &xtv + sv.ContinentName = ptr.String(xtv) } case strings.EqualFold("CountryCode", t.Name.Local): @@ -11908,7 +11892,7 @@ func awsRestxml_deserializeDocumentGeoLocationDetails(v **types.GeoLocationDetai } if val != nil { xtv := string(val) - sv.CountryCode = &xtv + sv.CountryCode = ptr.String(xtv) } case strings.EqualFold("CountryName", t.Name.Local): @@ -11924,7 +11908,7 @@ func awsRestxml_deserializeDocumentGeoLocationDetails(v **types.GeoLocationDetai } if val != nil { xtv := string(val) - sv.CountryName = &xtv + sv.CountryName = ptr.String(xtv) } case strings.EqualFold("SubdivisionCode", t.Name.Local): @@ -11940,7 +11924,7 @@ func awsRestxml_deserializeDocumentGeoLocationDetails(v **types.GeoLocationDetai } if val != nil { xtv := string(val) - sv.SubdivisionCode = &xtv + sv.SubdivisionCode = ptr.String(xtv) } case strings.EqualFold("SubdivisionName", t.Name.Local): @@ -11956,7 +11940,7 @@ func awsRestxml_deserializeDocumentGeoLocationDetails(v **types.GeoLocationDetai } if val != nil { xtv := string(val) - sv.SubdivisionName = &xtv + sv.SubdivisionName = ptr.String(xtv) } default: @@ -11969,13 +11953,13 @@ func awsRestxml_deserializeDocumentGeoLocationDetails(v **types.GeoLocationDetai return nil } -func awsRestxml_deserializeDocumentGeoLocationDetailsList(v *[]*types.GeoLocationDetails, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentGeoLocationDetailsList(v *[]types.GeoLocationDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.GeoLocationDetails + var sv []types.GeoLocationDetails if *v == nil { - sv = make([]*types.GeoLocationDetails, 0) + sv = make([]types.GeoLocationDetails, 0) } else { sv = *v } @@ -11991,11 +11975,13 @@ func awsRestxml_deserializeDocumentGeoLocationDetailsList(v *[]*types.GeoLocatio } for { if strings.EqualFold("GeoLocationDetails", t.Name.Local) { - var col *types.GeoLocationDetails + var col types.GeoLocationDetails nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentGeoLocationDetails(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentGeoLocationDetails(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12008,23 +11994,25 @@ func awsRestxml_deserializeDocumentGeoLocationDetailsList(v *[]*types.GeoLocatio return nil } -func awsRestxml_deserializeDocumentGeoLocationDetailsListUnwrapped(v *[]*types.GeoLocationDetails, decoder smithyxml.NodeDecoder) error { - var sv []*types.GeoLocationDetails +func awsRestxml_deserializeDocumentGeoLocationDetailsListUnwrapped(v *[]types.GeoLocationDetails, decoder smithyxml.NodeDecoder) error { + var sv []types.GeoLocationDetails if *v == nil { - sv = make([]*types.GeoLocationDetails, 0) + sv = make([]types.GeoLocationDetails, 0) } else { sv = *v } switch { default: - var mv *types.GeoLocationDetails + var mv types.GeoLocationDetails t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentGeoLocationDetails(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentGeoLocationDetails(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12065,7 +12053,7 @@ func awsRestxml_deserializeDocumentHealthCheck(v **types.HealthCheck, decoder sm } if val != nil { xtv := string(val) - sv.CallerReference = &xtv + sv.CallerReference = ptr.String(xtv) } case strings.EqualFold("CloudWatchAlarmConfiguration", t.Name.Local): @@ -12094,7 +12082,7 @@ func awsRestxml_deserializeDocumentHealthCheck(v **types.HealthCheck, decoder sm if err != nil { return err } - sv.HealthCheckVersion = &i64 + sv.HealthCheckVersion = ptr.Int64(i64) } case strings.EqualFold("Id", t.Name.Local): @@ -12110,7 +12098,7 @@ func awsRestxml_deserializeDocumentHealthCheck(v **types.HealthCheck, decoder sm } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("LinkedService", t.Name.Local): @@ -12164,7 +12152,7 @@ func awsRestxml_deserializeDocumentHealthCheckAlreadyExists(v **types.HealthChec } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12224,7 +12212,7 @@ func awsRestxml_deserializeDocumentHealthCheckConfig(v **types.HealthCheckConfig if err != nil { return fmt.Errorf("expected Disabled to be of type *bool, got %T instead", val) } - sv.Disabled = &xtv + sv.Disabled = ptr.Bool(xtv) } case strings.EqualFold("EnableSNI", t.Name.Local): @@ -12240,7 +12228,7 @@ func awsRestxml_deserializeDocumentHealthCheckConfig(v **types.HealthCheckConfig if err != nil { return fmt.Errorf("expected EnableSNI to be of type *bool, got %T instead", val) } - sv.EnableSNI = &xtv + sv.EnableSNI = ptr.Bool(xtv) } case strings.EqualFold("FailureThreshold", t.Name.Local): @@ -12273,7 +12261,7 @@ func awsRestxml_deserializeDocumentHealthCheckConfig(v **types.HealthCheckConfig } if val != nil { xtv := string(val) - sv.FullyQualifiedDomainName = &xtv + sv.FullyQualifiedDomainName = ptr.String(xtv) } case strings.EqualFold("HealthThreshold", t.Name.Local): @@ -12319,7 +12307,7 @@ func awsRestxml_deserializeDocumentHealthCheckConfig(v **types.HealthCheckConfig if err != nil { return fmt.Errorf("expected Inverted to be of type *bool, got %T instead", val) } - sv.Inverted = &xtv + sv.Inverted = ptr.Bool(xtv) } case strings.EqualFold("IPAddress", t.Name.Local): @@ -12335,7 +12323,7 @@ func awsRestxml_deserializeDocumentHealthCheckConfig(v **types.HealthCheckConfig } if val != nil { xtv := string(val) - sv.IPAddress = &xtv + sv.IPAddress = ptr.String(xtv) } case strings.EqualFold("MeasureLatency", t.Name.Local): @@ -12351,7 +12339,7 @@ func awsRestxml_deserializeDocumentHealthCheckConfig(v **types.HealthCheckConfig if err != nil { return fmt.Errorf("expected MeasureLatency to be of type *bool, got %T instead", val) } - sv.MeasureLatency = &xtv + sv.MeasureLatency = ptr.Bool(xtv) } case strings.EqualFold("Port", t.Name.Local): @@ -12407,7 +12395,7 @@ func awsRestxml_deserializeDocumentHealthCheckConfig(v **types.HealthCheckConfig } if val != nil { xtv := string(val) - sv.ResourcePath = &xtv + sv.ResourcePath = ptr.String(xtv) } case strings.EqualFold("SearchString", t.Name.Local): @@ -12423,7 +12411,7 @@ func awsRestxml_deserializeDocumentHealthCheckConfig(v **types.HealthCheckConfig } if val != nil { xtv := string(val) - sv.SearchString = &xtv + sv.SearchString = ptr.String(xtv) } case strings.EqualFold("Type", t.Name.Local): @@ -12484,7 +12472,7 @@ func awsRestxml_deserializeDocumentHealthCheckInUse(v **types.HealthCheckInUse, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12532,7 +12520,7 @@ func awsRestxml_deserializeDocumentHealthCheckObservation(v **types.HealthCheckO } if val != nil { xtv := string(val) - sv.IPAddress = &xtv + sv.IPAddress = ptr.String(xtv) } case strings.EqualFold("Region", t.Name.Local): @@ -12564,13 +12552,13 @@ func awsRestxml_deserializeDocumentHealthCheckObservation(v **types.HealthCheckO return nil } -func awsRestxml_deserializeDocumentHealthCheckObservations(v *[]*types.HealthCheckObservation, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentHealthCheckObservations(v *[]types.HealthCheckObservation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.HealthCheckObservation + var sv []types.HealthCheckObservation if *v == nil { - sv = make([]*types.HealthCheckObservation, 0) + sv = make([]types.HealthCheckObservation, 0) } else { sv = *v } @@ -12586,11 +12574,13 @@ func awsRestxml_deserializeDocumentHealthCheckObservations(v *[]*types.HealthChe } for { if strings.EqualFold("HealthCheckObservation", t.Name.Local) { - var col *types.HealthCheckObservation + var col types.HealthCheckObservation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentHealthCheckObservation(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentHealthCheckObservation(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12603,23 +12593,25 @@ func awsRestxml_deserializeDocumentHealthCheckObservations(v *[]*types.HealthChe return nil } -func awsRestxml_deserializeDocumentHealthCheckObservationsUnwrapped(v *[]*types.HealthCheckObservation, decoder smithyxml.NodeDecoder) error { - var sv []*types.HealthCheckObservation +func awsRestxml_deserializeDocumentHealthCheckObservationsUnwrapped(v *[]types.HealthCheckObservation, decoder smithyxml.NodeDecoder) error { + var sv []types.HealthCheckObservation if *v == nil { - sv = make([]*types.HealthCheckObservation, 0) + sv = make([]types.HealthCheckObservation, 0) } else { sv = *v } switch { default: - var mv *types.HealthCheckObservation + var mv types.HealthCheckObservation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentHealthCheckObservation(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentHealthCheckObservation(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12701,13 +12693,13 @@ func awsRestxml_deserializeDocumentHealthCheckRegionListUnwrapped(v *[]types.Hea *v = sv return nil } -func awsRestxml_deserializeDocumentHealthChecks(v *[]*types.HealthCheck, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentHealthChecks(v *[]types.HealthCheck, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.HealthCheck + var sv []types.HealthCheck if *v == nil { - sv = make([]*types.HealthCheck, 0) + sv = make([]types.HealthCheck, 0) } else { sv = *v } @@ -12723,11 +12715,13 @@ func awsRestxml_deserializeDocumentHealthChecks(v *[]*types.HealthCheck, decoder } for { if strings.EqualFold("HealthCheck", t.Name.Local) { - var col *types.HealthCheck + var col types.HealthCheck nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentHealthCheck(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentHealthCheck(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12740,23 +12734,25 @@ func awsRestxml_deserializeDocumentHealthChecks(v *[]*types.HealthCheck, decoder return nil } -func awsRestxml_deserializeDocumentHealthChecksUnwrapped(v *[]*types.HealthCheck, decoder smithyxml.NodeDecoder) error { - var sv []*types.HealthCheck +func awsRestxml_deserializeDocumentHealthChecksUnwrapped(v *[]types.HealthCheck, decoder smithyxml.NodeDecoder) error { + var sv []types.HealthCheck if *v == nil { - sv = make([]*types.HealthCheck, 0) + sv = make([]types.HealthCheck, 0) } else { sv = *v } switch { default: - var mv *types.HealthCheck + var mv types.HealthCheck t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentHealthCheck(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentHealthCheck(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12797,7 +12793,7 @@ func awsRestxml_deserializeDocumentHealthCheckVersionMismatch(v **types.HealthCh } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12845,7 +12841,7 @@ func awsRestxml_deserializeDocumentHostedZone(v **types.HostedZone, decoder smit } if val != nil { xtv := string(val) - sv.CallerReference = &xtv + sv.CallerReference = ptr.String(xtv) } case strings.EqualFold("Config", t.Name.Local): @@ -12867,7 +12863,7 @@ func awsRestxml_deserializeDocumentHostedZone(v **types.HostedZone, decoder smit } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("LinkedService", t.Name.Local): @@ -12889,7 +12885,7 @@ func awsRestxml_deserializeDocumentHostedZone(v **types.HostedZone, decoder smit } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("ResourceRecordSetCount", t.Name.Local): @@ -12906,7 +12902,7 @@ func awsRestxml_deserializeDocumentHostedZone(v **types.HostedZone, decoder smit if err != nil { return err } - sv.ResourceRecordSetCount = &i64 + sv.ResourceRecordSetCount = ptr.Int64(i64) } default: @@ -12954,7 +12950,7 @@ func awsRestxml_deserializeDocumentHostedZoneAlreadyExists(v **types.HostedZoneA } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13002,7 +12998,7 @@ func awsRestxml_deserializeDocumentHostedZoneConfig(v **types.HostedZoneConfig, } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("PrivateZone", t.Name.Local): @@ -13018,7 +13014,7 @@ func awsRestxml_deserializeDocumentHostedZoneConfig(v **types.HostedZoneConfig, if err != nil { return fmt.Errorf("expected IsPrivateZone to be of type *bool, got %T instead", val) } - sv.PrivateZone = &xtv + sv.PrivateZone = xtv } default: @@ -13080,7 +13076,7 @@ func awsRestxml_deserializeDocumentHostedZoneLimit(v **types.HostedZoneLimit, de if err != nil { return err } - sv.Value = &i64 + sv.Value = i64 } default: @@ -13128,7 +13124,7 @@ func awsRestxml_deserializeDocumentHostedZoneNotEmpty(v **types.HostedZoneNotEmp } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13176,7 +13172,7 @@ func awsRestxml_deserializeDocumentHostedZoneNotFound(v **types.HostedZoneNotFou } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13224,7 +13220,7 @@ func awsRestxml_deserializeDocumentHostedZoneNotPrivate(v **types.HostedZoneNotP } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13272,7 +13268,7 @@ func awsRestxml_deserializeDocumentHostedZoneOwner(v **types.HostedZoneOwner, de } if val != nil { xtv := string(val) - sv.OwningAccount = &xtv + sv.OwningAccount = ptr.String(xtv) } case strings.EqualFold("OwningService", t.Name.Local): @@ -13288,7 +13284,7 @@ func awsRestxml_deserializeDocumentHostedZoneOwner(v **types.HostedZoneOwner, de } if val != nil { xtv := string(val) - sv.OwningService = &xtv + sv.OwningService = ptr.String(xtv) } default: @@ -13301,13 +13297,13 @@ func awsRestxml_deserializeDocumentHostedZoneOwner(v **types.HostedZoneOwner, de return nil } -func awsRestxml_deserializeDocumentHostedZones(v *[]*types.HostedZone, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentHostedZones(v *[]types.HostedZone, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.HostedZone + var sv []types.HostedZone if *v == nil { - sv = make([]*types.HostedZone, 0) + sv = make([]types.HostedZone, 0) } else { sv = *v } @@ -13323,11 +13319,13 @@ func awsRestxml_deserializeDocumentHostedZones(v *[]*types.HostedZone, decoder s } for { if strings.EqualFold("HostedZone", t.Name.Local) { - var col *types.HostedZone + var col types.HostedZone nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentHostedZone(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentHostedZone(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13340,35 +13338,37 @@ func awsRestxml_deserializeDocumentHostedZones(v *[]*types.HostedZone, decoder s return nil } -func awsRestxml_deserializeDocumentHostedZonesUnwrapped(v *[]*types.HostedZone, decoder smithyxml.NodeDecoder) error { - var sv []*types.HostedZone +func awsRestxml_deserializeDocumentHostedZonesUnwrapped(v *[]types.HostedZone, decoder smithyxml.NodeDecoder) error { + var sv []types.HostedZone if *v == nil { - sv = make([]*types.HostedZone, 0) + sv = make([]types.HostedZone, 0) } else { sv = *v } switch { default: - var mv *types.HostedZone + var mv types.HostedZone t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentHostedZone(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentHostedZone(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentHostedZoneSummaries(v *[]*types.HostedZoneSummary, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentHostedZoneSummaries(v *[]types.HostedZoneSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.HostedZoneSummary + var sv []types.HostedZoneSummary if *v == nil { - sv = make([]*types.HostedZoneSummary, 0) + sv = make([]types.HostedZoneSummary, 0) } else { sv = *v } @@ -13384,11 +13384,13 @@ func awsRestxml_deserializeDocumentHostedZoneSummaries(v *[]*types.HostedZoneSum } for { if strings.EqualFold("HostedZoneSummary", t.Name.Local) { - var col *types.HostedZoneSummary + var col types.HostedZoneSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentHostedZoneSummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentHostedZoneSummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13401,23 +13403,25 @@ func awsRestxml_deserializeDocumentHostedZoneSummaries(v *[]*types.HostedZoneSum return nil } -func awsRestxml_deserializeDocumentHostedZoneSummariesUnwrapped(v *[]*types.HostedZoneSummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.HostedZoneSummary +func awsRestxml_deserializeDocumentHostedZoneSummariesUnwrapped(v *[]types.HostedZoneSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.HostedZoneSummary if *v == nil { - sv = make([]*types.HostedZoneSummary, 0) + sv = make([]types.HostedZoneSummary, 0) } else { sv = *v } switch { default: - var mv *types.HostedZoneSummary + var mv types.HostedZoneSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentHostedZoneSummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentHostedZoneSummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13458,7 +13462,7 @@ func awsRestxml_deserializeDocumentHostedZoneSummary(v **types.HostedZoneSummary } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -13474,7 +13478,7 @@ func awsRestxml_deserializeDocumentHostedZoneSummary(v **types.HostedZoneSummary } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Owner", t.Name.Local): @@ -13528,7 +13532,7 @@ func awsRestxml_deserializeDocumentIncompatibleVersion(v **types.IncompatibleVer } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13576,7 +13580,7 @@ func awsRestxml_deserializeDocumentInsufficientCloudWatchLogsResourcePolicy(v ** } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13624,7 +13628,7 @@ func awsRestxml_deserializeDocumentInvalidArgument(v **types.InvalidArgument, de } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13672,7 +13676,7 @@ func awsRestxml_deserializeDocumentInvalidChangeBatch(v **types.InvalidChangeBat } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("messages", t.Name.Local): @@ -13726,7 +13730,7 @@ func awsRestxml_deserializeDocumentInvalidDomainName(v **types.InvalidDomainName } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13774,7 +13778,7 @@ func awsRestxml_deserializeDocumentInvalidInput(v **types.InvalidInput, decoder } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13822,7 +13826,7 @@ func awsRestxml_deserializeDocumentInvalidPaginationToken(v **types.InvalidPagin } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13870,7 +13874,7 @@ func awsRestxml_deserializeDocumentInvalidTrafficPolicyDocument(v **types.Invali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13918,7 +13922,7 @@ func awsRestxml_deserializeDocumentInvalidVPCId(v **types.InvalidVPCId, decoder } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13966,7 +13970,7 @@ func awsRestxml_deserializeDocumentLastVPCAssociation(v **types.LastVPCAssociati } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14014,7 +14018,7 @@ func awsRestxml_deserializeDocumentLimitsExceeded(v **types.LimitsExceeded, deco } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14062,7 +14066,7 @@ func awsRestxml_deserializeDocumentLinkedService(v **types.LinkedService, decode } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("ServicePrincipal", t.Name.Local): @@ -14078,7 +14082,7 @@ func awsRestxml_deserializeDocumentLinkedService(v **types.LinkedService, decode } if val != nil { xtv := string(val) - sv.ServicePrincipal = &xtv + sv.ServicePrincipal = ptr.String(xtv) } default: @@ -14126,7 +14130,7 @@ func awsRestxml_deserializeDocumentNoSuchChange(v **types.NoSuchChange, decoder } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14174,7 +14178,7 @@ func awsRestxml_deserializeDocumentNoSuchCloudWatchLogsLogGroup(v **types.NoSuch } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14222,7 +14226,7 @@ func awsRestxml_deserializeDocumentNoSuchDelegationSet(v **types.NoSuchDelegatio } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14270,7 +14274,7 @@ func awsRestxml_deserializeDocumentNoSuchGeoLocation(v **types.NoSuchGeoLocation } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14318,7 +14322,7 @@ func awsRestxml_deserializeDocumentNoSuchHealthCheck(v **types.NoSuchHealthCheck } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14366,7 +14370,7 @@ func awsRestxml_deserializeDocumentNoSuchHostedZone(v **types.NoSuchHostedZone, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14414,7 +14418,7 @@ func awsRestxml_deserializeDocumentNoSuchQueryLoggingConfig(v **types.NoSuchQuer } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14462,7 +14466,7 @@ func awsRestxml_deserializeDocumentNoSuchTrafficPolicy(v **types.NoSuchTrafficPo } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14510,7 +14514,7 @@ func awsRestxml_deserializeDocumentNoSuchTrafficPolicyInstance(v **types.NoSuchT } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14558,7 +14562,7 @@ func awsRestxml_deserializeDocumentNotAuthorizedException(v **types.NotAuthorize } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14606,7 +14610,7 @@ func awsRestxml_deserializeDocumentPriorRequestNotComplete(v **types.PriorReques } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14654,7 +14658,7 @@ func awsRestxml_deserializeDocumentPublicZoneVPCAssociation(v **types.PublicZone } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14702,7 +14706,7 @@ func awsRestxml_deserializeDocumentQueryLoggingConfig(v **types.QueryLoggingConf } if val != nil { xtv := string(val) - sv.CloudWatchLogsLogGroupArn = &xtv + sv.CloudWatchLogsLogGroupArn = ptr.String(xtv) } case strings.EqualFold("HostedZoneId", t.Name.Local): @@ -14718,7 +14722,7 @@ func awsRestxml_deserializeDocumentQueryLoggingConfig(v **types.QueryLoggingConf } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -14734,7 +14738,7 @@ func awsRestxml_deserializeDocumentQueryLoggingConfig(v **types.QueryLoggingConf } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } default: @@ -14782,7 +14786,7 @@ func awsRestxml_deserializeDocumentQueryLoggingConfigAlreadyExists(v **types.Que } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -14795,13 +14799,13 @@ func awsRestxml_deserializeDocumentQueryLoggingConfigAlreadyExists(v **types.Que return nil } -func awsRestxml_deserializeDocumentQueryLoggingConfigs(v *[]*types.QueryLoggingConfig, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentQueryLoggingConfigs(v *[]types.QueryLoggingConfig, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.QueryLoggingConfig + var sv []types.QueryLoggingConfig if *v == nil { - sv = make([]*types.QueryLoggingConfig, 0) + sv = make([]types.QueryLoggingConfig, 0) } else { sv = *v } @@ -14817,11 +14821,13 @@ func awsRestxml_deserializeDocumentQueryLoggingConfigs(v *[]*types.QueryLoggingC } for { if strings.EqualFold("QueryLoggingConfig", t.Name.Local) { - var col *types.QueryLoggingConfig + var col types.QueryLoggingConfig nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentQueryLoggingConfig(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentQueryLoggingConfig(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14834,35 +14840,37 @@ func awsRestxml_deserializeDocumentQueryLoggingConfigs(v *[]*types.QueryLoggingC return nil } -func awsRestxml_deserializeDocumentQueryLoggingConfigsUnwrapped(v *[]*types.QueryLoggingConfig, decoder smithyxml.NodeDecoder) error { - var sv []*types.QueryLoggingConfig +func awsRestxml_deserializeDocumentQueryLoggingConfigsUnwrapped(v *[]types.QueryLoggingConfig, decoder smithyxml.NodeDecoder) error { + var sv []types.QueryLoggingConfig if *v == nil { - sv = make([]*types.QueryLoggingConfig, 0) + sv = make([]types.QueryLoggingConfig, 0) } else { sv = *v } switch { default: - var mv *types.QueryLoggingConfig + var mv types.QueryLoggingConfig t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentQueryLoggingConfig(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentQueryLoggingConfig(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentRecordData(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentRecordData(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -14880,20 +14888,17 @@ func awsRestxml_deserializeDocumentRecordData(v *[]*string, decoder smithyxml.No decoder = memberDecoder for { if strings.EqualFold("RecordDataEntry", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -14906,17 +14911,17 @@ func awsRestxml_deserializeDocumentRecordData(v *[]*string, decoder smithyxml.No return nil } -func awsRestxml_deserializeDocumentRecordDataUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentRecordDataUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -14924,14 +14929,11 @@ func awsRestxml_deserializeDocumentRecordDataUnwrapped(v *[]*string, decoder smi return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -14973,7 +14975,7 @@ func awsRestxml_deserializeDocumentResourceRecord(v **types.ResourceRecord, deco } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -14986,13 +14988,13 @@ func awsRestxml_deserializeDocumentResourceRecord(v **types.ResourceRecord, deco return nil } -func awsRestxml_deserializeDocumentResourceRecords(v *[]*types.ResourceRecord, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentResourceRecords(v *[]types.ResourceRecord, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ResourceRecord + var sv []types.ResourceRecord if *v == nil { - sv = make([]*types.ResourceRecord, 0) + sv = make([]types.ResourceRecord, 0) } else { sv = *v } @@ -15008,11 +15010,13 @@ func awsRestxml_deserializeDocumentResourceRecords(v *[]*types.ResourceRecord, d } for { if strings.EqualFold("ResourceRecord", t.Name.Local) { - var col *types.ResourceRecord + var col types.ResourceRecord nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentResourceRecord(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentResourceRecord(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15025,23 +15029,25 @@ func awsRestxml_deserializeDocumentResourceRecords(v *[]*types.ResourceRecord, d return nil } -func awsRestxml_deserializeDocumentResourceRecordsUnwrapped(v *[]*types.ResourceRecord, decoder smithyxml.NodeDecoder) error { - var sv []*types.ResourceRecord +func awsRestxml_deserializeDocumentResourceRecordsUnwrapped(v *[]types.ResourceRecord, decoder smithyxml.NodeDecoder) error { + var sv []types.ResourceRecord if *v == nil { - sv = make([]*types.ResourceRecord, 0) + sv = make([]types.ResourceRecord, 0) } else { sv = *v } switch { default: - var mv *types.ResourceRecord + var mv types.ResourceRecord t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentResourceRecord(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentResourceRecord(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15107,7 +15113,7 @@ func awsRestxml_deserializeDocumentResourceRecordSet(v **types.ResourceRecordSet } if val != nil { xtv := string(val) - sv.HealthCheckId = &xtv + sv.HealthCheckId = ptr.String(xtv) } case strings.EqualFold("MultiValueAnswer", t.Name.Local): @@ -15123,7 +15129,7 @@ func awsRestxml_deserializeDocumentResourceRecordSet(v **types.ResourceRecordSet if err != nil { return fmt.Errorf("expected ResourceRecordSetMultiValueAnswer to be of type *bool, got %T instead", val) } - sv.MultiValueAnswer = &xtv + sv.MultiValueAnswer = ptr.Bool(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -15139,7 +15145,7 @@ func awsRestxml_deserializeDocumentResourceRecordSet(v **types.ResourceRecordSet } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Region", t.Name.Local): @@ -15174,7 +15180,7 @@ func awsRestxml_deserializeDocumentResourceRecordSet(v **types.ResourceRecordSet } if val != nil { xtv := string(val) - sv.SetIdentifier = &xtv + sv.SetIdentifier = ptr.String(xtv) } case strings.EqualFold("TrafficPolicyInstanceId", t.Name.Local): @@ -15190,7 +15196,7 @@ func awsRestxml_deserializeDocumentResourceRecordSet(v **types.ResourceRecordSet } if val != nil { xtv := string(val) - sv.TrafficPolicyInstanceId = &xtv + sv.TrafficPolicyInstanceId = ptr.String(xtv) } case strings.EqualFold("TTL", t.Name.Local): @@ -15207,7 +15213,7 @@ func awsRestxml_deserializeDocumentResourceRecordSet(v **types.ResourceRecordSet if err != nil { return err } - sv.TTL = &i64 + sv.TTL = ptr.Int64(i64) } case strings.EqualFold("Type", t.Name.Local): @@ -15237,7 +15243,7 @@ func awsRestxml_deserializeDocumentResourceRecordSet(v **types.ResourceRecordSet if err != nil { return err } - sv.Weight = &i64 + sv.Weight = ptr.Int64(i64) } default: @@ -15250,13 +15256,13 @@ func awsRestxml_deserializeDocumentResourceRecordSet(v **types.ResourceRecordSet return nil } -func awsRestxml_deserializeDocumentResourceRecordSets(v *[]*types.ResourceRecordSet, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentResourceRecordSets(v *[]types.ResourceRecordSet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ResourceRecordSet + var sv []types.ResourceRecordSet if *v == nil { - sv = make([]*types.ResourceRecordSet, 0) + sv = make([]types.ResourceRecordSet, 0) } else { sv = *v } @@ -15272,11 +15278,13 @@ func awsRestxml_deserializeDocumentResourceRecordSets(v *[]*types.ResourceRecord } for { if strings.EqualFold("ResourceRecordSet", t.Name.Local) { - var col *types.ResourceRecordSet + var col types.ResourceRecordSet nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentResourceRecordSet(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentResourceRecordSet(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15289,23 +15297,25 @@ func awsRestxml_deserializeDocumentResourceRecordSets(v *[]*types.ResourceRecord return nil } -func awsRestxml_deserializeDocumentResourceRecordSetsUnwrapped(v *[]*types.ResourceRecordSet, decoder smithyxml.NodeDecoder) error { - var sv []*types.ResourceRecordSet +func awsRestxml_deserializeDocumentResourceRecordSetsUnwrapped(v *[]types.ResourceRecordSet, decoder smithyxml.NodeDecoder) error { + var sv []types.ResourceRecordSet if *v == nil { - sv = make([]*types.ResourceRecordSet, 0) + sv = make([]types.ResourceRecordSet, 0) } else { sv = *v } switch { default: - var mv *types.ResourceRecordSet + var mv types.ResourceRecordSet t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentResourceRecordSet(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentResourceRecordSet(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15346,7 +15356,7 @@ func awsRestxml_deserializeDocumentResourceTagSet(v **types.ResourceTagSet, deco } if val != nil { xtv := string(val) - sv.ResourceId = &xtv + sv.ResourceId = ptr.String(xtv) } case strings.EqualFold("ResourceType", t.Name.Local): @@ -15378,13 +15388,13 @@ func awsRestxml_deserializeDocumentResourceTagSet(v **types.ResourceTagSet, deco return nil } -func awsRestxml_deserializeDocumentResourceTagSetList(v *[]*types.ResourceTagSet, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentResourceTagSetList(v *[]types.ResourceTagSet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ResourceTagSet + var sv []types.ResourceTagSet if *v == nil { - sv = make([]*types.ResourceTagSet, 0) + sv = make([]types.ResourceTagSet, 0) } else { sv = *v } @@ -15400,11 +15410,13 @@ func awsRestxml_deserializeDocumentResourceTagSetList(v *[]*types.ResourceTagSet } for { if strings.EqualFold("ResourceTagSet", t.Name.Local) { - var col *types.ResourceTagSet + var col types.ResourceTagSet nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentResourceTagSet(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentResourceTagSet(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15417,23 +15429,25 @@ func awsRestxml_deserializeDocumentResourceTagSetList(v *[]*types.ResourceTagSet return nil } -func awsRestxml_deserializeDocumentResourceTagSetListUnwrapped(v *[]*types.ResourceTagSet, decoder smithyxml.NodeDecoder) error { - var sv []*types.ResourceTagSet +func awsRestxml_deserializeDocumentResourceTagSetListUnwrapped(v *[]types.ResourceTagSet, decoder smithyxml.NodeDecoder) error { + var sv []types.ResourceTagSet if *v == nil { - sv = make([]*types.ResourceTagSet, 0) + sv = make([]types.ResourceTagSet, 0) } else { sv = *v } switch { default: - var mv *types.ResourceTagSet + var mv types.ResourceTagSet t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentResourceTagSet(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentResourceTagSet(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15488,7 +15502,7 @@ func awsRestxml_deserializeDocumentReusableDelegationSetLimit(v **types.Reusable if err != nil { return err } - sv.Value = &i64 + sv.Value = i64 } default: @@ -15537,7 +15551,7 @@ func awsRestxml_deserializeDocumentStatusReport(v **types.StatusReport, decoder if err != nil { return err } - sv.CheckedTime = &t + sv.CheckedTime = ptr.Time(t) } case strings.EqualFold("Status", t.Name.Local): @@ -15553,7 +15567,7 @@ func awsRestxml_deserializeDocumentStatusReport(v **types.StatusReport, decoder } if val != nil { xtv := string(val) - sv.Status = &xtv + sv.Status = ptr.String(xtv) } default: @@ -15601,7 +15615,7 @@ func awsRestxml_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDeco } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -15617,7 +15631,7 @@ func awsRestxml_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDeco } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -15630,13 +15644,13 @@ func awsRestxml_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDeco return nil } -func awsRestxml_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -15652,11 +15666,13 @@ func awsRestxml_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.No } for { if strings.EqualFold("Tag", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15669,23 +15685,25 @@ func awsRestxml_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.No return nil } -func awsRestxml_deserializeDocumentTagListUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsRestxml_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15726,7 +15744,7 @@ func awsRestxml_deserializeDocumentThrottlingException(v **types.ThrottlingExcep } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15774,7 +15792,7 @@ func awsRestxml_deserializeDocumentTooManyHealthChecks(v **types.TooManyHealthCh } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15822,7 +15840,7 @@ func awsRestxml_deserializeDocumentTooManyHostedZones(v **types.TooManyHostedZon } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15870,7 +15888,7 @@ func awsRestxml_deserializeDocumentTooManyTrafficPolicies(v **types.TooManyTraff } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15918,7 +15936,7 @@ func awsRestxml_deserializeDocumentTooManyTrafficPolicyInstances(v **types.TooMa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -15966,7 +15984,7 @@ func awsRestxml_deserializeDocumentTooManyTrafficPolicyVersionsForCurrentPolicy( } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16014,7 +16032,7 @@ func awsRestxml_deserializeDocumentTooManyVPCAssociationAuthorizations(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16027,13 +16045,13 @@ func awsRestxml_deserializeDocumentTooManyVPCAssociationAuthorizations(v **types return nil } -func awsRestxml_deserializeDocumentTrafficPolicies(v *[]*types.TrafficPolicy, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTrafficPolicies(v *[]types.TrafficPolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TrafficPolicy + var sv []types.TrafficPolicy if *v == nil { - sv = make([]*types.TrafficPolicy, 0) + sv = make([]types.TrafficPolicy, 0) } else { sv = *v } @@ -16049,11 +16067,13 @@ func awsRestxml_deserializeDocumentTrafficPolicies(v *[]*types.TrafficPolicy, de } for { if strings.EqualFold("TrafficPolicy", t.Name.Local) { - var col *types.TrafficPolicy + var col types.TrafficPolicy nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTrafficPolicy(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentTrafficPolicy(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16066,23 +16086,25 @@ func awsRestxml_deserializeDocumentTrafficPolicies(v *[]*types.TrafficPolicy, de return nil } -func awsRestxml_deserializeDocumentTrafficPoliciesUnwrapped(v *[]*types.TrafficPolicy, decoder smithyxml.NodeDecoder) error { - var sv []*types.TrafficPolicy +func awsRestxml_deserializeDocumentTrafficPoliciesUnwrapped(v *[]types.TrafficPolicy, decoder smithyxml.NodeDecoder) error { + var sv []types.TrafficPolicy if *v == nil { - sv = make([]*types.TrafficPolicy, 0) + sv = make([]types.TrafficPolicy, 0) } else { sv = *v } switch { default: - var mv *types.TrafficPolicy + var mv types.TrafficPolicy t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTrafficPolicy(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentTrafficPolicy(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16123,7 +16145,7 @@ func awsRestxml_deserializeDocumentTrafficPolicy(v **types.TrafficPolicy, decode } if val != nil { xtv := string(val) - sv.Comment = &xtv + sv.Comment = ptr.String(xtv) } case strings.EqualFold("Document", t.Name.Local): @@ -16139,7 +16161,7 @@ func awsRestxml_deserializeDocumentTrafficPolicy(v **types.TrafficPolicy, decode } if val != nil { xtv := string(val) - sv.Document = &xtv + sv.Document = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -16155,7 +16177,7 @@ func awsRestxml_deserializeDocumentTrafficPolicy(v **types.TrafficPolicy, decode } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -16171,7 +16193,7 @@ func awsRestxml_deserializeDocumentTrafficPolicy(v **types.TrafficPolicy, decode } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Type", t.Name.Local): @@ -16249,7 +16271,7 @@ func awsRestxml_deserializeDocumentTrafficPolicyAlreadyExists(v **types.TrafficP } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16297,7 +16319,7 @@ func awsRestxml_deserializeDocumentTrafficPolicyInstance(v **types.TrafficPolicy } if val != nil { xtv := string(val) - sv.HostedZoneId = &xtv + sv.HostedZoneId = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -16313,7 +16335,7 @@ func awsRestxml_deserializeDocumentTrafficPolicyInstance(v **types.TrafficPolicy } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -16329,7 +16351,7 @@ func awsRestxml_deserializeDocumentTrafficPolicyInstance(v **types.TrafficPolicy } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -16345,7 +16367,7 @@ func awsRestxml_deserializeDocumentTrafficPolicyInstance(v **types.TrafficPolicy } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("State", t.Name.Local): @@ -16361,7 +16383,7 @@ func awsRestxml_deserializeDocumentTrafficPolicyInstance(v **types.TrafficPolicy } if val != nil { xtv := string(val) - sv.State = &xtv + sv.State = ptr.String(xtv) } case strings.EqualFold("TrafficPolicyId", t.Name.Local): @@ -16377,7 +16399,7 @@ func awsRestxml_deserializeDocumentTrafficPolicyInstance(v **types.TrafficPolicy } if val != nil { xtv := string(val) - sv.TrafficPolicyId = &xtv + sv.TrafficPolicyId = ptr.String(xtv) } case strings.EqualFold("TrafficPolicyType", t.Name.Local): @@ -16424,7 +16446,7 @@ func awsRestxml_deserializeDocumentTrafficPolicyInstance(v **types.TrafficPolicy if err != nil { return err } - sv.TTL = &i64 + sv.TTL = ptr.Int64(i64) } default: @@ -16472,7 +16494,7 @@ func awsRestxml_deserializeDocumentTrafficPolicyInstanceAlreadyExists(v **types. } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16485,13 +16507,13 @@ func awsRestxml_deserializeDocumentTrafficPolicyInstanceAlreadyExists(v **types. return nil } -func awsRestxml_deserializeDocumentTrafficPolicyInstances(v *[]*types.TrafficPolicyInstance, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTrafficPolicyInstances(v *[]types.TrafficPolicyInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TrafficPolicyInstance + var sv []types.TrafficPolicyInstance if *v == nil { - sv = make([]*types.TrafficPolicyInstance, 0) + sv = make([]types.TrafficPolicyInstance, 0) } else { sv = *v } @@ -16507,11 +16529,13 @@ func awsRestxml_deserializeDocumentTrafficPolicyInstances(v *[]*types.TrafficPol } for { if strings.EqualFold("TrafficPolicyInstance", t.Name.Local) { - var col *types.TrafficPolicyInstance + var col types.TrafficPolicyInstance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTrafficPolicyInstance(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentTrafficPolicyInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16524,23 +16548,25 @@ func awsRestxml_deserializeDocumentTrafficPolicyInstances(v *[]*types.TrafficPol return nil } -func awsRestxml_deserializeDocumentTrafficPolicyInstancesUnwrapped(v *[]*types.TrafficPolicyInstance, decoder smithyxml.NodeDecoder) error { - var sv []*types.TrafficPolicyInstance +func awsRestxml_deserializeDocumentTrafficPolicyInstancesUnwrapped(v *[]types.TrafficPolicyInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.TrafficPolicyInstance if *v == nil { - sv = make([]*types.TrafficPolicyInstance, 0) + sv = make([]types.TrafficPolicyInstance, 0) } else { sv = *v } switch { default: - var mv *types.TrafficPolicyInstance + var mv types.TrafficPolicyInstance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTrafficPolicyInstance(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentTrafficPolicyInstance(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16581,7 +16607,7 @@ func awsRestxml_deserializeDocumentTrafficPolicyInUse(v **types.TrafficPolicyInU } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16594,13 +16620,13 @@ func awsRestxml_deserializeDocumentTrafficPolicyInUse(v **types.TrafficPolicyInU return nil } -func awsRestxml_deserializeDocumentTrafficPolicySummaries(v *[]*types.TrafficPolicySummary, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTrafficPolicySummaries(v *[]types.TrafficPolicySummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TrafficPolicySummary + var sv []types.TrafficPolicySummary if *v == nil { - sv = make([]*types.TrafficPolicySummary, 0) + sv = make([]types.TrafficPolicySummary, 0) } else { sv = *v } @@ -16616,11 +16642,13 @@ func awsRestxml_deserializeDocumentTrafficPolicySummaries(v *[]*types.TrafficPol } for { if strings.EqualFold("TrafficPolicySummary", t.Name.Local) { - var col *types.TrafficPolicySummary + var col types.TrafficPolicySummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTrafficPolicySummary(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentTrafficPolicySummary(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16633,23 +16661,25 @@ func awsRestxml_deserializeDocumentTrafficPolicySummaries(v *[]*types.TrafficPol return nil } -func awsRestxml_deserializeDocumentTrafficPolicySummariesUnwrapped(v *[]*types.TrafficPolicySummary, decoder smithyxml.NodeDecoder) error { - var sv []*types.TrafficPolicySummary +func awsRestxml_deserializeDocumentTrafficPolicySummariesUnwrapped(v *[]types.TrafficPolicySummary, decoder smithyxml.NodeDecoder) error { + var sv []types.TrafficPolicySummary if *v == nil { - sv = make([]*types.TrafficPolicySummary, 0) + sv = make([]types.TrafficPolicySummary, 0) } else { sv = *v } switch { default: - var mv *types.TrafficPolicySummary + var mv types.TrafficPolicySummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTrafficPolicySummary(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentTrafficPolicySummary(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16690,7 +16720,7 @@ func awsRestxml_deserializeDocumentTrafficPolicySummary(v **types.TrafficPolicyS } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("LatestVersion", t.Name.Local): @@ -16723,7 +16753,7 @@ func awsRestxml_deserializeDocumentTrafficPolicySummary(v **types.TrafficPolicyS } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("TrafficPolicyCount", t.Name.Local): @@ -16801,7 +16831,7 @@ func awsRestxml_deserializeDocumentVPC(v **types.VPC, decoder smithyxml.NodeDeco } if val != nil { xtv := string(val) - sv.VPCId = &xtv + sv.VPCId = ptr.String(xtv) } case strings.EqualFold("VPCRegion", t.Name.Local): @@ -16862,7 +16892,7 @@ func awsRestxml_deserializeDocumentVPCAssociationAuthorizationNotFound(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16910,7 +16940,7 @@ func awsRestxml_deserializeDocumentVPCAssociationNotFound(v **types.VPCAssociati } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -16923,13 +16953,13 @@ func awsRestxml_deserializeDocumentVPCAssociationNotFound(v **types.VPCAssociati return nil } -func awsRestxml_deserializeDocumentVPCs(v *[]*types.VPC, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentVPCs(v *[]types.VPC, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.VPC + var sv []types.VPC if *v == nil { - sv = make([]*types.VPC, 0) + sv = make([]types.VPC, 0) } else { sv = *v } @@ -16945,11 +16975,13 @@ func awsRestxml_deserializeDocumentVPCs(v *[]*types.VPC, decoder smithyxml.NodeD } for { if strings.EqualFold("VPC", t.Name.Local) { - var col *types.VPC + var col types.VPC nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentVPC(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentVPC(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16962,23 +16994,25 @@ func awsRestxml_deserializeDocumentVPCs(v *[]*types.VPC, decoder smithyxml.NodeD return nil } -func awsRestxml_deserializeDocumentVPCsUnwrapped(v *[]*types.VPC, decoder smithyxml.NodeDecoder) error { - var sv []*types.VPC +func awsRestxml_deserializeDocumentVPCsUnwrapped(v *[]types.VPC, decoder smithyxml.NodeDecoder) error { + var sv []types.VPC if *v == nil { - sv = make([]*types.VPC, 0) + sv = make([]types.VPC, 0) } else { sv = *v } switch { default: - var mv *types.VPC + var mv types.VPC t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentVPC(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentVPC(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv diff --git a/service/route53/go.mod b/service/route53/go.mod index b3f6016c907..d144e4e0c34 100644 --- a/service/route53/go.mod +++ b/service/route53/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/route53 go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/route53/internal/customizations/custom_error_deser.go b/service/route53/internal/customizations/custom_error_deser.go index f92ed468be3..423e821304d 100644 --- a/service/route53/internal/customizations/custom_error_deser.go +++ b/service/route53/internal/customizations/custom_error_deser.go @@ -90,6 +90,6 @@ func route53CustomErrorDeser(metadata *middleware.Metadata, response *smithyhttp return &types.InvalidChangeBatch{ Message: ptr.String("ChangeBatch errors occurred"), - Messages: ptr.StringSlice(err.Messages), + Messages: err.Messages, } } diff --git a/service/route53/internal/customizations/custom_error_deser_test.go b/service/route53/internal/customizations/custom_error_deser_test.go index 3dcc173fe6b..7f993766814 100644 --- a/service/route53/internal/customizations/custom_error_deser_test.go +++ b/service/route53/internal/customizations/custom_error_deser_test.go @@ -84,7 +84,7 @@ func TestCustomErrorDeserialization(t *testing.T) { }) resp, err := svc.ChangeResourceRecordSets(context.Background(), &route53.ChangeResourceRecordSetsInput{ ChangeBatch: &types.ChangeBatch{ - Changes: []*types.Change{}, + Changes: []types.Change{}, Comment: aws.String("mock"), }, HostedZoneId: aws.String("zone"), diff --git a/service/route53/serializers.go b/service/route53/serializers.go index 96a01701171..b2e44e1e9ce 100644 --- a/service/route53/serializers.go +++ b/service/route53/serializers.go @@ -83,13 +83,10 @@ func awsRestxml_serializeOpHttpBindingsAssociateVPCWithHostedZoneInput(v *Associ return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HostedZoneId == nil { + if v.HostedZoneId == nil || len(*v.HostedZoneId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} } if v.HostedZoneId != nil { - if len(*v.HostedZoneId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} - } if err := encoder.SetURI("HostedZoneId").String(*v.HostedZoneId); err != nil { return err } @@ -196,13 +193,10 @@ func awsRestxml_serializeOpHttpBindingsChangeResourceRecordSetsInput(v *ChangeRe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HostedZoneId == nil { + if v.HostedZoneId == nil || len(*v.HostedZoneId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} } if v.HostedZoneId != nil { - if len(*v.HostedZoneId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} - } if err := encoder.SetURI("HostedZoneId").String(*v.HostedZoneId); err != nil { return err } @@ -298,13 +292,10 @@ func awsRestxml_serializeOpHttpBindingsChangeTagsForResourceInput(v *ChangeTagsF return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} - } if err := encoder.SetURI("ResourceId").String(*v.ResourceId); err != nil { return err } @@ -314,9 +305,6 @@ func awsRestxml_serializeOpHttpBindingsChangeTagsForResourceInput(v *ChangeTagsF return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceType must not be empty")} } if len(v.ResourceType) > 0 { - if len(string(v.ResourceType)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceType must not be empty")} - } if err := encoder.SetURI("ResourceType").String(string(v.ResourceType)); err != nil { return err } @@ -1078,13 +1066,10 @@ func awsRestxml_serializeOpHttpBindingsCreateTrafficPolicyVersionInput(v *Create return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1189,13 +1174,10 @@ func awsRestxml_serializeOpHttpBindingsCreateVPCAssociationAuthorizationInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HostedZoneId == nil { + if v.HostedZoneId == nil || len(*v.HostedZoneId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} } if v.HostedZoneId != nil { - if len(*v.HostedZoneId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} - } if err := encoder.SetURI("HostedZoneId").String(*v.HostedZoneId); err != nil { return err } @@ -1273,13 +1255,10 @@ func awsRestxml_serializeOpHttpBindingsDeleteHealthCheckInput(v *DeleteHealthChe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HealthCheckId == nil { + if v.HealthCheckId == nil || len(*v.HealthCheckId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HealthCheckId must not be empty")} } if v.HealthCheckId != nil { - if len(*v.HealthCheckId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HealthCheckId must not be empty")} - } if err := encoder.SetURI("HealthCheckId").String(*v.HealthCheckId); err != nil { return err } @@ -1339,13 +1318,10 @@ func awsRestxml_serializeOpHttpBindingsDeleteHostedZoneInput(v *DeleteHostedZone return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1405,13 +1381,10 @@ func awsRestxml_serializeOpHttpBindingsDeleteQueryLoggingConfigInput(v *DeleteQu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1471,13 +1444,10 @@ func awsRestxml_serializeOpHttpBindingsDeleteReusableDelegationSetInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1537,13 +1507,10 @@ func awsRestxml_serializeOpHttpBindingsDeleteTrafficPolicyInput(v *DeleteTraffic return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1612,13 +1579,10 @@ func awsRestxml_serializeOpHttpBindingsDeleteTrafficPolicyInstanceInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -1696,13 +1660,10 @@ func awsRestxml_serializeOpHttpBindingsDeleteVPCAssociationAuthorizationInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HostedZoneId == nil { + if v.HostedZoneId == nil || len(*v.HostedZoneId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} } if v.HostedZoneId != nil { - if len(*v.HostedZoneId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} - } if err := encoder.SetURI("HostedZoneId").String(*v.HostedZoneId); err != nil { return err } @@ -1798,13 +1759,10 @@ func awsRestxml_serializeOpHttpBindingsDisassociateVPCFromHostedZoneInput(v *Dis return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HostedZoneId == nil { + if v.HostedZoneId == nil || len(*v.HostedZoneId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} } if v.HostedZoneId != nil { - if len(*v.HostedZoneId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} - } if err := encoder.SetURI("HostedZoneId").String(*v.HostedZoneId); err != nil { return err } @@ -1897,9 +1855,6 @@ func awsRestxml_serializeOpHttpBindingsGetAccountLimitInput(v *GetAccountLimitIn return &smithy.SerializationError{Err: fmt.Errorf("input member Type must not be empty")} } if len(v.Type) > 0 { - if len(string(v.Type)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Type must not be empty")} - } if err := encoder.SetURI("Type").String(string(v.Type)); err != nil { return err } @@ -1959,13 +1914,10 @@ func awsRestxml_serializeOpHttpBindingsGetChangeInput(v *GetChangeInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2141,13 +2093,10 @@ func awsRestxml_serializeOpHttpBindingsGetHealthCheckInput(v *GetHealthCheckInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HealthCheckId == nil { + if v.HealthCheckId == nil || len(*v.HealthCheckId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HealthCheckId must not be empty")} } if v.HealthCheckId != nil { - if len(*v.HealthCheckId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HealthCheckId must not be empty")} - } if err := encoder.SetURI("HealthCheckId").String(*v.HealthCheckId); err != nil { return err } @@ -2257,13 +2206,10 @@ func awsRestxml_serializeOpHttpBindingsGetHealthCheckLastFailureReasonInput(v *G return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HealthCheckId == nil { + if v.HealthCheckId == nil || len(*v.HealthCheckId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HealthCheckId must not be empty")} } if v.HealthCheckId != nil { - if len(*v.HealthCheckId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HealthCheckId must not be empty")} - } if err := encoder.SetURI("HealthCheckId").String(*v.HealthCheckId); err != nil { return err } @@ -2323,13 +2269,10 @@ func awsRestxml_serializeOpHttpBindingsGetHealthCheckStatusInput(v *GetHealthChe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HealthCheckId == nil { + if v.HealthCheckId == nil || len(*v.HealthCheckId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HealthCheckId must not be empty")} } if v.HealthCheckId != nil { - if len(*v.HealthCheckId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HealthCheckId must not be empty")} - } if err := encoder.SetURI("HealthCheckId").String(*v.HealthCheckId); err != nil { return err } @@ -2389,13 +2332,10 @@ func awsRestxml_serializeOpHttpBindingsGetHostedZoneInput(v *GetHostedZoneInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2505,13 +2445,10 @@ func awsRestxml_serializeOpHttpBindingsGetHostedZoneLimitInput(v *GetHostedZoneL return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HostedZoneId == nil { + if v.HostedZoneId == nil || len(*v.HostedZoneId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} } if v.HostedZoneId != nil { - if len(*v.HostedZoneId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} - } if err := encoder.SetURI("HostedZoneId").String(*v.HostedZoneId); err != nil { return err } @@ -2521,9 +2458,6 @@ func awsRestxml_serializeOpHttpBindingsGetHostedZoneLimitInput(v *GetHostedZoneL return &smithy.SerializationError{Err: fmt.Errorf("input member Type must not be empty")} } if len(v.Type) > 0 { - if len(string(v.Type)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Type must not be empty")} - } if err := encoder.SetURI("Type").String(string(v.Type)); err != nil { return err } @@ -2583,13 +2517,10 @@ func awsRestxml_serializeOpHttpBindingsGetQueryLoggingConfigInput(v *GetQueryLog return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2649,13 +2580,10 @@ func awsRestxml_serializeOpHttpBindingsGetReusableDelegationSetInput(v *GetReusa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2715,13 +2643,10 @@ func awsRestxml_serializeOpHttpBindingsGetReusableDelegationSetLimitInput(v *Get return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DelegationSetId == nil { + if v.DelegationSetId == nil || len(*v.DelegationSetId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DelegationSetId must not be empty")} } if v.DelegationSetId != nil { - if len(*v.DelegationSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DelegationSetId must not be empty")} - } if err := encoder.SetURI("DelegationSetId").String(*v.DelegationSetId); err != nil { return err } @@ -2731,9 +2656,6 @@ func awsRestxml_serializeOpHttpBindingsGetReusableDelegationSetLimitInput(v *Get return &smithy.SerializationError{Err: fmt.Errorf("input member Type must not be empty")} } if len(v.Type) > 0 { - if len(string(v.Type)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Type must not be empty")} - } if err := encoder.SetURI("Type").String(string(v.Type)); err != nil { return err } @@ -2793,13 +2715,10 @@ func awsRestxml_serializeOpHttpBindingsGetTrafficPolicyInput(v *GetTrafficPolicy return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -2868,13 +2787,10 @@ func awsRestxml_serializeOpHttpBindingsGetTrafficPolicyInstanceInput(v *GetTraff return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -3384,13 +3300,10 @@ func awsRestxml_serializeOpHttpBindingsListResourceRecordSetsInput(v *ListResour return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HostedZoneId == nil { + if v.HostedZoneId == nil || len(*v.HostedZoneId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} } if v.HostedZoneId != nil { - if len(*v.HostedZoneId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} - } if err := encoder.SetURI("HostedZoneId").String(*v.HostedZoneId); err != nil { return err } @@ -3528,13 +3441,10 @@ func awsRestxml_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForRe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} - } if err := encoder.SetURI("ResourceId").String(*v.ResourceId); err != nil { return err } @@ -3544,9 +3454,6 @@ func awsRestxml_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForRe return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceType must not be empty")} } if len(v.ResourceType) > 0 { - if len(string(v.ResourceType)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceType must not be empty")} - } if err := encoder.SetURI("ResourceType").String(string(v.ResourceType)); err != nil { return err } @@ -3628,9 +3535,6 @@ func awsRestxml_serializeOpHttpBindingsListTagsForResourcesInput(v *ListTagsForR return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceType must not be empty")} } if len(v.ResourceType) > 0 { - if len(string(v.ResourceType)) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceType must not be empty")} - } if err := encoder.SetURI("ResourceType").String(string(v.ResourceType)); err != nil { return err } @@ -3988,13 +3892,10 @@ func awsRestxml_serializeOpHttpBindingsListTrafficPolicyVersionsInput(v *ListTra return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -4062,13 +3963,10 @@ func awsRestxml_serializeOpHttpBindingsListVPCAssociationAuthorizationsInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HostedZoneId == nil { + if v.HostedZoneId == nil || len(*v.HostedZoneId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} } if v.HostedZoneId != nil { - if len(*v.HostedZoneId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HostedZoneId must not be empty")} - } if err := encoder.SetURI("HostedZoneId").String(*v.HostedZoneId); err != nil { return err } @@ -4232,13 +4130,10 @@ func awsRestxml_serializeOpHttpBindingsUpdateHealthCheckInput(v *UpdateHealthChe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HealthCheckId == nil { + if v.HealthCheckId == nil || len(*v.HealthCheckId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HealthCheckId must not be empty")} } if v.HealthCheckId != nil { - if len(*v.HealthCheckId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HealthCheckId must not be empty")} - } if err := encoder.SetURI("HealthCheckId").String(*v.HealthCheckId); err != nil { return err } @@ -4505,13 +4400,10 @@ func awsRestxml_serializeOpHttpBindingsUpdateHostedZoneCommentInput(v *UpdateHos return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -4605,13 +4497,10 @@ func awsRestxml_serializeOpHttpBindingsUpdateTrafficPolicyCommentInput(v *Update return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -4714,13 +4603,10 @@ func awsRestxml_serializeOpHttpBindingsUpdateTrafficPolicyInstanceInput(v *Updat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil { + if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { - if len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } @@ -4807,7 +4693,7 @@ func awsRestxml_serializeDocumentAliasTarget(v *types.AliasTarget, value smithyx el := value.MemberElement(root) el.String(*v.DNSName) } - if v.EvaluateTargetHealth != nil { + if v.EvaluateTargetHealth { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -4816,7 +4702,7 @@ func awsRestxml_serializeDocumentAliasTarget(v *types.AliasTarget, value smithyx Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.EvaluateTargetHealth) + el.Boolean(v.EvaluateTargetHealth) } if v.HostedZoneId != nil { rootAttr := []smithyxml.Attr{} @@ -4890,7 +4776,7 @@ func awsRestxml_serializeDocumentChangeBatch(v *types.ChangeBatch, value smithyx return nil } -func awsRestxml_serializeDocumentChanges(v []*types.Change, value smithyxml.Value) error { +func awsRestxml_serializeDocumentChanges(v []types.Change, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -4904,20 +4790,15 @@ func awsRestxml_serializeDocumentChanges(v []*types.Change, value smithyxml.Valu } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentChange(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentChange(&v[i], am); err != nil { return err } } return nil } -func awsRestxml_serializeDocumentChildHealthCheckList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentChildHealthCheckList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -4931,13 +4812,8 @@ func awsRestxml_serializeDocumentChildHealthCheckList(v []*string, value smithyx } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -5211,7 +5087,7 @@ func awsRestxml_serializeDocumentHostedZoneConfig(v *types.HostedZoneConfig, val el := value.MemberElement(root) el.String(*v.Comment) } - if v.PrivateZone != nil { + if v.PrivateZone { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -5220,7 +5096,7 @@ func awsRestxml_serializeDocumentHostedZoneConfig(v *types.HostedZoneConfig, val Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.PrivateZone) + el.Boolean(v.PrivateZone) } return nil } @@ -5261,7 +5137,7 @@ func awsRestxml_serializeDocumentResourceRecord(v *types.ResourceRecord, value s return nil } -func awsRestxml_serializeDocumentResourceRecords(v []*types.ResourceRecord, value smithyxml.Value) error { +func awsRestxml_serializeDocumentResourceRecords(v []types.ResourceRecord, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -5275,13 +5151,8 @@ func awsRestxml_serializeDocumentResourceRecords(v []*types.ResourceRecord, valu } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentResourceRecord(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentResourceRecord(&v[i], am); err != nil { return err } } @@ -5469,7 +5340,7 @@ func awsRestxml_serializeDocumentTag(v *types.Tag, value smithyxml.Value) error return nil } -func awsRestxml_serializeDocumentTagKeyList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentTagKeyList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -5483,18 +5354,13 @@ func awsRestxml_serializeDocumentTagKeyList(v []*string, value smithyxml.Value) } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } -func awsRestxml_serializeDocumentTagList(v []*types.Tag, value smithyxml.Value) error { +func awsRestxml_serializeDocumentTagList(v []types.Tag, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -5508,20 +5374,15 @@ func awsRestxml_serializeDocumentTagList(v []*types.Tag, value smithyxml.Value) } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentTag(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentTag(&v[i], am); err != nil { return err } } return nil } -func awsRestxml_serializeDocumentTagResourceIdList(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentTagResourceIdList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -5535,13 +5396,8 @@ func awsRestxml_serializeDocumentTagResourceIdList(v []*string, value smithyxml. } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } diff --git a/service/route53/types/errors.go b/service/route53/types/errors.go index c7db8976bf4..f03d43b5b84 100644 --- a/service/route53/types/errors.go +++ b/service/route53/types/errors.go @@ -374,7 +374,7 @@ func (e *InvalidArgument) ErrorFault() smithy.ErrorFault { return smithy.FaultCl type InvalidChangeBatch struct { Message *string - Messages []*string + Messages []string } func (e *InvalidChangeBatch) Error() string { diff --git a/service/route53/types/types.go b/service/route53/types/types.go index e961ab33286..56623645dff 100644 --- a/service/route53/types/types.go +++ b/service/route53/types/types.go @@ -39,7 +39,7 @@ type AccountLimit struct { // (https://docs.aws.amazon.com/Route53/latest/APIReference/API_AccountLimit.html#Route53-Type-AccountLimit-Type). // // This member is required. - Value *int64 + Value int64 } // A complex type that identifies the CloudWatch alarm that you want Amazon Route @@ -280,7 +280,7 @@ type AliasTarget struct { // the Amazon Route 53 Developer Guide. // // This member is required. - EvaluateTargetHealth *bool + EvaluateTargetHealth bool // Alias resource records sets only: The value used depends on where you want to // route traffic: Amazon API Gateway custom regional APIs and edge-optimized APIs @@ -397,7 +397,7 @@ type ChangeBatch struct { // Information about the changes to make to the record sets. // // This member is required. - Changes []*Change + Changes []Change // Optional: Any comments you want to include about a change batch request. Comment *string @@ -486,7 +486,7 @@ type CloudWatchAlarmConfiguration struct { // Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html) // in the Amazon CloudWatch User Guide. - Dimensions []*Dimension + Dimensions []Dimension } // A complex type that lists the name servers in a delegation set, as well as the @@ -497,7 +497,7 @@ type DelegationSet struct { // hosted zone or for a reusable delegation set. // // This member is required. - NameServers []*string + NameServers []string // The value that you specified for CallerReference when you created the reusable // delegation set. @@ -685,7 +685,7 @@ type HealthCheckConfig struct { // (CALCULATED Health Checks Only) A complex type that contains one // ChildHealthCheck element for each health check that you want to associate with a // CALCULATED health check. - ChildHealthChecks []*string + ChildHealthChecks []string // Stops Route 53 from performing health checks. When you disable a health check, // here's what happens: @@ -968,7 +968,7 @@ type HostedZoneConfig struct { Comment *string // A value that indicates whether this is a private hosted zone. - PrivateZone *bool + PrivateZone bool } // A complex type that contains the type of limit that you specified in the request @@ -990,7 +990,7 @@ type HostedZoneLimit struct { // The current value for the limit that is specified by Type. // // This member is required. - Value *int64 + Value int64 } // A complex type that identifies a hosted zone that a specified Amazon VPC is @@ -1442,7 +1442,7 @@ type ResourceRecordSet struct { // Information about the resource records to act upon. If you're creating an alias // resource record set, omit ResourceRecords. - ResourceRecords []*ResourceRecord + ResourceRecords []ResourceRecord // Resource record sets that have a routing policy other than simple: An identifier // that differentiates among multiple resource record sets that have the same @@ -1539,7 +1539,7 @@ type ResourceTagSet struct { ResourceType TagResourceType // The tags associated with the specified resource. - Tags []*Tag + Tags []Tag } // A complex type that contains the type of limit that you specified in the request @@ -1556,7 +1556,7 @@ type ReusableDelegationSetLimit struct { // The current value for the MAX_ZONES_BY_REUSABLE_DELEGATION_SET limit. // // This member is required. - Value *int64 + Value int64 } // A complex type that contains the status that one Amazon Route 53 health checker diff --git a/service/route53/validators.go b/service/route53/validators.go index dc9c4540413..e14f2229283 100644 --- a/service/route53/validators.go +++ b/service/route53/validators.go @@ -1089,9 +1089,6 @@ func validateAliasTarget(v *types.AliasTarget) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "AliasTarget"} - if v.EvaluateTargetHealth == nil { - invalidParams.Add(smithy.NewErrParamRequired("EvaluateTargetHealth")) - } if v.DNSName == nil { invalidParams.Add(smithy.NewErrParamRequired("DNSName")) } @@ -1146,13 +1143,13 @@ func validateChangeBatch(v *types.ChangeBatch) error { } } -func validateChanges(v []*types.Change) error { +func validateChanges(v []types.Change) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Changes"} for i := range v { - if err := validateChange(v[i]); err != nil { + if err := validateChange(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1198,13 +1195,13 @@ func validateResourceRecord(v *types.ResourceRecord) error { } } -func validateResourceRecords(v []*types.ResourceRecord) error { +func validateResourceRecords(v []types.ResourceRecord) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceRecords"} for i := range v { - if err := validateResourceRecord(v[i]); err != nil { + if err := validateResourceRecord(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/route53domains/api_op_DeleteTagsForDomain.go b/service/route53domains/api_op_DeleteTagsForDomain.go index 05967cc0885..bd1f7a544cc 100644 --- a/service/route53domains/api_op_DeleteTagsForDomain.go +++ b/service/route53domains/api_op_DeleteTagsForDomain.go @@ -39,7 +39,7 @@ type DeleteTagsForDomainInput struct { // A list of tag keys to delete. // // This member is required. - TagsToDelete []*string + TagsToDelete []string } type DeleteTagsForDomainOutput struct { diff --git a/service/route53domains/api_op_GetDomainDetail.go b/service/route53domains/api_op_GetDomainDetail.go index 63b3afac8dd..753e61853ca 100644 --- a/service/route53domains/api_op_GetDomainDetail.go +++ b/service/route53domains/api_op_GetDomainDetail.go @@ -55,7 +55,7 @@ type GetDomainDetailOutput struct { // The name of the domain. // // This member is required. - Nameservers []*types.Nameserver + Nameservers []types.Nameserver // Provides details about the domain registrant. // @@ -130,7 +130,7 @@ type GetDomainDetailOutput struct { // explanation of what each code means, go to the ICANN website // (https://www.icann.org/) and search for epp status codes. (Search on the ICANN // website; web searches sometimes return an old version of the document.) - StatusList []*string + StatusList []string // Specifies whether contact information is concealed from WHOIS queries. If the // value is true, WHOIS ("who is") queries return contact information either for diff --git a/service/route53domains/api_op_GetDomainSuggestions.go b/service/route53domains/api_op_GetDomainSuggestions.go index e58f702251c..be501b19471 100644 --- a/service/route53domains/api_op_GetDomainSuggestions.go +++ b/service/route53domains/api_op_GetDomainSuggestions.go @@ -69,14 +69,14 @@ type GetDomainSuggestionsInput struct { // value between 1 and 50. // // This member is required. - SuggestionCount *int32 + SuggestionCount int32 } type GetDomainSuggestionsOutput struct { // A list of possible domain names. If you specified true for OnlyAvailable in the // request, the list contains only domains that are available for registration. - SuggestionsList []*types.DomainSuggestion + SuggestionsList []types.DomainSuggestion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53domains/api_op_ListDomains.go b/service/route53domains/api_op_ListDomains.go index ce000ba4abd..52a1281f3d2 100644 --- a/service/route53domains/api_op_ListDomains.go +++ b/service/route53domains/api_op_ListDomains.go @@ -49,7 +49,7 @@ type ListDomainsOutput struct { // A summary of domains. // // This member is required. - Domains []*types.DomainSummary + Domains []types.DomainSummary // If there are more domains than you specified for MaxItems in the request, submit // another request and include the value of NextPageMarker in the value of Marker. diff --git a/service/route53domains/api_op_ListOperations.go b/service/route53domains/api_op_ListOperations.go index 0acb1132354..4efeaa90727 100644 --- a/service/route53domains/api_op_ListOperations.go +++ b/service/route53domains/api_op_ListOperations.go @@ -55,7 +55,7 @@ type ListOperationsOutput struct { // Lists summaries of the operations. // // This member is required. - Operations []*types.OperationSummary + Operations []types.OperationSummary // If there are more operations than you specified for MaxItems in the request, // submit another request and include the value of NextPageMarker in the value of diff --git a/service/route53domains/api_op_ListTagsForDomain.go b/service/route53domains/api_op_ListTagsForDomain.go index 82e41ede91f..8a866554c78 100644 --- a/service/route53domains/api_op_ListTagsForDomain.go +++ b/service/route53domains/api_op_ListTagsForDomain.go @@ -44,7 +44,7 @@ type ListTagsForDomainOutput struct { // A list of the tags that are associated with the specified domain. // // This member is required. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53domains/api_op_RenewDomain.go b/service/route53domains/api_op_RenewDomain.go index 211ba7c526a..2a8d0985a3d 100644 --- a/service/route53domains/api_op_RenewDomain.go +++ b/service/route53domains/api_op_RenewDomain.go @@ -41,7 +41,7 @@ type RenewDomainInput struct { // match the current expiration date for the domain. // // This member is required. - CurrentExpiryYear *int32 + CurrentExpiryYear int32 // The name of the domain that you want to renew. // diff --git a/service/route53domains/api_op_TransferDomain.go b/service/route53domains/api_op_TransferDomain.go index 2e1c5fbc16f..7568e2aec1d 100644 --- a/service/route53domains/api_op_TransferDomain.go +++ b/service/route53domains/api_op_TransferDomain.go @@ -120,7 +120,7 @@ type TransferDomainInput struct { IdnLangCode *string // Contains details for the host and glue IP addresses. - Nameservers []*types.Nameserver + Nameservers []types.Nameserver // Whether you want to conceal contact information from WHOIS queries. If you // specify true, WHOIS ("who is") queries return contact information either for diff --git a/service/route53domains/api_op_UpdateDomainNameservers.go b/service/route53domains/api_op_UpdateDomainNameservers.go index 5079e1f312a..3eba9da2f08 100644 --- a/service/route53domains/api_op_UpdateDomainNameservers.go +++ b/service/route53domains/api_op_UpdateDomainNameservers.go @@ -48,7 +48,7 @@ type UpdateDomainNameserversInput struct { // A list of new name servers for the domain. // // This member is required. - Nameservers []*types.Nameserver + Nameservers []types.Nameserver // The authorization key for .fi domains FIAuthKey *string diff --git a/service/route53domains/api_op_UpdateTagsForDomain.go b/service/route53domains/api_op_UpdateTagsForDomain.go index 920990dd0b8..0603211e415 100644 --- a/service/route53domains/api_op_UpdateTagsForDomain.go +++ b/service/route53domains/api_op_UpdateTagsForDomain.go @@ -39,7 +39,7 @@ type UpdateTagsForDomainInput struct { // A list of the tag keys and values that you want to add or update. If you specify // a key that already exists, the corresponding value will be replaced. - TagsToUpdate []*types.Tag + TagsToUpdate []types.Tag } type UpdateTagsForDomainOutput struct { diff --git a/service/route53domains/api_op_ViewBilling.go b/service/route53domains/api_op_ViewBilling.go index b78ac6d90f4..3b9cdae539d 100644 --- a/service/route53domains/api_op_ViewBilling.go +++ b/service/route53domains/api_op_ViewBilling.go @@ -60,7 +60,7 @@ type ViewBillingInput struct { type ViewBillingOutput struct { // A summary of billing records. - BillingRecords []*types.BillingRecord + BillingRecords []types.BillingRecord // If there are more billing records than you specified for MaxItems in the // request, submit another request and include the value of NextPageMarker in the diff --git a/service/route53domains/deserializers.go b/service/route53domains/deserializers.go index 2a0f9f9f707..260aee2abe6 100644 --- a/service/route53domains/deserializers.go +++ b/service/route53domains/deserializers.go @@ -3552,7 +3552,7 @@ func awsAwsjson11_deserializeDocumentBillingRecord(v **types.BillingRecord, valu if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "InvoiceId": @@ -3561,7 +3561,7 @@ func awsAwsjson11_deserializeDocumentBillingRecord(v **types.BillingRecord, valu if !ok { return fmt.Errorf("expected InvoiceId to be of type string, got %T instead", value) } - sv.InvoiceId = &jtv + sv.InvoiceId = ptr.String(jtv) } case "Operation": @@ -3583,7 +3583,7 @@ func awsAwsjson11_deserializeDocumentBillingRecord(v **types.BillingRecord, valu if err != nil { return err } - sv.Price = &f64 + sv.Price = f64 } default: @@ -3595,7 +3595,7 @@ func awsAwsjson11_deserializeDocumentBillingRecord(v **types.BillingRecord, valu return nil } -func awsAwsjson11_deserializeDocumentBillingRecords(v *[]*types.BillingRecord, value interface{}) error { +func awsAwsjson11_deserializeDocumentBillingRecords(v *[]types.BillingRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3608,18 +3608,20 @@ func awsAwsjson11_deserializeDocumentBillingRecords(v *[]*types.BillingRecord, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BillingRecord + var cv []types.BillingRecord if *v == nil { - cv = []*types.BillingRecord{} + cv = []types.BillingRecord{} } else { cv = *v } for _, value := range shape { - var col *types.BillingRecord - if err := awsAwsjson11_deserializeDocumentBillingRecord(&col, value); err != nil { + var col types.BillingRecord + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBillingRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3655,7 +3657,7 @@ func awsAwsjson11_deserializeDocumentContactDetail(v **types.ContactDetail, valu if !ok { return fmt.Errorf("expected AddressLine to be of type string, got %T instead", value) } - sv.AddressLine1 = &jtv + sv.AddressLine1 = ptr.String(jtv) } case "AddressLine2": @@ -3664,7 +3666,7 @@ func awsAwsjson11_deserializeDocumentContactDetail(v **types.ContactDetail, valu if !ok { return fmt.Errorf("expected AddressLine to be of type string, got %T instead", value) } - sv.AddressLine2 = &jtv + sv.AddressLine2 = ptr.String(jtv) } case "City": @@ -3673,7 +3675,7 @@ func awsAwsjson11_deserializeDocumentContactDetail(v **types.ContactDetail, valu if !ok { return fmt.Errorf("expected City to be of type string, got %T instead", value) } - sv.City = &jtv + sv.City = ptr.String(jtv) } case "ContactType": @@ -3700,7 +3702,7 @@ func awsAwsjson11_deserializeDocumentContactDetail(v **types.ContactDetail, valu if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "ExtraParams": @@ -3714,7 +3716,7 @@ func awsAwsjson11_deserializeDocumentContactDetail(v **types.ContactDetail, valu if !ok { return fmt.Errorf("expected ContactNumber to be of type string, got %T instead", value) } - sv.Fax = &jtv + sv.Fax = ptr.String(jtv) } case "FirstName": @@ -3723,7 +3725,7 @@ func awsAwsjson11_deserializeDocumentContactDetail(v **types.ContactDetail, valu if !ok { return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) } - sv.FirstName = &jtv + sv.FirstName = ptr.String(jtv) } case "LastName": @@ -3732,7 +3734,7 @@ func awsAwsjson11_deserializeDocumentContactDetail(v **types.ContactDetail, valu if !ok { return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) } - sv.LastName = &jtv + sv.LastName = ptr.String(jtv) } case "OrganizationName": @@ -3741,7 +3743,7 @@ func awsAwsjson11_deserializeDocumentContactDetail(v **types.ContactDetail, valu if !ok { return fmt.Errorf("expected ContactName to be of type string, got %T instead", value) } - sv.OrganizationName = &jtv + sv.OrganizationName = ptr.String(jtv) } case "PhoneNumber": @@ -3750,7 +3752,7 @@ func awsAwsjson11_deserializeDocumentContactDetail(v **types.ContactDetail, valu if !ok { return fmt.Errorf("expected ContactNumber to be of type string, got %T instead", value) } - sv.PhoneNumber = &jtv + sv.PhoneNumber = ptr.String(jtv) } case "State": @@ -3759,7 +3761,7 @@ func awsAwsjson11_deserializeDocumentContactDetail(v **types.ContactDetail, valu if !ok { return fmt.Errorf("expected State to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } case "ZipCode": @@ -3768,7 +3770,7 @@ func awsAwsjson11_deserializeDocumentContactDetail(v **types.ContactDetail, valu if !ok { return fmt.Errorf("expected ZipCode to be of type string, got %T instead", value) } - sv.ZipCode = &jtv + sv.ZipCode = ptr.String(jtv) } default: @@ -3808,7 +3810,7 @@ func awsAwsjson11_deserializeDocumentDomainLimitExceeded(v **types.DomainLimitEx if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3820,7 +3822,7 @@ func awsAwsjson11_deserializeDocumentDomainLimitExceeded(v **types.DomainLimitEx return nil } -func awsAwsjson11_deserializeDocumentDomainStatusList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDomainStatusList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3833,21 +3835,21 @@ func awsAwsjson11_deserializeDocumentDomainStatusList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DomainStatus to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3884,7 +3886,7 @@ func awsAwsjson11_deserializeDocumentDomainSuggestion(v **types.DomainSuggestion if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Availability = &jtv + sv.Availability = ptr.String(jtv) } case "DomainName": @@ -3893,7 +3895,7 @@ func awsAwsjson11_deserializeDocumentDomainSuggestion(v **types.DomainSuggestion if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } default: @@ -3905,7 +3907,7 @@ func awsAwsjson11_deserializeDocumentDomainSuggestion(v **types.DomainSuggestion return nil } -func awsAwsjson11_deserializeDocumentDomainSuggestionsList(v *[]*types.DomainSuggestion, value interface{}) error { +func awsAwsjson11_deserializeDocumentDomainSuggestionsList(v *[]types.DomainSuggestion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3918,18 +3920,20 @@ func awsAwsjson11_deserializeDocumentDomainSuggestionsList(v *[]*types.DomainSug return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainSuggestion + var cv []types.DomainSuggestion if *v == nil { - cv = []*types.DomainSuggestion{} + cv = []types.DomainSuggestion{} } else { cv = *v } for _, value := range shape { - var col *types.DomainSuggestion - if err := awsAwsjson11_deserializeDocumentDomainSuggestion(&col, value); err != nil { + var col types.DomainSuggestion + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDomainSuggestion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3965,7 +3969,7 @@ func awsAwsjson11_deserializeDocumentDomainSummary(v **types.DomainSummary, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoRenew = &jtv + sv.AutoRenew = ptr.Bool(jtv) } case "DomainName": @@ -3974,7 +3978,7 @@ func awsAwsjson11_deserializeDocumentDomainSummary(v **types.DomainSummary, valu if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "Expiry": @@ -3996,7 +4000,7 @@ func awsAwsjson11_deserializeDocumentDomainSummary(v **types.DomainSummary, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.TransferLock = &jtv + sv.TransferLock = ptr.Bool(jtv) } default: @@ -4008,7 +4012,7 @@ func awsAwsjson11_deserializeDocumentDomainSummary(v **types.DomainSummary, valu return nil } -func awsAwsjson11_deserializeDocumentDomainSummaryList(v *[]*types.DomainSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentDomainSummaryList(v *[]types.DomainSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4021,18 +4025,20 @@ func awsAwsjson11_deserializeDocumentDomainSummaryList(v *[]*types.DomainSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainSummary + var cv []types.DomainSummary if *v == nil { - cv = []*types.DomainSummary{} + cv = []types.DomainSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DomainSummary - if err := awsAwsjson11_deserializeDocumentDomainSummary(&col, value); err != nil { + var col types.DomainSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDomainSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4108,7 +4114,7 @@ func awsAwsjson11_deserializeDocumentDuplicateRequest(v **types.DuplicateRequest if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4157,7 +4163,7 @@ func awsAwsjson11_deserializeDocumentExtraParam(v **types.ExtraParam, value inte if !ok { return fmt.Errorf("expected ExtraParamValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4169,7 +4175,7 @@ func awsAwsjson11_deserializeDocumentExtraParam(v **types.ExtraParam, value inte return nil } -func awsAwsjson11_deserializeDocumentExtraParamList(v *[]*types.ExtraParam, value interface{}) error { +func awsAwsjson11_deserializeDocumentExtraParamList(v *[]types.ExtraParam, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4182,18 +4188,20 @@ func awsAwsjson11_deserializeDocumentExtraParamList(v *[]*types.ExtraParam, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExtraParam + var cv []types.ExtraParam if *v == nil { - cv = []*types.ExtraParam{} + cv = []types.ExtraParam{} } else { cv = *v } for _, value := range shape { - var col *types.ExtraParam - if err := awsAwsjson11_deserializeDocumentExtraParam(&col, value); err != nil { + var col types.ExtraParam + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExtraParam(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4201,7 +4209,7 @@ func awsAwsjson11_deserializeDocumentExtraParamList(v *[]*types.ExtraParam, valu return nil } -func awsAwsjson11_deserializeDocumentGlueIpList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentGlueIpList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4214,21 +4222,21 @@ func awsAwsjson11_deserializeDocumentGlueIpList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected GlueIp to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4265,7 +4273,7 @@ func awsAwsjson11_deserializeDocumentInvalidInput(v **types.InvalidInput, value if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4310,7 +4318,7 @@ func awsAwsjson11_deserializeDocumentNameserver(v **types.Nameserver, value inte if !ok { return fmt.Errorf("expected HostName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -4322,7 +4330,7 @@ func awsAwsjson11_deserializeDocumentNameserver(v **types.Nameserver, value inte return nil } -func awsAwsjson11_deserializeDocumentNameserverList(v *[]*types.Nameserver, value interface{}) error { +func awsAwsjson11_deserializeDocumentNameserverList(v *[]types.Nameserver, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4335,18 +4343,20 @@ func awsAwsjson11_deserializeDocumentNameserverList(v *[]*types.Nameserver, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Nameserver + var cv []types.Nameserver if *v == nil { - cv = []*types.Nameserver{} + cv = []types.Nameserver{} } else { cv = *v } for _, value := range shape { - var col *types.Nameserver - if err := awsAwsjson11_deserializeDocumentNameserver(&col, value); err != nil { + var col types.Nameserver + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNameserver(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4382,7 +4392,7 @@ func awsAwsjson11_deserializeDocumentOperationLimitExceeded(v **types.OperationL if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4422,7 +4432,7 @@ func awsAwsjson11_deserializeDocumentOperationSummary(v **types.OperationSummary if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } case "Status": @@ -4465,7 +4475,7 @@ func awsAwsjson11_deserializeDocumentOperationSummary(v **types.OperationSummary return nil } -func awsAwsjson11_deserializeDocumentOperationSummaryList(v *[]*types.OperationSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentOperationSummaryList(v *[]types.OperationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4478,18 +4488,20 @@ func awsAwsjson11_deserializeDocumentOperationSummaryList(v *[]*types.OperationS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OperationSummary + var cv []types.OperationSummary if *v == nil { - cv = []*types.OperationSummary{} + cv = []types.OperationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.OperationSummary - if err := awsAwsjson11_deserializeDocumentOperationSummary(&col, value); err != nil { + var col types.OperationSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOperationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4525,7 +4537,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -4534,7 +4546,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4546,7 +4558,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4559,18 +4571,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4606,7 +4620,7 @@ func awsAwsjson11_deserializeDocumentTLDRulesViolation(v **types.TLDRulesViolati if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4646,7 +4660,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedTLD(v **types.UnsupportedTLD, va if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4686,7 +4700,7 @@ func awsAwsjson11_deserializeOpDocumentAcceptDomainTransferFromAnotherAwsAccount if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -4726,7 +4740,7 @@ func awsAwsjson11_deserializeOpDocumentCancelDomainTransferToAnotherAwsAccountOu if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -4904,7 +4918,7 @@ func awsAwsjson11_deserializeOpDocumentDisableDomainTransferLockOutput(v **Disab if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -4975,7 +4989,7 @@ func awsAwsjson11_deserializeOpDocumentEnableDomainTransferLockOutput(v **Enable if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -5015,7 +5029,7 @@ func awsAwsjson11_deserializeOpDocumentGetContactReachabilityStatusOutput(v **Ge if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "status": @@ -5064,7 +5078,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainDetailOutput(v **GetDomainDetail if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.AbuseContactEmail = &jtv + sv.AbuseContactEmail = ptr.String(jtv) } case "AbuseContactPhone": @@ -5073,7 +5087,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainDetailOutput(v **GetDomainDetail if !ok { return fmt.Errorf("expected ContactNumber to be of type string, got %T instead", value) } - sv.AbuseContactPhone = &jtv + sv.AbuseContactPhone = ptr.String(jtv) } case "AdminContact": @@ -5087,7 +5101,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainDetailOutput(v **GetDomainDetail if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AdminPrivacy = &jtv + sv.AdminPrivacy = ptr.Bool(jtv) } case "AutoRenew": @@ -5096,7 +5110,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainDetailOutput(v **GetDomainDetail if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoRenew = &jtv + sv.AutoRenew = ptr.Bool(jtv) } case "CreationDate": @@ -5118,7 +5132,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainDetailOutput(v **GetDomainDetail if !ok { return fmt.Errorf("expected DNSSec to be of type string, got %T instead", value) } - sv.DnsSec = &jtv + sv.DnsSec = ptr.String(jtv) } case "DomainName": @@ -5127,7 +5141,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainDetailOutput(v **GetDomainDetail if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "ExpirationDate": @@ -5159,7 +5173,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainDetailOutput(v **GetDomainDetail if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RegistrantPrivacy = &jtv + sv.RegistrantPrivacy = ptr.Bool(jtv) } case "RegistrarName": @@ -5168,7 +5182,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainDetailOutput(v **GetDomainDetail if !ok { return fmt.Errorf("expected RegistrarName to be of type string, got %T instead", value) } - sv.RegistrarName = &jtv + sv.RegistrarName = ptr.String(jtv) } case "RegistrarUrl": @@ -5177,7 +5191,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainDetailOutput(v **GetDomainDetail if !ok { return fmt.Errorf("expected RegistrarUrl to be of type string, got %T instead", value) } - sv.RegistrarUrl = &jtv + sv.RegistrarUrl = ptr.String(jtv) } case "RegistryDomainId": @@ -5186,7 +5200,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainDetailOutput(v **GetDomainDetail if !ok { return fmt.Errorf("expected RegistryDomainId to be of type string, got %T instead", value) } - sv.RegistryDomainId = &jtv + sv.RegistryDomainId = ptr.String(jtv) } case "Reseller": @@ -5195,7 +5209,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainDetailOutput(v **GetDomainDetail if !ok { return fmt.Errorf("expected Reseller to be of type string, got %T instead", value) } - sv.Reseller = &jtv + sv.Reseller = ptr.String(jtv) } case "StatusList": @@ -5214,7 +5228,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainDetailOutput(v **GetDomainDetail if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.TechPrivacy = &jtv + sv.TechPrivacy = ptr.Bool(jtv) } case "UpdatedDate": @@ -5236,7 +5250,7 @@ func awsAwsjson11_deserializeOpDocumentGetDomainDetailOutput(v **GetDomainDetail if !ok { return fmt.Errorf("expected RegistrarWhoIsServer to be of type string, got %T instead", value) } - sv.WhoIsServer = &jtv + sv.WhoIsServer = ptr.String(jtv) } default: @@ -5312,7 +5326,7 @@ func awsAwsjson11_deserializeOpDocumentGetOperationDetailOutput(v **GetOperation if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "Message": @@ -5321,7 +5335,7 @@ func awsAwsjson11_deserializeOpDocumentGetOperationDetailOutput(v **GetOperation if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "OperationId": @@ -5330,7 +5344,7 @@ func awsAwsjson11_deserializeOpDocumentGetOperationDetailOutput(v **GetOperation if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } case "Status": @@ -5406,7 +5420,7 @@ func awsAwsjson11_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, if !ok { return fmt.Errorf("expected PageMarker to be of type string, got %T instead", value) } - sv.NextPageMarker = &jtv + sv.NextPageMarker = ptr.String(jtv) } default: @@ -5446,7 +5460,7 @@ func awsAwsjson11_deserializeOpDocumentListOperationsOutput(v **ListOperationsOu if !ok { return fmt.Errorf("expected PageMarker to be of type string, got %T instead", value) } - sv.NextPageMarker = &jtv + sv.NextPageMarker = ptr.String(jtv) } case "Operations": @@ -5527,7 +5541,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterDomainOutput(v **RegisterDomainOu if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -5567,7 +5581,7 @@ func awsAwsjson11_deserializeOpDocumentRejectDomainTransferFromAnotherAwsAccount if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -5607,7 +5621,7 @@ func awsAwsjson11_deserializeOpDocumentRenewDomainOutput(v **RenewDomainOutput, if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -5647,7 +5661,7 @@ func awsAwsjson11_deserializeOpDocumentResendContactReachabilityEmailOutput(v ** if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "emailAddress": @@ -5656,7 +5670,7 @@ func awsAwsjson11_deserializeOpDocumentResendContactReachabilityEmailOutput(v ** if !ok { return fmt.Errorf("expected Email to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "isAlreadyVerified": @@ -5665,7 +5679,7 @@ func awsAwsjson11_deserializeOpDocumentResendContactReachabilityEmailOutput(v ** if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsAlreadyVerified = &jtv + sv.IsAlreadyVerified = ptr.Bool(jtv) } default: @@ -5705,7 +5719,7 @@ func awsAwsjson11_deserializeOpDocumentRetrieveDomainAuthCodeOutput(v **Retrieve if !ok { return fmt.Errorf("expected DomainAuthCode to be of type string, got %T instead", value) } - sv.AuthCode = &jtv + sv.AuthCode = ptr.String(jtv) } default: @@ -5745,7 +5759,7 @@ func awsAwsjson11_deserializeOpDocumentTransferDomainOutput(v **TransferDomainOu if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -5785,7 +5799,7 @@ func awsAwsjson11_deserializeOpDocumentTransferDomainToAnotherAwsAccountOutput(v if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } case "Password": @@ -5794,7 +5808,7 @@ func awsAwsjson11_deserializeOpDocumentTransferDomainToAnotherAwsAccountOutput(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Password = &jtv + sv.Password = ptr.String(jtv) } default: @@ -5834,7 +5848,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateDomainContactOutput(v **UpdateDomai if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -5874,7 +5888,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateDomainContactPrivacyOutput(v **Upda if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -5914,7 +5928,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateDomainNameserversOutput(v **UpdateD if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -5990,7 +6004,7 @@ func awsAwsjson11_deserializeOpDocumentViewBillingOutput(v **ViewBillingOutput, if !ok { return fmt.Errorf("expected PageMarker to be of type string, got %T instead", value) } - sv.NextPageMarker = &jtv + sv.NextPageMarker = ptr.String(jtv) } default: diff --git a/service/route53domains/go.mod b/service/route53domains/go.mod index 2d82b0edb21..768093621e3 100644 --- a/service/route53domains/go.mod +++ b/service/route53domains/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/route53domains go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/route53domains/serializers.go b/service/route53domains/serializers.go index 99d949d9109..23eb0277cf7 100644 --- a/service/route53domains/serializers.go +++ b/service/route53domains/serializers.go @@ -1398,34 +1398,26 @@ func awsAwsjson11_serializeDocumentExtraParam(v *types.ExtraParam, value smithyj return nil } -func awsAwsjson11_serializeDocumentExtraParamList(v []*types.ExtraParam, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExtraParamList(v []types.ExtraParam, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentExtraParam(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentExtraParam(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentGlueIpList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGlueIpList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1449,17 +1441,13 @@ func awsAwsjson11_serializeDocumentNameserver(v *types.Nameserver, value smithyj return nil } -func awsAwsjson11_serializeDocumentNameserverList(v []*types.Nameserver, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNameserverList(v []types.Nameserver, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentNameserver(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentNameserver(&v[i], av); err != nil { return err } } @@ -1483,32 +1471,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -1683,9 +1663,9 @@ func awsAwsjson11_serializeOpDocumentGetDomainSuggestionsInput(v *GetDomainSugge ok.Boolean(*v.OnlyAvailable) } - if v.SuggestionCount != nil { + if v.SuggestionCount != 0 { ok := object.Key("SuggestionCount") - ok.Integer(*v.SuggestionCount) + ok.Integer(v.SuggestionCount) } return nil @@ -1833,9 +1813,9 @@ func awsAwsjson11_serializeOpDocumentRenewDomainInput(v *RenewDomainInput, value object := value.Object() defer object.Close() - if v.CurrentExpiryYear != nil { + if v.CurrentExpiryYear != 0 { ok := object.Key("CurrentExpiryYear") - ok.Integer(*v.CurrentExpiryYear) + ok.Integer(v.CurrentExpiryYear) } if v.DomainName != nil { diff --git a/service/route53domains/types/types.go b/service/route53domains/types/types.go index a1ca7cf5a13..7d7c56a3363 100644 --- a/service/route53domains/types/types.go +++ b/service/route53domains/types/types.go @@ -28,7 +28,7 @@ type BillingRecord struct { // The price that you were charged for the operation, in US dollars. Example value: // 12.0 - Price *float64 + Price float64 } // ContactDetail includes the following elements. @@ -67,7 +67,7 @@ type ContactDetail struct { Email *string // A list of name-value pairs for parameters required by certain top-level domains. - ExtraParams []*ExtraParam + ExtraParams []ExtraParam // Fax number of the contact. Constraints: Phone number must be specified in the // format "+[country dialing code].[number including any area code]". For example, @@ -564,7 +564,7 @@ type Nameserver struct { // domain is example.com and the name server for the domain is ns.example.com, you // need to specify the IP address for ns.example.com. Constraints: The list can // contain only one IPv4 and one IPv6 address. - GlueIps []*string + GlueIps []string } // OperationSummary includes the following elements. diff --git a/service/route53domains/validators.go b/service/route53domains/validators.go index 68b61e4085a..33c6e13cd06 100644 --- a/service/route53domains/validators.go +++ b/service/route53domains/validators.go @@ -597,13 +597,13 @@ func validateExtraParam(v *types.ExtraParam) error { } } -func validateExtraParamList(v []*types.ExtraParam) error { +func validateExtraParamList(v []types.ExtraParam) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ExtraParamList"} for i := range v { - if err := validateExtraParam(v[i]); err != nil { + if err := validateExtraParam(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -629,13 +629,13 @@ func validateNameserver(v *types.Nameserver) error { } } -func validateNameserverList(v []*types.Nameserver) error { +func validateNameserverList(v []types.Nameserver) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "NameserverList"} for i := range v { - if err := validateNameserver(v[i]); err != nil { + if err := validateNameserver(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -810,9 +810,6 @@ func validateOpGetDomainSuggestionsInput(v *GetDomainSuggestionsInput) error { if v.DomainName == nil { invalidParams.Add(smithy.NewErrParamRequired("DomainName")) } - if v.SuggestionCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("SuggestionCount")) - } if v.OnlyAvailable == nil { invalidParams.Add(smithy.NewErrParamRequired("OnlyAvailable")) } @@ -915,9 +912,6 @@ func validateOpRenewDomainInput(v *RenewDomainInput) error { if v.DomainName == nil { invalidParams.Add(smithy.NewErrParamRequired("DomainName")) } - if v.CurrentExpiryYear == nil { - invalidParams.Add(smithy.NewErrParamRequired("CurrentExpiryYear")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/route53resolver/api_op_CreateResolverEndpoint.go b/service/route53resolver/api_op_CreateResolverEndpoint.go index 4d309497700..e211bf13bab 100644 --- a/service/route53resolver/api_op_CreateResolverEndpoint.go +++ b/service/route53resolver/api_op_CreateResolverEndpoint.go @@ -59,7 +59,7 @@ type CreateResolverEndpointInput struct { // The subnet ID uniquely identifies a VPC. // // This member is required. - IpAddresses []*types.IpAddressRequest + IpAddresses []types.IpAddressRequest // The ID of one or more security groups that you want to use to control access to // this VPC. The security group that you specify must include one or more inbound @@ -69,14 +69,14 @@ type CreateResolverEndpointInput struct { // using for DNS queries on your network. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // A friendly name that lets you easily find a configuration in the Resolver // dashboard in the Route 53 console. Name *string // A list of the tag keys and values that you want to associate with the endpoint. - Tags []*types.Tag + Tags []types.Tag } type CreateResolverEndpointOutput struct { diff --git a/service/route53resolver/api_op_CreateResolverQueryLogConfig.go b/service/route53resolver/api_op_CreateResolverQueryLogConfig.go index f2ebe03eea8..64415b8cbe1 100644 --- a/service/route53resolver/api_op_CreateResolverQueryLogConfig.go +++ b/service/route53resolver/api_op_CreateResolverQueryLogConfig.go @@ -74,7 +74,7 @@ type CreateResolverQueryLogConfigInput struct { // A list of the tag keys and values that you want to associate with the query // logging configuration. - Tags []*types.Tag + Tags []types.Tag } type CreateResolverQueryLogConfigOutput struct { diff --git a/service/route53resolver/api_op_CreateResolverRule.go b/service/route53resolver/api_op_CreateResolverRule.go index 62dc480e32c..d7c37aa05a2 100644 --- a/service/route53resolver/api_op_CreateResolverRule.go +++ b/service/route53resolver/api_op_CreateResolverRule.go @@ -67,12 +67,12 @@ type CreateResolverRuleInput struct { ResolverEndpointId *string // A list of the tag keys and values that you want to associate with the endpoint. - Tags []*types.Tag + Tags []types.Tag // The IPs that you want Resolver to forward DNS queries to. You can specify only // IPv4 addresses. Separate IP addresses with a comma. TargetIps is available only // when the value of Rule type is FORWARD. - TargetIps []*types.TargetAddress + TargetIps []types.TargetAddress } type CreateResolverRuleOutput struct { diff --git a/service/route53resolver/api_op_ListResolverEndpointIpAddresses.go b/service/route53resolver/api_op_ListResolverEndpointIpAddresses.go index 73275a42a02..78d0c52c992 100644 --- a/service/route53resolver/api_op_ListResolverEndpointIpAddresses.go +++ b/service/route53resolver/api_op_ListResolverEndpointIpAddresses.go @@ -52,7 +52,7 @@ type ListResolverEndpointIpAddressesOutput struct { // Information about the IP addresses in your VPC that DNS queries originate from // (for outbound endpoints) or that you forward DNS queries to (for inbound // endpoints). - IpAddresses []*types.IpAddressResponse + IpAddresses []types.IpAddressResponse // The value that you specified for MaxResults in the request. MaxResults *int32 diff --git a/service/route53resolver/api_op_ListResolverEndpoints.go b/service/route53resolver/api_op_ListResolverEndpoints.go index d6b1bfaf4fc..e2bc6a22759 100644 --- a/service/route53resolver/api_op_ListResolverEndpoints.go +++ b/service/route53resolver/api_op_ListResolverEndpoints.go @@ -34,7 +34,7 @@ type ListResolverEndpointsInput struct { // inbound Resolver endpoints. If you submit a second or subsequent // ListResolverEndpoints request and specify the NextToken parameter, you must use // the same values for Filters, if any, as in the previous request. - Filters []*types.Filter + Filters []types.Filter // The maximum number of Resolver endpoints that you want to return in the response // to a ListResolverEndpoints request. If you don't specify a value for MaxResults, @@ -60,7 +60,7 @@ type ListResolverEndpointsOutput struct { // The Resolver endpoints that were created by using the current AWS account, and // that match the specified filters, if any. - ResolverEndpoints []*types.ResolverEndpoint + ResolverEndpoints []types.ResolverEndpoint // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53resolver/api_op_ListResolverQueryLogConfigAssociations.go b/service/route53resolver/api_op_ListResolverQueryLogConfigAssociations.go index 2d8ac1d3852..72e5c927a9b 100644 --- a/service/route53resolver/api_op_ListResolverQueryLogConfigAssociations.go +++ b/service/route53resolver/api_op_ListResolverQueryLogConfigAssociations.go @@ -34,7 +34,7 @@ type ListResolverQueryLogConfigAssociationsInput struct { // you submit a second or subsequent ListResolverQueryLogConfigAssociations request // and specify the NextToken parameter, you must use the same values for Filters, // if any, as in the previous request. - Filters []*types.Filter + Filters []types.Filter // The maximum number of query logging associations that you want to return in the // response to a ListResolverQueryLogConfigAssociations request. If you don't @@ -121,20 +121,20 @@ type ListResolverQueryLogConfigAssociationsOutput struct { // A list that contains one ResolverQueryLogConfigAssociations element for each // query logging association that matches the values that you specified for Filter. - ResolverQueryLogConfigAssociations []*types.ResolverQueryLogConfigAssociation + ResolverQueryLogConfigAssociations []types.ResolverQueryLogConfigAssociation // The total number of query logging associations that were created by the current // account in the specified Region. This count can differ from the number of // associations that are returned in a ListResolverQueryLogConfigAssociations // response, depending on the values that you specify in the request. - TotalCount *int32 + TotalCount int32 // The total number of query logging associations that were created by the current // account in the specified Region and that match the filters that were specified // in the ListResolverQueryLogConfigAssociations request. For the total number of // associations that were created by the current account in the specified Region, // see TotalCount. - TotalFilteredCount *int32 + TotalFilteredCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53resolver/api_op_ListResolverQueryLogConfigs.go b/service/route53resolver/api_op_ListResolverQueryLogConfigs.go index 17186da6fe3..b423bd3b9bf 100644 --- a/service/route53resolver/api_op_ListResolverQueryLogConfigs.go +++ b/service/route53resolver/api_op_ListResolverQueryLogConfigs.go @@ -35,7 +35,7 @@ type ListResolverQueryLogConfigsInput struct { // you submit a second or subsequent ListResolverQueryLogConfigs request and // specify the NextToken parameter, you must use the same values for Filters, if // any, as in the previous request. - Filters []*types.Filter + Filters []types.Filter // The maximum number of query logging configurations that you want to return in // the response to a ListResolverQueryLogConfigs request. If you don't specify a @@ -123,21 +123,21 @@ type ListResolverQueryLogConfigsOutput struct { // A list that contains one ResolverQueryLogConfig element for each query logging // configuration that matches the values that you specified for Filter. - ResolverQueryLogConfigs []*types.ResolverQueryLogConfig + ResolverQueryLogConfigs []types.ResolverQueryLogConfig // The total number of query logging configurations that were created by the // current account in the specified Region. This count can differ from the number // of query logging configurations that are returned in a // ListResolverQueryLogConfigs response, depending on the values that you specify // in the request. - TotalCount *int32 + TotalCount int32 // The total number of query logging configurations that were created by the // current account in the specified Region and that match the filters that were // specified in the ListResolverQueryLogConfigs request. For the total number of // query logging configurations that were created by the current account in the // specified Region, see TotalCount. - TotalFilteredCount *int32 + TotalFilteredCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53resolver/api_op_ListResolverRuleAssociations.go b/service/route53resolver/api_op_ListResolverRuleAssociations.go index bed7ef85ac3..0ade2e0f003 100644 --- a/service/route53resolver/api_op_ListResolverRuleAssociations.go +++ b/service/route53resolver/api_op_ListResolverRuleAssociations.go @@ -35,7 +35,7 @@ type ListResolverRuleAssociationsInput struct { // subsequent ListResolverRuleAssociations request and specify the NextToken // parameter, you must use the same values for Filters, if any, as in the previous // request. - Filters []*types.Filter + Filters []types.Filter // The maximum number of rule associations that you want to return in the response // to a ListResolverRuleAssociations request. If you don't specify a value for @@ -62,7 +62,7 @@ type ListResolverRuleAssociationsOutput struct { // The associations that were created between Resolver rules and VPCs using the // current AWS account, and that match the specified filters, if any. - ResolverRuleAssociations []*types.ResolverRuleAssociation + ResolverRuleAssociations []types.ResolverRuleAssociation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53resolver/api_op_ListResolverRules.go b/service/route53resolver/api_op_ListResolverRules.go index 2636c6f54ee..06a40465c4c 100644 --- a/service/route53resolver/api_op_ListResolverRules.go +++ b/service/route53resolver/api_op_ListResolverRules.go @@ -34,7 +34,7 @@ type ListResolverRulesInput struct { // submit a second or subsequent ListResolverRules request and specify the // NextToken parameter, you must use the same values for Filters, if any, as in the // previous request. - Filters []*types.Filter + Filters []types.Filter // The maximum number of Resolver rules that you want to return in the response to // a ListResolverRules request. If you don't specify a value for MaxResults, @@ -60,7 +60,7 @@ type ListResolverRulesOutput struct { // The Resolver rules that were created using the current AWS account and that // match the specified filters, if any. - ResolverRules []*types.ResolverRule + ResolverRules []types.ResolverRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53resolver/api_op_ListTagsForResource.go b/service/route53resolver/api_op_ListTagsForResource.go index 8285942e8d3..f8d72cc58ba 100644 --- a/service/route53resolver/api_op_ListTagsForResource.go +++ b/service/route53resolver/api_op_ListTagsForResource.go @@ -55,7 +55,7 @@ type ListTagsForResourceOutput struct { // The tags that are associated with the resource that you specified in the // ListTagsForResource request. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53resolver/api_op_PutResolverQueryLogConfigPolicy.go b/service/route53resolver/api_op_PutResolverQueryLogConfigPolicy.go index 740f35fbcce..13754249f75 100644 --- a/service/route53resolver/api_op_PutResolverQueryLogConfigPolicy.go +++ b/service/route53resolver/api_op_PutResolverQueryLogConfigPolicy.go @@ -64,7 +64,7 @@ type PutResolverQueryLogConfigPolicyInput struct { type PutResolverQueryLogConfigPolicyOutput struct { // Whether the PutResolverQueryLogConfigPolicy request was successful. - ReturnValue *bool + ReturnValue bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53resolver/api_op_PutResolverRulePolicy.go b/service/route53resolver/api_op_PutResolverRulePolicy.go index 5f209d452f9..b87c6a108de 100644 --- a/service/route53resolver/api_op_PutResolverRulePolicy.go +++ b/service/route53resolver/api_op_PutResolverRulePolicy.go @@ -65,7 +65,7 @@ type PutResolverRulePolicyInput struct { type PutResolverRulePolicyOutput struct { // Whether the PutResolverRulePolicy request was successful. - ReturnValue *bool + ReturnValue bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/route53resolver/api_op_TagResource.go b/service/route53resolver/api_op_TagResource.go index fff906b611b..34c15bf1968 100644 --- a/service/route53resolver/api_op_TagResource.go +++ b/service/route53resolver/api_op_TagResource.go @@ -62,7 +62,7 @@ type TagResourceInput struct { // The tags that you want to add to the specified resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/route53resolver/api_op_UntagResource.go b/service/route53resolver/api_op_UntagResource.go index 2caa8f25362..a2b6fb808ed 100644 --- a/service/route53resolver/api_op_UntagResource.go +++ b/service/route53resolver/api_op_UntagResource.go @@ -61,7 +61,7 @@ type UntagResourceInput struct { // The tags that you want to remove to the specified resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/route53resolver/deserializers.go b/service/route53resolver/deserializers.go index 66241cf33a5..fcd888ec0d2 100644 --- a/service/route53resolver/deserializers.go +++ b/service/route53resolver/deserializers.go @@ -4538,7 +4538,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4578,7 +4578,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceErrorException(v **types.Int if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4618,7 +4618,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4658,7 +4658,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FieldName = &jtv + sv.FieldName = ptr.String(jtv) } case "Message": @@ -4667,7 +4667,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4707,7 +4707,7 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyDocument(v **types.InvalidPoli if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4747,7 +4747,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4787,7 +4787,7 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4799,7 +4799,7 @@ func awsAwsjson11_deserializeDocumentInvalidTagException(v **types.InvalidTagExc return nil } -func awsAwsjson11_deserializeDocumentIpAddressesResponse(v *[]*types.IpAddressResponse, value interface{}) error { +func awsAwsjson11_deserializeDocumentIpAddressesResponse(v *[]types.IpAddressResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4812,18 +4812,20 @@ func awsAwsjson11_deserializeDocumentIpAddressesResponse(v *[]*types.IpAddressRe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IpAddressResponse + var cv []types.IpAddressResponse if *v == nil { - cv = []*types.IpAddressResponse{} + cv = []types.IpAddressResponse{} } else { cv = *v } for _, value := range shape { - var col *types.IpAddressResponse - if err := awsAwsjson11_deserializeDocumentIpAddressResponse(&col, value); err != nil { + var col types.IpAddressResponse + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIpAddressResponse(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4859,7 +4861,7 @@ func awsAwsjson11_deserializeDocumentIpAddressResponse(v **types.IpAddressRespon if !ok { return fmt.Errorf("expected Rfc3339TimeString to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "Ip": @@ -4868,7 +4870,7 @@ func awsAwsjson11_deserializeDocumentIpAddressResponse(v **types.IpAddressRespon if !ok { return fmt.Errorf("expected Ip to be of type string, got %T instead", value) } - sv.Ip = &jtv + sv.Ip = ptr.String(jtv) } case "IpId": @@ -4877,7 +4879,7 @@ func awsAwsjson11_deserializeDocumentIpAddressResponse(v **types.IpAddressRespon if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.IpId = &jtv + sv.IpId = ptr.String(jtv) } case "ModificationTime": @@ -4886,7 +4888,7 @@ func awsAwsjson11_deserializeDocumentIpAddressResponse(v **types.IpAddressRespon if !ok { return fmt.Errorf("expected Rfc3339TimeString to be of type string, got %T instead", value) } - sv.ModificationTime = &jtv + sv.ModificationTime = ptr.String(jtv) } case "Status": @@ -4904,7 +4906,7 @@ func awsAwsjson11_deserializeDocumentIpAddressResponse(v **types.IpAddressRespon if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "SubnetId": @@ -4913,7 +4915,7 @@ func awsAwsjson11_deserializeDocumentIpAddressResponse(v **types.IpAddressRespon if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } default: @@ -4953,7 +4955,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceType": @@ -4962,7 +4964,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -5002,7 +5004,7 @@ func awsAwsjson11_deserializeDocumentResolverEndpoint(v **types.ResolverEndpoint if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTime": @@ -5011,7 +5013,7 @@ func awsAwsjson11_deserializeDocumentResolverEndpoint(v **types.ResolverEndpoint if !ok { return fmt.Errorf("expected Rfc3339TimeString to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "CreatorRequestId": @@ -5020,7 +5022,7 @@ func awsAwsjson11_deserializeDocumentResolverEndpoint(v **types.ResolverEndpoint if !ok { return fmt.Errorf("expected CreatorRequestId to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "Direction": @@ -5038,7 +5040,7 @@ func awsAwsjson11_deserializeDocumentResolverEndpoint(v **types.ResolverEndpoint if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.HostVPCId = &jtv + sv.HostVPCId = ptr.String(jtv) } case "Id": @@ -5047,7 +5049,7 @@ func awsAwsjson11_deserializeDocumentResolverEndpoint(v **types.ResolverEndpoint if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IpAddressCount": @@ -5069,7 +5071,7 @@ func awsAwsjson11_deserializeDocumentResolverEndpoint(v **types.ResolverEndpoint if !ok { return fmt.Errorf("expected Rfc3339TimeString to be of type string, got %T instead", value) } - sv.ModificationTime = &jtv + sv.ModificationTime = ptr.String(jtv) } case "Name": @@ -5078,7 +5080,7 @@ func awsAwsjson11_deserializeDocumentResolverEndpoint(v **types.ResolverEndpoint if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SecurityGroupIds": @@ -5101,7 +5103,7 @@ func awsAwsjson11_deserializeDocumentResolverEndpoint(v **types.ResolverEndpoint if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } default: @@ -5113,7 +5115,7 @@ func awsAwsjson11_deserializeDocumentResolverEndpoint(v **types.ResolverEndpoint return nil } -func awsAwsjson11_deserializeDocumentResolverEndpoints(v *[]*types.ResolverEndpoint, value interface{}) error { +func awsAwsjson11_deserializeDocumentResolverEndpoints(v *[]types.ResolverEndpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5126,18 +5128,20 @@ func awsAwsjson11_deserializeDocumentResolverEndpoints(v *[]*types.ResolverEndpo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResolverEndpoint + var cv []types.ResolverEndpoint if *v == nil { - cv = []*types.ResolverEndpoint{} + cv = []types.ResolverEndpoint{} } else { cv = *v } for _, value := range shape { - var col *types.ResolverEndpoint - if err := awsAwsjson11_deserializeDocumentResolverEndpoint(&col, value); err != nil { + var col types.ResolverEndpoint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResolverEndpoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5173,7 +5177,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfig(v **types.ResolverQu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AssociationCount": @@ -5186,7 +5190,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfig(v **types.ResolverQu if err != nil { return err } - sv.AssociationCount = ptr.Int32(int32(i64)) + sv.AssociationCount = int32(i64) } case "CreationTime": @@ -5195,7 +5199,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfig(v **types.ResolverQu if !ok { return fmt.Errorf("expected Rfc3339TimeString to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "CreatorRequestId": @@ -5204,7 +5208,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfig(v **types.ResolverQu if !ok { return fmt.Errorf("expected CreatorRequestId to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "DestinationArn": @@ -5213,7 +5217,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfig(v **types.ResolverQu if !ok { return fmt.Errorf("expected DestinationArn to be of type string, got %T instead", value) } - sv.DestinationArn = &jtv + sv.DestinationArn = ptr.String(jtv) } case "Id": @@ -5222,7 +5226,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfig(v **types.ResolverQu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -5231,7 +5235,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfig(v **types.ResolverQu if !ok { return fmt.Errorf("expected ResolverQueryLogConfigName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OwnerId": @@ -5240,7 +5244,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfig(v **types.ResolverQu if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "ShareStatus": @@ -5298,7 +5302,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfigAssociation(v **types if !ok { return fmt.Errorf("expected Rfc3339TimeString to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "Error": @@ -5316,7 +5320,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfigAssociation(v **types if !ok { return fmt.Errorf("expected ResolverQueryLogConfigAssociationErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "Id": @@ -5325,7 +5329,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfigAssociation(v **types if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ResolverQueryLogConfigId": @@ -5334,7 +5338,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfigAssociation(v **types if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResolverQueryLogConfigId = &jtv + sv.ResolverQueryLogConfigId = ptr.String(jtv) } case "ResourceId": @@ -5343,7 +5347,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfigAssociation(v **types if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "Status": @@ -5364,7 +5368,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfigAssociation(v **types return nil } -func awsAwsjson11_deserializeDocumentResolverQueryLogConfigAssociationList(v *[]*types.ResolverQueryLogConfigAssociation, value interface{}) error { +func awsAwsjson11_deserializeDocumentResolverQueryLogConfigAssociationList(v *[]types.ResolverQueryLogConfigAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5377,18 +5381,20 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfigAssociationList(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResolverQueryLogConfigAssociation + var cv []types.ResolverQueryLogConfigAssociation if *v == nil { - cv = []*types.ResolverQueryLogConfigAssociation{} + cv = []types.ResolverQueryLogConfigAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.ResolverQueryLogConfigAssociation - if err := awsAwsjson11_deserializeDocumentResolverQueryLogConfigAssociation(&col, value); err != nil { + var col types.ResolverQueryLogConfigAssociation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResolverQueryLogConfigAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5396,7 +5402,7 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfigAssociationList(v *[] return nil } -func awsAwsjson11_deserializeDocumentResolverQueryLogConfigList(v *[]*types.ResolverQueryLogConfig, value interface{}) error { +func awsAwsjson11_deserializeDocumentResolverQueryLogConfigList(v *[]types.ResolverQueryLogConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5409,18 +5415,20 @@ func awsAwsjson11_deserializeDocumentResolverQueryLogConfigList(v *[]*types.Reso return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResolverQueryLogConfig + var cv []types.ResolverQueryLogConfig if *v == nil { - cv = []*types.ResolverQueryLogConfig{} + cv = []types.ResolverQueryLogConfig{} } else { cv = *v } for _, value := range shape { - var col *types.ResolverQueryLogConfig - if err := awsAwsjson11_deserializeDocumentResolverQueryLogConfig(&col, value); err != nil { + var col types.ResolverQueryLogConfig + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResolverQueryLogConfig(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5456,7 +5464,7 @@ func awsAwsjson11_deserializeDocumentResolverRule(v **types.ResolverRule, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTime": @@ -5465,7 +5473,7 @@ func awsAwsjson11_deserializeDocumentResolverRule(v **types.ResolverRule, value if !ok { return fmt.Errorf("expected Rfc3339TimeString to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "CreatorRequestId": @@ -5474,7 +5482,7 @@ func awsAwsjson11_deserializeDocumentResolverRule(v **types.ResolverRule, value if !ok { return fmt.Errorf("expected CreatorRequestId to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "DomainName": @@ -5483,7 +5491,7 @@ func awsAwsjson11_deserializeDocumentResolverRule(v **types.ResolverRule, value if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "Id": @@ -5492,7 +5500,7 @@ func awsAwsjson11_deserializeDocumentResolverRule(v **types.ResolverRule, value if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ModificationTime": @@ -5501,7 +5509,7 @@ func awsAwsjson11_deserializeDocumentResolverRule(v **types.ResolverRule, value if !ok { return fmt.Errorf("expected Rfc3339TimeString to be of type string, got %T instead", value) } - sv.ModificationTime = &jtv + sv.ModificationTime = ptr.String(jtv) } case "Name": @@ -5510,7 +5518,7 @@ func awsAwsjson11_deserializeDocumentResolverRule(v **types.ResolverRule, value if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OwnerId": @@ -5519,7 +5527,7 @@ func awsAwsjson11_deserializeDocumentResolverRule(v **types.ResolverRule, value if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "ResolverEndpointId": @@ -5528,7 +5536,7 @@ func awsAwsjson11_deserializeDocumentResolverRule(v **types.ResolverRule, value if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResolverEndpointId = &jtv + sv.ResolverEndpointId = ptr.String(jtv) } case "RuleType": @@ -5564,7 +5572,7 @@ func awsAwsjson11_deserializeDocumentResolverRule(v **types.ResolverRule, value if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "TargetIps": @@ -5609,7 +5617,7 @@ func awsAwsjson11_deserializeDocumentResolverRuleAssociation(v **types.ResolverR if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -5618,7 +5626,7 @@ func awsAwsjson11_deserializeDocumentResolverRuleAssociation(v **types.ResolverR if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ResolverRuleId": @@ -5627,7 +5635,7 @@ func awsAwsjson11_deserializeDocumentResolverRuleAssociation(v **types.ResolverR if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResolverRuleId = &jtv + sv.ResolverRuleId = ptr.String(jtv) } case "Status": @@ -5645,7 +5653,7 @@ func awsAwsjson11_deserializeDocumentResolverRuleAssociation(v **types.ResolverR if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "VPCId": @@ -5654,7 +5662,7 @@ func awsAwsjson11_deserializeDocumentResolverRuleAssociation(v **types.ResolverR if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.VPCId = &jtv + sv.VPCId = ptr.String(jtv) } default: @@ -5666,7 +5674,7 @@ func awsAwsjson11_deserializeDocumentResolverRuleAssociation(v **types.ResolverR return nil } -func awsAwsjson11_deserializeDocumentResolverRuleAssociations(v *[]*types.ResolverRuleAssociation, value interface{}) error { +func awsAwsjson11_deserializeDocumentResolverRuleAssociations(v *[]types.ResolverRuleAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5679,18 +5687,20 @@ func awsAwsjson11_deserializeDocumentResolverRuleAssociations(v *[]*types.Resolv return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResolverRuleAssociation + var cv []types.ResolverRuleAssociation if *v == nil { - cv = []*types.ResolverRuleAssociation{} + cv = []types.ResolverRuleAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.ResolverRuleAssociation - if err := awsAwsjson11_deserializeDocumentResolverRuleAssociation(&col, value); err != nil { + var col types.ResolverRuleAssociation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResolverRuleAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5698,7 +5708,7 @@ func awsAwsjson11_deserializeDocumentResolverRuleAssociations(v *[]*types.Resolv return nil } -func awsAwsjson11_deserializeDocumentResolverRules(v *[]*types.ResolverRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentResolverRules(v *[]types.ResolverRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5711,18 +5721,20 @@ func awsAwsjson11_deserializeDocumentResolverRules(v *[]*types.ResolverRule, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResolverRule + var cv []types.ResolverRule if *v == nil { - cv = []*types.ResolverRule{} + cv = []types.ResolverRule{} } else { cv = *v } for _, value := range shape { - var col *types.ResolverRule - if err := awsAwsjson11_deserializeDocumentResolverRule(&col, value); err != nil { + var col types.ResolverRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResolverRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5758,7 +5770,7 @@ func awsAwsjson11_deserializeDocumentResourceExistsException(v **types.ResourceE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceType": @@ -5767,7 +5779,7 @@ func awsAwsjson11_deserializeDocumentResourceExistsException(v **types.ResourceE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -5807,7 +5819,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceType": @@ -5816,7 +5828,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -5856,7 +5868,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceType": @@ -5865,7 +5877,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -5905,7 +5917,7 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceType": @@ -5914,7 +5926,7 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -5926,7 +5938,7 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso return nil } -func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5939,21 +5951,21 @@ func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5990,7 +6002,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -5999,7 +6011,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6011,7 +6023,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6024,18 +6036,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6071,7 +6085,7 @@ func awsAwsjson11_deserializeDocumentTargetAddress(v **types.TargetAddress, valu if !ok { return fmt.Errorf("expected Ip to be of type string, got %T instead", value) } - sv.Ip = &jtv + sv.Ip = ptr.String(jtv) } case "Port": @@ -6096,7 +6110,7 @@ func awsAwsjson11_deserializeDocumentTargetAddress(v **types.TargetAddress, valu return nil } -func awsAwsjson11_deserializeDocumentTargetList(v *[]*types.TargetAddress, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetList(v *[]types.TargetAddress, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6109,18 +6123,20 @@ func awsAwsjson11_deserializeDocumentTargetList(v *[]*types.TargetAddress, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TargetAddress + var cv []types.TargetAddress if *v == nil { - cv = []*types.TargetAddress{} + cv = []types.TargetAddress{} } else { cv = *v } for _, value := range shape { - var col *types.TargetAddress - if err := awsAwsjson11_deserializeDocumentTargetAddress(&col, value); err != nil { + var col types.TargetAddress + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTargetAddress(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6156,7 +6172,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6196,7 +6212,7 @@ func awsAwsjson11_deserializeDocumentUnknownResourceException(v **types.UnknownR if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6776,7 +6792,7 @@ func awsAwsjson11_deserializeOpDocumentGetResolverQueryLogConfigPolicyOutput(v * if !ok { return fmt.Errorf("expected ResolverQueryLogConfigPolicy to be of type string, got %T instead", value) } - sv.ResolverQueryLogConfigPolicy = &jtv + sv.ResolverQueryLogConfigPolicy = ptr.String(jtv) } default: @@ -6888,7 +6904,7 @@ func awsAwsjson11_deserializeOpDocumentGetResolverRulePolicyOutput(v **GetResolv if !ok { return fmt.Errorf("expected ResolverRulePolicy to be of type string, got %T instead", value) } - sv.ResolverRulePolicy = &jtv + sv.ResolverRulePolicy = ptr.String(jtv) } default: @@ -6946,7 +6962,7 @@ func awsAwsjson11_deserializeOpDocumentListResolverEndpointIpAddressesOutput(v * if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6999,7 +7015,7 @@ func awsAwsjson11_deserializeOpDocumentListResolverEndpointsOutput(v **ListResol if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResolverEndpoints": @@ -7044,7 +7060,7 @@ func awsAwsjson11_deserializeOpDocumentListResolverQueryLogConfigAssociationsOut if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResolverQueryLogConfigAssociations": @@ -7062,7 +7078,7 @@ func awsAwsjson11_deserializeOpDocumentListResolverQueryLogConfigAssociationsOut if err != nil { return err } - sv.TotalCount = ptr.Int32(int32(i64)) + sv.TotalCount = int32(i64) } case "TotalFilteredCount": @@ -7075,7 +7091,7 @@ func awsAwsjson11_deserializeOpDocumentListResolverQueryLogConfigAssociationsOut if err != nil { return err } - sv.TotalFilteredCount = ptr.Int32(int32(i64)) + sv.TotalFilteredCount = int32(i64) } default: @@ -7115,7 +7131,7 @@ func awsAwsjson11_deserializeOpDocumentListResolverQueryLogConfigsOutput(v **Lis if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResolverQueryLogConfigs": @@ -7133,7 +7149,7 @@ func awsAwsjson11_deserializeOpDocumentListResolverQueryLogConfigsOutput(v **Lis if err != nil { return err } - sv.TotalCount = ptr.Int32(int32(i64)) + sv.TotalCount = int32(i64) } case "TotalFilteredCount": @@ -7146,7 +7162,7 @@ func awsAwsjson11_deserializeOpDocumentListResolverQueryLogConfigsOutput(v **Lis if err != nil { return err } - sv.TotalFilteredCount = ptr.Int32(int32(i64)) + sv.TotalFilteredCount = int32(i64) } default: @@ -7199,7 +7215,7 @@ func awsAwsjson11_deserializeOpDocumentListResolverRuleAssociationsOutput(v **Li if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResolverRuleAssociations": @@ -7257,7 +7273,7 @@ func awsAwsjson11_deserializeOpDocumentListResolverRulesOutput(v **ListResolverR if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResolverRules": @@ -7302,7 +7318,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -7347,7 +7363,7 @@ func awsAwsjson11_deserializeOpDocumentPutResolverQueryLogConfigPolicyOutput(v * if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ReturnValue = &jtv + sv.ReturnValue = jtv } default: @@ -7387,7 +7403,7 @@ func awsAwsjson11_deserializeOpDocumentPutResolverRulePolicyOutput(v **PutResolv if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ReturnValue = &jtv + sv.ReturnValue = jtv } default: diff --git a/service/route53resolver/go.mod b/service/route53resolver/go.mod index ea2ef5612a1..12b4d1d951a 100644 --- a/service/route53resolver/go.mod +++ b/service/route53resolver/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/route53resolver go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/route53resolver/serializers.go b/service/route53resolver/serializers.go index 53b1a92e7b7..a40ac81450d 100644 --- a/service/route53resolver/serializers.go +++ b/service/route53resolver/serializers.go @@ -1504,49 +1504,37 @@ func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentFilters(v []*types.Filter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilters(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentIpAddressesRequest(v []*types.IpAddressRequest, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIpAddressesRequest(v []types.IpAddressRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentIpAddressRequest(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentIpAddressRequest(&v[i], av); err != nil { return err } } @@ -1616,17 +1604,13 @@ func awsAwsjson11_serializeDocumentResolverRuleConfig(v *types.ResolverRuleConfi return nil } -func awsAwsjson11_serializeDocumentSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1648,32 +1632,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -1697,17 +1673,13 @@ func awsAwsjson11_serializeDocumentTargetAddress(v *types.TargetAddress, value s return nil } -func awsAwsjson11_serializeDocumentTargetList(v []*types.TargetAddress, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetList(v []types.TargetAddress, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTargetAddress(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTargetAddress(&v[i], av); err != nil { return err } } diff --git a/service/route53resolver/types/types.go b/service/route53resolver/types/types.go index 3c2ad549e20..6a798db76c5 100644 --- a/service/route53resolver/types/types.go +++ b/service/route53resolver/types/types.go @@ -192,7 +192,7 @@ type Filter struct { // parameter that you want to use to filter objects. For example, to list only // inbound Resolver endpoints, specify Direction for Name and specify INBOUND for // Values. - Values []*string + Values []string } // In a CreateResolverEndpoint @@ -319,7 +319,7 @@ type ResolverEndpoint struct { // outbound rules (for outbound endpoints). Inbound and outbound rules must allow // TCP and UDP access. For inbound access, open port 53. For outbound access, open // the port that you're using for DNS queries on your network. - SecurityGroupIds []*string + SecurityGroupIds []string // A code that specifies the current status of the Resolver endpoint. Valid values // include the following: @@ -381,7 +381,7 @@ type ResolverQueryLogConfig struct { Arn *string // The number of VPCs that are associated with the query logging configuration. - AssociationCount *int32 + AssociationCount int32 // The date and time that the query logging configuration was created, in Unix time // format and Coordinated Universal Time (UTC). @@ -570,7 +570,7 @@ type ResolverRule struct { // An array that contains the IP addresses and ports that an outbound endpoint // forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers // on your network. Specify IPv4 addresses. IPv6 is not supported. - TargetIps []*TargetAddress + TargetIps []TargetAddress } // In the response to an AssociateResolverRule @@ -624,7 +624,7 @@ type ResolverRuleConfig struct { // For DNS queries that originate in your VPC, the new IP addresses that you want // to route outbound DNS queries to. - TargetIps []*TargetAddress + TargetIps []TargetAddress } // One tag that you want to add to the specified resource. A tag consists of a Key diff --git a/service/route53resolver/validators.go b/service/route53resolver/validators.go index 5a1bf050602..dc280e6bd31 100644 --- a/service/route53resolver/validators.go +++ b/service/route53resolver/validators.go @@ -658,13 +658,13 @@ func addOpUpdateResolverRuleValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpUpdateResolverRule{}, middleware.After) } -func validateIpAddressesRequest(v []*types.IpAddressRequest) error { +func validateIpAddressesRequest(v []types.IpAddressRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "IpAddressesRequest"} for i := range v { - if err := validateIpAddressRequest(v[i]); err != nil { + if err := validateIpAddressRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -725,13 +725,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -757,13 +757,13 @@ func validateTargetAddress(v *types.TargetAddress) error { } } -func validateTargetList(v []*types.TargetAddress) error { +func validateTargetList(v []types.TargetAddress) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TargetList"} for i := range v { - if err := validateTargetAddress(v[i]); err != nil { + if err := validateTargetAddress(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/s3/api_op_CopyObject.go b/service/s3/api_op_CopyObject.go index fd90503d392..7b4f894c047 100644 --- a/service/s3/api_op_CopyObject.go +++ b/service/s3/api_op_CopyObject.go @@ -302,7 +302,7 @@ type CopyObjectInput struct { GrantWriteACP *string // A map of metadata to store with the object in S3. - Metadata map[string]*string + Metadata map[string]string // Specifies whether the metadata is copied from the source object or replaced with // metadata provided in the request. diff --git a/service/s3/api_op_CreateBucket.go b/service/s3/api_op_CreateBucket.go index ef150bb923d..64f9f8879c4 100644 --- a/service/s3/api_op_CreateBucket.go +++ b/service/s3/api_op_CreateBucket.go @@ -146,7 +146,7 @@ type CreateBucketInput struct { GrantWriteACP *string // Specifies whether you want S3 Object Lock to be enabled for the new bucket. - ObjectLockEnabledForBucket *bool + ObjectLockEnabledForBucket bool } type CreateBucketOutput struct { diff --git a/service/s3/api_op_CreateMultipartUpload.go b/service/s3/api_op_CreateMultipartUpload.go index 43d362a46f4..d4a61032951 100644 --- a/service/s3/api_op_CreateMultipartUpload.go +++ b/service/s3/api_op_CreateMultipartUpload.go @@ -311,7 +311,7 @@ type CreateMultipartUploadInput struct { GrantWriteACP *string // A map of metadata to store with the object in S3. - Metadata map[string]*string + Metadata map[string]string // Specifies whether you want to apply a Legal Hold to the uploaded object. ObjectLockLegalHoldStatus types.ObjectLockLegalHoldStatus diff --git a/service/s3/api_op_DeleteObject.go b/service/s3/api_op_DeleteObject.go index 5ea342563be..7f59b0ed769 100644 --- a/service/s3/api_op_DeleteObject.go +++ b/service/s3/api_op_DeleteObject.go @@ -79,7 +79,7 @@ type DeleteObjectInput struct { // Indicates whether S3 Object Lock should bypass Governance-mode restrictions to // process this operation. - BypassGovernanceRetention *bool + BypassGovernanceRetention bool // The account id of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. @@ -106,7 +106,7 @@ type DeleteObjectOutput struct { // Specifies whether the versioned object that was permanently deleted was (true) // or was not (false) a delete marker. - DeleteMarker *bool + DeleteMarker bool // If present, indicates that the requester was successfully charged for the // request. diff --git a/service/s3/api_op_DeleteObjects.go b/service/s3/api_op_DeleteObjects.go index b47328d8878..3e02ef38164 100644 --- a/service/s3/api_op_DeleteObjects.go +++ b/service/s3/api_op_DeleteObjects.go @@ -102,7 +102,7 @@ type DeleteObjectsInput struct { // Specifies whether you want to delete this object even if it has a // Governance-type Object Lock in place. You must have sufficient permissions to // perform this operation. - BypassGovernanceRetention *bool + BypassGovernanceRetention bool // The account id of the expected bucket owner. If the bucket is owned by a // different account, the request will fail with an HTTP 403 (Access Denied) error. @@ -126,11 +126,11 @@ type DeleteObjectsOutput struct { // Container element for a successful delete. It identifies the object that was // successfully deleted. - Deleted []*types.DeletedObject + Deleted []types.DeletedObject // Container for a failed delete operation that describes the object that Amazon S3 // attempted to delete and the error it encountered. - Errors []*types.Error + Errors []types.Error // If present, indicates that the requester was successfully charged for the // request. diff --git a/service/s3/api_op_GetBucketAcl.go b/service/s3/api_op_GetBucketAcl.go index 26c70f87d40..f74e90006be 100644 --- a/service/s3/api_op_GetBucketAcl.go +++ b/service/s3/api_op_GetBucketAcl.go @@ -49,7 +49,7 @@ type GetBucketAclInput struct { type GetBucketAclOutput struct { // A list of grants. - Grants []*types.Grant + Grants []types.Grant // Container for the bucket owner's display name and ID. Owner *types.Owner diff --git a/service/s3/api_op_GetBucketCors.go b/service/s3/api_op_GetBucketCors.go index a2b109a65a5..ea765779980 100644 --- a/service/s3/api_op_GetBucketCors.go +++ b/service/s3/api_op_GetBucketCors.go @@ -55,7 +55,7 @@ type GetBucketCorsOutput struct { // A set of origins and methods (cross-origin access that you want to allow). You // can add up to 100 rules to the configuration. - CORSRules []*types.CORSRule + CORSRules []types.CORSRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3/api_op_GetBucketLifecycleConfiguration.go b/service/s3/api_op_GetBucketLifecycleConfiguration.go index 257725b4b2c..369aed667ab 100644 --- a/service/s3/api_op_GetBucketLifecycleConfiguration.go +++ b/service/s3/api_op_GetBucketLifecycleConfiguration.go @@ -86,7 +86,7 @@ type GetBucketLifecycleConfigurationInput struct { type GetBucketLifecycleConfigurationOutput struct { // Container for a lifecycle rule. - Rules []*types.LifecycleRule + Rules []types.LifecycleRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3/api_op_GetBucketNotificationConfiguration.go b/service/s3/api_op_GetBucketNotificationConfiguration.go index 7babd858fc4..4f8d03a5042 100644 --- a/service/s3/api_op_GetBucketNotificationConfiguration.go +++ b/service/s3/api_op_GetBucketNotificationConfiguration.go @@ -60,15 +60,15 @@ type GetBucketNotificationConfigurationOutput struct { // Describes the AWS Lambda functions to invoke and the events for which to invoke // them. - LambdaFunctionConfigurations []*types.LambdaFunctionConfiguration + LambdaFunctionConfigurations []types.LambdaFunctionConfiguration // The Amazon Simple Queue Service queues to publish messages to and the events for // which to publish messages. - QueueConfigurations []*types.QueueConfiguration + QueueConfigurations []types.QueueConfiguration // The topic to which notifications are sent and the events for which notifications // are generated. - TopicConfigurations []*types.TopicConfiguration + TopicConfigurations []types.TopicConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3/api_op_GetBucketTagging.go b/service/s3/api_op_GetBucketTagging.go index 5856c09c398..159f01d38e3 100644 --- a/service/s3/api_op_GetBucketTagging.go +++ b/service/s3/api_op_GetBucketTagging.go @@ -63,7 +63,7 @@ type GetBucketTaggingOutput struct { // Contains the tag set. // // This member is required. - TagSet []*types.Tag + TagSet []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3/api_op_GetBucketWebsite.go b/service/s3/api_op_GetBucketWebsite.go index 03054b97079..e6b6d0b7ebf 100644 --- a/service/s3/api_op_GetBucketWebsite.go +++ b/service/s3/api_op_GetBucketWebsite.go @@ -67,7 +67,7 @@ type GetBucketWebsiteOutput struct { RedirectAllRequestsTo *types.RedirectAllRequestsTo // Rules that define when a redirect is applied and the redirect behavior. - RoutingRules []*types.RoutingRule + RoutingRules []types.RoutingRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3/api_op_GetObject.go b/service/s3/api_op_GetObject.go index 4b382152e87..4b25c36ebeb 100644 --- a/service/s3/api_op_GetObject.go +++ b/service/s3/api_op_GetObject.go @@ -197,7 +197,7 @@ type GetObjectInput struct { // Part number of the object being read. This is a positive integer between 1 and // 10,000. Effectively performs a 'ranged' GET request for the part specified. // Useful for downloading just a part of an object. - PartNumber *int32 + PartNumber int32 // Downloads the specified range bytes of an object. For more information about the // HTTP Range header, see @@ -275,7 +275,7 @@ type GetObjectOutput struct { ContentLanguage *string // Size of the body in bytes. - ContentLength *int64 + ContentLength int64 // The portion of the object returned in the response. ContentRange *string @@ -285,7 +285,7 @@ type GetObjectOutput struct { // Specifies whether the object retrieved was (true) or was not (false) a Delete // Marker. If false, this response header does not appear in the response. - DeleteMarker *bool + DeleteMarker bool // An ETag is an opaque identifier assigned by a web server to a specific version // of a resource found at a URL. @@ -304,13 +304,13 @@ type GetObjectOutput struct { LastModified *time.Time // A map of metadata to store with the object in S3. - Metadata map[string]*string + Metadata map[string]string // This is set to the number of metadata entries not returned in x-amz-meta // headers. This can happen if you create metadata using an API like SOAP that // supports more flexible metadata than the REST API. For example, using SOAP, you // can create metadata whose values are not legal HTTP headers. - MissingMeta *int32 + MissingMeta int32 // Indicates whether this object has an active legal hold. This field is only // returned if you have permission to view an object's legal hold status. @@ -323,7 +323,7 @@ type GetObjectOutput struct { ObjectLockRetainUntilDate *time.Time // The count of parts this object has. - PartsCount *int32 + PartsCount int32 // Amazon S3 can return this if your request involves a bucket that is either a // source or destination in a replication rule. @@ -360,7 +360,7 @@ type GetObjectOutput struct { StorageClass types.StorageClass // The number of tags, if any, on the object. - TagCount *int32 + TagCount int32 // Version of the object. VersionId *string diff --git a/service/s3/api_op_GetObjectAcl.go b/service/s3/api_op_GetObjectAcl.go index dd7cf9b1cd6..a737643b7fc 100644 --- a/service/s3/api_op_GetObjectAcl.go +++ b/service/s3/api_op_GetObjectAcl.go @@ -81,7 +81,7 @@ type GetObjectAclInput struct { type GetObjectAclOutput struct { // A list of grants. - Grants []*types.Grant + Grants []types.Grant // Container for the bucket owner's display name and ID. Owner *types.Owner diff --git a/service/s3/api_op_GetObjectTagging.go b/service/s3/api_op_GetObjectTagging.go index cdce8145ca3..d1945c09e80 100644 --- a/service/s3/api_op_GetObjectTagging.go +++ b/service/s3/api_op_GetObjectTagging.go @@ -81,7 +81,7 @@ type GetObjectTaggingOutput struct { // Contains the tag set. // // This member is required. - TagSet []*types.Tag + TagSet []types.Tag // The versionId of the object for which you got the tagging information. VersionId *string diff --git a/service/s3/api_op_HeadObject.go b/service/s3/api_op_HeadObject.go index cd9b88de2e0..0855379e0ae 100644 --- a/service/s3/api_op_HeadObject.go +++ b/service/s3/api_op_HeadObject.go @@ -153,7 +153,7 @@ type HeadObjectInput struct { // 10,000. Effectively performs a 'ranged' HEAD request for the part specified. // Useful querying about the size of the part and the number of parts in this // object. - PartNumber *int32 + PartNumber int32 // Downloads the specified range bytes of an object. For more information about the // HTTP Range header, see @@ -210,14 +210,14 @@ type HeadObjectOutput struct { ContentLanguage *string // Size of the body in bytes. - ContentLength *int64 + ContentLength int64 // A standard MIME type describing the format of the object data. ContentType *string // Specifies whether the object retrieved was (true) or was not (false) a Delete // Marker. If false, this response header does not appear in the response. - DeleteMarker *bool + DeleteMarker bool // An ETag is an opaque identifier assigned by a web server to a specific version // of a resource found at a URL. @@ -236,13 +236,13 @@ type HeadObjectOutput struct { LastModified *time.Time // A map of metadata to store with the object in S3. - Metadata map[string]*string + Metadata map[string]string // This is set to the number of metadata entries not returned in x-amz-meta // headers. This can happen if you create metadata using an API like SOAP that // supports more flexible metadata than the REST API. For example, using SOAP, you // can create metadata whose values are not legal HTTP headers. - MissingMeta *int32 + MissingMeta int32 // Specifies whether a legal hold is in effect for this object. This header is only // returned if the requester has the s3:GetObjectLegalHold permission. This header @@ -262,7 +262,7 @@ type HeadObjectOutput struct { ObjectLockRetainUntilDate *time.Time // The count of parts this object has. - PartsCount *int32 + PartsCount int32 // Amazon S3 can return this header if your request involves a bucket that is // either a source or destination in a replication rule. In replication, you have a diff --git a/service/s3/api_op_ListBucketAnalyticsConfigurations.go b/service/s3/api_op_ListBucketAnalyticsConfigurations.go index 0f6f88b9500..f50e89830d8 100644 --- a/service/s3/api_op_ListBucketAnalyticsConfigurations.go +++ b/service/s3/api_op_ListBucketAnalyticsConfigurations.go @@ -77,7 +77,7 @@ type ListBucketAnalyticsConfigurationsInput struct { type ListBucketAnalyticsConfigurationsOutput struct { // The list of analytics configurations for a bucket. - AnalyticsConfigurationList []*types.AnalyticsConfiguration + AnalyticsConfigurationList []types.AnalyticsConfiguration // The marker that is used as a starting point for this analytics configuration // list response. This value is present if it was sent in the request. @@ -86,7 +86,7 @@ type ListBucketAnalyticsConfigurationsOutput struct { // Indicates whether the returned list of analytics configurations is complete. A // value of true indicates that the list is not complete and the // NextContinuationToken will be provided for a subsequent request. - IsTruncated *bool + IsTruncated bool // NextContinuationToken is sent when isTruncated is true, which indicates that // there are more analytics configurations to list. The next request must include diff --git a/service/s3/api_op_ListBucketInventoryConfigurations.go b/service/s3/api_op_ListBucketInventoryConfigurations.go index e23991bb13c..c1ead15dc54 100644 --- a/service/s3/api_op_ListBucketInventoryConfigurations.go +++ b/service/s3/api_op_ListBucketInventoryConfigurations.go @@ -82,12 +82,12 @@ type ListBucketInventoryConfigurationsOutput struct { ContinuationToken *string // The list of inventory configurations for a bucket. - InventoryConfigurationList []*types.InventoryConfiguration + InventoryConfigurationList []types.InventoryConfiguration // Tells whether the returned list of inventory configurations is complete. A value // of true indicates that the list is not complete and the NextContinuationToken is // provided for a subsequent request. - IsTruncated *bool + IsTruncated bool // The marker used to continue this inventory configuration listing. Use the // NextContinuationToken from this response to continue the listing in a subsequent diff --git a/service/s3/api_op_ListBucketMetricsConfigurations.go b/service/s3/api_op_ListBucketMetricsConfigurations.go index 510f7139ba6..336771b35dc 100644 --- a/service/s3/api_op_ListBucketMetricsConfigurations.go +++ b/service/s3/api_op_ListBucketMetricsConfigurations.go @@ -86,10 +86,10 @@ type ListBucketMetricsConfigurationsOutput struct { // Indicates whether the returned list of metrics configurations is complete. A // value of true indicates that the list is not complete and the // NextContinuationToken will be provided for a subsequent request. - IsTruncated *bool + IsTruncated bool // The list of metrics configurations for a bucket. - MetricsConfigurationList []*types.MetricsConfiguration + MetricsConfigurationList []types.MetricsConfiguration // The marker used to continue a metrics configuration listing that has been // truncated. Use the NextContinuationToken from a previously truncated list diff --git a/service/s3/api_op_ListBuckets.go b/service/s3/api_op_ListBuckets.go index 2bb3ee330b3..f384e30f6bd 100644 --- a/service/s3/api_op_ListBuckets.go +++ b/service/s3/api_op_ListBuckets.go @@ -33,7 +33,7 @@ type ListBucketsInput struct { type ListBucketsOutput struct { // The list of buckets owned by the requestor. - Buckets []*types.Bucket + Buckets []types.Bucket // The owner of the buckets listed. Owner *types.Owner diff --git a/service/s3/api_op_ListMultipartUploads.go b/service/s3/api_op_ListMultipartUploads.go index 6fe6d24f257..a64d444d7f4 100644 --- a/service/s3/api_op_ListMultipartUploads.go +++ b/service/s3/api_op_ListMultipartUploads.go @@ -120,7 +120,7 @@ type ListMultipartUploadsInput struct { // Sets the maximum number of multipart uploads, from 1 to 1,000, to return in the // response body. 1,000 is the maximum number of uploads that can be returned in a // response. - MaxUploads *int32 + MaxUploads int32 // Lists in-progress uploads only for those keys that begin with the specified // prefix. You can use prefixes to separate a bucket into different grouping of @@ -144,7 +144,7 @@ type ListMultipartUploadsOutput struct { // If you specify a delimiter in the request, then the result returns each distinct // key prefix containing the delimiter in a CommonPrefixes element. The distinct // key prefixes are returned in the Prefix child element. - CommonPrefixes []*types.CommonPrefix + CommonPrefixes []types.CommonPrefix // Contains the delimiter you specified in the request. If you don't specify a // delimiter in your request, this element is absent from the response. @@ -160,14 +160,14 @@ type ListMultipartUploadsOutput struct { // of true indicates that the list was truncated. The list can be truncated if the // number of multipart uploads exceeds the limit allowed or specified by max // uploads. - IsTruncated *bool + IsTruncated bool // The key at or after which the listing began. KeyMarker *string // Maximum number of multipart uploads that could have been included in the // response. - MaxUploads *int32 + MaxUploads int32 // When a list is truncated, this element specifies the value that should be used // for the key-marker request parameter in a subsequent request. @@ -186,7 +186,7 @@ type ListMultipartUploadsOutput struct { // Container for elements related to a particular multipart upload. A response can // contain zero or more Upload elements. - Uploads []*types.MultipartUpload + Uploads []types.MultipartUpload // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3/api_op_ListObjectVersions.go b/service/s3/api_op_ListObjectVersions.go index 0b66e93206f..5a6baada793 100644 --- a/service/s3/api_op_ListObjectVersions.go +++ b/service/s3/api_op_ListObjectVersions.go @@ -82,7 +82,7 @@ type ListObjectVersionsInput struct { // never contain more. If additional keys satisfy the search criteria, but were not // returned because max-keys was exceeded, the response contains true. To return // the additional keys, see key-marker and version-id-marker. - MaxKeys *int32 + MaxKeys int32 // Use this parameter to select only those keys that begin with the specified // prefix. You can use prefixes to separate a bucket into different groupings of @@ -99,10 +99,10 @@ type ListObjectVersionsOutput struct { // All of the keys rolled up into a common prefix count as a single return when // calculating the number of returns. - CommonPrefixes []*types.CommonPrefix + CommonPrefixes []types.CommonPrefix // Container for an object that is a delete marker. - DeleteMarkers []*types.DeleteMarkerEntry + DeleteMarkers []types.DeleteMarkerEntry // The delimiter grouping the included keys. A delimiter is a character that you // specify to group keys. All keys that contain the same string between the prefix @@ -122,13 +122,13 @@ type ListObjectVersionsOutput struct { // follow-up paginated request using the NextKeyMarker and NextVersionIdMarker // response parameters as a starting place in another request to return the rest of // the results. - IsTruncated *bool + IsTruncated bool // Marks the last key returned in a truncated response. KeyMarker *string // Specifies the maximum number of objects to return. - MaxKeys *int32 + MaxKeys int32 // The bucket name. Name *string @@ -151,7 +151,7 @@ type ListObjectVersionsOutput struct { VersionIdMarker *string // Container for version information. - Versions []*types.ObjectVersion + Versions []types.ObjectVersion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3/api_op_ListObjects.go b/service/s3/api_op_ListObjects.go index 44dea4a399b..f349498ac18 100644 --- a/service/s3/api_op_ListObjects.go +++ b/service/s3/api_op_ListObjects.go @@ -99,7 +99,7 @@ type ListObjectsInput struct { // Sets the maximum number of keys returned in the response. By default the API // returns up to 1,000 key names. The response might contain fewer keys but will // never contain more. - MaxKeys *int32 + MaxKeys int32 // Limits the response to keys that begin with the specified prefix. Prefix *string @@ -121,10 +121,10 @@ type ListObjectsOutput struct { // slash (/) as in notes/summer/july, the common prefix is notes/summer/. All of // the keys that roll up into a common prefix count as a single return when // calculating the number of returns. - CommonPrefixes []*types.CommonPrefix + CommonPrefixes []types.CommonPrefix // Metadata about each object returned. - Contents []*types.Object + Contents []types.Object // Causes keys that contain the same string between the prefix and the first // occurrence of the delimiter to be rolled up into a single result element in the @@ -138,14 +138,14 @@ type ListObjectsOutput struct { // A flag that indicates whether Amazon S3 returned all of the results that // satisfied the search criteria. - IsTruncated *bool + IsTruncated bool // Indicates where in the bucket listing begins. Marker is included in the response // if it was sent with the request. Marker *string // The maximum number of keys returned in the response body. - MaxKeys *int32 + MaxKeys int32 // The bucket name. Name *string diff --git a/service/s3/api_op_ListObjectsV2.go b/service/s3/api_op_ListObjectsV2.go index 5813ccd63b8..09899cc97d3 100644 --- a/service/s3/api_op_ListObjectsV2.go +++ b/service/s3/api_op_ListObjectsV2.go @@ -95,12 +95,12 @@ type ListObjectsV2Input struct { // The owner field is not present in listV2 by default, if you want to return owner // field with each key in the result then set the fetch owner field to true. - FetchOwner *bool + FetchOwner bool // Sets the maximum number of keys returned in the response. By default the API // returns up to 1,000 key names. The response might contain fewer keys but will // never contain more. - MaxKeys *int32 + MaxKeys int32 // Limits the response to keys that begin with the specified prefix. Prefix *string @@ -126,10 +126,10 @@ type ListObjectsV2Output struct { // slash (/) as in notes/summer/july, the common prefix is notes/summer/. All of // the keys that roll up into a common prefix count as a single return when // calculating the number of returns. - CommonPrefixes []*types.CommonPrefix + CommonPrefixes []types.CommonPrefix // Metadata about each object returned. - Contents []*types.Object + Contents []types.Object // If ContinuationToken was sent with the request, it is included in the response. ContinuationToken *string @@ -150,17 +150,17 @@ type ListObjectsV2Output struct { // Set to false if all of the results were returned. Set to true if more keys are // available to return. If the number of results exceeds that specified by MaxKeys, // all of the results might not be returned. - IsTruncated *bool + IsTruncated bool // KeyCount is the number of keys returned with this request. KeyCount will always // be less than equals to MaxKeys field. Say you ask for 50 keys, your result will // include less than equals 50 keys - KeyCount *int32 + KeyCount int32 // Sets the maximum number of keys returned in the response. By default the API // returns up to 1,000 key names. The response might contain fewer keys but will // never contain more. - MaxKeys *int32 + MaxKeys int32 // The bucket name. When using this API with an access point, you must direct // requests to the access point hostname. The access point hostname takes the form diff --git a/service/s3/api_op_ListParts.go b/service/s3/api_op_ListParts.go index cd95a50fa55..5d31c4aabf1 100644 --- a/service/s3/api_op_ListParts.go +++ b/service/s3/api_op_ListParts.go @@ -101,11 +101,11 @@ type ListPartsInput struct { ExpectedBucketOwner *string // Sets the maximum number of parts to return. - MaxParts *int32 + MaxParts int32 // Specifies the part after which listing should begin. Only parts with higher part // numbers will be listed. - PartNumberMarker *int32 + PartNumberMarker int32 // Confirms that the requester knows that they will be charged for the request. // Bucket owners need not specify this parameter in their requests. For information @@ -146,18 +146,18 @@ type ListPartsOutput struct { // Indicates whether the returned list of parts is truncated. A true value // indicates that the list was truncated. A list can be truncated if the number of // parts exceeds the limit returned in the MaxParts element. - IsTruncated *bool + IsTruncated bool // Object key for which the multipart upload was initiated. Key *string // Maximum number of parts that were allowed in the response. - MaxParts *int32 + MaxParts int32 // When a list is truncated, this element specifies the last part in the list, as // well as the value to use for the part-number-marker request parameter in a // subsequent request. - NextPartNumberMarker *int32 + NextPartNumberMarker int32 // Container element that identifies the object owner, after the object is created. // If multipart upload is initiated by an IAM user, this element provides the @@ -167,11 +167,11 @@ type ListPartsOutput struct { // When a list is truncated, this element specifies the last part in the list, as // well as the value to use for the part-number-marker request parameter in a // subsequent request. - PartNumberMarker *int32 + PartNumberMarker int32 // Container for elements related to a particular part. A response can contain zero // or more Part elements. - Parts []*types.Part + Parts []types.Part // If present, indicates that the requester was successfully charged for the // request. diff --git a/service/s3/api_op_PutBucketPolicy.go b/service/s3/api_op_PutBucketPolicy.go index c021cd8b39f..f577dabd601 100644 --- a/service/s3/api_op_PutBucketPolicy.go +++ b/service/s3/api_op_PutBucketPolicy.go @@ -59,7 +59,7 @@ type PutBucketPolicyInput struct { // Set this parameter to true to confirm that you want to remove your permissions // to change this bucket policy in the future. - ConfirmRemoveSelfBucketAccess *bool + ConfirmRemoveSelfBucketAccess bool // The MD5 hash of the request body. ContentMD5 *string diff --git a/service/s3/api_op_PutObject.go b/service/s3/api_op_PutObject.go index e8057bf380f..0dfa19004ea 100644 --- a/service/s3/api_op_PutObject.go +++ b/service/s3/api_op_PutObject.go @@ -145,7 +145,7 @@ type PutObjectInput struct { // 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). - ContentLength *int64 + ContentLength int64 // The base64-encoded 128-bit MD5 digest of the message (without the headers) // according to RFC 1864. This header can be used as a message integrity check to @@ -187,7 +187,7 @@ type PutObjectInput struct { GrantWriteACP *string // A map of metadata to store with the object in S3. - Metadata map[string]*string + Metadata map[string]string // Specifies whether a legal hold will be applied to this object. For more // information about S3 Object Lock, see Object Lock diff --git a/service/s3/api_op_PutObjectRetention.go b/service/s3/api_op_PutObjectRetention.go index ee7d3a17d4b..44a0f88b780 100644 --- a/service/s3/api_op_PutObjectRetention.go +++ b/service/s3/api_op_PutObjectRetention.go @@ -53,7 +53,7 @@ type PutObjectRetentionInput struct { Key *string // Indicates whether this operation should bypass Governance-mode restrictions. - BypassGovernanceRetention *bool + BypassGovernanceRetention bool // The MD5 hash for the request body. ContentMD5 *string diff --git a/service/s3/api_op_UploadPart.go b/service/s3/api_op_UploadPart.go index 99dbc3da6d0..ee28ec60b0d 100644 --- a/service/s3/api_op_UploadPart.go +++ b/service/s3/api_op_UploadPart.go @@ -155,7 +155,7 @@ type UploadPartInput struct { // 10,000. // // This member is required. - PartNumber *int32 + PartNumber int32 // Upload ID identifying the multipart upload whose part is being uploaded. // @@ -167,7 +167,7 @@ type UploadPartInput struct { // Size of the body in bytes. This parameter is useful when the size of the body // cannot be determined automatically. - ContentLength *int64 + ContentLength int64 // The base64-encoded 128-bit MD5 digest of the part data. This parameter is // auto-populated when using the command from the CLI. This parameter is required diff --git a/service/s3/api_op_UploadPartCopy.go b/service/s3/api_op_UploadPartCopy.go index 1f0beb0c0bc..57bd61b487b 100644 --- a/service/s3/api_op_UploadPartCopy.go +++ b/service/s3/api_op_UploadPartCopy.go @@ -207,7 +207,7 @@ type UploadPartCopyInput struct { // 10,000. // // This member is required. - PartNumber *int32 + PartNumber int32 // Upload ID identifying the multipart upload whose part is being copied. // diff --git a/service/s3/deserializers.go b/service/s3/deserializers.go index 3f9484ef42c..9ad94823935 100644 --- a/service/s3/deserializers.go +++ b/service/s3/deserializers.go @@ -281,7 +281,7 @@ func awsRestxml_deserializeOpDocumentCompleteMultipartUploadOutput(v **CompleteM } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("ETag", t.Name.Local): @@ -297,7 +297,7 @@ func awsRestxml_deserializeOpDocumentCompleteMultipartUploadOutput(v **CompleteM } if val != nil { xtv := string(val) - sv.ETag = &xtv + sv.ETag = ptr.String(xtv) } case strings.EqualFold("Key", t.Name.Local): @@ -313,7 +313,7 @@ func awsRestxml_deserializeOpDocumentCompleteMultipartUploadOutput(v **CompleteM } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Location", t.Name.Local): @@ -329,7 +329,7 @@ func awsRestxml_deserializeOpDocumentCompleteMultipartUploadOutput(v **CompleteM } if val != nil { xtv := string(val) - sv.Location = &xtv + sv.Location = ptr.String(xtv) } default: @@ -818,7 +818,7 @@ func awsRestxml_deserializeOpDocumentCreateMultipartUploadOutput(v **CreateMulti } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("Key", t.Name.Local): @@ -834,7 +834,7 @@ func awsRestxml_deserializeOpDocumentCreateMultipartUploadOutput(v **CreateMulti } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("UploadId", t.Name.Local): @@ -850,7 +850,7 @@ func awsRestxml_deserializeOpDocumentCreateMultipartUploadOutput(v **CreateMulti } if val != nil { xtv := string(val) - sv.UploadId = &xtv + sv.UploadId = ptr.String(xtv) } default: @@ -1776,7 +1776,7 @@ func awsRestxml_deserializeOpHttpBindingsDeleteObjectOutput(v *DeleteObjectOutpu if err != nil { return err } - v.DeleteMarker = ptr.Bool(vv) + v.DeleteMarker = vv } if headerValues := response.Header.Values("x-amz-request-charged"); len(headerValues) != 0 { @@ -3890,7 +3890,7 @@ func awsRestxml_deserializeOpDocumentGetBucketPolicyOutput(v **GetBucketPolicyOu } if val != nil { xtv := string(val) - sv.Policy = &xtv + sv.Policy = ptr.String(xtv) } default: @@ -4876,7 +4876,7 @@ func awsRestxml_deserializeOpHttpBindingsGetObjectOutput(v *GetObjectOutput, res if err != nil { return err } - v.ContentLength = ptr.Int64(vv) + v.ContentLength = vv } if headerValues := response.Header.Values("Content-Range"); len(headerValues) != 0 { @@ -4895,7 +4895,7 @@ func awsRestxml_deserializeOpHttpBindingsGetObjectOutput(v *GetObjectOutput, res if err != nil { return err } - v.DeleteMarker = ptr.Bool(vv) + v.DeleteMarker = vv } if headerValues := response.Header.Values("ETag"); len(headerValues) != 0 { @@ -4929,10 +4929,10 @@ func awsRestxml_deserializeOpHttpBindingsGetObjectOutput(v *GetObjectOutput, res for headerKey, headerValues := range response.Header { if lenPrefix := len("x-amz-meta-"); len(headerKey) >= lenPrefix && strings.EqualFold(headerKey[:lenPrefix], "x-amz-meta-") { if v.Metadata == nil { - v.Metadata = map[string]*string{} + v.Metadata = map[string]string{} } headerValues[0] = strings.TrimSpace(headerValues[0]) - v.Metadata[headerKey[lenPrefix:]] = ptr.String(headerValues[0]) + v.Metadata[headerKey[lenPrefix:]] = headerValues[0] } } @@ -4942,7 +4942,7 @@ func awsRestxml_deserializeOpHttpBindingsGetObjectOutput(v *GetObjectOutput, res if err != nil { return err } - v.MissingMeta = ptr.Int32(int32(vv)) + v.MissingMeta = int32(vv) } if headerValues := response.Header.Values("x-amz-object-lock-legal-hold"); len(headerValues) != 0 { @@ -4970,7 +4970,7 @@ func awsRestxml_deserializeOpHttpBindingsGetObjectOutput(v *GetObjectOutput, res if err != nil { return err } - v.PartsCount = ptr.Int32(int32(vv)) + v.PartsCount = int32(vv) } if headerValues := response.Header.Values("x-amz-replication-status"); len(headerValues) != 0 { @@ -5019,7 +5019,7 @@ func awsRestxml_deserializeOpHttpBindingsGetObjectOutput(v *GetObjectOutput, res if err != nil { return err } - v.TagCount = ptr.Int32(int32(vv)) + v.TagCount = int32(vv) } if headerValues := response.Header.Values("x-amz-version-id"); len(headerValues) != 0 { @@ -6176,7 +6176,7 @@ func awsRestxml_deserializeOpHttpBindingsHeadObjectOutput(v *HeadObjectOutput, r if err != nil { return err } - v.ContentLength = ptr.Int64(vv) + v.ContentLength = vv } if headerValues := response.Header.Values("Content-Type"); len(headerValues) != 0 { @@ -6190,7 +6190,7 @@ func awsRestxml_deserializeOpHttpBindingsHeadObjectOutput(v *HeadObjectOutput, r if err != nil { return err } - v.DeleteMarker = ptr.Bool(vv) + v.DeleteMarker = vv } if headerValues := response.Header.Values("ETag"); len(headerValues) != 0 { @@ -6224,10 +6224,10 @@ func awsRestxml_deserializeOpHttpBindingsHeadObjectOutput(v *HeadObjectOutput, r for headerKey, headerValues := range response.Header { if lenPrefix := len("x-amz-meta-"); len(headerKey) >= lenPrefix && strings.EqualFold(headerKey[:lenPrefix], "x-amz-meta-") { if v.Metadata == nil { - v.Metadata = map[string]*string{} + v.Metadata = map[string]string{} } headerValues[0] = strings.TrimSpace(headerValues[0]) - v.Metadata[headerKey[lenPrefix:]] = ptr.String(headerValues[0]) + v.Metadata[headerKey[lenPrefix:]] = headerValues[0] } } @@ -6237,7 +6237,7 @@ func awsRestxml_deserializeOpHttpBindingsHeadObjectOutput(v *HeadObjectOutput, r if err != nil { return err } - v.MissingMeta = ptr.Int32(int32(vv)) + v.MissingMeta = int32(vv) } if headerValues := response.Header.Values("x-amz-object-lock-legal-hold"); len(headerValues) != 0 { @@ -6265,7 +6265,7 @@ func awsRestxml_deserializeOpHttpBindingsHeadObjectOutput(v *HeadObjectOutput, r if err != nil { return err } - v.PartsCount = ptr.Int32(int32(vv)) + v.PartsCount = int32(vv) } if headerValues := response.Header.Values("x-amz-replication-status"); len(headerValues) != 0 { @@ -6459,7 +6459,7 @@ func awsRestxml_deserializeOpDocumentListBucketAnalyticsConfigurationsOutput(v * } if val != nil { xtv := string(val) - sv.ContinuationToken = &xtv + sv.ContinuationToken = ptr.String(xtv) } case strings.EqualFold("IsTruncated", t.Name.Local): @@ -6475,7 +6475,7 @@ func awsRestxml_deserializeOpDocumentListBucketAnalyticsConfigurationsOutput(v * if err != nil { return fmt.Errorf("expected IsTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("NextContinuationToken", t.Name.Local): @@ -6491,7 +6491,7 @@ func awsRestxml_deserializeOpDocumentListBucketAnalyticsConfigurationsOutput(v * } if val != nil { xtv := string(val) - sv.NextContinuationToken = &xtv + sv.NextContinuationToken = ptr.String(xtv) } default: @@ -6636,7 +6636,7 @@ func awsRestxml_deserializeOpDocumentListBucketInventoryConfigurationsOutput(v * } if val != nil { xtv := string(val) - sv.ContinuationToken = &xtv + sv.ContinuationToken = ptr.String(xtv) } case strings.EqualFold("InventoryConfiguration", t.Name.Local): @@ -6658,7 +6658,7 @@ func awsRestxml_deserializeOpDocumentListBucketInventoryConfigurationsOutput(v * if err != nil { return fmt.Errorf("expected IsTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("NextContinuationToken", t.Name.Local): @@ -6674,7 +6674,7 @@ func awsRestxml_deserializeOpDocumentListBucketInventoryConfigurationsOutput(v * } if val != nil { xtv := string(val) - sv.NextContinuationToken = &xtv + sv.NextContinuationToken = ptr.String(xtv) } default: @@ -6819,7 +6819,7 @@ func awsRestxml_deserializeOpDocumentListBucketMetricsConfigurationsOutput(v **L } if val != nil { xtv := string(val) - sv.ContinuationToken = &xtv + sv.ContinuationToken = ptr.String(xtv) } case strings.EqualFold("IsTruncated", t.Name.Local): @@ -6835,7 +6835,7 @@ func awsRestxml_deserializeOpDocumentListBucketMetricsConfigurationsOutput(v **L if err != nil { return fmt.Errorf("expected IsTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("MetricsConfiguration", t.Name.Local): @@ -6857,7 +6857,7 @@ func awsRestxml_deserializeOpDocumentListBucketMetricsConfigurationsOutput(v **L } if val != nil { xtv := string(val) - sv.NextContinuationToken = &xtv + sv.NextContinuationToken = ptr.String(xtv) } default: @@ -7143,7 +7143,7 @@ func awsRestxml_deserializeOpDocumentListMultipartUploadsOutput(v **ListMultipar } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("CommonPrefixes", t.Name.Local): @@ -7165,7 +7165,7 @@ func awsRestxml_deserializeOpDocumentListMultipartUploadsOutput(v **ListMultipar } if val != nil { xtv := string(val) - sv.Delimiter = &xtv + sv.Delimiter = ptr.String(xtv) } case strings.EqualFold("EncodingType", t.Name.Local): @@ -7194,7 +7194,7 @@ func awsRestxml_deserializeOpDocumentListMultipartUploadsOutput(v **ListMultipar if err != nil { return fmt.Errorf("expected IsTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("KeyMarker", t.Name.Local): @@ -7210,7 +7210,7 @@ func awsRestxml_deserializeOpDocumentListMultipartUploadsOutput(v **ListMultipar } if val != nil { xtv := string(val) - sv.KeyMarker = &xtv + sv.KeyMarker = ptr.String(xtv) } case strings.EqualFold("MaxUploads", t.Name.Local): @@ -7227,7 +7227,7 @@ func awsRestxml_deserializeOpDocumentListMultipartUploadsOutput(v **ListMultipar if err != nil { return err } - sv.MaxUploads = ptr.Int32(int32(i64)) + sv.MaxUploads = int32(i64) } case strings.EqualFold("NextKeyMarker", t.Name.Local): @@ -7243,7 +7243,7 @@ func awsRestxml_deserializeOpDocumentListMultipartUploadsOutput(v **ListMultipar } if val != nil { xtv := string(val) - sv.NextKeyMarker = &xtv + sv.NextKeyMarker = ptr.String(xtv) } case strings.EqualFold("NextUploadIdMarker", t.Name.Local): @@ -7259,7 +7259,7 @@ func awsRestxml_deserializeOpDocumentListMultipartUploadsOutput(v **ListMultipar } if val != nil { xtv := string(val) - sv.NextUploadIdMarker = &xtv + sv.NextUploadIdMarker = ptr.String(xtv) } case strings.EqualFold("Prefix", t.Name.Local): @@ -7275,7 +7275,7 @@ func awsRestxml_deserializeOpDocumentListMultipartUploadsOutput(v **ListMultipar } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("UploadIdMarker", t.Name.Local): @@ -7291,7 +7291,7 @@ func awsRestxml_deserializeOpDocumentListMultipartUploadsOutput(v **ListMultipar } if val != nil { xtv := string(val) - sv.UploadIdMarker = &xtv + sv.UploadIdMarker = ptr.String(xtv) } case strings.EqualFold("Upload", t.Name.Local): @@ -7457,7 +7457,7 @@ func awsRestxml_deserializeOpDocumentListObjectsOutput(v **ListObjectsOutput, de } if val != nil { xtv := string(val) - sv.Delimiter = &xtv + sv.Delimiter = ptr.String(xtv) } case strings.EqualFold("EncodingType", t.Name.Local): @@ -7486,7 +7486,7 @@ func awsRestxml_deserializeOpDocumentListObjectsOutput(v **ListObjectsOutput, de if err != nil { return fmt.Errorf("expected IsTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Marker", t.Name.Local): @@ -7502,7 +7502,7 @@ func awsRestxml_deserializeOpDocumentListObjectsOutput(v **ListObjectsOutput, de } if val != nil { xtv := string(val) - sv.Marker = &xtv + sv.Marker = ptr.String(xtv) } case strings.EqualFold("MaxKeys", t.Name.Local): @@ -7519,7 +7519,7 @@ func awsRestxml_deserializeOpDocumentListObjectsOutput(v **ListObjectsOutput, de if err != nil { return err } - sv.MaxKeys = ptr.Int32(int32(i64)) + sv.MaxKeys = int32(i64) } case strings.EqualFold("Name", t.Name.Local): @@ -7535,7 +7535,7 @@ func awsRestxml_deserializeOpDocumentListObjectsOutput(v **ListObjectsOutput, de } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("NextMarker", t.Name.Local): @@ -7551,7 +7551,7 @@ func awsRestxml_deserializeOpDocumentListObjectsOutput(v **ListObjectsOutput, de } if val != nil { xtv := string(val) - sv.NextMarker = &xtv + sv.NextMarker = ptr.String(xtv) } case strings.EqualFold("Prefix", t.Name.Local): @@ -7567,7 +7567,7 @@ func awsRestxml_deserializeOpDocumentListObjectsOutput(v **ListObjectsOutput, de } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } default: @@ -7727,7 +7727,7 @@ func awsRestxml_deserializeOpDocumentListObjectsV2Output(v **ListObjectsV2Output } if val != nil { xtv := string(val) - sv.ContinuationToken = &xtv + sv.ContinuationToken = ptr.String(xtv) } case strings.EqualFold("Delimiter", t.Name.Local): @@ -7743,7 +7743,7 @@ func awsRestxml_deserializeOpDocumentListObjectsV2Output(v **ListObjectsV2Output } if val != nil { xtv := string(val) - sv.Delimiter = &xtv + sv.Delimiter = ptr.String(xtv) } case strings.EqualFold("EncodingType", t.Name.Local): @@ -7772,7 +7772,7 @@ func awsRestxml_deserializeOpDocumentListObjectsV2Output(v **ListObjectsV2Output if err != nil { return fmt.Errorf("expected IsTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("KeyCount", t.Name.Local): @@ -7789,7 +7789,7 @@ func awsRestxml_deserializeOpDocumentListObjectsV2Output(v **ListObjectsV2Output if err != nil { return err } - sv.KeyCount = ptr.Int32(int32(i64)) + sv.KeyCount = int32(i64) } case strings.EqualFold("MaxKeys", t.Name.Local): @@ -7806,7 +7806,7 @@ func awsRestxml_deserializeOpDocumentListObjectsV2Output(v **ListObjectsV2Output if err != nil { return err } - sv.MaxKeys = ptr.Int32(int32(i64)) + sv.MaxKeys = int32(i64) } case strings.EqualFold("Name", t.Name.Local): @@ -7822,7 +7822,7 @@ func awsRestxml_deserializeOpDocumentListObjectsV2Output(v **ListObjectsV2Output } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("NextContinuationToken", t.Name.Local): @@ -7838,7 +7838,7 @@ func awsRestxml_deserializeOpDocumentListObjectsV2Output(v **ListObjectsV2Output } if val != nil { xtv := string(val) - sv.NextContinuationToken = &xtv + sv.NextContinuationToken = ptr.String(xtv) } case strings.EqualFold("Prefix", t.Name.Local): @@ -7854,7 +7854,7 @@ func awsRestxml_deserializeOpDocumentListObjectsV2Output(v **ListObjectsV2Output } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("StartAfter", t.Name.Local): @@ -7870,7 +7870,7 @@ func awsRestxml_deserializeOpDocumentListObjectsV2Output(v **ListObjectsV2Output } if val != nil { xtv := string(val) - sv.StartAfter = &xtv + sv.StartAfter = ptr.String(xtv) } default: @@ -8027,7 +8027,7 @@ func awsRestxml_deserializeOpDocumentListObjectVersionsOutput(v **ListObjectVers } if val != nil { xtv := string(val) - sv.Delimiter = &xtv + sv.Delimiter = ptr.String(xtv) } case strings.EqualFold("EncodingType", t.Name.Local): @@ -8056,7 +8056,7 @@ func awsRestxml_deserializeOpDocumentListObjectVersionsOutput(v **ListObjectVers if err != nil { return fmt.Errorf("expected IsTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("KeyMarker", t.Name.Local): @@ -8072,7 +8072,7 @@ func awsRestxml_deserializeOpDocumentListObjectVersionsOutput(v **ListObjectVers } if val != nil { xtv := string(val) - sv.KeyMarker = &xtv + sv.KeyMarker = ptr.String(xtv) } case strings.EqualFold("MaxKeys", t.Name.Local): @@ -8089,7 +8089,7 @@ func awsRestxml_deserializeOpDocumentListObjectVersionsOutput(v **ListObjectVers if err != nil { return err } - sv.MaxKeys = ptr.Int32(int32(i64)) + sv.MaxKeys = int32(i64) } case strings.EqualFold("Name", t.Name.Local): @@ -8105,7 +8105,7 @@ func awsRestxml_deserializeOpDocumentListObjectVersionsOutput(v **ListObjectVers } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("NextKeyMarker", t.Name.Local): @@ -8121,7 +8121,7 @@ func awsRestxml_deserializeOpDocumentListObjectVersionsOutput(v **ListObjectVers } if val != nil { xtv := string(val) - sv.NextKeyMarker = &xtv + sv.NextKeyMarker = ptr.String(xtv) } case strings.EqualFold("NextVersionIdMarker", t.Name.Local): @@ -8137,7 +8137,7 @@ func awsRestxml_deserializeOpDocumentListObjectVersionsOutput(v **ListObjectVers } if val != nil { xtv := string(val) - sv.NextVersionIdMarker = &xtv + sv.NextVersionIdMarker = ptr.String(xtv) } case strings.EqualFold("Prefix", t.Name.Local): @@ -8153,7 +8153,7 @@ func awsRestxml_deserializeOpDocumentListObjectVersionsOutput(v **ListObjectVers } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("VersionIdMarker", t.Name.Local): @@ -8169,7 +8169,7 @@ func awsRestxml_deserializeOpDocumentListObjectVersionsOutput(v **ListObjectVers } if val != nil { xtv := string(val) - sv.VersionIdMarker = &xtv + sv.VersionIdMarker = ptr.String(xtv) } case strings.EqualFold("Version", t.Name.Local): @@ -8351,7 +8351,7 @@ func awsRestxml_deserializeOpDocumentListPartsOutput(v **ListPartsOutput, decode } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("Initiator", t.Name.Local): @@ -8373,7 +8373,7 @@ func awsRestxml_deserializeOpDocumentListPartsOutput(v **ListPartsOutput, decode if err != nil { return fmt.Errorf("expected IsTruncated to be of type *bool, got %T instead", val) } - sv.IsTruncated = &xtv + sv.IsTruncated = xtv } case strings.EqualFold("Key", t.Name.Local): @@ -8389,7 +8389,7 @@ func awsRestxml_deserializeOpDocumentListPartsOutput(v **ListPartsOutput, decode } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("MaxParts", t.Name.Local): @@ -8406,7 +8406,7 @@ func awsRestxml_deserializeOpDocumentListPartsOutput(v **ListPartsOutput, decode if err != nil { return err } - sv.MaxParts = ptr.Int32(int32(i64)) + sv.MaxParts = int32(i64) } case strings.EqualFold("NextPartNumberMarker", t.Name.Local): @@ -8423,7 +8423,7 @@ func awsRestxml_deserializeOpDocumentListPartsOutput(v **ListPartsOutput, decode if err != nil { return err } - sv.NextPartNumberMarker = ptr.Int32(int32(i64)) + sv.NextPartNumberMarker = int32(i64) } case strings.EqualFold("Owner", t.Name.Local): @@ -8446,7 +8446,7 @@ func awsRestxml_deserializeOpDocumentListPartsOutput(v **ListPartsOutput, decode if err != nil { return err } - sv.PartNumberMarker = ptr.Int32(int32(i64)) + sv.PartNumberMarker = int32(i64) } case strings.EqualFold("Part", t.Name.Local): @@ -8481,7 +8481,7 @@ func awsRestxml_deserializeOpDocumentListPartsOutput(v **ListPartsOutput, decode } if val != nil { xtv := string(val) - sv.UploadId = &xtv + sv.UploadId = ptr.String(xtv) } default: @@ -10756,7 +10756,7 @@ func awsRestxml_deserializeDocumentAbortIncompleteMultipartUpload(v **types.Abor if err != nil { return err } - sv.DaysAfterInitiation = ptr.Int32(int32(i64)) + sv.DaysAfterInitiation = int32(i64) } default: @@ -10814,13 +10814,13 @@ func awsRestxml_deserializeDocumentAccessControlTranslation(v **types.AccessCont return nil } -func awsRestxml_deserializeDocumentAllowedHeaders(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentAllowedHeaders(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -10838,20 +10838,17 @@ func awsRestxml_deserializeDocumentAllowedHeaders(v *[]*string, decoder smithyxm decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -10864,17 +10861,17 @@ func awsRestxml_deserializeDocumentAllowedHeaders(v *[]*string, decoder smithyxm return nil } -func awsRestxml_deserializeDocumentAllowedHeadersUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentAllowedHeadersUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -10882,27 +10879,24 @@ func awsRestxml_deserializeDocumentAllowedHeadersUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentAllowedMethods(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentAllowedMethods(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -10920,20 +10914,17 @@ func awsRestxml_deserializeDocumentAllowedMethods(v *[]*string, decoder smithyxm decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -10946,17 +10937,17 @@ func awsRestxml_deserializeDocumentAllowedMethods(v *[]*string, decoder smithyxm return nil } -func awsRestxml_deserializeDocumentAllowedMethodsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentAllowedMethodsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -10964,27 +10955,24 @@ func awsRestxml_deserializeDocumentAllowedMethodsUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentAllowedOrigins(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentAllowedOrigins(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -11002,20 +10990,17 @@ func awsRestxml_deserializeDocumentAllowedOrigins(v *[]*string, decoder smithyxm decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -11028,17 +11013,17 @@ func awsRestxml_deserializeDocumentAllowedOrigins(v *[]*string, decoder smithyxm return nil } -func awsRestxml_deserializeDocumentAllowedOriginsUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentAllowedOriginsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -11046,14 +11031,11 @@ func awsRestxml_deserializeDocumentAllowedOriginsUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -11095,7 +11077,7 @@ func awsRestxml_deserializeDocumentAnalyticsAndOperator(v **types.AnalyticsAndOp } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("Tag", t.Name.Local): @@ -11155,7 +11137,7 @@ func awsRestxml_deserializeDocumentAnalyticsConfiguration(v **types.AnalyticsCon } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("StorageClassAnalysis", t.Name.Local): @@ -11174,13 +11156,13 @@ func awsRestxml_deserializeDocumentAnalyticsConfiguration(v **types.AnalyticsCon return nil } -func awsRestxml_deserializeDocumentAnalyticsConfigurationList(v *[]*types.AnalyticsConfiguration, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentAnalyticsConfigurationList(v *[]types.AnalyticsConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AnalyticsConfiguration + var sv []types.AnalyticsConfiguration if *v == nil { - sv = make([]*types.AnalyticsConfiguration, 0) + sv = make([]types.AnalyticsConfiguration, 0) } else { sv = *v } @@ -11196,11 +11178,13 @@ func awsRestxml_deserializeDocumentAnalyticsConfigurationList(v *[]*types.Analyt } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.AnalyticsConfiguration + var col types.AnalyticsConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentAnalyticsConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentAnalyticsConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11213,23 +11197,25 @@ func awsRestxml_deserializeDocumentAnalyticsConfigurationList(v *[]*types.Analyt return nil } -func awsRestxml_deserializeDocumentAnalyticsConfigurationListUnwrapped(v *[]*types.AnalyticsConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.AnalyticsConfiguration +func awsRestxml_deserializeDocumentAnalyticsConfigurationListUnwrapped(v *[]types.AnalyticsConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.AnalyticsConfiguration if *v == nil { - sv = make([]*types.AnalyticsConfiguration, 0) + sv = make([]types.AnalyticsConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.AnalyticsConfiguration + var mv types.AnalyticsConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentAnalyticsConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentAnalyticsConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11314,7 +11300,7 @@ func awsRestxml_deserializeDocumentAnalyticsFilter(v **types.AnalyticsFilter, de } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("Tag", t.Name.Local): @@ -11368,7 +11354,7 @@ func awsRestxml_deserializeDocumentAnalyticsS3BucketDestination(v **types.Analyt } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("BucketAccountId", t.Name.Local): @@ -11384,7 +11370,7 @@ func awsRestxml_deserializeDocumentAnalyticsS3BucketDestination(v **types.Analyt } if val != nil { xtv := string(val) - sv.BucketAccountId = &xtv + sv.BucketAccountId = ptr.String(xtv) } case strings.EqualFold("Format", t.Name.Local): @@ -11413,7 +11399,7 @@ func awsRestxml_deserializeDocumentAnalyticsS3BucketDestination(v **types.Analyt } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } default: @@ -11462,7 +11448,7 @@ func awsRestxml_deserializeDocumentBucket(v **types.Bucket, decoder smithyxml.No if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case strings.EqualFold("Name", t.Name.Local): @@ -11478,7 +11464,7 @@ func awsRestxml_deserializeDocumentBucket(v **types.Bucket, decoder smithyxml.No } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -11555,13 +11541,13 @@ func awsRestxml_deserializeDocumentBucketAlreadyOwnedByYou(v **types.BucketAlrea return nil } -func awsRestxml_deserializeDocumentBuckets(v *[]*types.Bucket, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentBuckets(v *[]types.Bucket, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Bucket + var sv []types.Bucket if *v == nil { - sv = make([]*types.Bucket, 0) + sv = make([]types.Bucket, 0) } else { sv = *v } @@ -11577,11 +11563,13 @@ func awsRestxml_deserializeDocumentBuckets(v *[]*types.Bucket, decoder smithyxml } for { if strings.EqualFold("Bucket", t.Name.Local) { - var col *types.Bucket + var col types.Bucket nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentBucket(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentBucket(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11594,23 +11582,25 @@ func awsRestxml_deserializeDocumentBuckets(v *[]*types.Bucket, decoder smithyxml return nil } -func awsRestxml_deserializeDocumentBucketsUnwrapped(v *[]*types.Bucket, decoder smithyxml.NodeDecoder) error { - var sv []*types.Bucket +func awsRestxml_deserializeDocumentBucketsUnwrapped(v *[]types.Bucket, decoder smithyxml.NodeDecoder) error { + var sv []types.Bucket if *v == nil { - sv = make([]*types.Bucket, 0) + sv = make([]types.Bucket, 0) } else { sv = *v } switch { default: - var mv *types.Bucket + var mv types.Bucket t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentBucket(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentBucket(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11651,7 +11641,7 @@ func awsRestxml_deserializeDocumentCommonPrefix(v **types.CommonPrefix, decoder } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } default: @@ -11664,13 +11654,13 @@ func awsRestxml_deserializeDocumentCommonPrefix(v **types.CommonPrefix, decoder return nil } -func awsRestxml_deserializeDocumentCommonPrefixList(v *[]*types.CommonPrefix, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentCommonPrefixList(v *[]types.CommonPrefix, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CommonPrefix + var sv []types.CommonPrefix if *v == nil { - sv = make([]*types.CommonPrefix, 0) + sv = make([]types.CommonPrefix, 0) } else { sv = *v } @@ -11686,11 +11676,13 @@ func awsRestxml_deserializeDocumentCommonPrefixList(v *[]*types.CommonPrefix, de } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.CommonPrefix + var col types.CommonPrefix nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCommonPrefix(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentCommonPrefix(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -11703,23 +11695,25 @@ func awsRestxml_deserializeDocumentCommonPrefixList(v *[]*types.CommonPrefix, de return nil } -func awsRestxml_deserializeDocumentCommonPrefixListUnwrapped(v *[]*types.CommonPrefix, decoder smithyxml.NodeDecoder) error { - var sv []*types.CommonPrefix +func awsRestxml_deserializeDocumentCommonPrefixListUnwrapped(v *[]types.CommonPrefix, decoder smithyxml.NodeDecoder) error { + var sv []types.CommonPrefix if *v == nil { - sv = make([]*types.CommonPrefix, 0) + sv = make([]types.CommonPrefix, 0) } else { sv = *v } switch { default: - var mv *types.CommonPrefix + var mv types.CommonPrefix t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCommonPrefix(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentCommonPrefix(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -11760,7 +11754,7 @@ func awsRestxml_deserializeDocumentCondition(v **types.Condition, decoder smithy } if val != nil { xtv := string(val) - sv.HttpErrorCodeReturnedEquals = &xtv + sv.HttpErrorCodeReturnedEquals = ptr.String(xtv) } case strings.EqualFold("KeyPrefixEquals", t.Name.Local): @@ -11776,7 +11770,7 @@ func awsRestxml_deserializeDocumentCondition(v **types.Condition, decoder smithy } if val != nil { xtv := string(val) - sv.KeyPrefixEquals = &xtv + sv.KeyPrefixEquals = ptr.String(xtv) } default: @@ -11824,7 +11818,7 @@ func awsRestxml_deserializeDocumentCopyObjectResult(v **types.CopyObjectResult, } if val != nil { xtv := string(val) - sv.ETag = &xtv + sv.ETag = ptr.String(xtv) } case strings.EqualFold("LastModified", t.Name.Local): @@ -11841,7 +11835,7 @@ func awsRestxml_deserializeDocumentCopyObjectResult(v **types.CopyObjectResult, if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } default: @@ -11889,7 +11883,7 @@ func awsRestxml_deserializeDocumentCopyPartResult(v **types.CopyPartResult, deco } if val != nil { xtv := string(val) - sv.ETag = &xtv + sv.ETag = ptr.String(xtv) } case strings.EqualFold("LastModified", t.Name.Local): @@ -11906,7 +11900,7 @@ func awsRestxml_deserializeDocumentCopyPartResult(v **types.CopyPartResult, deco if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } default: @@ -11979,7 +11973,7 @@ func awsRestxml_deserializeDocumentCORSRule(v **types.CORSRule, decoder smithyxm if err != nil { return err } - sv.MaxAgeSeconds = ptr.Int32(int32(i64)) + sv.MaxAgeSeconds = int32(i64) } default: @@ -11992,13 +11986,13 @@ func awsRestxml_deserializeDocumentCORSRule(v **types.CORSRule, decoder smithyxm return nil } -func awsRestxml_deserializeDocumentCORSRules(v *[]*types.CORSRule, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentCORSRules(v *[]types.CORSRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CORSRule + var sv []types.CORSRule if *v == nil { - sv = make([]*types.CORSRule, 0) + sv = make([]types.CORSRule, 0) } else { sv = *v } @@ -12014,11 +12008,13 @@ func awsRestxml_deserializeDocumentCORSRules(v *[]*types.CORSRule, decoder smith } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.CORSRule + var col types.CORSRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCORSRule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentCORSRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12031,23 +12027,25 @@ func awsRestxml_deserializeDocumentCORSRules(v *[]*types.CORSRule, decoder smith return nil } -func awsRestxml_deserializeDocumentCORSRulesUnwrapped(v *[]*types.CORSRule, decoder smithyxml.NodeDecoder) error { - var sv []*types.CORSRule +func awsRestxml_deserializeDocumentCORSRulesUnwrapped(v *[]types.CORSRule, decoder smithyxml.NodeDecoder) error { + var sv []types.CORSRule if *v == nil { - sv = make([]*types.CORSRule, 0) + sv = make([]types.CORSRule, 0) } else { sv = *v } switch { default: - var mv *types.CORSRule + var mv types.CORSRule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCORSRule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentCORSRule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12089,7 +12087,7 @@ func awsRestxml_deserializeDocumentDefaultRetention(v **types.DefaultRetention, if err != nil { return err } - sv.Days = ptr.Int32(int32(i64)) + sv.Days = int32(i64) } case strings.EqualFold("Mode", t.Name.Local): @@ -12119,7 +12117,7 @@ func awsRestxml_deserializeDocumentDefaultRetention(v **types.DefaultRetention, if err != nil { return err } - sv.Years = ptr.Int32(int32(i64)) + sv.Years = int32(i64) } default: @@ -12167,7 +12165,7 @@ func awsRestxml_deserializeDocumentDeletedObject(v **types.DeletedObject, decode if err != nil { return fmt.Errorf("expected DeleteMarker to be of type *bool, got %T instead", val) } - sv.DeleteMarker = &xtv + sv.DeleteMarker = xtv } case strings.EqualFold("DeleteMarkerVersionId", t.Name.Local): @@ -12183,7 +12181,7 @@ func awsRestxml_deserializeDocumentDeletedObject(v **types.DeletedObject, decode } if val != nil { xtv := string(val) - sv.DeleteMarkerVersionId = &xtv + sv.DeleteMarkerVersionId = ptr.String(xtv) } case strings.EqualFold("Key", t.Name.Local): @@ -12199,7 +12197,7 @@ func awsRestxml_deserializeDocumentDeletedObject(v **types.DeletedObject, decode } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("VersionId", t.Name.Local): @@ -12215,7 +12213,7 @@ func awsRestxml_deserializeDocumentDeletedObject(v **types.DeletedObject, decode } if val != nil { xtv := string(val) - sv.VersionId = &xtv + sv.VersionId = ptr.String(xtv) } default: @@ -12228,13 +12226,13 @@ func awsRestxml_deserializeDocumentDeletedObject(v **types.DeletedObject, decode return nil } -func awsRestxml_deserializeDocumentDeletedObjects(v *[]*types.DeletedObject, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentDeletedObjects(v *[]types.DeletedObject, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DeletedObject + var sv []types.DeletedObject if *v == nil { - sv = make([]*types.DeletedObject, 0) + sv = make([]types.DeletedObject, 0) } else { sv = *v } @@ -12250,11 +12248,13 @@ func awsRestxml_deserializeDocumentDeletedObjects(v *[]*types.DeletedObject, dec } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.DeletedObject + var col types.DeletedObject nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDeletedObject(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentDeletedObject(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12267,23 +12267,25 @@ func awsRestxml_deserializeDocumentDeletedObjects(v *[]*types.DeletedObject, dec return nil } -func awsRestxml_deserializeDocumentDeletedObjectsUnwrapped(v *[]*types.DeletedObject, decoder smithyxml.NodeDecoder) error { - var sv []*types.DeletedObject +func awsRestxml_deserializeDocumentDeletedObjectsUnwrapped(v *[]types.DeletedObject, decoder smithyxml.NodeDecoder) error { + var sv []types.DeletedObject if *v == nil { - sv = make([]*types.DeletedObject, 0) + sv = make([]types.DeletedObject, 0) } else { sv = *v } switch { default: - var mv *types.DeletedObject + var mv types.DeletedObject t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDeletedObject(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentDeletedObject(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12324,7 +12326,7 @@ func awsRestxml_deserializeDocumentDeleteMarkerEntry(v **types.DeleteMarkerEntry if err != nil { return fmt.Errorf("expected IsLatest to be of type *bool, got %T instead", val) } - sv.IsLatest = &xtv + sv.IsLatest = xtv } case strings.EqualFold("Key", t.Name.Local): @@ -12340,7 +12342,7 @@ func awsRestxml_deserializeDocumentDeleteMarkerEntry(v **types.DeleteMarkerEntry } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("LastModified", t.Name.Local): @@ -12357,7 +12359,7 @@ func awsRestxml_deserializeDocumentDeleteMarkerEntry(v **types.DeleteMarkerEntry if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } case strings.EqualFold("Owner", t.Name.Local): @@ -12379,7 +12381,7 @@ func awsRestxml_deserializeDocumentDeleteMarkerEntry(v **types.DeleteMarkerEntry } if val != nil { xtv := string(val) - sv.VersionId = &xtv + sv.VersionId = ptr.String(xtv) } default: @@ -12437,13 +12439,13 @@ func awsRestxml_deserializeDocumentDeleteMarkerReplication(v **types.DeleteMarke return nil } -func awsRestxml_deserializeDocumentDeleteMarkers(v *[]*types.DeleteMarkerEntry, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentDeleteMarkers(v *[]types.DeleteMarkerEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DeleteMarkerEntry + var sv []types.DeleteMarkerEntry if *v == nil { - sv = make([]*types.DeleteMarkerEntry, 0) + sv = make([]types.DeleteMarkerEntry, 0) } else { sv = *v } @@ -12459,11 +12461,13 @@ func awsRestxml_deserializeDocumentDeleteMarkers(v *[]*types.DeleteMarkerEntry, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.DeleteMarkerEntry + var col types.DeleteMarkerEntry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDeleteMarkerEntry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentDeleteMarkerEntry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12476,23 +12480,25 @@ func awsRestxml_deserializeDocumentDeleteMarkers(v *[]*types.DeleteMarkerEntry, return nil } -func awsRestxml_deserializeDocumentDeleteMarkersUnwrapped(v *[]*types.DeleteMarkerEntry, decoder smithyxml.NodeDecoder) error { - var sv []*types.DeleteMarkerEntry +func awsRestxml_deserializeDocumentDeleteMarkersUnwrapped(v *[]types.DeleteMarkerEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.DeleteMarkerEntry if *v == nil { - sv = make([]*types.DeleteMarkerEntry, 0) + sv = make([]types.DeleteMarkerEntry, 0) } else { sv = *v } switch { default: - var mv *types.DeleteMarkerEntry + var mv types.DeleteMarkerEntry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDeleteMarkerEntry(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentDeleteMarkerEntry(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12539,7 +12545,7 @@ func awsRestxml_deserializeDocumentDestination(v **types.Destination, decoder sm } if val != nil { xtv := string(val) - sv.Account = &xtv + sv.Account = ptr.String(xtv) } case strings.EqualFold("Bucket", t.Name.Local): @@ -12555,7 +12561,7 @@ func awsRestxml_deserializeDocumentDestination(v **types.Destination, decoder sm } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("EncryptionConfiguration", t.Name.Local): @@ -12634,7 +12640,7 @@ func awsRestxml_deserializeDocumentEncryptionConfiguration(v **types.EncryptionC } if val != nil { xtv := string(val) - sv.ReplicaKmsKeyID = &xtv + sv.ReplicaKmsKeyID = ptr.String(xtv) } default: @@ -12682,7 +12688,7 @@ func awsRestxml_deserializeDocumentError(v **types.Error, decoder smithyxml.Node } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("Key", t.Name.Local): @@ -12698,7 +12704,7 @@ func awsRestxml_deserializeDocumentError(v **types.Error, decoder smithyxml.Node } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -12714,7 +12720,7 @@ func awsRestxml_deserializeDocumentError(v **types.Error, decoder smithyxml.Node } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("VersionId", t.Name.Local): @@ -12730,7 +12736,7 @@ func awsRestxml_deserializeDocumentError(v **types.Error, decoder smithyxml.Node } if val != nil { xtv := string(val) - sv.VersionId = &xtv + sv.VersionId = ptr.String(xtv) } default: @@ -12778,7 +12784,7 @@ func awsRestxml_deserializeDocumentErrorDocument(v **types.ErrorDocument, decode } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } default: @@ -12791,13 +12797,13 @@ func awsRestxml_deserializeDocumentErrorDocument(v **types.ErrorDocument, decode return nil } -func awsRestxml_deserializeDocumentErrors(v *[]*types.Error, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentErrors(v *[]types.Error, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Error + var sv []types.Error if *v == nil { - sv = make([]*types.Error, 0) + sv = make([]types.Error, 0) } else { sv = *v } @@ -12813,11 +12819,13 @@ func awsRestxml_deserializeDocumentErrors(v *[]*types.Error, decoder smithyxml.N } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Error + var col types.Error nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentError(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentError(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12830,23 +12838,25 @@ func awsRestxml_deserializeDocumentErrors(v *[]*types.Error, decoder smithyxml.N return nil } -func awsRestxml_deserializeDocumentErrorsUnwrapped(v *[]*types.Error, decoder smithyxml.NodeDecoder) error { - var sv []*types.Error +func awsRestxml_deserializeDocumentErrorsUnwrapped(v *[]types.Error, decoder smithyxml.NodeDecoder) error { + var sv []types.Error if *v == nil { - sv = make([]*types.Error, 0) + sv = make([]types.Error, 0) } else { sv = *v } switch { default: - var mv *types.Error + var mv types.Error t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentError(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentError(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12973,13 +12983,13 @@ func awsRestxml_deserializeDocumentExistingObjectReplication(v **types.ExistingO return nil } -func awsRestxml_deserializeDocumentExposeHeaders(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentExposeHeaders(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -12997,20 +13007,17 @@ func awsRestxml_deserializeDocumentExposeHeaders(v *[]*string, decoder smithyxml decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -13023,17 +13030,17 @@ func awsRestxml_deserializeDocumentExposeHeaders(v *[]*string, decoder smithyxml return nil } -func awsRestxml_deserializeDocumentExposeHeadersUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsRestxml_deserializeDocumentExposeHeadersUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -13041,14 +13048,11 @@ func awsRestxml_deserializeDocumentExposeHeadersUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -13103,7 +13107,7 @@ func awsRestxml_deserializeDocumentFilterRule(v **types.FilterRule, decoder smit } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -13116,13 +13120,13 @@ func awsRestxml_deserializeDocumentFilterRule(v **types.FilterRule, decoder smit return nil } -func awsRestxml_deserializeDocumentFilterRuleList(v *[]*types.FilterRule, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentFilterRuleList(v *[]types.FilterRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.FilterRule + var sv []types.FilterRule if *v == nil { - sv = make([]*types.FilterRule, 0) + sv = make([]types.FilterRule, 0) } else { sv = *v } @@ -13138,11 +13142,13 @@ func awsRestxml_deserializeDocumentFilterRuleList(v *[]*types.FilterRule, decode } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.FilterRule + var col types.FilterRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentFilterRule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentFilterRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13155,23 +13161,25 @@ func awsRestxml_deserializeDocumentFilterRuleList(v *[]*types.FilterRule, decode return nil } -func awsRestxml_deserializeDocumentFilterRuleListUnwrapped(v *[]*types.FilterRule, decoder smithyxml.NodeDecoder) error { - var sv []*types.FilterRule +func awsRestxml_deserializeDocumentFilterRuleListUnwrapped(v *[]types.FilterRule, decoder smithyxml.NodeDecoder) error { + var sv []types.FilterRule if *v == nil { - sv = make([]*types.FilterRule, 0) + sv = make([]types.FilterRule, 0) } else { sv = *v } switch { default: - var mv *types.FilterRule + var mv types.FilterRule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentFilterRule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentFilterRule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13274,7 +13282,7 @@ func awsRestxml_deserializeDocumentGrantee(v **types.Grantee, decoder smithyxml. } if val != nil { xtv := string(val) - sv.DisplayName = &xtv + sv.DisplayName = ptr.String(xtv) } case strings.EqualFold("EmailAddress", t.Name.Local): @@ -13290,7 +13298,7 @@ func awsRestxml_deserializeDocumentGrantee(v **types.Grantee, decoder smithyxml. } if val != nil { xtv := string(val) - sv.EmailAddress = &xtv + sv.EmailAddress = ptr.String(xtv) } case strings.EqualFold("ID", t.Name.Local): @@ -13306,7 +13314,7 @@ func awsRestxml_deserializeDocumentGrantee(v **types.Grantee, decoder smithyxml. } if val != nil { xtv := string(val) - sv.ID = &xtv + sv.ID = ptr.String(xtv) } case strings.EqualFold("URI", t.Name.Local): @@ -13322,7 +13330,7 @@ func awsRestxml_deserializeDocumentGrantee(v **types.Grantee, decoder smithyxml. } if val != nil { xtv := string(val) - sv.URI = &xtv + sv.URI = ptr.String(xtv) } default: @@ -13335,13 +13343,13 @@ func awsRestxml_deserializeDocumentGrantee(v **types.Grantee, decoder smithyxml. return nil } -func awsRestxml_deserializeDocumentGrants(v *[]*types.Grant, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentGrants(v *[]types.Grant, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Grant + var sv []types.Grant if *v == nil { - sv = make([]*types.Grant, 0) + sv = make([]types.Grant, 0) } else { sv = *v } @@ -13357,11 +13365,13 @@ func awsRestxml_deserializeDocumentGrants(v *[]*types.Grant, decoder smithyxml.N } for { if strings.EqualFold("Grant", t.Name.Local) { - var col *types.Grant + var col types.Grant nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentGrant(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentGrant(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13374,23 +13384,25 @@ func awsRestxml_deserializeDocumentGrants(v *[]*types.Grant, decoder smithyxml.N return nil } -func awsRestxml_deserializeDocumentGrantsUnwrapped(v *[]*types.Grant, decoder smithyxml.NodeDecoder) error { - var sv []*types.Grant +func awsRestxml_deserializeDocumentGrantsUnwrapped(v *[]types.Grant, decoder smithyxml.NodeDecoder) error { + var sv []types.Grant if *v == nil { - sv = make([]*types.Grant, 0) + sv = make([]types.Grant, 0) } else { sv = *v } switch { default: - var mv *types.Grant + var mv types.Grant t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentGrant(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentGrant(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13431,7 +13443,7 @@ func awsRestxml_deserializeDocumentIndexDocument(v **types.IndexDocument, decode } if val != nil { xtv := string(val) - sv.Suffix = &xtv + sv.Suffix = ptr.String(xtv) } default: @@ -13479,7 +13491,7 @@ func awsRestxml_deserializeDocumentInitiator(v **types.Initiator, decoder smithy } if val != nil { xtv := string(val) - sv.DisplayName = &xtv + sv.DisplayName = ptr.String(xtv) } case strings.EqualFold("ID", t.Name.Local): @@ -13495,7 +13507,7 @@ func awsRestxml_deserializeDocumentInitiator(v **types.Initiator, decoder smithy } if val != nil { xtv := string(val) - sv.ID = &xtv + sv.ID = ptr.String(xtv) } default: @@ -13555,7 +13567,7 @@ func awsRestxml_deserializeDocumentInventoryConfiguration(v **types.InventoryCon } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("IncludedObjectVersions", t.Name.Local): @@ -13584,7 +13596,7 @@ func awsRestxml_deserializeDocumentInventoryConfiguration(v **types.InventoryCon if err != nil { return fmt.Errorf("expected IsEnabled to be of type *bool, got %T instead", val) } - sv.IsEnabled = &xtv + sv.IsEnabled = xtv } case strings.EqualFold("OptionalFields", t.Name.Local): @@ -13609,13 +13621,13 @@ func awsRestxml_deserializeDocumentInventoryConfiguration(v **types.InventoryCon return nil } -func awsRestxml_deserializeDocumentInventoryConfigurationList(v *[]*types.InventoryConfiguration, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentInventoryConfigurationList(v *[]types.InventoryConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.InventoryConfiguration + var sv []types.InventoryConfiguration if *v == nil { - sv = make([]*types.InventoryConfiguration, 0) + sv = make([]types.InventoryConfiguration, 0) } else { sv = *v } @@ -13631,11 +13643,13 @@ func awsRestxml_deserializeDocumentInventoryConfigurationList(v *[]*types.Invent } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.InventoryConfiguration + var col types.InventoryConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentInventoryConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentInventoryConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13648,23 +13662,25 @@ func awsRestxml_deserializeDocumentInventoryConfigurationList(v *[]*types.Invent return nil } -func awsRestxml_deserializeDocumentInventoryConfigurationListUnwrapped(v *[]*types.InventoryConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.InventoryConfiguration +func awsRestxml_deserializeDocumentInventoryConfigurationListUnwrapped(v *[]types.InventoryConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.InventoryConfiguration if *v == nil { - sv = make([]*types.InventoryConfiguration, 0) + sv = make([]types.InventoryConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.InventoryConfiguration + var mv types.InventoryConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentInventoryConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentInventoryConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13787,7 +13803,7 @@ func awsRestxml_deserializeDocumentInventoryFilter(v **types.InventoryFilter, de } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } default: @@ -13911,7 +13927,7 @@ func awsRestxml_deserializeDocumentInventoryS3BucketDestination(v **types.Invent } if val != nil { xtv := string(val) - sv.AccountId = &xtv + sv.AccountId = ptr.String(xtv) } case strings.EqualFold("Bucket", t.Name.Local): @@ -13927,7 +13943,7 @@ func awsRestxml_deserializeDocumentInventoryS3BucketDestination(v **types.Invent } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("Encryption", t.Name.Local): @@ -13962,7 +13978,7 @@ func awsRestxml_deserializeDocumentInventoryS3BucketDestination(v **types.Invent } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } default: @@ -14067,7 +14083,7 @@ func awsRestxml_deserializeDocumentLambdaFunctionConfiguration(v **types.LambdaF } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("CloudFunction", t.Name.Local): @@ -14083,7 +14099,7 @@ func awsRestxml_deserializeDocumentLambdaFunctionConfiguration(v **types.LambdaF } if val != nil { xtv := string(val) - sv.LambdaFunctionArn = &xtv + sv.LambdaFunctionArn = ptr.String(xtv) } default: @@ -14096,13 +14112,13 @@ func awsRestxml_deserializeDocumentLambdaFunctionConfiguration(v **types.LambdaF return nil } -func awsRestxml_deserializeDocumentLambdaFunctionConfigurationList(v *[]*types.LambdaFunctionConfiguration, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentLambdaFunctionConfigurationList(v *[]types.LambdaFunctionConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LambdaFunctionConfiguration + var sv []types.LambdaFunctionConfiguration if *v == nil { - sv = make([]*types.LambdaFunctionConfiguration, 0) + sv = make([]types.LambdaFunctionConfiguration, 0) } else { sv = *v } @@ -14118,11 +14134,13 @@ func awsRestxml_deserializeDocumentLambdaFunctionConfigurationList(v *[]*types.L } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LambdaFunctionConfiguration + var col types.LambdaFunctionConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLambdaFunctionConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentLambdaFunctionConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14135,23 +14153,25 @@ func awsRestxml_deserializeDocumentLambdaFunctionConfigurationList(v *[]*types.L return nil } -func awsRestxml_deserializeDocumentLambdaFunctionConfigurationListUnwrapped(v *[]*types.LambdaFunctionConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.LambdaFunctionConfiguration +func awsRestxml_deserializeDocumentLambdaFunctionConfigurationListUnwrapped(v *[]types.LambdaFunctionConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.LambdaFunctionConfiguration if *v == nil { - sv = make([]*types.LambdaFunctionConfiguration, 0) + sv = make([]types.LambdaFunctionConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.LambdaFunctionConfiguration + var mv types.LambdaFunctionConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLambdaFunctionConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentLambdaFunctionConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -14193,7 +14213,7 @@ func awsRestxml_deserializeDocumentLifecycleExpiration(v **types.LifecycleExpira if err != nil { return err } - sv.Date = &t + sv.Date = ptr.Time(t) } case strings.EqualFold("Days", t.Name.Local): @@ -14210,7 +14230,7 @@ func awsRestxml_deserializeDocumentLifecycleExpiration(v **types.LifecycleExpira if err != nil { return err } - sv.Days = ptr.Int32(int32(i64)) + sv.Days = int32(i64) } case strings.EqualFold("ExpiredObjectDeleteMarker", t.Name.Local): @@ -14226,7 +14246,7 @@ func awsRestxml_deserializeDocumentLifecycleExpiration(v **types.LifecycleExpira if err != nil { return fmt.Errorf("expected ExpiredObjectDeleteMarker to be of type *bool, got %T instead", val) } - sv.ExpiredObjectDeleteMarker = &xtv + sv.ExpiredObjectDeleteMarker = xtv } default: @@ -14292,7 +14312,7 @@ func awsRestxml_deserializeDocumentLifecycleRule(v **types.LifecycleRule, decode } if val != nil { xtv := string(val) - sv.ID = &xtv + sv.ID = ptr.String(xtv) } case strings.EqualFold("NoncurrentVersionExpiration", t.Name.Local): @@ -14320,7 +14340,7 @@ func awsRestxml_deserializeDocumentLifecycleRule(v **types.LifecycleRule, decode } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -14387,7 +14407,7 @@ func awsRestxml_deserializeDocumentLifecycleRuleAndOperator(v **types.LifecycleR } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("Tag", t.Name.Local): @@ -14447,7 +14467,7 @@ func awsRestxml_deserializeDocumentLifecycleRuleFilter(v **types.LifecycleRuleFi } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("Tag", t.Name.Local): @@ -14466,13 +14486,13 @@ func awsRestxml_deserializeDocumentLifecycleRuleFilter(v **types.LifecycleRuleFi return nil } -func awsRestxml_deserializeDocumentLifecycleRules(v *[]*types.LifecycleRule, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentLifecycleRules(v *[]types.LifecycleRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LifecycleRule + var sv []types.LifecycleRule if *v == nil { - sv = make([]*types.LifecycleRule, 0) + sv = make([]types.LifecycleRule, 0) } else { sv = *v } @@ -14488,11 +14508,13 @@ func awsRestxml_deserializeDocumentLifecycleRules(v *[]*types.LifecycleRule, dec } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.LifecycleRule + var col types.LifecycleRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLifecycleRule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentLifecycleRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14505,23 +14527,25 @@ func awsRestxml_deserializeDocumentLifecycleRules(v *[]*types.LifecycleRule, dec return nil } -func awsRestxml_deserializeDocumentLifecycleRulesUnwrapped(v *[]*types.LifecycleRule, decoder smithyxml.NodeDecoder) error { - var sv []*types.LifecycleRule +func awsRestxml_deserializeDocumentLifecycleRulesUnwrapped(v *[]types.LifecycleRule, decoder smithyxml.NodeDecoder) error { + var sv []types.LifecycleRule if *v == nil { - sv = make([]*types.LifecycleRule, 0) + sv = make([]types.LifecycleRule, 0) } else { sv = *v } switch { default: - var mv *types.LifecycleRule + var mv types.LifecycleRule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLifecycleRule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentLifecycleRule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -14562,7 +14586,7 @@ func awsRestxml_deserializeDocumentLoggingEnabled(v **types.LoggingEnabled, deco } if val != nil { xtv := string(val) - sv.TargetBucket = &xtv + sv.TargetBucket = ptr.String(xtv) } case strings.EqualFold("TargetGrants", t.Name.Local): @@ -14584,7 +14608,7 @@ func awsRestxml_deserializeDocumentLoggingEnabled(v **types.LoggingEnabled, deco } if val != nil { xtv := string(val) - sv.TargetPrefix = &xtv + sv.TargetPrefix = ptr.String(xtv) } default: @@ -14683,7 +14707,7 @@ func awsRestxml_deserializeDocumentMetricsAndOperator(v **types.MetricsAndOperat } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("Tag", t.Name.Local): @@ -14743,7 +14767,7 @@ func awsRestxml_deserializeDocumentMetricsConfiguration(v **types.MetricsConfigu } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } default: @@ -14756,13 +14780,13 @@ func awsRestxml_deserializeDocumentMetricsConfiguration(v **types.MetricsConfigu return nil } -func awsRestxml_deserializeDocumentMetricsConfigurationList(v *[]*types.MetricsConfiguration, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentMetricsConfigurationList(v *[]types.MetricsConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.MetricsConfiguration + var sv []types.MetricsConfiguration if *v == nil { - sv = make([]*types.MetricsConfiguration, 0) + sv = make([]types.MetricsConfiguration, 0) } else { sv = *v } @@ -14778,11 +14802,13 @@ func awsRestxml_deserializeDocumentMetricsConfigurationList(v *[]*types.MetricsC } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.MetricsConfiguration + var col types.MetricsConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentMetricsConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentMetricsConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -14795,23 +14821,25 @@ func awsRestxml_deserializeDocumentMetricsConfigurationList(v *[]*types.MetricsC return nil } -func awsRestxml_deserializeDocumentMetricsConfigurationListUnwrapped(v *[]*types.MetricsConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.MetricsConfiguration +func awsRestxml_deserializeDocumentMetricsConfigurationListUnwrapped(v *[]types.MetricsConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.MetricsConfiguration if *v == nil { - sv = make([]*types.MetricsConfiguration, 0) + sv = make([]types.MetricsConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.MetricsConfiguration + var mv types.MetricsConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentMetricsConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentMetricsConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -14858,7 +14886,7 @@ func awsRestxml_deserializeDocumentMetricsFilter(v **types.MetricsFilter, decode } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("Tag", t.Name.Local): @@ -14913,7 +14941,7 @@ func awsRestxml_deserializeDocumentMultipartUpload(v **types.MultipartUpload, de if err != nil { return err } - sv.Initiated = &t + sv.Initiated = ptr.Time(t) } case strings.EqualFold("Initiator", t.Name.Local): @@ -14935,7 +14963,7 @@ func awsRestxml_deserializeDocumentMultipartUpload(v **types.MultipartUpload, de } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Owner", t.Name.Local): @@ -14970,7 +14998,7 @@ func awsRestxml_deserializeDocumentMultipartUpload(v **types.MultipartUpload, de } if val != nil { xtv := string(val) - sv.UploadId = &xtv + sv.UploadId = ptr.String(xtv) } default: @@ -14983,13 +15011,13 @@ func awsRestxml_deserializeDocumentMultipartUpload(v **types.MultipartUpload, de return nil } -func awsRestxml_deserializeDocumentMultipartUploadList(v *[]*types.MultipartUpload, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentMultipartUploadList(v *[]types.MultipartUpload, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.MultipartUpload + var sv []types.MultipartUpload if *v == nil { - sv = make([]*types.MultipartUpload, 0) + sv = make([]types.MultipartUpload, 0) } else { sv = *v } @@ -15005,11 +15033,13 @@ func awsRestxml_deserializeDocumentMultipartUploadList(v *[]*types.MultipartUplo } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.MultipartUpload + var col types.MultipartUpload nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentMultipartUpload(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentMultipartUpload(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15022,23 +15052,25 @@ func awsRestxml_deserializeDocumentMultipartUploadList(v *[]*types.MultipartUplo return nil } -func awsRestxml_deserializeDocumentMultipartUploadListUnwrapped(v *[]*types.MultipartUpload, decoder smithyxml.NodeDecoder) error { - var sv []*types.MultipartUpload +func awsRestxml_deserializeDocumentMultipartUploadListUnwrapped(v *[]types.MultipartUpload, decoder smithyxml.NodeDecoder) error { + var sv []types.MultipartUpload if *v == nil { - sv = make([]*types.MultipartUpload, 0) + sv = make([]types.MultipartUpload, 0) } else { sv = *v } switch { default: - var mv *types.MultipartUpload + var mv types.MultipartUpload t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentMultipartUpload(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentMultipartUpload(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15080,7 +15112,7 @@ func awsRestxml_deserializeDocumentNoncurrentVersionExpiration(v **types.Noncurr if err != nil { return err } - sv.NoncurrentDays = ptr.Int32(int32(i64)) + sv.NoncurrentDays = int32(i64) } default: @@ -15129,7 +15161,7 @@ func awsRestxml_deserializeDocumentNoncurrentVersionTransition(v **types.Noncurr if err != nil { return err } - sv.NoncurrentDays = ptr.Int32(int32(i64)) + sv.NoncurrentDays = int32(i64) } case strings.EqualFold("StorageClass", t.Name.Local): @@ -15155,13 +15187,13 @@ func awsRestxml_deserializeDocumentNoncurrentVersionTransition(v **types.Noncurr return nil } -func awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(v *[]*types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(v *[]types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NoncurrentVersionTransition + var sv []types.NoncurrentVersionTransition if *v == nil { - sv = make([]*types.NoncurrentVersionTransition, 0) + sv = make([]types.NoncurrentVersionTransition, 0) } else { sv = *v } @@ -15177,11 +15209,13 @@ func awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(v *[]*types.N } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.NoncurrentVersionTransition + var col types.NoncurrentVersionTransition nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentNoncurrentVersionTransition(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentNoncurrentVersionTransition(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15194,23 +15228,25 @@ func awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(v *[]*types.N return nil } -func awsRestxml_deserializeDocumentNoncurrentVersionTransitionListUnwrapped(v *[]*types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { - var sv []*types.NoncurrentVersionTransition +func awsRestxml_deserializeDocumentNoncurrentVersionTransitionListUnwrapped(v *[]types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { + var sv []types.NoncurrentVersionTransition if *v == nil { - sv = make([]*types.NoncurrentVersionTransition, 0) + sv = make([]types.NoncurrentVersionTransition, 0) } else { sv = *v } switch { default: - var mv *types.NoncurrentVersionTransition + var mv types.NoncurrentVersionTransition t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentNoncurrentVersionTransition(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentNoncurrentVersionTransition(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15385,7 +15421,7 @@ func awsRestxml_deserializeDocumentObject(v **types.Object, decoder smithyxml.No } if val != nil { xtv := string(val) - sv.ETag = &xtv + sv.ETag = ptr.String(xtv) } case strings.EqualFold("Key", t.Name.Local): @@ -15401,7 +15437,7 @@ func awsRestxml_deserializeDocumentObject(v **types.Object, decoder smithyxml.No } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("LastModified", t.Name.Local): @@ -15418,7 +15454,7 @@ func awsRestxml_deserializeDocumentObject(v **types.Object, decoder smithyxml.No if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } case strings.EqualFold("Owner", t.Name.Local): @@ -15441,7 +15477,7 @@ func awsRestxml_deserializeDocumentObject(v **types.Object, decoder smithyxml.No if err != nil { return err } - sv.Size = &i64 + sv.Size = i64 } case strings.EqualFold("StorageClass", t.Name.Local): @@ -15499,13 +15535,13 @@ func awsRestxml_deserializeDocumentObjectAlreadyInActiveTierError(v **types.Obje return nil } -func awsRestxml_deserializeDocumentObjectList(v *[]*types.Object, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentObjectList(v *[]types.Object, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Object + var sv []types.Object if *v == nil { - sv = make([]*types.Object, 0) + sv = make([]types.Object, 0) } else { sv = *v } @@ -15521,11 +15557,13 @@ func awsRestxml_deserializeDocumentObjectList(v *[]*types.Object, decoder smithy } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Object + var col types.Object nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentObject(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentObject(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15538,23 +15576,25 @@ func awsRestxml_deserializeDocumentObjectList(v *[]*types.Object, decoder smithy return nil } -func awsRestxml_deserializeDocumentObjectListUnwrapped(v *[]*types.Object, decoder smithyxml.NodeDecoder) error { - var sv []*types.Object +func awsRestxml_deserializeDocumentObjectListUnwrapped(v *[]types.Object, decoder smithyxml.NodeDecoder) error { + var sv []types.Object if *v == nil { - sv = make([]*types.Object, 0) + sv = make([]types.Object, 0) } else { sv = *v } switch { default: - var mv *types.Object + var mv types.Object t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentObject(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentObject(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -15705,7 +15745,7 @@ func awsRestxml_deserializeDocumentObjectLockRetention(v **types.ObjectLockReten if err != nil { return err } - sv.RetainUntilDate = &t + sv.RetainUntilDate = ptr.Time(t) } default: @@ -15823,7 +15863,7 @@ func awsRestxml_deserializeDocumentObjectVersion(v **types.ObjectVersion, decode } if val != nil { xtv := string(val) - sv.ETag = &xtv + sv.ETag = ptr.String(xtv) } case strings.EqualFold("IsLatest", t.Name.Local): @@ -15839,7 +15879,7 @@ func awsRestxml_deserializeDocumentObjectVersion(v **types.ObjectVersion, decode if err != nil { return fmt.Errorf("expected IsLatest to be of type *bool, got %T instead", val) } - sv.IsLatest = &xtv + sv.IsLatest = xtv } case strings.EqualFold("Key", t.Name.Local): @@ -15855,7 +15895,7 @@ func awsRestxml_deserializeDocumentObjectVersion(v **types.ObjectVersion, decode } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("LastModified", t.Name.Local): @@ -15872,7 +15912,7 @@ func awsRestxml_deserializeDocumentObjectVersion(v **types.ObjectVersion, decode if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } case strings.EqualFold("Owner", t.Name.Local): @@ -15895,7 +15935,7 @@ func awsRestxml_deserializeDocumentObjectVersion(v **types.ObjectVersion, decode if err != nil { return err } - sv.Size = &i64 + sv.Size = i64 } case strings.EqualFold("StorageClass", t.Name.Local): @@ -15924,7 +15964,7 @@ func awsRestxml_deserializeDocumentObjectVersion(v **types.ObjectVersion, decode } if val != nil { xtv := string(val) - sv.VersionId = &xtv + sv.VersionId = ptr.String(xtv) } default: @@ -15937,13 +15977,13 @@ func awsRestxml_deserializeDocumentObjectVersion(v **types.ObjectVersion, decode return nil } -func awsRestxml_deserializeDocumentObjectVersionList(v *[]*types.ObjectVersion, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentObjectVersionList(v *[]types.ObjectVersion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ObjectVersion + var sv []types.ObjectVersion if *v == nil { - sv = make([]*types.ObjectVersion, 0) + sv = make([]types.ObjectVersion, 0) } else { sv = *v } @@ -15959,11 +15999,13 @@ func awsRestxml_deserializeDocumentObjectVersionList(v *[]*types.ObjectVersion, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ObjectVersion + var col types.ObjectVersion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentObjectVersion(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentObjectVersion(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -15976,23 +16018,25 @@ func awsRestxml_deserializeDocumentObjectVersionList(v *[]*types.ObjectVersion, return nil } -func awsRestxml_deserializeDocumentObjectVersionListUnwrapped(v *[]*types.ObjectVersion, decoder smithyxml.NodeDecoder) error { - var sv []*types.ObjectVersion +func awsRestxml_deserializeDocumentObjectVersionListUnwrapped(v *[]types.ObjectVersion, decoder smithyxml.NodeDecoder) error { + var sv []types.ObjectVersion if *v == nil { - sv = make([]*types.ObjectVersion, 0) + sv = make([]types.ObjectVersion, 0) } else { sv = *v } switch { default: - var mv *types.ObjectVersion + var mv types.ObjectVersion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentObjectVersion(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentObjectVersion(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16033,7 +16077,7 @@ func awsRestxml_deserializeDocumentOwner(v **types.Owner, decoder smithyxml.Node } if val != nil { xtv := string(val) - sv.DisplayName = &xtv + sv.DisplayName = ptr.String(xtv) } case strings.EqualFold("ID", t.Name.Local): @@ -16049,7 +16093,7 @@ func awsRestxml_deserializeDocumentOwner(v **types.Owner, decoder smithyxml.Node } if val != nil { xtv := string(val) - sv.ID = &xtv + sv.ID = ptr.String(xtv) } default: @@ -16145,13 +16189,13 @@ func awsRestxml_deserializeDocumentOwnershipControlsRule(v **types.OwnershipCont return nil } -func awsRestxml_deserializeDocumentOwnershipControlsRules(v *[]*types.OwnershipControlsRule, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentOwnershipControlsRules(v *[]types.OwnershipControlsRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.OwnershipControlsRule + var sv []types.OwnershipControlsRule if *v == nil { - sv = make([]*types.OwnershipControlsRule, 0) + sv = make([]types.OwnershipControlsRule, 0) } else { sv = *v } @@ -16167,11 +16211,13 @@ func awsRestxml_deserializeDocumentOwnershipControlsRules(v *[]*types.OwnershipC } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.OwnershipControlsRule + var col types.OwnershipControlsRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOwnershipControlsRule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentOwnershipControlsRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16184,23 +16230,25 @@ func awsRestxml_deserializeDocumentOwnershipControlsRules(v *[]*types.OwnershipC return nil } -func awsRestxml_deserializeDocumentOwnershipControlsRulesUnwrapped(v *[]*types.OwnershipControlsRule, decoder smithyxml.NodeDecoder) error { - var sv []*types.OwnershipControlsRule +func awsRestxml_deserializeDocumentOwnershipControlsRulesUnwrapped(v *[]types.OwnershipControlsRule, decoder smithyxml.NodeDecoder) error { + var sv []types.OwnershipControlsRule if *v == nil { - sv = make([]*types.OwnershipControlsRule, 0) + sv = make([]types.OwnershipControlsRule, 0) } else { sv = *v } switch { default: - var mv *types.OwnershipControlsRule + var mv types.OwnershipControlsRule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOwnershipControlsRule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentOwnershipControlsRule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16241,7 +16289,7 @@ func awsRestxml_deserializeDocumentPart(v **types.Part, decoder smithyxml.NodeDe } if val != nil { xtv := string(val) - sv.ETag = &xtv + sv.ETag = ptr.String(xtv) } case strings.EqualFold("LastModified", t.Name.Local): @@ -16258,7 +16306,7 @@ func awsRestxml_deserializeDocumentPart(v **types.Part, decoder smithyxml.NodeDe if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } case strings.EqualFold("PartNumber", t.Name.Local): @@ -16275,7 +16323,7 @@ func awsRestxml_deserializeDocumentPart(v **types.Part, decoder smithyxml.NodeDe if err != nil { return err } - sv.PartNumber = ptr.Int32(int32(i64)) + sv.PartNumber = int32(i64) } case strings.EqualFold("Size", t.Name.Local): @@ -16292,7 +16340,7 @@ func awsRestxml_deserializeDocumentPart(v **types.Part, decoder smithyxml.NodeDe if err != nil { return err } - sv.Size = &i64 + sv.Size = i64 } default: @@ -16305,13 +16353,13 @@ func awsRestxml_deserializeDocumentPart(v **types.Part, decoder smithyxml.NodeDe return nil } -func awsRestxml_deserializeDocumentParts(v *[]*types.Part, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentParts(v *[]types.Part, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Part + var sv []types.Part if *v == nil { - sv = make([]*types.Part, 0) + sv = make([]types.Part, 0) } else { sv = *v } @@ -16327,11 +16375,13 @@ func awsRestxml_deserializeDocumentParts(v *[]*types.Part, decoder smithyxml.Nod } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Part + var col types.Part nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentPart(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentPart(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16344,23 +16394,25 @@ func awsRestxml_deserializeDocumentParts(v *[]*types.Part, decoder smithyxml.Nod return nil } -func awsRestxml_deserializeDocumentPartsUnwrapped(v *[]*types.Part, decoder smithyxml.NodeDecoder) error { - var sv []*types.Part +func awsRestxml_deserializeDocumentPartsUnwrapped(v *[]types.Part, decoder smithyxml.NodeDecoder) error { + var sv []types.Part if *v == nil { - sv = make([]*types.Part, 0) + sv = make([]types.Part, 0) } else { sv = *v } switch { default: - var mv *types.Part + var mv types.Part t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentPart(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentPart(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16401,7 +16453,7 @@ func awsRestxml_deserializeDocumentPolicyStatus(v **types.PolicyStatus, decoder if err != nil { return fmt.Errorf("expected IsPublic to be of type *bool, got %T instead", val) } - sv.IsPublic = &xtv + sv.IsPublic = xtv } default: @@ -16449,7 +16501,7 @@ func awsRestxml_deserializeDocumentPublicAccessBlockConfiguration(v **types.Publ if err != nil { return fmt.Errorf("expected Setting to be of type *bool, got %T instead", val) } - sv.BlockPublicAcls = &xtv + sv.BlockPublicAcls = xtv } case strings.EqualFold("BlockPublicPolicy", t.Name.Local): @@ -16465,7 +16517,7 @@ func awsRestxml_deserializeDocumentPublicAccessBlockConfiguration(v **types.Publ if err != nil { return fmt.Errorf("expected Setting to be of type *bool, got %T instead", val) } - sv.BlockPublicPolicy = &xtv + sv.BlockPublicPolicy = xtv } case strings.EqualFold("IgnorePublicAcls", t.Name.Local): @@ -16481,7 +16533,7 @@ func awsRestxml_deserializeDocumentPublicAccessBlockConfiguration(v **types.Publ if err != nil { return fmt.Errorf("expected Setting to be of type *bool, got %T instead", val) } - sv.IgnorePublicAcls = &xtv + sv.IgnorePublicAcls = xtv } case strings.EqualFold("RestrictPublicBuckets", t.Name.Local): @@ -16497,7 +16549,7 @@ func awsRestxml_deserializeDocumentPublicAccessBlockConfiguration(v **types.Publ if err != nil { return fmt.Errorf("expected Setting to be of type *bool, got %T instead", val) } - sv.RestrictPublicBuckets = &xtv + sv.RestrictPublicBuckets = xtv } default: @@ -16557,7 +16609,7 @@ func awsRestxml_deserializeDocumentQueueConfiguration(v **types.QueueConfigurati } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("Queue", t.Name.Local): @@ -16573,7 +16625,7 @@ func awsRestxml_deserializeDocumentQueueConfiguration(v **types.QueueConfigurati } if val != nil { xtv := string(val) - sv.QueueArn = &xtv + sv.QueueArn = ptr.String(xtv) } default: @@ -16586,13 +16638,13 @@ func awsRestxml_deserializeDocumentQueueConfiguration(v **types.QueueConfigurati return nil } -func awsRestxml_deserializeDocumentQueueConfigurationList(v *[]*types.QueueConfiguration, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentQueueConfigurationList(v *[]types.QueueConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.QueueConfiguration + var sv []types.QueueConfiguration if *v == nil { - sv = make([]*types.QueueConfiguration, 0) + sv = make([]types.QueueConfiguration, 0) } else { sv = *v } @@ -16608,11 +16660,13 @@ func awsRestxml_deserializeDocumentQueueConfigurationList(v *[]*types.QueueConfi } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.QueueConfiguration + var col types.QueueConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentQueueConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentQueueConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -16625,23 +16679,25 @@ func awsRestxml_deserializeDocumentQueueConfigurationList(v *[]*types.QueueConfi return nil } -func awsRestxml_deserializeDocumentQueueConfigurationListUnwrapped(v *[]*types.QueueConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.QueueConfiguration +func awsRestxml_deserializeDocumentQueueConfigurationListUnwrapped(v *[]types.QueueConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.QueueConfiguration if *v == nil { - sv = make([]*types.QueueConfiguration, 0) + sv = make([]types.QueueConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.QueueConfiguration + var mv types.QueueConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentQueueConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentQueueConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -16682,7 +16738,7 @@ func awsRestxml_deserializeDocumentRedirect(v **types.Redirect, decoder smithyxm } if val != nil { xtv := string(val) - sv.HostName = &xtv + sv.HostName = ptr.String(xtv) } case strings.EqualFold("HttpRedirectCode", t.Name.Local): @@ -16698,7 +16754,7 @@ func awsRestxml_deserializeDocumentRedirect(v **types.Redirect, decoder smithyxm } if val != nil { xtv := string(val) - sv.HttpRedirectCode = &xtv + sv.HttpRedirectCode = ptr.String(xtv) } case strings.EqualFold("Protocol", t.Name.Local): @@ -16727,7 +16783,7 @@ func awsRestxml_deserializeDocumentRedirect(v **types.Redirect, decoder smithyxm } if val != nil { xtv := string(val) - sv.ReplaceKeyPrefixWith = &xtv + sv.ReplaceKeyPrefixWith = ptr.String(xtv) } case strings.EqualFold("ReplaceKeyWith", t.Name.Local): @@ -16743,7 +16799,7 @@ func awsRestxml_deserializeDocumentRedirect(v **types.Redirect, decoder smithyxm } if val != nil { xtv := string(val) - sv.ReplaceKeyWith = &xtv + sv.ReplaceKeyWith = ptr.String(xtv) } default: @@ -16791,7 +16847,7 @@ func awsRestxml_deserializeDocumentRedirectAllRequestsTo(v **types.RedirectAllRe } if val != nil { xtv := string(val) - sv.HostName = &xtv + sv.HostName = ptr.String(xtv) } case strings.EqualFold("Protocol", t.Name.Local): @@ -16852,7 +16908,7 @@ func awsRestxml_deserializeDocumentReplicationConfiguration(v **types.Replicatio } if val != nil { xtv := string(val) - sv.Role = &xtv + sv.Role = ptr.String(xtv) } case strings.EqualFold("Rule", t.Name.Local): @@ -16930,7 +16986,7 @@ func awsRestxml_deserializeDocumentReplicationRule(v **types.ReplicationRule, de } if val != nil { xtv := string(val) - sv.ID = &xtv + sv.ID = ptr.String(xtv) } case strings.EqualFold("Prefix", t.Name.Local): @@ -16946,7 +17002,7 @@ func awsRestxml_deserializeDocumentReplicationRule(v **types.ReplicationRule, de } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("Priority", t.Name.Local): @@ -16963,7 +17019,7 @@ func awsRestxml_deserializeDocumentReplicationRule(v **types.ReplicationRule, de if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case strings.EqualFold("SourceSelectionCriteria", t.Name.Local): @@ -17030,7 +17086,7 @@ func awsRestxml_deserializeDocumentReplicationRuleAndOperator(v **types.Replicat } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("Tag", t.Name.Local): @@ -17090,7 +17146,7 @@ func awsRestxml_deserializeDocumentReplicationRuleFilter(v **types.ReplicationRu } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("Tag", t.Name.Local): @@ -17109,13 +17165,13 @@ func awsRestxml_deserializeDocumentReplicationRuleFilter(v **types.ReplicationRu return nil } -func awsRestxml_deserializeDocumentReplicationRules(v *[]*types.ReplicationRule, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentReplicationRules(v *[]types.ReplicationRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReplicationRule + var sv []types.ReplicationRule if *v == nil { - sv = make([]*types.ReplicationRule, 0) + sv = make([]types.ReplicationRule, 0) } else { sv = *v } @@ -17131,11 +17187,13 @@ func awsRestxml_deserializeDocumentReplicationRules(v *[]*types.ReplicationRule, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ReplicationRule + var col types.ReplicationRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentReplicationRule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentReplicationRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17148,23 +17206,25 @@ func awsRestxml_deserializeDocumentReplicationRules(v *[]*types.ReplicationRule, return nil } -func awsRestxml_deserializeDocumentReplicationRulesUnwrapped(v *[]*types.ReplicationRule, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReplicationRule +func awsRestxml_deserializeDocumentReplicationRulesUnwrapped(v *[]types.ReplicationRule, decoder smithyxml.NodeDecoder) error { + var sv []types.ReplicationRule if *v == nil { - sv = make([]*types.ReplicationRule, 0) + sv = make([]types.ReplicationRule, 0) } else { sv = *v } switch { default: - var mv *types.ReplicationRule + var mv types.ReplicationRule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentReplicationRule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentReplicationRule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17257,7 +17317,7 @@ func awsRestxml_deserializeDocumentReplicationTimeValue(v **types.ReplicationTim if err != nil { return err } - sv.Minutes = ptr.Int32(int32(i64)) + sv.Minutes = int32(i64) } default: @@ -17314,13 +17374,13 @@ func awsRestxml_deserializeDocumentRoutingRule(v **types.RoutingRule, decoder sm return nil } -func awsRestxml_deserializeDocumentRoutingRules(v *[]*types.RoutingRule, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentRoutingRules(v *[]types.RoutingRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RoutingRule + var sv []types.RoutingRule if *v == nil { - sv = make([]*types.RoutingRule, 0) + sv = make([]types.RoutingRule, 0) } else { sv = *v } @@ -17336,11 +17396,13 @@ func awsRestxml_deserializeDocumentRoutingRules(v *[]*types.RoutingRule, decoder } for { if strings.EqualFold("RoutingRule", t.Name.Local) { - var col *types.RoutingRule + var col types.RoutingRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentRoutingRule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentRoutingRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17353,23 +17415,25 @@ func awsRestxml_deserializeDocumentRoutingRules(v *[]*types.RoutingRule, decoder return nil } -func awsRestxml_deserializeDocumentRoutingRulesUnwrapped(v *[]*types.RoutingRule, decoder smithyxml.NodeDecoder) error { - var sv []*types.RoutingRule +func awsRestxml_deserializeDocumentRoutingRulesUnwrapped(v *[]types.RoutingRule, decoder smithyxml.NodeDecoder) error { + var sv []types.RoutingRule if *v == nil { - sv = make([]*types.RoutingRule, 0) + sv = make([]types.RoutingRule, 0) } else { sv = *v } switch { default: - var mv *types.RoutingRule + var mv types.RoutingRule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentRoutingRule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentRoutingRule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17448,7 +17512,7 @@ func awsRestxml_deserializeDocumentServerSideEncryptionByDefault(v **types.Serve } if val != nil { xtv := string(val) - sv.KMSMasterKeyID = &xtv + sv.KMSMasterKeyID = ptr.String(xtv) } case strings.EqualFold("SSEAlgorithm", t.Name.Local): @@ -17550,13 +17614,13 @@ func awsRestxml_deserializeDocumentServerSideEncryptionRule(v **types.ServerSide return nil } -func awsRestxml_deserializeDocumentServerSideEncryptionRules(v *[]*types.ServerSideEncryptionRule, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentServerSideEncryptionRules(v *[]types.ServerSideEncryptionRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ServerSideEncryptionRule + var sv []types.ServerSideEncryptionRule if *v == nil { - sv = make([]*types.ServerSideEncryptionRule, 0) + sv = make([]types.ServerSideEncryptionRule, 0) } else { sv = *v } @@ -17572,11 +17636,13 @@ func awsRestxml_deserializeDocumentServerSideEncryptionRules(v *[]*types.ServerS } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ServerSideEncryptionRule + var col types.ServerSideEncryptionRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentServerSideEncryptionRule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentServerSideEncryptionRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17589,23 +17655,25 @@ func awsRestxml_deserializeDocumentServerSideEncryptionRules(v *[]*types.ServerS return nil } -func awsRestxml_deserializeDocumentServerSideEncryptionRulesUnwrapped(v *[]*types.ServerSideEncryptionRule, decoder smithyxml.NodeDecoder) error { - var sv []*types.ServerSideEncryptionRule +func awsRestxml_deserializeDocumentServerSideEncryptionRulesUnwrapped(v *[]types.ServerSideEncryptionRule, decoder smithyxml.NodeDecoder) error { + var sv []types.ServerSideEncryptionRule if *v == nil { - sv = make([]*types.ServerSideEncryptionRule, 0) + sv = make([]types.ServerSideEncryptionRule, 0) } else { sv = *v } switch { default: - var mv *types.ServerSideEncryptionRule + var mv types.ServerSideEncryptionRule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentServerSideEncryptionRule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentServerSideEncryptionRule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -17684,7 +17752,7 @@ func awsRestxml_deserializeDocumentSSEKMS(v **types.SSEKMS, decoder smithyxml.No } if val != nil { xtv := string(val) - sv.KeyId = &xtv + sv.KeyId = ptr.String(xtv) } default: @@ -17898,7 +17966,7 @@ func awsRestxml_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDeco } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -17914,7 +17982,7 @@ func awsRestxml_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDeco } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -17927,13 +17995,13 @@ func awsRestxml_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDeco return nil } -func awsRestxml_deserializeDocumentTagSet(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTagSet(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -17949,11 +18017,13 @@ func awsRestxml_deserializeDocumentTagSet(v *[]*types.Tag, decoder smithyxml.Nod } for { if strings.EqualFold("Tag", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -17966,23 +18036,25 @@ func awsRestxml_deserializeDocumentTagSet(v *[]*types.Tag, decoder smithyxml.Nod return nil } -func awsRestxml_deserializeDocumentTagSetUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsRestxml_deserializeDocumentTagSetUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18039,13 +18111,13 @@ func awsRestxml_deserializeDocumentTargetGrant(v **types.TargetGrant, decoder sm return nil } -func awsRestxml_deserializeDocumentTargetGrants(v *[]*types.TargetGrant, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTargetGrants(v *[]types.TargetGrant, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TargetGrant + var sv []types.TargetGrant if *v == nil { - sv = make([]*types.TargetGrant, 0) + sv = make([]types.TargetGrant, 0) } else { sv = *v } @@ -18061,11 +18133,13 @@ func awsRestxml_deserializeDocumentTargetGrants(v *[]*types.TargetGrant, decoder } for { if strings.EqualFold("Grant", t.Name.Local) { - var col *types.TargetGrant + var col types.TargetGrant nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTargetGrant(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentTargetGrant(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18078,23 +18152,25 @@ func awsRestxml_deserializeDocumentTargetGrants(v *[]*types.TargetGrant, decoder return nil } -func awsRestxml_deserializeDocumentTargetGrantsUnwrapped(v *[]*types.TargetGrant, decoder smithyxml.NodeDecoder) error { - var sv []*types.TargetGrant +func awsRestxml_deserializeDocumentTargetGrantsUnwrapped(v *[]types.TargetGrant, decoder smithyxml.NodeDecoder) error { + var sv []types.TargetGrant if *v == nil { - sv = make([]*types.TargetGrant, 0) + sv = make([]types.TargetGrant, 0) } else { sv = *v } switch { default: - var mv *types.TargetGrant + var mv types.TargetGrant t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTargetGrant(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentTargetGrant(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18147,7 +18223,7 @@ func awsRestxml_deserializeDocumentTopicConfiguration(v **types.TopicConfigurati } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("Topic", t.Name.Local): @@ -18163,7 +18239,7 @@ func awsRestxml_deserializeDocumentTopicConfiguration(v **types.TopicConfigurati } if val != nil { xtv := string(val) - sv.TopicArn = &xtv + sv.TopicArn = ptr.String(xtv) } default: @@ -18176,13 +18252,13 @@ func awsRestxml_deserializeDocumentTopicConfiguration(v **types.TopicConfigurati return nil } -func awsRestxml_deserializeDocumentTopicConfigurationList(v *[]*types.TopicConfiguration, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTopicConfigurationList(v *[]types.TopicConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TopicConfiguration + var sv []types.TopicConfiguration if *v == nil { - sv = make([]*types.TopicConfiguration, 0) + sv = make([]types.TopicConfiguration, 0) } else { sv = *v } @@ -18198,11 +18274,13 @@ func awsRestxml_deserializeDocumentTopicConfigurationList(v *[]*types.TopicConfi } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.TopicConfiguration + var col types.TopicConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTopicConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentTopicConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18215,23 +18293,25 @@ func awsRestxml_deserializeDocumentTopicConfigurationList(v *[]*types.TopicConfi return nil } -func awsRestxml_deserializeDocumentTopicConfigurationListUnwrapped(v *[]*types.TopicConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.TopicConfiguration +func awsRestxml_deserializeDocumentTopicConfigurationListUnwrapped(v *[]types.TopicConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.TopicConfiguration if *v == nil { - sv = make([]*types.TopicConfiguration, 0) + sv = make([]types.TopicConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.TopicConfiguration + var mv types.TopicConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTopicConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentTopicConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -18273,7 +18353,7 @@ func awsRestxml_deserializeDocumentTransition(v **types.Transition, decoder smit if err != nil { return err } - sv.Date = &t + sv.Date = ptr.Time(t) } case strings.EqualFold("Days", t.Name.Local): @@ -18290,7 +18370,7 @@ func awsRestxml_deserializeDocumentTransition(v **types.Transition, decoder smit if err != nil { return err } - sv.Days = ptr.Int32(int32(i64)) + sv.Days = int32(i64) } case strings.EqualFold("StorageClass", t.Name.Local): @@ -18316,13 +18396,13 @@ func awsRestxml_deserializeDocumentTransition(v **types.Transition, decoder smit return nil } -func awsRestxml_deserializeDocumentTransitionList(v *[]*types.Transition, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTransitionList(v *[]types.Transition, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Transition + var sv []types.Transition if *v == nil { - sv = make([]*types.Transition, 0) + sv = make([]types.Transition, 0) } else { sv = *v } @@ -18338,11 +18418,13 @@ func awsRestxml_deserializeDocumentTransitionList(v *[]*types.Transition, decode } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Transition + var col types.Transition nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTransition(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentTransition(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -18355,23 +18437,25 @@ func awsRestxml_deserializeDocumentTransitionList(v *[]*types.Transition, decode return nil } -func awsRestxml_deserializeDocumentTransitionListUnwrapped(v *[]*types.Transition, decoder smithyxml.NodeDecoder) error { - var sv []*types.Transition +func awsRestxml_deserializeDocumentTransitionListUnwrapped(v *[]types.Transition, decoder smithyxml.NodeDecoder) error { + var sv []types.Transition if *v == nil { - sv = make([]*types.Transition, 0) + sv = make([]types.Transition, 0) } else { sv = *v } switch { default: - var mv *types.Transition + var mv types.Transition t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTransition(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentTransition(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv diff --git a/service/s3/go.mod b/service/s3/go.mod index ad9a5db2561..2e8599a6e55 100644 --- a/service/s3/go.mod +++ b/service/s3/go.mod @@ -3,9 +3,9 @@ module github.com/aws/aws-sdk-go-v2/service/s3 go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v0.3.0 - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v0.3.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v0.3.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/s3/serializers.go b/service/s3/serializers.go index 9dcb07c18e3..0e07b067480 100644 --- a/service/s3/serializers.go +++ b/service/s3/serializers.go @@ -67,32 +67,24 @@ func awsRestxml_serializeOpHttpBindingsAbortMultipartUploadInput(v *AbortMultipa return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -184,32 +176,24 @@ func awsRestxml_serializeOpHttpBindingsCompleteMultipartUploadInput(v *CompleteM return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -283,65 +267,48 @@ func awsRestxml_serializeOpHttpBindingsCopyObjectInput(v *CopyObjectInput, encod encoder.SetHeader(locationName).String(string(v.ACL)) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.CacheControl != nil { + if v.CacheControl != nil && len(*v.CacheControl) > 0 { locationName := "Cache-Control" - if len(*v.CacheControl) > 0 { - encoder.SetHeader(locationName).String(*v.CacheControl) - } + encoder.SetHeader(locationName).String(*v.CacheControl) } - if v.ContentDisposition != nil { + if v.ContentDisposition != nil && len(*v.ContentDisposition) > 0 { locationName := "Content-Disposition" - if len(*v.ContentDisposition) > 0 { - encoder.SetHeader(locationName).String(*v.ContentDisposition) - } + encoder.SetHeader(locationName).String(*v.ContentDisposition) } - if v.ContentEncoding != nil { + if v.ContentEncoding != nil && len(*v.ContentEncoding) > 0 { locationName := "Content-Encoding" - if len(*v.ContentEncoding) > 0 { - encoder.SetHeader(locationName).String(*v.ContentEncoding) - } + encoder.SetHeader(locationName).String(*v.ContentEncoding) } - if v.ContentLanguage != nil { + if v.ContentLanguage != nil && len(*v.ContentLanguage) > 0 { locationName := "Content-Language" - if len(*v.ContentLanguage) > 0 { - encoder.SetHeader(locationName).String(*v.ContentLanguage) - } + encoder.SetHeader(locationName).String(*v.ContentLanguage) } - if v.ContentType != nil { + if v.ContentType != nil && len(*v.ContentType) > 0 { locationName := "Content-Type" - if len(*v.ContentType) > 0 { - encoder.SetHeader(locationName).String(*v.ContentType) - } + encoder.SetHeader(locationName).String(*v.ContentType) } - if v.CopySource != nil { + if v.CopySource != nil && len(*v.CopySource) > 0 { locationName := "X-Amz-Copy-Source" - if len(*v.CopySource) > 0 { - encoder.SetHeader(locationName).String(*v.CopySource) - } + encoder.SetHeader(locationName).String(*v.CopySource) } - if v.CopySourceIfMatch != nil { + if v.CopySourceIfMatch != nil && len(*v.CopySourceIfMatch) > 0 { locationName := "X-Amz-Copy-Source-If-Match" - if len(*v.CopySourceIfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.CopySourceIfMatch) - } + encoder.SetHeader(locationName).String(*v.CopySourceIfMatch) } if v.CopySourceIfModifiedSince != nil { @@ -349,11 +316,9 @@ func awsRestxml_serializeOpHttpBindingsCopyObjectInput(v *CopyObjectInput, encod encoder.SetHeader(locationName).String(smithytime.FormatHTTPDate(*v.CopySourceIfModifiedSince)) } - if v.CopySourceIfNoneMatch != nil { + if v.CopySourceIfNoneMatch != nil && len(*v.CopySourceIfNoneMatch) > 0 { locationName := "X-Amz-Copy-Source-If-None-Match" - if len(*v.CopySourceIfNoneMatch) > 0 { - encoder.SetHeader(locationName).String(*v.CopySourceIfNoneMatch) - } + encoder.SetHeader(locationName).String(*v.CopySourceIfNoneMatch) } if v.CopySourceIfUnmodifiedSince != nil { @@ -361,39 +326,29 @@ func awsRestxml_serializeOpHttpBindingsCopyObjectInput(v *CopyObjectInput, encod encoder.SetHeader(locationName).String(smithytime.FormatHTTPDate(*v.CopySourceIfUnmodifiedSince)) } - if v.CopySourceSSECustomerAlgorithm != nil { + if v.CopySourceSSECustomerAlgorithm != nil && len(*v.CopySourceSSECustomerAlgorithm) > 0 { locationName := "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Algorithm" - if len(*v.CopySourceSSECustomerAlgorithm) > 0 { - encoder.SetHeader(locationName).String(*v.CopySourceSSECustomerAlgorithm) - } + encoder.SetHeader(locationName).String(*v.CopySourceSSECustomerAlgorithm) } - if v.CopySourceSSECustomerKey != nil { + if v.CopySourceSSECustomerKey != nil && len(*v.CopySourceSSECustomerKey) > 0 { locationName := "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key" - if len(*v.CopySourceSSECustomerKey) > 0 { - encoder.SetHeader(locationName).String(*v.CopySourceSSECustomerKey) - } + encoder.SetHeader(locationName).String(*v.CopySourceSSECustomerKey) } - if v.CopySourceSSECustomerKeyMD5 != nil { + if v.CopySourceSSECustomerKeyMD5 != nil && len(*v.CopySourceSSECustomerKeyMD5) > 0 { locationName := "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key-Md5" - if len(*v.CopySourceSSECustomerKeyMD5) > 0 { - encoder.SetHeader(locationName).String(*v.CopySourceSSECustomerKeyMD5) - } + encoder.SetHeader(locationName).String(*v.CopySourceSSECustomerKeyMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.ExpectedSourceBucketOwner != nil { + if v.ExpectedSourceBucketOwner != nil && len(*v.ExpectedSourceBucketOwner) > 0 { locationName := "X-Amz-Source-Expected-Bucket-Owner" - if len(*v.ExpectedSourceBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedSourceBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedSourceBucketOwner) } if v.Expires != nil { @@ -401,41 +356,30 @@ func awsRestxml_serializeOpHttpBindingsCopyObjectInput(v *CopyObjectInput, encod encoder.SetHeader(locationName).String(smithytime.FormatHTTPDate(*v.Expires)) } - if v.GrantFullControl != nil { + if v.GrantFullControl != nil && len(*v.GrantFullControl) > 0 { locationName := "X-Amz-Grant-Full-Control" - if len(*v.GrantFullControl) > 0 { - encoder.SetHeader(locationName).String(*v.GrantFullControl) - } + encoder.SetHeader(locationName).String(*v.GrantFullControl) } - if v.GrantRead != nil { + if v.GrantRead != nil && len(*v.GrantRead) > 0 { locationName := "X-Amz-Grant-Read" - if len(*v.GrantRead) > 0 { - encoder.SetHeader(locationName).String(*v.GrantRead) - } + encoder.SetHeader(locationName).String(*v.GrantRead) } - if v.GrantReadACP != nil { + if v.GrantReadACP != nil && len(*v.GrantReadACP) > 0 { locationName := "X-Amz-Grant-Read-Acp" - if len(*v.GrantReadACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantReadACP) - } + encoder.SetHeader(locationName).String(*v.GrantReadACP) } - if v.GrantWriteACP != nil { + if v.GrantWriteACP != nil && len(*v.GrantWriteACP) > 0 { locationName := "X-Amz-Grant-Write-Acp" - if len(*v.GrantWriteACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantWriteACP) - } + encoder.SetHeader(locationName).String(*v.GrantWriteACP) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -444,8 +388,8 @@ func awsRestxml_serializeOpHttpBindingsCopyObjectInput(v *CopyObjectInput, encod if v.Metadata != nil { hv := encoder.Headers("X-Amz-Meta-") for mapKey, mapVal := range v.Metadata { - if len(*mapVal) > 0 { - hv.SetHeader(http.CanonicalHeaderKey(mapKey)).String(*mapVal) + if len(mapVal) > 0 { + hv.SetHeader(http.CanonicalHeaderKey(mapKey)).String(mapVal) } } } @@ -480,39 +424,29 @@ func awsRestxml_serializeOpHttpBindingsCopyObjectInput(v *CopyObjectInput, encod encoder.SetHeader(locationName).String(string(v.ServerSideEncryption)) } - if v.SSECustomerAlgorithm != nil { + if v.SSECustomerAlgorithm != nil && len(*v.SSECustomerAlgorithm) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Algorithm" - if len(*v.SSECustomerAlgorithm) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) - } + encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) } - if v.SSECustomerKey != nil { + if v.SSECustomerKey != nil && len(*v.SSECustomerKey) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key" - if len(*v.SSECustomerKey) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKey) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKey) } - if v.SSECustomerKeyMD5 != nil { + if v.SSECustomerKeyMD5 != nil && len(*v.SSECustomerKeyMD5) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key-Md5" - if len(*v.SSECustomerKeyMD5) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) } - if v.SSEKMSEncryptionContext != nil { + if v.SSEKMSEncryptionContext != nil && len(*v.SSEKMSEncryptionContext) > 0 { locationName := "X-Amz-Server-Side-Encryption-Context" - if len(*v.SSEKMSEncryptionContext) > 0 { - encoder.SetHeader(locationName).String(*v.SSEKMSEncryptionContext) - } + encoder.SetHeader(locationName).String(*v.SSEKMSEncryptionContext) } - if v.SSEKMSKeyId != nil { + if v.SSEKMSKeyId != nil && len(*v.SSEKMSKeyId) > 0 { locationName := "X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id" - if len(*v.SSEKMSKeyId) > 0 { - encoder.SetHeader(locationName).String(*v.SSEKMSKeyId) - } + encoder.SetHeader(locationName).String(*v.SSEKMSKeyId) } if len(v.StorageClass) > 0 { @@ -520,11 +454,9 @@ func awsRestxml_serializeOpHttpBindingsCopyObjectInput(v *CopyObjectInput, encod encoder.SetHeader(locationName).String(string(v.StorageClass)) } - if v.Tagging != nil { + if v.Tagging != nil && len(*v.Tagging) > 0 { locationName := "X-Amz-Tagging" - if len(*v.Tagging) > 0 { - encoder.SetHeader(locationName).String(*v.Tagging) - } + encoder.SetHeader(locationName).String(*v.Tagging) } if len(v.TaggingDirective) > 0 { @@ -532,11 +464,9 @@ func awsRestxml_serializeOpHttpBindingsCopyObjectInput(v *CopyObjectInput, encod encoder.SetHeader(locationName).String(string(v.TaggingDirective)) } - if v.WebsiteRedirectLocation != nil { + if v.WebsiteRedirectLocation != nil && len(*v.WebsiteRedirectLocation) > 0 { locationName := "X-Amz-Website-Redirect-Location" - if len(*v.WebsiteRedirectLocation) > 0 { - encoder.SetHeader(locationName).String(*v.WebsiteRedirectLocation) - } + encoder.SetHeader(locationName).String(*v.WebsiteRedirectLocation) } return nil @@ -621,56 +551,43 @@ func awsRestxml_serializeOpHttpBindingsCreateBucketInput(v *CreateBucketInput, e encoder.SetHeader(locationName).String(string(v.ACL)) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.GrantFullControl != nil { + if v.GrantFullControl != nil && len(*v.GrantFullControl) > 0 { locationName := "X-Amz-Grant-Full-Control" - if len(*v.GrantFullControl) > 0 { - encoder.SetHeader(locationName).String(*v.GrantFullControl) - } + encoder.SetHeader(locationName).String(*v.GrantFullControl) } - if v.GrantRead != nil { + if v.GrantRead != nil && len(*v.GrantRead) > 0 { locationName := "X-Amz-Grant-Read" - if len(*v.GrantRead) > 0 { - encoder.SetHeader(locationName).String(*v.GrantRead) - } + encoder.SetHeader(locationName).String(*v.GrantRead) } - if v.GrantReadACP != nil { + if v.GrantReadACP != nil && len(*v.GrantReadACP) > 0 { locationName := "X-Amz-Grant-Read-Acp" - if len(*v.GrantReadACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantReadACP) - } + encoder.SetHeader(locationName).String(*v.GrantReadACP) } - if v.GrantWrite != nil { + if v.GrantWrite != nil && len(*v.GrantWrite) > 0 { locationName := "X-Amz-Grant-Write" - if len(*v.GrantWrite) > 0 { - encoder.SetHeader(locationName).String(*v.GrantWrite) - } + encoder.SetHeader(locationName).String(*v.GrantWrite) } - if v.GrantWriteACP != nil { + if v.GrantWriteACP != nil && len(*v.GrantWriteACP) > 0 { locationName := "X-Amz-Grant-Write-Acp" - if len(*v.GrantWriteACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantWriteACP) - } + encoder.SetHeader(locationName).String(*v.GrantWriteACP) } - if v.ObjectLockEnabledForBucket != nil { + if v.ObjectLockEnabledForBucket { locationName := "X-Amz-Bucket-Object-Lock-Enabled" - encoder.SetHeader(locationName).Boolean(*v.ObjectLockEnabledForBucket) + encoder.SetHeader(locationName).Boolean(v.ObjectLockEnabledForBucket) } return nil @@ -732,58 +649,43 @@ func awsRestxml_serializeOpHttpBindingsCreateMultipartUploadInput(v *CreateMulti encoder.SetHeader(locationName).String(string(v.ACL)) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.CacheControl != nil { + if v.CacheControl != nil && len(*v.CacheControl) > 0 { locationName := "Cache-Control" - if len(*v.CacheControl) > 0 { - encoder.SetHeader(locationName).String(*v.CacheControl) - } + encoder.SetHeader(locationName).String(*v.CacheControl) } - if v.ContentDisposition != nil { + if v.ContentDisposition != nil && len(*v.ContentDisposition) > 0 { locationName := "Content-Disposition" - if len(*v.ContentDisposition) > 0 { - encoder.SetHeader(locationName).String(*v.ContentDisposition) - } + encoder.SetHeader(locationName).String(*v.ContentDisposition) } - if v.ContentEncoding != nil { + if v.ContentEncoding != nil && len(*v.ContentEncoding) > 0 { locationName := "Content-Encoding" - if len(*v.ContentEncoding) > 0 { - encoder.SetHeader(locationName).String(*v.ContentEncoding) - } + encoder.SetHeader(locationName).String(*v.ContentEncoding) } - if v.ContentLanguage != nil { + if v.ContentLanguage != nil && len(*v.ContentLanguage) > 0 { locationName := "Content-Language" - if len(*v.ContentLanguage) > 0 { - encoder.SetHeader(locationName).String(*v.ContentLanguage) - } + encoder.SetHeader(locationName).String(*v.ContentLanguage) } - if v.ContentType != nil { + if v.ContentType != nil && len(*v.ContentType) > 0 { locationName := "Content-Type" - if len(*v.ContentType) > 0 { - encoder.SetHeader(locationName).String(*v.ContentType) - } + encoder.SetHeader(locationName).String(*v.ContentType) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.Expires != nil { @@ -791,41 +693,30 @@ func awsRestxml_serializeOpHttpBindingsCreateMultipartUploadInput(v *CreateMulti encoder.SetHeader(locationName).String(smithytime.FormatHTTPDate(*v.Expires)) } - if v.GrantFullControl != nil { + if v.GrantFullControl != nil && len(*v.GrantFullControl) > 0 { locationName := "X-Amz-Grant-Full-Control" - if len(*v.GrantFullControl) > 0 { - encoder.SetHeader(locationName).String(*v.GrantFullControl) - } + encoder.SetHeader(locationName).String(*v.GrantFullControl) } - if v.GrantRead != nil { + if v.GrantRead != nil && len(*v.GrantRead) > 0 { locationName := "X-Amz-Grant-Read" - if len(*v.GrantRead) > 0 { - encoder.SetHeader(locationName).String(*v.GrantRead) - } + encoder.SetHeader(locationName).String(*v.GrantRead) } - if v.GrantReadACP != nil { + if v.GrantReadACP != nil && len(*v.GrantReadACP) > 0 { locationName := "X-Amz-Grant-Read-Acp" - if len(*v.GrantReadACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantReadACP) - } + encoder.SetHeader(locationName).String(*v.GrantReadACP) } - if v.GrantWriteACP != nil { + if v.GrantWriteACP != nil && len(*v.GrantWriteACP) > 0 { locationName := "X-Amz-Grant-Write-Acp" - if len(*v.GrantWriteACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantWriteACP) - } + encoder.SetHeader(locationName).String(*v.GrantWriteACP) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -834,8 +725,8 @@ func awsRestxml_serializeOpHttpBindingsCreateMultipartUploadInput(v *CreateMulti if v.Metadata != nil { hv := encoder.Headers("X-Amz-Meta-") for mapKey, mapVal := range v.Metadata { - if len(*mapVal) > 0 { - hv.SetHeader(http.CanonicalHeaderKey(mapKey)).String(*mapVal) + if len(mapVal) > 0 { + hv.SetHeader(http.CanonicalHeaderKey(mapKey)).String(mapVal) } } } @@ -865,39 +756,29 @@ func awsRestxml_serializeOpHttpBindingsCreateMultipartUploadInput(v *CreateMulti encoder.SetHeader(locationName).String(string(v.ServerSideEncryption)) } - if v.SSECustomerAlgorithm != nil { + if v.SSECustomerAlgorithm != nil && len(*v.SSECustomerAlgorithm) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Algorithm" - if len(*v.SSECustomerAlgorithm) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) - } + encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) } - if v.SSECustomerKey != nil { + if v.SSECustomerKey != nil && len(*v.SSECustomerKey) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key" - if len(*v.SSECustomerKey) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKey) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKey) } - if v.SSECustomerKeyMD5 != nil { + if v.SSECustomerKeyMD5 != nil && len(*v.SSECustomerKeyMD5) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key-Md5" - if len(*v.SSECustomerKeyMD5) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) } - if v.SSEKMSEncryptionContext != nil { + if v.SSEKMSEncryptionContext != nil && len(*v.SSEKMSEncryptionContext) > 0 { locationName := "X-Amz-Server-Side-Encryption-Context" - if len(*v.SSEKMSEncryptionContext) > 0 { - encoder.SetHeader(locationName).String(*v.SSEKMSEncryptionContext) - } + encoder.SetHeader(locationName).String(*v.SSEKMSEncryptionContext) } - if v.SSEKMSKeyId != nil { + if v.SSEKMSKeyId != nil && len(*v.SSEKMSKeyId) > 0 { locationName := "X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id" - if len(*v.SSEKMSKeyId) > 0 { - encoder.SetHeader(locationName).String(*v.SSEKMSKeyId) - } + encoder.SetHeader(locationName).String(*v.SSEKMSKeyId) } if len(v.StorageClass) > 0 { @@ -905,18 +786,14 @@ func awsRestxml_serializeOpHttpBindingsCreateMultipartUploadInput(v *CreateMulti encoder.SetHeader(locationName).String(string(v.StorageClass)) } - if v.Tagging != nil { + if v.Tagging != nil && len(*v.Tagging) > 0 { locationName := "X-Amz-Tagging" - if len(*v.Tagging) > 0 { - encoder.SetHeader(locationName).String(*v.Tagging) - } + encoder.SetHeader(locationName).String(*v.Tagging) } - if v.WebsiteRedirectLocation != nil { + if v.WebsiteRedirectLocation != nil && len(*v.WebsiteRedirectLocation) > 0 { locationName := "X-Amz-Website-Redirect-Location" - if len(*v.WebsiteRedirectLocation) > 0 { - encoder.SetHeader(locationName).String(*v.WebsiteRedirectLocation) - } + encoder.SetHeader(locationName).String(*v.WebsiteRedirectLocation) } return nil @@ -973,23 +850,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketInput(v *DeleteBucketInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -1046,23 +918,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketAnalyticsConfigurationInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.Id != nil { @@ -1123,23 +990,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketCorsInput(v *DeleteBucketCors return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -1196,23 +1058,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketEncryptionInput(v *DeleteBuck return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -1269,23 +1126,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketInventoryConfigurationInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.Id != nil { @@ -1346,23 +1198,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketLifecycleInput(v *DeleteBucke return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -1419,23 +1266,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketMetricsConfigurationInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.Id != nil { @@ -1496,23 +1338,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketOwnershipControlsInput(v *Del return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -1569,23 +1406,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketPolicyInput(v *DeleteBucketPo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -1642,23 +1474,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketReplicationInput(v *DeleteBuc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -1715,23 +1542,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketTaggingInput(v *DeleteBucketT return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -1788,23 +1610,18 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketWebsiteInput(v *DeleteBucketW return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -1861,47 +1678,37 @@ func awsRestxml_serializeOpHttpBindingsDeleteObjectInput(v *DeleteObjectInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.BypassGovernanceRetention != nil { + if v.BypassGovernanceRetention { locationName := "X-Amz-Bypass-Governance-Retention" - encoder.SetHeader(locationName).Boolean(*v.BypassGovernanceRetention) + encoder.SetHeader(locationName).Boolean(v.BypassGovernanceRetention) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } } - if v.MFA != nil { + if v.MFA != nil && len(*v.MFA) > 0 { locationName := "X-Amz-Mfa" - if len(*v.MFA) > 0 { - encoder.SetHeader(locationName).String(*v.MFA) - } + encoder.SetHeader(locationName).String(*v.MFA) } if len(v.RequestPayer) > 0 { @@ -1990,35 +1797,28 @@ func awsRestxml_serializeOpHttpBindingsDeleteObjectsInput(v *DeleteObjectsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.BypassGovernanceRetention != nil { + if v.BypassGovernanceRetention { locationName := "X-Amz-Bypass-Governance-Retention" - encoder.SetHeader(locationName).Boolean(*v.BypassGovernanceRetention) + encoder.SetHeader(locationName).Boolean(v.BypassGovernanceRetention) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.MFA != nil { + if v.MFA != nil && len(*v.MFA) > 0 { locationName := "X-Amz-Mfa" - if len(*v.MFA) > 0 { - encoder.SetHeader(locationName).String(*v.MFA) - } + encoder.SetHeader(locationName).String(*v.MFA) } if len(v.RequestPayer) > 0 { @@ -2080,32 +1880,24 @@ func awsRestxml_serializeOpHttpBindingsDeleteObjectTaggingInput(v *DeleteObjectT return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -2169,23 +1961,18 @@ func awsRestxml_serializeOpHttpBindingsDeletePublicAccessBlockInput(v *DeletePub return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -2242,23 +2029,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketAccelerateConfigurationInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -2315,23 +2097,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketAclInput(v *GetBucketAclInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -2388,23 +2165,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketAnalyticsConfigurationInput(v *G return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.Id != nil { @@ -2465,23 +2237,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketCorsInput(v *GetBucketCorsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -2538,23 +2305,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketEncryptionInput(v *GetBucketEncr return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -2611,23 +2373,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketInventoryConfigurationInput(v *G return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.Id != nil { @@ -2688,23 +2445,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketLifecycleConfigurationInput(v *G return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -2761,23 +2513,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketLocationInput(v *GetBucketLocati return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -2834,23 +2581,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketLoggingInput(v *GetBucketLogging return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -2907,23 +2649,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketMetricsConfigurationInput(v *Get return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.Id != nil { @@ -2984,23 +2721,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketNotificationConfigurationInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -3057,23 +2789,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketOwnershipControlsInput(v *GetBuc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -3130,23 +2857,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketPolicyInput(v *GetBucketPolicyIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -3203,23 +2925,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketPolicyStatusInput(v *GetBucketPo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -3276,23 +2993,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketReplicationInput(v *GetBucketRep return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -3349,23 +3061,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketRequestPaymentInput(v *GetBucket return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -3422,23 +3129,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketTaggingInput(v *GetBucketTagging return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -3495,23 +3197,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketVersioningInput(v *GetBucketVers return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -3568,23 +3265,18 @@ func awsRestxml_serializeOpHttpBindingsGetBucketWebsiteInput(v *GetBucketWebsite return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -3641,30 +3333,23 @@ func awsRestxml_serializeOpHttpBindingsGetObjectInput(v *GetObjectInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } if v.IfModifiedSince != nil { @@ -3672,11 +3357,9 @@ func awsRestxml_serializeOpHttpBindingsGetObjectInput(v *GetObjectInput, encoder encoder.SetHeader(locationName).String(smithytime.FormatHTTPDate(*v.IfModifiedSince)) } - if v.IfNoneMatch != nil { + if v.IfNoneMatch != nil && len(*v.IfNoneMatch) > 0 { locationName := "If-None-Match" - if len(*v.IfNoneMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfNoneMatch) - } + encoder.SetHeader(locationName).String(*v.IfNoneMatch) } if v.IfUnmodifiedSince != nil { @@ -3684,27 +3367,22 @@ func awsRestxml_serializeOpHttpBindingsGetObjectInput(v *GetObjectInput, encoder encoder.SetHeader(locationName).String(smithytime.FormatHTTPDate(*v.IfUnmodifiedSince)) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } } - if v.PartNumber != nil { - encoder.SetQuery("partNumber").Integer(*v.PartNumber) + if v.PartNumber != 0 { + encoder.SetQuery("partNumber").Integer(v.PartNumber) } - if v.Range != nil { + if v.Range != nil && len(*v.Range) > 0 { locationName := "Range" - if len(*v.Range) > 0 { - encoder.SetHeader(locationName).String(*v.Range) - } + encoder.SetHeader(locationName).String(*v.Range) } if len(v.RequestPayer) > 0 { @@ -3736,25 +3414,19 @@ func awsRestxml_serializeOpHttpBindingsGetObjectInput(v *GetObjectInput, encoder encoder.SetQuery("response-expires").String(smithytime.FormatDateTime(*v.ResponseExpires)) } - if v.SSECustomerAlgorithm != nil { + if v.SSECustomerAlgorithm != nil && len(*v.SSECustomerAlgorithm) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Algorithm" - if len(*v.SSECustomerAlgorithm) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) - } + encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) } - if v.SSECustomerKey != nil { + if v.SSECustomerKey != nil && len(*v.SSECustomerKey) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key" - if len(*v.SSECustomerKey) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKey) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKey) } - if v.SSECustomerKeyMD5 != nil { + if v.SSECustomerKeyMD5 != nil && len(*v.SSECustomerKeyMD5) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key-Md5" - if len(*v.SSECustomerKeyMD5) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) } if v.VersionId != nil { @@ -3815,32 +3487,24 @@ func awsRestxml_serializeOpHttpBindingsGetObjectAclInput(v *GetObjectAclInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -3909,32 +3573,24 @@ func awsRestxml_serializeOpHttpBindingsGetObjectLegalHoldInput(v *GetObjectLegal return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -4003,23 +3659,18 @@ func awsRestxml_serializeOpHttpBindingsGetObjectLockConfigurationInput(v *GetObj return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -4076,32 +3727,24 @@ func awsRestxml_serializeOpHttpBindingsGetObjectRetentionInput(v *GetObjectReten return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -4170,32 +3813,24 @@ func awsRestxml_serializeOpHttpBindingsGetObjectTaggingInput(v *GetObjectTagging return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -4259,32 +3894,24 @@ func awsRestxml_serializeOpHttpBindingsGetObjectTorrentInput(v *GetObjectTorrent return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -4349,23 +3976,18 @@ func awsRestxml_serializeOpHttpBindingsGetPublicAccessBlockInput(v *GetPublicAcc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -4422,23 +4044,18 @@ func awsRestxml_serializeOpHttpBindingsHeadBucketInput(v *HeadBucketInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -4495,30 +4112,23 @@ func awsRestxml_serializeOpHttpBindingsHeadObjectInput(v *HeadObjectInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.IfMatch != nil { + if v.IfMatch != nil && len(*v.IfMatch) > 0 { locationName := "If-Match" - if len(*v.IfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfMatch) - } + encoder.SetHeader(locationName).String(*v.IfMatch) } if v.IfModifiedSince != nil { @@ -4526,11 +4136,9 @@ func awsRestxml_serializeOpHttpBindingsHeadObjectInput(v *HeadObjectInput, encod encoder.SetHeader(locationName).String(smithytime.FormatHTTPDate(*v.IfModifiedSince)) } - if v.IfNoneMatch != nil { + if v.IfNoneMatch != nil && len(*v.IfNoneMatch) > 0 { locationName := "If-None-Match" - if len(*v.IfNoneMatch) > 0 { - encoder.SetHeader(locationName).String(*v.IfNoneMatch) - } + encoder.SetHeader(locationName).String(*v.IfNoneMatch) } if v.IfUnmodifiedSince != nil { @@ -4538,27 +4146,22 @@ func awsRestxml_serializeOpHttpBindingsHeadObjectInput(v *HeadObjectInput, encod encoder.SetHeader(locationName).String(smithytime.FormatHTTPDate(*v.IfUnmodifiedSince)) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } } - if v.PartNumber != nil { - encoder.SetQuery("partNumber").Integer(*v.PartNumber) + if v.PartNumber != 0 { + encoder.SetQuery("partNumber").Integer(v.PartNumber) } - if v.Range != nil { + if v.Range != nil && len(*v.Range) > 0 { locationName := "Range" - if len(*v.Range) > 0 { - encoder.SetHeader(locationName).String(*v.Range) - } + encoder.SetHeader(locationName).String(*v.Range) } if len(v.RequestPayer) > 0 { @@ -4566,25 +4169,19 @@ func awsRestxml_serializeOpHttpBindingsHeadObjectInput(v *HeadObjectInput, encod encoder.SetHeader(locationName).String(string(v.RequestPayer)) } - if v.SSECustomerAlgorithm != nil { + if v.SSECustomerAlgorithm != nil && len(*v.SSECustomerAlgorithm) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Algorithm" - if len(*v.SSECustomerAlgorithm) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) - } + encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) } - if v.SSECustomerKey != nil { + if v.SSECustomerKey != nil && len(*v.SSECustomerKey) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key" - if len(*v.SSECustomerKey) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKey) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKey) } - if v.SSECustomerKeyMD5 != nil { + if v.SSECustomerKeyMD5 != nil && len(*v.SSECustomerKeyMD5) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key-Md5" - if len(*v.SSECustomerKeyMD5) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) } if v.VersionId != nil { @@ -4645,13 +4242,10 @@ func awsRestxml_serializeOpHttpBindingsListBucketAnalyticsConfigurationsInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -4661,11 +4255,9 @@ func awsRestxml_serializeOpHttpBindingsListBucketAnalyticsConfigurationsInput(v encoder.SetQuery("continuation-token").String(*v.ContinuationToken) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -4722,13 +4314,10 @@ func awsRestxml_serializeOpHttpBindingsListBucketInventoryConfigurationsInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -4738,11 +4327,9 @@ func awsRestxml_serializeOpHttpBindingsListBucketInventoryConfigurationsInput(v encoder.SetQuery("continuation-token").String(*v.ContinuationToken) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -4799,13 +4386,10 @@ func awsRestxml_serializeOpHttpBindingsListBucketMetricsConfigurationsInput(v *L return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -4815,11 +4399,9 @@ func awsRestxml_serializeOpHttpBindingsListBucketMetricsConfigurationsInput(v *L encoder.SetQuery("continuation-token").String(*v.ContinuationToken) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -4926,13 +4508,10 @@ func awsRestxml_serializeOpHttpBindingsListMultipartUploadsInput(v *ListMultipar return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -4946,19 +4525,17 @@ func awsRestxml_serializeOpHttpBindingsListMultipartUploadsInput(v *ListMultipar encoder.SetQuery("encoding-type").String(string(v.EncodingType)) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.KeyMarker != nil { encoder.SetQuery("key-marker").String(*v.KeyMarker) } - if v.MaxUploads != nil { - encoder.SetQuery("max-uploads").Integer(*v.MaxUploads) + if v.MaxUploads != 0 { + encoder.SetQuery("max-uploads").Integer(v.MaxUploads) } if v.Prefix != nil { @@ -5023,13 +4600,10 @@ func awsRestxml_serializeOpHttpBindingsListObjectsInput(v *ListObjectsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -5043,19 +4617,17 @@ func awsRestxml_serializeOpHttpBindingsListObjectsInput(v *ListObjectsInput, enc encoder.SetQuery("encoding-type").String(string(v.EncodingType)) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.Marker != nil { encoder.SetQuery("marker").String(*v.Marker) } - if v.MaxKeys != nil { - encoder.SetQuery("max-keys").Integer(*v.MaxKeys) + if v.MaxKeys != 0 { + encoder.SetQuery("max-keys").Integer(v.MaxKeys) } if v.Prefix != nil { @@ -5121,13 +4693,10 @@ func awsRestxml_serializeOpHttpBindingsListObjectsV2Input(v *ListObjectsV2Input, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -5145,19 +4714,17 @@ func awsRestxml_serializeOpHttpBindingsListObjectsV2Input(v *ListObjectsV2Input, encoder.SetQuery("encoding-type").String(string(v.EncodingType)) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.FetchOwner != nil { - encoder.SetQuery("fetch-owner").Boolean(*v.FetchOwner) + if v.FetchOwner { + encoder.SetQuery("fetch-owner").Boolean(v.FetchOwner) } - if v.MaxKeys != nil { - encoder.SetQuery("max-keys").Integer(*v.MaxKeys) + if v.MaxKeys != 0 { + encoder.SetQuery("max-keys").Integer(v.MaxKeys) } if v.Prefix != nil { @@ -5227,13 +4794,10 @@ func awsRestxml_serializeOpHttpBindingsListObjectVersionsInput(v *ListObjectVers return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -5247,19 +4811,17 @@ func awsRestxml_serializeOpHttpBindingsListObjectVersionsInput(v *ListObjectVers encoder.SetQuery("encoding-type").String(string(v.EncodingType)) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.KeyMarker != nil { encoder.SetQuery("key-marker").String(*v.KeyMarker) } - if v.MaxKeys != nil { - encoder.SetQuery("max-keys").Integer(*v.MaxKeys) + if v.MaxKeys != 0 { + encoder.SetQuery("max-keys").Integer(v.MaxKeys) } if v.Prefix != nil { @@ -5324,43 +4886,35 @@ func awsRestxml_serializeOpHttpBindingsListPartsInput(v *ListPartsInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } } - if v.MaxParts != nil { - encoder.SetQuery("max-parts").Integer(*v.MaxParts) + if v.MaxParts != 0 { + encoder.SetQuery("max-parts").Integer(v.MaxParts) } - if v.PartNumberMarker != nil { - encoder.SetQuery("part-number-marker").Integer(*v.PartNumberMarker) + if v.PartNumberMarker != 0 { + encoder.SetQuery("part-number-marker").Integer(v.PartNumberMarker) } if len(v.RequestPayer) > 0 { @@ -5449,23 +5003,18 @@ func awsRestxml_serializeOpHttpBindingsPutBucketAccelerateConfigurationInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -5550,65 +5099,48 @@ func awsRestxml_serializeOpHttpBindingsPutBucketAclInput(v *PutBucketAclInput, e encoder.SetHeader(locationName).String(string(v.ACL)) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.GrantFullControl != nil { + if v.GrantFullControl != nil && len(*v.GrantFullControl) > 0 { locationName := "X-Amz-Grant-Full-Control" - if len(*v.GrantFullControl) > 0 { - encoder.SetHeader(locationName).String(*v.GrantFullControl) - } + encoder.SetHeader(locationName).String(*v.GrantFullControl) } - if v.GrantRead != nil { + if v.GrantRead != nil && len(*v.GrantRead) > 0 { locationName := "X-Amz-Grant-Read" - if len(*v.GrantRead) > 0 { - encoder.SetHeader(locationName).String(*v.GrantRead) - } + encoder.SetHeader(locationName).String(*v.GrantRead) } - if v.GrantReadACP != nil { + if v.GrantReadACP != nil && len(*v.GrantReadACP) > 0 { locationName := "X-Amz-Grant-Read-Acp" - if len(*v.GrantReadACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantReadACP) - } + encoder.SetHeader(locationName).String(*v.GrantReadACP) } - if v.GrantWrite != nil { + if v.GrantWrite != nil && len(*v.GrantWrite) > 0 { locationName := "X-Amz-Grant-Write" - if len(*v.GrantWrite) > 0 { - encoder.SetHeader(locationName).String(*v.GrantWrite) - } + encoder.SetHeader(locationName).String(*v.GrantWrite) } - if v.GrantWriteACP != nil { + if v.GrantWriteACP != nil && len(*v.GrantWriteACP) > 0 { locationName := "X-Amz-Grant-Write-Acp" - if len(*v.GrantWriteACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantWriteACP) - } + encoder.SetHeader(locationName).String(*v.GrantWriteACP) } return nil @@ -5688,23 +5220,18 @@ func awsRestxml_serializeOpHttpBindingsPutBucketAnalyticsConfigurationInput(v *P return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.Id != nil { @@ -5788,30 +5315,23 @@ func awsRestxml_serializeOpHttpBindingsPutBucketCorsInput(v *PutBucketCorsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -5891,30 +5411,23 @@ func awsRestxml_serializeOpHttpBindingsPutBucketEncryptionInput(v *PutBucketEncr return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -5994,23 +5507,18 @@ func awsRestxml_serializeOpHttpBindingsPutBucketInventoryConfigurationInput(v *P return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.Id != nil { @@ -6094,23 +5602,18 @@ func awsRestxml_serializeOpHttpBindingsPutBucketLifecycleConfigurationInput(v *P return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -6190,30 +5693,23 @@ func awsRestxml_serializeOpHttpBindingsPutBucketLoggingInput(v *PutBucketLogging return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -6293,23 +5789,18 @@ func awsRestxml_serializeOpHttpBindingsPutBucketMetricsConfigurationInput(v *Put return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.Id != nil { @@ -6393,23 +5884,18 @@ func awsRestxml_serializeOpHttpBindingsPutBucketNotificationConfigurationInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -6489,30 +5975,23 @@ func awsRestxml_serializeOpHttpBindingsPutBucketOwnershipControlsInput(v *PutBuc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -6587,35 +6066,28 @@ func awsRestxml_serializeOpHttpBindingsPutBucketPolicyInput(v *PutBucketPolicyIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ConfirmRemoveSelfBucketAccess != nil { + if v.ConfirmRemoveSelfBucketAccess { locationName := "X-Amz-Confirm-Remove-Self-Bucket-Access" - encoder.SetHeader(locationName).Boolean(*v.ConfirmRemoveSelfBucketAccess) + encoder.SetHeader(locationName).Boolean(v.ConfirmRemoveSelfBucketAccess) } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -6711,37 +6183,28 @@ func awsRestxml_serializeOpHttpBindingsPutBucketReplicationInput(v *PutBucketRep return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Token != nil { + if v.Token != nil && len(*v.Token) > 0 { locationName := "X-Amz-Bucket-Object-Lock-Token" - if len(*v.Token) > 0 { - encoder.SetHeader(locationName).String(*v.Token) - } + encoder.SetHeader(locationName).String(*v.Token) } return nil @@ -6821,30 +6284,23 @@ func awsRestxml_serializeOpHttpBindingsPutBucketRequestPaymentInput(v *PutBucket return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -6924,30 +6380,23 @@ func awsRestxml_serializeOpHttpBindingsPutBucketTaggingInput(v *PutBucketTagging return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -7027,37 +6476,28 @@ func awsRestxml_serializeOpHttpBindingsPutBucketVersioningInput(v *PutBucketVers return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.MFA != nil { + if v.MFA != nil && len(*v.MFA) > 0 { locationName := "X-Amz-Mfa" - if len(*v.MFA) > 0 { - encoder.SetHeader(locationName).String(*v.MFA) - } + encoder.SetHeader(locationName).String(*v.MFA) } return nil @@ -7137,30 +6577,23 @@ func awsRestxml_serializeOpHttpBindingsPutBucketWebsiteInput(v *PutBucketWebsite return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -7233,70 +6666,53 @@ func awsRestxml_serializeOpHttpBindingsPutObjectInput(v *PutObjectInput, encoder encoder.SetHeader(locationName).String(string(v.ACL)) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.CacheControl != nil { + if v.CacheControl != nil && len(*v.CacheControl) > 0 { locationName := "Cache-Control" - if len(*v.CacheControl) > 0 { - encoder.SetHeader(locationName).String(*v.CacheControl) - } + encoder.SetHeader(locationName).String(*v.CacheControl) } - if v.ContentDisposition != nil { + if v.ContentDisposition != nil && len(*v.ContentDisposition) > 0 { locationName := "Content-Disposition" - if len(*v.ContentDisposition) > 0 { - encoder.SetHeader(locationName).String(*v.ContentDisposition) - } + encoder.SetHeader(locationName).String(*v.ContentDisposition) } - if v.ContentEncoding != nil { + if v.ContentEncoding != nil && len(*v.ContentEncoding) > 0 { locationName := "Content-Encoding" - if len(*v.ContentEncoding) > 0 { - encoder.SetHeader(locationName).String(*v.ContentEncoding) - } + encoder.SetHeader(locationName).String(*v.ContentEncoding) } - if v.ContentLanguage != nil { + if v.ContentLanguage != nil && len(*v.ContentLanguage) > 0 { locationName := "Content-Language" - if len(*v.ContentLanguage) > 0 { - encoder.SetHeader(locationName).String(*v.ContentLanguage) - } + encoder.SetHeader(locationName).String(*v.ContentLanguage) } - if v.ContentLength != nil { + if v.ContentLength != 0 { locationName := "Content-Length" - encoder.SetHeader(locationName).Long(*v.ContentLength) + encoder.SetHeader(locationName).Long(v.ContentLength) } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ContentType != nil { + if v.ContentType != nil && len(*v.ContentType) > 0 { locationName := "Content-Type" - if len(*v.ContentType) > 0 { - encoder.SetHeader(locationName).String(*v.ContentType) - } + encoder.SetHeader(locationName).String(*v.ContentType) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if v.Expires != nil { @@ -7304,41 +6720,30 @@ func awsRestxml_serializeOpHttpBindingsPutObjectInput(v *PutObjectInput, encoder encoder.SetHeader(locationName).String(smithytime.FormatHTTPDate(*v.Expires)) } - if v.GrantFullControl != nil { + if v.GrantFullControl != nil && len(*v.GrantFullControl) > 0 { locationName := "X-Amz-Grant-Full-Control" - if len(*v.GrantFullControl) > 0 { - encoder.SetHeader(locationName).String(*v.GrantFullControl) - } + encoder.SetHeader(locationName).String(*v.GrantFullControl) } - if v.GrantRead != nil { + if v.GrantRead != nil && len(*v.GrantRead) > 0 { locationName := "X-Amz-Grant-Read" - if len(*v.GrantRead) > 0 { - encoder.SetHeader(locationName).String(*v.GrantRead) - } + encoder.SetHeader(locationName).String(*v.GrantRead) } - if v.GrantReadACP != nil { + if v.GrantReadACP != nil && len(*v.GrantReadACP) > 0 { locationName := "X-Amz-Grant-Read-Acp" - if len(*v.GrantReadACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantReadACP) - } + encoder.SetHeader(locationName).String(*v.GrantReadACP) } - if v.GrantWriteACP != nil { + if v.GrantWriteACP != nil && len(*v.GrantWriteACP) > 0 { locationName := "X-Amz-Grant-Write-Acp" - if len(*v.GrantWriteACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantWriteACP) - } + encoder.SetHeader(locationName).String(*v.GrantWriteACP) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -7347,8 +6752,8 @@ func awsRestxml_serializeOpHttpBindingsPutObjectInput(v *PutObjectInput, encoder if v.Metadata != nil { hv := encoder.Headers("X-Amz-Meta-") for mapKey, mapVal := range v.Metadata { - if len(*mapVal) > 0 { - hv.SetHeader(http.CanonicalHeaderKey(mapKey)).String(*mapVal) + if len(mapVal) > 0 { + hv.SetHeader(http.CanonicalHeaderKey(mapKey)).String(mapVal) } } } @@ -7378,39 +6783,29 @@ func awsRestxml_serializeOpHttpBindingsPutObjectInput(v *PutObjectInput, encoder encoder.SetHeader(locationName).String(string(v.ServerSideEncryption)) } - if v.SSECustomerAlgorithm != nil { + if v.SSECustomerAlgorithm != nil && len(*v.SSECustomerAlgorithm) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Algorithm" - if len(*v.SSECustomerAlgorithm) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) - } + encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) } - if v.SSECustomerKey != nil { + if v.SSECustomerKey != nil && len(*v.SSECustomerKey) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key" - if len(*v.SSECustomerKey) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKey) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKey) } - if v.SSECustomerKeyMD5 != nil { + if v.SSECustomerKeyMD5 != nil && len(*v.SSECustomerKeyMD5) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key-Md5" - if len(*v.SSECustomerKeyMD5) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) } - if v.SSEKMSEncryptionContext != nil { + if v.SSEKMSEncryptionContext != nil && len(*v.SSEKMSEncryptionContext) > 0 { locationName := "X-Amz-Server-Side-Encryption-Context" - if len(*v.SSEKMSEncryptionContext) > 0 { - encoder.SetHeader(locationName).String(*v.SSEKMSEncryptionContext) - } + encoder.SetHeader(locationName).String(*v.SSEKMSEncryptionContext) } - if v.SSEKMSKeyId != nil { + if v.SSEKMSKeyId != nil && len(*v.SSEKMSKeyId) > 0 { locationName := "X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id" - if len(*v.SSEKMSKeyId) > 0 { - encoder.SetHeader(locationName).String(*v.SSEKMSKeyId) - } + encoder.SetHeader(locationName).String(*v.SSEKMSKeyId) } if len(v.StorageClass) > 0 { @@ -7418,18 +6813,14 @@ func awsRestxml_serializeOpHttpBindingsPutObjectInput(v *PutObjectInput, encoder encoder.SetHeader(locationName).String(string(v.StorageClass)) } - if v.Tagging != nil { + if v.Tagging != nil && len(*v.Tagging) > 0 { locationName := "X-Amz-Tagging" - if len(*v.Tagging) > 0 { - encoder.SetHeader(locationName).String(*v.Tagging) - } + encoder.SetHeader(locationName).String(*v.Tagging) } - if v.WebsiteRedirectLocation != nil { + if v.WebsiteRedirectLocation != nil && len(*v.WebsiteRedirectLocation) > 0 { locationName := "X-Amz-Website-Redirect-Location" - if len(*v.WebsiteRedirectLocation) > 0 { - encoder.SetHeader(locationName).String(*v.WebsiteRedirectLocation) - } + encoder.SetHeader(locationName).String(*v.WebsiteRedirectLocation) } return nil @@ -7514,74 +6905,54 @@ func awsRestxml_serializeOpHttpBindingsPutObjectAclInput(v *PutObjectAclInput, e encoder.SetHeader(locationName).String(string(v.ACL)) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.GrantFullControl != nil { + if v.GrantFullControl != nil && len(*v.GrantFullControl) > 0 { locationName := "X-Amz-Grant-Full-Control" - if len(*v.GrantFullControl) > 0 { - encoder.SetHeader(locationName).String(*v.GrantFullControl) - } + encoder.SetHeader(locationName).String(*v.GrantFullControl) } - if v.GrantRead != nil { + if v.GrantRead != nil && len(*v.GrantRead) > 0 { locationName := "X-Amz-Grant-Read" - if len(*v.GrantRead) > 0 { - encoder.SetHeader(locationName).String(*v.GrantRead) - } + encoder.SetHeader(locationName).String(*v.GrantRead) } - if v.GrantReadACP != nil { + if v.GrantReadACP != nil && len(*v.GrantReadACP) > 0 { locationName := "X-Amz-Grant-Read-Acp" - if len(*v.GrantReadACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantReadACP) - } + encoder.SetHeader(locationName).String(*v.GrantReadACP) } - if v.GrantWrite != nil { + if v.GrantWrite != nil && len(*v.GrantWrite) > 0 { locationName := "X-Amz-Grant-Write" - if len(*v.GrantWrite) > 0 { - encoder.SetHeader(locationName).String(*v.GrantWrite) - } + encoder.SetHeader(locationName).String(*v.GrantWrite) } - if v.GrantWriteACP != nil { + if v.GrantWriteACP != nil && len(*v.GrantWriteACP) > 0 { locationName := "X-Amz-Grant-Write-Acp" - if len(*v.GrantWriteACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantWriteACP) - } + encoder.SetHeader(locationName).String(*v.GrantWriteACP) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -7673,39 +7044,29 @@ func awsRestxml_serializeOpHttpBindingsPutObjectLegalHoldInput(v *PutObjectLegal return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -7797,30 +7158,23 @@ func awsRestxml_serializeOpHttpBindingsPutObjectLockConfigurationInput(v *PutObj return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } if len(v.RequestPayer) > 0 { @@ -7828,11 +7182,9 @@ func awsRestxml_serializeOpHttpBindingsPutObjectLockConfigurationInput(v *PutObj encoder.SetHeader(locationName).String(string(v.RequestPayer)) } - if v.Token != nil { + if v.Token != nil && len(*v.Token) > 0 { locationName := "X-Amz-Bucket-Object-Lock-Token" - if len(*v.Token) > 0 { - encoder.SetHeader(locationName).String(*v.Token) - } + encoder.SetHeader(locationName).String(*v.Token) } return nil @@ -7912,44 +7264,34 @@ func awsRestxml_serializeOpHttpBindingsPutObjectRetentionInput(v *PutObjectReten return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.BypassGovernanceRetention != nil { + if v.BypassGovernanceRetention { locationName := "X-Amz-Bypass-Governance-Retention" - encoder.SetHeader(locationName).Boolean(*v.BypassGovernanceRetention) + encoder.SetHeader(locationName).Boolean(v.BypassGovernanceRetention) } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -8041,39 +7383,29 @@ func awsRestxml_serializeOpHttpBindingsPutObjectTaggingInput(v *PutObjectTagging return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -8160,30 +7492,23 @@ func awsRestxml_serializeOpHttpBindingsPutPublicAccessBlockInput(v *PutPublicAcc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } return nil @@ -8263,32 +7588,24 @@ func awsRestxml_serializeOpHttpBindingsRestoreObjectInput(v *RestoreObjectInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } @@ -8368,51 +7685,41 @@ func awsRestxml_serializeOpHttpBindingsUploadPartInput(v *UploadPartInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ContentLength != nil { + if v.ContentLength != 0 { locationName := "Content-Length" - encoder.SetHeader(locationName).Long(*v.ContentLength) + encoder.SetHeader(locationName).Long(v.ContentLength) } - if v.ContentMD5 != nil { + if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 { locationName := "Content-Md5" - if len(*v.ContentMD5) > 0 { - encoder.SetHeader(locationName).String(*v.ContentMD5) - } + encoder.SetHeader(locationName).String(*v.ContentMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } } - if v.PartNumber != nil { - encoder.SetQuery("partNumber").Integer(*v.PartNumber) + if v.PartNumber != 0 { + encoder.SetQuery("partNumber").Integer(v.PartNumber) } if len(v.RequestPayer) > 0 { @@ -8420,25 +7727,19 @@ func awsRestxml_serializeOpHttpBindingsUploadPartInput(v *UploadPartInput, encod encoder.SetHeader(locationName).String(string(v.RequestPayer)) } - if v.SSECustomerAlgorithm != nil { + if v.SSECustomerAlgorithm != nil && len(*v.SSECustomerAlgorithm) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Algorithm" - if len(*v.SSECustomerAlgorithm) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) - } + encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) } - if v.SSECustomerKey != nil { + if v.SSECustomerKey != nil && len(*v.SSECustomerKey) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key" - if len(*v.SSECustomerKey) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKey) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKey) } - if v.SSECustomerKeyMD5 != nil { + if v.SSECustomerKeyMD5 != nil && len(*v.SSECustomerKeyMD5) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key-Md5" - if len(*v.SSECustomerKeyMD5) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) } if v.UploadId != nil { @@ -8499,30 +7800,23 @@ func awsRestxml_serializeOpHttpBindingsUploadPartCopyInput(v *UploadPartCopyInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.CopySource != nil { + if v.CopySource != nil && len(*v.CopySource) > 0 { locationName := "X-Amz-Copy-Source" - if len(*v.CopySource) > 0 { - encoder.SetHeader(locationName).String(*v.CopySource) - } + encoder.SetHeader(locationName).String(*v.CopySource) } - if v.CopySourceIfMatch != nil { + if v.CopySourceIfMatch != nil && len(*v.CopySourceIfMatch) > 0 { locationName := "X-Amz-Copy-Source-If-Match" - if len(*v.CopySourceIfMatch) > 0 { - encoder.SetHeader(locationName).String(*v.CopySourceIfMatch) - } + encoder.SetHeader(locationName).String(*v.CopySourceIfMatch) } if v.CopySourceIfModifiedSince != nil { @@ -8530,11 +7824,9 @@ func awsRestxml_serializeOpHttpBindingsUploadPartCopyInput(v *UploadPartCopyInpu encoder.SetHeader(locationName).String(smithytime.FormatHTTPDate(*v.CopySourceIfModifiedSince)) } - if v.CopySourceIfNoneMatch != nil { + if v.CopySourceIfNoneMatch != nil && len(*v.CopySourceIfNoneMatch) > 0 { locationName := "X-Amz-Copy-Source-If-None-Match" - if len(*v.CopySourceIfNoneMatch) > 0 { - encoder.SetHeader(locationName).String(*v.CopySourceIfNoneMatch) - } + encoder.SetHeader(locationName).String(*v.CopySourceIfNoneMatch) } if v.CopySourceIfUnmodifiedSince != nil { @@ -8542,62 +7834,47 @@ func awsRestxml_serializeOpHttpBindingsUploadPartCopyInput(v *UploadPartCopyInpu encoder.SetHeader(locationName).String(smithytime.FormatHTTPDate(*v.CopySourceIfUnmodifiedSince)) } - if v.CopySourceRange != nil { + if v.CopySourceRange != nil && len(*v.CopySourceRange) > 0 { locationName := "X-Amz-Copy-Source-Range" - if len(*v.CopySourceRange) > 0 { - encoder.SetHeader(locationName).String(*v.CopySourceRange) - } + encoder.SetHeader(locationName).String(*v.CopySourceRange) } - if v.CopySourceSSECustomerAlgorithm != nil { + if v.CopySourceSSECustomerAlgorithm != nil && len(*v.CopySourceSSECustomerAlgorithm) > 0 { locationName := "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Algorithm" - if len(*v.CopySourceSSECustomerAlgorithm) > 0 { - encoder.SetHeader(locationName).String(*v.CopySourceSSECustomerAlgorithm) - } + encoder.SetHeader(locationName).String(*v.CopySourceSSECustomerAlgorithm) } - if v.CopySourceSSECustomerKey != nil { + if v.CopySourceSSECustomerKey != nil && len(*v.CopySourceSSECustomerKey) > 0 { locationName := "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key" - if len(*v.CopySourceSSECustomerKey) > 0 { - encoder.SetHeader(locationName).String(*v.CopySourceSSECustomerKey) - } + encoder.SetHeader(locationName).String(*v.CopySourceSSECustomerKey) } - if v.CopySourceSSECustomerKeyMD5 != nil { + if v.CopySourceSSECustomerKeyMD5 != nil && len(*v.CopySourceSSECustomerKeyMD5) > 0 { locationName := "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key-Md5" - if len(*v.CopySourceSSECustomerKeyMD5) > 0 { - encoder.SetHeader(locationName).String(*v.CopySourceSSECustomerKeyMD5) - } + encoder.SetHeader(locationName).String(*v.CopySourceSSECustomerKeyMD5) } - if v.ExpectedBucketOwner != nil { + if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 { locationName := "X-Amz-Expected-Bucket-Owner" - if len(*v.ExpectedBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner) } - if v.ExpectedSourceBucketOwner != nil { + if v.ExpectedSourceBucketOwner != nil && len(*v.ExpectedSourceBucketOwner) > 0 { locationName := "X-Amz-Source-Expected-Bucket-Owner" - if len(*v.ExpectedSourceBucketOwner) > 0 { - encoder.SetHeader(locationName).String(*v.ExpectedSourceBucketOwner) - } + encoder.SetHeader(locationName).String(*v.ExpectedSourceBucketOwner) } - if v.Key == nil { + if v.Key == nil || len(*v.Key) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} } if v.Key != nil { - if len(*v.Key) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")} - } if err := encoder.SetURI("Key").String(*v.Key); err != nil { return err } } - if v.PartNumber != nil { - encoder.SetQuery("partNumber").Integer(*v.PartNumber) + if v.PartNumber != 0 { + encoder.SetQuery("partNumber").Integer(v.PartNumber) } if len(v.RequestPayer) > 0 { @@ -8605,25 +7882,19 @@ func awsRestxml_serializeOpHttpBindingsUploadPartCopyInput(v *UploadPartCopyInpu encoder.SetHeader(locationName).String(string(v.RequestPayer)) } - if v.SSECustomerAlgorithm != nil { + if v.SSECustomerAlgorithm != nil && len(*v.SSECustomerAlgorithm) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Algorithm" - if len(*v.SSECustomerAlgorithm) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) - } + encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm) } - if v.SSECustomerKey != nil { + if v.SSECustomerKey != nil && len(*v.SSECustomerKey) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key" - if len(*v.SSECustomerKey) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKey) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKey) } - if v.SSECustomerKeyMD5 != nil { + if v.SSECustomerKeyMD5 != nil && len(*v.SSECustomerKeyMD5) > 0 { locationName := "X-Amz-Server-Side-Encryption-Customer-Key-Md5" - if len(*v.SSECustomerKeyMD5) > 0 { - encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) - } + encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5) } if v.UploadId != nil { @@ -8635,7 +7906,7 @@ func awsRestxml_serializeOpHttpBindingsUploadPartCopyInput(v *UploadPartCopyInpu func awsRestxml_serializeDocumentAbortIncompleteMultipartUpload(v *types.AbortIncompleteMultipartUpload, value smithyxml.Value) error { defer value.Close() - if v.DaysAfterInitiation != nil { + if v.DaysAfterInitiation != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -8644,7 +7915,7 @@ func awsRestxml_serializeDocumentAbortIncompleteMultipartUpload(v *types.AbortIn Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.DaysAfterInitiation) + el.Integer(v.DaysAfterInitiation) } return nil } @@ -8712,56 +7983,41 @@ func awsRestxml_serializeDocumentAccessControlTranslation(v *types.AccessControl return nil } -func awsRestxml_serializeDocumentAllowedHeaders(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentAllowedHeaders(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } -func awsRestxml_serializeDocumentAllowedMethods(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentAllowedMethods(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } -func awsRestxml_serializeDocumentAllowedOrigins(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentAllowedOrigins(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -9013,7 +8269,7 @@ func awsRestxml_serializeDocumentCompletedPart(v *types.CompletedPart, value smi el := value.MemberElement(root) el.String(*v.ETag) } - if v.PartNumber != nil { + if v.PartNumber != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -9022,25 +8278,20 @@ func awsRestxml_serializeDocumentCompletedPart(v *types.CompletedPart, value smi Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.PartNumber) + el.Integer(v.PartNumber) } return nil } -func awsRestxml_serializeDocumentCompletedPartList(v []*types.CompletedPart, value smithyxml.Value) error { +func awsRestxml_serializeDocumentCompletedPartList(v []types.CompletedPart, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentCompletedPart(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentCompletedPart(&v[i], am); err != nil { return err } } @@ -9146,7 +8397,7 @@ func awsRestxml_serializeDocumentCORSRule(v *types.CORSRule, value smithyxml.Val return err } } - if v.MaxAgeSeconds != nil { + if v.MaxAgeSeconds != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -9155,25 +8406,20 @@ func awsRestxml_serializeDocumentCORSRule(v *types.CORSRule, value smithyxml.Val Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.MaxAgeSeconds) + el.Integer(v.MaxAgeSeconds) } return nil } -func awsRestxml_serializeDocumentCORSRules(v []*types.CORSRule, value smithyxml.Value) error { +func awsRestxml_serializeDocumentCORSRules(v []types.CORSRule, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentCORSRule(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentCORSRule(&v[i], am); err != nil { return err } } @@ -9198,7 +8444,7 @@ func awsRestxml_serializeDocumentCreateBucketConfiguration(v *types.CreateBucket func awsRestxml_serializeDocumentCSVInput(v *types.CSVInput, value smithyxml.Value) error { defer value.Close() - if v.AllowQuotedRecordDelimiter != nil { + if v.AllowQuotedRecordDelimiter { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -9207,7 +8453,7 @@ func awsRestxml_serializeDocumentCSVInput(v *types.CSVInput, value smithyxml.Val Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.AllowQuotedRecordDelimiter) + el.Boolean(v.AllowQuotedRecordDelimiter) } if v.Comments != nil { rootAttr := []smithyxml.Attr{} @@ -9340,7 +8586,7 @@ func awsRestxml_serializeDocumentCSVOutput(v *types.CSVOutput, value smithyxml.V func awsRestxml_serializeDocumentDefaultRetention(v *types.DefaultRetention, value smithyxml.Value) error { defer value.Close() - if v.Days != nil { + if v.Days != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -9349,7 +8595,7 @@ func awsRestxml_serializeDocumentDefaultRetention(v *types.DefaultRetention, val Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.Days) + el.Integer(v.Days) } if len(v.Mode) > 0 { rootAttr := []smithyxml.Attr{} @@ -9362,7 +8608,7 @@ func awsRestxml_serializeDocumentDefaultRetention(v *types.DefaultRetention, val el := value.MemberElement(root) el.String(string(v.Mode)) } - if v.Years != nil { + if v.Years != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -9371,7 +8617,7 @@ func awsRestxml_serializeDocumentDefaultRetention(v *types.DefaultRetention, val Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.Years) + el.Integer(v.Years) } return nil } @@ -9391,7 +8637,7 @@ func awsRestxml_serializeDocumentDelete(v *types.Delete, value smithyxml.Value) return err } } - if v.Quiet != nil { + if v.Quiet { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -9400,7 +8646,7 @@ func awsRestxml_serializeDocumentDelete(v *types.Delete, value smithyxml.Value) Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.Quiet) + el.Boolean(v.Quiet) } return nil } @@ -9610,20 +8856,15 @@ func awsRestxml_serializeDocumentExistingObjectReplication(v *types.ExistingObje return nil } -func awsRestxml_serializeDocumentExposeHeaders(v []*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentExposeHeaders(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - am.String(*v[i]) + am.String(v[i]) } return nil } @@ -9655,20 +8896,15 @@ func awsRestxml_serializeDocumentFilterRule(v *types.FilterRule, value smithyxml return nil } -func awsRestxml_serializeDocumentFilterRuleList(v []*types.FilterRule, value smithyxml.Value) error { +func awsRestxml_serializeDocumentFilterRuleList(v []types.FilterRule, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentFilterRule(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentFilterRule(&v[i], am); err != nil { return err } } @@ -9769,7 +9005,7 @@ func awsRestxml_serializeDocumentGrantee(v *types.Grantee, value smithyxml.Value return nil } -func awsRestxml_serializeDocumentGrants(v []*types.Grant, value smithyxml.Value) error { +func awsRestxml_serializeDocumentGrants(v []types.Grant, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -9783,13 +9019,8 @@ func awsRestxml_serializeDocumentGrants(v []*types.Grant, value smithyxml.Value) } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentGrant(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentGrant(&v[i], am); err != nil { return err } } @@ -9917,7 +9148,7 @@ func awsRestxml_serializeDocumentInventoryConfiguration(v *types.InventoryConfig el := value.MemberElement(root) el.String(string(v.IncludedObjectVersions)) } - if v.IsEnabled != nil { + if v.IsEnabled { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -9926,7 +9157,7 @@ func awsRestxml_serializeDocumentInventoryConfiguration(v *types.InventoryConfig Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.IsEnabled) + el.Boolean(v.IsEnabled) } if v.OptionalFields != nil { rootAttr := []smithyxml.Attr{} @@ -10205,20 +9436,15 @@ func awsRestxml_serializeDocumentLambdaFunctionConfiguration(v *types.LambdaFunc return nil } -func awsRestxml_serializeDocumentLambdaFunctionConfigurationList(v []*types.LambdaFunctionConfiguration, value smithyxml.Value) error { +func awsRestxml_serializeDocumentLambdaFunctionConfigurationList(v []types.LambdaFunctionConfiguration, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentLambdaFunctionConfiguration(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentLambdaFunctionConfiguration(&v[i], am); err != nil { return err } } @@ -10238,7 +9464,7 @@ func awsRestxml_serializeDocumentLifecycleExpiration(v *types.LifecycleExpiratio el := value.MemberElement(root) el.String(smithytime.FormatDateTime(*v.Date)) } - if v.Days != nil { + if v.Days != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -10247,9 +9473,9 @@ func awsRestxml_serializeDocumentLifecycleExpiration(v *types.LifecycleExpiratio Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.Days) + el.Integer(v.Days) } - if v.ExpiredObjectDeleteMarker != nil { + if v.ExpiredObjectDeleteMarker { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -10258,7 +9484,7 @@ func awsRestxml_serializeDocumentLifecycleExpiration(v *types.LifecycleExpiratio Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.ExpiredObjectDeleteMarker) + el.Boolean(v.ExpiredObjectDeleteMarker) } return nil } @@ -10450,20 +9676,15 @@ func awsRestxml_serializeDocumentLifecycleRuleFilter(v *types.LifecycleRuleFilte return nil } -func awsRestxml_serializeDocumentLifecycleRules(v []*types.LifecycleRule, value smithyxml.Value) error { +func awsRestxml_serializeDocumentLifecycleRules(v []types.LifecycleRule, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentLifecycleRule(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentLifecycleRule(&v[i], am); err != nil { return err } } @@ -10668,7 +9889,7 @@ func awsRestxml_serializeDocumentMetricsFilter(v *types.MetricsFilter, value smi func awsRestxml_serializeDocumentNoncurrentVersionExpiration(v *types.NoncurrentVersionExpiration, value smithyxml.Value) error { defer value.Close() - if v.NoncurrentDays != nil { + if v.NoncurrentDays != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -10677,14 +9898,14 @@ func awsRestxml_serializeDocumentNoncurrentVersionExpiration(v *types.Noncurrent Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.NoncurrentDays) + el.Integer(v.NoncurrentDays) } return nil } func awsRestxml_serializeDocumentNoncurrentVersionTransition(v *types.NoncurrentVersionTransition, value smithyxml.Value) error { defer value.Close() - if v.NoncurrentDays != nil { + if v.NoncurrentDays != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -10693,7 +9914,7 @@ func awsRestxml_serializeDocumentNoncurrentVersionTransition(v *types.Noncurrent Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.NoncurrentDays) + el.Integer(v.NoncurrentDays) } if len(v.StorageClass) > 0 { rootAttr := []smithyxml.Attr{} @@ -10709,20 +9930,15 @@ func awsRestxml_serializeDocumentNoncurrentVersionTransition(v *types.Noncurrent return nil } -func awsRestxml_serializeDocumentNoncurrentVersionTransitionList(v []*types.NoncurrentVersionTransition, value smithyxml.Value) error { +func awsRestxml_serializeDocumentNoncurrentVersionTransitionList(v []types.NoncurrentVersionTransition, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentNoncurrentVersionTransition(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentNoncurrentVersionTransition(&v[i], am); err != nil { return err } } @@ -10818,20 +10034,15 @@ func awsRestxml_serializeDocumentObjectIdentifier(v *types.ObjectIdentifier, val return nil } -func awsRestxml_serializeDocumentObjectIdentifierList(v []*types.ObjectIdentifier, value smithyxml.Value) error { +func awsRestxml_serializeDocumentObjectIdentifierList(v []types.ObjectIdentifier, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentObjectIdentifier(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentObjectIdentifier(&v[i], am); err != nil { return err } } @@ -11038,20 +10249,15 @@ func awsRestxml_serializeDocumentOwnershipControlsRule(v *types.OwnershipControl return nil } -func awsRestxml_serializeDocumentOwnershipControlsRules(v []*types.OwnershipControlsRule, value smithyxml.Value) error { +func awsRestxml_serializeDocumentOwnershipControlsRules(v []types.OwnershipControlsRule, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentOwnershipControlsRule(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentOwnershipControlsRule(&v[i], am); err != nil { return err } } @@ -11065,7 +10271,7 @@ func awsRestxml_serializeDocumentParquetInput(v *types.ParquetInput, value smith func awsRestxml_serializeDocumentPublicAccessBlockConfiguration(v *types.PublicAccessBlockConfiguration, value smithyxml.Value) error { defer value.Close() - if v.BlockPublicAcls != nil { + if v.BlockPublicAcls { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -11074,9 +10280,9 @@ func awsRestxml_serializeDocumentPublicAccessBlockConfiguration(v *types.PublicA Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.BlockPublicAcls) + el.Boolean(v.BlockPublicAcls) } - if v.BlockPublicPolicy != nil { + if v.BlockPublicPolicy { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -11085,9 +10291,9 @@ func awsRestxml_serializeDocumentPublicAccessBlockConfiguration(v *types.PublicA Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.BlockPublicPolicy) + el.Boolean(v.BlockPublicPolicy) } - if v.IgnorePublicAcls != nil { + if v.IgnorePublicAcls { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -11096,9 +10302,9 @@ func awsRestxml_serializeDocumentPublicAccessBlockConfiguration(v *types.PublicA Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.IgnorePublicAcls) + el.Boolean(v.IgnorePublicAcls) } - if v.RestrictPublicBuckets != nil { + if v.RestrictPublicBuckets { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -11107,7 +10313,7 @@ func awsRestxml_serializeDocumentPublicAccessBlockConfiguration(v *types.PublicA Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.RestrictPublicBuckets) + el.Boolean(v.RestrictPublicBuckets) } return nil } @@ -11165,20 +10371,15 @@ func awsRestxml_serializeDocumentQueueConfiguration(v *types.QueueConfiguration, return nil } -func awsRestxml_serializeDocumentQueueConfigurationList(v []*types.QueueConfiguration, value smithyxml.Value) error { +func awsRestxml_serializeDocumentQueueConfigurationList(v []types.QueueConfiguration, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentQueueConfiguration(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentQueueConfiguration(&v[i], am); err != nil { return err } } @@ -11377,7 +10578,7 @@ func awsRestxml_serializeDocumentReplicationRule(v *types.ReplicationRule, value el := value.MemberElement(root) el.String(*v.Prefix) } - if v.Priority != nil { + if v.Priority != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -11386,7 +10587,7 @@ func awsRestxml_serializeDocumentReplicationRule(v *types.ReplicationRule, value Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.Priority) + el.Integer(v.Priority) } if v.SourceSelectionCriteria != nil { rootAttr := []smithyxml.Attr{} @@ -11486,20 +10687,15 @@ func awsRestxml_serializeDocumentReplicationRuleFilter(v *types.ReplicationRuleF return nil } -func awsRestxml_serializeDocumentReplicationRules(v []*types.ReplicationRule, value smithyxml.Value) error { +func awsRestxml_serializeDocumentReplicationRules(v []types.ReplicationRule, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentReplicationRule(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentReplicationRule(&v[i], am); err != nil { return err } } @@ -11537,7 +10733,7 @@ func awsRestxml_serializeDocumentReplicationTime(v *types.ReplicationTime, value func awsRestxml_serializeDocumentReplicationTimeValue(v *types.ReplicationTimeValue, value smithyxml.Value) error { defer value.Close() - if v.Minutes != nil { + if v.Minutes != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -11546,7 +10742,7 @@ func awsRestxml_serializeDocumentReplicationTimeValue(v *types.ReplicationTimeVa Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.Minutes) + el.Integer(v.Minutes) } return nil } @@ -11569,7 +10765,7 @@ func awsRestxml_serializeDocumentRequestPaymentConfiguration(v *types.RequestPay func awsRestxml_serializeDocumentRestoreRequest(v *types.RestoreRequest, value smithyxml.Value) error { defer value.Close() - if v.Days != nil { + if v.Days != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -11578,7 +10774,7 @@ func awsRestxml_serializeDocumentRestoreRequest(v *types.RestoreRequest, value s Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.Days) + el.Integer(v.Days) } if v.Description != nil { rootAttr := []smithyxml.Attr{} @@ -11686,7 +10882,7 @@ func awsRestxml_serializeDocumentRoutingRule(v *types.RoutingRule, value smithyx return nil } -func awsRestxml_serializeDocumentRoutingRules(v []*types.RoutingRule, value smithyxml.Value) error { +func awsRestxml_serializeDocumentRoutingRules(v []types.RoutingRule, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -11700,13 +10896,8 @@ func awsRestxml_serializeDocumentRoutingRules(v []*types.RoutingRule, value smit } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentRoutingRule(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentRoutingRule(&v[i], am); err != nil { return err } } @@ -11948,20 +11139,15 @@ func awsRestxml_serializeDocumentServerSideEncryptionRule(v *types.ServerSideEnc return nil } -func awsRestxml_serializeDocumentServerSideEncryptionRules(v []*types.ServerSideEncryptionRule, value smithyxml.Value) error { +func awsRestxml_serializeDocumentServerSideEncryptionRules(v []types.ServerSideEncryptionRule, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentServerSideEncryptionRule(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentServerSideEncryptionRule(&v[i], am); err != nil { return err } } @@ -12115,7 +11301,7 @@ func awsRestxml_serializeDocumentTagging(v *types.Tagging, value smithyxml.Value return nil } -func awsRestxml_serializeDocumentTagSet(v []*types.Tag, value smithyxml.Value) error { +func awsRestxml_serializeDocumentTagSet(v []types.Tag, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -12129,13 +11315,8 @@ func awsRestxml_serializeDocumentTagSet(v []*types.Tag, value smithyxml.Value) e } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentTag(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentTag(&v[i], am); err != nil { return err } } @@ -12171,7 +11352,7 @@ func awsRestxml_serializeDocumentTargetGrant(v *types.TargetGrant, value smithyx return nil } -func awsRestxml_serializeDocumentTargetGrants(v []*types.TargetGrant, value smithyxml.Value) error { +func awsRestxml_serializeDocumentTargetGrants(v []types.TargetGrant, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -12185,13 +11366,8 @@ func awsRestxml_serializeDocumentTargetGrants(v []*types.TargetGrant, value smit } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentTargetGrant(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentTargetGrant(&v[i], am); err != nil { return err } } @@ -12251,20 +11427,15 @@ func awsRestxml_serializeDocumentTopicConfiguration(v *types.TopicConfiguration, return nil } -func awsRestxml_serializeDocumentTopicConfigurationList(v []*types.TopicConfiguration, value smithyxml.Value) error { +func awsRestxml_serializeDocumentTopicConfigurationList(v []types.TopicConfiguration, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentTopicConfiguration(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentTopicConfiguration(&v[i], am); err != nil { return err } } @@ -12284,7 +11455,7 @@ func awsRestxml_serializeDocumentTransition(v *types.Transition, value smithyxml el := value.MemberElement(root) el.String(smithytime.FormatDateTime(*v.Date)) } - if v.Days != nil { + if v.Days != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -12293,7 +11464,7 @@ func awsRestxml_serializeDocumentTransition(v *types.Transition, value smithyxml Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.Days) + el.Integer(v.Days) } if len(v.StorageClass) > 0 { rootAttr := []smithyxml.Attr{} @@ -12309,27 +11480,22 @@ func awsRestxml_serializeDocumentTransition(v *types.Transition, value smithyxml return nil } -func awsRestxml_serializeDocumentTransitionList(v []*types.Transition, value smithyxml.Value) error { +func awsRestxml_serializeDocumentTransitionList(v []types.Transition, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentTransition(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentTransition(&v[i], am); err != nil { return err } } return nil } -func awsRestxml_serializeDocumentUserMetadata(v []*types.MetadataEntry, value smithyxml.Value) error { +func awsRestxml_serializeDocumentUserMetadata(v []types.MetadataEntry, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -12343,13 +11509,8 @@ func awsRestxml_serializeDocumentUserMetadata(v []*types.MetadataEntry, value sm } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentMetadataEntry(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentMetadataEntry(&v[i], am); err != nil { return err } } diff --git a/service/s3/types/types.go b/service/s3/types/types.go index 10b6a3f7450..eec2dee2138 100644 --- a/service/s3/types/types.go +++ b/service/s3/types/types.go @@ -16,7 +16,7 @@ type AbortIncompleteMultipartUpload struct { // Specifies the number of days after which Amazon S3 aborts an incomplete // multipart upload. - DaysAfterInitiation *int32 + DaysAfterInitiation int32 } // Configures the transfer acceleration state for an Amazon S3 bucket. For more @@ -33,7 +33,7 @@ type AccelerateConfiguration struct { type AccessControlPolicy struct { // A list of grants. - Grants []*Grant + Grants []Grant // Container for the bucket owner's display name and ID. Owner *Owner @@ -61,7 +61,7 @@ type AnalyticsAndOperator struct { Prefix *string // The list of tags to use when evaluating an AND predicate. - Tags []*Tag + Tags []Tag } // Specifies the configuration and any analyses for the analytics filter of an @@ -153,7 +153,7 @@ type BucketLifecycleConfiguration struct { // A lifecycle rule for individual objects in an Amazon S3 bucket. // // This member is required. - Rules []*LifecycleRule + Rules []LifecycleRule } // Container for logging status information. @@ -181,7 +181,7 @@ type CommonPrefix struct { type CompletedMultipartUpload struct { // Array of CompletedPart data types. - Parts []*CompletedPart + Parts []CompletedPart } // Details of the parts that were uploaded. @@ -192,7 +192,7 @@ type CompletedPart struct { // Part number that identifies the part. This is a positive integer between 1 and // 10,000. - PartNumber *int32 + PartNumber int32 } // A container for describing a condition that must be met for the specified @@ -250,7 +250,7 @@ type CORSConfiguration struct { // can add up to 100 rules to the configuration. // // This member is required. - CORSRules []*CORSRule + CORSRules []CORSRule } // Specifies a cross-origin access rule for an Amazon S3 bucket. @@ -260,25 +260,25 @@ type CORSRule struct { // HEAD, POST, and DELETE. // // This member is required. - AllowedMethods []*string + AllowedMethods []string // One or more origins you want customers to be able to access the bucket from. // // This member is required. - AllowedOrigins []*string + AllowedOrigins []string // Headers that are specified in the Access-Control-Request-Headers header. These // headers are allowed in a preflight OPTIONS request. In response to any preflight // OPTIONS request, Amazon S3 returns any requested headers that are allowed. - AllowedHeaders []*string + AllowedHeaders []string // One or more headers in the response that you want customers to be able to access // from their applications (for example, from a JavaScript XMLHttpRequest object). - ExposeHeaders []*string + ExposeHeaders []string // The time in seconds that your browser is to cache the preflight response for the // specified resource. - MaxAgeSeconds *int32 + MaxAgeSeconds int32 } // The configuration information for the bucket. @@ -296,7 +296,7 @@ type CSVInput struct { // Specifies that CSV field values may contain quoted record delimiters and such // records should be allowed. Default value is FALSE. Setting this value to TRUE // may lower performance. - AllowQuotedRecordDelimiter *bool + AllowQuotedRecordDelimiter bool // 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 @@ -372,14 +372,14 @@ type CSVOutput struct { type DefaultRetention struct { // The number of days that you want to specify for the default retention period. - Days *int32 + Days int32 // The default Object Lock retention mode you want to apply to new objects placed // in the specified bucket. Mode ObjectLockRetentionMode // The number of years that you want to specify for the default retention period. - Years *int32 + Years int32 } // Container for the objects to delete. @@ -388,11 +388,11 @@ type Delete struct { // The objects to delete. // // This member is required. - Objects []*ObjectIdentifier + Objects []ObjectIdentifier // Element to enable quiet mode for the request. When you add this element, you // must set its value to true. - Quiet *bool + Quiet bool } // Information about the deleted object. @@ -401,7 +401,7 @@ type DeletedObject struct { // Specifies whether the versioned object that was permanently deleted was (true) // or was not (false) a delete marker. In a simple DELETE, this header indicates // whether (true) or not (false) a delete marker was created. - DeleteMarker *bool + DeleteMarker bool // The version ID of the delete marker created as a result of the DELETE operation. // If you delete a specific object version, the value returned by this header is @@ -420,7 +420,7 @@ type DeleteMarkerEntry struct { // Specifies whether the object is (true) or is not (false) the latest version of // an object. - IsLatest *bool + IsLatest bool // The object key. Key *string @@ -1658,7 +1658,7 @@ type InventoryConfiguration struct { // inventory list is generated. If set to False, no inventory list is generated. // // This member is required. - IsEnabled *bool + IsEnabled bool // Specifies the schedule for generating inventory results. // @@ -1794,13 +1794,13 @@ type LifecycleExpiration struct { // Indicates the lifetime, in days, of the objects that are subject to the rule. // The value must be a non-zero positive integer. - Days *int32 + Days int32 // Indicates whether Amazon S3 will remove a delete marker with no noncurrent // versions. If set to true, the delete marker will be expired; if set to false the // policy takes no action. This cannot be specified with Days or Date in a // Lifecycle Expiration Policy. - ExpiredObjectDeleteMarker *bool + ExpiredObjectDeleteMarker bool } // A lifecycle rule for individual objects in an Amazon S3 bucket. @@ -1843,14 +1843,14 @@ type LifecycleRule struct { // versioning-enabled (or versioning is suspended), you can set this action to // request that Amazon S3 transition noncurrent object versions to a specific // storage class at a set period in the object's lifetime. - NoncurrentVersionTransitions []*NoncurrentVersionTransition + NoncurrentVersionTransitions []NoncurrentVersionTransition // Prefix identifying one or more objects to which the rule applies. This is No // longer used; use Filter instead. Prefix *string // Specifies when an Amazon S3 object transitions to a specified storage class. - Transitions []*Transition + Transitions []Transition } // This is used in a Lifecycle Rule Filter to apply a logical AND to two or more @@ -1863,7 +1863,7 @@ type LifecycleRuleAndOperator struct { // All of these tags must exist in the object's tag set in order for the rule to // apply. - Tags []*Tag + Tags []Tag } // The Filter is used to identify objects that a Lifecycle Rule applies to. A @@ -1906,7 +1906,7 @@ type LoggingEnabled struct { TargetPrefix *string // Container for granting information. - TargetGrants []*TargetGrant + TargetGrants []TargetGrant } // A metadata key-value pair to store with an object. @@ -1945,7 +1945,7 @@ type MetricsAndOperator struct { Prefix *string // The list of tags used when evaluating an AND predicate. - Tags []*Tag + Tags []Tag } // Specifies a metrics configuration for the CloudWatch request metrics (specified @@ -2019,7 +2019,7 @@ type NoncurrentVersionExpiration struct { // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent // (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) // in the Amazon Simple Storage Service Developer Guide. - NoncurrentDays *int32 + NoncurrentDays int32 } // Container for the transition rule that describes when noncurrent objects @@ -2037,7 +2037,7 @@ type NoncurrentVersionTransition struct { // Noncurrent // (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) // in the Amazon Simple Storage Service Developer Guide. - NoncurrentDays *int32 + NoncurrentDays int32 // The class of storage used to store the object. StorageClass TransitionStorageClass @@ -2049,15 +2049,15 @@ type NotificationConfiguration struct { // Describes the AWS Lambda functions to invoke and the events for which to invoke // them. - LambdaFunctionConfigurations []*LambdaFunctionConfiguration + LambdaFunctionConfigurations []LambdaFunctionConfiguration // The Amazon Simple Queue Service queues to publish messages to and the events for // which to publish messages. - QueueConfigurations []*QueueConfiguration + QueueConfigurations []QueueConfiguration // The topic to which notifications are sent and the events for which notifications // are generated. - TopicConfigurations []*TopicConfiguration + TopicConfigurations []TopicConfiguration } // Specifies object key name filtering rules. For information about key name @@ -2103,7 +2103,7 @@ type Object struct { Owner *Owner // Size in bytes of the object - Size *int64 + Size int64 // The class of storage used to store the object. StorageClass ObjectStorageClass @@ -2164,7 +2164,7 @@ type ObjectVersion struct { // Specifies whether the object is (true) or is not (false) the latest version of // an object. - IsLatest *bool + IsLatest bool // The object key. Key *string @@ -2176,7 +2176,7 @@ type ObjectVersion struct { Owner *Owner // Size in bytes of the object. - Size *int64 + Size int64 // The class of storage used to store the object. StorageClass ObjectVersionStorageClass @@ -2218,7 +2218,7 @@ type OwnershipControls struct { // The container element for an ownership control rule. // // This member is required. - Rules []*OwnershipControlsRule + Rules []OwnershipControlsRule } // The container element for an ownership control rule. @@ -2249,10 +2249,10 @@ type Part struct { // Part number identifying the part. This is a positive integer between 1 and // 10,000. - PartNumber *int32 + PartNumber int32 // Size in bytes of the uploaded part data. - Size *int64 + Size int64 } // The container element for a bucket's policy status. @@ -2260,7 +2260,7 @@ type PolicyStatus struct { // The policy status for this bucket. TRUE indicates that this bucket is public. // FALSE indicates that the bucket is not public. - IsPublic *bool + IsPublic bool } // The PublicAccessBlock configuration that you want to apply to this Amazon S3 @@ -2285,20 +2285,20 @@ type PublicAccessBlockConfiguration struct { // ACL. // // Enabling this setting doesn't affect existing policies or ACLs. - BlockPublicAcls *bool + BlockPublicAcls bool // Specifies whether Amazon S3 should block public bucket policies for this bucket. // Setting this element to TRUE causes Amazon S3 to reject calls to PUT Bucket // policy if the specified bucket policy allows public access. Enabling this // setting doesn't affect existing bucket policies. - BlockPublicPolicy *bool + BlockPublicPolicy bool // Specifies whether Amazon S3 should ignore public ACLs for this bucket and // objects in this bucket. Setting this element to TRUE causes Amazon S3 to ignore // all public ACLs on this bucket and objects in this bucket. Enabling this setting // doesn't affect the persistence of any existing ACLs and doesn't prevent new // public ACLs from being set. - IgnorePublicAcls *bool + IgnorePublicAcls bool // Specifies whether Amazon S3 should restrict public bucket policies for this // bucket. Setting this element to TRUE restricts access to this bucket to only AWS @@ -2306,7 +2306,7 @@ type PublicAccessBlockConfiguration struct { // policy. Enabling this setting doesn't affect previously stored bucket policies, // except that public and cross-account access within any public bucket policy, // including non-public delegation to specific accounts, is blocked. - RestrictPublicBuckets *bool + RestrictPublicBuckets bool } // Specifies the configuration for publishing messages to an Amazon Simple Queue @@ -2394,7 +2394,7 @@ type ReplicationConfiguration struct { // have at least one rule and can contain a maximum of 1,000 rules. // // This member is required. - Rules []*ReplicationRule + Rules []ReplicationRule } // Specifies which Amazon S3 objects to replicate and where to store the replicas. @@ -2455,7 +2455,7 @@ type ReplicationRule struct { // For more information, see Replication // (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) in the Amazon // Simple Storage Service Developer Guide. - Priority *int32 + Priority int32 // A container that describes additional filters for identifying the source objects // that you want to replicate. You can choose to enable or disable the replication @@ -2481,7 +2481,7 @@ type ReplicationRuleAndOperator struct { Prefix *string // An array of tags containing key and value pairs. - Tags []*Tag + Tags []Tag } // A filter that identifies the subset of objects to which the replication rule @@ -2530,7 +2530,7 @@ type ReplicationTime struct { type ReplicationTimeValue struct { // Contains an integer specifying time in minutes. Valid values: 15 minutes. - Minutes *int32 + Minutes int32 } // Container for Payer. @@ -2547,7 +2547,7 @@ type RestoreRequest struct { // Lifetime of the active copy in days. Do not use with restores that specify // OutputLocation. - Days *int32 + Days int32 // The optional description for the job. Description *string @@ -2594,7 +2594,7 @@ type S3KeyFilter struct { // A list of containers for the key-value pair that defines the criteria for the // filter rule. - FilterRules []*FilterRule + FilterRules []FilterRule } // Describes an Amazon S3 location that will receive the results of the restore @@ -2612,7 +2612,7 @@ type S3Location struct { Prefix *string // A list of grants that control access to the staged results. - AccessControlList []*Grant + AccessControlList []Grant // The canned ACL to apply to the restore results. CannedACL ObjectCannedACL @@ -2627,7 +2627,7 @@ type S3Location struct { Tagging *Tagging // A list of metadata to store with the restore results in S3. - UserMetadata []*MetadataEntry + UserMetadata []MetadataEntry } // Describes the parameters for Select job types. @@ -2696,7 +2696,7 @@ type ServerSideEncryptionConfiguration struct { // configuration rule. // // This member is required. - Rules []*ServerSideEncryptionRule + Rules []ServerSideEncryptionRule } // Specifies the default server-side encryption configuration. @@ -2791,7 +2791,7 @@ type Tagging struct { // A collection for a set of tags // // This member is required. - TagSet []*Tag + TagSet []Tag } // Container for granting information. @@ -2847,7 +2847,7 @@ type Transition struct { // Indicates the number of days after creation when objects are transitioned to the // specified storage class. The value must be a positive integer. - Days *int32 + Days int32 // The storage class to which you want the object to transition. StorageClass TransitionStorageClass @@ -2882,5 +2882,5 @@ type WebsiteConfiguration struct { RedirectAllRequestsTo *RedirectAllRequestsTo // Rules that define when a redirect is applied and the redirect behavior. - RoutingRules []*RoutingRule + RoutingRules []RoutingRule } diff --git a/service/s3/validators.go b/service/s3/validators.go index e755e2b5ede..cfa63de3bce 100644 --- a/service/s3/validators.go +++ b/service/s3/validators.go @@ -2258,13 +2258,13 @@ func validateCORSRule(v *types.CORSRule) error { } } -func validateCORSRules(v []*types.CORSRule) error { +func validateCORSRules(v []types.CORSRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CORSRules"} for i := range v { - if err := validateCORSRule(v[i]); err != nil { + if err := validateCORSRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2416,13 +2416,13 @@ func validateGrantee(v *types.Grantee) error { } } -func validateGrants(v []*types.Grant) error { +func validateGrants(v []types.Grant) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Grants"} for i := range v { - if err := validateGrant(v[i]); err != nil { + if err := validateGrant(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2456,9 +2456,6 @@ func validateInventoryConfiguration(v *types.InventoryConfiguration) error { if len(v.IncludedObjectVersions) == 0 { invalidParams.Add(smithy.NewErrParamRequired("IncludedObjectVersions")) } - if v.IsEnabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("IsEnabled")) - } if v.Schedule == nil { invalidParams.Add(smithy.NewErrParamRequired("Schedule")) } else if v.Schedule != nil { @@ -2595,13 +2592,13 @@ func validateLambdaFunctionConfiguration(v *types.LambdaFunctionConfiguration) e } } -func validateLambdaFunctionConfigurationList(v []*types.LambdaFunctionConfiguration) error { +func validateLambdaFunctionConfigurationList(v []types.LambdaFunctionConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LambdaFunctionConfigurationList"} for i := range v { - if err := validateLambdaFunctionConfiguration(v[i]); err != nil { + if err := validateLambdaFunctionConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2671,13 +2668,13 @@ func validateLifecycleRuleFilter(v *types.LifecycleRuleFilter) error { } } -func validateLifecycleRules(v []*types.LifecycleRule) error { +func validateLifecycleRules(v []types.LifecycleRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LifecycleRules"} for i := range v { - if err := validateLifecycleRule(v[i]); err != nil { + if err := validateLifecycleRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2830,13 +2827,13 @@ func validateObjectIdentifier(v *types.ObjectIdentifier) error { } } -func validateObjectIdentifierList(v []*types.ObjectIdentifier) error { +func validateObjectIdentifierList(v []types.ObjectIdentifier) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ObjectIdentifierList"} for i := range v { - if err := validateObjectIdentifier(v[i]); err != nil { + if err := validateObjectIdentifier(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2898,13 +2895,13 @@ func validateOwnershipControlsRule(v *types.OwnershipControlsRule) error { } } -func validateOwnershipControlsRules(v []*types.OwnershipControlsRule) error { +func validateOwnershipControlsRules(v []types.OwnershipControlsRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OwnershipControlsRules"} for i := range v { - if err := validateOwnershipControlsRule(v[i]); err != nil { + if err := validateOwnershipControlsRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2933,13 +2930,13 @@ func validateQueueConfiguration(v *types.QueueConfiguration) error { } } -func validateQueueConfigurationList(v []*types.QueueConfiguration) error { +func validateQueueConfigurationList(v []types.QueueConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "QueueConfigurationList"} for i := range v { - if err := validateQueueConfiguration(v[i]); err != nil { + if err := validateQueueConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3063,13 +3060,13 @@ func validateReplicationRuleFilter(v *types.ReplicationRuleFilter) error { } } -func validateReplicationRules(v []*types.ReplicationRule) error { +func validateReplicationRules(v []types.ReplicationRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReplicationRules"} for i := range v { - if err := validateReplicationRule(v[i]); err != nil { + if err := validateReplicationRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3155,13 +3152,13 @@ func validateRoutingRule(v *types.RoutingRule) error { } } -func validateRoutingRules(v []*types.RoutingRule) error { +func validateRoutingRules(v []types.RoutingRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RoutingRules"} for i := range v { - if err := validateRoutingRule(v[i]); err != nil { + if err := validateRoutingRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3280,13 +3277,13 @@ func validateServerSideEncryptionRule(v *types.ServerSideEncryptionRule) error { } } -func validateServerSideEncryptionRules(v []*types.ServerSideEncryptionRule) error { +func validateServerSideEncryptionRules(v []types.ServerSideEncryptionRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ServerSideEncryptionRules"} for i := range v { - if err := validateServerSideEncryptionRule(v[i]); err != nil { + if err := validateServerSideEncryptionRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3420,13 +3417,13 @@ func validateTagging(v *types.Tagging) error { } } -func validateTagSet(v []*types.Tag) error { +func validateTagSet(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagSet"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3454,13 +3451,13 @@ func validateTargetGrant(v *types.TargetGrant) error { } } -func validateTargetGrants(v []*types.TargetGrant) error { +func validateTargetGrants(v []types.TargetGrant) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TargetGrants"} for i := range v { - if err := validateTargetGrant(v[i]); err != nil { + if err := validateTargetGrant(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3489,13 +3486,13 @@ func validateTopicConfiguration(v *types.TopicConfiguration) error { } } -func validateTopicConfigurationList(v []*types.TopicConfiguration) error { +func validateTopicConfigurationList(v []types.TopicConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TopicConfigurationList"} for i := range v { - if err := validateTopicConfiguration(v[i]); err != nil { + if err := validateTopicConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -5026,9 +5023,6 @@ func validateOpUploadPartCopyInput(v *UploadPartCopyInput) error { if v.CopySource == nil { invalidParams.Add(smithy.NewErrParamRequired("CopySource")) } - if v.PartNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("PartNumber")) - } if v.Key == nil { invalidParams.Add(smithy.NewErrParamRequired("Key")) } @@ -5044,9 +5038,6 @@ func validateOpUploadPartInput(v *UploadPartInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "UploadPartInput"} - if v.PartNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("PartNumber")) - } if v.Bucket == nil { invalidParams.Add(smithy.NewErrParamRequired("Bucket")) } diff --git a/service/s3control/api_op_CreateBucket.go b/service/s3control/api_op_CreateBucket.go index eb83c536014..0a37caa5e9f 100644 --- a/service/s3control/api_op_CreateBucket.go +++ b/service/s3control/api_op_CreateBucket.go @@ -111,7 +111,7 @@ type CreateBucketInput struct { // Specifies whether you want S3 Object Lock to be enabled for the new bucket. This // is not supported by Amazon S3 on Outposts buckets. - ObjectLockEnabledForBucket *bool + ObjectLockEnabledForBucket bool // The ID of the Outposts where the bucket is being created. This is required by // Amazon S3 on Outposts buckets. diff --git a/service/s3control/api_op_CreateJob.go b/service/s3control/api_op_CreateJob.go index d1d14d0691a..b53a4c05a3a 100644 --- a/service/s3control/api_op_CreateJob.go +++ b/service/s3control/api_op_CreateJob.go @@ -79,7 +79,7 @@ type CreateJobInput struct { // The numerical priority for this job. Higher numbers indicate higher priority. // // This member is required. - Priority *int32 + Priority int32 // Configuration parameters for the optional job-completion report. // @@ -95,7 +95,7 @@ type CreateJobInput struct { // Indicates whether confirmation is required before Amazon S3 runs the job. // Confirmation is only required for jobs created through the Amazon S3 console. - ConfirmationRequired *bool + ConfirmationRequired bool // A description for this job. You can use any string within the permitted length. // Descriptions don't need to be unique and can be used for multiple jobs. @@ -103,7 +103,7 @@ type CreateJobInput struct { // A set of tags to associate with the S3 Batch Operations job. This is an optional // parameter. - Tags []*types.S3Tag + Tags []types.S3Tag } type CreateJobOutput struct { diff --git a/service/s3control/api_op_GetBucket.go b/service/s3control/api_op_GetBucket.go index cd3a9b4e7c8..4f8b9b77f19 100644 --- a/service/s3control/api_op_GetBucket.go +++ b/service/s3control/api_op_GetBucket.go @@ -71,7 +71,7 @@ type GetBucketOutput struct { CreationDate *time.Time // - PublicAccessBlockEnabled *bool + PublicAccessBlockEnabled bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3control/api_op_GetBucketLifecycleConfiguration.go b/service/s3control/api_op_GetBucketLifecycleConfiguration.go index 26b6a5d4cea..e46b7fb3e45 100644 --- a/service/s3control/api_op_GetBucketLifecycleConfiguration.go +++ b/service/s3control/api_op_GetBucketLifecycleConfiguration.go @@ -97,7 +97,7 @@ type GetBucketLifecycleConfigurationInput struct { type GetBucketLifecycleConfigurationOutput struct { // Container for the lifecycle rule of the Outposts bucket. - Rules []*types.LifecycleRule + Rules []types.LifecycleRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3control/api_op_GetBucketTagging.go b/service/s3control/api_op_GetBucketTagging.go index 22e7875168a..a36e88372a5 100644 --- a/service/s3control/api_op_GetBucketTagging.go +++ b/service/s3control/api_op_GetBucketTagging.go @@ -85,7 +85,7 @@ type GetBucketTaggingOutput struct { // The tags set of the Outposts bucket. // // This member is required. - TagSet []*types.S3Tag + TagSet []types.S3Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3control/api_op_GetJobTagging.go b/service/s3control/api_op_GetJobTagging.go index c632ef6d680..b7651b92016 100644 --- a/service/s3control/api_op_GetJobTagging.go +++ b/service/s3control/api_op_GetJobTagging.go @@ -62,7 +62,7 @@ type GetJobTaggingInput struct { type GetJobTaggingOutput struct { // The set of tags associated with the S3 Batch Operations job. - Tags []*types.S3Tag + Tags []types.S3Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3control/api_op_ListAccessPoints.go b/service/s3control/api_op_ListAccessPoints.go index 5735015ed47..1dfff57d097 100644 --- a/service/s3control/api_op_ListAccessPoints.go +++ b/service/s3control/api_op_ListAccessPoints.go @@ -73,7 +73,7 @@ type ListAccessPointsInput struct { // specified bucket has more than this number of access points, then the response // will include a continuation token in the NextToken field that you can use to // retrieve the next page of access points. - MaxResults *int32 + MaxResults int32 // A continuation token. If a previous call to ListAccessPoints returned a // continuation token in the NextToken field, then providing that value here causes @@ -85,7 +85,7 @@ type ListAccessPointsOutput struct { // Contains identification and configuration information for one or more access // points associated with the specified bucket. - AccessPointList []*types.AccessPoint + AccessPointList []types.AccessPoint // If the specified bucket has more access points than can be returned in one call // to this API, this field contains a continuation token that you can provide in diff --git a/service/s3control/api_op_ListJobs.go b/service/s3control/api_op_ListJobs.go index 7753a33fcda..56caf36b944 100644 --- a/service/s3control/api_op_ListJobs.go +++ b/service/s3control/api_op_ListJobs.go @@ -65,7 +65,7 @@ type ListJobsInput struct { // response. If there are more jobs than this number, the response will include a // pagination token in the NextToken field to enable you to retrieve the next page // of results. - MaxResults *int32 + MaxResults int32 // A pagination token to request the next page of results. Use the token that // Amazon S3 returned in the NextToken element of the ListJobsResult from the @@ -76,7 +76,7 @@ type ListJobsInput struct { type ListJobsOutput struct { // The list of current jobs and jobs that have ended within the last 30 days. - Jobs []*types.JobListDescriptor + Jobs []types.JobListDescriptor // If the List Jobs request produced more than the maximum number of results, you // can pass this value into a subsequent List Jobs request in order to retrieve the diff --git a/service/s3control/api_op_ListRegionalBuckets.go b/service/s3control/api_op_ListRegionalBuckets.go index 5d9ea9f0b14..ba2ed8219e2 100644 --- a/service/s3control/api_op_ListRegionalBuckets.go +++ b/service/s3control/api_op_ListRegionalBuckets.go @@ -45,7 +45,7 @@ type ListRegionalBucketsInput struct { AccountId *string // - MaxResults *int32 + MaxResults int32 // NextToken *string @@ -62,7 +62,7 @@ type ListRegionalBucketsOutput struct { NextToken *string // - RegionalBucketList []*types.RegionalBucket + RegionalBucketList []types.RegionalBucket // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3control/api_op_PutBucketPolicy.go b/service/s3control/api_op_PutBucketPolicy.go index d330d3efeb1..6b90d7e0314 100644 --- a/service/s3control/api_op_PutBucketPolicy.go +++ b/service/s3control/api_op_PutBucketPolicy.go @@ -86,7 +86,7 @@ type PutBucketPolicyInput struct { // Set this parameter to true to confirm that you want to remove your permissions // to change this bucket policy in the future. This is not supported by Amazon S3 // on Outposts buckets. - ConfirmRemoveSelfBucketAccess *bool + ConfirmRemoveSelfBucketAccess bool } type PutBucketPolicyOutput struct { diff --git a/service/s3control/api_op_PutJobTagging.go b/service/s3control/api_op_PutJobTagging.go index af1244dc520..413f5b03b56 100644 --- a/service/s3control/api_op_PutJobTagging.go +++ b/service/s3control/api_op_PutJobTagging.go @@ -103,7 +103,7 @@ type PutJobTaggingInput struct { // The set of tags to associate with the S3 Batch Operations job. // // This member is required. - Tags []*types.S3Tag + Tags []types.S3Tag } type PutJobTaggingOutput struct { diff --git a/service/s3control/api_op_UpdateJobPriority.go b/service/s3control/api_op_UpdateJobPriority.go index 3ef0fddaf0e..3575e7feb4b 100644 --- a/service/s3control/api_op_UpdateJobPriority.go +++ b/service/s3control/api_op_UpdateJobPriority.go @@ -63,7 +63,7 @@ type UpdateJobPriorityInput struct { // The priority you want to assign to this job. // // This member is required. - Priority *int32 + Priority int32 } type UpdateJobPriorityOutput struct { @@ -76,7 +76,7 @@ type UpdateJobPriorityOutput struct { // The new priority assigned to the specified job. // // This member is required. - Priority *int32 + Priority int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/s3control/deserializers.go b/service/s3control/deserializers.go index f8fa418a14b..0622e1cb2c8 100644 --- a/service/s3control/deserializers.go +++ b/service/s3control/deserializers.go @@ -154,7 +154,7 @@ func awsRestxml_deserializeOpDocumentCreateAccessPointOutput(v **CreateAccessPoi } if val != nil { xtv := string(val) - sv.AccessPointArn = &xtv + sv.AccessPointArn = ptr.String(xtv) } default: @@ -322,7 +322,7 @@ func awsRestxml_deserializeOpDocumentCreateBucketOutput(v **CreateBucketOutput, } if val != nil { xtv := string(val) - sv.BucketArn = &xtv + sv.BucketArn = ptr.String(xtv) } default: @@ -479,7 +479,7 @@ func awsRestxml_deserializeOpDocumentCreateJobOutput(v **CreateJobOutput, decode } if val != nil { xtv := string(val) - sv.JobId = &xtv + sv.JobId = ptr.String(xtv) } default: @@ -1332,7 +1332,7 @@ func awsRestxml_deserializeOpDocumentGetAccessPointOutput(v **GetAccessPointOutp } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("CreationDate", t.Name.Local): @@ -1349,7 +1349,7 @@ func awsRestxml_deserializeOpDocumentGetAccessPointOutput(v **GetAccessPointOutp if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case strings.EqualFold("Name", t.Name.Local): @@ -1365,7 +1365,7 @@ func awsRestxml_deserializeOpDocumentGetAccessPointOutput(v **GetAccessPointOutp } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("NetworkOrigin", t.Name.Local): @@ -1535,7 +1535,7 @@ func awsRestxml_deserializeOpDocumentGetAccessPointPolicyOutput(v **GetAccessPoi } if val != nil { xtv := string(val) - sv.Policy = &xtv + sv.Policy = ptr.String(xtv) } default: @@ -1815,7 +1815,7 @@ func awsRestxml_deserializeOpDocumentGetBucketOutput(v **GetBucketOutput, decode } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("CreationDate", t.Name.Local): @@ -1832,7 +1832,7 @@ func awsRestxml_deserializeOpDocumentGetBucketOutput(v **GetBucketOutput, decode if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case strings.EqualFold("PublicAccessBlockEnabled", t.Name.Local): @@ -1848,7 +1848,7 @@ func awsRestxml_deserializeOpDocumentGetBucketOutput(v **GetBucketOutput, decode if err != nil { return fmt.Errorf("expected PublicAccessBlockEnabled to be of type *bool, got %T instead", val) } - sv.PublicAccessBlockEnabled = &xtv + sv.PublicAccessBlockEnabled = xtv } default: @@ -2128,7 +2128,7 @@ func awsRestxml_deserializeOpDocumentGetBucketPolicyOutput(v **GetBucketPolicyOu } if val != nil { xtv := string(val) - sv.Policy = &xtv + sv.Policy = ptr.String(xtv) } default: @@ -2696,7 +2696,7 @@ func awsRestxml_deserializeOpDocumentListAccessPointsOutput(v **ListAccessPoints } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -2856,7 +2856,7 @@ func awsRestxml_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, decoder } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -3001,7 +3001,7 @@ func awsRestxml_deserializeOpDocumentListRegionalBucketsOutput(v **ListRegionalB } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("RegionalBucketList", t.Name.Local): @@ -3590,7 +3590,7 @@ func awsRestxml_deserializeOpDocumentUpdateJobPriorityOutput(v **UpdateJobPriori } if val != nil { xtv := string(val) - sv.JobId = &xtv + sv.JobId = ptr.String(xtv) } case strings.EqualFold("Priority", t.Name.Local): @@ -3607,7 +3607,7 @@ func awsRestxml_deserializeOpDocumentUpdateJobPriorityOutput(v **UpdateJobPriori if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } default: @@ -3767,7 +3767,7 @@ func awsRestxml_deserializeOpDocumentUpdateJobStatusOutput(v **UpdateJobStatusOu } if val != nil { xtv := string(val) - sv.JobId = &xtv + sv.JobId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -3796,7 +3796,7 @@ func awsRestxml_deserializeOpDocumentUpdateJobStatusOutput(v **UpdateJobStatusOu } if val != nil { xtv := string(val) - sv.StatusUpdateReason = &xtv + sv.StatusUpdateReason = ptr.String(xtv) } default: @@ -4185,7 +4185,7 @@ func awsRestxml_deserializeDocumentAbortIncompleteMultipartUpload(v **types.Abor if err != nil { return err } - sv.DaysAfterInitiation = ptr.Int32(int32(i64)) + sv.DaysAfterInitiation = int32(i64) } default: @@ -4233,7 +4233,7 @@ func awsRestxml_deserializeDocumentAccessPoint(v **types.AccessPoint, decoder sm } if val != nil { xtv := string(val) - sv.AccessPointArn = &xtv + sv.AccessPointArn = ptr.String(xtv) } case strings.EqualFold("Bucket", t.Name.Local): @@ -4249,7 +4249,7 @@ func awsRestxml_deserializeDocumentAccessPoint(v **types.AccessPoint, decoder sm } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -4265,7 +4265,7 @@ func awsRestxml_deserializeDocumentAccessPoint(v **types.AccessPoint, decoder sm } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("NetworkOrigin", t.Name.Local): @@ -4297,13 +4297,13 @@ func awsRestxml_deserializeDocumentAccessPoint(v **types.AccessPoint, decoder sm return nil } -func awsRestxml_deserializeDocumentAccessPointList(v *[]*types.AccessPoint, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentAccessPointList(v *[]types.AccessPoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.AccessPoint + var sv []types.AccessPoint if *v == nil { - sv = make([]*types.AccessPoint, 0) + sv = make([]types.AccessPoint, 0) } else { sv = *v } @@ -4319,11 +4319,13 @@ func awsRestxml_deserializeDocumentAccessPointList(v *[]*types.AccessPoint, deco } for { if strings.EqualFold("AccessPoint", t.Name.Local) { - var col *types.AccessPoint + var col types.AccessPoint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentAccessPoint(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentAccessPoint(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -4336,23 +4338,25 @@ func awsRestxml_deserializeDocumentAccessPointList(v *[]*types.AccessPoint, deco return nil } -func awsRestxml_deserializeDocumentAccessPointListUnwrapped(v *[]*types.AccessPoint, decoder smithyxml.NodeDecoder) error { - var sv []*types.AccessPoint +func awsRestxml_deserializeDocumentAccessPointListUnwrapped(v *[]types.AccessPoint, decoder smithyxml.NodeDecoder) error { + var sv []types.AccessPoint if *v == nil { - sv = make([]*types.AccessPoint, 0) + sv = make([]types.AccessPoint, 0) } else { sv = *v } switch { default: - var mv *types.AccessPoint + var mv types.AccessPoint t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentAccessPoint(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentAccessPoint(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -4393,7 +4397,7 @@ func awsRestxml_deserializeDocumentBadRequestException(v **types.BadRequestExcep } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4505,7 +4509,7 @@ func awsRestxml_deserializeDocumentIdempotencyException(v **types.IdempotencyExc } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4553,7 +4557,7 @@ func awsRestxml_deserializeDocumentInternalServiceException(v **types.InternalSe } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4601,7 +4605,7 @@ func awsRestxml_deserializeDocumentInvalidNextTokenException(v **types.InvalidNe } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4649,7 +4653,7 @@ func awsRestxml_deserializeDocumentInvalidRequestException(v **types.InvalidRequ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4697,7 +4701,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode if err != nil { return fmt.Errorf("expected ConfirmationRequired to be of type *bool, got %T instead", val) } - sv.ConfirmationRequired = &xtv + sv.ConfirmationRequired = xtv } case strings.EqualFold("CreationTime", t.Name.Local): @@ -4714,7 +4718,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -4730,7 +4734,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("FailureReasons", t.Name.Local): @@ -4752,7 +4756,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } if val != nil { xtv := string(val) - sv.JobArn = &xtv + sv.JobArn = ptr.String(xtv) } case strings.EqualFold("JobId", t.Name.Local): @@ -4768,7 +4772,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } if val != nil { xtv := string(val) - sv.JobId = &xtv + sv.JobId = ptr.String(xtv) } case strings.EqualFold("Manifest", t.Name.Local): @@ -4797,7 +4801,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case strings.EqualFold("ProgressSummary", t.Name.Local): @@ -4825,7 +4829,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } if val != nil { xtv := string(val) - sv.RoleArn = &xtv + sv.RoleArn = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -4854,7 +4858,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } if val != nil { xtv := string(val) - sv.StatusUpdateReason = &xtv + sv.StatusUpdateReason = ptr.String(xtv) } case strings.EqualFold("SuspendedCause", t.Name.Local): @@ -4870,7 +4874,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode } if val != nil { xtv := string(val) - sv.SuspendedCause = &xtv + sv.SuspendedCause = ptr.String(xtv) } case strings.EqualFold("SuspendedDate", t.Name.Local): @@ -4887,7 +4891,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode if err != nil { return err } - sv.SuspendedDate = &t + sv.SuspendedDate = ptr.Time(t) } case strings.EqualFold("TerminationDate", t.Name.Local): @@ -4904,7 +4908,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode if err != nil { return err } - sv.TerminationDate = &t + sv.TerminationDate = ptr.Time(t) } default: @@ -4952,7 +4956,7 @@ func awsRestxml_deserializeDocumentJobFailure(v **types.JobFailure, decoder smit } if val != nil { xtv := string(val) - sv.FailureCode = &xtv + sv.FailureCode = ptr.String(xtv) } case strings.EqualFold("FailureReason", t.Name.Local): @@ -4968,7 +4972,7 @@ func awsRestxml_deserializeDocumentJobFailure(v **types.JobFailure, decoder smit } if val != nil { xtv := string(val) - sv.FailureReason = &xtv + sv.FailureReason = ptr.String(xtv) } default: @@ -4981,13 +4985,13 @@ func awsRestxml_deserializeDocumentJobFailure(v **types.JobFailure, decoder smit return nil } -func awsRestxml_deserializeDocumentJobFailureList(v *[]*types.JobFailure, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentJobFailureList(v *[]types.JobFailure, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.JobFailure + var sv []types.JobFailure if *v == nil { - sv = make([]*types.JobFailure, 0) + sv = make([]types.JobFailure, 0) } else { sv = *v } @@ -5003,11 +5007,13 @@ func awsRestxml_deserializeDocumentJobFailureList(v *[]*types.JobFailure, decode } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.JobFailure + var col types.JobFailure nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentJobFailure(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentJobFailure(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5020,23 +5026,25 @@ func awsRestxml_deserializeDocumentJobFailureList(v *[]*types.JobFailure, decode return nil } -func awsRestxml_deserializeDocumentJobFailureListUnwrapped(v *[]*types.JobFailure, decoder smithyxml.NodeDecoder) error { - var sv []*types.JobFailure +func awsRestxml_deserializeDocumentJobFailureListUnwrapped(v *[]types.JobFailure, decoder smithyxml.NodeDecoder) error { + var sv []types.JobFailure if *v == nil { - sv = make([]*types.JobFailure, 0) + sv = make([]types.JobFailure, 0) } else { sv = *v } switch { default: - var mv *types.JobFailure + var mv types.JobFailure t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentJobFailure(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentJobFailure(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5078,7 +5086,7 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor if err != nil { return err } - sv.CreationTime = &t + sv.CreationTime = ptr.Time(t) } case strings.EqualFold("Description", t.Name.Local): @@ -5094,7 +5102,7 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor } if val != nil { xtv := string(val) - sv.Description = &xtv + sv.Description = ptr.String(xtv) } case strings.EqualFold("JobId", t.Name.Local): @@ -5110,7 +5118,7 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor } if val != nil { xtv := string(val) - sv.JobId = &xtv + sv.JobId = ptr.String(xtv) } case strings.EqualFold("Operation", t.Name.Local): @@ -5140,7 +5148,7 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case strings.EqualFold("ProgressSummary", t.Name.Local): @@ -5176,7 +5184,7 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor if err != nil { return err } - sv.TerminationDate = &t + sv.TerminationDate = ptr.Time(t) } default: @@ -5189,13 +5197,13 @@ func awsRestxml_deserializeDocumentJobListDescriptor(v **types.JobListDescriptor return nil } -func awsRestxml_deserializeDocumentJobListDescriptorList(v *[]*types.JobListDescriptor, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentJobListDescriptorList(v *[]types.JobListDescriptor, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.JobListDescriptor + var sv []types.JobListDescriptor if *v == nil { - sv = make([]*types.JobListDescriptor, 0) + sv = make([]types.JobListDescriptor, 0) } else { sv = *v } @@ -5211,11 +5219,13 @@ func awsRestxml_deserializeDocumentJobListDescriptorList(v *[]*types.JobListDesc } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.JobListDescriptor + var col types.JobListDescriptor nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentJobListDescriptor(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentJobListDescriptor(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5228,23 +5238,25 @@ func awsRestxml_deserializeDocumentJobListDescriptorList(v *[]*types.JobListDesc return nil } -func awsRestxml_deserializeDocumentJobListDescriptorListUnwrapped(v *[]*types.JobListDescriptor, decoder smithyxml.NodeDecoder) error { - var sv []*types.JobListDescriptor +func awsRestxml_deserializeDocumentJobListDescriptorListUnwrapped(v *[]types.JobListDescriptor, decoder smithyxml.NodeDecoder) error { + var sv []types.JobListDescriptor if *v == nil { - sv = make([]*types.JobListDescriptor, 0) + sv = make([]types.JobListDescriptor, 0) } else { sv = *v } switch { default: - var mv *types.JobListDescriptor + var mv types.JobListDescriptor t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentJobListDescriptor(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentJobListDescriptor(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5405,7 +5417,7 @@ func awsRestxml_deserializeDocumentJobManifestLocation(v **types.JobManifestLoca } if val != nil { xtv := string(val) - sv.ETag = &xtv + sv.ETag = ptr.String(xtv) } case strings.EqualFold("ObjectArn", t.Name.Local): @@ -5421,7 +5433,7 @@ func awsRestxml_deserializeDocumentJobManifestLocation(v **types.JobManifestLoca } if val != nil { xtv := string(val) - sv.ObjectArn = &xtv + sv.ObjectArn = ptr.String(xtv) } case strings.EqualFold("ObjectVersionId", t.Name.Local): @@ -5437,7 +5449,7 @@ func awsRestxml_deserializeDocumentJobManifestLocation(v **types.JobManifestLoca } if val != nil { xtv := string(val) - sv.ObjectVersionId = &xtv + sv.ObjectVersionId = ptr.String(xtv) } default: @@ -5611,7 +5623,7 @@ func awsRestxml_deserializeDocumentJobProgressSummary(v **types.JobProgressSumma if err != nil { return err } - sv.NumberOfTasksFailed = &i64 + sv.NumberOfTasksFailed = i64 } case strings.EqualFold("NumberOfTasksSucceeded", t.Name.Local): @@ -5628,7 +5640,7 @@ func awsRestxml_deserializeDocumentJobProgressSummary(v **types.JobProgressSumma if err != nil { return err } - sv.NumberOfTasksSucceeded = &i64 + sv.NumberOfTasksSucceeded = i64 } case strings.EqualFold("TotalNumberOfTasks", t.Name.Local): @@ -5645,7 +5657,7 @@ func awsRestxml_deserializeDocumentJobProgressSummary(v **types.JobProgressSumma if err != nil { return err } - sv.TotalNumberOfTasks = &i64 + sv.TotalNumberOfTasks = i64 } default: @@ -5693,7 +5705,7 @@ func awsRestxml_deserializeDocumentJobReport(v **types.JobReport, decoder smithy } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("Enabled", t.Name.Local): @@ -5709,7 +5721,7 @@ func awsRestxml_deserializeDocumentJobReport(v **types.JobReport, decoder smithy if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } case strings.EqualFold("Format", t.Name.Local): @@ -5738,7 +5750,7 @@ func awsRestxml_deserializeDocumentJobReport(v **types.JobReport, decoder smithy } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("ReportScope", t.Name.Local): @@ -5799,7 +5811,7 @@ func awsRestxml_deserializeDocumentJobStatusException(v **types.JobStatusExcepti } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5847,7 +5859,7 @@ func awsRestxml_deserializeDocumentLambdaInvokeOperation(v **types.LambdaInvokeO } if val != nil { xtv := string(val) - sv.FunctionArn = &xtv + sv.FunctionArn = ptr.String(xtv) } default: @@ -5896,7 +5908,7 @@ func awsRestxml_deserializeDocumentLifecycleExpiration(v **types.LifecycleExpira if err != nil { return err } - sv.Date = &t + sv.Date = ptr.Time(t) } case strings.EqualFold("Days", t.Name.Local): @@ -5913,7 +5925,7 @@ func awsRestxml_deserializeDocumentLifecycleExpiration(v **types.LifecycleExpira if err != nil { return err } - sv.Days = ptr.Int32(int32(i64)) + sv.Days = int32(i64) } case strings.EqualFold("ExpiredObjectDeleteMarker", t.Name.Local): @@ -5929,7 +5941,7 @@ func awsRestxml_deserializeDocumentLifecycleExpiration(v **types.LifecycleExpira if err != nil { return fmt.Errorf("expected ExpiredObjectDeleteMarker to be of type *bool, got %T instead", val) } - sv.ExpiredObjectDeleteMarker = &xtv + sv.ExpiredObjectDeleteMarker = xtv } default: @@ -5995,7 +6007,7 @@ func awsRestxml_deserializeDocumentLifecycleRule(v **types.LifecycleRule, decode } if val != nil { xtv := string(val) - sv.ID = &xtv + sv.ID = ptr.String(xtv) } case strings.EqualFold("NoncurrentVersionExpiration", t.Name.Local): @@ -6074,7 +6086,7 @@ func awsRestxml_deserializeDocumentLifecycleRuleAndOperator(v **types.LifecycleR } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("Tags", t.Name.Local): @@ -6134,7 +6146,7 @@ func awsRestxml_deserializeDocumentLifecycleRuleFilter(v **types.LifecycleRuleFi } if val != nil { xtv := string(val) - sv.Prefix = &xtv + sv.Prefix = ptr.String(xtv) } case strings.EqualFold("Tag", t.Name.Local): @@ -6153,13 +6165,13 @@ func awsRestxml_deserializeDocumentLifecycleRuleFilter(v **types.LifecycleRuleFi return nil } -func awsRestxml_deserializeDocumentLifecycleRules(v *[]*types.LifecycleRule, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentLifecycleRules(v *[]types.LifecycleRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.LifecycleRule + var sv []types.LifecycleRule if *v == nil { - sv = make([]*types.LifecycleRule, 0) + sv = make([]types.LifecycleRule, 0) } else { sv = *v } @@ -6175,11 +6187,13 @@ func awsRestxml_deserializeDocumentLifecycleRules(v *[]*types.LifecycleRule, dec } for { if strings.EqualFold("Rule", t.Name.Local) { - var col *types.LifecycleRule + var col types.LifecycleRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLifecycleRule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentLifecycleRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6192,23 +6206,25 @@ func awsRestxml_deserializeDocumentLifecycleRules(v *[]*types.LifecycleRule, dec return nil } -func awsRestxml_deserializeDocumentLifecycleRulesUnwrapped(v *[]*types.LifecycleRule, decoder smithyxml.NodeDecoder) error { - var sv []*types.LifecycleRule +func awsRestxml_deserializeDocumentLifecycleRulesUnwrapped(v *[]types.LifecycleRule, decoder smithyxml.NodeDecoder) error { + var sv []types.LifecycleRule if *v == nil { - sv = make([]*types.LifecycleRule, 0) + sv = make([]types.LifecycleRule, 0) } else { sv = *v } switch { default: - var mv *types.LifecycleRule + var mv types.LifecycleRule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLifecycleRule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentLifecycleRule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6250,7 +6266,7 @@ func awsRestxml_deserializeDocumentNoncurrentVersionExpiration(v **types.Noncurr if err != nil { return err } - sv.NoncurrentDays = ptr.Int32(int32(i64)) + sv.NoncurrentDays = int32(i64) } default: @@ -6299,7 +6315,7 @@ func awsRestxml_deserializeDocumentNoncurrentVersionTransition(v **types.Noncurr if err != nil { return err } - sv.NoncurrentDays = ptr.Int32(int32(i64)) + sv.NoncurrentDays = int32(i64) } case strings.EqualFold("StorageClass", t.Name.Local): @@ -6325,13 +6341,13 @@ func awsRestxml_deserializeDocumentNoncurrentVersionTransition(v **types.Noncurr return nil } -func awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(v *[]*types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(v *[]types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.NoncurrentVersionTransition + var sv []types.NoncurrentVersionTransition if *v == nil { - sv = make([]*types.NoncurrentVersionTransition, 0) + sv = make([]types.NoncurrentVersionTransition, 0) } else { sv = *v } @@ -6347,11 +6363,13 @@ func awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(v *[]*types.N } for { if strings.EqualFold("NoncurrentVersionTransition", t.Name.Local) { - var col *types.NoncurrentVersionTransition + var col types.NoncurrentVersionTransition nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentNoncurrentVersionTransition(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentNoncurrentVersionTransition(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6364,23 +6382,25 @@ func awsRestxml_deserializeDocumentNoncurrentVersionTransitionList(v *[]*types.N return nil } -func awsRestxml_deserializeDocumentNoncurrentVersionTransitionListUnwrapped(v *[]*types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { - var sv []*types.NoncurrentVersionTransition +func awsRestxml_deserializeDocumentNoncurrentVersionTransitionListUnwrapped(v *[]types.NoncurrentVersionTransition, decoder smithyxml.NodeDecoder) error { + var sv []types.NoncurrentVersionTransition if *v == nil { - sv = make([]*types.NoncurrentVersionTransition, 0) + sv = make([]types.NoncurrentVersionTransition, 0) } else { sv = *v } switch { default: - var mv *types.NoncurrentVersionTransition + var mv types.NoncurrentVersionTransition t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentNoncurrentVersionTransition(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentNoncurrentVersionTransition(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6421,7 +6441,7 @@ func awsRestxml_deserializeDocumentNoSuchPublicAccessBlockConfiguration(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6469,7 +6489,7 @@ func awsRestxml_deserializeDocumentNotFoundException(v **types.NotFoundException } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6517,7 +6537,7 @@ func awsRestxml_deserializeDocumentPolicyStatus(v **types.PolicyStatus, decoder if err != nil { return fmt.Errorf("expected IsPublic to be of type *bool, got %T instead", val) } - sv.IsPublic = &xtv + sv.IsPublic = xtv } default: @@ -6565,7 +6585,7 @@ func awsRestxml_deserializeDocumentPublicAccessBlockConfiguration(v **types.Publ if err != nil { return fmt.Errorf("expected Setting to be of type *bool, got %T instead", val) } - sv.BlockPublicAcls = &xtv + sv.BlockPublicAcls = xtv } case strings.EqualFold("BlockPublicPolicy", t.Name.Local): @@ -6581,7 +6601,7 @@ func awsRestxml_deserializeDocumentPublicAccessBlockConfiguration(v **types.Publ if err != nil { return fmt.Errorf("expected Setting to be of type *bool, got %T instead", val) } - sv.BlockPublicPolicy = &xtv + sv.BlockPublicPolicy = xtv } case strings.EqualFold("IgnorePublicAcls", t.Name.Local): @@ -6597,7 +6617,7 @@ func awsRestxml_deserializeDocumentPublicAccessBlockConfiguration(v **types.Publ if err != nil { return fmt.Errorf("expected Setting to be of type *bool, got %T instead", val) } - sv.IgnorePublicAcls = &xtv + sv.IgnorePublicAcls = xtv } case strings.EqualFold("RestrictPublicBuckets", t.Name.Local): @@ -6613,7 +6633,7 @@ func awsRestxml_deserializeDocumentPublicAccessBlockConfiguration(v **types.Publ if err != nil { return fmt.Errorf("expected Setting to be of type *bool, got %T instead", val) } - sv.RestrictPublicBuckets = &xtv + sv.RestrictPublicBuckets = xtv } default: @@ -6661,7 +6681,7 @@ func awsRestxml_deserializeDocumentRegionalBucket(v **types.RegionalBucket, deco } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("BucketArn", t.Name.Local): @@ -6677,7 +6697,7 @@ func awsRestxml_deserializeDocumentRegionalBucket(v **types.RegionalBucket, deco } if val != nil { xtv := string(val) - sv.BucketArn = &xtv + sv.BucketArn = ptr.String(xtv) } case strings.EqualFold("CreationDate", t.Name.Local): @@ -6694,7 +6714,7 @@ func awsRestxml_deserializeDocumentRegionalBucket(v **types.RegionalBucket, deco if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case strings.EqualFold("OutpostId", t.Name.Local): @@ -6710,7 +6730,7 @@ func awsRestxml_deserializeDocumentRegionalBucket(v **types.RegionalBucket, deco } if val != nil { xtv := string(val) - sv.OutpostId = &xtv + sv.OutpostId = ptr.String(xtv) } case strings.EqualFold("PublicAccessBlockEnabled", t.Name.Local): @@ -6726,7 +6746,7 @@ func awsRestxml_deserializeDocumentRegionalBucket(v **types.RegionalBucket, deco if err != nil { return fmt.Errorf("expected PublicAccessBlockEnabled to be of type *bool, got %T instead", val) } - sv.PublicAccessBlockEnabled = &xtv + sv.PublicAccessBlockEnabled = xtv } default: @@ -6739,13 +6759,13 @@ func awsRestxml_deserializeDocumentRegionalBucket(v **types.RegionalBucket, deco return nil } -func awsRestxml_deserializeDocumentRegionalBucketList(v *[]*types.RegionalBucket, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentRegionalBucketList(v *[]types.RegionalBucket, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.RegionalBucket + var sv []types.RegionalBucket if *v == nil { - sv = make([]*types.RegionalBucket, 0) + sv = make([]types.RegionalBucket, 0) } else { sv = *v } @@ -6761,11 +6781,13 @@ func awsRestxml_deserializeDocumentRegionalBucketList(v *[]*types.RegionalBucket } for { if strings.EqualFold("RegionalBucket", t.Name.Local) { - var col *types.RegionalBucket + var col types.RegionalBucket nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentRegionalBucket(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentRegionalBucket(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6778,23 +6800,25 @@ func awsRestxml_deserializeDocumentRegionalBucketList(v *[]*types.RegionalBucket return nil } -func awsRestxml_deserializeDocumentRegionalBucketListUnwrapped(v *[]*types.RegionalBucket, decoder smithyxml.NodeDecoder) error { - var sv []*types.RegionalBucket +func awsRestxml_deserializeDocumentRegionalBucketListUnwrapped(v *[]types.RegionalBucket, decoder smithyxml.NodeDecoder) error { + var sv []types.RegionalBucket if *v == nil { - sv = make([]*types.RegionalBucket, 0) + sv = make([]types.RegionalBucket, 0) } else { sv = *v } switch { default: - var mv *types.RegionalBucket + var mv types.RegionalBucket t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentRegionalBucket(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentRegionalBucket(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6963,7 +6987,7 @@ func awsRestxml_deserializeDocumentS3CopyObjectOperation(v **types.S3CopyObjectO if err != nil { return err } - sv.ModifiedSinceConstraint = &t + sv.ModifiedSinceConstraint = ptr.Time(t) } case strings.EqualFold("NewObjectMetadata", t.Name.Local): @@ -7018,7 +7042,7 @@ func awsRestxml_deserializeDocumentS3CopyObjectOperation(v **types.S3CopyObjectO if err != nil { return err } - sv.ObjectLockRetainUntilDate = &t + sv.ObjectLockRetainUntilDate = ptr.Time(t) } case strings.EqualFold("RedirectLocation", t.Name.Local): @@ -7034,7 +7058,7 @@ func awsRestxml_deserializeDocumentS3CopyObjectOperation(v **types.S3CopyObjectO } if val != nil { xtv := string(val) - sv.RedirectLocation = &xtv + sv.RedirectLocation = ptr.String(xtv) } case strings.EqualFold("RequesterPays", t.Name.Local): @@ -7050,7 +7074,7 @@ func awsRestxml_deserializeDocumentS3CopyObjectOperation(v **types.S3CopyObjectO if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.RequesterPays = &xtv + sv.RequesterPays = xtv } case strings.EqualFold("SSEAwsKmsKeyId", t.Name.Local): @@ -7066,7 +7090,7 @@ func awsRestxml_deserializeDocumentS3CopyObjectOperation(v **types.S3CopyObjectO } if val != nil { xtv := string(val) - sv.SSEAwsKmsKeyId = &xtv + sv.SSEAwsKmsKeyId = ptr.String(xtv) } case strings.EqualFold("StorageClass", t.Name.Local): @@ -7095,7 +7119,7 @@ func awsRestxml_deserializeDocumentS3CopyObjectOperation(v **types.S3CopyObjectO } if val != nil { xtv := string(val) - sv.TargetKeyPrefix = &xtv + sv.TargetKeyPrefix = ptr.String(xtv) } case strings.EqualFold("TargetResource", t.Name.Local): @@ -7111,7 +7135,7 @@ func awsRestxml_deserializeDocumentS3CopyObjectOperation(v **types.S3CopyObjectO } if val != nil { xtv := string(val) - sv.TargetResource = &xtv + sv.TargetResource = ptr.String(xtv) } case strings.EqualFold("UnModifiedSinceConstraint", t.Name.Local): @@ -7128,7 +7152,7 @@ func awsRestxml_deserializeDocumentS3CopyObjectOperation(v **types.S3CopyObjectO if err != nil { return err } - sv.UnModifiedSinceConstraint = &t + sv.UnModifiedSinceConstraint = ptr.Time(t) } default: @@ -7227,7 +7251,7 @@ func awsRestxml_deserializeDocumentS3Grantee(v **types.S3Grantee, decoder smithy } if val != nil { xtv := string(val) - sv.DisplayName = &xtv + sv.DisplayName = ptr.String(xtv) } case strings.EqualFold("Identifier", t.Name.Local): @@ -7243,7 +7267,7 @@ func awsRestxml_deserializeDocumentS3Grantee(v **types.S3Grantee, decoder smithy } if val != nil { xtv := string(val) - sv.Identifier = &xtv + sv.Identifier = ptr.String(xtv) } case strings.EqualFold("TypeIdentifier", t.Name.Local): @@ -7269,13 +7293,13 @@ func awsRestxml_deserializeDocumentS3Grantee(v **types.S3Grantee, decoder smithy return nil } -func awsRestxml_deserializeDocumentS3GrantList(v *[]*types.S3Grant, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentS3GrantList(v *[]types.S3Grant, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.S3Grant + var sv []types.S3Grant if *v == nil { - sv = make([]*types.S3Grant, 0) + sv = make([]types.S3Grant, 0) } else { sv = *v } @@ -7291,11 +7315,13 @@ func awsRestxml_deserializeDocumentS3GrantList(v *[]*types.S3Grant, decoder smit } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.S3Grant + var col types.S3Grant nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3Grant(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentS3Grant(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -7308,23 +7334,25 @@ func awsRestxml_deserializeDocumentS3GrantList(v *[]*types.S3Grant, decoder smit return nil } -func awsRestxml_deserializeDocumentS3GrantListUnwrapped(v *[]*types.S3Grant, decoder smithyxml.NodeDecoder) error { - var sv []*types.S3Grant +func awsRestxml_deserializeDocumentS3GrantListUnwrapped(v *[]types.S3Grant, decoder smithyxml.NodeDecoder) error { + var sv []types.S3Grant if *v == nil { - sv = make([]*types.S3Grant, 0) + sv = make([]types.S3Grant, 0) } else { sv = *v } switch { default: - var mv *types.S3Grant + var mv types.S3Grant t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3Grant(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentS3Grant(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -7366,7 +7394,7 @@ func awsRestxml_deserializeDocumentS3InitiateRestoreObjectOperation(v **types.S3 if err != nil { return err } - sv.ExpirationInDays = ptr.Int32(int32(i64)) + sv.ExpirationInDays = int32(i64) } case strings.EqualFold("GlacierJobTier", t.Name.Local): @@ -7472,7 +7500,7 @@ func awsRestxml_deserializeDocumentS3ObjectMetadata(v **types.S3ObjectMetadata, } if val != nil { xtv := string(val) - sv.CacheControl = &xtv + sv.CacheControl = ptr.String(xtv) } case strings.EqualFold("ContentDisposition", t.Name.Local): @@ -7488,7 +7516,7 @@ func awsRestxml_deserializeDocumentS3ObjectMetadata(v **types.S3ObjectMetadata, } if val != nil { xtv := string(val) - sv.ContentDisposition = &xtv + sv.ContentDisposition = ptr.String(xtv) } case strings.EqualFold("ContentEncoding", t.Name.Local): @@ -7504,7 +7532,7 @@ func awsRestxml_deserializeDocumentS3ObjectMetadata(v **types.S3ObjectMetadata, } if val != nil { xtv := string(val) - sv.ContentEncoding = &xtv + sv.ContentEncoding = ptr.String(xtv) } case strings.EqualFold("ContentLanguage", t.Name.Local): @@ -7520,7 +7548,7 @@ func awsRestxml_deserializeDocumentS3ObjectMetadata(v **types.S3ObjectMetadata, } if val != nil { xtv := string(val) - sv.ContentLanguage = &xtv + sv.ContentLanguage = ptr.String(xtv) } case strings.EqualFold("ContentLength", t.Name.Local): @@ -7537,7 +7565,7 @@ func awsRestxml_deserializeDocumentS3ObjectMetadata(v **types.S3ObjectMetadata, if err != nil { return err } - sv.ContentLength = &i64 + sv.ContentLength = i64 } case strings.EqualFold("ContentMD5", t.Name.Local): @@ -7553,7 +7581,7 @@ func awsRestxml_deserializeDocumentS3ObjectMetadata(v **types.S3ObjectMetadata, } if val != nil { xtv := string(val) - sv.ContentMD5 = &xtv + sv.ContentMD5 = ptr.String(xtv) } case strings.EqualFold("ContentType", t.Name.Local): @@ -7569,7 +7597,7 @@ func awsRestxml_deserializeDocumentS3ObjectMetadata(v **types.S3ObjectMetadata, } if val != nil { xtv := string(val) - sv.ContentType = &xtv + sv.ContentType = ptr.String(xtv) } case strings.EqualFold("HttpExpiresDate", t.Name.Local): @@ -7586,7 +7614,7 @@ func awsRestxml_deserializeDocumentS3ObjectMetadata(v **types.S3ObjectMetadata, if err != nil { return err } - sv.HttpExpiresDate = &t + sv.HttpExpiresDate = ptr.Time(t) } case strings.EqualFold("RequesterCharged", t.Name.Local): @@ -7602,7 +7630,7 @@ func awsRestxml_deserializeDocumentS3ObjectMetadata(v **types.S3ObjectMetadata, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.RequesterCharged = &xtv + sv.RequesterCharged = xtv } case strings.EqualFold("SSEAlgorithm", t.Name.Local): @@ -7669,7 +7697,7 @@ func awsRestxml_deserializeDocumentS3ObjectOwner(v **types.S3ObjectOwner, decode } if val != nil { xtv := string(val) - sv.DisplayName = &xtv + sv.DisplayName = ptr.String(xtv) } case strings.EqualFold("ID", t.Name.Local): @@ -7685,7 +7713,7 @@ func awsRestxml_deserializeDocumentS3ObjectOwner(v **types.S3ObjectOwner, decode } if val != nil { xtv := string(val) - sv.ID = &xtv + sv.ID = ptr.String(xtv) } default: @@ -7747,7 +7775,7 @@ func awsRestxml_deserializeDocumentS3Retention(v **types.S3Retention, decoder sm if err != nil { return err } - sv.RetainUntilDate = &t + sv.RetainUntilDate = ptr.Time(t) } default: @@ -7871,7 +7899,7 @@ func awsRestxml_deserializeDocumentS3SetObjectRetentionOperation(v **types.S3Set if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.BypassGovernanceRetention = &xtv + sv.BypassGovernanceRetention = xtv } case strings.EqualFold("Retention", t.Name.Local): @@ -7963,7 +7991,7 @@ func awsRestxml_deserializeDocumentS3Tag(v **types.S3Tag, decoder smithyxml.Node } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -7979,7 +8007,7 @@ func awsRestxml_deserializeDocumentS3Tag(v **types.S3Tag, decoder smithyxml.Node } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -7992,13 +8020,13 @@ func awsRestxml_deserializeDocumentS3Tag(v **types.S3Tag, decoder smithyxml.Node return nil } -func awsRestxml_deserializeDocumentS3TagSet(v *[]*types.S3Tag, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentS3TagSet(v *[]types.S3Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.S3Tag + var sv []types.S3Tag if *v == nil { - sv = make([]*types.S3Tag, 0) + sv = make([]types.S3Tag, 0) } else { sv = *v } @@ -8014,11 +8042,13 @@ func awsRestxml_deserializeDocumentS3TagSet(v *[]*types.S3Tag, decoder smithyxml } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.S3Tag + var col types.S3Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3Tag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentS3Tag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8031,35 +8061,37 @@ func awsRestxml_deserializeDocumentS3TagSet(v *[]*types.S3Tag, decoder smithyxml return nil } -func awsRestxml_deserializeDocumentS3TagSetUnwrapped(v *[]*types.S3Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.S3Tag +func awsRestxml_deserializeDocumentS3TagSetUnwrapped(v *[]types.S3Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.S3Tag if *v == nil { - sv = make([]*types.S3Tag, 0) + sv = make([]types.S3Tag, 0) } else { sv = *v } switch { default: - var mv *types.S3Tag + var mv types.S3Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentS3Tag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentS3Tag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsRestxml_deserializeDocumentS3UserMetadata(v *map[string]*string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentS3UserMetadata(v *map[string]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*string + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } @@ -8083,23 +8115,23 @@ func awsRestxml_deserializeDocumentS3UserMetadata(v *map[string]*string, decoder return nil } -func awsRestxml_deserializeDocumentS3UserMetadataUnwrapped(v *map[string]*string, decoder smithyxml.NodeDecoder) error { - var sv map[string]*string +func awsRestxml_deserializeDocumentS3UserMetadataUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } - var ek *string - var ev *string + var ek string + var ev string for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -8109,14 +8141,11 @@ func awsRestxml_deserializeDocumentS3UserMetadataUnwrapped(v *map[string]*string return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): @@ -8125,14 +8154,11 @@ func awsRestxml_deserializeDocumentS3UserMetadataUnwrapped(v *map[string]*string return err } if done { - if val == nil { - ev = ptr.String("") - } break } if val != nil { xtv := string(val) - ev = &xtv + ev = xtv } default: @@ -8178,7 +8204,7 @@ func awsRestxml_deserializeDocumentTooManyRequestsException(v **types.TooManyReq } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8226,7 +8252,7 @@ func awsRestxml_deserializeDocumentTooManyTagsException(v **types.TooManyTagsExc } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8275,7 +8301,7 @@ func awsRestxml_deserializeDocumentTransition(v **types.Transition, decoder smit if err != nil { return err } - sv.Date = &t + sv.Date = ptr.Time(t) } case strings.EqualFold("Days", t.Name.Local): @@ -8292,7 +8318,7 @@ func awsRestxml_deserializeDocumentTransition(v **types.Transition, decoder smit if err != nil { return err } - sv.Days = ptr.Int32(int32(i64)) + sv.Days = int32(i64) } case strings.EqualFold("StorageClass", t.Name.Local): @@ -8318,13 +8344,13 @@ func awsRestxml_deserializeDocumentTransition(v **types.Transition, decoder smit return nil } -func awsRestxml_deserializeDocumentTransitionList(v *[]*types.Transition, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTransitionList(v *[]types.Transition, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Transition + var sv []types.Transition if *v == nil { - sv = make([]*types.Transition, 0) + sv = make([]types.Transition, 0) } else { sv = *v } @@ -8340,11 +8366,13 @@ func awsRestxml_deserializeDocumentTransitionList(v *[]*types.Transition, decode } for { if strings.EqualFold("Transition", t.Name.Local) { - var col *types.Transition + var col types.Transition nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTransition(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsRestxml_deserializeDocumentTransition(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8357,23 +8385,25 @@ func awsRestxml_deserializeDocumentTransitionList(v *[]*types.Transition, decode return nil } -func awsRestxml_deserializeDocumentTransitionListUnwrapped(v *[]*types.Transition, decoder smithyxml.NodeDecoder) error { - var sv []*types.Transition +func awsRestxml_deserializeDocumentTransitionListUnwrapped(v *[]types.Transition, decoder smithyxml.NodeDecoder) error { + var sv []types.Transition if *v == nil { - sv = make([]*types.Transition, 0) + sv = make([]types.Transition, 0) } else { sv = *v } switch { default: - var mv *types.Transition + var mv types.Transition t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTransition(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsRestxml_deserializeDocumentTransition(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8414,7 +8444,7 @@ func awsRestxml_deserializeDocumentVpcConfiguration(v **types.VpcConfiguration, } if val != nil { xtv := string(val) - sv.VpcId = &xtv + sv.VpcId = ptr.String(xtv) } default: diff --git a/service/s3control/go.mod b/service/s3control/go.mod index 8f9e3a46cd4..6008cfff8c5 100644 --- a/service/s3control/go.mod +++ b/service/s3control/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/s3control go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v0.3.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v0.3.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/s3control/serializers.go b/service/s3control/serializers.go index 91d86329cf2..f8297ab690f 100644 --- a/service/s3control/serializers.go +++ b/service/s3control/serializers.go @@ -84,20 +84,15 @@ func awsRestxml_serializeOpHttpBindingsCreateAccessPointInput(v *CreateAccessPoi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -227,63 +222,48 @@ func awsRestxml_serializeOpHttpBindingsCreateBucketInput(v *CreateBucketInput, e encoder.SetHeader(locationName).String(string(v.ACL)) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.GrantFullControl != nil { + if v.GrantFullControl != nil && len(*v.GrantFullControl) > 0 { locationName := "X-Amz-Grant-Full-Control" - if len(*v.GrantFullControl) > 0 { - encoder.SetHeader(locationName).String(*v.GrantFullControl) - } + encoder.SetHeader(locationName).String(*v.GrantFullControl) } - if v.GrantRead != nil { + if v.GrantRead != nil && len(*v.GrantRead) > 0 { locationName := "X-Amz-Grant-Read" - if len(*v.GrantRead) > 0 { - encoder.SetHeader(locationName).String(*v.GrantRead) - } + encoder.SetHeader(locationName).String(*v.GrantRead) } - if v.GrantReadACP != nil { + if v.GrantReadACP != nil && len(*v.GrantReadACP) > 0 { locationName := "X-Amz-Grant-Read-Acp" - if len(*v.GrantReadACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantReadACP) - } + encoder.SetHeader(locationName).String(*v.GrantReadACP) } - if v.GrantWrite != nil { + if v.GrantWrite != nil && len(*v.GrantWrite) > 0 { locationName := "X-Amz-Grant-Write" - if len(*v.GrantWrite) > 0 { - encoder.SetHeader(locationName).String(*v.GrantWrite) - } + encoder.SetHeader(locationName).String(*v.GrantWrite) } - if v.GrantWriteACP != nil { + if v.GrantWriteACP != nil && len(*v.GrantWriteACP) > 0 { locationName := "X-Amz-Grant-Write-Acp" - if len(*v.GrantWriteACP) > 0 { - encoder.SetHeader(locationName).String(*v.GrantWriteACP) - } + encoder.SetHeader(locationName).String(*v.GrantWriteACP) } - if v.ObjectLockEnabledForBucket != nil { + if v.ObjectLockEnabledForBucket { locationName := "X-Amz-Bucket-Object-Lock-Enabled" - encoder.SetHeader(locationName).Boolean(*v.ObjectLockEnabledForBucket) + encoder.SetHeader(locationName).Boolean(v.ObjectLockEnabledForBucket) } - if v.OutpostId != nil { + if v.OutpostId != nil && len(*v.OutpostId) > 0 { locationName := "X-Amz-Outpost-Id" - if len(*v.OutpostId) > 0 { - encoder.SetHeader(locationName).String(*v.OutpostId) - } + encoder.SetHeader(locationName).String(*v.OutpostId) } return nil @@ -358,11 +338,9 @@ func awsRestxml_serializeOpHttpBindingsCreateJobInput(v *CreateJobInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } return nil @@ -381,7 +359,7 @@ func awsRestxml_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smith el := value.MemberElement(root) el.String(*v.ClientRequestToken) } - if v.ConfirmationRequired != nil { + if v.ConfirmationRequired { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -390,7 +368,7 @@ func awsRestxml_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smith Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.ConfirmationRequired) + el.Boolean(v.ConfirmationRequired) } if v.Description != nil { rootAttr := []smithyxml.Attr{} @@ -429,7 +407,7 @@ func awsRestxml_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smith return err } } - if v.Priority != nil { + if v.Priority != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -438,7 +416,7 @@ func awsRestxml_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smith Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.Priority) + el.Integer(v.Priority) } if v.Report != nil { rootAttr := []smithyxml.Attr{} @@ -531,20 +509,15 @@ func awsRestxml_serializeOpHttpBindingsDeleteAccessPointInput(v *DeleteAccessPoi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -604,20 +577,15 @@ func awsRestxml_serializeOpHttpBindingsDeleteAccessPointPolicyInput(v *DeleteAcc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -677,20 +645,15 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketInput(v *DeleteBucketInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -750,20 +713,15 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketLifecycleConfigurationInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -823,20 +781,15 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketPolicyInput(v *DeleteBucketPo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -896,20 +849,15 @@ func awsRestxml_serializeOpHttpBindingsDeleteBucketTaggingInput(v *DeleteBucketT return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -969,20 +917,15 @@ func awsRestxml_serializeOpHttpBindingsDeleteJobTaggingInput(v *DeleteJobTagging return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} - } if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { return err } @@ -1042,11 +985,9 @@ func awsRestxml_serializeOpHttpBindingsDeletePublicAccessBlockInput(v *DeletePub return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } return nil @@ -1103,20 +1044,15 @@ func awsRestxml_serializeOpHttpBindingsDescribeJobInput(v *DescribeJobInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} - } if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { return err } @@ -1176,20 +1112,15 @@ func awsRestxml_serializeOpHttpBindingsGetAccessPointInput(v *GetAccessPointInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -1249,20 +1180,15 @@ func awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyInput(v *GetAccessPoi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -1322,20 +1248,15 @@ func awsRestxml_serializeOpHttpBindingsGetAccessPointPolicyStatusInput(v *GetAcc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -1395,20 +1316,15 @@ func awsRestxml_serializeOpHttpBindingsGetBucketInput(v *GetBucketInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -1468,20 +1384,15 @@ func awsRestxml_serializeOpHttpBindingsGetBucketLifecycleConfigurationInput(v *G return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -1541,20 +1452,15 @@ func awsRestxml_serializeOpHttpBindingsGetBucketPolicyInput(v *GetBucketPolicyIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -1614,20 +1520,15 @@ func awsRestxml_serializeOpHttpBindingsGetBucketTaggingInput(v *GetBucketTagging return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -1687,20 +1588,15 @@ func awsRestxml_serializeOpHttpBindingsGetJobTaggingInput(v *GetJobTaggingInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} - } if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { return err } @@ -1760,11 +1656,9 @@ func awsRestxml_serializeOpHttpBindingsGetPublicAccessBlockInput(v *GetPublicAcc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } return nil @@ -1821,19 +1715,17 @@ func awsRestxml_serializeOpHttpBindingsListAccessPointsInput(v *ListAccessPoints return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } if v.Bucket != nil { encoder.SetQuery("bucket").String(*v.Bucket) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1894,11 +1786,9 @@ func awsRestxml_serializeOpHttpBindingsListJobsInput(v *ListJobsInput, encoder * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } if v.JobStatuses != nil { @@ -1907,8 +1797,8 @@ func awsRestxml_serializeOpHttpBindingsListJobsInput(v *ListJobsInput, encoder * } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1969,26 +1859,22 @@ func awsRestxml_serializeOpHttpBindingsListRegionalBucketsInput(v *ListRegionalB return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.OutpostId != nil { + if v.OutpostId != nil && len(*v.OutpostId) > 0 { locationName := "X-Amz-Outpost-Id" - if len(*v.OutpostId) > 0 { - encoder.SetHeader(locationName).String(*v.OutpostId) - } + encoder.SetHeader(locationName).String(*v.OutpostId) } return nil @@ -2063,20 +1949,15 @@ func awsRestxml_serializeOpHttpBindingsPutAccessPointPolicyInput(v *PutAccessPoi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -2175,20 +2056,15 @@ func awsRestxml_serializeOpHttpBindingsPutBucketLifecycleConfigurationInput(v *P return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -2266,28 +2142,23 @@ func awsRestxml_serializeOpHttpBindingsPutBucketPolicyInput(v *PutBucketPolicyIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } } - if v.ConfirmRemoveSelfBucketAccess != nil { + if v.ConfirmRemoveSelfBucketAccess { locationName := "X-Amz-Confirm-Remove-Self-Bucket-Access" - encoder.SetHeader(locationName).Boolean(*v.ConfirmRemoveSelfBucketAccess) + encoder.SetHeader(locationName).Boolean(v.ConfirmRemoveSelfBucketAccess) } return nil @@ -2383,20 +2254,15 @@ func awsRestxml_serializeOpHttpBindingsPutBucketTaggingInput(v *PutBucketTagging return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.Bucket == nil { + if v.Bucket == nil || len(*v.Bucket) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} } if v.Bucket != nil { - if len(*v.Bucket) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")} - } if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil { return err } @@ -2474,20 +2340,15 @@ func awsRestxml_serializeOpHttpBindingsPutJobTaggingInput(v *PutJobTaggingInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} - } if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { return err } @@ -2588,11 +2449,9 @@ func awsRestxml_serializeOpHttpBindingsPutPublicAccessBlockInput(v *PutPublicAcc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } return nil @@ -2649,27 +2508,22 @@ func awsRestxml_serializeOpHttpBindingsUpdateJobPriorityInput(v *UpdateJobPriori return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} - } if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { return err } } - if v.Priority != nil { - encoder.SetQuery("priority").Integer(*v.Priority) + if v.Priority != 0 { + encoder.SetQuery("priority").Integer(v.Priority) } return nil @@ -2726,20 +2580,15 @@ func awsRestxml_serializeOpHttpBindingsUpdateJobStatusInput(v *UpdateJobStatusIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccountId != nil { + if v.AccountId != nil && len(*v.AccountId) > 0 { locationName := "X-Amz-Account-Id" - if len(*v.AccountId) > 0 { - encoder.SetHeader(locationName).String(*v.AccountId) - } + encoder.SetHeader(locationName).String(*v.AccountId) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} - } if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { return err } @@ -2758,7 +2607,7 @@ func awsRestxml_serializeOpHttpBindingsUpdateJobStatusInput(v *UpdateJobStatusIn func awsRestxml_serializeDocumentAbortIncompleteMultipartUpload(v *types.AbortIncompleteMultipartUpload, value smithyxml.Value) error { defer value.Close() - if v.DaysAfterInitiation != nil { + if v.DaysAfterInitiation != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -2767,7 +2616,7 @@ func awsRestxml_serializeDocumentAbortIncompleteMultipartUpload(v *types.AbortIn Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.DaysAfterInitiation) + el.Integer(v.DaysAfterInitiation) } return nil } @@ -3008,7 +2857,7 @@ func awsRestxml_serializeDocumentJobReport(v *types.JobReport, value smithyxml.V el := value.MemberElement(root) el.String(*v.Bucket) } - if v.Enabled != nil { + if v.Enabled { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3017,7 +2866,7 @@ func awsRestxml_serializeDocumentJobReport(v *types.JobReport, value smithyxml.V Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.Enabled) + el.Boolean(v.Enabled) } if len(v.Format) > 0 { rootAttr := []smithyxml.Attr{} @@ -3102,7 +2951,7 @@ func awsRestxml_serializeDocumentLifecycleExpiration(v *types.LifecycleExpiratio el := value.MemberElement(root) el.String(smithytime.FormatDateTime(*v.Date)) } - if v.Days != nil { + if v.Days != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3111,9 +2960,9 @@ func awsRestxml_serializeDocumentLifecycleExpiration(v *types.LifecycleExpiratio Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.Days) + el.Integer(v.Days) } - if v.ExpiredObjectDeleteMarker != nil { + if v.ExpiredObjectDeleteMarker { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3122,7 +2971,7 @@ func awsRestxml_serializeDocumentLifecycleExpiration(v *types.LifecycleExpiratio Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.ExpiredObjectDeleteMarker) + el.Boolean(v.ExpiredObjectDeleteMarker) } return nil } @@ -3303,7 +3152,7 @@ func awsRestxml_serializeDocumentLifecycleRuleFilter(v *types.LifecycleRuleFilte return nil } -func awsRestxml_serializeDocumentLifecycleRules(v []*types.LifecycleRule, value smithyxml.Value) error { +func awsRestxml_serializeDocumentLifecycleRules(v []types.LifecycleRule, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -3317,13 +3166,8 @@ func awsRestxml_serializeDocumentLifecycleRules(v []*types.LifecycleRule, value } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentLifecycleRule(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentLifecycleRule(&v[i], am); err != nil { return err } } @@ -3332,7 +3176,7 @@ func awsRestxml_serializeDocumentLifecycleRules(v []*types.LifecycleRule, value func awsRestxml_serializeDocumentNoncurrentVersionExpiration(v *types.NoncurrentVersionExpiration, value smithyxml.Value) error { defer value.Close() - if v.NoncurrentDays != nil { + if v.NoncurrentDays != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3341,14 +3185,14 @@ func awsRestxml_serializeDocumentNoncurrentVersionExpiration(v *types.Noncurrent Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.NoncurrentDays) + el.Integer(v.NoncurrentDays) } return nil } func awsRestxml_serializeDocumentNoncurrentVersionTransition(v *types.NoncurrentVersionTransition, value smithyxml.Value) error { defer value.Close() - if v.NoncurrentDays != nil { + if v.NoncurrentDays != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3357,7 +3201,7 @@ func awsRestxml_serializeDocumentNoncurrentVersionTransition(v *types.Noncurrent Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.NoncurrentDays) + el.Integer(v.NoncurrentDays) } if len(v.StorageClass) > 0 { rootAttr := []smithyxml.Attr{} @@ -3373,7 +3217,7 @@ func awsRestxml_serializeDocumentNoncurrentVersionTransition(v *types.Noncurrent return nil } -func awsRestxml_serializeDocumentNoncurrentVersionTransitionList(v []*types.NoncurrentVersionTransition, value smithyxml.Value) error { +func awsRestxml_serializeDocumentNoncurrentVersionTransitionList(v []types.NoncurrentVersionTransition, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -3387,13 +3231,8 @@ func awsRestxml_serializeDocumentNoncurrentVersionTransitionList(v []*types.Nonc } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentNoncurrentVersionTransition(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentNoncurrentVersionTransition(&v[i], am); err != nil { return err } } @@ -3402,7 +3241,7 @@ func awsRestxml_serializeDocumentNoncurrentVersionTransitionList(v []*types.Nonc func awsRestxml_serializeDocumentPublicAccessBlockConfiguration(v *types.PublicAccessBlockConfiguration, value smithyxml.Value) error { defer value.Close() - if v.BlockPublicAcls != nil { + if v.BlockPublicAcls { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3411,9 +3250,9 @@ func awsRestxml_serializeDocumentPublicAccessBlockConfiguration(v *types.PublicA Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.BlockPublicAcls) + el.Boolean(v.BlockPublicAcls) } - if v.BlockPublicPolicy != nil { + if v.BlockPublicPolicy { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3422,9 +3261,9 @@ func awsRestxml_serializeDocumentPublicAccessBlockConfiguration(v *types.PublicA Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.BlockPublicPolicy) + el.Boolean(v.BlockPublicPolicy) } - if v.IgnorePublicAcls != nil { + if v.IgnorePublicAcls { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3433,9 +3272,9 @@ func awsRestxml_serializeDocumentPublicAccessBlockConfiguration(v *types.PublicA Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.IgnorePublicAcls) + el.Boolean(v.IgnorePublicAcls) } - if v.RestrictPublicBuckets != nil { + if v.RestrictPublicBuckets { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3444,7 +3283,7 @@ func awsRestxml_serializeDocumentPublicAccessBlockConfiguration(v *types.PublicA Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.RestrictPublicBuckets) + el.Boolean(v.RestrictPublicBuckets) } return nil } @@ -3627,7 +3466,7 @@ func awsRestxml_serializeDocumentS3CopyObjectOperation(v *types.S3CopyObjectOper el := value.MemberElement(root) el.String(*v.RedirectLocation) } - if v.RequesterPays != nil { + if v.RequesterPays { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3636,7 +3475,7 @@ func awsRestxml_serializeDocumentS3CopyObjectOperation(v *types.S3CopyObjectOper Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.RequesterPays) + el.Boolean(v.RequesterPays) } if v.SSEAwsKmsKeyId != nil { rootAttr := []smithyxml.Attr{} @@ -3763,20 +3602,15 @@ func awsRestxml_serializeDocumentS3Grantee(v *types.S3Grantee, value smithyxml.V return nil } -func awsRestxml_serializeDocumentS3GrantList(v []*types.S3Grant, value smithyxml.Value) error { +func awsRestxml_serializeDocumentS3GrantList(v []types.S3Grant, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentS3Grant(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentS3Grant(&v[i], am); err != nil { return err } } @@ -3785,7 +3619,7 @@ func awsRestxml_serializeDocumentS3GrantList(v []*types.S3Grant, value smithyxml func awsRestxml_serializeDocumentS3InitiateRestoreObjectOperation(v *types.S3InitiateRestoreObjectOperation, value smithyxml.Value) error { defer value.Close() - if v.ExpirationInDays != nil { + if v.ExpirationInDays != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3794,7 +3628,7 @@ func awsRestxml_serializeDocumentS3InitiateRestoreObjectOperation(v *types.S3Ini Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.ExpirationInDays) + el.Integer(v.ExpirationInDays) } if len(v.GlacierJobTier) > 0 { rootAttr := []smithyxml.Attr{} @@ -3872,7 +3706,7 @@ func awsRestxml_serializeDocumentS3ObjectMetadata(v *types.S3ObjectMetadata, val el := value.MemberElement(root) el.String(*v.ContentLanguage) } - if v.ContentLength != nil { + if v.ContentLength != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3881,7 +3715,7 @@ func awsRestxml_serializeDocumentS3ObjectMetadata(v *types.S3ObjectMetadata, val Attr: rootAttr, } el := value.MemberElement(root) - el.Long(*v.ContentLength) + el.Long(v.ContentLength) } if v.ContentMD5 != nil { rootAttr := []smithyxml.Attr{} @@ -3916,7 +3750,7 @@ func awsRestxml_serializeDocumentS3ObjectMetadata(v *types.S3ObjectMetadata, val el := value.MemberElement(root) el.String(smithytime.FormatDateTime(*v.HttpExpiresDate)) } - if v.RequesterCharged != nil { + if v.RequesterCharged { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -3925,7 +3759,7 @@ func awsRestxml_serializeDocumentS3ObjectMetadata(v *types.S3ObjectMetadata, val Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.RequesterCharged) + el.Boolean(v.RequesterCharged) } if len(v.SSEAlgorithm) > 0 { rootAttr := []smithyxml.Attr{} @@ -4046,7 +3880,7 @@ func awsRestxml_serializeDocumentS3SetObjectLegalHoldOperation(v *types.S3SetObj func awsRestxml_serializeDocumentS3SetObjectRetentionOperation(v *types.S3SetObjectRetentionOperation, value smithyxml.Value) error { defer value.Close() - if v.BypassGovernanceRetention != nil { + if v.BypassGovernanceRetention { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -4055,7 +3889,7 @@ func awsRestxml_serializeDocumentS3SetObjectRetentionOperation(v *types.S3SetObj Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(*v.BypassGovernanceRetention) + el.Boolean(v.BypassGovernanceRetention) } if v.Retention != nil { rootAttr := []smithyxml.Attr{} @@ -4118,37 +3952,28 @@ func awsRestxml_serializeDocumentS3Tag(v *types.S3Tag, value smithyxml.Value) er return nil } -func awsRestxml_serializeDocumentS3TagSet(v []*types.S3Tag, value smithyxml.Value) error { +func awsRestxml_serializeDocumentS3TagSet(v []types.S3Tag, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() } array = value.Array() for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentS3Tag(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentS3Tag(&v[i], am); err != nil { return err } } return nil } -func awsRestxml_serializeDocumentS3UserMetadata(v map[string]*string, value smithyxml.Value) error { +func awsRestxml_serializeDocumentS3UserMetadata(v map[string]string, value smithyxml.Value) error { if !value.IsFlattened() { defer value.Close() } m := value.Map() for key := range v { entry := m.Entry() - if vv := v[key]; vv == nil { - entry.Close() - continue - } keyElementAttr := []smithyxml.Attr{} keyElement := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -4156,7 +3981,7 @@ func awsRestxml_serializeDocumentS3UserMetadata(v map[string]*string, value smit }, Attr: keyElementAttr, } - entry.MemberElement(keyElement).String(*&key) + entry.MemberElement(keyElement).String(key) valueElementAttr := []smithyxml.Attr{} valueElement := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -4164,7 +3989,7 @@ func awsRestxml_serializeDocumentS3UserMetadata(v map[string]*string, value smit }, Attr: valueElementAttr, } - entry.MemberElement(valueElement).String(*v[key]) + entry.MemberElement(valueElement).String(v[key]) entry.Close() } return nil @@ -4201,7 +4026,7 @@ func awsRestxml_serializeDocumentTransition(v *types.Transition, value smithyxml el := value.MemberElement(root) el.String(smithytime.FormatDateTime(*v.Date)) } - if v.Days != nil { + if v.Days != 0 { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -4210,7 +4035,7 @@ func awsRestxml_serializeDocumentTransition(v *types.Transition, value smithyxml Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(*v.Days) + el.Integer(v.Days) } if len(v.StorageClass) > 0 { rootAttr := []smithyxml.Attr{} @@ -4226,7 +4051,7 @@ func awsRestxml_serializeDocumentTransition(v *types.Transition, value smithyxml return nil } -func awsRestxml_serializeDocumentTransitionList(v []*types.Transition, value smithyxml.Value) error { +func awsRestxml_serializeDocumentTransitionList(v []types.Transition, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { defer value.Close() @@ -4240,13 +4065,8 @@ func awsRestxml_serializeDocumentTransitionList(v []*types.Transition, value smi } array = value.ArrayWithCustomName(customMemberName) for i := range v { - if vv := v[i]; vv == nil { - am := array.Member() - am.Close() - continue - } am := array.Member() - if err := awsRestxml_serializeDocumentTransition(v[i], am); err != nil { + if err := awsRestxml_serializeDocumentTransition(&v[i], am); err != nil { return err } } diff --git a/service/s3control/types/types.go b/service/s3control/types/types.go index d5c59a6d8d8..8fccedda4c1 100644 --- a/service/s3control/types/types.go +++ b/service/s3control/types/types.go @@ -11,7 +11,7 @@ type AbortIncompleteMultipartUpload struct { // Specifies the number of days after which Amazon S3 aborts an incomplete // multipart upload to the Outposts bucket. - DaysAfterInitiation *int32 + DaysAfterInitiation int32 } // An access point used to access a bucket. @@ -61,7 +61,7 @@ type JobDescriptor struct { // Indicates whether confirmation is required before Amazon S3 begins running the // specified job. Confirmation is required only for jobs created through the Amazon // S3 console. - ConfirmationRequired *bool + ConfirmationRequired bool // A timestamp indicating when this job was created. CreationTime *time.Time @@ -72,7 +72,7 @@ type JobDescriptor struct { // If the specified job failed, this field contains information describing the // failure. - FailureReasons []*JobFailure + FailureReasons []JobFailure // The Amazon Resource Name (ARN) for this job. JobArn *string @@ -88,7 +88,7 @@ type JobDescriptor struct { Operation *JobOperation // The priority of the specified job. - Priority *int32 + Priority int32 // Describes the total number of tasks that the specified job has run, the number // of tasks that succeeded, and the number of tasks that failed. @@ -151,7 +151,7 @@ type JobListDescriptor struct { Operation OperationName // The current priority for the specified job. - Priority *int32 + Priority int32 // Describes the total number of tasks that the specified job has run, the number // of tasks that succeeded, and the number of tasks that failed. @@ -259,13 +259,13 @@ type JobOperation struct { type JobProgressSummary struct { // - NumberOfTasksFailed *int64 + NumberOfTasksFailed int64 // - NumberOfTasksSucceeded *int64 + NumberOfTasksSucceeded int64 // - TotalNumberOfTasks *int64 + TotalNumberOfTasks int64 } // Contains the configuration parameters for a job-completion report. @@ -274,7 +274,7 @@ type JobReport struct { // Indicates whether the specified job will generate a job-completion report. // // This member is required. - Enabled *bool + Enabled bool // The Amazon Resource Name (ARN) for the bucket where specified job-completion // report will be stored. @@ -305,7 +305,7 @@ type LambdaInvokeOperation struct { type LifecycleConfiguration struct { // A lifecycle rule for individual objects in an Outposts bucket. - Rules []*LifecycleRule + Rules []LifecycleRule } // The container of the Outposts bucket lifecycle expiration. @@ -317,13 +317,13 @@ type LifecycleExpiration struct { // Indicates the lifetime, in days, of the objects that are subject to the rule. // The value must be a non-zero positive integer. - Days *int32 + Days int32 // Indicates whether Amazon S3 will remove a delete marker with no noncurrent // versions. If set to true, the delete marker will be expired. If set to false, // the policy takes no action. This cannot be specified with Days or Date in a // Lifecycle Expiration Policy. - ExpiredObjectDeleteMarker *bool + ExpiredObjectDeleteMarker bool } // The container for the Outposts bucket lifecycle rule. @@ -363,11 +363,11 @@ type LifecycleRule struct { // request that Amazon S3 transition noncurrent object versions to a specific // storage class at a set period in the object's lifetime. This is not supported by // Amazon S3 on Outposts buckets. - NoncurrentVersionTransitions []*NoncurrentVersionTransition + NoncurrentVersionTransitions []NoncurrentVersionTransition // Specifies when an Amazon S3 object transitions to a specified storage class. // This is not supported by Amazon S3 on Outposts buckets. - Transitions []*Transition + Transitions []Transition } // The container for the Outposts bucket lifecycle rule and operator. @@ -378,7 +378,7 @@ type LifecycleRuleAndOperator struct { // All of these tags must exist in the object's tag set in order for the rule to // apply. - Tags []*S3Tag + Tags []S3Tag } // The container for the filter of the lifecycle rule. @@ -402,7 +402,7 @@ type NoncurrentVersionExpiration struct { // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent // (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) // in the Amazon Simple Storage Service Developer Guide. - NoncurrentDays *int32 + NoncurrentDays int32 } // The container for the noncurrent version transition. @@ -414,7 +414,7 @@ type NoncurrentVersionTransition struct { // Noncurrent // (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) // in the Amazon Simple Storage Service Developer Guide. - NoncurrentDays *int32 + NoncurrentDays int32 // The class of storage used to store the object. StorageClass TransitionStorageClass @@ -428,7 +428,7 @@ type NoncurrentVersionTransition struct { type PolicyStatus struct { // - IsPublic *bool + IsPublic bool } // The PublicAccessBlock configuration that you want to apply to this Amazon S3 @@ -455,21 +455,21 @@ type PublicAccessBlockConfiguration struct { // Enabling this setting // doesn't affect existing policies or ACLs. This is not supported for Amazon S3 on // Outposts. - BlockPublicAcls *bool + BlockPublicAcls bool // Specifies whether Amazon S3 should block public bucket policies for buckets in // this account. Setting this element to TRUE causes Amazon S3 to reject calls to // PUT Bucket policy if the specified bucket policy allows public access. Enabling // this setting doesn't affect existing bucket policies. This is not supported for // Amazon S3 on Outposts. - BlockPublicPolicy *bool + BlockPublicPolicy bool // Specifies whether Amazon S3 should ignore public ACLs for buckets in this // account. Setting this element to TRUE causes Amazon S3 to ignore all public ACLs // on buckets in this account and any objects that they contain. Enabling this // setting doesn't affect the persistence of any existing ACLs and doesn't prevent // new public ACLs from being set. This is not supported for Amazon S3 on Outposts. - IgnorePublicAcls *bool + IgnorePublicAcls bool // Specifies whether Amazon S3 should restrict public bucket policies for buckets // in this account. Setting this element to TRUE restricts access to buckets with @@ -478,7 +478,7 @@ type PublicAccessBlockConfiguration struct { // that public and cross-account access within any public bucket policy, including // non-public delegation to specific accounts, is blocked. This is not supported // for Amazon S3 on Outposts. - RestrictPublicBuckets *bool + RestrictPublicBuckets bool } // The container for the regional bucket. @@ -497,7 +497,7 @@ type RegionalBucket struct { // // // This member is required. - PublicAccessBlockEnabled *bool + PublicAccessBlockEnabled bool // The Amazon Resource Name (ARN) for the regional bucket. BucketArn *string @@ -515,7 +515,7 @@ type S3AccessControlList struct { Owner *S3ObjectOwner // - Grants []*S3Grant + Grants []S3Grant } // @@ -535,7 +535,7 @@ type S3AccessControlPolicy struct { type S3CopyObjectOperation struct { // - AccessControlGrants []*S3Grant + AccessControlGrants []S3Grant // CannedAccessControlList S3CannedAccessControlList @@ -550,7 +550,7 @@ type S3CopyObjectOperation struct { NewObjectMetadata *S3ObjectMetadata // - NewObjectTagging []*S3Tag + NewObjectTagging []S3Tag // The legal hold status to be applied to all objects in the Batch Operations job. ObjectLockLegalHoldStatus S3ObjectLockLegalHoldStatus @@ -566,7 +566,7 @@ type S3CopyObjectOperation struct { RedirectLocation *string // - RequesterPays *bool + RequesterPays bool // SSEAwsKmsKeyId *string @@ -615,7 +615,7 @@ type S3Grantee struct { type S3InitiateRestoreObjectOperation struct { // - ExpirationInDays *int32 + ExpirationInDays int32 // GlacierJobTier S3GlacierJobTier @@ -648,7 +648,7 @@ type S3ObjectMetadata struct { ContentLanguage *string // - ContentLength *int64 + ContentLength int64 // ContentMD5 *string @@ -660,13 +660,13 @@ type S3ObjectMetadata struct { HttpExpiresDate *time.Time // - RequesterCharged *bool + RequesterCharged bool // SSEAlgorithm S3SSEAlgorithm // - UserMetadata map[string]*string + UserMetadata map[string]string } // @@ -740,7 +740,7 @@ type S3SetObjectRetentionOperation struct { // Indicates if the action should be applied to objects in the Batch Operations job // even if they have Object Lock GOVERNANCE type in place. - BypassGovernanceRetention *bool + BypassGovernanceRetention bool } // Contains the configuration parameters for a Set Object Tagging operation. S3 @@ -751,7 +751,7 @@ type S3SetObjectRetentionOperation struct { type S3SetObjectTaggingOperation struct { // - TagSet []*S3Tag + TagSet []S3Tag } // @@ -774,7 +774,7 @@ type Tagging struct { // A collection for a set of tags. // // This member is required. - TagSet []*S3Tag + TagSet []S3Tag } // Specifies when an object transitions to a specified storage class. For more @@ -790,7 +790,7 @@ type Transition struct { // Indicates the number of days after creation when objects are transitioned to the // specified storage class. The value must be a positive integer. - Days *int32 + Days int32 // The storage class to which you want the object to transition. StorageClass TransitionStorageClass diff --git a/service/s3control/validators.go b/service/s3control/validators.go index 5f3c1d41f78..f7646019adf 100644 --- a/service/s3control/validators.go +++ b/service/s3control/validators.go @@ -879,9 +879,6 @@ func validateJobReport(v *types.JobReport) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "JobReport"} - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -965,13 +962,13 @@ func validateLifecycleRuleFilter(v *types.LifecycleRuleFilter) error { } } -func validateLifecycleRules(v []*types.LifecycleRule) error { +func validateLifecycleRules(v []types.LifecycleRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "LifecycleRules"} for i := range v { - if err := validateLifecycleRule(v[i]); err != nil { + if err := validateLifecycleRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1132,13 +1129,13 @@ func validateS3Tag(v *types.S3Tag) error { } } -func validateS3TagSet(v []*types.S3Tag) error { +func validateS3TagSet(v []types.S3Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "S3TagSet"} for i := range v { - if err := validateS3Tag(v[i]); err != nil { + if err := validateS3Tag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1249,9 +1246,6 @@ func validateOpCreateJobInput(v *CreateJobInput) error { if v.ClientRequestToken == nil { invalidParams.Add(smithy.NewErrParamRequired("ClientRequestToken")) } - if v.Priority == nil { - invalidParams.Add(smithy.NewErrParamRequired("Priority")) - } if v.Report == nil { invalidParams.Add(smithy.NewErrParamRequired("Report")) } else if v.Report != nil { @@ -1781,9 +1775,6 @@ func validateOpUpdateJobPriorityInput(v *UpdateJobPriorityInput) error { if v.AccountId == nil { invalidParams.Add(smithy.NewErrParamRequired("AccountId")) } - if v.Priority == nil { - invalidParams.Add(smithy.NewErrParamRequired("Priority")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/s3outposts/api_op_ListEndpoints.go b/service/s3outposts/api_op_ListEndpoints.go index 2971fa308e9..ffc90a18ee6 100644 --- a/service/s3outposts/api_op_ListEndpoints.go +++ b/service/s3outposts/api_op_ListEndpoints.go @@ -41,7 +41,7 @@ func (c *Client) ListEndpoints(ctx context.Context, params *ListEndpointsInput, type ListEndpointsInput struct { // The max number of endpoints that can be returned on the request. - MaxResults *int32 + MaxResults int32 // The next endpoint requested in the list. NextToken *string @@ -50,7 +50,7 @@ type ListEndpointsInput struct { type ListEndpointsOutput struct { // Returns an array of endpoints associated with AWS Outpost. - Endpoints []*types.Endpoint + Endpoints []types.Endpoint // The next endpoint returned in the list. NextToken *string diff --git a/service/s3outposts/deserializers.go b/service/s3outposts/deserializers.go index a3f803451b8..db45c57c2f5 100644 --- a/service/s3outposts/deserializers.go +++ b/service/s3outposts/deserializers.go @@ -170,7 +170,7 @@ func awsRestjson1_deserializeOpDocumentCreateEndpointOutput(v **CreateEndpointOu if !ok { return fmt.Errorf("expected EndpointArn to be of type string, got %T instead", value) } - sv.EndpointArn = &jtv + sv.EndpointArn = ptr.String(jtv) } default: @@ -427,7 +427,7 @@ func awsRestjson1_deserializeOpDocumentListEndpointsOutput(v **ListEndpointsOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -647,7 +647,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -687,7 +687,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -727,7 +727,7 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected CidrBlock to be of type string, got %T instead", value) } - sv.CidrBlock = &jtv + sv.CidrBlock = ptr.String(jtv) } case "CreationTime": @@ -749,7 +749,7 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected EndpointArn to be of type string, got %T instead", value) } - sv.EndpointArn = &jtv + sv.EndpointArn = ptr.String(jtv) } case "NetworkInterfaces": @@ -763,7 +763,7 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected OutpostId to be of type string, got %T instead", value) } - sv.OutpostsId = &jtv + sv.OutpostsId = ptr.String(jtv) } case "Status": @@ -784,7 +784,7 @@ func awsRestjson1_deserializeDocumentEndpoint(v **types.Endpoint, value interfac return nil } -func awsRestjson1_deserializeDocumentEndpoints(v *[]*types.Endpoint, value interface{}) error { +func awsRestjson1_deserializeDocumentEndpoints(v *[]types.Endpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -797,18 +797,20 @@ func awsRestjson1_deserializeDocumentEndpoints(v *[]*types.Endpoint, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Endpoint + var cv []types.Endpoint if *v == nil { - cv = []*types.Endpoint{} + cv = []types.Endpoint{} } else { cv = *v } for _, value := range shape { - var col *types.Endpoint - if err := awsRestjson1_deserializeDocumentEndpoint(&col, value); err != nil { + var col types.Endpoint + destAddr := &col + if err := awsRestjson1_deserializeDocumentEndpoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -844,7 +846,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -884,7 +886,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected NetworkInterfaceId to be of type string, got %T instead", value) } - sv.NetworkInterfaceId = &jtv + sv.NetworkInterfaceId = ptr.String(jtv) } default: @@ -896,7 +898,7 @@ func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface return nil } -func awsRestjson1_deserializeDocumentNetworkInterfaces(v *[]*types.NetworkInterface, value interface{}) error { +func awsRestjson1_deserializeDocumentNetworkInterfaces(v *[]types.NetworkInterface, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -909,18 +911,20 @@ func awsRestjson1_deserializeDocumentNetworkInterfaces(v *[]*types.NetworkInterf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NetworkInterface + var cv []types.NetworkInterface if *v == nil { - cv = []*types.NetworkInterface{} + cv = []types.NetworkInterface{} } else { cv = *v } for _, value := range shape { - var col *types.NetworkInterface - if err := awsRestjson1_deserializeDocumentNetworkInterface(&col, value); err != nil { + var col types.NetworkInterface + destAddr := &col + if err := awsRestjson1_deserializeDocumentNetworkInterface(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -956,7 +960,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -996,7 +1000,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/s3outposts/go.mod b/service/s3outposts/go.mod index 5b01660354a..92a70c84327 100644 --- a/service/s3outposts/go.mod +++ b/service/s3outposts/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/s3outposts go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/s3outposts/serializers.go b/service/s3outposts/serializers.go index 8fb132cfe74..327b9efae98 100644 --- a/service/s3outposts/serializers.go +++ b/service/s3outposts/serializers.go @@ -209,8 +209,8 @@ func awsRestjson1_serializeOpHttpBindingsListEndpointsInput(v *ListEndpointsInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { diff --git a/service/s3outposts/types/types.go b/service/s3outposts/types/types.go index c068a43c99a..0721a5d0d1c 100644 --- a/service/s3outposts/types/types.go +++ b/service/s3outposts/types/types.go @@ -22,7 +22,7 @@ type Endpoint struct { EndpointArn *string // The network interface of the endpoint. - NetworkInterfaces []*NetworkInterface + NetworkInterfaces []NetworkInterface // The ID of the AWS Outpost. OutpostsId *string diff --git a/service/sagemaker/api_op_AddTags.go b/service/sagemaker/api_op_AddTags.go index 14f41da7c13..faca0b58212 100644 --- a/service/sagemaker/api_op_AddTags.go +++ b/service/sagemaker/api_op_AddTags.go @@ -53,13 +53,13 @@ type AddTagsInput struct { // empty string. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type AddTagsOutput struct { // A list of tags associated with the Amazon SageMaker resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_CreateAlgorithm.go b/service/sagemaker/api_op_CreateAlgorithm.go index e511475f2fc..050a154e581 100644 --- a/service/sagemaker/api_op_CreateAlgorithm.go +++ b/service/sagemaker/api_op_CreateAlgorithm.go @@ -66,7 +66,7 @@ type CreateAlgorithmInput struct { AlgorithmDescription *string // Whether to certify the algorithm so that it can be listed in AWS Marketplace. - CertifyForMarketplace *bool + CertifyForMarketplace bool // Specifies details about inference jobs that the algorithm runs, including the // following: diff --git a/service/sagemaker/api_op_CreateApp.go b/service/sagemaker/api_op_CreateApp.go index 6c35a49226a..ef86553a43f 100644 --- a/service/sagemaker/api_op_CreateApp.go +++ b/service/sagemaker/api_op_CreateApp.go @@ -59,7 +59,7 @@ type CreateAppInput struct { // Each tag consists of a key and an optional value. Tag keys must be unique per // resource. - Tags []*types.Tag + Tags []types.Tag } type CreateAppOutput struct { diff --git a/service/sagemaker/api_op_CreateAppImageConfig.go b/service/sagemaker/api_op_CreateAppImageConfig.go index 09ccbab3bba..7fb5a2a96ae 100644 --- a/service/sagemaker/api_op_CreateAppImageConfig.go +++ b/service/sagemaker/api_op_CreateAppImageConfig.go @@ -39,7 +39,7 @@ type CreateAppImageConfigInput struct { KernelGatewayImageConfig *types.KernelGatewayImageConfig // A list of tags to apply to the AppImageConfig. - Tags []*types.Tag + Tags []types.Tag } type CreateAppImageConfigOutput struct { diff --git a/service/sagemaker/api_op_CreateAutoMLJob.go b/service/sagemaker/api_op_CreateAutoMLJob.go index e1b918b694c..3371e6bb3fc 100644 --- a/service/sagemaker/api_op_CreateAutoMLJob.go +++ b/service/sagemaker/api_op_CreateAutoMLJob.go @@ -45,7 +45,7 @@ type CreateAutoMLJobInput struct { // Minimum of 500 rows. // // This member is required. - InputDataConfig []*types.AutoMLChannel + InputDataConfig []types.AutoMLChannel // Similar to OutputDataConfig supported by Tuning. Format(s) supported: CSV. // @@ -68,7 +68,7 @@ type CreateAutoMLJobInput struct { // Generates possible candidates without training a model. A candidate is a // combination of data preprocessors, algorithms, and algorithm parameter settings. - GenerateCandidateDefinitionsOnly *bool + GenerateCandidateDefinitionsOnly bool // Defines the kind of preprocessing and algorithms intended for the candidates. // Options include: BinaryClassification, MulticlassClassification, and Regression. @@ -76,7 +76,7 @@ type CreateAutoMLJobInput struct { // Each tag consists of a key and an optional value. Tag keys must be unique per // resource. - Tags []*types.Tag + Tags []types.Tag } type CreateAutoMLJobOutput struct { diff --git a/service/sagemaker/api_op_CreateCompilationJob.go b/service/sagemaker/api_op_CreateCompilationJob.go index 73c82025f0c..e4400ac33c7 100644 --- a/service/sagemaker/api_op_CreateCompilationJob.go +++ b/service/sagemaker/api_op_CreateCompilationJob.go @@ -105,7 +105,7 @@ type CreateCompilationJobInput struct { // resource costs. For more information, see Using Cost Allocation Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. - Tags []*types.Tag + Tags []types.Tag } type CreateCompilationJobOutput struct { diff --git a/service/sagemaker/api_op_CreateDomain.go b/service/sagemaker/api_op_CreateDomain.go index 43f9c6e5184..7408838bcfb 100644 --- a/service/sagemaker/api_op_CreateDomain.go +++ b/service/sagemaker/api_op_CreateDomain.go @@ -74,7 +74,7 @@ type CreateDomainInput struct { // The VPC subnets that Studio uses for communication. // // This member is required. - SubnetIds []*string + SubnetIds []string // The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for // communication. @@ -99,7 +99,7 @@ type CreateDomainInput struct { // Tags to associated with the Domain. Each tag consists of a key and an optional // value. Tag keys must be unique per resource. Tags are searchable using the // Search API. - Tags []*types.Tag + Tags []types.Tag } type CreateDomainOutput struct { diff --git a/service/sagemaker/api_op_CreateEndpoint.go b/service/sagemaker/api_op_CreateEndpoint.go index d1edceae3ed..1b3ce138a78 100644 --- a/service/sagemaker/api_op_CreateEndpoint.go +++ b/service/sagemaker/api_op_CreateEndpoint.go @@ -82,7 +82,7 @@ type CreateEndpointInput struct { // Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)in // the AWS Billing and Cost Management User Guide. - Tags []*types.Tag + Tags []types.Tag } type CreateEndpointOutput struct { diff --git a/service/sagemaker/api_op_CreateEndpointConfig.go b/service/sagemaker/api_op_CreateEndpointConfig.go index 0ac8dee71f9..06a9ce4986f 100644 --- a/service/sagemaker/api_op_CreateEndpointConfig.go +++ b/service/sagemaker/api_op_CreateEndpointConfig.go @@ -66,7 +66,7 @@ type CreateEndpointConfigInput struct { // at this endpoint. // // This member is required. - ProductionVariants []*types.ProductionVariant + ProductionVariants []types.ProductionVariant // DataCaptureConfig *types.DataCaptureConfig @@ -110,7 +110,7 @@ type CreateEndpointConfigInput struct { // A list of key-value pairs. For more information, see Using Cost Allocation Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. - Tags []*types.Tag + Tags []types.Tag } type CreateEndpointConfigOutput struct { diff --git a/service/sagemaker/api_op_CreateExperiment.go b/service/sagemaker/api_op_CreateExperiment.go index aaba899942e..f11f17703bf 100644 --- a/service/sagemaker/api_op_CreateExperiment.go +++ b/service/sagemaker/api_op_CreateExperiment.go @@ -60,7 +60,7 @@ type CreateExperimentInput struct { // A list of tags to associate with the experiment. You can use Search API to // search on the tags. - Tags []*types.Tag + Tags []types.Tag } type CreateExperimentOutput struct { diff --git a/service/sagemaker/api_op_CreateFlowDefinition.go b/service/sagemaker/api_op_CreateFlowDefinition.go index f6a782c8af4..985e868dcb2 100644 --- a/service/sagemaker/api_op_CreateFlowDefinition.go +++ b/service/sagemaker/api_op_CreateFlowDefinition.go @@ -63,7 +63,7 @@ type CreateFlowDefinitionInput struct { // An array of key-value pairs that contain metadata to help you categorize and // organize a flow definition. Each tag consists of a key and a value, both of // which you define. - Tags []*types.Tag + Tags []types.Tag } type CreateFlowDefinitionOutput struct { diff --git a/service/sagemaker/api_op_CreateHumanTaskUi.go b/service/sagemaker/api_op_CreateHumanTaskUi.go index 45af213179b..a842f5d35ed 100644 --- a/service/sagemaker/api_op_CreateHumanTaskUi.go +++ b/service/sagemaker/api_op_CreateHumanTaskUi.go @@ -44,7 +44,7 @@ type CreateHumanTaskUiInput struct { // An array of key-value pairs that contain metadata to help you categorize and // organize a human review workflow user interface. Each tag consists of a key and // a value, both of which you define. - Tags []*types.Tag + Tags []types.Tag } type CreateHumanTaskUiOutput struct { diff --git a/service/sagemaker/api_op_CreateHyperParameterTuningJob.go b/service/sagemaker/api_op_CreateHyperParameterTuningJob.go index d068208ce74..d8a1a885a17 100644 --- a/service/sagemaker/api_op_CreateHyperParameterTuningJob.go +++ b/service/sagemaker/api_op_CreateHyperParameterTuningJob.go @@ -57,7 +57,7 @@ type CreateHyperParameterTuningJobInput struct { // (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/). // Tags that you specify for the tuning job are also added to all training jobs // that the tuning job launches. - Tags []*types.Tag + Tags []types.Tag // The HyperParameterTrainingJobDefinition object that describes the training jobs // that this tuning job launches, including static hyperparameters, input data @@ -67,7 +67,7 @@ type CreateHyperParameterTuningJobInput struct { // A list of the HyperParameterTrainingJobDefinition objects launched for this // tuning job. - TrainingJobDefinitions []*types.HyperParameterTrainingJobDefinition + TrainingJobDefinitions []types.HyperParameterTrainingJobDefinition // Specifies the configuration for starting the hyperparameter tuning job using one // or more previous tuning jobs as a starting point. The results of previous tuning diff --git a/service/sagemaker/api_op_CreateImage.go b/service/sagemaker/api_op_CreateImage.go index c6dfad5ddf1..90f1bdc4d6d 100644 --- a/service/sagemaker/api_op_CreateImage.go +++ b/service/sagemaker/api_op_CreateImage.go @@ -50,7 +50,7 @@ type CreateImageInput struct { DisplayName *string // A list of tags to apply to the image. - Tags []*types.Tag + Tags []types.Tag } type CreateImageOutput struct { diff --git a/service/sagemaker/api_op_CreateLabelingJob.go b/service/sagemaker/api_op_CreateLabelingJob.go index f855d1f298a..1341b6ab2c8 100644 --- a/service/sagemaker/api_op_CreateLabelingJob.go +++ b/service/sagemaker/api_op_CreateLabelingJob.go @@ -153,7 +153,7 @@ type CreateLabelingJobInput struct { // Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. - Tags []*types.Tag + Tags []types.Tag } type CreateLabelingJobOutput struct { diff --git a/service/sagemaker/api_op_CreateModel.go b/service/sagemaker/api_op_CreateModel.go index 28e00e948b1..5dab1955513 100644 --- a/service/sagemaker/api_op_CreateModel.go +++ b/service/sagemaker/api_op_CreateModel.go @@ -67,11 +67,11 @@ type CreateModelInput struct { ModelName *string // Specifies the containers in the inference pipeline. - Containers []*types.ContainerDefinition + Containers []types.ContainerDefinition // Isolates the model container. No inbound or outbound network calls can be made // to or from the model container. - EnableNetworkIsolation *bool + EnableNetworkIsolation bool // The location of the primary docker image containing inference code, associated // artifacts, and custom environment map that the inference code uses when the @@ -82,7 +82,7 @@ type CreateModelInput struct { // Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. - Tags []*types.Tag + Tags []types.Tag // A VpcConfig object that specifies the VPC that you want your model to connect // to. Control access to and from your model container by configuring the VPC. diff --git a/service/sagemaker/api_op_CreateModelPackage.go b/service/sagemaker/api_op_CreateModelPackage.go index 84787e081fa..71a846342a7 100644 --- a/service/sagemaker/api_op_CreateModelPackage.go +++ b/service/sagemaker/api_op_CreateModelPackage.go @@ -36,7 +36,7 @@ func (c *Client) CreateModelPackage(ctx context.Context, params *CreateModelPack type CreateModelPackageInput struct { // Whether to certify the model package for listing on AWS Marketplace. - CertifyForMarketplace *bool + CertifyForMarketplace bool // Specifies details about inference jobs that can be run with models based on this // model package, including the following: diff --git a/service/sagemaker/api_op_CreateMonitoringSchedule.go b/service/sagemaker/api_op_CreateMonitoringSchedule.go index 2fe878838ac..fc8f955b83b 100644 --- a/service/sagemaker/api_op_CreateMonitoringSchedule.go +++ b/service/sagemaker/api_op_CreateMonitoringSchedule.go @@ -46,7 +46,7 @@ type CreateMonitoringScheduleInput struct { // Allocation Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL) // in the AWS Billing and Cost Management User Guide. - Tags []*types.Tag + Tags []types.Tag } type CreateMonitoringScheduleOutput struct { diff --git a/service/sagemaker/api_op_CreateNotebookInstance.go b/service/sagemaker/api_op_CreateNotebookInstance.go index 11712acda66..7aae73304b3 100644 --- a/service/sagemaker/api_op_CreateNotebookInstance.go +++ b/service/sagemaker/api_op_CreateNotebookInstance.go @@ -99,7 +99,7 @@ type CreateNotebookInstanceInput struct { // default repository of your notebook instance. For more information, see // Associating Git Repositories with Amazon SageMaker Notebook Instances // (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). - AdditionalCodeRepositories []*string + AdditionalCodeRepositories []string // A Git repository to associate with the notebook instance as its default code // repository. This can be either the name of a Git repository stored as a resource @@ -144,7 +144,7 @@ type CreateNotebookInstanceInput struct { // The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must be // for the same VPC as specified in the subnet. - SecurityGroupIds []*string + SecurityGroupIds []string // The ID of the subnet in a VPC to which you would like to have a connectivity // from your ML compute instance. @@ -152,7 +152,7 @@ type CreateNotebookInstanceInput struct { // A list of tags to associate with the notebook instance. You can add tags later // by using the CreateTags API. - Tags []*types.Tag + Tags []types.Tag // The size, in GB, of the ML storage volume to attach to the notebook instance. // The default value is 5 GB. diff --git a/service/sagemaker/api_op_CreateNotebookInstanceLifecycleConfig.go b/service/sagemaker/api_op_CreateNotebookInstanceLifecycleConfig.go index 2d02fe7424e..e9473a4f0e0 100644 --- a/service/sagemaker/api_op_CreateNotebookInstanceLifecycleConfig.go +++ b/service/sagemaker/api_op_CreateNotebookInstanceLifecycleConfig.go @@ -48,12 +48,12 @@ type CreateNotebookInstanceLifecycleConfigInput struct { // A shell script that runs only once, when you create a notebook instance. The // shell script must be a base64-encoded string. - OnCreate []*types.NotebookInstanceLifecycleHook + OnCreate []types.NotebookInstanceLifecycleHook // A shell script that runs every time you start a notebook instance, including // when you create the notebook instance. The shell script must be a base64-encoded // string. - OnStart []*types.NotebookInstanceLifecycleHook + OnStart []types.NotebookInstanceLifecycleHook } type CreateNotebookInstanceLifecycleConfigOutput struct { diff --git a/service/sagemaker/api_op_CreateProcessingJob.go b/service/sagemaker/api_op_CreateProcessingJob.go index f5d0a69b3f4..137952e4ab3 100644 --- a/service/sagemaker/api_op_CreateProcessingJob.go +++ b/service/sagemaker/api_op_CreateProcessingJob.go @@ -54,7 +54,7 @@ type CreateProcessingJobInput struct { RoleArn *string // Sets the environment variables in the Docker container. - Environment map[string]*string + Environment map[string]string // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: @@ -72,7 +72,7 @@ type CreateProcessingJobInput struct { // For each input, data is downloaded from S3 into the processing container before // the processing job begins running if "S3InputMode" is set to File. - ProcessingInputs []*types.ProcessingInput + ProcessingInputs []types.ProcessingInput // Output configuration for the processing job. ProcessingOutputConfig *types.ProcessingOutputConfig @@ -84,7 +84,7 @@ type CreateProcessingJobInput struct { // Allocation Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL) // in the AWS Billing and Cost Management User Guide. - Tags []*types.Tag + Tags []types.Tag } type CreateProcessingJobOutput struct { diff --git a/service/sagemaker/api_op_CreateTrainingJob.go b/service/sagemaker/api_op_CreateTrainingJob.go index 9d0eab6ebdd..292e0c33ba1 100644 --- a/service/sagemaker/api_op_CreateTrainingJob.go +++ b/service/sagemaker/api_op_CreateTrainingJob.go @@ -141,7 +141,7 @@ type CreateTrainingJobInput struct { DebugHookConfig *types.DebugHookConfig // Configuration information for debugging rules. - DebugRuleConfigurations []*types.DebugRuleConfiguration + DebugRuleConfigurations []types.DebugRuleConfiguration // To encrypt all communications between ML compute instances in distributed // training, choose True. Encryption provides greater security for distributed @@ -150,7 +150,7 @@ type CreateTrainingJobInput struct { // learning algorithm in distributed training. For more information, see Protect // Communications Between ML Compute Instances in a Distributed Training Job // (https://docs.aws.amazon.com/sagemaker/latest/dg/train-encrypt.html). - EnableInterContainerTrafficEncryption *bool + EnableInterContainerTrafficEncryption bool // To train models using managed spot training, choose True. Managed spot training // provides a fully managed and scalable infrastructure for training machine @@ -160,7 +160,7 @@ type CreateTrainingJobInput struct { // as a starting point to train models incrementally. Amazon SageMaker provides // metrics and logs in CloudWatch. They can be used to see when managed spot // training jobs are running, interrupted, resumed, or completed. - EnableManagedSpotTraining *bool + EnableManagedSpotTraining bool // Isolates the training container. No inbound or outbound network calls can be // made, except for calls between peers within a training cluster for distributed @@ -168,7 +168,7 @@ type CreateTrainingJobInput struct { // to use a VPC, Amazon SageMaker downloads and uploads customer data and model // artifacts through the specified VPC, but the training container does not have // network access. - EnableNetworkIsolation *bool + EnableNetworkIsolation bool // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: @@ -188,7 +188,7 @@ type CreateTrainingJobInput struct { // specify a maximum of 100 hyperparameters. Each hyperparameter is a key-value // pair. Each key and value is limited to 256 characters, as specified by the // Length Constraint. - HyperParameters map[string]*string + HyperParameters map[string]string // An array of Channel objects. Each channel is a named input source. // InputDataConfig describes the input data and its location. Algorithms can accept @@ -202,13 +202,13 @@ type CreateTrainingJobInput struct { // container, or makes it available as input streams. For example, if you specify // an EFS location, input data files will be made available as input streams. They // do not need to be downloaded. - InputDataConfig []*types.Channel + InputDataConfig []types.Channel // An array of key-value pairs. For more information, see Using Cost Allocation // Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. - Tags []*types.Tag + Tags []types.Tag // Configuration of storage locations for TensorBoard output. TensorBoardOutputConfig *types.TensorBoardOutputConfig diff --git a/service/sagemaker/api_op_CreateTransformJob.go b/service/sagemaker/api_op_CreateTransformJob.go index ac1a95235b3..3131bf23f6a 100644 --- a/service/sagemaker/api_op_CreateTransformJob.go +++ b/service/sagemaker/api_op_CreateTransformJob.go @@ -106,7 +106,7 @@ type CreateTransformJobInput struct { // The environment variables to set in the Docker container. We support up to 16 // key and values entries in the map. - Environment map[string]*string + Environment map[string]string // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: @@ -149,7 +149,7 @@ type CreateTransformJobInput struct { // Allocation Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. - Tags []*types.Tag + Tags []types.Tag } type CreateTransformJobOutput struct { diff --git a/service/sagemaker/api_op_CreateTrial.go b/service/sagemaker/api_op_CreateTrial.go index 31dad33aeba..d6191eff849 100644 --- a/service/sagemaker/api_op_CreateTrial.go +++ b/service/sagemaker/api_op_CreateTrial.go @@ -55,7 +55,7 @@ type CreateTrialInput struct { // A list of tags to associate with the trial. You can use Search API to search on // the tags. - Tags []*types.Tag + Tags []types.Tag } type CreateTrialOutput struct { diff --git a/service/sagemaker/api_op_CreateTrialComponent.go b/service/sagemaker/api_op_CreateTrialComponent.go index 9784b505773..38450161e74 100644 --- a/service/sagemaker/api_op_CreateTrialComponent.go +++ b/service/sagemaker/api_op_CreateTrialComponent.go @@ -56,14 +56,14 @@ type CreateTrialComponentInput struct { // The input artifacts for the component. Examples of input artifacts are datasets, // algorithms, hyperparameters, source code, and instance types. - InputArtifacts map[string]*types.TrialComponentArtifact + InputArtifacts map[string]types.TrialComponentArtifact // The output artifacts for the component. Examples of output artifacts are // metrics, snapshots, logs, and images. - OutputArtifacts map[string]*types.TrialComponentArtifact + OutputArtifacts map[string]types.TrialComponentArtifact // The hyperparameters for the component. - Parameters map[string]*types.TrialComponentParameterValue + Parameters map[string]types.TrialComponentParameterValue // When the component started. StartTime *time.Time @@ -80,7 +80,7 @@ type CreateTrialComponentInput struct { // A list of tags to associate with the component. You can use Search API to search // on the tags. - Tags []*types.Tag + Tags []types.Tag } type CreateTrialComponentOutput struct { diff --git a/service/sagemaker/api_op_CreateUserProfile.go b/service/sagemaker/api_op_CreateUserProfile.go index dd9432750fa..d3ddede8661 100644 --- a/service/sagemaker/api_op_CreateUserProfile.go +++ b/service/sagemaker/api_op_CreateUserProfile.go @@ -59,7 +59,7 @@ type CreateUserProfileInput struct { // Each tag consists of a key and an optional value. Tag keys must be unique per // resource. - Tags []*types.Tag + Tags []types.Tag // A collection of settings. UserSettings *types.UserSettings diff --git a/service/sagemaker/api_op_CreateWorkforce.go b/service/sagemaker/api_op_CreateWorkforce.go index dcc3e650acb..d4e7a548ad7 100644 --- a/service/sagemaker/api_op_CreateWorkforce.go +++ b/service/sagemaker/api_op_CreateWorkforce.go @@ -69,7 +69,7 @@ type CreateWorkforceInput struct { // An array of key-value pairs that contain metadata to help you categorize and // organize our workforce. Each tag consists of a key and a value, both of which // you define. - Tags []*types.Tag + Tags []types.Tag } type CreateWorkforceOutput struct { diff --git a/service/sagemaker/api_op_CreateWorkteam.go b/service/sagemaker/api_op_CreateWorkteam.go index 35e626aa42c..5d8de323b93 100644 --- a/service/sagemaker/api_op_CreateWorkteam.go +++ b/service/sagemaker/api_op_CreateWorkteam.go @@ -55,7 +55,7 @@ type CreateWorkteamInput struct { // those groups in Groups. // // This member is required. - MemberDefinitions []*types.MemberDefinition + MemberDefinitions []types.MemberDefinition // The name of the work team. Use this name to identify the work team. // @@ -70,7 +70,7 @@ type CreateWorkteamInput struct { // and Using Cost Allocation Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. - Tags []*types.Tag + Tags []types.Tag // The name of the workforce. WorkforceName *string diff --git a/service/sagemaker/api_op_DeleteTags.go b/service/sagemaker/api_op_DeleteTags.go index 01bf7e420bd..e909442b014 100644 --- a/service/sagemaker/api_op_DeleteTags.go +++ b/service/sagemaker/api_op_DeleteTags.go @@ -39,7 +39,7 @@ type DeleteTagsInput struct { // An array or one or more tag keys to delete. // // This member is required. - TagKeys []*string + TagKeys []string } type DeleteTagsOutput struct { diff --git a/service/sagemaker/api_op_DeleteWorkteam.go b/service/sagemaker/api_op_DeleteWorkteam.go index 4ee201a4999..79719d245b3 100644 --- a/service/sagemaker/api_op_DeleteWorkteam.go +++ b/service/sagemaker/api_op_DeleteWorkteam.go @@ -40,7 +40,7 @@ type DeleteWorkteamOutput struct { // false. // // This member is required. - Success *bool + Success bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_DescribeAlgorithm.go b/service/sagemaker/api_op_DescribeAlgorithm.go index 200449fb6d4..2c1701b4b38 100644 --- a/service/sagemaker/api_op_DescribeAlgorithm.go +++ b/service/sagemaker/api_op_DescribeAlgorithm.go @@ -72,7 +72,7 @@ type DescribeAlgorithmOutput struct { AlgorithmDescription *string // Whether the algorithm is certified to be listed in AWS Marketplace. - CertifyForMarketplace *bool + CertifyForMarketplace bool // Details about inference jobs that the algorithm runs. InferenceSpecification *types.InferenceSpecification diff --git a/service/sagemaker/api_op_DescribeAutoMLJob.go b/service/sagemaker/api_op_DescribeAutoMLJob.go index f6ba4c284bd..fb631ee6c7b 100644 --- a/service/sagemaker/api_op_DescribeAutoMLJob.go +++ b/service/sagemaker/api_op_DescribeAutoMLJob.go @@ -66,7 +66,7 @@ type DescribeAutoMLJobOutput struct { // Returns the job's input data config. // // This member is required. - InputDataConfig []*types.AutoMLChannel + InputDataConfig []types.AutoMLChannel // Returns the job's last modified time. // @@ -104,7 +104,7 @@ type DescribeAutoMLJobOutput struct { FailureReason *string // Returns the job's output from GenerateCandidateDefinitionsOnly. - GenerateCandidateDefinitionsOnly *bool + GenerateCandidateDefinitionsOnly bool // Returns the job's problem type. ProblemType types.ProblemType diff --git a/service/sagemaker/api_op_DescribeDomain.go b/service/sagemaker/api_op_DescribeDomain.go index 1dc3eaae3be..41e79e637cd 100644 --- a/service/sagemaker/api_op_DescribeDomain.go +++ b/service/sagemaker/api_op_DescribeDomain.go @@ -86,7 +86,7 @@ type DescribeDomainOutput struct { Status types.DomainStatus // The VPC subnets that Studio uses for communication. - SubnetIds []*string + SubnetIds []string // The domain's URL. Url *string diff --git a/service/sagemaker/api_op_DescribeEndpoint.go b/service/sagemaker/api_op_DescribeEndpoint.go index 0813eb71cb7..99a8ed8b392 100644 --- a/service/sagemaker/api_op_DescribeEndpoint.go +++ b/service/sagemaker/api_op_DescribeEndpoint.go @@ -108,7 +108,7 @@ type DescribeEndpointOutput struct { // An array of ProductionVariantSummary objects, one for each model hosted behind // this endpoint. - ProductionVariants []*types.ProductionVariantSummary + ProductionVariants []types.ProductionVariantSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_DescribeEndpointConfig.go b/service/sagemaker/api_op_DescribeEndpointConfig.go index c7028c65185..9c9907e1538 100644 --- a/service/sagemaker/api_op_DescribeEndpointConfig.go +++ b/service/sagemaker/api_op_DescribeEndpointConfig.go @@ -58,7 +58,7 @@ type DescribeEndpointConfigOutput struct { // at this endpoint. // // This member is required. - ProductionVariants []*types.ProductionVariant + ProductionVariants []types.ProductionVariant // DataCaptureConfig *types.DataCaptureConfig diff --git a/service/sagemaker/api_op_DescribeHyperParameterTuningJob.go b/service/sagemaker/api_op_DescribeHyperParameterTuningJob.go index 1c3e88fffac..6fe2afd6de9 100644 --- a/service/sagemaker/api_op_DescribeHyperParameterTuningJob.go +++ b/service/sagemaker/api_op_DescribeHyperParameterTuningJob.go @@ -104,7 +104,7 @@ type DescribeHyperParameterTuningJobOutput struct { // A list of the HyperParameterTrainingJobDefinition objects launched for this // tuning job. - TrainingJobDefinitions []*types.HyperParameterTrainingJobDefinition + TrainingJobDefinitions []types.HyperParameterTrainingJobDefinition // The configuration for starting the hyperparameter parameter tuning job using one // or more previous tuning jobs as a starting point. The results of previous tuning diff --git a/service/sagemaker/api_op_DescribeLabelingJob.go b/service/sagemaker/api_op_DescribeLabelingJob.go index 2e99d9e9928..08b4dd3c757 100644 --- a/service/sagemaker/api_op_DescribeLabelingJob.go +++ b/service/sagemaker/api_op_DescribeLabelingJob.go @@ -162,7 +162,7 @@ type DescribeLabelingJobOutput struct { // Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_DescribeModel.go b/service/sagemaker/api_op_DescribeModel.go index f02b5c8f1ab..8fd47245965 100644 --- a/service/sagemaker/api_op_DescribeModel.go +++ b/service/sagemaker/api_op_DescribeModel.go @@ -59,11 +59,11 @@ type DescribeModelOutput struct { ModelName *string // The containers in the inference pipeline. - Containers []*types.ContainerDefinition + Containers []types.ContainerDefinition // If True, no inbound or outbound network calls can be made to or from the model // container. - EnableNetworkIsolation *bool + EnableNetworkIsolation bool // The location of the primary inference code, associated artifacts, and custom // environment map that the inference code uses when it is deployed in production. diff --git a/service/sagemaker/api_op_DescribeModelPackage.go b/service/sagemaker/api_op_DescribeModelPackage.go index 23feae73e50..01bd7cdc5d0 100644 --- a/service/sagemaker/api_op_DescribeModelPackage.go +++ b/service/sagemaker/api_op_DescribeModelPackage.go @@ -67,7 +67,7 @@ type DescribeModelPackageOutput struct { ModelPackageStatusDetails *types.ModelPackageStatusDetails // Whether the model package is certified for listing on AWS Marketplace. - CertifyForMarketplace *bool + CertifyForMarketplace bool // Details about inference jobs that can be run with models based on this model // package. diff --git a/service/sagemaker/api_op_DescribeNotebookInstance.go b/service/sagemaker/api_op_DescribeNotebookInstance.go index 74f01342a40..c814af44449 100644 --- a/service/sagemaker/api_op_DescribeNotebookInstance.go +++ b/service/sagemaker/api_op_DescribeNotebookInstance.go @@ -52,7 +52,7 @@ type DescribeNotebookInstanceOutput struct { // default repository of your notebook instance. For more information, see // Associating Git Repositories with Amazon SageMaker Notebook Instances // (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). - AdditionalCodeRepositories []*string + AdditionalCodeRepositories []string // A timestamp. Use this parameter to return the time when the notebook instance // was created @@ -119,7 +119,7 @@ type DescribeNotebookInstanceOutput struct { RootAccess types.RootAccess // The IDs of the VPC security groups. - SecurityGroups []*string + SecurityGroups []string // The ID of the VPC subnet. SubnetId *string diff --git a/service/sagemaker/api_op_DescribeNotebookInstanceLifecycleConfig.go b/service/sagemaker/api_op_DescribeNotebookInstanceLifecycleConfig.go index 5e37b057320..2b917d990a6 100644 --- a/service/sagemaker/api_op_DescribeNotebookInstanceLifecycleConfig.go +++ b/service/sagemaker/api_op_DescribeNotebookInstanceLifecycleConfig.go @@ -54,11 +54,11 @@ type DescribeNotebookInstanceLifecycleConfigOutput struct { NotebookInstanceLifecycleConfigName *string // The shell script that runs only once, when you create a notebook instance. - OnCreate []*types.NotebookInstanceLifecycleHook + OnCreate []types.NotebookInstanceLifecycleHook // The shell script that runs every time you start a notebook instance, including // when you create the notebook instance. - OnStart []*types.NotebookInstanceLifecycleHook + OnStart []types.NotebookInstanceLifecycleHook // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_DescribeProcessingJob.go b/service/sagemaker/api_op_DescribeProcessingJob.go index afce973b51a..8c8b65d171f 100644 --- a/service/sagemaker/api_op_DescribeProcessingJob.go +++ b/service/sagemaker/api_op_DescribeProcessingJob.go @@ -76,7 +76,7 @@ type DescribeProcessingJobOutput struct { AutoMLJobArn *string // The environment variables set in the Docker container. - Environment map[string]*string + Environment map[string]string // An optional string, up to one KB in size, that contains metadata from the // processing container when the processing job exits. @@ -103,7 +103,7 @@ type DescribeProcessingJobOutput struct { ProcessingEndTime *time.Time // The inputs for a processing job. - ProcessingInputs []*types.ProcessingInput + ProcessingInputs []types.ProcessingInput // Output configuration for the processing job. ProcessingOutputConfig *types.ProcessingOutputConfig diff --git a/service/sagemaker/api_op_DescribeTrainingJob.go b/service/sagemaker/api_op_DescribeTrainingJob.go index 6c0cd97bb8d..1e4a578fa62 100644 --- a/service/sagemaker/api_op_DescribeTrainingJob.go +++ b/service/sagemaker/api_op_DescribeTrainingJob.go @@ -183,28 +183,28 @@ type DescribeTrainingJobOutput struct { DebugHookConfig *types.DebugHookConfig // Configuration information for debugging rules. - DebugRuleConfigurations []*types.DebugRuleConfiguration + DebugRuleConfigurations []types.DebugRuleConfiguration // Status about the debug rule evaluation. - DebugRuleEvaluationStatuses []*types.DebugRuleEvaluationStatus + DebugRuleEvaluationStatuses []types.DebugRuleEvaluationStatus // To encrypt all communications between ML compute instances in distributed // training, choose True. Encryption provides greater security for distributed // training, but training might take longer. How long it takes depends on the // amount of communication between compute instances, especially if you use a deep // learning algorithms in distributed training. - EnableInterContainerTrafficEncryption *bool + EnableInterContainerTrafficEncryption bool // A Boolean indicating whether managed spot training is enabled (True) or not // (False). - EnableManagedSpotTraining *bool + EnableManagedSpotTraining bool // If you want to allow inbound or outbound network calls, except for calls between // peers within a training cluster for distributed training, choose True. If you // enable network isolation for training jobs that are configured to use a VPC, // Amazon SageMaker downloads and uploads customer data and model artifacts through // the specified VPC, but the training container does not have network access. - EnableNetworkIsolation *bool + EnableNetworkIsolation bool // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: @@ -222,13 +222,13 @@ type DescribeTrainingJobOutput struct { // A collection of MetricData objects that specify the names, values, and dates and // times that the training algorithm emitted to Amazon CloudWatch. - FinalMetricDataList []*types.MetricData + FinalMetricDataList []types.MetricData // Algorithm-specific parameters. - HyperParameters map[string]*string + HyperParameters map[string]string // An array of Channel objects that describes each data input channel. - InputDataConfig []*types.Channel + InputDataConfig []types.Channel // The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling job // that created the transform or training job. @@ -248,7 +248,7 @@ type DescribeTrainingJobOutput struct { // A history of all of the secondary statuses that the training job has // transitioned through. - SecondaryStatusTransitions []*types.SecondaryStatusTransition + SecondaryStatusTransitions []types.SecondaryStatusTransition // Configuration of storage locations for TensorBoard output. TensorBoardOutputConfig *types.TensorBoardOutputConfig diff --git a/service/sagemaker/api_op_DescribeTransformJob.go b/service/sagemaker/api_op_DescribeTransformJob.go index a6e59b5e00f..1b12c39cdcb 100644 --- a/service/sagemaker/api_op_DescribeTransformJob.go +++ b/service/sagemaker/api_op_DescribeTransformJob.go @@ -97,7 +97,7 @@ type DescribeTransformJobOutput struct { // The environment variables to set in the Docker container. We support up to 16 // key and values entries in the map. - Environment map[string]*string + Environment map[string]string // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: diff --git a/service/sagemaker/api_op_DescribeTrialComponent.go b/service/sagemaker/api_op_DescribeTrialComponent.go index 4bfe6961ec3..d65e76883ae 100644 --- a/service/sagemaker/api_op_DescribeTrialComponent.go +++ b/service/sagemaker/api_op_DescribeTrialComponent.go @@ -52,7 +52,7 @@ type DescribeTrialComponentOutput struct { EndTime *time.Time // The input artifacts of the component. - InputArtifacts map[string]*types.TrialComponentArtifact + InputArtifacts map[string]types.TrialComponentArtifact // Who last modified the component. LastModifiedBy *types.UserContext @@ -61,13 +61,13 @@ type DescribeTrialComponentOutput struct { LastModifiedTime *time.Time // The metrics for the component. - Metrics []*types.TrialComponentMetricSummary + Metrics []types.TrialComponentMetricSummary // The output artifacts of the component. - OutputArtifacts map[string]*types.TrialComponentArtifact + OutputArtifacts map[string]types.TrialComponentArtifact // The hyperparameters of the component. - Parameters map[string]*types.TrialComponentParameterValue + Parameters map[string]types.TrialComponentParameterValue // The Amazon Resource Name (ARN) of the source and, optionally, the job type. Source *types.TrialComponentSource diff --git a/service/sagemaker/api_op_GetSearchSuggestions.go b/service/sagemaker/api_op_GetSearchSuggestions.go index c852b9370c4..b5d0863722c 100644 --- a/service/sagemaker/api_op_GetSearchSuggestions.go +++ b/service/sagemaker/api_op_GetSearchSuggestions.go @@ -43,7 +43,7 @@ type GetSearchSuggestionsInput struct { type GetSearchSuggestionsOutput struct { // A list of property names for a Resource that match a SuggestionQuery. - PropertyNameSuggestions []*types.PropertyNameSuggestion + PropertyNameSuggestions []types.PropertyNameSuggestion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_ListAlgorithms.go b/service/sagemaker/api_op_ListAlgorithms.go index e9624aca3b5..c450c47fe82 100644 --- a/service/sagemaker/api_op_ListAlgorithms.go +++ b/service/sagemaker/api_op_ListAlgorithms.go @@ -62,7 +62,7 @@ type ListAlgorithmsOutput struct { // >An array of AlgorithmSummary objects, each of which lists an algorithm. // // This member is required. - AlgorithmSummaryList []*types.AlgorithmSummary + AlgorithmSummaryList []types.AlgorithmSummary // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of algorithms, use it in the subsequent request. diff --git a/service/sagemaker/api_op_ListAppImageConfigs.go b/service/sagemaker/api_op_ListAppImageConfigs.go index a93f8b1656d..acef835cca1 100644 --- a/service/sagemaker/api_op_ListAppImageConfigs.go +++ b/service/sagemaker/api_op_ListAppImageConfigs.go @@ -71,7 +71,7 @@ type ListAppImageConfigsInput struct { type ListAppImageConfigsOutput struct { // A list of AppImageConfigs and their properties. - AppImageConfigs []*types.AppImageConfigDetails + AppImageConfigs []types.AppImageConfigDetails // A token for getting the next set of AppImageConfigs, if there are any. NextToken *string diff --git a/service/sagemaker/api_op_ListApps.go b/service/sagemaker/api_op_ListApps.go index e5b8aca995e..b62b756bc55 100644 --- a/service/sagemaker/api_op_ListApps.go +++ b/service/sagemaker/api_op_ListApps.go @@ -52,7 +52,7 @@ type ListAppsInput struct { type ListAppsOutput struct { // The list of apps. - Apps []*types.AppDetails + Apps []types.AppDetails // If the previous response was truncated, you will receive this token. Use it in // your next request to receive the next set of results. diff --git a/service/sagemaker/api_op_ListAutoMLJobs.go b/service/sagemaker/api_op_ListAutoMLJobs.go index 1f691201be5..8baa35e2539 100644 --- a/service/sagemaker/api_op_ListAutoMLJobs.go +++ b/service/sagemaker/api_op_ListAutoMLJobs.go @@ -43,7 +43,7 @@ type ListAutoMLJobsInput struct { LastModifiedTimeBefore *time.Time // Request a list of jobs up to a specified limit. - MaxResults *int32 + MaxResults int32 // Request a list of jobs, using a search filter for name. NameContains *string @@ -67,7 +67,7 @@ type ListAutoMLJobsOutput struct { // Returns a summary list of jobs. // // This member is required. - AutoMLJobSummaries []*types.AutoMLJobSummary + AutoMLJobSummaries []types.AutoMLJobSummary // If the previous response was truncated, you receive this token. Use it in your // next request to receive the next set of results. diff --git a/service/sagemaker/api_op_ListCandidatesForAutoMLJob.go b/service/sagemaker/api_op_ListCandidatesForAutoMLJob.go index e7bab993ac2..5237b618a34 100644 --- a/service/sagemaker/api_op_ListCandidatesForAutoMLJob.go +++ b/service/sagemaker/api_op_ListCandidatesForAutoMLJob.go @@ -38,7 +38,7 @@ type ListCandidatesForAutoMLJobInput struct { CandidateNameEquals *string // List the job's Candidates up to a specified limit. - MaxResults *int32 + MaxResults int32 // If the previous response was truncated, you receive this token. Use it in your // next request to receive the next set of results. @@ -59,7 +59,7 @@ type ListCandidatesForAutoMLJobOutput struct { // Summaries about the Candidates. // // This member is required. - Candidates []*types.AutoMLCandidate + Candidates []types.AutoMLCandidate // If the previous response was truncated, you receive this token. Use it in your // next request to receive the next set of results. diff --git a/service/sagemaker/api_op_ListCodeRepositories.go b/service/sagemaker/api_op_ListCodeRepositories.go index 2083a7cc33b..fe692d00449 100644 --- a/service/sagemaker/api_op_ListCodeRepositories.go +++ b/service/sagemaker/api_op_ListCodeRepositories.go @@ -84,7 +84,7 @@ type ListCodeRepositoriesOutput struct { // that contains the credentials used to access the repository. // // This member is required. - CodeRepositorySummaryList []*types.CodeRepositorySummary + CodeRepositorySummaryList []types.CodeRepositorySummary // If the result of a ListCodeRepositoriesOutput request was truncated, the // response includes a NextToken. To get the next set of Git repositories, use the diff --git a/service/sagemaker/api_op_ListCompilationJobs.go b/service/sagemaker/api_op_ListCompilationJobs.go index f684e4d35e1..ab0896e8176 100644 --- a/service/sagemaker/api_op_ListCompilationJobs.go +++ b/service/sagemaker/api_op_ListCompilationJobs.go @@ -77,7 +77,7 @@ type ListCompilationJobsOutput struct { // job. // // This member is required. - CompilationJobSummaries []*types.CompilationJobSummary + CompilationJobSummaries []types.CompilationJobSummary // If the response is truncated, Amazon SageMaker returns this NextToken. To // retrieve the next set of model compilation jobs, use this token in the next diff --git a/service/sagemaker/api_op_ListDomains.go b/service/sagemaker/api_op_ListDomains.go index c5e7d11a71f..04160053ba6 100644 --- a/service/sagemaker/api_op_ListDomains.go +++ b/service/sagemaker/api_op_ListDomains.go @@ -40,7 +40,7 @@ type ListDomainsInput struct { type ListDomainsOutput struct { // The list of domains. - Domains []*types.DomainDetails + Domains []types.DomainDetails // If the previous response was truncated, you will receive this token. Use it in // your next request to receive the next set of results. diff --git a/service/sagemaker/api_op_ListEndpointConfigs.go b/service/sagemaker/api_op_ListEndpointConfigs.go index 98029015c89..613648e49cb 100644 --- a/service/sagemaker/api_op_ListEndpointConfigs.go +++ b/service/sagemaker/api_op_ListEndpointConfigs.go @@ -62,7 +62,7 @@ type ListEndpointConfigsOutput struct { // An array of endpoint configurations. // // This member is required. - EndpointConfigs []*types.EndpointConfigSummary + EndpointConfigs []types.EndpointConfigSummary // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of endpoint configurations, use it in the subsequent request diff --git a/service/sagemaker/api_op_ListEndpoints.go b/service/sagemaker/api_op_ListEndpoints.go index baeddf0ef7b..9d99985bca4 100644 --- a/service/sagemaker/api_op_ListEndpoints.go +++ b/service/sagemaker/api_op_ListEndpoints.go @@ -73,7 +73,7 @@ type ListEndpointsOutput struct { // An array or endpoint objects. // // This member is required. - Endpoints []*types.EndpointSummary + Endpoints []types.EndpointSummary // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of training jobs, use it in the subsequent request. diff --git a/service/sagemaker/api_op_ListExperiments.go b/service/sagemaker/api_op_ListExperiments.go index 29b6f04ea31..8f9a57d6742 100644 --- a/service/sagemaker/api_op_ListExperiments.go +++ b/service/sagemaker/api_op_ListExperiments.go @@ -56,7 +56,7 @@ type ListExperimentsInput struct { type ListExperimentsOutput struct { // A list of the summaries of your experiments. - ExperimentSummaries []*types.ExperimentSummary + ExperimentSummaries []types.ExperimentSummary // A token for getting the next set of experiments, if there are any. NextToken *string diff --git a/service/sagemaker/api_op_ListFlowDefinitions.go b/service/sagemaker/api_op_ListFlowDefinitions.go index abb9ade21be..caed1c01e18 100644 --- a/service/sagemaker/api_op_ListFlowDefinitions.go +++ b/service/sagemaker/api_op_ListFlowDefinitions.go @@ -56,7 +56,7 @@ type ListFlowDefinitionsOutput struct { // An array of objects describing the flow definitions. // // This member is required. - FlowDefinitionSummaries []*types.FlowDefinitionSummary + FlowDefinitionSummaries []types.FlowDefinitionSummary // A token to resume pagination. NextToken *string diff --git a/service/sagemaker/api_op_ListHumanTaskUis.go b/service/sagemaker/api_op_ListHumanTaskUis.go index 2e3f5239f0c..598462a637e 100644 --- a/service/sagemaker/api_op_ListHumanTaskUis.go +++ b/service/sagemaker/api_op_ListHumanTaskUis.go @@ -56,7 +56,7 @@ type ListHumanTaskUisOutput struct { // An array of objects describing the human task user interfaces. // // This member is required. - HumanTaskUiSummaries []*types.HumanTaskUiSummary + HumanTaskUiSummaries []types.HumanTaskUiSummary // A token to resume pagination. NextToken *string diff --git a/service/sagemaker/api_op_ListHyperParameterTuningJobs.go b/service/sagemaker/api_op_ListHyperParameterTuningJobs.go index e5961a3c6b3..af09562d6ca 100644 --- a/service/sagemaker/api_op_ListHyperParameterTuningJobs.go +++ b/service/sagemaker/api_op_ListHyperParameterTuningJobs.go @@ -75,7 +75,7 @@ type ListHyperParameterTuningJobsOutput struct { // that the ListHyperParameterTuningJobs request returned. // // This member is required. - HyperParameterTuningJobSummaries []*types.HyperParameterTuningJobSummary + HyperParameterTuningJobSummaries []types.HyperParameterTuningJobSummary // If the result of this ListHyperParameterTuningJobs request was truncated, the // response includes a NextToken. To retrieve the next set of tuning jobs, use the diff --git a/service/sagemaker/api_op_ListImageVersions.go b/service/sagemaker/api_op_ListImageVersions.go index c70bc8e157c..4c81b2977b9 100644 --- a/service/sagemaker/api_op_ListImageVersions.go +++ b/service/sagemaker/api_op_ListImageVersions.go @@ -66,7 +66,7 @@ type ListImageVersionsInput struct { type ListImageVersionsOutput struct { // A list of versions and their properties. - ImageVersions []*types.ImageVersion + ImageVersions []types.ImageVersion // A token for getting the next set of versions, if there are any. NextToken *string diff --git a/service/sagemaker/api_op_ListImages.go b/service/sagemaker/api_op_ListImages.go index f56b0f136a0..981f09874fa 100644 --- a/service/sagemaker/api_op_ListImages.go +++ b/service/sagemaker/api_op_ListImages.go @@ -64,7 +64,7 @@ type ListImagesInput struct { type ListImagesOutput struct { // A list of images and their properties. - Images []*types.Image + Images []types.Image // A token for getting the next set of images, if there are any. NextToken *string diff --git a/service/sagemaker/api_op_ListLabelingJobs.go b/service/sagemaker/api_op_ListLabelingJobs.go index 1abf0c6b780..d258e247ed1 100644 --- a/service/sagemaker/api_op_ListLabelingJobs.go +++ b/service/sagemaker/api_op_ListLabelingJobs.go @@ -71,7 +71,7 @@ type ListLabelingJobsInput struct { type ListLabelingJobsOutput struct { // An array of LabelingJobSummary objects, each describing a labeling job. - LabelingJobSummaryList []*types.LabelingJobSummary + LabelingJobSummaryList []types.LabelingJobSummary // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of labeling jobs, use it in the subsequent request. diff --git a/service/sagemaker/api_op_ListLabelingJobsForWorkteam.go b/service/sagemaker/api_op_ListLabelingJobsForWorkteam.go index 9e9823395fc..96a325e6dd1 100644 --- a/service/sagemaker/api_op_ListLabelingJobsForWorkteam.go +++ b/service/sagemaker/api_op_ListLabelingJobsForWorkteam.go @@ -68,7 +68,7 @@ type ListLabelingJobsForWorkteamOutput struct { // An array of LabelingJobSummary objects, each describing a labeling job. // // This member is required. - LabelingJobSummaryList []*types.LabelingJobForWorkteamSummary + LabelingJobSummaryList []types.LabelingJobForWorkteamSummary // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of labeling jobs, use it in the subsequent request. diff --git a/service/sagemaker/api_op_ListModelPackages.go b/service/sagemaker/api_op_ListModelPackages.go index e163842b6db..1a7d6ffeb32 100644 --- a/service/sagemaker/api_op_ListModelPackages.go +++ b/service/sagemaker/api_op_ListModelPackages.go @@ -62,7 +62,7 @@ type ListModelPackagesOutput struct { // An array of ModelPackageSummary objects, each of which lists a model package. // // This member is required. - ModelPackageSummaryList []*types.ModelPackageSummary + ModelPackageSummaryList []types.ModelPackageSummary // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of model packages, use it in the subsequent request. diff --git a/service/sagemaker/api_op_ListModels.go b/service/sagemaker/api_op_ListModels.go index aa46abe7fcc..6b59d36d139 100644 --- a/service/sagemaker/api_op_ListModels.go +++ b/service/sagemaker/api_op_ListModels.go @@ -61,7 +61,7 @@ type ListModelsOutput struct { // An array of ModelSummary objects, each of which lists a model. // // This member is required. - Models []*types.ModelSummary + Models []types.ModelSummary // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of models, use it in the subsequent request. diff --git a/service/sagemaker/api_op_ListMonitoringExecutions.go b/service/sagemaker/api_op_ListMonitoringExecutions.go index 5cdc0105561..c71bb9a24d2 100644 --- a/service/sagemaker/api_op_ListMonitoringExecutions.go +++ b/service/sagemaker/api_op_ListMonitoringExecutions.go @@ -78,7 +78,7 @@ type ListMonitoringExecutionsOutput struct { // A JSON array in which each element is a summary for a monitoring execution. // // This member is required. - MonitoringExecutionSummaries []*types.MonitoringExecutionSummary + MonitoringExecutionSummaries []types.MonitoringExecutionSummary // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of jobs, use it in the subsequent reques diff --git a/service/sagemaker/api_op_ListMonitoringSchedules.go b/service/sagemaker/api_op_ListMonitoringSchedules.go index 26ddd9c2c2e..21bb3f64ec1 100644 --- a/service/sagemaker/api_op_ListMonitoringSchedules.go +++ b/service/sagemaker/api_op_ListMonitoringSchedules.go @@ -74,7 +74,7 @@ type ListMonitoringSchedulesOutput struct { // A JSON array in which each element is a summary for a monitoring schedule. // // This member is required. - MonitoringScheduleSummaries []*types.MonitoringScheduleSummary + MonitoringScheduleSummaries []types.MonitoringScheduleSummary // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of jobs, use it in the subsequent reques diff --git a/service/sagemaker/api_op_ListNotebookInstanceLifecycleConfigs.go b/service/sagemaker/api_op_ListNotebookInstanceLifecycleConfigs.go index 0d7aff45bfa..14260e0df57 100644 --- a/service/sagemaker/api_op_ListNotebookInstanceLifecycleConfigs.go +++ b/service/sagemaker/api_op_ListNotebookInstanceLifecycleConfigs.go @@ -74,7 +74,7 @@ type ListNotebookInstanceLifecycleConfigsOutput struct { // An array of NotebookInstanceLifecycleConfiguration objects, each listing a // lifecycle configuration. - NotebookInstanceLifecycleConfigs []*types.NotebookInstanceLifecycleConfigSummary + NotebookInstanceLifecycleConfigs []types.NotebookInstanceLifecycleConfigSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_ListNotebookInstances.go b/service/sagemaker/api_op_ListNotebookInstances.go index c5fdde4b4c0..79b01a92e08 100644 --- a/service/sagemaker/api_op_ListNotebookInstances.go +++ b/service/sagemaker/api_op_ListNotebookInstances.go @@ -95,7 +95,7 @@ type ListNotebookInstancesOutput struct { NextToken *string // An array of NotebookInstanceSummary objects, one for each notebook instance. - NotebookInstances []*types.NotebookInstanceSummary + NotebookInstances []types.NotebookInstanceSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_ListProcessingJobs.go b/service/sagemaker/api_op_ListProcessingJobs.go index ab472820984..ec12bf95431 100644 --- a/service/sagemaker/api_op_ListProcessingJobs.go +++ b/service/sagemaker/api_op_ListProcessingJobs.go @@ -69,7 +69,7 @@ type ListProcessingJobsOutput struct { // An array of ProcessingJobSummary objects, each listing a processing job. // // This member is required. - ProcessingJobSummaries []*types.ProcessingJobSummary + ProcessingJobSummaries []types.ProcessingJobSummary // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of processing jobs, use it in the subsequent request. diff --git a/service/sagemaker/api_op_ListSubscribedWorkteams.go b/service/sagemaker/api_op_ListSubscribedWorkteams.go index 5e043bf5330..74cbeb90ed5 100644 --- a/service/sagemaker/api_op_ListSubscribedWorkteams.go +++ b/service/sagemaker/api_op_ListSubscribedWorkteams.go @@ -49,7 +49,7 @@ type ListSubscribedWorkteamsOutput struct { // An array of Workteam objects, each describing a work team. // // This member is required. - SubscribedWorkteams []*types.SubscribedWorkteam + SubscribedWorkteams []types.SubscribedWorkteam // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of work teams, use it in the subsequent request. diff --git a/service/sagemaker/api_op_ListTags.go b/service/sagemaker/api_op_ListTags.go index 9597492bb51..5f966ab2f49 100644 --- a/service/sagemaker/api_op_ListTags.go +++ b/service/sagemaker/api_op_ListTags.go @@ -50,7 +50,7 @@ type ListTagsOutput struct { NextToken *string // An array of Tag objects, each with a tag key and a value. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_ListTrainingJobs.go b/service/sagemaker/api_op_ListTrainingJobs.go index 45f3fea683a..34ebca55c72 100644 --- a/service/sagemaker/api_op_ListTrainingJobs.go +++ b/service/sagemaker/api_op_ListTrainingJobs.go @@ -73,7 +73,7 @@ type ListTrainingJobsOutput struct { // An array of TrainingJobSummary objects, each listing a training job. // // This member is required. - TrainingJobSummaries []*types.TrainingJobSummary + TrainingJobSummaries []types.TrainingJobSummary // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of training jobs, use it in the subsequent request. diff --git a/service/sagemaker/api_op_ListTrainingJobsForHyperParameterTuningJob.go b/service/sagemaker/api_op_ListTrainingJobsForHyperParameterTuningJob.go index e64deb20970..0751818fa63 100644 --- a/service/sagemaker/api_op_ListTrainingJobsForHyperParameterTuningJob.go +++ b/service/sagemaker/api_op_ListTrainingJobsForHyperParameterTuningJob.go @@ -61,7 +61,7 @@ type ListTrainingJobsForHyperParameterTuningJobOutput struct { // ListTrainingJobsForHyperParameterTuningJob request returned. // // This member is required. - TrainingJobSummaries []*types.HyperParameterTrainingJobSummary + TrainingJobSummaries []types.HyperParameterTrainingJobSummary // If the result of this ListTrainingJobsForHyperParameterTuningJob request was // truncated, the response includes a NextToken. To retrieve the next set of diff --git a/service/sagemaker/api_op_ListTransformJobs.go b/service/sagemaker/api_op_ListTransformJobs.go index 06548d79715..8576f65cd0f 100644 --- a/service/sagemaker/api_op_ListTransformJobs.go +++ b/service/sagemaker/api_op_ListTransformJobs.go @@ -70,7 +70,7 @@ type ListTransformJobsOutput struct { // An array of TransformJobSummary objects. // // This member is required. - TransformJobSummaries []*types.TransformJobSummary + TransformJobSummaries []types.TransformJobSummary // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of transform jobs, use it in the next request. diff --git a/service/sagemaker/api_op_ListTrialComponents.go b/service/sagemaker/api_op_ListTrialComponents.go index 8cf20ea8a23..005ea420a73 100644 --- a/service/sagemaker/api_op_ListTrialComponents.go +++ b/service/sagemaker/api_op_ListTrialComponents.go @@ -79,7 +79,7 @@ type ListTrialComponentsOutput struct { NextToken *string // A list of the summaries of your trial components. - TrialComponentSummaries []*types.TrialComponentSummary + TrialComponentSummaries []types.TrialComponentSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_ListTrials.go b/service/sagemaker/api_op_ListTrials.go index a6e1893f8e8..d2cb5ba0a08 100644 --- a/service/sagemaker/api_op_ListTrials.go +++ b/service/sagemaker/api_op_ListTrials.go @@ -67,7 +67,7 @@ type ListTrialsOutput struct { NextToken *string // A list of the summaries of your trials. - TrialSummaries []*types.TrialSummary + TrialSummaries []types.TrialSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_ListUserProfiles.go b/service/sagemaker/api_op_ListUserProfiles.go index fd22ad72765..ac55318f76b 100644 --- a/service/sagemaker/api_op_ListUserProfiles.go +++ b/service/sagemaker/api_op_ListUserProfiles.go @@ -56,7 +56,7 @@ type ListUserProfilesOutput struct { NextToken *string // The list of user profiles. - UserProfiles []*types.UserProfileDetails + UserProfiles []types.UserProfileDetails // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_ListWorkforces.go b/service/sagemaker/api_op_ListWorkforces.go index 947536a0f4b..07881d2263d 100644 --- a/service/sagemaker/api_op_ListWorkforces.go +++ b/service/sagemaker/api_op_ListWorkforces.go @@ -51,7 +51,7 @@ type ListWorkforcesOutput struct { // A list containing information about your workforce. // // This member is required. - Workforces []*types.Workforce + Workforces []types.Workforce // A token to resume pagination. NextToken *string diff --git a/service/sagemaker/api_op_ListWorkteams.go b/service/sagemaker/api_op_ListWorkteams.go index f60974b39b4..0bd6ff4d887 100644 --- a/service/sagemaker/api_op_ListWorkteams.go +++ b/service/sagemaker/api_op_ListWorkteams.go @@ -55,7 +55,7 @@ type ListWorkteamsOutput struct { // An array of Workteam objects, each describing a work team. // // This member is required. - Workteams []*types.Workteam + Workteams []types.Workteam // If the response is truncated, Amazon SageMaker returns this token. To retrieve // the next set of work teams, use it in the subsequent request. diff --git a/service/sagemaker/api_op_RenderUiTemplate.go b/service/sagemaker/api_op_RenderUiTemplate.go index 8cf0a1267d8..d51b91ecce6 100644 --- a/service/sagemaker/api_op_RenderUiTemplate.go +++ b/service/sagemaker/api_op_RenderUiTemplate.go @@ -55,7 +55,7 @@ type RenderUiTemplateOutput struct { // rendering the template. If there were no errors, the list is empty. // // This member is required. - Errors []*types.RenderingError + Errors []types.RenderingError // A Liquid template that renders the HTML for the worker UI. // diff --git a/service/sagemaker/api_op_Search.go b/service/sagemaker/api_op_Search.go index 2c78acff4b0..1f9244057f2 100644 --- a/service/sagemaker/api_op_Search.go +++ b/service/sagemaker/api_op_Search.go @@ -69,7 +69,7 @@ type SearchOutput struct { NextToken *string // A list of SearchRecord objects. - Results []*types.SearchRecord + Results []types.SearchRecord // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_UpdateEndpoint.go b/service/sagemaker/api_op_UpdateEndpoint.go index f4fea02d6f5..9a065314f9a 100644 --- a/service/sagemaker/api_op_UpdateEndpoint.go +++ b/service/sagemaker/api_op_UpdateEndpoint.go @@ -55,7 +55,7 @@ type UpdateEndpointInput struct { // ExcludeRetainedVariantProperties specifies the list of type VariantProperty to // override with the values provided by EndpointConfig. If you don't specify a // value for ExcludeAllVariantProperties, no variant properties are overridden. - ExcludeRetainedVariantProperties []*types.VariantProperty + ExcludeRetainedVariantProperties []types.VariantProperty // When updating endpoint resources, enables or disables the retention of variant // properties, such as the instance count or the variant weight. To retain the @@ -63,7 +63,7 @@ type UpdateEndpointInput struct { // RetainAllVariantProperties to true. To use the variant properties specified in a // new EndpointConfig call when updating an endpoint, set // RetainAllVariantProperties to false. - RetainAllVariantProperties *bool + RetainAllVariantProperties bool } type UpdateEndpointOutput struct { diff --git a/service/sagemaker/api_op_UpdateEndpointWeightsAndCapacities.go b/service/sagemaker/api_op_UpdateEndpointWeightsAndCapacities.go index 33e62d41c71..cd9bb8fb7c6 100644 --- a/service/sagemaker/api_op_UpdateEndpointWeightsAndCapacities.go +++ b/service/sagemaker/api_op_UpdateEndpointWeightsAndCapacities.go @@ -36,7 +36,7 @@ type UpdateEndpointWeightsAndCapacitiesInput struct { // An object that provides new capacity and weight values for a variant. // // This member is required. - DesiredWeightsAndCapacities []*types.DesiredWeightAndCapacity + DesiredWeightsAndCapacities []types.DesiredWeightAndCapacity // The name of an existing Amazon SageMaker endpoint. // diff --git a/service/sagemaker/api_op_UpdateImage.go b/service/sagemaker/api_op_UpdateImage.go index 9ca2f577a26..1c0409dfa5c 100644 --- a/service/sagemaker/api_op_UpdateImage.go +++ b/service/sagemaker/api_op_UpdateImage.go @@ -36,7 +36,7 @@ type UpdateImageInput struct { // A list of properties to delete. Only the Description and DisplayName properties // can be deleted. - DeleteProperties []*string + DeleteProperties []string // The new description for the image. Description *string diff --git a/service/sagemaker/api_op_UpdateNotebookInstance.go b/service/sagemaker/api_op_UpdateNotebookInstance.go index 9e071276fe2..d75a4117aeb 100644 --- a/service/sagemaker/api_op_UpdateNotebookInstance.go +++ b/service/sagemaker/api_op_UpdateNotebookInstance.go @@ -50,7 +50,7 @@ type UpdateNotebookInstanceInput struct { // default repository of your notebook instance. For more information, see // Associating Git Repositories with Amazon SageMaker Notebook Instances // (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). - AdditionalCodeRepositories []*string + AdditionalCodeRepositories []string // The Git repository to associate with the notebook instance as its default code // repository. This can be either the name of a Git repository stored as a resource @@ -66,25 +66,25 @@ type UpdateNotebookInstanceInput struct { // instance. This operation is idempotent. If you specify an accelerator type that // is not associated with the notebook instance when you call this method, it does // not throw an error. - DisassociateAcceleratorTypes *bool + DisassociateAcceleratorTypes bool // A list of names or URLs of the default Git repositories to remove from this // notebook instance. This operation is idempotent. If you specify a Git repository // that is not associated with the notebook instance when you call this method, it // does not throw an error. - DisassociateAdditionalCodeRepositories *bool + DisassociateAdditionalCodeRepositories bool // The name or URL of the default Git repository to remove from this notebook // instance. This operation is idempotent. If you specify a Git repository that is // not associated with the notebook instance when you call this method, it does not // throw an error. - DisassociateDefaultCodeRepository *bool + DisassociateDefaultCodeRepository bool // Set to true to remove the notebook instance lifecycle configuration currently // associated with the notebook instance. This operation is idempotent. If you // specify a lifecycle configuration that is not associated with the notebook // instance when you call this method, it does not throw an error. - DisassociateLifecycleConfig *bool + DisassociateLifecycleConfig bool // The Amazon ML compute instance type. InstanceType types.InstanceType diff --git a/service/sagemaker/api_op_UpdateNotebookInstanceLifecycleConfig.go b/service/sagemaker/api_op_UpdateNotebookInstanceLifecycleConfig.go index 2138a57ca91..7eb84cc5aae 100644 --- a/service/sagemaker/api_op_UpdateNotebookInstanceLifecycleConfig.go +++ b/service/sagemaker/api_op_UpdateNotebookInstanceLifecycleConfig.go @@ -37,12 +37,12 @@ type UpdateNotebookInstanceLifecycleConfigInput struct { // The shell script that runs only once, when you create a notebook instance. The // shell script must be a base64-encoded string. - OnCreate []*types.NotebookInstanceLifecycleHook + OnCreate []types.NotebookInstanceLifecycleHook // The shell script that runs every time you start a notebook instance, including // when you create the notebook instance. The shell script must be a base64-encoded // string. - OnStart []*types.NotebookInstanceLifecycleHook + OnStart []types.NotebookInstanceLifecycleHook } type UpdateNotebookInstanceLifecycleConfigOutput struct { diff --git a/service/sagemaker/api_op_UpdateTrialComponent.go b/service/sagemaker/api_op_UpdateTrialComponent.go index d74a6b15c92..b7080c66549 100644 --- a/service/sagemaker/api_op_UpdateTrialComponent.go +++ b/service/sagemaker/api_op_UpdateTrialComponent.go @@ -43,23 +43,23 @@ type UpdateTrialComponentInput struct { EndTime *time.Time // Replaces all of the component's input artifacts with the specified artifacts. - InputArtifacts map[string]*types.TrialComponentArtifact + InputArtifacts map[string]types.TrialComponentArtifact // The input artifacts to remove from the component. - InputArtifactsToRemove []*string + InputArtifactsToRemove []string // Replaces all of the component's output artifacts with the specified artifacts. - OutputArtifacts map[string]*types.TrialComponentArtifact + OutputArtifacts map[string]types.TrialComponentArtifact // The output artifacts to remove from the component. - OutputArtifactsToRemove []*string + OutputArtifactsToRemove []string // Replaces all of the component's hyperparameters with the specified // hyperparameters. - Parameters map[string]*types.TrialComponentParameterValue + Parameters map[string]types.TrialComponentParameterValue // The hyperparameters to remove from the component. - ParametersToRemove []*string + ParametersToRemove []string // When the component started. StartTime *time.Time diff --git a/service/sagemaker/api_op_UpdateWorkteam.go b/service/sagemaker/api_op_UpdateWorkteam.go index f8b890f4ab1..85d5d2eb311 100644 --- a/service/sagemaker/api_op_UpdateWorkteam.go +++ b/service/sagemaker/api_op_UpdateWorkteam.go @@ -56,7 +56,7 @@ type UpdateWorkteamInput struct { // team must also be listed in Groups when you make this request to remain on the // work team. If you do not include these user groups, they will no longer be // associated with the work team you update. - MemberDefinitions []*types.MemberDefinition + MemberDefinitions []types.MemberDefinition // Configures SNS topic notifications for available or expiring work items NotificationConfiguration *types.NotificationConfiguration diff --git a/service/sagemaker/deserializers.go b/service/sagemaker/deserializers.go index 85a02645f38..e14cca3826f 100644 --- a/service/sagemaker/deserializers.go +++ b/service/sagemaker/deserializers.go @@ -16857,7 +16857,7 @@ func awsAwsjson11_deserializeErrorResourceNotFound(response *smithyhttp.Response return output } -func awsAwsjson11_deserializeDocumentAdditionalCodeRepositoryNamesOrUrls(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAdditionalCodeRepositoryNamesOrUrls(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16870,21 +16870,21 @@ func awsAwsjson11_deserializeDocumentAdditionalCodeRepositoryNamesOrUrls(v *[]*s return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected CodeRepositoryNameOrUrl to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -16921,7 +16921,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmSpecification(v **types.AlgorithmS if !ok { return fmt.Errorf("expected ArnOrName to be of type string, got %T instead", value) } - sv.AlgorithmName = &jtv + sv.AlgorithmName = ptr.String(jtv) } case "EnableSageMakerMetricsTimeSeries": @@ -16930,7 +16930,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmSpecification(v **types.AlgorithmS if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableSageMakerMetricsTimeSeries = &jtv + sv.EnableSageMakerMetricsTimeSeries = jtv } case "MetricDefinitions": @@ -16944,7 +16944,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmSpecification(v **types.AlgorithmS if !ok { return fmt.Errorf("expected AlgorithmImage to be of type string, got %T instead", value) } - sv.TrainingImage = &jtv + sv.TrainingImage = ptr.String(jtv) } case "TrainingInputMode": @@ -17034,7 +17034,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmStatusItem(v **types.AlgorithmStat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "Name": @@ -17043,7 +17043,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmStatusItem(v **types.AlgorithmStat if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -17064,7 +17064,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmStatusItem(v **types.AlgorithmStat return nil } -func awsAwsjson11_deserializeDocumentAlgorithmStatusItemList(v *[]*types.AlgorithmStatusItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentAlgorithmStatusItemList(v *[]types.AlgorithmStatusItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17077,18 +17077,20 @@ func awsAwsjson11_deserializeDocumentAlgorithmStatusItemList(v *[]*types.Algorit return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AlgorithmStatusItem + var cv []types.AlgorithmStatusItem if *v == nil { - cv = []*types.AlgorithmStatusItem{} + cv = []types.AlgorithmStatusItem{} } else { cv = *v } for _, value := range shape { - var col *types.AlgorithmStatusItem - if err := awsAwsjson11_deserializeDocumentAlgorithmStatusItem(&col, value); err != nil { + var col types.AlgorithmStatusItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAlgorithmStatusItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17124,7 +17126,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmSummary(v **types.AlgorithmSummary if !ok { return fmt.Errorf("expected AlgorithmArn to be of type string, got %T instead", value) } - sv.AlgorithmArn = &jtv + sv.AlgorithmArn = ptr.String(jtv) } case "AlgorithmDescription": @@ -17133,7 +17135,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmSummary(v **types.AlgorithmSummary if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.AlgorithmDescription = &jtv + sv.AlgorithmDescription = ptr.String(jtv) } case "AlgorithmName": @@ -17142,7 +17144,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmSummary(v **types.AlgorithmSummary if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.AlgorithmName = &jtv + sv.AlgorithmName = ptr.String(jtv) } case "AlgorithmStatus": @@ -17176,7 +17178,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmSummary(v **types.AlgorithmSummary return nil } -func awsAwsjson11_deserializeDocumentAlgorithmSummaryList(v *[]*types.AlgorithmSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentAlgorithmSummaryList(v *[]types.AlgorithmSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17189,18 +17191,20 @@ func awsAwsjson11_deserializeDocumentAlgorithmSummaryList(v *[]*types.AlgorithmS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AlgorithmSummary + var cv []types.AlgorithmSummary if *v == nil { - cv = []*types.AlgorithmSummary{} + cv = []types.AlgorithmSummary{} } else { cv = *v } for _, value := range shape { - var col *types.AlgorithmSummary - if err := awsAwsjson11_deserializeDocumentAlgorithmSummary(&col, value); err != nil { + var col types.AlgorithmSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAlgorithmSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17236,7 +17240,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmValidationProfile(v **types.Algori if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.ProfileName = &jtv + sv.ProfileName = ptr.String(jtv) } case "TrainingJobDefinition": @@ -17258,7 +17262,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmValidationProfile(v **types.Algori return nil } -func awsAwsjson11_deserializeDocumentAlgorithmValidationProfiles(v *[]*types.AlgorithmValidationProfile, value interface{}) error { +func awsAwsjson11_deserializeDocumentAlgorithmValidationProfiles(v *[]types.AlgorithmValidationProfile, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17271,18 +17275,20 @@ func awsAwsjson11_deserializeDocumentAlgorithmValidationProfiles(v *[]*types.Alg return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AlgorithmValidationProfile + var cv []types.AlgorithmValidationProfile if *v == nil { - cv = []*types.AlgorithmValidationProfile{} + cv = []types.AlgorithmValidationProfile{} } else { cv = *v } for _, value := range shape { - var col *types.AlgorithmValidationProfile - if err := awsAwsjson11_deserializeDocumentAlgorithmValidationProfile(&col, value); err != nil { + var col types.AlgorithmValidationProfile + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAlgorithmValidationProfile(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17323,7 +17329,7 @@ func awsAwsjson11_deserializeDocumentAlgorithmValidationSpecification(v **types. if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.ValidationRole = &jtv + sv.ValidationRole = ptr.String(jtv) } default: @@ -17363,7 +17369,7 @@ func awsAwsjson11_deserializeDocumentAnnotationConsolidationConfig(v **types.Ann if !ok { return fmt.Errorf("expected LambdaFunctionArn to be of type string, got %T instead", value) } - sv.AnnotationConsolidationLambdaArn = &jtv + sv.AnnotationConsolidationLambdaArn = ptr.String(jtv) } default: @@ -17403,7 +17409,7 @@ func awsAwsjson11_deserializeDocumentAppDetails(v **types.AppDetails, value inte if !ok { return fmt.Errorf("expected AppName to be of type string, got %T instead", value) } - sv.AppName = &jtv + sv.AppName = ptr.String(jtv) } case "AppType": @@ -17434,7 +17440,7 @@ func awsAwsjson11_deserializeDocumentAppDetails(v **types.AppDetails, value inte if !ok { return fmt.Errorf("expected DomainId to be of type string, got %T instead", value) } - sv.DomainId = &jtv + sv.DomainId = ptr.String(jtv) } case "Status": @@ -17452,7 +17458,7 @@ func awsAwsjson11_deserializeDocumentAppDetails(v **types.AppDetails, value inte if !ok { return fmt.Errorf("expected UserProfileName to be of type string, got %T instead", value) } - sv.UserProfileName = &jtv + sv.UserProfileName = ptr.String(jtv) } default: @@ -17492,7 +17498,7 @@ func awsAwsjson11_deserializeDocumentAppImageConfigDetails(v **types.AppImageCon if !ok { return fmt.Errorf("expected AppImageConfigArn to be of type string, got %T instead", value) } - sv.AppImageConfigArn = &jtv + sv.AppImageConfigArn = ptr.String(jtv) } case "AppImageConfigName": @@ -17501,7 +17507,7 @@ func awsAwsjson11_deserializeDocumentAppImageConfigDetails(v **types.AppImageCon if !ok { return fmt.Errorf("expected AppImageConfigName to be of type string, got %T instead", value) } - sv.AppImageConfigName = &jtv + sv.AppImageConfigName = ptr.String(jtv) } case "CreationTime": @@ -17544,7 +17550,7 @@ func awsAwsjson11_deserializeDocumentAppImageConfigDetails(v **types.AppImageCon return nil } -func awsAwsjson11_deserializeDocumentAppImageConfigList(v *[]*types.AppImageConfigDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentAppImageConfigList(v *[]types.AppImageConfigDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17557,18 +17563,20 @@ func awsAwsjson11_deserializeDocumentAppImageConfigList(v *[]*types.AppImageConf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AppImageConfigDetails + var cv []types.AppImageConfigDetails if *v == nil { - cv = []*types.AppImageConfigDetails{} + cv = []types.AppImageConfigDetails{} } else { cv = *v } for _, value := range shape { - var col *types.AppImageConfigDetails - if err := awsAwsjson11_deserializeDocumentAppImageConfigDetails(&col, value); err != nil { + var col types.AppImageConfigDetails + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAppImageConfigDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17576,7 +17584,7 @@ func awsAwsjson11_deserializeDocumentAppImageConfigList(v *[]*types.AppImageConf return nil } -func awsAwsjson11_deserializeDocumentAppList(v *[]*types.AppDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentAppList(v *[]types.AppDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17589,18 +17597,20 @@ func awsAwsjson11_deserializeDocumentAppList(v *[]*types.AppDetails, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AppDetails + var cv []types.AppDetails if *v == nil { - cv = []*types.AppDetails{} + cv = []types.AppDetails{} } else { cv = *v } for _, value := range shape { - var col *types.AppDetails - if err := awsAwsjson11_deserializeDocumentAppDetails(&col, value); err != nil { + var col types.AppDetails + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAppDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17646,7 +17656,7 @@ func awsAwsjson11_deserializeDocumentAppSpecification(v **types.AppSpecification if !ok { return fmt.Errorf("expected ImageUri to be of type string, got %T instead", value) } - sv.ImageUri = &jtv + sv.ImageUri = ptr.String(jtv) } default: @@ -17658,7 +17668,7 @@ func awsAwsjson11_deserializeDocumentAppSpecification(v **types.AppSpecification return nil } -func awsAwsjson11_deserializeDocumentAttributeNames(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttributeNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17671,21 +17681,21 @@ func awsAwsjson11_deserializeDocumentAttributeNames(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -17722,7 +17732,7 @@ func awsAwsjson11_deserializeDocumentAutoMLCandidate(v **types.AutoMLCandidate, if !ok { return fmt.Errorf("expected CandidateName to be of type string, got %T instead", value) } - sv.CandidateName = &jtv + sv.CandidateName = ptr.String(jtv) } case "CandidateStatus": @@ -17771,7 +17781,7 @@ func awsAwsjson11_deserializeDocumentAutoMLCandidate(v **types.AutoMLCandidate, if !ok { return fmt.Errorf("expected AutoMLFailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "FinalAutoMLJobObjectiveMetric": @@ -17815,7 +17825,7 @@ func awsAwsjson11_deserializeDocumentAutoMLCandidate(v **types.AutoMLCandidate, return nil } -func awsAwsjson11_deserializeDocumentAutoMLCandidates(v *[]*types.AutoMLCandidate, value interface{}) error { +func awsAwsjson11_deserializeDocumentAutoMLCandidates(v *[]types.AutoMLCandidate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17828,18 +17838,20 @@ func awsAwsjson11_deserializeDocumentAutoMLCandidates(v *[]*types.AutoMLCandidat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutoMLCandidate + var cv []types.AutoMLCandidate if *v == nil { - cv = []*types.AutoMLCandidate{} + cv = []types.AutoMLCandidate{} } else { cv = *v } for _, value := range shape { - var col *types.AutoMLCandidate - if err := awsAwsjson11_deserializeDocumentAutoMLCandidate(&col, value); err != nil { + var col types.AutoMLCandidate + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAutoMLCandidate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17875,7 +17887,7 @@ func awsAwsjson11_deserializeDocumentAutoMLCandidateStep(v **types.AutoMLCandida if !ok { return fmt.Errorf("expected CandidateStepArn to be of type string, got %T instead", value) } - sv.CandidateStepArn = &jtv + sv.CandidateStepArn = ptr.String(jtv) } case "CandidateStepName": @@ -17884,7 +17896,7 @@ func awsAwsjson11_deserializeDocumentAutoMLCandidateStep(v **types.AutoMLCandida if !ok { return fmt.Errorf("expected CandidateStepName to be of type string, got %T instead", value) } - sv.CandidateStepName = &jtv + sv.CandidateStepName = ptr.String(jtv) } case "CandidateStepType": @@ -17947,7 +17959,7 @@ func awsAwsjson11_deserializeDocumentAutoMLChannel(v **types.AutoMLChannel, valu if !ok { return fmt.Errorf("expected TargetAttributeName to be of type string, got %T instead", value) } - sv.TargetAttributeName = &jtv + sv.TargetAttributeName = ptr.String(jtv) } default: @@ -17992,7 +18004,7 @@ func awsAwsjson11_deserializeDocumentAutoMLContainerDefinition(v **types.AutoMLC if !ok { return fmt.Errorf("expected ContainerImage to be of type string, got %T instead", value) } - sv.Image = &jtv + sv.Image = ptr.String(jtv) } case "ModelDataUrl": @@ -18001,7 +18013,7 @@ func awsAwsjson11_deserializeDocumentAutoMLContainerDefinition(v **types.AutoMLC if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ModelDataUrl = &jtv + sv.ModelDataUrl = ptr.String(jtv) } default: @@ -18013,7 +18025,7 @@ func awsAwsjson11_deserializeDocumentAutoMLContainerDefinition(v **types.AutoMLC return nil } -func awsAwsjson11_deserializeDocumentAutoMLContainerDefinitions(v *[]*types.AutoMLContainerDefinition, value interface{}) error { +func awsAwsjson11_deserializeDocumentAutoMLContainerDefinitions(v *[]types.AutoMLContainerDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18026,18 +18038,20 @@ func awsAwsjson11_deserializeDocumentAutoMLContainerDefinitions(v *[]*types.Auto return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutoMLContainerDefinition + var cv []types.AutoMLContainerDefinition if *v == nil { - cv = []*types.AutoMLContainerDefinition{} + cv = []types.AutoMLContainerDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.AutoMLContainerDefinition - if err := awsAwsjson11_deserializeDocumentAutoMLContainerDefinition(&col, value); err != nil { + var col types.AutoMLContainerDefinition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAutoMLContainerDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18081,7 +18095,7 @@ func awsAwsjson11_deserializeDocumentAutoMLDataSource(v **types.AutoMLDataSource return nil } -func awsAwsjson11_deserializeDocumentAutoMLInputDataConfig(v *[]*types.AutoMLChannel, value interface{}) error { +func awsAwsjson11_deserializeDocumentAutoMLInputDataConfig(v *[]types.AutoMLChannel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18094,18 +18108,20 @@ func awsAwsjson11_deserializeDocumentAutoMLInputDataConfig(v *[]*types.AutoMLCha return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutoMLChannel + var cv []types.AutoMLChannel if *v == nil { - cv = []*types.AutoMLChannel{} + cv = []types.AutoMLChannel{} } else { cv = *v } for _, value := range shape { - var col *types.AutoMLChannel - if err := awsAwsjson11_deserializeDocumentAutoMLChannel(&col, value); err != nil { + var col types.AutoMLChannel + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAutoMLChannel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18141,7 +18157,7 @@ func awsAwsjson11_deserializeDocumentAutoMLJobArtifacts(v **types.AutoMLJobArtif if !ok { return fmt.Errorf("expected CandidateDefinitionNotebookLocation to be of type string, got %T instead", value) } - sv.CandidateDefinitionNotebookLocation = &jtv + sv.CandidateDefinitionNotebookLocation = ptr.String(jtv) } case "DataExplorationNotebookLocation": @@ -18150,7 +18166,7 @@ func awsAwsjson11_deserializeDocumentAutoMLJobArtifacts(v **types.AutoMLJobArtif if !ok { return fmt.Errorf("expected DataExplorationNotebookLocation to be of type string, got %T instead", value) } - sv.DataExplorationNotebookLocation = &jtv + sv.DataExplorationNotebookLocation = ptr.String(jtv) } default: @@ -18313,7 +18329,7 @@ func awsAwsjson11_deserializeDocumentAutoMLJobObjective(v **types.AutoMLJobObjec return nil } -func awsAwsjson11_deserializeDocumentAutoMLJobSummaries(v *[]*types.AutoMLJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentAutoMLJobSummaries(v *[]types.AutoMLJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18326,18 +18342,20 @@ func awsAwsjson11_deserializeDocumentAutoMLJobSummaries(v *[]*types.AutoMLJobSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutoMLJobSummary + var cv []types.AutoMLJobSummary if *v == nil { - cv = []*types.AutoMLJobSummary{} + cv = []types.AutoMLJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.AutoMLJobSummary - if err := awsAwsjson11_deserializeDocumentAutoMLJobSummary(&col, value); err != nil { + var col types.AutoMLJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAutoMLJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18373,7 +18391,7 @@ func awsAwsjson11_deserializeDocumentAutoMLJobSummary(v **types.AutoMLJobSummary if !ok { return fmt.Errorf("expected AutoMLJobArn to be of type string, got %T instead", value) } - sv.AutoMLJobArn = &jtv + sv.AutoMLJobArn = ptr.String(jtv) } case "AutoMLJobName": @@ -18382,7 +18400,7 @@ func awsAwsjson11_deserializeDocumentAutoMLJobSummary(v **types.AutoMLJobSummary if !ok { return fmt.Errorf("expected AutoMLJobName to be of type string, got %T instead", value) } - sv.AutoMLJobName = &jtv + sv.AutoMLJobName = ptr.String(jtv) } case "AutoMLJobSecondaryStatus": @@ -18435,7 +18453,7 @@ func awsAwsjson11_deserializeDocumentAutoMLJobSummary(v **types.AutoMLJobSummary if !ok { return fmt.Errorf("expected AutoMLFailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LastModifiedTime": @@ -18488,7 +18506,7 @@ func awsAwsjson11_deserializeDocumentAutoMLOutputDataConfig(v **types.AutoMLOutp if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "S3OutputPath": @@ -18497,7 +18515,7 @@ func awsAwsjson11_deserializeDocumentAutoMLOutputDataConfig(v **types.AutoMLOutp if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3OutputPath = &jtv + sv.S3OutputPath = ptr.String(jtv) } default: @@ -18546,7 +18564,7 @@ func awsAwsjson11_deserializeDocumentAutoMLS3DataSource(v **types.AutoMLS3DataSo if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -18586,7 +18604,7 @@ func awsAwsjson11_deserializeDocumentAutoMLSecurityConfig(v **types.AutoMLSecuri if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableInterContainerTrafficEncryption = &jtv + sv.EnableInterContainerTrafficEncryption = jtv } case "VolumeKmsKeyId": @@ -18595,7 +18613,7 @@ func awsAwsjson11_deserializeDocumentAutoMLSecurityConfig(v **types.AutoMLSecuri if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } case "VpcConfig": @@ -18612,7 +18630,7 @@ func awsAwsjson11_deserializeDocumentAutoMLSecurityConfig(v **types.AutoMLSecuri return nil } -func awsAwsjson11_deserializeDocumentCandidateSteps(v *[]*types.AutoMLCandidateStep, value interface{}) error { +func awsAwsjson11_deserializeDocumentCandidateSteps(v *[]types.AutoMLCandidateStep, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18625,18 +18643,20 @@ func awsAwsjson11_deserializeDocumentCandidateSteps(v *[]*types.AutoMLCandidateS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutoMLCandidateStep + var cv []types.AutoMLCandidateStep if *v == nil { - cv = []*types.AutoMLCandidateStep{} + cv = []types.AutoMLCandidateStep{} } else { cv = *v } for _, value := range shape { - var col *types.AutoMLCandidateStep - if err := awsAwsjson11_deserializeDocumentAutoMLCandidateStep(&col, value); err != nil { + var col types.AutoMLCandidateStep + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAutoMLCandidateStep(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18725,7 +18745,7 @@ func awsAwsjson11_deserializeDocumentCaptureOption(v **types.CaptureOption, valu return nil } -func awsAwsjson11_deserializeDocumentCaptureOptionList(v *[]*types.CaptureOption, value interface{}) error { +func awsAwsjson11_deserializeDocumentCaptureOptionList(v *[]types.CaptureOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18738,18 +18758,20 @@ func awsAwsjson11_deserializeDocumentCaptureOptionList(v *[]*types.CaptureOption return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CaptureOption + var cv []types.CaptureOption if *v == nil { - cv = []*types.CaptureOption{} + cv = []types.CaptureOption{} } else { cv = *v } for _, value := range shape { - var col *types.CaptureOption - if err := awsAwsjson11_deserializeDocumentCaptureOption(&col, value); err != nil { + var col types.CaptureOption + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCaptureOption(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18785,7 +18807,7 @@ func awsAwsjson11_deserializeDocumentCategoricalParameterRange(v **types.Categor if !ok { return fmt.Errorf("expected ParameterKey to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Values": @@ -18802,7 +18824,7 @@ func awsAwsjson11_deserializeDocumentCategoricalParameterRange(v **types.Categor return nil } -func awsAwsjson11_deserializeDocumentCategoricalParameterRanges(v *[]*types.CategoricalParameterRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentCategoricalParameterRanges(v *[]types.CategoricalParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18815,18 +18837,20 @@ func awsAwsjson11_deserializeDocumentCategoricalParameterRanges(v *[]*types.Cate return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CategoricalParameterRange + var cv []types.CategoricalParameterRange if *v == nil { - cv = []*types.CategoricalParameterRange{} + cv = []types.CategoricalParameterRange{} } else { cv = *v } for _, value := range shape { - var col *types.CategoricalParameterRange - if err := awsAwsjson11_deserializeDocumentCategoricalParameterRange(&col, value); err != nil { + var col types.CategoricalParameterRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCategoricalParameterRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18898,7 +18922,7 @@ func awsAwsjson11_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) } - sv.ChannelName = &jtv + sv.ChannelName = ptr.String(jtv) } case "CompressionType": @@ -18916,7 +18940,7 @@ func awsAwsjson11_deserializeDocumentChannel(v **types.Channel, value interface{ if !ok { return fmt.Errorf("expected ContentType to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "DataSource": @@ -18984,7 +19008,7 @@ func awsAwsjson11_deserializeDocumentChannelSpecification(v **types.ChannelSpeci if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "IsRequired": @@ -18993,7 +19017,7 @@ func awsAwsjson11_deserializeDocumentChannelSpecification(v **types.ChannelSpeci if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsRequired = &jtv + sv.IsRequired = jtv } case "Name": @@ -19002,7 +19026,7 @@ func awsAwsjson11_deserializeDocumentChannelSpecification(v **types.ChannelSpeci if !ok { return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SupportedCompressionTypes": @@ -19029,7 +19053,7 @@ func awsAwsjson11_deserializeDocumentChannelSpecification(v **types.ChannelSpeci return nil } -func awsAwsjson11_deserializeDocumentChannelSpecifications(v *[]*types.ChannelSpecification, value interface{}) error { +func awsAwsjson11_deserializeDocumentChannelSpecifications(v *[]types.ChannelSpecification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19042,18 +19066,20 @@ func awsAwsjson11_deserializeDocumentChannelSpecifications(v *[]*types.ChannelSp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ChannelSpecification + var cv []types.ChannelSpecification if *v == nil { - cv = []*types.ChannelSpecification{} + cv = []types.ChannelSpecification{} } else { cv = *v } for _, value := range shape { - var col *types.ChannelSpecification - if err := awsAwsjson11_deserializeDocumentChannelSpecification(&col, value); err != nil { + var col types.ChannelSpecification + destAddr := &col + if err := awsAwsjson11_deserializeDocumentChannelSpecification(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19089,7 +19115,7 @@ func awsAwsjson11_deserializeDocumentCheckpointConfig(v **types.CheckpointConfig if !ok { return fmt.Errorf("expected DirectoryPath to be of type string, got %T instead", value) } - sv.LocalPath = &jtv + sv.LocalPath = ptr.String(jtv) } case "S3Uri": @@ -19098,7 +19124,7 @@ func awsAwsjson11_deserializeDocumentCheckpointConfig(v **types.CheckpointConfig if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -19110,7 +19136,7 @@ func awsAwsjson11_deserializeDocumentCheckpointConfig(v **types.CheckpointConfig return nil } -func awsAwsjson11_deserializeDocumentCidrs(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCidrs(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19123,21 +19149,21 @@ func awsAwsjson11_deserializeDocumentCidrs(v *[]*string, value interface{}) erro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Cidr to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -19174,7 +19200,7 @@ func awsAwsjson11_deserializeDocumentCodeRepositorySummary(v **types.CodeReposit if !ok { return fmt.Errorf("expected CodeRepositoryArn to be of type string, got %T instead", value) } - sv.CodeRepositoryArn = &jtv + sv.CodeRepositoryArn = ptr.String(jtv) } case "CodeRepositoryName": @@ -19183,7 +19209,7 @@ func awsAwsjson11_deserializeDocumentCodeRepositorySummary(v **types.CodeReposit if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.CodeRepositoryName = &jtv + sv.CodeRepositoryName = ptr.String(jtv) } case "CreationTime": @@ -19226,7 +19252,7 @@ func awsAwsjson11_deserializeDocumentCodeRepositorySummary(v **types.CodeReposit return nil } -func awsAwsjson11_deserializeDocumentCodeRepositorySummaryList(v *[]*types.CodeRepositorySummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentCodeRepositorySummaryList(v *[]types.CodeRepositorySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19239,18 +19265,20 @@ func awsAwsjson11_deserializeDocumentCodeRepositorySummaryList(v *[]*types.CodeR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CodeRepositorySummary + var cv []types.CodeRepositorySummary if *v == nil { - cv = []*types.CodeRepositorySummary{} + cv = []types.CodeRepositorySummary{} } else { cv = *v } for _, value := range shape { - var col *types.CodeRepositorySummary - if err := awsAwsjson11_deserializeDocumentCodeRepositorySummary(&col, value); err != nil { + var col types.CodeRepositorySummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCodeRepositorySummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19286,7 +19314,7 @@ func awsAwsjson11_deserializeDocumentCognitoConfig(v **types.CognitoConfig, valu if !ok { return fmt.Errorf("expected ClientId to be of type string, got %T instead", value) } - sv.ClientId = &jtv + sv.ClientId = ptr.String(jtv) } case "UserPool": @@ -19295,7 +19323,7 @@ func awsAwsjson11_deserializeDocumentCognitoConfig(v **types.CognitoConfig, valu if !ok { return fmt.Errorf("expected CognitoUserPool to be of type string, got %T instead", value) } - sv.UserPool = &jtv + sv.UserPool = ptr.String(jtv) } default: @@ -19335,7 +19363,7 @@ func awsAwsjson11_deserializeDocumentCognitoMemberDefinition(v **types.CognitoMe if !ok { return fmt.Errorf("expected ClientId to be of type string, got %T instead", value) } - sv.ClientId = &jtv + sv.ClientId = ptr.String(jtv) } case "UserGroup": @@ -19344,7 +19372,7 @@ func awsAwsjson11_deserializeDocumentCognitoMemberDefinition(v **types.CognitoMe if !ok { return fmt.Errorf("expected CognitoUserGroup to be of type string, got %T instead", value) } - sv.UserGroup = &jtv + sv.UserGroup = ptr.String(jtv) } case "UserPool": @@ -19353,7 +19381,7 @@ func awsAwsjson11_deserializeDocumentCognitoMemberDefinition(v **types.CognitoMe if !ok { return fmt.Errorf("expected CognitoUserPool to be of type string, got %T instead", value) } - sv.UserPool = &jtv + sv.UserPool = ptr.String(jtv) } default: @@ -19393,7 +19421,7 @@ func awsAwsjson11_deserializeDocumentCollectionConfiguration(v **types.Collectio if !ok { return fmt.Errorf("expected CollectionName to be of type string, got %T instead", value) } - sv.CollectionName = &jtv + sv.CollectionName = ptr.String(jtv) } case "CollectionParameters": @@ -19410,7 +19438,7 @@ func awsAwsjson11_deserializeDocumentCollectionConfiguration(v **types.Collectio return nil } -func awsAwsjson11_deserializeDocumentCollectionConfigurations(v *[]*types.CollectionConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentCollectionConfigurations(v *[]types.CollectionConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19423,18 +19451,20 @@ func awsAwsjson11_deserializeDocumentCollectionConfigurations(v *[]*types.Collec return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CollectionConfiguration + var cv []types.CollectionConfiguration if *v == nil { - cv = []*types.CollectionConfiguration{} + cv = []types.CollectionConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.CollectionConfiguration - if err := awsAwsjson11_deserializeDocumentCollectionConfiguration(&col, value); err != nil { + var col types.CollectionConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCollectionConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19442,7 +19472,7 @@ func awsAwsjson11_deserializeDocumentCollectionConfigurations(v *[]*types.Collec return nil } -func awsAwsjson11_deserializeDocumentCollectionParameters(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCollectionParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19455,21 +19485,21 @@ func awsAwsjson11_deserializeDocumentCollectionParameters(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ConfigValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -19478,7 +19508,7 @@ func awsAwsjson11_deserializeDocumentCollectionParameters(v *map[string]*string, return nil } -func awsAwsjson11_deserializeDocumentCompilationJobSummaries(v *[]*types.CompilationJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentCompilationJobSummaries(v *[]types.CompilationJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19491,18 +19521,20 @@ func awsAwsjson11_deserializeDocumentCompilationJobSummaries(v *[]*types.Compila return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CompilationJobSummary + var cv []types.CompilationJobSummary if *v == nil { - cv = []*types.CompilationJobSummary{} + cv = []types.CompilationJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.CompilationJobSummary - if err := awsAwsjson11_deserializeDocumentCompilationJobSummary(&col, value); err != nil { + var col types.CompilationJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCompilationJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19551,7 +19583,7 @@ func awsAwsjson11_deserializeDocumentCompilationJobSummary(v **types.Compilation if !ok { return fmt.Errorf("expected CompilationJobArn to be of type string, got %T instead", value) } - sv.CompilationJobArn = &jtv + sv.CompilationJobArn = ptr.String(jtv) } case "CompilationJobName": @@ -19560,7 +19592,7 @@ func awsAwsjson11_deserializeDocumentCompilationJobSummary(v **types.Compilation if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.CompilationJobName = &jtv + sv.CompilationJobName = ptr.String(jtv) } case "CompilationJobStatus": @@ -19720,7 +19752,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19732,7 +19764,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti return nil } -func awsAwsjson11_deserializeDocumentContainerArguments(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentContainerArguments(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19745,21 +19777,21 @@ func awsAwsjson11_deserializeDocumentContainerArguments(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ContainerArgument to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -19796,7 +19828,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected ContainerHostname to be of type string, got %T instead", value) } - sv.ContainerHostname = &jtv + sv.ContainerHostname = ptr.String(jtv) } case "Environment": @@ -19810,7 +19842,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected ContainerImage to be of type string, got %T instead", value) } - sv.Image = &jtv + sv.Image = ptr.String(jtv) } case "ImageConfig": @@ -19833,7 +19865,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ModelDataUrl = &jtv + sv.ModelDataUrl = ptr.String(jtv) } case "ModelPackageName": @@ -19842,7 +19874,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi if !ok { return fmt.Errorf("expected VersionedArnOrName to be of type string, got %T instead", value) } - sv.ModelPackageName = &jtv + sv.ModelPackageName = ptr.String(jtv) } default: @@ -19854,7 +19886,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi return nil } -func awsAwsjson11_deserializeDocumentContainerDefinitionList(v *[]*types.ContainerDefinition, value interface{}) error { +func awsAwsjson11_deserializeDocumentContainerDefinitionList(v *[]types.ContainerDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19867,18 +19899,20 @@ func awsAwsjson11_deserializeDocumentContainerDefinitionList(v *[]*types.Contain return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContainerDefinition + var cv []types.ContainerDefinition if *v == nil { - cv = []*types.ContainerDefinition{} + cv = []types.ContainerDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.ContainerDefinition - if err := awsAwsjson11_deserializeDocumentContainerDefinition(&col, value); err != nil { + var col types.ContainerDefinition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContainerDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19886,7 +19920,7 @@ func awsAwsjson11_deserializeDocumentContainerDefinitionList(v *[]*types.Contain return nil } -func awsAwsjson11_deserializeDocumentContainerEntrypoint(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentContainerEntrypoint(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19899,21 +19933,21 @@ func awsAwsjson11_deserializeDocumentContainerEntrypoint(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ContainerEntrypointString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -19958,7 +19992,7 @@ func awsAwsjson11_deserializeDocumentContentClassifiers(v *[]types.ContentClassi return nil } -func awsAwsjson11_deserializeDocumentContentTypes(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentContentTypes(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19971,21 +20005,21 @@ func awsAwsjson11_deserializeDocumentContentTypes(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ContentType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -20022,7 +20056,7 @@ func awsAwsjson11_deserializeDocumentContinuousParameterRange(v **types.Continuo if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - sv.MaxValue = &jtv + sv.MaxValue = ptr.String(jtv) } case "MinValue": @@ -20031,7 +20065,7 @@ func awsAwsjson11_deserializeDocumentContinuousParameterRange(v **types.Continuo if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - sv.MinValue = &jtv + sv.MinValue = ptr.String(jtv) } case "Name": @@ -20040,7 +20074,7 @@ func awsAwsjson11_deserializeDocumentContinuousParameterRange(v **types.Continuo if !ok { return fmt.Errorf("expected ParameterKey to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ScalingType": @@ -20061,7 +20095,7 @@ func awsAwsjson11_deserializeDocumentContinuousParameterRange(v **types.Continuo return nil } -func awsAwsjson11_deserializeDocumentContinuousParameterRanges(v *[]*types.ContinuousParameterRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentContinuousParameterRanges(v *[]types.ContinuousParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20074,18 +20108,20 @@ func awsAwsjson11_deserializeDocumentContinuousParameterRanges(v *[]*types.Conti return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContinuousParameterRange + var cv []types.ContinuousParameterRange if *v == nil { - cv = []*types.ContinuousParameterRange{} + cv = []types.ContinuousParameterRange{} } else { cv = *v } for _, value := range shape { - var col *types.ContinuousParameterRange - if err := awsAwsjson11_deserializeDocumentContinuousParameterRange(&col, value); err != nil { + var col types.ContinuousParameterRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContinuousParameterRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20121,7 +20157,7 @@ func awsAwsjson11_deserializeDocumentContinuousParameterRangeSpecification(v **t if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - sv.MaxValue = &jtv + sv.MaxValue = ptr.String(jtv) } case "MinValue": @@ -20130,7 +20166,7 @@ func awsAwsjson11_deserializeDocumentContinuousParameterRangeSpecification(v **t if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - sv.MinValue = &jtv + sv.MinValue = ptr.String(jtv) } default: @@ -20142,7 +20178,7 @@ func awsAwsjson11_deserializeDocumentContinuousParameterRangeSpecification(v **t return nil } -func awsAwsjson11_deserializeDocumentCsvContentTypes(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCsvContentTypes(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20155,21 +20191,21 @@ func awsAwsjson11_deserializeDocumentCsvContentTypes(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected CsvContentType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -20206,7 +20242,7 @@ func awsAwsjson11_deserializeDocumentCustomImage(v **types.CustomImage, value in if !ok { return fmt.Errorf("expected AppImageConfigName to be of type string, got %T instead", value) } - sv.AppImageConfigName = &jtv + sv.AppImageConfigName = ptr.String(jtv) } case "ImageName": @@ -20215,7 +20251,7 @@ func awsAwsjson11_deserializeDocumentCustomImage(v **types.CustomImage, value in if !ok { return fmt.Errorf("expected ImageName to be of type string, got %T instead", value) } - sv.ImageName = &jtv + sv.ImageName = ptr.String(jtv) } case "ImageVersionNumber": @@ -20240,7 +20276,7 @@ func awsAwsjson11_deserializeDocumentCustomImage(v **types.CustomImage, value in return nil } -func awsAwsjson11_deserializeDocumentCustomImages(v *[]*types.CustomImage, value interface{}) error { +func awsAwsjson11_deserializeDocumentCustomImages(v *[]types.CustomImage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20253,18 +20289,20 @@ func awsAwsjson11_deserializeDocumentCustomImages(v *[]*types.CustomImage, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CustomImage + var cv []types.CustomImage if *v == nil { - cv = []*types.CustomImage{} + cv = []types.CustomImage{} } else { cv = *v } for _, value := range shape { - var col *types.CustomImage - if err := awsAwsjson11_deserializeDocumentCustomImage(&col, value); err != nil { + var col types.CustomImage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCustomImage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20310,7 +20348,7 @@ func awsAwsjson11_deserializeDocumentDataCaptureConfig(v **types.DataCaptureConf if !ok { return fmt.Errorf("expected DestinationS3Uri to be of type string, got %T instead", value) } - sv.DestinationS3Uri = &jtv + sv.DestinationS3Uri = ptr.String(jtv) } case "EnableCapture": @@ -20319,7 +20357,7 @@ func awsAwsjson11_deserializeDocumentDataCaptureConfig(v **types.DataCaptureConf if !ok { return fmt.Errorf("expected EnableCapture to be of type *bool, got %T instead", value) } - sv.EnableCapture = &jtv + sv.EnableCapture = jtv } case "InitialSamplingPercentage": @@ -20341,7 +20379,7 @@ func awsAwsjson11_deserializeDocumentDataCaptureConfig(v **types.DataCaptureConf if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } default: @@ -20403,7 +20441,7 @@ func awsAwsjson11_deserializeDocumentDataCaptureConfigSummary(v **types.DataCapt if !ok { return fmt.Errorf("expected DestinationS3Uri to be of type string, got %T instead", value) } - sv.DestinationS3Uri = &jtv + sv.DestinationS3Uri = ptr.String(jtv) } case "EnableCapture": @@ -20412,7 +20450,7 @@ func awsAwsjson11_deserializeDocumentDataCaptureConfigSummary(v **types.DataCapt if !ok { return fmt.Errorf("expected EnableCapture to be of type *bool, got %T instead", value) } - sv.EnableCapture = &jtv + sv.EnableCapture = jtv } case "KmsKeyId": @@ -20421,7 +20459,7 @@ func awsAwsjson11_deserializeDocumentDataCaptureConfigSummary(v **types.DataCapt if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } default: @@ -20461,7 +20499,7 @@ func awsAwsjson11_deserializeDocumentDataProcessing(v **types.DataProcessing, va if !ok { return fmt.Errorf("expected JsonPath to be of type string, got %T instead", value) } - sv.InputFilter = &jtv + sv.InputFilter = ptr.String(jtv) } case "JoinSource": @@ -20479,7 +20517,7 @@ func awsAwsjson11_deserializeDocumentDataProcessing(v **types.DataProcessing, va if !ok { return fmt.Errorf("expected JsonPath to be of type string, got %T instead", value) } - sv.OutputFilter = &jtv + sv.OutputFilter = ptr.String(jtv) } default: @@ -20570,7 +20608,7 @@ func awsAwsjson11_deserializeDocumentDebugHookConfig(v **types.DebugHookConfig, if !ok { return fmt.Errorf("expected DirectoryPath to be of type string, got %T instead", value) } - sv.LocalPath = &jtv + sv.LocalPath = ptr.String(jtv) } case "S3OutputPath": @@ -20579,7 +20617,7 @@ func awsAwsjson11_deserializeDocumentDebugHookConfig(v **types.DebugHookConfig, if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3OutputPath = &jtv + sv.S3OutputPath = ptr.String(jtv) } default: @@ -20628,7 +20666,7 @@ func awsAwsjson11_deserializeDocumentDebugRuleConfiguration(v **types.DebugRuleC if !ok { return fmt.Errorf("expected DirectoryPath to be of type string, got %T instead", value) } - sv.LocalPath = &jtv + sv.LocalPath = ptr.String(jtv) } case "RuleConfigurationName": @@ -20637,7 +20675,7 @@ func awsAwsjson11_deserializeDocumentDebugRuleConfiguration(v **types.DebugRuleC if !ok { return fmt.Errorf("expected RuleConfigurationName to be of type string, got %T instead", value) } - sv.RuleConfigurationName = &jtv + sv.RuleConfigurationName = ptr.String(jtv) } case "RuleEvaluatorImage": @@ -20646,7 +20684,7 @@ func awsAwsjson11_deserializeDocumentDebugRuleConfiguration(v **types.DebugRuleC if !ok { return fmt.Errorf("expected AlgorithmImage to be of type string, got %T instead", value) } - sv.RuleEvaluatorImage = &jtv + sv.RuleEvaluatorImage = ptr.String(jtv) } case "RuleParameters": @@ -20660,7 +20698,7 @@ func awsAwsjson11_deserializeDocumentDebugRuleConfiguration(v **types.DebugRuleC if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3OutputPath = &jtv + sv.S3OutputPath = ptr.String(jtv) } case "VolumeSizeInGB": @@ -20673,7 +20711,7 @@ func awsAwsjson11_deserializeDocumentDebugRuleConfiguration(v **types.DebugRuleC if err != nil { return err } - sv.VolumeSizeInGB = ptr.Int32(int32(i64)) + sv.VolumeSizeInGB = int32(i64) } default: @@ -20685,7 +20723,7 @@ func awsAwsjson11_deserializeDocumentDebugRuleConfiguration(v **types.DebugRuleC return nil } -func awsAwsjson11_deserializeDocumentDebugRuleConfigurations(v *[]*types.DebugRuleConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentDebugRuleConfigurations(v *[]types.DebugRuleConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20698,18 +20736,20 @@ func awsAwsjson11_deserializeDocumentDebugRuleConfigurations(v *[]*types.DebugRu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DebugRuleConfiguration + var cv []types.DebugRuleConfiguration if *v == nil { - cv = []*types.DebugRuleConfiguration{} + cv = []types.DebugRuleConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.DebugRuleConfiguration - if err := awsAwsjson11_deserializeDocumentDebugRuleConfiguration(&col, value); err != nil { + var col types.DebugRuleConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDebugRuleConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20758,7 +20798,7 @@ func awsAwsjson11_deserializeDocumentDebugRuleEvaluationStatus(v **types.DebugRu if !ok { return fmt.Errorf("expected RuleConfigurationName to be of type string, got %T instead", value) } - sv.RuleConfigurationName = &jtv + sv.RuleConfigurationName = ptr.String(jtv) } case "RuleEvaluationJobArn": @@ -20767,7 +20807,7 @@ func awsAwsjson11_deserializeDocumentDebugRuleEvaluationStatus(v **types.DebugRu if !ok { return fmt.Errorf("expected ProcessingJobArn to be of type string, got %T instead", value) } - sv.RuleEvaluationJobArn = &jtv + sv.RuleEvaluationJobArn = ptr.String(jtv) } case "RuleEvaluationStatus": @@ -20785,7 +20825,7 @@ func awsAwsjson11_deserializeDocumentDebugRuleEvaluationStatus(v **types.DebugRu if !ok { return fmt.Errorf("expected StatusDetails to be of type string, got %T instead", value) } - sv.StatusDetails = &jtv + sv.StatusDetails = ptr.String(jtv) } default: @@ -20797,7 +20837,7 @@ func awsAwsjson11_deserializeDocumentDebugRuleEvaluationStatus(v **types.DebugRu return nil } -func awsAwsjson11_deserializeDocumentDebugRuleEvaluationStatuses(v *[]*types.DebugRuleEvaluationStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentDebugRuleEvaluationStatuses(v *[]types.DebugRuleEvaluationStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20810,18 +20850,20 @@ func awsAwsjson11_deserializeDocumentDebugRuleEvaluationStatuses(v *[]*types.Deb return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DebugRuleEvaluationStatus + var cv []types.DebugRuleEvaluationStatus if *v == nil { - cv = []*types.DebugRuleEvaluationStatus{} + cv = []types.DebugRuleEvaluationStatus{} } else { cv = *v } for _, value := range shape { - var col *types.DebugRuleEvaluationStatus - if err := awsAwsjson11_deserializeDocumentDebugRuleEvaluationStatus(&col, value); err != nil { + var col types.DebugRuleEvaluationStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDebugRuleEvaluationStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20870,7 +20912,7 @@ func awsAwsjson11_deserializeDocumentDeployedImage(v **types.DeployedImage, valu if !ok { return fmt.Errorf("expected ContainerImage to be of type string, got %T instead", value) } - sv.ResolvedImage = &jtv + sv.ResolvedImage = ptr.String(jtv) } case "SpecifiedImage": @@ -20879,7 +20921,7 @@ func awsAwsjson11_deserializeDocumentDeployedImage(v **types.DeployedImage, valu if !ok { return fmt.Errorf("expected ContainerImage to be of type string, got %T instead", value) } - sv.SpecifiedImage = &jtv + sv.SpecifiedImage = ptr.String(jtv) } default: @@ -20891,7 +20933,7 @@ func awsAwsjson11_deserializeDocumentDeployedImage(v **types.DeployedImage, valu return nil } -func awsAwsjson11_deserializeDocumentDeployedImages(v *[]*types.DeployedImage, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeployedImages(v *[]types.DeployedImage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20904,18 +20946,20 @@ func awsAwsjson11_deserializeDocumentDeployedImages(v *[]*types.DeployedImage, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeployedImage + var cv []types.DeployedImage if *v == nil { - cv = []*types.DeployedImage{} + cv = []types.DeployedImage{} } else { cv = *v } for _, value := range shape { - var col *types.DeployedImage - if err := awsAwsjson11_deserializeDocumentDeployedImage(&col, value); err != nil { + var col types.DeployedImage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDeployedImage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20964,7 +21008,7 @@ func awsAwsjson11_deserializeDocumentDomainDetails(v **types.DomainDetails, valu if !ok { return fmt.Errorf("expected DomainArn to be of type string, got %T instead", value) } - sv.DomainArn = &jtv + sv.DomainArn = ptr.String(jtv) } case "DomainId": @@ -20973,7 +21017,7 @@ func awsAwsjson11_deserializeDocumentDomainDetails(v **types.DomainDetails, valu if !ok { return fmt.Errorf("expected DomainId to be of type string, got %T instead", value) } - sv.DomainId = &jtv + sv.DomainId = ptr.String(jtv) } case "DomainName": @@ -20982,7 +21026,7 @@ func awsAwsjson11_deserializeDocumentDomainDetails(v **types.DomainDetails, valu if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "LastModifiedTime": @@ -21013,7 +21057,7 @@ func awsAwsjson11_deserializeDocumentDomainDetails(v **types.DomainDetails, valu if !ok { return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -21025,7 +21069,7 @@ func awsAwsjson11_deserializeDocumentDomainDetails(v **types.DomainDetails, valu return nil } -func awsAwsjson11_deserializeDocumentDomainList(v *[]*types.DomainDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentDomainList(v *[]types.DomainDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21038,18 +21082,20 @@ func awsAwsjson11_deserializeDocumentDomainList(v *[]*types.DomainDetails, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainDetails + var cv []types.DomainDetails if *v == nil { - cv = []*types.DomainDetails{} + cv = []types.DomainDetails{} } else { cv = *v } for _, value := range shape { - var col *types.DomainDetails - if err := awsAwsjson11_deserializeDocumentDomainDetails(&col, value); err != nil { + var col types.DomainDetails + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDomainDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21098,7 +21144,7 @@ func awsAwsjson11_deserializeDocumentEndpointConfigSummary(v **types.EndpointCon if !ok { return fmt.Errorf("expected EndpointConfigArn to be of type string, got %T instead", value) } - sv.EndpointConfigArn = &jtv + sv.EndpointConfigArn = ptr.String(jtv) } case "EndpointConfigName": @@ -21107,7 +21153,7 @@ func awsAwsjson11_deserializeDocumentEndpointConfigSummary(v **types.EndpointCon if !ok { return fmt.Errorf("expected EndpointConfigName to be of type string, got %T instead", value) } - sv.EndpointConfigName = &jtv + sv.EndpointConfigName = ptr.String(jtv) } default: @@ -21119,7 +21165,7 @@ func awsAwsjson11_deserializeDocumentEndpointConfigSummary(v **types.EndpointCon return nil } -func awsAwsjson11_deserializeDocumentEndpointConfigSummaryList(v *[]*types.EndpointConfigSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentEndpointConfigSummaryList(v *[]types.EndpointConfigSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21132,18 +21178,20 @@ func awsAwsjson11_deserializeDocumentEndpointConfigSummaryList(v *[]*types.Endpo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EndpointConfigSummary + var cv []types.EndpointConfigSummary if *v == nil { - cv = []*types.EndpointConfigSummary{} + cv = []types.EndpointConfigSummary{} } else { cv = *v } for _, value := range shape { - var col *types.EndpointConfigSummary - if err := awsAwsjson11_deserializeDocumentEndpointConfigSummary(&col, value); err != nil { + var col types.EndpointConfigSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEndpointConfigSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21179,7 +21227,7 @@ func awsAwsjson11_deserializeDocumentEndpointInput(v **types.EndpointInput, valu if !ok { return fmt.Errorf("expected EndpointName to be of type string, got %T instead", value) } - sv.EndpointName = &jtv + sv.EndpointName = ptr.String(jtv) } case "LocalPath": @@ -21188,7 +21236,7 @@ func awsAwsjson11_deserializeDocumentEndpointInput(v **types.EndpointInput, valu if !ok { return fmt.Errorf("expected ProcessingLocalPath to be of type string, got %T instead", value) } - sv.LocalPath = &jtv + sv.LocalPath = ptr.String(jtv) } case "S3DataDistributionType": @@ -21259,7 +21307,7 @@ func awsAwsjson11_deserializeDocumentEndpointSummary(v **types.EndpointSummary, if !ok { return fmt.Errorf("expected EndpointArn to be of type string, got %T instead", value) } - sv.EndpointArn = &jtv + sv.EndpointArn = ptr.String(jtv) } case "EndpointName": @@ -21268,7 +21316,7 @@ func awsAwsjson11_deserializeDocumentEndpointSummary(v **types.EndpointSummary, if !ok { return fmt.Errorf("expected EndpointName to be of type string, got %T instead", value) } - sv.EndpointName = &jtv + sv.EndpointName = ptr.String(jtv) } case "EndpointStatus": @@ -21302,7 +21350,7 @@ func awsAwsjson11_deserializeDocumentEndpointSummary(v **types.EndpointSummary, return nil } -func awsAwsjson11_deserializeDocumentEndpointSummaryList(v *[]*types.EndpointSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentEndpointSummaryList(v *[]types.EndpointSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21315,18 +21363,20 @@ func awsAwsjson11_deserializeDocumentEndpointSummaryList(v *[]*types.EndpointSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EndpointSummary + var cv []types.EndpointSummary if *v == nil { - cv = []*types.EndpointSummary{} + cv = []types.EndpointSummary{} } else { cv = *v } for _, value := range shape { - var col *types.EndpointSummary - if err := awsAwsjson11_deserializeDocumentEndpointSummary(&col, value); err != nil { + var col types.EndpointSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEndpointSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21334,7 +21384,7 @@ func awsAwsjson11_deserializeDocumentEndpointSummaryList(v *[]*types.EndpointSum return nil } -func awsAwsjson11_deserializeDocumentEnvironmentMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentEnvironmentMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21347,21 +21397,21 @@ func awsAwsjson11_deserializeDocumentEnvironmentMap(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected EnvironmentValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -21416,7 +21466,7 @@ func awsAwsjson11_deserializeDocumentExperiment(v **types.Experiment, value inte if !ok { return fmt.Errorf("expected ExperimentDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DisplayName": @@ -21425,7 +21475,7 @@ func awsAwsjson11_deserializeDocumentExperiment(v **types.Experiment, value inte if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "ExperimentArn": @@ -21434,7 +21484,7 @@ func awsAwsjson11_deserializeDocumentExperiment(v **types.Experiment, value inte if !ok { return fmt.Errorf("expected ExperimentArn to be of type string, got %T instead", value) } - sv.ExperimentArn = &jtv + sv.ExperimentArn = ptr.String(jtv) } case "ExperimentName": @@ -21443,7 +21493,7 @@ func awsAwsjson11_deserializeDocumentExperiment(v **types.Experiment, value inte if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.ExperimentName = &jtv + sv.ExperimentName = ptr.String(jtv) } case "LastModifiedBy": @@ -21511,7 +21561,7 @@ func awsAwsjson11_deserializeDocumentExperimentConfig(v **types.ExperimentConfig if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.ExperimentName = &jtv + sv.ExperimentName = ptr.String(jtv) } case "TrialComponentDisplayName": @@ -21520,7 +21570,7 @@ func awsAwsjson11_deserializeDocumentExperimentConfig(v **types.ExperimentConfig if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.TrialComponentDisplayName = &jtv + sv.TrialComponentDisplayName = ptr.String(jtv) } case "TrialName": @@ -21529,7 +21579,7 @@ func awsAwsjson11_deserializeDocumentExperimentConfig(v **types.ExperimentConfig if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.TrialName = &jtv + sv.TrialName = ptr.String(jtv) } default: @@ -21569,7 +21619,7 @@ func awsAwsjson11_deserializeDocumentExperimentSource(v **types.ExperimentSource if !ok { return fmt.Errorf("expected ExperimentSourceArn to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } case "SourceType": @@ -21578,7 +21628,7 @@ func awsAwsjson11_deserializeDocumentExperimentSource(v **types.ExperimentSource if !ok { return fmt.Errorf("expected SourceType to be of type string, got %T instead", value) } - sv.SourceType = &jtv + sv.SourceType = ptr.String(jtv) } default: @@ -21590,7 +21640,7 @@ func awsAwsjson11_deserializeDocumentExperimentSource(v **types.ExperimentSource return nil } -func awsAwsjson11_deserializeDocumentExperimentSummaries(v *[]*types.ExperimentSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentExperimentSummaries(v *[]types.ExperimentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21603,18 +21653,20 @@ func awsAwsjson11_deserializeDocumentExperimentSummaries(v *[]*types.ExperimentS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExperimentSummary + var cv []types.ExperimentSummary if *v == nil { - cv = []*types.ExperimentSummary{} + cv = []types.ExperimentSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ExperimentSummary - if err := awsAwsjson11_deserializeDocumentExperimentSummary(&col, value); err != nil { + var col types.ExperimentSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExperimentSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21663,7 +21715,7 @@ func awsAwsjson11_deserializeDocumentExperimentSummary(v **types.ExperimentSumma if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "ExperimentArn": @@ -21672,7 +21724,7 @@ func awsAwsjson11_deserializeDocumentExperimentSummary(v **types.ExperimentSumma if !ok { return fmt.Errorf("expected ExperimentArn to be of type string, got %T instead", value) } - sv.ExperimentArn = &jtv + sv.ExperimentArn = ptr.String(jtv) } case "ExperimentName": @@ -21681,7 +21733,7 @@ func awsAwsjson11_deserializeDocumentExperimentSummary(v **types.ExperimentSumma if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.ExperimentName = &jtv + sv.ExperimentName = ptr.String(jtv) } case "ExperimentSource": @@ -21743,7 +21795,7 @@ func awsAwsjson11_deserializeDocumentFileSystemConfig(v **types.FileSystemConfig if err != nil { return err } - sv.DefaultGid = ptr.Int32(int32(i64)) + sv.DefaultGid = int32(i64) } case "DefaultUid": @@ -21756,7 +21808,7 @@ func awsAwsjson11_deserializeDocumentFileSystemConfig(v **types.FileSystemConfig if err != nil { return err } - sv.DefaultUid = ptr.Int32(int32(i64)) + sv.DefaultUid = int32(i64) } case "MountPath": @@ -21765,7 +21817,7 @@ func awsAwsjson11_deserializeDocumentFileSystemConfig(v **types.FileSystemConfig if !ok { return fmt.Errorf("expected MountPath to be of type string, got %T instead", value) } - sv.MountPath = &jtv + sv.MountPath = ptr.String(jtv) } default: @@ -21805,7 +21857,7 @@ func awsAwsjson11_deserializeDocumentFileSystemDataSource(v **types.FileSystemDa if !ok { return fmt.Errorf("expected DirectoryPath to be of type string, got %T instead", value) } - sv.DirectoryPath = &jtv + sv.DirectoryPath = ptr.String(jtv) } case "FileSystemAccessMode": @@ -21823,7 +21875,7 @@ func awsAwsjson11_deserializeDocumentFileSystemDataSource(v **types.FileSystemDa if !ok { return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.FileSystemId = &jtv + sv.FileSystemId = ptr.String(jtv) } case "FileSystemType": @@ -21894,7 +21946,7 @@ func awsAwsjson11_deserializeDocumentFinalAutoMLJobObjectiveMetric(v **types.Fin if err != nil { return err } - sv.Value = ptr.Float32(float32(f64)) + sv.Value = float32(f64) } default: @@ -21934,7 +21986,7 @@ func awsAwsjson11_deserializeDocumentFinalHyperParameterTuningJobObjectiveMetric if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Type": @@ -21956,7 +22008,7 @@ func awsAwsjson11_deserializeDocumentFinalHyperParameterTuningJobObjectiveMetric if err != nil { return err } - sv.Value = ptr.Float32(float32(f64)) + sv.Value = float32(f64) } default: @@ -21968,7 +22020,7 @@ func awsAwsjson11_deserializeDocumentFinalHyperParameterTuningJobObjectiveMetric return nil } -func awsAwsjson11_deserializeDocumentFinalMetricDataList(v *[]*types.MetricData, value interface{}) error { +func awsAwsjson11_deserializeDocumentFinalMetricDataList(v *[]types.MetricData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21981,18 +22033,20 @@ func awsAwsjson11_deserializeDocumentFinalMetricDataList(v *[]*types.MetricData, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MetricData + var cv []types.MetricData if *v == nil { - cv = []*types.MetricData{} + cv = []types.MetricData{} } else { cv = *v } for _, value := range shape { - var col *types.MetricData - if err := awsAwsjson11_deserializeDocumentMetricData(&col, value); err != nil { + var col types.MetricData + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMetricData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22028,7 +22082,7 @@ func awsAwsjson11_deserializeDocumentFlowDefinitionOutputConfig(v **types.FlowDe if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "S3OutputPath": @@ -22037,7 +22091,7 @@ func awsAwsjson11_deserializeDocumentFlowDefinitionOutputConfig(v **types.FlowDe if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3OutputPath = &jtv + sv.S3OutputPath = ptr.String(jtv) } default: @@ -22049,7 +22103,7 @@ func awsAwsjson11_deserializeDocumentFlowDefinitionOutputConfig(v **types.FlowDe return nil } -func awsAwsjson11_deserializeDocumentFlowDefinitionSummaries(v *[]*types.FlowDefinitionSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentFlowDefinitionSummaries(v *[]types.FlowDefinitionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22062,18 +22116,20 @@ func awsAwsjson11_deserializeDocumentFlowDefinitionSummaries(v *[]*types.FlowDef return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FlowDefinitionSummary + var cv []types.FlowDefinitionSummary if *v == nil { - cv = []*types.FlowDefinitionSummary{} + cv = []types.FlowDefinitionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.FlowDefinitionSummary - if err := awsAwsjson11_deserializeDocumentFlowDefinitionSummary(&col, value); err != nil { + var col types.FlowDefinitionSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFlowDefinitionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22122,7 +22178,7 @@ func awsAwsjson11_deserializeDocumentFlowDefinitionSummary(v **types.FlowDefinit if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "FlowDefinitionArn": @@ -22131,7 +22187,7 @@ func awsAwsjson11_deserializeDocumentFlowDefinitionSummary(v **types.FlowDefinit if !ok { return fmt.Errorf("expected FlowDefinitionArn to be of type string, got %T instead", value) } - sv.FlowDefinitionArn = &jtv + sv.FlowDefinitionArn = ptr.String(jtv) } case "FlowDefinitionName": @@ -22140,7 +22196,7 @@ func awsAwsjson11_deserializeDocumentFlowDefinitionSummary(v **types.FlowDefinit if !ok { return fmt.Errorf("expected FlowDefinitionName to be of type string, got %T instead", value) } - sv.FlowDefinitionName = &jtv + sv.FlowDefinitionName = ptr.String(jtv) } case "FlowDefinitionStatus": @@ -22161,7 +22217,7 @@ func awsAwsjson11_deserializeDocumentFlowDefinitionSummary(v **types.FlowDefinit return nil } -func awsAwsjson11_deserializeDocumentFlowDefinitionTaskKeywords(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentFlowDefinitionTaskKeywords(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22174,21 +22230,21 @@ func awsAwsjson11_deserializeDocumentFlowDefinitionTaskKeywords(v *[]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FlowDefinitionTaskKeyword to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -22225,7 +22281,7 @@ func awsAwsjson11_deserializeDocumentGitConfig(v **types.GitConfig, value interf if !ok { return fmt.Errorf("expected Branch to be of type string, got %T instead", value) } - sv.Branch = &jtv + sv.Branch = ptr.String(jtv) } case "RepositoryUrl": @@ -22234,7 +22290,7 @@ func awsAwsjson11_deserializeDocumentGitConfig(v **types.GitConfig, value interf if !ok { return fmt.Errorf("expected GitConfigUrl to be of type string, got %T instead", value) } - sv.RepositoryUrl = &jtv + sv.RepositoryUrl = ptr.String(jtv) } case "SecretArn": @@ -22243,7 +22299,7 @@ func awsAwsjson11_deserializeDocumentGitConfig(v **types.GitConfig, value interf if !ok { return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) } - sv.SecretArn = &jtv + sv.SecretArn = ptr.String(jtv) } default: @@ -22255,7 +22311,7 @@ func awsAwsjson11_deserializeDocumentGitConfig(v **types.GitConfig, value interf return nil } -func awsAwsjson11_deserializeDocumentGroups(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentGroups(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22268,21 +22324,21 @@ func awsAwsjson11_deserializeDocumentGroups(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Group to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -22291,7 +22347,7 @@ func awsAwsjson11_deserializeDocumentGroups(v *[]*string, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentHookParameters(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentHookParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22304,21 +22360,21 @@ func awsAwsjson11_deserializeDocumentHookParameters(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ConfigValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -22355,7 +22411,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopActivationConditionsConfig(v **typ if !ok { return fmt.Errorf("expected SynthesizedJsonHumanLoopActivationConditions to be of type string, got %T instead", value) } - sv.HumanLoopActivationConditions = &jtv + sv.HumanLoopActivationConditions = ptr.String(jtv) } default: @@ -22431,7 +22487,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopConfig(v **types.HumanLoopConfig, if !ok { return fmt.Errorf("expected HumanTaskUiArn to be of type string, got %T instead", value) } - sv.HumanTaskUiArn = &jtv + sv.HumanTaskUiArn = ptr.String(jtv) } case "PublicWorkforceTaskPrice": @@ -22471,7 +22527,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopConfig(v **types.HumanLoopConfig, if !ok { return fmt.Errorf("expected FlowDefinitionTaskDescription to be of type string, got %T instead", value) } - sv.TaskDescription = &jtv + sv.TaskDescription = ptr.String(jtv) } case "TaskKeywords": @@ -22498,7 +22554,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopConfig(v **types.HumanLoopConfig, if !ok { return fmt.Errorf("expected FlowDefinitionTaskTitle to be of type string, got %T instead", value) } - sv.TaskTitle = &jtv + sv.TaskTitle = ptr.String(jtv) } case "WorkteamArn": @@ -22507,7 +22563,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopConfig(v **types.HumanLoopConfig, if !ok { return fmt.Errorf("expected WorkteamArn to be of type string, got %T instead", value) } - sv.WorkteamArn = &jtv + sv.WorkteamArn = ptr.String(jtv) } default: @@ -22618,7 +22674,7 @@ func awsAwsjson11_deserializeDocumentHumanTaskConfig(v **types.HumanTaskConfig, if !ok { return fmt.Errorf("expected LambdaFunctionArn to be of type string, got %T instead", value) } - sv.PreHumanTaskLambdaArn = &jtv + sv.PreHumanTaskLambdaArn = ptr.String(jtv) } case "PublicWorkforceTaskPrice": @@ -22645,7 +22701,7 @@ func awsAwsjson11_deserializeDocumentHumanTaskConfig(v **types.HumanTaskConfig, if !ok { return fmt.Errorf("expected TaskDescription to be of type string, got %T instead", value) } - sv.TaskDescription = &jtv + sv.TaskDescription = ptr.String(jtv) } case "TaskKeywords": @@ -22672,7 +22728,7 @@ func awsAwsjson11_deserializeDocumentHumanTaskConfig(v **types.HumanTaskConfig, if !ok { return fmt.Errorf("expected TaskTitle to be of type string, got %T instead", value) } - sv.TaskTitle = &jtv + sv.TaskTitle = ptr.String(jtv) } case "UiConfig": @@ -22686,7 +22742,7 @@ func awsAwsjson11_deserializeDocumentHumanTaskConfig(v **types.HumanTaskConfig, if !ok { return fmt.Errorf("expected WorkteamArn to be of type string, got %T instead", value) } - sv.WorkteamArn = &jtv + sv.WorkteamArn = ptr.String(jtv) } default: @@ -22698,7 +22754,7 @@ func awsAwsjson11_deserializeDocumentHumanTaskConfig(v **types.HumanTaskConfig, return nil } -func awsAwsjson11_deserializeDocumentHumanTaskUiSummaries(v *[]*types.HumanTaskUiSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentHumanTaskUiSummaries(v *[]types.HumanTaskUiSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22711,18 +22767,20 @@ func awsAwsjson11_deserializeDocumentHumanTaskUiSummaries(v *[]*types.HumanTaskU return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HumanTaskUiSummary + var cv []types.HumanTaskUiSummary if *v == nil { - cv = []*types.HumanTaskUiSummary{} + cv = []types.HumanTaskUiSummary{} } else { cv = *v } for _, value := range shape { - var col *types.HumanTaskUiSummary - if err := awsAwsjson11_deserializeDocumentHumanTaskUiSummary(&col, value); err != nil { + var col types.HumanTaskUiSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHumanTaskUiSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22771,7 +22829,7 @@ func awsAwsjson11_deserializeDocumentHumanTaskUiSummary(v **types.HumanTaskUiSum if !ok { return fmt.Errorf("expected HumanTaskUiArn to be of type string, got %T instead", value) } - sv.HumanTaskUiArn = &jtv + sv.HumanTaskUiArn = ptr.String(jtv) } case "HumanTaskUiName": @@ -22780,7 +22838,7 @@ func awsAwsjson11_deserializeDocumentHumanTaskUiSummary(v **types.HumanTaskUiSum if !ok { return fmt.Errorf("expected HumanTaskUiName to be of type string, got %T instead", value) } - sv.HumanTaskUiName = &jtv + sv.HumanTaskUiName = ptr.String(jtv) } default: @@ -22820,7 +22878,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterAlgorithmSpecification(v **ty if !ok { return fmt.Errorf("expected ArnOrName to be of type string, got %T instead", value) } - sv.AlgorithmName = &jtv + sv.AlgorithmName = ptr.String(jtv) } case "MetricDefinitions": @@ -22834,7 +22892,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterAlgorithmSpecification(v **ty if !ok { return fmt.Errorf("expected AlgorithmImage to be of type string, got %T instead", value) } - sv.TrainingImage = &jtv + sv.TrainingImage = ptr.String(jtv) } case "TrainingInputMode": @@ -22855,7 +22913,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterAlgorithmSpecification(v **ty return nil } -func awsAwsjson11_deserializeDocumentHyperParameters(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentHyperParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22868,21 +22926,21 @@ func awsAwsjson11_deserializeDocumentHyperParameters(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HyperParameterValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -22919,7 +22977,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterSpecification(v **types.Hyper if !ok { return fmt.Errorf("expected HyperParameterValue to be of type string, got %T instead", value) } - sv.DefaultValue = &jtv + sv.DefaultValue = ptr.String(jtv) } case "Description": @@ -22928,7 +22986,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterSpecification(v **types.Hyper if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "IsRequired": @@ -22937,7 +22995,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterSpecification(v **types.Hyper if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsRequired = &jtv + sv.IsRequired = jtv } case "IsTunable": @@ -22946,7 +23004,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterSpecification(v **types.Hyper if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsTunable = &jtv + sv.IsTunable = jtv } case "Name": @@ -22955,7 +23013,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterSpecification(v **types.Hyper if !ok { return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Range": @@ -22981,7 +23039,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterSpecification(v **types.Hyper return nil } -func awsAwsjson11_deserializeDocumentHyperParameterSpecifications(v *[]*types.HyperParameterSpecification, value interface{}) error { +func awsAwsjson11_deserializeDocumentHyperParameterSpecifications(v *[]types.HyperParameterSpecification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22994,18 +23052,20 @@ func awsAwsjson11_deserializeDocumentHyperParameterSpecifications(v *[]*types.Hy return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HyperParameterSpecification + var cv []types.HyperParameterSpecification if *v == nil { - cv = []*types.HyperParameterSpecification{} + cv = []types.HyperParameterSpecification{} } else { cv = *v } for _, value := range shape { - var col *types.HyperParameterSpecification - if err := awsAwsjson11_deserializeDocumentHyperParameterSpecification(&col, value); err != nil { + var col types.HyperParameterSpecification + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHyperParameterSpecification(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23051,7 +23111,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobDefinition(v **typ if !ok { return fmt.Errorf("expected HyperParameterTrainingJobDefinitionName to be of type string, got %T instead", value) } - sv.DefinitionName = &jtv + sv.DefinitionName = ptr.String(jtv) } case "EnableInterContainerTrafficEncryption": @@ -23060,7 +23120,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobDefinition(v **typ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableInterContainerTrafficEncryption = &jtv + sv.EnableInterContainerTrafficEncryption = jtv } case "EnableManagedSpotTraining": @@ -23069,7 +23129,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobDefinition(v **typ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableManagedSpotTraining = &jtv + sv.EnableManagedSpotTraining = jtv } case "EnableNetworkIsolation": @@ -23078,7 +23138,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobDefinition(v **typ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableNetworkIsolation = &jtv + sv.EnableNetworkIsolation = jtv } case "HyperParameterRanges": @@ -23107,7 +23167,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobDefinition(v **typ if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "StaticHyperParameters": @@ -23139,7 +23199,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobDefinition(v **typ return nil } -func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobDefinitions(v *[]*types.HyperParameterTrainingJobDefinition, value interface{}) error { +func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobDefinitions(v *[]types.HyperParameterTrainingJobDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23152,18 +23212,20 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobDefinitions(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HyperParameterTrainingJobDefinition + var cv []types.HyperParameterTrainingJobDefinition if *v == nil { - cv = []*types.HyperParameterTrainingJobDefinition{} + cv = []types.HyperParameterTrainingJobDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.HyperParameterTrainingJobDefinition - if err := awsAwsjson11_deserializeDocumentHyperParameterTrainingJobDefinition(&col, value); err != nil { + var col types.HyperParameterTrainingJobDefinition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHyperParameterTrainingJobDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23171,7 +23233,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobDefinitions(v *[]* return nil } -func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobSummaries(v *[]*types.HyperParameterTrainingJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobSummaries(v *[]types.HyperParameterTrainingJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23184,18 +23246,20 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobSummaries(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HyperParameterTrainingJobSummary + var cv []types.HyperParameterTrainingJobSummary if *v == nil { - cv = []*types.HyperParameterTrainingJobSummary{} + cv = []types.HyperParameterTrainingJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.HyperParameterTrainingJobSummary - if err := awsAwsjson11_deserializeDocumentHyperParameterTrainingJobSummary(&col, value); err != nil { + var col types.HyperParameterTrainingJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHyperParameterTrainingJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23244,7 +23308,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobSummary(v **types. if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "FinalHyperParameterTuningJobObjectiveMetric": @@ -23280,7 +23344,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobSummary(v **types. if !ok { return fmt.Errorf("expected TrainingJobArn to be of type string, got %T instead", value) } - sv.TrainingJobArn = &jtv + sv.TrainingJobArn = ptr.String(jtv) } case "TrainingJobDefinitionName": @@ -23289,7 +23353,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobSummary(v **types. if !ok { return fmt.Errorf("expected HyperParameterTrainingJobDefinitionName to be of type string, got %T instead", value) } - sv.TrainingJobDefinitionName = &jtv + sv.TrainingJobDefinitionName = ptr.String(jtv) } case "TrainingJobName": @@ -23298,7 +23362,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobSummary(v **types. if !ok { return fmt.Errorf("expected TrainingJobName to be of type string, got %T instead", value) } - sv.TrainingJobName = &jtv + sv.TrainingJobName = ptr.String(jtv) } case "TrainingJobStatus": @@ -23334,7 +23398,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTrainingJobSummary(v **types. if !ok { return fmt.Errorf("expected HyperParameterTuningJobName to be of type string, got %T instead", value) } - sv.TuningJobName = &jtv + sv.TuningJobName = ptr.String(jtv) } default: @@ -23443,7 +23507,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTuningJobObjective(v **types. if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Type": @@ -23464,7 +23528,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTuningJobObjective(v **types. return nil } -func awsAwsjson11_deserializeDocumentHyperParameterTuningJobObjectives(v *[]*types.HyperParameterTuningJobObjective, value interface{}) error { +func awsAwsjson11_deserializeDocumentHyperParameterTuningJobObjectives(v *[]types.HyperParameterTuningJobObjective, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23477,18 +23541,20 @@ func awsAwsjson11_deserializeDocumentHyperParameterTuningJobObjectives(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HyperParameterTuningJobObjective + var cv []types.HyperParameterTuningJobObjective if *v == nil { - cv = []*types.HyperParameterTuningJobObjective{} + cv = []types.HyperParameterTuningJobObjective{} } else { cv = *v } for _, value := range shape { - var col *types.HyperParameterTuningJobObjective - if err := awsAwsjson11_deserializeDocumentHyperParameterTuningJobObjective(&col, value); err != nil { + var col types.HyperParameterTuningJobObjective + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHyperParameterTuningJobObjective(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23496,7 +23562,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTuningJobObjectives(v *[]*typ return nil } -func awsAwsjson11_deserializeDocumentHyperParameterTuningJobSummaries(v *[]*types.HyperParameterTuningJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentHyperParameterTuningJobSummaries(v *[]types.HyperParameterTuningJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23509,18 +23575,20 @@ func awsAwsjson11_deserializeDocumentHyperParameterTuningJobSummaries(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HyperParameterTuningJobSummary + var cv []types.HyperParameterTuningJobSummary if *v == nil { - cv = []*types.HyperParameterTuningJobSummary{} + cv = []types.HyperParameterTuningJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.HyperParameterTuningJobSummary - if err := awsAwsjson11_deserializeDocumentHyperParameterTuningJobSummary(&col, value); err != nil { + var col types.HyperParameterTuningJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHyperParameterTuningJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23582,7 +23650,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTuningJobSummary(v **types.Hy if !ok { return fmt.Errorf("expected HyperParameterTuningJobArn to be of type string, got %T instead", value) } - sv.HyperParameterTuningJobArn = &jtv + sv.HyperParameterTuningJobArn = ptr.String(jtv) } case "HyperParameterTuningJobName": @@ -23591,7 +23659,7 @@ func awsAwsjson11_deserializeDocumentHyperParameterTuningJobSummary(v **types.Hy if !ok { return fmt.Errorf("expected HyperParameterTuningJobName to be of type string, got %T instead", value) } - sv.HyperParameterTuningJobName = &jtv + sv.HyperParameterTuningJobName = ptr.String(jtv) } case "HyperParameterTuningJobStatus": @@ -23735,7 +23803,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected ImageDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DisplayName": @@ -23744,7 +23812,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected ImageDisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "FailureReason": @@ -23753,7 +23821,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "ImageArn": @@ -23762,7 +23830,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected ImageArn to be of type string, got %T instead", value) } - sv.ImageArn = &jtv + sv.ImageArn = ptr.String(jtv) } case "ImageName": @@ -23771,7 +23839,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if !ok { return fmt.Errorf("expected ImageName to be of type string, got %T instead", value) } - sv.ImageName = &jtv + sv.ImageName = ptr.String(jtv) } case "ImageStatus": @@ -23845,7 +23913,7 @@ func awsAwsjson11_deserializeDocumentImageConfig(v **types.ImageConfig, value in return nil } -func awsAwsjson11_deserializeDocumentImages(v *[]*types.Image, value interface{}) error { +func awsAwsjson11_deserializeDocumentImages(v *[]types.Image, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23858,18 +23926,20 @@ func awsAwsjson11_deserializeDocumentImages(v *[]*types.Image, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Image + var cv []types.Image if *v == nil { - cv = []*types.Image{} + cv = []types.Image{} } else { cv = *v } for _, value := range shape { - var col *types.Image - if err := awsAwsjson11_deserializeDocumentImage(&col, value); err != nil { + var col types.Image + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23918,7 +23988,7 @@ func awsAwsjson11_deserializeDocumentImageVersion(v **types.ImageVersion, value if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "ImageArn": @@ -23927,7 +23997,7 @@ func awsAwsjson11_deserializeDocumentImageVersion(v **types.ImageVersion, value if !ok { return fmt.Errorf("expected ImageArn to be of type string, got %T instead", value) } - sv.ImageArn = &jtv + sv.ImageArn = ptr.String(jtv) } case "ImageVersionArn": @@ -23936,7 +24006,7 @@ func awsAwsjson11_deserializeDocumentImageVersion(v **types.ImageVersion, value if !ok { return fmt.Errorf("expected ImageVersionArn to be of type string, got %T instead", value) } - sv.ImageVersionArn = &jtv + sv.ImageVersionArn = ptr.String(jtv) } case "ImageVersionStatus": @@ -23983,7 +24053,7 @@ func awsAwsjson11_deserializeDocumentImageVersion(v **types.ImageVersion, value return nil } -func awsAwsjson11_deserializeDocumentImageVersions(v *[]*types.ImageVersion, value interface{}) error { +func awsAwsjson11_deserializeDocumentImageVersions(v *[]types.ImageVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23996,18 +24066,20 @@ func awsAwsjson11_deserializeDocumentImageVersions(v *[]*types.ImageVersion, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImageVersion + var cv []types.ImageVersion if *v == nil { - cv = []*types.ImageVersion{} + cv = []types.ImageVersion{} } else { cv = *v } for _, value := range shape { - var col *types.ImageVersion - if err := awsAwsjson11_deserializeDocumentImageVersion(&col, value); err != nil { + var col types.ImageVersion + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImageVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24099,7 +24171,7 @@ func awsAwsjson11_deserializeDocumentInputConfig(v **types.InputConfig, value in if !ok { return fmt.Errorf("expected DataInputConfig to be of type string, got %T instead", value) } - sv.DataInputConfig = &jtv + sv.DataInputConfig = ptr.String(jtv) } case "Framework": @@ -24117,7 +24189,7 @@ func awsAwsjson11_deserializeDocumentInputConfig(v **types.InputConfig, value in if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -24129,7 +24201,7 @@ func awsAwsjson11_deserializeDocumentInputConfig(v **types.InputConfig, value in return nil } -func awsAwsjson11_deserializeDocumentInputDataConfig(v *[]*types.Channel, value interface{}) error { +func awsAwsjson11_deserializeDocumentInputDataConfig(v *[]types.Channel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24142,18 +24214,20 @@ func awsAwsjson11_deserializeDocumentInputDataConfig(v *[]*types.Channel, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Channel + var cv []types.Channel if *v == nil { - cv = []*types.Channel{} + cv = []types.Channel{} } else { cv = *v } for _, value := range shape { - var col *types.Channel - if err := awsAwsjson11_deserializeDocumentChannel(&col, value); err != nil { + var col types.Channel + destAddr := &col + if err := awsAwsjson11_deserializeDocumentChannel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24225,7 +24299,7 @@ func awsAwsjson11_deserializeDocumentIntegerParameterRange(v **types.IntegerPara if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - sv.MaxValue = &jtv + sv.MaxValue = ptr.String(jtv) } case "MinValue": @@ -24234,7 +24308,7 @@ func awsAwsjson11_deserializeDocumentIntegerParameterRange(v **types.IntegerPara if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - sv.MinValue = &jtv + sv.MinValue = ptr.String(jtv) } case "Name": @@ -24243,7 +24317,7 @@ func awsAwsjson11_deserializeDocumentIntegerParameterRange(v **types.IntegerPara if !ok { return fmt.Errorf("expected ParameterKey to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ScalingType": @@ -24264,7 +24338,7 @@ func awsAwsjson11_deserializeDocumentIntegerParameterRange(v **types.IntegerPara return nil } -func awsAwsjson11_deserializeDocumentIntegerParameterRanges(v *[]*types.IntegerParameterRange, value interface{}) error { +func awsAwsjson11_deserializeDocumentIntegerParameterRanges(v *[]types.IntegerParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24277,18 +24351,20 @@ func awsAwsjson11_deserializeDocumentIntegerParameterRanges(v *[]*types.IntegerP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IntegerParameterRange + var cv []types.IntegerParameterRange if *v == nil { - cv = []*types.IntegerParameterRange{} + cv = []types.IntegerParameterRange{} } else { cv = *v } for _, value := range shape { - var col *types.IntegerParameterRange - if err := awsAwsjson11_deserializeDocumentIntegerParameterRange(&col, value); err != nil { + var col types.IntegerParameterRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIntegerParameterRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24324,7 +24400,7 @@ func awsAwsjson11_deserializeDocumentIntegerParameterRangeSpecification(v **type if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - sv.MaxValue = &jtv + sv.MaxValue = ptr.String(jtv) } case "MinValue": @@ -24333,7 +24409,7 @@ func awsAwsjson11_deserializeDocumentIntegerParameterRangeSpecification(v **type if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - sv.MinValue = &jtv + sv.MinValue = ptr.String(jtv) } default: @@ -24345,7 +24421,7 @@ func awsAwsjson11_deserializeDocumentIntegerParameterRangeSpecification(v **type return nil } -func awsAwsjson11_deserializeDocumentJsonContentTypes(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentJsonContentTypes(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24358,21 +24434,21 @@ func awsAwsjson11_deserializeDocumentJsonContentTypes(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected JsonContentType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -24527,7 +24603,7 @@ func awsAwsjson11_deserializeDocumentKernelSpec(v **types.KernelSpec, value inte if !ok { return fmt.Errorf("expected KernelDisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "Name": @@ -24536,7 +24612,7 @@ func awsAwsjson11_deserializeDocumentKernelSpec(v **types.KernelSpec, value inte if !ok { return fmt.Errorf("expected KernelName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -24548,7 +24624,7 @@ func awsAwsjson11_deserializeDocumentKernelSpec(v **types.KernelSpec, value inte return nil } -func awsAwsjson11_deserializeDocumentKernelSpecs(v *[]*types.KernelSpec, value interface{}) error { +func awsAwsjson11_deserializeDocumentKernelSpecs(v *[]types.KernelSpec, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24561,18 +24637,20 @@ func awsAwsjson11_deserializeDocumentKernelSpecs(v *[]*types.KernelSpec, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KernelSpec + var cv []types.KernelSpec if *v == nil { - cv = []*types.KernelSpec{} + cv = []types.KernelSpec{} } else { cv = *v } for _, value := range shape { - var col *types.KernelSpec - if err := awsAwsjson11_deserializeDocumentKernelSpec(&col, value); err != nil { + var col types.KernelSpec + destAddr := &col + if err := awsAwsjson11_deserializeDocumentKernelSpec(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24612,7 +24690,7 @@ func awsAwsjson11_deserializeDocumentLabelCounters(v **types.LabelCounters, valu if err != nil { return err } - sv.FailedNonRetryableError = ptr.Int32(int32(i64)) + sv.FailedNonRetryableError = int32(i64) } case "HumanLabeled": @@ -24625,7 +24703,7 @@ func awsAwsjson11_deserializeDocumentLabelCounters(v **types.LabelCounters, valu if err != nil { return err } - sv.HumanLabeled = ptr.Int32(int32(i64)) + sv.HumanLabeled = int32(i64) } case "MachineLabeled": @@ -24638,7 +24716,7 @@ func awsAwsjson11_deserializeDocumentLabelCounters(v **types.LabelCounters, valu if err != nil { return err } - sv.MachineLabeled = ptr.Int32(int32(i64)) + sv.MachineLabeled = int32(i64) } case "TotalLabeled": @@ -24651,7 +24729,7 @@ func awsAwsjson11_deserializeDocumentLabelCounters(v **types.LabelCounters, valu if err != nil { return err } - sv.TotalLabeled = ptr.Int32(int32(i64)) + sv.TotalLabeled = int32(i64) } case "Unlabeled": @@ -24664,7 +24742,7 @@ func awsAwsjson11_deserializeDocumentLabelCounters(v **types.LabelCounters, valu if err != nil { return err } - sv.Unlabeled = ptr.Int32(int32(i64)) + sv.Unlabeled = int32(i64) } default: @@ -24708,7 +24786,7 @@ func awsAwsjson11_deserializeDocumentLabelCountersForWorkteam(v **types.LabelCou if err != nil { return err } - sv.HumanLabeled = ptr.Int32(int32(i64)) + sv.HumanLabeled = int32(i64) } case "PendingHuman": @@ -24721,7 +24799,7 @@ func awsAwsjson11_deserializeDocumentLabelCountersForWorkteam(v **types.LabelCou if err != nil { return err } - sv.PendingHuman = ptr.Int32(int32(i64)) + sv.PendingHuman = int32(i64) } case "Total": @@ -24734,7 +24812,7 @@ func awsAwsjson11_deserializeDocumentLabelCountersForWorkteam(v **types.LabelCou if err != nil { return err } - sv.Total = ptr.Int32(int32(i64)) + sv.Total = int32(i64) } default: @@ -24774,7 +24852,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobAlgorithmsConfig(v **types.Label if !ok { return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) } - sv.InitialActiveLearningModelArn = &jtv + sv.InitialActiveLearningModelArn = ptr.String(jtv) } case "LabelingJobAlgorithmSpecificationArn": @@ -24783,7 +24861,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobAlgorithmsConfig(v **types.Label if !ok { return fmt.Errorf("expected LabelingJobAlgorithmSpecificationArn to be of type string, got %T instead", value) } - sv.LabelingJobAlgorithmSpecificationArn = &jtv + sv.LabelingJobAlgorithmSpecificationArn = ptr.String(jtv) } case "LabelingJobResourceConfig": @@ -24918,7 +24996,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobForWorkteamSummary(v **types.Lab if !ok { return fmt.Errorf("expected JobReferenceCode to be of type string, got %T instead", value) } - sv.JobReferenceCode = &jtv + sv.JobReferenceCode = ptr.String(jtv) } case "LabelCounters": @@ -24932,7 +25010,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobForWorkteamSummary(v **types.Lab if !ok { return fmt.Errorf("expected LabelingJobName to be of type string, got %T instead", value) } - sv.LabelingJobName = &jtv + sv.LabelingJobName = ptr.String(jtv) } case "NumberOfHumanWorkersPerDataObject": @@ -24954,7 +25032,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobForWorkteamSummary(v **types.Lab if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.WorkRequesterAccountId = &jtv + sv.WorkRequesterAccountId = ptr.String(jtv) } default: @@ -24966,7 +25044,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobForWorkteamSummary(v **types.Lab return nil } -func awsAwsjson11_deserializeDocumentLabelingJobForWorkteamSummaryList(v *[]*types.LabelingJobForWorkteamSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentLabelingJobForWorkteamSummaryList(v *[]types.LabelingJobForWorkteamSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24979,18 +25057,20 @@ func awsAwsjson11_deserializeDocumentLabelingJobForWorkteamSummaryList(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LabelingJobForWorkteamSummary + var cv []types.LabelingJobForWorkteamSummary if *v == nil { - cv = []*types.LabelingJobForWorkteamSummary{} + cv = []types.LabelingJobForWorkteamSummary{} } else { cv = *v } for _, value := range shape { - var col *types.LabelingJobForWorkteamSummary - if err := awsAwsjson11_deserializeDocumentLabelingJobForWorkteamSummary(&col, value); err != nil { + var col types.LabelingJobForWorkteamSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLabelingJobForWorkteamSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25067,7 +25147,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobOutput(v **types.LabelingJobOutp if !ok { return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) } - sv.FinalActiveLearningModelArn = &jtv + sv.FinalActiveLearningModelArn = ptr.String(jtv) } case "OutputDatasetS3Uri": @@ -25076,7 +25156,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobOutput(v **types.LabelingJobOutp if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.OutputDatasetS3Uri = &jtv + sv.OutputDatasetS3Uri = ptr.String(jtv) } default: @@ -25116,7 +25196,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobOutputConfig(v **types.LabelingJ if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "S3OutputPath": @@ -25125,7 +25205,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobOutputConfig(v **types.LabelingJ if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3OutputPath = &jtv + sv.S3OutputPath = ptr.String(jtv) } case "SnsTopicArn": @@ -25134,7 +25214,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobOutputConfig(v **types.LabelingJ if !ok { return fmt.Errorf("expected SnsTopicArn to be of type string, got %T instead", value) } - sv.SnsTopicArn = &jtv + sv.SnsTopicArn = ptr.String(jtv) } default: @@ -25174,7 +25254,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobResourceConfig(v **types.Labelin if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } default: @@ -25214,7 +25294,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobS3DataSource(v **types.LabelingJ if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.ManifestS3Uri = &jtv + sv.ManifestS3Uri = ptr.String(jtv) } default: @@ -25254,7 +25334,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobSnsDataSource(v **types.Labeling if !ok { return fmt.Errorf("expected SnsTopicArn to be of type string, got %T instead", value) } - sv.SnsTopicArn = &jtv + sv.SnsTopicArn = ptr.String(jtv) } default: @@ -25351,7 +25431,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobSummary(v **types.LabelingJobSum if !ok { return fmt.Errorf("expected LambdaFunctionArn to be of type string, got %T instead", value) } - sv.AnnotationConsolidationLambdaArn = &jtv + sv.AnnotationConsolidationLambdaArn = ptr.String(jtv) } case "CreationTime": @@ -25373,7 +25453,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobSummary(v **types.LabelingJobSum if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "InputConfig": @@ -25392,7 +25472,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobSummary(v **types.LabelingJobSum if !ok { return fmt.Errorf("expected LabelingJobArn to be of type string, got %T instead", value) } - sv.LabelingJobArn = &jtv + sv.LabelingJobArn = ptr.String(jtv) } case "LabelingJobName": @@ -25401,7 +25481,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobSummary(v **types.LabelingJobSum if !ok { return fmt.Errorf("expected LabelingJobName to be of type string, got %T instead", value) } - sv.LabelingJobName = &jtv + sv.LabelingJobName = ptr.String(jtv) } case "LabelingJobOutput": @@ -25437,7 +25517,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobSummary(v **types.LabelingJobSum if !ok { return fmt.Errorf("expected LambdaFunctionArn to be of type string, got %T instead", value) } - sv.PreHumanTaskLambdaArn = &jtv + sv.PreHumanTaskLambdaArn = ptr.String(jtv) } case "WorkteamArn": @@ -25446,7 +25526,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobSummary(v **types.LabelingJobSum if !ok { return fmt.Errorf("expected WorkteamArn to be of type string, got %T instead", value) } - sv.WorkteamArn = &jtv + sv.WorkteamArn = ptr.String(jtv) } default: @@ -25458,7 +25538,7 @@ func awsAwsjson11_deserializeDocumentLabelingJobSummary(v **types.LabelingJobSum return nil } -func awsAwsjson11_deserializeDocumentLabelingJobSummaryList(v *[]*types.LabelingJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentLabelingJobSummaryList(v *[]types.LabelingJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25471,18 +25551,20 @@ func awsAwsjson11_deserializeDocumentLabelingJobSummaryList(v *[]*types.Labeling return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LabelingJobSummary + var cv []types.LabelingJobSummary if *v == nil { - cv = []*types.LabelingJobSummary{} + cv = []types.LabelingJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.LabelingJobSummary - if err := awsAwsjson11_deserializeDocumentLabelingJobSummary(&col, value); err != nil { + var col types.LabelingJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLabelingJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25531,7 +25613,7 @@ func awsAwsjson11_deserializeDocumentMemberDefinition(v **types.MemberDefinition return nil } -func awsAwsjson11_deserializeDocumentMemberDefinitions(v *[]*types.MemberDefinition, value interface{}) error { +func awsAwsjson11_deserializeDocumentMemberDefinitions(v *[]types.MemberDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25544,18 +25626,20 @@ func awsAwsjson11_deserializeDocumentMemberDefinitions(v *[]*types.MemberDefinit return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MemberDefinition + var cv []types.MemberDefinition if *v == nil { - cv = []*types.MemberDefinition{} + cv = []types.MemberDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.MemberDefinition - if err := awsAwsjson11_deserializeDocumentMemberDefinition(&col, value); err != nil { + var col types.MemberDefinition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMemberDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25591,7 +25675,7 @@ func awsAwsjson11_deserializeDocumentMetricData(v **types.MetricData, value inte if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Timestamp": @@ -25617,7 +25701,7 @@ func awsAwsjson11_deserializeDocumentMetricData(v **types.MetricData, value inte if err != nil { return err } - sv.Value = ptr.Float32(float32(f64)) + sv.Value = float32(f64) } default: @@ -25657,7 +25741,7 @@ func awsAwsjson11_deserializeDocumentMetricDefinition(v **types.MetricDefinition if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Regex": @@ -25666,7 +25750,7 @@ func awsAwsjson11_deserializeDocumentMetricDefinition(v **types.MetricDefinition if !ok { return fmt.Errorf("expected MetricRegex to be of type string, got %T instead", value) } - sv.Regex = &jtv + sv.Regex = ptr.String(jtv) } default: @@ -25678,7 +25762,7 @@ func awsAwsjson11_deserializeDocumentMetricDefinition(v **types.MetricDefinition return nil } -func awsAwsjson11_deserializeDocumentMetricDefinitionList(v *[]*types.MetricDefinition, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricDefinitionList(v *[]types.MetricDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25691,18 +25775,20 @@ func awsAwsjson11_deserializeDocumentMetricDefinitionList(v *[]*types.MetricDefi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MetricDefinition + var cv []types.MetricDefinition if *v == nil { - cv = []*types.MetricDefinition{} + cv = []types.MetricDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.MetricDefinition - if err := awsAwsjson11_deserializeDocumentMetricDefinition(&col, value); err != nil { + var col types.MetricDefinition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMetricDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25738,7 +25824,7 @@ func awsAwsjson11_deserializeDocumentModelArtifacts(v **types.ModelArtifacts, va if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3ModelArtifacts = &jtv + sv.S3ModelArtifacts = ptr.String(jtv) } default: @@ -25835,7 +25921,7 @@ func awsAwsjson11_deserializeDocumentModelPackageContainerDefinition(v **types.M if !ok { return fmt.Errorf("expected ContainerHostname to be of type string, got %T instead", value) } - sv.ContainerHostname = &jtv + sv.ContainerHostname = ptr.String(jtv) } case "Image": @@ -25844,7 +25930,7 @@ func awsAwsjson11_deserializeDocumentModelPackageContainerDefinition(v **types.M if !ok { return fmt.Errorf("expected ContainerImage to be of type string, got %T instead", value) } - sv.Image = &jtv + sv.Image = ptr.String(jtv) } case "ImageDigest": @@ -25853,7 +25939,7 @@ func awsAwsjson11_deserializeDocumentModelPackageContainerDefinition(v **types.M if !ok { return fmt.Errorf("expected ImageDigest to be of type string, got %T instead", value) } - sv.ImageDigest = &jtv + sv.ImageDigest = ptr.String(jtv) } case "ModelDataUrl": @@ -25862,7 +25948,7 @@ func awsAwsjson11_deserializeDocumentModelPackageContainerDefinition(v **types.M if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ModelDataUrl = &jtv + sv.ModelDataUrl = ptr.String(jtv) } case "ProductId": @@ -25871,7 +25957,7 @@ func awsAwsjson11_deserializeDocumentModelPackageContainerDefinition(v **types.M if !ok { return fmt.Errorf("expected ProductId to be of type string, got %T instead", value) } - sv.ProductId = &jtv + sv.ProductId = ptr.String(jtv) } default: @@ -25883,7 +25969,7 @@ func awsAwsjson11_deserializeDocumentModelPackageContainerDefinition(v **types.M return nil } -func awsAwsjson11_deserializeDocumentModelPackageContainerDefinitionList(v *[]*types.ModelPackageContainerDefinition, value interface{}) error { +func awsAwsjson11_deserializeDocumentModelPackageContainerDefinitionList(v *[]types.ModelPackageContainerDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25896,18 +25982,20 @@ func awsAwsjson11_deserializeDocumentModelPackageContainerDefinitionList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ModelPackageContainerDefinition + var cv []types.ModelPackageContainerDefinition if *v == nil { - cv = []*types.ModelPackageContainerDefinition{} + cv = []types.ModelPackageContainerDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.ModelPackageContainerDefinition - if err := awsAwsjson11_deserializeDocumentModelPackageContainerDefinition(&col, value); err != nil { + var col types.ModelPackageContainerDefinition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentModelPackageContainerDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25984,7 +26072,7 @@ func awsAwsjson11_deserializeDocumentModelPackageStatusItem(v **types.ModelPacka if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "Name": @@ -25993,7 +26081,7 @@ func awsAwsjson11_deserializeDocumentModelPackageStatusItem(v **types.ModelPacka if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -26014,7 +26102,7 @@ func awsAwsjson11_deserializeDocumentModelPackageStatusItem(v **types.ModelPacka return nil } -func awsAwsjson11_deserializeDocumentModelPackageStatusItemList(v *[]*types.ModelPackageStatusItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentModelPackageStatusItemList(v *[]types.ModelPackageStatusItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26027,18 +26115,20 @@ func awsAwsjson11_deserializeDocumentModelPackageStatusItemList(v *[]*types.Mode return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ModelPackageStatusItem + var cv []types.ModelPackageStatusItem if *v == nil { - cv = []*types.ModelPackageStatusItem{} + cv = []types.ModelPackageStatusItem{} } else { cv = *v } for _, value := range shape { - var col *types.ModelPackageStatusItem - if err := awsAwsjson11_deserializeDocumentModelPackageStatusItem(&col, value); err != nil { + var col types.ModelPackageStatusItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentModelPackageStatusItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26087,7 +26177,7 @@ func awsAwsjson11_deserializeDocumentModelPackageSummary(v **types.ModelPackageS if !ok { return fmt.Errorf("expected ModelPackageArn to be of type string, got %T instead", value) } - sv.ModelPackageArn = &jtv + sv.ModelPackageArn = ptr.String(jtv) } case "ModelPackageDescription": @@ -26096,7 +26186,7 @@ func awsAwsjson11_deserializeDocumentModelPackageSummary(v **types.ModelPackageS if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.ModelPackageDescription = &jtv + sv.ModelPackageDescription = ptr.String(jtv) } case "ModelPackageName": @@ -26105,7 +26195,7 @@ func awsAwsjson11_deserializeDocumentModelPackageSummary(v **types.ModelPackageS if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.ModelPackageName = &jtv + sv.ModelPackageName = ptr.String(jtv) } case "ModelPackageStatus": @@ -26126,7 +26216,7 @@ func awsAwsjson11_deserializeDocumentModelPackageSummary(v **types.ModelPackageS return nil } -func awsAwsjson11_deserializeDocumentModelPackageSummaryList(v *[]*types.ModelPackageSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentModelPackageSummaryList(v *[]types.ModelPackageSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26139,18 +26229,20 @@ func awsAwsjson11_deserializeDocumentModelPackageSummaryList(v *[]*types.ModelPa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ModelPackageSummary + var cv []types.ModelPackageSummary if *v == nil { - cv = []*types.ModelPackageSummary{} + cv = []types.ModelPackageSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ModelPackageSummary - if err := awsAwsjson11_deserializeDocumentModelPackageSummary(&col, value); err != nil { + var col types.ModelPackageSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentModelPackageSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26186,7 +26278,7 @@ func awsAwsjson11_deserializeDocumentModelPackageValidationProfile(v **types.Mod if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.ProfileName = &jtv + sv.ProfileName = ptr.String(jtv) } case "TransformJobDefinition": @@ -26203,7 +26295,7 @@ func awsAwsjson11_deserializeDocumentModelPackageValidationProfile(v **types.Mod return nil } -func awsAwsjson11_deserializeDocumentModelPackageValidationProfiles(v *[]*types.ModelPackageValidationProfile, value interface{}) error { +func awsAwsjson11_deserializeDocumentModelPackageValidationProfiles(v *[]types.ModelPackageValidationProfile, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26216,18 +26308,20 @@ func awsAwsjson11_deserializeDocumentModelPackageValidationProfiles(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ModelPackageValidationProfile + var cv []types.ModelPackageValidationProfile if *v == nil { - cv = []*types.ModelPackageValidationProfile{} + cv = []types.ModelPackageValidationProfile{} } else { cv = *v } for _, value := range shape { - var col *types.ModelPackageValidationProfile - if err := awsAwsjson11_deserializeDocumentModelPackageValidationProfile(&col, value); err != nil { + var col types.ModelPackageValidationProfile + destAddr := &col + if err := awsAwsjson11_deserializeDocumentModelPackageValidationProfile(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26268,7 +26362,7 @@ func awsAwsjson11_deserializeDocumentModelPackageValidationSpecification(v **typ if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.ValidationRole = &jtv + sv.ValidationRole = ptr.String(jtv) } default: @@ -26321,7 +26415,7 @@ func awsAwsjson11_deserializeDocumentModelSummary(v **types.ModelSummary, value if !ok { return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) } - sv.ModelArn = &jtv + sv.ModelArn = ptr.String(jtv) } case "ModelName": @@ -26330,7 +26424,7 @@ func awsAwsjson11_deserializeDocumentModelSummary(v **types.ModelSummary, value if !ok { return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) } - sv.ModelName = &jtv + sv.ModelName = ptr.String(jtv) } default: @@ -26342,7 +26436,7 @@ func awsAwsjson11_deserializeDocumentModelSummary(v **types.ModelSummary, value return nil } -func awsAwsjson11_deserializeDocumentModelSummaryList(v *[]*types.ModelSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentModelSummaryList(v *[]types.ModelSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26355,18 +26449,20 @@ func awsAwsjson11_deserializeDocumentModelSummaryList(v *[]*types.ModelSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ModelSummary + var cv []types.ModelSummary if *v == nil { - cv = []*types.ModelSummary{} + cv = []types.ModelSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ModelSummary - if err := awsAwsjson11_deserializeDocumentModelSummary(&col, value); err != nil { + var col types.ModelSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentModelSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26412,7 +26508,7 @@ func awsAwsjson11_deserializeDocumentMonitoringAppSpecification(v **types.Monito if !ok { return fmt.Errorf("expected ImageUri to be of type string, got %T instead", value) } - sv.ImageUri = &jtv + sv.ImageUri = ptr.String(jtv) } case "PostAnalyticsProcessorSourceUri": @@ -26421,7 +26517,7 @@ func awsAwsjson11_deserializeDocumentMonitoringAppSpecification(v **types.Monito if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.PostAnalyticsProcessorSourceUri = &jtv + sv.PostAnalyticsProcessorSourceUri = ptr.String(jtv) } case "RecordPreprocessorSourceUri": @@ -26430,7 +26526,7 @@ func awsAwsjson11_deserializeDocumentMonitoringAppSpecification(v **types.Monito if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.RecordPreprocessorSourceUri = &jtv + sv.RecordPreprocessorSourceUri = ptr.String(jtv) } default: @@ -26533,7 +26629,7 @@ func awsAwsjson11_deserializeDocumentMonitoringClusterConfig(v **types.Monitorin if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } case "VolumeSizeInGB": @@ -26586,7 +26682,7 @@ func awsAwsjson11_deserializeDocumentMonitoringConstraintsResource(v **types.Mon if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -26598,7 +26694,7 @@ func awsAwsjson11_deserializeDocumentMonitoringConstraintsResource(v **types.Mon return nil } -func awsAwsjson11_deserializeDocumentMonitoringContainerArguments(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentMonitoringContainerArguments(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26611,21 +26707,21 @@ func awsAwsjson11_deserializeDocumentMonitoringContainerArguments(v *[]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ContainerArgument to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -26634,7 +26730,7 @@ func awsAwsjson11_deserializeDocumentMonitoringContainerArguments(v *[]*string, return nil } -func awsAwsjson11_deserializeDocumentMonitoringEnvironmentMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentMonitoringEnvironmentMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26647,21 +26743,21 @@ func awsAwsjson11_deserializeDocumentMonitoringEnvironmentMap(v *map[string]*str return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ProcessingEnvironmentValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -26711,7 +26807,7 @@ func awsAwsjson11_deserializeDocumentMonitoringExecutionSummary(v **types.Monito if !ok { return fmt.Errorf("expected EndpointName to be of type string, got %T instead", value) } - sv.EndpointName = &jtv + sv.EndpointName = ptr.String(jtv) } case "FailureReason": @@ -26720,7 +26816,7 @@ func awsAwsjson11_deserializeDocumentMonitoringExecutionSummary(v **types.Monito if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LastModifiedTime": @@ -26751,7 +26847,7 @@ func awsAwsjson11_deserializeDocumentMonitoringExecutionSummary(v **types.Monito if !ok { return fmt.Errorf("expected MonitoringScheduleName to be of type string, got %T instead", value) } - sv.MonitoringScheduleName = &jtv + sv.MonitoringScheduleName = ptr.String(jtv) } case "ProcessingJobArn": @@ -26760,7 +26856,7 @@ func awsAwsjson11_deserializeDocumentMonitoringExecutionSummary(v **types.Monito if !ok { return fmt.Errorf("expected ProcessingJobArn to be of type string, got %T instead", value) } - sv.ProcessingJobArn = &jtv + sv.ProcessingJobArn = ptr.String(jtv) } case "ScheduledTime": @@ -26785,7 +26881,7 @@ func awsAwsjson11_deserializeDocumentMonitoringExecutionSummary(v **types.Monito return nil } -func awsAwsjson11_deserializeDocumentMonitoringExecutionSummaryList(v *[]*types.MonitoringExecutionSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentMonitoringExecutionSummaryList(v *[]types.MonitoringExecutionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26798,18 +26894,20 @@ func awsAwsjson11_deserializeDocumentMonitoringExecutionSummaryList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MonitoringExecutionSummary + var cv []types.MonitoringExecutionSummary if *v == nil { - cv = []*types.MonitoringExecutionSummary{} + cv = []types.MonitoringExecutionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.MonitoringExecutionSummary - if err := awsAwsjson11_deserializeDocumentMonitoringExecutionSummary(&col, value); err != nil { + var col types.MonitoringExecutionSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMonitoringExecutionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26853,7 +26951,7 @@ func awsAwsjson11_deserializeDocumentMonitoringInput(v **types.MonitoringInput, return nil } -func awsAwsjson11_deserializeDocumentMonitoringInputs(v *[]*types.MonitoringInput, value interface{}) error { +func awsAwsjson11_deserializeDocumentMonitoringInputs(v *[]types.MonitoringInput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26866,18 +26964,20 @@ func awsAwsjson11_deserializeDocumentMonitoringInputs(v *[]*types.MonitoringInpu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MonitoringInput + var cv []types.MonitoringInput if *v == nil { - cv = []*types.MonitoringInput{} + cv = []types.MonitoringInput{} } else { cv = *v } for _, value := range shape { - var col *types.MonitoringInput - if err := awsAwsjson11_deserializeDocumentMonitoringInput(&col, value); err != nil { + var col types.MonitoringInput + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMonitoringInput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26948,7 +27048,7 @@ func awsAwsjson11_deserializeDocumentMonitoringJobDefinition(v **types.Monitorin if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "StoppingCondition": @@ -27029,7 +27129,7 @@ func awsAwsjson11_deserializeDocumentMonitoringOutputConfig(v **types.Monitoring if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "MonitoringOutputs": @@ -27046,7 +27146,7 @@ func awsAwsjson11_deserializeDocumentMonitoringOutputConfig(v **types.Monitoring return nil } -func awsAwsjson11_deserializeDocumentMonitoringOutputs(v *[]*types.MonitoringOutput, value interface{}) error { +func awsAwsjson11_deserializeDocumentMonitoringOutputs(v *[]types.MonitoringOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27059,18 +27159,20 @@ func awsAwsjson11_deserializeDocumentMonitoringOutputs(v *[]*types.MonitoringOut return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MonitoringOutput + var cv []types.MonitoringOutput if *v == nil { - cv = []*types.MonitoringOutput{} + cv = []types.MonitoringOutput{} } else { cv = *v } for _, value := range shape { - var col *types.MonitoringOutput - if err := awsAwsjson11_deserializeDocumentMonitoringOutput(&col, value); err != nil { + var col types.MonitoringOutput + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMonitoringOutput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27142,7 +27244,7 @@ func awsAwsjson11_deserializeDocumentMonitoringS3Output(v **types.MonitoringS3Ou if !ok { return fmt.Errorf("expected ProcessingLocalPath to be of type string, got %T instead", value) } - sv.LocalPath = &jtv + sv.LocalPath = ptr.String(jtv) } case "S3UploadMode": @@ -27160,7 +27262,7 @@ func awsAwsjson11_deserializeDocumentMonitoringS3Output(v **types.MonitoringS3Ou if !ok { return fmt.Errorf("expected MonitoringS3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -27254,7 +27356,7 @@ func awsAwsjson11_deserializeDocumentMonitoringScheduleSummary(v **types.Monitor if !ok { return fmt.Errorf("expected EndpointName to be of type string, got %T instead", value) } - sv.EndpointName = &jtv + sv.EndpointName = ptr.String(jtv) } case "LastModifiedTime": @@ -27276,7 +27378,7 @@ func awsAwsjson11_deserializeDocumentMonitoringScheduleSummary(v **types.Monitor if !ok { return fmt.Errorf("expected MonitoringScheduleArn to be of type string, got %T instead", value) } - sv.MonitoringScheduleArn = &jtv + sv.MonitoringScheduleArn = ptr.String(jtv) } case "MonitoringScheduleName": @@ -27285,7 +27387,7 @@ func awsAwsjson11_deserializeDocumentMonitoringScheduleSummary(v **types.Monitor if !ok { return fmt.Errorf("expected MonitoringScheduleName to be of type string, got %T instead", value) } - sv.MonitoringScheduleName = &jtv + sv.MonitoringScheduleName = ptr.String(jtv) } case "MonitoringScheduleStatus": @@ -27306,7 +27408,7 @@ func awsAwsjson11_deserializeDocumentMonitoringScheduleSummary(v **types.Monitor return nil } -func awsAwsjson11_deserializeDocumentMonitoringScheduleSummaryList(v *[]*types.MonitoringScheduleSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentMonitoringScheduleSummaryList(v *[]types.MonitoringScheduleSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27319,18 +27421,20 @@ func awsAwsjson11_deserializeDocumentMonitoringScheduleSummaryList(v *[]*types.M return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MonitoringScheduleSummary + var cv []types.MonitoringScheduleSummary if *v == nil { - cv = []*types.MonitoringScheduleSummary{} + cv = []types.MonitoringScheduleSummary{} } else { cv = *v } for _, value := range shape { - var col *types.MonitoringScheduleSummary - if err := awsAwsjson11_deserializeDocumentMonitoringScheduleSummary(&col, value); err != nil { + var col types.MonitoringScheduleSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMonitoringScheduleSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27366,7 +27470,7 @@ func awsAwsjson11_deserializeDocumentMonitoringStatisticsResource(v **types.Moni if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -27410,7 +27514,7 @@ func awsAwsjson11_deserializeDocumentMonitoringStoppingCondition(v **types.Monit if err != nil { return err } - sv.MaxRuntimeInSeconds = ptr.Int32(int32(i64)) + sv.MaxRuntimeInSeconds = int32(i64) } default: @@ -27450,7 +27554,7 @@ func awsAwsjson11_deserializeDocumentNetworkConfig(v **types.NetworkConfig, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableInterContainerTrafficEncryption = &jtv + sv.EnableInterContainerTrafficEncryption = jtv } case "EnableNetworkIsolation": @@ -27459,7 +27563,7 @@ func awsAwsjson11_deserializeDocumentNetworkConfig(v **types.NetworkConfig, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableNetworkIsolation = &jtv + sv.EnableNetworkIsolation = jtv } case "VpcConfig": @@ -27512,7 +27616,7 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceAcceleratorTypes(v *[]types return nil } -func awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleConfigList(v *[]*types.NotebookInstanceLifecycleHook, value interface{}) error { +func awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleConfigList(v *[]types.NotebookInstanceLifecycleHook, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27525,18 +27629,20 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleConfigList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NotebookInstanceLifecycleHook + var cv []types.NotebookInstanceLifecycleHook if *v == nil { - cv = []*types.NotebookInstanceLifecycleHook{} + cv = []types.NotebookInstanceLifecycleHook{} } else { cv = *v } for _, value := range shape { - var col *types.NotebookInstanceLifecycleHook - if err := awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleHook(&col, value); err != nil { + var col types.NotebookInstanceLifecycleHook + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleHook(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27598,7 +27704,7 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleConfigSummary(v ** if !ok { return fmt.Errorf("expected NotebookInstanceLifecycleConfigArn to be of type string, got %T instead", value) } - sv.NotebookInstanceLifecycleConfigArn = &jtv + sv.NotebookInstanceLifecycleConfigArn = ptr.String(jtv) } case "NotebookInstanceLifecycleConfigName": @@ -27607,7 +27713,7 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleConfigSummary(v ** if !ok { return fmt.Errorf("expected NotebookInstanceLifecycleConfigName to be of type string, got %T instead", value) } - sv.NotebookInstanceLifecycleConfigName = &jtv + sv.NotebookInstanceLifecycleConfigName = ptr.String(jtv) } default: @@ -27619,7 +27725,7 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleConfigSummary(v ** return nil } -func awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleConfigSummaryList(v *[]*types.NotebookInstanceLifecycleConfigSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleConfigSummaryList(v *[]types.NotebookInstanceLifecycleConfigSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27632,18 +27738,20 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleConfigSummaryList( return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NotebookInstanceLifecycleConfigSummary + var cv []types.NotebookInstanceLifecycleConfigSummary if *v == nil { - cv = []*types.NotebookInstanceLifecycleConfigSummary{} + cv = []types.NotebookInstanceLifecycleConfigSummary{} } else { cv = *v } for _, value := range shape { - var col *types.NotebookInstanceLifecycleConfigSummary - if err := awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleConfigSummary(&col, value); err != nil { + var col types.NotebookInstanceLifecycleConfigSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleConfigSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27679,7 +27787,7 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceLifecycleHook(v **types.Not if !ok { return fmt.Errorf("expected NotebookInstanceLifecycleConfigContent to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } default: @@ -27737,7 +27845,7 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceSummary(v **types.NotebookI if !ok { return fmt.Errorf("expected CodeRepositoryNameOrUrl to be of type string, got %T instead", value) } - sv.DefaultCodeRepository = &jtv + sv.DefaultCodeRepository = ptr.String(jtv) } case "InstanceType": @@ -27768,7 +27876,7 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceSummary(v **types.NotebookI if !ok { return fmt.Errorf("expected NotebookInstanceArn to be of type string, got %T instead", value) } - sv.NotebookInstanceArn = &jtv + sv.NotebookInstanceArn = ptr.String(jtv) } case "NotebookInstanceLifecycleConfigName": @@ -27777,7 +27885,7 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceSummary(v **types.NotebookI if !ok { return fmt.Errorf("expected NotebookInstanceLifecycleConfigName to be of type string, got %T instead", value) } - sv.NotebookInstanceLifecycleConfigName = &jtv + sv.NotebookInstanceLifecycleConfigName = ptr.String(jtv) } case "NotebookInstanceName": @@ -27786,7 +27894,7 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceSummary(v **types.NotebookI if !ok { return fmt.Errorf("expected NotebookInstanceName to be of type string, got %T instead", value) } - sv.NotebookInstanceName = &jtv + sv.NotebookInstanceName = ptr.String(jtv) } case "NotebookInstanceStatus": @@ -27804,7 +27912,7 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceSummary(v **types.NotebookI if !ok { return fmt.Errorf("expected NotebookInstanceUrl to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -27816,7 +27924,7 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceSummary(v **types.NotebookI return nil } -func awsAwsjson11_deserializeDocumentNotebookInstanceSummaryList(v *[]*types.NotebookInstanceSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentNotebookInstanceSummaryList(v *[]types.NotebookInstanceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27829,18 +27937,20 @@ func awsAwsjson11_deserializeDocumentNotebookInstanceSummaryList(v *[]*types.Not return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NotebookInstanceSummary + var cv []types.NotebookInstanceSummary if *v == nil { - cv = []*types.NotebookInstanceSummary{} + cv = []types.NotebookInstanceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.NotebookInstanceSummary - if err := awsAwsjson11_deserializeDocumentNotebookInstanceSummary(&col, value); err != nil { + var col types.NotebookInstanceSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNotebookInstanceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27876,7 +27986,7 @@ func awsAwsjson11_deserializeDocumentNotificationConfiguration(v **types.Notific if !ok { return fmt.Errorf("expected NotificationTopicArn to be of type string, got %T instead", value) } - sv.NotificationTopicArn = &jtv + sv.NotificationTopicArn = ptr.String(jtv) } default: @@ -27920,7 +28030,7 @@ func awsAwsjson11_deserializeDocumentObjectiveStatusCounters(v **types.Objective if err != nil { return err } - sv.Failed = ptr.Int32(int32(i64)) + sv.Failed = int32(i64) } case "Pending": @@ -27933,7 +28043,7 @@ func awsAwsjson11_deserializeDocumentObjectiveStatusCounters(v **types.Objective if err != nil { return err } - sv.Pending = ptr.Int32(int32(i64)) + sv.Pending = int32(i64) } case "Succeeded": @@ -27946,7 +28056,7 @@ func awsAwsjson11_deserializeDocumentObjectiveStatusCounters(v **types.Objective if err != nil { return err } - sv.Succeeded = ptr.Int32(int32(i64)) + sv.Succeeded = int32(i64) } default: @@ -27986,7 +28096,7 @@ func awsAwsjson11_deserializeDocumentOidcConfigForResponse(v **types.OidcConfigF if !ok { return fmt.Errorf("expected OidcEndpoint to be of type string, got %T instead", value) } - sv.AuthorizationEndpoint = &jtv + sv.AuthorizationEndpoint = ptr.String(jtv) } case "ClientId": @@ -27995,7 +28105,7 @@ func awsAwsjson11_deserializeDocumentOidcConfigForResponse(v **types.OidcConfigF if !ok { return fmt.Errorf("expected ClientId to be of type string, got %T instead", value) } - sv.ClientId = &jtv + sv.ClientId = ptr.String(jtv) } case "Issuer": @@ -28004,7 +28114,7 @@ func awsAwsjson11_deserializeDocumentOidcConfigForResponse(v **types.OidcConfigF if !ok { return fmt.Errorf("expected OidcEndpoint to be of type string, got %T instead", value) } - sv.Issuer = &jtv + sv.Issuer = ptr.String(jtv) } case "JwksUri": @@ -28013,7 +28123,7 @@ func awsAwsjson11_deserializeDocumentOidcConfigForResponse(v **types.OidcConfigF if !ok { return fmt.Errorf("expected OidcEndpoint to be of type string, got %T instead", value) } - sv.JwksUri = &jtv + sv.JwksUri = ptr.String(jtv) } case "LogoutEndpoint": @@ -28022,7 +28132,7 @@ func awsAwsjson11_deserializeDocumentOidcConfigForResponse(v **types.OidcConfigF if !ok { return fmt.Errorf("expected OidcEndpoint to be of type string, got %T instead", value) } - sv.LogoutEndpoint = &jtv + sv.LogoutEndpoint = ptr.String(jtv) } case "TokenEndpoint": @@ -28031,7 +28141,7 @@ func awsAwsjson11_deserializeDocumentOidcConfigForResponse(v **types.OidcConfigF if !ok { return fmt.Errorf("expected OidcEndpoint to be of type string, got %T instead", value) } - sv.TokenEndpoint = &jtv + sv.TokenEndpoint = ptr.String(jtv) } case "UserInfoEndpoint": @@ -28040,7 +28150,7 @@ func awsAwsjson11_deserializeDocumentOidcConfigForResponse(v **types.OidcConfigF if !ok { return fmt.Errorf("expected OidcEndpoint to be of type string, got %T instead", value) } - sv.UserInfoEndpoint = &jtv + sv.UserInfoEndpoint = ptr.String(jtv) } default: @@ -28116,7 +28226,7 @@ func awsAwsjson11_deserializeDocumentOutputConfig(v **types.OutputConfig, value if !ok { return fmt.Errorf("expected CompilerOptions to be of type string, got %T instead", value) } - sv.CompilerOptions = &jtv + sv.CompilerOptions = ptr.String(jtv) } case "S3OutputLocation": @@ -28125,7 +28235,7 @@ func awsAwsjson11_deserializeDocumentOutputConfig(v **types.OutputConfig, value if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3OutputLocation = &jtv + sv.S3OutputLocation = ptr.String(jtv) } case "TargetDevice": @@ -28179,7 +28289,7 @@ func awsAwsjson11_deserializeDocumentOutputDataConfig(v **types.OutputDataConfig if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "S3OutputPath": @@ -28188,7 +28298,7 @@ func awsAwsjson11_deserializeDocumentOutputDataConfig(v **types.OutputDataConfig if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3OutputPath = &jtv + sv.S3OutputPath = ptr.String(jtv) } default: @@ -28292,7 +28402,7 @@ func awsAwsjson11_deserializeDocumentParameterRanges(v **types.ParameterRanges, return nil } -func awsAwsjson11_deserializeDocumentParameterValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28305,21 +28415,21 @@ func awsAwsjson11_deserializeDocumentParameterValues(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -28356,7 +28466,7 @@ func awsAwsjson11_deserializeDocumentParent(v **types.Parent, value interface{}) if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.ExperimentName = &jtv + sv.ExperimentName = ptr.String(jtv) } case "TrialName": @@ -28365,7 +28475,7 @@ func awsAwsjson11_deserializeDocumentParent(v **types.Parent, value interface{}) if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.TrialName = &jtv + sv.TrialName = ptr.String(jtv) } default: @@ -28405,7 +28515,7 @@ func awsAwsjson11_deserializeDocumentParentHyperParameterTuningJob(v **types.Par if !ok { return fmt.Errorf("expected HyperParameterTuningJobName to be of type string, got %T instead", value) } - sv.HyperParameterTuningJobName = &jtv + sv.HyperParameterTuningJobName = ptr.String(jtv) } default: @@ -28417,7 +28527,7 @@ func awsAwsjson11_deserializeDocumentParentHyperParameterTuningJob(v **types.Par return nil } -func awsAwsjson11_deserializeDocumentParentHyperParameterTuningJobs(v *[]*types.ParentHyperParameterTuningJob, value interface{}) error { +func awsAwsjson11_deserializeDocumentParentHyperParameterTuningJobs(v *[]types.ParentHyperParameterTuningJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28430,18 +28540,20 @@ func awsAwsjson11_deserializeDocumentParentHyperParameterTuningJobs(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ParentHyperParameterTuningJob + var cv []types.ParentHyperParameterTuningJob if *v == nil { - cv = []*types.ParentHyperParameterTuningJob{} + cv = []types.ParentHyperParameterTuningJob{} } else { cv = *v } for _, value := range shape { - var col *types.ParentHyperParameterTuningJob - if err := awsAwsjson11_deserializeDocumentParentHyperParameterTuningJob(&col, value); err != nil { + var col types.ParentHyperParameterTuningJob + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParentHyperParameterTuningJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28449,7 +28561,7 @@ func awsAwsjson11_deserializeDocumentParentHyperParameterTuningJobs(v *[]*types. return nil } -func awsAwsjson11_deserializeDocumentParents(v *[]*types.Parent, value interface{}) error { +func awsAwsjson11_deserializeDocumentParents(v *[]types.Parent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28462,18 +28574,20 @@ func awsAwsjson11_deserializeDocumentParents(v *[]*types.Parent, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Parent + var cv []types.Parent if *v == nil { - cv = []*types.Parent{} + cv = []types.Parent{} } else { cv = *v } for _, value := range shape { - var col *types.Parent - if err := awsAwsjson11_deserializeDocumentParent(&col, value); err != nil { + var col types.Parent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28531,7 +28645,7 @@ func awsAwsjson11_deserializeDocumentProcessingClusterConfig(v **types.Processin if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } case "VolumeSizeInGB": @@ -28556,7 +28670,7 @@ func awsAwsjson11_deserializeDocumentProcessingClusterConfig(v **types.Processin return nil } -func awsAwsjson11_deserializeDocumentProcessingEnvironmentMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentProcessingEnvironmentMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28569,21 +28683,21 @@ func awsAwsjson11_deserializeDocumentProcessingEnvironmentMap(v *map[string]*str return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ProcessingEnvironmentValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -28620,7 +28734,7 @@ func awsAwsjson11_deserializeDocumentProcessingInput(v **types.ProcessingInput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.InputName = &jtv + sv.InputName = ptr.String(jtv) } case "S3Input": @@ -28637,7 +28751,7 @@ func awsAwsjson11_deserializeDocumentProcessingInput(v **types.ProcessingInput, return nil } -func awsAwsjson11_deserializeDocumentProcessingInputs(v *[]*types.ProcessingInput, value interface{}) error { +func awsAwsjson11_deserializeDocumentProcessingInputs(v *[]types.ProcessingInput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28650,18 +28764,20 @@ func awsAwsjson11_deserializeDocumentProcessingInputs(v *[]*types.ProcessingInpu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProcessingInput + var cv []types.ProcessingInput if *v == nil { - cv = []*types.ProcessingInput{} + cv = []types.ProcessingInput{} } else { cv = *v } for _, value := range shape { - var col *types.ProcessingInput - if err := awsAwsjson11_deserializeDocumentProcessingInput(&col, value); err != nil { + var col types.ProcessingInput + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProcessingInput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28702,7 +28818,7 @@ func awsAwsjson11_deserializeDocumentProcessingJob(v **types.ProcessingJob, valu if !ok { return fmt.Errorf("expected AutoMLJobArn to be of type string, got %T instead", value) } - sv.AutoMLJobArn = &jtv + sv.AutoMLJobArn = ptr.String(jtv) } case "CreationTime": @@ -28729,7 +28845,7 @@ func awsAwsjson11_deserializeDocumentProcessingJob(v **types.ProcessingJob, valu if !ok { return fmt.Errorf("expected ExitMessage to be of type string, got %T instead", value) } - sv.ExitMessage = &jtv + sv.ExitMessage = ptr.String(jtv) } case "ExperimentConfig": @@ -28743,7 +28859,7 @@ func awsAwsjson11_deserializeDocumentProcessingJob(v **types.ProcessingJob, valu if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LastModifiedTime": @@ -28765,7 +28881,7 @@ func awsAwsjson11_deserializeDocumentProcessingJob(v **types.ProcessingJob, valu if !ok { return fmt.Errorf("expected MonitoringScheduleArn to be of type string, got %T instead", value) } - sv.MonitoringScheduleArn = &jtv + sv.MonitoringScheduleArn = ptr.String(jtv) } case "NetworkConfig": @@ -28797,7 +28913,7 @@ func awsAwsjson11_deserializeDocumentProcessingJob(v **types.ProcessingJob, valu if !ok { return fmt.Errorf("expected ProcessingJobArn to be of type string, got %T instead", value) } - sv.ProcessingJobArn = &jtv + sv.ProcessingJobArn = ptr.String(jtv) } case "ProcessingJobName": @@ -28806,7 +28922,7 @@ func awsAwsjson11_deserializeDocumentProcessingJob(v **types.ProcessingJob, valu if !ok { return fmt.Errorf("expected ProcessingJobName to be of type string, got %T instead", value) } - sv.ProcessingJobName = &jtv + sv.ProcessingJobName = ptr.String(jtv) } case "ProcessingJobStatus": @@ -28847,7 +28963,7 @@ func awsAwsjson11_deserializeDocumentProcessingJob(v **types.ProcessingJob, valu if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "StoppingCondition": @@ -28866,7 +28982,7 @@ func awsAwsjson11_deserializeDocumentProcessingJob(v **types.ProcessingJob, valu if !ok { return fmt.Errorf("expected TrainingJobArn to be of type string, got %T instead", value) } - sv.TrainingJobArn = &jtv + sv.TrainingJobArn = ptr.String(jtv) } default: @@ -28878,7 +28994,7 @@ func awsAwsjson11_deserializeDocumentProcessingJob(v **types.ProcessingJob, valu return nil } -func awsAwsjson11_deserializeDocumentProcessingJobSummaries(v *[]*types.ProcessingJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentProcessingJobSummaries(v *[]types.ProcessingJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28891,18 +29007,20 @@ func awsAwsjson11_deserializeDocumentProcessingJobSummaries(v *[]*types.Processi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProcessingJobSummary + var cv []types.ProcessingJobSummary if *v == nil { - cv = []*types.ProcessingJobSummary{} + cv = []types.ProcessingJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProcessingJobSummary - if err := awsAwsjson11_deserializeDocumentProcessingJobSummary(&col, value); err != nil { + var col types.ProcessingJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProcessingJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28951,7 +29069,7 @@ func awsAwsjson11_deserializeDocumentProcessingJobSummary(v **types.ProcessingJo if !ok { return fmt.Errorf("expected ExitMessage to be of type string, got %T instead", value) } - sv.ExitMessage = &jtv + sv.ExitMessage = ptr.String(jtv) } case "FailureReason": @@ -28960,7 +29078,7 @@ func awsAwsjson11_deserializeDocumentProcessingJobSummary(v **types.ProcessingJo if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LastModifiedTime": @@ -28995,7 +29113,7 @@ func awsAwsjson11_deserializeDocumentProcessingJobSummary(v **types.ProcessingJo if !ok { return fmt.Errorf("expected ProcessingJobArn to be of type string, got %T instead", value) } - sv.ProcessingJobArn = &jtv + sv.ProcessingJobArn = ptr.String(jtv) } case "ProcessingJobName": @@ -29004,7 +29122,7 @@ func awsAwsjson11_deserializeDocumentProcessingJobSummary(v **types.ProcessingJo if !ok { return fmt.Errorf("expected ProcessingJobName to be of type string, got %T instead", value) } - sv.ProcessingJobName = &jtv + sv.ProcessingJobName = ptr.String(jtv) } case "ProcessingJobStatus": @@ -29053,7 +29171,7 @@ func awsAwsjson11_deserializeDocumentProcessingOutput(v **types.ProcessingOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OutputName = &jtv + sv.OutputName = ptr.String(jtv) } case "S3Output": @@ -29098,7 +29216,7 @@ func awsAwsjson11_deserializeDocumentProcessingOutputConfig(v **types.Processing if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "Outputs": @@ -29115,7 +29233,7 @@ func awsAwsjson11_deserializeDocumentProcessingOutputConfig(v **types.Processing return nil } -func awsAwsjson11_deserializeDocumentProcessingOutputs(v *[]*types.ProcessingOutput, value interface{}) error { +func awsAwsjson11_deserializeDocumentProcessingOutputs(v *[]types.ProcessingOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29128,18 +29246,20 @@ func awsAwsjson11_deserializeDocumentProcessingOutputs(v *[]*types.ProcessingOut return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProcessingOutput + var cv []types.ProcessingOutput if *v == nil { - cv = []*types.ProcessingOutput{} + cv = []types.ProcessingOutput{} } else { cv = *v } for _, value := range shape { - var col *types.ProcessingOutput - if err := awsAwsjson11_deserializeDocumentProcessingOutput(&col, value); err != nil { + var col types.ProcessingOutput + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProcessingOutput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -29211,7 +29331,7 @@ func awsAwsjson11_deserializeDocumentProcessingS3Input(v **types.ProcessingS3Inp if !ok { return fmt.Errorf("expected ProcessingLocalPath to be of type string, got %T instead", value) } - sv.LocalPath = &jtv + sv.LocalPath = ptr.String(jtv) } case "S3CompressionType": @@ -29256,7 +29376,7 @@ func awsAwsjson11_deserializeDocumentProcessingS3Input(v **types.ProcessingS3Inp if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -29296,7 +29416,7 @@ func awsAwsjson11_deserializeDocumentProcessingS3Output(v **types.ProcessingS3Ou if !ok { return fmt.Errorf("expected ProcessingLocalPath to be of type string, got %T instead", value) } - sv.LocalPath = &jtv + sv.LocalPath = ptr.String(jtv) } case "S3UploadMode": @@ -29314,7 +29434,7 @@ func awsAwsjson11_deserializeDocumentProcessingS3Output(v **types.ProcessingS3Ou if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -29358,7 +29478,7 @@ func awsAwsjson11_deserializeDocumentProcessingStoppingCondition(v **types.Proce if err != nil { return err } - sv.MaxRuntimeInSeconds = ptr.Int32(int32(i64)) + sv.MaxRuntimeInSeconds = int32(i64) } default: @@ -29442,7 +29562,7 @@ func awsAwsjson11_deserializeDocumentProductionVariant(v **types.ProductionVaria if !ok { return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) } - sv.ModelName = &jtv + sv.ModelName = ptr.String(jtv) } case "VariantName": @@ -29451,7 +29571,7 @@ func awsAwsjson11_deserializeDocumentProductionVariant(v **types.ProductionVaria if !ok { return fmt.Errorf("expected VariantName to be of type string, got %T instead", value) } - sv.VariantName = &jtv + sv.VariantName = ptr.String(jtv) } default: @@ -29463,7 +29583,7 @@ func awsAwsjson11_deserializeDocumentProductionVariant(v **types.ProductionVaria return nil } -func awsAwsjson11_deserializeDocumentProductionVariantList(v *[]*types.ProductionVariant, value interface{}) error { +func awsAwsjson11_deserializeDocumentProductionVariantList(v *[]types.ProductionVariant, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29476,18 +29596,20 @@ func awsAwsjson11_deserializeDocumentProductionVariantList(v *[]*types.Productio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProductionVariant + var cv []types.ProductionVariant if *v == nil { - cv = []*types.ProductionVariant{} + cv = []types.ProductionVariant{} } else { cv = *v } for _, value := range shape { - var col *types.ProductionVariant - if err := awsAwsjson11_deserializeDocumentProductionVariant(&col, value); err != nil { + var col types.ProductionVariant + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProductionVariant(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -29580,7 +29702,7 @@ func awsAwsjson11_deserializeDocumentProductionVariantSummary(v **types.Producti if !ok { return fmt.Errorf("expected VariantName to be of type string, got %T instead", value) } - sv.VariantName = &jtv + sv.VariantName = ptr.String(jtv) } default: @@ -29592,7 +29714,7 @@ func awsAwsjson11_deserializeDocumentProductionVariantSummary(v **types.Producti return nil } -func awsAwsjson11_deserializeDocumentProductionVariantSummaryList(v *[]*types.ProductionVariantSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentProductionVariantSummaryList(v *[]types.ProductionVariantSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29605,18 +29727,20 @@ func awsAwsjson11_deserializeDocumentProductionVariantSummaryList(v *[]*types.Pr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProductionVariantSummary + var cv []types.ProductionVariantSummary if *v == nil { - cv = []*types.ProductionVariantSummary{} + cv = []types.ProductionVariantSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProductionVariantSummary - if err := awsAwsjson11_deserializeDocumentProductionVariantSummary(&col, value); err != nil { + var col types.ProductionVariantSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProductionVariantSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -29624,7 +29748,7 @@ func awsAwsjson11_deserializeDocumentProductionVariantSummaryList(v *[]*types.Pr return nil } -func awsAwsjson11_deserializeDocumentProductListings(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentProductListings(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29637,21 +29761,21 @@ func awsAwsjson11_deserializeDocumentProductListings(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -29688,7 +29812,7 @@ func awsAwsjson11_deserializeDocumentPropertyNameSuggestion(v **types.PropertyNa if !ok { return fmt.Errorf("expected ResourcePropertyName to be of type string, got %T instead", value) } - sv.PropertyName = &jtv + sv.PropertyName = ptr.String(jtv) } default: @@ -29700,7 +29824,7 @@ func awsAwsjson11_deserializeDocumentPropertyNameSuggestion(v **types.PropertyNa return nil } -func awsAwsjson11_deserializeDocumentPropertyNameSuggestionList(v *[]*types.PropertyNameSuggestion, value interface{}) error { +func awsAwsjson11_deserializeDocumentPropertyNameSuggestionList(v *[]types.PropertyNameSuggestion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29713,18 +29837,20 @@ func awsAwsjson11_deserializeDocumentPropertyNameSuggestionList(v *[]*types.Prop return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PropertyNameSuggestion + var cv []types.PropertyNameSuggestion if *v == nil { - cv = []*types.PropertyNameSuggestion{} + cv = []types.PropertyNameSuggestion{} } else { cv = *v } for _, value := range shape { - var col *types.PropertyNameSuggestion - if err := awsAwsjson11_deserializeDocumentPropertyNameSuggestion(&col, value); err != nil { + var col types.PropertyNameSuggestion + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPropertyNameSuggestion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -29832,7 +29958,7 @@ func awsAwsjson11_deserializeDocumentRenderingError(v **types.RenderingError, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -29841,7 +29967,7 @@ func awsAwsjson11_deserializeDocumentRenderingError(v **types.RenderingError, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29853,7 +29979,7 @@ func awsAwsjson11_deserializeDocumentRenderingError(v **types.RenderingError, va return nil } -func awsAwsjson11_deserializeDocumentRenderingErrorList(v *[]*types.RenderingError, value interface{}) error { +func awsAwsjson11_deserializeDocumentRenderingErrorList(v *[]types.RenderingError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29866,18 +29992,20 @@ func awsAwsjson11_deserializeDocumentRenderingErrorList(v *[]*types.RenderingErr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RenderingError + var cv []types.RenderingError if *v == nil { - cv = []*types.RenderingError{} + cv = []types.RenderingError{} } else { cv = *v } for _, value := range shape { - var col *types.RenderingError - if err := awsAwsjson11_deserializeDocumentRenderingError(&col, value); err != nil { + var col types.RenderingError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRenderingError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -29967,7 +30095,7 @@ func awsAwsjson11_deserializeDocumentResourceConfig(v **types.ResourceConfig, va if err != nil { return err } - sv.InstanceCount = ptr.Int32(int32(i64)) + sv.InstanceCount = int32(i64) } case "InstanceType": @@ -29985,7 +30113,7 @@ func awsAwsjson11_deserializeDocumentResourceConfig(v **types.ResourceConfig, va if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } case "VolumeSizeInGB": @@ -29998,7 +30126,7 @@ func awsAwsjson11_deserializeDocumentResourceConfig(v **types.ResourceConfig, va if err != nil { return err } - sv.VolumeSizeInGB = ptr.Int32(int32(i64)) + sv.VolumeSizeInGB = int32(i64) } default: @@ -30038,7 +30166,7 @@ func awsAwsjson11_deserializeDocumentResourceInUse(v **types.ResourceInUse, valu if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -30078,7 +30206,7 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceeded(v **types.ResourceLim if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -30122,7 +30250,7 @@ func awsAwsjson11_deserializeDocumentResourceLimits(v **types.ResourceLimits, va if err != nil { return err } - sv.MaxNumberOfTrainingJobs = ptr.Int32(int32(i64)) + sv.MaxNumberOfTrainingJobs = int32(i64) } case "MaxParallelTrainingJobs": @@ -30135,7 +30263,7 @@ func awsAwsjson11_deserializeDocumentResourceLimits(v **types.ResourceLimits, va if err != nil { return err } - sv.MaxParallelTrainingJobs = ptr.Int32(int32(i64)) + sv.MaxParallelTrainingJobs = int32(i64) } default: @@ -30175,7 +30303,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFound(v **types.ResourceNotFound if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -30224,7 +30352,7 @@ func awsAwsjson11_deserializeDocumentResourceSpec(v **types.ResourceSpec, value if !ok { return fmt.Errorf("expected ImageArn to be of type string, got %T instead", value) } - sv.SageMakerImageArn = &jtv + sv.SageMakerImageArn = ptr.String(jtv) } case "SageMakerImageVersionArn": @@ -30233,7 +30361,7 @@ func awsAwsjson11_deserializeDocumentResourceSpec(v **types.ResourceSpec, value if !ok { return fmt.Errorf("expected ImageVersionArn to be of type string, got %T instead", value) } - sv.SageMakerImageVersionArn = &jtv + sv.SageMakerImageVersionArn = ptr.String(jtv) } default: @@ -30245,7 +30373,7 @@ func awsAwsjson11_deserializeDocumentResourceSpec(v **types.ResourceSpec, value return nil } -func awsAwsjson11_deserializeDocumentResponseMIMETypes(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentResponseMIMETypes(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30258,21 +30386,21 @@ func awsAwsjson11_deserializeDocumentResponseMIMETypes(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResponseMIMEType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -30281,7 +30409,7 @@ func awsAwsjson11_deserializeDocumentResponseMIMETypes(v *[]*string, value inter return nil } -func awsAwsjson11_deserializeDocumentRuleParameters(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuleParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30294,21 +30422,21 @@ func awsAwsjson11_deserializeDocumentRuleParameters(v *map[string]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ConfigValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -30368,7 +30496,7 @@ func awsAwsjson11_deserializeDocumentS3DataSource(v **types.S3DataSource, value if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -30408,7 +30536,7 @@ func awsAwsjson11_deserializeDocumentScheduleConfig(v **types.ScheduleConfig, va if !ok { return fmt.Errorf("expected ScheduleExpression to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } default: @@ -30471,7 +30599,7 @@ func awsAwsjson11_deserializeDocumentSearchRecord(v **types.SearchRecord, value return nil } -func awsAwsjson11_deserializeDocumentSearchResultsList(v *[]*types.SearchRecord, value interface{}) error { +func awsAwsjson11_deserializeDocumentSearchResultsList(v *[]types.SearchRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30484,18 +30612,20 @@ func awsAwsjson11_deserializeDocumentSearchResultsList(v *[]*types.SearchRecord, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SearchRecord + var cv []types.SearchRecord if *v == nil { - cv = []*types.SearchRecord{} + cv = []types.SearchRecord{} } else { cv = *v } for _, value := range shape { - var col *types.SearchRecord - if err := awsAwsjson11_deserializeDocumentSearchRecord(&col, value); err != nil { + var col types.SearchRecord + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSearchRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -30566,7 +30696,7 @@ func awsAwsjson11_deserializeDocumentSecondaryStatusTransition(v **types.Seconda if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } default: @@ -30578,7 +30708,7 @@ func awsAwsjson11_deserializeDocumentSecondaryStatusTransition(v **types.Seconda return nil } -func awsAwsjson11_deserializeDocumentSecondaryStatusTransitions(v *[]*types.SecondaryStatusTransition, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecondaryStatusTransitions(v *[]types.SecondaryStatusTransition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30591,18 +30721,20 @@ func awsAwsjson11_deserializeDocumentSecondaryStatusTransitions(v *[]*types.Seco return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SecondaryStatusTransition + var cv []types.SecondaryStatusTransition if *v == nil { - cv = []*types.SecondaryStatusTransition{} + cv = []types.SecondaryStatusTransition{} } else { cv = *v } for _, value := range shape { - var col *types.SecondaryStatusTransition - if err := awsAwsjson11_deserializeDocumentSecondaryStatusTransition(&col, value); err != nil { + var col types.SecondaryStatusTransition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSecondaryStatusTransition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -30610,7 +30742,7 @@ func awsAwsjson11_deserializeDocumentSecondaryStatusTransitions(v *[]*types.Seco return nil } -func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30623,21 +30755,21 @@ func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -30683,7 +30815,7 @@ func awsAwsjson11_deserializeDocumentSharingSettings(v **types.SharingSettings, if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.S3KmsKeyId = &jtv + sv.S3KmsKeyId = ptr.String(jtv) } case "S3OutputPath": @@ -30692,7 +30824,7 @@ func awsAwsjson11_deserializeDocumentSharingSettings(v **types.SharingSettings, if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3OutputPath = &jtv + sv.S3OutputPath = ptr.String(jtv) } default: @@ -30736,7 +30868,7 @@ func awsAwsjson11_deserializeDocumentShuffleConfig(v **types.ShuffleConfig, valu if err != nil { return err } - sv.Seed = &i64 + sv.Seed = i64 } default: @@ -30776,7 +30908,7 @@ func awsAwsjson11_deserializeDocumentSourceAlgorithm(v **types.SourceAlgorithm, if !ok { return fmt.Errorf("expected ArnOrName to be of type string, got %T instead", value) } - sv.AlgorithmName = &jtv + sv.AlgorithmName = ptr.String(jtv) } case "ModelDataUrl": @@ -30785,7 +30917,7 @@ func awsAwsjson11_deserializeDocumentSourceAlgorithm(v **types.SourceAlgorithm, if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ModelDataUrl = &jtv + sv.ModelDataUrl = ptr.String(jtv) } default: @@ -30797,7 +30929,7 @@ func awsAwsjson11_deserializeDocumentSourceAlgorithm(v **types.SourceAlgorithm, return nil } -func awsAwsjson11_deserializeDocumentSourceAlgorithmList(v *[]*types.SourceAlgorithm, value interface{}) error { +func awsAwsjson11_deserializeDocumentSourceAlgorithmList(v *[]types.SourceAlgorithm, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30810,18 +30942,20 @@ func awsAwsjson11_deserializeDocumentSourceAlgorithmList(v *[]*types.SourceAlgor return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SourceAlgorithm + var cv []types.SourceAlgorithm if *v == nil { - cv = []*types.SourceAlgorithm{} + cv = []types.SourceAlgorithm{} } else { cv = *v } for _, value := range shape { - var col *types.SourceAlgorithm - if err := awsAwsjson11_deserializeDocumentSourceAlgorithm(&col, value); err != nil { + var col types.SourceAlgorithm + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSourceAlgorithm(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -30933,7 +31067,7 @@ func awsAwsjson11_deserializeDocumentStoppingCondition(v **types.StoppingConditi if err != nil { return err } - sv.MaxRuntimeInSeconds = ptr.Int32(int32(i64)) + sv.MaxRuntimeInSeconds = int32(i64) } case "MaxWaitTimeInSeconds": @@ -30958,7 +31092,7 @@ func awsAwsjson11_deserializeDocumentStoppingCondition(v **types.StoppingConditi return nil } -func awsAwsjson11_deserializeDocumentSubnets(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnets(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30971,21 +31105,21 @@ func awsAwsjson11_deserializeDocumentSubnets(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -31022,7 +31156,7 @@ func awsAwsjson11_deserializeDocumentSubscribedWorkteam(v **types.SubscribedWork if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ListingId = &jtv + sv.ListingId = ptr.String(jtv) } case "MarketplaceDescription": @@ -31031,7 +31165,7 @@ func awsAwsjson11_deserializeDocumentSubscribedWorkteam(v **types.SubscribedWork if !ok { return fmt.Errorf("expected String200 to be of type string, got %T instead", value) } - sv.MarketplaceDescription = &jtv + sv.MarketplaceDescription = ptr.String(jtv) } case "MarketplaceTitle": @@ -31040,7 +31174,7 @@ func awsAwsjson11_deserializeDocumentSubscribedWorkteam(v **types.SubscribedWork if !ok { return fmt.Errorf("expected String200 to be of type string, got %T instead", value) } - sv.MarketplaceTitle = &jtv + sv.MarketplaceTitle = ptr.String(jtv) } case "SellerName": @@ -31049,7 +31183,7 @@ func awsAwsjson11_deserializeDocumentSubscribedWorkteam(v **types.SubscribedWork if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SellerName = &jtv + sv.SellerName = ptr.String(jtv) } case "WorkteamArn": @@ -31058,7 +31192,7 @@ func awsAwsjson11_deserializeDocumentSubscribedWorkteam(v **types.SubscribedWork if !ok { return fmt.Errorf("expected WorkteamArn to be of type string, got %T instead", value) } - sv.WorkteamArn = &jtv + sv.WorkteamArn = ptr.String(jtv) } default: @@ -31070,7 +31204,7 @@ func awsAwsjson11_deserializeDocumentSubscribedWorkteam(v **types.SubscribedWork return nil } -func awsAwsjson11_deserializeDocumentSubscribedWorkteams(v *[]*types.SubscribedWorkteam, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubscribedWorkteams(v *[]types.SubscribedWorkteam, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31083,18 +31217,20 @@ func awsAwsjson11_deserializeDocumentSubscribedWorkteams(v *[]*types.SubscribedW return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SubscribedWorkteam + var cv []types.SubscribedWorkteam if *v == nil { - cv = []*types.SubscribedWorkteam{} + cv = []types.SubscribedWorkteam{} } else { cv = *v } for _, value := range shape { - var col *types.SubscribedWorkteam - if err := awsAwsjson11_deserializeDocumentSubscribedWorkteam(&col, value); err != nil { + var col types.SubscribedWorkteam + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubscribedWorkteam(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -31130,7 +31266,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -31139,7 +31275,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -31151,7 +31287,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31164,18 +31300,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -31241,7 +31379,7 @@ func awsAwsjson11_deserializeDocumentTargetPlatform(v **types.TargetPlatform, va return nil } -func awsAwsjson11_deserializeDocumentTaskKeywords(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTaskKeywords(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31254,21 +31392,21 @@ func awsAwsjson11_deserializeDocumentTaskKeywords(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TaskKeyword to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -31341,7 +31479,7 @@ func awsAwsjson11_deserializeDocumentTensorBoardOutputConfig(v **types.TensorBoa if !ok { return fmt.Errorf("expected DirectoryPath to be of type string, got %T instead", value) } - sv.LocalPath = &jtv + sv.LocalPath = ptr.String(jtv) } case "S3OutputPath": @@ -31350,7 +31488,7 @@ func awsAwsjson11_deserializeDocumentTensorBoardOutputConfig(v **types.TensorBoa if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3OutputPath = &jtv + sv.S3OutputPath = ptr.String(jtv) } default: @@ -31431,7 +31569,7 @@ func awsAwsjson11_deserializeDocumentTrainingJob(v **types.TrainingJob, value in if !ok { return fmt.Errorf("expected AutoMLJobArn to be of type string, got %T instead", value) } - sv.AutoMLJobArn = &jtv + sv.AutoMLJobArn = ptr.String(jtv) } case "BillableTimeInSeconds": @@ -31486,7 +31624,7 @@ func awsAwsjson11_deserializeDocumentTrainingJob(v **types.TrainingJob, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableInterContainerTrafficEncryption = &jtv + sv.EnableInterContainerTrafficEncryption = jtv } case "EnableManagedSpotTraining": @@ -31495,7 +31633,7 @@ func awsAwsjson11_deserializeDocumentTrainingJob(v **types.TrainingJob, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableManagedSpotTraining = &jtv + sv.EnableManagedSpotTraining = jtv } case "EnableNetworkIsolation": @@ -31504,7 +31642,7 @@ func awsAwsjson11_deserializeDocumentTrainingJob(v **types.TrainingJob, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableNetworkIsolation = &jtv + sv.EnableNetworkIsolation = jtv } case "ExperimentConfig": @@ -31518,7 +31656,7 @@ func awsAwsjson11_deserializeDocumentTrainingJob(v **types.TrainingJob, value in if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "FinalMetricDataList": @@ -31542,7 +31680,7 @@ func awsAwsjson11_deserializeDocumentTrainingJob(v **types.TrainingJob, value in if !ok { return fmt.Errorf("expected LabelingJobArn to be of type string, got %T instead", value) } - sv.LabelingJobArn = &jtv + sv.LabelingJobArn = ptr.String(jtv) } case "LastModifiedTime": @@ -31579,7 +31717,7 @@ func awsAwsjson11_deserializeDocumentTrainingJob(v **types.TrainingJob, value in if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "SecondaryStatus": @@ -31630,7 +31768,7 @@ func awsAwsjson11_deserializeDocumentTrainingJob(v **types.TrainingJob, value in if !ok { return fmt.Errorf("expected TrainingJobArn to be of type string, got %T instead", value) } - sv.TrainingJobArn = &jtv + sv.TrainingJobArn = ptr.String(jtv) } case "TrainingJobName": @@ -31639,7 +31777,7 @@ func awsAwsjson11_deserializeDocumentTrainingJob(v **types.TrainingJob, value in if !ok { return fmt.Errorf("expected TrainingJobName to be of type string, got %T instead", value) } - sv.TrainingJobName = &jtv + sv.TrainingJobName = ptr.String(jtv) } case "TrainingJobStatus": @@ -31683,7 +31821,7 @@ func awsAwsjson11_deserializeDocumentTrainingJob(v **types.TrainingJob, value in if !ok { return fmt.Errorf("expected HyperParameterTuningJobArn to be of type string, got %T instead", value) } - sv.TuningJobArn = &jtv + sv.TuningJobArn = ptr.String(jtv) } case "VpcConfig": @@ -31797,7 +31935,7 @@ func awsAwsjson11_deserializeDocumentTrainingJobStatusCounters(v **types.Trainin if err != nil { return err } - sv.Completed = ptr.Int32(int32(i64)) + sv.Completed = int32(i64) } case "InProgress": @@ -31810,7 +31948,7 @@ func awsAwsjson11_deserializeDocumentTrainingJobStatusCounters(v **types.Trainin if err != nil { return err } - sv.InProgress = ptr.Int32(int32(i64)) + sv.InProgress = int32(i64) } case "NonRetryableError": @@ -31823,7 +31961,7 @@ func awsAwsjson11_deserializeDocumentTrainingJobStatusCounters(v **types.Trainin if err != nil { return err } - sv.NonRetryableError = ptr.Int32(int32(i64)) + sv.NonRetryableError = int32(i64) } case "RetryableError": @@ -31836,7 +31974,7 @@ func awsAwsjson11_deserializeDocumentTrainingJobStatusCounters(v **types.Trainin if err != nil { return err } - sv.RetryableError = ptr.Int32(int32(i64)) + sv.RetryableError = int32(i64) } case "Stopped": @@ -31849,7 +31987,7 @@ func awsAwsjson11_deserializeDocumentTrainingJobStatusCounters(v **types.Trainin if err != nil { return err } - sv.Stopped = ptr.Int32(int32(i64)) + sv.Stopped = int32(i64) } default: @@ -31861,7 +31999,7 @@ func awsAwsjson11_deserializeDocumentTrainingJobStatusCounters(v **types.Trainin return nil } -func awsAwsjson11_deserializeDocumentTrainingJobSummaries(v *[]*types.TrainingJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrainingJobSummaries(v *[]types.TrainingJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31874,18 +32012,20 @@ func awsAwsjson11_deserializeDocumentTrainingJobSummaries(v *[]*types.TrainingJo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TrainingJobSummary + var cv []types.TrainingJobSummary if *v == nil { - cv = []*types.TrainingJobSummary{} + cv = []types.TrainingJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TrainingJobSummary - if err := awsAwsjson11_deserializeDocumentTrainingJobSummary(&col, value); err != nil { + var col types.TrainingJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrainingJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -31960,7 +32100,7 @@ func awsAwsjson11_deserializeDocumentTrainingJobSummary(v **types.TrainingJobSum if !ok { return fmt.Errorf("expected TrainingJobArn to be of type string, got %T instead", value) } - sv.TrainingJobArn = &jtv + sv.TrainingJobArn = ptr.String(jtv) } case "TrainingJobName": @@ -31969,7 +32109,7 @@ func awsAwsjson11_deserializeDocumentTrainingJobSummary(v **types.TrainingJobSum if !ok { return fmt.Errorf("expected TrainingJobName to be of type string, got %T instead", value) } - sv.TrainingJobName = &jtv + sv.TrainingJobName = ptr.String(jtv) } case "TrainingJobStatus": @@ -32038,7 +32178,7 @@ func awsAwsjson11_deserializeDocumentTrainingSpecification(v **types.TrainingSpe if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.SupportsDistributedTraining = &jtv + sv.SupportsDistributedTraining = jtv } case "TrainingChannels": @@ -32052,7 +32192,7 @@ func awsAwsjson11_deserializeDocumentTrainingSpecification(v **types.TrainingSpe if !ok { return fmt.Errorf("expected ContainerImage to be of type string, got %T instead", value) } - sv.TrainingImage = &jtv + sv.TrainingImage = ptr.String(jtv) } case "TrainingImageDigest": @@ -32061,7 +32201,7 @@ func awsAwsjson11_deserializeDocumentTrainingSpecification(v **types.TrainingSpe if !ok { return fmt.Errorf("expected ImageDigest to be of type string, got %T instead", value) } - sv.TrainingImageDigest = &jtv + sv.TrainingImageDigest = ptr.String(jtv) } default: @@ -32109,7 +32249,7 @@ func awsAwsjson11_deserializeDocumentTransformDataSource(v **types.TransformData return nil } -func awsAwsjson11_deserializeDocumentTransformEnvironmentMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTransformEnvironmentMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32122,21 +32262,21 @@ func awsAwsjson11_deserializeDocumentTransformEnvironmentMap(v *map[string]*stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TransformEnvironmentValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -32182,7 +32322,7 @@ func awsAwsjson11_deserializeDocumentTransformInput(v **types.TransformInput, va if !ok { return fmt.Errorf("expected ContentType to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "DataSource": @@ -32272,7 +32412,7 @@ func awsAwsjson11_deserializeDocumentTransformJob(v **types.TransformJob, value if !ok { return fmt.Errorf("expected AutoMLJobArn to be of type string, got %T instead", value) } - sv.AutoMLJobArn = &jtv + sv.AutoMLJobArn = ptr.String(jtv) } case "BatchStrategy": @@ -32318,7 +32458,7 @@ func awsAwsjson11_deserializeDocumentTransformJob(v **types.TransformJob, value if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LabelingJobArn": @@ -32327,7 +32467,7 @@ func awsAwsjson11_deserializeDocumentTransformJob(v **types.TransformJob, value if !ok { return fmt.Errorf("expected LabelingJobArn to be of type string, got %T instead", value) } - sv.LabelingJobArn = &jtv + sv.LabelingJobArn = ptr.String(jtv) } case "MaxConcurrentTransforms": @@ -32367,7 +32507,7 @@ func awsAwsjson11_deserializeDocumentTransformJob(v **types.TransformJob, value if !ok { return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) } - sv.ModelName = &jtv + sv.ModelName = ptr.String(jtv) } case "Tags": @@ -32399,7 +32539,7 @@ func awsAwsjson11_deserializeDocumentTransformJob(v **types.TransformJob, value if !ok { return fmt.Errorf("expected TransformJobArn to be of type string, got %T instead", value) } - sv.TransformJobArn = &jtv + sv.TransformJobArn = ptr.String(jtv) } case "TransformJobName": @@ -32408,7 +32548,7 @@ func awsAwsjson11_deserializeDocumentTransformJob(v **types.TransformJob, value if !ok { return fmt.Errorf("expected TransformJobName to be of type string, got %T instead", value) } - sv.TransformJobName = &jtv + sv.TransformJobName = ptr.String(jtv) } case "TransformJobStatus": @@ -32538,7 +32678,7 @@ func awsAwsjson11_deserializeDocumentTransformJobDefinition(v **types.TransformJ return nil } -func awsAwsjson11_deserializeDocumentTransformJobSummaries(v *[]*types.TransformJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentTransformJobSummaries(v *[]types.TransformJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32551,18 +32691,20 @@ func awsAwsjson11_deserializeDocumentTransformJobSummaries(v *[]*types.Transform return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TransformJobSummary + var cv []types.TransformJobSummary if *v == nil { - cv = []*types.TransformJobSummary{} + cv = []types.TransformJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TransformJobSummary - if err := awsAwsjson11_deserializeDocumentTransformJobSummary(&col, value); err != nil { + var col types.TransformJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTransformJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -32611,7 +32753,7 @@ func awsAwsjson11_deserializeDocumentTransformJobSummary(v **types.TransformJobS if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LastModifiedTime": @@ -32646,7 +32788,7 @@ func awsAwsjson11_deserializeDocumentTransformJobSummary(v **types.TransformJobS if !ok { return fmt.Errorf("expected TransformJobArn to be of type string, got %T instead", value) } - sv.TransformJobArn = &jtv + sv.TransformJobArn = ptr.String(jtv) } case "TransformJobName": @@ -32655,7 +32797,7 @@ func awsAwsjson11_deserializeDocumentTransformJobSummary(v **types.TransformJobS if !ok { return fmt.Errorf("expected TransformJobName to be of type string, got %T instead", value) } - sv.TransformJobName = &jtv + sv.TransformJobName = ptr.String(jtv) } case "TransformJobStatus": @@ -32704,7 +32846,7 @@ func awsAwsjson11_deserializeDocumentTransformOutput(v **types.TransformOutput, if !ok { return fmt.Errorf("expected Accept to be of type string, got %T instead", value) } - sv.Accept = &jtv + sv.Accept = ptr.String(jtv) } case "AssembleWith": @@ -32722,7 +32864,7 @@ func awsAwsjson11_deserializeDocumentTransformOutput(v **types.TransformOutput, if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "S3OutputPath": @@ -32731,7 +32873,7 @@ func awsAwsjson11_deserializeDocumentTransformOutput(v **types.TransformOutput, if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3OutputPath = &jtv + sv.S3OutputPath = ptr.String(jtv) } default: @@ -32793,7 +32935,7 @@ func awsAwsjson11_deserializeDocumentTransformResources(v **types.TransformResou if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.VolumeKmsKeyId = &jtv + sv.VolumeKmsKeyId = ptr.String(jtv) } default: @@ -32842,7 +32984,7 @@ func awsAwsjson11_deserializeDocumentTransformS3DataSource(v **types.TransformS3 if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -32900,7 +33042,7 @@ func awsAwsjson11_deserializeDocumentTrial(v **types.Trial, value interface{}) e if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "ExperimentName": @@ -32909,7 +33051,7 @@ func awsAwsjson11_deserializeDocumentTrial(v **types.Trial, value interface{}) e if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.ExperimentName = &jtv + sv.ExperimentName = ptr.String(jtv) } case "LastModifiedBy": @@ -32946,7 +33088,7 @@ func awsAwsjson11_deserializeDocumentTrial(v **types.Trial, value interface{}) e if !ok { return fmt.Errorf("expected TrialArn to be of type string, got %T instead", value) } - sv.TrialArn = &jtv + sv.TrialArn = ptr.String(jtv) } case "TrialComponentSummaries": @@ -32960,7 +33102,7 @@ func awsAwsjson11_deserializeDocumentTrial(v **types.Trial, value interface{}) e if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.TrialName = &jtv + sv.TrialName = ptr.String(jtv) } default: @@ -33018,7 +33160,7 @@ func awsAwsjson11_deserializeDocumentTrialComponent(v **types.TrialComponent, va if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "EndTime": @@ -33116,7 +33258,7 @@ func awsAwsjson11_deserializeDocumentTrialComponent(v **types.TrialComponent, va if !ok { return fmt.Errorf("expected TrialComponentArn to be of type string, got %T instead", value) } - sv.TrialComponentArn = &jtv + sv.TrialComponentArn = ptr.String(jtv) } case "TrialComponentName": @@ -33125,7 +33267,7 @@ func awsAwsjson11_deserializeDocumentTrialComponent(v **types.TrialComponent, va if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.TrialComponentName = &jtv + sv.TrialComponentName = ptr.String(jtv) } default: @@ -33165,7 +33307,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentArtifact(v **types.TrialCompo if !ok { return fmt.Errorf("expected MediaType to be of type string, got %T instead", value) } - sv.MediaType = &jtv + sv.MediaType = ptr.String(jtv) } case "Value": @@ -33174,7 +33316,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentArtifact(v **types.TrialCompo if !ok { return fmt.Errorf("expected TrialComponentArtifactValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -33186,7 +33328,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentArtifact(v **types.TrialCompo return nil } -func awsAwsjson11_deserializeDocumentTrialComponentArtifacts(v *map[string]*types.TrialComponentArtifact, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrialComponentArtifacts(v *map[string]types.TrialComponentArtifact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33199,18 +33341,21 @@ func awsAwsjson11_deserializeDocumentTrialComponentArtifacts(v *map[string]*type return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.TrialComponentArtifact + var mv map[string]types.TrialComponentArtifact if *v == nil { - mv = map[string]*types.TrialComponentArtifact{} + mv = map[string]types.TrialComponentArtifact{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.TrialComponentArtifact - if err := awsAwsjson11_deserializeDocumentTrialComponentArtifact(&parsedVal, value); err != nil { + var parsedVal types.TrialComponentArtifact + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentTrialComponentArtifact(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -33218,7 +33363,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentArtifacts(v *map[string]*type return nil } -func awsAwsjson11_deserializeDocumentTrialComponentMetricSummaries(v *[]*types.TrialComponentMetricSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrialComponentMetricSummaries(v *[]types.TrialComponentMetricSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33231,18 +33376,20 @@ func awsAwsjson11_deserializeDocumentTrialComponentMetricSummaries(v *[]*types.T return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TrialComponentMetricSummary + var cv []types.TrialComponentMetricSummary if *v == nil { - cv = []*types.TrialComponentMetricSummary{} + cv = []types.TrialComponentMetricSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TrialComponentMetricSummary - if err := awsAwsjson11_deserializeDocumentTrialComponentMetricSummary(&col, value); err != nil { + var col types.TrialComponentMetricSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrialComponentMetricSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -33282,7 +33429,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentMetricSummary(v **types.Trial if err != nil { return err } - sv.Avg = &f64 + sv.Avg = ptr.Float64(f64) } case "Count": @@ -33308,7 +33455,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentMetricSummary(v **types.Trial if err != nil { return err } - sv.Last = &f64 + sv.Last = ptr.Float64(f64) } case "Max": @@ -33321,7 +33468,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentMetricSummary(v **types.Trial if err != nil { return err } - sv.Max = &f64 + sv.Max = ptr.Float64(f64) } case "MetricName": @@ -33330,7 +33477,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentMetricSummary(v **types.Trial if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Min": @@ -33343,7 +33490,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentMetricSummary(v **types.Trial if err != nil { return err } - sv.Min = &f64 + sv.Min = ptr.Float64(f64) } case "SourceArn": @@ -33352,7 +33499,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentMetricSummary(v **types.Trial if !ok { return fmt.Errorf("expected TrialComponentSourceArn to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } case "StdDev": @@ -33365,7 +33512,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentMetricSummary(v **types.Trial if err != nil { return err } - sv.StdDev = &f64 + sv.StdDev = ptr.Float64(f64) } case "TimeStamp": @@ -33390,7 +33537,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentMetricSummary(v **types.Trial return nil } -func awsAwsjson11_deserializeDocumentTrialComponentParameters(v *map[string]*types.TrialComponentParameterValue, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrialComponentParameters(v *map[string]types.TrialComponentParameterValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33403,18 +33550,21 @@ func awsAwsjson11_deserializeDocumentTrialComponentParameters(v *map[string]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.TrialComponentParameterValue + var mv map[string]types.TrialComponentParameterValue if *v == nil { - mv = map[string]*types.TrialComponentParameterValue{} + mv = map[string]types.TrialComponentParameterValue{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.TrialComponentParameterValue - if err := awsAwsjson11_deserializeDocumentTrialComponentParameterValue(&parsedVal, value); err != nil { + var parsedVal types.TrialComponentParameterValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentTrialComponentParameterValue(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -33454,7 +33604,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentParameterValue(v **types.Tria if err != nil { return err } - sv.NumberValue = &f64 + sv.NumberValue = ptr.Float64(f64) } case "StringValue": @@ -33463,7 +33613,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentParameterValue(v **types.Tria if !ok { return fmt.Errorf("expected StringParameterValue to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } default: @@ -33475,7 +33625,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentParameterValue(v **types.Tria return nil } -func awsAwsjson11_deserializeDocumentTrialComponentSimpleSummaries(v *[]*types.TrialComponentSimpleSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrialComponentSimpleSummaries(v *[]types.TrialComponentSimpleSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33488,18 +33638,20 @@ func awsAwsjson11_deserializeDocumentTrialComponentSimpleSummaries(v *[]*types.T return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TrialComponentSimpleSummary + var cv []types.TrialComponentSimpleSummary if *v == nil { - cv = []*types.TrialComponentSimpleSummary{} + cv = []types.TrialComponentSimpleSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TrialComponentSimpleSummary - if err := awsAwsjson11_deserializeDocumentTrialComponentSimpleSummary(&col, value); err != nil { + var col types.TrialComponentSimpleSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrialComponentSimpleSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -33553,7 +33705,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentSimpleSummary(v **types.Trial if !ok { return fmt.Errorf("expected TrialComponentArn to be of type string, got %T instead", value) } - sv.TrialComponentArn = &jtv + sv.TrialComponentArn = ptr.String(jtv) } case "TrialComponentName": @@ -33562,7 +33714,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentSimpleSummary(v **types.Trial if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.TrialComponentName = &jtv + sv.TrialComponentName = ptr.String(jtv) } case "TrialComponentSource": @@ -33607,7 +33759,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentSource(v **types.TrialCompone if !ok { return fmt.Errorf("expected TrialComponentSourceArn to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } case "SourceType": @@ -33616,7 +33768,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentSource(v **types.TrialCompone if !ok { return fmt.Errorf("expected SourceType to be of type string, got %T instead", value) } - sv.SourceType = &jtv + sv.SourceType = ptr.String(jtv) } default: @@ -33661,7 +33813,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentSourceDetail(v **types.TrialC if !ok { return fmt.Errorf("expected TrialComponentSourceArn to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } case "TrainingJob": @@ -33711,7 +33863,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentStatus(v **types.TrialCompone if !ok { return fmt.Errorf("expected TrialComponentStatusMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "PrimaryStatus": @@ -33732,7 +33884,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentStatus(v **types.TrialCompone return nil } -func awsAwsjson11_deserializeDocumentTrialComponentSummaries(v *[]*types.TrialComponentSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrialComponentSummaries(v *[]types.TrialComponentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33745,18 +33897,20 @@ func awsAwsjson11_deserializeDocumentTrialComponentSummaries(v *[]*types.TrialCo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TrialComponentSummary + var cv []types.TrialComponentSummary if *v == nil { - cv = []*types.TrialComponentSummary{} + cv = []types.TrialComponentSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TrialComponentSummary - if err := awsAwsjson11_deserializeDocumentTrialComponentSummary(&col, value); err != nil { + var col types.TrialComponentSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrialComponentSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -33810,7 +33964,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentSummary(v **types.TrialCompon if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "EndTime": @@ -33868,7 +34022,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentSummary(v **types.TrialCompon if !ok { return fmt.Errorf("expected TrialComponentArn to be of type string, got %T instead", value) } - sv.TrialComponentArn = &jtv + sv.TrialComponentArn = ptr.String(jtv) } case "TrialComponentName": @@ -33877,7 +34031,7 @@ func awsAwsjson11_deserializeDocumentTrialComponentSummary(v **types.TrialCompon if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.TrialComponentName = &jtv + sv.TrialComponentName = ptr.String(jtv) } case "TrialComponentSource": @@ -33922,7 +34076,7 @@ func awsAwsjson11_deserializeDocumentTrialSource(v **types.TrialSource, value in if !ok { return fmt.Errorf("expected TrialSourceArn to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } case "SourceType": @@ -33931,7 +34085,7 @@ func awsAwsjson11_deserializeDocumentTrialSource(v **types.TrialSource, value in if !ok { return fmt.Errorf("expected SourceType to be of type string, got %T instead", value) } - sv.SourceType = &jtv + sv.SourceType = ptr.String(jtv) } default: @@ -33943,7 +34097,7 @@ func awsAwsjson11_deserializeDocumentTrialSource(v **types.TrialSource, value in return nil } -func awsAwsjson11_deserializeDocumentTrialSummaries(v *[]*types.TrialSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrialSummaries(v *[]types.TrialSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33956,18 +34110,20 @@ func awsAwsjson11_deserializeDocumentTrialSummaries(v *[]*types.TrialSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TrialSummary + var cv []types.TrialSummary if *v == nil { - cv = []*types.TrialSummary{} + cv = []types.TrialSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TrialSummary - if err := awsAwsjson11_deserializeDocumentTrialSummary(&col, value); err != nil { + var col types.TrialSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrialSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -34016,7 +34172,7 @@ func awsAwsjson11_deserializeDocumentTrialSummary(v **types.TrialSummary, value if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "LastModifiedTime": @@ -34038,7 +34194,7 @@ func awsAwsjson11_deserializeDocumentTrialSummary(v **types.TrialSummary, value if !ok { return fmt.Errorf("expected TrialArn to be of type string, got %T instead", value) } - sv.TrialArn = &jtv + sv.TrialArn = ptr.String(jtv) } case "TrialName": @@ -34047,7 +34203,7 @@ func awsAwsjson11_deserializeDocumentTrialSummary(v **types.TrialSummary, value if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.TrialName = &jtv + sv.TrialName = ptr.String(jtv) } case "TrialSource": @@ -34136,7 +34292,7 @@ func awsAwsjson11_deserializeDocumentUiConfig(v **types.UiConfig, value interfac if !ok { return fmt.Errorf("expected HumanTaskUiArn to be of type string, got %T instead", value) } - sv.HumanTaskUiArn = &jtv + sv.HumanTaskUiArn = ptr.String(jtv) } case "UiTemplateS3Uri": @@ -34145,7 +34301,7 @@ func awsAwsjson11_deserializeDocumentUiConfig(v **types.UiConfig, value interfac if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.UiTemplateS3Uri = &jtv + sv.UiTemplateS3Uri = ptr.String(jtv) } default: @@ -34185,7 +34341,7 @@ func awsAwsjson11_deserializeDocumentUiTemplateInfo(v **types.UiTemplateInfo, va if !ok { return fmt.Errorf("expected TemplateContentSha256 to be of type string, got %T instead", value) } - sv.ContentSha256 = &jtv + sv.ContentSha256 = ptr.String(jtv) } case "Url": @@ -34194,7 +34350,7 @@ func awsAwsjson11_deserializeDocumentUiTemplateInfo(v **types.UiTemplateInfo, va if !ok { return fmt.Errorf("expected TemplateUrl to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -34238,7 +34394,7 @@ func awsAwsjson11_deserializeDocumentUSD(v **types.USD, value interface{}) error if err != nil { return err } - sv.Cents = ptr.Int32(int32(i64)) + sv.Cents = int32(i64) } case "Dollars": @@ -34251,7 +34407,7 @@ func awsAwsjson11_deserializeDocumentUSD(v **types.USD, value interface{}) error if err != nil { return err } - sv.Dollars = ptr.Int32(int32(i64)) + sv.Dollars = int32(i64) } case "TenthFractionsOfACent": @@ -34264,7 +34420,7 @@ func awsAwsjson11_deserializeDocumentUSD(v **types.USD, value interface{}) error if err != nil { return err } - sv.TenthFractionsOfACent = ptr.Int32(int32(i64)) + sv.TenthFractionsOfACent = int32(i64) } default: @@ -34304,7 +34460,7 @@ func awsAwsjson11_deserializeDocumentUserContext(v **types.UserContext, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DomainId = &jtv + sv.DomainId = ptr.String(jtv) } case "UserProfileArn": @@ -34313,7 +34469,7 @@ func awsAwsjson11_deserializeDocumentUserContext(v **types.UserContext, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserProfileArn = &jtv + sv.UserProfileArn = ptr.String(jtv) } case "UserProfileName": @@ -34322,7 +34478,7 @@ func awsAwsjson11_deserializeDocumentUserContext(v **types.UserContext, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserProfileName = &jtv + sv.UserProfileName = ptr.String(jtv) } default: @@ -34375,7 +34531,7 @@ func awsAwsjson11_deserializeDocumentUserProfileDetails(v **types.UserProfileDet if !ok { return fmt.Errorf("expected DomainId to be of type string, got %T instead", value) } - sv.DomainId = &jtv + sv.DomainId = ptr.String(jtv) } case "LastModifiedTime": @@ -34406,7 +34562,7 @@ func awsAwsjson11_deserializeDocumentUserProfileDetails(v **types.UserProfileDet if !ok { return fmt.Errorf("expected UserProfileName to be of type string, got %T instead", value) } - sv.UserProfileName = &jtv + sv.UserProfileName = ptr.String(jtv) } default: @@ -34418,7 +34574,7 @@ func awsAwsjson11_deserializeDocumentUserProfileDetails(v **types.UserProfileDet return nil } -func awsAwsjson11_deserializeDocumentUserProfileList(v *[]*types.UserProfileDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserProfileList(v *[]types.UserProfileDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34431,18 +34587,20 @@ func awsAwsjson11_deserializeDocumentUserProfileList(v *[]*types.UserProfileDeta return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserProfileDetails + var cv []types.UserProfileDetails if *v == nil { - cv = []*types.UserProfileDetails{} + cv = []types.UserProfileDetails{} } else { cv = *v } for _, value := range shape { - var col *types.UserProfileDetails - if err := awsAwsjson11_deserializeDocumentUserProfileDetails(&col, value); err != nil { + var col types.UserProfileDetails + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUserProfileDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -34478,7 +34636,7 @@ func awsAwsjson11_deserializeDocumentUserSettings(v **types.UserSettings, value if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.ExecutionRole = &jtv + sv.ExecutionRole = ptr.String(jtv) } case "JupyterServerAppSettings": @@ -34556,7 +34714,7 @@ func awsAwsjson11_deserializeDocumentVpcConfig(v **types.VpcConfig, value interf return nil } -func awsAwsjson11_deserializeDocumentVpcSecurityGroupIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentVpcSecurityGroupIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34569,21 +34727,21 @@ func awsAwsjson11_deserializeDocumentVpcSecurityGroupIds(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -34661,7 +34819,7 @@ func awsAwsjson11_deserializeDocumentWorkforce(v **types.Workforce, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SubDomain = &jtv + sv.SubDomain = ptr.String(jtv) } case "WorkforceArn": @@ -34670,7 +34828,7 @@ func awsAwsjson11_deserializeDocumentWorkforce(v **types.Workforce, value interf if !ok { return fmt.Errorf("expected WorkforceArn to be of type string, got %T instead", value) } - sv.WorkforceArn = &jtv + sv.WorkforceArn = ptr.String(jtv) } case "WorkforceName": @@ -34679,7 +34837,7 @@ func awsAwsjson11_deserializeDocumentWorkforce(v **types.Workforce, value interf if !ok { return fmt.Errorf("expected WorkforceName to be of type string, got %T instead", value) } - sv.WorkforceName = &jtv + sv.WorkforceName = ptr.String(jtv) } default: @@ -34691,7 +34849,7 @@ func awsAwsjson11_deserializeDocumentWorkforce(v **types.Workforce, value interf return nil } -func awsAwsjson11_deserializeDocumentWorkforces(v *[]*types.Workforce, value interface{}) error { +func awsAwsjson11_deserializeDocumentWorkforces(v *[]types.Workforce, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34704,18 +34862,20 @@ func awsAwsjson11_deserializeDocumentWorkforces(v *[]*types.Workforce, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Workforce + var cv []types.Workforce if *v == nil { - cv = []*types.Workforce{} + cv = []types.Workforce{} } else { cv = *v } for _, value := range shape { - var col *types.Workforce - if err := awsAwsjson11_deserializeDocumentWorkforce(&col, value); err != nil { + var col types.Workforce + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkforce(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -34764,7 +34924,7 @@ func awsAwsjson11_deserializeDocumentWorkteam(v **types.Workteam, value interfac if !ok { return fmt.Errorf("expected String200 to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LastUpdatedDate": @@ -34801,7 +34961,7 @@ func awsAwsjson11_deserializeDocumentWorkteam(v **types.Workteam, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SubDomain = &jtv + sv.SubDomain = ptr.String(jtv) } case "WorkforceArn": @@ -34810,7 +34970,7 @@ func awsAwsjson11_deserializeDocumentWorkteam(v **types.Workteam, value interfac if !ok { return fmt.Errorf("expected WorkforceArn to be of type string, got %T instead", value) } - sv.WorkforceArn = &jtv + sv.WorkforceArn = ptr.String(jtv) } case "WorkteamArn": @@ -34819,7 +34979,7 @@ func awsAwsjson11_deserializeDocumentWorkteam(v **types.Workteam, value interfac if !ok { return fmt.Errorf("expected WorkteamArn to be of type string, got %T instead", value) } - sv.WorkteamArn = &jtv + sv.WorkteamArn = ptr.String(jtv) } case "WorkteamName": @@ -34828,7 +34988,7 @@ func awsAwsjson11_deserializeDocumentWorkteam(v **types.Workteam, value interfac if !ok { return fmt.Errorf("expected WorkteamName to be of type string, got %T instead", value) } - sv.WorkteamName = &jtv + sv.WorkteamName = ptr.String(jtv) } default: @@ -34840,7 +35000,7 @@ func awsAwsjson11_deserializeDocumentWorkteam(v **types.Workteam, value interfac return nil } -func awsAwsjson11_deserializeDocumentWorkteams(v *[]*types.Workteam, value interface{}) error { +func awsAwsjson11_deserializeDocumentWorkteams(v *[]types.Workteam, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34853,18 +35013,20 @@ func awsAwsjson11_deserializeDocumentWorkteams(v *[]*types.Workteam, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Workteam + var cv []types.Workteam if *v == nil { - cv = []*types.Workteam{} + cv = []types.Workteam{} } else { cv = *v } for _, value := range shape { - var col *types.Workteam - if err := awsAwsjson11_deserializeDocumentWorkteam(&col, value); err != nil { + var col types.Workteam + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkteam(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -34936,7 +35098,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateTrialComponentOutput(v **Associa if !ok { return fmt.Errorf("expected TrialArn to be of type string, got %T instead", value) } - sv.TrialArn = &jtv + sv.TrialArn = ptr.String(jtv) } case "TrialComponentArn": @@ -34945,7 +35107,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateTrialComponentOutput(v **Associa if !ok { return fmt.Errorf("expected TrialComponentArn to be of type string, got %T instead", value) } - sv.TrialComponentArn = &jtv + sv.TrialComponentArn = ptr.String(jtv) } default: @@ -34985,7 +35147,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAlgorithmOutput(v **CreateAlgorithm if !ok { return fmt.Errorf("expected AlgorithmArn to be of type string, got %T instead", value) } - sv.AlgorithmArn = &jtv + sv.AlgorithmArn = ptr.String(jtv) } default: @@ -35025,7 +35187,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAppImageConfigOutput(v **CreateAppI if !ok { return fmt.Errorf("expected AppImageConfigArn to be of type string, got %T instead", value) } - sv.AppImageConfigArn = &jtv + sv.AppImageConfigArn = ptr.String(jtv) } default: @@ -35065,7 +35227,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAppOutput(v **CreateAppOutput, valu if !ok { return fmt.Errorf("expected AppArn to be of type string, got %T instead", value) } - sv.AppArn = &jtv + sv.AppArn = ptr.String(jtv) } default: @@ -35105,7 +35267,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAutoMLJobOutput(v **CreateAutoMLJob if !ok { return fmt.Errorf("expected AutoMLJobArn to be of type string, got %T instead", value) } - sv.AutoMLJobArn = &jtv + sv.AutoMLJobArn = ptr.String(jtv) } default: @@ -35145,7 +35307,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCodeRepositoryOutput(v **CreateCode if !ok { return fmt.Errorf("expected CodeRepositoryArn to be of type string, got %T instead", value) } - sv.CodeRepositoryArn = &jtv + sv.CodeRepositoryArn = ptr.String(jtv) } default: @@ -35185,7 +35347,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCompilationJobOutput(v **CreateComp if !ok { return fmt.Errorf("expected CompilationJobArn to be of type string, got %T instead", value) } - sv.CompilationJobArn = &jtv + sv.CompilationJobArn = ptr.String(jtv) } default: @@ -35225,7 +35387,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDomainOutput(v **CreateDomainOutput if !ok { return fmt.Errorf("expected DomainArn to be of type string, got %T instead", value) } - sv.DomainArn = &jtv + sv.DomainArn = ptr.String(jtv) } case "Url": @@ -35234,7 +35396,7 @@ func awsAwsjson11_deserializeOpDocumentCreateDomainOutput(v **CreateDomainOutput if !ok { return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -35274,7 +35436,7 @@ func awsAwsjson11_deserializeOpDocumentCreateEndpointConfigOutput(v **CreateEndp if !ok { return fmt.Errorf("expected EndpointConfigArn to be of type string, got %T instead", value) } - sv.EndpointConfigArn = &jtv + sv.EndpointConfigArn = ptr.String(jtv) } default: @@ -35314,7 +35476,7 @@ func awsAwsjson11_deserializeOpDocumentCreateEndpointOutput(v **CreateEndpointOu if !ok { return fmt.Errorf("expected EndpointArn to be of type string, got %T instead", value) } - sv.EndpointArn = &jtv + sv.EndpointArn = ptr.String(jtv) } default: @@ -35354,7 +35516,7 @@ func awsAwsjson11_deserializeOpDocumentCreateExperimentOutput(v **CreateExperime if !ok { return fmt.Errorf("expected ExperimentArn to be of type string, got %T instead", value) } - sv.ExperimentArn = &jtv + sv.ExperimentArn = ptr.String(jtv) } default: @@ -35394,7 +35556,7 @@ func awsAwsjson11_deserializeOpDocumentCreateFlowDefinitionOutput(v **CreateFlow if !ok { return fmt.Errorf("expected FlowDefinitionArn to be of type string, got %T instead", value) } - sv.FlowDefinitionArn = &jtv + sv.FlowDefinitionArn = ptr.String(jtv) } default: @@ -35434,7 +35596,7 @@ func awsAwsjson11_deserializeOpDocumentCreateHumanTaskUiOutput(v **CreateHumanTa if !ok { return fmt.Errorf("expected HumanTaskUiArn to be of type string, got %T instead", value) } - sv.HumanTaskUiArn = &jtv + sv.HumanTaskUiArn = ptr.String(jtv) } default: @@ -35474,7 +35636,7 @@ func awsAwsjson11_deserializeOpDocumentCreateHyperParameterTuningJobOutput(v **C if !ok { return fmt.Errorf("expected HyperParameterTuningJobArn to be of type string, got %T instead", value) } - sv.HyperParameterTuningJobArn = &jtv + sv.HyperParameterTuningJobArn = ptr.String(jtv) } default: @@ -35514,7 +35676,7 @@ func awsAwsjson11_deserializeOpDocumentCreateImageOutput(v **CreateImageOutput, if !ok { return fmt.Errorf("expected ImageArn to be of type string, got %T instead", value) } - sv.ImageArn = &jtv + sv.ImageArn = ptr.String(jtv) } default: @@ -35554,7 +35716,7 @@ func awsAwsjson11_deserializeOpDocumentCreateImageVersionOutput(v **CreateImageV if !ok { return fmt.Errorf("expected ImageVersionArn to be of type string, got %T instead", value) } - sv.ImageVersionArn = &jtv + sv.ImageVersionArn = ptr.String(jtv) } default: @@ -35594,7 +35756,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLabelingJobOutput(v **CreateLabelin if !ok { return fmt.Errorf("expected LabelingJobArn to be of type string, got %T instead", value) } - sv.LabelingJobArn = &jtv + sv.LabelingJobArn = ptr.String(jtv) } default: @@ -35634,7 +35796,7 @@ func awsAwsjson11_deserializeOpDocumentCreateModelOutput(v **CreateModelOutput, if !ok { return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) } - sv.ModelArn = &jtv + sv.ModelArn = ptr.String(jtv) } default: @@ -35674,7 +35836,7 @@ func awsAwsjson11_deserializeOpDocumentCreateModelPackageOutput(v **CreateModelP if !ok { return fmt.Errorf("expected ModelPackageArn to be of type string, got %T instead", value) } - sv.ModelPackageArn = &jtv + sv.ModelPackageArn = ptr.String(jtv) } default: @@ -35714,7 +35876,7 @@ func awsAwsjson11_deserializeOpDocumentCreateMonitoringScheduleOutput(v **Create if !ok { return fmt.Errorf("expected MonitoringScheduleArn to be of type string, got %T instead", value) } - sv.MonitoringScheduleArn = &jtv + sv.MonitoringScheduleArn = ptr.String(jtv) } default: @@ -35754,7 +35916,7 @@ func awsAwsjson11_deserializeOpDocumentCreateNotebookInstanceLifecycleConfigOutp if !ok { return fmt.Errorf("expected NotebookInstanceLifecycleConfigArn to be of type string, got %T instead", value) } - sv.NotebookInstanceLifecycleConfigArn = &jtv + sv.NotebookInstanceLifecycleConfigArn = ptr.String(jtv) } default: @@ -35794,7 +35956,7 @@ func awsAwsjson11_deserializeOpDocumentCreateNotebookInstanceOutput(v **CreateNo if !ok { return fmt.Errorf("expected NotebookInstanceArn to be of type string, got %T instead", value) } - sv.NotebookInstanceArn = &jtv + sv.NotebookInstanceArn = ptr.String(jtv) } default: @@ -35834,7 +35996,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePresignedDomainUrlOutput(v **Create if !ok { return fmt.Errorf("expected PresignedDomainUrl to be of type string, got %T instead", value) } - sv.AuthorizedUrl = &jtv + sv.AuthorizedUrl = ptr.String(jtv) } default: @@ -35874,7 +36036,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePresignedNotebookInstanceUrlOutput( if !ok { return fmt.Errorf("expected NotebookInstanceUrl to be of type string, got %T instead", value) } - sv.AuthorizedUrl = &jtv + sv.AuthorizedUrl = ptr.String(jtv) } default: @@ -35914,7 +36076,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProcessingJobOutput(v **CreateProce if !ok { return fmt.Errorf("expected ProcessingJobArn to be of type string, got %T instead", value) } - sv.ProcessingJobArn = &jtv + sv.ProcessingJobArn = ptr.String(jtv) } default: @@ -35954,7 +36116,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrainingJobOutput(v **CreateTrainin if !ok { return fmt.Errorf("expected TrainingJobArn to be of type string, got %T instead", value) } - sv.TrainingJobArn = &jtv + sv.TrainingJobArn = ptr.String(jtv) } default: @@ -35994,7 +36156,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTransformJobOutput(v **CreateTransf if !ok { return fmt.Errorf("expected TransformJobArn to be of type string, got %T instead", value) } - sv.TransformJobArn = &jtv + sv.TransformJobArn = ptr.String(jtv) } default: @@ -36034,7 +36196,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrialComponentOutput(v **CreateTria if !ok { return fmt.Errorf("expected TrialComponentArn to be of type string, got %T instead", value) } - sv.TrialComponentArn = &jtv + sv.TrialComponentArn = ptr.String(jtv) } default: @@ -36074,7 +36236,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTrialOutput(v **CreateTrialOutput, if !ok { return fmt.Errorf("expected TrialArn to be of type string, got %T instead", value) } - sv.TrialArn = &jtv + sv.TrialArn = ptr.String(jtv) } default: @@ -36114,7 +36276,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUserProfileOutput(v **CreateUserPro if !ok { return fmt.Errorf("expected UserProfileArn to be of type string, got %T instead", value) } - sv.UserProfileArn = &jtv + sv.UserProfileArn = ptr.String(jtv) } default: @@ -36154,7 +36316,7 @@ func awsAwsjson11_deserializeOpDocumentCreateWorkforceOutput(v **CreateWorkforce if !ok { return fmt.Errorf("expected WorkforceArn to be of type string, got %T instead", value) } - sv.WorkforceArn = &jtv + sv.WorkforceArn = ptr.String(jtv) } default: @@ -36194,7 +36356,7 @@ func awsAwsjson11_deserializeOpDocumentCreateWorkteamOutput(v **CreateWorkteamOu if !ok { return fmt.Errorf("expected WorkteamArn to be of type string, got %T instead", value) } - sv.WorkteamArn = &jtv + sv.WorkteamArn = ptr.String(jtv) } default: @@ -36451,7 +36613,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteExperimentOutput(v **DeleteExperime if !ok { return fmt.Errorf("expected ExperimentArn to be of type string, got %T instead", value) } - sv.ExperimentArn = &jtv + sv.ExperimentArn = ptr.String(jtv) } default: @@ -36801,7 +36963,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteTrialComponentOutput(v **DeleteTria if !ok { return fmt.Errorf("expected TrialComponentArn to be of type string, got %T instead", value) } - sv.TrialComponentArn = &jtv + sv.TrialComponentArn = ptr.String(jtv) } default: @@ -36841,7 +37003,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteTrialOutput(v **DeleteTrialOutput, if !ok { return fmt.Errorf("expected TrialArn to be of type string, got %T instead", value) } - sv.TrialArn = &jtv + sv.TrialArn = ptr.String(jtv) } default: @@ -36943,7 +37105,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteWorkteamOutput(v **DeleteWorkteamOu if !ok { return fmt.Errorf("expected Success to be of type *bool, got %T instead", value) } - sv.Success = &jtv + sv.Success = jtv } default: @@ -36983,7 +37145,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAlgorithmOutput(v **DescribeAlgor if !ok { return fmt.Errorf("expected AlgorithmArn to be of type string, got %T instead", value) } - sv.AlgorithmArn = &jtv + sv.AlgorithmArn = ptr.String(jtv) } case "AlgorithmDescription": @@ -36992,7 +37154,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAlgorithmOutput(v **DescribeAlgor if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.AlgorithmDescription = &jtv + sv.AlgorithmDescription = ptr.String(jtv) } case "AlgorithmName": @@ -37001,7 +37163,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAlgorithmOutput(v **DescribeAlgor if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.AlgorithmName = &jtv + sv.AlgorithmName = ptr.String(jtv) } case "AlgorithmStatus": @@ -37024,7 +37186,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAlgorithmOutput(v **DescribeAlgor if !ok { return fmt.Errorf("expected CertifyForMarketplace to be of type *bool, got %T instead", value) } - sv.CertifyForMarketplace = &jtv + sv.CertifyForMarketplace = jtv } case "CreationTime": @@ -37051,7 +37213,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAlgorithmOutput(v **DescribeAlgor if !ok { return fmt.Errorf("expected ProductId to be of type string, got %T instead", value) } - sv.ProductId = &jtv + sv.ProductId = ptr.String(jtv) } case "TrainingSpecification": @@ -37101,7 +37263,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAppImageConfigOutput(v **Describe if !ok { return fmt.Errorf("expected AppImageConfigArn to be of type string, got %T instead", value) } - sv.AppImageConfigArn = &jtv + sv.AppImageConfigArn = ptr.String(jtv) } case "AppImageConfigName": @@ -37110,7 +37272,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAppImageConfigOutput(v **Describe if !ok { return fmt.Errorf("expected AppImageConfigName to be of type string, got %T instead", value) } - sv.AppImageConfigName = &jtv + sv.AppImageConfigName = ptr.String(jtv) } case "CreationTime": @@ -37181,7 +37343,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAppOutput(v **DescribeAppOutput, if !ok { return fmt.Errorf("expected AppArn to be of type string, got %T instead", value) } - sv.AppArn = &jtv + sv.AppArn = ptr.String(jtv) } case "AppName": @@ -37190,7 +37352,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAppOutput(v **DescribeAppOutput, if !ok { return fmt.Errorf("expected AppName to be of type string, got %T instead", value) } - sv.AppName = &jtv + sv.AppName = ptr.String(jtv) } case "AppType": @@ -37221,7 +37383,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAppOutput(v **DescribeAppOutput, if !ok { return fmt.Errorf("expected DomainId to be of type string, got %T instead", value) } - sv.DomainId = &jtv + sv.DomainId = ptr.String(jtv) } case "FailureReason": @@ -37230,7 +37392,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAppOutput(v **DescribeAppOutput, if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LastHealthCheckTimestamp": @@ -37279,7 +37441,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAppOutput(v **DescribeAppOutput, if !ok { return fmt.Errorf("expected UserProfileName to be of type string, got %T instead", value) } - sv.UserProfileName = &jtv + sv.UserProfileName = ptr.String(jtv) } default: @@ -37319,7 +37481,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAutoMLJobOutput(v **DescribeAutoM if !ok { return fmt.Errorf("expected AutoMLJobArn to be of type string, got %T instead", value) } - sv.AutoMLJobArn = &jtv + sv.AutoMLJobArn = ptr.String(jtv) } case "AutoMLJobArtifacts": @@ -37338,7 +37500,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAutoMLJobOutput(v **DescribeAutoM if !ok { return fmt.Errorf("expected AutoMLJobName to be of type string, got %T instead", value) } - sv.AutoMLJobName = &jtv + sv.AutoMLJobName = ptr.String(jtv) } case "AutoMLJobObjective": @@ -37401,7 +37563,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAutoMLJobOutput(v **DescribeAutoM if !ok { return fmt.Errorf("expected AutoMLFailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "GenerateCandidateDefinitionsOnly": @@ -37410,7 +37572,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAutoMLJobOutput(v **DescribeAutoM if !ok { return fmt.Errorf("expected GenerateCandidateDefinitionsOnly to be of type *bool, got %T instead", value) } - sv.GenerateCandidateDefinitionsOnly = &jtv + sv.GenerateCandidateDefinitionsOnly = jtv } case "InputDataConfig": @@ -37456,7 +37618,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAutoMLJobOutput(v **DescribeAutoM if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -37496,7 +37658,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCodeRepositoryOutput(v **Describe if !ok { return fmt.Errorf("expected CodeRepositoryArn to be of type string, got %T instead", value) } - sv.CodeRepositoryArn = &jtv + sv.CodeRepositoryArn = ptr.String(jtv) } case "CodeRepositoryName": @@ -37505,7 +37667,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCodeRepositoryOutput(v **Describe if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.CodeRepositoryName = &jtv + sv.CodeRepositoryName = ptr.String(jtv) } case "CreationTime": @@ -37589,7 +37751,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCompilationJobOutput(v **Describe if !ok { return fmt.Errorf("expected CompilationJobArn to be of type string, got %T instead", value) } - sv.CompilationJobArn = &jtv + sv.CompilationJobArn = ptr.String(jtv) } case "CompilationJobName": @@ -37598,7 +37760,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCompilationJobOutput(v **Describe if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.CompilationJobName = &jtv + sv.CompilationJobName = ptr.String(jtv) } case "CompilationJobStatus": @@ -37642,7 +37804,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCompilationJobOutput(v **Describe if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "InputConfig": @@ -37679,7 +37841,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCompilationJobOutput(v **Describe if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "StoppingCondition": @@ -37760,7 +37922,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDomainOutput(v **DescribeDomainOu if !ok { return fmt.Errorf("expected DomainArn to be of type string, got %T instead", value) } - sv.DomainArn = &jtv + sv.DomainArn = ptr.String(jtv) } case "DomainId": @@ -37769,7 +37931,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDomainOutput(v **DescribeDomainOu if !ok { return fmt.Errorf("expected DomainId to be of type string, got %T instead", value) } - sv.DomainId = &jtv + sv.DomainId = ptr.String(jtv) } case "DomainName": @@ -37778,7 +37940,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDomainOutput(v **DescribeDomainOu if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "FailureReason": @@ -37787,7 +37949,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDomainOutput(v **DescribeDomainOu if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "HomeEfsFileSystemId": @@ -37796,7 +37958,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDomainOutput(v **DescribeDomainOu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.HomeEfsFileSystemId = &jtv + sv.HomeEfsFileSystemId = ptr.String(jtv) } case "HomeEfsFileSystemKmsKeyId": @@ -37805,7 +37967,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDomainOutput(v **DescribeDomainOu if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.HomeEfsFileSystemKmsKeyId = &jtv + sv.HomeEfsFileSystemKmsKeyId = ptr.String(jtv) } case "LastModifiedTime": @@ -37827,7 +37989,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDomainOutput(v **DescribeDomainOu if !ok { return fmt.Errorf("expected String256 to be of type string, got %T instead", value) } - sv.SingleSignOnManagedApplicationInstanceId = &jtv + sv.SingleSignOnManagedApplicationInstanceId = ptr.String(jtv) } case "Status": @@ -37850,7 +38012,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDomainOutput(v **DescribeDomainOu if !ok { return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } case "VpcId": @@ -37859,7 +38021,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDomainOutput(v **DescribeDomainOu if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -37917,7 +38079,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEndpointConfigOutput(v **Describe if !ok { return fmt.Errorf("expected EndpointConfigArn to be of type string, got %T instead", value) } - sv.EndpointConfigArn = &jtv + sv.EndpointConfigArn = ptr.String(jtv) } case "EndpointConfigName": @@ -37926,7 +38088,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEndpointConfigOutput(v **Describe if !ok { return fmt.Errorf("expected EndpointConfigName to be of type string, got %T instead", value) } - sv.EndpointConfigName = &jtv + sv.EndpointConfigName = ptr.String(jtv) } case "KmsKeyId": @@ -37935,7 +38097,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEndpointConfigOutput(v **Describe if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "ProductionVariants": @@ -37998,7 +38160,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEndpointOutput(v **DescribeEndpoi if !ok { return fmt.Errorf("expected EndpointArn to be of type string, got %T instead", value) } - sv.EndpointArn = &jtv + sv.EndpointArn = ptr.String(jtv) } case "EndpointConfigName": @@ -38007,7 +38169,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEndpointOutput(v **DescribeEndpoi if !ok { return fmt.Errorf("expected EndpointConfigName to be of type string, got %T instead", value) } - sv.EndpointConfigName = &jtv + sv.EndpointConfigName = ptr.String(jtv) } case "EndpointName": @@ -38016,7 +38178,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEndpointOutput(v **DescribeEndpoi if !ok { return fmt.Errorf("expected EndpointName to be of type string, got %T instead", value) } - sv.EndpointName = &jtv + sv.EndpointName = ptr.String(jtv) } case "EndpointStatus": @@ -38034,7 +38196,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEndpointOutput(v **DescribeEndpoi if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LastModifiedTime": @@ -38110,7 +38272,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeExperimentOutput(v **DescribeExpe if !ok { return fmt.Errorf("expected ExperimentDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DisplayName": @@ -38119,7 +38281,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeExperimentOutput(v **DescribeExpe if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "ExperimentArn": @@ -38128,7 +38290,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeExperimentOutput(v **DescribeExpe if !ok { return fmt.Errorf("expected ExperimentArn to be of type string, got %T instead", value) } - sv.ExperimentArn = &jtv + sv.ExperimentArn = ptr.String(jtv) } case "ExperimentName": @@ -38137,7 +38299,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeExperimentOutput(v **DescribeExpe if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.ExperimentName = &jtv + sv.ExperimentName = ptr.String(jtv) } case "LastModifiedBy": @@ -38213,7 +38375,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFlowDefinitionOutput(v **Describe if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "FlowDefinitionArn": @@ -38222,7 +38384,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFlowDefinitionOutput(v **Describe if !ok { return fmt.Errorf("expected FlowDefinitionArn to be of type string, got %T instead", value) } - sv.FlowDefinitionArn = &jtv + sv.FlowDefinitionArn = ptr.String(jtv) } case "FlowDefinitionName": @@ -38231,7 +38393,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFlowDefinitionOutput(v **Describe if !ok { return fmt.Errorf("expected FlowDefinitionName to be of type string, got %T instead", value) } - sv.FlowDefinitionName = &jtv + sv.FlowDefinitionName = ptr.String(jtv) } case "FlowDefinitionStatus": @@ -38269,7 +38431,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeFlowDefinitionOutput(v **Describe if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -38322,7 +38484,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHumanTaskUiOutput(v **DescribeHum if !ok { return fmt.Errorf("expected HumanTaskUiArn to be of type string, got %T instead", value) } - sv.HumanTaskUiArn = &jtv + sv.HumanTaskUiArn = ptr.String(jtv) } case "HumanTaskUiName": @@ -38331,7 +38493,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHumanTaskUiOutput(v **DescribeHum if !ok { return fmt.Errorf("expected HumanTaskUiName to be of type string, got %T instead", value) } - sv.HumanTaskUiName = &jtv + sv.HumanTaskUiName = ptr.String(jtv) } case "HumanTaskUiStatus": @@ -38403,7 +38565,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHyperParameterTuningJobOutput(v * if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "HyperParameterTuningEndTime": @@ -38425,7 +38587,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHyperParameterTuningJobOutput(v * if !ok { return fmt.Errorf("expected HyperParameterTuningJobArn to be of type string, got %T instead", value) } - sv.HyperParameterTuningJobArn = &jtv + sv.HyperParameterTuningJobArn = ptr.String(jtv) } case "HyperParameterTuningJobConfig": @@ -38439,7 +38601,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeHyperParameterTuningJobOutput(v * if !ok { return fmt.Errorf("expected HyperParameterTuningJobName to be of type string, got %T instead", value) } - sv.HyperParameterTuningJobName = &jtv + sv.HyperParameterTuningJobName = ptr.String(jtv) } case "HyperParameterTuningJobStatus": @@ -38544,7 +38706,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageOutput(v **DescribeImageOutp if !ok { return fmt.Errorf("expected ImageDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DisplayName": @@ -38553,7 +38715,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageOutput(v **DescribeImageOutp if !ok { return fmt.Errorf("expected ImageDisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "FailureReason": @@ -38562,7 +38724,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageOutput(v **DescribeImageOutp if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "ImageArn": @@ -38571,7 +38733,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageOutput(v **DescribeImageOutp if !ok { return fmt.Errorf("expected ImageArn to be of type string, got %T instead", value) } - sv.ImageArn = &jtv + sv.ImageArn = ptr.String(jtv) } case "ImageName": @@ -38580,7 +38742,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageOutput(v **DescribeImageOutp if !ok { return fmt.Errorf("expected ImageName to be of type string, got %T instead", value) } - sv.ImageName = &jtv + sv.ImageName = ptr.String(jtv) } case "ImageStatus": @@ -38611,7 +38773,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageOutput(v **DescribeImageOutp if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -38651,7 +38813,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageVersionOutput(v **DescribeIm if !ok { return fmt.Errorf("expected ImageBaseImage to be of type string, got %T instead", value) } - sv.BaseImage = &jtv + sv.BaseImage = ptr.String(jtv) } case "ContainerImage": @@ -38660,7 +38822,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageVersionOutput(v **DescribeIm if !ok { return fmt.Errorf("expected ImageContainerImage to be of type string, got %T instead", value) } - sv.ContainerImage = &jtv + sv.ContainerImage = ptr.String(jtv) } case "CreationTime": @@ -38682,7 +38844,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageVersionOutput(v **DescribeIm if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "ImageArn": @@ -38691,7 +38853,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageVersionOutput(v **DescribeIm if !ok { return fmt.Errorf("expected ImageArn to be of type string, got %T instead", value) } - sv.ImageArn = &jtv + sv.ImageArn = ptr.String(jtv) } case "ImageVersionArn": @@ -38700,7 +38862,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageVersionOutput(v **DescribeIm if !ok { return fmt.Errorf("expected ImageVersionArn to be of type string, got %T instead", value) } - sv.ImageVersionArn = &jtv + sv.ImageVersionArn = ptr.String(jtv) } case "ImageVersionStatus": @@ -38788,7 +38950,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLabelingJobOutput(v **DescribeLab if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "HumanTaskConfig": @@ -38807,7 +38969,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLabelingJobOutput(v **DescribeLab if !ok { return fmt.Errorf("expected JobReferenceCode to be of type string, got %T instead", value) } - sv.JobReferenceCode = &jtv + sv.JobReferenceCode = ptr.String(jtv) } case "LabelAttributeName": @@ -38816,7 +38978,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLabelingJobOutput(v **DescribeLab if !ok { return fmt.Errorf("expected LabelAttributeName to be of type string, got %T instead", value) } - sv.LabelAttributeName = &jtv + sv.LabelAttributeName = ptr.String(jtv) } case "LabelCategoryConfigS3Uri": @@ -38825,7 +38987,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLabelingJobOutput(v **DescribeLab if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.LabelCategoryConfigS3Uri = &jtv + sv.LabelCategoryConfigS3Uri = ptr.String(jtv) } case "LabelCounters": @@ -38844,7 +39006,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLabelingJobOutput(v **DescribeLab if !ok { return fmt.Errorf("expected LabelingJobArn to be of type string, got %T instead", value) } - sv.LabelingJobArn = &jtv + sv.LabelingJobArn = ptr.String(jtv) } case "LabelingJobName": @@ -38853,7 +39015,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLabelingJobOutput(v **DescribeLab if !ok { return fmt.Errorf("expected LabelingJobName to be of type string, got %T instead", value) } - sv.LabelingJobName = &jtv + sv.LabelingJobName = ptr.String(jtv) } case "LabelingJobOutput": @@ -38894,7 +39056,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeLabelingJobOutput(v **DescribeLab if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "StoppingConditions": @@ -38962,7 +39124,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeModelOutput(v **DescribeModelOutp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableNetworkIsolation = &jtv + sv.EnableNetworkIsolation = jtv } case "ExecutionRoleArn": @@ -38971,7 +39133,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeModelOutput(v **DescribeModelOutp if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.ExecutionRoleArn = &jtv + sv.ExecutionRoleArn = ptr.String(jtv) } case "ModelArn": @@ -38980,7 +39142,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeModelOutput(v **DescribeModelOutp if !ok { return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value) } - sv.ModelArn = &jtv + sv.ModelArn = ptr.String(jtv) } case "ModelName": @@ -38989,7 +39151,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeModelOutput(v **DescribeModelOutp if !ok { return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) } - sv.ModelName = &jtv + sv.ModelName = ptr.String(jtv) } case "PrimaryContainer": @@ -39039,7 +39201,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeModelPackageOutput(v **DescribeMo if !ok { return fmt.Errorf("expected CertifyForMarketplace to be of type *bool, got %T instead", value) } - sv.CertifyForMarketplace = &jtv + sv.CertifyForMarketplace = jtv } case "CreationTime": @@ -39066,7 +39228,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeModelPackageOutput(v **DescribeMo if !ok { return fmt.Errorf("expected ModelPackageArn to be of type string, got %T instead", value) } - sv.ModelPackageArn = &jtv + sv.ModelPackageArn = ptr.String(jtv) } case "ModelPackageDescription": @@ -39075,7 +39237,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeModelPackageOutput(v **DescribeMo if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.ModelPackageDescription = &jtv + sv.ModelPackageDescription = ptr.String(jtv) } case "ModelPackageName": @@ -39084,7 +39246,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeModelPackageOutput(v **DescribeMo if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.ModelPackageName = &jtv + sv.ModelPackageName = ptr.String(jtv) } case "ModelPackageStatus": @@ -39161,7 +39323,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMonitoringScheduleOutput(v **Desc if !ok { return fmt.Errorf("expected EndpointName to be of type string, got %T instead", value) } - sv.EndpointName = &jtv + sv.EndpointName = ptr.String(jtv) } case "FailureReason": @@ -39170,7 +39332,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMonitoringScheduleOutput(v **Desc if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LastModifiedTime": @@ -39197,7 +39359,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMonitoringScheduleOutput(v **Desc if !ok { return fmt.Errorf("expected MonitoringScheduleArn to be of type string, got %T instead", value) } - sv.MonitoringScheduleArn = &jtv + sv.MonitoringScheduleArn = ptr.String(jtv) } case "MonitoringScheduleConfig": @@ -39211,7 +39373,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMonitoringScheduleOutput(v **Desc if !ok { return fmt.Errorf("expected MonitoringScheduleName to be of type string, got %T instead", value) } - sv.MonitoringScheduleName = &jtv + sv.MonitoringScheduleName = ptr.String(jtv) } case "MonitoringScheduleStatus": @@ -39286,7 +39448,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceLifecycleConfigOu if !ok { return fmt.Errorf("expected NotebookInstanceLifecycleConfigArn to be of type string, got %T instead", value) } - sv.NotebookInstanceLifecycleConfigArn = &jtv + sv.NotebookInstanceLifecycleConfigArn = ptr.String(jtv) } case "NotebookInstanceLifecycleConfigName": @@ -39295,7 +39457,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceLifecycleConfigOu if !ok { return fmt.Errorf("expected NotebookInstanceLifecycleConfigName to be of type string, got %T instead", value) } - sv.NotebookInstanceLifecycleConfigName = &jtv + sv.NotebookInstanceLifecycleConfigName = ptr.String(jtv) } case "OnCreate": @@ -39368,7 +39530,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(v **Descri if !ok { return fmt.Errorf("expected CodeRepositoryNameOrUrl to be of type string, got %T instead", value) } - sv.DefaultCodeRepository = &jtv + sv.DefaultCodeRepository = ptr.String(jtv) } case "DirectInternetAccess": @@ -39386,7 +39548,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(v **Descri if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "InstanceType": @@ -39404,7 +39566,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(v **Descri if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LastModifiedTime": @@ -39426,7 +39588,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(v **Descri if !ok { return fmt.Errorf("expected NetworkInterfaceId to be of type string, got %T instead", value) } - sv.NetworkInterfaceId = &jtv + sv.NetworkInterfaceId = ptr.String(jtv) } case "NotebookInstanceArn": @@ -39435,7 +39597,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(v **Descri if !ok { return fmt.Errorf("expected NotebookInstanceArn to be of type string, got %T instead", value) } - sv.NotebookInstanceArn = &jtv + sv.NotebookInstanceArn = ptr.String(jtv) } case "NotebookInstanceLifecycleConfigName": @@ -39444,7 +39606,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(v **Descri if !ok { return fmt.Errorf("expected NotebookInstanceLifecycleConfigName to be of type string, got %T instead", value) } - sv.NotebookInstanceLifecycleConfigName = &jtv + sv.NotebookInstanceLifecycleConfigName = ptr.String(jtv) } case "NotebookInstanceName": @@ -39453,7 +39615,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(v **Descri if !ok { return fmt.Errorf("expected NotebookInstanceName to be of type string, got %T instead", value) } - sv.NotebookInstanceName = &jtv + sv.NotebookInstanceName = ptr.String(jtv) } case "NotebookInstanceStatus": @@ -39471,7 +39633,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(v **Descri if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "RootAccess": @@ -39494,7 +39656,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(v **Descri if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "Url": @@ -39503,7 +39665,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(v **Descri if !ok { return fmt.Errorf("expected NotebookInstanceUrl to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } case "VolumeSizeInGB": @@ -39561,7 +39723,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProcessingJobOutput(v **DescribeP if !ok { return fmt.Errorf("expected AutoMLJobArn to be of type string, got %T instead", value) } - sv.AutoMLJobArn = &jtv + sv.AutoMLJobArn = ptr.String(jtv) } case "CreationTime": @@ -39588,7 +39750,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProcessingJobOutput(v **DescribeP if !ok { return fmt.Errorf("expected ExitMessage to be of type string, got %T instead", value) } - sv.ExitMessage = &jtv + sv.ExitMessage = ptr.String(jtv) } case "ExperimentConfig": @@ -39602,7 +39764,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProcessingJobOutput(v **DescribeP if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LastModifiedTime": @@ -39624,7 +39786,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProcessingJobOutput(v **DescribeP if !ok { return fmt.Errorf("expected MonitoringScheduleArn to be of type string, got %T instead", value) } - sv.MonitoringScheduleArn = &jtv + sv.MonitoringScheduleArn = ptr.String(jtv) } case "NetworkConfig": @@ -39656,7 +39818,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProcessingJobOutput(v **DescribeP if !ok { return fmt.Errorf("expected ProcessingJobArn to be of type string, got %T instead", value) } - sv.ProcessingJobArn = &jtv + sv.ProcessingJobArn = ptr.String(jtv) } case "ProcessingJobName": @@ -39665,7 +39827,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProcessingJobOutput(v **DescribeP if !ok { return fmt.Errorf("expected ProcessingJobName to be of type string, got %T instead", value) } - sv.ProcessingJobName = &jtv + sv.ProcessingJobName = ptr.String(jtv) } case "ProcessingJobStatus": @@ -39706,7 +39868,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProcessingJobOutput(v **DescribeP if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "StoppingCondition": @@ -39720,7 +39882,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProcessingJobOutput(v **DescribeP if !ok { return fmt.Errorf("expected TrainingJobArn to be of type string, got %T instead", value) } - sv.TrainingJobArn = &jtv + sv.TrainingJobArn = ptr.String(jtv) } default: @@ -39801,7 +39963,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(v **DescribeTra if !ok { return fmt.Errorf("expected AutoMLJobArn to be of type string, got %T instead", value) } - sv.AutoMLJobArn = &jtv + sv.AutoMLJobArn = ptr.String(jtv) } case "BillableTimeInSeconds": @@ -39856,7 +40018,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(v **DescribeTra if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableInterContainerTrafficEncryption = &jtv + sv.EnableInterContainerTrafficEncryption = jtv } case "EnableManagedSpotTraining": @@ -39865,7 +40027,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(v **DescribeTra if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableManagedSpotTraining = &jtv + sv.EnableManagedSpotTraining = jtv } case "EnableNetworkIsolation": @@ -39874,7 +40036,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(v **DescribeTra if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableNetworkIsolation = &jtv + sv.EnableNetworkIsolation = jtv } case "ExperimentConfig": @@ -39888,7 +40050,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(v **DescribeTra if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "FinalMetricDataList": @@ -39912,7 +40074,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(v **DescribeTra if !ok { return fmt.Errorf("expected LabelingJobArn to be of type string, got %T instead", value) } - sv.LabelingJobArn = &jtv + sv.LabelingJobArn = ptr.String(jtv) } case "LastModifiedTime": @@ -39949,7 +40111,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(v **DescribeTra if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "SecondaryStatus": @@ -39995,7 +40157,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(v **DescribeTra if !ok { return fmt.Errorf("expected TrainingJobArn to be of type string, got %T instead", value) } - sv.TrainingJobArn = &jtv + sv.TrainingJobArn = ptr.String(jtv) } case "TrainingJobName": @@ -40004,7 +40166,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(v **DescribeTra if !ok { return fmt.Errorf("expected TrainingJobName to be of type string, got %T instead", value) } - sv.TrainingJobName = &jtv + sv.TrainingJobName = ptr.String(jtv) } case "TrainingJobStatus": @@ -40048,7 +40210,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(v **DescribeTra if !ok { return fmt.Errorf("expected HyperParameterTuningJobArn to be of type string, got %T instead", value) } - sv.TuningJobArn = &jtv + sv.TuningJobArn = ptr.String(jtv) } case "VpcConfig": @@ -40093,7 +40255,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTransformJobOutput(v **DescribeTr if !ok { return fmt.Errorf("expected AutoMLJobArn to be of type string, got %T instead", value) } - sv.AutoMLJobArn = &jtv + sv.AutoMLJobArn = ptr.String(jtv) } case "BatchStrategy": @@ -40139,7 +40301,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTransformJobOutput(v **DescribeTr if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LabelingJobArn": @@ -40148,7 +40310,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTransformJobOutput(v **DescribeTr if !ok { return fmt.Errorf("expected LabelingJobArn to be of type string, got %T instead", value) } - sv.LabelingJobArn = &jtv + sv.LabelingJobArn = ptr.String(jtv) } case "MaxConcurrentTransforms": @@ -40188,7 +40350,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTransformJobOutput(v **DescribeTr if !ok { return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) } - sv.ModelName = &jtv + sv.ModelName = ptr.String(jtv) } case "TransformEndTime": @@ -40215,7 +40377,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTransformJobOutput(v **DescribeTr if !ok { return fmt.Errorf("expected TransformJobArn to be of type string, got %T instead", value) } - sv.TransformJobArn = &jtv + sv.TransformJobArn = ptr.String(jtv) } case "TransformJobName": @@ -40224,7 +40386,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTransformJobOutput(v **DescribeTr if !ok { return fmt.Errorf("expected TransformJobName to be of type string, got %T instead", value) } - sv.TransformJobName = &jtv + sv.TransformJobName = ptr.String(jtv) } case "TransformJobStatus": @@ -40314,7 +40476,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrialComponentOutput(v **Describe if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "EndTime": @@ -40397,7 +40559,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrialComponentOutput(v **Describe if !ok { return fmt.Errorf("expected TrialComponentArn to be of type string, got %T instead", value) } - sv.TrialComponentArn = &jtv + sv.TrialComponentArn = ptr.String(jtv) } case "TrialComponentName": @@ -40406,7 +40568,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrialComponentOutput(v **Describe if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.TrialComponentName = &jtv + sv.TrialComponentName = ptr.String(jtv) } default: @@ -40464,7 +40626,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrialOutput(v **DescribeTrialOutp if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "ExperimentName": @@ -40473,7 +40635,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrialOutput(v **DescribeTrialOutp if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.ExperimentName = &jtv + sv.ExperimentName = ptr.String(jtv) } case "LastModifiedBy": @@ -40505,7 +40667,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrialOutput(v **DescribeTrialOutp if !ok { return fmt.Errorf("expected TrialArn to be of type string, got %T instead", value) } - sv.TrialArn = &jtv + sv.TrialArn = ptr.String(jtv) } case "TrialName": @@ -40514,7 +40676,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrialOutput(v **DescribeTrialOutp if !ok { return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) } - sv.TrialName = &jtv + sv.TrialName = ptr.String(jtv) } default: @@ -40567,7 +40729,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(v **DescribeUse if !ok { return fmt.Errorf("expected DomainId to be of type string, got %T instead", value) } - sv.DomainId = &jtv + sv.DomainId = ptr.String(jtv) } case "FailureReason": @@ -40576,7 +40738,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(v **DescribeUse if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "HomeEfsFileSystemUid": @@ -40585,7 +40747,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(v **DescribeUse if !ok { return fmt.Errorf("expected EfsUid to be of type string, got %T instead", value) } - sv.HomeEfsFileSystemUid = &jtv + sv.HomeEfsFileSystemUid = ptr.String(jtv) } case "LastModifiedTime": @@ -40607,7 +40769,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(v **DescribeUse if !ok { return fmt.Errorf("expected SingleSignOnUserIdentifier to be of type string, got %T instead", value) } - sv.SingleSignOnUserIdentifier = &jtv + sv.SingleSignOnUserIdentifier = ptr.String(jtv) } case "SingleSignOnUserValue": @@ -40616,7 +40778,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(v **DescribeUse if !ok { return fmt.Errorf("expected String256 to be of type string, got %T instead", value) } - sv.SingleSignOnUserValue = &jtv + sv.SingleSignOnUserValue = ptr.String(jtv) } case "Status": @@ -40634,7 +40796,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(v **DescribeUse if !ok { return fmt.Errorf("expected UserProfileArn to be of type string, got %T instead", value) } - sv.UserProfileArn = &jtv + sv.UserProfileArn = ptr.String(jtv) } case "UserProfileName": @@ -40643,7 +40805,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(v **DescribeUse if !ok { return fmt.Errorf("expected UserProfileName to be of type string, got %T instead", value) } - sv.UserProfileName = &jtv + sv.UserProfileName = ptr.String(jtv) } case "UserSettings": @@ -40760,7 +40922,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateTrialComponentOutput(v **Disa if !ok { return fmt.Errorf("expected TrialArn to be of type string, got %T instead", value) } - sv.TrialArn = &jtv + sv.TrialArn = ptr.String(jtv) } case "TrialComponentArn": @@ -40769,7 +40931,7 @@ func awsAwsjson11_deserializeOpDocumentDisassociateTrialComponentOutput(v **Disa if !ok { return fmt.Errorf("expected TrialComponentArn to be of type string, got %T instead", value) } - sv.TrialComponentArn = &jtv + sv.TrialComponentArn = ptr.String(jtv) } default: @@ -40850,7 +41012,7 @@ func awsAwsjson11_deserializeOpDocumentListAlgorithmsOutput(v **ListAlgorithmsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -40895,7 +41057,7 @@ func awsAwsjson11_deserializeOpDocumentListAppImageConfigsOutput(v **ListAppImag if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -40940,7 +41102,7 @@ func awsAwsjson11_deserializeOpDocumentListAppsOutput(v **ListAppsOutput, value if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -40985,7 +41147,7 @@ func awsAwsjson11_deserializeOpDocumentListAutoMLJobsOutput(v **ListAutoMLJobsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41030,7 +41192,7 @@ func awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(v **List if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41075,7 +41237,7 @@ func awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(v **ListCodeRe if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41120,7 +41282,7 @@ func awsAwsjson11_deserializeOpDocumentListCompilationJobsOutput(v **ListCompila if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41165,7 +41327,7 @@ func awsAwsjson11_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41210,7 +41372,7 @@ func awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(v **ListEndpoin if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41255,7 +41417,7 @@ func awsAwsjson11_deserializeOpDocumentListEndpointsOutput(v **ListEndpointsOutp if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41300,7 +41462,7 @@ func awsAwsjson11_deserializeOpDocumentListExperimentsOutput(v **ListExperiments if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41345,7 +41507,7 @@ func awsAwsjson11_deserializeOpDocumentListFlowDefinitionsOutput(v **ListFlowDef if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41390,7 +41552,7 @@ func awsAwsjson11_deserializeOpDocumentListHumanTaskUisOutput(v **ListHumanTaskU if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41435,7 +41597,7 @@ func awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(v **Li if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41480,7 +41642,7 @@ func awsAwsjson11_deserializeOpDocumentListImagesOutput(v **ListImagesOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41525,7 +41687,7 @@ func awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(v **ListImageVers if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41570,7 +41732,7 @@ func awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(v **Lis if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41615,7 +41777,7 @@ func awsAwsjson11_deserializeOpDocumentListLabelingJobsOutput(v **ListLabelingJo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41660,7 +41822,7 @@ func awsAwsjson11_deserializeOpDocumentListModelPackagesOutput(v **ListModelPack if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41705,7 +41867,7 @@ func awsAwsjson11_deserializeOpDocumentListModelsOutput(v **ListModelsOutput, va if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41750,7 +41912,7 @@ func awsAwsjson11_deserializeOpDocumentListMonitoringExecutionsOutput(v **ListMo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41795,7 +41957,7 @@ func awsAwsjson11_deserializeOpDocumentListMonitoringSchedulesOutput(v **ListMon if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -41835,7 +41997,7 @@ func awsAwsjson11_deserializeOpDocumentListNotebookInstanceLifecycleConfigsOutpu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "NotebookInstanceLifecycleConfigs": @@ -41880,7 +42042,7 @@ func awsAwsjson11_deserializeOpDocumentListNotebookInstancesOutput(v **ListNoteb if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "NotebookInstances": @@ -41925,7 +42087,7 @@ func awsAwsjson11_deserializeOpDocumentListProcessingJobsOutput(v **ListProcessi if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ProcessingJobSummaries": @@ -41970,7 +42132,7 @@ func awsAwsjson11_deserializeOpDocumentListSubscribedWorkteamsOutput(v **ListSub if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SubscribedWorkteams": @@ -42015,7 +42177,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsOutput(v **ListTagsOutput, value if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -42060,7 +42222,7 @@ func awsAwsjson11_deserializeOpDocumentListTrainingJobsForHyperParameterTuningJo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TrainingJobSummaries": @@ -42105,7 +42267,7 @@ func awsAwsjson11_deserializeOpDocumentListTrainingJobsOutput(v **ListTrainingJo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TrainingJobSummaries": @@ -42150,7 +42312,7 @@ func awsAwsjson11_deserializeOpDocumentListTransformJobsOutput(v **ListTransform if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TransformJobSummaries": @@ -42195,7 +42357,7 @@ func awsAwsjson11_deserializeOpDocumentListTrialComponentsOutput(v **ListTrialCo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TrialComponentSummaries": @@ -42240,7 +42402,7 @@ func awsAwsjson11_deserializeOpDocumentListTrialsOutput(v **ListTrialsOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TrialSummaries": @@ -42285,7 +42447,7 @@ func awsAwsjson11_deserializeOpDocumentListUserProfilesOutput(v **ListUserProfil if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "UserProfiles": @@ -42330,7 +42492,7 @@ func awsAwsjson11_deserializeOpDocumentListWorkforcesOutput(v **ListWorkforcesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Workforces": @@ -42375,7 +42537,7 @@ func awsAwsjson11_deserializeOpDocumentListWorkteamsOutput(v **ListWorkteamsOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Workteams": @@ -42425,7 +42587,7 @@ func awsAwsjson11_deserializeOpDocumentRenderUiTemplateOutput(v **RenderUiTempla if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RenderedContent = &jtv + sv.RenderedContent = ptr.String(jtv) } default: @@ -42465,7 +42627,7 @@ func awsAwsjson11_deserializeOpDocumentSearchOutput(v **SearchOutput, value inte if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Results": @@ -42851,7 +43013,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateAppImageConfigOutput(v **UpdateAppI if !ok { return fmt.Errorf("expected AppImageConfigArn to be of type string, got %T instead", value) } - sv.AppImageConfigArn = &jtv + sv.AppImageConfigArn = ptr.String(jtv) } default: @@ -42891,7 +43053,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateCodeRepositoryOutput(v **UpdateCode if !ok { return fmt.Errorf("expected CodeRepositoryArn to be of type string, got %T instead", value) } - sv.CodeRepositoryArn = &jtv + sv.CodeRepositoryArn = ptr.String(jtv) } default: @@ -42931,7 +43093,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateDomainOutput(v **UpdateDomainOutput if !ok { return fmt.Errorf("expected DomainArn to be of type string, got %T instead", value) } - sv.DomainArn = &jtv + sv.DomainArn = ptr.String(jtv) } default: @@ -42971,7 +43133,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateEndpointOutput(v **UpdateEndpointOu if !ok { return fmt.Errorf("expected EndpointArn to be of type string, got %T instead", value) } - sv.EndpointArn = &jtv + sv.EndpointArn = ptr.String(jtv) } default: @@ -43011,7 +43173,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateEndpointWeightsAndCapacitiesOutput( if !ok { return fmt.Errorf("expected EndpointArn to be of type string, got %T instead", value) } - sv.EndpointArn = &jtv + sv.EndpointArn = ptr.String(jtv) } default: @@ -43051,7 +43213,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateExperimentOutput(v **UpdateExperime if !ok { return fmt.Errorf("expected ExperimentArn to be of type string, got %T instead", value) } - sv.ExperimentArn = &jtv + sv.ExperimentArn = ptr.String(jtv) } default: @@ -43091,7 +43253,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateImageOutput(v **UpdateImageOutput, if !ok { return fmt.Errorf("expected ImageArn to be of type string, got %T instead", value) } - sv.ImageArn = &jtv + sv.ImageArn = ptr.String(jtv) } default: @@ -43131,7 +43293,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMonitoringScheduleOutput(v **Update if !ok { return fmt.Errorf("expected MonitoringScheduleArn to be of type string, got %T instead", value) } - sv.MonitoringScheduleArn = &jtv + sv.MonitoringScheduleArn = ptr.String(jtv) } default: @@ -43233,7 +43395,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrialComponentOutput(v **UpdateTria if !ok { return fmt.Errorf("expected TrialComponentArn to be of type string, got %T instead", value) } - sv.TrialComponentArn = &jtv + sv.TrialComponentArn = ptr.String(jtv) } default: @@ -43273,7 +43435,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTrialOutput(v **UpdateTrialOutput, if !ok { return fmt.Errorf("expected TrialArn to be of type string, got %T instead", value) } - sv.TrialArn = &jtv + sv.TrialArn = ptr.String(jtv) } default: @@ -43313,7 +43475,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateUserProfileOutput(v **UpdateUserPro if !ok { return fmt.Errorf("expected UserProfileArn to be of type string, got %T instead", value) } - sv.UserProfileArn = &jtv + sv.UserProfileArn = ptr.String(jtv) } default: diff --git a/service/sagemaker/go.mod b/service/sagemaker/go.mod index 55e5a0f59f9..6dd94b05788 100644 --- a/service/sagemaker/go.mod +++ b/service/sagemaker/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/sagemaker go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/sagemaker/serializers.go b/service/sagemaker/serializers.go index 253c31e3254..3c1d486342a 100644 --- a/service/sagemaker/serializers.go +++ b/service/sagemaker/serializers.go @@ -6960,17 +6960,13 @@ func (m *awsAwsjson11_serializeOpUpdateWorkteam) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAdditionalCodeRepositoryNamesOrUrls(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAdditionalCodeRepositoryNamesOrUrls(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6984,9 +6980,9 @@ func awsAwsjson11_serializeDocumentAlgorithmSpecification(v *types.AlgorithmSpec ok.String(*v.AlgorithmName) } - if v.EnableSageMakerMetricsTimeSeries != nil { + if v.EnableSageMakerMetricsTimeSeries { ok := object.Key("EnableSageMakerMetricsTimeSeries") - ok.Boolean(*v.EnableSageMakerMetricsTimeSeries) + ok.Boolean(v.EnableSageMakerMetricsTimeSeries) } if v.MetricDefinitions != nil { @@ -7035,17 +7031,13 @@ func awsAwsjson11_serializeDocumentAlgorithmValidationProfile(v *types.Algorithm return nil } -func awsAwsjson11_serializeDocumentAlgorithmValidationProfiles(v []*types.AlgorithmValidationProfile, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAlgorithmValidationProfiles(v []types.AlgorithmValidationProfile, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAlgorithmValidationProfile(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAlgorithmValidationProfile(&v[i], av); err != nil { return err } } @@ -7109,17 +7101,13 @@ func awsAwsjson11_serializeDocumentAppSpecification(v *types.AppSpecification, v return nil } -func awsAwsjson11_serializeDocumentAttributeNames(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttributeNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7162,17 +7150,13 @@ func awsAwsjson11_serializeDocumentAutoMLDataSource(v *types.AutoMLDataSource, v return nil } -func awsAwsjson11_serializeDocumentAutoMLInputDataConfig(v []*types.AutoMLChannel, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAutoMLInputDataConfig(v []types.AutoMLChannel, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAutoMLChannel(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAutoMLChannel(&v[i], av); err != nil { return err } } @@ -7272,9 +7256,9 @@ func awsAwsjson11_serializeDocumentAutoMLSecurityConfig(v *types.AutoMLSecurityC object := value.Object() defer object.Close() - if v.EnableInterContainerTrafficEncryption != nil { + if v.EnableInterContainerTrafficEncryption { ok := object.Key("EnableInterContainerTrafficEncryption") - ok.Boolean(*v.EnableInterContainerTrafficEncryption) + ok.Boolean(v.EnableInterContainerTrafficEncryption) } if v.VolumeKmsKeyId != nil { @@ -7325,17 +7309,13 @@ func awsAwsjson11_serializeDocumentCaptureOption(v *types.CaptureOption, value s return nil } -func awsAwsjson11_serializeDocumentCaptureOptionList(v []*types.CaptureOption, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCaptureOptionList(v []types.CaptureOption, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCaptureOption(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCaptureOption(&v[i], av); err != nil { return err } } @@ -7361,17 +7341,13 @@ func awsAwsjson11_serializeDocumentCategoricalParameterRange(v *types.Categorica return nil } -func awsAwsjson11_serializeDocumentCategoricalParameterRanges(v []*types.CategoricalParameterRange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCategoricalParameterRanges(v []types.CategoricalParameterRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCategoricalParameterRange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCategoricalParameterRange(&v[i], av); err != nil { return err } } @@ -7447,9 +7423,9 @@ func awsAwsjson11_serializeDocumentChannelSpecification(v *types.ChannelSpecific ok.String(*v.Description) } - if v.IsRequired != nil { + if v.IsRequired { ok := object.Key("IsRequired") - ok.Boolean(*v.IsRequired) + ok.Boolean(v.IsRequired) } if v.Name != nil { @@ -7481,17 +7457,13 @@ func awsAwsjson11_serializeDocumentChannelSpecification(v *types.ChannelSpecific return nil } -func awsAwsjson11_serializeDocumentChannelSpecifications(v []*types.ChannelSpecification, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentChannelSpecifications(v []types.ChannelSpecification, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentChannelSpecification(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentChannelSpecification(&v[i], av); err != nil { return err } } @@ -7515,17 +7487,13 @@ func awsAwsjson11_serializeDocumentCheckpointConfig(v *types.CheckpointConfig, v return nil } -func awsAwsjson11_serializeDocumentCidrs(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCidrs(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7588,34 +7556,26 @@ func awsAwsjson11_serializeDocumentCollectionConfiguration(v *types.CollectionCo return nil } -func awsAwsjson11_serializeDocumentCollectionConfigurations(v []*types.CollectionConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCollectionConfigurations(v []types.CollectionConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCollectionConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCollectionConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentCollectionParameters(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCollectionParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -7631,17 +7591,13 @@ func awsAwsjson11_serializeDocumentCompressionTypes(v []types.CompressionType, v return nil } -func awsAwsjson11_serializeDocumentContainerArguments(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentContainerArguments(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7692,34 +7648,26 @@ func awsAwsjson11_serializeDocumentContainerDefinition(v *types.ContainerDefinit return nil } -func awsAwsjson11_serializeDocumentContainerDefinitionList(v []*types.ContainerDefinition, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentContainerDefinitionList(v []types.ContainerDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentContainerDefinition(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentContainerDefinition(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentContainerEntrypoint(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentContainerEntrypoint(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7735,17 +7683,13 @@ func awsAwsjson11_serializeDocumentContentClassifiers(v []types.ContentClassifie return nil } -func awsAwsjson11_serializeDocumentContentTypes(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentContentTypes(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7777,17 +7721,13 @@ func awsAwsjson11_serializeDocumentContinuousParameterRange(v *types.ContinuousP return nil } -func awsAwsjson11_serializeDocumentContinuousParameterRanges(v []*types.ContinuousParameterRange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentContinuousParameterRanges(v []types.ContinuousParameterRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentContinuousParameterRange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentContinuousParameterRange(&v[i], av); err != nil { return err } } @@ -7811,17 +7751,13 @@ func awsAwsjson11_serializeDocumentContinuousParameterRangeSpecification(v *type return nil } -func awsAwsjson11_serializeDocumentCsvContentTypes(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCsvContentTypes(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7848,17 +7784,13 @@ func awsAwsjson11_serializeDocumentCustomImage(v *types.CustomImage, value smith return nil } -func awsAwsjson11_serializeDocumentCustomImages(v []*types.CustomImage, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCustomImages(v []types.CustomImage, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCustomImage(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCustomImage(&v[i], av); err != nil { return err } } @@ -7888,9 +7820,9 @@ func awsAwsjson11_serializeDocumentDataCaptureConfig(v *types.DataCaptureConfig, ok.String(*v.DestinationS3Uri) } - if v.EnableCapture != nil { + if v.EnableCapture { ok := object.Key("EnableCapture") - ok.Boolean(*v.EnableCapture) + ok.Boolean(v.EnableCapture) } if v.InitialSamplingPercentage != nil { @@ -8016,25 +7948,21 @@ func awsAwsjson11_serializeDocumentDebugRuleConfiguration(v *types.DebugRuleConf ok.String(*v.S3OutputPath) } - if v.VolumeSizeInGB != nil { + if v.VolumeSizeInGB != 0 { ok := object.Key("VolumeSizeInGB") - ok.Integer(*v.VolumeSizeInGB) + ok.Integer(v.VolumeSizeInGB) } return nil } -func awsAwsjson11_serializeDocumentDebugRuleConfigurations(v []*types.DebugRuleConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDebugRuleConfigurations(v []types.DebugRuleConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDebugRuleConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDebugRuleConfiguration(&v[i], av); err != nil { return err } } @@ -8063,17 +7991,13 @@ func awsAwsjson11_serializeDocumentDesiredWeightAndCapacity(v *types.DesiredWeig return nil } -func awsAwsjson11_serializeDocumentDesiredWeightAndCapacityList(v []*types.DesiredWeightAndCapacity, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDesiredWeightAndCapacityList(v []types.DesiredWeightAndCapacity, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDesiredWeightAndCapacity(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDesiredWeightAndCapacity(&v[i], av); err != nil { return err } } @@ -8107,17 +8031,13 @@ func awsAwsjson11_serializeDocumentEndpointInput(v *types.EndpointInput, value s return nil } -func awsAwsjson11_serializeDocumentEnvironmentMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEnvironmentMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -8148,14 +8068,14 @@ func awsAwsjson11_serializeDocumentFileSystemConfig(v *types.FileSystemConfig, v object := value.Object() defer object.Close() - if v.DefaultGid != nil { + if v.DefaultGid != 0 { ok := object.Key("DefaultGid") - ok.Integer(*v.DefaultGid) + ok.Integer(v.DefaultGid) } - if v.DefaultUid != nil { + if v.DefaultUid != 0 { ok := object.Key("DefaultUid") - ok.Integer(*v.DefaultUid) + ok.Integer(v.DefaultUid) } if v.MountPath != nil { @@ -8215,17 +8135,13 @@ func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentFilterList(v []*types.Filter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterList(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { return err } } @@ -8249,17 +8165,13 @@ func awsAwsjson11_serializeDocumentFlowDefinitionOutputConfig(v *types.FlowDefin return nil } -func awsAwsjson11_serializeDocumentFlowDefinitionTaskKeywords(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFlowDefinitionTaskKeywords(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8298,32 +8210,24 @@ func awsAwsjson11_serializeDocumentGitConfigForUpdate(v *types.GitConfigForUpdat return nil } -func awsAwsjson11_serializeDocumentGroups(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGroups(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentHookParameters(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHookParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -8526,17 +8430,13 @@ func awsAwsjson11_serializeDocumentHyperParameterAlgorithmSpecification(v *types return nil } -func awsAwsjson11_serializeDocumentHyperParameters(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHyperParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -8555,14 +8455,14 @@ func awsAwsjson11_serializeDocumentHyperParameterSpecification(v *types.HyperPar ok.String(*v.Description) } - if v.IsRequired != nil { + if v.IsRequired { ok := object.Key("IsRequired") - ok.Boolean(*v.IsRequired) + ok.Boolean(v.IsRequired) } - if v.IsTunable != nil { + if v.IsTunable { ok := object.Key("IsTunable") - ok.Boolean(*v.IsTunable) + ok.Boolean(v.IsTunable) } if v.Name != nil { @@ -8585,17 +8485,13 @@ func awsAwsjson11_serializeDocumentHyperParameterSpecification(v *types.HyperPar return nil } -func awsAwsjson11_serializeDocumentHyperParameterSpecifications(v []*types.HyperParameterSpecification, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHyperParameterSpecifications(v []types.HyperParameterSpecification, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentHyperParameterSpecification(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentHyperParameterSpecification(&v[i], av); err != nil { return err } } @@ -8625,19 +8521,19 @@ func awsAwsjson11_serializeDocumentHyperParameterTrainingJobDefinition(v *types. ok.String(*v.DefinitionName) } - if v.EnableInterContainerTrafficEncryption != nil { + if v.EnableInterContainerTrafficEncryption { ok := object.Key("EnableInterContainerTrafficEncryption") - ok.Boolean(*v.EnableInterContainerTrafficEncryption) + ok.Boolean(v.EnableInterContainerTrafficEncryption) } - if v.EnableManagedSpotTraining != nil { + if v.EnableManagedSpotTraining { ok := object.Key("EnableManagedSpotTraining") - ok.Boolean(*v.EnableManagedSpotTraining) + ok.Boolean(v.EnableManagedSpotTraining) } - if v.EnableNetworkIsolation != nil { + if v.EnableNetworkIsolation { ok := object.Key("EnableNetworkIsolation") - ok.Boolean(*v.EnableNetworkIsolation) + ok.Boolean(v.EnableNetworkIsolation) } if v.HyperParameterRanges != nil { @@ -8704,17 +8600,13 @@ func awsAwsjson11_serializeDocumentHyperParameterTrainingJobDefinition(v *types. return nil } -func awsAwsjson11_serializeDocumentHyperParameterTrainingJobDefinitions(v []*types.HyperParameterTrainingJobDefinition, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHyperParameterTrainingJobDefinitions(v []types.HyperParameterTrainingJobDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentHyperParameterTrainingJobDefinition(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentHyperParameterTrainingJobDefinition(&v[i], av); err != nil { return err } } @@ -8783,17 +8675,13 @@ func awsAwsjson11_serializeDocumentHyperParameterTuningJobObjective(v *types.Hyp return nil } -func awsAwsjson11_serializeDocumentHyperParameterTuningJobObjectives(v []*types.HyperParameterTuningJobObjective, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHyperParameterTuningJobObjectives(v []types.HyperParameterTuningJobObjective, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentHyperParameterTuningJobObjective(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentHyperParameterTuningJobObjective(&v[i], av); err != nil { return err } } @@ -8831,17 +8719,13 @@ func awsAwsjson11_serializeDocumentImageConfig(v *types.ImageConfig, value smith return nil } -func awsAwsjson11_serializeDocumentImageDeletePropertyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentImageDeletePropertyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8910,17 +8794,13 @@ func awsAwsjson11_serializeDocumentInputConfig(v *types.InputConfig, value smith return nil } -func awsAwsjson11_serializeDocumentInputDataConfig(v []*types.Channel, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInputDataConfig(v []types.Channel, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentChannel(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentChannel(&v[i], av); err != nil { return err } } @@ -8965,17 +8845,13 @@ func awsAwsjson11_serializeDocumentIntegerParameterRange(v *types.IntegerParamet return nil } -func awsAwsjson11_serializeDocumentIntegerParameterRanges(v []*types.IntegerParameterRange, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIntegerParameterRanges(v []types.IntegerParameterRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentIntegerParameterRange(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentIntegerParameterRange(&v[i], av); err != nil { return err } } @@ -8999,17 +8875,13 @@ func awsAwsjson11_serializeDocumentIntegerParameterRangeSpecification(v *types.I return nil } -func awsAwsjson11_serializeDocumentJsonContentTypes(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentJsonContentTypes(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -9087,17 +8959,13 @@ func awsAwsjson11_serializeDocumentKernelSpec(v *types.KernelSpec, value smithyj return nil } -func awsAwsjson11_serializeDocumentKernelSpecs(v []*types.KernelSpec, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentKernelSpecs(v []types.KernelSpec, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentKernelSpec(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentKernelSpec(&v[i], av); err != nil { return err } } @@ -9259,17 +9127,13 @@ func awsAwsjson11_serializeDocumentLabelingJobStoppingConditions(v *types.Labeli return nil } -func awsAwsjson11_serializeDocumentListTrialComponentKey256(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentListTrialComponentKey256(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -9295,17 +9159,13 @@ func awsAwsjson11_serializeDocumentMemberDefinition(v *types.MemberDefinition, v return nil } -func awsAwsjson11_serializeDocumentMemberDefinitions(v []*types.MemberDefinition, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMemberDefinitions(v []types.MemberDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMemberDefinition(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMemberDefinition(&v[i], av); err != nil { return err } } @@ -9329,17 +9189,13 @@ func awsAwsjson11_serializeDocumentMetricDefinition(v *types.MetricDefinition, v return nil } -func awsAwsjson11_serializeDocumentMetricDefinitionList(v []*types.MetricDefinition, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMetricDefinitionList(v []types.MetricDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMetricDefinition(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMetricDefinition(&v[i], av); err != nil { return err } } @@ -9395,17 +9251,13 @@ func awsAwsjson11_serializeDocumentModelPackageContainerDefinition(v *types.Mode return nil } -func awsAwsjson11_serializeDocumentModelPackageContainerDefinitionList(v []*types.ModelPackageContainerDefinition, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentModelPackageContainerDefinitionList(v []types.ModelPackageContainerDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentModelPackageContainerDefinition(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentModelPackageContainerDefinition(&v[i], av); err != nil { return err } } @@ -9431,17 +9283,13 @@ func awsAwsjson11_serializeDocumentModelPackageValidationProfile(v *types.ModelP return nil } -func awsAwsjson11_serializeDocumentModelPackageValidationProfiles(v []*types.ModelPackageValidationProfile, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentModelPackageValidationProfiles(v []types.ModelPackageValidationProfile, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentModelPackageValidationProfile(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentModelPackageValidationProfile(&v[i], av); err != nil { return err } } @@ -9563,32 +9411,24 @@ func awsAwsjson11_serializeDocumentMonitoringConstraintsResource(v *types.Monito return nil } -func awsAwsjson11_serializeDocumentMonitoringContainerArguments(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMonitoringContainerArguments(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentMonitoringEnvironmentMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMonitoringEnvironmentMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -9607,17 +9447,13 @@ func awsAwsjson11_serializeDocumentMonitoringInput(v *types.MonitoringInput, val return nil } -func awsAwsjson11_serializeDocumentMonitoringInputs(v []*types.MonitoringInput, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMonitoringInputs(v []types.MonitoringInput, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMonitoringInput(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMonitoringInput(&v[i], av); err != nil { return err } } @@ -9725,17 +9561,13 @@ func awsAwsjson11_serializeDocumentMonitoringOutputConfig(v *types.MonitoringOut return nil } -func awsAwsjson11_serializeDocumentMonitoringOutputs(v []*types.MonitoringOutput, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMonitoringOutputs(v []types.MonitoringOutput, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMonitoringOutput(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMonitoringOutput(&v[i], av); err != nil { return err } } @@ -9815,9 +9647,9 @@ func awsAwsjson11_serializeDocumentMonitoringStoppingCondition(v *types.Monitori object := value.Object() defer object.Close() - if v.MaxRuntimeInSeconds != nil { + if v.MaxRuntimeInSeconds != 0 { ok := object.Key("MaxRuntimeInSeconds") - ok.Integer(*v.MaxRuntimeInSeconds) + ok.Integer(v.MaxRuntimeInSeconds) } return nil @@ -9842,17 +9674,13 @@ func awsAwsjson11_serializeDocumentNestedFilters(v *types.NestedFilters, value s return nil } -func awsAwsjson11_serializeDocumentNestedFiltersList(v []*types.NestedFilters, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNestedFiltersList(v []types.NestedFilters, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentNestedFilters(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentNestedFilters(&v[i], av); err != nil { return err } } @@ -9863,14 +9691,14 @@ func awsAwsjson11_serializeDocumentNetworkConfig(v *types.NetworkConfig, value s object := value.Object() defer object.Close() - if v.EnableInterContainerTrafficEncryption != nil { + if v.EnableInterContainerTrafficEncryption { ok := object.Key("EnableInterContainerTrafficEncryption") - ok.Boolean(*v.EnableInterContainerTrafficEncryption) + ok.Boolean(v.EnableInterContainerTrafficEncryption) } - if v.EnableNetworkIsolation != nil { + if v.EnableNetworkIsolation { ok := object.Key("EnableNetworkIsolation") - ok.Boolean(*v.EnableNetworkIsolation) + ok.Boolean(v.EnableNetworkIsolation) } if v.VpcConfig != nil { @@ -9894,17 +9722,13 @@ func awsAwsjson11_serializeDocumentNotebookInstanceAcceleratorTypes(v []types.No return nil } -func awsAwsjson11_serializeDocumentNotebookInstanceLifecycleConfigList(v []*types.NotebookInstanceLifecycleHook, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNotebookInstanceLifecycleConfigList(v []types.NotebookInstanceLifecycleHook, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentNotebookInstanceLifecycleHook(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentNotebookInstanceLifecycleHook(&v[i], av); err != nil { return err } } @@ -10098,17 +9922,13 @@ func awsAwsjson11_serializeDocumentParameterRanges(v *types.ParameterRanges, val return nil } -func awsAwsjson11_serializeDocumentParameterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParameterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -10125,17 +9945,13 @@ func awsAwsjson11_serializeDocumentParentHyperParameterTuningJob(v *types.Parent return nil } -func awsAwsjson11_serializeDocumentParentHyperParameterTuningJobs(v []*types.ParentHyperParameterTuningJob, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParentHyperParameterTuningJobs(v []types.ParentHyperParameterTuningJob, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentParentHyperParameterTuningJob(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentParentHyperParameterTuningJob(&v[i], av); err != nil { return err } } @@ -10169,17 +9985,13 @@ func awsAwsjson11_serializeDocumentProcessingClusterConfig(v *types.ProcessingCl return nil } -func awsAwsjson11_serializeDocumentProcessingEnvironmentMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProcessingEnvironmentMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -10203,17 +10015,13 @@ func awsAwsjson11_serializeDocumentProcessingInput(v *types.ProcessingInput, val return nil } -func awsAwsjson11_serializeDocumentProcessingInputs(v []*types.ProcessingInput, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProcessingInputs(v []types.ProcessingInput, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentProcessingInput(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentProcessingInput(&v[i], av); err != nil { return err } } @@ -10258,17 +10066,13 @@ func awsAwsjson11_serializeDocumentProcessingOutputConfig(v *types.ProcessingOut return nil } -func awsAwsjson11_serializeDocumentProcessingOutputs(v []*types.ProcessingOutput, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProcessingOutputs(v []types.ProcessingOutput, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentProcessingOutput(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentProcessingOutput(&v[i], av); err != nil { return err } } @@ -10352,9 +10156,9 @@ func awsAwsjson11_serializeDocumentProcessingStoppingCondition(v *types.Processi object := value.Object() defer object.Close() - if v.MaxRuntimeInSeconds != nil { + if v.MaxRuntimeInSeconds != 0 { ok := object.Key("MaxRuntimeInSeconds") - ok.Integer(*v.MaxRuntimeInSeconds) + ok.Integer(v.MaxRuntimeInSeconds) } return nil @@ -10397,17 +10201,13 @@ func awsAwsjson11_serializeDocumentProductionVariant(v *types.ProductionVariant, return nil } -func awsAwsjson11_serializeDocumentProductionVariantList(v []*types.ProductionVariant, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProductionVariantList(v []types.ProductionVariant, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentProductionVariant(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentProductionVariant(&v[i], av); err != nil { return err } } @@ -10467,9 +10267,9 @@ func awsAwsjson11_serializeDocumentResourceConfig(v *types.ResourceConfig, value object := value.Object() defer object.Close() - if v.InstanceCount != nil { + if v.InstanceCount != 0 { ok := object.Key("InstanceCount") - ok.Integer(*v.InstanceCount) + ok.Integer(v.InstanceCount) } if len(v.InstanceType) > 0 { @@ -10482,9 +10282,9 @@ func awsAwsjson11_serializeDocumentResourceConfig(v *types.ResourceConfig, value ok.String(*v.VolumeKmsKeyId) } - if v.VolumeSizeInGB != nil { + if v.VolumeSizeInGB != 0 { ok := object.Key("VolumeSizeInGB") - ok.Integer(*v.VolumeSizeInGB) + ok.Integer(v.VolumeSizeInGB) } return nil @@ -10494,14 +10294,14 @@ func awsAwsjson11_serializeDocumentResourceLimits(v *types.ResourceLimits, value object := value.Object() defer object.Close() - if v.MaxNumberOfTrainingJobs != nil { + if v.MaxNumberOfTrainingJobs != 0 { ok := object.Key("MaxNumberOfTrainingJobs") - ok.Integer(*v.MaxNumberOfTrainingJobs) + ok.Integer(v.MaxNumberOfTrainingJobs) } - if v.MaxParallelTrainingJobs != nil { + if v.MaxParallelTrainingJobs != 0 { ok := object.Key("MaxParallelTrainingJobs") - ok.Integer(*v.MaxParallelTrainingJobs) + ok.Integer(v.MaxParallelTrainingJobs) } return nil @@ -10529,17 +10329,13 @@ func awsAwsjson11_serializeDocumentResourceSpec(v *types.ResourceSpec, value smi return nil } -func awsAwsjson11_serializeDocumentResponseMIMETypes(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResponseMIMETypes(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -10556,17 +10352,13 @@ func awsAwsjson11_serializeDocumentRetentionPolicy(v *types.RetentionPolicy, val return nil } -func awsAwsjson11_serializeDocumentRuleParameters(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRuleParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -10645,34 +10437,26 @@ func awsAwsjson11_serializeDocumentSearchExpression(v *types.SearchExpression, v return nil } -func awsAwsjson11_serializeDocumentSearchExpressionList(v []*types.SearchExpression, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSearchExpressionList(v []types.SearchExpression, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSearchExpression(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSearchExpression(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -10703,9 +10487,9 @@ func awsAwsjson11_serializeDocumentShuffleConfig(v *types.ShuffleConfig, value s object := value.Object() defer object.Close() - if v.Seed != nil { + if v.Seed != 0 { ok := object.Key("Seed") - ok.Long(*v.Seed) + ok.Long(v.Seed) } return nil @@ -10728,17 +10512,13 @@ func awsAwsjson11_serializeDocumentSourceAlgorithm(v *types.SourceAlgorithm, val return nil } -func awsAwsjson11_serializeDocumentSourceAlgorithmList(v []*types.SourceAlgorithm, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSourceAlgorithmList(v []types.SourceAlgorithm, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSourceAlgorithm(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSourceAlgorithm(&v[i], av); err != nil { return err } } @@ -10777,9 +10557,9 @@ func awsAwsjson11_serializeDocumentStoppingCondition(v *types.StoppingCondition, object := value.Object() defer object.Close() - if v.MaxRuntimeInSeconds != nil { + if v.MaxRuntimeInSeconds != 0 { ok := object.Key("MaxRuntimeInSeconds") - ok.Integer(*v.MaxRuntimeInSeconds) + ok.Integer(v.MaxRuntimeInSeconds) } if v.MaxWaitTimeInSeconds != nil { @@ -10790,17 +10570,13 @@ func awsAwsjson11_serializeDocumentStoppingCondition(v *types.StoppingCondition, return nil } -func awsAwsjson11_serializeDocumentSubnets(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnets(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -10836,32 +10612,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -10890,17 +10658,13 @@ func awsAwsjson11_serializeDocumentTargetPlatform(v *types.TargetPlatform, value return nil } -func awsAwsjson11_serializeDocumentTaskKeywords(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTaskKeywords(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -11026,9 +10790,9 @@ func awsAwsjson11_serializeDocumentTrainingSpecification(v *types.TrainingSpecif } } - if v.SupportsDistributedTraining != nil { + if v.SupportsDistributedTraining { ok := object.Key("SupportsDistributedTraining") - ok.Boolean(*v.SupportsDistributedTraining) + ok.Boolean(v.SupportsDistributedTraining) } if v.TrainingChannels != nil { @@ -11065,17 +10829,13 @@ func awsAwsjson11_serializeDocumentTransformDataSource(v *types.TransformDataSou return nil } -func awsAwsjson11_serializeDocumentTransformEnvironmentMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTransformEnvironmentMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -11253,34 +11013,28 @@ func awsAwsjson11_serializeDocumentTrialComponentArtifact(v *types.TrialComponen return nil } -func awsAwsjson11_serializeDocumentTrialComponentArtifacts(v map[string]*types.TrialComponentArtifact, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTrialComponentArtifacts(v map[string]types.TrialComponentArtifact, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTrialComponentArtifact(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson11_serializeDocumentTrialComponentArtifact(&mapVar, om); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTrialComponentParameters(v map[string]*types.TrialComponentParameterValue, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTrialComponentParameters(v map[string]types.TrialComponentParameterValue, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTrialComponentParameterValue(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson11_serializeDocumentTrialComponentParameterValue(&mapVar, om); err != nil { return err } } @@ -11366,19 +11120,19 @@ func awsAwsjson11_serializeDocumentUSD(v *types.USD, value smithyjson.Value) err object := value.Object() defer object.Close() - if v.Cents != nil { + if v.Cents != 0 { ok := object.Key("Cents") - ok.Integer(*v.Cents) + ok.Integer(v.Cents) } - if v.Dollars != nil { + if v.Dollars != 0 { ok := object.Key("Dollars") - ok.Integer(*v.Dollars) + ok.Integer(v.Dollars) } - if v.TenthFractionsOfACent != nil { + if v.TenthFractionsOfACent != 0 { ok := object.Key("TenthFractionsOfACent") - ok.Integer(*v.TenthFractionsOfACent) + ok.Integer(v.TenthFractionsOfACent) } return nil @@ -11443,17 +11197,13 @@ func awsAwsjson11_serializeDocumentVariantProperty(v *types.VariantProperty, val return nil } -func awsAwsjson11_serializeDocumentVariantPropertyList(v []*types.VariantProperty, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVariantPropertyList(v []types.VariantProperty, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentVariantProperty(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentVariantProperty(&v[i], av); err != nil { return err } } @@ -11481,17 +11231,13 @@ func awsAwsjson11_serializeDocumentVpcConfig(v *types.VpcConfig, value smithyjso return nil } -func awsAwsjson11_serializeDocumentVpcSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVpcSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -11546,9 +11292,9 @@ func awsAwsjson11_serializeOpDocumentCreateAlgorithmInput(v *CreateAlgorithmInpu ok.String(*v.AlgorithmName) } - if v.CertifyForMarketplace != nil { + if v.CertifyForMarketplace { ok := object.Key("CertifyForMarketplace") - ok.Boolean(*v.CertifyForMarketplace) + ok.Boolean(v.CertifyForMarketplace) } if v.InferenceSpecification != nil { @@ -11665,9 +11411,9 @@ func awsAwsjson11_serializeOpDocumentCreateAutoMLJobInput(v *CreateAutoMLJobInpu } } - if v.GenerateCandidateDefinitionsOnly != nil { + if v.GenerateCandidateDefinitionsOnly { ok := object.Key("GenerateCandidateDefinitionsOnly") - ok.Boolean(*v.GenerateCandidateDefinitionsOnly) + ok.Boolean(v.GenerateCandidateDefinitionsOnly) } if v.InputDataConfig != nil { @@ -12173,9 +11919,9 @@ func awsAwsjson11_serializeOpDocumentCreateModelInput(v *CreateModelInput, value } } - if v.EnableNetworkIsolation != nil { + if v.EnableNetworkIsolation { ok := object.Key("EnableNetworkIsolation") - ok.Boolean(*v.EnableNetworkIsolation) + ok.Boolean(v.EnableNetworkIsolation) } if v.ExecutionRoleArn != nil { @@ -12216,9 +11962,9 @@ func awsAwsjson11_serializeOpDocumentCreateModelPackageInput(v *CreateModelPacka object := value.Object() defer object.Close() - if v.CertifyForMarketplace != nil { + if v.CertifyForMarketplace { ok := object.Key("CertifyForMarketplace") - ok.Boolean(*v.CertifyForMarketplace) + ok.Boolean(v.CertifyForMarketplace) } if v.InferenceSpecification != nil { @@ -12543,19 +12289,19 @@ func awsAwsjson11_serializeOpDocumentCreateTrainingJobInput(v *CreateTrainingJob } } - if v.EnableInterContainerTrafficEncryption != nil { + if v.EnableInterContainerTrafficEncryption { ok := object.Key("EnableInterContainerTrafficEncryption") - ok.Boolean(*v.EnableInterContainerTrafficEncryption) + ok.Boolean(v.EnableInterContainerTrafficEncryption) } - if v.EnableManagedSpotTraining != nil { + if v.EnableManagedSpotTraining { ok := object.Key("EnableManagedSpotTraining") - ok.Boolean(*v.EnableManagedSpotTraining) + ok.Boolean(v.EnableManagedSpotTraining) } - if v.EnableNetworkIsolation != nil { + if v.EnableNetworkIsolation { ok := object.Key("EnableNetworkIsolation") - ok.Boolean(*v.EnableNetworkIsolation) + ok.Boolean(v.EnableNetworkIsolation) } if v.ExperimentConfig != nil { @@ -13828,9 +13574,9 @@ func awsAwsjson11_serializeOpDocumentListAutoMLJobsInput(v *ListAutoMLJobsInput, ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore)) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NameContains != nil { @@ -13875,9 +13621,9 @@ func awsAwsjson11_serializeOpDocumentListCandidatesForAutoMLJobInput(v *ListCand ok.String(*v.CandidateNameEquals) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -15568,9 +15314,9 @@ func awsAwsjson11_serializeOpDocumentUpdateEndpointInput(v *UpdateEndpointInput, } } - if v.RetainAllVariantProperties != nil { + if v.RetainAllVariantProperties { ok := object.Key("RetainAllVariantProperties") - ok.Boolean(*v.RetainAllVariantProperties) + ok.Boolean(v.RetainAllVariantProperties) } return nil @@ -15693,24 +15439,24 @@ func awsAwsjson11_serializeOpDocumentUpdateNotebookInstanceInput(v *UpdateNotebo ok.String(*v.DefaultCodeRepository) } - if v.DisassociateAcceleratorTypes != nil { + if v.DisassociateAcceleratorTypes { ok := object.Key("DisassociateAcceleratorTypes") - ok.Boolean(*v.DisassociateAcceleratorTypes) + ok.Boolean(v.DisassociateAcceleratorTypes) } - if v.DisassociateAdditionalCodeRepositories != nil { + if v.DisassociateAdditionalCodeRepositories { ok := object.Key("DisassociateAdditionalCodeRepositories") - ok.Boolean(*v.DisassociateAdditionalCodeRepositories) + ok.Boolean(v.DisassociateAdditionalCodeRepositories) } - if v.DisassociateDefaultCodeRepository != nil { + if v.DisassociateDefaultCodeRepository { ok := object.Key("DisassociateDefaultCodeRepository") - ok.Boolean(*v.DisassociateDefaultCodeRepository) + ok.Boolean(v.DisassociateDefaultCodeRepository) } - if v.DisassociateLifecycleConfig != nil { + if v.DisassociateLifecycleConfig { ok := object.Key("DisassociateLifecycleConfig") - ok.Boolean(*v.DisassociateLifecycleConfig) + ok.Boolean(v.DisassociateLifecycleConfig) } if len(v.InstanceType) > 0 { diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index 6ca46219eef..fbd8c3ea483 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -59,12 +59,12 @@ type AlgorithmSpecification struct { // 1.3) // // * You specify at least one MetricDefinition - EnableSageMakerMetricsTimeSeries *bool + EnableSageMakerMetricsTimeSeries bool // A list of metric definition objects. Each object specifies the metric name and // regular expressions used to parse algorithm logs. Amazon SageMaker publishes // each metric to Amazon CloudWatch. - MetricDefinitions []*MetricDefinition + MetricDefinitions []MetricDefinition // The registry path of the Docker image that contains the training algorithm. For // information about docker registry paths for built-in algorithms, see Algorithms @@ -81,10 +81,10 @@ type AlgorithmSpecification struct { type AlgorithmStatusDetails struct { // The status of the scan of the algorithm's Docker image container. - ImageScanStatuses []*AlgorithmStatusItem + ImageScanStatuses []AlgorithmStatusItem // The status of algorithm validation. - ValidationStatuses []*AlgorithmStatusItem + ValidationStatuses []AlgorithmStatusItem } // Represents the overall status of an algorithm. @@ -162,7 +162,7 @@ type AlgorithmValidationSpecification struct { // algorithm. // // This member is required. - ValidationProfiles []*AlgorithmValidationProfile + ValidationProfiles []AlgorithmValidationProfile // The IAM roles that Amazon SageMaker uses to run the training jobs. // @@ -424,10 +424,10 @@ type AppSpecification struct { ImageUri *string // The arguments for a container used to run a processing job. - ContainerArguments []*string + ContainerArguments []string // The entrypoint for a container used to run a processing job. - ContainerEntrypoint []*string + ContainerEntrypoint []string } // An Autopilot job returns recommendations, or candidates. Each candidate has @@ -447,7 +447,7 @@ type AutoMLCandidate struct { // The candidate's steps. // // This member is required. - CandidateSteps []*AutoMLCandidateStep + CandidateSteps []AutoMLCandidateStep // The creation time. // @@ -474,7 +474,7 @@ type AutoMLCandidate struct { FinalAutoMLJobObjectiveMetric *FinalAutoMLJobObjectiveMetric // The inference containers. - InferenceContainers []*AutoMLContainerDefinition + InferenceContainers []AutoMLContainerDefinition } // Information about the steps for a Candidate, and what step it is working on. @@ -531,7 +531,7 @@ type AutoMLContainerDefinition struct { // Environment variables to set in the container. Refer to ContainerDefinition for // more details. - Environment map[string]*string + Environment map[string]string } // The data source for the Autopilot job. @@ -725,7 +725,7 @@ type AutoMLS3DataSource struct { type AutoMLSecurityConfig struct { // Whether to use traffic encryption between the container layers. - EnableInterContainerTrafficEncryption *bool + EnableInterContainerTrafficEncryption bool // The key used to encrypt stored data. VolumeKmsKeyId *string @@ -738,10 +738,10 @@ type AutoMLSecurityConfig struct { type CaptureContentTypeHeader struct { // - CsvContentTypes []*string + CsvContentTypes []string // - JsonContentTypes []*string + JsonContentTypes []string } // @@ -764,7 +764,7 @@ type CategoricalParameterRange struct { // A list of the categories for the hyperparameter. // // This member is required. - Values []*string + Values []string } // Defines the possible values for a categorical hyperparameter. @@ -773,7 +773,7 @@ type CategoricalParameterRangeSpecification struct { // The allowed categories for the hyperparameter. // // This member is required. - Values []*string + Values []string } // A channel is a named input source that training algorithms can consume. @@ -843,7 +843,7 @@ type ChannelSpecification struct { // The supported MIME types for the data. // // This member is required. - SupportedContentTypes []*string + SupportedContentTypes []string // The allowed input mode, either FILE or PIPE. In FILE mode, Amazon SageMaker // copies the data from the input source onto the local Amazon Elastic Block Store @@ -858,7 +858,7 @@ type ChannelSpecification struct { Description *string // Indicates whether the channel is required by the algorithm. - IsRequired *bool + IsRequired bool // The allowed compression types, if data compression is used. SupportedCompressionTypes []CompressionType @@ -961,7 +961,7 @@ type CollectionConfiguration struct { // Parameter values for the tensor collection. The allowed parameters are "name", // "include_regex", "reduction_config", "save_config", "tensor_names", and // "save_histogram". - CollectionParameters map[string]*string + CollectionParameters map[string]string } // A summary of a model compilation job. @@ -1033,7 +1033,7 @@ type ContainerDefinition struct { // The environment variables to set in the Docker container. Each key and value in // the Environment string to string map can have length of up to 1024. We support // up to 16 entries in the map. - Environment map[string]*string + Environment map[string]string // The path where inference code is stored. This can be either in Amazon EC2 // Container Registry or in a Docker registry that is accessible from the same VPC @@ -1152,7 +1152,7 @@ type DataCaptureConfig struct { // // // This member is required. - CaptureOptions []*CaptureOption + CaptureOptions []CaptureOption // // @@ -1168,7 +1168,7 @@ type DataCaptureConfig struct { CaptureContentTypeHeader *CaptureContentTypeHeader // - EnableCapture *bool + EnableCapture bool // KmsKeyId *string @@ -1195,7 +1195,7 @@ type DataCaptureConfigSummary struct { // // // This member is required. - EnableCapture *bool + EnableCapture bool // // @@ -1266,10 +1266,10 @@ type DebugHookConfig struct { S3OutputPath *string // Configuration information for tensor collections. - CollectionConfigurations []*CollectionConfiguration + CollectionConfigurations []CollectionConfiguration // Configuration information for the debug hook parameters. - HookParameters map[string]*string + HookParameters map[string]string // Path to local storage location for tensors. Defaults to /opt/ml/output/tensors/. LocalPath *string @@ -1297,13 +1297,13 @@ type DebugRuleConfiguration struct { LocalPath *string // Runtime configuration for rule container. - RuleParameters map[string]*string + RuleParameters map[string]string // Path to Amazon S3 storage location for rules. S3OutputPath *string // The size, in GB, of the ML storage volume attached to the processing instance. - VolumeSizeInGB *int32 + VolumeSizeInGB int32 } // Information about the status of the rule evaluation. @@ -1529,7 +1529,7 @@ type Experiment struct { // The list of tags that are associated with the experiment. You can use Search API // to search on the tags. - Tags []*Tag + Tags []Tag } // Associates a SageMaker job as a trial component with an experiment and trial. @@ -1595,10 +1595,10 @@ type ExperimentSummary struct { type FileSystemConfig struct { // The default POSIX group ID. If not specified, defaults to 100. - DefaultGid *int32 + DefaultGid int32 // The default POSIX user ID. If not specified, defaults to 1000. - DefaultUid *int32 + DefaultUid int32 // The path within the image to mount the user's EFS home directory. The directory // should be empty. If not specified, defaults to /home/sagemaker-user. @@ -1734,7 +1734,7 @@ type FinalAutoMLJobObjectiveMetric struct { // The value of the metric with the best result. // // This member is required. - Value *float32 + Value float32 // The type of metric with the best result. Type AutoMLJobObjectiveType @@ -1753,7 +1753,7 @@ type FinalHyperParameterTuningJobObjectiveMetric struct { // The value of the objective metric. // // This member is required. - Value *float32 + Value float32 // Whether to minimize or maximize the objective metric. Valid values are Minimize // and Maximize. @@ -2113,7 +2113,7 @@ type HumanLoopConfig struct { TaskAvailabilityLifetimeInSeconds *int32 // Keywords used to describe the task so that workers can discover the task. - TaskKeywords []*string + TaskKeywords []string // The amount of time that a worker has to complete a task. The default value is // 3,600 seconds (1 hour) @@ -3104,7 +3104,7 @@ type HumanTaskConfig struct { // Keywords used to describe the task so that workers on Amazon Mechanical Turk can // discover the task. - TaskKeywords []*string + TaskKeywords []string } // Container for human task user interface information. @@ -3151,7 +3151,7 @@ type HyperParameterAlgorithmSpecification struct { // An array of MetricDefinition objects that specify the metrics that the algorithm // emits. - MetricDefinitions []*MetricDefinition + MetricDefinitions []MetricDefinition // The registry path of the Docker image that contains the training algorithm. For // information about Docker registry paths for built-in algorithms, see Algorithms @@ -3186,10 +3186,10 @@ type HyperParameterSpecification struct { Description *string // Indicates whether this hyperparameter is required. - IsRequired *bool + IsRequired bool // Indicates whether this hyperparameter is tunable in a hyperparameter tuning job. - IsTunable *bool + IsTunable bool // The allowed range for this hyperparameter. Range *ParameterRange @@ -3247,11 +3247,11 @@ type HyperParameterTrainingJobDefinition struct { // training, but training might take longer. How long it takes depends on the // amount of communication between compute instances, especially if you use a deep // learning algorithm in distributed training. - EnableInterContainerTrafficEncryption *bool + EnableInterContainerTrafficEncryption bool // A Boolean indicating whether managed spot training is enabled (True) or not // (False). - EnableManagedSpotTraining *bool + EnableManagedSpotTraining bool // Isolates the training container. No inbound or outbound network calls can be // made, except for calls between peers within a training cluster for distributed @@ -3259,7 +3259,7 @@ type HyperParameterTrainingJobDefinition struct { // use a VPC, Amazon SageMaker downloads and uploads customer data and model // artifacts through the specified VPC, but the training container does not have // network access. - EnableNetworkIsolation *bool + EnableNetworkIsolation bool // Specifies ranges of integer, continuous, and categorical hyperparameters that a // hyperparameter tuning job searches. The hyperparameter tuning job launches @@ -3273,10 +3273,10 @@ type HyperParameterTrainingJobDefinition struct { // An array of Channel objects that specify the input for the training jobs that // the tuning job launches. - InputDataConfig []*Channel + InputDataConfig []Channel // Specifies the values of hyperparameters that do not change for the tuning job. - StaticHyperParameters map[string]*string + StaticHyperParameters map[string]string // Defines the objective metric for a hyperparameter tuning job. Hyperparameter // tuning uses the value of this metric to evaluate the training jobs it launches, @@ -3318,7 +3318,7 @@ type HyperParameterTrainingJobSummary struct { // A list of the hyperparameters for which you specified ranges to search. // // This member is required. - TunedHyperParameters map[string]*string + TunedHyperParameters map[string]string // The reason that the training job failed. FailureReason *string @@ -3491,7 +3491,7 @@ type HyperParameterTuningJobWarmStartConfig struct { // parent jobs for warm start tuning jobs. // // This member is required. - ParentHyperParameterTuningJobs []*ParentHyperParameterTuningJob + ParentHyperParameterTuningJobs []ParentHyperParameterTuningJob // Specifies one of the following: IDENTICAL_DATA_AND_ALGORITHM The new // hyperparameter tuning job uses the same input data and training image as the @@ -3618,12 +3618,12 @@ type InferenceSpecification struct { // code. // // This member is required. - Containers []*ModelPackageContainerDefinition + Containers []ModelPackageContainerDefinition // The supported MIME types for the input data. // // This member is required. - SupportedContentTypes []*string + SupportedContentTypes []string // A list of the instance types that are used to generate inferences in real-time. // @@ -3633,7 +3633,7 @@ type InferenceSpecification struct { // The supported MIME types for the output data. // // This member is required. - SupportedResponseMIMETypes []*string + SupportedResponseMIMETypes []string // A list of the instance types on which a transformation job can be run or on // which an endpoint can be deployed. @@ -3889,7 +3889,7 @@ type JupyterServerAppSettings struct { type KernelGatewayAppSettings struct { // A list of custom images that are configured to run as a KernelGateway app. - CustomImages []*CustomImage + CustomImages []CustomImage // The default instance type and the Amazon Resource Name (ARN) of the default // SageMaker image used by the KernelGateway app. @@ -3903,7 +3903,7 @@ type KernelGatewayImageConfig struct { // metadata that are available to the kernel. // // This member is required. - KernelSpecs []*KernelSpec + KernelSpecs []KernelSpec // The file system configuration. FileSystemConfig *FileSystemConfig @@ -3926,32 +3926,32 @@ type KernelSpec struct { type LabelCounters struct { // The total number of objects that could not be labeled due to an error. - FailedNonRetryableError *int32 + FailedNonRetryableError int32 // The total number of objects labeled by a human worker. - HumanLabeled *int32 + HumanLabeled int32 // The total number of objects labeled by automated data labeling. - MachineLabeled *int32 + MachineLabeled int32 // The total number of objects labeled. - TotalLabeled *int32 + TotalLabeled int32 // The total number of objects not yet labeled. - Unlabeled *int32 + Unlabeled int32 } // Provides counts for human-labeled tasks in the labeling job. type LabelCountersForWorkteam struct { // The total number of data objects labeled by a human worker. - HumanLabeled *int32 + HumanLabeled int32 // The total number of data objects that need to be labeled by a human worker. - PendingHuman *int32 + PendingHuman int32 // The total number of tasks in the labeling job. - Total *int32 + Total int32 } // Provides configuration information for auto-labeling of your data objects. A @@ -4242,7 +4242,7 @@ type MetricData struct { Timestamp *time.Time // The value of the metric. - Value *float32 + Value float32 } // Specifies a metric that the training algorithm writes to stderr or stdout . @@ -4326,10 +4326,10 @@ type ModelPackageStatusDetails struct { // The validation status of the model package. // // This member is required. - ValidationStatuses []*ModelPackageStatusItem + ValidationStatuses []ModelPackageStatusItem // The status of the scan of the Docker image container for the model package. - ImageScanStatuses []*ModelPackageStatusItem + ImageScanStatuses []ModelPackageStatusItem } // Represents the overall status of a model package. @@ -4401,7 +4401,7 @@ type ModelPackageValidationSpecification struct { // batch transform job that Amazon SageMaker runs to validate your model package. // // This member is required. - ValidationProfiles []*ModelPackageValidationProfile + ValidationProfiles []ModelPackageValidationProfile // The IAM roles to be used for the validation of the model package. // @@ -4437,10 +4437,10 @@ type MonitoringAppSpecification struct { ImageUri *string // An array of arguments for the container used to run the monitoring job. - ContainerArguments []*string + ContainerArguments []string // Specifies the entrypoint for a container used to run the monitoring job. - ContainerEntrypoint []*string + ContainerEntrypoint []string // An Amazon S3 URI to a script that is called after analysis has been performed. // Applicable only for the built-in (first party) containers. @@ -4560,7 +4560,7 @@ type MonitoringJobDefinition struct { // Amazon SageMaker Endpoint. // // This member is required. - MonitoringInputs []*MonitoringInput + MonitoringInputs []MonitoringInput // The array of outputs from the monitoring job to be uploaded to Amazon Simple // Storage Service (Amazon S3). @@ -4586,7 +4586,7 @@ type MonitoringJobDefinition struct { BaselineConfig *MonitoringBaselineConfig // Sets the environment variables in the Docker container. - Environment map[string]*string + Environment map[string]string // Specifies networking options for an monitoring job. NetworkConfig *NetworkConfig @@ -4611,7 +4611,7 @@ type MonitoringOutputConfig struct { // monitoring jobs is uploaded. // // This member is required. - MonitoringOutputs []*MonitoringOutput + MonitoringOutputs []MonitoringOutput // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to // encrypt the model artifacts at rest using Amazon S3 server-side encryption. @@ -4706,7 +4706,7 @@ type MonitoringStoppingCondition struct { // The maximum runtime allowed in seconds. // // This member is required. - MaxRuntimeInSeconds *int32 + MaxRuntimeInSeconds int32 } // A list of nested Filter objects. A resource must satisfy the conditions of all @@ -4728,7 +4728,7 @@ type NestedFilters struct { // InputDataConfig.DataSource.S3DataSource.S3Uri. // // This member is required. - Filters []*Filter + Filters []Filter // The name of the property to use in the nested filters. The value must match a // listed property name, such as InputDataConfig. @@ -4745,11 +4745,11 @@ type NetworkConfig struct { // Whether to encrypt all communications between distributed processing jobs. // Choose True to encrypt communications. Encryption provides greater security for // distributed processing jobs, but the processing might take longer. - EnableInterContainerTrafficEncryption *bool + EnableInterContainerTrafficEncryption bool // Whether to allow inbound and outbound network calls to and from the containers // used for the processing job. - EnableNetworkIsolation *bool + EnableNetworkIsolation bool // Specifies a VPC that your training jobs and hosted models have access to. // Control access to and from your training and model containers by configuring the @@ -4819,7 +4819,7 @@ type NotebookInstanceSummary struct { // default repository of your notebook instance. For more information, see // Associating Git Repositories with Amazon SageMaker Notebook Instances // (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). - AdditionalCodeRepositories []*string + AdditionalCodeRepositories []string // A timestamp that shows when the notebook instance was created. CreationTime *time.Time @@ -4870,15 +4870,15 @@ type ObjectiveStatusCounters struct { // The number of training jobs whose final objective metric was not evaluated and // used in the hyperparameter tuning process. This typically occurs when the // training job failed or did not emit an objective metric. - Failed *int32 + Failed int32 // The number of training jobs that are in progress and pending evaluation of their // final objective metric. - Pending *int32 + Pending int32 // The number of training jobs whose final objective metric was evaluated by the // hyperparameter tuning job and used in the hyperparameter tuning process. - Succeeded *int32 + Succeeded int32 } // Use this parameter to configure your OIDC Identity Provider (IdP). @@ -4963,7 +4963,7 @@ type OidcMemberDefinition struct { // Each user group is made up of a group of private workers. // // This member is required. - Groups []*string + Groups []string } // Contains information about the output location for the compiled model and the @@ -5154,15 +5154,15 @@ type ParameterRanges struct { // The array of CategoricalParameterRange objects that specify ranges of // categorical hyperparameters that a hyperparameter tuning job searches. - CategoricalParameterRanges []*CategoricalParameterRange + CategoricalParameterRanges []CategoricalParameterRange // The array of ContinuousParameterRange objects that specify ranges of continuous // hyperparameters that a hyperparameter tuning job searches. - ContinuousParameterRanges []*ContinuousParameterRange + ContinuousParameterRanges []ContinuousParameterRange // The array of IntegerParameterRange objects that specify ranges of integer // hyperparameters that a hyperparameter tuning job searches. - IntegerParameterRanges []*IntegerParameterRange + IntegerParameterRanges []IntegerParameterRange } // The trial that a trial component is associated with and the experiment the trial @@ -5242,7 +5242,7 @@ type ProcessingJob struct { CreationTime *time.Time // Sets the environment variables in the Docker container. - Environment map[string]*string + Environment map[string]string // A string, up to one KB in size, that contains metadata from the processing // container when the processing job exits. @@ -5280,7 +5280,7 @@ type ProcessingJob struct { // For each input, data is downloaded from S3 into the processing container before // the processing job begins running if "S3InputMode" is set to File. - ProcessingInputs []*ProcessingInput + ProcessingInputs []ProcessingInput // The ARN of the processing job. ProcessingJobArn *string @@ -5312,7 +5312,7 @@ type ProcessingJob struct { // Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL) // in the AWS Billing and Cost Management User Guide. - Tags []*Tag + Tags []Tag // The ARN of the training job associated with this processing job. TrainingJobArn *string @@ -5376,7 +5376,7 @@ type ProcessingOutputConfig struct { // Output configuration information for a processing job. // // This member is required. - Outputs []*ProcessingOutput + Outputs []ProcessingOutput // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to // encrypt the processing job output. KmsKeyId can be an ID of a KMS key, ARN of a @@ -5469,7 +5469,7 @@ type ProcessingStoppingCondition struct { // Specifies the maximum runtime in seconds. // // This member is required. - MaxRuntimeInSeconds *int32 + MaxRuntimeInSeconds int32 } // Identifies a model that you want to host and the resources to deploy for hosting @@ -5530,7 +5530,7 @@ type ProductionVariantSummary struct { // An array of DeployedImage objects that specify the Amazon EC2 Container Registry // paths of the inference images deployed on instances of this ProductionVariant. - DeployedImages []*DeployedImage + DeployedImages []DeployedImage // The number of instances requested in the UpdateEndpointWeightsAndCapacities // request. @@ -5832,7 +5832,7 @@ type ResourceConfig struct { // value greater than 1. // // This member is required. - InstanceCount *int32 + InstanceCount int32 // The ML compute instance type. // @@ -5854,7 +5854,7 @@ type ResourceConfig struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#instance-store-volumes). // // This member is required. - VolumeSizeInGB *int32 + VolumeSizeInGB int32 // The AWS KMS key that Amazon SageMaker uses to encrypt data on the storage volume // attached to the ML compute instance(s) that run the training job. Certain @@ -5885,13 +5885,13 @@ type ResourceLimits struct { // The maximum number of training jobs that a hyperparameter tuning job can launch. // // This member is required. - MaxNumberOfTrainingJobs *int32 + MaxNumberOfTrainingJobs int32 // The maximum number of concurrent training jobs that a hyperparameter tuning job // can launch. // // This member is required. - MaxParallelTrainingJobs *int32 + MaxParallelTrainingJobs int32 } // Specifies the ARN's of a SageMaker image and SageMaker image version, and the @@ -5958,7 +5958,7 @@ type S3DataSource struct { // A list of one or more attribute names to use that are found in a specified // augmented manifest file. - AttributeNames []*string + AttributeNames []string // If you want Amazon SageMaker to replicate the entire dataset on each ML compute // instance that is launched for model training, specify FullyReplicated. If you @@ -6042,10 +6042,10 @@ type ScheduleConfig struct { type SearchExpression struct { // A list of filter objects. - Filters []*Filter + Filters []Filter // A list of nested filter objects. - NestedFilters []*NestedFilters + NestedFilters []NestedFilters // A Boolean operator used to evaluate the search expression. If you want every // conditional statement in all lists to be satisfied for the entire search @@ -6055,7 +6055,7 @@ type SearchExpression struct { Operator BooleanOperator // A list of search expression objects. - SubExpressions []*SearchExpression + SubExpressions []SearchExpression } // A single resource returned as part of the Search API response. @@ -6224,7 +6224,7 @@ type ShuffleConfig struct { // Determines the shuffling order in ShuffleConfig value. // // This member is required. - Seed *int64 + Seed int64 } // Specifies an algorithm that was used to create the model package. The algorithm @@ -6252,7 +6252,7 @@ type SourceAlgorithmSpecification struct { // A list of the algorithms that were used to create a model package. // // This member is required. - SourceAlgorithms []*SourceAlgorithm + SourceAlgorithms []SourceAlgorithm } // A list of IP address ranges (CIDRs @@ -6268,7 +6268,7 @@ type SourceIpConfig struct { // individual CIDR values in the CIDR value list. // // This member is required. - Cidrs []*string + Cidrs []string } // Specifies a limit to how long a model training or compilation job can run. It @@ -6292,7 +6292,7 @@ type StoppingCondition struct { // The maximum length of time, in seconds, that the training or compilation job can // run. If job does not complete during this time, Amazon SageMaker ends the job. // If value is not specified, default value is 1 day. The maximum value is 28 days. - MaxRuntimeInSeconds *int32 + MaxRuntimeInSeconds int32 // The maximum length of time, in seconds, how long you are willing to wait for a // managed spot training job to complete. It is the amount of time spent waiting @@ -6438,28 +6438,28 @@ type TrainingJob struct { DebugHookConfig *DebugHookConfig // Information about the debug rule configuration. - DebugRuleConfigurations []*DebugRuleConfiguration + DebugRuleConfigurations []DebugRuleConfiguration // Information about the evaluation status of the rules for the training job. - DebugRuleEvaluationStatuses []*DebugRuleEvaluationStatus + DebugRuleEvaluationStatuses []DebugRuleEvaluationStatus // To encrypt all communications between ML compute instances in distributed // training, choose True. Encryption provides greater security for distributed // training, but training might take longer. How long it takes depends on the // amount of communication between compute instances, especially if you use a deep // learning algorithm in distributed training. - EnableInterContainerTrafficEncryption *bool + EnableInterContainerTrafficEncryption bool // When true, enables managed spot training using Amazon EC2 Spot instances to run // training jobs instead of on-demand instances. For more information, see Managed // Spot Training // (https://docs.aws.amazon.com/sagemaker/latest/dg/model-managed-spot-training.html). - EnableManagedSpotTraining *bool + EnableManagedSpotTraining bool // If the TrainingJob was created with network isolation, the value is set to true. // If network isolation is enabled, nodes can't communicate beyond the VPC they run // in. - EnableNetworkIsolation *bool + EnableNetworkIsolation bool // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: @@ -6477,13 +6477,13 @@ type TrainingJob struct { // A list of final metric values that are set when the training job completes. Used // only if the training job was configured to use metrics. - FinalMetricDataList []*MetricData + FinalMetricDataList []MetricData // Algorithm-specific parameters. - HyperParameters map[string]*string + HyperParameters map[string]string // An array of Channel objects that describes each data input channel. - InputDataConfig []*Channel + InputDataConfig []Channel // The Amazon Resource Name (ARN) of the labeling job. LabelingJobArn *string @@ -6562,7 +6562,7 @@ type TrainingJob struct { // A history of all of the secondary statuses that the training job has // transitioned through. - SecondaryStatusTransitions []*SecondaryStatusTransition + SecondaryStatusTransitions []SecondaryStatusTransition // Specifies a limit to how long a model training job can run. When the job reaches // the time limit, Amazon SageMaker ends the training job. Use this API to cap @@ -6576,7 +6576,7 @@ type TrainingJob struct { // Tags // (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) // in the AWS Billing and Cost Management User Guide. - Tags []*Tag + Tags []Tag // Configuration of storage locations for TensorBoard output. TensorBoardOutputConfig *TensorBoardOutputConfig @@ -6640,7 +6640,7 @@ type TrainingJobDefinition struct { // An array of Channel objects, each of which specifies an input source. // // This member is required. - InputDataConfig []*Channel + InputDataConfig []Channel // the path to the S3 bucket where you want to store model artifacts. Amazon // SageMaker creates subfolders for the artifacts. @@ -6675,7 +6675,7 @@ type TrainingJobDefinition struct { TrainingInputMode TrainingInputMode // The hyperparameters used for the training job. - HyperParameters map[string]*string + HyperParameters map[string]string } // The numbers of training jobs launched by a hyperparameter tuning job, @@ -6683,22 +6683,22 @@ type TrainingJobDefinition struct { type TrainingJobStatusCounters struct { // The number of completed training jobs launched by the hyperparameter tuning job. - Completed *int32 + Completed int32 // The number of in-progress training jobs launched by a hyperparameter tuning job. - InProgress *int32 + InProgress int32 // The number of training jobs that failed and can't be retried. A failed training // job can't be retried if it failed because a client error occurred. - NonRetryableError *int32 + NonRetryableError int32 // The number of training jobs that failed, but can be retried. A failed training // job can be retried only if it failed because an internal service error occurred. - RetryableError *int32 + RetryableError int32 // The number of training jobs launched by a hyperparameter tuning job that were // manually stopped. - Stopped *int32 + Stopped int32 } // Provides summary information about a training job. @@ -6745,7 +6745,7 @@ type TrainingSpecification struct { // used by the algorithm. // // This member is required. - TrainingChannels []*ChannelSpecification + TrainingChannels []ChannelSpecification // The Amazon ECR registry path of the Docker image that contains the training // algorithm. @@ -6755,20 +6755,20 @@ type TrainingSpecification struct { // A list of MetricDefinition objects, which are used for parsing metrics generated // by the algorithm. - MetricDefinitions []*MetricDefinition + MetricDefinitions []MetricDefinition // A list of the HyperParameterSpecification objects, that define the supported // hyperparameters. This is required if the algorithm supports automatic model // tuning.> - SupportedHyperParameters []*HyperParameterSpecification + SupportedHyperParameters []HyperParameterSpecification // A list of the metrics that the algorithm emits that can be used as the objective // metric in a hyperparameter tuning job. - SupportedTuningJobObjectiveMetrics []*HyperParameterTuningJobObjective + SupportedTuningJobObjectiveMetrics []HyperParameterTuningJobObjective // Indicates whether the algorithm supports distributed training. If set to false, // buyers can't request more than one instance during training. - SupportsDistributedTraining *bool + SupportsDistributedTraining bool // An MD5 hash of the training algorithm that identifies the Docker image used for // training. @@ -6864,7 +6864,7 @@ type TransformJob struct { // The environment variables to set in the Docker container. We support up to 16 // key and values entries in the map. - Environment map[string]*string + Environment map[string]string // Associates a SageMaker job as a trial component with an experiment and trial. // Specified when you call the following APIs: @@ -6911,7 +6911,7 @@ type TransformJob struct { ModelName *string // A list of tags associated with the transform job. - Tags []*Tag + Tags []Tag // Indicates when the transform job has been completed, or has stopped or failed. // You are billed for the time interval between this time and the value of @@ -6985,7 +6985,7 @@ type TransformJobDefinition struct { // The environment variables to set in the Docker container. We support up to 16 // key and values entries in the map. - Environment map[string]*string + Environment map[string]string // The maximum number of parallel requests that can be sent to each instance in a // transform job. The default value is 1. @@ -7190,14 +7190,14 @@ type Trial struct { // The list of tags that are associated with the trial. You can use Search API to // search on the tags. - Tags []*Tag + Tags []Tag // The Amazon Resource Name (ARN) of the trial. TrialArn *string // A list of the components associated with the trial. For each component, a // summary of the component's properties is included. - TrialComponentSummaries []*TrialComponentSimpleSummary + TrialComponentSummaries []TrialComponentSimpleSummary // The name of the trial. TrialName *string @@ -7221,7 +7221,7 @@ type TrialComponent struct { EndTime *time.Time // The input artifacts of the component. - InputArtifacts map[string]*TrialComponentArtifact + InputArtifacts map[string]TrialComponentArtifact // Information about the user who created or modified an experiment, trial, or // trial component. @@ -7231,18 +7231,18 @@ type TrialComponent struct { LastModifiedTime *time.Time // The metrics for the component. - Metrics []*TrialComponentMetricSummary + Metrics []TrialComponentMetricSummary // The output artifacts of the component. - OutputArtifacts map[string]*TrialComponentArtifact + OutputArtifacts map[string]TrialComponentArtifact // The hyperparameters of the component. - Parameters map[string]*TrialComponentParameterValue + Parameters map[string]TrialComponentParameterValue // An array of the parents of the component. A parent is a trial the component is // associated with and the experiment the trial is part of. A component might not // have any parents. - Parents []*Parent + Parents []Parent // The Amazon Resource Name (ARN) and job type of the source of the component. Source *TrialComponentSource @@ -7258,7 +7258,7 @@ type TrialComponent struct { // The list of tags that are associated with the component. You can use Search API // to search on the tags. - Tags []*Tag + Tags []Tag // The Amazon Resource Name (ARN) of the trial component. TrialComponentArn *string @@ -7555,13 +7555,13 @@ type UiTemplateInfo struct { type USD struct { // The fractional portion, in cents, of the amount. - Cents *int32 + Cents int32 // The whole number of dollars in the amount. - Dollars *int32 + Dollars int32 // Fractions of a cent, in tenths. - TenthFractionsOfACent *int32 + TenthFractionsOfACent int32 } // Information about the user who created or modified an experiment, trial, or @@ -7613,7 +7613,7 @@ type UserSettings struct { // for communication. Optional when the CreateDomain.AppNetworkAccessType parameter // is set to PublicInternetOnly. Required when the // CreateDomain.AppNetworkAccessType parameter is set to VpcOnly. - SecurityGroups []*string + SecurityGroups []string // The sharing settings. SharingSettings *SharingSettings @@ -7659,7 +7659,7 @@ type VpcConfig struct { // for the VPC that is specified in the Subnets field. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // The ID of the subnets in the VPC to which you want to connect your training job // or model. For information about the availability of specific instance types, see @@ -7667,7 +7667,7 @@ type VpcConfig struct { // (https://docs.aws.amazon.com/sagemaker/latest/dg/instance-types-az.html). // // This member is required. - Subnets []*string + Subnets []string } // A single private workforce, which is automatically created when you create your @@ -7730,7 +7730,7 @@ type Workteam struct { // your own OIDC identity provider (IdP) use OidcMemberDefinition. // // This member is required. - MemberDefinitions []*MemberDefinition + MemberDefinitions []MemberDefinition // The Amazon Resource Name (ARN) that identifies the work team. // @@ -7752,7 +7752,7 @@ type Workteam struct { NotificationConfiguration *NotificationConfiguration // The Amazon Marketplace identifier for a vendor's work team. - ProductListingIds []*string + ProductListingIds []string // The URI of the labeling job's user interface. Workers open this URI to start // labeling your data objects. diff --git a/service/sagemaker/validators.go b/service/sagemaker/validators.go index 86841e6b6e5..065511eb94e 100644 --- a/service/sagemaker/validators.go +++ b/service/sagemaker/validators.go @@ -2961,13 +2961,13 @@ func validateAlgorithmValidationProfile(v *types.AlgorithmValidationProfile) err } } -func validateAlgorithmValidationProfiles(v []*types.AlgorithmValidationProfile) error { +func validateAlgorithmValidationProfiles(v []types.AlgorithmValidationProfile) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AlgorithmValidationProfiles"} for i := range v { - if err := validateAlgorithmValidationProfile(v[i]); err != nil { + if err := validateAlgorithmValidationProfile(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3071,13 +3071,13 @@ func validateAutoMLDataSource(v *types.AutoMLDataSource) error { } } -func validateAutoMLInputDataConfig(v []*types.AutoMLChannel) error { +func validateAutoMLInputDataConfig(v []types.AutoMLChannel) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AutoMLInputDataConfig"} for i := range v { - if err := validateAutoMLChannel(v[i]); err != nil { + if err := validateAutoMLChannel(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3185,13 +3185,13 @@ func validateCaptureOption(v *types.CaptureOption) error { } } -func validateCaptureOptionList(v []*types.CaptureOption) error { +func validateCaptureOptionList(v []types.CaptureOption) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CaptureOptionList"} for i := range v { - if err := validateCaptureOption(v[i]); err != nil { + if err := validateCaptureOption(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3220,13 +3220,13 @@ func validateCategoricalParameterRange(v *types.CategoricalParameterRange) error } } -func validateCategoricalParameterRanges(v []*types.CategoricalParameterRange) error { +func validateCategoricalParameterRanges(v []types.CategoricalParameterRange) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CategoricalParameterRanges"} for i := range v { - if err := validateCategoricalParameterRange(v[i]); err != nil { + if err := validateCategoricalParameterRange(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3300,13 +3300,13 @@ func validateChannelSpecification(v *types.ChannelSpecification) error { } } -func validateChannelSpecifications(v []*types.ChannelSpecification) error { +func validateChannelSpecifications(v []types.ChannelSpecification) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ChannelSpecifications"} for i := range v { - if err := validateChannelSpecification(v[i]); err != nil { + if err := validateChannelSpecification(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3388,13 +3388,13 @@ func validateContainerDefinition(v *types.ContainerDefinition) error { } } -func validateContainerDefinitionList(v []*types.ContainerDefinition) error { +func validateContainerDefinitionList(v []types.ContainerDefinition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ContainerDefinitionList"} for i := range v { - if err := validateContainerDefinition(v[i]); err != nil { + if err := validateContainerDefinition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3426,13 +3426,13 @@ func validateContinuousParameterRange(v *types.ContinuousParameterRange) error { } } -func validateContinuousParameterRanges(v []*types.ContinuousParameterRange) error { +func validateContinuousParameterRanges(v []types.ContinuousParameterRange) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ContinuousParameterRanges"} for i := range v { - if err := validateContinuousParameterRange(v[i]); err != nil { + if err := validateContinuousParameterRange(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3479,13 +3479,13 @@ func validateCustomImage(v *types.CustomImage) error { } } -func validateCustomImages(v []*types.CustomImage) error { +func validateCustomImages(v []types.CustomImage) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CustomImages"} for i := range v { - if err := validateCustomImage(v[i]); err != nil { + if err := validateCustomImage(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3576,13 +3576,13 @@ func validateDebugRuleConfiguration(v *types.DebugRuleConfiguration) error { } } -func validateDebugRuleConfigurations(v []*types.DebugRuleConfiguration) error { +func validateDebugRuleConfigurations(v []types.DebugRuleConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DebugRuleConfigurations"} for i := range v { - if err := validateDebugRuleConfiguration(v[i]); err != nil { + if err := validateDebugRuleConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3608,13 +3608,13 @@ func validateDesiredWeightAndCapacity(v *types.DesiredWeightAndCapacity) error { } } -func validateDesiredWeightAndCapacityList(v []*types.DesiredWeightAndCapacity) error { +func validateDesiredWeightAndCapacityList(v []types.DesiredWeightAndCapacity) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DesiredWeightAndCapacityList"} for i := range v { - if err := validateDesiredWeightAndCapacity(v[i]); err != nil { + if err := validateDesiredWeightAndCapacity(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3682,13 +3682,13 @@ func validateFilter(v *types.Filter) error { } } -func validateFilterList(v []*types.Filter) error { +func validateFilterList(v []types.Filter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FilterList"} for i := range v { - if err := validateFilter(v[i]); err != nil { + if err := validateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3888,13 +3888,13 @@ func validateHyperParameterSpecification(v *types.HyperParameterSpecification) e } } -func validateHyperParameterSpecifications(v []*types.HyperParameterSpecification) error { +func validateHyperParameterSpecifications(v []types.HyperParameterSpecification) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "HyperParameterSpecifications"} for i := range v { - if err := validateHyperParameterSpecification(v[i]); err != nil { + if err := validateHyperParameterSpecification(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3969,13 +3969,13 @@ func validateHyperParameterTrainingJobDefinition(v *types.HyperParameterTraining } } -func validateHyperParameterTrainingJobDefinitions(v []*types.HyperParameterTrainingJobDefinition) error { +func validateHyperParameterTrainingJobDefinitions(v []types.HyperParameterTrainingJobDefinition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "HyperParameterTrainingJobDefinitions"} for i := range v { - if err := validateHyperParameterTrainingJobDefinition(v[i]); err != nil { + if err := validateHyperParameterTrainingJobDefinition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4041,13 +4041,13 @@ func validateHyperParameterTuningJobObjective(v *types.HyperParameterTuningJobOb } } -func validateHyperParameterTuningJobObjectives(v []*types.HyperParameterTuningJobObjective) error { +func validateHyperParameterTuningJobObjectives(v []types.HyperParameterTuningJobObjective) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "HyperParameterTuningJobObjectives"} for i := range v { - if err := validateHyperParameterTuningJobObjective(v[i]); err != nil { + if err := validateHyperParameterTuningJobObjective(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4143,13 +4143,13 @@ func validateInputConfig(v *types.InputConfig) error { } } -func validateInputDataConfig(v []*types.Channel) error { +func validateInputDataConfig(v []types.Channel) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InputDataConfig"} for i := range v { - if err := validateChannel(v[i]); err != nil { + if err := validateChannel(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4181,13 +4181,13 @@ func validateIntegerParameterRange(v *types.IntegerParameterRange) error { } } -func validateIntegerParameterRanges(v []*types.IntegerParameterRange) error { +func validateIntegerParameterRanges(v []types.IntegerParameterRange) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "IntegerParameterRanges"} for i := range v { - if err := validateIntegerParameterRange(v[i]); err != nil { + if err := validateIntegerParameterRange(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4267,13 +4267,13 @@ func validateKernelSpec(v *types.KernelSpec) error { } } -func validateKernelSpecs(v []*types.KernelSpec) error { +func validateKernelSpecs(v []types.KernelSpec) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "KernelSpecs"} for i := range v { - if err := validateKernelSpec(v[i]); err != nil { + if err := validateKernelSpec(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4407,13 +4407,13 @@ func validateMemberDefinition(v *types.MemberDefinition) error { } } -func validateMemberDefinitions(v []*types.MemberDefinition) error { +func validateMemberDefinitions(v []types.MemberDefinition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MemberDefinitions"} for i := range v { - if err := validateMemberDefinition(v[i]); err != nil { + if err := validateMemberDefinition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4442,13 +4442,13 @@ func validateMetricDefinition(v *types.MetricDefinition) error { } } -func validateMetricDefinitionList(v []*types.MetricDefinition) error { +func validateMetricDefinitionList(v []types.MetricDefinition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MetricDefinitionList"} for i := range v { - if err := validateMetricDefinition(v[i]); err != nil { + if err := validateMetricDefinition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4474,13 +4474,13 @@ func validateModelPackageContainerDefinition(v *types.ModelPackageContainerDefin } } -func validateModelPackageContainerDefinitionList(v []*types.ModelPackageContainerDefinition) error { +func validateModelPackageContainerDefinitionList(v []types.ModelPackageContainerDefinition) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ModelPackageContainerDefinitionList"} for i := range v { - if err := validateModelPackageContainerDefinition(v[i]); err != nil { + if err := validateModelPackageContainerDefinition(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4513,13 +4513,13 @@ func validateModelPackageValidationProfile(v *types.ModelPackageValidationProfil } } -func validateModelPackageValidationProfiles(v []*types.ModelPackageValidationProfile) error { +func validateModelPackageValidationProfiles(v []types.ModelPackageValidationProfile) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ModelPackageValidationProfiles"} for i := range v { - if err := validateModelPackageValidationProfile(v[i]); err != nil { + if err := validateModelPackageValidationProfile(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4607,13 +4607,13 @@ func validateMonitoringInput(v *types.MonitoringInput) error { } } -func validateMonitoringInputs(v []*types.MonitoringInput) error { +func validateMonitoringInputs(v []types.MonitoringInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MonitoringInputs"} for i := range v { - if err := validateMonitoringInput(v[i]); err != nil { + if err := validateMonitoringInput(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4715,13 +4715,13 @@ func validateMonitoringOutputConfig(v *types.MonitoringOutputConfig) error { } } -func validateMonitoringOutputs(v []*types.MonitoringOutput) error { +func validateMonitoringOutputs(v []types.MonitoringOutput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MonitoringOutputs"} for i := range v { - if err := validateMonitoringOutput(v[i]); err != nil { + if err := validateMonitoringOutput(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -4798,9 +4798,6 @@ func validateMonitoringStoppingCondition(v *types.MonitoringStoppingCondition) e return nil } invalidParams := smithy.InvalidParamsError{Context: "MonitoringStoppingCondition"} - if v.MaxRuntimeInSeconds == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxRuntimeInSeconds")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -4830,13 +4827,13 @@ func validateNestedFilters(v *types.NestedFilters) error { } } -func validateNestedFiltersList(v []*types.NestedFilters) error { +func validateNestedFiltersList(v []types.NestedFilters) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "NestedFiltersList"} for i := range v { - if err := validateNestedFilters(v[i]); err != nil { + if err := validateNestedFilters(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -5047,13 +5044,13 @@ func validateProcessingInput(v *types.ProcessingInput) error { } } -func validateProcessingInputs(v []*types.ProcessingInput) error { +func validateProcessingInputs(v []types.ProcessingInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ProcessingInputs"} for i := range v { - if err := validateProcessingInput(v[i]); err != nil { + if err := validateProcessingInput(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -5105,13 +5102,13 @@ func validateProcessingOutputConfig(v *types.ProcessingOutputConfig) error { } } -func validateProcessingOutputs(v []*types.ProcessingOutput) error { +func validateProcessingOutputs(v []types.ProcessingOutput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ProcessingOutputs"} for i := range v { - if err := validateProcessingOutput(v[i]); err != nil { + if err := validateProcessingOutput(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -5191,9 +5188,6 @@ func validateProcessingStoppingCondition(v *types.ProcessingStoppingCondition) e return nil } invalidParams := smithy.InvalidParamsError{Context: "ProcessingStoppingCondition"} - if v.MaxRuntimeInSeconds == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxRuntimeInSeconds")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -5225,13 +5219,13 @@ func validateProductionVariant(v *types.ProductionVariant) error { } } -func validateProductionVariantList(v []*types.ProductionVariant) error { +func validateProductionVariantList(v []types.ProductionVariant) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ProductionVariantList"} for i := range v { - if err := validateProductionVariant(v[i]); err != nil { + if err := validateProductionVariant(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -5277,15 +5271,9 @@ func validateResourceConfig(v *types.ResourceConfig) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceConfig"} - if v.VolumeSizeInGB == nil { - invalidParams.Add(smithy.NewErrParamRequired("VolumeSizeInGB")) - } if len(v.InstanceType) == 0 { invalidParams.Add(smithy.NewErrParamRequired("InstanceType")) } - if v.InstanceCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("InstanceCount")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -5298,12 +5286,6 @@ func validateResourceLimits(v *types.ResourceLimits) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceLimits"} - if v.MaxNumberOfTrainingJobs == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxNumberOfTrainingJobs")) - } - if v.MaxParallelTrainingJobs == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxParallelTrainingJobs")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -5371,13 +5353,13 @@ func validateSearchExpression(v *types.SearchExpression) error { } } -func validateSearchExpressionList(v []*types.SearchExpression) error { +func validateSearchExpressionList(v []types.SearchExpression) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SearchExpressionList"} for i := range v { - if err := validateSearchExpression(v[i]); err != nil { + if err := validateSearchExpression(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -5393,9 +5375,6 @@ func validateShuffleConfig(v *types.ShuffleConfig) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ShuffleConfig"} - if v.Seed == nil { - invalidParams.Add(smithy.NewErrParamRequired("Seed")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -5418,13 +5397,13 @@ func validateSourceAlgorithm(v *types.SourceAlgorithm) error { } } -func validateSourceAlgorithmList(v []*types.SourceAlgorithm) error { +func validateSourceAlgorithmList(v []types.SourceAlgorithm) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SourceAlgorithmList"} for i := range v { - if err := validateSourceAlgorithm(v[i]); err != nil { + if err := validateSourceAlgorithm(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -5504,13 +5483,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -5770,13 +5749,14 @@ func validateTrialComponentArtifact(v *types.TrialComponentArtifact) error { } } -func validateTrialComponentArtifacts(v map[string]*types.TrialComponentArtifact) error { +func validateTrialComponentArtifacts(v map[string]types.TrialComponentArtifact) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TrialComponentArtifacts"} for key := range v { - if err := validateTrialComponentArtifact(v[key]); err != nil { + value := v[key] + if err := validateTrialComponentArtifact(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -5849,13 +5829,13 @@ func validateVariantProperty(v *types.VariantProperty) error { } } -func validateVariantPropertyList(v []*types.VariantProperty) error { +func validateVariantPropertyList(v []types.VariantProperty) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "VariantPropertyList"} for i := range v { - if err := validateVariantProperty(v[i]); err != nil { + if err := validateVariantProperty(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/sagemakera2iruntime/api_op_ListHumanLoops.go b/service/sagemakera2iruntime/api_op_ListHumanLoops.go index 5f7ac38f17b..ee76f8d4827 100644 --- a/service/sagemakera2iruntime/api_op_ListHumanLoops.go +++ b/service/sagemakera2iruntime/api_op_ListHumanLoops.go @@ -47,7 +47,7 @@ type ListHumanLoopsInput struct { // The total number of items to return. If the total number of available items is // more than the value specified in MaxResults, then a NextToken is returned in the // output. You can use this token to display the next page of results. - MaxResults *int32 + MaxResults int32 // A token to display the next page of results. NextToken *string @@ -62,7 +62,7 @@ type ListHumanLoopsOutput struct { // An array of objects that contain information about the human loops. // // This member is required. - HumanLoopSummaries []*types.HumanLoopSummary + HumanLoopSummaries []types.HumanLoopSummary // A token to display the next page of results. NextToken *string diff --git a/service/sagemakera2iruntime/deserializers.go b/service/sagemakera2iruntime/deserializers.go index 4f512ba92ac..5139c871f44 100644 --- a/service/sagemakera2iruntime/deserializers.go +++ b/service/sagemakera2iruntime/deserializers.go @@ -272,7 +272,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHumanLoopOutput(v **DescribeHuman if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureCode = &jtv + sv.FailureCode = ptr.String(jtv) } case "FailureReason": @@ -281,7 +281,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHumanLoopOutput(v **DescribeHuman if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "FlowDefinitionArn": @@ -290,7 +290,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHumanLoopOutput(v **DescribeHuman if !ok { return fmt.Errorf("expected FlowDefinitionArn to be of type string, got %T instead", value) } - sv.FlowDefinitionArn = &jtv + sv.FlowDefinitionArn = ptr.String(jtv) } case "HumanLoopArn": @@ -299,7 +299,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHumanLoopOutput(v **DescribeHuman if !ok { return fmt.Errorf("expected HumanLoopArn to be of type string, got %T instead", value) } - sv.HumanLoopArn = &jtv + sv.HumanLoopArn = ptr.String(jtv) } case "HumanLoopName": @@ -308,7 +308,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHumanLoopOutput(v **DescribeHuman if !ok { return fmt.Errorf("expected HumanLoopName to be of type string, got %T instead", value) } - sv.HumanLoopName = &jtv + sv.HumanLoopName = ptr.String(jtv) } case "HumanLoopOutput": @@ -487,7 +487,7 @@ func awsRestjson1_deserializeOpDocumentListHumanLoopsOutput(v **ListHumanLoopsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -650,7 +650,7 @@ func awsRestjson1_deserializeOpDocumentStartHumanLoopOutput(v **StartHumanLoopOu if !ok { return fmt.Errorf("expected HumanLoopArn to be of type string, got %T instead", value) } - sv.HumanLoopArn = &jtv + sv.HumanLoopArn = ptr.String(jtv) } default: @@ -998,7 +998,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1038,7 +1038,7 @@ func awsRestjson1_deserializeDocumentHumanLoopOutput(v **types.HumanLoopOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OutputS3Uri = &jtv + sv.OutputS3Uri = ptr.String(jtv) } default: @@ -1050,7 +1050,7 @@ func awsRestjson1_deserializeDocumentHumanLoopOutput(v **types.HumanLoopOutput, return nil } -func awsRestjson1_deserializeDocumentHumanLoopSummaries(v *[]*types.HumanLoopSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentHumanLoopSummaries(v *[]types.HumanLoopSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1063,18 +1063,20 @@ func awsRestjson1_deserializeDocumentHumanLoopSummaries(v *[]*types.HumanLoopSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HumanLoopSummary + var cv []types.HumanLoopSummary if *v == nil { - cv = []*types.HumanLoopSummary{} + cv = []types.HumanLoopSummary{} } else { cv = *v } for _, value := range shape { - var col *types.HumanLoopSummary - if err := awsRestjson1_deserializeDocumentHumanLoopSummary(&col, value); err != nil { + var col types.HumanLoopSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentHumanLoopSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1123,7 +1125,7 @@ func awsRestjson1_deserializeDocumentHumanLoopSummary(v **types.HumanLoopSummary if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "FlowDefinitionArn": @@ -1132,7 +1134,7 @@ func awsRestjson1_deserializeDocumentHumanLoopSummary(v **types.HumanLoopSummary if !ok { return fmt.Errorf("expected FlowDefinitionArn to be of type string, got %T instead", value) } - sv.FlowDefinitionArn = &jtv + sv.FlowDefinitionArn = ptr.String(jtv) } case "HumanLoopName": @@ -1141,7 +1143,7 @@ func awsRestjson1_deserializeDocumentHumanLoopSummary(v **types.HumanLoopSummary if !ok { return fmt.Errorf("expected HumanLoopName to be of type string, got %T instead", value) } - sv.HumanLoopName = &jtv + sv.HumanLoopName = ptr.String(jtv) } case "HumanLoopStatus": @@ -1190,7 +1192,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1230,7 +1232,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1270,7 +1272,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1310,7 +1312,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1350,7 +1352,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/sagemakera2iruntime/go.mod b/service/sagemakera2iruntime/go.mod index 29dd8a01869..e36e135da49 100644 --- a/service/sagemakera2iruntime/go.mod +++ b/service/sagemakera2iruntime/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakera2iruntime go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/sagemakera2iruntime/serializers.go b/service/sagemakera2iruntime/serializers.go index c038b6aac21..878f9a3ca8e 100644 --- a/service/sagemakera2iruntime/serializers.go +++ b/service/sagemakera2iruntime/serializers.go @@ -66,13 +66,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteHumanLoopInput(v *DeleteHumanLoop return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HumanLoopName == nil { + if v.HumanLoopName == nil || len(*v.HumanLoopName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HumanLoopName must not be empty")} } if v.HumanLoopName != nil { - if len(*v.HumanLoopName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HumanLoopName must not be empty")} - } if err := encoder.SetURI("HumanLoopName").String(*v.HumanLoopName); err != nil { return err } @@ -132,13 +129,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeHumanLoopInput(v *DescribeHuman return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.HumanLoopName == nil { + if v.HumanLoopName == nil || len(*v.HumanLoopName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member HumanLoopName must not be empty")} } if v.HumanLoopName != nil { - if len(*v.HumanLoopName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member HumanLoopName must not be empty")} - } if err := encoder.SetURI("HumanLoopName").String(*v.HumanLoopName); err != nil { return err } @@ -210,8 +204,8 @@ func awsRestjson1_serializeOpHttpBindingsListHumanLoopsInput(v *ListHumanLoopsIn encoder.SetQuery("FlowDefinitionArn").String(*v.FlowDefinitionArn) } - if v.MaxResults != nil { - encoder.SetQuery("MaxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("MaxResults").Integer(v.MaxResults) } if v.NextToken != nil { diff --git a/service/sagemakerruntime/deserializers.go b/service/sagemakerruntime/deserializers.go index 127d65d95c2..7b23ac76826 100644 --- a/service/sagemakerruntime/deserializers.go +++ b/service/sagemakerruntime/deserializers.go @@ -330,7 +330,7 @@ func awsRestjson1_deserializeDocumentInternalFailure(v **types.InternalFailure, if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -370,7 +370,7 @@ func awsRestjson1_deserializeDocumentModelError(v **types.ModelError, value inte if !ok { return fmt.Errorf("expected LogStreamArn to be of type string, got %T instead", value) } - sv.LogStreamArn = &jtv + sv.LogStreamArn = ptr.String(jtv) } case "Message": @@ -379,7 +379,7 @@ func awsRestjson1_deserializeDocumentModelError(v **types.ModelError, value inte if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "OriginalMessage": @@ -388,7 +388,7 @@ func awsRestjson1_deserializeDocumentModelError(v **types.ModelError, value inte if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.OriginalMessage = &jtv + sv.OriginalMessage = ptr.String(jtv) } case "OriginalStatusCode": @@ -441,7 +441,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailable(v **types.ServiceUnavail if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -481,7 +481,7 @@ func awsRestjson1_deserializeDocumentValidationError(v **types.ValidationError, if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/sagemakerruntime/go.mod b/service/sagemakerruntime/go.mod index ff570b5579b..e14f6c0d9c9 100644 --- a/service/sagemakerruntime/go.mod +++ b/service/sagemakerruntime/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakerruntime go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/sagemakerruntime/serializers.go b/service/sagemakerruntime/serializers.go index 8b6f7af1326..4fe25a4d2c8 100644 --- a/service/sagemakerruntime/serializers.go +++ b/service/sagemakerruntime/serializers.go @@ -74,51 +74,38 @@ func awsRestjson1_serializeOpHttpBindingsInvokeEndpointInput(v *InvokeEndpointIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Accept != nil { + if v.Accept != nil && len(*v.Accept) > 0 { locationName := "Accept" - if len(*v.Accept) > 0 { - encoder.SetHeader(locationName).String(*v.Accept) - } + encoder.SetHeader(locationName).String(*v.Accept) } - if v.ContentType != nil { + if v.ContentType != nil && len(*v.ContentType) > 0 { locationName := "Content-Type" - if len(*v.ContentType) > 0 { - encoder.SetHeader(locationName).String(*v.ContentType) - } + encoder.SetHeader(locationName).String(*v.ContentType) } - if v.CustomAttributes != nil { + if v.CustomAttributes != nil && len(*v.CustomAttributes) > 0 { locationName := "X-Amzn-Sagemaker-Custom-Attributes" - if len(*v.CustomAttributes) > 0 { - encoder.SetHeader(locationName).String(*v.CustomAttributes) - } + encoder.SetHeader(locationName).String(*v.CustomAttributes) } - if v.EndpointName == nil { + if v.EndpointName == nil || len(*v.EndpointName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EndpointName must not be empty")} } if v.EndpointName != nil { - if len(*v.EndpointName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EndpointName must not be empty")} - } if err := encoder.SetURI("EndpointName").String(*v.EndpointName); err != nil { return err } } - if v.TargetModel != nil { + if v.TargetModel != nil && len(*v.TargetModel) > 0 { locationName := "X-Amzn-Sagemaker-Target-Model" - if len(*v.TargetModel) > 0 { - encoder.SetHeader(locationName).String(*v.TargetModel) - } + encoder.SetHeader(locationName).String(*v.TargetModel) } - if v.TargetVariant != nil { + if v.TargetVariant != nil && len(*v.TargetVariant) > 0 { locationName := "X-Amzn-Sagemaker-Target-Variant" - if len(*v.TargetVariant) > 0 { - encoder.SetHeader(locationName).String(*v.TargetVariant) - } + encoder.SetHeader(locationName).String(*v.TargetVariant) } return nil diff --git a/service/savingsplans/api_op_CreateSavingsPlan.go b/service/savingsplans/api_op_CreateSavingsPlan.go index 59de516c2e4..03c34760528 100644 --- a/service/savingsplans/api_op_CreateSavingsPlan.go +++ b/service/savingsplans/api_op_CreateSavingsPlan.go @@ -50,7 +50,7 @@ type CreateSavingsPlanInput struct { PurchaseTime *time.Time // One or more tags. - Tags map[string]*string + Tags map[string]string // The up-front payment amount. This is a whole number between 50 and 99 percent of // the total value of the Savings Plan. This parameter is supported only if the diff --git a/service/savingsplans/api_op_DescribeSavingsPlanRates.go b/service/savingsplans/api_op_DescribeSavingsPlanRates.go index b633b3ea668..9e1b1d8e670 100644 --- a/service/savingsplans/api_op_DescribeSavingsPlanRates.go +++ b/service/savingsplans/api_op_DescribeSavingsPlanRates.go @@ -35,7 +35,7 @@ type DescribeSavingsPlanRatesInput struct { SavingsPlanId *string // The filters. - Filters []*types.SavingsPlanRateFilter + Filters []types.SavingsPlanRateFilter // The maximum number of results to return with a single call. To retrieve // additional results, make another call with the returned token value. @@ -55,7 +55,7 @@ type DescribeSavingsPlanRatesOutput struct { SavingsPlanId *string // Information about the Savings Plans rates. - SearchResults []*types.SavingsPlanRate + SearchResults []types.SavingsPlanRate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/savingsplans/api_op_DescribeSavingsPlans.go b/service/savingsplans/api_op_DescribeSavingsPlans.go index 3bb255d5d95..e4343e972f0 100644 --- a/service/savingsplans/api_op_DescribeSavingsPlans.go +++ b/service/savingsplans/api_op_DescribeSavingsPlans.go @@ -30,7 +30,7 @@ func (c *Client) DescribeSavingsPlans(ctx context.Context, params *DescribeSavin type DescribeSavingsPlansInput struct { // The filters. - Filters []*types.SavingsPlanFilter + Filters []types.SavingsPlanFilter // The maximum number of results to return with a single call. To retrieve // additional results, make another call with the returned token value. @@ -40,10 +40,10 @@ type DescribeSavingsPlansInput struct { NextToken *string // The Amazon Resource Names (ARN) of the Savings Plans. - SavingsPlanArns []*string + SavingsPlanArns []string // The IDs of the Savings Plans. - SavingsPlanIds []*string + SavingsPlanIds []string // The states. States []types.SavingsPlanState @@ -56,7 +56,7 @@ type DescribeSavingsPlansOutput struct { NextToken *string // Information about the Savings Plans. - SavingsPlans []*types.SavingsPlan + SavingsPlans []types.SavingsPlan // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/savingsplans/api_op_DescribeSavingsPlansOfferingRates.go b/service/savingsplans/api_op_DescribeSavingsPlansOfferingRates.go index 4f49f70b048..3e21c87d4a2 100644 --- a/service/savingsplans/api_op_DescribeSavingsPlansOfferingRates.go +++ b/service/savingsplans/api_op_DescribeSavingsPlansOfferingRates.go @@ -30,23 +30,23 @@ func (c *Client) DescribeSavingsPlansOfferingRates(ctx context.Context, params * type DescribeSavingsPlansOfferingRatesInput struct { // The filters. - Filters []*types.SavingsPlanOfferingRateFilterElement + Filters []types.SavingsPlanOfferingRateFilterElement // The maximum number of results to return with a single call. To retrieve // additional results, make another call with the returned token value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The specific AWS operation for the line item in the billing report. - Operations []*string + Operations []string // The AWS products. Products []types.SavingsPlanProductType // The IDs of the offerings. - SavingsPlanOfferingIds []*string + SavingsPlanOfferingIds []string // The payment options. SavingsPlanPaymentOptions []types.SavingsPlanPaymentOption @@ -58,7 +58,7 @@ type DescribeSavingsPlansOfferingRatesInput struct { ServiceCodes []types.SavingsPlanRateServiceCode // The usage details of the line item in the billing report. - UsageTypes []*string + UsageTypes []string } type DescribeSavingsPlansOfferingRatesOutput struct { @@ -68,7 +68,7 @@ type DescribeSavingsPlansOfferingRatesOutput struct { NextToken *string // Information about the Savings Plans offering rates. - SearchResults []*types.SavingsPlanOfferingRate + SearchResults []types.SavingsPlanOfferingRate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/savingsplans/api_op_DescribeSavingsPlansOfferings.go b/service/savingsplans/api_op_DescribeSavingsPlansOfferings.go index dda2a6a9cec..fad78a02516 100644 --- a/service/savingsplans/api_op_DescribeSavingsPlansOfferings.go +++ b/service/savingsplans/api_op_DescribeSavingsPlansOfferings.go @@ -33,26 +33,26 @@ type DescribeSavingsPlansOfferingsInput struct { Currencies []types.CurrencyCode // The descriptions. - Descriptions []*string + Descriptions []string // The durations, in seconds. - Durations []*int64 + Durations []int64 // The filters. - Filters []*types.SavingsPlanOfferingFilterElement + Filters []types.SavingsPlanOfferingFilterElement // The maximum number of results to return with a single call. To retrieve // additional results, make another call with the returned token value. - MaxResults *int32 + MaxResults int32 // The token for the next page of results. NextToken *string // The IDs of the offerings. - OfferingIds []*string + OfferingIds []string // The specific AWS operation for the line item in the billing report. - Operations []*string + Operations []string // The payment options. PaymentOptions []types.SavingsPlanPaymentOption @@ -64,10 +64,10 @@ type DescribeSavingsPlansOfferingsInput struct { ProductType types.SavingsPlanProductType // The services. - ServiceCodes []*string + ServiceCodes []string // The usage details of the line item in the billing report. - UsageTypes []*string + UsageTypes []string } type DescribeSavingsPlansOfferingsOutput struct { @@ -77,7 +77,7 @@ type DescribeSavingsPlansOfferingsOutput struct { NextToken *string // Information about the Savings Plans offerings. - SearchResults []*types.SavingsPlanOffering + SearchResults []types.SavingsPlanOffering // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/savingsplans/api_op_ListTagsForResource.go b/service/savingsplans/api_op_ListTagsForResource.go index 7c4974b96ca..276c6715936 100644 --- a/service/savingsplans/api_op_ListTagsForResource.go +++ b/service/savingsplans/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // Information about the tags. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/savingsplans/api_op_TagResource.go b/service/savingsplans/api_op_TagResource.go index b0e43e0c990..e31623dc4ca 100644 --- a/service/savingsplans/api_op_TagResource.go +++ b/service/savingsplans/api_op_TagResource.go @@ -36,7 +36,7 @@ type TagResourceInput struct { // One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} }. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/savingsplans/api_op_UntagResource.go b/service/savingsplans/api_op_UntagResource.go index 89b0d143eb4..37ceef4713e 100644 --- a/service/savingsplans/api_op_UntagResource.go +++ b/service/savingsplans/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The tag keys. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/savingsplans/deserializers.go b/service/savingsplans/deserializers.go index c9f06ae0ef8..043babde309 100644 --- a/service/savingsplans/deserializers.go +++ b/service/savingsplans/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -165,7 +166,7 @@ func awsRestjson1_deserializeOpDocumentCreateSavingsPlanOutput(v **CreateSavings if !ok { return fmt.Errorf("expected SavingsPlanId to be of type string, got %T instead", value) } - sv.SavingsPlanId = &jtv + sv.SavingsPlanId = ptr.String(jtv) } default: @@ -411,7 +412,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSavingsPlanRatesOutput(v **Descri if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "savingsPlanId": @@ -420,7 +421,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSavingsPlanRatesOutput(v **Descri if !ok { return fmt.Errorf("expected SavingsPlanId to be of type string, got %T instead", value) } - sv.SavingsPlanId = &jtv + sv.SavingsPlanId = ptr.String(jtv) } case "searchResults": @@ -579,7 +580,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSavingsPlansOutput(v **DescribeSa if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "savingsPlans": @@ -738,7 +739,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSavingsPlansOfferingRatesOutput(v if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "searchResults": @@ -897,7 +898,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSavingsPlansOfferingsOutput(v **D if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "searchResults": @@ -1420,7 +1421,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1473,7 +1474,7 @@ func awsRestjson1_deserializeDocumentParentSavingsPlanOffering(v **types.ParentS if err != nil { return err } - sv.DurationSeconds = &i64 + sv.DurationSeconds = i64 } case "offeringId": @@ -1482,7 +1483,7 @@ func awsRestjson1_deserializeDocumentParentSavingsPlanOffering(v **types.ParentS if !ok { return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.OfferingId = &jtv + sv.OfferingId = ptr.String(jtv) } case "paymentOption": @@ -1500,7 +1501,7 @@ func awsRestjson1_deserializeDocumentParentSavingsPlanOffering(v **types.ParentS if !ok { return fmt.Errorf("expected SavingsPlanDescription to be of type string, got %T instead", value) } - sv.PlanDescription = &jtv + sv.PlanDescription = ptr.String(jtv) } case "planType": @@ -1549,7 +1550,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1589,7 +1590,7 @@ func awsRestjson1_deserializeDocumentSavingsPlan(v **types.SavingsPlan, value in if !ok { return fmt.Errorf("expected Amount to be of type string, got %T instead", value) } - sv.Commitment = &jtv + sv.Commitment = ptr.String(jtv) } case "currency": @@ -1607,7 +1608,7 @@ func awsRestjson1_deserializeDocumentSavingsPlan(v **types.SavingsPlan, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ec2InstanceFamily": @@ -1616,7 +1617,7 @@ func awsRestjson1_deserializeDocumentSavingsPlan(v **types.SavingsPlan, value in if !ok { return fmt.Errorf("expected EC2InstanceFamily to be of type string, got %T instead", value) } - sv.Ec2InstanceFamily = &jtv + sv.Ec2InstanceFamily = ptr.String(jtv) } case "end": @@ -1625,7 +1626,7 @@ func awsRestjson1_deserializeDocumentSavingsPlan(v **types.SavingsPlan, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.End = &jtv + sv.End = ptr.String(jtv) } case "offeringId": @@ -1634,7 +1635,7 @@ func awsRestjson1_deserializeDocumentSavingsPlan(v **types.SavingsPlan, value in if !ok { return fmt.Errorf("expected SavingsPlanOfferingId to be of type string, got %T instead", value) } - sv.OfferingId = &jtv + sv.OfferingId = ptr.String(jtv) } case "paymentOption": @@ -1657,7 +1658,7 @@ func awsRestjson1_deserializeDocumentSavingsPlan(v **types.SavingsPlan, value in if !ok { return fmt.Errorf("expected Amount to be of type string, got %T instead", value) } - sv.RecurringPaymentAmount = &jtv + sv.RecurringPaymentAmount = ptr.String(jtv) } case "region": @@ -1666,7 +1667,7 @@ func awsRestjson1_deserializeDocumentSavingsPlan(v **types.SavingsPlan, value in if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "savingsPlanArn": @@ -1675,7 +1676,7 @@ func awsRestjson1_deserializeDocumentSavingsPlan(v **types.SavingsPlan, value in if !ok { return fmt.Errorf("expected SavingsPlanArn to be of type string, got %T instead", value) } - sv.SavingsPlanArn = &jtv + sv.SavingsPlanArn = ptr.String(jtv) } case "savingsPlanId": @@ -1684,7 +1685,7 @@ func awsRestjson1_deserializeDocumentSavingsPlan(v **types.SavingsPlan, value in if !ok { return fmt.Errorf("expected SavingsPlanId to be of type string, got %T instead", value) } - sv.SavingsPlanId = &jtv + sv.SavingsPlanId = ptr.String(jtv) } case "savingsPlanType": @@ -1702,7 +1703,7 @@ func awsRestjson1_deserializeDocumentSavingsPlan(v **types.SavingsPlan, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Start = &jtv + sv.Start = ptr.String(jtv) } case "state": @@ -1729,7 +1730,7 @@ func awsRestjson1_deserializeDocumentSavingsPlan(v **types.SavingsPlan, value in if err != nil { return err } - sv.TermDurationInSeconds = &i64 + sv.TermDurationInSeconds = i64 } case "upfrontPaymentAmount": @@ -1738,7 +1739,7 @@ func awsRestjson1_deserializeDocumentSavingsPlan(v **types.SavingsPlan, value in if !ok { return fmt.Errorf("expected Amount to be of type string, got %T instead", value) } - sv.UpfrontPaymentAmount = &jtv + sv.UpfrontPaymentAmount = ptr.String(jtv) } default: @@ -1750,7 +1751,7 @@ func awsRestjson1_deserializeDocumentSavingsPlan(v **types.SavingsPlan, value in return nil } -func awsRestjson1_deserializeDocumentSavingsPlanList(v *[]*types.SavingsPlan, value interface{}) error { +func awsRestjson1_deserializeDocumentSavingsPlanList(v *[]types.SavingsPlan, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1763,18 +1764,20 @@ func awsRestjson1_deserializeDocumentSavingsPlanList(v *[]*types.SavingsPlan, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SavingsPlan + var cv []types.SavingsPlan if *v == nil { - cv = []*types.SavingsPlan{} + cv = []types.SavingsPlan{} } else { cv = *v } for _, value := range shape { - var col *types.SavingsPlan - if err := awsRestjson1_deserializeDocumentSavingsPlan(&col, value); err != nil { + var col types.SavingsPlan + destAddr := &col + if err := awsRestjson1_deserializeDocumentSavingsPlan(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1819,7 +1822,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOffering(v **types.SavingsPlanOf if !ok { return fmt.Errorf("expected SavingsPlanDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "durationSeconds": @@ -1832,7 +1835,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOffering(v **types.SavingsPlanOf if err != nil { return err } - sv.DurationSeconds = &i64 + sv.DurationSeconds = i64 } case "offeringId": @@ -1841,7 +1844,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOffering(v **types.SavingsPlanOf if !ok { return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.OfferingId = &jtv + sv.OfferingId = ptr.String(jtv) } case "operation": @@ -1850,7 +1853,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOffering(v **types.SavingsPlanOf if !ok { return fmt.Errorf("expected SavingsPlanOperation to be of type string, got %T instead", value) } - sv.Operation = &jtv + sv.Operation = ptr.String(jtv) } case "paymentOption": @@ -1887,7 +1890,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOffering(v **types.SavingsPlanOf if !ok { return fmt.Errorf("expected SavingsPlanServiceCode to be of type string, got %T instead", value) } - sv.ServiceCode = &jtv + sv.ServiceCode = ptr.String(jtv) } case "usageType": @@ -1896,7 +1899,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOffering(v **types.SavingsPlanOf if !ok { return fmt.Errorf("expected SavingsPlanUsageType to be of type string, got %T instead", value) } - sv.UsageType = &jtv + sv.UsageType = ptr.String(jtv) } default: @@ -1945,7 +1948,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingProperty(v **types.Savin if !ok { return fmt.Errorf("expected JsonSafeFilterValueString to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -1957,7 +1960,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingProperty(v **types.Savin return nil } -func awsRestjson1_deserializeDocumentSavingsPlanOfferingPropertyList(v *[]*types.SavingsPlanOfferingProperty, value interface{}) error { +func awsRestjson1_deserializeDocumentSavingsPlanOfferingPropertyList(v *[]types.SavingsPlanOfferingProperty, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1970,18 +1973,20 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingPropertyList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SavingsPlanOfferingProperty + var cv []types.SavingsPlanOfferingProperty if *v == nil { - cv = []*types.SavingsPlanOfferingProperty{} + cv = []types.SavingsPlanOfferingProperty{} } else { cv = *v } for _, value := range shape { - var col *types.SavingsPlanOfferingProperty - if err := awsRestjson1_deserializeDocumentSavingsPlanOfferingProperty(&col, value); err != nil { + var col types.SavingsPlanOfferingProperty + destAddr := &col + if err := awsRestjson1_deserializeDocumentSavingsPlanOfferingProperty(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2017,7 +2022,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingRate(v **types.SavingsPl if !ok { return fmt.Errorf("expected SavingsPlanRateOperation to be of type string, got %T instead", value) } - sv.Operation = &jtv + sv.Operation = ptr.String(jtv) } case "productType": @@ -2040,7 +2045,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingRate(v **types.SavingsPl if !ok { return fmt.Errorf("expected SavingsPlanRatePricePerUnit to be of type string, got %T instead", value) } - sv.Rate = &jtv + sv.Rate = ptr.String(jtv) } case "savingsPlanOffering": @@ -2072,7 +2077,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingRate(v **types.SavingsPl if !ok { return fmt.Errorf("expected SavingsPlanRateUsageType to be of type string, got %T instead", value) } - sv.UsageType = &jtv + sv.UsageType = ptr.String(jtv) } default: @@ -2112,7 +2117,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingRateProperty(v **types.S if !ok { return fmt.Errorf("expected JsonSafeFilterValueString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "value": @@ -2121,7 +2126,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingRateProperty(v **types.S if !ok { return fmt.Errorf("expected JsonSafeFilterValueString to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -2133,7 +2138,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingRateProperty(v **types.S return nil } -func awsRestjson1_deserializeDocumentSavingsPlanOfferingRatePropertyList(v *[]*types.SavingsPlanOfferingRateProperty, value interface{}) error { +func awsRestjson1_deserializeDocumentSavingsPlanOfferingRatePropertyList(v *[]types.SavingsPlanOfferingRateProperty, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2146,18 +2151,20 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingRatePropertyList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SavingsPlanOfferingRateProperty + var cv []types.SavingsPlanOfferingRateProperty if *v == nil { - cv = []*types.SavingsPlanOfferingRateProperty{} + cv = []types.SavingsPlanOfferingRateProperty{} } else { cv = *v } for _, value := range shape { - var col *types.SavingsPlanOfferingRateProperty - if err := awsRestjson1_deserializeDocumentSavingsPlanOfferingRateProperty(&col, value); err != nil { + var col types.SavingsPlanOfferingRateProperty + destAddr := &col + if err := awsRestjson1_deserializeDocumentSavingsPlanOfferingRateProperty(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2165,7 +2172,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingRatePropertyList(v *[]*t return nil } -func awsRestjson1_deserializeDocumentSavingsPlanOfferingRatesList(v *[]*types.SavingsPlanOfferingRate, value interface{}) error { +func awsRestjson1_deserializeDocumentSavingsPlanOfferingRatesList(v *[]types.SavingsPlanOfferingRate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2178,18 +2185,20 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingRatesList(v *[]*types.Sa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SavingsPlanOfferingRate + var cv []types.SavingsPlanOfferingRate if *v == nil { - cv = []*types.SavingsPlanOfferingRate{} + cv = []types.SavingsPlanOfferingRate{} } else { cv = *v } for _, value := range shape { - var col *types.SavingsPlanOfferingRate - if err := awsRestjson1_deserializeDocumentSavingsPlanOfferingRate(&col, value); err != nil { + var col types.SavingsPlanOfferingRate + destAddr := &col + if err := awsRestjson1_deserializeDocumentSavingsPlanOfferingRate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2197,7 +2206,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingRatesList(v *[]*types.Sa return nil } -func awsRestjson1_deserializeDocumentSavingsPlanOfferingsList(v *[]*types.SavingsPlanOffering, value interface{}) error { +func awsRestjson1_deserializeDocumentSavingsPlanOfferingsList(v *[]types.SavingsPlanOffering, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2210,18 +2219,20 @@ func awsRestjson1_deserializeDocumentSavingsPlanOfferingsList(v *[]*types.Saving return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SavingsPlanOffering + var cv []types.SavingsPlanOffering if *v == nil { - cv = []*types.SavingsPlanOffering{} + cv = []types.SavingsPlanOffering{} } else { cv = *v } for _, value := range shape { - var col *types.SavingsPlanOffering - if err := awsRestjson1_deserializeDocumentSavingsPlanOffering(&col, value); err != nil { + var col types.SavingsPlanOffering + destAddr := &col + if err := awsRestjson1_deserializeDocumentSavingsPlanOffering(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2302,7 +2313,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanRate(v **types.SavingsPlanRate, if !ok { return fmt.Errorf("expected SavingsPlanRateOperation to be of type string, got %T instead", value) } - sv.Operation = &jtv + sv.Operation = ptr.String(jtv) } case "productType": @@ -2325,7 +2336,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanRate(v **types.SavingsPlanRate, if !ok { return fmt.Errorf("expected Amount to be of type string, got %T instead", value) } - sv.Rate = &jtv + sv.Rate = ptr.String(jtv) } case "serviceCode": @@ -2352,7 +2363,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanRate(v **types.SavingsPlanRate, if !ok { return fmt.Errorf("expected SavingsPlanRateUsageType to be of type string, got %T instead", value) } - sv.UsageType = &jtv + sv.UsageType = ptr.String(jtv) } default: @@ -2364,7 +2375,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanRate(v **types.SavingsPlanRate, return nil } -func awsRestjson1_deserializeDocumentSavingsPlanRateList(v *[]*types.SavingsPlanRate, value interface{}) error { +func awsRestjson1_deserializeDocumentSavingsPlanRateList(v *[]types.SavingsPlanRate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2377,18 +2388,20 @@ func awsRestjson1_deserializeDocumentSavingsPlanRateList(v *[]*types.SavingsPlan return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SavingsPlanRate + var cv []types.SavingsPlanRate if *v == nil { - cv = []*types.SavingsPlanRate{} + cv = []types.SavingsPlanRate{} } else { cv = *v } for _, value := range shape { - var col *types.SavingsPlanRate - if err := awsRestjson1_deserializeDocumentSavingsPlanRate(&col, value); err != nil { + var col types.SavingsPlanRate + destAddr := &col + if err := awsRestjson1_deserializeDocumentSavingsPlanRate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2433,7 +2446,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanRateProperty(v **types.SavingsPl if !ok { return fmt.Errorf("expected JsonSafeFilterValueString to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -2445,7 +2458,7 @@ func awsRestjson1_deserializeDocumentSavingsPlanRateProperty(v **types.SavingsPl return nil } -func awsRestjson1_deserializeDocumentSavingsPlanRatePropertyList(v *[]*types.SavingsPlanRateProperty, value interface{}) error { +func awsRestjson1_deserializeDocumentSavingsPlanRatePropertyList(v *[]types.SavingsPlanRateProperty, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2458,18 +2471,20 @@ func awsRestjson1_deserializeDocumentSavingsPlanRatePropertyList(v *[]*types.Sav return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SavingsPlanRateProperty + var cv []types.SavingsPlanRateProperty if *v == nil { - cv = []*types.SavingsPlanRateProperty{} + cv = []types.SavingsPlanRateProperty{} } else { cv = *v } for _, value := range shape { - var col *types.SavingsPlanRateProperty - if err := awsRestjson1_deserializeDocumentSavingsPlanRateProperty(&col, value); err != nil { + var col types.SavingsPlanRateProperty + destAddr := &col + if err := awsRestjson1_deserializeDocumentSavingsPlanRateProperty(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2505,7 +2520,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2517,7 +2532,7 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2530,21 +2545,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -2581,7 +2596,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/savingsplans/go.mod b/service/savingsplans/go.mod index 4787f216d9d..5a0223d2106 100644 --- a/service/savingsplans/go.mod +++ b/service/savingsplans/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/savingsplans go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/savingsplans/serializers.go b/service/savingsplans/serializers.go index 739f4613461..0041130cd4e 100644 --- a/service/savingsplans/serializers.go +++ b/service/savingsplans/serializers.go @@ -456,9 +456,9 @@ func awsRestjson1_serializeOpDocumentDescribeSavingsPlansOfferingRatesInput(v *D } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -611,9 +611,9 @@ func awsRestjson1_serializeOpDocumentDescribeSavingsPlansOfferingsInput(v *Descr } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -915,77 +915,57 @@ func awsRestjson1_serializeDocumentCurrencyList(v []types.CurrencyCode, value sm return nil } -func awsRestjson1_serializeDocumentDurationsList(v []*int64, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDurationsList(v []int64, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Long(*v[i]) + av.Long(v[i]) } return nil } -func awsRestjson1_serializeDocumentFilterValuesList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterValuesList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentListOfStrings(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListOfStrings(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentSavingsPlanArnList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSavingsPlanArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentSavingsPlanDescriptionsList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSavingsPlanDescriptionsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1009,34 +989,26 @@ func awsRestjson1_serializeDocumentSavingsPlanFilter(v *types.SavingsPlanFilter, return nil } -func awsRestjson1_serializeDocumentSavingsPlanFilterList(v []*types.SavingsPlanFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSavingsPlanFilterList(v []types.SavingsPlanFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSavingsPlanFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSavingsPlanFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentSavingsPlanIdList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSavingsPlanIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1060,17 +1032,13 @@ func awsRestjson1_serializeDocumentSavingsPlanOfferingFilterElement(v *types.Sav return nil } -func awsRestjson1_serializeDocumentSavingsPlanOfferingFiltersList(v []*types.SavingsPlanOfferingFilterElement, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSavingsPlanOfferingFiltersList(v []types.SavingsPlanOfferingFilterElement, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSavingsPlanOfferingFilterElement(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSavingsPlanOfferingFilterElement(&v[i], av); err != nil { return err } } @@ -1096,34 +1064,26 @@ func awsRestjson1_serializeDocumentSavingsPlanOfferingRateFilterElement(v *types return nil } -func awsRestjson1_serializeDocumentSavingsPlanOfferingRateFiltersList(v []*types.SavingsPlanOfferingRateFilterElement, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSavingsPlanOfferingRateFiltersList(v []types.SavingsPlanOfferingRateFilterElement, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSavingsPlanOfferingRateFilterElement(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSavingsPlanOfferingRateFilterElement(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentSavingsPlanOperationList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSavingsPlanOperationList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1169,34 +1129,26 @@ func awsRestjson1_serializeDocumentSavingsPlanRateFilter(v *types.SavingsPlanRat return nil } -func awsRestjson1_serializeDocumentSavingsPlanRateFilterList(v []*types.SavingsPlanRateFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSavingsPlanRateFilterList(v []types.SavingsPlanRateFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSavingsPlanRateFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSavingsPlanRateFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentSavingsPlanRateOperationList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSavingsPlanRateOperationList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1212,32 +1164,24 @@ func awsRestjson1_serializeDocumentSavingsPlanRateServiceCodeList(v []types.Savi return nil } -func awsRestjson1_serializeDocumentSavingsPlanRateUsageTypeList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSavingsPlanRateUsageTypeList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentSavingsPlanServiceCodeList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSavingsPlanServiceCodeList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1264,62 +1208,46 @@ func awsRestjson1_serializeDocumentSavingsPlanTypeList(v []types.SavingsPlanType return nil } -func awsRestjson1_serializeDocumentSavingsPlanUsageTypeList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSavingsPlanUsageTypeList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentUUIDs(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentUUIDs(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/savingsplans/types/types.go b/service/savingsplans/types/types.go index fa7aadd8dbc..58d963b69d2 100644 --- a/service/savingsplans/types/types.go +++ b/service/savingsplans/types/types.go @@ -9,7 +9,7 @@ type ParentSavingsPlanOffering struct { Currency CurrencyCode // The duration, in seconds. - DurationSeconds *int64 + DurationSeconds int64 // The ID of the offering. OfferingId *string @@ -73,10 +73,10 @@ type SavingsPlan struct { State SavingsPlanState // One or more tags. - Tags map[string]*string + Tags map[string]string // The duration of the term, in seconds. - TermDurationInSeconds *int64 + TermDurationInSeconds int64 // The up-front payment amount. UpfrontPaymentAmount *string @@ -89,7 +89,7 @@ type SavingsPlanFilter struct { Name SavingsPlansFilterName // The filter value. - Values []*string + Values []string } // Information about a Savings Plan offering. @@ -102,7 +102,7 @@ type SavingsPlanOffering struct { Description *string // The duration, in seconds. - DurationSeconds *int64 + DurationSeconds int64 // The ID of the offering. OfferingId *string @@ -120,7 +120,7 @@ type SavingsPlanOffering struct { ProductTypes []SavingsPlanProductType // The properties. - Properties []*SavingsPlanOfferingProperty + Properties []SavingsPlanOfferingProperty // The service. ServiceCode *string @@ -136,7 +136,7 @@ type SavingsPlanOfferingFilterElement struct { Name SavingsPlanOfferingFilterAttribute // The filter values. - Values []*string + Values []string } // Information about a property. @@ -159,7 +159,7 @@ type SavingsPlanOfferingRate struct { ProductType SavingsPlanProductType // The properties. - Properties []*SavingsPlanOfferingRateProperty + Properties []SavingsPlanOfferingRateProperty // The Savings Plan rate. Rate *string @@ -184,7 +184,7 @@ type SavingsPlanOfferingRateFilterElement struct { Name SavingsPlanRateFilterAttribute // The filter values. - Values []*string + Values []string } // Information about a property. @@ -210,7 +210,7 @@ type SavingsPlanRate struct { ProductType SavingsPlanProductType // The properties. - Properties []*SavingsPlanRateProperty + Properties []SavingsPlanRateProperty // The rate. Rate *string @@ -232,7 +232,7 @@ type SavingsPlanRateFilter struct { Name SavingsPlanRateFilterName // The filter values. - Values []*string + Values []string } // Information about a property. diff --git a/service/schemas/api_op_CreateDiscoverer.go b/service/schemas/api_op_CreateDiscoverer.go index 0c921c6e058..95d4bbcf2eb 100644 --- a/service/schemas/api_op_CreateDiscoverer.go +++ b/service/schemas/api_op_CreateDiscoverer.go @@ -38,7 +38,7 @@ type CreateDiscovererInput struct { Description *string // Tags associated with the resource. - Tags map[string]*string + Tags map[string]string } type CreateDiscovererOutput struct { @@ -59,7 +59,7 @@ type CreateDiscovererOutput struct { State types.DiscovererState // Tags associated with the resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/schemas/api_op_CreateRegistry.go b/service/schemas/api_op_CreateRegistry.go index b77c7f6d44f..085c5ad652d 100644 --- a/service/schemas/api_op_CreateRegistry.go +++ b/service/schemas/api_op_CreateRegistry.go @@ -37,7 +37,7 @@ type CreateRegistryInput struct { Description *string // Tags to associate with the registry. - Tags map[string]*string + Tags map[string]string } type CreateRegistryOutput struct { @@ -52,7 +52,7 @@ type CreateRegistryOutput struct { RegistryName *string // Tags associated with the registry. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/schemas/api_op_CreateSchema.go b/service/schemas/api_op_CreateSchema.go index 4a859e4b2b0..82601027fe6 100644 --- a/service/schemas/api_op_CreateSchema.go +++ b/service/schemas/api_op_CreateSchema.go @@ -54,7 +54,7 @@ type CreateSchemaInput struct { Description *string // Tags associated with the schema. - Tags map[string]*string + Tags map[string]string } type CreateSchemaOutput struct { @@ -75,7 +75,7 @@ type CreateSchemaOutput struct { SchemaVersion *string // Key-value pairs associated with a resource. - Tags map[string]*string + Tags map[string]string // The type of the schema. Type *string diff --git a/service/schemas/api_op_DescribeDiscoverer.go b/service/schemas/api_op_DescribeDiscoverer.go index 72d3d2e7435..63f52d6bdc6 100644 --- a/service/schemas/api_op_DescribeDiscoverer.go +++ b/service/schemas/api_op_DescribeDiscoverer.go @@ -53,7 +53,7 @@ type DescribeDiscovererOutput struct { State types.DiscovererState // Tags associated with the resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/schemas/api_op_DescribeRegistry.go b/service/schemas/api_op_DescribeRegistry.go index dc6da18e6eb..bb2704a9884 100644 --- a/service/schemas/api_op_DescribeRegistry.go +++ b/service/schemas/api_op_DescribeRegistry.go @@ -46,7 +46,7 @@ type DescribeRegistryOutput struct { RegistryName *string // Tags associated with the registry. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/schemas/api_op_DescribeSchema.go b/service/schemas/api_op_DescribeSchema.go index 9258a6e1f74..5dacb0a2bbc 100644 --- a/service/schemas/api_op_DescribeSchema.go +++ b/service/schemas/api_op_DescribeSchema.go @@ -64,7 +64,7 @@ type DescribeSchemaOutput struct { SchemaVersion *string // Tags associated with the resource. - Tags map[string]*string + Tags map[string]string // The type of the schema. Type *string diff --git a/service/schemas/api_op_GetDiscoveredSchema.go b/service/schemas/api_op_GetDiscoveredSchema.go index 3b530a7b01d..d9eb25ffb4b 100644 --- a/service/schemas/api_op_GetDiscoveredSchema.go +++ b/service/schemas/api_op_GetDiscoveredSchema.go @@ -34,7 +34,7 @@ type GetDiscoveredSchemaInput struct { // has a maximum size of 10 events. // // This member is required. - Events []*string + Events []string // The type of event. // diff --git a/service/schemas/api_op_ListDiscoverers.go b/service/schemas/api_op_ListDiscoverers.go index d5468b73c71..7015cc3b5f6 100644 --- a/service/schemas/api_op_ListDiscoverers.go +++ b/service/schemas/api_op_ListDiscoverers.go @@ -33,7 +33,7 @@ type ListDiscoverersInput struct { // the specified prefix. DiscovererIdPrefix *string - Limit *int32 + Limit int32 // The token that specifies the next page of results to return. To request the // first page, leave NextToken empty. The token will expire in 24 hours, and cannot @@ -48,7 +48,7 @@ type ListDiscoverersInput struct { type ListDiscoverersOutput struct { // An array of DiscovererSummary information. - Discoverers []*types.DiscovererSummary + Discoverers []types.DiscovererSummary // The token that specifies the next page of results to return. To request the // first page, leave NextToken empty. The token will expire in 24 hours, and cannot diff --git a/service/schemas/api_op_ListRegistries.go b/service/schemas/api_op_ListRegistries.go index 04070f0e331..22782d00ab3 100644 --- a/service/schemas/api_op_ListRegistries.go +++ b/service/schemas/api_op_ListRegistries.go @@ -28,7 +28,7 @@ func (c *Client) ListRegistries(ctx context.Context, params *ListRegistriesInput } type ListRegistriesInput struct { - Limit *int32 + Limit int32 // The token that specifies the next page of results to return. To request the // first page, leave NextToken empty. The token will expire in 24 hours, and cannot @@ -52,7 +52,7 @@ type ListRegistriesOutput struct { NextToken *string // An array of registry summaries. - Registries []*types.RegistrySummary + Registries []types.RegistrySummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/schemas/api_op_ListSchemaVersions.go b/service/schemas/api_op_ListSchemaVersions.go index 05170afe591..25168683dc0 100644 --- a/service/schemas/api_op_ListSchemaVersions.go +++ b/service/schemas/api_op_ListSchemaVersions.go @@ -39,7 +39,7 @@ type ListSchemaVersionsInput struct { // This member is required. SchemaName *string - Limit *int32 + Limit int32 // The token that specifies the next page of results to return. To request the // first page, leave NextToken empty. The token will expire in 24 hours, and cannot @@ -55,7 +55,7 @@ type ListSchemaVersionsOutput struct { NextToken *string // An array of schema version summaries. - SchemaVersions []*types.SchemaVersionSummary + SchemaVersions []types.SchemaVersionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/schemas/api_op_ListSchemas.go b/service/schemas/api_op_ListSchemas.go index 5084aa0ffb6..f329944a15a 100644 --- a/service/schemas/api_op_ListSchemas.go +++ b/service/schemas/api_op_ListSchemas.go @@ -34,7 +34,7 @@ type ListSchemasInput struct { // This member is required. RegistryName *string - Limit *int32 + Limit int32 // The token that specifies the next page of results to return. To request the // first page, leave NextToken empty. The token will expire in 24 hours, and cannot @@ -54,7 +54,7 @@ type ListSchemasOutput struct { NextToken *string // An array of schema summaries. - Schemas []*types.SchemaSummary + Schemas []types.SchemaSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/schemas/api_op_ListTagsForResource.go b/service/schemas/api_op_ListTagsForResource.go index f7f1b2ec8b2..e1adc56e51d 100644 --- a/service/schemas/api_op_ListTagsForResource.go +++ b/service/schemas/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // Key-value pairs associated with a resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/schemas/api_op_SearchSchemas.go b/service/schemas/api_op_SearchSchemas.go index cc59693cf77..25bc6b22847 100644 --- a/service/schemas/api_op_SearchSchemas.go +++ b/service/schemas/api_op_SearchSchemas.go @@ -40,7 +40,7 @@ type SearchSchemasInput struct { // This member is required. RegistryName *string - Limit *int32 + Limit int32 // The token that specifies the next page of results to return. To request the // first page, leave NextToken empty. The token will expire in 24 hours, and cannot @@ -56,7 +56,7 @@ type SearchSchemasOutput struct { NextToken *string // An array of SearchSchemaSummary information. - Schemas []*types.SearchSchemaSummary + Schemas []types.SearchSchemaSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/schemas/api_op_TagResource.go b/service/schemas/api_op_TagResource.go index db8e6aeb4c6..c0d4fe02e7e 100644 --- a/service/schemas/api_op_TagResource.go +++ b/service/schemas/api_op_TagResource.go @@ -37,7 +37,7 @@ type TagResourceInput struct { // Tags associated with the resource. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/schemas/api_op_UntagResource.go b/service/schemas/api_op_UntagResource.go index 2ae044662c8..5d8e2dc5326 100644 --- a/service/schemas/api_op_UntagResource.go +++ b/service/schemas/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // Keys of key-value pairs. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/schemas/api_op_UpdateDiscoverer.go b/service/schemas/api_op_UpdateDiscoverer.go index f190f5fe40a..49220ef3b8f 100644 --- a/service/schemas/api_op_UpdateDiscoverer.go +++ b/service/schemas/api_op_UpdateDiscoverer.go @@ -56,7 +56,7 @@ type UpdateDiscovererOutput struct { State types.DiscovererState // Tags associated with the resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/schemas/api_op_UpdateRegistry.go b/service/schemas/api_op_UpdateRegistry.go index e38f464983e..f1f19672cf4 100644 --- a/service/schemas/api_op_UpdateRegistry.go +++ b/service/schemas/api_op_UpdateRegistry.go @@ -50,7 +50,7 @@ type UpdateRegistryOutput struct { RegistryName *string // Tags associated with the registry. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/schemas/api_op_UpdateSchema.go b/service/schemas/api_op_UpdateSchema.go index 0ff99b4a0c4..f7950d22b70 100644 --- a/service/schemas/api_op_UpdateSchema.go +++ b/service/schemas/api_op_UpdateSchema.go @@ -72,7 +72,7 @@ type UpdateSchemaOutput struct { SchemaVersion *string // Key-value pairs associated with a resource. - Tags map[string]*string + Tags map[string]string // The type of the schema. Type *string diff --git a/service/schemas/deserializers.go b/service/schemas/deserializers.go index 51f16d75f96..263fd4b87ef 100644 --- a/service/schemas/deserializers.go +++ b/service/schemas/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithytime "github.com/awslabs/smithy-go/time" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" @@ -173,7 +174,7 @@ func awsRestjson1_deserializeOpDocumentCreateDiscovererOutput(v **CreateDiscover if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DiscovererArn": @@ -182,7 +183,7 @@ func awsRestjson1_deserializeOpDocumentCreateDiscovererOutput(v **CreateDiscover if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DiscovererArn = &jtv + sv.DiscovererArn = ptr.String(jtv) } case "DiscovererId": @@ -191,7 +192,7 @@ func awsRestjson1_deserializeOpDocumentCreateDiscovererOutput(v **CreateDiscover if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DiscovererId = &jtv + sv.DiscovererId = ptr.String(jtv) } case "SourceArn": @@ -200,7 +201,7 @@ func awsRestjson1_deserializeOpDocumentCreateDiscovererOutput(v **CreateDiscover if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } case "State": @@ -380,7 +381,7 @@ func awsRestjson1_deserializeOpDocumentCreateRegistryOutput(v **CreateRegistryOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "RegistryArn": @@ -389,7 +390,7 @@ func awsRestjson1_deserializeOpDocumentCreateRegistryOutput(v **CreateRegistryOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RegistryArn = &jtv + sv.RegistryArn = ptr.String(jtv) } case "RegistryName": @@ -398,7 +399,7 @@ func awsRestjson1_deserializeOpDocumentCreateRegistryOutput(v **CreateRegistryOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RegistryName = &jtv + sv.RegistryName = ptr.String(jtv) } case "tags": @@ -563,7 +564,7 @@ func awsRestjson1_deserializeOpDocumentCreateSchemaOutput(v **CreateSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LastModified": @@ -576,7 +577,7 @@ func awsRestjson1_deserializeOpDocumentCreateSchemaOutput(v **CreateSchemaOutput if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } case "SchemaArn": @@ -585,7 +586,7 @@ func awsRestjson1_deserializeOpDocumentCreateSchemaOutput(v **CreateSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } case "SchemaName": @@ -594,7 +595,7 @@ func awsRestjson1_deserializeOpDocumentCreateSchemaOutput(v **CreateSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaName = &jtv + sv.SchemaName = ptr.String(jtv) } case "SchemaVersion": @@ -603,7 +604,7 @@ func awsRestjson1_deserializeOpDocumentCreateSchemaOutput(v **CreateSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "tags": @@ -617,7 +618,7 @@ func awsRestjson1_deserializeOpDocumentCreateSchemaOutput(v **CreateSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "VersionCreatedDate": @@ -630,7 +631,7 @@ func awsRestjson1_deserializeOpDocumentCreateSchemaOutput(v **CreateSchemaOutput if err != nil { return err } - sv.VersionCreatedDate = &t + sv.VersionCreatedDate = ptr.Time(t) } default: @@ -1290,7 +1291,7 @@ func awsRestjson1_deserializeOpDocumentDescribeCodeBindingOutput(v **DescribeCod if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case "LastModified": @@ -1303,7 +1304,7 @@ func awsRestjson1_deserializeOpDocumentDescribeCodeBindingOutput(v **DescribeCod if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } case "SchemaVersion": @@ -1312,7 +1313,7 @@ func awsRestjson1_deserializeOpDocumentDescribeCodeBindingOutput(v **DescribeCod if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "Status": @@ -1487,7 +1488,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDiscovererOutput(v **DescribeDisc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DiscovererArn": @@ -1496,7 +1497,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDiscovererOutput(v **DescribeDisc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DiscovererArn = &jtv + sv.DiscovererArn = ptr.String(jtv) } case "DiscovererId": @@ -1505,7 +1506,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDiscovererOutput(v **DescribeDisc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DiscovererId = &jtv + sv.DiscovererId = ptr.String(jtv) } case "SourceArn": @@ -1514,7 +1515,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDiscovererOutput(v **DescribeDisc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } case "State": @@ -1694,7 +1695,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRegistryOutput(v **DescribeRegist if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "RegistryArn": @@ -1703,7 +1704,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRegistryOutput(v **DescribeRegist if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RegistryArn = &jtv + sv.RegistryArn = ptr.String(jtv) } case "RegistryName": @@ -1712,7 +1713,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRegistryOutput(v **DescribeRegist if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RegistryName = &jtv + sv.RegistryName = ptr.String(jtv) } case "tags": @@ -1883,7 +1884,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSchemaOutput(v **DescribeSchemaOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "Description": @@ -1892,7 +1893,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSchemaOutput(v **DescribeSchemaOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LastModified": @@ -1905,7 +1906,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSchemaOutput(v **DescribeSchemaOu if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } case "SchemaArn": @@ -1914,7 +1915,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSchemaOutput(v **DescribeSchemaOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } case "SchemaName": @@ -1923,7 +1924,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSchemaOutput(v **DescribeSchemaOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaName = &jtv + sv.SchemaName = ptr.String(jtv) } case "SchemaVersion": @@ -1932,7 +1933,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSchemaOutput(v **DescribeSchemaOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "tags": @@ -1946,7 +1947,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSchemaOutput(v **DescribeSchemaOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "VersionCreatedDate": @@ -1959,7 +1960,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSchemaOutput(v **DescribeSchemaOu if err != nil { return err } - sv.VersionCreatedDate = &t + sv.VersionCreatedDate = ptr.Time(t) } default: @@ -2128,7 +2129,7 @@ func awsRestjson1_deserializeOpDocumentExportSchemaOutput(v **ExportSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "SchemaArn": @@ -2137,7 +2138,7 @@ func awsRestjson1_deserializeOpDocumentExportSchemaOutput(v **ExportSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } case "SchemaName": @@ -2146,7 +2147,7 @@ func awsRestjson1_deserializeOpDocumentExportSchemaOutput(v **ExportSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaName = &jtv + sv.SchemaName = ptr.String(jtv) } case "SchemaVersion": @@ -2155,7 +2156,7 @@ func awsRestjson1_deserializeOpDocumentExportSchemaOutput(v **ExportSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "Type": @@ -2164,7 +2165,7 @@ func awsRestjson1_deserializeOpDocumentExportSchemaOutput(v **ExportSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -2445,7 +2446,7 @@ func awsRestjson1_deserializeOpDocumentGetDiscoveredSchemaOutput(v **GetDiscover if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } default: @@ -2611,7 +2612,7 @@ func awsRestjson1_deserializeOpDocumentGetResourcePolicyOutput(v **GetResourcePo if !ok { return fmt.Errorf("expected SynthesizedJson__string to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "RevisionId": @@ -2620,7 +2621,7 @@ func awsRestjson1_deserializeOpDocumentGetResourcePolicyOutput(v **GetResourcePo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } default: @@ -2788,7 +2789,7 @@ func awsRestjson1_deserializeOpDocumentListDiscoverersOutput(v **ListDiscoverers if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2951,7 +2952,7 @@ func awsRestjson1_deserializeOpDocumentListRegistriesOutput(v **ListRegistriesOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Registries": @@ -3119,7 +3120,7 @@ func awsRestjson1_deserializeOpDocumentListSchemasOutput(v **ListSchemasOutput, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Schemas": @@ -3290,7 +3291,7 @@ func awsRestjson1_deserializeOpDocumentListSchemaVersionsOutput(v **ListSchemaVe if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SchemaVersions": @@ -3624,7 +3625,7 @@ func awsRestjson1_deserializeOpDocumentPutCodeBindingOutput(v **PutCodeBindingOu if err != nil { return err } - sv.CreationDate = &t + sv.CreationDate = ptr.Time(t) } case "LastModified": @@ -3637,7 +3638,7 @@ func awsRestjson1_deserializeOpDocumentPutCodeBindingOutput(v **PutCodeBindingOu if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } case "SchemaVersion": @@ -3646,7 +3647,7 @@ func awsRestjson1_deserializeOpDocumentPutCodeBindingOutput(v **PutCodeBindingOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "Status": @@ -3824,7 +3825,7 @@ func awsRestjson1_deserializeOpDocumentPutResourcePolicyOutput(v **PutResourcePo if !ok { return fmt.Errorf("expected SynthesizedJson__string to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "RevisionId": @@ -3833,7 +3834,7 @@ func awsRestjson1_deserializeOpDocumentPutResourcePolicyOutput(v **PutResourcePo if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } default: @@ -3996,7 +3997,7 @@ func awsRestjson1_deserializeOpDocumentSearchSchemasOutput(v **SearchSchemasOutp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Schemas": @@ -4167,7 +4168,7 @@ func awsRestjson1_deserializeOpDocumentStartDiscovererOutput(v **StartDiscoverer if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DiscovererId = &jtv + sv.DiscovererId = ptr.String(jtv) } case "State": @@ -4342,7 +4343,7 @@ func awsRestjson1_deserializeOpDocumentStopDiscovererOutput(v **StopDiscovererOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DiscovererId = &jtv + sv.DiscovererId = ptr.String(jtv) } case "State": @@ -4701,7 +4702,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDiscovererOutput(v **UpdateDiscover if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DiscovererArn": @@ -4710,7 +4711,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDiscovererOutput(v **UpdateDiscover if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DiscovererArn = &jtv + sv.DiscovererArn = ptr.String(jtv) } case "DiscovererId": @@ -4719,7 +4720,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDiscovererOutput(v **UpdateDiscover if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DiscovererId = &jtv + sv.DiscovererId = ptr.String(jtv) } case "SourceArn": @@ -4728,7 +4729,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDiscovererOutput(v **UpdateDiscover if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } case "State": @@ -4908,7 +4909,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRegistryOutput(v **UpdateRegistryOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "RegistryArn": @@ -4917,7 +4918,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRegistryOutput(v **UpdateRegistryOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RegistryArn = &jtv + sv.RegistryArn = ptr.String(jtv) } case "RegistryName": @@ -4926,7 +4927,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRegistryOutput(v **UpdateRegistryOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RegistryName = &jtv + sv.RegistryName = ptr.String(jtv) } case "tags": @@ -5094,7 +5095,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSchemaOutput(v **UpdateSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LastModified": @@ -5107,7 +5108,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSchemaOutput(v **UpdateSchemaOutput if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } case "SchemaArn": @@ -5116,7 +5117,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSchemaOutput(v **UpdateSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } case "SchemaName": @@ -5125,7 +5126,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSchemaOutput(v **UpdateSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaName = &jtv + sv.SchemaName = ptr.String(jtv) } case "SchemaVersion": @@ -5134,7 +5135,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSchemaOutput(v **UpdateSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "tags": @@ -5148,7 +5149,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSchemaOutput(v **UpdateSchemaOutput if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "VersionCreatedDate": @@ -5161,7 +5162,7 @@ func awsRestjson1_deserializeOpDocumentUpdateSchemaOutput(v **UpdateSchemaOutput if err != nil { return err } - sv.VersionCreatedDate = &t + sv.VersionCreatedDate = ptr.Time(t) } default: @@ -5533,7 +5534,7 @@ func awsRestjson1_deserializeErrorUnauthorizedException(response *smithyhttp.Res return output } -func awsRestjson1_deserializeDocument__listOfDiscovererSummary(v *[]*types.DiscovererSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfDiscovererSummary(v *[]types.DiscovererSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5546,18 +5547,20 @@ func awsRestjson1_deserializeDocument__listOfDiscovererSummary(v *[]*types.Disco return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DiscovererSummary + var cv []types.DiscovererSummary if *v == nil { - cv = []*types.DiscovererSummary{} + cv = []types.DiscovererSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DiscovererSummary - if err := awsRestjson1_deserializeDocumentDiscovererSummary(&col, value); err != nil { + var col types.DiscovererSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDiscovererSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5565,7 +5568,7 @@ func awsRestjson1_deserializeDocument__listOfDiscovererSummary(v *[]*types.Disco return nil } -func awsRestjson1_deserializeDocument__listOfRegistrySummary(v *[]*types.RegistrySummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfRegistrySummary(v *[]types.RegistrySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5578,18 +5581,20 @@ func awsRestjson1_deserializeDocument__listOfRegistrySummary(v *[]*types.Registr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RegistrySummary + var cv []types.RegistrySummary if *v == nil { - cv = []*types.RegistrySummary{} + cv = []types.RegistrySummary{} } else { cv = *v } for _, value := range shape { - var col *types.RegistrySummary - if err := awsRestjson1_deserializeDocumentRegistrySummary(&col, value); err != nil { + var col types.RegistrySummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentRegistrySummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5597,7 +5602,7 @@ func awsRestjson1_deserializeDocument__listOfRegistrySummary(v *[]*types.Registr return nil } -func awsRestjson1_deserializeDocument__listOfSchemaSummary(v *[]*types.SchemaSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfSchemaSummary(v *[]types.SchemaSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5610,18 +5615,20 @@ func awsRestjson1_deserializeDocument__listOfSchemaSummary(v *[]*types.SchemaSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SchemaSummary + var cv []types.SchemaSummary if *v == nil { - cv = []*types.SchemaSummary{} + cv = []types.SchemaSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SchemaSummary - if err := awsRestjson1_deserializeDocumentSchemaSummary(&col, value); err != nil { + var col types.SchemaSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentSchemaSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5629,7 +5636,7 @@ func awsRestjson1_deserializeDocument__listOfSchemaSummary(v *[]*types.SchemaSum return nil } -func awsRestjson1_deserializeDocument__listOfSchemaVersionSummary(v *[]*types.SchemaVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfSchemaVersionSummary(v *[]types.SchemaVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5642,18 +5649,20 @@ func awsRestjson1_deserializeDocument__listOfSchemaVersionSummary(v *[]*types.Sc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SchemaVersionSummary + var cv []types.SchemaVersionSummary if *v == nil { - cv = []*types.SchemaVersionSummary{} + cv = []types.SchemaVersionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SchemaVersionSummary - if err := awsRestjson1_deserializeDocumentSchemaVersionSummary(&col, value); err != nil { + var col types.SchemaVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentSchemaVersionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5661,7 +5670,7 @@ func awsRestjson1_deserializeDocument__listOfSchemaVersionSummary(v *[]*types.Sc return nil } -func awsRestjson1_deserializeDocument__listOfSearchSchemaSummary(v *[]*types.SearchSchemaSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfSearchSchemaSummary(v *[]types.SearchSchemaSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5674,18 +5683,20 @@ func awsRestjson1_deserializeDocument__listOfSearchSchemaSummary(v *[]*types.Sea return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SearchSchemaSummary + var cv []types.SearchSchemaSummary if *v == nil { - cv = []*types.SearchSchemaSummary{} + cv = []types.SearchSchemaSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SearchSchemaSummary - if err := awsRestjson1_deserializeDocumentSearchSchemaSummary(&col, value); err != nil { + var col types.SearchSchemaSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentSearchSchemaSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5693,7 +5704,7 @@ func awsRestjson1_deserializeDocument__listOfSearchSchemaSummary(v *[]*types.Sea return nil } -func awsRestjson1_deserializeDocument__listOfSearchSchemaVersionSummary(v *[]*types.SearchSchemaVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfSearchSchemaVersionSummary(v *[]types.SearchSchemaVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5706,18 +5717,20 @@ func awsRestjson1_deserializeDocument__listOfSearchSchemaVersionSummary(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SearchSchemaVersionSummary + var cv []types.SearchSchemaVersionSummary if *v == nil { - cv = []*types.SearchSchemaVersionSummary{} + cv = []types.SearchSchemaVersionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SearchSchemaVersionSummary - if err := awsRestjson1_deserializeDocumentSearchSchemaVersionSummary(&col, value); err != nil { + var col types.SearchSchemaVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentSearchSchemaVersionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5753,7 +5766,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -5762,7 +5775,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5802,7 +5815,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -5811,7 +5824,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5851,7 +5864,7 @@ func awsRestjson1_deserializeDocumentDiscovererSummary(v **types.DiscovererSumma if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DiscovererArn = &jtv + sv.DiscovererArn = ptr.String(jtv) } case "DiscovererId": @@ -5860,7 +5873,7 @@ func awsRestjson1_deserializeDocumentDiscovererSummary(v **types.DiscovererSumma if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DiscovererId = &jtv + sv.DiscovererId = ptr.String(jtv) } case "SourceArn": @@ -5869,7 +5882,7 @@ func awsRestjson1_deserializeDocumentDiscovererSummary(v **types.DiscovererSumma if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceArn = &jtv + sv.SourceArn = ptr.String(jtv) } case "State": @@ -5923,7 +5936,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -5932,7 +5945,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5972,7 +5985,7 @@ func awsRestjson1_deserializeDocumentGoneException(v **types.GoneException, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -5981,7 +5994,7 @@ func awsRestjson1_deserializeDocumentGoneException(v **types.GoneException, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6021,7 +6034,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -6030,7 +6043,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6070,7 +6083,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -6079,7 +6092,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6119,7 +6132,7 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -6128,7 +6141,7 @@ func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.Preco if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6168,7 +6181,7 @@ func awsRestjson1_deserializeDocumentRegistrySummary(v **types.RegistrySummary, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RegistryArn = &jtv + sv.RegistryArn = ptr.String(jtv) } case "RegistryName": @@ -6177,7 +6190,7 @@ func awsRestjson1_deserializeDocumentRegistrySummary(v **types.RegistrySummary, if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RegistryName = &jtv + sv.RegistryName = ptr.String(jtv) } case "tags": @@ -6226,7 +6239,7 @@ func awsRestjson1_deserializeDocumentSchemaSummary(v **types.SchemaSummary, valu if err != nil { return err } - sv.LastModified = &t + sv.LastModified = ptr.Time(t) } case "SchemaArn": @@ -6235,7 +6248,7 @@ func awsRestjson1_deserializeDocumentSchemaSummary(v **types.SchemaSummary, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } case "SchemaName": @@ -6244,7 +6257,7 @@ func awsRestjson1_deserializeDocumentSchemaSummary(v **types.SchemaSummary, valu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaName = &jtv + sv.SchemaName = ptr.String(jtv) } case "tags": @@ -6262,7 +6275,7 @@ func awsRestjson1_deserializeDocumentSchemaSummary(v **types.SchemaSummary, valu if err != nil { return err } - sv.VersionCount = &i64 + sv.VersionCount = i64 } default: @@ -6302,7 +6315,7 @@ func awsRestjson1_deserializeDocumentSchemaVersionSummary(v **types.SchemaVersio if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } case "SchemaName": @@ -6311,7 +6324,7 @@ func awsRestjson1_deserializeDocumentSchemaVersionSummary(v **types.SchemaVersio if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaName = &jtv + sv.SchemaName = ptr.String(jtv) } case "SchemaVersion": @@ -6320,7 +6333,7 @@ func awsRestjson1_deserializeDocumentSchemaVersionSummary(v **types.SchemaVersio if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "Type": @@ -6369,7 +6382,7 @@ func awsRestjson1_deserializeDocumentSearchSchemaSummary(v **types.SearchSchemaS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.RegistryName = &jtv + sv.RegistryName = ptr.String(jtv) } case "SchemaArn": @@ -6378,7 +6391,7 @@ func awsRestjson1_deserializeDocumentSearchSchemaSummary(v **types.SearchSchemaS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaArn = &jtv + sv.SchemaArn = ptr.String(jtv) } case "SchemaName": @@ -6387,7 +6400,7 @@ func awsRestjson1_deserializeDocumentSearchSchemaSummary(v **types.SearchSchemaS if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaName = &jtv + sv.SchemaName = ptr.String(jtv) } case "SchemaVersions": @@ -6436,7 +6449,7 @@ func awsRestjson1_deserializeDocumentSearchSchemaVersionSummary(v **types.Search if err != nil { return err } - sv.CreatedDate = &t + sv.CreatedDate = ptr.Time(t) } case "SchemaVersion": @@ -6445,7 +6458,7 @@ func awsRestjson1_deserializeDocumentSearchSchemaVersionSummary(v **types.Search if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "Type": @@ -6494,7 +6507,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -6503,7 +6516,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6515,7 +6528,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi return nil } -func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6528,21 +6541,21 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -6579,7 +6592,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -6588,7 +6601,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6628,7 +6641,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -6637,7 +6650,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/schemas/go.mod b/service/schemas/go.mod index cf3ccb5d0cd..7977668f77a 100644 --- a/service/schemas/go.mod +++ b/service/schemas/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/schemas go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/schemas/serializers.go b/service/schemas/serializers.go index 37256a00b68..773e3163d8b 100644 --- a/service/schemas/serializers.go +++ b/service/schemas/serializers.go @@ -160,13 +160,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateRegistryInput(v *CreateRegistryIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } @@ -256,25 +253,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateSchemaInput(v *CreateSchemaInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } } - if v.SchemaName == nil { + if v.SchemaName == nil || len(*v.SchemaName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} } if v.SchemaName != nil { - if len(*v.SchemaName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} - } if err := encoder.SetURI("SchemaName").String(*v.SchemaName); err != nil { return err } @@ -363,13 +354,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDiscovererInput(v *DeleteDiscover return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DiscovererId == nil { + if v.DiscovererId == nil || len(*v.DiscovererId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DiscovererId must not be empty")} } if v.DiscovererId != nil { - if len(*v.DiscovererId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DiscovererId must not be empty")} - } if err := encoder.SetURI("DiscovererId").String(*v.DiscovererId); err != nil { return err } @@ -429,13 +417,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRegistryInput(v *DeleteRegistryIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } @@ -553,25 +538,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSchemaInput(v *DeleteSchemaInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } } - if v.SchemaName == nil { + if v.SchemaName == nil || len(*v.SchemaName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} } if v.SchemaName != nil { - if len(*v.SchemaName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} - } if err := encoder.SetURI("SchemaName").String(*v.SchemaName); err != nil { return err } @@ -631,37 +610,28 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSchemaVersionInput(v *DeleteSchem return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } } - if v.SchemaName == nil { + if v.SchemaName == nil || len(*v.SchemaName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} } if v.SchemaName != nil { - if len(*v.SchemaName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} - } if err := encoder.SetURI("SchemaName").String(*v.SchemaName); err != nil { return err } } - if v.SchemaVersion == nil { + if v.SchemaVersion == nil || len(*v.SchemaVersion) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaVersion must not be empty")} } if v.SchemaVersion != nil { - if len(*v.SchemaVersion) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaVersion must not be empty")} - } if err := encoder.SetURI("SchemaVersion").String(*v.SchemaVersion); err != nil { return err } @@ -721,37 +691,28 @@ func awsRestjson1_serializeOpHttpBindingsDescribeCodeBindingInput(v *DescribeCod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Language == nil { + if v.Language == nil || len(*v.Language) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Language must not be empty")} } if v.Language != nil { - if len(*v.Language) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Language must not be empty")} - } if err := encoder.SetURI("Language").String(*v.Language); err != nil { return err } } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } } - if v.SchemaName == nil { + if v.SchemaName == nil || len(*v.SchemaName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} } if v.SchemaName != nil { - if len(*v.SchemaName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} - } if err := encoder.SetURI("SchemaName").String(*v.SchemaName); err != nil { return err } @@ -815,13 +776,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDiscovererInput(v *DescribeDisc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DiscovererId == nil { + if v.DiscovererId == nil || len(*v.DiscovererId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DiscovererId must not be empty")} } if v.DiscovererId != nil { - if len(*v.DiscovererId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DiscovererId must not be empty")} - } if err := encoder.SetURI("DiscovererId").String(*v.DiscovererId); err != nil { return err } @@ -881,13 +839,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeRegistryInput(v *DescribeRegist return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } @@ -947,25 +902,19 @@ func awsRestjson1_serializeOpHttpBindingsDescribeSchemaInput(v *DescribeSchemaIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } } - if v.SchemaName == nil { + if v.SchemaName == nil || len(*v.SchemaName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} } if v.SchemaName != nil { - if len(*v.SchemaName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} - } if err := encoder.SetURI("SchemaName").String(*v.SchemaName); err != nil { return err } @@ -1029,25 +978,19 @@ func awsRestjson1_serializeOpHttpBindingsExportSchemaInput(v *ExportSchemaInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } } - if v.SchemaName == nil { + if v.SchemaName == nil || len(*v.SchemaName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} } if v.SchemaName != nil { - if len(*v.SchemaName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} - } if err := encoder.SetURI("SchemaName").String(*v.SchemaName); err != nil { return err } @@ -1115,37 +1058,28 @@ func awsRestjson1_serializeOpHttpBindingsGetCodeBindingSourceInput(v *GetCodeBin return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Language == nil { + if v.Language == nil || len(*v.Language) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Language must not be empty")} } if v.Language != nil { - if len(*v.Language) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Language must not be empty")} - } if err := encoder.SetURI("Language").String(*v.Language); err != nil { return err } } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } } - if v.SchemaName == nil { + if v.SchemaName == nil || len(*v.SchemaName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} } if v.SchemaName != nil { - if len(*v.SchemaName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} - } if err := encoder.SetURI("SchemaName").String(*v.SchemaName); err != nil { return err } @@ -1351,8 +1285,8 @@ func awsRestjson1_serializeOpHttpBindingsListDiscoverersInput(v *ListDiscoverers encoder.SetQuery("discovererIdPrefix").String(*v.DiscovererIdPrefix) } - if v.Limit != nil { - encoder.SetQuery("limit").Integer(*v.Limit) + if v.Limit != 0 { + encoder.SetQuery("limit").Integer(v.Limit) } if v.NextToken != nil { @@ -1417,8 +1351,8 @@ func awsRestjson1_serializeOpHttpBindingsListRegistriesInput(v *ListRegistriesIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Limit != nil { - encoder.SetQuery("limit").Integer(*v.Limit) + if v.Limit != 0 { + encoder.SetQuery("limit").Integer(v.Limit) } if v.NextToken != nil { @@ -1487,21 +1421,18 @@ func awsRestjson1_serializeOpHttpBindingsListSchemasInput(v *ListSchemasInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Limit != nil { - encoder.SetQuery("limit").Integer(*v.Limit) + if v.Limit != 0 { + encoder.SetQuery("limit").Integer(v.Limit) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } @@ -1565,33 +1496,27 @@ func awsRestjson1_serializeOpHttpBindingsListSchemaVersionsInput(v *ListSchemaVe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Limit != nil { - encoder.SetQuery("limit").Integer(*v.Limit) + if v.Limit != 0 { + encoder.SetQuery("limit").Integer(v.Limit) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } } - if v.SchemaName == nil { + if v.SchemaName == nil || len(*v.SchemaName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} } if v.SchemaName != nil { - if len(*v.SchemaName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} - } if err := encoder.SetURI("SchemaName").String(*v.SchemaName); err != nil { return err } @@ -1651,13 +1576,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -1717,37 +1639,28 @@ func awsRestjson1_serializeOpHttpBindingsPutCodeBindingInput(v *PutCodeBindingIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Language == nil { + if v.Language == nil || len(*v.Language) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Language must not be empty")} } if v.Language != nil { - if len(*v.Language) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Language must not be empty")} - } if err := encoder.SetURI("Language").String(*v.Language); err != nil { return err } } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } } - if v.SchemaName == nil { + if v.SchemaName == nil || len(*v.SchemaName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} } if v.SchemaName != nil { - if len(*v.SchemaName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} - } if err := encoder.SetURI("SchemaName").String(*v.SchemaName); err != nil { return err } @@ -1901,21 +1814,18 @@ func awsRestjson1_serializeOpHttpBindingsSearchSchemasInput(v *SearchSchemasInpu encoder.SetQuery("keywords").String(*v.Keywords) } - if v.Limit != nil { - encoder.SetQuery("limit").Integer(*v.Limit) + if v.Limit != 0 { + encoder.SetQuery("limit").Integer(v.Limit) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } @@ -1975,13 +1885,10 @@ func awsRestjson1_serializeOpHttpBindingsStartDiscovererInput(v *StartDiscoverer return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DiscovererId == nil { + if v.DiscovererId == nil || len(*v.DiscovererId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DiscovererId must not be empty")} } if v.DiscovererId != nil { - if len(*v.DiscovererId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DiscovererId must not be empty")} - } if err := encoder.SetURI("DiscovererId").String(*v.DiscovererId); err != nil { return err } @@ -2041,13 +1948,10 @@ func awsRestjson1_serializeOpHttpBindingsStopDiscovererInput(v *StopDiscovererIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DiscovererId == nil { + if v.DiscovererId == nil || len(*v.DiscovererId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DiscovererId must not be empty")} } if v.DiscovererId != nil { - if len(*v.DiscovererId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DiscovererId must not be empty")} - } if err := encoder.SetURI("DiscovererId").String(*v.DiscovererId); err != nil { return err } @@ -2118,13 +2022,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2198,13 +2099,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2212,10 +2110,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -2284,13 +2179,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDiscovererInput(v *UpdateDiscover return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DiscovererId == nil { + if v.DiscovererId == nil || len(*v.DiscovererId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DiscovererId must not be empty")} } if v.DiscovererId != nil { - if len(*v.DiscovererId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DiscovererId must not be empty")} - } if err := encoder.SetURI("DiscovererId").String(*v.DiscovererId); err != nil { return err } @@ -2373,13 +2265,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRegistryInput(v *UpdateRegistryIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } @@ -2462,25 +2351,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateSchemaInput(v *UpdateSchemaInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.RegistryName == nil { + if v.RegistryName == nil || len(*v.RegistryName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} } if v.RegistryName != nil { - if len(*v.RegistryName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member RegistryName must not be empty")} - } if err := encoder.SetURI("RegistryName").String(*v.RegistryName); err != nil { return err } } - if v.SchemaName == nil { + if v.SchemaName == nil || len(*v.SchemaName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} } if v.SchemaName != nil { - if len(*v.SchemaName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SchemaName must not be empty")} - } if err := encoder.SetURI("SchemaName").String(*v.SchemaName); err != nil { return err } @@ -2516,32 +2399,24 @@ func awsRestjson1_serializeOpDocumentUpdateSchemaInput(v *UpdateSchemaInput, val return nil } -func awsRestjson1_serializeDocument__listOfGetDiscoveredSchemaVersionItemInput(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfGetDiscoveredSchemaVersionItemInput(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTags(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/schemas/types/types.go b/service/schemas/types/types.go index 1374dfe7f29..0769e783471 100644 --- a/service/schemas/types/types.go +++ b/service/schemas/types/types.go @@ -21,7 +21,7 @@ type DiscovererSummary struct { State DiscovererState // Tags associated with the resource. - Tags map[string]*string + Tags map[string]string } type RegistrySummary struct { @@ -33,7 +33,7 @@ type RegistrySummary struct { RegistryName *string // Tags associated with the registry. - Tags map[string]*string + Tags map[string]string } // A summary of schema details. @@ -49,10 +49,10 @@ type SchemaSummary struct { SchemaName *string // Tags associated with the schema. - Tags map[string]*string + Tags map[string]string // The number of versions available for the schema. - VersionCount *int64 + VersionCount int64 } type SchemaVersionSummary struct { @@ -82,7 +82,7 @@ type SearchSchemaSummary struct { SchemaName *string // An array of schema version summaries. - SchemaVersions []*SearchSchemaVersionSummary + SchemaVersions []SearchSchemaVersionSummary } type SearchSchemaVersionSummary struct { diff --git a/service/secretsmanager/api_op_CreateSecret.go b/service/secretsmanager/api_op_CreateSecret.go index ffb832c628a..f1890625e77 100644 --- a/service/secretsmanager/api_op_CreateSecret.go +++ b/service/secretsmanager/api_op_CreateSecret.go @@ -233,7 +233,7 @@ type CreateSecretInput struct { // resources, remember other services might have restrictions on allowed // characters. Generally allowed characters: letters, spaces, and numbers // representable in UTF-8, plus the following special characters: + - = . _ : / @. - Tags []*types.Tag + Tags []types.Tag } type CreateSecretOutput struct { diff --git a/service/secretsmanager/api_op_DeleteSecret.go b/service/secretsmanager/api_op_DeleteSecret.go index cec082108c0..f00d3bdb73f 100644 --- a/service/secretsmanager/api_op_DeleteSecret.go +++ b/service/secretsmanager/api_op_DeleteSecret.go @@ -95,13 +95,13 @@ type DeleteSecretInput struct { // the RecoveryWindowInDays parameter. If you delete a secret with the // ForceDeleteWithouRecovery parameter, then you have no opportunity to recover the // secret. It is permanently lost. - ForceDeleteWithoutRecovery *bool + ForceDeleteWithoutRecovery bool // (Optional) Specifies the number of days that Secrets Manager waits before it can // delete the secret. You can't use both this parameter and the // ForceDeleteWithoutRecovery parameter in the same API call. This value can range // from 7 to 30 days. The default value is 30. - RecoveryWindowInDays *int64 + RecoveryWindowInDays int64 } type DeleteSecretOutput struct { diff --git a/service/secretsmanager/api_op_DescribeSecret.go b/service/secretsmanager/api_op_DescribeSecret.go index 1939b4a4e64..30ba221083f 100644 --- a/service/secretsmanager/api_op_DescribeSecret.go +++ b/service/secretsmanager/api_op_DescribeSecret.go @@ -116,7 +116,7 @@ type DescribeSecretOutput struct { // Specifies whether automatic rotation is enabled for this secret. To enable // rotation, use RotateSecret with AutomaticallyRotateAfterDays set to a value // greater than 0. To disable rotation, use CancelRotateSecret. - RotationEnabled *bool + RotationEnabled bool // The ARN of a Lambda function that's invoked by Secrets Manager to rotate the // secret either automatically per the schedule or manually by a call to @@ -128,14 +128,14 @@ type DescribeSecretOutput struct { // The list of user-defined tags that are associated with the secret. To add tags // to a secret, use TagResource. To remove tags, use UntagResource. - Tags []*types.Tag + Tags []types.Tag // A list of all of the currently assigned VersionStage staging labels and the // VersionId that each is attached to. Staging labels are used to keep track of the // different versions during the rotation process. A version that does not have any // staging labels attached is considered deprecated and subject to deletion. Such // versions are not included in this list. - VersionIdsToStages map[string][]*string + VersionIdsToStages map[string][]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/secretsmanager/api_op_GetRandomPassword.go b/service/secretsmanager/api_op_GetRandomPassword.go index c77af8765c5..5c76f584e71 100644 --- a/service/secretsmanager/api_op_GetRandomPassword.go +++ b/service/secretsmanager/api_op_GetRandomPassword.go @@ -42,11 +42,11 @@ type GetRandomPasswordInput struct { // Specifies that the generated password should not include lowercase letters. The // default if you do not include this switch parameter is that lowercase letters // can be included. - ExcludeLowercase *bool + ExcludeLowercase bool // Specifies that the generated password should not include digits. The default if // you do not include this switch parameter is that digits can be included. - ExcludeNumbers *bool + ExcludeNumbers bool // Specifies that the generated password should not include punctuation characters. // The default if you do not include this switch parameter is that punctuation @@ -54,26 +54,26 @@ type GetRandomPasswordInput struct { // can be included in the generated password if you don't explicitly exclude them // with ExcludeCharacters or ExcludePunctuation: ! " # $ % & ' ( ) * + , - . / : ; // < = > ? @ [ \ ] ^ _ ` { | } ~ - ExcludePunctuation *bool + ExcludePunctuation bool // Specifies that the generated password should not include uppercase letters. The // default if you do not include this switch parameter is that uppercase letters // can be included. - ExcludeUppercase *bool + ExcludeUppercase bool // Specifies that the generated password can include the space character. The // default if you do not include this switch parameter is that the space character // is not included. - IncludeSpace *bool + IncludeSpace bool // The desired length of the generated password. The default value if you do not // include this parameter is 32 characters. - PasswordLength *int64 + PasswordLength int64 // A boolean value that specifies whether the generated password must include at // least one of every allowed character type. The default value is True and the // operation requires at least one of every character type. - RequireEachIncludedType *bool + RequireEachIncludedType bool } type GetRandomPasswordOutput struct { diff --git a/service/secretsmanager/api_op_GetSecretValue.go b/service/secretsmanager/api_op_GetSecretValue.go index 021decbd874..807992cc5b3 100644 --- a/service/secretsmanager/api_op_GetSecretValue.go +++ b/service/secretsmanager/api_op_GetSecretValue.go @@ -123,7 +123,7 @@ type GetSecretValueOutput struct { // A list of all of the staging labels currently attached to this version of the // secret. - VersionStages []*string + VersionStages []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/secretsmanager/api_op_ListSecretVersionIds.go b/service/secretsmanager/api_op_ListSecretVersionIds.go index f7e2ce90ae6..f03628a88c2 100644 --- a/service/secretsmanager/api_op_ListSecretVersionIds.go +++ b/service/secretsmanager/api_op_ListSecretVersionIds.go @@ -69,7 +69,7 @@ type ListSecretVersionIdsInput struct { // (Optional) Specifies that you want the results to include versions that do not // have any staging labels attached to them. Such versions are considered // deprecated and are subject to deletion by Secrets Manager as needed. - IncludeDeprecated *bool + IncludeDeprecated bool // (Optional) Limits the number of results you want to include in the response. If // you don't include this parameter, it defaults to a value that's specific to the @@ -80,7 +80,7 @@ type ListSecretVersionIdsInput struct { // results than the maximum even when there are more results available. You should // check NextToken after every operation to ensure that you receive all of the // results. - MaxResults *int32 + MaxResults int32 // (Optional) Use this parameter in a request if you receive a NextToken response // in a previous request indicating there's more output available. In a subsequent @@ -112,7 +112,7 @@ type ListSecretVersionIdsOutput struct { NextToken *string // The list of the currently available versions of the specified secret. - Versions []*types.SecretVersionsListEntry + Versions []types.SecretVersionsListEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/secretsmanager/api_op_ListSecrets.go b/service/secretsmanager/api_op_ListSecrets.go index 18897469962..760aa2aa4da 100644 --- a/service/secretsmanager/api_op_ListSecrets.go +++ b/service/secretsmanager/api_op_ListSecrets.go @@ -47,7 +47,7 @@ func (c *Client) ListSecrets(ctx context.Context, params *ListSecretsInput, optF type ListSecretsInput struct { // Lists the secret request filters. - Filters []*types.Filter + Filters []types.Filter // (Optional) Limits the number of results you want to include in the response. If // you don't include this parameter, it defaults to a value that's specific to the @@ -58,7 +58,7 @@ type ListSecretsInput struct { // results than the maximum even when there are more results available. You should // check NextToken after every operation to ensure that you receive all of the // results. - MaxResults *int32 + MaxResults int32 // (Optional) Use this parameter in a request if you receive a NextToken response // in a previous request indicating there's more output available. In a subsequent @@ -82,7 +82,7 @@ type ListSecretsOutput struct { NextToken *string // A list of the secrets in the account. - SecretList []*types.SecretListEntry + SecretList []types.SecretListEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/secretsmanager/api_op_PutResourcePolicy.go b/service/secretsmanager/api_op_PutResourcePolicy.go index 972df4b8bbf..f91b5a1a254 100644 --- a/service/secretsmanager/api_op_PutResourcePolicy.go +++ b/service/secretsmanager/api_op_PutResourcePolicy.go @@ -88,7 +88,7 @@ type PutResourcePolicyInput struct { // Makes an optional API call to Zelkova to validate the Resource Policy to prevent // broad access to your secret. - BlockPublicPolicy *bool + BlockPublicPolicy bool } type PutResourcePolicyOutput struct { diff --git a/service/secretsmanager/api_op_PutSecretValue.go b/service/secretsmanager/api_op_PutSecretValue.go index e6d60e81604..83d3266b963 100644 --- a/service/secretsmanager/api_op_PutSecretValue.go +++ b/service/secretsmanager/api_op_PutSecretValue.go @@ -186,7 +186,7 @@ type PutSecretValueInput struct { // is automatically removed from the other version and attached to this version. If // you do not specify a value for VersionStages then Secrets Manager automatically // moves the staging label AWSCURRENT to this new version. - VersionStages []*string + VersionStages []string } type PutSecretValueOutput struct { @@ -204,7 +204,7 @@ type PutSecretValueOutput struct { // The list of staging labels that are currently attached to this version of the // secret. Staging labels are used to track a version as it progresses through the // secret rotation process. - VersionStages []*string + VersionStages []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/secretsmanager/api_op_TagResource.go b/service/secretsmanager/api_op_TagResource.go index c02fbb4ab03..98f9e7697a3 100644 --- a/service/secretsmanager/api_op_TagResource.go +++ b/service/secretsmanager/api_op_TagResource.go @@ -102,7 +102,7 @@ type TagResourceInput struct { // Key="Key1",Value="Value1",Key="Key2",Value="Value2"[,…] // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/secretsmanager/api_op_UntagResource.go b/service/secretsmanager/api_op_UntagResource.go index e83fa540237..d110e575cc9 100644 --- a/service/secretsmanager/api_op_UntagResource.go +++ b/service/secretsmanager/api_op_UntagResource.go @@ -75,7 +75,7 @@ type UntagResourceInput struct { // in the AWS CLI User Guide. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/secretsmanager/api_op_ValidateResourcePolicy.go b/service/secretsmanager/api_op_ValidateResourcePolicy.go index da756c9025a..403e6b40ac7 100644 --- a/service/secretsmanager/api_op_ValidateResourcePolicy.go +++ b/service/secretsmanager/api_op_ValidateResourcePolicy.go @@ -60,10 +60,10 @@ type ValidateResourcePolicyInput struct { type ValidateResourcePolicyOutput struct { // Returns a message stating that your Reource Policy passed validation. - PolicyValidationPassed *bool + PolicyValidationPassed bool // Returns an error message if your policy doesn't pass validatation. - ValidationErrors []*types.ValidationErrorsEntry + ValidationErrors []types.ValidationErrorsEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/secretsmanager/deserializers.go b/service/secretsmanager/deserializers.go index 7cba39af990..08ee72d233f 100644 --- a/service/secretsmanager/deserializers.go +++ b/service/secretsmanager/deserializers.go @@ -2781,7 +2781,7 @@ func awsAwsjson11_deserializeDocumentDecryptionFailure(v **types.DecryptionFailu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2821,7 +2821,7 @@ func awsAwsjson11_deserializeDocumentEncryptionFailure(v **types.EncryptionFailu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2861,7 +2861,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceError(v **types.InternalServ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2901,7 +2901,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2941,7 +2941,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2981,7 +2981,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3021,7 +3021,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3061,7 +3061,7 @@ func awsAwsjson11_deserializeDocumentMalformedPolicyDocumentException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3101,7 +3101,7 @@ func awsAwsjson11_deserializeDocumentPreconditionNotMetException(v **types.Preco if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3141,7 +3141,7 @@ func awsAwsjson11_deserializeDocumentPublicPolicyException(v **types.PublicPolic if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3181,7 +3181,7 @@ func awsAwsjson11_deserializeDocumentResourceExistsException(v **types.ResourceE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3221,7 +3221,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3265,7 +3265,7 @@ func awsAwsjson11_deserializeDocumentRotationRulesType(v **types.RotationRulesTy if err != nil { return err } - sv.AutomaticallyAfterDays = &i64 + sv.AutomaticallyAfterDays = i64 } default: @@ -3305,7 +3305,7 @@ func awsAwsjson11_deserializeDocumentSecretListEntry(v **types.SecretListEntry, if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "CreatedDate": @@ -3340,7 +3340,7 @@ func awsAwsjson11_deserializeDocumentSecretListEntry(v **types.SecretListEntry, if !ok { return fmt.Errorf("expected DescriptionType to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "KmsKeyId": @@ -3349,7 +3349,7 @@ func awsAwsjson11_deserializeDocumentSecretListEntry(v **types.SecretListEntry, if !ok { return fmt.Errorf("expected KmsKeyIdType to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LastAccessedDate": @@ -3397,7 +3397,7 @@ func awsAwsjson11_deserializeDocumentSecretListEntry(v **types.SecretListEntry, if !ok { return fmt.Errorf("expected SecretNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OwningService": @@ -3406,7 +3406,7 @@ func awsAwsjson11_deserializeDocumentSecretListEntry(v **types.SecretListEntry, if !ok { return fmt.Errorf("expected OwningServiceType to be of type string, got %T instead", value) } - sv.OwningService = &jtv + sv.OwningService = ptr.String(jtv) } case "RotationEnabled": @@ -3415,7 +3415,7 @@ func awsAwsjson11_deserializeDocumentSecretListEntry(v **types.SecretListEntry, if !ok { return fmt.Errorf("expected RotationEnabledType to be of type *bool, got %T instead", value) } - sv.RotationEnabled = &jtv + sv.RotationEnabled = jtv } case "RotationLambdaARN": @@ -3424,7 +3424,7 @@ func awsAwsjson11_deserializeDocumentSecretListEntry(v **types.SecretListEntry, if !ok { return fmt.Errorf("expected RotationLambdaARNType to be of type string, got %T instead", value) } - sv.RotationLambdaARN = &jtv + sv.RotationLambdaARN = ptr.String(jtv) } case "RotationRules": @@ -3451,7 +3451,7 @@ func awsAwsjson11_deserializeDocumentSecretListEntry(v **types.SecretListEntry, return nil } -func awsAwsjson11_deserializeDocumentSecretListType(v *[]*types.SecretListEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecretListType(v *[]types.SecretListEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3464,18 +3464,20 @@ func awsAwsjson11_deserializeDocumentSecretListType(v *[]*types.SecretListEntry, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SecretListEntry + var cv []types.SecretListEntry if *v == nil { - cv = []*types.SecretListEntry{} + cv = []types.SecretListEntry{} } else { cv = *v } for _, value := range shape { - var col *types.SecretListEntry - if err := awsAwsjson11_deserializeDocumentSecretListEntry(&col, value); err != nil { + var col types.SecretListEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSecretListEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3537,7 +3539,7 @@ func awsAwsjson11_deserializeDocumentSecretVersionsListEntry(v **types.SecretVer if !ok { return fmt.Errorf("expected SecretVersionIdType to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } case "VersionStages": @@ -3554,7 +3556,7 @@ func awsAwsjson11_deserializeDocumentSecretVersionsListEntry(v **types.SecretVer return nil } -func awsAwsjson11_deserializeDocumentSecretVersionsListType(v *[]*types.SecretVersionsListEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecretVersionsListType(v *[]types.SecretVersionsListEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3567,18 +3569,20 @@ func awsAwsjson11_deserializeDocumentSecretVersionsListType(v *[]*types.SecretVe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SecretVersionsListEntry + var cv []types.SecretVersionsListEntry if *v == nil { - cv = []*types.SecretVersionsListEntry{} + cv = []types.SecretVersionsListEntry{} } else { cv = *v } for _, value := range shape { - var col *types.SecretVersionsListEntry - if err := awsAwsjson11_deserializeDocumentSecretVersionsListEntry(&col, value); err != nil { + var col types.SecretVersionsListEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSecretVersionsListEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3586,7 +3590,7 @@ func awsAwsjson11_deserializeDocumentSecretVersionsListType(v *[]*types.SecretVe return nil } -func awsAwsjson11_deserializeDocumentSecretVersionStagesType(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecretVersionStagesType(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3599,21 +3603,21 @@ func awsAwsjson11_deserializeDocumentSecretVersionStagesType(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecretVersionStageType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3622,7 +3626,7 @@ func awsAwsjson11_deserializeDocumentSecretVersionStagesType(v *[]*string, value return nil } -func awsAwsjson11_deserializeDocumentSecretVersionsToStagesMapType(v *map[string][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecretVersionsToStagesMapType(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3635,18 +3639,20 @@ func awsAwsjson11_deserializeDocumentSecretVersionsToStagesMapType(v *map[string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsAwsjson11_deserializeDocumentSecretVersionStagesType(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentSecretVersionStagesType(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -3682,7 +3688,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKeyType to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -3691,7 +3697,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValueType to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -3703,7 +3709,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagListType(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagListType(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3716,18 +3722,20 @@ func awsAwsjson11_deserializeDocumentTagListType(v *[]*types.Tag, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3763,7 +3771,7 @@ func awsAwsjson11_deserializeDocumentValidationErrorsEntry(v **types.ValidationE if !ok { return fmt.Errorf("expected NameType to be of type string, got %T instead", value) } - sv.CheckName = &jtv + sv.CheckName = ptr.String(jtv) } case "ErrorMessage": @@ -3772,7 +3780,7 @@ func awsAwsjson11_deserializeDocumentValidationErrorsEntry(v **types.ValidationE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -3784,7 +3792,7 @@ func awsAwsjson11_deserializeDocumentValidationErrorsEntry(v **types.ValidationE return nil } -func awsAwsjson11_deserializeDocumentValidationErrorsType(v *[]*types.ValidationErrorsEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentValidationErrorsType(v *[]types.ValidationErrorsEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3797,18 +3805,20 @@ func awsAwsjson11_deserializeDocumentValidationErrorsType(v *[]*types.Validation return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ValidationErrorsEntry + var cv []types.ValidationErrorsEntry if *v == nil { - cv = []*types.ValidationErrorsEntry{} + cv = []types.ValidationErrorsEntry{} } else { cv = *v } for _, value := range shape { - var col *types.ValidationErrorsEntry - if err := awsAwsjson11_deserializeDocumentValidationErrorsEntry(&col, value); err != nil { + var col types.ValidationErrorsEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentValidationErrorsEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3844,7 +3854,7 @@ func awsAwsjson11_deserializeOpDocumentCancelRotateSecretOutput(v **CancelRotate if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Name": @@ -3853,7 +3863,7 @@ func awsAwsjson11_deserializeOpDocumentCancelRotateSecretOutput(v **CancelRotate if !ok { return fmt.Errorf("expected SecretNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "VersionId": @@ -3862,7 +3872,7 @@ func awsAwsjson11_deserializeOpDocumentCancelRotateSecretOutput(v **CancelRotate if !ok { return fmt.Errorf("expected SecretVersionIdType to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -3902,7 +3912,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSecretOutput(v **CreateSecretOutput if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Name": @@ -3911,7 +3921,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSecretOutput(v **CreateSecretOutput if !ok { return fmt.Errorf("expected SecretNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "VersionId": @@ -3920,7 +3930,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSecretOutput(v **CreateSecretOutput if !ok { return fmt.Errorf("expected SecretVersionIdType to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -3960,7 +3970,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteResourcePolicyOutput(v **DeleteReso if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Name": @@ -3969,7 +3979,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteResourcePolicyOutput(v **DeleteReso if !ok { return fmt.Errorf("expected NameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -4009,7 +4019,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteSecretOutput(v **DeleteSecretOutput if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "DeletionDate": @@ -4031,7 +4041,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteSecretOutput(v **DeleteSecretOutput if !ok { return fmt.Errorf("expected SecretNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -4071,7 +4081,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSecretOutput(v **DescribeSecretOu if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "CreatedDate": @@ -4106,7 +4116,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSecretOutput(v **DescribeSecretOu if !ok { return fmt.Errorf("expected DescriptionType to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "KmsKeyId": @@ -4115,7 +4125,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSecretOutput(v **DescribeSecretOu if !ok { return fmt.Errorf("expected KmsKeyIdType to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LastAccessedDate": @@ -4163,7 +4173,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSecretOutput(v **DescribeSecretOu if !ok { return fmt.Errorf("expected SecretNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OwningService": @@ -4172,7 +4182,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSecretOutput(v **DescribeSecretOu if !ok { return fmt.Errorf("expected OwningServiceType to be of type string, got %T instead", value) } - sv.OwningService = &jtv + sv.OwningService = ptr.String(jtv) } case "RotationEnabled": @@ -4181,7 +4191,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSecretOutput(v **DescribeSecretOu if !ok { return fmt.Errorf("expected RotationEnabledType to be of type *bool, got %T instead", value) } - sv.RotationEnabled = &jtv + sv.RotationEnabled = jtv } case "RotationLambdaARN": @@ -4190,7 +4200,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSecretOutput(v **DescribeSecretOu if !ok { return fmt.Errorf("expected RotationLambdaARNType to be of type string, got %T instead", value) } - sv.RotationLambdaARN = &jtv + sv.RotationLambdaARN = ptr.String(jtv) } case "RotationRules": @@ -4245,7 +4255,7 @@ func awsAwsjson11_deserializeOpDocumentGetRandomPasswordOutput(v **GetRandomPass if !ok { return fmt.Errorf("expected RandomPasswordType to be of type string, got %T instead", value) } - sv.RandomPassword = &jtv + sv.RandomPassword = ptr.String(jtv) } default: @@ -4285,7 +4295,7 @@ func awsAwsjson11_deserializeOpDocumentGetResourcePolicyOutput(v **GetResourcePo if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Name": @@ -4294,7 +4304,7 @@ func awsAwsjson11_deserializeOpDocumentGetResourcePolicyOutput(v **GetResourcePo if !ok { return fmt.Errorf("expected NameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ResourcePolicy": @@ -4303,7 +4313,7 @@ func awsAwsjson11_deserializeOpDocumentGetResourcePolicyOutput(v **GetResourcePo if !ok { return fmt.Errorf("expected NonEmptyResourcePolicyType to be of type string, got %T instead", value) } - sv.ResourcePolicy = &jtv + sv.ResourcePolicy = ptr.String(jtv) } default: @@ -4343,7 +4353,7 @@ func awsAwsjson11_deserializeOpDocumentGetSecretValueOutput(v **GetSecretValueOu if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "CreatedDate": @@ -4365,7 +4375,7 @@ func awsAwsjson11_deserializeOpDocumentGetSecretValueOutput(v **GetSecretValueOu if !ok { return fmt.Errorf("expected SecretNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SecretBinary": @@ -4387,7 +4397,7 @@ func awsAwsjson11_deserializeOpDocumentGetSecretValueOutput(v **GetSecretValueOu if !ok { return fmt.Errorf("expected SecretStringType to be of type string, got %T instead", value) } - sv.SecretString = &jtv + sv.SecretString = ptr.String(jtv) } case "VersionId": @@ -4396,7 +4406,7 @@ func awsAwsjson11_deserializeOpDocumentGetSecretValueOutput(v **GetSecretValueOu if !ok { return fmt.Errorf("expected SecretVersionIdType to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } case "VersionStages": @@ -4441,7 +4451,7 @@ func awsAwsjson11_deserializeOpDocumentListSecretsOutput(v **ListSecretsOutput, if !ok { return fmt.Errorf("expected NextTokenType to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SecretList": @@ -4486,7 +4496,7 @@ func awsAwsjson11_deserializeOpDocumentListSecretVersionIdsOutput(v **ListSecret if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Name": @@ -4495,7 +4505,7 @@ func awsAwsjson11_deserializeOpDocumentListSecretVersionIdsOutput(v **ListSecret if !ok { return fmt.Errorf("expected SecretNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NextToken": @@ -4504,7 +4514,7 @@ func awsAwsjson11_deserializeOpDocumentListSecretVersionIdsOutput(v **ListSecret if !ok { return fmt.Errorf("expected NextTokenType to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Versions": @@ -4549,7 +4559,7 @@ func awsAwsjson11_deserializeOpDocumentPutResourcePolicyOutput(v **PutResourcePo if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Name": @@ -4558,7 +4568,7 @@ func awsAwsjson11_deserializeOpDocumentPutResourcePolicyOutput(v **PutResourcePo if !ok { return fmt.Errorf("expected NameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -4598,7 +4608,7 @@ func awsAwsjson11_deserializeOpDocumentPutSecretValueOutput(v **PutSecretValueOu if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Name": @@ -4607,7 +4617,7 @@ func awsAwsjson11_deserializeOpDocumentPutSecretValueOutput(v **PutSecretValueOu if !ok { return fmt.Errorf("expected SecretNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "VersionId": @@ -4616,7 +4626,7 @@ func awsAwsjson11_deserializeOpDocumentPutSecretValueOutput(v **PutSecretValueOu if !ok { return fmt.Errorf("expected SecretVersionIdType to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } case "VersionStages": @@ -4661,7 +4671,7 @@ func awsAwsjson11_deserializeOpDocumentRestoreSecretOutput(v **RestoreSecretOutp if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Name": @@ -4670,7 +4680,7 @@ func awsAwsjson11_deserializeOpDocumentRestoreSecretOutput(v **RestoreSecretOutp if !ok { return fmt.Errorf("expected SecretNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -4710,7 +4720,7 @@ func awsAwsjson11_deserializeOpDocumentRotateSecretOutput(v **RotateSecretOutput if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Name": @@ -4719,7 +4729,7 @@ func awsAwsjson11_deserializeOpDocumentRotateSecretOutput(v **RotateSecretOutput if !ok { return fmt.Errorf("expected SecretNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "VersionId": @@ -4728,7 +4738,7 @@ func awsAwsjson11_deserializeOpDocumentRotateSecretOutput(v **RotateSecretOutput if !ok { return fmt.Errorf("expected SecretVersionIdType to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -4830,7 +4840,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateSecretOutput(v **UpdateSecretOutput if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Name": @@ -4839,7 +4849,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateSecretOutput(v **UpdateSecretOutput if !ok { return fmt.Errorf("expected SecretNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "VersionId": @@ -4848,7 +4858,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateSecretOutput(v **UpdateSecretOutput if !ok { return fmt.Errorf("expected SecretVersionIdType to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -4888,7 +4898,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateSecretVersionStageOutput(v **Update if !ok { return fmt.Errorf("expected SecretARNType to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Name": @@ -4897,7 +4907,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateSecretVersionStageOutput(v **Update if !ok { return fmt.Errorf("expected SecretNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -4937,7 +4947,7 @@ func awsAwsjson11_deserializeOpDocumentValidateResourcePolicyOutput(v **Validate if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.PolicyValidationPassed = &jtv + sv.PolicyValidationPassed = jtv } case "ValidationErrors": diff --git a/service/secretsmanager/go.mod b/service/secretsmanager/go.mod index d6a6ca1c6d4..a26fe91e675 100644 --- a/service/secretsmanager/go.mod +++ b/service/secretsmanager/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/secretsmanager go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/secretsmanager/serializers.go b/service/secretsmanager/serializers.go index bf1bd150932..3d988de7606 100644 --- a/service/secretsmanager/serializers.go +++ b/service/secretsmanager/serializers.go @@ -906,34 +906,26 @@ func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentFiltersListType(v []*types.Filter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFiltersListType(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentFilterValuesStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterValuesStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -942,25 +934,21 @@ func awsAwsjson11_serializeDocumentRotationRulesType(v *types.RotationRulesType, object := value.Object() defer object.Close() - if v.AutomaticallyAfterDays != nil { + if v.AutomaticallyAfterDays != 0 { ok := object.Key("AutomaticallyAfterDays") - ok.Long(*v.AutomaticallyAfterDays) + ok.Long(v.AutomaticallyAfterDays) } return nil } -func awsAwsjson11_serializeDocumentSecretVersionStagesType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecretVersionStagesType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -982,32 +970,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyListType(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyListType(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagListType(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagListType(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -1086,14 +1066,14 @@ func awsAwsjson11_serializeOpDocumentDeleteSecretInput(v *DeleteSecretInput, val object := value.Object() defer object.Close() - if v.ForceDeleteWithoutRecovery != nil { + if v.ForceDeleteWithoutRecovery { ok := object.Key("ForceDeleteWithoutRecovery") - ok.Boolean(*v.ForceDeleteWithoutRecovery) + ok.Boolean(v.ForceDeleteWithoutRecovery) } - if v.RecoveryWindowInDays != nil { + if v.RecoveryWindowInDays != 0 { ok := object.Key("RecoveryWindowInDays") - ok.Long(*v.RecoveryWindowInDays) + ok.Long(v.RecoveryWindowInDays) } if v.SecretId != nil { @@ -1125,39 +1105,39 @@ func awsAwsjson11_serializeOpDocumentGetRandomPasswordInput(v *GetRandomPassword ok.String(*v.ExcludeCharacters) } - if v.ExcludeLowercase != nil { + if v.ExcludeLowercase { ok := object.Key("ExcludeLowercase") - ok.Boolean(*v.ExcludeLowercase) + ok.Boolean(v.ExcludeLowercase) } - if v.ExcludeNumbers != nil { + if v.ExcludeNumbers { ok := object.Key("ExcludeNumbers") - ok.Boolean(*v.ExcludeNumbers) + ok.Boolean(v.ExcludeNumbers) } - if v.ExcludePunctuation != nil { + if v.ExcludePunctuation { ok := object.Key("ExcludePunctuation") - ok.Boolean(*v.ExcludePunctuation) + ok.Boolean(v.ExcludePunctuation) } - if v.ExcludeUppercase != nil { + if v.ExcludeUppercase { ok := object.Key("ExcludeUppercase") - ok.Boolean(*v.ExcludeUppercase) + ok.Boolean(v.ExcludeUppercase) } - if v.IncludeSpace != nil { + if v.IncludeSpace { ok := object.Key("IncludeSpace") - ok.Boolean(*v.IncludeSpace) + ok.Boolean(v.IncludeSpace) } - if v.PasswordLength != nil { + if v.PasswordLength != 0 { ok := object.Key("PasswordLength") - ok.Long(*v.PasswordLength) + ok.Long(v.PasswordLength) } - if v.RequireEachIncludedType != nil { + if v.RequireEachIncludedType { ok := object.Key("RequireEachIncludedType") - ok.Boolean(*v.RequireEachIncludedType) + ok.Boolean(v.RequireEachIncludedType) } return nil @@ -1208,9 +1188,9 @@ func awsAwsjson11_serializeOpDocumentListSecretsInput(v *ListSecretsInput, value } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1230,14 +1210,14 @@ func awsAwsjson11_serializeOpDocumentListSecretVersionIdsInput(v *ListSecretVers object := value.Object() defer object.Close() - if v.IncludeDeprecated != nil { + if v.IncludeDeprecated { ok := object.Key("IncludeDeprecated") - ok.Boolean(*v.IncludeDeprecated) + ok.Boolean(v.IncludeDeprecated) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1257,9 +1237,9 @@ func awsAwsjson11_serializeOpDocumentPutResourcePolicyInput(v *PutResourcePolicy object := value.Object() defer object.Close() - if v.BlockPublicPolicy != nil { + if v.BlockPublicPolicy { ok := object.Key("BlockPublicPolicy") - ok.Boolean(*v.BlockPublicPolicy) + ok.Boolean(v.BlockPublicPolicy) } if v.ResourcePolicy != nil { diff --git a/service/secretsmanager/types/types.go b/service/secretsmanager/types/types.go index 716acef954e..a2602503197 100644 --- a/service/secretsmanager/types/types.go +++ b/service/secretsmanager/types/types.go @@ -13,7 +13,7 @@ type Filter struct { Key FilterNameStringType // Filters your list of secrets by a specific value. - Values []*string + Values []string } // A structure that defines the rotation configuration for the secret. @@ -26,7 +26,7 @@ type RotationRulesType struct { // the hour within that 24-hour date window randomly. The minute is also chosen // somewhat randomly, but weighted towards the top of the hour and influenced by a // variety of factors that help distribute load. - AutomaticallyAfterDays *int64 + AutomaticallyAfterDays int64 } // A structure that contains the details about a secret. It does not include the @@ -78,7 +78,7 @@ type SecretListEntry struct { OwningService *string // Indicates whether automatic, scheduled rotation is enabled for this secret. - RotationEnabled *bool + RotationEnabled bool // The ARN of an AWS Lambda function invoked by Secrets Manager to rotate and // expire the secret either automatically per the schedule or manually by a call to @@ -93,11 +93,11 @@ type SecretListEntry struct { // of the different versions during the rotation process. A version that does not // have any SecretVersionStage is considered deprecated and subject to deletion. // Such versions are not included in this list. - SecretVersionsToStages map[string][]*string + SecretVersionsToStages map[string][]string // The list of user-defined tags associated with the secret. To add tags to a // secret, use TagResource. To remove tags, use UntagResource. - Tags []*Tag + Tags []Tag } // A structure that contains information about one version of a secret. @@ -115,7 +115,7 @@ type SecretVersionsListEntry struct { // An array of staging labels that are currently associated with this version of // the secret. - VersionStages []*string + VersionStages []string } // A structure that contains information about a tag. diff --git a/service/securityhub/api_op_BatchDisableStandards.go b/service/securityhub/api_op_BatchDisableStandards.go index 1cebfca7e79..a3b0e9d2f77 100644 --- a/service/securityhub/api_op_BatchDisableStandards.go +++ b/service/securityhub/api_op_BatchDisableStandards.go @@ -35,13 +35,13 @@ type BatchDisableStandardsInput struct { // The ARNs of the standards subscriptions to disable. // // This member is required. - StandardsSubscriptionArns []*string + StandardsSubscriptionArns []string } type BatchDisableStandardsOutput struct { // The details of the standards subscriptions that were disabled. - StandardsSubscriptions []*types.StandardsSubscription + StandardsSubscriptions []types.StandardsSubscription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_BatchEnableStandards.go b/service/securityhub/api_op_BatchEnableStandards.go index 51d5ad22780..1ba0e7e8c45 100644 --- a/service/securityhub/api_op_BatchEnableStandards.go +++ b/service/securityhub/api_op_BatchEnableStandards.go @@ -36,13 +36,13 @@ type BatchEnableStandardsInput struct { // The list of standards checks to enable. // // This member is required. - StandardsSubscriptionRequests []*types.StandardsSubscriptionRequest + StandardsSubscriptionRequests []types.StandardsSubscriptionRequest } type BatchEnableStandardsOutput struct { // The details of the standards subscriptions that were enabled. - StandardsSubscriptions []*types.StandardsSubscription + StandardsSubscriptions []types.StandardsSubscription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_BatchImportFindings.go b/service/securityhub/api_op_BatchImportFindings.go index b7b96af7cfe..2f852d06b47 100644 --- a/service/securityhub/api_op_BatchImportFindings.go +++ b/service/securityhub/api_op_BatchImportFindings.go @@ -61,7 +61,7 @@ type BatchImportFindingsInput struct { // Maximum of 100 findings per request. // // This member is required. - Findings []*types.AwsSecurityFinding + Findings []types.AwsSecurityFinding } type BatchImportFindingsOutput struct { @@ -69,15 +69,15 @@ type BatchImportFindingsOutput struct { // The number of findings that failed to import. // // This member is required. - FailedCount *int32 + FailedCount int32 // The number of findings that were successfully imported. // // This member is required. - SuccessCount *int32 + SuccessCount int32 // The list of findings that failed to import. - FailedFindings []*types.ImportFindingsError + FailedFindings []types.ImportFindingsError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_BatchUpdateFindings.go b/service/securityhub/api_op_BatchUpdateFindings.go index d699e07efa2..98855775073 100644 --- a/service/securityhub/api_op_BatchUpdateFindings.go +++ b/service/securityhub/api_op_BatchUpdateFindings.go @@ -66,26 +66,26 @@ type BatchUpdateFindingsInput struct { // identifier and the ARN of the finding provider. // // This member is required. - FindingIdentifiers []*types.AwsSecurityFindingIdentifier + FindingIdentifiers []types.AwsSecurityFindingIdentifier // The updated value for the finding confidence. Confidence is defined as the // likelihood that a finding accurately identifies the behavior or issue that it // was intended to identify. Confidence is scored on a 0-100 basis using a ratio // scale, where 0 means zero percent confidence and 100 means 100 percent // confidence. - Confidence *int32 + Confidence int32 // The updated value for the level of importance assigned to the resources // associated with the findings. A score of 0 means that the underlying resources // have no criticality, and a score of 100 is reserved for the most critical // resources. - Criticality *int32 + Criticality int32 // The updated note. Note *types.NoteUpdate // A list of findings that are related to the updated findings. - RelatedFindings []*types.RelatedFinding + RelatedFindings []types.RelatedFinding // Used to update the finding severity. Severity *types.SeverityUpdate @@ -104,11 +104,11 @@ type BatchUpdateFindingsInput struct { // // * Sensitive Data // Identifications - Types []*string + Types []string // A list of name/value string pairs associated with the finding. These are custom, // user-defined fields added to a finding. - UserDefinedFields map[string]*string + UserDefinedFields map[string]string // Indicates the veracity of a finding. The available values for VerificationState // are as follows. @@ -136,12 +136,12 @@ type BatchUpdateFindingsOutput struct { // The list of findings that were updated successfully. // // This member is required. - ProcessedFindings []*types.AwsSecurityFindingIdentifier + ProcessedFindings []types.AwsSecurityFindingIdentifier // The list of findings that were not updated. // // This member is required. - UnprocessedFindings []*types.BatchUpdateFindingsUnprocessedFinding + UnprocessedFindings []types.BatchUpdateFindingsUnprocessedFinding // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_CreateMembers.go b/service/securityhub/api_op_CreateMembers.go index 56f3543d3b7..2640e0abd31 100644 --- a/service/securityhub/api_op_CreateMembers.go +++ b/service/securityhub/api_op_CreateMembers.go @@ -44,14 +44,14 @@ type CreateMembersInput struct { // The list of accounts to associate with the Security Hub master account. For each // account, the list includes the account ID and the email address. - AccountDetails []*types.AccountDetails + AccountDetails []types.AccountDetails } type CreateMembersOutput struct { // The list of AWS accounts that were not processed. For each account, the list // includes the account ID and the email address. - UnprocessedAccounts []*types.Result + UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_DeclineInvitations.go b/service/securityhub/api_op_DeclineInvitations.go index 0dab4b0e94e..e154efa005d 100644 --- a/service/securityhub/api_op_DeclineInvitations.go +++ b/service/securityhub/api_op_DeclineInvitations.go @@ -33,14 +33,14 @@ type DeclineInvitationsInput struct { // to Security Hub. // // This member is required. - AccountIds []*string + AccountIds []string } type DeclineInvitationsOutput struct { // The list of AWS accounts that were not processed. For each account, the list // includes the account ID and the email address. - UnprocessedAccounts []*types.Result + UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_DeleteInvitations.go b/service/securityhub/api_op_DeleteInvitations.go index a92402c99c5..9b2b799b2e7 100644 --- a/service/securityhub/api_op_DeleteInvitations.go +++ b/service/securityhub/api_op_DeleteInvitations.go @@ -32,14 +32,14 @@ type DeleteInvitationsInput struct { // The list of the account IDs that sent the invitations to delete. // // This member is required. - AccountIds []*string + AccountIds []string } type DeleteInvitationsOutput struct { // The list of AWS accounts for which the invitations were not deleted. For each // account, the list includes the account ID and the email address. - UnprocessedAccounts []*types.Result + UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_DeleteMembers.go b/service/securityhub/api_op_DeleteMembers.go index f4ce59254f0..56fc748fd3e 100644 --- a/service/securityhub/api_op_DeleteMembers.go +++ b/service/securityhub/api_op_DeleteMembers.go @@ -30,14 +30,14 @@ func (c *Client) DeleteMembers(ctx context.Context, params *DeleteMembersInput, type DeleteMembersInput struct { // The list of account IDs for the member accounts to delete. - AccountIds []*string + AccountIds []string } type DeleteMembersOutput struct { // The list of AWS accounts that were not deleted. For each account, the list // includes the account ID and the email address. - UnprocessedAccounts []*types.Result + UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_DescribeActionTargets.go b/service/securityhub/api_op_DescribeActionTargets.go index 45ba417dc7f..ff6bdff8df5 100644 --- a/service/securityhub/api_op_DescribeActionTargets.go +++ b/service/securityhub/api_op_DescribeActionTargets.go @@ -30,10 +30,10 @@ func (c *Client) DescribeActionTargets(ctx context.Context, params *DescribeActi type DescribeActionTargetsInput struct { // A list of custom action target ARNs for the custom action targets to retrieve. - ActionTargetArns []*string + ActionTargetArns []string // The maximum number of results to return. - MaxResults *int32 + MaxResults int32 // The token that is required for pagination. On your first call to the // DescribeActionTargets operation, set the value of this parameter to NULL. For @@ -48,7 +48,7 @@ type DescribeActionTargetsOutput struct { // Description, and Name of a custom action target available in Security Hub. // // This member is required. - ActionTargets []*types.ActionTarget + ActionTargets []types.ActionTarget // The pagination token to use to request the next page of results. NextToken *string diff --git a/service/securityhub/api_op_DescribeHub.go b/service/securityhub/api_op_DescribeHub.go index 2545b1ee7d2..4488ab276ac 100644 --- a/service/securityhub/api_op_DescribeHub.go +++ b/service/securityhub/api_op_DescribeHub.go @@ -38,7 +38,7 @@ type DescribeHubOutput struct { // Whether to automatically enable new controls when they are added to standards // that are enabled. If set to true, then new controls for enabled standards are // enabled automatically. If set to false, then new controls are not enabled. - AutoEnableControls *bool + AutoEnableControls bool // The ARN of the Hub resource that was retrieved. HubArn *string diff --git a/service/securityhub/api_op_DescribeProducts.go b/service/securityhub/api_op_DescribeProducts.go index 60a529ecdcb..4e8fd50433f 100644 --- a/service/securityhub/api_op_DescribeProducts.go +++ b/service/securityhub/api_op_DescribeProducts.go @@ -31,7 +31,7 @@ func (c *Client) DescribeProducts(ctx context.Context, params *DescribeProductsI type DescribeProductsInput struct { // The maximum number of results to return. - MaxResults *int32 + MaxResults int32 // The token that is required for pagination. On your first call to the // DescribeProducts operation, set the value of this parameter to NULL. For @@ -45,7 +45,7 @@ type DescribeProductsOutput struct { // A list of products, including details for each product. // // This member is required. - Products []*types.Product + Products []types.Product // The pagination token to use to request the next page of results. NextToken *string diff --git a/service/securityhub/api_op_DescribeStandards.go b/service/securityhub/api_op_DescribeStandards.go index 2d957dd6d98..0756feea427 100644 --- a/service/securityhub/api_op_DescribeStandards.go +++ b/service/securityhub/api_op_DescribeStandards.go @@ -31,7 +31,7 @@ func (c *Client) DescribeStandards(ctx context.Context, params *DescribeStandard type DescribeStandardsInput struct { // The maximum number of standards to return. - MaxResults *int32 + MaxResults int32 // The token that is required for pagination. On your first call to the // DescribeStandards operation, set the value of this parameter to NULL. For @@ -46,7 +46,7 @@ type DescribeStandardsOutput struct { NextToken *string // A list of available standards. - Standards []*types.Standard + Standards []types.Standard // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_DescribeStandardsControls.go b/service/securityhub/api_op_DescribeStandardsControls.go index 5d3b8fc088b..6a907f280d2 100644 --- a/service/securityhub/api_op_DescribeStandardsControls.go +++ b/service/securityhub/api_op_DescribeStandardsControls.go @@ -37,7 +37,7 @@ type DescribeStandardsControlsInput struct { StandardsSubscriptionArn *string // The maximum number of security standard controls to return. - MaxResults *int32 + MaxResults int32 // The token that is required for pagination. On your first call to the // DescribeStandardsControls operation, set the value of this parameter to NULL. @@ -49,7 +49,7 @@ type DescribeStandardsControlsInput struct { type DescribeStandardsControlsOutput struct { // A list of security standards controls. - Controls []*types.StandardsControl + Controls []types.StandardsControl // The pagination token to use to request the next page of results. NextToken *string diff --git a/service/securityhub/api_op_DisassociateMembers.go b/service/securityhub/api_op_DisassociateMembers.go index 2471c58e237..8e6ed8d90cc 100644 --- a/service/securityhub/api_op_DisassociateMembers.go +++ b/service/securityhub/api_op_DisassociateMembers.go @@ -29,7 +29,7 @@ func (c *Client) DisassociateMembers(ctx context.Context, params *DisassociateMe type DisassociateMembersInput struct { // The account IDs of the member accounts to disassociate from the master account. - AccountIds []*string + AccountIds []string } type DisassociateMembersOutput struct { diff --git a/service/securityhub/api_op_EnableSecurityHub.go b/service/securityhub/api_op_EnableSecurityHub.go index 42de6f7f979..d063e6331dd 100644 --- a/service/securityhub/api_op_EnableSecurityHub.go +++ b/service/securityhub/api_op_EnableSecurityHub.go @@ -50,10 +50,10 @@ type EnableSecurityHubInput struct { // automatically enabled. If you do not provide a value for EnableDefaultStandards, // it is set to true. To not enable the automatically enabled standards, set // EnableDefaultStandards to false. - EnableDefaultStandards *bool + EnableDefaultStandards bool // The tags to add to the hub resource when you enable Security Hub. - Tags map[string]*string + Tags map[string]string } type EnableSecurityHubOutput struct { diff --git a/service/securityhub/api_op_GetEnabledStandards.go b/service/securityhub/api_op_GetEnabledStandards.go index 2d6aa89add5..37c877b4151 100644 --- a/service/securityhub/api_op_GetEnabledStandards.go +++ b/service/securityhub/api_op_GetEnabledStandards.go @@ -30,7 +30,7 @@ func (c *Client) GetEnabledStandards(ctx context.Context, params *GetEnabledStan type GetEnabledStandardsInput struct { // The maximum number of results to return in the response. - MaxResults *int32 + MaxResults int32 // The token that is required for pagination. On your first call to the // GetEnabledStandards operation, set the value of this parameter to NULL. For @@ -39,7 +39,7 @@ type GetEnabledStandardsInput struct { NextToken *string // The list of the standards subscription ARNs for the standards to retrieve. - StandardsSubscriptionArns []*string + StandardsSubscriptionArns []string } type GetEnabledStandardsOutput struct { @@ -49,7 +49,7 @@ type GetEnabledStandardsOutput struct { // The list of StandardsSubscriptions objects that include information about the // enabled standards. - StandardsSubscriptions []*types.StandardsSubscription + StandardsSubscriptions []types.StandardsSubscription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_GetFindings.go b/service/securityhub/api_op_GetFindings.go index 1c9318bd28b..c6816899644 100644 --- a/service/securityhub/api_op_GetFindings.go +++ b/service/securityhub/api_op_GetFindings.go @@ -37,7 +37,7 @@ type GetFindingsInput struct { Filters *types.AwsSecurityFindingFilters // The maximum number of findings to return. - MaxResults *int32 + MaxResults int32 // The token that is required for pagination. On your first call to the GetFindings // operation, set the value of this parameter to NULL. For subsequent calls to the @@ -46,7 +46,7 @@ type GetFindingsInput struct { NextToken *string // The finding attributes used to sort the list of returned findings. - SortCriteria []*types.SortCriterion + SortCriteria []types.SortCriterion } type GetFindingsOutput struct { @@ -54,7 +54,7 @@ type GetFindingsOutput struct { // The findings that matched the filters specified in the request. // // This member is required. - Findings []*types.AwsSecurityFinding + Findings []types.AwsSecurityFinding // The pagination token to use to request the next page of results. NextToken *string diff --git a/service/securityhub/api_op_GetInsights.go b/service/securityhub/api_op_GetInsights.go index 31a413ee634..b79e1123b3a 100644 --- a/service/securityhub/api_op_GetInsights.go +++ b/service/securityhub/api_op_GetInsights.go @@ -32,10 +32,10 @@ type GetInsightsInput struct { // The ARNs of the insights to describe. If you do not provide any insight ARNs, // then GetInsights returns all of your custom insights. It does not return any // managed insights. - InsightArns []*string + InsightArns []string // The maximum number of items to return in the response. - MaxResults *int32 + MaxResults int32 // The token that is required for pagination. On your first call to the GetInsights // operation, set the value of this parameter to NULL. For subsequent calls to the @@ -49,7 +49,7 @@ type GetInsightsOutput struct { // The insights returned by the operation. // // This member is required. - Insights []*types.Insight + Insights []types.Insight // The pagination token to use to request the next page of results. NextToken *string diff --git a/service/securityhub/api_op_GetInvitationsCount.go b/service/securityhub/api_op_GetInvitationsCount.go index 9a086c1506d..d19b5101a6a 100644 --- a/service/securityhub/api_op_GetInvitationsCount.go +++ b/service/securityhub/api_op_GetInvitationsCount.go @@ -34,7 +34,7 @@ type GetInvitationsCountOutput struct { // The number of all membership invitations sent to this Security Hub member // account, not including the currently accepted invitation. - InvitationsCount *int32 + InvitationsCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_GetMembers.go b/service/securityhub/api_op_GetMembers.go index 183dba24b07..db11a9b2aca 100644 --- a/service/securityhub/api_op_GetMembers.go +++ b/service/securityhub/api_op_GetMembers.go @@ -34,17 +34,17 @@ type GetMembersInput struct { // details for. // // This member is required. - AccountIds []*string + AccountIds []string } type GetMembersOutput struct { // The list of details about the Security Hub member accounts. - Members []*types.Member + Members []types.Member // The list of AWS accounts that could not be processed. For each account, the list // includes the account ID and the email address. - UnprocessedAccounts []*types.Result + UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_InviteMembers.go b/service/securityhub/api_op_InviteMembers.go index ddb0811b2a6..5d00ee8d2da 100644 --- a/service/securityhub/api_op_InviteMembers.go +++ b/service/securityhub/api_op_InviteMembers.go @@ -36,14 +36,14 @@ type InviteMembersInput struct { // The list of account IDs of the AWS accounts to invite to Security Hub as // members. - AccountIds []*string + AccountIds []string } type InviteMembersOutput struct { // The list of AWS accounts that could not be processed. For each account, the list // includes the account ID and the email address. - UnprocessedAccounts []*types.Result + UnprocessedAccounts []types.Result // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_ListEnabledProductsForImport.go b/service/securityhub/api_op_ListEnabledProductsForImport.go index fc2fef47989..bd2c22a31f6 100644 --- a/service/securityhub/api_op_ListEnabledProductsForImport.go +++ b/service/securityhub/api_op_ListEnabledProductsForImport.go @@ -30,7 +30,7 @@ func (c *Client) ListEnabledProductsForImport(ctx context.Context, params *ListE type ListEnabledProductsForImportInput struct { // The maximum number of items to return in the response. - MaxResults *int32 + MaxResults int32 // The token that is required for pagination. On your first call to the // ListEnabledProductsForImport operation, set the value of this parameter to NULL. @@ -46,7 +46,7 @@ type ListEnabledProductsForImportOutput struct { // The list of ARNs for the resources that represent your subscriptions to // products. - ProductSubscriptions []*string + ProductSubscriptions []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_ListInvitations.go b/service/securityhub/api_op_ListInvitations.go index 7cda97a1b72..8fdc9fcf2dd 100644 --- a/service/securityhub/api_op_ListInvitations.go +++ b/service/securityhub/api_op_ListInvitations.go @@ -31,7 +31,7 @@ func (c *Client) ListInvitations(ctx context.Context, params *ListInvitationsInp type ListInvitationsInput struct { // The maximum number of items to return in the response. - MaxResults *int32 + MaxResults int32 // The token that is required for pagination. On your first call to the // ListInvitations operation, set the value of this parameter to NULL. For @@ -43,7 +43,7 @@ type ListInvitationsInput struct { type ListInvitationsOutput struct { // The details of the invitations returned by the operation. - Invitations []*types.Invitation + Invitations []types.Invitation // The pagination token to use to request the next page of results. NextToken *string diff --git a/service/securityhub/api_op_ListMembers.go b/service/securityhub/api_op_ListMembers.go index 6a809d49c76..a4eb853206e 100644 --- a/service/securityhub/api_op_ListMembers.go +++ b/service/securityhub/api_op_ListMembers.go @@ -31,7 +31,7 @@ func (c *Client) ListMembers(ctx context.Context, params *ListMembersInput, optF type ListMembersInput struct { // The maximum number of items to return in the response. - MaxResults *int32 + MaxResults int32 // The token that is required for pagination. On your first call to the ListMembers // operation, set the value of this parameter to NULL. For subsequent calls to the @@ -45,13 +45,13 @@ type ListMembersInput struct { // relationship status with the master is set to ENABLED or DISABLED. If // OnlyAssociated is set to FALSE, the response includes all existing member // accounts. - OnlyAssociated *bool + OnlyAssociated bool } type ListMembersOutput struct { // Member details returned by the operation. - Members []*types.Member + Members []types.Member // The pagination token to use to request the next page of results. NextToken *string diff --git a/service/securityhub/api_op_ListTagsForResource.go b/service/securityhub/api_op_ListTagsForResource.go index c39a47d7fd6..7a1ab001fc8 100644 --- a/service/securityhub/api_op_ListTagsForResource.go +++ b/service/securityhub/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags associated with a resource. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/securityhub/api_op_TagResource.go b/service/securityhub/api_op_TagResource.go index 76c22bd581b..da682c2bd2e 100644 --- a/service/securityhub/api_op_TagResource.go +++ b/service/securityhub/api_op_TagResource.go @@ -36,7 +36,7 @@ type TagResourceInput struct { // The tags to add to the resource. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/securityhub/api_op_UntagResource.go b/service/securityhub/api_op_UntagResource.go index cce6775af23..88438958dd7 100644 --- a/service/securityhub/api_op_UntagResource.go +++ b/service/securityhub/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The tag keys associated with the tags to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/securityhub/api_op_UpdateSecurityHubConfiguration.go b/service/securityhub/api_op_UpdateSecurityHubConfiguration.go index 07ca658252f..8ddab12ebf0 100644 --- a/service/securityhub/api_op_UpdateSecurityHubConfiguration.go +++ b/service/securityhub/api_op_UpdateSecurityHubConfiguration.go @@ -31,7 +31,7 @@ type UpdateSecurityHubConfigurationInput struct { // Whether to automatically enable new controls when they are added to standards // that are enabled. By default, this is set to true, and new controls are enabled // automatically. To not automatically enable new controls, set this to false. - AutoEnableControls *bool + AutoEnableControls bool } type UpdateSecurityHubConfigurationOutput struct { diff --git a/service/securityhub/deserializers.go b/service/securityhub/deserializers.go index c5b5c3a103e..8e116a8ac58 100644 --- a/service/securityhub/deserializers.go +++ b/service/securityhub/deserializers.go @@ -578,7 +578,7 @@ func awsRestjson1_deserializeOpDocumentBatchImportFindingsOutput(v **BatchImport if err != nil { return err } - sv.FailedCount = ptr.Int32(int32(i64)) + sv.FailedCount = int32(i64) } case "FailedFindings": @@ -596,7 +596,7 @@ func awsRestjson1_deserializeOpDocumentBatchImportFindingsOutput(v **BatchImport if err != nil { return err } - sv.SuccessCount = ptr.Int32(int32(i64)) + sv.SuccessCount = int32(i64) } default: @@ -920,7 +920,7 @@ func awsRestjson1_deserializeOpDocumentCreateActionTargetOutput(v **CreateAction if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ActionTargetArn = &jtv + sv.ActionTargetArn = ptr.String(jtv) } default: @@ -1083,7 +1083,7 @@ func awsRestjson1_deserializeOpDocumentCreateInsightOutput(v **CreateInsightOutp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InsightArn = &jtv + sv.InsightArn = ptr.String(jtv) } default: @@ -1558,7 +1558,7 @@ func awsRestjson1_deserializeOpDocumentDeleteActionTargetOutput(v **DeleteAction if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ActionTargetArn = &jtv + sv.ActionTargetArn = ptr.String(jtv) } default: @@ -1721,7 +1721,7 @@ func awsRestjson1_deserializeOpDocumentDeleteInsightOutput(v **DeleteInsightOutp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InsightArn = &jtv + sv.InsightArn = ptr.String(jtv) } default: @@ -2204,7 +2204,7 @@ func awsRestjson1_deserializeOpDocumentDescribeActionTargetsOutput(v **DescribeA if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2367,7 +2367,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHubOutput(v **DescribeHubOutput, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoEnableControls = &jtv + sv.AutoEnableControls = jtv } case "HubArn": @@ -2376,7 +2376,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHubOutput(v **DescribeHubOutput, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.HubArn = &jtv + sv.HubArn = ptr.String(jtv) } case "SubscribedAt": @@ -2385,7 +2385,7 @@ func awsRestjson1_deserializeOpDocumentDescribeHubOutput(v **DescribeHubOutput, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SubscribedAt = &jtv + sv.SubscribedAt = ptr.String(jtv) } default: @@ -2545,7 +2545,7 @@ func awsRestjson1_deserializeOpDocumentDescribeProductsOutput(v **DescribeProduc if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Products": @@ -2707,7 +2707,7 @@ func awsRestjson1_deserializeOpDocumentDescribeStandardsOutput(v **DescribeStand if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Standards": @@ -2877,7 +2877,7 @@ func awsRestjson1_deserializeOpDocumentDescribeStandardsControlsOutput(v **Descr if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3417,7 +3417,7 @@ func awsRestjson1_deserializeOpDocumentEnableImportFindingsForProductOutput(v ** if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ProductSubscriptionArn = &jtv + sv.ProductSubscriptionArn = ptr.String(jtv) } default: @@ -3672,7 +3672,7 @@ func awsRestjson1_deserializeOpDocumentGetEnabledStandardsOutput(v **GetEnabledS if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StandardsSubscriptions": @@ -3842,7 +3842,7 @@ func awsRestjson1_deserializeOpDocumentGetFindingsOutput(v **GetFindingsOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4169,7 +4169,7 @@ func awsRestjson1_deserializeOpDocumentGetInsightsOutput(v **GetInsightsOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4333,7 +4333,7 @@ func awsRestjson1_deserializeOpDocumentGetInvitationsCountOutput(v **GetInvitati if err != nil { return err } - sv.InvitationsCount = ptr.Int32(int32(i64)) + sv.InvitationsCount = int32(i64) } default: @@ -4972,7 +4972,7 @@ func awsRestjson1_deserializeOpDocumentListEnabledProductsForImportOutput(v **Li if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ProductSubscriptions": @@ -5142,7 +5142,7 @@ func awsRestjson1_deserializeOpDocumentListInvitationsOutput(v **ListInvitations if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5307,7 +5307,7 @@ func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6399,7 +6399,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -6408,7 +6408,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6448,7 +6448,7 @@ func awsRestjson1_deserializeDocumentActionTarget(v **types.ActionTarget, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ActionTargetArn = &jtv + sv.ActionTargetArn = ptr.String(jtv) } case "Description": @@ -6457,7 +6457,7 @@ func awsRestjson1_deserializeDocumentActionTarget(v **types.ActionTarget, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -6466,7 +6466,7 @@ func awsRestjson1_deserializeDocumentActionTarget(v **types.ActionTarget, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -6478,7 +6478,7 @@ func awsRestjson1_deserializeDocumentActionTarget(v **types.ActionTarget, value return nil } -func awsRestjson1_deserializeDocumentActionTargetList(v *[]*types.ActionTarget, value interface{}) error { +func awsRestjson1_deserializeDocumentActionTargetList(v *[]types.ActionTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6491,18 +6491,20 @@ func awsRestjson1_deserializeDocumentActionTargetList(v *[]*types.ActionTarget, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActionTarget + var cv []types.ActionTarget if *v == nil { - cv = []*types.ActionTarget{} + cv = []types.ActionTarget{} } else { cv = *v } for _, value := range shape { - var col *types.ActionTarget - if err := awsRestjson1_deserializeDocumentActionTarget(&col, value); err != nil { + var col types.ActionTarget + destAddr := &col + if err := awsRestjson1_deserializeDocumentActionTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6538,7 +6540,7 @@ func awsRestjson1_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "ZoneName": @@ -6547,7 +6549,7 @@ func awsRestjson1_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ZoneName = &jtv + sv.ZoneName = ptr.String(jtv) } default: @@ -6559,7 +6561,7 @@ func awsRestjson1_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone return nil } -func awsRestjson1_deserializeDocumentAvailabilityZones(v *[]*types.AvailabilityZone, value interface{}) error { +func awsRestjson1_deserializeDocumentAvailabilityZones(v *[]types.AvailabilityZone, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6572,18 +6574,20 @@ func awsRestjson1_deserializeDocumentAvailabilityZones(v *[]*types.AvailabilityZ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AvailabilityZone + var cv []types.AvailabilityZone if *v == nil { - cv = []*types.AvailabilityZone{} + cv = []types.AvailabilityZone{} } else { cv = *v } for _, value := range shape { - var col *types.AvailabilityZone - if err := awsRestjson1_deserializeDocumentAvailabilityZone(&col, value); err != nil { + var col types.AvailabilityZone + destAddr := &col + if err := awsRestjson1_deserializeDocumentAvailabilityZone(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6619,7 +6623,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayAccessLogSettings(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DestinationArn = &jtv + sv.DestinationArn = ptr.String(jtv) } case "Format": @@ -6628,7 +6632,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayAccessLogSettings(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Format = &jtv + sv.Format = ptr.String(jtv) } default: @@ -6668,7 +6672,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayCanarySettings(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "PercentTraffic": @@ -6681,7 +6685,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayCanarySettings(v **types.AwsAp if err != nil { return err } - sv.PercentTraffic = &f64 + sv.PercentTraffic = f64 } case "StageVariableOverrides": @@ -6695,7 +6699,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayCanarySettings(v **types.AwsAp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.UseStageCache = &jtv + sv.UseStageCache = jtv } default: @@ -6771,7 +6775,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(v **types.AwsAp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CacheDataEncrypted = &jtv + sv.CacheDataEncrypted = jtv } case "CacheTtlInSeconds": @@ -6784,7 +6788,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(v **types.AwsAp if err != nil { return err } - sv.CacheTtlInSeconds = ptr.Int32(int32(i64)) + sv.CacheTtlInSeconds = int32(i64) } case "CachingEnabled": @@ -6793,7 +6797,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(v **types.AwsAp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CachingEnabled = &jtv + sv.CachingEnabled = jtv } case "DataTraceEnabled": @@ -6802,7 +6806,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(v **types.AwsAp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DataTraceEnabled = &jtv + sv.DataTraceEnabled = jtv } case "HttpMethod": @@ -6811,7 +6815,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.HttpMethod = &jtv + sv.HttpMethod = ptr.String(jtv) } case "LoggingLevel": @@ -6820,7 +6824,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LoggingLevel = &jtv + sv.LoggingLevel = ptr.String(jtv) } case "MetricsEnabled": @@ -6829,7 +6833,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(v **types.AwsAp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.MetricsEnabled = &jtv + sv.MetricsEnabled = jtv } case "RequireAuthorizationForCacheControl": @@ -6838,7 +6842,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(v **types.AwsAp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RequireAuthorizationForCacheControl = &jtv + sv.RequireAuthorizationForCacheControl = jtv } case "ResourcePath": @@ -6847,7 +6851,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ResourcePath = &jtv + sv.ResourcePath = ptr.String(jtv) } case "ThrottlingBurstLimit": @@ -6860,7 +6864,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(v **types.AwsAp if err != nil { return err } - sv.ThrottlingBurstLimit = ptr.Int32(int32(i64)) + sv.ThrottlingBurstLimit = int32(i64) } case "ThrottlingRateLimit": @@ -6873,7 +6877,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(v **types.AwsAp if err != nil { return err } - sv.ThrottlingRateLimit = &f64 + sv.ThrottlingRateLimit = f64 } case "UnauthorizedCacheControlHeaderStrategy": @@ -6882,7 +6886,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.UnauthorizedCacheControlHeaderStrategy = &jtv + sv.UnauthorizedCacheControlHeaderStrategy = ptr.String(jtv) } default: @@ -6894,7 +6898,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(v **types.AwsAp return nil } -func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettingsList(v *[]*types.AwsApiGatewayMethodSettings, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettingsList(v *[]types.AwsApiGatewayMethodSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6907,18 +6911,20 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettingsList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsApiGatewayMethodSettings + var cv []types.AwsApiGatewayMethodSettings if *v == nil { - cv = []*types.AwsApiGatewayMethodSettings{} + cv = []types.AwsApiGatewayMethodSettings{} } else { cv = *v } for _, value := range shape { - var col *types.AwsApiGatewayMethodSettings - if err := awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(&col, value); err != nil { + var col types.AwsApiGatewayMethodSettings + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsApiGatewayMethodSettings(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6954,7 +6960,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayRestApiDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ApiKeySource = &jtv + sv.ApiKeySource = ptr.String(jtv) } case "BinaryMediaTypes": @@ -6968,7 +6974,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayRestApiDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreatedDate = &jtv + sv.CreatedDate = ptr.String(jtv) } case "Description": @@ -6977,7 +6983,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayRestApiDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EndpointConfiguration": @@ -6991,7 +6997,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayRestApiDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "MinimumCompressionSize": @@ -7004,7 +7010,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayRestApiDetails(v **types.AwsAp if err != nil { return err } - sv.MinimumCompressionSize = ptr.Int32(int32(i64)) + sv.MinimumCompressionSize = int32(i64) } case "Name": @@ -7013,7 +7019,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayRestApiDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Version": @@ -7022,7 +7028,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayRestApiDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -7067,7 +7073,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayStageDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CacheClusterEnabled = &jtv + sv.CacheClusterEnabled = jtv } case "CacheClusterSize": @@ -7076,7 +7082,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayStageDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CacheClusterSize = &jtv + sv.CacheClusterSize = ptr.String(jtv) } case "CacheClusterStatus": @@ -7085,7 +7091,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayStageDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CacheClusterStatus = &jtv + sv.CacheClusterStatus = ptr.String(jtv) } case "CanarySettings": @@ -7099,7 +7105,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayStageDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClientCertificateId = &jtv + sv.ClientCertificateId = ptr.String(jtv) } case "CreatedDate": @@ -7108,7 +7114,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayStageDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreatedDate = &jtv + sv.CreatedDate = ptr.String(jtv) } case "DeploymentId": @@ -7117,7 +7123,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayStageDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "Description": @@ -7126,7 +7132,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayStageDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DocumentationVersion": @@ -7135,7 +7141,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayStageDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DocumentationVersion = &jtv + sv.DocumentationVersion = ptr.String(jtv) } case "LastUpdatedDate": @@ -7144,7 +7150,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayStageDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LastUpdatedDate = &jtv + sv.LastUpdatedDate = ptr.String(jtv) } case "MethodSettings": @@ -7158,7 +7164,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayStageDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.StageName = &jtv + sv.StageName = ptr.String(jtv) } case "TracingEnabled": @@ -7167,7 +7173,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayStageDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.TracingEnabled = &jtv + sv.TracingEnabled = jtv } case "Variables": @@ -7181,7 +7187,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayStageDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.WebAclArn = &jtv + sv.WebAclArn = ptr.String(jtv) } default: @@ -7221,7 +7227,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2ApiDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ApiEndpoint = &jtv + sv.ApiEndpoint = ptr.String(jtv) } case "ApiId": @@ -7230,7 +7236,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2ApiDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ApiId = &jtv + sv.ApiId = ptr.String(jtv) } case "ApiKeySelectionExpression": @@ -7239,7 +7245,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2ApiDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ApiKeySelectionExpression = &jtv + sv.ApiKeySelectionExpression = ptr.String(jtv) } case "CorsConfiguration": @@ -7253,7 +7259,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2ApiDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreatedDate = &jtv + sv.CreatedDate = ptr.String(jtv) } case "Description": @@ -7262,7 +7268,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2ApiDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -7271,7 +7277,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2ApiDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ProtocolType": @@ -7280,7 +7286,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2ApiDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ProtocolType = &jtv + sv.ProtocolType = ptr.String(jtv) } case "RouteSelectionExpression": @@ -7289,7 +7295,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2ApiDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RouteSelectionExpression = &jtv + sv.RouteSelectionExpression = ptr.String(jtv) } case "Version": @@ -7298,7 +7304,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2ApiDetails(v **types.AwsApiG if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -7338,7 +7344,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2RouteSettings(v **types.AwsA if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DataTraceEnabled = &jtv + sv.DataTraceEnabled = jtv } case "DetailedMetricsEnabled": @@ -7347,7 +7353,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2RouteSettings(v **types.AwsA if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DetailedMetricsEnabled = &jtv + sv.DetailedMetricsEnabled = jtv } case "LoggingLevel": @@ -7356,7 +7362,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2RouteSettings(v **types.AwsA if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LoggingLevel = &jtv + sv.LoggingLevel = ptr.String(jtv) } case "ThrottlingBurstLimit": @@ -7369,7 +7375,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2RouteSettings(v **types.AwsA if err != nil { return err } - sv.ThrottlingBurstLimit = ptr.Int32(int32(i64)) + sv.ThrottlingBurstLimit = int32(i64) } case "ThrottlingRateLimit": @@ -7382,7 +7388,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2RouteSettings(v **types.AwsA if err != nil { return err } - sv.ThrottlingRateLimit = &f64 + sv.ThrottlingRateLimit = f64 } default: @@ -7427,7 +7433,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2StageDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = &jtv + sv.ApiGatewayManaged = jtv } case "AutoDeploy": @@ -7436,7 +7442,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2StageDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoDeploy = &jtv + sv.AutoDeploy = jtv } case "CreatedDate": @@ -7445,7 +7451,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2StageDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreatedDate = &jtv + sv.CreatedDate = ptr.String(jtv) } case "DefaultRouteSettings": @@ -7459,7 +7465,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2StageDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DeploymentId = &jtv + sv.DeploymentId = ptr.String(jtv) } case "Description": @@ -7468,7 +7474,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2StageDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LastDeploymentStatusMessage": @@ -7477,7 +7483,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2StageDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LastDeploymentStatusMessage = &jtv + sv.LastDeploymentStatusMessage = ptr.String(jtv) } case "LastUpdatedDate": @@ -7486,7 +7492,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2StageDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LastUpdatedDate = &jtv + sv.LastUpdatedDate = ptr.String(jtv) } case "RouteSettings": @@ -7500,7 +7506,7 @@ func awsRestjson1_deserializeDocumentAwsApiGatewayV2StageDetails(v **types.AwsAp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.StageName = &jtv + sv.StageName = ptr.String(jtv) } case "StageVariables": @@ -7545,7 +7551,7 @@ func awsRestjson1_deserializeDocumentAwsAutoScalingAutoScalingGroupDetails(v **t if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "HealthCheckGracePeriod": @@ -7558,7 +7564,7 @@ func awsRestjson1_deserializeDocumentAwsAutoScalingAutoScalingGroupDetails(v **t if err != nil { return err } - sv.HealthCheckGracePeriod = ptr.Int32(int32(i64)) + sv.HealthCheckGracePeriod = int32(i64) } case "HealthCheckType": @@ -7567,7 +7573,7 @@ func awsRestjson1_deserializeDocumentAwsAutoScalingAutoScalingGroupDetails(v **t if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.HealthCheckType = &jtv + sv.HealthCheckType = ptr.String(jtv) } case "LaunchConfigurationName": @@ -7576,7 +7582,7 @@ func awsRestjson1_deserializeDocumentAwsAutoScalingAutoScalingGroupDetails(v **t if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LaunchConfigurationName = &jtv + sv.LaunchConfigurationName = ptr.String(jtv) } case "LoadBalancerNames": @@ -7621,7 +7627,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CertificateAuthorityArn = &jtv + sv.CertificateAuthorityArn = ptr.String(jtv) } case "CreatedAt": @@ -7630,7 +7636,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "DomainName": @@ -7639,7 +7645,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "DomainValidationOptions": @@ -7658,7 +7664,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "ImportedAt": @@ -7667,7 +7673,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ImportedAt = &jtv + sv.ImportedAt = ptr.String(jtv) } case "InUseBy": @@ -7681,7 +7687,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.IssuedAt = &jtv + sv.IssuedAt = ptr.String(jtv) } case "Issuer": @@ -7690,7 +7696,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Issuer = &jtv + sv.Issuer = ptr.String(jtv) } case "KeyAlgorithm": @@ -7699,7 +7705,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KeyAlgorithm = &jtv + sv.KeyAlgorithm = ptr.String(jtv) } case "KeyUsages": @@ -7713,7 +7719,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NotAfter = &jtv + sv.NotAfter = ptr.String(jtv) } case "NotBefore": @@ -7722,7 +7728,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NotBefore = &jtv + sv.NotBefore = ptr.String(jtv) } case "Options": @@ -7736,7 +7742,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RenewalEligibility = &jtv + sv.RenewalEligibility = ptr.String(jtv) } case "RenewalSummary": @@ -7750,7 +7756,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Serial = &jtv + sv.Serial = ptr.String(jtv) } case "SignatureAlgorithm": @@ -7759,7 +7765,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SignatureAlgorithm = &jtv + sv.SignatureAlgorithm = ptr.String(jtv) } case "Status": @@ -7768,7 +7774,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "Subject": @@ -7777,7 +7783,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Subject = &jtv + sv.Subject = ptr.String(jtv) } case "SubjectAlternativeNames": @@ -7791,7 +7797,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDetails(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -7831,7 +7837,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDomainValid if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "ResourceRecord": @@ -7845,7 +7851,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDomainValid if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ValidationDomain = &jtv + sv.ValidationDomain = ptr.String(jtv) } case "ValidationEmails": @@ -7859,7 +7865,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDomainValid if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ValidationMethod = &jtv + sv.ValidationMethod = ptr.String(jtv) } case "ValidationStatus": @@ -7868,7 +7874,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDomainValid if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ValidationStatus = &jtv + sv.ValidationStatus = ptr.String(jtv) } default: @@ -7880,7 +7886,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDomainValid return nil } -func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDomainValidationOptions(v *[]*types.AwsCertificateManagerCertificateDomainValidationOption, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDomainValidationOptions(v *[]types.AwsCertificateManagerCertificateDomainValidationOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7893,18 +7899,20 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDomainValid return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsCertificateManagerCertificateDomainValidationOption + var cv []types.AwsCertificateManagerCertificateDomainValidationOption if *v == nil { - cv = []*types.AwsCertificateManagerCertificateDomainValidationOption{} + cv = []types.AwsCertificateManagerCertificateDomainValidationOption{} } else { cv = *v } for _, value := range shape { - var col *types.AwsCertificateManagerCertificateDomainValidationOption - if err := awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDomainValidationOption(&col, value); err != nil { + var col types.AwsCertificateManagerCertificateDomainValidationOption + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateDomainValidationOption(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7940,7 +7948,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateExtendedKey if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OId": @@ -7949,7 +7957,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateExtendedKey if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.OId = &jtv + sv.OId = ptr.String(jtv) } default: @@ -7961,7 +7969,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateExtendedKey return nil } -func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateExtendedKeyUsages(v *[]*types.AwsCertificateManagerCertificateExtendedKeyUsage, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateExtendedKeyUsages(v *[]types.AwsCertificateManagerCertificateExtendedKeyUsage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7974,18 +7982,20 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateExtendedKey return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsCertificateManagerCertificateExtendedKeyUsage + var cv []types.AwsCertificateManagerCertificateExtendedKeyUsage if *v == nil { - cv = []*types.AwsCertificateManagerCertificateExtendedKeyUsage{} + cv = []types.AwsCertificateManagerCertificateExtendedKeyUsage{} } else { cv = *v } for _, value := range shape { - var col *types.AwsCertificateManagerCertificateExtendedKeyUsage - if err := awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateExtendedKeyUsage(&col, value); err != nil { + var col types.AwsCertificateManagerCertificateExtendedKeyUsage + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateExtendedKeyUsage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8021,7 +8031,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateKeyUsage(v if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8033,7 +8043,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateKeyUsage(v return nil } -func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateKeyUsages(v *[]*types.AwsCertificateManagerCertificateKeyUsage, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateKeyUsages(v *[]types.AwsCertificateManagerCertificateKeyUsage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8046,18 +8056,20 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateKeyUsages(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsCertificateManagerCertificateKeyUsage + var cv []types.AwsCertificateManagerCertificateKeyUsage if *v == nil { - cv = []*types.AwsCertificateManagerCertificateKeyUsage{} + cv = []types.AwsCertificateManagerCertificateKeyUsage{} } else { cv = *v } for _, value := range shape { - var col *types.AwsCertificateManagerCertificateKeyUsage - if err := awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateKeyUsage(&col, value); err != nil { + var col types.AwsCertificateManagerCertificateKeyUsage + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateKeyUsage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8093,7 +8105,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateOptions(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CertificateTransparencyLoggingPreference = &jtv + sv.CertificateTransparencyLoggingPreference = ptr.String(jtv) } default: @@ -8138,7 +8150,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateRenewalSumm if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RenewalStatus = &jtv + sv.RenewalStatus = ptr.String(jtv) } case "RenewalStatusReason": @@ -8147,7 +8159,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateRenewalSumm if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RenewalStatusReason = &jtv + sv.RenewalStatusReason = ptr.String(jtv) } case "UpdatedAt": @@ -8156,7 +8168,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateRenewalSumm if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.UpdatedAt = &jtv + sv.UpdatedAt = ptr.String(jtv) } default: @@ -8196,7 +8208,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateResourceRec if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Type": @@ -8205,7 +8217,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateResourceRec if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "Value": @@ -8214,7 +8226,7 @@ func awsRestjson1_deserializeDocumentAwsCertificateManagerCertificateResourceRec if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8254,7 +8266,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionCacheBehavior(v ** if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ViewerProtocolPolicy = &jtv + sv.ViewerProtocolPolicy = ptr.String(jtv) } default: @@ -8302,7 +8314,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionCacheBehaviors(v * return nil } -func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionCacheBehaviorsItemList(v *[]*types.AwsCloudFrontDistributionCacheBehavior, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionCacheBehaviorsItemList(v *[]types.AwsCloudFrontDistributionCacheBehavior, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8315,18 +8327,20 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionCacheBehaviorsItem return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsCloudFrontDistributionCacheBehavior + var cv []types.AwsCloudFrontDistributionCacheBehavior if *v == nil { - cv = []*types.AwsCloudFrontDistributionCacheBehavior{} + cv = []types.AwsCloudFrontDistributionCacheBehavior{} } else { cv = *v } for _, value := range shape { - var col *types.AwsCloudFrontDistributionCacheBehavior - if err := awsRestjson1_deserializeDocumentAwsCloudFrontDistributionCacheBehavior(&col, value); err != nil { + var col types.AwsCloudFrontDistributionCacheBehavior + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsCloudFrontDistributionCacheBehavior(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8362,7 +8376,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionDefaultCacheBehavi if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ViewerProtocolPolicy = &jtv + sv.ViewerProtocolPolicy = ptr.String(jtv) } default: @@ -8412,7 +8426,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionDetails(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DefaultRootObject = &jtv + sv.DefaultRootObject = ptr.String(jtv) } case "DomainName": @@ -8421,7 +8435,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionDetails(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "ETag": @@ -8430,7 +8444,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionDetails(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ETag = &jtv + sv.ETag = ptr.String(jtv) } case "LastModifiedTime": @@ -8439,7 +8453,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionDetails(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LastModifiedTime = &jtv + sv.LastModifiedTime = ptr.String(jtv) } case "Logging": @@ -8463,7 +8477,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionDetails(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "WebAclId": @@ -8472,7 +8486,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionDetails(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.WebAclId = &jtv + sv.WebAclId = ptr.String(jtv) } default: @@ -8512,7 +8526,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionLogging(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "Enabled": @@ -8521,7 +8535,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionLogging(v **types. if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "IncludeCookies": @@ -8530,7 +8544,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionLogging(v **types. if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IncludeCookies = &jtv + sv.IncludeCookies = jtv } case "Prefix": @@ -8539,7 +8553,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionLogging(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } default: @@ -8660,7 +8674,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginGroupFailove if err != nil { return err } - sv.Quantity = ptr.Int32(int32(i64)) + sv.Quantity = int32(i64) } default: @@ -8672,7 +8686,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginGroupFailove return nil } -func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginGroupFailoverStatusCodesItemList(v *[]*int32, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginGroupFailoverStatusCodesItemList(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8685,15 +8699,15 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginGroupFailove return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int32 + var cv []int32 if *v == nil { - cv = []*int32{} + cv = []int32{} } else { cv = *v } for _, value := range shape { - var col *int32 + var col int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -8703,7 +8717,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginGroupFailove if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } cv = append(cv, col) @@ -8748,7 +8762,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginGroups(v **t return nil } -func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginGroupsItemList(v *[]*types.AwsCloudFrontDistributionOriginGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginGroupsItemList(v *[]types.AwsCloudFrontDistributionOriginGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8761,18 +8775,20 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginGroupsItemLi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsCloudFrontDistributionOriginGroup + var cv []types.AwsCloudFrontDistributionOriginGroup if *v == nil { - cv = []*types.AwsCloudFrontDistributionOriginGroup{} + cv = []types.AwsCloudFrontDistributionOriginGroup{} } else { cv = *v } for _, value := range shape { - var col *types.AwsCloudFrontDistributionOriginGroup - if err := awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginGroup(&col, value); err != nil { + var col types.AwsCloudFrontDistributionOriginGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8808,7 +8824,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginItem(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "Id": @@ -8817,7 +8833,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginItem(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "OriginPath": @@ -8826,7 +8842,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginItem(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.OriginPath = &jtv + sv.OriginPath = ptr.String(jtv) } case "S3OriginConfig": @@ -8843,7 +8859,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginItem(v **typ return nil } -func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginItemList(v *[]*types.AwsCloudFrontDistributionOriginItem, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginItemList(v *[]types.AwsCloudFrontDistributionOriginItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8856,18 +8872,20 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginItemList(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsCloudFrontDistributionOriginItem + var cv []types.AwsCloudFrontDistributionOriginItem if *v == nil { - cv = []*types.AwsCloudFrontDistributionOriginItem{} + cv = []types.AwsCloudFrontDistributionOriginItem{} } else { cv = *v } for _, value := range shape { - var col *types.AwsCloudFrontDistributionOriginItem - if err := awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginItem(&col, value); err != nil { + var col types.AwsCloudFrontDistributionOriginItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8939,7 +8957,7 @@ func awsRestjson1_deserializeDocumentAwsCloudFrontDistributionOriginS3OriginConf if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.OriginAccessIdentity = &jtv + sv.OriginAccessIdentity = ptr.String(jtv) } default: @@ -8979,7 +8997,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CloudWatchLogsLogGroupArn = &jtv + sv.CloudWatchLogsLogGroupArn = ptr.String(jtv) } case "CloudWatchLogsRoleArn": @@ -8988,7 +9006,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CloudWatchLogsRoleArn = &jtv + sv.CloudWatchLogsRoleArn = ptr.String(jtv) } case "HasCustomEventSelectors": @@ -8997,7 +9015,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.HasCustomEventSelectors = &jtv + sv.HasCustomEventSelectors = jtv } case "HomeRegion": @@ -9006,7 +9024,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.HomeRegion = &jtv + sv.HomeRegion = ptr.String(jtv) } case "IncludeGlobalServiceEvents": @@ -9015,7 +9033,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IncludeGlobalServiceEvents = &jtv + sv.IncludeGlobalServiceEvents = jtv } case "IsMultiRegionTrail": @@ -9024,7 +9042,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsMultiRegionTrail = &jtv + sv.IsMultiRegionTrail = jtv } case "IsOrganizationTrail": @@ -9033,7 +9051,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsOrganizationTrail = &jtv + sv.IsOrganizationTrail = jtv } case "KmsKeyId": @@ -9042,7 +9060,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LogFileValidationEnabled": @@ -9051,7 +9069,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.LogFileValidationEnabled = &jtv + sv.LogFileValidationEnabled = jtv } case "Name": @@ -9060,7 +9078,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "S3BucketName": @@ -9069,7 +9087,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "S3KeyPrefix": @@ -9078,7 +9096,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.S3KeyPrefix = &jtv + sv.S3KeyPrefix = ptr.String(jtv) } case "SnsTopicArn": @@ -9087,7 +9105,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SnsTopicArn = &jtv + sv.SnsTopicArn = ptr.String(jtv) } case "SnsTopicName": @@ -9096,7 +9114,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SnsTopicName = &jtv + sv.SnsTopicName = ptr.String(jtv) } case "TrailArn": @@ -9105,7 +9123,7 @@ func awsRestjson1_deserializeDocumentAwsCloudTrailTrailDetails(v **types.AwsClou if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.TrailArn = &jtv + sv.TrailArn = ptr.String(jtv) } default: @@ -9145,7 +9163,7 @@ func awsRestjson1_deserializeDocumentAwsCodeBuildProjectDetails(v **types.AwsCod if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EncryptionKey = &jtv + sv.EncryptionKey = ptr.String(jtv) } case "Environment": @@ -9159,7 +9177,7 @@ func awsRestjson1_deserializeDocumentAwsCodeBuildProjectDetails(v **types.AwsCod if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ServiceRole": @@ -9168,7 +9186,7 @@ func awsRestjson1_deserializeDocumentAwsCodeBuildProjectDetails(v **types.AwsCod if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } case "Source": @@ -9218,7 +9236,7 @@ func awsRestjson1_deserializeDocumentAwsCodeBuildProjectEnvironment(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Certificate = &jtv + sv.Certificate = ptr.String(jtv) } case "ImagePullCredentialsType": @@ -9227,7 +9245,7 @@ func awsRestjson1_deserializeDocumentAwsCodeBuildProjectEnvironment(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ImagePullCredentialsType = &jtv + sv.ImagePullCredentialsType = ptr.String(jtv) } case "RegistryCredential": @@ -9241,7 +9259,7 @@ func awsRestjson1_deserializeDocumentAwsCodeBuildProjectEnvironment(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -9281,7 +9299,7 @@ func awsRestjson1_deserializeDocumentAwsCodeBuildProjectEnvironmentRegistryCrede if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Credential = &jtv + sv.Credential = ptr.String(jtv) } case "CredentialProvider": @@ -9290,7 +9308,7 @@ func awsRestjson1_deserializeDocumentAwsCodeBuildProjectEnvironmentRegistryCrede if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CredentialProvider = &jtv + sv.CredentialProvider = ptr.String(jtv) } default: @@ -9334,7 +9352,7 @@ func awsRestjson1_deserializeDocumentAwsCodeBuildProjectSource(v **types.AwsCode if err != nil { return err } - sv.GitCloneDepth = ptr.Int32(int32(i64)) + sv.GitCloneDepth = int32(i64) } case "InsecureSsl": @@ -9343,7 +9361,7 @@ func awsRestjson1_deserializeDocumentAwsCodeBuildProjectSource(v **types.AwsCode if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.InsecureSsl = &jtv + sv.InsecureSsl = jtv } case "Location": @@ -9352,7 +9370,7 @@ func awsRestjson1_deserializeDocumentAwsCodeBuildProjectSource(v **types.AwsCode if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "Type": @@ -9361,7 +9379,7 @@ func awsRestjson1_deserializeDocumentAwsCodeBuildProjectSource(v **types.AwsCode if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -9411,7 +9429,7 @@ func awsRestjson1_deserializeDocumentAwsCodeBuildProjectVpcConfig(v **types.AwsC if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -9451,7 +9469,7 @@ func awsRestjson1_deserializeDocumentAwsCorsConfiguration(v **types.AwsCorsConfi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllowCredentials = &jtv + sv.AllowCredentials = jtv } case "AllowHeaders": @@ -9484,7 +9502,7 @@ func awsRestjson1_deserializeDocumentAwsCorsConfiguration(v **types.AwsCorsConfi if err != nil { return err } - sv.MaxAge = ptr.Int32(int32(i64)) + sv.MaxAge = int32(i64) } default: @@ -9524,7 +9542,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableAttributeDefinition(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "AttributeType": @@ -9533,7 +9551,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableAttributeDefinition(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AttributeType = &jtv + sv.AttributeType = ptr.String(jtv) } default: @@ -9545,7 +9563,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableAttributeDefinition(v **typ return nil } -func awsRestjson1_deserializeDocumentAwsDynamoDbTableAttributeDefinitionList(v *[]*types.AwsDynamoDbTableAttributeDefinition, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsDynamoDbTableAttributeDefinitionList(v *[]types.AwsDynamoDbTableAttributeDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9558,18 +9576,20 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableAttributeDefinitionList(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsDynamoDbTableAttributeDefinition + var cv []types.AwsDynamoDbTableAttributeDefinition if *v == nil { - cv = []*types.AwsDynamoDbTableAttributeDefinition{} + cv = []types.AwsDynamoDbTableAttributeDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.AwsDynamoDbTableAttributeDefinition - if err := awsRestjson1_deserializeDocumentAwsDynamoDbTableAttributeDefinition(&col, value); err != nil { + var col types.AwsDynamoDbTableAttributeDefinition + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsDynamoDbTableAttributeDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9605,7 +9625,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableBillingModeSummary(v **type if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.BillingMode = &jtv + sv.BillingMode = ptr.String(jtv) } case "LastUpdateToPayPerRequestDateTime": @@ -9614,7 +9634,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableBillingModeSummary(v **type if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LastUpdateToPayPerRequestDateTime = &jtv + sv.LastUpdateToPayPerRequestDateTime = ptr.String(jtv) } default: @@ -9664,7 +9684,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableDetails(v **types.AwsDynamo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreationDateTime = &jtv + sv.CreationDateTime = ptr.String(jtv) } case "GlobalSecondaryIndexes": @@ -9678,7 +9698,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableDetails(v **types.AwsDynamo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GlobalTableVersion = &jtv + sv.GlobalTableVersion = ptr.String(jtv) } case "ItemCount": @@ -9691,7 +9711,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableDetails(v **types.AwsDynamo if err != nil { return err } - sv.ItemCount = ptr.Int32(int32(i64)) + sv.ItemCount = int32(i64) } case "KeySchema": @@ -9705,7 +9725,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableDetails(v **types.AwsDynamo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LatestStreamArn = &jtv + sv.LatestStreamArn = ptr.String(jtv) } case "LatestStreamLabel": @@ -9714,7 +9734,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableDetails(v **types.AwsDynamo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LatestStreamLabel = &jtv + sv.LatestStreamLabel = ptr.String(jtv) } case "LocalSecondaryIndexes": @@ -9753,7 +9773,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableDetails(v **types.AwsDynamo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.TableId = &jtv + sv.TableId = ptr.String(jtv) } case "TableName": @@ -9762,7 +9782,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableDetails(v **types.AwsDynamo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "TableSizeBytes": @@ -9775,7 +9795,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableDetails(v **types.AwsDynamo if err != nil { return err } - sv.TableSizeBytes = &i64 + sv.TableSizeBytes = i64 } case "TableStatus": @@ -9784,7 +9804,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableDetails(v **types.AwsDynamo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.TableStatus = &jtv + sv.TableStatus = ptr.String(jtv) } default: @@ -9824,7 +9844,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(v **ty if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Backfilling = &jtv + sv.Backfilling = jtv } case "IndexArn": @@ -9833,7 +9853,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(v **ty if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.IndexArn = &jtv + sv.IndexArn = ptr.String(jtv) } case "IndexName": @@ -9842,7 +9862,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(v **ty if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "IndexSizeBytes": @@ -9855,7 +9875,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(v **ty if err != nil { return err } - sv.IndexSizeBytes = &i64 + sv.IndexSizeBytes = i64 } case "IndexStatus": @@ -9864,7 +9884,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(v **ty if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.IndexStatus = &jtv + sv.IndexStatus = ptr.String(jtv) } case "ItemCount": @@ -9877,7 +9897,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(v **ty if err != nil { return err } - sv.ItemCount = ptr.Int32(int32(i64)) + sv.ItemCount = int32(i64) } case "KeySchema": @@ -9904,7 +9924,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(v **ty return nil } -func awsRestjson1_deserializeDocumentAwsDynamoDbTableGlobalSecondaryIndexList(v *[]*types.AwsDynamoDbTableGlobalSecondaryIndex, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsDynamoDbTableGlobalSecondaryIndexList(v *[]types.AwsDynamoDbTableGlobalSecondaryIndex, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9917,18 +9937,20 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableGlobalSecondaryIndexList(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsDynamoDbTableGlobalSecondaryIndex + var cv []types.AwsDynamoDbTableGlobalSecondaryIndex if *v == nil { - cv = []*types.AwsDynamoDbTableGlobalSecondaryIndex{} + cv = []types.AwsDynamoDbTableGlobalSecondaryIndex{} } else { cv = *v } for _, value := range shape { - var col *types.AwsDynamoDbTableGlobalSecondaryIndex - if err := awsRestjson1_deserializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(&col, value); err != nil { + var col types.AwsDynamoDbTableGlobalSecondaryIndex + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9964,7 +9986,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableKeySchema(v **types.AwsDyna if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AttributeName = &jtv + sv.AttributeName = ptr.String(jtv) } case "KeyType": @@ -9973,7 +9995,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableKeySchema(v **types.AwsDyna if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KeyType = &jtv + sv.KeyType = ptr.String(jtv) } default: @@ -9985,7 +10007,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableKeySchema(v **types.AwsDyna return nil } -func awsRestjson1_deserializeDocumentAwsDynamoDbTableKeySchemaList(v *[]*types.AwsDynamoDbTableKeySchema, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsDynamoDbTableKeySchemaList(v *[]types.AwsDynamoDbTableKeySchema, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9998,18 +10020,20 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableKeySchemaList(v *[]*types.A return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsDynamoDbTableKeySchema + var cv []types.AwsDynamoDbTableKeySchema if *v == nil { - cv = []*types.AwsDynamoDbTableKeySchema{} + cv = []types.AwsDynamoDbTableKeySchema{} } else { cv = *v } for _, value := range shape { - var col *types.AwsDynamoDbTableKeySchema - if err := awsRestjson1_deserializeDocumentAwsDynamoDbTableKeySchema(&col, value); err != nil { + var col types.AwsDynamoDbTableKeySchema + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsDynamoDbTableKeySchema(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10045,7 +10069,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableLocalSecondaryIndex(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.IndexArn = &jtv + sv.IndexArn = ptr.String(jtv) } case "IndexName": @@ -10054,7 +10078,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableLocalSecondaryIndex(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "KeySchema": @@ -10076,7 +10100,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableLocalSecondaryIndex(v **typ return nil } -func awsRestjson1_deserializeDocumentAwsDynamoDbTableLocalSecondaryIndexList(v *[]*types.AwsDynamoDbTableLocalSecondaryIndex, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsDynamoDbTableLocalSecondaryIndexList(v *[]types.AwsDynamoDbTableLocalSecondaryIndex, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10089,18 +10113,20 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableLocalSecondaryIndexList(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsDynamoDbTableLocalSecondaryIndex + var cv []types.AwsDynamoDbTableLocalSecondaryIndex if *v == nil { - cv = []*types.AwsDynamoDbTableLocalSecondaryIndex{} + cv = []types.AwsDynamoDbTableLocalSecondaryIndex{} } else { cv = *v } for _, value := range shape { - var col *types.AwsDynamoDbTableLocalSecondaryIndex - if err := awsRestjson1_deserializeDocumentAwsDynamoDbTableLocalSecondaryIndex(&col, value); err != nil { + var col types.AwsDynamoDbTableLocalSecondaryIndex + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsDynamoDbTableLocalSecondaryIndex(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10141,7 +10167,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableProjection(v **types.AwsDyn if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ProjectionType = &jtv + sv.ProjectionType = ptr.String(jtv) } default: @@ -10181,7 +10207,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableProvisionedThroughput(v **t if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LastDecreaseDateTime = &jtv + sv.LastDecreaseDateTime = ptr.String(jtv) } case "LastIncreaseDateTime": @@ -10190,7 +10216,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableProvisionedThroughput(v **t if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LastIncreaseDateTime = &jtv + sv.LastIncreaseDateTime = ptr.String(jtv) } case "NumberOfDecreasesToday": @@ -10203,7 +10229,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableProvisionedThroughput(v **t if err != nil { return err } - sv.NumberOfDecreasesToday = ptr.Int32(int32(i64)) + sv.NumberOfDecreasesToday = int32(i64) } case "ReadCapacityUnits": @@ -10216,7 +10242,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableProvisionedThroughput(v **t if err != nil { return err } - sv.ReadCapacityUnits = ptr.Int32(int32(i64)) + sv.ReadCapacityUnits = int32(i64) } case "WriteCapacityUnits": @@ -10229,7 +10255,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableProvisionedThroughput(v **t if err != nil { return err } - sv.WriteCapacityUnits = ptr.Int32(int32(i64)) + sv.WriteCapacityUnits = int32(i64) } default: @@ -10273,7 +10299,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableProvisionedThroughputOverri if err != nil { return err } - sv.ReadCapacityUnits = ptr.Int32(int32(i64)) + sv.ReadCapacityUnits = int32(i64) } default: @@ -10318,7 +10344,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableReplica(v **types.AwsDynamo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsMasterKeyId = &jtv + sv.KmsMasterKeyId = ptr.String(jtv) } case "ProvisionedThroughputOverride": @@ -10332,7 +10358,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableReplica(v **types.AwsDynamo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RegionName = &jtv + sv.RegionName = ptr.String(jtv) } case "ReplicaStatus": @@ -10341,7 +10367,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableReplica(v **types.AwsDynamo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ReplicaStatus = &jtv + sv.ReplicaStatus = ptr.String(jtv) } case "ReplicaStatusDescription": @@ -10350,7 +10376,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableReplica(v **types.AwsDynamo if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ReplicaStatusDescription = &jtv + sv.ReplicaStatusDescription = ptr.String(jtv) } default: @@ -10390,7 +10416,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableReplicaGlobalSecondaryIndex if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.IndexName = &jtv + sv.IndexName = ptr.String(jtv) } case "ProvisionedThroughputOverride": @@ -10407,7 +10433,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableReplicaGlobalSecondaryIndex return nil } -func awsRestjson1_deserializeDocumentAwsDynamoDbTableReplicaGlobalSecondaryIndexList(v *[]*types.AwsDynamoDbTableReplicaGlobalSecondaryIndex, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsDynamoDbTableReplicaGlobalSecondaryIndexList(v *[]types.AwsDynamoDbTableReplicaGlobalSecondaryIndex, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10420,18 +10446,20 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableReplicaGlobalSecondaryIndex return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsDynamoDbTableReplicaGlobalSecondaryIndex + var cv []types.AwsDynamoDbTableReplicaGlobalSecondaryIndex if *v == nil { - cv = []*types.AwsDynamoDbTableReplicaGlobalSecondaryIndex{} + cv = []types.AwsDynamoDbTableReplicaGlobalSecondaryIndex{} } else { cv = *v } for _, value := range shape { - var col *types.AwsDynamoDbTableReplicaGlobalSecondaryIndex - if err := awsRestjson1_deserializeDocumentAwsDynamoDbTableReplicaGlobalSecondaryIndex(&col, value); err != nil { + var col types.AwsDynamoDbTableReplicaGlobalSecondaryIndex + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsDynamoDbTableReplicaGlobalSecondaryIndex(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10439,7 +10467,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableReplicaGlobalSecondaryIndex return nil } -func awsRestjson1_deserializeDocumentAwsDynamoDbTableReplicaList(v *[]*types.AwsDynamoDbTableReplica, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsDynamoDbTableReplicaList(v *[]types.AwsDynamoDbTableReplica, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10452,18 +10480,20 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableReplicaList(v *[]*types.Aws return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsDynamoDbTableReplica + var cv []types.AwsDynamoDbTableReplica if *v == nil { - cv = []*types.AwsDynamoDbTableReplica{} + cv = []types.AwsDynamoDbTableReplica{} } else { cv = *v } for _, value := range shape { - var col *types.AwsDynamoDbTableReplica - if err := awsRestjson1_deserializeDocumentAwsDynamoDbTableReplica(&col, value); err != nil { + var col types.AwsDynamoDbTableReplica + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsDynamoDbTableReplica(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10499,7 +10529,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableRestoreSummary(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RestoreDateTime = &jtv + sv.RestoreDateTime = ptr.String(jtv) } case "RestoreInProgress": @@ -10508,7 +10538,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableRestoreSummary(v **types.Aw if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RestoreInProgress = &jtv + sv.RestoreInProgress = jtv } case "SourceBackupArn": @@ -10517,7 +10547,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableRestoreSummary(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SourceBackupArn = &jtv + sv.SourceBackupArn = ptr.String(jtv) } case "SourceTableArn": @@ -10526,7 +10556,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableRestoreSummary(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SourceTableArn = &jtv + sv.SourceTableArn = ptr.String(jtv) } default: @@ -10566,7 +10596,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableSseDescription(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InaccessibleEncryptionDateTime = &jtv + sv.InaccessibleEncryptionDateTime = ptr.String(jtv) } case "KmsMasterKeyArn": @@ -10575,7 +10605,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableSseDescription(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsMasterKeyArn = &jtv + sv.KmsMasterKeyArn = ptr.String(jtv) } case "SseType": @@ -10584,7 +10614,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableSseDescription(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SseType = &jtv + sv.SseType = ptr.String(jtv) } case "Status": @@ -10593,7 +10623,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableSseDescription(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -10633,7 +10663,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableStreamSpecification(v **typ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.StreamEnabled = &jtv + sv.StreamEnabled = jtv } case "StreamViewType": @@ -10642,7 +10672,7 @@ func awsRestjson1_deserializeDocumentAwsDynamoDbTableStreamSpecification(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.StreamViewType = &jtv + sv.StreamViewType = ptr.String(jtv) } default: @@ -10682,7 +10712,7 @@ func awsRestjson1_deserializeDocumentAwsEc2EipDetails(v **types.AwsEc2EipDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AllocationId = &jtv + sv.AllocationId = ptr.String(jtv) } case "AssociationId": @@ -10691,7 +10721,7 @@ func awsRestjson1_deserializeDocumentAwsEc2EipDetails(v **types.AwsEc2EipDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AssociationId = &jtv + sv.AssociationId = ptr.String(jtv) } case "Domain": @@ -10700,7 +10730,7 @@ func awsRestjson1_deserializeDocumentAwsEc2EipDetails(v **types.AwsEc2EipDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Domain = &jtv + sv.Domain = ptr.String(jtv) } case "InstanceId": @@ -10709,7 +10739,7 @@ func awsRestjson1_deserializeDocumentAwsEc2EipDetails(v **types.AwsEc2EipDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "NetworkBorderGroup": @@ -10718,7 +10748,7 @@ func awsRestjson1_deserializeDocumentAwsEc2EipDetails(v **types.AwsEc2EipDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NetworkBorderGroup = &jtv + sv.NetworkBorderGroup = ptr.String(jtv) } case "NetworkInterfaceId": @@ -10727,7 +10757,7 @@ func awsRestjson1_deserializeDocumentAwsEc2EipDetails(v **types.AwsEc2EipDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NetworkInterfaceId = &jtv + sv.NetworkInterfaceId = ptr.String(jtv) } case "NetworkInterfaceOwnerId": @@ -10736,7 +10766,7 @@ func awsRestjson1_deserializeDocumentAwsEc2EipDetails(v **types.AwsEc2EipDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NetworkInterfaceOwnerId = &jtv + sv.NetworkInterfaceOwnerId = ptr.String(jtv) } case "PrivateIpAddress": @@ -10745,7 +10775,7 @@ func awsRestjson1_deserializeDocumentAwsEc2EipDetails(v **types.AwsEc2EipDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PrivateIpAddress = &jtv + sv.PrivateIpAddress = ptr.String(jtv) } case "PublicIp": @@ -10754,7 +10784,7 @@ func awsRestjson1_deserializeDocumentAwsEc2EipDetails(v **types.AwsEc2EipDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PublicIp = &jtv + sv.PublicIp = ptr.String(jtv) } case "PublicIpv4Pool": @@ -10763,7 +10793,7 @@ func awsRestjson1_deserializeDocumentAwsEc2EipDetails(v **types.AwsEc2EipDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PublicIpv4Pool = &jtv + sv.PublicIpv4Pool = ptr.String(jtv) } default: @@ -10803,7 +10833,7 @@ func awsRestjson1_deserializeDocumentAwsEc2InstanceDetails(v **types.AwsEc2Insta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.IamInstanceProfileArn = &jtv + sv.IamInstanceProfileArn = ptr.String(jtv) } case "ImageId": @@ -10812,7 +10842,7 @@ func awsRestjson1_deserializeDocumentAwsEc2InstanceDetails(v **types.AwsEc2Insta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ImageId = &jtv + sv.ImageId = ptr.String(jtv) } case "IpV4Addresses": @@ -10831,7 +10861,7 @@ func awsRestjson1_deserializeDocumentAwsEc2InstanceDetails(v **types.AwsEc2Insta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KeyName = &jtv + sv.KeyName = ptr.String(jtv) } case "LaunchedAt": @@ -10840,7 +10870,7 @@ func awsRestjson1_deserializeDocumentAwsEc2InstanceDetails(v **types.AwsEc2Insta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LaunchedAt = &jtv + sv.LaunchedAt = ptr.String(jtv) } case "SubnetId": @@ -10849,7 +10879,7 @@ func awsRestjson1_deserializeDocumentAwsEc2InstanceDetails(v **types.AwsEc2Insta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "Type": @@ -10858,7 +10888,7 @@ func awsRestjson1_deserializeDocumentAwsEc2InstanceDetails(v **types.AwsEc2Insta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "VpcId": @@ -10867,7 +10897,7 @@ func awsRestjson1_deserializeDocumentAwsEc2InstanceDetails(v **types.AwsEc2Insta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -10907,7 +10937,7 @@ func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceAttachment(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AttachmentId = &jtv + sv.AttachmentId = ptr.String(jtv) } case "AttachTime": @@ -10916,7 +10946,7 @@ func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceAttachment(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AttachTime = &jtv + sv.AttachTime = ptr.String(jtv) } case "DeleteOnTermination": @@ -10925,7 +10955,7 @@ func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceAttachment(v **types. if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DeleteOnTermination = &jtv + sv.DeleteOnTermination = jtv } case "DeviceIndex": @@ -10938,7 +10968,7 @@ func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceAttachment(v **types. if err != nil { return err } - sv.DeviceIndex = ptr.Int32(int32(i64)) + sv.DeviceIndex = int32(i64) } case "InstanceId": @@ -10947,7 +10977,7 @@ func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceAttachment(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "InstanceOwnerId": @@ -10956,7 +10986,7 @@ func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceAttachment(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceOwnerId = &jtv + sv.InstanceOwnerId = ptr.String(jtv) } case "Status": @@ -10965,7 +10995,7 @@ func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceAttachment(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -11010,7 +11040,7 @@ func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceDetails(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NetworkInterfaceId = &jtv + sv.NetworkInterfaceId = ptr.String(jtv) } case "SecurityGroups": @@ -11024,7 +11054,7 @@ func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceDetails(v **types.Aws if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.SourceDestCheck = &jtv + sv.SourceDestCheck = jtv } default: @@ -11064,7 +11094,7 @@ func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceSecurityGroup(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } case "GroupName": @@ -11073,7 +11103,7 @@ func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceSecurityGroup(v **typ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } default: @@ -11085,7 +11115,7 @@ func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceSecurityGroup(v **typ return nil } -func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceSecurityGroupList(v *[]*types.AwsEc2NetworkInterfaceSecurityGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceSecurityGroupList(v *[]types.AwsEc2NetworkInterfaceSecurityGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11098,18 +11128,20 @@ func awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceSecurityGroupList(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsEc2NetworkInterfaceSecurityGroup + var cv []types.AwsEc2NetworkInterfaceSecurityGroup if *v == nil { - cv = []*types.AwsEc2NetworkInterfaceSecurityGroup{} + cv = []types.AwsEc2NetworkInterfaceSecurityGroup{} } else { cv = *v } for _, value := range shape { - var col *types.AwsEc2NetworkInterfaceSecurityGroup - if err := awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceSecurityGroup(&col, value); err != nil { + var col types.AwsEc2NetworkInterfaceSecurityGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsEc2NetworkInterfaceSecurityGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11145,7 +11177,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupDetails(v **types.AwsEc2 if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } case "GroupName": @@ -11154,7 +11186,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupDetails(v **types.AwsEc2 if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } case "IpPermissions": @@ -11173,7 +11205,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupDetails(v **types.AwsEc2 if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "VpcId": @@ -11182,7 +11214,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupDetails(v **types.AwsEc2 if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -11226,7 +11258,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpPermission(v **types.A if err != nil { return err } - sv.FromPort = ptr.Int32(int32(i64)) + sv.FromPort = int32(i64) } case "IpProtocol": @@ -11235,7 +11267,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpPermission(v **types.A if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.IpProtocol = &jtv + sv.IpProtocol = ptr.String(jtv) } case "IpRanges": @@ -11263,7 +11295,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpPermission(v **types.A if err != nil { return err } - sv.ToPort = ptr.Int32(int32(i64)) + sv.ToPort = int32(i64) } case "UserIdGroupPairs": @@ -11280,7 +11312,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpPermission(v **types.A return nil } -func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpPermissionList(v *[]*types.AwsEc2SecurityGroupIpPermission, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpPermissionList(v *[]types.AwsEc2SecurityGroupIpPermission, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11293,18 +11325,20 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpPermissionList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsEc2SecurityGroupIpPermission + var cv []types.AwsEc2SecurityGroupIpPermission if *v == nil { - cv = []*types.AwsEc2SecurityGroupIpPermission{} + cv = []types.AwsEc2SecurityGroupIpPermission{} } else { cv = *v } for _, value := range shape { - var col *types.AwsEc2SecurityGroupIpPermission - if err := awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpPermission(&col, value); err != nil { + var col types.AwsEc2SecurityGroupIpPermission + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpPermission(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11340,7 +11374,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpRange(v **types.AwsEc2 if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CidrIp = &jtv + sv.CidrIp = ptr.String(jtv) } default: @@ -11352,7 +11386,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpRange(v **types.AwsEc2 return nil } -func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpRangeList(v *[]*types.AwsEc2SecurityGroupIpRange, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpRangeList(v *[]types.AwsEc2SecurityGroupIpRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11365,18 +11399,20 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpRangeList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsEc2SecurityGroupIpRange + var cv []types.AwsEc2SecurityGroupIpRange if *v == nil { - cv = []*types.AwsEc2SecurityGroupIpRange{} + cv = []types.AwsEc2SecurityGroupIpRange{} } else { cv = *v } for _, value := range shape { - var col *types.AwsEc2SecurityGroupIpRange - if err := awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpRange(&col, value); err != nil { + var col types.AwsEc2SecurityGroupIpRange + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11412,7 +11448,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpv6Range(v **types.AwsE if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CidrIpv6 = &jtv + sv.CidrIpv6 = ptr.String(jtv) } default: @@ -11424,7 +11460,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpv6Range(v **types.AwsE return nil } -func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpv6RangeList(v *[]*types.AwsEc2SecurityGroupIpv6Range, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpv6RangeList(v *[]types.AwsEc2SecurityGroupIpv6Range, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11437,18 +11473,20 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpv6RangeList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsEc2SecurityGroupIpv6Range + var cv []types.AwsEc2SecurityGroupIpv6Range if *v == nil { - cv = []*types.AwsEc2SecurityGroupIpv6Range{} + cv = []types.AwsEc2SecurityGroupIpv6Range{} } else { cv = *v } for _, value := range shape { - var col *types.AwsEc2SecurityGroupIpv6Range - if err := awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpv6Range(&col, value); err != nil { + var col types.AwsEc2SecurityGroupIpv6Range + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsEc2SecurityGroupIpv6Range(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11484,7 +11522,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupPrefixListId(v **types.A if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PrefixListId = &jtv + sv.PrefixListId = ptr.String(jtv) } default: @@ -11496,7 +11534,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupPrefixListId(v **types.A return nil } -func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupPrefixListIdList(v *[]*types.AwsEc2SecurityGroupPrefixListId, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupPrefixListIdList(v *[]types.AwsEc2SecurityGroupPrefixListId, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11509,18 +11547,20 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupPrefixListIdList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsEc2SecurityGroupPrefixListId + var cv []types.AwsEc2SecurityGroupPrefixListId if *v == nil { - cv = []*types.AwsEc2SecurityGroupPrefixListId{} + cv = []types.AwsEc2SecurityGroupPrefixListId{} } else { cv = *v } for _, value := range shape { - var col *types.AwsEc2SecurityGroupPrefixListId - if err := awsRestjson1_deserializeDocumentAwsEc2SecurityGroupPrefixListId(&col, value); err != nil { + var col types.AwsEc2SecurityGroupPrefixListId + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsEc2SecurityGroupPrefixListId(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11556,7 +11596,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupUserIdGroupPair(v **type if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } case "GroupName": @@ -11565,7 +11605,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupUserIdGroupPair(v **type if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } case "PeeringStatus": @@ -11574,7 +11614,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupUserIdGroupPair(v **type if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PeeringStatus = &jtv + sv.PeeringStatus = ptr.String(jtv) } case "UserId": @@ -11583,7 +11623,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupUserIdGroupPair(v **type if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } case "VpcId": @@ -11592,7 +11632,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupUserIdGroupPair(v **type if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } case "VpcPeeringConnectionId": @@ -11601,7 +11641,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupUserIdGroupPair(v **type if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcPeeringConnectionId = &jtv + sv.VpcPeeringConnectionId = ptr.String(jtv) } default: @@ -11613,7 +11653,7 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupUserIdGroupPair(v **type return nil } -func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupUserIdGroupPairList(v *[]*types.AwsEc2SecurityGroupUserIdGroupPair, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupUserIdGroupPairList(v *[]types.AwsEc2SecurityGroupUserIdGroupPair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11626,18 +11666,20 @@ func awsRestjson1_deserializeDocumentAwsEc2SecurityGroupUserIdGroupPairList(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsEc2SecurityGroupUserIdGroupPair + var cv []types.AwsEc2SecurityGroupUserIdGroupPair if *v == nil { - cv = []*types.AwsEc2SecurityGroupUserIdGroupPair{} + cv = []types.AwsEc2SecurityGroupUserIdGroupPair{} } else { cv = *v } for _, value := range shape { - var col *types.AwsEc2SecurityGroupUserIdGroupPair - if err := awsRestjson1_deserializeDocumentAwsEc2SecurityGroupUserIdGroupPair(&col, value); err != nil { + var col types.AwsEc2SecurityGroupUserIdGroupPair + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsEc2SecurityGroupUserIdGroupPair(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11673,7 +11715,7 @@ func awsRestjson1_deserializeDocumentAwsEc2VolumeAttachment(v **types.AwsEc2Volu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AttachTime = &jtv + sv.AttachTime = ptr.String(jtv) } case "DeleteOnTermination": @@ -11682,7 +11724,7 @@ func awsRestjson1_deserializeDocumentAwsEc2VolumeAttachment(v **types.AwsEc2Volu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DeleteOnTermination = &jtv + sv.DeleteOnTermination = jtv } case "InstanceId": @@ -11691,7 +11733,7 @@ func awsRestjson1_deserializeDocumentAwsEc2VolumeAttachment(v **types.AwsEc2Volu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "Status": @@ -11700,7 +11742,7 @@ func awsRestjson1_deserializeDocumentAwsEc2VolumeAttachment(v **types.AwsEc2Volu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -11712,7 +11754,7 @@ func awsRestjson1_deserializeDocumentAwsEc2VolumeAttachment(v **types.AwsEc2Volu return nil } -func awsRestjson1_deserializeDocumentAwsEc2VolumeAttachmentList(v *[]*types.AwsEc2VolumeAttachment, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsEc2VolumeAttachmentList(v *[]types.AwsEc2VolumeAttachment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11725,18 +11767,20 @@ func awsRestjson1_deserializeDocumentAwsEc2VolumeAttachmentList(v *[]*types.AwsE return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsEc2VolumeAttachment + var cv []types.AwsEc2VolumeAttachment if *v == nil { - cv = []*types.AwsEc2VolumeAttachment{} + cv = []types.AwsEc2VolumeAttachment{} } else { cv = *v } for _, value := range shape { - var col *types.AwsEc2VolumeAttachment - if err := awsRestjson1_deserializeDocumentAwsEc2VolumeAttachment(&col, value); err != nil { + var col types.AwsEc2VolumeAttachment + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsEc2VolumeAttachment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11777,7 +11821,7 @@ func awsRestjson1_deserializeDocumentAwsEc2VolumeDetails(v **types.AwsEc2VolumeD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreateTime = &jtv + sv.CreateTime = ptr.String(jtv) } case "Encrypted": @@ -11786,7 +11830,7 @@ func awsRestjson1_deserializeDocumentAwsEc2VolumeDetails(v **types.AwsEc2VolumeD if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = jtv } case "KmsKeyId": @@ -11795,7 +11839,7 @@ func awsRestjson1_deserializeDocumentAwsEc2VolumeDetails(v **types.AwsEc2VolumeD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "Size": @@ -11808,7 +11852,7 @@ func awsRestjson1_deserializeDocumentAwsEc2VolumeDetails(v **types.AwsEc2VolumeD if err != nil { return err } - sv.Size = ptr.Int32(int32(i64)) + sv.Size = int32(i64) } case "SnapshotId": @@ -11817,7 +11861,7 @@ func awsRestjson1_deserializeDocumentAwsEc2VolumeDetails(v **types.AwsEc2VolumeD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SnapshotId = &jtv + sv.SnapshotId = ptr.String(jtv) } case "Status": @@ -11826,7 +11870,7 @@ func awsRestjson1_deserializeDocumentAwsEc2VolumeDetails(v **types.AwsEc2VolumeD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -11871,7 +11915,7 @@ func awsRestjson1_deserializeDocumentAwsEc2VpcDetails(v **types.AwsEc2VpcDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DhcpOptionsId = &jtv + sv.DhcpOptionsId = ptr.String(jtv) } case "Ipv6CidrBlockAssociationSet": @@ -11885,7 +11929,7 @@ func awsRestjson1_deserializeDocumentAwsEc2VpcDetails(v **types.AwsEc2VpcDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } default: @@ -11925,7 +11969,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDetails(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AccessPolicies = &jtv + sv.AccessPolicies = ptr.String(jtv) } case "DomainEndpointOptions": @@ -11939,7 +11983,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDetails(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DomainId = &jtv + sv.DomainId = ptr.String(jtv) } case "DomainName": @@ -11948,7 +11992,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDetails(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "ElasticsearchVersion": @@ -11957,7 +12001,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDetails(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ElasticsearchVersion = &jtv + sv.ElasticsearchVersion = ptr.String(jtv) } case "EncryptionAtRestOptions": @@ -11971,7 +12015,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDetails(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Endpoint = &jtv + sv.Endpoint = ptr.String(jtv) } case "Endpoints": @@ -12026,7 +12070,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDomainEndpointOptions if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnforceHTTPS = &jtv + sv.EnforceHTTPS = jtv } case "TLSSecurityPolicy": @@ -12035,7 +12079,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainDomainEndpointOptions if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.TLSSecurityPolicy = &jtv + sv.TLSSecurityPolicy = ptr.String(jtv) } default: @@ -12075,7 +12119,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainEncryptionAtRestOptio if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "KmsKeyId": @@ -12084,7 +12128,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainEncryptionAtRestOptio if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } default: @@ -12124,7 +12168,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainNodeToNodeEncryptionO if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } default: @@ -12179,7 +12223,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainVPCOptions(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VPCId = &jtv + sv.VPCId = ptr.String(jtv) } default: @@ -12191,7 +12235,7 @@ func awsRestjson1_deserializeDocumentAwsElasticsearchDomainVPCOptions(v **types. return nil } -func awsRestjson1_deserializeDocumentAwsElbAppCookieStickinessPolicies(v *[]*types.AwsElbAppCookieStickinessPolicy, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsElbAppCookieStickinessPolicies(v *[]types.AwsElbAppCookieStickinessPolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12204,18 +12248,20 @@ func awsRestjson1_deserializeDocumentAwsElbAppCookieStickinessPolicies(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsElbAppCookieStickinessPolicy + var cv []types.AwsElbAppCookieStickinessPolicy if *v == nil { - cv = []*types.AwsElbAppCookieStickinessPolicy{} + cv = []types.AwsElbAppCookieStickinessPolicy{} } else { cv = *v } for _, value := range shape { - var col *types.AwsElbAppCookieStickinessPolicy - if err := awsRestjson1_deserializeDocumentAwsElbAppCookieStickinessPolicy(&col, value); err != nil { + var col types.AwsElbAppCookieStickinessPolicy + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsElbAppCookieStickinessPolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12251,7 +12297,7 @@ func awsRestjson1_deserializeDocumentAwsElbAppCookieStickinessPolicy(v **types.A if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CookieName = &jtv + sv.CookieName = ptr.String(jtv) } case "PolicyName": @@ -12260,7 +12306,7 @@ func awsRestjson1_deserializeDocumentAwsElbAppCookieStickinessPolicy(v **types.A if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } default: @@ -12272,7 +12318,7 @@ func awsRestjson1_deserializeDocumentAwsElbAppCookieStickinessPolicy(v **types.A return nil } -func awsRestjson1_deserializeDocumentAwsElbLbCookieStickinessPolicies(v *[]*types.AwsElbLbCookieStickinessPolicy, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsElbLbCookieStickinessPolicies(v *[]types.AwsElbLbCookieStickinessPolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12285,18 +12331,20 @@ func awsRestjson1_deserializeDocumentAwsElbLbCookieStickinessPolicies(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsElbLbCookieStickinessPolicy + var cv []types.AwsElbLbCookieStickinessPolicy if *v == nil { - cv = []*types.AwsElbLbCookieStickinessPolicy{} + cv = []types.AwsElbLbCookieStickinessPolicy{} } else { cv = *v } for _, value := range shape { - var col *types.AwsElbLbCookieStickinessPolicy - if err := awsRestjson1_deserializeDocumentAwsElbLbCookieStickinessPolicy(&col, value); err != nil { + var col types.AwsElbLbCookieStickinessPolicy + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsElbLbCookieStickinessPolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12336,7 +12384,7 @@ func awsRestjson1_deserializeDocumentAwsElbLbCookieStickinessPolicy(v **types.Aw if err != nil { return err } - sv.CookieExpirationPeriod = &i64 + sv.CookieExpirationPeriod = i64 } case "PolicyName": @@ -12345,7 +12393,7 @@ func awsRestjson1_deserializeDocumentAwsElbLbCookieStickinessPolicy(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } default: @@ -12389,7 +12437,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerAccessLog(v **types.AwsEl if err != nil { return err } - sv.EmitInterval = ptr.Int32(int32(i64)) + sv.EmitInterval = int32(i64) } case "Enabled": @@ -12398,7 +12446,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerAccessLog(v **types.AwsEl if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "S3BucketName": @@ -12407,7 +12455,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerAccessLog(v **types.AwsEl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "S3BucketPrefix": @@ -12416,7 +12464,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerAccessLog(v **types.AwsEl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.S3BucketPrefix = &jtv + sv.S3BucketPrefix = ptr.String(jtv) } default: @@ -12511,7 +12559,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerBackendServerDescription( if err != nil { return err } - sv.InstancePort = ptr.Int32(int32(i64)) + sv.InstancePort = int32(i64) } case "PolicyNames": @@ -12528,7 +12576,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerBackendServerDescription( return nil } -func awsRestjson1_deserializeDocumentAwsElbLoadBalancerBackendServerDescriptions(v *[]*types.AwsElbLoadBalancerBackendServerDescription, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsElbLoadBalancerBackendServerDescriptions(v *[]types.AwsElbLoadBalancerBackendServerDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12541,18 +12589,20 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerBackendServerDescriptions return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsElbLoadBalancerBackendServerDescription + var cv []types.AwsElbLoadBalancerBackendServerDescription if *v == nil { - cv = []*types.AwsElbLoadBalancerBackendServerDescription{} + cv = []types.AwsElbLoadBalancerBackendServerDescription{} } else { cv = *v } for _, value := range shape { - var col *types.AwsElbLoadBalancerBackendServerDescription - if err := awsRestjson1_deserializeDocumentAwsElbLoadBalancerBackendServerDescription(&col, value); err != nil { + var col types.AwsElbLoadBalancerBackendServerDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsElbLoadBalancerBackendServerDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12588,7 +12638,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerConnectionDraining(v **ty if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "Timeout": @@ -12601,7 +12651,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerConnectionDraining(v **ty if err != nil { return err } - sv.Timeout = ptr.Int32(int32(i64)) + sv.Timeout = int32(i64) } default: @@ -12645,7 +12695,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerConnectionSettings(v **ty if err != nil { return err } - sv.IdleTimeout = ptr.Int32(int32(i64)) + sv.IdleTimeout = int32(i64) } default: @@ -12685,7 +12735,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerCrossZoneLoadBalancing(v if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } default: @@ -12735,7 +12785,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerDetails(v **types.AwsElbL if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CanonicalHostedZoneName = &jtv + sv.CanonicalHostedZoneName = ptr.String(jtv) } case "CanonicalHostedZoneNameID": @@ -12744,7 +12794,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerDetails(v **types.AwsElbL if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CanonicalHostedZoneNameID = &jtv + sv.CanonicalHostedZoneNameID = ptr.String(jtv) } case "CreatedTime": @@ -12753,7 +12803,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerDetails(v **types.AwsElbL if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "DnsName": @@ -12762,7 +12812,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerDetails(v **types.AwsElbL if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DnsName = &jtv + sv.DnsName = ptr.String(jtv) } case "HealthCheck": @@ -12791,7 +12841,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerDetails(v **types.AwsElbL if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LoadBalancerName = &jtv + sv.LoadBalancerName = ptr.String(jtv) } case "Policies": @@ -12805,7 +12855,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerDetails(v **types.AwsElbL if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Scheme = &jtv + sv.Scheme = ptr.String(jtv) } case "SecurityGroups": @@ -12829,7 +12879,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerDetails(v **types.AwsElbL if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -12873,7 +12923,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerHealthCheck(v **types.Aws if err != nil { return err } - sv.HealthyThreshold = ptr.Int32(int32(i64)) + sv.HealthyThreshold = int32(i64) } case "Interval": @@ -12886,7 +12936,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerHealthCheck(v **types.Aws if err != nil { return err } - sv.Interval = ptr.Int32(int32(i64)) + sv.Interval = int32(i64) } case "Target": @@ -12895,7 +12945,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerHealthCheck(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } case "Timeout": @@ -12908,7 +12958,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerHealthCheck(v **types.Aws if err != nil { return err } - sv.Timeout = ptr.Int32(int32(i64)) + sv.Timeout = int32(i64) } case "UnhealthyThreshold": @@ -12921,7 +12971,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerHealthCheck(v **types.Aws if err != nil { return err } - sv.UnhealthyThreshold = ptr.Int32(int32(i64)) + sv.UnhealthyThreshold = int32(i64) } default: @@ -12961,7 +13011,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerInstance(v **types.AwsElb if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } default: @@ -12973,7 +13023,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerInstance(v **types.AwsElb return nil } -func awsRestjson1_deserializeDocumentAwsElbLoadBalancerInstances(v *[]*types.AwsElbLoadBalancerInstance, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsElbLoadBalancerInstances(v *[]types.AwsElbLoadBalancerInstance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12986,18 +13036,20 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerInstances(v *[]*types.Aws return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsElbLoadBalancerInstance + var cv []types.AwsElbLoadBalancerInstance if *v == nil { - cv = []*types.AwsElbLoadBalancerInstance{} + cv = []types.AwsElbLoadBalancerInstance{} } else { cv = *v } for _, value := range shape { - var col *types.AwsElbLoadBalancerInstance - if err := awsRestjson1_deserializeDocumentAwsElbLoadBalancerInstance(&col, value); err != nil { + var col types.AwsElbLoadBalancerInstance + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsElbLoadBalancerInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13037,7 +13089,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerListener(v **types.AwsElb if err != nil { return err } - sv.InstancePort = ptr.Int32(int32(i64)) + sv.InstancePort = int32(i64) } case "InstanceProtocol": @@ -13046,7 +13098,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerListener(v **types.AwsElb if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceProtocol = &jtv + sv.InstanceProtocol = ptr.String(jtv) } case "LoadBalancerPort": @@ -13059,7 +13111,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerListener(v **types.AwsElb if err != nil { return err } - sv.LoadBalancerPort = ptr.Int32(int32(i64)) + sv.LoadBalancerPort = int32(i64) } case "Protocol": @@ -13068,7 +13120,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerListener(v **types.AwsElb if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Protocol = &jtv + sv.Protocol = ptr.String(jtv) } case "SslCertificateId": @@ -13077,7 +13129,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerListener(v **types.AwsElb if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SslCertificateId = &jtv + sv.SslCertificateId = ptr.String(jtv) } default: @@ -13130,7 +13182,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerListenerDescription(v **t return nil } -func awsRestjson1_deserializeDocumentAwsElbLoadBalancerListenerDescriptions(v *[]*types.AwsElbLoadBalancerListenerDescription, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsElbLoadBalancerListenerDescriptions(v *[]types.AwsElbLoadBalancerListenerDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13143,18 +13195,20 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerListenerDescriptions(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsElbLoadBalancerListenerDescription + var cv []types.AwsElbLoadBalancerListenerDescription if *v == nil { - cv = []*types.AwsElbLoadBalancerListenerDescription{} + cv = []types.AwsElbLoadBalancerListenerDescription{} } else { cv = *v } for _, value := range shape { - var col *types.AwsElbLoadBalancerListenerDescription - if err := awsRestjson1_deserializeDocumentAwsElbLoadBalancerListenerDescription(&col, value); err != nil { + var col types.AwsElbLoadBalancerListenerDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsElbLoadBalancerListenerDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13236,7 +13290,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerSourceSecurityGroup(v **t if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } case "OwnerAlias": @@ -13245,7 +13299,7 @@ func awsRestjson1_deserializeDocumentAwsElbLoadBalancerSourceSecurityGroup(v **t if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.OwnerAlias = &jtv + sv.OwnerAlias = ptr.String(jtv) } default: @@ -13290,7 +13344,7 @@ func awsRestjson1_deserializeDocumentAwsElbv2LoadBalancerDetails(v **types.AwsEl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CanonicalHostedZoneId = &jtv + sv.CanonicalHostedZoneId = ptr.String(jtv) } case "CreatedTime": @@ -13299,7 +13353,7 @@ func awsRestjson1_deserializeDocumentAwsElbv2LoadBalancerDetails(v **types.AwsEl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreatedTime = &jtv + sv.CreatedTime = ptr.String(jtv) } case "DNSName": @@ -13308,7 +13362,7 @@ func awsRestjson1_deserializeDocumentAwsElbv2LoadBalancerDetails(v **types.AwsEl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DNSName = &jtv + sv.DNSName = ptr.String(jtv) } case "IpAddressType": @@ -13317,7 +13371,7 @@ func awsRestjson1_deserializeDocumentAwsElbv2LoadBalancerDetails(v **types.AwsEl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.IpAddressType = &jtv + sv.IpAddressType = ptr.String(jtv) } case "Scheme": @@ -13326,7 +13380,7 @@ func awsRestjson1_deserializeDocumentAwsElbv2LoadBalancerDetails(v **types.AwsEl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Scheme = &jtv + sv.Scheme = ptr.String(jtv) } case "SecurityGroups": @@ -13345,7 +13399,7 @@ func awsRestjson1_deserializeDocumentAwsElbv2LoadBalancerDetails(v **types.AwsEl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "VpcId": @@ -13354,7 +13408,7 @@ func awsRestjson1_deserializeDocumentAwsElbv2LoadBalancerDetails(v **types.AwsEl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -13394,7 +13448,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeyDetails(v **types.AwsIamAcce if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AccessKeyId = &jtv + sv.AccessKeyId = ptr.String(jtv) } case "AccountId": @@ -13403,7 +13457,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeyDetails(v **types.AwsIamAcce if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "CreatedAt": @@ -13412,7 +13466,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeyDetails(v **types.AwsIamAcce if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "PrincipalId": @@ -13421,7 +13475,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeyDetails(v **types.AwsIamAcce if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } case "PrincipalName": @@ -13430,7 +13484,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeyDetails(v **types.AwsIamAcce if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PrincipalName = &jtv + sv.PrincipalName = ptr.String(jtv) } case "PrincipalType": @@ -13439,7 +13493,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeyDetails(v **types.AwsIamAcce if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PrincipalType = &jtv + sv.PrincipalType = ptr.String(jtv) } case "SessionContext": @@ -13462,7 +13516,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeyDetails(v **types.AwsIamAcce if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -13543,7 +13597,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeySessionContextAttributes(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreationDate = &jtv + sv.CreationDate = ptr.String(jtv) } case "MfaAuthenticated": @@ -13552,7 +13606,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeySessionContextAttributes(v * if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.MfaAuthenticated = &jtv + sv.MfaAuthenticated = jtv } default: @@ -13592,7 +13646,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeySessionContextSessionIssuer( if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "Arn": @@ -13601,7 +13655,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeySessionContextSessionIssuer( if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "PrincipalId": @@ -13610,7 +13664,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeySessionContextSessionIssuer( if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } case "Type": @@ -13619,7 +13673,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeySessionContextSessionIssuer( if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "UserName": @@ -13628,7 +13682,7 @@ func awsRestjson1_deserializeDocumentAwsIamAccessKeySessionContextSessionIssuer( if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -13668,7 +13722,7 @@ func awsRestjson1_deserializeDocumentAwsIamAttachedManagedPolicy(v **types.AwsIa if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PolicyArn = &jtv + sv.PolicyArn = ptr.String(jtv) } case "PolicyName": @@ -13677,7 +13731,7 @@ func awsRestjson1_deserializeDocumentAwsIamAttachedManagedPolicy(v **types.AwsIa if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } default: @@ -13689,7 +13743,7 @@ func awsRestjson1_deserializeDocumentAwsIamAttachedManagedPolicy(v **types.AwsIa return nil } -func awsRestjson1_deserializeDocumentAwsIamAttachedManagedPolicyList(v *[]*types.AwsIamAttachedManagedPolicy, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsIamAttachedManagedPolicyList(v *[]types.AwsIamAttachedManagedPolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13702,18 +13756,20 @@ func awsRestjson1_deserializeDocumentAwsIamAttachedManagedPolicyList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsIamAttachedManagedPolicy + var cv []types.AwsIamAttachedManagedPolicy if *v == nil { - cv = []*types.AwsIamAttachedManagedPolicy{} + cv = []types.AwsIamAttachedManagedPolicy{} } else { cv = *v } for _, value := range shape { - var col *types.AwsIamAttachedManagedPolicy - if err := awsRestjson1_deserializeDocumentAwsIamAttachedManagedPolicy(&col, value); err != nil { + var col types.AwsIamAttachedManagedPolicy + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsIamAttachedManagedPolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13754,7 +13810,7 @@ func awsRestjson1_deserializeDocumentAwsIamGroupDetails(v **types.AwsIamGroupDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreateDate = &jtv + sv.CreateDate = ptr.String(jtv) } case "GroupId": @@ -13763,7 +13819,7 @@ func awsRestjson1_deserializeDocumentAwsIamGroupDetails(v **types.AwsIamGroupDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } case "GroupName": @@ -13772,7 +13828,7 @@ func awsRestjson1_deserializeDocumentAwsIamGroupDetails(v **types.AwsIamGroupDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } case "GroupPolicyList": @@ -13786,7 +13842,7 @@ func awsRestjson1_deserializeDocumentAwsIamGroupDetails(v **types.AwsIamGroupDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } default: @@ -13826,7 +13882,7 @@ func awsRestjson1_deserializeDocumentAwsIamGroupPolicy(v **types.AwsIamGroupPoli if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } default: @@ -13838,7 +13894,7 @@ func awsRestjson1_deserializeDocumentAwsIamGroupPolicy(v **types.AwsIamGroupPoli return nil } -func awsRestjson1_deserializeDocumentAwsIamGroupPolicyList(v *[]*types.AwsIamGroupPolicy, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsIamGroupPolicyList(v *[]types.AwsIamGroupPolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13851,18 +13907,20 @@ func awsRestjson1_deserializeDocumentAwsIamGroupPolicyList(v *[]*types.AwsIamGro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsIamGroupPolicy + var cv []types.AwsIamGroupPolicy if *v == nil { - cv = []*types.AwsIamGroupPolicy{} + cv = []types.AwsIamGroupPolicy{} } else { cv = *v } for _, value := range shape { - var col *types.AwsIamGroupPolicy - if err := awsRestjson1_deserializeDocumentAwsIamGroupPolicy(&col, value); err != nil { + var col types.AwsIamGroupPolicy + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsIamGroupPolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13898,7 +13956,7 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfile(v **types.AwsIamInsta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreateDate": @@ -13907,7 +13965,7 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfile(v **types.AwsIamInsta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreateDate = &jtv + sv.CreateDate = ptr.String(jtv) } case "InstanceProfileId": @@ -13916,7 +13974,7 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfile(v **types.AwsIamInsta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceProfileId = &jtv + sv.InstanceProfileId = ptr.String(jtv) } case "InstanceProfileName": @@ -13925,7 +13983,7 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfile(v **types.AwsIamInsta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceProfileName = &jtv + sv.InstanceProfileName = ptr.String(jtv) } case "Path": @@ -13934,7 +13992,7 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfile(v **types.AwsIamInsta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "Roles": @@ -13951,7 +14009,7 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfile(v **types.AwsIamInsta return nil } -func awsRestjson1_deserializeDocumentAwsIamInstanceProfileList(v *[]*types.AwsIamInstanceProfile, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsIamInstanceProfileList(v *[]types.AwsIamInstanceProfile, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13964,18 +14022,20 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfileList(v *[]*types.AwsIa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsIamInstanceProfile + var cv []types.AwsIamInstanceProfile if *v == nil { - cv = []*types.AwsIamInstanceProfile{} + cv = []types.AwsIamInstanceProfile{} } else { cv = *v } for _, value := range shape { - var col *types.AwsIamInstanceProfile - if err := awsRestjson1_deserializeDocumentAwsIamInstanceProfile(&col, value); err != nil { + var col types.AwsIamInstanceProfile + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsIamInstanceProfile(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14011,7 +14071,7 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfileRole(v **types.AwsIamI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "AssumeRolePolicyDocument": @@ -14020,7 +14080,7 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfileRole(v **types.AwsIamI if !ok { return fmt.Errorf("expected AwsIamRoleAssumeRolePolicyDocument to be of type string, got %T instead", value) } - sv.AssumeRolePolicyDocument = &jtv + sv.AssumeRolePolicyDocument = ptr.String(jtv) } case "CreateDate": @@ -14029,7 +14089,7 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfileRole(v **types.AwsIamI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreateDate = &jtv + sv.CreateDate = ptr.String(jtv) } case "Path": @@ -14038,7 +14098,7 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfileRole(v **types.AwsIamI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "RoleId": @@ -14047,7 +14107,7 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfileRole(v **types.AwsIamI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RoleId = &jtv + sv.RoleId = ptr.String(jtv) } case "RoleName": @@ -14056,7 +14116,7 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfileRole(v **types.AwsIamI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RoleName = &jtv + sv.RoleName = ptr.String(jtv) } default: @@ -14068,7 +14128,7 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfileRole(v **types.AwsIamI return nil } -func awsRestjson1_deserializeDocumentAwsIamInstanceProfileRoles(v *[]*types.AwsIamInstanceProfileRole, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsIamInstanceProfileRoles(v *[]types.AwsIamInstanceProfileRole, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14081,18 +14141,20 @@ func awsRestjson1_deserializeDocumentAwsIamInstanceProfileRoles(v *[]*types.AwsI return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsIamInstanceProfileRole + var cv []types.AwsIamInstanceProfileRole if *v == nil { - cv = []*types.AwsIamInstanceProfileRole{} + cv = []types.AwsIamInstanceProfileRole{} } else { cv = *v } for _, value := range shape { - var col *types.AwsIamInstanceProfileRole - if err := awsRestjson1_deserializeDocumentAwsIamInstanceProfileRole(&col, value); err != nil { + var col types.AwsIamInstanceProfileRole + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsIamInstanceProfileRole(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14128,7 +14190,7 @@ func awsRestjson1_deserializeDocumentAwsIamPermissionsBoundary(v **types.AwsIamP if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PermissionsBoundaryArn = &jtv + sv.PermissionsBoundaryArn = ptr.String(jtv) } case "PermissionsBoundaryType": @@ -14137,7 +14199,7 @@ func awsRestjson1_deserializeDocumentAwsIamPermissionsBoundary(v **types.AwsIamP if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PermissionsBoundaryType = &jtv + sv.PermissionsBoundaryType = ptr.String(jtv) } default: @@ -14181,7 +14243,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyDetails(v **types.AwsIamPolicyD if err != nil { return err } - sv.AttachmentCount = ptr.Int32(int32(i64)) + sv.AttachmentCount = int32(i64) } case "CreateDate": @@ -14190,7 +14252,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyDetails(v **types.AwsIamPolicyD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreateDate = &jtv + sv.CreateDate = ptr.String(jtv) } case "DefaultVersionId": @@ -14199,7 +14261,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyDetails(v **types.AwsIamPolicyD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DefaultVersionId = &jtv + sv.DefaultVersionId = ptr.String(jtv) } case "Description": @@ -14208,7 +14270,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyDetails(v **types.AwsIamPolicyD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "IsAttachable": @@ -14217,7 +14279,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyDetails(v **types.AwsIamPolicyD if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsAttachable = &jtv + sv.IsAttachable = jtv } case "Path": @@ -14226,7 +14288,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyDetails(v **types.AwsIamPolicyD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "PermissionsBoundaryUsageCount": @@ -14239,7 +14301,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyDetails(v **types.AwsIamPolicyD if err != nil { return err } - sv.PermissionsBoundaryUsageCount = ptr.Int32(int32(i64)) + sv.PermissionsBoundaryUsageCount = int32(i64) } case "PolicyId": @@ -14248,7 +14310,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyDetails(v **types.AwsIamPolicyD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PolicyId = &jtv + sv.PolicyId = ptr.String(jtv) } case "PolicyName": @@ -14257,7 +14319,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyDetails(v **types.AwsIamPolicyD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } case "PolicyVersionList": @@ -14271,7 +14333,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyDetails(v **types.AwsIamPolicyD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.UpdateDate = &jtv + sv.UpdateDate = ptr.String(jtv) } default: @@ -14311,7 +14373,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyVersion(v **types.AwsIamPolicyV if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreateDate = &jtv + sv.CreateDate = ptr.String(jtv) } case "IsDefaultVersion": @@ -14320,7 +14382,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyVersion(v **types.AwsIamPolicyV if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsDefaultVersion = &jtv + sv.IsDefaultVersion = jtv } case "VersionId": @@ -14329,7 +14391,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyVersion(v **types.AwsIamPolicyV if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -14341,7 +14403,7 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyVersion(v **types.AwsIamPolicyV return nil } -func awsRestjson1_deserializeDocumentAwsIamPolicyVersionList(v *[]*types.AwsIamPolicyVersion, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsIamPolicyVersionList(v *[]types.AwsIamPolicyVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14354,18 +14416,20 @@ func awsRestjson1_deserializeDocumentAwsIamPolicyVersionList(v *[]*types.AwsIamP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsIamPolicyVersion + var cv []types.AwsIamPolicyVersion if *v == nil { - cv = []*types.AwsIamPolicyVersion{} + cv = []types.AwsIamPolicyVersion{} } else { cv = *v } for _, value := range shape { - var col *types.AwsIamPolicyVersion - if err := awsRestjson1_deserializeDocumentAwsIamPolicyVersion(&col, value); err != nil { + var col types.AwsIamPolicyVersion + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsIamPolicyVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14401,7 +14465,7 @@ func awsRestjson1_deserializeDocumentAwsIamRoleDetails(v **types.AwsIamRoleDetai if !ok { return fmt.Errorf("expected AwsIamRoleAssumeRolePolicyDocument to be of type string, got %T instead", value) } - sv.AssumeRolePolicyDocument = &jtv + sv.AssumeRolePolicyDocument = ptr.String(jtv) } case "AttachedManagedPolicies": @@ -14415,7 +14479,7 @@ func awsRestjson1_deserializeDocumentAwsIamRoleDetails(v **types.AwsIamRoleDetai if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreateDate = &jtv + sv.CreateDate = ptr.String(jtv) } case "InstanceProfileList": @@ -14433,7 +14497,7 @@ func awsRestjson1_deserializeDocumentAwsIamRoleDetails(v **types.AwsIamRoleDetai if err != nil { return err } - sv.MaxSessionDuration = ptr.Int32(int32(i64)) + sv.MaxSessionDuration = int32(i64) } case "Path": @@ -14442,7 +14506,7 @@ func awsRestjson1_deserializeDocumentAwsIamRoleDetails(v **types.AwsIamRoleDetai if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "PermissionsBoundary": @@ -14456,7 +14520,7 @@ func awsRestjson1_deserializeDocumentAwsIamRoleDetails(v **types.AwsIamRoleDetai if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RoleId = &jtv + sv.RoleId = ptr.String(jtv) } case "RoleName": @@ -14465,7 +14529,7 @@ func awsRestjson1_deserializeDocumentAwsIamRoleDetails(v **types.AwsIamRoleDetai if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RoleName = &jtv + sv.RoleName = ptr.String(jtv) } case "RolePolicyList": @@ -14510,7 +14574,7 @@ func awsRestjson1_deserializeDocumentAwsIamRolePolicy(v **types.AwsIamRolePolicy if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } default: @@ -14522,7 +14586,7 @@ func awsRestjson1_deserializeDocumentAwsIamRolePolicy(v **types.AwsIamRolePolicy return nil } -func awsRestjson1_deserializeDocumentAwsIamRolePolicyList(v *[]*types.AwsIamRolePolicy, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsIamRolePolicyList(v *[]types.AwsIamRolePolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14535,18 +14599,20 @@ func awsRestjson1_deserializeDocumentAwsIamRolePolicyList(v *[]*types.AwsIamRole return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsIamRolePolicy + var cv []types.AwsIamRolePolicy if *v == nil { - cv = []*types.AwsIamRolePolicy{} + cv = []types.AwsIamRolePolicy{} } else { cv = *v } for _, value := range shape { - var col *types.AwsIamRolePolicy - if err := awsRestjson1_deserializeDocumentAwsIamRolePolicy(&col, value); err != nil { + var col types.AwsIamRolePolicy + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsIamRolePolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14587,7 +14653,7 @@ func awsRestjson1_deserializeDocumentAwsIamUserDetails(v **types.AwsIamUserDetai if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreateDate = &jtv + sv.CreateDate = ptr.String(jtv) } case "GroupList": @@ -14601,7 +14667,7 @@ func awsRestjson1_deserializeDocumentAwsIamUserDetails(v **types.AwsIamUserDetai if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "PermissionsBoundary": @@ -14615,7 +14681,7 @@ func awsRestjson1_deserializeDocumentAwsIamUserDetails(v **types.AwsIamUserDetai if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } case "UserName": @@ -14624,7 +14690,7 @@ func awsRestjson1_deserializeDocumentAwsIamUserDetails(v **types.AwsIamUserDetai if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } case "UserPolicyList": @@ -14669,7 +14735,7 @@ func awsRestjson1_deserializeDocumentAwsIamUserPolicy(v **types.AwsIamUserPolicy if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PolicyName = &jtv + sv.PolicyName = ptr.String(jtv) } default: @@ -14681,7 +14747,7 @@ func awsRestjson1_deserializeDocumentAwsIamUserPolicy(v **types.AwsIamUserPolicy return nil } -func awsRestjson1_deserializeDocumentAwsIamUserPolicyList(v *[]*types.AwsIamUserPolicy, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsIamUserPolicyList(v *[]types.AwsIamUserPolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14694,18 +14760,20 @@ func awsRestjson1_deserializeDocumentAwsIamUserPolicyList(v *[]*types.AwsIamUser return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsIamUserPolicy + var cv []types.AwsIamUserPolicy if *v == nil { - cv = []*types.AwsIamUserPolicy{} + cv = []types.AwsIamUserPolicy{} } else { cv = *v } for _, value := range shape { - var col *types.AwsIamUserPolicy - if err := awsRestjson1_deserializeDocumentAwsIamUserPolicy(&col, value); err != nil { + var col types.AwsIamUserPolicy + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsIamUserPolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14741,7 +14809,7 @@ func awsRestjson1_deserializeDocumentAwsKmsKeyDetails(v **types.AwsKmsKeyDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AWSAccountId = &jtv + sv.AWSAccountId = ptr.String(jtv) } case "CreationDate": @@ -14754,7 +14822,7 @@ func awsRestjson1_deserializeDocumentAwsKmsKeyDetails(v **types.AwsKmsKeyDetails if err != nil { return err } - sv.CreationDate = &f64 + sv.CreationDate = f64 } case "Description": @@ -14763,7 +14831,7 @@ func awsRestjson1_deserializeDocumentAwsKmsKeyDetails(v **types.AwsKmsKeyDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "KeyId": @@ -14772,7 +14840,7 @@ func awsRestjson1_deserializeDocumentAwsKmsKeyDetails(v **types.AwsKmsKeyDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "KeyManager": @@ -14781,7 +14849,7 @@ func awsRestjson1_deserializeDocumentAwsKmsKeyDetails(v **types.AwsKmsKeyDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KeyManager = &jtv + sv.KeyManager = ptr.String(jtv) } case "KeyState": @@ -14790,7 +14858,7 @@ func awsRestjson1_deserializeDocumentAwsKmsKeyDetails(v **types.AwsKmsKeyDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KeyState = &jtv + sv.KeyState = ptr.String(jtv) } case "Origin": @@ -14799,7 +14867,7 @@ func awsRestjson1_deserializeDocumentAwsKmsKeyDetails(v **types.AwsKmsKeyDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Origin = &jtv + sv.Origin = ptr.String(jtv) } default: @@ -14839,7 +14907,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionCode(v **types.AwsLambdaFu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.S3Bucket = &jtv + sv.S3Bucket = ptr.String(jtv) } case "S3Key": @@ -14848,7 +14916,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionCode(v **types.AwsLambdaFu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.S3Key = &jtv + sv.S3Key = ptr.String(jtv) } case "S3ObjectVersion": @@ -14857,7 +14925,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionCode(v **types.AwsLambdaFu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.S3ObjectVersion = &jtv + sv.S3ObjectVersion = ptr.String(jtv) } case "ZipFile": @@ -14866,7 +14934,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionCode(v **types.AwsLambdaFu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ZipFile = &jtv + sv.ZipFile = ptr.String(jtv) } default: @@ -14906,7 +14974,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDeadLetterConfig(v **types if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.TargetArn = &jtv + sv.TargetArn = ptr.String(jtv) } default: @@ -14951,7 +15019,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambd if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CodeSha256 = &jtv + sv.CodeSha256 = ptr.String(jtv) } case "DeadLetterConfig": @@ -14970,7 +15038,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambd if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FunctionName = &jtv + sv.FunctionName = ptr.String(jtv) } case "Handler": @@ -14979,7 +15047,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambd if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Handler = &jtv + sv.Handler = ptr.String(jtv) } case "KmsKeyArn": @@ -14988,7 +15056,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambd if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } case "LastModified": @@ -14997,7 +15065,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambd if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LastModified = &jtv + sv.LastModified = ptr.String(jtv) } case "Layers": @@ -15011,7 +15079,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambd if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MasterArn = &jtv + sv.MasterArn = ptr.String(jtv) } case "MemorySize": @@ -15024,7 +15092,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambd if err != nil { return err } - sv.MemorySize = ptr.Int32(int32(i64)) + sv.MemorySize = int32(i64) } case "RevisionId": @@ -15033,7 +15101,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambd if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RevisionId = &jtv + sv.RevisionId = ptr.String(jtv) } case "Role": @@ -15042,7 +15110,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambd if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "Runtime": @@ -15051,7 +15119,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambd if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Runtime = &jtv + sv.Runtime = ptr.String(jtv) } case "Timeout": @@ -15064,7 +15132,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambd if err != nil { return err } - sv.Timeout = ptr.Int32(int32(i64)) + sv.Timeout = int32(i64) } case "TracingConfig": @@ -15078,7 +15146,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambd if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "VpcConfig": @@ -15164,7 +15232,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionEnvironmentError(v **types if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "Message": @@ -15173,7 +15241,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionEnvironmentError(v **types if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -15213,7 +15281,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionLayer(v **types.AwsLambdaF if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CodeSize": @@ -15226,7 +15294,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionLayer(v **types.AwsLambdaF if err != nil { return err } - sv.CodeSize = ptr.Int32(int32(i64)) + sv.CodeSize = int32(i64) } default: @@ -15238,7 +15306,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionLayer(v **types.AwsLambdaF return nil } -func awsRestjson1_deserializeDocumentAwsLambdaFunctionLayerList(v *[]*types.AwsLambdaFunctionLayer, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsLambdaFunctionLayerList(v *[]types.AwsLambdaFunctionLayer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15251,18 +15319,20 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionLayerList(v *[]*types.AwsL return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsLambdaFunctionLayer + var cv []types.AwsLambdaFunctionLayer if *v == nil { - cv = []*types.AwsLambdaFunctionLayer{} + cv = []types.AwsLambdaFunctionLayer{} } else { cv = *v } for _, value := range shape { - var col *types.AwsLambdaFunctionLayer - if err := awsRestjson1_deserializeDocumentAwsLambdaFunctionLayer(&col, value); err != nil { + var col types.AwsLambdaFunctionLayer + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsLambdaFunctionLayer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15298,7 +15368,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionTracingConfig(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Mode = &jtv + sv.Mode = ptr.String(jtv) } default: @@ -15348,7 +15418,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionVpcConfig(v **types.AwsLam if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -15393,7 +15463,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaLayerVersionDetails(v **types.AwsL if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreatedDate = &jtv + sv.CreatedDate = ptr.String(jtv) } case "Version": @@ -15406,7 +15476,7 @@ func awsRestjson1_deserializeDocumentAwsLambdaLayerVersionDetails(v **types.AwsL if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -15446,7 +15516,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterAssociatedRole(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "Status": @@ -15455,7 +15525,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterAssociatedRole(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -15467,7 +15537,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterAssociatedRole(v **types.Aws return nil } -func awsRestjson1_deserializeDocumentAwsRdsDbClusterAssociatedRoles(v *[]*types.AwsRdsDbClusterAssociatedRole, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRdsDbClusterAssociatedRoles(v *[]types.AwsRdsDbClusterAssociatedRole, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15480,18 +15550,20 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterAssociatedRoles(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRdsDbClusterAssociatedRole + var cv []types.AwsRdsDbClusterAssociatedRole if *v == nil { - cv = []*types.AwsRdsDbClusterAssociatedRole{} + cv = []types.AwsRdsDbClusterAssociatedRole{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRdsDbClusterAssociatedRole - if err := awsRestjson1_deserializeDocumentAwsRdsDbClusterAssociatedRole(&col, value); err != nil { + var col types.AwsRdsDbClusterAssociatedRole + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRdsDbClusterAssociatedRole(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15527,7 +15599,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ActivityStreamStatus = &jtv + sv.ActivityStreamStatus = ptr.String(jtv) } case "AllocatedStorage": @@ -15540,7 +15612,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if err != nil { return err } - sv.AllocatedStorage = ptr.Int32(int32(i64)) + sv.AllocatedStorage = int32(i64) } case "AssociatedRoles": @@ -15563,7 +15635,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if err != nil { return err } - sv.BackupRetentionPeriod = ptr.Int32(int32(i64)) + sv.BackupRetentionPeriod = int32(i64) } case "ClusterCreateTime": @@ -15572,7 +15644,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterCreateTime = &jtv + sv.ClusterCreateTime = ptr.String(jtv) } case "CopyTagsToSnapshot": @@ -15581,7 +15653,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CopyTagsToSnapshot = &jtv + sv.CopyTagsToSnapshot = jtv } case "CrossAccountClone": @@ -15590,7 +15662,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CrossAccountClone = &jtv + sv.CrossAccountClone = jtv } case "CustomEndpoints": @@ -15604,7 +15676,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "DbClusterIdentifier": @@ -15613,7 +15685,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbClusterIdentifier = &jtv + sv.DbClusterIdentifier = ptr.String(jtv) } case "DbClusterMembers": @@ -15632,7 +15704,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbClusterParameterGroup = &jtv + sv.DbClusterParameterGroup = ptr.String(jtv) } case "DbClusterResourceId": @@ -15641,7 +15713,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbClusterResourceId = &jtv + sv.DbClusterResourceId = ptr.String(jtv) } case "DbSubnetGroup": @@ -15650,7 +15722,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbSubnetGroup = &jtv + sv.DbSubnetGroup = ptr.String(jtv) } case "DeletionProtection": @@ -15659,7 +15731,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DeletionProtection = &jtv + sv.DeletionProtection = jtv } case "DomainMemberships": @@ -15678,7 +15750,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Endpoint = &jtv + sv.Endpoint = ptr.String(jtv) } case "Engine": @@ -15687,7 +15759,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Engine = &jtv + sv.Engine = ptr.String(jtv) } case "EngineMode": @@ -15696,7 +15768,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EngineMode = &jtv + sv.EngineMode = ptr.String(jtv) } case "EngineVersion": @@ -15705,7 +15777,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "HostedZoneId": @@ -15714,7 +15786,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.HostedZoneId = &jtv + sv.HostedZoneId = ptr.String(jtv) } case "HttpEndpointEnabled": @@ -15723,7 +15795,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.HttpEndpointEnabled = &jtv + sv.HttpEndpointEnabled = jtv } case "IamDatabaseAuthenticationEnabled": @@ -15732,7 +15804,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IamDatabaseAuthenticationEnabled = &jtv + sv.IamDatabaseAuthenticationEnabled = jtv } case "KmsKeyId": @@ -15741,7 +15813,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "MasterUsername": @@ -15750,7 +15822,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MasterUsername = &jtv + sv.MasterUsername = ptr.String(jtv) } case "MultiAz": @@ -15759,7 +15831,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.MultiAz = &jtv + sv.MultiAz = jtv } case "Port": @@ -15772,7 +15844,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case "PreferredBackupWindow": @@ -15781,7 +15853,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PreferredBackupWindow = &jtv + sv.PreferredBackupWindow = ptr.String(jtv) } case "PreferredMaintenanceWindow": @@ -15790,7 +15862,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PreferredMaintenanceWindow = &jtv + sv.PreferredMaintenanceWindow = ptr.String(jtv) } case "ReaderEndpoint": @@ -15799,7 +15871,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ReaderEndpoint = &jtv + sv.ReaderEndpoint = ptr.String(jtv) } case "ReadReplicaIdentifiers": @@ -15813,7 +15885,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "StorageEncrypted": @@ -15822,7 +15894,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterDetails(v **types.AwsRdsDbCl if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.StorageEncrypted = &jtv + sv.StorageEncrypted = jtv } case "VpcSecurityGroups": @@ -15867,7 +15939,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterMember(v **types.AwsRdsDbClu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbClusterParameterGroupStatus = &jtv + sv.DbClusterParameterGroupStatus = ptr.String(jtv) } case "DbInstanceIdentifier": @@ -15876,7 +15948,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterMember(v **types.AwsRdsDbClu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbInstanceIdentifier = &jtv + sv.DbInstanceIdentifier = ptr.String(jtv) } case "IsClusterWriter": @@ -15885,7 +15957,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterMember(v **types.AwsRdsDbClu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsClusterWriter = &jtv + sv.IsClusterWriter = jtv } case "PromotionTier": @@ -15898,7 +15970,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterMember(v **types.AwsRdsDbClu if err != nil { return err } - sv.PromotionTier = ptr.Int32(int32(i64)) + sv.PromotionTier = int32(i64) } default: @@ -15910,7 +15982,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterMember(v **types.AwsRdsDbClu return nil } -func awsRestjson1_deserializeDocumentAwsRdsDbClusterMembers(v *[]*types.AwsRdsDbClusterMember, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRdsDbClusterMembers(v *[]types.AwsRdsDbClusterMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15923,18 +15995,20 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterMembers(v *[]*types.AwsRdsDb return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRdsDbClusterMember + var cv []types.AwsRdsDbClusterMember if *v == nil { - cv = []*types.AwsRdsDbClusterMember{} + cv = []types.AwsRdsDbClusterMember{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRdsDbClusterMember - if err := awsRestjson1_deserializeDocumentAwsRdsDbClusterMember(&col, value); err != nil { + var col types.AwsRdsDbClusterMember + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRdsDbClusterMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15970,7 +16044,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterOptionGroupMembership(v **ty if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbClusterOptionGroupName = &jtv + sv.DbClusterOptionGroupName = ptr.String(jtv) } case "Status": @@ -15979,7 +16053,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterOptionGroupMembership(v **ty if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -15991,7 +16065,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterOptionGroupMembership(v **ty return nil } -func awsRestjson1_deserializeDocumentAwsRdsDbClusterOptionGroupMemberships(v *[]*types.AwsRdsDbClusterOptionGroupMembership, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRdsDbClusterOptionGroupMemberships(v *[]types.AwsRdsDbClusterOptionGroupMembership, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16004,18 +16078,20 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterOptionGroupMemberships(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRdsDbClusterOptionGroupMembership + var cv []types.AwsRdsDbClusterOptionGroupMembership if *v == nil { - cv = []*types.AwsRdsDbClusterOptionGroupMembership{} + cv = []types.AwsRdsDbClusterOptionGroupMembership{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRdsDbClusterOptionGroupMembership - if err := awsRestjson1_deserializeDocumentAwsRdsDbClusterOptionGroupMembership(&col, value); err != nil { + var col types.AwsRdsDbClusterOptionGroupMembership + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRdsDbClusterOptionGroupMembership(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16055,7 +16131,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if err != nil { return err } - sv.AllocatedStorage = ptr.Int32(int32(i64)) + sv.AllocatedStorage = int32(i64) } case "AvailabilityZones": @@ -16069,7 +16145,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterCreateTime = &jtv + sv.ClusterCreateTime = ptr.String(jtv) } case "DbClusterIdentifier": @@ -16078,7 +16154,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbClusterIdentifier = &jtv + sv.DbClusterIdentifier = ptr.String(jtv) } case "DbClusterSnapshotIdentifier": @@ -16087,7 +16163,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbClusterSnapshotIdentifier = &jtv + sv.DbClusterSnapshotIdentifier = ptr.String(jtv) } case "Engine": @@ -16096,7 +16172,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Engine = &jtv + sv.Engine = ptr.String(jtv) } case "EngineVersion": @@ -16105,7 +16181,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "IamDatabaseAuthenticationEnabled": @@ -16114,7 +16190,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IamDatabaseAuthenticationEnabled = &jtv + sv.IamDatabaseAuthenticationEnabled = jtv } case "KmsKeyId": @@ -16123,7 +16199,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LicenseModel": @@ -16132,7 +16208,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LicenseModel = &jtv + sv.LicenseModel = ptr.String(jtv) } case "MasterUsername": @@ -16141,7 +16217,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MasterUsername = &jtv + sv.MasterUsername = ptr.String(jtv) } case "PercentProgress": @@ -16154,7 +16230,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if err != nil { return err } - sv.PercentProgress = ptr.Int32(int32(i64)) + sv.PercentProgress = int32(i64) } case "Port": @@ -16167,7 +16243,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case "SnapshotCreateTime": @@ -16176,7 +16252,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SnapshotCreateTime = &jtv + sv.SnapshotCreateTime = ptr.String(jtv) } case "SnapshotType": @@ -16185,7 +16261,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SnapshotType = &jtv + sv.SnapshotType = ptr.String(jtv) } case "Status": @@ -16194,7 +16270,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "StorageEncrypted": @@ -16203,7 +16279,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.StorageEncrypted = &jtv + sv.StorageEncrypted = jtv } case "VpcId": @@ -16212,7 +16288,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbClusterSnapshotDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -16252,7 +16328,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbDomainMembership(v **types.AwsRdsDb if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Domain = &jtv + sv.Domain = ptr.String(jtv) } case "Fqdn": @@ -16261,7 +16337,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbDomainMembership(v **types.AwsRdsDb if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Fqdn = &jtv + sv.Fqdn = ptr.String(jtv) } case "IamRoleName": @@ -16270,7 +16346,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbDomainMembership(v **types.AwsRdsDb if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.IamRoleName = &jtv + sv.IamRoleName = ptr.String(jtv) } case "Status": @@ -16279,7 +16355,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbDomainMembership(v **types.AwsRdsDb if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -16291,7 +16367,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbDomainMembership(v **types.AwsRdsDb return nil } -func awsRestjson1_deserializeDocumentAwsRdsDbDomainMemberships(v *[]*types.AwsRdsDbDomainMembership, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRdsDbDomainMemberships(v *[]types.AwsRdsDbDomainMembership, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16304,18 +16380,20 @@ func awsRestjson1_deserializeDocumentAwsRdsDbDomainMemberships(v *[]*types.AwsRd return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRdsDbDomainMembership + var cv []types.AwsRdsDbDomainMembership if *v == nil { - cv = []*types.AwsRdsDbDomainMembership{} + cv = []types.AwsRdsDbDomainMembership{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRdsDbDomainMembership - if err := awsRestjson1_deserializeDocumentAwsRdsDbDomainMembership(&col, value); err != nil { + var col types.AwsRdsDbDomainMembership + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRdsDbDomainMembership(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16351,7 +16429,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceAssociatedRole(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FeatureName = &jtv + sv.FeatureName = ptr.String(jtv) } case "RoleArn": @@ -16360,7 +16438,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceAssociatedRole(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "Status": @@ -16369,7 +16447,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceAssociatedRole(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -16381,7 +16459,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceAssociatedRole(v **types.Aw return nil } -func awsRestjson1_deserializeDocumentAwsRdsDbInstanceAssociatedRoles(v *[]*types.AwsRdsDbInstanceAssociatedRole, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRdsDbInstanceAssociatedRoles(v *[]types.AwsRdsDbInstanceAssociatedRole, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16394,18 +16472,20 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceAssociatedRoles(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRdsDbInstanceAssociatedRole + var cv []types.AwsRdsDbInstanceAssociatedRole if *v == nil { - cv = []*types.AwsRdsDbInstanceAssociatedRole{} + cv = []types.AwsRdsDbInstanceAssociatedRole{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRdsDbInstanceAssociatedRole - if err := awsRestjson1_deserializeDocumentAwsRdsDbInstanceAssociatedRole(&col, value); err != nil { + var col types.AwsRdsDbInstanceAssociatedRole + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRdsDbInstanceAssociatedRole(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -16445,7 +16525,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if err != nil { return err } - sv.AllocatedStorage = ptr.Int32(int32(i64)) + sv.AllocatedStorage = int32(i64) } case "AssociatedRoles": @@ -16459,7 +16539,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoMinorVersionUpgrade = &jtv + sv.AutoMinorVersionUpgrade = jtv } case "AvailabilityZone": @@ -16468,7 +16548,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "BackupRetentionPeriod": @@ -16481,7 +16561,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if err != nil { return err } - sv.BackupRetentionPeriod = ptr.Int32(int32(i64)) + sv.BackupRetentionPeriod = int32(i64) } case "CACertificateIdentifier": @@ -16490,7 +16570,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CACertificateIdentifier = &jtv + sv.CACertificateIdentifier = ptr.String(jtv) } case "CharacterSetName": @@ -16499,7 +16579,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CharacterSetName = &jtv + sv.CharacterSetName = ptr.String(jtv) } case "CopyTagsToSnapshot": @@ -16508,7 +16588,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CopyTagsToSnapshot = &jtv + sv.CopyTagsToSnapshot = jtv } case "DBClusterIdentifier": @@ -16517,7 +16597,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DBClusterIdentifier = &jtv + sv.DBClusterIdentifier = ptr.String(jtv) } case "DBInstanceClass": @@ -16526,7 +16606,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DBInstanceClass = &jtv + sv.DBInstanceClass = ptr.String(jtv) } case "DBInstanceIdentifier": @@ -16535,7 +16615,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DBInstanceIdentifier = &jtv + sv.DBInstanceIdentifier = ptr.String(jtv) } case "DbInstancePort": @@ -16548,7 +16628,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if err != nil { return err } - sv.DbInstancePort = ptr.Int32(int32(i64)) + sv.DbInstancePort = int32(i64) } case "DbInstanceStatus": @@ -16557,7 +16637,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbInstanceStatus = &jtv + sv.DbInstanceStatus = ptr.String(jtv) } case "DbiResourceId": @@ -16566,7 +16646,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbiResourceId = &jtv + sv.DbiResourceId = ptr.String(jtv) } case "DBName": @@ -16575,7 +16655,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DBName = &jtv + sv.DBName = ptr.String(jtv) } case "DbParameterGroups": @@ -16599,7 +16679,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.DeletionProtection = &jtv + sv.DeletionProtection = jtv } case "DomainMemberships": @@ -16623,7 +16703,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Engine = &jtv + sv.Engine = ptr.String(jtv) } case "EngineVersion": @@ -16632,7 +16712,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "EnhancedMonitoringResourceArn": @@ -16641,7 +16721,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EnhancedMonitoringResourceArn = &jtv + sv.EnhancedMonitoringResourceArn = ptr.String(jtv) } case "IAMDatabaseAuthenticationEnabled": @@ -16650,7 +16730,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IAMDatabaseAuthenticationEnabled = &jtv + sv.IAMDatabaseAuthenticationEnabled = jtv } case "InstanceCreateTime": @@ -16659,7 +16739,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceCreateTime = &jtv + sv.InstanceCreateTime = ptr.String(jtv) } case "Iops": @@ -16672,7 +16752,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if err != nil { return err } - sv.Iops = ptr.Int32(int32(i64)) + sv.Iops = int32(i64) } case "KmsKeyId": @@ -16681,7 +16761,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LatestRestorableTime": @@ -16690,7 +16770,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LatestRestorableTime = &jtv + sv.LatestRestorableTime = ptr.String(jtv) } case "LicenseModel": @@ -16699,7 +16779,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LicenseModel = &jtv + sv.LicenseModel = ptr.String(jtv) } case "ListenerEndpoint": @@ -16713,7 +16793,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MasterUsername = &jtv + sv.MasterUsername = ptr.String(jtv) } case "MaxAllocatedStorage": @@ -16726,7 +16806,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if err != nil { return err } - sv.MaxAllocatedStorage = ptr.Int32(int32(i64)) + sv.MaxAllocatedStorage = int32(i64) } case "MonitoringInterval": @@ -16739,7 +16819,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if err != nil { return err } - sv.MonitoringInterval = ptr.Int32(int32(i64)) + sv.MonitoringInterval = int32(i64) } case "MonitoringRoleArn": @@ -16748,7 +16828,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MonitoringRoleArn = &jtv + sv.MonitoringRoleArn = ptr.String(jtv) } case "MultiAz": @@ -16757,7 +16837,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.MultiAz = &jtv + sv.MultiAz = jtv } case "OptionGroupMemberships": @@ -16776,7 +16856,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.PerformanceInsightsEnabled = &jtv + sv.PerformanceInsightsEnabled = jtv } case "PerformanceInsightsKmsKeyId": @@ -16785,7 +16865,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PerformanceInsightsKmsKeyId = &jtv + sv.PerformanceInsightsKmsKeyId = ptr.String(jtv) } case "PerformanceInsightsRetentionPeriod": @@ -16798,7 +16878,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if err != nil { return err } - sv.PerformanceInsightsRetentionPeriod = ptr.Int32(int32(i64)) + sv.PerformanceInsightsRetentionPeriod = int32(i64) } case "PreferredBackupWindow": @@ -16807,7 +16887,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PreferredBackupWindow = &jtv + sv.PreferredBackupWindow = ptr.String(jtv) } case "PreferredMaintenanceWindow": @@ -16816,7 +16896,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PreferredMaintenanceWindow = &jtv + sv.PreferredMaintenanceWindow = ptr.String(jtv) } case "ProcessorFeatures": @@ -16834,7 +16914,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if err != nil { return err } - sv.PromotionTier = ptr.Int32(int32(i64)) + sv.PromotionTier = int32(i64) } case "PubliclyAccessible": @@ -16843,7 +16923,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.PubliclyAccessible = &jtv + sv.PubliclyAccessible = jtv } case "ReadReplicaDBClusterIdentifiers": @@ -16862,7 +16942,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ReadReplicaSourceDBInstanceIdentifier = &jtv + sv.ReadReplicaSourceDBInstanceIdentifier = ptr.String(jtv) } case "SecondaryAvailabilityZone": @@ -16871,7 +16951,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SecondaryAvailabilityZone = &jtv + sv.SecondaryAvailabilityZone = ptr.String(jtv) } case "StatusInfos": @@ -16885,7 +16965,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.StorageEncrypted = &jtv + sv.StorageEncrypted = jtv } case "StorageType": @@ -16894,7 +16974,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.StorageType = &jtv + sv.StorageType = ptr.String(jtv) } case "TdeCredentialArn": @@ -16903,7 +16983,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.TdeCredentialArn = &jtv + sv.TdeCredentialArn = ptr.String(jtv) } case "Timezone": @@ -16912,7 +16992,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceDetails(v **types.AwsRdsDbI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Timezone = &jtv + sv.Timezone = ptr.String(jtv) } case "VpcSecurityGroups": @@ -16957,7 +17037,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceEndpoint(v **types.AwsRdsDb if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "HostedZoneId": @@ -16966,7 +17046,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceEndpoint(v **types.AwsRdsDb if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.HostedZoneId = &jtv + sv.HostedZoneId = ptr.String(jtv) } case "Port": @@ -16979,7 +17059,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceEndpoint(v **types.AwsRdsDb if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -17019,7 +17099,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceVpcSecurityGroup(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "VpcSecurityGroupId": @@ -17028,7 +17108,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceVpcSecurityGroup(v **types. if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcSecurityGroupId = &jtv + sv.VpcSecurityGroupId = ptr.String(jtv) } default: @@ -17040,7 +17120,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceVpcSecurityGroup(v **types. return nil } -func awsRestjson1_deserializeDocumentAwsRdsDbInstanceVpcSecurityGroups(v *[]*types.AwsRdsDbInstanceVpcSecurityGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRdsDbInstanceVpcSecurityGroups(v *[]types.AwsRdsDbInstanceVpcSecurityGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17053,18 +17133,20 @@ func awsRestjson1_deserializeDocumentAwsRdsDbInstanceVpcSecurityGroups(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRdsDbInstanceVpcSecurityGroup + var cv []types.AwsRdsDbInstanceVpcSecurityGroup if *v == nil { - cv = []*types.AwsRdsDbInstanceVpcSecurityGroup{} + cv = []types.AwsRdsDbInstanceVpcSecurityGroup{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRdsDbInstanceVpcSecurityGroup - if err := awsRestjson1_deserializeDocumentAwsRdsDbInstanceVpcSecurityGroup(&col, value); err != nil { + var col types.AwsRdsDbInstanceVpcSecurityGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRdsDbInstanceVpcSecurityGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17100,7 +17182,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbOptionGroupMembership(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.OptionGroupName = &jtv + sv.OptionGroupName = ptr.String(jtv) } case "Status": @@ -17109,7 +17191,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbOptionGroupMembership(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -17121,7 +17203,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbOptionGroupMembership(v **types.Aws return nil } -func awsRestjson1_deserializeDocumentAwsRdsDbOptionGroupMemberships(v *[]*types.AwsRdsDbOptionGroupMembership, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRdsDbOptionGroupMemberships(v *[]types.AwsRdsDbOptionGroupMembership, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17134,18 +17216,20 @@ func awsRestjson1_deserializeDocumentAwsRdsDbOptionGroupMemberships(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRdsDbOptionGroupMembership + var cv []types.AwsRdsDbOptionGroupMembership if *v == nil { - cv = []*types.AwsRdsDbOptionGroupMembership{} + cv = []types.AwsRdsDbOptionGroupMembership{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRdsDbOptionGroupMembership - if err := awsRestjson1_deserializeDocumentAwsRdsDbOptionGroupMembership(&col, value); err != nil { + var col types.AwsRdsDbOptionGroupMembership + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRdsDbOptionGroupMembership(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17181,7 +17265,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbParameterGroup(v **types.AwsRdsDbPa if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbParameterGroupName = &jtv + sv.DbParameterGroupName = ptr.String(jtv) } case "ParameterApplyStatus": @@ -17190,7 +17274,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbParameterGroup(v **types.AwsRdsDbPa if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ParameterApplyStatus = &jtv + sv.ParameterApplyStatus = ptr.String(jtv) } default: @@ -17202,7 +17286,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbParameterGroup(v **types.AwsRdsDbPa return nil } -func awsRestjson1_deserializeDocumentAwsRdsDbParameterGroups(v *[]*types.AwsRdsDbParameterGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRdsDbParameterGroups(v *[]types.AwsRdsDbParameterGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17215,18 +17299,20 @@ func awsRestjson1_deserializeDocumentAwsRdsDbParameterGroups(v *[]*types.AwsRdsD return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRdsDbParameterGroup + var cv []types.AwsRdsDbParameterGroup if *v == nil { - cv = []*types.AwsRdsDbParameterGroup{} + cv = []types.AwsRdsDbParameterGroup{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRdsDbParameterGroup - if err := awsRestjson1_deserializeDocumentAwsRdsDbParameterGroup(&col, value); err != nil { + var col types.AwsRdsDbParameterGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRdsDbParameterGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17266,7 +17352,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbPendingModifiedValues(v **types.Aws if err != nil { return err } - sv.AllocatedStorage = ptr.Int32(int32(i64)) + sv.AllocatedStorage = int32(i64) } case "BackupRetentionPeriod": @@ -17279,7 +17365,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbPendingModifiedValues(v **types.Aws if err != nil { return err } - sv.BackupRetentionPeriod = ptr.Int32(int32(i64)) + sv.BackupRetentionPeriod = int32(i64) } case "CaCertificateIdentifier": @@ -17288,7 +17374,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbPendingModifiedValues(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CaCertificateIdentifier = &jtv + sv.CaCertificateIdentifier = ptr.String(jtv) } case "DbInstanceClass": @@ -17297,7 +17383,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbPendingModifiedValues(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbInstanceClass = &jtv + sv.DbInstanceClass = ptr.String(jtv) } case "DbInstanceIdentifier": @@ -17306,7 +17392,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbPendingModifiedValues(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbInstanceIdentifier = &jtv + sv.DbInstanceIdentifier = ptr.String(jtv) } case "DbSubnetGroupName": @@ -17315,7 +17401,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbPendingModifiedValues(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbSubnetGroupName = &jtv + sv.DbSubnetGroupName = ptr.String(jtv) } case "EngineVersion": @@ -17324,7 +17410,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbPendingModifiedValues(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "Iops": @@ -17337,7 +17423,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbPendingModifiedValues(v **types.Aws if err != nil { return err } - sv.Iops = ptr.Int32(int32(i64)) + sv.Iops = int32(i64) } case "LicenseModel": @@ -17346,7 +17432,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbPendingModifiedValues(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LicenseModel = &jtv + sv.LicenseModel = ptr.String(jtv) } case "MasterUserPassword": @@ -17355,7 +17441,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbPendingModifiedValues(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MasterUserPassword = &jtv + sv.MasterUserPassword = ptr.String(jtv) } case "MultiAZ": @@ -17364,7 +17450,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbPendingModifiedValues(v **types.Aws if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.MultiAZ = &jtv + sv.MultiAZ = jtv } case "PendingCloudWatchLogsExports": @@ -17382,7 +17468,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbPendingModifiedValues(v **types.Aws if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case "ProcessorFeatures": @@ -17396,7 +17482,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbPendingModifiedValues(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.StorageType = &jtv + sv.StorageType = ptr.String(jtv) } default: @@ -17436,7 +17522,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbProcessorFeature(v **types.AwsRdsDb if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Value": @@ -17445,7 +17531,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbProcessorFeature(v **types.AwsRdsDb if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -17457,7 +17543,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbProcessorFeature(v **types.AwsRdsDb return nil } -func awsRestjson1_deserializeDocumentAwsRdsDbProcessorFeatures(v *[]*types.AwsRdsDbProcessorFeature, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRdsDbProcessorFeatures(v *[]types.AwsRdsDbProcessorFeature, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17470,18 +17556,20 @@ func awsRestjson1_deserializeDocumentAwsRdsDbProcessorFeatures(v *[]*types.AwsRd return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRdsDbProcessorFeature + var cv []types.AwsRdsDbProcessorFeature if *v == nil { - cv = []*types.AwsRdsDbProcessorFeature{} + cv = []types.AwsRdsDbProcessorFeature{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRdsDbProcessorFeature - if err := awsRestjson1_deserializeDocumentAwsRdsDbProcessorFeature(&col, value); err != nil { + var col types.AwsRdsDbProcessorFeature + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRdsDbProcessorFeature(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17521,7 +17609,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if err != nil { return err } - sv.AllocatedStorage = ptr.Int32(int32(i64)) + sv.AllocatedStorage = int32(i64) } case "AvailabilityZone": @@ -17530,7 +17618,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "DbInstanceIdentifier": @@ -17539,7 +17627,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbInstanceIdentifier = &jtv + sv.DbInstanceIdentifier = ptr.String(jtv) } case "DbiResourceId": @@ -17548,7 +17636,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbiResourceId = &jtv + sv.DbiResourceId = ptr.String(jtv) } case "DbSnapshotIdentifier": @@ -17557,7 +17645,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbSnapshotIdentifier = &jtv + sv.DbSnapshotIdentifier = ptr.String(jtv) } case "Encrypted": @@ -17566,7 +17654,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = jtv } case "Engine": @@ -17575,7 +17663,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Engine = &jtv + sv.Engine = ptr.String(jtv) } case "EngineVersion": @@ -17584,7 +17672,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EngineVersion = &jtv + sv.EngineVersion = ptr.String(jtv) } case "IamDatabaseAuthenticationEnabled": @@ -17593,7 +17681,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IamDatabaseAuthenticationEnabled = &jtv + sv.IamDatabaseAuthenticationEnabled = jtv } case "InstanceCreateTime": @@ -17602,7 +17690,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InstanceCreateTime = &jtv + sv.InstanceCreateTime = ptr.String(jtv) } case "Iops": @@ -17615,7 +17703,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if err != nil { return err } - sv.Iops = ptr.Int32(int32(i64)) + sv.Iops = int32(i64) } case "KmsKeyId": @@ -17624,7 +17712,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LicenseModel": @@ -17633,7 +17721,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LicenseModel = &jtv + sv.LicenseModel = ptr.String(jtv) } case "MasterUsername": @@ -17642,7 +17730,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MasterUsername = &jtv + sv.MasterUsername = ptr.String(jtv) } case "OptionGroupName": @@ -17651,7 +17739,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.OptionGroupName = &jtv + sv.OptionGroupName = ptr.String(jtv) } case "PercentProgress": @@ -17664,7 +17752,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if err != nil { return err } - sv.PercentProgress = ptr.Int32(int32(i64)) + sv.PercentProgress = int32(i64) } case "Port": @@ -17677,7 +17765,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } case "ProcessorFeatures": @@ -17691,7 +17779,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SnapshotCreateTime = &jtv + sv.SnapshotCreateTime = ptr.String(jtv) } case "SnapshotType": @@ -17700,7 +17788,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SnapshotType = &jtv + sv.SnapshotType = ptr.String(jtv) } case "SourceDbSnapshotIdentifier": @@ -17709,7 +17797,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SourceDbSnapshotIdentifier = &jtv + sv.SourceDbSnapshotIdentifier = ptr.String(jtv) } case "SourceRegion": @@ -17718,7 +17806,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SourceRegion = &jtv + sv.SourceRegion = ptr.String(jtv) } case "Status": @@ -17727,7 +17815,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "StorageType": @@ -17736,7 +17824,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.StorageType = &jtv + sv.StorageType = ptr.String(jtv) } case "TdeCredentialArn": @@ -17745,7 +17833,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.TdeCredentialArn = &jtv + sv.TdeCredentialArn = ptr.String(jtv) } case "Timezone": @@ -17754,7 +17842,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Timezone = &jtv + sv.Timezone = ptr.String(jtv) } case "VpcId": @@ -17763,7 +17851,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSnapshotDetails(v **types.AwsRdsDbS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -17803,7 +17891,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbStatusInfo(v **types.AwsRdsDbStatus if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Normal": @@ -17812,7 +17900,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbStatusInfo(v **types.AwsRdsDbStatus if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Normal = &jtv + sv.Normal = jtv } case "Status": @@ -17821,7 +17909,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbStatusInfo(v **types.AwsRdsDbStatus if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "StatusType": @@ -17830,7 +17918,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbStatusInfo(v **types.AwsRdsDbStatus if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.StatusType = &jtv + sv.StatusType = ptr.String(jtv) } default: @@ -17842,7 +17930,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbStatusInfo(v **types.AwsRdsDbStatus return nil } -func awsRestjson1_deserializeDocumentAwsRdsDbStatusInfos(v *[]*types.AwsRdsDbStatusInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRdsDbStatusInfos(v *[]types.AwsRdsDbStatusInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17855,18 +17943,20 @@ func awsRestjson1_deserializeDocumentAwsRdsDbStatusInfos(v *[]*types.AwsRdsDbSta return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRdsDbStatusInfo + var cv []types.AwsRdsDbStatusInfo if *v == nil { - cv = []*types.AwsRdsDbStatusInfo{} + cv = []types.AwsRdsDbStatusInfo{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRdsDbStatusInfo - if err := awsRestjson1_deserializeDocumentAwsRdsDbStatusInfo(&col, value); err != nil { + var col types.AwsRdsDbStatusInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRdsDbStatusInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -17902,7 +17992,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroup(v **types.AwsRdsDbSubne if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbSubnetGroupArn = &jtv + sv.DbSubnetGroupArn = ptr.String(jtv) } case "DbSubnetGroupDescription": @@ -17911,7 +18001,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroup(v **types.AwsRdsDbSubne if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbSubnetGroupDescription = &jtv + sv.DbSubnetGroupDescription = ptr.String(jtv) } case "DbSubnetGroupName": @@ -17920,7 +18010,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroup(v **types.AwsRdsDbSubne if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DbSubnetGroupName = &jtv + sv.DbSubnetGroupName = ptr.String(jtv) } case "SubnetGroupStatus": @@ -17929,7 +18019,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroup(v **types.AwsRdsDbSubne if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SubnetGroupStatus = &jtv + sv.SubnetGroupStatus = ptr.String(jtv) } case "Subnets": @@ -17943,7 +18033,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroup(v **types.AwsRdsDbSubne if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -17988,7 +18078,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroupSubnet(v **types.AwsRdsD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SubnetIdentifier = &jtv + sv.SubnetIdentifier = ptr.String(jtv) } case "SubnetStatus": @@ -17997,7 +18087,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroupSubnet(v **types.AwsRdsD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SubnetStatus = &jtv + sv.SubnetStatus = ptr.String(jtv) } default: @@ -18037,7 +18127,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroupSubnetAvailabilityZone(v if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -18049,7 +18139,7 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroupSubnetAvailabilityZone(v return nil } -func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroupSubnets(v *[]*types.AwsRdsDbSubnetGroupSubnet, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroupSubnets(v *[]types.AwsRdsDbSubnetGroupSubnet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18062,18 +18152,20 @@ func awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroupSubnets(v *[]*types.AwsR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRdsDbSubnetGroupSubnet + var cv []types.AwsRdsDbSubnetGroupSubnet if *v == nil { - cv = []*types.AwsRdsDbSubnetGroupSubnet{} + cv = []types.AwsRdsDbSubnetGroupSubnet{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRdsDbSubnetGroupSubnet - if err := awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroupSubnet(&col, value); err != nil { + var col types.AwsRdsDbSubnetGroupSubnet + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRdsDbSubnetGroupSubnet(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18150,7 +18242,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterNode(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NodeRole = &jtv + sv.NodeRole = ptr.String(jtv) } case "PrivateIpAddress": @@ -18159,7 +18251,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterNode(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PrivateIpAddress = &jtv + sv.PrivateIpAddress = ptr.String(jtv) } case "PublicIpAddress": @@ -18168,7 +18260,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterNode(v **types.Aws if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PublicIpAddress = &jtv + sv.PublicIpAddress = ptr.String(jtv) } default: @@ -18180,7 +18272,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterNode(v **types.Aws return nil } -func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterNodes(v *[]*types.AwsRedshiftClusterClusterNode, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterNodes(v *[]types.AwsRedshiftClusterClusterNode, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18193,18 +18285,20 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterNodes(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRedshiftClusterClusterNode + var cv []types.AwsRedshiftClusterClusterNode if *v == nil { - cv = []*types.AwsRedshiftClusterClusterNode{} + cv = []types.AwsRedshiftClusterClusterNode{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRedshiftClusterClusterNode - if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterNode(&col, value); err != nil { + var col types.AwsRedshiftClusterClusterNode + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterNode(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18245,7 +18339,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterGroup(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ParameterApplyStatus = &jtv + sv.ParameterApplyStatus = ptr.String(jtv) } case "ParameterGroupName": @@ -18254,7 +18348,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterGroup(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ParameterGroupName = &jtv + sv.ParameterGroupName = ptr.String(jtv) } default: @@ -18266,7 +18360,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterGroup(v * return nil } -func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterGroups(v *[]*types.AwsRedshiftClusterClusterParameterGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterGroups(v *[]types.AwsRedshiftClusterClusterParameterGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18279,18 +18373,20 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterGroups(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRedshiftClusterClusterParameterGroup + var cv []types.AwsRedshiftClusterClusterParameterGroup if *v == nil { - cv = []*types.AwsRedshiftClusterClusterParameterGroup{} + cv = []types.AwsRedshiftClusterClusterParameterGroup{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRedshiftClusterClusterParameterGroup - if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterGroup(&col, value); err != nil { + var col types.AwsRedshiftClusterClusterParameterGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18326,7 +18422,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterStatus(v if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ParameterApplyErrorDescription = &jtv + sv.ParameterApplyErrorDescription = ptr.String(jtv) } case "ParameterApplyStatus": @@ -18335,7 +18431,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterStatus(v if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ParameterApplyStatus = &jtv + sv.ParameterApplyStatus = ptr.String(jtv) } case "ParameterName": @@ -18344,7 +18440,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterStatus(v if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ParameterName = &jtv + sv.ParameterName = ptr.String(jtv) } default: @@ -18356,7 +18452,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterStatus(v return nil } -func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterStatusList(v *[]*types.AwsRedshiftClusterClusterParameterStatus, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterStatusList(v *[]types.AwsRedshiftClusterClusterParameterStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18369,18 +18465,20 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterStatusLis return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRedshiftClusterClusterParameterStatus + var cv []types.AwsRedshiftClusterClusterParameterStatus if *v == nil { - cv = []*types.AwsRedshiftClusterClusterParameterStatus{} + cv = []types.AwsRedshiftClusterClusterParameterStatus{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRedshiftClusterClusterParameterStatus - if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterStatus(&col, value); err != nil { + var col types.AwsRedshiftClusterClusterParameterStatus + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterParameterStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18416,7 +18514,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterSecurityGroup(v ** if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterSecurityGroupName = &jtv + sv.ClusterSecurityGroupName = ptr.String(jtv) } case "Status": @@ -18425,7 +18523,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterSecurityGroup(v ** if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -18437,7 +18535,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterSecurityGroup(v ** return nil } -func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterSecurityGroups(v *[]*types.AwsRedshiftClusterClusterSecurityGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterSecurityGroups(v *[]types.AwsRedshiftClusterClusterSecurityGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18450,18 +18548,20 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterSecurityGroups(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRedshiftClusterClusterSecurityGroup + var cv []types.AwsRedshiftClusterClusterSecurityGroup if *v == nil { - cv = []*types.AwsRedshiftClusterClusterSecurityGroup{} + cv = []types.AwsRedshiftClusterClusterSecurityGroup{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRedshiftClusterClusterSecurityGroup - if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterSecurityGroup(&col, value); err != nil { + var col types.AwsRedshiftClusterClusterSecurityGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterSecurityGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18497,7 +18597,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterSnapshotCopyStatus if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DestinationRegion = &jtv + sv.DestinationRegion = ptr.String(jtv) } case "ManualSnapshotRetentionPeriod": @@ -18510,7 +18610,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterSnapshotCopyStatus if err != nil { return err } - sv.ManualSnapshotRetentionPeriod = ptr.Int32(int32(i64)) + sv.ManualSnapshotRetentionPeriod = int32(i64) } case "RetentionPeriod": @@ -18523,7 +18623,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterSnapshotCopyStatus if err != nil { return err } - sv.RetentionPeriod = ptr.Int32(int32(i64)) + sv.RetentionPeriod = int32(i64) } case "SnapshotCopyGrantName": @@ -18532,7 +18632,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterClusterSnapshotCopyStatus if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SnapshotCopyGrantName = &jtv + sv.SnapshotCopyGrantName = ptr.String(jtv) } default: @@ -18572,7 +18672,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDeferredMaintenanceWindow if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DeferMaintenanceEndTime = &jtv + sv.DeferMaintenanceEndTime = ptr.String(jtv) } case "DeferMaintenanceIdentifier": @@ -18581,7 +18681,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDeferredMaintenanceWindow if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DeferMaintenanceIdentifier = &jtv + sv.DeferMaintenanceIdentifier = ptr.String(jtv) } case "DeferMaintenanceStartTime": @@ -18590,7 +18690,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDeferredMaintenanceWindow if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DeferMaintenanceStartTime = &jtv + sv.DeferMaintenanceStartTime = ptr.String(jtv) } default: @@ -18602,7 +18702,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDeferredMaintenanceWindow return nil } -func awsRestjson1_deserializeDocumentAwsRedshiftClusterDeferredMaintenanceWindows(v *[]*types.AwsRedshiftClusterDeferredMaintenanceWindow, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRedshiftClusterDeferredMaintenanceWindows(v *[]types.AwsRedshiftClusterDeferredMaintenanceWindow, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18615,18 +18715,20 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDeferredMaintenanceWindow return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRedshiftClusterDeferredMaintenanceWindow + var cv []types.AwsRedshiftClusterDeferredMaintenanceWindow if *v == nil { - cv = []*types.AwsRedshiftClusterDeferredMaintenanceWindow{} + cv = []types.AwsRedshiftClusterDeferredMaintenanceWindow{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRedshiftClusterDeferredMaintenanceWindow - if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterDeferredMaintenanceWindow(&col, value); err != nil { + var col types.AwsRedshiftClusterDeferredMaintenanceWindow + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterDeferredMaintenanceWindow(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18662,7 +18764,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllowVersionUpgrade = &jtv + sv.AllowVersionUpgrade = jtv } case "AutomatedSnapshotRetentionPeriod": @@ -18675,7 +18777,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if err != nil { return err } - sv.AutomatedSnapshotRetentionPeriod = ptr.Int32(int32(i64)) + sv.AutomatedSnapshotRetentionPeriod = int32(i64) } case "AvailabilityZone": @@ -18684,7 +18786,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AvailabilityZone = &jtv + sv.AvailabilityZone = ptr.String(jtv) } case "ClusterAvailabilityStatus": @@ -18693,7 +18795,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterAvailabilityStatus = &jtv + sv.ClusterAvailabilityStatus = ptr.String(jtv) } case "ClusterCreateTime": @@ -18702,7 +18804,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterCreateTime = &jtv + sv.ClusterCreateTime = ptr.String(jtv) } case "ClusterIdentifier": @@ -18711,7 +18813,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterIdentifier = &jtv + sv.ClusterIdentifier = ptr.String(jtv) } case "ClusterNodes": @@ -18730,7 +18832,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterPublicKey = &jtv + sv.ClusterPublicKey = ptr.String(jtv) } case "ClusterRevisionNumber": @@ -18739,7 +18841,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterRevisionNumber = &jtv + sv.ClusterRevisionNumber = ptr.String(jtv) } case "ClusterSecurityGroups": @@ -18758,7 +18860,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterStatus = &jtv + sv.ClusterStatus = ptr.String(jtv) } case "ClusterSubnetGroupName": @@ -18767,7 +18869,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterSubnetGroupName = &jtv + sv.ClusterSubnetGroupName = ptr.String(jtv) } case "ClusterVersion": @@ -18776,7 +18878,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterVersion = &jtv + sv.ClusterVersion = ptr.String(jtv) } case "DBName": @@ -18785,7 +18887,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DBName = &jtv + sv.DBName = ptr.String(jtv) } case "DeferredMaintenanceWindows": @@ -18804,7 +18906,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ElasticResizeNumberOfNodeOptions = &jtv + sv.ElasticResizeNumberOfNodeOptions = ptr.String(jtv) } case "Encrypted": @@ -18813,7 +18915,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = jtv } case "Endpoint": @@ -18827,7 +18929,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnhancedVpcRouting = &jtv + sv.EnhancedVpcRouting = jtv } case "ExpectedNextSnapshotScheduleTime": @@ -18836,7 +18938,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ExpectedNextSnapshotScheduleTime = &jtv + sv.ExpectedNextSnapshotScheduleTime = ptr.String(jtv) } case "ExpectedNextSnapshotScheduleTimeStatus": @@ -18845,7 +18947,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ExpectedNextSnapshotScheduleTimeStatus = &jtv + sv.ExpectedNextSnapshotScheduleTimeStatus = ptr.String(jtv) } case "HsmStatus": @@ -18864,7 +18966,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "MaintenanceTrackName": @@ -18873,7 +18975,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MaintenanceTrackName = &jtv + sv.MaintenanceTrackName = ptr.String(jtv) } case "ManualSnapshotRetentionPeriod": @@ -18886,7 +18988,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if err != nil { return err } - sv.ManualSnapshotRetentionPeriod = ptr.Int32(int32(i64)) + sv.ManualSnapshotRetentionPeriod = int32(i64) } case "MasterUsername": @@ -18895,7 +18997,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MasterUsername = &jtv + sv.MasterUsername = ptr.String(jtv) } case "NextMaintenanceWindowStartTime": @@ -18904,7 +19006,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NextMaintenanceWindowStartTime = &jtv + sv.NextMaintenanceWindowStartTime = ptr.String(jtv) } case "NodeType": @@ -18913,7 +19015,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NodeType = &jtv + sv.NodeType = ptr.String(jtv) } case "NumberOfNodes": @@ -18926,7 +19028,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if err != nil { return err } - sv.NumberOfNodes = ptr.Int32(int32(i64)) + sv.NumberOfNodes = int32(i64) } case "PendingActions": @@ -18945,7 +19047,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.PreferredMaintenanceWindow = &jtv + sv.PreferredMaintenanceWindow = ptr.String(jtv) } case "PubliclyAccessible": @@ -18954,7 +19056,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.PubliclyAccessible = &jtv + sv.PubliclyAccessible = jtv } case "ResizeInfo": @@ -18973,7 +19075,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SnapshotScheduleIdentifier = &jtv + sv.SnapshotScheduleIdentifier = ptr.String(jtv) } case "SnapshotScheduleState": @@ -18982,7 +19084,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SnapshotScheduleState = &jtv + sv.SnapshotScheduleState = ptr.String(jtv) } case "VpcId": @@ -18991,7 +19093,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterDetails(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } case "VpcSecurityGroups": @@ -19036,7 +19138,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterElasticIpStatus(v **types if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ElasticIp = &jtv + sv.ElasticIp = ptr.String(jtv) } case "Status": @@ -19045,7 +19147,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterElasticIpStatus(v **types if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -19085,7 +19187,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterEndpoint(v **types.AwsRed if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "Port": @@ -19098,7 +19200,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterEndpoint(v **types.AwsRed if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.Port = int32(i64) } default: @@ -19138,7 +19240,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterHsmStatus(v **types.AwsRe if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.HsmClientCertificateIdentifier = &jtv + sv.HsmClientCertificateIdentifier = ptr.String(jtv) } case "HsmConfigurationIdentifier": @@ -19147,7 +19249,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterHsmStatus(v **types.AwsRe if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.HsmConfigurationIdentifier = &jtv + sv.HsmConfigurationIdentifier = ptr.String(jtv) } case "Status": @@ -19156,7 +19258,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterHsmStatus(v **types.AwsRe if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -19196,7 +19298,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterIamRole(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ApplyStatus = &jtv + sv.ApplyStatus = ptr.String(jtv) } case "IamRoleArn": @@ -19205,7 +19307,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterIamRole(v **types.AwsReds if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } default: @@ -19217,7 +19319,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterIamRole(v **types.AwsReds return nil } -func awsRestjson1_deserializeDocumentAwsRedshiftClusterIamRoles(v *[]*types.AwsRedshiftClusterIamRole, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRedshiftClusterIamRoles(v *[]types.AwsRedshiftClusterIamRole, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19230,18 +19332,20 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterIamRoles(v *[]*types.AwsR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRedshiftClusterIamRole + var cv []types.AwsRedshiftClusterIamRole if *v == nil { - cv = []*types.AwsRedshiftClusterIamRole{} + cv = []types.AwsRedshiftClusterIamRole{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRedshiftClusterIamRole - if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterIamRole(&col, value); err != nil { + var col types.AwsRedshiftClusterIamRole + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterIamRole(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19281,7 +19385,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterPendingModifiedValues(v * if err != nil { return err } - sv.AutomatedSnapshotRetentionPeriod = ptr.Int32(int32(i64)) + sv.AutomatedSnapshotRetentionPeriod = int32(i64) } case "ClusterIdentifier": @@ -19290,7 +19394,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterPendingModifiedValues(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterIdentifier = &jtv + sv.ClusterIdentifier = ptr.String(jtv) } case "ClusterType": @@ -19299,7 +19403,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterPendingModifiedValues(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterType = &jtv + sv.ClusterType = ptr.String(jtv) } case "ClusterVersion": @@ -19308,7 +19412,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterPendingModifiedValues(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ClusterVersion = &jtv + sv.ClusterVersion = ptr.String(jtv) } case "EncryptionType": @@ -19317,7 +19421,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterPendingModifiedValues(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.EncryptionType = &jtv + sv.EncryptionType = ptr.String(jtv) } case "EnhancedVpcRouting": @@ -19326,7 +19430,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterPendingModifiedValues(v * if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnhancedVpcRouting = &jtv + sv.EnhancedVpcRouting = jtv } case "MaintenanceTrackName": @@ -19335,7 +19439,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterPendingModifiedValues(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MaintenanceTrackName = &jtv + sv.MaintenanceTrackName = ptr.String(jtv) } case "MasterUserPassword": @@ -19344,7 +19448,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterPendingModifiedValues(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MasterUserPassword = &jtv + sv.MasterUserPassword = ptr.String(jtv) } case "NodeType": @@ -19353,7 +19457,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterPendingModifiedValues(v * if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.NodeType = &jtv + sv.NodeType = ptr.String(jtv) } case "NumberOfNodes": @@ -19366,7 +19470,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterPendingModifiedValues(v * if err != nil { return err } - sv.NumberOfNodes = ptr.Int32(int32(i64)) + sv.NumberOfNodes = int32(i64) } case "PubliclyAccessible": @@ -19375,7 +19479,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterPendingModifiedValues(v * if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.PubliclyAccessible = &jtv + sv.PubliclyAccessible = jtv } default: @@ -19415,7 +19519,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterResizeInfo(v **types.AwsR if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllowCancelResize = &jtv + sv.AllowCancelResize = jtv } case "ResizeType": @@ -19424,7 +19528,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterResizeInfo(v **types.AwsR if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ResizeType = &jtv + sv.ResizeType = ptr.String(jtv) } default: @@ -19468,7 +19572,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterRestoreStatus(v **types.A if err != nil { return err } - sv.CurrentRestoreRateInMegaBytesPerSecond = &f64 + sv.CurrentRestoreRateInMegaBytesPerSecond = f64 } case "ElapsedTimeInSeconds": @@ -19481,7 +19585,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterRestoreStatus(v **types.A if err != nil { return err } - sv.ElapsedTimeInSeconds = &i64 + sv.ElapsedTimeInSeconds = i64 } case "EstimatedTimeToCompletionInSeconds": @@ -19494,7 +19598,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterRestoreStatus(v **types.A if err != nil { return err } - sv.EstimatedTimeToCompletionInSeconds = &i64 + sv.EstimatedTimeToCompletionInSeconds = i64 } case "ProgressInMegaBytes": @@ -19507,7 +19611,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterRestoreStatus(v **types.A if err != nil { return err } - sv.ProgressInMegaBytes = &i64 + sv.ProgressInMegaBytes = i64 } case "SnapshotSizeInMegaBytes": @@ -19520,7 +19624,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterRestoreStatus(v **types.A if err != nil { return err } - sv.SnapshotSizeInMegaBytes = &i64 + sv.SnapshotSizeInMegaBytes = i64 } case "Status": @@ -19529,7 +19633,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterRestoreStatus(v **types.A if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -19569,7 +19673,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterVpcSecurityGroup(v **type if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "VpcSecurityGroupId": @@ -19578,7 +19682,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterVpcSecurityGroup(v **type if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VpcSecurityGroupId = &jtv + sv.VpcSecurityGroupId = ptr.String(jtv) } default: @@ -19590,7 +19694,7 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterVpcSecurityGroup(v **type return nil } -func awsRestjson1_deserializeDocumentAwsRedshiftClusterVpcSecurityGroups(v *[]*types.AwsRedshiftClusterVpcSecurityGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsRedshiftClusterVpcSecurityGroups(v *[]types.AwsRedshiftClusterVpcSecurityGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19603,18 +19707,20 @@ func awsRestjson1_deserializeDocumentAwsRedshiftClusterVpcSecurityGroups(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsRedshiftClusterVpcSecurityGroup + var cv []types.AwsRedshiftClusterVpcSecurityGroup if *v == nil { - cv = []*types.AwsRedshiftClusterVpcSecurityGroup{} + cv = []types.AwsRedshiftClusterVpcSecurityGroup{} } else { cv = *v } for _, value := range shape { - var col *types.AwsRedshiftClusterVpcSecurityGroup - if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterVpcSecurityGroup(&col, value); err != nil { + var col types.AwsRedshiftClusterVpcSecurityGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsRedshiftClusterVpcSecurityGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19650,7 +19756,7 @@ func awsRestjson1_deserializeDocumentAwsS3BucketDetails(v **types.AwsS3BucketDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "OwnerId": @@ -19659,7 +19765,7 @@ func awsRestjson1_deserializeDocumentAwsS3BucketDetails(v **types.AwsS3BucketDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.OwnerId = &jtv + sv.OwnerId = ptr.String(jtv) } case "OwnerName": @@ -19668,7 +19774,7 @@ func awsRestjson1_deserializeDocumentAwsS3BucketDetails(v **types.AwsS3BucketDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.OwnerName = &jtv + sv.OwnerName = ptr.String(jtv) } case "ServerSideEncryptionConfiguration": @@ -19713,7 +19819,7 @@ func awsRestjson1_deserializeDocumentAwsS3BucketServerSideEncryptionByDefault(v if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KMSMasterKeyID = &jtv + sv.KMSMasterKeyID = ptr.String(jtv) } case "SSEAlgorithm": @@ -19722,7 +19828,7 @@ func awsRestjson1_deserializeDocumentAwsS3BucketServerSideEncryptionByDefault(v if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SSEAlgorithm = &jtv + sv.SSEAlgorithm = ptr.String(jtv) } default: @@ -19806,7 +19912,7 @@ func awsRestjson1_deserializeDocumentAwsS3BucketServerSideEncryptionRule(v **typ return nil } -func awsRestjson1_deserializeDocumentAwsS3BucketServerSideEncryptionRules(v *[]*types.AwsS3BucketServerSideEncryptionRule, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsS3BucketServerSideEncryptionRules(v *[]types.AwsS3BucketServerSideEncryptionRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19819,18 +19925,20 @@ func awsRestjson1_deserializeDocumentAwsS3BucketServerSideEncryptionRules(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsS3BucketServerSideEncryptionRule + var cv []types.AwsS3BucketServerSideEncryptionRule if *v == nil { - cv = []*types.AwsS3BucketServerSideEncryptionRule{} + cv = []types.AwsS3BucketServerSideEncryptionRule{} } else { cv = *v } for _, value := range shape { - var col *types.AwsS3BucketServerSideEncryptionRule - if err := awsRestjson1_deserializeDocumentAwsS3BucketServerSideEncryptionRule(&col, value); err != nil { + var col types.AwsS3BucketServerSideEncryptionRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsS3BucketServerSideEncryptionRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19866,7 +19974,7 @@ func awsRestjson1_deserializeDocumentAwsS3ObjectDetails(v **types.AwsS3ObjectDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "ETag": @@ -19875,7 +19983,7 @@ func awsRestjson1_deserializeDocumentAwsS3ObjectDetails(v **types.AwsS3ObjectDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ETag = &jtv + sv.ETag = ptr.String(jtv) } case "LastModified": @@ -19884,7 +19992,7 @@ func awsRestjson1_deserializeDocumentAwsS3ObjectDetails(v **types.AwsS3ObjectDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LastModified = &jtv + sv.LastModified = ptr.String(jtv) } case "ServerSideEncryption": @@ -19893,7 +20001,7 @@ func awsRestjson1_deserializeDocumentAwsS3ObjectDetails(v **types.AwsS3ObjectDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ServerSideEncryption = &jtv + sv.ServerSideEncryption = ptr.String(jtv) } case "SSEKMSKeyId": @@ -19902,7 +20010,7 @@ func awsRestjson1_deserializeDocumentAwsS3ObjectDetails(v **types.AwsS3ObjectDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SSEKMSKeyId = &jtv + sv.SSEKMSKeyId = ptr.String(jtv) } case "VersionId": @@ -19911,7 +20019,7 @@ func awsRestjson1_deserializeDocumentAwsS3ObjectDetails(v **types.AwsS3ObjectDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -19951,7 +20059,7 @@ func awsRestjson1_deserializeDocumentAwsSecretsManagerSecretDetails(v **types.Aw if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Deleted = &jtv + sv.Deleted = jtv } case "Description": @@ -19960,7 +20068,7 @@ func awsRestjson1_deserializeDocumentAwsSecretsManagerSecretDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "KmsKeyId": @@ -19969,7 +20077,7 @@ func awsRestjson1_deserializeDocumentAwsSecretsManagerSecretDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "Name": @@ -19978,7 +20086,7 @@ func awsRestjson1_deserializeDocumentAwsSecretsManagerSecretDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RotationEnabled": @@ -19987,7 +20095,7 @@ func awsRestjson1_deserializeDocumentAwsSecretsManagerSecretDetails(v **types.Aw if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RotationEnabled = &jtv + sv.RotationEnabled = jtv } case "RotationLambdaArn": @@ -19996,7 +20104,7 @@ func awsRestjson1_deserializeDocumentAwsSecretsManagerSecretDetails(v **types.Aw if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RotationLambdaArn = &jtv + sv.RotationLambdaArn = ptr.String(jtv) } case "RotationOccurredWithinFrequency": @@ -20005,7 +20113,7 @@ func awsRestjson1_deserializeDocumentAwsSecretsManagerSecretDetails(v **types.Aw if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RotationOccurredWithinFrequency = &jtv + sv.RotationOccurredWithinFrequency = jtv } case "RotationRules": @@ -20054,7 +20162,7 @@ func awsRestjson1_deserializeDocumentAwsSecretsManagerSecretRotationRules(v **ty if err != nil { return err } - sv.AutomaticallyAfterDays = ptr.Int32(int32(i64)) + sv.AutomaticallyAfterDays = int32(i64) } default: @@ -20094,7 +20202,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AwsAccountId = &jtv + sv.AwsAccountId = ptr.String(jtv) } case "Compliance": @@ -20112,7 +20220,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if err != nil { return err } - sv.Confidence = ptr.Int32(int32(i64)) + sv.Confidence = int32(i64) } case "CreatedAt": @@ -20121,7 +20229,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CreatedAt = &jtv + sv.CreatedAt = ptr.String(jtv) } case "Criticality": @@ -20134,7 +20242,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if err != nil { return err } - sv.Criticality = ptr.Int32(int32(i64)) + sv.Criticality = int32(i64) } case "Description": @@ -20143,7 +20251,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "FirstObservedAt": @@ -20152,7 +20260,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.FirstObservedAt = &jtv + sv.FirstObservedAt = ptr.String(jtv) } case "GeneratorId": @@ -20161,7 +20269,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GeneratorId = &jtv + sv.GeneratorId = ptr.String(jtv) } case "Id": @@ -20170,7 +20278,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastObservedAt": @@ -20179,7 +20287,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LastObservedAt = &jtv + sv.LastObservedAt = ptr.String(jtv) } case "Malware": @@ -20218,7 +20326,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ProductArn = &jtv + sv.ProductArn = ptr.String(jtv) } case "ProductFields": @@ -20256,7 +20364,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "Severity": @@ -20270,7 +20378,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SourceUrl = &jtv + sv.SourceUrl = ptr.String(jtv) } case "ThreatIntelIndicators": @@ -20284,7 +20392,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } case "Types": @@ -20298,7 +20406,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFinding(v **types.AwsSecurityFin if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.UpdatedAt = &jtv + sv.UpdatedAt = ptr.String(jtv) } case "UserDefinedFields": @@ -20822,7 +20930,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFindingIdentifier(v **types.AwsS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ProductArn": @@ -20831,7 +20939,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFindingIdentifier(v **types.AwsS if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ProductArn = &jtv + sv.ProductArn = ptr.String(jtv) } default: @@ -20843,7 +20951,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFindingIdentifier(v **types.AwsS return nil } -func awsRestjson1_deserializeDocumentAwsSecurityFindingIdentifierList(v *[]*types.AwsSecurityFindingIdentifier, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsSecurityFindingIdentifierList(v *[]types.AwsSecurityFindingIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20856,18 +20964,20 @@ func awsRestjson1_deserializeDocumentAwsSecurityFindingIdentifierList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsSecurityFindingIdentifier + var cv []types.AwsSecurityFindingIdentifier if *v == nil { - cv = []*types.AwsSecurityFindingIdentifier{} + cv = []types.AwsSecurityFindingIdentifier{} } else { cv = *v } for _, value := range shape { - var col *types.AwsSecurityFindingIdentifier - if err := awsRestjson1_deserializeDocumentAwsSecurityFindingIdentifier(&col, value); err != nil { + var col types.AwsSecurityFindingIdentifier + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsSecurityFindingIdentifier(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20875,7 +20985,7 @@ func awsRestjson1_deserializeDocumentAwsSecurityFindingIdentifierList(v *[]*type return nil } -func awsRestjson1_deserializeDocumentAwsSecurityFindingList(v *[]*types.AwsSecurityFinding, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsSecurityFindingList(v *[]types.AwsSecurityFinding, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20888,18 +20998,20 @@ func awsRestjson1_deserializeDocumentAwsSecurityFindingList(v *[]*types.AwsSecur return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsSecurityFinding + var cv []types.AwsSecurityFinding if *v == nil { - cv = []*types.AwsSecurityFinding{} + cv = []types.AwsSecurityFinding{} } else { cv = *v } for _, value := range shape { - var col *types.AwsSecurityFinding - if err := awsRestjson1_deserializeDocumentAwsSecurityFinding(&col, value); err != nil { + var col types.AwsSecurityFinding + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsSecurityFinding(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20935,7 +21047,7 @@ func awsRestjson1_deserializeDocumentAwsSnsTopicDetails(v **types.AwsSnsTopicDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsMasterKeyId = &jtv + sv.KmsMasterKeyId = ptr.String(jtv) } case "Owner": @@ -20944,7 +21056,7 @@ func awsRestjson1_deserializeDocumentAwsSnsTopicDetails(v **types.AwsSnsTopicDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "Subscription": @@ -20958,7 +21070,7 @@ func awsRestjson1_deserializeDocumentAwsSnsTopicDetails(v **types.AwsSnsTopicDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.TopicName = &jtv + sv.TopicName = ptr.String(jtv) } default: @@ -20998,7 +21110,7 @@ func awsRestjson1_deserializeDocumentAwsSnsTopicSubscription(v **types.AwsSnsTop if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Endpoint = &jtv + sv.Endpoint = ptr.String(jtv) } case "Protocol": @@ -21007,7 +21119,7 @@ func awsRestjson1_deserializeDocumentAwsSnsTopicSubscription(v **types.AwsSnsTop if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Protocol = &jtv + sv.Protocol = ptr.String(jtv) } default: @@ -21019,7 +21131,7 @@ func awsRestjson1_deserializeDocumentAwsSnsTopicSubscription(v **types.AwsSnsTop return nil } -func awsRestjson1_deserializeDocumentAwsSnsTopicSubscriptionList(v *[]*types.AwsSnsTopicSubscription, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsSnsTopicSubscriptionList(v *[]types.AwsSnsTopicSubscription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21032,18 +21144,20 @@ func awsRestjson1_deserializeDocumentAwsSnsTopicSubscriptionList(v *[]*types.Aws return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsSnsTopicSubscription + var cv []types.AwsSnsTopicSubscription if *v == nil { - cv = []*types.AwsSnsTopicSubscription{} + cv = []types.AwsSnsTopicSubscription{} } else { cv = *v } for _, value := range shape { - var col *types.AwsSnsTopicSubscription - if err := awsRestjson1_deserializeDocumentAwsSnsTopicSubscription(&col, value); err != nil { + var col types.AwsSnsTopicSubscription + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsSnsTopicSubscription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21079,7 +21193,7 @@ func awsRestjson1_deserializeDocumentAwsSqsQueueDetails(v **types.AwsSqsQueueDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DeadLetterTargetArn = &jtv + sv.DeadLetterTargetArn = ptr.String(jtv) } case "KmsDataKeyReusePeriodSeconds": @@ -21092,7 +21206,7 @@ func awsRestjson1_deserializeDocumentAwsSqsQueueDetails(v **types.AwsSqsQueueDet if err != nil { return err } - sv.KmsDataKeyReusePeriodSeconds = ptr.Int32(int32(i64)) + sv.KmsDataKeyReusePeriodSeconds = int32(i64) } case "KmsMasterKeyId": @@ -21101,7 +21215,7 @@ func awsRestjson1_deserializeDocumentAwsSqsQueueDetails(v **types.AwsSqsQueueDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.KmsMasterKeyId = &jtv + sv.KmsMasterKeyId = ptr.String(jtv) } case "QueueName": @@ -21110,7 +21224,7 @@ func awsRestjson1_deserializeDocumentAwsSqsQueueDetails(v **types.AwsSqsQueueDet if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.QueueName = &jtv + sv.QueueName = ptr.String(jtv) } default: @@ -21150,7 +21264,7 @@ func awsRestjson1_deserializeDocumentAwsWafWebAclDetails(v **types.AwsWafWebAclD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DefaultAction = &jtv + sv.DefaultAction = ptr.String(jtv) } case "Name": @@ -21159,7 +21273,7 @@ func awsRestjson1_deserializeDocumentAwsWafWebAclDetails(v **types.AwsWafWebAclD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Rules": @@ -21173,7 +21287,7 @@ func awsRestjson1_deserializeDocumentAwsWafWebAclDetails(v **types.AwsWafWebAclD if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.WebAclId = &jtv + sv.WebAclId = ptr.String(jtv) } default: @@ -21232,7 +21346,7 @@ func awsRestjson1_deserializeDocumentAwsWafWebAclRule(v **types.AwsWafWebAclRule if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "RuleId": @@ -21241,7 +21355,7 @@ func awsRestjson1_deserializeDocumentAwsWafWebAclRule(v **types.AwsWafWebAclRule if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } case "Type": @@ -21250,7 +21364,7 @@ func awsRestjson1_deserializeDocumentAwsWafWebAclRule(v **types.AwsWafWebAclRule if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -21262,7 +21376,7 @@ func awsRestjson1_deserializeDocumentAwsWafWebAclRule(v **types.AwsWafWebAclRule return nil } -func awsRestjson1_deserializeDocumentAwsWafWebAclRuleList(v *[]*types.AwsWafWebAclRule, value interface{}) error { +func awsRestjson1_deserializeDocumentAwsWafWebAclRuleList(v *[]types.AwsWafWebAclRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21275,18 +21389,20 @@ func awsRestjson1_deserializeDocumentAwsWafWebAclRuleList(v *[]*types.AwsWafWebA return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AwsWafWebAclRule + var cv []types.AwsWafWebAclRule if *v == nil { - cv = []*types.AwsWafWebAclRule{} + cv = []types.AwsWafWebAclRule{} } else { cv = *v } for _, value := range shape { - var col *types.AwsWafWebAclRule - if err := awsRestjson1_deserializeDocumentAwsWafWebAclRule(&col, value); err != nil { + var col types.AwsWafWebAclRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentAwsWafWebAclRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21322,7 +21438,7 @@ func awsRestjson1_deserializeDocumentBatchUpdateFindingsUnprocessedFinding(v **t if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -21331,7 +21447,7 @@ func awsRestjson1_deserializeDocumentBatchUpdateFindingsUnprocessedFinding(v **t if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "FindingIdentifier": @@ -21348,7 +21464,7 @@ func awsRestjson1_deserializeDocumentBatchUpdateFindingsUnprocessedFinding(v **t return nil } -func awsRestjson1_deserializeDocumentBatchUpdateFindingsUnprocessedFindingsList(v *[]*types.BatchUpdateFindingsUnprocessedFinding, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchUpdateFindingsUnprocessedFindingsList(v *[]types.BatchUpdateFindingsUnprocessedFinding, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21361,18 +21477,20 @@ func awsRestjson1_deserializeDocumentBatchUpdateFindingsUnprocessedFindingsList( return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BatchUpdateFindingsUnprocessedFinding + var cv []types.BatchUpdateFindingsUnprocessedFinding if *v == nil { - cv = []*types.BatchUpdateFindingsUnprocessedFinding{} + cv = []types.BatchUpdateFindingsUnprocessedFinding{} } else { cv = *v } for _, value := range shape { - var col *types.BatchUpdateFindingsUnprocessedFinding - if err := awsRestjson1_deserializeDocumentBatchUpdateFindingsUnprocessedFinding(&col, value); err != nil { + var col types.BatchUpdateFindingsUnprocessedFinding + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchUpdateFindingsUnprocessedFinding(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21380,7 +21498,7 @@ func awsRestjson1_deserializeDocumentBatchUpdateFindingsUnprocessedFindingsList( return nil } -func awsRestjson1_deserializeDocumentCategoryList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentCategoryList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21393,21 +21511,21 @@ func awsRestjson1_deserializeDocumentCategoryList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -21444,7 +21562,7 @@ func awsRestjson1_deserializeDocumentCidrBlockAssociation(v **types.CidrBlockAss if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AssociationId = &jtv + sv.AssociationId = ptr.String(jtv) } case "CidrBlock": @@ -21453,7 +21571,7 @@ func awsRestjson1_deserializeDocumentCidrBlockAssociation(v **types.CidrBlockAss if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CidrBlock = &jtv + sv.CidrBlock = ptr.String(jtv) } case "CidrBlockState": @@ -21462,7 +21580,7 @@ func awsRestjson1_deserializeDocumentCidrBlockAssociation(v **types.CidrBlockAss if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CidrBlockState = &jtv + sv.CidrBlockState = ptr.String(jtv) } default: @@ -21474,7 +21592,7 @@ func awsRestjson1_deserializeDocumentCidrBlockAssociation(v **types.CidrBlockAss return nil } -func awsRestjson1_deserializeDocumentCidrBlockAssociationList(v *[]*types.CidrBlockAssociation, value interface{}) error { +func awsRestjson1_deserializeDocumentCidrBlockAssociationList(v *[]types.CidrBlockAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21487,18 +21605,20 @@ func awsRestjson1_deserializeDocumentCidrBlockAssociationList(v *[]*types.CidrBl return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CidrBlockAssociation + var cv []types.CidrBlockAssociation if *v == nil { - cv = []*types.CidrBlockAssociation{} + cv = []types.CidrBlockAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.CidrBlockAssociation - if err := awsRestjson1_deserializeDocumentCidrBlockAssociation(&col, value); err != nil { + var col types.CidrBlockAssociation + destAddr := &col + if err := awsRestjson1_deserializeDocumentCidrBlockAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21584,7 +21704,7 @@ func awsRestjson1_deserializeDocumentContainerDetails(v **types.ContainerDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ImageId = &jtv + sv.ImageId = ptr.String(jtv) } case "ImageName": @@ -21593,7 +21713,7 @@ func awsRestjson1_deserializeDocumentContainerDetails(v **types.ContainerDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ImageName = &jtv + sv.ImageName = ptr.String(jtv) } case "LaunchedAt": @@ -21602,7 +21722,7 @@ func awsRestjson1_deserializeDocumentContainerDetails(v **types.ContainerDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LaunchedAt = &jtv + sv.LaunchedAt = ptr.String(jtv) } case "Name": @@ -21611,7 +21731,7 @@ func awsRestjson1_deserializeDocumentContainerDetails(v **types.ContainerDetails if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -21655,7 +21775,7 @@ func awsRestjson1_deserializeDocumentCvss(v **types.Cvss, value interface{}) err if err != nil { return err } - sv.BaseScore = &f64 + sv.BaseScore = f64 } case "BaseVector": @@ -21664,7 +21784,7 @@ func awsRestjson1_deserializeDocumentCvss(v **types.Cvss, value interface{}) err if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.BaseVector = &jtv + sv.BaseVector = ptr.String(jtv) } case "Version": @@ -21673,7 +21793,7 @@ func awsRestjson1_deserializeDocumentCvss(v **types.Cvss, value interface{}) err if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -21685,7 +21805,7 @@ func awsRestjson1_deserializeDocumentCvss(v **types.Cvss, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentCvssList(v *[]*types.Cvss, value interface{}) error { +func awsRestjson1_deserializeDocumentCvssList(v *[]types.Cvss, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21698,18 +21818,20 @@ func awsRestjson1_deserializeDocumentCvssList(v *[]*types.Cvss, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Cvss + var cv []types.Cvss if *v == nil { - cv = []*types.Cvss{} + cv = []types.Cvss{} } else { cv = *v } for _, value := range shape { - var col *types.Cvss - if err := awsRestjson1_deserializeDocumentCvss(&col, value); err != nil { + var col types.Cvss + destAddr := &col + if err := awsRestjson1_deserializeDocumentCvss(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21750,7 +21872,7 @@ func awsRestjson1_deserializeDocumentDateFilter(v **types.DateFilter, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.End = &jtv + sv.End = ptr.String(jtv) } case "Start": @@ -21759,7 +21881,7 @@ func awsRestjson1_deserializeDocumentDateFilter(v **types.DateFilter, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Start = &jtv + sv.Start = ptr.String(jtv) } default: @@ -21771,7 +21893,7 @@ func awsRestjson1_deserializeDocumentDateFilter(v **types.DateFilter, value inte return nil } -func awsRestjson1_deserializeDocumentDateFilterList(v *[]*types.DateFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentDateFilterList(v *[]types.DateFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21784,18 +21906,20 @@ func awsRestjson1_deserializeDocumentDateFilterList(v *[]*types.DateFilter, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DateFilter + var cv []types.DateFilter if *v == nil { - cv = []*types.DateFilter{} + cv = []types.DateFilter{} } else { cv = *v } for _, value := range shape { - var col *types.DateFilter - if err := awsRestjson1_deserializeDocumentDateFilter(&col, value); err != nil { + var col types.DateFilter + destAddr := &col + if err := awsRestjson1_deserializeDocumentDateFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21844,7 +21968,7 @@ func awsRestjson1_deserializeDocumentDateRange(v **types.DateRange, value interf if err != nil { return err } - sv.Value = ptr.Int32(int32(i64)) + sv.Value = int32(i64) } default: @@ -21856,7 +21980,7 @@ func awsRestjson1_deserializeDocumentDateRange(v **types.DateRange, value interf return nil } -func awsRestjson1_deserializeDocumentFieldMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentFieldMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21869,21 +21993,21 @@ func awsRestjson1_deserializeDocumentFieldMap(v *map[string]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -21920,7 +22044,7 @@ func awsRestjson1_deserializeDocumentImportFindingsError(v **types.ImportFinding if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -21929,7 +22053,7 @@ func awsRestjson1_deserializeDocumentImportFindingsError(v **types.ImportFinding if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "Id": @@ -21938,7 +22062,7 @@ func awsRestjson1_deserializeDocumentImportFindingsError(v **types.ImportFinding if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -21950,7 +22074,7 @@ func awsRestjson1_deserializeDocumentImportFindingsError(v **types.ImportFinding return nil } -func awsRestjson1_deserializeDocumentImportFindingsErrorList(v *[]*types.ImportFindingsError, value interface{}) error { +func awsRestjson1_deserializeDocumentImportFindingsErrorList(v *[]types.ImportFindingsError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21963,18 +22087,20 @@ func awsRestjson1_deserializeDocumentImportFindingsErrorList(v *[]*types.ImportF return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImportFindingsError + var cv []types.ImportFindingsError if *v == nil { - cv = []*types.ImportFindingsError{} + cv = []types.ImportFindingsError{} } else { cv = *v } for _, value := range shape { - var col *types.ImportFindingsError - if err := awsRestjson1_deserializeDocumentImportFindingsError(&col, value); err != nil { + var col types.ImportFindingsError + destAddr := &col + if err := awsRestjson1_deserializeDocumentImportFindingsError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22015,7 +22141,7 @@ func awsRestjson1_deserializeDocumentInsight(v **types.Insight, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GroupByAttribute = &jtv + sv.GroupByAttribute = ptr.String(jtv) } case "InsightArn": @@ -22024,7 +22150,7 @@ func awsRestjson1_deserializeDocumentInsight(v **types.Insight, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InsightArn = &jtv + sv.InsightArn = ptr.String(jtv) } case "Name": @@ -22033,7 +22159,7 @@ func awsRestjson1_deserializeDocumentInsight(v **types.Insight, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -22045,7 +22171,7 @@ func awsRestjson1_deserializeDocumentInsight(v **types.Insight, value interface{ return nil } -func awsRestjson1_deserializeDocumentInsightList(v *[]*types.Insight, value interface{}) error { +func awsRestjson1_deserializeDocumentInsightList(v *[]types.Insight, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22058,18 +22184,20 @@ func awsRestjson1_deserializeDocumentInsightList(v *[]*types.Insight, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Insight + var cv []types.Insight if *v == nil { - cv = []*types.Insight{} + cv = []types.Insight{} } else { cv = *v } for _, value := range shape { - var col *types.Insight - if err := awsRestjson1_deserializeDocumentInsight(&col, value); err != nil { + var col types.Insight + destAddr := &col + if err := awsRestjson1_deserializeDocumentInsight(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22105,7 +22233,7 @@ func awsRestjson1_deserializeDocumentInsightResults(v **types.InsightResults, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GroupByAttribute = &jtv + sv.GroupByAttribute = ptr.String(jtv) } case "InsightArn": @@ -22114,7 +22242,7 @@ func awsRestjson1_deserializeDocumentInsightResults(v **types.InsightResults, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InsightArn = &jtv + sv.InsightArn = ptr.String(jtv) } case "ResultValues": @@ -22163,7 +22291,7 @@ func awsRestjson1_deserializeDocumentInsightResultValue(v **types.InsightResultV if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "GroupByAttributeValue": @@ -22172,7 +22300,7 @@ func awsRestjson1_deserializeDocumentInsightResultValue(v **types.InsightResultV if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.GroupByAttributeValue = &jtv + sv.GroupByAttributeValue = ptr.String(jtv) } default: @@ -22184,7 +22312,7 @@ func awsRestjson1_deserializeDocumentInsightResultValue(v **types.InsightResultV return nil } -func awsRestjson1_deserializeDocumentInsightResultValueList(v *[]*types.InsightResultValue, value interface{}) error { +func awsRestjson1_deserializeDocumentInsightResultValueList(v *[]types.InsightResultValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22197,18 +22325,20 @@ func awsRestjson1_deserializeDocumentInsightResultValueList(v *[]*types.InsightR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InsightResultValue + var cv []types.InsightResultValue if *v == nil { - cv = []*types.InsightResultValue{} + cv = []types.InsightResultValue{} } else { cv = *v } for _, value := range shape { - var col *types.InsightResultValue - if err := awsRestjson1_deserializeDocumentInsightResultValue(&col, value); err != nil { + var col types.InsightResultValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentInsightResultValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22280,7 +22410,7 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -22289,7 +22419,7 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22329,7 +22459,7 @@ func awsRestjson1_deserializeDocumentInvalidAccessException(v **types.InvalidAcc if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -22338,7 +22468,7 @@ func awsRestjson1_deserializeDocumentInvalidAccessException(v **types.InvalidAcc if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22378,7 +22508,7 @@ func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -22387,7 +22517,7 @@ func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInpu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22427,7 +22557,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "InvitationId": @@ -22436,7 +22566,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.InvitationId = &jtv + sv.InvitationId = ptr.String(jtv) } case "InvitedAt": @@ -22449,7 +22579,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if err != nil { return err } - sv.InvitedAt = &t + sv.InvitedAt = ptr.Time(t) } case "MemberStatus": @@ -22458,7 +22588,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MemberStatus = &jtv + sv.MemberStatus = ptr.String(jtv) } default: @@ -22470,7 +22600,7 @@ func awsRestjson1_deserializeDocumentInvitation(v **types.Invitation, value inte return nil } -func awsRestjson1_deserializeDocumentInvitationList(v *[]*types.Invitation, value interface{}) error { +func awsRestjson1_deserializeDocumentInvitationList(v *[]types.Invitation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22483,18 +22613,20 @@ func awsRestjson1_deserializeDocumentInvitationList(v *[]*types.Invitation, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Invitation + var cv []types.Invitation if *v == nil { - cv = []*types.Invitation{} + cv = []types.Invitation{} } else { cv = *v } for _, value := range shape { - var col *types.Invitation - if err := awsRestjson1_deserializeDocumentInvitation(&col, value); err != nil { + var col types.Invitation + destAddr := &col + if err := awsRestjson1_deserializeDocumentInvitation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22530,7 +22662,7 @@ func awsRestjson1_deserializeDocumentIpFilter(v **types.IpFilter, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Cidr = &jtv + sv.Cidr = ptr.String(jtv) } default: @@ -22542,7 +22674,7 @@ func awsRestjson1_deserializeDocumentIpFilter(v **types.IpFilter, value interfac return nil } -func awsRestjson1_deserializeDocumentIpFilterList(v *[]*types.IpFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentIpFilterList(v *[]types.IpFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22555,18 +22687,20 @@ func awsRestjson1_deserializeDocumentIpFilterList(v *[]*types.IpFilter, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IpFilter + var cv []types.IpFilter if *v == nil { - cv = []*types.IpFilter{} + cv = []types.IpFilter{} } else { cv = *v } for _, value := range shape { - var col *types.IpFilter - if err := awsRestjson1_deserializeDocumentIpFilter(&col, value); err != nil { + var col types.IpFilter + destAddr := &col + if err := awsRestjson1_deserializeDocumentIpFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22602,7 +22736,7 @@ func awsRestjson1_deserializeDocumentIpv6CidrBlockAssociation(v **types.Ipv6Cidr if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.AssociationId = &jtv + sv.AssociationId = ptr.String(jtv) } case "CidrBlockState": @@ -22611,7 +22745,7 @@ func awsRestjson1_deserializeDocumentIpv6CidrBlockAssociation(v **types.Ipv6Cidr if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CidrBlockState = &jtv + sv.CidrBlockState = ptr.String(jtv) } case "Ipv6CidrBlock": @@ -22620,7 +22754,7 @@ func awsRestjson1_deserializeDocumentIpv6CidrBlockAssociation(v **types.Ipv6Cidr if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Ipv6CidrBlock = &jtv + sv.Ipv6CidrBlock = ptr.String(jtv) } default: @@ -22632,7 +22766,7 @@ func awsRestjson1_deserializeDocumentIpv6CidrBlockAssociation(v **types.Ipv6Cidr return nil } -func awsRestjson1_deserializeDocumentIpv6CidrBlockAssociationList(v *[]*types.Ipv6CidrBlockAssociation, value interface{}) error { +func awsRestjson1_deserializeDocumentIpv6CidrBlockAssociationList(v *[]types.Ipv6CidrBlockAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22645,18 +22779,20 @@ func awsRestjson1_deserializeDocumentIpv6CidrBlockAssociationList(v *[]*types.Ip return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Ipv6CidrBlockAssociation + var cv []types.Ipv6CidrBlockAssociation if *v == nil { - cv = []*types.Ipv6CidrBlockAssociation{} + cv = []types.Ipv6CidrBlockAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.Ipv6CidrBlockAssociation - if err := awsRestjson1_deserializeDocumentIpv6CidrBlockAssociation(&col, value); err != nil { + var col types.Ipv6CidrBlockAssociation + destAddr := &col + if err := awsRestjson1_deserializeDocumentIpv6CidrBlockAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22692,7 +22828,7 @@ func awsRestjson1_deserializeDocumentKeywordFilter(v **types.KeywordFilter, valu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -22704,7 +22840,7 @@ func awsRestjson1_deserializeDocumentKeywordFilter(v **types.KeywordFilter, valu return nil } -func awsRestjson1_deserializeDocumentKeywordFilterList(v *[]*types.KeywordFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentKeywordFilterList(v *[]types.KeywordFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22717,18 +22853,20 @@ func awsRestjson1_deserializeDocumentKeywordFilterList(v *[]*types.KeywordFilter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.KeywordFilter + var cv []types.KeywordFilter if *v == nil { - cv = []*types.KeywordFilter{} + cv = []types.KeywordFilter{} } else { cv = *v } for _, value := range shape { - var col *types.KeywordFilter - if err := awsRestjson1_deserializeDocumentKeywordFilter(&col, value); err != nil { + var col types.KeywordFilter + destAddr := &col + if err := awsRestjson1_deserializeDocumentKeywordFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22764,7 +22902,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -22773,7 +22911,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22813,7 +22951,7 @@ func awsRestjson1_deserializeDocumentLoadBalancerState(v **types.LoadBalancerSta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Reason": @@ -22822,7 +22960,7 @@ func awsRestjson1_deserializeDocumentLoadBalancerState(v **types.LoadBalancerSta if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } default: @@ -22862,7 +23000,7 @@ func awsRestjson1_deserializeDocumentMalware(v **types.Malware, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Path": @@ -22871,7 +23009,7 @@ func awsRestjson1_deserializeDocumentMalware(v **types.Malware, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "State": @@ -22901,7 +23039,7 @@ func awsRestjson1_deserializeDocumentMalware(v **types.Malware, value interface{ return nil } -func awsRestjson1_deserializeDocumentMalwareList(v *[]*types.Malware, value interface{}) error { +func awsRestjson1_deserializeDocumentMalwareList(v *[]types.Malware, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22914,18 +23052,20 @@ func awsRestjson1_deserializeDocumentMalwareList(v *[]*types.Malware, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Malware + var cv []types.Malware if *v == nil { - cv = []*types.Malware{} + cv = []types.Malware{} } else { cv = *v } for _, value := range shape { - var col *types.Malware - if err := awsRestjson1_deserializeDocumentMalware(&col, value); err != nil { + var col types.Malware + destAddr := &col + if err := awsRestjson1_deserializeDocumentMalware(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22970,7 +23110,7 @@ func awsRestjson1_deserializeDocumentMapFilter(v **types.MapFilter, value interf if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -22979,7 +23119,7 @@ func awsRestjson1_deserializeDocumentMapFilter(v **types.MapFilter, value interf if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -22991,7 +23131,7 @@ func awsRestjson1_deserializeDocumentMapFilter(v **types.MapFilter, value interf return nil } -func awsRestjson1_deserializeDocumentMapFilterList(v *[]*types.MapFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentMapFilterList(v *[]types.MapFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23004,18 +23144,20 @@ func awsRestjson1_deserializeDocumentMapFilterList(v *[]*types.MapFilter, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MapFilter + var cv []types.MapFilter if *v == nil { - cv = []*types.MapFilter{} + cv = []types.MapFilter{} } else { cv = *v } for _, value := range shape { - var col *types.MapFilter - if err := awsRestjson1_deserializeDocumentMapFilter(&col, value); err != nil { + var col types.MapFilter + destAddr := &col + if err := awsRestjson1_deserializeDocumentMapFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23051,7 +23193,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "Email": @@ -23060,7 +23202,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "InvitedAt": @@ -23073,7 +23215,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if err != nil { return err } - sv.InvitedAt = &t + sv.InvitedAt = ptr.Time(t) } case "MasterId": @@ -23082,7 +23224,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MasterId = &jtv + sv.MasterId = ptr.String(jtv) } case "MemberStatus": @@ -23091,7 +23233,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MemberStatus = &jtv + sv.MemberStatus = ptr.String(jtv) } case "UpdatedAt": @@ -23104,7 +23246,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) if err != nil { return err } - sv.UpdatedAt = &t + sv.UpdatedAt = ptr.Time(t) } default: @@ -23116,7 +23258,7 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) return nil } -func awsRestjson1_deserializeDocumentMemberList(v *[]*types.Member, value interface{}) error { +func awsRestjson1_deserializeDocumentMemberList(v *[]types.Member, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23129,18 +23271,20 @@ func awsRestjson1_deserializeDocumentMemberList(v *[]*types.Member, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Member + var cv []types.Member if *v == nil { - cv = []*types.Member{} + cv = []types.Member{} } else { cv = *v } for _, value := range shape { - var col *types.Member - if err := awsRestjson1_deserializeDocumentMember(&col, value); err != nil { + var col types.Member + destAddr := &col + if err := awsRestjson1_deserializeDocumentMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23176,7 +23320,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DestinationDomain = &jtv + sv.DestinationDomain = ptr.String(jtv) } case "DestinationIpV4": @@ -23185,7 +23329,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DestinationIpV4 = &jtv + sv.DestinationIpV4 = ptr.String(jtv) } case "DestinationIpV6": @@ -23194,7 +23338,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DestinationIpV6 = &jtv + sv.DestinationIpV6 = ptr.String(jtv) } case "DestinationPort": @@ -23207,7 +23351,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if err != nil { return err } - sv.DestinationPort = ptr.Int32(int32(i64)) + sv.DestinationPort = int32(i64) } case "Direction": @@ -23230,7 +23374,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Protocol = &jtv + sv.Protocol = ptr.String(jtv) } case "SourceDomain": @@ -23239,7 +23383,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SourceDomain = &jtv + sv.SourceDomain = ptr.String(jtv) } case "SourceIpV4": @@ -23248,7 +23392,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SourceIpV4 = &jtv + sv.SourceIpV4 = ptr.String(jtv) } case "SourceIpV6": @@ -23257,7 +23401,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SourceIpV6 = &jtv + sv.SourceIpV6 = ptr.String(jtv) } case "SourceMac": @@ -23266,7 +23410,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SourceMac = &jtv + sv.SourceMac = ptr.String(jtv) } case "SourcePort": @@ -23279,7 +23423,7 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{ if err != nil { return err } - sv.SourcePort = ptr.Int32(int32(i64)) + sv.SourcePort = int32(i64) } default: @@ -23324,7 +23468,7 @@ func awsRestjson1_deserializeDocumentNetworkHeader(v **types.NetworkHeader, valu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Protocol = &jtv + sv.Protocol = ptr.String(jtv) } case "Source": @@ -23369,7 +23513,7 @@ func awsRestjson1_deserializeDocumentNetworkPathComponent(v **types.NetworkPathC if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ComponentId = &jtv + sv.ComponentId = ptr.String(jtv) } case "ComponentType": @@ -23378,7 +23522,7 @@ func awsRestjson1_deserializeDocumentNetworkPathComponent(v **types.NetworkPathC if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ComponentType = &jtv + sv.ComponentType = ptr.String(jtv) } case "Egress": @@ -23441,7 +23585,7 @@ func awsRestjson1_deserializeDocumentNetworkPathComponentDetails(v **types.Netwo return nil } -func awsRestjson1_deserializeDocumentNetworkPathList(v *[]*types.NetworkPathComponent, value interface{}) error { +func awsRestjson1_deserializeDocumentNetworkPathList(v *[]types.NetworkPathComponent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23454,18 +23598,20 @@ func awsRestjson1_deserializeDocumentNetworkPathList(v *[]*types.NetworkPathComp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NetworkPathComponent + var cv []types.NetworkPathComponent if *v == nil { - cv = []*types.NetworkPathComponent{} + cv = []types.NetworkPathComponent{} } else { cv = *v } for _, value := range shape { - var col *types.NetworkPathComponent - if err := awsRestjson1_deserializeDocumentNetworkPathComponent(&col, value); err != nil { + var col types.NetworkPathComponent + destAddr := &col + if err := awsRestjson1_deserializeDocumentNetworkPathComponent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23473,7 +23619,7 @@ func awsRestjson1_deserializeDocumentNetworkPathList(v *[]*types.NetworkPathComp return nil } -func awsRestjson1_deserializeDocumentNonEmptyStringList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentNonEmptyStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23486,21 +23632,21 @@ func awsRestjson1_deserializeDocumentNonEmptyStringList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -23537,7 +23683,7 @@ func awsRestjson1_deserializeDocumentNote(v **types.Note, value interface{}) err if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } case "UpdatedAt": @@ -23546,7 +23692,7 @@ func awsRestjson1_deserializeDocumentNote(v **types.Note, value interface{}) err if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.UpdatedAt = &jtv + sv.UpdatedAt = ptr.String(jtv) } case "UpdatedBy": @@ -23555,7 +23701,7 @@ func awsRestjson1_deserializeDocumentNote(v **types.Note, value interface{}) err if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.UpdatedBy = &jtv + sv.UpdatedBy = ptr.String(jtv) } default: @@ -23599,7 +23745,7 @@ func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value if err != nil { return err } - sv.Eq = &f64 + sv.Eq = f64 } case "Gte": @@ -23612,7 +23758,7 @@ func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value if err != nil { return err } - sv.Gte = &f64 + sv.Gte = f64 } case "Lte": @@ -23625,7 +23771,7 @@ func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value if err != nil { return err } - sv.Lte = &f64 + sv.Lte = f64 } default: @@ -23637,7 +23783,7 @@ func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value return nil } -func awsRestjson1_deserializeDocumentNumberFilterList(v *[]*types.NumberFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentNumberFilterList(v *[]types.NumberFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23650,18 +23796,20 @@ func awsRestjson1_deserializeDocumentNumberFilterList(v *[]*types.NumberFilter, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NumberFilter + var cv []types.NumberFilter if *v == nil { - cv = []*types.NumberFilter{} + cv = []types.NumberFilter{} } else { cv = *v } for _, value := range shape { - var col *types.NumberFilter - if err := awsRestjson1_deserializeDocumentNumberFilter(&col, value); err != nil { + var col types.NumberFilter + destAddr := &col + if err := awsRestjson1_deserializeDocumentNumberFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23701,7 +23849,7 @@ func awsRestjson1_deserializeDocumentPatchSummary(v **types.PatchSummary, value if err != nil { return err } - sv.FailedCount = ptr.Int32(int32(i64)) + sv.FailedCount = int32(i64) } case "Id": @@ -23710,7 +23858,7 @@ func awsRestjson1_deserializeDocumentPatchSummary(v **types.PatchSummary, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "InstalledCount": @@ -23723,7 +23871,7 @@ func awsRestjson1_deserializeDocumentPatchSummary(v **types.PatchSummary, value if err != nil { return err } - sv.InstalledCount = ptr.Int32(int32(i64)) + sv.InstalledCount = int32(i64) } case "InstalledOtherCount": @@ -23736,7 +23884,7 @@ func awsRestjson1_deserializeDocumentPatchSummary(v **types.PatchSummary, value if err != nil { return err } - sv.InstalledOtherCount = ptr.Int32(int32(i64)) + sv.InstalledOtherCount = int32(i64) } case "InstalledPendingReboot": @@ -23749,7 +23897,7 @@ func awsRestjson1_deserializeDocumentPatchSummary(v **types.PatchSummary, value if err != nil { return err } - sv.InstalledPendingReboot = ptr.Int32(int32(i64)) + sv.InstalledPendingReboot = int32(i64) } case "InstalledRejectedCount": @@ -23762,7 +23910,7 @@ func awsRestjson1_deserializeDocumentPatchSummary(v **types.PatchSummary, value if err != nil { return err } - sv.InstalledRejectedCount = ptr.Int32(int32(i64)) + sv.InstalledRejectedCount = int32(i64) } case "MissingCount": @@ -23775,7 +23923,7 @@ func awsRestjson1_deserializeDocumentPatchSummary(v **types.PatchSummary, value if err != nil { return err } - sv.MissingCount = ptr.Int32(int32(i64)) + sv.MissingCount = int32(i64) } case "Operation": @@ -23784,7 +23932,7 @@ func awsRestjson1_deserializeDocumentPatchSummary(v **types.PatchSummary, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Operation = &jtv + sv.Operation = ptr.String(jtv) } case "OperationEndTime": @@ -23793,7 +23941,7 @@ func awsRestjson1_deserializeDocumentPatchSummary(v **types.PatchSummary, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.OperationEndTime = &jtv + sv.OperationEndTime = ptr.String(jtv) } case "OperationStartTime": @@ -23802,7 +23950,7 @@ func awsRestjson1_deserializeDocumentPatchSummary(v **types.PatchSummary, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.OperationStartTime = &jtv + sv.OperationStartTime = ptr.String(jtv) } case "RebootOption": @@ -23811,7 +23959,7 @@ func awsRestjson1_deserializeDocumentPatchSummary(v **types.PatchSummary, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RebootOption = &jtv + sv.RebootOption = ptr.String(jtv) } default: @@ -23855,7 +24003,7 @@ func awsRestjson1_deserializeDocumentPortRange(v **types.PortRange, value interf if err != nil { return err } - sv.Begin = ptr.Int32(int32(i64)) + sv.Begin = int32(i64) } case "End": @@ -23868,7 +24016,7 @@ func awsRestjson1_deserializeDocumentPortRange(v **types.PortRange, value interf if err != nil { return err } - sv.End = ptr.Int32(int32(i64)) + sv.End = int32(i64) } default: @@ -23880,7 +24028,7 @@ func awsRestjson1_deserializeDocumentPortRange(v **types.PortRange, value interf return nil } -func awsRestjson1_deserializeDocumentPortRangeList(v *[]*types.PortRange, value interface{}) error { +func awsRestjson1_deserializeDocumentPortRangeList(v *[]types.PortRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23893,18 +24041,20 @@ func awsRestjson1_deserializeDocumentPortRangeList(v *[]*types.PortRange, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PortRange + var cv []types.PortRange if *v == nil { - cv = []*types.PortRange{} + cv = []types.PortRange{} } else { cv = *v } for _, value := range shape { - var col *types.PortRange - if err := awsRestjson1_deserializeDocumentPortRange(&col, value); err != nil { + var col types.PortRange + destAddr := &col + if err := awsRestjson1_deserializeDocumentPortRange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23940,7 +24090,7 @@ func awsRestjson1_deserializeDocumentProcessDetails(v **types.ProcessDetails, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LaunchedAt = &jtv + sv.LaunchedAt = ptr.String(jtv) } case "Name": @@ -23949,7 +24099,7 @@ func awsRestjson1_deserializeDocumentProcessDetails(v **types.ProcessDetails, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ParentPid": @@ -23962,7 +24112,7 @@ func awsRestjson1_deserializeDocumentProcessDetails(v **types.ProcessDetails, va if err != nil { return err } - sv.ParentPid = ptr.Int32(int32(i64)) + sv.ParentPid = int32(i64) } case "Path": @@ -23971,7 +24121,7 @@ func awsRestjson1_deserializeDocumentProcessDetails(v **types.ProcessDetails, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "Pid": @@ -23984,7 +24134,7 @@ func awsRestjson1_deserializeDocumentProcessDetails(v **types.ProcessDetails, va if err != nil { return err } - sv.Pid = ptr.Int32(int32(i64)) + sv.Pid = int32(i64) } case "TerminatedAt": @@ -23993,7 +24143,7 @@ func awsRestjson1_deserializeDocumentProcessDetails(v **types.ProcessDetails, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.TerminatedAt = &jtv + sv.TerminatedAt = ptr.String(jtv) } default: @@ -24033,7 +24183,7 @@ func awsRestjson1_deserializeDocumentProduct(v **types.Product, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ActivationUrl = &jtv + sv.ActivationUrl = ptr.String(jtv) } case "Categories": @@ -24047,7 +24197,7 @@ func awsRestjson1_deserializeDocumentProduct(v **types.Product, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.CompanyName = &jtv + sv.CompanyName = ptr.String(jtv) } case "Description": @@ -24056,7 +24206,7 @@ func awsRestjson1_deserializeDocumentProduct(v **types.Product, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "IntegrationTypes": @@ -24070,7 +24220,7 @@ func awsRestjson1_deserializeDocumentProduct(v **types.Product, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.MarketplaceUrl = &jtv + sv.MarketplaceUrl = ptr.String(jtv) } case "ProductArn": @@ -24079,7 +24229,7 @@ func awsRestjson1_deserializeDocumentProduct(v **types.Product, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ProductArn = &jtv + sv.ProductArn = ptr.String(jtv) } case "ProductName": @@ -24088,7 +24238,7 @@ func awsRestjson1_deserializeDocumentProduct(v **types.Product, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ProductName = &jtv + sv.ProductName = ptr.String(jtv) } case "ProductSubscriptionResourcePolicy": @@ -24097,7 +24247,7 @@ func awsRestjson1_deserializeDocumentProduct(v **types.Product, value interface{ if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ProductSubscriptionResourcePolicy = &jtv + sv.ProductSubscriptionResourcePolicy = ptr.String(jtv) } default: @@ -24109,7 +24259,7 @@ func awsRestjson1_deserializeDocumentProduct(v **types.Product, value interface{ return nil } -func awsRestjson1_deserializeDocumentProductsList(v *[]*types.Product, value interface{}) error { +func awsRestjson1_deserializeDocumentProductsList(v *[]types.Product, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24122,18 +24272,20 @@ func awsRestjson1_deserializeDocumentProductsList(v *[]*types.Product, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Product + var cv []types.Product if *v == nil { - cv = []*types.Product{} + cv = []types.Product{} } else { cv = *v } for _, value := range shape { - var col *types.Product - if err := awsRestjson1_deserializeDocumentProduct(&col, value); err != nil { + var col types.Product + destAddr := &col + if err := awsRestjson1_deserializeDocumentProduct(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24141,7 +24293,7 @@ func awsRestjson1_deserializeDocumentProductsList(v *[]*types.Product, value int return nil } -func awsRestjson1_deserializeDocumentProductSubscriptionArnList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentProductSubscriptionArnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24154,21 +24306,21 @@ func awsRestjson1_deserializeDocumentProductSubscriptionArnList(v *[]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -24205,7 +24357,7 @@ func awsRestjson1_deserializeDocumentRecommendation(v **types.Recommendation, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } case "Url": @@ -24214,7 +24366,7 @@ func awsRestjson1_deserializeDocumentRecommendation(v **types.Recommendation, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -24254,7 +24406,7 @@ func awsRestjson1_deserializeDocumentRelatedFinding(v **types.RelatedFinding, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ProductArn": @@ -24263,7 +24415,7 @@ func awsRestjson1_deserializeDocumentRelatedFinding(v **types.RelatedFinding, va if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ProductArn = &jtv + sv.ProductArn = ptr.String(jtv) } default: @@ -24275,7 +24427,7 @@ func awsRestjson1_deserializeDocumentRelatedFinding(v **types.RelatedFinding, va return nil } -func awsRestjson1_deserializeDocumentRelatedFindingList(v *[]*types.RelatedFinding, value interface{}) error { +func awsRestjson1_deserializeDocumentRelatedFindingList(v *[]types.RelatedFinding, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24288,18 +24440,20 @@ func awsRestjson1_deserializeDocumentRelatedFindingList(v *[]*types.RelatedFindi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RelatedFinding + var cv []types.RelatedFinding if *v == nil { - cv = []*types.RelatedFinding{} + cv = []types.RelatedFinding{} } else { cv = *v } for _, value := range shape { - var col *types.RelatedFinding - if err := awsRestjson1_deserializeDocumentRelatedFinding(&col, value); err != nil { + var col types.RelatedFinding + destAddr := &col + if err := awsRestjson1_deserializeDocumentRelatedFinding(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24307,7 +24461,7 @@ func awsRestjson1_deserializeDocumentRelatedFindingList(v *[]*types.RelatedFindi return nil } -func awsRestjson1_deserializeDocumentRelatedRequirementsList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentRelatedRequirementsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24320,21 +24474,21 @@ func awsRestjson1_deserializeDocumentRelatedRequirementsList(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -24412,7 +24566,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Partition": @@ -24430,7 +24584,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "ResourceRole": @@ -24439,7 +24593,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ResourceRole = &jtv + sv.ResourceRole = ptr.String(jtv) } case "Tags": @@ -24453,7 +24607,7 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -24493,7 +24647,7 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -24502,7 +24656,7 @@ func awsRestjson1_deserializeDocumentResourceConflictException(v **types.Resourc if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24745,7 +24899,7 @@ func awsRestjson1_deserializeDocumentResourceDetails(v **types.ResourceDetails, return nil } -func awsRestjson1_deserializeDocumentResourceList(v *[]*types.Resource, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceList(v *[]types.Resource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24758,18 +24912,20 @@ func awsRestjson1_deserializeDocumentResourceList(v *[]*types.Resource, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Resource + var cv []types.Resource if *v == nil { - cv = []*types.Resource{} + cv = []types.Resource{} } else { cv = *v } for _, value := range shape { - var col *types.Resource - if err := awsRestjson1_deserializeDocumentResource(&col, value); err != nil { + var col types.Resource + destAddr := &col + if err := awsRestjson1_deserializeDocumentResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24805,7 +24961,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -24814,7 +24970,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24854,7 +25010,7 @@ func awsRestjson1_deserializeDocumentResult(v **types.Result, value interface{}) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "ProcessingResult": @@ -24863,7 +25019,7 @@ func awsRestjson1_deserializeDocumentResult(v **types.Result, value interface{}) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ProcessingResult = &jtv + sv.ProcessingResult = ptr.String(jtv) } default: @@ -24875,7 +25031,7 @@ func awsRestjson1_deserializeDocumentResult(v **types.Result, value interface{}) return nil } -func awsRestjson1_deserializeDocumentResultList(v *[]*types.Result, value interface{}) error { +func awsRestjson1_deserializeDocumentResultList(v *[]types.Result, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24888,18 +25044,20 @@ func awsRestjson1_deserializeDocumentResultList(v *[]*types.Result, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Result + var cv []types.Result if *v == nil { - cv = []*types.Result{} + cv = []types.Result{} } else { cv = *v } for _, value := range shape { - var col *types.Result - if err := awsRestjson1_deserializeDocumentResult(&col, value); err != nil { + var col types.Result + destAddr := &col + if err := awsRestjson1_deserializeDocumentResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24907,7 +25065,7 @@ func awsRestjson1_deserializeDocumentResultList(v *[]*types.Result, value interf return nil } -func awsRestjson1_deserializeDocumentSecurityGroups(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityGroups(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24920,21 +25078,21 @@ func awsRestjson1_deserializeDocumentSecurityGroups(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -24984,7 +25142,7 @@ func awsRestjson1_deserializeDocumentSeverity(v **types.Severity, value interfac if err != nil { return err } - sv.Normalized = ptr.Int32(int32(i64)) + sv.Normalized = int32(i64) } case "Original": @@ -24993,7 +25151,7 @@ func awsRestjson1_deserializeDocumentSeverity(v **types.Severity, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Original = &jtv + sv.Original = ptr.String(jtv) } case "Product": @@ -25006,7 +25164,7 @@ func awsRestjson1_deserializeDocumentSeverity(v **types.Severity, value interfac if err != nil { return err } - sv.Product = &f64 + sv.Product = f64 } default: @@ -25046,7 +25204,7 @@ func awsRestjson1_deserializeDocumentSoftwarePackage(v **types.SoftwarePackage, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Architecture = &jtv + sv.Architecture = ptr.String(jtv) } case "Epoch": @@ -25055,7 +25213,7 @@ func awsRestjson1_deserializeDocumentSoftwarePackage(v **types.SoftwarePackage, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Epoch = &jtv + sv.Epoch = ptr.String(jtv) } case "Name": @@ -25064,7 +25222,7 @@ func awsRestjson1_deserializeDocumentSoftwarePackage(v **types.SoftwarePackage, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Release": @@ -25073,7 +25231,7 @@ func awsRestjson1_deserializeDocumentSoftwarePackage(v **types.SoftwarePackage, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Release = &jtv + sv.Release = ptr.String(jtv) } case "Version": @@ -25082,7 +25240,7 @@ func awsRestjson1_deserializeDocumentSoftwarePackage(v **types.SoftwarePackage, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -25094,7 +25252,7 @@ func awsRestjson1_deserializeDocumentSoftwarePackage(v **types.SoftwarePackage, return nil } -func awsRestjson1_deserializeDocumentSoftwarePackageList(v *[]*types.SoftwarePackage, value interface{}) error { +func awsRestjson1_deserializeDocumentSoftwarePackageList(v *[]types.SoftwarePackage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25107,18 +25265,20 @@ func awsRestjson1_deserializeDocumentSoftwarePackageList(v *[]*types.SoftwarePac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SoftwarePackage + var cv []types.SoftwarePackage if *v == nil { - cv = []*types.SoftwarePackage{} + cv = []types.SoftwarePackage{} } else { cv = *v } for _, value := range shape { - var col *types.SoftwarePackage - if err := awsRestjson1_deserializeDocumentSoftwarePackage(&col, value); err != nil { + var col types.SoftwarePackage + destAddr := &col + if err := awsRestjson1_deserializeDocumentSoftwarePackage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25154,7 +25314,7 @@ func awsRestjson1_deserializeDocumentStandard(v **types.Standard, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EnabledByDefault": @@ -25163,7 +25323,7 @@ func awsRestjson1_deserializeDocumentStandard(v **types.Standard, value interfac if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnabledByDefault = &jtv + sv.EnabledByDefault = jtv } case "Name": @@ -25172,7 +25332,7 @@ func awsRestjson1_deserializeDocumentStandard(v **types.Standard, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "StandardsArn": @@ -25181,7 +25341,7 @@ func awsRestjson1_deserializeDocumentStandard(v **types.Standard, value interfac if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.StandardsArn = &jtv + sv.StandardsArn = ptr.String(jtv) } default: @@ -25193,7 +25353,7 @@ func awsRestjson1_deserializeDocumentStandard(v **types.Standard, value interfac return nil } -func awsRestjson1_deserializeDocumentStandards(v *[]*types.Standard, value interface{}) error { +func awsRestjson1_deserializeDocumentStandards(v *[]types.Standard, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25206,18 +25366,20 @@ func awsRestjson1_deserializeDocumentStandards(v *[]*types.Standard, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Standard + var cv []types.Standard if *v == nil { - cv = []*types.Standard{} + cv = []types.Standard{} } else { cv = *v } for _, value := range shape { - var col *types.Standard - if err := awsRestjson1_deserializeDocumentStandard(&col, value); err != nil { + var col types.Standard + destAddr := &col + if err := awsRestjson1_deserializeDocumentStandard(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25253,7 +25415,7 @@ func awsRestjson1_deserializeDocumentStandardsControl(v **types.StandardsControl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ControlId = &jtv + sv.ControlId = ptr.String(jtv) } case "ControlStatus": @@ -25275,7 +25437,7 @@ func awsRestjson1_deserializeDocumentStandardsControl(v **types.StandardsControl if err != nil { return err } - sv.ControlStatusUpdatedAt = &t + sv.ControlStatusUpdatedAt = ptr.Time(t) } case "Description": @@ -25284,7 +25446,7 @@ func awsRestjson1_deserializeDocumentStandardsControl(v **types.StandardsControl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DisabledReason": @@ -25293,7 +25455,7 @@ func awsRestjson1_deserializeDocumentStandardsControl(v **types.StandardsControl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.DisabledReason = &jtv + sv.DisabledReason = ptr.String(jtv) } case "RelatedRequirements": @@ -25307,7 +25469,7 @@ func awsRestjson1_deserializeDocumentStandardsControl(v **types.StandardsControl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RemediationUrl = &jtv + sv.RemediationUrl = ptr.String(jtv) } case "SeverityRating": @@ -25325,7 +25487,7 @@ func awsRestjson1_deserializeDocumentStandardsControl(v **types.StandardsControl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.StandardsControlArn = &jtv + sv.StandardsControlArn = ptr.String(jtv) } case "Title": @@ -25334,7 +25496,7 @@ func awsRestjson1_deserializeDocumentStandardsControl(v **types.StandardsControl if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } default: @@ -25346,7 +25508,7 @@ func awsRestjson1_deserializeDocumentStandardsControl(v **types.StandardsControl return nil } -func awsRestjson1_deserializeDocumentStandardsControls(v *[]*types.StandardsControl, value interface{}) error { +func awsRestjson1_deserializeDocumentStandardsControls(v *[]types.StandardsControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25359,18 +25521,20 @@ func awsRestjson1_deserializeDocumentStandardsControls(v *[]*types.StandardsCont return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StandardsControl + var cv []types.StandardsControl if *v == nil { - cv = []*types.StandardsControl{} + cv = []types.StandardsControl{} } else { cv = *v } for _, value := range shape { - var col *types.StandardsControl - if err := awsRestjson1_deserializeDocumentStandardsControl(&col, value); err != nil { + var col types.StandardsControl + destAddr := &col + if err := awsRestjson1_deserializeDocumentStandardsControl(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25378,7 +25542,7 @@ func awsRestjson1_deserializeDocumentStandardsControls(v *[]*types.StandardsCont return nil } -func awsRestjson1_deserializeDocumentStandardsInputParameterMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStandardsInputParameterMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25391,21 +25555,21 @@ func awsRestjson1_deserializeDocumentStandardsInputParameterMap(v *map[string]*s return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -25442,7 +25606,7 @@ func awsRestjson1_deserializeDocumentStandardsSubscription(v **types.StandardsSu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.StandardsArn = &jtv + sv.StandardsArn = ptr.String(jtv) } case "StandardsInput": @@ -25465,7 +25629,7 @@ func awsRestjson1_deserializeDocumentStandardsSubscription(v **types.StandardsSu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.StandardsSubscriptionArn = &jtv + sv.StandardsSubscriptionArn = ptr.String(jtv) } default: @@ -25477,7 +25641,7 @@ func awsRestjson1_deserializeDocumentStandardsSubscription(v **types.StandardsSu return nil } -func awsRestjson1_deserializeDocumentStandardsSubscriptions(v *[]*types.StandardsSubscription, value interface{}) error { +func awsRestjson1_deserializeDocumentStandardsSubscriptions(v *[]types.StandardsSubscription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25490,18 +25654,20 @@ func awsRestjson1_deserializeDocumentStandardsSubscriptions(v *[]*types.Standard return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StandardsSubscription + var cv []types.StandardsSubscription if *v == nil { - cv = []*types.StandardsSubscription{} + cv = []types.StandardsSubscription{} } else { cv = *v } for _, value := range shape { - var col *types.StandardsSubscription - if err := awsRestjson1_deserializeDocumentStandardsSubscription(&col, value); err != nil { + var col types.StandardsSubscription + destAddr := &col + if err := awsRestjson1_deserializeDocumentStandardsSubscription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25537,7 +25703,7 @@ func awsRestjson1_deserializeDocumentStatusReason(v **types.StatusReason, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ReasonCode": @@ -25546,7 +25712,7 @@ func awsRestjson1_deserializeDocumentStatusReason(v **types.StatusReason, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ReasonCode = &jtv + sv.ReasonCode = ptr.String(jtv) } default: @@ -25558,7 +25724,7 @@ func awsRestjson1_deserializeDocumentStatusReason(v **types.StatusReason, value return nil } -func awsRestjson1_deserializeDocumentStatusReasonsList(v *[]*types.StatusReason, value interface{}) error { +func awsRestjson1_deserializeDocumentStatusReasonsList(v *[]types.StatusReason, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25571,18 +25737,20 @@ func awsRestjson1_deserializeDocumentStatusReasonsList(v *[]*types.StatusReason, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StatusReason + var cv []types.StatusReason if *v == nil { - cv = []*types.StatusReason{} + cv = []types.StatusReason{} } else { cv = *v } for _, value := range shape { - var col *types.StatusReason - if err := awsRestjson1_deserializeDocumentStatusReason(&col, value); err != nil { + var col types.StatusReason + destAddr := &col + if err := awsRestjson1_deserializeDocumentStatusReason(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25627,7 +25795,7 @@ func awsRestjson1_deserializeDocumentStringFilter(v **types.StringFilter, value if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -25639,7 +25807,7 @@ func awsRestjson1_deserializeDocumentStringFilter(v **types.StringFilter, value return nil } -func awsRestjson1_deserializeDocumentStringFilterList(v *[]*types.StringFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentStringFilterList(v *[]types.StringFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25652,18 +25820,20 @@ func awsRestjson1_deserializeDocumentStringFilterList(v *[]*types.StringFilter, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StringFilter + var cv []types.StringFilter if *v == nil { - cv = []*types.StringFilter{} + cv = []types.StringFilter{} } else { cv = *v } for _, value := range shape { - var col *types.StringFilter - if err := awsRestjson1_deserializeDocumentStringFilter(&col, value); err != nil { + var col types.StringFilter + destAddr := &col + if err := awsRestjson1_deserializeDocumentStringFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25671,7 +25841,7 @@ func awsRestjson1_deserializeDocumentStringFilterList(v *[]*types.StringFilter, return nil } -func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25684,21 +25854,21 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -25707,7 +25877,7 @@ func awsRestjson1_deserializeDocumentStringList(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25720,21 +25890,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -25780,7 +25950,7 @@ func awsRestjson1_deserializeDocumentThreatIntelIndicator(v **types.ThreatIntelI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.LastObservedAt = &jtv + sv.LastObservedAt = ptr.String(jtv) } case "Source": @@ -25789,7 +25959,7 @@ func awsRestjson1_deserializeDocumentThreatIntelIndicator(v **types.ThreatIntelI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Source = &jtv + sv.Source = ptr.String(jtv) } case "SourceUrl": @@ -25798,7 +25968,7 @@ func awsRestjson1_deserializeDocumentThreatIntelIndicator(v **types.ThreatIntelI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.SourceUrl = &jtv + sv.SourceUrl = ptr.String(jtv) } case "Type": @@ -25816,7 +25986,7 @@ func awsRestjson1_deserializeDocumentThreatIntelIndicator(v **types.ThreatIntelI if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -25828,7 +25998,7 @@ func awsRestjson1_deserializeDocumentThreatIntelIndicator(v **types.ThreatIntelI return nil } -func awsRestjson1_deserializeDocumentThreatIntelIndicatorList(v *[]*types.ThreatIntelIndicator, value interface{}) error { +func awsRestjson1_deserializeDocumentThreatIntelIndicatorList(v *[]types.ThreatIntelIndicator, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25841,18 +26011,20 @@ func awsRestjson1_deserializeDocumentThreatIntelIndicatorList(v *[]*types.Threat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ThreatIntelIndicator + var cv []types.ThreatIntelIndicator if *v == nil { - cv = []*types.ThreatIntelIndicator{} + cv = []types.ThreatIntelIndicator{} } else { cv = *v } for _, value := range shape { - var col *types.ThreatIntelIndicator - if err := awsRestjson1_deserializeDocumentThreatIntelIndicator(&col, value); err != nil { + var col types.ThreatIntelIndicator + destAddr := &col + if err := awsRestjson1_deserializeDocumentThreatIntelIndicator(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -25860,7 +26032,7 @@ func awsRestjson1_deserializeDocumentThreatIntelIndicatorList(v *[]*types.Threat return nil } -func awsRestjson1_deserializeDocumentTypeList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTypeList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25873,21 +26045,21 @@ func awsRestjson1_deserializeDocumentTypeList(v *[]*string, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -25929,7 +26101,7 @@ func awsRestjson1_deserializeDocumentVulnerability(v **types.Vulnerability, valu if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ReferenceUrls": @@ -25961,7 +26133,7 @@ func awsRestjson1_deserializeDocumentVulnerability(v **types.Vulnerability, valu return nil } -func awsRestjson1_deserializeDocumentVulnerabilityList(v *[]*types.Vulnerability, value interface{}) error { +func awsRestjson1_deserializeDocumentVulnerabilityList(v *[]types.Vulnerability, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25974,18 +26146,20 @@ func awsRestjson1_deserializeDocumentVulnerabilityList(v *[]*types.Vulnerability return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Vulnerability + var cv []types.Vulnerability if *v == nil { - cv = []*types.Vulnerability{} + cv = []types.Vulnerability{} } else { cv = *v } for _, value := range shape { - var col *types.Vulnerability - if err := awsRestjson1_deserializeDocumentVulnerability(&col, value); err != nil { + var col types.Vulnerability + destAddr := &col + if err := awsRestjson1_deserializeDocumentVulnerability(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26021,7 +26195,7 @@ func awsRestjson1_deserializeDocumentVulnerabilityVendor(v **types.Vulnerability if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Url": @@ -26030,7 +26204,7 @@ func awsRestjson1_deserializeDocumentVulnerabilityVendor(v **types.Vulnerability if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } case "VendorCreatedAt": @@ -26039,7 +26213,7 @@ func awsRestjson1_deserializeDocumentVulnerabilityVendor(v **types.Vulnerability if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VendorCreatedAt = &jtv + sv.VendorCreatedAt = ptr.String(jtv) } case "VendorSeverity": @@ -26048,7 +26222,7 @@ func awsRestjson1_deserializeDocumentVulnerabilityVendor(v **types.Vulnerability if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VendorSeverity = &jtv + sv.VendorSeverity = ptr.String(jtv) } case "VendorUpdatedAt": @@ -26057,7 +26231,7 @@ func awsRestjson1_deserializeDocumentVulnerabilityVendor(v **types.Vulnerability if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VendorUpdatedAt = &jtv + sv.VendorUpdatedAt = ptr.String(jtv) } default: @@ -26097,7 +26271,7 @@ func awsRestjson1_deserializeDocumentWafAction(v **types.WafAction, value interf if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -26137,7 +26311,7 @@ func awsRestjson1_deserializeDocumentWafExcludedRule(v **types.WafExcludedRule, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } default: @@ -26149,7 +26323,7 @@ func awsRestjson1_deserializeDocumentWafExcludedRule(v **types.WafExcludedRule, return nil } -func awsRestjson1_deserializeDocumentWafExcludedRuleList(v *[]*types.WafExcludedRule, value interface{}) error { +func awsRestjson1_deserializeDocumentWafExcludedRuleList(v *[]types.WafExcludedRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26162,18 +26336,20 @@ func awsRestjson1_deserializeDocumentWafExcludedRuleList(v *[]*types.WafExcluded return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WafExcludedRule + var cv []types.WafExcludedRule if *v == nil { - cv = []*types.WafExcludedRule{} + cv = []types.WafExcludedRule{} } else { cv = *v } for _, value := range shape { - var col *types.WafExcludedRule - if err := awsRestjson1_deserializeDocumentWafExcludedRule(&col, value); err != nil { + var col types.WafExcludedRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentWafExcludedRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26209,7 +26385,7 @@ func awsRestjson1_deserializeDocumentWafOverrideAction(v **types.WafOverrideActi if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: diff --git a/service/securityhub/go.mod b/service/securityhub/go.mod index 13063c68d6c..19a634a77a0 100644 --- a/service/securityhub/go.mod +++ b/service/securityhub/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/securityhub go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/securityhub/serializers.go b/service/securityhub/serializers.go index d109256c26d..0186a1d9fee 100644 --- a/service/securityhub/serializers.go +++ b/service/securityhub/serializers.go @@ -382,14 +382,14 @@ func awsRestjson1_serializeOpDocumentBatchUpdateFindingsInput(v *BatchUpdateFind object := value.Object() defer object.Close() - if v.Confidence != nil { + if v.Confidence != 0 { ok := object.Key("Confidence") - ok.Integer(*v.Confidence) + ok.Integer(v.Confidence) } - if v.Criticality != nil { + if v.Criticality != 0 { ok := object.Key("Criticality") - ok.Integer(*v.Criticality) + ok.Integer(v.Criticality) } if v.FindingIdentifiers != nil { @@ -818,13 +818,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteActionTargetInput(v *DeleteAction return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ActionTargetArn == nil { + if v.ActionTargetArn == nil || len(*v.ActionTargetArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ActionTargetArn must not be empty")} } if v.ActionTargetArn != nil { - if len(*v.ActionTargetArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ActionTargetArn must not be empty")} - } if err := encoder.SetURI("ActionTargetArn").String(*v.ActionTargetArn); err != nil { return err } @@ -884,13 +881,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteInsightInput(v *DeleteInsightInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InsightArn == nil { + if v.InsightArn == nil || len(*v.InsightArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InsightArn must not be empty")} } if v.InsightArn != nil { - if len(*v.InsightArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InsightArn must not be empty")} - } if err := encoder.SetURI("InsightArn").String(*v.InsightArn); err != nil { return err } @@ -1121,9 +1115,9 @@ func awsRestjson1_serializeOpDocumentDescribeActionTargetsInput(v *DescribeActio } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1243,8 +1237,8 @@ func awsRestjson1_serializeOpHttpBindingsDescribeProductsInput(v *DescribeProduc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("MaxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("MaxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1305,8 +1299,8 @@ func awsRestjson1_serializeOpHttpBindingsDescribeStandardsInput(v *DescribeStand return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("MaxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("MaxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -1367,21 +1361,18 @@ func awsRestjson1_serializeOpHttpBindingsDescribeStandardsControlsInput(v *Descr return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("MaxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("MaxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("NextToken").String(*v.NextToken) } - if v.StandardsSubscriptionArn == nil { + if v.StandardsSubscriptionArn == nil || len(*v.StandardsSubscriptionArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member StandardsSubscriptionArn must not be empty")} } if v.StandardsSubscriptionArn != nil { - if len(*v.StandardsSubscriptionArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member StandardsSubscriptionArn must not be empty")} - } if err := encoder.SetURI("StandardsSubscriptionArn").String(*v.StandardsSubscriptionArn); err != nil { return err } @@ -1441,13 +1432,10 @@ func awsRestjson1_serializeOpHttpBindingsDisableImportFindingsForProductInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProductSubscriptionArn == nil { + if v.ProductSubscriptionArn == nil || len(*v.ProductSubscriptionArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ProductSubscriptionArn must not be empty")} } if v.ProductSubscriptionArn != nil { - if len(*v.ProductSubscriptionArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ProductSubscriptionArn must not be empty")} - } if err := encoder.SetURI("ProductSubscriptionArn").String(*v.ProductSubscriptionArn); err != nil { return err } @@ -1769,9 +1757,9 @@ func awsRestjson1_serializeOpDocumentEnableSecurityHubInput(v *EnableSecurityHub object := value.Object() defer object.Close() - if v.EnableDefaultStandards != nil { + if v.EnableDefaultStandards { ok := object.Key("EnableDefaultStandards") - ok.Boolean(*v.EnableDefaultStandards) + ok.Boolean(v.EnableDefaultStandards) } if v.Tags != nil { @@ -1849,9 +1837,9 @@ func awsRestjson1_serializeOpDocumentGetEnabledStandardsInput(v *GetEnabledStand object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1941,9 +1929,9 @@ func awsRestjson1_serializeOpDocumentGetFindingsInput(v *GetFindingsInput, value } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2012,13 +2000,10 @@ func awsRestjson1_serializeOpHttpBindingsGetInsightResultsInput(v *GetInsightRes return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InsightArn == nil { + if v.InsightArn == nil || len(*v.InsightArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InsightArn must not be empty")} } if v.InsightArn != nil { - if len(*v.InsightArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InsightArn must not be empty")} - } if err := encoder.SetURI("InsightArn").String(*v.InsightArn); err != nil { return err } @@ -2099,9 +2084,9 @@ func awsRestjson1_serializeOpDocumentGetInsightsInput(v *GetInsightsInput, value } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -2413,8 +2398,8 @@ func awsRestjson1_serializeOpHttpBindingsListEnabledProductsForImportInput(v *Li return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("MaxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("MaxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2475,8 +2460,8 @@ func awsRestjson1_serializeOpHttpBindingsListInvitationsInput(v *ListInvitations return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("MaxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("MaxResults").Integer(v.MaxResults) } if v.NextToken != nil { @@ -2537,16 +2522,16 @@ func awsRestjson1_serializeOpHttpBindingsListMembersInput(v *ListMembersInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("MaxResults").Integer(*v.MaxResults) + if v.MaxResults != 0 { + encoder.SetQuery("MaxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("NextToken").String(*v.NextToken) } - if v.OnlyAssociated != nil { - encoder.SetQuery("OnlyAssociated").Boolean(*v.OnlyAssociated) + if v.OnlyAssociated { + encoder.SetQuery("OnlyAssociated").Boolean(v.OnlyAssociated) } return nil @@ -2603,13 +2588,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2680,13 +2662,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2760,13 +2739,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2774,10 +2750,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -2846,13 +2819,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateActionTargetInput(v *UpdateAction return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ActionTargetArn == nil { + if v.ActionTargetArn == nil || len(*v.ActionTargetArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ActionTargetArn must not be empty")} } if v.ActionTargetArn != nil { - if len(*v.ActionTargetArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ActionTargetArn must not be empty")} - } if err := encoder.SetURI("ActionTargetArn").String(*v.ActionTargetArn); err != nil { return err } @@ -3027,13 +2997,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateInsightInput(v *UpdateInsightInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.InsightArn == nil { + if v.InsightArn == nil || len(*v.InsightArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InsightArn must not be empty")} } if v.InsightArn != nil { - if len(*v.InsightArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member InsightArn must not be empty")} - } if err := encoder.SetURI("InsightArn").String(*v.InsightArn); err != nil { return err } @@ -3131,9 +3098,9 @@ func awsRestjson1_serializeOpDocumentUpdateSecurityHubConfigurationInput(v *Upda object := value.Object() defer object.Close() - if v.AutoEnableControls != nil { + if v.AutoEnableControls { ok := object.Key("AutoEnableControls") - ok.Boolean(*v.AutoEnableControls) + ok.Boolean(v.AutoEnableControls) } return nil @@ -3201,13 +3168,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateStandardsControlInput(v *UpdateSt return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.StandardsControlArn == nil { + if v.StandardsControlArn == nil || len(*v.StandardsControlArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member StandardsControlArn must not be empty")} } if v.StandardsControlArn != nil { - if len(*v.StandardsControlArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member StandardsControlArn must not be empty")} - } if err := encoder.SetURI("StandardsControlArn").String(*v.StandardsControlArn); err != nil { return err } @@ -3250,49 +3214,37 @@ func awsRestjson1_serializeDocumentAccountDetails(v *types.AccountDetails, value return nil } -func awsRestjson1_serializeDocumentAccountDetailsList(v []*types.AccountDetails, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAccountDetailsList(v []types.AccountDetails, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAccountDetails(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAccountDetails(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentAccountIdList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAccountIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentArnList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3314,17 +3266,13 @@ func awsRestjson1_serializeDocumentAvailabilityZone(v *types.AvailabilityZone, v return nil } -func awsRestjson1_serializeDocumentAvailabilityZones(v []*types.AvailabilityZone, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAvailabilityZones(v []types.AvailabilityZone, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAvailabilityZone(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAvailabilityZone(&v[i], av); err != nil { return err } } @@ -3357,9 +3305,9 @@ func awsRestjson1_serializeDocumentAwsApiGatewayCanarySettings(v *types.AwsApiGa ok.String(*v.DeploymentId) } - if v.PercentTraffic != nil { + if v.PercentTraffic != 0 { ok := object.Key("PercentTraffic") - ok.Double(*v.PercentTraffic) + ok.Double(v.PercentTraffic) } if v.StageVariableOverrides != nil { @@ -3369,9 +3317,9 @@ func awsRestjson1_serializeDocumentAwsApiGatewayCanarySettings(v *types.AwsApiGa } } - if v.UseStageCache != nil { + if v.UseStageCache { ok := object.Key("UseStageCache") - ok.Boolean(*v.UseStageCache) + ok.Boolean(v.UseStageCache) } return nil @@ -3395,24 +3343,24 @@ func awsRestjson1_serializeDocumentAwsApiGatewayMethodSettings(v *types.AwsApiGa object := value.Object() defer object.Close() - if v.CacheDataEncrypted != nil { + if v.CacheDataEncrypted { ok := object.Key("CacheDataEncrypted") - ok.Boolean(*v.CacheDataEncrypted) + ok.Boolean(v.CacheDataEncrypted) } - if v.CacheTtlInSeconds != nil { + if v.CacheTtlInSeconds != 0 { ok := object.Key("CacheTtlInSeconds") - ok.Integer(*v.CacheTtlInSeconds) + ok.Integer(v.CacheTtlInSeconds) } - if v.CachingEnabled != nil { + if v.CachingEnabled { ok := object.Key("CachingEnabled") - ok.Boolean(*v.CachingEnabled) + ok.Boolean(v.CachingEnabled) } - if v.DataTraceEnabled != nil { + if v.DataTraceEnabled { ok := object.Key("DataTraceEnabled") - ok.Boolean(*v.DataTraceEnabled) + ok.Boolean(v.DataTraceEnabled) } if v.HttpMethod != nil { @@ -3425,14 +3373,14 @@ func awsRestjson1_serializeDocumentAwsApiGatewayMethodSettings(v *types.AwsApiGa ok.String(*v.LoggingLevel) } - if v.MetricsEnabled != nil { + if v.MetricsEnabled { ok := object.Key("MetricsEnabled") - ok.Boolean(*v.MetricsEnabled) + ok.Boolean(v.MetricsEnabled) } - if v.RequireAuthorizationForCacheControl != nil { + if v.RequireAuthorizationForCacheControl { ok := object.Key("RequireAuthorizationForCacheControl") - ok.Boolean(*v.RequireAuthorizationForCacheControl) + ok.Boolean(v.RequireAuthorizationForCacheControl) } if v.ResourcePath != nil { @@ -3440,14 +3388,14 @@ func awsRestjson1_serializeDocumentAwsApiGatewayMethodSettings(v *types.AwsApiGa ok.String(*v.ResourcePath) } - if v.ThrottlingBurstLimit != nil { + if v.ThrottlingBurstLimit != 0 { ok := object.Key("ThrottlingBurstLimit") - ok.Integer(*v.ThrottlingBurstLimit) + ok.Integer(v.ThrottlingBurstLimit) } - if v.ThrottlingRateLimit != nil { + if v.ThrottlingRateLimit != 0 { ok := object.Key("ThrottlingRateLimit") - ok.Double(*v.ThrottlingRateLimit) + ok.Double(v.ThrottlingRateLimit) } if v.UnauthorizedCacheControlHeaderStrategy != nil { @@ -3458,17 +3406,13 @@ func awsRestjson1_serializeDocumentAwsApiGatewayMethodSettings(v *types.AwsApiGa return nil } -func awsRestjson1_serializeDocumentAwsApiGatewayMethodSettingsList(v []*types.AwsApiGatewayMethodSettings, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsApiGatewayMethodSettingsList(v []types.AwsApiGatewayMethodSettings, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsApiGatewayMethodSettings(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsApiGatewayMethodSettings(&v[i], av); err != nil { return err } } @@ -3513,9 +3457,9 @@ func awsRestjson1_serializeDocumentAwsApiGatewayRestApiDetails(v *types.AwsApiGa ok.String(*v.Id) } - if v.MinimumCompressionSize != nil { + if v.MinimumCompressionSize != 0 { ok := object.Key("MinimumCompressionSize") - ok.Integer(*v.MinimumCompressionSize) + ok.Integer(v.MinimumCompressionSize) } if v.Name != nil { @@ -3542,9 +3486,9 @@ func awsRestjson1_serializeDocumentAwsApiGatewayStageDetails(v *types.AwsApiGate } } - if v.CacheClusterEnabled != nil { + if v.CacheClusterEnabled { ok := object.Key("CacheClusterEnabled") - ok.Boolean(*v.CacheClusterEnabled) + ok.Boolean(v.CacheClusterEnabled) } if v.CacheClusterSize != nil { @@ -3606,9 +3550,9 @@ func awsRestjson1_serializeDocumentAwsApiGatewayStageDetails(v *types.AwsApiGate ok.String(*v.StageName) } - if v.TracingEnabled != nil { + if v.TracingEnabled { ok := object.Key("TracingEnabled") - ok.Boolean(*v.TracingEnabled) + ok.Boolean(v.TracingEnabled) } if v.Variables != nil { @@ -3689,14 +3633,14 @@ func awsRestjson1_serializeDocumentAwsApiGatewayV2RouteSettings(v *types.AwsApiG object := value.Object() defer object.Close() - if v.DataTraceEnabled != nil { + if v.DataTraceEnabled { ok := object.Key("DataTraceEnabled") - ok.Boolean(*v.DataTraceEnabled) + ok.Boolean(v.DataTraceEnabled) } - if v.DetailedMetricsEnabled != nil { + if v.DetailedMetricsEnabled { ok := object.Key("DetailedMetricsEnabled") - ok.Boolean(*v.DetailedMetricsEnabled) + ok.Boolean(v.DetailedMetricsEnabled) } if v.LoggingLevel != nil { @@ -3704,14 +3648,14 @@ func awsRestjson1_serializeDocumentAwsApiGatewayV2RouteSettings(v *types.AwsApiG ok.String(*v.LoggingLevel) } - if v.ThrottlingBurstLimit != nil { + if v.ThrottlingBurstLimit != 0 { ok := object.Key("ThrottlingBurstLimit") - ok.Integer(*v.ThrottlingBurstLimit) + ok.Integer(v.ThrottlingBurstLimit) } - if v.ThrottlingRateLimit != nil { + if v.ThrottlingRateLimit != 0 { ok := object.Key("ThrottlingRateLimit") - ok.Double(*v.ThrottlingRateLimit) + ok.Double(v.ThrottlingRateLimit) } return nil @@ -3728,14 +3672,14 @@ func awsRestjson1_serializeDocumentAwsApiGatewayV2StageDetails(v *types.AwsApiGa } } - if v.ApiGatewayManaged != nil { + if v.ApiGatewayManaged { ok := object.Key("ApiGatewayManaged") - ok.Boolean(*v.ApiGatewayManaged) + ok.Boolean(v.ApiGatewayManaged) } - if v.AutoDeploy != nil { + if v.AutoDeploy { ok := object.Key("AutoDeploy") - ok.Boolean(*v.AutoDeploy) + ok.Boolean(v.AutoDeploy) } if v.CreatedDate != nil { @@ -3801,9 +3745,9 @@ func awsRestjson1_serializeDocumentAwsAutoScalingAutoScalingGroupDetails(v *type ok.String(*v.CreatedTime) } - if v.HealthCheckGracePeriod != nil { + if v.HealthCheckGracePeriod != 0 { ok := object.Key("HealthCheckGracePeriod") - ok.Integer(*v.HealthCheckGracePeriod) + ok.Integer(v.HealthCheckGracePeriod) } if v.HealthCheckType != nil { @@ -4003,17 +3947,13 @@ func awsRestjson1_serializeDocumentAwsCertificateManagerCertificateDomainValidat return nil } -func awsRestjson1_serializeDocumentAwsCertificateManagerCertificateDomainValidationOptions(v []*types.AwsCertificateManagerCertificateDomainValidationOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsCertificateManagerCertificateDomainValidationOptions(v []types.AwsCertificateManagerCertificateDomainValidationOption, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsCertificateManagerCertificateDomainValidationOption(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsCertificateManagerCertificateDomainValidationOption(&v[i], av); err != nil { return err } } @@ -4037,17 +3977,13 @@ func awsRestjson1_serializeDocumentAwsCertificateManagerCertificateExtendedKeyUs return nil } -func awsRestjson1_serializeDocumentAwsCertificateManagerCertificateExtendedKeyUsages(v []*types.AwsCertificateManagerCertificateExtendedKeyUsage, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsCertificateManagerCertificateExtendedKeyUsages(v []types.AwsCertificateManagerCertificateExtendedKeyUsage, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsCertificateManagerCertificateExtendedKeyUsage(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsCertificateManagerCertificateExtendedKeyUsage(&v[i], av); err != nil { return err } } @@ -4066,17 +4002,13 @@ func awsRestjson1_serializeDocumentAwsCertificateManagerCertificateKeyUsage(v *t return nil } -func awsRestjson1_serializeDocumentAwsCertificateManagerCertificateKeyUsages(v []*types.AwsCertificateManagerCertificateKeyUsage, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsCertificateManagerCertificateKeyUsages(v []types.AwsCertificateManagerCertificateKeyUsage, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsCertificateManagerCertificateKeyUsage(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsCertificateManagerCertificateKeyUsage(&v[i], av); err != nil { return err } } @@ -4172,17 +4104,13 @@ func awsRestjson1_serializeDocumentAwsCloudFrontDistributionCacheBehaviors(v *ty return nil } -func awsRestjson1_serializeDocumentAwsCloudFrontDistributionCacheBehaviorsItemList(v []*types.AwsCloudFrontDistributionCacheBehavior, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsCloudFrontDistributionCacheBehaviorsItemList(v []types.AwsCloudFrontDistributionCacheBehavior, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsCloudFrontDistributionCacheBehavior(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsCloudFrontDistributionCacheBehavior(&v[i], av); err != nil { return err } } @@ -4282,14 +4210,14 @@ func awsRestjson1_serializeDocumentAwsCloudFrontDistributionLogging(v *types.Aws ok.String(*v.Bucket) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } - if v.IncludeCookies != nil { + if v.IncludeCookies { ok := object.Key("IncludeCookies") - ok.Boolean(*v.IncludeCookies) + ok.Boolean(v.IncludeCookies) } if v.Prefix != nil { @@ -4339,25 +4267,21 @@ func awsRestjson1_serializeDocumentAwsCloudFrontDistributionOriginGroupFailoverS } } - if v.Quantity != nil { + if v.Quantity != 0 { ok := object.Key("Quantity") - ok.Integer(*v.Quantity) + ok.Integer(v.Quantity) } return nil } -func awsRestjson1_serializeDocumentAwsCloudFrontDistributionOriginGroupFailoverStatusCodesItemList(v []*int32, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsCloudFrontDistributionOriginGroupFailoverStatusCodesItemList(v []int32, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.Integer(*v[i]) + av.Integer(v[i]) } return nil } @@ -4376,17 +4300,13 @@ func awsRestjson1_serializeDocumentAwsCloudFrontDistributionOriginGroups(v *type return nil } -func awsRestjson1_serializeDocumentAwsCloudFrontDistributionOriginGroupsItemList(v []*types.AwsCloudFrontDistributionOriginGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsCloudFrontDistributionOriginGroupsItemList(v []types.AwsCloudFrontDistributionOriginGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsCloudFrontDistributionOriginGroup(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsCloudFrontDistributionOriginGroup(&v[i], av); err != nil { return err } } @@ -4422,17 +4342,13 @@ func awsRestjson1_serializeDocumentAwsCloudFrontDistributionOriginItem(v *types. return nil } -func awsRestjson1_serializeDocumentAwsCloudFrontDistributionOriginItemList(v []*types.AwsCloudFrontDistributionOriginItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsCloudFrontDistributionOriginItemList(v []types.AwsCloudFrontDistributionOriginItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsCloudFrontDistributionOriginItem(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsCloudFrontDistributionOriginItem(&v[i], av); err != nil { return err } } @@ -4479,9 +4395,9 @@ func awsRestjson1_serializeDocumentAwsCloudTrailTrailDetails(v *types.AwsCloudTr ok.String(*v.CloudWatchLogsRoleArn) } - if v.HasCustomEventSelectors != nil { + if v.HasCustomEventSelectors { ok := object.Key("HasCustomEventSelectors") - ok.Boolean(*v.HasCustomEventSelectors) + ok.Boolean(v.HasCustomEventSelectors) } if v.HomeRegion != nil { @@ -4489,19 +4405,19 @@ func awsRestjson1_serializeDocumentAwsCloudTrailTrailDetails(v *types.AwsCloudTr ok.String(*v.HomeRegion) } - if v.IncludeGlobalServiceEvents != nil { + if v.IncludeGlobalServiceEvents { ok := object.Key("IncludeGlobalServiceEvents") - ok.Boolean(*v.IncludeGlobalServiceEvents) + ok.Boolean(v.IncludeGlobalServiceEvents) } - if v.IsMultiRegionTrail != nil { + if v.IsMultiRegionTrail { ok := object.Key("IsMultiRegionTrail") - ok.Boolean(*v.IsMultiRegionTrail) + ok.Boolean(v.IsMultiRegionTrail) } - if v.IsOrganizationTrail != nil { + if v.IsOrganizationTrail { ok := object.Key("IsOrganizationTrail") - ok.Boolean(*v.IsOrganizationTrail) + ok.Boolean(v.IsOrganizationTrail) } if v.KmsKeyId != nil { @@ -4509,9 +4425,9 @@ func awsRestjson1_serializeDocumentAwsCloudTrailTrailDetails(v *types.AwsCloudTr ok.String(*v.KmsKeyId) } - if v.LogFileValidationEnabled != nil { + if v.LogFileValidationEnabled { ok := object.Key("LogFileValidationEnabled") - ok.Boolean(*v.LogFileValidationEnabled) + ok.Boolean(v.LogFileValidationEnabled) } if v.Name != nil { @@ -4640,14 +4556,14 @@ func awsRestjson1_serializeDocumentAwsCodeBuildProjectSource(v *types.AwsCodeBui object := value.Object() defer object.Close() - if v.GitCloneDepth != nil { + if v.GitCloneDepth != 0 { ok := object.Key("GitCloneDepth") - ok.Integer(*v.GitCloneDepth) + ok.Integer(v.GitCloneDepth) } - if v.InsecureSsl != nil { + if v.InsecureSsl { ok := object.Key("InsecureSsl") - ok.Boolean(*v.InsecureSsl) + ok.Boolean(v.InsecureSsl) } if v.Location != nil { @@ -4693,9 +4609,9 @@ func awsRestjson1_serializeDocumentAwsCorsConfiguration(v *types.AwsCorsConfigur object := value.Object() defer object.Close() - if v.AllowCredentials != nil { + if v.AllowCredentials { ok := object.Key("AllowCredentials") - ok.Boolean(*v.AllowCredentials) + ok.Boolean(v.AllowCredentials) } if v.AllowHeaders != nil { @@ -4726,9 +4642,9 @@ func awsRestjson1_serializeDocumentAwsCorsConfiguration(v *types.AwsCorsConfigur } } - if v.MaxAge != nil { + if v.MaxAge != 0 { ok := object.Key("MaxAge") - ok.Integer(*v.MaxAge) + ok.Integer(v.MaxAge) } return nil @@ -4751,17 +4667,13 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableAttributeDefinition(v *types. return nil } -func awsRestjson1_serializeDocumentAwsDynamoDbTableAttributeDefinitionList(v []*types.AwsDynamoDbTableAttributeDefinition, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsDynamoDbTableAttributeDefinitionList(v []types.AwsDynamoDbTableAttributeDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsDynamoDbTableAttributeDefinition(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsDynamoDbTableAttributeDefinition(&v[i], av); err != nil { return err } } @@ -4820,9 +4732,9 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableDetails(v *types.AwsDynamoDbT ok.String(*v.GlobalTableVersion) } - if v.ItemCount != nil { + if v.ItemCount != 0 { ok := object.Key("ItemCount") - ok.Integer(*v.ItemCount) + ok.Integer(v.ItemCount) } if v.KeySchema != nil { @@ -4894,9 +4806,9 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableDetails(v *types.AwsDynamoDbT ok.String(*v.TableName) } - if v.TableSizeBytes != nil { + if v.TableSizeBytes != 0 { ok := object.Key("TableSizeBytes") - ok.Long(*v.TableSizeBytes) + ok.Long(v.TableSizeBytes) } if v.TableStatus != nil { @@ -4911,9 +4823,9 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(v *types object := value.Object() defer object.Close() - if v.Backfilling != nil { + if v.Backfilling { ok := object.Key("Backfilling") - ok.Boolean(*v.Backfilling) + ok.Boolean(v.Backfilling) } if v.IndexArn != nil { @@ -4926,9 +4838,9 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(v *types ok.String(*v.IndexName) } - if v.IndexSizeBytes != nil { + if v.IndexSizeBytes != 0 { ok := object.Key("IndexSizeBytes") - ok.Long(*v.IndexSizeBytes) + ok.Long(v.IndexSizeBytes) } if v.IndexStatus != nil { @@ -4936,9 +4848,9 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(v *types ok.String(*v.IndexStatus) } - if v.ItemCount != nil { + if v.ItemCount != 0 { ok := object.Key("ItemCount") - ok.Integer(*v.ItemCount) + ok.Integer(v.ItemCount) } if v.KeySchema != nil { @@ -4965,17 +4877,13 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(v *types return nil } -func awsRestjson1_serializeDocumentAwsDynamoDbTableGlobalSecondaryIndexList(v []*types.AwsDynamoDbTableGlobalSecondaryIndex, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsDynamoDbTableGlobalSecondaryIndexList(v []types.AwsDynamoDbTableGlobalSecondaryIndex, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsDynamoDbTableGlobalSecondaryIndex(&v[i], av); err != nil { return err } } @@ -4999,17 +4907,13 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableKeySchema(v *types.AwsDynamoD return nil } -func awsRestjson1_serializeDocumentAwsDynamoDbTableKeySchemaList(v []*types.AwsDynamoDbTableKeySchema, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsDynamoDbTableKeySchemaList(v []types.AwsDynamoDbTableKeySchema, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsDynamoDbTableKeySchema(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsDynamoDbTableKeySchema(&v[i], av); err != nil { return err } } @@ -5047,17 +4951,13 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableLocalSecondaryIndex(v *types. return nil } -func awsRestjson1_serializeDocumentAwsDynamoDbTableLocalSecondaryIndexList(v []*types.AwsDynamoDbTableLocalSecondaryIndex, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsDynamoDbTableLocalSecondaryIndexList(v []types.AwsDynamoDbTableLocalSecondaryIndex, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsDynamoDbTableLocalSecondaryIndex(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsDynamoDbTableLocalSecondaryIndex(&v[i], av); err != nil { return err } } @@ -5097,19 +4997,19 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableProvisionedThroughput(v *type ok.String(*v.LastIncreaseDateTime) } - if v.NumberOfDecreasesToday != nil { + if v.NumberOfDecreasesToday != 0 { ok := object.Key("NumberOfDecreasesToday") - ok.Integer(*v.NumberOfDecreasesToday) + ok.Integer(v.NumberOfDecreasesToday) } - if v.ReadCapacityUnits != nil { + if v.ReadCapacityUnits != 0 { ok := object.Key("ReadCapacityUnits") - ok.Integer(*v.ReadCapacityUnits) + ok.Integer(v.ReadCapacityUnits) } - if v.WriteCapacityUnits != nil { + if v.WriteCapacityUnits != 0 { ok := object.Key("WriteCapacityUnits") - ok.Integer(*v.WriteCapacityUnits) + ok.Integer(v.WriteCapacityUnits) } return nil @@ -5119,9 +5019,9 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableProvisionedThroughputOverride object := value.Object() defer object.Close() - if v.ReadCapacityUnits != nil { + if v.ReadCapacityUnits != 0 { ok := object.Key("ReadCapacityUnits") - ok.Integer(*v.ReadCapacityUnits) + ok.Integer(v.ReadCapacityUnits) } return nil @@ -5187,34 +5087,26 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableReplicaGlobalSecondaryIndex(v return nil } -func awsRestjson1_serializeDocumentAwsDynamoDbTableReplicaGlobalSecondaryIndexList(v []*types.AwsDynamoDbTableReplicaGlobalSecondaryIndex, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsDynamoDbTableReplicaGlobalSecondaryIndexList(v []types.AwsDynamoDbTableReplicaGlobalSecondaryIndex, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsDynamoDbTableReplicaGlobalSecondaryIndex(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsDynamoDbTableReplicaGlobalSecondaryIndex(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentAwsDynamoDbTableReplicaList(v []*types.AwsDynamoDbTableReplica, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsDynamoDbTableReplicaList(v []types.AwsDynamoDbTableReplica, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsDynamoDbTableReplica(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsDynamoDbTableReplica(&v[i], av); err != nil { return err } } @@ -5230,9 +5122,9 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableRestoreSummary(v *types.AwsDy ok.String(*v.RestoreDateTime) } - if v.RestoreInProgress != nil { + if v.RestoreInProgress { ok := object.Key("RestoreInProgress") - ok.Boolean(*v.RestoreInProgress) + ok.Boolean(v.RestoreInProgress) } if v.SourceBackupArn != nil { @@ -5279,9 +5171,9 @@ func awsRestjson1_serializeDocumentAwsDynamoDbTableStreamSpecification(v *types. object := value.Object() defer object.Close() - if v.StreamEnabled != nil { + if v.StreamEnabled { ok := object.Key("StreamEnabled") - ok.Boolean(*v.StreamEnabled) + ok.Boolean(v.StreamEnabled) } if v.StreamViewType != nil { @@ -5419,14 +5311,14 @@ func awsRestjson1_serializeDocumentAwsEc2NetworkInterfaceAttachment(v *types.Aws ok.String(*v.AttachTime) } - if v.DeleteOnTermination != nil { + if v.DeleteOnTermination { ok := object.Key("DeleteOnTermination") - ok.Boolean(*v.DeleteOnTermination) + ok.Boolean(v.DeleteOnTermination) } - if v.DeviceIndex != nil { + if v.DeviceIndex != 0 { ok := object.Key("DeviceIndex") - ok.Integer(*v.DeviceIndex) + ok.Integer(v.DeviceIndex) } if v.InstanceId != nil { @@ -5470,9 +5362,9 @@ func awsRestjson1_serializeDocumentAwsEc2NetworkInterfaceDetails(v *types.AwsEc2 } } - if v.SourceDestCheck != nil { + if v.SourceDestCheck { ok := object.Key("SourceDestCheck") - ok.Boolean(*v.SourceDestCheck) + ok.Boolean(v.SourceDestCheck) } return nil @@ -5495,17 +5387,13 @@ func awsRestjson1_serializeDocumentAwsEc2NetworkInterfaceSecurityGroup(v *types. return nil } -func awsRestjson1_serializeDocumentAwsEc2NetworkInterfaceSecurityGroupList(v []*types.AwsEc2NetworkInterfaceSecurityGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsEc2NetworkInterfaceSecurityGroupList(v []types.AwsEc2NetworkInterfaceSecurityGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsEc2NetworkInterfaceSecurityGroup(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsEc2NetworkInterfaceSecurityGroup(&v[i], av); err != nil { return err } } @@ -5557,9 +5445,9 @@ func awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpPermission(v *types.AwsE object := value.Object() defer object.Close() - if v.FromPort != nil { + if v.FromPort != 0 { ok := object.Key("FromPort") - ok.Integer(*v.FromPort) + ok.Integer(v.FromPort) } if v.IpProtocol != nil { @@ -5588,9 +5476,9 @@ func awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpPermission(v *types.AwsE } } - if v.ToPort != nil { + if v.ToPort != 0 { ok := object.Key("ToPort") - ok.Integer(*v.ToPort) + ok.Integer(v.ToPort) } if v.UserIdGroupPairs != nil { @@ -5603,17 +5491,13 @@ func awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpPermission(v *types.AwsE return nil } -func awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpPermissionList(v []*types.AwsEc2SecurityGroupIpPermission, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpPermissionList(v []types.AwsEc2SecurityGroupIpPermission, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpPermission(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpPermission(&v[i], av); err != nil { return err } } @@ -5632,17 +5516,13 @@ func awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpRange(v *types.AwsEc2Sec return nil } -func awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpRangeList(v []*types.AwsEc2SecurityGroupIpRange, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpRangeList(v []types.AwsEc2SecurityGroupIpRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpRange(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpRange(&v[i], av); err != nil { return err } } @@ -5661,17 +5541,13 @@ func awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpv6Range(v *types.AwsEc2S return nil } -func awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpv6RangeList(v []*types.AwsEc2SecurityGroupIpv6Range, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpv6RangeList(v []types.AwsEc2SecurityGroupIpv6Range, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpv6Range(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsEc2SecurityGroupIpv6Range(&v[i], av); err != nil { return err } } @@ -5690,17 +5566,13 @@ func awsRestjson1_serializeDocumentAwsEc2SecurityGroupPrefixListId(v *types.AwsE return nil } -func awsRestjson1_serializeDocumentAwsEc2SecurityGroupPrefixListIdList(v []*types.AwsEc2SecurityGroupPrefixListId, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsEc2SecurityGroupPrefixListIdList(v []types.AwsEc2SecurityGroupPrefixListId, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsEc2SecurityGroupPrefixListId(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsEc2SecurityGroupPrefixListId(&v[i], av); err != nil { return err } } @@ -5744,17 +5616,13 @@ func awsRestjson1_serializeDocumentAwsEc2SecurityGroupUserIdGroupPair(v *types.A return nil } -func awsRestjson1_serializeDocumentAwsEc2SecurityGroupUserIdGroupPairList(v []*types.AwsEc2SecurityGroupUserIdGroupPair, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsEc2SecurityGroupUserIdGroupPairList(v []types.AwsEc2SecurityGroupUserIdGroupPair, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsEc2SecurityGroupUserIdGroupPair(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsEc2SecurityGroupUserIdGroupPair(&v[i], av); err != nil { return err } } @@ -5770,9 +5638,9 @@ func awsRestjson1_serializeDocumentAwsEc2VolumeAttachment(v *types.AwsEc2VolumeA ok.String(*v.AttachTime) } - if v.DeleteOnTermination != nil { + if v.DeleteOnTermination { ok := object.Key("DeleteOnTermination") - ok.Boolean(*v.DeleteOnTermination) + ok.Boolean(v.DeleteOnTermination) } if v.InstanceId != nil { @@ -5788,17 +5656,13 @@ func awsRestjson1_serializeDocumentAwsEc2VolumeAttachment(v *types.AwsEc2VolumeA return nil } -func awsRestjson1_serializeDocumentAwsEc2VolumeAttachmentList(v []*types.AwsEc2VolumeAttachment, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsEc2VolumeAttachmentList(v []types.AwsEc2VolumeAttachment, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsEc2VolumeAttachment(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsEc2VolumeAttachment(&v[i], av); err != nil { return err } } @@ -5821,9 +5685,9 @@ func awsRestjson1_serializeDocumentAwsEc2VolumeDetails(v *types.AwsEc2VolumeDeta ok.String(*v.CreateTime) } - if v.Encrypted != nil { + if v.Encrypted { ok := object.Key("Encrypted") - ok.Boolean(*v.Encrypted) + ok.Boolean(v.Encrypted) } if v.KmsKeyId != nil { @@ -5831,9 +5695,9 @@ func awsRestjson1_serializeDocumentAwsEc2VolumeDetails(v *types.AwsEc2VolumeDeta ok.String(*v.KmsKeyId) } - if v.Size != nil { + if v.Size != 0 { ok := object.Key("Size") - ok.Integer(*v.Size) + ok.Integer(v.Size) } if v.SnapshotId != nil { @@ -5951,9 +5815,9 @@ func awsRestjson1_serializeDocumentAwsElasticsearchDomainDomainEndpointOptions(v object := value.Object() defer object.Close() - if v.EnforceHTTPS != nil { + if v.EnforceHTTPS { ok := object.Key("EnforceHTTPS") - ok.Boolean(*v.EnforceHTTPS) + ok.Boolean(v.EnforceHTTPS) } if v.TLSSecurityPolicy != nil { @@ -5968,9 +5832,9 @@ func awsRestjson1_serializeDocumentAwsElasticsearchDomainEncryptionAtRestOptions object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.KmsKeyId != nil { @@ -5985,9 +5849,9 @@ func awsRestjson1_serializeDocumentAwsElasticsearchDomainNodeToNodeEncryptionOpt object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } return nil @@ -6026,17 +5890,13 @@ func awsRestjson1_serializeDocumentAwsElasticsearchDomainVPCOptions(v *types.Aws return nil } -func awsRestjson1_serializeDocumentAwsElbAppCookieStickinessPolicies(v []*types.AwsElbAppCookieStickinessPolicy, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsElbAppCookieStickinessPolicies(v []types.AwsElbAppCookieStickinessPolicy, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsElbAppCookieStickinessPolicy(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsElbAppCookieStickinessPolicy(&v[i], av); err != nil { return err } } @@ -6060,17 +5920,13 @@ func awsRestjson1_serializeDocumentAwsElbAppCookieStickinessPolicy(v *types.AwsE return nil } -func awsRestjson1_serializeDocumentAwsElbLbCookieStickinessPolicies(v []*types.AwsElbLbCookieStickinessPolicy, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsElbLbCookieStickinessPolicies(v []types.AwsElbLbCookieStickinessPolicy, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsElbLbCookieStickinessPolicy(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsElbLbCookieStickinessPolicy(&v[i], av); err != nil { return err } } @@ -6081,9 +5937,9 @@ func awsRestjson1_serializeDocumentAwsElbLbCookieStickinessPolicy(v *types.AwsEl object := value.Object() defer object.Close() - if v.CookieExpirationPeriod != nil { + if v.CookieExpirationPeriod != 0 { ok := object.Key("CookieExpirationPeriod") - ok.Long(*v.CookieExpirationPeriod) + ok.Long(v.CookieExpirationPeriod) } if v.PolicyName != nil { @@ -6098,14 +5954,14 @@ func awsRestjson1_serializeDocumentAwsElbLoadBalancerAccessLog(v *types.AwsElbLo object := value.Object() defer object.Close() - if v.EmitInterval != nil { + if v.EmitInterval != 0 { ok := object.Key("EmitInterval") - ok.Integer(*v.EmitInterval) + ok.Integer(v.EmitInterval) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.S3BucketName != nil { @@ -6160,9 +6016,9 @@ func awsRestjson1_serializeDocumentAwsElbLoadBalancerBackendServerDescription(v object := value.Object() defer object.Close() - if v.InstancePort != nil { + if v.InstancePort != 0 { ok := object.Key("InstancePort") - ok.Integer(*v.InstancePort) + ok.Integer(v.InstancePort) } if v.PolicyNames != nil { @@ -6175,17 +6031,13 @@ func awsRestjson1_serializeDocumentAwsElbLoadBalancerBackendServerDescription(v return nil } -func awsRestjson1_serializeDocumentAwsElbLoadBalancerBackendServerDescriptions(v []*types.AwsElbLoadBalancerBackendServerDescription, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsElbLoadBalancerBackendServerDescriptions(v []types.AwsElbLoadBalancerBackendServerDescription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsElbLoadBalancerBackendServerDescription(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsElbLoadBalancerBackendServerDescription(&v[i], av); err != nil { return err } } @@ -6196,14 +6048,14 @@ func awsRestjson1_serializeDocumentAwsElbLoadBalancerConnectionDraining(v *types object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } - if v.Timeout != nil { + if v.Timeout != 0 { ok := object.Key("Timeout") - ok.Integer(*v.Timeout) + ok.Integer(v.Timeout) } return nil @@ -6213,9 +6065,9 @@ func awsRestjson1_serializeDocumentAwsElbLoadBalancerConnectionSettings(v *types object := value.Object() defer object.Close() - if v.IdleTimeout != nil { + if v.IdleTimeout != 0 { ok := object.Key("IdleTimeout") - ok.Integer(*v.IdleTimeout) + ok.Integer(v.IdleTimeout) } return nil @@ -6225,9 +6077,9 @@ func awsRestjson1_serializeDocumentAwsElbLoadBalancerCrossZoneLoadBalancing(v *t object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } return nil @@ -6349,14 +6201,14 @@ func awsRestjson1_serializeDocumentAwsElbLoadBalancerHealthCheck(v *types.AwsElb object := value.Object() defer object.Close() - if v.HealthyThreshold != nil { + if v.HealthyThreshold != 0 { ok := object.Key("HealthyThreshold") - ok.Integer(*v.HealthyThreshold) + ok.Integer(v.HealthyThreshold) } - if v.Interval != nil { + if v.Interval != 0 { ok := object.Key("Interval") - ok.Integer(*v.Interval) + ok.Integer(v.Interval) } if v.Target != nil { @@ -6364,14 +6216,14 @@ func awsRestjson1_serializeDocumentAwsElbLoadBalancerHealthCheck(v *types.AwsElb ok.String(*v.Target) } - if v.Timeout != nil { + if v.Timeout != 0 { ok := object.Key("Timeout") - ok.Integer(*v.Timeout) + ok.Integer(v.Timeout) } - if v.UnhealthyThreshold != nil { + if v.UnhealthyThreshold != 0 { ok := object.Key("UnhealthyThreshold") - ok.Integer(*v.UnhealthyThreshold) + ok.Integer(v.UnhealthyThreshold) } return nil @@ -6389,17 +6241,13 @@ func awsRestjson1_serializeDocumentAwsElbLoadBalancerInstance(v *types.AwsElbLoa return nil } -func awsRestjson1_serializeDocumentAwsElbLoadBalancerInstances(v []*types.AwsElbLoadBalancerInstance, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsElbLoadBalancerInstances(v []types.AwsElbLoadBalancerInstance, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsElbLoadBalancerInstance(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsElbLoadBalancerInstance(&v[i], av); err != nil { return err } } @@ -6410,9 +6258,9 @@ func awsRestjson1_serializeDocumentAwsElbLoadBalancerListener(v *types.AwsElbLoa object := value.Object() defer object.Close() - if v.InstancePort != nil { + if v.InstancePort != 0 { ok := object.Key("InstancePort") - ok.Integer(*v.InstancePort) + ok.Integer(v.InstancePort) } if v.InstanceProtocol != nil { @@ -6420,9 +6268,9 @@ func awsRestjson1_serializeDocumentAwsElbLoadBalancerListener(v *types.AwsElbLoa ok.String(*v.InstanceProtocol) } - if v.LoadBalancerPort != nil { + if v.LoadBalancerPort != 0 { ok := object.Key("LoadBalancerPort") - ok.Integer(*v.LoadBalancerPort) + ok.Integer(v.LoadBalancerPort) } if v.Protocol != nil { @@ -6459,17 +6307,13 @@ func awsRestjson1_serializeDocumentAwsElbLoadBalancerListenerDescription(v *type return nil } -func awsRestjson1_serializeDocumentAwsElbLoadBalancerListenerDescriptions(v []*types.AwsElbLoadBalancerListenerDescription, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsElbLoadBalancerListenerDescriptions(v []types.AwsElbLoadBalancerListenerDescription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsElbLoadBalancerListenerDescription(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsElbLoadBalancerListenerDescription(&v[i], av); err != nil { return err } } @@ -6668,9 +6512,9 @@ func awsRestjson1_serializeDocumentAwsIamAccessKeySessionContextAttributes(v *ty ok.String(*v.CreationDate) } - if v.MfaAuthenticated != nil { + if v.MfaAuthenticated { ok := object.Key("MfaAuthenticated") - ok.Boolean(*v.MfaAuthenticated) + ok.Boolean(v.MfaAuthenticated) } return nil @@ -6725,17 +6569,13 @@ func awsRestjson1_serializeDocumentAwsIamAttachedManagedPolicy(v *types.AwsIamAt return nil } -func awsRestjson1_serializeDocumentAwsIamAttachedManagedPolicyList(v []*types.AwsIamAttachedManagedPolicy, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsIamAttachedManagedPolicyList(v []types.AwsIamAttachedManagedPolicy, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsIamAttachedManagedPolicy(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsIamAttachedManagedPolicy(&v[i], av); err != nil { return err } } @@ -6795,17 +6635,13 @@ func awsRestjson1_serializeDocumentAwsIamGroupPolicy(v *types.AwsIamGroupPolicy, return nil } -func awsRestjson1_serializeDocumentAwsIamGroupPolicyList(v []*types.AwsIamGroupPolicy, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsIamGroupPolicyList(v []types.AwsIamGroupPolicy, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsIamGroupPolicy(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsIamGroupPolicy(&v[i], av); err != nil { return err } } @@ -6851,17 +6687,13 @@ func awsRestjson1_serializeDocumentAwsIamInstanceProfile(v *types.AwsIamInstance return nil } -func awsRestjson1_serializeDocumentAwsIamInstanceProfileList(v []*types.AwsIamInstanceProfile, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsIamInstanceProfileList(v []types.AwsIamInstanceProfile, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsIamInstanceProfile(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsIamInstanceProfile(&v[i], av); err != nil { return err } } @@ -6905,17 +6737,13 @@ func awsRestjson1_serializeDocumentAwsIamInstanceProfileRole(v *types.AwsIamInst return nil } -func awsRestjson1_serializeDocumentAwsIamInstanceProfileRoles(v []*types.AwsIamInstanceProfileRole, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsIamInstanceProfileRoles(v []types.AwsIamInstanceProfileRole, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsIamInstanceProfileRole(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsIamInstanceProfileRole(&v[i], av); err != nil { return err } } @@ -6943,9 +6771,9 @@ func awsRestjson1_serializeDocumentAwsIamPolicyDetails(v *types.AwsIamPolicyDeta object := value.Object() defer object.Close() - if v.AttachmentCount != nil { + if v.AttachmentCount != 0 { ok := object.Key("AttachmentCount") - ok.Integer(*v.AttachmentCount) + ok.Integer(v.AttachmentCount) } if v.CreateDate != nil { @@ -6963,9 +6791,9 @@ func awsRestjson1_serializeDocumentAwsIamPolicyDetails(v *types.AwsIamPolicyDeta ok.String(*v.Description) } - if v.IsAttachable != nil { + if v.IsAttachable { ok := object.Key("IsAttachable") - ok.Boolean(*v.IsAttachable) + ok.Boolean(v.IsAttachable) } if v.Path != nil { @@ -6973,9 +6801,9 @@ func awsRestjson1_serializeDocumentAwsIamPolicyDetails(v *types.AwsIamPolicyDeta ok.String(*v.Path) } - if v.PermissionsBoundaryUsageCount != nil { + if v.PermissionsBoundaryUsageCount != 0 { ok := object.Key("PermissionsBoundaryUsageCount") - ok.Integer(*v.PermissionsBoundaryUsageCount) + ok.Integer(v.PermissionsBoundaryUsageCount) } if v.PolicyId != nil { @@ -7012,9 +6840,9 @@ func awsRestjson1_serializeDocumentAwsIamPolicyVersion(v *types.AwsIamPolicyVers ok.String(*v.CreateDate) } - if v.IsDefaultVersion != nil { + if v.IsDefaultVersion { ok := object.Key("IsDefaultVersion") - ok.Boolean(*v.IsDefaultVersion) + ok.Boolean(v.IsDefaultVersion) } if v.VersionId != nil { @@ -7025,17 +6853,13 @@ func awsRestjson1_serializeDocumentAwsIamPolicyVersion(v *types.AwsIamPolicyVers return nil } -func awsRestjson1_serializeDocumentAwsIamPolicyVersionList(v []*types.AwsIamPolicyVersion, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsIamPolicyVersionList(v []types.AwsIamPolicyVersion, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsIamPolicyVersion(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsIamPolicyVersion(&v[i], av); err != nil { return err } } @@ -7070,9 +6894,9 @@ func awsRestjson1_serializeDocumentAwsIamRoleDetails(v *types.AwsIamRoleDetails, } } - if v.MaxSessionDuration != nil { + if v.MaxSessionDuration != 0 { ok := object.Key("MaxSessionDuration") - ok.Integer(*v.MaxSessionDuration) + ok.Integer(v.MaxSessionDuration) } if v.Path != nil { @@ -7119,17 +6943,13 @@ func awsRestjson1_serializeDocumentAwsIamRolePolicy(v *types.AwsIamRolePolicy, v return nil } -func awsRestjson1_serializeDocumentAwsIamRolePolicyList(v []*types.AwsIamRolePolicy, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsIamRolePolicyList(v []types.AwsIamRolePolicy, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsIamRolePolicy(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsIamRolePolicy(&v[i], av); err != nil { return err } } @@ -7203,17 +7023,13 @@ func awsRestjson1_serializeDocumentAwsIamUserPolicy(v *types.AwsIamUserPolicy, v return nil } -func awsRestjson1_serializeDocumentAwsIamUserPolicyList(v []*types.AwsIamUserPolicy, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsIamUserPolicyList(v []types.AwsIamUserPolicy, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsIamUserPolicy(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsIamUserPolicy(&v[i], av); err != nil { return err } } @@ -7229,9 +7045,9 @@ func awsRestjson1_serializeDocumentAwsKmsKeyDetails(v *types.AwsKmsKeyDetails, v ok.String(*v.AWSAccountId) } - if v.CreationDate != nil { + if v.CreationDate != 0 { ok := object.Key("CreationDate") - ok.Double(*v.CreationDate) + ok.Double(v.CreationDate) } if v.Description != nil { @@ -7363,9 +7179,9 @@ func awsRestjson1_serializeDocumentAwsLambdaFunctionDetails(v *types.AwsLambdaFu ok.String(*v.MasterArn) } - if v.MemorySize != nil { + if v.MemorySize != 0 { ok := object.Key("MemorySize") - ok.Integer(*v.MemorySize) + ok.Integer(v.MemorySize) } if v.RevisionId != nil { @@ -7383,9 +7199,9 @@ func awsRestjson1_serializeDocumentAwsLambdaFunctionDetails(v *types.AwsLambdaFu ok.String(*v.Runtime) } - if v.Timeout != nil { + if v.Timeout != 0 { ok := object.Key("Timeout") - ok.Integer(*v.Timeout) + ok.Integer(v.Timeout) } if v.TracingConfig != nil { @@ -7457,25 +7273,21 @@ func awsRestjson1_serializeDocumentAwsLambdaFunctionLayer(v *types.AwsLambdaFunc ok.String(*v.Arn) } - if v.CodeSize != nil { + if v.CodeSize != 0 { ok := object.Key("CodeSize") - ok.Integer(*v.CodeSize) + ok.Integer(v.CodeSize) } return nil } -func awsRestjson1_serializeDocumentAwsLambdaFunctionLayerList(v []*types.AwsLambdaFunctionLayer, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsLambdaFunctionLayerList(v []types.AwsLambdaFunctionLayer, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsLambdaFunctionLayer(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsLambdaFunctionLayer(&v[i], av); err != nil { return err } } @@ -7536,9 +7348,9 @@ func awsRestjson1_serializeDocumentAwsLambdaLayerVersionDetails(v *types.AwsLamb ok.String(*v.CreatedDate) } - if v.Version != nil { + if v.Version != 0 { ok := object.Key("Version") - ok.Long(*v.Version) + ok.Long(v.Version) } return nil @@ -7561,17 +7373,13 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterAssociatedRole(v *types.AwsRds return nil } -func awsRestjson1_serializeDocumentAwsRdsDbClusterAssociatedRoles(v []*types.AwsRdsDbClusterAssociatedRole, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRdsDbClusterAssociatedRoles(v []types.AwsRdsDbClusterAssociatedRole, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRdsDbClusterAssociatedRole(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRdsDbClusterAssociatedRole(&v[i], av); err != nil { return err } } @@ -7587,9 +7395,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterDetails(v *types.AwsRdsDbClust ok.String(*v.ActivityStreamStatus) } - if v.AllocatedStorage != nil { + if v.AllocatedStorage != 0 { ok := object.Key("AllocatedStorage") - ok.Integer(*v.AllocatedStorage) + ok.Integer(v.AllocatedStorage) } if v.AssociatedRoles != nil { @@ -7606,9 +7414,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterDetails(v *types.AwsRdsDbClust } } - if v.BackupRetentionPeriod != nil { + if v.BackupRetentionPeriod != 0 { ok := object.Key("BackupRetentionPeriod") - ok.Integer(*v.BackupRetentionPeriod) + ok.Integer(v.BackupRetentionPeriod) } if v.ClusterCreateTime != nil { @@ -7616,14 +7424,14 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterDetails(v *types.AwsRdsDbClust ok.String(*v.ClusterCreateTime) } - if v.CopyTagsToSnapshot != nil { + if v.CopyTagsToSnapshot { ok := object.Key("CopyTagsToSnapshot") - ok.Boolean(*v.CopyTagsToSnapshot) + ok.Boolean(v.CopyTagsToSnapshot) } - if v.CrossAccountClone != nil { + if v.CrossAccountClone { ok := object.Key("CrossAccountClone") - ok.Boolean(*v.CrossAccountClone) + ok.Boolean(v.CrossAccountClone) } if v.CustomEndpoints != nil { @@ -7672,9 +7480,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterDetails(v *types.AwsRdsDbClust ok.String(*v.DbSubnetGroup) } - if v.DeletionProtection != nil { + if v.DeletionProtection { ok := object.Key("DeletionProtection") - ok.Boolean(*v.DeletionProtection) + ok.Boolean(v.DeletionProtection) } if v.DomainMemberships != nil { @@ -7716,14 +7524,14 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterDetails(v *types.AwsRdsDbClust ok.String(*v.HostedZoneId) } - if v.HttpEndpointEnabled != nil { + if v.HttpEndpointEnabled { ok := object.Key("HttpEndpointEnabled") - ok.Boolean(*v.HttpEndpointEnabled) + ok.Boolean(v.HttpEndpointEnabled) } - if v.IamDatabaseAuthenticationEnabled != nil { + if v.IamDatabaseAuthenticationEnabled { ok := object.Key("IamDatabaseAuthenticationEnabled") - ok.Boolean(*v.IamDatabaseAuthenticationEnabled) + ok.Boolean(v.IamDatabaseAuthenticationEnabled) } if v.KmsKeyId != nil { @@ -7736,14 +7544,14 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterDetails(v *types.AwsRdsDbClust ok.String(*v.MasterUsername) } - if v.MultiAz != nil { + if v.MultiAz { ok := object.Key("MultiAz") - ok.Boolean(*v.MultiAz) + ok.Boolean(v.MultiAz) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } if v.PreferredBackupWindow != nil { @@ -7773,9 +7581,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterDetails(v *types.AwsRdsDbClust ok.String(*v.Status) } - if v.StorageEncrypted != nil { + if v.StorageEncrypted { ok := object.Key("StorageEncrypted") - ok.Boolean(*v.StorageEncrypted) + ok.Boolean(v.StorageEncrypted) } if v.VpcSecurityGroups != nil { @@ -7802,30 +7610,26 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterMember(v *types.AwsRdsDbCluste ok.String(*v.DbInstanceIdentifier) } - if v.IsClusterWriter != nil { + if v.IsClusterWriter { ok := object.Key("IsClusterWriter") - ok.Boolean(*v.IsClusterWriter) + ok.Boolean(v.IsClusterWriter) } - if v.PromotionTier != nil { + if v.PromotionTier != 0 { ok := object.Key("PromotionTier") - ok.Integer(*v.PromotionTier) + ok.Integer(v.PromotionTier) } return nil } -func awsRestjson1_serializeDocumentAwsRdsDbClusterMembers(v []*types.AwsRdsDbClusterMember, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRdsDbClusterMembers(v []types.AwsRdsDbClusterMember, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRdsDbClusterMember(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRdsDbClusterMember(&v[i], av); err != nil { return err } } @@ -7849,17 +7653,13 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterOptionGroupMembership(v *types return nil } -func awsRestjson1_serializeDocumentAwsRdsDbClusterOptionGroupMemberships(v []*types.AwsRdsDbClusterOptionGroupMembership, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRdsDbClusterOptionGroupMemberships(v []types.AwsRdsDbClusterOptionGroupMembership, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRdsDbClusterOptionGroupMembership(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRdsDbClusterOptionGroupMembership(&v[i], av); err != nil { return err } } @@ -7870,9 +7670,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterSnapshotDetails(v *types.AwsRd object := value.Object() defer object.Close() - if v.AllocatedStorage != nil { + if v.AllocatedStorage != 0 { ok := object.Key("AllocatedStorage") - ok.Integer(*v.AllocatedStorage) + ok.Integer(v.AllocatedStorage) } if v.AvailabilityZones != nil { @@ -7907,9 +7707,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterSnapshotDetails(v *types.AwsRd ok.String(*v.EngineVersion) } - if v.IamDatabaseAuthenticationEnabled != nil { + if v.IamDatabaseAuthenticationEnabled { ok := object.Key("IamDatabaseAuthenticationEnabled") - ok.Boolean(*v.IamDatabaseAuthenticationEnabled) + ok.Boolean(v.IamDatabaseAuthenticationEnabled) } if v.KmsKeyId != nil { @@ -7927,14 +7727,14 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterSnapshotDetails(v *types.AwsRd ok.String(*v.MasterUsername) } - if v.PercentProgress != nil { + if v.PercentProgress != 0 { ok := object.Key("PercentProgress") - ok.Integer(*v.PercentProgress) + ok.Integer(v.PercentProgress) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } if v.SnapshotCreateTime != nil { @@ -7952,9 +7752,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbClusterSnapshotDetails(v *types.AwsRd ok.String(*v.Status) } - if v.StorageEncrypted != nil { + if v.StorageEncrypted { ok := object.Key("StorageEncrypted") - ok.Boolean(*v.StorageEncrypted) + ok.Boolean(v.StorageEncrypted) } if v.VpcId != nil { @@ -7992,17 +7792,13 @@ func awsRestjson1_serializeDocumentAwsRdsDbDomainMembership(v *types.AwsRdsDbDom return nil } -func awsRestjson1_serializeDocumentAwsRdsDbDomainMemberships(v []*types.AwsRdsDbDomainMembership, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRdsDbDomainMemberships(v []types.AwsRdsDbDomainMembership, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRdsDbDomainMembership(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRdsDbDomainMembership(&v[i], av); err != nil { return err } } @@ -8031,17 +7827,13 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceAssociatedRole(v *types.AwsRd return nil } -func awsRestjson1_serializeDocumentAwsRdsDbInstanceAssociatedRoles(v []*types.AwsRdsDbInstanceAssociatedRole, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRdsDbInstanceAssociatedRoles(v []types.AwsRdsDbInstanceAssociatedRole, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRdsDbInstanceAssociatedRole(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRdsDbInstanceAssociatedRole(&v[i], av); err != nil { return err } } @@ -8052,9 +7844,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst object := value.Object() defer object.Close() - if v.AllocatedStorage != nil { + if v.AllocatedStorage != 0 { ok := object.Key("AllocatedStorage") - ok.Integer(*v.AllocatedStorage) + ok.Integer(v.AllocatedStorage) } if v.AssociatedRoles != nil { @@ -8064,9 +7856,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst } } - if v.AutoMinorVersionUpgrade != nil { + if v.AutoMinorVersionUpgrade { ok := object.Key("AutoMinorVersionUpgrade") - ok.Boolean(*v.AutoMinorVersionUpgrade) + ok.Boolean(v.AutoMinorVersionUpgrade) } if v.AvailabilityZone != nil { @@ -8074,9 +7866,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst ok.String(*v.AvailabilityZone) } - if v.BackupRetentionPeriod != nil { + if v.BackupRetentionPeriod != 0 { ok := object.Key("BackupRetentionPeriod") - ok.Integer(*v.BackupRetentionPeriod) + ok.Integer(v.BackupRetentionPeriod) } if v.CACertificateIdentifier != nil { @@ -8089,9 +7881,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst ok.String(*v.CharacterSetName) } - if v.CopyTagsToSnapshot != nil { + if v.CopyTagsToSnapshot { ok := object.Key("CopyTagsToSnapshot") - ok.Boolean(*v.CopyTagsToSnapshot) + ok.Boolean(v.CopyTagsToSnapshot) } if v.DBClusterIdentifier != nil { @@ -8109,9 +7901,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst ok.String(*v.DBInstanceIdentifier) } - if v.DbInstancePort != nil { + if v.DbInstancePort != 0 { ok := object.Key("DbInstancePort") - ok.Integer(*v.DbInstancePort) + ok.Integer(v.DbInstancePort) } if v.DbInstanceStatus != nil { @@ -8150,9 +7942,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst } } - if v.DeletionProtection != nil { + if v.DeletionProtection { ok := object.Key("DeletionProtection") - ok.Boolean(*v.DeletionProtection) + ok.Boolean(v.DeletionProtection) } if v.DomainMemberships != nil { @@ -8191,9 +7983,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst ok.String(*v.EnhancedMonitoringResourceArn) } - if v.IAMDatabaseAuthenticationEnabled != nil { + if v.IAMDatabaseAuthenticationEnabled { ok := object.Key("IAMDatabaseAuthenticationEnabled") - ok.Boolean(*v.IAMDatabaseAuthenticationEnabled) + ok.Boolean(v.IAMDatabaseAuthenticationEnabled) } if v.InstanceCreateTime != nil { @@ -8201,9 +7993,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst ok.String(*v.InstanceCreateTime) } - if v.Iops != nil { + if v.Iops != 0 { ok := object.Key("Iops") - ok.Integer(*v.Iops) + ok.Integer(v.Iops) } if v.KmsKeyId != nil { @@ -8233,14 +8025,14 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst ok.String(*v.MasterUsername) } - if v.MaxAllocatedStorage != nil { + if v.MaxAllocatedStorage != 0 { ok := object.Key("MaxAllocatedStorage") - ok.Integer(*v.MaxAllocatedStorage) + ok.Integer(v.MaxAllocatedStorage) } - if v.MonitoringInterval != nil { + if v.MonitoringInterval != 0 { ok := object.Key("MonitoringInterval") - ok.Integer(*v.MonitoringInterval) + ok.Integer(v.MonitoringInterval) } if v.MonitoringRoleArn != nil { @@ -8248,9 +8040,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst ok.String(*v.MonitoringRoleArn) } - if v.MultiAz != nil { + if v.MultiAz { ok := object.Key("MultiAz") - ok.Boolean(*v.MultiAz) + ok.Boolean(v.MultiAz) } if v.OptionGroupMemberships != nil { @@ -8267,9 +8059,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst } } - if v.PerformanceInsightsEnabled != nil { + if v.PerformanceInsightsEnabled { ok := object.Key("PerformanceInsightsEnabled") - ok.Boolean(*v.PerformanceInsightsEnabled) + ok.Boolean(v.PerformanceInsightsEnabled) } if v.PerformanceInsightsKmsKeyId != nil { @@ -8277,9 +8069,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst ok.String(*v.PerformanceInsightsKmsKeyId) } - if v.PerformanceInsightsRetentionPeriod != nil { + if v.PerformanceInsightsRetentionPeriod != 0 { ok := object.Key("PerformanceInsightsRetentionPeriod") - ok.Integer(*v.PerformanceInsightsRetentionPeriod) + ok.Integer(v.PerformanceInsightsRetentionPeriod) } if v.PreferredBackupWindow != nil { @@ -8299,14 +8091,14 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst } } - if v.PromotionTier != nil { + if v.PromotionTier != 0 { ok := object.Key("PromotionTier") - ok.Integer(*v.PromotionTier) + ok.Integer(v.PromotionTier) } - if v.PubliclyAccessible != nil { + if v.PubliclyAccessible { ok := object.Key("PubliclyAccessible") - ok.Boolean(*v.PubliclyAccessible) + ok.Boolean(v.PubliclyAccessible) } if v.ReadReplicaDBClusterIdentifiers != nil { @@ -8340,9 +8132,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceDetails(v *types.AwsRdsDbInst } } - if v.StorageEncrypted != nil { + if v.StorageEncrypted { ok := object.Key("StorageEncrypted") - ok.Boolean(*v.StorageEncrypted) + ok.Boolean(v.StorageEncrypted) } if v.StorageType != nil { @@ -8384,9 +8176,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceEndpoint(v *types.AwsRdsDbIns ok.String(*v.HostedZoneId) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } return nil @@ -8409,17 +8201,13 @@ func awsRestjson1_serializeDocumentAwsRdsDbInstanceVpcSecurityGroup(v *types.Aws return nil } -func awsRestjson1_serializeDocumentAwsRdsDbInstanceVpcSecurityGroups(v []*types.AwsRdsDbInstanceVpcSecurityGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRdsDbInstanceVpcSecurityGroups(v []types.AwsRdsDbInstanceVpcSecurityGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRdsDbInstanceVpcSecurityGroup(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRdsDbInstanceVpcSecurityGroup(&v[i], av); err != nil { return err } } @@ -8443,17 +8231,13 @@ func awsRestjson1_serializeDocumentAwsRdsDbOptionGroupMembership(v *types.AwsRds return nil } -func awsRestjson1_serializeDocumentAwsRdsDbOptionGroupMemberships(v []*types.AwsRdsDbOptionGroupMembership, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRdsDbOptionGroupMemberships(v []types.AwsRdsDbOptionGroupMembership, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRdsDbOptionGroupMembership(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRdsDbOptionGroupMembership(&v[i], av); err != nil { return err } } @@ -8477,17 +8261,13 @@ func awsRestjson1_serializeDocumentAwsRdsDbParameterGroup(v *types.AwsRdsDbParam return nil } -func awsRestjson1_serializeDocumentAwsRdsDbParameterGroups(v []*types.AwsRdsDbParameterGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRdsDbParameterGroups(v []types.AwsRdsDbParameterGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRdsDbParameterGroup(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRdsDbParameterGroup(&v[i], av); err != nil { return err } } @@ -8498,14 +8278,14 @@ func awsRestjson1_serializeDocumentAwsRdsDbPendingModifiedValues(v *types.AwsRds object := value.Object() defer object.Close() - if v.AllocatedStorage != nil { + if v.AllocatedStorage != 0 { ok := object.Key("AllocatedStorage") - ok.Integer(*v.AllocatedStorage) + ok.Integer(v.AllocatedStorage) } - if v.BackupRetentionPeriod != nil { + if v.BackupRetentionPeriod != 0 { ok := object.Key("BackupRetentionPeriod") - ok.Integer(*v.BackupRetentionPeriod) + ok.Integer(v.BackupRetentionPeriod) } if v.CaCertificateIdentifier != nil { @@ -8533,9 +8313,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbPendingModifiedValues(v *types.AwsRds ok.String(*v.EngineVersion) } - if v.Iops != nil { + if v.Iops != 0 { ok := object.Key("Iops") - ok.Integer(*v.Iops) + ok.Integer(v.Iops) } if v.LicenseModel != nil { @@ -8548,9 +8328,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbPendingModifiedValues(v *types.AwsRds ok.String(*v.MasterUserPassword) } - if v.MultiAZ != nil { + if v.MultiAZ { ok := object.Key("MultiAZ") - ok.Boolean(*v.MultiAZ) + ok.Boolean(v.MultiAZ) } if v.PendingCloudWatchLogsExports != nil { @@ -8560,9 +8340,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbPendingModifiedValues(v *types.AwsRds } } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } if v.ProcessorFeatures != nil { @@ -8597,17 +8377,13 @@ func awsRestjson1_serializeDocumentAwsRdsDbProcessorFeature(v *types.AwsRdsDbPro return nil } -func awsRestjson1_serializeDocumentAwsRdsDbProcessorFeatures(v []*types.AwsRdsDbProcessorFeature, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRdsDbProcessorFeatures(v []types.AwsRdsDbProcessorFeature, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRdsDbProcessorFeature(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRdsDbProcessorFeature(&v[i], av); err != nil { return err } } @@ -8618,9 +8394,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbSnapshotDetails(v *types.AwsRdsDbSnap object := value.Object() defer object.Close() - if v.AllocatedStorage != nil { + if v.AllocatedStorage != 0 { ok := object.Key("AllocatedStorage") - ok.Integer(*v.AllocatedStorage) + ok.Integer(v.AllocatedStorage) } if v.AvailabilityZone != nil { @@ -8643,9 +8419,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbSnapshotDetails(v *types.AwsRdsDbSnap ok.String(*v.DbSnapshotIdentifier) } - if v.Encrypted != nil { + if v.Encrypted { ok := object.Key("Encrypted") - ok.Boolean(*v.Encrypted) + ok.Boolean(v.Encrypted) } if v.Engine != nil { @@ -8658,9 +8434,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbSnapshotDetails(v *types.AwsRdsDbSnap ok.String(*v.EngineVersion) } - if v.IamDatabaseAuthenticationEnabled != nil { + if v.IamDatabaseAuthenticationEnabled { ok := object.Key("IamDatabaseAuthenticationEnabled") - ok.Boolean(*v.IamDatabaseAuthenticationEnabled) + ok.Boolean(v.IamDatabaseAuthenticationEnabled) } if v.InstanceCreateTime != nil { @@ -8668,9 +8444,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbSnapshotDetails(v *types.AwsRdsDbSnap ok.String(*v.InstanceCreateTime) } - if v.Iops != nil { + if v.Iops != 0 { ok := object.Key("Iops") - ok.Integer(*v.Iops) + ok.Integer(v.Iops) } if v.KmsKeyId != nil { @@ -8693,14 +8469,14 @@ func awsRestjson1_serializeDocumentAwsRdsDbSnapshotDetails(v *types.AwsRdsDbSnap ok.String(*v.OptionGroupName) } - if v.PercentProgress != nil { + if v.PercentProgress != 0 { ok := object.Key("PercentProgress") - ok.Integer(*v.PercentProgress) + ok.Integer(v.PercentProgress) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } if v.ProcessorFeatures != nil { @@ -8767,9 +8543,9 @@ func awsRestjson1_serializeDocumentAwsRdsDbStatusInfo(v *types.AwsRdsDbStatusInf ok.String(*v.Message) } - if v.Normal != nil { + if v.Normal { ok := object.Key("Normal") - ok.Boolean(*v.Normal) + ok.Boolean(v.Normal) } if v.Status != nil { @@ -8785,17 +8561,13 @@ func awsRestjson1_serializeDocumentAwsRdsDbStatusInfo(v *types.AwsRdsDbStatusInf return nil } -func awsRestjson1_serializeDocumentAwsRdsDbStatusInfos(v []*types.AwsRdsDbStatusInfo, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRdsDbStatusInfos(v []types.AwsRdsDbStatusInfo, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRdsDbStatusInfo(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRdsDbStatusInfo(&v[i], av); err != nil { return err } } @@ -8877,17 +8649,13 @@ func awsRestjson1_serializeDocumentAwsRdsDbSubnetGroupSubnetAvailabilityZone(v * return nil } -func awsRestjson1_serializeDocumentAwsRdsDbSubnetGroupSubnets(v []*types.AwsRdsDbSubnetGroupSubnet, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRdsDbSubnetGroupSubnets(v []types.AwsRdsDbSubnetGroupSubnet, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRdsDbSubnetGroupSubnet(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRdsDbSubnetGroupSubnet(&v[i], av); err != nil { return err } } @@ -8937,17 +8705,13 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterClusterNode(v *types.AwsRed return nil } -func awsRestjson1_serializeDocumentAwsRedshiftClusterClusterNodes(v []*types.AwsRedshiftClusterClusterNode, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRedshiftClusterClusterNodes(v []types.AwsRedshiftClusterClusterNode, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRedshiftClusterClusterNode(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRedshiftClusterClusterNode(&v[i], av); err != nil { return err } } @@ -8978,17 +8742,13 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterClusterParameterGroup(v *ty return nil } -func awsRestjson1_serializeDocumentAwsRedshiftClusterClusterParameterGroups(v []*types.AwsRedshiftClusterClusterParameterGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRedshiftClusterClusterParameterGroups(v []types.AwsRedshiftClusterClusterParameterGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRedshiftClusterClusterParameterGroup(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRedshiftClusterClusterParameterGroup(&v[i], av); err != nil { return err } } @@ -9017,17 +8777,13 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterClusterParameterStatus(v *t return nil } -func awsRestjson1_serializeDocumentAwsRedshiftClusterClusterParameterStatusList(v []*types.AwsRedshiftClusterClusterParameterStatus, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRedshiftClusterClusterParameterStatusList(v []types.AwsRedshiftClusterClusterParameterStatus, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRedshiftClusterClusterParameterStatus(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRedshiftClusterClusterParameterStatus(&v[i], av); err != nil { return err } } @@ -9051,17 +8807,13 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterClusterSecurityGroup(v *typ return nil } -func awsRestjson1_serializeDocumentAwsRedshiftClusterClusterSecurityGroups(v []*types.AwsRedshiftClusterClusterSecurityGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRedshiftClusterClusterSecurityGroups(v []types.AwsRedshiftClusterClusterSecurityGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRedshiftClusterClusterSecurityGroup(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRedshiftClusterClusterSecurityGroup(&v[i], av); err != nil { return err } } @@ -9077,14 +8829,14 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterClusterSnapshotCopyStatus(v ok.String(*v.DestinationRegion) } - if v.ManualSnapshotRetentionPeriod != nil { + if v.ManualSnapshotRetentionPeriod != 0 { ok := object.Key("ManualSnapshotRetentionPeriod") - ok.Integer(*v.ManualSnapshotRetentionPeriod) + ok.Integer(v.ManualSnapshotRetentionPeriod) } - if v.RetentionPeriod != nil { + if v.RetentionPeriod != 0 { ok := object.Key("RetentionPeriod") - ok.Integer(*v.RetentionPeriod) + ok.Integer(v.RetentionPeriod) } if v.SnapshotCopyGrantName != nil { @@ -9117,17 +8869,13 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterDeferredMaintenanceWindow(v return nil } -func awsRestjson1_serializeDocumentAwsRedshiftClusterDeferredMaintenanceWindows(v []*types.AwsRedshiftClusterDeferredMaintenanceWindow, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRedshiftClusterDeferredMaintenanceWindows(v []types.AwsRedshiftClusterDeferredMaintenanceWindow, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRedshiftClusterDeferredMaintenanceWindow(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRedshiftClusterDeferredMaintenanceWindow(&v[i], av); err != nil { return err } } @@ -9138,14 +8886,14 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterDetails(v *types.AwsRedshif object := value.Object() defer object.Close() - if v.AllowVersionUpgrade != nil { + if v.AllowVersionUpgrade { ok := object.Key("AllowVersionUpgrade") - ok.Boolean(*v.AllowVersionUpgrade) + ok.Boolean(v.AllowVersionUpgrade) } - if v.AutomatedSnapshotRetentionPeriod != nil { + if v.AutomatedSnapshotRetentionPeriod != 0 { ok := object.Key("AutomatedSnapshotRetentionPeriod") - ok.Integer(*v.AutomatedSnapshotRetentionPeriod) + ok.Integer(v.AutomatedSnapshotRetentionPeriod) } if v.AvailabilityZone != nil { @@ -9245,9 +8993,9 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterDetails(v *types.AwsRedshif ok.String(*v.ElasticResizeNumberOfNodeOptions) } - if v.Encrypted != nil { + if v.Encrypted { ok := object.Key("Encrypted") - ok.Boolean(*v.Encrypted) + ok.Boolean(v.Encrypted) } if v.Endpoint != nil { @@ -9257,9 +9005,9 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterDetails(v *types.AwsRedshif } } - if v.EnhancedVpcRouting != nil { + if v.EnhancedVpcRouting { ok := object.Key("EnhancedVpcRouting") - ok.Boolean(*v.EnhancedVpcRouting) + ok.Boolean(v.EnhancedVpcRouting) } if v.ExpectedNextSnapshotScheduleTime != nil { @@ -9296,9 +9044,9 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterDetails(v *types.AwsRedshif ok.String(*v.MaintenanceTrackName) } - if v.ManualSnapshotRetentionPeriod != nil { + if v.ManualSnapshotRetentionPeriod != 0 { ok := object.Key("ManualSnapshotRetentionPeriod") - ok.Integer(*v.ManualSnapshotRetentionPeriod) + ok.Integer(v.ManualSnapshotRetentionPeriod) } if v.MasterUsername != nil { @@ -9316,9 +9064,9 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterDetails(v *types.AwsRedshif ok.String(*v.NodeType) } - if v.NumberOfNodes != nil { + if v.NumberOfNodes != 0 { ok := object.Key("NumberOfNodes") - ok.Integer(*v.NumberOfNodes) + ok.Integer(v.NumberOfNodes) } if v.PendingActions != nil { @@ -9340,9 +9088,9 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterDetails(v *types.AwsRedshif ok.String(*v.PreferredMaintenanceWindow) } - if v.PubliclyAccessible != nil { + if v.PubliclyAccessible { ok := object.Key("PubliclyAccessible") - ok.Boolean(*v.PubliclyAccessible) + ok.Boolean(v.PubliclyAccessible) } if v.ResizeInfo != nil { @@ -9410,9 +9158,9 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterEndpoint(v *types.AwsRedshi ok.String(*v.Address) } - if v.Port != nil { + if v.Port != 0 { ok := object.Key("Port") - ok.Integer(*v.Port) + ok.Integer(v.Port) } return nil @@ -9457,17 +9205,13 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterIamRole(v *types.AwsRedshif return nil } -func awsRestjson1_serializeDocumentAwsRedshiftClusterIamRoles(v []*types.AwsRedshiftClusterIamRole, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRedshiftClusterIamRoles(v []types.AwsRedshiftClusterIamRole, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRedshiftClusterIamRole(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRedshiftClusterIamRole(&v[i], av); err != nil { return err } } @@ -9478,9 +9222,9 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterPendingModifiedValues(v *ty object := value.Object() defer object.Close() - if v.AutomatedSnapshotRetentionPeriod != nil { + if v.AutomatedSnapshotRetentionPeriod != 0 { ok := object.Key("AutomatedSnapshotRetentionPeriod") - ok.Integer(*v.AutomatedSnapshotRetentionPeriod) + ok.Integer(v.AutomatedSnapshotRetentionPeriod) } if v.ClusterIdentifier != nil { @@ -9503,9 +9247,9 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterPendingModifiedValues(v *ty ok.String(*v.EncryptionType) } - if v.EnhancedVpcRouting != nil { + if v.EnhancedVpcRouting { ok := object.Key("EnhancedVpcRouting") - ok.Boolean(*v.EnhancedVpcRouting) + ok.Boolean(v.EnhancedVpcRouting) } if v.MaintenanceTrackName != nil { @@ -9523,14 +9267,14 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterPendingModifiedValues(v *ty ok.String(*v.NodeType) } - if v.NumberOfNodes != nil { + if v.NumberOfNodes != 0 { ok := object.Key("NumberOfNodes") - ok.Integer(*v.NumberOfNodes) + ok.Integer(v.NumberOfNodes) } - if v.PubliclyAccessible != nil { + if v.PubliclyAccessible { ok := object.Key("PubliclyAccessible") - ok.Boolean(*v.PubliclyAccessible) + ok.Boolean(v.PubliclyAccessible) } return nil @@ -9540,9 +9284,9 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterResizeInfo(v *types.AwsReds object := value.Object() defer object.Close() - if v.AllowCancelResize != nil { + if v.AllowCancelResize { ok := object.Key("AllowCancelResize") - ok.Boolean(*v.AllowCancelResize) + ok.Boolean(v.AllowCancelResize) } if v.ResizeType != nil { @@ -9557,29 +9301,29 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterRestoreStatus(v *types.AwsR object := value.Object() defer object.Close() - if v.CurrentRestoreRateInMegaBytesPerSecond != nil { + if v.CurrentRestoreRateInMegaBytesPerSecond != 0 { ok := object.Key("CurrentRestoreRateInMegaBytesPerSecond") - ok.Double(*v.CurrentRestoreRateInMegaBytesPerSecond) + ok.Double(v.CurrentRestoreRateInMegaBytesPerSecond) } - if v.ElapsedTimeInSeconds != nil { + if v.ElapsedTimeInSeconds != 0 { ok := object.Key("ElapsedTimeInSeconds") - ok.Long(*v.ElapsedTimeInSeconds) + ok.Long(v.ElapsedTimeInSeconds) } - if v.EstimatedTimeToCompletionInSeconds != nil { + if v.EstimatedTimeToCompletionInSeconds != 0 { ok := object.Key("EstimatedTimeToCompletionInSeconds") - ok.Long(*v.EstimatedTimeToCompletionInSeconds) + ok.Long(v.EstimatedTimeToCompletionInSeconds) } - if v.ProgressInMegaBytes != nil { + if v.ProgressInMegaBytes != 0 { ok := object.Key("ProgressInMegaBytes") - ok.Long(*v.ProgressInMegaBytes) + ok.Long(v.ProgressInMegaBytes) } - if v.SnapshotSizeInMegaBytes != nil { + if v.SnapshotSizeInMegaBytes != 0 { ok := object.Key("SnapshotSizeInMegaBytes") - ok.Long(*v.SnapshotSizeInMegaBytes) + ok.Long(v.SnapshotSizeInMegaBytes) } if v.Status != nil { @@ -9607,17 +9351,13 @@ func awsRestjson1_serializeDocumentAwsRedshiftClusterVpcSecurityGroup(v *types.A return nil } -func awsRestjson1_serializeDocumentAwsRedshiftClusterVpcSecurityGroups(v []*types.AwsRedshiftClusterVpcSecurityGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsRedshiftClusterVpcSecurityGroups(v []types.AwsRedshiftClusterVpcSecurityGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsRedshiftClusterVpcSecurityGroup(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsRedshiftClusterVpcSecurityGroup(&v[i], av); err != nil { return err } } @@ -9698,17 +9438,13 @@ func awsRestjson1_serializeDocumentAwsS3BucketServerSideEncryptionRule(v *types. return nil } -func awsRestjson1_serializeDocumentAwsS3BucketServerSideEncryptionRules(v []*types.AwsS3BucketServerSideEncryptionRule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsS3BucketServerSideEncryptionRules(v []types.AwsS3BucketServerSideEncryptionRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsS3BucketServerSideEncryptionRule(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsS3BucketServerSideEncryptionRule(&v[i], av); err != nil { return err } } @@ -9756,9 +9492,9 @@ func awsRestjson1_serializeDocumentAwsSecretsManagerSecretDetails(v *types.AwsSe object := value.Object() defer object.Close() - if v.Deleted != nil { + if v.Deleted { ok := object.Key("Deleted") - ok.Boolean(*v.Deleted) + ok.Boolean(v.Deleted) } if v.Description != nil { @@ -9776,9 +9512,9 @@ func awsRestjson1_serializeDocumentAwsSecretsManagerSecretDetails(v *types.AwsSe ok.String(*v.Name) } - if v.RotationEnabled != nil { + if v.RotationEnabled { ok := object.Key("RotationEnabled") - ok.Boolean(*v.RotationEnabled) + ok.Boolean(v.RotationEnabled) } if v.RotationLambdaArn != nil { @@ -9786,9 +9522,9 @@ func awsRestjson1_serializeDocumentAwsSecretsManagerSecretDetails(v *types.AwsSe ok.String(*v.RotationLambdaArn) } - if v.RotationOccurredWithinFrequency != nil { + if v.RotationOccurredWithinFrequency { ok := object.Key("RotationOccurredWithinFrequency") - ok.Boolean(*v.RotationOccurredWithinFrequency) + ok.Boolean(v.RotationOccurredWithinFrequency) } if v.RotationRules != nil { @@ -9805,9 +9541,9 @@ func awsRestjson1_serializeDocumentAwsSecretsManagerSecretRotationRules(v *types object := value.Object() defer object.Close() - if v.AutomaticallyAfterDays != nil { + if v.AutomaticallyAfterDays != 0 { ok := object.Key("AutomaticallyAfterDays") - ok.Integer(*v.AutomaticallyAfterDays) + ok.Integer(v.AutomaticallyAfterDays) } return nil @@ -9829,9 +9565,9 @@ func awsRestjson1_serializeDocumentAwsSecurityFinding(v *types.AwsSecurityFindin } } - if v.Confidence != nil { + if v.Confidence != 0 { ok := object.Key("Confidence") - ok.Integer(*v.Confidence) + ok.Integer(v.Confidence) } if v.CreatedAt != nil { @@ -9839,9 +9575,9 @@ func awsRestjson1_serializeDocumentAwsSecurityFinding(v *types.AwsSecurityFindin ok.String(*v.CreatedAt) } - if v.Criticality != nil { + if v.Criticality != 0 { ok := object.Key("Criticality") - ok.Integer(*v.Criticality) + ok.Integer(v.Criticality) } if v.Description != nil { @@ -10636,34 +10372,26 @@ func awsRestjson1_serializeDocumentAwsSecurityFindingIdentifier(v *types.AwsSecu return nil } -func awsRestjson1_serializeDocumentAwsSecurityFindingIdentifierList(v []*types.AwsSecurityFindingIdentifier, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsSecurityFindingIdentifierList(v []types.AwsSecurityFindingIdentifier, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsSecurityFindingIdentifier(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsSecurityFindingIdentifier(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentAwsSecurityFindingList(v []*types.AwsSecurityFinding, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsSecurityFindingList(v []types.AwsSecurityFinding, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsSecurityFinding(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsSecurityFinding(&v[i], av); err != nil { return err } } @@ -10716,17 +10444,13 @@ func awsRestjson1_serializeDocumentAwsSnsTopicSubscription(v *types.AwsSnsTopicS return nil } -func awsRestjson1_serializeDocumentAwsSnsTopicSubscriptionList(v []*types.AwsSnsTopicSubscription, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsSnsTopicSubscriptionList(v []types.AwsSnsTopicSubscription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsSnsTopicSubscription(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsSnsTopicSubscription(&v[i], av); err != nil { return err } } @@ -10742,9 +10466,9 @@ func awsRestjson1_serializeDocumentAwsSqsQueueDetails(v *types.AwsSqsQueueDetail ok.String(*v.DeadLetterTargetArn) } - if v.KmsDataKeyReusePeriodSeconds != nil { + if v.KmsDataKeyReusePeriodSeconds != 0 { ok := object.Key("KmsDataKeyReusePeriodSeconds") - ok.Integer(*v.KmsDataKeyReusePeriodSeconds) + ok.Integer(v.KmsDataKeyReusePeriodSeconds) } if v.KmsMasterKeyId != nil { @@ -10814,9 +10538,9 @@ func awsRestjson1_serializeDocumentAwsWafWebAclRule(v *types.AwsWafWebAclRule, v } } - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("Priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } if v.RuleId != nil { @@ -10832,17 +10556,13 @@ func awsRestjson1_serializeDocumentAwsWafWebAclRule(v *types.AwsWafWebAclRule, v return nil } -func awsRestjson1_serializeDocumentAwsWafWebAclRuleList(v []*types.AwsWafWebAclRule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAwsWafWebAclRuleList(v []types.AwsWafWebAclRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentAwsWafWebAclRule(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentAwsWafWebAclRule(&v[i], av); err != nil { return err } } @@ -10871,17 +10591,13 @@ func awsRestjson1_serializeDocumentCidrBlockAssociation(v *types.CidrBlockAssoci return nil } -func awsRestjson1_serializeDocumentCidrBlockAssociationList(v []*types.CidrBlockAssociation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCidrBlockAssociationList(v []types.CidrBlockAssociation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCidrBlockAssociation(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCidrBlockAssociation(&v[i], av); err != nil { return err } } @@ -10945,9 +10661,9 @@ func awsRestjson1_serializeDocumentCvss(v *types.Cvss, value smithyjson.Value) e object := value.Object() defer object.Close() - if v.BaseScore != nil { + if v.BaseScore != 0 { ok := object.Key("BaseScore") - ok.Double(*v.BaseScore) + ok.Double(v.BaseScore) } if v.BaseVector != nil { @@ -10963,17 +10679,13 @@ func awsRestjson1_serializeDocumentCvss(v *types.Cvss, value smithyjson.Value) e return nil } -func awsRestjson1_serializeDocumentCvssList(v []*types.Cvss, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCvssList(v []types.Cvss, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCvss(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCvss(&v[i], av); err != nil { return err } } @@ -11004,17 +10716,13 @@ func awsRestjson1_serializeDocumentDateFilter(v *types.DateFilter, value smithyj return nil } -func awsRestjson1_serializeDocumentDateFilterList(v []*types.DateFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDateFilterList(v []types.DateFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDateFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDateFilter(&v[i], av); err != nil { return err } } @@ -11030,25 +10738,21 @@ func awsRestjson1_serializeDocumentDateRange(v *types.DateRange, value smithyjso ok.String(string(v.Unit)) } - if v.Value != nil { + if v.Value != 0 { ok := object.Key("Value") - ok.Integer(*v.Value) + ok.Integer(v.Value) } return nil } -func awsRestjson1_serializeDocumentFieldMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFieldMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -11065,17 +10769,13 @@ func awsRestjson1_serializeDocumentIpFilter(v *types.IpFilter, value smithyjson. return nil } -func awsRestjson1_serializeDocumentIpFilterList(v []*types.IpFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIpFilterList(v []types.IpFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentIpFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentIpFilter(&v[i], av); err != nil { return err } } @@ -11104,17 +10804,13 @@ func awsRestjson1_serializeDocumentIpv6CidrBlockAssociation(v *types.Ipv6CidrBlo return nil } -func awsRestjson1_serializeDocumentIpv6CidrBlockAssociationList(v []*types.Ipv6CidrBlockAssociation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIpv6CidrBlockAssociationList(v []types.Ipv6CidrBlockAssociation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentIpv6CidrBlockAssociation(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentIpv6CidrBlockAssociation(&v[i], av); err != nil { return err } } @@ -11133,17 +10829,13 @@ func awsRestjson1_serializeDocumentKeywordFilter(v *types.KeywordFilter, value s return nil } -func awsRestjson1_serializeDocumentKeywordFilterList(v []*types.KeywordFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentKeywordFilterList(v []types.KeywordFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentKeywordFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentKeywordFilter(&v[i], av); err != nil { return err } } @@ -11194,17 +10886,13 @@ func awsRestjson1_serializeDocumentMalware(v *types.Malware, value smithyjson.Va return nil } -func awsRestjson1_serializeDocumentMalwareList(v []*types.Malware, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMalwareList(v []types.Malware, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMalware(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMalware(&v[i], av); err != nil { return err } } @@ -11233,17 +10921,13 @@ func awsRestjson1_serializeDocumentMapFilter(v *types.MapFilter, value smithyjso return nil } -func awsRestjson1_serializeDocumentMapFilterList(v []*types.MapFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMapFilterList(v []types.MapFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMapFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMapFilter(&v[i], av); err != nil { return err } } @@ -11269,9 +10953,9 @@ func awsRestjson1_serializeDocumentNetwork(v *types.Network, value smithyjson.Va ok.String(*v.DestinationIpV6) } - if v.DestinationPort != nil { + if v.DestinationPort != 0 { ok := object.Key("DestinationPort") - ok.Integer(*v.DestinationPort) + ok.Integer(v.DestinationPort) } if len(v.Direction) > 0 { @@ -11311,9 +10995,9 @@ func awsRestjson1_serializeDocumentNetwork(v *types.Network, value smithyjson.Va ok.String(*v.SourceMac) } - if v.SourcePort != nil { + if v.SourcePort != 0 { ok := object.Key("SourcePort") - ok.Integer(*v.SourcePort) + ok.Integer(v.SourcePort) } return nil @@ -11397,34 +11081,26 @@ func awsRestjson1_serializeDocumentNetworkPathComponentDetails(v *types.NetworkP return nil } -func awsRestjson1_serializeDocumentNetworkPathList(v []*types.NetworkPathComponent, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNetworkPathList(v []types.NetworkPathComponent, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentNetworkPathComponent(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentNetworkPathComponent(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentNonEmptyStringList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNonEmptyStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -11472,35 +11148,31 @@ func awsRestjson1_serializeDocumentNumberFilter(v *types.NumberFilter, value smi object := value.Object() defer object.Close() - if v.Eq != nil { + if v.Eq != 0 { ok := object.Key("Eq") - ok.Double(*v.Eq) + ok.Double(v.Eq) } - if v.Gte != nil { + if v.Gte != 0 { ok := object.Key("Gte") - ok.Double(*v.Gte) + ok.Double(v.Gte) } - if v.Lte != nil { + if v.Lte != 0 { ok := object.Key("Lte") - ok.Double(*v.Lte) + ok.Double(v.Lte) } return nil } -func awsRestjson1_serializeDocumentNumberFilterList(v []*types.NumberFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNumberFilterList(v []types.NumberFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentNumberFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentNumberFilter(&v[i], av); err != nil { return err } } @@ -11511,9 +11183,9 @@ func awsRestjson1_serializeDocumentPatchSummary(v *types.PatchSummary, value smi object := value.Object() defer object.Close() - if v.FailedCount != nil { + if v.FailedCount != 0 { ok := object.Key("FailedCount") - ok.Integer(*v.FailedCount) + ok.Integer(v.FailedCount) } if v.Id != nil { @@ -11521,29 +11193,29 @@ func awsRestjson1_serializeDocumentPatchSummary(v *types.PatchSummary, value smi ok.String(*v.Id) } - if v.InstalledCount != nil { + if v.InstalledCount != 0 { ok := object.Key("InstalledCount") - ok.Integer(*v.InstalledCount) + ok.Integer(v.InstalledCount) } - if v.InstalledOtherCount != nil { + if v.InstalledOtherCount != 0 { ok := object.Key("InstalledOtherCount") - ok.Integer(*v.InstalledOtherCount) + ok.Integer(v.InstalledOtherCount) } - if v.InstalledPendingReboot != nil { + if v.InstalledPendingReboot != 0 { ok := object.Key("InstalledPendingReboot") - ok.Integer(*v.InstalledPendingReboot) + ok.Integer(v.InstalledPendingReboot) } - if v.InstalledRejectedCount != nil { + if v.InstalledRejectedCount != 0 { ok := object.Key("InstalledRejectedCount") - ok.Integer(*v.InstalledRejectedCount) + ok.Integer(v.InstalledRejectedCount) } - if v.MissingCount != nil { + if v.MissingCount != 0 { ok := object.Key("MissingCount") - ok.Integer(*v.MissingCount) + ok.Integer(v.MissingCount) } if v.Operation != nil { @@ -11573,30 +11245,26 @@ func awsRestjson1_serializeDocumentPortRange(v *types.PortRange, value smithyjso object := value.Object() defer object.Close() - if v.Begin != nil { + if v.Begin != 0 { ok := object.Key("Begin") - ok.Integer(*v.Begin) + ok.Integer(v.Begin) } - if v.End != nil { + if v.End != 0 { ok := object.Key("End") - ok.Integer(*v.End) + ok.Integer(v.End) } return nil } -func awsRestjson1_serializeDocumentPortRangeList(v []*types.PortRange, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPortRangeList(v []types.PortRange, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentPortRange(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentPortRange(&v[i], av); err != nil { return err } } @@ -11617,9 +11285,9 @@ func awsRestjson1_serializeDocumentProcessDetails(v *types.ProcessDetails, value ok.String(*v.Name) } - if v.ParentPid != nil { + if v.ParentPid != 0 { ok := object.Key("ParentPid") - ok.Integer(*v.ParentPid) + ok.Integer(v.ParentPid) } if v.Path != nil { @@ -11627,9 +11295,9 @@ func awsRestjson1_serializeDocumentProcessDetails(v *types.ProcessDetails, value ok.String(*v.Path) } - if v.Pid != nil { + if v.Pid != 0 { ok := object.Key("Pid") - ok.Integer(*v.Pid) + ok.Integer(v.Pid) } if v.TerminatedAt != nil { @@ -11674,34 +11342,26 @@ func awsRestjson1_serializeDocumentRelatedFinding(v *types.RelatedFinding, value return nil } -func awsRestjson1_serializeDocumentRelatedFindingList(v []*types.RelatedFinding, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRelatedFindingList(v []types.RelatedFinding, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentRelatedFinding(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentRelatedFinding(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentRelatedRequirementsList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRelatedRequirementsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -12053,34 +11713,26 @@ func awsRestjson1_serializeDocumentResourceDetails(v *types.ResourceDetails, val return nil } -func awsRestjson1_serializeDocumentResourceList(v []*types.Resource, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourceList(v []types.Resource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentResource(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentResource(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentSecurityGroups(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSecurityGroups(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -12094,9 +11746,9 @@ func awsRestjson1_serializeDocumentSeverity(v *types.Severity, value smithyjson. ok.String(string(v.Label)) } - if v.Normalized != nil { + if v.Normalized != 0 { ok := object.Key("Normalized") - ok.Integer(*v.Normalized) + ok.Integer(v.Normalized) } if v.Original != nil { @@ -12104,9 +11756,9 @@ func awsRestjson1_serializeDocumentSeverity(v *types.Severity, value smithyjson. ok.String(*v.Original) } - if v.Product != nil { + if v.Product != 0 { ok := object.Key("Product") - ok.Double(*v.Product) + ok.Double(v.Product) } return nil @@ -12121,14 +11773,14 @@ func awsRestjson1_serializeDocumentSeverityUpdate(v *types.SeverityUpdate, value ok.String(string(v.Label)) } - if v.Normalized != nil { + if v.Normalized != 0 { ok := object.Key("Normalized") - ok.Integer(*v.Normalized) + ok.Integer(v.Normalized) } - if v.Product != nil { + if v.Product != 0 { ok := object.Key("Product") - ok.Double(*v.Product) + ok.Double(v.Product) } return nil @@ -12166,34 +11818,26 @@ func awsRestjson1_serializeDocumentSoftwarePackage(v *types.SoftwarePackage, val return nil } -func awsRestjson1_serializeDocumentSoftwarePackageList(v []*types.SoftwarePackage, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSoftwarePackageList(v []types.SoftwarePackage, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSoftwarePackage(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSoftwarePackage(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentSortCriteria(v []*types.SortCriterion, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSortCriteria(v []types.SortCriterion, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSortCriterion(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSortCriterion(&v[i], av); err != nil { return err } } @@ -12217,32 +11861,24 @@ func awsRestjson1_serializeDocumentSortCriterion(v *types.SortCriterion, value s return nil } -func awsRestjson1_serializeDocumentStandardsInputParameterMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStandardsInputParameterMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentStandardsSubscriptionArns(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStandardsSubscriptionArns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -12266,17 +11902,13 @@ func awsRestjson1_serializeDocumentStandardsSubscriptionRequest(v *types.Standar return nil } -func awsRestjson1_serializeDocumentStandardsSubscriptionRequests(v []*types.StandardsSubscriptionRequest, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStandardsSubscriptionRequests(v []types.StandardsSubscriptionRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentStandardsSubscriptionRequest(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentStandardsSubscriptionRequest(&v[i], av); err != nil { return err } } @@ -12300,17 +11932,13 @@ func awsRestjson1_serializeDocumentStatusReason(v *types.StatusReason, value smi return nil } -func awsRestjson1_serializeDocumentStatusReasonsList(v []*types.StatusReason, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStatusReasonsList(v []types.StatusReason, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentStatusReason(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentStatusReason(&v[i], av); err != nil { return err } } @@ -12334,49 +11962,37 @@ func awsRestjson1_serializeDocumentStringFilter(v *types.StringFilter, value smi return nil } -func awsRestjson1_serializeDocumentStringFilterList(v []*types.StringFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStringFilterList(v []types.StringFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentStringFilter(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentStringFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentStringList(v []*string, 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 vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -12418,34 +12034,26 @@ func awsRestjson1_serializeDocumentThreatIntelIndicator(v *types.ThreatIntelIndi return nil } -func awsRestjson1_serializeDocumentThreatIntelIndicatorList(v []*types.ThreatIntelIndicator, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentThreatIntelIndicatorList(v []types.ThreatIntelIndicator, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentThreatIntelIndicator(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentThreatIntelIndicator(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTypeList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTypeList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -12497,17 +12105,13 @@ func awsRestjson1_serializeDocumentVulnerability(v *types.Vulnerability, value s return nil } -func awsRestjson1_serializeDocumentVulnerabilityList(v []*types.Vulnerability, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentVulnerabilityList(v []types.Vulnerability, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentVulnerability(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentVulnerability(&v[i], av); err != nil { return err } } @@ -12570,17 +12174,13 @@ func awsRestjson1_serializeDocumentWafExcludedRule(v *types.WafExcludedRule, val return nil } -func awsRestjson1_serializeDocumentWafExcludedRuleList(v []*types.WafExcludedRule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentWafExcludedRuleList(v []types.WafExcludedRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentWafExcludedRule(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentWafExcludedRule(&v[i], av); err != nil { return err } } diff --git a/service/securityhub/types/types.go b/service/securityhub/types/types.go index 8f9ad7cdc7e..ca80db377d1 100644 --- a/service/securityhub/types/types.go +++ b/service/securityhub/types/types.go @@ -63,16 +63,16 @@ type AwsApiGatewayCanarySettings struct { DeploymentId *string // The percentage of traffic that is diverted to a canary deployment. - PercentTraffic *float64 + PercentTraffic float64 // Stage variables that are overridden in the canary release deployment. The // variables include new stage variables that are introduced in the canary. Each // variable is represented as a string-to-string map between the stage variable // name and the variable value. - StageVariableOverrides map[string]*string + StageVariableOverrides map[string]string // Indicates whether the canary deployment uses the stage cache. - UseStageCache *bool + UseStageCache bool } // Contains information about the endpoints for the API. @@ -81,26 +81,26 @@ type AwsApiGatewayEndpointConfiguration struct { // A list of endpoint types for the REST API. For an edge-optimized API, the // endpoint type is EDGE. For a Regional API, the endpoint type is REGIONAL. For a // private API, the endpoint type is PRIVATE. - Types []*string + Types []string } // Defines settings for a method for the stage. type AwsApiGatewayMethodSettings struct { // Indicates whether the cached responses are encrypted. - CacheDataEncrypted *bool + CacheDataEncrypted bool // Specifies the time to live (TTL), in seconds, for cached responses. The higher // the TTL, the longer the response is cached. - CacheTtlInSeconds *int32 + CacheTtlInSeconds int32 // Indicates whether responses are cached and returned for requests. For responses // to be cached, a cache cluster must be enabled on the stage. - CachingEnabled *bool + CachingEnabled bool // Indicates whether data trace logging is enabled for the method. Data trace // logging affects the log entries that are pushed to CloudWatch Logs. - DataTraceEnabled *bool + DataTraceEnabled bool // The HTTP method. You can use an asterisk (*) as a wildcard to apply method // settings to multiple methods. @@ -114,10 +114,10 @@ type AwsApiGatewayMethodSettings struct { LoggingLevel *string // Indicates whether CloudWatch metrics are enabled for the method. - MetricsEnabled *bool + MetricsEnabled bool // Indicates whether authorization is required for a cache invalidation request. - RequireAuthorizationForCacheControl *bool + RequireAuthorizationForCacheControl bool // The resource path for this method. Forward slashes (/) are encoded as ~1 . The // initial slash must include a forward slash. For example, the path value @@ -127,10 +127,10 @@ type AwsApiGatewayMethodSettings struct { ResourcePath *string // The throttling burst limit for the method. - ThrottlingBurstLimit *int32 + ThrottlingBurstLimit int32 // The throttling rate limit for the method. - ThrottlingRateLimit *float64 + ThrottlingRateLimit float64 // Indicates how to handle unauthorized requests for cache invalidation. Valid // values: FAIL_WITH_403 | SUCCEED_WITH_RESPONSE_HEADER | @@ -148,7 +148,7 @@ type AwsApiGatewayRestApiDetails struct { ApiKeySource *string // The list of binary media types supported by the REST API. - BinaryMediaTypes []*string + BinaryMediaTypes []string // Indicates when the API was created. Uses the date-time format specified in RFC // 3339 section 5.6, Internet Date/Time Format @@ -167,7 +167,7 @@ type AwsApiGatewayRestApiDetails struct { // The minimum size in bytes of a payload before compression is enabled. If null, // then compression is disabled. If 0, then all payloads are compressed. - MinimumCompressionSize *int32 + MinimumCompressionSize int32 // The name of the REST API. Name *string @@ -183,7 +183,7 @@ type AwsApiGatewayStageDetails struct { AccessLogSettings *AwsApiGatewayAccessLogSettings // Indicates whether a cache cluster is enabled for the stage. - CacheClusterEnabled *bool + CacheClusterEnabled bool // If a cache cluster is enabled, the size of the cache cluster. CacheClusterSize *string @@ -219,13 +219,13 @@ type AwsApiGatewayStageDetails struct { LastUpdatedDate *string // Defines the method settings for the stage. - MethodSettings []*AwsApiGatewayMethodSettings + MethodSettings []AwsApiGatewayMethodSettings // The name of the stage. StageName *string // Indicates whether active tracing with AWS X-Ray is enabled for the stage. - TracingEnabled *bool + TracingEnabled bool // A map that defines the stage variables for the stage. Variable names can have // alphanumeric and underscore characters. Variable values can contain the @@ -237,7 +237,7 @@ type AwsApiGatewayStageDetails struct { // // * Special // characters -._~:/?#&=, - Variables map[string]*string + Variables map[string]string // The ARN of the web ACL associated with the stage. WebAclArn *string @@ -291,10 +291,10 @@ type AwsApiGatewayV2RouteSettings struct { // Indicates whether data trace logging is enabled. Data trace logging affects the // log entries that are pushed to CloudWatch Logs. Supported only for WebSocket // APIs. - DataTraceEnabled *bool + DataTraceEnabled bool // Indicates whether detailed metrics are enabled. - DetailedMetricsEnabled *bool + DetailedMetricsEnabled bool // The logging level. The logging level affects the log entries that are pushed to // CloudWatch Logs. Supported only for WebSocket APIs. If the logging level is @@ -304,10 +304,10 @@ type AwsApiGatewayV2RouteSettings struct { LoggingLevel *string // The throttling burst limit. - ThrottlingBurstLimit *int32 + ThrottlingBurstLimit int32 // The throttling rate limit. - ThrottlingRateLimit *float64 + ThrottlingRateLimit float64 } // Contains information about a version 2 stage for Amazon API Gateway. @@ -317,10 +317,10 @@ type AwsApiGatewayV2StageDetails struct { AccessLogSettings *AwsApiGatewayAccessLogSettings // Indicates whether the stage is managed by API Gateway. - ApiGatewayManaged *bool + ApiGatewayManaged bool // Indicates whether updates to an API automatically trigger a new deployment. - AutoDeploy *bool + AutoDeploy bool // Indicates when the stage was created. Uses the date-time format specified in RFC // 3339 section 5.6, Internet Date/Time Format @@ -363,7 +363,7 @@ type AwsApiGatewayV2StageDetails struct { // // * Special // characters -._~:/?#&=, - StageVariables map[string]*string + StageVariables map[string]string } // Provides details about an auto scaling group. @@ -377,7 +377,7 @@ type AwsAutoScalingAutoScalingGroupDetails struct { // The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before it // checks the health status of an EC2 instance that has come into service. - HealthCheckGracePeriod *int32 + HealthCheckGracePeriod int32 // The service to use for the health checks. HealthCheckType *string @@ -386,7 +386,7 @@ type AwsAutoScalingAutoScalingGroupDetails struct { LaunchConfigurationName *string // The list of load balancers associated with the group. - LoadBalancerNames []*string + LoadBalancerNames []string } // Provides details about an AWS Certificate Manager certificate. @@ -409,12 +409,12 @@ type AwsCertificateManagerCertificateDetails struct { // Contains information about the initial validation of each domain name that // occurs as a result of the RequestCertificate request. Only provided if the // certificate type is AMAZON_ISSUED. - DomainValidationOptions []*AwsCertificateManagerCertificateDomainValidationOption + DomainValidationOptions []AwsCertificateManagerCertificateDomainValidationOption // Contains a list of Extended Key Usage X.509 v3 extension objects. Each object // specifies a purpose for which the certificate public key can be used and // consists of a name and an object identifier (OID). - ExtendedKeyUsages []*AwsCertificateManagerCertificateExtendedKeyUsage + ExtendedKeyUsages []AwsCertificateManagerCertificateExtendedKeyUsage // For a failed certificate request, the reason for the failure. Valid values: // NO_AVAILABLE_CONTACTS | ADDITIONAL_VERIFICATION_REQUIRED | DOMAIN_NOT_ALLOWED | @@ -431,7 +431,7 @@ type AwsCertificateManagerCertificateDetails struct { ImportedAt *string // The list of ARNs for the AWS resources that use the certificate. - InUseBy []*string + InUseBy []string // Indicates when the certificate was issued. Provided if the certificate type is // AMAZON_ISSUED. Uses the date-time format specified in RFC 3339 section 5.6, @@ -448,7 +448,7 @@ type AwsCertificateManagerCertificateDetails struct { KeyAlgorithm *string // A list of key usage X.509 v3 extension objects. - KeyUsages []*AwsCertificateManagerCertificateKeyUsage + KeyUsages []AwsCertificateManagerCertificateKeyUsage // The time after which the certificate becomes invalid. Uses the date-time format // specified in RFC 3339 section 5.6, Internet Date/Time Format @@ -493,7 +493,7 @@ type AwsCertificateManagerCertificateDetails struct { // key that is contained in the certificate. The subject alternative names include // the canonical domain name (CN) of the certificate and additional domain names // that can be used to connect to the website. - SubjectAlternativeNames []*string + SubjectAlternativeNames []string // The source of the certificate. For certificates that AWS Certificate Manager // provides, Type is AMAZON_ISSUED. For certificates that are imported with @@ -524,7 +524,7 @@ type AwsCertificateManagerCertificateDomainValidationOption struct { // A list of email addresses that AWS Certificate Manager uses to send domain // validation emails. - ValidationEmails []*string + ValidationEmails []string // The method used to validate the domain name. ValidationMethod *string @@ -567,7 +567,7 @@ type AwsCertificateManagerCertificateRenewalSummary struct { // Information about the validation of each domain name in the certificate, as it // pertains to AWS Certificate Manager managed renewal. Provided only when the // certificate type is AMAZON_ISSUED. - DomainValidationOptions []*AwsCertificateManagerCertificateDomainValidationOption + DomainValidationOptions []AwsCertificateManagerCertificateDomainValidationOption // The status of the AWS Certificate Manager managed renewal of the certificate. // Valid values: PENDING_AUTO_RENEWAL | PENDING_VALIDATION | SUCCESS | FAILED @@ -624,7 +624,7 @@ type AwsCloudFrontDistributionCacheBehavior struct { type AwsCloudFrontDistributionCacheBehaviors struct { // The cache behaviors for the distribution. - Items []*AwsCloudFrontDistributionCacheBehavior + Items []AwsCloudFrontDistributionCacheBehavior } // Contains information about the default cache configuration for the distribution. @@ -698,10 +698,10 @@ type AwsCloudFrontDistributionLogging struct { Bucket *string // With this field, you can enable or disable the selected distribution. - Enabled *bool + Enabled bool // Specifies whether you want CloudFront to include cookies in access logs. - IncludeCookies *bool + IncludeCookies bool // An optional string that you want CloudFront to use as a prefix to the access log // filenames for this distribution. @@ -726,10 +726,10 @@ type AwsCloudFrontDistributionOriginGroupFailover struct { type AwsCloudFrontDistributionOriginGroupFailoverStatusCodes struct { // The list of status code values that can cause a failover to the next origin. - Items []*int32 + Items []int32 // The number of status codes that can cause a failover. - Quantity *int32 + Quantity int32 } // Provides information about origin groups that are associated with the @@ -737,7 +737,7 @@ type AwsCloudFrontDistributionOriginGroupFailoverStatusCodes struct { type AwsCloudFrontDistributionOriginGroups struct { // The list of origin groups. - Items []*AwsCloudFrontDistributionOriginGroup + Items []AwsCloudFrontDistributionOriginGroup } // A complex type that describes the Amazon S3 bucket, HTTP server (for example, a @@ -766,7 +766,7 @@ type AwsCloudFrontDistributionOriginItem struct { type AwsCloudFrontDistributionOrigins struct { // A complex type that contains origins or origin groups for this distribution. - Items []*AwsCloudFrontDistributionOriginItem + Items []AwsCloudFrontDistributionOriginItem } // Information about an origin that is an S3 bucket that is not configured with @@ -788,28 +788,28 @@ type AwsCloudTrailTrailDetails struct { CloudWatchLogsRoleArn *string // Indicates whether the trail has custom event selectors. - HasCustomEventSelectors *bool + HasCustomEventSelectors bool // The Region where the trail was created. HomeRegion *string // Indicates whether the trail publishes events from global services such as IAM to // the log files. - IncludeGlobalServiceEvents *bool + IncludeGlobalServiceEvents bool // Indicates whether the trail applies only to the current Region or to all // Regions. - IsMultiRegionTrail *bool + IsMultiRegionTrail bool // Whether the trail is created for all accounts in an organization in AWS // Organizations, or only for the current AWS account. - IsOrganizationTrail *bool + IsOrganizationTrail bool // The AWS KMS key ID to use to encrypt the logs. KmsKeyId *string // Indicates whether CloudTrail log file validation is enabled. - LogFileValidationEnabled *bool + LogFileValidationEnabled bool // The name of the trail. Name *string @@ -916,10 +916,10 @@ type AwsCodeBuildProjectEnvironmentRegistryCredential struct { type AwsCodeBuildProjectSource struct { // Information about the Git clone depth for the build project. - GitCloneDepth *int32 + GitCloneDepth int32 // Whether to ignore SSL warnings while connecting to the project source code. - InsecureSsl *bool + InsecureSsl bool // Information about the location of the source code to be built. Valid values // include: @@ -982,10 +982,10 @@ type AwsCodeBuildProjectSource struct { type AwsCodeBuildProjectVpcConfig struct { // A list of one or more security group IDs in your Amazon VPC. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of one or more subnet IDs in your Amazon VPC. - Subnets []*string + Subnets []string // The ID of the VPC. VpcId *string @@ -996,22 +996,22 @@ type AwsCodeBuildProjectVpcConfig struct { type AwsCorsConfiguration struct { // Indicates whether the CORS request includes credentials. - AllowCredentials *bool + AllowCredentials bool // The allowed headers for CORS requests. - AllowHeaders []*string + AllowHeaders []string // The allowed methods for CORS requests. - AllowMethods []*string + AllowMethods []string // The allowed origins for CORS requests. - AllowOrigins []*string + AllowOrigins []string // The exposed headers for CORS requests. - ExposeHeaders []*string + ExposeHeaders []string // The number of seconds for which the browser caches preflight request results. - MaxAge *int32 + MaxAge int32 } // Contains a definition of an attribute for the table. @@ -1041,7 +1041,7 @@ type AwsDynamoDbTableBillingModeSummary struct { type AwsDynamoDbTableDetails struct { // A list of attribute definitions for the table. - AttributeDefinitions []*AwsDynamoDbTableAttributeDefinition + AttributeDefinitions []AwsDynamoDbTableAttributeDefinition // Information about the billing for read/write capacity on the table. BillingModeSummary *AwsDynamoDbTableBillingModeSummary @@ -1053,16 +1053,16 @@ type AwsDynamoDbTableDetails struct { CreationDateTime *string // List of global secondary indexes for the table. - GlobalSecondaryIndexes []*AwsDynamoDbTableGlobalSecondaryIndex + GlobalSecondaryIndexes []AwsDynamoDbTableGlobalSecondaryIndex // The version of global tables being used. GlobalTableVersion *string // The number of items in the table. - ItemCount *int32 + ItemCount int32 // The primary key structure for the table. - KeySchema []*AwsDynamoDbTableKeySchema + KeySchema []AwsDynamoDbTableKeySchema // The ARN of the latest stream for the table. LatestStreamArn *string @@ -1071,13 +1071,13 @@ type AwsDynamoDbTableDetails struct { LatestStreamLabel *string // The list of local secondary indexes for the table. - LocalSecondaryIndexes []*AwsDynamoDbTableLocalSecondaryIndex + LocalSecondaryIndexes []AwsDynamoDbTableLocalSecondaryIndex // Information about the provisioned throughput for the table. ProvisionedThroughput *AwsDynamoDbTableProvisionedThroughput // The list of replicas of this table. - Replicas []*AwsDynamoDbTableReplica + Replicas []AwsDynamoDbTableReplica // Information about the restore for the table. RestoreSummary *AwsDynamoDbTableRestoreSummary @@ -1095,7 +1095,7 @@ type AwsDynamoDbTableDetails struct { TableName *string // The total size of the table in bytes. - TableSizeBytes *int64 + TableSizeBytes int64 // The current status of the table. TableStatus *string @@ -1105,7 +1105,7 @@ type AwsDynamoDbTableDetails struct { type AwsDynamoDbTableGlobalSecondaryIndex struct { // Whether the index is currently backfilling. - Backfilling *bool + Backfilling bool // The ARN of the index. IndexArn *string @@ -1114,16 +1114,16 @@ type AwsDynamoDbTableGlobalSecondaryIndex struct { IndexName *string // The total size in bytes of the index. - IndexSizeBytes *int64 + IndexSizeBytes int64 // The current status of the index. IndexStatus *string // The number of items in the index. - ItemCount *int32 + ItemCount int32 // The key schema for the index. - KeySchema []*AwsDynamoDbTableKeySchema + KeySchema []AwsDynamoDbTableKeySchema // Attributes that are copied from the table into an index. Projection *AwsDynamoDbTableProjection @@ -1153,7 +1153,7 @@ type AwsDynamoDbTableLocalSecondaryIndex struct { IndexName *string // The complete key schema for the index. - KeySchema []*AwsDynamoDbTableKeySchema + KeySchema []AwsDynamoDbTableKeySchema // Attributes that are copied from the table into the index. These are in addition // to the primary key attributes and index key attributes, which are automatically @@ -1167,7 +1167,7 @@ type AwsDynamoDbTableProjection struct { // The nonkey attributes that are projected into the index. For each attribute, // provide the attribute name. - NonKeyAttributes []*string + NonKeyAttributes []string // The types of attributes that are projected into the index. ProjectionType *string @@ -1191,29 +1191,29 @@ type AwsDynamoDbTableProvisionedThroughput struct { // The number of times during the current UTC calendar day that the provisioned // throughput was decreased. - NumberOfDecreasesToday *int32 + NumberOfDecreasesToday int32 // The maximum number of strongly consistent reads consumed per second before // DynamoDB returns a ThrottlingException. - ReadCapacityUnits *int32 + ReadCapacityUnits int32 // The maximum number of writes consumed per second before DynamoDB returns a // ThrottlingException. - WriteCapacityUnits *int32 + WriteCapacityUnits int32 } // Replica-specific configuration for the provisioned throughput. type AwsDynamoDbTableProvisionedThroughputOverride struct { // The read capacity units for the replica. - ReadCapacityUnits *int32 + ReadCapacityUnits int32 } // Information about a replica of a DynamoDB table. type AwsDynamoDbTableReplica struct { // List of global secondary indexes for the replica. - GlobalSecondaryIndexes []*AwsDynamoDbTableReplicaGlobalSecondaryIndex + GlobalSecondaryIndexes []AwsDynamoDbTableReplicaGlobalSecondaryIndex // The identifier of the AWS KMS customer master key (CMK) that will be used for // AWS KMS encryption for the replica. @@ -1252,7 +1252,7 @@ type AwsDynamoDbTableRestoreSummary struct { RestoreDateTime *string // Whether a restore is currently in progress. - RestoreInProgress *bool + RestoreInProgress bool // The ARN of the source backup from which the table was restored. SourceBackupArn *string @@ -1286,7 +1286,7 @@ type AwsDynamoDbTableSseDescription struct { type AwsDynamoDbTableStreamSpecification struct { // Indicates whether DynamoDB Streams is enabled on the table. - StreamEnabled *bool + StreamEnabled bool // Determines the information that is written to the table. StreamViewType *string @@ -1340,10 +1340,10 @@ type AwsEc2InstanceDetails struct { ImageId *string // The IPv4 addresses associated with the instance. - IpV4Addresses []*string + IpV4Addresses []string // The IPv6 addresses associated with the instance. - IpV6Addresses []*string + IpV6Addresses []string // The key name associated with the instance. KeyName *string @@ -1378,10 +1378,10 @@ type AwsEc2NetworkInterfaceAttachment struct { // Indicates whether the network interface is deleted when the instance is // terminated. - DeleteOnTermination *bool + DeleteOnTermination bool // The device index of the network interface attachment on the instance. - DeviceIndex *int32 + DeviceIndex int32 // The ID of the instance. InstanceId *string @@ -1403,10 +1403,10 @@ type AwsEc2NetworkInterfaceDetails struct { NetworkInterfaceId *string // Security groups for the network interface. - SecurityGroups []*AwsEc2NetworkInterfaceSecurityGroup + SecurityGroups []AwsEc2NetworkInterfaceSecurityGroup // Indicates whether traffic to or from the instance is validated. - SourceDestCheck *bool + SourceDestCheck bool } // A security group associated with the network interface. @@ -1429,10 +1429,10 @@ type AwsEc2SecurityGroupDetails struct { GroupName *string // The inbound rules associated with the security group. - IpPermissions []*AwsEc2SecurityGroupIpPermission + IpPermissions []AwsEc2SecurityGroupIpPermission // [VPC only] The outbound rules associated with the security group. - IpPermissionsEgress []*AwsEc2SecurityGroupIpPermission + IpPermissionsEgress []AwsEc2SecurityGroupIpPermission // The AWS account ID of the owner of the security group. OwnerId *string @@ -1447,7 +1447,7 @@ type AwsEc2SecurityGroupIpPermission struct { // The start of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 // type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all // ICMP/ICMPv6 types, you must specify all codes. - FromPort *int32 + FromPort int32 // The IP protocol name (tcp, udp, icmp, icmpv6) or number. [VPC only] Use -1 to // specify all protocols. When authorizing security group rules, specifying -1 or a @@ -1458,23 +1458,23 @@ type AwsEc2SecurityGroupIpPermission struct { IpProtocol *string // The IPv4 ranges. - IpRanges []*AwsEc2SecurityGroupIpRange + IpRanges []AwsEc2SecurityGroupIpRange // The IPv6 ranges. - Ipv6Ranges []*AwsEc2SecurityGroupIpv6Range + Ipv6Ranges []AwsEc2SecurityGroupIpv6Range // [VPC only] The prefix list IDs for an AWS service. With outbound rules, this is // the AWS service to access through a VPC endpoint from instances associated with // the security group. - PrefixListIds []*AwsEc2SecurityGroupPrefixListId + PrefixListIds []AwsEc2SecurityGroupPrefixListId // The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. // A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 // types, you must specify all codes. - ToPort *int32 + ToPort int32 // The security group and AWS account ID pairs. - UserIdGroupPairs []*AwsEc2SecurityGroupUserIdGroupPair + UserIdGroupPairs []AwsEc2SecurityGroupUserIdGroupPair } // A range of IPv4 addresses. @@ -1535,7 +1535,7 @@ type AwsEc2VolumeAttachment struct { AttachTime *string // Whether the EBS volume is deleted when the EC2 instance is terminated. - DeleteOnTermination *bool + DeleteOnTermination bool // The identifier of the EC2 instance. InstanceId *string @@ -1548,7 +1548,7 @@ type AwsEc2VolumeAttachment struct { type AwsEc2VolumeDetails struct { // The volume attachments. - Attachments []*AwsEc2VolumeAttachment + Attachments []AwsEc2VolumeAttachment // Indicates when the volume was created. Uses the date-time format specified in // RFC 3339 section 5.6, Internet Date/Time Format @@ -1557,14 +1557,14 @@ type AwsEc2VolumeDetails struct { CreateTime *string // Whether the volume is encrypted. - Encrypted *bool + Encrypted bool // The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) // that was used to protect the volume encryption key for the volume. KmsKeyId *string // The size of the volume, in GiBs. - Size *int32 + Size int32 // The snapshot from which the volume was created. SnapshotId *string @@ -1577,7 +1577,7 @@ type AwsEc2VolumeDetails struct { type AwsEc2VpcDetails struct { // Information about the IPv4 CIDR blocks associated with the VPC. - CidrBlockAssociationSet []*CidrBlockAssociation + CidrBlockAssociationSet []CidrBlockAssociation // The identifier of the set of Dynamic Host Configuration Protocol (DHCP) options // that are associated with the VPC. If the default options are associated with the @@ -1585,7 +1585,7 @@ type AwsEc2VpcDetails struct { DhcpOptionsId *string // Information about the IPv6 CIDR blocks associated with the VPC. - Ipv6CidrBlockAssociationSet []*Ipv6CidrBlockAssociation + Ipv6CidrBlockAssociationSet []Ipv6CidrBlockAssociation // The current state of the VPC. State *string @@ -1620,7 +1620,7 @@ type AwsElasticsearchDomainDetails struct { Endpoint *string // The key-value pair that exists if the Amazon ES domain uses VPC endpoints. - Endpoints map[string]*string + Endpoints map[string]string // Details about the configuration for node-to-node encryption. NodeToNodeEncryptionOptions *AwsElasticsearchDomainNodeToNodeEncryptionOptions @@ -1634,7 +1634,7 @@ type AwsElasticsearchDomainDetails struct { type AwsElasticsearchDomainDomainEndpointOptions struct { // Whether to require that all traffic to the domain arrive over HTTPS. - EnforceHTTPS *bool + EnforceHTTPS bool // The TLS security policy to apply to the HTTPS endpoint of the Elasticsearch // domain. Valid values: @@ -1650,7 +1650,7 @@ type AwsElasticsearchDomainDomainEndpointOptions struct { type AwsElasticsearchDomainEncryptionAtRestOptions struct { // Whether encryption at rest is enabled. - Enabled *bool + Enabled bool // The KMS key ID. Takes the form 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a. KmsKeyId *string @@ -1660,20 +1660,20 @@ type AwsElasticsearchDomainEncryptionAtRestOptions struct { type AwsElasticsearchDomainNodeToNodeEncryptionOptions struct { // Whether node-to-node encryption is enabled. - Enabled *bool + Enabled bool } // Information that Amazon ES derives based on VPCOptions for the domain. type AwsElasticsearchDomainVPCOptions struct { // The list of Availability Zones associated with the VPC subnets. - AvailabilityZones []*string + AvailabilityZones []string // The list of security group IDs associated with the VPC endpoints for the domain. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of subnet IDs associated with the VPC endpoints for the domain. - SubnetIds []*string + SubnetIds []string // ID for the VPC. VPCId *string @@ -1698,7 +1698,7 @@ type AwsElbLbCookieStickinessPolicy struct { // The amount of time, in seconds, after which the cookie is considered stale. If // an expiration period is not specified, the stickiness session lasts for the // duration of the browser session. - CookieExpirationPeriod *int64 + CookieExpirationPeriod int64 // The name of the policy. The name must be unique within the set of policies for // the load balancer. @@ -1710,10 +1710,10 @@ type AwsElbLoadBalancerAccessLog struct { // The interval in minutes for publishing the access logs. You can publish access // logs either every 5 minutes or every 60 minutes. - EmitInterval *int32 + EmitInterval int32 // Indicates whether access logs are enabled for the load balancer. - Enabled *bool + Enabled bool // The name of the S3 bucket where the access logs are stored. S3BucketName *string @@ -1753,10 +1753,10 @@ type AwsElbLoadBalancerAttributes struct { type AwsElbLoadBalancerBackendServerDescription struct { // The port on which the EC2 instance is listening. - InstancePort *int32 + InstancePort int32 // The names of the policies that are enabled for the EC2 instance. - PolicyNames []*string + PolicyNames []string } // Contains information about the connection draining configuration for the load @@ -1764,11 +1764,11 @@ type AwsElbLoadBalancerBackendServerDescription struct { type AwsElbLoadBalancerConnectionDraining struct { // Indicates whether connection draining is enabled for the load balancer. - Enabled *bool + Enabled bool // The maximum time, in seconds, to keep the existing connections open before // deregistering the instances. - Timeout *int32 + Timeout int32 } // Contains connection settings for the load balancer. @@ -1776,24 +1776,24 @@ type AwsElbLoadBalancerConnectionSettings struct { // The time, in seconds, that the connection can be idle (no data is sent over the // connection) before it is closed by the load balancer. - IdleTimeout *int32 + IdleTimeout int32 } // Contains cross-zone load balancing settings for the load balancer. type AwsElbLoadBalancerCrossZoneLoadBalancing struct { // Indicates whether cross-zone load balancing is enabled for the load balancer. - Enabled *bool + Enabled bool } // Contains details about a Classic Load Balancer. type AwsElbLoadBalancerDetails struct { // The list of Availability Zones for the load balancer. - AvailabilityZones []*string + AvailabilityZones []string // Information about the configuration of the EC2 instances. - BackendServerDescriptions []*AwsElbLoadBalancerBackendServerDescription + BackendServerDescriptions []AwsElbLoadBalancerBackendServerDescription // The name of the Amazon Route 53 hosted zone for the load balancer. CanonicalHostedZoneName *string @@ -1814,10 +1814,10 @@ type AwsElbLoadBalancerDetails struct { HealthCheck *AwsElbLoadBalancerHealthCheck // List of EC2 instances for the load balancer. - Instances []*AwsElbLoadBalancerInstance + Instances []AwsElbLoadBalancerInstance // The policies that are enabled for the load balancer listeners. - ListenerDescriptions []*AwsElbLoadBalancerListenerDescription + ListenerDescriptions []AwsElbLoadBalancerListenerDescription // The attributes for a load balancer. LoadBalancerAttributes *AwsElbLoadBalancerAttributes @@ -1836,14 +1836,14 @@ type AwsElbLoadBalancerDetails struct { // The security groups for the load balancer. Only provided if the load balancer is // in a VPC. - SecurityGroups []*string + SecurityGroups []string // Information about the security group for the load balancer. This is the security // group that is used for inbound rules. SourceSecurityGroup *AwsElbLoadBalancerSourceSecurityGroup // The list of subnet identifiers for the load balancer. - Subnets []*string + Subnets []string // The identifier of the VPC for the load balancer. VpcId *string @@ -1855,11 +1855,11 @@ type AwsElbLoadBalancerHealthCheck struct { // The number of consecutive health check successes required before the instance is // moved to the Healthy state. - HealthyThreshold *int32 + HealthyThreshold int32 // The approximate interval, in seconds, between health checks of an individual // instance. - Interval *int32 + Interval int32 // The instance that is being checked. The target specifies the protocol and port. // The available protocols are TCP, SSL, HTTP, and HTTPS. The range of valid ports @@ -1871,11 +1871,11 @@ type AwsElbLoadBalancerHealthCheck struct { // The amount of time, in seconds, during which no response means a failed health // check. - Timeout *int32 + Timeout int32 // The number of consecutive health check failures that must occur before the // instance is moved to the Unhealthy state. - UnhealthyThreshold *int32 + UnhealthyThreshold int32 } // Provides information about an EC2 instance for a load balancer. @@ -1889,7 +1889,7 @@ type AwsElbLoadBalancerInstance struct { type AwsElbLoadBalancerListener struct { // The port on which the instance is listening. - InstancePort *int32 + InstancePort int32 // The protocol to use to route traffic to instances. Valid values: HTTP | HTTPS | // TCP | SSL @@ -1898,7 +1898,7 @@ type AwsElbLoadBalancerListener struct { // The port on which the load balancer is listening. On EC2-VPC, you can specify // any port from the range 1-65535. On EC2-Classic, you can specify any port from // the following list: 25, 80, 443, 465, 587, 1024-65535. - LoadBalancerPort *int32 + LoadBalancerPort int32 // The load balancer transport protocol to use for routing. Valid values: HTTP | // HTTPS | TCP | SSL @@ -1915,20 +1915,20 @@ type AwsElbLoadBalancerListenerDescription struct { Listener *AwsElbLoadBalancerListener // The policies enabled for the listener. - PolicyNames []*string + PolicyNames []string } // Contains information about the policies for a load balancer. type AwsElbLoadBalancerPolicies struct { // The stickiness policies that are created using CreateAppCookieStickinessPolicy. - AppCookieStickinessPolicies []*AwsElbAppCookieStickinessPolicy + AppCookieStickinessPolicies []AwsElbAppCookieStickinessPolicy // The stickiness policies that are created using CreateLBCookieStickinessPolicy. - LbCookieStickinessPolicies []*AwsElbLbCookieStickinessPolicy + LbCookieStickinessPolicies []AwsElbLbCookieStickinessPolicy // The policies other than the stickiness policies. - OtherPolicies []*string + OtherPolicies []string } // Contains information about the security group for the load balancer. @@ -1945,7 +1945,7 @@ type AwsElbLoadBalancerSourceSecurityGroup struct { type AwsElbv2LoadBalancerDetails struct { // The Availability Zones for the load balancer. - AvailabilityZones []*AvailabilityZone + AvailabilityZones []AvailabilityZone // The ID of the Amazon Route 53 hosted zone associated with the load balancer. CanonicalHostedZoneId *string @@ -1968,7 +1968,7 @@ type AwsElbv2LoadBalancerDetails struct { Scheme *string // The IDs of the security groups for the load balancer. - SecurityGroups []*string + SecurityGroups []string // The state of the load balancer. State *LoadBalancerState @@ -2036,7 +2036,7 @@ type AwsIamAccessKeySessionContextAttributes struct { CreationDate *string // Indicates whether the session used multi-factor authentication (MFA). - MfaAuthenticated *bool + MfaAuthenticated bool } // Information about the entity that created the session. @@ -2073,7 +2073,7 @@ type AwsIamAttachedManagedPolicy struct { type AwsIamGroupDetails struct { // A list of the managed policies that are attached to the IAM group. - AttachedManagedPolicies []*AwsIamAttachedManagedPolicy + AttachedManagedPolicies []AwsIamAttachedManagedPolicy // Indicates when the IAM group was created. Uses the date-time format specified in // RFC 3339 section 5.6, Internet Date/Time Format @@ -2088,7 +2088,7 @@ type AwsIamGroupDetails struct { GroupName *string // The list of inline policies that are embedded in the group. - GroupPolicyList []*AwsIamGroupPolicy + GroupPolicyList []AwsIamGroupPolicy // The path to the group. Path *string @@ -2123,7 +2123,7 @@ type AwsIamInstanceProfile struct { Path *string // The roles associated with the instance profile. - Roles []*AwsIamInstanceProfileRole + Roles []AwsIamInstanceProfileRole } // Information about a role associated with an instance profile. @@ -2166,7 +2166,7 @@ type AwsIamPermissionsBoundary struct { type AwsIamPolicyDetails struct { // The number of users, groups, and roles that the policy is attached to. - AttachmentCount *int32 + AttachmentCount int32 // When the policy was created. Uses the date-time format specified in RFC 3339 // section 5.6, Internet Date/Time Format @@ -2181,14 +2181,14 @@ type AwsIamPolicyDetails struct { Description *string // Whether the policy can be attached to a user, group, or role. - IsAttachable *bool + IsAttachable bool // The path to the policy. Path *string // The number of users and roles that use the policy to set the permissions // boundary. - PermissionsBoundaryUsageCount *int32 + PermissionsBoundaryUsageCount int32 // The unique identifier of the policy. PolicyId *string @@ -2197,7 +2197,7 @@ type AwsIamPolicyDetails struct { PolicyName *string // List of versions of the policy. - PolicyVersionList []*AwsIamPolicyVersion + PolicyVersionList []AwsIamPolicyVersion // When the policy was most recently updated. Uses the date-time format specified // in RFC 3339 section 5.6, Internet Date/Time Format @@ -2216,7 +2216,7 @@ type AwsIamPolicyVersion struct { CreateDate *string // Whether the version is the default version. - IsDefaultVersion *bool + IsDefaultVersion bool // The identifier of the policy version. VersionId *string @@ -2229,7 +2229,7 @@ type AwsIamRoleDetails struct { AssumeRolePolicyDocument *string // The list of the managed policies that are attached to the role. - AttachedManagedPolicies []*AwsIamAttachedManagedPolicy + AttachedManagedPolicies []AwsIamAttachedManagedPolicy // Indicates when the role was created. Uses the date-time format specified in RFC // 3339 section 5.6, Internet Date/Time Format @@ -2238,11 +2238,11 @@ type AwsIamRoleDetails struct { CreateDate *string // The list of instance profiles that contain this role. - InstanceProfileList []*AwsIamInstanceProfile + InstanceProfileList []AwsIamInstanceProfile // The maximum session duration (in seconds) that you want to set for the specified // role. - MaxSessionDuration *int32 + MaxSessionDuration int32 // The path to the role. Path *string @@ -2258,7 +2258,7 @@ type AwsIamRoleDetails struct { RoleName *string // The list of inline policies that are embedded in the role. - RolePolicyList []*AwsIamRolePolicy + RolePolicyList []AwsIamRolePolicy } // An inline policy that is embedded in the role. @@ -2272,7 +2272,7 @@ type AwsIamRolePolicy struct { type AwsIamUserDetails struct { // A list of the managed policies that are attached to the user. - AttachedManagedPolicies []*AwsIamAttachedManagedPolicy + AttachedManagedPolicies []AwsIamAttachedManagedPolicy // Indicates when the user was created. Uses the date-time format specified in RFC // 3339 section 5.6, Internet Date/Time Format @@ -2281,7 +2281,7 @@ type AwsIamUserDetails struct { CreateDate *string // A list of IAM groups that the user belongs to. - GroupList []*string + GroupList []string // The path to the user. Path *string @@ -2296,7 +2296,7 @@ type AwsIamUserDetails struct { UserName *string // The list of inline policies that are embedded in the user. - UserPolicyList []*AwsIamUserPolicy + UserPolicyList []AwsIamUserPolicy } // Information about an inline policy that is embedded in the user. @@ -2316,7 +2316,7 @@ type AwsKmsKeyDetails struct { // 3339 section 5.6, Internet Date/Time Format // (https://tools.ietf.org/html/rfc3339#section-5.6). The value cannot contain // spaces. For example, 2020-03-22T13:22:13.933Z. - CreationDate *float64 + CreationDate float64 // A description of the key. Description *string @@ -2397,13 +2397,13 @@ type AwsLambdaFunctionDetails struct { LastModified *string // The function's layers. - Layers []*AwsLambdaFunctionLayer + Layers []AwsLambdaFunctionLayer // For Lambda@Edge functions, the ARN of the master function. MasterArn *string // The memory that's allocated to the function. - MemorySize *int32 + MemorySize int32 // The latest updated revision of the function or alias. RevisionId *string @@ -2415,7 +2415,7 @@ type AwsLambdaFunctionDetails struct { Runtime *string // The amount of time that Lambda allows a function to run before stopping it. - Timeout *int32 + Timeout int32 // The function's AWS X-Ray tracing configuration. TracingConfig *AwsLambdaFunctionTracingConfig @@ -2434,7 +2434,7 @@ type AwsLambdaFunctionEnvironment struct { Error *AwsLambdaFunctionEnvironmentError // Environment variable key-value pairs. - Variables map[string]*string + Variables map[string]string } // Error messages for environment variables that couldn't be applied. @@ -2454,7 +2454,7 @@ type AwsLambdaFunctionLayer struct { Arn *string // The size of the layer archive in bytes. - CodeSize *int32 + CodeSize int32 } // The function's AWS X-Ray tracing configuration. @@ -2469,10 +2469,10 @@ type AwsLambdaFunctionTracingConfig struct { type AwsLambdaFunctionVpcConfig struct { // A list of VPC security groups IDs. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of VPC subnet IDs. - SubnetIds []*string + SubnetIds []string // The ID of the VPC. VpcId *string @@ -2484,7 +2484,7 @@ type AwsLambdaLayerVersionDetails struct { // The layer's compatible runtimes. Maximum number of five items. Valid values: // nodejs10.x | nodejs12.x | java8 | java11 | python2.7 | python3.6 | python3.7 | // python3.8 | dotnetcore1.0 | dotnetcore2.1 | go1.x | ruby2.5 | provided - CompatibleRuntimes []*string + CompatibleRuntimes []string // Indicates when the version was created. Uses the date-time format specified in // RFC 3339 section 5.6, Internet Date/Time Format @@ -2493,7 +2493,7 @@ type AwsLambdaLayerVersionDetails struct { CreatedDate *string // The version number. - Version *int64 + Version int64 } // An IAM role that is associated with the Amazon RDS DB cluster. @@ -2514,17 +2514,17 @@ type AwsRdsDbClusterDetails struct { // For all database engines except Aurora, specifies the allocated storage size in // gibibytes (GiB). - AllocatedStorage *int32 + AllocatedStorage int32 // A list of the IAM roles that are associated with the DB cluster. - AssociatedRoles []*AwsRdsDbClusterAssociatedRole + AssociatedRoles []AwsRdsDbClusterAssociatedRole // A list of Availability Zones (AZs) where instances in the DB cluster can be // created. - AvailabilityZones []*string + AvailabilityZones []string // The number of days for which automated backups are retained. - BackupRetentionPeriod *int32 + BackupRetentionPeriod int32 // Indicates when the DB cluster was created, in Universal Coordinated Time (UTC). // Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time @@ -2533,14 +2533,14 @@ type AwsRdsDbClusterDetails struct { ClusterCreateTime *string // Whether tags are copied from the DB cluster to snapshots of the DB cluster. - CopyTagsToSnapshot *bool + CopyTagsToSnapshot bool // Whether the DB cluster is a clone of a DB cluster owned by a different AWS // account. - CrossAccountClone *bool + CrossAccountClone bool // A list of custom endpoints for the DB cluster. - CustomEndpoints []*string + CustomEndpoints []string // The name of the database. DatabaseName *string @@ -2550,10 +2550,10 @@ type AwsRdsDbClusterDetails struct { DbClusterIdentifier *string // The list of instances that make up the DB cluster. - DbClusterMembers []*AwsRdsDbClusterMember + DbClusterMembers []AwsRdsDbClusterMember // The list of option group memberships for this DB cluster. - DbClusterOptionGroupMemberships []*AwsRdsDbClusterOptionGroupMembership + DbClusterOptionGroupMemberships []AwsRdsDbClusterOptionGroupMembership // The name of the DB cluster parameter group for the DB cluster. DbClusterParameterGroup *string @@ -2567,15 +2567,15 @@ type AwsRdsDbClusterDetails struct { DbSubnetGroup *string // Whether the DB cluster has deletion protection enabled. - DeletionProtection *bool + DeletionProtection bool // The Active Directory domain membership records that are associated with the DB // cluster. - DomainMemberships []*AwsRdsDbDomainMembership + DomainMemberships []AwsRdsDbDomainMembership // A list of log types that this DB cluster is configured to export to CloudWatch // Logs. - EnabledCloudWatchLogsExports []*string + EnabledCloudWatchLogsExports []string // The connection endpoint for the primary instance of the DB cluster. Endpoint *string @@ -2594,10 +2594,10 @@ type AwsRdsDbClusterDetails struct { HostedZoneId *string // Whether the HTTP endpoint for an Aurora Serverless DB cluster is enabled. - HttpEndpointEnabled *bool + HttpEndpointEnabled bool // Whether the mapping of IAM accounts to database accounts is enabled. - IamDatabaseAuthenticationEnabled *bool + IamDatabaseAuthenticationEnabled bool // The ARN of the AWS KMS master key that is used to encrypt the database instances // in the DB cluster. @@ -2607,10 +2607,10 @@ type AwsRdsDbClusterDetails struct { MasterUsername *string // Whether the DB cluster has instances in multiple Availability Zones. - MultiAz *bool + MultiAz bool // The port number on which the DB instances in the DB cluster accept connections. - Port *int32 + Port int32 // The range of time each day when automated backups are created, if automated // backups are enabled. Uses the format HH:MM-HH:MM. For example, 04:52-05:22. @@ -2622,7 +2622,7 @@ type AwsRdsDbClusterDetails struct { PreferredMaintenanceWindow *string // The identifiers of the read replicas that are associated with this DB cluster. - ReadReplicaIdentifiers []*string + ReadReplicaIdentifiers []string // The reader endpoint for the DB cluster. ReaderEndpoint *string @@ -2631,10 +2631,10 @@ type AwsRdsDbClusterDetails struct { Status *string // Whether the DB cluster is encrypted. - StorageEncrypted *bool + StorageEncrypted bool // A list of VPC security groups that the DB cluster belongs to. - VpcSecurityGroups []*AwsRdsDbInstanceVpcSecurityGroup + VpcSecurityGroups []AwsRdsDbInstanceVpcSecurityGroup } // Information about an instance in the DB cluster. @@ -2647,11 +2647,11 @@ type AwsRdsDbClusterMember struct { DbInstanceIdentifier *string // Whether the cluster member is the primary instance for the DB cluster. - IsClusterWriter *bool + IsClusterWriter bool // Specifies the order in which an Aurora replica is promoted to the primary // instance when the existing primary instance fails. - PromotionTier *int32 + PromotionTier int32 } // Information about an option group membership for a DB cluster. @@ -2668,10 +2668,10 @@ type AwsRdsDbClusterOptionGroupMembership struct { type AwsRdsDbClusterSnapshotDetails struct { // Specifies the allocated storage size in gibibytes (GiB). - AllocatedStorage *int32 + AllocatedStorage int32 // A list of Availability Zones where instances in the DB cluster can be created. - AvailabilityZones []*string + AvailabilityZones []string // Indicates when the DB cluster was created, in Universal Coordinated Time (UTC). // Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time @@ -2692,7 +2692,7 @@ type AwsRdsDbClusterSnapshotDetails struct { EngineVersion *string // Whether mapping of IAM accounts to database accounts is enabled. - IamDatabaseAuthenticationEnabled *bool + IamDatabaseAuthenticationEnabled bool // The ARN of the AWS KMS master key that is used to encrypt the database instances // in the DB cluster. @@ -2705,10 +2705,10 @@ type AwsRdsDbClusterSnapshotDetails struct { MasterUsername *string // Specifies the percentage of the estimated data that has been transferred. - PercentProgress *int32 + PercentProgress int32 // The port number on which the DB instances in the DB cluster accept connections. - Port *int32 + Port int32 // Indicates when the snapshot was taken. Uses the date-time format specified in // RFC 3339 section 5.6, Internet Date/Time Format @@ -2723,7 +2723,7 @@ type AwsRdsDbClusterSnapshotDetails struct { Status *string // Whether the DB cluster is encrypted. - StorageEncrypted *bool + StorageEncrypted bool // The VPC ID that is associated with the DB cluster snapshot. VpcId *string @@ -2777,20 +2777,20 @@ type AwsRdsDbInstanceAssociatedRole struct { type AwsRdsDbInstanceDetails struct { // The amount of storage (in gigabytes) to initially allocate for the DB instance. - AllocatedStorage *int32 + AllocatedStorage int32 // The AWS Identity and Access Management (IAM) roles associated with the DB // instance. - AssociatedRoles []*AwsRdsDbInstanceAssociatedRole + AssociatedRoles []AwsRdsDbInstanceAssociatedRole // Indicates whether minor version patches are applied automatically. - AutoMinorVersionUpgrade *bool + AutoMinorVersionUpgrade bool // The Availability Zone where the DB instance will be created. AvailabilityZone *string // The number of days for which to retain automated backups. - BackupRetentionPeriod *int32 + BackupRetentionPeriod int32 // The identifier of the CA certificate for this DB instance. CACertificateIdentifier *string @@ -2799,7 +2799,7 @@ type AwsRdsDbInstanceDetails struct { CharacterSetName *string // Whether to copy resource tags to snapshots of the DB instance. - CopyTagsToSnapshot *bool + CopyTagsToSnapshot bool // If the DB instance is a member of a DB cluster, contains the name of the DB // cluster that the DB instance is a member of. @@ -2822,16 +2822,16 @@ type AwsRdsDbInstanceDetails struct { // Specifies the port that the DB instance listens on. If the DB instance is part // of a DB cluster, this can be a different port than the DB cluster port. - DbInstancePort *int32 + DbInstancePort int32 // The current status of the DB instance. DbInstanceStatus *string // A list of the DB parameter groups to assign to the DB instance. - DbParameterGroups []*AwsRdsDbParameterGroup + DbParameterGroups []AwsRdsDbParameterGroup // A list of the DB security groups to assign to the DB instance. - DbSecurityGroups []*string + DbSecurityGroups []string // Information about the subnet group that is associated with the DB instance. DbSubnetGroup *AwsRdsDbSubnetGroup @@ -2843,14 +2843,14 @@ type AwsRdsDbInstanceDetails struct { // Indicates whether the DB instance has deletion protection enabled. When deletion // protection is enabled, the database cannot be deleted. - DeletionProtection *bool + DeletionProtection bool // The Active Directory domain membership records associated with the DB instance. - DomainMemberships []*AwsRdsDbDomainMembership + DomainMemberships []AwsRdsDbDomainMembership // A list of log types that this DB instance is configured to export to CloudWatch // Logs. - EnabledCloudWatchLogsExports []*string + EnabledCloudWatchLogsExports []string // Specifies the connection endpoint. Endpoint *AwsRdsDbInstanceEndpoint @@ -2876,7 +2876,7 @@ type AwsRdsDbInstanceDetails struct { // // * Aurora 5.6 // or higher - IAMDatabaseAuthenticationEnabled *bool + IAMDatabaseAuthenticationEnabled bool // Indicates when the DB instance was created. Uses the date-time format specified // in RFC 3339 section 5.6, Internet Date/Time Format @@ -2885,7 +2885,7 @@ type AwsRdsDbInstanceDetails struct { InstanceCreateTime *string // Specifies the provisioned IOPS (I/O operations per second) for this DB instance. - Iops *int32 + Iops int32 // If StorageEncrypted is true, the AWS KMS key identifier for the encrypted DB // instance. @@ -2908,33 +2908,33 @@ type AwsRdsDbInstanceDetails struct { // The upper limit to which Amazon RDS can automatically scale the storage of the // DB instance. - MaxAllocatedStorage *int32 + MaxAllocatedStorage int32 // The interval, in seconds, between points when enhanced monitoring metrics are // collected for the DB instance. - MonitoringInterval *int32 + MonitoringInterval int32 // The ARN for the IAM role that permits Amazon RDS to send enhanced monitoring // metrics to CloudWatch Logs. MonitoringRoleArn *string // Whether the DB instance is a multiple Availability Zone deployment. - MultiAz *bool + MultiAz bool // The list of option group memberships for this DB instance. - OptionGroupMemberships []*AwsRdsDbOptionGroupMembership + OptionGroupMemberships []AwsRdsDbOptionGroupMembership // Changes to the DB instance that are currently pending. PendingModifiedValues *AwsRdsDbPendingModifiedValues // Indicates whether Performance Insights is enabled for the DB instance. - PerformanceInsightsEnabled *bool + PerformanceInsightsEnabled bool // The identifier of the AWS KMS key used to encrypt the Performance Insights data. PerformanceInsightsKmsKeyId *string // The number of days to retain Performance Insights data. - PerformanceInsightsRetentionPeriod *int32 + PerformanceInsightsRetentionPeriod int32 // The range of time each day when automated backups are created, if automated // backups are enabled. Uses the format HH:MM-HH:MM. For example, 04:52-05:22. @@ -2947,24 +2947,24 @@ type AwsRdsDbInstanceDetails struct { // The number of CPU cores and the number of threads per core for the DB instance // class of the DB instance. - ProcessorFeatures []*AwsRdsDbProcessorFeature + ProcessorFeatures []AwsRdsDbProcessorFeature // The order in which to promote an Aurora replica to the primary instance after a // failure of the existing primary instance. - PromotionTier *int32 + PromotionTier int32 // Specifies the accessibility options for the DB instance. A value of true // specifies an Internet-facing instance with a publicly resolvable DNS name, which // resolves to a public IP address. A value of false specifies an internal instance // with a DNS name that resolves to a private IP address. - PubliclyAccessible *bool + PubliclyAccessible bool // List of identifiers of Aurora DB clusters to which the RDS DB instance is // replicated as a read replica. - ReadReplicaDBClusterIdentifiers []*string + ReadReplicaDBClusterIdentifiers []string // List of identifiers of the read replicas associated with this DB instance. - ReadReplicaDBInstanceIdentifiers []*string + ReadReplicaDBInstanceIdentifiers []string // If this DB instance is a read replica, contains the identifier of the source DB // instance. @@ -2976,10 +2976,10 @@ type AwsRdsDbInstanceDetails struct { // The status of a read replica. If the instance isn't a read replica, this is // empty. - StatusInfos []*AwsRdsDbStatusInfo + StatusInfos []AwsRdsDbStatusInfo // Specifies whether the DB instance is encrypted. - StorageEncrypted *bool + StorageEncrypted bool // The storage type for the DB instance. StorageType *string @@ -2992,7 +2992,7 @@ type AwsRdsDbInstanceDetails struct { Timezone *string // A list of VPC security groups that the DB instance belongs to. - VpcSecurityGroups []*AwsRdsDbInstanceVpcSecurityGroup + VpcSecurityGroups []AwsRdsDbInstanceVpcSecurityGroup } // Specifies the connection endpoint. @@ -3005,7 +3005,7 @@ type AwsRdsDbInstanceEndpoint struct { HostedZoneId *string // Specifies the port that the database engine is listening on. - Port *int32 + Port int32 } // A VPC security groups that the DB instance belongs to. @@ -3042,10 +3042,10 @@ type AwsRdsDbParameterGroup struct { type AwsRdsDbPendingModifiedValues struct { // - AllocatedStorage *int32 + AllocatedStorage int32 // - BackupRetentionPeriod *int32 + BackupRetentionPeriod int32 // CaCertificateIdentifier *string @@ -3063,7 +3063,7 @@ type AwsRdsDbPendingModifiedValues struct { EngineVersion *string // - Iops *int32 + Iops int32 // LicenseModel *string @@ -3072,16 +3072,16 @@ type AwsRdsDbPendingModifiedValues struct { MasterUserPassword *string // - MultiAZ *bool + MultiAZ bool // PendingCloudWatchLogsExports *AwsRdsPendingCloudWatchLogsExports // - Port *int32 + Port int32 // - ProcessorFeatures []*AwsRdsDbProcessorFeature + ProcessorFeatures []AwsRdsDbProcessorFeature // StorageType *string @@ -3101,7 +3101,7 @@ type AwsRdsDbProcessorFeature struct { type AwsRdsDbSnapshotDetails struct { // - AllocatedStorage *int32 + AllocatedStorage int32 // AvailabilityZone *string @@ -3116,7 +3116,7 @@ type AwsRdsDbSnapshotDetails struct { DbiResourceId *string // - Encrypted *bool + Encrypted bool // Engine *string @@ -3125,13 +3125,13 @@ type AwsRdsDbSnapshotDetails struct { EngineVersion *string // - IamDatabaseAuthenticationEnabled *bool + IamDatabaseAuthenticationEnabled bool // InstanceCreateTime *string // - Iops *int32 + Iops int32 // KmsKeyId *string @@ -3146,13 +3146,13 @@ type AwsRdsDbSnapshotDetails struct { OptionGroupName *string // - PercentProgress *int32 + PercentProgress int32 // - Port *int32 + Port int32 // - ProcessorFeatures []*AwsRdsDbProcessorFeature + ProcessorFeatures []AwsRdsDbProcessorFeature // SnapshotCreateTime *string @@ -3189,7 +3189,7 @@ type AwsRdsDbStatusInfo struct { Message *string // Whether the read replica instance is operating normally. - Normal *bool + Normal bool // The status of the read replica instance. Status *string @@ -3214,7 +3214,7 @@ type AwsRdsDbSubnetGroup struct { SubnetGroupStatus *string // A list of subnets in the subnet group. - Subnets []*AwsRdsDbSubnetGroupSubnet + Subnets []AwsRdsDbSubnetGroupSubnet // The VPC ID of the subnet group. VpcId *string @@ -3244,10 +3244,10 @@ type AwsRdsDbSubnetGroupSubnetAvailabilityZone struct { type AwsRdsPendingCloudWatchLogsExports struct { // A list of log types that are being disabled. - LogTypesToDisable []*string + LogTypesToDisable []string // A list of log types that are being enabled. - LogTypesToEnable []*string + LogTypesToEnable []string } // A node in an Amazon Redshift cluster. @@ -3267,7 +3267,7 @@ type AwsRedshiftClusterClusterNode struct { type AwsRedshiftClusterClusterParameterGroup struct { // The list of parameter statuses. - ClusterParameterStatusList []*AwsRedshiftClusterClusterParameterStatus + ClusterParameterStatusList []AwsRedshiftClusterClusterParameterStatus // The status of updates to the parameters. ParameterApplyStatus *string @@ -3314,11 +3314,11 @@ type AwsRedshiftClusterClusterSnapshotCopyStatus struct { // after they are copied from a source region. If the value is -1, then the manual // snapshot is retained indefinitely. Valid values: Either -1 or an integer between // 1 and 3,653 - ManualSnapshotRetentionPeriod *int32 + ManualSnapshotRetentionPeriod int32 // The number of days to retain automated snapshots in the destination Region after // they are copied from a source Region. - RetentionPeriod *int32 + RetentionPeriod int32 // The name of the snapshot copy grant. SnapshotCopyGrantName *string @@ -3349,10 +3349,10 @@ type AwsRedshiftClusterDetails struct { // Indicates whether major version upgrades are applied automatically to the // cluster during the maintenance window. - AllowVersionUpgrade *bool + AllowVersionUpgrade bool // The number of days that automatic cluster snapshots are retained. - AutomatedSnapshotRetentionPeriod *int32 + AutomatedSnapshotRetentionPeriod int32 // The name of the Availability Zone in which the cluster is located. AvailabilityZone *string @@ -3385,10 +3385,10 @@ type AwsRedshiftClusterDetails struct { ClusterIdentifier *string // The nodes in the cluster. - ClusterNodes []*AwsRedshiftClusterClusterNode + ClusterNodes []AwsRedshiftClusterClusterNode // The list of cluster parameter groups that are associated with this cluster. - ClusterParameterGroups []*AwsRedshiftClusterClusterParameterGroup + ClusterParameterGroups []AwsRedshiftClusterClusterParameterGroup // The public key for the cluster. ClusterPublicKey *string @@ -3397,7 +3397,7 @@ type AwsRedshiftClusterDetails struct { ClusterRevisionNumber *string // A list of cluster security groups that are associated with the cluster. - ClusterSecurityGroups []*AwsRedshiftClusterClusterSecurityGroup + ClusterSecurityGroups []AwsRedshiftClusterClusterSecurityGroup // Information about the destination Region and retention period for the // cross-Region snapshot copy. @@ -3424,7 +3424,7 @@ type AwsRedshiftClusterDetails struct { DBName *string // List of time windows during which maintenance was deferred. - DeferredMaintenanceWindows []*AwsRedshiftClusterDeferredMaintenanceWindow + DeferredMaintenanceWindows []AwsRedshiftClusterDeferredMaintenanceWindow // Information about the status of the Elastic IP (EIP) address. ElasticIpStatus *AwsRedshiftClusterElasticIpStatus @@ -3434,13 +3434,13 @@ type AwsRedshiftClusterDetails struct { ElasticResizeNumberOfNodeOptions *string // Indicates whether the data in the cluster is encrypted at rest. - Encrypted *bool + Encrypted bool // The connection endpoint. Endpoint *AwsRedshiftClusterEndpoint // Indicates whether to create the cluster with enhanced VPC routing enabled. - EnhancedVpcRouting *bool + EnhancedVpcRouting bool // Indicates when the next snapshot is expected to be taken. The cluster must have // a valid snapshot schedule and have backups enabled. Uses the date-time format @@ -3458,7 +3458,7 @@ type AwsRedshiftClusterDetails struct { HsmStatus *AwsRedshiftClusterHsmStatus // A list of IAM roles that the cluster can use to access other AWS services. - IamRoles []*AwsRedshiftClusterIamRole + IamRoles []AwsRedshiftClusterIamRole // The identifier of the AWS KMS encryption key that is used to encrypt data in the // cluster. @@ -3471,7 +3471,7 @@ type AwsRedshiftClusterDetails struct { // snapshot is retained indefinitely. This setting doesn't change the retention // period of existing snapshots. Valid values: Either -1 or an integer between 1 // and 3,653 - ManualSnapshotRetentionPeriod *int32 + ManualSnapshotRetentionPeriod int32 // The master user name for the cluster. This name is used to connect to the // database that is specified in as the value of DBName. @@ -3487,10 +3487,10 @@ type AwsRedshiftClusterDetails struct { NodeType *string // The number of compute nodes in the cluster. - NumberOfNodes *int32 + NumberOfNodes int32 // A list of cluster operations that are waiting to start. - PendingActions []*string + PendingActions []string // A list of changes to the cluster that are currently pending. PendingModifiedValues *AwsRedshiftClusterPendingModifiedValues @@ -3501,7 +3501,7 @@ type AwsRedshiftClusterDetails struct { PreferredMaintenanceWindow *string // Whether the cluster can be accessed from a public network. - PubliclyAccessible *bool + PubliclyAccessible bool // Information about the resize operation for the cluster. ResizeInfo *AwsRedshiftClusterResizeInfo @@ -3522,7 +3522,7 @@ type AwsRedshiftClusterDetails struct { // The list of VPC security groups that the cluster belongs to, if the cluster is // in a VPC. - VpcSecurityGroups []*AwsRedshiftClusterVpcSecurityGroup + VpcSecurityGroups []AwsRedshiftClusterVpcSecurityGroup } // The status of the elastic IP (EIP) address for an Amazon Redshift cluster. @@ -3542,7 +3542,7 @@ type AwsRedshiftClusterEndpoint struct { Address *string // The port that the database engine listens on. - Port *int32 + Port int32 } // Information about whether an Amazon Redshift cluster finished applying any @@ -3579,7 +3579,7 @@ type AwsRedshiftClusterIamRole struct { type AwsRedshiftClusterPendingModifiedValues struct { // The pending or in-progress change to the automated snapshot retention period. - AutomatedSnapshotRetentionPeriod *int32 + AutomatedSnapshotRetentionPeriod int32 // The pending or in-progress change to the identifier for the cluster. ClusterIdentifier *string @@ -3594,7 +3594,7 @@ type AwsRedshiftClusterPendingModifiedValues struct { EncryptionType *string // Indicates whether to create the cluster with enhanced VPC routing enabled. - EnhancedVpcRouting *bool + EnhancedVpcRouting bool // The name of the maintenance track that the cluster changes to during the next // maintenance window. @@ -3607,18 +3607,18 @@ type AwsRedshiftClusterPendingModifiedValues struct { NodeType *string // The pending or in-progress change to the number of nodes in the cluster. - NumberOfNodes *int32 + NumberOfNodes int32 // The pending or in-progress change to whether the cluster can be connected to // from the public network. - PubliclyAccessible *bool + PubliclyAccessible bool } // Information about the resize operation for the cluster. type AwsRedshiftClusterResizeInfo struct { // Indicates whether the resize operation can be canceled. - AllowCancelResize *bool + AllowCancelResize bool // The type of resize operation. Valid values: ClassicResize ResizeType *string @@ -3631,25 +3631,25 @@ type AwsRedshiftClusterRestoreStatus struct { // The number of megabytes per second being transferred from the backup storage. // Returns the average rate for a completed backup. This field is only updated when // you restore to DC2 and DS2 node types. - CurrentRestoreRateInMegaBytesPerSecond *float64 + CurrentRestoreRateInMegaBytesPerSecond float64 // The amount of time an in-progress restore has been running, or the amount of // time it took a completed restore to finish. This field is only updated when you // restore to DC2 and DS2 node types. - ElapsedTimeInSeconds *int64 + ElapsedTimeInSeconds int64 // The estimate of the time remaining before the restore is complete. Returns 0 for // a completed restore. This field is only updated when you restore to DC2 and DS2 // node types. - EstimatedTimeToCompletionInSeconds *int64 + EstimatedTimeToCompletionInSeconds int64 // The number of megabytes that were transferred from snapshot storage. This field // is only updated when you restore to DC2 and DS2 node types. - ProgressInMegaBytes *int64 + ProgressInMegaBytes int64 // The size of the set of snapshot data that was used to restore the cluster. This // field is only updated when you restore to DC2 and DS2 node types. - SnapshotSizeInMegaBytes *int64 + SnapshotSizeInMegaBytes int64 // The status of the restore action. Valid values: starting | restoring | completed // | failed @@ -3700,7 +3700,7 @@ type AwsS3BucketServerSideEncryptionByDefault struct { type AwsS3BucketServerSideEncryptionConfiguration struct { // The encryption rules that are applied to the S3 bucket. - Rules []*AwsS3BucketServerSideEncryptionRule + Rules []AwsS3BucketServerSideEncryptionRule } // An encryption rule to apply to the S3 bucket. @@ -3744,7 +3744,7 @@ type AwsS3ObjectDetails struct { type AwsSecretsManagerSecretDetails struct { // Whether the secret is deleted. - Deleted *bool + Deleted bool // The user-provided description of the secret. Description *string @@ -3757,13 +3757,13 @@ type AwsSecretsManagerSecretDetails struct { Name *string // Whether rotation is enabled. - RotationEnabled *bool + RotationEnabled bool // The ARN of the Lambda function that rotates the secret. RotationLambdaArn *string // Whether the rotation occurred within the specified rotation frequency. - RotationOccurredWithinFrequency *bool + RotationOccurredWithinFrequency bool // Defines the rotation schedule for the secret. RotationRules *AwsSecretsManagerSecretRotationRules @@ -3773,7 +3773,7 @@ type AwsSecretsManagerSecretDetails struct { type AwsSecretsManagerSecretRotationRules struct { // The number of days after the previous rotation to rotate the secret. - AutomaticallyAfterDays *int32 + AutomaticallyAfterDays int32 } // Provides consistent format for the contents of the Security Hub-aggregated @@ -3826,7 +3826,7 @@ type AwsSecurityFinding struct { // to. // // This member is required. - Resources []*Resource + Resources []Resource // The schema version that a finding is formatted for. // @@ -3848,7 +3848,7 @@ type AwsSecurityFinding struct { // Checks | TTPs | Effects | Unusual Behaviors | Sensitive Data Identifications // // This member is required. - Types []*string + Types []string // 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 @@ -3867,12 +3867,12 @@ type AwsSecurityFinding struct { // accurately identifies the behavior or issue that it was intended to identify. // Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero // percent confidence and 100 means 100 percent confidence. - Confidence *int32 + Confidence int32 // The level of importance assigned to the resources associated with the finding. A // score of 0 means that the underlying resources have no criticality, and a score // of 100 is reserved for the most critical resources. - Criticality *int32 + Criticality int32 // Indicates when the security-findings provider first observed the potential // security issue that a finding captured. Uses the date-time format specified in @@ -3889,14 +3889,14 @@ type AwsSecurityFinding struct { LastObservedAt *string // A list of malware related to a finding. - Malware []*Malware + Malware []Malware // The details of network-related information about a finding. Network *Network // Provides information about a network path that is relevant to a finding. Each // entry under NetworkPath represents a component of that path. - NetworkPath []*NetworkPathComponent + NetworkPath []NetworkPathComponent // A user-defined note added to a finding. Note *Note @@ -3911,13 +3911,13 @@ type AwsSecurityFinding struct { // A data type where security-findings providers can include additional // solution-specific details that aren't part of the defined AwsSecurityFinding // format. - ProductFields map[string]*string + ProductFields map[string]string // The record state of a finding. RecordState RecordState // A list of related findings. - RelatedFindings []*RelatedFinding + RelatedFindings []RelatedFinding // A data type that describes the remediation options for a finding. Remediation *Remediation @@ -3927,17 +3927,17 @@ type AwsSecurityFinding struct { SourceUrl *string // Threat intelligence details related to a finding. - ThreatIntelIndicators []*ThreatIntelIndicator + ThreatIntelIndicators []ThreatIntelIndicator // A list of name/value string pairs associated with the finding. These are custom, // user-defined fields added to a finding. - UserDefinedFields map[string]*string + UserDefinedFields map[string]string // Indicates the veracity of a finding. VerificationState VerificationState // Provides a list of vulnerabilities associated with the findings. - Vulnerabilities []*Vulnerability + Vulnerabilities []Vulnerability // Provides information about the status of the investigation into a finding. Workflow *Workflow @@ -3953,280 +3953,280 @@ type AwsSecurityFinding struct { type AwsSecurityFindingFilters struct { // The AWS account ID that a finding is generated in. - AwsAccountId []*StringFilter + AwsAccountId []StringFilter // The name of the findings provider (company) that owns the solution (product) // that generates findings. - CompanyName []*StringFilter + CompanyName []StringFilter // Exclusive to findings that are generated as the result of a check run against a // specific rule in a supported standard, such as CIS AWS Foundations. Contains // security standard-related finding details. - ComplianceStatus []*StringFilter + ComplianceStatus []StringFilter // A finding's confidence. Confidence is defined as the likelihood that a finding // accurately identifies the behavior or issue that it was intended to identify. // Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero // percent confidence and 100 means 100 percent confidence. - Confidence []*NumberFilter + Confidence []NumberFilter // An ISO8601-formatted timestamp that indicates when the security-findings // provider captured the potential security issue that a finding captured. - CreatedAt []*DateFilter + CreatedAt []DateFilter // The level of importance assigned to the resources associated with the finding. A // score of 0 means that the underlying resources have no criticality, and a score // of 100 is reserved for the most critical resources. - Criticality []*NumberFilter + Criticality []NumberFilter // A finding's description. - Description []*StringFilter + Description []StringFilter // An ISO8601-formatted timestamp that indicates when the security-findings // provider first observed the potential security issue that a finding captured. - FirstObservedAt []*DateFilter + FirstObservedAt []DateFilter // The identifier for the solution-specific component (a discrete unit of logic) // 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 + GeneratorId []StringFilter // The security findings provider-specific identifier for a finding. - Id []*StringFilter + Id []StringFilter // A keyword for a finding. - Keyword []*KeywordFilter + Keyword []KeywordFilter // An ISO8601-formatted timestamp that indicates when the security-findings // provider most recently observed the potential security issue that a finding // captured. - LastObservedAt []*DateFilter + LastObservedAt []DateFilter // The name of the malware that was observed. - MalwareName []*StringFilter + MalwareName []StringFilter // The filesystem path of the malware that was observed. - MalwarePath []*StringFilter + MalwarePath []StringFilter // The state of the malware that was observed. - MalwareState []*StringFilter + MalwareState []StringFilter // The type of the malware that was observed. - MalwareType []*StringFilter + MalwareType []StringFilter // The destination domain of network-related information about a finding. - NetworkDestinationDomain []*StringFilter + NetworkDestinationDomain []StringFilter // The destination IPv4 address of network-related information about a finding. - NetworkDestinationIpV4 []*IpFilter + NetworkDestinationIpV4 []IpFilter // The destination IPv6 address of network-related information about a finding. - NetworkDestinationIpV6 []*IpFilter + NetworkDestinationIpV6 []IpFilter // The destination port of network-related information about a finding. - NetworkDestinationPort []*NumberFilter + NetworkDestinationPort []NumberFilter // Indicates the direction of network traffic associated with a finding. - NetworkDirection []*StringFilter + NetworkDirection []StringFilter // The protocol of network-related information about a finding. - NetworkProtocol []*StringFilter + NetworkProtocol []StringFilter // The source domain of network-related information about a finding. - NetworkSourceDomain []*StringFilter + NetworkSourceDomain []StringFilter // The source IPv4 address of network-related information about a finding. - NetworkSourceIpV4 []*IpFilter + NetworkSourceIpV4 []IpFilter // The source IPv6 address of network-related information about a finding. - NetworkSourceIpV6 []*IpFilter + NetworkSourceIpV6 []IpFilter // The source media access control (MAC) address of network-related information // about a finding. - NetworkSourceMac []*StringFilter + NetworkSourceMac []StringFilter // The source port of network-related information about a finding. - NetworkSourcePort []*NumberFilter + NetworkSourcePort []NumberFilter // The text of a note. - NoteText []*StringFilter + NoteText []StringFilter // The timestamp of when the note was updated. - NoteUpdatedAt []*DateFilter + NoteUpdatedAt []DateFilter // The principal that created a note. - NoteUpdatedBy []*StringFilter + NoteUpdatedBy []StringFilter // The date/time that the process was launched. - ProcessLaunchedAt []*DateFilter + ProcessLaunchedAt []DateFilter // The name of the process. - ProcessName []*StringFilter + ProcessName []StringFilter // The parent process ID. - ProcessParentPid []*NumberFilter + ProcessParentPid []NumberFilter // The path to the process executable. - ProcessPath []*StringFilter + ProcessPath []StringFilter // The process ID. - ProcessPid []*NumberFilter + ProcessPid []NumberFilter // The date/time that the process was terminated. - ProcessTerminatedAt []*DateFilter + ProcessTerminatedAt []DateFilter // The ARN generated by Security Hub that uniquely identifies a third-party company // (security findings provider) after this provider's product (solution that // generates findings) is registered with Security Hub. - ProductArn []*StringFilter + ProductArn []StringFilter // A data type where security-findings providers can include additional // solution-specific details that aren't part of the defined AwsSecurityFinding // format. - ProductFields []*MapFilter + ProductFields []MapFilter // The name of the solution (product) that generates findings. - ProductName []*StringFilter + ProductName []StringFilter // The recommendation of what to do about the issue described in a finding. - RecommendationText []*StringFilter + RecommendationText []StringFilter // The updated record state for the finding. - RecordState []*StringFilter + RecordState []StringFilter // The solution-generated identifier for a related finding. - RelatedFindingsId []*StringFilter + RelatedFindingsId []StringFilter // The ARN of the solution that generated a related finding. - RelatedFindingsProductArn []*StringFilter + RelatedFindingsProductArn []StringFilter // The IAM profile ARN of the instance. - ResourceAwsEc2InstanceIamInstanceProfileArn []*StringFilter + ResourceAwsEc2InstanceIamInstanceProfileArn []StringFilter // The Amazon Machine Image (AMI) ID of the instance. - ResourceAwsEc2InstanceImageId []*StringFilter + ResourceAwsEc2InstanceImageId []StringFilter // The IPv4 addresses associated with the instance. - ResourceAwsEc2InstanceIpV4Addresses []*IpFilter + ResourceAwsEc2InstanceIpV4Addresses []IpFilter // The IPv6 addresses associated with the instance. - ResourceAwsEc2InstanceIpV6Addresses []*IpFilter + ResourceAwsEc2InstanceIpV6Addresses []IpFilter // The key name associated with the instance. - ResourceAwsEc2InstanceKeyName []*StringFilter + ResourceAwsEc2InstanceKeyName []StringFilter // The date and time the instance was launched. - ResourceAwsEc2InstanceLaunchedAt []*DateFilter + ResourceAwsEc2InstanceLaunchedAt []DateFilter // The identifier of the subnet that the instance was launched in. - ResourceAwsEc2InstanceSubnetId []*StringFilter + ResourceAwsEc2InstanceSubnetId []StringFilter // The instance type of the instance. - ResourceAwsEc2InstanceType []*StringFilter + ResourceAwsEc2InstanceType []StringFilter // The identifier of the VPC that the instance was launched in. - ResourceAwsEc2InstanceVpcId []*StringFilter + ResourceAwsEc2InstanceVpcId []StringFilter // The creation date/time of the IAM access key related to a finding. - ResourceAwsIamAccessKeyCreatedAt []*DateFilter + ResourceAwsIamAccessKeyCreatedAt []DateFilter // The status of the IAM access key related to a finding. - ResourceAwsIamAccessKeyStatus []*StringFilter + ResourceAwsIamAccessKeyStatus []StringFilter // The user associated with the IAM access key related to a finding. - ResourceAwsIamAccessKeyUserName []*StringFilter + ResourceAwsIamAccessKeyUserName []StringFilter // The canonical user ID of the owner of the S3 bucket. - ResourceAwsS3BucketOwnerId []*StringFilter + ResourceAwsS3BucketOwnerId []StringFilter // The display name of the owner of the S3 bucket. - ResourceAwsS3BucketOwnerName []*StringFilter + ResourceAwsS3BucketOwnerName []StringFilter // The identifier of the image related to a finding. - ResourceContainerImageId []*StringFilter + ResourceContainerImageId []StringFilter // The name of the image related to a finding. - ResourceContainerImageName []*StringFilter + ResourceContainerImageName []StringFilter // The date/time that the container was started. - ResourceContainerLaunchedAt []*DateFilter + ResourceContainerLaunchedAt []DateFilter // The name of the container related to a finding. - ResourceContainerName []*StringFilter + ResourceContainerName []StringFilter // The details of a resource that doesn't have a specific subfield for the resource // type defined. - ResourceDetailsOther []*MapFilter + ResourceDetailsOther []MapFilter // The canonical identifier for the given resource type. - ResourceId []*StringFilter + ResourceId []StringFilter // The canonical AWS partition name that the Region is assigned to. - ResourcePartition []*StringFilter + ResourcePartition []StringFilter // The canonical AWS external Region name where this resource is located. - ResourceRegion []*StringFilter + ResourceRegion []StringFilter // A list of AWS tags associated with a resource at the time the finding was // processed. - ResourceTags []*MapFilter + ResourceTags []MapFilter // Specifies the type of the resource that details are provided for. - ResourceType []*StringFilter + ResourceType []StringFilter // The label of a finding's severity. - SeverityLabel []*StringFilter + SeverityLabel []StringFilter // The normalized severity of a finding. - SeverityNormalized []*NumberFilter + SeverityNormalized []NumberFilter // The native severity as defined by the security-findings provider's solution that // generated the finding. - SeverityProduct []*NumberFilter + SeverityProduct []NumberFilter // A URL that links to a page about the current finding in the security-findings // provider's solution. - SourceUrl []*StringFilter + SourceUrl []StringFilter // The category of a threat intelligence indicator. - ThreatIntelIndicatorCategory []*StringFilter + ThreatIntelIndicatorCategory []StringFilter // The date/time of the last observation of a threat intelligence indicator. - ThreatIntelIndicatorLastObservedAt []*DateFilter + ThreatIntelIndicatorLastObservedAt []DateFilter // The source of the threat intelligence. - ThreatIntelIndicatorSource []*StringFilter + ThreatIntelIndicatorSource []StringFilter // The URL for more details from the source of the threat intelligence. - ThreatIntelIndicatorSourceUrl []*StringFilter + ThreatIntelIndicatorSourceUrl []StringFilter // The type of a threat intelligence indicator. - ThreatIntelIndicatorType []*StringFilter + ThreatIntelIndicatorType []StringFilter // The value of a threat intelligence indicator. - ThreatIntelIndicatorValue []*StringFilter + ThreatIntelIndicatorValue []StringFilter // A finding's title. - Title []*StringFilter + Title []StringFilter // A finding type in the format of namespace/category/classifier that classifies a // finding. - Type []*StringFilter + Type []StringFilter // An ISO8601-formatted timestamp that indicates when the security-findings // provider last updated the finding record. - UpdatedAt []*DateFilter + UpdatedAt []DateFilter // A list of name/value string pairs associated with the finding. These are custom, // user-defined fields added to a finding. - UserDefinedFields []*MapFilter + UserDefinedFields []MapFilter // The veracity of a finding. - VerificationState []*StringFilter + VerificationState []StringFilter // The workflow state of a finding. Note that this field is deprecated. To search // for a finding based on its workflow status, use WorkflowStatus. - WorkflowState []*StringFilter + WorkflowState []StringFilter // The status of the investigation into a finding. Allowed values are the // following. @@ -4243,7 +4243,7 @@ type AwsSecurityFindingFilters struct { // // * RESOLVED - The finding was // reviewed and remediated and is now considered resolved. - WorkflowStatus []*StringFilter + WorkflowStatus []StringFilter } // Identifies a finding to update using BatchUpdateFindings. @@ -4274,7 +4274,7 @@ type AwsSnsTopicDetails struct { // Subscription is an embedded property that describes the subscription endpoints // of an Amazon SNS topic. - Subscription []*AwsSnsTopicSubscription + Subscription []AwsSnsTopicSubscription // The name of the topic. TopicName *string @@ -4299,7 +4299,7 @@ type AwsSqsQueueDetails struct { // The length of time, in seconds, for which Amazon SQS can reuse a data key to // encrypt or decrypt messages before calling AWS KMS again. - KmsDataKeyReusePeriodSeconds *int32 + KmsDataKeyReusePeriodSeconds int32 // The ID of an AWS managed customer master key (CMK) for Amazon SQS or a custom // CMK. @@ -4321,7 +4321,7 @@ type AwsWafWebAclDetails struct { // An array that contains the action for each rule in a WebACL, the priority of the // rule, and the ID of the rule. - Rules []*AwsWafWebAclRule + Rules []AwsWafWebAclRule // A unique identifier for a WebACL. WebAclId *string @@ -4335,7 +4335,7 @@ type AwsWafWebAclRule struct { Action *WafAction // Rules to exclude from a rule group. - ExcludedRules []*WafExcludedRule + ExcludedRules []WafExcludedRule // Use the OverrideAction to test your RuleGroup. Any rule in a RuleGroup can // potentially block a request. If you set the OverrideAction to None, the @@ -4353,7 +4353,7 @@ type AwsWafWebAclRule struct { // lower value for Priority are evaluated before rules with a higher value. The // value must be a unique integer. If you add multiple rules to a WebACL, the // values do not need to be consecutive. - Priority *int32 + Priority int32 // The identifier for a rule. RuleId *string @@ -4403,7 +4403,7 @@ type Compliance struct { // For a control, the industry or regulatory framework requirements that are // related to the control. The check for that control is aligned with these // requirements. - RelatedRequirements []*string + RelatedRequirements []string // The result of a standards check. The valid values for Status are as follows. // @@ -4428,7 +4428,7 @@ type Compliance struct { // Standards-related information in the ASFF // (https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff) // in the AWS Security Hub User Guide. - StatusReasons []*StatusReason + StatusReasons []StatusReason } // Container details related to a finding. @@ -4454,7 +4454,7 @@ type ContainerDetails struct { type Cvss struct { // The base CVSS score. - BaseScore *float64 + BaseScore float64 // The base scoring vector for the CVSS score. BaseVector *string @@ -4483,7 +4483,7 @@ type DateRange struct { Unit DateRangeUnit // A date range value for the date filter. - Value *int32 + Value int32 } // The list of the findings that cannot be imported. For each finding, the list @@ -4552,7 +4552,7 @@ type InsightResults struct { // The list of insight result values returned by the GetInsightResults operation. // // This member is required. - ResultValues []*InsightResultValue + ResultValues []InsightResultValue } // The insight result values returned by the GetInsightResults operation. @@ -4561,7 +4561,7 @@ type InsightResultValue struct { // The number of findings returned for each GroupByAttributeValue. // // This member is required. - Count *int32 + Count int32 // The value of the attribute that the findings are grouped by for the insight // whose results are returned by the GetInsightResults operation. @@ -4729,7 +4729,7 @@ type Network struct { DestinationIpV6 *string // The destination port of network-related information about a finding. - DestinationPort *int32 + DestinationPort int32 // The direction of network traffic associated with a finding. Direction NetworkDirection @@ -4754,7 +4754,7 @@ type Network struct { SourceMac *string // The source port of network-related information about a finding. - SourcePort *int32 + SourcePort int32 } // Details about a network path component that occurs before or after the current @@ -4793,10 +4793,10 @@ type NetworkPathComponent struct { type NetworkPathComponentDetails struct { // The IP addresses of the destination. - Address []*string + Address []string // A list of port ranges for the destination. - PortRanges []*PortRange + PortRanges []PortRange } // A user-defined note added to a finding. @@ -4840,15 +4840,15 @@ type NumberFilter struct { // The equal-to condition to be applied to a single field when querying for // findings. - Eq *float64 + Eq float64 // The greater-than-equal condition to be applied to a single field when querying // for findings. - Gte *float64 + Gte float64 // The less-than-equal condition to be applied to a single field when querying for // findings. - Lte *float64 + Lte float64 } // Provides an overview of the patch compliance status for an instance against a @@ -4862,26 +4862,26 @@ type PatchSummary struct { Id *string // The number of patches from the compliance standard that failed to install. - FailedCount *int32 + FailedCount int32 // The number of patches from the compliance standard that were installed // successfully. - InstalledCount *int32 + InstalledCount int32 // The number of installed patches that are not part of the compliance standard. - InstalledOtherCount *int32 + InstalledOtherCount int32 // The number of patches that were applied, but that require the instance to be // rebooted in order to be marked as installed. - InstalledPendingReboot *int32 + InstalledPendingReboot int32 // The number of patches that are installed but are also on a list of patches that // the customer rejected. - InstalledRejectedCount *int32 + InstalledRejectedCount int32 // The number of patches that are part of the compliance standard but are not // installed. The count includes patches that failed to install. - MissingCount *int32 + MissingCount int32 // The type of patch operation performed. For Patch Manager, the values are SCAN // and INSTALL. @@ -4907,10 +4907,10 @@ type PatchSummary struct { type PortRange struct { // The first port in the port range. - Begin *int32 + Begin int32 // The last port in the port range. - End *int32 + End int32 } // The details of process-related information about a finding. @@ -4926,13 +4926,13 @@ type ProcessDetails struct { Name *string // The parent process ID. - ParentPid *int32 + ParentPid int32 // The path to the process executable. Path *string // The process ID. - Pid *int32 + Pid int32 // Indicates when the process was terminated. Uses the date-time format specified // in RFC 3339 section 5.6, Internet Date/Time Format @@ -4953,7 +4953,7 @@ type Product struct { ActivationUrl *string // The categories assigned to the product. - Categories []*string + Categories []string // The name of the company that provides the product. CompanyName *string @@ -5045,7 +5045,7 @@ type Resource struct { // A list of AWS tags associated with a resource at the time the finding was // processed. - Tags map[string]*string + Tags map[string]string } // Additional details about a resource related to a finding. To provide the @@ -5185,7 +5185,7 @@ type ResourceDetails struct { // * // The resource type does not have a corresponding object. This includes resources // for which the type is Other. - Other map[string]*string + Other map[string]string } // Details about the account that was not processed. @@ -5254,7 +5254,7 @@ type Severity struct { // // * CRITICAL // - 90 - Normalized *int32 + Normalized int32 // The native severity from the finding product that generated the finding. Original *string @@ -5262,7 +5262,7 @@ type Severity struct { // Deprecated. This attribute is being deprecated. Instead of providing Product, // provide Original. The native severity as defined by the AWS service or // integrated partner product that generated the finding. - Product *float64 + Product float64 } // Updates to the severity information for a finding. @@ -5299,11 +5299,11 @@ type SeverityUpdate struct { // * 70–89 - HIGH // // * 90–100 - CRITICAL - Normalized *int32 + Normalized int32 // The native severity as defined by the AWS service or integrated partner product // that generated the finding. - Product *float64 + Product float64 } // Information about a software package. @@ -5346,7 +5346,7 @@ type Standard struct { // standard is selected by default. When Security Hub is enabled using the // EnableSecurityHub API operation, the standard is enabled by default unless // EnableDefaultStandards is set to false. - EnabledByDefault *bool + EnabledByDefault bool // The name of the standard. Name *string @@ -5378,7 +5378,7 @@ type StandardsControl struct { DisabledReason *string // The list of requirements that are related to this control. - RelatedRequirements []*string + RelatedRequirements []string // A link to remediation information for the control in the Security Hub user // documentation. @@ -5407,7 +5407,7 @@ type StandardsSubscription struct { // A key-value pair of input for the standard. // // This member is required. - StandardsInput map[string]*string + StandardsInput map[string]string // The status of the standards subscription. // @@ -5430,7 +5430,7 @@ type StandardsSubscriptionRequest struct { StandardsArn *string // A key-value pair of input for the standard. - StandardsInput map[string]*string + StandardsInput map[string]string } // Provides additional context for the value of Compliance.Status. @@ -5546,19 +5546,19 @@ type Vulnerability struct { Id *string // CVSS scores from the advisory related to the vulnerability. - Cvss []*Cvss + Cvss []Cvss // A list of URLs that provide additional information about the vulnerability. - ReferenceUrls []*string + ReferenceUrls []string // List of vulnerabilities that are related to this vulnerability. - RelatedVulnerabilities []*string + RelatedVulnerabilities []string // Information about the vendor that generates the vulnerability report. Vendor *VulnerabilityVendor // List of software packages that have the vulnerability. - VulnerablePackages []*SoftwarePackage + VulnerablePackages []SoftwarePackage } // A vendor that generates a vulnerability report. diff --git a/service/securityhub/validators.go b/service/securityhub/validators.go index b1d538e5d36..31a7c0e6a78 100644 --- a/service/securityhub/validators.go +++ b/service/securityhub/validators.go @@ -662,13 +662,13 @@ func validateAwsSecurityFindingIdentifier(v *types.AwsSecurityFindingIdentifier) } } -func validateAwsSecurityFindingIdentifierList(v []*types.AwsSecurityFindingIdentifier) error { +func validateAwsSecurityFindingIdentifierList(v []types.AwsSecurityFindingIdentifier) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AwsSecurityFindingIdentifierList"} for i := range v { - if err := validateAwsSecurityFindingIdentifier(v[i]); err != nil { + if err := validateAwsSecurityFindingIdentifier(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -679,13 +679,13 @@ func validateAwsSecurityFindingIdentifierList(v []*types.AwsSecurityFindingIdent } } -func validateAwsSecurityFindingList(v []*types.AwsSecurityFinding) error { +func validateAwsSecurityFindingList(v []types.AwsSecurityFinding) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AwsSecurityFindingList"} for i := range v { - if err := validateAwsSecurityFinding(v[i]); err != nil { + if err := validateAwsSecurityFinding(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -728,13 +728,13 @@ func validateMalware(v *types.Malware) error { } } -func validateMalwareList(v []*types.Malware) error { +func validateMalwareList(v []types.Malware) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MalwareList"} for i := range v { - if err := validateMalware(v[i]); err != nil { + if err := validateMalware(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -817,13 +817,13 @@ func validateRelatedFinding(v *types.RelatedFinding) error { } } -func validateRelatedFindingList(v []*types.RelatedFinding) error { +func validateRelatedFindingList(v []types.RelatedFinding) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RelatedFindingList"} for i := range v { - if err := validateRelatedFinding(v[i]); err != nil { + if err := validateRelatedFinding(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -852,13 +852,13 @@ func validateResource(v *types.Resource) error { } } -func validateResourceList(v []*types.Resource) error { +func validateResourceList(v []types.Resource) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceList"} for i := range v { - if err := validateResource(v[i]); err != nil { + if err := validateResource(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -884,13 +884,13 @@ func validateStandardsSubscriptionRequest(v *types.StandardsSubscriptionRequest) } } -func validateStandardsSubscriptionRequests(v []*types.StandardsSubscriptionRequest) error { +func validateStandardsSubscriptionRequests(v []types.StandardsSubscriptionRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "StandardsSubscriptionRequests"} for i := range v { - if err := validateStandardsSubscriptionRequest(v[i]); err != nil { + if err := validateStandardsSubscriptionRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -916,13 +916,13 @@ func validateStatusReason(v *types.StatusReason) error { } } -func validateStatusReasonsList(v []*types.StatusReason) error { +func validateStatusReasonsList(v []types.StatusReason) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "StatusReasonsList"} for i := range v { - if err := validateStatusReason(v[i]); err != nil { + if err := validateStatusReason(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -953,13 +953,13 @@ func validateVulnerability(v *types.Vulnerability) error { } } -func validateVulnerabilityList(v []*types.Vulnerability) error { +func validateVulnerabilityList(v []types.Vulnerability) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "VulnerabilityList"} for i := range v { - if err := validateVulnerability(v[i]); err != nil { + if err := validateVulnerability(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/serverlessapplicationrepository/api_op_CreateApplication.go b/service/serverlessapplicationrepository/api_op_CreateApplication.go index edadd1adf7e..e64f1ab353b 100644 --- a/service/serverlessapplicationrepository/api_op_CreateApplication.go +++ b/service/serverlessapplicationrepository/api_op_CreateApplication.go @@ -53,7 +53,7 @@ type CreateApplicationInput struct { // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; - Labels []*string + Labels []string // A local text file that contains the license of the app that matches the // spdxLicenseID value of your application. The file has the format @@ -126,11 +126,11 @@ type CreateApplicationOutput struct { // AWS has made a good faith review, as a reasonable and prudent service provider, // of the information provided by the requester and has confirmed that the // requester's identity is as claimed. - IsVerifiedAuthor *bool + IsVerifiedAuthor bool // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; - Labels []*string + Labels []string // A link to a license file of the app that matches the spdxLicenseID value of your // application.Maximum size 5 MB diff --git a/service/serverlessapplicationrepository/api_op_CreateApplicationVersion.go b/service/serverlessapplicationrepository/api_op_CreateApplicationVersion.go index 95348a0b03b..6bcc9127610 100644 --- a/service/serverlessapplicationrepository/api_op_CreateApplicationVersion.go +++ b/service/serverlessapplicationrepository/api_op_CreateApplicationVersion.go @@ -63,7 +63,7 @@ type CreateApplicationVersionOutput struct { CreationTime *string // An array of parameter types supported by the application. - ParameterDefinitions []*types.ParameterDefinition + ParameterDefinitions []types.ParameterDefinition // A list of values that you must specify before you can deploy certain // applications. Some applications might include resources that can affect @@ -104,7 +104,7 @@ type CreateApplicationVersionOutput struct { // Whether all of the AWS resources contained in this application are supported in // the region in which it is being retrieved. - ResourcesSupported *bool + ResourcesSupported bool // The semantic version of the application: https://semver.org/ // (https://semver.org/) diff --git a/service/serverlessapplicationrepository/api_op_CreateCloudFormationChangeSet.go b/service/serverlessapplicationrepository/api_op_CreateCloudFormationChangeSet.go index a09efb7a1b3..d497df4eb0b 100644 --- a/service/serverlessapplicationrepository/api_op_CreateCloudFormationChangeSet.go +++ b/service/serverlessapplicationrepository/api_op_CreateCloudFormationChangeSet.go @@ -77,7 +77,7 @@ type CreateCloudFormationChangeSetInput struct { // resources, we recommend that you review all permissions associated with the // application before deploying. If you don't specify this parameter for an // application that requires capabilities, the call will fail. - Capabilities []*string + Capabilities []string // This property corresponds to the parameter of the same name for the AWS // CloudFormation CreateChangeSet @@ -101,16 +101,16 @@ type CreateCloudFormationChangeSetInput struct { // CloudFormation CreateChangeSet // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet) // API. - NotificationArns []*string + NotificationArns []string // A list of parameter values for the parameters of the application. - ParameterOverrides []*types.ParameterValue + ParameterOverrides []types.ParameterValue // This property corresponds to the parameter of the same name for the AWS // CloudFormation CreateChangeSet // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet) // API. - ResourceTypes []*string + ResourceTypes []string // This property corresponds to the parameter of the same name for the AWS // CloudFormation CreateChangeSet @@ -126,7 +126,7 @@ type CreateCloudFormationChangeSetInput struct { // CloudFormation CreateChangeSet // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet) // API. - Tags []*types.Tag + Tags []types.Tag // The UUID returned by CreateCloudFormationTemplate.Pattern: // [0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12} diff --git a/service/serverlessapplicationrepository/api_op_GetApplication.go b/service/serverlessapplicationrepository/api_op_GetApplication.go index bd8380fda58..e3a5ce38ee8 100644 --- a/service/serverlessapplicationrepository/api_op_GetApplication.go +++ b/service/serverlessapplicationrepository/api_op_GetApplication.go @@ -61,11 +61,11 @@ type GetApplicationOutput struct { // AWS has made a good faith review, as a reasonable and prudent service provider, // of the information provided by the requester and has confirmed that the // requester's identity is as claimed. - IsVerifiedAuthor *bool + IsVerifiedAuthor bool // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; - Labels []*string + Labels []string // A link to a license file of the app that matches the spdxLicenseID value of your // application.Maximum size 5 MB diff --git a/service/serverlessapplicationrepository/api_op_GetApplicationPolicy.go b/service/serverlessapplicationrepository/api_op_GetApplicationPolicy.go index d9c98f7a0f7..a74a8a81666 100644 --- a/service/serverlessapplicationrepository/api_op_GetApplicationPolicy.go +++ b/service/serverlessapplicationrepository/api_op_GetApplicationPolicy.go @@ -38,7 +38,7 @@ type GetApplicationPolicyInput struct { type GetApplicationPolicyOutput struct { // An array of policy statements applied to the application. - Statements []*types.ApplicationPolicyStatement + Statements []types.ApplicationPolicyStatement // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/serverlessapplicationrepository/api_op_ListApplicationDependencies.go b/service/serverlessapplicationrepository/api_op_ListApplicationDependencies.go index f7fba057178..9c41a752b1c 100644 --- a/service/serverlessapplicationrepository/api_op_ListApplicationDependencies.go +++ b/service/serverlessapplicationrepository/api_op_ListApplicationDependencies.go @@ -35,7 +35,7 @@ type ListApplicationDependenciesInput struct { ApplicationId *string // The total number of items to return. - MaxItems *int32 + MaxItems int32 // A token to specify where to start paginating. NextToken *string @@ -47,7 +47,7 @@ type ListApplicationDependenciesInput struct { type ListApplicationDependenciesOutput struct { // An array of application summaries nested in the application. - Dependencies []*types.ApplicationDependencySummary + Dependencies []types.ApplicationDependencySummary // The token to request the next page of results. NextToken *string diff --git a/service/serverlessapplicationrepository/api_op_ListApplicationVersions.go b/service/serverlessapplicationrepository/api_op_ListApplicationVersions.go index 980da7154ad..d45b0375dd5 100644 --- a/service/serverlessapplicationrepository/api_op_ListApplicationVersions.go +++ b/service/serverlessapplicationrepository/api_op_ListApplicationVersions.go @@ -35,7 +35,7 @@ type ListApplicationVersionsInput struct { ApplicationId *string // The total number of items to return. - MaxItems *int32 + MaxItems int32 // A token to specify where to start paginating. NextToken *string @@ -47,7 +47,7 @@ type ListApplicationVersionsOutput struct { NextToken *string // An array of version summaries for the application. - Versions []*types.VersionSummary + Versions []types.VersionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/serverlessapplicationrepository/api_op_ListApplications.go b/service/serverlessapplicationrepository/api_op_ListApplications.go index dc1514ce187..906ad8aa34f 100644 --- a/service/serverlessapplicationrepository/api_op_ListApplications.go +++ b/service/serverlessapplicationrepository/api_op_ListApplications.go @@ -30,7 +30,7 @@ func (c *Client) ListApplications(ctx context.Context, params *ListApplicationsI type ListApplicationsInput struct { // The total number of items to return. - MaxItems *int32 + MaxItems int32 // A token to specify where to start paginating. NextToken *string @@ -39,7 +39,7 @@ type ListApplicationsInput struct { type ListApplicationsOutput struct { // An array of application summaries. - Applications []*types.ApplicationSummary + Applications []types.ApplicationSummary // The token to request the next page of results. NextToken *string diff --git a/service/serverlessapplicationrepository/api_op_PutApplicationPolicy.go b/service/serverlessapplicationrepository/api_op_PutApplicationPolicy.go index a1f8e79689c..f52a6c78ae7 100644 --- a/service/serverlessapplicationrepository/api_op_PutApplicationPolicy.go +++ b/service/serverlessapplicationrepository/api_op_PutApplicationPolicy.go @@ -40,13 +40,13 @@ type PutApplicationPolicyInput struct { // An array of policy statements applied to the application. // // This member is required. - Statements []*types.ApplicationPolicyStatement + Statements []types.ApplicationPolicyStatement } type PutApplicationPolicyOutput struct { // An array of policy statements applied to the application. - Statements []*types.ApplicationPolicyStatement + Statements []types.ApplicationPolicyStatement // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/serverlessapplicationrepository/api_op_UpdateApplication.go b/service/serverlessapplicationrepository/api_op_UpdateApplication.go index 961fc9b138c..878ae2f438b 100644 --- a/service/serverlessapplicationrepository/api_op_UpdateApplication.go +++ b/service/serverlessapplicationrepository/api_op_UpdateApplication.go @@ -47,7 +47,7 @@ type UpdateApplicationInput struct { // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; - Labels []*string + Labels []string // A text readme file in Markdown language that contains a more detailed // description of the application and how it works.Maximum size 5 MB @@ -81,11 +81,11 @@ type UpdateApplicationOutput struct { // AWS has made a good faith review, as a reasonable and prudent service provider, // of the information provided by the requester and has confirmed that the // requester's identity is as claimed. - IsVerifiedAuthor *bool + IsVerifiedAuthor bool // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; - Labels []*string + Labels []string // A link to a license file of the app that matches the spdxLicenseID value of your // application.Maximum size 5 MB diff --git a/service/serverlessapplicationrepository/deserializers.go b/service/serverlessapplicationrepository/deserializers.go index e08224253a0..ac61064aafa 100644 --- a/service/serverlessapplicationrepository/deserializers.go +++ b/service/serverlessapplicationrepository/deserializers.go @@ -169,7 +169,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "author": @@ -178,7 +178,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Author = &jtv + sv.Author = ptr.String(jtv) } case "creationTime": @@ -187,7 +187,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "description": @@ -196,7 +196,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "homePageUrl": @@ -205,7 +205,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.HomePageUrl = &jtv + sv.HomePageUrl = ptr.String(jtv) } case "isVerifiedAuthor": @@ -214,7 +214,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsVerifiedAuthor = &jtv + sv.IsVerifiedAuthor = jtv } case "labels": @@ -228,7 +228,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LicenseUrl = &jtv + sv.LicenseUrl = ptr.String(jtv) } case "name": @@ -237,7 +237,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "readmeUrl": @@ -246,7 +246,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ReadmeUrl = &jtv + sv.ReadmeUrl = ptr.String(jtv) } case "spdxLicenseId": @@ -255,7 +255,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SpdxLicenseId = &jtv + sv.SpdxLicenseId = ptr.String(jtv) } case "verifiedAuthorUrl": @@ -264,7 +264,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VerifiedAuthorUrl = &jtv + sv.VerifiedAuthorUrl = ptr.String(jtv) } case "version": @@ -432,7 +432,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationVersionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "creationTime": @@ -441,7 +441,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationVersionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "parameterDefinitions": @@ -460,7 +460,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationVersionOutput(v **Create if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ResourcesSupported = &jtv + sv.ResourcesSupported = jtv } case "semanticVersion": @@ -469,7 +469,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationVersionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SemanticVersion = &jtv + sv.SemanticVersion = ptr.String(jtv) } case "sourceCodeArchiveUrl": @@ -478,7 +478,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationVersionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceCodeArchiveUrl = &jtv + sv.SourceCodeArchiveUrl = ptr.String(jtv) } case "sourceCodeUrl": @@ -487,7 +487,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationVersionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceCodeUrl = &jtv + sv.SourceCodeUrl = ptr.String(jtv) } case "templateUrl": @@ -496,7 +496,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationVersionOutput(v **Create if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateUrl = &jtv + sv.TemplateUrl = ptr.String(jtv) } default: @@ -656,7 +656,7 @@ func awsRestjson1_deserializeOpDocumentCreateCloudFormationChangeSetOutput(v **C if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "changeSetId": @@ -665,7 +665,7 @@ func awsRestjson1_deserializeOpDocumentCreateCloudFormationChangeSetOutput(v **C if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ChangeSetId = &jtv + sv.ChangeSetId = ptr.String(jtv) } case "semanticVersion": @@ -674,7 +674,7 @@ func awsRestjson1_deserializeOpDocumentCreateCloudFormationChangeSetOutput(v **C if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SemanticVersion = &jtv + sv.SemanticVersion = ptr.String(jtv) } case "stackId": @@ -683,7 +683,7 @@ func awsRestjson1_deserializeOpDocumentCreateCloudFormationChangeSetOutput(v **C if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } default: @@ -846,7 +846,7 @@ func awsRestjson1_deserializeOpDocumentCreateCloudFormationTemplateOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "creationTime": @@ -855,7 +855,7 @@ func awsRestjson1_deserializeOpDocumentCreateCloudFormationTemplateOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "expirationTime": @@ -864,7 +864,7 @@ func awsRestjson1_deserializeOpDocumentCreateCloudFormationTemplateOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ExpirationTime = &jtv + sv.ExpirationTime = ptr.String(jtv) } case "semanticVersion": @@ -873,7 +873,7 @@ func awsRestjson1_deserializeOpDocumentCreateCloudFormationTemplateOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SemanticVersion = &jtv + sv.SemanticVersion = ptr.String(jtv) } case "status": @@ -891,7 +891,7 @@ func awsRestjson1_deserializeOpDocumentCreateCloudFormationTemplateOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateId = &jtv + sv.TemplateId = ptr.String(jtv) } case "templateUrl": @@ -900,7 +900,7 @@ func awsRestjson1_deserializeOpDocumentCreateCloudFormationTemplateOutput(v **Cr if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateUrl = &jtv + sv.TemplateUrl = ptr.String(jtv) } default: @@ -1161,7 +1161,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "author": @@ -1170,7 +1170,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Author = &jtv + sv.Author = ptr.String(jtv) } case "creationTime": @@ -1179,7 +1179,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "description": @@ -1188,7 +1188,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "homePageUrl": @@ -1197,7 +1197,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.HomePageUrl = &jtv + sv.HomePageUrl = ptr.String(jtv) } case "isVerifiedAuthor": @@ -1206,7 +1206,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsVerifiedAuthor = &jtv + sv.IsVerifiedAuthor = jtv } case "labels": @@ -1220,7 +1220,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LicenseUrl = &jtv + sv.LicenseUrl = ptr.String(jtv) } case "name": @@ -1229,7 +1229,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "readmeUrl": @@ -1238,7 +1238,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ReadmeUrl = &jtv + sv.ReadmeUrl = ptr.String(jtv) } case "spdxLicenseId": @@ -1247,7 +1247,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SpdxLicenseId = &jtv + sv.SpdxLicenseId = ptr.String(jtv) } case "verifiedAuthorUrl": @@ -1256,7 +1256,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VerifiedAuthorUrl = &jtv + sv.VerifiedAuthorUrl = ptr.String(jtv) } case "version": @@ -1583,7 +1583,7 @@ func awsRestjson1_deserializeOpDocumentGetCloudFormationTemplateOutput(v **GetCl if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "creationTime": @@ -1592,7 +1592,7 @@ func awsRestjson1_deserializeOpDocumentGetCloudFormationTemplateOutput(v **GetCl if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "expirationTime": @@ -1601,7 +1601,7 @@ func awsRestjson1_deserializeOpDocumentGetCloudFormationTemplateOutput(v **GetCl if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ExpirationTime = &jtv + sv.ExpirationTime = ptr.String(jtv) } case "semanticVersion": @@ -1610,7 +1610,7 @@ func awsRestjson1_deserializeOpDocumentGetCloudFormationTemplateOutput(v **GetCl if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SemanticVersion = &jtv + sv.SemanticVersion = ptr.String(jtv) } case "status": @@ -1628,7 +1628,7 @@ func awsRestjson1_deserializeOpDocumentGetCloudFormationTemplateOutput(v **GetCl if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateId = &jtv + sv.TemplateId = ptr.String(jtv) } case "templateUrl": @@ -1637,7 +1637,7 @@ func awsRestjson1_deserializeOpDocumentGetCloudFormationTemplateOutput(v **GetCl if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateUrl = &jtv + sv.TemplateUrl = ptr.String(jtv) } default: @@ -1805,7 +1805,7 @@ func awsRestjson1_deserializeOpDocumentListApplicationDependenciesOutput(v **Lis if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1970,7 +1970,7 @@ func awsRestjson1_deserializeOpDocumentListApplicationsOutput(v **ListApplicatio if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2133,7 +2133,7 @@ func awsRestjson1_deserializeOpDocumentListApplicationVersionsOutput(v **ListApp if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "versions": @@ -2558,7 +2558,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "author": @@ -2567,7 +2567,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Author = &jtv + sv.Author = ptr.String(jtv) } case "creationTime": @@ -2576,7 +2576,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "description": @@ -2585,7 +2585,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "homePageUrl": @@ -2594,7 +2594,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.HomePageUrl = &jtv + sv.HomePageUrl = ptr.String(jtv) } case "isVerifiedAuthor": @@ -2603,7 +2603,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsVerifiedAuthor = &jtv + sv.IsVerifiedAuthor = jtv } case "labels": @@ -2617,7 +2617,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.LicenseUrl = &jtv + sv.LicenseUrl = ptr.String(jtv) } case "name": @@ -2626,7 +2626,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "readmeUrl": @@ -2635,7 +2635,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ReadmeUrl = &jtv + sv.ReadmeUrl = ptr.String(jtv) } case "spdxLicenseId": @@ -2644,7 +2644,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SpdxLicenseId = &jtv + sv.SpdxLicenseId = ptr.String(jtv) } case "verifiedAuthorUrl": @@ -2653,7 +2653,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.VerifiedAuthorUrl = &jtv + sv.VerifiedAuthorUrl = ptr.String(jtv) } case "version": @@ -2886,7 +2886,7 @@ func awsRestjson1_deserializeErrorTooManyRequestsException(response *smithyhttp. return output } -func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocument__listOf__string(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2899,21 +2899,21 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -2922,7 +2922,7 @@ func awsRestjson1_deserializeDocument__listOf__string(v *[]*string, value interf return nil } -func awsRestjson1_deserializeDocument__listOfApplicationDependencySummary(v *[]*types.ApplicationDependencySummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfApplicationDependencySummary(v *[]types.ApplicationDependencySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2935,18 +2935,20 @@ func awsRestjson1_deserializeDocument__listOfApplicationDependencySummary(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApplicationDependencySummary + var cv []types.ApplicationDependencySummary if *v == nil { - cv = []*types.ApplicationDependencySummary{} + cv = []types.ApplicationDependencySummary{} } else { cv = *v } for _, value := range shape { - var col *types.ApplicationDependencySummary - if err := awsRestjson1_deserializeDocumentApplicationDependencySummary(&col, value); err != nil { + var col types.ApplicationDependencySummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentApplicationDependencySummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2954,7 +2956,7 @@ func awsRestjson1_deserializeDocument__listOfApplicationDependencySummary(v *[]* return nil } -func awsRestjson1_deserializeDocument__listOfApplicationPolicyStatement(v *[]*types.ApplicationPolicyStatement, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfApplicationPolicyStatement(v *[]types.ApplicationPolicyStatement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2967,18 +2969,20 @@ func awsRestjson1_deserializeDocument__listOfApplicationPolicyStatement(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApplicationPolicyStatement + var cv []types.ApplicationPolicyStatement if *v == nil { - cv = []*types.ApplicationPolicyStatement{} + cv = []types.ApplicationPolicyStatement{} } else { cv = *v } for _, value := range shape { - var col *types.ApplicationPolicyStatement - if err := awsRestjson1_deserializeDocumentApplicationPolicyStatement(&col, value); err != nil { + var col types.ApplicationPolicyStatement + destAddr := &col + if err := awsRestjson1_deserializeDocumentApplicationPolicyStatement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2986,7 +2990,7 @@ func awsRestjson1_deserializeDocument__listOfApplicationPolicyStatement(v *[]*ty return nil } -func awsRestjson1_deserializeDocument__listOfApplicationSummary(v *[]*types.ApplicationSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfApplicationSummary(v *[]types.ApplicationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2999,18 +3003,20 @@ func awsRestjson1_deserializeDocument__listOfApplicationSummary(v *[]*types.Appl return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ApplicationSummary + var cv []types.ApplicationSummary if *v == nil { - cv = []*types.ApplicationSummary{} + cv = []types.ApplicationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ApplicationSummary - if err := awsRestjson1_deserializeDocumentApplicationSummary(&col, value); err != nil { + var col types.ApplicationSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentApplicationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3054,7 +3060,7 @@ func awsRestjson1_deserializeDocument__listOfCapability(v *[]types.Capability, v return nil } -func awsRestjson1_deserializeDocument__listOfParameterDefinition(v *[]*types.ParameterDefinition, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfParameterDefinition(v *[]types.ParameterDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3067,18 +3073,20 @@ func awsRestjson1_deserializeDocument__listOfParameterDefinition(v *[]*types.Par return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ParameterDefinition + var cv []types.ParameterDefinition if *v == nil { - cv = []*types.ParameterDefinition{} + cv = []types.ParameterDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.ParameterDefinition - if err := awsRestjson1_deserializeDocumentParameterDefinition(&col, value); err != nil { + var col types.ParameterDefinition + destAddr := &col + if err := awsRestjson1_deserializeDocumentParameterDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3086,7 +3094,7 @@ func awsRestjson1_deserializeDocument__listOfParameterDefinition(v *[]*types.Par return nil } -func awsRestjson1_deserializeDocument__listOfVersionSummary(v *[]*types.VersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocument__listOfVersionSummary(v *[]types.VersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3099,18 +3107,20 @@ func awsRestjson1_deserializeDocument__listOfVersionSummary(v *[]*types.VersionS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VersionSummary + var cv []types.VersionSummary if *v == nil { - cv = []*types.VersionSummary{} + cv = []types.VersionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.VersionSummary - if err := awsRestjson1_deserializeDocumentVersionSummary(&col, value); err != nil { + var col types.VersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentVersionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3146,7 +3156,7 @@ func awsRestjson1_deserializeDocumentApplicationDependencySummary(v **types.Appl if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "semanticVersion": @@ -3155,7 +3165,7 @@ func awsRestjson1_deserializeDocumentApplicationDependencySummary(v **types.Appl if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SemanticVersion = &jtv + sv.SemanticVersion = ptr.String(jtv) } default: @@ -3210,7 +3220,7 @@ func awsRestjson1_deserializeDocumentApplicationPolicyStatement(v **types.Applic if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.StatementId = &jtv + sv.StatementId = ptr.String(jtv) } default: @@ -3250,7 +3260,7 @@ func awsRestjson1_deserializeDocumentApplicationSummary(v **types.ApplicationSum if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "author": @@ -3259,7 +3269,7 @@ func awsRestjson1_deserializeDocumentApplicationSummary(v **types.ApplicationSum if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Author = &jtv + sv.Author = ptr.String(jtv) } case "creationTime": @@ -3268,7 +3278,7 @@ func awsRestjson1_deserializeDocumentApplicationSummary(v **types.ApplicationSum if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "description": @@ -3277,7 +3287,7 @@ func awsRestjson1_deserializeDocumentApplicationSummary(v **types.ApplicationSum if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "homePageUrl": @@ -3286,7 +3296,7 @@ func awsRestjson1_deserializeDocumentApplicationSummary(v **types.ApplicationSum if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.HomePageUrl = &jtv + sv.HomePageUrl = ptr.String(jtv) } case "labels": @@ -3300,7 +3310,7 @@ func awsRestjson1_deserializeDocumentApplicationSummary(v **types.ApplicationSum if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "spdxLicenseId": @@ -3309,7 +3319,7 @@ func awsRestjson1_deserializeDocumentApplicationSummary(v **types.ApplicationSum if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SpdxLicenseId = &jtv + sv.SpdxLicenseId = ptr.String(jtv) } default: @@ -3349,7 +3359,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "message": @@ -3358,7 +3368,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3398,7 +3408,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "message": @@ -3407,7 +3417,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3447,7 +3457,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "message": @@ -3456,7 +3466,7 @@ func awsRestjson1_deserializeDocumentForbiddenException(v **types.ForbiddenExcep if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3496,7 +3506,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "message": @@ -3505,7 +3515,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3545,7 +3555,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "message": @@ -3554,7 +3564,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3594,7 +3604,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.AllowedPattern = &jtv + sv.AllowedPattern = ptr.String(jtv) } case "allowedValues": @@ -3608,7 +3618,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ConstraintDescription = &jtv + sv.ConstraintDescription = ptr.String(jtv) } case "defaultValue": @@ -3617,7 +3627,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.DefaultValue = &jtv + sv.DefaultValue = ptr.String(jtv) } case "description": @@ -3626,7 +3636,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "maxLength": @@ -3639,7 +3649,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if err != nil { return err } - sv.MaxLength = ptr.Int32(int32(i64)) + sv.MaxLength = int32(i64) } case "maxValue": @@ -3652,7 +3662,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if err != nil { return err } - sv.MaxValue = ptr.Int32(int32(i64)) + sv.MaxValue = int32(i64) } case "minLength": @@ -3665,7 +3675,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if err != nil { return err } - sv.MinLength = ptr.Int32(int32(i64)) + sv.MinLength = int32(i64) } case "minValue": @@ -3678,7 +3688,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if err != nil { return err } - sv.MinValue = ptr.Int32(int32(i64)) + sv.MinValue = int32(i64) } case "name": @@ -3687,7 +3697,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "noEcho": @@ -3696,7 +3706,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.NoEcho = &jtv + sv.NoEcho = jtv } case "referencedByResources": @@ -3710,7 +3720,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -3750,7 +3760,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ErrorCode_ = &jtv + sv.ErrorCode_ = ptr.String(jtv) } case "message": @@ -3759,7 +3769,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3799,7 +3809,7 @@ func awsRestjson1_deserializeDocumentVersion(v **types.Version, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "creationTime": @@ -3808,7 +3818,7 @@ func awsRestjson1_deserializeDocumentVersion(v **types.Version, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "parameterDefinitions": @@ -3827,7 +3837,7 @@ func awsRestjson1_deserializeDocumentVersion(v **types.Version, value interface{ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ResourcesSupported = &jtv + sv.ResourcesSupported = jtv } case "semanticVersion": @@ -3836,7 +3846,7 @@ func awsRestjson1_deserializeDocumentVersion(v **types.Version, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SemanticVersion = &jtv + sv.SemanticVersion = ptr.String(jtv) } case "sourceCodeArchiveUrl": @@ -3845,7 +3855,7 @@ func awsRestjson1_deserializeDocumentVersion(v **types.Version, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceCodeArchiveUrl = &jtv + sv.SourceCodeArchiveUrl = ptr.String(jtv) } case "sourceCodeUrl": @@ -3854,7 +3864,7 @@ func awsRestjson1_deserializeDocumentVersion(v **types.Version, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceCodeUrl = &jtv + sv.SourceCodeUrl = ptr.String(jtv) } case "templateUrl": @@ -3863,7 +3873,7 @@ func awsRestjson1_deserializeDocumentVersion(v **types.Version, value interface{ if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.TemplateUrl = &jtv + sv.TemplateUrl = ptr.String(jtv) } default: @@ -3903,7 +3913,7 @@ func awsRestjson1_deserializeDocumentVersionSummary(v **types.VersionSummary, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.ApplicationId = &jtv + sv.ApplicationId = ptr.String(jtv) } case "creationTime": @@ -3912,7 +3922,7 @@ func awsRestjson1_deserializeDocumentVersionSummary(v **types.VersionSummary, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.CreationTime = &jtv + sv.CreationTime = ptr.String(jtv) } case "semanticVersion": @@ -3921,7 +3931,7 @@ func awsRestjson1_deserializeDocumentVersionSummary(v **types.VersionSummary, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SemanticVersion = &jtv + sv.SemanticVersion = ptr.String(jtv) } case "sourceCodeUrl": @@ -3930,7 +3940,7 @@ func awsRestjson1_deserializeDocumentVersionSummary(v **types.VersionSummary, va if !ok { return fmt.Errorf("expected __string to be of type string, got %T instead", value) } - sv.SourceCodeUrl = &jtv + sv.SourceCodeUrl = ptr.String(jtv) } default: diff --git a/service/serverlessapplicationrepository/go.mod b/service/serverlessapplicationrepository/go.mod index 5bcb8638cb0..c118ea71cb3 100644 --- a/service/serverlessapplicationrepository/go.mod +++ b/service/serverlessapplicationrepository/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/serverlessapplicationrepository go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/serverlessapplicationrepository/serializers.go b/service/serverlessapplicationrepository/serializers.go index ddb02b77d02..555052e2ab7 100644 --- a/service/serverlessapplicationrepository/serializers.go +++ b/service/serverlessapplicationrepository/serializers.go @@ -221,25 +221,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateApplicationVersionInput(v *Create return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.SemanticVersion == nil { + if v.SemanticVersion == nil || len(*v.SemanticVersion) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SemanticVersion must not be empty")} } if v.SemanticVersion != nil { - if len(*v.SemanticVersion) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SemanticVersion must not be empty")} - } if err := encoder.SetURI("SemanticVersion").String(*v.SemanticVersion); err != nil { return err } @@ -337,13 +331,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateCloudFormationChangeSetInput(v *C return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -493,13 +484,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateCloudFormationTemplateInput(v *Cr return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -571,13 +559,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteApplicationInput(v *DeleteApplica return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -637,13 +622,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApplicationInput(v *GetApplicationIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -707,13 +689,10 @@ func awsRestjson1_serializeOpHttpBindingsGetApplicationPolicyInput(v *GetApplica return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -773,25 +752,19 @@ func awsRestjson1_serializeOpHttpBindingsGetCloudFormationTemplateInput(v *GetCl return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.TemplateId == 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 len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } @@ -851,20 +824,17 @@ func awsRestjson1_serializeOpHttpBindingsListApplicationDependenciesInput(v *Lis return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.MaxItems != nil { - encoder.SetQuery("maxItems").Integer(*v.MaxItems) + if v.MaxItems != 0 { + encoder.SetQuery("maxItems").Integer(v.MaxItems) } if v.NextToken != nil { @@ -929,8 +899,8 @@ func awsRestjson1_serializeOpHttpBindingsListApplicationsInput(v *ListApplicatio return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxItems != nil { - encoder.SetQuery("maxItems").Integer(*v.MaxItems) + if v.MaxItems != 0 { + encoder.SetQuery("maxItems").Integer(v.MaxItems) } if v.NextToken != nil { @@ -991,20 +961,17 @@ func awsRestjson1_serializeOpHttpBindingsListApplicationVersionsInput(v *ListApp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } } - if v.MaxItems != nil { - encoder.SetQuery("maxItems").Integer(*v.MaxItems) + if v.MaxItems != 0 { + encoder.SetQuery("maxItems").Integer(v.MaxItems) } if v.NextToken != nil { @@ -1076,13 +1043,10 @@ func awsRestjson1_serializeOpHttpBindingsPutApplicationPolicyInput(v *PutApplica return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -1167,13 +1131,10 @@ func awsRestjson1_serializeOpHttpBindingsUnshareApplicationInput(v *UnshareAppli return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -1256,13 +1217,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateApplicationInput(v *UpdateApplica return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ApplicationId == nil { + if v.ApplicationId == nil || len(*v.ApplicationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} } if v.ApplicationId != nil { - if len(*v.ApplicationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ApplicationId must not be empty")} - } if err := encoder.SetURI("ApplicationId").String(*v.ApplicationId); err != nil { return err } @@ -1310,83 +1268,63 @@ func awsRestjson1_serializeOpDocumentUpdateApplicationInput(v *UpdateApplication return nil } -func awsRestjson1_serializeDocument__listOf__string(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocument__listOfApplicationPolicyStatement(v []*types.ApplicationPolicyStatement, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfApplicationPolicyStatement(v []types.ApplicationPolicyStatement, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentApplicationPolicyStatement(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentApplicationPolicyStatement(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfParameterValue(v []*types.ParameterValue, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfParameterValue(v []types.ParameterValue, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentParameterValue(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentParameterValue(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfRollbackTrigger(v []*types.RollbackTrigger, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfRollbackTrigger(v []types.RollbackTrigger, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentRollbackTrigger(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentRollbackTrigger(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocument__listOfTag(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocument__listOfTag(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -1447,9 +1385,9 @@ func awsRestjson1_serializeDocumentRollbackConfiguration(v *types.RollbackConfig object := value.Object() defer object.Close() - if v.MonitoringTimeInMinutes != nil { + if v.MonitoringTimeInMinutes != 0 { ok := object.Key("monitoringTimeInMinutes") - ok.Integer(*v.MonitoringTimeInMinutes) + ok.Integer(v.MonitoringTimeInMinutes) } if v.RollbackTriggers != nil { diff --git a/service/serverlessapplicationrepository/types/types.go b/service/serverlessapplicationrepository/types/types.go index 79db2b77db0..c5d4ebdad9f 100644 --- a/service/serverlessapplicationrepository/types/types.go +++ b/service/serverlessapplicationrepository/types/types.go @@ -24,17 +24,17 @@ type ApplicationPolicyStatement struct { // (https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-permissions). // // This member is required. - Actions []*string + Actions []string // An array of AWS account IDs, or * to make the application public. // // This member is required. - Principals []*string + Principals []string // An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#principal-org-id) // global condition key. - PrincipalOrgIDs []*string + PrincipalOrgIDs []string // A unique ID for the statement. StatementId *string @@ -74,7 +74,7 @@ type ApplicationSummary struct { // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; - Labels []*string + Labels []string // A valid identifier from https://spdx.org/licenses/ (https://spdx.org/licenses/). SpdxLicenseId *string @@ -91,13 +91,13 @@ type ParameterDefinition struct { // A list of AWS SAM resources that use this parameter. // // This member is required. - ReferencedByResources []*string + ReferencedByResources []string // A regular expression that represents the patterns to allow for String types. AllowedPattern *string // An array containing the list of values allowed for the parameter. - AllowedValues []*string + AllowedValues []string // A string that explains a constraint when the constraint is violated. For // example, without a constraint description, a parameter that has an allowed @@ -119,24 +119,24 @@ type ParameterDefinition struct { // An integer value that determines the largest number of characters that you want // to allow for String types. - MaxLength *int32 + MaxLength int32 // A numeric value that determines the largest numeric value that you want to allow // for Number types. - MaxValue *int32 + MaxValue int32 // An integer value that determines the smallest number of characters that you want // to allow for String types. - MinLength *int32 + MinLength int32 // A numeric value that determines the smallest numeric value that you want to // allow for Number types. - MinValue *int32 + MinValue int32 // Whether to mask the parameter value whenever anyone makes a call that describes // the stack. If you set the value to true, the parameter value is masked with // asterisks (*****). - NoEcho *bool + NoEcho bool // The type of the parameter.Valid values: String | Number | List | // CommaDelimitedList String: A literal string.For example, users can specify @@ -181,13 +181,13 @@ type RollbackConfiguration struct { // CloudFormation RollbackConfiguration // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackConfiguration) // Data Type. - MonitoringTimeInMinutes *int32 + MonitoringTimeInMinutes int32 // This property corresponds to the content of the same name for the AWS // CloudFormation RollbackConfiguration // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackConfiguration) // Data Type. - RollbackTriggers []*RollbackTrigger + RollbackTriggers []RollbackTrigger } // This property corresponds to the AWS CloudFormation RollbackTrigger @@ -250,7 +250,7 @@ type Version struct { // An array of parameter types supported by the application. // // This member is required. - ParameterDefinitions []*ParameterDefinition + ParameterDefinitions []ParameterDefinition // A list of values that you must specify before you can deploy certain // applications. Some applications might include resources that can affect @@ -295,7 +295,7 @@ type Version struct { // the region in which it is being retrieved. // // This member is required. - ResourcesSupported *bool + ResourcesSupported bool // The semantic version of the application: https://semver.org/ // (https://semver.org/) diff --git a/service/serverlessapplicationrepository/validators.go b/service/serverlessapplicationrepository/validators.go index 5a344467b3b..87deed20777 100644 --- a/service/serverlessapplicationrepository/validators.go +++ b/service/serverlessapplicationrepository/validators.go @@ -322,13 +322,13 @@ func addOpUpdateApplicationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateApplication{}, middleware.After) } -func validate__listOfApplicationPolicyStatement(v []*types.ApplicationPolicyStatement) error { +func validate__listOfApplicationPolicyStatement(v []types.ApplicationPolicyStatement) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfApplicationPolicyStatement"} for i := range v { - if err := validateApplicationPolicyStatement(v[i]); err != nil { + if err := validateApplicationPolicyStatement(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -339,13 +339,13 @@ func validate__listOfApplicationPolicyStatement(v []*types.ApplicationPolicyStat } } -func validate__listOfParameterValue(v []*types.ParameterValue) error { +func validate__listOfParameterValue(v []types.ParameterValue) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfParameterValue"} for i := range v { - if err := validateParameterValue(v[i]); err != nil { + if err := validateParameterValue(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -356,13 +356,13 @@ func validate__listOfParameterValue(v []*types.ParameterValue) error { } } -func validate__listOfRollbackTrigger(v []*types.RollbackTrigger) error { +func validate__listOfRollbackTrigger(v []types.RollbackTrigger) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfRollbackTrigger"} for i := range v { - if err := validateRollbackTrigger(v[i]); err != nil { + if err := validateRollbackTrigger(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -373,13 +373,13 @@ func validate__listOfRollbackTrigger(v []*types.RollbackTrigger) error { } } -func validate__listOfTag(v []*types.Tag) error { +func validate__listOfTag(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListOfTag"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/servicecatalog/api_op_BatchAssociateServiceActionWithProvisioningArtifact.go b/service/servicecatalog/api_op_BatchAssociateServiceActionWithProvisioningArtifact.go index a0a5d299b93..e8f934f062b 100644 --- a/service/servicecatalog/api_op_BatchAssociateServiceActionWithProvisioningArtifact.go +++ b/service/servicecatalog/api_op_BatchAssociateServiceActionWithProvisioningArtifact.go @@ -33,7 +33,7 @@ type BatchAssociateServiceActionWithProvisioningArtifactInput struct { // the Provisioning Artifact ID. // // This member is required. - ServiceActionAssociations []*types.ServiceActionAssociation + ServiceActionAssociations []types.ServiceActionAssociation // The language code. // @@ -49,7 +49,7 @@ type BatchAssociateServiceActionWithProvisioningArtifactOutput struct { // An object that contains a list of errors, along with information to help you // identify the self-service action. - FailedServiceActionAssociations []*types.FailedServiceActionAssociation + FailedServiceActionAssociations []types.FailedServiceActionAssociation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_BatchDisassociateServiceActionFromProvisioningArtifact.go b/service/servicecatalog/api_op_BatchDisassociateServiceActionFromProvisioningArtifact.go index 58a1a44e89b..cfc462824e3 100644 --- a/service/servicecatalog/api_op_BatchDisassociateServiceActionFromProvisioningArtifact.go +++ b/service/servicecatalog/api_op_BatchDisassociateServiceActionFromProvisioningArtifact.go @@ -34,7 +34,7 @@ type BatchDisassociateServiceActionFromProvisioningArtifactInput struct { // the Provisioning Artifact ID. // // This member is required. - ServiceActionAssociations []*types.ServiceActionAssociation + ServiceActionAssociations []types.ServiceActionAssociation // The language code. // @@ -50,7 +50,7 @@ type BatchDisassociateServiceActionFromProvisioningArtifactOutput struct { // An object that contains a list of errors, along with information to help you // identify the self-service action. - FailedServiceActionAssociations []*types.FailedServiceActionAssociation + FailedServiceActionAssociations []types.FailedServiceActionAssociation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_CopyProduct.go b/service/servicecatalog/api_op_CopyProduct.go index 12ace07af76..1d52361292f 100644 --- a/service/servicecatalog/api_op_CopyProduct.go +++ b/service/servicecatalog/api_op_CopyProduct.go @@ -61,7 +61,7 @@ type CopyProductInput struct { // The identifiers of the provisioning artifacts (also known as versions) of the // product to copy. By default, all provisioning artifacts are copied. - SourceProvisioningArtifactIdentifiers []map[string]*string + SourceProvisioningArtifactIdentifiers []map[string]string // The identifier of the target product. By default, a new product is created. TargetProductId *string diff --git a/service/servicecatalog/api_op_CreatePortfolio.go b/service/servicecatalog/api_op_CreatePortfolio.go index f80d2b8c07a..0525beadac4 100644 --- a/service/servicecatalog/api_op_CreatePortfolio.go +++ b/service/servicecatalog/api_op_CreatePortfolio.go @@ -60,7 +60,7 @@ type CreatePortfolioInput struct { Description *string // One or more tags. - Tags []*types.Tag + Tags []types.Tag } type CreatePortfolioOutput struct { @@ -69,7 +69,7 @@ type CreatePortfolioOutput struct { PortfolioDetail *types.PortfolioDetail // Information about the tags associated with the portfolio. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_CreateProduct.go b/service/servicecatalog/api_op_CreateProduct.go index 83e90c2496f..7b0eb050433 100644 --- a/service/servicecatalog/api_op_CreateProduct.go +++ b/service/servicecatalog/api_op_CreateProduct.go @@ -82,7 +82,7 @@ type CreateProductInput struct { SupportUrl *string // One or more tags. - Tags []*types.Tag + Tags []types.Tag } type CreateProductOutput struct { @@ -94,7 +94,7 @@ type CreateProductOutput struct { ProvisioningArtifactDetail *types.ProvisioningArtifactDetail // Information about the tags associated with the product. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_CreateProvisionedProductPlan.go b/service/servicecatalog/api_op_CreateProvisionedProductPlan.go index a0d18f3a862..d747fa306b5 100644 --- a/service/servicecatalog/api_op_CreateProvisionedProductPlan.go +++ b/service/servicecatalog/api_op_CreateProvisionedProductPlan.go @@ -80,7 +80,7 @@ type CreateProvisionedProductPlanInput struct { // Passed to CloudFormation. The SNS topic ARNs to which to publish stack-related // events. - NotificationArns []*string + NotificationArns []string // The path identifier of the product. This value is optional if the product has a // default path, and required if the product has more than one path. To list the @@ -89,12 +89,12 @@ type CreateProvisionedProductPlanInput struct { // Parameters specified by the administrator that are required for provisioning the // product. - ProvisioningParameters []*types.UpdateProvisioningParameter + ProvisioningParameters []types.UpdateProvisioningParameter // One or more tags. If the plan is for an existing provisioned product, the // product must have a RESOURCE_UPDATE constraint with // TagUpdatesOnProvisionedProduct set to ALLOWED to allow tag updates. - Tags []*types.Tag + Tags []types.Tag } type CreateProvisionedProductPlanOutput struct { diff --git a/service/servicecatalog/api_op_CreateProvisioningArtifact.go b/service/servicecatalog/api_op_CreateProvisioningArtifact.go index bb1d8a9acc0..0d8eefa28fb 100644 --- a/service/servicecatalog/api_op_CreateProvisioningArtifact.go +++ b/service/servicecatalog/api_op_CreateProvisioningArtifact.go @@ -62,7 +62,7 @@ type CreateProvisioningArtifactInput struct { type CreateProvisioningArtifactOutput struct { // The URL of the CloudFormation template in Amazon S3, in JSON format. - Info map[string]*string + Info map[string]string // Information about the provisioning artifact. ProvisioningArtifactDetail *types.ProvisioningArtifactDetail diff --git a/service/servicecatalog/api_op_CreateServiceAction.go b/service/servicecatalog/api_op_CreateServiceAction.go index 466b80635bf..28062d3a19f 100644 --- a/service/servicecatalog/api_op_CreateServiceAction.go +++ b/service/servicecatalog/api_op_CreateServiceAction.go @@ -43,7 +43,7 @@ type CreateServiceActionInput struct { // [{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}]. // // This member is required. - Definition map[string]*string + Definition map[string]string // The service action definition type. For example, SSM_AUTOMATION. // diff --git a/service/servicecatalog/api_op_DeleteProvisionedProductPlan.go b/service/servicecatalog/api_op_DeleteProvisionedProductPlan.go index c5bddd032ec..dc0c6332a09 100644 --- a/service/servicecatalog/api_op_DeleteProvisionedProductPlan.go +++ b/service/servicecatalog/api_op_DeleteProvisionedProductPlan.go @@ -44,7 +44,7 @@ type DeleteProvisionedProductPlanInput struct { // If set to true, AWS Service Catalog stops managing the specified provisioned // product even if it cannot delete the underlying resources. - IgnoreErrors *bool + IgnoreErrors bool } type DeleteProvisionedProductPlanOutput struct { diff --git a/service/servicecatalog/api_op_DescribePortfolio.go b/service/servicecatalog/api_op_DescribePortfolio.go index 6d11bdbf412..abf0fc3561d 100644 --- a/service/servicecatalog/api_op_DescribePortfolio.go +++ b/service/servicecatalog/api_op_DescribePortfolio.go @@ -48,16 +48,16 @@ type DescribePortfolioInput struct { type DescribePortfolioOutput struct { // Information about the associated budgets. - Budgets []*types.BudgetDetail + Budgets []types.BudgetDetail // Information about the portfolio. PortfolioDetail *types.PortfolioDetail // Information about the TagOptions associated with the portfolio. - TagOptions []*types.TagOptionDetail + TagOptions []types.TagOptionDetail // Information about the tags associated with the portfolio. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_DescribeProduct.go b/service/servicecatalog/api_op_DescribeProduct.go index 114f7a4beec..09845df1a92 100644 --- a/service/servicecatalog/api_op_DescribeProduct.go +++ b/service/servicecatalog/api_op_DescribeProduct.go @@ -48,16 +48,16 @@ type DescribeProductInput struct { type DescribeProductOutput struct { // Information about the associated budgets. - Budgets []*types.BudgetDetail + Budgets []types.BudgetDetail // Information about the associated launch paths. - LaunchPaths []*types.LaunchPath + LaunchPaths []types.LaunchPath // Summary information about the product view. ProductViewSummary *types.ProductViewSummary // Information about the provisioning artifacts for the specified product. - ProvisioningArtifacts []*types.ProvisioningArtifact + ProvisioningArtifacts []types.ProvisioningArtifact // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_DescribeProductAsAdmin.go b/service/servicecatalog/api_op_DescribeProductAsAdmin.go index 42340a64ee6..99946ff38a7 100644 --- a/service/servicecatalog/api_op_DescribeProductAsAdmin.go +++ b/service/servicecatalog/api_op_DescribeProductAsAdmin.go @@ -49,20 +49,20 @@ type DescribeProductAsAdminInput struct { type DescribeProductAsAdminOutput struct { // Information about the associated budgets. - Budgets []*types.BudgetDetail + Budgets []types.BudgetDetail // Information about the product view. ProductViewDetail *types.ProductViewDetail // Information about the provisioning artifacts (also known as versions) for the // specified product. - ProvisioningArtifactSummaries []*types.ProvisioningArtifactSummary + ProvisioningArtifactSummaries []types.ProvisioningArtifactSummary // Information about the TagOptions associated with the product. - TagOptions []*types.TagOptionDetail + TagOptions []types.TagOptionDetail // Information about the tags associated with the product. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_DescribeProductView.go b/service/servicecatalog/api_op_DescribeProductView.go index 910b1cf87fc..e227c9e0684 100644 --- a/service/servicecatalog/api_op_DescribeProductView.go +++ b/service/servicecatalog/api_op_DescribeProductView.go @@ -50,7 +50,7 @@ type DescribeProductViewOutput struct { ProductViewSummary *types.ProductViewSummary // Information about the provisioning artifacts for the product. - ProvisioningArtifacts []*types.ProvisioningArtifact + ProvisioningArtifacts []types.ProvisioningArtifact // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_DescribeProvisionedProduct.go b/service/servicecatalog/api_op_DescribeProvisionedProduct.go index 55633492403..f4e1b543ed7 100644 --- a/service/servicecatalog/api_op_DescribeProvisionedProduct.go +++ b/service/servicecatalog/api_op_DescribeProvisionedProduct.go @@ -56,7 +56,7 @@ type DescribeProvisionedProductInput struct { type DescribeProvisionedProductOutput struct { // Any CloudWatch dashboards that were created when provisioning the product. - CloudWatchDashboards []*types.CloudWatchDashboard + CloudWatchDashboards []types.CloudWatchDashboard // Information about the provisioned product. ProvisionedProductDetail *types.ProvisionedProductDetail diff --git a/service/servicecatalog/api_op_DescribeProvisionedProductPlan.go b/service/servicecatalog/api_op_DescribeProvisionedProductPlan.go index 447e2206356..b869822ca8f 100644 --- a/service/servicecatalog/api_op_DescribeProvisionedProductPlan.go +++ b/service/servicecatalog/api_op_DescribeProvisionedProductPlan.go @@ -44,7 +44,7 @@ type DescribeProvisionedProductPlanInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -62,7 +62,7 @@ type DescribeProvisionedProductPlanOutput struct { // Information about the resource changes that will occur when the plan is // executed. - ResourceChanges []*types.ResourceChange + ResourceChanges []types.ResourceChange // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_DescribeProvisioningArtifact.go b/service/servicecatalog/api_op_DescribeProvisioningArtifact.go index e469b2cd6c2..86f0bb6f846 100644 --- a/service/servicecatalog/api_op_DescribeProvisioningArtifact.go +++ b/service/servicecatalog/api_op_DescribeProvisioningArtifact.go @@ -52,13 +52,13 @@ type DescribeProvisioningArtifactInput struct { ProvisioningArtifactName *string // Indicates whether a verbose level of detail is enabled. - Verbose *bool + Verbose bool } type DescribeProvisioningArtifactOutput struct { // The URL of the CloudFormation template in Amazon S3. - Info map[string]*string + Info map[string]string // Information about the provisioning artifact. ProvisioningArtifactDetail *types.ProvisioningArtifactDetail diff --git a/service/servicecatalog/api_op_DescribeProvisioningParameters.go b/service/servicecatalog/api_op_DescribeProvisioningParameters.go index b7a405117b5..38b96f889cb 100644 --- a/service/servicecatalog/api_op_DescribeProvisioningParameters.go +++ b/service/servicecatalog/api_op_DescribeProvisioningParameters.go @@ -72,24 +72,24 @@ type DescribeProvisioningParametersInput struct { type DescribeProvisioningParametersOutput struct { // Information about the constraints used to provision the product. - ConstraintSummaries []*types.ConstraintSummary + ConstraintSummaries []types.ConstraintSummary // The output of the provisioning artifact. - ProvisioningArtifactOutputs []*types.ProvisioningArtifactOutput + ProvisioningArtifactOutputs []types.ProvisioningArtifactOutput // Information about the parameters used to provision the product. - ProvisioningArtifactParameters []*types.ProvisioningArtifactParameter + ProvisioningArtifactParameters []types.ProvisioningArtifactParameter // An object that contains information about preferences, such as regions and // accounts, for the provisioning artifact. ProvisioningArtifactPreferences *types.ProvisioningArtifactPreferences // Information about the TagOptions associated with the resource. - TagOptions []*types.TagOptionSummary + TagOptions []types.TagOptionSummary // Any additional metadata specifically related to the provisioning of the product. // For example, see the Version field of the CloudFormation template. - UsageInstructions []*types.UsageInstruction + UsageInstructions []types.UsageInstruction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_DescribeRecord.go b/service/servicecatalog/api_op_DescribeRecord.go index 757772fc771..6da8136d3f1 100644 --- a/service/servicecatalog/api_op_DescribeRecord.go +++ b/service/servicecatalog/api_op_DescribeRecord.go @@ -52,7 +52,7 @@ type DescribeRecordInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -71,7 +71,7 @@ type DescribeRecordOutput struct { // Information about the product created as the result of a request. For example, // the output for a CloudFormation-backed product that creates an S3 bucket would // include the S3 bucket URL. - RecordOutputs []*types.RecordOutput + RecordOutputs []types.RecordOutput // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_DescribeServiceActionExecutionParameters.go b/service/servicecatalog/api_op_DescribeServiceActionExecutionParameters.go index 0fad3d9ef3b..1734e145a3d 100644 --- a/service/servicecatalog/api_op_DescribeServiceActionExecutionParameters.go +++ b/service/servicecatalog/api_op_DescribeServiceActionExecutionParameters.go @@ -53,7 +53,7 @@ type DescribeServiceActionExecutionParametersInput struct { type DescribeServiceActionExecutionParametersOutput struct { // The parameters of the self-service action. - ServiceActionParameters []*types.ExecutionParameter + ServiceActionParameters []types.ExecutionParameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ExecuteProvisionedProductServiceAction.go b/service/servicecatalog/api_op_ExecuteProvisionedProductServiceAction.go index bbcadd6c86d..4ff1d23541a 100644 --- a/service/servicecatalog/api_op_ExecuteProvisionedProductServiceAction.go +++ b/service/servicecatalog/api_op_ExecuteProvisionedProductServiceAction.go @@ -59,7 +59,7 @@ type ExecuteProvisionedProductServiceActionInput struct { // the default value generated by AWS Service Catalog. If the parameters field is // not provided, no additional parameters are passed and default values will be // used for any special parameters such as TARGET. - Parameters map[string][]*string + Parameters map[string][]string } type ExecuteProvisionedProductServiceActionOutput struct { diff --git a/service/servicecatalog/api_op_GetProvisionedProductOutputs.go b/service/servicecatalog/api_op_GetProvisionedProductOutputs.go index bb278e054cf..8afba18518c 100644 --- a/service/servicecatalog/api_op_GetProvisionedProductOutputs.go +++ b/service/servicecatalog/api_op_GetProvisionedProductOutputs.go @@ -42,10 +42,10 @@ type GetProvisionedProductOutputsInput struct { // The list of keys that the API should return with their values. If none are // provided, the API will return all outputs of the provisioned product. - OutputKeys []*string + OutputKeys []string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -67,7 +67,7 @@ type GetProvisionedProductOutputsOutput struct { // Information about the product created as the result of a request. For example, // the output for a CloudFormation-backed product that creates an S3 bucket would // include the S3 bucket URL. - Outputs []*types.RecordOutput + Outputs []types.RecordOutput // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListAcceptedPortfolioShares.go b/service/servicecatalog/api_op_ListAcceptedPortfolioShares.go index 889d7d32b3b..5b913086a6c 100644 --- a/service/servicecatalog/api_op_ListAcceptedPortfolioShares.go +++ b/service/servicecatalog/api_op_ListAcceptedPortfolioShares.go @@ -39,7 +39,7 @@ type ListAcceptedPortfolioSharesInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -65,7 +65,7 @@ type ListAcceptedPortfolioSharesOutput struct { NextPageToken *string // Information about the portfolios. - PortfolioDetails []*types.PortfolioDetail + PortfolioDetails []types.PortfolioDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListBudgetsForResource.go b/service/servicecatalog/api_op_ListBudgetsForResource.go index bdee1f0a392..0c08f5c2f91 100644 --- a/service/servicecatalog/api_op_ListBudgetsForResource.go +++ b/service/servicecatalog/api_op_ListBudgetsForResource.go @@ -44,7 +44,7 @@ type ListBudgetsForResourceInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -54,7 +54,7 @@ type ListBudgetsForResourceInput struct { type ListBudgetsForResourceOutput struct { // Information about the associated budgets. - Budgets []*types.BudgetDetail + Budgets []types.BudgetDetail // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. diff --git a/service/servicecatalog/api_op_ListConstraintsForPortfolio.go b/service/servicecatalog/api_op_ListConstraintsForPortfolio.go index 6b5b35f5071..7d6dbad35b8 100644 --- a/service/servicecatalog/api_op_ListConstraintsForPortfolio.go +++ b/service/servicecatalog/api_op_ListConstraintsForPortfolio.go @@ -44,7 +44,7 @@ type ListConstraintsForPortfolioInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -57,7 +57,7 @@ type ListConstraintsForPortfolioInput struct { type ListConstraintsForPortfolioOutput struct { // Information about the constraints. - ConstraintDetails []*types.ConstraintDetail + ConstraintDetails []types.ConstraintDetail // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. diff --git a/service/servicecatalog/api_op_ListLaunchPaths.go b/service/servicecatalog/api_op_ListLaunchPaths.go index 3aa69068d64..5e122e8ef58 100644 --- a/service/servicecatalog/api_op_ListLaunchPaths.go +++ b/service/servicecatalog/api_op_ListLaunchPaths.go @@ -46,7 +46,7 @@ type ListLaunchPathsInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -56,7 +56,7 @@ type ListLaunchPathsInput struct { type ListLaunchPathsOutput struct { // Information about the launch path. - LaunchPathSummaries []*types.LaunchPathSummary + LaunchPathSummaries []types.LaunchPathSummary // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. diff --git a/service/servicecatalog/api_op_ListOrganizationPortfolioAccess.go b/service/servicecatalog/api_op_ListOrganizationPortfolioAccess.go index c884da0c4c3..b53c9baf571 100644 --- a/service/servicecatalog/api_op_ListOrganizationPortfolioAccess.go +++ b/service/servicecatalog/api_op_ListOrganizationPortfolioAccess.go @@ -62,7 +62,7 @@ type ListOrganizationPortfolioAccessInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -76,7 +76,7 @@ type ListOrganizationPortfolioAccessOutput struct { NextPageToken *string // Displays information about the organization nodes. - OrganizationNodes []*types.OrganizationNode + OrganizationNodes []types.OrganizationNode // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListPortfolioAccess.go b/service/servicecatalog/api_op_ListPortfolioAccess.go index de2b23e703d..047dfb90111 100644 --- a/service/servicecatalog/api_op_ListPortfolioAccess.go +++ b/service/servicecatalog/api_op_ListPortfolioAccess.go @@ -50,7 +50,7 @@ type ListPortfolioAccessInput struct { OrganizationParentId *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -60,7 +60,7 @@ type ListPortfolioAccessInput struct { type ListPortfolioAccessOutput struct { // Information about the AWS accounts with access to the portfolio. - AccountIds []*string + AccountIds []string // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. diff --git a/service/servicecatalog/api_op_ListPortfolios.go b/service/servicecatalog/api_op_ListPortfolios.go index 8bb14f62a76..a6ca73d4cd5 100644 --- a/service/servicecatalog/api_op_ListPortfolios.go +++ b/service/servicecatalog/api_op_ListPortfolios.go @@ -39,7 +39,7 @@ type ListPortfoliosInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -53,7 +53,7 @@ type ListPortfoliosOutput struct { NextPageToken *string // Information about the portfolios. - PortfolioDetails []*types.PortfolioDetail + PortfolioDetails []types.PortfolioDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListPortfoliosForProduct.go b/service/servicecatalog/api_op_ListPortfoliosForProduct.go index c26378cecdb..3815a2d51d8 100644 --- a/service/servicecatalog/api_op_ListPortfoliosForProduct.go +++ b/service/servicecatalog/api_op_ListPortfoliosForProduct.go @@ -44,7 +44,7 @@ type ListPortfoliosForProductInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -58,7 +58,7 @@ type ListPortfoliosForProductOutput struct { NextPageToken *string // Information about the portfolios. - PortfolioDetails []*types.PortfolioDetail + PortfolioDetails []types.PortfolioDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListPrincipalsForPortfolio.go b/service/servicecatalog/api_op_ListPrincipalsForPortfolio.go index 208732a5455..906e142301d 100644 --- a/service/servicecatalog/api_op_ListPrincipalsForPortfolio.go +++ b/service/servicecatalog/api_op_ListPrincipalsForPortfolio.go @@ -44,7 +44,7 @@ type ListPrincipalsForPortfolioInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -58,7 +58,7 @@ type ListPrincipalsForPortfolioOutput struct { NextPageToken *string // The IAM principals (users or roles) associated with the portfolio. - Principals []*types.Principal + Principals []types.Principal // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListProvisionedProductPlans.go b/service/servicecatalog/api_op_ListProvisionedProductPlans.go index 821aa11509e..e55a1d1a38f 100644 --- a/service/servicecatalog/api_op_ListProvisionedProductPlans.go +++ b/service/servicecatalog/api_op_ListProvisionedProductPlans.go @@ -43,7 +43,7 @@ type ListProvisionedProductPlansInput struct { AccessLevelFilter *types.AccessLevelFilter // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -60,7 +60,7 @@ type ListProvisionedProductPlansOutput struct { NextPageToken *string // Information about the plans. - ProvisionedProductPlans []*types.ProvisionedProductPlanSummary + ProvisionedProductPlans []types.ProvisionedProductPlanSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListProvisioningArtifacts.go b/service/servicecatalog/api_op_ListProvisioningArtifacts.go index d05ef675360..f107c01f1bc 100644 --- a/service/servicecatalog/api_op_ListProvisioningArtifacts.go +++ b/service/servicecatalog/api_op_ListProvisioningArtifacts.go @@ -52,7 +52,7 @@ type ListProvisioningArtifactsOutput struct { NextPageToken *string // Information about the provisioning artifacts. - ProvisioningArtifactDetails []*types.ProvisioningArtifactDetail + ProvisioningArtifactDetails []types.ProvisioningArtifactDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListProvisioningArtifactsForServiceAction.go b/service/servicecatalog/api_op_ListProvisioningArtifactsForServiceAction.go index 3de06c9ddb3..2973dc2f482 100644 --- a/service/servicecatalog/api_op_ListProvisioningArtifactsForServiceAction.go +++ b/service/servicecatalog/api_op_ListProvisioningArtifactsForServiceAction.go @@ -45,7 +45,7 @@ type ListProvisioningArtifactsForServiceActionInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -60,7 +60,7 @@ type ListProvisioningArtifactsForServiceActionOutput struct { // An array of objects with information about product views and provisioning // artifacts. - ProvisioningArtifactViews []*types.ProvisioningArtifactView + ProvisioningArtifactViews []types.ProvisioningArtifactView // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListRecordHistory.go b/service/servicecatalog/api_op_ListRecordHistory.go index 318984f6490..6cdd8caa8bc 100644 --- a/service/servicecatalog/api_op_ListRecordHistory.go +++ b/service/servicecatalog/api_op_ListRecordHistory.go @@ -42,7 +42,7 @@ type ListRecordHistoryInput struct { AccessLevelFilter *types.AccessLevelFilter // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -59,7 +59,7 @@ type ListRecordHistoryOutput struct { NextPageToken *string // The records, in reverse chronological order. - RecordDetails []*types.RecordDetail + RecordDetails []types.RecordDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListResourcesForTagOption.go b/service/servicecatalog/api_op_ListResourcesForTagOption.go index 34407549f42..dcff7e515f4 100644 --- a/service/servicecatalog/api_op_ListResourcesForTagOption.go +++ b/service/servicecatalog/api_op_ListResourcesForTagOption.go @@ -35,7 +35,7 @@ type ListResourcesForTagOptionInput struct { TagOptionId *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -56,7 +56,7 @@ type ListResourcesForTagOptionOutput struct { PageToken *string // Information about the resources. - ResourceDetails []*types.ResourceDetail + ResourceDetails []types.ResourceDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListServiceActions.go b/service/servicecatalog/api_op_ListServiceActions.go index 960af1c174c..6180a7d4cfb 100644 --- a/service/servicecatalog/api_op_ListServiceActions.go +++ b/service/servicecatalog/api_op_ListServiceActions.go @@ -39,7 +39,7 @@ type ListServiceActionsInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -54,7 +54,7 @@ type ListServiceActionsOutput struct { // An object containing information about the service actions associated with the // provisioning artifact. - ServiceActionSummaries []*types.ServiceActionSummary + ServiceActionSummaries []types.ServiceActionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListServiceActionsForProvisioningArtifact.go b/service/servicecatalog/api_op_ListServiceActionsForProvisioningArtifact.go index a4f597ee881..ed083bb393e 100644 --- a/service/servicecatalog/api_op_ListServiceActionsForProvisioningArtifact.go +++ b/service/servicecatalog/api_op_ListServiceActionsForProvisioningArtifact.go @@ -50,7 +50,7 @@ type ListServiceActionsForProvisioningArtifactInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -65,7 +65,7 @@ type ListServiceActionsForProvisioningArtifactOutput struct { // An object containing information about the self-service actions associated with // the provisioning artifact. - ServiceActionSummaries []*types.ServiceActionSummary + ServiceActionSummaries []types.ServiceActionSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListStackInstancesForProvisionedProduct.go b/service/servicecatalog/api_op_ListStackInstancesForProvisionedProduct.go index cc1fd5cb92d..f3e79855b5e 100644 --- a/service/servicecatalog/api_op_ListStackInstancesForProvisionedProduct.go +++ b/service/servicecatalog/api_op_ListStackInstancesForProvisionedProduct.go @@ -46,7 +46,7 @@ type ListStackInstancesForProvisionedProductInput struct { AcceptLanguage *string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -60,7 +60,7 @@ type ListStackInstancesForProvisionedProductOutput struct { NextPageToken *string // List of stack instances. - StackInstances []*types.StackInstance + StackInstances []types.StackInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ListTagOptions.go b/service/servicecatalog/api_op_ListTagOptions.go index faa794eb204..83e30b8107d 100644 --- a/service/servicecatalog/api_op_ListTagOptions.go +++ b/service/servicecatalog/api_op_ListTagOptions.go @@ -34,7 +34,7 @@ type ListTagOptionsInput struct { Filters *types.ListTagOptionsFilters // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -48,7 +48,7 @@ type ListTagOptionsOutput struct { PageToken *string // Information about the TagOptions. - TagOptionDetails []*types.TagOptionDetail + TagOptionDetails []types.TagOptionDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_ProvisionProduct.go b/service/servicecatalog/api_op_ProvisionProduct.go index 2a6056d84a7..7bd6deaf0d5 100644 --- a/service/servicecatalog/api_op_ProvisionProduct.go +++ b/service/servicecatalog/api_op_ProvisionProduct.go @@ -58,7 +58,7 @@ type ProvisionProductInput struct { // Passed to CloudFormation. The SNS topic ARNs to which to publish stack-related // events. - NotificationArns []*string + NotificationArns []string // The path identifier of the product. This value is optional if the product has a // default path, and required if the product has more than one path. To list the @@ -85,14 +85,14 @@ type ProvisionProductInput struct { // Parameters specified by the administrator that are required for provisioning the // product. - ProvisioningParameters []*types.ProvisioningParameter + ProvisioningParameters []types.ProvisioningParameter // An object that contains information about the provisioning preferences for a // stack set. ProvisioningPreferences *types.ProvisioningPreferences // One or more tags. - Tags []*types.Tag + Tags []types.Tag } type ProvisionProductOutput struct { diff --git a/service/servicecatalog/api_op_ScanProvisionedProducts.go b/service/servicecatalog/api_op_ScanProvisionedProducts.go index ba99902cf17..ce139077c60 100644 --- a/service/servicecatalog/api_op_ScanProvisionedProducts.go +++ b/service/servicecatalog/api_op_ScanProvisionedProducts.go @@ -43,7 +43,7 @@ type ScanProvisionedProductsInput struct { AccessLevelFilter *types.AccessLevelFilter // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -57,7 +57,7 @@ type ScanProvisionedProductsOutput struct { NextPageToken *string // Information about the provisioned products. - ProvisionedProducts []*types.ProvisionedProductDetail + ProvisionedProducts []types.ProvisionedProductDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_SearchProducts.go b/service/servicecatalog/api_op_SearchProducts.go index 697d35c0df5..01c37e597c7 100644 --- a/service/servicecatalog/api_op_SearchProducts.go +++ b/service/servicecatalog/api_op_SearchProducts.go @@ -40,10 +40,10 @@ type SearchProductsInput struct { // The search filters. If no search filters are specified, the output includes all // products to which the caller has access. - Filters map[string][]*string + Filters map[string][]string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -63,10 +63,10 @@ type SearchProductsOutput struct { NextPageToken *string // The product view aggregations. - ProductViewAggregations map[string][]*types.ProductViewAggregationValue + ProductViewAggregations map[string][]types.ProductViewAggregationValue // Information about the product views. - ProductViewSummaries []*types.ProductViewSummary + ProductViewSummaries []types.ProductViewSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_SearchProductsAsAdmin.go b/service/servicecatalog/api_op_SearchProductsAsAdmin.go index 333a5c10a25..d470006dde6 100644 --- a/service/servicecatalog/api_op_SearchProductsAsAdmin.go +++ b/service/servicecatalog/api_op_SearchProductsAsAdmin.go @@ -40,10 +40,10 @@ type SearchProductsAsAdminInput struct { // The search filters. If no search filters are specified, the output includes all // products to which the administrator has access. - Filters map[string][]*string + Filters map[string][]string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -69,7 +69,7 @@ type SearchProductsAsAdminOutput struct { NextPageToken *string // Information about the product views. - ProductViewDetails []*types.ProductViewDetail + ProductViewDetails []types.ProductViewDetail // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_SearchProvisionedProducts.go b/service/servicecatalog/api_op_SearchProvisionedProducts.go index 7fc867707ec..435ffd55d61 100644 --- a/service/servicecatalog/api_op_SearchProvisionedProducts.go +++ b/service/servicecatalog/api_op_SearchProvisionedProducts.go @@ -47,10 +47,10 @@ type SearchProvisionedProductsInput struct { // provisioningArtifact, type, status, tags, userArn, userArnSession, // lastProvisioningRecordId, lastSuccessfulProvisioningRecordId, productName, and // provisioningArtifactName. Example: "SearchQuery":["status:AVAILABLE"] - Filters map[string][]*string + Filters map[string][]string // The maximum number of items to return with this call. - PageSize *int32 + PageSize int32 // The page token for the next set of results. To retrieve the first set of // results, use null. @@ -71,10 +71,10 @@ type SearchProvisionedProductsOutput struct { NextPageToken *string // Information about the provisioned products. - ProvisionedProducts []*types.ProvisionedProductAttribute + ProvisionedProducts []types.ProvisionedProductAttribute // The number of provisioned products found. - TotalResultsCount *int32 + TotalResultsCount int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_TerminateProvisionedProduct.go b/service/servicecatalog/api_op_TerminateProvisionedProduct.go index 70e0d573eb6..0905843feb5 100644 --- a/service/servicecatalog/api_op_TerminateProvisionedProduct.go +++ b/service/servicecatalog/api_op_TerminateProvisionedProduct.go @@ -51,7 +51,7 @@ type TerminateProvisionedProductInput struct { // If set to true, AWS Service Catalog stops managing the specified provisioned // product even if it cannot delete the underlying resources. - IgnoreErrors *bool + IgnoreErrors bool // The identifier of the provisioned product. You cannot specify both // ProvisionedProductName and ProvisionedProductId. diff --git a/service/servicecatalog/api_op_UpdatePortfolio.go b/service/servicecatalog/api_op_UpdatePortfolio.go index 9d6b99e6a65..b244e9eddf2 100644 --- a/service/servicecatalog/api_op_UpdatePortfolio.go +++ b/service/servicecatalog/api_op_UpdatePortfolio.go @@ -45,7 +45,7 @@ type UpdatePortfolioInput struct { AcceptLanguage *string // The tags to add. - AddTags []*types.Tag + AddTags []types.Tag // The updated description of the portfolio. Description *string @@ -57,7 +57,7 @@ type UpdatePortfolioInput struct { ProviderName *string // The tags to remove. - RemoveTags []*string + RemoveTags []string } type UpdatePortfolioOutput struct { @@ -66,7 +66,7 @@ type UpdatePortfolioOutput struct { PortfolioDetail *types.PortfolioDetail // Information about the tags associated with the portfolio. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_UpdateProduct.go b/service/servicecatalog/api_op_UpdateProduct.go index 78c558bf68b..095baa46763 100644 --- a/service/servicecatalog/api_op_UpdateProduct.go +++ b/service/servicecatalog/api_op_UpdateProduct.go @@ -44,7 +44,7 @@ type UpdateProductInput struct { AcceptLanguage *string // The tags to add to the product. - AddTags []*types.Tag + AddTags []types.Tag // The updated description of the product. Description *string @@ -59,7 +59,7 @@ type UpdateProductInput struct { Owner *string // The tags to remove from the product. - RemoveTags []*string + RemoveTags []string // The updated support description for the product. SupportDescription *string @@ -77,7 +77,7 @@ type UpdateProductOutput struct { ProductViewDetail *types.ProductViewDetail // Information about the tags associated with the product. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicecatalog/api_op_UpdateProvisionedProduct.go b/service/servicecatalog/api_op_UpdateProvisionedProduct.go index 1f8380a16fb..e1b90085d3f 100644 --- a/service/servicecatalog/api_op_UpdateProvisionedProduct.go +++ b/service/servicecatalog/api_op_UpdateProvisionedProduct.go @@ -78,7 +78,7 @@ type UpdateProvisionedProductInput struct { ProvisioningArtifactName *string // The new parameters. - ProvisioningParameters []*types.UpdateProvisioningParameter + ProvisioningParameters []types.UpdateProvisioningParameter // An object that contains information about the provisioning preferences for a // stack set. @@ -86,7 +86,7 @@ type UpdateProvisionedProductInput struct { // One or more tags. Requires the product to have RESOURCE_UPDATE constraint with // TagUpdatesOnProvisionedProduct set to ALLOWED to allow tag updates. - Tags []*types.Tag + Tags []types.Tag } type UpdateProvisionedProductOutput struct { diff --git a/service/servicecatalog/api_op_UpdateProvisionedProductProperties.go b/service/servicecatalog/api_op_UpdateProvisionedProductProperties.go index ce0a6a1c5fb..c176ab05078 100644 --- a/service/servicecatalog/api_op_UpdateProvisionedProductProperties.go +++ b/service/servicecatalog/api_op_UpdateProvisionedProductProperties.go @@ -64,7 +64,7 @@ type UpdateProvisionedProductPropertiesInput struct { // provisioned product. // // This member is required. - ProvisionedProductProperties map[string]*string + ProvisionedProductProperties map[string]string // The language code. // @@ -82,7 +82,7 @@ type UpdateProvisionedProductPropertiesOutput struct { ProvisionedProductId *string // A map that contains the properties updated. - ProvisionedProductProperties map[string]*string + ProvisionedProductProperties map[string]string // The identifier of the record. RecordId *string diff --git a/service/servicecatalog/api_op_UpdateProvisioningArtifact.go b/service/servicecatalog/api_op_UpdateProvisioningArtifact.go index f31e6b77e91..c57c1034a47 100644 --- a/service/servicecatalog/api_op_UpdateProvisioningArtifact.go +++ b/service/servicecatalog/api_op_UpdateProvisioningArtifact.go @@ -73,7 +73,7 @@ type UpdateProvisioningArtifactInput struct { type UpdateProvisioningArtifactOutput struct { // The URL of the CloudFormation template in Amazon S3. - Info map[string]*string + Info map[string]string // Information about the provisioning artifact. ProvisioningArtifactDetail *types.ProvisioningArtifactDetail diff --git a/service/servicecatalog/api_op_UpdateServiceAction.go b/service/servicecatalog/api_op_UpdateServiceAction.go index a71e2beaf56..fbbd0a5e510 100644 --- a/service/servicecatalog/api_op_UpdateServiceAction.go +++ b/service/servicecatalog/api_op_UpdateServiceAction.go @@ -44,7 +44,7 @@ type UpdateServiceActionInput struct { AcceptLanguage *string // A map that defines the self-service action. - Definition map[string]*string + Definition map[string]string // The self-service action description. Description *string diff --git a/service/servicecatalog/deserializers.go b/service/servicecatalog/deserializers.go index 41061dbdc4c..adeb66e9579 100644 --- a/service/servicecatalog/deserializers.go +++ b/service/servicecatalog/deserializers.go @@ -9953,7 +9953,7 @@ func awsAwsjson11_deserializeErrorTagOptionNotMigratedException(response *smithy return output } -func awsAwsjson11_deserializeDocumentAccountIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccountIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9966,21 +9966,21 @@ func awsAwsjson11_deserializeDocumentAccountIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9989,7 +9989,7 @@ func awsAwsjson11_deserializeDocumentAccountIds(v *[]*string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentAllowedValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAllowedValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10002,21 +10002,21 @@ func awsAwsjson11_deserializeDocumentAllowedValues(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AllowedValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10053,7 +10053,7 @@ func awsAwsjson11_deserializeDocumentBudgetDetail(v **types.BudgetDetail, value if !ok { return fmt.Errorf("expected BudgetName to be of type string, got %T instead", value) } - sv.BudgetName = &jtv + sv.BudgetName = ptr.String(jtv) } default: @@ -10065,7 +10065,7 @@ func awsAwsjson11_deserializeDocumentBudgetDetail(v **types.BudgetDetail, value return nil } -func awsAwsjson11_deserializeDocumentBudgets(v *[]*types.BudgetDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentBudgets(v *[]types.BudgetDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10078,18 +10078,20 @@ func awsAwsjson11_deserializeDocumentBudgets(v *[]*types.BudgetDetail, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BudgetDetail + var cv []types.BudgetDetail if *v == nil { - cv = []*types.BudgetDetail{} + cv = []types.BudgetDetail{} } else { cv = *v } for _, value := range shape { - var col *types.BudgetDetail - if err := awsAwsjson11_deserializeDocumentBudgetDetail(&col, value); err != nil { + var col types.BudgetDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBudgetDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10125,7 +10127,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchDashboard(v **types.CloudWatchDas if !ok { return fmt.Errorf("expected CloudWatchDashboardName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10137,7 +10139,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchDashboard(v **types.CloudWatchDas return nil } -func awsAwsjson11_deserializeDocumentCloudWatchDashboards(v *[]*types.CloudWatchDashboard, value interface{}) error { +func awsAwsjson11_deserializeDocumentCloudWatchDashboards(v *[]types.CloudWatchDashboard, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10150,18 +10152,20 @@ func awsAwsjson11_deserializeDocumentCloudWatchDashboards(v *[]*types.CloudWatch return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CloudWatchDashboard + var cv []types.CloudWatchDashboard if *v == nil { - cv = []*types.CloudWatchDashboard{} + cv = []types.CloudWatchDashboard{} } else { cv = *v } for _, value := range shape { - var col *types.CloudWatchDashboard - if err := awsAwsjson11_deserializeDocumentCloudWatchDashboard(&col, value); err != nil { + var col types.CloudWatchDashboard + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCloudWatchDashboard(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10197,7 +10201,7 @@ func awsAwsjson11_deserializeDocumentConstraintDetail(v **types.ConstraintDetail if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ConstraintId = &jtv + sv.ConstraintId = ptr.String(jtv) } case "Description": @@ -10206,7 +10210,7 @@ func awsAwsjson11_deserializeDocumentConstraintDetail(v **types.ConstraintDetail if !ok { return fmt.Errorf("expected ConstraintDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Owner": @@ -10215,7 +10219,7 @@ func awsAwsjson11_deserializeDocumentConstraintDetail(v **types.ConstraintDetail if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "PortfolioId": @@ -10224,7 +10228,7 @@ func awsAwsjson11_deserializeDocumentConstraintDetail(v **types.ConstraintDetail if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.PortfolioId = &jtv + sv.PortfolioId = ptr.String(jtv) } case "ProductId": @@ -10233,7 +10237,7 @@ func awsAwsjson11_deserializeDocumentConstraintDetail(v **types.ConstraintDetail if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProductId = &jtv + sv.ProductId = ptr.String(jtv) } case "Type": @@ -10242,7 +10246,7 @@ func awsAwsjson11_deserializeDocumentConstraintDetail(v **types.ConstraintDetail if !ok { return fmt.Errorf("expected ConstraintType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -10254,7 +10258,7 @@ func awsAwsjson11_deserializeDocumentConstraintDetail(v **types.ConstraintDetail return nil } -func awsAwsjson11_deserializeDocumentConstraintDetails(v *[]*types.ConstraintDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentConstraintDetails(v *[]types.ConstraintDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10267,18 +10271,20 @@ func awsAwsjson11_deserializeDocumentConstraintDetails(v *[]*types.ConstraintDet return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConstraintDetail + var cv []types.ConstraintDetail if *v == nil { - cv = []*types.ConstraintDetail{} + cv = []types.ConstraintDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ConstraintDetail - if err := awsAwsjson11_deserializeDocumentConstraintDetail(&col, value); err != nil { + var col types.ConstraintDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConstraintDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10286,7 +10292,7 @@ func awsAwsjson11_deserializeDocumentConstraintDetails(v *[]*types.ConstraintDet return nil } -func awsAwsjson11_deserializeDocumentConstraintSummaries(v *[]*types.ConstraintSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentConstraintSummaries(v *[]types.ConstraintSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10299,18 +10305,20 @@ func awsAwsjson11_deserializeDocumentConstraintSummaries(v *[]*types.ConstraintS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConstraintSummary + var cv []types.ConstraintSummary if *v == nil { - cv = []*types.ConstraintSummary{} + cv = []types.ConstraintSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ConstraintSummary - if err := awsAwsjson11_deserializeDocumentConstraintSummary(&col, value); err != nil { + var col types.ConstraintSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConstraintSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10346,7 +10354,7 @@ func awsAwsjson11_deserializeDocumentConstraintSummary(v **types.ConstraintSumma if !ok { return fmt.Errorf("expected ConstraintDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Type": @@ -10355,7 +10363,7 @@ func awsAwsjson11_deserializeDocumentConstraintSummary(v **types.ConstraintSumma if !ok { return fmt.Errorf("expected ConstraintType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -10395,7 +10403,7 @@ func awsAwsjson11_deserializeDocumentDuplicateResourceException(v **types.Duplic if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10440,7 +10448,7 @@ func awsAwsjson11_deserializeDocumentExecutionParameter(v **types.ExecutionParam if !ok { return fmt.Errorf("expected ExecutionParameterKey to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Type": @@ -10449,7 +10457,7 @@ func awsAwsjson11_deserializeDocumentExecutionParameter(v **types.ExecutionParam if !ok { return fmt.Errorf("expected ExecutionParameterType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -10461,7 +10469,7 @@ func awsAwsjson11_deserializeDocumentExecutionParameter(v **types.ExecutionParam return nil } -func awsAwsjson11_deserializeDocumentExecutionParameters(v *[]*types.ExecutionParameter, value interface{}) error { +func awsAwsjson11_deserializeDocumentExecutionParameters(v *[]types.ExecutionParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10474,18 +10482,20 @@ func awsAwsjson11_deserializeDocumentExecutionParameters(v *[]*types.ExecutionPa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExecutionParameter + var cv []types.ExecutionParameter if *v == nil { - cv = []*types.ExecutionParameter{} + cv = []types.ExecutionParameter{} } else { cv = *v } for _, value := range shape { - var col *types.ExecutionParameter - if err := awsAwsjson11_deserializeDocumentExecutionParameter(&col, value); err != nil { + var col types.ExecutionParameter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExecutionParameter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10493,7 +10503,7 @@ func awsAwsjson11_deserializeDocumentExecutionParameters(v *[]*types.ExecutionPa return nil } -func awsAwsjson11_deserializeDocumentExecutionParameterValueList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentExecutionParameterValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10506,21 +10516,21 @@ func awsAwsjson11_deserializeDocumentExecutionParameterValueList(v *[]*string, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ExecutionParameterValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10566,7 +10576,7 @@ func awsAwsjson11_deserializeDocumentFailedServiceActionAssociation(v **types.Fa if !ok { return fmt.Errorf("expected ServiceActionAssociationErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "ProductId": @@ -10575,7 +10585,7 @@ func awsAwsjson11_deserializeDocumentFailedServiceActionAssociation(v **types.Fa if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProductId = &jtv + sv.ProductId = ptr.String(jtv) } case "ProvisioningArtifactId": @@ -10584,7 +10594,7 @@ func awsAwsjson11_deserializeDocumentFailedServiceActionAssociation(v **types.Fa if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProvisioningArtifactId = &jtv + sv.ProvisioningArtifactId = ptr.String(jtv) } case "ServiceActionId": @@ -10593,7 +10603,7 @@ func awsAwsjson11_deserializeDocumentFailedServiceActionAssociation(v **types.Fa if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ServiceActionId = &jtv + sv.ServiceActionId = ptr.String(jtv) } default: @@ -10605,7 +10615,7 @@ func awsAwsjson11_deserializeDocumentFailedServiceActionAssociation(v **types.Fa return nil } -func awsAwsjson11_deserializeDocumentFailedServiceActionAssociations(v *[]*types.FailedServiceActionAssociation, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedServiceActionAssociations(v *[]types.FailedServiceActionAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10618,18 +10628,20 @@ func awsAwsjson11_deserializeDocumentFailedServiceActionAssociations(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedServiceActionAssociation + var cv []types.FailedServiceActionAssociation if *v == nil { - cv = []*types.FailedServiceActionAssociation{} + cv = []types.FailedServiceActionAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.FailedServiceActionAssociation - if err := awsAwsjson11_deserializeDocumentFailedServiceActionAssociation(&col, value); err != nil { + var col types.FailedServiceActionAssociation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailedServiceActionAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10665,7 +10677,7 @@ func awsAwsjson11_deserializeDocumentInvalidParametersException(v **types.Invali if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10705,7 +10717,7 @@ func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStat if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10745,7 +10757,7 @@ func awsAwsjson11_deserializeDocumentLaunchPath(v **types.LaunchPath, value inte if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -10754,7 +10766,7 @@ func awsAwsjson11_deserializeDocumentLaunchPath(v **types.LaunchPath, value inte if !ok { return fmt.Errorf("expected PortfolioName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10766,7 +10778,7 @@ func awsAwsjson11_deserializeDocumentLaunchPath(v **types.LaunchPath, value inte return nil } -func awsAwsjson11_deserializeDocumentLaunchPaths(v *[]*types.LaunchPath, value interface{}) error { +func awsAwsjson11_deserializeDocumentLaunchPaths(v *[]types.LaunchPath, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10779,18 +10791,20 @@ func awsAwsjson11_deserializeDocumentLaunchPaths(v *[]*types.LaunchPath, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LaunchPath + var cv []types.LaunchPath if *v == nil { - cv = []*types.LaunchPath{} + cv = []types.LaunchPath{} } else { cv = *v } for _, value := range shape { - var col *types.LaunchPath - if err := awsAwsjson11_deserializeDocumentLaunchPath(&col, value); err != nil { + var col types.LaunchPath + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLaunchPath(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10798,7 +10812,7 @@ func awsAwsjson11_deserializeDocumentLaunchPaths(v *[]*types.LaunchPath, value i return nil } -func awsAwsjson11_deserializeDocumentLaunchPathSummaries(v *[]*types.LaunchPathSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentLaunchPathSummaries(v *[]types.LaunchPathSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10811,18 +10825,20 @@ func awsAwsjson11_deserializeDocumentLaunchPathSummaries(v *[]*types.LaunchPathS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LaunchPathSummary + var cv []types.LaunchPathSummary if *v == nil { - cv = []*types.LaunchPathSummary{} + cv = []types.LaunchPathSummary{} } else { cv = *v } for _, value := range shape { - var col *types.LaunchPathSummary - if err := awsAwsjson11_deserializeDocumentLaunchPathSummary(&col, value); err != nil { + var col types.LaunchPathSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLaunchPathSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10863,7 +10879,7 @@ func awsAwsjson11_deserializeDocumentLaunchPathSummary(v **types.LaunchPathSumma if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -10872,7 +10888,7 @@ func awsAwsjson11_deserializeDocumentLaunchPathSummary(v **types.LaunchPathSumma if !ok { return fmt.Errorf("expected PortfolioName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Tags": @@ -10917,7 +10933,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10929,7 +10945,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson11_deserializeDocumentNamespaces(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentNamespaces(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10942,21 +10958,21 @@ func awsAwsjson11_deserializeDocumentNamespaces(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10965,7 +10981,7 @@ func awsAwsjson11_deserializeDocumentNamespaces(v *[]*string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentNotificationArns(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentNotificationArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10978,21 +10994,21 @@ func awsAwsjson11_deserializeDocumentNotificationArns(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NotificationArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11029,7 +11045,7 @@ func awsAwsjson11_deserializeDocumentOperationNotSupportedException(v **types.Op if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11078,7 +11094,7 @@ func awsAwsjson11_deserializeDocumentOrganizationNode(v **types.OrganizationNode if !ok { return fmt.Errorf("expected OrganizationNodeValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -11090,7 +11106,7 @@ func awsAwsjson11_deserializeDocumentOrganizationNode(v **types.OrganizationNode return nil } -func awsAwsjson11_deserializeDocumentOrganizationNodes(v *[]*types.OrganizationNode, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrganizationNodes(v *[]types.OrganizationNode, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11103,18 +11119,20 @@ func awsAwsjson11_deserializeDocumentOrganizationNodes(v *[]*types.OrganizationN return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrganizationNode + var cv []types.OrganizationNode if *v == nil { - cv = []*types.OrganizationNode{} + cv = []types.OrganizationNode{} } else { cv = *v } for _, value := range shape { - var col *types.OrganizationNode - if err := awsAwsjson11_deserializeDocumentOrganizationNode(&col, value); err != nil { + var col types.OrganizationNode + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrganizationNode(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11186,7 +11204,7 @@ func awsAwsjson11_deserializeDocumentPortfolioDetail(v **types.PortfolioDetail, if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "CreatedTime": @@ -11208,7 +11226,7 @@ func awsAwsjson11_deserializeDocumentPortfolioDetail(v **types.PortfolioDetail, if !ok { return fmt.Errorf("expected PortfolioDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DisplayName": @@ -11217,7 +11235,7 @@ func awsAwsjson11_deserializeDocumentPortfolioDetail(v **types.PortfolioDetail, if !ok { return fmt.Errorf("expected PortfolioDisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "Id": @@ -11226,7 +11244,7 @@ func awsAwsjson11_deserializeDocumentPortfolioDetail(v **types.PortfolioDetail, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ProviderName": @@ -11235,7 +11253,7 @@ func awsAwsjson11_deserializeDocumentPortfolioDetail(v **types.PortfolioDetail, if !ok { return fmt.Errorf("expected ProviderName to be of type string, got %T instead", value) } - sv.ProviderName = &jtv + sv.ProviderName = ptr.String(jtv) } default: @@ -11247,7 +11265,7 @@ func awsAwsjson11_deserializeDocumentPortfolioDetail(v **types.PortfolioDetail, return nil } -func awsAwsjson11_deserializeDocumentPortfolioDetails(v *[]*types.PortfolioDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentPortfolioDetails(v *[]types.PortfolioDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11260,18 +11278,20 @@ func awsAwsjson11_deserializeDocumentPortfolioDetails(v *[]*types.PortfolioDetai return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PortfolioDetail + var cv []types.PortfolioDetail if *v == nil { - cv = []*types.PortfolioDetail{} + cv = []types.PortfolioDetail{} } else { cv = *v } for _, value := range shape { - var col *types.PortfolioDetail - if err := awsAwsjson11_deserializeDocumentPortfolioDetail(&col, value); err != nil { + var col types.PortfolioDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPortfolioDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11307,7 +11327,7 @@ func awsAwsjson11_deserializeDocumentPrincipal(v **types.Principal, value interf if !ok { return fmt.Errorf("expected PrincipalARN to be of type string, got %T instead", value) } - sv.PrincipalARN = &jtv + sv.PrincipalARN = ptr.String(jtv) } case "PrincipalType": @@ -11328,7 +11348,7 @@ func awsAwsjson11_deserializeDocumentPrincipal(v **types.Principal, value interf return nil } -func awsAwsjson11_deserializeDocumentPrincipals(v *[]*types.Principal, value interface{}) error { +func awsAwsjson11_deserializeDocumentPrincipals(v *[]types.Principal, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11341,18 +11361,20 @@ func awsAwsjson11_deserializeDocumentPrincipals(v *[]*types.Principal, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Principal + var cv []types.Principal if *v == nil { - cv = []*types.Principal{} + cv = []types.Principal{} } else { cv = *v } for _, value := range shape { - var col *types.Principal - if err := awsAwsjson11_deserializeDocumentPrincipal(&col, value); err != nil { + var col types.Principal + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPrincipal(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11360,7 +11382,7 @@ func awsAwsjson11_deserializeDocumentPrincipals(v *[]*types.Principal, value int return nil } -func awsAwsjson11_deserializeDocumentProductViewAggregations(v *map[string][]*types.ProductViewAggregationValue, value interface{}) error { +func awsAwsjson11_deserializeDocumentProductViewAggregations(v *map[string][]types.ProductViewAggregationValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11373,18 +11395,20 @@ func awsAwsjson11_deserializeDocumentProductViewAggregations(v *map[string][]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*types.ProductViewAggregationValue + var mv map[string][]types.ProductViewAggregationValue if *v == nil { - mv = map[string][]*types.ProductViewAggregationValue{} + mv = map[string][]types.ProductViewAggregationValue{} } else { mv = *v } for key, value := range shape { - var parsedVal []*types.ProductViewAggregationValue - if err := awsAwsjson11_deserializeDocumentProductViewAggregationValues(&parsedVal, value); err != nil { + var parsedVal []types.ProductViewAggregationValue + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentProductViewAggregationValues(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -11424,7 +11448,7 @@ func awsAwsjson11_deserializeDocumentProductViewAggregationValue(v **types.Produ if err != nil { return err } - sv.ApproximateCount = ptr.Int32(int32(i64)) + sv.ApproximateCount = int32(i64) } case "Value": @@ -11433,7 +11457,7 @@ func awsAwsjson11_deserializeDocumentProductViewAggregationValue(v **types.Produ if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -11445,7 +11469,7 @@ func awsAwsjson11_deserializeDocumentProductViewAggregationValue(v **types.Produ return nil } -func awsAwsjson11_deserializeDocumentProductViewAggregationValues(v *[]*types.ProductViewAggregationValue, value interface{}) error { +func awsAwsjson11_deserializeDocumentProductViewAggregationValues(v *[]types.ProductViewAggregationValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11458,18 +11482,20 @@ func awsAwsjson11_deserializeDocumentProductViewAggregationValues(v *[]*types.Pr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProductViewAggregationValue + var cv []types.ProductViewAggregationValue if *v == nil { - cv = []*types.ProductViewAggregationValue{} + cv = []types.ProductViewAggregationValue{} } else { cv = *v } for _, value := range shape { - var col *types.ProductViewAggregationValue - if err := awsAwsjson11_deserializeDocumentProductViewAggregationValue(&col, value); err != nil { + var col types.ProductViewAggregationValue + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProductViewAggregationValue(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11518,7 +11544,7 @@ func awsAwsjson11_deserializeDocumentProductViewDetail(v **types.ProductViewDeta if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ProductARN = &jtv + sv.ProductARN = ptr.String(jtv) } case "ProductViewSummary": @@ -11544,7 +11570,7 @@ func awsAwsjson11_deserializeDocumentProductViewDetail(v **types.ProductViewDeta return nil } -func awsAwsjson11_deserializeDocumentProductViewDetails(v *[]*types.ProductViewDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentProductViewDetails(v *[]types.ProductViewDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11557,18 +11583,20 @@ func awsAwsjson11_deserializeDocumentProductViewDetails(v *[]*types.ProductViewD return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProductViewDetail + var cv []types.ProductViewDetail if *v == nil { - cv = []*types.ProductViewDetail{} + cv = []types.ProductViewDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ProductViewDetail - if err := awsAwsjson11_deserializeDocumentProductViewDetail(&col, value); err != nil { + var col types.ProductViewDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProductViewDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11576,7 +11604,7 @@ func awsAwsjson11_deserializeDocumentProductViewDetails(v *[]*types.ProductViewD return nil } -func awsAwsjson11_deserializeDocumentProductViewSummaries(v *[]*types.ProductViewSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentProductViewSummaries(v *[]types.ProductViewSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11589,18 +11617,20 @@ func awsAwsjson11_deserializeDocumentProductViewSummaries(v *[]*types.ProductVie return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProductViewSummary + var cv []types.ProductViewSummary if *v == nil { - cv = []*types.ProductViewSummary{} + cv = []types.ProductViewSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProductViewSummary - if err := awsAwsjson11_deserializeDocumentProductViewSummary(&col, value); err != nil { + var col types.ProductViewSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProductViewSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11636,7 +11666,7 @@ func awsAwsjson11_deserializeDocumentProductViewSummary(v **types.ProductViewSum if !ok { return fmt.Errorf("expected ProductViewDistributor to be of type string, got %T instead", value) } - sv.Distributor = &jtv + sv.Distributor = ptr.String(jtv) } case "HasDefaultPath": @@ -11645,7 +11675,7 @@ func awsAwsjson11_deserializeDocumentProductViewSummary(v **types.ProductViewSum if !ok { return fmt.Errorf("expected HasDefaultPath to be of type *bool, got %T instead", value) } - sv.HasDefaultPath = &jtv + sv.HasDefaultPath = jtv } case "Id": @@ -11654,7 +11684,7 @@ func awsAwsjson11_deserializeDocumentProductViewSummary(v **types.ProductViewSum if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -11663,7 +11693,7 @@ func awsAwsjson11_deserializeDocumentProductViewSummary(v **types.ProductViewSum if !ok { return fmt.Errorf("expected ProductViewName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Owner": @@ -11672,7 +11702,7 @@ func awsAwsjson11_deserializeDocumentProductViewSummary(v **types.ProductViewSum if !ok { return fmt.Errorf("expected ProductViewOwner to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "ProductId": @@ -11681,7 +11711,7 @@ func awsAwsjson11_deserializeDocumentProductViewSummary(v **types.ProductViewSum if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProductId = &jtv + sv.ProductId = ptr.String(jtv) } case "ShortDescription": @@ -11690,7 +11720,7 @@ func awsAwsjson11_deserializeDocumentProductViewSummary(v **types.ProductViewSum if !ok { return fmt.Errorf("expected ProductViewShortDescription to be of type string, got %T instead", value) } - sv.ShortDescription = &jtv + sv.ShortDescription = ptr.String(jtv) } case "SupportDescription": @@ -11699,7 +11729,7 @@ func awsAwsjson11_deserializeDocumentProductViewSummary(v **types.ProductViewSum if !ok { return fmt.Errorf("expected SupportDescription to be of type string, got %T instead", value) } - sv.SupportDescription = &jtv + sv.SupportDescription = ptr.String(jtv) } case "SupportEmail": @@ -11708,7 +11738,7 @@ func awsAwsjson11_deserializeDocumentProductViewSummary(v **types.ProductViewSum if !ok { return fmt.Errorf("expected SupportEmail to be of type string, got %T instead", value) } - sv.SupportEmail = &jtv + sv.SupportEmail = ptr.String(jtv) } case "SupportUrl": @@ -11717,7 +11747,7 @@ func awsAwsjson11_deserializeDocumentProductViewSummary(v **types.ProductViewSum if !ok { return fmt.Errorf("expected SupportUrl to be of type string, got %T instead", value) } - sv.SupportUrl = &jtv + sv.SupportUrl = ptr.String(jtv) } case "Type": @@ -11766,7 +11796,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected ProvisionedProductNameOrArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -11788,7 +11818,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IdempotencyToken": @@ -11797,7 +11827,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected IdempotencyToken to be of type string, got %T instead", value) } - sv.IdempotencyToken = &jtv + sv.IdempotencyToken = ptr.String(jtv) } case "LastProvisioningRecordId": @@ -11806,7 +11836,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.LastProvisioningRecordId = &jtv + sv.LastProvisioningRecordId = ptr.String(jtv) } case "LastRecordId": @@ -11815,7 +11845,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.LastRecordId = &jtv + sv.LastRecordId = ptr.String(jtv) } case "LastSuccessfulProvisioningRecordId": @@ -11824,7 +11854,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.LastSuccessfulProvisioningRecordId = &jtv + sv.LastSuccessfulProvisioningRecordId = ptr.String(jtv) } case "Name": @@ -11833,7 +11863,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected ProvisionedProductNameOrArn to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PhysicalId": @@ -11842,7 +11872,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected PhysicalId to be of type string, got %T instead", value) } - sv.PhysicalId = &jtv + sv.PhysicalId = ptr.String(jtv) } case "ProductId": @@ -11851,7 +11881,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProductId = &jtv + sv.ProductId = ptr.String(jtv) } case "ProductName": @@ -11860,7 +11890,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected ProductViewName to be of type string, got %T instead", value) } - sv.ProductName = &jtv + sv.ProductName = ptr.String(jtv) } case "ProvisioningArtifactId": @@ -11869,7 +11899,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProvisioningArtifactId = &jtv + sv.ProvisioningArtifactId = ptr.String(jtv) } case "ProvisioningArtifactName": @@ -11878,7 +11908,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected ProvisioningArtifactName to be of type string, got %T instead", value) } - sv.ProvisioningArtifactName = &jtv + sv.ProvisioningArtifactName = ptr.String(jtv) } case "Status": @@ -11896,7 +11926,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected ProvisionedProductStatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "Tags": @@ -11910,7 +11940,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected ProvisionedProductType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "UserArn": @@ -11919,7 +11949,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected UserArn to be of type string, got %T instead", value) } - sv.UserArn = &jtv + sv.UserArn = ptr.String(jtv) } case "UserArnSession": @@ -11928,7 +11958,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi if !ok { return fmt.Errorf("expected UserArnSession to be of type string, got %T instead", value) } - sv.UserArnSession = &jtv + sv.UserArnSession = ptr.String(jtv) } default: @@ -11940,7 +11970,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttribute(v **types.Provi return nil } -func awsAwsjson11_deserializeDocumentProvisionedProductAttributes(v *[]*types.ProvisionedProductAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentProvisionedProductAttributes(v *[]types.ProvisionedProductAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11953,18 +11983,20 @@ func awsAwsjson11_deserializeDocumentProvisionedProductAttributes(v *[]*types.Pr return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProvisionedProductAttribute + var cv []types.ProvisionedProductAttribute if *v == nil { - cv = []*types.ProvisionedProductAttribute{} + cv = []types.ProvisionedProductAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.ProvisionedProductAttribute - if err := awsAwsjson11_deserializeDocumentProvisionedProductAttribute(&col, value); err != nil { + var col types.ProvisionedProductAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProvisionedProductAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12000,7 +12032,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetail(v **types.Provisio if !ok { return fmt.Errorf("expected ProvisionedProductNameOrArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedTime": @@ -12022,7 +12054,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetail(v **types.Provisio if !ok { return fmt.Errorf("expected ProvisionedProductId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IdempotencyToken": @@ -12031,7 +12063,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetail(v **types.Provisio if !ok { return fmt.Errorf("expected IdempotencyToken to be of type string, got %T instead", value) } - sv.IdempotencyToken = &jtv + sv.IdempotencyToken = ptr.String(jtv) } case "LastProvisioningRecordId": @@ -12040,7 +12072,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetail(v **types.Provisio if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.LastProvisioningRecordId = &jtv + sv.LastProvisioningRecordId = ptr.String(jtv) } case "LastRecordId": @@ -12049,7 +12081,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetail(v **types.Provisio if !ok { return fmt.Errorf("expected LastRequestId to be of type string, got %T instead", value) } - sv.LastRecordId = &jtv + sv.LastRecordId = ptr.String(jtv) } case "LastSuccessfulProvisioningRecordId": @@ -12058,7 +12090,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetail(v **types.Provisio if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.LastSuccessfulProvisioningRecordId = &jtv + sv.LastSuccessfulProvisioningRecordId = ptr.String(jtv) } case "LaunchRoleArn": @@ -12067,7 +12099,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetail(v **types.Provisio if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.LaunchRoleArn = &jtv + sv.LaunchRoleArn = ptr.String(jtv) } case "Name": @@ -12076,7 +12108,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetail(v **types.Provisio if !ok { return fmt.Errorf("expected ProvisionedProductNameOrArn to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ProductId": @@ -12085,7 +12117,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetail(v **types.Provisio if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProductId = &jtv + sv.ProductId = ptr.String(jtv) } case "ProvisioningArtifactId": @@ -12094,7 +12126,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetail(v **types.Provisio if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProvisioningArtifactId = &jtv + sv.ProvisioningArtifactId = ptr.String(jtv) } case "Status": @@ -12112,7 +12144,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetail(v **types.Provisio if !ok { return fmt.Errorf("expected ProvisionedProductStatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "Type": @@ -12121,7 +12153,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetail(v **types.Provisio if !ok { return fmt.Errorf("expected ProvisionedProductType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -12133,7 +12165,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetail(v **types.Provisio return nil } -func awsAwsjson11_deserializeDocumentProvisionedProductDetails(v *[]*types.ProvisionedProductDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentProvisionedProductDetails(v *[]types.ProvisionedProductDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12146,18 +12178,20 @@ func awsAwsjson11_deserializeDocumentProvisionedProductDetails(v *[]*types.Provi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProvisionedProductDetail + var cv []types.ProvisionedProductDetail if *v == nil { - cv = []*types.ProvisionedProductDetail{} + cv = []types.ProvisionedProductDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ProvisionedProductDetail - if err := awsAwsjson11_deserializeDocumentProvisionedProductDetail(&col, value); err != nil { + var col types.ProvisionedProductDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProvisionedProductDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12211,7 +12245,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanDetails(v **types.Pro if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.PathId = &jtv + sv.PathId = ptr.String(jtv) } case "PlanId": @@ -12220,7 +12254,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanDetails(v **types.Pro if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.PlanId = &jtv + sv.PlanId = ptr.String(jtv) } case "PlanName": @@ -12229,7 +12263,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanDetails(v **types.Pro if !ok { return fmt.Errorf("expected ProvisionedProductPlanName to be of type string, got %T instead", value) } - sv.PlanName = &jtv + sv.PlanName = ptr.String(jtv) } case "PlanType": @@ -12247,7 +12281,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanDetails(v **types.Pro if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProductId = &jtv + sv.ProductId = ptr.String(jtv) } case "ProvisioningArtifactId": @@ -12256,7 +12290,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanDetails(v **types.Pro if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProvisioningArtifactId = &jtv + sv.ProvisioningArtifactId = ptr.String(jtv) } case "ProvisioningParameters": @@ -12270,7 +12304,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanDetails(v **types.Pro if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProvisionProductId = &jtv + sv.ProvisionProductId = ptr.String(jtv) } case "ProvisionProductName": @@ -12279,7 +12313,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanDetails(v **types.Pro if !ok { return fmt.Errorf("expected ProvisionedProductName to be of type string, got %T instead", value) } - sv.ProvisionProductName = &jtv + sv.ProvisionProductName = ptr.String(jtv) } case "Status": @@ -12297,7 +12331,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanDetails(v **types.Pro if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "Tags": @@ -12327,7 +12361,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanDetails(v **types.Pro return nil } -func awsAwsjson11_deserializeDocumentProvisionedProductPlans(v *[]*types.ProvisionedProductPlanSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentProvisionedProductPlans(v *[]types.ProvisionedProductPlanSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12340,18 +12374,20 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlans(v *[]*types.Provisi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProvisionedProductPlanSummary + var cv []types.ProvisionedProductPlanSummary if *v == nil { - cv = []*types.ProvisionedProductPlanSummary{} + cv = []types.ProvisionedProductPlanSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProvisionedProductPlanSummary - if err := awsAwsjson11_deserializeDocumentProvisionedProductPlanSummary(&col, value); err != nil { + var col types.ProvisionedProductPlanSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProvisionedProductPlanSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12387,7 +12423,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanSummary(v **types.Pro if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.PlanId = &jtv + sv.PlanId = ptr.String(jtv) } case "PlanName": @@ -12396,7 +12432,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanSummary(v **types.Pro if !ok { return fmt.Errorf("expected ProvisionedProductPlanName to be of type string, got %T instead", value) } - sv.PlanName = &jtv + sv.PlanName = ptr.String(jtv) } case "PlanType": @@ -12414,7 +12450,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanSummary(v **types.Pro if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProvisioningArtifactId = &jtv + sv.ProvisioningArtifactId = ptr.String(jtv) } case "ProvisionProductId": @@ -12423,7 +12459,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanSummary(v **types.Pro if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProvisionProductId = &jtv + sv.ProvisionProductId = ptr.String(jtv) } case "ProvisionProductName": @@ -12432,7 +12468,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanSummary(v **types.Pro if !ok { return fmt.Errorf("expected ProvisionedProductName to be of type string, got %T instead", value) } - sv.ProvisionProductName = &jtv + sv.ProvisionProductName = ptr.String(jtv) } default: @@ -12444,7 +12480,7 @@ func awsAwsjson11_deserializeDocumentProvisionedProductPlanSummary(v **types.Pro return nil } -func awsAwsjson11_deserializeDocumentProvisionedProductProperties(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentProvisionedProductProperties(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12457,21 +12493,21 @@ func awsAwsjson11_deserializeDocumentProvisionedProductProperties(v *map[string] return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PropertyValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -12521,7 +12557,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifact(v **types.Provisioning if !ok { return fmt.Errorf("expected ProvisioningArtifactDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Guidance": @@ -12539,7 +12575,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifact(v **types.Provisioning if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -12548,7 +12584,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifact(v **types.Provisioning if !ok { return fmt.Errorf("expected ProvisioningArtifactName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -12588,7 +12624,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactDetail(v **types.Provis if !ok { return fmt.Errorf("expected ProvisioningArtifactActive to be of type *bool, got %T instead", value) } - sv.Active = &jtv + sv.Active = ptr.Bool(jtv) } case "CreatedTime": @@ -12610,7 +12646,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactDetail(v **types.Provis if !ok { return fmt.Errorf("expected ProvisioningArtifactName to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Guidance": @@ -12628,7 +12664,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactDetail(v **types.Provis if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -12637,7 +12673,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactDetail(v **types.Provis if !ok { return fmt.Errorf("expected ProvisioningArtifactName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Type": @@ -12658,7 +12694,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactDetail(v **types.Provis return nil } -func awsAwsjson11_deserializeDocumentProvisioningArtifactDetails(v *[]*types.ProvisioningArtifactDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentProvisioningArtifactDetails(v *[]types.ProvisioningArtifactDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12671,18 +12707,20 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactDetails(v *[]*types.Pro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProvisioningArtifactDetail + var cv []types.ProvisioningArtifactDetail if *v == nil { - cv = []*types.ProvisioningArtifactDetail{} + cv = []types.ProvisioningArtifactDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ProvisioningArtifactDetail - if err := awsAwsjson11_deserializeDocumentProvisioningArtifactDetail(&col, value); err != nil { + var col types.ProvisioningArtifactDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProvisioningArtifactDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12690,7 +12728,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactDetails(v *[]*types.Pro return nil } -func awsAwsjson11_deserializeDocumentProvisioningArtifactInfo(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentProvisioningArtifactInfo(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12703,21 +12741,21 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactInfo(v *map[string]*str return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ProvisioningArtifactInfoValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -12754,7 +12792,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactOutput(v **types.Provis if !ok { return fmt.Errorf("expected OutputDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Key": @@ -12763,7 +12801,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactOutput(v **types.Provis if !ok { return fmt.Errorf("expected ProvisioningArtifactOutputKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } default: @@ -12775,7 +12813,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactOutput(v **types.Provis return nil } -func awsAwsjson11_deserializeDocumentProvisioningArtifactOutputs(v *[]*types.ProvisioningArtifactOutput, value interface{}) error { +func awsAwsjson11_deserializeDocumentProvisioningArtifactOutputs(v *[]types.ProvisioningArtifactOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12788,18 +12826,20 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactOutputs(v *[]*types.Pro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProvisioningArtifactOutput + var cv []types.ProvisioningArtifactOutput if *v == nil { - cv = []*types.ProvisioningArtifactOutput{} + cv = []types.ProvisioningArtifactOutput{} } else { cv = *v } for _, value := range shape { - var col *types.ProvisioningArtifactOutput - if err := awsAwsjson11_deserializeDocumentProvisioningArtifactOutput(&col, value); err != nil { + var col types.ProvisioningArtifactOutput + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProvisioningArtifactOutput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12835,7 +12875,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactParameter(v **types.Pro if !ok { return fmt.Errorf("expected DefaultValue to be of type string, got %T instead", value) } - sv.DefaultValue = &jtv + sv.DefaultValue = ptr.String(jtv) } case "Description": @@ -12844,7 +12884,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactParameter(v **types.Pro if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "IsNoEcho": @@ -12853,7 +12893,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactParameter(v **types.Pro if !ok { return fmt.Errorf("expected NoEcho to be of type *bool, got %T instead", value) } - sv.IsNoEcho = &jtv + sv.IsNoEcho = jtv } case "ParameterConstraints": @@ -12867,7 +12907,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactParameter(v **types.Pro if !ok { return fmt.Errorf("expected ParameterKey to be of type string, got %T instead", value) } - sv.ParameterKey = &jtv + sv.ParameterKey = ptr.String(jtv) } case "ParameterType": @@ -12876,7 +12916,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactParameter(v **types.Pro if !ok { return fmt.Errorf("expected ParameterType to be of type string, got %T instead", value) } - sv.ParameterType = &jtv + sv.ParameterType = ptr.String(jtv) } default: @@ -12888,7 +12928,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactParameter(v **types.Pro return nil } -func awsAwsjson11_deserializeDocumentProvisioningArtifactParameters(v *[]*types.ProvisioningArtifactParameter, value interface{}) error { +func awsAwsjson11_deserializeDocumentProvisioningArtifactParameters(v *[]types.ProvisioningArtifactParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12901,18 +12941,20 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactParameters(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProvisioningArtifactParameter + var cv []types.ProvisioningArtifactParameter if *v == nil { - cv = []*types.ProvisioningArtifactParameter{} + cv = []types.ProvisioningArtifactParameter{} } else { cv = *v } for _, value := range shape { - var col *types.ProvisioningArtifactParameter - if err := awsAwsjson11_deserializeDocumentProvisioningArtifactParameter(&col, value); err != nil { + var col types.ProvisioningArtifactParameter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProvisioningArtifactParameter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12961,7 +13003,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactPreferences(v **types.P return nil } -func awsAwsjson11_deserializeDocumentProvisioningArtifacts(v *[]*types.ProvisioningArtifact, value interface{}) error { +func awsAwsjson11_deserializeDocumentProvisioningArtifacts(v *[]types.ProvisioningArtifact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12974,18 +13016,20 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifacts(v *[]*types.Provision return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProvisioningArtifact + var cv []types.ProvisioningArtifact if *v == nil { - cv = []*types.ProvisioningArtifact{} + cv = []types.ProvisioningArtifact{} } else { cv = *v } for _, value := range shape { - var col *types.ProvisioningArtifact - if err := awsAwsjson11_deserializeDocumentProvisioningArtifact(&col, value); err != nil { + var col types.ProvisioningArtifact + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProvisioningArtifact(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12993,7 +13037,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifacts(v *[]*types.Provision return nil } -func awsAwsjson11_deserializeDocumentProvisioningArtifactSummaries(v *[]*types.ProvisioningArtifactSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentProvisioningArtifactSummaries(v *[]types.ProvisioningArtifactSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13006,18 +13050,20 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactSummaries(v *[]*types.P return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProvisioningArtifactSummary + var cv []types.ProvisioningArtifactSummary if *v == nil { - cv = []*types.ProvisioningArtifactSummary{} + cv = []types.ProvisioningArtifactSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ProvisioningArtifactSummary - if err := awsAwsjson11_deserializeDocumentProvisioningArtifactSummary(&col, value); err != nil { + var col types.ProvisioningArtifactSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProvisioningArtifactSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13066,7 +13112,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactSummary(v **types.Provi if !ok { return fmt.Errorf("expected ProvisioningArtifactDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -13075,7 +13121,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactSummary(v **types.Provi if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -13084,7 +13130,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactSummary(v **types.Provi if !ok { return fmt.Errorf("expected ProvisioningArtifactName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ProvisioningArtifactMetadata": @@ -13142,7 +13188,7 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactView(v **types.Provisio return nil } -func awsAwsjson11_deserializeDocumentProvisioningArtifactViews(v *[]*types.ProvisioningArtifactView, value interface{}) error { +func awsAwsjson11_deserializeDocumentProvisioningArtifactViews(v *[]types.ProvisioningArtifactView, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13155,18 +13201,20 @@ func awsAwsjson11_deserializeDocumentProvisioningArtifactViews(v *[]*types.Provi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ProvisioningArtifactView + var cv []types.ProvisioningArtifactView if *v == nil { - cv = []*types.ProvisioningArtifactView{} + cv = []types.ProvisioningArtifactView{} } else { cv = *v } for _, value := range shape { - var col *types.ProvisioningArtifactView - if err := awsAwsjson11_deserializeDocumentProvisioningArtifactView(&col, value); err != nil { + var col types.ProvisioningArtifactView + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProvisioningArtifactView(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13215,7 +13263,7 @@ func awsAwsjson11_deserializeDocumentRecordDetail(v **types.RecordDetail, value if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.LaunchRoleArn = &jtv + sv.LaunchRoleArn = ptr.String(jtv) } case "PathId": @@ -13224,7 +13272,7 @@ func awsAwsjson11_deserializeDocumentRecordDetail(v **types.RecordDetail, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.PathId = &jtv + sv.PathId = ptr.String(jtv) } case "ProductId": @@ -13233,7 +13281,7 @@ func awsAwsjson11_deserializeDocumentRecordDetail(v **types.RecordDetail, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProductId = &jtv + sv.ProductId = ptr.String(jtv) } case "ProvisionedProductId": @@ -13242,7 +13290,7 @@ func awsAwsjson11_deserializeDocumentRecordDetail(v **types.RecordDetail, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProvisionedProductId = &jtv + sv.ProvisionedProductId = ptr.String(jtv) } case "ProvisionedProductName": @@ -13251,7 +13299,7 @@ func awsAwsjson11_deserializeDocumentRecordDetail(v **types.RecordDetail, value if !ok { return fmt.Errorf("expected ProvisionedProductName to be of type string, got %T instead", value) } - sv.ProvisionedProductName = &jtv + sv.ProvisionedProductName = ptr.String(jtv) } case "ProvisionedProductType": @@ -13260,7 +13308,7 @@ func awsAwsjson11_deserializeDocumentRecordDetail(v **types.RecordDetail, value if !ok { return fmt.Errorf("expected ProvisionedProductType to be of type string, got %T instead", value) } - sv.ProvisionedProductType = &jtv + sv.ProvisionedProductType = ptr.String(jtv) } case "ProvisioningArtifactId": @@ -13269,7 +13317,7 @@ func awsAwsjson11_deserializeDocumentRecordDetail(v **types.RecordDetail, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProvisioningArtifactId = &jtv + sv.ProvisioningArtifactId = ptr.String(jtv) } case "RecordErrors": @@ -13283,7 +13331,7 @@ func awsAwsjson11_deserializeDocumentRecordDetail(v **types.RecordDetail, value if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RecordId = &jtv + sv.RecordId = ptr.String(jtv) } case "RecordTags": @@ -13297,7 +13345,7 @@ func awsAwsjson11_deserializeDocumentRecordDetail(v **types.RecordDetail, value if !ok { return fmt.Errorf("expected RecordType to be of type string, got %T instead", value) } - sv.RecordType = &jtv + sv.RecordType = ptr.String(jtv) } case "Status": @@ -13331,7 +13379,7 @@ func awsAwsjson11_deserializeDocumentRecordDetail(v **types.RecordDetail, value return nil } -func awsAwsjson11_deserializeDocumentRecordDetails(v *[]*types.RecordDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentRecordDetails(v *[]types.RecordDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13344,18 +13392,20 @@ func awsAwsjson11_deserializeDocumentRecordDetails(v *[]*types.RecordDetail, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecordDetail + var cv []types.RecordDetail if *v == nil { - cv = []*types.RecordDetail{} + cv = []types.RecordDetail{} } else { cv = *v } for _, value := range shape { - var col *types.RecordDetail - if err := awsAwsjson11_deserializeDocumentRecordDetail(&col, value); err != nil { + var col types.RecordDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRecordDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13391,7 +13441,7 @@ func awsAwsjson11_deserializeDocumentRecordError(v **types.RecordError, value in if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Description": @@ -13400,7 +13450,7 @@ func awsAwsjson11_deserializeDocumentRecordError(v **types.RecordError, value in if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } default: @@ -13412,7 +13462,7 @@ func awsAwsjson11_deserializeDocumentRecordError(v **types.RecordError, value in return nil } -func awsAwsjson11_deserializeDocumentRecordErrors(v *[]*types.RecordError, value interface{}) error { +func awsAwsjson11_deserializeDocumentRecordErrors(v *[]types.RecordError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13425,18 +13475,20 @@ func awsAwsjson11_deserializeDocumentRecordErrors(v *[]*types.RecordError, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecordError + var cv []types.RecordError if *v == nil { - cv = []*types.RecordError{} + cv = []types.RecordError{} } else { cv = *v } for _, value := range shape { - var col *types.RecordError - if err := awsAwsjson11_deserializeDocumentRecordError(&col, value); err != nil { + var col types.RecordError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRecordError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13472,7 +13524,7 @@ func awsAwsjson11_deserializeDocumentRecordOutput(v **types.RecordOutput, value if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "OutputKey": @@ -13481,7 +13533,7 @@ func awsAwsjson11_deserializeDocumentRecordOutput(v **types.RecordOutput, value if !ok { return fmt.Errorf("expected OutputKey to be of type string, got %T instead", value) } - sv.OutputKey = &jtv + sv.OutputKey = ptr.String(jtv) } case "OutputValue": @@ -13490,7 +13542,7 @@ func awsAwsjson11_deserializeDocumentRecordOutput(v **types.RecordOutput, value if !ok { return fmt.Errorf("expected OutputValue to be of type string, got %T instead", value) } - sv.OutputValue = &jtv + sv.OutputValue = ptr.String(jtv) } default: @@ -13502,7 +13554,7 @@ func awsAwsjson11_deserializeDocumentRecordOutput(v **types.RecordOutput, value return nil } -func awsAwsjson11_deserializeDocumentRecordOutputs(v *[]*types.RecordOutput, value interface{}) error { +func awsAwsjson11_deserializeDocumentRecordOutputs(v *[]types.RecordOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13515,18 +13567,20 @@ func awsAwsjson11_deserializeDocumentRecordOutputs(v *[]*types.RecordOutput, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecordOutput + var cv []types.RecordOutput if *v == nil { - cv = []*types.RecordOutput{} + cv = []types.RecordOutput{} } else { cv = *v } for _, value := range shape { - var col *types.RecordOutput - if err := awsAwsjson11_deserializeDocumentRecordOutput(&col, value); err != nil { + var col types.RecordOutput + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRecordOutput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13562,7 +13616,7 @@ func awsAwsjson11_deserializeDocumentRecordTag(v **types.RecordTag, value interf if !ok { return fmt.Errorf("expected RecordTagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -13571,7 +13625,7 @@ func awsAwsjson11_deserializeDocumentRecordTag(v **types.RecordTag, value interf if !ok { return fmt.Errorf("expected RecordTagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -13583,7 +13637,7 @@ func awsAwsjson11_deserializeDocumentRecordTag(v **types.RecordTag, value interf return nil } -func awsAwsjson11_deserializeDocumentRecordTags(v *[]*types.RecordTag, value interface{}) error { +func awsAwsjson11_deserializeDocumentRecordTags(v *[]types.RecordTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13596,18 +13650,20 @@ func awsAwsjson11_deserializeDocumentRecordTags(v *[]*types.RecordTag, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RecordTag + var cv []types.RecordTag if *v == nil { - cv = []*types.RecordTag{} + cv = []types.RecordTag{} } else { cv = *v } for _, value := range shape { - var col *types.RecordTag - if err := awsAwsjson11_deserializeDocumentRecordTag(&col, value); err != nil { + var col types.RecordTag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRecordTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13657,7 +13713,7 @@ func awsAwsjson11_deserializeDocumentResourceChange(v **types.ResourceChange, va if !ok { return fmt.Errorf("expected LogicalResourceId to be of type string, got %T instead", value) } - sv.LogicalResourceId = &jtv + sv.LogicalResourceId = ptr.String(jtv) } case "PhysicalResourceId": @@ -13666,7 +13722,7 @@ func awsAwsjson11_deserializeDocumentResourceChange(v **types.ResourceChange, va if !ok { return fmt.Errorf("expected PhysicalResourceId to be of type string, got %T instead", value) } - sv.PhysicalResourceId = &jtv + sv.PhysicalResourceId = ptr.String(jtv) } case "Replacement": @@ -13684,7 +13740,7 @@ func awsAwsjson11_deserializeDocumentResourceChange(v **types.ResourceChange, va if !ok { return fmt.Errorf("expected PlanResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "Scope": @@ -13729,7 +13785,7 @@ func awsAwsjson11_deserializeDocumentResourceChangeDetail(v **types.ResourceChan if !ok { return fmt.Errorf("expected CausingEntity to be of type string, got %T instead", value) } - sv.CausingEntity = &jtv + sv.CausingEntity = ptr.String(jtv) } case "Evaluation": @@ -13755,7 +13811,7 @@ func awsAwsjson11_deserializeDocumentResourceChangeDetail(v **types.ResourceChan return nil } -func awsAwsjson11_deserializeDocumentResourceChangeDetails(v *[]*types.ResourceChangeDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceChangeDetails(v *[]types.ResourceChangeDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13768,18 +13824,20 @@ func awsAwsjson11_deserializeDocumentResourceChangeDetails(v *[]*types.ResourceC return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceChangeDetail + var cv []types.ResourceChangeDetail if *v == nil { - cv = []*types.ResourceChangeDetail{} + cv = []types.ResourceChangeDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceChangeDetail - if err := awsAwsjson11_deserializeDocumentResourceChangeDetail(&col, value); err != nil { + var col types.ResourceChangeDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceChangeDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13787,7 +13845,7 @@ func awsAwsjson11_deserializeDocumentResourceChangeDetails(v *[]*types.ResourceC return nil } -func awsAwsjson11_deserializeDocumentResourceChanges(v *[]*types.ResourceChange, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceChanges(v *[]types.ResourceChange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13800,18 +13858,20 @@ func awsAwsjson11_deserializeDocumentResourceChanges(v *[]*types.ResourceChange, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceChange + var cv []types.ResourceChange if *v == nil { - cv = []*types.ResourceChange{} + cv = []types.ResourceChange{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceChange - if err := awsAwsjson11_deserializeDocumentResourceChange(&col, value); err != nil { + var col types.ResourceChange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceChange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13847,7 +13907,7 @@ func awsAwsjson11_deserializeDocumentResourceDetail(v **types.ResourceDetail, va if !ok { return fmt.Errorf("expected ResourceDetailARN to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "CreatedTime": @@ -13869,7 +13929,7 @@ func awsAwsjson11_deserializeDocumentResourceDetail(v **types.ResourceDetail, va if !ok { return fmt.Errorf("expected ResourceDetailDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -13878,7 +13938,7 @@ func awsAwsjson11_deserializeDocumentResourceDetail(v **types.ResourceDetail, va if !ok { return fmt.Errorf("expected ResourceDetailId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -13887,7 +13947,7 @@ func awsAwsjson11_deserializeDocumentResourceDetail(v **types.ResourceDetail, va if !ok { return fmt.Errorf("expected ResourceDetailName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -13899,7 +13959,7 @@ func awsAwsjson11_deserializeDocumentResourceDetail(v **types.ResourceDetail, va return nil } -func awsAwsjson11_deserializeDocumentResourceDetails(v *[]*types.ResourceDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceDetails(v *[]types.ResourceDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13912,18 +13972,20 @@ func awsAwsjson11_deserializeDocumentResourceDetails(v *[]*types.ResourceDetail, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceDetail + var cv []types.ResourceDetail if *v == nil { - cv = []*types.ResourceDetail{} + cv = []types.ResourceDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceDetail - if err := awsAwsjson11_deserializeDocumentResourceDetail(&col, value); err != nil { + var col types.ResourceDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13959,7 +14021,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13999,7 +14061,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14048,7 +14110,7 @@ func awsAwsjson11_deserializeDocumentResourceTargetDefinition(v **types.Resource if !ok { return fmt.Errorf("expected PropertyName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RequiresRecreation": @@ -14105,7 +14167,7 @@ func awsAwsjson11_deserializeDocumentScope(v *[]types.ResourceAttribute, value i return nil } -func awsAwsjson11_deserializeDocumentServiceActionDefinitionMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentServiceActionDefinitionMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14118,21 +14180,21 @@ func awsAwsjson11_deserializeDocumentServiceActionDefinitionMap(v *map[string]*s return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ServiceActionDefinitionValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -14182,7 +14244,7 @@ func awsAwsjson11_deserializeDocumentServiceActionDetail(v **types.ServiceAction return nil } -func awsAwsjson11_deserializeDocumentServiceActionSummaries(v *[]*types.ServiceActionSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentServiceActionSummaries(v *[]types.ServiceActionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14195,18 +14257,20 @@ func awsAwsjson11_deserializeDocumentServiceActionSummaries(v *[]*types.ServiceA return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServiceActionSummary + var cv []types.ServiceActionSummary if *v == nil { - cv = []*types.ServiceActionSummary{} + cv = []types.ServiceActionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ServiceActionSummary - if err := awsAwsjson11_deserializeDocumentServiceActionSummary(&col, value); err != nil { + var col types.ServiceActionSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServiceActionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14251,7 +14315,7 @@ func awsAwsjson11_deserializeDocumentServiceActionSummary(v **types.ServiceActio if !ok { return fmt.Errorf("expected ServiceActionDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -14260,7 +14324,7 @@ func awsAwsjson11_deserializeDocumentServiceActionSummary(v **types.ServiceActio if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -14269,7 +14333,7 @@ func awsAwsjson11_deserializeDocumentServiceActionSummary(v **types.ServiceActio if !ok { return fmt.Errorf("expected ServiceActionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -14355,7 +14419,7 @@ func awsAwsjson11_deserializeDocumentShareError(v **types.ShareError, value inte if !ok { return fmt.Errorf("expected Error to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } case "Message": @@ -14364,7 +14428,7 @@ func awsAwsjson11_deserializeDocumentShareError(v **types.ShareError, value inte if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14376,7 +14440,7 @@ func awsAwsjson11_deserializeDocumentShareError(v **types.ShareError, value inte return nil } -func awsAwsjson11_deserializeDocumentShareErrors(v *[]*types.ShareError, value interface{}) error { +func awsAwsjson11_deserializeDocumentShareErrors(v *[]types.ShareError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14389,18 +14453,20 @@ func awsAwsjson11_deserializeDocumentShareErrors(v *[]*types.ShareError, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ShareError + var cv []types.ShareError if *v == nil { - cv = []*types.ShareError{} + cv = []types.ShareError{} } else { cv = *v } for _, value := range shape { - var col *types.ShareError - if err := awsAwsjson11_deserializeDocumentShareError(&col, value); err != nil { + var col types.ShareError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentShareError(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14436,7 +14502,7 @@ func awsAwsjson11_deserializeDocumentStackInstance(v **types.StackInstance, valu if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.Account = &jtv + sv.Account = ptr.String(jtv) } case "Region": @@ -14445,7 +14511,7 @@ func awsAwsjson11_deserializeDocumentStackInstance(v **types.StackInstance, valu if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "StackInstanceStatus": @@ -14466,7 +14532,7 @@ func awsAwsjson11_deserializeDocumentStackInstance(v **types.StackInstance, valu return nil } -func awsAwsjson11_deserializeDocumentStackInstances(v *[]*types.StackInstance, value interface{}) error { +func awsAwsjson11_deserializeDocumentStackInstances(v *[]types.StackInstance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14479,18 +14545,20 @@ func awsAwsjson11_deserializeDocumentStackInstances(v *[]*types.StackInstance, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StackInstance + var cv []types.StackInstance if *v == nil { - cv = []*types.StackInstance{} + cv = []types.StackInstance{} } else { cv = *v } for _, value := range shape { - var col *types.StackInstance - if err := awsAwsjson11_deserializeDocumentStackInstance(&col, value); err != nil { + var col types.StackInstance + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStackInstance(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14498,7 +14566,7 @@ func awsAwsjson11_deserializeDocumentStackInstances(v *[]*types.StackInstance, v return nil } -func awsAwsjson11_deserializeDocumentStackSetAccounts(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStackSetAccounts(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14511,21 +14579,21 @@ func awsAwsjson11_deserializeDocumentStackSetAccounts(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14534,7 +14602,7 @@ func awsAwsjson11_deserializeDocumentStackSetAccounts(v *[]*string, value interf return nil } -func awsAwsjson11_deserializeDocumentStackSetRegions(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStackSetRegions(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14547,21 +14615,21 @@ func awsAwsjson11_deserializeDocumentStackSetRegions(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14570,7 +14638,7 @@ func awsAwsjson11_deserializeDocumentStackSetRegions(v *[]*string, value interfa return nil } -func awsAwsjson11_deserializeDocumentSuccessfulShares(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSuccessfulShares(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14583,21 +14651,21 @@ func awsAwsjson11_deserializeDocumentSuccessfulShares(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14634,7 +14702,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -14643,7 +14711,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -14683,7 +14751,7 @@ func awsAwsjson11_deserializeDocumentTagOptionDetail(v **types.TagOptionDetail, if !ok { return fmt.Errorf("expected TagOptionActive to be of type *bool, got %T instead", value) } - sv.Active = &jtv + sv.Active = ptr.Bool(jtv) } case "Id": @@ -14692,7 +14760,7 @@ func awsAwsjson11_deserializeDocumentTagOptionDetail(v **types.TagOptionDetail, if !ok { return fmt.Errorf("expected TagOptionId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Key": @@ -14701,7 +14769,7 @@ func awsAwsjson11_deserializeDocumentTagOptionDetail(v **types.TagOptionDetail, if !ok { return fmt.Errorf("expected TagOptionKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -14710,7 +14778,7 @@ func awsAwsjson11_deserializeDocumentTagOptionDetail(v **types.TagOptionDetail, if !ok { return fmt.Errorf("expected TagOptionValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -14722,7 +14790,7 @@ func awsAwsjson11_deserializeDocumentTagOptionDetail(v **types.TagOptionDetail, return nil } -func awsAwsjson11_deserializeDocumentTagOptionDetails(v *[]*types.TagOptionDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagOptionDetails(v *[]types.TagOptionDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14735,18 +14803,20 @@ func awsAwsjson11_deserializeDocumentTagOptionDetails(v *[]*types.TagOptionDetai return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TagOptionDetail + var cv []types.TagOptionDetail if *v == nil { - cv = []*types.TagOptionDetail{} + cv = []types.TagOptionDetail{} } else { cv = *v } for _, value := range shape { - var col *types.TagOptionDetail - if err := awsAwsjson11_deserializeDocumentTagOptionDetail(&col, value); err != nil { + var col types.TagOptionDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTagOptionDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14782,7 +14852,7 @@ func awsAwsjson11_deserializeDocumentTagOptionNotMigratedException(v **types.Tag if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14794,7 +14864,7 @@ func awsAwsjson11_deserializeDocumentTagOptionNotMigratedException(v **types.Tag return nil } -func awsAwsjson11_deserializeDocumentTagOptionSummaries(v *[]*types.TagOptionSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagOptionSummaries(v *[]types.TagOptionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14807,18 +14877,20 @@ func awsAwsjson11_deserializeDocumentTagOptionSummaries(v *[]*types.TagOptionSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TagOptionSummary + var cv []types.TagOptionSummary if *v == nil { - cv = []*types.TagOptionSummary{} + cv = []types.TagOptionSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TagOptionSummary - if err := awsAwsjson11_deserializeDocumentTagOptionSummary(&col, value); err != nil { + var col types.TagOptionSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTagOptionSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14854,7 +14926,7 @@ func awsAwsjson11_deserializeDocumentTagOptionSummary(v **types.TagOptionSummary if !ok { return fmt.Errorf("expected TagOptionKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Values": @@ -14871,7 +14943,7 @@ func awsAwsjson11_deserializeDocumentTagOptionSummary(v **types.TagOptionSummary return nil } -func awsAwsjson11_deserializeDocumentTagOptionValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagOptionValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14884,21 +14956,21 @@ func awsAwsjson11_deserializeDocumentTagOptionValues(v *[]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TagOptionValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -14907,7 +14979,7 @@ func awsAwsjson11_deserializeDocumentTagOptionValues(v *[]*string, value interfa return nil } -func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14920,18 +14992,20 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14967,7 +15041,7 @@ func awsAwsjson11_deserializeDocumentUpdateProvisioningParameter(v **types.Updat if !ok { return fmt.Errorf("expected ParameterKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "UsePreviousValue": @@ -14976,7 +15050,7 @@ func awsAwsjson11_deserializeDocumentUpdateProvisioningParameter(v **types.Updat if !ok { return fmt.Errorf("expected UsePreviousValue to be of type *bool, got %T instead", value) } - sv.UsePreviousValue = &jtv + sv.UsePreviousValue = jtv } case "Value": @@ -14985,7 +15059,7 @@ func awsAwsjson11_deserializeDocumentUpdateProvisioningParameter(v **types.Updat if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -14997,7 +15071,7 @@ func awsAwsjson11_deserializeDocumentUpdateProvisioningParameter(v **types.Updat return nil } -func awsAwsjson11_deserializeDocumentUpdateProvisioningParameters(v *[]*types.UpdateProvisioningParameter, value interface{}) error { +func awsAwsjson11_deserializeDocumentUpdateProvisioningParameters(v *[]types.UpdateProvisioningParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15010,18 +15084,20 @@ func awsAwsjson11_deserializeDocumentUpdateProvisioningParameters(v *[]*types.Up return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UpdateProvisioningParameter + var cv []types.UpdateProvisioningParameter if *v == nil { - cv = []*types.UpdateProvisioningParameter{} + cv = []types.UpdateProvisioningParameter{} } else { cv = *v } for _, value := range shape { - var col *types.UpdateProvisioningParameter - if err := awsAwsjson11_deserializeDocumentUpdateProvisioningParameter(&col, value); err != nil { + var col types.UpdateProvisioningParameter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUpdateProvisioningParameter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15057,7 +15133,7 @@ func awsAwsjson11_deserializeDocumentUsageInstruction(v **types.UsageInstruction if !ok { return fmt.Errorf("expected InstructionType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } case "Value": @@ -15066,7 +15142,7 @@ func awsAwsjson11_deserializeDocumentUsageInstruction(v **types.UsageInstruction if !ok { return fmt.Errorf("expected InstructionValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -15078,7 +15154,7 @@ func awsAwsjson11_deserializeDocumentUsageInstruction(v **types.UsageInstruction return nil } -func awsAwsjson11_deserializeDocumentUsageInstructions(v *[]*types.UsageInstruction, value interface{}) error { +func awsAwsjson11_deserializeDocumentUsageInstructions(v *[]types.UsageInstruction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15091,18 +15167,20 @@ func awsAwsjson11_deserializeDocumentUsageInstructions(v *[]*types.UsageInstruct return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UsageInstruction + var cv []types.UsageInstruction if *v == nil { - cv = []*types.UsageInstruction{} + cv = []types.UsageInstruction{} } else { cv = *v } for _, value := range shape { - var col *types.UsageInstruction - if err := awsAwsjson11_deserializeDocumentUsageInstruction(&col, value); err != nil { + var col types.UsageInstruction + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUsageInstruction(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15396,7 +15474,7 @@ func awsAwsjson11_deserializeOpDocumentCopyProductOutput(v **CopyProductOutput, if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.CopyProductToken = &jtv + sv.CopyProductToken = ptr.String(jtv) } default: @@ -15441,7 +15519,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConstraintOutput(v **CreateConstrai if !ok { return fmt.Errorf("expected ConstraintParameters to be of type string, got %T instead", value) } - sv.ConstraintParameters = &jtv + sv.ConstraintParameters = ptr.String(jtv) } case "Status": @@ -15531,7 +15609,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePortfolioShareOutput(v **CreatePort if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.PortfolioShareToken = &jtv + sv.PortfolioShareToken = ptr.String(jtv) } default: @@ -15617,7 +15695,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProvisionedProductPlanOutput(v **Cr if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.PlanId = &jtv + sv.PlanId = ptr.String(jtv) } case "PlanName": @@ -15626,7 +15704,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProvisionedProductPlanOutput(v **Cr if !ok { return fmt.Errorf("expected ProvisionedProductPlanName to be of type string, got %T instead", value) } - sv.PlanName = &jtv + sv.PlanName = ptr.String(jtv) } case "ProvisionedProductName": @@ -15635,7 +15713,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProvisionedProductPlanOutput(v **Cr if !ok { return fmt.Errorf("expected ProvisionedProductName to be of type string, got %T instead", value) } - sv.ProvisionedProductName = &jtv + sv.ProvisionedProductName = ptr.String(jtv) } case "ProvisioningArtifactId": @@ -15644,7 +15722,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProvisionedProductPlanOutput(v **Cr if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProvisioningArtifactId = &jtv + sv.ProvisioningArtifactId = ptr.String(jtv) } case "ProvisionProductId": @@ -15653,7 +15731,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProvisionedProductPlanOutput(v **Cr if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProvisionProductId = &jtv + sv.ProvisionProductId = ptr.String(jtv) } default: @@ -15877,7 +15955,7 @@ func awsAwsjson11_deserializeOpDocumentDeletePortfolioShareOutput(v **DeletePort if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.PortfolioShareToken = &jtv + sv.PortfolioShareToken = ptr.String(jtv) } default: @@ -16077,7 +16155,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeConstraintOutput(v **DescribeCons if !ok { return fmt.Errorf("expected ConstraintParameters to be of type string, got %T instead", value) } - sv.ConstraintParameters = &jtv + sv.ConstraintParameters = ptr.String(jtv) } case "Status": @@ -16135,7 +16213,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCopyProductStatusOutput(v **Descr if !ok { return fmt.Errorf("expected StatusDetail to be of type string, got %T instead", value) } - sv.StatusDetail = &jtv + sv.StatusDetail = ptr.String(jtv) } case "TargetProductId": @@ -16144,7 +16222,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCopyProductStatusOutput(v **Descr if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.TargetProductId = &jtv + sv.TargetProductId = ptr.String(jtv) } default: @@ -16235,7 +16313,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePortfolioShareStatusOutput(v **De if !ok { return fmt.Errorf("expected OrganizationNodeValue to be of type string, got %T instead", value) } - sv.OrganizationNodeValue = &jtv + sv.OrganizationNodeValue = ptr.String(jtv) } case "PortfolioId": @@ -16244,7 +16322,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePortfolioShareStatusOutput(v **De if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.PortfolioId = &jtv + sv.PortfolioId = ptr.String(jtv) } case "PortfolioShareToken": @@ -16253,7 +16331,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePortfolioShareStatusOutput(v **De if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.PortfolioShareToken = &jtv + sv.PortfolioShareToken = ptr.String(jtv) } case "ShareDetails": @@ -16496,7 +16574,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeProvisionedProductPlanOutput(v ** if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ProvisionedProductPlanDetails": @@ -16657,7 +16735,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeRecordOutput(v **DescribeRecordOu if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "RecordDetail": @@ -17144,7 +17222,7 @@ func awsAwsjson11_deserializeOpDocumentGetProvisionedProductOutputsOutput(v **Ge if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "Outputs": @@ -17189,7 +17267,7 @@ func awsAwsjson11_deserializeOpDocumentListAcceptedPortfolioSharesOutput(v **Lis if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "PortfolioDetails": @@ -17239,7 +17317,7 @@ func awsAwsjson11_deserializeOpDocumentListBudgetsForResourceOutput(v **ListBudg if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -17284,7 +17362,7 @@ func awsAwsjson11_deserializeOpDocumentListConstraintsForPortfolioOutput(v **Lis if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -17329,7 +17407,7 @@ func awsAwsjson11_deserializeOpDocumentListLaunchPathsOutput(v **ListLaunchPaths if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -17369,7 +17447,7 @@ func awsAwsjson11_deserializeOpDocumentListOrganizationPortfolioAccessOutput(v * if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "OrganizationNodes": @@ -17419,7 +17497,7 @@ func awsAwsjson11_deserializeOpDocumentListPortfolioAccessOutput(v **ListPortfol if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -17459,7 +17537,7 @@ func awsAwsjson11_deserializeOpDocumentListPortfoliosForProductOutput(v **ListPo if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "PortfolioDetails": @@ -17504,7 +17582,7 @@ func awsAwsjson11_deserializeOpDocumentListPortfoliosOutput(v **ListPortfoliosOu if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "PortfolioDetails": @@ -17549,7 +17627,7 @@ func awsAwsjson11_deserializeOpDocumentListPrincipalsForPortfolioOutput(v **List if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "Principals": @@ -17594,7 +17672,7 @@ func awsAwsjson11_deserializeOpDocumentListProvisionedProductPlansOutput(v **Lis if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ProvisionedProductPlans": @@ -17639,7 +17717,7 @@ func awsAwsjson11_deserializeOpDocumentListProvisioningArtifactsForServiceAction if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ProvisioningArtifactViews": @@ -17684,7 +17762,7 @@ func awsAwsjson11_deserializeOpDocumentListProvisioningArtifactsOutput(v **ListP if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ProvisioningArtifactDetails": @@ -17729,7 +17807,7 @@ func awsAwsjson11_deserializeOpDocumentListRecordHistoryOutput(v **ListRecordHis if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "RecordDetails": @@ -17774,7 +17852,7 @@ func awsAwsjson11_deserializeOpDocumentListResourcesForTagOptionOutput(v **ListR if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.PageToken = &jtv + sv.PageToken = ptr.String(jtv) } case "ResourceDetails": @@ -17819,7 +17897,7 @@ func awsAwsjson11_deserializeOpDocumentListServiceActionsForProvisioningArtifact if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ServiceActionSummaries": @@ -17864,7 +17942,7 @@ func awsAwsjson11_deserializeOpDocumentListServiceActionsOutput(v **ListServiceA if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ServiceActionSummaries": @@ -17909,7 +17987,7 @@ func awsAwsjson11_deserializeOpDocumentListStackInstancesForProvisionedProductOu if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "StackInstances": @@ -17954,7 +18032,7 @@ func awsAwsjson11_deserializeOpDocumentListTagOptionsOutput(v **ListTagOptionsOu if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.PageToken = &jtv + sv.PageToken = ptr.String(jtv) } case "TagOptionDetails": @@ -18066,7 +18144,7 @@ func awsAwsjson11_deserializeOpDocumentScanProvisionedProductsOutput(v **ScanPro if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ProvisionedProducts": @@ -18111,7 +18189,7 @@ func awsAwsjson11_deserializeOpDocumentSearchProductsAsAdminOutput(v **SearchPro if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ProductViewDetails": @@ -18156,7 +18234,7 @@ func awsAwsjson11_deserializeOpDocumentSearchProductsOutput(v **SearchProductsOu if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ProductViewAggregations": @@ -18206,7 +18284,7 @@ func awsAwsjson11_deserializeOpDocumentSearchProvisionedProductsOutput(v **Searc if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "ProvisionedProducts": @@ -18224,7 +18302,7 @@ func awsAwsjson11_deserializeOpDocumentSearchProvisionedProductsOutput(v **Searc if err != nil { return err } - sv.TotalResultsCount = ptr.Int32(int32(i64)) + sv.TotalResultsCount = int32(i64) } default: @@ -18305,7 +18383,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateConstraintOutput(v **UpdateConstrai if !ok { return fmt.Errorf("expected ConstraintParameters to be of type string, got %T instead", value) } - sv.ConstraintParameters = &jtv + sv.ConstraintParameters = ptr.String(jtv) } case "Status": @@ -18472,7 +18550,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateProvisionedProductPropertiesOutput( if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.ProvisionedProductId = &jtv + sv.ProvisionedProductId = ptr.String(jtv) } case "ProvisionedProductProperties": @@ -18486,7 +18564,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateProvisionedProductPropertiesOutput( if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.RecordId = &jtv + sv.RecordId = ptr.String(jtv) } case "Status": diff --git a/service/servicecatalog/go.mod b/service/servicecatalog/go.mod index 3fb3e2c4942..a8b7e237b96 100644 --- a/service/servicecatalog/go.mod +++ b/service/servicecatalog/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/servicecatalog go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/servicecatalog/serializers.go b/service/servicecatalog/serializers.go index 4ad67ef8b87..230dda4c259 100644 --- a/service/servicecatalog/serializers.go +++ b/service/servicecatalog/serializers.go @@ -3873,17 +3873,13 @@ func awsAwsjson11_serializeDocumentAccessLevelFilter(v *types.AccessLevelFilter, return nil } -func awsAwsjson11_serializeDocumentAddTags(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAddTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -3901,14 +3897,13 @@ func awsAwsjson11_serializeDocumentCopyOptions(v []types.CopyOption, value smith return nil } -func awsAwsjson11_serializeDocumentExecutionParameterMap(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExecutionParameterMap(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentExecutionParameterValueList(v[key], om); err != nil { @@ -3918,17 +3913,13 @@ func awsAwsjson11_serializeDocumentExecutionParameterMap(v map[string][]*string, return nil } -func awsAwsjson11_serializeDocumentExecutionParameterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExecutionParameterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3972,17 +3963,13 @@ func awsAwsjson11_serializeDocumentListTagOptionsFilters(v *types.ListTagOptions return nil } -func awsAwsjson11_serializeDocumentNotificationArns(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNotificationArns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4004,29 +3991,24 @@ func awsAwsjson11_serializeDocumentOrganizationNode(v *types.OrganizationNode, v return nil } -func awsAwsjson11_serializeDocumentOutputKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOutputKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentProductViewFilters(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProductViewFilters(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentProductViewFilterValues(v[key], om); err != nil { @@ -4036,29 +4018,24 @@ func awsAwsjson11_serializeDocumentProductViewFilters(v map[string][]*string, va return nil } -func awsAwsjson11_serializeDocumentProductViewFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProductViewFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentProvisionedProductFilters(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProvisionedProductFilters(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentProvisionedProductViewFilterValues(v[key], om); err != nil { @@ -4068,47 +4045,35 @@ func awsAwsjson11_serializeDocumentProvisionedProductFilters(v map[string][]*str return nil } -func awsAwsjson11_serializeDocumentProvisionedProductProperties(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProvisionedProductProperties(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentProvisionedProductViewFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProvisionedProductViewFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentProvisioningArtifactInfo(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProvisioningArtifactInfo(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -4122,9 +4087,9 @@ func awsAwsjson11_serializeDocumentProvisioningArtifactProperties(v *types.Provi ok.String(*v.Description) } - if v.DisableTemplateValidation != nil { + if v.DisableTemplateValidation { ok := object.Key("DisableTemplateValidation") - ok.Boolean(*v.DisableTemplateValidation) + ok.Boolean(v.DisableTemplateValidation) } if v.Info != nil { @@ -4164,17 +4129,13 @@ func awsAwsjson11_serializeDocumentProvisioningParameter(v *types.ProvisioningPa return nil } -func awsAwsjson11_serializeDocumentProvisioningParameters(v []*types.ProvisioningParameter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentProvisioningParameters(v []types.ProvisioningParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentProvisioningParameter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentProvisioningParameter(&v[i], av); err != nil { return err } } @@ -4244,46 +4205,37 @@ func awsAwsjson11_serializeDocumentServiceActionAssociation(v *types.ServiceActi return nil } -func awsAwsjson11_serializeDocumentServiceActionAssociations(v []*types.ServiceActionAssociation, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServiceActionAssociations(v []types.ServiceActionAssociation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentServiceActionAssociation(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentServiceActionAssociation(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentServiceActionDefinitionMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServiceActionDefinitionMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentSourceProvisioningArtifactProperties(v []map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSourceProvisioningArtifactProperties(v []map[string]string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsAwsjson11_serializeDocumentSourceProvisioningArtifactPropertiesMap(v[i], av); err != nil { @@ -4293,47 +4245,35 @@ func awsAwsjson11_serializeDocumentSourceProvisioningArtifactProperties(v []map[ return nil } -func awsAwsjson11_serializeDocumentSourceProvisioningArtifactPropertiesMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSourceProvisioningArtifactPropertiesMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentStackSetAccounts(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStackSetAccounts(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentStackSetRegions(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStackSetRegions(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4355,32 +4295,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -4396,9 +4328,9 @@ func awsAwsjson11_serializeDocumentUpdateProvisioningParameter(v *types.UpdatePr ok.String(*v.Key) } - if v.UsePreviousValue != nil { + if v.UsePreviousValue { ok := object.Key("UsePreviousValue") - ok.Boolean(*v.UsePreviousValue) + ok.Boolean(v.UsePreviousValue) } if v.Value != nil { @@ -4409,17 +4341,13 @@ func awsAwsjson11_serializeDocumentUpdateProvisioningParameter(v *types.UpdatePr return nil } -func awsAwsjson11_serializeDocumentUpdateProvisioningParameters(v []*types.UpdateProvisioningParameter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentUpdateProvisioningParameters(v []types.UpdateProvisioningParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentUpdateProvisioningParameter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentUpdateProvisioningParameter(&v[i], av); err != nil { return err } } @@ -5116,9 +5044,9 @@ func awsAwsjson11_serializeOpDocumentDeleteProvisionedProductPlanInput(v *Delete ok.String(*v.AcceptLanguage) } - if v.IgnoreErrors != nil { + if v.IgnoreErrors { ok := object.Key("IgnoreErrors") - ok.Boolean(*v.IgnoreErrors) + ok.Boolean(v.IgnoreErrors) } if v.PlanId != nil { @@ -5335,9 +5263,9 @@ func awsAwsjson11_serializeOpDocumentDescribeProvisionedProductPlanInput(v *Desc ok.String(*v.AcceptLanguage) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -5382,9 +5310,9 @@ func awsAwsjson11_serializeOpDocumentDescribeProvisioningArtifactInput(v *Descri ok.String(*v.ProvisioningArtifactName) } - if v.Verbose != nil { + if v.Verbose { ok := object.Key("Verbose") - ok.Boolean(*v.Verbose) + ok.Boolean(v.Verbose) } return nil @@ -5446,9 +5374,9 @@ func awsAwsjson11_serializeOpDocumentDescribeRecordInput(v *DescribeRecordInput, ok.String(*v.Id) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -5708,9 +5636,9 @@ func awsAwsjson11_serializeOpDocumentGetProvisionedProductOutputsInput(v *GetPro } } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -5740,9 +5668,9 @@ func awsAwsjson11_serializeOpDocumentListAcceptedPortfolioSharesInput(v *ListAcc ok.String(*v.AcceptLanguage) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -5767,9 +5695,9 @@ func awsAwsjson11_serializeOpDocumentListBudgetsForResourceInput(v *ListBudgetsF ok.String(*v.AcceptLanguage) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -5794,9 +5722,9 @@ func awsAwsjson11_serializeOpDocumentListConstraintsForPortfolioInput(v *ListCon ok.String(*v.AcceptLanguage) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -5826,9 +5754,9 @@ func awsAwsjson11_serializeOpDocumentListLaunchPathsInput(v *ListLaunchPathsInpu ok.String(*v.AcceptLanguage) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -5858,9 +5786,9 @@ func awsAwsjson11_serializeOpDocumentListOrganizationPortfolioAccessInput(v *Lis ok.String(string(v.OrganizationNodeType)) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -5890,9 +5818,9 @@ func awsAwsjson11_serializeOpDocumentListPortfolioAccessInput(v *ListPortfolioAc ok.String(*v.OrganizationParentId) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -5917,9 +5845,9 @@ func awsAwsjson11_serializeOpDocumentListPortfoliosForProductInput(v *ListPortfo ok.String(*v.AcceptLanguage) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -5944,9 +5872,9 @@ func awsAwsjson11_serializeOpDocumentListPortfoliosInput(v *ListPortfoliosInput, ok.String(*v.AcceptLanguage) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -5966,9 +5894,9 @@ func awsAwsjson11_serializeOpDocumentListPrincipalsForPortfolioInput(v *ListPrin ok.String(*v.AcceptLanguage) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -6000,9 +5928,9 @@ func awsAwsjson11_serializeOpDocumentListProvisionedProductPlansInput(v *ListPro } } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -6027,9 +5955,9 @@ func awsAwsjson11_serializeOpDocumentListProvisioningArtifactsForServiceActionIn ok.String(*v.AcceptLanguage) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -6078,9 +6006,9 @@ func awsAwsjson11_serializeOpDocumentListRecordHistoryInput(v *ListRecordHistory } } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -6102,9 +6030,9 @@ func awsAwsjson11_serializeOpDocumentListResourcesForTagOptionInput(v *ListResou object := value.Object() defer object.Close() - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -6134,9 +6062,9 @@ func awsAwsjson11_serializeOpDocumentListServiceActionsForProvisioningArtifactIn ok.String(*v.AcceptLanguage) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -6166,9 +6094,9 @@ func awsAwsjson11_serializeOpDocumentListServiceActionsInput(v *ListServiceActio ok.String(*v.AcceptLanguage) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -6188,9 +6116,9 @@ func awsAwsjson11_serializeOpDocumentListStackInstancesForProvisionedProductInpu ok.String(*v.AcceptLanguage) } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -6217,9 +6145,9 @@ func awsAwsjson11_serializeOpDocumentListTagOptionsInput(v *ListTagOptionsInput, } } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -6348,9 +6276,9 @@ func awsAwsjson11_serializeOpDocumentScanProvisionedProductsInput(v *ScanProvisi } } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -6377,9 +6305,9 @@ func awsAwsjson11_serializeOpDocumentSearchProductsAsAdminInput(v *SearchProduct } } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -6426,9 +6354,9 @@ func awsAwsjson11_serializeOpDocumentSearchProductsInput(v *SearchProductsInput, } } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -6472,9 +6400,9 @@ func awsAwsjson11_serializeOpDocumentSearchProvisionedProductsInput(v *SearchPro } } - if v.PageSize != nil { + if v.PageSize != 0 { ok := object.Key("PageSize") - ok.Integer(*v.PageSize) + ok.Integer(v.PageSize) } if v.PageToken != nil { @@ -6504,9 +6432,9 @@ func awsAwsjson11_serializeOpDocumentTerminateProvisionedProductInput(v *Termina ok.String(*v.AcceptLanguage) } - if v.IgnoreErrors != nil { + if v.IgnoreErrors { ok := object.Key("IgnoreErrors") - ok.Boolean(*v.IgnoreErrors) + ok.Boolean(v.IgnoreErrors) } if v.ProvisionedProductId != nil { diff --git a/service/servicecatalog/types/types.go b/service/servicecatalog/types/types.go index 7545b08d066..97f6a456f16 100644 --- a/service/servicecatalog/types/types.go +++ b/service/servicecatalog/types/types.go @@ -93,7 +93,7 @@ type ConstraintSummary struct { type ExecutionParameter struct { // The default values for the execution parameter. - DefaultValues []*string + DefaultValues []string // The name of the execution parameter. Name *string @@ -136,7 +136,7 @@ type LaunchPath struct { type LaunchPathSummary struct { // The constraints on the portfolio-product relationship. - ConstraintSummaries []*ConstraintSummary + ConstraintSummaries []ConstraintSummary // The identifier of the product path. Id *string @@ -145,7 +145,7 @@ type LaunchPathSummary struct { Name *string // The tags associated with this product path. - Tags []*Tag + Tags []Tag } // The search filter to use when listing history records. @@ -191,7 +191,7 @@ type OrganizationNode struct { type ParameterConstraints struct { // The values that the administrator has allowed for the parameter. - AllowedValues []*string + AllowedValues []string } // Information about a portfolio. @@ -231,7 +231,7 @@ type Principal struct { type ProductViewAggregationValue struct { // An approximate count of the products that match the value. - ApproximateCount *int32 + ApproximateCount int32 // The value of the product view aggregation. Value *string @@ -272,7 +272,7 @@ type ProductViewSummary struct { // default path, call ListLaunchPaths to disambiguate between paths. Otherwise, // ListLaunchPaths is not required, and the output of ProductViewSummary can be // used directly with DescribeProvisioningParameters. - HasDefaultPath *bool + HasDefaultPath bool // The product view identifier. Id *string @@ -400,7 +400,7 @@ type ProvisionedProductAttribute struct { StatusMessage *string // One or more tags. - Tags []*Tag + Tags []Tag // The type of provisioned product. The supported values are CFN_STACK and // CFN_STACKSET. @@ -514,7 +514,7 @@ type ProvisionedProductPlanDetails struct { // Passed to CloudFormation. The SNS topic ARNs to which to publish stack-related // events. - NotificationArns []*string + NotificationArns []string // The path identifier of the product. This value is optional if the product has a // default path, and required if the product has more than one path. To list the @@ -544,7 +544,7 @@ type ProvisionedProductPlanDetails struct { // Parameters specified by the administrator that are required for provisioning the // product. - ProvisioningParameters []*UpdateProvisioningParameter + ProvisioningParameters []UpdateProvisioningParameter // The status. Status ProvisionedProductPlanStatus @@ -553,7 +553,7 @@ type ProvisionedProductPlanDetails struct { StatusMessage *string // One or more tags. - Tags []*Tag + Tags []Tag // The time when the plan was last updated. UpdatedTime *time.Time @@ -659,7 +659,7 @@ type ProvisioningArtifactParameter struct { // If this value is true, the value for this parameter is obfuscated from view when // the parameter is retrieved. This parameter is used to hide sensitive // information. - IsNoEcho *bool + IsNoEcho bool // Constraints that the administrator has put on a parameter. ParameterConstraints *ParameterConstraints @@ -683,13 +683,13 @@ type ProvisioningArtifactPreferences struct { // These accounts can be scoped in ProvisioningPreferences$StackSetAccounts and // UpdateProvisioningPreferences$StackSetAccounts. Applicable only to a // CFN_STACKSET provisioned product type. - StackSetAccounts []*string + StackSetAccounts []string // One or more AWS Regions where stack instances are deployed from the stack set. // These regions can be scoped in ProvisioningPreferences$StackSetRegions and // UpdateProvisioningPreferences$StackSetRegions. Applicable only to a CFN_STACKSET // provisioned product type. - StackSetRegions []*string + StackSetRegions []string } // Information about a provisioning artifact (also known as a version) for a @@ -701,7 +701,7 @@ type ProvisioningArtifactProperties struct { // "https://s3.amazonaws.com/cf-templates-ozkq9d3hgiq2-us-east-1/..." // // This member is required. - Info map[string]*string + Info map[string]string // The description of the provisioning artifact, including how it differs from the // previous provisioning artifact. @@ -709,7 +709,7 @@ type ProvisioningArtifactProperties struct { // If set to true, AWS Service Catalog stops validating the specified provisioning // artifact even if it is invalid. - DisableTemplateValidation *bool + DisableTemplateValidation bool // The name of the provisioning artifact (for example, v1 v2beta). No spaces are // allowed. @@ -745,7 +745,7 @@ type ProvisioningArtifactSummary struct { // The metadata for the provisioning artifact. This is used with AWS Marketplace // products. - ProvisioningArtifactMetadata map[string]*string + ProvisioningArtifactMetadata map[string]string } // An object that contains summary information about a product view and a @@ -780,7 +780,7 @@ type ProvisioningPreferences struct { // get the list of accounts in the STACKSET constraint, use the // DescribeProvisioningParameters operation. If no values are specified, the // default value is all accounts from the STACKSET constraint. - StackSetAccounts []*string + StackSetAccounts []string // The number of accounts, per region, for which this operation can fail before AWS // Service Catalog stops the operation in that region. If the operation is stopped @@ -830,7 +830,7 @@ type ProvisioningPreferences struct { // get the list of regions in the STACKSET constraint, use the // DescribeProvisioningParameters operation. If no values are specified, the // default value is all regions from the STACKSET constraint. - StackSetRegions []*string + StackSetRegions []string } // Information about a request operation. @@ -862,13 +862,13 @@ type RecordDetail struct { ProvisioningArtifactId *string // The errors that occurred. - RecordErrors []*RecordError + RecordErrors []RecordError // The identifier of the record. RecordId *string // One or more tags. - RecordTags []*RecordTag + RecordTags []RecordTag // The record type. // @@ -945,7 +945,7 @@ type ResourceChange struct { Action ChangeAction // Information about the resource changes. - Details []*ResourceChangeDetail + Details []ResourceChangeDetail // The ID of the resource, as defined in the CloudFormation template. LogicalResourceId *string @@ -1037,7 +1037,7 @@ type ServiceActionAssociation struct { type ServiceActionDetail struct { // A map that defines the self-service action. - Definition map[string]*string + Definition map[string]string // Summary information about the self-service action. ServiceActionSummary *ServiceActionSummary @@ -1063,17 +1063,17 @@ type ServiceActionSummary struct { type ShareDetails struct { // List of errors. - ShareErrors []*ShareError + ShareErrors []ShareError // List of accounts for whom the operation succeeded. - SuccessfulShares []*string + SuccessfulShares []string } // Errors that occurred during the portfolio share operation. type ShareError struct { // List of accounts impacted by the error. - Accounts []*string + Accounts []string // Error type that happened when processing the operation. Error *string @@ -1155,7 +1155,7 @@ type TagOptionSummary struct { Key *string // The TagOption value. - Values []*string + Values []string } // The parameter key-value pair used to update a provisioned product. @@ -1165,7 +1165,7 @@ type UpdateProvisioningParameter struct { Key *string // If set to true, Value is ignored and the previous parameter value is kept. - UsePreviousValue *bool + UsePreviousValue bool // The parameter value. Value *string @@ -1181,7 +1181,7 @@ type UpdateProvisioningPreferences struct { // get the list of accounts in the STACKSET constraint, use the // DescribeProvisioningParameters operation. If no values are specified, the // default value is all accounts from the STACKSET constraint. - StackSetAccounts []*string + StackSetAccounts []string // The number of accounts, per region, for which this operation can fail before AWS // Service Catalog stops the operation in that region. If the operation is stopped @@ -1242,7 +1242,7 @@ type UpdateProvisioningPreferences struct { // get the list of regions in the STACKSET constraint, use the // DescribeProvisioningParameters operation. If no values are specified, the // default value is all regions from the STACKSET constraint. - StackSetRegions []*string + StackSetRegions []string } // Additional information provided by the administrator. diff --git a/service/servicecatalog/validators.go b/service/servicecatalog/validators.go index 0c93e6cfe79..de5df6927a8 100644 --- a/service/servicecatalog/validators.go +++ b/service/servicecatalog/validators.go @@ -1570,13 +1570,13 @@ func addOpUpdateTagOptionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateTagOption{}, middleware.After) } -func validateAddTags(v []*types.Tag) error { +func validateAddTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AddTags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1623,13 +1623,13 @@ func validateServiceActionAssociation(v *types.ServiceActionAssociation) error { } } -func validateServiceActionAssociations(v []*types.ServiceActionAssociation) error { +func validateServiceActionAssociations(v []types.ServiceActionAssociation) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ServiceActionAssociations"} for i := range v { - if err := validateServiceActionAssociation(v[i]); err != nil { + if err := validateServiceActionAssociation(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1658,13 +1658,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/servicediscovery/api_op_CreateHttpNamespace.go b/service/servicediscovery/api_op_CreateHttpNamespace.go index 253e0325b86..c188868b1e7 100644 --- a/service/servicediscovery/api_op_CreateHttpNamespace.go +++ b/service/servicediscovery/api_op_CreateHttpNamespace.go @@ -52,7 +52,7 @@ type CreateHttpNamespaceInput struct { // The tags to add to the namespace. Each tag consists of a key and an optional // value, both of which you define. Tag keys can have a maximum character length of // 128 characters, and tag values can have a maximum length of 256 characters. - Tags []*types.Tag + Tags []types.Tag } type CreateHttpNamespaceOutput struct { diff --git a/service/servicediscovery/api_op_CreatePrivateDnsNamespace.go b/service/servicediscovery/api_op_CreatePrivateDnsNamespace.go index e76e61d87fc..b17a29db524 100644 --- a/service/servicediscovery/api_op_CreatePrivateDnsNamespace.go +++ b/service/servicediscovery/api_op_CreatePrivateDnsNamespace.go @@ -61,7 +61,7 @@ type CreatePrivateDnsNamespaceInput struct { // The tags to add to the namespace. Each tag consists of a key and an optional // value, both of which you define. Tag keys can have a maximum character length of // 128 characters, and tag values can have a maximum length of 256 characters. - Tags []*types.Tag + Tags []types.Tag } type CreatePrivateDnsNamespaceOutput struct { diff --git a/service/servicediscovery/api_op_CreatePublicDnsNamespace.go b/service/servicediscovery/api_op_CreatePublicDnsNamespace.go index e76fc213fc9..8396d97f736 100644 --- a/service/servicediscovery/api_op_CreatePublicDnsNamespace.go +++ b/service/servicediscovery/api_op_CreatePublicDnsNamespace.go @@ -53,7 +53,7 @@ type CreatePublicDnsNamespaceInput struct { // The tags to add to the namespace. Each tag consists of a key and an optional // value, both of which you define. Tag keys can have a maximum character length of // 128 characters, and tag values can have a maximum length of 256 characters. - Tags []*types.Tag + Tags []types.Tag } type CreatePublicDnsNamespaceOutput struct { diff --git a/service/servicediscovery/api_op_CreateService.go b/service/servicediscovery/api_op_CreateService.go index 8905a18574b..f76f160c567 100644 --- a/service/servicediscovery/api_op_CreateService.go +++ b/service/servicediscovery/api_op_CreateService.go @@ -109,7 +109,7 @@ type CreateServiceInput struct { // The tags to add to the service. Each tag consists of a key and an optional // value, both of which you define. Tag keys can have a maximum character length of // 128 characters, and tag values can have a maximum length of 256 characters. - Tags []*types.Tag + Tags []types.Tag } type CreateServiceOutput struct { diff --git a/service/servicediscovery/api_op_DiscoverInstances.go b/service/servicediscovery/api_op_DiscoverInstances.go index e08482c796d..a90862c5f3a 100644 --- a/service/servicediscovery/api_op_DiscoverInstances.go +++ b/service/servicediscovery/api_op_DiscoverInstances.go @@ -56,19 +56,19 @@ type DiscoverInstancesInput struct { // parameter and this parameter, they are returned. Otherwise, these filters are // ignored and only instances that match the filters specified in the // QueryParameters parameter are returned. - OptionalParameters map[string]*string + OptionalParameters map[string]string // Filters to scope the results based on custom attributes for the instance. For // example, {version=v1, az=1a}. Only instances that match all the specified // key-value pairs will be returned. - QueryParameters map[string]*string + QueryParameters map[string]string } type DiscoverInstancesOutput struct { // A complex type that contains one HttpInstanceSummary for each registered // instance. - Instances []*types.HttpInstanceSummary + Instances []types.HttpInstanceSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicediscovery/api_op_GetInstancesHealthStatus.go b/service/servicediscovery/api_op_GetInstancesHealthStatus.go index 348322e8da4..249059c5b4a 100644 --- a/service/servicediscovery/api_op_GetInstancesHealthStatus.go +++ b/service/servicediscovery/api_op_GetInstancesHealthStatus.go @@ -44,7 +44,7 @@ type GetInstancesHealthStatusInput struct { // service, submit a ListInstances // (https://docs.aws.amazon.com/cloud-map/latest/api/API_ListInstances.html) // request. - Instances []*string + Instances []string // The maximum number of instances that you want AWS Cloud Map to return in the // response to a GetInstancesHealthStatus request. If you don't specify a value for diff --git a/service/servicediscovery/api_op_ListInstances.go b/service/servicediscovery/api_op_ListInstances.go index 374793b057e..d2da138c873 100644 --- a/service/servicediscovery/api_op_ListInstances.go +++ b/service/servicediscovery/api_op_ListInstances.go @@ -51,7 +51,7 @@ type ListInstancesOutput struct { // Summary information about the instances that are associated with the specified // service. - Instances []*types.InstanceSummary + Instances []types.InstanceSummary // If more than MaxResults instances match the specified criteria, you can submit // another ListInstances request to get the next group of results. Specify the diff --git a/service/servicediscovery/api_op_ListNamespaces.go b/service/servicediscovery/api_op_ListNamespaces.go index ac5f363b561..80608e73900 100644 --- a/service/servicediscovery/api_op_ListNamespaces.go +++ b/service/servicediscovery/api_op_ListNamespaces.go @@ -33,7 +33,7 @@ type ListNamespacesInput struct { // A complex type that contains specifications for the namespaces that you want to // list. If you specify more than one filter, a namespace must match all filters to // be returned by ListNamespaces. - Filters []*types.NamespaceFilter + Filters []types.NamespaceFilter // The maximum number of namespaces that you want AWS Cloud Map to return in the // response to a ListNamespaces request. If you don't specify a value for @@ -54,7 +54,7 @@ type ListNamespacesOutput struct { // An array that contains one NamespaceSummary object for each namespace that // matches the specified filter criteria. - Namespaces []*types.NamespaceSummary + Namespaces []types.NamespaceSummary // If the response contains NextToken, submit another ListNamespaces request to get // the next group of results. Specify the value of NextToken from the previous diff --git a/service/servicediscovery/api_op_ListOperations.go b/service/servicediscovery/api_op_ListOperations.go index 4c5fe95df79..85fce22cea5 100644 --- a/service/servicediscovery/api_op_ListOperations.go +++ b/service/servicediscovery/api_op_ListOperations.go @@ -33,7 +33,7 @@ type ListOperationsInput struct { // list, for example, operations that you started between a specified start date // and end date. If you specify more than one filter, an operation must match all // filters to be returned by ListOperations. - Filters []*types.OperationFilter + Filters []types.OperationFilter // The maximum number of items that you want AWS Cloud Map to return in the // response to a ListOperations request. If you don't specify a value for @@ -62,7 +62,7 @@ type ListOperationsOutput struct { NextToken *string // Summary information about the operations that match the specified criteria. - Operations []*types.OperationSummary + Operations []types.OperationSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicediscovery/api_op_ListServices.go b/service/servicediscovery/api_op_ListServices.go index 606eb95b8f9..3733e3a0268 100644 --- a/service/servicediscovery/api_op_ListServices.go +++ b/service/servicediscovery/api_op_ListServices.go @@ -33,7 +33,7 @@ type ListServicesInput struct { // A complex type that contains specifications for the namespaces that you want to // list services for. If you specify more than one filter, an operation must match // all filters to be returned by ListServices. - Filters []*types.ServiceFilter + Filters []types.ServiceFilter // The maximum number of services that you want AWS Cloud Map to return in the // response to a ListServices request. If you don't specify a value for MaxResults, @@ -62,7 +62,7 @@ type ListServicesOutput struct { // An array that contains one ServiceSummary object for each service that matches // the specified filter criteria. - Services []*types.ServiceSummary + Services []types.ServiceSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicediscovery/api_op_ListTagsForResource.go b/service/servicediscovery/api_op_ListTagsForResource.go index 35e629f476b..b09157193ed 100644 --- a/service/servicediscovery/api_op_ListTagsForResource.go +++ b/service/servicediscovery/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags that are assigned to the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicediscovery/api_op_RegisterInstance.go b/service/servicediscovery/api_op_RegisterInstance.go index 6e4c487e063..e580dcec661 100644 --- a/service/servicediscovery/api_op_RegisterInstance.go +++ b/service/servicediscovery/api_op_RegisterInstance.go @@ -134,7 +134,7 @@ type RegisterInstanceInput struct { // values) must not exceed 5,000 characters. // // This member is required. - Attributes map[string]*string + Attributes map[string]string // An identifier that you want to associate with the instance. Note the // following: diff --git a/service/servicediscovery/api_op_TagResource.go b/service/servicediscovery/api_op_TagResource.go index 42b5f3390e8..00179b3ef4c 100644 --- a/service/servicediscovery/api_op_TagResource.go +++ b/service/servicediscovery/api_op_TagResource.go @@ -40,7 +40,7 @@ type TagResourceInput struct { // of a tag to null. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/servicediscovery/api_op_UntagResource.go b/service/servicediscovery/api_op_UntagResource.go index 6397ede40ee..8e9fac5b131 100644 --- a/service/servicediscovery/api_op_UntagResource.go +++ b/service/servicediscovery/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // The tag keys to remove from the specified resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/servicediscovery/deserializers.go b/service/servicediscovery/deserializers.go index b8a24834bec..3758b63c870 100644 --- a/service/servicediscovery/deserializers.go +++ b/service/servicediscovery/deserializers.go @@ -3209,7 +3209,7 @@ func awsAwsjson11_deserializeErrorTooManyTagsException(response *smithyhttp.Resp return output } -func awsAwsjson11_deserializeDocumentAttributes(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttributes(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3222,21 +3222,21 @@ func awsAwsjson11_deserializeDocumentAttributes(v *map[string]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttrValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -3273,7 +3273,7 @@ func awsAwsjson11_deserializeDocumentCustomHealthNotFound(v **types.CustomHealth if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3318,7 +3318,7 @@ func awsAwsjson11_deserializeDocumentDnsConfig(v **types.DnsConfig, value interf if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.NamespaceId = &jtv + sv.NamespaceId = ptr.String(jtv) } case "RoutingPolicy": @@ -3367,7 +3367,7 @@ func awsAwsjson11_deserializeDocumentDnsProperties(v **types.DnsProperties, valu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.HostedZoneId = &jtv + sv.HostedZoneId = ptr.String(jtv) } default: @@ -3411,7 +3411,7 @@ func awsAwsjson11_deserializeDocumentDnsRecord(v **types.DnsRecord, value interf if err != nil { return err } - sv.TTL = &i64 + sv.TTL = ptr.Int64(i64) } case "Type": @@ -3432,7 +3432,7 @@ func awsAwsjson11_deserializeDocumentDnsRecord(v **types.DnsRecord, value interf return nil } -func awsAwsjson11_deserializeDocumentDnsRecordList(v *[]*types.DnsRecord, value interface{}) error { +func awsAwsjson11_deserializeDocumentDnsRecordList(v *[]types.DnsRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3445,18 +3445,20 @@ func awsAwsjson11_deserializeDocumentDnsRecordList(v *[]*types.DnsRecord, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DnsRecord + var cv []types.DnsRecord if *v == nil { - cv = []*types.DnsRecord{} + cv = []types.DnsRecord{} } else { cv = *v } for _, value := range shape { - var col *types.DnsRecord - if err := awsAwsjson11_deserializeDocumentDnsRecord(&col, value); err != nil { + var col types.DnsRecord + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDnsRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3492,7 +3494,7 @@ func awsAwsjson11_deserializeDocumentDuplicateRequest(v **types.DuplicateRequest if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DuplicateOperationId = &jtv + sv.DuplicateOperationId = ptr.String(jtv) } case "Message": @@ -3501,7 +3503,7 @@ func awsAwsjson11_deserializeDocumentDuplicateRequest(v **types.DuplicateRequest if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3554,7 +3556,7 @@ func awsAwsjson11_deserializeDocumentHealthCheckConfig(v **types.HealthCheckConf if !ok { return fmt.Errorf("expected ResourcePath to be of type string, got %T instead", value) } - sv.ResourcePath = &jtv + sv.ResourcePath = ptr.String(jtv) } case "Type": @@ -3661,7 +3663,7 @@ func awsAwsjson11_deserializeDocumentHttpInstanceSummary(v **types.HttpInstanceS if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "NamespaceName": @@ -3670,7 +3672,7 @@ func awsAwsjson11_deserializeDocumentHttpInstanceSummary(v **types.HttpInstanceS if !ok { return fmt.Errorf("expected NamespaceName to be of type string, got %T instead", value) } - sv.NamespaceName = &jtv + sv.NamespaceName = ptr.String(jtv) } case "ServiceName": @@ -3679,7 +3681,7 @@ func awsAwsjson11_deserializeDocumentHttpInstanceSummary(v **types.HttpInstanceS if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } default: @@ -3691,7 +3693,7 @@ func awsAwsjson11_deserializeDocumentHttpInstanceSummary(v **types.HttpInstanceS return nil } -func awsAwsjson11_deserializeDocumentHttpInstanceSummaryList(v *[]*types.HttpInstanceSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentHttpInstanceSummaryList(v *[]types.HttpInstanceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3704,18 +3706,20 @@ func awsAwsjson11_deserializeDocumentHttpInstanceSummaryList(v *[]*types.HttpIns return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HttpInstanceSummary + var cv []types.HttpInstanceSummary if *v == nil { - cv = []*types.HttpInstanceSummary{} + cv = []types.HttpInstanceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.HttpInstanceSummary - if err := awsAwsjson11_deserializeDocumentHttpInstanceSummary(&col, value); err != nil { + var col types.HttpInstanceSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHttpInstanceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3751,7 +3755,7 @@ func awsAwsjson11_deserializeDocumentHttpProperties(v **types.HttpProperties, va if !ok { return fmt.Errorf("expected NamespaceName to be of type string, got %T instead", value) } - sv.HttpName = &jtv + sv.HttpName = ptr.String(jtv) } default: @@ -3796,7 +3800,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "Id": @@ -3805,7 +3809,7 @@ func awsAwsjson11_deserializeDocumentInstance(v **types.Instance, value interfac if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -3881,7 +3885,7 @@ func awsAwsjson11_deserializeDocumentInstanceNotFound(v **types.InstanceNotFound if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3926,7 +3930,7 @@ func awsAwsjson11_deserializeDocumentInstanceSummary(v **types.InstanceSummary, if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -3938,7 +3942,7 @@ func awsAwsjson11_deserializeDocumentInstanceSummary(v **types.InstanceSummary, return nil } -func awsAwsjson11_deserializeDocumentInstanceSummaryList(v *[]*types.InstanceSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceSummaryList(v *[]types.InstanceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3951,18 +3955,20 @@ func awsAwsjson11_deserializeDocumentInstanceSummaryList(v *[]*types.InstanceSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceSummary + var cv []types.InstanceSummary if *v == nil { - cv = []*types.InstanceSummary{} + cv = []types.InstanceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceSummary - if err := awsAwsjson11_deserializeDocumentInstanceSummary(&col, value); err != nil { + var col types.InstanceSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3998,7 +4004,7 @@ func awsAwsjson11_deserializeDocumentInvalidInput(v **types.InvalidInput, value if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4038,7 +4044,7 @@ func awsAwsjson11_deserializeDocumentNamespace(v **types.Namespace, value interf if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreateDate": @@ -4060,7 +4066,7 @@ func awsAwsjson11_deserializeDocumentNamespace(v **types.Namespace, value interf if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "Description": @@ -4069,7 +4075,7 @@ func awsAwsjson11_deserializeDocumentNamespace(v **types.Namespace, value interf if !ok { return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -4078,7 +4084,7 @@ func awsAwsjson11_deserializeDocumentNamespace(v **types.Namespace, value interf if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -4087,7 +4093,7 @@ func awsAwsjson11_deserializeDocumentNamespace(v **types.Namespace, value interf if !ok { return fmt.Errorf("expected NamespaceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Properties": @@ -4154,7 +4160,7 @@ func awsAwsjson11_deserializeDocumentNamespaceAlreadyExists(v **types.NamespaceA if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "Message": @@ -4163,7 +4169,7 @@ func awsAwsjson11_deserializeDocumentNamespaceAlreadyExists(v **types.NamespaceA if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "NamespaceId": @@ -4172,7 +4178,7 @@ func awsAwsjson11_deserializeDocumentNamespaceAlreadyExists(v **types.NamespaceA if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.NamespaceId = &jtv + sv.NamespaceId = ptr.String(jtv) } default: @@ -4212,7 +4218,7 @@ func awsAwsjson11_deserializeDocumentNamespaceNotFound(v **types.NamespaceNotFou if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4265,7 +4271,7 @@ func awsAwsjson11_deserializeDocumentNamespaceProperties(v **types.NamespaceProp return nil } -func awsAwsjson11_deserializeDocumentNamespaceSummariesList(v *[]*types.NamespaceSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentNamespaceSummariesList(v *[]types.NamespaceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4278,18 +4284,20 @@ func awsAwsjson11_deserializeDocumentNamespaceSummariesList(v *[]*types.Namespac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NamespaceSummary + var cv []types.NamespaceSummary if *v == nil { - cv = []*types.NamespaceSummary{} + cv = []types.NamespaceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.NamespaceSummary - if err := awsAwsjson11_deserializeDocumentNamespaceSummary(&col, value); err != nil { + var col types.NamespaceSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNamespaceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4325,7 +4333,7 @@ func awsAwsjson11_deserializeDocumentNamespaceSummary(v **types.NamespaceSummary if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreateDate": @@ -4347,7 +4355,7 @@ func awsAwsjson11_deserializeDocumentNamespaceSummary(v **types.NamespaceSummary if !ok { return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -4356,7 +4364,7 @@ func awsAwsjson11_deserializeDocumentNamespaceSummary(v **types.NamespaceSummary if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -4365,7 +4373,7 @@ func awsAwsjson11_deserializeDocumentNamespaceSummary(v **types.NamespaceSummary if !ok { return fmt.Errorf("expected NamespaceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Properties": @@ -4445,7 +4453,7 @@ func awsAwsjson11_deserializeDocumentOperation(v **types.Operation, value interf if !ok { return fmt.Errorf("expected Code to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -4454,7 +4462,7 @@ func awsAwsjson11_deserializeDocumentOperation(v **types.Operation, value interf if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "Id": @@ -4463,7 +4471,7 @@ func awsAwsjson11_deserializeDocumentOperation(v **types.Operation, value interf if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Status": @@ -4539,7 +4547,7 @@ func awsAwsjson11_deserializeDocumentOperationNotFound(v **types.OperationNotFou if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4579,7 +4587,7 @@ func awsAwsjson11_deserializeDocumentOperationSummary(v **types.OperationSummary if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Status": @@ -4600,7 +4608,7 @@ func awsAwsjson11_deserializeDocumentOperationSummary(v **types.OperationSummary return nil } -func awsAwsjson11_deserializeDocumentOperationSummaryList(v *[]*types.OperationSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentOperationSummaryList(v *[]types.OperationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4613,18 +4621,20 @@ func awsAwsjson11_deserializeDocumentOperationSummaryList(v *[]*types.OperationS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OperationSummary + var cv []types.OperationSummary if *v == nil { - cv = []*types.OperationSummary{} + cv = []types.OperationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.OperationSummary - if err := awsAwsjson11_deserializeDocumentOperationSummary(&col, value); err != nil { + var col types.OperationSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOperationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4632,7 +4642,7 @@ func awsAwsjson11_deserializeDocumentOperationSummaryList(v *[]*types.OperationS return nil } -func awsAwsjson11_deserializeDocumentOperationTargetsMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentOperationTargetsMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4645,21 +4655,21 @@ func awsAwsjson11_deserializeDocumentOperationTargetsMap(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -4696,7 +4706,7 @@ func awsAwsjson11_deserializeDocumentRequestLimitExceeded(v **types.RequestLimit if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4736,7 +4746,7 @@ func awsAwsjson11_deserializeDocumentResourceInUse(v **types.ResourceInUse, valu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4776,7 +4786,7 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceeded(v **types.ResourceLim if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4816,7 +4826,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4856,7 +4866,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreateDate": @@ -4878,7 +4888,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "Description": @@ -4887,7 +4897,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DnsConfig": @@ -4911,7 +4921,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "InstanceCount": @@ -4933,7 +4943,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NamespaceId": @@ -4942,7 +4952,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.NamespaceId = &jtv + sv.NamespaceId = ptr.String(jtv) } default: @@ -4982,7 +4992,7 @@ func awsAwsjson11_deserializeDocumentServiceAlreadyExists(v **types.ServiceAlrea if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.CreatorRequestId = &jtv + sv.CreatorRequestId = ptr.String(jtv) } case "Message": @@ -4991,7 +5001,7 @@ func awsAwsjson11_deserializeDocumentServiceAlreadyExists(v **types.ServiceAlrea if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ServiceId": @@ -5000,7 +5010,7 @@ func awsAwsjson11_deserializeDocumentServiceAlreadyExists(v **types.ServiceAlrea if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ServiceId = &jtv + sv.ServiceId = ptr.String(jtv) } default: @@ -5040,7 +5050,7 @@ func awsAwsjson11_deserializeDocumentServiceNotFound(v **types.ServiceNotFound, if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5052,7 +5062,7 @@ func awsAwsjson11_deserializeDocumentServiceNotFound(v **types.ServiceNotFound, return nil } -func awsAwsjson11_deserializeDocumentServiceSummariesList(v *[]*types.ServiceSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentServiceSummariesList(v *[]types.ServiceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5065,18 +5075,20 @@ func awsAwsjson11_deserializeDocumentServiceSummariesList(v *[]*types.ServiceSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServiceSummary + var cv []types.ServiceSummary if *v == nil { - cv = []*types.ServiceSummary{} + cv = []types.ServiceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ServiceSummary - if err := awsAwsjson11_deserializeDocumentServiceSummary(&col, value); err != nil { + var col types.ServiceSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServiceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5112,7 +5124,7 @@ func awsAwsjson11_deserializeDocumentServiceSummary(v **types.ServiceSummary, va if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreateDate": @@ -5134,7 +5146,7 @@ func awsAwsjson11_deserializeDocumentServiceSummary(v **types.ServiceSummary, va if !ok { return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DnsConfig": @@ -5158,7 +5170,7 @@ func awsAwsjson11_deserializeDocumentServiceSummary(v **types.ServiceSummary, va if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "InstanceCount": @@ -5180,7 +5192,7 @@ func awsAwsjson11_deserializeDocumentServiceSummary(v **types.ServiceSummary, va if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5220,7 +5232,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -5229,7 +5241,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -5241,7 +5253,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5254,18 +5266,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5301,7 +5315,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceName": @@ -5310,7 +5324,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } default: @@ -5350,7 +5364,7 @@ func awsAwsjson11_deserializeOpDocumentCreateHttpNamespaceOutput(v **CreateHttpN if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -5390,7 +5404,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateDnsNamespaceOutput(v **Creat if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -5430,7 +5444,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicDnsNamespaceOutput(v **Create if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -5506,7 +5520,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteNamespaceOutput(v **DeleteNamespace if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -5577,7 +5591,7 @@ func awsAwsjson11_deserializeOpDocumentDeregisterInstanceOutput(v **DeregisterIn if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -5689,7 +5703,7 @@ func awsAwsjson11_deserializeOpDocumentGetInstancesHealthStatusOutput(v **GetIns if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Status": @@ -5847,7 +5861,7 @@ func awsAwsjson11_deserializeOpDocumentListInstancesOutput(v **ListInstancesOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5892,7 +5906,7 @@ func awsAwsjson11_deserializeOpDocumentListNamespacesOutput(v **ListNamespacesOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5932,7 +5946,7 @@ func awsAwsjson11_deserializeOpDocumentListOperationsOutput(v **ListOperationsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Operations": @@ -5977,7 +5991,7 @@ func awsAwsjson11_deserializeOpDocumentListServicesOutput(v **ListServicesOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Services": @@ -6058,7 +6072,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterInstanceOutput(v **RegisterInstan if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: @@ -6191,7 +6205,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateServiceOutput(v **UpdateServiceOutp if !ok { return fmt.Errorf("expected OperationId to be of type string, got %T instead", value) } - sv.OperationId = &jtv + sv.OperationId = ptr.String(jtv) } default: diff --git a/service/servicediscovery/go.mod b/service/servicediscovery/go.mod index d0eb29464a4..42b96d6fb74 100644 --- a/service/servicediscovery/go.mod +++ b/service/servicediscovery/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/servicediscovery go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/servicediscovery/serializers.go b/service/servicediscovery/serializers.go index b396f5754d7..000c314bddb 100644 --- a/service/servicediscovery/serializers.go +++ b/service/servicediscovery/serializers.go @@ -1071,17 +1071,13 @@ func (m *awsAwsjson11_serializeOpUpdateService) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAttributes(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttributes(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1141,34 +1137,26 @@ func awsAwsjson11_serializeDocumentDnsRecord(v *types.DnsRecord, value smithyjso return nil } -func awsAwsjson11_serializeDocumentDnsRecordList(v []*types.DnsRecord, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDnsRecordList(v []types.DnsRecord, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDnsRecord(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDnsRecord(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1207,17 +1195,13 @@ func awsAwsjson11_serializeDocumentHealthCheckCustomConfig(v *types.HealthCheckC return nil } -func awsAwsjson11_serializeDocumentInstanceIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1246,17 +1230,13 @@ func awsAwsjson11_serializeDocumentNamespaceFilter(v *types.NamespaceFilter, val return nil } -func awsAwsjson11_serializeDocumentNamespaceFilters(v []*types.NamespaceFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentNamespaceFilters(v []types.NamespaceFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentNamespaceFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentNamespaceFilter(&v[i], av); err != nil { return err } } @@ -1287,17 +1267,13 @@ func awsAwsjson11_serializeDocumentOperationFilter(v *types.OperationFilter, val return nil } -func awsAwsjson11_serializeDocumentOperationFilters(v []*types.OperationFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOperationFilters(v []types.OperationFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOperationFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentOperationFilter(&v[i], av); err != nil { return err } } @@ -1354,17 +1330,13 @@ func awsAwsjson11_serializeDocumentServiceFilter(v *types.ServiceFilter, value s return nil } -func awsAwsjson11_serializeDocumentServiceFilters(v []*types.ServiceFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServiceFilters(v []types.ServiceFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentServiceFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentServiceFilter(&v[i], av); err != nil { return err } } @@ -1388,32 +1360,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/servicediscovery/types/types.go b/service/servicediscovery/types/types.go index 98afb010f51..aa409dc189d 100644 --- a/service/servicediscovery/types/types.go +++ b/service/servicediscovery/types/types.go @@ -14,7 +14,7 @@ type DnsConfig struct { // you want AWS Cloud Map to create when you register an instance. // // This member is required. - DnsRecords []*DnsRecord + DnsRecords []DnsRecord // The ID of the namespace to use for DNS configuration. NamespaceId *string @@ -59,7 +59,7 @@ type DnsConfigChange struct { // want AWS Cloud Map to create when you register an instance. // // This member is required. - DnsRecords []*DnsRecord + DnsRecords []DnsRecord } // A complex type that contains the ID for the Route 53 hosted zone that AWS Cloud @@ -330,7 +330,7 @@ type HttpInstanceSummary struct { // If you included any attributes when you registered the instance, the values of // those attributes. - Attributes map[string]*string + Attributes map[string]string // If you configured health checking in the service, the current health status of // the service instance. @@ -439,7 +439,7 @@ type Instance struct { // want Route 53 to send requests to. This value is required if you specified // settings for an SRV record or a Route 53 health check when you created the // service. - Attributes map[string]*string + Attributes map[string]string // A unique string that identifies the request and that allows failed // RegisterInstance requests to be retried without the risk of executing the @@ -489,7 +489,7 @@ type InstanceSummary struct { // record, the value that Route 53 returns for the port. In addition, if the // service includes HealthCheckConfig, the port on the endpoint that Route 53 sends // requests to. - Attributes map[string]*string + Attributes map[string]string // The ID for an instance that you created by using a specified service. Id *string @@ -556,7 +556,7 @@ type NamespaceFilter struct { // you specify IN for Condition, you can specify DNS_PUBLIC, DNS_PRIVATE, or both. // // This member is required. - Values []*string + Values []string // The operator that you want to use to determine whether ListNamespaces returns a // namespace. Valid values for condition include: @@ -674,7 +674,7 @@ type Operation struct { // // * INSTANCE: The instance // ID is returned in the ResourceId property. - Targets map[string]*string + Targets map[string]string // The name of the operation that is associated with the specified ID. Type OperationType @@ -728,7 +728,7 @@ type OperationFilter struct { // Coordinated Universal Time (UTC). The start date must be the first value. // // This member is required. - Values []*string + Values []string // The operator that you want to use to determine whether an operation matches the // specified value. Valid values for condition include: @@ -893,7 +893,7 @@ type ServiceFilter struct { // filter the list of services. // // This member is required. - Values []*string + Values []string // The operator that you want to use to determine whether a service is returned by // ListServices. Valid values for Condition include the following: diff --git a/service/servicediscovery/validators.go b/service/servicediscovery/validators.go index bf0d342cc3a..a3875b722e3 100644 --- a/service/servicediscovery/validators.go +++ b/service/servicediscovery/validators.go @@ -618,13 +618,13 @@ func validateDnsRecord(v *types.DnsRecord) error { } } -func validateDnsRecordList(v []*types.DnsRecord) error { +func validateDnsRecordList(v []types.DnsRecord) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DnsRecordList"} for i := range v { - if err := validateDnsRecord(v[i]); err != nil { + if err := validateDnsRecord(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -668,13 +668,13 @@ func validateNamespaceFilter(v *types.NamespaceFilter) error { } } -func validateNamespaceFilters(v []*types.NamespaceFilter) error { +func validateNamespaceFilters(v []types.NamespaceFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "NamespaceFilters"} for i := range v { - if err := validateNamespaceFilter(v[i]); err != nil { + if err := validateNamespaceFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -703,13 +703,13 @@ func validateOperationFilter(v *types.OperationFilter) error { } } -func validateOperationFilters(v []*types.OperationFilter) error { +func validateOperationFilters(v []types.OperationFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OperationFilters"} for i := range v { - if err := validateOperationFilter(v[i]); err != nil { + if err := validateOperationFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -760,13 +760,13 @@ func validateServiceFilter(v *types.ServiceFilter) error { } } -func validateServiceFilters(v []*types.ServiceFilter) error { +func validateServiceFilters(v []types.ServiceFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ServiceFilters"} for i := range v { - if err := validateServiceFilter(v[i]); err != nil { + if err := validateServiceFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -795,13 +795,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/servicequotas/api_op_ListAWSDefaultServiceQuotas.go b/service/servicequotas/api_op_ListAWSDefaultServiceQuotas.go index 428aac64842..5a81c4b5f76 100644 --- a/service/servicequotas/api_op_ListAWSDefaultServiceQuotas.go +++ b/service/servicequotas/api_op_ListAWSDefaultServiceQuotas.go @@ -73,7 +73,7 @@ type ListAWSDefaultServiceQuotasOutput struct { NextToken *string // A list of the quotas in the account with the AWS default values. - Quotas []*types.ServiceQuota + Quotas []types.ServiceQuota // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicequotas/api_op_ListRequestedServiceQuotaChangeHistory.go b/service/servicequotas/api_op_ListRequestedServiceQuotaChangeHistory.go index 0f937c9f31c..97716290493 100644 --- a/service/servicequotas/api_op_ListRequestedServiceQuotaChangeHistory.go +++ b/service/servicequotas/api_op_ListRequestedServiceQuotaChangeHistory.go @@ -63,7 +63,7 @@ type ListRequestedServiceQuotaChangeHistoryOutput struct { NextToken *string // Returns a list of service quota requests. - RequestedQuotas []*types.RequestedServiceQuotaChange + RequestedQuotas []types.RequestedServiceQuotaChange // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicequotas/api_op_ListRequestedServiceQuotaChangeHistoryByQuota.go b/service/servicequotas/api_op_ListRequestedServiceQuotaChangeHistoryByQuota.go index 73a302251ad..7d11f4fab33 100644 --- a/service/servicequotas/api_op_ListRequestedServiceQuotaChangeHistoryByQuota.go +++ b/service/servicequotas/api_op_ListRequestedServiceQuotaChangeHistoryByQuota.go @@ -73,7 +73,7 @@ type ListRequestedServiceQuotaChangeHistoryByQuotaOutput struct { NextToken *string // Returns a list of service quota requests. - RequestedQuotas []*types.RequestedServiceQuotaChange + RequestedQuotas []types.RequestedServiceQuotaChange // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicequotas/api_op_ListServiceQuotaIncreaseRequestsInTemplate.go b/service/servicequotas/api_op_ListServiceQuotaIncreaseRequestsInTemplate.go index 8b16de5b23d..41446ffa162 100644 --- a/service/servicequotas/api_op_ListServiceQuotaIncreaseRequestsInTemplate.go +++ b/service/servicequotas/api_op_ListServiceQuotaIncreaseRequestsInTemplate.go @@ -64,7 +64,7 @@ type ListServiceQuotaIncreaseRequestsInTemplateOutput struct { NextToken *string // Returns the list of values of the quota increase request in the template. - ServiceQuotaIncreaseRequestInTemplateList []*types.ServiceQuotaIncreaseRequestInTemplate + ServiceQuotaIncreaseRequestInTemplateList []types.ServiceQuotaIncreaseRequestInTemplate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicequotas/api_op_ListServiceQuotas.go b/service/servicequotas/api_op_ListServiceQuotas.go index c57c234eda7..2887ff87d7b 100644 --- a/service/servicequotas/api_op_ListServiceQuotas.go +++ b/service/servicequotas/api_op_ListServiceQuotas.go @@ -71,7 +71,7 @@ type ListServiceQuotasOutput struct { // The response information for a quota lists all attribute information for the // quota. - Quotas []*types.ServiceQuota + Quotas []types.ServiceQuota // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicequotas/api_op_ListServices.go b/service/servicequotas/api_op_ListServices.go index b4dc1de1ac9..28c0055bb24 100644 --- a/service/servicequotas/api_op_ListServices.go +++ b/service/servicequotas/api_op_ListServices.go @@ -59,7 +59,7 @@ type ListServicesOutput struct { NextToken *string // Returns a list of services. - Services []*types.ServiceInfo + Services []types.ServiceInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/servicequotas/deserializers.go b/service/servicequotas/deserializers.go index 1988ca16d30..115dc550657 100644 --- a/service/servicequotas/deserializers.go +++ b/service/servicequotas/deserializers.go @@ -2639,7 +2639,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2679,7 +2679,7 @@ func awsAwsjson11_deserializeDocumentAWSServiceAccessNotEnabledException(v **typ if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2719,7 +2719,7 @@ func awsAwsjson11_deserializeDocumentDependencyAccessDeniedException(v **types.D if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2768,7 +2768,7 @@ func awsAwsjson11_deserializeDocumentErrorReason(v **types.ErrorReason, value in if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } default: @@ -2808,7 +2808,7 @@ func awsAwsjson11_deserializeDocumentIllegalArgumentException(v **types.IllegalA if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2848,7 +2848,7 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationTokenException(v **types.I if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2888,7 +2888,7 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateException(v **types.Inv if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2900,7 +2900,7 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateException(v **types.Inv return nil } -func awsAwsjson11_deserializeDocumentMetricDimensionsMapDefinition(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentMetricDimensionsMapDefinition(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2913,21 +2913,21 @@ func awsAwsjson11_deserializeDocumentMetricDimensionsMapDefinition(v *map[string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected MetricDimensionValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -2969,7 +2969,7 @@ func awsAwsjson11_deserializeDocumentMetricInfo(v **types.MetricInfo, value inte if !ok { return fmt.Errorf("expected QuotaMetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "MetricNamespace": @@ -2978,7 +2978,7 @@ func awsAwsjson11_deserializeDocumentMetricInfo(v **types.MetricInfo, value inte if !ok { return fmt.Errorf("expected QuotaMetricNamespace to be of type string, got %T instead", value) } - sv.MetricNamespace = &jtv + sv.MetricNamespace = ptr.String(jtv) } case "MetricStatisticRecommendation": @@ -2987,7 +2987,7 @@ func awsAwsjson11_deserializeDocumentMetricInfo(v **types.MetricInfo, value inte if !ok { return fmt.Errorf("expected Statistic to be of type string, got %T instead", value) } - sv.MetricStatisticRecommendation = &jtv + sv.MetricStatisticRecommendation = ptr.String(jtv) } default: @@ -3027,7 +3027,7 @@ func awsAwsjson11_deserializeDocumentNoAvailableOrganizationException(v **types. if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3067,7 +3067,7 @@ func awsAwsjson11_deserializeDocumentNoSuchResourceException(v **types.NoSuchRes if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3107,7 +3107,7 @@ func awsAwsjson11_deserializeDocumentOrganizationNotInAllFeaturesModeException(v if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3147,7 +3147,7 @@ func awsAwsjson11_deserializeDocumentQuotaExceededException(v **types.QuotaExcee if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3240,7 +3240,7 @@ func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(v **types.Reque if !ok { return fmt.Errorf("expected CustomerServiceEngagementId to be of type string, got %T instead", value) } - sv.CaseId = &jtv + sv.CaseId = ptr.String(jtv) } case "Created": @@ -3266,7 +3266,7 @@ func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(v **types.Reque if err != nil { return err } - sv.DesiredValue = &f64 + sv.DesiredValue = ptr.Float64(f64) } case "GlobalQuota": @@ -3275,7 +3275,7 @@ func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(v **types.Reque if !ok { return fmt.Errorf("expected GlobalQuota to be of type *bool, got %T instead", value) } - sv.GlobalQuota = &jtv + sv.GlobalQuota = jtv } case "Id": @@ -3284,7 +3284,7 @@ func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(v **types.Reque if !ok { return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LastUpdated": @@ -3306,7 +3306,7 @@ func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(v **types.Reque if !ok { return fmt.Errorf("expected QuotaArn to be of type string, got %T instead", value) } - sv.QuotaArn = &jtv + sv.QuotaArn = ptr.String(jtv) } case "QuotaCode": @@ -3315,7 +3315,7 @@ func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(v **types.Reque if !ok { return fmt.Errorf("expected QuotaCode to be of type string, got %T instead", value) } - sv.QuotaCode = &jtv + sv.QuotaCode = ptr.String(jtv) } case "QuotaName": @@ -3324,7 +3324,7 @@ func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(v **types.Reque if !ok { return fmt.Errorf("expected QuotaName to be of type string, got %T instead", value) } - sv.QuotaName = &jtv + sv.QuotaName = ptr.String(jtv) } case "Requester": @@ -3333,7 +3333,7 @@ func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(v **types.Reque if !ok { return fmt.Errorf("expected Requester to be of type string, got %T instead", value) } - sv.Requester = &jtv + sv.Requester = ptr.String(jtv) } case "ServiceCode": @@ -3342,7 +3342,7 @@ func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(v **types.Reque if !ok { return fmt.Errorf("expected ServiceCode to be of type string, got %T instead", value) } - sv.ServiceCode = &jtv + sv.ServiceCode = ptr.String(jtv) } case "ServiceName": @@ -3351,7 +3351,7 @@ func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(v **types.Reque if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } case "Status": @@ -3369,7 +3369,7 @@ func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(v **types.Reque if !ok { return fmt.Errorf("expected QuotaUnit to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } default: @@ -3381,7 +3381,7 @@ func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(v **types.Reque return nil } -func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChangeHistoryListDefinition(v *[]*types.RequestedServiceQuotaChange, value interface{}) error { +func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChangeHistoryListDefinition(v *[]types.RequestedServiceQuotaChange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3394,18 +3394,20 @@ func awsAwsjson11_deserializeDocumentRequestedServiceQuotaChangeHistoryListDefin return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RequestedServiceQuotaChange + var cv []types.RequestedServiceQuotaChange if *v == nil { - cv = []*types.RequestedServiceQuotaChange{} + cv = []types.RequestedServiceQuotaChange{} } else { cv = *v } for _, value := range shape { - var col *types.RequestedServiceQuotaChange - if err := awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(&col, value); err != nil { + var col types.RequestedServiceQuotaChange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRequestedServiceQuotaChange(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3441,7 +3443,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3481,7 +3483,7 @@ func awsAwsjson11_deserializeDocumentServiceException(v **types.ServiceException if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3521,7 +3523,7 @@ func awsAwsjson11_deserializeDocumentServiceInfo(v **types.ServiceInfo, value in if !ok { return fmt.Errorf("expected ServiceCode to be of type string, got %T instead", value) } - sv.ServiceCode = &jtv + sv.ServiceCode = ptr.String(jtv) } case "ServiceName": @@ -3530,7 +3532,7 @@ func awsAwsjson11_deserializeDocumentServiceInfo(v **types.ServiceInfo, value in if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } default: @@ -3542,7 +3544,7 @@ func awsAwsjson11_deserializeDocumentServiceInfo(v **types.ServiceInfo, value in return nil } -func awsAwsjson11_deserializeDocumentServiceInfoListDefinition(v *[]*types.ServiceInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentServiceInfoListDefinition(v *[]types.ServiceInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3555,18 +3557,20 @@ func awsAwsjson11_deserializeDocumentServiceInfoListDefinition(v *[]*types.Servi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServiceInfo + var cv []types.ServiceInfo if *v == nil { - cv = []*types.ServiceInfo{} + cv = []types.ServiceInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ServiceInfo - if err := awsAwsjson11_deserializeDocumentServiceInfo(&col, value); err != nil { + var col types.ServiceInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServiceInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3602,7 +3606,7 @@ func awsAwsjson11_deserializeDocumentServiceQuota(v **types.ServiceQuota, value if !ok { return fmt.Errorf("expected QuotaAdjustable to be of type *bool, got %T instead", value) } - sv.Adjustable = &jtv + sv.Adjustable = jtv } case "ErrorReason": @@ -3616,7 +3620,7 @@ func awsAwsjson11_deserializeDocumentServiceQuota(v **types.ServiceQuota, value if !ok { return fmt.Errorf("expected GlobalQuota to be of type *bool, got %T instead", value) } - sv.GlobalQuota = &jtv + sv.GlobalQuota = jtv } case "Period": @@ -3630,7 +3634,7 @@ func awsAwsjson11_deserializeDocumentServiceQuota(v **types.ServiceQuota, value if !ok { return fmt.Errorf("expected QuotaArn to be of type string, got %T instead", value) } - sv.QuotaArn = &jtv + sv.QuotaArn = ptr.String(jtv) } case "QuotaCode": @@ -3639,7 +3643,7 @@ func awsAwsjson11_deserializeDocumentServiceQuota(v **types.ServiceQuota, value if !ok { return fmt.Errorf("expected QuotaCode to be of type string, got %T instead", value) } - sv.QuotaCode = &jtv + sv.QuotaCode = ptr.String(jtv) } case "QuotaName": @@ -3648,7 +3652,7 @@ func awsAwsjson11_deserializeDocumentServiceQuota(v **types.ServiceQuota, value if !ok { return fmt.Errorf("expected QuotaName to be of type string, got %T instead", value) } - sv.QuotaName = &jtv + sv.QuotaName = ptr.String(jtv) } case "ServiceCode": @@ -3657,7 +3661,7 @@ func awsAwsjson11_deserializeDocumentServiceQuota(v **types.ServiceQuota, value if !ok { return fmt.Errorf("expected ServiceCode to be of type string, got %T instead", value) } - sv.ServiceCode = &jtv + sv.ServiceCode = ptr.String(jtv) } case "ServiceName": @@ -3666,7 +3670,7 @@ func awsAwsjson11_deserializeDocumentServiceQuota(v **types.ServiceQuota, value if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } case "Unit": @@ -3675,7 +3679,7 @@ func awsAwsjson11_deserializeDocumentServiceQuota(v **types.ServiceQuota, value if !ok { return fmt.Errorf("expected QuotaUnit to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } case "UsageMetric": @@ -3693,7 +3697,7 @@ func awsAwsjson11_deserializeDocumentServiceQuota(v **types.ServiceQuota, value if err != nil { return err } - sv.Value = &f64 + sv.Value = ptr.Float64(f64) } default: @@ -3733,7 +3737,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplate(v **t if !ok { return fmt.Errorf("expected AwsRegion to be of type string, got %T instead", value) } - sv.AwsRegion = &jtv + sv.AwsRegion = ptr.String(jtv) } case "DesiredValue": @@ -3746,7 +3750,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplate(v **t if err != nil { return err } - sv.DesiredValue = &f64 + sv.DesiredValue = ptr.Float64(f64) } case "GlobalQuota": @@ -3755,7 +3759,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplate(v **t if !ok { return fmt.Errorf("expected GlobalQuota to be of type *bool, got %T instead", value) } - sv.GlobalQuota = &jtv + sv.GlobalQuota = jtv } case "QuotaCode": @@ -3764,7 +3768,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplate(v **t if !ok { return fmt.Errorf("expected QuotaCode to be of type string, got %T instead", value) } - sv.QuotaCode = &jtv + sv.QuotaCode = ptr.String(jtv) } case "QuotaName": @@ -3773,7 +3777,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplate(v **t if !ok { return fmt.Errorf("expected QuotaName to be of type string, got %T instead", value) } - sv.QuotaName = &jtv + sv.QuotaName = ptr.String(jtv) } case "ServiceCode": @@ -3782,7 +3786,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplate(v **t if !ok { return fmt.Errorf("expected ServiceCode to be of type string, got %T instead", value) } - sv.ServiceCode = &jtv + sv.ServiceCode = ptr.String(jtv) } case "ServiceName": @@ -3791,7 +3795,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplate(v **t if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } case "Unit": @@ -3800,7 +3804,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplate(v **t if !ok { return fmt.Errorf("expected QuotaUnit to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } default: @@ -3812,7 +3816,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplate(v **t return nil } -func awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplateList(v *[]*types.ServiceQuotaIncreaseRequestInTemplate, value interface{}) error { +func awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplateList(v *[]types.ServiceQuotaIncreaseRequestInTemplate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3825,18 +3829,20 @@ func awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplateList(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServiceQuotaIncreaseRequestInTemplate + var cv []types.ServiceQuotaIncreaseRequestInTemplate if *v == nil { - cv = []*types.ServiceQuotaIncreaseRequestInTemplate{} + cv = []types.ServiceQuotaIncreaseRequestInTemplate{} } else { cv = *v } for _, value := range shape { - var col *types.ServiceQuotaIncreaseRequestInTemplate - if err := awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplate(&col, value); err != nil { + var col types.ServiceQuotaIncreaseRequestInTemplate + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3844,7 +3850,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaIncreaseRequestInTemplateList(v return nil } -func awsAwsjson11_deserializeDocumentServiceQuotaListDefinition(v *[]*types.ServiceQuota, value interface{}) error { +func awsAwsjson11_deserializeDocumentServiceQuotaListDefinition(v *[]types.ServiceQuota, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3857,18 +3863,20 @@ func awsAwsjson11_deserializeDocumentServiceQuotaListDefinition(v *[]*types.Serv return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServiceQuota + var cv []types.ServiceQuota if *v == nil { - cv = []*types.ServiceQuota{} + cv = []types.ServiceQuota{} } else { cv = *v } for _, value := range shape { - var col *types.ServiceQuota - if err := awsAwsjson11_deserializeDocumentServiceQuota(&col, value); err != nil { + var col types.ServiceQuota + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServiceQuota(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3904,7 +3912,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaTemplateNotInUseException(v **t if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3944,7 +3952,7 @@ func awsAwsjson11_deserializeDocumentTemplatesNotAvailableInRegionException(v ** if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3984,7 +3992,7 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4301,7 +4309,7 @@ func awsAwsjson11_deserializeOpDocumentListAWSDefaultServiceQuotasOutput(v **Lis if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Quotas": @@ -4346,7 +4354,7 @@ func awsAwsjson11_deserializeOpDocumentListRequestedServiceQuotaChangeHistoryByQ if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestedQuotas": @@ -4391,7 +4399,7 @@ func awsAwsjson11_deserializeOpDocumentListRequestedServiceQuotaChangeHistoryOut if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RequestedQuotas": @@ -4436,7 +4444,7 @@ func awsAwsjson11_deserializeOpDocumentListServiceQuotaIncreaseRequestsInTemplat if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ServiceQuotaIncreaseRequestInTemplateList": @@ -4481,7 +4489,7 @@ func awsAwsjson11_deserializeOpDocumentListServiceQuotasOutput(v **ListServiceQu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Quotas": @@ -4526,7 +4534,7 @@ func awsAwsjson11_deserializeOpDocumentListServicesOutput(v **ListServicesOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Services": diff --git a/service/servicequotas/go.mod b/service/servicequotas/go.mod index c6a575b2a1b..a5be7962897 100644 --- a/service/servicequotas/go.mod +++ b/service/servicequotas/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/servicequotas go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/servicequotas/types/types.go b/service/servicequotas/types/types.go index 3740c060181..9cb0b9d59f9 100644 --- a/service/servicequotas/types/types.go +++ b/service/servicequotas/types/types.go @@ -31,7 +31,7 @@ type MetricInfo struct { // dimensions as categories for those characteristics. These dimensions are part of // the CloudWatch Metric Identity that measures usage against a particular service // quota. - MetricDimensions map[string]*string + MetricDimensions map[string]string // The name of the CloudWatch metric that measures usage of a service quota. This // is a required field. @@ -71,7 +71,7 @@ type RequestedServiceQuotaChange struct { DesiredValue *float64 // Identifies if the quota is global. - GlobalQuota *bool + GlobalQuota bool // The unique identifier of a requested service quota change. Id *string @@ -121,13 +121,13 @@ type ServiceInfo struct { type ServiceQuota struct { // Specifies if the quota value can be increased. - Adjustable *bool + Adjustable bool // Specifies the ErrorCode and ErrorMessage when success isn't achieved. ErrorReason *ErrorReason // Specifies if the quota is global. - GlobalQuota *bool + GlobalQuota bool // Identifies the unit and value of how time is measured. Period *QuotaPeriod @@ -168,7 +168,7 @@ type ServiceQuotaIncreaseRequestInTemplate struct { DesiredValue *float64 // Specifies if the quota is a global quota. - GlobalQuota *bool + GlobalQuota bool // The code identifier for the service quota specified in the increase request. QuotaCode *string diff --git a/service/ses/api_op_DescribeActiveReceiptRuleSet.go b/service/ses/api_op_DescribeActiveReceiptRuleSet.go index 5caa47ff69d..f38d02ab553 100644 --- a/service/ses/api_op_DescribeActiveReceiptRuleSet.go +++ b/service/ses/api_op_DescribeActiveReceiptRuleSet.go @@ -47,7 +47,7 @@ type DescribeActiveReceiptRuleSetOutput struct { Metadata *types.ReceiptRuleSetMetadata // The receipt rules that belong to the active rule set. - Rules []*types.ReceiptRule + Rules []types.ReceiptRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_DescribeConfigurationSet.go b/service/ses/api_op_DescribeConfigurationSet.go index dbef7f12df3..3f0fdfbd477 100644 --- a/service/ses/api_op_DescribeConfigurationSet.go +++ b/service/ses/api_op_DescribeConfigurationSet.go @@ -59,7 +59,7 @@ type DescribeConfigurationSetOutput struct { DeliveryOptions *types.DeliveryOptions // A list of event destinations associated with the configuration set. - EventDestinations []*types.EventDestination + EventDestinations []types.EventDestination // An object that represents the reputation settings for the configuration set. ReputationOptions *types.ReputationOptions diff --git a/service/ses/api_op_DescribeReceiptRuleSet.go b/service/ses/api_op_DescribeReceiptRuleSet.go index 4f9c0b1e3ab..cc5607c5aeb 100644 --- a/service/ses/api_op_DescribeReceiptRuleSet.go +++ b/service/ses/api_op_DescribeReceiptRuleSet.go @@ -50,7 +50,7 @@ type DescribeReceiptRuleSetOutput struct { Metadata *types.ReceiptRuleSetMetadata // A list of the receipt rules that belong to the specified receipt rule set. - Rules []*types.ReceiptRule + Rules []types.ReceiptRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_GetAccountSendingEnabled.go b/service/ses/api_op_GetAccountSendingEnabled.go index 6dafbafacd7..bfe2f04fa2d 100644 --- a/service/ses/api_op_GetAccountSendingEnabled.go +++ b/service/ses/api_op_GetAccountSendingEnabled.go @@ -36,7 +36,7 @@ type GetAccountSendingEnabledOutput struct { // Describes whether email sending is enabled or disabled for your Amazon SES // account in the current AWS Region. - Enabled *bool + Enabled bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_GetIdentityDkimAttributes.go b/service/ses/api_op_GetIdentityDkimAttributes.go index 9449d468545..b65dd85ef4c 100644 --- a/service/ses/api_op_GetIdentityDkimAttributes.go +++ b/service/ses/api_op_GetIdentityDkimAttributes.go @@ -59,7 +59,7 @@ type GetIdentityDkimAttributesInput struct { // A list of one or more verified identities - email addresses, domains, or both. // // This member is required. - Identities []*string + Identities []string } // Represents the status of Amazon SES Easy DKIM signing for an identity. For @@ -71,7 +71,7 @@ type GetIdentityDkimAttributesOutput struct { // The DKIM attributes for an email address or a domain. // // This member is required. - DkimAttributes map[string]*types.IdentityDkimAttributes + DkimAttributes map[string]types.IdentityDkimAttributes // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_GetIdentityMailFromDomainAttributes.go b/service/ses/api_op_GetIdentityMailFromDomainAttributes.go index 83da1ff2cfa..09d1a17ad17 100644 --- a/service/ses/api_op_GetIdentityMailFromDomainAttributes.go +++ b/service/ses/api_op_GetIdentityMailFromDomainAttributes.go @@ -38,7 +38,7 @@ type GetIdentityMailFromDomainAttributesInput struct { // A list of one or more identities. // // This member is required. - Identities []*string + Identities []string } // Represents the custom MAIL FROM attributes for a list of identities. @@ -47,7 +47,7 @@ type GetIdentityMailFromDomainAttributesOutput struct { // A map of identities to custom MAIL FROM attributes. // // This member is required. - MailFromDomainAttributes map[string]*types.IdentityMailFromDomainAttributes + MailFromDomainAttributes map[string]types.IdentityMailFromDomainAttributes // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_GetIdentityNotificationAttributes.go b/service/ses/api_op_GetIdentityNotificationAttributes.go index 433c80a52f4..37950992126 100644 --- a/service/ses/api_op_GetIdentityNotificationAttributes.go +++ b/service/ses/api_op_GetIdentityNotificationAttributes.go @@ -43,7 +43,7 @@ type GetIdentityNotificationAttributesInput struct { // example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. // // This member is required. - Identities []*string + Identities []string } // Represents the notification attributes for a list of identities. @@ -52,7 +52,7 @@ type GetIdentityNotificationAttributesOutput struct { // A map of Identity to IdentityNotificationAttributes. // // This member is required. - NotificationAttributes map[string]*types.IdentityNotificationAttributes + NotificationAttributes map[string]types.IdentityNotificationAttributes // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_GetIdentityPolicies.go b/service/ses/api_op_GetIdentityPolicies.go index b6fd827d9f2..2878e5d8fde 100644 --- a/service/ses/api_op_GetIdentityPolicies.go +++ b/service/ses/api_op_GetIdentityPolicies.go @@ -55,7 +55,7 @@ type GetIdentityPoliciesInput struct { // attached to the identity, you can use ListIdentityPolicies. // // This member is required. - PolicyNames []*string + PolicyNames []string } // Represents the requested sending authorization policies. @@ -64,7 +64,7 @@ type GetIdentityPoliciesOutput struct { // A map of policy names to policies. // // This member is required. - Policies map[string]*string + Policies map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_GetIdentityVerificationAttributes.go b/service/ses/api_op_GetIdentityVerificationAttributes.go index 5940d5f4eb4..7d0ea76964b 100644 --- a/service/ses/api_op_GetIdentityVerificationAttributes.go +++ b/service/ses/api_op_GetIdentityVerificationAttributes.go @@ -53,7 +53,7 @@ type GetIdentityVerificationAttributesInput struct { // A list of identities. // // This member is required. - Identities []*string + Identities []string } // The Amazon SES verification status of a list of identities. For domain @@ -63,7 +63,7 @@ type GetIdentityVerificationAttributesOutput struct { // A map of Identities to IdentityVerificationAttributes objects. // // This member is required. - VerificationAttributes map[string]*types.IdentityVerificationAttributes + VerificationAttributes map[string]types.IdentityVerificationAttributes // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_GetSendQuota.go b/service/ses/api_op_GetSendQuota.go index a022b364dfe..5b943262549 100644 --- a/service/ses/api_op_GetSendQuota.go +++ b/service/ses/api_op_GetSendQuota.go @@ -36,15 +36,15 @@ type GetSendQuotaOutput struct { // The maximum number of emails the user is allowed to send in a 24-hour interval. // A value of -1 signifies an unlimited quota. - Max24HourSend *float64 + Max24HourSend float64 // The maximum number of emails that Amazon SES can accept from the user's account // per second. The rate at which Amazon SES accepts the user's messages might be // less than the maximum send rate. - MaxSendRate *float64 + MaxSendRate float64 // The number of emails sent during the previous 24 hours. - SentLast24Hours *float64 + SentLast24Hours float64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_GetSendStatistics.go b/service/ses/api_op_GetSendStatistics.go index 9253df87aed..28f4295f695 100644 --- a/service/ses/api_op_GetSendStatistics.go +++ b/service/ses/api_op_GetSendStatistics.go @@ -38,7 +38,7 @@ type GetSendStatisticsInput struct { type GetSendStatisticsOutput struct { // A list of data points, each of which represents 15 minutes of activity. - SendDataPoints []*types.SendDataPoint + SendDataPoints []types.SendDataPoint // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_ListConfigurationSets.go b/service/ses/api_op_ListConfigurationSets.go index 6e4137180a2..6435d3f274c 100644 --- a/service/ses/api_op_ListConfigurationSets.go +++ b/service/ses/api_op_ListConfigurationSets.go @@ -57,7 +57,7 @@ type ListConfigurationSetsInput struct { type ListConfigurationSetsOutput struct { // A list of configuration sets. - ConfigurationSets []*types.ConfigurationSet + ConfigurationSets []types.ConfigurationSet // A token indicating that there are additional configuration sets available to be // listed. Pass this token to successive calls of ListConfigurationSets. diff --git a/service/ses/api_op_ListCustomVerificationEmailTemplates.go b/service/ses/api_op_ListCustomVerificationEmailTemplates.go index f080afd28ef..769a9a38908 100644 --- a/service/ses/api_op_ListCustomVerificationEmailTemplates.go +++ b/service/ses/api_op_ListCustomVerificationEmailTemplates.go @@ -54,7 +54,7 @@ type ListCustomVerificationEmailTemplatesInput struct { type ListCustomVerificationEmailTemplatesOutput struct { // A list of the custom verification email templates that exist in your account. - CustomVerificationEmailTemplates []*types.CustomVerificationEmailTemplate + CustomVerificationEmailTemplates []types.CustomVerificationEmailTemplate // A token indicating that there are additional custom verification email templates // available to be listed. Pass this token to a subsequent call to ListTemplates to diff --git a/service/ses/api_op_ListIdentities.go b/service/ses/api_op_ListIdentities.go index 39e6377b242..355c0173a4a 100644 --- a/service/ses/api_op_ListIdentities.go +++ b/service/ses/api_op_ListIdentities.go @@ -52,7 +52,7 @@ type ListIdentitiesOutput struct { // A list of identities. // // This member is required. - Identities []*string + Identities []string // The token used for pagination. NextToken *string diff --git a/service/ses/api_op_ListIdentityPolicies.go b/service/ses/api_op_ListIdentityPolicies.go index 449d409411b..545dd1956b0 100644 --- a/service/ses/api_op_ListIdentityPolicies.go +++ b/service/ses/api_op_ListIdentityPolicies.go @@ -57,7 +57,7 @@ type ListIdentityPoliciesOutput struct { // A list of names of policies that apply to the specified identity. // // This member is required. - PolicyNames []*string + PolicyNames []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_ListReceiptFilters.go b/service/ses/api_op_ListReceiptFilters.go index a5f3f8b84f0..8e8a43a5e07 100644 --- a/service/ses/api_op_ListReceiptFilters.go +++ b/service/ses/api_op_ListReceiptFilters.go @@ -43,7 +43,7 @@ type ListReceiptFiltersOutput struct { // A list of IP address filter data structures, which each consist of a name, an IP // address range, and whether to allow or block mail from it. - Filters []*types.ReceiptFilter + Filters []types.ReceiptFilter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_ListReceiptRuleSets.go b/service/ses/api_op_ListReceiptRuleSets.go index 14b3b909fd5..560c8075552 100644 --- a/service/ses/api_op_ListReceiptRuleSets.go +++ b/service/ses/api_op_ListReceiptRuleSets.go @@ -54,7 +54,7 @@ type ListReceiptRuleSetsOutput struct { // The metadata for the currently active receipt rule set. The metadata consists of // the rule set name and the timestamp of when the rule set was created. - RuleSets []*types.ReceiptRuleSetMetadata + RuleSets []types.ReceiptRuleSetMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_ListTemplates.go b/service/ses/api_op_ListTemplates.go index ca4cd0327c1..55db368897c 100644 --- a/service/ses/api_op_ListTemplates.go +++ b/service/ses/api_op_ListTemplates.go @@ -50,7 +50,7 @@ type ListTemplatesOutput struct { // An array the contains the name and creation time stamp for each template in your // Amazon SES account. - TemplatesMetadata []*types.TemplateMetadata + TemplatesMetadata []types.TemplateMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_ListVerifiedEmailAddresses.go b/service/ses/api_op_ListVerifiedEmailAddresses.go index 4ce8f9ae137..d464270502b 100644 --- a/service/ses/api_op_ListVerifiedEmailAddresses.go +++ b/service/ses/api_op_ListVerifiedEmailAddresses.go @@ -35,7 +35,7 @@ type ListVerifiedEmailAddressesInput struct { type ListVerifiedEmailAddressesOutput struct { // A list of email addresses that have been verified. - VerifiedEmailAddresses []*string + VerifiedEmailAddresses []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_ReorderReceiptRuleSet.go b/service/ses/api_op_ReorderReceiptRuleSet.go index a218cd7e398..2811d1b359e 100644 --- a/service/ses/api_op_ReorderReceiptRuleSet.go +++ b/service/ses/api_op_ReorderReceiptRuleSet.go @@ -41,7 +41,7 @@ type ReorderReceiptRuleSetInput struct { // want to put them. // // This member is required. - RuleNames []*string + RuleNames []string // The name of the receipt rule set to reorder. // diff --git a/service/ses/api_op_SendBounce.go b/service/ses/api_op_SendBounce.go index afb081e7af8..1fb12db9e09 100644 --- a/service/ses/api_op_SendBounce.go +++ b/service/ses/api_op_SendBounce.go @@ -48,7 +48,7 @@ type SendBounceInput struct { // specify at least one BouncedRecipientInfo in the list. // // This member is required. - BouncedRecipientInfoList []*types.BouncedRecipientInfo + BouncedRecipientInfoList []types.BouncedRecipientInfo // The message ID of the message to be bounced. // diff --git a/service/ses/api_op_SendBulkTemplatedEmail.go b/service/ses/api_op_SendBulkTemplatedEmail.go index d23ef5a3225..1cb2ac6de71 100644 --- a/service/ses/api_op_SendBulkTemplatedEmail.go +++ b/service/ses/api_op_SendBulkTemplatedEmail.go @@ -72,7 +72,7 @@ type SendBulkTemplatedEmailInput struct { // objects within a Destinations array. // // This member is required. - Destinations []*types.BulkEmailDestination + Destinations []types.BulkEmailDestination // The email address that is sending the email. This email address must be either // individually verified with Amazon SES, or from a domain that has been verified @@ -111,7 +111,7 @@ type SendBulkTemplatedEmailInput struct { // A list of tags, in the form of name/value pairs, to apply to an email that you // send to a destination using SendBulkTemplatedEmail. - DefaultTags []*types.MessageTag + DefaultTags []types.MessageTag // A list of replacement values to apply to the template when replacement data is // not specified in a Destination object. These values act as a default or fallback @@ -122,7 +122,7 @@ type SendBulkTemplatedEmailInput struct { // The reply-to email address(es) for the message. If the recipient replies to the // message, each reply-to address will receive the reply. - ReplyToAddresses []*string + ReplyToAddresses []string // The email address that bounces and complaints will be forwarded to when feedback // forwarding is enabled. If the message cannot be delivered to the recipient, then @@ -166,7 +166,7 @@ type SendBulkTemplatedEmailOutput struct { // The unique message identifier returned from the SendBulkTemplatedEmail action. // // This member is required. - Status []*types.BulkEmailDestinationStatus + Status []types.BulkEmailDestinationStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/api_op_SendEmail.go b/service/ses/api_op_SendEmail.go index 8e68da26203..c442a59b916 100644 --- a/service/ses/api_op_SendEmail.go +++ b/service/ses/api_op_SendEmail.go @@ -110,7 +110,7 @@ type SendEmailInput struct { // The reply-to email address(es) for the message. If the recipient replies to the // message, each reply-to address will receive the reply. - ReplyToAddresses []*string + ReplyToAddresses []string // The email address that bounces and complaints will be forwarded to when feedback // forwarding is enabled. If the message cannot be delivered to the recipient, then @@ -148,7 +148,7 @@ type SendEmailInput struct { // A list of tags, in the form of name/value pairs, to apply to an email that you // send using SendEmail. Tags correspond to characteristics of the email that you // define, so that you can publish email sending events. - Tags []*types.MessageTag + Tags []types.MessageTag } // Represents a unique message ID. diff --git a/service/ses/api_op_SendRawEmail.go b/service/ses/api_op_SendRawEmail.go index e0ea7986a4e..d571a688f67 100644 --- a/service/ses/api_op_SendRawEmail.go +++ b/service/ses/api_op_SendRawEmail.go @@ -157,7 +157,7 @@ type SendRawEmailInput struct { // A list of destinations for the message, consisting of To:, CC:, and BCC: // addresses. - Destinations []*string + Destinations []string // This parameter is used only for sending authorization. It is the ARN of the // identity that is associated with the sending authorization policy that permits @@ -224,7 +224,7 @@ type SendRawEmailInput struct { // A list of tags, in the form of name/value pairs, to apply to an email that you // send using SendRawEmail. Tags correspond to characteristics of the email that // you define, so that you can publish email sending events. - Tags []*types.MessageTag + Tags []types.MessageTag } // Represents a unique message ID. diff --git a/service/ses/api_op_SendTemplatedEmail.go b/service/ses/api_op_SendTemplatedEmail.go index 9cdef360c48..bfdae94c37d 100644 --- a/service/ses/api_op_SendTemplatedEmail.go +++ b/service/ses/api_op_SendTemplatedEmail.go @@ -125,7 +125,7 @@ type SendTemplatedEmailInput struct { // The reply-to email address(es) for the message. If the recipient replies to the // message, each reply-to address will receive the reply. - ReplyToAddresses []*string + ReplyToAddresses []string // The email address that bounces and complaints will be forwarded to when feedback // forwarding is enabled. If the message cannot be delivered to the recipient, then @@ -163,7 +163,7 @@ type SendTemplatedEmailInput struct { // A list of tags, in the form of name/value pairs, to apply to an email that you // send using SendTemplatedEmail. Tags correspond to characteristics of the email // that you define, so that you can publish email sending events. - Tags []*types.MessageTag + Tags []types.MessageTag // The ARN of the template to use when sending this email. TemplateArn *string diff --git a/service/ses/api_op_SetIdentityDkimEnabled.go b/service/ses/api_op_SetIdentityDkimEnabled.go index a934bf5765c..5e67b03d790 100644 --- a/service/ses/api_op_SetIdentityDkimEnabled.go +++ b/service/ses/api_op_SetIdentityDkimEnabled.go @@ -47,7 +47,7 @@ type SetIdentityDkimEnabledInput struct { // signing for this identity; false to disable it. // // This member is required. - DkimEnabled *bool + DkimEnabled bool // The identity for which DKIM signing should be enabled or disabled. // diff --git a/service/ses/api_op_SetIdentityFeedbackForwardingEnabled.go b/service/ses/api_op_SetIdentityFeedbackForwardingEnabled.go index 2d83aed38d3..72ac231998e 100644 --- a/service/ses/api_op_SetIdentityFeedbackForwardingEnabled.go +++ b/service/ses/api_op_SetIdentityFeedbackForwardingEnabled.go @@ -48,7 +48,7 @@ type SetIdentityFeedbackForwardingEnabledInput struct { // Amazon SNS topics are set for both Bounce and Complaint notification types. // // This member is required. - ForwardingEnabled *bool + ForwardingEnabled bool // The identity for which to set bounce and complaint notification forwarding. // Examples: user@example.com, example.com. diff --git a/service/ses/api_op_SetIdentityHeadersInNotificationsEnabled.go b/service/ses/api_op_SetIdentityHeadersInNotificationsEnabled.go index b42fbc98823..5631f1115d7 100644 --- a/service/ses/api_op_SetIdentityHeadersInNotificationsEnabled.go +++ b/service/ses/api_op_SetIdentityHeadersInNotificationsEnabled.go @@ -46,7 +46,7 @@ type SetIdentityHeadersInNotificationsEnabledInput struct { // topic. // // This member is required. - Enabled *bool + Enabled bool // The identity for which to enable or disable headers in notifications. Examples: // user@example.com, example.com. diff --git a/service/ses/api_op_UpdateAccountSendingEnabled.go b/service/ses/api_op_UpdateAccountSendingEnabled.go index 9000bab5047..b3a8716d998 100644 --- a/service/ses/api_op_UpdateAccountSendingEnabled.go +++ b/service/ses/api_op_UpdateAccountSendingEnabled.go @@ -37,7 +37,7 @@ type UpdateAccountSendingEnabledInput struct { // Describes whether email sending is enabled or disabled for your Amazon SES // account in the current AWS Region. - Enabled *bool + Enabled bool } type UpdateAccountSendingEnabledOutput struct { diff --git a/service/ses/api_op_UpdateConfigurationSetReputationMetricsEnabled.go b/service/ses/api_op_UpdateConfigurationSetReputationMetricsEnabled.go index b66417c1fc4..7d330e5eae7 100644 --- a/service/ses/api_op_UpdateConfigurationSetReputationMetricsEnabled.go +++ b/service/ses/api_op_UpdateConfigurationSetReputationMetricsEnabled.go @@ -43,7 +43,7 @@ type UpdateConfigurationSetReputationMetricsEnabledInput struct { // configuration set, such as bounce and complaint rates, to Amazon CloudWatch. // // This member is required. - Enabled *bool + Enabled bool } type UpdateConfigurationSetReputationMetricsEnabledOutput struct { diff --git a/service/ses/api_op_UpdateConfigurationSetSendingEnabled.go b/service/ses/api_op_UpdateConfigurationSetSendingEnabled.go index 87c561c6d83..c1a6aad11f5 100644 --- a/service/ses/api_op_UpdateConfigurationSetSendingEnabled.go +++ b/service/ses/api_op_UpdateConfigurationSetSendingEnabled.go @@ -44,7 +44,7 @@ type UpdateConfigurationSetSendingEnabledInput struct { // set. // // This member is required. - Enabled *bool + Enabled bool } type UpdateConfigurationSetSendingEnabledOutput struct { diff --git a/service/ses/api_op_VerifyDomainDkim.go b/service/ses/api_op_VerifyDomainDkim.go index 4cb2031b28e..4548dac9bf6 100644 --- a/service/ses/api_op_VerifyDomainDkim.go +++ b/service/ses/api_op_VerifyDomainDkim.go @@ -83,7 +83,7 @@ type VerifyDomainDkimOutput struct { // (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html). // // This member is required. - DkimTokens []*string + DkimTokens []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ses/deserializers.go b/service/ses/deserializers.go index 5894c456ce9..42c7cc65cc8 100644 --- a/service/ses/deserializers.go +++ b/service/ses/deserializers.go @@ -8100,7 +8100,7 @@ func awsAwsquery_deserializeDocumentAccountSendingPausedException(v **types.Acco } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8148,7 +8148,7 @@ func awsAwsquery_deserializeDocumentAddHeaderAction(v **types.AddHeaderAction, d } if val != nil { xtv := string(val) - sv.HeaderName = &xtv + sv.HeaderName = ptr.String(xtv) } case strings.EqualFold("HeaderValue", t.Name.Local): @@ -8164,7 +8164,7 @@ func awsAwsquery_deserializeDocumentAddHeaderAction(v **types.AddHeaderAction, d } if val != nil { xtv := string(val) - sv.HeaderValue = &xtv + sv.HeaderValue = ptr.String(xtv) } default: @@ -8177,13 +8177,13 @@ func awsAwsquery_deserializeDocumentAddHeaderAction(v **types.AddHeaderAction, d return nil } -func awsAwsquery_deserializeDocumentAddressList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentAddressList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -8201,20 +8201,17 @@ func awsAwsquery_deserializeDocumentAddressList(v *[]*string, decoder smithyxml. decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -8227,17 +8224,17 @@ func awsAwsquery_deserializeDocumentAddressList(v *[]*string, decoder smithyxml. return nil } -func awsAwsquery_deserializeDocumentAddressListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentAddressListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -8245,14 +8242,11 @@ func awsAwsquery_deserializeDocumentAddressListUnwrapped(v *[]*string, decoder s return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -8294,7 +8288,7 @@ func awsAwsquery_deserializeDocumentAlreadyExistsException(v **types.AlreadyExis } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -8310,7 +8304,7 @@ func awsAwsquery_deserializeDocumentAlreadyExistsException(v **types.AlreadyExis } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -8358,7 +8352,7 @@ func awsAwsquery_deserializeDocumentBounceAction(v **types.BounceAction, decoder } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("Sender", t.Name.Local): @@ -8374,7 +8368,7 @@ func awsAwsquery_deserializeDocumentBounceAction(v **types.BounceAction, decoder } if val != nil { xtv := string(val) - sv.Sender = &xtv + sv.Sender = ptr.String(xtv) } case strings.EqualFold("SmtpReplyCode", t.Name.Local): @@ -8390,7 +8384,7 @@ func awsAwsquery_deserializeDocumentBounceAction(v **types.BounceAction, decoder } if val != nil { xtv := string(val) - sv.SmtpReplyCode = &xtv + sv.SmtpReplyCode = ptr.String(xtv) } case strings.EqualFold("StatusCode", t.Name.Local): @@ -8406,7 +8400,7 @@ func awsAwsquery_deserializeDocumentBounceAction(v **types.BounceAction, decoder } if val != nil { xtv := string(val) - sv.StatusCode = &xtv + sv.StatusCode = ptr.String(xtv) } case strings.EqualFold("TopicArn", t.Name.Local): @@ -8422,7 +8416,7 @@ func awsAwsquery_deserializeDocumentBounceAction(v **types.BounceAction, decoder } if val != nil { xtv := string(val) - sv.TopicArn = &xtv + sv.TopicArn = ptr.String(xtv) } default: @@ -8470,7 +8464,7 @@ func awsAwsquery_deserializeDocumentBulkEmailDestinationStatus(v **types.BulkEma } if val != nil { xtv := string(val) - sv.Error = &xtv + sv.Error = ptr.String(xtv) } case strings.EqualFold("MessageId", t.Name.Local): @@ -8486,7 +8480,7 @@ func awsAwsquery_deserializeDocumentBulkEmailDestinationStatus(v **types.BulkEma } if val != nil { xtv := string(val) - sv.MessageId = &xtv + sv.MessageId = ptr.String(xtv) } case strings.EqualFold("Status", t.Name.Local): @@ -8512,13 +8506,13 @@ func awsAwsquery_deserializeDocumentBulkEmailDestinationStatus(v **types.BulkEma return nil } -func awsAwsquery_deserializeDocumentBulkEmailDestinationStatusList(v *[]*types.BulkEmailDestinationStatus, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentBulkEmailDestinationStatusList(v *[]types.BulkEmailDestinationStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.BulkEmailDestinationStatus + var sv []types.BulkEmailDestinationStatus if *v == nil { - sv = make([]*types.BulkEmailDestinationStatus, 0) + sv = make([]types.BulkEmailDestinationStatus, 0) } else { sv = *v } @@ -8534,11 +8528,13 @@ func awsAwsquery_deserializeDocumentBulkEmailDestinationStatusList(v *[]*types.B } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.BulkEmailDestinationStatus + var col types.BulkEmailDestinationStatus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentBulkEmailDestinationStatus(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentBulkEmailDestinationStatus(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8551,23 +8547,25 @@ func awsAwsquery_deserializeDocumentBulkEmailDestinationStatusList(v *[]*types.B return nil } -func awsAwsquery_deserializeDocumentBulkEmailDestinationStatusListUnwrapped(v *[]*types.BulkEmailDestinationStatus, decoder smithyxml.NodeDecoder) error { - var sv []*types.BulkEmailDestinationStatus +func awsAwsquery_deserializeDocumentBulkEmailDestinationStatusListUnwrapped(v *[]types.BulkEmailDestinationStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.BulkEmailDestinationStatus if *v == nil { - sv = make([]*types.BulkEmailDestinationStatus, 0) + sv = make([]types.BulkEmailDestinationStatus, 0) } else { sv = *v } switch { default: - var mv *types.BulkEmailDestinationStatus + var mv types.BulkEmailDestinationStatus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentBulkEmailDestinationStatus(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentBulkEmailDestinationStatus(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8608,7 +8606,7 @@ func awsAwsquery_deserializeDocumentCannotDeleteException(v **types.CannotDelete } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -8624,7 +8622,7 @@ func awsAwsquery_deserializeDocumentCannotDeleteException(v **types.CannotDelete } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -8710,7 +8708,7 @@ func awsAwsquery_deserializeDocumentCloudWatchDimensionConfiguration(v **types.C } if val != nil { xtv := string(val) - sv.DefaultDimensionValue = &xtv + sv.DefaultDimensionValue = ptr.String(xtv) } case strings.EqualFold("DimensionName", t.Name.Local): @@ -8726,7 +8724,7 @@ func awsAwsquery_deserializeDocumentCloudWatchDimensionConfiguration(v **types.C } if val != nil { xtv := string(val) - sv.DimensionName = &xtv + sv.DimensionName = ptr.String(xtv) } case strings.EqualFold("DimensionValueSource", t.Name.Local): @@ -8752,13 +8750,13 @@ func awsAwsquery_deserializeDocumentCloudWatchDimensionConfiguration(v **types.C return nil } -func awsAwsquery_deserializeDocumentCloudWatchDimensionConfigurations(v *[]*types.CloudWatchDimensionConfiguration, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCloudWatchDimensionConfigurations(v *[]types.CloudWatchDimensionConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CloudWatchDimensionConfiguration + var sv []types.CloudWatchDimensionConfiguration if *v == nil { - sv = make([]*types.CloudWatchDimensionConfiguration, 0) + sv = make([]types.CloudWatchDimensionConfiguration, 0) } else { sv = *v } @@ -8774,11 +8772,13 @@ func awsAwsquery_deserializeDocumentCloudWatchDimensionConfigurations(v *[]*type } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.CloudWatchDimensionConfiguration + var col types.CloudWatchDimensionConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCloudWatchDimensionConfiguration(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCloudWatchDimensionConfiguration(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -8791,23 +8791,25 @@ func awsAwsquery_deserializeDocumentCloudWatchDimensionConfigurations(v *[]*type return nil } -func awsAwsquery_deserializeDocumentCloudWatchDimensionConfigurationsUnwrapped(v *[]*types.CloudWatchDimensionConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []*types.CloudWatchDimensionConfiguration +func awsAwsquery_deserializeDocumentCloudWatchDimensionConfigurationsUnwrapped(v *[]types.CloudWatchDimensionConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.CloudWatchDimensionConfiguration if *v == nil { - sv = make([]*types.CloudWatchDimensionConfiguration, 0) + sv = make([]types.CloudWatchDimensionConfiguration, 0) } else { sv = *v } switch { default: - var mv *types.CloudWatchDimensionConfiguration + var mv types.CloudWatchDimensionConfiguration t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCloudWatchDimensionConfiguration(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCloudWatchDimensionConfiguration(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -8848,7 +8850,7 @@ func awsAwsquery_deserializeDocumentConfigurationSet(v **types.ConfigurationSet, } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -8896,7 +8898,7 @@ func awsAwsquery_deserializeDocumentConfigurationSetAlreadyExistsException(v **t } if val != nil { xtv := string(val) - sv.ConfigurationSetName = &xtv + sv.ConfigurationSetName = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -8912,7 +8914,7 @@ func awsAwsquery_deserializeDocumentConfigurationSetAlreadyExistsException(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8960,7 +8962,7 @@ func awsAwsquery_deserializeDocumentConfigurationSetDoesNotExistException(v **ty } if val != nil { xtv := string(val) - sv.ConfigurationSetName = &xtv + sv.ConfigurationSetName = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -8976,7 +8978,7 @@ func awsAwsquery_deserializeDocumentConfigurationSetDoesNotExistException(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -8989,13 +8991,13 @@ func awsAwsquery_deserializeDocumentConfigurationSetDoesNotExistException(v **ty return nil } -func awsAwsquery_deserializeDocumentConfigurationSets(v *[]*types.ConfigurationSet, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentConfigurationSets(v *[]types.ConfigurationSet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ConfigurationSet + var sv []types.ConfigurationSet if *v == nil { - sv = make([]*types.ConfigurationSet, 0) + sv = make([]types.ConfigurationSet, 0) } else { sv = *v } @@ -9011,11 +9013,13 @@ func awsAwsquery_deserializeDocumentConfigurationSets(v *[]*types.ConfigurationS } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ConfigurationSet + var col types.ConfigurationSet nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentConfigurationSet(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentConfigurationSet(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9028,23 +9032,25 @@ func awsAwsquery_deserializeDocumentConfigurationSets(v *[]*types.ConfigurationS return nil } -func awsAwsquery_deserializeDocumentConfigurationSetsUnwrapped(v *[]*types.ConfigurationSet, decoder smithyxml.NodeDecoder) error { - var sv []*types.ConfigurationSet +func awsAwsquery_deserializeDocumentConfigurationSetsUnwrapped(v *[]types.ConfigurationSet, decoder smithyxml.NodeDecoder) error { + var sv []types.ConfigurationSet if *v == nil { - sv = make([]*types.ConfigurationSet, 0) + sv = make([]types.ConfigurationSet, 0) } else { sv = *v } switch { default: - var mv *types.ConfigurationSet + var mv types.ConfigurationSet t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentConfigurationSet(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentConfigurationSet(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9085,7 +9091,7 @@ func awsAwsquery_deserializeDocumentConfigurationSetSendingPausedException(v **t } if val != nil { xtv := string(val) - sv.ConfigurationSetName = &xtv + sv.ConfigurationSetName = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -9101,7 +9107,7 @@ func awsAwsquery_deserializeDocumentConfigurationSetSendingPausedException(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9149,7 +9155,7 @@ func awsAwsquery_deserializeDocumentCustomVerificationEmailInvalidContentExcepti } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9197,7 +9203,7 @@ func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplate(v **types.Cu } if val != nil { xtv := string(val) - sv.FailureRedirectionURL = &xtv + sv.FailureRedirectionURL = ptr.String(xtv) } case strings.EqualFold("FromEmailAddress", t.Name.Local): @@ -9213,7 +9219,7 @@ func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplate(v **types.Cu } if val != nil { xtv := string(val) - sv.FromEmailAddress = &xtv + sv.FromEmailAddress = ptr.String(xtv) } case strings.EqualFold("SuccessRedirectionURL", t.Name.Local): @@ -9229,7 +9235,7 @@ func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplate(v **types.Cu } if val != nil { xtv := string(val) - sv.SuccessRedirectionURL = &xtv + sv.SuccessRedirectionURL = ptr.String(xtv) } case strings.EqualFold("TemplateName", t.Name.Local): @@ -9245,7 +9251,7 @@ func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplate(v **types.Cu } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } case strings.EqualFold("TemplateSubject", t.Name.Local): @@ -9261,7 +9267,7 @@ func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplate(v **types.Cu } if val != nil { xtv := string(val) - sv.TemplateSubject = &xtv + sv.TemplateSubject = ptr.String(xtv) } default: @@ -9309,7 +9315,7 @@ func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplateAlreadyExists } if val != nil { xtv := string(val) - sv.CustomVerificationEmailTemplateName = &xtv + sv.CustomVerificationEmailTemplateName = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -9325,7 +9331,7 @@ func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplateAlreadyExists } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9373,7 +9379,7 @@ func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplateDoesNotExistE } if val != nil { xtv := string(val) - sv.CustomVerificationEmailTemplateName = &xtv + sv.CustomVerificationEmailTemplateName = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -9389,7 +9395,7 @@ func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplateDoesNotExistE } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9402,13 +9408,13 @@ func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplateDoesNotExistE return nil } -func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplates(v *[]*types.CustomVerificationEmailTemplate, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplates(v *[]types.CustomVerificationEmailTemplate, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.CustomVerificationEmailTemplate + var sv []types.CustomVerificationEmailTemplate if *v == nil { - sv = make([]*types.CustomVerificationEmailTemplate, 0) + sv = make([]types.CustomVerificationEmailTemplate, 0) } else { sv = *v } @@ -9424,11 +9430,13 @@ func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplates(v *[]*types } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.CustomVerificationEmailTemplate + var col types.CustomVerificationEmailTemplate nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCustomVerificationEmailTemplate(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentCustomVerificationEmailTemplate(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9441,23 +9449,25 @@ func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplates(v *[]*types return nil } -func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplatesUnwrapped(v *[]*types.CustomVerificationEmailTemplate, decoder smithyxml.NodeDecoder) error { - var sv []*types.CustomVerificationEmailTemplate +func awsAwsquery_deserializeDocumentCustomVerificationEmailTemplatesUnwrapped(v *[]types.CustomVerificationEmailTemplate, decoder smithyxml.NodeDecoder) error { + var sv []types.CustomVerificationEmailTemplate if *v == nil { - sv = make([]*types.CustomVerificationEmailTemplate, 0) + sv = make([]types.CustomVerificationEmailTemplate, 0) } else { sv = *v } switch { default: - var mv *types.CustomVerificationEmailTemplate + var mv types.CustomVerificationEmailTemplate t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCustomVerificationEmailTemplate(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentCustomVerificationEmailTemplate(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -9508,13 +9518,13 @@ func awsAwsquery_deserializeDocumentDeliveryOptions(v **types.DeliveryOptions, d return nil } -func awsAwsquery_deserializeDocumentDkimAttributes(v *map[string]*types.IdentityDkimAttributes, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDkimAttributes(v *map[string]types.IdentityDkimAttributes, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*types.IdentityDkimAttributes + var sv map[string]types.IdentityDkimAttributes if *v == nil { - sv = make(map[string]*types.IdentityDkimAttributes, 0) + sv = make(map[string]types.IdentityDkimAttributes, 0) } else { sv = *v } @@ -9538,23 +9548,23 @@ func awsAwsquery_deserializeDocumentDkimAttributes(v *map[string]*types.Identity return nil } -func awsAwsquery_deserializeDocumentDkimAttributesUnwrapped(v *map[string]*types.IdentityDkimAttributes, decoder smithyxml.NodeDecoder) error { - var sv map[string]*types.IdentityDkimAttributes +func awsAwsquery_deserializeDocumentDkimAttributesUnwrapped(v *map[string]types.IdentityDkimAttributes, decoder smithyxml.NodeDecoder) error { + var sv map[string]types.IdentityDkimAttributes if *v == nil { - sv = make(map[string]*types.IdentityDkimAttributes, 0) + sv = make(map[string]types.IdentityDkimAttributes, 0) } else { sv = *v } - var ek *string - var ev *types.IdentityDkimAttributes + var ek string + var ev types.IdentityDkimAttributes for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -9564,21 +9574,21 @@ func awsAwsquery_deserializeDocumentDkimAttributesUnwrapped(v *map[string]*types return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentIdentityDkimAttributes(&ev, nodeDecoder); err != nil { + mapVar := ev + destAddr := &mapVar + if err := awsAwsquery_deserializeDocumentIdentityDkimAttributes(&destAddr, nodeDecoder); err != nil { return err } + ev = *destAddr default: // Do nothing and ignore the unexpected tag element @@ -9629,7 +9639,7 @@ func awsAwsquery_deserializeDocumentEventDestination(v **types.EventDestination, if err != nil { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } case strings.EqualFold("KinesisFirehoseDestination", t.Name.Local): @@ -9657,7 +9667,7 @@ func awsAwsquery_deserializeDocumentEventDestination(v **types.EventDestination, } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("SNSDestination", t.Name.Local): @@ -9711,7 +9721,7 @@ func awsAwsquery_deserializeDocumentEventDestinationAlreadyExistsException(v **t } if val != nil { xtv := string(val) - sv.ConfigurationSetName = &xtv + sv.ConfigurationSetName = ptr.String(xtv) } case strings.EqualFold("EventDestinationName", t.Name.Local): @@ -9727,7 +9737,7 @@ func awsAwsquery_deserializeDocumentEventDestinationAlreadyExistsException(v **t } if val != nil { xtv := string(val) - sv.EventDestinationName = &xtv + sv.EventDestinationName = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -9743,7 +9753,7 @@ func awsAwsquery_deserializeDocumentEventDestinationAlreadyExistsException(v **t } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9791,7 +9801,7 @@ func awsAwsquery_deserializeDocumentEventDestinationDoesNotExistException(v **ty } if val != nil { xtv := string(val) - sv.ConfigurationSetName = &xtv + sv.ConfigurationSetName = ptr.String(xtv) } case strings.EqualFold("EventDestinationName", t.Name.Local): @@ -9807,7 +9817,7 @@ func awsAwsquery_deserializeDocumentEventDestinationDoesNotExistException(v **ty } if val != nil { xtv := string(val) - sv.EventDestinationName = &xtv + sv.EventDestinationName = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -9823,7 +9833,7 @@ func awsAwsquery_deserializeDocumentEventDestinationDoesNotExistException(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -9836,13 +9846,13 @@ func awsAwsquery_deserializeDocumentEventDestinationDoesNotExistException(v **ty return nil } -func awsAwsquery_deserializeDocumentEventDestinations(v *[]*types.EventDestination, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentEventDestinations(v *[]types.EventDestination, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.EventDestination + var sv []types.EventDestination if *v == nil { - sv = make([]*types.EventDestination, 0) + sv = make([]types.EventDestination, 0) } else { sv = *v } @@ -9858,11 +9868,13 @@ func awsAwsquery_deserializeDocumentEventDestinations(v *[]*types.EventDestinati } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.EventDestination + var col types.EventDestination nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventDestination(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEventDestination(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -9875,23 +9887,25 @@ func awsAwsquery_deserializeDocumentEventDestinations(v *[]*types.EventDestinati return nil } -func awsAwsquery_deserializeDocumentEventDestinationsUnwrapped(v *[]*types.EventDestination, decoder smithyxml.NodeDecoder) error { - var sv []*types.EventDestination +func awsAwsquery_deserializeDocumentEventDestinationsUnwrapped(v *[]types.EventDestination, decoder smithyxml.NodeDecoder) error { + var sv []types.EventDestination if *v == nil { - sv = make([]*types.EventDestination, 0) + sv = make([]types.EventDestination, 0) } else { sv = *v } switch { default: - var mv *types.EventDestination + var mv types.EventDestination t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEventDestination(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEventDestination(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -10008,7 +10022,7 @@ func awsAwsquery_deserializeDocumentFromEmailAddressNotVerifiedException(v **typ } if val != nil { xtv := string(val) - sv.FromEmailAddress = &xtv + sv.FromEmailAddress = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -10024,7 +10038,7 @@ func awsAwsquery_deserializeDocumentFromEmailAddressNotVerifiedException(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10072,7 +10086,7 @@ func awsAwsquery_deserializeDocumentIdentityDkimAttributes(v **types.IdentityDki if err != nil { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", val) } - sv.DkimEnabled = &xtv + sv.DkimEnabled = xtv } case strings.EqualFold("DkimTokens", t.Name.Local): @@ -10104,13 +10118,13 @@ func awsAwsquery_deserializeDocumentIdentityDkimAttributes(v **types.IdentityDki return nil } -func awsAwsquery_deserializeDocumentIdentityList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentIdentityList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -10128,20 +10142,17 @@ func awsAwsquery_deserializeDocumentIdentityList(v *[]*string, decoder smithyxml decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -10154,17 +10165,17 @@ func awsAwsquery_deserializeDocumentIdentityList(v *[]*string, decoder smithyxml return nil } -func awsAwsquery_deserializeDocumentIdentityListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentIdentityListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -10172,14 +10183,11 @@ func awsAwsquery_deserializeDocumentIdentityListUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -10234,7 +10242,7 @@ func awsAwsquery_deserializeDocumentIdentityMailFromDomainAttributes(v **types.I } if val != nil { xtv := string(val) - sv.MailFromDomain = &xtv + sv.MailFromDomain = ptr.String(xtv) } case strings.EqualFold("MailFromDomainStatus", t.Name.Local): @@ -10295,7 +10303,7 @@ func awsAwsquery_deserializeDocumentIdentityNotificationAttributes(v **types.Ide } if val != nil { xtv := string(val) - sv.BounceTopic = &xtv + sv.BounceTopic = ptr.String(xtv) } case strings.EqualFold("ComplaintTopic", t.Name.Local): @@ -10311,7 +10319,7 @@ func awsAwsquery_deserializeDocumentIdentityNotificationAttributes(v **types.Ide } if val != nil { xtv := string(val) - sv.ComplaintTopic = &xtv + sv.ComplaintTopic = ptr.String(xtv) } case strings.EqualFold("DeliveryTopic", t.Name.Local): @@ -10327,7 +10335,7 @@ func awsAwsquery_deserializeDocumentIdentityNotificationAttributes(v **types.Ide } if val != nil { xtv := string(val) - sv.DeliveryTopic = &xtv + sv.DeliveryTopic = ptr.String(xtv) } case strings.EqualFold("ForwardingEnabled", t.Name.Local): @@ -10343,7 +10351,7 @@ func awsAwsquery_deserializeDocumentIdentityNotificationAttributes(v **types.Ide if err != nil { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", val) } - sv.ForwardingEnabled = &xtv + sv.ForwardingEnabled = xtv } case strings.EqualFold("HeadersInBounceNotificationsEnabled", t.Name.Local): @@ -10359,7 +10367,7 @@ func awsAwsquery_deserializeDocumentIdentityNotificationAttributes(v **types.Ide if err != nil { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", val) } - sv.HeadersInBounceNotificationsEnabled = &xtv + sv.HeadersInBounceNotificationsEnabled = xtv } case strings.EqualFold("HeadersInComplaintNotificationsEnabled", t.Name.Local): @@ -10375,7 +10383,7 @@ func awsAwsquery_deserializeDocumentIdentityNotificationAttributes(v **types.Ide if err != nil { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", val) } - sv.HeadersInComplaintNotificationsEnabled = &xtv + sv.HeadersInComplaintNotificationsEnabled = xtv } case strings.EqualFold("HeadersInDeliveryNotificationsEnabled", t.Name.Local): @@ -10391,7 +10399,7 @@ func awsAwsquery_deserializeDocumentIdentityNotificationAttributes(v **types.Ide if err != nil { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", val) } - sv.HeadersInDeliveryNotificationsEnabled = &xtv + sv.HeadersInDeliveryNotificationsEnabled = xtv } default: @@ -10452,7 +10460,7 @@ func awsAwsquery_deserializeDocumentIdentityVerificationAttributes(v **types.Ide } if val != nil { xtv := string(val) - sv.VerificationToken = &xtv + sv.VerificationToken = ptr.String(xtv) } default: @@ -10500,7 +10508,7 @@ func awsAwsquery_deserializeDocumentInvalidCloudWatchDestinationException(v **ty } if val != nil { xtv := string(val) - sv.ConfigurationSetName = &xtv + sv.ConfigurationSetName = ptr.String(xtv) } case strings.EqualFold("EventDestinationName", t.Name.Local): @@ -10516,7 +10524,7 @@ func awsAwsquery_deserializeDocumentInvalidCloudWatchDestinationException(v **ty } if val != nil { xtv := string(val) - sv.EventDestinationName = &xtv + sv.EventDestinationName = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -10532,7 +10540,7 @@ func awsAwsquery_deserializeDocumentInvalidCloudWatchDestinationException(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10580,7 +10588,7 @@ func awsAwsquery_deserializeDocumentInvalidConfigurationSetException(v **types.I } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10628,7 +10636,7 @@ func awsAwsquery_deserializeDocumentInvalidDeliveryOptionsException(v **types.In } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10676,7 +10684,7 @@ func awsAwsquery_deserializeDocumentInvalidFirehoseDestinationException(v **type } if val != nil { xtv := string(val) - sv.ConfigurationSetName = &xtv + sv.ConfigurationSetName = ptr.String(xtv) } case strings.EqualFold("EventDestinationName", t.Name.Local): @@ -10692,7 +10700,7 @@ func awsAwsquery_deserializeDocumentInvalidFirehoseDestinationException(v **type } if val != nil { xtv := string(val) - sv.EventDestinationName = &xtv + sv.EventDestinationName = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -10708,7 +10716,7 @@ func awsAwsquery_deserializeDocumentInvalidFirehoseDestinationException(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10756,7 +10764,7 @@ func awsAwsquery_deserializeDocumentInvalidLambdaFunctionException(v **types.Inv } if val != nil { xtv := string(val) - sv.FunctionArn = &xtv + sv.FunctionArn = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -10772,7 +10780,7 @@ func awsAwsquery_deserializeDocumentInvalidLambdaFunctionException(v **types.Inv } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10820,7 +10828,7 @@ func awsAwsquery_deserializeDocumentInvalidPolicyException(v **types.InvalidPoli } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10868,7 +10876,7 @@ func awsAwsquery_deserializeDocumentInvalidRenderingParameterException(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("TemplateName", t.Name.Local): @@ -10884,7 +10892,7 @@ func awsAwsquery_deserializeDocumentInvalidRenderingParameterException(v **types } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } default: @@ -10932,7 +10940,7 @@ func awsAwsquery_deserializeDocumentInvalidS3ConfigurationException(v **types.In } if val != nil { xtv := string(val) - sv.Bucket = &xtv + sv.Bucket = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -10948,7 +10956,7 @@ func awsAwsquery_deserializeDocumentInvalidS3ConfigurationException(v **types.In } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -10996,7 +11004,7 @@ func awsAwsquery_deserializeDocumentInvalidSNSDestinationException(v **types.Inv } if val != nil { xtv := string(val) - sv.ConfigurationSetName = &xtv + sv.ConfigurationSetName = ptr.String(xtv) } case strings.EqualFold("EventDestinationName", t.Name.Local): @@ -11012,7 +11020,7 @@ func awsAwsquery_deserializeDocumentInvalidSNSDestinationException(v **types.Inv } if val != nil { xtv := string(val) - sv.EventDestinationName = &xtv + sv.EventDestinationName = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -11028,7 +11036,7 @@ func awsAwsquery_deserializeDocumentInvalidSNSDestinationException(v **types.Inv } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11076,7 +11084,7 @@ func awsAwsquery_deserializeDocumentInvalidSnsTopicException(v **types.InvalidSn } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("Topic", t.Name.Local): @@ -11092,7 +11100,7 @@ func awsAwsquery_deserializeDocumentInvalidSnsTopicException(v **types.InvalidSn } if val != nil { xtv := string(val) - sv.Topic = &xtv + sv.Topic = ptr.String(xtv) } default: @@ -11140,7 +11148,7 @@ func awsAwsquery_deserializeDocumentInvalidTemplateException(v **types.InvalidTe } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("TemplateName", t.Name.Local): @@ -11156,7 +11164,7 @@ func awsAwsquery_deserializeDocumentInvalidTemplateException(v **types.InvalidTe } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } default: @@ -11204,7 +11212,7 @@ func awsAwsquery_deserializeDocumentInvalidTrackingOptionsException(v **types.In } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11252,7 +11260,7 @@ func awsAwsquery_deserializeDocumentKinesisFirehoseDestination(v **types.Kinesis } if val != nil { xtv := string(val) - sv.DeliveryStreamARN = &xtv + sv.DeliveryStreamARN = ptr.String(xtv) } case strings.EqualFold("IAMRoleARN", t.Name.Local): @@ -11268,7 +11276,7 @@ func awsAwsquery_deserializeDocumentKinesisFirehoseDestination(v **types.Kinesis } if val != nil { xtv := string(val) - sv.IAMRoleARN = &xtv + sv.IAMRoleARN = ptr.String(xtv) } default: @@ -11316,7 +11324,7 @@ func awsAwsquery_deserializeDocumentLambdaAction(v **types.LambdaAction, decoder } if val != nil { xtv := string(val) - sv.FunctionArn = &xtv + sv.FunctionArn = ptr.String(xtv) } case strings.EqualFold("InvocationType", t.Name.Local): @@ -11345,7 +11353,7 @@ func awsAwsquery_deserializeDocumentLambdaAction(v **types.LambdaAction, decoder } if val != nil { xtv := string(val) - sv.TopicArn = &xtv + sv.TopicArn = ptr.String(xtv) } default: @@ -11393,7 +11401,7 @@ func awsAwsquery_deserializeDocumentLimitExceededException(v **types.LimitExceed } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11406,13 +11414,13 @@ func awsAwsquery_deserializeDocumentLimitExceededException(v **types.LimitExceed return nil } -func awsAwsquery_deserializeDocumentMailFromDomainAttributes(v *map[string]*types.IdentityMailFromDomainAttributes, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMailFromDomainAttributes(v *map[string]types.IdentityMailFromDomainAttributes, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*types.IdentityMailFromDomainAttributes + var sv map[string]types.IdentityMailFromDomainAttributes if *v == nil { - sv = make(map[string]*types.IdentityMailFromDomainAttributes, 0) + sv = make(map[string]types.IdentityMailFromDomainAttributes, 0) } else { sv = *v } @@ -11436,23 +11444,23 @@ func awsAwsquery_deserializeDocumentMailFromDomainAttributes(v *map[string]*type return nil } -func awsAwsquery_deserializeDocumentMailFromDomainAttributesUnwrapped(v *map[string]*types.IdentityMailFromDomainAttributes, decoder smithyxml.NodeDecoder) error { - var sv map[string]*types.IdentityMailFromDomainAttributes +func awsAwsquery_deserializeDocumentMailFromDomainAttributesUnwrapped(v *map[string]types.IdentityMailFromDomainAttributes, decoder smithyxml.NodeDecoder) error { + var sv map[string]types.IdentityMailFromDomainAttributes if *v == nil { - sv = make(map[string]*types.IdentityMailFromDomainAttributes, 0) + sv = make(map[string]types.IdentityMailFromDomainAttributes, 0) } else { sv = *v } - var ek *string - var ev *types.IdentityMailFromDomainAttributes + var ek string + var ev types.IdentityMailFromDomainAttributes for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -11462,21 +11470,21 @@ func awsAwsquery_deserializeDocumentMailFromDomainAttributesUnwrapped(v *map[str return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentIdentityMailFromDomainAttributes(&ev, nodeDecoder); err != nil { + mapVar := ev + destAddr := &mapVar + if err := awsAwsquery_deserializeDocumentIdentityMailFromDomainAttributes(&destAddr, nodeDecoder); err != nil { return err } + ev = *destAddr default: // Do nothing and ignore the unexpected tag element @@ -11521,7 +11529,7 @@ func awsAwsquery_deserializeDocumentMailFromDomainNotVerifiedException(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11569,7 +11577,7 @@ func awsAwsquery_deserializeDocumentMessageRejected(v **types.MessageRejected, d } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -11617,7 +11625,7 @@ func awsAwsquery_deserializeDocumentMissingRenderingAttributeException(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("TemplateName", t.Name.Local): @@ -11633,7 +11641,7 @@ func awsAwsquery_deserializeDocumentMissingRenderingAttributeException(v **types } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } default: @@ -11646,13 +11654,13 @@ func awsAwsquery_deserializeDocumentMissingRenderingAttributeException(v **types return nil } -func awsAwsquery_deserializeDocumentNotificationAttributes(v *map[string]*types.IdentityNotificationAttributes, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentNotificationAttributes(v *map[string]types.IdentityNotificationAttributes, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*types.IdentityNotificationAttributes + var sv map[string]types.IdentityNotificationAttributes if *v == nil { - sv = make(map[string]*types.IdentityNotificationAttributes, 0) + sv = make(map[string]types.IdentityNotificationAttributes, 0) } else { sv = *v } @@ -11676,23 +11684,23 @@ func awsAwsquery_deserializeDocumentNotificationAttributes(v *map[string]*types. return nil } -func awsAwsquery_deserializeDocumentNotificationAttributesUnwrapped(v *map[string]*types.IdentityNotificationAttributes, decoder smithyxml.NodeDecoder) error { - var sv map[string]*types.IdentityNotificationAttributes +func awsAwsquery_deserializeDocumentNotificationAttributesUnwrapped(v *map[string]types.IdentityNotificationAttributes, decoder smithyxml.NodeDecoder) error { + var sv map[string]types.IdentityNotificationAttributes if *v == nil { - sv = make(map[string]*types.IdentityNotificationAttributes, 0) + sv = make(map[string]types.IdentityNotificationAttributes, 0) } else { sv = *v } - var ek *string - var ev *types.IdentityNotificationAttributes + var ek string + var ev types.IdentityNotificationAttributes for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -11702,21 +11710,21 @@ func awsAwsquery_deserializeDocumentNotificationAttributesUnwrapped(v *map[strin return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentIdentityNotificationAttributes(&ev, nodeDecoder); err != nil { + mapVar := ev + destAddr := &mapVar + if err := awsAwsquery_deserializeDocumentIdentityNotificationAttributes(&destAddr, nodeDecoder); err != nil { return err } + ev = *destAddr default: // Do nothing and ignore the unexpected tag element @@ -11726,13 +11734,13 @@ func awsAwsquery_deserializeDocumentNotificationAttributesUnwrapped(v *map[strin *v = sv return nil } -func awsAwsquery_deserializeDocumentPolicyMap(v *map[string]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*string + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } @@ -11756,23 +11764,23 @@ func awsAwsquery_deserializeDocumentPolicyMap(v *map[string]*string, decoder smi return nil } -func awsAwsquery_deserializeDocumentPolicyMapUnwrapped(v *map[string]*string, decoder smithyxml.NodeDecoder) error { - var sv map[string]*string +func awsAwsquery_deserializeDocumentPolicyMapUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } - var ek *string - var ev *string + var ek string + var ev string for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -11782,14 +11790,11 @@ func awsAwsquery_deserializeDocumentPolicyMapUnwrapped(v *map[string]*string, de return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): @@ -11798,14 +11803,11 @@ func awsAwsquery_deserializeDocumentPolicyMapUnwrapped(v *map[string]*string, de return err } if done { - if val == nil { - ev = ptr.String("") - } break } if val != nil { xtv := string(val) - ev = &xtv + ev = xtv } default: @@ -11816,13 +11818,13 @@ func awsAwsquery_deserializeDocumentPolicyMapUnwrapped(v *map[string]*string, de *v = sv return nil } -func awsAwsquery_deserializeDocumentPolicyNameList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPolicyNameList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -11840,20 +11842,17 @@ func awsAwsquery_deserializeDocumentPolicyNameList(v *[]*string, decoder smithyx decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -11866,17 +11865,17 @@ func awsAwsquery_deserializeDocumentPolicyNameList(v *[]*string, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentPolicyNameListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentPolicyNameListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -11884,14 +11883,11 @@ func awsAwsquery_deserializeDocumentPolicyNameListUnwrapped(v *[]*string, decode return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -11933,7 +11929,7 @@ func awsAwsquery_deserializeDocumentProductionAccessNotGrantedException(v **type } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -12020,13 +12016,13 @@ func awsAwsquery_deserializeDocumentReceiptAction(v **types.ReceiptAction, decod return nil } -func awsAwsquery_deserializeDocumentReceiptActionsList(v *[]*types.ReceiptAction, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReceiptActionsList(v *[]types.ReceiptAction, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReceiptAction + var sv []types.ReceiptAction if *v == nil { - sv = make([]*types.ReceiptAction, 0) + sv = make([]types.ReceiptAction, 0) } else { sv = *v } @@ -12042,11 +12038,13 @@ func awsAwsquery_deserializeDocumentReceiptActionsList(v *[]*types.ReceiptAction } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ReceiptAction + var col types.ReceiptAction nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReceiptAction(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentReceiptAction(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12059,23 +12057,25 @@ func awsAwsquery_deserializeDocumentReceiptActionsList(v *[]*types.ReceiptAction return nil } -func awsAwsquery_deserializeDocumentReceiptActionsListUnwrapped(v *[]*types.ReceiptAction, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReceiptAction +func awsAwsquery_deserializeDocumentReceiptActionsListUnwrapped(v *[]types.ReceiptAction, decoder smithyxml.NodeDecoder) error { + var sv []types.ReceiptAction if *v == nil { - sv = make([]*types.ReceiptAction, 0) + sv = make([]types.ReceiptAction, 0) } else { sv = *v } switch { default: - var mv *types.ReceiptAction + var mv types.ReceiptAction t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReceiptAction(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentReceiptAction(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12122,7 +12122,7 @@ func awsAwsquery_deserializeDocumentReceiptFilter(v **types.ReceiptFilter, decod } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -12135,13 +12135,13 @@ func awsAwsquery_deserializeDocumentReceiptFilter(v **types.ReceiptFilter, decod return nil } -func awsAwsquery_deserializeDocumentReceiptFilterList(v *[]*types.ReceiptFilter, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReceiptFilterList(v *[]types.ReceiptFilter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReceiptFilter + var sv []types.ReceiptFilter if *v == nil { - sv = make([]*types.ReceiptFilter, 0) + sv = make([]types.ReceiptFilter, 0) } else { sv = *v } @@ -12157,11 +12157,13 @@ func awsAwsquery_deserializeDocumentReceiptFilterList(v *[]*types.ReceiptFilter, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ReceiptFilter + var col types.ReceiptFilter nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReceiptFilter(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentReceiptFilter(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12174,23 +12176,25 @@ func awsAwsquery_deserializeDocumentReceiptFilterList(v *[]*types.ReceiptFilter, return nil } -func awsAwsquery_deserializeDocumentReceiptFilterListUnwrapped(v *[]*types.ReceiptFilter, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReceiptFilter +func awsAwsquery_deserializeDocumentReceiptFilterListUnwrapped(v *[]types.ReceiptFilter, decoder smithyxml.NodeDecoder) error { + var sv []types.ReceiptFilter if *v == nil { - sv = make([]*types.ReceiptFilter, 0) + sv = make([]types.ReceiptFilter, 0) } else { sv = *v } switch { default: - var mv *types.ReceiptFilter + var mv types.ReceiptFilter t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReceiptFilter(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentReceiptFilter(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -12231,7 +12235,7 @@ func awsAwsquery_deserializeDocumentReceiptIpFilter(v **types.ReceiptIpFilter, d } if val != nil { xtv := string(val) - sv.Cidr = &xtv + sv.Cidr = ptr.String(xtv) } case strings.EqualFold("Policy", t.Name.Local): @@ -12298,7 +12302,7 @@ func awsAwsquery_deserializeDocumentReceiptRule(v **types.ReceiptRule, decoder s if err != nil { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } case strings.EqualFold("Name", t.Name.Local): @@ -12314,7 +12318,7 @@ func awsAwsquery_deserializeDocumentReceiptRule(v **types.ReceiptRule, decoder s } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } case strings.EqualFold("Recipients", t.Name.Local): @@ -12336,7 +12340,7 @@ func awsAwsquery_deserializeDocumentReceiptRule(v **types.ReceiptRule, decoder s if err != nil { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", val) } - sv.ScanEnabled = &xtv + sv.ScanEnabled = xtv } case strings.EqualFold("TlsPolicy", t.Name.Local): @@ -12398,7 +12402,7 @@ func awsAwsquery_deserializeDocumentReceiptRuleSetMetadata(v **types.ReceiptRule if err != nil { return err } - sv.CreatedTimestamp = &t + sv.CreatedTimestamp = ptr.Time(t) } case strings.EqualFold("Name", t.Name.Local): @@ -12414,7 +12418,7 @@ func awsAwsquery_deserializeDocumentReceiptRuleSetMetadata(v **types.ReceiptRule } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -12427,13 +12431,13 @@ func awsAwsquery_deserializeDocumentReceiptRuleSetMetadata(v **types.ReceiptRule return nil } -func awsAwsquery_deserializeDocumentReceiptRuleSetsLists(v *[]*types.ReceiptRuleSetMetadata, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReceiptRuleSetsLists(v *[]types.ReceiptRuleSetMetadata, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReceiptRuleSetMetadata + var sv []types.ReceiptRuleSetMetadata if *v == nil { - sv = make([]*types.ReceiptRuleSetMetadata, 0) + sv = make([]types.ReceiptRuleSetMetadata, 0) } else { sv = *v } @@ -12449,11 +12453,13 @@ func awsAwsquery_deserializeDocumentReceiptRuleSetsLists(v *[]*types.ReceiptRule } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ReceiptRuleSetMetadata + var col types.ReceiptRuleSetMetadata nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReceiptRuleSetMetadata(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentReceiptRuleSetMetadata(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12466,35 +12472,37 @@ func awsAwsquery_deserializeDocumentReceiptRuleSetsLists(v *[]*types.ReceiptRule return nil } -func awsAwsquery_deserializeDocumentReceiptRuleSetsListsUnwrapped(v *[]*types.ReceiptRuleSetMetadata, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReceiptRuleSetMetadata +func awsAwsquery_deserializeDocumentReceiptRuleSetsListsUnwrapped(v *[]types.ReceiptRuleSetMetadata, decoder smithyxml.NodeDecoder) error { + var sv []types.ReceiptRuleSetMetadata if *v == nil { - sv = make([]*types.ReceiptRuleSetMetadata, 0) + sv = make([]types.ReceiptRuleSetMetadata, 0) } else { sv = *v } switch { default: - var mv *types.ReceiptRuleSetMetadata + var mv types.ReceiptRuleSetMetadata t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReceiptRuleSetMetadata(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentReceiptRuleSetMetadata(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentReceiptRulesList(v *[]*types.ReceiptRule, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentReceiptRulesList(v *[]types.ReceiptRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ReceiptRule + var sv []types.ReceiptRule if *v == nil { - sv = make([]*types.ReceiptRule, 0) + sv = make([]types.ReceiptRule, 0) } else { sv = *v } @@ -12510,11 +12518,13 @@ func awsAwsquery_deserializeDocumentReceiptRulesList(v *[]*types.ReceiptRule, de } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ReceiptRule + var col types.ReceiptRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReceiptRule(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentReceiptRule(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -12527,35 +12537,37 @@ func awsAwsquery_deserializeDocumentReceiptRulesList(v *[]*types.ReceiptRule, de return nil } -func awsAwsquery_deserializeDocumentReceiptRulesListUnwrapped(v *[]*types.ReceiptRule, decoder smithyxml.NodeDecoder) error { - var sv []*types.ReceiptRule +func awsAwsquery_deserializeDocumentReceiptRulesListUnwrapped(v *[]types.ReceiptRule, decoder smithyxml.NodeDecoder) error { + var sv []types.ReceiptRule if *v == nil { - sv = make([]*types.ReceiptRule, 0) + sv = make([]types.ReceiptRule, 0) } else { sv = *v } switch { default: - var mv *types.ReceiptRule + var mv types.ReceiptRule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentReceiptRule(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentReceiptRule(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentRecipientsList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentRecipientsList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -12573,20 +12585,17 @@ func awsAwsquery_deserializeDocumentRecipientsList(v *[]*string, decoder smithyx decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -12599,17 +12608,17 @@ func awsAwsquery_deserializeDocumentRecipientsList(v *[]*string, decoder smithyx return nil } -func awsAwsquery_deserializeDocumentRecipientsListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentRecipientsListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -12617,14 +12626,11 @@ func awsAwsquery_deserializeDocumentRecipientsListUnwrapped(v *[]*string, decode return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -12667,7 +12673,7 @@ func awsAwsquery_deserializeDocumentReputationOptions(v **types.ReputationOption if err != nil { return err } - sv.LastFreshStart = &t + sv.LastFreshStart = ptr.Time(t) } case strings.EqualFold("ReputationMetricsEnabled", t.Name.Local): @@ -12683,7 +12689,7 @@ func awsAwsquery_deserializeDocumentReputationOptions(v **types.ReputationOption if err != nil { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", val) } - sv.ReputationMetricsEnabled = &xtv + sv.ReputationMetricsEnabled = xtv } case strings.EqualFold("SendingEnabled", t.Name.Local): @@ -12699,7 +12705,7 @@ func awsAwsquery_deserializeDocumentReputationOptions(v **types.ReputationOption if err != nil { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", val) } - sv.SendingEnabled = &xtv + sv.SendingEnabled = xtv } default: @@ -12747,7 +12753,7 @@ func awsAwsquery_deserializeDocumentRuleDoesNotExistException(v **types.RuleDoes } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -12763,7 +12769,7 @@ func awsAwsquery_deserializeDocumentRuleDoesNotExistException(v **types.RuleDoes } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -12811,7 +12817,7 @@ func awsAwsquery_deserializeDocumentRuleSetDoesNotExistException(v **types.RuleS } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("Name", t.Name.Local): @@ -12827,7 +12833,7 @@ func awsAwsquery_deserializeDocumentRuleSetDoesNotExistException(v **types.RuleS } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -12875,7 +12881,7 @@ func awsAwsquery_deserializeDocumentS3Action(v **types.S3Action, decoder smithyx } if val != nil { xtv := string(val) - sv.BucketName = &xtv + sv.BucketName = ptr.String(xtv) } case strings.EqualFold("KmsKeyArn", t.Name.Local): @@ -12891,7 +12897,7 @@ func awsAwsquery_deserializeDocumentS3Action(v **types.S3Action, decoder smithyx } if val != nil { xtv := string(val) - sv.KmsKeyArn = &xtv + sv.KmsKeyArn = ptr.String(xtv) } case strings.EqualFold("ObjectKeyPrefix", t.Name.Local): @@ -12907,7 +12913,7 @@ func awsAwsquery_deserializeDocumentS3Action(v **types.S3Action, decoder smithyx } if val != nil { xtv := string(val) - sv.ObjectKeyPrefix = &xtv + sv.ObjectKeyPrefix = ptr.String(xtv) } case strings.EqualFold("TopicArn", t.Name.Local): @@ -12923,7 +12929,7 @@ func awsAwsquery_deserializeDocumentS3Action(v **types.S3Action, decoder smithyx } if val != nil { xtv := string(val) - sv.TopicArn = &xtv + sv.TopicArn = ptr.String(xtv) } default: @@ -12972,7 +12978,7 @@ func awsAwsquery_deserializeDocumentSendDataPoint(v **types.SendDataPoint, decod if err != nil { return err } - sv.Bounces = &i64 + sv.Bounces = i64 } case strings.EqualFold("Complaints", t.Name.Local): @@ -12989,7 +12995,7 @@ func awsAwsquery_deserializeDocumentSendDataPoint(v **types.SendDataPoint, decod if err != nil { return err } - sv.Complaints = &i64 + sv.Complaints = i64 } case strings.EqualFold("DeliveryAttempts", t.Name.Local): @@ -13006,7 +13012,7 @@ func awsAwsquery_deserializeDocumentSendDataPoint(v **types.SendDataPoint, decod if err != nil { return err } - sv.DeliveryAttempts = &i64 + sv.DeliveryAttempts = i64 } case strings.EqualFold("Rejects", t.Name.Local): @@ -13023,7 +13029,7 @@ func awsAwsquery_deserializeDocumentSendDataPoint(v **types.SendDataPoint, decod if err != nil { return err } - sv.Rejects = &i64 + sv.Rejects = i64 } case strings.EqualFold("Timestamp", t.Name.Local): @@ -13040,7 +13046,7 @@ func awsAwsquery_deserializeDocumentSendDataPoint(v **types.SendDataPoint, decod if err != nil { return err } - sv.Timestamp = &t + sv.Timestamp = ptr.Time(t) } default: @@ -13053,13 +13059,13 @@ func awsAwsquery_deserializeDocumentSendDataPoint(v **types.SendDataPoint, decod return nil } -func awsAwsquery_deserializeDocumentSendDataPointList(v *[]*types.SendDataPoint, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSendDataPointList(v *[]types.SendDataPoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SendDataPoint + var sv []types.SendDataPoint if *v == nil { - sv = make([]*types.SendDataPoint, 0) + sv = make([]types.SendDataPoint, 0) } else { sv = *v } @@ -13075,11 +13081,13 @@ func awsAwsquery_deserializeDocumentSendDataPointList(v *[]*types.SendDataPoint, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.SendDataPoint + var col types.SendDataPoint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSendDataPoint(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSendDataPoint(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13092,23 +13100,25 @@ func awsAwsquery_deserializeDocumentSendDataPointList(v *[]*types.SendDataPoint, return nil } -func awsAwsquery_deserializeDocumentSendDataPointListUnwrapped(v *[]*types.SendDataPoint, decoder smithyxml.NodeDecoder) error { - var sv []*types.SendDataPoint +func awsAwsquery_deserializeDocumentSendDataPointListUnwrapped(v *[]types.SendDataPoint, decoder smithyxml.NodeDecoder) error { + var sv []types.SendDataPoint if *v == nil { - sv = make([]*types.SendDataPoint, 0) + sv = make([]types.SendDataPoint, 0) } else { sv = *v } switch { default: - var mv *types.SendDataPoint + var mv types.SendDataPoint t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSendDataPoint(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSendDataPoint(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13162,7 +13172,7 @@ func awsAwsquery_deserializeDocumentSNSAction(v **types.SNSAction, decoder smith } if val != nil { xtv := string(val) - sv.TopicArn = &xtv + sv.TopicArn = ptr.String(xtv) } default: @@ -13210,7 +13220,7 @@ func awsAwsquery_deserializeDocumentSNSDestination(v **types.SNSDestination, dec } if val != nil { xtv := string(val) - sv.TopicARN = &xtv + sv.TopicARN = ptr.String(xtv) } default: @@ -13271,7 +13281,7 @@ func awsAwsquery_deserializeDocumentStopAction(v **types.StopAction, decoder smi } if val != nil { xtv := string(val) - sv.TopicArn = &xtv + sv.TopicArn = ptr.String(xtv) } default: @@ -13319,7 +13329,7 @@ func awsAwsquery_deserializeDocumentTemplate(v **types.Template, decoder smithyx } if val != nil { xtv := string(val) - sv.HtmlPart = &xtv + sv.HtmlPart = ptr.String(xtv) } case strings.EqualFold("SubjectPart", t.Name.Local): @@ -13335,7 +13345,7 @@ func awsAwsquery_deserializeDocumentTemplate(v **types.Template, decoder smithyx } if val != nil { xtv := string(val) - sv.SubjectPart = &xtv + sv.SubjectPart = ptr.String(xtv) } case strings.EqualFold("TemplateName", t.Name.Local): @@ -13351,7 +13361,7 @@ func awsAwsquery_deserializeDocumentTemplate(v **types.Template, decoder smithyx } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } case strings.EqualFold("TextPart", t.Name.Local): @@ -13367,7 +13377,7 @@ func awsAwsquery_deserializeDocumentTemplate(v **types.Template, decoder smithyx } if val != nil { xtv := string(val) - sv.TextPart = &xtv + sv.TextPart = ptr.String(xtv) } default: @@ -13415,7 +13425,7 @@ func awsAwsquery_deserializeDocumentTemplateDoesNotExistException(v **types.Temp } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("TemplateName", t.Name.Local): @@ -13431,7 +13441,7 @@ func awsAwsquery_deserializeDocumentTemplateDoesNotExistException(v **types.Temp } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } default: @@ -13480,7 +13490,7 @@ func awsAwsquery_deserializeDocumentTemplateMetadata(v **types.TemplateMetadata, if err != nil { return err } - sv.CreatedTimestamp = &t + sv.CreatedTimestamp = ptr.Time(t) } case strings.EqualFold("Name", t.Name.Local): @@ -13496,7 +13506,7 @@ func awsAwsquery_deserializeDocumentTemplateMetadata(v **types.TemplateMetadata, } if val != nil { xtv := string(val) - sv.Name = &xtv + sv.Name = ptr.String(xtv) } default: @@ -13509,13 +13519,13 @@ func awsAwsquery_deserializeDocumentTemplateMetadata(v **types.TemplateMetadata, return nil } -func awsAwsquery_deserializeDocumentTemplateMetadataList(v *[]*types.TemplateMetadata, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTemplateMetadataList(v *[]types.TemplateMetadata, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.TemplateMetadata + var sv []types.TemplateMetadata if *v == nil { - sv = make([]*types.TemplateMetadata, 0) + sv = make([]types.TemplateMetadata, 0) } else { sv = *v } @@ -13531,11 +13541,13 @@ func awsAwsquery_deserializeDocumentTemplateMetadataList(v *[]*types.TemplateMet } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.TemplateMetadata + var col types.TemplateMetadata nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTemplateMetadata(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTemplateMetadata(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -13548,23 +13560,25 @@ func awsAwsquery_deserializeDocumentTemplateMetadataList(v *[]*types.TemplateMet return nil } -func awsAwsquery_deserializeDocumentTemplateMetadataListUnwrapped(v *[]*types.TemplateMetadata, decoder smithyxml.NodeDecoder) error { - var sv []*types.TemplateMetadata +func awsAwsquery_deserializeDocumentTemplateMetadataListUnwrapped(v *[]types.TemplateMetadata, decoder smithyxml.NodeDecoder) error { + var sv []types.TemplateMetadata if *v == nil { - sv = make([]*types.TemplateMetadata, 0) + sv = make([]types.TemplateMetadata, 0) } else { sv = *v } switch { default: - var mv *types.TemplateMetadata + var mv types.TemplateMetadata t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTemplateMetadata(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTemplateMetadata(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -13605,7 +13619,7 @@ func awsAwsquery_deserializeDocumentTrackingOptions(v **types.TrackingOptions, d } if val != nil { xtv := string(val) - sv.CustomRedirectDomain = &xtv + sv.CustomRedirectDomain = ptr.String(xtv) } default: @@ -13653,7 +13667,7 @@ func awsAwsquery_deserializeDocumentTrackingOptionsAlreadyExistsException(v **ty } if val != nil { xtv := string(val) - sv.ConfigurationSetName = &xtv + sv.ConfigurationSetName = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -13669,7 +13683,7 @@ func awsAwsquery_deserializeDocumentTrackingOptionsAlreadyExistsException(v **ty } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13717,7 +13731,7 @@ func awsAwsquery_deserializeDocumentTrackingOptionsDoesNotExistException(v **typ } if val != nil { xtv := string(val) - sv.ConfigurationSetName = &xtv + sv.ConfigurationSetName = ptr.String(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -13733,7 +13747,7 @@ func awsAwsquery_deserializeDocumentTrackingOptionsDoesNotExistException(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -13746,13 +13760,13 @@ func awsAwsquery_deserializeDocumentTrackingOptionsDoesNotExistException(v **typ return nil } -func awsAwsquery_deserializeDocumentVerificationAttributes(v *map[string]*types.IdentityVerificationAttributes, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentVerificationAttributes(v *map[string]types.IdentityVerificationAttributes, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*types.IdentityVerificationAttributes + var sv map[string]types.IdentityVerificationAttributes if *v == nil { - sv = make(map[string]*types.IdentityVerificationAttributes, 0) + sv = make(map[string]types.IdentityVerificationAttributes, 0) } else { sv = *v } @@ -13776,23 +13790,23 @@ func awsAwsquery_deserializeDocumentVerificationAttributes(v *map[string]*types. return nil } -func awsAwsquery_deserializeDocumentVerificationAttributesUnwrapped(v *map[string]*types.IdentityVerificationAttributes, decoder smithyxml.NodeDecoder) error { - var sv map[string]*types.IdentityVerificationAttributes +func awsAwsquery_deserializeDocumentVerificationAttributesUnwrapped(v *map[string]types.IdentityVerificationAttributes, decoder smithyxml.NodeDecoder) error { + var sv map[string]types.IdentityVerificationAttributes if *v == nil { - sv = make(map[string]*types.IdentityVerificationAttributes, 0) + sv = make(map[string]types.IdentityVerificationAttributes, 0) } else { sv = *v } - var ek *string - var ev *types.IdentityVerificationAttributes + var ek string + var ev types.IdentityVerificationAttributes for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -13802,21 +13816,21 @@ func awsAwsquery_deserializeDocumentVerificationAttributesUnwrapped(v *map[strin return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentIdentityVerificationAttributes(&ev, nodeDecoder); err != nil { + mapVar := ev + destAddr := &mapVar + if err := awsAwsquery_deserializeDocumentIdentityVerificationAttributes(&destAddr, nodeDecoder); err != nil { return err } + ev = *destAddr default: // Do nothing and ignore the unexpected tag element @@ -13826,13 +13840,13 @@ func awsAwsquery_deserializeDocumentVerificationAttributesUnwrapped(v *map[strin *v = sv return nil } -func awsAwsquery_deserializeDocumentVerificationTokenList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentVerificationTokenList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -13850,20 +13864,17 @@ func awsAwsquery_deserializeDocumentVerificationTokenList(v *[]*string, decoder decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -13876,17 +13887,17 @@ func awsAwsquery_deserializeDocumentVerificationTokenList(v *[]*string, decoder return nil } -func awsAwsquery_deserializeDocumentVerificationTokenListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentVerificationTokenListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -13894,14 +13905,11 @@ func awsAwsquery_deserializeDocumentVerificationTokenListUnwrapped(v *[]*string, return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -13943,7 +13951,7 @@ func awsAwsquery_deserializeDocumentWorkmailAction(v **types.WorkmailAction, dec } if val != nil { xtv := string(val) - sv.OrganizationArn = &xtv + sv.OrganizationArn = ptr.String(xtv) } case strings.EqualFold("TopicArn", t.Name.Local): @@ -13959,7 +13967,7 @@ func awsAwsquery_deserializeDocumentWorkmailAction(v **types.WorkmailAction, dec } if val != nil { xtv := string(val) - sv.TopicArn = &xtv + sv.TopicArn = ptr.String(xtv) } default: @@ -14835,7 +14843,7 @@ func awsAwsquery_deserializeOpDocumentGetAccountSendingEnabledOutput(v **GetAcco if err != nil { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", val) } - sv.Enabled = &xtv + sv.Enabled = xtv } default: @@ -14883,7 +14891,7 @@ func awsAwsquery_deserializeOpDocumentGetCustomVerificationEmailTemplateOutput(v } if val != nil { xtv := string(val) - sv.FailureRedirectionURL = &xtv + sv.FailureRedirectionURL = ptr.String(xtv) } case strings.EqualFold("FromEmailAddress", t.Name.Local): @@ -14899,7 +14907,7 @@ func awsAwsquery_deserializeOpDocumentGetCustomVerificationEmailTemplateOutput(v } if val != nil { xtv := string(val) - sv.FromEmailAddress = &xtv + sv.FromEmailAddress = ptr.String(xtv) } case strings.EqualFold("SuccessRedirectionURL", t.Name.Local): @@ -14915,7 +14923,7 @@ func awsAwsquery_deserializeOpDocumentGetCustomVerificationEmailTemplateOutput(v } if val != nil { xtv := string(val) - sv.SuccessRedirectionURL = &xtv + sv.SuccessRedirectionURL = ptr.String(xtv) } case strings.EqualFold("TemplateContent", t.Name.Local): @@ -14931,7 +14939,7 @@ func awsAwsquery_deserializeOpDocumentGetCustomVerificationEmailTemplateOutput(v } if val != nil { xtv := string(val) - sv.TemplateContent = &xtv + sv.TemplateContent = ptr.String(xtv) } case strings.EqualFold("TemplateName", t.Name.Local): @@ -14947,7 +14955,7 @@ func awsAwsquery_deserializeOpDocumentGetCustomVerificationEmailTemplateOutput(v } if val != nil { xtv := string(val) - sv.TemplateName = &xtv + sv.TemplateName = ptr.String(xtv) } case strings.EqualFold("TemplateSubject", t.Name.Local): @@ -14963,7 +14971,7 @@ func awsAwsquery_deserializeOpDocumentGetCustomVerificationEmailTemplateOutput(v } if val != nil { xtv := string(val) - sv.TemplateSubject = &xtv + sv.TemplateSubject = ptr.String(xtv) } default: @@ -15202,7 +15210,7 @@ func awsAwsquery_deserializeOpDocumentGetSendQuotaOutput(v **GetSendQuotaOutput, if err != nil { return err } - sv.Max24HourSend = &f64 + sv.Max24HourSend = f64 } case strings.EqualFold("MaxSendRate", t.Name.Local): @@ -15219,7 +15227,7 @@ func awsAwsquery_deserializeOpDocumentGetSendQuotaOutput(v **GetSendQuotaOutput, if err != nil { return err } - sv.MaxSendRate = &f64 + sv.MaxSendRate = f64 } case strings.EqualFold("SentLast24Hours", t.Name.Local): @@ -15236,7 +15244,7 @@ func awsAwsquery_deserializeOpDocumentGetSendQuotaOutput(v **GetSendQuotaOutput, if err != nil { return err } - sv.SentLast24Hours = &f64 + sv.SentLast24Hours = f64 } default: @@ -15366,7 +15374,7 @@ func awsAwsquery_deserializeOpDocumentListConfigurationSetsOutput(v **ListConfig } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -15420,7 +15428,7 @@ func awsAwsquery_deserializeOpDocumentListCustomVerificationEmailTemplatesOutput } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -15474,7 +15482,7 @@ func awsAwsquery_deserializeOpDocumentListIdentitiesOutput(v **ListIdentitiesOut } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -15598,7 +15606,7 @@ func awsAwsquery_deserializeOpDocumentListReceiptRuleSetsOutput(v **ListReceiptR } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("RuleSets", t.Name.Local): @@ -15652,7 +15660,7 @@ func awsAwsquery_deserializeOpDocumentListTemplatesOutput(v **ListTemplatesOutpu } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("TemplatesMetadata", t.Name.Local): @@ -15840,7 +15848,7 @@ func awsAwsquery_deserializeOpDocumentSendBounceOutput(v **SendBounceOutput, dec } if val != nil { xtv := string(val) - sv.MessageId = &xtv + sv.MessageId = ptr.String(xtv) } default: @@ -15926,7 +15934,7 @@ func awsAwsquery_deserializeOpDocumentSendCustomVerificationEmailOutput(v **Send } if val != nil { xtv := string(val) - sv.MessageId = &xtv + sv.MessageId = ptr.String(xtv) } default: @@ -15974,7 +15982,7 @@ func awsAwsquery_deserializeOpDocumentSendEmailOutput(v **SendEmailOutput, decod } if val != nil { xtv := string(val) - sv.MessageId = &xtv + sv.MessageId = ptr.String(xtv) } default: @@ -16022,7 +16030,7 @@ func awsAwsquery_deserializeOpDocumentSendRawEmailOutput(v **SendRawEmailOutput, } if val != nil { xtv := string(val) - sv.MessageId = &xtv + sv.MessageId = ptr.String(xtv) } default: @@ -16070,7 +16078,7 @@ func awsAwsquery_deserializeOpDocumentSendTemplatedEmailOutput(v **SendTemplated } if val != nil { xtv := string(val) - sv.MessageId = &xtv + sv.MessageId = ptr.String(xtv) } default: @@ -16342,7 +16350,7 @@ func awsAwsquery_deserializeOpDocumentTestRenderTemplateOutput(v **TestRenderTem } if val != nil { xtv := string(val) - sv.RenderedTemplate = &xtv + sv.RenderedTemplate = ptr.String(xtv) } default: @@ -16684,7 +16692,7 @@ func awsAwsquery_deserializeOpDocumentVerifyDomainIdentityOutput(v **VerifyDomai } if val != nil { xtv := string(val) - sv.VerificationToken = &xtv + sv.VerificationToken = ptr.String(xtv) } default: diff --git a/service/ses/go.mod b/service/ses/go.mod index 3e5ca8944a5..25d34682307 100644 --- a/service/ses/go.mod +++ b/service/ses/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/ses go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/ses/serializers.go b/service/ses/serializers.go index 682fe316a1e..a9c55dc8aa4 100644 --- a/service/ses/serializers.go +++ b/service/ses/serializers.go @@ -3924,18 +3924,15 @@ func awsAwsquery_serializeDocumentAddHeaderAction(v *types.AddHeaderAction, valu return nil } -func awsAwsquery_serializeDocumentAddressList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAddressList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4022,18 +4019,15 @@ func awsAwsquery_serializeDocumentBouncedRecipientInfo(v *types.BouncedRecipient return nil } -func awsAwsquery_serializeDocumentBouncedRecipientInfoList(v []*types.BouncedRecipientInfo, value query.Value) error { +func awsAwsquery_serializeDocumentBouncedRecipientInfoList(v []types.BouncedRecipientInfo, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentBouncedRecipientInfo(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentBouncedRecipientInfo(&v[i], av); err != nil { return err } } @@ -4066,18 +4060,15 @@ func awsAwsquery_serializeDocumentBulkEmailDestination(v *types.BulkEmailDestina return nil } -func awsAwsquery_serializeDocumentBulkEmailDestinationList(v []*types.BulkEmailDestination, value query.Value) error { +func awsAwsquery_serializeDocumentBulkEmailDestinationList(v []types.BulkEmailDestination, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentBulkEmailDestination(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentBulkEmailDestination(&v[i], av); err != nil { return err } } @@ -4120,18 +4111,15 @@ func awsAwsquery_serializeDocumentCloudWatchDimensionConfiguration(v *types.Clou return nil } -func awsAwsquery_serializeDocumentCloudWatchDimensionConfigurations(v []*types.CloudWatchDimensionConfiguration, value query.Value) error { +func awsAwsquery_serializeDocumentCloudWatchDimensionConfigurations(v []types.CloudWatchDimensionConfiguration, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentCloudWatchDimensionConfiguration(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentCloudWatchDimensionConfiguration(&v[i], av); err != nil { return err } } @@ -4231,9 +4219,9 @@ func awsAwsquery_serializeDocumentEventDestination(v *types.EventDestination, va } } - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } if v.KinesisFirehoseDestination != nil { @@ -4295,36 +4283,30 @@ func awsAwsquery_serializeDocumentExtensionField(v *types.ExtensionField, value return nil } -func awsAwsquery_serializeDocumentExtensionFieldList(v []*types.ExtensionField, value query.Value) error { +func awsAwsquery_serializeDocumentExtensionFieldList(v []types.ExtensionField, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentExtensionField(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentExtensionField(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentIdentityList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentIdentityList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4430,36 +4412,30 @@ func awsAwsquery_serializeDocumentMessageTag(v *types.MessageTag, value query.Va return nil } -func awsAwsquery_serializeDocumentMessageTagList(v []*types.MessageTag, value query.Value) error { +func awsAwsquery_serializeDocumentMessageTagList(v []types.MessageTag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentMessageTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentMessageTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentPolicyNameList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentPolicyNameList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4532,18 +4508,15 @@ func awsAwsquery_serializeDocumentReceiptAction(v *types.ReceiptAction, value qu return nil } -func awsAwsquery_serializeDocumentReceiptActionsList(v []*types.ReceiptAction, value query.Value) error { +func awsAwsquery_serializeDocumentReceiptActionsList(v []types.ReceiptAction, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentReceiptAction(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentReceiptAction(&v[i], av); err != nil { return err } } @@ -4597,9 +4570,9 @@ func awsAwsquery_serializeDocumentReceiptRule(v *types.ReceiptRule, value query. } } - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } if v.Name != nil { @@ -4614,9 +4587,9 @@ func awsAwsquery_serializeDocumentReceiptRule(v *types.ReceiptRule, value query. } } - if v.ScanEnabled != nil { + if v.ScanEnabled { objectKey := object.Key("ScanEnabled") - objectKey.Boolean(*v.ScanEnabled) + objectKey.Boolean(v.ScanEnabled) } if len(v.TlsPolicy) > 0 { @@ -4627,18 +4600,15 @@ func awsAwsquery_serializeDocumentReceiptRule(v *types.ReceiptRule, value query. return nil } -func awsAwsquery_serializeDocumentReceiptRuleNamesList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentReceiptRuleNamesList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4687,18 +4657,15 @@ func awsAwsquery_serializeDocumentRecipientDsnFields(v *types.RecipientDsnFields return nil } -func awsAwsquery_serializeDocumentRecipientsList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentRecipientsList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5823,9 +5790,9 @@ func awsAwsquery_serializeOpDocumentSetIdentityDkimEnabledInput(v *SetIdentityDk object := value.Object() _ = object - if v.DkimEnabled != nil { + if v.DkimEnabled { objectKey := object.Key("DkimEnabled") - objectKey.Boolean(*v.DkimEnabled) + objectKey.Boolean(v.DkimEnabled) } if v.Identity != nil { @@ -5840,9 +5807,9 @@ func awsAwsquery_serializeOpDocumentSetIdentityFeedbackForwardingEnabledInput(v object := value.Object() _ = object - if v.ForwardingEnabled != nil { + if v.ForwardingEnabled { objectKey := object.Key("ForwardingEnabled") - objectKey.Boolean(*v.ForwardingEnabled) + objectKey.Boolean(v.ForwardingEnabled) } if v.Identity != nil { @@ -5857,9 +5824,9 @@ func awsAwsquery_serializeOpDocumentSetIdentityHeadersInNotificationsEnabledInpu object := value.Object() _ = object - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } if v.Identity != nil { @@ -5962,9 +5929,9 @@ func awsAwsquery_serializeOpDocumentUpdateAccountSendingEnabledInput(v *UpdateAc object := value.Object() _ = object - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } return nil @@ -5998,9 +5965,9 @@ func awsAwsquery_serializeOpDocumentUpdateConfigurationSetReputationMetricsEnabl objectKey.String(*v.ConfigurationSetName) } - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } return nil @@ -6015,9 +5982,9 @@ func awsAwsquery_serializeOpDocumentUpdateConfigurationSetSendingEnabledInput(v objectKey.String(*v.ConfigurationSetName) } - if v.Enabled != nil { + if v.Enabled { objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) + objectKey.Boolean(v.Enabled) } return nil diff --git a/service/ses/types/types.go b/service/ses/types/types.go index 2193b56f4cc..48b68258a19 100644 --- a/service/ses/types/types.go +++ b/service/ses/types/types.go @@ -126,7 +126,7 @@ type BulkEmailDestination struct { // A list of tags, in the form of name/value pairs, to apply to an email that you // send using SendBulkTemplatedEmail. Tags correspond to characteristics of the // email that you define, so that you can publish email sending events. - ReplacementTags []*MessageTag + ReplacementTags []MessageTag // A list of replacement values to apply to the template. This parameter is a JSON // object, typically consisting of key-value pairs in which the keys correspond to @@ -210,7 +210,7 @@ type CloudWatchDestination struct { // sending events to Amazon CloudWatch. // // This member is required. - DimensionConfigurations []*CloudWatchDimensionConfiguration + DimensionConfigurations []CloudWatchDimensionConfiguration } // Contains the dimension configuration to use when you publish email sending @@ -334,13 +334,13 @@ type DeliveryOptions struct { type Destination struct { // The recipients to place on the BCC: line of the message. - BccAddresses []*string + BccAddresses []string // The recipients to place on the CC: line of the message. - CcAddresses []*string + CcAddresses []string // The recipients to place on the To: line of the message. - ToAddresses []*string + ToAddresses []string } // Contains information about the event destination that the specified email @@ -378,7 +378,7 @@ type EventDestination struct { // email with the associated configuration set. Set to true to enable publishing to // this destination; set to false to prevent publishing to this destination. The // default value is false. - Enabled *bool + Enabled bool // An object that contains the delivery stream ARN and the IAM role ARN associated // with an Amazon Kinesis Firehose event destination. @@ -415,7 +415,7 @@ type IdentityDkimAttributes struct { // otherwise. The default value is true. // // This member is required. - DkimEnabled *bool + DkimEnabled bool // Describes whether Amazon SES has successfully verified the DKIM DNS records // (tokens) published in the domain name's DNS. (This only applies to domain @@ -433,7 +433,7 @@ type IdentityDkimAttributes struct { // identities.) For more information about creating DNS records using DKIM tokens, // see the Amazon SES Developer Guide // (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html). - DkimTokens []*string + DkimTokens []string } // Represents the custom MAIL FROM domain attributes of a verified identity (email @@ -498,25 +498,25 @@ type IdentityNotificationAttributes struct { // Amazon SNS topics. // // This member is required. - ForwardingEnabled *bool + ForwardingEnabled bool // Describes whether Amazon SES includes the original email headers in Amazon SNS // notifications of type Bounce. A value of true specifies that Amazon SES will // include headers in bounce notifications, and a value of false specifies that // Amazon SES will not include headers in bounce notifications. - HeadersInBounceNotificationsEnabled *bool + HeadersInBounceNotificationsEnabled bool // Describes whether Amazon SES includes the original email headers in Amazon SNS // notifications of type Complaint. A value of true specifies that Amazon SES will // include headers in complaint notifications, and a value of false specifies that // Amazon SES will not include headers in complaint notifications. - HeadersInComplaintNotificationsEnabled *bool + HeadersInComplaintNotificationsEnabled bool // Describes whether Amazon SES includes the original email headers in Amazon SNS // notifications of type Delivery. A value of true specifies that Amazon SES will // include headers in delivery notifications, and a value of false specifies that // Amazon SES will not include headers in delivery notifications. - HeadersInDeliveryNotificationsEnabled *bool + HeadersInDeliveryNotificationsEnabled bool } // Represents the verification attributes of a single identity. @@ -625,7 +625,7 @@ type MessageDsn struct { ArrivalDate *time.Time // Additional X-headers to include in the DSN. - ExtensionFields []*ExtensionField + ExtensionFields []ExtensionField } // Contains the name and value of a tag that you can provide to SendEmail or @@ -787,19 +787,19 @@ type ReceiptRule struct { // An ordered list of actions to perform on messages that match at least one of the // recipient email addresses or domains specified in the receipt rule. - Actions []*ReceiptAction + Actions []ReceiptAction // If true, the receipt rule is active. The default value is false. - Enabled *bool + Enabled bool // The recipient domains and email addresses that the receipt rule applies to. If // this field is not specified, this rule will match all recipients under all // verified domains. - Recipients []*string + Recipients []string // If true, then messages that this receipt rule applies to are scanned for spam // and viruses. The default value is false. - ScanEnabled *bool + ScanEnabled bool // Specifies whether Amazon SES should require that incoming email is delivered // over a connection encrypted with Transport Layer Security (TLS). If this @@ -856,7 +856,7 @@ type RecipientDsnFields struct { DiagnosticCode *string // Additional X-headers to include in the DSN. - ExtensionFields []*ExtensionField + ExtensionFields []ExtensionField // The email address that the message was ultimately delivered to. This corresponds // to the Final-Recipient in the DSN. If not specified, FinalRecipient will be set @@ -893,14 +893,14 @@ type ReputationOptions struct { // configuration set, such as bounce and complaint rates, to Amazon CloudWatch. If // the value is true, reputation metrics are published. If the value is false, // reputation metrics are not published. The default value is false. - ReputationMetricsEnabled *bool + ReputationMetricsEnabled bool // Describes whether email sending is enabled or disabled for the configuration // set. If the value is true, then Amazon SES will send emails that use the // configuration set. If the value is false, Amazon SES will not send emails that // use the configuration set. The default value is true. You can change this // setting using UpdateConfigurationSetSendingEnabled. - SendingEnabled *bool + SendingEnabled bool } // When included in a receipt rule, this action saves the received message to an @@ -977,16 +977,16 @@ type S3Action struct { type SendDataPoint struct { // Number of emails that have bounced. - Bounces *int64 + Bounces int64 // Number of unwanted emails that were rejected by recipients. - Complaints *int64 + Complaints int64 // Number of emails that have been sent. - DeliveryAttempts *int64 + DeliveryAttempts int64 // Number of emails rejected by Amazon SES. - Rejects *int64 + Rejects int64 // Time of the data point. Timestamp *time.Time diff --git a/service/ses/validators.go b/service/ses/validators.go index 6419a40a530..bf7bc85c063 100644 --- a/service/ses/validators.go +++ b/service/ses/validators.go @@ -1483,13 +1483,13 @@ func validateBouncedRecipientInfo(v *types.BouncedRecipientInfo) error { } } -func validateBouncedRecipientInfoList(v []*types.BouncedRecipientInfo) error { +func validateBouncedRecipientInfoList(v []types.BouncedRecipientInfo) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BouncedRecipientInfoList"} for i := range v { - if err := validateBouncedRecipientInfo(v[i]); err != nil { + if err := validateBouncedRecipientInfo(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1520,13 +1520,13 @@ func validateBulkEmailDestination(v *types.BulkEmailDestination) error { } } -func validateBulkEmailDestinationList(v []*types.BulkEmailDestination) error { +func validateBulkEmailDestinationList(v []types.BulkEmailDestination) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BulkEmailDestinationList"} for i := range v { - if err := validateBulkEmailDestination(v[i]); err != nil { + if err := validateBulkEmailDestination(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1577,13 +1577,13 @@ func validateCloudWatchDimensionConfiguration(v *types.CloudWatchDimensionConfig } } -func validateCloudWatchDimensionConfigurations(v []*types.CloudWatchDimensionConfiguration) error { +func validateCloudWatchDimensionConfigurations(v []types.CloudWatchDimensionConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CloudWatchDimensionConfigurations"} for i := range v { - if err := validateCloudWatchDimensionConfiguration(v[i]); err != nil { + if err := validateCloudWatchDimensionConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1675,13 +1675,13 @@ func validateExtensionField(v *types.ExtensionField) error { } } -func validateExtensionFieldList(v []*types.ExtensionField) error { +func validateExtensionFieldList(v []types.ExtensionField) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ExtensionFieldList"} for i := range v { - if err := validateExtensionField(v[i]); err != nil { + if err := validateExtensionField(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1789,13 +1789,13 @@ func validateMessageTag(v *types.MessageTag) error { } } -func validateMessageTagList(v []*types.MessageTag) error { +func validateMessageTagList(v []types.MessageTag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MessageTagList"} for i := range v { - if err := validateMessageTag(v[i]); err != nil { + if err := validateMessageTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1868,13 +1868,13 @@ func validateReceiptAction(v *types.ReceiptAction) error { } } -func validateReceiptActionsList(v []*types.ReceiptAction) error { +func validateReceiptActionsList(v []types.ReceiptAction) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReceiptActionsList"} for i := range v { - if err := validateReceiptAction(v[i]); err != nil { + if err := validateReceiptAction(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2808,9 +2808,6 @@ func validateOpSetIdentityDkimEnabledInput(v *SetIdentityDkimEnabledInput) error if v.Identity == nil { invalidParams.Add(smithy.NewErrParamRequired("Identity")) } - if v.DkimEnabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("DkimEnabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2823,9 +2820,6 @@ func validateOpSetIdentityFeedbackForwardingEnabledInput(v *SetIdentityFeedbackF return nil } invalidParams := smithy.InvalidParamsError{Context: "SetIdentityFeedbackForwardingEnabledInput"} - if v.ForwardingEnabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("ForwardingEnabled")) - } if v.Identity == nil { invalidParams.Add(smithy.NewErrParamRequired("Identity")) } @@ -2847,9 +2841,6 @@ func validateOpSetIdentityHeadersInNotificationsEnabledInput(v *SetIdentityHeade if len(v.NotificationType) == 0 { invalidParams.Add(smithy.NewErrParamRequired("NotificationType")) } - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2953,9 +2944,6 @@ func validateOpUpdateConfigurationSetReputationMetricsEnabledInput(v *UpdateConf return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateConfigurationSetReputationMetricsEnabledInput"} - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if v.ConfigurationSetName == nil { invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) } @@ -2971,9 +2959,6 @@ func validateOpUpdateConfigurationSetSendingEnabledInput(v *UpdateConfigurationS return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateConfigurationSetSendingEnabledInput"} - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } if v.ConfigurationSetName == nil { invalidParams.Add(smithy.NewErrParamRequired("ConfigurationSetName")) } diff --git a/service/sesv2/api_op_CreateConfigurationSet.go b/service/sesv2/api_op_CreateConfigurationSet.go index 6745ae15be9..7f781a65857 100644 --- a/service/sesv2/api_op_CreateConfigurationSet.go +++ b/service/sesv2/api_op_CreateConfigurationSet.go @@ -57,7 +57,7 @@ type CreateConfigurationSetInput struct { // An array of objects that define the tags (keys and values) that you want to // associate with the configuration set. - Tags []*types.Tag + Tags []types.Tag // An object that defines the open and click tracking options for emails that you // send using the configuration set. diff --git a/service/sesv2/api_op_CreateContact.go b/service/sesv2/api_op_CreateContact.go index 8a0c131d59f..a8173a34ef6 100644 --- a/service/sesv2/api_op_CreateContact.go +++ b/service/sesv2/api_op_CreateContact.go @@ -44,11 +44,11 @@ type CreateContactInput struct { AttributesData *string // The contact's preferences for being opted-in to or opted-out of topics. - TopicPreferences []*types.TopicPreference + TopicPreferences []types.TopicPreference // A boolean value status noting if the contact is unsubscribed from all contact // list topics. - UnsubscribeAll *bool + UnsubscribeAll bool } type CreateContactOutput struct { diff --git a/service/sesv2/api_op_CreateContactList.go b/service/sesv2/api_op_CreateContactList.go index 8e4774b98cc..d943f7aa88a 100644 --- a/service/sesv2/api_op_CreateContactList.go +++ b/service/sesv2/api_op_CreateContactList.go @@ -38,11 +38,11 @@ type CreateContactListInput struct { Description *string // The tags associated with a contact list. - Tags []*types.Tag + Tags []types.Tag // An interest group, theme, or label within a list. A contact list can have // multiple topics. - Topics []*types.Topic + Topics []types.Topic } type CreateContactListOutput struct { diff --git a/service/sesv2/api_op_CreateDedicatedIpPool.go b/service/sesv2/api_op_CreateDedicatedIpPool.go index 84b148812cd..b31f1247aab 100644 --- a/service/sesv2/api_op_CreateDedicatedIpPool.go +++ b/service/sesv2/api_op_CreateDedicatedIpPool.go @@ -41,7 +41,7 @@ type CreateDedicatedIpPoolInput struct { // An object that defines the tags (keys and values) that you want to associate // with the pool. - Tags []*types.Tag + Tags []types.Tag } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/sesv2/api_op_CreateDeliverabilityTestReport.go b/service/sesv2/api_op_CreateDeliverabilityTestReport.go index 2d148e9aed6..aec5604ac52 100644 --- a/service/sesv2/api_op_CreateDeliverabilityTestReport.go +++ b/service/sesv2/api_op_CreateDeliverabilityTestReport.go @@ -61,7 +61,7 @@ type CreateDeliverabilityTestReportInput struct { // An array of objects that define the tags (keys and values) that you want to // associate with the predictive inbox placement test. - Tags []*types.Tag + Tags []types.Tag } // Information about the predictive inbox placement test that you created. diff --git a/service/sesv2/api_op_CreateEmailIdentity.go b/service/sesv2/api_op_CreateEmailIdentity.go index 653eeb645e7..36d8790d336 100644 --- a/service/sesv2/api_op_CreateEmailIdentity.go +++ b/service/sesv2/api_op_CreateEmailIdentity.go @@ -64,7 +64,7 @@ type CreateEmailIdentityInput struct { // An array of objects that define the tags (keys and values) that you want to // associate with the email identity. - Tags []*types.Tag + Tags []types.Tag } // If the email identity is a domain, this object contains information about the @@ -82,7 +82,7 @@ type CreateEmailIdentityOutput struct { // verified email addresses or domains. For more information about verifying // identities, see the Amazon Pinpoint User Guide // (https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html). - VerifiedForSendingStatus *bool + VerifiedForSendingStatus bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sesv2/api_op_GetAccount.go b/service/sesv2/api_op_GetAccount.go index 190b65f4fdc..f98828d8818 100644 --- a/service/sesv2/api_op_GetAccount.go +++ b/service/sesv2/api_op_GetAccount.go @@ -39,7 +39,7 @@ type GetAccountOutput struct { // Indicates whether or not the automatic warm-up feature is enabled for dedicated // IP addresses that are associated with your account. - DedicatedIpAutoWarmupEnabled *bool + DedicatedIpAutoWarmupEnabled bool // An object that defines your account details. Details *types.AccountDetails @@ -69,7 +69,7 @@ type GetAccountOutput struct { // has production access. When your account has production access, you can send // email to any address. The sending quota and maximum sending rate for your // account vary based on your specific use case. - ProductionAccessEnabled *bool + ProductionAccessEnabled bool // An object that contains information about the per-day and per-second sending // limits for your Amazon SES account in the current AWS Region. @@ -77,7 +77,7 @@ type GetAccountOutput struct { // Indicates whether or not email sending is enabled for your Amazon SES account in // the current AWS Region. - SendingEnabled *bool + SendingEnabled bool // An object that contains information about the email address suppression // preferences for your account in the current AWS Region. diff --git a/service/sesv2/api_op_GetBlacklistReports.go b/service/sesv2/api_op_GetBlacklistReports.go index 3bca4a4232f..67bc400ec7c 100644 --- a/service/sesv2/api_op_GetBlacklistReports.go +++ b/service/sesv2/api_op_GetBlacklistReports.go @@ -36,7 +36,7 @@ type GetBlacklistReportsInput struct { // Amazon SES or Amazon Pinpoint. // // This member is required. - BlacklistItemNames []*string + BlacklistItemNames []string } // An object that contains information about blacklist events. @@ -46,7 +46,7 @@ type GetBlacklistReportsOutput struct { // IP addresses appears on. // // This member is required. - BlacklistReport map[string][]*types.BlacklistEntry + BlacklistReport map[string][]types.BlacklistEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sesv2/api_op_GetConfigurationSet.go b/service/sesv2/api_op_GetConfigurationSet.go index 3c450df6205..f97bbb0d4af 100644 --- a/service/sesv2/api_op_GetConfigurationSet.go +++ b/service/sesv2/api_op_GetConfigurationSet.go @@ -67,7 +67,7 @@ type GetConfigurationSetOutput struct { // An array of objects that define the tags (keys and values) that are associated // with the configuration set. - Tags []*types.Tag + Tags []types.Tag // An object that defines the open and click tracking options for emails that you // send using the configuration set. diff --git a/service/sesv2/api_op_GetConfigurationSetEventDestinations.go b/service/sesv2/api_op_GetConfigurationSetEventDestinations.go index 7eebc705042..d1e79422ee3 100644 --- a/service/sesv2/api_op_GetConfigurationSetEventDestinations.go +++ b/service/sesv2/api_op_GetConfigurationSetEventDestinations.go @@ -47,7 +47,7 @@ type GetConfigurationSetEventDestinationsOutput struct { // An array that includes all of the events destinations that have been configured // for the configuration set. - EventDestinations []*types.EventDestination + EventDestinations []types.EventDestination // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sesv2/api_op_GetContact.go b/service/sesv2/api_op_GetContact.go index 8cf37d543f1..140fea72740 100644 --- a/service/sesv2/api_op_GetContact.go +++ b/service/sesv2/api_op_GetContact.go @@ -59,14 +59,14 @@ type GetContactOutput struct { LastUpdatedTimestamp *time.Time // The default topic preferences applied to the contact. - TopicDefaultPreferences []*types.TopicPreference + TopicDefaultPreferences []types.TopicPreference // The contact's preference for being opted-in to or opted-out of a topic.> - TopicPreferences []*types.TopicPreference + TopicPreferences []types.TopicPreference // A boolean value status noting if the contact is unsubscribed from all contact // list topics. - UnsubscribeAll *bool + UnsubscribeAll bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sesv2/api_op_GetContactList.go b/service/sesv2/api_op_GetContactList.go index 77ad690d33f..6dc29554210 100644 --- a/service/sesv2/api_op_GetContactList.go +++ b/service/sesv2/api_op_GetContactList.go @@ -52,11 +52,11 @@ type GetContactListOutput struct { LastUpdatedTimestamp *time.Time // The tags associated with a contact list. - Tags []*types.Tag + Tags []types.Tag // An interest group, theme, or label within a list. A contact list can have // multiple topics. - Topics []*types.Topic + Topics []types.Topic // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sesv2/api_op_GetDedicatedIps.go b/service/sesv2/api_op_GetDedicatedIps.go index b8edf08946e..a5c16327673 100644 --- a/service/sesv2/api_op_GetDedicatedIps.go +++ b/service/sesv2/api_op_GetDedicatedIps.go @@ -49,7 +49,7 @@ type GetDedicatedIpsInput struct { type GetDedicatedIpsOutput struct { // A list of dedicated IP addresses that are associated with your AWS account. - DedicatedIps []*types.DedicatedIp + DedicatedIps []types.DedicatedIp // A token that indicates that there are additional dedicated IP addresses to list. // To view additional addresses, issue another request to GetDedicatedIps, passing diff --git a/service/sesv2/api_op_GetDeliverabilityDashboardOptions.go b/service/sesv2/api_op_GetDeliverabilityDashboardOptions.go index 2bff7917dc6..006724f9d0b 100644 --- a/service/sesv2/api_op_GetDeliverabilityDashboardOptions.go +++ b/service/sesv2/api_op_GetDeliverabilityDashboardOptions.go @@ -55,7 +55,7 @@ type GetDeliverabilityDashboardOptionsOutput struct { // true, the dashboard is enabled. // // This member is required. - DashboardEnabled *bool + DashboardEnabled bool // The current status of your Deliverability dashboard subscription. If this value // is PENDING_EXPIRATION, your subscription is scheduled to expire at the end of @@ -65,12 +65,12 @@ type GetDeliverabilityDashboardOptionsOutput struct { // An array of objects, one for each verified domain that you use to send email and // currently has an active Deliverability dashboard subscription that isn’t // scheduled to expire at the end of the current calendar month. - ActiveSubscribedDomains []*types.DomainDeliverabilityTrackingOption + ActiveSubscribedDomains []types.DomainDeliverabilityTrackingOption // An array of objects, one for each verified domain that you use to send email and // currently has an active Deliverability dashboard subscription that's scheduled // to expire at the end of the current calendar month. - PendingExpirationSubscribedDomains []*types.DomainDeliverabilityTrackingOption + PendingExpirationSubscribedDomains []types.DomainDeliverabilityTrackingOption // The date, in Unix time format, when your current subscription to the // Deliverability dashboard is scheduled to expire, if your subscription is diff --git a/service/sesv2/api_op_GetDeliverabilityTestReport.go b/service/sesv2/api_op_GetDeliverabilityTestReport.go index 4045016e9b2..d2e3561451c 100644 --- a/service/sesv2/api_op_GetDeliverabilityTestReport.go +++ b/service/sesv2/api_op_GetDeliverabilityTestReport.go @@ -48,7 +48,7 @@ type GetDeliverabilityTestReportOutput struct { // providers, including Gmail, Hotmail, Yahoo, AOL, and others. // // This member is required. - IspPlacements []*types.IspPlacement + IspPlacements []types.IspPlacement // An object that specifies how many test messages that were sent during the // predictive inbox placement test were delivered to recipients' inboxes, how many @@ -63,7 +63,7 @@ type GetDeliverabilityTestReportOutput struct { // An array of objects that define the tags (keys and values) that are associated // with the predictive inbox placement test. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sesv2/api_op_GetDomainStatisticsReport.go b/service/sesv2/api_op_GetDomainStatisticsReport.go index bb577921b0e..e1488a9ebd5 100644 --- a/service/sesv2/api_op_GetDomainStatisticsReport.go +++ b/service/sesv2/api_op_GetDomainStatisticsReport.go @@ -60,7 +60,7 @@ type GetDomainStatisticsReportOutput struct { // ending on the EndDate. // // This member is required. - DailyVolumes []*types.DailyVolume + DailyVolumes []types.DailyVolume // An object that contains deliverability metrics for the domain that you // specified. The data in this object is a summary of all of the data that was diff --git a/service/sesv2/api_op_GetEmailIdentity.go b/service/sesv2/api_op_GetEmailIdentity.go index f7c9ec8e422..98d155cc8c4 100644 --- a/service/sesv2/api_op_GetEmailIdentity.go +++ b/service/sesv2/api_op_GetEmailIdentity.go @@ -52,7 +52,7 @@ type GetEmailIdentityOutput struct { // bounce or complaint notifications (for example, by setting up an event // destination), you receive an email notification when these events occur (even if // this setting is disabled). - FeedbackForwardingStatus *bool + FeedbackForwardingStatus bool // The email identity type. IdentityType types.IdentityType @@ -62,17 +62,17 @@ type GetEmailIdentityOutput struct { MailFromAttributes *types.MailFromAttributes // A map of policy names to policies. - Policies map[string]*string + Policies map[string]string // An array of objects that define the tags (keys and values) that are associated // with the email identity. - Tags []*types.Tag + Tags []types.Tag // Specifies whether or not the identity is verified. You can only send email from // verified email addresses or domains. For more information about verifying // identities, see the Amazon Pinpoint User Guide // (https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html). - VerifiedForSendingStatus *bool + VerifiedForSendingStatus bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sesv2/api_op_GetEmailIdentityPolicies.go b/service/sesv2/api_op_GetEmailIdentityPolicies.go index 0002781be2f..32085dee564 100644 --- a/service/sesv2/api_op_GetEmailIdentityPolicies.go +++ b/service/sesv2/api_op_GetEmailIdentityPolicies.go @@ -47,7 +47,7 @@ type GetEmailIdentityPoliciesInput struct { type GetEmailIdentityPoliciesOutput struct { // A map of policy names to policies. - Policies map[string]*string + Policies map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sesv2/api_op_ListConfigurationSets.go b/service/sesv2/api_op_ListConfigurationSets.go index 56f9a46ec0c..b29972199f3 100644 --- a/service/sesv2/api_op_ListConfigurationSets.go +++ b/service/sesv2/api_op_ListConfigurationSets.go @@ -52,7 +52,7 @@ type ListConfigurationSetsOutput struct { // An array that contains all of the configuration sets in your Amazon SES account // in the current AWS Region. - ConfigurationSets []*string + ConfigurationSets []string // A token that indicates that there are additional configuration sets to list. To // view additional configuration sets, issue another request to diff --git a/service/sesv2/api_op_ListContactLists.go b/service/sesv2/api_op_ListContactLists.go index 71793cfb66f..854abc64bf1 100644 --- a/service/sesv2/api_op_ListContactLists.go +++ b/service/sesv2/api_op_ListContactLists.go @@ -45,7 +45,7 @@ type ListContactListsInput struct { type ListContactListsOutput struct { // The available contact lists. - ContactLists []*types.ContactList + ContactLists []types.ContactList // A string token indicating that there might be additional contact lists available // to be listed. Copy this token to a subsequent call to ListContactLists with the diff --git a/service/sesv2/api_op_ListContacts.go b/service/sesv2/api_op_ListContacts.go index c8c05745802..baf7b2d8143 100644 --- a/service/sesv2/api_op_ListContacts.go +++ b/service/sesv2/api_op_ListContacts.go @@ -53,7 +53,7 @@ type ListContactsInput struct { type ListContactsOutput struct { // The contacts present in a specific contact list. - Contacts []*types.Contact + Contacts []types.Contact // A string token indicating that there might be additional contacts available to // be listed. Copy this token to a subsequent call to ListContacts with the same diff --git a/service/sesv2/api_op_ListCustomVerificationEmailTemplates.go b/service/sesv2/api_op_ListCustomVerificationEmailTemplates.go index d09f6847a35..95540f9e7a0 100644 --- a/service/sesv2/api_op_ListCustomVerificationEmailTemplates.go +++ b/service/sesv2/api_op_ListCustomVerificationEmailTemplates.go @@ -52,7 +52,7 @@ type ListCustomVerificationEmailTemplatesInput struct { type ListCustomVerificationEmailTemplatesOutput struct { // A list of the custom verification email templates that exist in your account. - CustomVerificationEmailTemplates []*types.CustomVerificationEmailTemplateMetadata + CustomVerificationEmailTemplates []types.CustomVerificationEmailTemplateMetadata // A token indicating that there are additional custom verification email templates // available to be listed. Pass this token to a subsequent call to diff --git a/service/sesv2/api_op_ListDedicatedIpPools.go b/service/sesv2/api_op_ListDedicatedIpPools.go index 131e84eec3b..8eed81c8473 100644 --- a/service/sesv2/api_op_ListDedicatedIpPools.go +++ b/service/sesv2/api_op_ListDedicatedIpPools.go @@ -46,7 +46,7 @@ type ListDedicatedIpPoolsOutput struct { // A list of all of the dedicated IP pools that are associated with your AWS // account in the current Region. - DedicatedIpPools []*string + DedicatedIpPools []string // A token that indicates that there are additional IP pools to list. To view // additional IP pools, issue another request to ListDedicatedIpPools, passing this diff --git a/service/sesv2/api_op_ListDeliverabilityTestReports.go b/service/sesv2/api_op_ListDeliverabilityTestReports.go index 700b92d7b40..eef56a41880 100644 --- a/service/sesv2/api_op_ListDeliverabilityTestReports.go +++ b/service/sesv2/api_op_ListDeliverabilityTestReports.go @@ -54,7 +54,7 @@ type ListDeliverabilityTestReportsOutput struct { // performed. // // This member is required. - DeliverabilityTestReports []*types.DeliverabilityTestReport + DeliverabilityTestReports []types.DeliverabilityTestReport // A token that indicates that there are additional predictive inbox placement // tests to list. To view additional predictive inbox placement tests, issue diff --git a/service/sesv2/api_op_ListDomainDeliverabilityCampaigns.go b/service/sesv2/api_op_ListDomainDeliverabilityCampaigns.go index 2e4cd2280f6..a05af38faab 100644 --- a/service/sesv2/api_op_ListDomainDeliverabilityCampaigns.go +++ b/service/sesv2/api_op_ListDomainDeliverabilityCampaigns.go @@ -75,7 +75,7 @@ type ListDomainDeliverabilityCampaignsOutput struct { // during the specified time range. // // This member is required. - DomainDeliverabilityCampaigns []*types.DomainDeliverabilityCampaign + DomainDeliverabilityCampaigns []types.DomainDeliverabilityCampaign // A token that’s returned from a previous call to the // ListDomainDeliverabilityCampaigns operation. This token indicates the position diff --git a/service/sesv2/api_op_ListEmailIdentities.go b/service/sesv2/api_op_ListEmailIdentities.go index b69e38f582b..ae61822c42e 100644 --- a/service/sesv2/api_op_ListEmailIdentities.go +++ b/service/sesv2/api_op_ListEmailIdentities.go @@ -55,7 +55,7 @@ type ListEmailIdentitiesOutput struct { // An array that includes all of the email identities associated with your AWS // account. - EmailIdentities []*types.IdentityInfo + EmailIdentities []types.IdentityInfo // A token that indicates that there are additional configuration sets to list. To // view additional configuration sets, issue another request to diff --git a/service/sesv2/api_op_ListEmailTemplates.go b/service/sesv2/api_op_ListEmailTemplates.go index b14663af187..559f33482d8 100644 --- a/service/sesv2/api_op_ListEmailTemplates.go +++ b/service/sesv2/api_op_ListEmailTemplates.go @@ -56,7 +56,7 @@ type ListEmailTemplatesOutput struct { // An array the contains the name and creation time stamp for each template in your // Amazon SES account. - TemplatesMetadata []*types.EmailTemplateMetadata + TemplatesMetadata []types.EmailTemplateMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sesv2/api_op_ListImportJobs.go b/service/sesv2/api_op_ListImportJobs.go index 4dccbf80c15..2b291fcfd7a 100644 --- a/service/sesv2/api_op_ListImportJobs.go +++ b/service/sesv2/api_op_ListImportJobs.go @@ -52,7 +52,7 @@ type ListImportJobsInput struct { type ListImportJobsOutput struct { // A list of the import job summaries. - ImportJobs []*types.ImportJobSummary + ImportJobs []types.ImportJobSummary // A string token indicating that there might be additional import jobs available // to be listed. Copy this token to a subsequent call to ListImportJobs with the diff --git a/service/sesv2/api_op_ListSuppressedDestinations.go b/service/sesv2/api_op_ListSuppressedDestinations.go index 9c4173d08c5..c4d951c9d97 100644 --- a/service/sesv2/api_op_ListSuppressedDestinations.go +++ b/service/sesv2/api_op_ListSuppressedDestinations.go @@ -68,7 +68,7 @@ type ListSuppressedDestinationsOutput struct { // A list of summaries, each containing a summary for a suppressed email // destination. - SuppressedDestinationSummaries []*types.SuppressedDestinationSummary + SuppressedDestinationSummaries []types.SuppressedDestinationSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sesv2/api_op_ListTagsForResource.go b/service/sesv2/api_op_ListTagsForResource.go index acac01bbb38..2de9d69221f 100644 --- a/service/sesv2/api_op_ListTagsForResource.go +++ b/service/sesv2/api_op_ListTagsForResource.go @@ -46,7 +46,7 @@ type ListTagsForResourceOutput struct { // consists of a required tag key (Key) and an associated tag value (Value) // // This member is required. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sesv2/api_op_PutAccountDedicatedIpWarmupAttributes.go b/service/sesv2/api_op_PutAccountDedicatedIpWarmupAttributes.go index 8eaa1a3b79a..b5591350eb4 100644 --- a/service/sesv2/api_op_PutAccountDedicatedIpWarmupAttributes.go +++ b/service/sesv2/api_op_PutAccountDedicatedIpWarmupAttributes.go @@ -32,7 +32,7 @@ type PutAccountDedicatedIpWarmupAttributesInput struct { // Enables or disables the automatic warm-up feature for dedicated IP addresses // that are associated with your Amazon SES account in the current AWS Region. Set // to true to enable the automatic warm-up feature, or set to false to disable it. - AutoWarmupEnabled *bool + AutoWarmupEnabled bool } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/sesv2/api_op_PutAccountDetails.go b/service/sesv2/api_op_PutAccountDetails.go index 763ad088ca2..171cf959dc5 100644 --- a/service/sesv2/api_op_PutAccountDetails.go +++ b/service/sesv2/api_op_PutAccountDetails.go @@ -48,7 +48,7 @@ type PutAccountDetailsInput struct { // Additional email addresses that you would like to be notified regarding Amazon // SES matters. - AdditionalContactEmailAddresses []*string + AdditionalContactEmailAddresses []string // The language you would prefer to be contacted with. ContactLanguage types.ContactLanguage diff --git a/service/sesv2/api_op_PutAccountSendingAttributes.go b/service/sesv2/api_op_PutAccountSendingAttributes.go index 9509b02faa7..daf9fec684a 100644 --- a/service/sesv2/api_op_PutAccountSendingAttributes.go +++ b/service/sesv2/api_op_PutAccountSendingAttributes.go @@ -33,7 +33,7 @@ type PutAccountSendingAttributesInput struct { // email sending, or set to false to disable email sending. If AWS paused your // account's ability to send email, you can't use this operation to resume your // account's ability to send email. - SendingEnabled *bool + SendingEnabled bool } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/sesv2/api_op_PutConfigurationSetReputationOptions.go b/service/sesv2/api_op_PutConfigurationSetReputationOptions.go index 61bcee2015d..f6b9a00c113 100644 --- a/service/sesv2/api_op_PutConfigurationSetReputationOptions.go +++ b/service/sesv2/api_op_PutConfigurationSetReputationOptions.go @@ -39,7 +39,7 @@ type PutConfigurationSetReputationOptionsInput struct { // If true, tracking of reputation metrics is enabled for the configuration set. If // false, tracking of reputation metrics is disabled for the configuration set. - ReputationMetricsEnabled *bool + ReputationMetricsEnabled bool } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/sesv2/api_op_PutConfigurationSetSendingOptions.go b/service/sesv2/api_op_PutConfigurationSetSendingOptions.go index f7ee368eaec..d5c22fda660 100644 --- a/service/sesv2/api_op_PutConfigurationSetSendingOptions.go +++ b/service/sesv2/api_op_PutConfigurationSetSendingOptions.go @@ -39,7 +39,7 @@ type PutConfigurationSetSendingOptionsInput struct { // If true, email sending is enabled for the configuration set. If false, email // sending is disabled for the configuration set. - SendingEnabled *bool + SendingEnabled bool } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/sesv2/api_op_PutDeliverabilityDashboardOption.go b/service/sesv2/api_op_PutDeliverabilityDashboardOption.go index f3b00c745d3..0d8b3325e7e 100644 --- a/service/sesv2/api_op_PutDeliverabilityDashboardOption.go +++ b/service/sesv2/api_op_PutDeliverabilityDashboardOption.go @@ -49,11 +49,11 @@ type PutDeliverabilityDashboardOptionInput struct { // dashboard, set this value to true. // // This member is required. - DashboardEnabled *bool + DashboardEnabled bool // An array of objects, one for each verified domain that you use to send email and // enabled the Deliverability dashboard for. - SubscribedDomains []*types.DomainDeliverabilityTrackingOption + SubscribedDomains []types.DomainDeliverabilityTrackingOption } // A response that indicates whether the Deliverability dashboard is enabled. diff --git a/service/sesv2/api_op_PutEmailIdentityDkimAttributes.go b/service/sesv2/api_op_PutEmailIdentityDkimAttributes.go index 70af549dd13..6b4d02b65dd 100644 --- a/service/sesv2/api_op_PutEmailIdentityDkimAttributes.go +++ b/service/sesv2/api_op_PutEmailIdentityDkimAttributes.go @@ -38,7 +38,7 @@ type PutEmailIdentityDkimAttributesInput struct { // Sets the DKIM signing configuration for the identity. When you set this value // true, then the messages that are sent from the identity are signed using DKIM. // If you set this value to false, your messages are sent without DKIM signing. - SigningEnabled *bool + SigningEnabled bool } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/sesv2/api_op_PutEmailIdentityDkimSigningAttributes.go b/service/sesv2/api_op_PutEmailIdentityDkimSigningAttributes.go index e3f8c224402..6c115b8de6a 100644 --- a/service/sesv2/api_op_PutEmailIdentityDkimSigningAttributes.go +++ b/service/sesv2/api_op_PutEmailIdentityDkimSigningAttributes.go @@ -114,7 +114,7 @@ type PutEmailIdentityDkimSigningAttributesOutput struct { // associated with your public key. Regardless of the DKIM authentication method // you use, Amazon SES searches for the appropriate records in the DNS // configuration of the domain for up to 72 hours. - DkimTokens []*string + DkimTokens []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sesv2/api_op_PutEmailIdentityFeedbackAttributes.go b/service/sesv2/api_op_PutEmailIdentityFeedbackAttributes.go index 3ad52ebc8f7..0ebd5bf35ad 100644 --- a/service/sesv2/api_op_PutEmailIdentityFeedbackAttributes.go +++ b/service/sesv2/api_op_PutEmailIdentityFeedbackAttributes.go @@ -52,7 +52,7 @@ type PutEmailIdentityFeedbackAttributesInput struct { // receiving bounce or complaint notifications (for example, by setting up an event // destination), you receive an email notification when these events occur (even if // this setting is disabled). - EmailForwardingEnabled *bool + EmailForwardingEnabled bool } // An HTTP 200 response if the request succeeds, or an error message if the request diff --git a/service/sesv2/api_op_SendBulkEmail.go b/service/sesv2/api_op_SendBulkEmail.go index 5028458d513..140e6c6f7e9 100644 --- a/service/sesv2/api_op_SendBulkEmail.go +++ b/service/sesv2/api_op_SendBulkEmail.go @@ -35,7 +35,7 @@ type SendBulkEmailInput struct { // The list of bulk email entry objects. // // This member is required. - BulkEmailEntries []*types.BulkEmailEntry + BulkEmailEntries []types.BulkEmailEntry // An object that contains the body of the message. You can specify a template // message. @@ -49,7 +49,7 @@ type SendBulkEmailInput struct { // A list of tags, in the form of name/value pairs, to apply to an email that you // send using the SendEmail operation. Tags correspond to characteristics of the // email that you define, so that you can publish email sending events. - DefaultEmailTags []*types.MessageTag + DefaultEmailTags []types.MessageTag // The address that you want bounce and complaint notifications to be sent to. FeedbackForwardingEmailAddress *string @@ -86,7 +86,7 @@ type SendBulkEmailInput struct { // The "Reply-to" email addresses for the message. When the recipient replies to // the message, each Reply-to address receives the reply. - ReplyToAddresses []*string + ReplyToAddresses []string } // The following data is returned in JSON format by the service. @@ -95,7 +95,7 @@ type SendBulkEmailOutput struct { // A list of BulkMailEntry objects. // // This member is required. - BulkEmailEntryResults []*types.BulkEmailEntryResult + BulkEmailEntryResults []types.BulkEmailEntryResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sesv2/api_op_SendEmail.go b/service/sesv2/api_op_SendEmail.go index 3f681083632..d0dbb651bde 100644 --- a/service/sesv2/api_op_SendEmail.go +++ b/service/sesv2/api_op_SendEmail.go @@ -62,7 +62,7 @@ type SendEmailInput struct { // A list of tags, in the form of name/value pairs, to apply to an email that you // send using the SendEmail operation. Tags correspond to characteristics of the // email that you define, so that you can publish email sending events. - EmailTags []*types.MessageTag + EmailTags []types.MessageTag // The address that you want bounce and complaint notifications to be sent to. FeedbackForwardingEmailAddress *string @@ -106,7 +106,7 @@ type SendEmailInput struct { // The "Reply-to" email addresses for the message. When the recipient replies to // the message, each Reply-to address receives the reply. - ReplyToAddresses []*string + ReplyToAddresses []string } // A unique message ID that you receive when an email is accepted for sending. diff --git a/service/sesv2/api_op_TagResource.go b/service/sesv2/api_op_TagResource.go index e96afb4f727..6516319350c 100644 --- a/service/sesv2/api_op_TagResource.go +++ b/service/sesv2/api_op_TagResource.go @@ -47,7 +47,7 @@ type TagResourceInput struct { // characters. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/sesv2/api_op_UntagResource.go b/service/sesv2/api_op_UntagResource.go index 68651cedcf7..45d965c3bdc 100644 --- a/service/sesv2/api_op_UntagResource.go +++ b/service/sesv2/api_op_UntagResource.go @@ -41,7 +41,7 @@ type UntagResourceInput struct { // example: /v2/email/tags?ResourceArn=ResourceArn&TagKeys=Key1&TagKeys=Key2 // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/sesv2/api_op_UpdateContact.go b/service/sesv2/api_op_UpdateContact.go index f936b5418da..3c9069a0270 100644 --- a/service/sesv2/api_op_UpdateContact.go +++ b/service/sesv2/api_op_UpdateContact.go @@ -45,11 +45,11 @@ type UpdateContactInput struct { AttributesData *string // The contact's preference for being opted-in to or opted-out of a topic. - TopicPreferences []*types.TopicPreference + TopicPreferences []types.TopicPreference // A boolean value status noting if the contact is unsubscribed from all contact // list topics. - UnsubscribeAll *bool + UnsubscribeAll bool } type UpdateContactOutput struct { diff --git a/service/sesv2/api_op_UpdateContactList.go b/service/sesv2/api_op_UpdateContactList.go index 67d5660a32e..13cd7fdc350 100644 --- a/service/sesv2/api_op_UpdateContactList.go +++ b/service/sesv2/api_op_UpdateContactList.go @@ -39,7 +39,7 @@ type UpdateContactListInput struct { // An interest group, theme, or label within a list. A contact list can have // multiple topics. - Topics []*types.Topic + Topics []types.Topic } type UpdateContactListOutput struct { diff --git a/service/sesv2/deserializers.go b/service/sesv2/deserializers.go index 35c8f54992f..31b6427f1a0 100644 --- a/service/sesv2/deserializers.go +++ b/service/sesv2/deserializers.go @@ -758,7 +758,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeliverabilityTestReportOutput(v ** if !ok { return fmt.Errorf("expected ReportId to be of type string, got %T instead", value) } - sv.ReportId = &jtv + sv.ReportId = ptr.String(jtv) } default: @@ -935,7 +935,7 @@ func awsRestjson1_deserializeOpDocumentCreateEmailIdentityOutput(v **CreateEmail if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.VerifiedForSendingStatus = &jtv + sv.VerifiedForSendingStatus = jtv } default: @@ -1279,7 +1279,7 @@ func awsRestjson1_deserializeOpDocumentCreateImportJobOutput(v **CreateImportJob if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -2335,7 +2335,7 @@ func awsRestjson1_deserializeOpDocumentGetAccountOutput(v **GetAccountOutput, va if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.DedicatedIpAutoWarmupEnabled = &jtv + sv.DedicatedIpAutoWarmupEnabled = jtv } case "Details": @@ -2349,7 +2349,7 @@ func awsRestjson1_deserializeOpDocumentGetAccountOutput(v **GetAccountOutput, va if !ok { return fmt.Errorf("expected GeneralEnforcementStatus to be of type string, got %T instead", value) } - sv.EnforcementStatus = &jtv + sv.EnforcementStatus = ptr.String(jtv) } case "ProductionAccessEnabled": @@ -2358,7 +2358,7 @@ func awsRestjson1_deserializeOpDocumentGetAccountOutput(v **GetAccountOutput, va if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.ProductionAccessEnabled = &jtv + sv.ProductionAccessEnabled = jtv } case "SendingEnabled": @@ -2367,7 +2367,7 @@ func awsRestjson1_deserializeOpDocumentGetAccountOutput(v **GetAccountOutput, va if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.SendingEnabled = &jtv + sv.SendingEnabled = jtv } case "SendQuota": @@ -2687,7 +2687,7 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationSetOutput(v **GetConfigur if !ok { return fmt.Errorf("expected ConfigurationSetName to be of type string, got %T instead", value) } - sv.ConfigurationSetName = &jtv + sv.ConfigurationSetName = ptr.String(jtv) } case "DeliveryOptions": @@ -3027,7 +3027,7 @@ func awsRestjson1_deserializeOpDocumentGetContactOutput(v **GetContactOutput, va if !ok { return fmt.Errorf("expected AttributesData to be of type string, got %T instead", value) } - sv.AttributesData = &jtv + sv.AttributesData = ptr.String(jtv) } case "ContactListName": @@ -3036,7 +3036,7 @@ func awsRestjson1_deserializeOpDocumentGetContactOutput(v **GetContactOutput, va if !ok { return fmt.Errorf("expected ContactListName to be of type string, got %T instead", value) } - sv.ContactListName = &jtv + sv.ContactListName = ptr.String(jtv) } case "CreatedTimestamp": @@ -3058,7 +3058,7 @@ func awsRestjson1_deserializeOpDocumentGetContactOutput(v **GetContactOutput, va if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -3090,7 +3090,7 @@ func awsRestjson1_deserializeOpDocumentGetContactOutput(v **GetContactOutput, va if !ok { return fmt.Errorf("expected UnsubscribeAll to be of type *bool, got %T instead", value) } - sv.UnsubscribeAll = &jtv + sv.UnsubscribeAll = jtv } default: @@ -3247,7 +3247,7 @@ func awsRestjson1_deserializeOpDocumentGetContactListOutput(v **GetContactListOu if !ok { return fmt.Errorf("expected ContactListName to be of type string, got %T instead", value) } - sv.ContactListName = &jtv + sv.ContactListName = ptr.String(jtv) } case "CreatedTimestamp": @@ -3269,7 +3269,7 @@ func awsRestjson1_deserializeOpDocumentGetContactListOutput(v **GetContactListOu if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -3449,7 +3449,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomVerificationEmailTemplateOutput( if !ok { return fmt.Errorf("expected FailureRedirectionURL to be of type string, got %T instead", value) } - sv.FailureRedirectionURL = &jtv + sv.FailureRedirectionURL = ptr.String(jtv) } case "FromEmailAddress": @@ -3458,7 +3458,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomVerificationEmailTemplateOutput( if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.FromEmailAddress = &jtv + sv.FromEmailAddress = ptr.String(jtv) } case "SuccessRedirectionURL": @@ -3467,7 +3467,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomVerificationEmailTemplateOutput( if !ok { return fmt.Errorf("expected SuccessRedirectionURL to be of type string, got %T instead", value) } - sv.SuccessRedirectionURL = &jtv + sv.SuccessRedirectionURL = ptr.String(jtv) } case "TemplateContent": @@ -3476,7 +3476,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomVerificationEmailTemplateOutput( if !ok { return fmt.Errorf("expected TemplateContent to be of type string, got %T instead", value) } - sv.TemplateContent = &jtv + sv.TemplateContent = ptr.String(jtv) } case "TemplateName": @@ -3485,7 +3485,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomVerificationEmailTemplateOutput( if !ok { return fmt.Errorf("expected EmailTemplateName to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } case "TemplateSubject": @@ -3494,7 +3494,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomVerificationEmailTemplateOutput( if !ok { return fmt.Errorf("expected EmailTemplateSubject to be of type string, got %T instead", value) } - sv.TemplateSubject = &jtv + sv.TemplateSubject = ptr.String(jtv) } default: @@ -3809,7 +3809,7 @@ func awsRestjson1_deserializeOpDocumentGetDedicatedIpsOutput(v **GetDedicatedIps if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3980,7 +3980,7 @@ func awsRestjson1_deserializeOpDocumentGetDeliverabilityDashboardOptionsOutput(v if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.DashboardEnabled = &jtv + sv.DashboardEnabled = jtv } case "PendingExpirationSubscribedDomains": @@ -4165,7 +4165,7 @@ func awsRestjson1_deserializeOpDocumentGetDeliverabilityTestReportOutput(v **Get if !ok { return fmt.Errorf("expected MessageContent to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "OverallPlacement": @@ -4648,7 +4648,7 @@ func awsRestjson1_deserializeOpDocumentGetEmailIdentityOutput(v **GetEmailIdenti if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.FeedbackForwardingStatus = &jtv + sv.FeedbackForwardingStatus = jtv } case "IdentityType": @@ -4681,7 +4681,7 @@ func awsRestjson1_deserializeOpDocumentGetEmailIdentityOutput(v **GetEmailIdenti if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.VerifiedForSendingStatus = &jtv + sv.VerifiedForSendingStatus = jtv } default: @@ -4996,7 +4996,7 @@ func awsRestjson1_deserializeOpDocumentGetEmailTemplateOutput(v **GetEmailTempla if !ok { return fmt.Errorf("expected EmailTemplateName to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } default: @@ -5207,7 +5207,7 @@ func awsRestjson1_deserializeOpDocumentGetImportJobOutput(v **GetImportJobOutput if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -5541,7 +5541,7 @@ func awsRestjson1_deserializeOpDocumentListConfigurationSetsOutput(v **ListConfi if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5700,7 +5700,7 @@ func awsRestjson1_deserializeOpDocumentListContactListsOutput(v **ListContactLis if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5862,7 +5862,7 @@ func awsRestjson1_deserializeOpDocumentListContactsOutput(v **ListContactsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6021,7 +6021,7 @@ func awsRestjson1_deserializeOpDocumentListCustomVerificationEmailTemplatesOutpu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6180,7 +6180,7 @@ func awsRestjson1_deserializeOpDocumentListDedicatedIpPoolsOutput(v **ListDedica if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6342,7 +6342,7 @@ func awsRestjson1_deserializeOpDocumentListDeliverabilityTestReportsOutput(v **L if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6504,7 +6504,7 @@ func awsRestjson1_deserializeOpDocumentListDomainDeliverabilityCampaignsOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6663,7 +6663,7 @@ func awsRestjson1_deserializeOpDocumentListEmailIdentitiesOutput(v **ListEmailId if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6817,7 +6817,7 @@ func awsRestjson1_deserializeOpDocumentListEmailTemplatesOutput(v **ListEmailTem if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TemplatesMetadata": @@ -6981,7 +6981,7 @@ func awsRestjson1_deserializeOpDocumentListImportJobsOutput(v **ListImportJobsOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7138,7 +7138,7 @@ func awsRestjson1_deserializeOpDocumentListSuppressedDestinationsOutput(v **List if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SuppressedDestinationSummaries": @@ -9213,7 +9213,7 @@ func awsRestjson1_deserializeOpDocumentSendCustomVerificationEmailOutput(v **Sen if !ok { return fmt.Errorf("expected OutboundMessageId to be of type string, got %T instead", value) } - sv.MessageId = &jtv + sv.MessageId = ptr.String(jtv) } default: @@ -9385,7 +9385,7 @@ func awsRestjson1_deserializeOpDocumentSendEmailOutput(v **SendEmailOutput, valu if !ok { return fmt.Errorf("expected OutboundMessageId to be of type string, got %T instead", value) } - sv.MessageId = &jtv + sv.MessageId = ptr.String(jtv) } default: @@ -9634,7 +9634,7 @@ func awsRestjson1_deserializeOpDocumentTestRenderEmailTemplateOutput(v **TestRen if !ok { return fmt.Errorf("expected RenderedEmailTemplate to be of type string, got %T instead", value) } - sv.RenderedTemplate = &jtv + sv.RenderedTemplate = ptr.String(jtv) } default: @@ -10766,7 +10766,7 @@ func awsRestjson1_deserializeDocumentAccountDetails(v **types.AccountDetails, va if !ok { return fmt.Errorf("expected UseCaseDescription to be of type string, got %T instead", value) } - sv.UseCaseDescription = &jtv + sv.UseCaseDescription = ptr.String(jtv) } case "WebsiteURL": @@ -10775,7 +10775,7 @@ func awsRestjson1_deserializeDocumentAccountDetails(v **types.AccountDetails, va if !ok { return fmt.Errorf("expected WebsiteURL to be of type string, got %T instead", value) } - sv.WebsiteURL = &jtv + sv.WebsiteURL = ptr.String(jtv) } default: @@ -10815,7 +10815,7 @@ func awsRestjson1_deserializeDocumentAccountSuspendedException(v **types.Account if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10827,7 +10827,7 @@ func awsRestjson1_deserializeDocumentAccountSuspendedException(v **types.Account return nil } -func awsRestjson1_deserializeDocumentAdditionalContactEmailAddresses(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAdditionalContactEmailAddresses(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10840,21 +10840,21 @@ func awsRestjson1_deserializeDocumentAdditionalContactEmailAddresses(v *[]*strin return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AdditionalContactEmailAddress to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10891,7 +10891,7 @@ func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10931,7 +10931,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10943,7 +10943,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc return nil } -func awsRestjson1_deserializeDocumentBlacklistEntries(v *[]*types.BlacklistEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentBlacklistEntries(v *[]types.BlacklistEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10956,18 +10956,20 @@ func awsRestjson1_deserializeDocumentBlacklistEntries(v *[]*types.BlacklistEntry return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BlacklistEntry + var cv []types.BlacklistEntry if *v == nil { - cv = []*types.BlacklistEntry{} + cv = []types.BlacklistEntry{} } else { cv = *v } for _, value := range shape { - var col *types.BlacklistEntry - if err := awsRestjson1_deserializeDocumentBlacklistEntry(&col, value); err != nil { + var col types.BlacklistEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentBlacklistEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11003,7 +11005,7 @@ func awsRestjson1_deserializeDocumentBlacklistEntry(v **types.BlacklistEntry, va if !ok { return fmt.Errorf("expected BlacklistingDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ListingTime": @@ -11025,7 +11027,7 @@ func awsRestjson1_deserializeDocumentBlacklistEntry(v **types.BlacklistEntry, va if !ok { return fmt.Errorf("expected RblName to be of type string, got %T instead", value) } - sv.RblName = &jtv + sv.RblName = ptr.String(jtv) } default: @@ -11037,7 +11039,7 @@ func awsRestjson1_deserializeDocumentBlacklistEntry(v **types.BlacklistEntry, va return nil } -func awsRestjson1_deserializeDocumentBlacklistReport(v *map[string][]*types.BlacklistEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentBlacklistReport(v *map[string][]types.BlacklistEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11050,18 +11052,20 @@ func awsRestjson1_deserializeDocumentBlacklistReport(v *map[string][]*types.Blac return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*types.BlacklistEntry + var mv map[string][]types.BlacklistEntry if *v == nil { - mv = map[string][]*types.BlacklistEntry{} + mv = map[string][]types.BlacklistEntry{} } else { mv = *v } for key, value := range shape { - var parsedVal []*types.BlacklistEntry - if err := awsRestjson1_deserializeDocumentBlacklistEntries(&parsedVal, value); err != nil { + var parsedVal []types.BlacklistEntry + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentBlacklistEntries(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -11097,7 +11101,7 @@ func awsRestjson1_deserializeDocumentBulkEmailEntryResult(v **types.BulkEmailEnt if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } case "MessageId": @@ -11106,7 +11110,7 @@ func awsRestjson1_deserializeDocumentBulkEmailEntryResult(v **types.BulkEmailEnt if !ok { return fmt.Errorf("expected OutboundMessageId to be of type string, got %T instead", value) } - sv.MessageId = &jtv + sv.MessageId = ptr.String(jtv) } case "Status": @@ -11127,7 +11131,7 @@ func awsRestjson1_deserializeDocumentBulkEmailEntryResult(v **types.BulkEmailEnt return nil } -func awsRestjson1_deserializeDocumentBulkEmailEntryResultList(v *[]*types.BulkEmailEntryResult, value interface{}) error { +func awsRestjson1_deserializeDocumentBulkEmailEntryResultList(v *[]types.BulkEmailEntryResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11140,18 +11144,20 @@ func awsRestjson1_deserializeDocumentBulkEmailEntryResultList(v *[]*types.BulkEm return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.BulkEmailEntryResult + var cv []types.BulkEmailEntryResult if *v == nil { - cv = []*types.BulkEmailEntryResult{} + cv = []types.BulkEmailEntryResult{} } else { cv = *v } for _, value := range shape { - var col *types.BulkEmailEntryResult - if err := awsRestjson1_deserializeDocumentBulkEmailEntryResult(&col, value); err != nil { + var col types.BulkEmailEntryResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentBulkEmailEntryResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11223,7 +11229,7 @@ func awsRestjson1_deserializeDocumentCloudWatchDimensionConfiguration(v **types. if !ok { return fmt.Errorf("expected DefaultDimensionValue to be of type string, got %T instead", value) } - sv.DefaultDimensionValue = &jtv + sv.DefaultDimensionValue = ptr.String(jtv) } case "DimensionName": @@ -11232,7 +11238,7 @@ func awsRestjson1_deserializeDocumentCloudWatchDimensionConfiguration(v **types. if !ok { return fmt.Errorf("expected DimensionName to be of type string, got %T instead", value) } - sv.DimensionName = &jtv + sv.DimensionName = ptr.String(jtv) } case "DimensionValueSource": @@ -11253,7 +11259,7 @@ func awsRestjson1_deserializeDocumentCloudWatchDimensionConfiguration(v **types. return nil } -func awsRestjson1_deserializeDocumentCloudWatchDimensionConfigurations(v *[]*types.CloudWatchDimensionConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentCloudWatchDimensionConfigurations(v *[]types.CloudWatchDimensionConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11266,18 +11272,20 @@ func awsRestjson1_deserializeDocumentCloudWatchDimensionConfigurations(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CloudWatchDimensionConfiguration + var cv []types.CloudWatchDimensionConfiguration if *v == nil { - cv = []*types.CloudWatchDimensionConfiguration{} + cv = []types.CloudWatchDimensionConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.CloudWatchDimensionConfiguration - if err := awsRestjson1_deserializeDocumentCloudWatchDimensionConfiguration(&col, value); err != nil { + var col types.CloudWatchDimensionConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentCloudWatchDimensionConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11313,7 +11321,7 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11325,7 +11333,7 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C return nil } -func awsRestjson1_deserializeDocumentConfigurationSetNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentConfigurationSetNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11338,21 +11346,21 @@ func awsRestjson1_deserializeDocumentConfigurationSetNameList(v *[]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ConfigurationSetName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11389,7 +11397,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11429,7 +11437,7 @@ func awsRestjson1_deserializeDocumentContact(v **types.Contact, value interface{ if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -11461,7 +11469,7 @@ func awsRestjson1_deserializeDocumentContact(v **types.Contact, value interface{ if !ok { return fmt.Errorf("expected UnsubscribeAll to be of type *bool, got %T instead", value) } - sv.UnsubscribeAll = &jtv + sv.UnsubscribeAll = jtv } default: @@ -11501,7 +11509,7 @@ func awsRestjson1_deserializeDocumentContactList(v **types.ContactList, value in if !ok { return fmt.Errorf("expected ContactListName to be of type string, got %T instead", value) } - sv.ContactListName = &jtv + sv.ContactListName = ptr.String(jtv) } case "LastUpdatedTimestamp": @@ -11563,7 +11571,7 @@ func awsRestjson1_deserializeDocumentContactListDestination(v **types.ContactLis if !ok { return fmt.Errorf("expected ContactListName to be of type string, got %T instead", value) } - sv.ContactListName = &jtv + sv.ContactListName = ptr.String(jtv) } default: @@ -11603,7 +11611,7 @@ func awsRestjson1_deserializeDocumentCustomVerificationEmailTemplateMetadata(v * if !ok { return fmt.Errorf("expected FailureRedirectionURL to be of type string, got %T instead", value) } - sv.FailureRedirectionURL = &jtv + sv.FailureRedirectionURL = ptr.String(jtv) } case "FromEmailAddress": @@ -11612,7 +11620,7 @@ func awsRestjson1_deserializeDocumentCustomVerificationEmailTemplateMetadata(v * if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.FromEmailAddress = &jtv + sv.FromEmailAddress = ptr.String(jtv) } case "SuccessRedirectionURL": @@ -11621,7 +11629,7 @@ func awsRestjson1_deserializeDocumentCustomVerificationEmailTemplateMetadata(v * if !ok { return fmt.Errorf("expected SuccessRedirectionURL to be of type string, got %T instead", value) } - sv.SuccessRedirectionURL = &jtv + sv.SuccessRedirectionURL = ptr.String(jtv) } case "TemplateName": @@ -11630,7 +11638,7 @@ func awsRestjson1_deserializeDocumentCustomVerificationEmailTemplateMetadata(v * if !ok { return fmt.Errorf("expected EmailTemplateName to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } case "TemplateSubject": @@ -11639,7 +11647,7 @@ func awsRestjson1_deserializeDocumentCustomVerificationEmailTemplateMetadata(v * if !ok { return fmt.Errorf("expected EmailTemplateSubject to be of type string, got %T instead", value) } - sv.TemplateSubject = &jtv + sv.TemplateSubject = ptr.String(jtv) } default: @@ -11651,7 +11659,7 @@ func awsRestjson1_deserializeDocumentCustomVerificationEmailTemplateMetadata(v * return nil } -func awsRestjson1_deserializeDocumentCustomVerificationEmailTemplatesList(v *[]*types.CustomVerificationEmailTemplateMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomVerificationEmailTemplatesList(v *[]types.CustomVerificationEmailTemplateMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11664,18 +11672,20 @@ func awsRestjson1_deserializeDocumentCustomVerificationEmailTemplatesList(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CustomVerificationEmailTemplateMetadata + var cv []types.CustomVerificationEmailTemplateMetadata if *v == nil { - cv = []*types.CustomVerificationEmailTemplateMetadata{} + cv = []types.CustomVerificationEmailTemplateMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.CustomVerificationEmailTemplateMetadata - if err := awsRestjson1_deserializeDocumentCustomVerificationEmailTemplateMetadata(&col, value); err != nil { + var col types.CustomVerificationEmailTemplateMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentCustomVerificationEmailTemplateMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11737,7 +11747,7 @@ func awsRestjson1_deserializeDocumentDailyVolume(v **types.DailyVolume, value in return nil } -func awsRestjson1_deserializeDocumentDailyVolumes(v *[]*types.DailyVolume, value interface{}) error { +func awsRestjson1_deserializeDocumentDailyVolumes(v *[]types.DailyVolume, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11750,18 +11760,20 @@ func awsRestjson1_deserializeDocumentDailyVolumes(v *[]*types.DailyVolume, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DailyVolume + var cv []types.DailyVolume if *v == nil { - cv = []*types.DailyVolume{} + cv = []types.DailyVolume{} } else { cv = *v } for _, value := range shape { - var col *types.DailyVolume - if err := awsRestjson1_deserializeDocumentDailyVolume(&col, value); err != nil { + var col types.DailyVolume + destAddr := &col + if err := awsRestjson1_deserializeDocumentDailyVolume(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11797,7 +11809,7 @@ func awsRestjson1_deserializeDocumentDedicatedIp(v **types.DedicatedIp, value in if !ok { return fmt.Errorf("expected Ip to be of type string, got %T instead", value) } - sv.Ip = &jtv + sv.Ip = ptr.String(jtv) } case "PoolName": @@ -11806,7 +11818,7 @@ func awsRestjson1_deserializeDocumentDedicatedIp(v **types.DedicatedIp, value in if !ok { return fmt.Errorf("expected PoolName to be of type string, got %T instead", value) } - sv.PoolName = &jtv + sv.PoolName = ptr.String(jtv) } case "WarmupPercentage": @@ -11840,7 +11852,7 @@ func awsRestjson1_deserializeDocumentDedicatedIp(v **types.DedicatedIp, value in return nil } -func awsRestjson1_deserializeDocumentDedicatedIpList(v *[]*types.DedicatedIp, value interface{}) error { +func awsRestjson1_deserializeDocumentDedicatedIpList(v *[]types.DedicatedIp, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11853,18 +11865,20 @@ func awsRestjson1_deserializeDocumentDedicatedIpList(v *[]*types.DedicatedIp, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DedicatedIp + var cv []types.DedicatedIp if *v == nil { - cv = []*types.DedicatedIp{} + cv = []types.DedicatedIp{} } else { cv = *v } for _, value := range shape { - var col *types.DedicatedIp - if err := awsRestjson1_deserializeDocumentDedicatedIp(&col, value); err != nil { + var col types.DedicatedIp + destAddr := &col + if err := awsRestjson1_deserializeDocumentDedicatedIp(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11922,7 +11936,7 @@ func awsRestjson1_deserializeDocumentDeliverabilityTestReport(v **types.Delivera if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.FromEmailAddress = &jtv + sv.FromEmailAddress = ptr.String(jtv) } case "ReportId": @@ -11931,7 +11945,7 @@ func awsRestjson1_deserializeDocumentDeliverabilityTestReport(v **types.Delivera if !ok { return fmt.Errorf("expected ReportId to be of type string, got %T instead", value) } - sv.ReportId = &jtv + sv.ReportId = ptr.String(jtv) } case "ReportName": @@ -11940,7 +11954,7 @@ func awsRestjson1_deserializeDocumentDeliverabilityTestReport(v **types.Delivera if !ok { return fmt.Errorf("expected ReportName to be of type string, got %T instead", value) } - sv.ReportName = &jtv + sv.ReportName = ptr.String(jtv) } case "Subject": @@ -11949,7 +11963,7 @@ func awsRestjson1_deserializeDocumentDeliverabilityTestReport(v **types.Delivera if !ok { return fmt.Errorf("expected DeliverabilityTestSubject to be of type string, got %T instead", value) } - sv.Subject = &jtv + sv.Subject = ptr.String(jtv) } default: @@ -11961,7 +11975,7 @@ func awsRestjson1_deserializeDocumentDeliverabilityTestReport(v **types.Delivera return nil } -func awsRestjson1_deserializeDocumentDeliverabilityTestReports(v *[]*types.DeliverabilityTestReport, value interface{}) error { +func awsRestjson1_deserializeDocumentDeliverabilityTestReports(v *[]types.DeliverabilityTestReport, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11974,18 +11988,20 @@ func awsRestjson1_deserializeDocumentDeliverabilityTestReports(v *[]*types.Deliv return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeliverabilityTestReport + var cv []types.DeliverabilityTestReport if *v == nil { - cv = []*types.DeliverabilityTestReport{} + cv = []types.DeliverabilityTestReport{} } else { cv = *v } for _, value := range shape { - var col *types.DeliverabilityTestReport - if err := awsRestjson1_deserializeDocumentDeliverabilityTestReport(&col, value); err != nil { + var col types.DeliverabilityTestReport + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeliverabilityTestReport(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12021,7 +12037,7 @@ func awsRestjson1_deserializeDocumentDeliveryOptions(v **types.DeliveryOptions, if !ok { return fmt.Errorf("expected PoolName to be of type string, got %T instead", value) } - sv.SendingPoolName = &jtv + sv.SendingPoolName = ptr.String(jtv) } case "TlsPolicy": @@ -12079,7 +12095,7 @@ func awsRestjson1_deserializeDocumentDkimAttributes(v **types.DkimAttributes, va if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.SigningEnabled = &jtv + sv.SigningEnabled = jtv } case "Status": @@ -12105,7 +12121,7 @@ func awsRestjson1_deserializeDocumentDkimAttributes(v **types.DkimAttributes, va return nil } -func awsRestjson1_deserializeDocumentDnsTokenList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDnsTokenList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12118,21 +12134,21 @@ func awsRestjson1_deserializeDocumentDnsTokenList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DnsToken to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -12169,7 +12185,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if !ok { return fmt.Errorf("expected CampaignId to be of type string, got %T instead", value) } - sv.CampaignId = &jtv + sv.CampaignId = ptr.String(jtv) } case "DeleteRate": @@ -12182,7 +12198,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if err != nil { return err } - sv.DeleteRate = &f64 + sv.DeleteRate = ptr.Float64(f64) } case "Esps": @@ -12209,7 +12225,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if !ok { return fmt.Errorf("expected Identity to be of type string, got %T instead", value) } - sv.FromAddress = &jtv + sv.FromAddress = ptr.String(jtv) } case "ImageUrl": @@ -12218,7 +12234,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if !ok { return fmt.Errorf("expected ImageUrl to be of type string, got %T instead", value) } - sv.ImageUrl = &jtv + sv.ImageUrl = ptr.String(jtv) } case "InboxCount": @@ -12231,7 +12247,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if err != nil { return err } - sv.InboxCount = &i64 + sv.InboxCount = ptr.Int64(i64) } case "LastSeenDateTime": @@ -12257,7 +12273,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if err != nil { return err } - sv.ProjectedVolume = &i64 + sv.ProjectedVolume = ptr.Int64(i64) } case "ReadDeleteRate": @@ -12270,7 +12286,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if err != nil { return err } - sv.ReadDeleteRate = &f64 + sv.ReadDeleteRate = ptr.Float64(f64) } case "ReadRate": @@ -12283,7 +12299,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if err != nil { return err } - sv.ReadRate = &f64 + sv.ReadRate = ptr.Float64(f64) } case "SendingIps": @@ -12301,7 +12317,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if err != nil { return err } - sv.SpamCount = &i64 + sv.SpamCount = ptr.Int64(i64) } case "Subject": @@ -12310,7 +12326,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma if !ok { return fmt.Errorf("expected Subject to be of type string, got %T instead", value) } - sv.Subject = &jtv + sv.Subject = ptr.String(jtv) } default: @@ -12322,7 +12338,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(v **types.Doma return nil } -func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaignList(v *[]*types.DomainDeliverabilityCampaign, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaignList(v *[]types.DomainDeliverabilityCampaign, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12335,18 +12351,20 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityCampaignList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainDeliverabilityCampaign + var cv []types.DomainDeliverabilityCampaign if *v == nil { - cv = []*types.DomainDeliverabilityCampaign{} + cv = []types.DomainDeliverabilityCampaign{} } else { cv = *v } for _, value := range shape { - var col *types.DomainDeliverabilityCampaign - if err := awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(&col, value); err != nil { + var col types.DomainDeliverabilityCampaign + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainDeliverabilityCampaign(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12382,7 +12400,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOption(v **type if !ok { return fmt.Errorf("expected Domain to be of type string, got %T instead", value) } - sv.Domain = &jtv + sv.Domain = ptr.String(jtv) } case "InboxPlacementTrackingOption": @@ -12412,7 +12430,7 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOption(v **type return nil } -func awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOptions(v *[]*types.DomainDeliverabilityTrackingOption, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOptions(v *[]types.DomainDeliverabilityTrackingOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12425,18 +12443,20 @@ func awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOptions(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainDeliverabilityTrackingOption + var cv []types.DomainDeliverabilityTrackingOption if *v == nil { - cv = []*types.DomainDeliverabilityTrackingOption{} + cv = []types.DomainDeliverabilityTrackingOption{} } else { cv = *v } for _, value := range shape { - var col *types.DomainDeliverabilityTrackingOption - if err := awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOption(&col, value); err != nil { + var col types.DomainDeliverabilityTrackingOption + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainDeliverabilityTrackingOption(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12476,7 +12496,7 @@ func awsRestjson1_deserializeDocumentDomainIspPlacement(v **types.DomainIspPlace if err != nil { return err } - sv.InboxPercentage = &f64 + sv.InboxPercentage = ptr.Float64(f64) } case "InboxRawCount": @@ -12489,7 +12509,7 @@ func awsRestjson1_deserializeDocumentDomainIspPlacement(v **types.DomainIspPlace if err != nil { return err } - sv.InboxRawCount = &i64 + sv.InboxRawCount = ptr.Int64(i64) } case "IspName": @@ -12498,7 +12518,7 @@ func awsRestjson1_deserializeDocumentDomainIspPlacement(v **types.DomainIspPlace if !ok { return fmt.Errorf("expected IspName to be of type string, got %T instead", value) } - sv.IspName = &jtv + sv.IspName = ptr.String(jtv) } case "SpamPercentage": @@ -12511,7 +12531,7 @@ func awsRestjson1_deserializeDocumentDomainIspPlacement(v **types.DomainIspPlace if err != nil { return err } - sv.SpamPercentage = &f64 + sv.SpamPercentage = ptr.Float64(f64) } case "SpamRawCount": @@ -12524,7 +12544,7 @@ func awsRestjson1_deserializeDocumentDomainIspPlacement(v **types.DomainIspPlace if err != nil { return err } - sv.SpamRawCount = &i64 + sv.SpamRawCount = ptr.Int64(i64) } default: @@ -12536,7 +12556,7 @@ func awsRestjson1_deserializeDocumentDomainIspPlacement(v **types.DomainIspPlace return nil } -func awsRestjson1_deserializeDocumentDomainIspPlacements(v *[]*types.DomainIspPlacement, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainIspPlacements(v *[]types.DomainIspPlacement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12549,18 +12569,20 @@ func awsRestjson1_deserializeDocumentDomainIspPlacements(v *[]*types.DomainIspPl return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainIspPlacement + var cv []types.DomainIspPlacement if *v == nil { - cv = []*types.DomainIspPlacement{} + cv = []types.DomainIspPlacement{} } else { cv = *v } for _, value := range shape { - var col *types.DomainIspPlacement - if err := awsRestjson1_deserializeDocumentDomainIspPlacement(&col, value); err != nil { + var col types.DomainIspPlacement + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainIspPlacement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12596,7 +12618,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateContent(v **types.EmailTemplat if !ok { return fmt.Errorf("expected EmailTemplateHtml to be of type string, got %T instead", value) } - sv.Html = &jtv + sv.Html = ptr.String(jtv) } case "Subject": @@ -12605,7 +12627,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateContent(v **types.EmailTemplat if !ok { return fmt.Errorf("expected EmailTemplateSubject to be of type string, got %T instead", value) } - sv.Subject = &jtv + sv.Subject = ptr.String(jtv) } case "Text": @@ -12614,7 +12636,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateContent(v **types.EmailTemplat if !ok { return fmt.Errorf("expected EmailTemplateText to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } default: @@ -12667,7 +12689,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateMetadata(v **types.EmailTempla if !ok { return fmt.Errorf("expected EmailTemplateName to be of type string, got %T instead", value) } - sv.TemplateName = &jtv + sv.TemplateName = ptr.String(jtv) } default: @@ -12679,7 +12701,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateMetadata(v **types.EmailTempla return nil } -func awsRestjson1_deserializeDocumentEmailTemplateMetadataList(v *[]*types.EmailTemplateMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentEmailTemplateMetadataList(v *[]types.EmailTemplateMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12692,18 +12714,20 @@ func awsRestjson1_deserializeDocumentEmailTemplateMetadataList(v *[]*types.Email return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EmailTemplateMetadata + var cv []types.EmailTemplateMetadata if *v == nil { - cv = []*types.EmailTemplateMetadata{} + cv = []types.EmailTemplateMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.EmailTemplateMetadata - if err := awsRestjson1_deserializeDocumentEmailTemplateMetadata(&col, value); err != nil { + var col types.EmailTemplateMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentEmailTemplateMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12711,7 +12735,7 @@ func awsRestjson1_deserializeDocumentEmailTemplateMetadataList(v *[]*types.Email return nil } -func awsRestjson1_deserializeDocumentEsps(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentEsps(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12724,21 +12748,21 @@ func awsRestjson1_deserializeDocumentEsps(v *[]*string, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Esp to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -12780,7 +12804,7 @@ func awsRestjson1_deserializeDocumentEventDestination(v **types.EventDestination if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "KinesisFirehoseDestination": @@ -12799,7 +12823,7 @@ func awsRestjson1_deserializeDocumentEventDestination(v **types.EventDestination if !ok { return fmt.Errorf("expected EventDestinationName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PinpointDestination": @@ -12821,7 +12845,7 @@ func awsRestjson1_deserializeDocumentEventDestination(v **types.EventDestination return nil } -func awsRestjson1_deserializeDocumentEventDestinations(v *[]*types.EventDestination, value interface{}) error { +func awsRestjson1_deserializeDocumentEventDestinations(v *[]types.EventDestination, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12834,18 +12858,20 @@ func awsRestjson1_deserializeDocumentEventDestinations(v *[]*types.EventDestinat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventDestination + var cv []types.EventDestination if *v == nil { - cv = []*types.EventDestination{} + cv = []types.EventDestination{} } else { cv = *v } for _, value := range shape { - var col *types.EventDestination - if err := awsRestjson1_deserializeDocumentEventDestination(&col, value); err != nil { + var col types.EventDestination + destAddr := &col + if err := awsRestjson1_deserializeDocumentEventDestination(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12917,7 +12943,7 @@ func awsRestjson1_deserializeDocumentFailureInfo(v **types.FailureInfo, value in if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "FailedRecordsS3Url": @@ -12926,7 +12952,7 @@ func awsRestjson1_deserializeDocumentFailureInfo(v **types.FailureInfo, value in if !ok { return fmt.Errorf("expected FailedRecordsS3Url to be of type string, got %T instead", value) } - sv.FailedRecordsS3Url = &jtv + sv.FailedRecordsS3Url = ptr.String(jtv) } default: @@ -12966,7 +12992,7 @@ func awsRestjson1_deserializeDocumentIdentityInfo(v **types.IdentityInfo, value if !ok { return fmt.Errorf("expected Identity to be of type string, got %T instead", value) } - sv.IdentityName = &jtv + sv.IdentityName = ptr.String(jtv) } case "IdentityType": @@ -12984,7 +13010,7 @@ func awsRestjson1_deserializeDocumentIdentityInfo(v **types.IdentityInfo, value if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.SendingEnabled = &jtv + sv.SendingEnabled = jtv } default: @@ -12996,7 +13022,7 @@ func awsRestjson1_deserializeDocumentIdentityInfo(v **types.IdentityInfo, value return nil } -func awsRestjson1_deserializeDocumentIdentityInfoList(v *[]*types.IdentityInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentIdentityInfoList(v *[]types.IdentityInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13009,18 +13035,20 @@ func awsRestjson1_deserializeDocumentIdentityInfoList(v *[]*types.IdentityInfo, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IdentityInfo + var cv []types.IdentityInfo if *v == nil { - cv = []*types.IdentityInfo{} + cv = []types.IdentityInfo{} } else { cv = *v } for _, value := range shape { - var col *types.IdentityInfo - if err := awsRestjson1_deserializeDocumentIdentityInfo(&col, value); err != nil { + var col types.IdentityInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentIdentityInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13065,7 +13093,7 @@ func awsRestjson1_deserializeDocumentImportDataSource(v **types.ImportDataSource if !ok { return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) } - sv.S3Url = &jtv + sv.S3Url = ptr.String(jtv) } default: @@ -13164,7 +13192,7 @@ func awsRestjson1_deserializeDocumentImportJobSummary(v **types.ImportJobSummary if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -13185,7 +13213,7 @@ func awsRestjson1_deserializeDocumentImportJobSummary(v **types.ImportJobSummary return nil } -func awsRestjson1_deserializeDocumentImportJobSummaryList(v *[]*types.ImportJobSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentImportJobSummaryList(v *[]types.ImportJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13198,18 +13226,20 @@ func awsRestjson1_deserializeDocumentImportJobSummaryList(v *[]*types.ImportJobS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImportJobSummary + var cv []types.ImportJobSummary if *v == nil { - cv = []*types.ImportJobSummary{} + cv = []types.ImportJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ImportJobSummary - if err := awsRestjson1_deserializeDocumentImportJobSummary(&col, value); err != nil { + var col types.ImportJobSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentImportJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13245,7 +13275,7 @@ func awsRestjson1_deserializeDocumentInboxPlacementTrackingOption(v **types.Inbo if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.Global = &jtv + sv.Global = jtv } case "TrackedIsps": @@ -13290,7 +13320,7 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13302,7 +13332,7 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid return nil } -func awsRestjson1_deserializeDocumentIpList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentIpList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13315,21 +13345,21 @@ func awsRestjson1_deserializeDocumentIpList(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Ip to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -13338,7 +13368,7 @@ func awsRestjson1_deserializeDocumentIpList(v *[]*string, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentIspNameList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentIspNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13351,21 +13381,21 @@ func awsRestjson1_deserializeDocumentIspNameList(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IspName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -13402,7 +13432,7 @@ func awsRestjson1_deserializeDocumentIspPlacement(v **types.IspPlacement, value if !ok { return fmt.Errorf("expected IspName to be of type string, got %T instead", value) } - sv.IspName = &jtv + sv.IspName = ptr.String(jtv) } case "PlacementStatistics": @@ -13419,7 +13449,7 @@ func awsRestjson1_deserializeDocumentIspPlacement(v **types.IspPlacement, value return nil } -func awsRestjson1_deserializeDocumentIspPlacements(v *[]*types.IspPlacement, value interface{}) error { +func awsRestjson1_deserializeDocumentIspPlacements(v *[]types.IspPlacement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13432,18 +13462,20 @@ func awsRestjson1_deserializeDocumentIspPlacements(v *[]*types.IspPlacement, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IspPlacement + var cv []types.IspPlacement if *v == nil { - cv = []*types.IspPlacement{} + cv = []types.IspPlacement{} } else { cv = *v } for _, value := range shape { - var col *types.IspPlacement - if err := awsRestjson1_deserializeDocumentIspPlacement(&col, value); err != nil { + var col types.IspPlacement + destAddr := &col + if err := awsRestjson1_deserializeDocumentIspPlacement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13479,7 +13511,7 @@ func awsRestjson1_deserializeDocumentKinesisFirehoseDestination(v **types.Kinesi if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.DeliveryStreamArn = &jtv + sv.DeliveryStreamArn = ptr.String(jtv) } case "IamRoleArn": @@ -13488,7 +13520,7 @@ func awsRestjson1_deserializeDocumentKinesisFirehoseDestination(v **types.Kinesi if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.IamRoleArn = &jtv + sv.IamRoleArn = ptr.String(jtv) } default: @@ -13528,7 +13560,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13540,7 +13572,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsRestjson1_deserializeDocumentListOfContactLists(v *[]*types.ContactList, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfContactLists(v *[]types.ContactList, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13553,18 +13585,20 @@ func awsRestjson1_deserializeDocumentListOfContactLists(v *[]*types.ContactList, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ContactList + var cv []types.ContactList if *v == nil { - cv = []*types.ContactList{} + cv = []types.ContactList{} } else { cv = *v } for _, value := range shape { - var col *types.ContactList - if err := awsRestjson1_deserializeDocumentContactList(&col, value); err != nil { + var col types.ContactList + destAddr := &col + if err := awsRestjson1_deserializeDocumentContactList(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13572,7 +13606,7 @@ func awsRestjson1_deserializeDocumentListOfContactLists(v *[]*types.ContactList, return nil } -func awsRestjson1_deserializeDocumentListOfContacts(v *[]*types.Contact, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfContacts(v *[]types.Contact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13585,18 +13619,20 @@ func awsRestjson1_deserializeDocumentListOfContacts(v *[]*types.Contact, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Contact + var cv []types.Contact if *v == nil { - cv = []*types.Contact{} + cv = []types.Contact{} } else { cv = *v } for _, value := range shape { - var col *types.Contact - if err := awsRestjson1_deserializeDocumentContact(&col, value); err != nil { + var col types.Contact + destAddr := &col + if err := awsRestjson1_deserializeDocumentContact(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13604,7 +13640,7 @@ func awsRestjson1_deserializeDocumentListOfContacts(v *[]*types.Contact, value i return nil } -func awsRestjson1_deserializeDocumentListOfDedicatedIpPools(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentListOfDedicatedIpPools(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13617,21 +13653,21 @@ func awsRestjson1_deserializeDocumentListOfDedicatedIpPools(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PoolName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -13677,7 +13713,7 @@ func awsRestjson1_deserializeDocumentMailFromAttributes(v **types.MailFromAttrib if !ok { return fmt.Errorf("expected MailFromDomainName to be of type string, got %T instead", value) } - sv.MailFromDomain = &jtv + sv.MailFromDomain = ptr.String(jtv) } case "MailFromDomainStatus": @@ -13726,7 +13762,7 @@ func awsRestjson1_deserializeDocumentMailFromDomainNotVerifiedException(v **type if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13766,7 +13802,7 @@ func awsRestjson1_deserializeDocumentMessageRejected(v **types.MessageRejected, if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13806,7 +13842,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13855,7 +13891,7 @@ func awsRestjson1_deserializeDocumentOverallVolume(v **types.OverallVolume, valu if err != nil { return err } - sv.ReadRatePercent = &f64 + sv.ReadRatePercent = ptr.Float64(f64) } case "VolumeStatistics": @@ -13900,7 +13936,7 @@ func awsRestjson1_deserializeDocumentPinpointDestination(v **types.PinpointDesti if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.ApplicationArn = &jtv + sv.ApplicationArn = ptr.String(jtv) } default: @@ -13944,7 +13980,7 @@ func awsRestjson1_deserializeDocumentPlacementStatistics(v **types.PlacementStat if err != nil { return err } - sv.DkimPercentage = &f64 + sv.DkimPercentage = ptr.Float64(f64) } case "InboxPercentage": @@ -13957,7 +13993,7 @@ func awsRestjson1_deserializeDocumentPlacementStatistics(v **types.PlacementStat if err != nil { return err } - sv.InboxPercentage = &f64 + sv.InboxPercentage = ptr.Float64(f64) } case "MissingPercentage": @@ -13970,7 +14006,7 @@ func awsRestjson1_deserializeDocumentPlacementStatistics(v **types.PlacementStat if err != nil { return err } - sv.MissingPercentage = &f64 + sv.MissingPercentage = ptr.Float64(f64) } case "SpamPercentage": @@ -13983,7 +14019,7 @@ func awsRestjson1_deserializeDocumentPlacementStatistics(v **types.PlacementStat if err != nil { return err } - sv.SpamPercentage = &f64 + sv.SpamPercentage = ptr.Float64(f64) } case "SpfPercentage": @@ -13996,7 +14032,7 @@ func awsRestjson1_deserializeDocumentPlacementStatistics(v **types.PlacementStat if err != nil { return err } - sv.SpfPercentage = &f64 + sv.SpfPercentage = ptr.Float64(f64) } default: @@ -14008,7 +14044,7 @@ func awsRestjson1_deserializeDocumentPlacementStatistics(v **types.PlacementStat return nil } -func awsRestjson1_deserializeDocumentPolicyMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentPolicyMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14021,21 +14057,21 @@ func awsRestjson1_deserializeDocumentPolicyMap(v *map[string]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Policy to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -14085,7 +14121,7 @@ func awsRestjson1_deserializeDocumentReputationOptions(v **types.ReputationOptio if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.ReputationMetricsEnabled = &jtv + sv.ReputationMetricsEnabled = jtv } default: @@ -14125,7 +14161,7 @@ func awsRestjson1_deserializeDocumentReviewDetails(v **types.ReviewDetails, valu if !ok { return fmt.Errorf("expected CaseId to be of type string, got %T instead", value) } - sv.CaseId = &jtv + sv.CaseId = ptr.String(jtv) } case "Status": @@ -14174,7 +14210,7 @@ func awsRestjson1_deserializeDocumentSendingOptions(v **types.SendingOptions, va if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.SendingEnabled = &jtv + sv.SendingEnabled = jtv } default: @@ -14214,7 +14250,7 @@ func awsRestjson1_deserializeDocumentSendingPausedException(v **types.SendingPau if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14258,7 +14294,7 @@ func awsRestjson1_deserializeDocumentSendQuota(v **types.SendQuota, value interf if err != nil { return err } - sv.Max24HourSend = &f64 + sv.Max24HourSend = f64 } case "MaxSendRate": @@ -14271,7 +14307,7 @@ func awsRestjson1_deserializeDocumentSendQuota(v **types.SendQuota, value interf if err != nil { return err } - sv.MaxSendRate = &f64 + sv.MaxSendRate = f64 } case "SentLast24Hours": @@ -14284,7 +14320,7 @@ func awsRestjson1_deserializeDocumentSendQuota(v **types.SendQuota, value interf if err != nil { return err } - sv.SentLast24Hours = &f64 + sv.SentLast24Hours = f64 } default: @@ -14324,7 +14360,7 @@ func awsRestjson1_deserializeDocumentSnsDestination(v **types.SnsDestination, va if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.TopicArn = &jtv + sv.TopicArn = ptr.String(jtv) } default: @@ -14369,7 +14405,7 @@ func awsRestjson1_deserializeDocumentSuppressedDestination(v **types.SuppressedD if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "LastUpdateTime": @@ -14431,7 +14467,7 @@ func awsRestjson1_deserializeDocumentSuppressedDestinationAttributes(v **types.S if !ok { return fmt.Errorf("expected FeedbackId to be of type string, got %T instead", value) } - sv.FeedbackId = &jtv + sv.FeedbackId = ptr.String(jtv) } case "MessageId": @@ -14440,7 +14476,7 @@ func awsRestjson1_deserializeDocumentSuppressedDestinationAttributes(v **types.S if !ok { return fmt.Errorf("expected OutboundMessageId to be of type string, got %T instead", value) } - sv.MessageId = &jtv + sv.MessageId = ptr.String(jtv) } default: @@ -14452,7 +14488,7 @@ func awsRestjson1_deserializeDocumentSuppressedDestinationAttributes(v **types.S return nil } -func awsRestjson1_deserializeDocumentSuppressedDestinationSummaries(v *[]*types.SuppressedDestinationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentSuppressedDestinationSummaries(v *[]types.SuppressedDestinationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14465,18 +14501,20 @@ func awsRestjson1_deserializeDocumentSuppressedDestinationSummaries(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SuppressedDestinationSummary + var cv []types.SuppressedDestinationSummary if *v == nil { - cv = []*types.SuppressedDestinationSummary{} + cv = []types.SuppressedDestinationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SuppressedDestinationSummary - if err := awsRestjson1_deserializeDocumentSuppressedDestinationSummary(&col, value); err != nil { + var col types.SuppressedDestinationSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentSuppressedDestinationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14512,7 +14550,7 @@ func awsRestjson1_deserializeDocumentSuppressedDestinationSummary(v **types.Supp if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "LastUpdateTime": @@ -14722,7 +14760,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -14731,7 +14769,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -14743,7 +14781,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14756,18 +14794,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14803,7 +14843,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14852,7 +14892,7 @@ func awsRestjson1_deserializeDocumentTopic(v **types.Topic, value interface{}) e if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DisplayName": @@ -14861,7 +14901,7 @@ func awsRestjson1_deserializeDocumentTopic(v **types.Topic, value interface{}) e if !ok { return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "TopicName": @@ -14870,7 +14910,7 @@ func awsRestjson1_deserializeDocumentTopic(v **types.Topic, value interface{}) e if !ok { return fmt.Errorf("expected TopicName to be of type string, got %T instead", value) } - sv.TopicName = &jtv + sv.TopicName = ptr.String(jtv) } default: @@ -14919,7 +14959,7 @@ func awsRestjson1_deserializeDocumentTopicPreference(v **types.TopicPreference, if !ok { return fmt.Errorf("expected TopicName to be of type string, got %T instead", value) } - sv.TopicName = &jtv + sv.TopicName = ptr.String(jtv) } default: @@ -14931,7 +14971,7 @@ func awsRestjson1_deserializeDocumentTopicPreference(v **types.TopicPreference, return nil } -func awsRestjson1_deserializeDocumentTopicPreferenceList(v *[]*types.TopicPreference, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicPreferenceList(v *[]types.TopicPreference, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14944,18 +14984,20 @@ func awsRestjson1_deserializeDocumentTopicPreferenceList(v *[]*types.TopicPrefer return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TopicPreference + var cv []types.TopicPreference if *v == nil { - cv = []*types.TopicPreference{} + cv = []types.TopicPreference{} } else { cv = *v } for _, value := range shape { - var col *types.TopicPreference - if err := awsRestjson1_deserializeDocumentTopicPreference(&col, value); err != nil { + var col types.TopicPreference + destAddr := &col + if err := awsRestjson1_deserializeDocumentTopicPreference(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14963,7 +15005,7 @@ func awsRestjson1_deserializeDocumentTopicPreferenceList(v *[]*types.TopicPrefer return nil } -func awsRestjson1_deserializeDocumentTopics(v *[]*types.Topic, value interface{}) error { +func awsRestjson1_deserializeDocumentTopics(v *[]types.Topic, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14976,18 +15018,20 @@ func awsRestjson1_deserializeDocumentTopics(v *[]*types.Topic, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Topic + var cv []types.Topic if *v == nil { - cv = []*types.Topic{} + cv = []types.Topic{} } else { cv = *v } for _, value := range shape { - var col *types.Topic - if err := awsRestjson1_deserializeDocumentTopic(&col, value); err != nil { + var col types.Topic + destAddr := &col + if err := awsRestjson1_deserializeDocumentTopic(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -15023,7 +15067,7 @@ func awsRestjson1_deserializeDocumentTrackingOptions(v **types.TrackingOptions, if !ok { return fmt.Errorf("expected CustomRedirectDomain to be of type string, got %T instead", value) } - sv.CustomRedirectDomain = &jtv + sv.CustomRedirectDomain = ptr.String(jtv) } default: @@ -15067,7 +15111,7 @@ func awsRestjson1_deserializeDocumentVolumeStatistics(v **types.VolumeStatistics if err != nil { return err } - sv.InboxRawCount = &i64 + sv.InboxRawCount = ptr.Int64(i64) } case "ProjectedInbox": @@ -15080,7 +15124,7 @@ func awsRestjson1_deserializeDocumentVolumeStatistics(v **types.VolumeStatistics if err != nil { return err } - sv.ProjectedInbox = &i64 + sv.ProjectedInbox = ptr.Int64(i64) } case "ProjectedSpam": @@ -15093,7 +15137,7 @@ func awsRestjson1_deserializeDocumentVolumeStatistics(v **types.VolumeStatistics if err != nil { return err } - sv.ProjectedSpam = &i64 + sv.ProjectedSpam = ptr.Int64(i64) } case "SpamRawCount": @@ -15106,7 +15150,7 @@ func awsRestjson1_deserializeDocumentVolumeStatistics(v **types.VolumeStatistics if err != nil { return err } - sv.SpamRawCount = &i64 + sv.SpamRawCount = ptr.Int64(i64) } default: diff --git a/service/sesv2/go.mod b/service/sesv2/go.mod index 14fdeb1bae2..1fdb578842d 100644 --- a/service/sesv2/go.mod +++ b/service/sesv2/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/sesv2 go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/sesv2/serializers.go b/service/sesv2/serializers.go index f030faf93cf..1dbc88cfdba 100644 --- a/service/sesv2/serializers.go +++ b/service/sesv2/serializers.go @@ -192,13 +192,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateConfigurationSetEventDestinationI return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -288,13 +285,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateContactInput(v *CreateContactInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContactListName == nil { + if v.ContactListName == nil || len(*v.ContactListName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} } if v.ContactListName != nil { - if len(*v.ContactListName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} - } if err := encoder.SetURI("ContactListName").String(*v.ContactListName); err != nil { return err } @@ -324,9 +318,9 @@ func awsRestjson1_serializeOpDocumentCreateContactInput(v *CreateContactInput, v } } - if v.UnsubscribeAll != nil { + if v.UnsubscribeAll { ok := object.Key("UnsubscribeAll") - ok.Boolean(*v.UnsubscribeAll) + ok.Boolean(v.UnsubscribeAll) } return nil @@ -843,25 +837,19 @@ func awsRestjson1_serializeOpHttpBindingsCreateEmailIdentityPolicyInput(v *Creat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyName must not be empty")} - } if err := encoder.SetURI("PolicyName").String(*v.PolicyName); err != nil { return err } @@ -1095,13 +1083,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteConfigurationSetInput(v *DeleteCo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -1161,25 +1146,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteConfigurationSetEventDestinationI return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } } - if v.EventDestinationName == nil { + if v.EventDestinationName == nil || len(*v.EventDestinationName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EventDestinationName must not be empty")} } if v.EventDestinationName != nil { - if len(*v.EventDestinationName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EventDestinationName must not be empty")} - } if err := encoder.SetURI("EventDestinationName").String(*v.EventDestinationName); err != nil { return err } @@ -1239,25 +1218,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteContactInput(v *DeleteContactInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContactListName == nil { + if v.ContactListName == nil || len(*v.ContactListName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} } if v.ContactListName != nil { - if len(*v.ContactListName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} - } if err := encoder.SetURI("ContactListName").String(*v.ContactListName); err != nil { return err } } - if v.EmailAddress == nil { + if v.EmailAddress == nil || len(*v.EmailAddress) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailAddress must not be empty")} } if v.EmailAddress != nil { - if len(*v.EmailAddress) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailAddress must not be empty")} - } if err := encoder.SetURI("EmailAddress").String(*v.EmailAddress); err != nil { return err } @@ -1317,13 +1290,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteContactListInput(v *DeleteContact return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContactListName == nil { + if v.ContactListName == nil || len(*v.ContactListName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} } if v.ContactListName != nil { - if len(*v.ContactListName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} - } if err := encoder.SetURI("ContactListName").String(*v.ContactListName); err != nil { return err } @@ -1383,13 +1353,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteCustomVerificationEmailTemplateIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -1449,13 +1416,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDedicatedIpPoolInput(v *DeleteDed return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PoolName == nil { + if v.PoolName == nil || len(*v.PoolName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PoolName must not be empty")} } if v.PoolName != nil { - if len(*v.PoolName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PoolName must not be empty")} - } if err := encoder.SetURI("PoolName").String(*v.PoolName); err != nil { return err } @@ -1515,13 +1479,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteEmailIdentityInput(v *DeleteEmail return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } @@ -1581,25 +1542,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteEmailIdentityPolicyInput(v *Delet return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyName must not be empty")} - } if err := encoder.SetURI("PolicyName").String(*v.PolicyName); err != nil { return err } @@ -1659,13 +1614,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteEmailTemplateInput(v *DeleteEmail return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -1725,13 +1677,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteSuppressedDestinationInput(v *Del return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailAddress == nil { + if v.EmailAddress == nil || len(*v.EmailAddress) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailAddress must not be empty")} } if v.EmailAddress != nil { - if len(*v.EmailAddress) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailAddress must not be empty")} - } if err := encoder.SetURI("EmailAddress").String(*v.EmailAddress); err != nil { return err } @@ -1843,10 +1792,7 @@ func awsRestjson1_serializeOpHttpBindingsGetBlacklistReportsInput(v *GetBlacklis if v.BlacklistItemNames != nil { for i := range v.BlacklistItemNames { - if v.BlacklistItemNames[i] == nil { - continue - } - encoder.AddQuery("BlacklistItemNames").String(*v.BlacklistItemNames[i]) + encoder.AddQuery("BlacklistItemNames").String(v.BlacklistItemNames[i]) } } @@ -1904,13 +1850,10 @@ func awsRestjson1_serializeOpHttpBindingsGetConfigurationSetInput(v *GetConfigur return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -1970,13 +1913,10 @@ func awsRestjson1_serializeOpHttpBindingsGetConfigurationSetEventDestinationsInp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -2036,25 +1976,19 @@ func awsRestjson1_serializeOpHttpBindingsGetContactInput(v *GetContactInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContactListName == nil { + if v.ContactListName == nil || len(*v.ContactListName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} } if v.ContactListName != nil { - if len(*v.ContactListName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} - } if err := encoder.SetURI("ContactListName").String(*v.ContactListName); err != nil { return err } } - if v.EmailAddress == nil { + if v.EmailAddress == nil || len(*v.EmailAddress) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailAddress must not be empty")} } if v.EmailAddress != nil { - if len(*v.EmailAddress) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailAddress must not be empty")} - } if err := encoder.SetURI("EmailAddress").String(*v.EmailAddress); err != nil { return err } @@ -2114,13 +2048,10 @@ func awsRestjson1_serializeOpHttpBindingsGetContactListInput(v *GetContactListIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContactListName == nil { + if v.ContactListName == nil || len(*v.ContactListName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} } if v.ContactListName != nil { - if len(*v.ContactListName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} - } if err := encoder.SetURI("ContactListName").String(*v.ContactListName); err != nil { return err } @@ -2180,13 +2111,10 @@ func awsRestjson1_serializeOpHttpBindingsGetCustomVerificationEmailTemplateInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -2246,13 +2174,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDedicatedIpInput(v *GetDedicatedIpIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Ip == nil { + if v.Ip == nil || len(*v.Ip) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Ip must not be empty")} } if v.Ip != nil { - if len(*v.Ip) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Ip must not be empty")} - } if err := encoder.SetURI("Ip").String(*v.Ip); err != nil { return err } @@ -2428,13 +2353,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDeliverabilityTestReportInput(v *Get return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ReportId == nil { + if v.ReportId == nil || len(*v.ReportId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ReportId must not be empty")} } if v.ReportId != nil { - if len(*v.ReportId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ReportId must not be empty")} - } if err := encoder.SetURI("ReportId").String(*v.ReportId); err != nil { return err } @@ -2494,13 +2416,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDomainDeliverabilityCampaignInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CampaignId == nil { + if v.CampaignId == nil || len(*v.CampaignId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} } if v.CampaignId != nil { - if len(*v.CampaignId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CampaignId must not be empty")} - } if err := encoder.SetURI("CampaignId").String(*v.CampaignId); err != nil { return err } @@ -2560,13 +2479,10 @@ func awsRestjson1_serializeOpHttpBindingsGetDomainStatisticsReportInput(v *GetDo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Domain == nil { + if v.Domain == nil || len(*v.Domain) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Domain must not be empty")} } if v.Domain != nil { - if len(*v.Domain) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Domain must not be empty")} - } if err := encoder.SetURI("Domain").String(*v.Domain); err != nil { return err } @@ -2634,13 +2550,10 @@ func awsRestjson1_serializeOpHttpBindingsGetEmailIdentityInput(v *GetEmailIdenti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } @@ -2700,13 +2613,10 @@ func awsRestjson1_serializeOpHttpBindingsGetEmailIdentityPoliciesInput(v *GetEma return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } @@ -2766,13 +2676,10 @@ func awsRestjson1_serializeOpHttpBindingsGetEmailTemplateInput(v *GetEmailTempla return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -2832,13 +2739,10 @@ func awsRestjson1_serializeOpHttpBindingsGetImportJobInput(v *GetImportJobInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} - } if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { return err } @@ -2898,13 +2802,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSuppressedDestinationInput(v *GetSup return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailAddress == nil { + if v.EmailAddress == nil || len(*v.EmailAddress) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailAddress must not be empty")} } if v.EmailAddress != nil { - if len(*v.EmailAddress) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailAddress must not be empty")} - } if err := encoder.SetURI("EmailAddress").String(*v.EmailAddress); err != nil { return err } @@ -3099,13 +3000,10 @@ func awsRestjson1_serializeOpHttpBindingsListContactsInput(v *ListContactsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContactListName == nil { + if v.ContactListName == nil || len(*v.ContactListName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} } if v.ContactListName != nil { - if len(*v.ContactListName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} - } if err := encoder.SetURI("ContactListName").String(*v.ContactListName); err != nil { return err } @@ -3389,13 +3287,10 @@ func awsRestjson1_serializeOpHttpBindingsListDomainDeliverabilityCampaignsInput( encoder.SetQuery("StartDate").String(smithytime.FormatDateTime(*v.StartDate)) } - if v.SubscribedDomain == nil { + if v.SubscribedDomain == nil || len(*v.SubscribedDomain) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SubscribedDomain must not be empty")} } if v.SubscribedDomain != nil { - if len(*v.SubscribedDomain) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SubscribedDomain must not be empty")} - } if err := encoder.SetURI("SubscribedDomain").String(*v.SubscribedDomain); err != nil { return err } @@ -3812,9 +3707,9 @@ func awsRestjson1_serializeOpDocumentPutAccountDedicatedIpWarmupAttributesInput( object := value.Object() defer object.Close() - if v.AutoWarmupEnabled != nil { + if v.AutoWarmupEnabled { ok := object.Key("AutoWarmupEnabled") - ok.Boolean(*v.AutoWarmupEnabled) + ok.Boolean(v.AutoWarmupEnabled) } return nil @@ -3985,9 +3880,9 @@ func awsRestjson1_serializeOpDocumentPutAccountSendingAttributesInput(v *PutAcco object := value.Object() defer object.Close() - if v.SendingEnabled != nil { + if v.SendingEnabled { ok := object.Key("SendingEnabled") - ok.Boolean(*v.SendingEnabled) + ok.Boolean(v.SendingEnabled) } return nil @@ -4130,13 +4025,10 @@ func awsRestjson1_serializeOpHttpBindingsPutConfigurationSetDeliveryOptionsInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -4224,13 +4116,10 @@ func awsRestjson1_serializeOpHttpBindingsPutConfigurationSetReputationOptionsInp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -4243,9 +4132,9 @@ func awsRestjson1_serializeOpDocumentPutConfigurationSetReputationOptionsInput(v object := value.Object() defer object.Close() - if v.ReputationMetricsEnabled != nil { + if v.ReputationMetricsEnabled { ok := object.Key("ReputationMetricsEnabled") - ok.Boolean(*v.ReputationMetricsEnabled) + ok.Boolean(v.ReputationMetricsEnabled) } return nil @@ -4313,13 +4202,10 @@ func awsRestjson1_serializeOpHttpBindingsPutConfigurationSetSendingOptionsInput( return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -4332,9 +4218,9 @@ func awsRestjson1_serializeOpDocumentPutConfigurationSetSendingOptionsInput(v *P object := value.Object() defer object.Close() - if v.SendingEnabled != nil { + if v.SendingEnabled { ok := object.Key("SendingEnabled") - ok.Boolean(*v.SendingEnabled) + ok.Boolean(v.SendingEnabled) } return nil @@ -4402,13 +4288,10 @@ func awsRestjson1_serializeOpHttpBindingsPutConfigurationSetSuppressionOptionsIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -4493,13 +4376,10 @@ func awsRestjson1_serializeOpHttpBindingsPutConfigurationSetTrackingOptionsInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } @@ -4582,13 +4462,10 @@ func awsRestjson1_serializeOpHttpBindingsPutDedicatedIpInPoolInput(v *PutDedicat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Ip == nil { + if v.Ip == nil || len(*v.Ip) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Ip must not be empty")} } if v.Ip != nil { - if len(*v.Ip) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Ip must not be empty")} - } if err := encoder.SetURI("Ip").String(*v.Ip); err != nil { return err } @@ -4671,13 +4548,10 @@ func awsRestjson1_serializeOpHttpBindingsPutDedicatedIpWarmupAttributesInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Ip == nil { + if v.Ip == nil || len(*v.Ip) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Ip must not be empty")} } if v.Ip != nil { - if len(*v.Ip) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Ip must not be empty")} - } if err := encoder.SetURI("Ip").String(*v.Ip); err != nil { return err } @@ -4763,9 +4637,9 @@ func awsRestjson1_serializeOpDocumentPutDeliverabilityDashboardOptionInput(v *Pu object := value.Object() defer object.Close() - if v.DashboardEnabled != nil { + if v.DashboardEnabled { ok := object.Key("DashboardEnabled") - ok.Boolean(*v.DashboardEnabled) + ok.Boolean(v.DashboardEnabled) } if v.SubscribedDomains != nil { @@ -4840,13 +4714,10 @@ func awsRestjson1_serializeOpHttpBindingsPutEmailIdentityDkimAttributesInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } @@ -4859,9 +4730,9 @@ func awsRestjson1_serializeOpDocumentPutEmailIdentityDkimAttributesInput(v *PutE object := value.Object() defer object.Close() - if v.SigningEnabled != nil { + if v.SigningEnabled { ok := object.Key("SigningEnabled") - ok.Boolean(*v.SigningEnabled) + ok.Boolean(v.SigningEnabled) } return nil @@ -4929,13 +4800,10 @@ func awsRestjson1_serializeOpHttpBindingsPutEmailIdentityDkimSigningAttributesIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } @@ -5025,13 +4893,10 @@ func awsRestjson1_serializeOpHttpBindingsPutEmailIdentityFeedbackAttributesInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } @@ -5044,9 +4909,9 @@ func awsRestjson1_serializeOpDocumentPutEmailIdentityFeedbackAttributesInput(v * object := value.Object() defer object.Close() - if v.EmailForwardingEnabled != nil { + if v.EmailForwardingEnabled { ok := object.Key("EmailForwardingEnabled") - ok.Boolean(*v.EmailForwardingEnabled) + ok.Boolean(v.EmailForwardingEnabled) } return nil @@ -5114,13 +4979,10 @@ func awsRestjson1_serializeOpHttpBindingsPutEmailIdentityMailFromAttributesInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } @@ -5698,13 +5560,10 @@ func awsRestjson1_serializeOpHttpBindingsTestRenderEmailTemplateInput(v *TestRen return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -5782,10 +5641,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("TagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("TagKeys").String(v.TagKeys[i]) } } @@ -5854,25 +5710,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateConfigurationSetEventDestinationI return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfigurationSetName == nil { + if v.ConfigurationSetName == nil || len(*v.ConfigurationSetName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} } if v.ConfigurationSetName != nil { - if len(*v.ConfigurationSetName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ConfigurationSetName must not be empty")} - } if err := encoder.SetURI("ConfigurationSetName").String(*v.ConfigurationSetName); err != nil { return err } } - if v.EventDestinationName == nil { + if v.EventDestinationName == nil || len(*v.EventDestinationName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EventDestinationName must not be empty")} } if v.EventDestinationName != nil { - if len(*v.EventDestinationName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EventDestinationName must not be empty")} - } if err := encoder.SetURI("EventDestinationName").String(*v.EventDestinationName); err != nil { return err } @@ -5957,25 +5807,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateContactInput(v *UpdateContactInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContactListName == nil { + if v.ContactListName == nil || len(*v.ContactListName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} } if v.ContactListName != nil { - if len(*v.ContactListName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} - } if err := encoder.SetURI("ContactListName").String(*v.ContactListName); err != nil { return err } } - if v.EmailAddress == nil { + if v.EmailAddress == nil || len(*v.EmailAddress) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailAddress must not be empty")} } if v.EmailAddress != nil { - if len(*v.EmailAddress) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailAddress must not be empty")} - } if err := encoder.SetURI("EmailAddress").String(*v.EmailAddress); err != nil { return err } @@ -6000,9 +5844,9 @@ func awsRestjson1_serializeOpDocumentUpdateContactInput(v *UpdateContactInput, v } } - if v.UnsubscribeAll != nil { + if v.UnsubscribeAll { ok := object.Key("UnsubscribeAll") - ok.Boolean(*v.UnsubscribeAll) + ok.Boolean(v.UnsubscribeAll) } return nil @@ -6070,13 +5914,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateContactListInput(v *UpdateContact return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContactListName == nil { + if v.ContactListName == nil || len(*v.ContactListName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} } if v.ContactListName != nil { - if len(*v.ContactListName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ContactListName must not be empty")} - } if err := encoder.SetURI("ContactListName").String(*v.ContactListName); err != nil { return err } @@ -6166,13 +6007,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateCustomVerificationEmailTemplateIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -6275,25 +6113,19 @@ func awsRestjson1_serializeOpHttpBindingsUpdateEmailIdentityPolicyInput(v *Updat return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.EmailIdentity == nil { + if v.EmailIdentity == nil || len(*v.EmailIdentity) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} } if v.EmailIdentity != nil { - if len(*v.EmailIdentity) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EmailIdentity must not be empty")} - } if err := encoder.SetURI("EmailIdentity").String(*v.EmailIdentity); err != nil { return err } } - if v.PolicyName == nil { + if v.PolicyName == nil || len(*v.PolicyName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyName must not be empty")} } if v.PolicyName != nil { - if len(*v.PolicyName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyName must not be empty")} - } if err := encoder.SetURI("PolicyName").String(*v.PolicyName); err != nil { return err } @@ -6376,13 +6208,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateEmailTemplateInput(v *UpdateEmail return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateName == nil { + if v.TemplateName == nil || len(*v.TemplateName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} } if v.TemplateName != nil { - if len(*v.TemplateName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateName must not be empty")} - } if err := encoder.SetURI("TemplateName").String(*v.TemplateName); err != nil { return err } @@ -6405,17 +6234,13 @@ func awsRestjson1_serializeOpDocumentUpdateEmailTemplateInput(v *UpdateEmailTemp return nil } -func awsRestjson1_serializeDocumentAdditionalContactEmailAddresses(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAdditionalContactEmailAddresses(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6483,17 +6308,13 @@ func awsRestjson1_serializeDocumentBulkEmailEntry(v *types.BulkEmailEntry, value return nil } -func awsRestjson1_serializeDocumentBulkEmailEntryList(v []*types.BulkEmailEntry, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBulkEmailEntryList(v []types.BulkEmailEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentBulkEmailEntry(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentBulkEmailEntry(&v[i], av); err != nil { return err } } @@ -6536,17 +6357,13 @@ func awsRestjson1_serializeDocumentCloudWatchDimensionConfiguration(v *types.Clo return nil } -func awsRestjson1_serializeDocumentCloudWatchDimensionConfigurations(v []*types.CloudWatchDimensionConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCloudWatchDimensionConfigurations(v []types.CloudWatchDimensionConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentCloudWatchDimensionConfiguration(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentCloudWatchDimensionConfiguration(&v[i], av); err != nil { return err } } @@ -6673,34 +6490,26 @@ func awsRestjson1_serializeDocumentDomainDeliverabilityTrackingOption(v *types.D return nil } -func awsRestjson1_serializeDocumentDomainDeliverabilityTrackingOptions(v []*types.DomainDeliverabilityTrackingOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDomainDeliverabilityTrackingOptions(v []types.DomainDeliverabilityTrackingOption, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentDomainDeliverabilityTrackingOption(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDomainDeliverabilityTrackingOption(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentEmailAddressList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentEmailAddressList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6766,9 +6575,9 @@ func awsRestjson1_serializeDocumentEventDestinationDefinition(v *types.EventDest } } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.KinesisFirehoseDestination != nil { @@ -6855,9 +6664,9 @@ func awsRestjson1_serializeDocumentInboxPlacementTrackingOption(v *types.InboxPl object := value.Object() defer object.Close() - if v.Global != nil { + if v.Global { ok := object.Key("Global") - ok.Boolean(*v.Global) + ok.Boolean(v.Global) } if v.TrackedIsps != nil { @@ -6870,17 +6679,13 @@ func awsRestjson1_serializeDocumentInboxPlacementTrackingOption(v *types.InboxPl return nil } -func awsRestjson1_serializeDocumentIspNameList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIspNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6976,17 +6781,13 @@ func awsRestjson1_serializeDocumentMessageTag(v *types.MessageTag, value smithyj return nil } -func awsRestjson1_serializeDocumentMessageTagList(v []*types.MessageTag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMessageTagList(v []types.MessageTag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentMessageTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMessageTag(&v[i], av); err != nil { return err } } @@ -7052,9 +6853,9 @@ func awsRestjson1_serializeDocumentReputationOptions(v *types.ReputationOptions, ok.Double(smithytime.FormatEpochSeconds(*v.LastFreshStart)) } - if v.ReputationMetricsEnabled != nil { + if v.ReputationMetricsEnabled { ok := object.Key("ReputationMetricsEnabled") - ok.Boolean(*v.ReputationMetricsEnabled) + ok.Boolean(v.ReputationMetricsEnabled) } return nil @@ -7064,9 +6865,9 @@ func awsRestjson1_serializeDocumentSendingOptions(v *types.SendingOptions, value object := value.Object() defer object.Close() - if v.SendingEnabled != nil { + if v.SendingEnabled { ok := object.Key("SendingEnabled") - ok.Boolean(*v.SendingEnabled) + ok.Boolean(v.SendingEnabled) } return nil @@ -7138,17 +6939,13 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -7213,9 +7010,9 @@ func awsRestjson1_serializeDocumentTopicFilter(v *types.TopicFilter, value smith ok.String(*v.TopicName) } - if v.UseDefaultIfPreferenceUnavailable != nil { + if v.UseDefaultIfPreferenceUnavailable { ok := object.Key("UseDefaultIfPreferenceUnavailable") - ok.Boolean(*v.UseDefaultIfPreferenceUnavailable) + ok.Boolean(v.UseDefaultIfPreferenceUnavailable) } return nil @@ -7238,34 +7035,26 @@ func awsRestjson1_serializeDocumentTopicPreference(v *types.TopicPreference, val return nil } -func awsRestjson1_serializeDocumentTopicPreferenceList(v []*types.TopicPreference, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopicPreferenceList(v []types.TopicPreference, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTopicPreference(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTopicPreference(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTopics(v []*types.Topic, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopics(v []types.Topic, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTopic(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTopic(&v[i], av); err != nil { return err } } diff --git a/service/sesv2/types/types.go b/service/sesv2/types/types.go index f3ba83a9e14..fcc1f262013 100644 --- a/service/sesv2/types/types.go +++ b/service/sesv2/types/types.go @@ -11,7 +11,7 @@ type AccountDetails struct { // Additional email addresses where updates are sent about your account review // process. - AdditionalContactEmailAddresses []*string + AdditionalContactEmailAddresses []string // The language you would prefer for the case. The contact language can be one of // ENGLISH or JAPANESE. @@ -97,7 +97,7 @@ type BulkEmailEntry struct { // send using the SendBulkTemplatedEmail operation. Tags correspond to // characteristics of the email that you define, so that you can publish email // sending events. - ReplacementTags []*MessageTag + ReplacementTags []MessageTag } // The result of the SendBulkEmail operation of each specified BulkEmailEntry. @@ -176,7 +176,7 @@ type CloudWatchDestination struct { // to Amazon CloudWatch. // // This member is required. - DimensionConfigurations []*CloudWatchDimensionConfiguration + DimensionConfigurations []CloudWatchDimensionConfiguration } // An object that defines the dimension configuration to use when you send email @@ -228,14 +228,14 @@ type Contact struct { LastUpdatedTimestamp *time.Time // The default topic preferences applied to the contact. - TopicDefaultPreferences []*TopicPreference + TopicDefaultPreferences []TopicPreference // The contact's preference for being opted-in to or opted-out of a topic. - TopicPreferences []*TopicPreference + TopicPreferences []TopicPreference // A boolean value status noting if the contact is unsubscribed from all contact // list topics. - UnsubscribeAll *bool + UnsubscribeAll bool } // A list that contains contacts that have subscribed to a particular topic or @@ -313,7 +313,7 @@ type DailyVolume struct { // An object that contains inbox placement metrics for a specified day in the // analysis period, broken out by the recipient's email provider. - DomainIspPlacements []*DomainIspPlacement + DomainIspPlacements []DomainIspPlacement // The date that the DailyVolume metrics apply to, in Unix time. StartDate *time.Time @@ -405,14 +405,14 @@ type Destination struct { // An array that contains the email addresses of the "BCC" (blind carbon copy) // recipients for the email. - BccAddresses []*string + BccAddresses []string // An array that contains the email addresses of the "CC" (carbon copy) recipients // for the email. - CcAddresses []*string + CcAddresses []string // An array that contains the email addresses of the "To" recipients for the email. - ToAddresses []*string + ToAddresses []string } // An object that contains information about the DKIM authentication status for an @@ -442,7 +442,7 @@ type DkimAttributes struct { // If the value is true, then the messages that you send from the identity are // signed using DKIM. If the value is false, then the messages that you send from // the identity aren't DKIM-signed. - SigningEnabled *bool + SigningEnabled bool // Describes whether or not Amazon SES has successfully located the DKIM records in // the DNS records for the domain. The status can be one of the following: @@ -477,7 +477,7 @@ type DkimAttributes struct { // key. Regardless of the DKIM authentication method you use, Amazon SES searches // for the appropriate records in the DNS configuration of the domain for up to 72 // hours. - Tokens []*string + Tokens []string } // An object that contains information about the tokens used for setting up Bring @@ -513,7 +513,7 @@ type DomainDeliverabilityCampaign struct { DeleteRate *float64 // The major email providers who handled the email message. - Esps []*string + Esps []string // The first time, in Unix time format, when the email message was delivered to any // recipient's inbox. This value can help you determine how long it took for a @@ -548,7 +548,7 @@ type DomainDeliverabilityCampaign struct { ReadRate *float64 // The IP addresses that were used to send the email message. - SendingIps []*string + SendingIps []string // The number of email messages that were delivered to recipients' spam or junk // mail folders. @@ -696,7 +696,7 @@ type EventDestination struct { // EventDestinationDefinition. If false, the event destination is disabled. When // the event destination is disabled, events aren't sent to the specified // destinations. - Enabled *bool + Enabled bool // An object that defines an Amazon Kinesis Data Firehose destination for email // events. You can use Amazon Kinesis Data Firehose to stream data to other @@ -732,7 +732,7 @@ type EventDestinationDefinition struct { // EventDestinationDefinition. If false, the event destination is disabled. When // the event destination is disabled, events aren't sent to the specified // destinations. - Enabled *bool + Enabled bool // An object that defines an Amazon Kinesis Data Firehose destination for email // events. You can use Amazon Kinesis Data Firehose to stream data to other @@ -788,7 +788,7 @@ type IdentityInfo struct { // email address or domain that you send email from. Before you can send email from // an identity, you have to demostrate that you own the identity, and that you // authorize Amazon SES to send email from that identity. - SendingEnabled *bool + SendingEnabled bool } // An object that contains details about the data source of the import job. @@ -839,11 +839,11 @@ type ImportJobSummary struct { type InboxPlacementTrackingOption struct { // Specifies whether inbox placement data is being tracked for the domain. - Global *bool + Global bool // An array of strings, one for each major email provider that the inbox placement // data applies to. - TrackedIsps []*string + TrackedIsps []string } // An object that describes how email sent during the predictive inbox placement @@ -988,7 +988,7 @@ type OverallVolume struct { // An object that contains inbox and junk mail placement metrics for individual // email providers. - DomainIspPlacements []*DomainIspPlacement + DomainIspPlacements []DomainIspPlacement // The percentage of emails that were sent from the domain that were read by their // recipients. @@ -1097,7 +1097,7 @@ type ReputationOptions struct { // If true, tracking of reputation metrics is enabled for the configuration set. If // false, tracking of reputation metrics is disabled for the configuration set. - ReputationMetricsEnabled *bool + ReputationMetricsEnabled bool } // An object that contains information about your account details review. @@ -1129,7 +1129,7 @@ type SendingOptions struct { // If true, email sending is enabled for the configuration set. If false, email // sending is disabled for the configuration set. - SendingEnabled *bool + SendingEnabled bool } // An object that contains information about the per-day and per-second sending @@ -1138,16 +1138,16 @@ type SendQuota struct { // The maximum number of emails that you can send in the current AWS Region over a // 24-hour period. This value is also called your sending quota. - Max24HourSend *float64 + Max24HourSend float64 // The maximum number of emails that you can send per second in the current AWS // Region. This value is also called your maximum sending rate or your maximum TPS // (transactions per second) rate. - MaxSendRate *float64 + MaxSendRate float64 // The number of emails sent from your Amazon SES account in the current AWS Region // over the past 24 hours. - SentLast24Hours *float64 + SentLast24Hours float64 } // An object that defines an Amazon SNS destination for email events. You can use @@ -1370,7 +1370,7 @@ type TopicFilter struct { // Notes that the default subscription status should be applied to a contact // because the contact has not noted their preference for subscribing to a topic. - UseDefaultIfPreferenceUnavailable *bool + UseDefaultIfPreferenceUnavailable bool } // The contact's preference for being opted-in to or opted-out of a topic. diff --git a/service/sesv2/validators.go b/service/sesv2/validators.go index 05b36a7cc32..3c0e7c0729d 100644 --- a/service/sesv2/validators.go +++ b/service/sesv2/validators.go @@ -1612,13 +1612,13 @@ func validateBulkEmailEntry(v *types.BulkEmailEntry) error { } } -func validateBulkEmailEntryList(v []*types.BulkEmailEntry) error { +func validateBulkEmailEntryList(v []types.BulkEmailEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "BulkEmailEntryList"} for i := range v { - if err := validateBulkEmailEntry(v[i]); err != nil { + if err := validateBulkEmailEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1669,13 +1669,13 @@ func validateCloudWatchDimensionConfiguration(v *types.CloudWatchDimensionConfig } } -func validateCloudWatchDimensionConfigurations(v []*types.CloudWatchDimensionConfiguration) error { +func validateCloudWatchDimensionConfigurations(v []types.CloudWatchDimensionConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CloudWatchDimensionConfigurations"} for i := range v { - if err := validateCloudWatchDimensionConfiguration(v[i]); err != nil { + if err := validateCloudWatchDimensionConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1903,13 +1903,13 @@ func validateMessageTag(v *types.MessageTag) error { } } -func validateMessageTagList(v []*types.MessageTag) error { +func validateMessageTagList(v []types.MessageTag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MessageTagList"} for i := range v { - if err := validateMessageTag(v[i]); err != nil { + if err := validateMessageTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1983,13 +1983,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2039,13 +2039,13 @@ func validateTopicPreference(v *types.TopicPreference) error { } } -func validateTopicPreferenceList(v []*types.TopicPreference) error { +func validateTopicPreferenceList(v []types.TopicPreference) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TopicPreferenceList"} for i := range v { - if err := validateTopicPreference(v[i]); err != nil { + if err := validateTopicPreference(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2056,13 +2056,13 @@ func validateTopicPreferenceList(v []*types.TopicPreference) error { } } -func validateTopics(v []*types.Topic) error { +func validateTopics(v []types.Topic) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Topics"} for i := range v { - if err := validateTopic(v[i]); err != nil { + if err := validateTopic(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2934,9 +2934,6 @@ func validateOpPutDeliverabilityDashboardOptionInput(v *PutDeliverabilityDashboa return nil } invalidParams := smithy.InvalidParamsError{Context: "PutDeliverabilityDashboardOptionInput"} - if v.DashboardEnabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("DashboardEnabled")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/sfn/api_op_CreateActivity.go b/service/sfn/api_op_CreateActivity.go index 82c2e51dc2e..e01e772d460 100644 --- a/service/sfn/api_op_CreateActivity.go +++ b/service/sfn/api_op_CreateActivity.go @@ -75,7 +75,7 @@ type CreateActivityInput struct { // (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). Tags // may only contain Unicode letters, digits, white space, or these symbols: _ . : / // = + - @. - Tags []*types.Tag + Tags []types.Tag } type CreateActivityOutput struct { diff --git a/service/sfn/api_op_CreateStateMachine.go b/service/sfn/api_op_CreateStateMachine.go index 4567fcef20d..a58c46ed8df 100644 --- a/service/sfn/api_op_CreateStateMachine.go +++ b/service/sfn/api_op_CreateStateMachine.go @@ -91,7 +91,7 @@ type CreateStateMachineInput struct { // (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). Tags // may only contain Unicode letters, digits, white space, or these symbols: _ . : / // = + - @. - Tags []*types.Tag + Tags []types.Tag // Selects whether AWS X-Ray tracing is enabled. TracingConfiguration *types.TracingConfiguration diff --git a/service/sfn/api_op_GetExecutionHistory.go b/service/sfn/api_op_GetExecutionHistory.go index 1d78093d43f..b1696a46c18 100644 --- a/service/sfn/api_op_GetExecutionHistory.go +++ b/service/sfn/api_op_GetExecutionHistory.go @@ -51,7 +51,7 @@ type GetExecutionHistoryInput struct { // page size is 1000. A value of 0 uses the default. This is only an upper limit. // The actual number of results returned per call might be fewer than the specified // maximum. - MaxResults *int32 + MaxResults int32 // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again using @@ -61,7 +61,7 @@ type GetExecutionHistoryInput struct { NextToken *string // Lists events in descending order of their timeStamp. - ReverseOrder *bool + ReverseOrder bool } type GetExecutionHistoryOutput struct { @@ -69,7 +69,7 @@ type GetExecutionHistoryOutput struct { // The list of events that occurred in the execution. // // This member is required. - Events []*types.HistoryEvent + Events []types.HistoryEvent // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again using diff --git a/service/sfn/api_op_ListActivities.go b/service/sfn/api_op_ListActivities.go index d1c317ac498..cb9692f2e7d 100644 --- a/service/sfn/api_op_ListActivities.go +++ b/service/sfn/api_op_ListActivities.go @@ -40,7 +40,7 @@ type ListActivitiesInput struct { // page size is 1000. A value of 0 uses the default. This is only an upper limit. // The actual number of results returned per call might be fewer than the specified // maximum. - MaxResults *int32 + MaxResults int32 // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again using @@ -55,7 +55,7 @@ type ListActivitiesOutput struct { // The list of activities. // // This member is required. - Activities []*types.ActivityListItem + Activities []types.ActivityListItem // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again using diff --git a/service/sfn/api_op_ListExecutions.go b/service/sfn/api_op_ListExecutions.go index 53f647e9ea7..050b3c85416 100644 --- a/service/sfn/api_op_ListExecutions.go +++ b/service/sfn/api_op_ListExecutions.go @@ -47,7 +47,7 @@ type ListExecutionsInput struct { // page size is 1000. A value of 0 uses the default. This is only an upper limit. // The actual number of results returned per call might be fewer than the specified // maximum. - MaxResults *int32 + MaxResults int32 // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again using @@ -66,7 +66,7 @@ type ListExecutionsOutput struct { // The list of matching executions. // // This member is required. - Executions []*types.ExecutionListItem + Executions []types.ExecutionListItem // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again using diff --git a/service/sfn/api_op_ListStateMachines.go b/service/sfn/api_op_ListStateMachines.go index 9f60f78c97e..752c17616c3 100644 --- a/service/sfn/api_op_ListStateMachines.go +++ b/service/sfn/api_op_ListStateMachines.go @@ -40,7 +40,7 @@ type ListStateMachinesInput struct { // page size is 1000. A value of 0 uses the default. This is only an upper limit. // The actual number of results returned per call might be fewer than the specified // maximum. - MaxResults *int32 + MaxResults int32 // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again using @@ -51,7 +51,7 @@ type ListStateMachinesInput struct { } type ListStateMachinesOutput struct { - StateMachines []*types.StateMachineListItem + StateMachines []types.StateMachineListItem // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again using diff --git a/service/sfn/api_op_ListTagsForResource.go b/service/sfn/api_op_ListTagsForResource.go index 7fe01af4232..e0f6118323c 100644 --- a/service/sfn/api_op_ListTagsForResource.go +++ b/service/sfn/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // An array of tags associated with the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sfn/api_op_TagResource.go b/service/sfn/api_op_TagResource.go index 7512aec5d56..922c84062f0 100644 --- a/service/sfn/api_op_TagResource.go +++ b/service/sfn/api_op_TagResource.go @@ -45,7 +45,7 @@ type TagResourceInput struct { // digits, white space, or these symbols: _ . : / = + - @. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/sfn/api_op_UntagResource.go b/service/sfn/api_op_UntagResource.go index a2d4b673261..8113508b64a 100644 --- a/service/sfn/api_op_UntagResource.go +++ b/service/sfn/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The list of tags to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/sfn/deserializers.go b/service/sfn/deserializers.go index 10dd9b2f943..c75c944b901 100644 --- a/service/sfn/deserializers.go +++ b/service/sfn/deserializers.go @@ -3467,7 +3467,7 @@ func awsAwsjson10_deserializeDocumentActivityDoesNotExist(v **types.ActivityDoes if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3507,7 +3507,7 @@ func awsAwsjson10_deserializeDocumentActivityFailedEventDetails(v **types.Activi if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -3516,7 +3516,7 @@ func awsAwsjson10_deserializeDocumentActivityFailedEventDetails(v **types.Activi if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } default: @@ -3556,7 +3556,7 @@ func awsAwsjson10_deserializeDocumentActivityLimitExceeded(v **types.ActivityLim if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3568,7 +3568,7 @@ func awsAwsjson10_deserializeDocumentActivityLimitExceeded(v **types.ActivityLim return nil } -func awsAwsjson10_deserializeDocumentActivityList(v *[]*types.ActivityListItem, value interface{}) error { +func awsAwsjson10_deserializeDocumentActivityList(v *[]types.ActivityListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3581,18 +3581,20 @@ func awsAwsjson10_deserializeDocumentActivityList(v *[]*types.ActivityListItem, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActivityListItem + var cv []types.ActivityListItem if *v == nil { - cv = []*types.ActivityListItem{} + cv = []types.ActivityListItem{} } else { cv = *v } for _, value := range shape { - var col *types.ActivityListItem - if err := awsAwsjson10_deserializeDocumentActivityListItem(&col, value); err != nil { + var col types.ActivityListItem + destAddr := &col + if err := awsAwsjson10_deserializeDocumentActivityListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3628,7 +3630,7 @@ func awsAwsjson10_deserializeDocumentActivityListItem(v **types.ActivityListItem if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ActivityArn = &jtv + sv.ActivityArn = ptr.String(jtv) } case "creationDate": @@ -3650,7 +3652,7 @@ func awsAwsjson10_deserializeDocumentActivityListItem(v **types.ActivityListItem if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -3694,7 +3696,7 @@ func awsAwsjson10_deserializeDocumentActivityScheduledEventDetails(v **types.Act if err != nil { return err } - sv.HeartbeatInSeconds = &i64 + sv.HeartbeatInSeconds = i64 } case "input": @@ -3703,7 +3705,7 @@ func awsAwsjson10_deserializeDocumentActivityScheduledEventDetails(v **types.Act if !ok { return fmt.Errorf("expected SensitiveData to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "inputDetails": @@ -3717,7 +3719,7 @@ func awsAwsjson10_deserializeDocumentActivityScheduledEventDetails(v **types.Act if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "timeoutInSeconds": @@ -3730,7 +3732,7 @@ func awsAwsjson10_deserializeDocumentActivityScheduledEventDetails(v **types.Act if err != nil { return err } - sv.TimeoutInSeconds = &i64 + sv.TimeoutInSeconds = i64 } default: @@ -3770,7 +3772,7 @@ func awsAwsjson10_deserializeDocumentActivityScheduleFailedEventDetails(v **type if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -3779,7 +3781,7 @@ func awsAwsjson10_deserializeDocumentActivityScheduleFailedEventDetails(v **type if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } default: @@ -3819,7 +3821,7 @@ func awsAwsjson10_deserializeDocumentActivityStartedEventDetails(v **types.Activ if !ok { return fmt.Errorf("expected Identity to be of type string, got %T instead", value) } - sv.WorkerName = &jtv + sv.WorkerName = ptr.String(jtv) } default: @@ -3859,7 +3861,7 @@ func awsAwsjson10_deserializeDocumentActivitySucceededEventDetails(v **types.Act if !ok { return fmt.Errorf("expected SensitiveData to be of type string, got %T instead", value) } - sv.Output = &jtv + sv.Output = ptr.String(jtv) } case "outputDetails": @@ -3904,7 +3906,7 @@ func awsAwsjson10_deserializeDocumentActivityTimedOutEventDetails(v **types.Acti if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -3913,7 +3915,7 @@ func awsAwsjson10_deserializeDocumentActivityTimedOutEventDetails(v **types.Acti if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } default: @@ -3953,7 +3955,7 @@ func awsAwsjson10_deserializeDocumentActivityWorkerLimitExceeded(v **types.Activ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3993,7 +3995,7 @@ func awsAwsjson10_deserializeDocumentCloudWatchEventsExecutionDataDetails(v **ty if !ok { return fmt.Errorf("expected included to be of type *bool, got %T instead", value) } - sv.Included = &jtv + sv.Included = jtv } default: @@ -4033,7 +4035,7 @@ func awsAwsjson10_deserializeDocumentCloudWatchLogsLogGroup(v **types.CloudWatch if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.LogGroupArn = &jtv + sv.LogGroupArn = ptr.String(jtv) } default: @@ -4073,7 +4075,7 @@ func awsAwsjson10_deserializeDocumentExecutionAbortedEventDetails(v **types.Exec if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -4082,7 +4084,7 @@ func awsAwsjson10_deserializeDocumentExecutionAbortedEventDetails(v **types.Exec if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } default: @@ -4122,7 +4124,7 @@ func awsAwsjson10_deserializeDocumentExecutionAlreadyExists(v **types.ExecutionA if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4162,7 +4164,7 @@ func awsAwsjson10_deserializeDocumentExecutionDoesNotExist(v **types.ExecutionDo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4202,7 +4204,7 @@ func awsAwsjson10_deserializeDocumentExecutionFailedEventDetails(v **types.Execu if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -4211,7 +4213,7 @@ func awsAwsjson10_deserializeDocumentExecutionFailedEventDetails(v **types.Execu if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } default: @@ -4251,7 +4253,7 @@ func awsAwsjson10_deserializeDocumentExecutionLimitExceeded(v **types.ExecutionL if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4263,7 +4265,7 @@ func awsAwsjson10_deserializeDocumentExecutionLimitExceeded(v **types.ExecutionL return nil } -func awsAwsjson10_deserializeDocumentExecutionList(v *[]*types.ExecutionListItem, value interface{}) error { +func awsAwsjson10_deserializeDocumentExecutionList(v *[]types.ExecutionListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4276,18 +4278,20 @@ func awsAwsjson10_deserializeDocumentExecutionList(v *[]*types.ExecutionListItem return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExecutionListItem + var cv []types.ExecutionListItem if *v == nil { - cv = []*types.ExecutionListItem{} + cv = []types.ExecutionListItem{} } else { cv = *v } for _, value := range shape { - var col *types.ExecutionListItem - if err := awsAwsjson10_deserializeDocumentExecutionListItem(&col, value); err != nil { + var col types.ExecutionListItem + destAddr := &col + if err := awsAwsjson10_deserializeDocumentExecutionListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4323,7 +4327,7 @@ func awsAwsjson10_deserializeDocumentExecutionListItem(v **types.ExecutionListIt if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ExecutionArn = &jtv + sv.ExecutionArn = ptr.String(jtv) } case "name": @@ -4332,7 +4336,7 @@ func awsAwsjson10_deserializeDocumentExecutionListItem(v **types.ExecutionListIt if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "startDate": @@ -4354,7 +4358,7 @@ func awsAwsjson10_deserializeDocumentExecutionListItem(v **types.ExecutionListIt if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.StateMachineArn = &jtv + sv.StateMachineArn = ptr.String(jtv) } case "status": @@ -4416,7 +4420,7 @@ func awsAwsjson10_deserializeDocumentExecutionStartedEventDetails(v **types.Exec if !ok { return fmt.Errorf("expected SensitiveData to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "inputDetails": @@ -4430,7 +4434,7 @@ func awsAwsjson10_deserializeDocumentExecutionStartedEventDetails(v **types.Exec if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -4470,7 +4474,7 @@ func awsAwsjson10_deserializeDocumentExecutionSucceededEventDetails(v **types.Ex if !ok { return fmt.Errorf("expected SensitiveData to be of type string, got %T instead", value) } - sv.Output = &jtv + sv.Output = ptr.String(jtv) } case "outputDetails": @@ -4515,7 +4519,7 @@ func awsAwsjson10_deserializeDocumentExecutionTimedOutEventDetails(v **types.Exe if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -4524,7 +4528,7 @@ func awsAwsjson10_deserializeDocumentExecutionTimedOutEventDetails(v **types.Exe if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } default: @@ -4623,7 +4627,7 @@ func awsAwsjson10_deserializeDocumentHistoryEvent(v **types.HistoryEvent, value if err != nil { return err } - sv.Id = &i64 + sv.Id = i64 } case "lambdaFunctionFailedEventDetails": @@ -4691,7 +4695,7 @@ func awsAwsjson10_deserializeDocumentHistoryEvent(v **types.HistoryEvent, value if err != nil { return err } - sv.PreviousEventId = &i64 + sv.PreviousEventId = i64 } case "stateEnteredEventDetails": @@ -4803,7 +4807,7 @@ func awsAwsjson10_deserializeDocumentHistoryEventExecutionDataDetails(v **types. if !ok { return fmt.Errorf("expected truncated to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = jtv } default: @@ -4815,7 +4819,7 @@ func awsAwsjson10_deserializeDocumentHistoryEventExecutionDataDetails(v **types. return nil } -func awsAwsjson10_deserializeDocumentHistoryEventList(v *[]*types.HistoryEvent, value interface{}) error { +func awsAwsjson10_deserializeDocumentHistoryEventList(v *[]types.HistoryEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4828,18 +4832,20 @@ func awsAwsjson10_deserializeDocumentHistoryEventList(v *[]*types.HistoryEvent, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HistoryEvent + var cv []types.HistoryEvent if *v == nil { - cv = []*types.HistoryEvent{} + cv = []types.HistoryEvent{} } else { cv = *v } for _, value := range shape { - var col *types.HistoryEvent - if err := awsAwsjson10_deserializeDocumentHistoryEvent(&col, value); err != nil { + var col types.HistoryEvent + destAddr := &col + if err := awsAwsjson10_deserializeDocumentHistoryEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4875,7 +4881,7 @@ func awsAwsjson10_deserializeDocumentInvalidArn(v **types.InvalidArn, value inte if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4915,7 +4921,7 @@ func awsAwsjson10_deserializeDocumentInvalidDefinition(v **types.InvalidDefiniti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4955,7 +4961,7 @@ func awsAwsjson10_deserializeDocumentInvalidExecutionInput(v **types.InvalidExec if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4995,7 +5001,7 @@ func awsAwsjson10_deserializeDocumentInvalidLoggingConfiguration(v **types.Inval if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5035,7 +5041,7 @@ func awsAwsjson10_deserializeDocumentInvalidName(v **types.InvalidName, value in if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5075,7 +5081,7 @@ func awsAwsjson10_deserializeDocumentInvalidOutput(v **types.InvalidOutput, valu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5115,7 +5121,7 @@ func awsAwsjson10_deserializeDocumentInvalidToken(v **types.InvalidToken, value if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5155,7 +5161,7 @@ func awsAwsjson10_deserializeDocumentInvalidTracingConfiguration(v **types.Inval if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5195,7 +5201,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionFailedEventDetails(v **types. if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -5204,7 +5210,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionFailedEventDetails(v **types. if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } default: @@ -5244,7 +5250,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionScheduledEventDetails(v **typ if !ok { return fmt.Errorf("expected SensitiveData to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "inputDetails": @@ -5258,7 +5264,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionScheduledEventDetails(v **typ if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "timeoutInSeconds": @@ -5271,7 +5277,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionScheduledEventDetails(v **typ if err != nil { return err } - sv.TimeoutInSeconds = &i64 + sv.TimeoutInSeconds = i64 } default: @@ -5311,7 +5317,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionScheduleFailedEventDetails(v if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -5320,7 +5326,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionScheduleFailedEventDetails(v if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } default: @@ -5360,7 +5366,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionStartFailedEventDetails(v **t if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -5369,7 +5375,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionStartFailedEventDetails(v **t if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } default: @@ -5409,7 +5415,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionSucceededEventDetails(v **typ if !ok { return fmt.Errorf("expected SensitiveData to be of type string, got %T instead", value) } - sv.Output = &jtv + sv.Output = ptr.String(jtv) } case "outputDetails": @@ -5454,7 +5460,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionTimedOutEventDetails(v **type if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -5463,7 +5469,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionTimedOutEventDetails(v **type if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } default: @@ -5511,7 +5517,7 @@ func awsAwsjson10_deserializeDocumentLogDestination(v **types.LogDestination, va return nil } -func awsAwsjson10_deserializeDocumentLogDestinationList(v *[]*types.LogDestination, value interface{}) error { +func awsAwsjson10_deserializeDocumentLogDestinationList(v *[]types.LogDestination, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5524,18 +5530,20 @@ func awsAwsjson10_deserializeDocumentLogDestinationList(v *[]*types.LogDestinati return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LogDestination + var cv []types.LogDestination if *v == nil { - cv = []*types.LogDestination{} + cv = []types.LogDestination{} } else { cv = *v } for _, value := range shape { - var col *types.LogDestination - if err := awsAwsjson10_deserializeDocumentLogDestination(&col, value); err != nil { + var col types.LogDestination + destAddr := &col + if err := awsAwsjson10_deserializeDocumentLogDestination(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5576,7 +5584,7 @@ func awsAwsjson10_deserializeDocumentLoggingConfiguration(v **types.LoggingConfi if !ok { return fmt.Errorf("expected IncludeExecutionData to be of type *bool, got %T instead", value) } - sv.IncludeExecutionData = &jtv + sv.IncludeExecutionData = jtv } case "level": @@ -5629,7 +5637,7 @@ func awsAwsjson10_deserializeDocumentMapIterationEventDetails(v **types.MapItera if err != nil { return err } - sv.Index = ptr.Int32(int32(i64)) + sv.Index = int32(i64) } case "name": @@ -5638,7 +5646,7 @@ func awsAwsjson10_deserializeDocumentMapIterationEventDetails(v **types.MapItera if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5682,7 +5690,7 @@ func awsAwsjson10_deserializeDocumentMapStateStartedEventDetails(v **types.MapSt if err != nil { return err } - sv.Length = ptr.Int32(int32(i64)) + sv.Length = int32(i64) } default: @@ -5722,7 +5730,7 @@ func awsAwsjson10_deserializeDocumentMissingRequiredParameter(v **types.MissingR if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5762,7 +5770,7 @@ func awsAwsjson10_deserializeDocumentResourceNotFound(v **types.ResourceNotFound if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceName": @@ -5771,7 +5779,7 @@ func awsAwsjson10_deserializeDocumentResourceNotFound(v **types.ResourceNotFound if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } default: @@ -5811,7 +5819,7 @@ func awsAwsjson10_deserializeDocumentStateEnteredEventDetails(v **types.StateEnt if !ok { return fmt.Errorf("expected SensitiveData to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "inputDetails": @@ -5825,7 +5833,7 @@ func awsAwsjson10_deserializeDocumentStateEnteredEventDetails(v **types.StateEnt if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5865,7 +5873,7 @@ func awsAwsjson10_deserializeDocumentStateExitedEventDetails(v **types.StateExit if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "output": @@ -5874,7 +5882,7 @@ func awsAwsjson10_deserializeDocumentStateExitedEventDetails(v **types.StateExit if !ok { return fmt.Errorf("expected SensitiveData to be of type string, got %T instead", value) } - sv.Output = &jtv + sv.Output = ptr.String(jtv) } case "outputDetails": @@ -5919,7 +5927,7 @@ func awsAwsjson10_deserializeDocumentStateMachineAlreadyExists(v **types.StateMa if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5959,7 +5967,7 @@ func awsAwsjson10_deserializeDocumentStateMachineDeleting(v **types.StateMachine if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5999,7 +6007,7 @@ func awsAwsjson10_deserializeDocumentStateMachineDoesNotExist(v **types.StateMac if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6039,7 +6047,7 @@ func awsAwsjson10_deserializeDocumentStateMachineLimitExceeded(v **types.StateMa if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6051,7 +6059,7 @@ func awsAwsjson10_deserializeDocumentStateMachineLimitExceeded(v **types.StateMa return nil } -func awsAwsjson10_deserializeDocumentStateMachineList(v *[]*types.StateMachineListItem, value interface{}) error { +func awsAwsjson10_deserializeDocumentStateMachineList(v *[]types.StateMachineListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6064,18 +6072,20 @@ func awsAwsjson10_deserializeDocumentStateMachineList(v *[]*types.StateMachineLi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StateMachineListItem + var cv []types.StateMachineListItem if *v == nil { - cv = []*types.StateMachineListItem{} + cv = []types.StateMachineListItem{} } else { cv = *v } for _, value := range shape { - var col *types.StateMachineListItem - if err := awsAwsjson10_deserializeDocumentStateMachineListItem(&col, value); err != nil { + var col types.StateMachineListItem + destAddr := &col + if err := awsAwsjson10_deserializeDocumentStateMachineListItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6124,7 +6134,7 @@ func awsAwsjson10_deserializeDocumentStateMachineListItem(v **types.StateMachine if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "stateMachineArn": @@ -6133,7 +6143,7 @@ func awsAwsjson10_deserializeDocumentStateMachineListItem(v **types.StateMachine if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.StateMachineArn = &jtv + sv.StateMachineArn = ptr.String(jtv) } case "type": @@ -6182,7 +6192,7 @@ func awsAwsjson10_deserializeDocumentStateMachineTypeNotSupported(v **types.Stat if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6222,7 +6232,7 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -6231,7 +6241,7 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6243,7 +6253,7 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson10_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson10_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6256,18 +6266,20 @@ func awsAwsjson10_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson10_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson10_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6303,7 +6315,7 @@ func awsAwsjson10_deserializeDocumentTaskDoesNotExist(v **types.TaskDoesNotExist if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6343,7 +6355,7 @@ func awsAwsjson10_deserializeDocumentTaskFailedEventDetails(v **types.TaskFailed if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -6352,7 +6364,7 @@ func awsAwsjson10_deserializeDocumentTaskFailedEventDetails(v **types.TaskFailed if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } case "resource": @@ -6361,7 +6373,7 @@ func awsAwsjson10_deserializeDocumentTaskFailedEventDetails(v **types.TaskFailed if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "resourceType": @@ -6370,7 +6382,7 @@ func awsAwsjson10_deserializeDocumentTaskFailedEventDetails(v **types.TaskFailed if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -6414,7 +6426,7 @@ func awsAwsjson10_deserializeDocumentTaskScheduledEventDetails(v **types.TaskSch if err != nil { return err } - sv.HeartbeatInSeconds = &i64 + sv.HeartbeatInSeconds = i64 } case "parameters": @@ -6423,7 +6435,7 @@ func awsAwsjson10_deserializeDocumentTaskScheduledEventDetails(v **types.TaskSch if !ok { return fmt.Errorf("expected ConnectorParameters to be of type string, got %T instead", value) } - sv.Parameters = &jtv + sv.Parameters = ptr.String(jtv) } case "region": @@ -6432,7 +6444,7 @@ func awsAwsjson10_deserializeDocumentTaskScheduledEventDetails(v **types.TaskSch if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "resource": @@ -6441,7 +6453,7 @@ func awsAwsjson10_deserializeDocumentTaskScheduledEventDetails(v **types.TaskSch if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "resourceType": @@ -6450,7 +6462,7 @@ func awsAwsjson10_deserializeDocumentTaskScheduledEventDetails(v **types.TaskSch if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "timeoutInSeconds": @@ -6463,7 +6475,7 @@ func awsAwsjson10_deserializeDocumentTaskScheduledEventDetails(v **types.TaskSch if err != nil { return err } - sv.TimeoutInSeconds = &i64 + sv.TimeoutInSeconds = i64 } default: @@ -6503,7 +6515,7 @@ func awsAwsjson10_deserializeDocumentTaskStartedEventDetails(v **types.TaskStart if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "resourceType": @@ -6512,7 +6524,7 @@ func awsAwsjson10_deserializeDocumentTaskStartedEventDetails(v **types.TaskStart if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -6552,7 +6564,7 @@ func awsAwsjson10_deserializeDocumentTaskStartFailedEventDetails(v **types.TaskS if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -6561,7 +6573,7 @@ func awsAwsjson10_deserializeDocumentTaskStartFailedEventDetails(v **types.TaskS if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } case "resource": @@ -6570,7 +6582,7 @@ func awsAwsjson10_deserializeDocumentTaskStartFailedEventDetails(v **types.TaskS if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "resourceType": @@ -6579,7 +6591,7 @@ func awsAwsjson10_deserializeDocumentTaskStartFailedEventDetails(v **types.TaskS if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -6619,7 +6631,7 @@ func awsAwsjson10_deserializeDocumentTaskSubmitFailedEventDetails(v **types.Task if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -6628,7 +6640,7 @@ func awsAwsjson10_deserializeDocumentTaskSubmitFailedEventDetails(v **types.Task if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } case "resource": @@ -6637,7 +6649,7 @@ func awsAwsjson10_deserializeDocumentTaskSubmitFailedEventDetails(v **types.Task if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "resourceType": @@ -6646,7 +6658,7 @@ func awsAwsjson10_deserializeDocumentTaskSubmitFailedEventDetails(v **types.Task if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -6686,7 +6698,7 @@ func awsAwsjson10_deserializeDocumentTaskSubmittedEventDetails(v **types.TaskSub if !ok { return fmt.Errorf("expected SensitiveData to be of type string, got %T instead", value) } - sv.Output = &jtv + sv.Output = ptr.String(jtv) } case "outputDetails": @@ -6700,7 +6712,7 @@ func awsAwsjson10_deserializeDocumentTaskSubmittedEventDetails(v **types.TaskSub if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "resourceType": @@ -6709,7 +6721,7 @@ func awsAwsjson10_deserializeDocumentTaskSubmittedEventDetails(v **types.TaskSub if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -6749,7 +6761,7 @@ func awsAwsjson10_deserializeDocumentTaskSucceededEventDetails(v **types.TaskSuc if !ok { return fmt.Errorf("expected SensitiveData to be of type string, got %T instead", value) } - sv.Output = &jtv + sv.Output = ptr.String(jtv) } case "outputDetails": @@ -6763,7 +6775,7 @@ func awsAwsjson10_deserializeDocumentTaskSucceededEventDetails(v **types.TaskSuc if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "resourceType": @@ -6772,7 +6784,7 @@ func awsAwsjson10_deserializeDocumentTaskSucceededEventDetails(v **types.TaskSuc if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -6812,7 +6824,7 @@ func awsAwsjson10_deserializeDocumentTaskTimedOut(v **types.TaskTimedOut, value if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6852,7 +6864,7 @@ func awsAwsjson10_deserializeDocumentTaskTimedOutEventDetails(v **types.TaskTime if !ok { return fmt.Errorf("expected SensitiveCause to be of type string, got %T instead", value) } - sv.Cause = &jtv + sv.Cause = ptr.String(jtv) } case "error": @@ -6861,7 +6873,7 @@ func awsAwsjson10_deserializeDocumentTaskTimedOutEventDetails(v **types.TaskTime if !ok { return fmt.Errorf("expected SensitiveError to be of type string, got %T instead", value) } - sv.Error = &jtv + sv.Error = ptr.String(jtv) } case "resource": @@ -6870,7 +6882,7 @@ func awsAwsjson10_deserializeDocumentTaskTimedOutEventDetails(v **types.TaskTime if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "resourceType": @@ -6879,7 +6891,7 @@ func awsAwsjson10_deserializeDocumentTaskTimedOutEventDetails(v **types.TaskTime if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -6919,7 +6931,7 @@ func awsAwsjson10_deserializeDocumentTooManyTags(v **types.TooManyTags, value in if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "resourceName": @@ -6928,7 +6940,7 @@ func awsAwsjson10_deserializeDocumentTooManyTags(v **types.TooManyTags, value in if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } default: @@ -6968,7 +6980,7 @@ func awsAwsjson10_deserializeDocumentTracingConfiguration(v **types.TracingConfi if !ok { return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } default: @@ -7008,7 +7020,7 @@ func awsAwsjson10_deserializeOpDocumentCreateActivityOutput(v **CreateActivityOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ActivityArn = &jtv + sv.ActivityArn = ptr.String(jtv) } case "creationDate": @@ -7074,7 +7086,7 @@ func awsAwsjson10_deserializeOpDocumentCreateStateMachineOutput(v **CreateStateM if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.StateMachineArn = &jtv + sv.StateMachineArn = ptr.String(jtv) } default: @@ -7176,7 +7188,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeActivityOutput(v **DescribeActivi if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ActivityArn = &jtv + sv.ActivityArn = ptr.String(jtv) } case "creationDate": @@ -7198,7 +7210,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeActivityOutput(v **DescribeActivi if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7238,7 +7250,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeExecutionOutput(v **DescribeExecu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ExecutionArn = &jtv + sv.ExecutionArn = ptr.String(jtv) } case "input": @@ -7247,7 +7259,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeExecutionOutput(v **DescribeExecu if !ok { return fmt.Errorf("expected SensitiveData to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "inputDetails": @@ -7261,7 +7273,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeExecutionOutput(v **DescribeExecu if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "output": @@ -7270,7 +7282,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeExecutionOutput(v **DescribeExecu if !ok { return fmt.Errorf("expected SensitiveData to be of type string, got %T instead", value) } - sv.Output = &jtv + sv.Output = ptr.String(jtv) } case "outputDetails": @@ -7297,7 +7309,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeExecutionOutput(v **DescribeExecu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.StateMachineArn = &jtv + sv.StateMachineArn = ptr.String(jtv) } case "status": @@ -7328,7 +7340,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeExecutionOutput(v **DescribeExecu if !ok { return fmt.Errorf("expected TraceHeader to be of type string, got %T instead", value) } - sv.TraceHeader = &jtv + sv.TraceHeader = ptr.String(jtv) } default: @@ -7368,7 +7380,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeStateMachineForExecutionOutput(v if !ok { return fmt.Errorf("expected Definition to be of type string, got %T instead", value) } - sv.Definition = &jtv + sv.Definition = ptr.String(jtv) } case "loggingConfiguration": @@ -7382,7 +7394,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeStateMachineForExecutionOutput(v if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "roleArn": @@ -7391,7 +7403,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeStateMachineForExecutionOutput(v if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "stateMachineArn": @@ -7400,7 +7412,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeStateMachineForExecutionOutput(v if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.StateMachineArn = &jtv + sv.StateMachineArn = ptr.String(jtv) } case "tracingConfiguration": @@ -7471,7 +7483,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeStateMachineOutput(v **DescribeSt if !ok { return fmt.Errorf("expected Definition to be of type string, got %T instead", value) } - sv.Definition = &jtv + sv.Definition = ptr.String(jtv) } case "loggingConfiguration": @@ -7485,7 +7497,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeStateMachineOutput(v **DescribeSt if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "roleArn": @@ -7494,7 +7506,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeStateMachineOutput(v **DescribeSt if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "stateMachineArn": @@ -7503,7 +7515,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeStateMachineOutput(v **DescribeSt if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.StateMachineArn = &jtv + sv.StateMachineArn = ptr.String(jtv) } case "status": @@ -7566,7 +7578,7 @@ func awsAwsjson10_deserializeOpDocumentGetActivityTaskOutput(v **GetActivityTask if !ok { return fmt.Errorf("expected SensitiveDataJobInput to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "taskToken": @@ -7575,7 +7587,7 @@ func awsAwsjson10_deserializeOpDocumentGetActivityTaskOutput(v **GetActivityTask if !ok { return fmt.Errorf("expected TaskToken to be of type string, got %T instead", value) } - sv.TaskToken = &jtv + sv.TaskToken = ptr.String(jtv) } default: @@ -7620,7 +7632,7 @@ func awsAwsjson10_deserializeOpDocumentGetExecutionHistoryOutput(v **GetExecutio if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7665,7 +7677,7 @@ func awsAwsjson10_deserializeOpDocumentListActivitiesOutput(v **ListActivitiesOu if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7710,7 +7722,7 @@ func awsAwsjson10_deserializeOpDocumentListExecutionsOutput(v **ListExecutionsOu if !ok { return fmt.Errorf("expected ListExecutionsPageToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -7750,7 +7762,7 @@ func awsAwsjson10_deserializeOpDocumentListStateMachinesOutput(v **ListStateMach if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "stateMachines": @@ -7924,7 +7936,7 @@ func awsAwsjson10_deserializeOpDocumentStartExecutionOutput(v **StartExecutionOu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ExecutionArn = &jtv + sv.ExecutionArn = ptr.String(jtv) } case "startDate": diff --git a/service/sfn/go.mod b/service/sfn/go.mod index 65fca3afa4e..c7af8e6fa46 100644 --- a/service/sfn/go.mod +++ b/service/sfn/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/sfn go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/sfn/serializers.go b/service/sfn/serializers.go index d6ae6ce3437..5fcabf4d4d6 100644 --- a/service/sfn/serializers.go +++ b/service/sfn/serializers.go @@ -1051,17 +1051,13 @@ func awsAwsjson10_serializeDocumentLogDestination(v *types.LogDestination, value return nil } -func awsAwsjson10_serializeDocumentLogDestinationList(v []*types.LogDestination, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentLogDestinationList(v []types.LogDestination, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentLogDestination(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentLogDestination(&v[i], av); err != nil { return err } } @@ -1079,9 +1075,9 @@ func awsAwsjson10_serializeDocumentLoggingConfiguration(v *types.LoggingConfigur } } - if v.IncludeExecutionData != nil { + if v.IncludeExecutionData { ok := object.Key("includeExecutionData") - ok.Boolean(*v.IncludeExecutionData) + ok.Boolean(v.IncludeExecutionData) } if len(v.Level) > 0 { @@ -1109,32 +1105,24 @@ func awsAwsjson10_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson10_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson10_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -1145,9 +1133,9 @@ func awsAwsjson10_serializeDocumentTracingConfiguration(v *types.TracingConfigur object := value.Object() defer object.Close() - if v.Enabled != nil { + if v.Enabled { ok := object.Key("enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } return nil @@ -1323,9 +1311,9 @@ func awsAwsjson10_serializeOpDocumentGetExecutionHistoryInput(v *GetExecutionHis ok.Boolean(*v.IncludeExecutionData) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1333,9 +1321,9 @@ func awsAwsjson10_serializeOpDocumentGetExecutionHistoryInput(v *GetExecutionHis ok.String(*v.NextToken) } - if v.ReverseOrder != nil { + if v.ReverseOrder { ok := object.Key("reverseOrder") - ok.Boolean(*v.ReverseOrder) + ok.Boolean(v.ReverseOrder) } return nil @@ -1345,9 +1333,9 @@ func awsAwsjson10_serializeOpDocumentListActivitiesInput(v *ListActivitiesInput, object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1362,9 +1350,9 @@ func awsAwsjson10_serializeOpDocumentListExecutionsInput(v *ListExecutionsInput, object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -1389,9 +1377,9 @@ func awsAwsjson10_serializeOpDocumentListStateMachinesInput(v *ListStateMachines object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("maxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { diff --git a/service/sfn/types/types.go b/service/sfn/types/types.go index f13e0b835a6..c5fa9d5349f 100644 --- a/service/sfn/types/types.go +++ b/service/sfn/types/types.go @@ -59,7 +59,7 @@ type ActivityScheduledEventDetails struct { Resource *string // The maximum allowed duration between two heartbeats for the activity task. - HeartbeatInSeconds *int64 + HeartbeatInSeconds int64 // The JSON data input to the activity task. Length constraints apply to the // payload size, and are expressed as bytes in UTF-8 encoding. @@ -69,7 +69,7 @@ type ActivityScheduledEventDetails struct { InputDetails *HistoryEventExecutionDataDetails // The maximum allowed duration of the activity task. - TimeoutInSeconds *int64 + TimeoutInSeconds int64 } // Contains details about an activity schedule failure that occurred during an @@ -118,7 +118,7 @@ type CloudWatchEventsExecutionDataDetails struct { // Indicates whether input or output was included in the response. Always true for // API calls. - Included *bool + Included bool } // @@ -238,7 +238,7 @@ type HistoryEvent struct { // The id of the event. Events are numbered sequentially, starting at one. // // This member is required. - Id *int64 + Id int64 // The date and time the event occurred. // @@ -323,7 +323,7 @@ type HistoryEvent struct { MapStateStartedEventDetails *MapStateStartedEventDetails // The id of the previous event. - PreviousEventId *int64 + PreviousEventId int64 // Contains details about a state entered during an execution. StateEnteredEventDetails *StateEnteredEventDetails @@ -361,7 +361,7 @@ type HistoryEventExecutionDataDetails struct { // Indicates whether input or output was truncated in the response. Always false // for API calls. - Truncated *bool + Truncated bool } // Contains details about a lambda function that failed during an execution. @@ -390,7 +390,7 @@ type LambdaFunctionScheduledEventDetails struct { InputDetails *HistoryEventExecutionDataDetails // The maximum allowed duration of the lambda function. - TimeoutInSeconds *int64 + TimeoutInSeconds int64 } // Contains details about a failed lambda function schedule event that occurred @@ -453,11 +453,11 @@ type LoggingConfiguration struct { // An array of objects that describes where your execution history events will be // logged. Limited to size 1. Required, if your log level is not set to OFF. - Destinations []*LogDestination + Destinations []LogDestination // Determines whether execution data is included in your log. When set to false, // data is excluded. - IncludeExecutionData *bool + IncludeExecutionData bool // Defines which category of execution history events are logged. Level LogLevel @@ -467,7 +467,7 @@ type LoggingConfiguration struct { type MapIterationEventDetails struct { // The index of the array belonging to the Map state iteration. - Index *int32 + Index int32 // The name of the iteration’s parent Map state. Name *string @@ -477,7 +477,7 @@ type MapIterationEventDetails struct { type MapStateStartedEventDetails struct { // The size of the array for Map state iterations. - Length *int32 + Length int32 } // Contains details about a state entered during an execution. @@ -631,10 +631,10 @@ type TaskScheduledEventDetails struct { ResourceType *string // The maximum allowed duration between two heartbeats for the task. - HeartbeatInSeconds *int64 + HeartbeatInSeconds int64 // The maximum allowed duration of the task. - TimeoutInSeconds *int64 + TimeoutInSeconds int64 } // Contains details about the start of a task during an execution. @@ -759,5 +759,5 @@ type TaskTimedOutEventDetails struct { type TracingConfiguration struct { // When set to true, AWS X-Ray tracing is enabled. - Enabled *bool + Enabled bool } diff --git a/service/shield/api_op_AssociateProactiveEngagementDetails.go b/service/shield/api_op_AssociateProactiveEngagementDetails.go index 9f20959911b..1c81c334a22 100644 --- a/service/shield/api_op_AssociateProactiveEngagementDetails.go +++ b/service/shield/api_op_AssociateProactiveEngagementDetails.go @@ -48,7 +48,7 @@ type AssociateProactiveEngagementDetailsInput struct { // then provide it here. // // This member is required. - EmergencyContactList []*types.EmergencyContact + EmergencyContactList []types.EmergencyContact } type AssociateProactiveEngagementDetailsOutput struct { diff --git a/service/shield/api_op_DescribeDRTAccess.go b/service/shield/api_op_DescribeDRTAccess.go index b7b5cf0fdb9..723dd1f9015 100644 --- a/service/shield/api_op_DescribeDRTAccess.go +++ b/service/shield/api_op_DescribeDRTAccess.go @@ -34,7 +34,7 @@ type DescribeDRTAccessInput struct { type DescribeDRTAccessOutput struct { // The list of Amazon S3 buckets accessed by the DRT. - LogBucketList []*string + LogBucketList []string // The Amazon Resource Name (ARN) of the role the DRT used to access your AWS // account. diff --git a/service/shield/api_op_DescribeEmergencyContactSettings.go b/service/shield/api_op_DescribeEmergencyContactSettings.go index 6e630227490..13faf00c9fe 100644 --- a/service/shield/api_op_DescribeEmergencyContactSettings.go +++ b/service/shield/api_op_DescribeEmergencyContactSettings.go @@ -37,7 +37,7 @@ type DescribeEmergencyContactSettingsOutput struct { // A list of email addresses and phone numbers that the DDoS Response Team (DRT) // can use to contact you if you have proactive engagement enabled, for escalations // to the DRT and to initiate proactive customer support. - EmergencyContactList []*types.EmergencyContact + EmergencyContactList []types.EmergencyContact // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/shield/api_op_ListAttacks.go b/service/shield/api_op_ListAttacks.go index 63234e2a852..84ccd1b9e99 100644 --- a/service/shield/api_op_ListAttacks.go +++ b/service/shield/api_op_ListAttacks.go @@ -51,7 +51,7 @@ type ListAttacksInput struct { // The ARN (Amazon Resource Name) of the resource that was attacked. If this is // left blank, all applicable resources for this account will be included. - ResourceArns []*string + ResourceArns []string // The start of the time period for the attacks. This is a timestamp type. The // sample request above indicates a number type because the default used by WAF is @@ -64,7 +64,7 @@ type ListAttacksInput struct { type ListAttacksOutput struct { // The attack information for the specified time range. - AttackSummaries []*types.AttackSummary + AttackSummaries []types.AttackSummary // The token returned by a previous call to indicate that there is more data // available. If not null, more results are available. Pass this value for the diff --git a/service/shield/api_op_ListProtections.go b/service/shield/api_op_ListProtections.go index b227a96e2d3..75811a88bd8 100644 --- a/service/shield/api_op_ListProtections.go +++ b/service/shield/api_op_ListProtections.go @@ -55,7 +55,7 @@ type ListProtectionsOutput struct { NextToken *string // The array of enabled Protection objects. - Protections []*types.Protection + Protections []types.Protection // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/shield/api_op_UpdateEmergencyContactSettings.go b/service/shield/api_op_UpdateEmergencyContactSettings.go index b5fa441af31..d16d3b639a8 100644 --- a/service/shield/api_op_UpdateEmergencyContactSettings.go +++ b/service/shield/api_op_UpdateEmergencyContactSettings.go @@ -35,7 +35,7 @@ type UpdateEmergencyContactSettingsInput struct { // can use to contact you if you have proactive engagement enabled, for escalations // to the DRT and to initiate proactive customer support. If you have proactive // engagement enabled, the contact list must include at least one phone number. - EmergencyContactList []*types.EmergencyContact + EmergencyContactList []types.EmergencyContact } type UpdateEmergencyContactSettingsOutput struct { diff --git a/service/shield/deserializers.go b/service/shield/deserializers.go index b2fccfa0e9e..ed97d241c67 100644 --- a/service/shield/deserializers.go +++ b/service/shield/deserializers.go @@ -3256,7 +3256,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3296,7 +3296,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedForDependencyException(v **type if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3341,7 +3341,7 @@ func awsAwsjson11_deserializeDocumentAttackDetail(v **types.AttackDetail, value if !ok { return fmt.Errorf("expected AttackId to be of type string, got %T instead", value) } - sv.AttackId = &jtv + sv.AttackId = ptr.String(jtv) } case "AttackProperties": @@ -3373,7 +3373,7 @@ func awsAwsjson11_deserializeDocumentAttackDetail(v **types.AttackDetail, value if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "StartTime": @@ -3403,7 +3403,7 @@ func awsAwsjson11_deserializeDocumentAttackDetail(v **types.AttackDetail, value return nil } -func awsAwsjson11_deserializeDocumentAttackProperties(v *[]*types.AttackProperty, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttackProperties(v *[]types.AttackProperty, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3416,18 +3416,20 @@ func awsAwsjson11_deserializeDocumentAttackProperties(v *[]*types.AttackProperty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttackProperty + var cv []types.AttackProperty if *v == nil { - cv = []*types.AttackProperty{} + cv = []types.AttackProperty{} } else { cv = *v } for _, value := range shape { - var col *types.AttackProperty - if err := awsAwsjson11_deserializeDocumentAttackProperty(&col, value); err != nil { + var col types.AttackProperty + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttackProperty(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3490,7 +3492,7 @@ func awsAwsjson11_deserializeDocumentAttackProperty(v **types.AttackProperty, va if err != nil { return err } - sv.Total = &i64 + sv.Total = i64 } case "Unit": @@ -3511,7 +3513,7 @@ func awsAwsjson11_deserializeDocumentAttackProperty(v **types.AttackProperty, va return nil } -func awsAwsjson11_deserializeDocumentAttackSummaries(v *[]*types.AttackSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttackSummaries(v *[]types.AttackSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3524,18 +3526,20 @@ func awsAwsjson11_deserializeDocumentAttackSummaries(v *[]*types.AttackSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttackSummary + var cv []types.AttackSummary if *v == nil { - cv = []*types.AttackSummary{} + cv = []types.AttackSummary{} } else { cv = *v } for _, value := range shape { - var col *types.AttackSummary - if err := awsAwsjson11_deserializeDocumentAttackSummary(&col, value); err != nil { + var col types.AttackSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttackSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3571,7 +3575,7 @@ func awsAwsjson11_deserializeDocumentAttackSummary(v **types.AttackSummary, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AttackId = &jtv + sv.AttackId = ptr.String(jtv) } case "AttackVectors": @@ -3598,7 +3602,7 @@ func awsAwsjson11_deserializeDocumentAttackSummary(v **types.AttackSummary, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } case "StartTime": @@ -3651,7 +3655,7 @@ func awsAwsjson11_deserializeDocumentAttackVectorDescription(v **types.AttackVec if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VectorType = &jtv + sv.VectorType = ptr.String(jtv) } default: @@ -3663,7 +3667,7 @@ func awsAwsjson11_deserializeDocumentAttackVectorDescription(v **types.AttackVec return nil } -func awsAwsjson11_deserializeDocumentAttackVectorDescriptionList(v *[]*types.AttackVectorDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttackVectorDescriptionList(v *[]types.AttackVectorDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3676,18 +3680,20 @@ func awsAwsjson11_deserializeDocumentAttackVectorDescriptionList(v *[]*types.Att return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttackVectorDescription + var cv []types.AttackVectorDescription if *v == nil { - cv = []*types.AttackVectorDescription{} + cv = []types.AttackVectorDescription{} } else { cv = *v } for _, value := range shape { - var col *types.AttackVectorDescription - if err := awsAwsjson11_deserializeDocumentAttackVectorDescription(&col, value); err != nil { + var col types.AttackVectorDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttackVectorDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3723,7 +3729,7 @@ func awsAwsjson11_deserializeDocumentContributor(v **types.Contributor, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Value": @@ -3736,7 +3742,7 @@ func awsAwsjson11_deserializeDocumentContributor(v **types.Contributor, value in if err != nil { return err } - sv.Value = &i64 + sv.Value = i64 } default: @@ -3776,7 +3782,7 @@ func awsAwsjson11_deserializeDocumentEmergencyContact(v **types.EmergencyContact if !ok { return fmt.Errorf("expected ContactNotes to be of type string, got %T instead", value) } - sv.ContactNotes = &jtv + sv.ContactNotes = ptr.String(jtv) } case "EmailAddress": @@ -3785,7 +3791,7 @@ func awsAwsjson11_deserializeDocumentEmergencyContact(v **types.EmergencyContact if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "PhoneNumber": @@ -3794,7 +3800,7 @@ func awsAwsjson11_deserializeDocumentEmergencyContact(v **types.EmergencyContact if !ok { return fmt.Errorf("expected PhoneNumber to be of type string, got %T instead", value) } - sv.PhoneNumber = &jtv + sv.PhoneNumber = ptr.String(jtv) } default: @@ -3806,7 +3812,7 @@ func awsAwsjson11_deserializeDocumentEmergencyContact(v **types.EmergencyContact return nil } -func awsAwsjson11_deserializeDocumentEmergencyContactList(v *[]*types.EmergencyContact, value interface{}) error { +func awsAwsjson11_deserializeDocumentEmergencyContactList(v *[]types.EmergencyContact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3819,18 +3825,20 @@ func awsAwsjson11_deserializeDocumentEmergencyContactList(v *[]*types.EmergencyC return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EmergencyContact + var cv []types.EmergencyContact if *v == nil { - cv = []*types.EmergencyContact{} + cv = []types.EmergencyContact{} } else { cv = *v } for _, value := range shape { - var col *types.EmergencyContact - if err := awsAwsjson11_deserializeDocumentEmergencyContact(&col, value); err != nil { + var col types.EmergencyContact + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEmergencyContact(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3838,7 +3846,7 @@ func awsAwsjson11_deserializeDocumentEmergencyContactList(v *[]*types.EmergencyC return nil } -func awsAwsjson11_deserializeDocumentHealthCheckIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentHealthCheckIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3851,21 +3859,21 @@ func awsAwsjson11_deserializeDocumentHealthCheckIds(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HealthCheckId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3902,7 +3910,7 @@ func awsAwsjson11_deserializeDocumentInternalErrorException(v **types.InternalEr if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3942,7 +3950,7 @@ func awsAwsjson11_deserializeDocumentInvalidOperationException(v **types.Invalid if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3982,7 +3990,7 @@ func awsAwsjson11_deserializeDocumentInvalidPaginationTokenException(v **types.I if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4022,7 +4030,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4062,7 +4070,7 @@ func awsAwsjson11_deserializeDocumentInvalidResourceException(v **types.InvalidR if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4106,7 +4114,7 @@ func awsAwsjson11_deserializeDocumentLimit(v **types.Limit, value interface{}) e if err != nil { return err } - sv.Max = &i64 + sv.Max = i64 } case "Type": @@ -4115,7 +4123,7 @@ func awsAwsjson11_deserializeDocumentLimit(v **types.Limit, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -4127,7 +4135,7 @@ func awsAwsjson11_deserializeDocumentLimit(v **types.Limit, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentLimits(v *[]*types.Limit, value interface{}) error { +func awsAwsjson11_deserializeDocumentLimits(v *[]types.Limit, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4140,18 +4148,20 @@ func awsAwsjson11_deserializeDocumentLimits(v *[]*types.Limit, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Limit + var cv []types.Limit if *v == nil { - cv = []*types.Limit{} + cv = []types.Limit{} } else { cv = *v } for _, value := range shape { - var col *types.Limit - if err := awsAwsjson11_deserializeDocumentLimit(&col, value); err != nil { + var col types.Limit + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLimit(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4191,7 +4201,7 @@ func awsAwsjson11_deserializeDocumentLimitsExceededException(v **types.LimitsExc if err != nil { return err } - sv.Limit = &i64 + sv.Limit = i64 } case "message": @@ -4200,7 +4210,7 @@ func awsAwsjson11_deserializeDocumentLimitsExceededException(v **types.LimitsExc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Type": @@ -4209,7 +4219,7 @@ func awsAwsjson11_deserializeDocumentLimitsExceededException(v **types.LimitsExc if !ok { return fmt.Errorf("expected LimitType to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -4249,7 +4259,7 @@ func awsAwsjson11_deserializeDocumentLockedSubscriptionException(v **types.Locke if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4261,7 +4271,7 @@ func awsAwsjson11_deserializeDocumentLockedSubscriptionException(v **types.Locke return nil } -func awsAwsjson11_deserializeDocumentLogBucketList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogBucketList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4274,21 +4284,21 @@ func awsAwsjson11_deserializeDocumentLogBucketList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected LogBucket to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4325,7 +4335,7 @@ func awsAwsjson11_deserializeDocumentMitigation(v **types.Mitigation, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.MitigationName = &jtv + sv.MitigationName = ptr.String(jtv) } default: @@ -4337,7 +4347,7 @@ func awsAwsjson11_deserializeDocumentMitigation(v **types.Mitigation, value inte return nil } -func awsAwsjson11_deserializeDocumentMitigationList(v *[]*types.Mitigation, value interface{}) error { +func awsAwsjson11_deserializeDocumentMitigationList(v *[]types.Mitigation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4350,18 +4360,20 @@ func awsAwsjson11_deserializeDocumentMitigationList(v *[]*types.Mitigation, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Mitigation + var cv []types.Mitigation if *v == nil { - cv = []*types.Mitigation{} + cv = []types.Mitigation{} } else { cv = *v } for _, value := range shape { - var col *types.Mitigation - if err := awsAwsjson11_deserializeDocumentMitigation(&col, value); err != nil { + var col types.Mitigation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMitigation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4397,7 +4409,7 @@ func awsAwsjson11_deserializeDocumentNoAssociatedRoleException(v **types.NoAssoc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4437,7 +4449,7 @@ func awsAwsjson11_deserializeDocumentOptimisticLockException(v **types.Optimisti if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4482,7 +4494,7 @@ func awsAwsjson11_deserializeDocumentProtection(v **types.Protection, value inte if !ok { return fmt.Errorf("expected ProtectionId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -4491,7 +4503,7 @@ func awsAwsjson11_deserializeDocumentProtection(v **types.Protection, value inte if !ok { return fmt.Errorf("expected ProtectionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ResourceArn": @@ -4500,7 +4512,7 @@ func awsAwsjson11_deserializeDocumentProtection(v **types.Protection, value inte if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } default: @@ -4512,7 +4524,7 @@ func awsAwsjson11_deserializeDocumentProtection(v **types.Protection, value inte return nil } -func awsAwsjson11_deserializeDocumentProtections(v *[]*types.Protection, value interface{}) error { +func awsAwsjson11_deserializeDocumentProtections(v *[]types.Protection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4525,18 +4537,20 @@ func awsAwsjson11_deserializeDocumentProtections(v *[]*types.Protection, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Protection + var cv []types.Protection if *v == nil { - cv = []*types.Protection{} + cv = []types.Protection{} } else { cv = *v } for _, value := range shape { - var col *types.Protection - if err := awsAwsjson11_deserializeDocumentProtection(&col, value); err != nil { + var col types.Protection + destAddr := &col + if err := awsAwsjson11_deserializeDocumentProtection(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4572,7 +4586,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4612,7 +4626,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4662,7 +4676,7 @@ func awsAwsjson11_deserializeDocumentSubResourceSummary(v **types.SubResourceSum if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Type": @@ -4683,7 +4697,7 @@ func awsAwsjson11_deserializeDocumentSubResourceSummary(v **types.SubResourceSum return nil } -func awsAwsjson11_deserializeDocumentSubResourceSummaryList(v *[]*types.SubResourceSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubResourceSummaryList(v *[]types.SubResourceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4696,18 +4710,20 @@ func awsAwsjson11_deserializeDocumentSubResourceSummaryList(v *[]*types.SubResou return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SubResourceSummary + var cv []types.SubResourceSummary if *v == nil { - cv = []*types.SubResourceSummary{} + cv = []types.SubResourceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SubResourceSummary - if err := awsAwsjson11_deserializeDocumentSubResourceSummary(&col, value); err != nil { + var col types.SubResourceSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubResourceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4796,7 +4812,7 @@ func awsAwsjson11_deserializeDocumentSubscription(v **types.Subscription, value if err != nil { return err } - sv.TimeCommitmentInSeconds = &i64 + sv.TimeCommitmentInSeconds = i64 } default: @@ -4841,7 +4857,7 @@ func awsAwsjson11_deserializeDocumentSummarizedAttackVector(v **types.Summarized if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VectorType = &jtv + sv.VectorType = ptr.String(jtv) } default: @@ -4853,7 +4869,7 @@ func awsAwsjson11_deserializeDocumentSummarizedAttackVector(v **types.Summarized return nil } -func awsAwsjson11_deserializeDocumentSummarizedAttackVectorList(v *[]*types.SummarizedAttackVector, value interface{}) error { +func awsAwsjson11_deserializeDocumentSummarizedAttackVectorList(v *[]types.SummarizedAttackVector, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4866,18 +4882,20 @@ func awsAwsjson11_deserializeDocumentSummarizedAttackVectorList(v *[]*types.Summ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SummarizedAttackVector + var cv []types.SummarizedAttackVector if *v == nil { - cv = []*types.SummarizedAttackVector{} + cv = []types.SummarizedAttackVector{} } else { cv = *v } for _, value := range shape { - var col *types.SummarizedAttackVector - if err := awsAwsjson11_deserializeDocumentSummarizedAttackVector(&col, value); err != nil { + var col types.SummarizedAttackVector + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSummarizedAttackVector(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4917,7 +4935,7 @@ func awsAwsjson11_deserializeDocumentSummarizedCounter(v **types.SummarizedCount if err != nil { return err } - sv.Average = &f64 + sv.Average = f64 } case "Max": @@ -4930,7 +4948,7 @@ func awsAwsjson11_deserializeDocumentSummarizedCounter(v **types.SummarizedCount if err != nil { return err } - sv.Max = &f64 + sv.Max = f64 } case "N": @@ -4943,7 +4961,7 @@ func awsAwsjson11_deserializeDocumentSummarizedCounter(v **types.SummarizedCount if err != nil { return err } - sv.N = ptr.Int32(int32(i64)) + sv.N = int32(i64) } case "Name": @@ -4952,7 +4970,7 @@ func awsAwsjson11_deserializeDocumentSummarizedCounter(v **types.SummarizedCount if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Sum": @@ -4965,7 +4983,7 @@ func awsAwsjson11_deserializeDocumentSummarizedCounter(v **types.SummarizedCount if err != nil { return err } - sv.Sum = &f64 + sv.Sum = f64 } case "Unit": @@ -4974,7 +4992,7 @@ func awsAwsjson11_deserializeDocumentSummarizedCounter(v **types.SummarizedCount if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Unit = &jtv + sv.Unit = ptr.String(jtv) } default: @@ -4986,7 +5004,7 @@ func awsAwsjson11_deserializeDocumentSummarizedCounter(v **types.SummarizedCount return nil } -func awsAwsjson11_deserializeDocumentSummarizedCounterList(v *[]*types.SummarizedCounter, value interface{}) error { +func awsAwsjson11_deserializeDocumentSummarizedCounterList(v *[]types.SummarizedCounter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4999,18 +5017,20 @@ func awsAwsjson11_deserializeDocumentSummarizedCounterList(v *[]*types.Summarize return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SummarizedCounter + var cv []types.SummarizedCounter if *v == nil { - cv = []*types.SummarizedCounter{} + cv = []types.SummarizedCounter{} } else { cv = *v } for _, value := range shape { - var col *types.SummarizedCounter - if err := awsAwsjson11_deserializeDocumentSummarizedCounter(&col, value); err != nil { + var col types.SummarizedCounter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSummarizedCounter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5018,7 +5038,7 @@ func awsAwsjson11_deserializeDocumentSummarizedCounterList(v *[]*types.Summarize return nil } -func awsAwsjson11_deserializeDocumentTopContributors(v *[]*types.Contributor, value interface{}) error { +func awsAwsjson11_deserializeDocumentTopContributors(v *[]types.Contributor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5031,18 +5051,20 @@ func awsAwsjson11_deserializeDocumentTopContributors(v *[]*types.Contributor, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Contributor + var cv []types.Contributor if *v == nil { - cv = []*types.Contributor{} + cv = []types.Contributor{} } else { cv = *v } for _, value := range shape { - var col *types.Contributor - if err := awsAwsjson11_deserializeDocumentContributor(&col, value); err != nil { + var col types.Contributor + destAddr := &col + if err := awsAwsjson11_deserializeDocumentContributor(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5202,7 +5224,7 @@ func awsAwsjson11_deserializeOpDocumentCreateProtectionOutput(v **CreateProtecti if !ok { return fmt.Errorf("expected ProtectionId to be of type string, got %T instead", value) } - sv.ProtectionId = &jtv + sv.ProtectionId = ptr.String(jtv) } default: @@ -5376,7 +5398,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeDRTAccessOutput(v **DescribeDRTAc if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } default: @@ -5724,7 +5746,7 @@ func awsAwsjson11_deserializeOpDocumentListAttacksOutput(v **ListAttacksOutput, if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5764,7 +5786,7 @@ func awsAwsjson11_deserializeOpDocumentListProtectionsOutput(v **ListProtections if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Protections": diff --git a/service/shield/go.mod b/service/shield/go.mod index 6b1a3c788ce..1a0159dfc73 100644 --- a/service/shield/go.mod +++ b/service/shield/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/shield go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/shield/serializers.go b/service/shield/serializers.go index c35e9e94ebc..f11fa650353 100644 --- a/service/shield/serializers.go +++ b/service/shield/serializers.go @@ -1031,34 +1031,26 @@ func awsAwsjson11_serializeDocumentEmergencyContact(v *types.EmergencyContact, v return nil } -func awsAwsjson11_serializeDocumentEmergencyContactList(v []*types.EmergencyContact, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEmergencyContactList(v []types.EmergencyContact, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEmergencyContact(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEmergencyContact(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentResourceArnFilterList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceArnFilterList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/shield/types/errors.go b/service/shield/types/errors.go index 063dd538e7e..974117ff359 100644 --- a/service/shield/types/errors.go +++ b/service/shield/types/errors.go @@ -146,7 +146,7 @@ func (e *InvalidResourceException) ErrorFault() smithy.ErrorFault { return smith type LimitsExceededException struct { Message *string - Limit *int64 + Limit int64 Type *string } diff --git a/service/shield/types/types.go b/service/shield/types/types.go index 4a08a24be0a..2d8e07ab612 100644 --- a/service/shield/types/types.go +++ b/service/shield/types/types.go @@ -10,13 +10,13 @@ import ( type AttackDetail struct { // List of counters that describe the attack for the specified time period. - AttackCounters []*SummarizedCounter + AttackCounters []SummarizedCounter // The unique identifier (ID) of the attack. AttackId *string // The array of AttackProperty objects. - AttackProperties []*AttackProperty + AttackProperties []AttackProperty // The time the attack ended, in Unix time in seconds. For more information see // timestamp @@ -24,7 +24,7 @@ type AttackDetail struct { EndTime *time.Time // List of mitigation actions taken for the attack. - Mitigations []*Mitigation + Mitigations []Mitigation // The ARN (Amazon Resource Name) of the resource that was attacked. ResourceArn *string @@ -36,7 +36,7 @@ type AttackDetail struct { // If applicable, additional detail about the resource being attacked, for example, // IP address or URL. - SubResources []*SubResourceSummary + SubResources []SubResourceSummary } // Details of the described attack. @@ -54,11 +54,11 @@ type AttackProperty struct { // The array of Contributor objects that includes the top five contributors to an // attack. - TopContributors []*Contributor + TopContributors []Contributor // The total contributions made to this attack by all contributors, not just the // five listed in the TopContributors list. - Total *int64 + Total int64 // The unit of the Value of the contributions. Unit Unit @@ -71,7 +71,7 @@ type AttackSummary struct { AttackId *string // The list of attacks for a specified time period. - AttackVectors []*AttackVectorDescription + AttackVectors []AttackVectorDescription // The end time of the attack, in Unix time in seconds. For more information see // timestamp @@ -147,7 +147,7 @@ type Contributor struct { // The contribution of this contributor expressed in Protection units. For example // 10,000. - Value *int64 + Value int64 } // Contact information that the DRT can use to contact you if you have proactive @@ -171,7 +171,7 @@ type EmergencyContact struct { type Limit struct { // The maximum number of protections that can be created for the specified Type. - Max *int64 + Max int64 // The type of protection. Type *string @@ -189,7 +189,7 @@ type Protection struct { // The unique identifier (ID) for the Route 53 health check that's associated with // the protection. - HealthCheckIds []*string + HealthCheckIds []string // The unique identifier (ID) of the protection. Id *string @@ -205,10 +205,10 @@ type Protection struct { type SubResourceSummary struct { // The list of attack types and associated counters. - AttackVectors []*SummarizedAttackVector + AttackVectors []SummarizedAttackVector // The counters that describe the details of the attack. - Counters []*SummarizedCounter + Counters []SummarizedCounter // The unique identifier (ID) of the SubResource. Id *string @@ -231,7 +231,7 @@ type Subscription struct { EndTime *time.Time // Specifies how many protections of a given type you can create. - Limits []*Limit + Limits []Limit // If ENABLED, the DDoS Response Team (DRT) will use email and phone to notify // contacts about escalations to the DRT and to initiate proactive customer @@ -247,7 +247,7 @@ type Subscription struct { StartTime *time.Time // The length, in seconds, of the AWS Shield Advanced subscription for the account. - TimeCommitmentInSeconds *int64 + TimeCommitmentInSeconds int64 } // A summary of information about the attack. @@ -259,26 +259,26 @@ type SummarizedAttackVector struct { VectorType *string // The list of counters that describe the details of the attack. - VectorCounters []*SummarizedCounter + VectorCounters []SummarizedCounter } // The counter that describes a DDoS attack. type SummarizedCounter struct { // The average value of the counter for a specified time period. - Average *float64 + Average float64 // The maximum value of the counter for a specified time period. - Max *float64 + Max float64 // The number of counters for a specified time period. - N *int32 + N int32 // The counter name. Name *string // The total of counter values for a specified time period. - Sum *float64 + Sum float64 // The unit of the counters. Unit *string diff --git a/service/shield/validators.go b/service/shield/validators.go index 46315a773c0..e678c222588 100644 --- a/service/shield/validators.go +++ b/service/shield/validators.go @@ -265,13 +265,13 @@ func validateEmergencyContact(v *types.EmergencyContact) error { } } -func validateEmergencyContactList(v []*types.EmergencyContact) error { +func validateEmergencyContactList(v []types.EmergencyContact) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "EmergencyContactList"} for i := range v { - if err := validateEmergencyContact(v[i]); err != nil { + if err := validateEmergencyContact(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/signer/api_op_DescribeSigningJob.go b/service/signer/api_op_DescribeSigningJob.go index 7a55763afab..090355bab6b 100644 --- a/service/signer/api_op_DescribeSigningJob.go +++ b/service/signer/api_op_DescribeSigningJob.go @@ -69,7 +69,7 @@ type DescribeSigningJobOutput struct { // Map of user-assigned key-value pairs used during signing. These values contain // any information that you specified for use in your signing job. - SigningParameters map[string]*string + SigningParameters map[string]string // The object that contains the name of your S3 bucket or your raw code. Source *types.Source diff --git a/service/signer/api_op_GetSigningPlatform.go b/service/signer/api_op_GetSigningPlatform.go index ba99cb288eb..87594280728 100644 --- a/service/signer/api_op_GetSigningPlatform.go +++ b/service/signer/api_op_GetSigningPlatform.go @@ -45,7 +45,7 @@ type GetSigningPlatformOutput struct { // The maximum size (in MB) of the payload that can be signed by the target // platform. - MaxSizeInMB *int32 + MaxSizeInMB int32 // A list of partner entities that use the target signing platform. Partner *string diff --git a/service/signer/api_op_GetSigningProfile.go b/service/signer/api_op_GetSigningProfile.go index 727b474a88d..e09663736ec 100644 --- a/service/signer/api_op_GetSigningProfile.go +++ b/service/signer/api_op_GetSigningProfile.go @@ -55,13 +55,13 @@ type GetSigningProfileOutput struct { // A map of key-value pairs for signing operations that is attached to the target // signing profile. - SigningParameters map[string]*string + SigningParameters map[string]string // The status of the target signing profile. Status types.SigningProfileStatus // A list of tags associated with the signing profile. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/signer/api_op_ListSigningJobs.go b/service/signer/api_op_ListSigningJobs.go index 436ab88323a..bfa42e5beba 100644 --- a/service/signer/api_op_ListSigningJobs.go +++ b/service/signer/api_op_ListSigningJobs.go @@ -61,7 +61,7 @@ type ListSigningJobsInput struct { type ListSigningJobsOutput struct { // A list of your signing jobs. - Jobs []*types.SigningJob + Jobs []types.SigningJob // String for specifying the next set of paginated results. NextToken *string diff --git a/service/signer/api_op_ListSigningPlatforms.go b/service/signer/api_op_ListSigningPlatforms.go index 3a11593978c..d69daa25888 100644 --- a/service/signer/api_op_ListSigningPlatforms.go +++ b/service/signer/api_op_ListSigningPlatforms.go @@ -59,7 +59,7 @@ type ListSigningPlatformsOutput struct { NextToken *string // A list of all platforms that match the request parameters. - Platforms []*types.SigningPlatform + Platforms []types.SigningPlatform // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/signer/api_op_ListSigningProfiles.go b/service/signer/api_op_ListSigningProfiles.go index 7e0002a4583..940811828db 100644 --- a/service/signer/api_op_ListSigningProfiles.go +++ b/service/signer/api_op_ListSigningProfiles.go @@ -36,7 +36,7 @@ func (c *Client) ListSigningProfiles(ctx context.Context, params *ListSigningPro type ListSigningProfilesInput struct { // Designates whether to include profiles with the status of CANCELED. - IncludeCanceled *bool + IncludeCanceled bool // The maximum number of profiles to be returned. MaxResults *int32 @@ -55,7 +55,7 @@ type ListSigningProfilesOutput struct { // A list of profiles that are available in the AWS account. This includes profiles // with the status of CANCELED if the includeCanceled parameter is set to true. - Profiles []*types.SigningProfile + Profiles []types.SigningProfile // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/signer/api_op_ListTagsForResource.go b/service/signer/api_op_ListTagsForResource.go index dcaf3e49277..e63ca756f8d 100644 --- a/service/signer/api_op_ListTagsForResource.go +++ b/service/signer/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // A list of tags associated with the signing profile. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/signer/api_op_PutSigningProfile.go b/service/signer/api_op_PutSigningProfile.go index ac4ec65656a..91c6519aee2 100644 --- a/service/signer/api_op_PutSigningProfile.go +++ b/service/signer/api_op_PutSigningProfile.go @@ -55,10 +55,10 @@ type PutSigningProfileInput struct { // Map of key-value pairs for signing. These can include any information that you // want to use during signing. - SigningParameters map[string]*string + SigningParameters map[string]string // Tags to be associated with the signing profile that is being created. - Tags map[string]*string + Tags map[string]string } type PutSigningProfileOutput struct { diff --git a/service/signer/api_op_TagResource.go b/service/signer/api_op_TagResource.go index 46d3b780914..d0f1ecb6532 100644 --- a/service/signer/api_op_TagResource.go +++ b/service/signer/api_op_TagResource.go @@ -39,7 +39,7 @@ type TagResourceInput struct { // One or more tags to be associated with the signing profile. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/signer/api_op_UntagResource.go b/service/signer/api_op_UntagResource.go index 25d7f3879bd..3891a17548a 100644 --- a/service/signer/api_op_UntagResource.go +++ b/service/signer/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // A list of tag keys to be removed from the signing profile. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/signer/deserializers.go b/service/signer/deserializers.go index 08a1336ea96..9366e4729da 100644 --- a/service/signer/deserializers.go +++ b/service/signer/deserializers.go @@ -282,7 +282,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSigningJobOutput(v **DescribeSign if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "overrides": @@ -296,7 +296,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSigningJobOutput(v **DescribeSign if !ok { return fmt.Errorf("expected PlatformId to be of type string, got %T instead", value) } - sv.PlatformId = &jtv + sv.PlatformId = ptr.String(jtv) } case "profileName": @@ -305,7 +305,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSigningJobOutput(v **DescribeSign if !ok { return fmt.Errorf("expected ProfileName to be of type string, got %T instead", value) } - sv.ProfileName = &jtv + sv.ProfileName = ptr.String(jtv) } case "requestedBy": @@ -314,7 +314,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSigningJobOutput(v **DescribeSign if !ok { return fmt.Errorf("expected RequestedBy to be of type string, got %T instead", value) } - sv.RequestedBy = &jtv + sv.RequestedBy = ptr.String(jtv) } case "signedObject": @@ -352,7 +352,7 @@ func awsRestjson1_deserializeOpDocumentDescribeSigningJobOutput(v **DescribeSign if !ok { return fmt.Errorf("expected StatusReason to be of type string, got %T instead", value) } - sv.StatusReason = &jtv + sv.StatusReason = ptr.String(jtv) } default: @@ -518,7 +518,7 @@ func awsRestjson1_deserializeOpDocumentGetSigningPlatformOutput(v **GetSigningPl if !ok { return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "maxSizeInMB": @@ -531,7 +531,7 @@ func awsRestjson1_deserializeOpDocumentGetSigningPlatformOutput(v **GetSigningPl if err != nil { return err } - sv.MaxSizeInMB = ptr.Int32(int32(i64)) + sv.MaxSizeInMB = int32(i64) } case "partner": @@ -540,7 +540,7 @@ func awsRestjson1_deserializeOpDocumentGetSigningPlatformOutput(v **GetSigningPl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Partner = &jtv + sv.Partner = ptr.String(jtv) } case "platformId": @@ -549,7 +549,7 @@ func awsRestjson1_deserializeOpDocumentGetSigningPlatformOutput(v **GetSigningPl if !ok { return fmt.Errorf("expected PlatformId to be of type string, got %T instead", value) } - sv.PlatformId = &jtv + sv.PlatformId = ptr.String(jtv) } case "signingConfiguration": @@ -568,7 +568,7 @@ func awsRestjson1_deserializeOpDocumentGetSigningPlatformOutput(v **GetSigningPl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } default: @@ -728,7 +728,7 @@ func awsRestjson1_deserializeOpDocumentGetSigningProfileOutput(v **GetSigningPro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "overrides": @@ -742,7 +742,7 @@ func awsRestjson1_deserializeOpDocumentGetSigningProfileOutput(v **GetSigningPro if !ok { return fmt.Errorf("expected PlatformId to be of type string, got %T instead", value) } - sv.PlatformId = &jtv + sv.PlatformId = ptr.String(jtv) } case "profileName": @@ -751,7 +751,7 @@ func awsRestjson1_deserializeOpDocumentGetSigningProfileOutput(v **GetSigningPro if !ok { return fmt.Errorf("expected ProfileName to be of type string, got %T instead", value) } - sv.ProfileName = &jtv + sv.ProfileName = ptr.String(jtv) } case "signingMaterial": @@ -940,7 +940,7 @@ func awsRestjson1_deserializeOpDocumentListSigningJobsOutput(v **ListSigningJobs if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1100,7 +1100,7 @@ func awsRestjson1_deserializeOpDocumentListSigningPlatformsOutput(v **ListSignin if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "platforms": @@ -1262,7 +1262,7 @@ func awsRestjson1_deserializeOpDocumentListSigningProfilesOutput(v **ListSigning if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "profiles": @@ -1583,7 +1583,7 @@ func awsRestjson1_deserializeOpDocumentPutSigningProfileOutput(v **PutSigningPro if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -1746,7 +1746,7 @@ func awsRestjson1_deserializeOpDocumentStartSigningJobOutput(v **StartSigningJob if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -2216,7 +2216,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2256,7 +2256,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2494,7 +2494,7 @@ func awsRestjson1_deserializeDocumentInternalServiceErrorException(v **types.Int if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2534,7 +2534,7 @@ func awsRestjson1_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2574,7 +2574,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2614,7 +2614,7 @@ func awsRestjson1_deserializeDocumentS3SignedObject(v **types.S3SignedObject, va if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "key": @@ -2623,7 +2623,7 @@ func awsRestjson1_deserializeDocumentS3SignedObject(v **types.S3SignedObject, va if !ok { return fmt.Errorf("expected Key to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } default: @@ -2663,7 +2663,7 @@ func awsRestjson1_deserializeDocumentS3Source(v **types.S3Source, value interfac if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "key": @@ -2672,7 +2672,7 @@ func awsRestjson1_deserializeDocumentS3Source(v **types.S3Source, value interfac if !ok { return fmt.Errorf("expected Key to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "version": @@ -2681,7 +2681,7 @@ func awsRestjson1_deserializeDocumentS3Source(v **types.S3Source, value interfac if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -2905,7 +2905,7 @@ func awsRestjson1_deserializeDocumentSigningJob(v **types.SigningJob, value inte if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "signedObject": @@ -2941,7 +2941,7 @@ func awsRestjson1_deserializeDocumentSigningJob(v **types.SigningJob, value inte return nil } -func awsRestjson1_deserializeDocumentSigningJobs(v *[]*types.SigningJob, value interface{}) error { +func awsRestjson1_deserializeDocumentSigningJobs(v *[]types.SigningJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2954,18 +2954,20 @@ func awsRestjson1_deserializeDocumentSigningJobs(v *[]*types.SigningJob, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SigningJob + var cv []types.SigningJob if *v == nil { - cv = []*types.SigningJob{} + cv = []types.SigningJob{} } else { cv = *v } for _, value := range shape { - var col *types.SigningJob - if err := awsRestjson1_deserializeDocumentSigningJob(&col, value); err != nil { + var col types.SigningJob + destAddr := &col + if err := awsRestjson1_deserializeDocumentSigningJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3001,7 +3003,7 @@ func awsRestjson1_deserializeDocumentSigningMaterial(v **types.SigningMaterial, if !ok { return fmt.Errorf("expected CertificateArn to be of type string, got %T instead", value) } - sv.CertificateArn = &jtv + sv.CertificateArn = ptr.String(jtv) } default: @@ -3013,7 +3015,7 @@ func awsRestjson1_deserializeDocumentSigningMaterial(v **types.SigningMaterial, return nil } -func awsRestjson1_deserializeDocumentSigningParameters(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSigningParameters(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3026,21 +3028,21 @@ func awsRestjson1_deserializeDocumentSigningParameters(v *map[string]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SigningParameterValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -3086,7 +3088,7 @@ func awsRestjson1_deserializeDocumentSigningPlatform(v **types.SigningPlatform, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "maxSizeInMB": @@ -3099,7 +3101,7 @@ func awsRestjson1_deserializeDocumentSigningPlatform(v **types.SigningPlatform, if err != nil { return err } - sv.MaxSizeInMB = ptr.Int32(int32(i64)) + sv.MaxSizeInMB = int32(i64) } case "partner": @@ -3108,7 +3110,7 @@ func awsRestjson1_deserializeDocumentSigningPlatform(v **types.SigningPlatform, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Partner = &jtv + sv.Partner = ptr.String(jtv) } case "platformId": @@ -3117,7 +3119,7 @@ func awsRestjson1_deserializeDocumentSigningPlatform(v **types.SigningPlatform, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PlatformId = &jtv + sv.PlatformId = ptr.String(jtv) } case "signingConfiguration": @@ -3136,7 +3138,7 @@ func awsRestjson1_deserializeDocumentSigningPlatform(v **types.SigningPlatform, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } default: @@ -3193,7 +3195,7 @@ func awsRestjson1_deserializeDocumentSigningPlatformOverrides(v **types.SigningP return nil } -func awsRestjson1_deserializeDocumentSigningPlatforms(v *[]*types.SigningPlatform, value interface{}) error { +func awsRestjson1_deserializeDocumentSigningPlatforms(v *[]types.SigningPlatform, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3206,18 +3208,20 @@ func awsRestjson1_deserializeDocumentSigningPlatforms(v *[]*types.SigningPlatfor return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SigningPlatform + var cv []types.SigningPlatform if *v == nil { - cv = []*types.SigningPlatform{} + cv = []types.SigningPlatform{} } else { cv = *v } for _, value := range shape { - var col *types.SigningPlatform - if err := awsRestjson1_deserializeDocumentSigningPlatform(&col, value); err != nil { + var col types.SigningPlatform + destAddr := &col + if err := awsRestjson1_deserializeDocumentSigningPlatform(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3253,7 +3257,7 @@ func awsRestjson1_deserializeDocumentSigningProfile(v **types.SigningProfile, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "platformId": @@ -3262,7 +3266,7 @@ func awsRestjson1_deserializeDocumentSigningProfile(v **types.SigningProfile, va if !ok { return fmt.Errorf("expected PlatformId to be of type string, got %T instead", value) } - sv.PlatformId = &jtv + sv.PlatformId = ptr.String(jtv) } case "profileName": @@ -3271,7 +3275,7 @@ func awsRestjson1_deserializeDocumentSigningProfile(v **types.SigningProfile, va if !ok { return fmt.Errorf("expected ProfileName to be of type string, got %T instead", value) } - sv.ProfileName = &jtv + sv.ProfileName = ptr.String(jtv) } case "signingMaterial": @@ -3307,7 +3311,7 @@ func awsRestjson1_deserializeDocumentSigningProfile(v **types.SigningProfile, va return nil } -func awsRestjson1_deserializeDocumentSigningProfiles(v *[]*types.SigningProfile, value interface{}) error { +func awsRestjson1_deserializeDocumentSigningProfiles(v *[]types.SigningProfile, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3320,18 +3324,20 @@ func awsRestjson1_deserializeDocumentSigningProfiles(v *[]*types.SigningProfile, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SigningProfile + var cv []types.SigningProfile if *v == nil { - cv = []*types.SigningProfile{} + cv = []types.SigningProfile{} } else { cv = *v } for _, value := range shape { - var col *types.SigningProfile - if err := awsRestjson1_deserializeDocumentSigningProfile(&col, value); err != nil { + var col types.SigningProfile + destAddr := &col + if err := awsRestjson1_deserializeDocumentSigningProfile(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3375,7 +3381,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3388,21 +3394,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -3439,7 +3445,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3479,7 +3485,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/signer/go.mod b/service/signer/go.mod index 7bd557f7e8f..108e9a74b60 100644 --- a/service/signer/go.mod +++ b/service/signer/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/signer go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/signer/serializers.go b/service/signer/serializers.go index bf868c34795..353bcb2270f 100644 --- a/service/signer/serializers.go +++ b/service/signer/serializers.go @@ -65,13 +65,10 @@ func awsRestjson1_serializeOpHttpBindingsCancelSigningProfileInput(v *CancelSign return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProfileName == nil { + if v.ProfileName == nil || len(*v.ProfileName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profileName must not be empty")} } if v.ProfileName != nil { - if len(*v.ProfileName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profileName must not be empty")} - } if err := encoder.SetURI("profileName").String(*v.ProfileName); err != nil { return err } @@ -131,13 +128,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeSigningJobInput(v *DescribeSign return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.JobId == nil { + if v.JobId == nil || len(*v.JobId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} } if v.JobId != nil { - if len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member jobId must not be empty")} - } if err := encoder.SetURI("jobId").String(*v.JobId); err != nil { return err } @@ -197,13 +191,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSigningPlatformInput(v *GetSigningPl return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.PlatformId == nil { + if v.PlatformId == nil || len(*v.PlatformId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member platformId must not be empty")} } if v.PlatformId != nil { - if len(*v.PlatformId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member platformId must not be empty")} - } if err := encoder.SetURI("platformId").String(*v.PlatformId); err != nil { return err } @@ -263,13 +254,10 @@ func awsRestjson1_serializeOpHttpBindingsGetSigningProfileInput(v *GetSigningPro return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProfileName == nil { + if v.ProfileName == nil || len(*v.ProfileName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profileName must not be empty")} } if v.ProfileName != nil { - if len(*v.ProfileName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profileName must not be empty")} - } if err := encoder.SetURI("profileName").String(*v.ProfileName); err != nil { return err } @@ -477,8 +465,8 @@ func awsRestjson1_serializeOpHttpBindingsListSigningProfilesInput(v *ListSigning return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.IncludeCanceled != nil { - encoder.SetQuery("includeCanceled").Boolean(*v.IncludeCanceled) + if v.IncludeCanceled { + encoder.SetQuery("includeCanceled").Boolean(v.IncludeCanceled) } if v.MaxResults != nil { @@ -543,13 +531,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -620,13 +605,10 @@ func awsRestjson1_serializeOpHttpBindingsPutSigningProfileInput(v *PutSigningPro return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ProfileName == nil { + if v.ProfileName == nil || len(*v.ProfileName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member profileName must not be empty")} } if v.ProfileName != nil { - if len(*v.ProfileName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member profileName must not be empty")} - } if err := encoder.SetURI("profileName").String(*v.ProfileName); err != nil { return err } @@ -829,13 +811,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -909,13 +888,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} - } if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { return err } @@ -923,10 +899,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1015,17 +988,13 @@ func awsRestjson1_serializeDocumentSigningMaterial(v *types.SigningMaterial, val return nil } -func awsRestjson1_serializeDocumentSigningParameters(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSigningParameters(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1063,17 +1032,13 @@ func awsRestjson1_serializeDocumentSource(v *types.Source, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/signer/types/types.go b/service/signer/types/types.go index 66a48545e84..260672a020b 100644 --- a/service/signer/types/types.go +++ b/service/signer/types/types.go @@ -178,7 +178,7 @@ type SigningPlatform struct { DisplayName *string // The maximum size (in MB) of code that can be signed by a code signing platform. - MaxSizeInMB *int32 + MaxSizeInMB int32 // Any partner entities linked to a code signing platform. Partner *string @@ -230,13 +230,13 @@ type SigningProfile struct { SigningMaterial *SigningMaterial // The parameters that are available for use by a code signing user. - SigningParameters map[string]*string + SigningParameters map[string]string // The status of a code signing profile. Status SigningProfileStatus // A list of tags associated with the signing profile. - Tags map[string]*string + Tags map[string]string } // An S3Source object that contains information about the S3 bucket where you saved diff --git a/service/sms/api_op_CreateApp.go b/service/sms/api_op_CreateApp.go index aeda2b0d3d1..3ea4ab98b26 100644 --- a/service/sms/api_op_CreateApp.go +++ b/service/sms/api_op_CreateApp.go @@ -44,10 +44,10 @@ type CreateAppInput struct { RoleName *string // The server groups to include in the application. - ServerGroups []*types.ServerGroup + ServerGroups []types.ServerGroup // The tags to be associated with the application. - Tags []*types.Tag + Tags []types.Tag } type CreateAppOutput struct { @@ -56,10 +56,10 @@ type CreateAppOutput struct { AppSummary *types.AppSummary // The server groups included in the application. - ServerGroups []*types.ServerGroup + ServerGroups []types.ServerGroup // The tags associated with the application. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sms/api_op_GetApp.go b/service/sms/api_op_GetApp.go index ec8988f3826..c720fcf7002 100644 --- a/service/sms/api_op_GetApp.go +++ b/service/sms/api_op_GetApp.go @@ -39,10 +39,10 @@ type GetAppOutput struct { AppSummary *types.AppSummary // The server groups that belong to the application. - ServerGroups []*types.ServerGroup + ServerGroups []types.ServerGroup // The tags associated with the application. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sms/api_op_GetAppLaunchConfiguration.go b/service/sms/api_op_GetAppLaunchConfiguration.go index cd2d7373b31..5f233aae5bc 100644 --- a/service/sms/api_op_GetAppLaunchConfiguration.go +++ b/service/sms/api_op_GetAppLaunchConfiguration.go @@ -48,7 +48,7 @@ type GetAppLaunchConfigurationOutput struct { RoleName *string // The launch configurations for server groups in this application. - ServerGroupLaunchConfigurations []*types.ServerGroupLaunchConfiguration + ServerGroupLaunchConfigurations []types.ServerGroupLaunchConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sms/api_op_GetAppReplicationConfiguration.go b/service/sms/api_op_GetAppReplicationConfiguration.go index 75522858b2c..d03e41dff5f 100644 --- a/service/sms/api_op_GetAppReplicationConfiguration.go +++ b/service/sms/api_op_GetAppReplicationConfiguration.go @@ -38,7 +38,7 @@ type GetAppReplicationConfigurationOutput struct { // The replication configurations associated with server groups in this // application. - ServerGroupReplicationConfigurations []*types.ServerGroupReplicationConfiguration + ServerGroupReplicationConfigurations []types.ServerGroupReplicationConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sms/api_op_GetAppValidationConfiguration.go b/service/sms/api_op_GetAppValidationConfiguration.go index 5c23de13226..e13fbcbce79 100644 --- a/service/sms/api_op_GetAppValidationConfiguration.go +++ b/service/sms/api_op_GetAppValidationConfiguration.go @@ -38,10 +38,10 @@ type GetAppValidationConfigurationInput struct { type GetAppValidationConfigurationOutput struct { // The configuration for application validation. - AppValidationConfigurations []*types.AppValidationConfiguration + AppValidationConfigurations []types.AppValidationConfiguration // The configuration for instance validation. - ServerGroupValidationConfigurations []*types.ServerGroupValidationConfiguration + ServerGroupValidationConfigurations []types.ServerGroupValidationConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sms/api_op_GetAppValidationOutput.go b/service/sms/api_op_GetAppValidationOutput.go index 6e499ed74e9..dfb996f72f2 100644 --- a/service/sms/api_op_GetAppValidationOutput.go +++ b/service/sms/api_op_GetAppValidationOutput.go @@ -38,7 +38,7 @@ type GetAppValidationOutputInput struct { type GetAppValidationOutputOutput struct { // The validation output. - ValidationOutputList []*types.ValidationOutput + ValidationOutputList []types.ValidationOutput // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sms/api_op_GetConnectors.go b/service/sms/api_op_GetConnectors.go index 8a848c13e4b..95886d5cc10 100644 --- a/service/sms/api_op_GetConnectors.go +++ b/service/sms/api_op_GetConnectors.go @@ -41,7 +41,7 @@ type GetConnectorsInput struct { type GetConnectorsOutput struct { // Information about the registered connectors. - ConnectorList []*types.Connector + ConnectorList []types.Connector // The token required to retrieve the next set of results. This value is null when // there are no more results to return. diff --git a/service/sms/api_op_GetReplicationJobs.go b/service/sms/api_op_GetReplicationJobs.go index fb6408a4aa4..82e1b5773c6 100644 --- a/service/sms/api_op_GetReplicationJobs.go +++ b/service/sms/api_op_GetReplicationJobs.go @@ -48,7 +48,7 @@ type GetReplicationJobsOutput struct { NextToken *string // Information about the replication jobs. - ReplicationJobList []*types.ReplicationJob + ReplicationJobList []types.ReplicationJob // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sms/api_op_GetReplicationRuns.go b/service/sms/api_op_GetReplicationRuns.go index 00703a1cf10..3dadacf470d 100644 --- a/service/sms/api_op_GetReplicationRuns.go +++ b/service/sms/api_op_GetReplicationRuns.go @@ -53,7 +53,7 @@ type GetReplicationRunsOutput struct { ReplicationJob *types.ReplicationJob // Information about the replication runs. - ReplicationRunList []*types.ReplicationRun + ReplicationRunList []types.ReplicationRun // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sms/api_op_GetServers.go b/service/sms/api_op_GetServers.go index 32339b7ae41..a6931c54299 100644 --- a/service/sms/api_op_GetServers.go +++ b/service/sms/api_op_GetServers.go @@ -40,7 +40,7 @@ type GetServersInput struct { NextToken *string // The server addresses. - VmServerAddressList []*types.VmServerAddress + VmServerAddressList []types.VmServerAddress } type GetServersOutput struct { @@ -56,7 +56,7 @@ type GetServersOutput struct { ServerCatalogStatus types.ServerCatalogStatus // Information about the servers. - ServerList []*types.Server + ServerList []types.Server // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sms/api_op_ListApps.go b/service/sms/api_op_ListApps.go index 1536916707f..3d5abcf5d13 100644 --- a/service/sms/api_op_ListApps.go +++ b/service/sms/api_op_ListApps.go @@ -30,7 +30,7 @@ func (c *Client) ListApps(ctx context.Context, params *ListAppsInput, optFns ... type ListAppsInput struct { // The unique application IDs. - AppIds []*string + AppIds []string // The maximum number of results to return in a single call. The default value is // 100. To retrieve the remaining results, make another call with the returned @@ -44,7 +44,7 @@ type ListAppsInput struct { type ListAppsOutput struct { // The application summaries. - Apps []*types.AppSummary + Apps []types.AppSummary // The token required to retrieve the next set of results. This value is null when // there are no more results to return. diff --git a/service/sms/api_op_PutAppLaunchConfiguration.go b/service/sms/api_op_PutAppLaunchConfiguration.go index 8e99aaf1446..94298d12611 100644 --- a/service/sms/api_op_PutAppLaunchConfiguration.go +++ b/service/sms/api_op_PutAppLaunchConfiguration.go @@ -42,7 +42,7 @@ type PutAppLaunchConfigurationInput struct { // Information about the launch configurations for server groups in the // application. - ServerGroupLaunchConfigurations []*types.ServerGroupLaunchConfiguration + ServerGroupLaunchConfigurations []types.ServerGroupLaunchConfiguration } type PutAppLaunchConfigurationOutput struct { diff --git a/service/sms/api_op_PutAppReplicationConfiguration.go b/service/sms/api_op_PutAppReplicationConfiguration.go index e7f5f57ca07..7147cca1aaf 100644 --- a/service/sms/api_op_PutAppReplicationConfiguration.go +++ b/service/sms/api_op_PutAppReplicationConfiguration.go @@ -34,7 +34,7 @@ type PutAppReplicationConfigurationInput struct { // Information about the replication configurations for server groups in the // application. - ServerGroupReplicationConfigurations []*types.ServerGroupReplicationConfiguration + ServerGroupReplicationConfigurations []types.ServerGroupReplicationConfiguration } type PutAppReplicationConfigurationOutput struct { diff --git a/service/sms/api_op_PutAppValidationConfiguration.go b/service/sms/api_op_PutAppValidationConfiguration.go index 4016b95c2af..68baf1db9bc 100644 --- a/service/sms/api_op_PutAppValidationConfiguration.go +++ b/service/sms/api_op_PutAppValidationConfiguration.go @@ -35,10 +35,10 @@ type PutAppValidationConfigurationInput struct { AppId *string // The configuration for application validation. - AppValidationConfigurations []*types.AppValidationConfiguration + AppValidationConfigurations []types.AppValidationConfiguration // The configuration for instance validation. - ServerGroupValidationConfigurations []*types.ServerGroupValidationConfiguration + ServerGroupValidationConfigurations []types.ServerGroupValidationConfiguration } type PutAppValidationConfigurationOutput struct { diff --git a/service/sms/api_op_UpdateApp.go b/service/sms/api_op_UpdateApp.go index fd336254ee5..22c0110511e 100644 --- a/service/sms/api_op_UpdateApp.go +++ b/service/sms/api_op_UpdateApp.go @@ -42,10 +42,10 @@ type UpdateAppInput struct { RoleName *string // The server groups in the application to update. - ServerGroups []*types.ServerGroup + ServerGroups []types.ServerGroup // The tags to associate with the application. - Tags []*types.Tag + Tags []types.Tag } type UpdateAppOutput struct { @@ -54,10 +54,10 @@ type UpdateAppOutput struct { AppSummary *types.AppSummary // The updated server groups in the application. - ServerGroups []*types.ServerGroup + ServerGroups []types.ServerGroup // The tags associated with the application. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sms/deserializers.go b/service/sms/deserializers.go index ca3a133b628..344318d792e 100644 --- a/service/sms/deserializers.go +++ b/service/sms/deserializers.go @@ -4735,7 +4735,7 @@ func awsAwsjson11_deserializeErrorUnauthorizedOperationException(response *smith return output } -func awsAwsjson11_deserializeDocumentApps(v *[]*types.AppSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentApps(v *[]types.AppSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4748,18 +4748,20 @@ func awsAwsjson11_deserializeDocumentApps(v *[]*types.AppSummary, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AppSummary + var cv []types.AppSummary if *v == nil { - cv = []*types.AppSummary{} + cv = []types.AppSummary{} } else { cv = *v } for _, value := range shape { - var col *types.AppSummary - if err := awsAwsjson11_deserializeDocumentAppSummary(&col, value); err != nil { + var col types.AppSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAppSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4795,7 +4797,7 @@ func awsAwsjson11_deserializeDocumentAppSummary(v **types.AppSummary, value inte if !ok { return fmt.Errorf("expected AppId to be of type string, got %T instead", value) } - sv.AppId = &jtv + sv.AppId = ptr.String(jtv) } case "creationTime": @@ -4817,7 +4819,7 @@ func awsAwsjson11_deserializeDocumentAppSummary(v **types.AppSummary, value inte if !ok { return fmt.Errorf("expected AppDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "importedAppId": @@ -4826,7 +4828,7 @@ func awsAwsjson11_deserializeDocumentAppSummary(v **types.AppSummary, value inte if !ok { return fmt.Errorf("expected ImportedAppId to be of type string, got %T instead", value) } - sv.ImportedAppId = &jtv + sv.ImportedAppId = ptr.String(jtv) } case "lastModified": @@ -4884,7 +4886,7 @@ func awsAwsjson11_deserializeDocumentAppSummary(v **types.AppSummary, value inte if !ok { return fmt.Errorf("expected AppLaunchStatusMessage to be of type string, got %T instead", value) } - sv.LaunchStatusMessage = &jtv + sv.LaunchStatusMessage = ptr.String(jtv) } case "name": @@ -4893,7 +4895,7 @@ func awsAwsjson11_deserializeDocumentAppSummary(v **types.AppSummary, value inte if !ok { return fmt.Errorf("expected AppName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "replicationConfigurationStatus": @@ -4920,7 +4922,7 @@ func awsAwsjson11_deserializeDocumentAppSummary(v **types.AppSummary, value inte if !ok { return fmt.Errorf("expected AppReplicationStatusMessage to be of type string, got %T instead", value) } - sv.ReplicationStatusMessage = &jtv + sv.ReplicationStatusMessage = ptr.String(jtv) } case "roleName": @@ -4929,7 +4931,7 @@ func awsAwsjson11_deserializeDocumentAppSummary(v **types.AppSummary, value inte if !ok { return fmt.Errorf("expected RoleName to be of type string, got %T instead", value) } - sv.RoleName = &jtv + sv.RoleName = ptr.String(jtv) } case "status": @@ -4947,7 +4949,7 @@ func awsAwsjson11_deserializeDocumentAppSummary(v **types.AppSummary, value inte if !ok { return fmt.Errorf("expected AppStatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "totalServerGroups": @@ -5022,7 +5024,7 @@ func awsAwsjson11_deserializeDocumentAppValidationConfiguration(v **types.AppVal if !ok { return fmt.Errorf("expected NonEmptyStringWithMaxLen255 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ssmValidationParameters": @@ -5036,7 +5038,7 @@ func awsAwsjson11_deserializeDocumentAppValidationConfiguration(v **types.AppVal if !ok { return fmt.Errorf("expected ValidationId to be of type string, got %T instead", value) } - sv.ValidationId = &jtv + sv.ValidationId = ptr.String(jtv) } default: @@ -5048,7 +5050,7 @@ func awsAwsjson11_deserializeDocumentAppValidationConfiguration(v **types.AppVal return nil } -func awsAwsjson11_deserializeDocumentAppValidationConfigurations(v *[]*types.AppValidationConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentAppValidationConfigurations(v *[]types.AppValidationConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5061,18 +5063,20 @@ func awsAwsjson11_deserializeDocumentAppValidationConfigurations(v *[]*types.App return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AppValidationConfiguration + var cv []types.AppValidationConfiguration if *v == nil { - cv = []*types.AppValidationConfiguration{} + cv = []types.AppValidationConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.AppValidationConfiguration - if err := awsAwsjson11_deserializeDocumentAppValidationConfiguration(&col, value); err != nil { + var col types.AppValidationConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAppValidationConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5162,7 +5166,7 @@ func awsAwsjson11_deserializeDocumentConnector(v **types.Connector, value interf if !ok { return fmt.Errorf("expected ConnectorId to be of type string, got %T instead", value) } - sv.ConnectorId = &jtv + sv.ConnectorId = ptr.String(jtv) } case "ipAddress": @@ -5171,7 +5175,7 @@ func awsAwsjson11_deserializeDocumentConnector(v **types.Connector, value interf if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "macAddress": @@ -5180,7 +5184,7 @@ func awsAwsjson11_deserializeDocumentConnector(v **types.Connector, value interf if !ok { return fmt.Errorf("expected MacAddress to be of type string, got %T instead", value) } - sv.MacAddress = &jtv + sv.MacAddress = ptr.String(jtv) } case "status": @@ -5198,7 +5202,7 @@ func awsAwsjson11_deserializeDocumentConnector(v **types.Connector, value interf if !ok { return fmt.Errorf("expected ConnectorVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } case "vmManagerId": @@ -5207,7 +5211,7 @@ func awsAwsjson11_deserializeDocumentConnector(v **types.Connector, value interf if !ok { return fmt.Errorf("expected VmManagerId to be of type string, got %T instead", value) } - sv.VmManagerId = &jtv + sv.VmManagerId = ptr.String(jtv) } case "vmManagerName": @@ -5216,7 +5220,7 @@ func awsAwsjson11_deserializeDocumentConnector(v **types.Connector, value interf if !ok { return fmt.Errorf("expected VmManagerName to be of type string, got %T instead", value) } - sv.VmManagerName = &jtv + sv.VmManagerName = ptr.String(jtv) } case "vmManagerType": @@ -5273,7 +5277,7 @@ func awsAwsjson11_deserializeDocumentConnectorCapabilityList(v *[]types.Connecto return nil } -func awsAwsjson11_deserializeDocumentConnectorList(v *[]*types.Connector, value interface{}) error { +func awsAwsjson11_deserializeDocumentConnectorList(v *[]types.Connector, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5286,18 +5290,20 @@ func awsAwsjson11_deserializeDocumentConnectorList(v *[]*types.Connector, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Connector + var cv []types.Connector if *v == nil { - cv = []*types.Connector{} + cv = []types.Connector{} } else { cv = *v } for _, value := range shape { - var col *types.Connector - if err := awsAwsjson11_deserializeDocumentConnector(&col, value); err != nil { + var col types.Connector + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConnector(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5333,7 +5339,7 @@ func awsAwsjson11_deserializeDocumentDryRunOperationException(v **types.DryRunOp if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5373,7 +5379,7 @@ func awsAwsjson11_deserializeDocumentInternalError(v **types.InternalError, valu if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5413,7 +5419,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5466,7 +5472,7 @@ func awsAwsjson11_deserializeDocumentLaunchDetails(v **types.LaunchDetails, valu if !ok { return fmt.Errorf("expected StackId to be of type string, got %T instead", value) } - sv.StackId = &jtv + sv.StackId = ptr.String(jtv) } case "stackName": @@ -5475,7 +5481,7 @@ func awsAwsjson11_deserializeDocumentLaunchDetails(v **types.LaunchDetails, valu if !ok { return fmt.Errorf("expected StackName to be of type string, got %T instead", value) } - sv.StackName = &jtv + sv.StackName = ptr.String(jtv) } default: @@ -5515,7 +5521,7 @@ func awsAwsjson11_deserializeDocumentMissingRequiredParameterException(v **types if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5555,7 +5561,7 @@ func awsAwsjson11_deserializeDocumentNoConnectorsAvailableException(v **types.No if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5595,7 +5601,7 @@ func awsAwsjson11_deserializeDocumentOperationNotPermittedException(v **types.Op if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5635,7 +5641,7 @@ func awsAwsjson11_deserializeDocumentReplicationJob(v **types.ReplicationJob, va if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "encrypted": @@ -5644,7 +5650,7 @@ func awsAwsjson11_deserializeDocumentReplicationJob(v **types.ReplicationJob, va if !ok { return fmt.Errorf("expected Encrypted to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = ptr.Bool(jtv) } case "frequency": @@ -5666,7 +5672,7 @@ func awsAwsjson11_deserializeDocumentReplicationJob(v **types.ReplicationJob, va if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "latestAmiId": @@ -5675,7 +5681,7 @@ func awsAwsjson11_deserializeDocumentReplicationJob(v **types.ReplicationJob, va if !ok { return fmt.Errorf("expected AmiId to be of type string, got %T instead", value) } - sv.LatestAmiId = &jtv + sv.LatestAmiId = ptr.String(jtv) } case "licenseType": @@ -5719,7 +5725,7 @@ func awsAwsjson11_deserializeDocumentReplicationJob(v **types.ReplicationJob, va if !ok { return fmt.Errorf("expected ReplicationJobId to be of type string, got %T instead", value) } - sv.ReplicationJobId = &jtv + sv.ReplicationJobId = ptr.String(jtv) } case "replicationRunList": @@ -5733,7 +5739,7 @@ func awsAwsjson11_deserializeDocumentReplicationJob(v **types.ReplicationJob, va if !ok { return fmt.Errorf("expected RoleName to be of type string, got %T instead", value) } - sv.RoleName = &jtv + sv.RoleName = ptr.String(jtv) } case "runOnce": @@ -5742,7 +5748,7 @@ func awsAwsjson11_deserializeDocumentReplicationJob(v **types.ReplicationJob, va if !ok { return fmt.Errorf("expected RunOnce to be of type *bool, got %T instead", value) } - sv.RunOnce = &jtv + sv.RunOnce = ptr.Bool(jtv) } case "seedReplicationTime": @@ -5764,7 +5770,7 @@ func awsAwsjson11_deserializeDocumentReplicationJob(v **types.ReplicationJob, va if !ok { return fmt.Errorf("expected ServerId to be of type string, got %T instead", value) } - sv.ServerId = &jtv + sv.ServerId = ptr.String(jtv) } case "serverType": @@ -5791,7 +5797,7 @@ func awsAwsjson11_deserializeDocumentReplicationJob(v **types.ReplicationJob, va if !ok { return fmt.Errorf("expected ReplicationJobStatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "vmServer": @@ -5836,7 +5842,7 @@ func awsAwsjson11_deserializeDocumentReplicationJobAlreadyExistsException(v **ty if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5848,7 +5854,7 @@ func awsAwsjson11_deserializeDocumentReplicationJobAlreadyExistsException(v **ty return nil } -func awsAwsjson11_deserializeDocumentReplicationJobList(v *[]*types.ReplicationJob, value interface{}) error { +func awsAwsjson11_deserializeDocumentReplicationJobList(v *[]types.ReplicationJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5861,18 +5867,20 @@ func awsAwsjson11_deserializeDocumentReplicationJobList(v *[]*types.ReplicationJ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicationJob + var cv []types.ReplicationJob if *v == nil { - cv = []*types.ReplicationJob{} + cv = []types.ReplicationJob{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicationJob - if err := awsAwsjson11_deserializeDocumentReplicationJob(&col, value); err != nil { + var col types.ReplicationJob + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReplicationJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5908,7 +5916,7 @@ func awsAwsjson11_deserializeDocumentReplicationJobNotFoundException(v **types.R if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5948,7 +5956,7 @@ func awsAwsjson11_deserializeDocumentReplicationRun(v **types.ReplicationRun, va if !ok { return fmt.Errorf("expected AmiId to be of type string, got %T instead", value) } - sv.AmiId = &jtv + sv.AmiId = ptr.String(jtv) } case "completedTime": @@ -5970,7 +5978,7 @@ func awsAwsjson11_deserializeDocumentReplicationRun(v **types.ReplicationRun, va if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "encrypted": @@ -5979,7 +5987,7 @@ func awsAwsjson11_deserializeDocumentReplicationRun(v **types.ReplicationRun, va if !ok { return fmt.Errorf("expected Encrypted to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = ptr.Bool(jtv) } case "kmsKeyId": @@ -5988,7 +5996,7 @@ func awsAwsjson11_deserializeDocumentReplicationRun(v **types.ReplicationRun, va if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "replicationRunId": @@ -5997,7 +6005,7 @@ func awsAwsjson11_deserializeDocumentReplicationRun(v **types.ReplicationRun, va if !ok { return fmt.Errorf("expected ReplicationRunId to be of type string, got %T instead", value) } - sv.ReplicationRunId = &jtv + sv.ReplicationRunId = ptr.String(jtv) } case "scheduledStartTime": @@ -6033,7 +6041,7 @@ func awsAwsjson11_deserializeDocumentReplicationRun(v **types.ReplicationRun, va if !ok { return fmt.Errorf("expected ReplicationRunStatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "type": @@ -6082,7 +6090,7 @@ func awsAwsjson11_deserializeDocumentReplicationRunLimitExceededException(v **ty if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6094,7 +6102,7 @@ func awsAwsjson11_deserializeDocumentReplicationRunLimitExceededException(v **ty return nil } -func awsAwsjson11_deserializeDocumentReplicationRunList(v *[]*types.ReplicationRun, value interface{}) error { +func awsAwsjson11_deserializeDocumentReplicationRunList(v *[]types.ReplicationRun, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6107,18 +6115,20 @@ func awsAwsjson11_deserializeDocumentReplicationRunList(v *[]*types.ReplicationR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ReplicationRun + var cv []types.ReplicationRun if *v == nil { - cv = []*types.ReplicationRun{} + cv = []types.ReplicationRun{} } else { cv = *v } for _, value := range shape { - var col *types.ReplicationRun - if err := awsAwsjson11_deserializeDocumentReplicationRun(&col, value); err != nil { + var col types.ReplicationRun + destAddr := &col + if err := awsAwsjson11_deserializeDocumentReplicationRun(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6154,7 +6164,7 @@ func awsAwsjson11_deserializeDocumentReplicationRunStageDetails(v **types.Replic if !ok { return fmt.Errorf("expected ReplicationRunStage to be of type string, got %T instead", value) } - sv.Stage = &jtv + sv.Stage = ptr.String(jtv) } case "stageProgress": @@ -6163,7 +6173,7 @@ func awsAwsjson11_deserializeDocumentReplicationRunStageDetails(v **types.Replic if !ok { return fmt.Errorf("expected ReplicationRunStageProgress to be of type string, got %T instead", value) } - sv.StageProgress = &jtv + sv.StageProgress = ptr.String(jtv) } default: @@ -6203,7 +6213,7 @@ func awsAwsjson11_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) } - sv.Bucket = &jtv + sv.Bucket = ptr.String(jtv) } case "key": @@ -6212,7 +6222,7 @@ func awsAwsjson11_deserializeDocumentS3Location(v **types.S3Location, value inte if !ok { return fmt.Errorf("expected S3KeyName to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } default: @@ -6252,7 +6262,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected ReplicationJobId to be of type string, got %T instead", value) } - sv.ReplicationJobId = &jtv + sv.ReplicationJobId = ptr.String(jtv) } case "replicationJobTerminated": @@ -6261,7 +6271,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected ReplicationJobTerminated to be of type *bool, got %T instead", value) } - sv.ReplicationJobTerminated = &jtv + sv.ReplicationJobTerminated = ptr.Bool(jtv) } case "serverId": @@ -6270,7 +6280,7 @@ func awsAwsjson11_deserializeDocumentServer(v **types.Server, value interface{}) if !ok { return fmt.Errorf("expected ServerId to be of type string, got %T instead", value) } - sv.ServerId = &jtv + sv.ServerId = ptr.String(jtv) } case "serverType": @@ -6324,7 +6334,7 @@ func awsAwsjson11_deserializeDocumentServerCannotBeReplicatedException(v **types if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6364,7 +6374,7 @@ func awsAwsjson11_deserializeDocumentServerGroup(v **types.ServerGroup, value in if !ok { return fmt.Errorf("expected ServerGroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "serverGroupId": @@ -6373,7 +6383,7 @@ func awsAwsjson11_deserializeDocumentServerGroup(v **types.ServerGroup, value in if !ok { return fmt.Errorf("expected ServerGroupId to be of type string, got %T instead", value) } - sv.ServerGroupId = &jtv + sv.ServerGroupId = ptr.String(jtv) } case "serverList": @@ -6431,7 +6441,7 @@ func awsAwsjson11_deserializeDocumentServerGroupLaunchConfiguration(v **types.Se if !ok { return fmt.Errorf("expected ServerGroupId to be of type string, got %T instead", value) } - sv.ServerGroupId = &jtv + sv.ServerGroupId = ptr.String(jtv) } case "serverLaunchConfigurations": @@ -6448,7 +6458,7 @@ func awsAwsjson11_deserializeDocumentServerGroupLaunchConfiguration(v **types.Se return nil } -func awsAwsjson11_deserializeDocumentServerGroupLaunchConfigurations(v *[]*types.ServerGroupLaunchConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentServerGroupLaunchConfigurations(v *[]types.ServerGroupLaunchConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6461,18 +6471,20 @@ func awsAwsjson11_deserializeDocumentServerGroupLaunchConfigurations(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServerGroupLaunchConfiguration + var cv []types.ServerGroupLaunchConfiguration if *v == nil { - cv = []*types.ServerGroupLaunchConfiguration{} + cv = []types.ServerGroupLaunchConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.ServerGroupLaunchConfiguration - if err := awsAwsjson11_deserializeDocumentServerGroupLaunchConfiguration(&col, value); err != nil { + var col types.ServerGroupLaunchConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServerGroupLaunchConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6508,7 +6520,7 @@ func awsAwsjson11_deserializeDocumentServerGroupReplicationConfiguration(v **typ if !ok { return fmt.Errorf("expected ServerGroupId to be of type string, got %T instead", value) } - sv.ServerGroupId = &jtv + sv.ServerGroupId = ptr.String(jtv) } case "serverReplicationConfigurations": @@ -6525,7 +6537,7 @@ func awsAwsjson11_deserializeDocumentServerGroupReplicationConfiguration(v **typ return nil } -func awsAwsjson11_deserializeDocumentServerGroupReplicationConfigurations(v *[]*types.ServerGroupReplicationConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentServerGroupReplicationConfigurations(v *[]types.ServerGroupReplicationConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6538,18 +6550,20 @@ func awsAwsjson11_deserializeDocumentServerGroupReplicationConfigurations(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServerGroupReplicationConfiguration + var cv []types.ServerGroupReplicationConfiguration if *v == nil { - cv = []*types.ServerGroupReplicationConfiguration{} + cv = []types.ServerGroupReplicationConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.ServerGroupReplicationConfiguration - if err := awsAwsjson11_deserializeDocumentServerGroupReplicationConfiguration(&col, value); err != nil { + var col types.ServerGroupReplicationConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServerGroupReplicationConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6557,7 +6571,7 @@ func awsAwsjson11_deserializeDocumentServerGroupReplicationConfigurations(v *[]* return nil } -func awsAwsjson11_deserializeDocumentServerGroups(v *[]*types.ServerGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentServerGroups(v *[]types.ServerGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6570,18 +6584,20 @@ func awsAwsjson11_deserializeDocumentServerGroups(v *[]*types.ServerGroup, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServerGroup + var cv []types.ServerGroup if *v == nil { - cv = []*types.ServerGroup{} + cv = []types.ServerGroup{} } else { cv = *v } for _, value := range shape { - var col *types.ServerGroup - if err := awsAwsjson11_deserializeDocumentServerGroup(&col, value); err != nil { + var col types.ServerGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServerGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6617,7 +6633,7 @@ func awsAwsjson11_deserializeDocumentServerGroupValidationConfiguration(v **type if !ok { return fmt.Errorf("expected ServerGroupId to be of type string, got %T instead", value) } - sv.ServerGroupId = &jtv + sv.ServerGroupId = ptr.String(jtv) } case "serverValidationConfigurations": @@ -6634,7 +6650,7 @@ func awsAwsjson11_deserializeDocumentServerGroupValidationConfiguration(v **type return nil } -func awsAwsjson11_deserializeDocumentServerGroupValidationConfigurations(v *[]*types.ServerGroupValidationConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentServerGroupValidationConfigurations(v *[]types.ServerGroupValidationConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6647,18 +6663,20 @@ func awsAwsjson11_deserializeDocumentServerGroupValidationConfigurations(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServerGroupValidationConfiguration + var cv []types.ServerGroupValidationConfiguration if *v == nil { - cv = []*types.ServerGroupValidationConfiguration{} + cv = []types.ServerGroupValidationConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.ServerGroupValidationConfiguration - if err := awsAwsjson11_deserializeDocumentServerGroupValidationConfiguration(&col, value); err != nil { + var col types.ServerGroupValidationConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServerGroupValidationConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6694,7 +6712,7 @@ func awsAwsjson11_deserializeDocumentServerLaunchConfiguration(v **types.ServerL if !ok { return fmt.Errorf("expected AssociatePublicIpAddress to be of type *bool, got %T instead", value) } - sv.AssociatePublicIpAddress = &jtv + sv.AssociatePublicIpAddress = ptr.Bool(jtv) } case "configureScript": @@ -6717,7 +6735,7 @@ func awsAwsjson11_deserializeDocumentServerLaunchConfiguration(v **types.ServerL if !ok { return fmt.Errorf("expected EC2KeyName to be of type string, got %T instead", value) } - sv.Ec2KeyName = &jtv + sv.Ec2KeyName = ptr.String(jtv) } case "iamInstanceProfileName": @@ -6726,7 +6744,7 @@ func awsAwsjson11_deserializeDocumentServerLaunchConfiguration(v **types.ServerL if !ok { return fmt.Errorf("expected RoleName to be of type string, got %T instead", value) } - sv.IamInstanceProfileName = &jtv + sv.IamInstanceProfileName = ptr.String(jtv) } case "instanceType": @@ -6735,7 +6753,7 @@ func awsAwsjson11_deserializeDocumentServerLaunchConfiguration(v **types.ServerL if !ok { return fmt.Errorf("expected InstanceType to be of type string, got %T instead", value) } - sv.InstanceType = &jtv + sv.InstanceType = ptr.String(jtv) } case "logicalId": @@ -6744,7 +6762,7 @@ func awsAwsjson11_deserializeDocumentServerLaunchConfiguration(v **types.ServerL if !ok { return fmt.Errorf("expected LogicalId to be of type string, got %T instead", value) } - sv.LogicalId = &jtv + sv.LogicalId = ptr.String(jtv) } case "securityGroup": @@ -6753,7 +6771,7 @@ func awsAwsjson11_deserializeDocumentServerLaunchConfiguration(v **types.ServerL if !ok { return fmt.Errorf("expected SecurityGroup to be of type string, got %T instead", value) } - sv.SecurityGroup = &jtv + sv.SecurityGroup = ptr.String(jtv) } case "server": @@ -6767,7 +6785,7 @@ func awsAwsjson11_deserializeDocumentServerLaunchConfiguration(v **types.ServerL if !ok { return fmt.Errorf("expected Subnet to be of type string, got %T instead", value) } - sv.Subnet = &jtv + sv.Subnet = ptr.String(jtv) } case "userData": @@ -6781,7 +6799,7 @@ func awsAwsjson11_deserializeDocumentServerLaunchConfiguration(v **types.ServerL if !ok { return fmt.Errorf("expected VPC to be of type string, got %T instead", value) } - sv.Vpc = &jtv + sv.Vpc = ptr.String(jtv) } default: @@ -6793,7 +6811,7 @@ func awsAwsjson11_deserializeDocumentServerLaunchConfiguration(v **types.ServerL return nil } -func awsAwsjson11_deserializeDocumentServerLaunchConfigurations(v *[]*types.ServerLaunchConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentServerLaunchConfigurations(v *[]types.ServerLaunchConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6806,18 +6824,20 @@ func awsAwsjson11_deserializeDocumentServerLaunchConfigurations(v *[]*types.Serv return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServerLaunchConfiguration + var cv []types.ServerLaunchConfiguration if *v == nil { - cv = []*types.ServerLaunchConfiguration{} + cv = []types.ServerLaunchConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.ServerLaunchConfiguration - if err := awsAwsjson11_deserializeDocumentServerLaunchConfiguration(&col, value); err != nil { + var col types.ServerLaunchConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServerLaunchConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6825,7 +6845,7 @@ func awsAwsjson11_deserializeDocumentServerLaunchConfigurations(v *[]*types.Serv return nil } -func awsAwsjson11_deserializeDocumentServerList(v *[]*types.Server, value interface{}) error { +func awsAwsjson11_deserializeDocumentServerList(v *[]types.Server, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6838,18 +6858,20 @@ func awsAwsjson11_deserializeDocumentServerList(v *[]*types.Server, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Server + var cv []types.Server if *v == nil { - cv = []*types.Server{} + cv = []types.Server{} } else { cv = *v } for _, value := range shape { - var col *types.Server - if err := awsAwsjson11_deserializeDocumentServer(&col, value); err != nil { + var col types.Server + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6898,7 +6920,7 @@ func awsAwsjson11_deserializeDocumentServerReplicationConfiguration(v **types.Se return nil } -func awsAwsjson11_deserializeDocumentServerReplicationConfigurations(v *[]*types.ServerReplicationConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentServerReplicationConfigurations(v *[]types.ServerReplicationConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6911,18 +6933,20 @@ func awsAwsjson11_deserializeDocumentServerReplicationConfigurations(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServerReplicationConfiguration + var cv []types.ServerReplicationConfiguration if *v == nil { - cv = []*types.ServerReplicationConfiguration{} + cv = []types.ServerReplicationConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.ServerReplicationConfiguration - if err := awsAwsjson11_deserializeDocumentServerReplicationConfiguration(&col, value); err != nil { + var col types.ServerReplicationConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServerReplicationConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6958,7 +6982,7 @@ func awsAwsjson11_deserializeDocumentServerReplicationParameters(v **types.Serve if !ok { return fmt.Errorf("expected Encrypted to be of type *bool, got %T instead", value) } - sv.Encrypted = &jtv + sv.Encrypted = ptr.Bool(jtv) } case "frequency": @@ -6980,7 +7004,7 @@ func awsAwsjson11_deserializeDocumentServerReplicationParameters(v **types.Serve if !ok { return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "licenseType": @@ -7011,7 +7035,7 @@ func awsAwsjson11_deserializeDocumentServerReplicationParameters(v **types.Serve if !ok { return fmt.Errorf("expected RunOnce to be of type *bool, got %T instead", value) } - sv.RunOnce = &jtv + sv.RunOnce = ptr.Bool(jtv) } case "seedTime": @@ -7064,7 +7088,7 @@ func awsAwsjson11_deserializeDocumentServerValidationConfiguration(v **types.Ser if !ok { return fmt.Errorf("expected NonEmptyStringWithMaxLen255 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "server": @@ -7092,7 +7116,7 @@ func awsAwsjson11_deserializeDocumentServerValidationConfiguration(v **types.Ser if !ok { return fmt.Errorf("expected ValidationId to be of type string, got %T instead", value) } - sv.ValidationId = &jtv + sv.ValidationId = ptr.String(jtv) } default: @@ -7104,7 +7128,7 @@ func awsAwsjson11_deserializeDocumentServerValidationConfiguration(v **types.Ser return nil } -func awsAwsjson11_deserializeDocumentServerValidationConfigurations(v *[]*types.ServerValidationConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentServerValidationConfigurations(v *[]types.ServerValidationConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7117,18 +7141,20 @@ func awsAwsjson11_deserializeDocumentServerValidationConfigurations(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServerValidationConfiguration + var cv []types.ServerValidationConfiguration if *v == nil { - cv = []*types.ServerValidationConfiguration{} + cv = []types.ServerValidationConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.ServerValidationConfiguration - if err := awsAwsjson11_deserializeDocumentServerValidationConfiguration(&col, value); err != nil { + var col types.ServerValidationConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentServerValidationConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7272,7 +7298,7 @@ func awsAwsjson11_deserializeDocumentSSMValidationParameters(v **types.SSMValida if !ok { return fmt.Errorf("expected Command to be of type string, got %T instead", value) } - sv.Command = &jtv + sv.Command = ptr.String(jtv) } case "executionTimeoutSeconds": @@ -7285,7 +7311,7 @@ func awsAwsjson11_deserializeDocumentSSMValidationParameters(v **types.SSMValida if err != nil { return err } - sv.ExecutionTimeoutSeconds = ptr.Int32(int32(i64)) + sv.ExecutionTimeoutSeconds = int32(i64) } case "instanceId": @@ -7294,7 +7320,7 @@ func awsAwsjson11_deserializeDocumentSSMValidationParameters(v **types.SSMValida if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "outputS3BucketName": @@ -7303,7 +7329,7 @@ func awsAwsjson11_deserializeDocumentSSMValidationParameters(v **types.SSMValida if !ok { return fmt.Errorf("expected BucketName to be of type string, got %T instead", value) } - sv.OutputS3BucketName = &jtv + sv.OutputS3BucketName = ptr.String(jtv) } case "scriptType": @@ -7357,7 +7383,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -7366,7 +7392,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -7378,7 +7404,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7391,18 +7417,20 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7469,7 +7497,7 @@ func awsAwsjson11_deserializeDocumentUnauthorizedOperationException(v **types.Un if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7608,7 +7636,7 @@ func awsAwsjson11_deserializeDocumentValidationOutput(v **types.ValidationOutput if !ok { return fmt.Errorf("expected NonEmptyStringWithMaxLen255 to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "serverValidationOutput": @@ -7631,7 +7659,7 @@ func awsAwsjson11_deserializeDocumentValidationOutput(v **types.ValidationOutput if !ok { return fmt.Errorf("expected ValidationStatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "validationId": @@ -7640,7 +7668,7 @@ func awsAwsjson11_deserializeDocumentValidationOutput(v **types.ValidationOutput if !ok { return fmt.Errorf("expected ValidationId to be of type string, got %T instead", value) } - sv.ValidationId = &jtv + sv.ValidationId = ptr.String(jtv) } default: @@ -7652,7 +7680,7 @@ func awsAwsjson11_deserializeDocumentValidationOutput(v **types.ValidationOutput return nil } -func awsAwsjson11_deserializeDocumentValidationOutputList(v *[]*types.ValidationOutput, value interface{}) error { +func awsAwsjson11_deserializeDocumentValidationOutputList(v *[]types.ValidationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7665,18 +7693,20 @@ func awsAwsjson11_deserializeDocumentValidationOutputList(v *[]*types.Validation return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ValidationOutput + var cv []types.ValidationOutput if *v == nil { - cv = []*types.ValidationOutput{} + cv = []types.ValidationOutput{} } else { cv = *v } for _, value := range shape { - var col *types.ValidationOutput - if err := awsAwsjson11_deserializeDocumentValidationOutput(&col, value); err != nil { + var col types.ValidationOutput + destAddr := &col + if err := awsAwsjson11_deserializeDocumentValidationOutput(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7712,7 +7742,7 @@ func awsAwsjson11_deserializeDocumentVmServer(v **types.VmServer, value interfac if !ok { return fmt.Errorf("expected VmManagerName to be of type string, got %T instead", value) } - sv.VmManagerName = &jtv + sv.VmManagerName = ptr.String(jtv) } case "vmManagerType": @@ -7730,7 +7760,7 @@ func awsAwsjson11_deserializeDocumentVmServer(v **types.VmServer, value interfac if !ok { return fmt.Errorf("expected VmName to be of type string, got %T instead", value) } - sv.VmName = &jtv + sv.VmName = ptr.String(jtv) } case "vmPath": @@ -7739,7 +7769,7 @@ func awsAwsjson11_deserializeDocumentVmServer(v **types.VmServer, value interfac if !ok { return fmt.Errorf("expected VmPath to be of type string, got %T instead", value) } - sv.VmPath = &jtv + sv.VmPath = ptr.String(jtv) } case "vmServerAddress": @@ -7784,7 +7814,7 @@ func awsAwsjson11_deserializeDocumentVmServerAddress(v **types.VmServerAddress, if !ok { return fmt.Errorf("expected VmId to be of type string, got %T instead", value) } - sv.VmId = &jtv + sv.VmId = ptr.String(jtv) } case "vmManagerId": @@ -7793,7 +7823,7 @@ func awsAwsjson11_deserializeDocumentVmServerAddress(v **types.VmServerAddress, if !ok { return fmt.Errorf("expected VmManagerId to be of type string, got %T instead", value) } - sv.VmManagerId = &jtv + sv.VmManagerId = ptr.String(jtv) } default: @@ -7879,7 +7909,7 @@ func awsAwsjson11_deserializeOpDocumentCreateReplicationJobOutput(v **CreateRepl if !ok { return fmt.Errorf("expected ReplicationJobId to be of type string, got %T instead", value) } - sv.ReplicationJobId = &jtv + sv.ReplicationJobId = ptr.String(jtv) } default: @@ -8208,7 +8238,7 @@ func awsAwsjson11_deserializeOpDocumentGetAppLaunchConfigurationOutput(v **GetAp if !ok { return fmt.Errorf("expected AppId to be of type string, got %T instead", value) } - sv.AppId = &jtv + sv.AppId = ptr.String(jtv) } case "autoLaunch": @@ -8217,7 +8247,7 @@ func awsAwsjson11_deserializeOpDocumentGetAppLaunchConfigurationOutput(v **GetAp if !ok { return fmt.Errorf("expected AutoLaunch to be of type *bool, got %T instead", value) } - sv.AutoLaunch = &jtv + sv.AutoLaunch = ptr.Bool(jtv) } case "roleName": @@ -8226,7 +8256,7 @@ func awsAwsjson11_deserializeOpDocumentGetAppLaunchConfigurationOutput(v **GetAp if !ok { return fmt.Errorf("expected RoleName to be of type string, got %T instead", value) } - sv.RoleName = &jtv + sv.RoleName = ptr.String(jtv) } case "serverGroupLaunchConfigurations": @@ -8435,7 +8465,7 @@ func awsAwsjson11_deserializeOpDocumentGetConnectorsOutput(v **GetConnectorsOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8475,7 +8505,7 @@ func awsAwsjson11_deserializeOpDocumentGetReplicationJobsOutput(v **GetReplicati if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "replicationJobList": @@ -8520,7 +8550,7 @@ func awsAwsjson11_deserializeOpDocumentGetReplicationRunsOutput(v **GetReplicati if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "replicationJob": @@ -8583,7 +8613,7 @@ func awsAwsjson11_deserializeOpDocumentGetServersOutput(v **GetServersOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "serverCatalogStatus": @@ -8735,7 +8765,7 @@ func awsAwsjson11_deserializeOpDocumentListAppsOutput(v **ListAppsOutput, value if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -8961,7 +8991,7 @@ func awsAwsjson11_deserializeOpDocumentStartOnDemandReplicationRunOutput(v **Sta if !ok { return fmt.Errorf("expected ReplicationRunId to be of type string, got %T instead", value) } - sv.ReplicationRunId = &jtv + sv.ReplicationRunId = ptr.String(jtv) } default: diff --git a/service/sms/go.mod b/service/sms/go.mod index 058ad8da279..e2ffb5c8d58 100644 --- a/service/sms/go.mod +++ b/service/sms/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/sms go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/sms/serializers.go b/service/sms/serializers.go index 4e6f1d2189a..d69d6baa223 100644 --- a/service/sms/serializers.go +++ b/service/sms/serializers.go @@ -1610,17 +1610,13 @@ func (m *awsAwsjson11_serializeOpUpdateReplicationJob) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAppIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAppIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1654,17 +1650,13 @@ func awsAwsjson11_serializeDocumentAppValidationConfiguration(v *types.AppValida return nil } -func awsAwsjson11_serializeDocumentAppValidationConfigurations(v []*types.AppValidationConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAppValidationConfigurations(v []types.AppValidationConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAppValidationConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAppValidationConfiguration(&v[i], av); err != nil { return err } } @@ -1792,17 +1784,13 @@ func awsAwsjson11_serializeDocumentServerGroupLaunchConfiguration(v *types.Serve return nil } -func awsAwsjson11_serializeDocumentServerGroupLaunchConfigurations(v []*types.ServerGroupLaunchConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServerGroupLaunchConfigurations(v []types.ServerGroupLaunchConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentServerGroupLaunchConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentServerGroupLaunchConfiguration(&v[i], av); err != nil { return err } } @@ -1828,34 +1816,26 @@ func awsAwsjson11_serializeDocumentServerGroupReplicationConfiguration(v *types. return nil } -func awsAwsjson11_serializeDocumentServerGroupReplicationConfigurations(v []*types.ServerGroupReplicationConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServerGroupReplicationConfigurations(v []types.ServerGroupReplicationConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentServerGroupReplicationConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentServerGroupReplicationConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentServerGroups(v []*types.ServerGroup, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServerGroups(v []types.ServerGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentServerGroup(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentServerGroup(&v[i], av); err != nil { return err } } @@ -1881,17 +1861,13 @@ func awsAwsjson11_serializeDocumentServerGroupValidationConfiguration(v *types.S return nil } -func awsAwsjson11_serializeDocumentServerGroupValidationConfigurations(v []*types.ServerGroupValidationConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServerGroupValidationConfigurations(v []types.ServerGroupValidationConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentServerGroupValidationConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentServerGroupValidationConfiguration(&v[i], av); err != nil { return err } } @@ -1971,34 +1947,26 @@ func awsAwsjson11_serializeDocumentServerLaunchConfiguration(v *types.ServerLaun return nil } -func awsAwsjson11_serializeDocumentServerLaunchConfigurations(v []*types.ServerLaunchConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServerLaunchConfigurations(v []types.ServerLaunchConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentServerLaunchConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentServerLaunchConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentServerList(v []*types.Server, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServerList(v []types.Server, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentServer(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentServer(&v[i], av); err != nil { return err } } @@ -2026,17 +1994,13 @@ func awsAwsjson11_serializeDocumentServerReplicationConfiguration(v *types.Serve return nil } -func awsAwsjson11_serializeDocumentServerReplicationConfigurations(v []*types.ServerReplicationConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServerReplicationConfigurations(v []types.ServerReplicationConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentServerReplicationConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentServerReplicationConfiguration(&v[i], av); err != nil { return err } } @@ -2121,17 +2085,13 @@ func awsAwsjson11_serializeDocumentServerValidationConfiguration(v *types.Server return nil } -func awsAwsjson11_serializeDocumentServerValidationConfigurations(v []*types.ServerValidationConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServerValidationConfigurations(v []types.ServerValidationConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentServerValidationConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentServerValidationConfiguration(&v[i], av); err != nil { return err } } @@ -2161,9 +2121,9 @@ func awsAwsjson11_serializeDocumentSSMValidationParameters(v *types.SSMValidatio ok.String(*v.Command) } - if v.ExecutionTimeoutSeconds != nil { + if v.ExecutionTimeoutSeconds != 0 { ok := object.Key("executionTimeoutSeconds") - ok.Integer(*v.ExecutionTimeoutSeconds) + ok.Integer(v.ExecutionTimeoutSeconds) } if v.InstanceId != nil { @@ -2208,17 +2168,13 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2309,17 +2265,13 @@ func awsAwsjson11_serializeDocumentVmServerAddress(v *types.VmServerAddress, val return nil } -func awsAwsjson11_serializeDocumentVmServerAddressList(v []*types.VmServerAddress, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVmServerAddressList(v []types.VmServerAddress, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentVmServerAddress(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentVmServerAddress(&v[i], av); err != nil { return err } } diff --git a/service/sms/types/types.go b/service/sms/types/types.go index 3dcdc745b30..f06eefc1846 100644 --- a/service/sms/types/types.go +++ b/service/sms/types/types.go @@ -196,7 +196,7 @@ type ReplicationJob struct { ReplicationJobId *string // Information about the replication runs. - ReplicationRunList []*ReplicationRun + ReplicationRunList []ReplicationRun // The name of the IAM role to be used by AWS SMS. RoleName *string @@ -323,7 +323,7 @@ type ServerGroup struct { ServerGroupId *string // The servers that belong to a server group. - ServerList []*Server + ServerList []Server } // Launch configuration for a server group. @@ -336,7 +336,7 @@ type ServerGroupLaunchConfiguration struct { ServerGroupId *string // The launch configuration for servers in the server group. - ServerLaunchConfigurations []*ServerLaunchConfiguration + ServerLaunchConfigurations []ServerLaunchConfiguration } // Replication configuration for a server group. @@ -347,7 +347,7 @@ type ServerGroupReplicationConfiguration struct { ServerGroupId *string // The replication configuration for servers in the server group. - ServerReplicationConfigurations []*ServerReplicationConfiguration + ServerReplicationConfigurations []ServerReplicationConfiguration } // Configuration for validating an instance. @@ -357,7 +357,7 @@ type ServerGroupValidationConfiguration struct { ServerGroupId *string // The validation configuration. - ServerValidationConfigurations []*ServerValidationConfiguration + ServerValidationConfigurations []ServerValidationConfiguration } // Launch configuration for a server. @@ -499,7 +499,7 @@ type SSMValidationParameters struct { Command *string // The timeout interval, in seconds. - ExecutionTimeoutSeconds *int32 + ExecutionTimeoutSeconds int32 // The ID of the instance. The instance must have the following tag: // UserForSMSApplicationValidation=true. diff --git a/service/snowball/api_op_DescribeAddresses.go b/service/snowball/api_op_DescribeAddresses.go index d6d464f3e5b..d1b3d5b3dc5 100644 --- a/service/snowball/api_op_DescribeAddresses.go +++ b/service/snowball/api_op_DescribeAddresses.go @@ -43,7 +43,7 @@ type DescribeAddressesInput struct { type DescribeAddressesOutput struct { // The Snow device shipping addresses that were created for this account. - Addresses []*types.Address + Addresses []types.Address // HTTP requests are stateless. If you use the automatically generated NextToken // value in your next DescribeAddresses call, your list of returned addresses will diff --git a/service/snowball/api_op_DescribeJob.go b/service/snowball/api_op_DescribeJob.go index 0c37b73ab6d..a8daf55131e 100644 --- a/service/snowball/api_op_DescribeJob.go +++ b/service/snowball/api_op_DescribeJob.go @@ -45,7 +45,7 @@ type DescribeJobOutput struct { // Information about a specific job part (in the case of an export job), including // shipping information, job status, and other important metadata. - SubJobMetadata []*types.JobMetadata + SubJobMetadata []types.JobMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/snowball/api_op_ListClusterJobs.go b/service/snowball/api_op_ListClusterJobs.go index dd8456c6c1b..061ce2a03c7 100644 --- a/service/snowball/api_op_ListClusterJobs.go +++ b/service/snowball/api_op_ListClusterJobs.go @@ -50,7 +50,7 @@ type ListClusterJobsOutput struct { // Each JobListEntry object contains a job's state, a job's ID, and a value that // indicates whether the job is a job part, in the case of export jobs. - JobListEntries []*types.JobListEntry + JobListEntries []types.JobListEntry // HTTP requests are stateless. If you use the automatically generated NextToken // value in your next ListClusterJobsResult call, your list of returned jobs will diff --git a/service/snowball/api_op_ListClusters.go b/service/snowball/api_op_ListClusters.go index 340d8b3dee5..ef306370dd5 100644 --- a/service/snowball/api_op_ListClusters.go +++ b/service/snowball/api_op_ListClusters.go @@ -44,7 +44,7 @@ type ListClustersOutput struct { // Each ClusterListEntry object contains a cluster's state, a cluster's ID, and // other important status information. - ClusterListEntries []*types.ClusterListEntry + ClusterListEntries []types.ClusterListEntry // HTTP requests are stateless. If you use the automatically generated NextToken // value in your next ClusterListEntry call, your list of returned clusters will diff --git a/service/snowball/api_op_ListCompatibleImages.go b/service/snowball/api_op_ListCompatibleImages.go index 8344315a6f9..9eb81eec7b8 100644 --- a/service/snowball/api_op_ListCompatibleImages.go +++ b/service/snowball/api_op_ListCompatibleImages.go @@ -47,7 +47,7 @@ type ListCompatibleImagesOutput struct { // A JSON-formatted object that describes a compatible AMI, including the ID and // name for a Snow device AMI. - CompatibleImages []*types.CompatibleImage + CompatibleImages []types.CompatibleImage // Because HTTP requests are stateless, this is the starting point for your next // list of returned images. diff --git a/service/snowball/api_op_ListJobs.go b/service/snowball/api_op_ListJobs.go index 12ae9eb7ff3..6a6deacefbb 100644 --- a/service/snowball/api_op_ListJobs.go +++ b/service/snowball/api_op_ListJobs.go @@ -46,7 +46,7 @@ type ListJobsOutput struct { // Each JobListEntry object contains a job's state, a job's ID, and a value that // indicates whether the job is a job part, in the case of export jobs. - JobListEntries []*types.JobListEntry + JobListEntries []types.JobListEntry // HTTP requests are stateless. If you use this automatically generated NextToken // value in your next ListJobs call, your returned JobListEntry objects will start diff --git a/service/snowball/deserializers.go b/service/snowball/deserializers.go index 6672c00a1d8..be863ae08ed 100644 --- a/service/snowball/deserializers.go +++ b/service/snowball/deserializers.go @@ -2973,7 +2973,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected AddressId to be of type string, got %T instead", value) } - sv.AddressId = &jtv + sv.AddressId = ptr.String(jtv) } case "City": @@ -2982,7 +2982,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.City = &jtv + sv.City = ptr.String(jtv) } case "Company": @@ -2991,7 +2991,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Company = &jtv + sv.Company = ptr.String(jtv) } case "Country": @@ -3000,7 +3000,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Country = &jtv + sv.Country = ptr.String(jtv) } case "IsRestricted": @@ -3009,7 +3009,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsRestricted = &jtv + sv.IsRestricted = jtv } case "Landmark": @@ -3018,7 +3018,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Landmark = &jtv + sv.Landmark = ptr.String(jtv) } case "Name": @@ -3027,7 +3027,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PhoneNumber": @@ -3036,7 +3036,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PhoneNumber = &jtv + sv.PhoneNumber = ptr.String(jtv) } case "PostalCode": @@ -3045,7 +3045,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PostalCode = &jtv + sv.PostalCode = ptr.String(jtv) } case "PrefectureOrDistrict": @@ -3054,7 +3054,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrefectureOrDistrict = &jtv + sv.PrefectureOrDistrict = ptr.String(jtv) } case "StateOrProvince": @@ -3063,7 +3063,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StateOrProvince = &jtv + sv.StateOrProvince = ptr.String(jtv) } case "Street1": @@ -3072,7 +3072,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Street1 = &jtv + sv.Street1 = ptr.String(jtv) } case "Street2": @@ -3081,7 +3081,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Street2 = &jtv + sv.Street2 = ptr.String(jtv) } case "Street3": @@ -3090,7 +3090,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Street3 = &jtv + sv.Street3 = ptr.String(jtv) } default: @@ -3102,7 +3102,7 @@ func awsAwsjson11_deserializeDocumentAddress(v **types.Address, value interface{ return nil } -func awsAwsjson11_deserializeDocumentAddressList(v *[]*types.Address, value interface{}) error { +func awsAwsjson11_deserializeDocumentAddressList(v *[]types.Address, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3115,18 +3115,20 @@ func awsAwsjson11_deserializeDocumentAddressList(v *[]*types.Address, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Address + var cv []types.Address if *v == nil { - cv = []*types.Address{} + cv = []types.Address{} } else { cv = *v } for _, value := range shape { - var col *types.Address - if err := awsAwsjson11_deserializeDocumentAddress(&col, value); err != nil { + var col types.Address + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAddress(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3162,7 +3164,7 @@ func awsAwsjson11_deserializeDocumentClusterLimitExceededException(v **types.Clu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3202,7 +3204,7 @@ func awsAwsjson11_deserializeDocumentClusterListEntry(v **types.ClusterListEntry if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterId = &jtv + sv.ClusterId = ptr.String(jtv) } case "ClusterState": @@ -3233,7 +3235,7 @@ func awsAwsjson11_deserializeDocumentClusterListEntry(v **types.ClusterListEntry if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } default: @@ -3245,7 +3247,7 @@ func awsAwsjson11_deserializeDocumentClusterListEntry(v **types.ClusterListEntry return nil } -func awsAwsjson11_deserializeDocumentClusterListEntryList(v *[]*types.ClusterListEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusterListEntryList(v *[]types.ClusterListEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3258,18 +3260,20 @@ func awsAwsjson11_deserializeDocumentClusterListEntryList(v *[]*types.ClusterLis return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ClusterListEntry + var cv []types.ClusterListEntry if *v == nil { - cv = []*types.ClusterListEntry{} + cv = []types.ClusterListEntry{} } else { cv = *v } for _, value := range shape { - var col *types.ClusterListEntry - if err := awsAwsjson11_deserializeDocumentClusterListEntry(&col, value); err != nil { + var col types.ClusterListEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentClusterListEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3305,7 +3309,7 @@ func awsAwsjson11_deserializeDocumentClusterMetadata(v **types.ClusterMetadata, if !ok { return fmt.Errorf("expected AddressId to be of type string, got %T instead", value) } - sv.AddressId = &jtv + sv.AddressId = ptr.String(jtv) } case "ClusterId": @@ -3314,7 +3318,7 @@ func awsAwsjson11_deserializeDocumentClusterMetadata(v **types.ClusterMetadata, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterId = &jtv + sv.ClusterId = ptr.String(jtv) } case "ClusterState": @@ -3345,7 +3349,7 @@ func awsAwsjson11_deserializeDocumentClusterMetadata(v **types.ClusterMetadata, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ForwardingAddressId": @@ -3354,7 +3358,7 @@ func awsAwsjson11_deserializeDocumentClusterMetadata(v **types.ClusterMetadata, if !ok { return fmt.Errorf("expected AddressId to be of type string, got %T instead", value) } - sv.ForwardingAddressId = &jtv + sv.ForwardingAddressId = ptr.String(jtv) } case "JobType": @@ -3372,7 +3376,7 @@ func awsAwsjson11_deserializeDocumentClusterMetadata(v **types.ClusterMetadata, if !ok { return fmt.Errorf("expected KmsKeyARN to be of type string, got %T instead", value) } - sv.KmsKeyARN = &jtv + sv.KmsKeyARN = ptr.String(jtv) } case "Notification": @@ -3391,7 +3395,7 @@ func awsAwsjson11_deserializeDocumentClusterMetadata(v **types.ClusterMetadata, if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } case "ShippingOption": @@ -3454,7 +3458,7 @@ func awsAwsjson11_deserializeDocumentCompatibleImage(v **types.CompatibleImage, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AmiId = &jtv + sv.AmiId = ptr.String(jtv) } case "Name": @@ -3463,7 +3467,7 @@ func awsAwsjson11_deserializeDocumentCompatibleImage(v **types.CompatibleImage, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -3475,7 +3479,7 @@ func awsAwsjson11_deserializeDocumentCompatibleImage(v **types.CompatibleImage, return nil } -func awsAwsjson11_deserializeDocumentCompatibleImageList(v *[]*types.CompatibleImage, value interface{}) error { +func awsAwsjson11_deserializeDocumentCompatibleImageList(v *[]types.CompatibleImage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3488,18 +3492,20 @@ func awsAwsjson11_deserializeDocumentCompatibleImageList(v *[]*types.CompatibleI return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CompatibleImage + var cv []types.CompatibleImage if *v == nil { - cv = []*types.CompatibleImage{} + cv = []types.CompatibleImage{} } else { cv = *v } for _, value := range shape { - var col *types.CompatibleImage - if err := awsAwsjson11_deserializeDocumentCompatibleImage(&col, value); err != nil { + var col types.CompatibleImage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCompatibleImage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3535,7 +3541,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ConflictResource = &jtv + sv.ConflictResource = ptr.String(jtv) } case "Message": @@ -3544,7 +3550,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3588,7 +3594,7 @@ func awsAwsjson11_deserializeDocumentDataTransfer(v **types.DataTransfer, value if err != nil { return err } - sv.BytesTransferred = &i64 + sv.BytesTransferred = i64 } case "ObjectsTransferred": @@ -3601,7 +3607,7 @@ func awsAwsjson11_deserializeDocumentDataTransfer(v **types.DataTransfer, value if err != nil { return err } - sv.ObjectsTransferred = &i64 + sv.ObjectsTransferred = i64 } case "TotalBytes": @@ -3614,7 +3620,7 @@ func awsAwsjson11_deserializeDocumentDataTransfer(v **types.DataTransfer, value if err != nil { return err } - sv.TotalBytes = &i64 + sv.TotalBytes = i64 } case "TotalObjects": @@ -3627,7 +3633,7 @@ func awsAwsjson11_deserializeDocumentDataTransfer(v **types.DataTransfer, value if err != nil { return err } - sv.TotalObjects = &i64 + sv.TotalObjects = i64 } default: @@ -3703,7 +3709,7 @@ func awsAwsjson11_deserializeDocumentEc2AmiResource(v **types.Ec2AmiResource, va if !ok { return fmt.Errorf("expected AmiId to be of type string, got %T instead", value) } - sv.AmiId = &jtv + sv.AmiId = ptr.String(jtv) } case "SnowballAmiId": @@ -3712,7 +3718,7 @@ func awsAwsjson11_deserializeDocumentEc2AmiResource(v **types.Ec2AmiResource, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SnowballAmiId = &jtv + sv.SnowballAmiId = ptr.String(jtv) } default: @@ -3724,7 +3730,7 @@ func awsAwsjson11_deserializeDocumentEc2AmiResource(v **types.Ec2AmiResource, va return nil } -func awsAwsjson11_deserializeDocumentEc2AmiResourceList(v *[]*types.Ec2AmiResource, value interface{}) error { +func awsAwsjson11_deserializeDocumentEc2AmiResourceList(v *[]types.Ec2AmiResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3737,18 +3743,20 @@ func awsAwsjson11_deserializeDocumentEc2AmiResourceList(v *[]*types.Ec2AmiResour return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Ec2AmiResource + var cv []types.Ec2AmiResource if *v == nil { - cv = []*types.Ec2AmiResource{} + cv = []types.Ec2AmiResource{} } else { cv = *v } for _, value := range shape { - var col *types.Ec2AmiResource - if err := awsAwsjson11_deserializeDocumentEc2AmiResource(&col, value); err != nil { + var col types.Ec2AmiResource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEc2AmiResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3784,7 +3792,7 @@ func awsAwsjson11_deserializeDocumentEc2RequestFailedException(v **types.Ec2Requ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3824,7 +3832,7 @@ func awsAwsjson11_deserializeDocumentEventTriggerDefinition(v **types.EventTrigg if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.EventResourceARN = &jtv + sv.EventResourceARN = ptr.String(jtv) } default: @@ -3836,7 +3844,7 @@ func awsAwsjson11_deserializeDocumentEventTriggerDefinition(v **types.EventTrigg return nil } -func awsAwsjson11_deserializeDocumentEventTriggerDefinitionList(v *[]*types.EventTriggerDefinition, value interface{}) error { +func awsAwsjson11_deserializeDocumentEventTriggerDefinitionList(v *[]types.EventTriggerDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3849,18 +3857,20 @@ func awsAwsjson11_deserializeDocumentEventTriggerDefinitionList(v *[]*types.Even return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EventTriggerDefinition + var cv []types.EventTriggerDefinition if *v == nil { - cv = []*types.EventTriggerDefinition{} + cv = []types.EventTriggerDefinition{} } else { cv = *v } for _, value := range shape { - var col *types.EventTriggerDefinition - if err := awsAwsjson11_deserializeDocumentEventTriggerDefinition(&col, value); err != nil { + var col types.EventTriggerDefinition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEventTriggerDefinition(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3896,7 +3906,7 @@ func awsAwsjson11_deserializeDocumentINDTaxDocuments(v **types.INDTaxDocuments, if !ok { return fmt.Errorf("expected GSTIN to be of type string, got %T instead", value) } - sv.GSTIN = &jtv + sv.GSTIN = ptr.String(jtv) } default: @@ -3936,7 +3946,7 @@ func awsAwsjson11_deserializeDocumentInvalidAddressException(v **types.InvalidAd if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3976,7 +3986,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputCombinationException(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4016,7 +4026,7 @@ func awsAwsjson11_deserializeDocumentInvalidJobStateException(v **types.InvalidJ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4056,7 +4066,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4096,7 +4106,7 @@ func awsAwsjson11_deserializeDocumentInvalidResourceException(v **types.InvalidR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceType": @@ -4105,7 +4115,7 @@ func awsAwsjson11_deserializeDocumentInvalidResourceException(v **types.InvalidR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -4158,7 +4168,7 @@ func awsAwsjson11_deserializeDocumentJobListEntry(v **types.JobListEntry, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "IsMaster": @@ -4167,7 +4177,7 @@ func awsAwsjson11_deserializeDocumentJobListEntry(v **types.JobListEntry, value if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsMaster = &jtv + sv.IsMaster = jtv } case "JobId": @@ -4176,7 +4186,7 @@ func awsAwsjson11_deserializeDocumentJobListEntry(v **types.JobListEntry, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobState": @@ -4215,7 +4225,7 @@ func awsAwsjson11_deserializeDocumentJobListEntry(v **types.JobListEntry, value return nil } -func awsAwsjson11_deserializeDocumentJobListEntryList(v *[]*types.JobListEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentJobListEntryList(v *[]types.JobListEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4228,18 +4238,20 @@ func awsAwsjson11_deserializeDocumentJobListEntryList(v *[]*types.JobListEntry, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobListEntry + var cv []types.JobListEntry if *v == nil { - cv = []*types.JobListEntry{} + cv = []types.JobListEntry{} } else { cv = *v } for _, value := range shape { - var col *types.JobListEntry - if err := awsAwsjson11_deserializeDocumentJobListEntry(&col, value); err != nil { + var col types.JobListEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentJobListEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4275,7 +4287,7 @@ func awsAwsjson11_deserializeDocumentJobLogs(v **types.JobLogs, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobCompletionReportURI = &jtv + sv.JobCompletionReportURI = ptr.String(jtv) } case "JobFailureLogURI": @@ -4284,7 +4296,7 @@ func awsAwsjson11_deserializeDocumentJobLogs(v **types.JobLogs, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobFailureLogURI = &jtv + sv.JobFailureLogURI = ptr.String(jtv) } case "JobSuccessLogURI": @@ -4293,7 +4305,7 @@ func awsAwsjson11_deserializeDocumentJobLogs(v **types.JobLogs, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobSuccessLogURI = &jtv + sv.JobSuccessLogURI = ptr.String(jtv) } default: @@ -4333,7 +4345,7 @@ func awsAwsjson11_deserializeDocumentJobMetadata(v **types.JobMetadata, value in if !ok { return fmt.Errorf("expected AddressId to be of type string, got %T instead", value) } - sv.AddressId = &jtv + sv.AddressId = ptr.String(jtv) } case "ClusterId": @@ -4342,7 +4354,7 @@ func awsAwsjson11_deserializeDocumentJobMetadata(v **types.JobMetadata, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterId = &jtv + sv.ClusterId = ptr.String(jtv) } case "CreationDate": @@ -4369,7 +4381,7 @@ func awsAwsjson11_deserializeDocumentJobMetadata(v **types.JobMetadata, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DeviceConfiguration": @@ -4383,7 +4395,7 @@ func awsAwsjson11_deserializeDocumentJobMetadata(v **types.JobMetadata, value in if !ok { return fmt.Errorf("expected AddressId to be of type string, got %T instead", value) } - sv.ForwardingAddressId = &jtv + sv.ForwardingAddressId = ptr.String(jtv) } case "JobId": @@ -4392,7 +4404,7 @@ func awsAwsjson11_deserializeDocumentJobMetadata(v **types.JobMetadata, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobLogInfo": @@ -4424,7 +4436,7 @@ func awsAwsjson11_deserializeDocumentJobMetadata(v **types.JobMetadata, value in if !ok { return fmt.Errorf("expected KmsKeyARN to be of type string, got %T instead", value) } - sv.KmsKeyARN = &jtv + sv.KmsKeyARN = ptr.String(jtv) } case "Notification": @@ -4443,7 +4455,7 @@ func awsAwsjson11_deserializeDocumentJobMetadata(v **types.JobMetadata, value in if !ok { return fmt.Errorf("expected RoleARN to be of type string, got %T instead", value) } - sv.RoleARN = &jtv + sv.RoleARN = ptr.String(jtv) } case "ShippingDetails": @@ -4483,7 +4495,7 @@ func awsAwsjson11_deserializeDocumentJobMetadata(v **types.JobMetadata, value in return nil } -func awsAwsjson11_deserializeDocumentJobMetadataList(v *[]*types.JobMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentJobMetadataList(v *[]types.JobMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4496,18 +4508,20 @@ func awsAwsjson11_deserializeDocumentJobMetadataList(v *[]*types.JobMetadata, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.JobMetadata + var cv []types.JobMetadata if *v == nil { - cv = []*types.JobMetadata{} + cv = []types.JobMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.JobMetadata - if err := awsAwsjson11_deserializeDocumentJobMetadata(&col, value); err != nil { + var col types.JobMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentJobMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4625,7 +4639,7 @@ func awsAwsjson11_deserializeDocumentKeyRange(v **types.KeyRange, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.BeginMarker = &jtv + sv.BeginMarker = ptr.String(jtv) } case "EndMarker": @@ -4634,7 +4648,7 @@ func awsAwsjson11_deserializeDocumentKeyRange(v **types.KeyRange, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EndMarker = &jtv + sv.EndMarker = ptr.String(jtv) } default: @@ -4674,7 +4688,7 @@ func awsAwsjson11_deserializeDocumentKMSRequestFailedException(v **types.KMSRequ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4719,7 +4733,7 @@ func awsAwsjson11_deserializeDocumentLambdaResource(v **types.LambdaResource, va if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.LambdaArn = &jtv + sv.LambdaArn = ptr.String(jtv) } default: @@ -4731,7 +4745,7 @@ func awsAwsjson11_deserializeDocumentLambdaResource(v **types.LambdaResource, va return nil } -func awsAwsjson11_deserializeDocumentLambdaResourceList(v *[]*types.LambdaResource, value interface{}) error { +func awsAwsjson11_deserializeDocumentLambdaResourceList(v *[]types.LambdaResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4744,18 +4758,20 @@ func awsAwsjson11_deserializeDocumentLambdaResourceList(v *[]*types.LambdaResour return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LambdaResource + var cv []types.LambdaResource if *v == nil { - cv = []*types.LambdaResource{} + cv = []types.LambdaResource{} } else { cv = *v } for _, value := range shape { - var col *types.LambdaResource - if err := awsAwsjson11_deserializeDocumentLambdaResource(&col, value); err != nil { + var col types.LambdaResource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLambdaResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4796,7 +4812,7 @@ func awsAwsjson11_deserializeDocumentNotification(v **types.Notification, value if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.NotifyAll = &jtv + sv.NotifyAll = jtv } case "SnsTopicARN": @@ -4805,7 +4821,7 @@ func awsAwsjson11_deserializeDocumentNotification(v **types.Notification, value if !ok { return fmt.Errorf("expected SnsTopicARN to be of type string, got %T instead", value) } - sv.SnsTopicARN = &jtv + sv.SnsTopicARN = ptr.String(jtv) } default: @@ -4845,7 +4861,7 @@ func awsAwsjson11_deserializeDocumentReturnShippingLabelAlreadyExistsException(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4885,7 +4901,7 @@ func awsAwsjson11_deserializeDocumentS3Resource(v **types.S3Resource, value inte if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.BucketArn = &jtv + sv.BucketArn = ptr.String(jtv) } case "KeyRange": @@ -4902,7 +4918,7 @@ func awsAwsjson11_deserializeDocumentS3Resource(v **types.S3Resource, value inte return nil } -func awsAwsjson11_deserializeDocumentS3ResourceList(v *[]*types.S3Resource, value interface{}) error { +func awsAwsjson11_deserializeDocumentS3ResourceList(v *[]types.S3Resource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4915,18 +4931,20 @@ func awsAwsjson11_deserializeDocumentS3ResourceList(v *[]*types.S3Resource, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.S3Resource + var cv []types.S3Resource if *v == nil { - cv = []*types.S3Resource{} + cv = []types.S3Resource{} } else { cv = *v } for _, value := range shape { - var col *types.S3Resource - if err := awsAwsjson11_deserializeDocumentS3Resource(&col, value); err != nil { + var col types.S3Resource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentS3Resource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4962,7 +4980,7 @@ func awsAwsjson11_deserializeDocumentShipment(v **types.Shipment, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "TrackingNumber": @@ -4971,7 +4989,7 @@ func awsAwsjson11_deserializeDocumentShipment(v **types.Shipment, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TrackingNumber = &jtv + sv.TrackingNumber = ptr.String(jtv) } default: @@ -5133,7 +5151,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedAddressException(v **types.Unsup if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5173,7 +5191,7 @@ func awsAwsjson11_deserializeDocumentWirelessConnection(v **types.WirelessConnec if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsWifiEnabled = &jtv + sv.IsWifiEnabled = jtv } default: @@ -5275,7 +5293,7 @@ func awsAwsjson11_deserializeOpDocumentCreateAddressOutput(v **CreateAddressOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AddressId = &jtv + sv.AddressId = ptr.String(jtv) } default: @@ -5315,7 +5333,7 @@ func awsAwsjson11_deserializeOpDocumentCreateClusterOutput(v **CreateClusterOutp if !ok { return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) } - sv.ClusterId = &jtv + sv.ClusterId = ptr.String(jtv) } default: @@ -5355,7 +5373,7 @@ func awsAwsjson11_deserializeOpDocumentCreateJobOutput(v **CreateJobOutput, valu if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -5440,7 +5458,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAddressesOutput(v **DescribeAddre if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5646,7 +5664,7 @@ func awsAwsjson11_deserializeOpDocumentGetJobManifestOutput(v **GetJobManifestOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ManifestURI = &jtv + sv.ManifestURI = ptr.String(jtv) } default: @@ -5686,7 +5704,7 @@ func awsAwsjson11_deserializeOpDocumentGetJobUnlockCodeOutput(v **GetJobUnlockCo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UnlockCode = &jtv + sv.UnlockCode = ptr.String(jtv) } default: @@ -5783,7 +5801,7 @@ func awsAwsjson11_deserializeOpDocumentGetSoftwareUpdatesOutput(v **GetSoftwareU if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UpdatesURI = &jtv + sv.UpdatesURI = ptr.String(jtv) } default: @@ -5828,7 +5846,7 @@ func awsAwsjson11_deserializeOpDocumentListClusterJobsOutput(v **ListClusterJobs if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5873,7 +5891,7 @@ func awsAwsjson11_deserializeOpDocumentListClustersOutput(v **ListClustersOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5918,7 +5936,7 @@ func awsAwsjson11_deserializeOpDocumentListCompatibleImagesOutput(v **ListCompat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5963,7 +5981,7 @@ func awsAwsjson11_deserializeOpDocumentListJobsOutput(v **ListJobsOutput, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: diff --git a/service/snowball/go.mod b/service/snowball/go.mod index 1668a04c31c..11ec31eb547 100644 --- a/service/snowball/go.mod +++ b/service/snowball/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/snowball go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/snowball/serializers.go b/service/snowball/serializers.go index bbea3635cc2..c1ba865f3db 100644 --- a/service/snowball/serializers.go +++ b/service/snowball/serializers.go @@ -1042,9 +1042,9 @@ func awsAwsjson11_serializeDocumentAddress(v *types.Address, value smithyjson.Va ok.String(*v.Country) } - if v.IsRestricted != nil { + if v.IsRestricted { ok := object.Key("IsRestricted") - ok.Boolean(*v.IsRestricted) + ok.Boolean(v.IsRestricted) } if v.Landmark != nil { @@ -1126,17 +1126,13 @@ func awsAwsjson11_serializeDocumentEc2AmiResource(v *types.Ec2AmiResource, value return nil } -func awsAwsjson11_serializeDocumentEc2AmiResourceList(v []*types.Ec2AmiResource, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEc2AmiResourceList(v []types.Ec2AmiResource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEc2AmiResource(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEc2AmiResource(&v[i], av); err != nil { return err } } @@ -1155,17 +1151,13 @@ func awsAwsjson11_serializeDocumentEventTriggerDefinition(v *types.EventTriggerD return nil } -func awsAwsjson11_serializeDocumentEventTriggerDefinitionList(v []*types.EventTriggerDefinition, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentEventTriggerDefinitionList(v []types.EventTriggerDefinition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentEventTriggerDefinition(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentEventTriggerDefinition(&v[i], av); err != nil { return err } } @@ -1259,17 +1251,13 @@ func awsAwsjson11_serializeDocumentLambdaResource(v *types.LambdaResource, value return nil } -func awsAwsjson11_serializeDocumentLambdaResourceList(v []*types.LambdaResource, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLambdaResourceList(v []types.LambdaResource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentLambdaResource(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentLambdaResource(&v[i], av); err != nil { return err } } @@ -1287,9 +1275,9 @@ func awsAwsjson11_serializeDocumentNotification(v *types.Notification, value smi } } - if v.NotifyAll != nil { + if v.NotifyAll { ok := object.Key("NotifyAll") - ok.Boolean(*v.NotifyAll) + ok.Boolean(v.NotifyAll) } if v.SnsTopicARN != nil { @@ -1319,17 +1307,13 @@ func awsAwsjson11_serializeDocumentS3Resource(v *types.S3Resource, value smithyj return nil } -func awsAwsjson11_serializeDocumentS3ResourceList(v []*types.S3Resource, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentS3ResourceList(v []types.S3Resource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentS3Resource(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentS3Resource(&v[i], av); err != nil { return err } } @@ -1368,9 +1352,9 @@ func awsAwsjson11_serializeDocumentWirelessConnection(v *types.WirelessConnectio object := value.Object() defer object.Close() - if v.IsWifiEnabled != nil { + if v.IsWifiEnabled { ok := object.Key("IsWifiEnabled") - ok.Boolean(*v.IsWifiEnabled) + ok.Boolean(v.IsWifiEnabled) } return nil diff --git a/service/snowball/types/types.go b/service/snowball/types/types.go index c62a84457c7..ab9b25b819b 100644 --- a/service/snowball/types/types.go +++ b/service/snowball/types/types.go @@ -27,7 +27,7 @@ type Address struct { // If the address you are creating is a primary address, then set this option to // true. This field is not supported in most regions. - IsRestricted *bool + IsRestricted bool // This field is no longer used and the value is ignored. Landmark *string @@ -170,20 +170,20 @@ type CompatibleImage struct { type DataTransfer struct { // The number of bytes transferred between a Snow device and Amazon S3. - BytesTransferred *int64 + BytesTransferred int64 // The number of objects transferred between a Snow device and Amazon S3. - ObjectsTransferred *int64 + ObjectsTransferred int64 // The total bytes of data for a transfer between a Snow device and Amazon S3. This // value is set to 0 (zero) until all the keys that will be transferred have been // listed. - TotalBytes *int64 + TotalBytes int64 // The total number of objects for a transfer between a Snow device and Amazon S3. // This value is set to 0 (zero) until all the keys that will be transferred have // been listed. - TotalObjects *int64 + TotalObjects int64 } // The container for SnowconeDeviceConfiguration. @@ -239,7 +239,7 @@ type JobListEntry struct { // part is associated with a Snowball. It might take some time before the job parts // associated with a particular main job are listed, because they are created after // the main job is created. - IsMaster *bool + IsMaster bool // The automatically generated ID for a job, for example // JID123e4567-e89b-12d3-a456-426655440000. @@ -370,13 +370,13 @@ type JobMetadata struct { type JobResource struct { // The Amazon Machine Images (AMIs) associated with this job. - Ec2AmiResources []*Ec2AmiResource + Ec2AmiResources []Ec2AmiResource // The Python-language Lambda functions for this job. - LambdaResources []*LambdaResource + LambdaResources []LambdaResource // An array of S3Resource objects. - S3Resources []*S3Resource + S3Resources []S3Resource } // Contains a key range. For export jobs, a S3Resource object can have an optional @@ -399,7 +399,7 @@ type LambdaResource struct { // The array of ARNs for S3Resource objects to trigger the LambdaResource objects // associated with this job. - EventTriggers []*EventTriggerDefinition + EventTriggers []EventTriggerDefinition // An Amazon Resource Name (ARN) that represents an AWS Lambda function to be // triggered by PUT object actions on the associated local Amazon S3 resource. @@ -419,7 +419,7 @@ type Notification struct { JobStatesToNotify []JobState // Any change in job state will trigger a notification for this job. - NotifyAll *bool + NotifyAll bool // The new SNS TopicArn that you want to associate with this job. You can create // Amazon Resource Names (ARNs) for topics by using the CreateTopic @@ -513,5 +513,5 @@ type TaxDocuments struct { type WirelessConnection struct { // Enables the Wi-Fi adapter on an AWS Snowcone device. - IsWifiEnabled *bool + IsWifiEnabled bool } diff --git a/service/snowball/validators.go b/service/snowball/validators.go index 884672df36c..de12b23a9d6 100644 --- a/service/snowball/validators.go +++ b/service/snowball/validators.go @@ -409,13 +409,13 @@ func validateEc2AmiResource(v *types.Ec2AmiResource) error { } } -func validateEc2AmiResourceList(v []*types.Ec2AmiResource) error { +func validateEc2AmiResourceList(v []types.Ec2AmiResource) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Ec2AmiResourceList"} for i := range v { - if err := validateEc2AmiResource(v[i]); err != nil { + if err := validateEc2AmiResource(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/sns/api_op_AddPermission.go b/service/sns/api_op_AddPermission.go index 53e8cc1ebbc..519a7239321 100644 --- a/service/sns/api_op_AddPermission.go +++ b/service/sns/api_op_AddPermission.go @@ -34,13 +34,13 @@ type AddPermissionInput struct { // signed up for this service. // // This member is required. - AWSAccountId []*string + AWSAccountId []string // The action you want to allow for the specified principal(s). Valid values: Any // Amazon SNS action name, for example Publish. // // This member is required. - ActionName []*string + ActionName []string // A unique identifier for the new policy statement. // diff --git a/service/sns/api_op_CheckIfPhoneNumberIsOptedOut.go b/service/sns/api_op_CheckIfPhoneNumberIsOptedOut.go index 671a51e2742..556766c7772 100644 --- a/service/sns/api_op_CheckIfPhoneNumberIsOptedOut.go +++ b/service/sns/api_op_CheckIfPhoneNumberIsOptedOut.go @@ -48,7 +48,7 @@ type CheckIfPhoneNumberIsOptedOutOutput struct { // // * false – The phone // number is opted in, meaning you can publish SMS messages to it. - IsOptedOut *bool + IsOptedOut bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sns/api_op_CreatePlatformApplication.go b/service/sns/api_op_CreatePlatformApplication.go index 81efeb67faa..52a5b7b12fb 100644 --- a/service/sns/api_op_CreatePlatformApplication.go +++ b/service/sns/api_op_CreatePlatformApplication.go @@ -60,7 +60,7 @@ type CreatePlatformApplicationInput struct { // (https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html) // // This member is required. - Attributes map[string]*string + Attributes map[string]string // Application names must be made up of only uppercase and lowercase ASCII letters, // numbers, underscores, hyphens, and periods, and must be between 1 and 256 diff --git a/service/sns/api_op_CreatePlatformEndpoint.go b/service/sns/api_op_CreatePlatformEndpoint.go index 8c01f93f757..4216761d39e 100644 --- a/service/sns/api_op_CreatePlatformEndpoint.go +++ b/service/sns/api_op_CreatePlatformEndpoint.go @@ -59,7 +59,7 @@ type CreatePlatformEndpointInput struct { // For a list of attributes, see SetEndpointAttributes // (https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html). - Attributes map[string]*string + Attributes map[string]string // Arbitrary user data to associate with the endpoint. Amazon SNS does not use this // data. The data must be in UTF-8 format and less than 2KB. diff --git a/service/sns/api_op_CreateTopic.go b/service/sns/api_op_CreateTopic.go index 63769f458c1..478981d9a3b 100644 --- a/service/sns/api_op_CreateTopic.go +++ b/service/sns/api_op_CreateTopic.go @@ -92,11 +92,11 @@ type CreateTopicInput struct { // attributes of the message). (Optional) To override the generated value, you can // specify a value for the the MessageDeduplicationId parameter for the Publish // action. - Attributes map[string]*string + Attributes map[string]string // The list of tags to add to a new topic. To be able to tag a topic on creation, // you must have the sns:CreateTopic and sns:TagResource permissions. - Tags []*types.Tag + Tags []types.Tag } // Response from CreateTopic action. diff --git a/service/sns/api_op_GetEndpointAttributes.go b/service/sns/api_op_GetEndpointAttributes.go index a9e07d5d46f..8fa096eb787 100644 --- a/service/sns/api_op_GetEndpointAttributes.go +++ b/service/sns/api_op_GetEndpointAttributes.go @@ -57,7 +57,7 @@ type GetEndpointAttributesOutput struct { // from the notification service when an app and mobile device are registered with // the notification service. The device token for the iOS platform is returned in // lowercase. - Attributes map[string]*string + Attributes map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sns/api_op_GetPlatformApplicationAttributes.go b/service/sns/api_op_GetPlatformApplicationAttributes.go index 7ad73e46682..251a841d5f1 100644 --- a/service/sns/api_op_GetPlatformApplicationAttributes.go +++ b/service/sns/api_op_GetPlatformApplicationAttributes.go @@ -56,7 +56,7 @@ type GetPlatformApplicationAttributesOutput struct { // * EventDeliveryFailure – Topic ARN to which DeliveryFailure // event notifications should be sent upon Direct Publish delivery failure // (permanent) to one of the application's endpoints. - Attributes map[string]*string + Attributes map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sns/api_op_GetSMSAttributes.go b/service/sns/api_op_GetSMSAttributes.go index bfce6cdf2b2..b8a7dd41174 100644 --- a/service/sns/api_op_GetSMSAttributes.go +++ b/service/sns/api_op_GetSMSAttributes.go @@ -34,14 +34,14 @@ type GetSMSAttributesInput struct { // you want values. For all attribute names, see SetSMSAttributes // (https://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html). If you // don't use this parameter, Amazon SNS returns all SMS attributes. - Attributes []*string + Attributes []string } // The response from the GetSMSAttributes request. type GetSMSAttributesOutput struct { // The SMS attribute names and their values. - Attributes map[string]*string + Attributes map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sns/api_op_GetSubscriptionAttributes.go b/service/sns/api_op_GetSubscriptionAttributes.go index 3b5f8d602c2..ac5a1447ace 100644 --- a/service/sns/api_op_GetSubscriptionAttributes.go +++ b/service/sns/api_op_GetSubscriptionAttributes.go @@ -80,7 +80,7 @@ type GetSubscriptionAttributesOutput struct { // // * TopicArn – The topic ARN that the subscription is // associated with. - Attributes map[string]*string + Attributes map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sns/api_op_GetTopicAttributes.go b/service/sns/api_op_GetTopicAttributes.go index be67d46fefe..967fe5f89d5 100644 --- a/service/sns/api_op_GetTopicAttributes.go +++ b/service/sns/api_op_GetTopicAttributes.go @@ -103,7 +103,7 @@ type GetTopicAttributesOutput struct { // attributes of the message). (Optional) To override the generated value, you can // specify a value for the the MessageDeduplicationId parameter for the Publish // action. - Attributes map[string]*string + Attributes map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sns/api_op_ListEndpointsByPlatformApplication.go b/service/sns/api_op_ListEndpointsByPlatformApplication.go index 85c65a13873..9de802ab7f5 100644 --- a/service/sns/api_op_ListEndpointsByPlatformApplication.go +++ b/service/sns/api_op_ListEndpointsByPlatformApplication.go @@ -54,7 +54,7 @@ type ListEndpointsByPlatformApplicationInput struct { type ListEndpointsByPlatformApplicationOutput struct { // Endpoints returned for ListEndpointsByPlatformApplication action. - Endpoints []*types.Endpoint + Endpoints []types.Endpoint // NextToken string is returned when calling ListEndpointsByPlatformApplication // action if additional records are available after the first page results. diff --git a/service/sns/api_op_ListPhoneNumbersOptedOut.go b/service/sns/api_op_ListPhoneNumbersOptedOut.go index 8c05969b20b..2ea8b17defb 100644 --- a/service/sns/api_op_ListPhoneNumbersOptedOut.go +++ b/service/sns/api_op_ListPhoneNumbersOptedOut.go @@ -49,7 +49,7 @@ type ListPhoneNumbersOptedOutOutput struct { // A list of phone numbers that are opted out of receiving SMS messages. The list // is paginated, and each page can contain up to 100 phone numbers. - PhoneNumbers []*string + PhoneNumbers []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sns/api_op_ListPlatformApplications.go b/service/sns/api_op_ListPlatformApplications.go index 71b03b1c98d..c5d4674b7e9 100644 --- a/service/sns/api_op_ListPlatformApplications.go +++ b/service/sns/api_op_ListPlatformApplications.go @@ -52,7 +52,7 @@ type ListPlatformApplicationsOutput struct { NextToken *string // Platform applications returned when calling ListPlatformApplications action. - PlatformApplications []*types.PlatformApplication + PlatformApplications []types.PlatformApplication // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sns/api_op_ListSubscriptions.go b/service/sns/api_op_ListSubscriptions.go index 61d93960e83..5feeb1a0461 100644 --- a/service/sns/api_op_ListSubscriptions.go +++ b/service/sns/api_op_ListSubscriptions.go @@ -46,7 +46,7 @@ type ListSubscriptionsOutput struct { NextToken *string // A list of subscriptions. - Subscriptions []*types.Subscription + Subscriptions []types.Subscription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sns/api_op_ListSubscriptionsByTopic.go b/service/sns/api_op_ListSubscriptionsByTopic.go index 6e5999f89b4..6695800cd26 100644 --- a/service/sns/api_op_ListSubscriptionsByTopic.go +++ b/service/sns/api_op_ListSubscriptionsByTopic.go @@ -51,7 +51,7 @@ type ListSubscriptionsByTopicOutput struct { NextToken *string // A list of subscriptions. - Subscriptions []*types.Subscription + Subscriptions []types.Subscription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sns/api_op_ListTagsForResource.go b/service/sns/api_op_ListTagsForResource.go index 0191234a7c3..fe156a346cb 100644 --- a/service/sns/api_op_ListTagsForResource.go +++ b/service/sns/api_op_ListTagsForResource.go @@ -40,7 +40,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags associated with the specified topic. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sns/api_op_ListTopics.go b/service/sns/api_op_ListTopics.go index 035d5ab8414..6b9e9964f36 100644 --- a/service/sns/api_op_ListTopics.go +++ b/service/sns/api_op_ListTopics.go @@ -44,7 +44,7 @@ type ListTopicsOutput struct { NextToken *string // A list of topic ARNs. - Topics []*types.Topic + Topics []types.Topic // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sns/api_op_Publish.go b/service/sns/api_op_Publish.go index 1747f30948a..ff7663e61ec 100644 --- a/service/sns/api_op_Publish.go +++ b/service/sns/api_op_Publish.go @@ -96,7 +96,7 @@ type PublishInput struct { Message *string // Message attributes for Publish action. - MessageAttributes map[string]*types.MessageAttributeValue + MessageAttributes map[string]types.MessageAttributeValue // This parameter applies only to FIFO (first-in-first-out) topics. The // MessageDeduplicationId can contain up to 128 alphanumeric characters (a-z, A-Z, diff --git a/service/sns/api_op_SetEndpointAttributes.go b/service/sns/api_op_SetEndpointAttributes.go index 7049e530188..ee11c9bce8f 100644 --- a/service/sns/api_op_SetEndpointAttributes.go +++ b/service/sns/api_op_SetEndpointAttributes.go @@ -50,7 +50,7 @@ type SetEndpointAttributesInput struct { // notification service. // // This member is required. - Attributes map[string]*string + Attributes map[string]string // EndpointArn used for SetEndpointAttributes action. // diff --git a/service/sns/api_op_SetPlatformApplicationAttributes.go b/service/sns/api_op_SetPlatformApplicationAttributes.go index 50afa82451f..1875857a59e 100644 --- a/service/sns/api_op_SetPlatformApplicationAttributes.go +++ b/service/sns/api_op_SetPlatformApplicationAttributes.go @@ -74,7 +74,7 @@ type SetPlatformApplicationAttributesInput struct { // delivered messages. // // This member is required. - Attributes map[string]*string + Attributes map[string]string // PlatformApplicationArn for SetPlatformApplicationAttributes action. // diff --git a/service/sns/api_op_SetSMSAttributes.go b/service/sns/api_op_SetSMSAttributes.go index 1a26d6bded1..f6cc9311626 100644 --- a/service/sns/api_op_SetSMSAttributes.go +++ b/service/sns/api_op_SetSMSAttributes.go @@ -104,7 +104,7 @@ type SetSMSAttributesInput struct { // Developer Guide. // // This member is required. - Attributes map[string]*string + Attributes map[string]string } // The response for the SetSMSAttributes action. diff --git a/service/sns/api_op_Subscribe.go b/service/sns/api_op_Subscribe.go index d6199b0eba3..949eedde2f2 100644 --- a/service/sns/api_op_Subscribe.go +++ b/service/sns/api_op_Subscribe.go @@ -90,7 +90,7 @@ type SubscribeInput struct { // errors (for example, when the service that powers the subscribed endpoint // becomes unavailable) are held in the dead-letter queue for further analysis or // reprocessing. - Attributes map[string]*string + Attributes map[string]string // The endpoint that you want to receive notifications. Endpoints vary by // protocol: @@ -127,7 +127,7 @@ type SubscribeInput struct { // aren't yet confirmed. A subscription becomes confirmed when the subscriber calls // the ConfirmSubscription action with a confirmation token. The default value is // false. - ReturnSubscriptionArn *bool + ReturnSubscriptionArn bool } // Response for Subscribe action. diff --git a/service/sns/api_op_TagResource.go b/service/sns/api_op_TagResource.go index ea317a24298..1a1dc671424 100644 --- a/service/sns/api_op_TagResource.go +++ b/service/sns/api_op_TagResource.go @@ -57,7 +57,7 @@ type TagResourceInput struct { // and an optional value. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/sns/api_op_UntagResource.go b/service/sns/api_op_UntagResource.go index 61adb998c7f..4d53e2e92f9 100644 --- a/service/sns/api_op_UntagResource.go +++ b/service/sns/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // The list of tag keys to remove from the specified topic. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/sns/deserializers.go b/service/sns/deserializers.go index f31cc557e5c..4d74e4506cc 100644 --- a/service/sns/deserializers.go +++ b/service/sns/deserializers.go @@ -4364,7 +4364,7 @@ func awsAwsquery_deserializeDocumentAuthorizationErrorException(v **types.Author } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4412,7 +4412,7 @@ func awsAwsquery_deserializeDocumentConcurrentAccessException(v **types.Concurre } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4466,7 +4466,7 @@ func awsAwsquery_deserializeDocumentEndpoint(v **types.Endpoint, decoder smithyx } if val != nil { xtv := string(val) - sv.EndpointArn = &xtv + sv.EndpointArn = ptr.String(xtv) } default: @@ -4514,7 +4514,7 @@ func awsAwsquery_deserializeDocumentEndpointDisabledException(v **types.Endpoint } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4562,7 +4562,7 @@ func awsAwsquery_deserializeDocumentFilterPolicyLimitExceededException(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4610,7 +4610,7 @@ func awsAwsquery_deserializeDocumentInternalErrorException(v **types.InternalErr } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4658,7 +4658,7 @@ func awsAwsquery_deserializeDocumentInvalidParameterException(v **types.InvalidP } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4706,7 +4706,7 @@ func awsAwsquery_deserializeDocumentInvalidParameterValueException(v **types.Inv } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4754,7 +4754,7 @@ func awsAwsquery_deserializeDocumentInvalidSecurityException(v **types.InvalidSe } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4802,7 +4802,7 @@ func awsAwsquery_deserializeDocumentKMSAccessDeniedException(v **types.KMSAccess } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4850,7 +4850,7 @@ func awsAwsquery_deserializeDocumentKMSDisabledException(v **types.KMSDisabledEx } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4898,7 +4898,7 @@ func awsAwsquery_deserializeDocumentKMSInvalidStateException(v **types.KMSInvali } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4946,7 +4946,7 @@ func awsAwsquery_deserializeDocumentKMSNotFoundException(v **types.KMSNotFoundEx } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -4994,7 +4994,7 @@ func awsAwsquery_deserializeDocumentKMSOptInRequired(v **types.KMSOptInRequired, } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5042,7 +5042,7 @@ func awsAwsquery_deserializeDocumentKMSThrottlingException(v **types.KMSThrottli } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5055,13 +5055,13 @@ func awsAwsquery_deserializeDocumentKMSThrottlingException(v **types.KMSThrottli return nil } -func awsAwsquery_deserializeDocumentListOfEndpoints(v *[]*types.Endpoint, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentListOfEndpoints(v *[]types.Endpoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Endpoint + var sv []types.Endpoint if *v == nil { - sv = make([]*types.Endpoint, 0) + sv = make([]types.Endpoint, 0) } else { sv = *v } @@ -5077,11 +5077,13 @@ func awsAwsquery_deserializeDocumentListOfEndpoints(v *[]*types.Endpoint, decode } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Endpoint + var col types.Endpoint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEndpoint(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentEndpoint(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5094,35 +5096,37 @@ func awsAwsquery_deserializeDocumentListOfEndpoints(v *[]*types.Endpoint, decode return nil } -func awsAwsquery_deserializeDocumentListOfEndpointsUnwrapped(v *[]*types.Endpoint, decoder smithyxml.NodeDecoder) error { - var sv []*types.Endpoint +func awsAwsquery_deserializeDocumentListOfEndpointsUnwrapped(v *[]types.Endpoint, decoder smithyxml.NodeDecoder) error { + var sv []types.Endpoint if *v == nil { - sv = make([]*types.Endpoint, 0) + sv = make([]types.Endpoint, 0) } else { sv = *v } switch { default: - var mv *types.Endpoint + var mv types.Endpoint t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentEndpoint(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentEndpoint(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentListOfPlatformApplications(v *[]*types.PlatformApplication, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentListOfPlatformApplications(v *[]types.PlatformApplication, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.PlatformApplication + var sv []types.PlatformApplication if *v == nil { - sv = make([]*types.PlatformApplication, 0) + sv = make([]types.PlatformApplication, 0) } else { sv = *v } @@ -5138,11 +5142,13 @@ func awsAwsquery_deserializeDocumentListOfPlatformApplications(v *[]*types.Platf } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.PlatformApplication + var col types.PlatformApplication nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPlatformApplication(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentPlatformApplication(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5155,35 +5161,37 @@ func awsAwsquery_deserializeDocumentListOfPlatformApplications(v *[]*types.Platf return nil } -func awsAwsquery_deserializeDocumentListOfPlatformApplicationsUnwrapped(v *[]*types.PlatformApplication, decoder smithyxml.NodeDecoder) error { - var sv []*types.PlatformApplication +func awsAwsquery_deserializeDocumentListOfPlatformApplicationsUnwrapped(v *[]types.PlatformApplication, decoder smithyxml.NodeDecoder) error { + var sv []types.PlatformApplication if *v == nil { - sv = make([]*types.PlatformApplication, 0) + sv = make([]types.PlatformApplication, 0) } else { sv = *v } switch { default: - var mv *types.PlatformApplication + var mv types.PlatformApplication t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPlatformApplication(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPlatformApplication(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentMapStringToString(v *map[string]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMapStringToString(v *map[string]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*string + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } @@ -5207,23 +5215,23 @@ func awsAwsquery_deserializeDocumentMapStringToString(v *map[string]*string, dec return nil } -func awsAwsquery_deserializeDocumentMapStringToStringUnwrapped(v *map[string]*string, decoder smithyxml.NodeDecoder) error { - var sv map[string]*string +func awsAwsquery_deserializeDocumentMapStringToStringUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } - var ek *string - var ev *string + var ek string + var ev string for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -5233,14 +5241,11 @@ func awsAwsquery_deserializeDocumentMapStringToStringUnwrapped(v *map[string]*st return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): @@ -5249,14 +5254,11 @@ func awsAwsquery_deserializeDocumentMapStringToStringUnwrapped(v *map[string]*st return err } if done { - if val == nil { - ev = ptr.String("") - } break } if val != nil { xtv := string(val) - ev = &xtv + ev = xtv } default: @@ -5302,7 +5304,7 @@ func awsAwsquery_deserializeDocumentNotFoundException(v **types.NotFoundExceptio } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5315,13 +5317,13 @@ func awsAwsquery_deserializeDocumentNotFoundException(v **types.NotFoundExceptio return nil } -func awsAwsquery_deserializeDocumentPhoneNumberList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentPhoneNumberList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -5339,20 +5341,17 @@ func awsAwsquery_deserializeDocumentPhoneNumberList(v *[]*string, decoder smithy decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -5365,17 +5364,17 @@ func awsAwsquery_deserializeDocumentPhoneNumberList(v *[]*string, decoder smithy return nil } -func awsAwsquery_deserializeDocumentPhoneNumberListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentPhoneNumberListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -5383,14 +5382,11 @@ func awsAwsquery_deserializeDocumentPhoneNumberListUnwrapped(v *[]*string, decod return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -5438,7 +5434,7 @@ func awsAwsquery_deserializeDocumentPlatformApplication(v **types.PlatformApplic } if val != nil { xtv := string(val) - sv.PlatformApplicationArn = &xtv + sv.PlatformApplicationArn = ptr.String(xtv) } default: @@ -5486,7 +5482,7 @@ func awsAwsquery_deserializeDocumentPlatformApplicationDisabledException(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5534,7 +5530,7 @@ func awsAwsquery_deserializeDocumentResourceNotFoundException(v **types.Resource } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5582,7 +5578,7 @@ func awsAwsquery_deserializeDocumentStaleTagException(v **types.StaleTagExceptio } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5630,7 +5626,7 @@ func awsAwsquery_deserializeDocumentSubscription(v **types.Subscription, decoder } if val != nil { xtv := string(val) - sv.Endpoint = &xtv + sv.Endpoint = ptr.String(xtv) } case strings.EqualFold("Owner", t.Name.Local): @@ -5646,7 +5642,7 @@ func awsAwsquery_deserializeDocumentSubscription(v **types.Subscription, decoder } if val != nil { xtv := string(val) - sv.Owner = &xtv + sv.Owner = ptr.String(xtv) } case strings.EqualFold("Protocol", t.Name.Local): @@ -5662,7 +5658,7 @@ func awsAwsquery_deserializeDocumentSubscription(v **types.Subscription, decoder } if val != nil { xtv := string(val) - sv.Protocol = &xtv + sv.Protocol = ptr.String(xtv) } case strings.EqualFold("SubscriptionArn", t.Name.Local): @@ -5678,7 +5674,7 @@ func awsAwsquery_deserializeDocumentSubscription(v **types.Subscription, decoder } if val != nil { xtv := string(val) - sv.SubscriptionArn = &xtv + sv.SubscriptionArn = ptr.String(xtv) } case strings.EqualFold("TopicArn", t.Name.Local): @@ -5694,7 +5690,7 @@ func awsAwsquery_deserializeDocumentSubscription(v **types.Subscription, decoder } if val != nil { xtv := string(val) - sv.TopicArn = &xtv + sv.TopicArn = ptr.String(xtv) } default: @@ -5707,13 +5703,13 @@ func awsAwsquery_deserializeDocumentSubscription(v **types.Subscription, decoder return nil } -func awsAwsquery_deserializeDocumentSubscriptionAttributesMap(v *map[string]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSubscriptionAttributesMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*string + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } @@ -5737,23 +5733,23 @@ func awsAwsquery_deserializeDocumentSubscriptionAttributesMap(v *map[string]*str return nil } -func awsAwsquery_deserializeDocumentSubscriptionAttributesMapUnwrapped(v *map[string]*string, decoder smithyxml.NodeDecoder) error { - var sv map[string]*string +func awsAwsquery_deserializeDocumentSubscriptionAttributesMapUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } - var ek *string - var ev *string + var ek string + var ev string for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -5763,14 +5759,11 @@ func awsAwsquery_deserializeDocumentSubscriptionAttributesMapUnwrapped(v *map[st return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): @@ -5779,14 +5772,11 @@ func awsAwsquery_deserializeDocumentSubscriptionAttributesMapUnwrapped(v *map[st return err } if done { - if val == nil { - ev = ptr.String("") - } break } if val != nil { xtv := string(val) - ev = &xtv + ev = xtv } default: @@ -5832,7 +5822,7 @@ func awsAwsquery_deserializeDocumentSubscriptionLimitExceededException(v **types } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -5845,13 +5835,13 @@ func awsAwsquery_deserializeDocumentSubscriptionLimitExceededException(v **types return nil } -func awsAwsquery_deserializeDocumentSubscriptionsList(v *[]*types.Subscription, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSubscriptionsList(v *[]types.Subscription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Subscription + var sv []types.Subscription if *v == nil { - sv = make([]*types.Subscription, 0) + sv = make([]types.Subscription, 0) } else { sv = *v } @@ -5867,11 +5857,13 @@ func awsAwsquery_deserializeDocumentSubscriptionsList(v *[]*types.Subscription, } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Subscription + var col types.Subscription nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubscription(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSubscription(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -5884,23 +5876,25 @@ func awsAwsquery_deserializeDocumentSubscriptionsList(v *[]*types.Subscription, return nil } -func awsAwsquery_deserializeDocumentSubscriptionsListUnwrapped(v *[]*types.Subscription, decoder smithyxml.NodeDecoder) error { - var sv []*types.Subscription +func awsAwsquery_deserializeDocumentSubscriptionsListUnwrapped(v *[]types.Subscription, decoder smithyxml.NodeDecoder) error { + var sv []types.Subscription if *v == nil { - sv = make([]*types.Subscription, 0) + sv = make([]types.Subscription, 0) } else { sv = *v } switch { default: - var mv *types.Subscription + var mv types.Subscription t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSubscription(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentSubscription(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -5941,7 +5935,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Key = &xtv + sv.Key = ptr.String(xtv) } case strings.EqualFold("Value", t.Name.Local): @@ -5957,7 +5951,7 @@ func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDec } if val != nil { xtv := string(val) - sv.Value = &xtv + sv.Value = ptr.String(xtv) } default: @@ -6005,7 +5999,7 @@ func awsAwsquery_deserializeDocumentTagLimitExceededException(v **types.TagLimit } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6018,13 +6012,13 @@ func awsAwsquery_deserializeDocumentTagLimitExceededException(v **types.TagLimit return nil } -func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Tag + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } @@ -6040,11 +6034,13 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Tag + var col types.Tag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6057,23 +6053,25 @@ func awsAwsquery_deserializeDocumentTagList(v *[]*types.Tag, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]*types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []*types.Tag +func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { + var sv []types.Tag if *v == nil { - sv = make([]*types.Tag, 0) + sv = make([]types.Tag, 0) } else { sv = *v } switch { default: - var mv *types.Tag + var mv types.Tag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTag(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6114,7 +6112,7 @@ func awsAwsquery_deserializeDocumentTagPolicyException(v **types.TagPolicyExcept } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6162,7 +6160,7 @@ func awsAwsquery_deserializeDocumentThrottledException(v **types.ThrottledExcept } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6210,7 +6208,7 @@ func awsAwsquery_deserializeDocumentTopic(v **types.Topic, decoder smithyxml.Nod } if val != nil { xtv := string(val) - sv.TopicArn = &xtv + sv.TopicArn = ptr.String(xtv) } default: @@ -6223,13 +6221,13 @@ func awsAwsquery_deserializeDocumentTopic(v **types.Topic, decoder smithyxml.Nod return nil } -func awsAwsquery_deserializeDocumentTopicAttributesMap(v *map[string]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTopicAttributesMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*string + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } @@ -6253,23 +6251,23 @@ func awsAwsquery_deserializeDocumentTopicAttributesMap(v *map[string]*string, de return nil } -func awsAwsquery_deserializeDocumentTopicAttributesMapUnwrapped(v *map[string]*string, decoder smithyxml.NodeDecoder) error { - var sv map[string]*string +func awsAwsquery_deserializeDocumentTopicAttributesMapUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } - var ek *string - var ev *string + var ek string + var ev string for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -6279,14 +6277,11 @@ func awsAwsquery_deserializeDocumentTopicAttributesMapUnwrapped(v *map[string]*s return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("value", t.Name.Local): @@ -6295,14 +6290,11 @@ func awsAwsquery_deserializeDocumentTopicAttributesMapUnwrapped(v *map[string]*s return err } if done { - if val == nil { - ev = ptr.String("") - } break } if val != nil { xtv := string(val) - ev = &xtv + ev = xtv } default: @@ -6348,7 +6340,7 @@ func awsAwsquery_deserializeDocumentTopicLimitExceededException(v **types.TopicL } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -6361,13 +6353,13 @@ func awsAwsquery_deserializeDocumentTopicLimitExceededException(v **types.TopicL return nil } -func awsAwsquery_deserializeDocumentTopicsList(v *[]*types.Topic, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTopicsList(v *[]types.Topic, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Topic + var sv []types.Topic if *v == nil { - sv = make([]*types.Topic, 0) + sv = make([]types.Topic, 0) } else { sv = *v } @@ -6383,11 +6375,13 @@ func awsAwsquery_deserializeDocumentTopicsList(v *[]*types.Topic, decoder smithy } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Topic + var col types.Topic nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTopic(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentTopic(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -6400,23 +6394,25 @@ func awsAwsquery_deserializeDocumentTopicsList(v *[]*types.Topic, decoder smithy return nil } -func awsAwsquery_deserializeDocumentTopicsListUnwrapped(v *[]*types.Topic, decoder smithyxml.NodeDecoder) error { - var sv []*types.Topic +func awsAwsquery_deserializeDocumentTopicsListUnwrapped(v *[]types.Topic, decoder smithyxml.NodeDecoder) error { + var sv []types.Topic if *v == nil { - sv = make([]*types.Topic, 0) + sv = make([]types.Topic, 0) } else { sv = *v } switch { default: - var mv *types.Topic + var mv types.Topic t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTopic(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTopic(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -6489,7 +6485,7 @@ func awsAwsquery_deserializeOpDocumentCheckIfPhoneNumberIsOptedOutOutput(v **Che if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.IsOptedOut = &xtv + sv.IsOptedOut = xtv } default: @@ -6537,7 +6533,7 @@ func awsAwsquery_deserializeOpDocumentConfirmSubscriptionOutput(v **ConfirmSubsc } if val != nil { xtv := string(val) - sv.SubscriptionArn = &xtv + sv.SubscriptionArn = ptr.String(xtv) } default: @@ -6585,7 +6581,7 @@ func awsAwsquery_deserializeOpDocumentCreatePlatformApplicationOutput(v **Create } if val != nil { xtv := string(val) - sv.PlatformApplicationArn = &xtv + sv.PlatformApplicationArn = ptr.String(xtv) } default: @@ -6633,7 +6629,7 @@ func awsAwsquery_deserializeOpDocumentCreatePlatformEndpointOutput(v **CreatePla } if val != nil { xtv := string(val) - sv.EndpointArn = &xtv + sv.EndpointArn = ptr.String(xtv) } default: @@ -6681,7 +6677,7 @@ func awsAwsquery_deserializeOpDocumentCreateTopicOutput(v **CreateTopicOutput, d } if val != nil { xtv := string(val) - sv.TopicArn = &xtv + sv.TopicArn = ptr.String(xtv) } default: @@ -7021,7 +7017,7 @@ func awsAwsquery_deserializeOpDocumentListEndpointsByPlatformApplicationOutput(v } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } default: @@ -7069,7 +7065,7 @@ func awsAwsquery_deserializeOpDocumentListPhoneNumbersOptedOutOutput(v **ListPho } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("phoneNumbers", t.Name.Local): @@ -7123,7 +7119,7 @@ func awsAwsquery_deserializeOpDocumentListPlatformApplicationsOutput(v **ListPla } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("PlatformApplications", t.Name.Local): @@ -7177,7 +7173,7 @@ func awsAwsquery_deserializeOpDocumentListSubscriptionsByTopicOutput(v **ListSub } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("Subscriptions", t.Name.Local): @@ -7231,7 +7227,7 @@ func awsAwsquery_deserializeOpDocumentListSubscriptionsOutput(v **ListSubscripti } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("Subscriptions", t.Name.Local): @@ -7323,7 +7319,7 @@ func awsAwsquery_deserializeOpDocumentListTopicsOutput(v **ListTopicsOutput, dec } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("Topics", t.Name.Local): @@ -7409,7 +7405,7 @@ func awsAwsquery_deserializeOpDocumentPublishOutput(v **PublishOutput, decoder s } if val != nil { xtv := string(val) - sv.MessageId = &xtv + sv.MessageId = ptr.String(xtv) } case strings.EqualFold("SequenceNumber", t.Name.Local): @@ -7425,7 +7421,7 @@ func awsAwsquery_deserializeOpDocumentPublishOutput(v **PublishOutput, decoder s } if val != nil { xtv := string(val) - sv.SequenceNumber = &xtv + sv.SequenceNumber = ptr.String(xtv) } default: @@ -7665,7 +7661,7 @@ func awsAwsquery_deserializeOpDocumentSubscribeOutput(v **SubscribeOutput, decod } if val != nil { xtv := string(val) - sv.SubscriptionArn = &xtv + sv.SubscriptionArn = ptr.String(xtv) } default: diff --git a/service/sns/go.mod b/service/sns/go.mod index fb08ace2200..0c337db7e96 100644 --- a/service/sns/go.mod +++ b/service/sns/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/sns go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/sns/serializers.go b/service/sns/serializers.go index 04ce9239c90..de23d38d376 100644 --- a/service/sns/serializers.go +++ b/service/sns/serializers.go @@ -1829,55 +1829,46 @@ func (m *awsAwsquery_serializeOpUntagResource) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentActionsList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentActionsList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentDelegatesList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentDelegatesList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentListString(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentListString(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentMapStringToString(v map[string]*string, value query.Value) error { +func awsAwsquery_serializeDocumentMapStringToString(v map[string]string, value query.Value) error { if len(v) == 0 { return nil } @@ -1890,16 +1881,13 @@ func awsAwsquery_serializeDocumentMapStringToString(v map[string]*string, value sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsquery_serializeDocumentMessageAttributeMap(v map[string]*types.MessageAttributeValue, value query.Value) error { +func awsAwsquery_serializeDocumentMessageAttributeMap(v map[string]types.MessageAttributeValue, value query.Value) error { if len(v) == 0 { return nil } @@ -1912,11 +1900,9 @@ func awsAwsquery_serializeDocumentMessageAttributeMap(v map[string]*types.Messag sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - if err := awsAwsquery_serializeDocumentMessageAttributeValue(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsquery_serializeDocumentMessageAttributeValue(&mapVar, om); err != nil { return err } } @@ -1945,7 +1931,7 @@ func awsAwsquery_serializeDocumentMessageAttributeValue(v *types.MessageAttribut return nil } -func awsAwsquery_serializeDocumentSubscriptionAttributesMap(v map[string]*string, value query.Value) error { +func awsAwsquery_serializeDocumentSubscriptionAttributesMap(v map[string]string, value query.Value) error { if len(v) == 0 { return nil } @@ -1958,11 +1944,8 @@ func awsAwsquery_serializeDocumentSubscriptionAttributesMap(v map[string]*string sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1984,41 +1967,35 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTagKeyList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentTagKeyList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentTagList(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTagList(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentTopicAttributesMap(v map[string]*string, value query.Value) error { +func awsAwsquery_serializeDocumentTopicAttributesMap(v map[string]string, value query.Value) error { if len(v) == 0 { return nil } @@ -2031,11 +2008,8 @@ func awsAwsquery_serializeDocumentTopicAttributesMap(v map[string]*string, value sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -2576,9 +2550,9 @@ func awsAwsquery_serializeOpDocumentSubscribeInput(v *SubscribeInput, value quer objectKey.String(*v.Protocol) } - if v.ReturnSubscriptionArn != nil { + if v.ReturnSubscriptionArn { objectKey := object.Key("ReturnSubscriptionArn") - objectKey.Boolean(*v.ReturnSubscriptionArn) + objectKey.Boolean(v.ReturnSubscriptionArn) } if v.TopicArn != nil { diff --git a/service/sns/types/types.go b/service/sns/types/types.go index db294b96b72..b37c2c67f05 100644 --- a/service/sns/types/types.go +++ b/service/sns/types/types.go @@ -6,7 +6,7 @@ package types type Endpoint struct { // Attributes for endpoint. - Attributes map[string]*string + Attributes map[string]string // EndpointArn for mobile app and device. EndpointArn *string @@ -47,7 +47,7 @@ type MessageAttributeValue struct { type PlatformApplication struct { // Attributes for platform application object. - Attributes map[string]*string + Attributes map[string]string // PlatformApplicationArn for platform application object. PlatformApplicationArn *string diff --git a/service/sns/validators.go b/service/sns/validators.go index f2bb707f24d..acc17085a4a 100644 --- a/service/sns/validators.go +++ b/service/sns/validators.go @@ -682,13 +682,14 @@ func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) } -func validateMessageAttributeMap(v map[string]*types.MessageAttributeValue) error { +func validateMessageAttributeMap(v map[string]types.MessageAttributeValue) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MessageAttributeMap"} for key := range v { - if err := validateMessageAttributeValue(v[key]); err != nil { + value := v[key] + if err := validateMessageAttributeValue(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -732,13 +733,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/sqs/api_op_AddPermission.go b/service/sqs/api_op_AddPermission.go index de559460a1e..f9b145f47c3 100644 --- a/service/sqs/api_op_AddPermission.go +++ b/service/sqs/api_op_AddPermission.go @@ -68,7 +68,7 @@ type AddPermissionInput struct { // in the Amazon Simple Queue Service Developer Guide. // // This member is required. - AWSAccountIds []*string + AWSAccountIds []string // The action the client wants to allow for the specified principal. Valid values: // the name of any action or *. For more information about these actions, see @@ -81,7 +81,7 @@ type AddPermissionInput struct { // SendMessageBatch, DeleteMessageBatch, and ChangeMessageVisibilityBatch. // // This member is required. - Actions []*string + Actions []string // The unique identification of the permission you're setting (for example, // AliceSendMessage). Maximum 80 characters. Allowed characters include diff --git a/service/sqs/api_op_ChangeMessageVisibility.go b/service/sqs/api_op_ChangeMessageVisibility.go index d09562aa85e..97a27bf588a 100644 --- a/service/sqs/api_op_ChangeMessageVisibility.go +++ b/service/sqs/api_op_ChangeMessageVisibility.go @@ -88,7 +88,7 @@ type ChangeMessageVisibilityInput struct { // to 43200. Maximum: 12 hours. // // This member is required. - VisibilityTimeout *int32 + VisibilityTimeout int32 } type ChangeMessageVisibilityOutput struct { diff --git a/service/sqs/api_op_ChangeMessageVisibilityBatch.go b/service/sqs/api_op_ChangeMessageVisibilityBatch.go index f4da62768ac..8f4a104e4b6 100644 --- a/service/sqs/api_op_ChangeMessageVisibilityBatch.go +++ b/service/sqs/api_op_ChangeMessageVisibilityBatch.go @@ -44,7 +44,7 @@ type ChangeMessageVisibilityBatchInput struct { // be changed. // // This member is required. - Entries []*types.ChangeMessageVisibilityBatchRequestEntry + Entries []types.ChangeMessageVisibilityBatchRequestEntry // The URL of the Amazon SQS queue whose messages' visibility is changed. Queue // URLs and names are case-sensitive. @@ -61,12 +61,12 @@ type ChangeMessageVisibilityBatchOutput struct { // A list of BatchResultErrorEntry items. // // This member is required. - Failed []*types.BatchResultErrorEntry + Failed []types.BatchResultErrorEntry // A list of ChangeMessageVisibilityBatchResultEntry items. // // This member is required. - Successful []*types.ChangeMessageVisibilityBatchResultEntry + Successful []types.ChangeMessageVisibilityBatchResultEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sqs/api_op_CreateQueue.go b/service/sqs/api_op_CreateQueue.go index 605be7a37bf..edb9609f367 100644 --- a/service/sqs/api_op_CreateQueue.go +++ b/service/sqs/api_op_CreateQueue.go @@ -213,7 +213,7 @@ type CreateQueueInput struct { // 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. - Attributes map[string]*string + Attributes map[string]string // Add cost allocation tags to the specified Amazon SQS queue. For an overview, see // Tagging Your Amazon SQS Queues @@ -241,7 +241,7 @@ type CreateQueueInput struct { // 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 Simple Queue Service Developer Guide. - Tags map[string]*string + Tags map[string]string } // Returns the QueueUrl attribute of the created queue. diff --git a/service/sqs/api_op_DeleteMessageBatch.go b/service/sqs/api_op_DeleteMessageBatch.go index e03c775f54f..c9120d07fcc 100644 --- a/service/sqs/api_op_DeleteMessageBatch.go +++ b/service/sqs/api_op_DeleteMessageBatch.go @@ -41,7 +41,7 @@ type DeleteMessageBatchInput struct { // A list of receipt handles for the messages to be deleted. // // This member is required. - Entries []*types.DeleteMessageBatchRequestEntry + Entries []types.DeleteMessageBatchRequestEntry // The URL of the Amazon SQS queue from which messages are deleted. Queue URLs and // names are case-sensitive. @@ -58,12 +58,12 @@ type DeleteMessageBatchOutput struct { // A list of BatchResultErrorEntry items. // // This member is required. - Failed []*types.BatchResultErrorEntry + Failed []types.BatchResultErrorEntry // A list of DeleteMessageBatchResultEntry items. // // This member is required. - Successful []*types.DeleteMessageBatchResultEntry + Successful []types.DeleteMessageBatchResultEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sqs/api_op_GetQueueAttributes.go b/service/sqs/api_op_GetQueueAttributes.go index 181a9e5c24e..757c607f369 100644 --- a/service/sqs/api_op_GetQueueAttributes.go +++ b/service/sqs/api_op_GetQueueAttributes.go @@ -155,7 +155,7 @@ type GetQueueAttributesInput struct { type GetQueueAttributesOutput struct { // A map of attributes to their respective values. - Attributes map[string]*string + Attributes map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sqs/api_op_ListDeadLetterSourceQueues.go b/service/sqs/api_op_ListDeadLetterSourceQueues.go index b1218dc9c99..7580fe87148 100644 --- a/service/sqs/api_op_ListDeadLetterSourceQueues.go +++ b/service/sqs/api_op_ListDeadLetterSourceQueues.go @@ -60,7 +60,7 @@ type ListDeadLetterSourceQueuesOutput struct { // configured with a dead-letter queue. // // This member is required. - QueueUrls []*string + QueueUrls []string // Pagination token to include in the next request. Token value is null if there // are no additional results to request, or if you did not set MaxResults in the diff --git a/service/sqs/api_op_ListQueueTags.go b/service/sqs/api_op_ListQueueTags.go index cc106bd7e37..21543a441d3 100644 --- a/service/sqs/api_op_ListQueueTags.go +++ b/service/sqs/api_op_ListQueueTags.go @@ -44,7 +44,7 @@ type ListQueueTagsInput struct { type ListQueueTagsOutput struct { // The list of all tags added to the specified queue. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sqs/api_op_ListQueues.go b/service/sqs/api_op_ListQueues.go index f92b6e4dfa1..e6ac6a8022b 100644 --- a/service/sqs/api_op_ListQueues.go +++ b/service/sqs/api_op_ListQueues.go @@ -64,7 +64,7 @@ type ListQueuesOutput struct { // A list of queue URLs, up to 1,000 entries, or the value of MaxResults that you // sent in the request. - QueueUrls []*string + QueueUrls []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sqs/api_op_ReceiveMessage.go b/service/sqs/api_op_ReceiveMessage.go index de99438c643..6ad5a1e3070 100644 --- a/service/sqs/api_op_ReceiveMessage.go +++ b/service/sqs/api_op_ReceiveMessage.go @@ -124,7 +124,7 @@ type ReceiveMessageInput struct { // The maximum number of messages to return. Amazon SQS never returns more messages // than this value (however, fewer messages might be returned). Valid values: 1 to // 10. Default: 1. - MaxNumberOfMessages *int32 + MaxNumberOfMessages int32 // The name of the message attribute, where N is the index. // @@ -148,7 +148,7 @@ type ReceiveMessageInput struct { // 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.. - MessageAttributeNames []*string + MessageAttributeNames []string // This parameter applies only to FIFO (first-in-first-out) queues. The token used // for deduplication of ReceiveMessage calls. If a networking issue occurs after a @@ -208,7 +208,7 @@ type ReceiveMessageInput struct { // The duration (in seconds) that the received messages are hidden from subsequent // retrieve requests after being retrieved by a ReceiveMessage request. - VisibilityTimeout *int32 + VisibilityTimeout int32 // The duration (in seconds) for which the call waits for a message to arrive in // the queue before returning. If a message is available, the call returns sooner @@ -221,14 +221,14 @@ type ReceiveMessageInput struct { // for asynchronous clients, or the ApacheHttpClient // (https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.html) // for synchronous clients. - WaitTimeSeconds *int32 + WaitTimeSeconds int32 } // A list of received messages. type ReceiveMessageOutput struct { // A list of messages. - Messages []*types.Message + Messages []types.Message // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sqs/api_op_SendMessage.go b/service/sqs/api_op_SendMessage.go index 6bf3a660eb6..f1b343b659c 100644 --- a/service/sqs/api_op_SendMessage.go +++ b/service/sqs/api_op_SendMessage.go @@ -56,13 +56,13 @@ type SendMessageInput struct { // don't specify a value, the default value for the queue applies. When you set // FifoQueue, you can't set DelaySeconds per message. You can set this parameter // only on a queue level. - DelaySeconds *int32 + DelaySeconds int32 // Each message attribute consists of a Name, Type, and Value. For more // information, see Amazon SQS Message Attributes // (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) // in the Amazon Simple Queue Service Developer Guide. - MessageAttributes map[string]*types.MessageAttributeValue + MessageAttributes map[string]types.MessageAttributeValue // This parameter applies only to FIFO (first-in-first-out) queues. The token used // for deduplication of sent messages. If a message with a particular @@ -151,7 +151,7 @@ type SendMessageInput struct { // // * The size of a message // system attribute doesn't count towards the total size of a message. - MessageSystemAttributes map[string]*types.MessageSystemAttributeValue + MessageSystemAttributes map[string]types.MessageSystemAttributeValue } // The MD5OfMessageBody and MessageId elements. diff --git a/service/sqs/api_op_SendMessageBatch.go b/service/sqs/api_op_SendMessageBatch.go index f2c8804de7b..f9bb31a995e 100644 --- a/service/sqs/api_op_SendMessageBatch.go +++ b/service/sqs/api_op_SendMessageBatch.go @@ -51,7 +51,7 @@ type SendMessageBatchInput struct { // A list of SendMessageBatchRequestEntry items. // // This member is required. - Entries []*types.SendMessageBatchRequestEntry + Entries []types.SendMessageBatchRequestEntry // The URL of the Amazon SQS queue to which batched messages are sent. Queue URLs // and names are case-sensitive. @@ -69,12 +69,12 @@ type SendMessageBatchOutput struct { // can't be enqueued. // // This member is required. - Failed []*types.BatchResultErrorEntry + Failed []types.BatchResultErrorEntry // A list of SendMessageBatchResultEntry items. // // This member is required. - Successful []*types.SendMessageBatchResultEntry + Successful []types.SendMessageBatchResultEntry // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sqs/api_op_SetQueueAttributes.go b/service/sqs/api_op_SetQueueAttributes.go index 259262e1e58..231c3c18806 100644 --- a/service/sqs/api_op_SetQueueAttributes.go +++ b/service/sqs/api_op_SetQueueAttributes.go @@ -164,7 +164,7 @@ type SetQueueAttributesInput struct { // copy of the message is delivered. // // This member is required. - Attributes map[string]*string + Attributes map[string]string // The URL of the Amazon SQS queue whose attributes are set. Queue URLs and names // are case-sensitive. diff --git a/service/sqs/api_op_TagQueue.go b/service/sqs/api_op_TagQueue.go index ae5f9f1e6db..cf3b46236be 100644 --- a/service/sqs/api_op_TagQueue.go +++ b/service/sqs/api_op_TagQueue.go @@ -60,7 +60,7 @@ type TagQueueInput struct { // The list of tags to be added to the specified queue. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagQueueOutput struct { diff --git a/service/sqs/api_op_UntagQueue.go b/service/sqs/api_op_UntagQueue.go index 6b70f56bca3..566df299137 100644 --- a/service/sqs/api_op_UntagQueue.go +++ b/service/sqs/api_op_UntagQueue.go @@ -43,7 +43,7 @@ type UntagQueueInput struct { // The list of tags to be removed from the specified queue. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagQueueOutput struct { diff --git a/service/sqs/deserializers.go b/service/sqs/deserializers.go index 3ff2402167d..94032399d33 100644 --- a/service/sqs/deserializers.go +++ b/service/sqs/deserializers.go @@ -2151,7 +2151,7 @@ func awsAwsquery_deserializeDocumentBatchResultErrorEntry(v **types.BatchResultE } if val != nil { xtv := string(val) - sv.Code = &xtv + sv.Code = ptr.String(xtv) } case strings.EqualFold("Id", t.Name.Local): @@ -2167,7 +2167,7 @@ func awsAwsquery_deserializeDocumentBatchResultErrorEntry(v **types.BatchResultE } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("Message", t.Name.Local): @@ -2183,7 +2183,7 @@ func awsAwsquery_deserializeDocumentBatchResultErrorEntry(v **types.BatchResultE } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } case strings.EqualFold("SenderFault", t.Name.Local): @@ -2199,7 +2199,7 @@ func awsAwsquery_deserializeDocumentBatchResultErrorEntry(v **types.BatchResultE if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SenderFault = &xtv + sv.SenderFault = xtv } default: @@ -2212,13 +2212,13 @@ func awsAwsquery_deserializeDocumentBatchResultErrorEntry(v **types.BatchResultE return nil } -func awsAwsquery_deserializeDocumentBatchResultErrorEntryList(v *[]*types.BatchResultErrorEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentBatchResultErrorEntryList(v *[]types.BatchResultErrorEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.BatchResultErrorEntry + var sv []types.BatchResultErrorEntry if *v == nil { - sv = make([]*types.BatchResultErrorEntry, 0) + sv = make([]types.BatchResultErrorEntry, 0) } else { sv = *v } @@ -2234,11 +2234,13 @@ func awsAwsquery_deserializeDocumentBatchResultErrorEntryList(v *[]*types.BatchR } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.BatchResultErrorEntry + var col types.BatchResultErrorEntry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentBatchResultErrorEntry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentBatchResultErrorEntry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -2251,23 +2253,25 @@ func awsAwsquery_deserializeDocumentBatchResultErrorEntryList(v *[]*types.BatchR return nil } -func awsAwsquery_deserializeDocumentBatchResultErrorEntryListUnwrapped(v *[]*types.BatchResultErrorEntry, decoder smithyxml.NodeDecoder) error { - var sv []*types.BatchResultErrorEntry +func awsAwsquery_deserializeDocumentBatchResultErrorEntryListUnwrapped(v *[]types.BatchResultErrorEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.BatchResultErrorEntry if *v == nil { - sv = make([]*types.BatchResultErrorEntry, 0) + sv = make([]types.BatchResultErrorEntry, 0) } else { sv = *v } switch { default: - var mv *types.BatchResultErrorEntry + var mv types.BatchResultErrorEntry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentBatchResultErrorEntry(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentBatchResultErrorEntry(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -2400,7 +2404,7 @@ func awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntry(v ** } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } default: @@ -2413,13 +2417,13 @@ func awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntry(v ** return nil } -func awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntryList(v *[]*types.ChangeMessageVisibilityBatchResultEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntryList(v *[]types.ChangeMessageVisibilityBatchResultEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.ChangeMessageVisibilityBatchResultEntry + var sv []types.ChangeMessageVisibilityBatchResultEntry if *v == nil { - sv = make([]*types.ChangeMessageVisibilityBatchResultEntry, 0) + sv = make([]types.ChangeMessageVisibilityBatchResultEntry, 0) } else { sv = *v } @@ -2435,11 +2439,13 @@ func awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntryList( } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.ChangeMessageVisibilityBatchResultEntry + var col types.ChangeMessageVisibilityBatchResultEntry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -2452,23 +2458,25 @@ func awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntryList( return nil } -func awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntryListUnwrapped(v *[]*types.ChangeMessageVisibilityBatchResultEntry, decoder smithyxml.NodeDecoder) error { - var sv []*types.ChangeMessageVisibilityBatchResultEntry +func awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntryListUnwrapped(v *[]types.ChangeMessageVisibilityBatchResultEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.ChangeMessageVisibilityBatchResultEntry if *v == nil { - sv = make([]*types.ChangeMessageVisibilityBatchResultEntry, 0) + sv = make([]types.ChangeMessageVisibilityBatchResultEntry, 0) } else { sv = *v } switch { default: - var mv *types.ChangeMessageVisibilityBatchResultEntry + var mv types.ChangeMessageVisibilityBatchResultEntry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntry(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntry(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -2509,7 +2517,7 @@ func awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntry(v **types.Dele } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } default: @@ -2522,13 +2530,13 @@ func awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntry(v **types.Dele return nil } -func awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntryList(v *[]*types.DeleteMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntryList(v *[]types.DeleteMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.DeleteMessageBatchResultEntry + var sv []types.DeleteMessageBatchResultEntry if *v == nil { - sv = make([]*types.DeleteMessageBatchResultEntry, 0) + sv = make([]types.DeleteMessageBatchResultEntry, 0) } else { sv = *v } @@ -2544,11 +2552,13 @@ func awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntryList(v *[]*type } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.DeleteMessageBatchResultEntry + var col types.DeleteMessageBatchResultEntry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -2561,23 +2571,25 @@ func awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntryList(v *[]*type return nil } -func awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntryListUnwrapped(v *[]*types.DeleteMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { - var sv []*types.DeleteMessageBatchResultEntry +func awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntryListUnwrapped(v *[]types.DeleteMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.DeleteMessageBatchResultEntry if *v == nil { - sv = make([]*types.DeleteMessageBatchResultEntry, 0) + sv = make([]types.DeleteMessageBatchResultEntry, 0) } else { sv = *v } switch { default: - var mv *types.DeleteMessageBatchResultEntry + var mv types.DeleteMessageBatchResultEntry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntry(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntry(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -2784,7 +2796,7 @@ func awsAwsquery_deserializeDocumentMessage(v **types.Message, decoder smithyxml } if val != nil { xtv := string(val) - sv.Body = &xtv + sv.Body = ptr.String(xtv) } case strings.EqualFold("MD5OfBody", t.Name.Local): @@ -2800,7 +2812,7 @@ func awsAwsquery_deserializeDocumentMessage(v **types.Message, decoder smithyxml } if val != nil { xtv := string(val) - sv.MD5OfBody = &xtv + sv.MD5OfBody = ptr.String(xtv) } case strings.EqualFold("MD5OfMessageAttributes", t.Name.Local): @@ -2816,7 +2828,7 @@ func awsAwsquery_deserializeDocumentMessage(v **types.Message, decoder smithyxml } if val != nil { xtv := string(val) - sv.MD5OfMessageAttributes = &xtv + sv.MD5OfMessageAttributes = ptr.String(xtv) } case strings.EqualFold("MessageAttribute", t.Name.Local): @@ -2838,7 +2850,7 @@ func awsAwsquery_deserializeDocumentMessage(v **types.Message, decoder smithyxml } if val != nil { xtv := string(val) - sv.MessageId = &xtv + sv.MessageId = ptr.String(xtv) } case strings.EqualFold("ReceiptHandle", t.Name.Local): @@ -2854,7 +2866,7 @@ func awsAwsquery_deserializeDocumentMessage(v **types.Message, decoder smithyxml } if val != nil { xtv := string(val) - sv.ReceiptHandle = &xtv + sv.ReceiptHandle = ptr.String(xtv) } default: @@ -2929,7 +2941,7 @@ func awsAwsquery_deserializeDocumentMessageAttributeValue(v **types.MessageAttri } if val != nil { xtv := string(val) - sv.DataType = &xtv + sv.DataType = ptr.String(xtv) } case strings.EqualFold("StringListValue", t.Name.Local): @@ -2951,7 +2963,7 @@ func awsAwsquery_deserializeDocumentMessageAttributeValue(v **types.MessageAttri } if val != nil { xtv := string(val) - sv.StringValue = &xtv + sv.StringValue = ptr.String(xtv) } default: @@ -2964,13 +2976,13 @@ func awsAwsquery_deserializeDocumentMessageAttributeValue(v **types.MessageAttri return nil } -func awsAwsquery_deserializeDocumentMessageBodyAttributeMap(v *map[string]*types.MessageAttributeValue, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMessageBodyAttributeMap(v *map[string]types.MessageAttributeValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*types.MessageAttributeValue + var sv map[string]types.MessageAttributeValue if *v == nil { - sv = make(map[string]*types.MessageAttributeValue, 0) + sv = make(map[string]types.MessageAttributeValue, 0) } else { sv = *v } @@ -2994,23 +3006,23 @@ func awsAwsquery_deserializeDocumentMessageBodyAttributeMap(v *map[string]*types return nil } -func awsAwsquery_deserializeDocumentMessageBodyAttributeMapUnwrapped(v *map[string]*types.MessageAttributeValue, decoder smithyxml.NodeDecoder) error { - var sv map[string]*types.MessageAttributeValue +func awsAwsquery_deserializeDocumentMessageBodyAttributeMapUnwrapped(v *map[string]types.MessageAttributeValue, decoder smithyxml.NodeDecoder) error { + var sv map[string]types.MessageAttributeValue if *v == nil { - sv = make(map[string]*types.MessageAttributeValue, 0) + sv = make(map[string]types.MessageAttributeValue, 0) } else { sv = *v } - var ek *string - var ev *types.MessageAttributeValue + var ek string + var ev types.MessageAttributeValue for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -3020,21 +3032,21 @@ func awsAwsquery_deserializeDocumentMessageBodyAttributeMapUnwrapped(v *map[stri return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("Value", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMessageAttributeValue(&ev, nodeDecoder); err != nil { + mapVar := ev + destAddr := &mapVar + if err := awsAwsquery_deserializeDocumentMessageAttributeValue(&destAddr, nodeDecoder); err != nil { return err } + ev = *destAddr default: // Do nothing and ignore the unexpected tag element @@ -3044,13 +3056,13 @@ func awsAwsquery_deserializeDocumentMessageBodyAttributeMapUnwrapped(v *map[stri *v = sv return nil } -func awsAwsquery_deserializeDocumentMessageList(v *[]*types.Message, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMessageList(v *[]types.Message, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.Message + var sv []types.Message if *v == nil { - sv = make([]*types.Message, 0) + sv = make([]types.Message, 0) } else { sv = *v } @@ -3066,11 +3078,13 @@ func awsAwsquery_deserializeDocumentMessageList(v *[]*types.Message, decoder smi } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.Message + var col types.Message nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMessage(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentMessage(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -3083,23 +3097,25 @@ func awsAwsquery_deserializeDocumentMessageList(v *[]*types.Message, decoder smi return nil } -func awsAwsquery_deserializeDocumentMessageListUnwrapped(v *[]*types.Message, decoder smithyxml.NodeDecoder) error { - var sv []*types.Message +func awsAwsquery_deserializeDocumentMessageListUnwrapped(v *[]types.Message, decoder smithyxml.NodeDecoder) error { + var sv []types.Message if *v == nil { - sv = make([]*types.Message, 0) + sv = make([]types.Message, 0) } else { sv = *v } switch { default: - var mv *types.Message + var mv types.Message t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMessage(&mv, nodeDecoder); err != nil { + destAddr := &mv + if err := awsAwsquery_deserializeDocumentMessage(&destAddr, nodeDecoder); err != nil { return err } + mv = *destAddr sv = append(sv, mv) } *v = sv @@ -3137,13 +3153,13 @@ func awsAwsquery_deserializeDocumentMessageNotInflight(v **types.MessageNotInfli return nil } -func awsAwsquery_deserializeDocumentMessageSystemAttributeMap(v *map[string]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentMessageSystemAttributeMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*string + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } @@ -3167,16 +3183,16 @@ func awsAwsquery_deserializeDocumentMessageSystemAttributeMap(v *map[string]*str return nil } -func awsAwsquery_deserializeDocumentMessageSystemAttributeMapUnwrapped(v *map[string]*string, decoder smithyxml.NodeDecoder) error { - var sv map[string]*string +func awsAwsquery_deserializeDocumentMessageSystemAttributeMapUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } var ek types.MessageSystemAttributeName - var ev *string + var ev string for { t, done, err := decoder.Token() if err != nil { @@ -3206,14 +3222,11 @@ func awsAwsquery_deserializeDocumentMessageSystemAttributeMapUnwrapped(v *map[st return err } if done { - if val == nil { - ev = ptr.String("") - } break } if val != nil { xtv := string(val) - ev = &xtv + ev = xtv } default: @@ -3288,13 +3301,13 @@ func awsAwsquery_deserializeDocumentPurgeQueueInProgress(v **types.PurgeQueueInP return nil } -func awsAwsquery_deserializeDocumentQueueAttributeMap(v *map[string]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentQueueAttributeMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*string + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } @@ -3318,16 +3331,16 @@ func awsAwsquery_deserializeDocumentQueueAttributeMap(v *map[string]*string, dec return nil } -func awsAwsquery_deserializeDocumentQueueAttributeMapUnwrapped(v *map[string]*string, decoder smithyxml.NodeDecoder) error { - var sv map[string]*string +func awsAwsquery_deserializeDocumentQueueAttributeMapUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } var ek types.QueueAttributeName - var ev *string + var ev string for { t, done, err := decoder.Token() if err != nil { @@ -3357,14 +3370,11 @@ func awsAwsquery_deserializeDocumentQueueAttributeMapUnwrapped(v *map[string]*st return err } if done { - if val == nil { - ev = ptr.String("") - } break } if val != nil { xtv := string(val) - ev = &xtv + ev = xtv } default: @@ -3471,13 +3481,13 @@ func awsAwsquery_deserializeDocumentQueueNameExists(v **types.QueueNameExists, d return nil } -func awsAwsquery_deserializeDocumentQueueUrlList(v *[]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentQueueUrlList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -3495,20 +3505,17 @@ func awsAwsquery_deserializeDocumentQueueUrlList(v *[]*string, decoder smithyxml decoder = memberDecoder for { if strings.EqualFold("member", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -3521,17 +3528,17 @@ func awsAwsquery_deserializeDocumentQueueUrlList(v *[]*string, decoder smithyxml return nil } -func awsAwsquery_deserializeDocumentQueueUrlListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentQueueUrlListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -3539,14 +3546,11 @@ func awsAwsquery_deserializeDocumentQueueUrlListUnwrapped(v *[]*string, decoder return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } @@ -3620,7 +3624,7 @@ func awsAwsquery_deserializeDocumentSendMessageBatchResultEntry(v **types.SendMe } if val != nil { xtv := string(val) - sv.Id = &xtv + sv.Id = ptr.String(xtv) } case strings.EqualFold("MD5OfMessageAttributes", t.Name.Local): @@ -3636,7 +3640,7 @@ func awsAwsquery_deserializeDocumentSendMessageBatchResultEntry(v **types.SendMe } if val != nil { xtv := string(val) - sv.MD5OfMessageAttributes = &xtv + sv.MD5OfMessageAttributes = ptr.String(xtv) } case strings.EqualFold("MD5OfMessageBody", t.Name.Local): @@ -3652,7 +3656,7 @@ func awsAwsquery_deserializeDocumentSendMessageBatchResultEntry(v **types.SendMe } if val != nil { xtv := string(val) - sv.MD5OfMessageBody = &xtv + sv.MD5OfMessageBody = ptr.String(xtv) } case strings.EqualFold("MD5OfMessageSystemAttributes", t.Name.Local): @@ -3668,7 +3672,7 @@ func awsAwsquery_deserializeDocumentSendMessageBatchResultEntry(v **types.SendMe } if val != nil { xtv := string(val) - sv.MD5OfMessageSystemAttributes = &xtv + sv.MD5OfMessageSystemAttributes = ptr.String(xtv) } case strings.EqualFold("MessageId", t.Name.Local): @@ -3684,7 +3688,7 @@ func awsAwsquery_deserializeDocumentSendMessageBatchResultEntry(v **types.SendMe } if val != nil { xtv := string(val) - sv.MessageId = &xtv + sv.MessageId = ptr.String(xtv) } case strings.EqualFold("SequenceNumber", t.Name.Local): @@ -3700,7 +3704,7 @@ func awsAwsquery_deserializeDocumentSendMessageBatchResultEntry(v **types.SendMe } if val != nil { xtv := string(val) - sv.SequenceNumber = &xtv + sv.SequenceNumber = ptr.String(xtv) } default: @@ -3713,13 +3717,13 @@ func awsAwsquery_deserializeDocumentSendMessageBatchResultEntry(v **types.SendMe return nil } -func awsAwsquery_deserializeDocumentSendMessageBatchResultEntryList(v *[]*types.SendMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentSendMessageBatchResultEntryList(v *[]types.SendMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*types.SendMessageBatchResultEntry + var sv []types.SendMessageBatchResultEntry if *v == nil { - sv = make([]*types.SendMessageBatchResultEntry, 0) + sv = make([]types.SendMessageBatchResultEntry, 0) } else { sv = *v } @@ -3735,11 +3739,13 @@ func awsAwsquery_deserializeDocumentSendMessageBatchResultEntryList(v *[]*types. } for { if strings.EqualFold("member", t.Name.Local) { - var col *types.SendMessageBatchResultEntry + var col types.SendMessageBatchResultEntry nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSendMessageBatchResultEntry(&col, nodeDecoder); err != nil { + destAddr := &col + if err := awsAwsquery_deserializeDocumentSendMessageBatchResultEntry(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr sv = append(sv, col) break } else { @@ -3752,35 +3758,37 @@ func awsAwsquery_deserializeDocumentSendMessageBatchResultEntryList(v *[]*types. return nil } -func awsAwsquery_deserializeDocumentSendMessageBatchResultEntryListUnwrapped(v *[]*types.SendMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { - var sv []*types.SendMessageBatchResultEntry +func awsAwsquery_deserializeDocumentSendMessageBatchResultEntryListUnwrapped(v *[]types.SendMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.SendMessageBatchResultEntry if *v == nil { - sv = make([]*types.SendMessageBatchResultEntry, 0) + sv = make([]types.SendMessageBatchResultEntry, 0) } else { sv = *v } switch { default: - var mv *types.SendMessageBatchResultEntry + var mv types.SendMessageBatchResultEntry t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSendMessageBatchResultEntry(&mv, nodeDecoder); err != nil { + 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 { +func awsAwsquery_deserializeDocumentStringList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []*string + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } @@ -3798,20 +3806,17 @@ func awsAwsquery_deserializeDocumentStringList(v *[]*string, decoder smithyxml.N decoder = memberDecoder for { if strings.EqualFold("StringListValue", t.Name.Local) { - var col *string + var col string val, done, err := decoder.Value() if err != nil { return err } if done { - if val == nil { - col = ptr.String("") - } break } if val != nil { xtv := string(val) - col = &xtv + col = xtv } sv = append(sv, col) } else { @@ -3824,17 +3829,17 @@ func awsAwsquery_deserializeDocumentStringList(v *[]*string, decoder smithyxml.N return nil } -func awsAwsquery_deserializeDocumentStringListUnwrapped(v *[]*string, decoder smithyxml.NodeDecoder) error { - var sv []*string +func awsAwsquery_deserializeDocumentStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]*string, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv *string + var mv string t := decoder.StartEl _ = t val, done, err := decoder.Value() @@ -3842,27 +3847,24 @@ func awsAwsquery_deserializeDocumentStringListUnwrapped(v *[]*string, decoder sm return err } if done { - if val == nil { - mv = ptr.String("") - } break } if val != nil { xtv := string(val) - mv = &xtv + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentTagMap(v *map[string]*string, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentTagMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]*string + var sv map[string]string if *v == nil { - sv = make(map[string]*string, 0) + sv = make(map[string]string, 0) } else { sv = *v } @@ -3886,23 +3888,23 @@ func awsAwsquery_deserializeDocumentTagMap(v *map[string]*string, decoder smithy return nil } -func awsAwsquery_deserializeDocumentTagMapUnwrapped(v *map[string]*string, decoder smithyxml.NodeDecoder) error { - var sv map[string]*string +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) + sv = make(map[string]string, 0) } else { sv = *v } - var ek *string - var ev *string + var ek string + var ev string for { t, done, err := decoder.Token() if err != nil { return err } if done { - sv[*ek] = ev + sv[ek] = ev break } switch { @@ -3912,14 +3914,11 @@ func awsAwsquery_deserializeDocumentTagMapUnwrapped(v *map[string]*string, decod return err } if done { - if val == nil { - ek = ptr.String("") - } break } if val != nil { xtv := string(val) - ek = &xtv + ek = xtv } case strings.EqualFold("Value", t.Name.Local): @@ -3928,14 +3927,11 @@ func awsAwsquery_deserializeDocumentTagMapUnwrapped(v *map[string]*string, decod return err } if done { - if val == nil { - ev = ptr.String("") - } break } if val != nil { xtv := string(val) - ev = &xtv + ev = xtv } default: @@ -4153,7 +4149,7 @@ func awsAwsquery_deserializeOpDocumentCreateQueueOutput(v **CreateQueueOutput, d } if val != nil { xtv := string(val) - sv.QueueUrl = &xtv + sv.QueueUrl = ptr.String(xtv) } default: @@ -4347,7 +4343,7 @@ func awsAwsquery_deserializeOpDocumentGetQueueUrlOutput(v **GetQueueUrlOutput, d } if val != nil { xtv := string(val) - sv.QueueUrl = &xtv + sv.QueueUrl = ptr.String(xtv) } default: @@ -4395,7 +4391,7 @@ func awsAwsquery_deserializeOpDocumentListDeadLetterSourceQueuesOutput(v **ListD } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("QueueUrl", t.Name.Local): @@ -4449,7 +4445,7 @@ func awsAwsquery_deserializeOpDocumentListQueuesOutput(v **ListQueuesOutput, dec } if val != nil { xtv := string(val) - sv.NextToken = &xtv + sv.NextToken = ptr.String(xtv) } case strings.EqualFold("QueueUrl", t.Name.Local): @@ -4687,7 +4683,7 @@ func awsAwsquery_deserializeOpDocumentSendMessageOutput(v **SendMessageOutput, d } if val != nil { xtv := string(val) - sv.MD5OfMessageAttributes = &xtv + sv.MD5OfMessageAttributes = ptr.String(xtv) } case strings.EqualFold("MD5OfMessageBody", t.Name.Local): @@ -4703,7 +4699,7 @@ func awsAwsquery_deserializeOpDocumentSendMessageOutput(v **SendMessageOutput, d } if val != nil { xtv := string(val) - sv.MD5OfMessageBody = &xtv + sv.MD5OfMessageBody = ptr.String(xtv) } case strings.EqualFold("MD5OfMessageSystemAttributes", t.Name.Local): @@ -4719,7 +4715,7 @@ func awsAwsquery_deserializeOpDocumentSendMessageOutput(v **SendMessageOutput, d } if val != nil { xtv := string(val) - sv.MD5OfMessageSystemAttributes = &xtv + sv.MD5OfMessageSystemAttributes = ptr.String(xtv) } case strings.EqualFold("MessageId", t.Name.Local): @@ -4735,7 +4731,7 @@ func awsAwsquery_deserializeOpDocumentSendMessageOutput(v **SendMessageOutput, d } if val != nil { xtv := string(val) - sv.MessageId = &xtv + sv.MessageId = ptr.String(xtv) } case strings.EqualFold("SequenceNumber", t.Name.Local): @@ -4751,7 +4747,7 @@ func awsAwsquery_deserializeOpDocumentSendMessageOutput(v **SendMessageOutput, d } if val != nil { xtv := string(val) - sv.SequenceNumber = &xtv + sv.SequenceNumber = ptr.String(xtv) } default: diff --git a/service/sqs/go.mod b/service/sqs/go.mod index 99b8c9f3c93..fb01d4e5d31 100644 --- a/service/sqs/go.mod +++ b/service/sqs/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/sqs go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/sqs/serializers.go b/service/sqs/serializers.go index 409b87aa7fd..9ec91754585 100644 --- a/service/sqs/serializers.go +++ b/service/sqs/serializers.go @@ -1114,18 +1114,15 @@ func (m *awsAwsquery_serializeOpUntagQueue) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentActionNameList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentActionNameList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1143,18 +1140,15 @@ func awsAwsquery_serializeDocumentAttributeNameList(v []types.QueueAttributeName return nil } -func awsAwsquery_serializeDocumentAWSAccountIdList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentAWSAccountIdList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1189,26 +1183,23 @@ func awsAwsquery_serializeDocumentChangeMessageVisibilityBatchRequestEntry(v *ty objectKey.String(*v.ReceiptHandle) } - if v.VisibilityTimeout != nil { + if v.VisibilityTimeout != 0 { objectKey := object.Key("VisibilityTimeout") - objectKey.Integer(*v.VisibilityTimeout) + objectKey.Integer(v.VisibilityTimeout) } return nil } -func awsAwsquery_serializeDocumentChangeMessageVisibilityBatchRequestEntryList(v []*types.ChangeMessageVisibilityBatchRequestEntry, value query.Value) error { +func awsAwsquery_serializeDocumentChangeMessageVisibilityBatchRequestEntryList(v []types.ChangeMessageVisibilityBatchRequestEntry, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentChangeMessageVisibilityBatchRequestEntry(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentChangeMessageVisibilityBatchRequestEntry(&v[i], av); err != nil { return err } } @@ -1232,36 +1223,30 @@ func awsAwsquery_serializeDocumentDeleteMessageBatchRequestEntry(v *types.Delete return nil } -func awsAwsquery_serializeDocumentDeleteMessageBatchRequestEntryList(v []*types.DeleteMessageBatchRequestEntry, value query.Value) error { +func awsAwsquery_serializeDocumentDeleteMessageBatchRequestEntryList(v []types.DeleteMessageBatchRequestEntry, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentDeleteMessageBatchRequestEntry(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentDeleteMessageBatchRequestEntry(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentMessageAttributeNameList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentMessageAttributeNameList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1302,7 +1287,7 @@ func awsAwsquery_serializeDocumentMessageAttributeValue(v *types.MessageAttribut return nil } -func awsAwsquery_serializeDocumentMessageBodyAttributeMap(v map[string]*types.MessageAttributeValue, value query.Value) error { +func awsAwsquery_serializeDocumentMessageBodyAttributeMap(v map[string]types.MessageAttributeValue, value query.Value) error { if len(v) == 0 { return nil } @@ -1315,18 +1300,16 @@ func awsAwsquery_serializeDocumentMessageBodyAttributeMap(v map[string]*types.Me sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - if err := awsAwsquery_serializeDocumentMessageAttributeValue(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsquery_serializeDocumentMessageAttributeValue(&mapVar, om); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentMessageBodySystemAttributeMap(v map[string]*types.MessageSystemAttributeValue, value query.Value) error { +func awsAwsquery_serializeDocumentMessageBodySystemAttributeMap(v map[string]types.MessageSystemAttributeValue, value query.Value) error { if len(v) == 0 { return nil } @@ -1339,11 +1322,9 @@ func awsAwsquery_serializeDocumentMessageBodySystemAttributeMap(v map[string]*ty sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - if err := awsAwsquery_serializeDocumentMessageSystemAttributeValue(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsquery_serializeDocumentMessageSystemAttributeValue(&mapVar, om); err != nil { return err } } @@ -1386,7 +1367,7 @@ func awsAwsquery_serializeDocumentMessageSystemAttributeValue(v *types.MessageSy return nil } -func awsAwsquery_serializeDocumentQueueAttributeMap(v map[string]*string, value query.Value) error { +func awsAwsquery_serializeDocumentQueueAttributeMap(v map[string]string, value query.Value) error { if len(v) == 0 { return nil } @@ -1399,11 +1380,8 @@ func awsAwsquery_serializeDocumentQueueAttributeMap(v map[string]*string, value sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1412,9 +1390,9 @@ func awsAwsquery_serializeDocumentSendMessageBatchRequestEntry(v *types.SendMess object := value.Object() _ = object - if v.DelaySeconds != nil { + if v.DelaySeconds != 0 { objectKey := object.Key("DelaySeconds") - objectKey.Integer(*v.DelaySeconds) + objectKey.Integer(v.DelaySeconds) } if v.Id != nil { @@ -1454,57 +1432,48 @@ func awsAwsquery_serializeDocumentSendMessageBatchRequestEntry(v *types.SendMess return nil } -func awsAwsquery_serializeDocumentSendMessageBatchRequestEntryList(v []*types.SendMessageBatchRequestEntry, value query.Value) error { +func awsAwsquery_serializeDocumentSendMessageBatchRequestEntryList(v []types.SendMessageBatchRequestEntry, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentSendMessageBatchRequestEntry(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentSendMessageBatchRequestEntry(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentStringList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentStringList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("StringListValue") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentTagKeyList(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentTagKeyList(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentTagMap(v map[string]*string, value query.Value) error { +func awsAwsquery_serializeDocumentTagMap(v map[string]string, value query.Value) error { if len(v) == 0 { return nil } @@ -1517,11 +1486,8 @@ func awsAwsquery_serializeDocumentTagMap(v map[string]*string, value query.Value sort.Strings(keys) for _, key := range keys { - if vv := v[key]; vv == nil { - continue - } om := object.Key(key) - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1590,9 +1556,9 @@ func awsAwsquery_serializeOpDocumentChangeMessageVisibilityInput(v *ChangeMessag objectKey.String(*v.ReceiptHandle) } - if v.VisibilityTimeout != nil { + if v.VisibilityTimeout != 0 { objectKey := object.Key("VisibilityTimeout") - objectKey.Integer(*v.VisibilityTimeout) + objectKey.Integer(v.VisibilityTimeout) } return nil @@ -1787,9 +1753,9 @@ func awsAwsquery_serializeOpDocumentReceiveMessageInput(v *ReceiveMessageInput, } } - if v.MaxNumberOfMessages != nil { + if v.MaxNumberOfMessages != 0 { objectKey := object.Key("MaxNumberOfMessages") - objectKey.Integer(*v.MaxNumberOfMessages) + objectKey.Integer(v.MaxNumberOfMessages) } if v.MessageAttributeNames != nil { @@ -1809,14 +1775,14 @@ func awsAwsquery_serializeOpDocumentReceiveMessageInput(v *ReceiveMessageInput, objectKey.String(*v.ReceiveRequestAttemptId) } - if v.VisibilityTimeout != nil { + if v.VisibilityTimeout != 0 { objectKey := object.Key("VisibilityTimeout") - objectKey.Integer(*v.VisibilityTimeout) + objectKey.Integer(v.VisibilityTimeout) } - if v.WaitTimeSeconds != nil { + if v.WaitTimeSeconds != 0 { objectKey := object.Key("WaitTimeSeconds") - objectKey.Integer(*v.WaitTimeSeconds) + objectKey.Integer(v.WaitTimeSeconds) } return nil @@ -1862,9 +1828,9 @@ func awsAwsquery_serializeOpDocumentSendMessageInput(v *SendMessageInput, value object := value.Object() _ = object - if v.DelaySeconds != nil { + if v.DelaySeconds != 0 { objectKey := object.Key("DelaySeconds") - objectKey.Integer(*v.DelaySeconds) + objectKey.Integer(v.DelaySeconds) } if v.MessageAttributes != nil { diff --git a/service/sqs/types/types.go b/service/sqs/types/types.go index c57762b3ef1..fdac9223f24 100644 --- a/service/sqs/types/types.go +++ b/service/sqs/types/types.go @@ -19,7 +19,7 @@ type BatchResultErrorEntry struct { // Specifies whether the error happened due to the caller of the batch API action. // // This member is required. - SenderFault *bool + SenderFault bool // A message explaining why the action failed on this entry. Message *string @@ -52,7 +52,7 @@ type ChangeMessageVisibilityBatchRequestEntry struct { ReceiptHandle *string // The new value (in seconds) for the message's visibility timeout. - VisibilityTimeout *int32 + VisibilityTimeout int32 } // Encloses the Id of an entry in ChangeMessageVisibilityBatch. @@ -115,7 +115,7 @@ type Message struct { // ApproximateFirstReceiveTimestamp // and SentTimestamp are each returned as an integer representing the epoch time // (http://en.wikipedia.org/wiki/Unix_time) in milliseconds. - Attributes map[string]*string + Attributes map[string]string // The message's contents (not URL-encoded). Body *string @@ -133,7 +133,7 @@ type Message struct { // information, see Amazon SQS Message Attributes // (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) // in the Amazon Simple Queue Service Developer Guide. - MessageAttributes map[string]*MessageAttributeValue + MessageAttributes map[string]MessageAttributeValue // A unique identifier for the message. A MessageIdis considered unique across all // AWS accounts for an extended period of time. @@ -169,7 +169,7 @@ type MessageAttributeValue struct { BinaryValue []byte // Not implemented. Reserved for future use. - StringListValues []*string + StringListValues []string // Strings are Unicode with UTF-8 binary encoding. For a list of code values, see // ASCII Printable Characters @@ -200,7 +200,7 @@ type MessageSystemAttributeValue struct { BinaryValue []byte // Not implemented. Reserved for future use. - StringListValues []*string + StringListValues []string // Strings are Unicode with UTF-8 binary encoding. For a list of code values, see // ASCII Printable Characters @@ -230,13 +230,13 @@ type SendMessageBatchRequestEntry struct { // don't specify a value, the default value for the queue is applied. When you set // FifoQueue, you can't set DelaySeconds per message. You can set this parameter // only on a queue level. - DelaySeconds *int32 + DelaySeconds int32 // Each message attribute consists of a Name, Type, and Value. For more // information, see Amazon SQS Message Attributes // (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) // in the Amazon Simple Queue Service Developer Guide. - MessageAttributes map[string]*MessageAttributeValue + MessageAttributes map[string]MessageAttributeValue // This parameter applies only to FIFO (first-in-first-out) queues. The token used // for deduplication of messages within a 5-minute minimum deduplication interval. @@ -325,7 +325,7 @@ type SendMessageBatchRequestEntry struct { // // * The size of a message system // attribute doesn't count towards the total size of a message. - MessageSystemAttributes map[string]*MessageSystemAttributeValue + MessageSystemAttributes map[string]MessageSystemAttributeValue } // Encloses a MessageId for a successfully-enqueued message in a SendMessageBatch. diff --git a/service/sqs/validators.go b/service/sqs/validators.go index 50419cb6591..87d8a87d9bc 100644 --- a/service/sqs/validators.go +++ b/service/sqs/validators.go @@ -484,13 +484,13 @@ func validateChangeMessageVisibilityBatchRequestEntry(v *types.ChangeMessageVisi } } -func validateChangeMessageVisibilityBatchRequestEntryList(v []*types.ChangeMessageVisibilityBatchRequestEntry) error { +func validateChangeMessageVisibilityBatchRequestEntryList(v []types.ChangeMessageVisibilityBatchRequestEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ChangeMessageVisibilityBatchRequestEntryList"} for i := range v { - if err := validateChangeMessageVisibilityBatchRequestEntry(v[i]); err != nil { + if err := validateChangeMessageVisibilityBatchRequestEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -519,13 +519,13 @@ func validateDeleteMessageBatchRequestEntry(v *types.DeleteMessageBatchRequestEn } } -func validateDeleteMessageBatchRequestEntryList(v []*types.DeleteMessageBatchRequestEntry) error { +func validateDeleteMessageBatchRequestEntryList(v []types.DeleteMessageBatchRequestEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteMessageBatchRequestEntryList"} for i := range v { - if err := validateDeleteMessageBatchRequestEntry(v[i]); err != nil { + if err := validateDeleteMessageBatchRequestEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -551,13 +551,14 @@ func validateMessageAttributeValue(v *types.MessageAttributeValue) error { } } -func validateMessageBodyAttributeMap(v map[string]*types.MessageAttributeValue) error { +func validateMessageBodyAttributeMap(v map[string]types.MessageAttributeValue) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MessageBodyAttributeMap"} for key := range v { - if err := validateMessageAttributeValue(v[key]); err != nil { + value := v[key] + if err := validateMessageAttributeValue(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -568,13 +569,14 @@ func validateMessageBodyAttributeMap(v map[string]*types.MessageAttributeValue) } } -func validateMessageBodySystemAttributeMap(v map[string]*types.MessageSystemAttributeValue) error { +func validateMessageBodySystemAttributeMap(v map[string]types.MessageSystemAttributeValue) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "MessageBodySystemAttributeMap"} for key := range v { - if err := validateMessageSystemAttributeValue(v[key]); err != nil { + value := v[key] + if err := validateMessageSystemAttributeValue(&value); err != nil { invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } @@ -628,13 +630,13 @@ func validateSendMessageBatchRequestEntry(v *types.SendMessageBatchRequestEntry) } } -func validateSendMessageBatchRequestEntryList(v []*types.SendMessageBatchRequestEntry) error { +func validateSendMessageBatchRequestEntryList(v []types.SendMessageBatchRequestEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SendMessageBatchRequestEntryList"} for i := range v { - if err := validateSendMessageBatchRequestEntry(v[i]); err != nil { + if err := validateSendMessageBatchRequestEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -699,9 +701,6 @@ func validateOpChangeMessageVisibilityInput(v *ChangeMessageVisibilityInput) err if v.QueueUrl == nil { invalidParams.Add(smithy.NewErrParamRequired("QueueUrl")) } - if v.VisibilityTimeout == nil { - invalidParams.Add(smithy.NewErrParamRequired("VisibilityTimeout")) - } if v.ReceiptHandle == nil { invalidParams.Add(smithy.NewErrParamRequired("ReceiptHandle")) } diff --git a/service/ssm/api_op_AddTagsToResource.go b/service/ssm/api_op_AddTagsToResource.go index 49337c49f49..3c50c4c92ea 100644 --- a/service/ssm/api_op_AddTagsToResource.go +++ b/service/ssm/api_op_AddTagsToResource.go @@ -68,7 +68,7 @@ type AddTagsToResourceInput struct { // empty string. Do not enter personally identifiable information in this field. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type AddTagsToResourceOutput struct { diff --git a/service/ssm/api_op_CancelCommand.go b/service/ssm/api_op_CancelCommand.go index 08b18ac8317..d041bd4f1ff 100644 --- a/service/ssm/api_op_CancelCommand.go +++ b/service/ssm/api_op_CancelCommand.go @@ -39,7 +39,7 @@ type CancelCommandInput struct { // (Optional) A list of instance IDs on which you want to cancel the command. If // not provided, the command is canceled on every instance on which it was // requested. - InstanceIds []*string + InstanceIds []string } // Whether or not the command was successfully canceled. There is no guarantee that diff --git a/service/ssm/api_op_CreateActivation.go b/service/ssm/api_op_CreateActivation.go index 7b1949314a9..fdb36970a41 100644 --- a/service/ssm/api_op_CreateActivation.go +++ b/service/ssm/api_op_CreateActivation.go @@ -66,7 +66,7 @@ type CreateActivationInput struct { // Specify the maximum number of managed instances you want to register. The // default value is 1 instance. - RegistrationLimit *int32 + RegistrationLimit int32 // Optional metadata that you assign to a resource. Tags enable you to categorize a // resource in different ways, such as by purpose, owner, or environment. For @@ -90,7 +90,7 @@ type CreateActivationInput struct { // information about how to add tags to your managed instances, see // AddTagsToResource. For information about how to remove tags from your managed // instances, see RemoveTagsFromResource. - Tags []*types.Tag + Tags []types.Tag } type CreateActivationOutput struct { diff --git a/service/ssm/api_op_CreateAssociation.go b/service/ssm/api_op_CreateAssociation.go index 76259587d92..700c6cd12ab 100644 --- a/service/ssm/api_op_CreateAssociation.go +++ b/service/ssm/api_op_CreateAssociation.go @@ -57,7 +57,7 @@ type CreateAssociationInput struct { // after it is created and then according to the schedule you specified. Specify // this option if you don't want an association to run immediately after you create // it. - ApplyOnlyAtCronInterval *bool + ApplyOnlyAtCronInterval bool // Specify a descriptive name for the association. AssociationName *string @@ -109,7 +109,7 @@ type CreateAssociationInput struct { OutputLocation *types.InstanceAssociationOutputLocation // The parameters for the runtime configuration of the document. - Parameters map[string][]*string + Parameters map[string][]string // A cron expression when the association will be applied to the target(s). ScheduleExpression *string @@ -131,7 +131,7 @@ type CreateAssociationInput struct { // targets and rate controls with State Manager associations // (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-state-manager-targets-and-rate-controls.html) // in the AWS Systems Manager User Guide. - Targets []*types.Target + Targets []types.Target } type CreateAssociationOutput struct { diff --git a/service/ssm/api_op_CreateAssociationBatch.go b/service/ssm/api_op_CreateAssociationBatch.go index 3916663de55..996dfa4a5ad 100644 --- a/service/ssm/api_op_CreateAssociationBatch.go +++ b/service/ssm/api_op_CreateAssociationBatch.go @@ -37,16 +37,16 @@ type CreateAssociationBatchInput struct { // One or more associations. // // This member is required. - Entries []*types.CreateAssociationBatchRequestEntry + Entries []types.CreateAssociationBatchRequestEntry } type CreateAssociationBatchOutput struct { // Information about the associations that failed. - Failed []*types.FailedCreateAssociation + Failed []types.FailedCreateAssociation // Information about the associations that succeeded. - Successful []*types.AssociationDescription + Successful []types.AssociationDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_CreateDocument.go b/service/ssm/api_op_CreateDocument.go index 5bac20a0ba6..803eaa4b823 100644 --- a/service/ssm/api_op_CreateDocument.go +++ b/service/ssm/api_op_CreateDocument.go @@ -68,7 +68,7 @@ type CreateDocumentInput struct { // A list of key and value pairs that describe attachments to a version of a // document. - Attachments []*types.AttachmentsSource + Attachments []types.AttachmentsSource // Specify the document format for the request. The document format can be JSON, // YAML, or TEXT. JSON is the default format. @@ -85,7 +85,7 @@ type CreateDocumentInput struct { // information, see AWS AppConfig // (https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig.html) in // the AWS Systems Manager User Guide. - Requires []*types.DocumentRequires + Requires []types.DocumentRequires // Optional metadata that you assign to a resource. Tags enable you to categorize a // resource in different ways, such as by purpose, owner, or environment. For @@ -100,7 +100,7 @@ type CreateDocumentInput struct { // // To add tags to an existing SSM document, use // the AddTagsToResource action. - Tags []*types.Tag + Tags []types.Tag // Specify a target type to define the kinds of resources the document can run on. // For example, to run a document on EC2 instances, specify the following value: diff --git a/service/ssm/api_op_CreateMaintenanceWindow.go b/service/ssm/api_op_CreateMaintenanceWindow.go index f9beea10997..1a4aee308b6 100644 --- a/service/ssm/api_op_CreateMaintenanceWindow.go +++ b/service/ssm/api_op_CreateMaintenanceWindow.go @@ -44,18 +44,18 @@ type CreateMaintenanceWindowInput struct { // window. // // This member is required. - AllowUnassociatedTargets *bool + AllowUnassociatedTargets bool // The number of hours before the end of the maintenance window that Systems // Manager stops scheduling new tasks for execution. // // This member is required. - Cutoff *int32 + Cutoff int32 // The duration of the maintenance window in hours. // // This member is required. - Duration *int32 + Duration int32 // The name of the maintenance window. // @@ -84,7 +84,7 @@ type CreateMaintenanceWindowInput struct { // cron expression schedules a maintenance window to run on the third Tuesday of // every month at 11:30 PM. cron(0 30 23 ? * TUE#3 *) If the schedule offset is 2, // the maintenance window won't run until two days later. - ScheduleOffset *int32 + ScheduleOffset int32 // The time zone that the scheduled maintenance window executions are based on, in // Internet Assigned Numbers Authority (IANA) format. For example: @@ -113,7 +113,7 @@ type CreateMaintenanceWindowInput struct { // // To add tags to an existing maintenance window, // use the AddTagsToResource action. - Tags []*types.Tag + Tags []types.Tag } type CreateMaintenanceWindowOutput struct { diff --git a/service/ssm/api_op_CreateOpsItem.go b/service/ssm/api_op_CreateOpsItem.go index 27e66508640..5527e9f394c 100644 --- a/service/ssm/api_op_CreateOpsItem.go +++ b/service/ssm/api_op_CreateOpsItem.go @@ -60,7 +60,7 @@ type CreateOpsItemInput struct { // The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when // this OpsItem is edited or changed. - Notifications []*types.OpsItemNotification + Notifications []types.OpsItemNotification // Operational data is custom data that provides useful reference details about the // OpsItem. For example, you can specify log files, error strings, license keys, @@ -79,7 +79,7 @@ type CreateOpsItemInput struct { // these keys, see Creating OpsItems manually // (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems) // in the AWS Systems Manager User Guide. - OperationalData map[string]*types.OpsItemDataValue + OperationalData map[string]types.OpsItemDataValue // The importance of this OpsItem in relation to other OpsItems in the system. Priority *int32 @@ -87,7 +87,7 @@ type CreateOpsItemInput struct { // One or more OpsItems that share something in common with the current OpsItems. // For example, related OpsItems can include OpsItems with similar error messages, // impacted resources, or statuses for the impacted resource. - RelatedOpsItems []*types.RelatedOpsItem + RelatedOpsItems []types.RelatedOpsItem // Specify a severity to assign to an OpsItem. Severity *string @@ -99,7 +99,7 @@ type CreateOpsItemInput struct { // in the AWS Systems Manager User Guide. Tags use a key-value pair. For example: // Key=Department,Value=Finance To add tags to an existing OpsItem, use the // AddTagsToResource action. - Tags []*types.Tag + Tags []types.Tag } type CreateOpsItemOutput struct { diff --git a/service/ssm/api_op_CreatePatchBaseline.go b/service/ssm/api_op_CreatePatchBaseline.go index 25b2aca93ff..b22d5c196aa 100644 --- a/service/ssm/api_op_CreatePatchBaseline.go +++ b/service/ssm/api_op_CreatePatchBaseline.go @@ -45,7 +45,7 @@ type CreatePatchBaselineInput struct { // package name formats for approved and rejected patch lists // (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) // in the AWS Systems Manager User Guide. - ApprovedPatches []*string + ApprovedPatches []string // Defines the compliance level for approved patches. This means that if an // approved patch is reported as missing, this is the severity of the compliance @@ -55,7 +55,7 @@ type CreatePatchBaselineInput struct { // Indicates whether the list of approved patches includes non-security updates // that should be applied to the instances. The default value is 'false'. Applies // to Linux instances only. - ApprovedPatchesEnableNonSecurity *bool + ApprovedPatchesEnableNonSecurity bool // User-provided idempotency token. ClientToken *string @@ -75,7 +75,7 @@ type CreatePatchBaselineInput struct { // package name formats for approved and rejected patch lists // (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) // in the AWS Systems Manager User Guide. - RejectedPatches []*string + RejectedPatches []string // The action for Patch Manager to take on patches included in the RejectedPackages // list. @@ -94,7 +94,7 @@ type CreatePatchBaselineInput struct { // Information about the patches to use to update the instances, including target // operating systems and source repositories. Applies to Linux instances only. - Sources []*types.PatchSource + Sources []types.PatchSource // Optional metadata that you assign to a resource. Tags enable you to categorize a // resource in different ways, such as by purpose, owner, or environment. For @@ -109,7 +109,7 @@ type CreatePatchBaselineInput struct { // // To add tags to an // existing patch baseline, use the AddTagsToResource action. - Tags []*types.Tag + Tags []types.Tag } type CreatePatchBaselineOutput struct { diff --git a/service/ssm/api_op_DeleteDocument.go b/service/ssm/api_op_DeleteDocument.go index a99ea5036d9..9c5ba76d54b 100644 --- a/service/ssm/api_op_DeleteDocument.go +++ b/service/ssm/api_op_DeleteDocument.go @@ -44,7 +44,7 @@ type DeleteDocumentInput struct { // delete the document. For example, you must specify a Force flag to delete a // document of type ApplicationConfigurationSchema. You can restrict access to the // Force flag in an AWS Identity and Access Management (IAM) policy. - Force *bool + Force bool // The version name of the document that you want to delete. If not provided, all // versions of the document are deleted. diff --git a/service/ssm/api_op_DeleteInventory.go b/service/ssm/api_op_DeleteInventory.go index af150cee2e7..5c7eab9493f 100644 --- a/service/ssm/api_op_DeleteInventory.go +++ b/service/ssm/api_op_DeleteInventory.go @@ -46,7 +46,7 @@ type DeleteInventoryInput struct { // what will be deleted. Once you validate that the data to be deleted is what you // intend to delete, you can run the same command without specifying the DryRun // option. - DryRun *bool + DryRun bool // Use the SchemaDeleteOption to delete a custom inventory type (schema). If you // don't choose this option, the system only deletes existing inventory data diff --git a/service/ssm/api_op_DeleteParameters.go b/service/ssm/api_op_DeleteParameters.go index 9cc1727cfd1..b6a78bb14e4 100644 --- a/service/ssm/api_op_DeleteParameters.go +++ b/service/ssm/api_op_DeleteParameters.go @@ -31,17 +31,17 @@ type DeleteParametersInput struct { // The names of the parameters to delete. // // This member is required. - Names []*string + Names []string } type DeleteParametersOutput struct { // The names of the deleted parameters. - DeletedParameters []*string + DeletedParameters []string // The names of parameters that weren't deleted because the parameters are not // valid. - InvalidParameters []*string + InvalidParameters []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DeregisterTargetFromMaintenanceWindow.go b/service/ssm/api_op_DeregisterTargetFromMaintenanceWindow.go index cb2f3d6ea2d..e15ffa757de 100644 --- a/service/ssm/api_op_DeregisterTargetFromMaintenanceWindow.go +++ b/service/ssm/api_op_DeregisterTargetFromMaintenanceWindow.go @@ -41,7 +41,7 @@ type DeregisterTargetFromMaintenanceWindowInput struct { // The system checks if the target is being referenced by a task. If the target is // being referenced, the system returns an error and does not deregister the target // from the maintenance window. - Safe *bool + Safe bool } type DeregisterTargetFromMaintenanceWindowOutput struct { diff --git a/service/ssm/api_op_DescribeActivations.go b/service/ssm/api_op_DescribeActivations.go index a5ec88c8093..f831feba19c 100644 --- a/service/ssm/api_op_DescribeActivations.go +++ b/service/ssm/api_op_DescribeActivations.go @@ -32,11 +32,11 @@ func (c *Client) DescribeActivations(ctx context.Context, params *DescribeActiva type DescribeActivationsInput struct { // A filter to view information about your activations. - Filters []*types.DescribeActivationsFilter + Filters []types.DescribeActivationsFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -45,7 +45,7 @@ type DescribeActivationsInput struct { type DescribeActivationsOutput struct { // A list of activations for your AWS account. - ActivationList []*types.Activation + ActivationList []types.Activation // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/ssm/api_op_DescribeAssociationExecutionTargets.go b/service/ssm/api_op_DescribeAssociationExecutionTargets.go index 08f421519b5..85e77fc4351 100644 --- a/service/ssm/api_op_DescribeAssociationExecutionTargets.go +++ b/service/ssm/api_op_DescribeAssociationExecutionTargets.go @@ -43,11 +43,11 @@ type DescribeAssociationExecutionTargetsInput struct { // Filters for the request. You can specify the following filters and values. // Status (EQUAL) ResourceId (EQUAL) ResourceType (EQUAL) - Filters []*types.AssociationExecutionTargetsFilter + Filters []types.AssociationExecutionTargetsFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -56,7 +56,7 @@ type DescribeAssociationExecutionTargetsInput struct { type DescribeAssociationExecutionTargetsOutput struct { // Information about the execution. - AssociationExecutionTargets []*types.AssociationExecutionTarget + AssociationExecutionTargets []types.AssociationExecutionTarget // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/ssm/api_op_DescribeAssociationExecutions.go b/service/ssm/api_op_DescribeAssociationExecutions.go index 23aa74af42b..136777270b4 100644 --- a/service/ssm/api_op_DescribeAssociationExecutions.go +++ b/service/ssm/api_op_DescribeAssociationExecutions.go @@ -36,11 +36,11 @@ type DescribeAssociationExecutionsInput struct { // Filters for the request. You can specify the following filters and values. // ExecutionId (EQUAL) Status (EQUAL) CreatedTime (EQUAL, GREATER_THAN, LESS_THAN) - Filters []*types.AssociationExecutionFilter + Filters []types.AssociationExecutionFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -49,7 +49,7 @@ type DescribeAssociationExecutionsInput struct { type DescribeAssociationExecutionsOutput struct { // A list of the executions for the specified association ID. - AssociationExecutions []*types.AssociationExecution + AssociationExecutions []types.AssociationExecution // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/ssm/api_op_DescribeAutomationExecutions.go b/service/ssm/api_op_DescribeAutomationExecutions.go index d85cde98462..62dc34fe87d 100644 --- a/service/ssm/api_op_DescribeAutomationExecutions.go +++ b/service/ssm/api_op_DescribeAutomationExecutions.go @@ -30,11 +30,11 @@ func (c *Client) DescribeAutomationExecutions(ctx context.Context, params *Descr type DescribeAutomationExecutionsInput struct { // Filters used to limit the scope of executions that are requested. - Filters []*types.AutomationExecutionFilter + Filters []types.AutomationExecutionFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -45,7 +45,7 @@ type DescribeAutomationExecutionsOutput struct { // The list of details about each automation execution which has occurred which // matches the filter specification, if any. - AutomationExecutionMetadataList []*types.AutomationExecutionMetadata + AutomationExecutionMetadataList []types.AutomationExecutionMetadata // The token to use when requesting the next set of items. If there are no // additional items to return, the string is empty. diff --git a/service/ssm/api_op_DescribeAutomationStepExecutions.go b/service/ssm/api_op_DescribeAutomationStepExecutions.go index 864fcd1d052..f3e7fd0e208 100644 --- a/service/ssm/api_op_DescribeAutomationStepExecutions.go +++ b/service/ssm/api_op_DescribeAutomationStepExecutions.go @@ -37,11 +37,11 @@ type DescribeAutomationStepExecutionsInput struct { // One or more filters to limit the number of step executions returned by the // request. - Filters []*types.StepExecutionFilter + Filters []types.StepExecutionFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -49,7 +49,7 @@ type DescribeAutomationStepExecutionsInput struct { // A boolean that indicates whether to list step executions in reverse order by // start time. The default value is false. - ReverseOrder *bool + ReverseOrder bool } type DescribeAutomationStepExecutionsOutput struct { @@ -60,7 +60,7 @@ type DescribeAutomationStepExecutionsOutput struct { // A list of details about the current state of all steps that make up an // execution. - StepExecutions []*types.StepExecution + StepExecutions []types.StepExecution // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeAvailablePatches.go b/service/ssm/api_op_DescribeAvailablePatches.go index 5bc881c0de1..e2d2503c523 100644 --- a/service/ssm/api_op_DescribeAvailablePatches.go +++ b/service/ssm/api_op_DescribeAvailablePatches.go @@ -30,10 +30,10 @@ func (c *Client) DescribeAvailablePatches(ctx context.Context, params *DescribeA type DescribeAvailablePatchesInput struct { // Filters used to scope down the returned patches. - Filters []*types.PatchOrchestratorFilter + Filters []types.PatchOrchestratorFilter // The maximum number of patches to return (per page). - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -47,7 +47,7 @@ type DescribeAvailablePatchesOutput struct { NextToken *string // An array of patches. Each entry in the array is a patch structure. - Patches []*types.Patch + Patches []types.Patch // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeDocumentPermission.go b/service/ssm/api_op_DescribeDocumentPermission.go index 740c4ed1f45..c22165f145a 100644 --- a/service/ssm/api_op_DescribeDocumentPermission.go +++ b/service/ssm/api_op_DescribeDocumentPermission.go @@ -46,11 +46,11 @@ type DescribeDocumentPermissionOutput struct { // The account IDs that have permission to use this document. The ID can be either // an AWS account or All. - AccountIds []*string + AccountIds []string // A list of AWS accounts where the current document is shared and the version // shared with each account. - AccountSharingInfoList []*types.AccountSharingInfo + AccountSharingInfoList []types.AccountSharingInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeEffectiveInstanceAssociations.go b/service/ssm/api_op_DescribeEffectiveInstanceAssociations.go index 69cd2fd0609..d5750f4ad8d 100644 --- a/service/ssm/api_op_DescribeEffectiveInstanceAssociations.go +++ b/service/ssm/api_op_DescribeEffectiveInstanceAssociations.go @@ -36,7 +36,7 @@ type DescribeEffectiveInstanceAssociationsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -46,7 +46,7 @@ type DescribeEffectiveInstanceAssociationsInput struct { type DescribeEffectiveInstanceAssociationsOutput struct { // The associations for the requested instance. - Associations []*types.InstanceAssociation + Associations []types.InstanceAssociation // The token to use when requesting the next set of items. If there are no // additional items to return, the string is empty. diff --git a/service/ssm/api_op_DescribeEffectivePatchesForPatchBaseline.go b/service/ssm/api_op_DescribeEffectivePatchesForPatchBaseline.go index 2d5c2ad8135..f629579cfe4 100644 --- a/service/ssm/api_op_DescribeEffectivePatchesForPatchBaseline.go +++ b/service/ssm/api_op_DescribeEffectivePatchesForPatchBaseline.go @@ -37,7 +37,7 @@ type DescribeEffectivePatchesForPatchBaselineInput struct { BaselineId *string // The maximum number of patches to return (per page). - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -47,7 +47,7 @@ type DescribeEffectivePatchesForPatchBaselineInput struct { type DescribeEffectivePatchesForPatchBaselineOutput struct { // An array of patches and patch status. - EffectivePatches []*types.EffectivePatch + EffectivePatches []types.EffectivePatch // The token to use when requesting the next set of items. If there are no // additional items to return, the string is empty. diff --git a/service/ssm/api_op_DescribeInstanceAssociationsStatus.go b/service/ssm/api_op_DescribeInstanceAssociationsStatus.go index 80eca6903f1..25e09833641 100644 --- a/service/ssm/api_op_DescribeInstanceAssociationsStatus.go +++ b/service/ssm/api_op_DescribeInstanceAssociationsStatus.go @@ -36,7 +36,7 @@ type DescribeInstanceAssociationsStatusInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -46,7 +46,7 @@ type DescribeInstanceAssociationsStatusInput struct { type DescribeInstanceAssociationsStatusOutput struct { // Status information about the association. - InstanceAssociationStatusInfos []*types.InstanceAssociationStatusInfo + InstanceAssociationStatusInfos []types.InstanceAssociationStatusInfo // The token to use when requesting the next set of items. If there are no // additional items to return, the string is empty. diff --git a/service/ssm/api_op_DescribeInstanceInformation.go b/service/ssm/api_op_DescribeInstanceInformation.go index c42c84a5e08..134e3d5d89d 100644 --- a/service/ssm/api_op_DescribeInstanceInformation.go +++ b/service/ssm/api_op_DescribeInstanceInformation.go @@ -40,17 +40,17 @@ type DescribeInstanceInformationInput struct { // One or more filters. Use a filter to return a more specific list of instances. // You can filter based on tags applied to EC2 instances. Use this Filters data // type instead of InstanceInformationFilterList, which is deprecated. - Filters []*types.InstanceInformationStringFilter + Filters []types.InstanceInformationStringFilter // This is a legacy method. We recommend that you don't use this method. Instead, // use the Filters data type. Filters enables you to return instance information by // filtering based on tags applied to managed instances. Attempting to use // InstanceInformationFilterList and Filters leads to an exception error. - InstanceInformationFilterList []*types.InstanceInformationFilter + InstanceInformationFilterList []types.InstanceInformationFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -60,7 +60,7 @@ type DescribeInstanceInformationInput struct { type DescribeInstanceInformationOutput struct { // The instance information list. - InstanceInformationList []*types.InstanceInformation + InstanceInformationList []types.InstanceInformation // The token to use when requesting the next set of items. If there are no // additional items to return, the string is empty. diff --git a/service/ssm/api_op_DescribeInstancePatchStates.go b/service/ssm/api_op_DescribeInstancePatchStates.go index 8de6f619e42..40e71612938 100644 --- a/service/ssm/api_op_DescribeInstancePatchStates.go +++ b/service/ssm/api_op_DescribeInstancePatchStates.go @@ -32,10 +32,10 @@ type DescribeInstancePatchStatesInput struct { // The ID of the instance whose patch state information should be retrieved. // // This member is required. - InstanceIds []*string + InstanceIds []string // The maximum number of instances to return (per page). - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -45,7 +45,7 @@ type DescribeInstancePatchStatesInput struct { type DescribeInstancePatchStatesOutput struct { // The high-level patch state for the requested instances. - InstancePatchStates []*types.InstancePatchState + InstancePatchStates []types.InstancePatchState // The token to use when requesting the next set of items. If there are no // additional items to return, the string is empty. diff --git a/service/ssm/api_op_DescribeInstancePatchStatesForPatchGroup.go b/service/ssm/api_op_DescribeInstancePatchStatesForPatchGroup.go index a60cec35099..a326f07969a 100644 --- a/service/ssm/api_op_DescribeInstancePatchStatesForPatchGroup.go +++ b/service/ssm/api_op_DescribeInstancePatchStatesForPatchGroup.go @@ -39,10 +39,10 @@ type DescribeInstancePatchStatesForPatchGroupInput struct { // Each entry in the array is a structure containing: Key (string between 1 and 200 // characters) Values (array containing a single string) Type (string "Equal", // "NotEqual", "LessThan", "GreaterThan") - Filters []*types.InstancePatchStateFilter + Filters []types.InstancePatchStateFilter // The maximum number of patches to return (per page). - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -52,7 +52,7 @@ type DescribeInstancePatchStatesForPatchGroupInput struct { type DescribeInstancePatchStatesForPatchGroupOutput struct { // The high-level patch state for the requested instances. - InstancePatchStates []*types.InstancePatchState + InstancePatchStates []types.InstancePatchState // The token to use when requesting the next set of items. If there are no // additional items to return, the string is empty. diff --git a/service/ssm/api_op_DescribeInstancePatches.go b/service/ssm/api_op_DescribeInstancePatches.go index 88d6447a3ff..bae2750715f 100644 --- a/service/ssm/api_op_DescribeInstancePatches.go +++ b/service/ssm/api_op_DescribeInstancePatches.go @@ -38,10 +38,10 @@ type DescribeInstancePatchesInput struct { // An array of structures. Each entry in the array is a structure containing a Key, // Value combination. Valid values for Key are Classification | KBId | Severity | // State. - Filters []*types.PatchOrchestratorFilter + Filters []types.PatchOrchestratorFilter // The maximum number of patches to return (per page). - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -57,7 +57,7 @@ type DescribeInstancePatchesOutput struct { // Each entry in the array is a structure containing: Title (string) KBId (string) // Classification (string) Severity (string) State (string, such as "INSTALLED" or // "FAILED") InstalledTime (DateTime) InstalledBy (string) - Patches []*types.PatchComplianceData + Patches []types.PatchComplianceData // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeInventoryDeletions.go b/service/ssm/api_op_DescribeInventoryDeletions.go index 9819695b775..d786c064f25 100644 --- a/service/ssm/api_op_DescribeInventoryDeletions.go +++ b/service/ssm/api_op_DescribeInventoryDeletions.go @@ -35,7 +35,7 @@ type DescribeInventoryDeletionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -44,7 +44,7 @@ type DescribeInventoryDeletionsInput struct { type DescribeInventoryDeletionsOutput struct { // A list of status items for deleted inventory. - InventoryDeletions []*types.InventoryDeletionStatusItem + InventoryDeletions []types.InventoryDeletionStatusItem // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/ssm/api_op_DescribeMaintenanceWindowExecutionTaskInvocations.go b/service/ssm/api_op_DescribeMaintenanceWindowExecutionTaskInvocations.go index 56ff70369fe..eb1f731e5c2 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowExecutionTaskInvocations.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowExecutionTaskInvocations.go @@ -44,11 +44,11 @@ type DescribeMaintenanceWindowExecutionTaskInvocationsInput struct { // Optional filters used to scope down the returned task invocations. The supported // filter key is STATUS with the corresponding values PENDING, IN_PROGRESS, // SUCCESS, FAILED, TIMED_OUT, CANCELLING, and CANCELLED. - Filters []*types.MaintenanceWindowFilter + Filters []types.MaintenanceWindowFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -62,7 +62,7 @@ type DescribeMaintenanceWindowExecutionTaskInvocationsOutput struct { NextToken *string // Information about the task invocation results per invocation. - WindowExecutionTaskInvocationIdentities []*types.MaintenanceWindowExecutionTaskInvocationIdentity + WindowExecutionTaskInvocationIdentities []types.MaintenanceWindowExecutionTaskInvocationIdentity // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeMaintenanceWindowExecutionTasks.go b/service/ssm/api_op_DescribeMaintenanceWindowExecutionTasks.go index 43c3ac37dcc..0eaef568934 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowExecutionTasks.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowExecutionTasks.go @@ -38,11 +38,11 @@ type DescribeMaintenanceWindowExecutionTasksInput struct { // Optional filters used to scope down the returned tasks. The supported filter key // is STATUS with the corresponding values PENDING, IN_PROGRESS, SUCCESS, FAILED, // TIMED_OUT, CANCELLING, and CANCELLED. - Filters []*types.MaintenanceWindowFilter + Filters []types.MaintenanceWindowFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -56,7 +56,7 @@ type DescribeMaintenanceWindowExecutionTasksOutput struct { NextToken *string // Information about the task executions. - WindowExecutionTaskIdentities []*types.MaintenanceWindowExecutionTaskIdentity + WindowExecutionTaskIdentities []types.MaintenanceWindowExecutionTaskIdentity // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeMaintenanceWindowExecutions.go b/service/ssm/api_op_DescribeMaintenanceWindowExecutions.go index bd3adc6b4ca..5648e09406f 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowExecutions.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowExecutions.go @@ -40,11 +40,11 @@ type DescribeMaintenanceWindowExecutionsInput struct { // 128 characters) Values (array of strings, each string is between 1 and 256 // characters) The supported Keys are ExecutedBefore and ExecutedAfter with the // value being a date/time string such as 2016-11-04T05:00:00Z. - Filters []*types.MaintenanceWindowFilter + Filters []types.MaintenanceWindowFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -58,7 +58,7 @@ type DescribeMaintenanceWindowExecutionsOutput struct { NextToken *string // Information about the maintenance window executions. - WindowExecutions []*types.MaintenanceWindowExecution + WindowExecutions []types.MaintenanceWindowExecution // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeMaintenanceWindowSchedule.go b/service/ssm/api_op_DescribeMaintenanceWindowSchedule.go index 477b2418ddb..034e42c0a16 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowSchedule.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowSchedule.go @@ -32,11 +32,11 @@ type DescribeMaintenanceWindowScheduleInput struct { // Filters used to limit the range of results. For example, you can limit // maintenance window executions to only those scheduled before or after a certain // date and time. - Filters []*types.PatchOrchestratorFilter + Filters []types.PatchOrchestratorFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -47,7 +47,7 @@ type DescribeMaintenanceWindowScheduleInput struct { ResourceType types.MaintenanceWindowResourceType // The instance ID or key/value pair to retrieve information about. - Targets []*types.Target + Targets []types.Target // The ID of the maintenance window to retrieve information about. WindowId *string @@ -61,7 +61,7 @@ type DescribeMaintenanceWindowScheduleOutput struct { // Information about maintenance window executions scheduled for the specified time // range. - ScheduledWindowExecutions []*types.ScheduledWindowExecution + ScheduledWindowExecutions []types.ScheduledWindowExecution // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeMaintenanceWindowTargets.go b/service/ssm/api_op_DescribeMaintenanceWindowTargets.go index b21dcce6f46..9d7a8164e31 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowTargets.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowTargets.go @@ -37,11 +37,11 @@ type DescribeMaintenanceWindowTargetsInput struct { // Optional filters that can be used to narrow down the scope of the returned // window targets. The supported filter keys are Type, WindowTargetId and // OwnerInformation. - Filters []*types.MaintenanceWindowFilter + Filters []types.MaintenanceWindowFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -55,7 +55,7 @@ type DescribeMaintenanceWindowTargetsOutput struct { NextToken *string // Information about the targets in the maintenance window. - Targets []*types.MaintenanceWindowTarget + Targets []types.MaintenanceWindowTarget // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeMaintenanceWindowTasks.go b/service/ssm/api_op_DescribeMaintenanceWindowTasks.go index b3f3e4102c8..a8bc989da2e 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowTasks.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowTasks.go @@ -36,11 +36,11 @@ type DescribeMaintenanceWindowTasksInput struct { // Optional filters used to narrow down the scope of the returned tasks. The // supported filter keys are WindowTaskId, TaskArn, Priority, and TaskType. - Filters []*types.MaintenanceWindowFilter + Filters []types.MaintenanceWindowFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -54,7 +54,7 @@ type DescribeMaintenanceWindowTasksOutput struct { NextToken *string // Information about the tasks in the maintenance window. - Tasks []*types.MaintenanceWindowTask + Tasks []types.MaintenanceWindowTask // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeMaintenanceWindows.go b/service/ssm/api_op_DescribeMaintenanceWindows.go index b4be0199b8f..78a037a6c09 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindows.go +++ b/service/ssm/api_op_DescribeMaintenanceWindows.go @@ -31,11 +31,11 @@ type DescribeMaintenanceWindowsInput struct { // Optional filters used to narrow down the scope of the returned maintenance // windows. Supported filter keys are Name and Enabled. - Filters []*types.MaintenanceWindowFilter + Filters []types.MaintenanceWindowFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -49,7 +49,7 @@ type DescribeMaintenanceWindowsOutput struct { NextToken *string // Information about the maintenance windows. - WindowIdentities []*types.MaintenanceWindowIdentity + WindowIdentities []types.MaintenanceWindowIdentity // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeMaintenanceWindowsForTarget.go b/service/ssm/api_op_DescribeMaintenanceWindowsForTarget.go index b8fdb7fcbc6..6f4f358e8b0 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowsForTarget.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowsForTarget.go @@ -39,11 +39,11 @@ type DescribeMaintenanceWindowsForTargetInput struct { // The instance ID or key/value pair to retrieve information about. // // This member is required. - Targets []*types.Target + Targets []types.Target // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -58,7 +58,7 @@ type DescribeMaintenanceWindowsForTargetOutput struct { // Information about the maintenance window targets and tasks an instance is // associated with. - WindowIdentities []*types.MaintenanceWindowIdentityForTarget + WindowIdentities []types.MaintenanceWindowIdentityForTarget // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeOpsItems.go b/service/ssm/api_op_DescribeOpsItems.go index 6d4dcf971b4..1562df198f5 100644 --- a/service/ssm/api_op_DescribeOpsItems.go +++ b/service/ssm/api_op_DescribeOpsItems.go @@ -84,7 +84,7 @@ type DescribeOpsItemsInput struct { // *If you filter the response by using the OperationalData operator, // specify a key-value pair by using the following JSON format: // {"key":"key_name","value":"a_value"} - OpsItemFilters []*types.OpsItemFilter + OpsItemFilters []types.OpsItemFilter } type DescribeOpsItemsOutput struct { @@ -94,7 +94,7 @@ type DescribeOpsItemsOutput struct { NextToken *string // A list of OpsItems. - OpsItemSummaries []*types.OpsItemSummary + OpsItemSummaries []types.OpsItemSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeParameters.go b/service/ssm/api_op_DescribeParameters.go index 4cbad6b516a..b49f39cf097 100644 --- a/service/ssm/api_op_DescribeParameters.go +++ b/service/ssm/api_op_DescribeParameters.go @@ -36,18 +36,18 @@ func (c *Client) DescribeParameters(ctx context.Context, params *DescribeParamet type DescribeParametersInput struct { // This data type is deprecated. Instead, use ParameterFilters. - Filters []*types.ParametersFilter + Filters []types.ParametersFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) NextToken *string // Filters to limit the request results. - ParameterFilters []*types.ParameterStringFilter + ParameterFilters []types.ParameterStringFilter } type DescribeParametersOutput struct { @@ -56,7 +56,7 @@ type DescribeParametersOutput struct { NextToken *string // Parameters returned by the request. - Parameters []*types.ParameterMetadata + Parameters []types.ParameterMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribePatchBaselines.go b/service/ssm/api_op_DescribePatchBaselines.go index fd55f23f6fa..dc012882f49 100644 --- a/service/ssm/api_op_DescribePatchBaselines.go +++ b/service/ssm/api_op_DescribePatchBaselines.go @@ -32,10 +32,10 @@ type DescribePatchBaselinesInput struct { // Each element in the array is a structure containing: Key: (string, "NAME_PREFIX" // or "OWNER") Value: (array of strings, exactly 1 entry, between 1 and 255 // characters) - Filters []*types.PatchOrchestratorFilter + Filters []types.PatchOrchestratorFilter // The maximum number of patch baselines to return (per page). - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -45,7 +45,7 @@ type DescribePatchBaselinesInput struct { type DescribePatchBaselinesOutput struct { // An array of PatchBaselineIdentity elements. - BaselineIdentities []*types.PatchBaselineIdentity + BaselineIdentities []types.PatchBaselineIdentity // The token to use when requesting the next set of items. If there are no // additional items to return, the string is empty. diff --git a/service/ssm/api_op_DescribePatchGroupState.go b/service/ssm/api_op_DescribePatchGroupState.go index 40e1c24c84c..017edcad93f 100644 --- a/service/ssm/api_op_DescribePatchGroupState.go +++ b/service/ssm/api_op_DescribePatchGroupState.go @@ -37,40 +37,40 @@ type DescribePatchGroupStateInput struct { type DescribePatchGroupStateOutput struct { // The number of instances in the patch group. - Instances *int32 + Instances int32 // The number of instances with patches from the patch baseline that failed to // install. - InstancesWithFailedPatches *int32 + InstancesWithFailedPatches int32 // The number of instances with patches installed that aren't defined in the patch // baseline. - InstancesWithInstalledOtherPatches *int32 + InstancesWithInstalledOtherPatches int32 // The number of instances with installed patches. - InstancesWithInstalledPatches *int32 + InstancesWithInstalledPatches int32 // The number of instances with patches installed by Patch Manager that have not // been rebooted after the patch installation. The status of these instances is // NON_COMPLIANT. - InstancesWithInstalledPendingRebootPatches *int32 + InstancesWithInstalledPendingRebootPatches int32 // The number of instances with patches installed that are specified in a // RejectedPatches list. Patches with a status of INSTALLED_REJECTED were typically // installed before they were added to a RejectedPatches list. If // ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, the value // of InstancesWithInstalledRejectedPatches will always be 0 (zero). - InstancesWithInstalledRejectedPatches *int32 + InstancesWithInstalledRejectedPatches int32 // The number of instances with missing patches from the patch baseline. - InstancesWithMissingPatches *int32 + InstancesWithMissingPatches int32 // The number of instances with patches that aren't applicable. - InstancesWithNotApplicablePatches *int32 + InstancesWithNotApplicablePatches int32 // The number of instances with NotApplicable patches beyond the supported limit, // which are not reported by name to Systems Manager Inventory. - InstancesWithUnreportedNotApplicablePatches *int32 + InstancesWithUnreportedNotApplicablePatches int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribePatchGroups.go b/service/ssm/api_op_DescribePatchGroups.go index 9d59d015ffc..4e1d1ce1045 100644 --- a/service/ssm/api_op_DescribePatchGroups.go +++ b/service/ssm/api_op_DescribePatchGroups.go @@ -45,10 +45,10 @@ type DescribePatchGroupsInput struct { // // * --filters // Key=OPERATING_SYSTEM,Values=AMAZON_LINUX_2 - Filters []*types.PatchOrchestratorFilter + Filters []types.PatchOrchestratorFilter // The maximum number of patch groups to return (per page). - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -60,7 +60,7 @@ type DescribePatchGroupsOutput struct { // Each entry in the array contains: PatchGroup: string (between 1 and 256 // characters, Regex: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$) PatchBaselineIdentity: A // PatchBaselineIdentity element. - Mappings []*types.PatchGroupPatchBaselineMapping + Mappings []types.PatchGroupPatchBaselineMapping // The token to use when requesting the next set of items. If there are no // additional items to return, the string is empty. diff --git a/service/ssm/api_op_DescribePatchProperties.go b/service/ssm/api_op_DescribePatchProperties.go index c58a2de15f1..e2eb920e98c 100644 --- a/service/ssm/api_op_DescribePatchProperties.go +++ b/service/ssm/api_op_DescribePatchProperties.go @@ -53,7 +53,7 @@ type DescribePatchPropertiesInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -71,7 +71,7 @@ type DescribePatchPropertiesOutput struct { NextToken *string // A list of the properties for patches matching the filter request parameters. - Properties []map[string]*string + Properties []map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribeSessions.go b/service/ssm/api_op_DescribeSessions.go index a032ba2ee23..6a0615278d1 100644 --- a/service/ssm/api_op_DescribeSessions.go +++ b/service/ssm/api_op_DescribeSessions.go @@ -36,11 +36,11 @@ type DescribeSessionsInput struct { State types.SessionState // One or more filters to limit the type of sessions returned by the request. - Filters []*types.SessionFilter + Filters []types.SessionFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -54,7 +54,7 @@ type DescribeSessionsOutput struct { NextToken *string // A list of sessions meeting the request parameters. - Sessions []*types.Session + Sessions []types.Session // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_GetCalendarState.go b/service/ssm/api_op_GetCalendarState.go index 43a801429b5..12d21a62ac3 100644 --- a/service/ssm/api_op_GetCalendarState.go +++ b/service/ssm/api_op_GetCalendarState.go @@ -44,7 +44,7 @@ type GetCalendarStateInput struct { // represent the calendar entries for which you want to get the state. // // This member is required. - CalendarNames []*string + CalendarNames []string // (Optional) The specific time for which you want to get calendar state // information, in ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) format. If you diff --git a/service/ssm/api_op_GetCommandInvocation.go b/service/ssm/api_op_GetCommandInvocation.go index 8df8d283421..7115d2e91dd 100644 --- a/service/ssm/api_op_GetCommandInvocation.go +++ b/service/ssm/api_op_GetCommandInvocation.go @@ -95,7 +95,7 @@ type GetCommandInvocationOutput struct { // The error level response code for the plugin script. If the response code is -1, // then the command has not started running on the instance, or it was not received // by the instance. - ResponseCode *int32 + ResponseCode int32 // The first 8,000 characters written by the plugin to stderr. If the command has // not finished running, then this string is empty. diff --git a/service/ssm/api_op_GetDocument.go b/service/ssm/api_op_GetDocument.go index 62c36189da5..37420191574 100644 --- a/service/ssm/api_op_GetDocument.go +++ b/service/ssm/api_op_GetDocument.go @@ -51,7 +51,7 @@ type GetDocumentOutput struct { // A description of the document attachments, including names, locations, sizes, // and so on. - AttachmentsContent []*types.AttachmentContent + AttachmentsContent []types.AttachmentContent // The contents of the Systems Manager document. Content *string @@ -71,7 +71,7 @@ type GetDocumentOutput struct { // A list of SSM documents required by a document. For example, an // ApplicationConfiguration document requires an ApplicationConfigurationSchema // document. - Requires []*types.DocumentRequires + Requires []types.DocumentRequires // The status of the Systems Manager document, such as Creating, Active, Updating, // Failed, and Deleting. diff --git a/service/ssm/api_op_GetInventory.go b/service/ssm/api_op_GetInventory.go index 9b530db0973..fa9e1af39e0 100644 --- a/service/ssm/api_op_GetInventory.go +++ b/service/ssm/api_op_GetInventory.go @@ -33,27 +33,27 @@ type GetInventoryInput struct { // if you aggregate by using an expression that uses the // AWS:InstanceInformation.PlatformType type, you can see a count of how many // Windows and Linux instances exist in your inventoried fleet. - Aggregators []*types.InventoryAggregator + Aggregators []types.InventoryAggregator // One or more filters. Use a filter to return a more specific list of results. - Filters []*types.InventoryFilter + Filters []types.InventoryFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) NextToken *string // The list of inventory item types to return. - ResultAttributes []*types.ResultAttribute + ResultAttributes []types.ResultAttribute } type GetInventoryOutput struct { // Collection of inventory entities such as a collection of instance inventory. - Entities []*types.InventoryResultEntity + Entities []types.InventoryResultEntity // The token to use when requesting the next set of items. If there are no // additional items to return, the string is empty. diff --git a/service/ssm/api_op_GetInventorySchema.go b/service/ssm/api_op_GetInventorySchema.go index da37343e0e4..2cdebf58fe5 100644 --- a/service/ssm/api_op_GetInventorySchema.go +++ b/service/ssm/api_op_GetInventorySchema.go @@ -33,18 +33,18 @@ type GetInventorySchemaInput struct { // Returns inventory schemas that support aggregation. For example, this call // returns the AWS:InstanceInformation type, because it supports aggregation based // on the PlatformName, PlatformType, and PlatformVersion attributes. - Aggregator *bool + Aggregator bool // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) NextToken *string // Returns the sub-type schema for a specified inventory type. - SubType *bool + SubType bool // The type of inventory item to return. TypeName *string @@ -57,7 +57,7 @@ type GetInventorySchemaOutput struct { NextToken *string // Inventory schemas returned by the request. - Schemas []*types.InventoryItemSchema + Schemas []types.InventoryItemSchema // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_GetMaintenanceWindow.go b/service/ssm/api_op_GetMaintenanceWindow.go index b03a4413ada..f296000c21c 100644 --- a/service/ssm/api_op_GetMaintenanceWindow.go +++ b/service/ssm/api_op_GetMaintenanceWindow.go @@ -39,23 +39,23 @@ type GetMaintenanceWindowOutput struct { // Whether targets must be registered with the maintenance window before tasks can // be defined for those targets. - AllowUnassociatedTargets *bool + AllowUnassociatedTargets bool // The date the maintenance window was created. CreatedDate *time.Time // The number of hours before the end of the maintenance window that Systems // Manager stops scheduling new tasks for execution. - Cutoff *int32 + Cutoff int32 // The description of the maintenance window. Description *string // The duration of the maintenance window in hours. - Duration *int32 + Duration int32 // Indicates whether the maintenance window is enabled. - Enabled *bool + Enabled bool // The date and time, in ISO-8601 Extended format, for when the maintenance window // is scheduled to become inactive. The maintenance window will not run after this @@ -77,7 +77,7 @@ type GetMaintenanceWindowOutput struct { // The number of days to wait to run a maintenance window after the scheduled CRON // expression date and time. - ScheduleOffset *int32 + ScheduleOffset int32 // The time zone that the scheduled maintenance window executions are based on, in // Internet Assigned Numbers Authority (IANA) format. For example: diff --git a/service/ssm/api_op_GetMaintenanceWindowExecution.go b/service/ssm/api_op_GetMaintenanceWindowExecution.go index 030cb70e088..40edb4768fa 100644 --- a/service/ssm/api_op_GetMaintenanceWindowExecution.go +++ b/service/ssm/api_op_GetMaintenanceWindowExecution.go @@ -51,7 +51,7 @@ type GetMaintenanceWindowExecutionOutput struct { StatusDetails *string // The ID of the task executions from the maintenance window execution. - TaskIds []*string + TaskIds []string // The ID of the maintenance window execution. WindowExecutionId *string diff --git a/service/ssm/api_op_GetMaintenanceWindowExecutionTask.go b/service/ssm/api_op_GetMaintenanceWindowExecutionTask.go index 48427073542..7957380c23e 100644 --- a/service/ssm/api_op_GetMaintenanceWindowExecutionTask.go +++ b/service/ssm/api_op_GetMaintenanceWindowExecutionTask.go @@ -56,7 +56,7 @@ type GetMaintenanceWindowExecutionTaskOutput struct { MaxErrors *string // The priority of the task. - Priority *int32 + Priority int32 // The role that was assumed when running the task. ServiceRole *string @@ -84,7 +84,7 @@ type GetMaintenanceWindowExecutionTaskOutput struct { // window task types, see MaintenanceWindowTaskInvocationParameters. The map has // the following format: Key: string, between 1 and 255 characters Value: an array // of strings, each string is between 1 and 255 characters - TaskParameters []map[string]*types.MaintenanceWindowTaskParameterValueExpression + TaskParameters []map[string]types.MaintenanceWindowTaskParameterValueExpression // The type of task that was run. Type types.MaintenanceWindowTaskType diff --git a/service/ssm/api_op_GetMaintenanceWindowTask.go b/service/ssm/api_op_GetMaintenanceWindowTask.go index fb275278870..29dc876a714 100644 --- a/service/ssm/api_op_GetMaintenanceWindowTask.go +++ b/service/ssm/api_op_GetMaintenanceWindowTask.go @@ -64,14 +64,14 @@ type GetMaintenanceWindowTaskOutput struct { // The priority of the task when it runs. The lower the number, the higher the // priority. Tasks that have the same priority are scheduled in parallel. - Priority *int32 + Priority int32 // The ARN of the IAM service role to use to publish Amazon Simple Notification // Service (Amazon SNS) notifications for maintenance window Run Command tasks. ServiceRoleArn *string // The targets where the task should run. - Targets []*types.Target + Targets []types.Target // The resource that the task used during execution. For RUN_COMMAND and AUTOMATION // task types, the TaskArn is the Systems Manager Document name/ARN. For LAMBDA @@ -87,7 +87,7 @@ type GetMaintenanceWindowTaskOutput struct { // the Parameters option in the TaskInvocationParameters structure. For information // about how Systems Manager handles these options for the supported maintenance // window task types, see MaintenanceWindowTaskInvocationParameters. - TaskParameters map[string]*types.MaintenanceWindowTaskParameterValueExpression + TaskParameters map[string]types.MaintenanceWindowTaskParameterValueExpression // The type of task to run. TaskType types.MaintenanceWindowTaskType diff --git a/service/ssm/api_op_GetOpsSummary.go b/service/ssm/api_op_GetOpsSummary.go index 2036ba304d1..9cef14adca5 100644 --- a/service/ssm/api_op_GetOpsSummary.go +++ b/service/ssm/api_op_GetOpsSummary.go @@ -31,20 +31,20 @@ type GetOpsSummaryInput struct { // Optional aggregators that return counts of OpsItems based on one or more // expressions. - Aggregators []*types.OpsAggregator + Aggregators []types.OpsAggregator // Optional filters used to scope down the returned OpsItems. - Filters []*types.OpsFilter + Filters []types.OpsFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string // The OpsItem data type to return. - ResultAttributes []*types.OpsResultAttribute + ResultAttributes []types.OpsResultAttribute // Specify the name of a resource data sync to get. SyncName *string @@ -53,7 +53,7 @@ type GetOpsSummaryInput struct { type GetOpsSummaryOutput struct { // The list of aggregated and filtered OpsItems. - Entities []*types.OpsEntity + Entities []types.OpsEntity // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/ssm/api_op_GetParameter.go b/service/ssm/api_op_GetParameter.go index 30ff70051fd..7493441395e 100644 --- a/service/ssm/api_op_GetParameter.go +++ b/service/ssm/api_op_GetParameter.go @@ -37,7 +37,7 @@ type GetParameterInput struct { // Return decrypted values for secure string parameters. This flag is ignored for // String and StringList parameter types. - WithDecryption *bool + WithDecryption bool } type GetParameterOutput struct { diff --git a/service/ssm/api_op_GetParameterHistory.go b/service/ssm/api_op_GetParameterHistory.go index 34e1fd0eb82..0cf29e67116 100644 --- a/service/ssm/api_op_GetParameterHistory.go +++ b/service/ssm/api_op_GetParameterHistory.go @@ -36,7 +36,7 @@ type GetParameterHistoryInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -44,7 +44,7 @@ type GetParameterHistoryInput struct { // Return decrypted values for secure string parameters. This flag is ignored for // String and StringList parameter types. - WithDecryption *bool + WithDecryption bool } type GetParameterHistoryOutput struct { @@ -54,7 +54,7 @@ type GetParameterHistoryOutput struct { NextToken *string // A list of parameters returned by the request. - Parameters []*types.ParameterHistory + Parameters []types.ParameterHistory // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_GetParameters.go b/service/ssm/api_op_GetParameters.go index b4d7e3fb8d7..6f2cbe50d64 100644 --- a/service/ssm/api_op_GetParameters.go +++ b/service/ssm/api_op_GetParameters.go @@ -33,21 +33,21 @@ type GetParametersInput struct { // Names of the parameters for which you want to query information. // // This member is required. - Names []*string + Names []string // Return decrypted secure string value. Return decrypted values for secure string // parameters. This flag is ignored for String and StringList parameter types. - WithDecryption *bool + WithDecryption bool } type GetParametersOutput struct { // A list of parameters that are not formatted correctly or do not run during an // execution. - InvalidParameters []*string + InvalidParameters []string // A list of details for a parameter. - Parameters []*types.Parameter + Parameters []types.Parameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_GetParametersByPath.go b/service/ssm/api_op_GetParametersByPath.go index ba57427a647..7671d335c3a 100644 --- a/service/ssm/api_op_GetParametersByPath.go +++ b/service/ssm/api_op_GetParametersByPath.go @@ -46,7 +46,7 @@ type GetParametersByPathInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -54,17 +54,17 @@ type GetParametersByPathInput struct { // Filters to limit the request results. For GetParametersByPath, the following // filter Key names are supported: Type, KeyId, Label, and DataType. The following // Key values are not supported for GetParametersByPath: tag, Name, Path, and Tier. - ParameterFilters []*types.ParameterStringFilter + ParameterFilters []types.ParameterStringFilter // Retrieve all parameters within a hierarchy. If a user has access to a path, then // the user can access all levels of that path. For example, if a user has // permission to access path /a, then the user can also access /a/b. Even if a user // has explicitly been denied access in IAM for parameter /a/b, they can still call // the GetParametersByPath API action recursively for /a and view /a/b. - Recursive *bool + Recursive bool // Retrieve all parameters in a hierarchy with their value decrypted. - WithDecryption *bool + WithDecryption bool } type GetParametersByPathOutput struct { @@ -74,7 +74,7 @@ type GetParametersByPathOutput struct { NextToken *string // A list of parameters found in the specified hierarchy. - Parameters []*types.Parameter + Parameters []types.Parameter // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_GetPatchBaseline.go b/service/ssm/api_op_GetPatchBaseline.go index 9fd6f138b2d..24543583487 100644 --- a/service/ssm/api_op_GetPatchBaseline.go +++ b/service/ssm/api_op_GetPatchBaseline.go @@ -42,7 +42,7 @@ type GetPatchBaselineOutput struct { ApprovalRules *types.PatchRuleGroup // A list of explicitly approved patches for the baseline. - ApprovedPatches []*string + ApprovedPatches []string // Returns the specified compliance severity level for approved patches in the // patch baseline. @@ -51,7 +51,7 @@ type GetPatchBaselineOutput struct { // Indicates whether the list of approved patches includes non-security updates // that should be applied to the instances. The default value is 'false'. Applies // to Linux instances only. - ApprovedPatchesEnableNonSecurity *bool + ApprovedPatchesEnableNonSecurity bool // The ID of the retrieved patch baseline. BaselineId *string @@ -75,10 +75,10 @@ type GetPatchBaselineOutput struct { OperatingSystem types.OperatingSystem // Patch groups included in the patch baseline. - PatchGroups []*string + PatchGroups []string // A list of explicitly rejected patches for the baseline. - RejectedPatches []*string + RejectedPatches []string // The action specified to take on patches included in the RejectedPatches list. A // patch can be allowed only if it is a dependency of another package, or blocked @@ -87,7 +87,7 @@ type GetPatchBaselineOutput struct { // Information about the patches to use to update the instances, including target // operating systems and source repositories. Applies to Linux instances only. - Sources []*types.PatchSource + Sources []types.PatchSource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_LabelParameterVersion.go b/service/ssm/api_op_LabelParameterVersion.go index 2971e95234e..60f226c59f4 100644 --- a/service/ssm/api_op_LabelParameterVersion.go +++ b/service/ssm/api_op_LabelParameterVersion.go @@ -64,7 +64,7 @@ type LabelParameterVersionInput struct { // One or more labels to attach to the specified parameter version. // // This member is required. - Labels []*string + Labels []string // The parameter name on which you want to attach one or more labels. // @@ -74,7 +74,7 @@ type LabelParameterVersionInput struct { // The specific version of the parameter on which you want to attach one or more // labels. If no version is specified, the system attaches the label to the latest // version. - ParameterVersion *int64 + ParameterVersion int64 } type LabelParameterVersionOutput struct { @@ -83,10 +83,10 @@ type LabelParameterVersionOutput struct { // requirements, see Labeling parameters // (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html) // in the AWS Systems Manager User Guide. - InvalidLabels []*string + InvalidLabels []string // The version of the parameter that has been labeled. - ParameterVersion *int64 + ParameterVersion int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_ListAssociationVersions.go b/service/ssm/api_op_ListAssociationVersions.go index 550e451f4f6..4f01b27e601 100644 --- a/service/ssm/api_op_ListAssociationVersions.go +++ b/service/ssm/api_op_ListAssociationVersions.go @@ -36,7 +36,7 @@ type ListAssociationVersionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -46,7 +46,7 @@ type ListAssociationVersionsOutput struct { // Information about all versions of the association for the specified association // ID. - AssociationVersions []*types.AssociationVersionInfo + AssociationVersions []types.AssociationVersionInfo // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/ssm/api_op_ListAssociations.go b/service/ssm/api_op_ListAssociations.go index 76052b43853..b54717c794f 100644 --- a/service/ssm/api_op_ListAssociations.go +++ b/service/ssm/api_op_ListAssociations.go @@ -32,11 +32,11 @@ func (c *Client) ListAssociations(ctx context.Context, params *ListAssociationsI type ListAssociationsInput struct { // One or more filters. Use a filter to return a more specific list of results. - AssociationFilterList []*types.AssociationFilter + AssociationFilterList []types.AssociationFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -46,7 +46,7 @@ type ListAssociationsInput struct { type ListAssociationsOutput struct { // The associations. - Associations []*types.Association + Associations []types.Association // The token to use when requesting the next set of items. If there are no // additional items to return, the string is empty. diff --git a/service/ssm/api_op_ListCommandInvocations.go b/service/ssm/api_op_ListCommandInvocations.go index 19ef33d5f57..8bb77fe8b3d 100644 --- a/service/ssm/api_op_ListCommandInvocations.go +++ b/service/ssm/api_op_ListCommandInvocations.go @@ -38,11 +38,11 @@ type ListCommandInvocationsInput struct { // (Optional) If set this returns the response of the command executions and any // command output. By default this is set to False. - Details *bool + Details bool // (Optional) One or more filters. Use a filter to return a more specific list of // results. - Filters []*types.CommandFilter + Filters []types.CommandFilter // (Optional) The command execution details for a specific instance ID. InstanceId *string @@ -50,7 +50,7 @@ type ListCommandInvocationsInput struct { // (Optional) The maximum number of items to return for this call. The call also // returns a token that you can specify in a subsequent call to get the next set of // results. - MaxResults *int32 + MaxResults int32 // (Optional) The token for the next set of items to return. (You received this // token from a previous call.) @@ -60,7 +60,7 @@ type ListCommandInvocationsInput struct { type ListCommandInvocationsOutput struct { // (Optional) A list of all invocations. - CommandInvocations []*types.CommandInvocation + CommandInvocations []types.CommandInvocation // (Optional) The token for the next set of items to return. (You received this // token from a previous call.) diff --git a/service/ssm/api_op_ListCommands.go b/service/ssm/api_op_ListCommands.go index 49ce33c2d88..6ff520d7976 100644 --- a/service/ssm/api_op_ListCommands.go +++ b/service/ssm/api_op_ListCommands.go @@ -34,7 +34,7 @@ type ListCommandsInput struct { // (Optional) One or more filters. Use a filter to return a more specific list of // results. - Filters []*types.CommandFilter + Filters []types.CommandFilter // (Optional) Lists commands issued against this instance ID. You can't specify an // instance ID in the same command that you specify Status = Pending. This is @@ -44,7 +44,7 @@ type ListCommandsInput struct { // (Optional) The maximum number of items to return for this call. The call also // returns a token that you can specify in a subsequent call to get the next set of // results. - MaxResults *int32 + MaxResults int32 // (Optional) The token for the next set of items to return. (You received this // token from a previous call.) @@ -54,7 +54,7 @@ type ListCommandsInput struct { type ListCommandsOutput struct { // (Optional) The list of commands requested by the user. - Commands []*types.Command + Commands []types.Command // (Optional) The token for the next set of items to return. (You received this // token from a previous call.) diff --git a/service/ssm/api_op_ListComplianceItems.go b/service/ssm/api_op_ListComplianceItems.go index 8e18603e8d1..89c6f919cc0 100644 --- a/service/ssm/api_op_ListComplianceItems.go +++ b/service/ssm/api_op_ListComplianceItems.go @@ -34,28 +34,28 @@ type ListComplianceItemsInput struct { // One or more compliance filters. Use a filter to return a more specific list of // results. - Filters []*types.ComplianceStringFilter + Filters []types.ComplianceStringFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string // The ID for the resources from which to get compliance information. Currently, // you can only specify one resource ID. - ResourceIds []*string + ResourceIds []string // The type of resource from which to get compliance information. Currently, the // only supported resource type is ManagedInstance. - ResourceTypes []*string + ResourceTypes []string } type ListComplianceItemsOutput struct { // A list of compliance information for the specified resource ID. - ComplianceItems []*types.ComplianceItem + ComplianceItems []types.ComplianceItem // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/ssm/api_op_ListComplianceSummaries.go b/service/ssm/api_op_ListComplianceSummaries.go index 61d30d7f482..e0009482749 100644 --- a/service/ssm/api_op_ListComplianceSummaries.go +++ b/service/ssm/api_op_ListComplianceSummaries.go @@ -34,12 +34,12 @@ type ListComplianceSummariesInput struct { // One or more compliance or inventory filters. Use a filter to return a more // specific list of results. - Filters []*types.ComplianceStringFilter + Filters []types.ComplianceStringFilter // The maximum number of items to return for this call. Currently, you can specify // null or 50. The call also returns a token that you can specify in a subsequent // call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -50,7 +50,7 @@ type ListComplianceSummariesOutput struct { // A list of compliant and non-compliant summary counts based on compliance types. // For example, this call returns State Manager associations, patches, or custom // compliance types according to the filter criteria that you specified. - ComplianceSummaryItems []*types.ComplianceSummaryItem + ComplianceSummaryItems []types.ComplianceSummaryItem // The token for the next set of items to return. Use this token to get the next // set of results. diff --git a/service/ssm/api_op_ListDocumentVersions.go b/service/ssm/api_op_ListDocumentVersions.go index a6303e18c0c..a1703674355 100644 --- a/service/ssm/api_op_ListDocumentVersions.go +++ b/service/ssm/api_op_ListDocumentVersions.go @@ -36,7 +36,7 @@ type ListDocumentVersionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -46,7 +46,7 @@ type ListDocumentVersionsInput struct { type ListDocumentVersionsOutput struct { // The document versions. - DocumentVersions []*types.DocumentVersionInfo + DocumentVersions []types.DocumentVersionInfo // The token to use when requesting the next set of items. If there are no // additional items to return, the string is empty. diff --git a/service/ssm/api_op_ListDocuments.go b/service/ssm/api_op_ListDocuments.go index e9333b078ba..11b24c0eee2 100644 --- a/service/ssm/api_op_ListDocuments.go +++ b/service/ssm/api_op_ListDocuments.go @@ -31,7 +31,7 @@ func (c *Client) ListDocuments(ctx context.Context, params *ListDocumentsInput, type ListDocumentsInput struct { // This data type is deprecated. Instead, use Filters. - DocumentFilterList []*types.DocumentFilter + DocumentFilterList []types.DocumentFilter // One or more DocumentKeyValuesFilter objects. Use a filter to return a more // specific list of results. For keys, you can specify one or more key-value pair @@ -39,11 +39,11 @@ type ListDocumentsInput struct { // PlatformTypes, DocumentType, and TargetType. For example, to return documents // you own use Key=Owner,Values=Self. To specify a custom key-value pair, use the // format Key=tag:tagName,Values=valueName. - Filters []*types.DocumentKeyValuesFilter + Filters []types.DocumentKeyValuesFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -53,7 +53,7 @@ type ListDocumentsInput struct { type ListDocumentsOutput struct { // The names of the Systems Manager documents. - DocumentIdentifiers []*types.DocumentIdentifier + DocumentIdentifiers []types.DocumentIdentifier // The token to use when requesting the next set of items. If there are no // additional items to return, the string is empty. diff --git a/service/ssm/api_op_ListInventoryEntries.go b/service/ssm/api_op_ListInventoryEntries.go index c75c00e20f8..7a695928824 100644 --- a/service/ssm/api_op_ListInventoryEntries.go +++ b/service/ssm/api_op_ListInventoryEntries.go @@ -40,11 +40,11 @@ type ListInventoryEntriesInput struct { TypeName *string // One or more filters. Use a filter to return a more specific list of results. - Filters []*types.InventoryFilter + Filters []types.InventoryFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -57,7 +57,7 @@ type ListInventoryEntriesOutput struct { CaptureTime *string // A list of inventory items on the instance(s). - Entries []map[string]*string + Entries []map[string]string // The instance ID targeted by the request to query inventory information. InstanceId *string diff --git a/service/ssm/api_op_ListResourceComplianceSummaries.go b/service/ssm/api_op_ListResourceComplianceSummaries.go index ef45249ae3d..71f9b482042 100644 --- a/service/ssm/api_op_ListResourceComplianceSummaries.go +++ b/service/ssm/api_op_ListResourceComplianceSummaries.go @@ -32,11 +32,11 @@ func (c *Client) ListResourceComplianceSummaries(ctx context.Context, params *Li type ListResourceComplianceSummariesInput struct { // One or more filters. Use a filter to return a more specific list of results. - Filters []*types.ComplianceStringFilter + Filters []types.ComplianceStringFilter // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -52,7 +52,7 @@ type ListResourceComplianceSummariesOutput struct { // includes information about compliant and non-compliant State Manager // associations, patch status, or custom items according to the filter criteria // that you specify. - ResourceComplianceSummaryItems []*types.ResourceComplianceSummaryItem + ResourceComplianceSummaryItems []types.ResourceComplianceSummaryItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_ListResourceDataSync.go b/service/ssm/api_op_ListResourceDataSync.go index 1113911aeb2..8138502bfc9 100644 --- a/service/ssm/api_op_ListResourceDataSync.go +++ b/service/ssm/api_op_ListResourceDataSync.go @@ -39,7 +39,7 @@ type ListResourceDataSyncInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults *int32 + MaxResults int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -58,7 +58,7 @@ type ListResourceDataSyncOutput struct { NextToken *string // A list of your current Resource Data Sync configurations and their statuses. - ResourceDataSyncItems []*types.ResourceDataSyncItem + ResourceDataSyncItems []types.ResourceDataSyncItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_ListTagsForResource.go b/service/ssm/api_op_ListTagsForResource.go index 239ec125348..d4554e9bba1 100644 --- a/service/ssm/api_op_ListTagsForResource.go +++ b/service/ssm/api_op_ListTagsForResource.go @@ -43,7 +43,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // A list of tags. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_ModifyDocumentPermission.go b/service/ssm/api_op_ModifyDocumentPermission.go index 8962eba6e28..b61c4b8cb86 100644 --- a/service/ssm/api_op_ModifyDocumentPermission.go +++ b/service/ssm/api_op_ModifyDocumentPermission.go @@ -44,13 +44,13 @@ type ModifyDocumentPermissionInput struct { // The AWS user accounts that should have access to the document. The account IDs // can either be a group of account IDs or All. - AccountIdsToAdd []*string + AccountIdsToAdd []string // The AWS user accounts that should no longer have access to the document. The AWS // user account can either be a group of account IDs or All. This action has a // higher priority than AccountIdsToAdd. If you specify an account ID to add and // the same ID to remove, the system removes access to the document. - AccountIdsToRemove []*string + AccountIdsToRemove []string // (Optional) The version of the document to share. If it's not specified, the // system choose the Default version to share. diff --git a/service/ssm/api_op_PutComplianceItems.go b/service/ssm/api_op_PutComplianceItems.go index e65da3123d2..efdd75d2932 100644 --- a/service/ssm/api_op_PutComplianceItems.go +++ b/service/ssm/api_op_PutComplianceItems.go @@ -96,7 +96,7 @@ type PutComplianceItemsInput struct { // Classification, and so on. // // This member is required. - Items []*types.ComplianceItemEntry + Items []types.ComplianceItemEntry // Specify an ID for this resource. For a managed instance, this is the instance // ID. diff --git a/service/ssm/api_op_PutInventory.go b/service/ssm/api_op_PutInventory.go index ad73d5f5c11..34a14b1078d 100644 --- a/service/ssm/api_op_PutInventory.go +++ b/service/ssm/api_op_PutInventory.go @@ -39,7 +39,7 @@ type PutInventoryInput struct { // The inventory items that you want to add or update on instances. // // This member is required. - Items []*types.InventoryItem + Items []types.InventoryItem } type PutInventoryOutput struct { diff --git a/service/ssm/api_op_PutParameter.go b/service/ssm/api_op_PutParameter.go index 4d8f134b6aa..f5cfdfaa06f 100644 --- a/service/ssm/api_op_PutParameter.go +++ b/service/ssm/api_op_PutParameter.go @@ -116,7 +116,7 @@ type PutParameterInput struct { KeyId *string // Overwrite an existing parameter. If not specified, will default to "false". - Overwrite *bool + Overwrite bool // One or more policies to apply to a parameter. This action takes a JSON array. // Parameter Store supports the following policy types: Expiration: This policy @@ -152,7 +152,7 @@ type PutParameterInput struct { // // To add tags to an existing Systems Manager // parameter, use the AddTagsToResource action. - Tags []*types.Tag + Tags []types.Tag // The parameter tier to assign to a parameter. Parameter Store offers a standard // tier and an advanced tier for parameters. Standard parameters have a content @@ -233,7 +233,7 @@ type PutParameterOutput struct { // Manager documents (SSM documents). By default, if you don't specify a specific // version, the system returns the latest parameter value when a parameter is // called. - Version *int64 + Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_RegisterTargetWithMaintenanceWindow.go b/service/ssm/api_op_RegisterTargetWithMaintenanceWindow.go index 0bf7eea3dec..dfd9c2ad4be 100644 --- a/service/ssm/api_op_RegisterTargetWithMaintenanceWindow.go +++ b/service/ssm/api_op_RegisterTargetWithMaintenanceWindow.go @@ -55,7 +55,7 @@ type RegisterTargetWithMaintenanceWindowInput struct { // in the AWS Systems Manager User Guide. // // This member is required. - Targets []*types.Target + Targets []types.Target // The ID of the maintenance window the target should be registered with. // diff --git a/service/ssm/api_op_RegisterTaskWithMaintenanceWindow.go b/service/ssm/api_op_RegisterTaskWithMaintenanceWindow.go index fb6e8b332a9..3ed5f5041d6 100644 --- a/service/ssm/api_op_RegisterTaskWithMaintenanceWindow.go +++ b/service/ssm/api_op_RegisterTaskWithMaintenanceWindow.go @@ -45,7 +45,7 @@ type RegisterTaskWithMaintenanceWindowInput struct { // targets using the following format: Key=WindowTargetIds;,Values=, // // This member is required. - Targets []*types.Target + Targets []types.Target // The ARN of the task to run. // @@ -82,7 +82,7 @@ type RegisterTaskWithMaintenanceWindowInput struct { // The priority of the task in the maintenance window, the lower the number the // higher the priority. Tasks in a maintenance window are scheduled in priority // order with tasks that have the same priority scheduled in parallel. - Priority *int32 + Priority int32 // The ARN of the IAM service role for Systems Manager to assume when running a // maintenance window task. If you do not specify a service role ARN, Systems @@ -110,7 +110,7 @@ type RegisterTaskWithMaintenanceWindowInput struct { // instead use the Parameters option in the TaskInvocationParameters structure. For // information about how Systems Manager handles these options for the supported // maintenance window task types, see MaintenanceWindowTaskInvocationParameters. - TaskParameters map[string]*types.MaintenanceWindowTaskParameterValueExpression + TaskParameters map[string]types.MaintenanceWindowTaskParameterValueExpression } type RegisterTaskWithMaintenanceWindowOutput struct { diff --git a/service/ssm/api_op_RemoveTagsFromResource.go b/service/ssm/api_op_RemoveTagsFromResource.go index 2c4f11fa53e..096003e6485 100644 --- a/service/ssm/api_op_RemoveTagsFromResource.go +++ b/service/ssm/api_op_RemoveTagsFromResource.go @@ -50,7 +50,7 @@ type RemoveTagsFromResourceInput struct { // Tag keys that you want to remove from the specified resource. // // This member is required. - TagKeys []*string + TagKeys []string } type RemoveTagsFromResourceOutput struct { diff --git a/service/ssm/api_op_SendAutomationSignal.go b/service/ssm/api_op_SendAutomationSignal.go index d2246cd62e2..4f2ce0b81aa 100644 --- a/service/ssm/api_op_SendAutomationSignal.go +++ b/service/ssm/api_op_SendAutomationSignal.go @@ -49,7 +49,7 @@ type SendAutomationSignalInput struct { // StepName="step1" For the StopStep signal type, you must send the step execution // ID as the payload. For example: // StepExecutionId="97fff367-fc5a-4299-aed8-0123456789ab" - Payload map[string][]*string + Payload map[string][]string } type SendAutomationSignalOutput struct { diff --git a/service/ssm/api_op_SendCommand.go b/service/ssm/api_op_SendCommand.go index 87eddba38ac..826a52747cc 100644 --- a/service/ssm/api_op_SendCommand.go +++ b/service/ssm/api_op_SendCommand.go @@ -67,7 +67,7 @@ type SendCommandInput struct { // see Using targets and rate controls to send commands to a fleet // (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html) // in the AWS Systems Manager User Guide. - InstanceIds []*string + InstanceIds []string // (Optional) The maximum number of instances that are allowed to run the command // at the same time. You can specify a number such as 10 or a percentage such as @@ -101,7 +101,7 @@ type SendCommandInput struct { OutputS3Region *string // The required and optional parameters specified in the document being run. - Parameters map[string][]*string + Parameters map[string][]string // The ARN of the IAM service role to use to publish Amazon Simple Notification // Service (Amazon SNS) notifications for Run Command commands. @@ -116,11 +116,11 @@ type SendCommandInput struct { // about how to use targets, see Sending commands to a fleet // (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html) // in the AWS Systems Manager User Guide. - Targets []*types.Target + Targets []types.Target // If this time is reached and the command has not already started running, it will // not run. - TimeoutSeconds *int32 + TimeoutSeconds int32 } type SendCommandOutput struct { diff --git a/service/ssm/api_op_StartAssociationsOnce.go b/service/ssm/api_op_StartAssociationsOnce.go index 1d513f6da80..d8f541e4c94 100644 --- a/service/ssm/api_op_StartAssociationsOnce.go +++ b/service/ssm/api_op_StartAssociationsOnce.go @@ -32,7 +32,7 @@ type StartAssociationsOnceInput struct { // The association IDs that you want to run immediately and only one time. // // This member is required. - AssociationIds []*string + AssociationIds []string } type StartAssociationsOnceOutput struct { diff --git a/service/ssm/api_op_StartAutomationExecution.go b/service/ssm/api_op_StartAutomationExecution.go index 4c8c9817487..1d4918a070f 100644 --- a/service/ssm/api_op_StartAutomationExecution.go +++ b/service/ssm/api_op_StartAutomationExecution.go @@ -66,7 +66,7 @@ type StartAutomationExecutionInput struct { // A key-value map of execution parameters, which match the declared parameters in // the Automation document. - Parameters map[string][]*string + Parameters map[string][]string // Optional metadata that you assign to a resource. You can specify a maximum of // five tags for an automation. Tags enable you to categorize a resource in @@ -81,7 +81,7 @@ type StartAutomationExecutionInput struct { // // To add tags to an existing // patch baseline, use the AddTagsToResource action. - Tags []*types.Tag + Tags []types.Tag // A location is a combination of AWS Regions and/or AWS accounts where you want to // run the Automation. Use this action to start an Automation in multiple Regions @@ -89,11 +89,11 @@ type StartAutomationExecutionInput struct { // multiple AWS Regions and accounts // (https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-automation-multiple-accounts-and-regions.html) // in the AWS Systems Manager User Guide. - TargetLocations []*types.TargetLocation + TargetLocations []types.TargetLocation // A key-value mapping of document parameters to target resources. Both Targets and // TargetMaps cannot be specified together. - TargetMaps []map[string][]*string + TargetMaps []map[string][]string // The name of the parameter used as the target resource for the rate-controlled // execution. Required if you specify targets. @@ -101,7 +101,7 @@ type StartAutomationExecutionInput struct { // A key-value mapping to target resources. Required if you specify // TargetParameterName. - Targets []*types.Target + Targets []types.Target } type StartAutomationExecutionOutput struct { diff --git a/service/ssm/api_op_StartSession.go b/service/ssm/api_op_StartSession.go index 9cc12508ef0..1b9eab1b145 100644 --- a/service/ssm/api_op_StartSession.go +++ b/service/ssm/api_op_StartSession.go @@ -50,7 +50,7 @@ type StartSessionInput struct { DocumentName *string // Reserved for future use. - Parameters map[string][]*string + Parameters map[string][]string } type StartSessionOutput struct { diff --git a/service/ssm/api_op_UpdateAssociation.go b/service/ssm/api_op_UpdateAssociation.go index ba70f4c3a8f..14afdebf58c 100644 --- a/service/ssm/api_op_UpdateAssociation.go +++ b/service/ssm/api_op_UpdateAssociation.go @@ -50,7 +50,7 @@ type UpdateAssociationInput struct { // you update the association from the command line. This parameter forces the // association to run immediately after updating it and according to the interval // specified. - ApplyOnlyAtCronInterval *bool + ApplyOnlyAtCronInterval bool // The name of the association that you want to update. AssociationName *string @@ -112,7 +112,7 @@ type UpdateAssociationInput struct { // The parameters you want to update for the association. If you create a parameter // using Parameter Store, you can reference the parameter using // {{ssm:parameter-name}} - Parameters map[string][]*string + Parameters map[string][]string // The cron expression used to schedule the association that you want to update. ScheduleExpression *string @@ -129,7 +129,7 @@ type UpdateAssociationInput struct { SyncCompliance types.AssociationSyncCompliance // The targets of the association. - Targets []*types.Target + Targets []types.Target } type UpdateAssociationOutput struct { diff --git a/service/ssm/api_op_UpdateDocument.go b/service/ssm/api_op_UpdateDocument.go index 686ca2281a5..d110850ee45 100644 --- a/service/ssm/api_op_UpdateDocument.go +++ b/service/ssm/api_op_UpdateDocument.go @@ -41,7 +41,7 @@ type UpdateDocumentInput struct { // A list of key and value pairs that describe attachments to a version of a // document. - Attachments []*types.AttachmentsSource + Attachments []types.AttachmentsSource // Specify the document format for the new document version. Systems Manager // supports JSON and YAML documents. JSON is the default format. diff --git a/service/ssm/api_op_UpdateMaintenanceWindow.go b/service/ssm/api_op_UpdateMaintenanceWindow.go index 8ad5decff98..1f6da095047 100644 --- a/service/ssm/api_op_UpdateMaintenanceWindow.go +++ b/service/ssm/api_op_UpdateMaintenanceWindow.go @@ -41,20 +41,20 @@ type UpdateMaintenanceWindowInput struct { // Whether targets must be registered with the maintenance window before tasks can // be defined for those targets. - AllowUnassociatedTargets *bool + AllowUnassociatedTargets bool // The number of hours before the end of the maintenance window that Systems // Manager stops scheduling new tasks for execution. - Cutoff *int32 + Cutoff int32 // An optional description for the update request. Description *string // The duration of the maintenance window in hours. - Duration *int32 + Duration int32 // Whether the maintenance window is enabled. - Enabled *bool + Enabled bool // The date and time, in ISO-8601 Extended format, for when you want the // maintenance window to become inactive. EndDate allows you to set a date and time @@ -67,7 +67,7 @@ type UpdateMaintenanceWindowInput struct { // If True, then all fields that are required by the CreateMaintenanceWindow action // are also required for this API request. Optional fields that are not specified // are set to null. - Replace *bool + Replace bool // The schedule of the maintenance window in the form of a cron or rate expression. Schedule *string @@ -77,7 +77,7 @@ type UpdateMaintenanceWindowInput struct { // cron expression schedules a maintenance window to run the third Tuesday of every // month at 11:30 PM. cron(0 30 23 ? * TUE#3 *) If the schedule offset is 2, the // maintenance window won't run until two days later. - ScheduleOffset *int32 + ScheduleOffset int32 // The time zone that the scheduled maintenance window executions are based on, in // Internet Assigned Numbers Authority (IANA) format. For example: @@ -96,20 +96,20 @@ type UpdateMaintenanceWindowOutput struct { // Whether targets must be registered with the maintenance window before tasks can // be defined for those targets. - AllowUnassociatedTargets *bool + AllowUnassociatedTargets bool // The number of hours before the end of the maintenance window that Systems // Manager stops scheduling new tasks for execution. - Cutoff *int32 + Cutoff int32 // An optional description of the update. Description *string // The duration of the maintenance window in hours. - Duration *int32 + Duration int32 // Whether the maintenance window is enabled. - Enabled *bool + Enabled bool // The date and time, in ISO-8601 Extended format, for when the maintenance window // is scheduled to become inactive. The maintenance window will not run after this @@ -124,7 +124,7 @@ type UpdateMaintenanceWindowOutput struct { // The number of days to wait to run a maintenance window after the scheduled CRON // expression date and time. - ScheduleOffset *int32 + ScheduleOffset int32 // The time zone that the scheduled maintenance window executions are based on, in // Internet Assigned Numbers Authority (IANA) format. For example: diff --git a/service/ssm/api_op_UpdateMaintenanceWindowTarget.go b/service/ssm/api_op_UpdateMaintenanceWindowTarget.go index 8814d3ade3c..cab89f63a71 100644 --- a/service/ssm/api_op_UpdateMaintenanceWindowTarget.go +++ b/service/ssm/api_op_UpdateMaintenanceWindowTarget.go @@ -70,10 +70,10 @@ type UpdateMaintenanceWindowTargetInput struct { // If True, then all fields that are required by the // RegisterTargetWithMaintenanceWindow action are also required for this API // request. Optional fields that are not specified are set to null. - Replace *bool + Replace bool // The targets to add or replace. - Targets []*types.Target + Targets []types.Target } type UpdateMaintenanceWindowTargetOutput struct { @@ -88,7 +88,7 @@ type UpdateMaintenanceWindowTargetOutput struct { OwnerInformation *string // The updated targets. - Targets []*types.Target + Targets []types.Target // The maintenance window ID specified in the update request. WindowId *string diff --git a/service/ssm/api_op_UpdateMaintenanceWindowTask.go b/service/ssm/api_op_UpdateMaintenanceWindowTask.go index cf1a647029d..f6e7866a1f0 100644 --- a/service/ssm/api_op_UpdateMaintenanceWindowTask.go +++ b/service/ssm/api_op_UpdateMaintenanceWindowTask.go @@ -92,12 +92,12 @@ type UpdateMaintenanceWindowTaskInput struct { // The new task priority to specify. The lower the number, the higher the priority. // Tasks that have the same priority are scheduled in parallel. - Priority *int32 + Priority int32 // If True, then all fields that are required by the // RegisterTaskWithMaintenanceWindow action are also required for this API request. // Optional fields that are not specified are set to null. - Replace *bool + Replace bool // The ARN of the IAM service role for Systems Manager to assume when running a // maintenance window task. If you do not specify a service role ARN, Systems @@ -119,7 +119,7 @@ type UpdateMaintenanceWindowTaskInput struct { // The targets (either instances or tags) to modify. Instances are specified using // Key=instanceids,Values=instanceID_1,instanceID_2. Tags are specified using // Key=tag_name,Values=tag_value. - Targets []*types.Target + Targets []types.Target // The task ARN to modify. TaskArn *string @@ -143,7 +143,7 @@ type UpdateMaintenanceWindowTaskInput struct { // see MaintenanceWindowTaskInvocationParameters. The map has the following format: // Key: string, between 1 and 255 characters Value: an array of strings, each // string is between 1 and 255 characters - TaskParameters map[string]*types.MaintenanceWindowTaskParameterValueExpression + TaskParameters map[string]types.MaintenanceWindowTaskParameterValueExpression } type UpdateMaintenanceWindowTaskOutput struct { @@ -168,14 +168,14 @@ type UpdateMaintenanceWindowTaskOutput struct { Name *string // The updated priority value. - Priority *int32 + Priority int32 // The ARN of the IAM service role to use to publish Amazon Simple Notification // Service (Amazon SNS) notifications for maintenance window Run Command tasks. ServiceRoleArn *string // The updated target values. - Targets []*types.Target + Targets []types.Target // The updated task ARN value. TaskArn *string @@ -188,7 +188,7 @@ type UpdateMaintenanceWindowTaskOutput struct { // the TaskInvocationParameters structure. For information about how Systems // Manager handles these options for the supported maintenance window task types, // see MaintenanceWindowTaskInvocationParameters. - TaskParameters map[string]*types.MaintenanceWindowTaskParameterValueExpression + TaskParameters map[string]types.MaintenanceWindowTaskParameterValueExpression // The ID of the maintenance window that was updated. WindowId *string diff --git a/service/ssm/api_op_UpdateOpsItem.go b/service/ssm/api_op_UpdateOpsItem.go index 5da8ea056bf..31a65082eed 100644 --- a/service/ssm/api_op_UpdateOpsItem.go +++ b/service/ssm/api_op_UpdateOpsItem.go @@ -52,7 +52,7 @@ type UpdateOpsItemInput struct { // The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when // this OpsItem is edited or changed. - Notifications []*types.OpsItemNotification + Notifications []types.OpsItemNotification // Add new keys or edit existing key-value pairs of the OperationalData map in the // OpsItem object. Operational data is custom data that provides useful reference @@ -72,10 +72,10 @@ type UpdateOpsItemInput struct { // CLI example commands that use these keys, see Creating OpsItems manually // (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems) // in the AWS Systems Manager User Guide. - OperationalData map[string]*types.OpsItemDataValue + OperationalData map[string]types.OpsItemDataValue // Keys that you want to remove from the OperationalData map. - OperationalDataToDelete []*string + OperationalDataToDelete []string // The importance of this OpsItem in relation to other OpsItems in the system. Priority *int32 @@ -83,7 +83,7 @@ type UpdateOpsItemInput struct { // One or more OpsItems that share something in common with the current OpsItems. // For example, related OpsItems can include OpsItems with similar error messages, // impacted resources, or statuses for the impacted resource. - RelatedOpsItems []*types.RelatedOpsItem + RelatedOpsItems []types.RelatedOpsItem // Specify a new severity for an OpsItem. Severity *string diff --git a/service/ssm/api_op_UpdatePatchBaseline.go b/service/ssm/api_op_UpdatePatchBaseline.go index 88d224b7fed..0f8de22f7c2 100644 --- a/service/ssm/api_op_UpdatePatchBaseline.go +++ b/service/ssm/api_op_UpdatePatchBaseline.go @@ -46,7 +46,7 @@ type UpdatePatchBaselineInput struct { // package name formats for approved and rejected patch lists // (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) // in the AWS Systems Manager User Guide. - ApprovedPatches []*string + ApprovedPatches []string // Assigns a new compliance severity level to an existing patch baseline. ApprovedPatchesComplianceLevel types.PatchComplianceLevel @@ -54,7 +54,7 @@ type UpdatePatchBaselineInput struct { // Indicates whether the list of approved patches includes non-security updates // that should be applied to the instances. The default value is 'false'. Applies // to Linux instances only. - ApprovedPatchesEnableNonSecurity *bool + ApprovedPatchesEnableNonSecurity bool // A description of the patch baseline. Description *string @@ -70,7 +70,7 @@ type UpdatePatchBaselineInput struct { // package name formats for approved and rejected patch lists // (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html) // in the AWS Systems Manager User Guide. - RejectedPatches []*string + RejectedPatches []string // The action for Patch Manager to take on patches included in the RejectedPackages // list. @@ -90,11 +90,11 @@ type UpdatePatchBaselineInput struct { // If True, then all fields that are required by the CreatePatchBaseline action are // also required for this API request. Optional fields that are not specified are // set to null. - Replace *bool + Replace bool // Information about the patches to use to update the instances, including target // operating systems and source repositories. Applies to Linux instances only. - Sources []*types.PatchSource + Sources []types.PatchSource } type UpdatePatchBaselineOutput struct { @@ -103,7 +103,7 @@ type UpdatePatchBaselineOutput struct { ApprovalRules *types.PatchRuleGroup // A list of explicitly approved patches for the baseline. - ApprovedPatches []*string + ApprovedPatches []string // The compliance severity level assigned to the patch baseline after the update // completed. @@ -112,7 +112,7 @@ type UpdatePatchBaselineOutput struct { // Indicates whether the list of approved patches includes non-security updates // that should be applied to the instances. The default value is 'false'. Applies // to Linux instances only. - ApprovedPatchesEnableNonSecurity *bool + ApprovedPatchesEnableNonSecurity bool // The ID of the deleted patch baseline. BaselineId *string @@ -136,7 +136,7 @@ type UpdatePatchBaselineOutput struct { OperatingSystem types.OperatingSystem // A list of explicitly rejected patches for the baseline. - RejectedPatches []*string + RejectedPatches []string // The action specified to take on patches included in the RejectedPatches list. A // patch can be allowed only if it is a dependency of another package, or blocked @@ -145,7 +145,7 @@ type UpdatePatchBaselineOutput struct { // Information about the patches to use to update the instances, including target // operating systems and source repositories. Applies to Linux instances only. - Sources []*types.PatchSource + Sources []types.PatchSource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/deserializers.go b/service/ssm/deserializers.go index aaea1610391..001fc43129b 100644 --- a/service/ssm/deserializers.go +++ b/service/ssm/deserializers.go @@ -18480,7 +18480,7 @@ func awsAwsjson11_deserializeErrorUnsupportedPlatformType(response *smithyhttp.R return output } -func awsAwsjson11_deserializeDocumentAccountIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccountIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18493,21 +18493,21 @@ func awsAwsjson11_deserializeDocumentAccountIdList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -18516,7 +18516,7 @@ func awsAwsjson11_deserializeDocumentAccountIdList(v *[]*string, value interface return nil } -func awsAwsjson11_deserializeDocumentAccounts(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccounts(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18529,21 +18529,21 @@ func awsAwsjson11_deserializeDocumentAccounts(v *[]*string, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Account to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -18580,7 +18580,7 @@ func awsAwsjson11_deserializeDocumentAccountSharingInfo(v **types.AccountSharing if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "SharedDocumentVersion": @@ -18589,7 +18589,7 @@ func awsAwsjson11_deserializeDocumentAccountSharingInfo(v **types.AccountSharing if !ok { return fmt.Errorf("expected SharedDocumentVersion to be of type string, got %T instead", value) } - sv.SharedDocumentVersion = &jtv + sv.SharedDocumentVersion = ptr.String(jtv) } default: @@ -18601,7 +18601,7 @@ func awsAwsjson11_deserializeDocumentAccountSharingInfo(v **types.AccountSharing return nil } -func awsAwsjson11_deserializeDocumentAccountSharingInfoList(v *[]*types.AccountSharingInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccountSharingInfoList(v *[]types.AccountSharingInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18614,18 +18614,20 @@ func awsAwsjson11_deserializeDocumentAccountSharingInfoList(v *[]*types.AccountS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AccountSharingInfo + var cv []types.AccountSharingInfo if *v == nil { - cv = []*types.AccountSharingInfo{} + cv = []types.AccountSharingInfo{} } else { cv = *v } for _, value := range shape { - var col *types.AccountSharingInfo - if err := awsAwsjson11_deserializeDocumentAccountSharingInfo(&col, value); err != nil { + var col types.AccountSharingInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAccountSharingInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18661,7 +18663,7 @@ func awsAwsjson11_deserializeDocumentActivation(v **types.Activation, value inte if !ok { return fmt.Errorf("expected ActivationId to be of type string, got %T instead", value) } - sv.ActivationId = &jtv + sv.ActivationId = ptr.String(jtv) } case "CreatedDate": @@ -18683,7 +18685,7 @@ func awsAwsjson11_deserializeDocumentActivation(v **types.Activation, value inte if !ok { return fmt.Errorf("expected DefaultInstanceName to be of type string, got %T instead", value) } - sv.DefaultInstanceName = &jtv + sv.DefaultInstanceName = ptr.String(jtv) } case "Description": @@ -18692,7 +18694,7 @@ func awsAwsjson11_deserializeDocumentActivation(v **types.Activation, value inte if !ok { return fmt.Errorf("expected ActivationDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ExpirationDate": @@ -18714,7 +18716,7 @@ func awsAwsjson11_deserializeDocumentActivation(v **types.Activation, value inte if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Expired = &jtv + sv.Expired = jtv } case "IamRole": @@ -18723,7 +18725,7 @@ func awsAwsjson11_deserializeDocumentActivation(v **types.Activation, value inte if !ok { return fmt.Errorf("expected IamRole to be of type string, got %T instead", value) } - sv.IamRole = &jtv + sv.IamRole = ptr.String(jtv) } case "RegistrationLimit": @@ -18736,7 +18738,7 @@ func awsAwsjson11_deserializeDocumentActivation(v **types.Activation, value inte if err != nil { return err } - sv.RegistrationLimit = ptr.Int32(int32(i64)) + sv.RegistrationLimit = int32(i64) } case "RegistrationsCount": @@ -18749,7 +18751,7 @@ func awsAwsjson11_deserializeDocumentActivation(v **types.Activation, value inte if err != nil { return err } - sv.RegistrationsCount = ptr.Int32(int32(i64)) + sv.RegistrationsCount = int32(i64) } case "Tags": @@ -18766,7 +18768,7 @@ func awsAwsjson11_deserializeDocumentActivation(v **types.Activation, value inte return nil } -func awsAwsjson11_deserializeDocumentActivationList(v *[]*types.Activation, value interface{}) error { +func awsAwsjson11_deserializeDocumentActivationList(v *[]types.Activation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18779,18 +18781,20 @@ func awsAwsjson11_deserializeDocumentActivationList(v *[]*types.Activation, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Activation + var cv []types.Activation if *v == nil { - cv = []*types.Activation{} + cv = []types.Activation{} } else { cv = *v } for _, value := range shape { - var col *types.Activation - if err := awsAwsjson11_deserializeDocumentActivation(&col, value); err != nil { + var col types.Activation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentActivation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -18826,7 +18830,7 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -18897,7 +18901,7 @@ func awsAwsjson11_deserializeDocumentAssociation(v **types.Association, value in if !ok { return fmt.Errorf("expected AssociationId to be of type string, got %T instead", value) } - sv.AssociationId = &jtv + sv.AssociationId = ptr.String(jtv) } case "AssociationName": @@ -18906,7 +18910,7 @@ func awsAwsjson11_deserializeDocumentAssociation(v **types.Association, value in if !ok { return fmt.Errorf("expected AssociationName to be of type string, got %T instead", value) } - sv.AssociationName = &jtv + sv.AssociationName = ptr.String(jtv) } case "AssociationVersion": @@ -18915,7 +18919,7 @@ func awsAwsjson11_deserializeDocumentAssociation(v **types.Association, value in if !ok { return fmt.Errorf("expected AssociationVersion to be of type string, got %T instead", value) } - sv.AssociationVersion = &jtv + sv.AssociationVersion = ptr.String(jtv) } case "DocumentVersion": @@ -18924,7 +18928,7 @@ func awsAwsjson11_deserializeDocumentAssociation(v **types.Association, value in if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "InstanceId": @@ -18933,7 +18937,7 @@ func awsAwsjson11_deserializeDocumentAssociation(v **types.Association, value in if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "LastExecutionDate": @@ -18955,7 +18959,7 @@ func awsAwsjson11_deserializeDocumentAssociation(v **types.Association, value in if !ok { return fmt.Errorf("expected DocumentARN to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Overview": @@ -18969,7 +18973,7 @@ func awsAwsjson11_deserializeDocumentAssociation(v **types.Association, value in if !ok { return fmt.Errorf("expected ScheduleExpression to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } case "Targets": @@ -19045,7 +19049,7 @@ func awsAwsjson11_deserializeDocumentAssociationDescription(v **types.Associatio if !ok { return fmt.Errorf("expected ApplyOnlyAtCronInterval to be of type *bool, got %T instead", value) } - sv.ApplyOnlyAtCronInterval = &jtv + sv.ApplyOnlyAtCronInterval = jtv } case "AssociationId": @@ -19054,7 +19058,7 @@ func awsAwsjson11_deserializeDocumentAssociationDescription(v **types.Associatio if !ok { return fmt.Errorf("expected AssociationId to be of type string, got %T instead", value) } - sv.AssociationId = &jtv + sv.AssociationId = ptr.String(jtv) } case "AssociationName": @@ -19063,7 +19067,7 @@ func awsAwsjson11_deserializeDocumentAssociationDescription(v **types.Associatio if !ok { return fmt.Errorf("expected AssociationName to be of type string, got %T instead", value) } - sv.AssociationName = &jtv + sv.AssociationName = ptr.String(jtv) } case "AssociationVersion": @@ -19072,7 +19076,7 @@ func awsAwsjson11_deserializeDocumentAssociationDescription(v **types.Associatio if !ok { return fmt.Errorf("expected AssociationVersion to be of type string, got %T instead", value) } - sv.AssociationVersion = &jtv + sv.AssociationVersion = ptr.String(jtv) } case "AutomationTargetParameterName": @@ -19081,7 +19085,7 @@ func awsAwsjson11_deserializeDocumentAssociationDescription(v **types.Associatio if !ok { return fmt.Errorf("expected AutomationTargetParameterName to be of type string, got %T instead", value) } - sv.AutomationTargetParameterName = &jtv + sv.AutomationTargetParameterName = ptr.String(jtv) } case "ComplianceSeverity": @@ -19112,7 +19116,7 @@ func awsAwsjson11_deserializeDocumentAssociationDescription(v **types.Associatio if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "InstanceId": @@ -19121,7 +19125,7 @@ func awsAwsjson11_deserializeDocumentAssociationDescription(v **types.Associatio if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "LastExecutionDate": @@ -19169,7 +19173,7 @@ func awsAwsjson11_deserializeDocumentAssociationDescription(v **types.Associatio if !ok { return fmt.Errorf("expected MaxConcurrency to be of type string, got %T instead", value) } - sv.MaxConcurrency = &jtv + sv.MaxConcurrency = ptr.String(jtv) } case "MaxErrors": @@ -19178,7 +19182,7 @@ func awsAwsjson11_deserializeDocumentAssociationDescription(v **types.Associatio if !ok { return fmt.Errorf("expected MaxErrors to be of type string, got %T instead", value) } - sv.MaxErrors = &jtv + sv.MaxErrors = ptr.String(jtv) } case "Name": @@ -19187,7 +19191,7 @@ func awsAwsjson11_deserializeDocumentAssociationDescription(v **types.Associatio if !ok { return fmt.Errorf("expected DocumentARN to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OutputLocation": @@ -19211,7 +19215,7 @@ func awsAwsjson11_deserializeDocumentAssociationDescription(v **types.Associatio if !ok { return fmt.Errorf("expected ScheduleExpression to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } case "Status": @@ -19242,7 +19246,7 @@ func awsAwsjson11_deserializeDocumentAssociationDescription(v **types.Associatio return nil } -func awsAwsjson11_deserializeDocumentAssociationDescriptionList(v *[]*types.AssociationDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssociationDescriptionList(v *[]types.AssociationDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19255,18 +19259,20 @@ func awsAwsjson11_deserializeDocumentAssociationDescriptionList(v *[]*types.Asso return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssociationDescription + var cv []types.AssociationDescription if *v == nil { - cv = []*types.AssociationDescription{} + cv = []types.AssociationDescription{} } else { cv = *v } for _, value := range shape { - var col *types.AssociationDescription - if err := awsAwsjson11_deserializeDocumentAssociationDescription(&col, value); err != nil { + var col types.AssociationDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAssociationDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19302,7 +19308,7 @@ func awsAwsjson11_deserializeDocumentAssociationDoesNotExist(v **types.Associati if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19342,7 +19348,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecution(v **types.AssociationE if !ok { return fmt.Errorf("expected AssociationId to be of type string, got %T instead", value) } - sv.AssociationId = &jtv + sv.AssociationId = ptr.String(jtv) } case "AssociationVersion": @@ -19351,7 +19357,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecution(v **types.AssociationE if !ok { return fmt.Errorf("expected AssociationVersion to be of type string, got %T instead", value) } - sv.AssociationVersion = &jtv + sv.AssociationVersion = ptr.String(jtv) } case "CreatedTime": @@ -19373,7 +19379,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecution(v **types.AssociationE if !ok { return fmt.Errorf("expected StatusName to be of type string, got %T instead", value) } - sv.DetailedStatus = &jtv + sv.DetailedStatus = ptr.String(jtv) } case "ExecutionId": @@ -19382,7 +19388,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecution(v **types.AssociationE if !ok { return fmt.Errorf("expected AssociationExecutionId to be of type string, got %T instead", value) } - sv.ExecutionId = &jtv + sv.ExecutionId = ptr.String(jtv) } case "LastExecutionDate": @@ -19404,7 +19410,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecution(v **types.AssociationE if !ok { return fmt.Errorf("expected ResourceCountByStatus to be of type string, got %T instead", value) } - sv.ResourceCountByStatus = &jtv + sv.ResourceCountByStatus = ptr.String(jtv) } case "Status": @@ -19413,7 +19419,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecution(v **types.AssociationE if !ok { return fmt.Errorf("expected StatusName to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -19453,7 +19459,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionDoesNotExist(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -19465,7 +19471,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionDoesNotExist(v **types. return nil } -func awsAwsjson11_deserializeDocumentAssociationExecutionsList(v *[]*types.AssociationExecution, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssociationExecutionsList(v *[]types.AssociationExecution, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19478,18 +19484,20 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionsList(v *[]*types.Assoc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssociationExecution + var cv []types.AssociationExecution if *v == nil { - cv = []*types.AssociationExecution{} + cv = []types.AssociationExecution{} } else { cv = *v } for _, value := range shape { - var col *types.AssociationExecution - if err := awsAwsjson11_deserializeDocumentAssociationExecution(&col, value); err != nil { + var col types.AssociationExecution + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAssociationExecution(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19525,7 +19533,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionTarget(v **types.Associ if !ok { return fmt.Errorf("expected AssociationId to be of type string, got %T instead", value) } - sv.AssociationId = &jtv + sv.AssociationId = ptr.String(jtv) } case "AssociationVersion": @@ -19534,7 +19542,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionTarget(v **types.Associ if !ok { return fmt.Errorf("expected AssociationVersion to be of type string, got %T instead", value) } - sv.AssociationVersion = &jtv + sv.AssociationVersion = ptr.String(jtv) } case "DetailedStatus": @@ -19543,7 +19551,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionTarget(v **types.Associ if !ok { return fmt.Errorf("expected StatusName to be of type string, got %T instead", value) } - sv.DetailedStatus = &jtv + sv.DetailedStatus = ptr.String(jtv) } case "ExecutionId": @@ -19552,7 +19560,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionTarget(v **types.Associ if !ok { return fmt.Errorf("expected AssociationExecutionId to be of type string, got %T instead", value) } - sv.ExecutionId = &jtv + sv.ExecutionId = ptr.String(jtv) } case "LastExecutionDate": @@ -19579,7 +19587,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionTarget(v **types.Associ if !ok { return fmt.Errorf("expected AssociationResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -19588,7 +19596,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionTarget(v **types.Associ if !ok { return fmt.Errorf("expected AssociationResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "Status": @@ -19597,7 +19605,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionTarget(v **types.Associ if !ok { return fmt.Errorf("expected StatusName to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -19609,7 +19617,7 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionTarget(v **types.Associ return nil } -func awsAwsjson11_deserializeDocumentAssociationExecutionTargetsList(v *[]*types.AssociationExecutionTarget, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssociationExecutionTargetsList(v *[]types.AssociationExecutionTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19622,18 +19630,20 @@ func awsAwsjson11_deserializeDocumentAssociationExecutionTargetsList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssociationExecutionTarget + var cv []types.AssociationExecutionTarget if *v == nil { - cv = []*types.AssociationExecutionTarget{} + cv = []types.AssociationExecutionTarget{} } else { cv = *v } for _, value := range shape { - var col *types.AssociationExecutionTarget - if err := awsAwsjson11_deserializeDocumentAssociationExecutionTarget(&col, value); err != nil { + var col types.AssociationExecutionTarget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAssociationExecutionTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19672,7 +19682,7 @@ func awsAwsjson11_deserializeDocumentAssociationLimitExceeded(v **types.Associat return nil } -func awsAwsjson11_deserializeDocumentAssociationList(v *[]*types.Association, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssociationList(v *[]types.Association, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19685,18 +19695,20 @@ func awsAwsjson11_deserializeDocumentAssociationList(v *[]*types.Association, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Association + var cv []types.Association if *v == nil { - cv = []*types.Association{} + cv = []types.Association{} } else { cv = *v } for _, value := range shape { - var col *types.Association - if err := awsAwsjson11_deserializeDocumentAssociation(&col, value); err != nil { + var col types.Association + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -19737,7 +19749,7 @@ func awsAwsjson11_deserializeDocumentAssociationOverview(v **types.AssociationOv if !ok { return fmt.Errorf("expected StatusName to be of type string, got %T instead", value) } - sv.DetailedStatus = &jtv + sv.DetailedStatus = ptr.String(jtv) } case "Status": @@ -19746,7 +19758,7 @@ func awsAwsjson11_deserializeDocumentAssociationOverview(v **types.AssociationOv if !ok { return fmt.Errorf("expected StatusName to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -19786,7 +19798,7 @@ func awsAwsjson11_deserializeDocumentAssociationStatus(v **types.AssociationStat if !ok { return fmt.Errorf("expected StatusAdditionalInfo to be of type string, got %T instead", value) } - sv.AdditionalInfo = &jtv + sv.AdditionalInfo = ptr.String(jtv) } case "Date": @@ -19808,7 +19820,7 @@ func awsAwsjson11_deserializeDocumentAssociationStatus(v **types.AssociationStat if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Name": @@ -19829,7 +19841,7 @@ func awsAwsjson11_deserializeDocumentAssociationStatus(v **types.AssociationStat return nil } -func awsAwsjson11_deserializeDocumentAssociationStatusAggregatedCount(v *map[string]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssociationStatusAggregatedCount(v *map[string]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19842,15 +19854,15 @@ func awsAwsjson11_deserializeDocumentAssociationStatusAggregatedCount(v *map[str return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*int32 + var mv map[string]int32 if *v == nil { - mv = map[string]*int32{} + mv = map[string]int32{} } else { mv = *v } for key, value := range shape { - var parsedVal *int32 + var parsedVal int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -19860,7 +19872,7 @@ func awsAwsjson11_deserializeDocumentAssociationStatusAggregatedCount(v *map[str if err != nil { return err } - parsedVal = ptr.Int32(int32(i64)) + parsedVal = int32(i64) } mv[key] = parsedVal @@ -19897,7 +19909,7 @@ func awsAwsjson11_deserializeDocumentAssociationVersionInfo(v **types.Associatio if !ok { return fmt.Errorf("expected ApplyOnlyAtCronInterval to be of type *bool, got %T instead", value) } - sv.ApplyOnlyAtCronInterval = &jtv + sv.ApplyOnlyAtCronInterval = jtv } case "AssociationId": @@ -19906,7 +19918,7 @@ func awsAwsjson11_deserializeDocumentAssociationVersionInfo(v **types.Associatio if !ok { return fmt.Errorf("expected AssociationId to be of type string, got %T instead", value) } - sv.AssociationId = &jtv + sv.AssociationId = ptr.String(jtv) } case "AssociationName": @@ -19915,7 +19927,7 @@ func awsAwsjson11_deserializeDocumentAssociationVersionInfo(v **types.Associatio if !ok { return fmt.Errorf("expected AssociationName to be of type string, got %T instead", value) } - sv.AssociationName = &jtv + sv.AssociationName = ptr.String(jtv) } case "AssociationVersion": @@ -19924,7 +19936,7 @@ func awsAwsjson11_deserializeDocumentAssociationVersionInfo(v **types.Associatio if !ok { return fmt.Errorf("expected AssociationVersion to be of type string, got %T instead", value) } - sv.AssociationVersion = &jtv + sv.AssociationVersion = ptr.String(jtv) } case "ComplianceSeverity": @@ -19955,7 +19967,7 @@ func awsAwsjson11_deserializeDocumentAssociationVersionInfo(v **types.Associatio if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "MaxConcurrency": @@ -19964,7 +19976,7 @@ func awsAwsjson11_deserializeDocumentAssociationVersionInfo(v **types.Associatio if !ok { return fmt.Errorf("expected MaxConcurrency to be of type string, got %T instead", value) } - sv.MaxConcurrency = &jtv + sv.MaxConcurrency = ptr.String(jtv) } case "MaxErrors": @@ -19973,7 +19985,7 @@ func awsAwsjson11_deserializeDocumentAssociationVersionInfo(v **types.Associatio if !ok { return fmt.Errorf("expected MaxErrors to be of type string, got %T instead", value) } - sv.MaxErrors = &jtv + sv.MaxErrors = ptr.String(jtv) } case "Name": @@ -19982,7 +19994,7 @@ func awsAwsjson11_deserializeDocumentAssociationVersionInfo(v **types.Associatio if !ok { return fmt.Errorf("expected DocumentARN to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OutputLocation": @@ -20001,7 +20013,7 @@ func awsAwsjson11_deserializeDocumentAssociationVersionInfo(v **types.Associatio if !ok { return fmt.Errorf("expected ScheduleExpression to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } case "SyncCompliance": @@ -20055,7 +20067,7 @@ func awsAwsjson11_deserializeDocumentAssociationVersionLimitExceeded(v **types.A if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20067,7 +20079,7 @@ func awsAwsjson11_deserializeDocumentAssociationVersionLimitExceeded(v **types.A return nil } -func awsAwsjson11_deserializeDocumentAssociationVersionList(v *[]*types.AssociationVersionInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentAssociationVersionList(v *[]types.AssociationVersionInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20080,18 +20092,20 @@ func awsAwsjson11_deserializeDocumentAssociationVersionList(v *[]*types.Associat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AssociationVersionInfo + var cv []types.AssociationVersionInfo if *v == nil { - cv = []*types.AssociationVersionInfo{} + cv = []types.AssociationVersionInfo{} } else { cv = *v } for _, value := range shape { - var col *types.AssociationVersionInfo - if err := awsAwsjson11_deserializeDocumentAssociationVersionInfo(&col, value); err != nil { + var col types.AssociationVersionInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAssociationVersionInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20127,7 +20141,7 @@ func awsAwsjson11_deserializeDocumentAttachmentContent(v **types.AttachmentConte if !ok { return fmt.Errorf("expected AttachmentHash to be of type string, got %T instead", value) } - sv.Hash = &jtv + sv.Hash = ptr.String(jtv) } case "HashType": @@ -20145,7 +20159,7 @@ func awsAwsjson11_deserializeDocumentAttachmentContent(v **types.AttachmentConte if !ok { return fmt.Errorf("expected AttachmentName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Size": @@ -20158,7 +20172,7 @@ func awsAwsjson11_deserializeDocumentAttachmentContent(v **types.AttachmentConte if err != nil { return err } - sv.Size = &i64 + sv.Size = i64 } case "Url": @@ -20167,7 +20181,7 @@ func awsAwsjson11_deserializeDocumentAttachmentContent(v **types.AttachmentConte if !ok { return fmt.Errorf("expected AttachmentUrl to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -20179,7 +20193,7 @@ func awsAwsjson11_deserializeDocumentAttachmentContent(v **types.AttachmentConte return nil } -func awsAwsjson11_deserializeDocumentAttachmentContentList(v *[]*types.AttachmentContent, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttachmentContentList(v *[]types.AttachmentContent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20192,18 +20206,20 @@ func awsAwsjson11_deserializeDocumentAttachmentContentList(v *[]*types.Attachmen return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttachmentContent + var cv []types.AttachmentContent if *v == nil { - cv = []*types.AttachmentContent{} + cv = []types.AttachmentContent{} } else { cv = *v } for _, value := range shape { - var col *types.AttachmentContent - if err := awsAwsjson11_deserializeDocumentAttachmentContent(&col, value); err != nil { + var col types.AttachmentContent + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttachmentContent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20239,7 +20255,7 @@ func awsAwsjson11_deserializeDocumentAttachmentInformation(v **types.AttachmentI if !ok { return fmt.Errorf("expected AttachmentName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -20251,7 +20267,7 @@ func awsAwsjson11_deserializeDocumentAttachmentInformation(v **types.AttachmentI return nil } -func awsAwsjson11_deserializeDocumentAttachmentInformationList(v *[]*types.AttachmentInformation, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttachmentInformationList(v *[]types.AttachmentInformation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20264,18 +20280,20 @@ func awsAwsjson11_deserializeDocumentAttachmentInformationList(v *[]*types.Attac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttachmentInformation + var cv []types.AttachmentInformation if *v == nil { - cv = []*types.AttachmentInformation{} + cv = []types.AttachmentInformation{} } else { cv = *v } for _, value := range shape { - var col *types.AttachmentInformation - if err := awsAwsjson11_deserializeDocumentAttachmentInformation(&col, value); err != nil { + var col types.AttachmentInformation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttachmentInformation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20311,7 +20329,7 @@ func awsAwsjson11_deserializeDocumentAutomationDefinitionNotFoundException(v **t if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20351,7 +20369,7 @@ func awsAwsjson11_deserializeDocumentAutomationDefinitionVersionNotFoundExceptio if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20391,7 +20409,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecution(v **types.AutomationExe if !ok { return fmt.Errorf("expected AutomationExecutionId to be of type string, got %T instead", value) } - sv.AutomationExecutionId = &jtv + sv.AutomationExecutionId = ptr.String(jtv) } case "AutomationExecutionStatus": @@ -20409,7 +20427,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecution(v **types.AutomationExe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CurrentAction = &jtv + sv.CurrentAction = ptr.String(jtv) } case "CurrentStepName": @@ -20418,7 +20436,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecution(v **types.AutomationExe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CurrentStepName = &jtv + sv.CurrentStepName = ptr.String(jtv) } case "DocumentName": @@ -20427,7 +20445,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecution(v **types.AutomationExe if !ok { return fmt.Errorf("expected DocumentName to be of type string, got %T instead", value) } - sv.DocumentName = &jtv + sv.DocumentName = ptr.String(jtv) } case "DocumentVersion": @@ -20436,7 +20454,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecution(v **types.AutomationExe if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "ExecutedBy": @@ -20445,7 +20463,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecution(v **types.AutomationExe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExecutedBy = &jtv + sv.ExecutedBy = ptr.String(jtv) } case "ExecutionEndTime": @@ -20480,7 +20498,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecution(v **types.AutomationExe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureMessage = &jtv + sv.FailureMessage = ptr.String(jtv) } case "MaxConcurrency": @@ -20489,7 +20507,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecution(v **types.AutomationExe if !ok { return fmt.Errorf("expected MaxConcurrency to be of type string, got %T instead", value) } - sv.MaxConcurrency = &jtv + sv.MaxConcurrency = ptr.String(jtv) } case "MaxErrors": @@ -20498,7 +20516,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecution(v **types.AutomationExe if !ok { return fmt.Errorf("expected MaxErrors to be of type string, got %T instead", value) } - sv.MaxErrors = &jtv + sv.MaxErrors = ptr.String(jtv) } case "Mode": @@ -20526,7 +20544,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecution(v **types.AutomationExe if !ok { return fmt.Errorf("expected AutomationExecutionId to be of type string, got %T instead", value) } - sv.ParentAutomationExecutionId = &jtv + sv.ParentAutomationExecutionId = ptr.String(jtv) } case "ProgressCounters": @@ -20550,7 +20568,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecution(v **types.AutomationExe if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.StepExecutionsTruncated = &jtv + sv.StepExecutionsTruncated = jtv } case "Target": @@ -20559,7 +20577,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecution(v **types.AutomationExe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } case "TargetLocations": @@ -20578,7 +20596,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecution(v **types.AutomationExe if !ok { return fmt.Errorf("expected AutomationParameterKey to be of type string, got %T instead", value) } - sv.TargetParameterName = &jtv + sv.TargetParameterName = ptr.String(jtv) } case "Targets": @@ -20623,7 +20641,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionLimitExceededException(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20663,7 +20681,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom if !ok { return fmt.Errorf("expected AutomationExecutionId to be of type string, got %T instead", value) } - sv.AutomationExecutionId = &jtv + sv.AutomationExecutionId = ptr.String(jtv) } case "AutomationExecutionStatus": @@ -20690,7 +20708,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CurrentAction = &jtv + sv.CurrentAction = ptr.String(jtv) } case "CurrentStepName": @@ -20699,7 +20717,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CurrentStepName = &jtv + sv.CurrentStepName = ptr.String(jtv) } case "DocumentName": @@ -20708,7 +20726,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom if !ok { return fmt.Errorf("expected DocumentName to be of type string, got %T instead", value) } - sv.DocumentName = &jtv + sv.DocumentName = ptr.String(jtv) } case "DocumentVersion": @@ -20717,7 +20735,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "ExecutedBy": @@ -20726,7 +20744,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ExecutedBy = &jtv + sv.ExecutedBy = ptr.String(jtv) } case "ExecutionEndTime": @@ -20761,7 +20779,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureMessage = &jtv + sv.FailureMessage = ptr.String(jtv) } case "LogFile": @@ -20770,7 +20788,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LogFile = &jtv + sv.LogFile = ptr.String(jtv) } case "MaxConcurrency": @@ -20779,7 +20797,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom if !ok { return fmt.Errorf("expected MaxConcurrency to be of type string, got %T instead", value) } - sv.MaxConcurrency = &jtv + sv.MaxConcurrency = ptr.String(jtv) } case "MaxErrors": @@ -20788,7 +20806,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom if !ok { return fmt.Errorf("expected MaxErrors to be of type string, got %T instead", value) } - sv.MaxErrors = &jtv + sv.MaxErrors = ptr.String(jtv) } case "Mode": @@ -20811,7 +20829,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom if !ok { return fmt.Errorf("expected AutomationExecutionId to be of type string, got %T instead", value) } - sv.ParentAutomationExecutionId = &jtv + sv.ParentAutomationExecutionId = ptr.String(jtv) } case "ResolvedTargets": @@ -20825,7 +20843,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } case "TargetMaps": @@ -20839,7 +20857,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom if !ok { return fmt.Errorf("expected AutomationParameterKey to be of type string, got %T instead", value) } - sv.TargetParameterName = &jtv + sv.TargetParameterName = ptr.String(jtv) } case "Targets": @@ -20856,7 +20874,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(v **types.Autom return nil } -func awsAwsjson11_deserializeDocumentAutomationExecutionMetadataList(v *[]*types.AutomationExecutionMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentAutomationExecutionMetadataList(v *[]types.AutomationExecutionMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20869,18 +20887,20 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionMetadataList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutomationExecutionMetadata + var cv []types.AutomationExecutionMetadata if *v == nil { - cv = []*types.AutomationExecutionMetadata{} + cv = []types.AutomationExecutionMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.AutomationExecutionMetadata - if err := awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(&col, value); err != nil { + var col types.AutomationExecutionMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAutomationExecutionMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -20916,7 +20936,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionNotFoundException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -20928,7 +20948,7 @@ func awsAwsjson11_deserializeDocumentAutomationExecutionNotFoundException(v **ty return nil } -func awsAwsjson11_deserializeDocumentAutomationParameterMap(v *map[string][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAutomationParameterMap(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20941,18 +20961,20 @@ func awsAwsjson11_deserializeDocumentAutomationParameterMap(v *map[string][]*str return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsAwsjson11_deserializeDocumentAutomationParameterValueList(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentAutomationParameterValueList(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -20960,7 +20982,7 @@ func awsAwsjson11_deserializeDocumentAutomationParameterMap(v *map[string][]*str return nil } -func awsAwsjson11_deserializeDocumentAutomationParameterValueList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAutomationParameterValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20973,21 +20995,21 @@ func awsAwsjson11_deserializeDocumentAutomationParameterValueList(v *[]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AutomationParameterValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -21024,7 +21046,7 @@ func awsAwsjson11_deserializeDocumentAutomationStepNotFoundException(v **types.A if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -21064,7 +21086,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchOutputConfig(v **types.CloudWatch if !ok { return fmt.Errorf("expected CloudWatchLogGroupName to be of type string, got %T instead", value) } - sv.CloudWatchLogGroupName = &jtv + sv.CloudWatchLogGroupName = ptr.String(jtv) } case "CloudWatchOutputEnabled": @@ -21073,7 +21095,7 @@ func awsAwsjson11_deserializeDocumentCloudWatchOutputConfig(v **types.CloudWatch if !ok { return fmt.Errorf("expected CloudWatchOutputEnabled to be of type *bool, got %T instead", value) } - sv.CloudWatchOutputEnabled = &jtv + sv.CloudWatchOutputEnabled = jtv } default: @@ -21118,7 +21140,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected CommandId to be of type string, got %T instead", value) } - sv.CommandId = &jtv + sv.CommandId = ptr.String(jtv) } case "Comment": @@ -21127,7 +21149,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected Comment to be of type string, got %T instead", value) } - sv.Comment = &jtv + sv.Comment = ptr.String(jtv) } case "CompletedCount": @@ -21140,7 +21162,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if err != nil { return err } - sv.CompletedCount = ptr.Int32(int32(i64)) + sv.CompletedCount = int32(i64) } case "DeliveryTimedOutCount": @@ -21153,7 +21175,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if err != nil { return err } - sv.DeliveryTimedOutCount = ptr.Int32(int32(i64)) + sv.DeliveryTimedOutCount = int32(i64) } case "DocumentName": @@ -21162,7 +21184,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected DocumentName to be of type string, got %T instead", value) } - sv.DocumentName = &jtv + sv.DocumentName = ptr.String(jtv) } case "DocumentVersion": @@ -21171,7 +21193,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "ErrorCount": @@ -21184,7 +21206,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if err != nil { return err } - sv.ErrorCount = ptr.Int32(int32(i64)) + sv.ErrorCount = int32(i64) } case "ExpiresAfter": @@ -21211,7 +21233,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected MaxConcurrency to be of type string, got %T instead", value) } - sv.MaxConcurrency = &jtv + sv.MaxConcurrency = ptr.String(jtv) } case "MaxErrors": @@ -21220,7 +21242,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected MaxErrors to be of type string, got %T instead", value) } - sv.MaxErrors = &jtv + sv.MaxErrors = ptr.String(jtv) } case "NotificationConfig": @@ -21234,7 +21256,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) } - sv.OutputS3BucketName = &jtv + sv.OutputS3BucketName = ptr.String(jtv) } case "OutputS3KeyPrefix": @@ -21243,7 +21265,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) } - sv.OutputS3KeyPrefix = &jtv + sv.OutputS3KeyPrefix = ptr.String(jtv) } case "OutputS3Region": @@ -21252,7 +21274,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected S3Region to be of type string, got %T instead", value) } - sv.OutputS3Region = &jtv + sv.OutputS3Region = ptr.String(jtv) } case "Parameters": @@ -21279,7 +21301,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected ServiceRole to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } case "Status": @@ -21297,7 +21319,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if !ok { return fmt.Errorf("expected StatusDetails to be of type string, got %T instead", value) } - sv.StatusDetails = &jtv + sv.StatusDetails = ptr.String(jtv) } case "TargetCount": @@ -21310,7 +21332,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if err != nil { return err } - sv.TargetCount = ptr.Int32(int32(i64)) + sv.TargetCount = int32(i64) } case "Targets": @@ -21328,7 +21350,7 @@ func awsAwsjson11_deserializeDocumentCommand(v **types.Command, value interface{ if err != nil { return err } - sv.TimeoutSeconds = ptr.Int32(int32(i64)) + sv.TimeoutSeconds = int32(i64) } default: @@ -21373,7 +21395,7 @@ func awsAwsjson11_deserializeDocumentCommandInvocation(v **types.CommandInvocati if !ok { return fmt.Errorf("expected CommandId to be of type string, got %T instead", value) } - sv.CommandId = &jtv + sv.CommandId = ptr.String(jtv) } case "CommandPlugins": @@ -21387,7 +21409,7 @@ func awsAwsjson11_deserializeDocumentCommandInvocation(v **types.CommandInvocati if !ok { return fmt.Errorf("expected Comment to be of type string, got %T instead", value) } - sv.Comment = &jtv + sv.Comment = ptr.String(jtv) } case "DocumentName": @@ -21396,7 +21418,7 @@ func awsAwsjson11_deserializeDocumentCommandInvocation(v **types.CommandInvocati if !ok { return fmt.Errorf("expected DocumentName to be of type string, got %T instead", value) } - sv.DocumentName = &jtv + sv.DocumentName = ptr.String(jtv) } case "DocumentVersion": @@ -21405,7 +21427,7 @@ func awsAwsjson11_deserializeDocumentCommandInvocation(v **types.CommandInvocati if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "InstanceId": @@ -21414,7 +21436,7 @@ func awsAwsjson11_deserializeDocumentCommandInvocation(v **types.CommandInvocati if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "InstanceName": @@ -21423,7 +21445,7 @@ func awsAwsjson11_deserializeDocumentCommandInvocation(v **types.CommandInvocati if !ok { return fmt.Errorf("expected InstanceTagName to be of type string, got %T instead", value) } - sv.InstanceName = &jtv + sv.InstanceName = ptr.String(jtv) } case "NotificationConfig": @@ -21450,7 +21472,7 @@ func awsAwsjson11_deserializeDocumentCommandInvocation(v **types.CommandInvocati if !ok { return fmt.Errorf("expected ServiceRole to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } case "StandardErrorUrl": @@ -21459,7 +21481,7 @@ func awsAwsjson11_deserializeDocumentCommandInvocation(v **types.CommandInvocati if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.StandardErrorUrl = &jtv + sv.StandardErrorUrl = ptr.String(jtv) } case "StandardOutputUrl": @@ -21468,7 +21490,7 @@ func awsAwsjson11_deserializeDocumentCommandInvocation(v **types.CommandInvocati if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.StandardOutputUrl = &jtv + sv.StandardOutputUrl = ptr.String(jtv) } case "Status": @@ -21486,7 +21508,7 @@ func awsAwsjson11_deserializeDocumentCommandInvocation(v **types.CommandInvocati if !ok { return fmt.Errorf("expected StatusDetails to be of type string, got %T instead", value) } - sv.StatusDetails = &jtv + sv.StatusDetails = ptr.String(jtv) } case "TraceOutput": @@ -21495,7 +21517,7 @@ func awsAwsjson11_deserializeDocumentCommandInvocation(v **types.CommandInvocati if !ok { return fmt.Errorf("expected InvocationTraceOutput to be of type string, got %T instead", value) } - sv.TraceOutput = &jtv + sv.TraceOutput = ptr.String(jtv) } default: @@ -21507,7 +21529,7 @@ func awsAwsjson11_deserializeDocumentCommandInvocation(v **types.CommandInvocati return nil } -func awsAwsjson11_deserializeDocumentCommandInvocationList(v *[]*types.CommandInvocation, value interface{}) error { +func awsAwsjson11_deserializeDocumentCommandInvocationList(v *[]types.CommandInvocation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21520,18 +21542,20 @@ func awsAwsjson11_deserializeDocumentCommandInvocationList(v *[]*types.CommandIn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CommandInvocation + var cv []types.CommandInvocation if *v == nil { - cv = []*types.CommandInvocation{} + cv = []types.CommandInvocation{} } else { cv = *v } for _, value := range shape { - var col *types.CommandInvocation - if err := awsAwsjson11_deserializeDocumentCommandInvocation(&col, value); err != nil { + var col types.CommandInvocation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCommandInvocation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21539,7 +21563,7 @@ func awsAwsjson11_deserializeDocumentCommandInvocationList(v *[]*types.CommandIn return nil } -func awsAwsjson11_deserializeDocumentCommandList(v *[]*types.Command, value interface{}) error { +func awsAwsjson11_deserializeDocumentCommandList(v *[]types.Command, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21552,18 +21576,20 @@ func awsAwsjson11_deserializeDocumentCommandList(v *[]*types.Command, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Command + var cv []types.Command if *v == nil { - cv = []*types.Command{} + cv = []types.Command{} } else { cv = *v } for _, value := range shape { - var col *types.Command - if err := awsAwsjson11_deserializeDocumentCommand(&col, value); err != nil { + var col types.Command + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCommand(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21599,7 +21625,7 @@ func awsAwsjson11_deserializeDocumentCommandPlugin(v **types.CommandPlugin, valu if !ok { return fmt.Errorf("expected CommandPluginName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Output": @@ -21608,7 +21634,7 @@ func awsAwsjson11_deserializeDocumentCommandPlugin(v **types.CommandPlugin, valu if !ok { return fmt.Errorf("expected CommandPluginOutput to be of type string, got %T instead", value) } - sv.Output = &jtv + sv.Output = ptr.String(jtv) } case "OutputS3BucketName": @@ -21617,7 +21643,7 @@ func awsAwsjson11_deserializeDocumentCommandPlugin(v **types.CommandPlugin, valu if !ok { return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) } - sv.OutputS3BucketName = &jtv + sv.OutputS3BucketName = ptr.String(jtv) } case "OutputS3KeyPrefix": @@ -21626,7 +21652,7 @@ func awsAwsjson11_deserializeDocumentCommandPlugin(v **types.CommandPlugin, valu if !ok { return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) } - sv.OutputS3KeyPrefix = &jtv + sv.OutputS3KeyPrefix = ptr.String(jtv) } case "OutputS3Region": @@ -21635,7 +21661,7 @@ func awsAwsjson11_deserializeDocumentCommandPlugin(v **types.CommandPlugin, valu if !ok { return fmt.Errorf("expected S3Region to be of type string, got %T instead", value) } - sv.OutputS3Region = &jtv + sv.OutputS3Region = ptr.String(jtv) } case "ResponseCode": @@ -21648,7 +21674,7 @@ func awsAwsjson11_deserializeDocumentCommandPlugin(v **types.CommandPlugin, valu if err != nil { return err } - sv.ResponseCode = ptr.Int32(int32(i64)) + sv.ResponseCode = int32(i64) } case "ResponseFinishDateTime": @@ -21683,7 +21709,7 @@ func awsAwsjson11_deserializeDocumentCommandPlugin(v **types.CommandPlugin, valu if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.StandardErrorUrl = &jtv + sv.StandardErrorUrl = ptr.String(jtv) } case "StandardOutputUrl": @@ -21692,7 +21718,7 @@ func awsAwsjson11_deserializeDocumentCommandPlugin(v **types.CommandPlugin, valu if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.StandardOutputUrl = &jtv + sv.StandardOutputUrl = ptr.String(jtv) } case "Status": @@ -21710,7 +21736,7 @@ func awsAwsjson11_deserializeDocumentCommandPlugin(v **types.CommandPlugin, valu if !ok { return fmt.Errorf("expected StatusDetails to be of type string, got %T instead", value) } - sv.StatusDetails = &jtv + sv.StatusDetails = ptr.String(jtv) } default: @@ -21722,7 +21748,7 @@ func awsAwsjson11_deserializeDocumentCommandPlugin(v **types.CommandPlugin, valu return nil } -func awsAwsjson11_deserializeDocumentCommandPluginList(v *[]*types.CommandPlugin, value interface{}) error { +func awsAwsjson11_deserializeDocumentCommandPluginList(v *[]types.CommandPlugin, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21735,18 +21761,20 @@ func awsAwsjson11_deserializeDocumentCommandPluginList(v *[]*types.CommandPlugin return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CommandPlugin + var cv []types.CommandPlugin if *v == nil { - cv = []*types.CommandPlugin{} + cv = []types.CommandPlugin{} } else { cv = *v } for _, value := range shape { - var col *types.CommandPlugin - if err := awsAwsjson11_deserializeDocumentCommandPlugin(&col, value); err != nil { + var col types.CommandPlugin + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCommandPlugin(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -21782,7 +21810,7 @@ func awsAwsjson11_deserializeDocumentComplianceExecutionSummary(v **types.Compli if !ok { return fmt.Errorf("expected ComplianceExecutionId to be of type string, got %T instead", value) } - sv.ExecutionId = &jtv + sv.ExecutionId = ptr.String(jtv) } case "ExecutionTime": @@ -21804,7 +21832,7 @@ func awsAwsjson11_deserializeDocumentComplianceExecutionSummary(v **types.Compli if !ok { return fmt.Errorf("expected ComplianceExecutionType to be of type string, got %T instead", value) } - sv.ExecutionType = &jtv + sv.ExecutionType = ptr.String(jtv) } default: @@ -21844,7 +21872,7 @@ func awsAwsjson11_deserializeDocumentComplianceItem(v **types.ComplianceItem, va if !ok { return fmt.Errorf("expected ComplianceTypeName to be of type string, got %T instead", value) } - sv.ComplianceType = &jtv + sv.ComplianceType = ptr.String(jtv) } case "Details": @@ -21863,7 +21891,7 @@ func awsAwsjson11_deserializeDocumentComplianceItem(v **types.ComplianceItem, va if !ok { return fmt.Errorf("expected ComplianceItemId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ResourceId": @@ -21872,7 +21900,7 @@ func awsAwsjson11_deserializeDocumentComplianceItem(v **types.ComplianceItem, va if !ok { return fmt.Errorf("expected ComplianceResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -21881,7 +21909,7 @@ func awsAwsjson11_deserializeDocumentComplianceItem(v **types.ComplianceItem, va if !ok { return fmt.Errorf("expected ComplianceResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "Severity": @@ -21908,7 +21936,7 @@ func awsAwsjson11_deserializeDocumentComplianceItem(v **types.ComplianceItem, va if !ok { return fmt.Errorf("expected ComplianceItemTitle to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } default: @@ -21920,7 +21948,7 @@ func awsAwsjson11_deserializeDocumentComplianceItem(v **types.ComplianceItem, va return nil } -func awsAwsjson11_deserializeDocumentComplianceItemDetails(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentComplianceItemDetails(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21933,21 +21961,21 @@ func awsAwsjson11_deserializeDocumentComplianceItemDetails(v *map[string]*string return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -21956,7 +21984,7 @@ func awsAwsjson11_deserializeDocumentComplianceItemDetails(v *map[string]*string return nil } -func awsAwsjson11_deserializeDocumentComplianceItemList(v *[]*types.ComplianceItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentComplianceItemList(v *[]types.ComplianceItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21969,18 +21997,20 @@ func awsAwsjson11_deserializeDocumentComplianceItemList(v *[]*types.ComplianceIt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComplianceItem + var cv []types.ComplianceItem if *v == nil { - cv = []*types.ComplianceItem{} + cv = []types.ComplianceItem{} } else { cv = *v } for _, value := range shape { - var col *types.ComplianceItem - if err := awsAwsjson11_deserializeDocumentComplianceItem(&col, value); err != nil { + var col types.ComplianceItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentComplianceItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22016,7 +22046,7 @@ func awsAwsjson11_deserializeDocumentComplianceSummaryItem(v **types.ComplianceS if !ok { return fmt.Errorf("expected ComplianceTypeName to be of type string, got %T instead", value) } - sv.ComplianceType = &jtv + sv.ComplianceType = ptr.String(jtv) } case "CompliantSummary": @@ -22038,7 +22068,7 @@ func awsAwsjson11_deserializeDocumentComplianceSummaryItem(v **types.ComplianceS return nil } -func awsAwsjson11_deserializeDocumentComplianceSummaryItemList(v *[]*types.ComplianceSummaryItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentComplianceSummaryItemList(v *[]types.ComplianceSummaryItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22051,18 +22081,20 @@ func awsAwsjson11_deserializeDocumentComplianceSummaryItemList(v *[]*types.Compl return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ComplianceSummaryItem + var cv []types.ComplianceSummaryItem if *v == nil { - cv = []*types.ComplianceSummaryItem{} + cv = []types.ComplianceSummaryItem{} } else { cv = *v } for _, value := range shape { - var col *types.ComplianceSummaryItem - if err := awsAwsjson11_deserializeDocumentComplianceSummaryItem(&col, value); err != nil { + var col types.ComplianceSummaryItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentComplianceSummaryItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22098,7 +22130,7 @@ func awsAwsjson11_deserializeDocumentComplianceTypeCountLimitExceededException(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22142,7 +22174,7 @@ func awsAwsjson11_deserializeDocumentCompliantSummary(v **types.CompliantSummary if err != nil { return err } - sv.CompliantCount = ptr.Int32(int32(i64)) + sv.CompliantCount = int32(i64) } case "SeveritySummary": @@ -22187,7 +22219,7 @@ func awsAwsjson11_deserializeDocumentCreateAssociationBatchRequestEntry(v **type if !ok { return fmt.Errorf("expected ApplyOnlyAtCronInterval to be of type *bool, got %T instead", value) } - sv.ApplyOnlyAtCronInterval = &jtv + sv.ApplyOnlyAtCronInterval = jtv } case "AssociationName": @@ -22196,7 +22228,7 @@ func awsAwsjson11_deserializeDocumentCreateAssociationBatchRequestEntry(v **type if !ok { return fmt.Errorf("expected AssociationName to be of type string, got %T instead", value) } - sv.AssociationName = &jtv + sv.AssociationName = ptr.String(jtv) } case "AutomationTargetParameterName": @@ -22205,7 +22237,7 @@ func awsAwsjson11_deserializeDocumentCreateAssociationBatchRequestEntry(v **type if !ok { return fmt.Errorf("expected AutomationTargetParameterName to be of type string, got %T instead", value) } - sv.AutomationTargetParameterName = &jtv + sv.AutomationTargetParameterName = ptr.String(jtv) } case "ComplianceSeverity": @@ -22223,7 +22255,7 @@ func awsAwsjson11_deserializeDocumentCreateAssociationBatchRequestEntry(v **type if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "InstanceId": @@ -22232,7 +22264,7 @@ func awsAwsjson11_deserializeDocumentCreateAssociationBatchRequestEntry(v **type if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "MaxConcurrency": @@ -22241,7 +22273,7 @@ func awsAwsjson11_deserializeDocumentCreateAssociationBatchRequestEntry(v **type if !ok { return fmt.Errorf("expected MaxConcurrency to be of type string, got %T instead", value) } - sv.MaxConcurrency = &jtv + sv.MaxConcurrency = ptr.String(jtv) } case "MaxErrors": @@ -22250,7 +22282,7 @@ func awsAwsjson11_deserializeDocumentCreateAssociationBatchRequestEntry(v **type if !ok { return fmt.Errorf("expected MaxErrors to be of type string, got %T instead", value) } - sv.MaxErrors = &jtv + sv.MaxErrors = ptr.String(jtv) } case "Name": @@ -22259,7 +22291,7 @@ func awsAwsjson11_deserializeDocumentCreateAssociationBatchRequestEntry(v **type if !ok { return fmt.Errorf("expected DocumentARN to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OutputLocation": @@ -22278,7 +22310,7 @@ func awsAwsjson11_deserializeDocumentCreateAssociationBatchRequestEntry(v **type if !ok { return fmt.Errorf("expected ScheduleExpression to be of type string, got %T instead", value) } - sv.ScheduleExpression = &jtv + sv.ScheduleExpression = ptr.String(jtv) } case "SyncCompliance": @@ -22332,7 +22364,7 @@ func awsAwsjson11_deserializeDocumentCustomSchemaCountLimitExceededException(v * if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22372,7 +22404,7 @@ func awsAwsjson11_deserializeDocumentDocumentAlreadyExists(v **types.DocumentAlr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22412,7 +22444,7 @@ func awsAwsjson11_deserializeDocumentDocumentDefaultVersionDescription(v **types if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DefaultVersion = &jtv + sv.DefaultVersion = ptr.String(jtv) } case "DefaultVersionName": @@ -22421,7 +22453,7 @@ func awsAwsjson11_deserializeDocumentDocumentDefaultVersionDescription(v **types if !ok { return fmt.Errorf("expected DocumentVersionName to be of type string, got %T instead", value) } - sv.DefaultVersionName = &jtv + sv.DefaultVersionName = ptr.String(jtv) } case "Name": @@ -22430,7 +22462,7 @@ func awsAwsjson11_deserializeDocumentDocumentDefaultVersionDescription(v **types if !ok { return fmt.Errorf("expected DocumentName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -22488,7 +22520,7 @@ func awsAwsjson11_deserializeDocumentDocumentDescription(v **types.DocumentDescr if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DefaultVersion = &jtv + sv.DefaultVersion = ptr.String(jtv) } case "Description": @@ -22497,7 +22529,7 @@ func awsAwsjson11_deserializeDocumentDocumentDescription(v **types.DocumentDescr if !ok { return fmt.Errorf("expected DescriptionInDocument to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "DocumentFormat": @@ -22524,7 +22556,7 @@ func awsAwsjson11_deserializeDocumentDocumentDescription(v **types.DocumentDescr if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "Hash": @@ -22533,7 +22565,7 @@ func awsAwsjson11_deserializeDocumentDocumentDescription(v **types.DocumentDescr if !ok { return fmt.Errorf("expected DocumentHash to be of type string, got %T instead", value) } - sv.Hash = &jtv + sv.Hash = ptr.String(jtv) } case "HashType": @@ -22551,7 +22583,7 @@ func awsAwsjson11_deserializeDocumentDocumentDescription(v **types.DocumentDescr if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.LatestVersion = &jtv + sv.LatestVersion = ptr.String(jtv) } case "Name": @@ -22560,7 +22592,7 @@ func awsAwsjson11_deserializeDocumentDocumentDescription(v **types.DocumentDescr if !ok { return fmt.Errorf("expected DocumentARN to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Owner": @@ -22569,7 +22601,7 @@ func awsAwsjson11_deserializeDocumentDocumentDescription(v **types.DocumentDescr if !ok { return fmt.Errorf("expected DocumentOwner to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "Parameters": @@ -22593,7 +22625,7 @@ func awsAwsjson11_deserializeDocumentDocumentDescription(v **types.DocumentDescr if !ok { return fmt.Errorf("expected DocumentSchemaVersion to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "Sha1": @@ -22602,7 +22634,7 @@ func awsAwsjson11_deserializeDocumentDocumentDescription(v **types.DocumentDescr if !ok { return fmt.Errorf("expected DocumentSha1 to be of type string, got %T instead", value) } - sv.Sha1 = &jtv + sv.Sha1 = ptr.String(jtv) } case "Status": @@ -22620,7 +22652,7 @@ func awsAwsjson11_deserializeDocumentDocumentDescription(v **types.DocumentDescr if !ok { return fmt.Errorf("expected DocumentStatusInformation to be of type string, got %T instead", value) } - sv.StatusInformation = &jtv + sv.StatusInformation = ptr.String(jtv) } case "Tags": @@ -22634,7 +22666,7 @@ func awsAwsjson11_deserializeDocumentDocumentDescription(v **types.DocumentDescr if !ok { return fmt.Errorf("expected TargetType to be of type string, got %T instead", value) } - sv.TargetType = &jtv + sv.TargetType = ptr.String(jtv) } case "VersionName": @@ -22643,7 +22675,7 @@ func awsAwsjson11_deserializeDocumentDocumentDescription(v **types.DocumentDescr if !ok { return fmt.Errorf("expected DocumentVersionName to be of type string, got %T instead", value) } - sv.VersionName = &jtv + sv.VersionName = ptr.String(jtv) } default: @@ -22701,7 +22733,7 @@ func awsAwsjson11_deserializeDocumentDocumentIdentifier(v **types.DocumentIdenti if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "Name": @@ -22710,7 +22742,7 @@ func awsAwsjson11_deserializeDocumentDocumentIdentifier(v **types.DocumentIdenti if !ok { return fmt.Errorf("expected DocumentARN to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Owner": @@ -22719,7 +22751,7 @@ func awsAwsjson11_deserializeDocumentDocumentIdentifier(v **types.DocumentIdenti if !ok { return fmt.Errorf("expected DocumentOwner to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "PlatformTypes": @@ -22738,7 +22770,7 @@ func awsAwsjson11_deserializeDocumentDocumentIdentifier(v **types.DocumentIdenti if !ok { return fmt.Errorf("expected DocumentSchemaVersion to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "Tags": @@ -22752,7 +22784,7 @@ func awsAwsjson11_deserializeDocumentDocumentIdentifier(v **types.DocumentIdenti if !ok { return fmt.Errorf("expected TargetType to be of type string, got %T instead", value) } - sv.TargetType = &jtv + sv.TargetType = ptr.String(jtv) } case "VersionName": @@ -22761,7 +22793,7 @@ func awsAwsjson11_deserializeDocumentDocumentIdentifier(v **types.DocumentIdenti if !ok { return fmt.Errorf("expected DocumentVersionName to be of type string, got %T instead", value) } - sv.VersionName = &jtv + sv.VersionName = ptr.String(jtv) } default: @@ -22773,7 +22805,7 @@ func awsAwsjson11_deserializeDocumentDocumentIdentifier(v **types.DocumentIdenti return nil } -func awsAwsjson11_deserializeDocumentDocumentIdentifierList(v *[]*types.DocumentIdentifier, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentIdentifierList(v *[]types.DocumentIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22786,18 +22818,20 @@ func awsAwsjson11_deserializeDocumentDocumentIdentifierList(v *[]*types.Document return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentIdentifier + var cv []types.DocumentIdentifier if *v == nil { - cv = []*types.DocumentIdentifier{} + cv = []types.DocumentIdentifier{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentIdentifier - if err := awsAwsjson11_deserializeDocumentDocumentIdentifier(&col, value); err != nil { + var col types.DocumentIdentifier + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDocumentIdentifier(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22833,7 +22867,7 @@ func awsAwsjson11_deserializeDocumentDocumentLimitExceeded(v **types.DocumentLim if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -22873,7 +22907,7 @@ func awsAwsjson11_deserializeDocumentDocumentParameter(v **types.DocumentParamet if !ok { return fmt.Errorf("expected DocumentParameterDefaultValue to be of type string, got %T instead", value) } - sv.DefaultValue = &jtv + sv.DefaultValue = ptr.String(jtv) } case "Description": @@ -22882,7 +22916,7 @@ func awsAwsjson11_deserializeDocumentDocumentParameter(v **types.DocumentParamet if !ok { return fmt.Errorf("expected DocumentParameterDescrption to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -22891,7 +22925,7 @@ func awsAwsjson11_deserializeDocumentDocumentParameter(v **types.DocumentParamet if !ok { return fmt.Errorf("expected DocumentParameterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Type": @@ -22912,7 +22946,7 @@ func awsAwsjson11_deserializeDocumentDocumentParameter(v **types.DocumentParamet return nil } -func awsAwsjson11_deserializeDocumentDocumentParameterList(v *[]*types.DocumentParameter, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentParameterList(v *[]types.DocumentParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22925,18 +22959,20 @@ func awsAwsjson11_deserializeDocumentDocumentParameterList(v *[]*types.DocumentP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentParameter + var cv []types.DocumentParameter if *v == nil { - cv = []*types.DocumentParameter{} + cv = []types.DocumentParameter{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentParameter - if err := awsAwsjson11_deserializeDocumentDocumentParameter(&col, value); err != nil { + var col types.DocumentParameter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDocumentParameter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -22972,7 +23008,7 @@ func awsAwsjson11_deserializeDocumentDocumentPermissionLimit(v **types.DocumentP if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23012,7 +23048,7 @@ func awsAwsjson11_deserializeDocumentDocumentRequires(v **types.DocumentRequires if !ok { return fmt.Errorf("expected DocumentARN to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Version": @@ -23021,7 +23057,7 @@ func awsAwsjson11_deserializeDocumentDocumentRequires(v **types.DocumentRequires if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -23033,7 +23069,7 @@ func awsAwsjson11_deserializeDocumentDocumentRequires(v **types.DocumentRequires return nil } -func awsAwsjson11_deserializeDocumentDocumentRequiresList(v *[]*types.DocumentRequires, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentRequiresList(v *[]types.DocumentRequires, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23046,18 +23082,20 @@ func awsAwsjson11_deserializeDocumentDocumentRequiresList(v *[]*types.DocumentRe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentRequires + var cv []types.DocumentRequires if *v == nil { - cv = []*types.DocumentRequires{} + cv = []types.DocumentRequires{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentRequires - if err := awsAwsjson11_deserializeDocumentDocumentRequires(&col, value); err != nil { + var col types.DocumentRequires + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDocumentRequires(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23115,7 +23153,7 @@ func awsAwsjson11_deserializeDocumentDocumentVersionInfo(v **types.DocumentVersi if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "IsDefaultVersion": @@ -23124,7 +23162,7 @@ func awsAwsjson11_deserializeDocumentDocumentVersionInfo(v **types.DocumentVersi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsDefaultVersion = &jtv + sv.IsDefaultVersion = jtv } case "Name": @@ -23133,7 +23171,7 @@ func awsAwsjson11_deserializeDocumentDocumentVersionInfo(v **types.DocumentVersi if !ok { return fmt.Errorf("expected DocumentName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -23151,7 +23189,7 @@ func awsAwsjson11_deserializeDocumentDocumentVersionInfo(v **types.DocumentVersi if !ok { return fmt.Errorf("expected DocumentStatusInformation to be of type string, got %T instead", value) } - sv.StatusInformation = &jtv + sv.StatusInformation = ptr.String(jtv) } case "VersionName": @@ -23160,7 +23198,7 @@ func awsAwsjson11_deserializeDocumentDocumentVersionInfo(v **types.DocumentVersi if !ok { return fmt.Errorf("expected DocumentVersionName to be of type string, got %T instead", value) } - sv.VersionName = &jtv + sv.VersionName = ptr.String(jtv) } default: @@ -23200,7 +23238,7 @@ func awsAwsjson11_deserializeDocumentDocumentVersionLimitExceeded(v **types.Docu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23212,7 +23250,7 @@ func awsAwsjson11_deserializeDocumentDocumentVersionLimitExceeded(v **types.Docu return nil } -func awsAwsjson11_deserializeDocumentDocumentVersionList(v *[]*types.DocumentVersionInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentVersionList(v *[]types.DocumentVersionInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23225,18 +23263,20 @@ func awsAwsjson11_deserializeDocumentDocumentVersionList(v *[]*types.DocumentVer return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentVersionInfo + var cv []types.DocumentVersionInfo if *v == nil { - cv = []*types.DocumentVersionInfo{} + cv = []types.DocumentVersionInfo{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentVersionInfo - if err := awsAwsjson11_deserializeDocumentDocumentVersionInfo(&col, value); err != nil { + var col types.DocumentVersionInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDocumentVersionInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23272,7 +23312,7 @@ func awsAwsjson11_deserializeDocumentDoesNotExistException(v **types.DoesNotExis if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23312,7 +23352,7 @@ func awsAwsjson11_deserializeDocumentDuplicateDocumentContent(v **types.Duplicat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23352,7 +23392,7 @@ func awsAwsjson11_deserializeDocumentDuplicateDocumentVersionName(v **types.Dupl if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23436,7 +23476,7 @@ func awsAwsjson11_deserializeDocumentEffectivePatch(v **types.EffectivePatch, va return nil } -func awsAwsjson11_deserializeDocumentEffectivePatchList(v *[]*types.EffectivePatch, value interface{}) error { +func awsAwsjson11_deserializeDocumentEffectivePatchList(v *[]types.EffectivePatch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23449,18 +23489,20 @@ func awsAwsjson11_deserializeDocumentEffectivePatchList(v *[]*types.EffectivePat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.EffectivePatch + var cv []types.EffectivePatch if *v == nil { - cv = []*types.EffectivePatch{} + cv = []types.EffectivePatch{} } else { cv = *v } for _, value := range shape { - var col *types.EffectivePatch - if err := awsAwsjson11_deserializeDocumentEffectivePatch(&col, value); err != nil { + var col types.EffectivePatch + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEffectivePatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23510,7 +23552,7 @@ func awsAwsjson11_deserializeDocumentFailedCreateAssociation(v **types.FailedCre if !ok { return fmt.Errorf("expected BatchErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23522,7 +23564,7 @@ func awsAwsjson11_deserializeDocumentFailedCreateAssociation(v **types.FailedCre return nil } -func awsAwsjson11_deserializeDocumentFailedCreateAssociationList(v *[]*types.FailedCreateAssociation, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedCreateAssociationList(v *[]types.FailedCreateAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23535,18 +23577,20 @@ func awsAwsjson11_deserializeDocumentFailedCreateAssociationList(v *[]*types.Fai return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedCreateAssociation + var cv []types.FailedCreateAssociation if *v == nil { - cv = []*types.FailedCreateAssociation{} + cv = []types.FailedCreateAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.FailedCreateAssociation - if err := awsAwsjson11_deserializeDocumentFailedCreateAssociation(&col, value); err != nil { + var col types.FailedCreateAssociation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailedCreateAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -23587,7 +23631,7 @@ func awsAwsjson11_deserializeDocumentFailureDetails(v **types.FailureDetails, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureStage = &jtv + sv.FailureStage = ptr.String(jtv) } case "FailureType": @@ -23596,7 +23640,7 @@ func awsAwsjson11_deserializeDocumentFailureDetails(v **types.FailureDetails, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureType = &jtv + sv.FailureType = ptr.String(jtv) } default: @@ -23636,7 +23680,7 @@ func awsAwsjson11_deserializeDocumentFeatureNotAvailableException(v **types.Feat if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23676,7 +23720,7 @@ func awsAwsjson11_deserializeDocumentHierarchyLevelLimitExceededException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23716,7 +23760,7 @@ func awsAwsjson11_deserializeDocumentHierarchyTypeMismatchException(v **types.Hi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23756,7 +23800,7 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatch(v **types.Idemp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23796,7 +23840,7 @@ func awsAwsjson11_deserializeDocumentIncompatiblePolicyException(v **types.Incom if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -23836,7 +23880,7 @@ func awsAwsjson11_deserializeDocumentInstanceAggregatedAssociationOverview(v **t if !ok { return fmt.Errorf("expected StatusName to be of type string, got %T instead", value) } - sv.DetailedStatus = &jtv + sv.DetailedStatus = ptr.String(jtv) } case "InstanceAssociationStatusAggregatedCount": @@ -23881,7 +23925,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociation(v **types.InstanceAssoc if !ok { return fmt.Errorf("expected AssociationId to be of type string, got %T instead", value) } - sv.AssociationId = &jtv + sv.AssociationId = ptr.String(jtv) } case "AssociationVersion": @@ -23890,7 +23934,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociation(v **types.InstanceAssoc if !ok { return fmt.Errorf("expected AssociationVersion to be of type string, got %T instead", value) } - sv.AssociationVersion = &jtv + sv.AssociationVersion = ptr.String(jtv) } case "Content": @@ -23899,7 +23943,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociation(v **types.InstanceAssoc if !ok { return fmt.Errorf("expected DocumentContent to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "InstanceId": @@ -23908,7 +23952,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociation(v **types.InstanceAssoc if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } default: @@ -23920,7 +23964,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociation(v **types.InstanceAssoc return nil } -func awsAwsjson11_deserializeDocumentInstanceAssociationList(v *[]*types.InstanceAssociation, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceAssociationList(v *[]types.InstanceAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23933,18 +23977,20 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationList(v *[]*types.Instanc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceAssociation + var cv []types.InstanceAssociation if *v == nil { - cv = []*types.InstanceAssociation{} + cv = []types.InstanceAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceAssociation - if err := awsAwsjson11_deserializeDocumentInstanceAssociation(&col, value); err != nil { + var col types.InstanceAssociation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24024,7 +24070,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationOutputUrl(v **types.Inst return nil } -func awsAwsjson11_deserializeDocumentInstanceAssociationStatusAggregatedCount(v *map[string]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceAssociationStatusAggregatedCount(v *map[string]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24037,15 +24083,15 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusAggregatedCount(v return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*int32 + var mv map[string]int32 if *v == nil { - mv = map[string]*int32{} + mv = map[string]int32{} } else { mv = *v } for key, value := range shape { - var parsedVal *int32 + var parsedVal int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -24055,7 +24101,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusAggregatedCount(v if err != nil { return err } - parsedVal = ptr.Int32(int32(i64)) + parsedVal = int32(i64) } mv[key] = parsedVal @@ -24092,7 +24138,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfo(v **types.Ins if !ok { return fmt.Errorf("expected AssociationId to be of type string, got %T instead", value) } - sv.AssociationId = &jtv + sv.AssociationId = ptr.String(jtv) } case "AssociationName": @@ -24101,7 +24147,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfo(v **types.Ins if !ok { return fmt.Errorf("expected AssociationName to be of type string, got %T instead", value) } - sv.AssociationName = &jtv + sv.AssociationName = ptr.String(jtv) } case "AssociationVersion": @@ -24110,7 +24156,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfo(v **types.Ins if !ok { return fmt.Errorf("expected AssociationVersion to be of type string, got %T instead", value) } - sv.AssociationVersion = &jtv + sv.AssociationVersion = ptr.String(jtv) } case "DetailedStatus": @@ -24119,7 +24165,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfo(v **types.Ins if !ok { return fmt.Errorf("expected StatusName to be of type string, got %T instead", value) } - sv.DetailedStatus = &jtv + sv.DetailedStatus = ptr.String(jtv) } case "DocumentVersion": @@ -24128,7 +24174,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfo(v **types.Ins if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "ErrorCode": @@ -24137,7 +24183,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfo(v **types.Ins if !ok { return fmt.Errorf("expected AgentErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ExecutionDate": @@ -24159,7 +24205,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfo(v **types.Ins if !ok { return fmt.Errorf("expected InstanceAssociationExecutionSummary to be of type string, got %T instead", value) } - sv.ExecutionSummary = &jtv + sv.ExecutionSummary = ptr.String(jtv) } case "InstanceId": @@ -24168,7 +24214,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfo(v **types.Ins if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "Name": @@ -24177,7 +24223,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfo(v **types.Ins if !ok { return fmt.Errorf("expected DocumentARN to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OutputUrl": @@ -24191,7 +24237,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfo(v **types.Ins if !ok { return fmt.Errorf("expected StatusName to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -24203,7 +24249,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfo(v **types.Ins return nil } -func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfos(v *[]*types.InstanceAssociationStatusInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfos(v *[]types.InstanceAssociationStatusInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24216,18 +24262,20 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfos(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceAssociationStatusInfo + var cv []types.InstanceAssociationStatusInfo if *v == nil { - cv = []*types.InstanceAssociationStatusInfo{} + cv = []types.InstanceAssociationStatusInfo{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceAssociationStatusInfo - if err := awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfo(&col, value); err != nil { + var col types.InstanceAssociationStatusInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24235,7 +24283,7 @@ func awsAwsjson11_deserializeDocumentInstanceAssociationStatusInfos(v *[]*types. return nil } -func awsAwsjson11_deserializeDocumentInstanceIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24248,21 +24296,21 @@ func awsAwsjson11_deserializeDocumentInstanceIdList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -24299,7 +24347,7 @@ func awsAwsjson11_deserializeDocumentInstanceInformation(v **types.InstanceInfor if !ok { return fmt.Errorf("expected ActivationId to be of type string, got %T instead", value) } - sv.ActivationId = &jtv + sv.ActivationId = ptr.String(jtv) } case "AgentVersion": @@ -24308,7 +24356,7 @@ func awsAwsjson11_deserializeDocumentInstanceInformation(v **types.InstanceInfor if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.AgentVersion = &jtv + sv.AgentVersion = ptr.String(jtv) } case "AssociationOverview": @@ -24322,7 +24370,7 @@ func awsAwsjson11_deserializeDocumentInstanceInformation(v **types.InstanceInfor if !ok { return fmt.Errorf("expected StatusName to be of type string, got %T instead", value) } - sv.AssociationStatus = &jtv + sv.AssociationStatus = ptr.String(jtv) } case "ComputerName": @@ -24331,7 +24379,7 @@ func awsAwsjson11_deserializeDocumentInstanceInformation(v **types.InstanceInfor if !ok { return fmt.Errorf("expected ComputerName to be of type string, got %T instead", value) } - sv.ComputerName = &jtv + sv.ComputerName = ptr.String(jtv) } case "IamRole": @@ -24340,7 +24388,7 @@ func awsAwsjson11_deserializeDocumentInstanceInformation(v **types.InstanceInfor if !ok { return fmt.Errorf("expected IamRole to be of type string, got %T instead", value) } - sv.IamRole = &jtv + sv.IamRole = ptr.String(jtv) } case "InstanceId": @@ -24349,7 +24397,7 @@ func awsAwsjson11_deserializeDocumentInstanceInformation(v **types.InstanceInfor if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "IPAddress": @@ -24358,7 +24406,7 @@ func awsAwsjson11_deserializeDocumentInstanceInformation(v **types.InstanceInfor if !ok { return fmt.Errorf("expected IPAddress to be of type string, got %T instead", value) } - sv.IPAddress = &jtv + sv.IPAddress = ptr.String(jtv) } case "IsLatestVersion": @@ -24367,7 +24415,7 @@ func awsAwsjson11_deserializeDocumentInstanceInformation(v **types.InstanceInfor if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsLatestVersion = &jtv + sv.IsLatestVersion = jtv } case "LastAssociationExecutionDate": @@ -24415,7 +24463,7 @@ func awsAwsjson11_deserializeDocumentInstanceInformation(v **types.InstanceInfor if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PingStatus": @@ -24433,7 +24481,7 @@ func awsAwsjson11_deserializeDocumentInstanceInformation(v **types.InstanceInfor if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PlatformName = &jtv + sv.PlatformName = ptr.String(jtv) } case "PlatformType": @@ -24451,7 +24499,7 @@ func awsAwsjson11_deserializeDocumentInstanceInformation(v **types.InstanceInfor if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PlatformVersion = &jtv + sv.PlatformVersion = ptr.String(jtv) } case "RegistrationDate": @@ -24485,7 +24533,7 @@ func awsAwsjson11_deserializeDocumentInstanceInformation(v **types.InstanceInfor return nil } -func awsAwsjson11_deserializeDocumentInstanceInformationList(v *[]*types.InstanceInformation, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceInformationList(v *[]types.InstanceInformation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24498,18 +24546,20 @@ func awsAwsjson11_deserializeDocumentInstanceInformationList(v *[]*types.Instanc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceInformation + var cv []types.InstanceInformation if *v == nil { - cv = []*types.InstanceInformation{} + cv = []types.InstanceInformation{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceInformation - if err := awsAwsjson11_deserializeDocumentInstanceInformation(&col, value); err != nil { + var col types.InstanceInformation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceInformation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24545,7 +24595,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if !ok { return fmt.Errorf("expected BaselineId to be of type string, got %T instead", value) } - sv.BaselineId = &jtv + sv.BaselineId = ptr.String(jtv) } case "FailedCount": @@ -24558,7 +24608,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.FailedCount = ptr.Int32(int32(i64)) + sv.FailedCount = int32(i64) } case "InstalledCount": @@ -24571,7 +24621,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.InstalledCount = ptr.Int32(int32(i64)) + sv.InstalledCount = int32(i64) } case "InstalledOtherCount": @@ -24584,7 +24634,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.InstalledOtherCount = ptr.Int32(int32(i64)) + sv.InstalledOtherCount = int32(i64) } case "InstalledPendingRebootCount": @@ -24597,7 +24647,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.InstalledPendingRebootCount = ptr.Int32(int32(i64)) + sv.InstalledPendingRebootCount = int32(i64) } case "InstalledRejectedCount": @@ -24610,7 +24660,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.InstalledRejectedCount = ptr.Int32(int32(i64)) + sv.InstalledRejectedCount = int32(i64) } case "InstallOverrideList": @@ -24619,7 +24669,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if !ok { return fmt.Errorf("expected InstallOverrideList to be of type string, got %T instead", value) } - sv.InstallOverrideList = &jtv + sv.InstallOverrideList = ptr.String(jtv) } case "InstanceId": @@ -24628,7 +24678,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "LastNoRebootInstallOperationTime": @@ -24654,7 +24704,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.MissingCount = ptr.Int32(int32(i64)) + sv.MissingCount = int32(i64) } case "NotApplicableCount": @@ -24667,7 +24717,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.NotApplicableCount = ptr.Int32(int32(i64)) + sv.NotApplicableCount = int32(i64) } case "Operation": @@ -24711,7 +24761,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if !ok { return fmt.Errorf("expected OwnerInformation to be of type string, got %T instead", value) } - sv.OwnerInformation = &jtv + sv.OwnerInformation = ptr.String(jtv) } case "PatchGroup": @@ -24720,7 +24770,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if !ok { return fmt.Errorf("expected PatchGroup to be of type string, got %T instead", value) } - sv.PatchGroup = &jtv + sv.PatchGroup = ptr.String(jtv) } case "RebootOption": @@ -24738,7 +24788,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if !ok { return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.SnapshotId = &jtv + sv.SnapshotId = ptr.String(jtv) } case "UnreportedNotApplicableCount": @@ -24751,7 +24801,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.UnreportedNotApplicableCount = ptr.Int32(int32(i64)) + sv.UnreportedNotApplicableCount = int32(i64) } default: @@ -24763,7 +24813,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS return nil } -func awsAwsjson11_deserializeDocumentInstancePatchStateList(v *[]*types.InstancePatchState, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstancePatchStateList(v *[]types.InstancePatchState, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24776,18 +24826,20 @@ func awsAwsjson11_deserializeDocumentInstancePatchStateList(v *[]*types.Instance return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstancePatchState + var cv []types.InstancePatchState if *v == nil { - cv = []*types.InstancePatchState{} + cv = []types.InstancePatchState{} } else { cv = *v } for _, value := range shape { - var col *types.InstancePatchState - if err := awsAwsjson11_deserializeDocumentInstancePatchState(&col, value); err != nil { + var col types.InstancePatchState + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstancePatchState(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24795,7 +24847,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchStateList(v *[]*types.Instance return nil } -func awsAwsjson11_deserializeDocumentInstancePatchStatesList(v *[]*types.InstancePatchState, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstancePatchStatesList(v *[]types.InstancePatchState, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24808,18 +24860,20 @@ func awsAwsjson11_deserializeDocumentInstancePatchStatesList(v *[]*types.Instanc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstancePatchState + var cv []types.InstancePatchState if *v == nil { - cv = []*types.InstancePatchState{} + cv = []types.InstancePatchState{} } else { cv = *v } for _, value := range shape { - var col *types.InstancePatchState - if err := awsAwsjson11_deserializeDocumentInstancePatchState(&col, value); err != nil { + var col types.InstancePatchState + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstancePatchState(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -24855,7 +24909,7 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24895,7 +24949,7 @@ func awsAwsjson11_deserializeDocumentInvalidActivation(v **types.InvalidActivati if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24935,7 +24989,7 @@ func awsAwsjson11_deserializeDocumentInvalidActivationId(v **types.InvalidActiva if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -24975,7 +25029,7 @@ func awsAwsjson11_deserializeDocumentInvalidAggregatorException(v **types.Invali if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25015,7 +25069,7 @@ func awsAwsjson11_deserializeDocumentInvalidAllowedPatternException(v **types.In if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25055,7 +25109,7 @@ func awsAwsjson11_deserializeDocumentInvalidAssociation(v **types.InvalidAssocia if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25095,7 +25149,7 @@ func awsAwsjson11_deserializeDocumentInvalidAssociationVersion(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25135,7 +25189,7 @@ func awsAwsjson11_deserializeDocumentInvalidAutomationExecutionParametersExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25175,7 +25229,7 @@ func awsAwsjson11_deserializeDocumentInvalidAutomationSignalException(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25215,7 +25269,7 @@ func awsAwsjson11_deserializeDocumentInvalidAutomationStatusUpdateException(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25286,7 +25340,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeleteInventoryParametersException(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25326,7 +25380,7 @@ func awsAwsjson11_deserializeDocumentInvalidDeletionIdException(v **types.Invali if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25366,7 +25420,7 @@ func awsAwsjson11_deserializeDocumentInvalidDocument(v **types.InvalidDocument, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25406,7 +25460,7 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentContent(v **types.InvalidDoc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25446,7 +25500,7 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentOperation(v **types.InvalidD if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25486,7 +25540,7 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentSchemaVersion(v **types.Inva if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25526,7 +25580,7 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentType(v **types.InvalidDocume if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25566,7 +25620,7 @@ func awsAwsjson11_deserializeDocumentInvalidDocumentVersion(v **types.InvalidDoc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25606,7 +25660,7 @@ func awsAwsjson11_deserializeDocumentInvalidFilter(v **types.InvalidFilter, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25677,7 +25731,7 @@ func awsAwsjson11_deserializeDocumentInvalidFilterOption(v **types.InvalidFilter if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25717,7 +25771,7 @@ func awsAwsjson11_deserializeDocumentInvalidFilterValue(v **types.InvalidFilterV if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25757,7 +25811,7 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceId(v **types.InvalidInstance if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25797,7 +25851,7 @@ func awsAwsjson11_deserializeDocumentInvalidInstanceInformationFilterValue(v **t if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25837,7 +25891,7 @@ func awsAwsjson11_deserializeDocumentInvalidInventoryGroupException(v **types.In if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25877,7 +25931,7 @@ func awsAwsjson11_deserializeDocumentInvalidInventoryItemContextException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25917,7 +25971,7 @@ func awsAwsjson11_deserializeDocumentInvalidInventoryRequestException(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -25957,7 +26011,7 @@ func awsAwsjson11_deserializeDocumentInvalidItemContentException(v **types.Inval if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "TypeName": @@ -25966,7 +26020,7 @@ func awsAwsjson11_deserializeDocumentInvalidItemContentException(v **types.Inval if !ok { return fmt.Errorf("expected InventoryItemTypeName to be of type string, got %T instead", value) } - sv.TypeName = &jtv + sv.TypeName = ptr.String(jtv) } default: @@ -26006,7 +26060,7 @@ func awsAwsjson11_deserializeDocumentInvalidKeyId(v **types.InvalidKeyId, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26046,7 +26100,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextToken(v **types.InvalidNextToken if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26086,7 +26140,7 @@ func awsAwsjson11_deserializeDocumentInvalidNotificationConfig(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26126,7 +26180,7 @@ func awsAwsjson11_deserializeDocumentInvalidOptionException(v **types.InvalidOpt if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26228,7 +26282,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameters(v **types.InvalidParamete if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26268,7 +26322,7 @@ func awsAwsjson11_deserializeDocumentInvalidPermissionType(v **types.InvalidPerm if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26339,7 +26393,7 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyAttributeException(v **types.I if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26379,7 +26433,7 @@ func awsAwsjson11_deserializeDocumentInvalidPolicyTypeException(v **types.Invali if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26481,7 +26535,7 @@ func awsAwsjson11_deserializeDocumentInvalidResultAttributeException(v **types.I if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26521,7 +26575,7 @@ func awsAwsjson11_deserializeDocumentInvalidRole(v **types.InvalidRole, value in if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26561,7 +26615,7 @@ func awsAwsjson11_deserializeDocumentInvalidSchedule(v **types.InvalidSchedule, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26601,7 +26655,7 @@ func awsAwsjson11_deserializeDocumentInvalidTarget(v **types.InvalidTarget, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26641,7 +26695,7 @@ func awsAwsjson11_deserializeDocumentInvalidTypeNameException(v **types.InvalidT if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26681,7 +26735,7 @@ func awsAwsjson11_deserializeDocumentInvalidUpdate(v **types.InvalidUpdate, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -26693,7 +26747,7 @@ func awsAwsjson11_deserializeDocumentInvalidUpdate(v **types.InvalidUpdate, valu return nil } -func awsAwsjson11_deserializeDocumentInventoryDeletionsList(v *[]*types.InventoryDeletionStatusItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentInventoryDeletionsList(v *[]types.InventoryDeletionStatusItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26706,18 +26760,20 @@ func awsAwsjson11_deserializeDocumentInventoryDeletionsList(v *[]*types.Inventor return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InventoryDeletionStatusItem + var cv []types.InventoryDeletionStatusItem if *v == nil { - cv = []*types.InventoryDeletionStatusItem{} + cv = []types.InventoryDeletionStatusItem{} } else { cv = *v } for _, value := range shape { - var col *types.InventoryDeletionStatusItem - if err := awsAwsjson11_deserializeDocumentInventoryDeletionStatusItem(&col, value); err != nil { + var col types.InventoryDeletionStatusItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInventoryDeletionStatusItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -26753,7 +26809,7 @@ func awsAwsjson11_deserializeDocumentInventoryDeletionStatusItem(v **types.Inven if !ok { return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.DeletionId = &jtv + sv.DeletionId = ptr.String(jtv) } case "DeletionStartTime": @@ -26789,7 +26845,7 @@ func awsAwsjson11_deserializeDocumentInventoryDeletionStatusItem(v **types.Inven if !ok { return fmt.Errorf("expected InventoryDeletionLastStatusMessage to be of type string, got %T instead", value) } - sv.LastStatusMessage = &jtv + sv.LastStatusMessage = ptr.String(jtv) } case "LastStatusUpdateTime": @@ -26811,7 +26867,7 @@ func awsAwsjson11_deserializeDocumentInventoryDeletionStatusItem(v **types.Inven if !ok { return fmt.Errorf("expected InventoryItemTypeName to be of type string, got %T instead", value) } - sv.TypeName = &jtv + sv.TypeName = ptr.String(jtv) } default: @@ -26855,7 +26911,7 @@ func awsAwsjson11_deserializeDocumentInventoryDeletionSummary(v **types.Inventor if err != nil { return err } - sv.RemainingCount = ptr.Int32(int32(i64)) + sv.RemainingCount = int32(i64) } case "SummaryItems": @@ -26873,7 +26929,7 @@ func awsAwsjson11_deserializeDocumentInventoryDeletionSummary(v **types.Inventor if err != nil { return err } - sv.TotalCount = ptr.Int32(int32(i64)) + sv.TotalCount = int32(i64) } default: @@ -26917,7 +26973,7 @@ func awsAwsjson11_deserializeDocumentInventoryDeletionSummaryItem(v **types.Inve if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "RemainingCount": @@ -26930,7 +26986,7 @@ func awsAwsjson11_deserializeDocumentInventoryDeletionSummaryItem(v **types.Inve if err != nil { return err } - sv.RemainingCount = ptr.Int32(int32(i64)) + sv.RemainingCount = int32(i64) } case "Version": @@ -26939,7 +26995,7 @@ func awsAwsjson11_deserializeDocumentInventoryDeletionSummaryItem(v **types.Inve if !ok { return fmt.Errorf("expected InventoryItemSchemaVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -26951,7 +27007,7 @@ func awsAwsjson11_deserializeDocumentInventoryDeletionSummaryItem(v **types.Inve return nil } -func awsAwsjson11_deserializeDocumentInventoryDeletionSummaryItems(v *[]*types.InventoryDeletionSummaryItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentInventoryDeletionSummaryItems(v *[]types.InventoryDeletionSummaryItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26964,18 +27020,20 @@ func awsAwsjson11_deserializeDocumentInventoryDeletionSummaryItems(v *[]*types.I return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InventoryDeletionSummaryItem + var cv []types.InventoryDeletionSummaryItem if *v == nil { - cv = []*types.InventoryDeletionSummaryItem{} + cv = []types.InventoryDeletionSummaryItem{} } else { cv = *v } for _, value := range shape { - var col *types.InventoryDeletionSummaryItem - if err := awsAwsjson11_deserializeDocumentInventoryDeletionSummaryItem(&col, value); err != nil { + var col types.InventoryDeletionSummaryItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInventoryDeletionSummaryItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27020,7 +27078,7 @@ func awsAwsjson11_deserializeDocumentInventoryItemAttribute(v **types.InventoryI if !ok { return fmt.Errorf("expected InventoryItemAttributeName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -27032,7 +27090,7 @@ func awsAwsjson11_deserializeDocumentInventoryItemAttribute(v **types.InventoryI return nil } -func awsAwsjson11_deserializeDocumentInventoryItemAttributeList(v *[]*types.InventoryItemAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentInventoryItemAttributeList(v *[]types.InventoryItemAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27045,18 +27103,20 @@ func awsAwsjson11_deserializeDocumentInventoryItemAttributeList(v *[]*types.Inve return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InventoryItemAttribute + var cv []types.InventoryItemAttribute if *v == nil { - cv = []*types.InventoryItemAttribute{} + cv = []types.InventoryItemAttribute{} } else { cv = *v } for _, value := range shape { - var col *types.InventoryItemAttribute - if err := awsAwsjson11_deserializeDocumentInventoryItemAttribute(&col, value); err != nil { + var col types.InventoryItemAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInventoryItemAttribute(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27064,7 +27124,7 @@ func awsAwsjson11_deserializeDocumentInventoryItemAttributeList(v *[]*types.Inve return nil } -func awsAwsjson11_deserializeDocumentInventoryItemEntry(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentInventoryItemEntry(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27077,21 +27137,21 @@ func awsAwsjson11_deserializeDocumentInventoryItemEntry(v *map[string]*string, v return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -27100,7 +27160,7 @@ func awsAwsjson11_deserializeDocumentInventoryItemEntry(v *map[string]*string, v return nil } -func awsAwsjson11_deserializeDocumentInventoryItemEntryList(v *[]map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentInventoryItemEntryList(v *[]map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27113,15 +27173,15 @@ func awsAwsjson11_deserializeDocumentInventoryItemEntryList(v *[]map[string]*str return fmt.Errorf("unexpected JSON type %v", value) } - var cv []map[string]*string + var cv []map[string]string if *v == nil { - cv = []map[string]*string{} + cv = []map[string]string{} } else { cv = *v } for _, value := range shape { - var col map[string]*string + var col map[string]string if err := awsAwsjson11_deserializeDocumentInventoryItemEntry(&col, value); err != nil { return err } @@ -27165,7 +27225,7 @@ func awsAwsjson11_deserializeDocumentInventoryItemSchema(v **types.InventoryItem if !ok { return fmt.Errorf("expected InventoryTypeDisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "TypeName": @@ -27174,7 +27234,7 @@ func awsAwsjson11_deserializeDocumentInventoryItemSchema(v **types.InventoryItem if !ok { return fmt.Errorf("expected InventoryItemTypeName to be of type string, got %T instead", value) } - sv.TypeName = &jtv + sv.TypeName = ptr.String(jtv) } case "Version": @@ -27183,7 +27243,7 @@ func awsAwsjson11_deserializeDocumentInventoryItemSchema(v **types.InventoryItem if !ok { return fmt.Errorf("expected InventoryItemSchemaVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -27195,7 +27255,7 @@ func awsAwsjson11_deserializeDocumentInventoryItemSchema(v **types.InventoryItem return nil } -func awsAwsjson11_deserializeDocumentInventoryItemSchemaResultList(v *[]*types.InventoryItemSchema, value interface{}) error { +func awsAwsjson11_deserializeDocumentInventoryItemSchemaResultList(v *[]types.InventoryItemSchema, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27208,18 +27268,20 @@ func awsAwsjson11_deserializeDocumentInventoryItemSchemaResultList(v *[]*types.I return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InventoryItemSchema + var cv []types.InventoryItemSchema if *v == nil { - cv = []*types.InventoryItemSchema{} + cv = []types.InventoryItemSchema{} } else { cv = *v } for _, value := range shape { - var col *types.InventoryItemSchema - if err := awsAwsjson11_deserializeDocumentInventoryItemSchema(&col, value); err != nil { + var col types.InventoryItemSchema + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInventoryItemSchema(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27260,7 +27322,7 @@ func awsAwsjson11_deserializeDocumentInventoryResultEntity(v **types.InventoryRe if !ok { return fmt.Errorf("expected InventoryResultEntityId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -27272,7 +27334,7 @@ func awsAwsjson11_deserializeDocumentInventoryResultEntity(v **types.InventoryRe return nil } -func awsAwsjson11_deserializeDocumentInventoryResultEntityList(v *[]*types.InventoryResultEntity, value interface{}) error { +func awsAwsjson11_deserializeDocumentInventoryResultEntityList(v *[]types.InventoryResultEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27285,18 +27347,20 @@ func awsAwsjson11_deserializeDocumentInventoryResultEntityList(v *[]*types.Inven return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InventoryResultEntity + var cv []types.InventoryResultEntity if *v == nil { - cv = []*types.InventoryResultEntity{} + cv = []types.InventoryResultEntity{} } else { cv = *v } for _, value := range shape { - var col *types.InventoryResultEntity - if err := awsAwsjson11_deserializeDocumentInventoryResultEntity(&col, value); err != nil { + var col types.InventoryResultEntity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInventoryResultEntity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27332,7 +27396,7 @@ func awsAwsjson11_deserializeDocumentInventoryResultItem(v **types.InventoryResu if !ok { return fmt.Errorf("expected InventoryItemCaptureTime to be of type string, got %T instead", value) } - sv.CaptureTime = &jtv + sv.CaptureTime = ptr.String(jtv) } case "Content": @@ -27346,7 +27410,7 @@ func awsAwsjson11_deserializeDocumentInventoryResultItem(v **types.InventoryResu if !ok { return fmt.Errorf("expected InventoryItemContentHash to be of type string, got %T instead", value) } - sv.ContentHash = &jtv + sv.ContentHash = ptr.String(jtv) } case "SchemaVersion": @@ -27355,7 +27419,7 @@ func awsAwsjson11_deserializeDocumentInventoryResultItem(v **types.InventoryResu if !ok { return fmt.Errorf("expected InventoryItemSchemaVersion to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "TypeName": @@ -27364,7 +27428,7 @@ func awsAwsjson11_deserializeDocumentInventoryResultItem(v **types.InventoryResu if !ok { return fmt.Errorf("expected InventoryItemTypeName to be of type string, got %T instead", value) } - sv.TypeName = &jtv + sv.TypeName = ptr.String(jtv) } default: @@ -27376,7 +27440,7 @@ func awsAwsjson11_deserializeDocumentInventoryResultItem(v **types.InventoryResu return nil } -func awsAwsjson11_deserializeDocumentInventoryResultItemMap(v *map[string]*types.InventoryResultItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentInventoryResultItemMap(v *map[string]types.InventoryResultItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27389,18 +27453,21 @@ func awsAwsjson11_deserializeDocumentInventoryResultItemMap(v *map[string]*types return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.InventoryResultItem + var mv map[string]types.InventoryResultItem if *v == nil { - mv = map[string]*types.InventoryResultItem{} + mv = map[string]types.InventoryResultItem{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.InventoryResultItem - if err := awsAwsjson11_deserializeDocumentInventoryResultItem(&parsedVal, value); err != nil { + var parsedVal types.InventoryResultItem + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentInventoryResultItem(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -27467,7 +27534,7 @@ func awsAwsjson11_deserializeDocumentItemContentMismatchException(v **types.Item if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "TypeName": @@ -27476,7 +27543,7 @@ func awsAwsjson11_deserializeDocumentItemContentMismatchException(v **types.Item if !ok { return fmt.Errorf("expected InventoryItemTypeName to be of type string, got %T instead", value) } - sv.TypeName = &jtv + sv.TypeName = ptr.String(jtv) } default: @@ -27516,7 +27583,7 @@ func awsAwsjson11_deserializeDocumentItemSizeLimitExceededException(v **types.It if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "TypeName": @@ -27525,7 +27592,7 @@ func awsAwsjson11_deserializeDocumentItemSizeLimitExceededException(v **types.It if !ok { return fmt.Errorf("expected InventoryItemTypeName to be of type string, got %T instead", value) } - sv.TypeName = &jtv + sv.TypeName = ptr.String(jtv) } default: @@ -27565,7 +27632,7 @@ func awsAwsjson11_deserializeDocumentLoggingInfo(v **types.LoggingInfo, value in if !ok { return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "S3KeyPrefix": @@ -27574,7 +27641,7 @@ func awsAwsjson11_deserializeDocumentLoggingInfo(v **types.LoggingInfo, value in if !ok { return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) } - sv.S3KeyPrefix = &jtv + sv.S3KeyPrefix = ptr.String(jtv) } case "S3Region": @@ -27583,7 +27650,7 @@ func awsAwsjson11_deserializeDocumentLoggingInfo(v **types.LoggingInfo, value in if !ok { return fmt.Errorf("expected S3Region to be of type string, got %T instead", value) } - sv.S3Region = &jtv + sv.S3Region = ptr.String(jtv) } default: @@ -27623,7 +27690,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowAutomationParameters(v **t if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "Parameters": @@ -27703,7 +27770,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecution(v **types.Mainte if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionStatusDetails to be of type string, got %T instead", value) } - sv.StatusDetails = &jtv + sv.StatusDetails = ptr.String(jtv) } case "WindowExecutionId": @@ -27712,7 +27779,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecution(v **types.Mainte if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionId to be of type string, got %T instead", value) } - sv.WindowExecutionId = &jtv + sv.WindowExecutionId = ptr.String(jtv) } case "WindowId": @@ -27721,7 +27788,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecution(v **types.Mainte if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } default: @@ -27733,7 +27800,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecution(v **types.Mainte return nil } -func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionList(v *[]*types.MaintenanceWindowExecution, value interface{}) error { +func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionList(v *[]types.MaintenanceWindowExecution, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27746,18 +27813,20 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MaintenanceWindowExecution + var cv []types.MaintenanceWindowExecution if *v == nil { - cv = []*types.MaintenanceWindowExecution{} + cv = []types.MaintenanceWindowExecution{} } else { cv = *v } for _, value := range shape { - var col *types.MaintenanceWindowExecution - if err := awsAwsjson11_deserializeDocumentMaintenanceWindowExecution(&col, value); err != nil { + var col types.MaintenanceWindowExecution + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMaintenanceWindowExecution(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27828,7 +27897,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdentity(v ** if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionStatusDetails to be of type string, got %T instead", value) } - sv.StatusDetails = &jtv + sv.StatusDetails = ptr.String(jtv) } case "TaskArn": @@ -27837,7 +27906,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdentity(v ** if !ok { return fmt.Errorf("expected MaintenanceWindowTaskArn to be of type string, got %T instead", value) } - sv.TaskArn = &jtv + sv.TaskArn = ptr.String(jtv) } case "TaskExecutionId": @@ -27846,7 +27915,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdentity(v ** if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionTaskId to be of type string, got %T instead", value) } - sv.TaskExecutionId = &jtv + sv.TaskExecutionId = ptr.String(jtv) } case "TaskType": @@ -27864,7 +27933,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdentity(v ** if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionId to be of type string, got %T instead", value) } - sv.WindowExecutionId = &jtv + sv.WindowExecutionId = ptr.String(jtv) } default: @@ -27876,7 +27945,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdentity(v ** return nil } -func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdentityList(v *[]*types.MaintenanceWindowExecutionTaskIdentity, value interface{}) error { +func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdentityList(v *[]types.MaintenanceWindowExecutionTaskIdentity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27889,18 +27958,20 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdentityList( return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MaintenanceWindowExecutionTaskIdentity + var cv []types.MaintenanceWindowExecutionTaskIdentity if *v == nil { - cv = []*types.MaintenanceWindowExecutionTaskIdentity{} + cv = []types.MaintenanceWindowExecutionTaskIdentity{} } else { cv = *v } for _, value := range shape { - var col *types.MaintenanceWindowExecutionTaskIdentity - if err := awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdentity(&col, value); err != nil { + var col types.MaintenanceWindowExecutionTaskIdentity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdentity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -27908,7 +27979,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdentityList( return nil } -func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27921,21 +27992,21 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskIdList(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionTaskId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -27985,7 +28056,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIde if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionTaskExecutionId to be of type string, got %T instead", value) } - sv.ExecutionId = &jtv + sv.ExecutionId = ptr.String(jtv) } case "InvocationId": @@ -27994,7 +28065,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIde if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionTaskInvocationId to be of type string, got %T instead", value) } - sv.InvocationId = &jtv + sv.InvocationId = ptr.String(jtv) } case "OwnerInformation": @@ -28003,7 +28074,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIde if !ok { return fmt.Errorf("expected OwnerInformation to be of type string, got %T instead", value) } - sv.OwnerInformation = &jtv + sv.OwnerInformation = ptr.String(jtv) } case "Parameters": @@ -28012,7 +28083,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIde if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionTaskInvocationParameters to be of type string, got %T instead", value) } - sv.Parameters = &jtv + sv.Parameters = ptr.String(jtv) } case "StartTime": @@ -28043,7 +28114,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIde if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionStatusDetails to be of type string, got %T instead", value) } - sv.StatusDetails = &jtv + sv.StatusDetails = ptr.String(jtv) } case "TaskExecutionId": @@ -28052,7 +28123,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIde if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionTaskId to be of type string, got %T instead", value) } - sv.TaskExecutionId = &jtv + sv.TaskExecutionId = ptr.String(jtv) } case "TaskType": @@ -28070,7 +28141,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIde if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionId to be of type string, got %T instead", value) } - sv.WindowExecutionId = &jtv + sv.WindowExecutionId = ptr.String(jtv) } case "WindowTargetId": @@ -28079,7 +28150,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIde if !ok { return fmt.Errorf("expected MaintenanceWindowTaskTargetId to be of type string, got %T instead", value) } - sv.WindowTargetId = &jtv + sv.WindowTargetId = ptr.String(jtv) } default: @@ -28091,7 +28162,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIde return nil } -func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIdentityList(v *[]*types.MaintenanceWindowExecutionTaskInvocationIdentity, value interface{}) error { +func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIdentityList(v *[]types.MaintenanceWindowExecutionTaskInvocationIdentity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28104,18 +28175,20 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIde return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MaintenanceWindowExecutionTaskInvocationIdentity + var cv []types.MaintenanceWindowExecutionTaskInvocationIdentity if *v == nil { - cv = []*types.MaintenanceWindowExecutionTaskInvocationIdentity{} + cv = []types.MaintenanceWindowExecutionTaskInvocationIdentity{} } else { cv = *v } for _, value := range shape { - var col *types.MaintenanceWindowExecutionTaskInvocationIdentity - if err := awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIdentity(&col, value); err != nil { + var col types.MaintenanceWindowExecutionTaskInvocationIdentity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMaintenanceWindowExecutionTaskInvocationIdentity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28155,7 +28228,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(v **types.Mainten if err != nil { return err } - sv.Cutoff = ptr.Int32(int32(i64)) + sv.Cutoff = int32(i64) } case "Description": @@ -28164,7 +28237,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(v **types.Mainten if !ok { return fmt.Errorf("expected MaintenanceWindowDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Duration": @@ -28177,7 +28250,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(v **types.Mainten if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "Enabled": @@ -28186,7 +28259,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(v **types.Mainten if !ok { return fmt.Errorf("expected MaintenanceWindowEnabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "EndDate": @@ -28195,7 +28268,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(v **types.Mainten if !ok { return fmt.Errorf("expected MaintenanceWindowStringDateTime to be of type string, got %T instead", value) } - sv.EndDate = &jtv + sv.EndDate = ptr.String(jtv) } case "Name": @@ -28204,7 +28277,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(v **types.Mainten if !ok { return fmt.Errorf("expected MaintenanceWindowName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NextExecutionTime": @@ -28213,7 +28286,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(v **types.Mainten if !ok { return fmt.Errorf("expected MaintenanceWindowStringDateTime to be of type string, got %T instead", value) } - sv.NextExecutionTime = &jtv + sv.NextExecutionTime = ptr.String(jtv) } case "Schedule": @@ -28222,7 +28295,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(v **types.Mainten if !ok { return fmt.Errorf("expected MaintenanceWindowSchedule to be of type string, got %T instead", value) } - sv.Schedule = &jtv + sv.Schedule = ptr.String(jtv) } case "ScheduleOffset": @@ -28235,7 +28308,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(v **types.Mainten if err != nil { return err } - sv.ScheduleOffset = ptr.Int32(int32(i64)) + sv.ScheduleOffset = int32(i64) } case "ScheduleTimezone": @@ -28244,7 +28317,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(v **types.Mainten if !ok { return fmt.Errorf("expected MaintenanceWindowTimezone to be of type string, got %T instead", value) } - sv.ScheduleTimezone = &jtv + sv.ScheduleTimezone = ptr.String(jtv) } case "StartDate": @@ -28253,7 +28326,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(v **types.Mainten if !ok { return fmt.Errorf("expected MaintenanceWindowStringDateTime to be of type string, got %T instead", value) } - sv.StartDate = &jtv + sv.StartDate = ptr.String(jtv) } case "WindowId": @@ -28262,7 +28335,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(v **types.Mainten if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } default: @@ -28302,7 +28375,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentityForTarget(v **type if !ok { return fmt.Errorf("expected MaintenanceWindowName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "WindowId": @@ -28311,7 +28384,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentityForTarget(v **type if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } default: @@ -28323,7 +28396,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentityForTarget(v **type return nil } -func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentityList(v *[]*types.MaintenanceWindowIdentity, value interface{}) error { +func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentityList(v *[]types.MaintenanceWindowIdentity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28336,18 +28409,20 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentityList(v *[]*types.M return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MaintenanceWindowIdentity + var cv []types.MaintenanceWindowIdentity if *v == nil { - cv = []*types.MaintenanceWindowIdentity{} + cv = []types.MaintenanceWindowIdentity{} } else { cv = *v } for _, value := range shape { - var col *types.MaintenanceWindowIdentity - if err := awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(&col, value); err != nil { + var col types.MaintenanceWindowIdentity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28383,7 +28458,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowLambdaParameters(v **types if !ok { return fmt.Errorf("expected MaintenanceWindowLambdaClientContext to be of type string, got %T instead", value) } - sv.ClientContext = &jtv + sv.ClientContext = ptr.String(jtv) } case "Payload": @@ -28405,7 +28480,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowLambdaParameters(v **types if !ok { return fmt.Errorf("expected MaintenanceWindowLambdaQualifier to be of type string, got %T instead", value) } - sv.Qualifier = &jtv + sv.Qualifier = ptr.String(jtv) } default: @@ -28450,7 +28525,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowRunCommandParameters(v **t if !ok { return fmt.Errorf("expected Comment to be of type string, got %T instead", value) } - sv.Comment = &jtv + sv.Comment = ptr.String(jtv) } case "DocumentHash": @@ -28459,7 +28534,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowRunCommandParameters(v **t if !ok { return fmt.Errorf("expected DocumentHash to be of type string, got %T instead", value) } - sv.DocumentHash = &jtv + sv.DocumentHash = ptr.String(jtv) } case "DocumentHashType": @@ -28477,7 +28552,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowRunCommandParameters(v **t if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "NotificationConfig": @@ -28491,7 +28566,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowRunCommandParameters(v **t if !ok { return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) } - sv.OutputS3BucketName = &jtv + sv.OutputS3BucketName = ptr.String(jtv) } case "OutputS3KeyPrefix": @@ -28500,7 +28575,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowRunCommandParameters(v **t if !ok { return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) } - sv.OutputS3KeyPrefix = &jtv + sv.OutputS3KeyPrefix = ptr.String(jtv) } case "Parameters": @@ -28514,7 +28589,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowRunCommandParameters(v **t if !ok { return fmt.Errorf("expected ServiceRole to be of type string, got %T instead", value) } - sv.ServiceRoleArn = &jtv + sv.ServiceRoleArn = ptr.String(jtv) } case "TimeoutSeconds": @@ -28527,7 +28602,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowRunCommandParameters(v **t if err != nil { return err } - sv.TimeoutSeconds = ptr.Int32(int32(i64)) + sv.TimeoutSeconds = int32(i64) } default: @@ -28539,7 +28614,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowRunCommandParameters(v **t return nil } -func awsAwsjson11_deserializeDocumentMaintenanceWindowsForTargetList(v *[]*types.MaintenanceWindowIdentityForTarget, value interface{}) error { +func awsAwsjson11_deserializeDocumentMaintenanceWindowsForTargetList(v *[]types.MaintenanceWindowIdentityForTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28552,18 +28627,20 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowsForTargetList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MaintenanceWindowIdentityForTarget + var cv []types.MaintenanceWindowIdentityForTarget if *v == nil { - cv = []*types.MaintenanceWindowIdentityForTarget{} + cv = []types.MaintenanceWindowIdentityForTarget{} } else { cv = *v } for _, value := range shape { - var col *types.MaintenanceWindowIdentityForTarget - if err := awsAwsjson11_deserializeDocumentMaintenanceWindowIdentityForTarget(&col, value); err != nil { + var col types.MaintenanceWindowIdentityForTarget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMaintenanceWindowIdentityForTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28599,7 +28676,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowStepFunctionsParameters(v if !ok { return fmt.Errorf("expected MaintenanceWindowStepFunctionsInput to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "Name": @@ -28608,7 +28685,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowStepFunctionsParameters(v if !ok { return fmt.Errorf("expected MaintenanceWindowStepFunctionsName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -28648,7 +28725,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTarget(v **types.Maintenan if !ok { return fmt.Errorf("expected MaintenanceWindowDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -28657,7 +28734,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTarget(v **types.Maintenan if !ok { return fmt.Errorf("expected MaintenanceWindowName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OwnerInformation": @@ -28666,7 +28743,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTarget(v **types.Maintenan if !ok { return fmt.Errorf("expected OwnerInformation to be of type string, got %T instead", value) } - sv.OwnerInformation = &jtv + sv.OwnerInformation = ptr.String(jtv) } case "ResourceType": @@ -28689,7 +28766,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTarget(v **types.Maintenan if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } case "WindowTargetId": @@ -28698,7 +28775,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTarget(v **types.Maintenan if !ok { return fmt.Errorf("expected MaintenanceWindowTargetId to be of type string, got %T instead", value) } - sv.WindowTargetId = &jtv + sv.WindowTargetId = ptr.String(jtv) } default: @@ -28710,7 +28787,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTarget(v **types.Maintenan return nil } -func awsAwsjson11_deserializeDocumentMaintenanceWindowTargetList(v *[]*types.MaintenanceWindowTarget, value interface{}) error { +func awsAwsjson11_deserializeDocumentMaintenanceWindowTargetList(v *[]types.MaintenanceWindowTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28723,18 +28800,20 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTargetList(v *[]*types.Mai return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MaintenanceWindowTarget + var cv []types.MaintenanceWindowTarget if *v == nil { - cv = []*types.MaintenanceWindowTarget{} + cv = []types.MaintenanceWindowTarget{} } else { cv = *v } for _, value := range shape { - var col *types.MaintenanceWindowTarget - if err := awsAwsjson11_deserializeDocumentMaintenanceWindowTarget(&col, value); err != nil { + var col types.MaintenanceWindowTarget + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMaintenanceWindowTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28770,7 +28849,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTask(v **types.Maintenance if !ok { return fmt.Errorf("expected MaintenanceWindowDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LoggingInfo": @@ -28784,7 +28863,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTask(v **types.Maintenance if !ok { return fmt.Errorf("expected MaxConcurrency to be of type string, got %T instead", value) } - sv.MaxConcurrency = &jtv + sv.MaxConcurrency = ptr.String(jtv) } case "MaxErrors": @@ -28793,7 +28872,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTask(v **types.Maintenance if !ok { return fmt.Errorf("expected MaxErrors to be of type string, got %T instead", value) } - sv.MaxErrors = &jtv + sv.MaxErrors = ptr.String(jtv) } case "Name": @@ -28802,7 +28881,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTask(v **types.Maintenance if !ok { return fmt.Errorf("expected MaintenanceWindowName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Priority": @@ -28815,7 +28894,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTask(v **types.Maintenance if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "ServiceRoleArn": @@ -28824,7 +28903,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTask(v **types.Maintenance if !ok { return fmt.Errorf("expected ServiceRole to be of type string, got %T instead", value) } - sv.ServiceRoleArn = &jtv + sv.ServiceRoleArn = ptr.String(jtv) } case "Targets": @@ -28838,7 +28917,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTask(v **types.Maintenance if !ok { return fmt.Errorf("expected MaintenanceWindowTaskArn to be of type string, got %T instead", value) } - sv.TaskArn = &jtv + sv.TaskArn = ptr.String(jtv) } case "TaskParameters": @@ -28861,7 +28940,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTask(v **types.Maintenance if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } case "WindowTaskId": @@ -28870,7 +28949,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTask(v **types.Maintenance if !ok { return fmt.Errorf("expected MaintenanceWindowTaskId to be of type string, got %T instead", value) } - sv.WindowTaskId = &jtv + sv.WindowTaskId = ptr.String(jtv) } default: @@ -28933,7 +29012,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskInvocationParameters(v return nil } -func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskList(v *[]*types.MaintenanceWindowTask, value interface{}) error { +func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskList(v *[]types.MaintenanceWindowTask, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28946,18 +29025,20 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskList(v *[]*types.Maint return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MaintenanceWindowTask + var cv []types.MaintenanceWindowTask if *v == nil { - cv = []*types.MaintenanceWindowTask{} + cv = []types.MaintenanceWindowTask{} } else { cv = *v } for _, value := range shape { - var col *types.MaintenanceWindowTask - if err := awsAwsjson11_deserializeDocumentMaintenanceWindowTask(&col, value); err != nil { + var col types.MaintenanceWindowTask + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMaintenanceWindowTask(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -28965,7 +29046,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskList(v *[]*types.Maint return nil } -func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParameters(v *map[string]*types.MaintenanceWindowTaskParameterValueExpression, value interface{}) error { +func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParameters(v *map[string]types.MaintenanceWindowTaskParameterValueExpression, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28978,18 +29059,21 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParameters(v *map[stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.MaintenanceWindowTaskParameterValueExpression + var mv map[string]types.MaintenanceWindowTaskParameterValueExpression if *v == nil { - mv = map[string]*types.MaintenanceWindowTaskParameterValueExpression{} + mv = map[string]types.MaintenanceWindowTaskParameterValueExpression{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.MaintenanceWindowTaskParameterValueExpression - if err := awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParameterValueExpression(&parsedVal, value); err != nil { + var parsedVal types.MaintenanceWindowTaskParameterValueExpression + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParameterValueExpression(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -28997,7 +29081,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParameters(v *map[stri return nil } -func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParametersList(v *[]map[string]*types.MaintenanceWindowTaskParameterValueExpression, value interface{}) error { +func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParametersList(v *[]map[string]types.MaintenanceWindowTaskParameterValueExpression, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29010,15 +29094,15 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParametersList(v *[]ma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []map[string]*types.MaintenanceWindowTaskParameterValueExpression + var cv []map[string]types.MaintenanceWindowTaskParameterValueExpression if *v == nil { - cv = []map[string]*types.MaintenanceWindowTaskParameterValueExpression{} + cv = []map[string]types.MaintenanceWindowTaskParameterValueExpression{} } else { cv = *v } for _, value := range shape { - var col map[string]*types.MaintenanceWindowTaskParameterValueExpression + var col map[string]types.MaintenanceWindowTaskParameterValueExpression if err := awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParameters(&col, value); err != nil { return err } @@ -29065,7 +29149,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParameterValueExpressi return nil } -func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParameterValueList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParameterValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29078,21 +29162,21 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowTaskParameterValueList(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected MaintenanceWindowTaskParameterValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -29129,7 +29213,7 @@ func awsAwsjson11_deserializeDocumentMaxDocumentSizeExceeded(v **types.MaxDocume if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29173,7 +29257,7 @@ func awsAwsjson11_deserializeDocumentNonCompliantSummary(v **types.NonCompliantS if err != nil { return err } - sv.NonCompliantCount = ptr.Int32(int32(i64)) + sv.NonCompliantCount = int32(i64) } case "SeveritySummary": @@ -29190,7 +29274,7 @@ func awsAwsjson11_deserializeDocumentNonCompliantSummary(v **types.NonCompliantS return nil } -func awsAwsjson11_deserializeDocumentNormalStringMap(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentNormalStringMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29203,21 +29287,21 @@ func awsAwsjson11_deserializeDocumentNormalStringMap(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -29254,7 +29338,7 @@ func awsAwsjson11_deserializeDocumentNotificationConfig(v **types.NotificationCo if !ok { return fmt.Errorf("expected NotificationArn to be of type string, got %T instead", value) } - sv.NotificationArn = &jtv + sv.NotificationArn = ptr.String(jtv) } case "NotificationEvents": @@ -29349,7 +29433,7 @@ func awsAwsjson11_deserializeDocumentOpsEntity(v **types.OpsEntity, value interf if !ok { return fmt.Errorf("expected OpsEntityId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -29389,7 +29473,7 @@ func awsAwsjson11_deserializeDocumentOpsEntityItem(v **types.OpsEntityItem, valu if !ok { return fmt.Errorf("expected OpsEntityItemCaptureTime to be of type string, got %T instead", value) } - sv.CaptureTime = &jtv + sv.CaptureTime = ptr.String(jtv) } case "Content": @@ -29406,7 +29490,7 @@ func awsAwsjson11_deserializeDocumentOpsEntityItem(v **types.OpsEntityItem, valu return nil } -func awsAwsjson11_deserializeDocumentOpsEntityItemEntry(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpsEntityItemEntry(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29419,21 +29503,21 @@ func awsAwsjson11_deserializeDocumentOpsEntityItemEntry(v *map[string]*string, v return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -29442,7 +29526,7 @@ func awsAwsjson11_deserializeDocumentOpsEntityItemEntry(v *map[string]*string, v return nil } -func awsAwsjson11_deserializeDocumentOpsEntityItemEntryList(v *[]map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpsEntityItemEntryList(v *[]map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29455,15 +29539,15 @@ func awsAwsjson11_deserializeDocumentOpsEntityItemEntryList(v *[]map[string]*str return fmt.Errorf("unexpected JSON type %v", value) } - var cv []map[string]*string + var cv []map[string]string if *v == nil { - cv = []map[string]*string{} + cv = []map[string]string{} } else { cv = *v } for _, value := range shape { - var col map[string]*string + var col map[string]string if err := awsAwsjson11_deserializeDocumentOpsEntityItemEntry(&col, value); err != nil { return err } @@ -29474,7 +29558,7 @@ func awsAwsjson11_deserializeDocumentOpsEntityItemEntryList(v *[]map[string]*str return nil } -func awsAwsjson11_deserializeDocumentOpsEntityItemMap(v *map[string]*types.OpsEntityItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpsEntityItemMap(v *map[string]types.OpsEntityItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29487,18 +29571,21 @@ func awsAwsjson11_deserializeDocumentOpsEntityItemMap(v *map[string]*types.OpsEn return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.OpsEntityItem + var mv map[string]types.OpsEntityItem if *v == nil { - mv = map[string]*types.OpsEntityItem{} + mv = map[string]types.OpsEntityItem{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.OpsEntityItem - if err := awsAwsjson11_deserializeDocumentOpsEntityItem(&parsedVal, value); err != nil { + var parsedVal types.OpsEntityItem + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentOpsEntityItem(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -29506,7 +29593,7 @@ func awsAwsjson11_deserializeDocumentOpsEntityItemMap(v *map[string]*types.OpsEn return nil } -func awsAwsjson11_deserializeDocumentOpsEntityList(v *[]*types.OpsEntity, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpsEntityList(v *[]types.OpsEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29519,18 +29606,20 @@ func awsAwsjson11_deserializeDocumentOpsEntityList(v *[]*types.OpsEntity, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OpsEntity + var cv []types.OpsEntity if *v == nil { - cv = []*types.OpsEntity{} + cv = []types.OpsEntity{} } else { cv = *v } for _, value := range shape { - var col *types.OpsEntity - if err := awsAwsjson11_deserializeDocumentOpsEntity(&col, value); err != nil { + var col types.OpsEntity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOpsEntity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -29566,7 +29655,7 @@ func awsAwsjson11_deserializeDocumentOpsItem(v **types.OpsItem, value interface{ if !ok { return fmt.Errorf("expected OpsItemCategory to be of type string, got %T instead", value) } - sv.Category = &jtv + sv.Category = ptr.String(jtv) } case "CreatedBy": @@ -29575,7 +29664,7 @@ func awsAwsjson11_deserializeDocumentOpsItem(v **types.OpsItem, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "CreatedTime": @@ -29597,7 +29686,7 @@ func awsAwsjson11_deserializeDocumentOpsItem(v **types.OpsItem, value interface{ if !ok { return fmt.Errorf("expected OpsItemDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LastModifiedBy": @@ -29606,7 +29695,7 @@ func awsAwsjson11_deserializeDocumentOpsItem(v **types.OpsItem, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedTime": @@ -29638,7 +29727,7 @@ func awsAwsjson11_deserializeDocumentOpsItem(v **types.OpsItem, value interface{ if !ok { return fmt.Errorf("expected OpsItemId to be of type string, got %T instead", value) } - sv.OpsItemId = &jtv + sv.OpsItemId = ptr.String(jtv) } case "Priority": @@ -29665,7 +29754,7 @@ func awsAwsjson11_deserializeDocumentOpsItem(v **types.OpsItem, value interface{ if !ok { return fmt.Errorf("expected OpsItemSeverity to be of type string, got %T instead", value) } - sv.Severity = &jtv + sv.Severity = ptr.String(jtv) } case "Source": @@ -29674,7 +29763,7 @@ func awsAwsjson11_deserializeDocumentOpsItem(v **types.OpsItem, value interface{ if !ok { return fmt.Errorf("expected OpsItemSource to be of type string, got %T instead", value) } - sv.Source = &jtv + sv.Source = ptr.String(jtv) } case "Status": @@ -29692,7 +29781,7 @@ func awsAwsjson11_deserializeDocumentOpsItem(v **types.OpsItem, value interface{ if !ok { return fmt.Errorf("expected OpsItemTitle to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } case "Version": @@ -29701,7 +29790,7 @@ func awsAwsjson11_deserializeDocumentOpsItem(v **types.OpsItem, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -29741,7 +29830,7 @@ func awsAwsjson11_deserializeDocumentOpsItemAlreadyExistsException(v **types.Ops if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "OpsItemId": @@ -29750,7 +29839,7 @@ func awsAwsjson11_deserializeDocumentOpsItemAlreadyExistsException(v **types.Ops if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OpsItemId = &jtv + sv.OpsItemId = ptr.String(jtv) } default: @@ -29799,7 +29888,7 @@ func awsAwsjson11_deserializeDocumentOpsItemDataValue(v **types.OpsItemDataValue if !ok { return fmt.Errorf("expected OpsItemDataValueString to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -29839,7 +29928,7 @@ func awsAwsjson11_deserializeDocumentOpsItemInvalidParameterException(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ParameterNames": @@ -29888,7 +29977,7 @@ func awsAwsjson11_deserializeDocumentOpsItemLimitExceededException(v **types.Ops if err != nil { return err } - sv.Limit = ptr.Int32(int32(i64)) + sv.Limit = int32(i64) } case "LimitType": @@ -29897,7 +29986,7 @@ func awsAwsjson11_deserializeDocumentOpsItemLimitExceededException(v **types.Ops if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LimitType = &jtv + sv.LimitType = ptr.String(jtv) } case "Message": @@ -29906,7 +29995,7 @@ func awsAwsjson11_deserializeDocumentOpsItemLimitExceededException(v **types.Ops if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceTypes": @@ -29951,7 +30040,7 @@ func awsAwsjson11_deserializeDocumentOpsItemNotFoundException(v **types.OpsItemN if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -29991,7 +30080,7 @@ func awsAwsjson11_deserializeDocumentOpsItemNotification(v **types.OpsItemNotifi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } default: @@ -30003,7 +30092,7 @@ func awsAwsjson11_deserializeDocumentOpsItemNotification(v **types.OpsItemNotifi return nil } -func awsAwsjson11_deserializeDocumentOpsItemNotifications(v *[]*types.OpsItemNotification, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpsItemNotifications(v *[]types.OpsItemNotification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30016,18 +30105,20 @@ func awsAwsjson11_deserializeDocumentOpsItemNotifications(v *[]*types.OpsItemNot return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OpsItemNotification + var cv []types.OpsItemNotification if *v == nil { - cv = []*types.OpsItemNotification{} + cv = []types.OpsItemNotification{} } else { cv = *v } for _, value := range shape { - var col *types.OpsItemNotification - if err := awsAwsjson11_deserializeDocumentOpsItemNotification(&col, value); err != nil { + var col types.OpsItemNotification + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOpsItemNotification(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -30035,7 +30126,7 @@ func awsAwsjson11_deserializeDocumentOpsItemNotifications(v *[]*types.OpsItemNot return nil } -func awsAwsjson11_deserializeDocumentOpsItemOperationalData(v *map[string]*types.OpsItemDataValue, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpsItemOperationalData(v *map[string]types.OpsItemDataValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30048,18 +30139,21 @@ func awsAwsjson11_deserializeDocumentOpsItemOperationalData(v *map[string]*types return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*types.OpsItemDataValue + var mv map[string]types.OpsItemDataValue if *v == nil { - mv = map[string]*types.OpsItemDataValue{} + mv = map[string]types.OpsItemDataValue{} } else { mv = *v } for key, value := range shape { - var parsedVal *types.OpsItemDataValue - if err := awsAwsjson11_deserializeDocumentOpsItemDataValue(&parsedVal, value); err != nil { + var parsedVal types.OpsItemDataValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson11_deserializeDocumentOpsItemDataValue(&destAddr, value); err != nil { return err } + parsedVal = *destAddr mv[key] = parsedVal } @@ -30067,7 +30161,7 @@ func awsAwsjson11_deserializeDocumentOpsItemOperationalData(v *map[string]*types return nil } -func awsAwsjson11_deserializeDocumentOpsItemParameterNamesList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpsItemParameterNamesList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30080,21 +30174,21 @@ func awsAwsjson11_deserializeDocumentOpsItemParameterNamesList(v *[]*string, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -30103,7 +30197,7 @@ func awsAwsjson11_deserializeDocumentOpsItemParameterNamesList(v *[]*string, val return nil } -func awsAwsjson11_deserializeDocumentOpsItemSummaries(v *[]*types.OpsItemSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpsItemSummaries(v *[]types.OpsItemSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30116,18 +30210,20 @@ func awsAwsjson11_deserializeDocumentOpsItemSummaries(v *[]*types.OpsItemSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OpsItemSummary + var cv []types.OpsItemSummary if *v == nil { - cv = []*types.OpsItemSummary{} + cv = []types.OpsItemSummary{} } else { cv = *v } for _, value := range shape { - var col *types.OpsItemSummary - if err := awsAwsjson11_deserializeDocumentOpsItemSummary(&col, value); err != nil { + var col types.OpsItemSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOpsItemSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -30163,7 +30259,7 @@ func awsAwsjson11_deserializeDocumentOpsItemSummary(v **types.OpsItemSummary, va if !ok { return fmt.Errorf("expected OpsItemCategory to be of type string, got %T instead", value) } - sv.Category = &jtv + sv.Category = ptr.String(jtv) } case "CreatedBy": @@ -30172,7 +30268,7 @@ func awsAwsjson11_deserializeDocumentOpsItemSummary(v **types.OpsItemSummary, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CreatedBy = &jtv + sv.CreatedBy = ptr.String(jtv) } case "CreatedTime": @@ -30194,7 +30290,7 @@ func awsAwsjson11_deserializeDocumentOpsItemSummary(v **types.OpsItemSummary, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastModifiedBy = &jtv + sv.LastModifiedBy = ptr.String(jtv) } case "LastModifiedTime": @@ -30221,7 +30317,7 @@ func awsAwsjson11_deserializeDocumentOpsItemSummary(v **types.OpsItemSummary, va if !ok { return fmt.Errorf("expected OpsItemId to be of type string, got %T instead", value) } - sv.OpsItemId = &jtv + sv.OpsItemId = ptr.String(jtv) } case "Priority": @@ -30243,7 +30339,7 @@ func awsAwsjson11_deserializeDocumentOpsItemSummary(v **types.OpsItemSummary, va if !ok { return fmt.Errorf("expected OpsItemSeverity to be of type string, got %T instead", value) } - sv.Severity = &jtv + sv.Severity = ptr.String(jtv) } case "Source": @@ -30252,7 +30348,7 @@ func awsAwsjson11_deserializeDocumentOpsItemSummary(v **types.OpsItemSummary, va if !ok { return fmt.Errorf("expected OpsItemSource to be of type string, got %T instead", value) } - sv.Source = &jtv + sv.Source = ptr.String(jtv) } case "Status": @@ -30270,7 +30366,7 @@ func awsAwsjson11_deserializeDocumentOpsItemSummary(v **types.OpsItemSummary, va if !ok { return fmt.Errorf("expected OpsItemTitle to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } default: @@ -30310,7 +30406,7 @@ func awsAwsjson11_deserializeDocumentOutputSource(v **types.OutputSource, value if !ok { return fmt.Errorf("expected OutputSourceId to be of type string, got %T instead", value) } - sv.OutputSourceId = &jtv + sv.OutputSourceId = ptr.String(jtv) } case "OutputSourceType": @@ -30319,7 +30415,7 @@ func awsAwsjson11_deserializeDocumentOutputSource(v **types.OutputSource, value if !ok { return fmt.Errorf("expected OutputSourceType to be of type string, got %T instead", value) } - sv.OutputSourceType = &jtv + sv.OutputSourceType = ptr.String(jtv) } default: @@ -30359,7 +30455,7 @@ func awsAwsjson11_deserializeDocumentParameter(v **types.Parameter, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "DataType": @@ -30368,7 +30464,7 @@ func awsAwsjson11_deserializeDocumentParameter(v **types.Parameter, value interf if !ok { return fmt.Errorf("expected ParameterDataType to be of type string, got %T instead", value) } - sv.DataType = &jtv + sv.DataType = ptr.String(jtv) } case "LastModifiedDate": @@ -30390,7 +30486,7 @@ func awsAwsjson11_deserializeDocumentParameter(v **types.Parameter, value interf if !ok { return fmt.Errorf("expected PSParameterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Selector": @@ -30399,7 +30495,7 @@ func awsAwsjson11_deserializeDocumentParameter(v **types.Parameter, value interf if !ok { return fmt.Errorf("expected PSParameterSelector to be of type string, got %T instead", value) } - sv.Selector = &jtv + sv.Selector = ptr.String(jtv) } case "SourceResult": @@ -30408,7 +30504,7 @@ func awsAwsjson11_deserializeDocumentParameter(v **types.Parameter, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceResult = &jtv + sv.SourceResult = ptr.String(jtv) } case "Type": @@ -30426,7 +30522,7 @@ func awsAwsjson11_deserializeDocumentParameter(v **types.Parameter, value interf if !ok { return fmt.Errorf("expected PSParameterValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } case "Version": @@ -30439,7 +30535,7 @@ func awsAwsjson11_deserializeDocumentParameter(v **types.Parameter, value interf if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -30479,7 +30575,7 @@ func awsAwsjson11_deserializeDocumentParameterAlreadyExists(v **types.ParameterA if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -30519,7 +30615,7 @@ func awsAwsjson11_deserializeDocumentParameterHistory(v **types.ParameterHistory if !ok { return fmt.Errorf("expected AllowedPattern to be of type string, got %T instead", value) } - sv.AllowedPattern = &jtv + sv.AllowedPattern = ptr.String(jtv) } case "DataType": @@ -30528,7 +30624,7 @@ func awsAwsjson11_deserializeDocumentParameterHistory(v **types.ParameterHistory if !ok { return fmt.Errorf("expected ParameterDataType to be of type string, got %T instead", value) } - sv.DataType = &jtv + sv.DataType = ptr.String(jtv) } case "Description": @@ -30537,7 +30633,7 @@ func awsAwsjson11_deserializeDocumentParameterHistory(v **types.ParameterHistory if !ok { return fmt.Errorf("expected ParameterDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "KeyId": @@ -30546,7 +30642,7 @@ func awsAwsjson11_deserializeDocumentParameterHistory(v **types.ParameterHistory if !ok { return fmt.Errorf("expected ParameterKeyId to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "Labels": @@ -30573,7 +30669,7 @@ func awsAwsjson11_deserializeDocumentParameterHistory(v **types.ParameterHistory if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastModifiedUser = &jtv + sv.LastModifiedUser = ptr.String(jtv) } case "Name": @@ -30582,7 +30678,7 @@ func awsAwsjson11_deserializeDocumentParameterHistory(v **types.ParameterHistory if !ok { return fmt.Errorf("expected PSParameterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Policies": @@ -30614,7 +30710,7 @@ func awsAwsjson11_deserializeDocumentParameterHistory(v **types.ParameterHistory if !ok { return fmt.Errorf("expected PSParameterValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } case "Version": @@ -30627,7 +30723,7 @@ func awsAwsjson11_deserializeDocumentParameterHistory(v **types.ParameterHistory if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -30639,7 +30735,7 @@ func awsAwsjson11_deserializeDocumentParameterHistory(v **types.ParameterHistory return nil } -func awsAwsjson11_deserializeDocumentParameterHistoryList(v *[]*types.ParameterHistory, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterHistoryList(v *[]types.ParameterHistory, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30652,18 +30748,20 @@ func awsAwsjson11_deserializeDocumentParameterHistoryList(v *[]*types.ParameterH return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ParameterHistory + var cv []types.ParameterHistory if *v == nil { - cv = []*types.ParameterHistory{} + cv = []types.ParameterHistory{} } else { cv = *v } for _, value := range shape { - var col *types.ParameterHistory - if err := awsAwsjson11_deserializeDocumentParameterHistory(&col, value); err != nil { + var col types.ParameterHistory + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParameterHistory(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -30699,7 +30797,7 @@ func awsAwsjson11_deserializeDocumentParameterInlinePolicy(v **types.ParameterIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PolicyStatus = &jtv + sv.PolicyStatus = ptr.String(jtv) } case "PolicyText": @@ -30708,7 +30806,7 @@ func awsAwsjson11_deserializeDocumentParameterInlinePolicy(v **types.ParameterIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PolicyText = &jtv + sv.PolicyText = ptr.String(jtv) } case "PolicyType": @@ -30717,7 +30815,7 @@ func awsAwsjson11_deserializeDocumentParameterInlinePolicy(v **types.ParameterIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PolicyType = &jtv + sv.PolicyType = ptr.String(jtv) } default: @@ -30729,7 +30827,7 @@ func awsAwsjson11_deserializeDocumentParameterInlinePolicy(v **types.ParameterIn return nil } -func awsAwsjson11_deserializeDocumentParameterLabelList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterLabelList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30742,21 +30840,21 @@ func awsAwsjson11_deserializeDocumentParameterLabelList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParameterLabel to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -30793,7 +30891,7 @@ func awsAwsjson11_deserializeDocumentParameterLimitExceeded(v **types.ParameterL if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -30805,7 +30903,7 @@ func awsAwsjson11_deserializeDocumentParameterLimitExceeded(v **types.ParameterL return nil } -func awsAwsjson11_deserializeDocumentParameterList(v *[]*types.Parameter, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterList(v *[]types.Parameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30818,18 +30916,20 @@ func awsAwsjson11_deserializeDocumentParameterList(v *[]*types.Parameter, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Parameter + var cv []types.Parameter if *v == nil { - cv = []*types.Parameter{} + cv = []types.Parameter{} } else { cv = *v } for _, value := range shape { - var col *types.Parameter - if err := awsAwsjson11_deserializeDocumentParameter(&col, value); err != nil { + var col types.Parameter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParameter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -30865,7 +30965,7 @@ func awsAwsjson11_deserializeDocumentParameterMaxVersionLimitExceeded(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -30905,7 +31005,7 @@ func awsAwsjson11_deserializeDocumentParameterMetadata(v **types.ParameterMetada if !ok { return fmt.Errorf("expected AllowedPattern to be of type string, got %T instead", value) } - sv.AllowedPattern = &jtv + sv.AllowedPattern = ptr.String(jtv) } case "DataType": @@ -30914,7 +31014,7 @@ func awsAwsjson11_deserializeDocumentParameterMetadata(v **types.ParameterMetada if !ok { return fmt.Errorf("expected ParameterDataType to be of type string, got %T instead", value) } - sv.DataType = &jtv + sv.DataType = ptr.String(jtv) } case "Description": @@ -30923,7 +31023,7 @@ func awsAwsjson11_deserializeDocumentParameterMetadata(v **types.ParameterMetada if !ok { return fmt.Errorf("expected ParameterDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "KeyId": @@ -30932,7 +31032,7 @@ func awsAwsjson11_deserializeDocumentParameterMetadata(v **types.ParameterMetada if !ok { return fmt.Errorf("expected ParameterKeyId to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "LastModifiedDate": @@ -30954,7 +31054,7 @@ func awsAwsjson11_deserializeDocumentParameterMetadata(v **types.ParameterMetada if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastModifiedUser = &jtv + sv.LastModifiedUser = ptr.String(jtv) } case "Name": @@ -30963,7 +31063,7 @@ func awsAwsjson11_deserializeDocumentParameterMetadata(v **types.ParameterMetada if !ok { return fmt.Errorf("expected PSParameterName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Policies": @@ -30999,7 +31099,7 @@ func awsAwsjson11_deserializeDocumentParameterMetadata(v **types.ParameterMetada if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -31011,7 +31111,7 @@ func awsAwsjson11_deserializeDocumentParameterMetadata(v **types.ParameterMetada return nil } -func awsAwsjson11_deserializeDocumentParameterMetadataList(v *[]*types.ParameterMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterMetadataList(v *[]types.ParameterMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31024,18 +31124,20 @@ func awsAwsjson11_deserializeDocumentParameterMetadataList(v *[]*types.Parameter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ParameterMetadata + var cv []types.ParameterMetadata if *v == nil { - cv = []*types.ParameterMetadata{} + cv = []types.ParameterMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.ParameterMetadata - if err := awsAwsjson11_deserializeDocumentParameterMetadata(&col, value); err != nil { + var col types.ParameterMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParameterMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -31043,7 +31145,7 @@ func awsAwsjson11_deserializeDocumentParameterMetadataList(v *[]*types.Parameter return nil } -func awsAwsjson11_deserializeDocumentParameterNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31056,21 +31158,21 @@ func awsAwsjson11_deserializeDocumentParameterNameList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PSParameterName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -31107,7 +31209,7 @@ func awsAwsjson11_deserializeDocumentParameterNotFound(v **types.ParameterNotFou if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -31147,7 +31249,7 @@ func awsAwsjson11_deserializeDocumentParameterPatternMismatchException(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -31159,7 +31261,7 @@ func awsAwsjson11_deserializeDocumentParameterPatternMismatchException(v **types return nil } -func awsAwsjson11_deserializeDocumentParameterPolicyList(v *[]*types.ParameterInlinePolicy, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterPolicyList(v *[]types.ParameterInlinePolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31172,18 +31274,20 @@ func awsAwsjson11_deserializeDocumentParameterPolicyList(v *[]*types.ParameterIn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ParameterInlinePolicy + var cv []types.ParameterInlinePolicy if *v == nil { - cv = []*types.ParameterInlinePolicy{} + cv = []types.ParameterInlinePolicy{} } else { cv = *v } for _, value := range shape { - var col *types.ParameterInlinePolicy - if err := awsAwsjson11_deserializeDocumentParameterInlinePolicy(&col, value); err != nil { + var col types.ParameterInlinePolicy + destAddr := &col + if err := awsAwsjson11_deserializeDocumentParameterInlinePolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -31191,7 +31295,7 @@ func awsAwsjson11_deserializeDocumentParameterPolicyList(v *[]*types.ParameterIn return nil } -func awsAwsjson11_deserializeDocumentParameters(v *map[string][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameters(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31204,18 +31308,20 @@ func awsAwsjson11_deserializeDocumentParameters(v *map[string][]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsAwsjson11_deserializeDocumentParameterValueList(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentParameterValueList(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -31223,7 +31329,7 @@ func awsAwsjson11_deserializeDocumentParameters(v *map[string][]*string, value i return nil } -func awsAwsjson11_deserializeDocumentParameterValueList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentParameterValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31236,21 +31342,21 @@ func awsAwsjson11_deserializeDocumentParameterValueList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -31287,7 +31393,7 @@ func awsAwsjson11_deserializeDocumentParameterVersionLabelLimitExceeded(v **type if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -31327,7 +31433,7 @@ func awsAwsjson11_deserializeDocumentParameterVersionNotFound(v **types.Paramete if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -31372,7 +31478,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchArch to be of type string, got %T instead", value) } - sv.Arch = &jtv + sv.Arch = ptr.String(jtv) } case "BugzillaIds": @@ -31386,7 +31492,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchClassification to be of type string, got %T instead", value) } - sv.Classification = &jtv + sv.Classification = ptr.String(jtv) } case "ContentUrl": @@ -31395,7 +31501,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchContentUrl to be of type string, got %T instead", value) } - sv.ContentUrl = &jtv + sv.ContentUrl = ptr.String(jtv) } case "CVEIds": @@ -31409,7 +31515,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Epoch": @@ -31422,7 +31528,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if err != nil { return err } - sv.Epoch = ptr.Int32(int32(i64)) + sv.Epoch = int32(i64) } case "Id": @@ -31431,7 +31537,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "KbNumber": @@ -31440,7 +31546,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchKbNumber to be of type string, got %T instead", value) } - sv.KbNumber = &jtv + sv.KbNumber = ptr.String(jtv) } case "Language": @@ -31449,7 +31555,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchLanguage to be of type string, got %T instead", value) } - sv.Language = &jtv + sv.Language = ptr.String(jtv) } case "MsrcNumber": @@ -31458,7 +31564,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchMsrcNumber to be of type string, got %T instead", value) } - sv.MsrcNumber = &jtv + sv.MsrcNumber = ptr.String(jtv) } case "MsrcSeverity": @@ -31467,7 +31573,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchMsrcSeverity to be of type string, got %T instead", value) } - sv.MsrcSeverity = &jtv + sv.MsrcSeverity = ptr.String(jtv) } case "Name": @@ -31476,7 +31582,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Product": @@ -31485,7 +31591,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchProduct to be of type string, got %T instead", value) } - sv.Product = &jtv + sv.Product = ptr.String(jtv) } case "ProductFamily": @@ -31494,7 +31600,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchProductFamily to be of type string, got %T instead", value) } - sv.ProductFamily = &jtv + sv.ProductFamily = ptr.String(jtv) } case "Release": @@ -31503,7 +31609,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchRelease to be of type string, got %T instead", value) } - sv.Release = &jtv + sv.Release = ptr.String(jtv) } case "ReleaseDate": @@ -31525,7 +31631,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchRepository to be of type string, got %T instead", value) } - sv.Repository = &jtv + sv.Repository = ptr.String(jtv) } case "Severity": @@ -31534,7 +31640,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchSeverity to be of type string, got %T instead", value) } - sv.Severity = &jtv + sv.Severity = ptr.String(jtv) } case "Title": @@ -31543,7 +31649,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchTitle to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } case "Vendor": @@ -31552,7 +31658,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchVendor to be of type string, got %T instead", value) } - sv.Vendor = &jtv + sv.Vendor = ptr.String(jtv) } case "Version": @@ -31561,7 +31667,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e if !ok { return fmt.Errorf("expected PatchVersion to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -31573,7 +31679,7 @@ func awsAwsjson11_deserializeDocumentPatch(v **types.Patch, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentPatchAdvisoryIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchAdvisoryIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31586,21 +31692,21 @@ func awsAwsjson11_deserializeDocumentPatchAdvisoryIdList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PatchAdvisoryId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -31637,7 +31743,7 @@ func awsAwsjson11_deserializeDocumentPatchBaselineIdentity(v **types.PatchBaseli if !ok { return fmt.Errorf("expected BaselineDescription to be of type string, got %T instead", value) } - sv.BaselineDescription = &jtv + sv.BaselineDescription = ptr.String(jtv) } case "BaselineId": @@ -31646,7 +31752,7 @@ func awsAwsjson11_deserializeDocumentPatchBaselineIdentity(v **types.PatchBaseli if !ok { return fmt.Errorf("expected BaselineId to be of type string, got %T instead", value) } - sv.BaselineId = &jtv + sv.BaselineId = ptr.String(jtv) } case "BaselineName": @@ -31655,7 +31761,7 @@ func awsAwsjson11_deserializeDocumentPatchBaselineIdentity(v **types.PatchBaseli if !ok { return fmt.Errorf("expected BaselineName to be of type string, got %T instead", value) } - sv.BaselineName = &jtv + sv.BaselineName = ptr.String(jtv) } case "DefaultBaseline": @@ -31664,7 +31770,7 @@ func awsAwsjson11_deserializeDocumentPatchBaselineIdentity(v **types.PatchBaseli if !ok { return fmt.Errorf("expected DefaultBaseline to be of type *bool, got %T instead", value) } - sv.DefaultBaseline = &jtv + sv.DefaultBaseline = jtv } case "OperatingSystem": @@ -31685,7 +31791,7 @@ func awsAwsjson11_deserializeDocumentPatchBaselineIdentity(v **types.PatchBaseli return nil } -func awsAwsjson11_deserializeDocumentPatchBaselineIdentityList(v *[]*types.PatchBaselineIdentity, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchBaselineIdentityList(v *[]types.PatchBaselineIdentity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31698,18 +31804,20 @@ func awsAwsjson11_deserializeDocumentPatchBaselineIdentityList(v *[]*types.Patch return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PatchBaselineIdentity + var cv []types.PatchBaselineIdentity if *v == nil { - cv = []*types.PatchBaselineIdentity{} + cv = []types.PatchBaselineIdentity{} } else { cv = *v } for _, value := range shape { - var col *types.PatchBaselineIdentity - if err := awsAwsjson11_deserializeDocumentPatchBaselineIdentity(&col, value); err != nil { + var col types.PatchBaselineIdentity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPatchBaselineIdentity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -31717,7 +31825,7 @@ func awsAwsjson11_deserializeDocumentPatchBaselineIdentityList(v *[]*types.Patch return nil } -func awsAwsjson11_deserializeDocumentPatchBugzillaIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchBugzillaIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31730,21 +31838,21 @@ func awsAwsjson11_deserializeDocumentPatchBugzillaIdList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PatchBugzillaId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -31781,7 +31889,7 @@ func awsAwsjson11_deserializeDocumentPatchComplianceData(v **types.PatchComplian if !ok { return fmt.Errorf("expected PatchClassification to be of type string, got %T instead", value) } - sv.Classification = &jtv + sv.Classification = ptr.String(jtv) } case "CVEIds": @@ -31790,7 +31898,7 @@ func awsAwsjson11_deserializeDocumentPatchComplianceData(v **types.PatchComplian if !ok { return fmt.Errorf("expected PatchCVEIds to be of type string, got %T instead", value) } - sv.CVEIds = &jtv + sv.CVEIds = ptr.String(jtv) } case "InstalledTime": @@ -31812,7 +31920,7 @@ func awsAwsjson11_deserializeDocumentPatchComplianceData(v **types.PatchComplian if !ok { return fmt.Errorf("expected PatchKbNumber to be of type string, got %T instead", value) } - sv.KBId = &jtv + sv.KBId = ptr.String(jtv) } case "Severity": @@ -31821,7 +31929,7 @@ func awsAwsjson11_deserializeDocumentPatchComplianceData(v **types.PatchComplian if !ok { return fmt.Errorf("expected PatchSeverity to be of type string, got %T instead", value) } - sv.Severity = &jtv + sv.Severity = ptr.String(jtv) } case "State": @@ -31839,7 +31947,7 @@ func awsAwsjson11_deserializeDocumentPatchComplianceData(v **types.PatchComplian if !ok { return fmt.Errorf("expected PatchTitle to be of type string, got %T instead", value) } - sv.Title = &jtv + sv.Title = ptr.String(jtv) } default: @@ -31851,7 +31959,7 @@ func awsAwsjson11_deserializeDocumentPatchComplianceData(v **types.PatchComplian return nil } -func awsAwsjson11_deserializeDocumentPatchComplianceDataList(v *[]*types.PatchComplianceData, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchComplianceDataList(v *[]types.PatchComplianceData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31864,18 +31972,20 @@ func awsAwsjson11_deserializeDocumentPatchComplianceDataList(v *[]*types.PatchCo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PatchComplianceData + var cv []types.PatchComplianceData if *v == nil { - cv = []*types.PatchComplianceData{} + cv = []types.PatchComplianceData{} } else { cv = *v } for _, value := range shape { - var col *types.PatchComplianceData - if err := awsAwsjson11_deserializeDocumentPatchComplianceData(&col, value); err != nil { + var col types.PatchComplianceData + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPatchComplianceData(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -31883,7 +31993,7 @@ func awsAwsjson11_deserializeDocumentPatchComplianceDataList(v *[]*types.PatchCo return nil } -func awsAwsjson11_deserializeDocumentPatchCVEIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchCVEIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31896,21 +32006,21 @@ func awsAwsjson11_deserializeDocumentPatchCVEIdList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PatchCVEId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -32000,7 +32110,7 @@ func awsAwsjson11_deserializeDocumentPatchFilterGroup(v **types.PatchFilterGroup return nil } -func awsAwsjson11_deserializeDocumentPatchFilterList(v *[]*types.PatchFilter, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchFilterList(v *[]types.PatchFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32013,18 +32123,20 @@ func awsAwsjson11_deserializeDocumentPatchFilterList(v *[]*types.PatchFilter, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PatchFilter + var cv []types.PatchFilter if *v == nil { - cv = []*types.PatchFilter{} + cv = []types.PatchFilter{} } else { cv = *v } for _, value := range shape { - var col *types.PatchFilter - if err := awsAwsjson11_deserializeDocumentPatchFilter(&col, value); err != nil { + var col types.PatchFilter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPatchFilter(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -32032,7 +32144,7 @@ func awsAwsjson11_deserializeDocumentPatchFilterList(v *[]*types.PatchFilter, va return nil } -func awsAwsjson11_deserializeDocumentPatchFilterValueList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchFilterValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32045,21 +32157,21 @@ func awsAwsjson11_deserializeDocumentPatchFilterValueList(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PatchFilterValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -32068,7 +32180,7 @@ func awsAwsjson11_deserializeDocumentPatchFilterValueList(v *[]*string, value in return nil } -func awsAwsjson11_deserializeDocumentPatchGroupList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchGroupList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32081,21 +32193,21 @@ func awsAwsjson11_deserializeDocumentPatchGroupList(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PatchGroup to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -32137,7 +32249,7 @@ func awsAwsjson11_deserializeDocumentPatchGroupPatchBaselineMapping(v **types.Pa if !ok { return fmt.Errorf("expected PatchGroup to be of type string, got %T instead", value) } - sv.PatchGroup = &jtv + sv.PatchGroup = ptr.String(jtv) } default: @@ -32149,7 +32261,7 @@ func awsAwsjson11_deserializeDocumentPatchGroupPatchBaselineMapping(v **types.Pa return nil } -func awsAwsjson11_deserializeDocumentPatchGroupPatchBaselineMappingList(v *[]*types.PatchGroupPatchBaselineMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchGroupPatchBaselineMappingList(v *[]types.PatchGroupPatchBaselineMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32162,18 +32274,20 @@ func awsAwsjson11_deserializeDocumentPatchGroupPatchBaselineMappingList(v *[]*ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PatchGroupPatchBaselineMapping + var cv []types.PatchGroupPatchBaselineMapping if *v == nil { - cv = []*types.PatchGroupPatchBaselineMapping{} + cv = []types.PatchGroupPatchBaselineMapping{} } else { cv = *v } for _, value := range shape { - var col *types.PatchGroupPatchBaselineMapping - if err := awsAwsjson11_deserializeDocumentPatchGroupPatchBaselineMapping(&col, value); err != nil { + var col types.PatchGroupPatchBaselineMapping + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPatchGroupPatchBaselineMapping(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -32181,7 +32295,7 @@ func awsAwsjson11_deserializeDocumentPatchGroupPatchBaselineMappingList(v *[]*ty return nil } -func awsAwsjson11_deserializeDocumentPatchIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32194,21 +32308,21 @@ func awsAwsjson11_deserializeDocumentPatchIdList(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PatchId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -32217,7 +32331,7 @@ func awsAwsjson11_deserializeDocumentPatchIdList(v *[]*string, value interface{} return nil } -func awsAwsjson11_deserializeDocumentPatchList(v *[]*types.Patch, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchList(v *[]types.Patch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32230,18 +32344,20 @@ func awsAwsjson11_deserializeDocumentPatchList(v *[]*types.Patch, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Patch + var cv []types.Patch if *v == nil { - cv = []*types.Patch{} + cv = []types.Patch{} } else { cv = *v } for _, value := range shape { - var col *types.Patch - if err := awsAwsjson11_deserializeDocumentPatch(&col, value); err != nil { + var col types.Patch + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -32249,7 +32365,7 @@ func awsAwsjson11_deserializeDocumentPatchList(v *[]*types.Patch, value interfac return nil } -func awsAwsjson11_deserializeDocumentPatchPropertiesList(v *[]map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchPropertiesList(v *[]map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32262,15 +32378,15 @@ func awsAwsjson11_deserializeDocumentPatchPropertiesList(v *[]map[string]*string return fmt.Errorf("unexpected JSON type %v", value) } - var cv []map[string]*string + var cv []map[string]string if *v == nil { - cv = []map[string]*string{} + cv = []map[string]string{} } else { cv = *v } for _, value := range shape { - var col map[string]*string + var col map[string]string if err := awsAwsjson11_deserializeDocumentPatchPropertyEntry(&col, value); err != nil { return err } @@ -32281,7 +32397,7 @@ func awsAwsjson11_deserializeDocumentPatchPropertiesList(v *[]map[string]*string return nil } -func awsAwsjson11_deserializeDocumentPatchPropertyEntry(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchPropertyEntry(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32294,21 +32410,21 @@ func awsAwsjson11_deserializeDocumentPatchPropertyEntry(v *map[string]*string, v return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -32349,7 +32465,7 @@ func awsAwsjson11_deserializeDocumentPatchRule(v **types.PatchRule, value interf if err != nil { return err } - sv.ApproveAfterDays = ptr.Int32(int32(i64)) + sv.ApproveAfterDays = int32(i64) } case "ApproveUntilDate": @@ -32358,7 +32474,7 @@ func awsAwsjson11_deserializeDocumentPatchRule(v **types.PatchRule, value interf if !ok { return fmt.Errorf("expected PatchStringDateTime to be of type string, got %T instead", value) } - sv.ApproveUntilDate = &jtv + sv.ApproveUntilDate = ptr.String(jtv) } case "ComplianceLevel": @@ -32376,7 +32492,7 @@ func awsAwsjson11_deserializeDocumentPatchRule(v **types.PatchRule, value interf if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableNonSecurity = &jtv + sv.EnableNonSecurity = jtv } case "PatchFilterGroup": @@ -32429,7 +32545,7 @@ func awsAwsjson11_deserializeDocumentPatchRuleGroup(v **types.PatchRuleGroup, va return nil } -func awsAwsjson11_deserializeDocumentPatchRuleList(v *[]*types.PatchRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchRuleList(v *[]types.PatchRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32442,18 +32558,20 @@ func awsAwsjson11_deserializeDocumentPatchRuleList(v *[]*types.PatchRule, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PatchRule + var cv []types.PatchRule if *v == nil { - cv = []*types.PatchRule{} + cv = []types.PatchRule{} } else { cv = *v } for _, value := range shape { - var col *types.PatchRule - if err := awsAwsjson11_deserializeDocumentPatchRule(&col, value); err != nil { + var col types.PatchRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPatchRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -32489,7 +32607,7 @@ func awsAwsjson11_deserializeDocumentPatchSource(v **types.PatchSource, value in if !ok { return fmt.Errorf("expected PatchSourceConfiguration to be of type string, got %T instead", value) } - sv.Configuration = &jtv + sv.Configuration = ptr.String(jtv) } case "Name": @@ -32498,7 +32616,7 @@ func awsAwsjson11_deserializeDocumentPatchSource(v **types.PatchSource, value in if !ok { return fmt.Errorf("expected PatchSourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Products": @@ -32515,7 +32633,7 @@ func awsAwsjson11_deserializeDocumentPatchSource(v **types.PatchSource, value in return nil } -func awsAwsjson11_deserializeDocumentPatchSourceList(v *[]*types.PatchSource, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchSourceList(v *[]types.PatchSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32528,18 +32646,20 @@ func awsAwsjson11_deserializeDocumentPatchSourceList(v *[]*types.PatchSource, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PatchSource + var cv []types.PatchSource if *v == nil { - cv = []*types.PatchSource{} + cv = []types.PatchSource{} } else { cv = *v } for _, value := range shape { - var col *types.PatchSource - if err := awsAwsjson11_deserializeDocumentPatchSource(&col, value); err != nil { + var col types.PatchSource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPatchSource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -32547,7 +32667,7 @@ func awsAwsjson11_deserializeDocumentPatchSourceList(v *[]*types.PatchSource, va return nil } -func awsAwsjson11_deserializeDocumentPatchSourceProductList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPatchSourceProductList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32560,21 +32680,21 @@ func awsAwsjson11_deserializeDocumentPatchSourceProductList(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PatchSourceProduct to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -32709,7 +32829,7 @@ func awsAwsjson11_deserializeDocumentPoliciesLimitExceededException(v **types.Po if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -32753,7 +32873,7 @@ func awsAwsjson11_deserializeDocumentProgressCounters(v **types.ProgressCounters if err != nil { return err } - sv.CancelledSteps = ptr.Int32(int32(i64)) + sv.CancelledSteps = int32(i64) } case "FailedSteps": @@ -32766,7 +32886,7 @@ func awsAwsjson11_deserializeDocumentProgressCounters(v **types.ProgressCounters if err != nil { return err } - sv.FailedSteps = ptr.Int32(int32(i64)) + sv.FailedSteps = int32(i64) } case "SuccessSteps": @@ -32779,7 +32899,7 @@ func awsAwsjson11_deserializeDocumentProgressCounters(v **types.ProgressCounters if err != nil { return err } - sv.SuccessSteps = ptr.Int32(int32(i64)) + sv.SuccessSteps = int32(i64) } case "TimedOutSteps": @@ -32792,7 +32912,7 @@ func awsAwsjson11_deserializeDocumentProgressCounters(v **types.ProgressCounters if err != nil { return err } - sv.TimedOutSteps = ptr.Int32(int32(i64)) + sv.TimedOutSteps = int32(i64) } case "TotalSteps": @@ -32805,7 +32925,7 @@ func awsAwsjson11_deserializeDocumentProgressCounters(v **types.ProgressCounters if err != nil { return err } - sv.TotalSteps = ptr.Int32(int32(i64)) + sv.TotalSteps = int32(i64) } default: @@ -32817,7 +32937,7 @@ func awsAwsjson11_deserializeDocumentProgressCounters(v **types.ProgressCounters return nil } -func awsAwsjson11_deserializeDocumentRegions(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRegions(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32830,21 +32950,21 @@ func awsAwsjson11_deserializeDocumentRegions(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Region to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -32881,7 +33001,7 @@ func awsAwsjson11_deserializeDocumentRelatedOpsItem(v **types.RelatedOpsItem, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OpsItemId = &jtv + sv.OpsItemId = ptr.String(jtv) } default: @@ -32893,7 +33013,7 @@ func awsAwsjson11_deserializeDocumentRelatedOpsItem(v **types.RelatedOpsItem, va return nil } -func awsAwsjson11_deserializeDocumentRelatedOpsItems(v *[]*types.RelatedOpsItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentRelatedOpsItems(v *[]types.RelatedOpsItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32906,18 +33026,20 @@ func awsAwsjson11_deserializeDocumentRelatedOpsItems(v *[]*types.RelatedOpsItem, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RelatedOpsItem + var cv []types.RelatedOpsItem if *v == nil { - cv = []*types.RelatedOpsItem{} + cv = []types.RelatedOpsItem{} } else { cv = *v } for _, value := range shape { - var col *types.RelatedOpsItem - if err := awsAwsjson11_deserializeDocumentRelatedOpsItem(&col, value); err != nil { + var col types.RelatedOpsItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRelatedOpsItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -32958,7 +33080,7 @@ func awsAwsjson11_deserializeDocumentResolvedTargets(v **types.ResolvedTargets, if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = jtv } default: @@ -32998,7 +33120,7 @@ func awsAwsjson11_deserializeDocumentResourceComplianceSummaryItem(v **types.Res if !ok { return fmt.Errorf("expected ComplianceTypeName to be of type string, got %T instead", value) } - sv.ComplianceType = &jtv + sv.ComplianceType = ptr.String(jtv) } case "CompliantSummary": @@ -33031,7 +33153,7 @@ func awsAwsjson11_deserializeDocumentResourceComplianceSummaryItem(v **types.Res if !ok { return fmt.Errorf("expected ComplianceResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "ResourceType": @@ -33040,7 +33162,7 @@ func awsAwsjson11_deserializeDocumentResourceComplianceSummaryItem(v **types.Res if !ok { return fmt.Errorf("expected ComplianceResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "Status": @@ -33061,7 +33183,7 @@ func awsAwsjson11_deserializeDocumentResourceComplianceSummaryItem(v **types.Res return nil } -func awsAwsjson11_deserializeDocumentResourceComplianceSummaryItemList(v *[]*types.ResourceComplianceSummaryItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceComplianceSummaryItemList(v *[]types.ResourceComplianceSummaryItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33074,18 +33196,20 @@ func awsAwsjson11_deserializeDocumentResourceComplianceSummaryItemList(v *[]*typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceComplianceSummaryItem + var cv []types.ResourceComplianceSummaryItem if *v == nil { - cv = []*types.ResourceComplianceSummaryItem{} + cv = []types.ResourceComplianceSummaryItem{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceComplianceSummaryItem - if err := awsAwsjson11_deserializeDocumentResourceComplianceSummaryItem(&col, value); err != nil { + var col types.ResourceComplianceSummaryItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceComplianceSummaryItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -33121,7 +33245,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncAlreadyExistsException(v ** if !ok { return fmt.Errorf("expected ResourceDataSyncName to be of type string, got %T instead", value) } - sv.SyncName = &jtv + sv.SyncName = ptr.String(jtv) } default: @@ -33166,7 +33290,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncAwsOrganizationsSource(v ** if !ok { return fmt.Errorf("expected ResourceDataSyncOrganizationSourceType to be of type string, got %T instead", value) } - sv.OrganizationSourceType = &jtv + sv.OrganizationSourceType = ptr.String(jtv) } default: @@ -33206,7 +33330,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncConflictException(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -33246,7 +33370,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncCountExceededException(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -33286,7 +33410,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncDestinationDataSharing(v ** if !ok { return fmt.Errorf("expected ResourceDataSyncDestinationDataSharingType to be of type string, got %T instead", value) } - sv.DestinationDataSharingType = &jtv + sv.DestinationDataSharingType = ptr.String(jtv) } default: @@ -33326,7 +33450,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncInvalidConfigurationExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -33388,7 +33512,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncItem(v **types.ResourceData if !ok { return fmt.Errorf("expected LastResourceDataSyncMessage to be of type string, got %T instead", value) } - sv.LastSyncStatusMessage = &jtv + sv.LastSyncStatusMessage = ptr.String(jtv) } case "LastSyncTime": @@ -33441,7 +33565,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncItem(v **types.ResourceData if !ok { return fmt.Errorf("expected ResourceDataSyncName to be of type string, got %T instead", value) } - sv.SyncName = &jtv + sv.SyncName = ptr.String(jtv) } case "SyncSource": @@ -33455,7 +33579,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncItem(v **types.ResourceData if !ok { return fmt.Errorf("expected ResourceDataSyncType to be of type string, got %T instead", value) } - sv.SyncType = &jtv + sv.SyncType = ptr.String(jtv) } default: @@ -33467,7 +33591,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncItem(v **types.ResourceData return nil } -func awsAwsjson11_deserializeDocumentResourceDataSyncItemList(v *[]*types.ResourceDataSyncItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceDataSyncItemList(v *[]types.ResourceDataSyncItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33480,18 +33604,20 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncItemList(v *[]*types.Resour return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceDataSyncItem + var cv []types.ResourceDataSyncItem if *v == nil { - cv = []*types.ResourceDataSyncItem{} + cv = []types.ResourceDataSyncItem{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceDataSyncItem - if err := awsAwsjson11_deserializeDocumentResourceDataSyncItem(&col, value); err != nil { + var col types.ResourceDataSyncItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceDataSyncItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -33527,7 +33653,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncNotFoundException(v **types if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "SyncName": @@ -33536,7 +33662,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncNotFoundException(v **types if !ok { return fmt.Errorf("expected ResourceDataSyncName to be of type string, got %T instead", value) } - sv.SyncName = &jtv + sv.SyncName = ptr.String(jtv) } case "SyncType": @@ -33545,7 +33671,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncNotFoundException(v **types if !ok { return fmt.Errorf("expected ResourceDataSyncType to be of type string, got %T instead", value) } - sv.SyncType = &jtv + sv.SyncType = ptr.String(jtv) } default: @@ -33585,7 +33711,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncOrganizationalUnit(v **type if !ok { return fmt.Errorf("expected ResourceDataSyncOrganizationalUnitId to be of type string, got %T instead", value) } - sv.OrganizationalUnitId = &jtv + sv.OrganizationalUnitId = ptr.String(jtv) } default: @@ -33597,7 +33723,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncOrganizationalUnit(v **type return nil } -func awsAwsjson11_deserializeDocumentResourceDataSyncOrganizationalUnitList(v *[]*types.ResourceDataSyncOrganizationalUnit, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceDataSyncOrganizationalUnitList(v *[]types.ResourceDataSyncOrganizationalUnit, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33610,18 +33736,20 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncOrganizationalUnitList(v *[ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceDataSyncOrganizationalUnit + var cv []types.ResourceDataSyncOrganizationalUnit if *v == nil { - cv = []*types.ResourceDataSyncOrganizationalUnit{} + cv = []types.ResourceDataSyncOrganizationalUnit{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceDataSyncOrganizationalUnit - if err := awsAwsjson11_deserializeDocumentResourceDataSyncOrganizationalUnit(&col, value); err != nil { + var col types.ResourceDataSyncOrganizationalUnit + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResourceDataSyncOrganizationalUnit(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -33657,7 +33785,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncS3Destination(v **types.Res if !ok { return fmt.Errorf("expected ResourceDataSyncAWSKMSKeyARN to be of type string, got %T instead", value) } - sv.AWSKMSKeyARN = &jtv + sv.AWSKMSKeyARN = ptr.String(jtv) } case "BucketName": @@ -33666,7 +33794,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncS3Destination(v **types.Res if !ok { return fmt.Errorf("expected ResourceDataSyncS3BucketName to be of type string, got %T instead", value) } - sv.BucketName = &jtv + sv.BucketName = ptr.String(jtv) } case "DestinationDataSharing": @@ -33680,7 +33808,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncS3Destination(v **types.Res if !ok { return fmt.Errorf("expected ResourceDataSyncS3Prefix to be of type string, got %T instead", value) } - sv.Prefix = &jtv + sv.Prefix = ptr.String(jtv) } case "Region": @@ -33689,7 +33817,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncS3Destination(v **types.Res if !ok { return fmt.Errorf("expected ResourceDataSyncS3Region to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "SyncFormat": @@ -33710,7 +33838,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncS3Destination(v **types.Res return nil } -func awsAwsjson11_deserializeDocumentResourceDataSyncSourceRegionList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceDataSyncSourceRegionList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33723,21 +33851,21 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncSourceRegionList(v *[]*stri return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceDataSyncSourceRegion to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -33779,7 +33907,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncSourceWithState(v **types.R if !ok { return fmt.Errorf("expected ResourceDataSyncIncludeFutureRegions to be of type *bool, got %T instead", value) } - sv.IncludeFutureRegions = &jtv + sv.IncludeFutureRegions = jtv } case "SourceRegions": @@ -33793,7 +33921,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncSourceWithState(v **types.R if !ok { return fmt.Errorf("expected ResourceDataSyncSourceType to be of type string, got %T instead", value) } - sv.SourceType = &jtv + sv.SourceType = ptr.String(jtv) } case "State": @@ -33802,7 +33930,7 @@ func awsAwsjson11_deserializeDocumentResourceDataSyncSourceWithState(v **types.R if !ok { return fmt.Errorf("expected ResourceDataSyncState to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } default: @@ -33842,7 +33970,7 @@ func awsAwsjson11_deserializeDocumentResourceInUseException(v **types.ResourceIn if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -33882,7 +34010,7 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceededException(v **types.Re if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -33922,7 +34050,7 @@ func awsAwsjson11_deserializeDocumentS3OutputLocation(v **types.S3OutputLocation if !ok { return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) } - sv.OutputS3BucketName = &jtv + sv.OutputS3BucketName = ptr.String(jtv) } case "OutputS3KeyPrefix": @@ -33931,7 +34059,7 @@ func awsAwsjson11_deserializeDocumentS3OutputLocation(v **types.S3OutputLocation if !ok { return fmt.Errorf("expected S3KeyPrefix to be of type string, got %T instead", value) } - sv.OutputS3KeyPrefix = &jtv + sv.OutputS3KeyPrefix = ptr.String(jtv) } case "OutputS3Region": @@ -33940,7 +34068,7 @@ func awsAwsjson11_deserializeDocumentS3OutputLocation(v **types.S3OutputLocation if !ok { return fmt.Errorf("expected S3Region to be of type string, got %T instead", value) } - sv.OutputS3Region = &jtv + sv.OutputS3Region = ptr.String(jtv) } default: @@ -33980,7 +34108,7 @@ func awsAwsjson11_deserializeDocumentS3OutputUrl(v **types.S3OutputUrl, value in if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.OutputUrl = &jtv + sv.OutputUrl = ptr.String(jtv) } default: @@ -34020,7 +34148,7 @@ func awsAwsjson11_deserializeDocumentScheduledWindowExecution(v **types.Schedule if !ok { return fmt.Errorf("expected MaintenanceWindowStringDateTime to be of type string, got %T instead", value) } - sv.ExecutionTime = &jtv + sv.ExecutionTime = ptr.String(jtv) } case "Name": @@ -34029,7 +34157,7 @@ func awsAwsjson11_deserializeDocumentScheduledWindowExecution(v **types.Schedule if !ok { return fmt.Errorf("expected MaintenanceWindowName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "WindowId": @@ -34038,7 +34166,7 @@ func awsAwsjson11_deserializeDocumentScheduledWindowExecution(v **types.Schedule if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } default: @@ -34050,7 +34178,7 @@ func awsAwsjson11_deserializeDocumentScheduledWindowExecution(v **types.Schedule return nil } -func awsAwsjson11_deserializeDocumentScheduledWindowExecutionList(v *[]*types.ScheduledWindowExecution, value interface{}) error { +func awsAwsjson11_deserializeDocumentScheduledWindowExecutionList(v *[]types.ScheduledWindowExecution, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34063,18 +34191,20 @@ func awsAwsjson11_deserializeDocumentScheduledWindowExecutionList(v *[]*types.Sc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ScheduledWindowExecution + var cv []types.ScheduledWindowExecution if *v == nil { - cv = []*types.ScheduledWindowExecution{} + cv = []types.ScheduledWindowExecution{} } else { cv = *v } for _, value := range shape { - var col *types.ScheduledWindowExecution - if err := awsAwsjson11_deserializeDocumentScheduledWindowExecution(&col, value); err != nil { + var col types.ScheduledWindowExecution + destAddr := &col + if err := awsAwsjson11_deserializeDocumentScheduledWindowExecution(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -34110,7 +34240,7 @@ func awsAwsjson11_deserializeDocumentServiceSetting(v **types.ServiceSetting, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "LastModifiedDate": @@ -34132,7 +34262,7 @@ func awsAwsjson11_deserializeDocumentServiceSetting(v **types.ServiceSetting, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.LastModifiedUser = &jtv + sv.LastModifiedUser = ptr.String(jtv) } case "SettingId": @@ -34141,7 +34271,7 @@ func awsAwsjson11_deserializeDocumentServiceSetting(v **types.ServiceSetting, va if !ok { return fmt.Errorf("expected ServiceSettingId to be of type string, got %T instead", value) } - sv.SettingId = &jtv + sv.SettingId = ptr.String(jtv) } case "SettingValue": @@ -34150,7 +34280,7 @@ func awsAwsjson11_deserializeDocumentServiceSetting(v **types.ServiceSetting, va if !ok { return fmt.Errorf("expected ServiceSettingValue to be of type string, got %T instead", value) } - sv.SettingValue = &jtv + sv.SettingValue = ptr.String(jtv) } case "Status": @@ -34159,7 +34289,7 @@ func awsAwsjson11_deserializeDocumentServiceSetting(v **types.ServiceSetting, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -34199,7 +34329,7 @@ func awsAwsjson11_deserializeDocumentServiceSettingNotFound(v **types.ServiceSet if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -34239,7 +34369,7 @@ func awsAwsjson11_deserializeDocumentSession(v **types.Session, value interface{ if !ok { return fmt.Errorf("expected SessionDetails to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "DocumentName": @@ -34248,7 +34378,7 @@ func awsAwsjson11_deserializeDocumentSession(v **types.Session, value interface{ if !ok { return fmt.Errorf("expected DocumentName to be of type string, got %T instead", value) } - sv.DocumentName = &jtv + sv.DocumentName = ptr.String(jtv) } case "EndDate": @@ -34275,7 +34405,7 @@ func awsAwsjson11_deserializeDocumentSession(v **types.Session, value interface{ if !ok { return fmt.Errorf("expected SessionOwner to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "SessionId": @@ -34284,7 +34414,7 @@ func awsAwsjson11_deserializeDocumentSession(v **types.Session, value interface{ if !ok { return fmt.Errorf("expected SessionId to be of type string, got %T instead", value) } - sv.SessionId = &jtv + sv.SessionId = ptr.String(jtv) } case "StartDate": @@ -34315,7 +34445,7 @@ func awsAwsjson11_deserializeDocumentSession(v **types.Session, value interface{ if !ok { return fmt.Errorf("expected SessionTarget to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } default: @@ -34327,7 +34457,7 @@ func awsAwsjson11_deserializeDocumentSession(v **types.Session, value interface{ return nil } -func awsAwsjson11_deserializeDocumentSessionList(v *[]*types.Session, value interface{}) error { +func awsAwsjson11_deserializeDocumentSessionList(v *[]types.Session, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34340,18 +34470,20 @@ func awsAwsjson11_deserializeDocumentSessionList(v *[]*types.Session, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Session + var cv []types.Session if *v == nil { - cv = []*types.Session{} + cv = []types.Session{} } else { cv = *v } for _, value := range shape { - var col *types.Session - if err := awsAwsjson11_deserializeDocumentSession(&col, value); err != nil { + var col types.Session + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSession(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -34387,7 +34519,7 @@ func awsAwsjson11_deserializeDocumentSessionManagerOutputUrl(v **types.SessionMa if !ok { return fmt.Errorf("expected SessionManagerCloudWatchOutputUrl to be of type string, got %T instead", value) } - sv.CloudWatchOutputUrl = &jtv + sv.CloudWatchOutputUrl = ptr.String(jtv) } case "S3OutputUrl": @@ -34396,7 +34528,7 @@ func awsAwsjson11_deserializeDocumentSessionManagerOutputUrl(v **types.SessionMa if !ok { return fmt.Errorf("expected SessionManagerS3OutputUrl to be of type string, got %T instead", value) } - sv.S3OutputUrl = &jtv + sv.S3OutputUrl = ptr.String(jtv) } default: @@ -34440,7 +34572,7 @@ func awsAwsjson11_deserializeDocumentSeveritySummary(v **types.SeveritySummary, if err != nil { return err } - sv.CriticalCount = ptr.Int32(int32(i64)) + sv.CriticalCount = int32(i64) } case "HighCount": @@ -34453,7 +34585,7 @@ func awsAwsjson11_deserializeDocumentSeveritySummary(v **types.SeveritySummary, if err != nil { return err } - sv.HighCount = ptr.Int32(int32(i64)) + sv.HighCount = int32(i64) } case "InformationalCount": @@ -34466,7 +34598,7 @@ func awsAwsjson11_deserializeDocumentSeveritySummary(v **types.SeveritySummary, if err != nil { return err } - sv.InformationalCount = ptr.Int32(int32(i64)) + sv.InformationalCount = int32(i64) } case "LowCount": @@ -34479,7 +34611,7 @@ func awsAwsjson11_deserializeDocumentSeveritySummary(v **types.SeveritySummary, if err != nil { return err } - sv.LowCount = ptr.Int32(int32(i64)) + sv.LowCount = int32(i64) } case "MediumCount": @@ -34492,7 +34624,7 @@ func awsAwsjson11_deserializeDocumentSeveritySummary(v **types.SeveritySummary, if err != nil { return err } - sv.MediumCount = ptr.Int32(int32(i64)) + sv.MediumCount = int32(i64) } case "UnspecifiedCount": @@ -34505,7 +34637,7 @@ func awsAwsjson11_deserializeDocumentSeveritySummary(v **types.SeveritySummary, if err != nil { return err } - sv.UnspecifiedCount = ptr.Int32(int32(i64)) + sv.UnspecifiedCount = int32(i64) } default: @@ -34576,7 +34708,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if !ok { return fmt.Errorf("expected AutomationActionName to be of type string, got %T instead", value) } - sv.Action = &jtv + sv.Action = ptr.String(jtv) } case "ExecutionEndTime": @@ -34616,7 +34748,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FailureMessage = &jtv + sv.FailureMessage = ptr.String(jtv) } case "Inputs": @@ -34630,7 +34762,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsCritical = &jtv + sv.IsCritical = jtv } case "IsEnd": @@ -34639,7 +34771,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsEnd = &jtv + sv.IsEnd = jtv } case "MaxAttempts": @@ -34652,7 +34784,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if err != nil { return err } - sv.MaxAttempts = ptr.Int32(int32(i64)) + sv.MaxAttempts = int32(i64) } case "NextStep": @@ -34661,7 +34793,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextStep = &jtv + sv.NextStep = ptr.String(jtv) } case "OnFailure": @@ -34670,7 +34802,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OnFailure = &jtv + sv.OnFailure = ptr.String(jtv) } case "Outputs": @@ -34689,7 +34821,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Response = &jtv + sv.Response = ptr.String(jtv) } case "ResponseCode": @@ -34698,7 +34830,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResponseCode = &jtv + sv.ResponseCode = ptr.String(jtv) } case "StepExecutionId": @@ -34707,7 +34839,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StepExecutionId = &jtv + sv.StepExecutionId = ptr.String(jtv) } case "StepName": @@ -34716,7 +34848,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StepName = &jtv + sv.StepName = ptr.String(jtv) } case "StepStatus": @@ -34748,7 +34880,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if err != nil { return err } - sv.TimeoutSeconds = &i64 + sv.TimeoutSeconds = i64 } case "ValidNextSteps": @@ -34765,7 +34897,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu return nil } -func awsAwsjson11_deserializeDocumentStepExecutionList(v *[]*types.StepExecution, value interface{}) error { +func awsAwsjson11_deserializeDocumentStepExecutionList(v *[]types.StepExecution, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34778,18 +34910,20 @@ func awsAwsjson11_deserializeDocumentStepExecutionList(v *[]*types.StepExecution return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StepExecution + var cv []types.StepExecution if *v == nil { - cv = []*types.StepExecution{} + cv = []types.StepExecution{} } else { cv = *v } for _, value := range shape { - var col *types.StepExecution - if err := awsAwsjson11_deserializeDocumentStepExecution(&col, value); err != nil { + var col types.StepExecution + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStepExecution(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -34825,7 +34959,7 @@ func awsAwsjson11_deserializeDocumentSubTypeCountLimitExceededException(v **type if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -34865,7 +34999,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -34874,7 +35008,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -34886,7 +35020,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34899,18 +35033,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -34946,7 +35082,7 @@ func awsAwsjson11_deserializeDocumentTarget(v **types.Target, value interface{}) if !ok { return fmt.Errorf("expected TargetKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Values": @@ -34991,7 +35127,7 @@ func awsAwsjson11_deserializeDocumentTargetInUseException(v **types.TargetInUseE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -35036,7 +35172,7 @@ func awsAwsjson11_deserializeDocumentTargetLocation(v **types.TargetLocation, va if !ok { return fmt.Errorf("expected ExecutionRoleName to be of type string, got %T instead", value) } - sv.ExecutionRoleName = &jtv + sv.ExecutionRoleName = ptr.String(jtv) } case "Regions": @@ -35050,7 +35186,7 @@ func awsAwsjson11_deserializeDocumentTargetLocation(v **types.TargetLocation, va if !ok { return fmt.Errorf("expected MaxConcurrency to be of type string, got %T instead", value) } - sv.TargetLocationMaxConcurrency = &jtv + sv.TargetLocationMaxConcurrency = ptr.String(jtv) } case "TargetLocationMaxErrors": @@ -35059,7 +35195,7 @@ func awsAwsjson11_deserializeDocumentTargetLocation(v **types.TargetLocation, va if !ok { return fmt.Errorf("expected MaxErrors to be of type string, got %T instead", value) } - sv.TargetLocationMaxErrors = &jtv + sv.TargetLocationMaxErrors = ptr.String(jtv) } default: @@ -35071,7 +35207,7 @@ func awsAwsjson11_deserializeDocumentTargetLocation(v **types.TargetLocation, va return nil } -func awsAwsjson11_deserializeDocumentTargetLocations(v *[]*types.TargetLocation, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetLocations(v *[]types.TargetLocation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35084,18 +35220,20 @@ func awsAwsjson11_deserializeDocumentTargetLocations(v *[]*types.TargetLocation, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TargetLocation + var cv []types.TargetLocation if *v == nil { - cv = []*types.TargetLocation{} + cv = []types.TargetLocation{} } else { cv = *v } for _, value := range shape { - var col *types.TargetLocation - if err := awsAwsjson11_deserializeDocumentTargetLocation(&col, value); err != nil { + var col types.TargetLocation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTargetLocation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -35103,7 +35241,7 @@ func awsAwsjson11_deserializeDocumentTargetLocations(v *[]*types.TargetLocation, return nil } -func awsAwsjson11_deserializeDocumentTargetMap(v *map[string][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetMap(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35116,18 +35254,20 @@ func awsAwsjson11_deserializeDocumentTargetMap(v *map[string][]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*string + var mv map[string][]string if *v == nil { - mv = map[string][]*string{} + mv = map[string][]string{} } else { mv = *v } for key, value := range shape { - var parsedVal []*string - if err := awsAwsjson11_deserializeDocumentTargetMapValueList(&parsedVal, value); err != nil { + var parsedVal []string + mapVar := parsedVal + if err := awsAwsjson11_deserializeDocumentTargetMapValueList(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -35135,7 +35275,7 @@ func awsAwsjson11_deserializeDocumentTargetMap(v *map[string][]*string, value in return nil } -func awsAwsjson11_deserializeDocumentTargetMaps(v *[]map[string][]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetMaps(v *[]map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35148,15 +35288,15 @@ func awsAwsjson11_deserializeDocumentTargetMaps(v *[]map[string][]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []map[string][]*string + var cv []map[string][]string if *v == nil { - cv = []map[string][]*string{} + cv = []map[string][]string{} } else { cv = *v } for _, value := range shape { - var col map[string][]*string + var col map[string][]string if err := awsAwsjson11_deserializeDocumentTargetMap(&col, value); err != nil { return err } @@ -35167,7 +35307,7 @@ func awsAwsjson11_deserializeDocumentTargetMaps(v *[]map[string][]*string, value return nil } -func awsAwsjson11_deserializeDocumentTargetMapValueList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetMapValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35180,21 +35320,21 @@ func awsAwsjson11_deserializeDocumentTargetMapValueList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TargetMapValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -35231,7 +35371,7 @@ func awsAwsjson11_deserializeDocumentTargetNotConnected(v **types.TargetNotConne if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -35243,7 +35383,7 @@ func awsAwsjson11_deserializeDocumentTargetNotConnected(v **types.TargetNotConne return nil } -func awsAwsjson11_deserializeDocumentTargetParameterList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetParameterList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35256,21 +35396,21 @@ func awsAwsjson11_deserializeDocumentTargetParameterList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -35279,7 +35419,7 @@ func awsAwsjson11_deserializeDocumentTargetParameterList(v *[]*string, value int return nil } -func awsAwsjson11_deserializeDocumentTargets(v *[]*types.Target, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargets(v *[]types.Target, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35292,18 +35432,20 @@ func awsAwsjson11_deserializeDocumentTargets(v *[]*types.Target, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Target + var cv []types.Target if *v == nil { - cv = []*types.Target{} + cv = []types.Target{} } else { cv = *v } for _, value := range shape { - var col *types.Target - if err := awsAwsjson11_deserializeDocumentTarget(&col, value); err != nil { + var col types.Target + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTarget(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -35311,7 +35453,7 @@ func awsAwsjson11_deserializeDocumentTargets(v *[]*types.Target, value interface return nil } -func awsAwsjson11_deserializeDocumentTargetValues(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35324,21 +35466,21 @@ func awsAwsjson11_deserializeDocumentTargetValues(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TargetValue to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -35406,7 +35548,7 @@ func awsAwsjson11_deserializeDocumentTooManyUpdates(v **types.TooManyUpdates, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -35446,7 +35588,7 @@ func awsAwsjson11_deserializeDocumentTotalSizeLimitExceededException(v **types.T if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -35486,7 +35628,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedCalendarException(v **types.Unsu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -35526,7 +35668,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedFeatureRequiredException(v **typ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -35566,7 +35708,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedInventoryItemContextException(v if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "TypeName": @@ -35575,7 +35717,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedInventoryItemContextException(v if !ok { return fmt.Errorf("expected InventoryItemTypeName to be of type string, got %T instead", value) } - sv.TypeName = &jtv + sv.TypeName = ptr.String(jtv) } default: @@ -35615,7 +35757,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedInventorySchemaVersionException( if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -35655,7 +35797,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperatingSystem(v **types.Unsupp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -35695,7 +35837,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedParameterType(v **types.Unsuppor if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -35735,7 +35877,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedPlatformType(v **types.Unsupport if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -35747,7 +35889,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedPlatformType(v **types.Unsupport return nil } -func awsAwsjson11_deserializeDocumentValidNextStepList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentValidNextStepList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35760,21 +35902,21 @@ func awsAwsjson11_deserializeDocumentValidNextStepList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ValidNextStep to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -35873,7 +36015,7 @@ func awsAwsjson11_deserializeOpDocumentCancelMaintenanceWindowExecutionOutput(v if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionId to be of type string, got %T instead", value) } - sv.WindowExecutionId = &jtv + sv.WindowExecutionId = ptr.String(jtv) } default: @@ -35913,7 +36055,7 @@ func awsAwsjson11_deserializeOpDocumentCreateActivationOutput(v **CreateActivati if !ok { return fmt.Errorf("expected ActivationCode to be of type string, got %T instead", value) } - sv.ActivationCode = &jtv + sv.ActivationCode = ptr.String(jtv) } case "ActivationId": @@ -35922,7 +36064,7 @@ func awsAwsjson11_deserializeOpDocumentCreateActivationOutput(v **CreateActivati if !ok { return fmt.Errorf("expected ActivationId to be of type string, got %T instead", value) } - sv.ActivationId = &jtv + sv.ActivationId = ptr.String(jtv) } default: @@ -36075,7 +36217,7 @@ func awsAwsjson11_deserializeOpDocumentCreateMaintenanceWindowOutput(v **CreateM if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } default: @@ -36115,7 +36257,7 @@ func awsAwsjson11_deserializeOpDocumentCreateOpsItemOutput(v **CreateOpsItemOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OpsItemId = &jtv + sv.OpsItemId = ptr.String(jtv) } default: @@ -36155,7 +36297,7 @@ func awsAwsjson11_deserializeOpDocumentCreatePatchBaselineOutput(v **CreatePatch if !ok { return fmt.Errorf("expected BaselineId to be of type string, got %T instead", value) } - sv.BaselineId = &jtv + sv.BaselineId = ptr.String(jtv) } default: @@ -36319,7 +36461,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteInventoryOutput(v **DeleteInventory if !ok { return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.DeletionId = &jtv + sv.DeletionId = ptr.String(jtv) } case "DeletionSummary": @@ -36333,7 +36475,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteInventoryOutput(v **DeleteInventory if !ok { return fmt.Errorf("expected InventoryItemTypeName to be of type string, got %T instead", value) } - sv.TypeName = &jtv + sv.TypeName = ptr.String(jtv) } default: @@ -36373,7 +36515,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteMaintenanceWindowOutput(v **DeleteM if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } default: @@ -36485,7 +36627,7 @@ func awsAwsjson11_deserializeOpDocumentDeletePatchBaselineOutput(v **DeletePatch if !ok { return fmt.Errorf("expected BaselineId to be of type string, got %T instead", value) } - sv.BaselineId = &jtv + sv.BaselineId = ptr.String(jtv) } default: @@ -36587,7 +36729,7 @@ func awsAwsjson11_deserializeOpDocumentDeregisterPatchBaselineForPatchGroupOutpu if !ok { return fmt.Errorf("expected BaselineId to be of type string, got %T instead", value) } - sv.BaselineId = &jtv + sv.BaselineId = ptr.String(jtv) } case "PatchGroup": @@ -36596,7 +36738,7 @@ func awsAwsjson11_deserializeOpDocumentDeregisterPatchBaselineForPatchGroupOutpu if !ok { return fmt.Errorf("expected PatchGroup to be of type string, got %T instead", value) } - sv.PatchGroup = &jtv + sv.PatchGroup = ptr.String(jtv) } default: @@ -36636,7 +36778,7 @@ func awsAwsjson11_deserializeOpDocumentDeregisterTargetFromMaintenanceWindowOutp if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } case "WindowTargetId": @@ -36645,7 +36787,7 @@ func awsAwsjson11_deserializeOpDocumentDeregisterTargetFromMaintenanceWindowOutp if !ok { return fmt.Errorf("expected MaintenanceWindowTargetId to be of type string, got %T instead", value) } - sv.WindowTargetId = &jtv + sv.WindowTargetId = ptr.String(jtv) } default: @@ -36685,7 +36827,7 @@ func awsAwsjson11_deserializeOpDocumentDeregisterTaskFromMaintenanceWindowOutput if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } case "WindowTaskId": @@ -36694,7 +36836,7 @@ func awsAwsjson11_deserializeOpDocumentDeregisterTaskFromMaintenanceWindowOutput if !ok { return fmt.Errorf("expected MaintenanceWindowTaskId to be of type string, got %T instead", value) } - sv.WindowTaskId = &jtv + sv.WindowTaskId = ptr.String(jtv) } default: @@ -36739,7 +36881,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeActivationsOutput(v **DescribeAct if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -36784,7 +36926,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAssociationExecutionsOutput(v **D if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -36829,7 +36971,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAssociationExecutionTargetsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -36910,7 +37052,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAutomationExecutionsOutput(v **De if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -36950,7 +37092,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAutomationStepExecutionsOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StepExecutions": @@ -36995,7 +37137,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAvailablePatchesOutput(v **Descri if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Patches": @@ -37122,7 +37264,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEffectiveInstanceAssociationsOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -37167,7 +37309,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeEffectivePatchesForPatchBaselineO if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -37212,7 +37354,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeInstanceAssociationsStatusOutput( if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -37257,7 +37399,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeInstanceInformationOutput(v **Des if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -37297,7 +37439,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeInstancePatchesOutput(v **Describ if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Patches": @@ -37347,7 +37489,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeInstancePatchStatesForPatchGroupO if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -37392,7 +37534,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeInstancePatchStatesOutput(v **Des if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -37437,7 +37579,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeInventoryDeletionsOutput(v **Desc if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -37477,7 +37619,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMaintenanceWindowExecutionsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "WindowExecutions": @@ -37522,7 +37664,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMaintenanceWindowExecutionTaskInv if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "WindowExecutionTaskInvocationIdentities": @@ -37567,7 +37709,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMaintenanceWindowExecutionTasksOu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "WindowExecutionTaskIdentities": @@ -37612,7 +37754,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMaintenanceWindowScheduleOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ScheduledWindowExecutions": @@ -37657,7 +37799,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMaintenanceWindowsForTargetOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "WindowIdentities": @@ -37702,7 +37844,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMaintenanceWindowsOutput(v **Desc if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "WindowIdentities": @@ -37747,7 +37889,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMaintenanceWindowTargetsOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Targets": @@ -37792,7 +37934,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMaintenanceWindowTasksOutput(v ** if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tasks": @@ -37837,7 +37979,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOpsItemsOutput(v **DescribeOpsIte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "OpsItemSummaries": @@ -37882,7 +38024,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeParametersOutput(v **DescribePara if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Parameters": @@ -37932,7 +38074,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchBaselinesOutput(v **Describe if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -37977,7 +38119,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupsOutput(v **DescribePat if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -38021,7 +38163,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.Instances = ptr.Int32(int32(i64)) + sv.Instances = int32(i64) } case "InstancesWithFailedPatches": @@ -38034,7 +38176,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithFailedPatches = ptr.Int32(int32(i64)) + sv.InstancesWithFailedPatches = int32(i64) } case "InstancesWithInstalledOtherPatches": @@ -38047,7 +38189,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithInstalledOtherPatches = ptr.Int32(int32(i64)) + sv.InstancesWithInstalledOtherPatches = int32(i64) } case "InstancesWithInstalledPatches": @@ -38060,7 +38202,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithInstalledPatches = ptr.Int32(int32(i64)) + sv.InstancesWithInstalledPatches = int32(i64) } case "InstancesWithInstalledPendingRebootPatches": @@ -38073,7 +38215,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithInstalledPendingRebootPatches = ptr.Int32(int32(i64)) + sv.InstancesWithInstalledPendingRebootPatches = int32(i64) } case "InstancesWithInstalledRejectedPatches": @@ -38086,7 +38228,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithInstalledRejectedPatches = ptr.Int32(int32(i64)) + sv.InstancesWithInstalledRejectedPatches = int32(i64) } case "InstancesWithMissingPatches": @@ -38099,7 +38241,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithMissingPatches = ptr.Int32(int32(i64)) + sv.InstancesWithMissingPatches = int32(i64) } case "InstancesWithNotApplicablePatches": @@ -38112,7 +38254,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithNotApplicablePatches = ptr.Int32(int32(i64)) + sv.InstancesWithNotApplicablePatches = int32(i64) } case "InstancesWithUnreportedNotApplicablePatches": @@ -38125,7 +38267,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithUnreportedNotApplicablePatches = ptr.Int32(int32(i64)) + sv.InstancesWithUnreportedNotApplicablePatches = int32(i64) } default: @@ -38165,7 +38307,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchPropertiesOutput(v **Describ if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Properties": @@ -38210,7 +38352,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSessionsOutput(v **DescribeSessio if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Sessions": @@ -38291,7 +38433,7 @@ func awsAwsjson11_deserializeOpDocumentGetCalendarStateOutput(v **GetCalendarSta if !ok { return fmt.Errorf("expected ISO8601String to be of type string, got %T instead", value) } - sv.AtTime = &jtv + sv.AtTime = ptr.String(jtv) } case "NextTransitionTime": @@ -38300,7 +38442,7 @@ func awsAwsjson11_deserializeOpDocumentGetCalendarStateOutput(v **GetCalendarSta if !ok { return fmt.Errorf("expected ISO8601String to be of type string, got %T instead", value) } - sv.NextTransitionTime = &jtv + sv.NextTransitionTime = ptr.String(jtv) } case "State": @@ -38354,7 +38496,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected CommandId to be of type string, got %T instead", value) } - sv.CommandId = &jtv + sv.CommandId = ptr.String(jtv) } case "Comment": @@ -38363,7 +38505,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected Comment to be of type string, got %T instead", value) } - sv.Comment = &jtv + sv.Comment = ptr.String(jtv) } case "DocumentName": @@ -38372,7 +38514,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected DocumentName to be of type string, got %T instead", value) } - sv.DocumentName = &jtv + sv.DocumentName = ptr.String(jtv) } case "DocumentVersion": @@ -38381,7 +38523,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "ExecutionElapsedTime": @@ -38390,7 +38532,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected StringDateTime to be of type string, got %T instead", value) } - sv.ExecutionElapsedTime = &jtv + sv.ExecutionElapsedTime = ptr.String(jtv) } case "ExecutionEndDateTime": @@ -38399,7 +38541,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected StringDateTime to be of type string, got %T instead", value) } - sv.ExecutionEndDateTime = &jtv + sv.ExecutionEndDateTime = ptr.String(jtv) } case "ExecutionStartDateTime": @@ -38408,7 +38550,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected StringDateTime to be of type string, got %T instead", value) } - sv.ExecutionStartDateTime = &jtv + sv.ExecutionStartDateTime = ptr.String(jtv) } case "InstanceId": @@ -38417,7 +38559,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "PluginName": @@ -38426,7 +38568,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected CommandPluginName to be of type string, got %T instead", value) } - sv.PluginName = &jtv + sv.PluginName = ptr.String(jtv) } case "ResponseCode": @@ -38439,7 +38581,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if err != nil { return err } - sv.ResponseCode = ptr.Int32(int32(i64)) + sv.ResponseCode = int32(i64) } case "StandardErrorContent": @@ -38448,7 +38590,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected StandardErrorContent to be of type string, got %T instead", value) } - sv.StandardErrorContent = &jtv + sv.StandardErrorContent = ptr.String(jtv) } case "StandardErrorUrl": @@ -38457,7 +38599,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.StandardErrorUrl = &jtv + sv.StandardErrorUrl = ptr.String(jtv) } case "StandardOutputContent": @@ -38466,7 +38608,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected StandardOutputContent to be of type string, got %T instead", value) } - sv.StandardOutputContent = &jtv + sv.StandardOutputContent = ptr.String(jtv) } case "StandardOutputUrl": @@ -38475,7 +38617,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.StandardOutputUrl = &jtv + sv.StandardOutputUrl = ptr.String(jtv) } case "Status": @@ -38493,7 +38635,7 @@ func awsAwsjson11_deserializeOpDocumentGetCommandInvocationOutput(v **GetCommand if !ok { return fmt.Errorf("expected StatusDetails to be of type string, got %T instead", value) } - sv.StatusDetails = &jtv + sv.StatusDetails = ptr.String(jtv) } default: @@ -38542,7 +38684,7 @@ func awsAwsjson11_deserializeOpDocumentGetConnectionStatusOutput(v **GetConnecti if !ok { return fmt.Errorf("expected SessionTarget to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } default: @@ -38582,7 +38724,7 @@ func awsAwsjson11_deserializeOpDocumentGetDefaultPatchBaselineOutput(v **GetDefa if !ok { return fmt.Errorf("expected BaselineId to be of type string, got %T instead", value) } - sv.BaselineId = &jtv + sv.BaselineId = ptr.String(jtv) } case "OperatingSystem": @@ -38631,7 +38773,7 @@ func awsAwsjson11_deserializeOpDocumentGetDeployablePatchSnapshotForInstanceOutp if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "Product": @@ -38640,7 +38782,7 @@ func awsAwsjson11_deserializeOpDocumentGetDeployablePatchSnapshotForInstanceOutp if !ok { return fmt.Errorf("expected Product to be of type string, got %T instead", value) } - sv.Product = &jtv + sv.Product = ptr.String(jtv) } case "SnapshotDownloadUrl": @@ -38649,7 +38791,7 @@ func awsAwsjson11_deserializeOpDocumentGetDeployablePatchSnapshotForInstanceOutp if !ok { return fmt.Errorf("expected SnapshotDownloadUrl to be of type string, got %T instead", value) } - sv.SnapshotDownloadUrl = &jtv + sv.SnapshotDownloadUrl = ptr.String(jtv) } case "SnapshotId": @@ -38658,7 +38800,7 @@ func awsAwsjson11_deserializeOpDocumentGetDeployablePatchSnapshotForInstanceOutp if !ok { return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.SnapshotId = &jtv + sv.SnapshotId = ptr.String(jtv) } default: @@ -38703,7 +38845,7 @@ func awsAwsjson11_deserializeOpDocumentGetDocumentOutput(v **GetDocumentOutput, if !ok { return fmt.Errorf("expected DocumentContent to be of type string, got %T instead", value) } - sv.Content = &jtv + sv.Content = ptr.String(jtv) } case "DocumentFormat": @@ -38730,7 +38872,7 @@ func awsAwsjson11_deserializeOpDocumentGetDocumentOutput(v **GetDocumentOutput, if !ok { return fmt.Errorf("expected DocumentVersion to be of type string, got %T instead", value) } - sv.DocumentVersion = &jtv + sv.DocumentVersion = ptr.String(jtv) } case "Name": @@ -38739,7 +38881,7 @@ func awsAwsjson11_deserializeOpDocumentGetDocumentOutput(v **GetDocumentOutput, if !ok { return fmt.Errorf("expected DocumentARN to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Requires": @@ -38762,7 +38904,7 @@ func awsAwsjson11_deserializeOpDocumentGetDocumentOutput(v **GetDocumentOutput, if !ok { return fmt.Errorf("expected DocumentStatusInformation to be of type string, got %T instead", value) } - sv.StatusInformation = &jtv + sv.StatusInformation = ptr.String(jtv) } case "VersionName": @@ -38771,7 +38913,7 @@ func awsAwsjson11_deserializeOpDocumentGetDocumentOutput(v **GetDocumentOutput, if !ok { return fmt.Errorf("expected DocumentVersionName to be of type string, got %T instead", value) } - sv.VersionName = &jtv + sv.VersionName = ptr.String(jtv) } default: @@ -38816,7 +38958,7 @@ func awsAwsjson11_deserializeOpDocumentGetInventoryOutput(v **GetInventoryOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -38856,7 +38998,7 @@ func awsAwsjson11_deserializeOpDocumentGetInventorySchemaOutput(v **GetInventory if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Schemas": @@ -38936,7 +39078,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionOutput(v **G if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionStatusDetails to be of type string, got %T instead", value) } - sv.StatusDetails = &jtv + sv.StatusDetails = ptr.String(jtv) } case "TaskIds": @@ -38950,7 +39092,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionOutput(v **G if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionId to be of type string, got %T instead", value) } - sv.WindowExecutionId = &jtv + sv.WindowExecutionId = ptr.String(jtv) } default: @@ -39003,7 +39145,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskInvocati if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionTaskExecutionId to be of type string, got %T instead", value) } - sv.ExecutionId = &jtv + sv.ExecutionId = ptr.String(jtv) } case "InvocationId": @@ -39012,7 +39154,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskInvocati if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionTaskInvocationId to be of type string, got %T instead", value) } - sv.InvocationId = &jtv + sv.InvocationId = ptr.String(jtv) } case "OwnerInformation": @@ -39021,7 +39163,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskInvocati if !ok { return fmt.Errorf("expected OwnerInformation to be of type string, got %T instead", value) } - sv.OwnerInformation = &jtv + sv.OwnerInformation = ptr.String(jtv) } case "Parameters": @@ -39030,7 +39172,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskInvocati if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionTaskInvocationParameters to be of type string, got %T instead", value) } - sv.Parameters = &jtv + sv.Parameters = ptr.String(jtv) } case "StartTime": @@ -39061,7 +39203,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskInvocati if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionStatusDetails to be of type string, got %T instead", value) } - sv.StatusDetails = &jtv + sv.StatusDetails = ptr.String(jtv) } case "TaskExecutionId": @@ -39070,7 +39212,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskInvocati if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionTaskId to be of type string, got %T instead", value) } - sv.TaskExecutionId = &jtv + sv.TaskExecutionId = ptr.String(jtv) } case "TaskType": @@ -39088,7 +39230,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskInvocati if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionId to be of type string, got %T instead", value) } - sv.WindowExecutionId = &jtv + sv.WindowExecutionId = ptr.String(jtv) } case "WindowTargetId": @@ -39097,7 +39239,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskInvocati if !ok { return fmt.Errorf("expected MaintenanceWindowTaskTargetId to be of type string, got %T instead", value) } - sv.WindowTargetId = &jtv + sv.WindowTargetId = ptr.String(jtv) } default: @@ -39150,7 +39292,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskOutput(v if !ok { return fmt.Errorf("expected MaxConcurrency to be of type string, got %T instead", value) } - sv.MaxConcurrency = &jtv + sv.MaxConcurrency = ptr.String(jtv) } case "MaxErrors": @@ -39159,7 +39301,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskOutput(v if !ok { return fmt.Errorf("expected MaxErrors to be of type string, got %T instead", value) } - sv.MaxErrors = &jtv + sv.MaxErrors = ptr.String(jtv) } case "Priority": @@ -39172,7 +39314,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskOutput(v if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "ServiceRole": @@ -39181,7 +39323,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskOutput(v if !ok { return fmt.Errorf("expected ServiceRole to be of type string, got %T instead", value) } - sv.ServiceRole = &jtv + sv.ServiceRole = ptr.String(jtv) } case "StartTime": @@ -39212,7 +39354,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskOutput(v if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionStatusDetails to be of type string, got %T instead", value) } - sv.StatusDetails = &jtv + sv.StatusDetails = ptr.String(jtv) } case "TaskArn": @@ -39221,7 +39363,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskOutput(v if !ok { return fmt.Errorf("expected MaintenanceWindowTaskArn to be of type string, got %T instead", value) } - sv.TaskArn = &jtv + sv.TaskArn = ptr.String(jtv) } case "TaskExecutionId": @@ -39230,7 +39372,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskOutput(v if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionTaskId to be of type string, got %T instead", value) } - sv.TaskExecutionId = &jtv + sv.TaskExecutionId = ptr.String(jtv) } case "TaskParameters": @@ -39253,7 +39395,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowExecutionTaskOutput(v if !ok { return fmt.Errorf("expected MaintenanceWindowExecutionId to be of type string, got %T instead", value) } - sv.WindowExecutionId = &jtv + sv.WindowExecutionId = ptr.String(jtv) } default: @@ -39293,7 +39435,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if !ok { return fmt.Errorf("expected MaintenanceWindowAllowUnassociatedTargets to be of type *bool, got %T instead", value) } - sv.AllowUnassociatedTargets = &jtv + sv.AllowUnassociatedTargets = jtv } case "CreatedDate": @@ -39319,7 +39461,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if err != nil { return err } - sv.Cutoff = ptr.Int32(int32(i64)) + sv.Cutoff = int32(i64) } case "Description": @@ -39328,7 +39470,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if !ok { return fmt.Errorf("expected MaintenanceWindowDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Duration": @@ -39341,7 +39483,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "Enabled": @@ -39350,7 +39492,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if !ok { return fmt.Errorf("expected MaintenanceWindowEnabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "EndDate": @@ -39359,7 +39501,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if !ok { return fmt.Errorf("expected MaintenanceWindowStringDateTime to be of type string, got %T instead", value) } - sv.EndDate = &jtv + sv.EndDate = ptr.String(jtv) } case "ModifiedDate": @@ -39381,7 +39523,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if !ok { return fmt.Errorf("expected MaintenanceWindowName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NextExecutionTime": @@ -39390,7 +39532,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if !ok { return fmt.Errorf("expected MaintenanceWindowStringDateTime to be of type string, got %T instead", value) } - sv.NextExecutionTime = &jtv + sv.NextExecutionTime = ptr.String(jtv) } case "Schedule": @@ -39399,7 +39541,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if !ok { return fmt.Errorf("expected MaintenanceWindowSchedule to be of type string, got %T instead", value) } - sv.Schedule = &jtv + sv.Schedule = ptr.String(jtv) } case "ScheduleOffset": @@ -39412,7 +39554,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if err != nil { return err } - sv.ScheduleOffset = ptr.Int32(int32(i64)) + sv.ScheduleOffset = int32(i64) } case "ScheduleTimezone": @@ -39421,7 +39563,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if !ok { return fmt.Errorf("expected MaintenanceWindowTimezone to be of type string, got %T instead", value) } - sv.ScheduleTimezone = &jtv + sv.ScheduleTimezone = ptr.String(jtv) } case "StartDate": @@ -39430,7 +39572,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if !ok { return fmt.Errorf("expected MaintenanceWindowStringDateTime to be of type string, got %T instead", value) } - sv.StartDate = &jtv + sv.StartDate = ptr.String(jtv) } case "WindowId": @@ -39439,7 +39581,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } default: @@ -39479,7 +39621,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowTaskOutput(v **GetMai if !ok { return fmt.Errorf("expected MaintenanceWindowDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LoggingInfo": @@ -39493,7 +39635,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowTaskOutput(v **GetMai if !ok { return fmt.Errorf("expected MaxConcurrency to be of type string, got %T instead", value) } - sv.MaxConcurrency = &jtv + sv.MaxConcurrency = ptr.String(jtv) } case "MaxErrors": @@ -39502,7 +39644,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowTaskOutput(v **GetMai if !ok { return fmt.Errorf("expected MaxErrors to be of type string, got %T instead", value) } - sv.MaxErrors = &jtv + sv.MaxErrors = ptr.String(jtv) } case "Name": @@ -39511,7 +39653,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowTaskOutput(v **GetMai if !ok { return fmt.Errorf("expected MaintenanceWindowName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Priority": @@ -39524,7 +39666,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowTaskOutput(v **GetMai if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "ServiceRoleArn": @@ -39533,7 +39675,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowTaskOutput(v **GetMai if !ok { return fmt.Errorf("expected ServiceRole to be of type string, got %T instead", value) } - sv.ServiceRoleArn = &jtv + sv.ServiceRoleArn = ptr.String(jtv) } case "Targets": @@ -39547,7 +39689,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowTaskOutput(v **GetMai if !ok { return fmt.Errorf("expected MaintenanceWindowTaskArn to be of type string, got %T instead", value) } - sv.TaskArn = &jtv + sv.TaskArn = ptr.String(jtv) } case "TaskInvocationParameters": @@ -39575,7 +39717,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowTaskOutput(v **GetMai if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } case "WindowTaskId": @@ -39584,7 +39726,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowTaskOutput(v **GetMai if !ok { return fmt.Errorf("expected MaintenanceWindowTaskId to be of type string, got %T instead", value) } - sv.WindowTaskId = &jtv + sv.WindowTaskId = ptr.String(jtv) } default: @@ -39665,7 +39807,7 @@ func awsAwsjson11_deserializeOpDocumentGetOpsSummaryOutput(v **GetOpsSummaryOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -39705,7 +39847,7 @@ func awsAwsjson11_deserializeOpDocumentGetParameterHistoryOutput(v **GetParamete if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Parameters": @@ -39786,7 +39928,7 @@ func awsAwsjson11_deserializeOpDocumentGetParametersByPathOutput(v **GetParamete if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Parameters": @@ -39872,7 +40014,7 @@ func awsAwsjson11_deserializeOpDocumentGetPatchBaselineForPatchGroupOutput(v **G if !ok { return fmt.Errorf("expected BaselineId to be of type string, got %T instead", value) } - sv.BaselineId = &jtv + sv.BaselineId = ptr.String(jtv) } case "OperatingSystem": @@ -39890,7 +40032,7 @@ func awsAwsjson11_deserializeOpDocumentGetPatchBaselineForPatchGroupOutput(v **G if !ok { return fmt.Errorf("expected PatchGroup to be of type string, got %T instead", value) } - sv.PatchGroup = &jtv + sv.PatchGroup = ptr.String(jtv) } default: @@ -39949,7 +40091,7 @@ func awsAwsjson11_deserializeOpDocumentGetPatchBaselineOutput(v **GetPatchBaseli if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ApprovedPatchesEnableNonSecurity = &jtv + sv.ApprovedPatchesEnableNonSecurity = jtv } case "BaselineId": @@ -39958,7 +40100,7 @@ func awsAwsjson11_deserializeOpDocumentGetPatchBaselineOutput(v **GetPatchBaseli if !ok { return fmt.Errorf("expected BaselineId to be of type string, got %T instead", value) } - sv.BaselineId = &jtv + sv.BaselineId = ptr.String(jtv) } case "CreatedDate": @@ -39980,7 +40122,7 @@ func awsAwsjson11_deserializeOpDocumentGetPatchBaselineOutput(v **GetPatchBaseli if !ok { return fmt.Errorf("expected BaselineDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "GlobalFilters": @@ -40007,7 +40149,7 @@ func awsAwsjson11_deserializeOpDocumentGetPatchBaselineOutput(v **GetPatchBaseli if !ok { return fmt.Errorf("expected BaselineName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OperatingSystem": @@ -40125,7 +40267,7 @@ func awsAwsjson11_deserializeOpDocumentLabelParameterVersionOutput(v **LabelPara if err != nil { return err } - sv.ParameterVersion = &i64 + sv.ParameterVersion = i64 } default: @@ -40170,7 +40312,7 @@ func awsAwsjson11_deserializeOpDocumentListAssociationsOutput(v **ListAssociatio if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -40215,7 +40357,7 @@ func awsAwsjson11_deserializeOpDocumentListAssociationVersionsOutput(v **ListAss if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -40260,7 +40402,7 @@ func awsAwsjson11_deserializeOpDocumentListCommandInvocationsOutput(v **ListComm if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -40305,7 +40447,7 @@ func awsAwsjson11_deserializeOpDocumentListCommandsOutput(v **ListCommandsOutput if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -40350,7 +40492,7 @@ func awsAwsjson11_deserializeOpDocumentListComplianceItemsOutput(v **ListComplia if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -40395,7 +40537,7 @@ func awsAwsjson11_deserializeOpDocumentListComplianceSummariesOutput(v **ListCom if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -40440,7 +40582,7 @@ func awsAwsjson11_deserializeOpDocumentListDocumentsOutput(v **ListDocumentsOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -40485,7 +40627,7 @@ func awsAwsjson11_deserializeOpDocumentListDocumentVersionsOutput(v **ListDocume if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -40525,7 +40667,7 @@ func awsAwsjson11_deserializeOpDocumentListInventoryEntriesOutput(v **ListInvent if !ok { return fmt.Errorf("expected InventoryItemCaptureTime to be of type string, got %T instead", value) } - sv.CaptureTime = &jtv + sv.CaptureTime = ptr.String(jtv) } case "Entries": @@ -40539,7 +40681,7 @@ func awsAwsjson11_deserializeOpDocumentListInventoryEntriesOutput(v **ListInvent if !ok { return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) } - sv.InstanceId = &jtv + sv.InstanceId = ptr.String(jtv) } case "NextToken": @@ -40548,7 +40690,7 @@ func awsAwsjson11_deserializeOpDocumentListInventoryEntriesOutput(v **ListInvent if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SchemaVersion": @@ -40557,7 +40699,7 @@ func awsAwsjson11_deserializeOpDocumentListInventoryEntriesOutput(v **ListInvent if !ok { return fmt.Errorf("expected InventoryItemSchemaVersion to be of type string, got %T instead", value) } - sv.SchemaVersion = &jtv + sv.SchemaVersion = ptr.String(jtv) } case "TypeName": @@ -40566,7 +40708,7 @@ func awsAwsjson11_deserializeOpDocumentListInventoryEntriesOutput(v **ListInvent if !ok { return fmt.Errorf("expected InventoryItemTypeName to be of type string, got %T instead", value) } - sv.TypeName = &jtv + sv.TypeName = ptr.String(jtv) } default: @@ -40606,7 +40748,7 @@ func awsAwsjson11_deserializeOpDocumentListResourceComplianceSummariesOutput(v * if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResourceComplianceSummaryItems": @@ -40651,7 +40793,7 @@ func awsAwsjson11_deserializeOpDocumentListResourceDataSyncOutput(v **ListResour if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ResourceDataSyncItems": @@ -40794,7 +40936,7 @@ func awsAwsjson11_deserializeOpDocumentPutInventoryOutput(v **PutInventoryOutput if !ok { return fmt.Errorf("expected PutInventoryMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -40847,7 +40989,7 @@ func awsAwsjson11_deserializeOpDocumentPutParameterOutput(v **PutParameterOutput if err != nil { return err } - sv.Version = &i64 + sv.Version = i64 } default: @@ -40887,7 +41029,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterDefaultPatchBaselineOutput(v **Re if !ok { return fmt.Errorf("expected BaselineId to be of type string, got %T instead", value) } - sv.BaselineId = &jtv + sv.BaselineId = ptr.String(jtv) } default: @@ -40927,7 +41069,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterPatchBaselineForPatchGroupOutput( if !ok { return fmt.Errorf("expected BaselineId to be of type string, got %T instead", value) } - sv.BaselineId = &jtv + sv.BaselineId = ptr.String(jtv) } case "PatchGroup": @@ -40936,7 +41078,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterPatchBaselineForPatchGroupOutput( if !ok { return fmt.Errorf("expected PatchGroup to be of type string, got %T instead", value) } - sv.PatchGroup = &jtv + sv.PatchGroup = ptr.String(jtv) } default: @@ -40976,7 +41118,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterTargetWithMaintenanceWindowOutput if !ok { return fmt.Errorf("expected MaintenanceWindowTargetId to be of type string, got %T instead", value) } - sv.WindowTargetId = &jtv + sv.WindowTargetId = ptr.String(jtv) } default: @@ -41016,7 +41158,7 @@ func awsAwsjson11_deserializeOpDocumentRegisterTaskWithMaintenanceWindowOutput(v if !ok { return fmt.Errorf("expected MaintenanceWindowTaskId to be of type string, got %T instead", value) } - sv.WindowTaskId = &jtv + sv.WindowTaskId = ptr.String(jtv) } default: @@ -41123,7 +41265,7 @@ func awsAwsjson11_deserializeOpDocumentResumeSessionOutput(v **ResumeSessionOutp if !ok { return fmt.Errorf("expected SessionId to be of type string, got %T instead", value) } - sv.SessionId = &jtv + sv.SessionId = ptr.String(jtv) } case "StreamUrl": @@ -41132,7 +41274,7 @@ func awsAwsjson11_deserializeOpDocumentResumeSessionOutput(v **ResumeSessionOutp if !ok { return fmt.Errorf("expected StreamUrl to be of type string, got %T instead", value) } - sv.StreamUrl = &jtv + sv.StreamUrl = ptr.String(jtv) } case "TokenValue": @@ -41141,7 +41283,7 @@ func awsAwsjson11_deserializeOpDocumentResumeSessionOutput(v **ResumeSessionOutp if !ok { return fmt.Errorf("expected TokenValue to be of type string, got %T instead", value) } - sv.TokenValue = &jtv + sv.TokenValue = ptr.String(jtv) } default: @@ -41279,7 +41421,7 @@ func awsAwsjson11_deserializeOpDocumentStartAutomationExecutionOutput(v **StartA if !ok { return fmt.Errorf("expected AutomationExecutionId to be of type string, got %T instead", value) } - sv.AutomationExecutionId = &jtv + sv.AutomationExecutionId = ptr.String(jtv) } default: @@ -41319,7 +41461,7 @@ func awsAwsjson11_deserializeOpDocumentStartSessionOutput(v **StartSessionOutput if !ok { return fmt.Errorf("expected SessionId to be of type string, got %T instead", value) } - sv.SessionId = &jtv + sv.SessionId = ptr.String(jtv) } case "StreamUrl": @@ -41328,7 +41470,7 @@ func awsAwsjson11_deserializeOpDocumentStartSessionOutput(v **StartSessionOutput if !ok { return fmt.Errorf("expected StreamUrl to be of type string, got %T instead", value) } - sv.StreamUrl = &jtv + sv.StreamUrl = ptr.String(jtv) } case "TokenValue": @@ -41337,7 +41479,7 @@ func awsAwsjson11_deserializeOpDocumentStartSessionOutput(v **StartSessionOutput if !ok { return fmt.Errorf("expected TokenValue to be of type string, got %T instead", value) } - sv.TokenValue = &jtv + sv.TokenValue = ptr.String(jtv) } default: @@ -41408,7 +41550,7 @@ func awsAwsjson11_deserializeOpDocumentTerminateSessionOutput(v **TerminateSessi if !ok { return fmt.Errorf("expected SessionId to be of type string, got %T instead", value) } - sv.SessionId = &jtv + sv.SessionId = ptr.String(jtv) } default: @@ -41592,7 +41734,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowOutput(v **UpdateM if !ok { return fmt.Errorf("expected MaintenanceWindowAllowUnassociatedTargets to be of type *bool, got %T instead", value) } - sv.AllowUnassociatedTargets = &jtv + sv.AllowUnassociatedTargets = jtv } case "Cutoff": @@ -41605,7 +41747,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowOutput(v **UpdateM if err != nil { return err } - sv.Cutoff = ptr.Int32(int32(i64)) + sv.Cutoff = int32(i64) } case "Description": @@ -41614,7 +41756,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowOutput(v **UpdateM if !ok { return fmt.Errorf("expected MaintenanceWindowDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Duration": @@ -41627,7 +41769,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowOutput(v **UpdateM if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.Duration = int32(i64) } case "Enabled": @@ -41636,7 +41778,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowOutput(v **UpdateM if !ok { return fmt.Errorf("expected MaintenanceWindowEnabled to be of type *bool, got %T instead", value) } - sv.Enabled = &jtv + sv.Enabled = jtv } case "EndDate": @@ -41645,7 +41787,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowOutput(v **UpdateM if !ok { return fmt.Errorf("expected MaintenanceWindowStringDateTime to be of type string, got %T instead", value) } - sv.EndDate = &jtv + sv.EndDate = ptr.String(jtv) } case "Name": @@ -41654,7 +41796,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowOutput(v **UpdateM if !ok { return fmt.Errorf("expected MaintenanceWindowName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Schedule": @@ -41663,7 +41805,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowOutput(v **UpdateM if !ok { return fmt.Errorf("expected MaintenanceWindowSchedule to be of type string, got %T instead", value) } - sv.Schedule = &jtv + sv.Schedule = ptr.String(jtv) } case "ScheduleOffset": @@ -41676,7 +41818,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowOutput(v **UpdateM if err != nil { return err } - sv.ScheduleOffset = ptr.Int32(int32(i64)) + sv.ScheduleOffset = int32(i64) } case "ScheduleTimezone": @@ -41685,7 +41827,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowOutput(v **UpdateM if !ok { return fmt.Errorf("expected MaintenanceWindowTimezone to be of type string, got %T instead", value) } - sv.ScheduleTimezone = &jtv + sv.ScheduleTimezone = ptr.String(jtv) } case "StartDate": @@ -41694,7 +41836,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowOutput(v **UpdateM if !ok { return fmt.Errorf("expected MaintenanceWindowStringDateTime to be of type string, got %T instead", value) } - sv.StartDate = &jtv + sv.StartDate = ptr.String(jtv) } case "WindowId": @@ -41703,7 +41845,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowOutput(v **UpdateM if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } default: @@ -41743,7 +41885,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTargetOutput(v **U if !ok { return fmt.Errorf("expected MaintenanceWindowDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -41752,7 +41894,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTargetOutput(v **U if !ok { return fmt.Errorf("expected MaintenanceWindowName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OwnerInformation": @@ -41761,7 +41903,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTargetOutput(v **U if !ok { return fmt.Errorf("expected OwnerInformation to be of type string, got %T instead", value) } - sv.OwnerInformation = &jtv + sv.OwnerInformation = ptr.String(jtv) } case "Targets": @@ -41775,7 +41917,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTargetOutput(v **U if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } case "WindowTargetId": @@ -41784,7 +41926,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTargetOutput(v **U if !ok { return fmt.Errorf("expected MaintenanceWindowTargetId to be of type string, got %T instead", value) } - sv.WindowTargetId = &jtv + sv.WindowTargetId = ptr.String(jtv) } default: @@ -41824,7 +41966,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTaskOutput(v **Upd if !ok { return fmt.Errorf("expected MaintenanceWindowDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "LoggingInfo": @@ -41838,7 +41980,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTaskOutput(v **Upd if !ok { return fmt.Errorf("expected MaxConcurrency to be of type string, got %T instead", value) } - sv.MaxConcurrency = &jtv + sv.MaxConcurrency = ptr.String(jtv) } case "MaxErrors": @@ -41847,7 +41989,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTaskOutput(v **Upd if !ok { return fmt.Errorf("expected MaxErrors to be of type string, got %T instead", value) } - sv.MaxErrors = &jtv + sv.MaxErrors = ptr.String(jtv) } case "Name": @@ -41856,7 +41998,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTaskOutput(v **Upd if !ok { return fmt.Errorf("expected MaintenanceWindowName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Priority": @@ -41869,7 +42011,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTaskOutput(v **Upd if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "ServiceRoleArn": @@ -41878,7 +42020,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTaskOutput(v **Upd if !ok { return fmt.Errorf("expected ServiceRole to be of type string, got %T instead", value) } - sv.ServiceRoleArn = &jtv + sv.ServiceRoleArn = ptr.String(jtv) } case "Targets": @@ -41892,7 +42034,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTaskOutput(v **Upd if !ok { return fmt.Errorf("expected MaintenanceWindowTaskArn to be of type string, got %T instead", value) } - sv.TaskArn = &jtv + sv.TaskArn = ptr.String(jtv) } case "TaskInvocationParameters": @@ -41911,7 +42053,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTaskOutput(v **Upd if !ok { return fmt.Errorf("expected MaintenanceWindowId to be of type string, got %T instead", value) } - sv.WindowId = &jtv + sv.WindowId = ptr.String(jtv) } case "WindowTaskId": @@ -41920,7 +42062,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowTaskOutput(v **Upd if !ok { return fmt.Errorf("expected MaintenanceWindowTaskId to be of type string, got %T instead", value) } - sv.WindowTaskId = &jtv + sv.WindowTaskId = ptr.String(jtv) } default: @@ -42041,7 +42183,7 @@ func awsAwsjson11_deserializeOpDocumentUpdatePatchBaselineOutput(v **UpdatePatch if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ApprovedPatchesEnableNonSecurity = &jtv + sv.ApprovedPatchesEnableNonSecurity = jtv } case "BaselineId": @@ -42050,7 +42192,7 @@ func awsAwsjson11_deserializeOpDocumentUpdatePatchBaselineOutput(v **UpdatePatch if !ok { return fmt.Errorf("expected BaselineId to be of type string, got %T instead", value) } - sv.BaselineId = &jtv + sv.BaselineId = ptr.String(jtv) } case "CreatedDate": @@ -42072,7 +42214,7 @@ func awsAwsjson11_deserializeOpDocumentUpdatePatchBaselineOutput(v **UpdatePatch if !ok { return fmt.Errorf("expected BaselineDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "GlobalFilters": @@ -42099,7 +42241,7 @@ func awsAwsjson11_deserializeOpDocumentUpdatePatchBaselineOutput(v **UpdatePatch if !ok { return fmt.Errorf("expected BaselineName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OperatingSystem": diff --git a/service/ssm/go.mod b/service/ssm/go.mod index 01b2fe828ae..8d7d2beb89e 100644 --- a/service/ssm/go.mod +++ b/service/ssm/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/ssm go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/ssm/serializers.go b/service/ssm/serializers.go index 4135b61425b..d82a2ca01e8 100644 --- a/service/ssm/serializers.go +++ b/service/ssm/serializers.go @@ -5626,32 +5626,24 @@ func (m *awsAwsjson11_serializeOpUpdateServiceSetting) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAccountIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAccountIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentAccounts(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAccounts(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5678,17 +5670,13 @@ func awsAwsjson11_serializeDocumentAssociationExecutionFilter(v *types.Associati return nil } -func awsAwsjson11_serializeDocumentAssociationExecutionFilterList(v []*types.AssociationExecutionFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAssociationExecutionFilterList(v []types.AssociationExecutionFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAssociationExecutionFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAssociationExecutionFilter(&v[i], av); err != nil { return err } } @@ -5712,17 +5700,13 @@ func awsAwsjson11_serializeDocumentAssociationExecutionTargetsFilter(v *types.As return nil } -func awsAwsjson11_serializeDocumentAssociationExecutionTargetsFilterList(v []*types.AssociationExecutionTargetsFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAssociationExecutionTargetsFilterList(v []types.AssociationExecutionTargetsFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAssociationExecutionTargetsFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAssociationExecutionTargetsFilter(&v[i], av); err != nil { return err } } @@ -5746,34 +5730,26 @@ func awsAwsjson11_serializeDocumentAssociationFilter(v *types.AssociationFilter, return nil } -func awsAwsjson11_serializeDocumentAssociationFilterList(v []*types.AssociationFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAssociationFilterList(v []types.AssociationFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAssociationFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAssociationFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentAssociationIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAssociationIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5829,34 +5805,26 @@ func awsAwsjson11_serializeDocumentAttachmentsSource(v *types.AttachmentsSource, return nil } -func awsAwsjson11_serializeDocumentAttachmentsSourceList(v []*types.AttachmentsSource, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttachmentsSourceList(v []types.AttachmentsSource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAttachmentsSource(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAttachmentsSource(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentAttachmentsSourceValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttachmentsSourceValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5880,46 +5848,37 @@ func awsAwsjson11_serializeDocumentAutomationExecutionFilter(v *types.Automation return nil } -func awsAwsjson11_serializeDocumentAutomationExecutionFilterList(v []*types.AutomationExecutionFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAutomationExecutionFilterList(v []types.AutomationExecutionFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAutomationExecutionFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAutomationExecutionFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentAutomationExecutionFilterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAutomationExecutionFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentAutomationParameterMap(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAutomationParameterMap(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentAutomationParameterValueList(v[key], om); err != nil { @@ -5929,32 +5888,24 @@ func awsAwsjson11_serializeDocumentAutomationParameterMap(v map[string][]*string return nil } -func awsAwsjson11_serializeDocumentAutomationParameterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAutomationParameterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentCalendarNameOrARNList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCalendarNameOrARNList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -5968,9 +5919,9 @@ func awsAwsjson11_serializeDocumentCloudWatchOutputConfig(v *types.CloudWatchOut ok.String(*v.CloudWatchLogGroupName) } - if v.CloudWatchOutputEnabled != nil { + if v.CloudWatchOutputEnabled { ok := object.Key("CloudWatchOutputEnabled") - ok.Boolean(*v.CloudWatchOutputEnabled) + ok.Boolean(v.CloudWatchOutputEnabled) } return nil @@ -5993,17 +5944,13 @@ func awsAwsjson11_serializeDocumentCommandFilter(v *types.CommandFilter, value s return nil } -func awsAwsjson11_serializeDocumentCommandFilterList(v []*types.CommandFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCommandFilterList(v []types.CommandFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCommandFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCommandFilter(&v[i], av); err != nil { return err } } @@ -6032,17 +5979,13 @@ func awsAwsjson11_serializeDocumentComplianceExecutionSummary(v *types.Complianc return nil } -func awsAwsjson11_serializeDocumentComplianceItemDetails(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentComplianceItemDetails(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -6081,49 +6024,37 @@ func awsAwsjson11_serializeDocumentComplianceItemEntry(v *types.ComplianceItemEn return nil } -func awsAwsjson11_serializeDocumentComplianceItemEntryList(v []*types.ComplianceItemEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentComplianceItemEntryList(v []types.ComplianceItemEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentComplianceItemEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentComplianceItemEntry(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentComplianceResourceIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentComplianceResourceIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentComplianceResourceTypeList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentComplianceResourceTypeList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6152,49 +6083,37 @@ func awsAwsjson11_serializeDocumentComplianceStringFilter(v *types.ComplianceStr return nil } -func awsAwsjson11_serializeDocumentComplianceStringFilterList(v []*types.ComplianceStringFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentComplianceStringFilterList(v []types.ComplianceStringFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentComplianceStringFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentComplianceStringFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentComplianceStringFilterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentComplianceStringFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentCreateAssociationBatchRequestEntries(v []*types.CreateAssociationBatchRequestEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCreateAssociationBatchRequestEntries(v []types.CreateAssociationBatchRequestEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentCreateAssociationBatchRequestEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentCreateAssociationBatchRequestEntry(&v[i], av); err != nil { return err } } @@ -6205,9 +6124,9 @@ func awsAwsjson11_serializeDocumentCreateAssociationBatchRequestEntry(v *types.C object := value.Object() defer object.Close() - if v.ApplyOnlyAtCronInterval != nil { + if v.ApplyOnlyAtCronInterval { ok := object.Key("ApplyOnlyAtCronInterval") - ok.Boolean(*v.ApplyOnlyAtCronInterval) + ok.Boolean(v.ApplyOnlyAtCronInterval) } if v.AssociationName != nil { @@ -6303,17 +6222,13 @@ func awsAwsjson11_serializeDocumentDescribeActivationsFilter(v *types.DescribeAc return nil } -func awsAwsjson11_serializeDocumentDescribeActivationsFilterList(v []*types.DescribeActivationsFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDescribeActivationsFilterList(v []types.DescribeActivationsFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDescribeActivationsFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDescribeActivationsFilter(&v[i], av); err != nil { return err } } @@ -6337,17 +6252,13 @@ func awsAwsjson11_serializeDocumentDocumentFilter(v *types.DocumentFilter, value return nil } -func awsAwsjson11_serializeDocumentDocumentFilterList(v []*types.DocumentFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDocumentFilterList(v []types.DocumentFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDocumentFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDocumentFilter(&v[i], av); err != nil { return err } } @@ -6373,34 +6284,26 @@ func awsAwsjson11_serializeDocumentDocumentKeyValuesFilter(v *types.DocumentKeyV return nil } -func awsAwsjson11_serializeDocumentDocumentKeyValuesFilterList(v []*types.DocumentKeyValuesFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDocumentKeyValuesFilterList(v []types.DocumentKeyValuesFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDocumentKeyValuesFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDocumentKeyValuesFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentDocumentKeyValuesFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDocumentKeyValuesFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6422,17 +6325,13 @@ func awsAwsjson11_serializeDocumentDocumentRequires(v *types.DocumentRequires, v return nil } -func awsAwsjson11_serializeDocumentDocumentRequiresList(v []*types.DocumentRequires, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDocumentRequiresList(v []types.DocumentRequires, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDocumentRequires(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDocumentRequires(&v[i], av); err != nil { return err } } @@ -6453,17 +6352,13 @@ func awsAwsjson11_serializeDocumentInstanceAssociationOutputLocation(v *types.In return nil } -func awsAwsjson11_serializeDocumentInstanceIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6487,34 +6382,26 @@ func awsAwsjson11_serializeDocumentInstanceInformationFilter(v *types.InstanceIn return nil } -func awsAwsjson11_serializeDocumentInstanceInformationFilterList(v []*types.InstanceInformationFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceInformationFilterList(v []types.InstanceInformationFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInstanceInformationFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInstanceInformationFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentInstanceInformationFilterValueSet(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceInformationFilterValueSet(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6538,17 +6425,13 @@ func awsAwsjson11_serializeDocumentInstanceInformationStringFilter(v *types.Inst return nil } -func awsAwsjson11_serializeDocumentInstanceInformationStringFilterList(v []*types.InstanceInformationStringFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstanceInformationStringFilterList(v []types.InstanceInformationStringFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInstanceInformationStringFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInstanceInformationStringFilter(&v[i], av); err != nil { return err } } @@ -6579,34 +6462,26 @@ func awsAwsjson11_serializeDocumentInstancePatchStateFilter(v *types.InstancePat return nil } -func awsAwsjson11_serializeDocumentInstancePatchStateFilterList(v []*types.InstancePatchStateFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstancePatchStateFilterList(v []types.InstancePatchStateFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInstancePatchStateFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInstancePatchStateFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentInstancePatchStateFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInstancePatchStateFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6637,17 +6512,13 @@ func awsAwsjson11_serializeDocumentInventoryAggregator(v *types.InventoryAggrega return nil } -func awsAwsjson11_serializeDocumentInventoryAggregatorList(v []*types.InventoryAggregator, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInventoryAggregatorList(v []types.InventoryAggregator, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInventoryAggregator(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInventoryAggregator(&v[i], av); err != nil { return err } } @@ -6678,34 +6549,26 @@ func awsAwsjson11_serializeDocumentInventoryFilter(v *types.InventoryFilter, val return nil } -func awsAwsjson11_serializeDocumentInventoryFilterList(v []*types.InventoryFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInventoryFilterList(v []types.InventoryFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInventoryFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInventoryFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentInventoryFilterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInventoryFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6729,17 +6592,13 @@ func awsAwsjson11_serializeDocumentInventoryGroup(v *types.InventoryGroup, value return nil } -func awsAwsjson11_serializeDocumentInventoryGroupList(v []*types.InventoryGroup, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInventoryGroupList(v []types.InventoryGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInventoryGroup(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInventoryGroup(&v[i], av); err != nil { return err } } @@ -6787,44 +6646,35 @@ func awsAwsjson11_serializeDocumentInventoryItem(v *types.InventoryItem, value s return nil } -func awsAwsjson11_serializeDocumentInventoryItemContentContext(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInventoryItemContentContext(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentInventoryItemEntry(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInventoryItemEntry(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } -func awsAwsjson11_serializeDocumentInventoryItemEntryList(v []map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInventoryItemEntryList(v []map[string]string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsAwsjson11_serializeDocumentInventoryItemEntry(v[i], av); err != nil { @@ -6834,34 +6684,26 @@ func awsAwsjson11_serializeDocumentInventoryItemEntryList(v []map[string]*string return nil } -func awsAwsjson11_serializeDocumentInventoryItemList(v []*types.InventoryItem, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentInventoryItemList(v []types.InventoryItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentInventoryItem(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentInventoryItem(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -6926,34 +6768,26 @@ func awsAwsjson11_serializeDocumentMaintenanceWindowFilter(v *types.MaintenanceW return nil } -func awsAwsjson11_serializeDocumentMaintenanceWindowFilterList(v []*types.MaintenanceWindowFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMaintenanceWindowFilterList(v []types.MaintenanceWindowFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMaintenanceWindowFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentMaintenanceWindowFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentMaintenanceWindowFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMaintenanceWindowFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7040,9 +6874,9 @@ func awsAwsjson11_serializeDocumentMaintenanceWindowRunCommandParameters(v *type ok.String(*v.ServiceRoleArn) } - if v.TimeoutSeconds != nil { + if v.TimeoutSeconds != 0 { ok := object.Key("TimeoutSeconds") - ok.Integer(*v.TimeoutSeconds) + ok.Integer(v.TimeoutSeconds) } return nil @@ -7100,17 +6934,14 @@ func awsAwsjson11_serializeDocumentMaintenanceWindowTaskInvocationParameters(v * return nil } -func awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameters(v map[string]*types.MaintenanceWindowTaskParameterValueExpression, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameters(v map[string]types.MaintenanceWindowTaskParameterValueExpression, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameterValueExpression(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameterValueExpression(&mapVar, om); err != nil { return err } } @@ -7131,17 +6962,13 @@ func awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameterValueExpression return nil } -func awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentMaintenanceWindowTaskParameterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7224,34 +7051,26 @@ func awsAwsjson11_serializeDocumentOpsAggregator(v *types.OpsAggregator, value s return nil } -func awsAwsjson11_serializeDocumentOpsAggregatorList(v []*types.OpsAggregator, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpsAggregatorList(v []types.OpsAggregator, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOpsAggregator(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentOpsAggregator(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentOpsAggregatorValueMap(v map[string]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpsAggregatorValueMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -7280,34 +7099,26 @@ func awsAwsjson11_serializeDocumentOpsFilter(v *types.OpsFilter, value smithyjso return nil } -func awsAwsjson11_serializeDocumentOpsFilterList(v []*types.OpsFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpsFilterList(v []types.OpsFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOpsFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentOpsFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentOpsFilterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpsFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7353,34 +7164,26 @@ func awsAwsjson11_serializeDocumentOpsItemFilter(v *types.OpsItemFilter, value s return nil } -func awsAwsjson11_serializeDocumentOpsItemFilters(v []*types.OpsItemFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpsItemFilters(v []types.OpsItemFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOpsItemFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentOpsItemFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentOpsItemFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpsItemFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7397,51 +7200,40 @@ func awsAwsjson11_serializeDocumentOpsItemNotification(v *types.OpsItemNotificat return nil } -func awsAwsjson11_serializeDocumentOpsItemNotifications(v []*types.OpsItemNotification, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpsItemNotifications(v []types.OpsItemNotification, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOpsItemNotification(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentOpsItemNotification(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentOpsItemOperationalData(v map[string]*types.OpsItemDataValue, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpsItemOperationalData(v map[string]types.OpsItemDataValue, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOpsItemDataValue(v[key], om); err != nil { + mapVar := v[key] + if err := awsAwsjson11_serializeDocumentOpsItemDataValue(&mapVar, om); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentOpsItemOpsDataKeysList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpsItemOpsDataKeysList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7458,61 +7250,48 @@ func awsAwsjson11_serializeDocumentOpsResultAttribute(v *types.OpsResultAttribut return nil } -func awsAwsjson11_serializeDocumentOpsResultAttributeList(v []*types.OpsResultAttribute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpsResultAttributeList(v []types.OpsResultAttribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentOpsResultAttribute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentOpsResultAttribute(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentParameterLabelList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParameterLabelList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentParameterNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParameterNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentParameters(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParameters(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentParameterValueList(v[key], om); err != nil { @@ -7541,34 +7320,26 @@ func awsAwsjson11_serializeDocumentParametersFilter(v *types.ParametersFilter, v return nil } -func awsAwsjson11_serializeDocumentParametersFilterList(v []*types.ParametersFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParametersFilterList(v []types.ParametersFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentParametersFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentParametersFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentParametersFilterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParametersFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7597,49 +7368,37 @@ func awsAwsjson11_serializeDocumentParameterStringFilter(v *types.ParameterStrin return nil } -func awsAwsjson11_serializeDocumentParameterStringFilterList(v []*types.ParameterStringFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParameterStringFilterList(v []types.ParameterStringFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentParameterStringFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentParameterStringFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentParameterStringFilterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParameterStringFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentParameterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentParameterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7677,49 +7436,37 @@ func awsAwsjson11_serializeDocumentPatchFilterGroup(v *types.PatchFilterGroup, v return nil } -func awsAwsjson11_serializeDocumentPatchFilterList(v []*types.PatchFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPatchFilterList(v []types.PatchFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPatchFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPatchFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentPatchFilterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPatchFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentPatchIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPatchIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7743,34 +7490,26 @@ func awsAwsjson11_serializeDocumentPatchOrchestratorFilter(v *types.PatchOrchest return nil } -func awsAwsjson11_serializeDocumentPatchOrchestratorFilterList(v []*types.PatchOrchestratorFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPatchOrchestratorFilterList(v []types.PatchOrchestratorFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPatchOrchestratorFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPatchOrchestratorFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentPatchOrchestratorFilterValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPatchOrchestratorFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7779,9 +7518,9 @@ func awsAwsjson11_serializeDocumentPatchRule(v *types.PatchRule, value smithyjso object := value.Object() defer object.Close() - if v.ApproveAfterDays != nil { + if v.ApproveAfterDays != 0 { ok := object.Key("ApproveAfterDays") - ok.Integer(*v.ApproveAfterDays) + ok.Integer(v.ApproveAfterDays) } if v.ApproveUntilDate != nil { @@ -7794,9 +7533,9 @@ func awsAwsjson11_serializeDocumentPatchRule(v *types.PatchRule, value smithyjso ok.String(string(v.ComplianceLevel)) } - if v.EnableNonSecurity != nil { + if v.EnableNonSecurity { ok := object.Key("EnableNonSecurity") - ok.Boolean(*v.EnableNonSecurity) + ok.Boolean(v.EnableNonSecurity) } if v.PatchFilterGroup != nil { @@ -7823,17 +7562,13 @@ func awsAwsjson11_serializeDocumentPatchRuleGroup(v *types.PatchRuleGroup, value return nil } -func awsAwsjson11_serializeDocumentPatchRuleList(v []*types.PatchRule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPatchRuleList(v []types.PatchRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPatchRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPatchRule(&v[i], av); err != nil { return err } } @@ -7864,49 +7599,37 @@ func awsAwsjson11_serializeDocumentPatchSource(v *types.PatchSource, value smith return nil } -func awsAwsjson11_serializeDocumentPatchSourceList(v []*types.PatchSource, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPatchSourceList(v []types.PatchSource, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentPatchSource(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentPatchSource(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentPatchSourceProductList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPatchSourceProductList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentRegions(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRegions(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -7923,17 +7646,13 @@ func awsAwsjson11_serializeDocumentRelatedOpsItem(v *types.RelatedOpsItem, value return nil } -func awsAwsjson11_serializeDocumentRelatedOpsItems(v []*types.RelatedOpsItem, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRelatedOpsItems(v []types.RelatedOpsItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRelatedOpsItem(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRelatedOpsItem(&v[i], av); err != nil { return err } } @@ -7983,17 +7702,13 @@ func awsAwsjson11_serializeDocumentResourceDataSyncOrganizationalUnit(v *types.R return nil } -func awsAwsjson11_serializeDocumentResourceDataSyncOrganizationalUnitList(v []*types.ResourceDataSyncOrganizationalUnit, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceDataSyncOrganizationalUnitList(v []types.ResourceDataSyncOrganizationalUnit, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentResourceDataSyncOrganizationalUnit(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentResourceDataSyncOrganizationalUnit(&v[i], av); err != nil { return err } } @@ -8050,9 +7765,9 @@ func awsAwsjson11_serializeDocumentResourceDataSyncSource(v *types.ResourceDataS } } - if v.IncludeFutureRegions != nil { + if v.IncludeFutureRegions { ok := object.Key("IncludeFutureRegions") - ok.Boolean(*v.IncludeFutureRegions) + ok.Boolean(v.IncludeFutureRegions) } if v.SourceRegions != nil { @@ -8070,17 +7785,13 @@ func awsAwsjson11_serializeDocumentResourceDataSyncSource(v *types.ResourceDataS return nil } -func awsAwsjson11_serializeDocumentResourceDataSyncSourceRegionList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceDataSyncSourceRegionList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8097,17 +7808,13 @@ func awsAwsjson11_serializeDocumentResultAttribute(v *types.ResultAttribute, val return nil } -func awsAwsjson11_serializeDocumentResultAttributeList(v []*types.ResultAttribute, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResultAttributeList(v []types.ResultAttribute, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentResultAttribute(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentResultAttribute(&v[i], av); err != nil { return err } } @@ -8153,31 +7860,26 @@ func awsAwsjson11_serializeDocumentSessionFilter(v *types.SessionFilter, value s return nil } -func awsAwsjson11_serializeDocumentSessionFilterList(v []*types.SessionFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSessionFilterList(v []types.SessionFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSessionFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSessionFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentSessionManagerParameters(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSessionManagerParameters(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentSessionManagerParameterValueList(v[key], om); err != nil { @@ -8187,17 +7889,13 @@ func awsAwsjson11_serializeDocumentSessionManagerParameters(v map[string][]*stri return nil } -func awsAwsjson11_serializeDocumentSessionManagerParameterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSessionManagerParameterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8221,49 +7919,37 @@ func awsAwsjson11_serializeDocumentStepExecutionFilter(v *types.StepExecutionFil return nil } -func awsAwsjson11_serializeDocumentStepExecutionFilterList(v []*types.StepExecutionFilter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStepExecutionFilterList(v []types.StepExecutionFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentStepExecutionFilter(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentStepExecutionFilter(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentStepExecutionFilterValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStepExecutionFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8285,17 +7971,13 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -8357,31 +8039,26 @@ func awsAwsjson11_serializeDocumentTargetLocation(v *types.TargetLocation, value return nil } -func awsAwsjson11_serializeDocumentTargetLocations(v []*types.TargetLocation, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetLocations(v []types.TargetLocation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTargetLocation(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTargetLocation(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTargetMap(v map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetMap(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) if vv := v[key]; vv == nil { - om.Null() continue } if err := awsAwsjson11_serializeDocumentTargetMapValueList(v[key], om); err != nil { @@ -8391,14 +8068,13 @@ func awsAwsjson11_serializeDocumentTargetMap(v map[string][]*string, value smith return nil } -func awsAwsjson11_serializeDocumentTargetMaps(v []map[string][]*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetMaps(v []map[string][]string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if vv := v[i]; vv == nil { - av.Null() continue } if err := awsAwsjson11_serializeDocumentTargetMap(v[i], av); err != nil { @@ -8408,49 +8084,37 @@ func awsAwsjson11_serializeDocumentTargetMaps(v []map[string][]*string, value sm return nil } -func awsAwsjson11_serializeDocumentTargetMapValueList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetMapValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTargets(v []*types.Target, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargets(v []types.Target, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTarget(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTarget(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTargetValues(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -8534,9 +8198,9 @@ func awsAwsjson11_serializeOpDocumentCreateActivationInput(v *CreateActivationIn ok.String(*v.IamRole) } - if v.RegistrationLimit != nil { + if v.RegistrationLimit != 0 { ok := object.Key("RegistrationLimit") - ok.Integer(*v.RegistrationLimit) + ok.Integer(v.RegistrationLimit) } if v.Tags != nil { @@ -8567,9 +8231,9 @@ func awsAwsjson11_serializeOpDocumentCreateAssociationInput(v *CreateAssociation object := value.Object() defer object.Close() - if v.ApplyOnlyAtCronInterval != nil { + if v.ApplyOnlyAtCronInterval { ok := object.Key("ApplyOnlyAtCronInterval") - ok.Boolean(*v.ApplyOnlyAtCronInterval) + ok.Boolean(v.ApplyOnlyAtCronInterval) } if v.AssociationName != nil { @@ -8708,9 +8372,9 @@ func awsAwsjson11_serializeOpDocumentCreateMaintenanceWindowInput(v *CreateMaint object := value.Object() defer object.Close() - if v.AllowUnassociatedTargets != nil { + if v.AllowUnassociatedTargets { ok := object.Key("AllowUnassociatedTargets") - ok.Boolean(*v.AllowUnassociatedTargets) + ok.Boolean(v.AllowUnassociatedTargets) } if v.ClientToken != nil { @@ -8718,9 +8382,9 @@ func awsAwsjson11_serializeOpDocumentCreateMaintenanceWindowInput(v *CreateMaint ok.String(*v.ClientToken) } - if v.Cutoff != nil { + if v.Cutoff != 0 { ok := object.Key("Cutoff") - ok.Integer(*v.Cutoff) + ok.Integer(v.Cutoff) } if v.Description != nil { @@ -8728,9 +8392,9 @@ func awsAwsjson11_serializeOpDocumentCreateMaintenanceWindowInput(v *CreateMaint ok.String(*v.Description) } - if v.Duration != nil { + if v.Duration != 0 { ok := object.Key("Duration") - ok.Integer(*v.Duration) + ok.Integer(v.Duration) } if v.EndDate != nil { @@ -8748,9 +8412,9 @@ func awsAwsjson11_serializeOpDocumentCreateMaintenanceWindowInput(v *CreateMaint ok.String(*v.Schedule) } - if v.ScheduleOffset != nil { + if v.ScheduleOffset != 0 { ok := object.Key("ScheduleOffset") - ok.Integer(*v.ScheduleOffset) + ok.Integer(v.ScheduleOffset) } if v.ScheduleTimezone != nil { @@ -8861,9 +8525,9 @@ func awsAwsjson11_serializeOpDocumentCreatePatchBaselineInput(v *CreatePatchBase ok.String(string(v.ApprovedPatchesComplianceLevel)) } - if v.ApprovedPatchesEnableNonSecurity != nil { + if v.ApprovedPatchesEnableNonSecurity { ok := object.Key("ApprovedPatchesEnableNonSecurity") - ok.Boolean(*v.ApprovedPatchesEnableNonSecurity) + ok.Boolean(v.ApprovedPatchesEnableNonSecurity) } if v.ClientToken != nil { @@ -8996,9 +8660,9 @@ func awsAwsjson11_serializeOpDocumentDeleteDocumentInput(v *DeleteDocumentInput, ok.String(*v.DocumentVersion) } - if v.Force != nil { + if v.Force { ok := object.Key("Force") - ok.Boolean(*v.Force) + ok.Boolean(v.Force) } if v.Name != nil { @@ -9023,9 +8687,9 @@ func awsAwsjson11_serializeOpDocumentDeleteInventoryInput(v *DeleteInventoryInpu ok.String(*v.ClientToken) } - if v.DryRun != nil { + if v.DryRun { ok := object.Key("DryRun") - ok.Boolean(*v.DryRun) + ok.Boolean(v.DryRun) } if len(v.SchemaDeleteOption) > 0 { @@ -9141,9 +8805,9 @@ func awsAwsjson11_serializeOpDocumentDeregisterTargetFromMaintenanceWindowInput( object := value.Object() defer object.Close() - if v.Safe != nil { + if v.Safe { ok := object.Key("Safe") - ok.Boolean(*v.Safe) + ok.Boolean(v.Safe) } if v.WindowId != nil { @@ -9187,9 +8851,9 @@ func awsAwsjson11_serializeOpDocumentDescribeActivationsInput(v *DescribeActivat } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9216,9 +8880,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAssociationExecutionsInput(v *Descr } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9250,9 +8914,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAssociationExecutionTargetsInput(v } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9301,9 +8965,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAutomationExecutionsInput(v *Descri } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9330,9 +8994,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAutomationStepExecutionsInput(v *De } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9340,9 +9004,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAutomationStepExecutionsInput(v *De ok.String(*v.NextToken) } - if v.ReverseOrder != nil { + if v.ReverseOrder { ok := object.Key("ReverseOrder") - ok.Boolean(*v.ReverseOrder) + ok.Boolean(v.ReverseOrder) } return nil @@ -9359,9 +9023,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAvailablePatchesInput(v *DescribeAv } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9420,9 +9084,9 @@ func awsAwsjson11_serializeOpDocumentDescribeEffectiveInstanceAssociationsInput( ok.String(*v.InstanceId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9442,9 +9106,9 @@ func awsAwsjson11_serializeOpDocumentDescribeEffectivePatchesForPatchBaselineInp ok.String(*v.BaselineId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9464,9 +9128,9 @@ func awsAwsjson11_serializeOpDocumentDescribeInstanceAssociationsStatusInput(v * ok.String(*v.InstanceId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9495,9 +9159,9 @@ func awsAwsjson11_serializeOpDocumentDescribeInstanceInformationInput(v *Describ } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9524,9 +9188,9 @@ func awsAwsjson11_serializeOpDocumentDescribeInstancePatchesInput(v *DescribeIns ok.String(*v.InstanceId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9548,9 +9212,9 @@ func awsAwsjson11_serializeOpDocumentDescribeInstancePatchStatesForPatchGroupInp } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9577,9 +9241,9 @@ func awsAwsjson11_serializeOpDocumentDescribeInstancePatchStatesInput(v *Describ } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9599,9 +9263,9 @@ func awsAwsjson11_serializeOpDocumentDescribeInventoryDeletionsInput(v *Describe ok.String(*v.DeletionId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9623,9 +9287,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowExecutionsInput(v } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9652,9 +9316,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowExecutionTaskInvoc } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9686,9 +9350,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowExecutionTasksInpu } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9715,9 +9379,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowScheduleInput(v *D } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9749,9 +9413,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowsForTargetInput(v object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9785,9 +9449,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowsInput(v *Describe } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9809,9 +9473,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowTargetsInput(v *De } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9838,9 +9502,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowTasksInput(v *Desc } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9891,9 +9555,9 @@ func awsAwsjson11_serializeOpDocumentDescribeParametersInput(v *DescribeParamete } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9922,9 +9586,9 @@ func awsAwsjson11_serializeOpDocumentDescribePatchBaselinesInput(v *DescribePatc } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9946,9 +9610,9 @@ func awsAwsjson11_serializeOpDocumentDescribePatchGroupsInput(v *DescribePatchGr } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -9975,9 +9639,9 @@ func awsAwsjson11_serializeOpDocumentDescribePatchPropertiesInput(v *DescribePat object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10014,9 +9678,9 @@ func awsAwsjson11_serializeOpDocumentDescribeSessionsInput(v *DescribeSessionsIn } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10171,9 +9835,9 @@ func awsAwsjson11_serializeOpDocumentGetInventoryInput(v *GetInventoryInput, val } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10195,14 +9859,14 @@ func awsAwsjson11_serializeOpDocumentGetInventorySchemaInput(v *GetInventorySche object := value.Object() defer object.Close() - if v.Aggregator != nil { + if v.Aggregator { ok := object.Key("Aggregator") - ok.Boolean(*v.Aggregator) + ok.Boolean(v.Aggregator) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10210,9 +9874,9 @@ func awsAwsjson11_serializeOpDocumentGetInventorySchemaInput(v *GetInventorySche ok.String(*v.NextToken) } - if v.SubType != nil { + if v.SubType { ok := object.Key("SubType") - ok.Boolean(*v.SubType) + ok.Boolean(v.SubType) } if v.TypeName != nil { @@ -10333,9 +9997,9 @@ func awsAwsjson11_serializeOpDocumentGetOpsSummaryInput(v *GetOpsSummaryInput, v } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10362,9 +10026,9 @@ func awsAwsjson11_serializeOpDocumentGetParameterHistoryInput(v *GetParameterHis object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.Name != nil { @@ -10377,9 +10041,9 @@ func awsAwsjson11_serializeOpDocumentGetParameterHistoryInput(v *GetParameterHis ok.String(*v.NextToken) } - if v.WithDecryption != nil { + if v.WithDecryption { ok := object.Key("WithDecryption") - ok.Boolean(*v.WithDecryption) + ok.Boolean(v.WithDecryption) } return nil @@ -10394,9 +10058,9 @@ func awsAwsjson11_serializeOpDocumentGetParameterInput(v *GetParameterInput, val ok.String(*v.Name) } - if v.WithDecryption != nil { + if v.WithDecryption { ok := object.Key("WithDecryption") - ok.Boolean(*v.WithDecryption) + ok.Boolean(v.WithDecryption) } return nil @@ -10406,9 +10070,9 @@ func awsAwsjson11_serializeOpDocumentGetParametersByPathInput(v *GetParametersBy object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10428,14 +10092,14 @@ func awsAwsjson11_serializeOpDocumentGetParametersByPathInput(v *GetParametersBy ok.String(*v.Path) } - if v.Recursive != nil { + if v.Recursive { ok := object.Key("Recursive") - ok.Boolean(*v.Recursive) + ok.Boolean(v.Recursive) } - if v.WithDecryption != nil { + if v.WithDecryption { ok := object.Key("WithDecryption") - ok.Boolean(*v.WithDecryption) + ok.Boolean(v.WithDecryption) } return nil @@ -10452,9 +10116,9 @@ func awsAwsjson11_serializeOpDocumentGetParametersInput(v *GetParametersInput, v } } - if v.WithDecryption != nil { + if v.WithDecryption { ok := object.Key("WithDecryption") - ok.Boolean(*v.WithDecryption) + ok.Boolean(v.WithDecryption) } return nil @@ -10517,9 +10181,9 @@ func awsAwsjson11_serializeOpDocumentLabelParameterVersionInput(v *LabelParamete ok.String(*v.Name) } - if v.ParameterVersion != nil { + if v.ParameterVersion != 0 { ok := object.Key("ParameterVersion") - ok.Long(*v.ParameterVersion) + ok.Long(v.ParameterVersion) } return nil @@ -10536,9 +10200,9 @@ func awsAwsjson11_serializeOpDocumentListAssociationsInput(v *ListAssociationsIn } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10558,9 +10222,9 @@ func awsAwsjson11_serializeOpDocumentListAssociationVersionsInput(v *ListAssocia ok.String(*v.AssociationId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10580,9 +10244,9 @@ func awsAwsjson11_serializeOpDocumentListCommandInvocationsInput(v *ListCommandI ok.String(*v.CommandId) } - if v.Details != nil { + if v.Details { ok := object.Key("Details") - ok.Boolean(*v.Details) + ok.Boolean(v.Details) } if v.Filters != nil { @@ -10597,9 +10261,9 @@ func awsAwsjson11_serializeOpDocumentListCommandInvocationsInput(v *ListCommandI ok.String(*v.InstanceId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10631,9 +10295,9 @@ func awsAwsjson11_serializeOpDocumentListCommandsInput(v *ListCommandsInput, val ok.String(*v.InstanceId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10655,9 +10319,9 @@ func awsAwsjson11_serializeOpDocumentListComplianceItemsInput(v *ListComplianceI } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10693,9 +10357,9 @@ func awsAwsjson11_serializeOpDocumentListComplianceSummariesInput(v *ListComplia } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10724,9 +10388,9 @@ func awsAwsjson11_serializeOpDocumentListDocumentsInput(v *ListDocumentsInput, v } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10741,9 +10405,9 @@ func awsAwsjson11_serializeOpDocumentListDocumentVersionsInput(v *ListDocumentVe object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.Name != nil { @@ -10775,9 +10439,9 @@ func awsAwsjson11_serializeOpDocumentListInventoryEntriesInput(v *ListInventoryE ok.String(*v.InstanceId) } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10804,9 +10468,9 @@ func awsAwsjson11_serializeOpDocumentListResourceComplianceSummariesInput(v *Lis } } - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10821,9 +10485,9 @@ func awsAwsjson11_serializeOpDocumentListResourceDataSyncInput(v *ListResourceDa object := value.Object() defer object.Close() - if v.MaxResults != nil { + if v.MaxResults != 0 { ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + ok.Integer(v.MaxResults) } if v.NextToken != nil { @@ -10986,9 +10650,9 @@ func awsAwsjson11_serializeOpDocumentPutParameterInput(v *PutParameterInput, val ok.String(*v.Name) } - if v.Overwrite != nil { + if v.Overwrite { ok := object.Key("Overwrite") - ok.Boolean(*v.Overwrite) + ok.Boolean(v.Overwrite) } if v.Policies != nil { @@ -11130,9 +10794,9 @@ func awsAwsjson11_serializeOpDocumentRegisterTaskWithMaintenanceWindowInput(v *R ok.String(*v.Name) } - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("Priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } if v.ServiceRoleArn != nil { @@ -11345,9 +11009,9 @@ func awsAwsjson11_serializeOpDocumentSendCommandInput(v *SendCommandInput, value } } - if v.TimeoutSeconds != nil { + if v.TimeoutSeconds != 0 { ok := object.Key("TimeoutSeconds") - ok.Integer(*v.TimeoutSeconds) + ok.Integer(v.TimeoutSeconds) } return nil @@ -11501,9 +11165,9 @@ func awsAwsjson11_serializeOpDocumentUpdateAssociationInput(v *UpdateAssociation object := value.Object() defer object.Close() - if v.ApplyOnlyAtCronInterval != nil { + if v.ApplyOnlyAtCronInterval { ok := object.Key("ApplyOnlyAtCronInterval") - ok.Boolean(*v.ApplyOnlyAtCronInterval) + ok.Boolean(v.ApplyOnlyAtCronInterval) } if v.AssociationId != nil { @@ -11674,14 +11338,14 @@ func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowInput(v *UpdateMaint object := value.Object() defer object.Close() - if v.AllowUnassociatedTargets != nil { + if v.AllowUnassociatedTargets { ok := object.Key("AllowUnassociatedTargets") - ok.Boolean(*v.AllowUnassociatedTargets) + ok.Boolean(v.AllowUnassociatedTargets) } - if v.Cutoff != nil { + if v.Cutoff != 0 { ok := object.Key("Cutoff") - ok.Integer(*v.Cutoff) + ok.Integer(v.Cutoff) } if v.Description != nil { @@ -11689,14 +11353,14 @@ func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowInput(v *UpdateMaint ok.String(*v.Description) } - if v.Duration != nil { + if v.Duration != 0 { ok := object.Key("Duration") - ok.Integer(*v.Duration) + ok.Integer(v.Duration) } - if v.Enabled != nil { + if v.Enabled { ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + ok.Boolean(v.Enabled) } if v.EndDate != nil { @@ -11709,9 +11373,9 @@ func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowInput(v *UpdateMaint ok.String(*v.Name) } - if v.Replace != nil { + if v.Replace { ok := object.Key("Replace") - ok.Boolean(*v.Replace) + ok.Boolean(v.Replace) } if v.Schedule != nil { @@ -11719,9 +11383,9 @@ func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowInput(v *UpdateMaint ok.String(*v.Schedule) } - if v.ScheduleOffset != nil { + if v.ScheduleOffset != 0 { ok := object.Key("ScheduleOffset") - ok.Integer(*v.ScheduleOffset) + ok.Integer(v.ScheduleOffset) } if v.ScheduleTimezone != nil { @@ -11761,9 +11425,9 @@ func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowTargetInput(v *Updat ok.String(*v.OwnerInformation) } - if v.Replace != nil { + if v.Replace { ok := object.Key("Replace") - ok.Boolean(*v.Replace) + ok.Boolean(v.Replace) } if v.Targets != nil { @@ -11817,14 +11481,14 @@ func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowTaskInput(v *UpdateM ok.String(*v.Name) } - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("Priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } - if v.Replace != nil { + if v.Replace { ok := object.Key("Replace") - ok.Boolean(*v.Replace) + ok.Boolean(v.Replace) } if v.ServiceRoleArn != nil { @@ -11981,9 +11645,9 @@ func awsAwsjson11_serializeOpDocumentUpdatePatchBaselineInput(v *UpdatePatchBase ok.String(string(v.ApprovedPatchesComplianceLevel)) } - if v.ApprovedPatchesEnableNonSecurity != nil { + if v.ApprovedPatchesEnableNonSecurity { ok := object.Key("ApprovedPatchesEnableNonSecurity") - ok.Boolean(*v.ApprovedPatchesEnableNonSecurity) + ok.Boolean(v.ApprovedPatchesEnableNonSecurity) } if v.BaselineId != nil { @@ -12020,9 +11684,9 @@ func awsAwsjson11_serializeOpDocumentUpdatePatchBaselineInput(v *UpdatePatchBase ok.String(string(v.RejectedPatchesAction)) } - if v.Replace != nil { + if v.Replace { ok := object.Key("Replace") - ok.Boolean(*v.Replace) + ok.Boolean(v.Replace) } if v.Sources != nil { diff --git a/service/ssm/types/errors.go b/service/ssm/types/errors.go index d8a3ffe0229..d6c2109d35a 100644 --- a/service/ssm/types/errors.go +++ b/service/ssm/types/errors.go @@ -1500,7 +1500,7 @@ func (e *OpsItemAlreadyExistsException) ErrorFault() smithy.ErrorFault { return type OpsItemInvalidParameterException struct { Message *string - ParameterNames []*string + ParameterNames []string } func (e *OpsItemInvalidParameterException) Error() string { @@ -1524,8 +1524,8 @@ type OpsItemLimitExceededException struct { Message *string LimitType *string - Limit *int32 - ResourceTypes []*string + Limit int32 + ResourceTypes []string } func (e *OpsItemLimitExceededException) Error() string { diff --git a/service/ssm/types/types.go b/service/ssm/types/types.go index 123f5a33762..6ea252d851d 100644 --- a/service/ssm/types/types.go +++ b/service/ssm/types/types.go @@ -39,7 +39,7 @@ type Activation struct { ExpirationDate *time.Time // Whether or not the activation is expired. - Expired *bool + Expired bool // The Amazon Identity and Access Management (IAM) role to assign to the managed // instance. @@ -47,13 +47,13 @@ type Activation struct { // The maximum number of managed instances that can be registered using this // activation. - RegistrationLimit *int32 + RegistrationLimit int32 // The number of managed instances already registered with this activation. - RegistrationsCount *int32 + RegistrationsCount int32 // Tags assigned to the activation. - Tags []*Tag + Tags []Tag } // Describes an association of a Systems Manager document and an instance. @@ -88,7 +88,7 @@ type Association struct { ScheduleExpression *string // The instances targeted by the request to create an association. - Targets []*Target + Targets []Target } // Describes the parameters for a document. @@ -98,7 +98,7 @@ type AssociationDescription struct { // after it is created and then according to the schedule you specified. Specify // this option if you don't want an association to run immediately after you create // it. - ApplyOnlyAtCronInterval *bool + ApplyOnlyAtCronInterval bool // The association ID. AssociationId *string @@ -168,7 +168,7 @@ type AssociationDescription struct { Overview *AssociationOverview // A description of the parameters for a document. - Parameters map[string][]*string + Parameters map[string][]string // A cron expression that specifies a schedule when the association runs. ScheduleExpression *string @@ -188,7 +188,7 @@ type AssociationDescription struct { SyncCompliance AssociationSyncCompliance // The instances targeted by the request. - Targets []*Target + Targets []Target } // Includes information about the specified association. @@ -303,7 +303,7 @@ type AssociationOverview struct { // Returns the number of targets for the association status. For example, if you // created an association with two instances, and one of them was successful, this // would return the count of instances by status. - AssociationStatusAggregatedCount map[string]*int32 + AssociationStatusAggregatedCount map[string]int32 // A detailed status of the association. DetailedStatus *string @@ -341,7 +341,7 @@ type AssociationVersionInfo struct { // after it is created and then according to the schedule you specified. Specify // this option if you don't want an association to run immediately after you create // it. - ApplyOnlyAtCronInterval *bool + ApplyOnlyAtCronInterval bool // The ID created by the system when the association was created. AssociationId *string @@ -395,7 +395,7 @@ type AssociationVersionInfo struct { OutputLocation *InstanceAssociationOutputLocation // Parameters specified when the association version was created. - Parameters map[string][]*string + Parameters map[string][]string // The cron or rate schedule specified for the association when the association // version was created. @@ -414,7 +414,7 @@ type AssociationVersionInfo struct { // The targets specified for the association when the association version was // created. - Targets []*Target + Targets []Target } // A structure that includes attributes that describe a document attachment. @@ -430,7 +430,7 @@ type AttachmentContent struct { Name *string // The size of an attachment in bytes. - Size *int64 + Size int64 // The URL location of the attachment content. Url *string @@ -474,7 +474,7 @@ type AttachmentsSource struct { // instead of the document name only. For example: "Values": [ // "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py" // ] - Values []*string + Values []string } // Detailed information about the current state of an individual Automation @@ -522,11 +522,11 @@ type AutomationExecution struct { Mode ExecutionMode // The list of execution outputs as defined in the automation document. - Outputs map[string][]*string + Outputs map[string][]string // The key-value map of execution parameters, which were supplied when calling // StartAutomationExecution. - Parameters map[string][]*string + Parameters map[string][]string // The AutomationExecutionId of the parent automation. ParentAutomationExecutionId *string @@ -541,28 +541,28 @@ type AutomationExecution struct { // A list of details about the current state of all steps that comprise an // execution. An Automation document contains a list of steps that are run in // order. - StepExecutions []*StepExecution + StepExecutions []StepExecution // A boolean value that indicates if the response contains the full list of the // Automation step executions. If true, use the DescribeAutomationStepExecutions // API action to get the full list of step executions. - StepExecutionsTruncated *bool + StepExecutionsTruncated bool // The target of the execution. Target *string // The combination of AWS Regions and/or AWS accounts where you want to run the // Automation. - TargetLocations []*TargetLocation + TargetLocations []TargetLocation // The specified key-value mapping of document parameters to target resources. - TargetMaps []map[string][]*string + TargetMaps []map[string][]string // The parameter name. TargetParameterName *string // The specified targets. - Targets []*Target + Targets []Target } // A filter used to match specific automation executions. This is used to limit the @@ -580,7 +580,7 @@ type AutomationExecutionFilter struct { // key. // // This member is required. - Values []*string + Values []string } // Details about a specific Automation execution. @@ -638,7 +638,7 @@ type AutomationExecutionMetadata struct { Mode ExecutionMode // The list of execution outputs as defined in the Automation document. - Outputs map[string][]*string + Outputs map[string][]string // The ExecutionId of the parent Automation. ParentAutomationExecutionId *string @@ -650,13 +650,13 @@ type AutomationExecutionMetadata struct { Target *string // The specified key-value mapping of document parameters to target resources. - TargetMaps []map[string][]*string + TargetMaps []map[string][]string // The list of execution outputs as defined in the Automation document. TargetParameterName *string // The targets defined by the user when starting the Automation. - Targets []*Target + Targets []Target } // Configuration options for sending command output to CloudWatch Logs. @@ -669,7 +669,7 @@ type CloudWatchOutputConfig struct { CloudWatchLogGroupName *string // Enables Systems Manager to send command output to CloudWatch Logs. - CloudWatchOutputEnabled *bool + CloudWatchOutputEnabled bool } // Describes a command request. @@ -689,10 +689,10 @@ type Command struct { // The number of targets for which the command invocation reached a terminal state. // Terminal states include the following: Success, Failed, Execution Timed Out, // Delivery Timed Out, Canceled, Terminated, or Undeliverable. - CompletedCount *int32 + CompletedCount int32 // The number of targets for which the status is Delivery Timed Out. - DeliveryTimedOutCount *int32 + DeliveryTimedOutCount int32 // The name of the document requested for execution. DocumentName *string @@ -701,7 +701,7 @@ type Command struct { DocumentVersion *string // The number of targets for which the status is Failed or Execution Timed Out. - ErrorCount *int32 + ErrorCount int32 // If this time is reached and the command has not already started running, it will // not run. Calculated based on the ExpiresAfter user input provided as part of the @@ -709,7 +709,7 @@ type Command struct { ExpiresAfter *time.Time // The instance IDs against which this command was requested. - InstanceIds []*string + InstanceIds []string // The maximum number of instances that are allowed to run the command at the same // time. You can specify a number of instances, such as 10, or a percentage of @@ -744,7 +744,7 @@ type Command struct { OutputS3Region *string // The parameter values to be inserted in the document when running the command. - Parameters map[string][]*string + Parameters map[string][]string // The date and time the command was requested. RequestedDateTime *time.Time @@ -800,15 +800,15 @@ type Command struct { StatusDetails *string // The number of targets for the command. - TargetCount *int32 + TargetCount int32 // An array of search criteria that targets instances using a Key,Value combination // that you specify. Targets is required if you don't provide one or more instance // IDs in the call. - Targets []*Target + Targets []Target // The TimeoutSeconds value specified for a command. - TimeoutSeconds *int32 + TimeoutSeconds int32 } // Describes a command filter. An instance ID can't be specified when a command @@ -882,7 +882,7 @@ type CommandInvocation struct { // The command against which this invocation was requested. CommandId *string - CommandPlugins []*CommandPlugin + CommandPlugins []CommandPlugin // User-specified information about the command, such as a brief description of // what the command should do. @@ -1017,7 +1017,7 @@ type CommandPlugin struct { OutputS3Region *string // A numeric response code generated after running the plugin. - ResponseCode *int32 + ResponseCode int32 // The time the plugin stopped running. Could stop prematurely if, for example, a // cancel command was sent. @@ -1117,7 +1117,7 @@ type ComplianceItem struct { ComplianceType *string // A "Key": "Value" tag combination for the compliance item. - Details map[string]*string + Details map[string]string // A summary for the compliance item. The summary includes an execution ID, the // execution type (for example, command), and the execution time. @@ -1163,7 +1163,7 @@ type ComplianceItemEntry struct { Status ComplianceStatus // A "Key": "Value" tag combination for the compliance item. - Details map[string]*string + Details map[string]string // The compliance item ID. For example, if the compliance item is a Windows patch, // the ID could be the number of the KB article. @@ -1186,7 +1186,7 @@ type ComplianceStringFilter struct { Type ComplianceQueryOperatorType // The value for which to search. - Values []*string + Values []string } // A summary of compliance information by compliance type. @@ -1208,7 +1208,7 @@ type ComplianceSummaryItem struct { type CompliantSummary struct { // The total number of resources that are compliant. - CompliantCount *int32 + CompliantCount int32 // A summary of the compliance severity by compliance type. SeveritySummary *SeveritySummary @@ -1235,7 +1235,7 @@ type CreateAssociationBatchRequestEntry struct { // after it is created and then according to the schedule you specified. Specify // this option if you don't want an association to run immediately after you create // it. - ApplyOnlyAtCronInterval *bool + ApplyOnlyAtCronInterval bool // Specify a descriptive name for the association. AssociationName *string @@ -1281,7 +1281,7 @@ type CreateAssociationBatchRequestEntry struct { OutputLocation *InstanceAssociationOutputLocation // A description of the parameters for a document. - Parameters map[string][]*string + Parameters map[string][]string // A cron expression that specifies a schedule when the association runs. ScheduleExpression *string @@ -1298,7 +1298,7 @@ type CreateAssociationBatchRequestEntry struct { SyncCompliance AssociationSyncCompliance // The instances targeted by the request. - Targets []*Target + Targets []Target } // Filter for the DescribeActivation API. @@ -1308,7 +1308,7 @@ type DescribeActivationsFilter struct { FilterKey DescribeActivationsFilterKeys // The filter values. - FilterValues []*string + FilterValues []string } // A default version of a document. @@ -1329,7 +1329,7 @@ type DocumentDescription struct { // Details about the document attachments, including names, locations, sizes, and // so on. - AttachmentsInformation []*AttachmentInformation + AttachmentsInformation []AttachmentInformation // The date when the document was created. CreatedDate *time.Time @@ -1367,7 +1367,7 @@ type DocumentDescription struct { Owner *string // A description of the parameters for a document. - Parameters []*DocumentParameter + Parameters []DocumentParameter // The list of OS platforms compatible with this Systems Manager document. PlatformTypes []PlatformType @@ -1375,7 +1375,7 @@ type DocumentDescription struct { // A list of SSM documents required by a document. For example, an // ApplicationConfiguration document requires an ApplicationConfigurationSchema // document. - Requires []*DocumentRequires + Requires []DocumentRequires // The schema version. SchemaVersion *string @@ -1393,7 +1393,7 @@ type DocumentDescription struct { StatusInformation *string // The tags, or metadata, that have been applied to the document. - Tags []*Tag + Tags []Tag // The target type which defines the kinds of resources the document can run on. // For example, /AWS::EC2::Instance. For a list of valid resource types, see AWS @@ -1444,13 +1444,13 @@ type DocumentIdentifier struct { // A list of SSM documents required by a document. For example, an // ApplicationConfiguration document requires an ApplicationConfigurationSchema // document. - Requires []*DocumentRequires + Requires []DocumentRequires // The schema version. SchemaVersion *string // The tags, or metadata, that have been applied to the document. - Tags []*Tag + Tags []Tag // The target type which defines the kinds of resources the document can run on. // For example, /AWS::EC2::Instance. For a list of valid resource types, see AWS @@ -1533,7 +1533,7 @@ type DocumentKeyValuesFilter struct { Key *string // The value for the filter key. - Values []*string + Values []string } // Parameters specified in a System Manager document that run on the server when @@ -1581,7 +1581,7 @@ type DocumentVersionInfo struct { DocumentVersion *string // An identifier for the default version of the document. - IsDefaultVersion *bool + IsDefaultVersion bool // The document name. Name *string @@ -1638,7 +1638,7 @@ type FailedCreateAssociation struct { type FailureDetails struct { // Detailed information about the Automation step failure. - Details map[string][]*string + Details map[string][]string // The stage of the Automation execution when the failure occurred. The stages // include the following: InputValidation, PreVerification, Invocation, @@ -1657,7 +1657,7 @@ type InstanceAggregatedAssociationOverview struct { DetailedStatus *string // The number of associations for the instance(s). - InstanceAssociationStatusAggregatedCount map[string]*int32 + InstanceAssociationStatusAggregatedCount map[string]int32 } // One or more association documents on the instance. @@ -1769,7 +1769,7 @@ type InstanceInformation struct { // Managed Instance. This field does not indicate whether or not the latest version // is installed on Windows managed instances, because some older versions of // Windows Server use the EC2Config service to process SSM requests. - IsLatestVersion *bool + IsLatestVersion bool // The date the association was last run. LastAssociationExecutionDate *time.Time @@ -1833,7 +1833,7 @@ type InstanceInformationFilter struct { // The filter values. // // This member is required. - ValueSet []*string + ValueSet []string } // The filters to describe or get information about your managed instances. @@ -1849,7 +1849,7 @@ type InstanceInformationStringFilter struct { // The filter values. // // This member is required. - Values []*string + Values []string } // Defines the high-level patch compliance state for a managed instance, providing @@ -1892,7 +1892,7 @@ type InstancePatchState struct { // The number of patches from the patch baseline that were attempted to be // installed during the last patching operation, but failed to install. - FailedCount *int32 + FailedCount int32 // An https URL or an Amazon S3 path-style URL to a list of patches to be // installed. This patch installation list, which you maintain in an S3 bucket in @@ -1905,22 +1905,22 @@ type InstancePatchState struct { // The number of patches from the patch baseline that are installed on the // instance. - InstalledCount *int32 + InstalledCount int32 // The number of patches not specified in the patch baseline that are installed on // the instance. - InstalledOtherCount *int32 + InstalledOtherCount int32 // The number of patches installed by Patch Manager since the last time the // instance was rebooted. - InstalledPendingRebootCount *int32 + InstalledPendingRebootCount int32 // The number of patches installed on an instance that are specified in a // RejectedPatches list. Patches with a status of InstalledRejected were typically // installed before they were added to a RejectedPatches list. If // ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, the value // of InstalledRejectedCount will always be 0 (zero). - InstalledRejectedCount *int32 + InstalledRejectedCount int32 // The time of the last attempt to patch the instance with NoReboot specified as // the reboot option. @@ -1928,13 +1928,13 @@ type InstancePatchState struct { // The number of patches from the patch baseline that are applicable for the // instance but aren't currently installed. - MissingCount *int32 + MissingCount int32 // The number of patches from the patch baseline that aren't applicable for the // instance and therefore aren't installed on the instance. This number may be // truncated if the list of patch names is very large. The number of patches beyond // this limit are reported in UnreportedNotApplicableCount. - NotApplicableCount *int32 + NotApplicableCount int32 // Placeholder information. This field will always be empty in the current release // of the service. @@ -1960,7 +1960,7 @@ type InstancePatchState struct { // The number of patches beyond the supported limit of NotApplicableCount that are // not reported by name to Systems Manager Inventory. - UnreportedNotApplicableCount *int32 + UnreportedNotApplicableCount int32 } // Defines a filter used in DescribeInstancePatchStatesForPatchGroup used to scope @@ -1982,14 +1982,14 @@ type InstancePatchStateFilter struct { // The value for the filter, must be an integer greater than or equal to 0. // // This member is required. - Values []*string + Values []string } // Specifies the inventory type and attribute for the aggregation execution. type InventoryAggregator struct { // Nested aggregators to further refine aggregation for an inventory type. - Aggregators []*InventoryAggregator + Aggregators []InventoryAggregator // The inventory type and attribute name for aggregation. Expression *string @@ -1997,7 +1997,7 @@ type InventoryAggregator struct { // A user-defined set of one or more filters on which to aggregate inventory data. // Groups return a count of resources that match and don't match the specified // criteria. - Groups []*InventoryGroup + Groups []InventoryGroup } // Status information returned by the DeleteInventory action. @@ -2032,14 +2032,14 @@ type InventoryDeletionStatusItem struct { type InventoryDeletionSummary struct { // Remaining number of items to delete. - RemainingCount *int32 + RemainingCount int32 // A list of counts and versions for deleted items. - SummaryItems []*InventoryDeletionSummaryItem + SummaryItems []InventoryDeletionSummaryItem // The total number of items to delete. This count does not change during the // delete operation. - TotalCount *int32 + TotalCount int32 } // Either a count, remaining count, or a version number in a delete inventory @@ -2047,10 +2047,10 @@ type InventoryDeletionSummary struct { type InventoryDeletionSummaryItem struct { // A count of the number of deleted items. - Count *int32 + Count int32 // The remaining number of items to delete. - RemainingCount *int32 + RemainingCount int32 // The inventory type version. Version *string @@ -2069,7 +2069,7 @@ type InventoryFilter struct { // i-a12b3c4d5e6g, i-1a2b3c4d5e6,Type=Equal // // This member is required. - Values []*string + Values []string // The type of filter. The Exists filter must be used with aggregators. For more // information, see Aggregating inventory data @@ -2088,7 +2088,7 @@ type InventoryGroup struct { // the number of resources that don't match the criteria. // // This member is required. - Filters []*InventoryFilter + Filters []InventoryFilter // The name of the group. // @@ -2119,7 +2119,7 @@ type InventoryItem struct { TypeName *string // The inventory data of the inventory type. - Content []map[string]*string + Content []map[string]string // MD5 hash of the inventory item type contents. The content hash is used to // determine whether to update inventory information. The PutInventory API does not @@ -2130,7 +2130,7 @@ type InventoryItem struct { // A map of associated properties for a specified inventory type. For example, with // this attribute, you can specify the ExecutionId, ExecutionType, ComplianceType // properties of the AWS:ComplianceItem type. - Context map[string]*string + Context map[string]string } // Attributes are the entries within the inventory item content. It contains name @@ -2155,7 +2155,7 @@ type InventoryItemSchema struct { // The schema attributes for inventory. This contains data type and attribute name. // // This member is required. - Attributes []*InventoryItemAttribute + Attributes []InventoryItemAttribute // The name of the inventory type. Default inventory item type names start with // AWS. Custom inventory type names will start with Custom. Default inventory item @@ -2177,7 +2177,7 @@ type InventoryItemSchema struct { type InventoryResultEntity struct { // The data section in the inventory result entity JSON. - Data map[string]*InventoryResultItem + Data map[string]InventoryResultItem // ID of the inventory result entity. For example, for managed instance inventory // the result will be the managed instance ID. For EC2 instance inventory, the @@ -2192,7 +2192,7 @@ type InventoryResultItem struct { // names and values. // // This member is required. - Content []map[string]*string + Content []map[string]string // The schema version for the inventory result item/ // @@ -2254,7 +2254,7 @@ type MaintenanceWindowAutomationParameters struct { // about how Systems Manager handles these options for the supported maintenance // window task types, see MaintenanceWindowTaskInvocationParameters. For AUTOMATION // task types, Systems Manager ignores any values specified for these parameters. - Parameters map[string][]*string + Parameters map[string][]string } // Describes the information about an execution of a maintenance window. @@ -2362,7 +2362,7 @@ type MaintenanceWindowFilter struct { Key *string // The filter values. - Values []*string + Values []string } // Information about the maintenance window. @@ -2370,16 +2370,16 @@ type MaintenanceWindowIdentity struct { // The number of hours before the end of the maintenance window that Systems // Manager stops scheduling new tasks for execution. - Cutoff *int32 + Cutoff int32 // A description of the maintenance window. Description *string // The duration of the maintenance window in hours. - Duration *int32 + Duration int32 // Indicates whether the maintenance window is enabled. - Enabled *bool + Enabled bool // The date and time, in ISO-8601 Extended format, for when the maintenance window // is scheduled to become inactive. @@ -2397,7 +2397,7 @@ type MaintenanceWindowIdentity struct { // The number of days to wait to run a maintenance window after the scheduled CRON // expression date and time. - ScheduleOffset *int32 + ScheduleOffset int32 // The time zone that the scheduled maintenance window executions are based on, in // Internet Assigned Numbers Authority (IANA) format. @@ -2498,7 +2498,7 @@ type MaintenanceWindowRunCommandParameters struct { OutputS3KeyPrefix *string // The parameters for the RUN_COMMAND task execution. - Parameters map[string][]*string + Parameters map[string][]string // The ARN of the IAM service role to use to publish Amazon Simple Notification // Service (Amazon SNS) notifications for maintenance window Run Command tasks. @@ -2506,7 +2506,7 @@ type MaintenanceWindowRunCommandParameters struct { // If this time is reached and the command has not already started running, it // doesn't run. - TimeoutSeconds *int32 + TimeoutSeconds int32 } // The parameters for a STEP_FUNCTIONS task. For information about specifying and @@ -2550,7 +2550,7 @@ type MaintenanceWindowTarget struct { // The targets, either instances or tags. Specify instances using the following // format: Key=instanceids,Values=, Tags are specified using the following format: // Key=,Values=. - Targets []*Target + Targets []Target // The ID of the maintenance window to register the target with. WindowId *string @@ -2585,7 +2585,7 @@ type MaintenanceWindowTask struct { // The priority of the task in the maintenance window. The lower the number, the // higher the priority. Tasks that have the same priority are scheduled in // parallel. - Priority *int32 + Priority int32 // The ARN of the IAM service role to use to publish Amazon Simple Notification // Service (Amazon SNS) notifications for maintenance window Run Command tasks. @@ -2593,7 +2593,7 @@ type MaintenanceWindowTask struct { // The targets (either instances or tags). Instances are specified using // Key=instanceids,Values=,. Tags are specified using Key=,Values=. - Targets []*Target + Targets []Target // The resource that the task uses during execution. For RUN_COMMAND and AUTOMATION // task types, TaskArn is the Systems Manager document name or ARN. For LAMBDA @@ -2606,7 +2606,7 @@ type MaintenanceWindowTask struct { // instead use the Parameters option in the TaskInvocationParameters structure. For // information about how Systems Manager handles these options for the supported // maintenance window task types, see MaintenanceWindowTaskInvocationParameters. - TaskParameters map[string]*MaintenanceWindowTaskParameterValueExpression + TaskParameters map[string]MaintenanceWindowTaskParameterValueExpression // The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, // LAMBDA, or STEP_FUNCTIONS. @@ -2640,7 +2640,7 @@ type MaintenanceWindowTaskParameterValueExpression struct { // This field contains an array of 0 or more strings, each 1 to 255 characters in // length. - Values []*string + Values []string } // A summary of resources that are not compliant. The summary is organized @@ -2648,7 +2648,7 @@ type MaintenanceWindowTaskParameterValueExpression struct { type NonCompliantSummary struct { // The total number of compliance items that are not compliant. - NonCompliantCount *int32 + NonCompliantCount int32 // A summary of the non-compliance severity by compliance type SeveritySummary *SeveritySummary @@ -2685,26 +2685,26 @@ type OpsAggregator struct { AggregatorType *string // A nested aggregator for viewing counts of OpsItems. - Aggregators []*OpsAggregator + Aggregators []OpsAggregator // The name of an OpsItem attribute on which to limit the count of OpsItems. AttributeName *string // The aggregator filters. - Filters []*OpsFilter + Filters []OpsFilter // The data type name to use for viewing counts of OpsItems. TypeName *string // The aggregator value. - Values map[string]*string + Values map[string]string } // The result of the query. type OpsEntity struct { // The data returned by the query. - Data map[string]*OpsEntityItem + Data map[string]OpsEntityItem // The query ID. Id *string @@ -2717,7 +2717,7 @@ type OpsEntityItem struct { CaptureTime *string // The detailed data content for an OpsItem summaries result item. - Content []map[string]*string + Content []map[string]string } // A filter for viewing OpsItem summaries. @@ -2731,7 +2731,7 @@ type OpsFilter struct { // The filter value. // // This member is required. - Values []*string + Values []string // The type of filter. Type OpsFilterOperatorType @@ -2765,7 +2765,7 @@ type OpsItem struct { // The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when // this OpsItem is edited or changed. - Notifications []*OpsItemNotification + Notifications []OpsItemNotification // Operational data is custom data that provides useful reference details about the // OpsItem. For example, you can specify log files, error strings, license keys, @@ -2784,7 +2784,7 @@ type OpsItem struct { // these keys, see Creating OpsItems manually // (https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems) // in the AWS Systems Manager User Guide. - OperationalData map[string]*OpsItemDataValue + OperationalData map[string]OpsItemDataValue // The ID of the OpsItem. OpsItemId *string @@ -2795,7 +2795,7 @@ type OpsItem struct { // One or more OpsItems that share something in common with the current OpsItem. // For example, related OpsItems can include OpsItems with similar error messages, // impacted resources, or statuses for the impacted resource. - RelatedOpsItems []*RelatedOpsItem + RelatedOpsItems []RelatedOpsItem // The severity of the OpsItem. Severity options range from 1 to 4. Severity *string @@ -2846,7 +2846,7 @@ type OpsItemFilter struct { // The filter value. // // This member is required. - Values []*string + Values []string } // A notification about the OpsItem. @@ -2877,7 +2877,7 @@ type OpsItemSummary struct { // Operational data is custom data that provides useful reference details about the // OpsItem. - OperationalData map[string]*OpsItemDataValue + OperationalData map[string]OpsItemDataValue // The ID of the OpsItem. OpsItemId *string @@ -2954,7 +2954,7 @@ type Parameter struct { Value *string // The parameter version. - Version *int64 + Version int64 } // Information about parameter usage. @@ -2974,7 +2974,7 @@ type ParameterHistory struct { KeyId *string // Labels assigned to the parameter version. - Labels []*string + Labels []string // Date the parameter was last changed or updated. LastModifiedDate *time.Time @@ -2989,7 +2989,7 @@ type ParameterHistory struct { // policies // (https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-policies.html) // in the AWS Systems Manager User Guide. - Policies []*ParameterInlinePolicy + Policies []ParameterInlinePolicy // The parameter tier. Tier ParameterTier @@ -3001,7 +3001,7 @@ type ParameterHistory struct { Value *string // The parameter version. - Version *int64 + Version int64 } // One or more policies assigned to a parameter. @@ -3049,7 +3049,7 @@ type ParameterMetadata struct { Name *string // A list of policies associated with a parameter. - Policies []*ParameterInlinePolicy + Policies []ParameterInlinePolicy // The parameter tier. Tier ParameterTier @@ -3059,7 +3059,7 @@ type ParameterMetadata struct { Type ParameterType // The parameter version. - Version *int64 + Version int64 } // This data type is deprecated. Instead, use ParameterStringFilter. @@ -3073,7 +3073,7 @@ type ParametersFilter struct { // The filter values. // // This member is required. - Values []*string + Values []string } // One or more filters. Use a filter to return a more specific list of results. @@ -3102,7 +3102,7 @@ type ParameterStringFilter struct { Option *string // The value you want to search for. - Values []*string + Values []string } // Represents metadata about a patch. @@ -3110,7 +3110,7 @@ type Patch struct { // The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to // Linux-based instances only. - AdvisoryIds []*string + AdvisoryIds []string // The architecture of the patch. For example, in // example-pkg-0.710.10-2.7.abcd.x86_64, the architecture is indicated by x86_64. @@ -3119,11 +3119,11 @@ type Patch struct { // The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based // instances only. - BugzillaIds []*string + BugzillaIds []string // The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, // CVE-1999-0067. Applies to Linux-based instances only. - CVEIds []*string + CVEIds []string // The classification of the patch. For example, SecurityUpdates, Updates, or // CriticalUpdates. @@ -3137,7 +3137,7 @@ type Patch struct { // The epoch of the patch. For example in pkg-example-EE-20180914-2.2.amzn1.noarch, // the epoch value is 20180914-2. Applies to Linux-based instances only. - Epoch *int32 + Epoch int32 // The ID of the patch. Applies to Windows patches only. This ID is not the same as // the Microsoft Knowledge Base ID. @@ -3211,7 +3211,7 @@ type PatchBaselineIdentity struct { // Whether this is the default baseline. Note that Systems Manager supports // creating multiple default patch baselines. For example, you can create a default // patch baseline for each operating system. - DefaultBaseline *bool + DefaultBaseline bool // Defines the operating system the patch baseline applies to. The Default value is // WINDOWS. @@ -3286,7 +3286,7 @@ type PatchFilter struct { // lists of valid values for each key based on operating system type. // // This member is required. - Values []*string + Values []string } // A set of patch filters, typically used for approval rules. @@ -3295,7 +3295,7 @@ type PatchFilterGroup struct { // The set of patch filters that make up the group. // // This member is required. - PatchFilters []*PatchFilter + PatchFilters []PatchFilter } // The mapping between a patch group and the patch baseline the patch group is @@ -3316,7 +3316,7 @@ type PatchOrchestratorFilter struct { Key *string // The value for the filter. - Values []*string + Values []string } // Defines an approval rule for a patch baseline. @@ -3331,7 +3331,7 @@ type PatchRule struct { // the patch is marked as approved in the patch baseline. For example, a value of 7 // means that patches are approved seven days after they are released. Not // supported on Ubuntu Server. - ApproveAfterDays *int32 + ApproveAfterDays int32 // The cutoff date for auto approval of released patches. Any patches released on // or before this date are installed automatically. Not supported on Ubuntu Server. @@ -3344,7 +3344,7 @@ type PatchRule struct { // For instances identified by the approval rule filters, enables a patch baseline // to apply non-security updates available in the specified repository. The default // value is 'false'. Applies to Linux instances only. - EnableNonSecurity *bool + EnableNonSecurity bool } // A set of rules defining the approval rules for a patch baseline. @@ -3353,7 +3353,7 @@ type PatchRuleGroup struct { // The rules that make up the rule group. // // This member is required. - PatchRules []*PatchRule + PatchRules []PatchRule } // Information about the patches to use to update the instances, including target @@ -3382,7 +3382,7 @@ type PatchSource struct { // For lists of supported product values, see PatchFilter. // // This member is required. - Products []*string + Products []string } // Information about the approval status of a patch. @@ -3406,23 +3406,23 @@ type ProgressCounters struct { // The total number of steps that the system cancelled in all specified AWS Regions // and accounts for the current Automation execution. - CancelledSteps *int32 + CancelledSteps int32 // The total number of steps that failed to run in all specified AWS Regions and // accounts for the current Automation execution. - FailedSteps *int32 + FailedSteps int32 // The total number of steps that successfully completed in all specified AWS // Regions and accounts for the current Automation execution. - SuccessSteps *int32 + SuccessSteps int32 // The total number of steps that timed out in all specified AWS Regions and // accounts for the current Automation execution. - TimedOutSteps *int32 + TimedOutSteps int32 // The total number of steps run in all specified AWS Regions and accounts for the // current Automation execution. - TotalSteps *int32 + TotalSteps int32 } // An OpsItems that shares something in common with the current OpsItem. For @@ -3441,10 +3441,10 @@ type ResolvedTargets struct { // A list of parameter values sent to targets that resolved during the Automation // execution. - ParameterValues []*string + ParameterValues []string // A boolean value indicating whether the resolved target list is truncated. - Truncated *bool + Truncated bool } // Compliance summary information for a specific resource. @@ -3490,7 +3490,7 @@ type ResourceDataSyncAwsOrganizationsSource struct { OrganizationSourceType *string // The AWS Organizations organization units included in the sync. - OrganizationalUnits []*ResourceDataSyncOrganizationalUnit + OrganizationalUnits []ResourceDataSyncOrganizationalUnit } // Synchronize Systems Manager Inventory data from multiple AWS accounts defined in @@ -3583,7 +3583,7 @@ type ResourceDataSyncSource struct { // The SyncSource AWS Regions included in the resource data sync. // // This member is required. - SourceRegions []*string + SourceRegions []string // The type of data source for the resource data sync. SourceType is either // AwsOrganizations (if an organization is present in AWS Organizations) or @@ -3598,7 +3598,7 @@ type ResourceDataSyncSource struct { // Whether to automatically synchronize and aggregate data from new AWS Regions // when those Regions come online. - IncludeFutureRegions *bool + IncludeFutureRegions bool } // The data type name for including resource data sync state. There are four sync @@ -3616,10 +3616,10 @@ type ResourceDataSyncSourceWithState struct { // Whether to automatically synchronize and aggregate data from new AWS Regions // when those Regions come online. - IncludeFutureRegions *bool + IncludeFutureRegions bool // The SyncSource AWS Regions included in the resource data sync. - SourceRegions []*string + SourceRegions []string // The type of data source for the resource data sync. SourceType is either // AwsOrganizations (if an organization is present in AWS Organizations) or @@ -3820,32 +3820,32 @@ type SeveritySummary struct { // The total number of resources or compliance items that have a severity level of // critical. Critical severity is determined by the organization that published the // compliance items. - CriticalCount *int32 + CriticalCount int32 // The total number of resources or compliance items that have a severity level of // high. High severity is determined by the organization that published the // compliance items. - HighCount *int32 + HighCount int32 // The total number of resources or compliance items that have a severity level of // informational. Informational severity is determined by the organization that // published the compliance items. - InformationalCount *int32 + InformationalCount int32 // The total number of resources or compliance items that have a severity level of // low. Low severity is determined by the organization that published the // compliance items. - LowCount *int32 + LowCount int32 // The total number of resources or compliance items that have a severity level of // medium. Medium severity is determined by the organization that published the // compliance items. - MediumCount *int32 + MediumCount int32 // The total number of resources or compliance items that have a severity level of // unspecified. Unspecified severity is determined by the organization that // published the compliance items. - UnspecifiedCount *int32 + UnspecifiedCount int32 } // Detailed information about an the execution state of an Automation step. @@ -3869,19 +3869,19 @@ type StepExecution struct { FailureMessage *string // Fully-resolved values passed into the step before execution. - Inputs map[string]*string + Inputs map[string]string // The flag which can be used to help decide whether the failure of current step // leads to the Automation failure. - IsCritical *bool + IsCritical bool // The flag which can be used to end automation no matter whether the step succeeds // or fails. - IsEnd *bool + IsEnd bool // The maximum number of tries to run the action of the step. The default value is // 1. - MaxAttempts *int32 + MaxAttempts int32 // The next step after the step succeeds. NextStep *string @@ -3890,10 +3890,10 @@ type StepExecution struct { OnFailure *string // Returned values from the execution of the step. - Outputs map[string][]*string + Outputs map[string][]string // A user-specified list of parameters to override when running a step. - OverriddenParameters map[string][]*string + OverriddenParameters map[string][]string // A message associated with the response code for an execution. Response *string @@ -3915,16 +3915,16 @@ type StepExecution struct { TargetLocation *TargetLocation // The targets for the step execution. - Targets []*Target + Targets []Target // The timeout seconds of the step. - TimeoutSeconds *int64 + TimeoutSeconds int64 // Strategies used when step fails, we support Continue and Abort. Abort will fail // the automation when the step fails. Continue will ignore the failure of current // step and allow automation to run the next step. With conditional branching, we // add step:stepName to support the automation to go to another specific step. - ValidNextSteps []*string + ValidNextSteps []string } // A filter to limit the amount of step execution information returned by the call. @@ -3940,7 +3940,7 @@ type StepExecutionFilter struct { // The values of the filter key. // // This member is required. - Values []*string + Values []string } // Metadata that you assign to your AWS resources. Tags enable you to categorize @@ -4026,7 +4026,7 @@ type Target struct { // User-defined criteria that maps to Key. For example, if you specified // tag:ServerRole, you could specify value:WebServer to run a command on instances // that include EC2 tags of ServerRole,WebServer. - Values []*string + Values []string } // The combination of AWS Regions and accounts targeted by the current Automation @@ -4034,13 +4034,13 @@ type Target struct { type TargetLocation struct { // The AWS accounts targeted by the current Automation execution. - Accounts []*string + Accounts []string // The Automation execution role used by the currently running Automation. ExecutionRoleName *string // The AWS Regions targeted by the current Automation execution. - Regions []*string + Regions []string // The maximum number of AWS accounts and AWS regions allowed to run the Automation // concurrently diff --git a/service/ssm/validators.go b/service/ssm/validators.go index 84cec4d71b4..3f5a8086379 100644 --- a/service/ssm/validators.go +++ b/service/ssm/validators.go @@ -2599,13 +2599,13 @@ func validateAssociationExecutionFilter(v *types.AssociationExecutionFilter) err } } -func validateAssociationExecutionFilterList(v []*types.AssociationExecutionFilter) error { +func validateAssociationExecutionFilterList(v []types.AssociationExecutionFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssociationExecutionFilterList"} for i := range v { - if err := validateAssociationExecutionFilter(v[i]); err != nil { + if err := validateAssociationExecutionFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2634,13 +2634,13 @@ func validateAssociationExecutionTargetsFilter(v *types.AssociationExecutionTarg } } -func validateAssociationExecutionTargetsFilterList(v []*types.AssociationExecutionTargetsFilter) error { +func validateAssociationExecutionTargetsFilterList(v []types.AssociationExecutionTargetsFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssociationExecutionTargetsFilterList"} for i := range v { - if err := validateAssociationExecutionTargetsFilter(v[i]); err != nil { + if err := validateAssociationExecutionTargetsFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2669,13 +2669,13 @@ func validateAssociationFilter(v *types.AssociationFilter) error { } } -func validateAssociationFilterList(v []*types.AssociationFilter) error { +func validateAssociationFilterList(v []types.AssociationFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssociationFilterList"} for i := range v { - if err := validateAssociationFilter(v[i]); err != nil { + if err := validateAssociationFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2725,13 +2725,13 @@ func validateAutomationExecutionFilter(v *types.AutomationExecutionFilter) error } } -func validateAutomationExecutionFilterList(v []*types.AutomationExecutionFilter) error { +func validateAutomationExecutionFilterList(v []types.AutomationExecutionFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AutomationExecutionFilterList"} for i := range v { - if err := validateAutomationExecutionFilter(v[i]); err != nil { + if err := validateAutomationExecutionFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2760,13 +2760,13 @@ func validateCommandFilter(v *types.CommandFilter) error { } } -func validateCommandFilterList(v []*types.CommandFilter) error { +func validateCommandFilterList(v []types.CommandFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CommandFilterList"} for i := range v { - if err := validateCommandFilter(v[i]); err != nil { + if err := validateCommandFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2810,13 +2810,13 @@ func validateComplianceItemEntry(v *types.ComplianceItemEntry) error { } } -func validateComplianceItemEntryList(v []*types.ComplianceItemEntry) error { +func validateComplianceItemEntryList(v []types.ComplianceItemEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ComplianceItemEntryList"} for i := range v { - if err := validateComplianceItemEntry(v[i]); err != nil { + if err := validateComplianceItemEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2827,13 +2827,13 @@ func validateComplianceItemEntryList(v []*types.ComplianceItemEntry) error { } } -func validateCreateAssociationBatchRequestEntries(v []*types.CreateAssociationBatchRequestEntry) error { +func validateCreateAssociationBatchRequestEntries(v []types.CreateAssociationBatchRequestEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateAssociationBatchRequestEntries"} for i := range v { - if err := validateCreateAssociationBatchRequestEntry(v[i]); err != nil { + if err := validateCreateAssociationBatchRequestEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2877,13 +2877,13 @@ func validateDocumentFilter(v *types.DocumentFilter) error { } } -func validateDocumentFilterList(v []*types.DocumentFilter) error { +func validateDocumentFilterList(v []types.DocumentFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DocumentFilterList"} for i := range v { - if err := validateDocumentFilter(v[i]); err != nil { + if err := validateDocumentFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2909,13 +2909,13 @@ func validateDocumentRequires(v *types.DocumentRequires) error { } } -func validateDocumentRequiresList(v []*types.DocumentRequires) error { +func validateDocumentRequiresList(v []types.DocumentRequires) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DocumentRequiresList"} for i := range v { - if err := validateDocumentRequires(v[i]); err != nil { + if err := validateDocumentRequires(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2944,13 +2944,13 @@ func validateInstanceInformationFilter(v *types.InstanceInformationFilter) error } } -func validateInstanceInformationFilterList(v []*types.InstanceInformationFilter) error { +func validateInstanceInformationFilterList(v []types.InstanceInformationFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InstanceInformationFilterList"} for i := range v { - if err := validateInstanceInformationFilter(v[i]); err != nil { + if err := validateInstanceInformationFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2979,13 +2979,13 @@ func validateInstanceInformationStringFilter(v *types.InstanceInformationStringF } } -func validateInstanceInformationStringFilterList(v []*types.InstanceInformationStringFilter) error { +func validateInstanceInformationStringFilterList(v []types.InstanceInformationStringFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InstanceInformationStringFilterList"} for i := range v { - if err := validateInstanceInformationStringFilter(v[i]); err != nil { + if err := validateInstanceInformationStringFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3017,13 +3017,13 @@ func validateInstancePatchStateFilter(v *types.InstancePatchStateFilter) error { } } -func validateInstancePatchStateFilterList(v []*types.InstancePatchStateFilter) error { +func validateInstancePatchStateFilterList(v []types.InstancePatchStateFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InstancePatchStateFilterList"} for i := range v { - if err := validateInstancePatchStateFilter(v[i]); err != nil { + if err := validateInstancePatchStateFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3056,13 +3056,13 @@ func validateInventoryAggregator(v *types.InventoryAggregator) error { } } -func validateInventoryAggregatorList(v []*types.InventoryAggregator) error { +func validateInventoryAggregatorList(v []types.InventoryAggregator) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InventoryAggregatorList"} for i := range v { - if err := validateInventoryAggregator(v[i]); err != nil { + if err := validateInventoryAggregator(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3091,13 +3091,13 @@ func validateInventoryFilter(v *types.InventoryFilter) error { } } -func validateInventoryFilterList(v []*types.InventoryFilter) error { +func validateInventoryFilterList(v []types.InventoryFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InventoryFilterList"} for i := range v { - if err := validateInventoryFilter(v[i]); err != nil { + if err := validateInventoryFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3130,13 +3130,13 @@ func validateInventoryGroup(v *types.InventoryGroup) error { } } -func validateInventoryGroupList(v []*types.InventoryGroup) error { +func validateInventoryGroupList(v []types.InventoryGroup) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InventoryGroupList"} for i := range v { - if err := validateInventoryGroup(v[i]); err != nil { + if err := validateInventoryGroup(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3168,13 +3168,13 @@ func validateInventoryItem(v *types.InventoryItem) error { } } -func validateInventoryItemList(v []*types.InventoryItem) error { +func validateInventoryItemList(v []types.InventoryItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "InventoryItemList"} for i := range v { - if err := validateInventoryItem(v[i]); err != nil { + if err := validateInventoryItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3225,13 +3225,13 @@ func validateOpsAggregator(v *types.OpsAggregator) error { } } -func validateOpsAggregatorList(v []*types.OpsAggregator) error { +func validateOpsAggregatorList(v []types.OpsAggregator) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OpsAggregatorList"} for i := range v { - if err := validateOpsAggregator(v[i]); err != nil { + if err := validateOpsAggregator(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3260,13 +3260,13 @@ func validateOpsFilter(v *types.OpsFilter) error { } } -func validateOpsFilterList(v []*types.OpsFilter) error { +func validateOpsFilterList(v []types.OpsFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OpsFilterList"} for i := range v { - if err := validateOpsFilter(v[i]); err != nil { + if err := validateOpsFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3298,13 +3298,13 @@ func validateOpsItemFilter(v *types.OpsItemFilter) error { } } -func validateOpsItemFilters(v []*types.OpsItemFilter) error { +func validateOpsItemFilters(v []types.OpsItemFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OpsItemFilters"} for i := range v { - if err := validateOpsItemFilter(v[i]); err != nil { + if err := validateOpsItemFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3330,13 +3330,13 @@ func validateOpsResultAttribute(v *types.OpsResultAttribute) error { } } -func validateOpsResultAttributeList(v []*types.OpsResultAttribute) error { +func validateOpsResultAttributeList(v []types.OpsResultAttribute) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "OpsResultAttributeList"} for i := range v { - if err := validateOpsResultAttribute(v[i]); err != nil { + if err := validateOpsResultAttribute(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3365,13 +3365,13 @@ func validateParametersFilter(v *types.ParametersFilter) error { } } -func validateParametersFilterList(v []*types.ParametersFilter) error { +func validateParametersFilterList(v []types.ParametersFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ParametersFilterList"} for i := range v { - if err := validateParametersFilter(v[i]); err != nil { + if err := validateParametersFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3397,13 +3397,13 @@ func validateParameterStringFilter(v *types.ParameterStringFilter) error { } } -func validateParameterStringFilterList(v []*types.ParameterStringFilter) error { +func validateParameterStringFilterList(v []types.ParameterStringFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ParameterStringFilterList"} for i := range v { - if err := validateParameterStringFilter(v[i]); err != nil { + if err := validateParameterStringFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3451,13 +3451,13 @@ func validatePatchFilterGroup(v *types.PatchFilterGroup) error { } } -func validatePatchFilterList(v []*types.PatchFilter) error { +func validatePatchFilterList(v []types.PatchFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PatchFilterList"} for i := range v { - if err := validatePatchFilter(v[i]); err != nil { + if err := validatePatchFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3506,13 +3506,13 @@ func validatePatchRuleGroup(v *types.PatchRuleGroup) error { } } -func validatePatchRuleList(v []*types.PatchRule) error { +func validatePatchRuleList(v []types.PatchRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PatchRuleList"} for i := range v { - if err := validatePatchRule(v[i]); err != nil { + if err := validatePatchRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3544,13 +3544,13 @@ func validatePatchSource(v *types.PatchSource) error { } } -func validatePatchSourceList(v []*types.PatchSource) error { +func validatePatchSourceList(v []types.PatchSource) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PatchSourceList"} for i := range v { - if err := validatePatchSource(v[i]); err != nil { + if err := validatePatchSource(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3576,13 +3576,13 @@ func validateRelatedOpsItem(v *types.RelatedOpsItem) error { } } -func validateRelatedOpsItems(v []*types.RelatedOpsItem) error { +func validateRelatedOpsItems(v []types.RelatedOpsItem) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RelatedOpsItems"} for i := range v { - if err := validateRelatedOpsItem(v[i]); err != nil { + if err := validateRelatedOpsItem(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3667,13 +3667,13 @@ func validateResultAttribute(v *types.ResultAttribute) error { } } -func validateResultAttributeList(v []*types.ResultAttribute) error { +func validateResultAttributeList(v []types.ResultAttribute) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResultAttributeList"} for i := range v { - if err := validateResultAttribute(v[i]); err != nil { + if err := validateResultAttribute(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3702,13 +3702,13 @@ func validateSessionFilter(v *types.SessionFilter) error { } } -func validateSessionFilterList(v []*types.SessionFilter) error { +func validateSessionFilterList(v []types.SessionFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SessionFilterList"} for i := range v { - if err := validateSessionFilter(v[i]); err != nil { + if err := validateSessionFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3737,13 +3737,13 @@ func validateStepExecutionFilter(v *types.StepExecutionFilter) error { } } -func validateStepExecutionFilterList(v []*types.StepExecutionFilter) error { +func validateStepExecutionFilterList(v []types.StepExecutionFilter) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "StepExecutionFilterList"} for i := range v { - if err := validateStepExecutionFilter(v[i]); err != nil { + if err := validateStepExecutionFilter(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3772,13 +3772,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -3931,12 +3931,6 @@ func validateOpCreateMaintenanceWindowInput(v *CreateMaintenanceWindowInput) err return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateMaintenanceWindowInput"} - if v.AllowUnassociatedTargets == nil { - invalidParams.Add(smithy.NewErrParamRequired("AllowUnassociatedTargets")) - } - if v.Duration == nil { - invalidParams.Add(smithy.NewErrParamRequired("Duration")) - } if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } @@ -3948,9 +3942,6 @@ func validateOpCreateMaintenanceWindowInput(v *CreateMaintenanceWindowInput) err invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) } } - if v.Cutoff == nil { - invalidParams.Add(smithy.NewErrParamRequired("Cutoff")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/sso/api_op_ListAccountRoles.go b/service/sso/api_op_ListAccountRoles.go index c676f0d11f6..c0f04b86407 100644 --- a/service/sso/api_op_ListAccountRoles.go +++ b/service/sso/api_op_ListAccountRoles.go @@ -56,7 +56,7 @@ type ListAccountRolesOutput struct { // A paginated response with the list of roles and the next token if more results // are available. - RoleList []*types.RoleInfo + RoleList []types.RoleInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sso/api_op_ListAccounts.go b/service/sso/api_op_ListAccounts.go index a630d9f8e93..354a683220a 100644 --- a/service/sso/api_op_ListAccounts.go +++ b/service/sso/api_op_ListAccounts.go @@ -51,7 +51,7 @@ type ListAccountsOutput struct { // A paginated response with the list of account information and the next token if // more results are available. - AccountList []*types.AccountInfo + AccountList []types.AccountInfo // The page token client that is used to retrieve the list of accounts. NextToken *string diff --git a/service/sso/deserializers.go b/service/sso/deserializers.go index 0284abdb53f..eafefecf675 100644 --- a/service/sso/deserializers.go +++ b/service/sso/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -321,7 +322,7 @@ func awsRestjson1_deserializeOpDocumentListAccountRolesOutput(v **ListAccountRol if !ok { return fmt.Errorf("expected NextTokenType to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "roleList": @@ -491,7 +492,7 @@ func awsRestjson1_deserializeOpDocumentListAccountsOutput(v **ListAccountsOutput if !ok { return fmt.Errorf("expected NextTokenType to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -764,7 +765,7 @@ func awsRestjson1_deserializeDocumentAccountInfo(v **types.AccountInfo, value in if !ok { return fmt.Errorf("expected AccountIdType to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "accountName": @@ -773,7 +774,7 @@ func awsRestjson1_deserializeDocumentAccountInfo(v **types.AccountInfo, value in if !ok { return fmt.Errorf("expected AccountNameType to be of type string, got %T instead", value) } - sv.AccountName = &jtv + sv.AccountName = ptr.String(jtv) } case "emailAddress": @@ -782,7 +783,7 @@ func awsRestjson1_deserializeDocumentAccountInfo(v **types.AccountInfo, value in if !ok { return fmt.Errorf("expected EmailAddressType to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } default: @@ -794,7 +795,7 @@ func awsRestjson1_deserializeDocumentAccountInfo(v **types.AccountInfo, value in return nil } -func awsRestjson1_deserializeDocumentAccountListType(v *[]*types.AccountInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentAccountListType(v *[]types.AccountInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -807,18 +808,20 @@ func awsRestjson1_deserializeDocumentAccountListType(v *[]*types.AccountInfo, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AccountInfo + var cv []types.AccountInfo if *v == nil { - cv = []*types.AccountInfo{} + cv = []types.AccountInfo{} } else { cv = *v } for _, value := range shape { - var col *types.AccountInfo - if err := awsRestjson1_deserializeDocumentAccountInfo(&col, value); err != nil { + var col types.AccountInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentAccountInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -854,7 +857,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -894,7 +897,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -934,7 +937,7 @@ func awsRestjson1_deserializeDocumentRoleCredentials(v **types.RoleCredentials, if !ok { return fmt.Errorf("expected AccessKeyType to be of type string, got %T instead", value) } - sv.AccessKeyId = &jtv + sv.AccessKeyId = ptr.String(jtv) } case "expiration": @@ -947,7 +950,7 @@ func awsRestjson1_deserializeDocumentRoleCredentials(v **types.RoleCredentials, if err != nil { return err } - sv.Expiration = &i64 + sv.Expiration = i64 } case "secretAccessKey": @@ -956,7 +959,7 @@ func awsRestjson1_deserializeDocumentRoleCredentials(v **types.RoleCredentials, if !ok { return fmt.Errorf("expected SecretAccessKeyType to be of type string, got %T instead", value) } - sv.SecretAccessKey = &jtv + sv.SecretAccessKey = ptr.String(jtv) } case "sessionToken": @@ -965,7 +968,7 @@ func awsRestjson1_deserializeDocumentRoleCredentials(v **types.RoleCredentials, if !ok { return fmt.Errorf("expected SessionTokenType to be of type string, got %T instead", value) } - sv.SessionToken = &jtv + sv.SessionToken = ptr.String(jtv) } default: @@ -1005,7 +1008,7 @@ func awsRestjson1_deserializeDocumentRoleInfo(v **types.RoleInfo, value interfac if !ok { return fmt.Errorf("expected AccountIdType to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "roleName": @@ -1014,7 +1017,7 @@ func awsRestjson1_deserializeDocumentRoleInfo(v **types.RoleInfo, value interfac if !ok { return fmt.Errorf("expected RoleNameType to be of type string, got %T instead", value) } - sv.RoleName = &jtv + sv.RoleName = ptr.String(jtv) } default: @@ -1026,7 +1029,7 @@ func awsRestjson1_deserializeDocumentRoleInfo(v **types.RoleInfo, value interfac return nil } -func awsRestjson1_deserializeDocumentRoleListType(v *[]*types.RoleInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentRoleListType(v *[]types.RoleInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1039,18 +1042,20 @@ func awsRestjson1_deserializeDocumentRoleListType(v *[]*types.RoleInfo, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RoleInfo + var cv []types.RoleInfo if *v == nil { - cv = []*types.RoleInfo{} + cv = []types.RoleInfo{} } else { cv = *v } for _, value := range shape { - var col *types.RoleInfo - if err := awsRestjson1_deserializeDocumentRoleInfo(&col, value); err != nil { + var col types.RoleInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentRoleInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1086,7 +1091,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1126,7 +1131,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/sso/go.mod b/service/sso/go.mod index e1c3bd4ba21..e4b4a053ffb 100644 --- a/service/sso/go.mod +++ b/service/sso/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/sso go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/sso/serializers.go b/service/sso/serializers.go index 2df019a54af..ac491d79bc7 100644 --- a/service/sso/serializers.go +++ b/service/sso/serializers.go @@ -62,11 +62,9 @@ func awsRestjson1_serializeOpHttpBindingsGetRoleCredentialsInput(v *GetRoleCrede return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccessToken != nil { + if v.AccessToken != nil && len(*v.AccessToken) > 0 { locationName := "X-Amz-Sso_bearer_token" - if len(*v.AccessToken) > 0 { - encoder.SetHeader(locationName).String(*v.AccessToken) - } + encoder.SetHeader(locationName).String(*v.AccessToken) } if v.AccountId != nil { @@ -131,11 +129,9 @@ func awsRestjson1_serializeOpHttpBindingsListAccountRolesInput(v *ListAccountRol return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccessToken != nil { + if v.AccessToken != nil && len(*v.AccessToken) > 0 { locationName := "X-Amz-Sso_bearer_token" - if len(*v.AccessToken) > 0 { - encoder.SetHeader(locationName).String(*v.AccessToken) - } + encoder.SetHeader(locationName).String(*v.AccessToken) } if v.AccountId != nil { @@ -204,11 +200,9 @@ func awsRestjson1_serializeOpHttpBindingsListAccountsInput(v *ListAccountsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccessToken != nil { + if v.AccessToken != nil && len(*v.AccessToken) > 0 { locationName := "X-Amz-Sso_bearer_token" - if len(*v.AccessToken) > 0 { - encoder.SetHeader(locationName).String(*v.AccessToken) - } + encoder.SetHeader(locationName).String(*v.AccessToken) } if v.MaxResults != nil { @@ -273,11 +267,9 @@ func awsRestjson1_serializeOpHttpBindingsLogoutInput(v *LogoutInput, encoder *ht return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AccessToken != nil { + if v.AccessToken != nil && len(*v.AccessToken) > 0 { locationName := "X-Amz-Sso_bearer_token" - if len(*v.AccessToken) > 0 { - encoder.SetHeader(locationName).String(*v.AccessToken) - } + encoder.SetHeader(locationName).String(*v.AccessToken) } return nil diff --git a/service/sso/types/types.go b/service/sso/types/types.go index 80f072160e6..8d43acf423d 100644 --- a/service/sso/types/types.go +++ b/service/sso/types/types.go @@ -26,7 +26,7 @@ type RoleCredentials struct { AccessKeyId *string // The date on which temporary security credentials expire. - Expiration *int64 + Expiration int64 // The key that is used to sign the request. For more information, see Using // Temporary Security Credentials to Request Access to AWS Resources diff --git a/service/ssoadmin/api_op_CreatePermissionSet.go b/service/ssoadmin/api_op_CreatePermissionSet.go index 9f4700c2bea..6e3068e01fa 100644 --- a/service/ssoadmin/api_op_CreatePermissionSet.go +++ b/service/ssoadmin/api_op_CreatePermissionSet.go @@ -54,7 +54,7 @@ type CreatePermissionSetInput struct { SessionDuration *string // The tags to attach to the new PermissionSet. - Tags []*types.Tag + Tags []types.Tag } type CreatePermissionSetOutput struct { diff --git a/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go b/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go index 0a133c66897..870cf04770d 100644 --- a/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go +++ b/service/ssoadmin/api_op_ListAccountAssignmentCreationStatus.go @@ -51,7 +51,7 @@ type ListAccountAssignmentCreationStatusInput struct { type ListAccountAssignmentCreationStatusOutput struct { // The status object for the account assignment creation operation. - AccountAssignmentsCreationStatus []*types.AccountAssignmentOperationStatusMetadata + AccountAssignmentsCreationStatus []types.AccountAssignmentOperationStatusMetadata // The pagination token for the list API. Initially the value is null. Use the // output of previous API calls to make subsequent calls. diff --git a/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go b/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go index 11ea3c19be0..22e8e98af90 100644 --- a/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go +++ b/service/ssoadmin/api_op_ListAccountAssignmentDeletionStatus.go @@ -51,7 +51,7 @@ type ListAccountAssignmentDeletionStatusInput struct { type ListAccountAssignmentDeletionStatusOutput struct { // The status object for the account assignment deletion operation. - AccountAssignmentsDeletionStatus []*types.AccountAssignmentOperationStatusMetadata + AccountAssignmentsDeletionStatus []types.AccountAssignmentOperationStatusMetadata // The pagination token for the list API. Initially the value is null. Use the // output of previous API calls to make subsequent calls. diff --git a/service/ssoadmin/api_op_ListAccountAssignments.go b/service/ssoadmin/api_op_ListAccountAssignments.go index 8309f229552..b92da8c6ba3 100644 --- a/service/ssoadmin/api_op_ListAccountAssignments.go +++ b/service/ssoadmin/api_op_ListAccountAssignments.go @@ -58,7 +58,7 @@ type ListAccountAssignmentsInput struct { type ListAccountAssignmentsOutput struct { // The list of assignments that match the input AWS account and permission set. - AccountAssignments []*types.AccountAssignment + AccountAssignments []types.AccountAssignment // The pagination token for the list API. Initially the value is null. Use the // output of previous API calls to make subsequent calls. diff --git a/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go b/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go index a6fbe2d39e9..729e596336d 100644 --- a/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go +++ b/service/ssoadmin/api_op_ListAccountsForProvisionedPermissionSet.go @@ -56,7 +56,7 @@ type ListAccountsForProvisionedPermissionSetInput struct { type ListAccountsForProvisionedPermissionSetOutput struct { // The list of AWS AccountIds. - AccountIds []*string + AccountIds []string // The pagination token for the list API. Initially the value is null. Use the // output of previous API calls to make subsequent calls. diff --git a/service/ssoadmin/api_op_ListInstances.go b/service/ssoadmin/api_op_ListInstances.go index a58454abbb3..1b17585ca36 100644 --- a/service/ssoadmin/api_op_ListInstances.go +++ b/service/ssoadmin/api_op_ListInstances.go @@ -40,7 +40,7 @@ type ListInstancesInput struct { type ListInstancesOutput struct { // Lists the SSO instances that the caller has access to. - Instances []*types.InstanceMetadata + Instances []types.InstanceMetadata // The pagination token for the list API. Initially the value is null. Use the // output of previous API calls to make subsequent calls. diff --git a/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go b/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go index a307716f878..593ef4a3d2e 100644 --- a/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go +++ b/service/ssoadmin/api_op_ListManagedPoliciesInPermissionSet.go @@ -52,7 +52,7 @@ type ListManagedPoliciesInPermissionSetInput struct { type ListManagedPoliciesInPermissionSetOutput struct { // The array of the AttachedManagedPolicy data type object. - AttachedManagedPolicies []*types.AttachedManagedPolicy + AttachedManagedPolicies []types.AttachedManagedPolicy // The pagination token for the list API. Initially the value is null. Use the // output of previous API calls to make subsequent calls. diff --git a/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go b/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go index ffc4fa336fd..a6281cb7f6c 100644 --- a/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go +++ b/service/ssoadmin/api_op_ListPermissionSetProvisioningStatus.go @@ -55,7 +55,7 @@ type ListPermissionSetProvisioningStatusOutput struct { NextToken *string // The status object for the permission set provisioning operation. - PermissionSetsProvisioningStatus []*types.PermissionSetProvisioningStatusMetadata + PermissionSetsProvisioningStatus []types.PermissionSetProvisioningStatusMetadata // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssoadmin/api_op_ListPermissionSets.go b/service/ssoadmin/api_op_ListPermissionSets.go index 8938355ab85..2df92a4a793 100644 --- a/service/ssoadmin/api_op_ListPermissionSets.go +++ b/service/ssoadmin/api_op_ListPermissionSets.go @@ -50,7 +50,7 @@ type ListPermissionSetsOutput struct { NextToken *string // Defines the level of access on an AWS account. - PermissionSets []*string + PermissionSets []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go b/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go index e23ea6f1621..8469f83888f 100644 --- a/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go +++ b/service/ssoadmin/api_op_ListPermissionSetsProvisionedToAccount.go @@ -59,7 +59,7 @@ type ListPermissionSetsProvisionedToAccountOutput struct { NextToken *string // Defines the level of access that an AWS account has. - PermissionSets []*string + PermissionSets []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssoadmin/api_op_ListTagsForResource.go b/service/ssoadmin/api_op_ListTagsForResource.go index 7377b64c1c6..0c74f0d2b54 100644 --- a/service/ssoadmin/api_op_ListTagsForResource.go +++ b/service/ssoadmin/api_op_ListTagsForResource.go @@ -53,7 +53,7 @@ type ListTagsForResourceOutput struct { NextToken *string // A set of key-value pairs that are used to manage the resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssoadmin/api_op_TagResource.go b/service/ssoadmin/api_op_TagResource.go index af14555e052..e61c5a005b4 100644 --- a/service/ssoadmin/api_op_TagResource.go +++ b/service/ssoadmin/api_op_TagResource.go @@ -44,7 +44,7 @@ type TagResourceInput struct { // A set of key-value pairs that are used to manage the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/ssoadmin/api_op_UntagResource.go b/service/ssoadmin/api_op_UntagResource.go index f1005afb15f..aaf92b66f8a 100644 --- a/service/ssoadmin/api_op_UntagResource.go +++ b/service/ssoadmin/api_op_UntagResource.go @@ -43,7 +43,7 @@ type UntagResourceInput struct { // The keys of tags that are attached to the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/ssoadmin/deserializers.go b/service/ssoadmin/deserializers.go index ef91fed72b0..cd3ac75e3b5 100644 --- a/service/ssoadmin/deserializers.go +++ b/service/ssoadmin/deserializers.go @@ -3661,7 +3661,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected AccessDeniedExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3701,7 +3701,7 @@ func awsAwsjson11_deserializeDocumentAccountAssignment(v **types.AccountAssignme if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "PermissionSetArn": @@ -3710,7 +3710,7 @@ func awsAwsjson11_deserializeDocumentAccountAssignment(v **types.AccountAssignme if !ok { return fmt.Errorf("expected PermissionSetArn to be of type string, got %T instead", value) } - sv.PermissionSetArn = &jtv + sv.PermissionSetArn = ptr.String(jtv) } case "PrincipalId": @@ -3719,7 +3719,7 @@ func awsAwsjson11_deserializeDocumentAccountAssignment(v **types.AccountAssignme if !ok { return fmt.Errorf("expected PrincipalId to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } case "PrincipalType": @@ -3740,7 +3740,7 @@ func awsAwsjson11_deserializeDocumentAccountAssignment(v **types.AccountAssignme return nil } -func awsAwsjson11_deserializeDocumentAccountAssignmentList(v *[]*types.AccountAssignment, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccountAssignmentList(v *[]types.AccountAssignment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3753,18 +3753,20 @@ func awsAwsjson11_deserializeDocumentAccountAssignmentList(v *[]*types.AccountAs return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AccountAssignment + var cv []types.AccountAssignment if *v == nil { - cv = []*types.AccountAssignment{} + cv = []types.AccountAssignment{} } else { cv = *v } for _, value := range shape { - var col *types.AccountAssignment - if err := awsAwsjson11_deserializeDocumentAccountAssignment(&col, value); err != nil { + var col types.AccountAssignment + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAccountAssignment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3813,7 +3815,7 @@ func awsAwsjson11_deserializeDocumentAccountAssignmentOperationStatus(v **types. if !ok { return fmt.Errorf("expected Reason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "PermissionSetArn": @@ -3822,7 +3824,7 @@ func awsAwsjson11_deserializeDocumentAccountAssignmentOperationStatus(v **types. if !ok { return fmt.Errorf("expected PermissionSetArn to be of type string, got %T instead", value) } - sv.PermissionSetArn = &jtv + sv.PermissionSetArn = ptr.String(jtv) } case "PrincipalId": @@ -3831,7 +3833,7 @@ func awsAwsjson11_deserializeDocumentAccountAssignmentOperationStatus(v **types. if !ok { return fmt.Errorf("expected PrincipalId to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } case "PrincipalType": @@ -3849,7 +3851,7 @@ func awsAwsjson11_deserializeDocumentAccountAssignmentOperationStatus(v **types. if !ok { return fmt.Errorf("expected UUId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "Status": @@ -3867,7 +3869,7 @@ func awsAwsjson11_deserializeDocumentAccountAssignmentOperationStatus(v **types. if !ok { return fmt.Errorf("expected TargetId to be of type string, got %T instead", value) } - sv.TargetId = &jtv + sv.TargetId = ptr.String(jtv) } case "TargetType": @@ -3888,7 +3890,7 @@ func awsAwsjson11_deserializeDocumentAccountAssignmentOperationStatus(v **types. return nil } -func awsAwsjson11_deserializeDocumentAccountAssignmentOperationStatusList(v *[]*types.AccountAssignmentOperationStatusMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccountAssignmentOperationStatusList(v *[]types.AccountAssignmentOperationStatusMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3901,18 +3903,20 @@ func awsAwsjson11_deserializeDocumentAccountAssignmentOperationStatusList(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AccountAssignmentOperationStatusMetadata + var cv []types.AccountAssignmentOperationStatusMetadata if *v == nil { - cv = []*types.AccountAssignmentOperationStatusMetadata{} + cv = []types.AccountAssignmentOperationStatusMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.AccountAssignmentOperationStatusMetadata - if err := awsAwsjson11_deserializeDocumentAccountAssignmentOperationStatusMetadata(&col, value); err != nil { + var col types.AccountAssignmentOperationStatusMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAccountAssignmentOperationStatusMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3961,7 +3965,7 @@ func awsAwsjson11_deserializeDocumentAccountAssignmentOperationStatusMetadata(v if !ok { return fmt.Errorf("expected UUId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "Status": @@ -3982,7 +3986,7 @@ func awsAwsjson11_deserializeDocumentAccountAssignmentOperationStatusMetadata(v return nil } -func awsAwsjson11_deserializeDocumentAccountList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccountList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3995,21 +3999,21 @@ func awsAwsjson11_deserializeDocumentAccountList(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4046,7 +4050,7 @@ func awsAwsjson11_deserializeDocumentAttachedManagedPolicy(v **types.AttachedMan if !ok { return fmt.Errorf("expected ManagedPolicyArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Name": @@ -4055,7 +4059,7 @@ func awsAwsjson11_deserializeDocumentAttachedManagedPolicy(v **types.AttachedMan if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -4067,7 +4071,7 @@ func awsAwsjson11_deserializeDocumentAttachedManagedPolicy(v **types.AttachedMan return nil } -func awsAwsjson11_deserializeDocumentAttachedManagedPolicyList(v *[]*types.AttachedManagedPolicy, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttachedManagedPolicyList(v *[]types.AttachedManagedPolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4080,18 +4084,20 @@ func awsAwsjson11_deserializeDocumentAttachedManagedPolicyList(v *[]*types.Attac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttachedManagedPolicy + var cv []types.AttachedManagedPolicy if *v == nil { - cv = []*types.AttachedManagedPolicy{} + cv = []types.AttachedManagedPolicy{} } else { cv = *v } for _, value := range shape { - var col *types.AttachedManagedPolicy - if err := awsAwsjson11_deserializeDocumentAttachedManagedPolicy(&col, value); err != nil { + var col types.AttachedManagedPolicy + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttachedManagedPolicy(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4127,7 +4133,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected ConflictExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4139,7 +4145,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti return nil } -func awsAwsjson11_deserializeDocumentInstanceList(v *[]*types.InstanceMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentInstanceList(v *[]types.InstanceMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4152,18 +4158,20 @@ func awsAwsjson11_deserializeDocumentInstanceList(v *[]*types.InstanceMetadata, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceMetadata + var cv []types.InstanceMetadata if *v == nil { - cv = []*types.InstanceMetadata{} + cv = []types.InstanceMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceMetadata - if err := awsAwsjson11_deserializeDocumentInstanceMetadata(&col, value); err != nil { + var col types.InstanceMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInstanceMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4199,7 +4207,7 @@ func awsAwsjson11_deserializeDocumentInstanceMetadata(v **types.InstanceMetadata if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.IdentityStoreId = &jtv + sv.IdentityStoreId = ptr.String(jtv) } case "InstanceArn": @@ -4208,7 +4216,7 @@ func awsAwsjson11_deserializeDocumentInstanceMetadata(v **types.InstanceMetadata if !ok { return fmt.Errorf("expected InstanceArn to be of type string, got %T instead", value) } - sv.InstanceArn = &jtv + sv.InstanceArn = ptr.String(jtv) } default: @@ -4248,7 +4256,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected InternalFailureMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4301,7 +4309,7 @@ func awsAwsjson11_deserializeDocumentPermissionSet(v **types.PermissionSet, valu if !ok { return fmt.Errorf("expected PermissionSetDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -4310,7 +4318,7 @@ func awsAwsjson11_deserializeDocumentPermissionSet(v **types.PermissionSet, valu if !ok { return fmt.Errorf("expected PermissionSetName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PermissionSetArn": @@ -4319,7 +4327,7 @@ func awsAwsjson11_deserializeDocumentPermissionSet(v **types.PermissionSet, valu if !ok { return fmt.Errorf("expected PermissionSetArn to be of type string, got %T instead", value) } - sv.PermissionSetArn = &jtv + sv.PermissionSetArn = ptr.String(jtv) } case "RelayState": @@ -4328,7 +4336,7 @@ func awsAwsjson11_deserializeDocumentPermissionSet(v **types.PermissionSet, valu if !ok { return fmt.Errorf("expected RelayState to be of type string, got %T instead", value) } - sv.RelayState = &jtv + sv.RelayState = ptr.String(jtv) } case "SessionDuration": @@ -4337,7 +4345,7 @@ func awsAwsjson11_deserializeDocumentPermissionSet(v **types.PermissionSet, valu if !ok { return fmt.Errorf("expected Duration to be of type string, got %T instead", value) } - sv.SessionDuration = &jtv + sv.SessionDuration = ptr.String(jtv) } default: @@ -4349,7 +4357,7 @@ func awsAwsjson11_deserializeDocumentPermissionSet(v **types.PermissionSet, valu return nil } -func awsAwsjson11_deserializeDocumentPermissionSetList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentPermissionSetList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4362,21 +4370,21 @@ func awsAwsjson11_deserializeDocumentPermissionSetList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected PermissionSetArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4413,7 +4421,7 @@ func awsAwsjson11_deserializeDocumentPermissionSetProvisioningStatus(v **types.P if !ok { return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "CreatedDate": @@ -4435,7 +4443,7 @@ func awsAwsjson11_deserializeDocumentPermissionSetProvisioningStatus(v **types.P if !ok { return fmt.Errorf("expected Reason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "PermissionSetArn": @@ -4444,7 +4452,7 @@ func awsAwsjson11_deserializeDocumentPermissionSetProvisioningStatus(v **types.P if !ok { return fmt.Errorf("expected PermissionSetArn to be of type string, got %T instead", value) } - sv.PermissionSetArn = &jtv + sv.PermissionSetArn = ptr.String(jtv) } case "RequestId": @@ -4453,7 +4461,7 @@ func awsAwsjson11_deserializeDocumentPermissionSetProvisioningStatus(v **types.P if !ok { return fmt.Errorf("expected UUId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "Status": @@ -4474,7 +4482,7 @@ func awsAwsjson11_deserializeDocumentPermissionSetProvisioningStatus(v **types.P return nil } -func awsAwsjson11_deserializeDocumentPermissionSetProvisioningStatusList(v *[]*types.PermissionSetProvisioningStatusMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentPermissionSetProvisioningStatusList(v *[]types.PermissionSetProvisioningStatusMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4487,18 +4495,20 @@ func awsAwsjson11_deserializeDocumentPermissionSetProvisioningStatusList(v *[]*t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PermissionSetProvisioningStatusMetadata + var cv []types.PermissionSetProvisioningStatusMetadata if *v == nil { - cv = []*types.PermissionSetProvisioningStatusMetadata{} + cv = []types.PermissionSetProvisioningStatusMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.PermissionSetProvisioningStatusMetadata - if err := awsAwsjson11_deserializeDocumentPermissionSetProvisioningStatusMetadata(&col, value); err != nil { + var col types.PermissionSetProvisioningStatusMetadata + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPermissionSetProvisioningStatusMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4547,7 +4557,7 @@ func awsAwsjson11_deserializeDocumentPermissionSetProvisioningStatusMetadata(v * if !ok { return fmt.Errorf("expected UUId to be of type string, got %T instead", value) } - sv.RequestId = &jtv + sv.RequestId = ptr.String(jtv) } case "Status": @@ -4596,7 +4606,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ResourceNotFoundMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4636,7 +4646,7 @@ func awsAwsjson11_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected ServiceQuotaExceededMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4676,7 +4686,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -4685,7 +4695,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4697,7 +4707,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4710,18 +4720,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4757,7 +4769,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ThrottlingExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4797,7 +4809,7 @@ func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ValidationExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5213,7 +5225,7 @@ func awsAwsjson11_deserializeOpDocumentGetInlinePolicyForPermissionSetOutput(v * if !ok { return fmt.Errorf("expected PermissionSetPolicyDocument to be of type string, got %T instead", value) } - sv.InlinePolicy = &jtv + sv.InlinePolicy = ptr.String(jtv) } default: @@ -5258,7 +5270,7 @@ func awsAwsjson11_deserializeOpDocumentListAccountAssignmentCreationStatusOutput if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5303,7 +5315,7 @@ func awsAwsjson11_deserializeOpDocumentListAccountAssignmentDeletionStatusOutput if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5348,7 +5360,7 @@ func awsAwsjson11_deserializeOpDocumentListAccountAssignmentsOutput(v **ListAcco if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5393,7 +5405,7 @@ func awsAwsjson11_deserializeOpDocumentListAccountsForProvisionedPermissionSetOu if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5438,7 +5450,7 @@ func awsAwsjson11_deserializeOpDocumentListInstancesOutput(v **ListInstancesOutp if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5483,7 +5495,7 @@ func awsAwsjson11_deserializeOpDocumentListManagedPoliciesInPermissionSetOutput( if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -5523,7 +5535,7 @@ func awsAwsjson11_deserializeOpDocumentListPermissionSetProvisioningStatusOutput if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PermissionSetsProvisioningStatus": @@ -5568,7 +5580,7 @@ func awsAwsjson11_deserializeOpDocumentListPermissionSetsOutput(v **ListPermissi if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PermissionSets": @@ -5613,7 +5625,7 @@ func awsAwsjson11_deserializeOpDocumentListPermissionSetsProvisionedToAccountOut if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "PermissionSets": @@ -5658,7 +5670,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": diff --git a/service/ssoadmin/go.mod b/service/ssoadmin/go.mod index 9f49506186c..ccf7262cf3d 100644 --- a/service/ssoadmin/go.mod +++ b/service/ssoadmin/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/ssoadmin go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/ssoadmin/serializers.go b/service/ssoadmin/serializers.go index b8de25ba009..df2aeb5539f 100644 --- a/service/ssoadmin/serializers.go +++ b/service/ssoadmin/serializers.go @@ -1284,32 +1284,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/ssooidc/api_op_CreateToken.go b/service/ssooidc/api_op_CreateToken.go index e44b948c83e..dcff675cd5a 100644 --- a/service/ssooidc/api_op_CreateToken.go +++ b/service/ssooidc/api_op_CreateToken.go @@ -40,13 +40,13 @@ type CreateTokenInput struct { RefreshToken *string - Scope []*string + Scope []string } type CreateTokenOutput struct { AccessToken *string - ExpiresIn *int32 + ExpiresIn int32 IdToken *string diff --git a/service/ssooidc/api_op_RegisterClient.go b/service/ssooidc/api_op_RegisterClient.go index a5d9da71719..8554603a1f2 100644 --- a/service/ssooidc/api_op_RegisterClient.go +++ b/service/ssooidc/api_op_RegisterClient.go @@ -30,7 +30,7 @@ type RegisterClientInput struct { ClientType *string - Scopes []*string + Scopes []string } type RegisterClientOutput struct { @@ -38,11 +38,11 @@ type RegisterClientOutput struct { ClientId *string - ClientIdIssuedAt *int64 + ClientIdIssuedAt int64 ClientSecret *string - ClientSecretExpiresAt *int64 + ClientSecretExpiresAt int64 TokenEndpoint *string diff --git a/service/ssooidc/api_op_StartDeviceAuthorization.go b/service/ssooidc/api_op_StartDeviceAuthorization.go index 776ebe111c2..1023ed39cb4 100644 --- a/service/ssooidc/api_op_StartDeviceAuthorization.go +++ b/service/ssooidc/api_op_StartDeviceAuthorization.go @@ -36,9 +36,9 @@ type StartDeviceAuthorizationInput struct { type StartDeviceAuthorizationOutput struct { DeviceCode *string - ExpiresIn *int32 + ExpiresIn int32 - Interval *int32 + Interval int32 UserCode *string diff --git a/service/ssooidc/deserializers.go b/service/ssooidc/deserializers.go index dbc3a7ada9c..227a262937e 100644 --- a/service/ssooidc/deserializers.go +++ b/service/ssooidc/deserializers.go @@ -187,7 +187,7 @@ func awsRestjson1_deserializeOpDocumentCreateTokenOutput(v **CreateTokenOutput, if !ok { return fmt.Errorf("expected AccessToken to be of type string, got %T instead", value) } - sv.AccessToken = &jtv + sv.AccessToken = ptr.String(jtv) } case "expiresIn": @@ -200,7 +200,7 @@ func awsRestjson1_deserializeOpDocumentCreateTokenOutput(v **CreateTokenOutput, if err != nil { return err } - sv.ExpiresIn = ptr.Int32(int32(i64)) + sv.ExpiresIn = int32(i64) } case "idToken": @@ -209,7 +209,7 @@ func awsRestjson1_deserializeOpDocumentCreateTokenOutput(v **CreateTokenOutput, if !ok { return fmt.Errorf("expected IdToken to be of type string, got %T instead", value) } - sv.IdToken = &jtv + sv.IdToken = ptr.String(jtv) } case "refreshToken": @@ -218,7 +218,7 @@ func awsRestjson1_deserializeOpDocumentCreateTokenOutput(v **CreateTokenOutput, if !ok { return fmt.Errorf("expected RefreshToken to be of type string, got %T instead", value) } - sv.RefreshToken = &jtv + sv.RefreshToken = ptr.String(jtv) } case "tokenType": @@ -227,7 +227,7 @@ func awsRestjson1_deserializeOpDocumentCreateTokenOutput(v **CreateTokenOutput, if !ok { return fmt.Errorf("expected TokenType to be of type string, got %T instead", value) } - sv.TokenType = &jtv + sv.TokenType = ptr.String(jtv) } default: @@ -387,7 +387,7 @@ func awsRestjson1_deserializeOpDocumentRegisterClientOutput(v **RegisterClientOu if !ok { return fmt.Errorf("expected URI to be of type string, got %T instead", value) } - sv.AuthorizationEndpoint = &jtv + sv.AuthorizationEndpoint = ptr.String(jtv) } case "clientId": @@ -396,7 +396,7 @@ func awsRestjson1_deserializeOpDocumentRegisterClientOutput(v **RegisterClientOu if !ok { return fmt.Errorf("expected ClientId to be of type string, got %T instead", value) } - sv.ClientId = &jtv + sv.ClientId = ptr.String(jtv) } case "clientIdIssuedAt": @@ -409,7 +409,7 @@ func awsRestjson1_deserializeOpDocumentRegisterClientOutput(v **RegisterClientOu if err != nil { return err } - sv.ClientIdIssuedAt = &i64 + sv.ClientIdIssuedAt = i64 } case "clientSecret": @@ -418,7 +418,7 @@ func awsRestjson1_deserializeOpDocumentRegisterClientOutput(v **RegisterClientOu if !ok { return fmt.Errorf("expected ClientSecret to be of type string, got %T instead", value) } - sv.ClientSecret = &jtv + sv.ClientSecret = ptr.String(jtv) } case "clientSecretExpiresAt": @@ -431,7 +431,7 @@ func awsRestjson1_deserializeOpDocumentRegisterClientOutput(v **RegisterClientOu if err != nil { return err } - sv.ClientSecretExpiresAt = &i64 + sv.ClientSecretExpiresAt = i64 } case "tokenEndpoint": @@ -440,7 +440,7 @@ func awsRestjson1_deserializeOpDocumentRegisterClientOutput(v **RegisterClientOu if !ok { return fmt.Errorf("expected URI to be of type string, got %T instead", value) } - sv.TokenEndpoint = &jtv + sv.TokenEndpoint = ptr.String(jtv) } default: @@ -603,7 +603,7 @@ func awsRestjson1_deserializeOpDocumentStartDeviceAuthorizationOutput(v **StartD if !ok { return fmt.Errorf("expected DeviceCode to be of type string, got %T instead", value) } - sv.DeviceCode = &jtv + sv.DeviceCode = ptr.String(jtv) } case "expiresIn": @@ -616,7 +616,7 @@ func awsRestjson1_deserializeOpDocumentStartDeviceAuthorizationOutput(v **StartD if err != nil { return err } - sv.ExpiresIn = ptr.Int32(int32(i64)) + sv.ExpiresIn = int32(i64) } case "interval": @@ -629,7 +629,7 @@ func awsRestjson1_deserializeOpDocumentStartDeviceAuthorizationOutput(v **StartD if err != nil { return err } - sv.Interval = ptr.Int32(int32(i64)) + sv.Interval = int32(i64) } case "userCode": @@ -638,7 +638,7 @@ func awsRestjson1_deserializeOpDocumentStartDeviceAuthorizationOutput(v **StartD if !ok { return fmt.Errorf("expected UserCode to be of type string, got %T instead", value) } - sv.UserCode = &jtv + sv.UserCode = ptr.String(jtv) } case "verificationUri": @@ -647,7 +647,7 @@ func awsRestjson1_deserializeOpDocumentStartDeviceAuthorizationOutput(v **StartD if !ok { return fmt.Errorf("expected URI to be of type string, got %T instead", value) } - sv.VerificationUri = &jtv + sv.VerificationUri = ptr.String(jtv) } case "verificationUriComplete": @@ -656,7 +656,7 @@ func awsRestjson1_deserializeOpDocumentStartDeviceAuthorizationOutput(v **StartD if !ok { return fmt.Errorf("expected URI to be of type string, got %T instead", value) } - sv.VerificationUriComplete = &jtv + sv.VerificationUriComplete = ptr.String(jtv) } default: @@ -1128,7 +1128,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected Error to be of type string, got %T instead", value) } - sv.Error_ = &jtv + sv.Error_ = ptr.String(jtv) } case "error_description": @@ -1137,7 +1137,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Error_description = &jtv + sv.Error_description = ptr.String(jtv) } default: @@ -1177,7 +1177,7 @@ func awsRestjson1_deserializeDocumentAuthorizationPendingException(v **types.Aut if !ok { return fmt.Errorf("expected Error to be of type string, got %T instead", value) } - sv.Error_ = &jtv + sv.Error_ = ptr.String(jtv) } case "error_description": @@ -1186,7 +1186,7 @@ func awsRestjson1_deserializeDocumentAuthorizationPendingException(v **types.Aut if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Error_description = &jtv + sv.Error_description = ptr.String(jtv) } default: @@ -1226,7 +1226,7 @@ func awsRestjson1_deserializeDocumentExpiredTokenException(v **types.ExpiredToke if !ok { return fmt.Errorf("expected Error to be of type string, got %T instead", value) } - sv.Error_ = &jtv + sv.Error_ = ptr.String(jtv) } case "error_description": @@ -1235,7 +1235,7 @@ func awsRestjson1_deserializeDocumentExpiredTokenException(v **types.ExpiredToke if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Error_description = &jtv + sv.Error_description = ptr.String(jtv) } default: @@ -1275,7 +1275,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected Error to be of type string, got %T instead", value) } - sv.Error_ = &jtv + sv.Error_ = ptr.String(jtv) } case "error_description": @@ -1284,7 +1284,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Error_description = &jtv + sv.Error_description = ptr.String(jtv) } default: @@ -1324,7 +1324,7 @@ func awsRestjson1_deserializeDocumentInvalidClientException(v **types.InvalidCli if !ok { return fmt.Errorf("expected Error to be of type string, got %T instead", value) } - sv.Error_ = &jtv + sv.Error_ = ptr.String(jtv) } case "error_description": @@ -1333,7 +1333,7 @@ func awsRestjson1_deserializeDocumentInvalidClientException(v **types.InvalidCli if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Error_description = &jtv + sv.Error_description = ptr.String(jtv) } default: @@ -1373,7 +1373,7 @@ func awsRestjson1_deserializeDocumentInvalidClientMetadataException(v **types.In if !ok { return fmt.Errorf("expected Error to be of type string, got %T instead", value) } - sv.Error_ = &jtv + sv.Error_ = ptr.String(jtv) } case "error_description": @@ -1382,7 +1382,7 @@ func awsRestjson1_deserializeDocumentInvalidClientMetadataException(v **types.In if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Error_description = &jtv + sv.Error_description = ptr.String(jtv) } default: @@ -1422,7 +1422,7 @@ func awsRestjson1_deserializeDocumentInvalidGrantException(v **types.InvalidGran if !ok { return fmt.Errorf("expected Error to be of type string, got %T instead", value) } - sv.Error_ = &jtv + sv.Error_ = ptr.String(jtv) } case "error_description": @@ -1431,7 +1431,7 @@ func awsRestjson1_deserializeDocumentInvalidGrantException(v **types.InvalidGran if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Error_description = &jtv + sv.Error_description = ptr.String(jtv) } default: @@ -1471,7 +1471,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected Error to be of type string, got %T instead", value) } - sv.Error_ = &jtv + sv.Error_ = ptr.String(jtv) } case "error_description": @@ -1480,7 +1480,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Error_description = &jtv + sv.Error_description = ptr.String(jtv) } default: @@ -1520,7 +1520,7 @@ func awsRestjson1_deserializeDocumentInvalidScopeException(v **types.InvalidScop if !ok { return fmt.Errorf("expected Error to be of type string, got %T instead", value) } - sv.Error_ = &jtv + sv.Error_ = ptr.String(jtv) } case "error_description": @@ -1529,7 +1529,7 @@ func awsRestjson1_deserializeDocumentInvalidScopeException(v **types.InvalidScop if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Error_description = &jtv + sv.Error_description = ptr.String(jtv) } default: @@ -1569,7 +1569,7 @@ func awsRestjson1_deserializeDocumentSlowDownException(v **types.SlowDownExcepti if !ok { return fmt.Errorf("expected Error to be of type string, got %T instead", value) } - sv.Error_ = &jtv + sv.Error_ = ptr.String(jtv) } case "error_description": @@ -1578,7 +1578,7 @@ func awsRestjson1_deserializeDocumentSlowDownException(v **types.SlowDownExcepti if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Error_description = &jtv + sv.Error_description = ptr.String(jtv) } default: @@ -1618,7 +1618,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut if !ok { return fmt.Errorf("expected Error to be of type string, got %T instead", value) } - sv.Error_ = &jtv + sv.Error_ = ptr.String(jtv) } case "error_description": @@ -1627,7 +1627,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedClientException(v **types.Unaut if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Error_description = &jtv + sv.Error_description = ptr.String(jtv) } default: @@ -1667,7 +1667,7 @@ func awsRestjson1_deserializeDocumentUnsupportedGrantTypeException(v **types.Uns if !ok { return fmt.Errorf("expected Error to be of type string, got %T instead", value) } - sv.Error_ = &jtv + sv.Error_ = ptr.String(jtv) } case "error_description": @@ -1676,7 +1676,7 @@ func awsRestjson1_deserializeDocumentUnsupportedGrantTypeException(v **types.Uns if !ok { return fmt.Errorf("expected ErrorDescription to be of type string, got %T instead", value) } - sv.Error_description = &jtv + sv.Error_description = ptr.String(jtv) } default: diff --git a/service/ssooidc/go.mod b/service/ssooidc/go.mod index e9a35aeb988..b3b976b0dc8 100644 --- a/service/ssooidc/go.mod +++ b/service/ssooidc/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/ssooidc go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/ssooidc/serializers.go b/service/ssooidc/serializers.go index 34eb233373d..af3300e0cce 100644 --- a/service/ssooidc/serializers.go +++ b/service/ssooidc/serializers.go @@ -291,17 +291,13 @@ func awsRestjson1_serializeOpDocumentStartDeviceAuthorizationInput(v *StartDevic return nil } -func awsRestjson1_serializeDocumentScopes(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentScopes(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/storagegateway/api_op_ActivateGateway.go b/service/storagegateway/api_op_ActivateGateway.go index b021b6e6d43..aa754e2aaa2 100644 --- a/service/storagegateway/api_op_ActivateGateway.go +++ b/service/storagegateway/api_op_ActivateGateway.go @@ -109,7 +109,7 @@ type ActivateGatewayInput struct { // numbers that can be represented in UTF-8 format, and the following special // characters: + - = . _ : / @. The maximum length of a tag's key is 128 // characters, and the maximum length for a tag's value is 256 characters. - Tags []*types.Tag + Tags []types.Tag // The value that indicates the type of tape drive to use for tape gateway. This // field is optional. Valid Values: IBM-ULT3580-TD5 diff --git a/service/storagegateway/api_op_AddCache.go b/service/storagegateway/api_op_AddCache.go index c9ab020d5c9..7f161689636 100644 --- a/service/storagegateway/api_op_AddCache.go +++ b/service/storagegateway/api_op_AddCache.go @@ -38,7 +38,7 @@ type AddCacheInput struct { // can get the disk IDs from the ListLocalDisks API. // // This member is required. - DiskIds []*string + DiskIds []string // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to // return a list of gateways for your account and AWS Region. diff --git a/service/storagegateway/api_op_AddTagsToResource.go b/service/storagegateway/api_op_AddTagsToResource.go index 83f4072eb58..18b7c11136d 100644 --- a/service/storagegateway/api_op_AddTagsToResource.go +++ b/service/storagegateway/api_op_AddTagsToResource.go @@ -59,7 +59,7 @@ type AddTagsToResourceInput struct { // characters, and the maximum length for a tag's value is 256. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } // AddTagsToResourceOutput diff --git a/service/storagegateway/api_op_AddUploadBuffer.go b/service/storagegateway/api_op_AddUploadBuffer.go index d8a8850af3e..d3b2797b839 100644 --- a/service/storagegateway/api_op_AddUploadBuffer.go +++ b/service/storagegateway/api_op_AddUploadBuffer.go @@ -37,7 +37,7 @@ type AddUploadBufferInput struct { // can get the disk IDs from the ListLocalDisks API. // // This member is required. - DiskIds []*string + DiskIds []string // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to // return a list of gateways for your account and AWS Region. diff --git a/service/storagegateway/api_op_AddWorkingStorage.go b/service/storagegateway/api_op_AddWorkingStorage.go index bfafe07a4ec..f995a14b314 100644 --- a/service/storagegateway/api_op_AddWorkingStorage.go +++ b/service/storagegateway/api_op_AddWorkingStorage.go @@ -44,7 +44,7 @@ type AddWorkingStorageInput struct { // can get the disk IDs from the ListLocalDisks API. // // This member is required. - DiskIds []*string + DiskIds []string // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to // return a list of gateways for your account and AWS Region. diff --git a/service/storagegateway/api_op_AssignTapePool.go b/service/storagegateway/api_op_AssignTapePool.go index 393b794b997..2ea4852c9eb 100644 --- a/service/storagegateway/api_op_AssignTapePool.go +++ b/service/storagegateway/api_op_AssignTapePool.go @@ -53,7 +53,7 @@ type AssignTapePoolInput struct { // BypassGovernanceRetention, setting this to TRUE enables the user to bypass the // retention lock. This parameter is set to true by default for calls from the // console. Valid values: TRUE | FALSE - BypassGovernanceRetention *bool + BypassGovernanceRetention bool } type AssignTapePoolOutput struct { diff --git a/service/storagegateway/api_op_CreateCachediSCSIVolume.go b/service/storagegateway/api_op_CreateCachediSCSIVolume.go index addc8a61e5c..a96471b8206 100644 --- a/service/storagegateway/api_op_CreateCachediSCSIVolume.go +++ b/service/storagegateway/api_op_CreateCachediSCSIVolume.go @@ -74,7 +74,7 @@ type CreateCachediSCSIVolumeInput struct { // The size of the volume in bytes. // // This member is required. - VolumeSizeInBytes *int64 + VolumeSizeInBytes int64 // Set to true to use Amazon S3 server-side encryption with your own AWS KMS key, // or false to use a key managed by Amazon S3. Optional. Valid Values: true | false @@ -104,7 +104,7 @@ type CreateCachediSCSIVolumeInput struct { // numbers that you can represent in UTF-8 format, and the following special // characters: + - = . _ : / @. The maximum length of a tag's key is 128 // characters, and the maximum length for a tag's value is 256 characters. - Tags []*types.Tag + Tags []types.Tag } type CreateCachediSCSIVolumeOutput struct { diff --git a/service/storagegateway/api_op_CreateNFSFileShare.go b/service/storagegateway/api_op_CreateNFSFileShare.go index 95b99870dbf..f5462c4fe50 100644 --- a/service/storagegateway/api_op_CreateNFSFileShare.go +++ b/service/storagegateway/api_op_CreateNFSFileShare.go @@ -70,7 +70,7 @@ type CreateNFSFileShareInput struct { // The list of clients that are allowed to access the file gateway. The list must // contain either valid IP addresses or valid CIDR blocks. - ClientList []*string + ClientList []string // The default storage class for objects put into an Amazon S3 bucket by the file // gateway. The default value is S3_INTELLIGENT_TIERING. Optional. Valid Values: @@ -135,7 +135,7 @@ type CreateNFSFileShareInput struct { // numbers representable in UTF-8 format, and the following special characters: + - // = . _ : / @. The maximum length of a tag's key is 128 characters, and the // maximum length for a tag's value is 256. - Tags []*types.Tag + Tags []types.Tag } // CreateNFSFileShareOutput diff --git a/service/storagegateway/api_op_CreateSMBFileShare.go b/service/storagegateway/api_op_CreateSMBFileShare.go index 664b4e93d06..e006c4f8ce2 100644 --- a/service/storagegateway/api_op_CreateSMBFileShare.go +++ b/service/storagegateway/api_op_CreateSMBFileShare.go @@ -74,7 +74,7 @@ type CreateSMBFileShareInput struct { // @group1, and @DOMAIN\group1. Use this option very carefully, because any user in // this list can do anything they like on the file share, regardless of file // permissions. - AdminUserList []*string + AdminUserList []string // The Amazon Resource Name (ARN) of the storage used for the audit logs. AuditDestinationARN *string @@ -109,7 +109,7 @@ type CreateSMBFileShareInput struct { // the file share. A group must be prefixed with the @ character. Acceptable // formats include: DOMAIN\User1, user1, @group1, and @DOMAIN\group1. Can only be // set if Authentication is set to ActiveDirectory. - InvalidUserList []*string + InvalidUserList []string // Set to true to use Amazon S3 server-side encryption with your own AWS KMS key, // or false to use a key managed by Amazon S3. Optional. Valid Values: true | false @@ -154,13 +154,13 @@ type CreateSMBFileShareInput struct { // numbers representable in UTF-8 format, and the following special characters: + - // = . _ : / @. The maximum length of a tag's key is 128 characters, and the // maximum length for a tag's value is 256. - Tags []*types.Tag + Tags []types.Tag // A list of users or groups in the Active Directory that are allowed to access the // file share. A group must be prefixed with the @ character. Acceptable formats // include: DOMAIN\User1, user1, @group1, and @DOMAIN\group1. Can only be set if // Authentication is set to ActiveDirectory. - ValidUserList []*string + ValidUserList []string } // CreateSMBFileShareOutput diff --git a/service/storagegateway/api_op_CreateSnapshot.go b/service/storagegateway/api_op_CreateSnapshot.go index 0c48548c611..be5aaf5e300 100644 --- a/service/storagegateway/api_op_CreateSnapshot.go +++ b/service/storagegateway/api_op_CreateSnapshot.go @@ -77,7 +77,7 @@ type CreateSnapshotInput struct { // numbers representable in UTF-8 format, and the following special characters: + - // = . _ : / @. The maximum length of a tag's key is 128 characters, and the // maximum length for a tag's value is 256. - Tags []*types.Tag + Tags []types.Tag } // A JSON object containing the following fields: diff --git a/service/storagegateway/api_op_CreateSnapshotFromVolumeRecoveryPoint.go b/service/storagegateway/api_op_CreateSnapshotFromVolumeRecoveryPoint.go index a26e650d1fb..2aebd5b7e46 100644 --- a/service/storagegateway/api_op_CreateSnapshotFromVolumeRecoveryPoint.go +++ b/service/storagegateway/api_op_CreateSnapshotFromVolumeRecoveryPoint.go @@ -64,7 +64,7 @@ type CreateSnapshotFromVolumeRecoveryPointInput struct { // numbers representable in UTF-8 format, and the following special characters: + - // = . _ : / @. The maximum length of a tag's key is 128 characters, and the // maximum length for a tag's value is 256. - Tags []*types.Tag + Tags []types.Tag } type CreateSnapshotFromVolumeRecoveryPointOutput struct { diff --git a/service/storagegateway/api_op_CreateStorediSCSIVolume.go b/service/storagegateway/api_op_CreateStorediSCSIVolume.go index cc1b693e853..4a23ae2d30e 100644 --- a/service/storagegateway/api_op_CreateStorediSCSIVolume.go +++ b/service/storagegateway/api_op_CreateStorediSCSIVolume.go @@ -78,7 +78,7 @@ type CreateStorediSCSIVolumeInput struct { // set to false to create an empty volume. Valid Values: true | false // // This member is required. - PreserveExistingData *bool + PreserveExistingData bool // The name of the iSCSI target used by an initiator to connect to a volume and // used as a suffix for the target ARN. For example, specifying TargetName as @@ -113,7 +113,7 @@ type CreateStorediSCSIVolumeInput struct { // numbers representable in UTF-8 format, and the following special characters: + - // = . _ : / @. The maximum length of a tag's key is 128 characters, and the // maximum length for a tag's value is 256. - Tags []*types.Tag + Tags []types.Tag } // A JSON object containing the following fields: @@ -127,7 +127,7 @@ type CreateStorediSCSIVolumeOutput struct { VolumeARN *string // The size of the volume in bytes. - VolumeSizeInBytes *int64 + VolumeSizeInBytes int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_CreateTapePool.go b/service/storagegateway/api_op_CreateTapePool.go index 370cf6de7bf..2a38a7a066f 100644 --- a/service/storagegateway/api_op_CreateTapePool.go +++ b/service/storagegateway/api_op_CreateTapePool.go @@ -59,7 +59,7 @@ type CreateTapePoolInput struct { // numbers representable in UTF-8 format, and the following special characters: + - // = . _ : / @. The maximum length of a tag's key is 128 characters, and the // maximum length for a tag's value is 256. - Tags []*types.Tag + Tags []types.Tag } type CreateTapePoolOutput struct { diff --git a/service/storagegateway/api_op_CreateTapeWithBarcode.go b/service/storagegateway/api_op_CreateTapeWithBarcode.go index 3a0c36afbbb..97e2d709495 100644 --- a/service/storagegateway/api_op_CreateTapeWithBarcode.go +++ b/service/storagegateway/api_op_CreateTapeWithBarcode.go @@ -75,11 +75,11 @@ type CreateTapeWithBarcodeInput struct { // letters, spaces, and numbers representable in UTF-8 format, and the following // special characters: + - = . _ : / @. The maximum length of a tag's key is 128 // characters, and the maximum length for a tag's value is 256. - Tags []*types.Tag + Tags []types.Tag // Set to TRUE if the tape you are creating is to be configured as a // write-once-read-many (WORM) tape. - Worm *bool + Worm bool } // CreateTapeOutput diff --git a/service/storagegateway/api_op_CreateTapes.go b/service/storagegateway/api_op_CreateTapes.go index d9357134acb..9f2dc470eaf 100644 --- a/service/storagegateway/api_op_CreateTapes.go +++ b/service/storagegateway/api_op_CreateTapes.go @@ -86,11 +86,11 @@ type CreateTapesInput struct { // numbers representable in UTF-8 format, and the following special characters: + - // = . _ : / @. The maximum length of a tag's key is 128 characters, and the // maximum length for a tag's value is 256. - Tags []*types.Tag + Tags []types.Tag // Set to TRUE if the tape you are creating is to be configured as a // write-once-read-many (WORM) tape. - Worm *bool + Worm bool } // CreateTapeOutput @@ -98,7 +98,7 @@ type CreateTapesOutput struct { // A list of unique Amazon Resource Names (ARNs) that represents the virtual tapes // that were created. - TapeARNs []*string + TapeARNs []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_DeleteFileShare.go b/service/storagegateway/api_op_DeleteFileShare.go index cd7f9caad45..038f5338422 100644 --- a/service/storagegateway/api_op_DeleteFileShare.go +++ b/service/storagegateway/api_op_DeleteFileShare.go @@ -39,7 +39,7 @@ type DeleteFileShareInput struct { // aborts all data uploads to AWS. Otherwise, the file share is not deleted until // all data is uploaded to AWS. This process aborts the data upload process, and // the file share enters the FORCE_DELETING status. Valid Values: true | false - ForceDelete *bool + ForceDelete bool } // DeleteFileShareOutput diff --git a/service/storagegateway/api_op_DeleteTape.go b/service/storagegateway/api_op_DeleteTape.go index 7a09d42e48d..646e5e8b955 100644 --- a/service/storagegateway/api_op_DeleteTape.go +++ b/service/storagegateway/api_op_DeleteTape.go @@ -46,7 +46,7 @@ type DeleteTapeInput struct { // retention lock. Only archived tapes with tape retention lock set to governance // can be deleted. Archived tapes with tape retention lock set to compliance can't // be deleted. - BypassGovernanceRetention *bool + BypassGovernanceRetention bool } // DeleteTapeOutput diff --git a/service/storagegateway/api_op_DeleteTapeArchive.go b/service/storagegateway/api_op_DeleteTapeArchive.go index e38abb92859..d814d4b214c 100644 --- a/service/storagegateway/api_op_DeleteTapeArchive.go +++ b/service/storagegateway/api_op_DeleteTapeArchive.go @@ -40,7 +40,7 @@ type DeleteTapeArchiveInput struct { // retention lock. Only archived tapes with tape retention lock set to governance // can be deleted. Archived tapes with tape retention lock set to compliance can't // be deleted. - BypassGovernanceRetention *bool + BypassGovernanceRetention bool } // DeleteTapeArchiveOutput diff --git a/service/storagegateway/api_op_DescribeCache.go b/service/storagegateway/api_op_DescribeCache.go index df17b75a44f..7b37064d451 100644 --- a/service/storagegateway/api_op_DescribeCache.go +++ b/service/storagegateway/api_op_DescribeCache.go @@ -41,30 +41,30 @@ type DescribeCacheInput struct { type DescribeCacheOutput struct { // The amount of cache in bytes allocated to a gateway. - CacheAllocatedInBytes *int64 + CacheAllocatedInBytes int64 // The file share's contribution to the overall percentage of the gateway's cache // that has not been persisted to AWS. The sample is taken at the end of the // reporting period. - CacheDirtyPercentage *float64 + CacheDirtyPercentage float64 // Percent of application read operations from the file shares that are served from // cache. The sample is taken at the end of the reporting period. - CacheHitPercentage *float64 + CacheHitPercentage float64 // Percent of application read operations from the file shares that are not served // from cache. The sample is taken at the end of the reporting period. - CacheMissPercentage *float64 + CacheMissPercentage float64 // Percent use of the gateway's cache storage. This metric applies only to the // gateway-cached volume setup. The sample is taken at the end of the reporting // period. - CacheUsedPercentage *float64 + CacheUsedPercentage float64 // An array of strings that identify disks that are to be configured as working // storage. Each string has a minimum length of 1 and maximum length of 300. You // can get the disk IDs from the ListLocalDisks API. - DiskIds []*string + DiskIds []string // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to // return a list of gateways for your account and AWS Region. diff --git a/service/storagegateway/api_op_DescribeCachediSCSIVolumes.go b/service/storagegateway/api_op_DescribeCachediSCSIVolumes.go index f59fa28e53c..be08928aaf1 100644 --- a/service/storagegateway/api_op_DescribeCachediSCSIVolumes.go +++ b/service/storagegateway/api_op_DescribeCachediSCSIVolumes.go @@ -38,14 +38,14 @@ type DescribeCachediSCSIVolumesInput struct { // gateway. Use ListVolumes to get volume ARNs for a gateway. // // This member is required. - VolumeARNs []*string + VolumeARNs []string } // A JSON object containing the following fields: type DescribeCachediSCSIVolumesOutput struct { // An array of objects where each object contains metadata about one cached volume. - CachediSCSIVolumes []*types.CachediSCSIVolume + CachediSCSIVolumes []types.CachediSCSIVolume // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_DescribeChapCredentials.go b/service/storagegateway/api_op_DescribeChapCredentials.go index 5dd1d45646c..0643dc74fa5 100644 --- a/service/storagegateway/api_op_DescribeChapCredentials.go +++ b/service/storagegateway/api_op_DescribeChapCredentials.go @@ -63,7 +63,7 @@ type DescribeChapCredentialsOutput struct { // client). // // * TargetARN: The Amazon Resource Name (ARN) of the storage volume. - ChapCredentials []*types.ChapInfo + ChapCredentials []types.ChapInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_DescribeGatewayInformation.go b/service/storagegateway/api_op_DescribeGatewayInformation.go index 5cf2ff20e04..3e111e78cd5 100644 --- a/service/storagegateway/api_op_DescribeGatewayInformation.go +++ b/service/storagegateway/api_op_DescribeGatewayInformation.go @@ -74,7 +74,7 @@ type DescribeGatewayInformationOutput struct { // A NetworkInterface array that contains descriptions of the gateway network // interfaces. - GatewayNetworkInterfaces []*types.NetworkInterface + GatewayNetworkInterfaces []types.NetworkInterface // A value that indicates the operating state of the gateway. GatewayState *string @@ -105,7 +105,7 @@ type DescribeGatewayInformationOutput struct { // A list of up to 50 tags assigned to the gateway, sorted alphabetically by key // name. Each tag is a key-value pair. For a gateway with more than 10 tags // assigned, you can view all tags using the ListTagsForResource API operation. - Tags []*types.Tag + Tags []types.Tag // The configuration settings for the virtual private cloud (VPC) endpoint for your // gateway. diff --git a/service/storagegateway/api_op_DescribeNFSFileShares.go b/service/storagegateway/api_op_DescribeNFSFileShares.go index 7d424452b57..f0ecd6e451a 100644 --- a/service/storagegateway/api_op_DescribeNFSFileShares.go +++ b/service/storagegateway/api_op_DescribeNFSFileShares.go @@ -35,14 +35,14 @@ type DescribeNFSFileSharesInput struct { // described. // // This member is required. - FileShareARNList []*string + FileShareARNList []string } // DescribeNFSFileSharesOutput type DescribeNFSFileSharesOutput struct { // An array containing a description for each requested file share. - NFSFileShareInfoList []*types.NFSFileShareInfo + NFSFileShareInfoList []types.NFSFileShareInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_DescribeSMBFileShares.go b/service/storagegateway/api_op_DescribeSMBFileShares.go index e9d0d771989..a97521667cb 100644 --- a/service/storagegateway/api_op_DescribeSMBFileShares.go +++ b/service/storagegateway/api_op_DescribeSMBFileShares.go @@ -35,14 +35,14 @@ type DescribeSMBFileSharesInput struct { // described. // // This member is required. - FileShareARNList []*string + FileShareARNList []string } // DescribeSMBFileSharesOutput type DescribeSMBFileSharesOutput struct { // An array containing a description for each requested file share. - SMBFileShareInfoList []*types.SMBFileShareInfo + SMBFileShareInfoList []types.SMBFileShareInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_DescribeSnapshotSchedule.go b/service/storagegateway/api_op_DescribeSnapshotSchedule.go index 1550a8731f8..a3aabbc5642 100644 --- a/service/storagegateway/api_op_DescribeSnapshotSchedule.go +++ b/service/storagegateway/api_op_DescribeSnapshotSchedule.go @@ -57,7 +57,7 @@ type DescribeSnapshotScheduleOutput struct { // A list of up to 50 tags assigned to the snapshot schedule, sorted alphabetically // by key name. Each tag is a key-value pair. For a gateway with more than 10 tags // assigned, you can view all tags using the ListTagsForResource API operation. - Tags []*types.Tag + Tags []types.Tag // A value that indicates the time zone of the gateway. Timezone *string diff --git a/service/storagegateway/api_op_DescribeStorediSCSIVolumes.go b/service/storagegateway/api_op_DescribeStorediSCSIVolumes.go index 828cc9e6794..b46be90f546 100644 --- a/service/storagegateway/api_op_DescribeStorediSCSIVolumes.go +++ b/service/storagegateway/api_op_DescribeStorediSCSIVolumes.go @@ -38,7 +38,7 @@ type DescribeStorediSCSIVolumesInput struct { // gateway. Use ListVolumes to get volume ARNs for a gateway. // // This member is required. - VolumeARNs []*string + VolumeARNs []string } type DescribeStorediSCSIVolumesOutput struct { @@ -99,7 +99,7 @@ type DescribeStorediSCSIVolumesOutput struct { // // * VolumeType: One of the enumeration values describing the type of the // volume. Currently, only STORED volumes are supported. - StorediSCSIVolumes []*types.StorediSCSIVolume + StorediSCSIVolumes []types.StorediSCSIVolume // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_DescribeTapeArchives.go b/service/storagegateway/api_op_DescribeTapeArchives.go index 06320842ebc..637941acdff 100644 --- a/service/storagegateway/api_op_DescribeTapeArchives.go +++ b/service/storagegateway/api_op_DescribeTapeArchives.go @@ -43,7 +43,7 @@ type DescribeTapeArchivesInput struct { // Specifies one or more unique Amazon Resource Names (ARNs) that represent the // virtual tapes you want to describe. - TapeARNs []*string + TapeARNs []string } // DescribeTapeArchivesOutput @@ -61,7 +61,7 @@ type DescribeTapeArchivesOutput struct { // information returned includes the Amazon Resource Names (ARNs) of the tapes, // size of the tapes, status of the tapes, progress of the description, and tape // barcode. - TapeArchives []*types.TapeArchive + TapeArchives []types.TapeArchive // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_DescribeTapeRecoveryPoints.go b/service/storagegateway/api_op_DescribeTapeRecoveryPoints.go index 689b120157c..765bb034f59 100644 --- a/service/storagegateway/api_op_DescribeTapeRecoveryPoints.go +++ b/service/storagegateway/api_op_DescribeTapeRecoveryPoints.go @@ -64,7 +64,7 @@ type DescribeTapeRecoveryPointsOutput struct { Marker *string // An array of TapeRecoveryPointInfos that are available for the specified gateway. - TapeRecoveryPointInfos []*types.TapeRecoveryPointInfo + TapeRecoveryPointInfos []types.TapeRecoveryPointInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_DescribeTapes.go b/service/storagegateway/api_op_DescribeTapes.go index a5686d10b0d..c174055cd3c 100644 --- a/service/storagegateway/api_op_DescribeTapes.go +++ b/service/storagegateway/api_op_DescribeTapes.go @@ -52,7 +52,7 @@ type DescribeTapesInput struct { // virtual tapes you want to describe. If this parameter is not specified, Tape // gateway returns a description of all virtual tapes associated with the specified // gateway. - TapeARNs []*string + TapeARNs []string } // DescribeTapesOutput @@ -64,7 +64,7 @@ type DescribeTapesOutput struct { Marker *string // An array of virtual tape descriptions. - Tapes []*types.Tape + Tapes []types.Tape // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_DescribeUploadBuffer.go b/service/storagegateway/api_op_DescribeUploadBuffer.go index 10a4b09f315..789ff617511 100644 --- a/service/storagegateway/api_op_DescribeUploadBuffer.go +++ b/service/storagegateway/api_op_DescribeUploadBuffer.go @@ -44,17 +44,17 @@ type DescribeUploadBufferOutput struct { // Each local disk ID is specified as a string (minimum length of 1 and maximum // length of 300). If no local disks are configured as working storage, then the // DiskIds array is empty. - DiskIds []*string + DiskIds []string // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to // return a list of gateways for your account and AWS Region. GatewayARN *string // The total number of bytes allocated in the gateway's as upload buffer. - UploadBufferAllocatedInBytes *int64 + UploadBufferAllocatedInBytes int64 // The total number of bytes being used in the gateway's upload buffer. - UploadBufferUsedInBytes *int64 + UploadBufferUsedInBytes int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_DescribeVTLDevices.go b/service/storagegateway/api_op_DescribeVTLDevices.go index a5f8ac01ada..9afb5b6f250 100644 --- a/service/storagegateway/api_op_DescribeVTLDevices.go +++ b/service/storagegateway/api_op_DescribeVTLDevices.go @@ -50,7 +50,7 @@ type DescribeVTLDevicesInput struct { // of a VTL device. All of the specified VTL devices must be from the same gateway. // If no VTL devices are specified, the result will contain all devices on the // specified gateway. - VTLDeviceARNs []*string + VTLDeviceARNs []string } // DescribeVTLDevicesOutput @@ -68,7 +68,7 @@ type DescribeVTLDevicesOutput struct { // An array of VTL device objects composed of the Amazon Resource Name (ARN) of the // VTL devices. - VTLDevices []*types.VTLDevice + VTLDevices []types.VTLDevice // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_DescribeWorkingStorage.go b/service/storagegateway/api_op_DescribeWorkingStorage.go index f49ac90366f..27876c696d3 100644 --- a/service/storagegateway/api_op_DescribeWorkingStorage.go +++ b/service/storagegateway/api_op_DescribeWorkingStorage.go @@ -49,7 +49,7 @@ type DescribeWorkingStorageOutput struct { // Each local disk ID is specified as a string (minimum length of 1 and maximum // length of 300). If no local disks are configured as working storage, then the // DiskIds array is empty. - DiskIds []*string + DiskIds []string // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to // return a list of gateways for your account and AWS Region. @@ -57,11 +57,11 @@ type DescribeWorkingStorageOutput struct { // The total working storage in bytes allocated for the gateway. If no working // storage is configured for the gateway, this field returns 0. - WorkingStorageAllocatedInBytes *int64 + WorkingStorageAllocatedInBytes int64 // The total working storage in bytes in use by the gateway. If no working storage // is configured for the gateway, this field returns 0. - WorkingStorageUsedInBytes *int64 + WorkingStorageUsedInBytes int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_JoinDomain.go b/service/storagegateway/api_op_JoinDomain.go index f04eb2dc33a..66031a097fa 100644 --- a/service/storagegateway/api_op_JoinDomain.go +++ b/service/storagegateway/api_op_JoinDomain.go @@ -59,7 +59,7 @@ type JoinDomainInput struct { // List of IPv4 addresses, NetBIOS names, or host names of your domain server. If // you need to specify the port number include it after the colon (“:”). For // example, mydc.mydomain.com:389. - DomainControllers []*string + DomainControllers []string // The organizational unit (OU) is a container in an Active Directory that can hold // users, groups, computers, and other OUs and this parameter specifies the OU that diff --git a/service/storagegateway/api_op_ListAutomaticTapeCreationPolicies.go b/service/storagegateway/api_op_ListAutomaticTapeCreationPolicies.go index 1eb47b7a8d4..2b696066803 100644 --- a/service/storagegateway/api_op_ListAutomaticTapeCreationPolicies.go +++ b/service/storagegateway/api_op_ListAutomaticTapeCreationPolicies.go @@ -41,7 +41,7 @@ type ListAutomaticTapeCreationPoliciesOutput struct { // Gets a listing of information about the gateway's automatic tape creation // policies, including the automatic tape creation rules and the gateway that is // using the policies. - AutomaticTapeCreationPolicyInfos []*types.AutomaticTapeCreationPolicyInfo + AutomaticTapeCreationPolicyInfos []types.AutomaticTapeCreationPolicyInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_ListFileShares.go b/service/storagegateway/api_op_ListFileShares.go index 503fcf0d9f6..5ccbfe047dd 100644 --- a/service/storagegateway/api_op_ListFileShares.go +++ b/service/storagegateway/api_op_ListFileShares.go @@ -51,7 +51,7 @@ type ListFileSharesInput struct { type ListFileSharesOutput struct { // An array of information about the file gateway's file shares. - FileShareInfoList []*types.FileShareInfo + FileShareInfoList []types.FileShareInfo // If the request includes Marker, the response returns that value in this field. Marker *string diff --git a/service/storagegateway/api_op_ListGateways.go b/service/storagegateway/api_op_ListGateways.go index 910b374aa81..c037e9eff7e 100644 --- a/service/storagegateway/api_op_ListGateways.go +++ b/service/storagegateway/api_op_ListGateways.go @@ -54,7 +54,7 @@ type ListGatewaysInput struct { type ListGatewaysOutput struct { // An array of GatewayInfo objects. - Gateways []*types.GatewayInfo + Gateways []types.GatewayInfo // Use the marker in your next request to fetch the next set of gateways in the // list. If there are no more gateways to list, this field does not appear in the diff --git a/service/storagegateway/api_op_ListLocalDisks.go b/service/storagegateway/api_op_ListLocalDisks.go index 4854f7c75d2..62c466433f5 100644 --- a/service/storagegateway/api_op_ListLocalDisks.go +++ b/service/storagegateway/api_op_ListLocalDisks.go @@ -49,7 +49,7 @@ type ListLocalDisksOutput struct { // A JSON object containing the following fields: // // * ListLocalDisksOutput$Disks - Disks []*types.Disk + Disks []types.Disk // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to // return a list of gateways for your account and AWS Region. diff --git a/service/storagegateway/api_op_ListTagsForResource.go b/service/storagegateway/api_op_ListTagsForResource.go index 3c0fd5b3797..03e6ab3338b 100644 --- a/service/storagegateway/api_op_ListTagsForResource.go +++ b/service/storagegateway/api_op_ListTagsForResource.go @@ -56,7 +56,7 @@ type ListTagsForResourceOutput struct { ResourceARN *string // An array that contains the tags for the specified resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_ListTapePools.go b/service/storagegateway/api_op_ListTapePools.go index 4e5513e83ab..fdf158e4c49 100644 --- a/service/storagegateway/api_op_ListTapePools.go +++ b/service/storagegateway/api_op_ListTapePools.go @@ -46,7 +46,7 @@ type ListTapePoolsInput struct { // The Amazon Resource Name (ARN) of each of the custom tape pools you want to // list. If you don't specify a custom tape pool ARN, the response lists all custom // tape pools. - PoolARNs []*string + PoolARNs []string } type ListTapePoolsOutput struct { @@ -59,7 +59,7 @@ type ListTapePoolsOutput struct { // An array of PoolInfo objects, where each object describes a single custom tape // pool. If there are no custom tape pools, the PoolInfos is an empty array. - PoolInfos []*types.PoolInfo + PoolInfos []types.PoolInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_ListTapes.go b/service/storagegateway/api_op_ListTapes.go index b77b20ca5f5..1db31a240af 100644 --- a/service/storagegateway/api_op_ListTapes.go +++ b/service/storagegateway/api_op_ListTapes.go @@ -55,7 +55,7 @@ type ListTapesInput struct { // The Amazon Resource Name (ARN) of each of the tapes you want to list. If you // don't specify a tape ARN, the response lists all tapes in both your VTL and VTS. - TapeARNs []*string + TapeARNs []string } // A JSON object containing the following fields: @@ -75,7 +75,7 @@ type ListTapesOutput struct { // An array of TapeInfo objects, where each object describes a single tape. If // there are no tapes in the tape library or VTS, then the TapeInfos is an empty // array. - TapeInfos []*types.TapeInfo + TapeInfos []types.TapeInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_ListVolumeInitiators.go b/service/storagegateway/api_op_ListVolumeInitiators.go index b63757749ad..bb569691e16 100644 --- a/service/storagegateway/api_op_ListVolumeInitiators.go +++ b/service/storagegateway/api_op_ListVolumeInitiators.go @@ -43,7 +43,7 @@ type ListVolumeInitiatorsOutput struct { // The host names and port numbers of all iSCSI initiators that are connected to // the gateway. - Initiators []*string + Initiators []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_ListVolumeRecoveryPoints.go b/service/storagegateway/api_op_ListVolumeRecoveryPoints.go index 6660d1cdba8..bf310733d44 100644 --- a/service/storagegateway/api_op_ListVolumeRecoveryPoints.go +++ b/service/storagegateway/api_op_ListVolumeRecoveryPoints.go @@ -48,7 +48,7 @@ type ListVolumeRecoveryPointsOutput struct { GatewayARN *string // An array of VolumeRecoveryPointInfo objects. - VolumeRecoveryPointInfos []*types.VolumeRecoveryPointInfo + VolumeRecoveryPointInfos []types.VolumeRecoveryPointInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_ListVolumes.go b/service/storagegateway/api_op_ListVolumes.go index 2b3abb1122e..839834b5c45 100644 --- a/service/storagegateway/api_op_ListVolumes.go +++ b/service/storagegateway/api_op_ListVolumes.go @@ -77,7 +77,7 @@ type ListVolumesOutput struct { // An array of VolumeInfo objects, where each object describes an iSCSI volume. If // no volumes are defined for the gateway, then VolumeInfos is an empty array "[]". - VolumeInfos []*types.VolumeInfo + VolumeInfos []types.VolumeInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/storagegateway/api_op_RefreshCache.go b/service/storagegateway/api_op_RefreshCache.go index 1daca7ad660..f117a6aee4c 100644 --- a/service/storagegateway/api_op_RefreshCache.go +++ b/service/storagegateway/api_op_RefreshCache.go @@ -61,7 +61,7 @@ type RefreshCacheInput struct { // default is ["/"]. The default refreshes objects and folders at the root of the // Amazon S3 bucket. If Recursive is set to true, the entire S3 bucket that the // file share has access to is refreshed. - FolderList []*string + FolderList []string // A value that specifies whether to recursively refresh folders in the cache. The // refresh includes folders that were in the cache the last time the gateway listed diff --git a/service/storagegateway/api_op_RemoveTagsFromResource.go b/service/storagegateway/api_op_RemoveTagsFromResource.go index a63545db6b8..538424a1f52 100644 --- a/service/storagegateway/api_op_RemoveTagsFromResource.go +++ b/service/storagegateway/api_op_RemoveTagsFromResource.go @@ -39,7 +39,7 @@ type RemoveTagsFromResourceInput struct { // composed of a key-value pair. // // This member is required. - TagKeys []*string + TagKeys []string } // RemoveTagsFromResourceOutput diff --git a/service/storagegateway/api_op_UpdateAutomaticTapeCreationPolicy.go b/service/storagegateway/api_op_UpdateAutomaticTapeCreationPolicy.go index 9a25ece32fc..fc03bc819cd 100644 --- a/service/storagegateway/api_op_UpdateAutomaticTapeCreationPolicy.go +++ b/service/storagegateway/api_op_UpdateAutomaticTapeCreationPolicy.go @@ -36,7 +36,7 @@ type UpdateAutomaticTapeCreationPolicyInput struct { // rules. The rules determine when and how to automatically create new tapes. // // This member is required. - AutomaticTapeCreationRules []*types.AutomaticTapeCreationRule + AutomaticTapeCreationRules []types.AutomaticTapeCreationRule // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to // return a list of gateways for your account and AWS Region. diff --git a/service/storagegateway/api_op_UpdateNFSFileShare.go b/service/storagegateway/api_op_UpdateNFSFileShare.go index 2a53bbaf0fd..e9ba8c79561 100644 --- a/service/storagegateway/api_op_UpdateNFSFileShare.go +++ b/service/storagegateway/api_op_UpdateNFSFileShare.go @@ -55,7 +55,7 @@ type UpdateNFSFileShareInput struct { // The list of clients that are allowed to access the file gateway. The list must // contain either valid IP addresses or valid CIDR blocks. - ClientList []*string + ClientList []string // The default storage class for objects put into an Amazon S3 bucket by the file // gateway. The default value is S3_INTELLIGENT_TIERING. Optional. Valid Values: diff --git a/service/storagegateway/api_op_UpdateSMBFileShare.go b/service/storagegateway/api_op_UpdateSMBFileShare.go index 53d1ea803bf..52d854d32b2 100644 --- a/service/storagegateway/api_op_UpdateSMBFileShare.go +++ b/service/storagegateway/api_op_UpdateSMBFileShare.go @@ -53,7 +53,7 @@ type UpdateSMBFileShareInput struct { // to the file share. A group must be prefixed with the @ character. Acceptable // formats include: DOMAIN\User1, user1, @group1, and @DOMAIN\group1. Can only be // set if Authentication is set to ActiveDirectory. - AdminUserList []*string + AdminUserList []string // The Amazon Resource Name (ARN) of the storage used for the audit logs. AuditDestinationARN *string @@ -84,7 +84,7 @@ type UpdateSMBFileShareInput struct { // the file share. A group must be prefixed with the @ character. Acceptable // formats include: DOMAIN\User1, user1, @group1, and @DOMAIN\group1. Can only be // set if Authentication is set to ActiveDirectory. - InvalidUserList []*string + InvalidUserList []string // Set to true to use Amazon S3 server-side encryption with your own AWS KMS key, // or false to use a key managed by Amazon S3. Optional. Valid Values: true | false @@ -128,7 +128,7 @@ type UpdateSMBFileShareInput struct { // file share. A group must be prefixed with the @ character. Acceptable formats // include: DOMAIN\User1, user1, @group1, and @DOMAIN\group1. Can only be set if // Authentication is set to ActiveDirectory. - ValidUserList []*string + ValidUserList []string } // UpdateSMBFileShareOutput diff --git a/service/storagegateway/api_op_UpdateSnapshotSchedule.go b/service/storagegateway/api_op_UpdateSnapshotSchedule.go index 3d7e9b4f90f..5cc233ad1ad 100644 --- a/service/storagegateway/api_op_UpdateSnapshotSchedule.go +++ b/service/storagegateway/api_op_UpdateSnapshotSchedule.go @@ -74,7 +74,7 @@ type UpdateSnapshotScheduleInput struct { // numbers representable in UTF-8 format, and the following special characters: + - // = . _ : / @. The maximum length of a tag's key is 128 characters, and the // maximum length for a tag's value is 256. - Tags []*types.Tag + Tags []types.Tag } // A JSON object containing the Amazon Resource Name (ARN) of the updated storage diff --git a/service/storagegateway/deserializers.go b/service/storagegateway/deserializers.go index 13ceeedfea4..5c406ab7755 100644 --- a/service/storagegateway/deserializers.go +++ b/service/storagegateway/deserializers.go @@ -9511,7 +9511,7 @@ func awsAwsjson11_deserializeDocumentAutomaticTapeCreationPolicyInfo(v **types.A if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -9523,7 +9523,7 @@ func awsAwsjson11_deserializeDocumentAutomaticTapeCreationPolicyInfo(v **types.A return nil } -func awsAwsjson11_deserializeDocumentAutomaticTapeCreationPolicyInfos(v *[]*types.AutomaticTapeCreationPolicyInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentAutomaticTapeCreationPolicyInfos(v *[]types.AutomaticTapeCreationPolicyInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9536,18 +9536,20 @@ func awsAwsjson11_deserializeDocumentAutomaticTapeCreationPolicyInfos(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutomaticTapeCreationPolicyInfo + var cv []types.AutomaticTapeCreationPolicyInfo if *v == nil { - cv = []*types.AutomaticTapeCreationPolicyInfo{} + cv = []types.AutomaticTapeCreationPolicyInfo{} } else { cv = *v } for _, value := range shape { - var col *types.AutomaticTapeCreationPolicyInfo - if err := awsAwsjson11_deserializeDocumentAutomaticTapeCreationPolicyInfo(&col, value); err != nil { + var col types.AutomaticTapeCreationPolicyInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAutomaticTapeCreationPolicyInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9596,7 +9598,7 @@ func awsAwsjson11_deserializeDocumentAutomaticTapeCreationRule(v **types.Automat if !ok { return fmt.Errorf("expected PoolId to be of type string, got %T instead", value) } - sv.PoolId = &jtv + sv.PoolId = ptr.String(jtv) } case "TapeBarcodePrefix": @@ -9605,7 +9607,7 @@ func awsAwsjson11_deserializeDocumentAutomaticTapeCreationRule(v **types.Automat if !ok { return fmt.Errorf("expected TapeBarcodePrefix to be of type string, got %T instead", value) } - sv.TapeBarcodePrefix = &jtv + sv.TapeBarcodePrefix = ptr.String(jtv) } case "TapeSizeInBytes": @@ -9618,7 +9620,7 @@ func awsAwsjson11_deserializeDocumentAutomaticTapeCreationRule(v **types.Automat if err != nil { return err } - sv.TapeSizeInBytes = &i64 + sv.TapeSizeInBytes = ptr.Int64(i64) } case "Worm": @@ -9627,7 +9629,7 @@ func awsAwsjson11_deserializeDocumentAutomaticTapeCreationRule(v **types.Automat if !ok { return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) } - sv.Worm = &jtv + sv.Worm = jtv } default: @@ -9639,7 +9641,7 @@ func awsAwsjson11_deserializeDocumentAutomaticTapeCreationRule(v **types.Automat return nil } -func awsAwsjson11_deserializeDocumentAutomaticTapeCreationRules(v *[]*types.AutomaticTapeCreationRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentAutomaticTapeCreationRules(v *[]types.AutomaticTapeCreationRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9652,18 +9654,20 @@ func awsAwsjson11_deserializeDocumentAutomaticTapeCreationRules(v *[]*types.Auto return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AutomaticTapeCreationRule + var cv []types.AutomaticTapeCreationRule if *v == nil { - cv = []*types.AutomaticTapeCreationRule{} + cv = []types.AutomaticTapeCreationRule{} } else { cv = *v } for _, value := range shape { - var col *types.AutomaticTapeCreationRule - if err := awsAwsjson11_deserializeDocumentAutomaticTapeCreationRule(&col, value); err != nil { + var col types.AutomaticTapeCreationRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAutomaticTapeCreationRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9756,7 +9760,7 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolume(v **types.CachediSCSIVolu if !ok { return fmt.Errorf("expected KMSKey to be of type string, got %T instead", value) } - sv.KMSKey = &jtv + sv.KMSKey = ptr.String(jtv) } case "SourceSnapshotId": @@ -9765,7 +9769,7 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolume(v **types.CachediSCSIVolu if !ok { return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.SourceSnapshotId = &jtv + sv.SourceSnapshotId = ptr.String(jtv) } case "TargetName": @@ -9774,7 +9778,7 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolume(v **types.CachediSCSIVolu if !ok { return fmt.Errorf("expected TargetName to be of type string, got %T instead", value) } - sv.TargetName = &jtv + sv.TargetName = ptr.String(jtv) } case "VolumeARN": @@ -9783,7 +9787,7 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolume(v **types.CachediSCSIVolu if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } case "VolumeAttachmentStatus": @@ -9792,7 +9796,7 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolume(v **types.CachediSCSIVolu if !ok { return fmt.Errorf("expected VolumeAttachmentStatus to be of type string, got %T instead", value) } - sv.VolumeAttachmentStatus = &jtv + sv.VolumeAttachmentStatus = ptr.String(jtv) } case "VolumeId": @@ -9801,7 +9805,7 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolume(v **types.CachediSCSIVolu if !ok { return fmt.Errorf("expected VolumeId to be of type string, got %T instead", value) } - sv.VolumeId = &jtv + sv.VolumeId = ptr.String(jtv) } case "VolumeiSCSIAttributes": @@ -9819,7 +9823,7 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolume(v **types.CachediSCSIVolu if err != nil { return err } - sv.VolumeProgress = &f64 + sv.VolumeProgress = ptr.Float64(f64) } case "VolumeSizeInBytes": @@ -9832,7 +9836,7 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolume(v **types.CachediSCSIVolu if err != nil { return err } - sv.VolumeSizeInBytes = &i64 + sv.VolumeSizeInBytes = i64 } case "VolumeStatus": @@ -9841,7 +9845,7 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolume(v **types.CachediSCSIVolu if !ok { return fmt.Errorf("expected VolumeStatus to be of type string, got %T instead", value) } - sv.VolumeStatus = &jtv + sv.VolumeStatus = ptr.String(jtv) } case "VolumeType": @@ -9850,7 +9854,7 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolume(v **types.CachediSCSIVolu if !ok { return fmt.Errorf("expected VolumeType to be of type string, got %T instead", value) } - sv.VolumeType = &jtv + sv.VolumeType = ptr.String(jtv) } case "VolumeUsedInBytes": @@ -9863,7 +9867,7 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolume(v **types.CachediSCSIVolu if err != nil { return err } - sv.VolumeUsedInBytes = &i64 + sv.VolumeUsedInBytes = ptr.Int64(i64) } default: @@ -9875,7 +9879,7 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolume(v **types.CachediSCSIVolu return nil } -func awsAwsjson11_deserializeDocumentCachediSCSIVolumes(v *[]*types.CachediSCSIVolume, value interface{}) error { +func awsAwsjson11_deserializeDocumentCachediSCSIVolumes(v *[]types.CachediSCSIVolume, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9888,18 +9892,20 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolumes(v *[]*types.CachediSCSIV return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CachediSCSIVolume + var cv []types.CachediSCSIVolume if *v == nil { - cv = []*types.CachediSCSIVolume{} + cv = []types.CachediSCSIVolume{} } else { cv = *v } for _, value := range shape { - var col *types.CachediSCSIVolume - if err := awsAwsjson11_deserializeDocumentCachediSCSIVolume(&col, value); err != nil { + var col types.CachediSCSIVolume + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCachediSCSIVolume(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9907,7 +9913,7 @@ func awsAwsjson11_deserializeDocumentCachediSCSIVolumes(v *[]*types.CachediSCSIV return nil } -func awsAwsjson11_deserializeDocumentChapCredentials(v *[]*types.ChapInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentChapCredentials(v *[]types.ChapInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9920,18 +9926,20 @@ func awsAwsjson11_deserializeDocumentChapCredentials(v *[]*types.ChapInfo, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ChapInfo + var cv []types.ChapInfo if *v == nil { - cv = []*types.ChapInfo{} + cv = []types.ChapInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ChapInfo - if err := awsAwsjson11_deserializeDocumentChapInfo(&col, value); err != nil { + var col types.ChapInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentChapInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9967,7 +9975,7 @@ func awsAwsjson11_deserializeDocumentChapInfo(v **types.ChapInfo, value interfac if !ok { return fmt.Errorf("expected IqnName to be of type string, got %T instead", value) } - sv.InitiatorName = &jtv + sv.InitiatorName = ptr.String(jtv) } case "SecretToAuthenticateInitiator": @@ -9976,7 +9984,7 @@ func awsAwsjson11_deserializeDocumentChapInfo(v **types.ChapInfo, value interfac if !ok { return fmt.Errorf("expected ChapSecret to be of type string, got %T instead", value) } - sv.SecretToAuthenticateInitiator = &jtv + sv.SecretToAuthenticateInitiator = ptr.String(jtv) } case "SecretToAuthenticateTarget": @@ -9985,7 +9993,7 @@ func awsAwsjson11_deserializeDocumentChapInfo(v **types.ChapInfo, value interfac if !ok { return fmt.Errorf("expected ChapSecret to be of type string, got %T instead", value) } - sv.SecretToAuthenticateTarget = &jtv + sv.SecretToAuthenticateTarget = ptr.String(jtv) } case "TargetARN": @@ -9994,7 +10002,7 @@ func awsAwsjson11_deserializeDocumentChapInfo(v **types.ChapInfo, value interfac if !ok { return fmt.Errorf("expected TargetARN to be of type string, got %T instead", value) } - sv.TargetARN = &jtv + sv.TargetARN = ptr.String(jtv) } default: @@ -10034,7 +10042,7 @@ func awsAwsjson11_deserializeDocumentDeviceiSCSIAttributes(v **types.DeviceiSCSI if !ok { return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) } - sv.ChapEnabled = &jtv + sv.ChapEnabled = jtv } case "NetworkInterfaceId": @@ -10043,7 +10051,7 @@ func awsAwsjson11_deserializeDocumentDeviceiSCSIAttributes(v **types.DeviceiSCSI if !ok { return fmt.Errorf("expected NetworkInterfaceId to be of type string, got %T instead", value) } - sv.NetworkInterfaceId = &jtv + sv.NetworkInterfaceId = ptr.String(jtv) } case "NetworkInterfacePort": @@ -10056,7 +10064,7 @@ func awsAwsjson11_deserializeDocumentDeviceiSCSIAttributes(v **types.DeviceiSCSI if err != nil { return err } - sv.NetworkInterfacePort = ptr.Int32(int32(i64)) + sv.NetworkInterfacePort = int32(i64) } case "TargetARN": @@ -10065,7 +10073,7 @@ func awsAwsjson11_deserializeDocumentDeviceiSCSIAttributes(v **types.DeviceiSCSI if !ok { return fmt.Errorf("expected TargetARN to be of type string, got %T instead", value) } - sv.TargetARN = &jtv + sv.TargetARN = ptr.String(jtv) } default: @@ -10105,7 +10113,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.DiskAllocationResource = &jtv + sv.DiskAllocationResource = ptr.String(jtv) } case "DiskAllocationType": @@ -10114,7 +10122,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected DiskAllocationType to be of type string, got %T instead", value) } - sv.DiskAllocationType = &jtv + sv.DiskAllocationType = ptr.String(jtv) } case "DiskAttributeList": @@ -10128,7 +10136,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected DiskId to be of type string, got %T instead", value) } - sv.DiskId = &jtv + sv.DiskId = ptr.String(jtv) } case "DiskNode": @@ -10137,7 +10145,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.DiskNode = &jtv + sv.DiskNode = ptr.String(jtv) } case "DiskPath": @@ -10146,7 +10154,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.DiskPath = &jtv + sv.DiskPath = ptr.String(jtv) } case "DiskSizeInBytes": @@ -10159,7 +10167,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if err != nil { return err } - sv.DiskSizeInBytes = &i64 + sv.DiskSizeInBytes = i64 } case "DiskStatus": @@ -10168,7 +10176,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.DiskStatus = &jtv + sv.DiskStatus = ptr.String(jtv) } default: @@ -10180,7 +10188,7 @@ func awsAwsjson11_deserializeDocumentDisk(v **types.Disk, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentDiskAttributeList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDiskAttributeList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10193,21 +10201,21 @@ func awsAwsjson11_deserializeDocumentDiskAttributeList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DiskAttribute to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10216,7 +10224,7 @@ func awsAwsjson11_deserializeDocumentDiskAttributeList(v *[]*string, value inter return nil } -func awsAwsjson11_deserializeDocumentDiskIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDiskIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10229,21 +10237,21 @@ func awsAwsjson11_deserializeDocumentDiskIds(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DiskId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10252,7 +10260,7 @@ func awsAwsjson11_deserializeDocumentDiskIds(v *[]*string, value interface{}) er return nil } -func awsAwsjson11_deserializeDocumentDisks(v *[]*types.Disk, value interface{}) error { +func awsAwsjson11_deserializeDocumentDisks(v *[]types.Disk, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10265,18 +10273,20 @@ func awsAwsjson11_deserializeDocumentDisks(v *[]*types.Disk, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Disk + var cv []types.Disk if *v == nil { - cv = []*types.Disk{} + cv = []types.Disk{} } else { cv = *v } for _, value := range shape { - var col *types.Disk - if err := awsAwsjson11_deserializeDocumentDisk(&col, value); err != nil { + var col types.Disk + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDisk(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10284,7 +10294,7 @@ func awsAwsjson11_deserializeDocumentDisks(v *[]*types.Disk, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentErrorDetails(v *map[string]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentErrorDetails(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10297,21 +10307,21 @@ func awsAwsjson11_deserializeDocumentErrorDetails(v *map[string]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -10320,7 +10330,7 @@ func awsAwsjson11_deserializeDocumentErrorDetails(v *map[string]*string, value i return nil } -func awsAwsjson11_deserializeDocumentFileShareClientList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentFileShareClientList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10333,21 +10343,21 @@ func awsAwsjson11_deserializeDocumentFileShareClientList(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IPV4AddressCIDR to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10384,7 +10394,7 @@ func awsAwsjson11_deserializeDocumentFileShareInfo(v **types.FileShareInfo, valu if !ok { return fmt.Errorf("expected FileShareARN to be of type string, got %T instead", value) } - sv.FileShareARN = &jtv + sv.FileShareARN = ptr.String(jtv) } case "FileShareId": @@ -10393,7 +10403,7 @@ func awsAwsjson11_deserializeDocumentFileShareInfo(v **types.FileShareInfo, valu if !ok { return fmt.Errorf("expected FileShareId to be of type string, got %T instead", value) } - sv.FileShareId = &jtv + sv.FileShareId = ptr.String(jtv) } case "FileShareStatus": @@ -10402,7 +10412,7 @@ func awsAwsjson11_deserializeDocumentFileShareInfo(v **types.FileShareInfo, valu if !ok { return fmt.Errorf("expected FileShareStatus to be of type string, got %T instead", value) } - sv.FileShareStatus = &jtv + sv.FileShareStatus = ptr.String(jtv) } case "FileShareType": @@ -10420,7 +10430,7 @@ func awsAwsjson11_deserializeDocumentFileShareInfo(v **types.FileShareInfo, valu if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -10432,7 +10442,7 @@ func awsAwsjson11_deserializeDocumentFileShareInfo(v **types.FileShareInfo, valu return nil } -func awsAwsjson11_deserializeDocumentFileShareInfoList(v *[]*types.FileShareInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentFileShareInfoList(v *[]types.FileShareInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10445,18 +10455,20 @@ func awsAwsjson11_deserializeDocumentFileShareInfoList(v *[]*types.FileShareInfo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FileShareInfo + var cv []types.FileShareInfo if *v == nil { - cv = []*types.FileShareInfo{} + cv = []types.FileShareInfo{} } else { cv = *v } for _, value := range shape { - var col *types.FileShareInfo - if err := awsAwsjson11_deserializeDocumentFileShareInfo(&col, value); err != nil { + var col types.FileShareInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFileShareInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10464,7 +10476,7 @@ func awsAwsjson11_deserializeDocumentFileShareInfoList(v *[]*types.FileShareInfo return nil } -func awsAwsjson11_deserializeDocumentFileShareUserList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentFileShareUserList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10477,21 +10489,21 @@ func awsAwsjson11_deserializeDocumentFileShareUserList(v *[]*string, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected FileShareUser to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10528,7 +10540,7 @@ func awsAwsjson11_deserializeDocumentGatewayInfo(v **types.GatewayInfo, value in if !ok { return fmt.Errorf("expected Ec2InstanceId to be of type string, got %T instead", value) } - sv.Ec2InstanceId = &jtv + sv.Ec2InstanceId = ptr.String(jtv) } case "Ec2InstanceRegion": @@ -10537,7 +10549,7 @@ func awsAwsjson11_deserializeDocumentGatewayInfo(v **types.GatewayInfo, value in if !ok { return fmt.Errorf("expected Ec2InstanceRegion to be of type string, got %T instead", value) } - sv.Ec2InstanceRegion = &jtv + sv.Ec2InstanceRegion = ptr.String(jtv) } case "GatewayARN": @@ -10546,7 +10558,7 @@ func awsAwsjson11_deserializeDocumentGatewayInfo(v **types.GatewayInfo, value in if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "GatewayId": @@ -10555,7 +10567,7 @@ func awsAwsjson11_deserializeDocumentGatewayInfo(v **types.GatewayInfo, value in if !ok { return fmt.Errorf("expected GatewayId to be of type string, got %T instead", value) } - sv.GatewayId = &jtv + sv.GatewayId = ptr.String(jtv) } case "GatewayName": @@ -10564,7 +10576,7 @@ func awsAwsjson11_deserializeDocumentGatewayInfo(v **types.GatewayInfo, value in if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.GatewayName = &jtv + sv.GatewayName = ptr.String(jtv) } case "GatewayOperationalState": @@ -10573,7 +10585,7 @@ func awsAwsjson11_deserializeDocumentGatewayInfo(v **types.GatewayInfo, value in if !ok { return fmt.Errorf("expected GatewayOperationalState to be of type string, got %T instead", value) } - sv.GatewayOperationalState = &jtv + sv.GatewayOperationalState = ptr.String(jtv) } case "GatewayType": @@ -10582,7 +10594,7 @@ func awsAwsjson11_deserializeDocumentGatewayInfo(v **types.GatewayInfo, value in if !ok { return fmt.Errorf("expected GatewayType to be of type string, got %T instead", value) } - sv.GatewayType = &jtv + sv.GatewayType = ptr.String(jtv) } default: @@ -10594,7 +10606,7 @@ func awsAwsjson11_deserializeDocumentGatewayInfo(v **types.GatewayInfo, value in return nil } -func awsAwsjson11_deserializeDocumentGatewayNetworkInterfaces(v *[]*types.NetworkInterface, value interface{}) error { +func awsAwsjson11_deserializeDocumentGatewayNetworkInterfaces(v *[]types.NetworkInterface, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10607,18 +10619,20 @@ func awsAwsjson11_deserializeDocumentGatewayNetworkInterfaces(v *[]*types.Networ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NetworkInterface + var cv []types.NetworkInterface if *v == nil { - cv = []*types.NetworkInterface{} + cv = []types.NetworkInterface{} } else { cv = *v } for _, value := range shape { - var col *types.NetworkInterface - if err := awsAwsjson11_deserializeDocumentNetworkInterface(&col, value); err != nil { + var col types.NetworkInterface + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNetworkInterface(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10626,7 +10640,7 @@ func awsAwsjson11_deserializeDocumentGatewayNetworkInterfaces(v *[]*types.Networ return nil } -func awsAwsjson11_deserializeDocumentGateways(v *[]*types.GatewayInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentGateways(v *[]types.GatewayInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10639,18 +10653,20 @@ func awsAwsjson11_deserializeDocumentGateways(v *[]*types.GatewayInfo, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GatewayInfo + var cv []types.GatewayInfo if *v == nil { - cv = []*types.GatewayInfo{} + cv = []types.GatewayInfo{} } else { cv = *v } for _, value := range shape { - var col *types.GatewayInfo - if err := awsAwsjson11_deserializeDocumentGatewayInfo(&col, value); err != nil { + var col types.GatewayInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGatewayInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10658,7 +10674,7 @@ func awsAwsjson11_deserializeDocumentGateways(v *[]*types.GatewayInfo, value int return nil } -func awsAwsjson11_deserializeDocumentInitiators(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentInitiators(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10671,21 +10687,21 @@ func awsAwsjson11_deserializeDocumentInitiators(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Initiator to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -10727,7 +10743,7 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10772,7 +10788,7 @@ func awsAwsjson11_deserializeDocumentInvalidGatewayRequestException(v **types.In if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -10812,7 +10828,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Ipv4Address = &jtv + sv.Ipv4Address = ptr.String(jtv) } case "Ipv6Address": @@ -10821,7 +10837,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Ipv6Address = &jtv + sv.Ipv6Address = ptr.String(jtv) } case "MacAddress": @@ -10830,7 +10846,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterface(v **types.NetworkInterface if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.MacAddress = &jtv + sv.MacAddress = ptr.String(jtv) } default: @@ -10870,7 +10886,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareDefaults(v **types.NFSFileShare if !ok { return fmt.Errorf("expected PermissionMode to be of type string, got %T instead", value) } - sv.DirectoryMode = &jtv + sv.DirectoryMode = ptr.String(jtv) } case "FileMode": @@ -10879,7 +10895,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareDefaults(v **types.NFSFileShare if !ok { return fmt.Errorf("expected PermissionMode to be of type string, got %T instead", value) } - sv.FileMode = &jtv + sv.FileMode = ptr.String(jtv) } case "GroupId": @@ -10892,7 +10908,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareDefaults(v **types.NFSFileShare if err != nil { return err } - sv.GroupId = &i64 + sv.GroupId = ptr.Int64(i64) } case "OwnerId": @@ -10905,7 +10921,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareDefaults(v **types.NFSFileShare if err != nil { return err } - sv.OwnerId = &i64 + sv.OwnerId = ptr.Int64(i64) } default: @@ -10955,7 +10971,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected StorageClass to be of type string, got %T instead", value) } - sv.DefaultStorageClass = &jtv + sv.DefaultStorageClass = ptr.String(jtv) } case "FileShareARN": @@ -10964,7 +10980,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected FileShareARN to be of type string, got %T instead", value) } - sv.FileShareARN = &jtv + sv.FileShareARN = ptr.String(jtv) } case "FileShareId": @@ -10973,7 +10989,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected FileShareId to be of type string, got %T instead", value) } - sv.FileShareId = &jtv + sv.FileShareId = ptr.String(jtv) } case "FileShareName": @@ -10982,7 +10998,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected FileShareName to be of type string, got %T instead", value) } - sv.FileShareName = &jtv + sv.FileShareName = ptr.String(jtv) } case "FileShareStatus": @@ -10991,7 +11007,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected FileShareStatus to be of type string, got %T instead", value) } - sv.FileShareStatus = &jtv + sv.FileShareStatus = ptr.String(jtv) } case "GatewayARN": @@ -11000,7 +11016,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "GuessMIMETypeEnabled": @@ -11009,7 +11025,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.GuessMIMETypeEnabled = &jtv + sv.GuessMIMETypeEnabled = ptr.Bool(jtv) } case "KMSEncrypted": @@ -11018,7 +11034,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) } - sv.KMSEncrypted = &jtv + sv.KMSEncrypted = jtv } case "KMSKey": @@ -11027,7 +11043,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected KMSKey to be of type string, got %T instead", value) } - sv.KMSKey = &jtv + sv.KMSKey = ptr.String(jtv) } case "LocationARN": @@ -11036,7 +11052,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected LocationARN to be of type string, got %T instead", value) } - sv.LocationARN = &jtv + sv.LocationARN = ptr.String(jtv) } case "NFSFileShareDefaults": @@ -11050,7 +11066,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected NotificationPolicy to be of type string, got %T instead", value) } - sv.NotificationPolicy = &jtv + sv.NotificationPolicy = ptr.String(jtv) } case "ObjectACL": @@ -11068,7 +11084,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "ReadOnly": @@ -11077,7 +11093,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ReadOnly = &jtv + sv.ReadOnly = ptr.Bool(jtv) } case "RequesterPays": @@ -11086,7 +11102,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RequesterPays = &jtv + sv.RequesterPays = ptr.Bool(jtv) } case "Role": @@ -11095,7 +11111,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected Role to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "Squash": @@ -11104,7 +11120,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo if !ok { return fmt.Errorf("expected Squash to be of type string, got %T instead", value) } - sv.Squash = &jtv + sv.Squash = ptr.String(jtv) } case "Tags": @@ -11121,7 +11137,7 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfo(v **types.NFSFileShareInfo return nil } -func awsAwsjson11_deserializeDocumentNFSFileShareInfoList(v *[]*types.NFSFileShareInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentNFSFileShareInfoList(v *[]types.NFSFileShareInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11134,18 +11150,20 @@ func awsAwsjson11_deserializeDocumentNFSFileShareInfoList(v *[]*types.NFSFileSha return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.NFSFileShareInfo + var cv []types.NFSFileShareInfo if *v == nil { - cv = []*types.NFSFileShareInfo{} + cv = []types.NFSFileShareInfo{} } else { cv = *v } for _, value := range shape { - var col *types.NFSFileShareInfo - if err := awsAwsjson11_deserializeDocumentNFSFileShareInfo(&col, value); err != nil { + var col types.NFSFileShareInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNFSFileShareInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11181,7 +11199,7 @@ func awsAwsjson11_deserializeDocumentPoolInfo(v **types.PoolInfo, value interfac if !ok { return fmt.Errorf("expected PoolARN to be of type string, got %T instead", value) } - sv.PoolARN = &jtv + sv.PoolARN = ptr.String(jtv) } case "PoolName": @@ -11190,7 +11208,7 @@ func awsAwsjson11_deserializeDocumentPoolInfo(v **types.PoolInfo, value interfac if !ok { return fmt.Errorf("expected PoolName to be of type string, got %T instead", value) } - sv.PoolName = &jtv + sv.PoolName = ptr.String(jtv) } case "PoolStatus": @@ -11242,7 +11260,7 @@ func awsAwsjson11_deserializeDocumentPoolInfo(v **types.PoolInfo, value interfac return nil } -func awsAwsjson11_deserializeDocumentPoolInfos(v *[]*types.PoolInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentPoolInfos(v *[]types.PoolInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11255,18 +11273,20 @@ func awsAwsjson11_deserializeDocumentPoolInfos(v *[]*types.PoolInfo, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PoolInfo + var cv []types.PoolInfo if *v == nil { - cv = []*types.PoolInfo{} + cv = []types.PoolInfo{} } else { cv = *v } for _, value := range shape { - var col *types.PoolInfo - if err := awsAwsjson11_deserializeDocumentPoolInfo(&col, value); err != nil { + var col types.PoolInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPoolInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11307,7 +11327,7 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableError(v **types.ServiceUn if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -11347,7 +11367,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AccessBasedEnumeration = &jtv + sv.AccessBasedEnumeration = ptr.Bool(jtv) } case "AdminUserList": @@ -11361,7 +11381,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected AuditDestinationARN to be of type string, got %T instead", value) } - sv.AuditDestinationARN = &jtv + sv.AuditDestinationARN = ptr.String(jtv) } case "Authentication": @@ -11370,7 +11390,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected Authentication to be of type string, got %T instead", value) } - sv.Authentication = &jtv + sv.Authentication = ptr.String(jtv) } case "CacheAttributes": @@ -11393,7 +11413,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected StorageClass to be of type string, got %T instead", value) } - sv.DefaultStorageClass = &jtv + sv.DefaultStorageClass = ptr.String(jtv) } case "FileShareARN": @@ -11402,7 +11422,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected FileShareARN to be of type string, got %T instead", value) } - sv.FileShareARN = &jtv + sv.FileShareARN = ptr.String(jtv) } case "FileShareId": @@ -11411,7 +11431,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected FileShareId to be of type string, got %T instead", value) } - sv.FileShareId = &jtv + sv.FileShareId = ptr.String(jtv) } case "FileShareName": @@ -11420,7 +11440,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected FileShareName to be of type string, got %T instead", value) } - sv.FileShareName = &jtv + sv.FileShareName = ptr.String(jtv) } case "FileShareStatus": @@ -11429,7 +11449,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected FileShareStatus to be of type string, got %T instead", value) } - sv.FileShareStatus = &jtv + sv.FileShareStatus = ptr.String(jtv) } case "GatewayARN": @@ -11438,7 +11458,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "GuessMIMETypeEnabled": @@ -11447,7 +11467,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.GuessMIMETypeEnabled = &jtv + sv.GuessMIMETypeEnabled = ptr.Bool(jtv) } case "InvalidUserList": @@ -11461,7 +11481,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) } - sv.KMSEncrypted = &jtv + sv.KMSEncrypted = jtv } case "KMSKey": @@ -11470,7 +11490,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected KMSKey to be of type string, got %T instead", value) } - sv.KMSKey = &jtv + sv.KMSKey = ptr.String(jtv) } case "LocationARN": @@ -11479,7 +11499,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected LocationARN to be of type string, got %T instead", value) } - sv.LocationARN = &jtv + sv.LocationARN = ptr.String(jtv) } case "NotificationPolicy": @@ -11488,7 +11508,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected NotificationPolicy to be of type string, got %T instead", value) } - sv.NotificationPolicy = &jtv + sv.NotificationPolicy = ptr.String(jtv) } case "ObjectACL": @@ -11506,7 +11526,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected Path to be of type string, got %T instead", value) } - sv.Path = &jtv + sv.Path = ptr.String(jtv) } case "ReadOnly": @@ -11515,7 +11535,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ReadOnly = &jtv + sv.ReadOnly = ptr.Bool(jtv) } case "RequesterPays": @@ -11524,7 +11544,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RequesterPays = &jtv + sv.RequesterPays = ptr.Bool(jtv) } case "Role": @@ -11533,7 +11553,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected Role to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "SMBACLEnabled": @@ -11542,7 +11562,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.SMBACLEnabled = &jtv + sv.SMBACLEnabled = ptr.Bool(jtv) } case "Tags": @@ -11564,7 +11584,7 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfo(v **types.SMBFileShareInfo return nil } -func awsAwsjson11_deserializeDocumentSMBFileShareInfoList(v *[]*types.SMBFileShareInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentSMBFileShareInfoList(v *[]types.SMBFileShareInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11577,18 +11597,20 @@ func awsAwsjson11_deserializeDocumentSMBFileShareInfoList(v *[]*types.SMBFileSha return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SMBFileShareInfo + var cv []types.SMBFileShareInfo if *v == nil { - cv = []*types.SMBFileShareInfo{} + cv = []types.SMBFileShareInfo{} } else { cv = *v } for _, value := range shape { - var col *types.SMBFileShareInfo - if err := awsAwsjson11_deserializeDocumentSMBFileShareInfo(&col, value); err != nil { + var col types.SMBFileShareInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSMBFileShareInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11682,7 +11704,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu if !ok { return fmt.Errorf("expected KMSKey to be of type string, got %T instead", value) } - sv.KMSKey = &jtv + sv.KMSKey = ptr.String(jtv) } case "PreservedExistingData": @@ -11691,7 +11713,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu if !ok { return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) } - sv.PreservedExistingData = &jtv + sv.PreservedExistingData = jtv } case "SourceSnapshotId": @@ -11700,7 +11722,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu if !ok { return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.SourceSnapshotId = &jtv + sv.SourceSnapshotId = ptr.String(jtv) } case "TargetName": @@ -11709,7 +11731,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu if !ok { return fmt.Errorf("expected TargetName to be of type string, got %T instead", value) } - sv.TargetName = &jtv + sv.TargetName = ptr.String(jtv) } case "VolumeARN": @@ -11718,7 +11740,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } case "VolumeAttachmentStatus": @@ -11727,7 +11749,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu if !ok { return fmt.Errorf("expected VolumeAttachmentStatus to be of type string, got %T instead", value) } - sv.VolumeAttachmentStatus = &jtv + sv.VolumeAttachmentStatus = ptr.String(jtv) } case "VolumeDiskId": @@ -11736,7 +11758,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu if !ok { return fmt.Errorf("expected DiskId to be of type string, got %T instead", value) } - sv.VolumeDiskId = &jtv + sv.VolumeDiskId = ptr.String(jtv) } case "VolumeId": @@ -11745,7 +11767,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu if !ok { return fmt.Errorf("expected VolumeId to be of type string, got %T instead", value) } - sv.VolumeId = &jtv + sv.VolumeId = ptr.String(jtv) } case "VolumeiSCSIAttributes": @@ -11763,7 +11785,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu if err != nil { return err } - sv.VolumeProgress = &f64 + sv.VolumeProgress = ptr.Float64(f64) } case "VolumeSizeInBytes": @@ -11776,7 +11798,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu if err != nil { return err } - sv.VolumeSizeInBytes = &i64 + sv.VolumeSizeInBytes = i64 } case "VolumeStatus": @@ -11785,7 +11807,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu if !ok { return fmt.Errorf("expected VolumeStatus to be of type string, got %T instead", value) } - sv.VolumeStatus = &jtv + sv.VolumeStatus = ptr.String(jtv) } case "VolumeType": @@ -11794,7 +11816,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu if !ok { return fmt.Errorf("expected VolumeType to be of type string, got %T instead", value) } - sv.VolumeType = &jtv + sv.VolumeType = ptr.String(jtv) } case "VolumeUsedInBytes": @@ -11807,7 +11829,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu if err != nil { return err } - sv.VolumeUsedInBytes = &i64 + sv.VolumeUsedInBytes = ptr.Int64(i64) } default: @@ -11819,7 +11841,7 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolume(v **types.StorediSCSIVolu return nil } -func awsAwsjson11_deserializeDocumentStorediSCSIVolumes(v *[]*types.StorediSCSIVolume, value interface{}) error { +func awsAwsjson11_deserializeDocumentStorediSCSIVolumes(v *[]types.StorediSCSIVolume, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11832,18 +11854,20 @@ func awsAwsjson11_deserializeDocumentStorediSCSIVolumes(v *[]*types.StorediSCSIV return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.StorediSCSIVolume + var cv []types.StorediSCSIVolume if *v == nil { - cv = []*types.StorediSCSIVolume{} + cv = []types.StorediSCSIVolume{} } else { cv = *v } for _, value := range shape { - var col *types.StorediSCSIVolume - if err := awsAwsjson11_deserializeDocumentStorediSCSIVolume(&col, value); err != nil { + var col types.StorediSCSIVolume + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStorediSCSIVolume(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11879,7 +11903,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -11888,7 +11912,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -11900,7 +11924,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11913,18 +11937,20 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11960,7 +11986,7 @@ func awsAwsjson11_deserializeDocumentTape(v **types.Tape, value interface{}) err if !ok { return fmt.Errorf("expected KMSKey to be of type string, got %T instead", value) } - sv.KMSKey = &jtv + sv.KMSKey = ptr.String(jtv) } case "PoolEntryDate": @@ -11982,7 +12008,7 @@ func awsAwsjson11_deserializeDocumentTape(v **types.Tape, value interface{}) err if !ok { return fmt.Errorf("expected PoolId to be of type string, got %T instead", value) } - sv.PoolId = &jtv + sv.PoolId = ptr.String(jtv) } case "Progress": @@ -11995,7 +12021,7 @@ func awsAwsjson11_deserializeDocumentTape(v **types.Tape, value interface{}) err if err != nil { return err } - sv.Progress = &f64 + sv.Progress = ptr.Float64(f64) } case "RetentionStartDate": @@ -12017,7 +12043,7 @@ func awsAwsjson11_deserializeDocumentTape(v **types.Tape, value interface{}) err if !ok { return fmt.Errorf("expected TapeARN to be of type string, got %T instead", value) } - sv.TapeARN = &jtv + sv.TapeARN = ptr.String(jtv) } case "TapeBarcode": @@ -12026,7 +12052,7 @@ func awsAwsjson11_deserializeDocumentTape(v **types.Tape, value interface{}) err if !ok { return fmt.Errorf("expected TapeBarcode to be of type string, got %T instead", value) } - sv.TapeBarcode = &jtv + sv.TapeBarcode = ptr.String(jtv) } case "TapeCreatedDate": @@ -12052,7 +12078,7 @@ func awsAwsjson11_deserializeDocumentTape(v **types.Tape, value interface{}) err if err != nil { return err } - sv.TapeSizeInBytes = &i64 + sv.TapeSizeInBytes = ptr.Int64(i64) } case "TapeStatus": @@ -12061,7 +12087,7 @@ func awsAwsjson11_deserializeDocumentTape(v **types.Tape, value interface{}) err if !ok { return fmt.Errorf("expected TapeStatus to be of type string, got %T instead", value) } - sv.TapeStatus = &jtv + sv.TapeStatus = ptr.String(jtv) } case "TapeUsedInBytes": @@ -12074,7 +12100,7 @@ func awsAwsjson11_deserializeDocumentTape(v **types.Tape, value interface{}) err if err != nil { return err } - sv.TapeUsedInBytes = &i64 + sv.TapeUsedInBytes = ptr.Int64(i64) } case "VTLDevice": @@ -12083,7 +12109,7 @@ func awsAwsjson11_deserializeDocumentTape(v **types.Tape, value interface{}) err if !ok { return fmt.Errorf("expected VTLDeviceARN to be of type string, got %T instead", value) } - sv.VTLDevice = &jtv + sv.VTLDevice = ptr.String(jtv) } case "Worm": @@ -12092,7 +12118,7 @@ func awsAwsjson11_deserializeDocumentTape(v **types.Tape, value interface{}) err if !ok { return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) } - sv.Worm = &jtv + sv.Worm = jtv } default: @@ -12145,7 +12171,7 @@ func awsAwsjson11_deserializeDocumentTapeArchive(v **types.TapeArchive, value in if !ok { return fmt.Errorf("expected KMSKey to be of type string, got %T instead", value) } - sv.KMSKey = &jtv + sv.KMSKey = ptr.String(jtv) } case "PoolEntryDate": @@ -12167,7 +12193,7 @@ func awsAwsjson11_deserializeDocumentTapeArchive(v **types.TapeArchive, value in if !ok { return fmt.Errorf("expected PoolId to be of type string, got %T instead", value) } - sv.PoolId = &jtv + sv.PoolId = ptr.String(jtv) } case "RetentionStartDate": @@ -12189,7 +12215,7 @@ func awsAwsjson11_deserializeDocumentTapeArchive(v **types.TapeArchive, value in if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.RetrievedTo = &jtv + sv.RetrievedTo = ptr.String(jtv) } case "TapeARN": @@ -12198,7 +12224,7 @@ func awsAwsjson11_deserializeDocumentTapeArchive(v **types.TapeArchive, value in if !ok { return fmt.Errorf("expected TapeARN to be of type string, got %T instead", value) } - sv.TapeARN = &jtv + sv.TapeARN = ptr.String(jtv) } case "TapeBarcode": @@ -12207,7 +12233,7 @@ func awsAwsjson11_deserializeDocumentTapeArchive(v **types.TapeArchive, value in if !ok { return fmt.Errorf("expected TapeBarcode to be of type string, got %T instead", value) } - sv.TapeBarcode = &jtv + sv.TapeBarcode = ptr.String(jtv) } case "TapeCreatedDate": @@ -12233,7 +12259,7 @@ func awsAwsjson11_deserializeDocumentTapeArchive(v **types.TapeArchive, value in if err != nil { return err } - sv.TapeSizeInBytes = &i64 + sv.TapeSizeInBytes = ptr.Int64(i64) } case "TapeStatus": @@ -12242,7 +12268,7 @@ func awsAwsjson11_deserializeDocumentTapeArchive(v **types.TapeArchive, value in if !ok { return fmt.Errorf("expected TapeArchiveStatus to be of type string, got %T instead", value) } - sv.TapeStatus = &jtv + sv.TapeStatus = ptr.String(jtv) } case "TapeUsedInBytes": @@ -12255,7 +12281,7 @@ func awsAwsjson11_deserializeDocumentTapeArchive(v **types.TapeArchive, value in if err != nil { return err } - sv.TapeUsedInBytes = &i64 + sv.TapeUsedInBytes = ptr.Int64(i64) } case "Worm": @@ -12264,7 +12290,7 @@ func awsAwsjson11_deserializeDocumentTapeArchive(v **types.TapeArchive, value in if !ok { return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) } - sv.Worm = &jtv + sv.Worm = jtv } default: @@ -12276,7 +12302,7 @@ func awsAwsjson11_deserializeDocumentTapeArchive(v **types.TapeArchive, value in return nil } -func awsAwsjson11_deserializeDocumentTapeArchives(v *[]*types.TapeArchive, value interface{}) error { +func awsAwsjson11_deserializeDocumentTapeArchives(v *[]types.TapeArchive, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12289,18 +12315,20 @@ func awsAwsjson11_deserializeDocumentTapeArchives(v *[]*types.TapeArchive, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TapeArchive + var cv []types.TapeArchive if *v == nil { - cv = []*types.TapeArchive{} + cv = []types.TapeArchive{} } else { cv = *v } for _, value := range shape { - var col *types.TapeArchive - if err := awsAwsjson11_deserializeDocumentTapeArchive(&col, value); err != nil { + var col types.TapeArchive + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTapeArchive(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12308,7 +12336,7 @@ func awsAwsjson11_deserializeDocumentTapeArchives(v *[]*types.TapeArchive, value return nil } -func awsAwsjson11_deserializeDocumentTapeARNs(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTapeARNs(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12321,21 +12349,21 @@ func awsAwsjson11_deserializeDocumentTapeARNs(v *[]*string, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TapeARN to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -12372,7 +12400,7 @@ func awsAwsjson11_deserializeDocumentTapeInfo(v **types.TapeInfo, value interfac if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "PoolEntryDate": @@ -12394,7 +12422,7 @@ func awsAwsjson11_deserializeDocumentTapeInfo(v **types.TapeInfo, value interfac if !ok { return fmt.Errorf("expected PoolId to be of type string, got %T instead", value) } - sv.PoolId = &jtv + sv.PoolId = ptr.String(jtv) } case "RetentionStartDate": @@ -12416,7 +12444,7 @@ func awsAwsjson11_deserializeDocumentTapeInfo(v **types.TapeInfo, value interfac if !ok { return fmt.Errorf("expected TapeARN to be of type string, got %T instead", value) } - sv.TapeARN = &jtv + sv.TapeARN = ptr.String(jtv) } case "TapeBarcode": @@ -12425,7 +12453,7 @@ func awsAwsjson11_deserializeDocumentTapeInfo(v **types.TapeInfo, value interfac if !ok { return fmt.Errorf("expected TapeBarcode to be of type string, got %T instead", value) } - sv.TapeBarcode = &jtv + sv.TapeBarcode = ptr.String(jtv) } case "TapeSizeInBytes": @@ -12438,7 +12466,7 @@ func awsAwsjson11_deserializeDocumentTapeInfo(v **types.TapeInfo, value interfac if err != nil { return err } - sv.TapeSizeInBytes = &i64 + sv.TapeSizeInBytes = ptr.Int64(i64) } case "TapeStatus": @@ -12447,7 +12475,7 @@ func awsAwsjson11_deserializeDocumentTapeInfo(v **types.TapeInfo, value interfac if !ok { return fmt.Errorf("expected TapeStatus to be of type string, got %T instead", value) } - sv.TapeStatus = &jtv + sv.TapeStatus = ptr.String(jtv) } default: @@ -12459,7 +12487,7 @@ func awsAwsjson11_deserializeDocumentTapeInfo(v **types.TapeInfo, value interfac return nil } -func awsAwsjson11_deserializeDocumentTapeInfos(v *[]*types.TapeInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentTapeInfos(v *[]types.TapeInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12472,18 +12500,20 @@ func awsAwsjson11_deserializeDocumentTapeInfos(v *[]*types.TapeInfo, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TapeInfo + var cv []types.TapeInfo if *v == nil { - cv = []*types.TapeInfo{} + cv = []types.TapeInfo{} } else { cv = *v } for _, value := range shape { - var col *types.TapeInfo - if err := awsAwsjson11_deserializeDocumentTapeInfo(&col, value); err != nil { + var col types.TapeInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTapeInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12519,7 +12549,7 @@ func awsAwsjson11_deserializeDocumentTapeRecoveryPointInfo(v **types.TapeRecover if !ok { return fmt.Errorf("expected TapeARN to be of type string, got %T instead", value) } - sv.TapeARN = &jtv + sv.TapeARN = ptr.String(jtv) } case "TapeRecoveryPointTime": @@ -12545,7 +12575,7 @@ func awsAwsjson11_deserializeDocumentTapeRecoveryPointInfo(v **types.TapeRecover if err != nil { return err } - sv.TapeSizeInBytes = &i64 + sv.TapeSizeInBytes = ptr.Int64(i64) } case "TapeStatus": @@ -12554,7 +12584,7 @@ func awsAwsjson11_deserializeDocumentTapeRecoveryPointInfo(v **types.TapeRecover if !ok { return fmt.Errorf("expected TapeRecoveryPointStatus to be of type string, got %T instead", value) } - sv.TapeStatus = &jtv + sv.TapeStatus = ptr.String(jtv) } default: @@ -12566,7 +12596,7 @@ func awsAwsjson11_deserializeDocumentTapeRecoveryPointInfo(v **types.TapeRecover return nil } -func awsAwsjson11_deserializeDocumentTapeRecoveryPointInfos(v *[]*types.TapeRecoveryPointInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentTapeRecoveryPointInfos(v *[]types.TapeRecoveryPointInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12579,18 +12609,20 @@ func awsAwsjson11_deserializeDocumentTapeRecoveryPointInfos(v *[]*types.TapeReco return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TapeRecoveryPointInfo + var cv []types.TapeRecoveryPointInfo if *v == nil { - cv = []*types.TapeRecoveryPointInfo{} + cv = []types.TapeRecoveryPointInfo{} } else { cv = *v } for _, value := range shape { - var col *types.TapeRecoveryPointInfo - if err := awsAwsjson11_deserializeDocumentTapeRecoveryPointInfo(&col, value); err != nil { + var col types.TapeRecoveryPointInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTapeRecoveryPointInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12598,7 +12630,7 @@ func awsAwsjson11_deserializeDocumentTapeRecoveryPointInfos(v *[]*types.TapeReco return nil } -func awsAwsjson11_deserializeDocumentTapes(v *[]*types.Tape, value interface{}) error { +func awsAwsjson11_deserializeDocumentTapes(v *[]types.Tape, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12611,18 +12643,20 @@ func awsAwsjson11_deserializeDocumentTapes(v *[]*types.Tape, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tape + var cv []types.Tape if *v == nil { - cv = []*types.Tape{} + cv = []types.Tape{} } else { cv = *v } for _, value := range shape { - var col *types.Tape - if err := awsAwsjson11_deserializeDocumentTape(&col, value); err != nil { + var col types.Tape + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTape(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12658,7 +12692,7 @@ func awsAwsjson11_deserializeDocumentVolumeInfo(v **types.VolumeInfo, value inte if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "GatewayId": @@ -12667,7 +12701,7 @@ func awsAwsjson11_deserializeDocumentVolumeInfo(v **types.VolumeInfo, value inte if !ok { return fmt.Errorf("expected GatewayId to be of type string, got %T instead", value) } - sv.GatewayId = &jtv + sv.GatewayId = ptr.String(jtv) } case "VolumeARN": @@ -12676,7 +12710,7 @@ func awsAwsjson11_deserializeDocumentVolumeInfo(v **types.VolumeInfo, value inte if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } case "VolumeAttachmentStatus": @@ -12685,7 +12719,7 @@ func awsAwsjson11_deserializeDocumentVolumeInfo(v **types.VolumeInfo, value inte if !ok { return fmt.Errorf("expected VolumeAttachmentStatus to be of type string, got %T instead", value) } - sv.VolumeAttachmentStatus = &jtv + sv.VolumeAttachmentStatus = ptr.String(jtv) } case "VolumeId": @@ -12694,7 +12728,7 @@ func awsAwsjson11_deserializeDocumentVolumeInfo(v **types.VolumeInfo, value inte if !ok { return fmt.Errorf("expected VolumeId to be of type string, got %T instead", value) } - sv.VolumeId = &jtv + sv.VolumeId = ptr.String(jtv) } case "VolumeSizeInBytes": @@ -12707,7 +12741,7 @@ func awsAwsjson11_deserializeDocumentVolumeInfo(v **types.VolumeInfo, value inte if err != nil { return err } - sv.VolumeSizeInBytes = &i64 + sv.VolumeSizeInBytes = i64 } case "VolumeType": @@ -12716,7 +12750,7 @@ func awsAwsjson11_deserializeDocumentVolumeInfo(v **types.VolumeInfo, value inte if !ok { return fmt.Errorf("expected VolumeType to be of type string, got %T instead", value) } - sv.VolumeType = &jtv + sv.VolumeType = ptr.String(jtv) } default: @@ -12728,7 +12762,7 @@ func awsAwsjson11_deserializeDocumentVolumeInfo(v **types.VolumeInfo, value inte return nil } -func awsAwsjson11_deserializeDocumentVolumeInfos(v *[]*types.VolumeInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentVolumeInfos(v *[]types.VolumeInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12741,18 +12775,20 @@ func awsAwsjson11_deserializeDocumentVolumeInfos(v *[]*types.VolumeInfo, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VolumeInfo + var cv []types.VolumeInfo if *v == nil { - cv = []*types.VolumeInfo{} + cv = []types.VolumeInfo{} } else { cv = *v } for _, value := range shape { - var col *types.VolumeInfo - if err := awsAwsjson11_deserializeDocumentVolumeInfo(&col, value); err != nil { + var col types.VolumeInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVolumeInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12788,7 +12824,7 @@ func awsAwsjson11_deserializeDocumentVolumeiSCSIAttributes(v **types.VolumeiSCSI if !ok { return fmt.Errorf("expected Boolean2 to be of type *bool, got %T instead", value) } - sv.ChapEnabled = &jtv + sv.ChapEnabled = jtv } case "LunNumber": @@ -12810,7 +12846,7 @@ func awsAwsjson11_deserializeDocumentVolumeiSCSIAttributes(v **types.VolumeiSCSI if !ok { return fmt.Errorf("expected NetworkInterfaceId to be of type string, got %T instead", value) } - sv.NetworkInterfaceId = &jtv + sv.NetworkInterfaceId = ptr.String(jtv) } case "NetworkInterfacePort": @@ -12823,7 +12859,7 @@ func awsAwsjson11_deserializeDocumentVolumeiSCSIAttributes(v **types.VolumeiSCSI if err != nil { return err } - sv.NetworkInterfacePort = ptr.Int32(int32(i64)) + sv.NetworkInterfacePort = int32(i64) } case "TargetARN": @@ -12832,7 +12868,7 @@ func awsAwsjson11_deserializeDocumentVolumeiSCSIAttributes(v **types.VolumeiSCSI if !ok { return fmt.Errorf("expected TargetARN to be of type string, got %T instead", value) } - sv.TargetARN = &jtv + sv.TargetARN = ptr.String(jtv) } default: @@ -12872,7 +12908,7 @@ func awsAwsjson11_deserializeDocumentVolumeRecoveryPointInfo(v **types.VolumeRec if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } case "VolumeRecoveryPointTime": @@ -12881,7 +12917,7 @@ func awsAwsjson11_deserializeDocumentVolumeRecoveryPointInfo(v **types.VolumeRec if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VolumeRecoveryPointTime = &jtv + sv.VolumeRecoveryPointTime = ptr.String(jtv) } case "VolumeSizeInBytes": @@ -12894,7 +12930,7 @@ func awsAwsjson11_deserializeDocumentVolumeRecoveryPointInfo(v **types.VolumeRec if err != nil { return err } - sv.VolumeSizeInBytes = &i64 + sv.VolumeSizeInBytes = i64 } case "VolumeUsageInBytes": @@ -12907,7 +12943,7 @@ func awsAwsjson11_deserializeDocumentVolumeRecoveryPointInfo(v **types.VolumeRec if err != nil { return err } - sv.VolumeUsageInBytes = &i64 + sv.VolumeUsageInBytes = i64 } default: @@ -12919,7 +12955,7 @@ func awsAwsjson11_deserializeDocumentVolumeRecoveryPointInfo(v **types.VolumeRec return nil } -func awsAwsjson11_deserializeDocumentVolumeRecoveryPointInfos(v *[]*types.VolumeRecoveryPointInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentVolumeRecoveryPointInfos(v *[]types.VolumeRecoveryPointInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12932,18 +12968,20 @@ func awsAwsjson11_deserializeDocumentVolumeRecoveryPointInfos(v *[]*types.Volume return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VolumeRecoveryPointInfo + var cv []types.VolumeRecoveryPointInfo if *v == nil { - cv = []*types.VolumeRecoveryPointInfo{} + cv = []types.VolumeRecoveryPointInfo{} } else { cv = *v } for _, value := range shape { - var col *types.VolumeRecoveryPointInfo - if err := awsAwsjson11_deserializeDocumentVolumeRecoveryPointInfo(&col, value); err != nil { + var col types.VolumeRecoveryPointInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVolumeRecoveryPointInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12984,7 +13022,7 @@ func awsAwsjson11_deserializeDocumentVTLDevice(v **types.VTLDevice, value interf if !ok { return fmt.Errorf("expected VTLDeviceARN to be of type string, got %T instead", value) } - sv.VTLDeviceARN = &jtv + sv.VTLDeviceARN = ptr.String(jtv) } case "VTLDeviceProductIdentifier": @@ -12993,7 +13031,7 @@ func awsAwsjson11_deserializeDocumentVTLDevice(v **types.VTLDevice, value interf if !ok { return fmt.Errorf("expected VTLDeviceProductIdentifier to be of type string, got %T instead", value) } - sv.VTLDeviceProductIdentifier = &jtv + sv.VTLDeviceProductIdentifier = ptr.String(jtv) } case "VTLDeviceType": @@ -13002,7 +13040,7 @@ func awsAwsjson11_deserializeDocumentVTLDevice(v **types.VTLDevice, value interf if !ok { return fmt.Errorf("expected VTLDeviceType to be of type string, got %T instead", value) } - sv.VTLDeviceType = &jtv + sv.VTLDeviceType = ptr.String(jtv) } case "VTLDeviceVendor": @@ -13011,7 +13049,7 @@ func awsAwsjson11_deserializeDocumentVTLDevice(v **types.VTLDevice, value interf if !ok { return fmt.Errorf("expected VTLDeviceVendor to be of type string, got %T instead", value) } - sv.VTLDeviceVendor = &jtv + sv.VTLDeviceVendor = ptr.String(jtv) } default: @@ -13023,7 +13061,7 @@ func awsAwsjson11_deserializeDocumentVTLDevice(v **types.VTLDevice, value interf return nil } -func awsAwsjson11_deserializeDocumentVTLDevices(v *[]*types.VTLDevice, value interface{}) error { +func awsAwsjson11_deserializeDocumentVTLDevices(v *[]types.VTLDevice, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13036,18 +13074,20 @@ func awsAwsjson11_deserializeDocumentVTLDevices(v *[]*types.VTLDevice, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VTLDevice + var cv []types.VTLDevice if *v == nil { - cv = []*types.VTLDevice{} + cv = []types.VTLDevice{} } else { cv = *v } for _, value := range shape { - var col *types.VTLDevice - if err := awsAwsjson11_deserializeDocumentVTLDevice(&col, value); err != nil { + var col types.VTLDevice + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVTLDevice(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13083,7 +13123,7 @@ func awsAwsjson11_deserializeOpDocumentActivateGatewayOutput(v **ActivateGateway if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -13123,7 +13163,7 @@ func awsAwsjson11_deserializeOpDocumentAddCacheOutput(v **AddCacheOutput, value if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -13163,7 +13203,7 @@ func awsAwsjson11_deserializeOpDocumentAddTagsToResourceOutput(v **AddTagsToReso if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } default: @@ -13203,7 +13243,7 @@ func awsAwsjson11_deserializeOpDocumentAddUploadBufferOutput(v **AddUploadBuffer if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -13243,7 +13283,7 @@ func awsAwsjson11_deserializeOpDocumentAddWorkingStorageOutput(v **AddWorkingSto if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -13283,7 +13323,7 @@ func awsAwsjson11_deserializeOpDocumentAssignTapePoolOutput(v **AssignTapePoolOu if !ok { return fmt.Errorf("expected TapeARN to be of type string, got %T instead", value) } - sv.TapeARN = &jtv + sv.TapeARN = ptr.String(jtv) } default: @@ -13323,7 +13363,7 @@ func awsAwsjson11_deserializeOpDocumentAttachVolumeOutput(v **AttachVolumeOutput if !ok { return fmt.Errorf("expected TargetARN to be of type string, got %T instead", value) } - sv.TargetARN = &jtv + sv.TargetARN = ptr.String(jtv) } case "VolumeARN": @@ -13332,7 +13372,7 @@ func awsAwsjson11_deserializeOpDocumentAttachVolumeOutput(v **AttachVolumeOutput if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } default: @@ -13372,7 +13412,7 @@ func awsAwsjson11_deserializeOpDocumentCancelArchivalOutput(v **CancelArchivalOu if !ok { return fmt.Errorf("expected TapeARN to be of type string, got %T instead", value) } - sv.TapeARN = &jtv + sv.TapeARN = ptr.String(jtv) } default: @@ -13412,7 +13452,7 @@ func awsAwsjson11_deserializeOpDocumentCancelRetrievalOutput(v **CancelRetrieval if !ok { return fmt.Errorf("expected TapeARN to be of type string, got %T instead", value) } - sv.TapeARN = &jtv + sv.TapeARN = ptr.String(jtv) } default: @@ -13452,7 +13492,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCachediSCSIVolumeOutput(v **CreateC if !ok { return fmt.Errorf("expected TargetARN to be of type string, got %T instead", value) } - sv.TargetARN = &jtv + sv.TargetARN = ptr.String(jtv) } case "VolumeARN": @@ -13461,7 +13501,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCachediSCSIVolumeOutput(v **CreateC if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } default: @@ -13501,7 +13541,7 @@ func awsAwsjson11_deserializeOpDocumentCreateNFSFileShareOutput(v **CreateNFSFil if !ok { return fmt.Errorf("expected FileShareARN to be of type string, got %T instead", value) } - sv.FileShareARN = &jtv + sv.FileShareARN = ptr.String(jtv) } default: @@ -13541,7 +13581,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSMBFileShareOutput(v **CreateSMBFil if !ok { return fmt.Errorf("expected FileShareARN to be of type string, got %T instead", value) } - sv.FileShareARN = &jtv + sv.FileShareARN = ptr.String(jtv) } default: @@ -13581,7 +13621,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSnapshotFromVolumeRecoveryPointOutp if !ok { return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.SnapshotId = &jtv + sv.SnapshotId = ptr.String(jtv) } case "VolumeARN": @@ -13590,7 +13630,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSnapshotFromVolumeRecoveryPointOutp if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } case "VolumeRecoveryPointTime": @@ -13599,7 +13639,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSnapshotFromVolumeRecoveryPointOutp if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VolumeRecoveryPointTime = &jtv + sv.VolumeRecoveryPointTime = ptr.String(jtv) } default: @@ -13639,7 +13679,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOu if !ok { return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.SnapshotId = &jtv + sv.SnapshotId = ptr.String(jtv) } case "VolumeARN": @@ -13648,7 +13688,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOu if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } default: @@ -13688,7 +13728,7 @@ func awsAwsjson11_deserializeOpDocumentCreateStorediSCSIVolumeOutput(v **CreateS if !ok { return fmt.Errorf("expected TargetARN to be of type string, got %T instead", value) } - sv.TargetARN = &jtv + sv.TargetARN = ptr.String(jtv) } case "VolumeARN": @@ -13697,7 +13737,7 @@ func awsAwsjson11_deserializeOpDocumentCreateStorediSCSIVolumeOutput(v **CreateS if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } case "VolumeSizeInBytes": @@ -13710,7 +13750,7 @@ func awsAwsjson11_deserializeOpDocumentCreateStorediSCSIVolumeOutput(v **CreateS if err != nil { return err } - sv.VolumeSizeInBytes = &i64 + sv.VolumeSizeInBytes = i64 } default: @@ -13750,7 +13790,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTapePoolOutput(v **CreateTapePoolOu if !ok { return fmt.Errorf("expected PoolARN to be of type string, got %T instead", value) } - sv.PoolARN = &jtv + sv.PoolARN = ptr.String(jtv) } default: @@ -13826,7 +13866,7 @@ func awsAwsjson11_deserializeOpDocumentCreateTapeWithBarcodeOutput(v **CreateTap if !ok { return fmt.Errorf("expected TapeARN to be of type string, got %T instead", value) } - sv.TapeARN = &jtv + sv.TapeARN = ptr.String(jtv) } default: @@ -13866,7 +13906,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteAutomaticTapeCreationPolicyOutput(v if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -13906,7 +13946,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteBandwidthRateLimitOutput(v **Delete if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -13946,7 +13986,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteChapCredentialsOutput(v **DeleteCha if !ok { return fmt.Errorf("expected IqnName to be of type string, got %T instead", value) } - sv.InitiatorName = &jtv + sv.InitiatorName = ptr.String(jtv) } case "TargetARN": @@ -13955,7 +13995,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteChapCredentialsOutput(v **DeleteCha if !ok { return fmt.Errorf("expected TargetARN to be of type string, got %T instead", value) } - sv.TargetARN = &jtv + sv.TargetARN = ptr.String(jtv) } default: @@ -13995,7 +14035,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteFileShareOutput(v **DeleteFileShare if !ok { return fmt.Errorf("expected FileShareARN to be of type string, got %T instead", value) } - sv.FileShareARN = &jtv + sv.FileShareARN = ptr.String(jtv) } default: @@ -14035,7 +14075,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteGatewayOutput(v **DeleteGatewayOutp if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -14075,7 +14115,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteSnapshotScheduleOutput(v **DeleteSn if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } default: @@ -14115,7 +14155,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteTapeArchiveOutput(v **DeleteTapeArc if !ok { return fmt.Errorf("expected TapeARN to be of type string, got %T instead", value) } - sv.TapeARN = &jtv + sv.TapeARN = ptr.String(jtv) } default: @@ -14155,7 +14195,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteTapeOutput(v **DeleteTapeOutput, va if !ok { return fmt.Errorf("expected TapeARN to be of type string, got %T instead", value) } - sv.TapeARN = &jtv + sv.TapeARN = ptr.String(jtv) } default: @@ -14195,7 +14235,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteTapePoolOutput(v **DeleteTapePoolOu if !ok { return fmt.Errorf("expected PoolARN to be of type string, got %T instead", value) } - sv.PoolARN = &jtv + sv.PoolARN = ptr.String(jtv) } default: @@ -14235,7 +14275,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteVolumeOutput(v **DeleteVolumeOutput if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } default: @@ -14275,7 +14315,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAvailabilityMonitorTestOutput(v * if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "StartTime": @@ -14341,7 +14381,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBandwidthRateLimitOutput(v **Desc if err != nil { return err } - sv.AverageDownloadRateLimitInBitsPerSec = &i64 + sv.AverageDownloadRateLimitInBitsPerSec = ptr.Int64(i64) } case "AverageUploadRateLimitInBitsPerSec": @@ -14354,7 +14394,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBandwidthRateLimitOutput(v **Desc if err != nil { return err } - sv.AverageUploadRateLimitInBitsPerSec = &i64 + sv.AverageUploadRateLimitInBitsPerSec = ptr.Int64(i64) } case "GatewayARN": @@ -14363,7 +14403,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeBandwidthRateLimitOutput(v **Desc if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -14443,7 +14483,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCacheOutput(v **DescribeCacheOutp if err != nil { return err } - sv.CacheAllocatedInBytes = &i64 + sv.CacheAllocatedInBytes = i64 } case "CacheDirtyPercentage": @@ -14456,7 +14496,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCacheOutput(v **DescribeCacheOutp if err != nil { return err } - sv.CacheDirtyPercentage = &f64 + sv.CacheDirtyPercentage = f64 } case "CacheHitPercentage": @@ -14469,7 +14509,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCacheOutput(v **DescribeCacheOutp if err != nil { return err } - sv.CacheHitPercentage = &f64 + sv.CacheHitPercentage = f64 } case "CacheMissPercentage": @@ -14482,7 +14522,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCacheOutput(v **DescribeCacheOutp if err != nil { return err } - sv.CacheMissPercentage = &f64 + sv.CacheMissPercentage = f64 } case "CacheUsedPercentage": @@ -14495,7 +14535,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCacheOutput(v **DescribeCacheOutp if err != nil { return err } - sv.CacheUsedPercentage = &f64 + sv.CacheUsedPercentage = f64 } case "DiskIds": @@ -14509,7 +14549,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCacheOutput(v **DescribeCacheOutp if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -14585,7 +14625,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected CloudWatchLogGroupARN to be of type string, got %T instead", value) } - sv.CloudWatchLogGroupARN = &jtv + sv.CloudWatchLogGroupARN = ptr.String(jtv) } case "DeprecationDate": @@ -14594,7 +14634,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected DeprecationDate to be of type string, got %T instead", value) } - sv.DeprecationDate = &jtv + sv.DeprecationDate = ptr.String(jtv) } case "Ec2InstanceId": @@ -14603,7 +14643,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected Ec2InstanceId to be of type string, got %T instead", value) } - sv.Ec2InstanceId = &jtv + sv.Ec2InstanceId = ptr.String(jtv) } case "Ec2InstanceRegion": @@ -14612,7 +14652,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected Ec2InstanceRegion to be of type string, got %T instead", value) } - sv.Ec2InstanceRegion = &jtv + sv.Ec2InstanceRegion = ptr.String(jtv) } case "EndpointType": @@ -14621,7 +14661,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected EndpointType to be of type string, got %T instead", value) } - sv.EndpointType = &jtv + sv.EndpointType = ptr.String(jtv) } case "GatewayARN": @@ -14630,7 +14670,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "GatewayId": @@ -14639,7 +14679,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected GatewayId to be of type string, got %T instead", value) } - sv.GatewayId = &jtv + sv.GatewayId = ptr.String(jtv) } case "GatewayName": @@ -14648,7 +14688,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.GatewayName = &jtv + sv.GatewayName = ptr.String(jtv) } case "GatewayNetworkInterfaces": @@ -14662,7 +14702,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected GatewayState to be of type string, got %T instead", value) } - sv.GatewayState = &jtv + sv.GatewayState = ptr.String(jtv) } case "GatewayTimezone": @@ -14671,7 +14711,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected GatewayTimezone to be of type string, got %T instead", value) } - sv.GatewayTimezone = &jtv + sv.GatewayTimezone = ptr.String(jtv) } case "GatewayType": @@ -14680,7 +14720,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected GatewayType to be of type string, got %T instead", value) } - sv.GatewayType = &jtv + sv.GatewayType = ptr.String(jtv) } case "HostEnvironment": @@ -14698,7 +14738,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected LastSoftwareUpdate to be of type string, got %T instead", value) } - sv.LastSoftwareUpdate = &jtv + sv.LastSoftwareUpdate = ptr.String(jtv) } case "NextUpdateAvailabilityDate": @@ -14707,7 +14747,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected NextUpdateAvailabilityDate to be of type string, got %T instead", value) } - sv.NextUpdateAvailabilityDate = &jtv + sv.NextUpdateAvailabilityDate = ptr.String(jtv) } case "SoftwareUpdatesEndDate": @@ -14716,7 +14756,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected SoftwareUpdatesEndDate to be of type string, got %T instead", value) } - sv.SoftwareUpdatesEndDate = &jtv + sv.SoftwareUpdatesEndDate = ptr.String(jtv) } case "Tags": @@ -14730,7 +14770,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.VPCEndpoint = &jtv + sv.VPCEndpoint = ptr.String(jtv) } default: @@ -14796,7 +14836,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMaintenanceStartTimeOutput(v **De if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "HourOfDay": @@ -14831,7 +14871,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMaintenanceStartTimeOutput(v **De if !ok { return fmt.Errorf("expected GatewayTimezone to be of type string, got %T instead", value) } - sv.Timezone = &jtv + sv.Timezone = ptr.String(jtv) } default: @@ -14952,7 +14992,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSMBSettingsOutput(v **DescribeSMB if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "FileSharesVisible": @@ -14961,7 +15001,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSMBSettingsOutput(v **DescribeSMB if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.FileSharesVisible = &jtv + sv.FileSharesVisible = ptr.Bool(jtv) } case "GatewayARN": @@ -14970,7 +15010,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSMBSettingsOutput(v **DescribeSMB if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "SMBGuestPasswordSet": @@ -14979,7 +15019,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSMBSettingsOutput(v **DescribeSMB if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.SMBGuestPasswordSet = &jtv + sv.SMBGuestPasswordSet = ptr.Bool(jtv) } case "SMBSecurityStrategy": @@ -15028,7 +15068,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSnapshotScheduleOutput(v **Descri if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "RecurrenceInHours": @@ -15068,7 +15108,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSnapshotScheduleOutput(v **Descri if !ok { return fmt.Errorf("expected GatewayTimezone to be of type string, got %T instead", value) } - sv.Timezone = &jtv + sv.Timezone = ptr.String(jtv) } case "VolumeARN": @@ -15077,7 +15117,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSnapshotScheduleOutput(v **Descri if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } default: @@ -15153,7 +15193,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTapeArchivesOutput(v **DescribeTa if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "TapeArchives": @@ -15198,7 +15238,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTapeRecoveryPointsOutput(v **Desc if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "Marker": @@ -15207,7 +15247,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTapeRecoveryPointsOutput(v **Desc if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "TapeRecoveryPointInfos": @@ -15252,7 +15292,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeTapesOutput(v **DescribeTapesOutp if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "Tapes": @@ -15302,7 +15342,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUploadBufferOutput(v **DescribeUp if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "UploadBufferAllocatedInBytes": @@ -15315,7 +15355,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUploadBufferOutput(v **DescribeUp if err != nil { return err } - sv.UploadBufferAllocatedInBytes = &i64 + sv.UploadBufferAllocatedInBytes = i64 } case "UploadBufferUsedInBytes": @@ -15328,7 +15368,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUploadBufferOutput(v **DescribeUp if err != nil { return err } - sv.UploadBufferUsedInBytes = &i64 + sv.UploadBufferUsedInBytes = i64 } default: @@ -15368,7 +15408,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeVTLDevicesOutput(v **DescribeVTLD if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "Marker": @@ -15377,7 +15417,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeVTLDevicesOutput(v **DescribeVTLD if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "VTLDevices": @@ -15427,7 +15467,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeWorkingStorageOutput(v **Describe if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "WorkingStorageAllocatedInBytes": @@ -15440,7 +15480,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeWorkingStorageOutput(v **Describe if err != nil { return err } - sv.WorkingStorageAllocatedInBytes = &i64 + sv.WorkingStorageAllocatedInBytes = i64 } case "WorkingStorageUsedInBytes": @@ -15453,7 +15493,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeWorkingStorageOutput(v **Describe if err != nil { return err } - sv.WorkingStorageUsedInBytes = &i64 + sv.WorkingStorageUsedInBytes = i64 } default: @@ -15493,7 +15533,7 @@ func awsAwsjson11_deserializeOpDocumentDetachVolumeOutput(v **DetachVolumeOutput if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } default: @@ -15533,7 +15573,7 @@ func awsAwsjson11_deserializeOpDocumentDisableGatewayOutput(v **DisableGatewayOu if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -15582,7 +15622,7 @@ func awsAwsjson11_deserializeOpDocumentJoinDomainOutput(v **JoinDomainOutput, va if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -15663,7 +15703,7 @@ func awsAwsjson11_deserializeOpDocumentListFileSharesOutput(v **ListFileSharesOu if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "NextMarker": @@ -15672,7 +15712,7 @@ func awsAwsjson11_deserializeOpDocumentListFileSharesOutput(v **ListFileSharesOu if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -15717,7 +15757,7 @@ func awsAwsjson11_deserializeOpDocumentListGatewaysOutput(v **ListGatewaysOutput if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -15762,7 +15802,7 @@ func awsAwsjson11_deserializeOpDocumentListLocalDisksOutput(v **ListLocalDisksOu if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -15802,7 +15842,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "ResourceARN": @@ -15811,7 +15851,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "Tags": @@ -15856,7 +15896,7 @@ func awsAwsjson11_deserializeOpDocumentListTapePoolsOutput(v **ListTapePoolsOutp if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "PoolInfos": @@ -15901,7 +15941,7 @@ func awsAwsjson11_deserializeOpDocumentListTapesOutput(v **ListTapesOutput, valu if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "TapeInfos": @@ -15982,7 +16022,7 @@ func awsAwsjson11_deserializeOpDocumentListVolumeRecoveryPointsOutput(v **ListVo if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "VolumeRecoveryPointInfos": @@ -16027,7 +16067,7 @@ func awsAwsjson11_deserializeOpDocumentListVolumesOutput(v **ListVolumesOutput, if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "Marker": @@ -16036,7 +16076,7 @@ func awsAwsjson11_deserializeOpDocumentListVolumesOutput(v **ListVolumesOutput, if !ok { return fmt.Errorf("expected Marker to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "VolumeInfos": @@ -16081,7 +16121,7 @@ func awsAwsjson11_deserializeOpDocumentNotifyWhenUploadedOutput(v **NotifyWhenUp if !ok { return fmt.Errorf("expected FileShareARN to be of type string, got %T instead", value) } - sv.FileShareARN = &jtv + sv.FileShareARN = ptr.String(jtv) } case "NotificationId": @@ -16090,7 +16130,7 @@ func awsAwsjson11_deserializeOpDocumentNotifyWhenUploadedOutput(v **NotifyWhenUp if !ok { return fmt.Errorf("expected NotificationId to be of type string, got %T instead", value) } - sv.NotificationId = &jtv + sv.NotificationId = ptr.String(jtv) } default: @@ -16130,7 +16170,7 @@ func awsAwsjson11_deserializeOpDocumentRefreshCacheOutput(v **RefreshCacheOutput if !ok { return fmt.Errorf("expected FileShareARN to be of type string, got %T instead", value) } - sv.FileShareARN = &jtv + sv.FileShareARN = ptr.String(jtv) } case "NotificationId": @@ -16139,7 +16179,7 @@ func awsAwsjson11_deserializeOpDocumentRefreshCacheOutput(v **RefreshCacheOutput if !ok { return fmt.Errorf("expected NotificationId to be of type string, got %T instead", value) } - sv.NotificationId = &jtv + sv.NotificationId = ptr.String(jtv) } default: @@ -16179,7 +16219,7 @@ func awsAwsjson11_deserializeOpDocumentRemoveTagsFromResourceOutput(v **RemoveTa if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } default: @@ -16219,7 +16259,7 @@ func awsAwsjson11_deserializeOpDocumentResetCacheOutput(v **ResetCacheOutput, va if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -16259,7 +16299,7 @@ func awsAwsjson11_deserializeOpDocumentRetrieveTapeArchiveOutput(v **RetrieveTap if !ok { return fmt.Errorf("expected TapeARN to be of type string, got %T instead", value) } - sv.TapeARN = &jtv + sv.TapeARN = ptr.String(jtv) } default: @@ -16299,7 +16339,7 @@ func awsAwsjson11_deserializeOpDocumentRetrieveTapeRecoveryPointOutput(v **Retri if !ok { return fmt.Errorf("expected TapeARN to be of type string, got %T instead", value) } - sv.TapeARN = &jtv + sv.TapeARN = ptr.String(jtv) } default: @@ -16339,7 +16379,7 @@ func awsAwsjson11_deserializeOpDocumentSetLocalConsolePasswordOutput(v **SetLoca if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -16379,7 +16419,7 @@ func awsAwsjson11_deserializeOpDocumentSetSMBGuestPasswordOutput(v **SetSMBGuest if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -16419,7 +16459,7 @@ func awsAwsjson11_deserializeOpDocumentShutdownGatewayOutput(v **ShutdownGateway if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -16459,7 +16499,7 @@ func awsAwsjson11_deserializeOpDocumentStartAvailabilityMonitorTestOutput(v **St if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -16499,7 +16539,7 @@ func awsAwsjson11_deserializeOpDocumentStartGatewayOutput(v **StartGatewayOutput if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -16539,7 +16579,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateAutomaticTapeCreationPolicyOutput(v if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -16579,7 +16619,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateBandwidthRateLimitOutput(v **Update if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -16619,7 +16659,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateChapCredentialsOutput(v **UpdateCha if !ok { return fmt.Errorf("expected IqnName to be of type string, got %T instead", value) } - sv.InitiatorName = &jtv + sv.InitiatorName = ptr.String(jtv) } case "TargetARN": @@ -16628,7 +16668,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateChapCredentialsOutput(v **UpdateCha if !ok { return fmt.Errorf("expected TargetARN to be of type string, got %T instead", value) } - sv.TargetARN = &jtv + sv.TargetARN = ptr.String(jtv) } default: @@ -16668,7 +16708,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateGatewayInformationOutput(v **Update if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } case "GatewayName": @@ -16677,7 +16717,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateGatewayInformationOutput(v **Update if !ok { return fmt.Errorf("expected string to be of type string, got %T instead", value) } - sv.GatewayName = &jtv + sv.GatewayName = ptr.String(jtv) } default: @@ -16717,7 +16757,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateGatewaySoftwareNowOutput(v **Update if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -16757,7 +16797,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceStartTimeOutput(v **Upda if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -16797,7 +16837,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateNFSFileShareOutput(v **UpdateNFSFil if !ok { return fmt.Errorf("expected FileShareARN to be of type string, got %T instead", value) } - sv.FileShareARN = &jtv + sv.FileShareARN = ptr.String(jtv) } default: @@ -16837,7 +16877,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateSMBFileShareOutput(v **UpdateSMBFil if !ok { return fmt.Errorf("expected FileShareARN to be of type string, got %T instead", value) } - sv.FileShareARN = &jtv + sv.FileShareARN = ptr.String(jtv) } default: @@ -16877,7 +16917,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateSMBFileShareVisibilityOutput(v **Up if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -16917,7 +16957,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateSMBSecurityStrategyOutput(v **Updat if !ok { return fmt.Errorf("expected GatewayARN to be of type string, got %T instead", value) } - sv.GatewayARN = &jtv + sv.GatewayARN = ptr.String(jtv) } default: @@ -16957,7 +16997,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateSnapshotScheduleOutput(v **UpdateSn if !ok { return fmt.Errorf("expected VolumeARN to be of type string, got %T instead", value) } - sv.VolumeARN = &jtv + sv.VolumeARN = ptr.String(jtv) } default: @@ -16997,7 +17037,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVTLDeviceTypeOutput(v **UpdateVTLDe if !ok { return fmt.Errorf("expected VTLDeviceARN to be of type string, got %T instead", value) } - sv.VTLDeviceARN = &jtv + sv.VTLDeviceARN = ptr.String(jtv) } default: diff --git a/service/storagegateway/go.mod b/service/storagegateway/go.mod index 333cc35fc52..b83016fedfc 100644 --- a/service/storagegateway/go.mod +++ b/service/storagegateway/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/storagegateway go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/storagegateway/serializers.go b/service/storagegateway/serializers.go index dd8ab431b29..e23be04a828 100644 --- a/service/storagegateway/serializers.go +++ b/service/storagegateway/serializers.go @@ -3809,25 +3809,21 @@ func awsAwsjson11_serializeDocumentAutomaticTapeCreationRule(v *types.AutomaticT ok.Long(*v.TapeSizeInBytes) } - if v.Worm != nil { + if v.Worm { ok := object.Key("Worm") - ok.Boolean(*v.Worm) + ok.Boolean(v.Worm) } return nil } -func awsAwsjson11_serializeDocumentAutomaticTapeCreationRules(v []*types.AutomaticTapeCreationRule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAutomaticTapeCreationRules(v []types.AutomaticTapeCreationRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAutomaticTapeCreationRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAutomaticTapeCreationRule(&v[i], av); err != nil { return err } } @@ -3846,92 +3842,68 @@ func awsAwsjson11_serializeDocumentCacheAttributes(v *types.CacheAttributes, val return nil } -func awsAwsjson11_serializeDocumentDiskIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDiskIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentFileShareARNList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFileShareARNList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentFileShareClientList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFileShareClientList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentFileShareUserList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFileShareUserList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentFolderList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFolderList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentHosts(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHosts(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3963,17 +3935,13 @@ func awsAwsjson11_serializeDocumentNFSFileShareDefaults(v *types.NFSFileShareDef return nil } -func awsAwsjson11_serializeDocumentPoolARNs(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPoolARNs(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3995,79 +3963,59 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentTapeARNs(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTapeARNs(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentVolumeARNs(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVolumeARNs(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentVTLDeviceARNs(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentVTLDeviceARNs(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4201,9 +4149,9 @@ func awsAwsjson11_serializeOpDocumentAssignTapePoolInput(v *AssignTapePoolInput, object := value.Object() defer object.Close() - if v.BypassGovernanceRetention != nil { + if v.BypassGovernanceRetention { ok := object.Key("BypassGovernanceRetention") - ok.Boolean(*v.BypassGovernanceRetention) + ok.Boolean(v.BypassGovernanceRetention) } if v.PoolId != nil { @@ -4336,9 +4284,9 @@ func awsAwsjson11_serializeOpDocumentCreateCachediSCSIVolumeInput(v *CreateCache ok.String(*v.TargetName) } - if v.VolumeSizeInBytes != nil { + if v.VolumeSizeInBytes != 0 { ok := object.Key("VolumeSizeInBytes") - ok.Long(*v.VolumeSizeInBytes) + ok.Long(v.VolumeSizeInBytes) } return nil @@ -4658,9 +4606,9 @@ func awsAwsjson11_serializeOpDocumentCreateStorediSCSIVolumeInput(v *CreateStore ok.String(*v.NetworkInterfaceId) } - if v.PreserveExistingData != nil { + if v.PreserveExistingData { ok := object.Key("PreserveExistingData") - ok.Boolean(*v.PreserveExistingData) + ok.Boolean(v.PreserveExistingData) } if v.SnapshotId != nil { @@ -4768,9 +4716,9 @@ func awsAwsjson11_serializeOpDocumentCreateTapesInput(v *CreateTapesInput, value ok.Long(*v.TapeSizeInBytes) } - if v.Worm != nil { + if v.Worm { ok := object.Key("Worm") - ok.Boolean(*v.Worm) + ok.Boolean(v.Worm) } return nil @@ -4817,9 +4765,9 @@ func awsAwsjson11_serializeOpDocumentCreateTapeWithBarcodeInput(v *CreateTapeWit ok.Long(*v.TapeSizeInBytes) } - if v.Worm != nil { + if v.Worm { ok := object.Key("Worm") - ok.Boolean(*v.Worm) + ok.Boolean(v.Worm) } return nil @@ -4880,9 +4828,9 @@ func awsAwsjson11_serializeOpDocumentDeleteFileShareInput(v *DeleteFileShareInpu ok.String(*v.FileShareARN) } - if v.ForceDelete != nil { + if v.ForceDelete { ok := object.Key("ForceDelete") - ok.Boolean(*v.ForceDelete) + ok.Boolean(v.ForceDelete) } return nil @@ -4916,9 +4864,9 @@ func awsAwsjson11_serializeOpDocumentDeleteTapeArchiveInput(v *DeleteTapeArchive object := value.Object() defer object.Close() - if v.BypassGovernanceRetention != nil { + if v.BypassGovernanceRetention { ok := object.Key("BypassGovernanceRetention") - ok.Boolean(*v.BypassGovernanceRetention) + ok.Boolean(v.BypassGovernanceRetention) } if v.TapeARN != nil { @@ -4933,9 +4881,9 @@ func awsAwsjson11_serializeOpDocumentDeleteTapeInput(v *DeleteTapeInput, value s object := value.Object() defer object.Close() - if v.BypassGovernanceRetention != nil { + if v.BypassGovernanceRetention { ok := object.Key("BypassGovernanceRetention") - ok.Boolean(*v.BypassGovernanceRetention) + ok.Boolean(v.BypassGovernanceRetention) } if v.GatewayARN != nil { diff --git a/service/storagegateway/types/types.go b/service/storagegateway/types/types.go index b38700a7bcb..63c45a6e004 100644 --- a/service/storagegateway/types/types.go +++ b/service/storagegateway/types/types.go @@ -13,7 +13,7 @@ type AutomaticTapeCreationPolicyInfo struct { // An automatic tape creation policy consists of a list of automatic tape creation // rules. This returns the rules that determine when and how to automatically // create new tapes. - AutomaticTapeCreationRules []*AutomaticTapeCreationRule + AutomaticTapeCreationRules []AutomaticTapeCreationRule // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to // return a list of gateways for your account and AWS Region. @@ -59,7 +59,7 @@ type AutomaticTapeCreationRule struct { // Set to true to indicate that tapes are to be archived as write-once-read-many // (WORM). Set to false when WORM is not enabled for tapes. - Worm *bool + Worm bool } // Lists refresh cache information. @@ -115,7 +115,7 @@ type CachediSCSIVolume struct { VolumeProgress *float64 // The size, in bytes, of the volume capacity. - VolumeSizeInBytes *int64 + VolumeSizeInBytes int64 // One of the VolumeStatus values that indicates the state of the storage volume. VolumeStatus *string @@ -161,13 +161,13 @@ type ChapInfo struct { type DeviceiSCSIAttributes struct { // Indicates whether mutual CHAP is enabled for the iSCSI target. - ChapEnabled *bool + ChapEnabled bool // The network interface identifier of the VTL device. NetworkInterfaceId *string // The port used to communicate with iSCSI VTL device targets. - NetworkInterfacePort *int32 + NetworkInterfacePort int32 // Specifies the unique Amazon Resource Name (ARN) that encodes the iSCSI qualified // name(iqn) of a tape drive or media changer target. @@ -187,7 +187,7 @@ type Disk struct { DiskAllocationType *string // A list of values that represents attributes of a local disk. - DiskAttributeList []*string + DiskAttributeList []string // The unique device ID or other distinguishing data that identifies a local disk. DiskId *string @@ -199,7 +199,7 @@ type Disk struct { DiskPath *string // The local disk size in bytes. - DiskSizeInBytes *int64 + DiskSizeInBytes int64 // A value that represents the status of a local disk. DiskStatus *string @@ -304,7 +304,7 @@ type NFSFileShareInfo struct { // The list of clients that are allowed to access the file gateway. The list must // contain either valid IP addresses or valid CIDR blocks. - ClientList []*string + ClientList []string // The default storage class for objects put into an Amazon S3 bucket by the file // gateway. The default value is S3_INTELLIGENT_TIERING. Optional. Valid Values: @@ -336,7 +336,7 @@ type NFSFileShareInfo struct { // Set to true to use Amazon S3 server-side encryption with your own AWS KMS key, // or false to use a key managed by Amazon S3. Optional. Valid Values: true | false - KMSEncrypted *bool + KMSEncrypted bool // The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for // Amazon S3 server-side encryption. Storage Gateway does not support asymmetric @@ -396,7 +396,7 @@ type NFSFileShareInfo struct { // A list of up to 50 tags assigned to the NFS file share, sorted alphabetically by // key name. Each tag is a key-value pair. For a gateway with more than 10 tags // assigned, you can view all tags using the ListTagsForResource API operation. - Tags []*Tag + Tags []Tag } // Describes a custom tape pool. @@ -443,7 +443,7 @@ type SMBFileShareInfo struct { // to the file share. A group must be prefixed with the @ character. Acceptable // formats include: DOMAIN\User1, user1, @group1, and @DOMAIN\group1. Can only be // set if Authentication is set to ActiveDirectory. - AdminUserList []*string + AdminUserList []string // The Amazon Resource Name (ARN) of the storage used for the audit logs. AuditDestinationARN *string @@ -492,11 +492,11 @@ type SMBFileShareInfo struct { // the file share. A group must be prefixed with the @ character. Acceptable // formats include: DOMAIN\User1, user1, @group1, and @DOMAIN\group1. Can only be // set if Authentication is set to ActiveDirectory. - InvalidUserList []*string + InvalidUserList []string // Set to true to use Amazon S3 server-side encryption with your own AWS KMS key, // or false to use a key managed by Amazon S3. Optional. Valid Values: true | false - KMSEncrypted *bool + KMSEncrypted bool // The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for // Amazon S3 server-side encryption. Storage Gateway does not support asymmetric @@ -546,13 +546,13 @@ type SMBFileShareInfo struct { // A list of up to 50 tags assigned to the SMB file share, sorted alphabetically by // key name. Each tag is a key-value pair. For a gateway with more than 10 tags // assigned, you can view all tags using the ListTagsForResource API operation. - Tags []*Tag + Tags []Tag // A list of users or groups in the Active Directory that are allowed to access the // file share. A group must be prefixed with the @ character. Acceptable formats // include: DOMAIN\User1, user1, @group1, and @DOMAIN\group1. Can only be set if // Authentication is set to ActiveDirectory. - ValidUserList []*string + ValidUserList []string } // Provides additional information about an error that was returned by the service. @@ -563,7 +563,7 @@ type StorageGatewayError struct { ErrorCode ErrorCode // Human-readable text that provides detail about the error that occurred. - ErrorDetails map[string]*string + ErrorDetails map[string]string } // Describes an iSCSI stored volume. @@ -580,7 +580,7 @@ type StorediSCSIVolume struct { // Indicates if when the stored volume was created, existing data on the underlying // local disk was preserved. Valid Values: true | false - PreservedExistingData *bool + PreservedExistingData bool // If the stored volume was created from a snapshot, this field contains the // snapshot ID used, e.g. snap-78e22663. Otherwise, this field is not included. @@ -617,7 +617,7 @@ type StorediSCSIVolume struct { VolumeProgress *float64 // The size of the volume in bytes. - VolumeSizeInBytes *int64 + VolumeSizeInBytes int64 // One of the VolumeStatus values that indicates the state of the storage volume. VolumeStatus *string @@ -703,7 +703,7 @@ type Tape struct { VTLDevice *string // If the tape is archived as write-once-read-many (WORM), this value is true. - Worm *bool + Worm bool } // Represents a virtual tape that is archived in the virtual tape shelf (VTS). @@ -756,7 +756,7 @@ type TapeArchive struct { TapeUsedInBytes *int64 // Set to true if the archived tape is stored as write-once-read-many (WORM). - Worm *bool + Worm bool } // Describes a virtual tape. @@ -841,7 +841,7 @@ type VolumeInfo struct { // The size of the volume in bytes. Valid Values: 50 to 500 lowercase letters, // numbers, periods (.), and hyphens (-). - VolumeSizeInBytes *int64 + VolumeSizeInBytes int64 // One of the VolumeType enumeration values describing the type of the volume. VolumeType *string @@ -851,7 +851,7 @@ type VolumeInfo struct { type VolumeiSCSIAttributes struct { // Indicates whether mutual CHAP is enabled for the iSCSI target. - ChapEnabled *bool + ChapEnabled bool // The logical disk number. LunNumber *int32 @@ -860,7 +860,7 @@ type VolumeiSCSIAttributes struct { NetworkInterfaceId *string // The port used to communicate with iSCSI targets. - NetworkInterfacePort *int32 + NetworkInterfacePort int32 // The Amazon Resource Name (ARN) of the volume target. TargetARN *string @@ -876,11 +876,11 @@ type VolumeRecoveryPointInfo struct { VolumeRecoveryPointTime *string // The size of the volume in bytes. - VolumeSizeInBytes *int64 + VolumeSizeInBytes int64 // The size of the data stored on the volume in bytes. This value is not available // for volumes created prior to May 13, 2015, until you store data on the volume. - VolumeUsageInBytes *int64 + VolumeUsageInBytes int64 } // Represents a device object associated with a tape gateway. diff --git a/service/storagegateway/validators.go b/service/storagegateway/validators.go index 476a70767cd..c4e84dc7748 100644 --- a/service/storagegateway/validators.go +++ b/service/storagegateway/validators.go @@ -1834,13 +1834,13 @@ func validateAutomaticTapeCreationRule(v *types.AutomaticTapeCreationRule) error } } -func validateAutomaticTapeCreationRules(v []*types.AutomaticTapeCreationRule) error { +func validateAutomaticTapeCreationRules(v []types.AutomaticTapeCreationRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AutomaticTapeCreationRules"} for i := range v { - if err := validateAutomaticTapeCreationRule(v[i]); err != nil { + if err := validateAutomaticTapeCreationRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1869,13 +1869,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2088,9 +2088,6 @@ func validateOpCreateCachediSCSIVolumeInput(v *CreateCachediSCSIVolumeInput) err if v.GatewayARN == nil { invalidParams.Add(smithy.NewErrParamRequired("GatewayARN")) } - if v.VolumeSizeInBytes == nil { - invalidParams.Add(smithy.NewErrParamRequired("VolumeSizeInBytes")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2210,9 +2207,6 @@ func validateOpCreateStorediSCSIVolumeInput(v *CreateStorediSCSIVolumeInput) err if v.NetworkInterfaceId == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkInterfaceId")) } - if v.PreserveExistingData == nil { - invalidParams.Add(smithy.NewErrParamRequired("PreserveExistingData")) - } if v.GatewayARN == nil { invalidParams.Add(smithy.NewErrParamRequired("GatewayARN")) } diff --git a/service/sts/api_op_AssumeRole.go b/service/sts/api_op_AssumeRole.go index 2895473cc54..619c6adb868 100644 --- a/service/sts/api_op_AssumeRole.go +++ b/service/sts/api_op_AssumeRole.go @@ -224,7 +224,7 @@ type AssumeRoleInput struct { // For more information, see Session Policies // (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) // in the IAM User Guide. - PolicyArns []*types.PolicyDescriptorType + PolicyArns []types.PolicyDescriptorType // The identification number of the MFA device that is associated with the user who // is making the AssumeRole call. Specify this value if the trust policy of the @@ -265,7 +265,7 @@ type AssumeRoleInput struct { // For more information, see Viewing Session Tags in CloudTrail // (https://docs.aws.amazon.com/IAM/latest/UserGuide/session-tags.html#id_session-tags_ctlogs) // in the IAM User Guide. - Tags []*types.Tag + Tags []types.Tag // The value provided by the MFA device, if the trust policy of the role being // assumed requires MFA (that is, if the policy includes a condition that tests for @@ -284,7 +284,7 @@ type AssumeRoleInput struct { // transitive, the session policy and session tags packed binary limit is not // affected. If you choose not to specify a transitive tag key, then no tags are // passed from this session to any subsequent sessions. - TransitiveTagKeys []*string + TransitiveTagKeys []string } // Contains the response to a successful AssumeRole request, including temporary diff --git a/service/sts/api_op_AssumeRoleWithSAML.go b/service/sts/api_op_AssumeRoleWithSAML.go index fdc8657c08c..836735c7c68 100644 --- a/service/sts/api_op_AssumeRoleWithSAML.go +++ b/service/sts/api_op_AssumeRoleWithSAML.go @@ -212,7 +212,7 @@ type AssumeRoleWithSAMLInput struct { // For more information, see Session Policies // (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) // in the IAM User Guide. - PolicyArns []*types.PolicyDescriptorType + PolicyArns []types.PolicyDescriptorType } // Contains the response to a successful AssumeRoleWithSAML request, including diff --git a/service/sts/api_op_AssumeRoleWithWebIdentity.go b/service/sts/api_op_AssumeRoleWithWebIdentity.go index 0d2444954e6..ea19b8f4e9e 100644 --- a/service/sts/api_op_AssumeRoleWithWebIdentity.go +++ b/service/sts/api_op_AssumeRoleWithWebIdentity.go @@ -236,7 +236,7 @@ type AssumeRoleWithWebIdentityInput struct { // For more information, see Session Policies // (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) // in the IAM User Guide. - PolicyArns []*types.PolicyDescriptorType + PolicyArns []types.PolicyDescriptorType // The fully qualified host component of the domain name of the identity provider. // Specify this value only for OAuth 2.0 access tokens. Currently www.amazon.com diff --git a/service/sts/api_op_GetFederationToken.go b/service/sts/api_op_GetFederationToken.go index 52fea090db8..bf4190bf66c 100644 --- a/service/sts/api_op_GetFederationToken.go +++ b/service/sts/api_op_GetFederationToken.go @@ -184,7 +184,7 @@ type GetFederationTokenInput struct { // limit even if your plain text meets the other requirements. The PackedPolicySize // response element indicates by percentage how close the policies and tags for // your request are to the upper size limit. - PolicyArns []*types.PolicyDescriptorType + PolicyArns []types.PolicyDescriptorType // A list of session tags. Each session tag consists of a key name and an // associated value. For more information about session tags, see Passing Session @@ -208,7 +208,7 @@ type GetFederationTokenInput struct { // department=engineering session tag. Department and department are not saved as // separate tags, and the session tag passed in the request takes precedence over // the role tag. - Tags []*types.Tag + Tags []types.Tag } // Contains the response to a successful GetFederationToken request, including diff --git a/service/sts/deserializers.go b/service/sts/deserializers.go index fbb238a35e4..c42cc7749f7 100644 --- a/service/sts/deserializers.go +++ b/service/sts/deserializers.go @@ -1131,7 +1131,7 @@ func awsAwsquery_deserializeDocumentAssumedRoleUser(v **types.AssumedRoleUser, d } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("AssumedRoleId", t.Name.Local): @@ -1147,7 +1147,7 @@ func awsAwsquery_deserializeDocumentAssumedRoleUser(v **types.AssumedRoleUser, d } if val != nil { xtv := string(val) - sv.AssumedRoleId = &xtv + sv.AssumedRoleId = ptr.String(xtv) } default: @@ -1195,7 +1195,7 @@ func awsAwsquery_deserializeDocumentCredentials(v **types.Credentials, decoder s } if val != nil { xtv := string(val) - sv.AccessKeyId = &xtv + sv.AccessKeyId = ptr.String(xtv) } case strings.EqualFold("Expiration", t.Name.Local): @@ -1212,7 +1212,7 @@ func awsAwsquery_deserializeDocumentCredentials(v **types.Credentials, decoder s if err != nil { return err } - sv.Expiration = &t + sv.Expiration = ptr.Time(t) } case strings.EqualFold("SecretAccessKey", t.Name.Local): @@ -1228,7 +1228,7 @@ func awsAwsquery_deserializeDocumentCredentials(v **types.Credentials, decoder s } if val != nil { xtv := string(val) - sv.SecretAccessKey = &xtv + sv.SecretAccessKey = ptr.String(xtv) } case strings.EqualFold("SessionToken", t.Name.Local): @@ -1244,7 +1244,7 @@ func awsAwsquery_deserializeDocumentCredentials(v **types.Credentials, decoder s } if val != nil { xtv := string(val) - sv.SessionToken = &xtv + sv.SessionToken = ptr.String(xtv) } default: @@ -1292,7 +1292,7 @@ func awsAwsquery_deserializeDocumentExpiredTokenException(v **types.ExpiredToken } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -1340,7 +1340,7 @@ func awsAwsquery_deserializeDocumentFederatedUser(v **types.FederatedUser, decod } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("FederatedUserId", t.Name.Local): @@ -1356,7 +1356,7 @@ func awsAwsquery_deserializeDocumentFederatedUser(v **types.FederatedUser, decod } if val != nil { xtv := string(val) - sv.FederatedUserId = &xtv + sv.FederatedUserId = ptr.String(xtv) } default: @@ -1404,7 +1404,7 @@ func awsAwsquery_deserializeDocumentIDPCommunicationErrorException(v **types.IDP } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -1452,7 +1452,7 @@ func awsAwsquery_deserializeDocumentIDPRejectedClaimException(v **types.IDPRejec } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -1500,7 +1500,7 @@ func awsAwsquery_deserializeDocumentInvalidAuthorizationMessageException(v **typ } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -1548,7 +1548,7 @@ func awsAwsquery_deserializeDocumentInvalidIdentityTokenException(v **types.Inva } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -1596,7 +1596,7 @@ func awsAwsquery_deserializeDocumentMalformedPolicyDocumentException(v **types.M } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -1644,7 +1644,7 @@ func awsAwsquery_deserializeDocumentPackedPolicyTooLargeException(v **types.Pack } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -1692,7 +1692,7 @@ func awsAwsquery_deserializeDocumentRegionDisabledException(v **types.RegionDisa } if val != nil { xtv := string(val) - sv.Message = &xtv + sv.Message = ptr.String(xtv) } default: @@ -1807,7 +1807,7 @@ func awsAwsquery_deserializeOpDocumentAssumeRoleWithSAMLOutput(v **AssumeRoleWit } if val != nil { xtv := string(val) - sv.Audience = &xtv + sv.Audience = ptr.String(xtv) } case strings.EqualFold("Credentials", t.Name.Local): @@ -1829,7 +1829,7 @@ func awsAwsquery_deserializeOpDocumentAssumeRoleWithSAMLOutput(v **AssumeRoleWit } if val != nil { xtv := string(val) - sv.Issuer = &xtv + sv.Issuer = ptr.String(xtv) } case strings.EqualFold("NameQualifier", t.Name.Local): @@ -1845,7 +1845,7 @@ func awsAwsquery_deserializeOpDocumentAssumeRoleWithSAMLOutput(v **AssumeRoleWit } if val != nil { xtv := string(val) - sv.NameQualifier = &xtv + sv.NameQualifier = ptr.String(xtv) } case strings.EqualFold("PackedPolicySize", t.Name.Local): @@ -1878,7 +1878,7 @@ func awsAwsquery_deserializeOpDocumentAssumeRoleWithSAMLOutput(v **AssumeRoleWit } if val != nil { xtv := string(val) - sv.Subject = &xtv + sv.Subject = ptr.String(xtv) } case strings.EqualFold("SubjectType", t.Name.Local): @@ -1894,7 +1894,7 @@ func awsAwsquery_deserializeOpDocumentAssumeRoleWithSAMLOutput(v **AssumeRoleWit } if val != nil { xtv := string(val) - sv.SubjectType = &xtv + sv.SubjectType = ptr.String(xtv) } default: @@ -1948,7 +1948,7 @@ func awsAwsquery_deserializeOpDocumentAssumeRoleWithWebIdentityOutput(v **Assume } if val != nil { xtv := string(val) - sv.Audience = &xtv + sv.Audience = ptr.String(xtv) } case strings.EqualFold("Credentials", t.Name.Local): @@ -1987,7 +1987,7 @@ func awsAwsquery_deserializeOpDocumentAssumeRoleWithWebIdentityOutput(v **Assume } if val != nil { xtv := string(val) - sv.Provider = &xtv + sv.Provider = ptr.String(xtv) } case strings.EqualFold("SubjectFromWebIdentityToken", t.Name.Local): @@ -2003,7 +2003,7 @@ func awsAwsquery_deserializeOpDocumentAssumeRoleWithWebIdentityOutput(v **Assume } if val != nil { xtv := string(val) - sv.SubjectFromWebIdentityToken = &xtv + sv.SubjectFromWebIdentityToken = ptr.String(xtv) } default: @@ -2051,7 +2051,7 @@ func awsAwsquery_deserializeOpDocumentDecodeAuthorizationMessageOutput(v **Decod } if val != nil { xtv := string(val) - sv.DecodedMessage = &xtv + sv.DecodedMessage = ptr.String(xtv) } default: @@ -2099,7 +2099,7 @@ func awsAwsquery_deserializeOpDocumentGetAccessKeyInfoOutput(v **GetAccessKeyInf } if val != nil { xtv := string(val) - sv.Account = &xtv + sv.Account = ptr.String(xtv) } default: @@ -2147,7 +2147,7 @@ func awsAwsquery_deserializeOpDocumentGetCallerIdentityOutput(v **GetCallerIdent } if val != nil { xtv := string(val) - sv.Account = &xtv + sv.Account = ptr.String(xtv) } case strings.EqualFold("Arn", t.Name.Local): @@ -2163,7 +2163,7 @@ func awsAwsquery_deserializeOpDocumentGetCallerIdentityOutput(v **GetCallerIdent } if val != nil { xtv := string(val) - sv.Arn = &xtv + sv.Arn = ptr.String(xtv) } case strings.EqualFold("UserId", t.Name.Local): @@ -2179,7 +2179,7 @@ func awsAwsquery_deserializeOpDocumentGetCallerIdentityOutput(v **GetCallerIdent } if val != nil { xtv := string(val) - sv.UserId = &xtv + sv.UserId = ptr.String(xtv) } default: diff --git a/service/sts/go.mod b/service/sts/go.mod index f82ef35565a..365efefd2c9 100644 --- a/service/sts/go.mod +++ b/service/sts/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/sts go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/sts/serializers.go b/service/sts/serializers.go index 7a03474bc53..6500953fb64 100644 --- a/service/sts/serializers.go +++ b/service/sts/serializers.go @@ -451,18 +451,15 @@ func (m *awsAwsquery_serializeOpGetSessionToken) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentPolicyDescriptorListType(v []*types.PolicyDescriptorType, value query.Value) error { +func awsAwsquery_serializeDocumentPolicyDescriptorListType(v []types.PolicyDescriptorType, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentPolicyDescriptorType(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentPolicyDescriptorType(&v[i], av); err != nil { return err } } @@ -498,34 +495,28 @@ func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { return nil } -func awsAwsquery_serializeDocumentTagKeyListType(v []*string, value query.Value) error { +func awsAwsquery_serializeDocumentTagKeyListType(v []string, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsquery_serializeDocumentTagListType(v []*types.Tag, value query.Value) error { +func awsAwsquery_serializeDocumentTagListType(v []types.Tag, value query.Value) error { if len(v) == 0 { return nil } array := value.Array("member") for i := range v { - if vv := v[i]; vv == nil { - continue - } av := array.Value() - if err := awsAwsquery_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/sts/validators.go b/service/sts/validators.go index 525e6523b41..58559f1dafe 100644 --- a/service/sts/validators.go +++ b/service/sts/validators.go @@ -172,13 +172,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagListType(v []*types.Tag) error { +func validateTagListType(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagListType"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/support/api_op_AddAttachmentsToSet.go b/service/support/api_op_AddAttachmentsToSet.go index ddc8baa778b..fc5a3528dd1 100644 --- a/service/support/api_op_AddAttachmentsToSet.go +++ b/service/support/api_op_AddAttachmentsToSet.go @@ -49,7 +49,7 @@ type AddAttachmentsToSetInput struct { // attachment, such as troubleshoot-screenshot.png. // // This member is required. - Attachments []*types.Attachment + Attachments []types.Attachment // The ID of the attachment set. If an attachmentSetId is not specified, a new // attachment set is created, and the ID of the set is returned in the response. If diff --git a/service/support/api_op_AddCommunicationToCase.go b/service/support/api_op_AddCommunicationToCase.go index e6acd648d1d..daa0671b5e6 100644 --- a/service/support/api_op_AddCommunicationToCase.go +++ b/service/support/api_op_AddCommunicationToCase.go @@ -56,14 +56,14 @@ type AddCommunicationToCaseInput struct { CaseId *string // The email addresses in the CC line of an email to be added to the support case. - CcEmailAddresses []*string + CcEmailAddresses []string } // The result of the AddCommunicationToCase operation. type AddCommunicationToCaseOutput struct { // True if AddCommunicationToCase succeeds. Otherwise, returns an error. - Result *bool + Result bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/support/api_op_CreateCase.go b/service/support/api_op_CreateCase.go index e4c073349cb..e905b9eb620 100644 --- a/service/support/api_op_CreateCase.go +++ b/service/support/api_op_CreateCase.go @@ -84,7 +84,7 @@ type CreateCaseInput struct { // Support identifies the account that creates the case when you specify your AWS // credentials in an HTTP POST method or use the AWS SDKs // (http://aws.amazon.com/tools/). - CcEmailAddresses []*string + CcEmailAddresses []string // The type of issue for the case. You can specify customer-service or technical. // If you don't specify a value, the default is technical. diff --git a/service/support/api_op_DescribeCases.go b/service/support/api_op_DescribeCases.go index 76478d861e3..dc0112319f2 100644 --- a/service/support/api_op_DescribeCases.go +++ b/service/support/api_op_DescribeCases.go @@ -63,7 +63,7 @@ type DescribeCasesInput struct { // A list of ID numbers of the support cases you want returned. The maximum number // of cases is 100. - CaseIdList []*string + CaseIdList []string // The ID displayed for a case in the AWS Support Center user interface. DisplayId *string @@ -74,7 +74,7 @@ type DescribeCasesInput struct { // Specifies whether to include resolved support cases in the DescribeCases // response. By default, resolved cases aren't included. - IncludeResolvedCases *bool + IncludeResolvedCases bool // The ISO 639-1 code for the language in which AWS provides support. AWS Support // currently supports English ("en") and Japanese ("ja"). Language parameters must @@ -94,7 +94,7 @@ type DescribeCasesInput struct { type DescribeCasesOutput struct { // The details for the cases that match the request. - Cases []*types.CaseDetails + Cases []types.CaseDetails // A resumption point for pagination. NextToken *string diff --git a/service/support/api_op_DescribeCommunications.go b/service/support/api_op_DescribeCommunications.go index 7fb4029f8c1..8c6bfd94c4a 100644 --- a/service/support/api_op_DescribeCommunications.go +++ b/service/support/api_op_DescribeCommunications.go @@ -71,7 +71,7 @@ type DescribeCommunicationsInput struct { type DescribeCommunicationsOutput struct { // The communications for the case. - Communications []*types.Communication + Communications []types.Communication // A resumption point for pagination. NextToken *string diff --git a/service/support/api_op_DescribeServices.go b/service/support/api_op_DescribeServices.go index a234f6e6dee..e4abf90a307 100644 --- a/service/support/api_op_DescribeServices.go +++ b/service/support/api_op_DescribeServices.go @@ -53,14 +53,14 @@ type DescribeServicesInput struct { Language *string // A JSON-formatted list of service codes available for AWS services. - ServiceCodeList []*string + ServiceCodeList []string } // The list of AWS services returned by the DescribeServices operation. type DescribeServicesOutput struct { // A JSON-formatted list of AWS services. - Services []*types.Service + Services []types.Service // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/support/api_op_DescribeSeverityLevels.go b/service/support/api_op_DescribeSeverityLevels.go index 63dc3ffc215..2d7a09637e2 100644 --- a/service/support/api_op_DescribeSeverityLevels.go +++ b/service/support/api_op_DescribeSeverityLevels.go @@ -51,7 +51,7 @@ type DescribeSeverityLevelsOutput struct { // The available severity levels for the support case. Available severity levels // are defined by your service level agreement with AWS. - SeverityLevels []*types.SeverityLevel + SeverityLevels []types.SeverityLevel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/support/api_op_DescribeTrustedAdvisorCheckRefreshStatuses.go b/service/support/api_op_DescribeTrustedAdvisorCheckRefreshStatuses.go index b2c88372f32..d7366e775b3 100644 --- a/service/support/api_op_DescribeTrustedAdvisorCheckRefreshStatuses.go +++ b/service/support/api_op_DescribeTrustedAdvisorCheckRefreshStatuses.go @@ -48,7 +48,7 @@ type DescribeTrustedAdvisorCheckRefreshStatusesInput struct { // InvalidParameterValue error. // // This member is required. - CheckIds []*string + CheckIds []string } // The statuses of the Trusted Advisor checks returned by the @@ -58,7 +58,7 @@ type DescribeTrustedAdvisorCheckRefreshStatusesOutput struct { // The refresh status of the specified Trusted Advisor checks. // // This member is required. - Statuses []*types.TrustedAdvisorCheckRefreshStatus + Statuses []types.TrustedAdvisorCheckRefreshStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/support/api_op_DescribeTrustedAdvisorCheckSummaries.go b/service/support/api_op_DescribeTrustedAdvisorCheckSummaries.go index ef25bf53324..57e4e9be244 100644 --- a/service/support/api_op_DescribeTrustedAdvisorCheckSummaries.go +++ b/service/support/api_op_DescribeTrustedAdvisorCheckSummaries.go @@ -44,7 +44,7 @@ type DescribeTrustedAdvisorCheckSummariesInput struct { // The IDs of the Trusted Advisor checks. // // This member is required. - CheckIds []*string + CheckIds []string } // The summaries of the Trusted Advisor checks returned by the @@ -54,7 +54,7 @@ type DescribeTrustedAdvisorCheckSummariesOutput struct { // The summary information for the requested Trusted Advisor checks. // // This member is required. - Summaries []*types.TrustedAdvisorCheckSummary + Summaries []types.TrustedAdvisorCheckSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/support/api_op_DescribeTrustedAdvisorChecks.go b/service/support/api_op_DescribeTrustedAdvisorChecks.go index c4427e49487..9150b45f480 100644 --- a/service/support/api_op_DescribeTrustedAdvisorChecks.go +++ b/service/support/api_op_DescribeTrustedAdvisorChecks.go @@ -57,7 +57,7 @@ type DescribeTrustedAdvisorChecksOutput struct { // Information about all available Trusted Advisor checks. // // This member is required. - Checks []*types.TrustedAdvisorCheckDescription + Checks []types.TrustedAdvisorCheckDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/support/deserializers.go b/service/support/deserializers.go index 688bae79d0e..e52ff43eb08 100644 --- a/service/support/deserializers.go +++ b/service/support/deserializers.go @@ -13,6 +13,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -1973,7 +1974,7 @@ func awsAwsjson11_deserializeDocumentAttachment(v **types.Attachment, value inte if !ok { return fmt.Errorf("expected FileName to be of type string, got %T instead", value) } - sv.FileName = &jtv + sv.FileName = ptr.String(jtv) } default: @@ -2013,7 +2014,7 @@ func awsAwsjson11_deserializeDocumentAttachmentDetails(v **types.AttachmentDetai if !ok { return fmt.Errorf("expected AttachmentId to be of type string, got %T instead", value) } - sv.AttachmentId = &jtv + sv.AttachmentId = ptr.String(jtv) } case "fileName": @@ -2022,7 +2023,7 @@ func awsAwsjson11_deserializeDocumentAttachmentDetails(v **types.AttachmentDetai if !ok { return fmt.Errorf("expected FileName to be of type string, got %T instead", value) } - sv.FileName = &jtv + sv.FileName = ptr.String(jtv) } default: @@ -2062,7 +2063,7 @@ func awsAwsjson11_deserializeDocumentAttachmentIdNotFound(v **types.AttachmentId if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2102,7 +2103,7 @@ func awsAwsjson11_deserializeDocumentAttachmentLimitExceeded(v **types.Attachmen if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2114,7 +2115,7 @@ func awsAwsjson11_deserializeDocumentAttachmentLimitExceeded(v **types.Attachmen return nil } -func awsAwsjson11_deserializeDocumentAttachmentSet(v *[]*types.AttachmentDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentAttachmentSet(v *[]types.AttachmentDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2127,18 +2128,20 @@ func awsAwsjson11_deserializeDocumentAttachmentSet(v *[]*types.AttachmentDetails return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AttachmentDetails + var cv []types.AttachmentDetails if *v == nil { - cv = []*types.AttachmentDetails{} + cv = []types.AttachmentDetails{} } else { cv = *v } for _, value := range shape { - var col *types.AttachmentDetails - if err := awsAwsjson11_deserializeDocumentAttachmentDetails(&col, value); err != nil { + var col types.AttachmentDetails + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAttachmentDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2174,7 +2177,7 @@ func awsAwsjson11_deserializeDocumentAttachmentSetExpired(v **types.AttachmentSe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2214,7 +2217,7 @@ func awsAwsjson11_deserializeDocumentAttachmentSetIdNotFound(v **types.Attachmen if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2254,7 +2257,7 @@ func awsAwsjson11_deserializeDocumentAttachmentSetSizeLimitExceeded(v **types.At if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2294,7 +2297,7 @@ func awsAwsjson11_deserializeDocumentCaseCreationLimitExceeded(v **types.CaseCre if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2334,7 +2337,7 @@ func awsAwsjson11_deserializeDocumentCaseDetails(v **types.CaseDetails, value in if !ok { return fmt.Errorf("expected CaseId to be of type string, got %T instead", value) } - sv.CaseId = &jtv + sv.CaseId = ptr.String(jtv) } case "categoryCode": @@ -2343,7 +2346,7 @@ func awsAwsjson11_deserializeDocumentCaseDetails(v **types.CaseDetails, value in if !ok { return fmt.Errorf("expected CategoryCode to be of type string, got %T instead", value) } - sv.CategoryCode = &jtv + sv.CategoryCode = ptr.String(jtv) } case "ccEmailAddresses": @@ -2357,7 +2360,7 @@ func awsAwsjson11_deserializeDocumentCaseDetails(v **types.CaseDetails, value in if !ok { return fmt.Errorf("expected DisplayId to be of type string, got %T instead", value) } - sv.DisplayId = &jtv + sv.DisplayId = ptr.String(jtv) } case "language": @@ -2366,7 +2369,7 @@ func awsAwsjson11_deserializeDocumentCaseDetails(v **types.CaseDetails, value in if !ok { return fmt.Errorf("expected Language to be of type string, got %T instead", value) } - sv.Language = &jtv + sv.Language = ptr.String(jtv) } case "recentCommunications": @@ -2380,7 +2383,7 @@ func awsAwsjson11_deserializeDocumentCaseDetails(v **types.CaseDetails, value in if !ok { return fmt.Errorf("expected ServiceCode to be of type string, got %T instead", value) } - sv.ServiceCode = &jtv + sv.ServiceCode = ptr.String(jtv) } case "severityCode": @@ -2389,7 +2392,7 @@ func awsAwsjson11_deserializeDocumentCaseDetails(v **types.CaseDetails, value in if !ok { return fmt.Errorf("expected SeverityCode to be of type string, got %T instead", value) } - sv.SeverityCode = &jtv + sv.SeverityCode = ptr.String(jtv) } case "status": @@ -2398,7 +2401,7 @@ func awsAwsjson11_deserializeDocumentCaseDetails(v **types.CaseDetails, value in if !ok { return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "subject": @@ -2407,7 +2410,7 @@ func awsAwsjson11_deserializeDocumentCaseDetails(v **types.CaseDetails, value in if !ok { return fmt.Errorf("expected Subject to be of type string, got %T instead", value) } - sv.Subject = &jtv + sv.Subject = ptr.String(jtv) } case "submittedBy": @@ -2416,7 +2419,7 @@ func awsAwsjson11_deserializeDocumentCaseDetails(v **types.CaseDetails, value in if !ok { return fmt.Errorf("expected SubmittedBy to be of type string, got %T instead", value) } - sv.SubmittedBy = &jtv + sv.SubmittedBy = ptr.String(jtv) } case "timeCreated": @@ -2425,7 +2428,7 @@ func awsAwsjson11_deserializeDocumentCaseDetails(v **types.CaseDetails, value in if !ok { return fmt.Errorf("expected TimeCreated to be of type string, got %T instead", value) } - sv.TimeCreated = &jtv + sv.TimeCreated = ptr.String(jtv) } default: @@ -2465,7 +2468,7 @@ func awsAwsjson11_deserializeDocumentCaseIdNotFound(v **types.CaseIdNotFound, va if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2477,7 +2480,7 @@ func awsAwsjson11_deserializeDocumentCaseIdNotFound(v **types.CaseIdNotFound, va return nil } -func awsAwsjson11_deserializeDocumentCaseList(v *[]*types.CaseDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentCaseList(v *[]types.CaseDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2490,18 +2493,20 @@ func awsAwsjson11_deserializeDocumentCaseList(v *[]*types.CaseDetails, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CaseDetails + var cv []types.CaseDetails if *v == nil { - cv = []*types.CaseDetails{} + cv = []types.CaseDetails{} } else { cv = *v } for _, value := range shape { - var col *types.CaseDetails - if err := awsAwsjson11_deserializeDocumentCaseDetails(&col, value); err != nil { + var col types.CaseDetails + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCaseDetails(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2537,7 +2542,7 @@ func awsAwsjson11_deserializeDocumentCategory(v **types.Category, value interfac if !ok { return fmt.Errorf("expected CategoryCode to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "name": @@ -2546,7 +2551,7 @@ func awsAwsjson11_deserializeDocumentCategory(v **types.Category, value interfac if !ok { return fmt.Errorf("expected CategoryName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -2558,7 +2563,7 @@ func awsAwsjson11_deserializeDocumentCategory(v **types.Category, value interfac return nil } -func awsAwsjson11_deserializeDocumentCategoryList(v *[]*types.Category, value interface{}) error { +func awsAwsjson11_deserializeDocumentCategoryList(v *[]types.Category, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2571,18 +2576,20 @@ func awsAwsjson11_deserializeDocumentCategoryList(v *[]*types.Category, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Category + var cv []types.Category if *v == nil { - cv = []*types.Category{} + cv = []types.Category{} } else { cv = *v } for _, value := range shape { - var col *types.Category - if err := awsAwsjson11_deserializeDocumentCategory(&col, value); err != nil { + var col types.Category + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCategory(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2590,7 +2597,7 @@ func awsAwsjson11_deserializeDocumentCategoryList(v *[]*types.Category, value in return nil } -func awsAwsjson11_deserializeDocumentCcEmailAddressList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentCcEmailAddressList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2603,21 +2610,21 @@ func awsAwsjson11_deserializeDocumentCcEmailAddressList(v *[]*string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected CcEmailAddress to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2659,7 +2666,7 @@ func awsAwsjson11_deserializeDocumentCommunication(v **types.Communication, valu if !ok { return fmt.Errorf("expected CommunicationBody to be of type string, got %T instead", value) } - sv.Body = &jtv + sv.Body = ptr.String(jtv) } case "caseId": @@ -2668,7 +2675,7 @@ func awsAwsjson11_deserializeDocumentCommunication(v **types.Communication, valu if !ok { return fmt.Errorf("expected CaseId to be of type string, got %T instead", value) } - sv.CaseId = &jtv + sv.CaseId = ptr.String(jtv) } case "submittedBy": @@ -2677,7 +2684,7 @@ func awsAwsjson11_deserializeDocumentCommunication(v **types.Communication, valu if !ok { return fmt.Errorf("expected SubmittedBy to be of type string, got %T instead", value) } - sv.SubmittedBy = &jtv + sv.SubmittedBy = ptr.String(jtv) } case "timeCreated": @@ -2686,7 +2693,7 @@ func awsAwsjson11_deserializeDocumentCommunication(v **types.Communication, valu if !ok { return fmt.Errorf("expected TimeCreated to be of type string, got %T instead", value) } - sv.TimeCreated = &jtv + sv.TimeCreated = ptr.String(jtv) } default: @@ -2698,7 +2705,7 @@ func awsAwsjson11_deserializeDocumentCommunication(v **types.Communication, valu return nil } -func awsAwsjson11_deserializeDocumentCommunicationList(v *[]*types.Communication, value interface{}) error { +func awsAwsjson11_deserializeDocumentCommunicationList(v *[]types.Communication, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2711,18 +2718,20 @@ func awsAwsjson11_deserializeDocumentCommunicationList(v *[]*types.Communication return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Communication + var cv []types.Communication if *v == nil { - cv = []*types.Communication{} + cv = []types.Communication{} } else { cv = *v } for _, value := range shape { - var col *types.Communication - if err := awsAwsjson11_deserializeDocumentCommunication(&col, value); err != nil { + var col types.Communication + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCommunication(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2758,7 +2767,7 @@ func awsAwsjson11_deserializeDocumentDescribeAttachmentLimitExceeded(v **types.D if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2798,7 +2807,7 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2843,7 +2852,7 @@ func awsAwsjson11_deserializeDocumentRecentCaseCommunications(v **types.RecentCa if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2888,7 +2897,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected ServiceCode to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "name": @@ -2897,7 +2906,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -2909,7 +2918,7 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ return nil } -func awsAwsjson11_deserializeDocumentServiceList(v *[]*types.Service, value interface{}) error { +func awsAwsjson11_deserializeDocumentServiceList(v *[]types.Service, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2922,18 +2931,20 @@ func awsAwsjson11_deserializeDocumentServiceList(v *[]*types.Service, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Service + var cv []types.Service if *v == nil { - cv = []*types.Service{} + cv = []types.Service{} } else { cv = *v } for _, value := range shape { - var col *types.Service - if err := awsAwsjson11_deserializeDocumentService(&col, value); err != nil { + var col types.Service + destAddr := &col + if err := awsAwsjson11_deserializeDocumentService(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2969,7 +2980,7 @@ func awsAwsjson11_deserializeDocumentSeverityLevel(v **types.SeverityLevel, valu if !ok { return fmt.Errorf("expected SeverityLevelCode to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "name": @@ -2978,7 +2989,7 @@ func awsAwsjson11_deserializeDocumentSeverityLevel(v **types.SeverityLevel, valu if !ok { return fmt.Errorf("expected SeverityLevelName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -2990,7 +3001,7 @@ func awsAwsjson11_deserializeDocumentSeverityLevel(v **types.SeverityLevel, valu return nil } -func awsAwsjson11_deserializeDocumentSeverityLevelsList(v *[]*types.SeverityLevel, value interface{}) error { +func awsAwsjson11_deserializeDocumentSeverityLevelsList(v *[]types.SeverityLevel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3003,18 +3014,20 @@ func awsAwsjson11_deserializeDocumentSeverityLevelsList(v *[]*types.SeverityLeve return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SeverityLevel + var cv []types.SeverityLevel if *v == nil { - cv = []*types.SeverityLevel{} + cv = []types.SeverityLevel{} } else { cv = *v } for _, value := range shape { - var col *types.SeverityLevel - if err := awsAwsjson11_deserializeDocumentSeverityLevel(&col, value); err != nil { + var col types.SeverityLevel + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSeverityLevel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3022,7 +3035,7 @@ func awsAwsjson11_deserializeDocumentSeverityLevelsList(v *[]*types.SeverityLeve return nil } -func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3035,21 +3048,21 @@ func awsAwsjson11_deserializeDocumentStringList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -3122,7 +3135,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckDescription(v **types.Tr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Category = &jtv + sv.Category = ptr.String(jtv) } case "description": @@ -3131,7 +3144,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckDescription(v **types.Tr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "id": @@ -3140,7 +3153,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckDescription(v **types.Tr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "metadata": @@ -3154,7 +3167,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckDescription(v **types.Tr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -3166,7 +3179,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckDescription(v **types.Tr return nil } -func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckList(v *[]*types.TrustedAdvisorCheckDescription, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckList(v *[]types.TrustedAdvisorCheckDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3179,18 +3192,20 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckList(v *[]*types.Trusted return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TrustedAdvisorCheckDescription + var cv []types.TrustedAdvisorCheckDescription if *v == nil { - cv = []*types.TrustedAdvisorCheckDescription{} + cv = []types.TrustedAdvisorCheckDescription{} } else { cv = *v } for _, value := range shape { - var col *types.TrustedAdvisorCheckDescription - if err := awsAwsjson11_deserializeDocumentTrustedAdvisorCheckDescription(&col, value); err != nil { + var col types.TrustedAdvisorCheckDescription + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrustedAdvisorCheckDescription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3226,7 +3241,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckRefreshStatus(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CheckId = &jtv + sv.CheckId = ptr.String(jtv) } case "millisUntilNextRefreshable": @@ -3239,7 +3254,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckRefreshStatus(v **types. if err != nil { return err } - sv.MillisUntilNextRefreshable = &i64 + sv.MillisUntilNextRefreshable = i64 } case "status": @@ -3248,7 +3263,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckRefreshStatus(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -3260,7 +3275,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckRefreshStatus(v **types. return nil } -func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckRefreshStatusList(v *[]*types.TrustedAdvisorCheckRefreshStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckRefreshStatusList(v *[]types.TrustedAdvisorCheckRefreshStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3273,18 +3288,20 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckRefreshStatusList(v *[]* return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TrustedAdvisorCheckRefreshStatus + var cv []types.TrustedAdvisorCheckRefreshStatus if *v == nil { - cv = []*types.TrustedAdvisorCheckRefreshStatus{} + cv = []types.TrustedAdvisorCheckRefreshStatus{} } else { cv = *v } for _, value := range shape { - var col *types.TrustedAdvisorCheckRefreshStatus - if err := awsAwsjson11_deserializeDocumentTrustedAdvisorCheckRefreshStatus(&col, value); err != nil { + var col types.TrustedAdvisorCheckRefreshStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrustedAdvisorCheckRefreshStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3325,7 +3342,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckResult(v **types.Trusted if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CheckId = &jtv + sv.CheckId = ptr.String(jtv) } case "flaggedResources": @@ -3344,7 +3361,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckResult(v **types.Trusted if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "timestamp": @@ -3353,7 +3370,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckResult(v **types.Trusted if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Timestamp = &jtv + sv.Timestamp = ptr.String(jtv) } default: @@ -3398,7 +3415,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckSummary(v **types.Truste if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CheckId = &jtv + sv.CheckId = ptr.String(jtv) } case "hasFlaggedResources": @@ -3407,7 +3424,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckSummary(v **types.Truste if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.HasFlaggedResources = &jtv + sv.HasFlaggedResources = jtv } case "resourcesSummary": @@ -3421,7 +3438,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckSummary(v **types.Truste if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } case "timestamp": @@ -3430,7 +3447,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckSummary(v **types.Truste if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Timestamp = &jtv + sv.Timestamp = ptr.String(jtv) } default: @@ -3442,7 +3459,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckSummary(v **types.Truste return nil } -func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckSummaryList(v *[]*types.TrustedAdvisorCheckSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckSummaryList(v *[]types.TrustedAdvisorCheckSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3455,18 +3472,20 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCheckSummaryList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TrustedAdvisorCheckSummary + var cv []types.TrustedAdvisorCheckSummary if *v == nil { - cv = []*types.TrustedAdvisorCheckSummary{} + cv = []types.TrustedAdvisorCheckSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TrustedAdvisorCheckSummary - if err := awsAwsjson11_deserializeDocumentTrustedAdvisorCheckSummary(&col, value); err != nil { + var col types.TrustedAdvisorCheckSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrustedAdvisorCheckSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3506,7 +3525,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCostOptimizingSummary(v **typ if err != nil { return err } - sv.EstimatedMonthlySavings = &f64 + sv.EstimatedMonthlySavings = f64 } case "estimatedPercentMonthlySavings": @@ -3519,7 +3538,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorCostOptimizingSummary(v **typ if err != nil { return err } - sv.EstimatedPercentMonthlySavings = &f64 + sv.EstimatedPercentMonthlySavings = f64 } default: @@ -3559,7 +3578,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorResourceDetail(v **types.Trus if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsSuppressed = &jtv + sv.IsSuppressed = jtv } case "metadata": @@ -3573,7 +3592,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorResourceDetail(v **types.Trus if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Region = &jtv + sv.Region = ptr.String(jtv) } case "resourceId": @@ -3582,7 +3601,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorResourceDetail(v **types.Trus if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "status": @@ -3591,7 +3610,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorResourceDetail(v **types.Trus if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = &jtv + sv.Status = ptr.String(jtv) } default: @@ -3603,7 +3622,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorResourceDetail(v **types.Trus return nil } -func awsAwsjson11_deserializeDocumentTrustedAdvisorResourceDetailList(v *[]*types.TrustedAdvisorResourceDetail, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrustedAdvisorResourceDetailList(v *[]types.TrustedAdvisorResourceDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3616,18 +3635,20 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorResourceDetailList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TrustedAdvisorResourceDetail + var cv []types.TrustedAdvisorResourceDetail if *v == nil { - cv = []*types.TrustedAdvisorResourceDetail{} + cv = []types.TrustedAdvisorResourceDetail{} } else { cv = *v } for _, value := range shape { - var col *types.TrustedAdvisorResourceDetail - if err := awsAwsjson11_deserializeDocumentTrustedAdvisorResourceDetail(&col, value); err != nil { + var col types.TrustedAdvisorResourceDetail + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTrustedAdvisorResourceDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3667,7 +3688,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorResourcesSummary(v **types.Tr if err != nil { return err } - sv.ResourcesFlagged = &i64 + sv.ResourcesFlagged = i64 } case "resourcesIgnored": @@ -3680,7 +3701,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorResourcesSummary(v **types.Tr if err != nil { return err } - sv.ResourcesIgnored = &i64 + sv.ResourcesIgnored = i64 } case "resourcesProcessed": @@ -3693,7 +3714,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorResourcesSummary(v **types.Tr if err != nil { return err } - sv.ResourcesProcessed = &i64 + sv.ResourcesProcessed = i64 } case "resourcesSuppressed": @@ -3706,7 +3727,7 @@ func awsAwsjson11_deserializeDocumentTrustedAdvisorResourcesSummary(v **types.Tr if err != nil { return err } - sv.ResourcesSuppressed = &i64 + sv.ResourcesSuppressed = i64 } default: @@ -3746,7 +3767,7 @@ func awsAwsjson11_deserializeOpDocumentAddAttachmentsToSetOutput(v **AddAttachme if !ok { return fmt.Errorf("expected AttachmentSetId to be of type string, got %T instead", value) } - sv.AttachmentSetId = &jtv + sv.AttachmentSetId = ptr.String(jtv) } case "expiryTime": @@ -3755,7 +3776,7 @@ func awsAwsjson11_deserializeOpDocumentAddAttachmentsToSetOutput(v **AddAttachme if !ok { return fmt.Errorf("expected ExpiryTime to be of type string, got %T instead", value) } - sv.ExpiryTime = &jtv + sv.ExpiryTime = ptr.String(jtv) } default: @@ -3795,7 +3816,7 @@ func awsAwsjson11_deserializeOpDocumentAddCommunicationToCaseOutput(v **AddCommu if !ok { return fmt.Errorf("expected Result to be of type *bool, got %T instead", value) } - sv.Result = &jtv + sv.Result = jtv } default: @@ -3835,7 +3856,7 @@ func awsAwsjson11_deserializeOpDocumentCreateCaseOutput(v **CreateCaseOutput, va if !ok { return fmt.Errorf("expected CaseId to be of type string, got %T instead", value) } - sv.CaseId = &jtv + sv.CaseId = ptr.String(jtv) } default: @@ -3916,7 +3937,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCasesOutput(v **DescribeCasesOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3961,7 +3982,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeCommunicationsOutput(v **Describe if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -4253,7 +4274,7 @@ func awsAwsjson11_deserializeOpDocumentResolveCaseOutput(v **ResolveCaseOutput, if !ok { return fmt.Errorf("expected CaseStatus to be of type string, got %T instead", value) } - sv.FinalCaseStatus = &jtv + sv.FinalCaseStatus = ptr.String(jtv) } case "initialCaseStatus": @@ -4262,7 +4283,7 @@ func awsAwsjson11_deserializeOpDocumentResolveCaseOutput(v **ResolveCaseOutput, if !ok { return fmt.Errorf("expected CaseStatus to be of type string, got %T instead", value) } - sv.InitialCaseStatus = &jtv + sv.InitialCaseStatus = ptr.String(jtv) } default: diff --git a/service/support/go.mod b/service/support/go.mod index 154977df075..f709821062c 100644 --- a/service/support/go.mod +++ b/service/support/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/support go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/support/serializers.go b/service/support/serializers.go index cc940982e8c..4b77eceab99 100644 --- a/service/support/serializers.go +++ b/service/support/serializers.go @@ -674,79 +674,59 @@ func awsAwsjson11_serializeDocumentAttachment(v *types.Attachment, value smithyj return nil } -func awsAwsjson11_serializeDocumentAttachments(v []*types.Attachment, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAttachments(v []types.Attachment, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentAttachment(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentAttachment(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentCaseIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCaseIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentCcEmailAddressList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentCcEmailAddressList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentServiceCodeList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentServiceCodeList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -896,9 +876,9 @@ func awsAwsjson11_serializeOpDocumentDescribeCasesInput(v *DescribeCasesInput, v ok.Boolean(*v.IncludeCommunications) } - if v.IncludeResolvedCases != nil { + if v.IncludeResolvedCases { ok := object.Key("includeResolvedCases") - ok.Boolean(*v.IncludeResolvedCases) + ok.Boolean(v.IncludeResolvedCases) } if v.Language != nil { diff --git a/service/support/types/types.go b/service/support/types/types.go index 062f85a9421..40601e12092 100644 --- a/service/support/types/types.go +++ b/service/support/types/types.go @@ -93,7 +93,7 @@ type CaseDetails struct { CategoryCode *string // The email addresses that receive copies of communication about the case. - CcEmailAddresses []*string + CcEmailAddresses []string // The ID displayed for the case in the AWS Support Center. This is a numeric // string. @@ -160,7 +160,7 @@ type Category struct { type Communication struct { // Information about the attachments to the case communication. - AttachmentSet []*AttachmentDetails + AttachmentSet []AttachmentDetails // The text of the communication between the customer and AWS Support. Body *string @@ -184,7 +184,7 @@ type Communication struct { type RecentCaseCommunications struct { // The five most recent communications associated with the case. - Communications []*Communication + Communications []Communication // A resumption point for pagination. NextToken *string @@ -196,7 +196,7 @@ type Service struct { // A list of categories that describe the type of support issue a case describes. // Categories consist of a category name and a category code. Category names and // codes are passed to AWS Support when you call CreateCase. - Categories []*Category + Categories []Category // The code for an AWS service returned by the DescribeServices response. The name // element contains the corresponding friendly name. @@ -277,7 +277,7 @@ type TrustedAdvisorCheckDescription struct { // shows just summary data. // // This member is required. - Metadata []*string + Metadata []string // The display name for the Trusted Advisor check. // @@ -297,7 +297,7 @@ type TrustedAdvisorCheckRefreshStatus struct { // for refresh. // // This member is required. - MillisUntilNextRefreshable *int64 + MillisUntilNextRefreshable int64 // The status of the Trusted Advisor check for which a refresh has been // requested: @@ -338,7 +338,7 @@ type TrustedAdvisorCheckResult struct { // The details about each resource listed in the check result. // // This member is required. - FlaggedResources []*TrustedAdvisorResourceDetail + FlaggedResources []TrustedAdvisorResourceDetail // Details about AWS resources that were analyzed in a call to Trusted Advisor // DescribeTrustedAdvisorCheckSummaries. @@ -391,7 +391,7 @@ type TrustedAdvisorCheckSummary struct { Timestamp *string // Specifies whether the Trusted Advisor check has flagged resources. - HasFlaggedResources *bool + HasFlaggedResources bool } // The estimated cost savings that might be realized if the recommended operations @@ -402,13 +402,13 @@ type TrustedAdvisorCostOptimizingSummary struct { // operations are taken. // // This member is required. - EstimatedMonthlySavings *float64 + EstimatedMonthlySavings float64 // The estimated percentage of savings that might be realized if the recommended // operations are taken. // // This member is required. - EstimatedPercentMonthlySavings *float64 + EstimatedPercentMonthlySavings float64 } // Contains information about a resource identified by a Trusted Advisor check. @@ -421,7 +421,7 @@ type TrustedAdvisorResourceDetail struct { // just summary data. // // This member is required. - Metadata []*string + Metadata []string // The unique identifier for the identified resource. // @@ -435,7 +435,7 @@ type TrustedAdvisorResourceDetail struct { // Specifies whether the AWS resource was ignored by Trusted Advisor because it was // marked as suppressed by the user. - IsSuppressed *bool + IsSuppressed bool // The AWS region in which the identified resource is located. Region *string @@ -449,22 +449,22 @@ type TrustedAdvisorResourcesSummary struct { // check. // // This member is required. - ResourcesFlagged *int64 + ResourcesFlagged int64 // The number of AWS resources ignored by Trusted Advisor because information was // unavailable. // // This member is required. - ResourcesIgnored *int64 + ResourcesIgnored int64 // The number of AWS resources that were analyzed by the Trusted Advisor check. // // This member is required. - ResourcesProcessed *int64 + ResourcesProcessed int64 // The number of AWS resources ignored by Trusted Advisor because they were marked // as suppressed by the user. // // This member is required. - ResourcesSuppressed *int64 + ResourcesSuppressed int64 } diff --git a/service/swf/api_op_CountClosedWorkflowExecutions.go b/service/swf/api_op_CountClosedWorkflowExecutions.go index 985ca1387f2..a701c6aea25 100644 --- a/service/swf/api_op_CountClosedWorkflowExecutions.go +++ b/service/swf/api_op_CountClosedWorkflowExecutions.go @@ -104,11 +104,11 @@ type CountClosedWorkflowExecutionsOutput struct { // The number of workflow executions. // // This member is required. - Count *int32 + Count int32 // If set to true, indicates that the actual count was more than the maximum // supported by this API and the count returned is the truncated value. - Truncated *bool + Truncated bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/swf/api_op_CountOpenWorkflowExecutions.go b/service/swf/api_op_CountOpenWorkflowExecutions.go index 4e148020122..2b8752dab9b 100644 --- a/service/swf/api_op_CountOpenWorkflowExecutions.go +++ b/service/swf/api_op_CountOpenWorkflowExecutions.go @@ -93,11 +93,11 @@ type CountOpenWorkflowExecutionsOutput struct { // The number of workflow executions. // // This member is required. - Count *int32 + Count int32 // If set to true, indicates that the actual count was more than the maximum // supported by this API and the count returned is the truncated value. - Truncated *bool + Truncated bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/swf/api_op_CountPendingActivityTasks.go b/service/swf/api_op_CountPendingActivityTasks.go index d8eb63df0d8..5e693f8aac3 100644 --- a/service/swf/api_op_CountPendingActivityTasks.go +++ b/service/swf/api_op_CountPendingActivityTasks.go @@ -68,11 +68,11 @@ type CountPendingActivityTasksOutput struct { // The number of tasks in the task list. // // This member is required. - Count *int32 + Count int32 // If set to true, indicates that the actual count was more than the maximum // supported by this API and the count returned is the truncated value. - Truncated *bool + Truncated bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/swf/api_op_CountPendingDecisionTasks.go b/service/swf/api_op_CountPendingDecisionTasks.go index 40e7e2b20c2..51759348764 100644 --- a/service/swf/api_op_CountPendingDecisionTasks.go +++ b/service/swf/api_op_CountPendingDecisionTasks.go @@ -68,11 +68,11 @@ type CountPendingDecisionTasksOutput struct { // The number of tasks in the task list. // // This member is required. - Count *int32 + Count int32 // If set to true, indicates that the actual count was more than the maximum // supported by this API and the count returned is the truncated value. - Truncated *bool + Truncated bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/swf/api_op_GetWorkflowExecutionHistory.go b/service/swf/api_op_GetWorkflowExecutionHistory.go index 82c6c57e39f..9dc9f23d2c7 100644 --- a/service/swf/api_op_GetWorkflowExecutionHistory.go +++ b/service/swf/api_op_GetWorkflowExecutionHistory.go @@ -63,7 +63,7 @@ type GetWorkflowExecutionHistoryInput struct { // The maximum number of results that are returned per call. Use nextPageToken to // obtain further pages of results. - MaximumPageSize *int32 + MaximumPageSize int32 // If NextPageToken is returned there are more results available. The value of // NextPageToken is a unique pagination token for each page. Make the call again @@ -76,7 +76,7 @@ type GetWorkflowExecutionHistoryInput struct { // When set to true, returns the events in reverse order. By default the results // are returned in ascending order of the eventTimeStamp of the events. - ReverseOrder *bool + ReverseOrder bool } // Paginated representation of a workflow history for a workflow execution. This is @@ -87,7 +87,7 @@ type GetWorkflowExecutionHistoryOutput struct { // The list of history events. // // This member is required. - Events []*types.HistoryEvent + Events []types.HistoryEvent // If a NextPageToken was returned by a previous call, there are more results // available. To retrieve the next page of results, make the call again using the diff --git a/service/swf/api_op_ListActivityTypes.go b/service/swf/api_op_ListActivityTypes.go index ff0f1964409..1fc37d09ae6 100644 --- a/service/swf/api_op_ListActivityTypes.go +++ b/service/swf/api_op_ListActivityTypes.go @@ -64,7 +64,7 @@ type ListActivityTypesInput struct { // The maximum number of results that are returned per call. Use nextPageToken to // obtain further pages of results. - MaximumPageSize *int32 + MaximumPageSize int32 // If specified, only lists the activity types that have this name. Name *string @@ -80,7 +80,7 @@ type ListActivityTypesInput struct { // When set to true, returns the results in reverse order. By default, the results // are returned in ascending alphabetical order by name of the activity types. - ReverseOrder *bool + ReverseOrder bool } // Contains a paginated list of activity type information structures. @@ -89,7 +89,7 @@ type ListActivityTypesOutput struct { // List of activity type information. // // This member is required. - TypeInfos []*types.ActivityTypeInfo + TypeInfos []types.ActivityTypeInfo // If a NextPageToken was returned by a previous call, there are more results // available. To retrieve the next page of results, make the call again using the diff --git a/service/swf/api_op_ListClosedWorkflowExecutions.go b/service/swf/api_op_ListClosedWorkflowExecutions.go index 66ca5e7a99c..b9c71af9bfc 100644 --- a/service/swf/api_op_ListClosedWorkflowExecutions.go +++ b/service/swf/api_op_ListClosedWorkflowExecutions.go @@ -88,7 +88,7 @@ type ListClosedWorkflowExecutionsInput struct { // The maximum number of results that are returned per call. Use nextPageToken to // obtain further pages of results. - MaximumPageSize *int32 + MaximumPageSize int32 // If NextPageToken is returned there are more results available. The value of // NextPageToken is a unique pagination token for each page. Make the call again @@ -102,7 +102,7 @@ type ListClosedWorkflowExecutionsInput struct { // When set to true, returns the results in reverse order. By default the results // are returned in descending order of the start or the close time of the // executions. - ReverseOrder *bool + ReverseOrder bool // If specified, the workflow executions are included in the returned results based // on whether their start times are within the range specified by this filter. @@ -128,7 +128,7 @@ type ListClosedWorkflowExecutionsOutput struct { // The list of workflow information structures. // // This member is required. - ExecutionInfos []*types.WorkflowExecutionInfo + ExecutionInfos []types.WorkflowExecutionInfo // If a NextPageToken was returned by a previous call, there are more results // available. To retrieve the next page of results, make the call again using the diff --git a/service/swf/api_op_ListDomains.go b/service/swf/api_op_ListDomains.go index 7596f6e614f..de5ea583343 100644 --- a/service/swf/api_op_ListDomains.go +++ b/service/swf/api_op_ListDomains.go @@ -60,7 +60,7 @@ type ListDomainsInput struct { // The maximum number of results that are returned per call. Use nextPageToken to // obtain further pages of results. - MaximumPageSize *int32 + MaximumPageSize int32 // If NextPageToken is returned there are more results available. The value of // NextPageToken is a unique pagination token for each page. Make the call again @@ -73,7 +73,7 @@ type ListDomainsInput struct { // When set to true, returns the results in reverse order. By default, the results // are returned in ascending alphabetical order by name of the domains. - ReverseOrder *bool + ReverseOrder bool } // Contains a paginated collection of DomainInfo structures. @@ -82,7 +82,7 @@ type ListDomainsOutput struct { // A list of DomainInfo structures. // // This member is required. - DomainInfos []*types.DomainInfo + DomainInfos []types.DomainInfo // If a NextPageToken was returned by a previous call, there are more results // available. To retrieve the next page of results, make the call again using the diff --git a/service/swf/api_op_ListOpenWorkflowExecutions.go b/service/swf/api_op_ListOpenWorkflowExecutions.go index 65517d9f2da..e58decee9bb 100644 --- a/service/swf/api_op_ListOpenWorkflowExecutions.go +++ b/service/swf/api_op_ListOpenWorkflowExecutions.go @@ -79,7 +79,7 @@ type ListOpenWorkflowExecutionsInput struct { // The maximum number of results that are returned per call. Use nextPageToken to // obtain further pages of results. - MaximumPageSize *int32 + MaximumPageSize int32 // If NextPageToken is returned there are more results available. The value of // NextPageToken is a unique pagination token for each page. Make the call again @@ -92,7 +92,7 @@ type ListOpenWorkflowExecutionsInput struct { // When set to true, returns the results in reverse order. By default the results // are returned in descending order of the start time of the executions. - ReverseOrder *bool + ReverseOrder bool // If specified, only executions that have the matching tag are listed. // executionFilter, typeFilter and tagFilter are mutually exclusive. You can @@ -111,7 +111,7 @@ type ListOpenWorkflowExecutionsOutput struct { // The list of workflow information structures. // // This member is required. - ExecutionInfos []*types.WorkflowExecutionInfo + ExecutionInfos []types.WorkflowExecutionInfo // If a NextPageToken was returned by a previous call, there are more results // available. To retrieve the next page of results, make the call again using the diff --git a/service/swf/api_op_ListTagsForResource.go b/service/swf/api_op_ListTagsForResource.go index 9a0ca503fb8..a1f55581d50 100644 --- a/service/swf/api_op_ListTagsForResource.go +++ b/service/swf/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // An array of tags associated with the domain. - Tags []*types.ResourceTag + Tags []types.ResourceTag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/swf/api_op_ListWorkflowTypes.go b/service/swf/api_op_ListWorkflowTypes.go index e89fa96c579..d6e10994c04 100644 --- a/service/swf/api_op_ListWorkflowTypes.go +++ b/service/swf/api_op_ListWorkflowTypes.go @@ -61,7 +61,7 @@ type ListWorkflowTypesInput struct { // The maximum number of results that are returned per call. Use nextPageToken to // obtain further pages of results. - MaximumPageSize *int32 + MaximumPageSize int32 // If specified, lists the workflow type with this name. Name *string @@ -77,7 +77,7 @@ type ListWorkflowTypesInput struct { // When set to true, returns the results in reverse order. By default the results // are returned in ascending alphabetical order of the name of the workflow types. - ReverseOrder *bool + ReverseOrder bool } // Contains a paginated list of information structures about workflow types. @@ -86,7 +86,7 @@ type ListWorkflowTypesOutput struct { // The list of workflow type information. // // This member is required. - TypeInfos []*types.WorkflowTypeInfo + TypeInfos []types.WorkflowTypeInfo // If a NextPageToken was returned by a previous call, there are more results // available. To retrieve the next page of results, make the call again using the diff --git a/service/swf/api_op_PollForActivityTask.go b/service/swf/api_op_PollForActivityTask.go index e2e19ff6b77..2692014def2 100644 --- a/service/swf/api_op_PollForActivityTask.go +++ b/service/swf/api_op_PollForActivityTask.go @@ -93,7 +93,7 @@ type PollForActivityTaskOutput struct { // The ID of the ActivityTaskStarted event recorded in the history. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The opaque string used as a handle on the task. This token is used by workers to // communicate progress and response information back to the system about the task. diff --git a/service/swf/api_op_PollForDecisionTask.go b/service/swf/api_op_PollForDecisionTask.go index 14298594130..163e8ee0dc4 100644 --- a/service/swf/api_op_PollForDecisionTask.go +++ b/service/swf/api_op_PollForDecisionTask.go @@ -86,7 +86,7 @@ type PollForDecisionTaskInput struct { // The maximum number of results that are returned per call. Use nextPageToken to // obtain further pages of results. This is an upper limit only; the actual number // of results returned per call may be fewer than the specified maximum. - MaximumPageSize *int32 + MaximumPageSize int32 // If NextPageToken is returned there are more results available. The value of // NextPageToken is a unique pagination token for each page. Make the call again @@ -103,7 +103,7 @@ type PollForDecisionTaskInput struct { // When set to true, returns the events in reverse order. By default the results // are returned in ascending order of the eventTimestamp of the events. - ReverseOrder *bool + ReverseOrder bool } // A structure that represents a decision task. Decision tasks are sent to deciders @@ -114,12 +114,12 @@ type PollForDecisionTaskOutput struct { // this during the processing of the decision task. // // This member is required. - Events []*types.HistoryEvent + Events []types.HistoryEvent // The ID of the DecisionTaskStarted event recorded in the history. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The opaque string used as a handle on the task. This token is used by workers to // communicate progress and response information back to the system about the task. @@ -148,7 +148,7 @@ type PollForDecisionTaskOutput struct { // workflow execution that was processed by the decider. This can be used to // determine the events in the history new since the last decision task received by // the decider. - PreviousStartedEventId *int64 + PreviousStartedEventId int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/swf/api_op_RecordActivityTaskHeartbeat.go b/service/swf/api_op_RecordActivityTaskHeartbeat.go index 4cc4b5bdd00..1edc49475d1 100644 --- a/service/swf/api_op_RecordActivityTaskHeartbeat.go +++ b/service/swf/api_op_RecordActivityTaskHeartbeat.go @@ -84,7 +84,7 @@ type RecordActivityTaskHeartbeatOutput struct { // Set to true if cancellation of the task is requested. // // This member is required. - CancelRequested *bool + CancelRequested bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/swf/api_op_RegisterDomain.go b/service/swf/api_op_RegisterDomain.go index 558033786b3..e6369f76ad7 100644 --- a/service/swf/api_op_RegisterDomain.go +++ b/service/swf/api_op_RegisterDomain.go @@ -75,7 +75,7 @@ type RegisterDomainInput struct { // Tags to be added when registering a domain. Tags may only contain unicode // letters, digits, whitespace, or these symbols: _ . : / = + - @. - Tags []*types.ResourceTag + Tags []types.ResourceTag } type RegisterDomainOutput struct { diff --git a/service/swf/api_op_RespondDecisionTaskCompleted.go b/service/swf/api_op_RespondDecisionTaskCompleted.go index f697d575afe..0bbd8d97f2f 100644 --- a/service/swf/api_op_RespondDecisionTaskCompleted.go +++ b/service/swf/api_op_RespondDecisionTaskCompleted.go @@ -52,7 +52,7 @@ type RespondDecisionTaskCompletedInput struct { // The list of decisions (possibly empty) made by the decider while processing this // decision task. See the docs for the Decision structure for details. - Decisions []*types.Decision + Decisions []types.Decision // User defined context to add to workflow execution. ExecutionContext *string diff --git a/service/swf/api_op_StartWorkflowExecution.go b/service/swf/api_op_StartWorkflowExecution.go index bd8e41382ea..806b2a7f539 100644 --- a/service/swf/api_op_StartWorkflowExecution.go +++ b/service/swf/api_op_StartWorkflowExecution.go @@ -148,7 +148,7 @@ type StartWorkflowExecutionInput struct { // maximum of 5 tags. You can list workflow executions with a specific tag by // calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and // specifying a TagFilter. - TagList []*string + TagList []string // The task list to use for the decision tasks generated for this workflow // execution. This overrides the defaultTaskList specified when registering the diff --git a/service/swf/api_op_TagResource.go b/service/swf/api_op_TagResource.go index ec3ba6dca2c..c9ab0745394 100644 --- a/service/swf/api_op_TagResource.go +++ b/service/swf/api_op_TagResource.go @@ -39,7 +39,7 @@ type TagResourceInput struct { // digits, whitespace, or these symbols: _ . : / = + - @. // // This member is required. - Tags []*types.ResourceTag + Tags []types.ResourceTag } type TagResourceOutput struct { diff --git a/service/swf/api_op_UntagResource.go b/service/swf/api_op_UntagResource.go index d7bf964831d..2c75e598f0e 100644 --- a/service/swf/api_op_UntagResource.go +++ b/service/swf/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The list of tags to remove from the Amazon SWF domain. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/swf/deserializers.go b/service/swf/deserializers.go index 6135e8b42c9..3e8ed4112f2 100644 --- a/service/swf/deserializers.go +++ b/service/swf/deserializers.go @@ -4678,7 +4678,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskCanceledEventAttributes(v **typ if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "latestCancelRequestedEventId": @@ -4691,7 +4691,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskCanceledEventAttributes(v **typ if err != nil { return err } - sv.LatestCancelRequestedEventId = &i64 + sv.LatestCancelRequestedEventId = i64 } case "scheduledEventId": @@ -4704,7 +4704,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskCanceledEventAttributes(v **typ if err != nil { return err } - sv.ScheduledEventId = &i64 + sv.ScheduledEventId = i64 } case "startedEventId": @@ -4717,7 +4717,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskCanceledEventAttributes(v **typ if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } default: @@ -4757,7 +4757,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskCancelRequestedEventAttributes( if !ok { return fmt.Errorf("expected ActivityId to be of type string, got %T instead", value) } - sv.ActivityId = &jtv + sv.ActivityId = ptr.String(jtv) } case "decisionTaskCompletedEventId": @@ -4770,7 +4770,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskCancelRequestedEventAttributes( if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } default: @@ -4810,7 +4810,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskCompletedEventAttributes(v **ty if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Result = &jtv + sv.Result = ptr.String(jtv) } case "scheduledEventId": @@ -4823,7 +4823,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskCompletedEventAttributes(v **ty if err != nil { return err } - sv.ScheduledEventId = &i64 + sv.ScheduledEventId = i64 } case "startedEventId": @@ -4836,7 +4836,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskCompletedEventAttributes(v **ty if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } default: @@ -4876,7 +4876,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskFailedEventAttributes(v **types if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "reason": @@ -4885,7 +4885,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskFailedEventAttributes(v **types if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "scheduledEventId": @@ -4898,7 +4898,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskFailedEventAttributes(v **types if err != nil { return err } - sv.ScheduledEventId = &i64 + sv.ScheduledEventId = i64 } case "startedEventId": @@ -4911,7 +4911,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskFailedEventAttributes(v **types if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } default: @@ -4951,7 +4951,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskScheduledEventAttributes(v **ty if !ok { return fmt.Errorf("expected ActivityId to be of type string, got %T instead", value) } - sv.ActivityId = &jtv + sv.ActivityId = ptr.String(jtv) } case "activityType": @@ -4965,7 +4965,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskScheduledEventAttributes(v **ty if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Control = &jtv + sv.Control = ptr.String(jtv) } case "decisionTaskCompletedEventId": @@ -4978,7 +4978,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskScheduledEventAttributes(v **ty if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "heartbeatTimeout": @@ -4987,7 +4987,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskScheduledEventAttributes(v **ty if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.HeartbeatTimeout = &jtv + sv.HeartbeatTimeout = ptr.String(jtv) } case "input": @@ -4996,7 +4996,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskScheduledEventAttributes(v **ty if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "scheduleToCloseTimeout": @@ -5005,7 +5005,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskScheduledEventAttributes(v **ty if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.ScheduleToCloseTimeout = &jtv + sv.ScheduleToCloseTimeout = ptr.String(jtv) } case "scheduleToStartTimeout": @@ -5014,7 +5014,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskScheduledEventAttributes(v **ty if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.ScheduleToStartTimeout = &jtv + sv.ScheduleToStartTimeout = ptr.String(jtv) } case "startToCloseTimeout": @@ -5023,7 +5023,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskScheduledEventAttributes(v **ty if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.StartToCloseTimeout = &jtv + sv.StartToCloseTimeout = ptr.String(jtv) } case "taskList": @@ -5037,7 +5037,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskScheduledEventAttributes(v **ty if !ok { return fmt.Errorf("expected TaskPriority to be of type string, got %T instead", value) } - sv.TaskPriority = &jtv + sv.TaskPriority = ptr.String(jtv) } default: @@ -5077,7 +5077,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskStartedEventAttributes(v **type if !ok { return fmt.Errorf("expected Identity to be of type string, got %T instead", value) } - sv.Identity = &jtv + sv.Identity = ptr.String(jtv) } case "scheduledEventId": @@ -5090,7 +5090,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskStartedEventAttributes(v **type if err != nil { return err } - sv.ScheduledEventId = &i64 + sv.ScheduledEventId = i64 } default: @@ -5130,7 +5130,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskTimedOutEventAttributes(v **typ if !ok { return fmt.Errorf("expected LimitedData to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "scheduledEventId": @@ -5143,7 +5143,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskTimedOutEventAttributes(v **typ if err != nil { return err } - sv.ScheduledEventId = &i64 + sv.ScheduledEventId = i64 } case "startedEventId": @@ -5156,7 +5156,7 @@ func awsAwsjson10_deserializeDocumentActivityTaskTimedOutEventAttributes(v **typ if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } case "timeoutType": @@ -5205,7 +5205,7 @@ func awsAwsjson10_deserializeDocumentActivityType(v **types.ActivityType, value if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "version": @@ -5214,7 +5214,7 @@ func awsAwsjson10_deserializeDocumentActivityType(v **types.ActivityType, value if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -5254,7 +5254,7 @@ func awsAwsjson10_deserializeDocumentActivityTypeConfiguration(v **types.Activit if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.DefaultTaskHeartbeatTimeout = &jtv + sv.DefaultTaskHeartbeatTimeout = ptr.String(jtv) } case "defaultTaskList": @@ -5268,7 +5268,7 @@ func awsAwsjson10_deserializeDocumentActivityTypeConfiguration(v **types.Activit if !ok { return fmt.Errorf("expected TaskPriority to be of type string, got %T instead", value) } - sv.DefaultTaskPriority = &jtv + sv.DefaultTaskPriority = ptr.String(jtv) } case "defaultTaskScheduleToCloseTimeout": @@ -5277,7 +5277,7 @@ func awsAwsjson10_deserializeDocumentActivityTypeConfiguration(v **types.Activit if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.DefaultTaskScheduleToCloseTimeout = &jtv + sv.DefaultTaskScheduleToCloseTimeout = ptr.String(jtv) } case "defaultTaskScheduleToStartTimeout": @@ -5286,7 +5286,7 @@ func awsAwsjson10_deserializeDocumentActivityTypeConfiguration(v **types.Activit if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.DefaultTaskScheduleToStartTimeout = &jtv + sv.DefaultTaskScheduleToStartTimeout = ptr.String(jtv) } case "defaultTaskStartToCloseTimeout": @@ -5295,7 +5295,7 @@ func awsAwsjson10_deserializeDocumentActivityTypeConfiguration(v **types.Activit if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.DefaultTaskStartToCloseTimeout = &jtv + sv.DefaultTaskStartToCloseTimeout = ptr.String(jtv) } default: @@ -5366,7 +5366,7 @@ func awsAwsjson10_deserializeDocumentActivityTypeInfo(v **types.ActivityTypeInfo if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "status": @@ -5387,7 +5387,7 @@ func awsAwsjson10_deserializeDocumentActivityTypeInfo(v **types.ActivityTypeInfo return nil } -func awsAwsjson10_deserializeDocumentActivityTypeInfoList(v *[]*types.ActivityTypeInfo, value interface{}) error { +func awsAwsjson10_deserializeDocumentActivityTypeInfoList(v *[]types.ActivityTypeInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5400,18 +5400,20 @@ func awsAwsjson10_deserializeDocumentActivityTypeInfoList(v *[]*types.ActivityTy return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActivityTypeInfo + var cv []types.ActivityTypeInfo if *v == nil { - cv = []*types.ActivityTypeInfo{} + cv = []types.ActivityTypeInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ActivityTypeInfo - if err := awsAwsjson10_deserializeDocumentActivityTypeInfo(&col, value); err != nil { + var col types.ActivityTypeInfo + destAddr := &col + if err := awsAwsjson10_deserializeDocumentActivityTypeInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5460,7 +5462,7 @@ func awsAwsjson10_deserializeDocumentCancelTimerFailedEventAttributes(v **types. if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "timerId": @@ -5469,7 +5471,7 @@ func awsAwsjson10_deserializeDocumentCancelTimerFailedEventAttributes(v **types. if !ok { return fmt.Errorf("expected TimerId to be of type string, got %T instead", value) } - sv.TimerId = &jtv + sv.TimerId = ptr.String(jtv) } default: @@ -5522,7 +5524,7 @@ func awsAwsjson10_deserializeDocumentCancelWorkflowExecutionFailedEventAttribute if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } default: @@ -5562,7 +5564,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionCanceledEventAttribut if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "initiatedEventId": @@ -5575,7 +5577,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionCanceledEventAttribut if err != nil { return err } - sv.InitiatedEventId = &i64 + sv.InitiatedEventId = i64 } case "startedEventId": @@ -5588,7 +5590,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionCanceledEventAttribut if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } case "workflowExecution": @@ -5642,7 +5644,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionCompletedEventAttribu if err != nil { return err } - sv.InitiatedEventId = &i64 + sv.InitiatedEventId = i64 } case "result": @@ -5651,7 +5653,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionCompletedEventAttribu if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Result = &jtv + sv.Result = ptr.String(jtv) } case "startedEventId": @@ -5664,7 +5666,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionCompletedEventAttribu if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } case "workflowExecution": @@ -5714,7 +5716,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionFailedEventAttributes if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "initiatedEventId": @@ -5727,7 +5729,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionFailedEventAttributes if err != nil { return err } - sv.InitiatedEventId = &i64 + sv.InitiatedEventId = i64 } case "reason": @@ -5736,7 +5738,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionFailedEventAttributes if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "startedEventId": @@ -5749,7 +5751,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionFailedEventAttributes if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } case "workflowExecution": @@ -5803,7 +5805,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionStartedEventAttribute if err != nil { return err } - sv.InitiatedEventId = &i64 + sv.InitiatedEventId = i64 } case "workflowExecution": @@ -5857,7 +5859,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionTerminatedEventAttrib if err != nil { return err } - sv.InitiatedEventId = &i64 + sv.InitiatedEventId = i64 } case "startedEventId": @@ -5870,7 +5872,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionTerminatedEventAttrib if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } case "workflowExecution": @@ -5924,7 +5926,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionTimedOutEventAttribut if err != nil { return err } - sv.InitiatedEventId = &i64 + sv.InitiatedEventId = i64 } case "startedEventId": @@ -5937,7 +5939,7 @@ func awsAwsjson10_deserializeDocumentChildWorkflowExecutionTimedOutEventAttribut if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } case "timeoutType": @@ -6009,7 +6011,7 @@ func awsAwsjson10_deserializeDocumentCompleteWorkflowExecutionFailedEventAttribu if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } default: @@ -6062,7 +6064,7 @@ func awsAwsjson10_deserializeDocumentContinueAsNewWorkflowExecutionFailedEventAt if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } default: @@ -6102,7 +6104,7 @@ func awsAwsjson10_deserializeDocumentDecisionTaskCompletedEventAttributes(v **ty if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.ExecutionContext = &jtv + sv.ExecutionContext = ptr.String(jtv) } case "scheduledEventId": @@ -6115,7 +6117,7 @@ func awsAwsjson10_deserializeDocumentDecisionTaskCompletedEventAttributes(v **ty if err != nil { return err } - sv.ScheduledEventId = &i64 + sv.ScheduledEventId = i64 } case "startedEventId": @@ -6128,7 +6130,7 @@ func awsAwsjson10_deserializeDocumentDecisionTaskCompletedEventAttributes(v **ty if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } default: @@ -6168,7 +6170,7 @@ func awsAwsjson10_deserializeDocumentDecisionTaskScheduledEventAttributes(v **ty if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.StartToCloseTimeout = &jtv + sv.StartToCloseTimeout = ptr.String(jtv) } case "taskList": @@ -6182,7 +6184,7 @@ func awsAwsjson10_deserializeDocumentDecisionTaskScheduledEventAttributes(v **ty if !ok { return fmt.Errorf("expected TaskPriority to be of type string, got %T instead", value) } - sv.TaskPriority = &jtv + sv.TaskPriority = ptr.String(jtv) } default: @@ -6222,7 +6224,7 @@ func awsAwsjson10_deserializeDocumentDecisionTaskStartedEventAttributes(v **type if !ok { return fmt.Errorf("expected Identity to be of type string, got %T instead", value) } - sv.Identity = &jtv + sv.Identity = ptr.String(jtv) } case "scheduledEventId": @@ -6235,7 +6237,7 @@ func awsAwsjson10_deserializeDocumentDecisionTaskStartedEventAttributes(v **type if err != nil { return err } - sv.ScheduledEventId = &i64 + sv.ScheduledEventId = i64 } default: @@ -6279,7 +6281,7 @@ func awsAwsjson10_deserializeDocumentDecisionTaskTimedOutEventAttributes(v **typ if err != nil { return err } - sv.ScheduledEventId = &i64 + sv.ScheduledEventId = i64 } case "startedEventId": @@ -6292,7 +6294,7 @@ func awsAwsjson10_deserializeDocumentDecisionTaskTimedOutEventAttributes(v **typ if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } case "timeoutType": @@ -6341,7 +6343,7 @@ func awsAwsjson10_deserializeDocumentDefaultUndefinedFault(v **types.DefaultUnde if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6381,7 +6383,7 @@ func awsAwsjson10_deserializeDocumentDomainAlreadyExistsFault(v **types.DomainAl if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6421,7 +6423,7 @@ func awsAwsjson10_deserializeDocumentDomainConfiguration(v **types.DomainConfigu if !ok { return fmt.Errorf("expected DurationInDays to be of type string, got %T instead", value) } - sv.WorkflowExecutionRetentionPeriodInDays = &jtv + sv.WorkflowExecutionRetentionPeriodInDays = ptr.String(jtv) } default: @@ -6461,7 +6463,7 @@ func awsAwsjson10_deserializeDocumentDomainDeprecatedFault(v **types.DomainDepre if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6501,7 +6503,7 @@ func awsAwsjson10_deserializeDocumentDomainInfo(v **types.DomainInfo, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "description": @@ -6510,7 +6512,7 @@ func awsAwsjson10_deserializeDocumentDomainInfo(v **types.DomainInfo, value inte if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "name": @@ -6519,7 +6521,7 @@ func awsAwsjson10_deserializeDocumentDomainInfo(v **types.DomainInfo, value inte if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "status": @@ -6540,7 +6542,7 @@ func awsAwsjson10_deserializeDocumentDomainInfo(v **types.DomainInfo, value inte return nil } -func awsAwsjson10_deserializeDocumentDomainInfoList(v *[]*types.DomainInfo, value interface{}) error { +func awsAwsjson10_deserializeDocumentDomainInfoList(v *[]types.DomainInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6553,18 +6555,20 @@ func awsAwsjson10_deserializeDocumentDomainInfoList(v *[]*types.DomainInfo, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainInfo + var cv []types.DomainInfo if *v == nil { - cv = []*types.DomainInfo{} + cv = []types.DomainInfo{} } else { cv = *v } for _, value := range shape { - var col *types.DomainInfo - if err := awsAwsjson10_deserializeDocumentDomainInfo(&col, value); err != nil { + var col types.DomainInfo + destAddr := &col + if err := awsAwsjson10_deserializeDocumentDomainInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6604,7 +6608,7 @@ func awsAwsjson10_deserializeDocumentExternalWorkflowExecutionCancelRequestedEve if err != nil { return err } - sv.InitiatedEventId = &i64 + sv.InitiatedEventId = i64 } case "workflowExecution": @@ -6653,7 +6657,7 @@ func awsAwsjson10_deserializeDocumentExternalWorkflowExecutionSignaledEventAttri if err != nil { return err } - sv.InitiatedEventId = &i64 + sv.InitiatedEventId = i64 } case "workflowExecution": @@ -6711,7 +6715,7 @@ func awsAwsjson10_deserializeDocumentFailWorkflowExecutionFailedEventAttributes( if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } default: @@ -6860,7 +6864,7 @@ func awsAwsjson10_deserializeDocumentHistoryEvent(v **types.HistoryEvent, value if err != nil { return err } - sv.EventId = &i64 + sv.EventId = i64 } case "eventTimestamp": @@ -7059,7 +7063,7 @@ func awsAwsjson10_deserializeDocumentHistoryEvent(v **types.HistoryEvent, value return nil } -func awsAwsjson10_deserializeDocumentHistoryEventList(v *[]*types.HistoryEvent, value interface{}) error { +func awsAwsjson10_deserializeDocumentHistoryEventList(v *[]types.HistoryEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7072,18 +7076,20 @@ func awsAwsjson10_deserializeDocumentHistoryEventList(v *[]*types.HistoryEvent, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HistoryEvent + var cv []types.HistoryEvent if *v == nil { - cv = []*types.HistoryEvent{} + cv = []types.HistoryEvent{} } else { cv = *v } for _, value := range shape { - var col *types.HistoryEvent - if err := awsAwsjson10_deserializeDocumentHistoryEvent(&col, value); err != nil { + var col types.HistoryEvent + destAddr := &col + if err := awsAwsjson10_deserializeDocumentHistoryEvent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7119,7 +7125,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionCompletedEventAttributes(v ** if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Result = &jtv + sv.Result = ptr.String(jtv) } case "scheduledEventId": @@ -7132,7 +7138,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionCompletedEventAttributes(v ** if err != nil { return err } - sv.ScheduledEventId = &i64 + sv.ScheduledEventId = i64 } case "startedEventId": @@ -7145,7 +7151,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionCompletedEventAttributes(v ** if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } default: @@ -7185,7 +7191,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionFailedEventAttributes(v **typ if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "reason": @@ -7194,7 +7200,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionFailedEventAttributes(v **typ if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "scheduledEventId": @@ -7207,7 +7213,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionFailedEventAttributes(v **typ if err != nil { return err } - sv.ScheduledEventId = &i64 + sv.ScheduledEventId = i64 } case "startedEventId": @@ -7220,7 +7226,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionFailedEventAttributes(v **typ if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } default: @@ -7260,7 +7266,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionScheduledEventAttributes(v ** if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Control = &jtv + sv.Control = ptr.String(jtv) } case "decisionTaskCompletedEventId": @@ -7273,7 +7279,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionScheduledEventAttributes(v ** if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "id": @@ -7282,7 +7288,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionScheduledEventAttributes(v ** if !ok { return fmt.Errorf("expected FunctionId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "input": @@ -7291,7 +7297,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionScheduledEventAttributes(v ** if !ok { return fmt.Errorf("expected FunctionInput to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "name": @@ -7300,7 +7306,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionScheduledEventAttributes(v ** if !ok { return fmt.Errorf("expected FunctionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "startToCloseTimeout": @@ -7309,7 +7315,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionScheduledEventAttributes(v ** if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.StartToCloseTimeout = &jtv + sv.StartToCloseTimeout = ptr.String(jtv) } default: @@ -7353,7 +7359,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionStartedEventAttributes(v **ty if err != nil { return err } - sv.ScheduledEventId = &i64 + sv.ScheduledEventId = i64 } default: @@ -7397,7 +7403,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionTimedOutEventAttributes(v **t if err != nil { return err } - sv.ScheduledEventId = &i64 + sv.ScheduledEventId = i64 } case "startedEventId": @@ -7410,7 +7416,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionTimedOutEventAttributes(v **t if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } case "timeoutType": @@ -7459,7 +7465,7 @@ func awsAwsjson10_deserializeDocumentLimitExceededFault(v **types.LimitExceededF if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7503,7 +7509,7 @@ func awsAwsjson10_deserializeDocumentMarkerRecordedEventAttributes(v **types.Mar if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "details": @@ -7512,7 +7518,7 @@ func awsAwsjson10_deserializeDocumentMarkerRecordedEventAttributes(v **types.Mar if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "markerName": @@ -7521,7 +7527,7 @@ func awsAwsjson10_deserializeDocumentMarkerRecordedEventAttributes(v **types.Mar if !ok { return fmt.Errorf("expected MarkerName to be of type string, got %T instead", value) } - sv.MarkerName = &jtv + sv.MarkerName = ptr.String(jtv) } default: @@ -7561,7 +7567,7 @@ func awsAwsjson10_deserializeDocumentOperationNotPermittedFault(v **types.Operat if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7614,7 +7620,7 @@ func awsAwsjson10_deserializeDocumentRecordMarkerFailedEventAttributes(v **types if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "markerName": @@ -7623,7 +7629,7 @@ func awsAwsjson10_deserializeDocumentRecordMarkerFailedEventAttributes(v **types if !ok { return fmt.Errorf("expected MarkerName to be of type string, got %T instead", value) } - sv.MarkerName = &jtv + sv.MarkerName = ptr.String(jtv) } default: @@ -7663,7 +7669,7 @@ func awsAwsjson10_deserializeDocumentRequestCancelActivityTaskFailedEventAttribu if !ok { return fmt.Errorf("expected ActivityId to be of type string, got %T instead", value) } - sv.ActivityId = &jtv + sv.ActivityId = ptr.String(jtv) } case "cause": @@ -7685,7 +7691,7 @@ func awsAwsjson10_deserializeDocumentRequestCancelActivityTaskFailedEventAttribu if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } default: @@ -7734,7 +7740,7 @@ func awsAwsjson10_deserializeDocumentRequestCancelExternalWorkflowExecutionFaile if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Control = &jtv + sv.Control = ptr.String(jtv) } case "decisionTaskCompletedEventId": @@ -7747,7 +7753,7 @@ func awsAwsjson10_deserializeDocumentRequestCancelExternalWorkflowExecutionFaile if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "initiatedEventId": @@ -7760,7 +7766,7 @@ func awsAwsjson10_deserializeDocumentRequestCancelExternalWorkflowExecutionFaile if err != nil { return err } - sv.InitiatedEventId = &i64 + sv.InitiatedEventId = i64 } case "runId": @@ -7769,7 +7775,7 @@ func awsAwsjson10_deserializeDocumentRequestCancelExternalWorkflowExecutionFaile if !ok { return fmt.Errorf("expected WorkflowRunIdOptional to be of type string, got %T instead", value) } - sv.RunId = &jtv + sv.RunId = ptr.String(jtv) } case "workflowId": @@ -7778,7 +7784,7 @@ func awsAwsjson10_deserializeDocumentRequestCancelExternalWorkflowExecutionFaile if !ok { return fmt.Errorf("expected WorkflowId to be of type string, got %T instead", value) } - sv.WorkflowId = &jtv + sv.WorkflowId = ptr.String(jtv) } default: @@ -7818,7 +7824,7 @@ func awsAwsjson10_deserializeDocumentRequestCancelExternalWorkflowExecutionIniti if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Control = &jtv + sv.Control = ptr.String(jtv) } case "decisionTaskCompletedEventId": @@ -7831,7 +7837,7 @@ func awsAwsjson10_deserializeDocumentRequestCancelExternalWorkflowExecutionIniti if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "runId": @@ -7840,7 +7846,7 @@ func awsAwsjson10_deserializeDocumentRequestCancelExternalWorkflowExecutionIniti if !ok { return fmt.Errorf("expected WorkflowRunIdOptional to be of type string, got %T instead", value) } - sv.RunId = &jtv + sv.RunId = ptr.String(jtv) } case "workflowId": @@ -7849,7 +7855,7 @@ func awsAwsjson10_deserializeDocumentRequestCancelExternalWorkflowExecutionIniti if !ok { return fmt.Errorf("expected WorkflowId to be of type string, got %T instead", value) } - sv.WorkflowId = &jtv + sv.WorkflowId = ptr.String(jtv) } default: @@ -7889,7 +7895,7 @@ func awsAwsjson10_deserializeDocumentResourceTag(v **types.ResourceTag, value in if !ok { return fmt.Errorf("expected ResourceTagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "value": @@ -7898,7 +7904,7 @@ func awsAwsjson10_deserializeDocumentResourceTag(v **types.ResourceTag, value in if !ok { return fmt.Errorf("expected ResourceTagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -7910,7 +7916,7 @@ func awsAwsjson10_deserializeDocumentResourceTag(v **types.ResourceTag, value in return nil } -func awsAwsjson10_deserializeDocumentResourceTagList(v *[]*types.ResourceTag, value interface{}) error { +func awsAwsjson10_deserializeDocumentResourceTagList(v *[]types.ResourceTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7923,18 +7929,20 @@ func awsAwsjson10_deserializeDocumentResourceTagList(v *[]*types.ResourceTag, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceTag + var cv []types.ResourceTag if *v == nil { - cv = []*types.ResourceTag{} + cv = []types.ResourceTag{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceTag - if err := awsAwsjson10_deserializeDocumentResourceTag(&col, value); err != nil { + var col types.ResourceTag + destAddr := &col + if err := awsAwsjson10_deserializeDocumentResourceTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7970,7 +7978,7 @@ func awsAwsjson10_deserializeDocumentScheduleActivityTaskFailedEventAttributes(v if !ok { return fmt.Errorf("expected ActivityId to be of type string, got %T instead", value) } - sv.ActivityId = &jtv + sv.ActivityId = ptr.String(jtv) } case "activityType": @@ -7997,7 +8005,7 @@ func awsAwsjson10_deserializeDocumentScheduleActivityTaskFailedEventAttributes(v if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } default: @@ -8050,7 +8058,7 @@ func awsAwsjson10_deserializeDocumentScheduleLambdaFunctionFailedEventAttributes if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "id": @@ -8059,7 +8067,7 @@ func awsAwsjson10_deserializeDocumentScheduleLambdaFunctionFailedEventAttributes if !ok { return fmt.Errorf("expected FunctionId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "name": @@ -8068,7 +8076,7 @@ func awsAwsjson10_deserializeDocumentScheduleLambdaFunctionFailedEventAttributes if !ok { return fmt.Errorf("expected FunctionName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8117,7 +8125,7 @@ func awsAwsjson10_deserializeDocumentSignalExternalWorkflowExecutionFailedEventA if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Control = &jtv + sv.Control = ptr.String(jtv) } case "decisionTaskCompletedEventId": @@ -8130,7 +8138,7 @@ func awsAwsjson10_deserializeDocumentSignalExternalWorkflowExecutionFailedEventA if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "initiatedEventId": @@ -8143,7 +8151,7 @@ func awsAwsjson10_deserializeDocumentSignalExternalWorkflowExecutionFailedEventA if err != nil { return err } - sv.InitiatedEventId = &i64 + sv.InitiatedEventId = i64 } case "runId": @@ -8152,7 +8160,7 @@ func awsAwsjson10_deserializeDocumentSignalExternalWorkflowExecutionFailedEventA if !ok { return fmt.Errorf("expected WorkflowRunIdOptional to be of type string, got %T instead", value) } - sv.RunId = &jtv + sv.RunId = ptr.String(jtv) } case "workflowId": @@ -8161,7 +8169,7 @@ func awsAwsjson10_deserializeDocumentSignalExternalWorkflowExecutionFailedEventA if !ok { return fmt.Errorf("expected WorkflowId to be of type string, got %T instead", value) } - sv.WorkflowId = &jtv + sv.WorkflowId = ptr.String(jtv) } default: @@ -8201,7 +8209,7 @@ func awsAwsjson10_deserializeDocumentSignalExternalWorkflowExecutionInitiatedEve if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Control = &jtv + sv.Control = ptr.String(jtv) } case "decisionTaskCompletedEventId": @@ -8214,7 +8222,7 @@ func awsAwsjson10_deserializeDocumentSignalExternalWorkflowExecutionInitiatedEve if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "input": @@ -8223,7 +8231,7 @@ func awsAwsjson10_deserializeDocumentSignalExternalWorkflowExecutionInitiatedEve if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "runId": @@ -8232,7 +8240,7 @@ func awsAwsjson10_deserializeDocumentSignalExternalWorkflowExecutionInitiatedEve if !ok { return fmt.Errorf("expected WorkflowRunIdOptional to be of type string, got %T instead", value) } - sv.RunId = &jtv + sv.RunId = ptr.String(jtv) } case "signalName": @@ -8241,7 +8249,7 @@ func awsAwsjson10_deserializeDocumentSignalExternalWorkflowExecutionInitiatedEve if !ok { return fmt.Errorf("expected SignalName to be of type string, got %T instead", value) } - sv.SignalName = &jtv + sv.SignalName = ptr.String(jtv) } case "workflowId": @@ -8250,7 +8258,7 @@ func awsAwsjson10_deserializeDocumentSignalExternalWorkflowExecutionInitiatedEve if !ok { return fmt.Errorf("expected WorkflowId to be of type string, got %T instead", value) } - sv.WorkflowId = &jtv + sv.WorkflowId = ptr.String(jtv) } default: @@ -8299,7 +8307,7 @@ func awsAwsjson10_deserializeDocumentStartChildWorkflowExecutionFailedEventAttri if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Control = &jtv + sv.Control = ptr.String(jtv) } case "decisionTaskCompletedEventId": @@ -8312,7 +8320,7 @@ func awsAwsjson10_deserializeDocumentStartChildWorkflowExecutionFailedEventAttri if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "initiatedEventId": @@ -8325,7 +8333,7 @@ func awsAwsjson10_deserializeDocumentStartChildWorkflowExecutionFailedEventAttri if err != nil { return err } - sv.InitiatedEventId = &i64 + sv.InitiatedEventId = i64 } case "workflowId": @@ -8334,7 +8342,7 @@ func awsAwsjson10_deserializeDocumentStartChildWorkflowExecutionFailedEventAttri if !ok { return fmt.Errorf("expected WorkflowId to be of type string, got %T instead", value) } - sv.WorkflowId = &jtv + sv.WorkflowId = ptr.String(jtv) } case "workflowType": @@ -8388,7 +8396,7 @@ func awsAwsjson10_deserializeDocumentStartChildWorkflowExecutionInitiatedEventAt if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Control = &jtv + sv.Control = ptr.String(jtv) } case "decisionTaskCompletedEventId": @@ -8401,7 +8409,7 @@ func awsAwsjson10_deserializeDocumentStartChildWorkflowExecutionInitiatedEventAt if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "executionStartToCloseTimeout": @@ -8410,7 +8418,7 @@ func awsAwsjson10_deserializeDocumentStartChildWorkflowExecutionInitiatedEventAt if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.ExecutionStartToCloseTimeout = &jtv + sv.ExecutionStartToCloseTimeout = ptr.String(jtv) } case "input": @@ -8419,7 +8427,7 @@ func awsAwsjson10_deserializeDocumentStartChildWorkflowExecutionInitiatedEventAt if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "lambdaRole": @@ -8428,7 +8436,7 @@ func awsAwsjson10_deserializeDocumentStartChildWorkflowExecutionInitiatedEventAt if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.LambdaRole = &jtv + sv.LambdaRole = ptr.String(jtv) } case "tagList": @@ -8447,7 +8455,7 @@ func awsAwsjson10_deserializeDocumentStartChildWorkflowExecutionInitiatedEventAt if !ok { return fmt.Errorf("expected TaskPriority to be of type string, got %T instead", value) } - sv.TaskPriority = &jtv + sv.TaskPriority = ptr.String(jtv) } case "taskStartToCloseTimeout": @@ -8456,7 +8464,7 @@ func awsAwsjson10_deserializeDocumentStartChildWorkflowExecutionInitiatedEventAt if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.TaskStartToCloseTimeout = &jtv + sv.TaskStartToCloseTimeout = ptr.String(jtv) } case "workflowId": @@ -8465,7 +8473,7 @@ func awsAwsjson10_deserializeDocumentStartChildWorkflowExecutionInitiatedEventAt if !ok { return fmt.Errorf("expected WorkflowId to be of type string, got %T instead", value) } - sv.WorkflowId = &jtv + sv.WorkflowId = ptr.String(jtv) } case "workflowType": @@ -8519,7 +8527,7 @@ func awsAwsjson10_deserializeDocumentStartLambdaFunctionFailedEventAttributes(v if !ok { return fmt.Errorf("expected CauseMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "scheduledEventId": @@ -8532,7 +8540,7 @@ func awsAwsjson10_deserializeDocumentStartLambdaFunctionFailedEventAttributes(v if err != nil { return err } - sv.ScheduledEventId = &i64 + sv.ScheduledEventId = i64 } default: @@ -8585,7 +8593,7 @@ func awsAwsjson10_deserializeDocumentStartTimerFailedEventAttributes(v **types.S if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "timerId": @@ -8594,7 +8602,7 @@ func awsAwsjson10_deserializeDocumentStartTimerFailedEventAttributes(v **types.S if !ok { return fmt.Errorf("expected TimerId to be of type string, got %T instead", value) } - sv.TimerId = &jtv + sv.TimerId = ptr.String(jtv) } default: @@ -8606,7 +8614,7 @@ func awsAwsjson10_deserializeDocumentStartTimerFailedEventAttributes(v **types.S return nil } -func awsAwsjson10_deserializeDocumentTagList(v *[]*string, value interface{}) error { +func awsAwsjson10_deserializeDocumentTagList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8619,21 +8627,21 @@ func awsAwsjson10_deserializeDocumentTagList(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Tag to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8670,7 +8678,7 @@ func awsAwsjson10_deserializeDocumentTaskList(v **types.TaskList, value interfac if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8714,7 +8722,7 @@ func awsAwsjson10_deserializeDocumentTimerCanceledEventAttributes(v **types.Time if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "startedEventId": @@ -8727,7 +8735,7 @@ func awsAwsjson10_deserializeDocumentTimerCanceledEventAttributes(v **types.Time if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } case "timerId": @@ -8736,7 +8744,7 @@ func awsAwsjson10_deserializeDocumentTimerCanceledEventAttributes(v **types.Time if !ok { return fmt.Errorf("expected TimerId to be of type string, got %T instead", value) } - sv.TimerId = &jtv + sv.TimerId = ptr.String(jtv) } default: @@ -8780,7 +8788,7 @@ func awsAwsjson10_deserializeDocumentTimerFiredEventAttributes(v **types.TimerFi if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } case "timerId": @@ -8789,7 +8797,7 @@ func awsAwsjson10_deserializeDocumentTimerFiredEventAttributes(v **types.TimerFi if !ok { return fmt.Errorf("expected TimerId to be of type string, got %T instead", value) } - sv.TimerId = &jtv + sv.TimerId = ptr.String(jtv) } default: @@ -8829,7 +8837,7 @@ func awsAwsjson10_deserializeDocumentTimerStartedEventAttributes(v **types.Timer if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Control = &jtv + sv.Control = ptr.String(jtv) } case "decisionTaskCompletedEventId": @@ -8842,7 +8850,7 @@ func awsAwsjson10_deserializeDocumentTimerStartedEventAttributes(v **types.Timer if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "startToFireTimeout": @@ -8851,7 +8859,7 @@ func awsAwsjson10_deserializeDocumentTimerStartedEventAttributes(v **types.Timer if !ok { return fmt.Errorf("expected DurationInSeconds to be of type string, got %T instead", value) } - sv.StartToFireTimeout = &jtv + sv.StartToFireTimeout = ptr.String(jtv) } case "timerId": @@ -8860,7 +8868,7 @@ func awsAwsjson10_deserializeDocumentTimerStartedEventAttributes(v **types.Timer if !ok { return fmt.Errorf("expected TimerId to be of type string, got %T instead", value) } - sv.TimerId = &jtv + sv.TimerId = ptr.String(jtv) } default: @@ -8900,7 +8908,7 @@ func awsAwsjson10_deserializeDocumentTooManyTagsFault(v **types.TooManyTagsFault if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8940,7 +8948,7 @@ func awsAwsjson10_deserializeDocumentTypeAlreadyExistsFault(v **types.TypeAlread if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8980,7 +8988,7 @@ func awsAwsjson10_deserializeDocumentTypeDeprecatedFault(v **types.TypeDeprecate if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9020,7 +9028,7 @@ func awsAwsjson10_deserializeDocumentUnknownResourceFault(v **types.UnknownResou if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9060,7 +9068,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecution(v **types.WorkflowExecuti if !ok { return fmt.Errorf("expected WorkflowRunId to be of type string, got %T instead", value) } - sv.RunId = &jtv + sv.RunId = ptr.String(jtv) } case "workflowId": @@ -9069,7 +9077,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecution(v **types.WorkflowExecuti if !ok { return fmt.Errorf("expected WorkflowId to be of type string, got %T instead", value) } - sv.WorkflowId = &jtv + sv.WorkflowId = ptr.String(jtv) } default: @@ -9109,7 +9117,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionAlreadyStartedFault(v **ty if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9153,7 +9161,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionCanceledEventAttributes(v if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "details": @@ -9162,7 +9170,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionCanceledEventAttributes(v if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } default: @@ -9215,7 +9223,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionCancelRequestedEventAttrib if err != nil { return err } - sv.ExternalInitiatedEventId = &i64 + sv.ExternalInitiatedEventId = i64 } case "externalWorkflowExecution": @@ -9264,7 +9272,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionCompletedEventAttributes(v if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "result": @@ -9273,7 +9281,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionCompletedEventAttributes(v if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Result = &jtv + sv.Result = ptr.String(jtv) } default: @@ -9322,7 +9330,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionConfiguration(v **types.Wo if !ok { return fmt.Errorf("expected DurationInSeconds to be of type string, got %T instead", value) } - sv.ExecutionStartToCloseTimeout = &jtv + sv.ExecutionStartToCloseTimeout = ptr.String(jtv) } case "lambdaRole": @@ -9331,7 +9339,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionConfiguration(v **types.Wo if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.LambdaRole = &jtv + sv.LambdaRole = ptr.String(jtv) } case "taskList": @@ -9345,7 +9353,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionConfiguration(v **types.Wo if !ok { return fmt.Errorf("expected TaskPriority to be of type string, got %T instead", value) } - sv.TaskPriority = &jtv + sv.TaskPriority = ptr.String(jtv) } case "taskStartToCloseTimeout": @@ -9354,7 +9362,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionConfiguration(v **types.Wo if !ok { return fmt.Errorf("expected DurationInSeconds to be of type string, got %T instead", value) } - sv.TaskStartToCloseTimeout = &jtv + sv.TaskStartToCloseTimeout = ptr.String(jtv) } default: @@ -9407,7 +9415,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionContinuedAsNewEventAttribu if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "executionStartToCloseTimeout": @@ -9416,7 +9424,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionContinuedAsNewEventAttribu if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.ExecutionStartToCloseTimeout = &jtv + sv.ExecutionStartToCloseTimeout = ptr.String(jtv) } case "input": @@ -9425,7 +9433,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionContinuedAsNewEventAttribu if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "lambdaRole": @@ -9434,7 +9442,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionContinuedAsNewEventAttribu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.LambdaRole = &jtv + sv.LambdaRole = ptr.String(jtv) } case "newExecutionRunId": @@ -9443,7 +9451,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionContinuedAsNewEventAttribu if !ok { return fmt.Errorf("expected WorkflowRunId to be of type string, got %T instead", value) } - sv.NewExecutionRunId = &jtv + sv.NewExecutionRunId = ptr.String(jtv) } case "tagList": @@ -9462,7 +9470,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionContinuedAsNewEventAttribu if !ok { return fmt.Errorf("expected TaskPriority to be of type string, got %T instead", value) } - sv.TaskPriority = &jtv + sv.TaskPriority = ptr.String(jtv) } case "taskStartToCloseTimeout": @@ -9471,7 +9479,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionContinuedAsNewEventAttribu if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.TaskStartToCloseTimeout = &jtv + sv.TaskStartToCloseTimeout = ptr.String(jtv) } case "workflowType": @@ -9520,7 +9528,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionFailedEventAttributes(v ** if err != nil { return err } - sv.DecisionTaskCompletedEventId = &i64 + sv.DecisionTaskCompletedEventId = i64 } case "details": @@ -9529,7 +9537,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionFailedEventAttributes(v ** if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "reason": @@ -9538,7 +9546,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionFailedEventAttributes(v ** if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } default: @@ -9578,7 +9586,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionInfo(v **types.WorkflowExe if !ok { return fmt.Errorf("expected Canceled to be of type *bool, got %T instead", value) } - sv.CancelRequested = &jtv + sv.CancelRequested = jtv } case "closeStatus": @@ -9654,7 +9662,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionInfo(v **types.WorkflowExe return nil } -func awsAwsjson10_deserializeDocumentWorkflowExecutionInfoList(v *[]*types.WorkflowExecutionInfo, value interface{}) error { +func awsAwsjson10_deserializeDocumentWorkflowExecutionInfoList(v *[]types.WorkflowExecutionInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9667,18 +9675,20 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionInfoList(v *[]*types.Workf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorkflowExecutionInfo + var cv []types.WorkflowExecutionInfo if *v == nil { - cv = []*types.WorkflowExecutionInfo{} + cv = []types.WorkflowExecutionInfo{} } else { cv = *v } for _, value := range shape { - var col *types.WorkflowExecutionInfo - if err := awsAwsjson10_deserializeDocumentWorkflowExecutionInfo(&col, value); err != nil { + var col types.WorkflowExecutionInfo + destAddr := &col + if err := awsAwsjson10_deserializeDocumentWorkflowExecutionInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9718,7 +9728,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionOpenCounts(v **types.Workf if err != nil { return err } - sv.OpenActivityTasks = ptr.Int32(int32(i64)) + sv.OpenActivityTasks = int32(i64) } case "openChildWorkflowExecutions": @@ -9731,7 +9741,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionOpenCounts(v **types.Workf if err != nil { return err } - sv.OpenChildWorkflowExecutions = ptr.Int32(int32(i64)) + sv.OpenChildWorkflowExecutions = int32(i64) } case "openDecisionTasks": @@ -9744,7 +9754,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionOpenCounts(v **types.Workf if err != nil { return err } - sv.OpenDecisionTasks = ptr.Int32(int32(i64)) + sv.OpenDecisionTasks = int32(i64) } case "openLambdaFunctions": @@ -9757,7 +9767,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionOpenCounts(v **types.Workf if err != nil { return err } - sv.OpenLambdaFunctions = ptr.Int32(int32(i64)) + sv.OpenLambdaFunctions = int32(i64) } case "openTimers": @@ -9770,7 +9780,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionOpenCounts(v **types.Workf if err != nil { return err } - sv.OpenTimers = ptr.Int32(int32(i64)) + sv.OpenTimers = int32(i64) } default: @@ -9814,7 +9824,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionSignaledEventAttributes(v if err != nil { return err } - sv.ExternalInitiatedEventId = &i64 + sv.ExternalInitiatedEventId = i64 } case "externalWorkflowExecution": @@ -9828,7 +9838,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionSignaledEventAttributes(v if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "signalName": @@ -9837,7 +9847,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionSignaledEventAttributes(v if !ok { return fmt.Errorf("expected SignalName to be of type string, got %T instead", value) } - sv.SignalName = &jtv + sv.SignalName = ptr.String(jtv) } default: @@ -9886,7 +9896,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionStartedEventAttributes(v * if !ok { return fmt.Errorf("expected WorkflowRunIdOptional to be of type string, got %T instead", value) } - sv.ContinuedExecutionRunId = &jtv + sv.ContinuedExecutionRunId = ptr.String(jtv) } case "executionStartToCloseTimeout": @@ -9895,7 +9905,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionStartedEventAttributes(v * if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.ExecutionStartToCloseTimeout = &jtv + sv.ExecutionStartToCloseTimeout = ptr.String(jtv) } case "input": @@ -9904,7 +9914,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionStartedEventAttributes(v * if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "lambdaRole": @@ -9913,7 +9923,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionStartedEventAttributes(v * if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.LambdaRole = &jtv + sv.LambdaRole = ptr.String(jtv) } case "parentInitiatedEventId": @@ -9926,7 +9936,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionStartedEventAttributes(v * if err != nil { return err } - sv.ParentInitiatedEventId = &i64 + sv.ParentInitiatedEventId = i64 } case "parentWorkflowExecution": @@ -9950,7 +9960,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionStartedEventAttributes(v * if !ok { return fmt.Errorf("expected TaskPriority to be of type string, got %T instead", value) } - sv.TaskPriority = &jtv + sv.TaskPriority = ptr.String(jtv) } case "taskStartToCloseTimeout": @@ -9959,7 +9969,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionStartedEventAttributes(v * if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.TaskStartToCloseTimeout = &jtv + sv.TaskStartToCloseTimeout = ptr.String(jtv) } case "workflowType": @@ -10022,7 +10032,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionTerminatedEventAttributes( if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Details = &jtv + sv.Details = ptr.String(jtv) } case "reason": @@ -10031,7 +10041,7 @@ func awsAwsjson10_deserializeDocumentWorkflowExecutionTerminatedEventAttributes( if !ok { return fmt.Errorf("expected TerminateReason to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } default: @@ -10120,7 +10130,7 @@ func awsAwsjson10_deserializeDocumentWorkflowType(v **types.WorkflowType, value if !ok { return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "version": @@ -10129,7 +10139,7 @@ func awsAwsjson10_deserializeDocumentWorkflowType(v **types.WorkflowType, value if !ok { return fmt.Errorf("expected Version to be of type string, got %T instead", value) } - sv.Version = &jtv + sv.Version = ptr.String(jtv) } default: @@ -10178,7 +10188,7 @@ func awsAwsjson10_deserializeDocumentWorkflowTypeConfiguration(v **types.Workflo if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.DefaultExecutionStartToCloseTimeout = &jtv + sv.DefaultExecutionStartToCloseTimeout = ptr.String(jtv) } case "defaultLambdaRole": @@ -10187,7 +10197,7 @@ func awsAwsjson10_deserializeDocumentWorkflowTypeConfiguration(v **types.Workflo if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DefaultLambdaRole = &jtv + sv.DefaultLambdaRole = ptr.String(jtv) } case "defaultTaskList": @@ -10201,7 +10211,7 @@ func awsAwsjson10_deserializeDocumentWorkflowTypeConfiguration(v **types.Workflo if !ok { return fmt.Errorf("expected TaskPriority to be of type string, got %T instead", value) } - sv.DefaultTaskPriority = &jtv + sv.DefaultTaskPriority = ptr.String(jtv) } case "defaultTaskStartToCloseTimeout": @@ -10210,7 +10220,7 @@ func awsAwsjson10_deserializeDocumentWorkflowTypeConfiguration(v **types.Workflo if !ok { return fmt.Errorf("expected DurationInSecondsOptional to be of type string, got %T instead", value) } - sv.DefaultTaskStartToCloseTimeout = &jtv + sv.DefaultTaskStartToCloseTimeout = ptr.String(jtv) } default: @@ -10276,7 +10286,7 @@ func awsAwsjson10_deserializeDocumentWorkflowTypeInfo(v **types.WorkflowTypeInfo if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "status": @@ -10302,7 +10312,7 @@ func awsAwsjson10_deserializeDocumentWorkflowTypeInfo(v **types.WorkflowTypeInfo return nil } -func awsAwsjson10_deserializeDocumentWorkflowTypeInfoList(v *[]*types.WorkflowTypeInfo, value interface{}) error { +func awsAwsjson10_deserializeDocumentWorkflowTypeInfoList(v *[]types.WorkflowTypeInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10315,18 +10325,20 @@ func awsAwsjson10_deserializeDocumentWorkflowTypeInfoList(v *[]*types.WorkflowTy return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorkflowTypeInfo + var cv []types.WorkflowTypeInfo if *v == nil { - cv = []*types.WorkflowTypeInfo{} + cv = []types.WorkflowTypeInfo{} } else { cv = *v } for _, value := range shape { - var col *types.WorkflowTypeInfo - if err := awsAwsjson10_deserializeDocumentWorkflowTypeInfo(&col, value); err != nil { + var col types.WorkflowTypeInfo + destAddr := &col + if err := awsAwsjson10_deserializeDocumentWorkflowTypeInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10366,7 +10378,7 @@ func awsAwsjson10_deserializeOpDocumentCountClosedWorkflowExecutionsOutput(v **C if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "truncated": @@ -10375,7 +10387,7 @@ func awsAwsjson10_deserializeOpDocumentCountClosedWorkflowExecutionsOutput(v **C if !ok { return fmt.Errorf("expected Truncated to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = jtv } default: @@ -10419,7 +10431,7 @@ func awsAwsjson10_deserializeOpDocumentCountOpenWorkflowExecutionsOutput(v **Cou if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "truncated": @@ -10428,7 +10440,7 @@ func awsAwsjson10_deserializeOpDocumentCountOpenWorkflowExecutionsOutput(v **Cou if !ok { return fmt.Errorf("expected Truncated to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = jtv } default: @@ -10472,7 +10484,7 @@ func awsAwsjson10_deserializeOpDocumentCountPendingActivityTasksOutput(v **Count if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "truncated": @@ -10481,7 +10493,7 @@ func awsAwsjson10_deserializeOpDocumentCountPendingActivityTasksOutput(v **Count if !ok { return fmt.Errorf("expected Truncated to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = jtv } default: @@ -10525,7 +10537,7 @@ func awsAwsjson10_deserializeOpDocumentCountPendingDecisionTasksOutput(v **Count if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "truncated": @@ -10534,7 +10546,7 @@ func awsAwsjson10_deserializeOpDocumentCountPendingDecisionTasksOutput(v **Count if !ok { return fmt.Errorf("expected Truncated to be of type *bool, got %T instead", value) } - sv.Truncated = &jtv + sv.Truncated = jtv } default: @@ -10772,7 +10784,7 @@ func awsAwsjson10_deserializeOpDocumentDescribeWorkflowExecutionOutput(v **Descr if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.LatestExecutionContext = &jtv + sv.LatestExecutionContext = ptr.String(jtv) } case "openCounts": @@ -10863,7 +10875,7 @@ func awsAwsjson10_deserializeOpDocumentGetWorkflowExecutionHistoryOutput(v **Get if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -10903,7 +10915,7 @@ func awsAwsjson10_deserializeOpDocumentListActivityTypesOutput(v **ListActivityT if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "typeInfos": @@ -10953,7 +10965,7 @@ func awsAwsjson10_deserializeOpDocumentListClosedWorkflowExecutionsOutput(v **Li if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -10998,7 +11010,7 @@ func awsAwsjson10_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -11043,7 +11055,7 @@ func awsAwsjson10_deserializeOpDocumentListOpenWorkflowExecutionsOutput(v **List if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } default: @@ -11119,7 +11131,7 @@ func awsAwsjson10_deserializeOpDocumentListWorkflowTypesOutput(v **ListWorkflowT if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "typeInfos": @@ -11164,7 +11176,7 @@ func awsAwsjson10_deserializeOpDocumentPollForActivityTaskOutput(v **PollForActi if !ok { return fmt.Errorf("expected ActivityId to be of type string, got %T instead", value) } - sv.ActivityId = &jtv + sv.ActivityId = ptr.String(jtv) } case "activityType": @@ -11178,7 +11190,7 @@ func awsAwsjson10_deserializeOpDocumentPollForActivityTaskOutput(v **PollForActi if !ok { return fmt.Errorf("expected Data to be of type string, got %T instead", value) } - sv.Input = &jtv + sv.Input = ptr.String(jtv) } case "startedEventId": @@ -11191,7 +11203,7 @@ func awsAwsjson10_deserializeOpDocumentPollForActivityTaskOutput(v **PollForActi if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } case "taskToken": @@ -11200,7 +11212,7 @@ func awsAwsjson10_deserializeOpDocumentPollForActivityTaskOutput(v **PollForActi if !ok { return fmt.Errorf("expected TaskToken to be of type string, got %T instead", value) } - sv.TaskToken = &jtv + sv.TaskToken = ptr.String(jtv) } case "workflowExecution": @@ -11250,7 +11262,7 @@ func awsAwsjson10_deserializeOpDocumentPollForDecisionTaskOutput(v **PollForDeci if !ok { return fmt.Errorf("expected PageToken to be of type string, got %T instead", value) } - sv.NextPageToken = &jtv + sv.NextPageToken = ptr.String(jtv) } case "previousStartedEventId": @@ -11263,7 +11275,7 @@ func awsAwsjson10_deserializeOpDocumentPollForDecisionTaskOutput(v **PollForDeci if err != nil { return err } - sv.PreviousStartedEventId = &i64 + sv.PreviousStartedEventId = i64 } case "startedEventId": @@ -11276,7 +11288,7 @@ func awsAwsjson10_deserializeOpDocumentPollForDecisionTaskOutput(v **PollForDeci if err != nil { return err } - sv.StartedEventId = &i64 + sv.StartedEventId = i64 } case "taskToken": @@ -11285,7 +11297,7 @@ func awsAwsjson10_deserializeOpDocumentPollForDecisionTaskOutput(v **PollForDeci if !ok { return fmt.Errorf("expected TaskToken to be of type string, got %T instead", value) } - sv.TaskToken = &jtv + sv.TaskToken = ptr.String(jtv) } case "workflowExecution": @@ -11335,7 +11347,7 @@ func awsAwsjson10_deserializeOpDocumentRecordActivityTaskHeartbeatOutput(v **Rec if !ok { return fmt.Errorf("expected Canceled to be of type *bool, got %T instead", value) } - sv.CancelRequested = &jtv + sv.CancelRequested = jtv } default: @@ -11654,7 +11666,7 @@ func awsAwsjson10_deserializeOpDocumentStartWorkflowExecutionOutput(v **StartWor if !ok { return fmt.Errorf("expected WorkflowRunId to be of type string, got %T instead", value) } - sv.RunId = &jtv + sv.RunId = ptr.String(jtv) } default: diff --git a/service/swf/go.mod b/service/swf/go.mod index 15e7490ed4c..ceb0809b658 100644 --- a/service/swf/go.mod +++ b/service/swf/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/swf go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/swf/serializers.go b/service/swf/serializers.go index ade71216d1d..242bbd2ad3f 100644 --- a/service/swf/serializers.go +++ b/service/swf/serializers.go @@ -1940,17 +1940,13 @@ func awsAwsjson10_serializeDocumentDecision(v *types.Decision, value smithyjson. return nil } -func awsAwsjson10_serializeDocumentDecisionList(v []*types.Decision, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentDecisionList(v []types.Decision, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentDecision(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentDecision(&v[i], av); err != nil { return err } } @@ -2059,32 +2055,24 @@ func awsAwsjson10_serializeDocumentResourceTag(v *types.ResourceTag, value smith return nil } -func awsAwsjson10_serializeDocumentResourceTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentResourceTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson10_serializeDocumentResourceTagList(v []*types.ResourceTag, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentResourceTagList(v []types.ResourceTag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentResourceTag(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentResourceTag(&v[i], av); err != nil { return err } } @@ -2318,17 +2306,13 @@ func awsAwsjson10_serializeDocumentTagFilter(v *types.TagFilter, value smithyjso return nil } -func awsAwsjson10_serializeDocumentTagList(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentTagList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2675,9 +2659,9 @@ func awsAwsjson10_serializeOpDocumentGetWorkflowExecutionHistoryInput(v *GetWork } } - if v.MaximumPageSize != nil { + if v.MaximumPageSize != 0 { ok := object.Key("maximumPageSize") - ok.Integer(*v.MaximumPageSize) + ok.Integer(v.MaximumPageSize) } if v.NextPageToken != nil { @@ -2685,9 +2669,9 @@ func awsAwsjson10_serializeOpDocumentGetWorkflowExecutionHistoryInput(v *GetWork ok.String(*v.NextPageToken) } - if v.ReverseOrder != nil { + if v.ReverseOrder { ok := object.Key("reverseOrder") - ok.Boolean(*v.ReverseOrder) + ok.Boolean(v.ReverseOrder) } return nil @@ -2702,9 +2686,9 @@ func awsAwsjson10_serializeOpDocumentListActivityTypesInput(v *ListActivityTypes ok.String(*v.Domain) } - if v.MaximumPageSize != nil { + if v.MaximumPageSize != 0 { ok := object.Key("maximumPageSize") - ok.Integer(*v.MaximumPageSize) + ok.Integer(v.MaximumPageSize) } if v.Name != nil { @@ -2722,9 +2706,9 @@ func awsAwsjson10_serializeOpDocumentListActivityTypesInput(v *ListActivityTypes ok.String(string(v.RegistrationStatus)) } - if v.ReverseOrder != nil { + if v.ReverseOrder { ok := object.Key("reverseOrder") - ok.Boolean(*v.ReverseOrder) + ok.Boolean(v.ReverseOrder) } return nil @@ -2760,9 +2744,9 @@ func awsAwsjson10_serializeOpDocumentListClosedWorkflowExecutionsInput(v *ListCl } } - if v.MaximumPageSize != nil { + if v.MaximumPageSize != 0 { ok := object.Key("maximumPageSize") - ok.Integer(*v.MaximumPageSize) + ok.Integer(v.MaximumPageSize) } if v.NextPageToken != nil { @@ -2770,9 +2754,9 @@ func awsAwsjson10_serializeOpDocumentListClosedWorkflowExecutionsInput(v *ListCl ok.String(*v.NextPageToken) } - if v.ReverseOrder != nil { + if v.ReverseOrder { ok := object.Key("reverseOrder") - ok.Boolean(*v.ReverseOrder) + ok.Boolean(v.ReverseOrder) } if v.StartTimeFilter != nil { @@ -2803,9 +2787,9 @@ func awsAwsjson10_serializeOpDocumentListDomainsInput(v *ListDomainsInput, value object := value.Object() defer object.Close() - if v.MaximumPageSize != nil { + if v.MaximumPageSize != 0 { ok := object.Key("maximumPageSize") - ok.Integer(*v.MaximumPageSize) + ok.Integer(v.MaximumPageSize) } if v.NextPageToken != nil { @@ -2818,9 +2802,9 @@ func awsAwsjson10_serializeOpDocumentListDomainsInput(v *ListDomainsInput, value ok.String(string(v.RegistrationStatus)) } - if v.ReverseOrder != nil { + if v.ReverseOrder { ok := object.Key("reverseOrder") - ok.Boolean(*v.ReverseOrder) + ok.Boolean(v.ReverseOrder) } return nil @@ -2842,9 +2826,9 @@ func awsAwsjson10_serializeOpDocumentListOpenWorkflowExecutionsInput(v *ListOpen } } - if v.MaximumPageSize != nil { + if v.MaximumPageSize != 0 { ok := object.Key("maximumPageSize") - ok.Integer(*v.MaximumPageSize) + ok.Integer(v.MaximumPageSize) } if v.NextPageToken != nil { @@ -2852,9 +2836,9 @@ func awsAwsjson10_serializeOpDocumentListOpenWorkflowExecutionsInput(v *ListOpen ok.String(*v.NextPageToken) } - if v.ReverseOrder != nil { + if v.ReverseOrder { ok := object.Key("reverseOrder") - ok.Boolean(*v.ReverseOrder) + ok.Boolean(v.ReverseOrder) } if v.StartTimeFilter != nil { @@ -2902,9 +2886,9 @@ func awsAwsjson10_serializeOpDocumentListWorkflowTypesInput(v *ListWorkflowTypes ok.String(*v.Domain) } - if v.MaximumPageSize != nil { + if v.MaximumPageSize != 0 { ok := object.Key("maximumPageSize") - ok.Integer(*v.MaximumPageSize) + ok.Integer(v.MaximumPageSize) } if v.Name != nil { @@ -2922,9 +2906,9 @@ func awsAwsjson10_serializeOpDocumentListWorkflowTypesInput(v *ListWorkflowTypes ok.String(string(v.RegistrationStatus)) } - if v.ReverseOrder != nil { + if v.ReverseOrder { ok := object.Key("reverseOrder") - ok.Boolean(*v.ReverseOrder) + ok.Boolean(v.ReverseOrder) } return nil @@ -2968,9 +2952,9 @@ func awsAwsjson10_serializeOpDocumentPollForDecisionTaskInput(v *PollForDecision ok.String(*v.Identity) } - if v.MaximumPageSize != nil { + if v.MaximumPageSize != 0 { ok := object.Key("maximumPageSize") - ok.Integer(*v.MaximumPageSize) + ok.Integer(v.MaximumPageSize) } if v.NextPageToken != nil { @@ -2978,9 +2962,9 @@ func awsAwsjson10_serializeOpDocumentPollForDecisionTaskInput(v *PollForDecision ok.String(*v.NextPageToken) } - if v.ReverseOrder != nil { + if v.ReverseOrder { ok := object.Key("reverseOrder") - ok.Boolean(*v.ReverseOrder) + ok.Boolean(v.ReverseOrder) } if v.TaskList != nil { diff --git a/service/swf/types/types.go b/service/swf/types/types.go index 1bdcd55ca94..021cfa82f88 100644 --- a/service/swf/types/types.go +++ b/service/swf/types/types.go @@ -14,14 +14,14 @@ type ActivityTaskCanceledEventAttributes struct { // tracing back the chain of events leading up to this event. // // This member is required. - ScheduledEventId *int64 + ScheduledEventId int64 // The ID of the ActivityTaskStarted event recorded when this activity task was // started. This information can be useful for diagnosing problems by tracing back // the chain of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // Details of the cancellation. Details *string @@ -29,7 +29,7 @@ type ActivityTaskCanceledEventAttributes struct { // If set, contains the ID of the last ActivityTaskCancelRequested event recorded // for this activity task. This information can be useful for diagnosing problems // by tracing back the chain of events leading up to this event. - LatestCancelRequestedEventId *int64 + LatestCancelRequestedEventId int64 } // Provides the details of the ActivityTaskCancelRequested event. @@ -46,7 +46,7 @@ type ActivityTaskCancelRequestedEventAttributes struct { // the chain of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 } // Provides the details of the ActivityTaskCompleted event. @@ -57,14 +57,14 @@ type ActivityTaskCompletedEventAttributes struct { // tracing back the chain of events leading up to this event. // // This member is required. - ScheduledEventId *int64 + ScheduledEventId int64 // The ID of the ActivityTaskStarted event recorded when this activity task was // started. This information can be useful for diagnosing problems by tracing back // the chain of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The results of the activity task. Result *string @@ -78,14 +78,14 @@ type ActivityTaskFailedEventAttributes struct { // tracing back the chain of events leading up to this event. // // This member is required. - ScheduledEventId *int64 + ScheduledEventId int64 // The ID of the ActivityTaskStarted event recorded when this activity task was // started. This information can be useful for diagnosing problems by tracing back // the chain of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The details of the failure. Details *string @@ -113,7 +113,7 @@ type ActivityTaskScheduledEventAttributes struct { // event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The task list in which the activity task has been scheduled. // @@ -162,7 +162,7 @@ type ActivityTaskStartedEventAttributes struct { // tracing back the chain of events leading up to this event. // // This member is required. - ScheduledEventId *int64 + ScheduledEventId int64 // Identity of the worker that was assigned this task. This aids diagnostics when // problems arise. The form of this identity is user defined. @@ -177,14 +177,14 @@ type ActivityTaskTimedOutEventAttributes struct { // tracing back the chain of events leading up to this event. // // This member is required. - ScheduledEventId *int64 + ScheduledEventId int64 // The ID of the ActivityTaskStarted event recorded when this activity task was // started. This information can be useful for diagnosing problems by tracing back // the chain of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The type of the timeout that caused this event. // @@ -337,7 +337,7 @@ type CancelTimerFailedEventAttributes struct { // leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The timerId provided in the CancelTimer decision that failed. // @@ -390,7 +390,7 @@ type CancelWorkflowExecutionFailedEventAttributes struct { // the chain of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 } // Provide details of the ChildWorkflowExecutionCanceled event. @@ -402,14 +402,14 @@ type ChildWorkflowExecutionCanceledEventAttributes struct { // events leading up to this event. // // This member is required. - InitiatedEventId *int64 + InitiatedEventId int64 // The ID of the ChildWorkflowExecutionStarted event recorded when this child // workflow execution was started. This information can be useful for diagnosing // problems by tracing back the chain of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The child workflow execution that was canceled. // @@ -434,14 +434,14 @@ type ChildWorkflowExecutionCompletedEventAttributes struct { // events leading up to this event. // // This member is required. - InitiatedEventId *int64 + InitiatedEventId int64 // The ID of the ChildWorkflowExecutionStarted event recorded when this child // workflow execution was started. This information can be useful for diagnosing // problems by tracing back the chain of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The child workflow execution that was completed. // @@ -466,14 +466,14 @@ type ChildWorkflowExecutionFailedEventAttributes struct { // events leading up to this event. // // This member is required. - InitiatedEventId *int64 + InitiatedEventId int64 // The ID of the ChildWorkflowExecutionStarted event recorded when this child // workflow execution was started. This information can be useful for diagnosing // problems by tracing back the chain of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The child workflow execution that failed. // @@ -501,7 +501,7 @@ type ChildWorkflowExecutionStartedEventAttributes struct { // events leading up to this event. // // This member is required. - InitiatedEventId *int64 + InitiatedEventId int64 // The child workflow execution that was started. // @@ -523,14 +523,14 @@ type ChildWorkflowExecutionTerminatedEventAttributes struct { // events leading up to this event. // // This member is required. - InitiatedEventId *int64 + InitiatedEventId int64 // The ID of the ChildWorkflowExecutionStarted event recorded when this child // workflow execution was started. This information can be useful for diagnosing // problems by tracing back the chain of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The child workflow execution that was terminated. // @@ -552,14 +552,14 @@ type ChildWorkflowExecutionTimedOutEventAttributes struct { // events leading up to this event. // // This member is required. - InitiatedEventId *int64 + InitiatedEventId int64 // The ID of the ChildWorkflowExecutionStarted event recorded when this child // workflow execution was started. This information can be useful for diagnosing // problems by tracing back the chain of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The type of the timeout that caused the child workflow execution to time out. // @@ -634,7 +634,7 @@ type CompleteWorkflowExecutionFailedEventAttributes struct { // back the chain of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 } // Provides the details of the ContinueAsNewWorkflowExecution decision. Access @@ -711,7 +711,7 @@ type ContinueAsNewWorkflowExecutionDecisionAttributes struct { // tags can be specified. You can list workflow executions with a specific tag by // calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and // specifying a TagFilter. - TagList []*string + TagList []string // The task list to use for the decisions of the new (continued) workflow // execution. @@ -761,7 +761,7 @@ type ContinueAsNewWorkflowExecutionFailedEventAttributes struct { // back the chain of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 } // Specifies a decision made by the decider. A decision can be one of these @@ -1016,14 +1016,14 @@ type DecisionTaskCompletedEventAttributes struct { // tracing back the chain of events leading up to this event. // // This member is required. - ScheduledEventId *int64 + ScheduledEventId int64 // The ID of the DecisionTaskStarted event recorded when this decision task was // started. This information can be useful for diagnosing problems by tracing back // the chain of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // User defined context for the workflow execution. ExecutionContext *string @@ -1060,7 +1060,7 @@ type DecisionTaskStartedEventAttributes struct { // tracing back the chain of events leading up to this event. // // This member is required. - ScheduledEventId *int64 + ScheduledEventId int64 // Identity of the decider making the request. This enables diagnostic tracing when // problems arise. The form of this identity is user defined. @@ -1075,14 +1075,14 @@ type DecisionTaskTimedOutEventAttributes struct { // tracing back the chain of events leading up to this event. // // This member is required. - ScheduledEventId *int64 + ScheduledEventId int64 // The ID of the DecisionTaskStarted event recorded when this decision task was // started. This information can be useful for diagnosing problems by tracing back // the chain of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The type of timeout that expired before the decision task could be completed. // @@ -1152,7 +1152,7 @@ type ExternalWorkflowExecutionCancelRequestedEventAttributes struct { // problems by tracing back the chain of events leading up to this event. // // This member is required. - InitiatedEventId *int64 + InitiatedEventId int64 // The external workflow execution to which the cancellation request was delivered. // @@ -1169,7 +1169,7 @@ type ExternalWorkflowExecutionSignaledEventAttributes struct { // events leading up to this event. // // This member is required. - InitiatedEventId *int64 + InitiatedEventId int64 // The external workflow execution that the signal was delivered to. // @@ -1225,7 +1225,7 @@ type FailWorkflowExecutionFailedEventAttributes struct { // events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 } // Event within a workflow execution. A history event can be one of these types: @@ -1401,7 +1401,7 @@ type HistoryEvent struct { // in the workflow execution history. // // This member is required. - EventId *int64 + EventId int64 // The date and time when the event occurred. // @@ -1676,14 +1676,14 @@ type LambdaFunctionCompletedEventAttributes struct { // the chain of events leading up to this event. // // This member is required. - ScheduledEventId *int64 + ScheduledEventId int64 // The ID of the LambdaFunctionStarted event recorded when this activity task // started. To help diagnose issues, use this information to trace back the chain // of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The results of the Lambda task. Result *string @@ -1698,14 +1698,14 @@ type LambdaFunctionFailedEventAttributes struct { // the chain of events leading up to this event. // // This member is required. - ScheduledEventId *int64 + ScheduledEventId int64 // The ID of the LambdaFunctionStarted event recorded when this activity task // started. To help diagnose issues, use this information to trace back the chain // of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The details of the failure. Details *string @@ -1723,7 +1723,7 @@ type LambdaFunctionScheduledEventAttributes struct { // information to trace back the chain of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The unique ID of the Lambda task. // @@ -1755,7 +1755,7 @@ type LambdaFunctionStartedEventAttributes struct { // the chain of events leading up to this event. // // This member is required. - ScheduledEventId *int64 + ScheduledEventId int64 } // Provides details of the LambdaFunctionTimedOut event. @@ -1766,14 +1766,14 @@ type LambdaFunctionTimedOutEventAttributes struct { // the chain of events leading up to this event. // // This member is required. - ScheduledEventId *int64 + ScheduledEventId int64 // The ID of the ActivityTaskStarted event that was recorded when this activity // task started. To help diagnose issues, use this information to trace back the // chain of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The type of the timeout that caused this event. TimeoutType LambdaFunctionTimeoutType @@ -1788,7 +1788,7 @@ type MarkerRecordedEventAttributes struct { // events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The name of the marker. // @@ -1849,7 +1849,7 @@ type RecordMarkerFailedEventAttributes struct { // of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The marker's name. // @@ -1909,7 +1909,7 @@ type RequestCancelActivityTaskFailedEventAttributes struct { // the chain of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 } // Provides the details of the RequestCancelExternalWorkflowExecution decision. @@ -1966,7 +1966,7 @@ type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { // tracing back the chain of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The ID of the RequestCancelExternalWorkflowExecutionInitiated event // corresponding to the RequestCancelExternalWorkflowExecution decision to cancel @@ -1974,7 +1974,7 @@ type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { // problems by tracing back the chain of events leading up to this event. // // This member is required. - InitiatedEventId *int64 + InitiatedEventId int64 // The workflowId of the external workflow to which the cancel request was to be // delivered. @@ -2000,7 +2000,7 @@ type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct { // tracing back the chain of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The workflowId of the external workflow execution to be canceled. // @@ -2169,7 +2169,7 @@ type ScheduleActivityTaskFailedEventAttributes struct { // event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 } // Decision attributes specified in scheduleLambdaFunctionDecisionAttributes within @@ -2219,7 +2219,7 @@ type ScheduleLambdaFunctionFailedEventAttributes struct { // information to trace back the chain of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The ID provided in the ScheduleLambdaFunction decision that failed. // @@ -2296,7 +2296,7 @@ type SignalExternalWorkflowExecutionFailedEventAttributes struct { // of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to // the SignalExternalWorkflowExecution decision to request this signal. This @@ -2304,7 +2304,7 @@ type SignalExternalWorkflowExecutionFailedEventAttributes struct { // events leading up to this event. // // This member is required. - InitiatedEventId *int64 + InitiatedEventId int64 // The workflowId of the external workflow execution that the signal was being // delivered to. @@ -2330,7 +2330,7 @@ type SignalExternalWorkflowExecutionInitiatedEventAttributes struct { // of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The name of the signal. // @@ -2448,7 +2448,7 @@ type StartChildWorkflowExecutionDecisionAttributes struct { // tags can be specified. You can list workflow executions with a specific tag by // calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and // specifying a TagFilter. - TagList []*string + TagList []string // The name of the task list to be used for decision tasks of the child workflow // execution. A task list for this workflow execution must be specified either as a @@ -2501,7 +2501,7 @@ type StartChildWorkflowExecutionFailedEventAttributes struct { // tracing back the chain of events. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // When the cause is WORKFLOW_ALREADY_RUNNING, initiatedEventId is the ID of the // StartChildWorkflowExecutionInitiated event that corresponds to the @@ -2512,7 +2512,7 @@ type StartChildWorkflowExecutionFailedEventAttributes struct { // event doesn't exist. // // This member is required. - InitiatedEventId *int64 + InitiatedEventId int64 // The workflowId of the child workflow execution. // @@ -2557,7 +2557,7 @@ type StartChildWorkflowExecutionInitiatedEventAttributes struct { // tracing back the cause of events. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The name of the task list used for the decision tasks of the child workflow // execution. @@ -2592,7 +2592,7 @@ type StartChildWorkflowExecutionInitiatedEventAttributes struct { LambdaRole *string // The list of tags to associated with the child workflow execution. - TagList []*string + TagList []string // The priority assigned for the decision tasks for this workflow execution. Valid // values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to @@ -2627,7 +2627,7 @@ type StartLambdaFunctionFailedEventAttributes struct { // The ID of the ActivityTaskScheduled event that was recorded when this activity // task was scheduled. To help diagnose issues, use this information to trace back // the chain of events leading up to this event. - ScheduledEventId *int64 + ScheduledEventId int64 } // Provides the details of the StartTimer decision. Access Control You can use IAM @@ -2690,7 +2690,7 @@ type StartTimerFailedEventAttributes struct { // events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The timerId provided in the StartTimer decision that failed. // @@ -2727,14 +2727,14 @@ type TimerCanceledEventAttributes struct { // leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The ID of the TimerStarted event that was recorded when this timer was started. // This information can be useful for diagnosing problems by tracing back the chain // of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The unique ID of the timer that was canceled. // @@ -2750,7 +2750,7 @@ type TimerFiredEventAttributes struct { // of events leading up to this event. // // This member is required. - StartedEventId *int64 + StartedEventId int64 // The unique ID of the timer that fired. // @@ -2767,7 +2767,7 @@ type TimerStartedEventAttributes struct { // events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The duration of time after which the timer fires. The duration is specified in // seconds, an integer greater than or equal to 0. @@ -2808,7 +2808,7 @@ type WorkflowExecutionCanceledEventAttributes struct { // the chain of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The details of the cancellation. Details *string @@ -2829,7 +2829,7 @@ type WorkflowExecutionCancelRequestedEventAttributes struct { // history of the source workflow execution. This information can be useful for // diagnosing problems by tracing back the chain of events leading up to this // event. - ExternalInitiatedEventId *int64 + ExternalInitiatedEventId int64 // The external workflow execution for which the cancellation was requested. ExternalWorkflowExecution *WorkflowExecution @@ -2844,7 +2844,7 @@ type WorkflowExecutionCompletedEventAttributes struct { // back the chain of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The result produced by the workflow execution upon successful completion. Result *string @@ -2932,7 +2932,7 @@ type WorkflowExecutionContinuedAsNewEventAttributes struct { // back the chain of events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The runId of the new workflow execution. // @@ -2962,7 +2962,7 @@ type WorkflowExecutionContinuedAsNewEventAttributes struct { LambdaRole *string // The list of tags associated with the new workflow execution. - TagList []*string + TagList []string // The priority of the task to use for the decisions of the new (continued) // workflow execution. @@ -2983,7 +2983,7 @@ type WorkflowExecutionFailedEventAttributes struct { // events leading up to this event. // // This member is required. - DecisionTaskCompletedEventId *int64 + DecisionTaskCompletedEventId int64 // The details of the failure. Details *string @@ -3025,7 +3025,7 @@ type WorkflowExecutionInfo struct { WorkflowType *WorkflowType // Set to true if a cancellation is requested for this workflow execution. - CancelRequested *bool + CancelRequested bool // If the execution status is closed then this specifies how the execution was // closed: @@ -3061,7 +3061,7 @@ type WorkflowExecutionInfo struct { // The list of tags associated with the workflow execution. Tags can be used to // identify and list workflow executions of interest through the visibility APIs. A // workflow execution can have a maximum of 5 tags. - TagList []*string + TagList []string } // Contains the counts of open tasks, child workflow executions and timers for a @@ -3071,26 +3071,26 @@ type WorkflowExecutionOpenCounts struct { // The count of activity tasks whose status is OPEN. // // This member is required. - OpenActivityTasks *int32 + OpenActivityTasks int32 // The count of child workflow executions whose status is OPEN. // // This member is required. - OpenChildWorkflowExecutions *int32 + OpenChildWorkflowExecutions int32 // The count of decision tasks whose status is OPEN. A workflow execution can have // at most one open decision task. // // This member is required. - OpenDecisionTasks *int32 + OpenDecisionTasks int32 // The count of timers started by this workflow execution that have not fired yet. // // This member is required. - OpenTimers *int32 + OpenTimers int32 // The count of Lambda tasks whose status is OPEN. - OpenLambdaFunctions *int32 + OpenLambdaFunctions int32 } // Provides the details of the WorkflowExecutionSignaled event. @@ -3108,7 +3108,7 @@ type WorkflowExecutionSignaledEventAttributes struct { // This information can be useful for diagnosing problems by tracing back the chain // of events leading up to this event. This field is set only if the signal was // initiated by another workflow execution. - ExternalInitiatedEventId *int64 + ExternalInitiatedEventId int64 // The workflow execution that sent the signal. This is set only of the signal was // sent by another workflow execution. @@ -3172,7 +3172,7 @@ type WorkflowExecutionStartedEventAttributes struct { // event with this ID can be found in the history of the source workflow execution. // This information can be useful for diagnosing problems by tracing back the chain // of events leading up to this event. - ParentInitiatedEventId *int64 + ParentInitiatedEventId int64 // The source workflow execution that started this workflow execution. The member // isn't set if the workflow execution was not started by a workflow. @@ -3180,7 +3180,7 @@ type WorkflowExecutionStartedEventAttributes struct { // The list of tags associated with this workflow execution. An execution can have // up to 5 tags. - TagList []*string + TagList []string // The priority of the decision tasks in the workflow execution. TaskPriority *string diff --git a/service/swf/validators.go b/service/swf/validators.go index f16af4a2f60..2efc2c09a81 100644 --- a/service/swf/validators.go +++ b/service/swf/validators.go @@ -1028,13 +1028,13 @@ func validateDecision(v *types.Decision) error { } } -func validateDecisionList(v []*types.Decision) error { +func validateDecisionList(v []types.Decision) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DecisionList"} for i := range v { - if err := validateDecision(v[i]); err != nil { + if err := validateDecision(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1120,13 +1120,13 @@ func validateResourceTag(v *types.ResourceTag) error { } } -func validateResourceTagList(v []*types.ResourceTag) error { +func validateResourceTagList(v []types.ResourceTag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ResourceTagList"} for i := range v { - if err := validateResourceTag(v[i]); err != nil { + if err := validateResourceTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/synthetics/api_op_CreateCanary.go b/service/synthetics/api_op_CreateCanary.go index 9f591b4f3b1..a3d0f625e2f 100644 --- a/service/synthetics/api_op_CreateCanary.go +++ b/service/synthetics/api_op_CreateCanary.go @@ -122,7 +122,7 @@ type CreateCanaryInput struct { // many as 50 tags with a canary. Tags can help you organize and categorize your // resources. You can also use them to scope user permissions, by granting a user // permission to access or change only the resources that have certain tag values. - Tags map[string]*string + Tags map[string]string // If this canary is to test an endpoint in a VPC, this structure contains // information about the subnet and security groups of the VPC endpoint. For more diff --git a/service/synthetics/api_op_DescribeCanaries.go b/service/synthetics/api_op_DescribeCanaries.go index ebddb503268..477b6da4680 100644 --- a/service/synthetics/api_op_DescribeCanaries.go +++ b/service/synthetics/api_op_DescribeCanaries.go @@ -47,7 +47,7 @@ type DescribeCanariesOutput struct { // Returns an array. Each item in the array contains the full information about one // canary. - Canaries []*types.Canary + Canaries []types.Canary // A token that indicates that there is more data available. You can use this token // in a subsequent DescribeCanaries operation to retrieve the next set of results. diff --git a/service/synthetics/api_op_DescribeCanariesLastRun.go b/service/synthetics/api_op_DescribeCanariesLastRun.go index ad3463cbf31..5221dee7bad 100644 --- a/service/synthetics/api_op_DescribeCanariesLastRun.go +++ b/service/synthetics/api_op_DescribeCanariesLastRun.go @@ -43,7 +43,7 @@ type DescribeCanariesLastRunInput struct { type DescribeCanariesLastRunOutput struct { // An array that contains the information from the most recent run of each canary. - CanariesLastRun []*types.CanaryLastRun + CanariesLastRun []types.CanaryLastRun // A token that indicates that there is more data available. You can use this token // in a subsequent DescribeCanariesLastRun operation to retrieve the next set of diff --git a/service/synthetics/api_op_DescribeRuntimeVersions.go b/service/synthetics/api_op_DescribeRuntimeVersions.go index 73530d16ccf..9d2703945b5 100644 --- a/service/synthetics/api_op_DescribeRuntimeVersions.go +++ b/service/synthetics/api_op_DescribeRuntimeVersions.go @@ -51,7 +51,7 @@ type DescribeRuntimeVersionsOutput struct { // An array of objects that display the details about each Synthetics canary // runtime version. - RuntimeVersions []*types.RuntimeVersion + RuntimeVersions []types.RuntimeVersion // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/synthetics/api_op_GetCanaryRuns.go b/service/synthetics/api_op_GetCanaryRuns.go index 0ae107b8094..f52b2365f6c 100644 --- a/service/synthetics/api_op_GetCanaryRuns.go +++ b/service/synthetics/api_op_GetCanaryRuns.go @@ -47,7 +47,7 @@ type GetCanaryRunsOutput struct { // An array of structures. Each structure contains the details of one of the // retrieved canary runs. - CanaryRuns []*types.CanaryRun + CanaryRuns []types.CanaryRun // A token that indicates that there is more data available. You can use this token // in a subsequent GetCanaryRuns operation to retrieve the next set of results. diff --git a/service/synthetics/api_op_ListTagsForResource.go b/service/synthetics/api_op_ListTagsForResource.go index 7629b511173..48f6a0284bb 100644 --- a/service/synthetics/api_op_ListTagsForResource.go +++ b/service/synthetics/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The list of tag keys and values associated with the canary that you specified. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/synthetics/api_op_TagResource.go b/service/synthetics/api_op_TagResource.go index 8fab5aabb8a..8bb174349f7 100644 --- a/service/synthetics/api_op_TagResource.go +++ b/service/synthetics/api_op_TagResource.go @@ -46,7 +46,7 @@ type TagResourceInput struct { // The list of key-value pairs to associate with the canary. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/synthetics/api_op_UntagResource.go b/service/synthetics/api_op_UntagResource.go index a1d2d04e24e..ac1d93316f8 100644 --- a/service/synthetics/api_op_UntagResource.go +++ b/service/synthetics/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // The list of tag keys to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/synthetics/deserializers.go b/service/synthetics/deserializers.go index bd65b148e0d..ed51bba31e7 100644 --- a/service/synthetics/deserializers.go +++ b/service/synthetics/deserializers.go @@ -408,7 +408,7 @@ func awsRestjson1_deserializeOpDocumentDescribeCanariesOutput(v **DescribeCanari if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -567,7 +567,7 @@ func awsRestjson1_deserializeOpDocumentDescribeCanariesLastRunOutput(v **Describ if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -721,7 +721,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRuntimeVersionsOutput(v **Describ if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "RuntimeVersions": @@ -1038,7 +1038,7 @@ func awsRestjson1_deserializeOpDocumentGetCanaryRunsOutput(v **GetCanaryRunsOutp if !ok { return fmt.Errorf("expected Token to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1801,7 +1801,7 @@ func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Respo return output } -func awsRestjson1_deserializeDocumentCanaries(v *[]*types.Canary, value interface{}) error { +func awsRestjson1_deserializeDocumentCanaries(v *[]types.Canary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1814,18 +1814,20 @@ func awsRestjson1_deserializeDocumentCanaries(v *[]*types.Canary, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Canary + var cv []types.Canary if *v == nil { - cv = []*types.Canary{} + cv = []types.Canary{} } else { cv = *v } for _, value := range shape { - var col *types.Canary - if err := awsRestjson1_deserializeDocumentCanary(&col, value); err != nil { + var col types.Canary + destAddr := &col + if err := awsRestjson1_deserializeDocumentCanary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1833,7 +1835,7 @@ func awsRestjson1_deserializeDocumentCanaries(v *[]*types.Canary, value interfac return nil } -func awsRestjson1_deserializeDocumentCanariesLastRun(v *[]*types.CanaryLastRun, value interface{}) error { +func awsRestjson1_deserializeDocumentCanariesLastRun(v *[]types.CanaryLastRun, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1846,18 +1848,20 @@ func awsRestjson1_deserializeDocumentCanariesLastRun(v *[]*types.CanaryLastRun, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CanaryLastRun + var cv []types.CanaryLastRun if *v == nil { - cv = []*types.CanaryLastRun{} + cv = []types.CanaryLastRun{} } else { cv = *v } for _, value := range shape { - var col *types.CanaryLastRun - if err := awsRestjson1_deserializeDocumentCanaryLastRun(&col, value); err != nil { + var col types.CanaryLastRun + destAddr := &col + if err := awsRestjson1_deserializeDocumentCanaryLastRun(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1893,7 +1897,7 @@ func awsRestjson1_deserializeDocumentCanary(v **types.Canary, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ArtifactS3Location = &jtv + sv.ArtifactS3Location = ptr.String(jtv) } case "Code": @@ -1907,7 +1911,7 @@ func awsRestjson1_deserializeDocumentCanary(v **types.Canary, value interface{}) if !ok { return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) } - sv.EngineArn = &jtv + sv.EngineArn = ptr.String(jtv) } case "ExecutionRoleArn": @@ -1916,7 +1920,7 @@ func awsRestjson1_deserializeDocumentCanary(v **types.Canary, value interface{}) if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.ExecutionRoleArn = &jtv + sv.ExecutionRoleArn = ptr.String(jtv) } case "FailureRetentionPeriodInDays": @@ -1938,7 +1942,7 @@ func awsRestjson1_deserializeDocumentCanary(v **types.Canary, value interface{}) if !ok { return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -1947,7 +1951,7 @@ func awsRestjson1_deserializeDocumentCanary(v **types.Canary, value interface{}) if !ok { return fmt.Errorf("expected CanaryName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RunConfig": @@ -1961,7 +1965,7 @@ func awsRestjson1_deserializeDocumentCanary(v **types.Canary, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RuntimeVersion = &jtv + sv.RuntimeVersion = ptr.String(jtv) } case "Schedule": @@ -2039,7 +2043,7 @@ func awsRestjson1_deserializeDocumentCanaryCodeOutput(v **types.CanaryCodeOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Handler = &jtv + sv.Handler = ptr.String(jtv) } case "SourceLocationArn": @@ -2048,7 +2052,7 @@ func awsRestjson1_deserializeDocumentCanaryCodeOutput(v **types.CanaryCodeOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceLocationArn = &jtv + sv.SourceLocationArn = ptr.String(jtv) } default: @@ -2088,7 +2092,7 @@ func awsRestjson1_deserializeDocumentCanaryLastRun(v **types.CanaryLastRun, valu if !ok { return fmt.Errorf("expected CanaryName to be of type string, got %T instead", value) } - sv.CanaryName = &jtv + sv.CanaryName = ptr.String(jtv) } case "LastRun": @@ -2133,7 +2137,7 @@ func awsRestjson1_deserializeDocumentCanaryRun(v **types.CanaryRun, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ArtifactS3Location = &jtv + sv.ArtifactS3Location = ptr.String(jtv) } case "Id": @@ -2142,7 +2146,7 @@ func awsRestjson1_deserializeDocumentCanaryRun(v **types.CanaryRun, value interf if !ok { return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -2151,7 +2155,7 @@ func awsRestjson1_deserializeDocumentCanaryRun(v **types.CanaryRun, value interf if !ok { return fmt.Errorf("expected CanaryName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Status": @@ -2201,7 +2205,7 @@ func awsRestjson1_deserializeDocumentCanaryRunConfigOutput(v **types.CanaryRunCo if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.ActiveTracing = &jtv + sv.ActiveTracing = ptr.Bool(jtv) } case "MemoryInMB": @@ -2239,7 +2243,7 @@ func awsRestjson1_deserializeDocumentCanaryRunConfigOutput(v **types.CanaryRunCo return nil } -func awsRestjson1_deserializeDocumentCanaryRuns(v *[]*types.CanaryRun, value interface{}) error { +func awsRestjson1_deserializeDocumentCanaryRuns(v *[]types.CanaryRun, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2252,18 +2256,20 @@ func awsRestjson1_deserializeDocumentCanaryRuns(v *[]*types.CanaryRun, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.CanaryRun + var cv []types.CanaryRun if *v == nil { - cv = []*types.CanaryRun{} + cv = []types.CanaryRun{} } else { cv = *v } for _, value := range shape { - var col *types.CanaryRun - if err := awsRestjson1_deserializeDocumentCanaryRun(&col, value); err != nil { + var col types.CanaryRun + destAddr := &col + if err := awsRestjson1_deserializeDocumentCanaryRun(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2308,7 +2314,7 @@ func awsRestjson1_deserializeDocumentCanaryRunStatus(v **types.CanaryRunStatus, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StateReason = &jtv + sv.StateReason = ptr.String(jtv) } case "StateReasonCode": @@ -2418,7 +2424,7 @@ func awsRestjson1_deserializeDocumentCanaryScheduleOutput(v **types.CanarySchedu if err != nil { return err } - sv.DurationInSeconds = &i64 + sv.DurationInSeconds = ptr.Int64(i64) } case "Expression": @@ -2427,7 +2433,7 @@ func awsRestjson1_deserializeDocumentCanaryScheduleOutput(v **types.CanarySchedu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Expression = &jtv + sv.Expression = ptr.String(jtv) } default: @@ -2476,7 +2482,7 @@ func awsRestjson1_deserializeDocumentCanaryStatus(v **types.CanaryStatus, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StateReason = &jtv + sv.StateReason = ptr.String(jtv) } case "StateReasonCode": @@ -2608,7 +2614,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2648,7 +2654,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2688,7 +2694,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2741,7 +2747,7 @@ func awsRestjson1_deserializeDocumentRuntimeVersion(v **types.RuntimeVersion, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ReleaseDate": @@ -2763,7 +2769,7 @@ func awsRestjson1_deserializeDocumentRuntimeVersion(v **types.RuntimeVersion, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VersionName = &jtv + sv.VersionName = ptr.String(jtv) } default: @@ -2775,7 +2781,7 @@ func awsRestjson1_deserializeDocumentRuntimeVersion(v **types.RuntimeVersion, va return nil } -func awsRestjson1_deserializeDocumentRuntimeVersionList(v *[]*types.RuntimeVersion, value interface{}) error { +func awsRestjson1_deserializeDocumentRuntimeVersionList(v *[]types.RuntimeVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2788,18 +2794,20 @@ func awsRestjson1_deserializeDocumentRuntimeVersionList(v *[]*types.RuntimeVersi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RuntimeVersion + var cv []types.RuntimeVersion if *v == nil { - cv = []*types.RuntimeVersion{} + cv = []types.RuntimeVersion{} } else { cv = *v } for _, value := range shape { - var col *types.RuntimeVersion - if err := awsRestjson1_deserializeDocumentRuntimeVersion(&col, value); err != nil { + var col types.RuntimeVersion + destAddr := &col + if err := awsRestjson1_deserializeDocumentRuntimeVersion(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2807,7 +2815,7 @@ func awsRestjson1_deserializeDocumentRuntimeVersionList(v *[]*types.RuntimeVersi return nil } -func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2820,21 +2828,21 @@ func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2843,7 +2851,7 @@ func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return nil } -func awsRestjson1_deserializeDocumentSubnetIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSubnetIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2856,21 +2864,21 @@ func awsRestjson1_deserializeDocumentSubnetIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2879,7 +2887,7 @@ func awsRestjson1_deserializeDocumentSubnetIds(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2892,21 +2900,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -2943,7 +2951,7 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2993,7 +3001,7 @@ func awsRestjson1_deserializeDocumentVpcConfigOutput(v **types.VpcConfigOutput, if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: diff --git a/service/synthetics/go.mod b/service/synthetics/go.mod index c0a67c20f0a..913ab3016b6 100644 --- a/service/synthetics/go.mod +++ b/service/synthetics/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/synthetics go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/synthetics/serializers.go b/service/synthetics/serializers.go index 31e6e9bfa7a..c1f086a120b 100644 --- a/service/synthetics/serializers.go +++ b/service/synthetics/serializers.go @@ -198,13 +198,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteCanaryInput(v *DeleteCanaryInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -498,13 +495,10 @@ func awsRestjson1_serializeOpHttpBindingsGetCanaryInput(v *GetCanaryInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -575,13 +569,10 @@ func awsRestjson1_serializeOpHttpBindingsGetCanaryRunsInput(v *GetCanaryRunsInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -658,13 +649,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -724,13 +712,10 @@ func awsRestjson1_serializeOpHttpBindingsStartCanaryInput(v *StartCanaryInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -790,13 +775,10 @@ func awsRestjson1_serializeOpHttpBindingsStopCanaryInput(v *StopCanaryInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -867,13 +849,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -947,13 +926,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -961,10 +937,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -1033,13 +1006,10 @@ func awsRestjson1_serializeOpHttpBindingsUpdateCanaryInput(v *UpdateCanaryInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Name == nil { + if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { - if len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} - } if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } @@ -1174,47 +1144,35 @@ func awsRestjson1_serializeDocumentCanaryScheduleInput(v *types.CanaryScheduleIn return nil } -func awsRestjson1_serializeDocumentSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentSubnetIds(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSubnetIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/synthetics/types/types.go b/service/synthetics/types/types.go index 8ffc08fae06..32873287007 100644 --- a/service/synthetics/types/types.go +++ b/service/synthetics/types/types.go @@ -56,7 +56,7 @@ type Canary struct { SuccessRetentionPeriodInDays *int32 // The list of key-value pairs that are associated with the canary. - Tags map[string]*string + Tags map[string]string // A structure that contains information about when the canary was created, // modified, and most recently run. @@ -300,10 +300,10 @@ type RuntimeVersion struct { type VpcConfigInput struct { // The IDs of the security groups for this canary. - SecurityGroupIds []*string + SecurityGroupIds []string // The IDs of the subnets where this canary is to run. - SubnetIds []*string + SubnetIds []string } // If this canary is to test an endpoint in a VPC, this structure contains @@ -313,10 +313,10 @@ type VpcConfigInput struct { type VpcConfigOutput struct { // The IDs of the security groups for this canary. - SecurityGroupIds []*string + SecurityGroupIds []string // The IDs of the subnets where this canary is to run. - SubnetIds []*string + SubnetIds []string // The IDs of the VPC where this canary is to run. VpcId *string diff --git a/service/textract/api_op_AnalyzeDocument.go b/service/textract/api_op_AnalyzeDocument.go index de00b9e822d..9dd8e508c16 100644 --- a/service/textract/api_op_AnalyzeDocument.go +++ b/service/textract/api_op_AnalyzeDocument.go @@ -85,7 +85,7 @@ type AnalyzeDocumentOutput struct { AnalyzeDocumentModelVersion *string // The items that are detected and analyzed by AnalyzeDocument. - Blocks []*types.Block + Blocks []types.Block // Metadata about the analyzed document. An example is the number of pages. DocumentMetadata *types.DocumentMetadata diff --git a/service/textract/api_op_DetectDocumentText.go b/service/textract/api_op_DetectDocumentText.go index bff77a2f7ca..10938c5aa50 100644 --- a/service/textract/api_op_DetectDocumentText.go +++ b/service/textract/api_op_DetectDocumentText.go @@ -52,7 +52,7 @@ type DetectDocumentTextInput struct { type DetectDocumentTextOutput struct { // An array of Block objects that contain the text that's detected in the document. - Blocks []*types.Block + Blocks []types.Block // DetectDocumentTextModelVersion *string diff --git a/service/textract/api_op_GetDocumentAnalysis.go b/service/textract/api_op_GetDocumentAnalysis.go index 98297c83cb7..e734f5a61e3 100644 --- a/service/textract/api_op_GetDocumentAnalysis.go +++ b/service/textract/api_op_GetDocumentAnalysis.go @@ -89,7 +89,7 @@ type GetDocumentAnalysisOutput struct { AnalyzeDocumentModelVersion *string // The results of the text-analysis operation. - Blocks []*types.Block + Blocks []types.Block // Information about a document that Amazon Textract processed. DocumentMetadata is // returned in every page of paginated responses from an Amazon Textract video @@ -109,7 +109,7 @@ type GetDocumentAnalysisOutput struct { StatusMessage *string // A list of warnings that occurred during the document-analysis operation. - Warnings []*types.Warning + Warnings []types.Warning // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/textract/api_op_GetDocumentTextDetection.go b/service/textract/api_op_GetDocumentTextDetection.go index 4a409a9f4d4..4797d8bb5f3 100644 --- a/service/textract/api_op_GetDocumentTextDetection.go +++ b/service/textract/api_op_GetDocumentTextDetection.go @@ -70,7 +70,7 @@ type GetDocumentTextDetectionInput struct { type GetDocumentTextDetectionOutput struct { // The results of the text-detection operation. - Blocks []*types.Block + Blocks []types.Block // DetectDocumentTextModelVersion *string @@ -94,7 +94,7 @@ type GetDocumentTextDetectionOutput struct { // A list of warnings that occurred during the text-detection operation for the // document. - Warnings []*types.Warning + Warnings []types.Warning // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/textract/deserializers.go b/service/textract/deserializers.go index 4772d5e303c..e520bed48b7 100644 --- a/service/textract/deserializers.go +++ b/service/textract/deserializers.go @@ -1314,7 +1314,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -1323,7 +1323,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1363,7 +1363,7 @@ func awsAwsjson11_deserializeDocumentBadDocumentException(v **types.BadDocumentE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -1372,7 +1372,7 @@ func awsAwsjson11_deserializeDocumentBadDocumentException(v **types.BadDocumentE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1470,7 +1470,7 @@ func awsAwsjson11_deserializeDocumentBlock(v **types.Block, value interface{}) e if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Page": @@ -1532,7 +1532,7 @@ func awsAwsjson11_deserializeDocumentBlock(v **types.Block, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } default: @@ -1544,7 +1544,7 @@ func awsAwsjson11_deserializeDocumentBlock(v **types.Block, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentBlockList(v *[]*types.Block, value interface{}) error { +func awsAwsjson11_deserializeDocumentBlockList(v *[]types.Block, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1557,18 +1557,20 @@ func awsAwsjson11_deserializeDocumentBlockList(v *[]*types.Block, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Block + var cv []types.Block if *v == nil { - cv = []*types.Block{} + cv = []types.Block{} } else { cv = *v } for _, value := range shape { - var col *types.Block - if err := awsAwsjson11_deserializeDocumentBlock(&col, value); err != nil { + var col types.Block + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBlock(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1608,7 +1610,7 @@ func awsAwsjson11_deserializeDocumentBoundingBox(v **types.BoundingBox, value in if err != nil { return err } - sv.Height = ptr.Float32(float32(f64)) + sv.Height = float32(f64) } case "Left": @@ -1621,7 +1623,7 @@ func awsAwsjson11_deserializeDocumentBoundingBox(v **types.BoundingBox, value in if err != nil { return err } - sv.Left = ptr.Float32(float32(f64)) + sv.Left = float32(f64) } case "Top": @@ -1634,7 +1636,7 @@ func awsAwsjson11_deserializeDocumentBoundingBox(v **types.BoundingBox, value in if err != nil { return err } - sv.Top = ptr.Float32(float32(f64)) + sv.Top = float32(f64) } case "Width": @@ -1647,7 +1649,7 @@ func awsAwsjson11_deserializeDocumentBoundingBox(v **types.BoundingBox, value in if err != nil { return err } - sv.Width = ptr.Float32(float32(f64)) + sv.Width = float32(f64) } default: @@ -1731,7 +1733,7 @@ func awsAwsjson11_deserializeDocumentDocumentTooLargeException(v **types.Documen if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -1740,7 +1742,7 @@ func awsAwsjson11_deserializeDocumentDocumentTooLargeException(v **types.Documen if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1857,7 +1859,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopActivationOutput(v **types.HumanLo if !ok { return fmt.Errorf("expected SynthesizedJsonHumanLoopActivationConditionsEvaluationResults to be of type string, got %T instead", value) } - sv.HumanLoopActivationConditionsEvaluationResults = &jtv + sv.HumanLoopActivationConditionsEvaluationResults = ptr.String(jtv) } case "HumanLoopActivationReasons": @@ -1871,7 +1873,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopActivationOutput(v **types.HumanLo if !ok { return fmt.Errorf("expected HumanLoopArn to be of type string, got %T instead", value) } - sv.HumanLoopArn = &jtv + sv.HumanLoopArn = ptr.String(jtv) } default: @@ -1883,7 +1885,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopActivationOutput(v **types.HumanLo return nil } -func awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1896,21 +1898,21 @@ func awsAwsjson11_deserializeDocumentHumanLoopActivationReasons(v *[]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HumanLoopActivationReason to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -1947,7 +1949,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -1956,7 +1958,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "QuotaCode": @@ -1965,7 +1967,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.QuotaCode = &jtv + sv.QuotaCode = ptr.String(jtv) } case "ResourceType": @@ -1974,7 +1976,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } case "ServiceCode": @@ -1983,7 +1985,7 @@ func awsAwsjson11_deserializeDocumentHumanLoopQuotaExceededException(v **types.H if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ServiceCode = &jtv + sv.ServiceCode = ptr.String(jtv) } default: @@ -2023,7 +2025,7 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -2032,7 +2034,7 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2044,7 +2046,7 @@ func awsAwsjson11_deserializeDocumentIdempotentParameterMismatchException(v **ty return nil } -func awsAwsjson11_deserializeDocumentIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2057,21 +2059,21 @@ func awsAwsjson11_deserializeDocumentIdList(v *[]*string, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2108,7 +2110,7 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -2117,7 +2119,7 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2157,7 +2159,7 @@ func awsAwsjson11_deserializeDocumentInvalidJobIdException(v **types.InvalidJobI if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -2166,7 +2168,7 @@ func awsAwsjson11_deserializeDocumentInvalidJobIdException(v **types.InvalidJobI if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2206,7 +2208,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -2215,7 +2217,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2255,7 +2257,7 @@ func awsAwsjson11_deserializeDocumentInvalidS3ObjectException(v **types.InvalidS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -2264,7 +2266,7 @@ func awsAwsjson11_deserializeDocumentInvalidS3ObjectException(v **types.InvalidS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2304,7 +2306,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -2313,7 +2315,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2325,7 +2327,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsAwsjson11_deserializeDocumentPages(v *[]*int32, value interface{}) error { +func awsAwsjson11_deserializeDocumentPages(v *[]int32, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2338,15 +2340,15 @@ func awsAwsjson11_deserializeDocumentPages(v *[]*int32, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*int32 + var cv []int32 if *v == nil { - cv = []*int32{} + cv = []int32{} } else { cv = *v } for _, value := range shape { - var col *int32 + var col int32 if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -2356,7 +2358,7 @@ func awsAwsjson11_deserializeDocumentPages(v *[]*int32, value interface{}) error if err != nil { return err } - col = ptr.Int32(int32(i64)) + col = int32(i64) } cv = append(cv, col) @@ -2397,7 +2399,7 @@ func awsAwsjson11_deserializeDocumentPoint(v **types.Point, value interface{}) e if err != nil { return err } - sv.X = ptr.Float32(float32(f64)) + sv.X = float32(f64) } case "Y": @@ -2410,7 +2412,7 @@ func awsAwsjson11_deserializeDocumentPoint(v **types.Point, value interface{}) e if err != nil { return err } - sv.Y = ptr.Float32(float32(f64)) + sv.Y = float32(f64) } default: @@ -2422,7 +2424,7 @@ func awsAwsjson11_deserializeDocumentPoint(v **types.Point, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentPolygon(v *[]*types.Point, value interface{}) error { +func awsAwsjson11_deserializeDocumentPolygon(v *[]types.Point, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2435,18 +2437,20 @@ func awsAwsjson11_deserializeDocumentPolygon(v *[]*types.Point, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Point + var cv []types.Point if *v == nil { - cv = []*types.Point{} + cv = []types.Point{} } else { cv = *v } for _, value := range shape { - var col *types.Point - if err := awsAwsjson11_deserializeDocumentPoint(&col, value); err != nil { + var col types.Point + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2482,7 +2486,7 @@ func awsAwsjson11_deserializeDocumentProvisionedThroughputExceededException(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -2491,7 +2495,7 @@ func awsAwsjson11_deserializeDocumentProvisionedThroughputExceededException(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2548,7 +2552,7 @@ func awsAwsjson11_deserializeDocumentRelationship(v **types.Relationship, value return nil } -func awsAwsjson11_deserializeDocumentRelationshipList(v *[]*types.Relationship, value interface{}) error { +func awsAwsjson11_deserializeDocumentRelationshipList(v *[]types.Relationship, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2561,18 +2565,20 @@ func awsAwsjson11_deserializeDocumentRelationshipList(v *[]*types.Relationship, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Relationship + var cv []types.Relationship if *v == nil { - cv = []*types.Relationship{} + cv = []types.Relationship{} } else { cv = *v } for _, value := range shape { - var col *types.Relationship - if err := awsAwsjson11_deserializeDocumentRelationship(&col, value); err != nil { + var col types.Relationship + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRelationship(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2608,7 +2614,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -2617,7 +2623,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2657,7 +2663,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedDocumentException(v **types.Unsu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -2666,7 +2672,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedDocumentException(v **types.Unsu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2706,7 +2712,7 @@ func awsAwsjson11_deserializeDocumentWarning(v **types.Warning, value interface{ if !ok { return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "Pages": @@ -2723,7 +2729,7 @@ func awsAwsjson11_deserializeDocumentWarning(v **types.Warning, value interface{ return nil } -func awsAwsjson11_deserializeDocumentWarnings(v *[]*types.Warning, value interface{}) error { +func awsAwsjson11_deserializeDocumentWarnings(v *[]types.Warning, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2736,18 +2742,20 @@ func awsAwsjson11_deserializeDocumentWarnings(v *[]*types.Warning, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Warning + var cv []types.Warning if *v == nil { - cv = []*types.Warning{} + cv = []types.Warning{} } else { cv = *v } for _, value := range shape { - var col *types.Warning - if err := awsAwsjson11_deserializeDocumentWarning(&col, value); err != nil { + var col types.Warning + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWarning(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2783,7 +2791,7 @@ func awsAwsjson11_deserializeOpDocumentAnalyzeDocumentOutput(v **AnalyzeDocument if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AnalyzeDocumentModelVersion = &jtv + sv.AnalyzeDocumentModelVersion = ptr.String(jtv) } case "Blocks": @@ -2843,7 +2851,7 @@ func awsAwsjson11_deserializeOpDocumentDetectDocumentTextOutput(v **DetectDocume if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DetectDocumentTextModelVersion = &jtv + sv.DetectDocumentTextModelVersion = ptr.String(jtv) } case "DocumentMetadata": @@ -2888,7 +2896,7 @@ func awsAwsjson11_deserializeOpDocumentGetDocumentAnalysisOutput(v **GetDocument if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AnalyzeDocumentModelVersion = &jtv + sv.AnalyzeDocumentModelVersion = ptr.String(jtv) } case "Blocks": @@ -2916,7 +2924,7 @@ func awsAwsjson11_deserializeOpDocumentGetDocumentAnalysisOutput(v **GetDocument if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StatusMessage": @@ -2925,7 +2933,7 @@ func awsAwsjson11_deserializeOpDocumentGetDocumentAnalysisOutput(v **GetDocument if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "Warnings": @@ -2975,7 +2983,7 @@ func awsAwsjson11_deserializeOpDocumentGetDocumentTextDetectionOutput(v **GetDoc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DetectDocumentTextModelVersion = &jtv + sv.DetectDocumentTextModelVersion = ptr.String(jtv) } case "DocumentMetadata": @@ -2998,7 +3006,7 @@ func awsAwsjson11_deserializeOpDocumentGetDocumentTextDetectionOutput(v **GetDoc if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "StatusMessage": @@ -3007,7 +3015,7 @@ func awsAwsjson11_deserializeOpDocumentGetDocumentTextDetectionOutput(v **GetDoc if !ok { return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } case "Warnings": @@ -3052,7 +3060,7 @@ func awsAwsjson11_deserializeOpDocumentStartDocumentAnalysisOutput(v **StartDocu if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: @@ -3092,7 +3100,7 @@ func awsAwsjson11_deserializeOpDocumentStartDocumentTextDetectionOutput(v **Star if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: diff --git a/service/textract/go.mod b/service/textract/go.mod index 913855ef169..527211507b9 100644 --- a/service/textract/go.mod +++ b/service/textract/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/textract go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/textract/types/types.go b/service/textract/types/types.go index 6cbdef90ff8..7b767b0c29a 100644 --- a/service/textract/types/types.go +++ b/service/textract/types/types.go @@ -111,7 +111,7 @@ type Block struct { // // * 1 - The block has child // blocks. - Relationships []*Relationship + Relationships []Relationship // The row in which a table cell is located. The first row position is 1. RowIndex // isn't returned by DetectDocumentText and GetDocumentTextDetection. @@ -144,18 +144,18 @@ type Block struct { type BoundingBox struct { // The height of the bounding box as a ratio of the overall document page height. - Height *float32 + Height float32 // The left coordinate of the bounding box as a ratio of overall document page // width. - Left *float32 + Left float32 // The top coordinate of the bounding box as a ratio of overall document page // height. - Top *float32 + Top float32 // The width of the bounding box as a ratio of the overall document page width. - Width *float32 + Width float32 } // The input document, either as bytes or as an S3 object. You pass image bytes to @@ -211,7 +211,7 @@ type Geometry struct { BoundingBox *BoundingBox // Within the bounding box, a fine-grained polygon around the recognized item. - Polygon []*Point + Polygon []Point } // Shows the results of the human in the loop evaluation. If there is no @@ -224,7 +224,7 @@ type HumanLoopActivationOutput struct { HumanLoopActivationConditionsEvaluationResults *string // Shows if and why human review was needed. - HumanLoopActivationReasons []*string + HumanLoopActivationReasons []string // The Amazon Resource Name (ARN) of the HumanLoop created. HumanLoopArn *string @@ -300,10 +300,10 @@ type OutputConfig struct { type Point struct { // The value of the X coordinate for a point on a Polygon. - X *float32 + X float32 // The value of the Y coordinate for a point on a Polygon. - Y *float32 + Y float32 } // Information about how blocks are related to each other. A Block object contains @@ -314,7 +314,7 @@ type Relationship struct { // An array of IDs for related blocks. You can get the type of the relationship // from the Type element. - Ids []*string + Ids []string // The type of relationship that the blocks in the IDs array have with the current // block. The relationship can be VALUE or CHILD. A relationship of type VALUE is a @@ -352,5 +352,5 @@ type Warning struct { ErrorCode *string // A list of the pages that the warning applies to. - Pages []*int32 + Pages []int32 } diff --git a/service/timestreamquery/api_op_DescribeEndpoints.go b/service/timestreamquery/api_op_DescribeEndpoints.go index 18d9192a96b..9f894a936a2 100644 --- a/service/timestreamquery/api_op_DescribeEndpoints.go +++ b/service/timestreamquery/api_op_DescribeEndpoints.go @@ -49,7 +49,7 @@ type DescribeEndpointsOutput struct { // An Endpoints object is returned when a DescribeEndpoints request is made. // // This member is required. - Endpoints []*types.Endpoint + Endpoints []types.Endpoint // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/timestreamquery/api_op_Query.go b/service/timestreamquery/api_op_Query.go index c4c51ab8bbb..93a03a0cd14 100644 --- a/service/timestreamquery/api_op_Query.go +++ b/service/timestreamquery/api_op_Query.go @@ -70,7 +70,7 @@ type QueryOutput struct { // The column data types of the returned result set. // // This member is required. - ColumnInfo []*types.ColumnInfo + ColumnInfo []types.ColumnInfo // A unique ID for the given query. // @@ -80,7 +80,7 @@ type QueryOutput struct { // The result set rows returned by the query. // // This member is required. - Rows []*types.Row + Rows []types.Row // A pagination token that can be used again on a Query call to get the next set of // results. diff --git a/service/timestreamquery/deserializers.go b/service/timestreamquery/deserializers.go index 21eb22c306b..eca2493e7cd 100644 --- a/service/timestreamquery/deserializers.go +++ b/service/timestreamquery/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -659,7 +660,7 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ServiceErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -699,7 +700,7 @@ func awsAwsjson10_deserializeDocumentColumnInfo(v **types.ColumnInfo, value inte if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Type": @@ -716,7 +717,7 @@ func awsAwsjson10_deserializeDocumentColumnInfo(v **types.ColumnInfo, value inte return nil } -func awsAwsjson10_deserializeDocumentColumnInfoList(v *[]*types.ColumnInfo, value interface{}) error { +func awsAwsjson10_deserializeDocumentColumnInfoList(v *[]types.ColumnInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -729,18 +730,20 @@ func awsAwsjson10_deserializeDocumentColumnInfoList(v *[]*types.ColumnInfo, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ColumnInfo + var cv []types.ColumnInfo if *v == nil { - cv = []*types.ColumnInfo{} + cv = []types.ColumnInfo{} } else { cv = *v } for _, value := range shape { - var col *types.ColumnInfo - if err := awsAwsjson10_deserializeDocumentColumnInfo(&col, value); err != nil { + var col types.ColumnInfo + destAddr := &col + if err := awsAwsjson10_deserializeDocumentColumnInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -776,7 +779,7 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -821,7 +824,7 @@ func awsAwsjson10_deserializeDocumentDatum(v **types.Datum, value interface{}) e if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.NullValue = &jtv + sv.NullValue = ptr.Bool(jtv) } case "RowValue": @@ -835,7 +838,7 @@ func awsAwsjson10_deserializeDocumentDatum(v **types.Datum, value interface{}) e if !ok { return fmt.Errorf("expected ScalarValue to be of type string, got %T instead", value) } - sv.ScalarValue = &jtv + sv.ScalarValue = ptr.String(jtv) } case "TimeSeriesValue": @@ -852,7 +855,7 @@ func awsAwsjson10_deserializeDocumentDatum(v **types.Datum, value interface{}) e return nil } -func awsAwsjson10_deserializeDocumentDatumList(v *[]*types.Datum, value interface{}) error { +func awsAwsjson10_deserializeDocumentDatumList(v *[]types.Datum, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -865,18 +868,20 @@ func awsAwsjson10_deserializeDocumentDatumList(v *[]*types.Datum, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Datum + var cv []types.Datum if *v == nil { - cv = []*types.Datum{} + cv = []types.Datum{} } else { cv = *v } for _, value := range shape { - var col *types.Datum - if err := awsAwsjson10_deserializeDocumentDatum(&col, value); err != nil { + var col types.Datum + destAddr := &col + if err := awsAwsjson10_deserializeDocumentDatum(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -912,7 +917,7 @@ func awsAwsjson10_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "CachePeriodInMinutes": @@ -925,7 +930,7 @@ func awsAwsjson10_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if err != nil { return err } - sv.CachePeriodInMinutes = &i64 + sv.CachePeriodInMinutes = i64 } default: @@ -937,7 +942,7 @@ func awsAwsjson10_deserializeDocumentEndpoint(v **types.Endpoint, value interfac return nil } -func awsAwsjson10_deserializeDocumentEndpoints(v *[]*types.Endpoint, value interface{}) error { +func awsAwsjson10_deserializeDocumentEndpoints(v *[]types.Endpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -950,18 +955,20 @@ func awsAwsjson10_deserializeDocumentEndpoints(v *[]*types.Endpoint, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Endpoint + var cv []types.Endpoint if *v == nil { - cv = []*types.Endpoint{} + cv = []types.Endpoint{} } else { cv = *v } for _, value := range shape { - var col *types.Endpoint - if err := awsAwsjson10_deserializeDocumentEndpoint(&col, value); err != nil { + var col types.Endpoint + destAddr := &col + if err := awsAwsjson10_deserializeDocumentEndpoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -997,7 +1004,7 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1037,7 +1044,7 @@ func awsAwsjson10_deserializeDocumentInvalidEndpointException(v **types.InvalidE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1077,7 +1084,7 @@ func awsAwsjson10_deserializeDocumentQueryExecutionException(v **types.QueryExec if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1125,7 +1132,7 @@ func awsAwsjson10_deserializeDocumentRow(v **types.Row, value interface{}) error return nil } -func awsAwsjson10_deserializeDocumentRowList(v *[]*types.Row, value interface{}) error { +func awsAwsjson10_deserializeDocumentRowList(v *[]types.Row, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1138,18 +1145,20 @@ func awsAwsjson10_deserializeDocumentRowList(v *[]*types.Row, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Row + var cv []types.Row if *v == nil { - cv = []*types.Row{} + cv = []types.Row{} } else { cv = *v } for _, value := range shape { - var col *types.Row - if err := awsAwsjson10_deserializeDocumentRow(&col, value); err != nil { + var col types.Row + destAddr := &col + if err := awsAwsjson10_deserializeDocumentRow(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1185,7 +1194,7 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1225,7 +1234,7 @@ func awsAwsjson10_deserializeDocumentTimeSeriesDataPoint(v **types.TimeSeriesDat if !ok { return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.Time = &jtv + sv.Time = ptr.String(jtv) } case "Value": @@ -1242,7 +1251,7 @@ func awsAwsjson10_deserializeDocumentTimeSeriesDataPoint(v **types.TimeSeriesDat return nil } -func awsAwsjson10_deserializeDocumentTimeSeriesDataPointList(v *[]*types.TimeSeriesDataPoint, value interface{}) error { +func awsAwsjson10_deserializeDocumentTimeSeriesDataPointList(v *[]types.TimeSeriesDataPoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1255,18 +1264,20 @@ func awsAwsjson10_deserializeDocumentTimeSeriesDataPointList(v *[]*types.TimeSer return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TimeSeriesDataPoint + var cv []types.TimeSeriesDataPoint if *v == nil { - cv = []*types.TimeSeriesDataPoint{} + cv = []types.TimeSeriesDataPoint{} } else { cv = *v } for _, value := range shape { - var col *types.TimeSeriesDataPoint - if err := awsAwsjson10_deserializeDocumentTimeSeriesDataPoint(&col, value); err != nil { + var col types.TimeSeriesDataPoint + destAddr := &col + if err := awsAwsjson10_deserializeDocumentTimeSeriesDataPoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1357,7 +1368,7 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1397,7 +1408,7 @@ func awsAwsjson10_deserializeOpDocumentCancelQueryOutput(v **CancelQueryOutput, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CancellationMessage = &jtv + sv.CancellationMessage = ptr.String(jtv) } default: @@ -1478,7 +1489,7 @@ func awsAwsjson10_deserializeOpDocumentQueryOutput(v **QueryOutput, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "QueryId": @@ -1487,7 +1498,7 @@ func awsAwsjson10_deserializeOpDocumentQueryOutput(v **QueryOutput, value interf if !ok { return fmt.Errorf("expected QueryId to be of type string, got %T instead", value) } - sv.QueryId = &jtv + sv.QueryId = ptr.String(jtv) } case "Rows": diff --git a/service/timestreamquery/go.mod b/service/timestreamquery/go.mod index 1245bd309fe..2587ff0bd19 100644 --- a/service/timestreamquery/go.mod +++ b/service/timestreamquery/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/timestreamquery go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/timestreamquery/types/types.go b/service/timestreamquery/types/types.go index 22b6d28adc2..d7f2d028702 100644 --- a/service/timestreamquery/types/types.go +++ b/service/timestreamquery/types/types.go @@ -22,7 +22,7 @@ type ColumnInfo struct { type Datum struct { // Indicates if the data point is an array. - ArrayValue []*Datum + ArrayValue []Datum // Indicates if the data point is null. NullValue *bool @@ -35,7 +35,7 @@ type Datum struct { ScalarValue *string // Indicates if the data point is of timeseries data type. - TimeSeriesValue []*TimeSeriesDataPoint + TimeSeriesValue []TimeSeriesDataPoint } // Represents an available endpoint against which to make API calls agaisnt, as @@ -50,7 +50,7 @@ type Endpoint struct { // The TTL for the endpoint, in minutes. // // This member is required. - CachePeriodInMinutes *int64 + CachePeriodInMinutes int64 } // Represents a single row in the query results. @@ -59,7 +59,7 @@ type Row struct { // List of data points in a single row of the result set. // // This member is required. - Data []*Datum + Data []Datum } // The timeseries datatype represents the values of a measure over time. A time @@ -89,7 +89,7 @@ type Type struct { ArrayColumnInfo *ColumnInfo // Indicates if the column is a row. - RowColumnInfo []*ColumnInfo + RowColumnInfo []ColumnInfo // Indicates if the column is of type string, integer, boolean, double, timestamp, // date, time. diff --git a/service/timestreamwrite/api_op_CreateDatabase.go b/service/timestreamwrite/api_op_CreateDatabase.go index b5058d2400c..ffd9ad20d07 100644 --- a/service/timestreamwrite/api_op_CreateDatabase.go +++ b/service/timestreamwrite/api_op_CreateDatabase.go @@ -48,7 +48,7 @@ type CreateDatabaseInput struct { KmsKeyId *string // A list of key-value pairs to label the table. - Tags []*types.Tag + Tags []types.Tag } type CreateDatabaseOutput struct { diff --git a/service/timestreamwrite/api_op_CreateTable.go b/service/timestreamwrite/api_op_CreateTable.go index 6df30c1f2ce..31cb0100a4e 100644 --- a/service/timestreamwrite/api_op_CreateTable.go +++ b/service/timestreamwrite/api_op_CreateTable.go @@ -51,7 +51,7 @@ type CreateTableInput struct { RetentionProperties *types.RetentionProperties // A list of key-value pairs to label the table. - Tags []*types.Tag + Tags []types.Tag } type CreateTableOutput struct { diff --git a/service/timestreamwrite/api_op_DescribeEndpoints.go b/service/timestreamwrite/api_op_DescribeEndpoints.go index c9f70a58999..dc3ab8c2e2a 100644 --- a/service/timestreamwrite/api_op_DescribeEndpoints.go +++ b/service/timestreamwrite/api_op_DescribeEndpoints.go @@ -49,7 +49,7 @@ type DescribeEndpointsOutput struct { // An Endpoints object is returned when a DescribeEndpoints request is made. // // This member is required. - Endpoints []*types.Endpoint + Endpoints []types.Endpoint // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/timestreamwrite/api_op_ListDatabases.go b/service/timestreamwrite/api_op_ListDatabases.go index 2bca255be2b..98ec4a6276c 100644 --- a/service/timestreamwrite/api_op_ListDatabases.go +++ b/service/timestreamwrite/api_op_ListDatabases.go @@ -46,7 +46,7 @@ type ListDatabasesInput struct { type ListDatabasesOutput struct { // A list of database names. - Databases []*types.Database + Databases []types.Database // The pagination token. This parameter is returned when the response is truncated. NextToken *string diff --git a/service/timestreamwrite/api_op_ListTables.go b/service/timestreamwrite/api_op_ListTables.go index 96368a11860..bec2b7d35a1 100644 --- a/service/timestreamwrite/api_op_ListTables.go +++ b/service/timestreamwrite/api_op_ListTables.go @@ -51,7 +51,7 @@ type ListTablesOutput struct { NextToken *string // A list of tables. - Tables []*types.Table + Tables []types.Table // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/timestreamwrite/api_op_ListTagsForResource.go b/service/timestreamwrite/api_op_ListTagsForResource.go index 8ac484ca12a..4ba8607d1d4 100644 --- a/service/timestreamwrite/api_op_ListTagsForResource.go +++ b/service/timestreamwrite/api_op_ListTagsForResource.go @@ -39,7 +39,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags currently associated with the Timestream resource. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/timestreamwrite/api_op_TagResource.go b/service/timestreamwrite/api_op_TagResource.go index 55ef61ac1a8..4a8c16059cd 100644 --- a/service/timestreamwrite/api_op_TagResource.go +++ b/service/timestreamwrite/api_op_TagResource.go @@ -40,7 +40,7 @@ type TagResourceInput struct { // The tags to be assigned to the Timestream resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/timestreamwrite/api_op_UntagResource.go b/service/timestreamwrite/api_op_UntagResource.go index 82fcb98471b..784ea76a817 100644 --- a/service/timestreamwrite/api_op_UntagResource.go +++ b/service/timestreamwrite/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // this list will be removed from the Timestream resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/timestreamwrite/api_op_WriteRecords.go b/service/timestreamwrite/api_op_WriteRecords.go index ae116f691c0..6b3006997d8 100644 --- a/service/timestreamwrite/api_op_WriteRecords.go +++ b/service/timestreamwrite/api_op_WriteRecords.go @@ -51,7 +51,7 @@ type WriteRecordsInput struct { // each time series data point. // // This member is required. - Records []*types.Record + Records []types.Record // The name of the Timesream table. // diff --git a/service/timestreamwrite/deserializers.go b/service/timestreamwrite/deserializers.go index 9f29f385ef9..64e90fe31a9 100644 --- a/service/timestreamwrite/deserializers.go +++ b/service/timestreamwrite/deserializers.go @@ -2234,7 +2234,7 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2274,7 +2274,7 @@ func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2314,7 +2314,7 @@ func awsAwsjson10_deserializeDocumentDatabase(v **types.Database, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTime": @@ -2336,7 +2336,7 @@ func awsAwsjson10_deserializeDocumentDatabase(v **types.Database, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "KmsKeyId": @@ -2345,7 +2345,7 @@ func awsAwsjson10_deserializeDocumentDatabase(v **types.Database, value interfac if !ok { return fmt.Errorf("expected StringValue2048 to be of type string, got %T instead", value) } - sv.KmsKeyId = &jtv + sv.KmsKeyId = ptr.String(jtv) } case "LastUpdatedTime": @@ -2371,7 +2371,7 @@ func awsAwsjson10_deserializeDocumentDatabase(v **types.Database, value interfac if err != nil { return err } - sv.TableCount = &i64 + sv.TableCount = i64 } default: @@ -2383,7 +2383,7 @@ func awsAwsjson10_deserializeDocumentDatabase(v **types.Database, value interfac return nil } -func awsAwsjson10_deserializeDocumentDatabaseList(v *[]*types.Database, value interface{}) error { +func awsAwsjson10_deserializeDocumentDatabaseList(v *[]types.Database, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2396,18 +2396,20 @@ func awsAwsjson10_deserializeDocumentDatabaseList(v *[]*types.Database, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Database + var cv []types.Database if *v == nil { - cv = []*types.Database{} + cv = []types.Database{} } else { cv = *v } for _, value := range shape { - var col *types.Database - if err := awsAwsjson10_deserializeDocumentDatabase(&col, value); err != nil { + var col types.Database + destAddr := &col + if err := awsAwsjson10_deserializeDocumentDatabase(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2443,7 +2445,7 @@ func awsAwsjson10_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Address = &jtv + sv.Address = ptr.String(jtv) } case "CachePeriodInMinutes": @@ -2456,7 +2458,7 @@ func awsAwsjson10_deserializeDocumentEndpoint(v **types.Endpoint, value interfac if err != nil { return err } - sv.CachePeriodInMinutes = &i64 + sv.CachePeriodInMinutes = i64 } default: @@ -2468,7 +2470,7 @@ func awsAwsjson10_deserializeDocumentEndpoint(v **types.Endpoint, value interfac return nil } -func awsAwsjson10_deserializeDocumentEndpoints(v *[]*types.Endpoint, value interface{}) error { +func awsAwsjson10_deserializeDocumentEndpoints(v *[]types.Endpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2481,18 +2483,20 @@ func awsAwsjson10_deserializeDocumentEndpoints(v *[]*types.Endpoint, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Endpoint + var cv []types.Endpoint if *v == nil { - cv = []*types.Endpoint{} + cv = []types.Endpoint{} } else { cv = *v } for _, value := range shape { - var col *types.Endpoint - if err := awsAwsjson10_deserializeDocumentEndpoint(&col, value); err != nil { + var col types.Endpoint + destAddr := &col + if err := awsAwsjson10_deserializeDocumentEndpoint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2528,7 +2532,7 @@ func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2568,7 +2572,7 @@ func awsAwsjson10_deserializeDocumentInvalidEndpointException(v **types.InvalidE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2608,7 +2612,7 @@ func awsAwsjson10_deserializeDocumentRejectedRecord(v **types.RejectedRecord, va if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } case "RecordIndex": @@ -2621,7 +2625,7 @@ func awsAwsjson10_deserializeDocumentRejectedRecord(v **types.RejectedRecord, va if err != nil { return err } - sv.RecordIndex = ptr.Int32(int32(i64)) + sv.RecordIndex = int32(i64) } default: @@ -2633,7 +2637,7 @@ func awsAwsjson10_deserializeDocumentRejectedRecord(v **types.RejectedRecord, va return nil } -func awsAwsjson10_deserializeDocumentRejectedRecords(v *[]*types.RejectedRecord, value interface{}) error { +func awsAwsjson10_deserializeDocumentRejectedRecords(v *[]types.RejectedRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2646,18 +2650,20 @@ func awsAwsjson10_deserializeDocumentRejectedRecords(v *[]*types.RejectedRecord, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RejectedRecord + var cv []types.RejectedRecord if *v == nil { - cv = []*types.RejectedRecord{} + cv = []types.RejectedRecord{} } else { cv = *v } for _, value := range shape { - var col *types.RejectedRecord - if err := awsAwsjson10_deserializeDocumentRejectedRecord(&col, value); err != nil { + var col types.RejectedRecord + destAddr := &col + if err := awsAwsjson10_deserializeDocumentRejectedRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2693,7 +2699,7 @@ func awsAwsjson10_deserializeDocumentRejectedRecordsException(v **types.Rejected if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RejectedRecords": @@ -2738,7 +2744,7 @@ func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2782,7 +2788,7 @@ func awsAwsjson10_deserializeDocumentRetentionProperties(v **types.RetentionProp if err != nil { return err } - sv.MagneticStoreRetentionPeriodInDays = &i64 + sv.MagneticStoreRetentionPeriodInDays = i64 } case "MemoryStoreRetentionPeriodInHours": @@ -2795,7 +2801,7 @@ func awsAwsjson10_deserializeDocumentRetentionProperties(v **types.RetentionProp if err != nil { return err } - sv.MemoryStoreRetentionPeriodInHours = &i64 + sv.MemoryStoreRetentionPeriodInHours = i64 } default: @@ -2835,7 +2841,7 @@ func awsAwsjson10_deserializeDocumentServiceQuotaExceededException(v **types.Ser if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2875,7 +2881,7 @@ func awsAwsjson10_deserializeDocumentTable(v **types.Table, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreationTime": @@ -2897,7 +2903,7 @@ func awsAwsjson10_deserializeDocumentTable(v **types.Table, value interface{}) e if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.DatabaseName = &jtv + sv.DatabaseName = ptr.String(jtv) } case "LastUpdatedTime": @@ -2924,7 +2930,7 @@ func awsAwsjson10_deserializeDocumentTable(v **types.Table, value interface{}) e if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.TableName = &jtv + sv.TableName = ptr.String(jtv) } case "TableStatus": @@ -2945,7 +2951,7 @@ func awsAwsjson10_deserializeDocumentTable(v **types.Table, value interface{}) e return nil } -func awsAwsjson10_deserializeDocumentTableList(v *[]*types.Table, value interface{}) error { +func awsAwsjson10_deserializeDocumentTableList(v *[]types.Table, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2958,18 +2964,20 @@ func awsAwsjson10_deserializeDocumentTableList(v *[]*types.Table, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Table + var cv []types.Table if *v == nil { - cv = []*types.Table{} + cv = []types.Table{} } else { cv = *v } for _, value := range shape { - var col *types.Table - if err := awsAwsjson10_deserializeDocumentTable(&col, value); err != nil { + var col types.Table + destAddr := &col + if err := awsAwsjson10_deserializeDocumentTable(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3005,7 +3013,7 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -3014,7 +3022,7 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -3026,7 +3034,7 @@ func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson10_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson10_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3039,18 +3047,20 @@ func awsAwsjson10_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson10_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson10_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3086,7 +3096,7 @@ func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3126,7 +3136,7 @@ func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationExc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3413,7 +3423,7 @@ func awsAwsjson10_deserializeOpDocumentListDatabasesOutput(v **ListDatabasesOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3453,7 +3463,7 @@ func awsAwsjson10_deserializeOpDocumentListTablesOutput(v **ListTablesOutput, va if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tables": diff --git a/service/timestreamwrite/go.mod b/service/timestreamwrite/go.mod index 1828921da91..9d393a13088 100644 --- a/service/timestreamwrite/go.mod +++ b/service/timestreamwrite/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/timestreamwrite go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/timestreamwrite/serializers.go b/service/timestreamwrite/serializers.go index eb712af788b..6c8cfb4316f 100644 --- a/service/timestreamwrite/serializers.go +++ b/service/timestreamwrite/serializers.go @@ -718,17 +718,13 @@ func awsAwsjson10_serializeDocumentDimension(v *types.Dimension, value smithyjso return nil } -func awsAwsjson10_serializeDocumentDimensions(v []*types.Dimension, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentDimensions(v []types.Dimension, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentDimension(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentDimension(&v[i], av); err != nil { return err } } @@ -774,17 +770,13 @@ func awsAwsjson10_serializeDocumentRecord(v *types.Record, value smithyjson.Valu return nil } -func awsAwsjson10_serializeDocumentRecords(v []*types.Record, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentRecords(v []types.Record, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentRecord(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentRecord(&v[i], av); err != nil { return err } } @@ -795,14 +787,14 @@ func awsAwsjson10_serializeDocumentRetentionProperties(v *types.RetentionPropert object := value.Object() defer object.Close() - if v.MagneticStoreRetentionPeriodInDays != nil { + if v.MagneticStoreRetentionPeriodInDays != 0 { ok := object.Key("MagneticStoreRetentionPeriodInDays") - ok.Long(*v.MagneticStoreRetentionPeriodInDays) + ok.Long(v.MagneticStoreRetentionPeriodInDays) } - if v.MemoryStoreRetentionPeriodInHours != nil { + if v.MemoryStoreRetentionPeriodInHours != 0 { ok := object.Key("MemoryStoreRetentionPeriodInHours") - ok.Long(*v.MemoryStoreRetentionPeriodInHours) + ok.Long(v.MemoryStoreRetentionPeriodInHours) } return nil @@ -825,32 +817,24 @@ func awsAwsjson10_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson10_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson10_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson10_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson10_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/timestreamwrite/types/errors.go b/service/timestreamwrite/types/errors.go index 95cd07524d6..18a447bb65c 100644 --- a/service/timestreamwrite/types/errors.go +++ b/service/timestreamwrite/types/errors.go @@ -96,7 +96,7 @@ func (e *InvalidEndpointException) ErrorFault() smithy.ErrorFault { return smith type RejectedRecordsException struct { Message *string - RejectedRecords []*RejectedRecord + RejectedRecords []RejectedRecord } func (e *RejectedRecordsException) Error() string { diff --git a/service/timestreamwrite/types/types.go b/service/timestreamwrite/types/types.go index a65fb3003b4..a4e18d29f4d 100644 --- a/service/timestreamwrite/types/types.go +++ b/service/timestreamwrite/types/types.go @@ -27,7 +27,7 @@ type Database struct { LastUpdatedTime *time.Time // The total number of tables found within a Timestream database. - TableCount *int64 + TableCount int64 } // Dimension represents the meta data attributes of the time series. For example, @@ -65,7 +65,7 @@ type Endpoint struct { // The TTL for the endpoint, in minutes. // // This member is required. - CachePeriodInMinutes *int64 + CachePeriodInMinutes int64 } // Record represents a time series data point being written into Timestream. Each @@ -80,7 +80,7 @@ type Endpoint struct { type Record struct { // Contains the list of dimensions for time series data points. - Dimensions []*Dimension + Dimensions []Dimension // Measure represents the data attribute of the time series. For example, the CPU // utilization of an EC2 instance or the RPM of a wind turbine are measures. @@ -126,7 +126,7 @@ type RejectedRecord struct { // The index of the record in the input request for WriteRecords. Indexes begin // with 0. - RecordIndex *int32 + RecordIndex int32 } // Retention properties contain the duration for which your time series data must @@ -136,12 +136,12 @@ type RetentionProperties struct { // The duration for which data must be stored in the magnetic store. // // This member is required. - MagneticStoreRetentionPeriodInDays *int64 + MagneticStoreRetentionPeriodInDays int64 // The duration for which data must be stored in the memory store. // // This member is required. - MemoryStoreRetentionPeriodInHours *int64 + MemoryStoreRetentionPeriodInHours int64 } // Table represents a database table in Timestream. Tables contain one or more diff --git a/service/timestreamwrite/validators.go b/service/timestreamwrite/validators.go index a6bab73ba02..3e138de2f16 100644 --- a/service/timestreamwrite/validators.go +++ b/service/timestreamwrite/validators.go @@ -316,13 +316,13 @@ func validateDimension(v *types.Dimension) error { } } -func validateDimensions(v []*types.Dimension) error { +func validateDimensions(v []types.Dimension) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Dimensions"} for i := range v { - if err := validateDimension(v[i]); err != nil { + if err := validateDimension(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -350,13 +350,13 @@ func validateRecord(v *types.Record) error { } } -func validateRecords(v []*types.Record) error { +func validateRecords(v []types.Record) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Records"} for i := range v { - if err := validateRecord(v[i]); err != nil { + if err := validateRecord(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -372,12 +372,6 @@ func validateRetentionProperties(v *types.RetentionProperties) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "RetentionProperties"} - if v.MagneticStoreRetentionPeriodInDays == nil { - invalidParams.Add(smithy.NewErrParamRequired("MagneticStoreRetentionPeriodInDays")) - } - if v.MemoryStoreRetentionPeriodInHours == nil { - invalidParams.Add(smithy.NewErrParamRequired("MemoryStoreRetentionPeriodInHours")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -403,13 +397,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/transcribe/api_op_CreateVocabulary.go b/service/transcribe/api_op_CreateVocabulary.go index eafcb88800a..6221d04bc11 100644 --- a/service/transcribe/api_op_CreateVocabulary.go +++ b/service/transcribe/api_op_CreateVocabulary.go @@ -44,7 +44,7 @@ type CreateVocabularyInput struct { VocabularyName *string // An array of strings that contains the vocabulary entries. - Phrases []*string + Phrases []string // The S3 location of the text file that contains the definition of the custom // vocabulary. The URI must be in the same region as the API endpoint that you are diff --git a/service/transcribe/api_op_CreateVocabularyFilter.go b/service/transcribe/api_op_CreateVocabularyFilter.go index 07839bed28b..34199d89160 100644 --- a/service/transcribe/api_op_CreateVocabularyFilter.go +++ b/service/transcribe/api_op_CreateVocabularyFilter.go @@ -61,7 +61,7 @@ type CreateVocabularyFilterInput struct { // (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets). // If you provide a list of words in the Words parameter, you can't use the // VocabularyFilterFileUri parameter. - Words []*string + Words []string } type CreateVocabularyFilterOutput struct { diff --git a/service/transcribe/api_op_ListLanguageModels.go b/service/transcribe/api_op_ListLanguageModels.go index c02b784589d..de8380355cb 100644 --- a/service/transcribe/api_op_ListLanguageModels.go +++ b/service/transcribe/api_op_ListLanguageModels.go @@ -53,7 +53,7 @@ type ListLanguageModelsInput struct { type ListLanguageModelsOutput struct { // A list of objects containing information about custom language models. - Models []*types.LanguageModel + Models []types.LanguageModel // The operation returns a page of jobs at a time. The maximum size of the list is // set by the MaxResults parameter. If there are more language models in the list diff --git a/service/transcribe/api_op_ListMedicalTranscriptionJobs.go b/service/transcribe/api_op_ListMedicalTranscriptionJobs.go index f71d47d457c..a28786a2bae 100644 --- a/service/transcribe/api_op_ListMedicalTranscriptionJobs.go +++ b/service/transcribe/api_op_ListMedicalTranscriptionJobs.go @@ -53,7 +53,7 @@ type ListMedicalTranscriptionJobsInput struct { type ListMedicalTranscriptionJobsOutput struct { // A list of objects containing summary information for a transcription job. - MedicalTranscriptionJobSummaries []*types.MedicalTranscriptionJobSummary + MedicalTranscriptionJobSummaries []types.MedicalTranscriptionJobSummary // The ListMedicalTranscriptionJobs operation returns a page of jobs at a time. The // maximum size of the page is set by the MaxResults parameter. If the number of diff --git a/service/transcribe/api_op_ListMedicalVocabularies.go b/service/transcribe/api_op_ListMedicalVocabularies.go index 86afed77dd3..b3ede438a12 100644 --- a/service/transcribe/api_op_ListMedicalVocabularies.go +++ b/service/transcribe/api_op_ListMedicalVocabularies.go @@ -64,7 +64,7 @@ type ListMedicalVocabulariesOutput struct { // A list of objects that describe the vocabularies that match your search // criteria. - Vocabularies []*types.VocabularyInfo + Vocabularies []types.VocabularyInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/transcribe/api_op_ListTranscriptionJobs.go b/service/transcribe/api_op_ListTranscriptionJobs.go index 0159d72c76a..74d5b086f0a 100644 --- a/service/transcribe/api_op_ListTranscriptionJobs.go +++ b/service/transcribe/api_op_ListTranscriptionJobs.go @@ -61,7 +61,7 @@ type ListTranscriptionJobsOutput struct { Status types.TranscriptionJobStatus // A list of objects containing summary information for a transcription job. - TranscriptionJobSummaries []*types.TranscriptionJobSummary + TranscriptionJobSummaries []types.TranscriptionJobSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/transcribe/api_op_ListVocabularies.go b/service/transcribe/api_op_ListVocabularies.go index 57fd6d5736c..1e5f12844e3 100644 --- a/service/transcribe/api_op_ListVocabularies.go +++ b/service/transcribe/api_op_ListVocabularies.go @@ -63,7 +63,7 @@ type ListVocabulariesOutput struct { // A list of objects that describe the vocabularies that match the search criteria // in the request. - Vocabularies []*types.VocabularyInfo + Vocabularies []types.VocabularyInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/transcribe/api_op_ListVocabularyFilters.go b/service/transcribe/api_op_ListVocabularyFilters.go index 74bc5abe568..b56fe3a4550 100644 --- a/service/transcribe/api_op_ListVocabularyFilters.go +++ b/service/transcribe/api_op_ListVocabularyFilters.go @@ -55,7 +55,7 @@ type ListVocabularyFiltersOutput struct { // filters. If there are more filters, call the ListVocabularyFilters operation // again with the NextToken parameter in the request set to the value of the // NextToken field in the response. - VocabularyFilters []*types.VocabularyFilterInfo + VocabularyFilters []types.VocabularyFilterInfo // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/transcribe/api_op_UpdateVocabulary.go b/service/transcribe/api_op_UpdateVocabulary.go index 135493390d5..c8e80d743a8 100644 --- a/service/transcribe/api_op_UpdateVocabulary.go +++ b/service/transcribe/api_op_UpdateVocabulary.go @@ -45,7 +45,7 @@ type UpdateVocabularyInput struct { VocabularyName *string // An array of strings containing the vocabulary entries. - Phrases []*string + Phrases []string // The S3 location of the text file that contains the definition of the custom // vocabulary. The URI must be in the same region as the API endpoint that you are diff --git a/service/transcribe/api_op_UpdateVocabularyFilter.go b/service/transcribe/api_op_UpdateVocabularyFilter.go index 9cc0ea7db21..8dd526aaa9f 100644 --- a/service/transcribe/api_op_UpdateVocabularyFilter.go +++ b/service/transcribe/api_op_UpdateVocabularyFilter.go @@ -53,7 +53,7 @@ type UpdateVocabularyFilterInput struct { // (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets). // If you provide a list of words in the Words parameter, you can't use the // VocabularyFilterFileUri parameter. - Words []*string + Words []string } type UpdateVocabularyFilterOutput struct { diff --git a/service/transcribe/deserializers.go b/service/transcribe/deserializers.go index 27ec1d2d623..3209f85fa62 100644 --- a/service/transcribe/deserializers.go +++ b/service/transcribe/deserializers.go @@ -3441,7 +3441,7 @@ func awsAwsjson11_deserializeDocumentBadRequestException(v **types.BadRequestExc if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3481,7 +3481,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3570,7 +3570,7 @@ func awsAwsjson11_deserializeDocumentInputDataConfig(v **types.InputDataConfig, if !ok { return fmt.Errorf("expected DataAccessRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } case "S3Uri": @@ -3579,7 +3579,7 @@ func awsAwsjson11_deserializeDocumentInputDataConfig(v **types.InputDataConfig, if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } case "TuningDataS3Uri": @@ -3588,7 +3588,7 @@ func awsAwsjson11_deserializeDocumentInputDataConfig(v **types.InputDataConfig, if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.TuningDataS3Uri = &jtv + sv.TuningDataS3Uri = ptr.String(jtv) } default: @@ -3628,7 +3628,7 @@ func awsAwsjson11_deserializeDocumentInternalFailureException(v **types.Internal if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3668,7 +3668,7 @@ func awsAwsjson11_deserializeDocumentJobExecutionSettings(v **types.JobExecution if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AllowDeferredExecution = &jtv + sv.AllowDeferredExecution = ptr.Bool(jtv) } case "DataAccessRoleArn": @@ -3677,7 +3677,7 @@ func awsAwsjson11_deserializeDocumentJobExecutionSettings(v **types.JobExecution if !ok { return fmt.Errorf("expected DataAccessRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } default: @@ -3739,7 +3739,7 @@ func awsAwsjson11_deserializeDocumentLanguageModel(v **types.LanguageModel, valu if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "InputDataConfig": @@ -3775,7 +3775,7 @@ func awsAwsjson11_deserializeDocumentLanguageModel(v **types.LanguageModel, valu if !ok { return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) } - sv.ModelName = &jtv + sv.ModelName = ptr.String(jtv) } case "ModelStatus": @@ -3793,7 +3793,7 @@ func awsAwsjson11_deserializeDocumentLanguageModel(v **types.LanguageModel, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.UpgradeAvailability = &jtv + sv.UpgradeAvailability = ptr.Bool(jtv) } default: @@ -3869,7 +3869,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3909,7 +3909,7 @@ func awsAwsjson11_deserializeDocumentMedia(v **types.Media, value interface{}) e if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.MediaFileUri = &jtv + sv.MediaFileUri = ptr.String(jtv) } default: @@ -3949,7 +3949,7 @@ func awsAwsjson11_deserializeDocumentMedicalTranscript(v **types.MedicalTranscri if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.TranscriptFileUri = &jtv + sv.TranscriptFileUri = ptr.String(jtv) } default: @@ -4015,7 +4015,7 @@ func awsAwsjson11_deserializeDocumentMedicalTranscriptionJob(v **types.MedicalTr if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LanguageCode": @@ -4060,7 +4060,7 @@ func awsAwsjson11_deserializeDocumentMedicalTranscriptionJob(v **types.MedicalTr if !ok { return fmt.Errorf("expected TranscriptionJobName to be of type string, got %T instead", value) } - sv.MedicalTranscriptionJobName = &jtv + sv.MedicalTranscriptionJobName = ptr.String(jtv) } case "Settings": @@ -4122,7 +4122,7 @@ func awsAwsjson11_deserializeDocumentMedicalTranscriptionJob(v **types.MedicalTr return nil } -func awsAwsjson11_deserializeDocumentMedicalTranscriptionJobSummaries(v *[]*types.MedicalTranscriptionJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentMedicalTranscriptionJobSummaries(v *[]types.MedicalTranscriptionJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4135,18 +4135,20 @@ func awsAwsjson11_deserializeDocumentMedicalTranscriptionJobSummaries(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MedicalTranscriptionJobSummary + var cv []types.MedicalTranscriptionJobSummary if *v == nil { - cv = []*types.MedicalTranscriptionJobSummary{} + cv = []types.MedicalTranscriptionJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.MedicalTranscriptionJobSummary - if err := awsAwsjson11_deserializeDocumentMedicalTranscriptionJobSummary(&col, value); err != nil { + var col types.MedicalTranscriptionJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMedicalTranscriptionJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4208,7 +4210,7 @@ func awsAwsjson11_deserializeDocumentMedicalTranscriptionJobSummary(v **types.Me if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LanguageCode": @@ -4226,7 +4228,7 @@ func awsAwsjson11_deserializeDocumentMedicalTranscriptionJobSummary(v **types.Me if !ok { return fmt.Errorf("expected TranscriptionJobName to be of type string, got %T instead", value) } - sv.MedicalTranscriptionJobName = &jtv + sv.MedicalTranscriptionJobName = ptr.String(jtv) } case "OutputLocationType": @@ -4315,7 +4317,7 @@ func awsAwsjson11_deserializeDocumentMedicalTranscriptionSetting(v **types.Medic if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ChannelIdentification = &jtv + sv.ChannelIdentification = ptr.Bool(jtv) } case "MaxAlternatives": @@ -4350,7 +4352,7 @@ func awsAwsjson11_deserializeDocumentMedicalTranscriptionSetting(v **types.Medic if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ShowAlternatives = &jtv + sv.ShowAlternatives = ptr.Bool(jtv) } case "ShowSpeakerLabels": @@ -4359,7 +4361,7 @@ func awsAwsjson11_deserializeDocumentMedicalTranscriptionSetting(v **types.Medic if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ShowSpeakerLabels = &jtv + sv.ShowSpeakerLabels = ptr.Bool(jtv) } case "VocabularyName": @@ -4368,7 +4370,7 @@ func awsAwsjson11_deserializeDocumentMedicalTranscriptionSetting(v **types.Medic if !ok { return fmt.Errorf("expected VocabularyName to be of type string, got %T instead", value) } - sv.VocabularyName = &jtv + sv.VocabularyName = ptr.String(jtv) } default: @@ -4380,7 +4382,7 @@ func awsAwsjson11_deserializeDocumentMedicalTranscriptionSetting(v **types.Medic return nil } -func awsAwsjson11_deserializeDocumentModels(v *[]*types.LanguageModel, value interface{}) error { +func awsAwsjson11_deserializeDocumentModels(v *[]types.LanguageModel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4393,18 +4395,20 @@ func awsAwsjson11_deserializeDocumentModels(v *[]*types.LanguageModel, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LanguageModel + var cv []types.LanguageModel if *v == nil { - cv = []*types.LanguageModel{} + cv = []types.LanguageModel{} } else { cv = *v } for _, value := range shape { - var col *types.LanguageModel - if err := awsAwsjson11_deserializeDocumentLanguageModel(&col, value); err != nil { + var col types.LanguageModel + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLanguageModel(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4440,7 +4444,7 @@ func awsAwsjson11_deserializeDocumentModelSettings(v **types.ModelSettings, valu if !ok { return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) } - sv.LanguageModelName = &jtv + sv.LanguageModelName = ptr.String(jtv) } default: @@ -4480,7 +4484,7 @@ func awsAwsjson11_deserializeDocumentNotFoundException(v **types.NotFoundExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4520,7 +4524,7 @@ func awsAwsjson11_deserializeDocumentSettings(v **types.Settings, value interfac if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ChannelIdentification = &jtv + sv.ChannelIdentification = ptr.Bool(jtv) } case "MaxAlternatives": @@ -4555,7 +4559,7 @@ func awsAwsjson11_deserializeDocumentSettings(v **types.Settings, value interfac if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ShowAlternatives = &jtv + sv.ShowAlternatives = ptr.Bool(jtv) } case "ShowSpeakerLabels": @@ -4564,7 +4568,7 @@ func awsAwsjson11_deserializeDocumentSettings(v **types.Settings, value interfac if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ShowSpeakerLabels = &jtv + sv.ShowSpeakerLabels = ptr.Bool(jtv) } case "VocabularyFilterMethod": @@ -4582,7 +4586,7 @@ func awsAwsjson11_deserializeDocumentSettings(v **types.Settings, value interfac if !ok { return fmt.Errorf("expected VocabularyFilterName to be of type string, got %T instead", value) } - sv.VocabularyFilterName = &jtv + sv.VocabularyFilterName = ptr.String(jtv) } case "VocabularyName": @@ -4591,7 +4595,7 @@ func awsAwsjson11_deserializeDocumentSettings(v **types.Settings, value interfac if !ok { return fmt.Errorf("expected VocabularyName to be of type string, got %T instead", value) } - sv.VocabularyName = &jtv + sv.VocabularyName = ptr.String(jtv) } default: @@ -4631,7 +4635,7 @@ func awsAwsjson11_deserializeDocumentTranscript(v **types.Transcript, value inte if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.RedactedTranscriptFileUri = &jtv + sv.RedactedTranscriptFileUri = ptr.String(jtv) } case "TranscriptFileUri": @@ -4640,7 +4644,7 @@ func awsAwsjson11_deserializeDocumentTranscript(v **types.Transcript, value inte if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.TranscriptFileUri = &jtv + sv.TranscriptFileUri = ptr.String(jtv) } default: @@ -4711,7 +4715,7 @@ func awsAwsjson11_deserializeDocumentTranscriptionJob(v **types.TranscriptionJob if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "IdentifiedLanguageScore": @@ -4733,7 +4737,7 @@ func awsAwsjson11_deserializeDocumentTranscriptionJob(v **types.TranscriptionJob if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IdentifyLanguage = &jtv + sv.IdentifyLanguage = ptr.Bool(jtv) } case "JobExecutionSettings": @@ -4816,7 +4820,7 @@ func awsAwsjson11_deserializeDocumentTranscriptionJob(v **types.TranscriptionJob if !ok { return fmt.Errorf("expected TranscriptionJobName to be of type string, got %T instead", value) } - sv.TranscriptionJobName = &jtv + sv.TranscriptionJobName = ptr.String(jtv) } case "TranscriptionJobStatus": @@ -4837,7 +4841,7 @@ func awsAwsjson11_deserializeDocumentTranscriptionJob(v **types.TranscriptionJob return nil } -func awsAwsjson11_deserializeDocumentTranscriptionJobSummaries(v *[]*types.TranscriptionJobSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentTranscriptionJobSummaries(v *[]types.TranscriptionJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4850,18 +4854,20 @@ func awsAwsjson11_deserializeDocumentTranscriptionJobSummaries(v *[]*types.Trans return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TranscriptionJobSummary + var cv []types.TranscriptionJobSummary if *v == nil { - cv = []*types.TranscriptionJobSummary{} + cv = []types.TranscriptionJobSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TranscriptionJobSummary - if err := awsAwsjson11_deserializeDocumentTranscriptionJobSummary(&col, value); err != nil { + var col types.TranscriptionJobSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTranscriptionJobSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4928,7 +4934,7 @@ func awsAwsjson11_deserializeDocumentTranscriptionJobSummary(v **types.Transcrip if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "IdentifiedLanguageScore": @@ -4950,7 +4956,7 @@ func awsAwsjson11_deserializeDocumentTranscriptionJobSummary(v **types.Transcrip if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IdentifyLanguage = &jtv + sv.IdentifyLanguage = ptr.Bool(jtv) } case "LanguageCode": @@ -4995,7 +5001,7 @@ func awsAwsjson11_deserializeDocumentTranscriptionJobSummary(v **types.Transcrip if !ok { return fmt.Errorf("expected TranscriptionJobName to be of type string, got %T instead", value) } - sv.TranscriptionJobName = &jtv + sv.TranscriptionJobName = ptr.String(jtv) } case "TranscriptionJobStatus": @@ -5016,7 +5022,7 @@ func awsAwsjson11_deserializeDocumentTranscriptionJobSummary(v **types.Transcrip return nil } -func awsAwsjson11_deserializeDocumentVocabularies(v *[]*types.VocabularyInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentVocabularies(v *[]types.VocabularyInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5029,18 +5035,20 @@ func awsAwsjson11_deserializeDocumentVocabularies(v *[]*types.VocabularyInfo, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VocabularyInfo + var cv []types.VocabularyInfo if *v == nil { - cv = []*types.VocabularyInfo{} + cv = []types.VocabularyInfo{} } else { cv = *v } for _, value := range shape { - var col *types.VocabularyInfo - if err := awsAwsjson11_deserializeDocumentVocabularyInfo(&col, value); err != nil { + var col types.VocabularyInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVocabularyInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5098,7 +5106,7 @@ func awsAwsjson11_deserializeDocumentVocabularyFilterInfo(v **types.VocabularyFi if !ok { return fmt.Errorf("expected VocabularyFilterName to be of type string, got %T instead", value) } - sv.VocabularyFilterName = &jtv + sv.VocabularyFilterName = ptr.String(jtv) } default: @@ -5110,7 +5118,7 @@ func awsAwsjson11_deserializeDocumentVocabularyFilterInfo(v **types.VocabularyFi return nil } -func awsAwsjson11_deserializeDocumentVocabularyFilters(v *[]*types.VocabularyFilterInfo, value interface{}) error { +func awsAwsjson11_deserializeDocumentVocabularyFilters(v *[]types.VocabularyFilterInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5123,18 +5131,20 @@ func awsAwsjson11_deserializeDocumentVocabularyFilters(v *[]*types.VocabularyFil return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.VocabularyFilterInfo + var cv []types.VocabularyFilterInfo if *v == nil { - cv = []*types.VocabularyFilterInfo{} + cv = []types.VocabularyFilterInfo{} } else { cv = *v } for _, value := range shape { - var col *types.VocabularyFilterInfo - if err := awsAwsjson11_deserializeDocumentVocabularyFilterInfo(&col, value); err != nil { + var col types.VocabularyFilterInfo + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVocabularyFilterInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5192,7 +5202,7 @@ func awsAwsjson11_deserializeDocumentVocabularyInfo(v **types.VocabularyInfo, va if !ok { return fmt.Errorf("expected VocabularyName to be of type string, got %T instead", value) } - sv.VocabularyName = &jtv + sv.VocabularyName = ptr.String(jtv) } case "VocabularyState": @@ -5264,7 +5274,7 @@ func awsAwsjson11_deserializeOpDocumentCreateLanguageModelOutput(v **CreateLangu if !ok { return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) } - sv.ModelName = &jtv + sv.ModelName = ptr.String(jtv) } case "ModelStatus": @@ -5313,7 +5323,7 @@ func awsAwsjson11_deserializeOpDocumentCreateMedicalVocabularyOutput(v **CreateM if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LanguageCode": @@ -5344,7 +5354,7 @@ func awsAwsjson11_deserializeOpDocumentCreateMedicalVocabularyOutput(v **CreateM if !ok { return fmt.Errorf("expected VocabularyName to be of type string, got %T instead", value) } - sv.VocabularyName = &jtv + sv.VocabularyName = ptr.String(jtv) } case "VocabularyState": @@ -5415,7 +5425,7 @@ func awsAwsjson11_deserializeOpDocumentCreateVocabularyFilterOutput(v **CreateVo if !ok { return fmt.Errorf("expected VocabularyFilterName to be of type string, got %T instead", value) } - sv.VocabularyFilterName = &jtv + sv.VocabularyFilterName = ptr.String(jtv) } default: @@ -5455,7 +5465,7 @@ func awsAwsjson11_deserializeOpDocumentCreateVocabularyOutput(v **CreateVocabula if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LanguageCode": @@ -5486,7 +5496,7 @@ func awsAwsjson11_deserializeOpDocumentCreateVocabularyOutput(v **CreateVocabula if !ok { return fmt.Errorf("expected VocabularyName to be of type string, got %T instead", value) } - sv.VocabularyName = &jtv + sv.VocabularyName = ptr.String(jtv) } case "VocabularyState": @@ -5793,7 +5803,7 @@ func awsAwsjson11_deserializeOpDocumentGetMedicalVocabularyOutput(v **GetMedical if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.DownloadUri = &jtv + sv.DownloadUri = ptr.String(jtv) } case "FailureReason": @@ -5802,7 +5812,7 @@ func awsAwsjson11_deserializeOpDocumentGetMedicalVocabularyOutput(v **GetMedical if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LanguageCode": @@ -5833,7 +5843,7 @@ func awsAwsjson11_deserializeOpDocumentGetMedicalVocabularyOutput(v **GetMedical if !ok { return fmt.Errorf("expected VocabularyName to be of type string, got %T instead", value) } - sv.VocabularyName = &jtv + sv.VocabularyName = ptr.String(jtv) } case "VocabularyState": @@ -5918,7 +5928,7 @@ func awsAwsjson11_deserializeOpDocumentGetVocabularyFilterOutput(v **GetVocabula if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.DownloadUri = &jtv + sv.DownloadUri = ptr.String(jtv) } case "LanguageCode": @@ -5949,7 +5959,7 @@ func awsAwsjson11_deserializeOpDocumentGetVocabularyFilterOutput(v **GetVocabula if !ok { return fmt.Errorf("expected VocabularyFilterName to be of type string, got %T instead", value) } - sv.VocabularyFilterName = &jtv + sv.VocabularyFilterName = ptr.String(jtv) } default: @@ -5989,7 +5999,7 @@ func awsAwsjson11_deserializeOpDocumentGetVocabularyOutput(v **GetVocabularyOutp if !ok { return fmt.Errorf("expected Uri to be of type string, got %T instead", value) } - sv.DownloadUri = &jtv + sv.DownloadUri = ptr.String(jtv) } case "FailureReason": @@ -5998,7 +6008,7 @@ func awsAwsjson11_deserializeOpDocumentGetVocabularyOutput(v **GetVocabularyOutp if !ok { return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.FailureReason = &jtv + sv.FailureReason = ptr.String(jtv) } case "LanguageCode": @@ -6029,7 +6039,7 @@ func awsAwsjson11_deserializeOpDocumentGetVocabularyOutput(v **GetVocabularyOutp if !ok { return fmt.Errorf("expected VocabularyName to be of type string, got %T instead", value) } - sv.VocabularyName = &jtv + sv.VocabularyName = ptr.String(jtv) } case "VocabularyState": @@ -6083,7 +6093,7 @@ func awsAwsjson11_deserializeOpDocumentListLanguageModelsOutput(v **ListLanguage if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -6128,7 +6138,7 @@ func awsAwsjson11_deserializeOpDocumentListMedicalTranscriptionJobsOutput(v **Li if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Status": @@ -6177,7 +6187,7 @@ func awsAwsjson11_deserializeOpDocumentListMedicalVocabulariesOutput(v **ListMed if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Status": @@ -6231,7 +6241,7 @@ func awsAwsjson11_deserializeOpDocumentListTranscriptionJobsOutput(v **ListTrans if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Status": @@ -6285,7 +6295,7 @@ func awsAwsjson11_deserializeOpDocumentListVocabulariesOutput(v **ListVocabulari if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Status": @@ -6339,7 +6349,7 @@ func awsAwsjson11_deserializeOpDocumentListVocabularyFiltersOutput(v **ListVocab if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "VocabularyFilters": @@ -6478,7 +6488,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMedicalVocabularyOutput(v **UpdateM if !ok { return fmt.Errorf("expected VocabularyName to be of type string, got %T instead", value) } - sv.VocabularyName = &jtv + sv.VocabularyName = ptr.String(jtv) } case "VocabularyState": @@ -6549,7 +6559,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVocabularyFilterOutput(v **UpdateVo if !ok { return fmt.Errorf("expected VocabularyFilterName to be of type string, got %T instead", value) } - sv.VocabularyFilterName = &jtv + sv.VocabularyFilterName = ptr.String(jtv) } default: @@ -6611,7 +6621,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateVocabularyOutput(v **UpdateVocabula if !ok { return fmt.Errorf("expected VocabularyName to be of type string, got %T instead", value) } - sv.VocabularyName = &jtv + sv.VocabularyName = ptr.String(jtv) } case "VocabularyState": diff --git a/service/transcribe/go.mod b/service/transcribe/go.mod index c70a30e9b20..13da4590c1a 100644 --- a/service/transcribe/go.mod +++ b/service/transcribe/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/transcribe go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/transcribe/serializers.go b/service/transcribe/serializers.go index 3acfa7e1e58..223abb60333 100644 --- a/service/transcribe/serializers.go +++ b/service/transcribe/serializers.go @@ -1383,17 +1383,13 @@ func awsAwsjson11_serializeDocumentModelSettings(v *types.ModelSettings, value s return nil } -func awsAwsjson11_serializeDocumentPhrases(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentPhrases(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1445,17 +1441,13 @@ func awsAwsjson11_serializeDocumentSettings(v *types.Settings, value smithyjson. return nil } -func awsAwsjson11_serializeDocumentWords(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentWords(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/transfer/api_op_CreateServer.go b/service/transfer/api_op_CreateServer.go index ae4d5c68d04..cf48e1f5126 100644 --- a/service/transfer/api_op_CreateServer.go +++ b/service/transfer/api_op_CreateServer.go @@ -133,7 +133,7 @@ type CreateServerInput struct { SecurityPolicyName *string // Key-value pairs that can be used to group and search for servers. - Tags []*types.Tag + Tags []types.Tag } type CreateServerOutput struct { diff --git a/service/transfer/api_op_CreateUser.go b/service/transfer/api_op_CreateUser.go index 936f856b3e9..eb14119a2f6 100644 --- a/service/transfer/api_op_CreateUser.go +++ b/service/transfer/api_op_CreateUser.go @@ -81,7 +81,7 @@ type CreateUserInput struct { // so you can use the put-object operation. For example, you use the following: aws // s3api put-object --bucket bucketname --key path/to/folder/. Make sure that the // end of the key name ends in a '/' for it to be considered a folder. - HomeDirectoryMappings []*types.HomeDirectoryMapEntry + HomeDirectoryMappings []types.HomeDirectoryMapEntry // The type of landing directory (folder) you want your users' home directory to be // when they log into the server. If you set it to PATH, the user will see the @@ -111,7 +111,7 @@ type CreateUserInput struct { // Key-value pairs that can be used to group and search for users. Tags are // metadata attached to users for any purpose. - Tags []*types.Tag + Tags []types.Tag } type CreateUserOutput struct { diff --git a/service/transfer/api_op_ListSecurityPolicies.go b/service/transfer/api_op_ListSecurityPolicies.go index f6504a44ca6..097606f3f02 100644 --- a/service/transfer/api_op_ListSecurityPolicies.go +++ b/service/transfer/api_op_ListSecurityPolicies.go @@ -45,7 +45,7 @@ type ListSecurityPoliciesOutput struct { // An array of security policies that were listed. // // This member is required. - SecurityPolicyNames []*string + SecurityPolicyNames []string // When you can get additional results from the ListSecurityPolicies operation, a // NextToken parameter is returned in the output. In a following command, you can diff --git a/service/transfer/api_op_ListServers.go b/service/transfer/api_op_ListServers.go index ed42e861813..92474d3f709 100644 --- a/service/transfer/api_op_ListServers.go +++ b/service/transfer/api_op_ListServers.go @@ -45,7 +45,7 @@ type ListServersOutput struct { // An array of servers that were listed. // // This member is required. - Servers []*types.ListedServer + Servers []types.ListedServer // When you can get additional results from the ListServers operation, a NextToken // parameter is returned in the output. In a following command, you can pass in the diff --git a/service/transfer/api_op_ListTagsForResource.go b/service/transfer/api_op_ListTagsForResource.go index 27c8ec95bab..576d7561b05 100644 --- a/service/transfer/api_op_ListTagsForResource.go +++ b/service/transfer/api_op_ListTagsForResource.go @@ -59,7 +59,7 @@ type ListTagsForResourceOutput struct { // Key-value pairs that are assigned to a resource, usually for the purpose of // grouping and searching for items. Tags are metadata that you define. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/transfer/api_op_ListUsers.go b/service/transfer/api_op_ListUsers.go index 781d30c3600..c6f46002666 100644 --- a/service/transfer/api_op_ListUsers.go +++ b/service/transfer/api_op_ListUsers.go @@ -55,7 +55,7 @@ type ListUsersOutput struct { // specify. // // This member is required. - Users []*types.ListedUser + Users []types.ListedUser // When you can get additional results from the ListUsers call, a NextToken // parameter is returned in the output. You can then pass in a subsequent command diff --git a/service/transfer/api_op_TagResource.go b/service/transfer/api_op_TagResource.go index 2f1d78f1834..1dec60b4328 100644 --- a/service/transfer/api_op_TagResource.go +++ b/service/transfer/api_op_TagResource.go @@ -42,7 +42,7 @@ type TagResourceInput struct { // purpose. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/transfer/api_op_TestIdentityProvider.go b/service/transfer/api_op_TestIdentityProvider.go index 0b3cddd5e63..aec6a3663d1 100644 --- a/service/transfer/api_op_TestIdentityProvider.go +++ b/service/transfer/api_op_TestIdentityProvider.go @@ -68,7 +68,7 @@ type TestIdentityProviderOutput struct { // The HTTP status code that is the response from your API Gateway. // // This member is required. - StatusCode *int32 + StatusCode int32 // The endpoint of the service used to authenticate a user. // diff --git a/service/transfer/api_op_UntagResource.go b/service/transfer/api_op_UntagResource.go index a0477eb9711..bd63bf61e6b 100644 --- a/service/transfer/api_op_UntagResource.go +++ b/service/transfer/api_op_UntagResource.go @@ -42,7 +42,7 @@ type UntagResourceInput struct { // purpose. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/transfer/api_op_UpdateUser.go b/service/transfer/api_op_UpdateUser.go index a29b09e7cac..717fefe3972 100644 --- a/service/transfer/api_op_UpdateUser.go +++ b/service/transfer/api_op_UpdateUser.go @@ -69,7 +69,7 @@ type UpdateUserInput struct { // so you can use the put-object operation. For example, you use the following: aws // s3api put-object --bucket bucketname --key path/to/folder/. Make sure that the // end of the key name ends in a / for it to be considered a folder. - HomeDirectoryMappings []*types.HomeDirectoryMapEntry + HomeDirectoryMappings []types.HomeDirectoryMapEntry // The type of landing directory (folder) you want your users' home directory to be // when they log into the server. If you set it to PATH, the user will see the diff --git a/service/transfer/deserializers.go b/service/transfer/deserializers.go index ac7055df008..0f0c1b1cf34 100644 --- a/service/transfer/deserializers.go +++ b/service/transfer/deserializers.go @@ -2807,7 +2807,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ServiceErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2819,7 +2819,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } -func awsAwsjson11_deserializeDocumentAddressAllocationIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAddressAllocationIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2832,21 +2832,21 @@ func awsAwsjson11_deserializeDocumentAddressAllocationIds(v *[]*string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AddressAllocationId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2883,7 +2883,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2923,7 +2923,7 @@ func awsAwsjson11_deserializeDocumentDescribedSecurityPolicy(v **types.Described if !ok { return fmt.Errorf("expected Fips to be of type *bool, got %T instead", value) } - sv.Fips = &jtv + sv.Fips = ptr.Bool(jtv) } case "SecurityPolicyName": @@ -2932,7 +2932,7 @@ func awsAwsjson11_deserializeDocumentDescribedSecurityPolicy(v **types.Described if !ok { return fmt.Errorf("expected SecurityPolicyName to be of type string, got %T instead", value) } - sv.SecurityPolicyName = &jtv + sv.SecurityPolicyName = ptr.String(jtv) } case "SshCiphers": @@ -2992,7 +2992,7 @@ func awsAwsjson11_deserializeDocumentDescribedServer(v **types.DescribedServer, if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "Certificate": @@ -3001,7 +3001,7 @@ func awsAwsjson11_deserializeDocumentDescribedServer(v **types.DescribedServer, if !ok { return fmt.Errorf("expected Certificate to be of type string, got %T instead", value) } - sv.Certificate = &jtv + sv.Certificate = ptr.String(jtv) } case "EndpointDetails": @@ -3024,7 +3024,7 @@ func awsAwsjson11_deserializeDocumentDescribedServer(v **types.DescribedServer, if !ok { return fmt.Errorf("expected HostKeyFingerprint to be of type string, got %T instead", value) } - sv.HostKeyFingerprint = &jtv + sv.HostKeyFingerprint = ptr.String(jtv) } case "IdentityProviderDetails": @@ -3047,7 +3047,7 @@ func awsAwsjson11_deserializeDocumentDescribedServer(v **types.DescribedServer, if !ok { return fmt.Errorf("expected Role to be of type string, got %T instead", value) } - sv.LoggingRole = &jtv + sv.LoggingRole = ptr.String(jtv) } case "Protocols": @@ -3061,7 +3061,7 @@ func awsAwsjson11_deserializeDocumentDescribedServer(v **types.DescribedServer, if !ok { return fmt.Errorf("expected SecurityPolicyName to be of type string, got %T instead", value) } - sv.SecurityPolicyName = &jtv + sv.SecurityPolicyName = ptr.String(jtv) } case "ServerId": @@ -3070,7 +3070,7 @@ func awsAwsjson11_deserializeDocumentDescribedServer(v **types.DescribedServer, if !ok { return fmt.Errorf("expected ServerId to be of type string, got %T instead", value) } - sv.ServerId = &jtv + sv.ServerId = ptr.String(jtv) } case "State": @@ -3137,7 +3137,7 @@ func awsAwsjson11_deserializeDocumentDescribedUser(v **types.DescribedUser, valu if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "HomeDirectory": @@ -3146,7 +3146,7 @@ func awsAwsjson11_deserializeDocumentDescribedUser(v **types.DescribedUser, valu if !ok { return fmt.Errorf("expected HomeDirectory to be of type string, got %T instead", value) } - sv.HomeDirectory = &jtv + sv.HomeDirectory = ptr.String(jtv) } case "HomeDirectoryMappings": @@ -3169,7 +3169,7 @@ func awsAwsjson11_deserializeDocumentDescribedUser(v **types.DescribedUser, valu if !ok { return fmt.Errorf("expected Policy to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } case "Role": @@ -3178,7 +3178,7 @@ func awsAwsjson11_deserializeDocumentDescribedUser(v **types.DescribedUser, valu if !ok { return fmt.Errorf("expected Role to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "SshPublicKeys": @@ -3197,7 +3197,7 @@ func awsAwsjson11_deserializeDocumentDescribedUser(v **types.DescribedUser, valu if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -3252,7 +3252,7 @@ func awsAwsjson11_deserializeDocumentEndpointDetails(v **types.EndpointDetails, if !ok { return fmt.Errorf("expected VpcEndpointId to be of type string, got %T instead", value) } - sv.VpcEndpointId = &jtv + sv.VpcEndpointId = ptr.String(jtv) } case "VpcId": @@ -3261,7 +3261,7 @@ func awsAwsjson11_deserializeDocumentEndpointDetails(v **types.EndpointDetails, if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -3301,7 +3301,7 @@ func awsAwsjson11_deserializeDocumentHomeDirectoryMapEntry(v **types.HomeDirecto if !ok { return fmt.Errorf("expected MapEntry to be of type string, got %T instead", value) } - sv.Entry = &jtv + sv.Entry = ptr.String(jtv) } case "Target": @@ -3310,7 +3310,7 @@ func awsAwsjson11_deserializeDocumentHomeDirectoryMapEntry(v **types.HomeDirecto if !ok { return fmt.Errorf("expected MapTarget to be of type string, got %T instead", value) } - sv.Target = &jtv + sv.Target = ptr.String(jtv) } default: @@ -3322,7 +3322,7 @@ func awsAwsjson11_deserializeDocumentHomeDirectoryMapEntry(v **types.HomeDirecto return nil } -func awsAwsjson11_deserializeDocumentHomeDirectoryMappings(v *[]*types.HomeDirectoryMapEntry, value interface{}) error { +func awsAwsjson11_deserializeDocumentHomeDirectoryMappings(v *[]types.HomeDirectoryMapEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3335,18 +3335,20 @@ func awsAwsjson11_deserializeDocumentHomeDirectoryMappings(v *[]*types.HomeDirec return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HomeDirectoryMapEntry + var cv []types.HomeDirectoryMapEntry if *v == nil { - cv = []*types.HomeDirectoryMapEntry{} + cv = []types.HomeDirectoryMapEntry{} } else { cv = *v } for _, value := range shape { - var col *types.HomeDirectoryMapEntry - if err := awsAwsjson11_deserializeDocumentHomeDirectoryMapEntry(&col, value); err != nil { + var col types.HomeDirectoryMapEntry + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHomeDirectoryMapEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3382,7 +3384,7 @@ func awsAwsjson11_deserializeDocumentIdentityProviderDetails(v **types.IdentityP if !ok { return fmt.Errorf("expected Role to be of type string, got %T instead", value) } - sv.InvocationRole = &jtv + sv.InvocationRole = ptr.String(jtv) } case "Url": @@ -3391,7 +3393,7 @@ func awsAwsjson11_deserializeDocumentIdentityProviderDetails(v **types.IdentityP if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -3431,7 +3433,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceError(v **types.InternalServ if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3471,7 +3473,7 @@ func awsAwsjson11_deserializeDocumentInvalidNextTokenException(v **types.Invalid if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3511,7 +3513,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -3551,7 +3553,7 @@ func awsAwsjson11_deserializeDocumentListedServer(v **types.ListedServer, value if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "EndpointType": @@ -3578,7 +3580,7 @@ func awsAwsjson11_deserializeDocumentListedServer(v **types.ListedServer, value if !ok { return fmt.Errorf("expected Role to be of type string, got %T instead", value) } - sv.LoggingRole = &jtv + sv.LoggingRole = ptr.String(jtv) } case "ServerId": @@ -3587,7 +3589,7 @@ func awsAwsjson11_deserializeDocumentListedServer(v **types.ListedServer, value if !ok { return fmt.Errorf("expected ServerId to be of type string, got %T instead", value) } - sv.ServerId = &jtv + sv.ServerId = ptr.String(jtv) } case "State": @@ -3621,7 +3623,7 @@ func awsAwsjson11_deserializeDocumentListedServer(v **types.ListedServer, value return nil } -func awsAwsjson11_deserializeDocumentListedServers(v *[]*types.ListedServer, value interface{}) error { +func awsAwsjson11_deserializeDocumentListedServers(v *[]types.ListedServer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3634,18 +3636,20 @@ func awsAwsjson11_deserializeDocumentListedServers(v *[]*types.ListedServer, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ListedServer + var cv []types.ListedServer if *v == nil { - cv = []*types.ListedServer{} + cv = []types.ListedServer{} } else { cv = *v } for _, value := range shape { - var col *types.ListedServer - if err := awsAwsjson11_deserializeDocumentListedServer(&col, value); err != nil { + var col types.ListedServer + destAddr := &col + if err := awsAwsjson11_deserializeDocumentListedServer(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3681,7 +3685,7 @@ func awsAwsjson11_deserializeDocumentListedUser(v **types.ListedUser, value inte if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "HomeDirectory": @@ -3690,7 +3694,7 @@ func awsAwsjson11_deserializeDocumentListedUser(v **types.ListedUser, value inte if !ok { return fmt.Errorf("expected HomeDirectory to be of type string, got %T instead", value) } - sv.HomeDirectory = &jtv + sv.HomeDirectory = ptr.String(jtv) } case "HomeDirectoryType": @@ -3708,7 +3712,7 @@ func awsAwsjson11_deserializeDocumentListedUser(v **types.ListedUser, value inte if !ok { return fmt.Errorf("expected Role to be of type string, got %T instead", value) } - sv.Role = &jtv + sv.Role = ptr.String(jtv) } case "SshPublicKeyCount": @@ -3730,7 +3734,7 @@ func awsAwsjson11_deserializeDocumentListedUser(v **types.ListedUser, value inte if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -3742,7 +3746,7 @@ func awsAwsjson11_deserializeDocumentListedUser(v **types.ListedUser, value inte return nil } -func awsAwsjson11_deserializeDocumentListedUsers(v *[]*types.ListedUser, value interface{}) error { +func awsAwsjson11_deserializeDocumentListedUsers(v *[]types.ListedUser, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3755,18 +3759,20 @@ func awsAwsjson11_deserializeDocumentListedUsers(v *[]*types.ListedUser, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ListedUser + var cv []types.ListedUser if *v == nil { - cv = []*types.ListedUser{} + cv = []types.ListedUser{} } else { cv = *v } for _, value := range shape { - var col *types.ListedUser - if err := awsAwsjson11_deserializeDocumentListedUser(&col, value); err != nil { + var col types.ListedUser + destAddr := &col + if err := awsAwsjson11_deserializeDocumentListedUser(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3838,7 +3844,7 @@ func awsAwsjson11_deserializeDocumentResourceExistsException(v **types.ResourceE if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Resource": @@ -3847,7 +3853,7 @@ func awsAwsjson11_deserializeDocumentResourceExistsException(v **types.ResourceE if !ok { return fmt.Errorf("expected Resource to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "ResourceType": @@ -3856,7 +3862,7 @@ func awsAwsjson11_deserializeDocumentResourceExistsException(v **types.ResourceE if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -3896,7 +3902,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Resource": @@ -3905,7 +3911,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected Resource to be of type string, got %T instead", value) } - sv.Resource = &jtv + sv.Resource = ptr.String(jtv) } case "ResourceType": @@ -3914,7 +3920,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) } - sv.ResourceType = &jtv + sv.ResourceType = ptr.String(jtv) } default: @@ -3926,7 +3932,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3939,21 +3945,21 @@ func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3962,7 +3968,7 @@ func awsAwsjson11_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return nil } -func awsAwsjson11_deserializeDocumentSecurityPolicyNames(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityPolicyNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3975,21 +3981,21 @@ func awsAwsjson11_deserializeDocumentSecurityPolicyNames(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecurityPolicyName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -3998,7 +4004,7 @@ func awsAwsjson11_deserializeDocumentSecurityPolicyNames(v *[]*string, value int return nil } -func awsAwsjson11_deserializeDocumentSecurityPolicyOptions(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSecurityPolicyOptions(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4011,21 +4017,21 @@ func awsAwsjson11_deserializeDocumentSecurityPolicyOptions(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecurityPolicyOption to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4062,7 +4068,7 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ServiceErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -4115,7 +4121,7 @@ func awsAwsjson11_deserializeDocumentSshPublicKey(v **types.SshPublicKey, value if !ok { return fmt.Errorf("expected SshPublicKeyBody to be of type string, got %T instead", value) } - sv.SshPublicKeyBody = &jtv + sv.SshPublicKeyBody = ptr.String(jtv) } case "SshPublicKeyId": @@ -4124,7 +4130,7 @@ func awsAwsjson11_deserializeDocumentSshPublicKey(v **types.SshPublicKey, value if !ok { return fmt.Errorf("expected SshPublicKeyId to be of type string, got %T instead", value) } - sv.SshPublicKeyId = &jtv + sv.SshPublicKeyId = ptr.String(jtv) } default: @@ -4136,7 +4142,7 @@ func awsAwsjson11_deserializeDocumentSshPublicKey(v **types.SshPublicKey, value return nil } -func awsAwsjson11_deserializeDocumentSshPublicKeys(v *[]*types.SshPublicKey, value interface{}) error { +func awsAwsjson11_deserializeDocumentSshPublicKeys(v *[]types.SshPublicKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4149,18 +4155,20 @@ func awsAwsjson11_deserializeDocumentSshPublicKeys(v *[]*types.SshPublicKey, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SshPublicKey + var cv []types.SshPublicKey if *v == nil { - cv = []*types.SshPublicKey{} + cv = []types.SshPublicKey{} } else { cv = *v } for _, value := range shape { - var col *types.SshPublicKey - if err := awsAwsjson11_deserializeDocumentSshPublicKey(&col, value); err != nil { + var col types.SshPublicKey + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSshPublicKey(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4168,7 +4176,7 @@ func awsAwsjson11_deserializeDocumentSshPublicKeys(v *[]*types.SshPublicKey, val return nil } -func awsAwsjson11_deserializeDocumentSubnetIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnetIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4181,21 +4189,21 @@ func awsAwsjson11_deserializeDocumentSubnetIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -4232,7 +4240,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -4241,7 +4249,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -4253,7 +4261,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTags(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4266,18 +4274,20 @@ func awsAwsjson11_deserializeDocumentTags(v *[]*types.Tag, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4313,7 +4323,7 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc if !ok { return fmt.Errorf("expected RetryAfterSeconds to be of type string, got %T instead", value) } - sv.RetryAfterSeconds = &jtv + sv.RetryAfterSeconds = ptr.String(jtv) } default: @@ -4353,7 +4363,7 @@ func awsAwsjson11_deserializeOpDocumentCreateServerOutput(v **CreateServerOutput if !ok { return fmt.Errorf("expected ServerId to be of type string, got %T instead", value) } - sv.ServerId = &jtv + sv.ServerId = ptr.String(jtv) } default: @@ -4393,7 +4403,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUserOutput(v **CreateUserOutput, va if !ok { return fmt.Errorf("expected ServerId to be of type string, got %T instead", value) } - sv.ServerId = &jtv + sv.ServerId = ptr.String(jtv) } case "UserName": @@ -4402,7 +4412,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUserOutput(v **CreateUserOutput, va if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -4607,7 +4617,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput if !ok { return fmt.Errorf("expected ServerId to be of type string, got %T instead", value) } - sv.ServerId = &jtv + sv.ServerId = ptr.String(jtv) } case "User": @@ -4652,7 +4662,7 @@ func awsAwsjson11_deserializeOpDocumentImportSshPublicKeyOutput(v **ImportSshPub if !ok { return fmt.Errorf("expected ServerId to be of type string, got %T instead", value) } - sv.ServerId = &jtv + sv.ServerId = ptr.String(jtv) } case "SshPublicKeyId": @@ -4661,7 +4671,7 @@ func awsAwsjson11_deserializeOpDocumentImportSshPublicKeyOutput(v **ImportSshPub if !ok { return fmt.Errorf("expected SshPublicKeyId to be of type string, got %T instead", value) } - sv.SshPublicKeyId = &jtv + sv.SshPublicKeyId = ptr.String(jtv) } case "UserName": @@ -4670,7 +4680,7 @@ func awsAwsjson11_deserializeOpDocumentImportSshPublicKeyOutput(v **ImportSshPub if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -4710,7 +4720,7 @@ func awsAwsjson11_deserializeOpDocumentListSecurityPoliciesOutput(v **ListSecuri if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SecurityPolicyNames": @@ -4755,7 +4765,7 @@ func awsAwsjson11_deserializeOpDocumentListServersOutput(v **ListServersOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Servers": @@ -4800,7 +4810,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "NextToken": @@ -4809,7 +4819,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -4854,7 +4864,7 @@ func awsAwsjson11_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "ServerId": @@ -4863,7 +4873,7 @@ func awsAwsjson11_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu if !ok { return fmt.Errorf("expected ServerId to be of type string, got %T instead", value) } - sv.ServerId = &jtv + sv.ServerId = ptr.String(jtv) } case "Users": @@ -5001,7 +5011,7 @@ func awsAwsjson11_deserializeOpDocumentTestIdentityProviderOutput(v **TestIdenti if !ok { return fmt.Errorf("expected Message to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Response": @@ -5010,7 +5020,7 @@ func awsAwsjson11_deserializeOpDocumentTestIdentityProviderOutput(v **TestIdenti if !ok { return fmt.Errorf("expected Response to be of type string, got %T instead", value) } - sv.Response = &jtv + sv.Response = ptr.String(jtv) } case "StatusCode": @@ -5023,7 +5033,7 @@ func awsAwsjson11_deserializeOpDocumentTestIdentityProviderOutput(v **TestIdenti if err != nil { return err } - sv.StatusCode = ptr.Int32(int32(i64)) + sv.StatusCode = int32(i64) } case "Url": @@ -5032,7 +5042,7 @@ func awsAwsjson11_deserializeOpDocumentTestIdentityProviderOutput(v **TestIdenti if !ok { return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.Url = &jtv + sv.Url = ptr.String(jtv) } default: @@ -5103,7 +5113,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateServerOutput(v **UpdateServerOutput if !ok { return fmt.Errorf("expected ServerId to be of type string, got %T instead", value) } - sv.ServerId = &jtv + sv.ServerId = ptr.String(jtv) } default: @@ -5143,7 +5153,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateUserOutput(v **UpdateUserOutput, va if !ok { return fmt.Errorf("expected ServerId to be of type string, got %T instead", value) } - sv.ServerId = &jtv + sv.ServerId = ptr.String(jtv) } case "UserName": @@ -5152,7 +5162,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateUserOutput(v **UpdateUserOutput, va if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: diff --git a/service/transfer/go.mod b/service/transfer/go.mod index 063c5c6ca95..708e38385e4 100644 --- a/service/transfer/go.mod +++ b/service/transfer/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/transfer go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/transfer/serializers.go b/service/transfer/serializers.go index 8e4c3f6b9d2..0f1ec767c7c 100644 --- a/service/transfer/serializers.go +++ b/service/transfer/serializers.go @@ -933,17 +933,13 @@ func (m *awsAwsjson11_serializeOpUpdateUser) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAddressAllocationIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentAddressAllocationIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1003,17 +999,13 @@ func awsAwsjson11_serializeDocumentHomeDirectoryMapEntry(v *types.HomeDirectoryM return nil } -func awsAwsjson11_serializeDocumentHomeDirectoryMappings(v []*types.HomeDirectoryMapEntry, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentHomeDirectoryMappings(v []types.HomeDirectoryMapEntry, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentHomeDirectoryMapEntry(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentHomeDirectoryMapEntry(&v[i], av); err != nil { return err } } @@ -1048,32 +1040,24 @@ func awsAwsjson11_serializeDocumentProtocols(v []types.Protocol, value smithyjso return nil } -func awsAwsjson11_serializeDocumentSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentSubnetIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnetIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -1095,32 +1079,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeys(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeys(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTags(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } diff --git a/service/transfer/types/types.go b/service/transfer/types/types.go index f9084b292a9..e6df43f8bdf 100644 --- a/service/transfer/types/types.go +++ b/service/transfer/types/types.go @@ -22,19 +22,19 @@ type DescribedSecurityPolicy struct { // Specifies the enabled Secure Shell (SSH) cipher encryption algorithms in the // security policy that is attached to the server. - SshCiphers []*string + SshCiphers []string // Specifies the enabled SSH key exchange (KEX) encryption algorithms in the // security policy that is attached to the server. - SshKexs []*string + SshKexs []string // Specifies the enabled SSH message authentication code (MAC) encryption // algorithms in the security policy that is attached to the server. - SshMacs []*string + SshMacs []string // Specifies the enabled Transport Layer Security (TLS) cipher encryption // algorithms in the security policy that is attached to the server. - TlsCiphers []*string + TlsCiphers []string } // Describes the properties of a file transfer protocol-enabled server that was @@ -110,7 +110,7 @@ type DescribedServer struct { // Specifies the key-value pairs that you can use to search for and group servers // that were assigned to the server that was described. - Tags []*Tag + Tags []Tag // Specifies the number of users that are assigned to a server you specified with // the ServerId. @@ -141,7 +141,7 @@ type DescribedUser struct { // policy to lock your user down to the designated home directory ("chroot"). To do // this, you can set Entry to '/' and set Target to the HomeDirectory parameter // value. - HomeDirectoryMappings []*HomeDirectoryMapEntry + HomeDirectoryMappings []HomeDirectoryMapEntry // Specifies the type of landing directory (folder) you mapped for your users to // see when they log into the file transfer protocol-enabled server. If you set it @@ -164,11 +164,11 @@ type DescribedUser struct { // Specifies the public key portion of the Secure Shell (SSH) keys stored for the // described user. - SshPublicKeys []*SshPublicKey + SshPublicKeys []SshPublicKey // Specifies the key-value pairs for the user requested. Tag can be used to search // for and group users for a variety of purposes. - Tags []*Tag + Tags []Tag // Specifies the name of the user that was requested to be described. User names // are used for authentication purposes. This is the string that will be used by @@ -186,17 +186,17 @@ type EndpointDetails struct { // A list of address allocation IDs that are required to attach an Elastic IP // address to your server's endpoint. This property can only be set when // EndpointType is set to VPC and it is only valid in the UpdateServer API. - AddressAllocationIds []*string + AddressAllocationIds []string // A list of security groups IDs that are available to attach to your server's // endpoint. This property can only be set when EndpointType is set to VPC. You can // only edit the SecurityGroupIds property in the UpdateServer API and only if you // are changing the EndpointType from PUBLIC or VPC_ENDPOINT to VPC. - SecurityGroupIds []*string + SecurityGroupIds []string // A list of subnet IDs that are required to host your server endpoint in your VPC. // This property can only be set when EndpointType is set to VPC. - SubnetIds []*string + SubnetIds []string // The ID of the VPC endpoint. This property can only be set when EndpointType is // set to VPC_ENDPOINT. diff --git a/service/transfer/validators.go b/service/transfer/validators.go index c7970656a7b..abb56b0da5c 100644 --- a/service/transfer/validators.go +++ b/service/transfer/validators.go @@ -460,13 +460,13 @@ func validateHomeDirectoryMapEntry(v *types.HomeDirectoryMapEntry) error { } } -func validateHomeDirectoryMappings(v []*types.HomeDirectoryMapEntry) error { +func validateHomeDirectoryMappings(v []types.HomeDirectoryMapEntry) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "HomeDirectoryMappings"} for i := range v { - if err := validateHomeDirectoryMapEntry(v[i]); err != nil { + if err := validateHomeDirectoryMapEntry(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -495,13 +495,13 @@ func validateTag(v *types.Tag) error { } } -func validateTags(v []*types.Tag) error { +func validateTags(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Tags"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/translate/api_op_ListTerminologies.go b/service/translate/api_op_ListTerminologies.go index 611ea90b13b..fe61481a056 100644 --- a/service/translate/api_op_ListTerminologies.go +++ b/service/translate/api_op_ListTerminologies.go @@ -44,7 +44,7 @@ type ListTerminologiesOutput struct { NextToken *string // The properties list of the custom terminologies returned on the list request. - TerminologyPropertiesList []*types.TerminologyProperties + TerminologyPropertiesList []types.TerminologyProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/translate/api_op_ListTextTranslationJobs.go b/service/translate/api_op_ListTextTranslationJobs.go index e72d45886eb..4a604778f74 100644 --- a/service/translate/api_op_ListTextTranslationJobs.go +++ b/service/translate/api_op_ListTextTranslationJobs.go @@ -48,7 +48,7 @@ type ListTextTranslationJobsOutput struct { NextToken *string // A list containing the properties of each job that is returned. - TextTranslationJobPropertiesList []*types.TextTranslationJobProperties + TextTranslationJobPropertiesList []types.TextTranslationJobProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/translate/api_op_StartTextTranslationJob.go b/service/translate/api_op_StartTextTranslationJob.go index 8a2d8be0ba7..58de990072a 100644 --- a/service/translate/api_op_StartTextTranslationJob.go +++ b/service/translate/api_op_StartTextTranslationJob.go @@ -70,14 +70,14 @@ type StartTextTranslationJobInput struct { // The language code of the output language. // // This member is required. - TargetLanguageCodes []*string + TargetLanguageCodes []string // The name of the batch translation job to be performed. JobName *string // The name of the terminology to use in the batch translation job. For a list of // available terminologies, use the ListTerminologies operation. - TerminologyNames []*string + TerminologyNames []string } type StartTextTranslationJobOutput struct { diff --git a/service/translate/api_op_TranslateText.go b/service/translate/api_op_TranslateText.go index d67218e0456..2cfa5a31670 100644 --- a/service/translate/api_op_TranslateText.go +++ b/service/translate/api_op_TranslateText.go @@ -56,7 +56,7 @@ type TranslateTextInput struct { // The name of the terminology list file to be used in the TranslateText request. // You can use 1 terminology list at most in a TranslateText request. Terminology // lists can contain a maximum of 256 terms. - TerminologyNames []*string + TerminologyNames []string } type TranslateTextOutput struct { @@ -78,7 +78,7 @@ type TranslateTextOutput struct { // The names of the custom terminologies applied to the input text by Amazon // Translate for the translated text response. - AppliedTerminologies []*types.AppliedTerminology + AppliedTerminologies []types.AppliedTerminology // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/translate/deserializers.go b/service/translate/deserializers.go index e529b07dfe0..bce8dc791b4 100644 --- a/service/translate/deserializers.go +++ b/service/translate/deserializers.go @@ -1518,7 +1518,7 @@ func awsAwsjson11_deserializeDocumentAppliedTerminology(v **types.AppliedTermino if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Terms": @@ -1535,7 +1535,7 @@ func awsAwsjson11_deserializeDocumentAppliedTerminology(v **types.AppliedTermino return nil } -func awsAwsjson11_deserializeDocumentAppliedTerminologyList(v *[]*types.AppliedTerminology, value interface{}) error { +func awsAwsjson11_deserializeDocumentAppliedTerminologyList(v *[]types.AppliedTerminology, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1548,18 +1548,20 @@ func awsAwsjson11_deserializeDocumentAppliedTerminologyList(v *[]*types.AppliedT return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AppliedTerminology + var cv []types.AppliedTerminology if *v == nil { - cv = []*types.AppliedTerminology{} + cv = []types.AppliedTerminology{} } else { cv = *v } for _, value := range shape { - var col *types.AppliedTerminology - if err := awsAwsjson11_deserializeDocumentAppliedTerminology(&col, value); err != nil { + var col types.AppliedTerminology + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAppliedTerminology(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -1595,7 +1597,7 @@ func awsAwsjson11_deserializeDocumentDetectedLanguageLowConfidenceException(v ** if !ok { return fmt.Errorf("expected LanguageCodeString to be of type string, got %T instead", value) } - sv.DetectedLanguageCode = &jtv + sv.DetectedLanguageCode = ptr.String(jtv) } case "Message": @@ -1604,7 +1606,7 @@ func awsAwsjson11_deserializeDocumentDetectedLanguageLowConfidenceException(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1644,7 +1646,7 @@ func awsAwsjson11_deserializeDocumentEncryptionKey(v **types.EncryptionKey, valu if !ok { return fmt.Errorf("expected EncryptionKeyID to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Type": @@ -1693,7 +1695,7 @@ func awsAwsjson11_deserializeDocumentInputDataConfig(v **types.InputDataConfig, if !ok { return fmt.Errorf("expected ContentType to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "S3Uri": @@ -1702,7 +1704,7 @@ func awsAwsjson11_deserializeDocumentInputDataConfig(v **types.InputDataConfig, if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -1742,7 +1744,7 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1782,7 +1784,7 @@ func awsAwsjson11_deserializeDocumentInvalidFilterException(v **types.InvalidFil if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1822,7 +1824,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValueException(v **types.In if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1862,7 +1864,7 @@ func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -1944,7 +1946,7 @@ func awsAwsjson11_deserializeDocumentJobDetails(v **types.JobDetails, value inte return nil } -func awsAwsjson11_deserializeDocumentLanguageCodeStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLanguageCodeStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1957,21 +1959,21 @@ func awsAwsjson11_deserializeDocumentLanguageCodeStringList(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected LanguageCodeString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2008,7 +2010,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2048,7 +2050,7 @@ func awsAwsjson11_deserializeDocumentOutputDataConfig(v **types.OutputDataConfig if !ok { return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.S3Uri = &jtv + sv.S3Uri = ptr.String(jtv) } default: @@ -2060,7 +2062,7 @@ func awsAwsjson11_deserializeDocumentOutputDataConfig(v **types.OutputDataConfig return nil } -func awsAwsjson11_deserializeDocumentResourceNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2073,21 +2075,21 @@ func awsAwsjson11_deserializeDocumentResourceNameList(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2124,7 +2126,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2164,7 +2166,7 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2176,7 +2178,7 @@ func awsAwsjson11_deserializeDocumentServiceUnavailableException(v **types.Servi return nil } -func awsAwsjson11_deserializeDocumentTargetLanguageCodeStringList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentTargetLanguageCodeStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2189,21 +2191,21 @@ func awsAwsjson11_deserializeDocumentTargetLanguageCodeStringList(v *[]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected LanguageCodeString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -2240,7 +2242,7 @@ func awsAwsjson11_deserializeDocumentTerm(v **types.Term, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SourceText = &jtv + sv.SourceText = ptr.String(jtv) } case "TargetText": @@ -2249,7 +2251,7 @@ func awsAwsjson11_deserializeDocumentTerm(v **types.Term, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TargetText = &jtv + sv.TargetText = ptr.String(jtv) } default: @@ -2289,7 +2291,7 @@ func awsAwsjson11_deserializeDocumentTerminologyDataLocation(v **types.Terminolo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Location = &jtv + sv.Location = ptr.String(jtv) } case "RepositoryType": @@ -2298,7 +2300,7 @@ func awsAwsjson11_deserializeDocumentTerminologyDataLocation(v **types.Terminolo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RepositoryType = &jtv + sv.RepositoryType = ptr.String(jtv) } default: @@ -2338,7 +2340,7 @@ func awsAwsjson11_deserializeDocumentTerminologyProperties(v **types.Terminology if !ok { return fmt.Errorf("expected TerminologyArn to be of type string, got %T instead", value) } - sv.Arn = &jtv + sv.Arn = ptr.String(jtv) } case "CreatedAt": @@ -2360,7 +2362,7 @@ func awsAwsjson11_deserializeDocumentTerminologyProperties(v **types.Terminology if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EncryptionKey": @@ -2387,7 +2389,7 @@ func awsAwsjson11_deserializeDocumentTerminologyProperties(v **types.Terminology if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SizeBytes": @@ -2409,7 +2411,7 @@ func awsAwsjson11_deserializeDocumentTerminologyProperties(v **types.Terminology if !ok { return fmt.Errorf("expected LanguageCodeString to be of type string, got %T instead", value) } - sv.SourceLanguageCode = &jtv + sv.SourceLanguageCode = ptr.String(jtv) } case "TargetLanguageCodes": @@ -2439,7 +2441,7 @@ func awsAwsjson11_deserializeDocumentTerminologyProperties(v **types.Terminology return nil } -func awsAwsjson11_deserializeDocumentTerminologyPropertiesList(v *[]*types.TerminologyProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentTerminologyPropertiesList(v *[]types.TerminologyProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2452,18 +2454,20 @@ func awsAwsjson11_deserializeDocumentTerminologyPropertiesList(v *[]*types.Termi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TerminologyProperties + var cv []types.TerminologyProperties if *v == nil { - cv = []*types.TerminologyProperties{} + cv = []types.TerminologyProperties{} } else { cv = *v } for _, value := range shape { - var col *types.TerminologyProperties - if err := awsAwsjson11_deserializeDocumentTerminologyProperties(&col, value); err != nil { + var col types.TerminologyProperties + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTerminologyProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2471,7 +2475,7 @@ func awsAwsjson11_deserializeDocumentTerminologyPropertiesList(v *[]*types.Termi return nil } -func awsAwsjson11_deserializeDocumentTermList(v *[]*types.Term, value interface{}) error { +func awsAwsjson11_deserializeDocumentTermList(v *[]types.Term, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2484,18 +2488,20 @@ func awsAwsjson11_deserializeDocumentTermList(v *[]*types.Term, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Term + var cv []types.Term if *v == nil { - cv = []*types.Term{} + cv = []types.Term{} } else { cv = *v } for _, value := range shape { - var col *types.Term - if err := awsAwsjson11_deserializeDocumentTerm(&col, value); err != nil { + var col types.Term + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTerm(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2531,7 +2537,7 @@ func awsAwsjson11_deserializeDocumentTextSizeLimitExceededException(v **types.Te if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2571,7 +2577,7 @@ func awsAwsjson11_deserializeDocumentTextTranslationJobProperties(v **types.Text if !ok { return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) } - sv.DataAccessRoleArn = &jtv + sv.DataAccessRoleArn = ptr.String(jtv) } case "EndTime": @@ -2603,7 +2609,7 @@ func awsAwsjson11_deserializeDocumentTextTranslationJobProperties(v **types.Text if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobName": @@ -2612,7 +2618,7 @@ func awsAwsjson11_deserializeDocumentTextTranslationJobProperties(v **types.Text if !ok { return fmt.Errorf("expected JobName to be of type string, got %T instead", value) } - sv.JobName = &jtv + sv.JobName = ptr.String(jtv) } case "JobStatus": @@ -2630,7 +2636,7 @@ func awsAwsjson11_deserializeDocumentTextTranslationJobProperties(v **types.Text if !ok { return fmt.Errorf("expected UnboundedLengthString to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "OutputDataConfig": @@ -2644,7 +2650,7 @@ func awsAwsjson11_deserializeDocumentTextTranslationJobProperties(v **types.Text if !ok { return fmt.Errorf("expected LanguageCodeString to be of type string, got %T instead", value) } - sv.SourceLanguageCode = &jtv + sv.SourceLanguageCode = ptr.String(jtv) } case "SubmittedTime": @@ -2679,7 +2685,7 @@ func awsAwsjson11_deserializeDocumentTextTranslationJobProperties(v **types.Text return nil } -func awsAwsjson11_deserializeDocumentTextTranslationJobPropertiesList(v *[]*types.TextTranslationJobProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentTextTranslationJobPropertiesList(v *[]types.TextTranslationJobProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2692,18 +2698,20 @@ func awsAwsjson11_deserializeDocumentTextTranslationJobPropertiesList(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TextTranslationJobProperties + var cv []types.TextTranslationJobProperties if *v == nil { - cv = []*types.TextTranslationJobProperties{} + cv = []types.TextTranslationJobProperties{} } else { cv = *v } for _, value := range shape { - var col *types.TextTranslationJobProperties - if err := awsAwsjson11_deserializeDocumentTextTranslationJobProperties(&col, value); err != nil { + var col types.TextTranslationJobProperties + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTextTranslationJobProperties(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -2739,7 +2747,7 @@ func awsAwsjson11_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -2779,7 +2787,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedLanguagePairException(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "SourceLanguageCode": @@ -2788,7 +2796,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedLanguagePairException(v **types. if !ok { return fmt.Errorf("expected LanguageCodeString to be of type string, got %T instead", value) } - sv.SourceLanguageCode = &jtv + sv.SourceLanguageCode = ptr.String(jtv) } case "TargetLanguageCode": @@ -2797,7 +2805,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedLanguagePairException(v **types. if !ok { return fmt.Errorf("expected LanguageCodeString to be of type string, got %T instead", value) } - sv.TargetLanguageCode = &jtv + sv.TargetLanguageCode = ptr.String(jtv) } default: @@ -2981,7 +2989,7 @@ func awsAwsjson11_deserializeOpDocumentListTerminologiesOutput(v **ListTerminolo if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TerminologyPropertiesList": @@ -3026,7 +3034,7 @@ func awsAwsjson11_deserializeOpDocumentListTextTranslationJobsOutput(v **ListTex if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TextTranslationJobPropertiesList": @@ -3071,7 +3079,7 @@ func awsAwsjson11_deserializeOpDocumentStartTextTranslationJobOutput(v **StartTe if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -3120,7 +3128,7 @@ func awsAwsjson11_deserializeOpDocumentStopTextTranslationJobOutput(v **StopText if !ok { return fmt.Errorf("expected JobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "JobStatus": @@ -3174,7 +3182,7 @@ func awsAwsjson11_deserializeOpDocumentTranslateTextOutput(v **TranslateTextOutp if !ok { return fmt.Errorf("expected LanguageCodeString to be of type string, got %T instead", value) } - sv.SourceLanguageCode = &jtv + sv.SourceLanguageCode = ptr.String(jtv) } case "TargetLanguageCode": @@ -3183,7 +3191,7 @@ func awsAwsjson11_deserializeOpDocumentTranslateTextOutput(v **TranslateTextOutp if !ok { return fmt.Errorf("expected LanguageCodeString to be of type string, got %T instead", value) } - sv.TargetLanguageCode = &jtv + sv.TargetLanguageCode = ptr.String(jtv) } case "TranslatedText": @@ -3192,7 +3200,7 @@ func awsAwsjson11_deserializeOpDocumentTranslateTextOutput(v **TranslateTextOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TranslatedText = &jtv + sv.TranslatedText = ptr.String(jtv) } default: diff --git a/service/translate/go.mod b/service/translate/go.mod index 589875493cf..0b078fdc750 100644 --- a/service/translate/go.mod +++ b/service/translate/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/translate go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/translate/serializers.go b/service/translate/serializers.go index 09e093d5bb6..098b316c250 100644 --- a/service/translate/serializers.go +++ b/service/translate/serializers.go @@ -474,32 +474,24 @@ func awsAwsjson11_serializeDocumentOutputDataConfig(v *types.OutputDataConfig, v return nil } -func awsAwsjson11_serializeDocumentResourceNameList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTargetLanguageCodeStringList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTargetLanguageCodeStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/translate/types/types.go b/service/translate/types/types.go index 6c21fa169d3..abb53b0d582 100644 --- a/service/translate/types/types.go +++ b/service/translate/types/types.go @@ -20,7 +20,7 @@ type AppliedTerminology struct { // Translate for the translated text response. A maximum of 250 terms will be // returned, and the specific terms applied will be the first 250 terms in the // source text. - Terms []*Term + Terms []Term } // The encryption key used to encrypt the custom terminologies used by Amazon @@ -177,7 +177,7 @@ type TerminologyProperties struct { // The language codes for the target languages available with the custom // terminology file. All possible target languages are returned in array. - TargetLanguageCodes []*string + TargetLanguageCodes []string // The number of terms included in the custom terminology. TermCount *int32 @@ -247,10 +247,10 @@ type TextTranslationJobProperties struct { // The language code of the language of the target text. The language must be a // language supported by Amazon Translate. - TargetLanguageCodes []*string + TargetLanguageCodes []string // A list containing the names of the terminologies applied to a translation job. // Only one terminology can be applied per StartTextTranslationJob request at this // time. - TerminologyNames []*string + TerminologyNames []string } diff --git a/service/waf/api_op_CreateRateBasedRule.go b/service/waf/api_op_CreateRateBasedRule.go index 0df654fb7d6..f62a7b21c41 100644 --- a/service/waf/api_op_CreateRateBasedRule.go +++ b/service/waf/api_op_CreateRateBasedRule.go @@ -133,10 +133,10 @@ type CreateRateBasedRuleInput struct { // are also met, AWS WAF triggers the action that is specified for this rule. // // This member is required. - RateLimit *int64 + RateLimit int64 // - Tags []*types.Tag + Tags []types.Tag } type CreateRateBasedRuleOutput struct { diff --git a/service/waf/api_op_CreateRule.go b/service/waf/api_op_CreateRule.go index 845795d7b8f..7a3faf457c0 100644 --- a/service/waf/api_op_CreateRule.go +++ b/service/waf/api_op_CreateRule.go @@ -96,7 +96,7 @@ type CreateRuleInput struct { Name *string // - Tags []*types.Tag + Tags []types.Tag } type CreateRuleOutput struct { diff --git a/service/waf/api_op_CreateRuleGroup.go b/service/waf/api_op_CreateRuleGroup.go index 545b7623569..04dbe53685c 100644 --- a/service/waf/api_op_CreateRuleGroup.go +++ b/service/waf/api_op_CreateRuleGroup.go @@ -71,7 +71,7 @@ type CreateRuleGroupInput struct { Name *string // - Tags []*types.Tag + Tags []types.Tag } type CreateRuleGroupOutput struct { diff --git a/service/waf/api_op_CreateWebACL.go b/service/waf/api_op_CreateWebACL.go index 8ca7420552e..539b5ba16f5 100644 --- a/service/waf/api_op_CreateWebACL.go +++ b/service/waf/api_op_CreateWebACL.go @@ -95,7 +95,7 @@ type CreateWebACLInput struct { Name *string // - Tags []*types.Tag + Tags []types.Tag } type CreateWebACLOutput struct { diff --git a/service/waf/api_op_GetRateBasedRuleManagedKeys.go b/service/waf/api_op_GetRateBasedRuleManagedKeys.go index 22352a570d1..4d33aa2074f 100644 --- a/service/waf/api_op_GetRateBasedRuleManagedKeys.go +++ b/service/waf/api_op_GetRateBasedRuleManagedKeys.go @@ -51,7 +51,7 @@ type GetRateBasedRuleManagedKeysOutput struct { // An array of IP addresses that currently are blocked by the specified // RateBasedRule. - ManagedKeys []*string + ManagedKeys []string // A null value and not currently used. NextMarker *string diff --git a/service/waf/api_op_GetSampledRequests.go b/service/waf/api_op_GetSampledRequests.go index 8012b6bf18b..dca7d875174 100644 --- a/service/waf/api_op_GetSampledRequests.go +++ b/service/waf/api_op_GetSampledRequests.go @@ -50,7 +50,7 @@ type GetSampledRequestsInput struct { // returns information about all of them. // // This member is required. - MaxItems *int64 + MaxItems int64 // RuleId is one of three values: // @@ -85,11 +85,11 @@ type GetSampledRequestsOutput struct { // The total number of requests from which GetSampledRequests got a sample of // MaxItems requests. If PopulationSize is less than MaxItems, the sample includes // every request that your AWS resource received during the specified time range. - PopulationSize *int64 + PopulationSize int64 // A complex type that contains detailed information about each of the requests in // the sample. - SampledRequests []*types.SampledHTTPRequest + SampledRequests []types.SampledHTTPRequest // Usually, TimeWindow is the time range that you specified in the // GetSampledRequests request. However, if your AWS resource received more than diff --git a/service/waf/api_op_ListActivatedRulesInRuleGroup.go b/service/waf/api_op_ListActivatedRulesInRuleGroup.go index 8e0009159b9..a6f5db10899 100644 --- a/service/waf/api_op_ListActivatedRulesInRuleGroup.go +++ b/service/waf/api_op_ListActivatedRulesInRuleGroup.go @@ -39,7 +39,7 @@ type ListActivatedRulesInRuleGroupInput struct { // request. If you have more ActivatedRules than the number that you specify for // Limit, the response includes a NextMarker value that you can use to get another // batch of ActivatedRules. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more ActivatedRules than the value // of Limit, AWS WAF returns a NextMarker value in the response that allows you to @@ -56,7 +56,7 @@ type ListActivatedRulesInRuleGroupInput struct { type ListActivatedRulesInRuleGroupOutput struct { // An array of ActivatedRules objects. - ActivatedRules []*types.ActivatedRule + ActivatedRules []types.ActivatedRule // If you have more ActivatedRules than the number that you specified for Limit in // the request, the response includes a NextMarker value. To list more diff --git a/service/waf/api_op_ListByteMatchSets.go b/service/waf/api_op_ListByteMatchSets.go index 488845248ac..5dc0c210a31 100644 --- a/service/waf/api_op_ListByteMatchSets.go +++ b/service/waf/api_op_ListByteMatchSets.go @@ -39,7 +39,7 @@ type ListByteMatchSetsInput struct { // this request. If you have more ByteMatchSets objects than the number you specify // for Limit, the response includes a NextMarker value that you can use to get // another batch of ByteMatchSet objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more ByteMatchSets than the value // of Limit, AWS WAF returns a NextMarker value in the response that allows you to @@ -52,7 +52,7 @@ type ListByteMatchSetsInput struct { type ListByteMatchSetsOutput struct { // An array of ByteMatchSetSummary objects. - ByteMatchSets []*types.ByteMatchSetSummary + ByteMatchSets []types.ByteMatchSetSummary // If you have more ByteMatchSet objects than the number that you specified for // Limit in the request, the response includes a NextMarker value. To list more diff --git a/service/waf/api_op_ListGeoMatchSets.go b/service/waf/api_op_ListGeoMatchSets.go index 662f8e91004..9b5ebb26c00 100644 --- a/service/waf/api_op_ListGeoMatchSets.go +++ b/service/waf/api_op_ListGeoMatchSets.go @@ -39,7 +39,7 @@ type ListGeoMatchSetsInput struct { // this request. If you have more GeoMatchSet objects than the number you specify // for Limit, the response includes a NextMarker value that you can use to get // another batch of GeoMatchSet objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more GeoMatchSets than the value // of Limit, AWS WAF returns a NextMarker value in the response that allows you to @@ -52,7 +52,7 @@ type ListGeoMatchSetsInput struct { type ListGeoMatchSetsOutput struct { // An array of GeoMatchSetSummary objects. - GeoMatchSets []*types.GeoMatchSetSummary + GeoMatchSets []types.GeoMatchSetSummary // If you have more GeoMatchSet objects than the number that you specified for // Limit in the request, the response includes a NextMarker value. To list more diff --git a/service/waf/api_op_ListIPSets.go b/service/waf/api_op_ListIPSets.go index b3c64aa0830..08015648276 100644 --- a/service/waf/api_op_ListIPSets.go +++ b/service/waf/api_op_ListIPSets.go @@ -39,7 +39,7 @@ type ListIPSetsInput struct { // request. If you have more IPSet objects than the number you specify for Limit, // the response includes a NextMarker value that you can use to get another batch // of IPSet objects. - Limit *int32 + Limit int32 // AWS WAF returns a NextMarker value in the response that allows you to list // another group of IPSets. For the second and subsequent ListIPSets requests, @@ -51,7 +51,7 @@ type ListIPSetsInput struct { type ListIPSetsOutput struct { // An array of IPSetSummary objects. - IPSets []*types.IPSetSummary + IPSets []types.IPSetSummary // To list more IPSet objects, submit another ListIPSets request, and in the next // request use the NextMarker response value as the NextMarker value. diff --git a/service/waf/api_op_ListLoggingConfigurations.go b/service/waf/api_op_ListLoggingConfigurations.go index 1f7a058201c..138b71c345d 100644 --- a/service/waf/api_op_ListLoggingConfigurations.go +++ b/service/waf/api_op_ListLoggingConfigurations.go @@ -39,7 +39,7 @@ type ListLoggingConfigurationsInput struct { // for this request. If you have more LoggingConfigurations than the number that // you specify for Limit, the response includes a NextMarker value that you can use // to get another batch of LoggingConfigurations. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more LoggingConfigurations than // the value of Limit, AWS WAF returns a NextMarker value in the response that @@ -53,7 +53,7 @@ type ListLoggingConfigurationsInput struct { type ListLoggingConfigurationsOutput struct { // An array of LoggingConfiguration objects. - LoggingConfigurations []*types.LoggingConfiguration + LoggingConfigurations []types.LoggingConfiguration // If you have more LoggingConfigurations than the number that you specified for // Limit in the request, the response includes a NextMarker value. To list more diff --git a/service/waf/api_op_ListRateBasedRules.go b/service/waf/api_op_ListRateBasedRules.go index 59bbbb174b3..e7d2848637c 100644 --- a/service/waf/api_op_ListRateBasedRules.go +++ b/service/waf/api_op_ListRateBasedRules.go @@ -38,7 +38,7 @@ type ListRateBasedRulesInput struct { // Specifies the number of Rules that you want AWS WAF to return for this request. // If you have more Rules than the number that you specify for Limit, the response // includes a NextMarker value that you can use to get another batch of Rules. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more Rules than the value of // Limit, AWS WAF returns a NextMarker value in the response that allows you to @@ -57,7 +57,7 @@ type ListRateBasedRulesOutput struct { NextMarker *string // An array of RuleSummary objects. - Rules []*types.RuleSummary + Rules []types.RuleSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/waf/api_op_ListRegexMatchSets.go b/service/waf/api_op_ListRegexMatchSets.go index e34371f39ba..34c600fe47b 100644 --- a/service/waf/api_op_ListRegexMatchSets.go +++ b/service/waf/api_op_ListRegexMatchSets.go @@ -39,7 +39,7 @@ type ListRegexMatchSetsInput struct { // for this request. If you have more RegexMatchSet objects than the number you // specify for Limit, the response includes a NextMarker value that you can use to // get another batch of RegexMatchSet objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more RegexMatchSet objects than // the value of Limit, AWS WAF returns a NextMarker value in the response that @@ -59,7 +59,7 @@ type ListRegexMatchSetsOutput struct { NextMarker *string // An array of RegexMatchSetSummary objects. - RegexMatchSets []*types.RegexMatchSetSummary + RegexMatchSets []types.RegexMatchSetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/waf/api_op_ListRegexPatternSets.go b/service/waf/api_op_ListRegexPatternSets.go index df307e81ea2..f72ec389be7 100644 --- a/service/waf/api_op_ListRegexPatternSets.go +++ b/service/waf/api_op_ListRegexPatternSets.go @@ -39,7 +39,7 @@ type ListRegexPatternSetsInput struct { // for this request. If you have more RegexPatternSet objects than the number you // specify for Limit, the response includes a NextMarker value that you can use to // get another batch of RegexPatternSet objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more RegexPatternSet objects than // the value of Limit, AWS WAF returns a NextMarker value in the response that @@ -60,7 +60,7 @@ type ListRegexPatternSetsOutput struct { NextMarker *string // An array of RegexPatternSetSummary objects. - RegexPatternSets []*types.RegexPatternSetSummary + RegexPatternSets []types.RegexPatternSetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/waf/api_op_ListRuleGroups.go b/service/waf/api_op_ListRuleGroups.go index 9bff341a54a..1c6dda659dd 100644 --- a/service/waf/api_op_ListRuleGroups.go +++ b/service/waf/api_op_ListRuleGroups.go @@ -39,7 +39,7 @@ type ListRuleGroupsInput struct { // request. If you have more RuleGroups than the number that you specify for Limit, // the response includes a NextMarker value that you can use to get another batch // of RuleGroups. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more RuleGroups than the value of // Limit, AWS WAF returns a NextMarker value in the response that allows you to @@ -58,7 +58,7 @@ type ListRuleGroupsOutput struct { NextMarker *string // An array of RuleGroup objects. - RuleGroups []*types.RuleGroupSummary + RuleGroups []types.RuleGroupSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/waf/api_op_ListRules.go b/service/waf/api_op_ListRules.go index 5fb38611b34..30ba1b7881c 100644 --- a/service/waf/api_op_ListRules.go +++ b/service/waf/api_op_ListRules.go @@ -38,7 +38,7 @@ type ListRulesInput struct { // Specifies the number of Rules that you want AWS WAF to return for this request. // If you have more Rules than the number that you specify for Limit, the response // includes a NextMarker value that you can use to get another batch of Rules. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more Rules than the value of // Limit, AWS WAF returns a NextMarker value in the response that allows you to @@ -57,7 +57,7 @@ type ListRulesOutput struct { NextMarker *string // An array of RuleSummary objects. - Rules []*types.RuleSummary + Rules []types.RuleSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/waf/api_op_ListSizeConstraintSets.go b/service/waf/api_op_ListSizeConstraintSets.go index db16acfc910..375a4933581 100644 --- a/service/waf/api_op_ListSizeConstraintSets.go +++ b/service/waf/api_op_ListSizeConstraintSets.go @@ -39,7 +39,7 @@ type ListSizeConstraintSetsInput struct { // return for this request. If you have more SizeConstraintSets objects than the // number you specify for Limit, the response includes a NextMarker value that you // can use to get another batch of SizeConstraintSet objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more SizeConstraintSets than the // value of Limit, AWS WAF returns a NextMarker value in the response that allows @@ -59,7 +59,7 @@ type ListSizeConstraintSetsOutput struct { NextMarker *string // An array of SizeConstraintSetSummary objects. - SizeConstraintSets []*types.SizeConstraintSetSummary + SizeConstraintSets []types.SizeConstraintSetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/waf/api_op_ListSqlInjectionMatchSets.go b/service/waf/api_op_ListSqlInjectionMatchSets.go index e6707f7a76d..57796ef5f56 100644 --- a/service/waf/api_op_ListSqlInjectionMatchSets.go +++ b/service/waf/api_op_ListSqlInjectionMatchSets.go @@ -41,7 +41,7 @@ type ListSqlInjectionMatchSetsInput struct { // return for this request. If you have more SqlInjectionMatchSet objects than the // number you specify for Limit, the response includes a NextMarker value that you // can use to get another batch of Rules. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more SqlInjectionMatchSet objects // than the value of Limit, AWS WAF returns a NextMarker value in the response that @@ -63,7 +63,7 @@ type ListSqlInjectionMatchSetsOutput struct { NextMarker *string // An array of SqlInjectionMatchSetSummary objects. - SqlInjectionMatchSets []*types.SqlInjectionMatchSetSummary + SqlInjectionMatchSets []types.SqlInjectionMatchSetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/waf/api_op_ListSubscribedRuleGroups.go b/service/waf/api_op_ListSubscribedRuleGroups.go index cdfa19fe7b0..7be5d85aade 100644 --- a/service/waf/api_op_ListSubscribedRuleGroups.go +++ b/service/waf/api_op_ListSubscribedRuleGroups.go @@ -39,7 +39,7 @@ type ListSubscribedRuleGroupsInput struct { // for this request. If you have more objects than the number you specify for // Limit, the response includes a NextMarker value that you can use to get another // batch of objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more ByteMatchSetssubscribed rule // groups than the value of Limit, AWS WAF returns a NextMarker value in the @@ -59,7 +59,7 @@ type ListSubscribedRuleGroupsOutput struct { NextMarker *string // An array of RuleGroup objects. - RuleGroups []*types.SubscribedRuleGroupSummary + RuleGroups []types.SubscribedRuleGroupSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/waf/api_op_ListTagsForResource.go b/service/waf/api_op_ListTagsForResource.go index c9dca457b75..1b5c30b3046 100644 --- a/service/waf/api_op_ListTagsForResource.go +++ b/service/waf/api_op_ListTagsForResource.go @@ -48,7 +48,7 @@ type ListTagsForResourceInput struct { ResourceARN *string // - Limit *int32 + Limit int32 // NextMarker *string diff --git a/service/waf/api_op_ListWebACLs.go b/service/waf/api_op_ListWebACLs.go index fcea1aa32e8..7a2c3a5a47d 100644 --- a/service/waf/api_op_ListWebACLs.go +++ b/service/waf/api_op_ListWebACLs.go @@ -39,7 +39,7 @@ type ListWebACLsInput struct { // request. If you have more WebACL objects than the number that you specify for // Limit, the response includes a NextMarker value that you can use to get another // batch of WebACL objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more WebACL objects than the // number that you specify for Limit, AWS WAF returns a NextMarker value in the @@ -58,7 +58,7 @@ type ListWebACLsOutput struct { NextMarker *string // An array of WebACLSummary objects. - WebACLs []*types.WebACLSummary + WebACLs []types.WebACLSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/waf/api_op_ListXssMatchSets.go b/service/waf/api_op_ListXssMatchSets.go index 5063f9d734b..c32ee56cee0 100644 --- a/service/waf/api_op_ListXssMatchSets.go +++ b/service/waf/api_op_ListXssMatchSets.go @@ -40,7 +40,7 @@ type ListXssMatchSetsInput struct { // this request. If you have more XssMatchSet objects than the number you specify // for Limit, the response includes a NextMarker value that you can use to get // another batch of Rules. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more XssMatchSet objects than the // value of Limit, AWS WAF returns a NextMarker value in the response that allows @@ -60,7 +60,7 @@ type ListXssMatchSetsOutput struct { NextMarker *string // An array of XssMatchSetSummary objects. - XssMatchSets []*types.XssMatchSetSummary + XssMatchSets []types.XssMatchSetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/waf/api_op_TagResource.go b/service/waf/api_op_TagResource.go index b4785fdf3af..5f856a684ce 100644 --- a/service/waf/api_op_TagResource.go +++ b/service/waf/api_op_TagResource.go @@ -50,7 +50,7 @@ type TagResourceInput struct { // // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/waf/api_op_UntagResource.go b/service/waf/api_op_UntagResource.go index 9ac952be275..a39c660c9a9 100644 --- a/service/waf/api_op_UntagResource.go +++ b/service/waf/api_op_UntagResource.go @@ -42,7 +42,7 @@ type UntagResourceInput struct { // // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/waf/api_op_UpdateByteMatchSet.go b/service/waf/api_op_UpdateByteMatchSet.go index 8695ce5d7af..e35d9bc1038 100644 --- a/service/waf/api_op_UpdateByteMatchSet.go +++ b/service/waf/api_op_UpdateByteMatchSet.go @@ -101,7 +101,7 @@ type UpdateByteMatchSetInput struct { // * FieldToMatch: Contains Data and Type // // This member is required. - Updates []*types.ByteMatchSetUpdate + Updates []types.ByteMatchSetUpdate } type UpdateByteMatchSetOutput struct { diff --git a/service/waf/api_op_UpdateGeoMatchSet.go b/service/waf/api_op_UpdateGeoMatchSet.go index d38f0e12252..b925eaf19b1 100644 --- a/service/waf/api_op_UpdateGeoMatchSet.go +++ b/service/waf/api_op_UpdateGeoMatchSet.go @@ -89,7 +89,7 @@ type UpdateGeoMatchSetInput struct { // GeoMatchSetUpdate objects in your request. // // This member is required. - Updates []*types.GeoMatchSetUpdate + Updates []types.GeoMatchSetUpdate } type UpdateGeoMatchSetOutput struct { diff --git a/service/waf/api_op_UpdateIPSet.go b/service/waf/api_op_UpdateIPSet.go index f1a9b68741f..49eab4aca1e 100644 --- a/service/waf/api_op_UpdateIPSet.go +++ b/service/waf/api_op_UpdateIPSet.go @@ -112,7 +112,7 @@ type UpdateIPSetInput struct { // You can insert a maximum of 1000 addresses in a single request. // // This member is required. - Updates []*types.IPSetUpdate + Updates []types.IPSetUpdate } type UpdateIPSetOutput struct { diff --git a/service/waf/api_op_UpdateRateBasedRule.go b/service/waf/api_op_UpdateRateBasedRule.go index c8907865ad4..fde5c6a710f 100644 --- a/service/waf/api_op_UpdateRateBasedRule.go +++ b/service/waf/api_op_UpdateRateBasedRule.go @@ -80,7 +80,7 @@ type UpdateRateBasedRuleInput struct { // are also met, AWS WAF triggers the action that is specified for this rule. // // This member is required. - RateLimit *int64 + RateLimit int64 // The RuleId of the RateBasedRule that you want to update. RuleId is returned by // CreateRateBasedRule and by ListRateBasedRules. @@ -92,7 +92,7 @@ type UpdateRateBasedRuleInput struct { // RateBasedRule. // // This member is required. - Updates []*types.RuleUpdate + Updates []types.RuleUpdate } type UpdateRateBasedRuleOutput struct { diff --git a/service/waf/api_op_UpdateRegexMatchSet.go b/service/waf/api_op_UpdateRegexMatchSet.go index 5b8a2002d2d..392e559cafd 100644 --- a/service/waf/api_op_UpdateRegexMatchSet.go +++ b/service/waf/api_op_UpdateRegexMatchSet.go @@ -88,7 +88,7 @@ type UpdateRegexMatchSetInput struct { // from a RegexMatchSet. For more information, see RegexMatchTuple. // // This member is required. - Updates []*types.RegexMatchSetUpdate + Updates []types.RegexMatchSetUpdate } type UpdateRegexMatchSetOutput struct { diff --git a/service/waf/api_op_UpdateRegexPatternSet.go b/service/waf/api_op_UpdateRegexPatternSet.go index 5f64b7b4c32..9f331638702 100644 --- a/service/waf/api_op_UpdateRegexPatternSet.go +++ b/service/waf/api_op_UpdateRegexPatternSet.go @@ -88,7 +88,7 @@ type UpdateRegexPatternSetInput struct { // from a RegexPatternSet. // // This member is required. - Updates []*types.RegexPatternSetUpdate + Updates []types.RegexPatternSetUpdate } type UpdateRegexPatternSetOutput struct { diff --git a/service/waf/api_op_UpdateRule.go b/service/waf/api_op_UpdateRule.go index 2b76890b7c8..618b78b08a8 100644 --- a/service/waf/api_op_UpdateRule.go +++ b/service/waf/api_op_UpdateRule.go @@ -95,7 +95,7 @@ type UpdateRuleInput struct { // * FieldToMatch: Contains Data and Type // // This member is required. - Updates []*types.RuleUpdate + Updates []types.RuleUpdate } type UpdateRuleOutput struct { diff --git a/service/waf/api_op_UpdateRuleGroup.go b/service/waf/api_op_UpdateRuleGroup.go index 4d5b1686351..5afb9855ee2 100644 --- a/service/waf/api_op_UpdateRuleGroup.go +++ b/service/waf/api_op_UpdateRuleGroup.go @@ -74,7 +74,7 @@ type UpdateRuleGroupInput struct { // requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction. // // This member is required. - Updates []*types.RuleGroupUpdate + Updates []types.RuleGroupUpdate } type UpdateRuleGroupOutput struct { diff --git a/service/waf/api_op_UpdateSizeConstraintSet.go b/service/waf/api_op_UpdateSizeConstraintSet.go index 4f199197022..891c0d11266 100644 --- a/service/waf/api_op_UpdateSizeConstraintSet.go +++ b/service/waf/api_op_UpdateSizeConstraintSet.go @@ -105,7 +105,7 @@ type UpdateSizeConstraintSetInput struct { // * FieldToMatch: Contains Data and Type // // This member is required. - Updates []*types.SizeConstraintSetUpdate + Updates []types.SizeConstraintSetUpdate } type UpdateSizeConstraintSetOutput struct { diff --git a/service/waf/api_op_UpdateSqlInjectionMatchSet.go b/service/waf/api_op_UpdateSqlInjectionMatchSet.go index 189e2235181..7e3bc1ad658 100644 --- a/service/waf/api_op_UpdateSqlInjectionMatchSet.go +++ b/service/waf/api_op_UpdateSqlInjectionMatchSet.go @@ -99,7 +99,7 @@ type UpdateSqlInjectionMatchSetInput struct { // * FieldToMatch: Contains Data and Type // // This member is required. - Updates []*types.SqlInjectionMatchSetUpdate + Updates []types.SqlInjectionMatchSetUpdate } // The response to an UpdateSqlInjectionMatchSets request. diff --git a/service/waf/api_op_UpdateWebACL.go b/service/waf/api_op_UpdateWebACL.go index 407d7ba5741..091c396b09d 100644 --- a/service/waf/api_op_UpdateWebACL.go +++ b/service/waf/api_op_UpdateWebACL.go @@ -123,7 +123,7 @@ type UpdateWebACLInput struct { // ActivatedRule|OverrideAction. // // * WafAction: Contains Type - Updates []*types.WebACLUpdate + Updates []types.WebACLUpdate } type UpdateWebACLOutput struct { diff --git a/service/waf/api_op_UpdateXssMatchSet.go b/service/waf/api_op_UpdateXssMatchSet.go index f1103fb30da..e04b17efc2b 100644 --- a/service/waf/api_op_UpdateXssMatchSet.go +++ b/service/waf/api_op_UpdateXssMatchSet.go @@ -89,7 +89,7 @@ type UpdateXssMatchSetInput struct { // * FieldToMatch: Contains Data and Type // // This member is required. - Updates []*types.XssMatchSetUpdate + Updates []types.XssMatchSetUpdate // The XssMatchSetId of the XssMatchSet that you want to update. XssMatchSetId is // returned by CreateXssMatchSet and by ListXssMatchSets. diff --git a/service/waf/deserializers.go b/service/waf/deserializers.go index 74546bdcd8e..1faaffa366f 100644 --- a/service/waf/deserializers.go +++ b/service/waf/deserializers.go @@ -10182,7 +10182,7 @@ func awsAwsjson11_deserializeDocumentActivatedRule(v **types.ActivatedRule, valu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } case "Type": @@ -10203,7 +10203,7 @@ func awsAwsjson11_deserializeDocumentActivatedRule(v **types.ActivatedRule, valu return nil } -func awsAwsjson11_deserializeDocumentActivatedRules(v *[]*types.ActivatedRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentActivatedRules(v *[]types.ActivatedRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10216,18 +10216,20 @@ func awsAwsjson11_deserializeDocumentActivatedRules(v *[]*types.ActivatedRule, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActivatedRule + var cv []types.ActivatedRule if *v == nil { - cv = []*types.ActivatedRule{} + cv = []types.ActivatedRule{} } else { cv = *v } for _, value := range shape { - var col *types.ActivatedRule - if err := awsAwsjson11_deserializeDocumentActivatedRule(&col, value); err != nil { + var col types.ActivatedRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentActivatedRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10263,7 +10265,7 @@ func awsAwsjson11_deserializeDocumentByteMatchSet(v **types.ByteMatchSet, value if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ByteMatchSetId = &jtv + sv.ByteMatchSetId = ptr.String(jtv) } case "ByteMatchTuples": @@ -10277,7 +10279,7 @@ func awsAwsjson11_deserializeDocumentByteMatchSet(v **types.ByteMatchSet, value if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10289,7 +10291,7 @@ func awsAwsjson11_deserializeDocumentByteMatchSet(v **types.ByteMatchSet, value return nil } -func awsAwsjson11_deserializeDocumentByteMatchSetSummaries(v *[]*types.ByteMatchSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentByteMatchSetSummaries(v *[]types.ByteMatchSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10302,18 +10304,20 @@ func awsAwsjson11_deserializeDocumentByteMatchSetSummaries(v *[]*types.ByteMatch return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ByteMatchSetSummary + var cv []types.ByteMatchSetSummary if *v == nil { - cv = []*types.ByteMatchSetSummary{} + cv = []types.ByteMatchSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ByteMatchSetSummary - if err := awsAwsjson11_deserializeDocumentByteMatchSetSummary(&col, value); err != nil { + var col types.ByteMatchSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentByteMatchSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10349,7 +10353,7 @@ func awsAwsjson11_deserializeDocumentByteMatchSetSummary(v **types.ByteMatchSetS if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ByteMatchSetId = &jtv + sv.ByteMatchSetId = ptr.String(jtv) } case "Name": @@ -10358,7 +10362,7 @@ func awsAwsjson11_deserializeDocumentByteMatchSetSummary(v **types.ByteMatchSetS if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10437,7 +10441,7 @@ func awsAwsjson11_deserializeDocumentByteMatchTuple(v **types.ByteMatchTuple, va return nil } -func awsAwsjson11_deserializeDocumentByteMatchTuples(v *[]*types.ByteMatchTuple, value interface{}) error { +func awsAwsjson11_deserializeDocumentByteMatchTuples(v *[]types.ByteMatchTuple, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10450,18 +10454,20 @@ func awsAwsjson11_deserializeDocumentByteMatchTuples(v *[]*types.ByteMatchTuple, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ByteMatchTuple + var cv []types.ByteMatchTuple if *v == nil { - cv = []*types.ByteMatchTuple{} + cv = []types.ByteMatchTuple{} } else { cv = *v } for _, value := range shape { - var col *types.ByteMatchTuple - if err := awsAwsjson11_deserializeDocumentByteMatchTuple(&col, value); err != nil { + var col types.ByteMatchTuple + destAddr := &col + if err := awsAwsjson11_deserializeDocumentByteMatchTuple(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10497,7 +10503,7 @@ func awsAwsjson11_deserializeDocumentExcludedRule(v **types.ExcludedRule, value if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } default: @@ -10509,7 +10515,7 @@ func awsAwsjson11_deserializeDocumentExcludedRule(v **types.ExcludedRule, value return nil } -func awsAwsjson11_deserializeDocumentExcludedRules(v *[]*types.ExcludedRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentExcludedRules(v *[]types.ExcludedRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10522,18 +10528,20 @@ func awsAwsjson11_deserializeDocumentExcludedRules(v *[]*types.ExcludedRule, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExcludedRule + var cv []types.ExcludedRule if *v == nil { - cv = []*types.ExcludedRule{} + cv = []types.ExcludedRule{} } else { cv = *v } for _, value := range shape { - var col *types.ExcludedRule - if err := awsAwsjson11_deserializeDocumentExcludedRule(&col, value); err != nil { + var col types.ExcludedRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExcludedRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10569,7 +10577,7 @@ func awsAwsjson11_deserializeDocumentFieldToMatch(v **types.FieldToMatch, value if !ok { return fmt.Errorf("expected MatchFieldData to be of type string, got %T instead", value) } - sv.Data = &jtv + sv.Data = ptr.String(jtv) } case "Type": @@ -10639,7 +10647,7 @@ func awsAwsjson11_deserializeDocumentGeoMatchConstraint(v **types.GeoMatchConstr return nil } -func awsAwsjson11_deserializeDocumentGeoMatchConstraints(v *[]*types.GeoMatchConstraint, value interface{}) error { +func awsAwsjson11_deserializeDocumentGeoMatchConstraints(v *[]types.GeoMatchConstraint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10652,18 +10660,20 @@ func awsAwsjson11_deserializeDocumentGeoMatchConstraints(v *[]*types.GeoMatchCon return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GeoMatchConstraint + var cv []types.GeoMatchConstraint if *v == nil { - cv = []*types.GeoMatchConstraint{} + cv = []types.GeoMatchConstraint{} } else { cv = *v } for _, value := range shape { - var col *types.GeoMatchConstraint - if err := awsAwsjson11_deserializeDocumentGeoMatchConstraint(&col, value); err != nil { + var col types.GeoMatchConstraint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGeoMatchConstraint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10704,7 +10714,7 @@ func awsAwsjson11_deserializeDocumentGeoMatchSet(v **types.GeoMatchSet, value in if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.GeoMatchSetId = &jtv + sv.GeoMatchSetId = ptr.String(jtv) } case "Name": @@ -10713,7 +10723,7 @@ func awsAwsjson11_deserializeDocumentGeoMatchSet(v **types.GeoMatchSet, value in if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10725,7 +10735,7 @@ func awsAwsjson11_deserializeDocumentGeoMatchSet(v **types.GeoMatchSet, value in return nil } -func awsAwsjson11_deserializeDocumentGeoMatchSetSummaries(v *[]*types.GeoMatchSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentGeoMatchSetSummaries(v *[]types.GeoMatchSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10738,18 +10748,20 @@ func awsAwsjson11_deserializeDocumentGeoMatchSetSummaries(v *[]*types.GeoMatchSe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GeoMatchSetSummary + var cv []types.GeoMatchSetSummary if *v == nil { - cv = []*types.GeoMatchSetSummary{} + cv = []types.GeoMatchSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.GeoMatchSetSummary - if err := awsAwsjson11_deserializeDocumentGeoMatchSetSummary(&col, value); err != nil { + var col types.GeoMatchSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGeoMatchSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10785,7 +10797,7 @@ func awsAwsjson11_deserializeDocumentGeoMatchSetSummary(v **types.GeoMatchSetSum if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.GeoMatchSetId = &jtv + sv.GeoMatchSetId = ptr.String(jtv) } case "Name": @@ -10794,7 +10806,7 @@ func awsAwsjson11_deserializeDocumentGeoMatchSetSummary(v **types.GeoMatchSetSum if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10834,7 +10846,7 @@ func awsAwsjson11_deserializeDocumentHTTPHeader(v **types.HTTPHeader, value inte if !ok { return fmt.Errorf("expected HeaderName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Value": @@ -10843,7 +10855,7 @@ func awsAwsjson11_deserializeDocumentHTTPHeader(v **types.HTTPHeader, value inte if !ok { return fmt.Errorf("expected HeaderValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -10855,7 +10867,7 @@ func awsAwsjson11_deserializeDocumentHTTPHeader(v **types.HTTPHeader, value inte return nil } -func awsAwsjson11_deserializeDocumentHTTPHeaders(v *[]*types.HTTPHeader, value interface{}) error { +func awsAwsjson11_deserializeDocumentHTTPHeaders(v *[]types.HTTPHeader, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10868,18 +10880,20 @@ func awsAwsjson11_deserializeDocumentHTTPHeaders(v *[]*types.HTTPHeader, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HTTPHeader + var cv []types.HTTPHeader if *v == nil { - cv = []*types.HTTPHeader{} + cv = []types.HTTPHeader{} } else { cv = *v } for _, value := range shape { - var col *types.HTTPHeader - if err := awsAwsjson11_deserializeDocumentHTTPHeader(&col, value); err != nil { + var col types.HTTPHeader + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHTTPHeader(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10915,7 +10929,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected IPString to be of type string, got %T instead", value) } - sv.ClientIP = &jtv + sv.ClientIP = ptr.String(jtv) } case "Country": @@ -10924,7 +10938,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected Country to be of type string, got %T instead", value) } - sv.Country = &jtv + sv.Country = ptr.String(jtv) } case "Headers": @@ -10938,7 +10952,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected HTTPVersion to be of type string, got %T instead", value) } - sv.HTTPVersion = &jtv + sv.HTTPVersion = ptr.String(jtv) } case "Method": @@ -10947,7 +10961,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected HTTPMethod to be of type string, got %T instead", value) } - sv.Method = &jtv + sv.Method = ptr.String(jtv) } case "URI": @@ -10956,7 +10970,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected URIString to be of type string, got %T instead", value) } - sv.URI = &jtv + sv.URI = ptr.String(jtv) } default: @@ -11001,7 +11015,7 @@ func awsAwsjson11_deserializeDocumentIPSet(v **types.IPSet, value interface{}) e if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.IPSetId = &jtv + sv.IPSetId = ptr.String(jtv) } case "Name": @@ -11010,7 +11024,7 @@ func awsAwsjson11_deserializeDocumentIPSet(v **types.IPSet, value interface{}) e if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -11059,7 +11073,7 @@ func awsAwsjson11_deserializeDocumentIPSetDescriptor(v **types.IPSetDescriptor, if !ok { return fmt.Errorf("expected IPSetDescriptorValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -11071,7 +11085,7 @@ func awsAwsjson11_deserializeDocumentIPSetDescriptor(v **types.IPSetDescriptor, return nil } -func awsAwsjson11_deserializeDocumentIPSetDescriptors(v *[]*types.IPSetDescriptor, value interface{}) error { +func awsAwsjson11_deserializeDocumentIPSetDescriptors(v *[]types.IPSetDescriptor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11084,18 +11098,20 @@ func awsAwsjson11_deserializeDocumentIPSetDescriptors(v *[]*types.IPSetDescripto return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IPSetDescriptor + var cv []types.IPSetDescriptor if *v == nil { - cv = []*types.IPSetDescriptor{} + cv = []types.IPSetDescriptor{} } else { cv = *v } for _, value := range shape { - var col *types.IPSetDescriptor - if err := awsAwsjson11_deserializeDocumentIPSetDescriptor(&col, value); err != nil { + var col types.IPSetDescriptor + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIPSetDescriptor(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11103,7 +11119,7 @@ func awsAwsjson11_deserializeDocumentIPSetDescriptors(v *[]*types.IPSetDescripto return nil } -func awsAwsjson11_deserializeDocumentIPSetSummaries(v *[]*types.IPSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentIPSetSummaries(v *[]types.IPSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11116,18 +11132,20 @@ func awsAwsjson11_deserializeDocumentIPSetSummaries(v *[]*types.IPSetSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IPSetSummary + var cv []types.IPSetSummary if *v == nil { - cv = []*types.IPSetSummary{} + cv = []types.IPSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.IPSetSummary - if err := awsAwsjson11_deserializeDocumentIPSetSummary(&col, value); err != nil { + var col types.IPSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIPSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11163,7 +11181,7 @@ func awsAwsjson11_deserializeDocumentIPSetSummary(v **types.IPSetSummary, value if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.IPSetId = &jtv + sv.IPSetId = ptr.String(jtv) } case "Name": @@ -11172,7 +11190,7 @@ func awsAwsjson11_deserializeDocumentIPSetSummary(v **types.IPSetSummary, value if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -11184,7 +11202,7 @@ func awsAwsjson11_deserializeDocumentIPSetSummary(v **types.IPSetSummary, value return nil } -func awsAwsjson11_deserializeDocumentLogDestinationConfigs(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogDestinationConfigs(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11197,21 +11215,21 @@ func awsAwsjson11_deserializeDocumentLogDestinationConfigs(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11258,7 +11276,7 @@ func awsAwsjson11_deserializeDocumentLoggingConfiguration(v **types.LoggingConfi if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } default: @@ -11270,7 +11288,7 @@ func awsAwsjson11_deserializeDocumentLoggingConfiguration(v **types.LoggingConfi return nil } -func awsAwsjson11_deserializeDocumentLoggingConfigurations(v *[]*types.LoggingConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentLoggingConfigurations(v *[]types.LoggingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11283,18 +11301,20 @@ func awsAwsjson11_deserializeDocumentLoggingConfigurations(v *[]*types.LoggingCo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LoggingConfiguration + var cv []types.LoggingConfiguration if *v == nil { - cv = []*types.LoggingConfiguration{} + cv = []types.LoggingConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.LoggingConfiguration - if err := awsAwsjson11_deserializeDocumentLoggingConfiguration(&col, value); err != nil { + var col types.LoggingConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLoggingConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11302,7 +11322,7 @@ func awsAwsjson11_deserializeDocumentLoggingConfigurations(v *[]*types.LoggingCo return nil } -func awsAwsjson11_deserializeDocumentManagedKeys(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentManagedKeys(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11315,21 +11335,21 @@ func awsAwsjson11_deserializeDocumentManagedKeys(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ManagedKey to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11366,7 +11386,7 @@ func awsAwsjson11_deserializeDocumentPredicate(v **types.Predicate, value interf if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataId = &jtv + sv.DataId = ptr.String(jtv) } case "Negated": @@ -11375,7 +11395,7 @@ func awsAwsjson11_deserializeDocumentPredicate(v **types.Predicate, value interf if !ok { return fmt.Errorf("expected Negated to be of type *bool, got %T instead", value) } - sv.Negated = &jtv + sv.Negated = ptr.Bool(jtv) } case "Type": @@ -11396,7 +11416,7 @@ func awsAwsjson11_deserializeDocumentPredicate(v **types.Predicate, value interf return nil } -func awsAwsjson11_deserializeDocumentPredicates(v *[]*types.Predicate, value interface{}) error { +func awsAwsjson11_deserializeDocumentPredicates(v *[]types.Predicate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11409,18 +11429,20 @@ func awsAwsjson11_deserializeDocumentPredicates(v *[]*types.Predicate, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Predicate + var cv []types.Predicate if *v == nil { - cv = []*types.Predicate{} + cv = []types.Predicate{} } else { cv = *v } for _, value := range shape { - var col *types.Predicate - if err := awsAwsjson11_deserializeDocumentPredicate(&col, value); err != nil { + var col types.Predicate + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPredicate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11461,7 +11483,7 @@ func awsAwsjson11_deserializeDocumentRateBasedRule(v **types.RateBasedRule, valu if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Name": @@ -11470,7 +11492,7 @@ func awsAwsjson11_deserializeDocumentRateBasedRule(v **types.RateBasedRule, valu if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RateKey": @@ -11492,7 +11514,7 @@ func awsAwsjson11_deserializeDocumentRateBasedRule(v **types.RateBasedRule, valu if err != nil { return err } - sv.RateLimit = &i64 + sv.RateLimit = i64 } case "RuleId": @@ -11501,7 +11523,7 @@ func awsAwsjson11_deserializeDocumentRateBasedRule(v **types.RateBasedRule, valu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } default: @@ -11513,7 +11535,7 @@ func awsAwsjson11_deserializeDocumentRateBasedRule(v **types.RateBasedRule, valu return nil } -func awsAwsjson11_deserializeDocumentRedactedFields(v *[]*types.FieldToMatch, value interface{}) error { +func awsAwsjson11_deserializeDocumentRedactedFields(v *[]types.FieldToMatch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11526,18 +11548,20 @@ func awsAwsjson11_deserializeDocumentRedactedFields(v *[]*types.FieldToMatch, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FieldToMatch + var cv []types.FieldToMatch if *v == nil { - cv = []*types.FieldToMatch{} + cv = []types.FieldToMatch{} } else { cv = *v } for _, value := range shape { - var col *types.FieldToMatch - if err := awsAwsjson11_deserializeDocumentFieldToMatch(&col, value); err != nil { + var col types.FieldToMatch + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFieldToMatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11573,7 +11597,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchSet(v **types.RegexMatchSet, valu if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RegexMatchSetId": @@ -11582,7 +11606,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchSet(v **types.RegexMatchSet, valu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RegexMatchSetId = &jtv + sv.RegexMatchSetId = ptr.String(jtv) } case "RegexMatchTuples": @@ -11599,7 +11623,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchSet(v **types.RegexMatchSet, valu return nil } -func awsAwsjson11_deserializeDocumentRegexMatchSetSummaries(v *[]*types.RegexMatchSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentRegexMatchSetSummaries(v *[]types.RegexMatchSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11612,18 +11636,20 @@ func awsAwsjson11_deserializeDocumentRegexMatchSetSummaries(v *[]*types.RegexMat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RegexMatchSetSummary + var cv []types.RegexMatchSetSummary if *v == nil { - cv = []*types.RegexMatchSetSummary{} + cv = []types.RegexMatchSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RegexMatchSetSummary - if err := awsAwsjson11_deserializeDocumentRegexMatchSetSummary(&col, value); err != nil { + var col types.RegexMatchSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRegexMatchSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11659,7 +11685,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchSetSummary(v **types.RegexMatchSe if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RegexMatchSetId": @@ -11668,7 +11694,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchSetSummary(v **types.RegexMatchSe if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RegexMatchSetId = &jtv + sv.RegexMatchSetId = ptr.String(jtv) } default: @@ -11713,7 +11739,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchTuple(v **types.RegexMatchTuple, if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RegexPatternSetId = &jtv + sv.RegexPatternSetId = ptr.String(jtv) } case "TextTransformation": @@ -11734,7 +11760,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchTuple(v **types.RegexMatchTuple, return nil } -func awsAwsjson11_deserializeDocumentRegexMatchTuples(v *[]*types.RegexMatchTuple, value interface{}) error { +func awsAwsjson11_deserializeDocumentRegexMatchTuples(v *[]types.RegexMatchTuple, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11747,18 +11773,20 @@ func awsAwsjson11_deserializeDocumentRegexMatchTuples(v *[]*types.RegexMatchTupl return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RegexMatchTuple + var cv []types.RegexMatchTuple if *v == nil { - cv = []*types.RegexMatchTuple{} + cv = []types.RegexMatchTuple{} } else { cv = *v } for _, value := range shape { - var col *types.RegexMatchTuple - if err := awsAwsjson11_deserializeDocumentRegexMatchTuple(&col, value); err != nil { + var col types.RegexMatchTuple + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRegexMatchTuple(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11794,7 +11822,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSet(v **types.RegexPatternSet, if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RegexPatternSetId": @@ -11803,7 +11831,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSet(v **types.RegexPatternSet, if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RegexPatternSetId = &jtv + sv.RegexPatternSetId = ptr.String(jtv) } case "RegexPatternStrings": @@ -11820,7 +11848,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSet(v **types.RegexPatternSet, return nil } -func awsAwsjson11_deserializeDocumentRegexPatternSetSummaries(v *[]*types.RegexPatternSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentRegexPatternSetSummaries(v *[]types.RegexPatternSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11833,18 +11861,20 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummaries(v *[]*types.RegexP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RegexPatternSetSummary + var cv []types.RegexPatternSetSummary if *v == nil { - cv = []*types.RegexPatternSetSummary{} + cv = []types.RegexPatternSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RegexPatternSetSummary - if err := awsAwsjson11_deserializeDocumentRegexPatternSetSummary(&col, value); err != nil { + var col types.RegexPatternSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRegexPatternSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11880,7 +11910,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummary(v **types.RegexPatte if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RegexPatternSetId": @@ -11889,7 +11919,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummary(v **types.RegexPatte if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RegexPatternSetId = &jtv + sv.RegexPatternSetId = ptr.String(jtv) } default: @@ -11901,7 +11931,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummary(v **types.RegexPatte return nil } -func awsAwsjson11_deserializeDocumentRegexPatternStrings(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRegexPatternStrings(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11914,21 +11944,21 @@ func awsAwsjson11_deserializeDocumentRegexPatternStrings(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RegexPatternString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11965,7 +11995,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Name": @@ -11974,7 +12004,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Predicates": @@ -11988,7 +12018,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } default: @@ -12028,7 +12058,7 @@ func awsAwsjson11_deserializeDocumentRuleGroup(v **types.RuleGroup, value interf if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Name": @@ -12037,7 +12067,7 @@ func awsAwsjson11_deserializeDocumentRuleGroup(v **types.RuleGroup, value interf if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RuleGroupId": @@ -12046,7 +12076,7 @@ func awsAwsjson11_deserializeDocumentRuleGroup(v **types.RuleGroup, value interf if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleGroupId = &jtv + sv.RuleGroupId = ptr.String(jtv) } default: @@ -12058,7 +12088,7 @@ func awsAwsjson11_deserializeDocumentRuleGroup(v **types.RuleGroup, value interf return nil } -func awsAwsjson11_deserializeDocumentRuleGroupSummaries(v *[]*types.RuleGroupSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuleGroupSummaries(v *[]types.RuleGroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12071,18 +12101,20 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummaries(v *[]*types.RuleGroupSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RuleGroupSummary + var cv []types.RuleGroupSummary if *v == nil { - cv = []*types.RuleGroupSummary{} + cv = []types.RuleGroupSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RuleGroupSummary - if err := awsAwsjson11_deserializeDocumentRuleGroupSummary(&col, value); err != nil { + var col types.RuleGroupSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRuleGroupSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12118,7 +12150,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummary(v **types.RuleGroupSummary if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RuleGroupId": @@ -12127,7 +12159,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummary(v **types.RuleGroupSummary if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleGroupId = &jtv + sv.RuleGroupId = ptr.String(jtv) } default: @@ -12139,7 +12171,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummary(v **types.RuleGroupSummary return nil } -func awsAwsjson11_deserializeDocumentRuleSummaries(v *[]*types.RuleSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuleSummaries(v *[]types.RuleSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12152,18 +12184,20 @@ func awsAwsjson11_deserializeDocumentRuleSummaries(v *[]*types.RuleSummary, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RuleSummary + var cv []types.RuleSummary if *v == nil { - cv = []*types.RuleSummary{} + cv = []types.RuleSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RuleSummary - if err := awsAwsjson11_deserializeDocumentRuleSummary(&col, value); err != nil { + var col types.RuleSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRuleSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12199,7 +12233,7 @@ func awsAwsjson11_deserializeDocumentRuleSummary(v **types.RuleSummary, value in if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RuleId": @@ -12208,7 +12242,7 @@ func awsAwsjson11_deserializeDocumentRuleSummary(v **types.RuleSummary, value in if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } default: @@ -12248,7 +12282,7 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequest(v **types.SampledHTTPReq if !ok { return fmt.Errorf("expected Action to be of type string, got %T instead", value) } - sv.Action = &jtv + sv.Action = ptr.String(jtv) } case "Request": @@ -12262,7 +12296,7 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequest(v **types.SampledHTTPReq if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleWithinRuleGroup = &jtv + sv.RuleWithinRuleGroup = ptr.String(jtv) } case "Timestamp": @@ -12288,7 +12322,7 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequest(v **types.SampledHTTPReq if err != nil { return err } - sv.Weight = &i64 + sv.Weight = i64 } default: @@ -12300,7 +12334,7 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequest(v **types.SampledHTTPReq return nil } -func awsAwsjson11_deserializeDocumentSampledHTTPRequests(v *[]*types.SampledHTTPRequest, value interface{}) error { +func awsAwsjson11_deserializeDocumentSampledHTTPRequests(v *[]types.SampledHTTPRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12313,18 +12347,20 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequests(v *[]*types.SampledHTTP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SampledHTTPRequest + var cv []types.SampledHTTPRequest if *v == nil { - cv = []*types.SampledHTTPRequest{} + cv = []types.SampledHTTPRequest{} } else { cv = *v } for _, value := range shape { - var col *types.SampledHTTPRequest - if err := awsAwsjson11_deserializeDocumentSampledHTTPRequest(&col, value); err != nil { + var col types.SampledHTTPRequest + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSampledHTTPRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12378,7 +12414,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraint(v **types.SizeConstraint, va if err != nil { return err } - sv.Size = &i64 + sv.Size = i64 } case "TextTransformation": @@ -12399,7 +12435,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraint(v **types.SizeConstraint, va return nil } -func awsAwsjson11_deserializeDocumentSizeConstraints(v *[]*types.SizeConstraint, value interface{}) error { +func awsAwsjson11_deserializeDocumentSizeConstraints(v *[]types.SizeConstraint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12412,18 +12448,20 @@ func awsAwsjson11_deserializeDocumentSizeConstraints(v *[]*types.SizeConstraint, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SizeConstraint + var cv []types.SizeConstraint if *v == nil { - cv = []*types.SizeConstraint{} + cv = []types.SizeConstraint{} } else { cv = *v } for _, value := range shape { - var col *types.SizeConstraint - if err := awsAwsjson11_deserializeDocumentSizeConstraint(&col, value); err != nil { + var col types.SizeConstraint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSizeConstraint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12459,7 +12497,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraintSet(v **types.SizeConstraintS if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SizeConstraints": @@ -12473,7 +12511,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraintSet(v **types.SizeConstraintS if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.SizeConstraintSetId = &jtv + sv.SizeConstraintSetId = ptr.String(jtv) } default: @@ -12485,7 +12523,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraintSet(v **types.SizeConstraintS return nil } -func awsAwsjson11_deserializeDocumentSizeConstraintSetSummaries(v *[]*types.SizeConstraintSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSizeConstraintSetSummaries(v *[]types.SizeConstraintSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12498,18 +12536,20 @@ func awsAwsjson11_deserializeDocumentSizeConstraintSetSummaries(v *[]*types.Size return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SizeConstraintSetSummary + var cv []types.SizeConstraintSetSummary if *v == nil { - cv = []*types.SizeConstraintSetSummary{} + cv = []types.SizeConstraintSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SizeConstraintSetSummary - if err := awsAwsjson11_deserializeDocumentSizeConstraintSetSummary(&col, value); err != nil { + var col types.SizeConstraintSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSizeConstraintSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12545,7 +12585,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraintSetSummary(v **types.SizeCons if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SizeConstraintSetId": @@ -12554,7 +12594,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraintSetSummary(v **types.SizeCons if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.SizeConstraintSetId = &jtv + sv.SizeConstraintSetId = ptr.String(jtv) } default: @@ -12594,7 +12634,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchSet(v **types.SqlInjection if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SqlInjectionMatchSetId": @@ -12603,7 +12643,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchSet(v **types.SqlInjection if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.SqlInjectionMatchSetId = &jtv + sv.SqlInjectionMatchSetId = ptr.String(jtv) } case "SqlInjectionMatchTuples": @@ -12620,7 +12660,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchSet(v **types.SqlInjection return nil } -func awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummaries(v *[]*types.SqlInjectionMatchSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummaries(v *[]types.SqlInjectionMatchSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12633,18 +12673,20 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummaries(v *[]*types.S return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SqlInjectionMatchSetSummary + var cv []types.SqlInjectionMatchSetSummary if *v == nil { - cv = []*types.SqlInjectionMatchSetSummary{} + cv = []types.SqlInjectionMatchSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SqlInjectionMatchSetSummary - if err := awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummary(&col, value); err != nil { + var col types.SqlInjectionMatchSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12680,7 +12722,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummary(v **types.SqlIn if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SqlInjectionMatchSetId": @@ -12689,7 +12731,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummary(v **types.SqlIn if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.SqlInjectionMatchSetId = &jtv + sv.SqlInjectionMatchSetId = ptr.String(jtv) } default: @@ -12746,7 +12788,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchTuple(v **types.SqlInjecti return nil } -func awsAwsjson11_deserializeDocumentSqlInjectionMatchTuples(v *[]*types.SqlInjectionMatchTuple, value interface{}) error { +func awsAwsjson11_deserializeDocumentSqlInjectionMatchTuples(v *[]types.SqlInjectionMatchTuple, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12759,18 +12801,20 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchTuples(v *[]*types.SqlInje return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SqlInjectionMatchTuple + var cv []types.SqlInjectionMatchTuple if *v == nil { - cv = []*types.SqlInjectionMatchTuple{} + cv = []types.SqlInjectionMatchTuple{} } else { cv = *v } for _, value := range shape { - var col *types.SqlInjectionMatchTuple - if err := awsAwsjson11_deserializeDocumentSqlInjectionMatchTuple(&col, value); err != nil { + var col types.SqlInjectionMatchTuple + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSqlInjectionMatchTuple(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12778,7 +12822,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchTuples(v *[]*types.SqlInje return nil } -func awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummaries(v *[]*types.SubscribedRuleGroupSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummaries(v *[]types.SubscribedRuleGroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12791,18 +12835,20 @@ func awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummaries(v *[]*types.Su return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SubscribedRuleGroupSummary + var cv []types.SubscribedRuleGroupSummary if *v == nil { - cv = []*types.SubscribedRuleGroupSummary{} + cv = []types.SubscribedRuleGroupSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SubscribedRuleGroupSummary - if err := awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummary(&col, value); err != nil { + var col types.SubscribedRuleGroupSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12838,7 +12884,7 @@ func awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummary(v **types.Subscr if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Name": @@ -12847,7 +12893,7 @@ func awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummary(v **types.Subscr if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RuleGroupId": @@ -12856,7 +12902,7 @@ func awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummary(v **types.Subscr if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleGroupId = &jtv + sv.RuleGroupId = ptr.String(jtv) } default: @@ -12896,7 +12942,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -12905,7 +12951,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -12945,7 +12991,7 @@ func awsAwsjson11_deserializeDocumentTagInfoForResource(v **types.TagInfoForReso if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "TagList": @@ -12962,7 +13008,7 @@ func awsAwsjson11_deserializeDocumentTagInfoForResource(v **types.TagInfoForReso return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12975,18 +13021,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13119,7 +13167,7 @@ func awsAwsjson11_deserializeDocumentWAFBadRequestException(v **types.WAFBadRequ if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13159,7 +13207,7 @@ func awsAwsjson11_deserializeDocumentWAFDisallowedNameException(v **types.WAFDis if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13199,7 +13247,7 @@ func awsAwsjson11_deserializeDocumentWAFEntityMigrationException(v **types.WAFEn if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "MigrationErrorReason": @@ -13208,7 +13256,7 @@ func awsAwsjson11_deserializeDocumentWAFEntityMigrationException(v **types.WAFEn if !ok { return fmt.Errorf("expected ErrorReason to be of type string, got %T instead", value) } - sv.MigrationErrorReason = &jtv + sv.MigrationErrorReason = ptr.String(jtv) } case "MigrationErrorType": @@ -13257,7 +13305,7 @@ func awsAwsjson11_deserializeDocumentWAFInternalErrorException(v **types.WAFInte if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13328,7 +13376,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidOperationException(v **types.WAFI if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13377,7 +13425,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidParameterException(v **types.WAFI if !ok { return fmt.Errorf("expected ParameterExceptionParameter to be of type string, got %T instead", value) } - sv.Parameter = &jtv + sv.Parameter = ptr.String(jtv) } case "reason": @@ -13426,7 +13474,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidPermissionPolicyException(v **typ if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13466,7 +13514,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidRegexPatternException(v **types.W if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13506,7 +13554,7 @@ func awsAwsjson11_deserializeDocumentWAFLimitsExceededException(v **types.WAFLim if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13546,7 +13594,7 @@ func awsAwsjson11_deserializeDocumentWAFNonEmptyEntityException(v **types.WAFNon if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13586,7 +13634,7 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentContainerException(v **types. if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13626,7 +13674,7 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentItemException(v **types.WAFNo if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13706,7 +13754,7 @@ func awsAwsjson11_deserializeDocumentWAFReferencedItemException(v **types.WAFRef if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13746,7 +13794,7 @@ func awsAwsjson11_deserializeDocumentWAFServiceLinkedRoleErrorException(v **type if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13786,7 +13834,7 @@ func awsAwsjson11_deserializeDocumentWAFStaleDataException(v **types.WAFStaleDat if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13826,7 +13874,7 @@ func awsAwsjson11_deserializeDocumentWAFSubscriptionNotFoundException(v **types. if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13866,7 +13914,7 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationException(v **types.WAFTagOp if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13906,7 +13954,7 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationInternalErrorException(v **t if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13951,7 +13999,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Name": @@ -13960,7 +14008,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Rules": @@ -13974,7 +14022,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.WebACLArn = &jtv + sv.WebACLArn = ptr.String(jtv) } case "WebACLId": @@ -13983,7 +14031,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.WebACLId = &jtv + sv.WebACLId = ptr.String(jtv) } default: @@ -13995,7 +14043,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentWebACLSummaries(v *[]*types.WebACLSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentWebACLSummaries(v *[]types.WebACLSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14008,18 +14056,20 @@ func awsAwsjson11_deserializeDocumentWebACLSummaries(v *[]*types.WebACLSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WebACLSummary + var cv []types.WebACLSummary if *v == nil { - cv = []*types.WebACLSummary{} + cv = []types.WebACLSummary{} } else { cv = *v } for _, value := range shape { - var col *types.WebACLSummary - if err := awsAwsjson11_deserializeDocumentWebACLSummary(&col, value); err != nil { + var col types.WebACLSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWebACLSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14055,7 +14105,7 @@ func awsAwsjson11_deserializeDocumentWebACLSummary(v **types.WebACLSummary, valu if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "WebACLId": @@ -14064,7 +14114,7 @@ func awsAwsjson11_deserializeDocumentWebACLSummary(v **types.WebACLSummary, valu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.WebACLId = &jtv + sv.WebACLId = ptr.String(jtv) } default: @@ -14104,7 +14154,7 @@ func awsAwsjson11_deserializeDocumentXssMatchSet(v **types.XssMatchSet, value in if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "XssMatchSetId": @@ -14113,7 +14163,7 @@ func awsAwsjson11_deserializeDocumentXssMatchSet(v **types.XssMatchSet, value in if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.XssMatchSetId = &jtv + sv.XssMatchSetId = ptr.String(jtv) } case "XssMatchTuples": @@ -14130,7 +14180,7 @@ func awsAwsjson11_deserializeDocumentXssMatchSet(v **types.XssMatchSet, value in return nil } -func awsAwsjson11_deserializeDocumentXssMatchSetSummaries(v *[]*types.XssMatchSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentXssMatchSetSummaries(v *[]types.XssMatchSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14143,18 +14193,20 @@ func awsAwsjson11_deserializeDocumentXssMatchSetSummaries(v *[]*types.XssMatchSe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.XssMatchSetSummary + var cv []types.XssMatchSetSummary if *v == nil { - cv = []*types.XssMatchSetSummary{} + cv = []types.XssMatchSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.XssMatchSetSummary - if err := awsAwsjson11_deserializeDocumentXssMatchSetSummary(&col, value); err != nil { + var col types.XssMatchSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentXssMatchSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14190,7 +14242,7 @@ func awsAwsjson11_deserializeDocumentXssMatchSetSummary(v **types.XssMatchSetSum if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "XssMatchSetId": @@ -14199,7 +14251,7 @@ func awsAwsjson11_deserializeDocumentXssMatchSetSummary(v **types.XssMatchSetSum if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.XssMatchSetId = &jtv + sv.XssMatchSetId = ptr.String(jtv) } default: @@ -14256,7 +14308,7 @@ func awsAwsjson11_deserializeDocumentXssMatchTuple(v **types.XssMatchTuple, valu return nil } -func awsAwsjson11_deserializeDocumentXssMatchTuples(v *[]*types.XssMatchTuple, value interface{}) error { +func awsAwsjson11_deserializeDocumentXssMatchTuples(v *[]types.XssMatchTuple, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14269,18 +14321,20 @@ func awsAwsjson11_deserializeDocumentXssMatchTuples(v *[]*types.XssMatchTuple, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.XssMatchTuple + var cv []types.XssMatchTuple if *v == nil { - cv = []*types.XssMatchTuple{} + cv = []types.XssMatchTuple{} } else { cv = *v } for _, value := range shape { - var col *types.XssMatchTuple - if err := awsAwsjson11_deserializeDocumentXssMatchTuple(&col, value); err != nil { + var col types.XssMatchTuple + destAddr := &col + if err := awsAwsjson11_deserializeDocumentXssMatchTuple(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14321,7 +14375,7 @@ func awsAwsjson11_deserializeOpDocumentCreateByteMatchSetOutput(v **CreateByteMa if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -14361,7 +14415,7 @@ func awsAwsjson11_deserializeOpDocumentCreateGeoMatchSetOutput(v **CreateGeoMatc if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "GeoMatchSet": @@ -14406,7 +14460,7 @@ func awsAwsjson11_deserializeOpDocumentCreateIPSetOutput(v **CreateIPSetOutput, if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "IPSet": @@ -14451,7 +14505,7 @@ func awsAwsjson11_deserializeOpDocumentCreateRateBasedRuleOutput(v **CreateRateB if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "Rule": @@ -14496,7 +14550,7 @@ func awsAwsjson11_deserializeOpDocumentCreateRegexMatchSetOutput(v **CreateRegex if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "RegexMatchSet": @@ -14541,7 +14595,7 @@ func awsAwsjson11_deserializeOpDocumentCreateRegexPatternSetOutput(v **CreateReg if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "RegexPatternSet": @@ -14586,7 +14640,7 @@ func awsAwsjson11_deserializeOpDocumentCreateRuleGroupOutput(v **CreateRuleGroup if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "RuleGroup": @@ -14631,7 +14685,7 @@ func awsAwsjson11_deserializeOpDocumentCreateRuleOutput(v **CreateRuleOutput, va if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "Rule": @@ -14676,7 +14730,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSizeConstraintSetOutput(v **CreateS if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "SizeConstraintSet": @@ -14721,7 +14775,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSqlInjectionMatchSetOutput(v **Crea if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "SqlInjectionMatchSet": @@ -14766,7 +14820,7 @@ func awsAwsjson11_deserializeOpDocumentCreateWebACLMigrationStackOutput(v **Crea if !ok { return fmt.Errorf("expected S3ObjectUrl to be of type string, got %T instead", value) } - sv.S3ObjectUrl = &jtv + sv.S3ObjectUrl = ptr.String(jtv) } default: @@ -14806,7 +14860,7 @@ func awsAwsjson11_deserializeOpDocumentCreateWebACLOutput(v **CreateWebACLOutput if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "WebACL": @@ -14851,7 +14905,7 @@ func awsAwsjson11_deserializeOpDocumentCreateXssMatchSetOutput(v **CreateXssMatc if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "XssMatchSet": @@ -14896,7 +14950,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteByteMatchSetOutput(v **DeleteByteMa if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -14936,7 +14990,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteGeoMatchSetOutput(v **DeleteGeoMatc if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -14976,7 +15030,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteIPSetOutput(v **DeleteIPSetOutput, if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15078,7 +15132,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRateBasedRuleOutput(v **DeleteRateB if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15118,7 +15172,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRegexMatchSetOutput(v **DeleteRegex if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15158,7 +15212,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRegexPatternSetOutput(v **DeleteReg if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15198,7 +15252,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRuleGroupOutput(v **DeleteRuleGroup if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15238,7 +15292,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRuleOutput(v **DeleteRuleOutput, va if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15278,7 +15332,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteSizeConstraintSetOutput(v **DeleteS if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15318,7 +15372,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteSqlInjectionMatchSetOutput(v **Dele if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15358,7 +15412,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteWebACLOutput(v **DeleteWebACLOutput if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15398,7 +15452,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteXssMatchSetOutput(v **DeleteXssMatc if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15474,7 +15528,7 @@ func awsAwsjson11_deserializeOpDocumentGetChangeTokenOutput(v **GetChangeTokenOu if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15662,7 +15716,7 @@ func awsAwsjson11_deserializeOpDocumentGetPermissionPolicyOutput(v **GetPermissi if !ok { return fmt.Errorf("expected PolicyString to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -15707,7 +15761,7 @@ func awsAwsjson11_deserializeOpDocumentGetRateBasedRuleManagedKeysOutput(v **Get if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -15931,7 +15985,7 @@ func awsAwsjson11_deserializeOpDocumentGetSampledRequestsOutput(v **GetSampledRe if err != nil { return err } - sv.PopulationSize = &i64 + sv.PopulationSize = i64 } case "SampledRequests": @@ -16130,7 +16184,7 @@ func awsAwsjson11_deserializeOpDocumentListActivatedRulesInRuleGroupOutput(v **L if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -16175,7 +16229,7 @@ func awsAwsjson11_deserializeOpDocumentListByteMatchSetsOutput(v **ListByteMatch if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -16220,7 +16274,7 @@ func awsAwsjson11_deserializeOpDocumentListGeoMatchSetsOutput(v **ListGeoMatchSe if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -16265,7 +16319,7 @@ func awsAwsjson11_deserializeOpDocumentListIPSetsOutput(v **ListIPSetsOutput, va if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -16310,7 +16364,7 @@ func awsAwsjson11_deserializeOpDocumentListLoggingConfigurationsOutput(v **ListL if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -16350,7 +16404,7 @@ func awsAwsjson11_deserializeOpDocumentListRateBasedRulesOutput(v **ListRateBase if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "Rules": @@ -16395,7 +16449,7 @@ func awsAwsjson11_deserializeOpDocumentListRegexMatchSetsOutput(v **ListRegexMat if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "RegexMatchSets": @@ -16440,7 +16494,7 @@ func awsAwsjson11_deserializeOpDocumentListRegexPatternSetsOutput(v **ListRegexP if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "RegexPatternSets": @@ -16485,7 +16539,7 @@ func awsAwsjson11_deserializeOpDocumentListRuleGroupsOutput(v **ListRuleGroupsOu if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "RuleGroups": @@ -16530,7 +16584,7 @@ func awsAwsjson11_deserializeOpDocumentListRulesOutput(v **ListRulesOutput, valu if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "Rules": @@ -16575,7 +16629,7 @@ func awsAwsjson11_deserializeOpDocumentListSizeConstraintSetsOutput(v **ListSize if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "SizeConstraintSets": @@ -16620,7 +16674,7 @@ func awsAwsjson11_deserializeOpDocumentListSqlInjectionMatchSetsOutput(v **ListS if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "SqlInjectionMatchSets": @@ -16665,7 +16719,7 @@ func awsAwsjson11_deserializeOpDocumentListSubscribedRuleGroupsOutput(v **ListSu if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "RuleGroups": @@ -16710,7 +16764,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "TagInfoForResource": @@ -16755,7 +16809,7 @@ func awsAwsjson11_deserializeOpDocumentListWebACLsOutput(v **ListWebACLsOutput, if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "WebACLs": @@ -16800,7 +16854,7 @@ func awsAwsjson11_deserializeOpDocumentListXssMatchSetsOutput(v **ListXssMatchSe if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "XssMatchSets": @@ -16974,7 +17028,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateByteMatchSetOutput(v **UpdateByteMa if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17014,7 +17068,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateGeoMatchSetOutput(v **UpdateGeoMatc if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17054,7 +17108,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateIPSetOutput(v **UpdateIPSetOutput, if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17094,7 +17148,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateRateBasedRuleOutput(v **UpdateRateB if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17134,7 +17188,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateRegexMatchSetOutput(v **UpdateRegex if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17174,7 +17228,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateRegexPatternSetOutput(v **UpdateReg if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17214,7 +17268,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateRuleGroupOutput(v **UpdateRuleGroup if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17254,7 +17308,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateRuleOutput(v **UpdateRuleOutput, va if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17294,7 +17348,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateSizeConstraintSetOutput(v **UpdateS if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17334,7 +17388,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateSqlInjectionMatchSetOutput(v **Upda if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17374,7 +17428,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateWebACLOutput(v **UpdateWebACLOutput if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17414,7 +17468,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateXssMatchSetOutput(v **UpdateXssMatc if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: diff --git a/service/waf/go.mod b/service/waf/go.mod index e6c58c2c075..9603a6b3a2c 100644 --- a/service/waf/go.mod +++ b/service/waf/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/waf go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/waf/serializers.go b/service/waf/serializers.go index 644db5fb365..94d30780245 100644 --- a/service/waf/serializers.go +++ b/service/waf/serializers.go @@ -3611,17 +3611,13 @@ func awsAwsjson11_serializeDocumentByteMatchSetUpdate(v *types.ByteMatchSetUpdat return nil } -func awsAwsjson11_serializeDocumentByteMatchSetUpdates(v []*types.ByteMatchSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentByteMatchSetUpdates(v []types.ByteMatchSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentByteMatchSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentByteMatchSetUpdate(&v[i], av); err != nil { return err } } @@ -3669,17 +3665,13 @@ func awsAwsjson11_serializeDocumentExcludedRule(v *types.ExcludedRule, value smi return nil } -func awsAwsjson11_serializeDocumentExcludedRules(v []*types.ExcludedRule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExcludedRules(v []types.ExcludedRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentExcludedRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentExcludedRule(&v[i], av); err != nil { return err } } @@ -3739,17 +3731,13 @@ func awsAwsjson11_serializeDocumentGeoMatchSetUpdate(v *types.GeoMatchSetUpdate, return nil } -func awsAwsjson11_serializeDocumentGeoMatchSetUpdates(v []*types.GeoMatchSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGeoMatchSetUpdates(v []types.GeoMatchSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentGeoMatchSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentGeoMatchSetUpdate(&v[i], av); err != nil { return err } } @@ -3792,34 +3780,26 @@ func awsAwsjson11_serializeDocumentIPSetUpdate(v *types.IPSetUpdate, value smith return nil } -func awsAwsjson11_serializeDocumentIPSetUpdates(v []*types.IPSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIPSetUpdates(v []types.IPSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentIPSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentIPSetUpdate(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentLogDestinationConfigs(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLogDestinationConfigs(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3872,17 +3852,13 @@ func awsAwsjson11_serializeDocumentPredicate(v *types.Predicate, value smithyjso return nil } -func awsAwsjson11_serializeDocumentRedactedFields(v []*types.FieldToMatch, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRedactedFields(v []types.FieldToMatch, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFieldToMatch(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFieldToMatch(&v[i], av); err != nil { return err } } @@ -3908,17 +3884,13 @@ func awsAwsjson11_serializeDocumentRegexMatchSetUpdate(v *types.RegexMatchSetUpd return nil } -func awsAwsjson11_serializeDocumentRegexMatchSetUpdates(v []*types.RegexMatchSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRegexMatchSetUpdates(v []types.RegexMatchSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRegexMatchSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRegexMatchSetUpdate(&v[i], av); err != nil { return err } } @@ -3966,17 +3938,13 @@ func awsAwsjson11_serializeDocumentRegexPatternSetUpdate(v *types.RegexPatternSe return nil } -func awsAwsjson11_serializeDocumentRegexPatternSetUpdates(v []*types.RegexPatternSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRegexPatternSetUpdates(v []types.RegexPatternSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRegexPatternSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRegexPatternSetUpdate(&v[i], av); err != nil { return err } } @@ -4002,17 +3970,13 @@ func awsAwsjson11_serializeDocumentRuleGroupUpdate(v *types.RuleGroupUpdate, val return nil } -func awsAwsjson11_serializeDocumentRuleGroupUpdates(v []*types.RuleGroupUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRuleGroupUpdates(v []types.RuleGroupUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRuleGroupUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRuleGroupUpdate(&v[i], av); err != nil { return err } } @@ -4038,17 +4002,13 @@ func awsAwsjson11_serializeDocumentRuleUpdate(v *types.RuleUpdate, value smithyj return nil } -func awsAwsjson11_serializeDocumentRuleUpdates(v []*types.RuleUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRuleUpdates(v []types.RuleUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRuleUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRuleUpdate(&v[i], av); err != nil { return err } } @@ -4071,9 +4031,9 @@ func awsAwsjson11_serializeDocumentSizeConstraint(v *types.SizeConstraint, value } } - if v.Size != nil { + if v.Size != 0 { ok := object.Key("Size") - ok.Long(*v.Size) + ok.Long(v.Size) } if len(v.TextTransformation) > 0 { @@ -4103,17 +4063,13 @@ func awsAwsjson11_serializeDocumentSizeConstraintSetUpdate(v *types.SizeConstrai return nil } -func awsAwsjson11_serializeDocumentSizeConstraintSetUpdates(v []*types.SizeConstraintSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSizeConstraintSetUpdates(v []types.SizeConstraintSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSizeConstraintSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSizeConstraintSetUpdate(&v[i], av); err != nil { return err } } @@ -4139,17 +4095,13 @@ func awsAwsjson11_serializeDocumentSqlInjectionMatchSetUpdate(v *types.SqlInject return nil } -func awsAwsjson11_serializeDocumentSqlInjectionMatchSetUpdates(v []*types.SqlInjectionMatchSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSqlInjectionMatchSetUpdates(v []types.SqlInjectionMatchSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSqlInjectionMatchSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSqlInjectionMatchSetUpdate(&v[i], av); err != nil { return err } } @@ -4192,32 +4144,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -4284,17 +4228,13 @@ func awsAwsjson11_serializeDocumentWebACLUpdate(v *types.WebACLUpdate, value smi return nil } -func awsAwsjson11_serializeDocumentWebACLUpdates(v []*types.WebACLUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentWebACLUpdates(v []types.WebACLUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentWebACLUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentWebACLUpdate(&v[i], av); err != nil { return err } } @@ -4320,17 +4260,13 @@ func awsAwsjson11_serializeDocumentXssMatchSetUpdate(v *types.XssMatchSetUpdate, return nil } -func awsAwsjson11_serializeDocumentXssMatchSetUpdates(v []*types.XssMatchSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentXssMatchSetUpdates(v []types.XssMatchSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentXssMatchSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentXssMatchSetUpdate(&v[i], av); err != nil { return err } } @@ -4431,9 +4367,9 @@ func awsAwsjson11_serializeOpDocumentCreateRateBasedRuleInput(v *CreateRateBased ok.String(string(v.RateKey)) } - if v.RateLimit != nil { + if v.RateLimit != 0 { ok := object.Key("RateLimit") - ok.Long(*v.RateLimit) + ok.Long(v.RateLimit) } if v.Tags != nil { @@ -5035,9 +4971,9 @@ func awsAwsjson11_serializeOpDocumentGetSampledRequestsInput(v *GetSampledReques object := value.Object() defer object.Close() - if v.MaxItems != nil { + if v.MaxItems != 0 { ok := object.Key("MaxItems") - ok.Long(*v.MaxItems) + ok.Long(v.MaxItems) } if v.RuleId != nil { @@ -5112,9 +5048,9 @@ func awsAwsjson11_serializeOpDocumentListActivatedRulesInRuleGroupInput(v *ListA object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5134,9 +5070,9 @@ func awsAwsjson11_serializeOpDocumentListByteMatchSetsInput(v *ListByteMatchSets object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5151,9 +5087,9 @@ func awsAwsjson11_serializeOpDocumentListGeoMatchSetsInput(v *ListGeoMatchSetsIn object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5168,9 +5104,9 @@ func awsAwsjson11_serializeOpDocumentListIPSetsInput(v *ListIPSetsInput, value s object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5185,9 +5121,9 @@ func awsAwsjson11_serializeOpDocumentListLoggingConfigurationsInput(v *ListLoggi object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5202,9 +5138,9 @@ func awsAwsjson11_serializeOpDocumentListRateBasedRulesInput(v *ListRateBasedRul object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5219,9 +5155,9 @@ func awsAwsjson11_serializeOpDocumentListRegexMatchSetsInput(v *ListRegexMatchSe object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5236,9 +5172,9 @@ func awsAwsjson11_serializeOpDocumentListRegexPatternSetsInput(v *ListRegexPatte object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5253,9 +5189,9 @@ func awsAwsjson11_serializeOpDocumentListRuleGroupsInput(v *ListRuleGroupsInput, object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5270,9 +5206,9 @@ func awsAwsjson11_serializeOpDocumentListRulesInput(v *ListRulesInput, value smi object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5287,9 +5223,9 @@ func awsAwsjson11_serializeOpDocumentListSizeConstraintSetsInput(v *ListSizeCons object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5304,9 +5240,9 @@ func awsAwsjson11_serializeOpDocumentListSqlInjectionMatchSetsInput(v *ListSqlIn object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5321,9 +5257,9 @@ func awsAwsjson11_serializeOpDocumentListSubscribedRuleGroupsInput(v *ListSubscr object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5338,9 +5274,9 @@ func awsAwsjson11_serializeOpDocumentListTagsForResourceInput(v *ListTagsForReso object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5360,9 +5296,9 @@ func awsAwsjson11_serializeOpDocumentListWebACLsInput(v *ListWebACLsInput, value object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5377,9 +5313,9 @@ func awsAwsjson11_serializeOpDocumentListXssMatchSetsInput(v *ListXssMatchSetsIn object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5540,9 +5476,9 @@ func awsAwsjson11_serializeOpDocumentUpdateRateBasedRuleInput(v *UpdateRateBased ok.String(*v.ChangeToken) } - if v.RateLimit != nil { + if v.RateLimit != 0 { ok := object.Key("RateLimit") - ok.Long(*v.RateLimit) + ok.Long(v.RateLimit) } if v.RuleId != nil { diff --git a/service/waf/types/types.go b/service/waf/types/types.go index 6f810019e46..4f4dabd83f5 100644 --- a/service/waf/types/types.go +++ b/service/waf/types/types.go @@ -86,7 +86,7 @@ type ActivatedRule struct { // That is, the second Updates:Action should be INSERT, // Updates:ActivatedRule:RuleId should be the rule group that you just removed, and // ExcludedRules should contain the rules that you want to exclude. - ExcludedRules []*ExcludedRule + ExcludedRules []ExcludedRule // Use the OverrideAction to test your RuleGroup. Any rule in a RuleGroup can // potentially block a request. If you set the OverrideAction to None, the @@ -140,7 +140,7 @@ type ByteMatchSet struct { // that you want AWS WAF to search, and other settings. // // This member is required. - ByteMatchTuples []*ByteMatchTuple + ByteMatchTuples []ByteMatchTuple // A friendly name or description of the ByteMatchSet. You can't change Name after // you create a ByteMatchSet. @@ -481,7 +481,7 @@ type GeoMatchSet struct { // AWS WAF to search for. // // This member is required. - GeoMatchConstraints []*GeoMatchConstraint + GeoMatchConstraints []GeoMatchConstraint // The GeoMatchSetId for an GeoMatchSet. You use GeoMatchSetId to get information // about a GeoMatchSet (see GeoMatchSet), update a GeoMatchSet (see @@ -593,7 +593,7 @@ type HTTPRequest struct { // A complex type that contains two values for each header in the sampled web // request: the name of the header and the value of the header. - Headers []*HTTPHeader + Headers []HTTPHeader // The HTTP method specified in the sampled web request. CloudFront supports the // following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT. @@ -628,7 +628,7 @@ type IPSet struct { // the request, this is the value of the c-ip field in the CloudFront access logs. // // This member is required. - IPSetDescriptors []*IPSetDescriptor + IPSetDescriptors []IPSetDescriptor // The IPSetId for an IPSet. You use IPSetId to get information about an IPSet (see // GetIPSet), update an IPSet (see UpdateIPSet), insert an IPSet into a Rule or @@ -745,7 +745,7 @@ type LoggingConfiguration struct { // An array of Amazon Kinesis Data Firehose ARNs. // // This member is required. - LogDestinationConfigs []*string + LogDestinationConfigs []string // The Amazon Resource Name (ARN) of the web ACL that you want to associate with // LogDestinationConfigs. @@ -755,7 +755,7 @@ type LoggingConfiguration struct { // The parts of the request that you want redacted from the logs. For example, if // you redact the cookie field, the cookie field in the firehose will be xxx. - RedactedFields []*FieldToMatch + RedactedFields []FieldToMatch } // This is AWS WAF Classic documentation. For more information, see AWS WAF Classic @@ -825,7 +825,7 @@ type RateBasedRule struct { // RateBasedRule. // // This member is required. - MatchPredicates []*Predicate + MatchPredicates []Predicate // The field that AWS WAF uses to determine if requests are likely arriving from // single source and thus subject to rate monitoring. The only valid value for @@ -841,7 +841,7 @@ type RateBasedRule struct { // are also met, AWS WAF triggers the action that is specified for this rule. // // This member is required. - RateLimit *int64 + RateLimit int64 // A unique identifier for a RateBasedRule. You use RuleId to get more information // about a RateBasedRule (see GetRateBasedRule), update a RateBasedRule (see @@ -904,7 +904,7 @@ type RegexMatchSet struct { // * Whether to perform any conversions on the // request, such as converting it to lowercase, before inspecting it for the // specified string. - RegexMatchTuples []*RegexMatchTuple + RegexMatchTuples []RegexMatchTuple } // This is AWS WAF Classic documentation. For more information, see AWS WAF Classic @@ -1091,7 +1091,7 @@ type RegexPatternSet struct { // search for, such as B[a@]dB[o0]t. // // This member is required. - RegexPatternStrings []*string + RegexPatternStrings []string // A friendly name or description of the RegexPatternSet. You can't change Name // after you create a RegexPatternSet. @@ -1173,7 +1173,7 @@ type Rule struct { // IPSet, or SqlInjectionMatchSet object that you want to include in a Rule. // // This member is required. - Predicates []*Predicate + Predicates []Predicate // A unique identifier for a Rule. You use RuleId to get more information about a // Rule (see GetRule), update a Rule (see UpdateRule), insert a Rule into a WebACL @@ -1354,7 +1354,7 @@ type SampledHTTPRequest struct { // 1. // // This member is required. - Weight *int64 + Weight int64 // The action for the Rule that the request matched: ALLOW, BLOCK, or COUNT. Action *string @@ -1410,7 +1410,7 @@ type SizeConstraint struct { // character. For example, the URI /logo.jpg is nine characters long. // // This member is required. - Size *int64 + Size int64 // Text transformations eliminate some of the unusual formatting that attackers use // in web requests in an effort to bypass AWS WAF. If you specify a transformation, @@ -1511,7 +1511,7 @@ type SizeConstraintSet struct { // Specifies the parts of web requests that you want to inspect the size of. // // This member is required. - SizeConstraints []*SizeConstraint + SizeConstraints []SizeConstraint // The name, if any, of the SizeConstraintSet. Name *string @@ -1598,7 +1598,7 @@ type SqlInjectionMatchSet struct { // malicious SQL code. // // This member is required. - SqlInjectionMatchTuples []*SqlInjectionMatchTuple + SqlInjectionMatchTuples []SqlInjectionMatchTuple // The name, if any, of the SqlInjectionMatchSet. Name *string @@ -1820,7 +1820,7 @@ type TagInfoForResource struct { ResourceARN *string // - TagList []*Tag + TagList []Tag } // This is AWS WAF Classic documentation. For more information, see AWS WAF Classic @@ -1934,7 +1934,7 @@ type WebACL struct { // Rule, and the ID of the Rule. // // This member is required. - Rules []*ActivatedRule + Rules []ActivatedRule // A unique identifier for a WebACL. You use WebACLId to get information about a // WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete a WebACL @@ -2035,7 +2035,7 @@ type XssMatchSet struct { // scripting attacks. // // This member is required. - XssMatchTuples []*XssMatchTuple + XssMatchTuples []XssMatchTuple // The name, if any, of the XssMatchSet. Name *string diff --git a/service/waf/validators.go b/service/waf/validators.go index 4c844281dcf..c45fc75d98b 100644 --- a/service/waf/validators.go +++ b/service/waf/validators.go @@ -1529,13 +1529,13 @@ func validateByteMatchSetUpdate(v *types.ByteMatchSetUpdate) error { } } -func validateByteMatchSetUpdates(v []*types.ByteMatchSetUpdate) error { +func validateByteMatchSetUpdates(v []types.ByteMatchSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ByteMatchSetUpdates"} for i := range v { - if err := validateByteMatchSetUpdate(v[i]); err != nil { + if err := validateByteMatchSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1589,13 +1589,13 @@ func validateExcludedRule(v *types.ExcludedRule) error { } } -func validateExcludedRules(v []*types.ExcludedRule) error { +func validateExcludedRules(v []types.ExcludedRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ExcludedRules"} for i := range v { - if err := validateExcludedRule(v[i]); err != nil { + if err := validateExcludedRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1661,13 +1661,13 @@ func validateGeoMatchSetUpdate(v *types.GeoMatchSetUpdate) error { } } -func validateGeoMatchSetUpdates(v []*types.GeoMatchSetUpdate) error { +func validateGeoMatchSetUpdates(v []types.GeoMatchSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GeoMatchSetUpdates"} for i := range v { - if err := validateGeoMatchSetUpdate(v[i]); err != nil { + if err := validateGeoMatchSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1718,13 +1718,13 @@ func validateIPSetUpdate(v *types.IPSetUpdate) error { } } -func validateIPSetUpdates(v []*types.IPSetUpdate) error { +func validateIPSetUpdates(v []types.IPSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "IPSetUpdates"} for i := range v { - if err := validateIPSetUpdate(v[i]); err != nil { + if err := validateIPSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1779,13 +1779,13 @@ func validatePredicate(v *types.Predicate) error { } } -func validateRedactedFields(v []*types.FieldToMatch) error { +func validateRedactedFields(v []types.FieldToMatch) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RedactedFields"} for i := range v { - if err := validateFieldToMatch(v[i]); err != nil { + if err := validateFieldToMatch(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1818,13 +1818,13 @@ func validateRegexMatchSetUpdate(v *types.RegexMatchSetUpdate) error { } } -func validateRegexMatchSetUpdates(v []*types.RegexMatchSetUpdate) error { +func validateRegexMatchSetUpdates(v []types.RegexMatchSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RegexMatchSetUpdates"} for i := range v { - if err := validateRegexMatchSetUpdate(v[i]); err != nil { + if err := validateRegexMatchSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1878,13 +1878,13 @@ func validateRegexPatternSetUpdate(v *types.RegexPatternSetUpdate) error { } } -func validateRegexPatternSetUpdates(v []*types.RegexPatternSetUpdate) error { +func validateRegexPatternSetUpdates(v []types.RegexPatternSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RegexPatternSetUpdates"} for i := range v { - if err := validateRegexPatternSetUpdate(v[i]); err != nil { + if err := validateRegexPatternSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1917,13 +1917,13 @@ func validateRuleGroupUpdate(v *types.RuleGroupUpdate) error { } } -func validateRuleGroupUpdates(v []*types.RuleGroupUpdate) error { +func validateRuleGroupUpdates(v []types.RuleGroupUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RuleGroupUpdates"} for i := range v { - if err := validateRuleGroupUpdate(v[i]); err != nil { + if err := validateRuleGroupUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1956,13 +1956,13 @@ func validateRuleUpdate(v *types.RuleUpdate) error { } } -func validateRuleUpdates(v []*types.RuleUpdate) error { +func validateRuleUpdates(v []types.RuleUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RuleUpdates"} for i := range v { - if err := validateRuleUpdate(v[i]); err != nil { + if err := validateRuleUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1978,9 +1978,6 @@ func validateSizeConstraint(v *types.SizeConstraint) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "SizeConstraint"} - if v.Size == nil { - invalidParams.Add(smithy.NewErrParamRequired("Size")) - } if len(v.TextTransformation) == 0 { invalidParams.Add(smithy.NewErrParamRequired("TextTransformation")) } @@ -2023,13 +2020,13 @@ func validateSizeConstraintSetUpdate(v *types.SizeConstraintSetUpdate) error { } } -func validateSizeConstraintSetUpdates(v []*types.SizeConstraintSetUpdate) error { +func validateSizeConstraintSetUpdates(v []types.SizeConstraintSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SizeConstraintSetUpdates"} for i := range v { - if err := validateSizeConstraintSetUpdate(v[i]); err != nil { + if err := validateSizeConstraintSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2062,13 +2059,13 @@ func validateSqlInjectionMatchSetUpdate(v *types.SqlInjectionMatchSetUpdate) err } } -func validateSqlInjectionMatchSetUpdates(v []*types.SqlInjectionMatchSetUpdate) error { +func validateSqlInjectionMatchSetUpdates(v []types.SqlInjectionMatchSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SqlInjectionMatchSetUpdates"} for i := range v { - if err := validateSqlInjectionMatchSetUpdate(v[i]); err != nil { + if err := validateSqlInjectionMatchSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2119,13 +2116,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2206,13 +2203,13 @@ func validateWebACLUpdate(v *types.WebACLUpdate) error { } } -func validateWebACLUpdates(v []*types.WebACLUpdate) error { +func validateWebACLUpdates(v []types.WebACLUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "WebACLUpdates"} for i := range v { - if err := validateWebACLUpdate(v[i]); err != nil { + if err := validateWebACLUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2245,13 +2242,13 @@ func validateXssMatchSetUpdate(v *types.XssMatchSetUpdate) error { } } -func validateXssMatchSetUpdates(v []*types.XssMatchSetUpdate) error { +func validateXssMatchSetUpdates(v []types.XssMatchSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "XssMatchSetUpdates"} for i := range v { - if err := validateXssMatchSetUpdate(v[i]); err != nil { + if err := validateXssMatchSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2349,9 +2346,6 @@ func validateOpCreateRateBasedRuleInput(v *CreateRateBasedRuleInput) error { if v.ChangeToken == nil { invalidParams.Add(smithy.NewErrParamRequired("ChangeToken")) } - if v.RateLimit == nil { - invalidParams.Add(smithy.NewErrParamRequired("RateLimit")) - } if v.MetricName == nil { invalidParams.Add(smithy.NewErrParamRequired("MetricName")) } @@ -3003,9 +2997,6 @@ func validateOpGetSampledRequestsInput(v *GetSampledRequestsInput) error { if v.RuleId == nil { invalidParams.Add(smithy.NewErrParamRequired("RuleId")) } - if v.MaxItems == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxItems")) - } if v.TimeWindow == nil { invalidParams.Add(smithy.NewErrParamRequired("TimeWindow")) } else if v.TimeWindow != nil { @@ -3265,9 +3256,6 @@ func validateOpUpdateRateBasedRuleInput(v *UpdateRateBasedRuleInput) error { if v.RuleId == nil { invalidParams.Add(smithy.NewErrParamRequired("RuleId")) } - if v.RateLimit == nil { - invalidParams.Add(smithy.NewErrParamRequired("RateLimit")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/wafregional/api_op_CreateRateBasedRule.go b/service/wafregional/api_op_CreateRateBasedRule.go index 3177ad2182b..997b95373d1 100644 --- a/service/wafregional/api_op_CreateRateBasedRule.go +++ b/service/wafregional/api_op_CreateRateBasedRule.go @@ -133,10 +133,10 @@ type CreateRateBasedRuleInput struct { // are also met, AWS WAF triggers the action that is specified for this rule. // // This member is required. - RateLimit *int64 + RateLimit int64 // - Tags []*types.Tag + Tags []types.Tag } type CreateRateBasedRuleOutput struct { diff --git a/service/wafregional/api_op_CreateRule.go b/service/wafregional/api_op_CreateRule.go index 03470c8d1cc..2183f943741 100644 --- a/service/wafregional/api_op_CreateRule.go +++ b/service/wafregional/api_op_CreateRule.go @@ -96,7 +96,7 @@ type CreateRuleInput struct { Name *string // - Tags []*types.Tag + Tags []types.Tag } type CreateRuleOutput struct { diff --git a/service/wafregional/api_op_CreateRuleGroup.go b/service/wafregional/api_op_CreateRuleGroup.go index 24180834660..75cd041f97e 100644 --- a/service/wafregional/api_op_CreateRuleGroup.go +++ b/service/wafregional/api_op_CreateRuleGroup.go @@ -71,7 +71,7 @@ type CreateRuleGroupInput struct { Name *string // - Tags []*types.Tag + Tags []types.Tag } type CreateRuleGroupOutput struct { diff --git a/service/wafregional/api_op_CreateWebACL.go b/service/wafregional/api_op_CreateWebACL.go index 4bb78572102..834ffedba81 100644 --- a/service/wafregional/api_op_CreateWebACL.go +++ b/service/wafregional/api_op_CreateWebACL.go @@ -95,7 +95,7 @@ type CreateWebACLInput struct { Name *string // - Tags []*types.Tag + Tags []types.Tag } type CreateWebACLOutput struct { diff --git a/service/wafregional/api_op_GetRateBasedRuleManagedKeys.go b/service/wafregional/api_op_GetRateBasedRuleManagedKeys.go index d82597143d8..f6f286aedeb 100644 --- a/service/wafregional/api_op_GetRateBasedRuleManagedKeys.go +++ b/service/wafregional/api_op_GetRateBasedRuleManagedKeys.go @@ -51,7 +51,7 @@ type GetRateBasedRuleManagedKeysOutput struct { // An array of IP addresses that currently are blocked by the specified // RateBasedRule. - ManagedKeys []*string + ManagedKeys []string // A null value and not currently used. NextMarker *string diff --git a/service/wafregional/api_op_GetSampledRequests.go b/service/wafregional/api_op_GetSampledRequests.go index ed0cd9c7c35..ce3cf199649 100644 --- a/service/wafregional/api_op_GetSampledRequests.go +++ b/service/wafregional/api_op_GetSampledRequests.go @@ -50,7 +50,7 @@ type GetSampledRequestsInput struct { // returns information about all of them. // // This member is required. - MaxItems *int64 + MaxItems int64 // RuleId is one of three values: // @@ -85,11 +85,11 @@ type GetSampledRequestsOutput struct { // The total number of requests from which GetSampledRequests got a sample of // MaxItems requests. If PopulationSize is less than MaxItems, the sample includes // every request that your AWS resource received during the specified time range. - PopulationSize *int64 + PopulationSize int64 // A complex type that contains detailed information about each of the requests in // the sample. - SampledRequests []*types.SampledHTTPRequest + SampledRequests []types.SampledHTTPRequest // Usually, TimeWindow is the time range that you specified in the // GetSampledRequests request. However, if your AWS resource received more than diff --git a/service/wafregional/api_op_ListActivatedRulesInRuleGroup.go b/service/wafregional/api_op_ListActivatedRulesInRuleGroup.go index ea9a52440dc..70a11e89aa3 100644 --- a/service/wafregional/api_op_ListActivatedRulesInRuleGroup.go +++ b/service/wafregional/api_op_ListActivatedRulesInRuleGroup.go @@ -39,7 +39,7 @@ type ListActivatedRulesInRuleGroupInput struct { // request. If you have more ActivatedRules than the number that you specify for // Limit, the response includes a NextMarker value that you can use to get another // batch of ActivatedRules. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more ActivatedRules than the value // of Limit, AWS WAF returns a NextMarker value in the response that allows you to @@ -56,7 +56,7 @@ type ListActivatedRulesInRuleGroupInput struct { type ListActivatedRulesInRuleGroupOutput struct { // An array of ActivatedRules objects. - ActivatedRules []*types.ActivatedRule + ActivatedRules []types.ActivatedRule // If you have more ActivatedRules than the number that you specified for Limit in // the request, the response includes a NextMarker value. To list more diff --git a/service/wafregional/api_op_ListByteMatchSets.go b/service/wafregional/api_op_ListByteMatchSets.go index 97757c957fa..e085ce05883 100644 --- a/service/wafregional/api_op_ListByteMatchSets.go +++ b/service/wafregional/api_op_ListByteMatchSets.go @@ -39,7 +39,7 @@ type ListByteMatchSetsInput struct { // this request. If you have more ByteMatchSets objects than the number you specify // for Limit, the response includes a NextMarker value that you can use to get // another batch of ByteMatchSet objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more ByteMatchSets than the value // of Limit, AWS WAF returns a NextMarker value in the response that allows you to @@ -52,7 +52,7 @@ type ListByteMatchSetsInput struct { type ListByteMatchSetsOutput struct { // An array of ByteMatchSetSummary objects. - ByteMatchSets []*types.ByteMatchSetSummary + ByteMatchSets []types.ByteMatchSetSummary // If you have more ByteMatchSet objects than the number that you specified for // Limit in the request, the response includes a NextMarker value. To list more diff --git a/service/wafregional/api_op_ListGeoMatchSets.go b/service/wafregional/api_op_ListGeoMatchSets.go index 5299a484497..c43170fe50e 100644 --- a/service/wafregional/api_op_ListGeoMatchSets.go +++ b/service/wafregional/api_op_ListGeoMatchSets.go @@ -39,7 +39,7 @@ type ListGeoMatchSetsInput struct { // this request. If you have more GeoMatchSet objects than the number you specify // for Limit, the response includes a NextMarker value that you can use to get // another batch of GeoMatchSet objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more GeoMatchSets than the value // of Limit, AWS WAF returns a NextMarker value in the response that allows you to @@ -52,7 +52,7 @@ type ListGeoMatchSetsInput struct { type ListGeoMatchSetsOutput struct { // An array of GeoMatchSetSummary objects. - GeoMatchSets []*types.GeoMatchSetSummary + GeoMatchSets []types.GeoMatchSetSummary // If you have more GeoMatchSet objects than the number that you specified for // Limit in the request, the response includes a NextMarker value. To list more diff --git a/service/wafregional/api_op_ListIPSets.go b/service/wafregional/api_op_ListIPSets.go index 8e7eb1b8c9a..917fdf9fd95 100644 --- a/service/wafregional/api_op_ListIPSets.go +++ b/service/wafregional/api_op_ListIPSets.go @@ -39,7 +39,7 @@ type ListIPSetsInput struct { // request. If you have more IPSet objects than the number you specify for Limit, // the response includes a NextMarker value that you can use to get another batch // of IPSet objects. - Limit *int32 + Limit int32 // AWS WAF returns a NextMarker value in the response that allows you to list // another group of IPSets. For the second and subsequent ListIPSets requests, @@ -51,7 +51,7 @@ type ListIPSetsInput struct { type ListIPSetsOutput struct { // An array of IPSetSummary objects. - IPSets []*types.IPSetSummary + IPSets []types.IPSetSummary // To list more IPSet objects, submit another ListIPSets request, and in the next // request use the NextMarker response value as the NextMarker value. diff --git a/service/wafregional/api_op_ListLoggingConfigurations.go b/service/wafregional/api_op_ListLoggingConfigurations.go index f55f4349335..c6591a269ac 100644 --- a/service/wafregional/api_op_ListLoggingConfigurations.go +++ b/service/wafregional/api_op_ListLoggingConfigurations.go @@ -39,7 +39,7 @@ type ListLoggingConfigurationsInput struct { // for this request. If you have more LoggingConfigurations than the number that // you specify for Limit, the response includes a NextMarker value that you can use // to get another batch of LoggingConfigurations. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more LoggingConfigurations than // the value of Limit, AWS WAF returns a NextMarker value in the response that @@ -53,7 +53,7 @@ type ListLoggingConfigurationsInput struct { type ListLoggingConfigurationsOutput struct { // An array of LoggingConfiguration objects. - LoggingConfigurations []*types.LoggingConfiguration + LoggingConfigurations []types.LoggingConfiguration // If you have more LoggingConfigurations than the number that you specified for // Limit in the request, the response includes a NextMarker value. To list more diff --git a/service/wafregional/api_op_ListRateBasedRules.go b/service/wafregional/api_op_ListRateBasedRules.go index 8c1854c36e1..aa9c1fa4a39 100644 --- a/service/wafregional/api_op_ListRateBasedRules.go +++ b/service/wafregional/api_op_ListRateBasedRules.go @@ -38,7 +38,7 @@ type ListRateBasedRulesInput struct { // Specifies the number of Rules that you want AWS WAF to return for this request. // If you have more Rules than the number that you specify for Limit, the response // includes a NextMarker value that you can use to get another batch of Rules. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more Rules than the value of // Limit, AWS WAF returns a NextMarker value in the response that allows you to @@ -57,7 +57,7 @@ type ListRateBasedRulesOutput struct { NextMarker *string // An array of RuleSummary objects. - Rules []*types.RuleSummary + Rules []types.RuleSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafregional/api_op_ListRegexMatchSets.go b/service/wafregional/api_op_ListRegexMatchSets.go index 4e5af7209af..1c59e561938 100644 --- a/service/wafregional/api_op_ListRegexMatchSets.go +++ b/service/wafregional/api_op_ListRegexMatchSets.go @@ -39,7 +39,7 @@ type ListRegexMatchSetsInput struct { // for this request. If you have more RegexMatchSet objects than the number you // specify for Limit, the response includes a NextMarker value that you can use to // get another batch of RegexMatchSet objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more RegexMatchSet objects than // the value of Limit, AWS WAF returns a NextMarker value in the response that @@ -59,7 +59,7 @@ type ListRegexMatchSetsOutput struct { NextMarker *string // An array of RegexMatchSetSummary objects. - RegexMatchSets []*types.RegexMatchSetSummary + RegexMatchSets []types.RegexMatchSetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafregional/api_op_ListRegexPatternSets.go b/service/wafregional/api_op_ListRegexPatternSets.go index 9ca7fc3dc95..07a0fc8db1c 100644 --- a/service/wafregional/api_op_ListRegexPatternSets.go +++ b/service/wafregional/api_op_ListRegexPatternSets.go @@ -39,7 +39,7 @@ type ListRegexPatternSetsInput struct { // for this request. If you have more RegexPatternSet objects than the number you // specify for Limit, the response includes a NextMarker value that you can use to // get another batch of RegexPatternSet objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more RegexPatternSet objects than // the value of Limit, AWS WAF returns a NextMarker value in the response that @@ -60,7 +60,7 @@ type ListRegexPatternSetsOutput struct { NextMarker *string // An array of RegexPatternSetSummary objects. - RegexPatternSets []*types.RegexPatternSetSummary + RegexPatternSets []types.RegexPatternSetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafregional/api_op_ListResourcesForWebACL.go b/service/wafregional/api_op_ListResourcesForWebACL.go index ce84c907a60..769edb45d40 100644 --- a/service/wafregional/api_op_ListResourcesForWebACL.go +++ b/service/wafregional/api_op_ListResourcesForWebACL.go @@ -52,7 +52,7 @@ type ListResourcesForWebACLOutput struct { // An array of ARNs (Amazon Resource Names) of the resources associated with the // specified web ACL. An array with zero elements is returned if there are no // resources associated with the web ACL. - ResourceArns []*string + ResourceArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafregional/api_op_ListRuleGroups.go b/service/wafregional/api_op_ListRuleGroups.go index cb0e461cb31..ffc582235dc 100644 --- a/service/wafregional/api_op_ListRuleGroups.go +++ b/service/wafregional/api_op_ListRuleGroups.go @@ -39,7 +39,7 @@ type ListRuleGroupsInput struct { // request. If you have more RuleGroups than the number that you specify for Limit, // the response includes a NextMarker value that you can use to get another batch // of RuleGroups. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more RuleGroups than the value of // Limit, AWS WAF returns a NextMarker value in the response that allows you to @@ -58,7 +58,7 @@ type ListRuleGroupsOutput struct { NextMarker *string // An array of RuleGroup objects. - RuleGroups []*types.RuleGroupSummary + RuleGroups []types.RuleGroupSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafregional/api_op_ListRules.go b/service/wafregional/api_op_ListRules.go index b1a2183e8f9..2158affbaef 100644 --- a/service/wafregional/api_op_ListRules.go +++ b/service/wafregional/api_op_ListRules.go @@ -38,7 +38,7 @@ type ListRulesInput struct { // Specifies the number of Rules that you want AWS WAF to return for this request. // If you have more Rules than the number that you specify for Limit, the response // includes a NextMarker value that you can use to get another batch of Rules. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more Rules than the value of // Limit, AWS WAF returns a NextMarker value in the response that allows you to @@ -57,7 +57,7 @@ type ListRulesOutput struct { NextMarker *string // An array of RuleSummary objects. - Rules []*types.RuleSummary + Rules []types.RuleSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafregional/api_op_ListSizeConstraintSets.go b/service/wafregional/api_op_ListSizeConstraintSets.go index c6f08e1eec7..bf5b8276c2a 100644 --- a/service/wafregional/api_op_ListSizeConstraintSets.go +++ b/service/wafregional/api_op_ListSizeConstraintSets.go @@ -39,7 +39,7 @@ type ListSizeConstraintSetsInput struct { // return for this request. If you have more SizeConstraintSets objects than the // number you specify for Limit, the response includes a NextMarker value that you // can use to get another batch of SizeConstraintSet objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more SizeConstraintSets than the // value of Limit, AWS WAF returns a NextMarker value in the response that allows @@ -59,7 +59,7 @@ type ListSizeConstraintSetsOutput struct { NextMarker *string // An array of SizeConstraintSetSummary objects. - SizeConstraintSets []*types.SizeConstraintSetSummary + SizeConstraintSets []types.SizeConstraintSetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafregional/api_op_ListSqlInjectionMatchSets.go b/service/wafregional/api_op_ListSqlInjectionMatchSets.go index 744932cb6c5..2d0ddb8e660 100644 --- a/service/wafregional/api_op_ListSqlInjectionMatchSets.go +++ b/service/wafregional/api_op_ListSqlInjectionMatchSets.go @@ -41,7 +41,7 @@ type ListSqlInjectionMatchSetsInput struct { // return for this request. If you have more SqlInjectionMatchSet objects than the // number you specify for Limit, the response includes a NextMarker value that you // can use to get another batch of Rules. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more SqlInjectionMatchSet objects // than the value of Limit, AWS WAF returns a NextMarker value in the response that @@ -63,7 +63,7 @@ type ListSqlInjectionMatchSetsOutput struct { NextMarker *string // An array of SqlInjectionMatchSetSummary objects. - SqlInjectionMatchSets []*types.SqlInjectionMatchSetSummary + SqlInjectionMatchSets []types.SqlInjectionMatchSetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafregional/api_op_ListSubscribedRuleGroups.go b/service/wafregional/api_op_ListSubscribedRuleGroups.go index bce2a330177..9572413f396 100644 --- a/service/wafregional/api_op_ListSubscribedRuleGroups.go +++ b/service/wafregional/api_op_ListSubscribedRuleGroups.go @@ -39,7 +39,7 @@ type ListSubscribedRuleGroupsInput struct { // for this request. If you have more objects than the number you specify for // Limit, the response includes a NextMarker value that you can use to get another // batch of objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more ByteMatchSetssubscribed rule // groups than the value of Limit, AWS WAF returns a NextMarker value in the @@ -59,7 +59,7 @@ type ListSubscribedRuleGroupsOutput struct { NextMarker *string // An array of RuleGroup objects. - RuleGroups []*types.SubscribedRuleGroupSummary + RuleGroups []types.SubscribedRuleGroupSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafregional/api_op_ListTagsForResource.go b/service/wafregional/api_op_ListTagsForResource.go index c31c699a014..2682719e9fa 100644 --- a/service/wafregional/api_op_ListTagsForResource.go +++ b/service/wafregional/api_op_ListTagsForResource.go @@ -48,7 +48,7 @@ type ListTagsForResourceInput struct { ResourceARN *string // - Limit *int32 + Limit int32 // NextMarker *string diff --git a/service/wafregional/api_op_ListWebACLs.go b/service/wafregional/api_op_ListWebACLs.go index 8c1c9257432..fa4b6eb8bf5 100644 --- a/service/wafregional/api_op_ListWebACLs.go +++ b/service/wafregional/api_op_ListWebACLs.go @@ -39,7 +39,7 @@ type ListWebACLsInput struct { // request. If you have more WebACL objects than the number that you specify for // Limit, the response includes a NextMarker value that you can use to get another // batch of WebACL objects. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more WebACL objects than the // number that you specify for Limit, AWS WAF returns a NextMarker value in the @@ -58,7 +58,7 @@ type ListWebACLsOutput struct { NextMarker *string // An array of WebACLSummary objects. - WebACLs []*types.WebACLSummary + WebACLs []types.WebACLSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafregional/api_op_ListXssMatchSets.go b/service/wafregional/api_op_ListXssMatchSets.go index 7846a516533..3d8d6326f92 100644 --- a/service/wafregional/api_op_ListXssMatchSets.go +++ b/service/wafregional/api_op_ListXssMatchSets.go @@ -40,7 +40,7 @@ type ListXssMatchSetsInput struct { // this request. If you have more XssMatchSet objects than the number you specify // for Limit, the response includes a NextMarker value that you can use to get // another batch of Rules. - Limit *int32 + Limit int32 // If you specify a value for Limit and you have more XssMatchSet objects than the // value of Limit, AWS WAF returns a NextMarker value in the response that allows @@ -60,7 +60,7 @@ type ListXssMatchSetsOutput struct { NextMarker *string // An array of XssMatchSetSummary objects. - XssMatchSets []*types.XssMatchSetSummary + XssMatchSets []types.XssMatchSetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafregional/api_op_TagResource.go b/service/wafregional/api_op_TagResource.go index bc25f217328..2eff699d03b 100644 --- a/service/wafregional/api_op_TagResource.go +++ b/service/wafregional/api_op_TagResource.go @@ -50,7 +50,7 @@ type TagResourceInput struct { // // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/wafregional/api_op_UntagResource.go b/service/wafregional/api_op_UntagResource.go index 881217cd950..d74bab76620 100644 --- a/service/wafregional/api_op_UntagResource.go +++ b/service/wafregional/api_op_UntagResource.go @@ -42,7 +42,7 @@ type UntagResourceInput struct { // // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/wafregional/api_op_UpdateByteMatchSet.go b/service/wafregional/api_op_UpdateByteMatchSet.go index df89cee5953..472d14dfd5a 100644 --- a/service/wafregional/api_op_UpdateByteMatchSet.go +++ b/service/wafregional/api_op_UpdateByteMatchSet.go @@ -101,7 +101,7 @@ type UpdateByteMatchSetInput struct { // * FieldToMatch: Contains Data and Type // // This member is required. - Updates []*types.ByteMatchSetUpdate + Updates []types.ByteMatchSetUpdate } type UpdateByteMatchSetOutput struct { diff --git a/service/wafregional/api_op_UpdateGeoMatchSet.go b/service/wafregional/api_op_UpdateGeoMatchSet.go index 811dc0d82de..42ae32a8a19 100644 --- a/service/wafregional/api_op_UpdateGeoMatchSet.go +++ b/service/wafregional/api_op_UpdateGeoMatchSet.go @@ -89,7 +89,7 @@ type UpdateGeoMatchSetInput struct { // GeoMatchSetUpdate objects in your request. // // This member is required. - Updates []*types.GeoMatchSetUpdate + Updates []types.GeoMatchSetUpdate } type UpdateGeoMatchSetOutput struct { diff --git a/service/wafregional/api_op_UpdateIPSet.go b/service/wafregional/api_op_UpdateIPSet.go index 7450c84162a..865ae69061f 100644 --- a/service/wafregional/api_op_UpdateIPSet.go +++ b/service/wafregional/api_op_UpdateIPSet.go @@ -112,7 +112,7 @@ type UpdateIPSetInput struct { // You can insert a maximum of 1000 addresses in a single request. // // This member is required. - Updates []*types.IPSetUpdate + Updates []types.IPSetUpdate } type UpdateIPSetOutput struct { diff --git a/service/wafregional/api_op_UpdateRateBasedRule.go b/service/wafregional/api_op_UpdateRateBasedRule.go index fb31c837606..25172d2dc18 100644 --- a/service/wafregional/api_op_UpdateRateBasedRule.go +++ b/service/wafregional/api_op_UpdateRateBasedRule.go @@ -80,7 +80,7 @@ type UpdateRateBasedRuleInput struct { // are also met, AWS WAF triggers the action that is specified for this rule. // // This member is required. - RateLimit *int64 + RateLimit int64 // The RuleId of the RateBasedRule that you want to update. RuleId is returned by // CreateRateBasedRule and by ListRateBasedRules. @@ -92,7 +92,7 @@ type UpdateRateBasedRuleInput struct { // RateBasedRule. // // This member is required. - Updates []*types.RuleUpdate + Updates []types.RuleUpdate } type UpdateRateBasedRuleOutput struct { diff --git a/service/wafregional/api_op_UpdateRegexMatchSet.go b/service/wafregional/api_op_UpdateRegexMatchSet.go index 8a7507ebf62..fbcc01ad6ed 100644 --- a/service/wafregional/api_op_UpdateRegexMatchSet.go +++ b/service/wafregional/api_op_UpdateRegexMatchSet.go @@ -88,7 +88,7 @@ type UpdateRegexMatchSetInput struct { // from a RegexMatchSet. For more information, see RegexMatchTuple. // // This member is required. - Updates []*types.RegexMatchSetUpdate + Updates []types.RegexMatchSetUpdate } type UpdateRegexMatchSetOutput struct { diff --git a/service/wafregional/api_op_UpdateRegexPatternSet.go b/service/wafregional/api_op_UpdateRegexPatternSet.go index 13a922d3aa5..b1292d68392 100644 --- a/service/wafregional/api_op_UpdateRegexPatternSet.go +++ b/service/wafregional/api_op_UpdateRegexPatternSet.go @@ -88,7 +88,7 @@ type UpdateRegexPatternSetInput struct { // from a RegexPatternSet. // // This member is required. - Updates []*types.RegexPatternSetUpdate + Updates []types.RegexPatternSetUpdate } type UpdateRegexPatternSetOutput struct { diff --git a/service/wafregional/api_op_UpdateRule.go b/service/wafregional/api_op_UpdateRule.go index a8fe08a24a1..22fcb800ded 100644 --- a/service/wafregional/api_op_UpdateRule.go +++ b/service/wafregional/api_op_UpdateRule.go @@ -95,7 +95,7 @@ type UpdateRuleInput struct { // * FieldToMatch: Contains Data and Type // // This member is required. - Updates []*types.RuleUpdate + Updates []types.RuleUpdate } type UpdateRuleOutput struct { diff --git a/service/wafregional/api_op_UpdateRuleGroup.go b/service/wafregional/api_op_UpdateRuleGroup.go index 2031a5dce1b..6f920a62e5a 100644 --- a/service/wafregional/api_op_UpdateRuleGroup.go +++ b/service/wafregional/api_op_UpdateRuleGroup.go @@ -74,7 +74,7 @@ type UpdateRuleGroupInput struct { // requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction. // // This member is required. - Updates []*types.RuleGroupUpdate + Updates []types.RuleGroupUpdate } type UpdateRuleGroupOutput struct { diff --git a/service/wafregional/api_op_UpdateSizeConstraintSet.go b/service/wafregional/api_op_UpdateSizeConstraintSet.go index c88bbe2cd70..3ca45f15bf3 100644 --- a/service/wafregional/api_op_UpdateSizeConstraintSet.go +++ b/service/wafregional/api_op_UpdateSizeConstraintSet.go @@ -105,7 +105,7 @@ type UpdateSizeConstraintSetInput struct { // * FieldToMatch: Contains Data and Type // // This member is required. - Updates []*types.SizeConstraintSetUpdate + Updates []types.SizeConstraintSetUpdate } type UpdateSizeConstraintSetOutput struct { diff --git a/service/wafregional/api_op_UpdateSqlInjectionMatchSet.go b/service/wafregional/api_op_UpdateSqlInjectionMatchSet.go index d166aada7f7..b6eb8101b8d 100644 --- a/service/wafregional/api_op_UpdateSqlInjectionMatchSet.go +++ b/service/wafregional/api_op_UpdateSqlInjectionMatchSet.go @@ -99,7 +99,7 @@ type UpdateSqlInjectionMatchSetInput struct { // * FieldToMatch: Contains Data and Type // // This member is required. - Updates []*types.SqlInjectionMatchSetUpdate + Updates []types.SqlInjectionMatchSetUpdate } // The response to an UpdateSqlInjectionMatchSets request. diff --git a/service/wafregional/api_op_UpdateWebACL.go b/service/wafregional/api_op_UpdateWebACL.go index ab8cc641245..54ce59e07b7 100644 --- a/service/wafregional/api_op_UpdateWebACL.go +++ b/service/wafregional/api_op_UpdateWebACL.go @@ -123,7 +123,7 @@ type UpdateWebACLInput struct { // ActivatedRule|OverrideAction. // // * WafAction: Contains Type - Updates []*types.WebACLUpdate + Updates []types.WebACLUpdate } type UpdateWebACLOutput struct { diff --git a/service/wafregional/api_op_UpdateXssMatchSet.go b/service/wafregional/api_op_UpdateXssMatchSet.go index 6819f358af4..f0b10326cd7 100644 --- a/service/wafregional/api_op_UpdateXssMatchSet.go +++ b/service/wafregional/api_op_UpdateXssMatchSet.go @@ -89,7 +89,7 @@ type UpdateXssMatchSetInput struct { // * FieldToMatch: Contains Data and Type // // This member is required. - Updates []*types.XssMatchSetUpdate + Updates []types.XssMatchSetUpdate // The XssMatchSetId of the XssMatchSet that you want to update. XssMatchSetId is // returned by CreateXssMatchSet and by ListXssMatchSets. diff --git a/service/wafregional/deserializers.go b/service/wafregional/deserializers.go index 54eaeed3a39..71649ebc3e5 100644 --- a/service/wafregional/deserializers.go +++ b/service/wafregional/deserializers.go @@ -10703,7 +10703,7 @@ func awsAwsjson11_deserializeDocumentActivatedRule(v **types.ActivatedRule, valu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } case "Type": @@ -10724,7 +10724,7 @@ func awsAwsjson11_deserializeDocumentActivatedRule(v **types.ActivatedRule, valu return nil } -func awsAwsjson11_deserializeDocumentActivatedRules(v *[]*types.ActivatedRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentActivatedRules(v *[]types.ActivatedRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10737,18 +10737,20 @@ func awsAwsjson11_deserializeDocumentActivatedRules(v *[]*types.ActivatedRule, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ActivatedRule + var cv []types.ActivatedRule if *v == nil { - cv = []*types.ActivatedRule{} + cv = []types.ActivatedRule{} } else { cv = *v } for _, value := range shape { - var col *types.ActivatedRule - if err := awsAwsjson11_deserializeDocumentActivatedRule(&col, value); err != nil { + var col types.ActivatedRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentActivatedRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10784,7 +10786,7 @@ func awsAwsjson11_deserializeDocumentByteMatchSet(v **types.ByteMatchSet, value if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ByteMatchSetId = &jtv + sv.ByteMatchSetId = ptr.String(jtv) } case "ByteMatchTuples": @@ -10798,7 +10800,7 @@ func awsAwsjson11_deserializeDocumentByteMatchSet(v **types.ByteMatchSet, value if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10810,7 +10812,7 @@ func awsAwsjson11_deserializeDocumentByteMatchSet(v **types.ByteMatchSet, value return nil } -func awsAwsjson11_deserializeDocumentByteMatchSetSummaries(v *[]*types.ByteMatchSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentByteMatchSetSummaries(v *[]types.ByteMatchSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10823,18 +10825,20 @@ func awsAwsjson11_deserializeDocumentByteMatchSetSummaries(v *[]*types.ByteMatch return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ByteMatchSetSummary + var cv []types.ByteMatchSetSummary if *v == nil { - cv = []*types.ByteMatchSetSummary{} + cv = []types.ByteMatchSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ByteMatchSetSummary - if err := awsAwsjson11_deserializeDocumentByteMatchSetSummary(&col, value); err != nil { + var col types.ByteMatchSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentByteMatchSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -10870,7 +10874,7 @@ func awsAwsjson11_deserializeDocumentByteMatchSetSummary(v **types.ByteMatchSetS if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ByteMatchSetId = &jtv + sv.ByteMatchSetId = ptr.String(jtv) } case "Name": @@ -10879,7 +10883,7 @@ func awsAwsjson11_deserializeDocumentByteMatchSetSummary(v **types.ByteMatchSetS if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10958,7 +10962,7 @@ func awsAwsjson11_deserializeDocumentByteMatchTuple(v **types.ByteMatchTuple, va return nil } -func awsAwsjson11_deserializeDocumentByteMatchTuples(v *[]*types.ByteMatchTuple, value interface{}) error { +func awsAwsjson11_deserializeDocumentByteMatchTuples(v *[]types.ByteMatchTuple, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10971,18 +10975,20 @@ func awsAwsjson11_deserializeDocumentByteMatchTuples(v *[]*types.ByteMatchTuple, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ByteMatchTuple + var cv []types.ByteMatchTuple if *v == nil { - cv = []*types.ByteMatchTuple{} + cv = []types.ByteMatchTuple{} } else { cv = *v } for _, value := range shape { - var col *types.ByteMatchTuple - if err := awsAwsjson11_deserializeDocumentByteMatchTuple(&col, value); err != nil { + var col types.ByteMatchTuple + destAddr := &col + if err := awsAwsjson11_deserializeDocumentByteMatchTuple(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11018,7 +11024,7 @@ func awsAwsjson11_deserializeDocumentExcludedRule(v **types.ExcludedRule, value if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } default: @@ -11030,7 +11036,7 @@ func awsAwsjson11_deserializeDocumentExcludedRule(v **types.ExcludedRule, value return nil } -func awsAwsjson11_deserializeDocumentExcludedRules(v *[]*types.ExcludedRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentExcludedRules(v *[]types.ExcludedRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11043,18 +11049,20 @@ func awsAwsjson11_deserializeDocumentExcludedRules(v *[]*types.ExcludedRule, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExcludedRule + var cv []types.ExcludedRule if *v == nil { - cv = []*types.ExcludedRule{} + cv = []types.ExcludedRule{} } else { cv = *v } for _, value := range shape { - var col *types.ExcludedRule - if err := awsAwsjson11_deserializeDocumentExcludedRule(&col, value); err != nil { + var col types.ExcludedRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExcludedRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11090,7 +11098,7 @@ func awsAwsjson11_deserializeDocumentFieldToMatch(v **types.FieldToMatch, value if !ok { return fmt.Errorf("expected MatchFieldData to be of type string, got %T instead", value) } - sv.Data = &jtv + sv.Data = ptr.String(jtv) } case "Type": @@ -11160,7 +11168,7 @@ func awsAwsjson11_deserializeDocumentGeoMatchConstraint(v **types.GeoMatchConstr return nil } -func awsAwsjson11_deserializeDocumentGeoMatchConstraints(v *[]*types.GeoMatchConstraint, value interface{}) error { +func awsAwsjson11_deserializeDocumentGeoMatchConstraints(v *[]types.GeoMatchConstraint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11173,18 +11181,20 @@ func awsAwsjson11_deserializeDocumentGeoMatchConstraints(v *[]*types.GeoMatchCon return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GeoMatchConstraint + var cv []types.GeoMatchConstraint if *v == nil { - cv = []*types.GeoMatchConstraint{} + cv = []types.GeoMatchConstraint{} } else { cv = *v } for _, value := range shape { - var col *types.GeoMatchConstraint - if err := awsAwsjson11_deserializeDocumentGeoMatchConstraint(&col, value); err != nil { + var col types.GeoMatchConstraint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGeoMatchConstraint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11225,7 +11235,7 @@ func awsAwsjson11_deserializeDocumentGeoMatchSet(v **types.GeoMatchSet, value in if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.GeoMatchSetId = &jtv + sv.GeoMatchSetId = ptr.String(jtv) } case "Name": @@ -11234,7 +11244,7 @@ func awsAwsjson11_deserializeDocumentGeoMatchSet(v **types.GeoMatchSet, value in if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -11246,7 +11256,7 @@ func awsAwsjson11_deserializeDocumentGeoMatchSet(v **types.GeoMatchSet, value in return nil } -func awsAwsjson11_deserializeDocumentGeoMatchSetSummaries(v *[]*types.GeoMatchSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentGeoMatchSetSummaries(v *[]types.GeoMatchSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11259,18 +11269,20 @@ func awsAwsjson11_deserializeDocumentGeoMatchSetSummaries(v *[]*types.GeoMatchSe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GeoMatchSetSummary + var cv []types.GeoMatchSetSummary if *v == nil { - cv = []*types.GeoMatchSetSummary{} + cv = []types.GeoMatchSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.GeoMatchSetSummary - if err := awsAwsjson11_deserializeDocumentGeoMatchSetSummary(&col, value); err != nil { + var col types.GeoMatchSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGeoMatchSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11306,7 +11318,7 @@ func awsAwsjson11_deserializeDocumentGeoMatchSetSummary(v **types.GeoMatchSetSum if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.GeoMatchSetId = &jtv + sv.GeoMatchSetId = ptr.String(jtv) } case "Name": @@ -11315,7 +11327,7 @@ func awsAwsjson11_deserializeDocumentGeoMatchSetSummary(v **types.GeoMatchSetSum if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -11355,7 +11367,7 @@ func awsAwsjson11_deserializeDocumentHTTPHeader(v **types.HTTPHeader, value inte if !ok { return fmt.Errorf("expected HeaderName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Value": @@ -11364,7 +11376,7 @@ func awsAwsjson11_deserializeDocumentHTTPHeader(v **types.HTTPHeader, value inte if !ok { return fmt.Errorf("expected HeaderValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -11376,7 +11388,7 @@ func awsAwsjson11_deserializeDocumentHTTPHeader(v **types.HTTPHeader, value inte return nil } -func awsAwsjson11_deserializeDocumentHTTPHeaders(v *[]*types.HTTPHeader, value interface{}) error { +func awsAwsjson11_deserializeDocumentHTTPHeaders(v *[]types.HTTPHeader, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11389,18 +11401,20 @@ func awsAwsjson11_deserializeDocumentHTTPHeaders(v *[]*types.HTTPHeader, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HTTPHeader + var cv []types.HTTPHeader if *v == nil { - cv = []*types.HTTPHeader{} + cv = []types.HTTPHeader{} } else { cv = *v } for _, value := range shape { - var col *types.HTTPHeader - if err := awsAwsjson11_deserializeDocumentHTTPHeader(&col, value); err != nil { + var col types.HTTPHeader + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHTTPHeader(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11436,7 +11450,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected IPString to be of type string, got %T instead", value) } - sv.ClientIP = &jtv + sv.ClientIP = ptr.String(jtv) } case "Country": @@ -11445,7 +11459,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected Country to be of type string, got %T instead", value) } - sv.Country = &jtv + sv.Country = ptr.String(jtv) } case "Headers": @@ -11459,7 +11473,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected HTTPVersion to be of type string, got %T instead", value) } - sv.HTTPVersion = &jtv + sv.HTTPVersion = ptr.String(jtv) } case "Method": @@ -11468,7 +11482,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected HTTPMethod to be of type string, got %T instead", value) } - sv.Method = &jtv + sv.Method = ptr.String(jtv) } case "URI": @@ -11477,7 +11491,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected URIString to be of type string, got %T instead", value) } - sv.URI = &jtv + sv.URI = ptr.String(jtv) } default: @@ -11522,7 +11536,7 @@ func awsAwsjson11_deserializeDocumentIPSet(v **types.IPSet, value interface{}) e if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.IPSetId = &jtv + sv.IPSetId = ptr.String(jtv) } case "Name": @@ -11531,7 +11545,7 @@ func awsAwsjson11_deserializeDocumentIPSet(v **types.IPSet, value interface{}) e if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -11580,7 +11594,7 @@ func awsAwsjson11_deserializeDocumentIPSetDescriptor(v **types.IPSetDescriptor, if !ok { return fmt.Errorf("expected IPSetDescriptorValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -11592,7 +11606,7 @@ func awsAwsjson11_deserializeDocumentIPSetDescriptor(v **types.IPSetDescriptor, return nil } -func awsAwsjson11_deserializeDocumentIPSetDescriptors(v *[]*types.IPSetDescriptor, value interface{}) error { +func awsAwsjson11_deserializeDocumentIPSetDescriptors(v *[]types.IPSetDescriptor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11605,18 +11619,20 @@ func awsAwsjson11_deserializeDocumentIPSetDescriptors(v *[]*types.IPSetDescripto return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IPSetDescriptor + var cv []types.IPSetDescriptor if *v == nil { - cv = []*types.IPSetDescriptor{} + cv = []types.IPSetDescriptor{} } else { cv = *v } for _, value := range shape { - var col *types.IPSetDescriptor - if err := awsAwsjson11_deserializeDocumentIPSetDescriptor(&col, value); err != nil { + var col types.IPSetDescriptor + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIPSetDescriptor(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11624,7 +11640,7 @@ func awsAwsjson11_deserializeDocumentIPSetDescriptors(v *[]*types.IPSetDescripto return nil } -func awsAwsjson11_deserializeDocumentIPSetSummaries(v *[]*types.IPSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentIPSetSummaries(v *[]types.IPSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11637,18 +11653,20 @@ func awsAwsjson11_deserializeDocumentIPSetSummaries(v *[]*types.IPSetSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IPSetSummary + var cv []types.IPSetSummary if *v == nil { - cv = []*types.IPSetSummary{} + cv = []types.IPSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.IPSetSummary - if err := awsAwsjson11_deserializeDocumentIPSetSummary(&col, value); err != nil { + var col types.IPSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIPSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11684,7 +11702,7 @@ func awsAwsjson11_deserializeDocumentIPSetSummary(v **types.IPSetSummary, value if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.IPSetId = &jtv + sv.IPSetId = ptr.String(jtv) } case "Name": @@ -11693,7 +11711,7 @@ func awsAwsjson11_deserializeDocumentIPSetSummary(v **types.IPSetSummary, value if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -11705,7 +11723,7 @@ func awsAwsjson11_deserializeDocumentIPSetSummary(v **types.IPSetSummary, value return nil } -func awsAwsjson11_deserializeDocumentLogDestinationConfigs(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogDestinationConfigs(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11718,21 +11736,21 @@ func awsAwsjson11_deserializeDocumentLogDestinationConfigs(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11779,7 +11797,7 @@ func awsAwsjson11_deserializeDocumentLoggingConfiguration(v **types.LoggingConfi if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } default: @@ -11791,7 +11809,7 @@ func awsAwsjson11_deserializeDocumentLoggingConfiguration(v **types.LoggingConfi return nil } -func awsAwsjson11_deserializeDocumentLoggingConfigurations(v *[]*types.LoggingConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentLoggingConfigurations(v *[]types.LoggingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11804,18 +11822,20 @@ func awsAwsjson11_deserializeDocumentLoggingConfigurations(v *[]*types.LoggingCo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LoggingConfiguration + var cv []types.LoggingConfiguration if *v == nil { - cv = []*types.LoggingConfiguration{} + cv = []types.LoggingConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.LoggingConfiguration - if err := awsAwsjson11_deserializeDocumentLoggingConfiguration(&col, value); err != nil { + var col types.LoggingConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLoggingConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11823,7 +11843,7 @@ func awsAwsjson11_deserializeDocumentLoggingConfigurations(v *[]*types.LoggingCo return nil } -func awsAwsjson11_deserializeDocumentManagedKeys(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentManagedKeys(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11836,21 +11856,21 @@ func awsAwsjson11_deserializeDocumentManagedKeys(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ManagedKey to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -11887,7 +11907,7 @@ func awsAwsjson11_deserializeDocumentPredicate(v **types.Predicate, value interf if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DataId = &jtv + sv.DataId = ptr.String(jtv) } case "Negated": @@ -11896,7 +11916,7 @@ func awsAwsjson11_deserializeDocumentPredicate(v **types.Predicate, value interf if !ok { return fmt.Errorf("expected Negated to be of type *bool, got %T instead", value) } - sv.Negated = &jtv + sv.Negated = ptr.Bool(jtv) } case "Type": @@ -11917,7 +11937,7 @@ func awsAwsjson11_deserializeDocumentPredicate(v **types.Predicate, value interf return nil } -func awsAwsjson11_deserializeDocumentPredicates(v *[]*types.Predicate, value interface{}) error { +func awsAwsjson11_deserializeDocumentPredicates(v *[]types.Predicate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11930,18 +11950,20 @@ func awsAwsjson11_deserializeDocumentPredicates(v *[]*types.Predicate, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Predicate + var cv []types.Predicate if *v == nil { - cv = []*types.Predicate{} + cv = []types.Predicate{} } else { cv = *v } for _, value := range shape { - var col *types.Predicate - if err := awsAwsjson11_deserializeDocumentPredicate(&col, value); err != nil { + var col types.Predicate + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPredicate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -11982,7 +12004,7 @@ func awsAwsjson11_deserializeDocumentRateBasedRule(v **types.RateBasedRule, valu if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Name": @@ -11991,7 +12013,7 @@ func awsAwsjson11_deserializeDocumentRateBasedRule(v **types.RateBasedRule, valu if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RateKey": @@ -12013,7 +12035,7 @@ func awsAwsjson11_deserializeDocumentRateBasedRule(v **types.RateBasedRule, valu if err != nil { return err } - sv.RateLimit = &i64 + sv.RateLimit = i64 } case "RuleId": @@ -12022,7 +12044,7 @@ func awsAwsjson11_deserializeDocumentRateBasedRule(v **types.RateBasedRule, valu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } default: @@ -12034,7 +12056,7 @@ func awsAwsjson11_deserializeDocumentRateBasedRule(v **types.RateBasedRule, valu return nil } -func awsAwsjson11_deserializeDocumentRedactedFields(v *[]*types.FieldToMatch, value interface{}) error { +func awsAwsjson11_deserializeDocumentRedactedFields(v *[]types.FieldToMatch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12047,18 +12069,20 @@ func awsAwsjson11_deserializeDocumentRedactedFields(v *[]*types.FieldToMatch, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FieldToMatch + var cv []types.FieldToMatch if *v == nil { - cv = []*types.FieldToMatch{} + cv = []types.FieldToMatch{} } else { cv = *v } for _, value := range shape { - var col *types.FieldToMatch - if err := awsAwsjson11_deserializeDocumentFieldToMatch(&col, value); err != nil { + var col types.FieldToMatch + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFieldToMatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12094,7 +12118,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchSet(v **types.RegexMatchSet, valu if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RegexMatchSetId": @@ -12103,7 +12127,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchSet(v **types.RegexMatchSet, valu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RegexMatchSetId = &jtv + sv.RegexMatchSetId = ptr.String(jtv) } case "RegexMatchTuples": @@ -12120,7 +12144,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchSet(v **types.RegexMatchSet, valu return nil } -func awsAwsjson11_deserializeDocumentRegexMatchSetSummaries(v *[]*types.RegexMatchSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentRegexMatchSetSummaries(v *[]types.RegexMatchSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12133,18 +12157,20 @@ func awsAwsjson11_deserializeDocumentRegexMatchSetSummaries(v *[]*types.RegexMat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RegexMatchSetSummary + var cv []types.RegexMatchSetSummary if *v == nil { - cv = []*types.RegexMatchSetSummary{} + cv = []types.RegexMatchSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RegexMatchSetSummary - if err := awsAwsjson11_deserializeDocumentRegexMatchSetSummary(&col, value); err != nil { + var col types.RegexMatchSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRegexMatchSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12180,7 +12206,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchSetSummary(v **types.RegexMatchSe if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RegexMatchSetId": @@ -12189,7 +12215,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchSetSummary(v **types.RegexMatchSe if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RegexMatchSetId = &jtv + sv.RegexMatchSetId = ptr.String(jtv) } default: @@ -12234,7 +12260,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchTuple(v **types.RegexMatchTuple, if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RegexPatternSetId = &jtv + sv.RegexPatternSetId = ptr.String(jtv) } case "TextTransformation": @@ -12255,7 +12281,7 @@ func awsAwsjson11_deserializeDocumentRegexMatchTuple(v **types.RegexMatchTuple, return nil } -func awsAwsjson11_deserializeDocumentRegexMatchTuples(v *[]*types.RegexMatchTuple, value interface{}) error { +func awsAwsjson11_deserializeDocumentRegexMatchTuples(v *[]types.RegexMatchTuple, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12268,18 +12294,20 @@ func awsAwsjson11_deserializeDocumentRegexMatchTuples(v *[]*types.RegexMatchTupl return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RegexMatchTuple + var cv []types.RegexMatchTuple if *v == nil { - cv = []*types.RegexMatchTuple{} + cv = []types.RegexMatchTuple{} } else { cv = *v } for _, value := range shape { - var col *types.RegexMatchTuple - if err := awsAwsjson11_deserializeDocumentRegexMatchTuple(&col, value); err != nil { + var col types.RegexMatchTuple + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRegexMatchTuple(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12315,7 +12343,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSet(v **types.RegexPatternSet, if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RegexPatternSetId": @@ -12324,7 +12352,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSet(v **types.RegexPatternSet, if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RegexPatternSetId = &jtv + sv.RegexPatternSetId = ptr.String(jtv) } case "RegexPatternStrings": @@ -12341,7 +12369,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSet(v **types.RegexPatternSet, return nil } -func awsAwsjson11_deserializeDocumentRegexPatternSetSummaries(v *[]*types.RegexPatternSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentRegexPatternSetSummaries(v *[]types.RegexPatternSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12354,18 +12382,20 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummaries(v *[]*types.RegexP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RegexPatternSetSummary + var cv []types.RegexPatternSetSummary if *v == nil { - cv = []*types.RegexPatternSetSummary{} + cv = []types.RegexPatternSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RegexPatternSetSummary - if err := awsAwsjson11_deserializeDocumentRegexPatternSetSummary(&col, value); err != nil { + var col types.RegexPatternSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRegexPatternSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12401,7 +12431,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummary(v **types.RegexPatte if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RegexPatternSetId": @@ -12410,7 +12440,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummary(v **types.RegexPatte if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RegexPatternSetId = &jtv + sv.RegexPatternSetId = ptr.String(jtv) } default: @@ -12422,7 +12452,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummary(v **types.RegexPatte return nil } -func awsAwsjson11_deserializeDocumentRegexPatternStrings(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentRegexPatternStrings(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12435,21 +12465,21 @@ func awsAwsjson11_deserializeDocumentRegexPatternStrings(v *[]*string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected RegexPatternString to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -12458,7 +12488,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternStrings(v *[]*string, value int return nil } -func awsAwsjson11_deserializeDocumentResourceArns(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12471,21 +12501,21 @@ func awsAwsjson11_deserializeDocumentResourceArns(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -12522,7 +12552,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Name": @@ -12531,7 +12561,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Predicates": @@ -12545,7 +12575,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } default: @@ -12585,7 +12615,7 @@ func awsAwsjson11_deserializeDocumentRuleGroup(v **types.RuleGroup, value interf if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Name": @@ -12594,7 +12624,7 @@ func awsAwsjson11_deserializeDocumentRuleGroup(v **types.RuleGroup, value interf if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RuleGroupId": @@ -12603,7 +12633,7 @@ func awsAwsjson11_deserializeDocumentRuleGroup(v **types.RuleGroup, value interf if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleGroupId = &jtv + sv.RuleGroupId = ptr.String(jtv) } default: @@ -12615,7 +12645,7 @@ func awsAwsjson11_deserializeDocumentRuleGroup(v **types.RuleGroup, value interf return nil } -func awsAwsjson11_deserializeDocumentRuleGroupSummaries(v *[]*types.RuleGroupSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuleGroupSummaries(v *[]types.RuleGroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12628,18 +12658,20 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummaries(v *[]*types.RuleGroupSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RuleGroupSummary + var cv []types.RuleGroupSummary if *v == nil { - cv = []*types.RuleGroupSummary{} + cv = []types.RuleGroupSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RuleGroupSummary - if err := awsAwsjson11_deserializeDocumentRuleGroupSummary(&col, value); err != nil { + var col types.RuleGroupSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRuleGroupSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12675,7 +12707,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummary(v **types.RuleGroupSummary if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RuleGroupId": @@ -12684,7 +12716,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummary(v **types.RuleGroupSummary if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleGroupId = &jtv + sv.RuleGroupId = ptr.String(jtv) } default: @@ -12696,7 +12728,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummary(v **types.RuleGroupSummary return nil } -func awsAwsjson11_deserializeDocumentRuleSummaries(v *[]*types.RuleSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuleSummaries(v *[]types.RuleSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12709,18 +12741,20 @@ func awsAwsjson11_deserializeDocumentRuleSummaries(v *[]*types.RuleSummary, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RuleSummary + var cv []types.RuleSummary if *v == nil { - cv = []*types.RuleSummary{} + cv = []types.RuleSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RuleSummary - if err := awsAwsjson11_deserializeDocumentRuleSummary(&col, value); err != nil { + var col types.RuleSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRuleSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12756,7 +12790,7 @@ func awsAwsjson11_deserializeDocumentRuleSummary(v **types.RuleSummary, value in if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RuleId": @@ -12765,7 +12799,7 @@ func awsAwsjson11_deserializeDocumentRuleSummary(v **types.RuleSummary, value in if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleId = &jtv + sv.RuleId = ptr.String(jtv) } default: @@ -12805,7 +12839,7 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequest(v **types.SampledHTTPReq if !ok { return fmt.Errorf("expected Action to be of type string, got %T instead", value) } - sv.Action = &jtv + sv.Action = ptr.String(jtv) } case "Request": @@ -12819,7 +12853,7 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequest(v **types.SampledHTTPReq if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleWithinRuleGroup = &jtv + sv.RuleWithinRuleGroup = ptr.String(jtv) } case "Timestamp": @@ -12845,7 +12879,7 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequest(v **types.SampledHTTPReq if err != nil { return err } - sv.Weight = &i64 + sv.Weight = i64 } default: @@ -12857,7 +12891,7 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequest(v **types.SampledHTTPReq return nil } -func awsAwsjson11_deserializeDocumentSampledHTTPRequests(v *[]*types.SampledHTTPRequest, value interface{}) error { +func awsAwsjson11_deserializeDocumentSampledHTTPRequests(v *[]types.SampledHTTPRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12870,18 +12904,20 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequests(v *[]*types.SampledHTTP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SampledHTTPRequest + var cv []types.SampledHTTPRequest if *v == nil { - cv = []*types.SampledHTTPRequest{} + cv = []types.SampledHTTPRequest{} } else { cv = *v } for _, value := range shape { - var col *types.SampledHTTPRequest - if err := awsAwsjson11_deserializeDocumentSampledHTTPRequest(&col, value); err != nil { + var col types.SampledHTTPRequest + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSampledHTTPRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -12935,7 +12971,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraint(v **types.SizeConstraint, va if err != nil { return err } - sv.Size = &i64 + sv.Size = i64 } case "TextTransformation": @@ -12956,7 +12992,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraint(v **types.SizeConstraint, va return nil } -func awsAwsjson11_deserializeDocumentSizeConstraints(v *[]*types.SizeConstraint, value interface{}) error { +func awsAwsjson11_deserializeDocumentSizeConstraints(v *[]types.SizeConstraint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12969,18 +13005,20 @@ func awsAwsjson11_deserializeDocumentSizeConstraints(v *[]*types.SizeConstraint, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SizeConstraint + var cv []types.SizeConstraint if *v == nil { - cv = []*types.SizeConstraint{} + cv = []types.SizeConstraint{} } else { cv = *v } for _, value := range shape { - var col *types.SizeConstraint - if err := awsAwsjson11_deserializeDocumentSizeConstraint(&col, value); err != nil { + var col types.SizeConstraint + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSizeConstraint(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13016,7 +13054,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraintSet(v **types.SizeConstraintS if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SizeConstraints": @@ -13030,7 +13068,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraintSet(v **types.SizeConstraintS if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.SizeConstraintSetId = &jtv + sv.SizeConstraintSetId = ptr.String(jtv) } default: @@ -13042,7 +13080,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraintSet(v **types.SizeConstraintS return nil } -func awsAwsjson11_deserializeDocumentSizeConstraintSetSummaries(v *[]*types.SizeConstraintSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSizeConstraintSetSummaries(v *[]types.SizeConstraintSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13055,18 +13093,20 @@ func awsAwsjson11_deserializeDocumentSizeConstraintSetSummaries(v *[]*types.Size return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SizeConstraintSetSummary + var cv []types.SizeConstraintSetSummary if *v == nil { - cv = []*types.SizeConstraintSetSummary{} + cv = []types.SizeConstraintSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SizeConstraintSetSummary - if err := awsAwsjson11_deserializeDocumentSizeConstraintSetSummary(&col, value); err != nil { + var col types.SizeConstraintSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSizeConstraintSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13102,7 +13142,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraintSetSummary(v **types.SizeCons if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SizeConstraintSetId": @@ -13111,7 +13151,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraintSetSummary(v **types.SizeCons if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.SizeConstraintSetId = &jtv + sv.SizeConstraintSetId = ptr.String(jtv) } default: @@ -13151,7 +13191,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchSet(v **types.SqlInjection if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SqlInjectionMatchSetId": @@ -13160,7 +13200,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchSet(v **types.SqlInjection if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.SqlInjectionMatchSetId = &jtv + sv.SqlInjectionMatchSetId = ptr.String(jtv) } case "SqlInjectionMatchTuples": @@ -13177,7 +13217,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchSet(v **types.SqlInjection return nil } -func awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummaries(v *[]*types.SqlInjectionMatchSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummaries(v *[]types.SqlInjectionMatchSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13190,18 +13230,20 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummaries(v *[]*types.S return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SqlInjectionMatchSetSummary + var cv []types.SqlInjectionMatchSetSummary if *v == nil { - cv = []*types.SqlInjectionMatchSetSummary{} + cv = []types.SqlInjectionMatchSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SqlInjectionMatchSetSummary - if err := awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummary(&col, value); err != nil { + var col types.SqlInjectionMatchSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13237,7 +13279,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummary(v **types.SqlIn if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "SqlInjectionMatchSetId": @@ -13246,7 +13288,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchSetSummary(v **types.SqlIn if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.SqlInjectionMatchSetId = &jtv + sv.SqlInjectionMatchSetId = ptr.String(jtv) } default: @@ -13303,7 +13345,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchTuple(v **types.SqlInjecti return nil } -func awsAwsjson11_deserializeDocumentSqlInjectionMatchTuples(v *[]*types.SqlInjectionMatchTuple, value interface{}) error { +func awsAwsjson11_deserializeDocumentSqlInjectionMatchTuples(v *[]types.SqlInjectionMatchTuple, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13316,18 +13358,20 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchTuples(v *[]*types.SqlInje return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SqlInjectionMatchTuple + var cv []types.SqlInjectionMatchTuple if *v == nil { - cv = []*types.SqlInjectionMatchTuple{} + cv = []types.SqlInjectionMatchTuple{} } else { cv = *v } for _, value := range shape { - var col *types.SqlInjectionMatchTuple - if err := awsAwsjson11_deserializeDocumentSqlInjectionMatchTuple(&col, value); err != nil { + var col types.SqlInjectionMatchTuple + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSqlInjectionMatchTuple(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13335,7 +13379,7 @@ func awsAwsjson11_deserializeDocumentSqlInjectionMatchTuples(v *[]*types.SqlInje return nil } -func awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummaries(v *[]*types.SubscribedRuleGroupSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummaries(v *[]types.SubscribedRuleGroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13348,18 +13392,20 @@ func awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummaries(v *[]*types.Su return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SubscribedRuleGroupSummary + var cv []types.SubscribedRuleGroupSummary if *v == nil { - cv = []*types.SubscribedRuleGroupSummary{} + cv = []types.SubscribedRuleGroupSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SubscribedRuleGroupSummary - if err := awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummary(&col, value); err != nil { + var col types.SubscribedRuleGroupSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13395,7 +13441,7 @@ func awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummary(v **types.Subscr if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Name": @@ -13404,7 +13450,7 @@ func awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummary(v **types.Subscr if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RuleGroupId": @@ -13413,7 +13459,7 @@ func awsAwsjson11_deserializeDocumentSubscribedRuleGroupSummary(v **types.Subscr if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.RuleGroupId = &jtv + sv.RuleGroupId = ptr.String(jtv) } default: @@ -13453,7 +13499,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -13462,7 +13508,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -13502,7 +13548,7 @@ func awsAwsjson11_deserializeDocumentTagInfoForResource(v **types.TagInfoForReso if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "TagList": @@ -13519,7 +13565,7 @@ func awsAwsjson11_deserializeDocumentTagInfoForResource(v **types.TagInfoForReso return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13532,18 +13578,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -13676,7 +13724,7 @@ func awsAwsjson11_deserializeDocumentWAFBadRequestException(v **types.WAFBadRequ if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13716,7 +13764,7 @@ func awsAwsjson11_deserializeDocumentWAFDisallowedNameException(v **types.WAFDis if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13756,7 +13804,7 @@ func awsAwsjson11_deserializeDocumentWAFEntityMigrationException(v **types.WAFEn if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "MigrationErrorReason": @@ -13765,7 +13813,7 @@ func awsAwsjson11_deserializeDocumentWAFEntityMigrationException(v **types.WAFEn if !ok { return fmt.Errorf("expected ErrorReason to be of type string, got %T instead", value) } - sv.MigrationErrorReason = &jtv + sv.MigrationErrorReason = ptr.String(jtv) } case "MigrationErrorType": @@ -13814,7 +13862,7 @@ func awsAwsjson11_deserializeDocumentWAFInternalErrorException(v **types.WAFInte if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13885,7 +13933,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidOperationException(v **types.WAFI if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -13934,7 +13982,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidParameterException(v **types.WAFI if !ok { return fmt.Errorf("expected ParameterExceptionParameter to be of type string, got %T instead", value) } - sv.Parameter = &jtv + sv.Parameter = ptr.String(jtv) } case "reason": @@ -13983,7 +14031,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidPermissionPolicyException(v **typ if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14023,7 +14071,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidRegexPatternException(v **types.W if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14063,7 +14111,7 @@ func awsAwsjson11_deserializeDocumentWAFLimitsExceededException(v **types.WAFLim if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14103,7 +14151,7 @@ func awsAwsjson11_deserializeDocumentWAFNonEmptyEntityException(v **types.WAFNon if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14143,7 +14191,7 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentContainerException(v **types. if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14183,7 +14231,7 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentItemException(v **types.WAFNo if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14263,7 +14311,7 @@ func awsAwsjson11_deserializeDocumentWAFReferencedItemException(v **types.WAFRef if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14303,7 +14351,7 @@ func awsAwsjson11_deserializeDocumentWAFServiceLinkedRoleErrorException(v **type if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14343,7 +14391,7 @@ func awsAwsjson11_deserializeDocumentWAFStaleDataException(v **types.WAFStaleDat if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14383,7 +14431,7 @@ func awsAwsjson11_deserializeDocumentWAFSubscriptionNotFoundException(v **types. if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14423,7 +14471,7 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationException(v **types.WAFTagOp if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14463,7 +14511,7 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationInternalErrorException(v **t if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14503,7 +14551,7 @@ func awsAwsjson11_deserializeDocumentWAFUnavailableEntityException(v **types.WAF if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -14548,7 +14596,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "Name": @@ -14557,7 +14605,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Rules": @@ -14571,7 +14619,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.WebACLArn = &jtv + sv.WebACLArn = ptr.String(jtv) } case "WebACLId": @@ -14580,7 +14628,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.WebACLId = &jtv + sv.WebACLId = ptr.String(jtv) } default: @@ -14592,7 +14640,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentWebACLSummaries(v *[]*types.WebACLSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentWebACLSummaries(v *[]types.WebACLSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14605,18 +14653,20 @@ func awsAwsjson11_deserializeDocumentWebACLSummaries(v *[]*types.WebACLSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WebACLSummary + var cv []types.WebACLSummary if *v == nil { - cv = []*types.WebACLSummary{} + cv = []types.WebACLSummary{} } else { cv = *v } for _, value := range shape { - var col *types.WebACLSummary - if err := awsAwsjson11_deserializeDocumentWebACLSummary(&col, value); err != nil { + var col types.WebACLSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWebACLSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14652,7 +14702,7 @@ func awsAwsjson11_deserializeDocumentWebACLSummary(v **types.WebACLSummary, valu if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "WebACLId": @@ -14661,7 +14711,7 @@ func awsAwsjson11_deserializeDocumentWebACLSummary(v **types.WebACLSummary, valu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.WebACLId = &jtv + sv.WebACLId = ptr.String(jtv) } default: @@ -14701,7 +14751,7 @@ func awsAwsjson11_deserializeDocumentXssMatchSet(v **types.XssMatchSet, value in if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "XssMatchSetId": @@ -14710,7 +14760,7 @@ func awsAwsjson11_deserializeDocumentXssMatchSet(v **types.XssMatchSet, value in if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.XssMatchSetId = &jtv + sv.XssMatchSetId = ptr.String(jtv) } case "XssMatchTuples": @@ -14727,7 +14777,7 @@ func awsAwsjson11_deserializeDocumentXssMatchSet(v **types.XssMatchSet, value in return nil } -func awsAwsjson11_deserializeDocumentXssMatchSetSummaries(v *[]*types.XssMatchSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentXssMatchSetSummaries(v *[]types.XssMatchSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14740,18 +14790,20 @@ func awsAwsjson11_deserializeDocumentXssMatchSetSummaries(v *[]*types.XssMatchSe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.XssMatchSetSummary + var cv []types.XssMatchSetSummary if *v == nil { - cv = []*types.XssMatchSetSummary{} + cv = []types.XssMatchSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.XssMatchSetSummary - if err := awsAwsjson11_deserializeDocumentXssMatchSetSummary(&col, value); err != nil { + var col types.XssMatchSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentXssMatchSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14787,7 +14839,7 @@ func awsAwsjson11_deserializeDocumentXssMatchSetSummary(v **types.XssMatchSetSum if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "XssMatchSetId": @@ -14796,7 +14848,7 @@ func awsAwsjson11_deserializeDocumentXssMatchSetSummary(v **types.XssMatchSetSum if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.XssMatchSetId = &jtv + sv.XssMatchSetId = ptr.String(jtv) } default: @@ -14853,7 +14905,7 @@ func awsAwsjson11_deserializeDocumentXssMatchTuple(v **types.XssMatchTuple, valu return nil } -func awsAwsjson11_deserializeDocumentXssMatchTuples(v *[]*types.XssMatchTuple, value interface{}) error { +func awsAwsjson11_deserializeDocumentXssMatchTuples(v *[]types.XssMatchTuple, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14866,18 +14918,20 @@ func awsAwsjson11_deserializeDocumentXssMatchTuples(v *[]*types.XssMatchTuple, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.XssMatchTuple + var cv []types.XssMatchTuple if *v == nil { - cv = []*types.XssMatchTuple{} + cv = []types.XssMatchTuple{} } else { cv = *v } for _, value := range shape { - var col *types.XssMatchTuple - if err := awsAwsjson11_deserializeDocumentXssMatchTuple(&col, value); err != nil { + var col types.XssMatchTuple + destAddr := &col + if err := awsAwsjson11_deserializeDocumentXssMatchTuple(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -14949,7 +15003,7 @@ func awsAwsjson11_deserializeOpDocumentCreateByteMatchSetOutput(v **CreateByteMa if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -14989,7 +15043,7 @@ func awsAwsjson11_deserializeOpDocumentCreateGeoMatchSetOutput(v **CreateGeoMatc if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "GeoMatchSet": @@ -15034,7 +15088,7 @@ func awsAwsjson11_deserializeOpDocumentCreateIPSetOutput(v **CreateIPSetOutput, if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "IPSet": @@ -15079,7 +15133,7 @@ func awsAwsjson11_deserializeOpDocumentCreateRateBasedRuleOutput(v **CreateRateB if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "Rule": @@ -15124,7 +15178,7 @@ func awsAwsjson11_deserializeOpDocumentCreateRegexMatchSetOutput(v **CreateRegex if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "RegexMatchSet": @@ -15169,7 +15223,7 @@ func awsAwsjson11_deserializeOpDocumentCreateRegexPatternSetOutput(v **CreateReg if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "RegexPatternSet": @@ -15214,7 +15268,7 @@ func awsAwsjson11_deserializeOpDocumentCreateRuleGroupOutput(v **CreateRuleGroup if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "RuleGroup": @@ -15259,7 +15313,7 @@ func awsAwsjson11_deserializeOpDocumentCreateRuleOutput(v **CreateRuleOutput, va if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "Rule": @@ -15304,7 +15358,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSizeConstraintSetOutput(v **CreateS if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "SizeConstraintSet": @@ -15349,7 +15403,7 @@ func awsAwsjson11_deserializeOpDocumentCreateSqlInjectionMatchSetOutput(v **Crea if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "SqlInjectionMatchSet": @@ -15394,7 +15448,7 @@ func awsAwsjson11_deserializeOpDocumentCreateWebACLMigrationStackOutput(v **Crea if !ok { return fmt.Errorf("expected S3ObjectUrl to be of type string, got %T instead", value) } - sv.S3ObjectUrl = &jtv + sv.S3ObjectUrl = ptr.String(jtv) } default: @@ -15434,7 +15488,7 @@ func awsAwsjson11_deserializeOpDocumentCreateWebACLOutput(v **CreateWebACLOutput if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "WebACL": @@ -15479,7 +15533,7 @@ func awsAwsjson11_deserializeOpDocumentCreateXssMatchSetOutput(v **CreateXssMatc if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } case "XssMatchSet": @@ -15524,7 +15578,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteByteMatchSetOutput(v **DeleteByteMa if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15564,7 +15618,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteGeoMatchSetOutput(v **DeleteGeoMatc if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15604,7 +15658,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteIPSetOutput(v **DeleteIPSetOutput, if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15706,7 +15760,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRateBasedRuleOutput(v **DeleteRateB if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15746,7 +15800,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRegexMatchSetOutput(v **DeleteRegex if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15786,7 +15840,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRegexPatternSetOutput(v **DeleteReg if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15826,7 +15880,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRuleGroupOutput(v **DeleteRuleGroup if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15866,7 +15920,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteRuleOutput(v **DeleteRuleOutput, va if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15906,7 +15960,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteSizeConstraintSetOutput(v **DeleteS if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15946,7 +16000,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteSqlInjectionMatchSetOutput(v **Dele if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -15986,7 +16040,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteWebACLOutput(v **DeleteWebACLOutput if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -16026,7 +16080,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteXssMatchSetOutput(v **DeleteXssMatc if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -16133,7 +16187,7 @@ func awsAwsjson11_deserializeOpDocumentGetChangeTokenOutput(v **GetChangeTokenOu if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -16321,7 +16375,7 @@ func awsAwsjson11_deserializeOpDocumentGetPermissionPolicyOutput(v **GetPermissi if !ok { return fmt.Errorf("expected PolicyString to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -16366,7 +16420,7 @@ func awsAwsjson11_deserializeOpDocumentGetRateBasedRuleManagedKeysOutput(v **Get if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -16590,7 +16644,7 @@ func awsAwsjson11_deserializeOpDocumentGetSampledRequestsOutput(v **GetSampledRe if err != nil { return err } - sv.PopulationSize = &i64 + sv.PopulationSize = i64 } case "SampledRequests": @@ -16825,7 +16879,7 @@ func awsAwsjson11_deserializeOpDocumentListActivatedRulesInRuleGroupOutput(v **L if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -16870,7 +16924,7 @@ func awsAwsjson11_deserializeOpDocumentListByteMatchSetsOutput(v **ListByteMatch if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -16915,7 +16969,7 @@ func awsAwsjson11_deserializeOpDocumentListGeoMatchSetsOutput(v **ListGeoMatchSe if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -16960,7 +17014,7 @@ func awsAwsjson11_deserializeOpDocumentListIPSetsOutput(v **ListIPSetsOutput, va if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -17005,7 +17059,7 @@ func awsAwsjson11_deserializeOpDocumentListLoggingConfigurationsOutput(v **ListL if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -17045,7 +17099,7 @@ func awsAwsjson11_deserializeOpDocumentListRateBasedRulesOutput(v **ListRateBase if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "Rules": @@ -17090,7 +17144,7 @@ func awsAwsjson11_deserializeOpDocumentListRegexMatchSetsOutput(v **ListRegexMat if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "RegexMatchSets": @@ -17135,7 +17189,7 @@ func awsAwsjson11_deserializeOpDocumentListRegexPatternSetsOutput(v **ListRegexP if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "RegexPatternSets": @@ -17216,7 +17270,7 @@ func awsAwsjson11_deserializeOpDocumentListRuleGroupsOutput(v **ListRuleGroupsOu if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "RuleGroups": @@ -17261,7 +17315,7 @@ func awsAwsjson11_deserializeOpDocumentListRulesOutput(v **ListRulesOutput, valu if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "Rules": @@ -17306,7 +17360,7 @@ func awsAwsjson11_deserializeOpDocumentListSizeConstraintSetsOutput(v **ListSize if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "SizeConstraintSets": @@ -17351,7 +17405,7 @@ func awsAwsjson11_deserializeOpDocumentListSqlInjectionMatchSetsOutput(v **ListS if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "SqlInjectionMatchSets": @@ -17396,7 +17450,7 @@ func awsAwsjson11_deserializeOpDocumentListSubscribedRuleGroupsOutput(v **ListSu if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "RuleGroups": @@ -17441,7 +17495,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "TagInfoForResource": @@ -17486,7 +17540,7 @@ func awsAwsjson11_deserializeOpDocumentListWebACLsOutput(v **ListWebACLsOutput, if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "WebACLs": @@ -17531,7 +17585,7 @@ func awsAwsjson11_deserializeOpDocumentListXssMatchSetsOutput(v **ListXssMatchSe if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "XssMatchSets": @@ -17705,7 +17759,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateByteMatchSetOutput(v **UpdateByteMa if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17745,7 +17799,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateGeoMatchSetOutput(v **UpdateGeoMatc if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17785,7 +17839,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateIPSetOutput(v **UpdateIPSetOutput, if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17825,7 +17879,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateRateBasedRuleOutput(v **UpdateRateB if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17865,7 +17919,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateRegexMatchSetOutput(v **UpdateRegex if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17905,7 +17959,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateRegexPatternSetOutput(v **UpdateReg if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17945,7 +17999,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateRuleGroupOutput(v **UpdateRuleGroup if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -17985,7 +18039,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateRuleOutput(v **UpdateRuleOutput, va if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -18025,7 +18079,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateSizeConstraintSetOutput(v **UpdateS if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -18065,7 +18119,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateSqlInjectionMatchSetOutput(v **Upda if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -18105,7 +18159,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateWebACLOutput(v **UpdateWebACLOutput if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: @@ -18145,7 +18199,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateXssMatchSetOutput(v **UpdateXssMatc if !ok { return fmt.Errorf("expected ChangeToken to be of type string, got %T instead", value) } - sv.ChangeToken = &jtv + sv.ChangeToken = ptr.String(jtv) } default: diff --git a/service/wafregional/go.mod b/service/wafregional/go.mod index eee15e75e16..52725fd6568 100644 --- a/service/wafregional/go.mod +++ b/service/wafregional/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/wafregional go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/wafregional/serializers.go b/service/wafregional/serializers.go index 637fc673ddc..a677ce7f138 100644 --- a/service/wafregional/serializers.go +++ b/service/wafregional/serializers.go @@ -3795,17 +3795,13 @@ func awsAwsjson11_serializeDocumentByteMatchSetUpdate(v *types.ByteMatchSetUpdat return nil } -func awsAwsjson11_serializeDocumentByteMatchSetUpdates(v []*types.ByteMatchSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentByteMatchSetUpdates(v []types.ByteMatchSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentByteMatchSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentByteMatchSetUpdate(&v[i], av); err != nil { return err } } @@ -3853,17 +3849,13 @@ func awsAwsjson11_serializeDocumentExcludedRule(v *types.ExcludedRule, value smi return nil } -func awsAwsjson11_serializeDocumentExcludedRules(v []*types.ExcludedRule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExcludedRules(v []types.ExcludedRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentExcludedRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentExcludedRule(&v[i], av); err != nil { return err } } @@ -3923,17 +3915,13 @@ func awsAwsjson11_serializeDocumentGeoMatchSetUpdate(v *types.GeoMatchSetUpdate, return nil } -func awsAwsjson11_serializeDocumentGeoMatchSetUpdates(v []*types.GeoMatchSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentGeoMatchSetUpdates(v []types.GeoMatchSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentGeoMatchSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentGeoMatchSetUpdate(&v[i], av); err != nil { return err } } @@ -3976,34 +3964,26 @@ func awsAwsjson11_serializeDocumentIPSetUpdate(v *types.IPSetUpdate, value smith return nil } -func awsAwsjson11_serializeDocumentIPSetUpdates(v []*types.IPSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIPSetUpdates(v []types.IPSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentIPSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentIPSetUpdate(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentLogDestinationConfigs(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLogDestinationConfigs(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -4056,17 +4036,13 @@ func awsAwsjson11_serializeDocumentPredicate(v *types.Predicate, value smithyjso return nil } -func awsAwsjson11_serializeDocumentRedactedFields(v []*types.FieldToMatch, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRedactedFields(v []types.FieldToMatch, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFieldToMatch(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFieldToMatch(&v[i], av); err != nil { return err } } @@ -4092,17 +4068,13 @@ func awsAwsjson11_serializeDocumentRegexMatchSetUpdate(v *types.RegexMatchSetUpd return nil } -func awsAwsjson11_serializeDocumentRegexMatchSetUpdates(v []*types.RegexMatchSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRegexMatchSetUpdates(v []types.RegexMatchSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRegexMatchSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRegexMatchSetUpdate(&v[i], av); err != nil { return err } } @@ -4150,17 +4122,13 @@ func awsAwsjson11_serializeDocumentRegexPatternSetUpdate(v *types.RegexPatternSe return nil } -func awsAwsjson11_serializeDocumentRegexPatternSetUpdates(v []*types.RegexPatternSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRegexPatternSetUpdates(v []types.RegexPatternSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRegexPatternSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRegexPatternSetUpdate(&v[i], av); err != nil { return err } } @@ -4186,17 +4154,13 @@ func awsAwsjson11_serializeDocumentRuleGroupUpdate(v *types.RuleGroupUpdate, val return nil } -func awsAwsjson11_serializeDocumentRuleGroupUpdates(v []*types.RuleGroupUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRuleGroupUpdates(v []types.RuleGroupUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRuleGroupUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRuleGroupUpdate(&v[i], av); err != nil { return err } } @@ -4222,17 +4186,13 @@ func awsAwsjson11_serializeDocumentRuleUpdate(v *types.RuleUpdate, value smithyj return nil } -func awsAwsjson11_serializeDocumentRuleUpdates(v []*types.RuleUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRuleUpdates(v []types.RuleUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRuleUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRuleUpdate(&v[i], av); err != nil { return err } } @@ -4255,9 +4215,9 @@ func awsAwsjson11_serializeDocumentSizeConstraint(v *types.SizeConstraint, value } } - if v.Size != nil { + if v.Size != 0 { ok := object.Key("Size") - ok.Long(*v.Size) + ok.Long(v.Size) } if len(v.TextTransformation) > 0 { @@ -4287,17 +4247,13 @@ func awsAwsjson11_serializeDocumentSizeConstraintSetUpdate(v *types.SizeConstrai return nil } -func awsAwsjson11_serializeDocumentSizeConstraintSetUpdates(v []*types.SizeConstraintSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSizeConstraintSetUpdates(v []types.SizeConstraintSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSizeConstraintSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSizeConstraintSetUpdate(&v[i], av); err != nil { return err } } @@ -4323,17 +4279,13 @@ func awsAwsjson11_serializeDocumentSqlInjectionMatchSetUpdate(v *types.SqlInject return nil } -func awsAwsjson11_serializeDocumentSqlInjectionMatchSetUpdates(v []*types.SqlInjectionMatchSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSqlInjectionMatchSetUpdates(v []types.SqlInjectionMatchSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentSqlInjectionMatchSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentSqlInjectionMatchSetUpdate(&v[i], av); err != nil { return err } } @@ -4376,32 +4328,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -4468,17 +4412,13 @@ func awsAwsjson11_serializeDocumentWebACLUpdate(v *types.WebACLUpdate, value smi return nil } -func awsAwsjson11_serializeDocumentWebACLUpdates(v []*types.WebACLUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentWebACLUpdates(v []types.WebACLUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentWebACLUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentWebACLUpdate(&v[i], av); err != nil { return err } } @@ -4504,17 +4444,13 @@ func awsAwsjson11_serializeDocumentXssMatchSetUpdate(v *types.XssMatchSetUpdate, return nil } -func awsAwsjson11_serializeDocumentXssMatchSetUpdates(v []*types.XssMatchSetUpdate, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentXssMatchSetUpdates(v []types.XssMatchSetUpdate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentXssMatchSetUpdate(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentXssMatchSetUpdate(&v[i], av); err != nil { return err } } @@ -4632,9 +4568,9 @@ func awsAwsjson11_serializeOpDocumentCreateRateBasedRuleInput(v *CreateRateBased ok.String(string(v.RateKey)) } - if v.RateLimit != nil { + if v.RateLimit != 0 { ok := object.Key("RateLimit") - ok.Long(*v.RateLimit) + ok.Long(v.RateLimit) } if v.Tags != nil { @@ -5248,9 +5184,9 @@ func awsAwsjson11_serializeOpDocumentGetSampledRequestsInput(v *GetSampledReques object := value.Object() defer object.Close() - if v.MaxItems != nil { + if v.MaxItems != 0 { ok := object.Key("MaxItems") - ok.Long(*v.MaxItems) + ok.Long(v.MaxItems) } if v.RuleId != nil { @@ -5337,9 +5273,9 @@ func awsAwsjson11_serializeOpDocumentListActivatedRulesInRuleGroupInput(v *ListA object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5359,9 +5295,9 @@ func awsAwsjson11_serializeOpDocumentListByteMatchSetsInput(v *ListByteMatchSets object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5376,9 +5312,9 @@ func awsAwsjson11_serializeOpDocumentListGeoMatchSetsInput(v *ListGeoMatchSetsIn object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5393,9 +5329,9 @@ func awsAwsjson11_serializeOpDocumentListIPSetsInput(v *ListIPSetsInput, value s object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5410,9 +5346,9 @@ func awsAwsjson11_serializeOpDocumentListLoggingConfigurationsInput(v *ListLoggi object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5427,9 +5363,9 @@ func awsAwsjson11_serializeOpDocumentListRateBasedRulesInput(v *ListRateBasedRul object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5444,9 +5380,9 @@ func awsAwsjson11_serializeOpDocumentListRegexMatchSetsInput(v *ListRegexMatchSe object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5461,9 +5397,9 @@ func awsAwsjson11_serializeOpDocumentListRegexPatternSetsInput(v *ListRegexPatte object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5495,9 +5431,9 @@ func awsAwsjson11_serializeOpDocumentListRuleGroupsInput(v *ListRuleGroupsInput, object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5512,9 +5448,9 @@ func awsAwsjson11_serializeOpDocumentListRulesInput(v *ListRulesInput, value smi object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5529,9 +5465,9 @@ func awsAwsjson11_serializeOpDocumentListSizeConstraintSetsInput(v *ListSizeCons object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5546,9 +5482,9 @@ func awsAwsjson11_serializeOpDocumentListSqlInjectionMatchSetsInput(v *ListSqlIn object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5563,9 +5499,9 @@ func awsAwsjson11_serializeOpDocumentListSubscribedRuleGroupsInput(v *ListSubscr object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5580,9 +5516,9 @@ func awsAwsjson11_serializeOpDocumentListTagsForResourceInput(v *ListTagsForReso object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5602,9 +5538,9 @@ func awsAwsjson11_serializeOpDocumentListWebACLsInput(v *ListWebACLsInput, value object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5619,9 +5555,9 @@ func awsAwsjson11_serializeOpDocumentListXssMatchSetsInput(v *ListXssMatchSetsIn object := value.Object() defer object.Close() - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Integer(*v.Limit) + ok.Integer(v.Limit) } if v.NextMarker != nil { @@ -5782,9 +5718,9 @@ func awsAwsjson11_serializeOpDocumentUpdateRateBasedRuleInput(v *UpdateRateBased ok.String(*v.ChangeToken) } - if v.RateLimit != nil { + if v.RateLimit != 0 { ok := object.Key("RateLimit") - ok.Long(*v.RateLimit) + ok.Long(v.RateLimit) } if v.RuleId != nil { diff --git a/service/wafregional/types/types.go b/service/wafregional/types/types.go index 6f810019e46..4f4dabd83f5 100644 --- a/service/wafregional/types/types.go +++ b/service/wafregional/types/types.go @@ -86,7 +86,7 @@ type ActivatedRule struct { // That is, the second Updates:Action should be INSERT, // Updates:ActivatedRule:RuleId should be the rule group that you just removed, and // ExcludedRules should contain the rules that you want to exclude. - ExcludedRules []*ExcludedRule + ExcludedRules []ExcludedRule // Use the OverrideAction to test your RuleGroup. Any rule in a RuleGroup can // potentially block a request. If you set the OverrideAction to None, the @@ -140,7 +140,7 @@ type ByteMatchSet struct { // that you want AWS WAF to search, and other settings. // // This member is required. - ByteMatchTuples []*ByteMatchTuple + ByteMatchTuples []ByteMatchTuple // A friendly name or description of the ByteMatchSet. You can't change Name after // you create a ByteMatchSet. @@ -481,7 +481,7 @@ type GeoMatchSet struct { // AWS WAF to search for. // // This member is required. - GeoMatchConstraints []*GeoMatchConstraint + GeoMatchConstraints []GeoMatchConstraint // The GeoMatchSetId for an GeoMatchSet. You use GeoMatchSetId to get information // about a GeoMatchSet (see GeoMatchSet), update a GeoMatchSet (see @@ -593,7 +593,7 @@ type HTTPRequest struct { // A complex type that contains two values for each header in the sampled web // request: the name of the header and the value of the header. - Headers []*HTTPHeader + Headers []HTTPHeader // The HTTP method specified in the sampled web request. CloudFront supports the // following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT. @@ -628,7 +628,7 @@ type IPSet struct { // the request, this is the value of the c-ip field in the CloudFront access logs. // // This member is required. - IPSetDescriptors []*IPSetDescriptor + IPSetDescriptors []IPSetDescriptor // The IPSetId for an IPSet. You use IPSetId to get information about an IPSet (see // GetIPSet), update an IPSet (see UpdateIPSet), insert an IPSet into a Rule or @@ -745,7 +745,7 @@ type LoggingConfiguration struct { // An array of Amazon Kinesis Data Firehose ARNs. // // This member is required. - LogDestinationConfigs []*string + LogDestinationConfigs []string // The Amazon Resource Name (ARN) of the web ACL that you want to associate with // LogDestinationConfigs. @@ -755,7 +755,7 @@ type LoggingConfiguration struct { // The parts of the request that you want redacted from the logs. For example, if // you redact the cookie field, the cookie field in the firehose will be xxx. - RedactedFields []*FieldToMatch + RedactedFields []FieldToMatch } // This is AWS WAF Classic documentation. For more information, see AWS WAF Classic @@ -825,7 +825,7 @@ type RateBasedRule struct { // RateBasedRule. // // This member is required. - MatchPredicates []*Predicate + MatchPredicates []Predicate // The field that AWS WAF uses to determine if requests are likely arriving from // single source and thus subject to rate monitoring. The only valid value for @@ -841,7 +841,7 @@ type RateBasedRule struct { // are also met, AWS WAF triggers the action that is specified for this rule. // // This member is required. - RateLimit *int64 + RateLimit int64 // A unique identifier for a RateBasedRule. You use RuleId to get more information // about a RateBasedRule (see GetRateBasedRule), update a RateBasedRule (see @@ -904,7 +904,7 @@ type RegexMatchSet struct { // * Whether to perform any conversions on the // request, such as converting it to lowercase, before inspecting it for the // specified string. - RegexMatchTuples []*RegexMatchTuple + RegexMatchTuples []RegexMatchTuple } // This is AWS WAF Classic documentation. For more information, see AWS WAF Classic @@ -1091,7 +1091,7 @@ type RegexPatternSet struct { // search for, such as B[a@]dB[o0]t. // // This member is required. - RegexPatternStrings []*string + RegexPatternStrings []string // A friendly name or description of the RegexPatternSet. You can't change Name // after you create a RegexPatternSet. @@ -1173,7 +1173,7 @@ type Rule struct { // IPSet, or SqlInjectionMatchSet object that you want to include in a Rule. // // This member is required. - Predicates []*Predicate + Predicates []Predicate // A unique identifier for a Rule. You use RuleId to get more information about a // Rule (see GetRule), update a Rule (see UpdateRule), insert a Rule into a WebACL @@ -1354,7 +1354,7 @@ type SampledHTTPRequest struct { // 1. // // This member is required. - Weight *int64 + Weight int64 // The action for the Rule that the request matched: ALLOW, BLOCK, or COUNT. Action *string @@ -1410,7 +1410,7 @@ type SizeConstraint struct { // character. For example, the URI /logo.jpg is nine characters long. // // This member is required. - Size *int64 + Size int64 // Text transformations eliminate some of the unusual formatting that attackers use // in web requests in an effort to bypass AWS WAF. If you specify a transformation, @@ -1511,7 +1511,7 @@ type SizeConstraintSet struct { // Specifies the parts of web requests that you want to inspect the size of. // // This member is required. - SizeConstraints []*SizeConstraint + SizeConstraints []SizeConstraint // The name, if any, of the SizeConstraintSet. Name *string @@ -1598,7 +1598,7 @@ type SqlInjectionMatchSet struct { // malicious SQL code. // // This member is required. - SqlInjectionMatchTuples []*SqlInjectionMatchTuple + SqlInjectionMatchTuples []SqlInjectionMatchTuple // The name, if any, of the SqlInjectionMatchSet. Name *string @@ -1820,7 +1820,7 @@ type TagInfoForResource struct { ResourceARN *string // - TagList []*Tag + TagList []Tag } // This is AWS WAF Classic documentation. For more information, see AWS WAF Classic @@ -1934,7 +1934,7 @@ type WebACL struct { // Rule, and the ID of the Rule. // // This member is required. - Rules []*ActivatedRule + Rules []ActivatedRule // A unique identifier for a WebACL. You use WebACLId to get information about a // WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete a WebACL @@ -2035,7 +2035,7 @@ type XssMatchSet struct { // scripting attacks. // // This member is required. - XssMatchTuples []*XssMatchTuple + XssMatchTuples []XssMatchTuple // The name, if any, of the XssMatchSet. Name *string diff --git a/service/wafregional/validators.go b/service/wafregional/validators.go index 210543b44f1..da92f07967d 100644 --- a/service/wafregional/validators.go +++ b/service/wafregional/validators.go @@ -1625,13 +1625,13 @@ func validateByteMatchSetUpdate(v *types.ByteMatchSetUpdate) error { } } -func validateByteMatchSetUpdates(v []*types.ByteMatchSetUpdate) error { +func validateByteMatchSetUpdates(v []types.ByteMatchSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ByteMatchSetUpdates"} for i := range v { - if err := validateByteMatchSetUpdate(v[i]); err != nil { + if err := validateByteMatchSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1685,13 +1685,13 @@ func validateExcludedRule(v *types.ExcludedRule) error { } } -func validateExcludedRules(v []*types.ExcludedRule) error { +func validateExcludedRules(v []types.ExcludedRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ExcludedRules"} for i := range v { - if err := validateExcludedRule(v[i]); err != nil { + if err := validateExcludedRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1757,13 +1757,13 @@ func validateGeoMatchSetUpdate(v *types.GeoMatchSetUpdate) error { } } -func validateGeoMatchSetUpdates(v []*types.GeoMatchSetUpdate) error { +func validateGeoMatchSetUpdates(v []types.GeoMatchSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GeoMatchSetUpdates"} for i := range v { - if err := validateGeoMatchSetUpdate(v[i]); err != nil { + if err := validateGeoMatchSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1814,13 +1814,13 @@ func validateIPSetUpdate(v *types.IPSetUpdate) error { } } -func validateIPSetUpdates(v []*types.IPSetUpdate) error { +func validateIPSetUpdates(v []types.IPSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "IPSetUpdates"} for i := range v { - if err := validateIPSetUpdate(v[i]); err != nil { + if err := validateIPSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1875,13 +1875,13 @@ func validatePredicate(v *types.Predicate) error { } } -func validateRedactedFields(v []*types.FieldToMatch) error { +func validateRedactedFields(v []types.FieldToMatch) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RedactedFields"} for i := range v { - if err := validateFieldToMatch(v[i]); err != nil { + if err := validateFieldToMatch(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1914,13 +1914,13 @@ func validateRegexMatchSetUpdate(v *types.RegexMatchSetUpdate) error { } } -func validateRegexMatchSetUpdates(v []*types.RegexMatchSetUpdate) error { +func validateRegexMatchSetUpdates(v []types.RegexMatchSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RegexMatchSetUpdates"} for i := range v { - if err := validateRegexMatchSetUpdate(v[i]); err != nil { + if err := validateRegexMatchSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1974,13 +1974,13 @@ func validateRegexPatternSetUpdate(v *types.RegexPatternSetUpdate) error { } } -func validateRegexPatternSetUpdates(v []*types.RegexPatternSetUpdate) error { +func validateRegexPatternSetUpdates(v []types.RegexPatternSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RegexPatternSetUpdates"} for i := range v { - if err := validateRegexPatternSetUpdate(v[i]); err != nil { + if err := validateRegexPatternSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2013,13 +2013,13 @@ func validateRuleGroupUpdate(v *types.RuleGroupUpdate) error { } } -func validateRuleGroupUpdates(v []*types.RuleGroupUpdate) error { +func validateRuleGroupUpdates(v []types.RuleGroupUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RuleGroupUpdates"} for i := range v { - if err := validateRuleGroupUpdate(v[i]); err != nil { + if err := validateRuleGroupUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2052,13 +2052,13 @@ func validateRuleUpdate(v *types.RuleUpdate) error { } } -func validateRuleUpdates(v []*types.RuleUpdate) error { +func validateRuleUpdates(v []types.RuleUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RuleUpdates"} for i := range v { - if err := validateRuleUpdate(v[i]); err != nil { + if err := validateRuleUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2074,9 +2074,6 @@ func validateSizeConstraint(v *types.SizeConstraint) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "SizeConstraint"} - if v.Size == nil { - invalidParams.Add(smithy.NewErrParamRequired("Size")) - } if len(v.TextTransformation) == 0 { invalidParams.Add(smithy.NewErrParamRequired("TextTransformation")) } @@ -2119,13 +2116,13 @@ func validateSizeConstraintSetUpdate(v *types.SizeConstraintSetUpdate) error { } } -func validateSizeConstraintSetUpdates(v []*types.SizeConstraintSetUpdate) error { +func validateSizeConstraintSetUpdates(v []types.SizeConstraintSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SizeConstraintSetUpdates"} for i := range v { - if err := validateSizeConstraintSetUpdate(v[i]); err != nil { + if err := validateSizeConstraintSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2158,13 +2155,13 @@ func validateSqlInjectionMatchSetUpdate(v *types.SqlInjectionMatchSetUpdate) err } } -func validateSqlInjectionMatchSetUpdates(v []*types.SqlInjectionMatchSetUpdate) error { +func validateSqlInjectionMatchSetUpdates(v []types.SqlInjectionMatchSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SqlInjectionMatchSetUpdates"} for i := range v { - if err := validateSqlInjectionMatchSetUpdate(v[i]); err != nil { + if err := validateSqlInjectionMatchSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2215,13 +2212,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2302,13 +2299,13 @@ func validateWebACLUpdate(v *types.WebACLUpdate) error { } } -func validateWebACLUpdates(v []*types.WebACLUpdate) error { +func validateWebACLUpdates(v []types.WebACLUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "WebACLUpdates"} for i := range v { - if err := validateWebACLUpdate(v[i]); err != nil { + if err := validateWebACLUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2341,13 +2338,13 @@ func validateXssMatchSetUpdate(v *types.XssMatchSetUpdate) error { } } -func validateXssMatchSetUpdates(v []*types.XssMatchSetUpdate) error { +func validateXssMatchSetUpdates(v []types.XssMatchSetUpdate) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "XssMatchSetUpdates"} for i := range v { - if err := validateXssMatchSetUpdate(v[i]); err != nil { + if err := validateXssMatchSetUpdate(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -2463,9 +2460,6 @@ func validateOpCreateRateBasedRuleInput(v *CreateRateBasedRuleInput) error { if v.ChangeToken == nil { invalidParams.Add(smithy.NewErrParamRequired("ChangeToken")) } - if v.RateLimit == nil { - invalidParams.Add(smithy.NewErrParamRequired("RateLimit")) - } if v.MetricName == nil { invalidParams.Add(smithy.NewErrParamRequired("MetricName")) } @@ -3132,9 +3126,6 @@ func validateOpGetSampledRequestsInput(v *GetSampledRequestsInput) error { if v.RuleId == nil { invalidParams.Add(smithy.NewErrParamRequired("RuleId")) } - if v.MaxItems == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxItems")) - } if v.TimeWindow == nil { invalidParams.Add(smithy.NewErrParamRequired("TimeWindow")) } else if v.TimeWindow != nil { @@ -3424,9 +3415,6 @@ func validateOpUpdateRateBasedRuleInput(v *UpdateRateBasedRuleInput) error { if v.RuleId == nil { invalidParams.Add(smithy.NewErrParamRequired("RuleId")) } - if v.RateLimit == nil { - invalidParams.Add(smithy.NewErrParamRequired("RateLimit")) - } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/wafv2/api_op_CheckCapacity.go b/service/wafv2/api_op_CheckCapacity.go index 57eff1cb42d..d8c18d661e8 100644 --- a/service/wafv2/api_op_CheckCapacity.go +++ b/service/wafv2/api_op_CheckCapacity.go @@ -44,7 +44,7 @@ type CheckCapacityInput struct { // An array of Rule that you're configuring to use in a rule group or web ACL. // // This member is required. - Rules []*types.Rule + Rules []types.Rule // Specifies whether this is for an AWS CloudFront distribution or for a regional // application. A regional application can be an Application Load Balancer (ALB), @@ -65,7 +65,7 @@ type CheckCapacityInput struct { type CheckCapacityOutput struct { // The capacity required by the rules and scope. - Capacity *int64 + Capacity int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafv2/api_op_CreateIPSet.go b/service/wafv2/api_op_CreateIPSet.go index b7da22037a7..0dead38555a 100644 --- a/service/wafv2/api_op_CreateIPSet.go +++ b/service/wafv2/api_op_CreateIPSet.go @@ -63,7 +63,7 @@ type CreateIPSetInput struct { // (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). // // This member is required. - Addresses []*string + Addresses []string // Specify IPV4 or IPV6. // @@ -96,7 +96,7 @@ type CreateIPSetInput struct { Description *string // An array of key:value pairs to associate with the resource. - Tags []*types.Tag + Tags []types.Tag } type CreateIPSetOutput struct { diff --git a/service/wafv2/api_op_CreateRegexPatternSet.go b/service/wafv2/api_op_CreateRegexPatternSet.go index 14e50a58aa7..3fd540dc8e1 100644 --- a/service/wafv2/api_op_CreateRegexPatternSet.go +++ b/service/wafv2/api_op_CreateRegexPatternSet.go @@ -43,7 +43,7 @@ type CreateRegexPatternSetInput struct { // Array of regular expression strings. // // This member is required. - RegularExpressionList []*types.Regex + RegularExpressionList []types.Regex // Specifies whether this is for an AWS CloudFront distribution or for a regional // application. A regional application can be an Application Load Balancer (ALB), @@ -65,7 +65,7 @@ type CreateRegexPatternSetInput struct { Description *string // An array of key:value pairs to associate with the resource. - Tags []*types.Tag + Tags []types.Tag } type CreateRegexPatternSetOutput struct { diff --git a/service/wafv2/api_op_CreateRuleGroup.go b/service/wafv2/api_op_CreateRuleGroup.go index 3b1f4bfb633..c34fd2af78a 100644 --- a/service/wafv2/api_op_CreateRuleGroup.go +++ b/service/wafv2/api_op_CreateRuleGroup.go @@ -50,7 +50,7 @@ type CreateRuleGroupInput struct { // ACLs is 1,500. // // This member is required. - Capacity *int64 + Capacity int64 // The name of the rule group. You cannot change the name of a rule group after you // create it. @@ -86,10 +86,10 @@ type CreateRuleGroupInput struct { // block, or count. Each rule includes one top-level statement that AWS WAF uses to // identify matching web requests, and parameters that govern how AWS WAF handles // them. - Rules []*types.Rule + Rules []types.Rule // An array of key:value pairs to associate with the resource. - Tags []*types.Tag + Tags []types.Tag } type CreateRuleGroupOutput struct { diff --git a/service/wafv2/api_op_CreateWebACL.go b/service/wafv2/api_op_CreateWebACL.go index a6449d908c9..13208b2b1ef 100644 --- a/service/wafv2/api_op_CreateWebACL.go +++ b/service/wafv2/api_op_CreateWebACL.go @@ -80,10 +80,10 @@ type CreateWebACLInput struct { // block, or count. Each rule includes one top-level statement that AWS WAF uses to // identify matching web requests, and parameters that govern how AWS WAF handles // them. - Rules []*types.Rule + Rules []types.Rule // An array of key:value pairs to associate with the resource. - Tags []*types.Tag + Tags []types.Tag } type CreateWebACLOutput struct { diff --git a/service/wafv2/api_op_DescribeManagedRuleGroup.go b/service/wafv2/api_op_DescribeManagedRuleGroup.go index 4e03cf0d0ca..b69ff3f3be4 100644 --- a/service/wafv2/api_op_DescribeManagedRuleGroup.go +++ b/service/wafv2/api_op_DescribeManagedRuleGroup.go @@ -70,10 +70,10 @@ type DescribeManagedRuleGroupOutput struct { // capacity differently for each rule type, to reflect each rule's relative cost. // Rule group capacity is fixed at creation, so users can plan their web ACL WCU // usage when they use a rule group. The WCU limit for web ACLs is 1,500. - Capacity *int64 + Capacity int64 // - Rules []*types.RuleSummary + Rules []types.RuleSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafv2/api_op_GetSampledRequests.go b/service/wafv2/api_op_GetSampledRequests.go index 6622094b779..52fdc78194f 100644 --- a/service/wafv2/api_op_GetSampledRequests.go +++ b/service/wafv2/api_op_GetSampledRequests.go @@ -47,7 +47,7 @@ type GetSampledRequestsInput struct { // returns information about all of them. // // This member is required. - MaxItems *int64 + MaxItems int64 // The metric name assigned to the Rule or RuleGroup for which you want a sample of // requests. @@ -91,11 +91,11 @@ type GetSampledRequestsOutput struct { // The total number of requests from which GetSampledRequests got a sample of // MaxItems requests. If PopulationSize is less than MaxItems, the sample includes // every request that your AWS resource received during the specified time range. - PopulationSize *int64 + PopulationSize int64 // A complex type that contains detailed information about each of the requests in // the sample. - SampledRequests []*types.SampledHTTPRequest + SampledRequests []types.SampledHTTPRequest // Usually, TimeWindow is the time range that you specified in the // GetSampledRequests request. However, if your AWS resource received more than diff --git a/service/wafv2/api_op_ListAvailableManagedRuleGroups.go b/service/wafv2/api_op_ListAvailableManagedRuleGroups.go index 660f8b6e571..37a2057fced 100644 --- a/service/wafv2/api_op_ListAvailableManagedRuleGroups.go +++ b/service/wafv2/api_op_ListAvailableManagedRuleGroups.go @@ -65,7 +65,7 @@ type ListAvailableManagedRuleGroupsInput struct { type ListAvailableManagedRuleGroupsOutput struct { // - ManagedRuleGroups []*types.ManagedRuleGroupSummary + ManagedRuleGroups []types.ManagedRuleGroupSummary // When you request a list of objects with a Limit setting, if the number of // objects that are still available for retrieval exceeds the limit, AWS WAF diff --git a/service/wafv2/api_op_ListIPSets.go b/service/wafv2/api_op_ListIPSets.go index adf876b5eb7..d094afe21dd 100644 --- a/service/wafv2/api_op_ListIPSets.go +++ b/service/wafv2/api_op_ListIPSets.go @@ -64,7 +64,7 @@ type ListIPSetsOutput struct { // Array of IPSets. This may not be the full list of IPSets that you have defined. // See the Limit specification for this request. - IPSets []*types.IPSetSummary + IPSets []types.IPSetSummary // When you request a list of objects with a Limit setting, if the number of // objects that are still available for retrieval exceeds the limit, AWS WAF diff --git a/service/wafv2/api_op_ListLoggingConfigurations.go b/service/wafv2/api_op_ListLoggingConfigurations.go index 66938492d7f..7744cae025a 100644 --- a/service/wafv2/api_op_ListLoggingConfigurations.go +++ b/service/wafv2/api_op_ListLoggingConfigurations.go @@ -61,7 +61,7 @@ type ListLoggingConfigurationsInput struct { type ListLoggingConfigurationsOutput struct { // - LoggingConfigurations []*types.LoggingConfiguration + LoggingConfigurations []types.LoggingConfiguration // When you request a list of objects with a Limit setting, if the number of // objects that are still available for retrieval exceeds the limit, AWS WAF diff --git a/service/wafv2/api_op_ListRegexPatternSets.go b/service/wafv2/api_op_ListRegexPatternSets.go index 1a6d4759310..6578eff2e11 100644 --- a/service/wafv2/api_op_ListRegexPatternSets.go +++ b/service/wafv2/api_op_ListRegexPatternSets.go @@ -70,7 +70,7 @@ type ListRegexPatternSetsOutput struct { NextMarker *string // - RegexPatternSets []*types.RegexPatternSetSummary + RegexPatternSets []types.RegexPatternSetSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafv2/api_op_ListResourcesForWebACL.go b/service/wafv2/api_op_ListResourcesForWebACL.go index a15672c34c0..0550b3524f6 100644 --- a/service/wafv2/api_op_ListResourcesForWebACL.go +++ b/service/wafv2/api_op_ListResourcesForWebACL.go @@ -50,7 +50,7 @@ type ListResourcesForWebACLInput struct { type ListResourcesForWebACLOutput struct { // The array of Amazon Resource Names (ARNs) of the associated resources. - ResourceArns []*string + ResourceArns []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafv2/api_op_ListRuleGroups.go b/service/wafv2/api_op_ListRuleGroups.go index 4e72925796d..f81b9c8f8d9 100644 --- a/service/wafv2/api_op_ListRuleGroups.go +++ b/service/wafv2/api_op_ListRuleGroups.go @@ -70,7 +70,7 @@ type ListRuleGroupsOutput struct { NextMarker *string // - RuleGroups []*types.RuleGroupSummary + RuleGroups []types.RuleGroupSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafv2/api_op_ListWebACLs.go b/service/wafv2/api_op_ListWebACLs.go index aa25ef5b96e..c527e24e387 100644 --- a/service/wafv2/api_op_ListWebACLs.go +++ b/service/wafv2/api_op_ListWebACLs.go @@ -69,7 +69,7 @@ type ListWebACLsOutput struct { NextMarker *string // - WebACLs []*types.WebACLSummary + WebACLs []types.WebACLSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/wafv2/api_op_TagResource.go b/service/wafv2/api_op_TagResource.go index dd27fbd3909..8660180c02e 100644 --- a/service/wafv2/api_op_TagResource.go +++ b/service/wafv2/api_op_TagResource.go @@ -47,7 +47,7 @@ type TagResourceInput struct { // An array of key:value pairs to associate with the resource. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/wafv2/api_op_UntagResource.go b/service/wafv2/api_op_UntagResource.go index 0c5386dd04e..54e3395a54e 100644 --- a/service/wafv2/api_op_UntagResource.go +++ b/service/wafv2/api_op_UntagResource.go @@ -43,7 +43,7 @@ type UntagResourceInput struct { // An array of keys identifying the tags to disassociate from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/wafv2/api_op_UpdateIPSet.go b/service/wafv2/api_op_UpdateIPSet.go index 9aa04f0d316..24ce33a941b 100644 --- a/service/wafv2/api_op_UpdateIPSet.go +++ b/service/wafv2/api_op_UpdateIPSet.go @@ -60,7 +60,7 @@ type UpdateIPSetInput struct { // (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). // // This member is required. - Addresses []*string + Addresses []string // A unique identifier for the set. This ID is returned in the responses to create // and list commands. You provide it to operations like update and delete. diff --git a/service/wafv2/api_op_UpdateRegexPatternSet.go b/service/wafv2/api_op_UpdateRegexPatternSet.go index 1ca59ff1226..6c00c5c2d1a 100644 --- a/service/wafv2/api_op_UpdateRegexPatternSet.go +++ b/service/wafv2/api_op_UpdateRegexPatternSet.go @@ -58,7 +58,7 @@ type UpdateRegexPatternSetInput struct { // // // This member is required. - RegularExpressionList []*types.Regex + RegularExpressionList []types.Regex // Specifies whether this is for an AWS CloudFront distribution or for a regional // application. A regional application can be an Application Load Balancer (ALB), diff --git a/service/wafv2/api_op_UpdateRuleGroup.go b/service/wafv2/api_op_UpdateRuleGroup.go index 6916ae5b59a..ce901c2bb90 100644 --- a/service/wafv2/api_op_UpdateRuleGroup.go +++ b/service/wafv2/api_op_UpdateRuleGroup.go @@ -88,7 +88,7 @@ type UpdateRuleGroupInput struct { // block, or count. Each rule includes one top-level statement that AWS WAF uses to // identify matching web requests, and parameters that govern how AWS WAF handles // them. - Rules []*types.Rule + Rules []types.Rule } type UpdateRuleGroupOutput struct { diff --git a/service/wafv2/api_op_UpdateWebACL.go b/service/wafv2/api_op_UpdateWebACL.go index f10e8c3f12f..6826a07b6a6 100644 --- a/service/wafv2/api_op_UpdateWebACL.go +++ b/service/wafv2/api_op_UpdateWebACL.go @@ -97,7 +97,7 @@ type UpdateWebACLInput struct { // block, or count. Each rule includes one top-level statement that AWS WAF uses to // identify matching web requests, and parameters that govern how AWS WAF handles // them. - Rules []*types.Rule + Rules []types.Rule } type UpdateWebACLOutput struct { diff --git a/service/wafv2/deserializers.go b/service/wafv2/deserializers.go index c0fbc4bfca7..44fd8a8de13 100644 --- a/service/wafv2/deserializers.go +++ b/service/wafv2/deserializers.go @@ -5899,7 +5899,7 @@ func awsAwsjson11_deserializeDocumentExcludedRule(v **types.ExcludedRule, value if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5911,7 +5911,7 @@ func awsAwsjson11_deserializeDocumentExcludedRule(v **types.ExcludedRule, value return nil } -func awsAwsjson11_deserializeDocumentExcludedRules(v *[]*types.ExcludedRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentExcludedRules(v *[]types.ExcludedRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5924,18 +5924,20 @@ func awsAwsjson11_deserializeDocumentExcludedRules(v *[]*types.ExcludedRule, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ExcludedRule + var cv []types.ExcludedRule if *v == nil { - cv = []*types.ExcludedRule{} + cv = []types.ExcludedRule{} } else { cv = *v } for _, value := range shape { - var col *types.ExcludedRule - if err := awsAwsjson11_deserializeDocumentExcludedRule(&col, value); err != nil { + var col types.ExcludedRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentExcludedRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6042,7 +6044,7 @@ func awsAwsjson11_deserializeDocumentFirewallManagerRuleGroup(v **types.Firewall if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OverrideAction": @@ -6060,7 +6062,7 @@ func awsAwsjson11_deserializeDocumentFirewallManagerRuleGroup(v **types.Firewall if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "VisibilityConfig": @@ -6077,7 +6079,7 @@ func awsAwsjson11_deserializeDocumentFirewallManagerRuleGroup(v **types.Firewall return nil } -func awsAwsjson11_deserializeDocumentFirewallManagerRuleGroups(v *[]*types.FirewallManagerRuleGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentFirewallManagerRuleGroups(v *[]types.FirewallManagerRuleGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6090,18 +6092,20 @@ func awsAwsjson11_deserializeDocumentFirewallManagerRuleGroups(v *[]*types.Firew return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FirewallManagerRuleGroup + var cv []types.FirewallManagerRuleGroup if *v == nil { - cv = []*types.FirewallManagerRuleGroup{} + cv = []types.FirewallManagerRuleGroup{} } else { cv = *v } for _, value := range shape { - var col *types.FirewallManagerRuleGroup - if err := awsAwsjson11_deserializeDocumentFirewallManagerRuleGroup(&col, value); err != nil { + var col types.FirewallManagerRuleGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFirewallManagerRuleGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6187,7 +6191,7 @@ func awsAwsjson11_deserializeDocumentForwardedIPConfig(v **types.ForwardedIPConf if !ok { return fmt.Errorf("expected ForwardedIPHeaderName to be of type string, got %T instead", value) } - sv.HeaderName = &jtv + sv.HeaderName = ptr.String(jtv) } default: @@ -6268,7 +6272,7 @@ func awsAwsjson11_deserializeDocumentHTTPHeader(v **types.HTTPHeader, value inte if !ok { return fmt.Errorf("expected HeaderName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Value": @@ -6277,7 +6281,7 @@ func awsAwsjson11_deserializeDocumentHTTPHeader(v **types.HTTPHeader, value inte if !ok { return fmt.Errorf("expected HeaderValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6289,7 +6293,7 @@ func awsAwsjson11_deserializeDocumentHTTPHeader(v **types.HTTPHeader, value inte return nil } -func awsAwsjson11_deserializeDocumentHTTPHeaders(v *[]*types.HTTPHeader, value interface{}) error { +func awsAwsjson11_deserializeDocumentHTTPHeaders(v *[]types.HTTPHeader, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6302,18 +6306,20 @@ func awsAwsjson11_deserializeDocumentHTTPHeaders(v *[]*types.HTTPHeader, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HTTPHeader + var cv []types.HTTPHeader if *v == nil { - cv = []*types.HTTPHeader{} + cv = []types.HTTPHeader{} } else { cv = *v } for _, value := range shape { - var col *types.HTTPHeader - if err := awsAwsjson11_deserializeDocumentHTTPHeader(&col, value); err != nil { + var col types.HTTPHeader + destAddr := &col + if err := awsAwsjson11_deserializeDocumentHTTPHeader(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6349,7 +6355,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected IPString to be of type string, got %T instead", value) } - sv.ClientIP = &jtv + sv.ClientIP = ptr.String(jtv) } case "Country": @@ -6358,7 +6364,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected Country to be of type string, got %T instead", value) } - sv.Country = &jtv + sv.Country = ptr.String(jtv) } case "Headers": @@ -6372,7 +6378,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected HTTPVersion to be of type string, got %T instead", value) } - sv.HTTPVersion = &jtv + sv.HTTPVersion = ptr.String(jtv) } case "Method": @@ -6381,7 +6387,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected HTTPMethod to be of type string, got %T instead", value) } - sv.Method = &jtv + sv.Method = ptr.String(jtv) } case "URI": @@ -6390,7 +6396,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in if !ok { return fmt.Errorf("expected URIString to be of type string, got %T instead", value) } - sv.URI = &jtv + sv.URI = ptr.String(jtv) } default: @@ -6402,7 +6408,7 @@ func awsAwsjson11_deserializeDocumentHTTPRequest(v **types.HTTPRequest, value in return nil } -func awsAwsjson11_deserializeDocumentIPAddresses(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIPAddresses(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6415,21 +6421,21 @@ func awsAwsjson11_deserializeDocumentIPAddresses(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IPAddress to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6471,7 +6477,7 @@ func awsAwsjson11_deserializeDocumentIPSet(v **types.IPSet, value interface{}) e if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Description": @@ -6480,7 +6486,7 @@ func awsAwsjson11_deserializeDocumentIPSet(v **types.IPSet, value interface{}) e if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -6489,7 +6495,7 @@ func awsAwsjson11_deserializeDocumentIPSet(v **types.IPSet, value interface{}) e if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "IPAddressVersion": @@ -6507,7 +6513,7 @@ func awsAwsjson11_deserializeDocumentIPSet(v **types.IPSet, value interface{}) e if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -6556,7 +6562,7 @@ func awsAwsjson11_deserializeDocumentIPSetForwardedIPConfig(v **types.IPSetForwa if !ok { return fmt.Errorf("expected ForwardedIPHeaderName to be of type string, got %T instead", value) } - sv.HeaderName = &jtv + sv.HeaderName = ptr.String(jtv) } case "Position": @@ -6605,7 +6611,7 @@ func awsAwsjson11_deserializeDocumentIPSetReferenceStatement(v **types.IPSetRefe if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "IPSetForwardedIPConfig": @@ -6622,7 +6628,7 @@ func awsAwsjson11_deserializeDocumentIPSetReferenceStatement(v **types.IPSetRefe return nil } -func awsAwsjson11_deserializeDocumentIPSetSummaries(v *[]*types.IPSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentIPSetSummaries(v *[]types.IPSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6635,18 +6641,20 @@ func awsAwsjson11_deserializeDocumentIPSetSummaries(v *[]*types.IPSetSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IPSetSummary + var cv []types.IPSetSummary if *v == nil { - cv = []*types.IPSetSummary{} + cv = []types.IPSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.IPSetSummary - if err := awsAwsjson11_deserializeDocumentIPSetSummary(&col, value); err != nil { + var col types.IPSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIPSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6682,7 +6690,7 @@ func awsAwsjson11_deserializeDocumentIPSetSummary(v **types.IPSetSummary, value if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Description": @@ -6691,7 +6699,7 @@ func awsAwsjson11_deserializeDocumentIPSetSummary(v **types.IPSetSummary, value if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -6700,7 +6708,7 @@ func awsAwsjson11_deserializeDocumentIPSetSummary(v **types.IPSetSummary, value if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LockToken": @@ -6709,7 +6717,7 @@ func awsAwsjson11_deserializeDocumentIPSetSummary(v **types.IPSetSummary, value if !ok { return fmt.Errorf("expected LockToken to be of type string, got %T instead", value) } - sv.LockToken = &jtv + sv.LockToken = ptr.String(jtv) } case "Name": @@ -6718,7 +6726,7 @@ func awsAwsjson11_deserializeDocumentIPSetSummary(v **types.IPSetSummary, value if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -6730,7 +6738,7 @@ func awsAwsjson11_deserializeDocumentIPSetSummary(v **types.IPSetSummary, value return nil } -func awsAwsjson11_deserializeDocumentLogDestinationConfigs(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentLogDestinationConfigs(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6743,21 +6751,21 @@ func awsAwsjson11_deserializeDocumentLogDestinationConfigs(v *[]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6799,7 +6807,7 @@ func awsAwsjson11_deserializeDocumentLoggingConfiguration(v **types.LoggingConfi if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ManagedByFirewallManager = &jtv + sv.ManagedByFirewallManager = jtv } case "RedactedFields": @@ -6813,7 +6821,7 @@ func awsAwsjson11_deserializeDocumentLoggingConfiguration(v **types.LoggingConfi if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceArn = &jtv + sv.ResourceArn = ptr.String(jtv) } default: @@ -6825,7 +6833,7 @@ func awsAwsjson11_deserializeDocumentLoggingConfiguration(v **types.LoggingConfi return nil } -func awsAwsjson11_deserializeDocumentLoggingConfigurations(v *[]*types.LoggingConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentLoggingConfigurations(v *[]types.LoggingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6838,18 +6846,20 @@ func awsAwsjson11_deserializeDocumentLoggingConfigurations(v *[]*types.LoggingCo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.LoggingConfiguration + var cv []types.LoggingConfiguration if *v == nil { - cv = []*types.LoggingConfiguration{} + cv = []types.LoggingConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.LoggingConfiguration - if err := awsAwsjson11_deserializeDocumentLoggingConfiguration(&col, value); err != nil { + var col types.LoggingConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLoggingConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6890,7 +6900,7 @@ func awsAwsjson11_deserializeDocumentManagedRuleGroupStatement(v **types.Managed if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "VendorName": @@ -6899,7 +6909,7 @@ func awsAwsjson11_deserializeDocumentManagedRuleGroupStatement(v **types.Managed if !ok { return fmt.Errorf("expected VendorName to be of type string, got %T instead", value) } - sv.VendorName = &jtv + sv.VendorName = ptr.String(jtv) } default: @@ -6911,7 +6921,7 @@ func awsAwsjson11_deserializeDocumentManagedRuleGroupStatement(v **types.Managed return nil } -func awsAwsjson11_deserializeDocumentManagedRuleGroupSummaries(v *[]*types.ManagedRuleGroupSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentManagedRuleGroupSummaries(v *[]types.ManagedRuleGroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6924,18 +6934,20 @@ func awsAwsjson11_deserializeDocumentManagedRuleGroupSummaries(v *[]*types.Manag return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ManagedRuleGroupSummary + var cv []types.ManagedRuleGroupSummary if *v == nil { - cv = []*types.ManagedRuleGroupSummary{} + cv = []types.ManagedRuleGroupSummary{} } else { cv = *v } for _, value := range shape { - var col *types.ManagedRuleGroupSummary - if err := awsAwsjson11_deserializeDocumentManagedRuleGroupSummary(&col, value); err != nil { + var col types.ManagedRuleGroupSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentManagedRuleGroupSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6971,7 +6983,7 @@ func awsAwsjson11_deserializeDocumentManagedRuleGroupSummary(v **types.ManagedRu if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Name": @@ -6980,7 +6992,7 @@ func awsAwsjson11_deserializeDocumentManagedRuleGroupSummary(v **types.ManagedRu if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "VendorName": @@ -6989,7 +7001,7 @@ func awsAwsjson11_deserializeDocumentManagedRuleGroupSummary(v **types.ManagedRu if !ok { return fmt.Errorf("expected VendorName to be of type string, got %T instead", value) } - sv.VendorName = &jtv + sv.VendorName = ptr.String(jtv) } default: @@ -7253,7 +7265,7 @@ func awsAwsjson11_deserializeDocumentRateBasedStatement(v **types.RateBasedState if err != nil { return err } - sv.Limit = &i64 + sv.Limit = i64 } case "ScopeDownStatement": @@ -7315,7 +7327,7 @@ func awsAwsjson11_deserializeDocumentRateBasedStatementManagedKeysIPSet(v **type return nil } -func awsAwsjson11_deserializeDocumentRedactedFields(v *[]*types.FieldToMatch, value interface{}) error { +func awsAwsjson11_deserializeDocumentRedactedFields(v *[]types.FieldToMatch, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7328,18 +7340,20 @@ func awsAwsjson11_deserializeDocumentRedactedFields(v *[]*types.FieldToMatch, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FieldToMatch + var cv []types.FieldToMatch if *v == nil { - cv = []*types.FieldToMatch{} + cv = []types.FieldToMatch{} } else { cv = *v } for _, value := range shape { - var col *types.FieldToMatch - if err := awsAwsjson11_deserializeDocumentFieldToMatch(&col, value); err != nil { + var col types.FieldToMatch + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFieldToMatch(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7375,7 +7389,7 @@ func awsAwsjson11_deserializeDocumentRegex(v **types.Regex, value interface{}) e if !ok { return fmt.Errorf("expected RegexPatternString to be of type string, got %T instead", value) } - sv.RegexString = &jtv + sv.RegexString = ptr.String(jtv) } default: @@ -7415,7 +7429,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSet(v **types.RegexPatternSet, if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Description": @@ -7424,7 +7438,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSet(v **types.RegexPatternSet, if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -7433,7 +7447,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSet(v **types.RegexPatternSet, if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -7442,7 +7456,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSet(v **types.RegexPatternSet, if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "RegularExpressionList": @@ -7487,7 +7501,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetReferenceStatement(v **types if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "FieldToMatch": @@ -7509,7 +7523,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetReferenceStatement(v **types return nil } -func awsAwsjson11_deserializeDocumentRegexPatternSetSummaries(v *[]*types.RegexPatternSetSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentRegexPatternSetSummaries(v *[]types.RegexPatternSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7522,18 +7536,20 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummaries(v *[]*types.RegexP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RegexPatternSetSummary + var cv []types.RegexPatternSetSummary if *v == nil { - cv = []*types.RegexPatternSetSummary{} + cv = []types.RegexPatternSetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RegexPatternSetSummary - if err := awsAwsjson11_deserializeDocumentRegexPatternSetSummary(&col, value); err != nil { + var col types.RegexPatternSetSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRegexPatternSetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7569,7 +7585,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummary(v **types.RegexPatte if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Description": @@ -7578,7 +7594,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummary(v **types.RegexPatte if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -7587,7 +7603,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummary(v **types.RegexPatte if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LockToken": @@ -7596,7 +7612,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummary(v **types.RegexPatte if !ok { return fmt.Errorf("expected LockToken to be of type string, got %T instead", value) } - sv.LockToken = &jtv + sv.LockToken = ptr.String(jtv) } case "Name": @@ -7605,7 +7621,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummary(v **types.RegexPatte if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -7617,7 +7633,7 @@ func awsAwsjson11_deserializeDocumentRegexPatternSetSummary(v **types.RegexPatte return nil } -func awsAwsjson11_deserializeDocumentRegularExpressionList(v *[]*types.Regex, value interface{}) error { +func awsAwsjson11_deserializeDocumentRegularExpressionList(v *[]types.Regex, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7630,18 +7646,20 @@ func awsAwsjson11_deserializeDocumentRegularExpressionList(v *[]*types.Regex, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Regex + var cv []types.Regex if *v == nil { - cv = []*types.Regex{} + cv = []types.Regex{} } else { cv = *v } for _, value := range shape { - var col *types.Regex - if err := awsAwsjson11_deserializeDocumentRegex(&col, value); err != nil { + var col types.Regex + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRegex(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7649,7 +7667,7 @@ func awsAwsjson11_deserializeDocumentRegularExpressionList(v *[]*types.Regex, va return nil } -func awsAwsjson11_deserializeDocumentResourceArns(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceArns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7662,21 +7680,21 @@ func awsAwsjson11_deserializeDocumentResourceArns(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7718,7 +7736,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OverrideAction": @@ -7736,7 +7754,7 @@ func awsAwsjson11_deserializeDocumentRule(v **types.Rule, value interface{}) err if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "Statement": @@ -7832,7 +7850,7 @@ func awsAwsjson11_deserializeDocumentRuleGroup(v **types.RuleGroup, value interf if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Capacity": @@ -7845,7 +7863,7 @@ func awsAwsjson11_deserializeDocumentRuleGroup(v **types.RuleGroup, value interf if err != nil { return err } - sv.Capacity = &i64 + sv.Capacity = i64 } case "Description": @@ -7854,7 +7872,7 @@ func awsAwsjson11_deserializeDocumentRuleGroup(v **types.RuleGroup, value interf if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -7863,7 +7881,7 @@ func awsAwsjson11_deserializeDocumentRuleGroup(v **types.RuleGroup, value interf if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -7872,7 +7890,7 @@ func awsAwsjson11_deserializeDocumentRuleGroup(v **types.RuleGroup, value interf if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Rules": @@ -7922,7 +7940,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupReferenceStatement(v **types.RuleG if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "ExcludedRules": @@ -7939,7 +7957,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupReferenceStatement(v **types.RuleG return nil } -func awsAwsjson11_deserializeDocumentRuleGroupSummaries(v *[]*types.RuleGroupSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuleGroupSummaries(v *[]types.RuleGroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7952,18 +7970,20 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummaries(v *[]*types.RuleGroupSum return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RuleGroupSummary + var cv []types.RuleGroupSummary if *v == nil { - cv = []*types.RuleGroupSummary{} + cv = []types.RuleGroupSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RuleGroupSummary - if err := awsAwsjson11_deserializeDocumentRuleGroupSummary(&col, value); err != nil { + var col types.RuleGroupSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRuleGroupSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7999,7 +8019,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummary(v **types.RuleGroupSummary if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Description": @@ -8008,7 +8028,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummary(v **types.RuleGroupSummary if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -8017,7 +8037,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummary(v **types.RuleGroupSummary if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LockToken": @@ -8026,7 +8046,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummary(v **types.RuleGroupSummary if !ok { return fmt.Errorf("expected LockToken to be of type string, got %T instead", value) } - sv.LockToken = &jtv + sv.LockToken = ptr.String(jtv) } case "Name": @@ -8035,7 +8055,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummary(v **types.RuleGroupSummary if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8047,7 +8067,7 @@ func awsAwsjson11_deserializeDocumentRuleGroupSummary(v **types.RuleGroupSummary return nil } -func awsAwsjson11_deserializeDocumentRules(v *[]*types.Rule, value interface{}) error { +func awsAwsjson11_deserializeDocumentRules(v *[]types.Rule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8060,18 +8080,20 @@ func awsAwsjson11_deserializeDocumentRules(v *[]*types.Rule, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Rule + var cv []types.Rule if *v == nil { - cv = []*types.Rule{} + cv = []types.Rule{} } else { cv = *v } for _, value := range shape { - var col *types.Rule - if err := awsAwsjson11_deserializeDocumentRule(&col, value); err != nil { + var col types.Rule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8079,7 +8101,7 @@ func awsAwsjson11_deserializeDocumentRules(v *[]*types.Rule, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentRuleSummaries(v *[]*types.RuleSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentRuleSummaries(v *[]types.RuleSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8092,18 +8114,20 @@ func awsAwsjson11_deserializeDocumentRuleSummaries(v *[]*types.RuleSummary, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RuleSummary + var cv []types.RuleSummary if *v == nil { - cv = []*types.RuleSummary{} + cv = []types.RuleSummary{} } else { cv = *v } for _, value := range shape { - var col *types.RuleSummary - if err := awsAwsjson11_deserializeDocumentRuleSummary(&col, value); err != nil { + var col types.RuleSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentRuleSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8144,7 +8168,7 @@ func awsAwsjson11_deserializeDocumentRuleSummary(v **types.RuleSummary, value in if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8184,7 +8208,7 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequest(v **types.SampledHTTPReq if !ok { return fmt.Errorf("expected Action to be of type string, got %T instead", value) } - sv.Action = &jtv + sv.Action = ptr.String(jtv) } case "Request": @@ -8198,7 +8222,7 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequest(v **types.SampledHTTPReq if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.RuleNameWithinRuleGroup = &jtv + sv.RuleNameWithinRuleGroup = ptr.String(jtv) } case "Timestamp": @@ -8224,7 +8248,7 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequest(v **types.SampledHTTPReq if err != nil { return err } - sv.Weight = &i64 + sv.Weight = i64 } default: @@ -8236,7 +8260,7 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequest(v **types.SampledHTTPReq return nil } -func awsAwsjson11_deserializeDocumentSampledHTTPRequests(v *[]*types.SampledHTTPRequest, value interface{}) error { +func awsAwsjson11_deserializeDocumentSampledHTTPRequests(v *[]types.SampledHTTPRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8249,18 +8273,20 @@ func awsAwsjson11_deserializeDocumentSampledHTTPRequests(v *[]*types.SampledHTTP return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SampledHTTPRequest + var cv []types.SampledHTTPRequest if *v == nil { - cv = []*types.SampledHTTPRequest{} + cv = []types.SampledHTTPRequest{} } else { cv = *v } for _, value := range shape { - var col *types.SampledHTTPRequest - if err := awsAwsjson11_deserializeDocumentSampledHTTPRequest(&col, value); err != nil { + var col types.SampledHTTPRequest + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSampledHTTPRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8296,7 +8322,7 @@ func awsAwsjson11_deserializeDocumentSingleHeader(v **types.SingleHeader, value if !ok { return fmt.Errorf("expected FieldToMatchData to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8336,7 +8362,7 @@ func awsAwsjson11_deserializeDocumentSingleQueryArgument(v **types.SingleQueryAr if !ok { return fmt.Errorf("expected FieldToMatchData to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8394,7 +8420,7 @@ func awsAwsjson11_deserializeDocumentSizeConstraintStatement(v **types.SizeConst if err != nil { return err } - sv.Size = &i64 + sv.Size = i64 } case "TextTransformations": @@ -8548,7 +8574,7 @@ func awsAwsjson11_deserializeDocumentStatement(v **types.Statement, value interf return nil } -func awsAwsjson11_deserializeDocumentStatements(v *[]*types.Statement, value interface{}) error { +func awsAwsjson11_deserializeDocumentStatements(v *[]types.Statement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8561,18 +8587,20 @@ func awsAwsjson11_deserializeDocumentStatements(v *[]*types.Statement, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Statement + var cv []types.Statement if *v == nil { - cv = []*types.Statement{} + cv = []types.Statement{} } else { cv = *v } for _, value := range shape { - var col *types.Statement - if err := awsAwsjson11_deserializeDocumentStatement(&col, value); err != nil { + var col types.Statement + destAddr := &col + if err := awsAwsjson11_deserializeDocumentStatement(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8608,7 +8636,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -8617,7 +8645,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8657,7 +8685,7 @@ func awsAwsjson11_deserializeDocumentTagInfoForResource(v **types.TagInfoForReso if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "TagList": @@ -8674,7 +8702,7 @@ func awsAwsjson11_deserializeDocumentTagInfoForResource(v **types.TagInfoForReso return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8687,18 +8715,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8738,7 +8768,7 @@ func awsAwsjson11_deserializeDocumentTextTransformation(v **types.TextTransforma if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "Type": @@ -8759,7 +8789,7 @@ func awsAwsjson11_deserializeDocumentTextTransformation(v **types.TextTransforma return nil } -func awsAwsjson11_deserializeDocumentTextTransformations(v *[]*types.TextTransformation, value interface{}) error { +func awsAwsjson11_deserializeDocumentTextTransformations(v *[]types.TextTransformation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8772,18 +8802,20 @@ func awsAwsjson11_deserializeDocumentTextTransformations(v *[]*types.TextTransfo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TextTransformation + var cv []types.TextTransformation if *v == nil { - cv = []*types.TextTransformation{} + cv = []types.TextTransformation{} } else { cv = *v } for _, value := range shape { - var col *types.TextTransformation - if err := awsAwsjson11_deserializeDocumentTextTransformation(&col, value); err != nil { + var col types.TextTransformation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTextTransformation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8907,7 +8939,7 @@ func awsAwsjson11_deserializeDocumentVisibilityConfig(v **types.VisibilityConfig if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CloudWatchMetricsEnabled = &jtv + sv.CloudWatchMetricsEnabled = jtv } case "MetricName": @@ -8916,7 +8948,7 @@ func awsAwsjson11_deserializeDocumentVisibilityConfig(v **types.VisibilityConfig if !ok { return fmt.Errorf("expected MetricName to be of type string, got %T instead", value) } - sv.MetricName = &jtv + sv.MetricName = ptr.String(jtv) } case "SampledRequestsEnabled": @@ -8925,7 +8957,7 @@ func awsAwsjson11_deserializeDocumentVisibilityConfig(v **types.VisibilityConfig if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.SampledRequestsEnabled = &jtv + sv.SampledRequestsEnabled = jtv } default: @@ -8965,7 +8997,7 @@ func awsAwsjson11_deserializeDocumentWAFAssociatedItemException(v **types.WAFAss if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9005,7 +9037,7 @@ func awsAwsjson11_deserializeDocumentWAFDuplicateItemException(v **types.WAFDupl if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9045,7 +9077,7 @@ func awsAwsjson11_deserializeDocumentWAFInternalErrorException(v **types.WAFInte if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9085,7 +9117,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidOperationException(v **types.WAFI if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9134,7 +9166,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidParameterException(v **types.WAFI if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Parameter": @@ -9143,7 +9175,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidParameterException(v **types.WAFI if !ok { return fmt.Errorf("expected ParameterExceptionParameter to be of type string, got %T instead", value) } - sv.Parameter = &jtv + sv.Parameter = ptr.String(jtv) } case "Reason": @@ -9152,7 +9184,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidParameterException(v **types.WAFI if !ok { return fmt.Errorf("expected ErrorReason to be of type string, got %T instead", value) } - sv.Reason = &jtv + sv.Reason = ptr.String(jtv) } default: @@ -9192,7 +9224,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidPermissionPolicyException(v **typ if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9232,7 +9264,7 @@ func awsAwsjson11_deserializeDocumentWAFInvalidResourceException(v **types.WAFIn if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9272,7 +9304,7 @@ func awsAwsjson11_deserializeDocumentWAFLimitsExceededException(v **types.WAFLim if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9312,7 +9344,7 @@ func awsAwsjson11_deserializeDocumentWAFNonexistentItemException(v **types.WAFNo if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9352,7 +9384,7 @@ func awsAwsjson11_deserializeDocumentWAFOptimisticLockException(v **types.WAFOpt if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9392,7 +9424,7 @@ func awsAwsjson11_deserializeDocumentWAFServiceLinkedRoleErrorException(v **type if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9432,7 +9464,7 @@ func awsAwsjson11_deserializeDocumentWAFSubscriptionNotFoundException(v **types. if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9472,7 +9504,7 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationException(v **types.WAFTagOp if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9512,7 +9544,7 @@ func awsAwsjson11_deserializeDocumentWAFTagOperationInternalErrorException(v **t if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9552,7 +9584,7 @@ func awsAwsjson11_deserializeDocumentWAFUnavailableEntityException(v **types.WAF if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9592,7 +9624,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Capacity": @@ -9605,7 +9637,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if err != nil { return err } - sv.Capacity = &i64 + sv.Capacity = i64 } case "DefaultAction": @@ -9619,7 +9651,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -9628,7 +9660,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ManagedByFirewallManager": @@ -9637,7 +9669,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ManagedByFirewallManager = &jtv + sv.ManagedByFirewallManager = jtv } case "Name": @@ -9646,7 +9678,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "PostProcessFirewallManagerRuleGroups": @@ -9678,7 +9710,7 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentWebACLSummaries(v *[]*types.WebACLSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentWebACLSummaries(v *[]types.WebACLSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9691,18 +9723,20 @@ func awsAwsjson11_deserializeDocumentWebACLSummaries(v *[]*types.WebACLSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WebACLSummary + var cv []types.WebACLSummary if *v == nil { - cv = []*types.WebACLSummary{} + cv = []types.WebACLSummary{} } else { cv = *v } for _, value := range shape { - var col *types.WebACLSummary - if err := awsAwsjson11_deserializeDocumentWebACLSummary(&col, value); err != nil { + var col types.WebACLSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWebACLSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9738,7 +9772,7 @@ func awsAwsjson11_deserializeDocumentWebACLSummary(v **types.WebACLSummary, valu if !ok { return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "Description": @@ -9747,7 +9781,7 @@ func awsAwsjson11_deserializeDocumentWebACLSummary(v **types.WebACLSummary, valu if !ok { return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Id": @@ -9756,7 +9790,7 @@ func awsAwsjson11_deserializeDocumentWebACLSummary(v **types.WebACLSummary, valu if !ok { return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LockToken": @@ -9765,7 +9799,7 @@ func awsAwsjson11_deserializeDocumentWebACLSummary(v **types.WebACLSummary, valu if !ok { return fmt.Errorf("expected LockToken to be of type string, got %T instead", value) } - sv.LockToken = &jtv + sv.LockToken = ptr.String(jtv) } case "Name": @@ -9774,7 +9808,7 @@ func awsAwsjson11_deserializeDocumentWebACLSummary(v **types.WebACLSummary, valu if !ok { return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -9890,7 +9924,7 @@ func awsAwsjson11_deserializeOpDocumentCheckCapacityOutput(v **CheckCapacityOutp if err != nil { return err } - sv.Capacity = &i64 + sv.Capacity = i64 } default: @@ -10074,7 +10108,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteFirewallManagerRuleGroupsOutput(v * if !ok { return fmt.Errorf("expected LockToken to be of type string, got %T instead", value) } - sv.NextWebACLLockToken = &jtv + sv.NextWebACLLockToken = ptr.String(jtv) } default: @@ -10304,7 +10338,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeManagedRuleGroupOutput(v **Descri if err != nil { return err } - sv.Capacity = &i64 + sv.Capacity = i64 } case "Rules": @@ -10385,7 +10419,7 @@ func awsAwsjson11_deserializeOpDocumentGetIPSetOutput(v **GetIPSetOutput, value if !ok { return fmt.Errorf("expected LockToken to be of type string, got %T instead", value) } - sv.LockToken = &jtv + sv.LockToken = ptr.String(jtv) } default: @@ -10461,7 +10495,7 @@ func awsAwsjson11_deserializeOpDocumentGetPermissionPolicyOutput(v **GetPermissi if !ok { return fmt.Errorf("expected PolicyString to be of type string, got %T instead", value) } - sv.Policy = &jtv + sv.Policy = ptr.String(jtv) } default: @@ -10542,7 +10576,7 @@ func awsAwsjson11_deserializeOpDocumentGetRegexPatternSetOutput(v **GetRegexPatt if !ok { return fmt.Errorf("expected LockToken to be of type string, got %T instead", value) } - sv.LockToken = &jtv + sv.LockToken = ptr.String(jtv) } case "RegexPatternSet": @@ -10587,7 +10621,7 @@ func awsAwsjson11_deserializeOpDocumentGetRuleGroupOutput(v **GetRuleGroupOutput if !ok { return fmt.Errorf("expected LockToken to be of type string, got %T instead", value) } - sv.LockToken = &jtv + sv.LockToken = ptr.String(jtv) } case "RuleGroup": @@ -10636,7 +10670,7 @@ func awsAwsjson11_deserializeOpDocumentGetSampledRequestsOutput(v **GetSampledRe if err != nil { return err } - sv.PopulationSize = &i64 + sv.PopulationSize = i64 } case "SampledRequests": @@ -10722,7 +10756,7 @@ func awsAwsjson11_deserializeOpDocumentGetWebACLOutput(v **GetWebACLOutput, valu if !ok { return fmt.Errorf("expected LockToken to be of type string, got %T instead", value) } - sv.LockToken = &jtv + sv.LockToken = ptr.String(jtv) } case "WebACL": @@ -10772,7 +10806,7 @@ func awsAwsjson11_deserializeOpDocumentListAvailableManagedRuleGroupsOutput(v ** if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -10817,7 +10851,7 @@ func awsAwsjson11_deserializeOpDocumentListIPSetsOutput(v **ListIPSetsOutput, va if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -10862,7 +10896,7 @@ func awsAwsjson11_deserializeOpDocumentListLoggingConfigurationsOutput(v **ListL if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } default: @@ -10902,7 +10936,7 @@ func awsAwsjson11_deserializeOpDocumentListRegexPatternSetsOutput(v **ListRegexP if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "RegexPatternSets": @@ -10983,7 +11017,7 @@ func awsAwsjson11_deserializeOpDocumentListRuleGroupsOutput(v **ListRuleGroupsOu if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "RuleGroups": @@ -11028,7 +11062,7 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "TagInfoForResource": @@ -11073,7 +11107,7 @@ func awsAwsjson11_deserializeOpDocumentListWebACLsOutput(v **ListWebACLsOutput, if !ok { return fmt.Errorf("expected NextMarker to be of type string, got %T instead", value) } - sv.NextMarker = &jtv + sv.NextMarker = ptr.String(jtv) } case "WebACLs": @@ -11247,7 +11281,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateIPSetOutput(v **UpdateIPSetOutput, if !ok { return fmt.Errorf("expected LockToken to be of type string, got %T instead", value) } - sv.NextLockToken = &jtv + sv.NextLockToken = ptr.String(jtv) } default: @@ -11287,7 +11321,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateRegexPatternSetOutput(v **UpdateReg if !ok { return fmt.Errorf("expected LockToken to be of type string, got %T instead", value) } - sv.NextLockToken = &jtv + sv.NextLockToken = ptr.String(jtv) } default: @@ -11327,7 +11361,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateRuleGroupOutput(v **UpdateRuleGroup if !ok { return fmt.Errorf("expected LockToken to be of type string, got %T instead", value) } - sv.NextLockToken = &jtv + sv.NextLockToken = ptr.String(jtv) } default: @@ -11367,7 +11401,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateWebACLOutput(v **UpdateWebACLOutput if !ok { return fmt.Errorf("expected LockToken to be of type string, got %T instead", value) } - sv.NextLockToken = &jtv + sv.NextLockToken = ptr.String(jtv) } default: diff --git a/service/wafv2/go.mod b/service/wafv2/go.mod index 2ede8ac08dc..d51e8abfee1 100644 --- a/service/wafv2/go.mod +++ b/service/wafv2/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/wafv2 go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/wafv2/serializers.go b/service/wafv2/serializers.go index 67295356374..3526db66c55 100644 --- a/service/wafv2/serializers.go +++ b/service/wafv2/serializers.go @@ -1978,17 +1978,13 @@ func awsAwsjson11_serializeDocumentExcludedRule(v *types.ExcludedRule, value smi return nil } -func awsAwsjson11_serializeDocumentExcludedRules(v []*types.ExcludedRule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentExcludedRules(v []types.ExcludedRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentExcludedRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentExcludedRule(&v[i], av); err != nil { return err } } @@ -2089,17 +2085,13 @@ func awsAwsjson11_serializeDocumentGeoMatchStatement(v *types.GeoMatchStatement, return nil } -func awsAwsjson11_serializeDocumentIPAddresses(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIPAddresses(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2145,17 +2137,13 @@ func awsAwsjson11_serializeDocumentIPSetReferenceStatement(v *types.IPSetReferen return nil } -func awsAwsjson11_serializeDocumentLogDestinationConfigs(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLogDestinationConfigs(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2171,9 +2159,9 @@ func awsAwsjson11_serializeDocumentLoggingConfiguration(v *types.LoggingConfigur } } - if v.ManagedByFirewallManager != nil { + if v.ManagedByFirewallManager { ok := object.Key("ManagedByFirewallManager") - ok.Boolean(*v.ManagedByFirewallManager) + ok.Boolean(v.ManagedByFirewallManager) } if v.RedactedFields != nil { @@ -2301,9 +2289,9 @@ func awsAwsjson11_serializeDocumentRateBasedStatement(v *types.RateBasedStatemen } } - if v.Limit != nil { + if v.Limit != 0 { ok := object.Key("Limit") - ok.Long(*v.Limit) + ok.Long(v.Limit) } if v.ScopeDownStatement != nil { @@ -2316,17 +2304,13 @@ func awsAwsjson11_serializeDocumentRateBasedStatement(v *types.RateBasedStatemen return nil } -func awsAwsjson11_serializeDocumentRedactedFields(v []*types.FieldToMatch, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRedactedFields(v []types.FieldToMatch, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFieldToMatch(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFieldToMatch(&v[i], av); err != nil { return err } } @@ -2371,17 +2355,13 @@ func awsAwsjson11_serializeDocumentRegexPatternSetReferenceStatement(v *types.Re return nil } -func awsAwsjson11_serializeDocumentRegularExpressionList(v []*types.Regex, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRegularExpressionList(v []types.Regex, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRegex(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRegex(&v[i], av); err != nil { return err } } @@ -2411,9 +2391,9 @@ func awsAwsjson11_serializeDocumentRule(v *types.Rule, value smithyjson.Value) e } } - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("Priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } if v.Statement != nil { @@ -2480,17 +2460,13 @@ func awsAwsjson11_serializeDocumentRuleGroupReferenceStatement(v *types.RuleGrou return nil } -func awsAwsjson11_serializeDocumentRules(v []*types.Rule, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRules(v []types.Rule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRule(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRule(&v[i], av); err != nil { return err } } @@ -2537,9 +2513,9 @@ func awsAwsjson11_serializeDocumentSizeConstraintStatement(v *types.SizeConstrai } } - if v.Size != nil { + if v.Size != 0 { ok := object.Key("Size") - ok.Long(*v.Size) + ok.Long(v.Size) } if v.TextTransformations != nil { @@ -2671,17 +2647,13 @@ func awsAwsjson11_serializeDocumentStatement(v *types.Statement, value smithyjso return nil } -func awsAwsjson11_serializeDocumentStatements(v []*types.Statement, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStatements(v []types.Statement, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentStatement(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentStatement(&v[i], av); err != nil { return err } } @@ -2705,32 +2677,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2741,9 +2705,9 @@ func awsAwsjson11_serializeDocumentTextTransformation(v *types.TextTransformatio object := value.Object() defer object.Close() - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("Priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } if len(v.Type) > 0 { @@ -2754,17 +2718,13 @@ func awsAwsjson11_serializeDocumentTextTransformation(v *types.TextTransformatio return nil } -func awsAwsjson11_serializeDocumentTextTransformations(v []*types.TextTransformation, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTextTransformations(v []types.TextTransformation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTextTransformation(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTextTransformation(&v[i], av); err != nil { return err } } @@ -2799,9 +2759,9 @@ func awsAwsjson11_serializeDocumentVisibilityConfig(v *types.VisibilityConfig, v object := value.Object() defer object.Close() - if v.CloudWatchMetricsEnabled != nil { + if v.CloudWatchMetricsEnabled { ok := object.Key("CloudWatchMetricsEnabled") - ok.Boolean(*v.CloudWatchMetricsEnabled) + ok.Boolean(v.CloudWatchMetricsEnabled) } if v.MetricName != nil { @@ -2809,9 +2769,9 @@ func awsAwsjson11_serializeDocumentVisibilityConfig(v *types.VisibilityConfig, v ok.String(*v.MetricName) } - if v.SampledRequestsEnabled != nil { + if v.SampledRequestsEnabled { ok := object.Key("SampledRequestsEnabled") - ok.Boolean(*v.SampledRequestsEnabled) + ok.Boolean(v.SampledRequestsEnabled) } return nil @@ -2955,9 +2915,9 @@ func awsAwsjson11_serializeOpDocumentCreateRuleGroupInput(v *CreateRuleGroupInpu object := value.Object() defer object.Close() - if v.Capacity != nil { + if v.Capacity != 0 { ok := object.Key("Capacity") - ok.Long(*v.Capacity) + ok.Long(v.Capacity) } if v.Description != nil { @@ -3353,9 +3313,9 @@ func awsAwsjson11_serializeOpDocumentGetSampledRequestsInput(v *GetSampledReques object := value.Object() defer object.Close() - if v.MaxItems != nil { + if v.MaxItems != 0 { ok := object.Key("MaxItems") - ok.Long(*v.MaxItems) + ok.Long(v.MaxItems) } if v.RuleMetricName != nil { diff --git a/service/wafv2/types/types.go b/service/wafv2/types/types.go index cd5c163c874..e0fcc4fbc07 100644 --- a/service/wafv2/types/types.go +++ b/service/wafv2/types/types.go @@ -37,7 +37,7 @@ type AndStatement struct { // nested. // // This member is required. - Statements []*Statement + Statements []Statement } // This is the latest version of AWS WAF, named AWS WAFV2, released in November, @@ -138,7 +138,7 @@ type ByteMatchStatement struct { // lowest priority setting, before inspecting the content for a match. // // This member is required. - TextTransformations []*TextTransformation + TextTransformations []TextTransformation } // This is the latest version of AWS WAF, named AWS WAFV2, released in November, @@ -270,7 +270,7 @@ type FirewallManagerRuleGroup struct { // consecutive, but they must all be different. // // This member is required. - Priority *int32 + Priority int32 // This is the latest version of AWS WAF, named AWS WAFV2, released in November, // 2019. For information, including how to migrate your AWS WAF resources from the @@ -408,7 +408,7 @@ type HTTPRequest struct { // A complex type that contains the name and value for each header in the sampled // web request. - Headers []*HTTPHeader + Headers []HTTPHeader // The HTTP method specified in the sampled web request. Method *string @@ -463,7 +463,7 @@ type IPSet struct { // (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). // // This member is required. - Addresses []*string + Addresses []string // Specify IPV4 or IPV6. // @@ -613,7 +613,7 @@ type LoggingConfiguration struct { // associate with the web ACL. // // This member is required. - LogDestinationConfigs []*string + LogDestinationConfigs []string // The Amazon Resource Name (ARN) of the web ACL that you want to associate with // LogDestinationConfigs. @@ -624,12 +624,12 @@ type LoggingConfiguration struct { // Indicates whether the logging configuration was created by AWS Firewall Manager, // as part of an AWS WAF policy configuration. If true, only Firewall Manager can // modify or delete the configuration. - ManagedByFirewallManager *bool + ManagedByFirewallManager bool // The parts of the request that you want to keep out of the logs. For example, if // you redact the HEADER field, the HEADER field in the firehose will be xxx. You // must use one of the following values: URI, QUERY_STRING, HEADER, or METHOD. - RedactedFields []*FieldToMatch + RedactedFields []FieldToMatch } // This is the latest version of AWS WAF, named AWS WAFV2, released in November, @@ -659,7 +659,7 @@ type ManagedRuleGroupStatement struct { // The rules whose actions are set to COUNT by the web ACL, regardless of the // action that is set on the rule. This effectively excludes the rule from acting // on web requests. - ExcludedRules []*ExcludedRule + ExcludedRules []ExcludedRule } // This is the latest version of AWS WAF, named AWS WAFV2, released in November, @@ -734,7 +734,7 @@ type OrStatement struct { // nested. // // This member is required. - Statements []*Statement + Statements []Statement } // The override action to apply to the rules in a rule group. Used only for rule @@ -819,7 +819,7 @@ type RateBasedStatement struct { // the requests that match the statement. // // This member is required. - Limit *int64 + Limit int64 // The configuration for inspecting IP addresses in an HTTP header that you // specify, instead of using the IP address that's reported by the web request @@ -843,7 +843,7 @@ type RateBasedStatement struct { type RateBasedStatementManagedKeysIPSet struct { // The IP addresses that are currently blocked. - Addresses []*string + Addresses []string IPAddressVersion IPAddressVersion } @@ -883,7 +883,7 @@ type RegexPatternSet struct { Name *string // The regular expression patterns in the set. - RegularExpressionList []*Regex + RegularExpressionList []Regex } // This is the latest version of AWS WAF, named AWS WAFV2, released in November, @@ -920,7 +920,7 @@ type RegexPatternSetReferenceStatement struct { // lowest priority setting, before inspecting the content for a match. // // This member is required. - TextTransformations []*TextTransformation + TextTransformations []TextTransformation } // This is the latest version of AWS WAF, named AWS WAFV2, released in November, @@ -979,7 +979,7 @@ type Rule struct { // but they must all be different. // // This member is required. - Priority *int32 + Priority int32 // The AWS WAF processing statement for the rule, for example ByteMatchStatement or // SizeConstraintStatement. @@ -1070,7 +1070,7 @@ type RuleGroup struct { // ACLs is 1,500. // // This member is required. - Capacity *int64 + Capacity int64 // A unique identifier for the rule group. This ID is returned in the responses to // create and list commands. You provide it to operations like update and delete. @@ -1097,7 +1097,7 @@ type RuleGroup struct { // block, or count. Each rule includes one top-level statement that AWS WAF uses to // identify matching web requests, and parameters that govern how AWS WAF handles // them. - Rules []*Rule + Rules []Rule } // This is the latest version of AWS WAF, named AWS WAFV2, released in November, @@ -1118,7 +1118,7 @@ type RuleGroupReferenceStatement struct { // The names of rules that are in the referenced rule group, but that you want AWS // WAF to exclude from processing for this rule statement. - ExcludedRules []*ExcludedRule + ExcludedRules []ExcludedRule } // This is the latest version of AWS WAF, named AWS WAFV2, released in November, @@ -1199,7 +1199,7 @@ type SampledHTTPRequest struct { // 1. // // This member is required. - Weight *int64 + Weight int64 // The action for the Rule that the request matched: ALLOW, BLOCK, or COUNT. Action *string @@ -1273,7 +1273,7 @@ type SizeConstraintStatement struct { // The size, in byte, to compare to the request part, after any transformations. // // This member is required. - Size *int64 + Size int64 // Text transformations eliminate some of the unusual formatting that attackers use // in web requests in an effort to bypass detection. If you specify one or more @@ -1282,7 +1282,7 @@ type SizeConstraintStatement struct { // lowest priority setting, before inspecting the content for a match. // // This member is required. - TextTransformations []*TextTransformation + TextTransformations []TextTransformation } // This is the latest version of AWS WAF, named AWS WAFV2, released in November, @@ -1311,7 +1311,7 @@ type SqliMatchStatement struct { // lowest priority setting, before inspecting the content for a match. // // This member is required. - TextTransformations []*TextTransformation + TextTransformations []TextTransformation } // This is the latest version of AWS WAF, named AWS WAFV2, released in November, @@ -1489,7 +1489,7 @@ type TagInfoForResource struct { ResourceARN *string // The array of Tag objects defined for the resource. - TagList []*Tag + TagList []Tag } // This is the latest version of AWS WAF, named AWS WAFV2, released in November, @@ -1506,7 +1506,7 @@ type TextTransformation struct { // don't need to be consecutive, but they must all be different. // // This member is required. - Priority *int32 + Priority int32 // You can specify the following transformation types: CMD_LINE When you're // concerned that attackers are injecting an operating system command line command @@ -1636,7 +1636,7 @@ type VisibilityConfig struct { // (https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). // // This member is required. - CloudWatchMetricsEnabled *bool + CloudWatchMetricsEnabled bool // A name of the CloudWatch metric. The name can contain only the characters: A-Z, // a-z, 0-9, - (hyphen), and _ (underscore). The name can be from one to 128 @@ -1651,7 +1651,7 @@ type VisibilityConfig struct { // console. // // This member is required. - SampledRequestsEnabled *bool + SampledRequestsEnabled bool } // This is the latest version of AWS WAF, named AWS WAFV2, released in November, @@ -1705,7 +1705,7 @@ type WebACL struct { // processing power. Rule group capacity is fixed at creation, which helps users // plan their web ACL WCU usage when they use a rule group. The WCU limit for web // ACLs is 1,500. - Capacity *int64 + Capacity int64 // A description of the Web ACL that helps with identification. You cannot change // the description of a Web ACL after you create it. @@ -1714,7 +1714,7 @@ type WebACL struct { // Indicates whether this web ACL is managed by AWS Firewall Manager. If true, then // only AWS Firewall Manager can delete the web ACL or any Firewall Manager rule // groups in the web ACL. - ManagedByFirewallManager *bool + ManagedByFirewallManager bool // The last set of rules for AWS WAF to process in the web ACL. This is defined in // an AWS Firewall Manager WAF policy and contains only rule group references. You @@ -1723,7 +1723,7 @@ type WebACL struct { // Manager administrator can define a set of rule groups to run first in the web // ACL and a set of rule groups to run last. Within each set, the administrator // prioritizes the rule groups, to determine their relative processing order. - PostProcessFirewallManagerRuleGroups []*FirewallManagerRuleGroup + PostProcessFirewallManagerRuleGroups []FirewallManagerRuleGroup // The first set of rules for AWS WAF to process in the web ACL. This is defined in // an AWS Firewall Manager WAF policy and contains only rule group references. You @@ -1732,13 +1732,13 @@ type WebACL struct { // Manager administrator can define a set of rule groups to run first in the web // ACL and a set of rule groups to run last. Within each set, the administrator // prioritizes the rule groups, to determine their relative processing order. - PreProcessFirewallManagerRuleGroups []*FirewallManagerRuleGroup + PreProcessFirewallManagerRuleGroups []FirewallManagerRuleGroup // The Rule statements used to identify the web requests that you want to allow, // block, or count. Each rule includes one top-level statement that AWS WAF uses to // identify matching web requests, and parameters that govern how AWS WAF handles // them. - Rules []*Rule + Rules []Rule } // This is the latest version of AWS WAF, named AWS WAFV2, released in November, @@ -1802,5 +1802,5 @@ type XssMatchStatement struct { // lowest priority setting, before inspecting the content for a match. // // This member is required. - TextTransformations []*TextTransformation + TextTransformations []TextTransformation } diff --git a/service/wafv2/validators.go b/service/wafv2/validators.go index aefa9abfc05..b6ffec5062c 100644 --- a/service/wafv2/validators.go +++ b/service/wafv2/validators.go @@ -1012,13 +1012,13 @@ func validateExcludedRule(v *types.ExcludedRule) error { } } -func validateExcludedRules(v []*types.ExcludedRule) error { +func validateExcludedRules(v []types.ExcludedRule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ExcludedRules"} for i := range v { - if err := validateExcludedRule(v[i]); err != nil { + if err := validateExcludedRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1216,9 +1216,6 @@ func validateRateBasedStatement(v *types.RateBasedStatement) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "RateBasedStatement"} - if v.Limit == nil { - invalidParams.Add(smithy.NewErrParamRequired("Limit")) - } if v.ScopeDownStatement != nil { if err := validateStatement(v.ScopeDownStatement); err != nil { invalidParams.AddNested("ScopeDownStatement", err.(smithy.InvalidParamsError)) @@ -1239,13 +1236,13 @@ func validateRateBasedStatement(v *types.RateBasedStatement) error { } } -func validateRedactedFields(v []*types.FieldToMatch) error { +func validateRedactedFields(v []types.FieldToMatch) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RedactedFields"} for i := range v { - if err := validateFieldToMatch(v[i]); err != nil { + if err := validateFieldToMatch(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1290,9 +1287,6 @@ func validateRule(v *types.Rule) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "Rule"} - if v.Priority == nil { - invalidParams.Add(smithy.NewErrParamRequired("Priority")) - } if v.Statement == nil { invalidParams.Add(smithy.NewErrParamRequired("Statement")) } else if v.Statement != nil { @@ -1337,13 +1331,13 @@ func validateRuleGroupReferenceStatement(v *types.RuleGroupReferenceStatement) e } } -func validateRules(v []*types.Rule) error { +func validateRules(v []types.Rule) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Rules"} for i := range v { - if err := validateRule(v[i]); err != nil { + if err := validateRule(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1389,9 +1383,6 @@ func validateSizeConstraintStatement(v *types.SizeConstraintStatement) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "SizeConstraintStatement"} - if v.Size == nil { - invalidParams.Add(smithy.NewErrParamRequired("Size")) - } if len(v.ComparisonOperator) == 0 { invalidParams.Add(smithy.NewErrParamRequired("ComparisonOperator")) } @@ -1519,13 +1510,13 @@ func validateStatement(v *types.Statement) error { } } -func validateStatements(v []*types.Statement) error { +func validateStatements(v []types.Statement) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "Statements"} for i := range v { - if err := validateStatement(v[i]); err != nil { + if err := validateStatement(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1554,13 +1545,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1579,9 +1570,6 @@ func validateTextTransformation(v *types.TextTransformation) error { if len(v.Type) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Type")) } - if v.Priority == nil { - invalidParams.Add(smithy.NewErrParamRequired("Priority")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1589,13 +1577,13 @@ func validateTextTransformation(v *types.TextTransformation) error { } } -func validateTextTransformations(v []*types.TextTransformation) error { +func validateTextTransformations(v []types.TextTransformation) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TextTransformations"} for i := range v { - if err := validateTextTransformation(v[i]); err != nil { + if err := validateTextTransformation(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1629,12 +1617,6 @@ func validateVisibilityConfig(v *types.VisibilityConfig) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "VisibilityConfig"} - if v.SampledRequestsEnabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("SampledRequestsEnabled")) - } - if v.CloudWatchMetricsEnabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("CloudWatchMetricsEnabled")) - } if v.MetricName == nil { invalidParams.Add(smithy.NewErrParamRequired("MetricName")) } @@ -1794,9 +1776,6 @@ func validateOpCreateRuleGroupInput(v *CreateRuleGroupInput) error { invalidParams.AddNested("Rules", err.(smithy.InvalidParamsError)) } } - if v.Capacity == nil { - invalidParams.Add(smithy.NewErrParamRequired("Capacity")) - } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2150,9 +2129,6 @@ func validateOpGetSampledRequestsInput(v *GetSampledRequestsInput) error { if len(v.Scope) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Scope")) } - if v.MaxItems == nil { - invalidParams.Add(smithy.NewErrParamRequired("MaxItems")) - } if v.RuleMetricName == nil { invalidParams.Add(smithy.NewErrParamRequired("RuleMetricName")) } diff --git a/service/workdocs/api_op_AddResourcePermissions.go b/service/workdocs/api_op_AddResourcePermissions.go index 6d2d08b33bb..bd7e6463790 100644 --- a/service/workdocs/api_op_AddResourcePermissions.go +++ b/service/workdocs/api_op_AddResourcePermissions.go @@ -34,7 +34,7 @@ type AddResourcePermissionsInput struct { // The users, groups, or organization being granted permission. // // This member is required. - Principals []*types.SharePrincipal + Principals []types.SharePrincipal // The ID of the resource. // @@ -52,7 +52,7 @@ type AddResourcePermissionsInput struct { type AddResourcePermissionsOutput struct { // The share results. - ShareResults []*types.ShareResult + ShareResults []types.ShareResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workdocs/api_op_CreateComment.go b/service/workdocs/api_op_CreateComment.go index 5605d28b48b..dda9693c1d4 100644 --- a/service/workdocs/api_op_CreateComment.go +++ b/service/workdocs/api_op_CreateComment.go @@ -50,7 +50,7 @@ type CreateCommentInput struct { // Set this parameter to TRUE to send an email out to the document collaborators // after the comment is created. - NotifyCollaborators *bool + NotifyCollaborators bool // The ID of the parent comment. ParentId *string diff --git a/service/workdocs/api_op_CreateCustomMetadata.go b/service/workdocs/api_op_CreateCustomMetadata.go index c9083dd34a7..b7c086776c7 100644 --- a/service/workdocs/api_op_CreateCustomMetadata.go +++ b/service/workdocs/api_op_CreateCustomMetadata.go @@ -32,7 +32,7 @@ type CreateCustomMetadataInput struct { // Custom metadata in the form of name-value pairs. // // This member is required. - CustomMetadata map[string]*string + CustomMetadata map[string]string // The ID of the resource. // diff --git a/service/workdocs/api_op_CreateLabels.go b/service/workdocs/api_op_CreateLabels.go index d7a03ff21e2..4dacb9ad23d 100644 --- a/service/workdocs/api_op_CreateLabels.go +++ b/service/workdocs/api_op_CreateLabels.go @@ -31,7 +31,7 @@ type CreateLabelsInput struct { // List of labels to add to the resource. // // This member is required. - Labels []*string + Labels []string // The ID of the resource. // diff --git a/service/workdocs/api_op_DeleteCustomMetadata.go b/service/workdocs/api_op_DeleteCustomMetadata.go index 3f9aac7376a..9868e0b3015 100644 --- a/service/workdocs/api_op_DeleteCustomMetadata.go +++ b/service/workdocs/api_op_DeleteCustomMetadata.go @@ -39,10 +39,10 @@ type DeleteCustomMetadataInput struct { // Flag to indicate removal of all custom metadata properties from the specified // resource. - DeleteAll *bool + DeleteAll bool // List of properties to remove. - Keys []*string + Keys []string // The ID of the version, if the custom metadata is being deleted from a document // version. diff --git a/service/workdocs/api_op_DeleteLabels.go b/service/workdocs/api_op_DeleteLabels.go index 692dc453239..9d718292d8b 100644 --- a/service/workdocs/api_op_DeleteLabels.go +++ b/service/workdocs/api_op_DeleteLabels.go @@ -38,10 +38,10 @@ type DeleteLabelsInput struct { AuthenticationToken *string // Flag to request removal of all labels from the specified resource. - DeleteAll *bool + DeleteAll bool // List of labels to delete from the resource. - Labels []*string + Labels []string } type DeleteLabelsOutput struct { diff --git a/service/workdocs/api_op_DescribeActivities.go b/service/workdocs/api_op_DescribeActivities.go index 375b291d8b9..6401305abc6 100644 --- a/service/workdocs/api_op_DescribeActivities.go +++ b/service/workdocs/api_op_DescribeActivities.go @@ -46,7 +46,7 @@ type DescribeActivitiesInput struct { // activity performed on a parent resource. For example, sharing a parent folder // (the direct activity) shares all of the subfolders and documents within the // parent folder (the indirect activity). - IncludeIndirectActivities *bool + IncludeIndirectActivities bool // The maximum number of items to return. Limit *int32 @@ -77,7 +77,7 @@ type DescribeActivitiesOutput struct { Marker *string // The list of activities for the specified user and time period. - UserActivities []*types.Activity + UserActivities []types.Activity // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workdocs/api_op_DescribeComments.go b/service/workdocs/api_op_DescribeComments.go index 809da17f8df..97619936b51 100644 --- a/service/workdocs/api_op_DescribeComments.go +++ b/service/workdocs/api_op_DescribeComments.go @@ -54,7 +54,7 @@ type DescribeCommentsInput struct { type DescribeCommentsOutput struct { // The list of comments for the specified document version. - Comments []*types.Comment + Comments []types.Comment // The marker for the next set of results. This marker was received from a previous // call. diff --git a/service/workdocs/api_op_DescribeDocumentVersions.go b/service/workdocs/api_op_DescribeDocumentVersions.go index fec02e973f5..88a2c89f223 100644 --- a/service/workdocs/api_op_DescribeDocumentVersions.go +++ b/service/workdocs/api_op_DescribeDocumentVersions.go @@ -58,7 +58,7 @@ type DescribeDocumentVersionsInput struct { type DescribeDocumentVersionsOutput struct { // The document versions. - DocumentVersions []*types.DocumentVersionMetadata + DocumentVersions []types.DocumentVersionMetadata // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. diff --git a/service/workdocs/api_op_DescribeFolderContents.go b/service/workdocs/api_op_DescribeFolderContents.go index 09777bd28ad..0c67941fa4e 100644 --- a/service/workdocs/api_op_DescribeFolderContents.go +++ b/service/workdocs/api_op_DescribeFolderContents.go @@ -65,10 +65,10 @@ type DescribeFolderContentsInput struct { type DescribeFolderContentsOutput struct { // The documents in the specified folder. - Documents []*types.DocumentMetadata + Documents []types.DocumentMetadata // The subfolders in the specified folder. - Folders []*types.FolderMetadata + Folders []types.FolderMetadata // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. diff --git a/service/workdocs/api_op_DescribeGroups.go b/service/workdocs/api_op_DescribeGroups.go index 9eadd4596c7..5a257014f5b 100644 --- a/service/workdocs/api_op_DescribeGroups.go +++ b/service/workdocs/api_op_DescribeGroups.go @@ -53,7 +53,7 @@ type DescribeGroupsInput struct { type DescribeGroupsOutput struct { // The list of groups. - Groups []*types.GroupMetadata + Groups []types.GroupMetadata // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. diff --git a/service/workdocs/api_op_DescribeNotificationSubscriptions.go b/service/workdocs/api_op_DescribeNotificationSubscriptions.go index 24e3939c312..4fc5901ac0f 100644 --- a/service/workdocs/api_op_DescribeNotificationSubscriptions.go +++ b/service/workdocs/api_op_DescribeNotificationSubscriptions.go @@ -49,7 +49,7 @@ type DescribeNotificationSubscriptionsOutput struct { Marker *string // The subscriptions. - Subscriptions []*types.Subscription + Subscriptions []types.Subscription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workdocs/api_op_DescribeResourcePermissions.go b/service/workdocs/api_op_DescribeResourcePermissions.go index b30c98a992e..212fd316d98 100644 --- a/service/workdocs/api_op_DescribeResourcePermissions.go +++ b/service/workdocs/api_op_DescribeResourcePermissions.go @@ -56,7 +56,7 @@ type DescribeResourcePermissionsOutput struct { Marker *string // The principals. - Principals []*types.Principal + Principals []types.Principal // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workdocs/api_op_DescribeRootFolders.go b/service/workdocs/api_op_DescribeRootFolders.go index efdef4aa853..758c19c545a 100644 --- a/service/workdocs/api_op_DescribeRootFolders.go +++ b/service/workdocs/api_op_DescribeRootFolders.go @@ -52,7 +52,7 @@ type DescribeRootFoldersInput struct { type DescribeRootFoldersOutput struct { // The user's special folders. - Folders []*types.FolderMetadata + Folders []types.FolderMetadata // The marker for the next set of results. Marker *string diff --git a/service/workdocs/api_op_DescribeUsers.go b/service/workdocs/api_op_DescribeUsers.go index 5129124243e..405508e1e10 100644 --- a/service/workdocs/api_op_DescribeUsers.go +++ b/service/workdocs/api_op_DescribeUsers.go @@ -76,7 +76,7 @@ type DescribeUsersOutput struct { TotalNumberOfUsers *int64 // The users. - Users []*types.User + Users []types.User // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workdocs/api_op_GetDocument.go b/service/workdocs/api_op_GetDocument.go index e0e760352af..a2612731e91 100644 --- a/service/workdocs/api_op_GetDocument.go +++ b/service/workdocs/api_op_GetDocument.go @@ -39,13 +39,13 @@ type GetDocumentInput struct { AuthenticationToken *string // Set this to TRUE to include custom metadata in the response. - IncludeCustomMetadata *bool + IncludeCustomMetadata bool } type GetDocumentOutput struct { // The custom metadata on the document. - CustomMetadata map[string]*string + CustomMetadata map[string]string // The metadata details of the document. Metadata *types.DocumentMetadata diff --git a/service/workdocs/api_op_GetDocumentVersion.go b/service/workdocs/api_op_GetDocumentVersion.go index fc97af61395..fcb888620a9 100644 --- a/service/workdocs/api_op_GetDocumentVersion.go +++ b/service/workdocs/api_op_GetDocumentVersion.go @@ -48,13 +48,13 @@ type GetDocumentVersionInput struct { Fields *string // Set this to TRUE to include custom metadata in the response. - IncludeCustomMetadata *bool + IncludeCustomMetadata bool } type GetDocumentVersionOutput struct { // The custom metadata on the document version. - CustomMetadata map[string]*string + CustomMetadata map[string]string // The version metadata. Metadata *types.DocumentVersionMetadata diff --git a/service/workdocs/api_op_GetFolder.go b/service/workdocs/api_op_GetFolder.go index f6e9718afcd..1a518f0636d 100644 --- a/service/workdocs/api_op_GetFolder.go +++ b/service/workdocs/api_op_GetFolder.go @@ -39,13 +39,13 @@ type GetFolderInput struct { AuthenticationToken *string // Set to TRUE to include custom metadata in the response. - IncludeCustomMetadata *bool + IncludeCustomMetadata bool } type GetFolderOutput struct { // The custom metadata on the folder. - CustomMetadata map[string]*string + CustomMetadata map[string]string // The metadata of the folder. Metadata *types.FolderMetadata diff --git a/service/workdocs/api_op_GetResources.go b/service/workdocs/api_op_GetResources.go index 1dac60b223a..b28c7c2393d 100644 --- a/service/workdocs/api_op_GetResources.go +++ b/service/workdocs/api_op_GetResources.go @@ -52,10 +52,10 @@ type GetResourcesInput struct { type GetResourcesOutput struct { // The documents in the specified collection. - Documents []*types.DocumentMetadata + Documents []types.DocumentMetadata // The folders in the specified folder. - Folders []*types.FolderMetadata + Folders []types.FolderMetadata // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. diff --git a/service/workdocs/deserializers.go b/service/workdocs/deserializers.go index 2c8bf9605a8..7116e5d7789 100644 --- a/service/workdocs/deserializers.go +++ b/service/workdocs/deserializers.go @@ -2318,7 +2318,7 @@ func awsRestjson1_deserializeOpDocumentDescribeActivitiesOutput(v **DescribeActi if !ok { return fmt.Errorf("expected MarkerType to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "UserActivities": @@ -2494,7 +2494,7 @@ func awsRestjson1_deserializeOpDocumentDescribeCommentsOutput(v **DescribeCommen if !ok { return fmt.Errorf("expected MarkerType to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -2668,7 +2668,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDocumentVersionsOutput(v **Descri if !ok { return fmt.Errorf("expected PageMarkerType to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -2844,7 +2844,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFolderContentsOutput(v **Describe if !ok { return fmt.Errorf("expected PageMarkerType to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -3009,7 +3009,7 @@ func awsRestjson1_deserializeOpDocumentDescribeGroupsOutput(v **DescribeGroupsOu if !ok { return fmt.Errorf("expected MarkerType to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -3166,7 +3166,7 @@ func awsRestjson1_deserializeOpDocumentDescribeNotificationSubscriptionsOutput(v if !ok { return fmt.Errorf("expected PageMarkerType to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "Subscriptions": @@ -3331,7 +3331,7 @@ func awsRestjson1_deserializeOpDocumentDescribeResourcePermissionsOutput(v **Des if !ok { return fmt.Errorf("expected PageMarkerType to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "Principals": @@ -3504,7 +3504,7 @@ func awsRestjson1_deserializeOpDocumentDescribeRootFoldersOutput(v **DescribeRoo if !ok { return fmt.Errorf("expected PageMarkerType to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -3673,7 +3673,7 @@ func awsRestjson1_deserializeOpDocumentDescribeUsersOutput(v **DescribeUsersOutp if !ok { return fmt.Errorf("expected PageMarkerType to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } case "TotalNumberOfUsers": @@ -3686,7 +3686,7 @@ func awsRestjson1_deserializeOpDocumentDescribeUsersOutput(v **DescribeUsersOutp if err != nil { return err } - sv.TotalNumberOfUsers = &i64 + sv.TotalNumberOfUsers = ptr.Int64(i64) } case "Users": @@ -4851,7 +4851,7 @@ func awsRestjson1_deserializeOpDocumentGetResourcesOutput(v **GetResourcesOutput if !ok { return fmt.Errorf("expected PageMarkerType to be of type string, got %T instead", value) } - sv.Marker = &jtv + sv.Marker = ptr.String(jtv) } default: @@ -6659,7 +6659,7 @@ func awsRestjson1_deserializeDocumentActivity(v **types.Activity, value interfac if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.IsIndirectActivity = &jtv + sv.IsIndirectActivity = jtv } case "OrganizationId": @@ -6668,7 +6668,7 @@ func awsRestjson1_deserializeDocumentActivity(v **types.Activity, value interfac if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.OrganizationId = &jtv + sv.OrganizationId = ptr.String(jtv) } case "OriginalParent": @@ -6745,7 +6745,7 @@ func awsRestjson1_deserializeDocumentComment(v **types.Comment, value interface{ if !ok { return fmt.Errorf("expected CommentIdType to be of type string, got %T instead", value) } - sv.CommentId = &jtv + sv.CommentId = ptr.String(jtv) } case "Contributor": @@ -6772,7 +6772,7 @@ func awsRestjson1_deserializeDocumentComment(v **types.Comment, value interface{ if !ok { return fmt.Errorf("expected CommentIdType to be of type string, got %T instead", value) } - sv.ParentId = &jtv + sv.ParentId = ptr.String(jtv) } case "RecipientId": @@ -6781,7 +6781,7 @@ func awsRestjson1_deserializeDocumentComment(v **types.Comment, value interface{ if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.RecipientId = &jtv + sv.RecipientId = ptr.String(jtv) } case "Status": @@ -6799,7 +6799,7 @@ func awsRestjson1_deserializeDocumentComment(v **types.Comment, value interface{ if !ok { return fmt.Errorf("expected CommentTextType to be of type string, got %T instead", value) } - sv.Text = &jtv + sv.Text = ptr.String(jtv) } case "ThreadId": @@ -6808,7 +6808,7 @@ func awsRestjson1_deserializeDocumentComment(v **types.Comment, value interface{ if !ok { return fmt.Errorf("expected CommentIdType to be of type string, got %T instead", value) } - sv.ThreadId = &jtv + sv.ThreadId = ptr.String(jtv) } case "Visibility": @@ -6829,7 +6829,7 @@ func awsRestjson1_deserializeDocumentComment(v **types.Comment, value interface{ return nil } -func awsRestjson1_deserializeDocumentCommentList(v *[]*types.Comment, value interface{}) error { +func awsRestjson1_deserializeDocumentCommentList(v *[]types.Comment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6842,18 +6842,20 @@ func awsRestjson1_deserializeDocumentCommentList(v *[]*types.Comment, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Comment + var cv []types.Comment if *v == nil { - cv = []*types.Comment{} + cv = []types.Comment{} } else { cv = *v } for _, value := range shape { - var col *types.Comment - if err := awsRestjson1_deserializeDocumentComment(&col, value); err != nil { + var col types.Comment + destAddr := &col + if err := awsRestjson1_deserializeDocumentComment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6889,7 +6891,7 @@ func awsRestjson1_deserializeDocumentCommentMetadata(v **types.CommentMetadata, if !ok { return fmt.Errorf("expected CommentIdType to be of type string, got %T instead", value) } - sv.CommentId = &jtv + sv.CommentId = ptr.String(jtv) } case "CommentStatus": @@ -6925,7 +6927,7 @@ func awsRestjson1_deserializeDocumentCommentMetadata(v **types.CommentMetadata, if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.RecipientId = &jtv + sv.RecipientId = ptr.String(jtv) } default: @@ -6965,7 +6967,7 @@ func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.C if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7005,7 +7007,7 @@ func awsRestjson1_deserializeDocumentConflictingOperationException(v **types.Con if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7045,7 +7047,7 @@ func awsRestjson1_deserializeDocumentCustomMetadataLimitExceededException(v **ty if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7057,7 +7059,7 @@ func awsRestjson1_deserializeDocumentCustomMetadataLimitExceededException(v **ty return nil } -func awsRestjson1_deserializeDocumentCustomMetadataMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomMetadataMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7070,21 +7072,21 @@ func awsRestjson1_deserializeDocumentCustomMetadataMap(v *map[string]*string, va return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected CustomMetadataValueType to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -7121,7 +7123,7 @@ func awsRestjson1_deserializeDocumentDeactivatingLastSystemUserException(v **typ if !ok { return fmt.Errorf("expected ExceptionCodeType to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -7130,7 +7132,7 @@ func awsRestjson1_deserializeDocumentDeactivatingLastSystemUserException(v **typ if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7170,7 +7172,7 @@ func awsRestjson1_deserializeDocumentDocumentLockedForCommentsException(v **type if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7223,7 +7225,7 @@ func awsRestjson1_deserializeDocumentDocumentMetadata(v **types.DocumentMetadata if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.CreatorId = &jtv + sv.CreatorId = ptr.String(jtv) } case "Id": @@ -7232,7 +7234,7 @@ func awsRestjson1_deserializeDocumentDocumentMetadata(v **types.DocumentMetadata if !ok { return fmt.Errorf("expected ResourceIdType to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Labels": @@ -7264,7 +7266,7 @@ func awsRestjson1_deserializeDocumentDocumentMetadata(v **types.DocumentMetadata if !ok { return fmt.Errorf("expected ResourceIdType to be of type string, got %T instead", value) } - sv.ParentFolderId = &jtv + sv.ParentFolderId = ptr.String(jtv) } case "ResourceState": @@ -7285,7 +7287,7 @@ func awsRestjson1_deserializeDocumentDocumentMetadata(v **types.DocumentMetadata return nil } -func awsRestjson1_deserializeDocumentDocumentMetadataList(v *[]*types.DocumentMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentDocumentMetadataList(v *[]types.DocumentMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7298,18 +7300,20 @@ func awsRestjson1_deserializeDocumentDocumentMetadataList(v *[]*types.DocumentMe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentMetadata + var cv []types.DocumentMetadata if *v == nil { - cv = []*types.DocumentMetadata{} + cv = []types.DocumentMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentMetadata - if err := awsRestjson1_deserializeDocumentDocumentMetadata(&col, value); err != nil { + var col types.DocumentMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentDocumentMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7317,7 +7321,7 @@ func awsRestjson1_deserializeDocumentDocumentMetadataList(v *[]*types.DocumentMe return nil } -func awsRestjson1_deserializeDocumentDocumentSourceUrlMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDocumentSourceUrlMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7330,21 +7334,21 @@ func awsRestjson1_deserializeDocumentDocumentSourceUrlMap(v *map[string]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected UrlType to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -7353,7 +7357,7 @@ func awsRestjson1_deserializeDocumentDocumentSourceUrlMap(v *map[string]*string, return nil } -func awsRestjson1_deserializeDocumentDocumentThumbnailUrlMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentDocumentThumbnailUrlMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7366,21 +7370,21 @@ func awsRestjson1_deserializeDocumentDocumentThumbnailUrlMap(v *map[string]*stri return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected UrlType to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -7443,7 +7447,7 @@ func awsRestjson1_deserializeDocumentDocumentVersionMetadata(v **types.DocumentV if !ok { return fmt.Errorf("expected DocumentContentType to be of type string, got %T instead", value) } - sv.ContentType = &jtv + sv.ContentType = ptr.String(jtv) } case "CreatedTimestamp": @@ -7465,7 +7469,7 @@ func awsRestjson1_deserializeDocumentDocumentVersionMetadata(v **types.DocumentV if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.CreatorId = &jtv + sv.CreatorId = ptr.String(jtv) } case "Id": @@ -7474,7 +7478,7 @@ func awsRestjson1_deserializeDocumentDocumentVersionMetadata(v **types.DocumentV if !ok { return fmt.Errorf("expected DocumentVersionIdType to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "ModifiedTimestamp": @@ -7496,7 +7500,7 @@ func awsRestjson1_deserializeDocumentDocumentVersionMetadata(v **types.DocumentV if !ok { return fmt.Errorf("expected ResourceNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Signature": @@ -7505,7 +7509,7 @@ func awsRestjson1_deserializeDocumentDocumentVersionMetadata(v **types.DocumentV if !ok { return fmt.Errorf("expected HashType to be of type string, got %T instead", value) } - sv.Signature = &jtv + sv.Signature = ptr.String(jtv) } case "Size": @@ -7518,7 +7522,7 @@ func awsRestjson1_deserializeDocumentDocumentVersionMetadata(v **types.DocumentV if err != nil { return err } - sv.Size = &i64 + sv.Size = ptr.Int64(i64) } case "Source": @@ -7549,7 +7553,7 @@ func awsRestjson1_deserializeDocumentDocumentVersionMetadata(v **types.DocumentV return nil } -func awsRestjson1_deserializeDocumentDocumentVersionMetadataList(v *[]*types.DocumentVersionMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentDocumentVersionMetadataList(v *[]types.DocumentVersionMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7562,18 +7566,20 @@ func awsRestjson1_deserializeDocumentDocumentVersionMetadataList(v *[]*types.Doc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DocumentVersionMetadata + var cv []types.DocumentVersionMetadata if *v == nil { - cv = []*types.DocumentVersionMetadata{} + cv = []types.DocumentVersionMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.DocumentVersionMetadata - if err := awsRestjson1_deserializeDocumentDocumentVersionMetadata(&col, value); err != nil { + var col types.DocumentVersionMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentDocumentVersionMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7609,7 +7615,7 @@ func awsRestjson1_deserializeDocumentDraftUploadOutOfSyncException(v **types.Dra if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7649,7 +7655,7 @@ func awsRestjson1_deserializeDocumentEntityAlreadyExistsException(v **types.Enti if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7661,7 +7667,7 @@ func awsRestjson1_deserializeDocumentEntityAlreadyExistsException(v **types.Enti return nil } -func awsRestjson1_deserializeDocumentEntityIdList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentEntityIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7674,21 +7680,21 @@ func awsRestjson1_deserializeDocumentEntityIdList(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7730,7 +7736,7 @@ func awsRestjson1_deserializeDocumentEntityNotExistsException(v **types.EntityNo if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7770,7 +7776,7 @@ func awsRestjson1_deserializeDocumentFailedDependencyException(v **types.FailedD if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7823,7 +7829,7 @@ func awsRestjson1_deserializeDocumentFolderMetadata(v **types.FolderMetadata, va if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.CreatorId = &jtv + sv.CreatorId = ptr.String(jtv) } case "Id": @@ -7832,7 +7838,7 @@ func awsRestjson1_deserializeDocumentFolderMetadata(v **types.FolderMetadata, va if !ok { return fmt.Errorf("expected ResourceIdType to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Labels": @@ -7850,7 +7856,7 @@ func awsRestjson1_deserializeDocumentFolderMetadata(v **types.FolderMetadata, va if err != nil { return err } - sv.LatestVersionSize = &i64 + sv.LatestVersionSize = ptr.Int64(i64) } case "ModifiedTimestamp": @@ -7872,7 +7878,7 @@ func awsRestjson1_deserializeDocumentFolderMetadata(v **types.FolderMetadata, va if !ok { return fmt.Errorf("expected ResourceNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ParentFolderId": @@ -7881,7 +7887,7 @@ func awsRestjson1_deserializeDocumentFolderMetadata(v **types.FolderMetadata, va if !ok { return fmt.Errorf("expected ResourceIdType to be of type string, got %T instead", value) } - sv.ParentFolderId = &jtv + sv.ParentFolderId = ptr.String(jtv) } case "ResourceState": @@ -7899,7 +7905,7 @@ func awsRestjson1_deserializeDocumentFolderMetadata(v **types.FolderMetadata, va if !ok { return fmt.Errorf("expected HashType to be of type string, got %T instead", value) } - sv.Signature = &jtv + sv.Signature = ptr.String(jtv) } case "Size": @@ -7912,7 +7918,7 @@ func awsRestjson1_deserializeDocumentFolderMetadata(v **types.FolderMetadata, va if err != nil { return err } - sv.Size = &i64 + sv.Size = ptr.Int64(i64) } default: @@ -7924,7 +7930,7 @@ func awsRestjson1_deserializeDocumentFolderMetadata(v **types.FolderMetadata, va return nil } -func awsRestjson1_deserializeDocumentFolderMetadataList(v *[]*types.FolderMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentFolderMetadataList(v *[]types.FolderMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7937,18 +7943,20 @@ func awsRestjson1_deserializeDocumentFolderMetadataList(v *[]*types.FolderMetada return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FolderMetadata + var cv []types.FolderMetadata if *v == nil { - cv = []*types.FolderMetadata{} + cv = []types.FolderMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.FolderMetadata - if err := awsRestjson1_deserializeDocumentFolderMetadata(&col, value); err != nil { + var col types.FolderMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentFolderMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7984,7 +7992,7 @@ func awsRestjson1_deserializeDocumentGroupMetadata(v **types.GroupMetadata, valu if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -7993,7 +8001,7 @@ func awsRestjson1_deserializeDocumentGroupMetadata(v **types.GroupMetadata, valu if !ok { return fmt.Errorf("expected GroupNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8005,7 +8013,7 @@ func awsRestjson1_deserializeDocumentGroupMetadata(v **types.GroupMetadata, valu return nil } -func awsRestjson1_deserializeDocumentGroupMetadataList(v *[]*types.GroupMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupMetadataList(v *[]types.GroupMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8018,18 +8026,20 @@ func awsRestjson1_deserializeDocumentGroupMetadataList(v *[]*types.GroupMetadata return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupMetadata + var cv []types.GroupMetadata if *v == nil { - cv = []*types.GroupMetadata{} + cv = []types.GroupMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.GroupMetadata - if err := awsRestjson1_deserializeDocumentGroupMetadata(&col, value); err != nil { + var col types.GroupMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroupMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8065,7 +8075,7 @@ func awsRestjson1_deserializeDocumentIllegalUserStateException(v **types.Illegal if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8105,7 +8115,7 @@ func awsRestjson1_deserializeDocumentInvalidArgumentException(v **types.InvalidA if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8145,7 +8155,7 @@ func awsRestjson1_deserializeDocumentInvalidCommentOperationException(v **types. if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8185,7 +8195,7 @@ func awsRestjson1_deserializeDocumentInvalidOperationException(v **types.Invalid if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8225,7 +8235,7 @@ func awsRestjson1_deserializeDocumentInvalidPasswordException(v **types.InvalidP if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8265,7 +8275,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8277,7 +8287,7 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } -func awsRestjson1_deserializeDocumentOrganizationUserList(v *[]*types.User, value interface{}) error { +func awsRestjson1_deserializeDocumentOrganizationUserList(v *[]types.User, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8290,18 +8300,20 @@ func awsRestjson1_deserializeDocumentOrganizationUserList(v *[]*types.User, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.User + var cv []types.User if *v == nil { - cv = []*types.User{} + cv = []types.User{} } else { cv = *v } for _, value := range shape { - var col *types.User - if err := awsRestjson1_deserializeDocumentUser(&col, value); err != nil { + var col types.User + destAddr := &col + if err := awsRestjson1_deserializeDocumentUser(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8399,7 +8411,7 @@ func awsRestjson1_deserializeDocumentPermissionInfo(v **types.PermissionInfo, va return nil } -func awsRestjson1_deserializeDocumentPermissionInfoList(v *[]*types.PermissionInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentPermissionInfoList(v *[]types.PermissionInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8412,18 +8424,20 @@ func awsRestjson1_deserializeDocumentPermissionInfoList(v *[]*types.PermissionIn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.PermissionInfo + var cv []types.PermissionInfo if *v == nil { - cv = []*types.PermissionInfo{} + cv = []types.PermissionInfo{} } else { cv = *v } for _, value := range shape { - var col *types.PermissionInfo - if err := awsRestjson1_deserializeDocumentPermissionInfo(&col, value); err != nil { + var col types.PermissionInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentPermissionInfo(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8459,7 +8473,7 @@ func awsRestjson1_deserializeDocumentPrincipal(v **types.Principal, value interf if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Roles": @@ -8485,7 +8499,7 @@ func awsRestjson1_deserializeDocumentPrincipal(v **types.Principal, value interf return nil } -func awsRestjson1_deserializeDocumentPrincipalList(v *[]*types.Principal, value interface{}) error { +func awsRestjson1_deserializeDocumentPrincipalList(v *[]types.Principal, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8498,18 +8512,20 @@ func awsRestjson1_deserializeDocumentPrincipalList(v *[]*types.Principal, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Principal + var cv []types.Principal if *v == nil { - cv = []*types.Principal{} + cv = []types.Principal{} } else { cv = *v } for _, value := range shape { - var col *types.Principal - if err := awsRestjson1_deserializeDocumentPrincipal(&col, value); err != nil { + var col types.Principal + destAddr := &col + if err := awsRestjson1_deserializeDocumentPrincipal(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8545,7 +8561,7 @@ func awsRestjson1_deserializeDocumentProhibitedStateException(v **types.Prohibit if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8585,7 +8601,7 @@ func awsRestjson1_deserializeDocumentRequestedEntityTooLargeException(v **types. if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8625,7 +8641,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyCheckedOutException(v **type if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8665,7 +8681,7 @@ func awsRestjson1_deserializeDocumentResourceMetadata(v **types.ResourceMetadata if !ok { return fmt.Errorf("expected ResourceIdType to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -8674,7 +8690,7 @@ func awsRestjson1_deserializeDocumentResourceMetadata(v **types.ResourceMetadata if !ok { return fmt.Errorf("expected ResourceNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OriginalName": @@ -8683,7 +8699,7 @@ func awsRestjson1_deserializeDocumentResourceMetadata(v **types.ResourceMetadata if !ok { return fmt.Errorf("expected ResourceNameType to be of type string, got %T instead", value) } - sv.OriginalName = &jtv + sv.OriginalName = ptr.String(jtv) } case "Owner": @@ -8697,7 +8713,7 @@ func awsRestjson1_deserializeDocumentResourceMetadata(v **types.ResourceMetadata if !ok { return fmt.Errorf("expected ResourceIdType to be of type string, got %T instead", value) } - sv.ParentId = &jtv + sv.ParentId = ptr.String(jtv) } case "Type": @@ -8715,7 +8731,7 @@ func awsRestjson1_deserializeDocumentResourceMetadata(v **types.ResourceMetadata if !ok { return fmt.Errorf("expected DocumentVersionIdType to be of type string, got %T instead", value) } - sv.VersionId = &jtv + sv.VersionId = ptr.String(jtv) } default: @@ -8791,7 +8807,7 @@ func awsRestjson1_deserializeDocumentResourcePathComponent(v **types.ResourcePat if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -8800,7 +8816,7 @@ func awsRestjson1_deserializeDocumentResourcePathComponent(v **types.ResourcePat if !ok { return fmt.Errorf("expected ResourceNameType to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -8812,7 +8828,7 @@ func awsRestjson1_deserializeDocumentResourcePathComponent(v **types.ResourcePat return nil } -func awsRestjson1_deserializeDocumentResourcePathComponentList(v *[]*types.ResourcePathComponent, value interface{}) error { +func awsRestjson1_deserializeDocumentResourcePathComponentList(v *[]types.ResourcePathComponent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8825,18 +8841,20 @@ func awsRestjson1_deserializeDocumentResourcePathComponentList(v *[]*types.Resou return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourcePathComponent + var cv []types.ResourcePathComponent if *v == nil { - cv = []*types.ResourcePathComponent{} + cv = []types.ResourcePathComponent{} } else { cv = *v } for _, value := range shape { - var col *types.ResourcePathComponent - if err := awsRestjson1_deserializeDocumentResourcePathComponent(&col, value); err != nil { + var col types.ResourcePathComponent + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourcePathComponent(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8872,7 +8890,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8884,7 +8902,7 @@ func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.Servi return nil } -func awsRestjson1_deserializeDocumentSharedLabels(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSharedLabels(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8897,21 +8915,21 @@ func awsRestjson1_deserializeDocumentSharedLabels(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SharedLabel to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8948,7 +8966,7 @@ func awsRestjson1_deserializeDocumentShareResult(v **types.ShareResult, value in if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.InviteePrincipalId = &jtv + sv.InviteePrincipalId = ptr.String(jtv) } case "PrincipalId": @@ -8957,7 +8975,7 @@ func awsRestjson1_deserializeDocumentShareResult(v **types.ShareResult, value in if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.PrincipalId = &jtv + sv.PrincipalId = ptr.String(jtv) } case "Role": @@ -8975,7 +8993,7 @@ func awsRestjson1_deserializeDocumentShareResult(v **types.ShareResult, value in if !ok { return fmt.Errorf("expected ResourceIdType to be of type string, got %T instead", value) } - sv.ShareId = &jtv + sv.ShareId = ptr.String(jtv) } case "Status": @@ -8993,7 +9011,7 @@ func awsRestjson1_deserializeDocumentShareResult(v **types.ShareResult, value in if !ok { return fmt.Errorf("expected MessageType to be of type string, got %T instead", value) } - sv.StatusMessage = &jtv + sv.StatusMessage = ptr.String(jtv) } default: @@ -9005,7 +9023,7 @@ func awsRestjson1_deserializeDocumentShareResult(v **types.ShareResult, value in return nil } -func awsRestjson1_deserializeDocumentShareResultsList(v *[]*types.ShareResult, value interface{}) error { +func awsRestjson1_deserializeDocumentShareResultsList(v *[]types.ShareResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9018,18 +9036,20 @@ func awsRestjson1_deserializeDocumentShareResultsList(v *[]*types.ShareResult, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ShareResult + var cv []types.ShareResult if *v == nil { - cv = []*types.ShareResult{} + cv = []types.ShareResult{} } else { cv = *v } for _, value := range shape { - var col *types.ShareResult - if err := awsRestjson1_deserializeDocumentShareResult(&col, value); err != nil { + var col types.ShareResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentShareResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9037,7 +9057,7 @@ func awsRestjson1_deserializeDocumentShareResultsList(v *[]*types.ShareResult, v return nil } -func awsRestjson1_deserializeDocumentSignedHeaderMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSignedHeaderMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9050,21 +9070,21 @@ func awsRestjson1_deserializeDocumentSignedHeaderMap(v *map[string]*string, valu return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HeaderValueType to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -9101,7 +9121,7 @@ func awsRestjson1_deserializeDocumentStorageLimitExceededException(v **types.Sto if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9141,7 +9161,7 @@ func awsRestjson1_deserializeDocumentStorageLimitWillExceedException(v **types.S if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9185,7 +9205,7 @@ func awsRestjson1_deserializeDocumentStorageRuleType(v **types.StorageRuleType, if err != nil { return err } - sv.StorageAllocatedInBytes = &i64 + sv.StorageAllocatedInBytes = ptr.Int64(i64) } case "StorageType": @@ -9234,7 +9254,7 @@ func awsRestjson1_deserializeDocumentSubscription(v **types.Subscription, value if !ok { return fmt.Errorf("expected SubscriptionEndPointType to be of type string, got %T instead", value) } - sv.EndPoint = &jtv + sv.EndPoint = ptr.String(jtv) } case "Protocol": @@ -9252,7 +9272,7 @@ func awsRestjson1_deserializeDocumentSubscription(v **types.Subscription, value if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.SubscriptionId = &jtv + sv.SubscriptionId = ptr.String(jtv) } default: @@ -9264,7 +9284,7 @@ func awsRestjson1_deserializeDocumentSubscription(v **types.Subscription, value return nil } -func awsRestjson1_deserializeDocumentSubscriptionList(v *[]*types.Subscription, value interface{}) error { +func awsRestjson1_deserializeDocumentSubscriptionList(v *[]types.Subscription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9277,18 +9297,20 @@ func awsRestjson1_deserializeDocumentSubscriptionList(v *[]*types.Subscription, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Subscription + var cv []types.Subscription if *v == nil { - cv = []*types.Subscription{} + cv = []types.Subscription{} } else { cv = *v } for _, value := range shape { - var col *types.Subscription - if err := awsRestjson1_deserializeDocumentSubscription(&col, value); err != nil { + var col types.Subscription + destAddr := &col + if err := awsRestjson1_deserializeDocumentSubscription(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9324,7 +9346,7 @@ func awsRestjson1_deserializeDocumentTooManyLabelsException(v **types.TooManyLab if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9364,7 +9386,7 @@ func awsRestjson1_deserializeDocumentTooManySubscriptionsException(v **types.Too if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9404,7 +9426,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedOperationException(v **types.Un if !ok { return fmt.Errorf("expected ExceptionCodeType to be of type string, got %T instead", value) } - sv.Code = &jtv + sv.Code = ptr.String(jtv) } case "Message": @@ -9413,7 +9435,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedOperationException(v **types.Un if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9453,7 +9475,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedResourceAccessException(v **typ if !ok { return fmt.Errorf("expected ErrorMessageType to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9498,7 +9520,7 @@ func awsRestjson1_deserializeDocumentUploadMetadata(v **types.UploadMetadata, va if !ok { return fmt.Errorf("expected UrlType to be of type string, got %T instead", value) } - sv.UploadUrl = &jtv + sv.UploadUrl = ptr.String(jtv) } default: @@ -9551,7 +9573,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected EmailAddressType to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "GivenName": @@ -9560,7 +9582,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected UserAttributeValueType to be of type string, got %T instead", value) } - sv.GivenName = &jtv + sv.GivenName = ptr.String(jtv) } case "Id": @@ -9569,7 +9591,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Locale": @@ -9600,7 +9622,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.OrganizationId = &jtv + sv.OrganizationId = ptr.String(jtv) } case "RecycleBinFolderId": @@ -9609,7 +9631,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected ResourceIdType to be of type string, got %T instead", value) } - sv.RecycleBinFolderId = &jtv + sv.RecycleBinFolderId = ptr.String(jtv) } case "RootFolderId": @@ -9618,7 +9640,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected ResourceIdType to be of type string, got %T instead", value) } - sv.RootFolderId = &jtv + sv.RootFolderId = ptr.String(jtv) } case "Status": @@ -9641,7 +9663,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected UserAttributeValueType to be of type string, got %T instead", value) } - sv.Surname = &jtv + sv.Surname = ptr.String(jtv) } case "TimeZoneId": @@ -9650,7 +9672,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected TimeZoneIdType to be of type string, got %T instead", value) } - sv.TimeZoneId = &jtv + sv.TimeZoneId = ptr.String(jtv) } case "Type": @@ -9668,7 +9690,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected UsernameType to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -9680,7 +9702,7 @@ func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentUserActivities(v *[]*types.Activity, value interface{}) error { +func awsRestjson1_deserializeDocumentUserActivities(v *[]types.Activity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9693,18 +9715,20 @@ func awsRestjson1_deserializeDocumentUserActivities(v *[]*types.Activity, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Activity + var cv []types.Activity if *v == nil { - cv = []*types.Activity{} + cv = []types.Activity{} } else { cv = *v } for _, value := range shape { - var col *types.Activity - if err := awsRestjson1_deserializeDocumentActivity(&col, value); err != nil { + var col types.Activity + destAddr := &col + if err := awsRestjson1_deserializeDocumentActivity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9740,7 +9764,7 @@ func awsRestjson1_deserializeDocumentUserMetadata(v **types.UserMetadata, value if !ok { return fmt.Errorf("expected EmailAddressType to be of type string, got %T instead", value) } - sv.EmailAddress = &jtv + sv.EmailAddress = ptr.String(jtv) } case "GivenName": @@ -9749,7 +9773,7 @@ func awsRestjson1_deserializeDocumentUserMetadata(v **types.UserMetadata, value if !ok { return fmt.Errorf("expected UserAttributeValueType to be of type string, got %T instead", value) } - sv.GivenName = &jtv + sv.GivenName = ptr.String(jtv) } case "Id": @@ -9758,7 +9782,7 @@ func awsRestjson1_deserializeDocumentUserMetadata(v **types.UserMetadata, value if !ok { return fmt.Errorf("expected IdType to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Surname": @@ -9767,7 +9791,7 @@ func awsRestjson1_deserializeDocumentUserMetadata(v **types.UserMetadata, value if !ok { return fmt.Errorf("expected UserAttributeValueType to be of type string, got %T instead", value) } - sv.Surname = &jtv + sv.Surname = ptr.String(jtv) } case "Username": @@ -9776,7 +9800,7 @@ func awsRestjson1_deserializeDocumentUserMetadata(v **types.UserMetadata, value if !ok { return fmt.Errorf("expected UsernameType to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -9788,7 +9812,7 @@ func awsRestjson1_deserializeDocumentUserMetadata(v **types.UserMetadata, value return nil } -func awsRestjson1_deserializeDocumentUserMetadataList(v *[]*types.UserMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentUserMetadataList(v *[]types.UserMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9801,18 +9825,20 @@ func awsRestjson1_deserializeDocumentUserMetadataList(v *[]*types.UserMetadata, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UserMetadata + var cv []types.UserMetadata if *v == nil { - cv = []*types.UserMetadata{} + cv = []types.UserMetadata{} } else { cv = *v } for _, value := range shape { - var col *types.UserMetadata - if err := awsRestjson1_deserializeDocumentUserMetadata(&col, value); err != nil { + var col types.UserMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentUserMetadata(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9857,7 +9883,7 @@ func awsRestjson1_deserializeDocumentUserStorageMetadata(v **types.UserStorageMe if err != nil { return err } - sv.StorageUtilizedInBytes = &i64 + sv.StorageUtilizedInBytes = ptr.Int64(i64) } default: diff --git a/service/workdocs/go.mod b/service/workdocs/go.mod index 936997802b9..ae036938146 100644 --- a/service/workdocs/go.mod +++ b/service/workdocs/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/workdocs go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/workdocs/serializers.go b/service/workdocs/serializers.go index 630d39d7078..b6b91158f2f 100644 --- a/service/workdocs/serializers.go +++ b/service/workdocs/serializers.go @@ -66,32 +66,24 @@ func awsRestjson1_serializeOpHttpBindingsAbortDocumentVersionUploadInput(v *Abor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.DocumentId == nil { + if v.DocumentId == nil || len(*v.DocumentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} } if v.DocumentId != nil { - if len(*v.DocumentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} - } if err := encoder.SetURI("DocumentId").String(*v.DocumentId); err != nil { return err } } - if v.VersionId == nil { + if v.VersionId == nil || len(*v.VersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VersionId must not be empty")} } if v.VersionId != nil { - if len(*v.VersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VersionId must not be empty")} - } if err := encoder.SetURI("VersionId").String(*v.VersionId); err != nil { return err } @@ -151,20 +143,15 @@ func awsRestjson1_serializeOpHttpBindingsActivateUserInput(v *ActivateUserInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -235,20 +222,15 @@ func awsRestjson1_serializeOpHttpBindingsAddResourcePermissionsInput(v *AddResou return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} - } if err := encoder.SetURI("ResourceId").String(*v.ResourceId); err != nil { return err } @@ -340,32 +322,24 @@ func awsRestjson1_serializeOpHttpBindingsCreateCommentInput(v *CreateCommentInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.DocumentId == nil { + if v.DocumentId == nil || len(*v.DocumentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} } if v.DocumentId != nil { - if len(*v.DocumentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} - } if err := encoder.SetURI("DocumentId").String(*v.DocumentId); err != nil { return err } } - if v.VersionId == nil { + if v.VersionId == nil || len(*v.VersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VersionId must not be empty")} } if v.VersionId != nil { - if len(*v.VersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VersionId must not be empty")} - } if err := encoder.SetURI("VersionId").String(*v.VersionId); err != nil { return err } @@ -378,9 +352,9 @@ func awsRestjson1_serializeOpDocumentCreateCommentInput(v *CreateCommentInput, v object := value.Object() defer object.Close() - if v.NotifyCollaborators != nil { + if v.NotifyCollaborators { ok := object.Key("NotifyCollaborators") - ok.Boolean(*v.NotifyCollaborators) + ok.Boolean(v.NotifyCollaborators) } if v.ParentId != nil { @@ -468,20 +442,15 @@ func awsRestjson1_serializeOpHttpBindingsCreateCustomMetadataInput(v *CreateCust return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} - } if err := encoder.SetURI("ResourceId").String(*v.ResourceId); err != nil { return err } @@ -570,11 +539,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateFolderInput(v *CreateFolderInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } return nil @@ -659,20 +626,15 @@ func awsRestjson1_serializeOpHttpBindingsCreateLabelsInput(v *CreateLabelsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} - } if err := encoder.SetURI("ResourceId").String(*v.ResourceId); err != nil { return err } @@ -757,13 +719,10 @@ func awsRestjson1_serializeOpHttpBindingsCreateNotificationSubscriptionInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.OrganizationId == nil { + if v.OrganizationId == nil || len(*v.OrganizationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OrganizationId must not be empty")} } if v.OrganizationId != nil { - if len(*v.OrganizationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member OrganizationId must not be empty")} - } if err := encoder.SetURI("OrganizationId").String(*v.OrganizationId); err != nil { return err } @@ -856,11 +815,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateUserInput(v *CreateUserInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } return nil @@ -966,20 +923,15 @@ func awsRestjson1_serializeOpHttpBindingsDeactivateUserInput(v *DeactivateUserIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -1039,44 +991,33 @@ func awsRestjson1_serializeOpHttpBindingsDeleteCommentInput(v *DeleteCommentInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.CommentId == nil { + if v.CommentId == nil || len(*v.CommentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member CommentId must not be empty")} } if v.CommentId != nil { - if len(*v.CommentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CommentId must not be empty")} - } if err := encoder.SetURI("CommentId").String(*v.CommentId); err != nil { return err } } - if v.DocumentId == nil { + if v.DocumentId == nil || len(*v.DocumentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} } if v.DocumentId != nil { - if len(*v.DocumentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} - } if err := encoder.SetURI("DocumentId").String(*v.DocumentId); err != nil { return err } } - if v.VersionId == nil { + if v.VersionId == nil || len(*v.VersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VersionId must not be empty")} } if v.VersionId != nil { - if len(*v.VersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VersionId must not be empty")} - } if err := encoder.SetURI("VersionId").String(*v.VersionId); err != nil { return err } @@ -1136,33 +1077,25 @@ func awsRestjson1_serializeOpHttpBindingsDeleteCustomMetadataInput(v *DeleteCust return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.DeleteAll != nil { - encoder.SetQuery("deleteAll").Boolean(*v.DeleteAll) + if v.DeleteAll { + encoder.SetQuery("deleteAll").Boolean(v.DeleteAll) } if v.Keys != nil { for i := range v.Keys { - if v.Keys[i] == nil { - continue - } - encoder.AddQuery("keys").String(*v.Keys[i]) + encoder.AddQuery("keys").String(v.Keys[i]) } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} - } if err := encoder.SetURI("ResourceId").String(*v.ResourceId); err != nil { return err } @@ -1226,20 +1159,15 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDocumentInput(v *DeleteDocumentIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.DocumentId == nil { + if v.DocumentId == nil || len(*v.DocumentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} } if v.DocumentId != nil { - if len(*v.DocumentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} - } if err := encoder.SetURI("DocumentId").String(*v.DocumentId); err != nil { return err } @@ -1299,20 +1227,15 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFolderInput(v *DeleteFolderInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.FolderId == nil { + 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 len(*v.FolderId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FolderId must not be empty")} - } if err := encoder.SetURI("FolderId").String(*v.FolderId); err != nil { return err } @@ -1372,20 +1295,15 @@ func awsRestjson1_serializeOpHttpBindingsDeleteFolderContentsInput(v *DeleteFold return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.FolderId == nil { + 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 len(*v.FolderId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FolderId must not be empty")} - } if err := encoder.SetURI("FolderId").String(*v.FolderId); err != nil { return err } @@ -1445,33 +1363,25 @@ func awsRestjson1_serializeOpHttpBindingsDeleteLabelsInput(v *DeleteLabelsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.DeleteAll != nil { - encoder.SetQuery("deleteAll").Boolean(*v.DeleteAll) + if v.DeleteAll { + encoder.SetQuery("deleteAll").Boolean(v.DeleteAll) } if v.Labels != nil { for i := range v.Labels { - if v.Labels[i] == nil { - continue - } - encoder.AddQuery("labels").String(*v.Labels[i]) + encoder.AddQuery("labels").String(v.Labels[i]) } } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} - } if err := encoder.SetURI("ResourceId").String(*v.ResourceId); err != nil { return err } @@ -1531,25 +1441,19 @@ func awsRestjson1_serializeOpHttpBindingsDeleteNotificationSubscriptionInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.OrganizationId == nil { + if v.OrganizationId == nil || len(*v.OrganizationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OrganizationId must not be empty")} } if v.OrganizationId != nil { - if len(*v.OrganizationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member OrganizationId must not be empty")} - } if err := encoder.SetURI("OrganizationId").String(*v.OrganizationId); err != nil { return err } } - if v.SubscriptionId == nil { + if v.SubscriptionId == nil || len(*v.SubscriptionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionId must not be empty")} } if v.SubscriptionId != nil { - if len(*v.SubscriptionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member SubscriptionId must not be empty")} - } if err := encoder.SetURI("SubscriptionId").String(*v.SubscriptionId); err != nil { return err } @@ -1609,20 +1513,15 @@ func awsRestjson1_serializeOpHttpBindingsDeleteUserInput(v *DeleteUserInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -1686,19 +1585,17 @@ func awsRestjson1_serializeOpHttpBindingsDescribeActivitiesInput(v *DescribeActi encoder.SetQuery("activityTypes").String(*v.ActivityTypes) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } if v.EndTime != nil { encoder.SetQuery("endTime").String(smithytime.FormatDateTime(*v.EndTime)) } - if v.IncludeIndirectActivities != nil { - encoder.SetQuery("includeIndirectActivities").Boolean(*v.IncludeIndirectActivities) + if v.IncludeIndirectActivities { + encoder.SetQuery("includeIndirectActivities").Boolean(v.IncludeIndirectActivities) } if v.Limit != nil { @@ -1779,20 +1676,15 @@ func awsRestjson1_serializeOpHttpBindingsDescribeCommentsInput(v *DescribeCommen return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.DocumentId == nil { + if v.DocumentId == nil || len(*v.DocumentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} } if v.DocumentId != nil { - if len(*v.DocumentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} - } if err := encoder.SetURI("DocumentId").String(*v.DocumentId); err != nil { return err } @@ -1806,13 +1698,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeCommentsInput(v *DescribeCommen encoder.SetQuery("marker").String(*v.Marker) } - if v.VersionId == nil { + if v.VersionId == nil || len(*v.VersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VersionId must not be empty")} } if v.VersionId != nil { - if len(*v.VersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VersionId must not be empty")} - } if err := encoder.SetURI("VersionId").String(*v.VersionId); err != nil { return err } @@ -1872,20 +1761,15 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDocumentVersionsInput(v *Descri return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.DocumentId == nil { + if v.DocumentId == nil || len(*v.DocumentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} } if v.DocumentId != nil { - if len(*v.DocumentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} - } if err := encoder.SetURI("DocumentId").String(*v.DocumentId); err != nil { return err } @@ -1961,20 +1845,15 @@ func awsRestjson1_serializeOpHttpBindingsDescribeFolderContentsInput(v *Describe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.FolderId == nil { + 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 len(*v.FolderId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FolderId must not be empty")} - } if err := encoder.SetURI("FolderId").String(*v.FolderId); err != nil { return err } @@ -2058,11 +1937,9 @@ func awsRestjson1_serializeOpHttpBindingsDescribeGroupsInput(v *DescribeGroupsIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } if v.Limit != nil { @@ -2143,13 +2020,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeNotificationSubscriptionsInput( encoder.SetQuery("marker").String(*v.Marker) } - if v.OrganizationId == nil { + if v.OrganizationId == nil || len(*v.OrganizationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OrganizationId must not be empty")} } if v.OrganizationId != nil { - if len(*v.OrganizationId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member OrganizationId must not be empty")} - } if err := encoder.SetURI("OrganizationId").String(*v.OrganizationId); err != nil { return err } @@ -2209,11 +2083,9 @@ func awsRestjson1_serializeOpHttpBindingsDescribeResourcePermissionsInput(v *Des return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } if v.Limit != nil { @@ -2228,13 +2100,10 @@ func awsRestjson1_serializeOpHttpBindingsDescribeResourcePermissionsInput(v *Des encoder.SetQuery("principalId").String(*v.PrincipalId) } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} - } if err := encoder.SetURI("ResourceId").String(*v.ResourceId); err != nil { return err } @@ -2294,11 +2163,9 @@ func awsRestjson1_serializeOpHttpBindingsDescribeRootFoldersInput(v *DescribeRoo return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } if v.Limit != nil { @@ -2363,11 +2230,9 @@ func awsRestjson1_serializeOpHttpBindingsDescribeUsersInput(v *DescribeUsersInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } if v.Fields != nil { @@ -2460,11 +2325,9 @@ func awsRestjson1_serializeOpHttpBindingsGetCurrentUserInput(v *GetCurrentUserIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } return nil @@ -2521,27 +2384,22 @@ func awsRestjson1_serializeOpHttpBindingsGetDocumentInput(v *GetDocumentInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.DocumentId == nil { + if v.DocumentId == nil || len(*v.DocumentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} } if v.DocumentId != nil { - if len(*v.DocumentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} - } if err := encoder.SetURI("DocumentId").String(*v.DocumentId); err != nil { return err } } - if v.IncludeCustomMetadata != nil { - encoder.SetQuery("includeCustomMetadata").Boolean(*v.IncludeCustomMetadata) + if v.IncludeCustomMetadata { + encoder.SetQuery("includeCustomMetadata").Boolean(v.IncludeCustomMetadata) } return nil @@ -2598,20 +2456,15 @@ func awsRestjson1_serializeOpHttpBindingsGetDocumentPathInput(v *GetDocumentPath return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.DocumentId == nil { + if v.DocumentId == nil || len(*v.DocumentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} } if v.DocumentId != nil { - if len(*v.DocumentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} - } if err := encoder.SetURI("DocumentId").String(*v.DocumentId); err != nil { return err } @@ -2683,20 +2536,15 @@ func awsRestjson1_serializeOpHttpBindingsGetDocumentVersionInput(v *GetDocumentV return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.DocumentId == nil { + if v.DocumentId == nil || len(*v.DocumentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} } if v.DocumentId != nil { - if len(*v.DocumentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} - } if err := encoder.SetURI("DocumentId").String(*v.DocumentId); err != nil { return err } @@ -2706,17 +2554,14 @@ func awsRestjson1_serializeOpHttpBindingsGetDocumentVersionInput(v *GetDocumentV encoder.SetQuery("fields").String(*v.Fields) } - if v.IncludeCustomMetadata != nil { - encoder.SetQuery("includeCustomMetadata").Boolean(*v.IncludeCustomMetadata) + if v.IncludeCustomMetadata { + encoder.SetQuery("includeCustomMetadata").Boolean(v.IncludeCustomMetadata) } - if v.VersionId == nil { + if v.VersionId == nil || len(*v.VersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VersionId must not be empty")} } if v.VersionId != nil { - if len(*v.VersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VersionId must not be empty")} - } if err := encoder.SetURI("VersionId").String(*v.VersionId); err != nil { return err } @@ -2776,27 +2621,22 @@ func awsRestjson1_serializeOpHttpBindingsGetFolderInput(v *GetFolderInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.FolderId == nil { + 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 len(*v.FolderId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FolderId must not be empty")} - } if err := encoder.SetURI("FolderId").String(*v.FolderId); err != nil { return err } } - if v.IncludeCustomMetadata != nil { - encoder.SetQuery("includeCustomMetadata").Boolean(*v.IncludeCustomMetadata) + if v.IncludeCustomMetadata { + encoder.SetQuery("includeCustomMetadata").Boolean(v.IncludeCustomMetadata) } return nil @@ -2853,24 +2693,19 @@ func awsRestjson1_serializeOpHttpBindingsGetFolderPathInput(v *GetFolderPathInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } if v.Fields != nil { encoder.SetQuery("fields").String(*v.Fields) } - if v.FolderId == nil { + 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 len(*v.FolderId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FolderId must not be empty")} - } if err := encoder.SetURI("FolderId").String(*v.FolderId); err != nil { return err } @@ -2938,11 +2773,9 @@ func awsRestjson1_serializeOpHttpBindingsGetResourcesInput(v *GetResourcesInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } if len(v.CollectionType) > 0 { @@ -3026,11 +2859,9 @@ func awsRestjson1_serializeOpHttpBindingsInitiateDocumentVersionUploadInput(v *I return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } return nil @@ -3129,20 +2960,15 @@ func awsRestjson1_serializeOpHttpBindingsRemoveAllResourcePermissionsInput(v *Re return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} - } if err := encoder.SetURI("ResourceId").String(*v.ResourceId); err != nil { return err } @@ -3202,20 +3028,15 @@ func awsRestjson1_serializeOpHttpBindingsRemoveResourcePermissionInput(v *Remove return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.PrincipalId == nil { + 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 len(*v.PrincipalId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PrincipalId must not be empty")} - } if err := encoder.SetURI("PrincipalId").String(*v.PrincipalId); err != nil { return err } @@ -3225,13 +3046,10 @@ func awsRestjson1_serializeOpHttpBindingsRemoveResourcePermissionInput(v *Remove encoder.SetQuery("type").String(string(v.PrincipalType)) } - if v.ResourceId == nil { + if v.ResourceId == nil || len(*v.ResourceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} } if v.ResourceId != nil { - if len(*v.ResourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceId must not be empty")} - } if err := encoder.SetURI("ResourceId").String(*v.ResourceId); err != nil { return err } @@ -3302,20 +3120,15 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDocumentInput(v *UpdateDocumentIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.DocumentId == nil { + if v.DocumentId == nil || len(*v.DocumentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} } if v.DocumentId != nil { - if len(*v.DocumentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} - } if err := encoder.SetURI("DocumentId").String(*v.DocumentId); err != nil { return err } @@ -3408,32 +3221,24 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDocumentVersionInput(v *UpdateDoc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.DocumentId == nil { + if v.DocumentId == nil || len(*v.DocumentId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} } if v.DocumentId != nil { - if len(*v.DocumentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DocumentId must not be empty")} - } if err := encoder.SetURI("DocumentId").String(*v.DocumentId); err != nil { return err } } - if v.VersionId == nil { + if v.VersionId == nil || len(*v.VersionId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member VersionId must not be empty")} } if v.VersionId != nil { - if len(*v.VersionId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member VersionId must not be empty")} - } if err := encoder.SetURI("VersionId").String(*v.VersionId); err != nil { return err } @@ -3516,20 +3321,15 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFolderInput(v *UpdateFolderInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.FolderId == nil { + 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 len(*v.FolderId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FolderId must not be empty")} - } if err := encoder.SetURI("FolderId").String(*v.FolderId); err != nil { return err } @@ -3622,20 +3422,15 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUserInput(v *UpdateUserInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AuthenticationToken != nil { + if v.AuthenticationToken != nil && len(*v.AuthenticationToken) > 0 { locationName := "Authentication" - if len(*v.AuthenticationToken) > 0 { - encoder.SetHeader(locationName).String(*v.AuthenticationToken) - } + encoder.SetHeader(locationName).String(*v.AuthenticationToken) } - if v.UserId == nil { + if v.UserId == nil || len(*v.UserId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} } if v.UserId != nil { - if len(*v.UserId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserId must not be empty")} - } if err := encoder.SetURI("UserId").String(*v.UserId); err != nil { return err } @@ -3688,17 +3483,13 @@ func awsRestjson1_serializeOpDocumentUpdateUserInput(v *UpdateUserInput, value s return nil } -func awsRestjson1_serializeDocumentCustomMetadataMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCustomMetadataMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -3712,25 +3503,21 @@ func awsRestjson1_serializeDocumentNotificationOptions(v *types.NotificationOpti ok.String(*v.EmailMessage) } - if v.SendEmail != nil { + if v.SendEmail { ok := object.Key("SendEmail") - ok.Boolean(*v.SendEmail) + ok.Boolean(v.SendEmail) } return nil } -func awsRestjson1_serializeDocumentSharedLabels(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSharedLabels(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -3757,17 +3544,13 @@ func awsRestjson1_serializeDocumentSharePrincipal(v *types.SharePrincipal, value return nil } -func awsRestjson1_serializeDocumentSharePrincipalList(v []*types.SharePrincipal, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSharePrincipalList(v []types.SharePrincipal, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSharePrincipal(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSharePrincipal(&v[i], av); err != nil { return err } } diff --git a/service/workdocs/types/errors.go b/service/workdocs/types/errors.go index c3f42f0dd8c..13c22c78114 100644 --- a/service/workdocs/types/errors.go +++ b/service/workdocs/types/errors.go @@ -150,7 +150,7 @@ func (e *EntityAlreadyExistsException) ErrorFault() smithy.ErrorFault { return s type EntityNotExistsException struct { Message *string - EntityIds []*string + EntityIds []string } func (e *EntityNotExistsException) Error() string { diff --git a/service/workdocs/types/types.go b/service/workdocs/types/types.go index 47ebfd87d99..bb96a2509aa 100644 --- a/service/workdocs/types/types.go +++ b/service/workdocs/types/types.go @@ -20,7 +20,7 @@ type Activity struct { // results from a direct activity performed on a parent resource. For example, // sharing a parent folder (the direct activity) shares all of the subfolders and // documents within the parent folder (the indirect activity). - IsIndirectActivity *bool + IsIndirectActivity bool // The ID of the organization. OrganizationId *string @@ -112,7 +112,7 @@ type DocumentMetadata struct { Id *string // List of labels on the document. - Labels []*string + Labels []string // The latest version of the document. LatestVersionMetadata *DocumentVersionMetadata @@ -161,13 +161,13 @@ type DocumentVersionMetadata struct { Size *int64 // The source of the document. - Source map[string]*string + Source map[string]string // The status of the document. Status DocumentStatusType // The thumbnail of the document. - Thumbnail map[string]*string + Thumbnail map[string]string } // Describes a folder. @@ -183,7 +183,7 @@ type FolderMetadata struct { Id *string // List of labels on the folder. - Labels []*string + Labels []string // The size of the latest version of the folder metadata. LatestVersionSize *int64 @@ -225,17 +225,17 @@ type NotificationOptions struct { // Boolean value to indicate an email notification should be sent to the // receipients. - SendEmail *bool + SendEmail bool } // Describes the users or user groups. type Participants struct { // The list of user groups. - Groups []*GroupMetadata + Groups []GroupMetadata // The list of users. - Users []*UserMetadata + Users []UserMetadata } // Describes the permissions. @@ -255,7 +255,7 @@ type Principal struct { Id *string // The permission information for the resource. - Roles []*PermissionInfo + Roles []PermissionInfo // The type of resource. Type PrincipalType @@ -291,7 +291,7 @@ type ResourceMetadata struct { type ResourcePath struct { // The components of the resource path. - Components []*ResourcePathComponent + Components []ResourcePathComponent } // Describes the resource path. @@ -372,7 +372,7 @@ type Subscription struct { type UploadMetadata struct { // The signed headers. - SignedHeaders map[string]*string + SignedHeaders map[string]string // The URL of the upload. UploadUrl *string diff --git a/service/workdocs/validators.go b/service/workdocs/validators.go index d48fa563ffe..0405abd8a60 100644 --- a/service/workdocs/validators.go +++ b/service/workdocs/validators.go @@ -943,13 +943,13 @@ func validateSharePrincipal(v *types.SharePrincipal) error { } } -func validateSharePrincipalList(v []*types.SharePrincipal) error { +func validateSharePrincipalList(v []types.SharePrincipal) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SharePrincipalList"} for i := range v { - if err := validateSharePrincipal(v[i]); err != nil { + if err := validateSharePrincipal(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/worklink/api_op_CreateFleet.go b/service/worklink/api_op_CreateFleet.go index 484bb84ac3f..bc88dc8c811 100644 --- a/service/worklink/api_op_CreateFleet.go +++ b/service/worklink/api_op_CreateFleet.go @@ -43,7 +43,7 @@ type CreateFleetInput struct { OptimizeForEndUserLocation *bool // The tags to add to the resource. A tag is a key-value pair. - Tags map[string]*string + Tags map[string]string } type CreateFleetOutput struct { diff --git a/service/worklink/api_op_DescribeCompanyNetworkConfiguration.go b/service/worklink/api_op_DescribeCompanyNetworkConfiguration.go index 2c672b9567e..a8ab322af51 100644 --- a/service/worklink/api_op_DescribeCompanyNetworkConfiguration.go +++ b/service/worklink/api_op_DescribeCompanyNetworkConfiguration.go @@ -38,11 +38,11 @@ type DescribeCompanyNetworkConfigurationInput struct { type DescribeCompanyNetworkConfigurationOutput struct { // The security groups associated with access to the provided subnets. - SecurityGroupIds []*string + SecurityGroupIds []string // The subnets used for X-ENI connections from Amazon WorkLink rendering // containers. - SubnetIds []*string + SubnetIds []string // The VPC with connectivity to associated websites. VpcId *string diff --git a/service/worklink/api_op_DescribeFleetMetadata.go b/service/worklink/api_op_DescribeFleetMetadata.go index 48c6572377e..6573864e846 100644 --- a/service/worklink/api_op_DescribeFleetMetadata.go +++ b/service/worklink/api_op_DescribeFleetMetadata.go @@ -62,7 +62,7 @@ type DescribeFleetMetadataOutput struct { OptimizeForEndUserLocation *bool // The tags attached to the resource. A tag is a key-value pair. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/worklink/api_op_ListDevices.go b/service/worklink/api_op_ListDevices.go index 0763e521eea..1fc078cd2d3 100644 --- a/service/worklink/api_op_ListDevices.go +++ b/service/worklink/api_op_ListDevices.go @@ -45,7 +45,7 @@ type ListDevicesInput struct { type ListDevicesOutput struct { // Information about the devices. - Devices []*types.DeviceSummary + Devices []types.DeviceSummary // The pagination token used to retrieve the next page of results for this // operation. If there are no more pages, this value is null. diff --git a/service/worklink/api_op_ListDomains.go b/service/worklink/api_op_ListDomains.go index 79b4510ed41..a44e7ee8c7c 100644 --- a/service/worklink/api_op_ListDomains.go +++ b/service/worklink/api_op_ListDomains.go @@ -45,7 +45,7 @@ type ListDomainsInput struct { type ListDomainsOutput struct { // Information about the domains. - Domains []*types.DomainSummary + Domains []types.DomainSummary // The pagination token used to retrieve the next page of results for this // operation. If there are no more pages, this value is null. diff --git a/service/worklink/api_op_ListFleets.go b/service/worklink/api_op_ListFleets.go index 9081fd81162..47b5f8f58cc 100644 --- a/service/worklink/api_op_ListFleets.go +++ b/service/worklink/api_op_ListFleets.go @@ -40,7 +40,7 @@ type ListFleetsInput struct { type ListFleetsOutput struct { // The summary list of the fleets. - FleetSummaryList []*types.FleetSummary + FleetSummaryList []types.FleetSummary // The pagination token used to retrieve the next page of results for this // operation. If there are no more pages, this value is null. diff --git a/service/worklink/api_op_ListTagsForResource.go b/service/worklink/api_op_ListTagsForResource.go index 6b1683d96ed..738e3e86d0f 100644 --- a/service/worklink/api_op_ListTagsForResource.go +++ b/service/worklink/api_op_ListTagsForResource.go @@ -37,7 +37,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // The tags attached to the resource. A tag is a key-value pair. - Tags map[string]*string + Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/worklink/api_op_ListWebsiteAuthorizationProviders.go b/service/worklink/api_op_ListWebsiteAuthorizationProviders.go index 05bd936daeb..c099938b2fd 100644 --- a/service/worklink/api_op_ListWebsiteAuthorizationProviders.go +++ b/service/worklink/api_op_ListWebsiteAuthorizationProviders.go @@ -50,7 +50,7 @@ type ListWebsiteAuthorizationProvidersOutput struct { NextToken *string // The website authorization providers. - WebsiteAuthorizationProviders []*types.WebsiteAuthorizationProviderSummary + WebsiteAuthorizationProviders []types.WebsiteAuthorizationProviderSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/worklink/api_op_ListWebsiteCertificateAuthorities.go b/service/worklink/api_op_ListWebsiteCertificateAuthorities.go index d622edcbc48..5621649f290 100644 --- a/service/worklink/api_op_ListWebsiteCertificateAuthorities.go +++ b/service/worklink/api_op_ListWebsiteCertificateAuthorities.go @@ -50,7 +50,7 @@ type ListWebsiteCertificateAuthoritiesOutput struct { NextToken *string // Information about the certificates. - WebsiteCertificateAuthorities []*types.WebsiteCaSummary + WebsiteCertificateAuthorities []types.WebsiteCaSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/worklink/api_op_TagResource.go b/service/worklink/api_op_TagResource.go index 939ee94b5bc..49efeeff60a 100644 --- a/service/worklink/api_op_TagResource.go +++ b/service/worklink/api_op_TagResource.go @@ -38,7 +38,7 @@ type TagResourceInput struct { // The tags to add to the resource. A tag is a key-value pair. // // This member is required. - Tags map[string]*string + Tags map[string]string } type TagResourceOutput struct { diff --git a/service/worklink/api_op_UntagResource.go b/service/worklink/api_op_UntagResource.go index 629eab4bea2..8c4a2d688a7 100644 --- a/service/worklink/api_op_UntagResource.go +++ b/service/worklink/api_op_UntagResource.go @@ -36,7 +36,7 @@ type UntagResourceInput struct { // The list of tag keys to remove from the resource. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/worklink/api_op_UpdateCompanyNetworkConfiguration.go b/service/worklink/api_op_UpdateCompanyNetworkConfiguration.go index f0b25838bfd..a12618c1c10 100644 --- a/service/worklink/api_op_UpdateCompanyNetworkConfiguration.go +++ b/service/worklink/api_op_UpdateCompanyNetworkConfiguration.go @@ -36,13 +36,13 @@ type UpdateCompanyNetworkConfigurationInput struct { // The security groups associated with access to the provided subnets. // // This member is required. - SecurityGroupIds []*string + SecurityGroupIds []string // The subnets used for X-ENI connections from Amazon WorkLink rendering // containers. // // This member is required. - SubnetIds []*string + SubnetIds []string // The VPC with connectivity to associated websites. // diff --git a/service/worklink/deserializers.go b/service/worklink/deserializers.go index 055e904c4c9..affcea1db12 100644 --- a/service/worklink/deserializers.go +++ b/service/worklink/deserializers.go @@ -271,7 +271,7 @@ func awsRestjson1_deserializeOpDocumentAssociateWebsiteAuthorizationProviderOutp if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.AuthorizationProviderId = &jtv + sv.AuthorizationProviderId = ptr.String(jtv) } default: @@ -437,7 +437,7 @@ func awsRestjson1_deserializeOpDocumentAssociateWebsiteCertificateAuthorityOutpu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.WebsiteCaId = &jtv + sv.WebsiteCaId = ptr.String(jtv) } default: @@ -603,7 +603,7 @@ func awsRestjson1_deserializeOpDocumentCreateFleetOutput(v **CreateFleetOutput, if !ok { return fmt.Errorf("expected FleetArn to be of type string, got %T instead", value) } - sv.FleetArn = &jtv + sv.FleetArn = ptr.String(jtv) } default: @@ -861,7 +861,7 @@ func awsRestjson1_deserializeOpDocumentDescribeAuditStreamConfigurationOutput(v if !ok { return fmt.Errorf("expected AuditStreamArn to be of type string, got %T instead", value) } - sv.AuditStreamArn = &jtv + sv.AuditStreamArn = ptr.String(jtv) } default: @@ -1034,7 +1034,7 @@ func awsRestjson1_deserializeOpDocumentDescribeCompanyNetworkConfigurationOutput if !ok { return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.VpcId = &jtv + sv.VpcId = ptr.String(jtv) } default: @@ -1223,7 +1223,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDeviceOutput(v **DescribeDeviceOu if !ok { return fmt.Errorf("expected DeviceManufacturer to be of type string, got %T instead", value) } - sv.Manufacturer = &jtv + sv.Manufacturer = ptr.String(jtv) } case "Model": @@ -1232,7 +1232,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDeviceOutput(v **DescribeDeviceOu if !ok { return fmt.Errorf("expected DeviceModel to be of type string, got %T instead", value) } - sv.Model = &jtv + sv.Model = ptr.String(jtv) } case "OperatingSystem": @@ -1241,7 +1241,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDeviceOutput(v **DescribeDeviceOu if !ok { return fmt.Errorf("expected DeviceOperatingSystemName to be of type string, got %T instead", value) } - sv.OperatingSystem = &jtv + sv.OperatingSystem = ptr.String(jtv) } case "OperatingSystemVersion": @@ -1250,7 +1250,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDeviceOutput(v **DescribeDeviceOu if !ok { return fmt.Errorf("expected DeviceOperatingSystemVersion to be of type string, got %T instead", value) } - sv.OperatingSystemVersion = &jtv + sv.OperatingSystemVersion = ptr.String(jtv) } case "PatchLevel": @@ -1259,7 +1259,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDeviceOutput(v **DescribeDeviceOu if !ok { return fmt.Errorf("expected DevicePatchLevel to be of type string, got %T instead", value) } - sv.PatchLevel = &jtv + sv.PatchLevel = ptr.String(jtv) } case "Status": @@ -1277,7 +1277,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDeviceOutput(v **DescribeDeviceOu if !ok { return fmt.Errorf("expected Username to be of type string, got %T instead", value) } - sv.Username = &jtv + sv.Username = ptr.String(jtv) } default: @@ -1440,7 +1440,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDevicePolicyConfigurationOutput(v if !ok { return fmt.Errorf("expected Certificate to be of type string, got %T instead", value) } - sv.DeviceCaCertificate = &jtv + sv.DeviceCaCertificate = ptr.String(jtv) } default: @@ -1603,7 +1603,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDomainOutput(v **DescribeDomainOu if !ok { return fmt.Errorf("expected AcmCertificateArn to be of type string, got %T instead", value) } - sv.AcmCertificateArn = &jtv + sv.AcmCertificateArn = ptr.String(jtv) } case "CreatedTime": @@ -1625,7 +1625,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDomainOutput(v **DescribeDomainOu if !ok { return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "DomainName": @@ -1634,7 +1634,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDomainOutput(v **DescribeDomainOu if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "DomainStatus": @@ -1806,7 +1806,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFleetMetadataOutput(v **DescribeF if !ok { return fmt.Errorf("expected CompanyCode to be of type string, got %T instead", value) } - sv.CompanyCode = &jtv + sv.CompanyCode = ptr.String(jtv) } case "CreatedTime": @@ -1828,7 +1828,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFleetMetadataOutput(v **DescribeF if !ok { return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "FleetName": @@ -1837,7 +1837,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFleetMetadataOutput(v **DescribeF if !ok { return fmt.Errorf("expected FleetName to be of type string, got %T instead", value) } - sv.FleetName = &jtv + sv.FleetName = ptr.String(jtv) } case "FleetStatus": @@ -1868,7 +1868,7 @@ func awsRestjson1_deserializeOpDocumentDescribeFleetMetadataOutput(v **DescribeF if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.OptimizeForEndUserLocation = &jtv + sv.OptimizeForEndUserLocation = ptr.Bool(jtv) } case "Tags": @@ -2036,7 +2036,7 @@ func awsRestjson1_deserializeOpDocumentDescribeIdentityProviderConfigurationOutp if !ok { return fmt.Errorf("expected SamlMetadata to be of type string, got %T instead", value) } - sv.IdentityProviderSamlMetadata = &jtv + sv.IdentityProviderSamlMetadata = ptr.String(jtv) } case "IdentityProviderType": @@ -2054,7 +2054,7 @@ func awsRestjson1_deserializeOpDocumentDescribeIdentityProviderConfigurationOutp if !ok { return fmt.Errorf("expected SamlMetadata to be of type string, got %T instead", value) } - sv.ServiceProviderSamlMetadata = &jtv + sv.ServiceProviderSamlMetadata = ptr.String(jtv) } default: @@ -2217,7 +2217,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWebsiteCertificateAuthorityOutput if !ok { return fmt.Errorf("expected Certificate to be of type string, got %T instead", value) } - sv.Certificate = &jtv + sv.Certificate = ptr.String(jtv) } case "CreatedTime": @@ -2239,7 +2239,7 @@ func awsRestjson1_deserializeOpDocumentDescribeWebsiteCertificateAuthorityOutput if !ok { return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } default: @@ -2695,7 +2695,7 @@ func awsRestjson1_deserializeOpDocumentListDevicesOutput(v **ListDevicesOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -2863,7 +2863,7 @@ func awsRestjson1_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3028,7 +3028,7 @@ func awsRestjson1_deserializeOpDocumentListFleetsOutput(v **ListFleetsOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -3338,7 +3338,7 @@ func awsRestjson1_deserializeOpDocumentListWebsiteAuthorizationProvidersOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "WebsiteAuthorizationProviders": @@ -3503,7 +3503,7 @@ func awsRestjson1_deserializeOpDocumentListWebsiteCertificateAuthoritiesOutput(v if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "WebsiteCertificateAuthorities": @@ -4785,7 +4785,7 @@ func awsRestjson1_deserializeDocumentDeviceSummary(v **types.DeviceSummary, valu if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.DeviceId = &jtv + sv.DeviceId = ptr.String(jtv) } case "DeviceStatus": @@ -4806,7 +4806,7 @@ func awsRestjson1_deserializeDocumentDeviceSummary(v **types.DeviceSummary, valu return nil } -func awsRestjson1_deserializeDocumentDeviceSummaryList(v *[]*types.DeviceSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDeviceSummaryList(v *[]types.DeviceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4819,18 +4819,20 @@ func awsRestjson1_deserializeDocumentDeviceSummaryList(v *[]*types.DeviceSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DeviceSummary + var cv []types.DeviceSummary if *v == nil { - cv = []*types.DeviceSummary{} + cv = []types.DeviceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DeviceSummary - if err := awsRestjson1_deserializeDocumentDeviceSummary(&col, value); err != nil { + var col types.DeviceSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDeviceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4879,7 +4881,7 @@ func awsRestjson1_deserializeDocumentDomainSummary(v **types.DomainSummary, valu if !ok { return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "DomainName": @@ -4888,7 +4890,7 @@ func awsRestjson1_deserializeDocumentDomainSummary(v **types.DomainSummary, valu if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } case "DomainStatus": @@ -4909,7 +4911,7 @@ func awsRestjson1_deserializeDocumentDomainSummary(v **types.DomainSummary, valu return nil } -func awsRestjson1_deserializeDocumentDomainSummaryList(v *[]*types.DomainSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainSummaryList(v *[]types.DomainSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4922,18 +4924,20 @@ func awsRestjson1_deserializeDocumentDomainSummaryList(v *[]*types.DomainSummary return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.DomainSummary + var cv []types.DomainSummary if *v == nil { - cv = []*types.DomainSummary{} + cv = []types.DomainSummary{} } else { cv = *v } for _, value := range shape { - var col *types.DomainSummary - if err := awsRestjson1_deserializeDocumentDomainSummary(&col, value); err != nil { + var col types.DomainSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4969,7 +4973,7 @@ func awsRestjson1_deserializeDocumentFleetSummary(v **types.FleetSummary, value if !ok { return fmt.Errorf("expected CompanyCode to be of type string, got %T instead", value) } - sv.CompanyCode = &jtv + sv.CompanyCode = ptr.String(jtv) } case "CreatedTime": @@ -4991,7 +4995,7 @@ func awsRestjson1_deserializeDocumentFleetSummary(v **types.FleetSummary, value if !ok { return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "FleetArn": @@ -5000,7 +5004,7 @@ func awsRestjson1_deserializeDocumentFleetSummary(v **types.FleetSummary, value if !ok { return fmt.Errorf("expected FleetArn to be of type string, got %T instead", value) } - sv.FleetArn = &jtv + sv.FleetArn = ptr.String(jtv) } case "FleetName": @@ -5009,7 +5013,7 @@ func awsRestjson1_deserializeDocumentFleetSummary(v **types.FleetSummary, value if !ok { return fmt.Errorf("expected FleetName to be of type string, got %T instead", value) } - sv.FleetName = &jtv + sv.FleetName = ptr.String(jtv) } case "FleetStatus": @@ -5048,7 +5052,7 @@ func awsRestjson1_deserializeDocumentFleetSummary(v **types.FleetSummary, value return nil } -func awsRestjson1_deserializeDocumentFleetSummaryList(v *[]*types.FleetSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentFleetSummaryList(v *[]types.FleetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5061,18 +5065,20 @@ func awsRestjson1_deserializeDocumentFleetSummaryList(v *[]*types.FleetSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FleetSummary + var cv []types.FleetSummary if *v == nil { - cv = []*types.FleetSummary{} + cv = []types.FleetSummary{} } else { cv = *v } for _, value := range shape { - var col *types.FleetSummary - if err := awsRestjson1_deserializeDocumentFleetSummary(&col, value); err != nil { + var col types.FleetSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentFleetSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5108,7 +5114,7 @@ func awsRestjson1_deserializeDocumentInternalServerErrorException(v **types.Inte if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5148,7 +5154,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5188,7 +5194,7 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5228,7 +5234,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5240,7 +5246,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5253,21 +5259,21 @@ func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5276,7 +5282,7 @@ func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]*string, value interf return nil } -func awsRestjson1_deserializeDocumentSubnetIds(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentSubnetIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5289,21 +5295,21 @@ func awsRestjson1_deserializeDocumentSubnetIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -5312,7 +5318,7 @@ func awsRestjson1_deserializeDocumentSubnetIds(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5325,21 +5331,21 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]*string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + 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 + parsedVal = jtv } mv[key] = parsedVal @@ -5376,7 +5382,7 @@ func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyR if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5416,7 +5422,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5428,7 +5434,7 @@ func awsRestjson1_deserializeDocumentUnauthorizedException(v **types.Unauthorize return nil } -func awsRestjson1_deserializeDocumentWebsiteAuthorizationProvidersSummaryList(v *[]*types.WebsiteAuthorizationProviderSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentWebsiteAuthorizationProvidersSummaryList(v *[]types.WebsiteAuthorizationProviderSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5441,18 +5447,20 @@ func awsRestjson1_deserializeDocumentWebsiteAuthorizationProvidersSummaryList(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WebsiteAuthorizationProviderSummary + var cv []types.WebsiteAuthorizationProviderSummary if *v == nil { - cv = []*types.WebsiteAuthorizationProviderSummary{} + cv = []types.WebsiteAuthorizationProviderSummary{} } else { cv = *v } for _, value := range shape { - var col *types.WebsiteAuthorizationProviderSummary - if err := awsRestjson1_deserializeDocumentWebsiteAuthorizationProviderSummary(&col, value); err != nil { + var col types.WebsiteAuthorizationProviderSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentWebsiteAuthorizationProviderSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5488,7 +5496,7 @@ func awsRestjson1_deserializeDocumentWebsiteAuthorizationProviderSummary(v **typ if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.AuthorizationProviderId = &jtv + sv.AuthorizationProviderId = ptr.String(jtv) } case "AuthorizationProviderType": @@ -5519,7 +5527,7 @@ func awsRestjson1_deserializeDocumentWebsiteAuthorizationProviderSummary(v **typ if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DomainName = &jtv + sv.DomainName = ptr.String(jtv) } default: @@ -5572,7 +5580,7 @@ func awsRestjson1_deserializeDocumentWebsiteCaSummary(v **types.WebsiteCaSummary if !ok { return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "WebsiteCaId": @@ -5581,7 +5589,7 @@ func awsRestjson1_deserializeDocumentWebsiteCaSummary(v **types.WebsiteCaSummary if !ok { return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.WebsiteCaId = &jtv + sv.WebsiteCaId = ptr.String(jtv) } default: @@ -5593,7 +5601,7 @@ func awsRestjson1_deserializeDocumentWebsiteCaSummary(v **types.WebsiteCaSummary return nil } -func awsRestjson1_deserializeDocumentWebsiteCaSummaryList(v *[]*types.WebsiteCaSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentWebsiteCaSummaryList(v *[]types.WebsiteCaSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5606,18 +5614,20 @@ func awsRestjson1_deserializeDocumentWebsiteCaSummaryList(v *[]*types.WebsiteCaS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WebsiteCaSummary + var cv []types.WebsiteCaSummary if *v == nil { - cv = []*types.WebsiteCaSummary{} + cv = []types.WebsiteCaSummary{} } else { cv = *v } for _, value := range shape { - var col *types.WebsiteCaSummary - if err := awsRestjson1_deserializeDocumentWebsiteCaSummary(&col, value); err != nil { + var col types.WebsiteCaSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentWebsiteCaSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/worklink/go.mod b/service/worklink/go.mod index fc4f3daa383..ab270a46c5b 100644 --- a/service/worklink/go.mod +++ b/service/worklink/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/worklink go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/worklink/serializers.go b/service/worklink/serializers.go index 6d11ac2c296..2bc1e6352d7 100644 --- a/service/worklink/serializers.go +++ b/service/worklink/serializers.go @@ -1558,13 +1558,10 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2035,13 +2032,10 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2115,13 +2109,10 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil { + 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 len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} - } if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } @@ -2129,10 +2120,7 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu if v.TagKeys != nil { for i := range v.TagKeys { - if v.TagKeys[i] == nil { - continue - } - encoder.AddQuery("tagKeys").String(*v.TagKeys[i]) + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } @@ -2636,47 +2624,35 @@ func awsRestjson1_serializeOpDocumentUpdateIdentityProviderConfigurationInput(v return nil } -func awsRestjson1_serializeDocumentSecurityGroupIds(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentSubnetIds(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSubnetIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } diff --git a/service/worklink/types/types.go b/service/worklink/types/types.go index fb24f8b6757..add5af27731 100644 --- a/service/worklink/types/types.go +++ b/service/worklink/types/types.go @@ -63,7 +63,7 @@ type FleetSummary struct { LastUpdatedTime *time.Time // The tags attached to the resource. A tag is a key-value pair. - Tags map[string]*string + Tags map[string]string } // The summary of the website authorization provider. diff --git a/service/workmail/api_op_CreateOrganization.go b/service/workmail/api_op_CreateOrganization.go index 8b12c09e7a3..056b6fb6408 100644 --- a/service/workmail/api_op_CreateOrganization.go +++ b/service/workmail/api_op_CreateOrganization.go @@ -59,12 +59,12 @@ type CreateOrganizationInput struct { DirectoryId *string // The email domains to associate with the organization. - Domains []*types.Domain + Domains []types.Domain // When true, allows organization interoperability between Amazon WorkMail and // Microsoft Exchange. Can only be set to true if an AD Connector directory ID is // included in the request. - EnableInteroperability *bool + EnableInteroperability bool // The Amazon Resource Name (ARN) of a customer managed master key from AWS KMS. KmsKeyArn *string diff --git a/service/workmail/api_op_DeleteOrganization.go b/service/workmail/api_op_DeleteOrganization.go index 3cee1f59dd3..a039e6a3556 100644 --- a/service/workmail/api_op_DeleteOrganization.go +++ b/service/workmail/api_op_DeleteOrganization.go @@ -37,7 +37,7 @@ type DeleteOrganizationInput struct { // organization. // // This member is required. - DeleteDirectory *bool + DeleteDirectory bool // The organization ID. // diff --git a/service/workmail/api_op_DescribeMailboxExportJob.go b/service/workmail/api_op_DescribeMailboxExportJob.go index 369128f47fc..b64c134d6d6 100644 --- a/service/workmail/api_op_DescribeMailboxExportJob.go +++ b/service/workmail/api_op_DescribeMailboxExportJob.go @@ -56,7 +56,7 @@ type DescribeMailboxExportJobOutput struct { ErrorInfo *string // The estimated progress of the mailbox export job, in percentage points. - EstimatedProgress *int32 + EstimatedProgress int32 // The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service (AWS // KMS) key that encrypts the exported mailbox content. diff --git a/service/workmail/api_op_GetAccessControlEffect.go b/service/workmail/api_op_GetAccessControlEffect.go index 06fb28a3c23..e055e40463f 100644 --- a/service/workmail/api_op_GetAccessControlEffect.go +++ b/service/workmail/api_op_GetAccessControlEffect.go @@ -58,7 +58,7 @@ type GetAccessControlEffectOutput struct { Effect types.AccessControlRuleEffect // The rules that match the given parameters, resulting in an effect. - MatchedRules []*string + MatchedRules []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workmail/api_op_GetDefaultRetentionPolicy.go b/service/workmail/api_op_GetDefaultRetentionPolicy.go index eb7527d7c94..0e5496b4ddc 100644 --- a/service/workmail/api_op_GetDefaultRetentionPolicy.go +++ b/service/workmail/api_op_GetDefaultRetentionPolicy.go @@ -41,7 +41,7 @@ type GetDefaultRetentionPolicyOutput struct { Description *string // The retention policy folder configurations. - FolderConfigurations []*types.FolderConfiguration + FolderConfigurations []types.FolderConfiguration // The retention policy ID. Id *string diff --git a/service/workmail/api_op_GetMailboxDetails.go b/service/workmail/api_op_GetMailboxDetails.go index 8d9b10d155c..085ef8e7f74 100644 --- a/service/workmail/api_op_GetMailboxDetails.go +++ b/service/workmail/api_op_GetMailboxDetails.go @@ -46,7 +46,7 @@ type GetMailboxDetailsOutput struct { MailboxQuota *int32 // The current mailbox size, in MB, for the specified user. - MailboxSize *float64 + MailboxSize float64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workmail/api_op_ListAccessControlRules.go b/service/workmail/api_op_ListAccessControlRules.go index edfc3da74d9..a91edea29ba 100644 --- a/service/workmail/api_op_ListAccessControlRules.go +++ b/service/workmail/api_op_ListAccessControlRules.go @@ -38,7 +38,7 @@ type ListAccessControlRulesInput struct { type ListAccessControlRulesOutput struct { // The access control rules. - Rules []*types.AccessControlRule + Rules []types.AccessControlRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workmail/api_op_ListAliases.go b/service/workmail/api_op_ListAliases.go index 4d4ac5c130f..2eee01f20c5 100644 --- a/service/workmail/api_op_ListAliases.go +++ b/service/workmail/api_op_ListAliases.go @@ -49,7 +49,7 @@ type ListAliasesInput struct { type ListAliasesOutput struct { // The entity's paginated aliases. - Aliases []*string + Aliases []string // The token to use to retrieve the next page of results. The value is "null" when // there are no more results to return. diff --git a/service/workmail/api_op_ListGroupMembers.go b/service/workmail/api_op_ListGroupMembers.go index f5cfd6643e0..771db2da783 100644 --- a/service/workmail/api_op_ListGroupMembers.go +++ b/service/workmail/api_op_ListGroupMembers.go @@ -52,7 +52,7 @@ type ListGroupMembersInput struct { type ListGroupMembersOutput struct { // The members associated to the group. - Members []*types.Member + Members []types.Member // The token to use to retrieve the next page of results. The first call does not // contain any tokens. diff --git a/service/workmail/api_op_ListGroups.go b/service/workmail/api_op_ListGroups.go index 2e194f67c65..0f90aa38f70 100644 --- a/service/workmail/api_op_ListGroups.go +++ b/service/workmail/api_op_ListGroups.go @@ -45,7 +45,7 @@ type ListGroupsInput struct { type ListGroupsOutput struct { // The overview of groups for an organization. - Groups []*types.Group + Groups []types.Group // The token to use to retrieve the next page of results. The value is "null" when // there are no more results to return. diff --git a/service/workmail/api_op_ListMailboxExportJobs.go b/service/workmail/api_op_ListMailboxExportJobs.go index 8827e66265f..f7cb5193ed6 100644 --- a/service/workmail/api_op_ListMailboxExportJobs.go +++ b/service/workmail/api_op_ListMailboxExportJobs.go @@ -45,7 +45,7 @@ type ListMailboxExportJobsInput struct { type ListMailboxExportJobsOutput struct { // The mailbox export job details. - Jobs []*types.MailboxExportJob + Jobs []types.MailboxExportJob // The token to use to retrieve the next page of results. NextToken *string diff --git a/service/workmail/api_op_ListMailboxPermissions.go b/service/workmail/api_op_ListMailboxPermissions.go index ca9795986e0..d97ae616bc5 100644 --- a/service/workmail/api_op_ListMailboxPermissions.go +++ b/service/workmail/api_op_ListMailboxPermissions.go @@ -57,7 +57,7 @@ type ListMailboxPermissionsOutput struct { NextToken *string // One page of the user, group, or resource mailbox permissions. - Permissions []*types.Permission + Permissions []types.Permission // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workmail/api_op_ListOrganizations.go b/service/workmail/api_op_ListOrganizations.go index 4720b8a7cc4..53c1af2c798 100644 --- a/service/workmail/api_op_ListOrganizations.go +++ b/service/workmail/api_op_ListOrganizations.go @@ -45,7 +45,7 @@ type ListOrganizationsOutput struct { // The overview of owned organizations presented as a list of organization // summaries. - OrganizationSummaries []*types.OrganizationSummary + OrganizationSummaries []types.OrganizationSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workmail/api_op_ListResourceDelegates.go b/service/workmail/api_op_ListResourceDelegates.go index 1352b2e4e2d..00ab7537d02 100644 --- a/service/workmail/api_op_ListResourceDelegates.go +++ b/service/workmail/api_op_ListResourceDelegates.go @@ -51,7 +51,7 @@ type ListResourceDelegatesInput struct { type ListResourceDelegatesOutput struct { // One page of the resource's delegates. - Delegates []*types.Delegate + Delegates []types.Delegate // The token used to paginate through the delegates associated with a resource. // While results are still available, it has an associated value. When the last diff --git a/service/workmail/api_op_ListResources.go b/service/workmail/api_op_ListResources.go index b60b41318ab..90782762f2d 100644 --- a/service/workmail/api_op_ListResources.go +++ b/service/workmail/api_op_ListResources.go @@ -50,7 +50,7 @@ type ListResourcesOutput struct { NextToken *string // One page of the organization's resource representation. - Resources []*types.Resource + Resources []types.Resource // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workmail/api_op_ListTagsForResource.go b/service/workmail/api_op_ListTagsForResource.go index 75462dd4a29..1e09ac85482 100644 --- a/service/workmail/api_op_ListTagsForResource.go +++ b/service/workmail/api_op_ListTagsForResource.go @@ -38,7 +38,7 @@ type ListTagsForResourceInput struct { type ListTagsForResourceOutput struct { // A list of tag key-value pairs. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workmail/api_op_ListUsers.go b/service/workmail/api_op_ListUsers.go index e37c18fbd7a..236a4f23bbd 100644 --- a/service/workmail/api_op_ListUsers.go +++ b/service/workmail/api_op_ListUsers.go @@ -49,7 +49,7 @@ type ListUsersOutput struct { NextToken *string // The overview of users for an organization. - Users []*types.User + Users []types.User // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workmail/api_op_PutAccessControlRule.go b/service/workmail/api_op_PutAccessControlRule.go index 1e9cf5bf759..b1315a9591f 100644 --- a/service/workmail/api_op_PutAccessControlRule.go +++ b/service/workmail/api_op_PutAccessControlRule.go @@ -54,23 +54,23 @@ type PutAccessControlRuleInput struct { // Access protocol actions to include in the rule. Valid values include ActiveSync, // AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail. - Actions []*string + Actions []string // IPv4 CIDR ranges to include in the rule. - IpRanges []*string + IpRanges []string // Access protocol actions to exclude from the rule. Valid values include // ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail. - NotActions []*string + NotActions []string // IPv4 CIDR ranges to exclude from the rule. - NotIpRanges []*string + NotIpRanges []string // User IDs to exclude from the rule. - NotUserIds []*string + NotUserIds []string // User IDs to include in the rule. - UserIds []*string + UserIds []string } type PutAccessControlRuleOutput struct { diff --git a/service/workmail/api_op_PutRetentionPolicy.go b/service/workmail/api_op_PutRetentionPolicy.go index 8f367577195..bf20d84f96e 100644 --- a/service/workmail/api_op_PutRetentionPolicy.go +++ b/service/workmail/api_op_PutRetentionPolicy.go @@ -32,7 +32,7 @@ type PutRetentionPolicyInput struct { // The retention policy folder configurations. // // This member is required. - FolderConfigurations []*types.FolderConfiguration + FolderConfigurations []types.FolderConfiguration // The retention policy name. // diff --git a/service/workmail/api_op_TagResource.go b/service/workmail/api_op_TagResource.go index a588f33530f..15379b38627 100644 --- a/service/workmail/api_op_TagResource.go +++ b/service/workmail/api_op_TagResource.go @@ -38,7 +38,7 @@ type TagResourceInput struct { // The tag key-value pairs. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/workmail/api_op_UntagResource.go b/service/workmail/api_op_UntagResource.go index 3b125c4a31f..bf4d0ddb2d2 100644 --- a/service/workmail/api_op_UntagResource.go +++ b/service/workmail/api_op_UntagResource.go @@ -37,7 +37,7 @@ type UntagResourceInput struct { // The tag keys. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/workmail/deserializers.go b/service/workmail/deserializers.go index 9d14ab9a80c..2e9b62b86f3 100644 --- a/service/workmail/deserializers.go +++ b/service/workmail/deserializers.go @@ -6799,7 +6799,7 @@ func awsAwsjson11_deserializeDocumentAccessControlRule(v **types.AccessControlRu if !ok { return fmt.Errorf("expected AccessControlRuleDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "Effect": @@ -6822,7 +6822,7 @@ func awsAwsjson11_deserializeDocumentAccessControlRule(v **types.AccessControlRu if !ok { return fmt.Errorf("expected AccessControlRuleName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "NotActions": @@ -6854,7 +6854,7 @@ func awsAwsjson11_deserializeDocumentAccessControlRule(v **types.AccessControlRu return nil } -func awsAwsjson11_deserializeDocumentAccessControlRuleNameList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccessControlRuleNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6867,21 +6867,21 @@ func awsAwsjson11_deserializeDocumentAccessControlRuleNameList(v *[]*string, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AccessControlRuleName to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6890,7 +6890,7 @@ func awsAwsjson11_deserializeDocumentAccessControlRuleNameList(v *[]*string, val return nil } -func awsAwsjson11_deserializeDocumentAccessControlRulesList(v *[]*types.AccessControlRule, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccessControlRulesList(v *[]types.AccessControlRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6903,18 +6903,20 @@ func awsAwsjson11_deserializeDocumentAccessControlRulesList(v *[]*types.AccessCo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AccessControlRule + var cv []types.AccessControlRule if *v == nil { - cv = []*types.AccessControlRule{} + cv = []types.AccessControlRule{} } else { cv = *v } for _, value := range shape { - var col *types.AccessControlRule - if err := awsAwsjson11_deserializeDocumentAccessControlRule(&col, value); err != nil { + var col types.AccessControlRule + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAccessControlRule(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6922,7 +6924,7 @@ func awsAwsjson11_deserializeDocumentAccessControlRulesList(v *[]*types.AccessCo return nil } -func awsAwsjson11_deserializeDocumentActionsList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentActionsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6935,21 +6937,21 @@ func awsAwsjson11_deserializeDocumentActionsList(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AccessControlRuleAction to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -6958,7 +6960,7 @@ func awsAwsjson11_deserializeDocumentActionsList(v *[]*string, value interface{} return nil } -func awsAwsjson11_deserializeDocumentAliases(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentAliases(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6971,21 +6973,21 @@ func awsAwsjson11_deserializeDocumentAliases(v *[]*string, value interface{}) er return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7022,7 +7024,7 @@ func awsAwsjson11_deserializeDocumentBookingOptions(v **types.BookingOptions, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoAcceptRequests = &jtv + sv.AutoAcceptRequests = jtv } case "AutoDeclineConflictingRequests": @@ -7031,7 +7033,7 @@ func awsAwsjson11_deserializeDocumentBookingOptions(v **types.BookingOptions, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoDeclineConflictingRequests = &jtv + sv.AutoDeclineConflictingRequests = jtv } case "AutoDeclineRecurringRequests": @@ -7040,7 +7042,7 @@ func awsAwsjson11_deserializeDocumentBookingOptions(v **types.BookingOptions, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.AutoDeclineRecurringRequests = &jtv + sv.AutoDeclineRecurringRequests = jtv } default: @@ -7080,7 +7082,7 @@ func awsAwsjson11_deserializeDocumentDelegate(v **types.Delegate, value interfac if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Type": @@ -7129,7 +7131,7 @@ func awsAwsjson11_deserializeDocumentDirectoryInUseException(v **types.Directory if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7169,7 +7171,7 @@ func awsAwsjson11_deserializeDocumentDirectoryServiceAuthenticationFailedExcepti if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7209,7 +7211,7 @@ func awsAwsjson11_deserializeDocumentDirectoryUnavailableException(v **types.Dir if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7249,7 +7251,7 @@ func awsAwsjson11_deserializeDocumentEmailAddressInUseException(v **types.EmailA if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7289,7 +7291,7 @@ func awsAwsjson11_deserializeDocumentEntityAlreadyRegisteredException(v **types. if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7329,7 +7331,7 @@ func awsAwsjson11_deserializeDocumentEntityNotFoundException(v **types.EntityNot if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7369,7 +7371,7 @@ func awsAwsjson11_deserializeDocumentEntityStateException(v **types.EntityStateE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7443,7 +7445,7 @@ func awsAwsjson11_deserializeDocumentFolderConfiguration(v **types.FolderConfigu return nil } -func awsAwsjson11_deserializeDocumentFolderConfigurations(v *[]*types.FolderConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentFolderConfigurations(v *[]types.FolderConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7456,18 +7458,20 @@ func awsAwsjson11_deserializeDocumentFolderConfigurations(v *[]*types.FolderConf return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FolderConfiguration + var cv []types.FolderConfiguration if *v == nil { - cv = []*types.FolderConfiguration{} + cv = []types.FolderConfiguration{} } else { cv = *v } for _, value := range shape { - var col *types.FolderConfiguration - if err := awsAwsjson11_deserializeDocumentFolderConfiguration(&col, value); err != nil { + var col types.FolderConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFolderConfiguration(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7516,7 +7520,7 @@ func awsAwsjson11_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "EnabledDate": @@ -7538,7 +7542,7 @@ func awsAwsjson11_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected WorkMailIdentifier to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -7547,7 +7551,7 @@ func awsAwsjson11_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected GroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -7568,7 +7572,7 @@ func awsAwsjson11_deserializeDocumentGroup(v **types.Group, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentGroups(v *[]*types.Group, value interface{}) error { +func awsAwsjson11_deserializeDocumentGroups(v *[]types.Group, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7581,18 +7585,20 @@ func awsAwsjson11_deserializeDocumentGroups(v *[]*types.Group, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Group + var cv []types.Group if *v == nil { - cv = []*types.Group{} + cv = []types.Group{} } else { cv = *v } for _, value := range shape { - var col *types.Group - if err := awsAwsjson11_deserializeDocumentGroup(&col, value); err != nil { + var col types.Group + destAddr := &col + if err := awsAwsjson11_deserializeDocumentGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7628,7 +7634,7 @@ func awsAwsjson11_deserializeDocumentInvalidConfigurationException(v **types.Inv if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7668,7 +7674,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterException(v **types.Invalid if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7708,7 +7714,7 @@ func awsAwsjson11_deserializeDocumentInvalidPasswordException(v **types.InvalidP if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7720,7 +7726,7 @@ func awsAwsjson11_deserializeDocumentInvalidPasswordException(v **types.InvalidP return nil } -func awsAwsjson11_deserializeDocumentIpRangeList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIpRangeList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7733,21 +7739,21 @@ func awsAwsjson11_deserializeDocumentIpRangeList(v *[]*string, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IpRange to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7756,7 +7762,7 @@ func awsAwsjson11_deserializeDocumentIpRangeList(v *[]*string, value interface{} return nil } -func awsAwsjson11_deserializeDocumentJobs(v *[]*types.MailboxExportJob, value interface{}) error { +func awsAwsjson11_deserializeDocumentJobs(v *[]types.MailboxExportJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7769,18 +7775,20 @@ func awsAwsjson11_deserializeDocumentJobs(v *[]*types.MailboxExportJob, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.MailboxExportJob + var cv []types.MailboxExportJob if *v == nil { - cv = []*types.MailboxExportJob{} + cv = []types.MailboxExportJob{} } else { cv = *v } for _, value := range shape { - var col *types.MailboxExportJob - if err := awsAwsjson11_deserializeDocumentMailboxExportJob(&col, value); err != nil { + var col types.MailboxExportJob + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMailboxExportJob(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7816,7 +7824,7 @@ func awsAwsjson11_deserializeDocumentLimitExceededException(v **types.LimitExcee if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7856,7 +7864,7 @@ func awsAwsjson11_deserializeDocumentMailboxExportJob(v **types.MailboxExportJob if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EndTime": @@ -7878,7 +7886,7 @@ func awsAwsjson11_deserializeDocumentMailboxExportJob(v **types.MailboxExportJob if !ok { return fmt.Errorf("expected WorkMailIdentifier to be of type string, got %T instead", value) } - sv.EntityId = &jtv + sv.EntityId = ptr.String(jtv) } case "EstimatedProgress": @@ -7891,7 +7899,7 @@ func awsAwsjson11_deserializeDocumentMailboxExportJob(v **types.MailboxExportJob if err != nil { return err } - sv.EstimatedProgress = ptr.Int32(int32(i64)) + sv.EstimatedProgress = int32(i64) } case "JobId": @@ -7900,7 +7908,7 @@ func awsAwsjson11_deserializeDocumentMailboxExportJob(v **types.MailboxExportJob if !ok { return fmt.Errorf("expected MailboxExportJobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } case "S3BucketName": @@ -7909,7 +7917,7 @@ func awsAwsjson11_deserializeDocumentMailboxExportJob(v **types.MailboxExportJob if !ok { return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "S3Path": @@ -7918,7 +7926,7 @@ func awsAwsjson11_deserializeDocumentMailboxExportJob(v **types.MailboxExportJob if !ok { return fmt.Errorf("expected S3ObjectKey to be of type string, got %T instead", value) } - sv.S3Path = &jtv + sv.S3Path = ptr.String(jtv) } case "StartTime": @@ -7980,7 +7988,7 @@ func awsAwsjson11_deserializeDocumentMailDomainNotFoundException(v **types.MailD if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8020,7 +8028,7 @@ func awsAwsjson11_deserializeDocumentMailDomainStateException(v **types.MailDoma if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8086,7 +8094,7 @@ func awsAwsjson11_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -8095,7 +8103,7 @@ func awsAwsjson11_deserializeDocumentMember(v **types.Member, value interface{}) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -8125,7 +8133,7 @@ func awsAwsjson11_deserializeDocumentMember(v **types.Member, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentMembers(v *[]*types.Member, value interface{}) error { +func awsAwsjson11_deserializeDocumentMembers(v *[]types.Member, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8138,18 +8146,20 @@ func awsAwsjson11_deserializeDocumentMembers(v *[]*types.Member, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Member + var cv []types.Member if *v == nil { - cv = []*types.Member{} + cv = []types.Member{} } else { cv = *v } for _, value := range shape { - var col *types.Member - if err := awsAwsjson11_deserializeDocumentMember(&col, value); err != nil { + var col types.Member + destAddr := &col + if err := awsAwsjson11_deserializeDocumentMember(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8185,7 +8195,7 @@ func awsAwsjson11_deserializeDocumentNameAvailabilityException(v **types.NameAva if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8225,7 +8235,7 @@ func awsAwsjson11_deserializeDocumentOrganizationNotFoundException(v **types.Org if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8265,7 +8275,7 @@ func awsAwsjson11_deserializeDocumentOrganizationStateException(v **types.Organi if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8277,7 +8287,7 @@ func awsAwsjson11_deserializeDocumentOrganizationStateException(v **types.Organi return nil } -func awsAwsjson11_deserializeDocumentOrganizationSummaries(v *[]*types.OrganizationSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentOrganizationSummaries(v *[]types.OrganizationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8290,18 +8300,20 @@ func awsAwsjson11_deserializeDocumentOrganizationSummaries(v *[]*types.Organizat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.OrganizationSummary + var cv []types.OrganizationSummary if *v == nil { - cv = []*types.OrganizationSummary{} + cv = []types.OrganizationSummary{} } else { cv = *v } for _, value := range shape { - var col *types.OrganizationSummary - if err := awsAwsjson11_deserializeDocumentOrganizationSummary(&col, value); err != nil { + var col types.OrganizationSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOrganizationSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8337,7 +8349,7 @@ func awsAwsjson11_deserializeDocumentOrganizationSummary(v **types.OrganizationS if !ok { return fmt.Errorf("expected OrganizationName to be of type string, got %T instead", value) } - sv.Alias = &jtv + sv.Alias = ptr.String(jtv) } case "DefaultMailDomain": @@ -8346,7 +8358,7 @@ func awsAwsjson11_deserializeDocumentOrganizationSummary(v **types.OrganizationS if !ok { return fmt.Errorf("expected DomainName to be of type string, got %T instead", value) } - sv.DefaultMailDomain = &jtv + sv.DefaultMailDomain = ptr.String(jtv) } case "ErrorMessage": @@ -8355,7 +8367,7 @@ func awsAwsjson11_deserializeDocumentOrganizationSummary(v **types.OrganizationS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "OrganizationId": @@ -8364,7 +8376,7 @@ func awsAwsjson11_deserializeDocumentOrganizationSummary(v **types.OrganizationS if !ok { return fmt.Errorf("expected OrganizationId to be of type string, got %T instead", value) } - sv.OrganizationId = &jtv + sv.OrganizationId = ptr.String(jtv) } case "State": @@ -8373,7 +8385,7 @@ func awsAwsjson11_deserializeDocumentOrganizationSummary(v **types.OrganizationS if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } default: @@ -8413,7 +8425,7 @@ func awsAwsjson11_deserializeDocumentPermission(v **types.Permission, value inte if !ok { return fmt.Errorf("expected WorkMailIdentifier to be of type string, got %T instead", value) } - sv.GranteeId = &jtv + sv.GranteeId = ptr.String(jtv) } case "GranteeType": @@ -8439,7 +8451,7 @@ func awsAwsjson11_deserializeDocumentPermission(v **types.Permission, value inte return nil } -func awsAwsjson11_deserializeDocumentPermissions(v *[]*types.Permission, value interface{}) error { +func awsAwsjson11_deserializeDocumentPermissions(v *[]types.Permission, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8452,18 +8464,20 @@ func awsAwsjson11_deserializeDocumentPermissions(v *[]*types.Permission, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Permission + var cv []types.Permission if *v == nil { - cv = []*types.Permission{} + cv = []types.Permission{} } else { cv = *v } for _, value := range shape { - var col *types.Permission - if err := awsAwsjson11_deserializeDocumentPermission(&col, value); err != nil { + var col types.Permission + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPermission(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8535,7 +8549,7 @@ func awsAwsjson11_deserializeDocumentReservedNameException(v **types.ReservedNam if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8588,7 +8602,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "EnabledDate": @@ -8610,7 +8624,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected WorkMailIdentifier to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -8619,7 +8633,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -8649,7 +8663,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac return nil } -func awsAwsjson11_deserializeDocumentResourceDelegates(v *[]*types.Delegate, value interface{}) error { +func awsAwsjson11_deserializeDocumentResourceDelegates(v *[]types.Delegate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8662,18 +8676,20 @@ func awsAwsjson11_deserializeDocumentResourceDelegates(v *[]*types.Delegate, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Delegate + var cv []types.Delegate if *v == nil { - cv = []*types.Delegate{} + cv = []types.Delegate{} } else { cv = *v } for _, value := range shape { - var col *types.Delegate - if err := awsAwsjson11_deserializeDocumentDelegate(&col, value); err != nil { + var col types.Delegate + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDelegate(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8709,7 +8725,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8721,7 +8737,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsAwsjson11_deserializeDocumentResources(v *[]*types.Resource, value interface{}) error { +func awsAwsjson11_deserializeDocumentResources(v *[]types.Resource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8734,18 +8750,20 @@ func awsAwsjson11_deserializeDocumentResources(v *[]*types.Resource, value inter return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Resource + var cv []types.Resource if *v == nil { - cv = []*types.Resource{} + cv = []types.Resource{} } else { cv = *v } for _, value := range shape { - var col *types.Resource - if err := awsAwsjson11_deserializeDocumentResource(&col, value); err != nil { + var col types.Resource + destAddr := &col + if err := awsAwsjson11_deserializeDocumentResource(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8781,7 +8799,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -8790,7 +8808,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8802,7 +8820,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8815,18 +8833,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8862,7 +8882,7 @@ func awsAwsjson11_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8902,7 +8922,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedOperationException(v **types.Uns if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8955,7 +8975,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "Email": @@ -8964,7 +8984,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "EnabledDate": @@ -8986,7 +9006,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected WorkMailIdentifier to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -8995,7 +9015,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -9025,7 +9045,7 @@ func awsAwsjson11_deserializeDocumentUser(v **types.User, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentUserIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentUserIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9038,21 +9058,21 @@ func awsAwsjson11_deserializeDocumentUserIdList(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected WorkMailIdentifier to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -9061,7 +9081,7 @@ func awsAwsjson11_deserializeDocumentUserIdList(v *[]*string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentUsers(v *[]*types.User, value interface{}) error { +func awsAwsjson11_deserializeDocumentUsers(v *[]types.User, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9074,18 +9094,20 @@ func awsAwsjson11_deserializeDocumentUsers(v *[]*types.User, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.User + var cv []types.User if *v == nil { - cv = []*types.User{} + cv = []types.User{} } else { cv = *v } for _, value := range shape { - var col *types.User - if err := awsAwsjson11_deserializeDocumentUser(&col, value); err != nil { + var col types.User + destAddr := &col + if err := awsAwsjson11_deserializeDocumentUser(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9245,7 +9267,7 @@ func awsAwsjson11_deserializeOpDocumentCreateGroupOutput(v **CreateGroupOutput, if !ok { return fmt.Errorf("expected WorkMailIdentifier to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } default: @@ -9285,7 +9307,7 @@ func awsAwsjson11_deserializeOpDocumentCreateOrganizationOutput(v **CreateOrgani if !ok { return fmt.Errorf("expected OrganizationId to be of type string, got %T instead", value) } - sv.OrganizationId = &jtv + sv.OrganizationId = ptr.String(jtv) } default: @@ -9325,7 +9347,7 @@ func awsAwsjson11_deserializeOpDocumentCreateResourceOutput(v **CreateResourceOu if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } default: @@ -9365,7 +9387,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUserOutput(v **CreateUserOutput, va if !ok { return fmt.Errorf("expected WorkMailIdentifier to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } default: @@ -9529,7 +9551,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteOrganizationOutput(v **DeleteOrgani if !ok { return fmt.Errorf("expected OrganizationId to be of type string, got %T instead", value) } - sv.OrganizationId = &jtv + sv.OrganizationId = ptr.String(jtv) } case "State": @@ -9538,7 +9560,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteOrganizationOutput(v **DeleteOrgani if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } default: @@ -9715,7 +9737,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGroupOutput(v **DescribeGroupOutp if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "EnabledDate": @@ -9737,7 +9759,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGroupOutput(v **DescribeGroupOutp if !ok { return fmt.Errorf("expected WorkMailIdentifier to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } case "Name": @@ -9746,7 +9768,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeGroupOutput(v **DescribeGroupOutp if !ok { return fmt.Errorf("expected GroupName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -9795,7 +9817,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMailboxExportJobOutput(v **Descri if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "EndTime": @@ -9817,7 +9839,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMailboxExportJobOutput(v **Descri if !ok { return fmt.Errorf("expected WorkMailIdentifier to be of type string, got %T instead", value) } - sv.EntityId = &jtv + sv.EntityId = ptr.String(jtv) } case "ErrorInfo": @@ -9826,7 +9848,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMailboxExportJobOutput(v **Descri if !ok { return fmt.Errorf("expected MailboxExportErrorInfo to be of type string, got %T instead", value) } - sv.ErrorInfo = &jtv + sv.ErrorInfo = ptr.String(jtv) } case "EstimatedProgress": @@ -9839,7 +9861,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMailboxExportJobOutput(v **Descri if err != nil { return err } - sv.EstimatedProgress = ptr.Int32(int32(i64)) + sv.EstimatedProgress = int32(i64) } case "KmsKeyArn": @@ -9848,7 +9870,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMailboxExportJobOutput(v **Descri if !ok { return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) } - sv.KmsKeyArn = &jtv + sv.KmsKeyArn = ptr.String(jtv) } case "RoleArn": @@ -9857,7 +9879,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMailboxExportJobOutput(v **Descri if !ok { return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = &jtv + sv.RoleArn = ptr.String(jtv) } case "S3BucketName": @@ -9866,7 +9888,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMailboxExportJobOutput(v **Descri if !ok { return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) } - sv.S3BucketName = &jtv + sv.S3BucketName = ptr.String(jtv) } case "S3Path": @@ -9875,7 +9897,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMailboxExportJobOutput(v **Descri if !ok { return fmt.Errorf("expected S3ObjectKey to be of type string, got %T instead", value) } - sv.S3Path = &jtv + sv.S3Path = ptr.String(jtv) } case "S3Prefix": @@ -9884,7 +9906,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeMailboxExportJobOutput(v **Descri if !ok { return fmt.Errorf("expected S3ObjectKey to be of type string, got %T instead", value) } - sv.S3Prefix = &jtv + sv.S3Prefix = ptr.String(jtv) } case "StartTime": @@ -9946,7 +9968,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOrganizationOutput(v **DescribeOr if !ok { return fmt.Errorf("expected OrganizationName to be of type string, got %T instead", value) } - sv.Alias = &jtv + sv.Alias = ptr.String(jtv) } case "ARN": @@ -9955,7 +9977,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOrganizationOutput(v **DescribeOr if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } case "CompletedDate": @@ -9977,7 +9999,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOrganizationOutput(v **DescribeOr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DefaultMailDomain = &jtv + sv.DefaultMailDomain = ptr.String(jtv) } case "DirectoryId": @@ -9986,7 +10008,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOrganizationOutput(v **DescribeOr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } case "DirectoryType": @@ -9995,7 +10017,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOrganizationOutput(v **DescribeOr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DirectoryType = &jtv + sv.DirectoryType = ptr.String(jtv) } case "ErrorMessage": @@ -10004,7 +10026,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOrganizationOutput(v **DescribeOr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "OrganizationId": @@ -10013,7 +10035,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOrganizationOutput(v **DescribeOr if !ok { return fmt.Errorf("expected OrganizationId to be of type string, got %T instead", value) } - sv.OrganizationId = &jtv + sv.OrganizationId = ptr.String(jtv) } case "State": @@ -10022,7 +10044,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeOrganizationOutput(v **DescribeOr if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } default: @@ -10080,7 +10102,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeResourceOutput(v **DescribeResour if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "EnabledDate": @@ -10102,7 +10124,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeResourceOutput(v **DescribeResour if !ok { return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "ResourceId": @@ -10111,7 +10133,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeResourceOutput(v **DescribeResour if !ok { return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } case "State": @@ -10182,7 +10204,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DisplayName = &jtv + sv.DisplayName = ptr.String(jtv) } case "Email": @@ -10191,7 +10213,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput if !ok { return fmt.Errorf("expected EmailAddress to be of type string, got %T instead", value) } - sv.Email = &jtv + sv.Email = ptr.String(jtv) } case "EnabledDate": @@ -10213,7 +10235,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "State": @@ -10231,7 +10253,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput if !ok { return fmt.Errorf("expected WorkMailIdentifier to be of type string, got %T instead", value) } - sv.UserId = &jtv + sv.UserId = ptr.String(jtv) } case "UserRole": @@ -10387,7 +10409,7 @@ func awsAwsjson11_deserializeOpDocumentGetDefaultRetentionPolicyOutput(v **GetDe if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "FolderConfigurations": @@ -10401,7 +10423,7 @@ func awsAwsjson11_deserializeOpDocumentGetDefaultRetentionPolicyOutput(v **GetDe if !ok { return fmt.Errorf("expected ShortString to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Name": @@ -10410,7 +10432,7 @@ func awsAwsjson11_deserializeOpDocumentGetDefaultRetentionPolicyOutput(v **GetDe if !ok { return fmt.Errorf("expected ShortString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -10467,7 +10489,7 @@ func awsAwsjson11_deserializeOpDocumentGetMailboxDetailsOutput(v **GetMailboxDet if err != nil { return err } - sv.MailboxSize = &f64 + sv.MailboxSize = f64 } default: @@ -10548,7 +10570,7 @@ func awsAwsjson11_deserializeOpDocumentListAliasesOutput(v **ListAliasesOutput, if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10593,7 +10615,7 @@ func awsAwsjson11_deserializeOpDocumentListGroupMembersOutput(v **ListGroupMembe if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10638,7 +10660,7 @@ func awsAwsjson11_deserializeOpDocumentListGroupsOutput(v **ListGroupsOutput, va if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10683,7 +10705,7 @@ func awsAwsjson11_deserializeOpDocumentListMailboxExportJobsOutput(v **ListMailb if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10723,7 +10745,7 @@ func awsAwsjson11_deserializeOpDocumentListMailboxPermissionsOutput(v **ListMail if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Permissions": @@ -10768,7 +10790,7 @@ func awsAwsjson11_deserializeOpDocumentListOrganizationsOutput(v **ListOrganizat if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "OrganizationSummaries": @@ -10818,7 +10840,7 @@ func awsAwsjson11_deserializeOpDocumentListResourceDelegatesOutput(v **ListResou if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10858,7 +10880,7 @@ func awsAwsjson11_deserializeOpDocumentListResourcesOutput(v **ListResourcesOutp if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Resources": @@ -10939,7 +10961,7 @@ func awsAwsjson11_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu if !ok { return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Users": @@ -11139,7 +11161,7 @@ func awsAwsjson11_deserializeOpDocumentStartMailboxExportJobOutput(v **StartMail if !ok { return fmt.Errorf("expected MailboxExportJobId to be of type string, got %T instead", value) } - sv.JobId = &jtv + sv.JobId = ptr.String(jtv) } default: diff --git a/service/workmail/go.mod b/service/workmail/go.mod index 9c6a7e2f00d..90257d73cea 100644 --- a/service/workmail/go.mod +++ b/service/workmail/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/workmail go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/workmail/serializers.go b/service/workmail/serializers.go index d90b4835ee0..7e954b9292e 100644 --- a/service/workmail/serializers.go +++ b/service/workmail/serializers.go @@ -2267,17 +2267,13 @@ func (m *awsAwsjson11_serializeOpUpdateResource) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentActionsList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentActionsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2286,19 +2282,19 @@ func awsAwsjson11_serializeDocumentBookingOptions(v *types.BookingOptions, value object := value.Object() defer object.Close() - if v.AutoAcceptRequests != nil { + if v.AutoAcceptRequests { ok := object.Key("AutoAcceptRequests") - ok.Boolean(*v.AutoAcceptRequests) + ok.Boolean(v.AutoAcceptRequests) } - if v.AutoDeclineConflictingRequests != nil { + if v.AutoDeclineConflictingRequests { ok := object.Key("AutoDeclineConflictingRequests") - ok.Boolean(*v.AutoDeclineConflictingRequests) + ok.Boolean(v.AutoDeclineConflictingRequests) } - if v.AutoDeclineRecurringRequests != nil { + if v.AutoDeclineRecurringRequests { ok := object.Key("AutoDeclineRecurringRequests") - ok.Boolean(*v.AutoDeclineRecurringRequests) + ok.Boolean(v.AutoDeclineRecurringRequests) } return nil @@ -2321,17 +2317,13 @@ func awsAwsjson11_serializeDocumentDomain(v *types.Domain, value smithyjson.Valu return nil } -func awsAwsjson11_serializeDocumentDomains(v []*types.Domain, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDomains(v []types.Domain, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentDomain(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentDomain(&v[i], av); err != nil { return err } } @@ -2360,34 +2352,26 @@ func awsAwsjson11_serializeDocumentFolderConfiguration(v *types.FolderConfigurat return nil } -func awsAwsjson11_serializeDocumentFolderConfigurations(v []*types.FolderConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFolderConfigurations(v []types.FolderConfiguration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentFolderConfiguration(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentFolderConfiguration(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentIpRangeList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIpRangeList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2420,49 +2404,37 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentUserIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentUserIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2598,9 +2570,9 @@ func awsAwsjson11_serializeOpDocumentCreateOrganizationInput(v *CreateOrganizati } } - if v.EnableInteroperability != nil { + if v.EnableInteroperability { ok := object.Key("EnableInteroperability") - ok.Boolean(*v.EnableInteroperability) + ok.Boolean(v.EnableInteroperability) } if v.KmsKeyArn != nil { @@ -2747,9 +2719,9 @@ func awsAwsjson11_serializeOpDocumentDeleteOrganizationInput(v *DeleteOrganizati ok.String(*v.ClientToken) } - if v.DeleteDirectory != nil { + if v.DeleteDirectory { ok := object.Key("DeleteDirectory") - ok.Boolean(*v.DeleteDirectory) + ok.Boolean(v.DeleteDirectory) } if v.OrganizationId != nil { diff --git a/service/workmail/types/types.go b/service/workmail/types/types.go index 1475052821f..e3ac4d8c1ea 100644 --- a/service/workmail/types/types.go +++ b/service/workmail/types/types.go @@ -11,7 +11,7 @@ type AccessControlRule struct { // Access protocol actions to include in the rule. Valid values include ActiveSync, // AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail. - Actions []*string + Actions []string // The date that the rule was created. DateCreated *time.Time @@ -26,23 +26,23 @@ type AccessControlRule struct { Effect AccessControlRuleEffect // IPv4 CIDR ranges to include in the rule. - IpRanges []*string + IpRanges []string // The rule name. Name *string // Access protocol actions to exclude from the rule. Valid values include // ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail. - NotActions []*string + NotActions []string // IPv4 CIDR ranges to exclude from the rule. - NotIpRanges []*string + NotIpRanges []string // User IDs to exclude from the rule. - NotUserIds []*string + NotUserIds []string // User IDs to include in the rule. - UserIds []*string + UserIds []string } // At least one delegate must be associated to the resource to disable automatic @@ -51,13 +51,13 @@ type BookingOptions struct { // The resource's ability to automatically reply to requests. If disabled, // delegates must be associated to the resource. - AutoAcceptRequests *bool + AutoAcceptRequests bool // The resource's ability to automatically decline any conflicting requests. - AutoDeclineConflictingRequests *bool + AutoDeclineConflictingRequests bool // The resource's ability to automatically decline any recurring requests. - AutoDeclineRecurringRequests *bool + AutoDeclineRecurringRequests bool } // The name of the attribute, which is one of the values defined in the @@ -145,7 +145,7 @@ type MailboxExportJob struct { EntityId *string // The estimated progress of the mailbox export job, in percentage points. - EstimatedProgress *int32 + EstimatedProgress int32 // The identifier of the mailbox export job. JobId *string diff --git a/service/workmail/validators.go b/service/workmail/validators.go index 8b0b392a8b7..23edc68c9e5 100644 --- a/service/workmail/validators.go +++ b/service/workmail/validators.go @@ -1180,13 +1180,13 @@ func validateFolderConfiguration(v *types.FolderConfiguration) error { } } -func validateFolderConfigurations(v []*types.FolderConfiguration) error { +func validateFolderConfigurations(v []types.FolderConfiguration) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "FolderConfigurations"} for i := range v { - if err := validateFolderConfiguration(v[i]); err != nil { + if err := validateFolderConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1215,13 +1215,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1477,9 +1477,6 @@ func validateOpDeleteOrganizationInput(v *DeleteOrganizationInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteOrganizationInput"} - if v.DeleteDirectory == nil { - invalidParams.Add(smithy.NewErrParamRequired("DeleteDirectory")) - } if v.OrganizationId == nil { invalidParams.Add(smithy.NewErrParamRequired("OrganizationId")) } diff --git a/service/workmailmessageflow/deserializers.go b/service/workmailmessageflow/deserializers.go index ffabb047ea4..36142527131 100644 --- a/service/workmailmessageflow/deserializers.go +++ b/service/workmailmessageflow/deserializers.go @@ -12,6 +12,7 @@ import ( smithy "github.com/awslabs/smithy-go" smithyio "github.com/awslabs/smithy-go/io" "github.com/awslabs/smithy-go/middleware" + "github.com/awslabs/smithy-go/ptr" smithyhttp "github.com/awslabs/smithy-go/transport/http" "io" "strings" @@ -178,7 +179,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected errorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: diff --git a/service/workmailmessageflow/go.mod b/service/workmailmessageflow/go.mod index 132e6a1b777..1428d7eb40b 100644 --- a/service/workmailmessageflow/go.mod +++ b/service/workmailmessageflow/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/workmailmessageflow go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/workmailmessageflow/serializers.go b/service/workmailmessageflow/serializers.go index 3758cd5beaa..e9b41a2a54f 100644 --- a/service/workmailmessageflow/serializers.go +++ b/service/workmailmessageflow/serializers.go @@ -62,13 +62,10 @@ func awsRestjson1_serializeOpHttpBindingsGetRawMessageContentInput(v *GetRawMess return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MessageId == nil { + if v.MessageId == nil || len(*v.MessageId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member messageId must not be empty")} } if v.MessageId != nil { - if len(*v.MessageId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member messageId must not be empty")} - } if err := encoder.SetURI("messageId").String(*v.MessageId); err != nil { return err } diff --git a/service/workspaces/api_op_AssociateIpGroups.go b/service/workspaces/api_op_AssociateIpGroups.go index ef8d77b6bde..e13fbe3362f 100644 --- a/service/workspaces/api_op_AssociateIpGroups.go +++ b/service/workspaces/api_op_AssociateIpGroups.go @@ -36,7 +36,7 @@ type AssociateIpGroupsInput struct { // The identifiers of one or more IP access control groups. // // This member is required. - GroupIds []*string + GroupIds []string } type AssociateIpGroupsOutput struct { diff --git a/service/workspaces/api_op_AuthorizeIpRules.go b/service/workspaces/api_op_AuthorizeIpRules.go index c8c677d2974..faf16e706a2 100644 --- a/service/workspaces/api_op_AuthorizeIpRules.go +++ b/service/workspaces/api_op_AuthorizeIpRules.go @@ -39,7 +39,7 @@ type AuthorizeIpRulesInput struct { // The rules to add to the group. // // This member is required. - UserRules []*types.IpRuleItem + UserRules []types.IpRuleItem } type AuthorizeIpRulesOutput struct { diff --git a/service/workspaces/api_op_CopyWorkspaceImage.go b/service/workspaces/api_op_CopyWorkspaceImage.go index 2487ee9d875..458990c508e 100644 --- a/service/workspaces/api_op_CopyWorkspaceImage.go +++ b/service/workspaces/api_op_CopyWorkspaceImage.go @@ -57,7 +57,7 @@ type CopyWorkspaceImageInput struct { Description *string // The tags for the image. - Tags []*types.Tag + Tags []types.Tag } type CopyWorkspaceImageOutput struct { diff --git a/service/workspaces/api_op_CreateConnectionAlias.go b/service/workspaces/api_op_CreateConnectionAlias.go index 1c25afd2f7b..d5254e74aea 100644 --- a/service/workspaces/api_op_CreateConnectionAlias.go +++ b/service/workspaces/api_op_CreateConnectionAlias.go @@ -41,7 +41,7 @@ type CreateConnectionAliasInput struct { ConnectionString *string // The tags to associate with the connection alias. - Tags []*types.Tag + Tags []types.Tag } type CreateConnectionAliasOutput struct { diff --git a/service/workspaces/api_op_CreateIpGroup.go b/service/workspaces/api_op_CreateIpGroup.go index 0ba7904de67..0c66cd1a3e9 100644 --- a/service/workspaces/api_op_CreateIpGroup.go +++ b/service/workspaces/api_op_CreateIpGroup.go @@ -47,10 +47,10 @@ type CreateIpGroupInput struct { GroupDesc *string // The tags. Each WorkSpaces resource can have a maximum of 50 tags. - Tags []*types.Tag + Tags []types.Tag // The rules to add to the group. - UserRules []*types.IpRuleItem + UserRules []types.IpRuleItem } type CreateIpGroupOutput struct { diff --git a/service/workspaces/api_op_CreateTags.go b/service/workspaces/api_op_CreateTags.go index 8d9c77ebdea..e74c9968cb3 100644 --- a/service/workspaces/api_op_CreateTags.go +++ b/service/workspaces/api_op_CreateTags.go @@ -39,7 +39,7 @@ type CreateTagsInput struct { // The tags. Each WorkSpaces resource can have a maximum of 50 tags. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type CreateTagsOutput struct { diff --git a/service/workspaces/api_op_CreateWorkspaces.go b/service/workspaces/api_op_CreateWorkspaces.go index 79a6ae0d5d7..f942082bab9 100644 --- a/service/workspaces/api_op_CreateWorkspaces.go +++ b/service/workspaces/api_op_CreateWorkspaces.go @@ -33,19 +33,19 @@ type CreateWorkspacesInput struct { // The WorkSpaces to create. You can specify up to 25 WorkSpaces. // // This member is required. - Workspaces []*types.WorkspaceRequest + Workspaces []types.WorkspaceRequest } type CreateWorkspacesOutput struct { // Information about the WorkSpaces that could not be created. - FailedRequests []*types.FailedCreateWorkspaceRequest + FailedRequests []types.FailedCreateWorkspaceRequest // Information about the WorkSpaces that were created. Because this operation is // asynchronous, the identifier returned is not immediately available for use with // other operations. For example, if you call DescribeWorkspaces before the // WorkSpace is created, the information returned can be incomplete. - PendingRequests []*types.Workspace + PendingRequests []types.Workspace // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workspaces/api_op_DeleteTags.go b/service/workspaces/api_op_DeleteTags.go index df826579cac..32c058794bf 100644 --- a/service/workspaces/api_op_DeleteTags.go +++ b/service/workspaces/api_op_DeleteTags.go @@ -38,7 +38,7 @@ type DeleteTagsInput struct { // The tag keys. // // This member is required. - TagKeys []*string + TagKeys []string } type DeleteTagsOutput struct { diff --git a/service/workspaces/api_op_DescribeAccountModifications.go b/service/workspaces/api_op_DescribeAccountModifications.go index 9e2a38d71a6..05079164edc 100644 --- a/service/workspaces/api_op_DescribeAccountModifications.go +++ b/service/workspaces/api_op_DescribeAccountModifications.go @@ -38,7 +38,7 @@ type DescribeAccountModificationsInput struct { type DescribeAccountModificationsOutput struct { // The list of modifications to the configuration of BYOL. - AccountModifications []*types.AccountModification + AccountModifications []types.AccountModification // The token to use to retrieve the next set of results, or null if no more results // are available. diff --git a/service/workspaces/api_op_DescribeClientProperties.go b/service/workspaces/api_op_DescribeClientProperties.go index 862888fc2f0..8690688dcda 100644 --- a/service/workspaces/api_op_DescribeClientProperties.go +++ b/service/workspaces/api_op_DescribeClientProperties.go @@ -32,13 +32,13 @@ type DescribeClientPropertiesInput struct { // The resource identifier, in the form of directory IDs. // // This member is required. - ResourceIds []*string + ResourceIds []string } type DescribeClientPropertiesOutput struct { // Information about the specified Amazon WorkSpaces clients. - ClientPropertiesList []*types.ClientPropertiesResult + ClientPropertiesList []types.ClientPropertiesResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workspaces/api_op_DescribeConnectionAliasPermissions.go b/service/workspaces/api_op_DescribeConnectionAliasPermissions.go index 228878c5908..0ea6450700c 100644 --- a/service/workspaces/api_op_DescribeConnectionAliasPermissions.go +++ b/service/workspaces/api_op_DescribeConnectionAliasPermissions.go @@ -51,7 +51,7 @@ type DescribeConnectionAliasPermissionsOutput struct { AliasId *string // The permissions associated with a connection alias. - ConnectionAliasPermissions []*types.ConnectionAliasPermission + ConnectionAliasPermissions []types.ConnectionAliasPermission // The token to use to retrieve the next set of results, or null if no more results // are available. diff --git a/service/workspaces/api_op_DescribeConnectionAliases.go b/service/workspaces/api_op_DescribeConnectionAliases.go index b07413d0b14..96f2876bc08 100644 --- a/service/workspaces/api_op_DescribeConnectionAliases.go +++ b/service/workspaces/api_op_DescribeConnectionAliases.go @@ -33,7 +33,7 @@ func (c *Client) DescribeConnectionAliases(ctx context.Context, params *Describe type DescribeConnectionAliasesInput struct { // The identifiers of the connection aliases to describe. - AliasIds []*string + AliasIds []string // The maximum number of connection aliases to return. Limit *int32 @@ -49,7 +49,7 @@ type DescribeConnectionAliasesInput struct { type DescribeConnectionAliasesOutput struct { // Information about the specified connection aliases. - ConnectionAliases []*types.ConnectionAlias + ConnectionAliases []types.ConnectionAlias // The token to use to retrieve the next set of results, or null if no more results // are available. diff --git a/service/workspaces/api_op_DescribeIpGroups.go b/service/workspaces/api_op_DescribeIpGroups.go index e30189de6b8..c183b4cbf41 100644 --- a/service/workspaces/api_op_DescribeIpGroups.go +++ b/service/workspaces/api_op_DescribeIpGroups.go @@ -30,7 +30,7 @@ func (c *Client) DescribeIpGroups(ctx context.Context, params *DescribeIpGroupsI type DescribeIpGroupsInput struct { // The identifiers of one or more IP access control groups. - GroupIds []*string + GroupIds []string // The maximum number of items to return. MaxResults *int32 @@ -47,7 +47,7 @@ type DescribeIpGroupsOutput struct { NextToken *string // Information about the IP access control groups. - Result []*types.WorkspacesIpGroup + Result []types.WorkspacesIpGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workspaces/api_op_DescribeTags.go b/service/workspaces/api_op_DescribeTags.go index 594157dec71..608e20ed505 100644 --- a/service/workspaces/api_op_DescribeTags.go +++ b/service/workspaces/api_op_DescribeTags.go @@ -40,7 +40,7 @@ type DescribeTagsInput struct { type DescribeTagsOutput struct { // The tags. - TagList []*types.Tag + TagList []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workspaces/api_op_DescribeWorkspaceBundles.go b/service/workspaces/api_op_DescribeWorkspaceBundles.go index 73b286e8979..7a79785099c 100644 --- a/service/workspaces/api_op_DescribeWorkspaceBundles.go +++ b/service/workspaces/api_op_DescribeWorkspaceBundles.go @@ -32,7 +32,7 @@ type DescribeWorkspaceBundlesInput struct { // The identifiers of the bundles. You cannot combine this parameter with any other // filter. - BundleIds []*string + BundleIds []string // The token for the next set of results. (You received this token from a previous // call.) @@ -47,7 +47,7 @@ type DescribeWorkspaceBundlesInput struct { type DescribeWorkspaceBundlesOutput struct { // Information about the bundles. - Bundles []*types.WorkspaceBundle + Bundles []types.WorkspaceBundle // The token to use to retrieve the next set of results, or null if there are no // more results available. This token is valid for one day and must be used within diff --git a/service/workspaces/api_op_DescribeWorkspaceDirectories.go b/service/workspaces/api_op_DescribeWorkspaceDirectories.go index a83fe770f3c..33eb226d793 100644 --- a/service/workspaces/api_op_DescribeWorkspaceDirectories.go +++ b/service/workspaces/api_op_DescribeWorkspaceDirectories.go @@ -31,7 +31,7 @@ type DescribeWorkspaceDirectoriesInput struct { // The identifiers of the directories. If the value is null, all directories are // retrieved. - DirectoryIds []*string + DirectoryIds []string // The maximum number of directories to return. Limit *int32 @@ -44,7 +44,7 @@ type DescribeWorkspaceDirectoriesInput struct { type DescribeWorkspaceDirectoriesOutput struct { // Information about the directories. - Directories []*types.WorkspaceDirectory + Directories []types.WorkspaceDirectory // The token to use to retrieve the next set of results, or null if no more results // are available. diff --git a/service/workspaces/api_op_DescribeWorkspaceImagePermissions.go b/service/workspaces/api_op_DescribeWorkspaceImagePermissions.go index 4b817f8f739..f3863528daf 100644 --- a/service/workspaces/api_op_DescribeWorkspaceImagePermissions.go +++ b/service/workspaces/api_op_DescribeWorkspaceImagePermissions.go @@ -49,7 +49,7 @@ type DescribeWorkspaceImagePermissionsOutput struct { ImageId *string // The identifiers of the AWS accounts that the image has been shared with. - ImagePermissions []*types.ImagePermission + ImagePermissions []types.ImagePermission // The token to use to retrieve the next set of results, or null if no more results // are available. diff --git a/service/workspaces/api_op_DescribeWorkspaceImages.go b/service/workspaces/api_op_DescribeWorkspaceImages.go index 2a4377fd357..c4b52383121 100644 --- a/service/workspaces/api_op_DescribeWorkspaceImages.go +++ b/service/workspaces/api_op_DescribeWorkspaceImages.go @@ -31,7 +31,7 @@ func (c *Client) DescribeWorkspaceImages(ctx context.Context, params *DescribeWo type DescribeWorkspaceImagesInput struct { // The identifier of the image. - ImageIds []*string + ImageIds []string // The type (owned or shared) of the image. ImageType types.ImageType @@ -47,7 +47,7 @@ type DescribeWorkspaceImagesInput struct { type DescribeWorkspaceImagesOutput struct { // Information about the images. - Images []*types.WorkspaceImage + Images []types.WorkspaceImage // The token to use to retrieve the next set of results, or null if no more results // are available. diff --git a/service/workspaces/api_op_DescribeWorkspaceSnapshots.go b/service/workspaces/api_op_DescribeWorkspaceSnapshots.go index 9252ef5bd9a..3853faf056e 100644 --- a/service/workspaces/api_op_DescribeWorkspaceSnapshots.go +++ b/service/workspaces/api_op_DescribeWorkspaceSnapshots.go @@ -39,11 +39,11 @@ type DescribeWorkspaceSnapshotsOutput struct { // Information about the snapshots that can be used to rebuild a WorkSpace. These // snapshots include the user volume. - RebuildSnapshots []*types.Snapshot + RebuildSnapshots []types.Snapshot // Information about the snapshots that can be used to restore a WorkSpace. These // snapshots include both the root volume and the user volume. - RestoreSnapshots []*types.Snapshot + RestoreSnapshots []types.Snapshot // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workspaces/api_op_DescribeWorkspaces.go b/service/workspaces/api_op_DescribeWorkspaces.go index 22dfb0e79a1..fd81435e6a0 100644 --- a/service/workspaces/api_op_DescribeWorkspaces.go +++ b/service/workspaces/api_op_DescribeWorkspaces.go @@ -55,7 +55,7 @@ type DescribeWorkspacesInput struct { // other filter. Because the CreateWorkspaces operation is asynchronous, the // identifier it returns is not immediately available. If you immediately call // DescribeWorkspaces with this identifier, no information is returned. - WorkspaceIds []*string + WorkspaceIds []string } type DescribeWorkspacesOutput struct { @@ -66,7 +66,7 @@ type DescribeWorkspacesOutput struct { // Information about the WorkSpaces. Because CreateWorkspaces is an asynchronous // operation, some of the returned information could be incomplete. - Workspaces []*types.Workspace + Workspaces []types.Workspace // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workspaces/api_op_DescribeWorkspacesConnectionStatus.go b/service/workspaces/api_op_DescribeWorkspacesConnectionStatus.go index 6b03b84eb7f..36485b7de12 100644 --- a/service/workspaces/api_op_DescribeWorkspacesConnectionStatus.go +++ b/service/workspaces/api_op_DescribeWorkspacesConnectionStatus.go @@ -34,7 +34,7 @@ type DescribeWorkspacesConnectionStatusInput struct { NextToken *string // The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces. - WorkspaceIds []*string + WorkspaceIds []string } type DescribeWorkspacesConnectionStatusOutput struct { @@ -44,7 +44,7 @@ type DescribeWorkspacesConnectionStatusOutput struct { NextToken *string // Information about the connection status of the WorkSpace. - WorkspacesConnectionStatus []*types.WorkspaceConnectionStatus + WorkspacesConnectionStatus []types.WorkspaceConnectionStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workspaces/api_op_DisassociateIpGroups.go b/service/workspaces/api_op_DisassociateIpGroups.go index 0e3b55ad723..683001475ad 100644 --- a/service/workspaces/api_op_DisassociateIpGroups.go +++ b/service/workspaces/api_op_DisassociateIpGroups.go @@ -37,7 +37,7 @@ type DisassociateIpGroupsInput struct { // The identifiers of one or more IP access control groups. // // This member is required. - GroupIds []*string + GroupIds []string } type DisassociateIpGroupsOutput struct { diff --git a/service/workspaces/api_op_ImportWorkspaceImage.go b/service/workspaces/api_op_ImportWorkspaceImage.go index 3e2dfb08a52..a8f3b64be5f 100644 --- a/service/workspaces/api_op_ImportWorkspaceImage.go +++ b/service/workspaces/api_op_ImportWorkspaceImage.go @@ -62,7 +62,7 @@ type ImportWorkspaceImageInput struct { Applications []types.Application // The tags. Each WorkSpaces resource can have a maximum of 50 tags. - Tags []*types.Tag + Tags []types.Tag } type ImportWorkspaceImageOutput struct { diff --git a/service/workspaces/api_op_ListAvailableManagementCidrRanges.go b/service/workspaces/api_op_ListAvailableManagementCidrRanges.go index 94bb59af14d..57f4a28bd33 100644 --- a/service/workspaces/api_op_ListAvailableManagementCidrRanges.go +++ b/service/workspaces/api_op_ListAvailableManagementCidrRanges.go @@ -53,7 +53,7 @@ type ListAvailableManagementCidrRangesInput struct { type ListAvailableManagementCidrRangesOutput struct { // The list of available IP address ranges, specified as IPv4 CIDR blocks. - ManagementCidrRanges []*string + ManagementCidrRanges []string // The token to use to retrieve the next set of results, or null if no more results // are available. diff --git a/service/workspaces/api_op_RebootWorkspaces.go b/service/workspaces/api_op_RebootWorkspaces.go index 70a5e34bb44..b92274c9545 100644 --- a/service/workspaces/api_op_RebootWorkspaces.go +++ b/service/workspaces/api_op_RebootWorkspaces.go @@ -34,13 +34,13 @@ type RebootWorkspacesInput struct { // The WorkSpaces to reboot. You can specify up to 25 WorkSpaces. // // This member is required. - RebootWorkspaceRequests []*types.RebootRequest + RebootWorkspaceRequests []types.RebootRequest } type RebootWorkspacesOutput struct { // Information about the WorkSpaces that could not be rebooted. - FailedRequests []*types.FailedWorkspaceChangeRequest + FailedRequests []types.FailedWorkspaceChangeRequest // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workspaces/api_op_RebuildWorkspaces.go b/service/workspaces/api_op_RebuildWorkspaces.go index 9b72062209d..1f63480ae7c 100644 --- a/service/workspaces/api_op_RebuildWorkspaces.go +++ b/service/workspaces/api_op_RebuildWorkspaces.go @@ -38,13 +38,13 @@ type RebuildWorkspacesInput struct { // The WorkSpace to rebuild. You can specify a single WorkSpace. // // This member is required. - RebuildWorkspaceRequests []*types.RebuildRequest + RebuildWorkspaceRequests []types.RebuildRequest } type RebuildWorkspacesOutput struct { // Information about the WorkSpace that could not be rebuilt. - FailedRequests []*types.FailedWorkspaceChangeRequest + FailedRequests []types.FailedWorkspaceChangeRequest // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workspaces/api_op_RegisterWorkspaceDirectory.go b/service/workspaces/api_op_RegisterWorkspaceDirectory.go index 5bf80414d34..35f75005dbf 100644 --- a/service/workspaces/api_op_RegisterWorkspaceDirectory.go +++ b/service/workspaces/api_op_RegisterWorkspaceDirectory.go @@ -59,10 +59,10 @@ type RegisterWorkspaceDirectoryInput struct { // that the subnets are in supported Availability Zones. The subnets must also be // in separate Availability Zones. If these conditions are not met, you will // receive an OperationNotSupportedException error. - SubnetIds []*string + SubnetIds []string // The tags associated with the directory. - Tags []*types.Tag + Tags []types.Tag // Indicates whether your WorkSpace directory is dedicated or shared. To use Bring // Your Own License (BYOL) images, this value must be set to DEDICATED and your AWS diff --git a/service/workspaces/api_op_RevokeIpRules.go b/service/workspaces/api_op_RevokeIpRules.go index 2e5528a150f..7493507fd71 100644 --- a/service/workspaces/api_op_RevokeIpRules.go +++ b/service/workspaces/api_op_RevokeIpRules.go @@ -36,7 +36,7 @@ type RevokeIpRulesInput struct { // The rules to remove from the group. // // This member is required. - UserRules []*string + UserRules []string } type RevokeIpRulesOutput struct { diff --git a/service/workspaces/api_op_StartWorkspaces.go b/service/workspaces/api_op_StartWorkspaces.go index 07c68bf5286..3d3d26dda86 100644 --- a/service/workspaces/api_op_StartWorkspaces.go +++ b/service/workspaces/api_op_StartWorkspaces.go @@ -33,13 +33,13 @@ type StartWorkspacesInput struct { // The WorkSpaces to start. You can specify up to 25 WorkSpaces. // // This member is required. - StartWorkspaceRequests []*types.StartRequest + StartWorkspaceRequests []types.StartRequest } type StartWorkspacesOutput struct { // Information about the WorkSpaces that could not be started. - FailedRequests []*types.FailedWorkspaceChangeRequest + FailedRequests []types.FailedWorkspaceChangeRequest // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workspaces/api_op_StopWorkspaces.go b/service/workspaces/api_op_StopWorkspaces.go index 0d332fbd4c2..337902e0cb2 100644 --- a/service/workspaces/api_op_StopWorkspaces.go +++ b/service/workspaces/api_op_StopWorkspaces.go @@ -34,13 +34,13 @@ type StopWorkspacesInput struct { // The WorkSpaces to stop. You can specify up to 25 WorkSpaces. // // This member is required. - StopWorkspaceRequests []*types.StopRequest + StopWorkspaceRequests []types.StopRequest } type StopWorkspacesOutput struct { // Information about the WorkSpaces that could not be stopped. - FailedRequests []*types.FailedWorkspaceChangeRequest + FailedRequests []types.FailedWorkspaceChangeRequest // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workspaces/api_op_TerminateWorkspaces.go b/service/workspaces/api_op_TerminateWorkspaces.go index c79643c7561..56d1d10f074 100644 --- a/service/workspaces/api_op_TerminateWorkspaces.go +++ b/service/workspaces/api_op_TerminateWorkspaces.go @@ -43,13 +43,13 @@ type TerminateWorkspacesInput struct { // The WorkSpaces to terminate. You can specify up to 25 WorkSpaces. // // This member is required. - TerminateWorkspaceRequests []*types.TerminateRequest + TerminateWorkspaceRequests []types.TerminateRequest } type TerminateWorkspacesOutput struct { // Information about the WorkSpaces that could not be terminated. - FailedRequests []*types.FailedWorkspaceChangeRequest + FailedRequests []types.FailedWorkspaceChangeRequest // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/workspaces/api_op_UpdateRulesOfIpGroup.go b/service/workspaces/api_op_UpdateRulesOfIpGroup.go index 930f187158a..1cf2f1c03d2 100644 --- a/service/workspaces/api_op_UpdateRulesOfIpGroup.go +++ b/service/workspaces/api_op_UpdateRulesOfIpGroup.go @@ -38,7 +38,7 @@ type UpdateRulesOfIpGroupInput struct { // One or more rules. // // This member is required. - UserRules []*types.IpRuleItem + UserRules []types.IpRuleItem } type UpdateRulesOfIpGroupOutput struct { diff --git a/service/workspaces/deserializers.go b/service/workspaces/deserializers.go index c784ca8ea16..7829f265786 100644 --- a/service/workspaces/deserializers.go +++ b/service/workspaces/deserializers.go @@ -6444,7 +6444,7 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6484,7 +6484,7 @@ func awsAwsjson11_deserializeDocumentAccountModification(v **types.AccountModifi if !ok { return fmt.Errorf("expected DedicatedTenancyManagementCidrRange to be of type string, got %T instead", value) } - sv.DedicatedTenancyManagementCidrRange = &jtv + sv.DedicatedTenancyManagementCidrRange = ptr.String(jtv) } case "DedicatedTenancySupport": @@ -6502,7 +6502,7 @@ func awsAwsjson11_deserializeDocumentAccountModification(v **types.AccountModifi if !ok { return fmt.Errorf("expected WorkspaceErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -6511,7 +6511,7 @@ func awsAwsjson11_deserializeDocumentAccountModification(v **types.AccountModifi if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "ModificationState": @@ -6545,7 +6545,7 @@ func awsAwsjson11_deserializeDocumentAccountModification(v **types.AccountModifi return nil } -func awsAwsjson11_deserializeDocumentAccountModificationList(v *[]*types.AccountModification, value interface{}) error { +func awsAwsjson11_deserializeDocumentAccountModificationList(v *[]types.AccountModification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6558,18 +6558,20 @@ func awsAwsjson11_deserializeDocumentAccountModificationList(v *[]*types.Account return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AccountModification + var cv []types.AccountModification if *v == nil { - cv = []*types.AccountModification{} + cv = []types.AccountModification{} } else { cv = *v } for _, value := range shape { - var col *types.AccountModification - if err := awsAwsjson11_deserializeDocumentAccountModification(&col, value); err != nil { + var col types.AccountModification + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAccountModification(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6577,7 +6579,7 @@ func awsAwsjson11_deserializeDocumentAccountModificationList(v *[]*types.Account return nil } -func awsAwsjson11_deserializeDocumentBundleList(v *[]*types.WorkspaceBundle, value interface{}) error { +func awsAwsjson11_deserializeDocumentBundleList(v *[]types.WorkspaceBundle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6590,18 +6592,20 @@ func awsAwsjson11_deserializeDocumentBundleList(v *[]*types.WorkspaceBundle, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorkspaceBundle + var cv []types.WorkspaceBundle if *v == nil { - cv = []*types.WorkspaceBundle{} + cv = []types.WorkspaceBundle{} } else { cv = *v } for _, value := range shape { - var col *types.WorkspaceBundle - if err := awsAwsjson11_deserializeDocumentWorkspaceBundle(&col, value); err != nil { + var col types.WorkspaceBundle + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkspaceBundle(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6649,7 +6653,7 @@ func awsAwsjson11_deserializeDocumentClientProperties(v **types.ClientProperties return nil } -func awsAwsjson11_deserializeDocumentClientPropertiesList(v *[]*types.ClientPropertiesResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentClientPropertiesList(v *[]types.ClientPropertiesResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6662,18 +6666,20 @@ func awsAwsjson11_deserializeDocumentClientPropertiesList(v *[]*types.ClientProp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ClientPropertiesResult + var cv []types.ClientPropertiesResult if *v == nil { - cv = []*types.ClientPropertiesResult{} + cv = []types.ClientPropertiesResult{} } else { cv = *v } for _, value := range shape { - var col *types.ClientPropertiesResult - if err := awsAwsjson11_deserializeDocumentClientPropertiesResult(&col, value); err != nil { + var col types.ClientPropertiesResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentClientPropertiesResult(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6714,7 +6720,7 @@ func awsAwsjson11_deserializeDocumentClientPropertiesResult(v **types.ClientProp if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } default: @@ -6794,7 +6800,7 @@ func awsAwsjson11_deserializeDocumentConnectionAlias(v **types.ConnectionAlias, if !ok { return fmt.Errorf("expected ConnectionAliasId to be of type string, got %T instead", value) } - sv.AliasId = &jtv + sv.AliasId = ptr.String(jtv) } case "Associations": @@ -6808,7 +6814,7 @@ func awsAwsjson11_deserializeDocumentConnectionAlias(v **types.ConnectionAlias, if !ok { return fmt.Errorf("expected ConnectionString to be of type string, got %T instead", value) } - sv.ConnectionString = &jtv + sv.ConnectionString = ptr.String(jtv) } case "OwnerAccountId": @@ -6817,7 +6823,7 @@ func awsAwsjson11_deserializeDocumentConnectionAlias(v **types.ConnectionAlias, if !ok { return fmt.Errorf("expected AwsAccount to be of type string, got %T instead", value) } - sv.OwnerAccountId = &jtv + sv.OwnerAccountId = ptr.String(jtv) } case "State": @@ -6866,7 +6872,7 @@ func awsAwsjson11_deserializeDocumentConnectionAliasAssociation(v **types.Connec if !ok { return fmt.Errorf("expected AwsAccount to be of type string, got %T instead", value) } - sv.AssociatedAccountId = &jtv + sv.AssociatedAccountId = ptr.String(jtv) } case "AssociationStatus": @@ -6884,7 +6890,7 @@ func awsAwsjson11_deserializeDocumentConnectionAliasAssociation(v **types.Connec if !ok { return fmt.Errorf("expected ConnectionIdentifier to be of type string, got %T instead", value) } - sv.ConnectionIdentifier = &jtv + sv.ConnectionIdentifier = ptr.String(jtv) } case "ResourceId": @@ -6893,7 +6899,7 @@ func awsAwsjson11_deserializeDocumentConnectionAliasAssociation(v **types.Connec if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } default: @@ -6905,7 +6911,7 @@ func awsAwsjson11_deserializeDocumentConnectionAliasAssociation(v **types.Connec return nil } -func awsAwsjson11_deserializeDocumentConnectionAliasAssociationList(v *[]*types.ConnectionAliasAssociation, value interface{}) error { +func awsAwsjson11_deserializeDocumentConnectionAliasAssociationList(v *[]types.ConnectionAliasAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6918,18 +6924,20 @@ func awsAwsjson11_deserializeDocumentConnectionAliasAssociationList(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConnectionAliasAssociation + var cv []types.ConnectionAliasAssociation if *v == nil { - cv = []*types.ConnectionAliasAssociation{} + cv = []types.ConnectionAliasAssociation{} } else { cv = *v } for _, value := range shape { - var col *types.ConnectionAliasAssociation - if err := awsAwsjson11_deserializeDocumentConnectionAliasAssociation(&col, value); err != nil { + var col types.ConnectionAliasAssociation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConnectionAliasAssociation(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6937,7 +6945,7 @@ func awsAwsjson11_deserializeDocumentConnectionAliasAssociationList(v *[]*types. return nil } -func awsAwsjson11_deserializeDocumentConnectionAliasList(v *[]*types.ConnectionAlias, value interface{}) error { +func awsAwsjson11_deserializeDocumentConnectionAliasList(v *[]types.ConnectionAlias, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6950,18 +6958,20 @@ func awsAwsjson11_deserializeDocumentConnectionAliasList(v *[]*types.ConnectionA return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConnectionAlias + var cv []types.ConnectionAlias if *v == nil { - cv = []*types.ConnectionAlias{} + cv = []types.ConnectionAlias{} } else { cv = *v } for _, value := range shape { - var col *types.ConnectionAlias - if err := awsAwsjson11_deserializeDocumentConnectionAlias(&col, value); err != nil { + var col types.ConnectionAlias + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConnectionAlias(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6997,7 +7007,7 @@ func awsAwsjson11_deserializeDocumentConnectionAliasPermission(v **types.Connect if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.AllowAssociation = &jtv + sv.AllowAssociation = ptr.Bool(jtv) } case "SharedAccountId": @@ -7006,7 +7016,7 @@ func awsAwsjson11_deserializeDocumentConnectionAliasPermission(v **types.Connect if !ok { return fmt.Errorf("expected AwsAccount to be of type string, got %T instead", value) } - sv.SharedAccountId = &jtv + sv.SharedAccountId = ptr.String(jtv) } default: @@ -7018,7 +7028,7 @@ func awsAwsjson11_deserializeDocumentConnectionAliasPermission(v **types.Connect return nil } -func awsAwsjson11_deserializeDocumentConnectionAliasPermissions(v *[]*types.ConnectionAliasPermission, value interface{}) error { +func awsAwsjson11_deserializeDocumentConnectionAliasPermissions(v *[]types.ConnectionAliasPermission, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7031,18 +7041,20 @@ func awsAwsjson11_deserializeDocumentConnectionAliasPermissions(v *[]*types.Conn return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ConnectionAliasPermission + var cv []types.ConnectionAliasPermission if *v == nil { - cv = []*types.ConnectionAliasPermission{} + cv = []types.ConnectionAliasPermission{} } else { cv = *v } for _, value := range shape { - var col *types.ConnectionAliasPermission - if err := awsAwsjson11_deserializeDocumentConnectionAliasPermission(&col, value); err != nil { + var col types.ConnectionAliasPermission + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConnectionAliasPermission(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7050,7 +7062,7 @@ func awsAwsjson11_deserializeDocumentConnectionAliasPermissions(v *[]*types.Conn return nil } -func awsAwsjson11_deserializeDocumentDedicatedTenancyCidrRangeList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDedicatedTenancyCidrRangeList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7063,21 +7075,21 @@ func awsAwsjson11_deserializeDocumentDedicatedTenancyCidrRangeList(v *[]*string, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected DedicatedTenancyManagementCidrRange to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7114,7 +7126,7 @@ func awsAwsjson11_deserializeDocumentDefaultWorkspaceCreationProperties(v **type if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - sv.CustomSecurityGroupId = &jtv + sv.CustomSecurityGroupId = ptr.String(jtv) } case "DefaultOu": @@ -7123,7 +7135,7 @@ func awsAwsjson11_deserializeDocumentDefaultWorkspaceCreationProperties(v **type if !ok { return fmt.Errorf("expected DefaultOu to be of type string, got %T instead", value) } - sv.DefaultOu = &jtv + sv.DefaultOu = ptr.String(jtv) } case "EnableInternetAccess": @@ -7132,7 +7144,7 @@ func awsAwsjson11_deserializeDocumentDefaultWorkspaceCreationProperties(v **type if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.EnableInternetAccess = &jtv + sv.EnableInternetAccess = ptr.Bool(jtv) } case "EnableMaintenanceMode": @@ -7141,7 +7153,7 @@ func awsAwsjson11_deserializeDocumentDefaultWorkspaceCreationProperties(v **type if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.EnableMaintenanceMode = &jtv + sv.EnableMaintenanceMode = ptr.Bool(jtv) } case "EnableWorkDocs": @@ -7150,7 +7162,7 @@ func awsAwsjson11_deserializeDocumentDefaultWorkspaceCreationProperties(v **type if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.EnableWorkDocs = &jtv + sv.EnableWorkDocs = ptr.Bool(jtv) } case "UserEnabledAsLocalAdministrator": @@ -7159,7 +7171,7 @@ func awsAwsjson11_deserializeDocumentDefaultWorkspaceCreationProperties(v **type if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.UserEnabledAsLocalAdministrator = &jtv + sv.UserEnabledAsLocalAdministrator = ptr.Bool(jtv) } default: @@ -7171,7 +7183,7 @@ func awsAwsjson11_deserializeDocumentDefaultWorkspaceCreationProperties(v **type return nil } -func awsAwsjson11_deserializeDocumentDirectoryList(v *[]*types.WorkspaceDirectory, value interface{}) error { +func awsAwsjson11_deserializeDocumentDirectoryList(v *[]types.WorkspaceDirectory, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7184,18 +7196,20 @@ func awsAwsjson11_deserializeDocumentDirectoryList(v *[]*types.WorkspaceDirector return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorkspaceDirectory + var cv []types.WorkspaceDirectory if *v == nil { - cv = []*types.WorkspaceDirectory{} + cv = []types.WorkspaceDirectory{} } else { cv = *v } for _, value := range shape { - var col *types.WorkspaceDirectory - if err := awsAwsjson11_deserializeDocumentWorkspaceDirectory(&col, value); err != nil { + var col types.WorkspaceDirectory + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkspaceDirectory(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7203,7 +7217,7 @@ func awsAwsjson11_deserializeDocumentDirectoryList(v *[]*types.WorkspaceDirector return nil } -func awsAwsjson11_deserializeDocumentDnsIpAddresses(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDnsIpAddresses(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7216,21 +7230,21 @@ func awsAwsjson11_deserializeDocumentDnsIpAddresses(v *[]*string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7267,7 +7281,7 @@ func awsAwsjson11_deserializeDocumentFailedCreateWorkspaceRequest(v **types.Fail if !ok { return fmt.Errorf("expected ErrorType to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -7276,7 +7290,7 @@ func awsAwsjson11_deserializeDocumentFailedCreateWorkspaceRequest(v **types.Fail if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "WorkspaceRequest": @@ -7293,7 +7307,7 @@ func awsAwsjson11_deserializeDocumentFailedCreateWorkspaceRequest(v **types.Fail return nil } -func awsAwsjson11_deserializeDocumentFailedCreateWorkspaceRequests(v *[]*types.FailedCreateWorkspaceRequest, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedCreateWorkspaceRequests(v *[]types.FailedCreateWorkspaceRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7306,18 +7320,20 @@ func awsAwsjson11_deserializeDocumentFailedCreateWorkspaceRequests(v *[]*types.F return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedCreateWorkspaceRequest + var cv []types.FailedCreateWorkspaceRequest if *v == nil { - cv = []*types.FailedCreateWorkspaceRequest{} + cv = []types.FailedCreateWorkspaceRequest{} } else { cv = *v } for _, value := range shape { - var col *types.FailedCreateWorkspaceRequest - if err := awsAwsjson11_deserializeDocumentFailedCreateWorkspaceRequest(&col, value); err != nil { + var col types.FailedCreateWorkspaceRequest + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailedCreateWorkspaceRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7325,7 +7341,7 @@ func awsAwsjson11_deserializeDocumentFailedCreateWorkspaceRequests(v *[]*types.F return nil } -func awsAwsjson11_deserializeDocumentFailedRebootWorkspaceRequests(v *[]*types.FailedWorkspaceChangeRequest, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedRebootWorkspaceRequests(v *[]types.FailedWorkspaceChangeRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7338,18 +7354,20 @@ func awsAwsjson11_deserializeDocumentFailedRebootWorkspaceRequests(v *[]*types.F return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedWorkspaceChangeRequest + var cv []types.FailedWorkspaceChangeRequest if *v == nil { - cv = []*types.FailedWorkspaceChangeRequest{} + cv = []types.FailedWorkspaceChangeRequest{} } else { cv = *v } for _, value := range shape { - var col *types.FailedWorkspaceChangeRequest - if err := awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(&col, value); err != nil { + var col types.FailedWorkspaceChangeRequest + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7357,7 +7375,7 @@ func awsAwsjson11_deserializeDocumentFailedRebootWorkspaceRequests(v *[]*types.F return nil } -func awsAwsjson11_deserializeDocumentFailedRebuildWorkspaceRequests(v *[]*types.FailedWorkspaceChangeRequest, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedRebuildWorkspaceRequests(v *[]types.FailedWorkspaceChangeRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7370,18 +7388,20 @@ func awsAwsjson11_deserializeDocumentFailedRebuildWorkspaceRequests(v *[]*types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedWorkspaceChangeRequest + var cv []types.FailedWorkspaceChangeRequest if *v == nil { - cv = []*types.FailedWorkspaceChangeRequest{} + cv = []types.FailedWorkspaceChangeRequest{} } else { cv = *v } for _, value := range shape { - var col *types.FailedWorkspaceChangeRequest - if err := awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(&col, value); err != nil { + var col types.FailedWorkspaceChangeRequest + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7389,7 +7409,7 @@ func awsAwsjson11_deserializeDocumentFailedRebuildWorkspaceRequests(v *[]*types. return nil } -func awsAwsjson11_deserializeDocumentFailedStartWorkspaceRequests(v *[]*types.FailedWorkspaceChangeRequest, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedStartWorkspaceRequests(v *[]types.FailedWorkspaceChangeRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7402,18 +7422,20 @@ func awsAwsjson11_deserializeDocumentFailedStartWorkspaceRequests(v *[]*types.Fa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedWorkspaceChangeRequest + var cv []types.FailedWorkspaceChangeRequest if *v == nil { - cv = []*types.FailedWorkspaceChangeRequest{} + cv = []types.FailedWorkspaceChangeRequest{} } else { cv = *v } for _, value := range shape { - var col *types.FailedWorkspaceChangeRequest - if err := awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(&col, value); err != nil { + var col types.FailedWorkspaceChangeRequest + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7421,7 +7443,7 @@ func awsAwsjson11_deserializeDocumentFailedStartWorkspaceRequests(v *[]*types.Fa return nil } -func awsAwsjson11_deserializeDocumentFailedStopWorkspaceRequests(v *[]*types.FailedWorkspaceChangeRequest, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedStopWorkspaceRequests(v *[]types.FailedWorkspaceChangeRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7434,18 +7456,20 @@ func awsAwsjson11_deserializeDocumentFailedStopWorkspaceRequests(v *[]*types.Fai return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedWorkspaceChangeRequest + var cv []types.FailedWorkspaceChangeRequest if *v == nil { - cv = []*types.FailedWorkspaceChangeRequest{} + cv = []types.FailedWorkspaceChangeRequest{} } else { cv = *v } for _, value := range shape { - var col *types.FailedWorkspaceChangeRequest - if err := awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(&col, value); err != nil { + var col types.FailedWorkspaceChangeRequest + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7453,7 +7477,7 @@ func awsAwsjson11_deserializeDocumentFailedStopWorkspaceRequests(v *[]*types.Fai return nil } -func awsAwsjson11_deserializeDocumentFailedTerminateWorkspaceRequests(v *[]*types.FailedWorkspaceChangeRequest, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedTerminateWorkspaceRequests(v *[]types.FailedWorkspaceChangeRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7466,18 +7490,20 @@ func awsAwsjson11_deserializeDocumentFailedTerminateWorkspaceRequests(v *[]*type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FailedWorkspaceChangeRequest + var cv []types.FailedWorkspaceChangeRequest if *v == nil { - cv = []*types.FailedWorkspaceChangeRequest{} + cv = []types.FailedWorkspaceChangeRequest{} } else { cv = *v } for _, value := range shape { - var col *types.FailedWorkspaceChangeRequest - if err := awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(&col, value); err != nil { + var col types.FailedWorkspaceChangeRequest + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7513,7 +7539,7 @@ func awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(v **types.Fail if !ok { return fmt.Errorf("expected ErrorType to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -7522,7 +7548,7 @@ func awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(v **types.Fail if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "WorkspaceId": @@ -7531,7 +7557,7 @@ func awsAwsjson11_deserializeDocumentFailedWorkspaceChangeRequest(v **types.Fail if !ok { return fmt.Errorf("expected WorkspaceId to be of type string, got %T instead", value) } - sv.WorkspaceId = &jtv + sv.WorkspaceId = ptr.String(jtv) } default: @@ -7571,7 +7597,7 @@ func awsAwsjson11_deserializeDocumentImagePermission(v **types.ImagePermission, if !ok { return fmt.Errorf("expected AwsAccount to be of type string, got %T instead", value) } - sv.SharedAccountId = &jtv + sv.SharedAccountId = ptr.String(jtv) } default: @@ -7583,7 +7609,7 @@ func awsAwsjson11_deserializeDocumentImagePermission(v **types.ImagePermission, return nil } -func awsAwsjson11_deserializeDocumentImagePermissions(v *[]*types.ImagePermission, value interface{}) error { +func awsAwsjson11_deserializeDocumentImagePermissions(v *[]types.ImagePermission, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7596,18 +7622,20 @@ func awsAwsjson11_deserializeDocumentImagePermissions(v *[]*types.ImagePermissio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ImagePermission + var cv []types.ImagePermission if *v == nil { - cv = []*types.ImagePermission{} + cv = []types.ImagePermission{} } else { cv = *v } for _, value := range shape { - var col *types.ImagePermission - if err := awsAwsjson11_deserializeDocumentImagePermission(&col, value); err != nil { + var col types.ImagePermission + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImagePermission(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7643,7 +7671,7 @@ func awsAwsjson11_deserializeDocumentInvalidParameterValuesException(v **types.I if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7683,7 +7711,7 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateException(v **types.Inv if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7695,7 +7723,7 @@ func awsAwsjson11_deserializeDocumentInvalidResourceStateException(v **types.Inv return nil } -func awsAwsjson11_deserializeDocumentIpGroupIdList(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentIpGroupIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7708,21 +7736,21 @@ func awsAwsjson11_deserializeDocumentIpGroupIdList(v *[]*string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected IpGroupId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7759,7 +7787,7 @@ func awsAwsjson11_deserializeDocumentIpRuleItem(v **types.IpRuleItem, value inte if !ok { return fmt.Errorf("expected IpRule to be of type string, got %T instead", value) } - sv.IpRule = &jtv + sv.IpRule = ptr.String(jtv) } case "ruleDesc": @@ -7768,7 +7796,7 @@ func awsAwsjson11_deserializeDocumentIpRuleItem(v **types.IpRuleItem, value inte if !ok { return fmt.Errorf("expected IpRuleDesc to be of type string, got %T instead", value) } - sv.RuleDesc = &jtv + sv.RuleDesc = ptr.String(jtv) } default: @@ -7780,7 +7808,7 @@ func awsAwsjson11_deserializeDocumentIpRuleItem(v **types.IpRuleItem, value inte return nil } -func awsAwsjson11_deserializeDocumentIpRuleList(v *[]*types.IpRuleItem, value interface{}) error { +func awsAwsjson11_deserializeDocumentIpRuleList(v *[]types.IpRuleItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7793,18 +7821,20 @@ func awsAwsjson11_deserializeDocumentIpRuleList(v *[]*types.IpRuleItem, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.IpRuleItem + var cv []types.IpRuleItem if *v == nil { - cv = []*types.IpRuleItem{} + cv = []types.IpRuleItem{} } else { cv = *v } for _, value := range shape { - var col *types.IpRuleItem - if err := awsAwsjson11_deserializeDocumentIpRuleItem(&col, value); err != nil { + var col types.IpRuleItem + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIpRuleItem(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7861,7 +7891,7 @@ func awsAwsjson11_deserializeDocumentModificationState(v **types.ModificationSta return nil } -func awsAwsjson11_deserializeDocumentModificationStateList(v *[]*types.ModificationState, value interface{}) error { +func awsAwsjson11_deserializeDocumentModificationStateList(v *[]types.ModificationState, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7874,18 +7904,20 @@ func awsAwsjson11_deserializeDocumentModificationStateList(v *[]*types.Modificat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ModificationState + var cv []types.ModificationState if *v == nil { - cv = []*types.ModificationState{} + cv = []types.ModificationState{} } else { cv = *v } for _, value := range shape { - var col *types.ModificationState - if err := awsAwsjson11_deserializeDocumentModificationState(&col, value); err != nil { + var col types.ModificationState + destAddr := &col + if err := awsAwsjson11_deserializeDocumentModificationState(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7961,7 +7993,7 @@ func awsAwsjson11_deserializeDocumentOperationInProgressException(v **types.Oper if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8001,7 +8033,7 @@ func awsAwsjson11_deserializeDocumentOperationNotSupportedException(v **types.Op if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8041,7 +8073,7 @@ func awsAwsjson11_deserializeDocumentResourceAlreadyExistsException(v **types.Re if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8081,7 +8113,7 @@ func awsAwsjson11_deserializeDocumentResourceAssociatedException(v **types.Resou if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8121,7 +8153,7 @@ func awsAwsjson11_deserializeDocumentResourceCreationFailedException(v **types.R if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8161,7 +8193,7 @@ func awsAwsjson11_deserializeDocumentResourceLimitExceededException(v **types.Re if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8201,7 +8233,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceId": @@ -8210,7 +8242,7 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } default: @@ -8250,7 +8282,7 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceId": @@ -8259,7 +8291,7 @@ func awsAwsjson11_deserializeDocumentResourceUnavailableException(v **types.Reso if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.ResourceId = &jtv + sv.ResourceId = ptr.String(jtv) } default: @@ -8299,7 +8331,7 @@ func awsAwsjson11_deserializeDocumentRootStorage(v **types.RootStorage, value in if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Capacity = &jtv + sv.Capacity = ptr.String(jtv) } default: @@ -8431,7 +8463,7 @@ func awsAwsjson11_deserializeDocumentSnapshot(v **types.Snapshot, value interfac return nil } -func awsAwsjson11_deserializeDocumentSnapshotList(v *[]*types.Snapshot, value interface{}) error { +func awsAwsjson11_deserializeDocumentSnapshotList(v *[]types.Snapshot, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8444,18 +8476,20 @@ func awsAwsjson11_deserializeDocumentSnapshotList(v *[]*types.Snapshot, value in return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Snapshot + var cv []types.Snapshot if *v == nil { - cv = []*types.Snapshot{} + cv = []types.Snapshot{} } else { cv = *v } for _, value := range shape { - var col *types.Snapshot - if err := awsAwsjson11_deserializeDocumentSnapshot(&col, value); err != nil { + var col types.Snapshot + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSnapshot(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8463,7 +8497,7 @@ func awsAwsjson11_deserializeDocumentSnapshotList(v *[]*types.Snapshot, value in return nil } -func awsAwsjson11_deserializeDocumentSubnetIds(v *[]*string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSubnetIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8476,21 +8510,21 @@ func awsAwsjson11_deserializeDocumentSubnetIds(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -8527,7 +8561,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -8536,7 +8570,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -8548,7 +8582,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8561,18 +8595,20 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsAwsjson11_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -8608,7 +8644,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedNetworkConfigurationException(v if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8648,7 +8684,7 @@ func awsAwsjson11_deserializeDocumentUnsupportedWorkspaceConfigurationException( if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -8688,7 +8724,7 @@ func awsAwsjson11_deserializeDocumentUserStorage(v **types.UserStorage, value in if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Capacity = &jtv + sv.Capacity = ptr.String(jtv) } default: @@ -8728,7 +8764,7 @@ func awsAwsjson11_deserializeDocumentWorkspace(v **types.Workspace, value interf if !ok { return fmt.Errorf("expected BundleId to be of type string, got %T instead", value) } - sv.BundleId = &jtv + sv.BundleId = ptr.String(jtv) } case "ComputerName": @@ -8737,7 +8773,7 @@ func awsAwsjson11_deserializeDocumentWorkspace(v **types.Workspace, value interf if !ok { return fmt.Errorf("expected ComputerName to be of type string, got %T instead", value) } - sv.ComputerName = &jtv + sv.ComputerName = ptr.String(jtv) } case "DirectoryId": @@ -8746,7 +8782,7 @@ func awsAwsjson11_deserializeDocumentWorkspace(v **types.Workspace, value interf if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } case "ErrorCode": @@ -8755,7 +8791,7 @@ func awsAwsjson11_deserializeDocumentWorkspace(v **types.Workspace, value interf if !ok { return fmt.Errorf("expected WorkspaceErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -8764,7 +8800,7 @@ func awsAwsjson11_deserializeDocumentWorkspace(v **types.Workspace, value interf if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "IpAddress": @@ -8773,7 +8809,7 @@ func awsAwsjson11_deserializeDocumentWorkspace(v **types.Workspace, value interf if !ok { return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - sv.IpAddress = &jtv + sv.IpAddress = ptr.String(jtv) } case "ModificationStates": @@ -8787,7 +8823,7 @@ func awsAwsjson11_deserializeDocumentWorkspace(v **types.Workspace, value interf if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.RootVolumeEncryptionEnabled = &jtv + sv.RootVolumeEncryptionEnabled = ptr.Bool(jtv) } case "State": @@ -8805,7 +8841,7 @@ func awsAwsjson11_deserializeDocumentWorkspace(v **types.Workspace, value interf if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - sv.SubnetId = &jtv + sv.SubnetId = ptr.String(jtv) } case "UserName": @@ -8814,7 +8850,7 @@ func awsAwsjson11_deserializeDocumentWorkspace(v **types.Workspace, value interf if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } case "UserVolumeEncryptionEnabled": @@ -8823,7 +8859,7 @@ func awsAwsjson11_deserializeDocumentWorkspace(v **types.Workspace, value interf if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.UserVolumeEncryptionEnabled = &jtv + sv.UserVolumeEncryptionEnabled = ptr.Bool(jtv) } case "VolumeEncryptionKey": @@ -8832,7 +8868,7 @@ func awsAwsjson11_deserializeDocumentWorkspace(v **types.Workspace, value interf if !ok { return fmt.Errorf("expected VolumeEncryptionKey to be of type string, got %T instead", value) } - sv.VolumeEncryptionKey = &jtv + sv.VolumeEncryptionKey = ptr.String(jtv) } case "WorkspaceId": @@ -8841,7 +8877,7 @@ func awsAwsjson11_deserializeDocumentWorkspace(v **types.Workspace, value interf if !ok { return fmt.Errorf("expected WorkspaceId to be of type string, got %T instead", value) } - sv.WorkspaceId = &jtv + sv.WorkspaceId = ptr.String(jtv) } case "WorkspaceProperties": @@ -8980,7 +9016,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceBundle(v **types.WorkspaceBundle, if !ok { return fmt.Errorf("expected BundleId to be of type string, got %T instead", value) } - sv.BundleId = &jtv + sv.BundleId = ptr.String(jtv) } case "ComputeType": @@ -8994,7 +9030,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceBundle(v **types.WorkspaceBundle, if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ImageId": @@ -9003,7 +9039,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceBundle(v **types.WorkspaceBundle, if !ok { return fmt.Errorf("expected WorkspaceImageId to be of type string, got %T instead", value) } - sv.ImageId = &jtv + sv.ImageId = ptr.String(jtv) } case "LastUpdatedTime": @@ -9025,7 +9061,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceBundle(v **types.WorkspaceBundle, if !ok { return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Owner": @@ -9034,7 +9070,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceBundle(v **types.WorkspaceBundle, if !ok { return fmt.Errorf("expected BundleOwner to be of type string, got %T instead", value) } - sv.Owner = &jtv + sv.Owner = ptr.String(jtv) } case "RootStorage": @@ -9119,7 +9155,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceConnectionStatus(v **types.Workspa if !ok { return fmt.Errorf("expected WorkspaceId to be of type string, got %T instead", value) } - sv.WorkspaceId = &jtv + sv.WorkspaceId = ptr.String(jtv) } default: @@ -9131,7 +9167,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceConnectionStatus(v **types.Workspa return nil } -func awsAwsjson11_deserializeDocumentWorkspaceConnectionStatusList(v *[]*types.WorkspaceConnectionStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentWorkspaceConnectionStatusList(v *[]types.WorkspaceConnectionStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9144,18 +9180,20 @@ func awsAwsjson11_deserializeDocumentWorkspaceConnectionStatusList(v *[]*types.W return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorkspaceConnectionStatus + var cv []types.WorkspaceConnectionStatus if *v == nil { - cv = []*types.WorkspaceConnectionStatus{} + cv = []types.WorkspaceConnectionStatus{} } else { cv = *v } for _, value := range shape { - var col *types.WorkspaceConnectionStatus - if err := awsAwsjson11_deserializeDocumentWorkspaceConnectionStatus(&col, value); err != nil { + var col types.WorkspaceConnectionStatus + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkspaceConnectionStatus(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9191,7 +9229,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceDirectory(v **types.WorkspaceDirec if !ok { return fmt.Errorf("expected Alias to be of type string, got %T instead", value) } - sv.Alias = &jtv + sv.Alias = ptr.String(jtv) } case "CustomerUserName": @@ -9200,7 +9238,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceDirectory(v **types.WorkspaceDirec if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.CustomerUserName = &jtv + sv.CustomerUserName = ptr.String(jtv) } case "DirectoryId": @@ -9209,7 +9247,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceDirectory(v **types.WorkspaceDirec if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } case "DirectoryName": @@ -9218,7 +9256,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceDirectory(v **types.WorkspaceDirec if !ok { return fmt.Errorf("expected DirectoryName to be of type string, got %T instead", value) } - sv.DirectoryName = &jtv + sv.DirectoryName = ptr.String(jtv) } case "DirectoryType": @@ -9241,7 +9279,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceDirectory(v **types.WorkspaceDirec if !ok { return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.IamRoleId = &jtv + sv.IamRoleId = ptr.String(jtv) } case "ipGroupIds": @@ -9255,7 +9293,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceDirectory(v **types.WorkspaceDirec if !ok { return fmt.Errorf("expected RegistrationCode to be of type string, got %T instead", value) } - sv.RegistrationCode = &jtv + sv.RegistrationCode = ptr.String(jtv) } case "SelfservicePermissions": @@ -9302,7 +9340,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceDirectory(v **types.WorkspaceDirec if !ok { return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } - sv.WorkspaceSecurityGroupId = &jtv + sv.WorkspaceSecurityGroupId = ptr.String(jtv) } default: @@ -9355,7 +9393,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceImage(v **types.WorkspaceImage, va if !ok { return fmt.Errorf("expected WorkspaceImageDescription to be of type string, got %T instead", value) } - sv.Description = &jtv + sv.Description = ptr.String(jtv) } case "ErrorCode": @@ -9364,7 +9402,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceImage(v **types.WorkspaceImage, va if !ok { return fmt.Errorf("expected WorkspaceImageErrorCode to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "ErrorMessage": @@ -9373,7 +9411,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceImage(v **types.WorkspaceImage, va if !ok { return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.ErrorMessage = &jtv + sv.ErrorMessage = ptr.String(jtv) } case "ImageId": @@ -9382,7 +9420,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceImage(v **types.WorkspaceImage, va if !ok { return fmt.Errorf("expected WorkspaceImageId to be of type string, got %T instead", value) } - sv.ImageId = &jtv + sv.ImageId = ptr.String(jtv) } case "Name": @@ -9391,7 +9429,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceImage(v **types.WorkspaceImage, va if !ok { return fmt.Errorf("expected WorkspaceImageName to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "OperatingSystem": @@ -9405,7 +9443,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceImage(v **types.WorkspaceImage, va if !ok { return fmt.Errorf("expected AwsAccount to be of type string, got %T instead", value) } - sv.OwnerAccountId = &jtv + sv.OwnerAccountId = ptr.String(jtv) } case "RequiredTenancy": @@ -9435,7 +9473,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceImage(v **types.WorkspaceImage, va return nil } -func awsAwsjson11_deserializeDocumentWorkspaceImageList(v *[]*types.WorkspaceImage, value interface{}) error { +func awsAwsjson11_deserializeDocumentWorkspaceImageList(v *[]types.WorkspaceImage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9448,18 +9486,20 @@ func awsAwsjson11_deserializeDocumentWorkspaceImageList(v *[]*types.WorkspaceIma return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorkspaceImage + var cv []types.WorkspaceImage if *v == nil { - cv = []*types.WorkspaceImage{} + cv = []types.WorkspaceImage{} } else { cv = *v } for _, value := range shape { - var col *types.WorkspaceImage - if err := awsAwsjson11_deserializeDocumentWorkspaceImage(&col, value); err != nil { + var col types.WorkspaceImage + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkspaceImage(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9467,7 +9507,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceImageList(v *[]*types.WorkspaceIma return nil } -func awsAwsjson11_deserializeDocumentWorkspaceList(v *[]*types.Workspace, value interface{}) error { +func awsAwsjson11_deserializeDocumentWorkspaceList(v *[]types.Workspace, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9480,18 +9520,20 @@ func awsAwsjson11_deserializeDocumentWorkspaceList(v *[]*types.Workspace, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Workspace + var cv []types.Workspace if *v == nil { - cv = []*types.Workspace{} + cv = []types.Workspace{} } else { cv = *v } for _, value := range shape { - var col *types.Workspace - if err := awsAwsjson11_deserializeDocumentWorkspace(&col, value); err != nil { + var col types.Workspace + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkspace(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9615,7 +9657,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceRequest(v **types.WorkspaceRequest if !ok { return fmt.Errorf("expected BundleId to be of type string, got %T instead", value) } - sv.BundleId = &jtv + sv.BundleId = ptr.String(jtv) } case "DirectoryId": @@ -9624,7 +9666,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceRequest(v **types.WorkspaceRequest if !ok { return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) } - sv.DirectoryId = &jtv + sv.DirectoryId = ptr.String(jtv) } case "RootVolumeEncryptionEnabled": @@ -9633,7 +9675,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceRequest(v **types.WorkspaceRequest if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.RootVolumeEncryptionEnabled = &jtv + sv.RootVolumeEncryptionEnabled = ptr.Bool(jtv) } case "Tags": @@ -9647,7 +9689,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceRequest(v **types.WorkspaceRequest if !ok { return fmt.Errorf("expected UserName to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } case "UserVolumeEncryptionEnabled": @@ -9656,7 +9698,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceRequest(v **types.WorkspaceRequest if !ok { return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) } - sv.UserVolumeEncryptionEnabled = &jtv + sv.UserVolumeEncryptionEnabled = ptr.Bool(jtv) } case "VolumeEncryptionKey": @@ -9665,7 +9707,7 @@ func awsAwsjson11_deserializeDocumentWorkspaceRequest(v **types.WorkspaceRequest if !ok { return fmt.Errorf("expected VolumeEncryptionKey to be of type string, got %T instead", value) } - sv.VolumeEncryptionKey = &jtv + sv.VolumeEncryptionKey = ptr.String(jtv) } case "WorkspaceProperties": @@ -9710,7 +9752,7 @@ func awsAwsjson11_deserializeDocumentWorkspacesDefaultRoleNotFoundException(v ** if !ok { return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -9750,7 +9792,7 @@ func awsAwsjson11_deserializeDocumentWorkspacesIpGroup(v **types.WorkspacesIpGro if !ok { return fmt.Errorf("expected IpGroupDesc to be of type string, got %T instead", value) } - sv.GroupDesc = &jtv + sv.GroupDesc = ptr.String(jtv) } case "groupId": @@ -9759,7 +9801,7 @@ func awsAwsjson11_deserializeDocumentWorkspacesIpGroup(v **types.WorkspacesIpGro if !ok { return fmt.Errorf("expected IpGroupId to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } case "groupName": @@ -9768,7 +9810,7 @@ func awsAwsjson11_deserializeDocumentWorkspacesIpGroup(v **types.WorkspacesIpGro if !ok { return fmt.Errorf("expected IpGroupName to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } case "userRules": @@ -9785,7 +9827,7 @@ func awsAwsjson11_deserializeDocumentWorkspacesIpGroup(v **types.WorkspacesIpGro return nil } -func awsAwsjson11_deserializeDocumentWorkspacesIpGroupsList(v *[]*types.WorkspacesIpGroup, value interface{}) error { +func awsAwsjson11_deserializeDocumentWorkspacesIpGroupsList(v *[]types.WorkspacesIpGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9798,18 +9840,20 @@ func awsAwsjson11_deserializeDocumentWorkspacesIpGroupsList(v *[]*types.Workspac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.WorkspacesIpGroup + var cv []types.WorkspacesIpGroup if *v == nil { - cv = []*types.WorkspacesIpGroup{} + cv = []types.WorkspacesIpGroup{} } else { cv = *v } for _, value := range shape { - var col *types.WorkspacesIpGroup - if err := awsAwsjson11_deserializeDocumentWorkspacesIpGroup(&col, value); err != nil { + var col types.WorkspacesIpGroup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentWorkspacesIpGroup(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -9845,7 +9889,7 @@ func awsAwsjson11_deserializeOpDocumentAssociateConnectionAliasOutput(v **Associ if !ok { return fmt.Errorf("expected ConnectionIdentifier to be of type string, got %T instead", value) } - sv.ConnectionIdentifier = &jtv + sv.ConnectionIdentifier = ptr.String(jtv) } default: @@ -9947,7 +9991,7 @@ func awsAwsjson11_deserializeOpDocumentCopyWorkspaceImageOutput(v **CopyWorkspac if !ok { return fmt.Errorf("expected WorkspaceImageId to be of type string, got %T instead", value) } - sv.ImageId = &jtv + sv.ImageId = ptr.String(jtv) } default: @@ -9987,7 +10031,7 @@ func awsAwsjson11_deserializeOpDocumentCreateConnectionAliasOutput(v **CreateCon if !ok { return fmt.Errorf("expected ConnectionAliasId to be of type string, got %T instead", value) } - sv.AliasId = &jtv + sv.AliasId = ptr.String(jtv) } default: @@ -10027,7 +10071,7 @@ func awsAwsjson11_deserializeOpDocumentCreateIpGroupOutput(v **CreateIpGroupOutp if !ok { return fmt.Errorf("expected IpGroupId to be of type string, got %T instead", value) } - sv.GroupId = &jtv + sv.GroupId = ptr.String(jtv) } default: @@ -10299,7 +10343,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAccountModificationsOutput(v **De if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10339,7 +10383,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeAccountOutput(v **DescribeAccount if !ok { return fmt.Errorf("expected DedicatedTenancyManagementCidrRange to be of type string, got %T instead", value) } - sv.DedicatedTenancyManagementCidrRange = &jtv + sv.DedicatedTenancyManagementCidrRange = ptr.String(jtv) } case "DedicatedTenancySupport": @@ -10429,7 +10473,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeConnectionAliasesOutput(v **Descr if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10469,7 +10513,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeConnectionAliasPermissionsOutput( if !ok { return fmt.Errorf("expected ConnectionAliasId to be of type string, got %T instead", value) } - sv.AliasId = &jtv + sv.AliasId = ptr.String(jtv) } case "ConnectionAliasPermissions": @@ -10483,7 +10527,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeConnectionAliasPermissionsOutput( if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10523,7 +10567,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeIpGroupsOutput(v **DescribeIpGrou if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Result": @@ -10609,7 +10653,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeWorkspaceBundlesOutput(v **Descri if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10654,7 +10698,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeWorkspaceDirectoriesOutput(v **De if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10694,7 +10738,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeWorkspaceImagePermissionsOutput(v if !ok { return fmt.Errorf("expected WorkspaceImageId to be of type string, got %T instead", value) } - sv.ImageId = &jtv + sv.ImageId = ptr.String(jtv) } case "ImagePermissions": @@ -10708,7 +10752,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeWorkspaceImagePermissionsOutput(v if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10753,7 +10797,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeWorkspaceImagesOutput(v **Describ if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -10793,7 +10837,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeWorkspacesConnectionStatusOutput( if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "WorkspacesConnectionStatus": @@ -10879,7 +10923,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeWorkspacesOutput(v **DescribeWork if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Workspaces": @@ -10986,7 +11030,7 @@ func awsAwsjson11_deserializeOpDocumentImportWorkspaceImageOutput(v **ImportWork if !ok { return fmt.Errorf("expected WorkspaceImageId to be of type string, got %T instead", value) } - sv.ImageId = &jtv + sv.ImageId = ptr.String(jtv) } default: @@ -11031,7 +11075,7 @@ func awsAwsjson11_deserializeOpDocumentListAvailableManagementCidrRangesOutput(v if !ok { return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -11071,7 +11115,7 @@ func awsAwsjson11_deserializeOpDocumentMigrateWorkspaceOutput(v **MigrateWorkspa if !ok { return fmt.Errorf("expected WorkspaceId to be of type string, got %T instead", value) } - sv.SourceWorkspaceId = &jtv + sv.SourceWorkspaceId = ptr.String(jtv) } case "TargetWorkspaceId": @@ -11080,7 +11124,7 @@ func awsAwsjson11_deserializeOpDocumentMigrateWorkspaceOutput(v **MigrateWorkspa if !ok { return fmt.Errorf("expected WorkspaceId to be of type string, got %T instead", value) } - sv.TargetWorkspaceId = &jtv + sv.TargetWorkspaceId = ptr.String(jtv) } default: diff --git a/service/workspaces/go.mod b/service/workspaces/go.mod index c4a1d66fab7..57c3c30018c 100644 --- a/service/workspaces/go.mod +++ b/service/workspaces/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/workspaces go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/workspaces/serializers.go b/service/workspaces/serializers.go index 76fbbf461fc..49233a87098 100644 --- a/service/workspaces/serializers.go +++ b/service/workspaces/serializers.go @@ -2317,17 +2317,13 @@ func awsAwsjson11_serializeDocumentApplicationList(v []types.Application, value return nil } -func awsAwsjson11_serializeDocumentBundleIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentBundleIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2344,17 +2340,13 @@ func awsAwsjson11_serializeDocumentClientProperties(v *types.ClientProperties, v return nil } -func awsAwsjson11_serializeDocumentConnectionAliasIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentConnectionAliasIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2376,47 +2368,35 @@ func awsAwsjson11_serializeDocumentConnectionAliasPermission(v *types.Connection return nil } -func awsAwsjson11_serializeDocumentDirectoryIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDirectoryIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentIpGroupIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIpGroupIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentIpRevokedRuleList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIpRevokedRuleList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2438,17 +2418,13 @@ func awsAwsjson11_serializeDocumentIpRuleItem(v *types.IpRuleItem, value smithyj return nil } -func awsAwsjson11_serializeDocumentIpRuleList(v []*types.IpRuleItem, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentIpRuleList(v []types.IpRuleItem, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentIpRuleItem(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentIpRuleItem(&v[i], av); err != nil { return err } } @@ -2467,17 +2443,13 @@ func awsAwsjson11_serializeDocumentRebootRequest(v *types.RebootRequest, value s return nil } -func awsAwsjson11_serializeDocumentRebootWorkspaceRequests(v []*types.RebootRequest, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRebootWorkspaceRequests(v []types.RebootRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRebootRequest(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRebootRequest(&v[i], av); err != nil { return err } } @@ -2496,34 +2468,26 @@ func awsAwsjson11_serializeDocumentRebuildRequest(v *types.RebuildRequest, value return nil } -func awsAwsjson11_serializeDocumentRebuildWorkspaceRequests(v []*types.RebuildRequest, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRebuildWorkspaceRequests(v []types.RebuildRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentRebuildRequest(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentRebuildRequest(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentResourceIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentResourceIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2572,17 +2536,13 @@ func awsAwsjson11_serializeDocumentStartRequest(v *types.StartRequest, value smi return nil } -func awsAwsjson11_serializeDocumentStartWorkspaceRequests(v []*types.StartRequest, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStartWorkspaceRequests(v []types.StartRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentStartRequest(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentStartRequest(&v[i], av); err != nil { return err } } @@ -2601,34 +2561,26 @@ func awsAwsjson11_serializeDocumentStopRequest(v *types.StopRequest, value smith return nil } -func awsAwsjson11_serializeDocumentStopWorkspaceRequests(v []*types.StopRequest, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentStopWorkspaceRequests(v []types.StopRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentStopRequest(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentStopRequest(&v[i], av); err != nil { return err } } return nil } -func awsAwsjson11_serializeDocumentSubnetIds(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentSubnetIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2650,32 +2602,24 @@ func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsAwsjson11_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTag(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2694,17 +2638,13 @@ func awsAwsjson11_serializeDocumentTerminateRequest(v *types.TerminateRequest, v return nil } -func awsAwsjson11_serializeDocumentTerminateWorkspaceRequests(v []*types.TerminateRequest, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentTerminateWorkspaceRequests(v []types.TerminateRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentTerminateRequest(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentTerminateRequest(&v[i], av); err != nil { return err } } @@ -2790,32 +2730,24 @@ func awsAwsjson11_serializeDocumentWorkspaceCreationProperties(v *types.Workspac return nil } -func awsAwsjson11_serializeDocumentWorkspaceIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentWorkspaceIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsAwsjson11_serializeDocumentWorkspaceImageIdList(v []*string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentWorkspaceImageIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } @@ -2903,17 +2835,13 @@ func awsAwsjson11_serializeDocumentWorkspaceRequest(v *types.WorkspaceRequest, v return nil } -func awsAwsjson11_serializeDocumentWorkspaceRequestList(v []*types.WorkspaceRequest, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentWorkspaceRequestList(v []types.WorkspaceRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsAwsjson11_serializeDocumentWorkspaceRequest(v[i], av); err != nil { + if err := awsAwsjson11_serializeDocumentWorkspaceRequest(&v[i], av); err != nil { return err } } diff --git a/service/workspaces/types/types.go b/service/workspaces/types/types.go index a9410e9c3a4..4c6e8b233a2 100644 --- a/service/workspaces/types/types.go +++ b/service/workspaces/types/types.go @@ -67,7 +67,7 @@ type ConnectionAlias struct { AliasId *string // The association status of the connection alias. - Associations []*ConnectionAliasAssociation + Associations []ConnectionAliasAssociation // The connection string specified for the connection alias. The connection string // must be in the form of a fully qualified domain name (FQDN), such as @@ -349,7 +349,7 @@ type Workspace struct { IpAddress *string // The modification states of the WorkSpace. - ModificationStates []*ModificationState + ModificationStates []ModificationState // Indicates whether the data stored on the root volume is encrypted. RootVolumeEncryptionEnabled *bool @@ -541,14 +541,14 @@ type WorkspaceDirectory struct { DirectoryType WorkspaceDirectoryType // The IP addresses of the DNS servers for the directory. - DnsIpAddresses []*string + DnsIpAddresses []string // The identifier of the IAM role. This is the role that allows Amazon WorkSpaces // to make calls to other services, such as Amazon EC2, on your behalf. IamRoleId *string // The identifiers of the IP access control groups associated with the directory. - IpGroupIds []*string + IpGroupIds []string // The registration code for the directory. This is the code that users enter in // their Amazon WorkSpaces client application to connect to the directory. @@ -568,7 +568,7 @@ type WorkspaceDirectory struct { State WorkspaceDirectoryState // The identifiers of the subnets used with the directory. - SubnetIds []*string + SubnetIds []string // Specifies whether the directory is dedicated or shared. To use Bring Your Own // License (BYOL), this value must be set to DEDICATED. For more information, see @@ -676,7 +676,7 @@ type WorkspaceRequest struct { RootVolumeEncryptionEnabled *bool // The tags for the WorkSpace. - Tags []*Tag + Tags []Tag // Indicates whether the data stored on the user volume is encrypted. UserVolumeEncryptionEnabled *bool @@ -702,5 +702,5 @@ type WorkspacesIpGroup struct { GroupName *string // The rules. - UserRules []*IpRuleItem + UserRules []IpRuleItem } diff --git a/service/workspaces/validators.go b/service/workspaces/validators.go index 6ad27f5f36a..48321f8d3b2 100644 --- a/service/workspaces/validators.go +++ b/service/workspaces/validators.go @@ -1003,13 +1003,13 @@ func validateRebootRequest(v *types.RebootRequest) error { } } -func validateRebootWorkspaceRequests(v []*types.RebootRequest) error { +func validateRebootWorkspaceRequests(v []types.RebootRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RebootWorkspaceRequests"} for i := range v { - if err := validateRebootRequest(v[i]); err != nil { + if err := validateRebootRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1035,13 +1035,13 @@ func validateRebuildRequest(v *types.RebuildRequest) error { } } -func validateRebuildWorkspaceRequests(v []*types.RebuildRequest) error { +func validateRebuildWorkspaceRequests(v []types.RebuildRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "RebuildWorkspaceRequests"} for i := range v { - if err := validateRebuildRequest(v[i]); err != nil { + if err := validateRebuildRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1067,13 +1067,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1099,13 +1099,13 @@ func validateTerminateRequest(v *types.TerminateRequest) error { } } -func validateTerminateWorkspaceRequests(v []*types.TerminateRequest) error { +func validateTerminateWorkspaceRequests(v []types.TerminateRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TerminateWorkspaceRequests"} for i := range v { - if err := validateTerminateRequest(v[i]); err != nil { + if err := validateTerminateRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1142,13 +1142,13 @@ func validateWorkspaceRequest(v *types.WorkspaceRequest) error { } } -func validateWorkspaceRequestList(v []*types.WorkspaceRequest) error { +func validateWorkspaceRequestList(v []types.WorkspaceRequest) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "WorkspaceRequestList"} for i := range v { - if err := validateWorkspaceRequest(v[i]); err != nil { + if err := validateWorkspaceRequest(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } diff --git a/service/xray/api_op_BatchGetTraces.go b/service/xray/api_op_BatchGetTraces.go index 7ac7b7feba1..cde5f97891b 100644 --- a/service/xray/api_op_BatchGetTraces.go +++ b/service/xray/api_op_BatchGetTraces.go @@ -34,7 +34,7 @@ type BatchGetTracesInput struct { // Specify the trace IDs of requests for which to retrieve segments. // // This member is required. - TraceIds []*string + TraceIds []string // Pagination token. NextToken *string @@ -46,10 +46,10 @@ type BatchGetTracesOutput struct { NextToken *string // Full traces for the specified requests. - Traces []*types.Trace + Traces []types.Trace // Trace IDs of requests that haven't been processed. - UnprocessedTraceIds []*string + UnprocessedTraceIds []string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/xray/api_op_CreateGroup.go b/service/xray/api_op_CreateGroup.go index 64723159b5d..17c39dc4511 100644 --- a/service/xray/api_op_CreateGroup.go +++ b/service/xray/api_op_CreateGroup.go @@ -70,7 +70,7 @@ type CreateGroupInput struct { // // * Don't use aws: as a // prefix for keys; it's reserved for AWS use. - Tags []*types.Tag + Tags []types.Tag } type CreateGroupOutput struct { diff --git a/service/xray/api_op_CreateSamplingRule.go b/service/xray/api_op_CreateSamplingRule.go index 3a388952682..43028bfd677 100644 --- a/service/xray/api_op_CreateSamplingRule.go +++ b/service/xray/api_op_CreateSamplingRule.go @@ -61,7 +61,7 @@ type CreateSamplingRuleInput struct { // // * Don't use aws: // as a prefix for keys; it's reserved for AWS use. - Tags []*types.Tag + Tags []types.Tag } type CreateSamplingRuleOutput struct { diff --git a/service/xray/api_op_GetGroups.go b/service/xray/api_op_GetGroups.go index 3828c604f4b..1a9be96dd41 100644 --- a/service/xray/api_op_GetGroups.go +++ b/service/xray/api_op_GetGroups.go @@ -36,7 +36,7 @@ type GetGroupsInput struct { type GetGroupsOutput struct { // The collection of all active groups. - Groups []*types.GroupSummary + Groups []types.GroupSummary // Pagination token. NextToken *string diff --git a/service/xray/api_op_GetSamplingRules.go b/service/xray/api_op_GetSamplingRules.go index 79bcad9174b..4cc040460a8 100644 --- a/service/xray/api_op_GetSamplingRules.go +++ b/service/xray/api_op_GetSamplingRules.go @@ -39,7 +39,7 @@ type GetSamplingRulesOutput struct { NextToken *string // Rule definitions and metadata. - SamplingRuleRecords []*types.SamplingRuleRecord + SamplingRuleRecords []types.SamplingRuleRecord // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/xray/api_op_GetSamplingStatisticSummaries.go b/service/xray/api_op_GetSamplingStatisticSummaries.go index 355d9cd970e..8c27ef76b96 100644 --- a/service/xray/api_op_GetSamplingStatisticSummaries.go +++ b/service/xray/api_op_GetSamplingStatisticSummaries.go @@ -39,7 +39,7 @@ type GetSamplingStatisticSummariesOutput struct { NextToken *string // Information about the number of requests instrumented for each sampling rule. - SamplingStatisticSummaries []*types.SamplingStatisticSummary + SamplingStatisticSummaries []types.SamplingStatisticSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/xray/api_op_GetSamplingTargets.go b/service/xray/api_op_GetSamplingTargets.go index 4688b611abc..04644b70918 100644 --- a/service/xray/api_op_GetSamplingTargets.go +++ b/service/xray/api_op_GetSamplingTargets.go @@ -34,7 +34,7 @@ type GetSamplingTargetsInput struct { // Information about rules that the service is using to sample requests. // // This member is required. - SamplingStatisticsDocuments []*types.SamplingStatisticsDocument + SamplingStatisticsDocuments []types.SamplingStatisticsDocument } type GetSamplingTargetsOutput struct { @@ -45,10 +45,10 @@ type GetSamplingTargetsOutput struct { LastRuleModification *time.Time // Updated rules that the service should use to sample requests. - SamplingTargetDocuments []*types.SamplingTargetDocument + SamplingTargetDocuments []types.SamplingTargetDocument // Information about SamplingStatisticsDocument that X-Ray could not process. - UnprocessedStatistics []*types.UnprocessedStatistics + UnprocessedStatistics []types.UnprocessedStatistics // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/xray/api_op_GetServiceGraph.go b/service/xray/api_op_GetServiceGraph.go index 88ea30f85ae..b8e843e88b0 100644 --- a/service/xray/api_op_GetServiceGraph.go +++ b/service/xray/api_op_GetServiceGraph.go @@ -61,7 +61,7 @@ type GetServiceGraphOutput struct { // A flag indicating whether the group's filter expression has been consistent, or // if the returned service graph may show traces from an older version of the // group's filter expression. - ContainsOldGroupVersions *bool + ContainsOldGroupVersions bool // The end of the time frame for which the graph was generated. EndTime *time.Time @@ -71,7 +71,7 @@ type GetServiceGraphOutput struct { // The services that have processed a traced request during the specified time // frame. - Services []*types.Service + Services []types.Service // The start of the time frame for which the graph was generated. StartTime *time.Time diff --git a/service/xray/api_op_GetTimeSeriesServiceStatistics.go b/service/xray/api_op_GetTimeSeriesServiceStatistics.go index e91c259a5ab..be36832b2c7 100644 --- a/service/xray/api_op_GetTimeSeriesServiceStatistics.go +++ b/service/xray/api_op_GetTimeSeriesServiceStatistics.go @@ -63,13 +63,13 @@ type GetTimeSeriesServiceStatisticsOutput struct { // A flag indicating whether or not a group's filter expression has been // consistent, or if a returned aggregation might show statistics from an older // version of the group's filter expression. - ContainsOldGroupVersions *bool + ContainsOldGroupVersions bool // Pagination token. NextToken *string // The collection of statistics. - TimeSeriesServiceStatistics []*types.TimeSeriesServiceStatistics + TimeSeriesServiceStatistics []types.TimeSeriesServiceStatistics // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/xray/api_op_GetTraceGraph.go b/service/xray/api_op_GetTraceGraph.go index 97b2d9154c0..46bc9c4462b 100644 --- a/service/xray/api_op_GetTraceGraph.go +++ b/service/xray/api_op_GetTraceGraph.go @@ -32,7 +32,7 @@ type GetTraceGraphInput struct { // Trace IDs of requests for which to generate a service graph. // // This member is required. - TraceIds []*string + TraceIds []string // Pagination token. NextToken *string @@ -44,7 +44,7 @@ type GetTraceGraphOutput struct { NextToken *string // The services that have processed one of the specified requests. - Services []*types.Service + Services []types.Service // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/xray/api_op_GetTraceSummaries.go b/service/xray/api_op_GetTraceSummaries.go index 00a527b1aa9..95ac97fbfd5 100644 --- a/service/xray/api_op_GetTraceSummaries.go +++ b/service/xray/api_op_GetTraceSummaries.go @@ -82,7 +82,7 @@ type GetTraceSummariesOutput struct { // Trace IDs and annotations for traces that were found in the specified time // frame. - TraceSummaries []*types.TraceSummary + TraceSummaries []types.TraceSummary // The total number of traces processed, including traces that did not match the // specified filter expression. diff --git a/service/xray/api_op_ListTagsForResource.go b/service/xray/api_op_ListTagsForResource.go index 0776fa4676e..b66111b2909 100644 --- a/service/xray/api_op_ListTagsForResource.go +++ b/service/xray/api_op_ListTagsForResource.go @@ -49,7 +49,7 @@ type ListTagsForResourceOutput struct { // A list of tags, as key and value pairs, that is associated with the specified // X-Ray group or sampling rule. - Tags []*types.Tag + Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/xray/api_op_PutTelemetryRecords.go b/service/xray/api_op_PutTelemetryRecords.go index a490bfff4ff..31423a6585f 100644 --- a/service/xray/api_op_PutTelemetryRecords.go +++ b/service/xray/api_op_PutTelemetryRecords.go @@ -32,7 +32,7 @@ type PutTelemetryRecordsInput struct { // // // This member is required. - TelemetryRecords []*types.TelemetryRecord + TelemetryRecords []types.TelemetryRecord // EC2InstanceId *string diff --git a/service/xray/api_op_PutTraceSegments.go b/service/xray/api_op_PutTraceSegments.go index 189f6a74605..0d98708d332 100644 --- a/service/xray/api_op_PutTraceSegments.go +++ b/service/xray/api_op_PutTraceSegments.go @@ -79,13 +79,13 @@ type PutTraceSegmentsInput struct { // subsegments. // // This member is required. - TraceSegmentDocuments []*string + TraceSegmentDocuments []string } type PutTraceSegmentsOutput struct { // Segments that failed processing. - UnprocessedTraceSegments []*types.UnprocessedTraceSegment + UnprocessedTraceSegments []types.UnprocessedTraceSegment // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/xray/api_op_TagResource.go b/service/xray/api_op_TagResource.go index d0ec132da4d..376673dabcd 100644 --- a/service/xray/api_op_TagResource.go +++ b/service/xray/api_op_TagResource.go @@ -58,7 +58,7 @@ type TagResourceInput struct { // or delete system tags. // // This member is required. - Tags []*types.Tag + Tags []types.Tag } type TagResourceOutput struct { diff --git a/service/xray/api_op_UntagResource.go b/service/xray/api_op_UntagResource.go index bcf265442a7..ec4dff03b01 100644 --- a/service/xray/api_op_UntagResource.go +++ b/service/xray/api_op_UntagResource.go @@ -38,7 +38,7 @@ type UntagResourceInput struct { // sampling rule. // // This member is required. - TagKeys []*string + TagKeys []string } type UntagResourceOutput struct { diff --git a/service/xray/deserializers.go b/service/xray/deserializers.go index 263ef33c25e..bfb4c31d271 100644 --- a/service/xray/deserializers.go +++ b/service/xray/deserializers.go @@ -161,7 +161,7 @@ func awsRestjson1_deserializeOpDocumentBatchGetTracesOutput(v **BatchGetTracesOu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Traces": @@ -1169,7 +1169,7 @@ func awsRestjson1_deserializeOpDocumentGetGroupsOutput(v **GetGroupsOutput, valu if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } default: @@ -1323,7 +1323,7 @@ func awsRestjson1_deserializeOpDocumentGetSamplingRulesOutput(v **GetSamplingRul if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SamplingRuleRecords": @@ -1482,7 +1482,7 @@ func awsRestjson1_deserializeOpDocumentGetSamplingStatisticSummariesOutput(v **G if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "SamplingStatisticSummaries": @@ -1809,7 +1809,7 @@ func awsRestjson1_deserializeOpDocumentGetServiceGraphOutput(v **GetServiceGraph if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ContainsOldGroupVersions = &jtv + sv.ContainsOldGroupVersions = jtv } case "EndTime": @@ -1831,7 +1831,7 @@ func awsRestjson1_deserializeOpDocumentGetServiceGraphOutput(v **GetServiceGraph if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Services": @@ -2003,7 +2003,7 @@ func awsRestjson1_deserializeOpDocumentGetTimeSeriesServiceStatisticsOutput(v ** if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ContainsOldGroupVersions = &jtv + sv.ContainsOldGroupVersions = jtv } case "NextToken": @@ -2012,7 +2012,7 @@ func awsRestjson1_deserializeOpDocumentGetTimeSeriesServiceStatisticsOutput(v ** if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TimeSeriesServiceStatistics": @@ -2171,7 +2171,7 @@ func awsRestjson1_deserializeOpDocumentGetTraceGraphOutput(v **GetTraceGraphOutp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Services": @@ -2343,7 +2343,7 @@ func awsRestjson1_deserializeOpDocumentGetTraceSummariesOutput(v **GetTraceSumma if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "TracesProcessedCount": @@ -2356,7 +2356,7 @@ func awsRestjson1_deserializeOpDocumentGetTraceSummariesOutput(v **GetTraceSumma if err != nil { return err } - sv.TracesProcessedCount = &i64 + sv.TracesProcessedCount = ptr.Int64(i64) } case "TraceSummaries": @@ -2518,7 +2518,7 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = &jtv + sv.NextToken = ptr.String(jtv) } case "Tags": @@ -3610,7 +3610,7 @@ func awsRestjson1_deserializeDocumentAlias(v **types.Alias, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Names": @@ -3624,7 +3624,7 @@ func awsRestjson1_deserializeDocumentAlias(v **types.Alias, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -3636,7 +3636,7 @@ func awsRestjson1_deserializeDocumentAlias(v **types.Alias, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentAliasList(v *[]*types.Alias, value interface{}) error { +func awsRestjson1_deserializeDocumentAliasList(v *[]types.Alias, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3649,18 +3649,20 @@ func awsRestjson1_deserializeDocumentAliasList(v *[]*types.Alias, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Alias + var cv []types.Alias if *v == nil { - cv = []*types.Alias{} + cv = []types.Alias{} } else { cv = *v } for _, value := range shape { - var col *types.Alias - if err := awsRestjson1_deserializeDocumentAlias(&col, value); err != nil { + var col types.Alias + destAddr := &col + if err := awsRestjson1_deserializeDocumentAlias(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -3668,7 +3670,7 @@ func awsRestjson1_deserializeDocumentAliasList(v *[]*types.Alias, value interfac return nil } -func awsRestjson1_deserializeDocumentAliasNames(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAliasNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3681,21 +3683,21 @@ func awsRestjson1_deserializeDocumentAliasNames(v *[]*string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -3704,7 +3706,7 @@ func awsRestjson1_deserializeDocumentAliasNames(v *[]*string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentAnnotations(v *map[string][]*types.ValueWithServiceIds, value interface{}) error { +func awsRestjson1_deserializeDocumentAnnotations(v *map[string][]types.ValueWithServiceIds, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3717,18 +3719,20 @@ func awsRestjson1_deserializeDocumentAnnotations(v *map[string][]*types.ValueWit return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]*types.ValueWithServiceIds + var mv map[string][]types.ValueWithServiceIds if *v == nil { - mv = map[string][]*types.ValueWithServiceIds{} + mv = map[string][]types.ValueWithServiceIds{} } else { mv = *v } for key, value := range shape { - var parsedVal []*types.ValueWithServiceIds - if err := awsRestjson1_deserializeDocumentValuesWithServiceIds(&parsedVal, value); err != nil { + var parsedVal []types.ValueWithServiceIds + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentValuesWithServiceIds(&mapVar, value); err != nil { return err } + parsedVal = mapVar mv[key] = parsedVal } @@ -3764,7 +3768,7 @@ func awsRestjson1_deserializeDocumentAnnotationValue(v **types.AnnotationValue, if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.BooleanValue = &jtv + sv.BooleanValue = ptr.Bool(jtv) } case "NumberValue": @@ -3777,7 +3781,7 @@ func awsRestjson1_deserializeDocumentAnnotationValue(v **types.AnnotationValue, if err != nil { return err } - sv.NumberValue = &f64 + sv.NumberValue = ptr.Float64(f64) } case "StringValue": @@ -3786,7 +3790,7 @@ func awsRestjson1_deserializeDocumentAnnotationValue(v **types.AnnotationValue, if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.StringValue = &jtv + sv.StringValue = ptr.String(jtv) } default: @@ -3798,7 +3802,7 @@ func awsRestjson1_deserializeDocumentAnnotationValue(v **types.AnnotationValue, return nil } -func awsRestjson1_deserializeDocumentAttributeMap(v *map[string]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentAttributeMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3811,21 +3815,21 @@ func awsRestjson1_deserializeDocumentAttributeMap(v *map[string]*string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]*string + var mv map[string]string if *v == nil { - mv = map[string]*string{} + mv = map[string]string{} } else { mv = *v } for key, value := range shape { - var parsedVal *string + var parsedVal string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value) } - parsedVal = &jtv + parsedVal = jtv } mv[key] = parsedVal @@ -3862,7 +3866,7 @@ func awsRestjson1_deserializeDocumentAvailabilityZoneDetail(v **types.Availabili if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -3959,7 +3963,7 @@ func awsRestjson1_deserializeDocumentEdge(v **types.Edge, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentEdgeList(v *[]*types.Edge, value interface{}) error { +func awsRestjson1_deserializeDocumentEdgeList(v *[]types.Edge, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3972,18 +3976,20 @@ func awsRestjson1_deserializeDocumentEdgeList(v *[]*types.Edge, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Edge + var cv []types.Edge if *v == nil { - cv = []*types.Edge{} + cv = []types.Edge{} } else { cv = *v } for _, value := range shape { - var col *types.Edge - if err := awsRestjson1_deserializeDocumentEdge(&col, value); err != nil { + var col types.Edge + destAddr := &col + if err := awsRestjson1_deserializeDocumentEdge(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4033,7 +4039,7 @@ func awsRestjson1_deserializeDocumentEdgeStatistics(v **types.EdgeStatistics, va if err != nil { return err } - sv.OkCount = &i64 + sv.OkCount = ptr.Int64(i64) } case "TotalCount": @@ -4046,7 +4052,7 @@ func awsRestjson1_deserializeDocumentEdgeStatistics(v **types.EdgeStatistics, va if err != nil { return err } - sv.TotalCount = &i64 + sv.TotalCount = ptr.Int64(i64) } case "TotalResponseTime": @@ -4059,7 +4065,7 @@ func awsRestjson1_deserializeDocumentEdgeStatistics(v **types.EdgeStatistics, va if err != nil { return err } - sv.TotalResponseTime = &f64 + sv.TotalResponseTime = ptr.Float64(f64) } default: @@ -4099,7 +4105,7 @@ func awsRestjson1_deserializeDocumentEncryptionConfig(v **types.EncryptionConfig if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.KeyId = &jtv + sv.KeyId = ptr.String(jtv) } case "Status": @@ -4157,7 +4163,7 @@ func awsRestjson1_deserializeDocumentErrorRootCause(v **types.ErrorRootCause, va if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.ClientImpacting = &jtv + sv.ClientImpacting = ptr.Bool(jtv) } case "Services": @@ -4207,7 +4213,7 @@ func awsRestjson1_deserializeDocumentErrorRootCauseEntity(v **types.ErrorRootCau if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Remote": @@ -4216,7 +4222,7 @@ func awsRestjson1_deserializeDocumentErrorRootCauseEntity(v **types.ErrorRootCau if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.Remote = &jtv + sv.Remote = ptr.Bool(jtv) } default: @@ -4228,7 +4234,7 @@ func awsRestjson1_deserializeDocumentErrorRootCauseEntity(v **types.ErrorRootCau return nil } -func awsRestjson1_deserializeDocumentErrorRootCauseEntityPath(v *[]*types.ErrorRootCauseEntity, value interface{}) error { +func awsRestjson1_deserializeDocumentErrorRootCauseEntityPath(v *[]types.ErrorRootCauseEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4241,18 +4247,20 @@ func awsRestjson1_deserializeDocumentErrorRootCauseEntityPath(v *[]*types.ErrorR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ErrorRootCauseEntity + var cv []types.ErrorRootCauseEntity if *v == nil { - cv = []*types.ErrorRootCauseEntity{} + cv = []types.ErrorRootCauseEntity{} } else { cv = *v } for _, value := range shape { - var col *types.ErrorRootCauseEntity - if err := awsRestjson1_deserializeDocumentErrorRootCauseEntity(&col, value); err != nil { + var col types.ErrorRootCauseEntity + destAddr := &col + if err := awsRestjson1_deserializeDocumentErrorRootCauseEntity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4260,7 +4268,7 @@ func awsRestjson1_deserializeDocumentErrorRootCauseEntityPath(v *[]*types.ErrorR return nil } -func awsRestjson1_deserializeDocumentErrorRootCauses(v *[]*types.ErrorRootCause, value interface{}) error { +func awsRestjson1_deserializeDocumentErrorRootCauses(v *[]types.ErrorRootCause, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4273,18 +4281,20 @@ func awsRestjson1_deserializeDocumentErrorRootCauses(v *[]*types.ErrorRootCause, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ErrorRootCause + var cv []types.ErrorRootCause if *v == nil { - cv = []*types.ErrorRootCause{} + cv = []types.ErrorRootCause{} } else { cv = *v } for _, value := range shape { - var col *types.ErrorRootCause - if err := awsRestjson1_deserializeDocumentErrorRootCause(&col, value); err != nil { + var col types.ErrorRootCause + destAddr := &col + if err := awsRestjson1_deserializeDocumentErrorRootCause(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4320,7 +4330,7 @@ func awsRestjson1_deserializeDocumentErrorRootCauseService(v **types.ErrorRootCa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "EntityPath": @@ -4334,7 +4344,7 @@ func awsRestjson1_deserializeDocumentErrorRootCauseService(v **types.ErrorRootCa if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.Inferred = &jtv + sv.Inferred = ptr.Bool(jtv) } case "Name": @@ -4343,7 +4353,7 @@ func awsRestjson1_deserializeDocumentErrorRootCauseService(v **types.ErrorRootCa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Names": @@ -4357,7 +4367,7 @@ func awsRestjson1_deserializeDocumentErrorRootCauseService(v **types.ErrorRootCa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -4369,7 +4379,7 @@ func awsRestjson1_deserializeDocumentErrorRootCauseService(v **types.ErrorRootCa return nil } -func awsRestjson1_deserializeDocumentErrorRootCauseServices(v *[]*types.ErrorRootCauseService, value interface{}) error { +func awsRestjson1_deserializeDocumentErrorRootCauseServices(v *[]types.ErrorRootCauseService, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4382,18 +4392,20 @@ func awsRestjson1_deserializeDocumentErrorRootCauseServices(v *[]*types.ErrorRoo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ErrorRootCauseService + var cv []types.ErrorRootCauseService if *v == nil { - cv = []*types.ErrorRootCauseService{} + cv = []types.ErrorRootCauseService{} } else { cv = *v } for _, value := range shape { - var col *types.ErrorRootCauseService - if err := awsRestjson1_deserializeDocumentErrorRootCauseService(&col, value); err != nil { + var col types.ErrorRootCauseService + destAddr := &col + if err := awsRestjson1_deserializeDocumentErrorRootCauseService(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4433,7 +4445,7 @@ func awsRestjson1_deserializeDocumentErrorStatistics(v **types.ErrorStatistics, if err != nil { return err } - sv.OtherCount = &i64 + sv.OtherCount = ptr.Int64(i64) } case "ThrottleCount": @@ -4446,7 +4458,7 @@ func awsRestjson1_deserializeDocumentErrorStatistics(v **types.ErrorStatistics, if err != nil { return err } - sv.ThrottleCount = &i64 + sv.ThrottleCount = ptr.Int64(i64) } case "TotalCount": @@ -4459,7 +4471,7 @@ func awsRestjson1_deserializeDocumentErrorStatistics(v **types.ErrorStatistics, if err != nil { return err } - sv.TotalCount = &i64 + sv.TotalCount = ptr.Int64(i64) } default: @@ -4499,7 +4511,7 @@ func awsRestjson1_deserializeDocumentFaultRootCause(v **types.FaultRootCause, va if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.ClientImpacting = &jtv + sv.ClientImpacting = ptr.Bool(jtv) } case "Services": @@ -4549,7 +4561,7 @@ func awsRestjson1_deserializeDocumentFaultRootCauseEntity(v **types.FaultRootCau if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Remote": @@ -4558,7 +4570,7 @@ func awsRestjson1_deserializeDocumentFaultRootCauseEntity(v **types.FaultRootCau if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.Remote = &jtv + sv.Remote = ptr.Bool(jtv) } default: @@ -4570,7 +4582,7 @@ func awsRestjson1_deserializeDocumentFaultRootCauseEntity(v **types.FaultRootCau return nil } -func awsRestjson1_deserializeDocumentFaultRootCauseEntityPath(v *[]*types.FaultRootCauseEntity, value interface{}) error { +func awsRestjson1_deserializeDocumentFaultRootCauseEntityPath(v *[]types.FaultRootCauseEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4583,18 +4595,20 @@ func awsRestjson1_deserializeDocumentFaultRootCauseEntityPath(v *[]*types.FaultR return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FaultRootCauseEntity + var cv []types.FaultRootCauseEntity if *v == nil { - cv = []*types.FaultRootCauseEntity{} + cv = []types.FaultRootCauseEntity{} } else { cv = *v } for _, value := range shape { - var col *types.FaultRootCauseEntity - if err := awsRestjson1_deserializeDocumentFaultRootCauseEntity(&col, value); err != nil { + var col types.FaultRootCauseEntity + destAddr := &col + if err := awsRestjson1_deserializeDocumentFaultRootCauseEntity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4602,7 +4616,7 @@ func awsRestjson1_deserializeDocumentFaultRootCauseEntityPath(v *[]*types.FaultR return nil } -func awsRestjson1_deserializeDocumentFaultRootCauses(v *[]*types.FaultRootCause, value interface{}) error { +func awsRestjson1_deserializeDocumentFaultRootCauses(v *[]types.FaultRootCause, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4615,18 +4629,20 @@ func awsRestjson1_deserializeDocumentFaultRootCauses(v *[]*types.FaultRootCause, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FaultRootCause + var cv []types.FaultRootCause if *v == nil { - cv = []*types.FaultRootCause{} + cv = []types.FaultRootCause{} } else { cv = *v } for _, value := range shape { - var col *types.FaultRootCause - if err := awsRestjson1_deserializeDocumentFaultRootCause(&col, value); err != nil { + var col types.FaultRootCause + destAddr := &col + if err := awsRestjson1_deserializeDocumentFaultRootCause(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4662,7 +4678,7 @@ func awsRestjson1_deserializeDocumentFaultRootCauseService(v **types.FaultRootCa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "EntityPath": @@ -4676,7 +4692,7 @@ func awsRestjson1_deserializeDocumentFaultRootCauseService(v **types.FaultRootCa if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.Inferred = &jtv + sv.Inferred = ptr.Bool(jtv) } case "Name": @@ -4685,7 +4701,7 @@ func awsRestjson1_deserializeDocumentFaultRootCauseService(v **types.FaultRootCa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Names": @@ -4699,7 +4715,7 @@ func awsRestjson1_deserializeDocumentFaultRootCauseService(v **types.FaultRootCa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -4711,7 +4727,7 @@ func awsRestjson1_deserializeDocumentFaultRootCauseService(v **types.FaultRootCa return nil } -func awsRestjson1_deserializeDocumentFaultRootCauseServices(v *[]*types.FaultRootCauseService, value interface{}) error { +func awsRestjson1_deserializeDocumentFaultRootCauseServices(v *[]types.FaultRootCauseService, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4724,18 +4740,20 @@ func awsRestjson1_deserializeDocumentFaultRootCauseServices(v *[]*types.FaultRoo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.FaultRootCauseService + var cv []types.FaultRootCauseService if *v == nil { - cv = []*types.FaultRootCauseService{} + cv = []types.FaultRootCauseService{} } else { cv = *v } for _, value := range shape { - var col *types.FaultRootCauseService - if err := awsRestjson1_deserializeDocumentFaultRootCauseService(&col, value); err != nil { + var col types.FaultRootCauseService + destAddr := &col + if err := awsRestjson1_deserializeDocumentFaultRootCauseService(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4775,7 +4793,7 @@ func awsRestjson1_deserializeDocumentFaultStatistics(v **types.FaultStatistics, if err != nil { return err } - sv.OtherCount = &i64 + sv.OtherCount = ptr.Int64(i64) } case "TotalCount": @@ -4788,7 +4806,7 @@ func awsRestjson1_deserializeDocumentFaultStatistics(v **types.FaultStatistics, if err != nil { return err } - sv.TotalCount = &i64 + sv.TotalCount = ptr.Int64(i64) } default: @@ -4828,7 +4846,7 @@ func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FilterExpression = &jtv + sv.FilterExpression = ptr.String(jtv) } case "GroupARN": @@ -4837,7 +4855,7 @@ func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GroupARN = &jtv + sv.GroupARN = ptr.String(jtv) } case "GroupName": @@ -4846,7 +4864,7 @@ func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) e if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } case "InsightsConfiguration": @@ -4891,7 +4909,7 @@ func awsRestjson1_deserializeDocumentGroupSummary(v **types.GroupSummary, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FilterExpression = &jtv + sv.FilterExpression = ptr.String(jtv) } case "GroupARN": @@ -4900,7 +4918,7 @@ func awsRestjson1_deserializeDocumentGroupSummary(v **types.GroupSummary, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GroupARN = &jtv + sv.GroupARN = ptr.String(jtv) } case "GroupName": @@ -4909,7 +4927,7 @@ func awsRestjson1_deserializeDocumentGroupSummary(v **types.GroupSummary, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.GroupName = &jtv + sv.GroupName = ptr.String(jtv) } case "InsightsConfiguration": @@ -4926,7 +4944,7 @@ func awsRestjson1_deserializeDocumentGroupSummary(v **types.GroupSummary, value return nil } -func awsRestjson1_deserializeDocumentGroupSummaryList(v *[]*types.GroupSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupSummaryList(v *[]types.GroupSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4939,18 +4957,20 @@ func awsRestjson1_deserializeDocumentGroupSummaryList(v *[]*types.GroupSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.GroupSummary + var cv []types.GroupSummary if *v == nil { - cv = []*types.GroupSummary{} + cv = []types.GroupSummary{} } else { cv = *v } for _, value := range shape { - var col *types.GroupSummary - if err := awsRestjson1_deserializeDocumentGroupSummary(&col, value); err != nil { + var col types.GroupSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroupSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -4958,7 +4978,7 @@ func awsRestjson1_deserializeDocumentGroupSummaryList(v *[]*types.GroupSummary, return nil } -func awsRestjson1_deserializeDocumentHistogram(v *[]*types.HistogramEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentHistogram(v *[]types.HistogramEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4971,18 +4991,20 @@ func awsRestjson1_deserializeDocumentHistogram(v *[]*types.HistogramEntry, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.HistogramEntry + var cv []types.HistogramEntry if *v == nil { - cv = []*types.HistogramEntry{} + cv = []types.HistogramEntry{} } else { cv = *v } for _, value := range shape { - var col *types.HistogramEntry - if err := awsRestjson1_deserializeDocumentHistogramEntry(&col, value); err != nil { + var col types.HistogramEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentHistogramEntry(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5022,7 +5044,7 @@ func awsRestjson1_deserializeDocumentHistogramEntry(v **types.HistogramEntry, va if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.Count = int32(i64) } case "Value": @@ -5035,7 +5057,7 @@ func awsRestjson1_deserializeDocumentHistogramEntry(v **types.HistogramEntry, va if err != nil { return err } - sv.Value = &f64 + sv.Value = f64 } default: @@ -5075,7 +5097,7 @@ func awsRestjson1_deserializeDocumentHttp(v **types.Http, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClientIp = &jtv + sv.ClientIp = ptr.String(jtv) } case "HttpMethod": @@ -5084,7 +5106,7 @@ func awsRestjson1_deserializeDocumentHttp(v **types.Http, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HttpMethod = &jtv + sv.HttpMethod = ptr.String(jtv) } case "HttpStatus": @@ -5106,7 +5128,7 @@ func awsRestjson1_deserializeDocumentHttp(v **types.Http, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HttpURL = &jtv + sv.HttpURL = ptr.String(jtv) } case "UserAgent": @@ -5115,7 +5137,7 @@ func awsRestjson1_deserializeDocumentHttp(v **types.Http, value interface{}) err if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserAgent = &jtv + sv.UserAgent = ptr.String(jtv) } default: @@ -5155,7 +5177,7 @@ func awsRestjson1_deserializeDocumentInsightsConfiguration(v **types.InsightsCon if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.InsightsEnabled = &jtv + sv.InsightsEnabled = ptr.Bool(jtv) } case "NotificationsEnabled": @@ -5164,7 +5186,7 @@ func awsRestjson1_deserializeDocumentInsightsConfiguration(v **types.InsightsCon if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.NotificationsEnabled = &jtv + sv.NotificationsEnabled = ptr.Bool(jtv) } default: @@ -5204,7 +5226,7 @@ func awsRestjson1_deserializeDocumentInstanceIdDetail(v **types.InstanceIdDetail if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -5244,7 +5266,7 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5284,7 +5306,7 @@ func awsRestjson1_deserializeDocumentResourceARNDetail(v **types.ResourceARNDeta if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ARN = &jtv + sv.ARN = ptr.String(jtv) } default: @@ -5324,7 +5346,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceName": @@ -5333,7 +5355,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } default: @@ -5373,7 +5395,7 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCause(v **types.ResponseTim if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.ClientImpacting = &jtv + sv.ClientImpacting = ptr.Bool(jtv) } case "Services": @@ -5422,7 +5444,7 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCauseEntity(v **types.Respo if err != nil { return err } - sv.Coverage = &f64 + sv.Coverage = ptr.Float64(f64) } case "Name": @@ -5431,7 +5453,7 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCauseEntity(v **types.Respo if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Remote": @@ -5440,7 +5462,7 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCauseEntity(v **types.Respo if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.Remote = &jtv + sv.Remote = ptr.Bool(jtv) } default: @@ -5452,7 +5474,7 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCauseEntity(v **types.Respo return nil } -func awsRestjson1_deserializeDocumentResponseTimeRootCauseEntityPath(v *[]*types.ResponseTimeRootCauseEntity, value interface{}) error { +func awsRestjson1_deserializeDocumentResponseTimeRootCauseEntityPath(v *[]types.ResponseTimeRootCauseEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5465,18 +5487,20 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCauseEntityPath(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResponseTimeRootCauseEntity + var cv []types.ResponseTimeRootCauseEntity if *v == nil { - cv = []*types.ResponseTimeRootCauseEntity{} + cv = []types.ResponseTimeRootCauseEntity{} } else { cv = *v } for _, value := range shape { - var col *types.ResponseTimeRootCauseEntity - if err := awsRestjson1_deserializeDocumentResponseTimeRootCauseEntity(&col, value); err != nil { + var col types.ResponseTimeRootCauseEntity + destAddr := &col + if err := awsRestjson1_deserializeDocumentResponseTimeRootCauseEntity(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5484,7 +5508,7 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCauseEntityPath(v *[]*types return nil } -func awsRestjson1_deserializeDocumentResponseTimeRootCauses(v *[]*types.ResponseTimeRootCause, value interface{}) error { +func awsRestjson1_deserializeDocumentResponseTimeRootCauses(v *[]types.ResponseTimeRootCause, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5497,18 +5521,20 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCauses(v *[]*types.Response return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResponseTimeRootCause + var cv []types.ResponseTimeRootCause if *v == nil { - cv = []*types.ResponseTimeRootCause{} + cv = []types.ResponseTimeRootCause{} } else { cv = *v } for _, value := range shape { - var col *types.ResponseTimeRootCause - if err := awsRestjson1_deserializeDocumentResponseTimeRootCause(&col, value); err != nil { + var col types.ResponseTimeRootCause + destAddr := &col + if err := awsRestjson1_deserializeDocumentResponseTimeRootCause(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5544,7 +5570,7 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCauseService(v **types.Resp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "EntityPath": @@ -5558,7 +5584,7 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCauseService(v **types.Resp if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.Inferred = &jtv + sv.Inferred = ptr.Bool(jtv) } case "Name": @@ -5567,7 +5593,7 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCauseService(v **types.Resp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Names": @@ -5581,7 +5607,7 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCauseService(v **types.Resp if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -5593,7 +5619,7 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCauseService(v **types.Resp return nil } -func awsRestjson1_deserializeDocumentResponseTimeRootCauseServices(v *[]*types.ResponseTimeRootCauseService, value interface{}) error { +func awsRestjson1_deserializeDocumentResponseTimeRootCauseServices(v *[]types.ResponseTimeRootCauseService, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5606,18 +5632,20 @@ func awsRestjson1_deserializeDocumentResponseTimeRootCauseServices(v *[]*types.R return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResponseTimeRootCauseService + var cv []types.ResponseTimeRootCauseService if *v == nil { - cv = []*types.ResponseTimeRootCauseService{} + cv = []types.ResponseTimeRootCauseService{} } else { cv = *v } for _, value := range shape { - var col *types.ResponseTimeRootCauseService - if err := awsRestjson1_deserializeDocumentResponseTimeRootCauseService(&col, value); err != nil { + var col types.ResponseTimeRootCauseService + destAddr := &col + if err := awsRestjson1_deserializeDocumentResponseTimeRootCauseService(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5653,7 +5681,7 @@ func awsRestjson1_deserializeDocumentRootCauseException(v **types.RootCauseExcep if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "Name": @@ -5662,7 +5690,7 @@ func awsRestjson1_deserializeDocumentRootCauseException(v **types.RootCauseExcep if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } default: @@ -5674,7 +5702,7 @@ func awsRestjson1_deserializeDocumentRootCauseException(v **types.RootCauseExcep return nil } -func awsRestjson1_deserializeDocumentRootCauseExceptions(v *[]*types.RootCauseException, value interface{}) error { +func awsRestjson1_deserializeDocumentRootCauseExceptions(v *[]types.RootCauseException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5687,18 +5715,20 @@ func awsRestjson1_deserializeDocumentRootCauseExceptions(v *[]*types.RootCauseEx return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.RootCauseException + var cv []types.RootCauseException if *v == nil { - cv = []*types.RootCauseException{} + cv = []types.RootCauseException{} } else { cv = *v } for _, value := range shape { - var col *types.RootCauseException - if err := awsRestjson1_deserializeDocumentRootCauseException(&col, value); err != nil { + var col types.RootCauseException + destAddr := &col + if err := awsRestjson1_deserializeDocumentRootCauseException(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -5734,7 +5764,7 @@ func awsRestjson1_deserializeDocumentRuleLimitExceededException(v **types.RuleLi if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -5783,7 +5813,7 @@ func awsRestjson1_deserializeDocumentSamplingRule(v **types.SamplingRule, value if err != nil { return err } - sv.FixedRate = &f64 + sv.FixedRate = f64 } case "Host": @@ -5792,7 +5822,7 @@ func awsRestjson1_deserializeDocumentSamplingRule(v **types.SamplingRule, value if !ok { return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.Host = &jtv + sv.Host = ptr.String(jtv) } case "HTTPMethod": @@ -5801,7 +5831,7 @@ func awsRestjson1_deserializeDocumentSamplingRule(v **types.SamplingRule, value if !ok { return fmt.Errorf("expected HTTPMethod to be of type string, got %T instead", value) } - sv.HTTPMethod = &jtv + sv.HTTPMethod = ptr.String(jtv) } case "Priority": @@ -5814,7 +5844,7 @@ func awsRestjson1_deserializeDocumentSamplingRule(v **types.SamplingRule, value if err != nil { return err } - sv.Priority = ptr.Int32(int32(i64)) + sv.Priority = int32(i64) } case "ReservoirSize": @@ -5827,7 +5857,7 @@ func awsRestjson1_deserializeDocumentSamplingRule(v **types.SamplingRule, value if err != nil { return err } - sv.ReservoirSize = ptr.Int32(int32(i64)) + sv.ReservoirSize = int32(i64) } case "ResourceARN": @@ -5836,7 +5866,7 @@ func awsRestjson1_deserializeDocumentSamplingRule(v **types.SamplingRule, value if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = &jtv + sv.ResourceARN = ptr.String(jtv) } case "RuleARN": @@ -5845,7 +5875,7 @@ func awsRestjson1_deserializeDocumentSamplingRule(v **types.SamplingRule, value if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RuleARN = &jtv + sv.RuleARN = ptr.String(jtv) } case "RuleName": @@ -5854,7 +5884,7 @@ func awsRestjson1_deserializeDocumentSamplingRule(v **types.SamplingRule, value if !ok { return fmt.Errorf("expected RuleName to be of type string, got %T instead", value) } - sv.RuleName = &jtv + sv.RuleName = ptr.String(jtv) } case "ServiceName": @@ -5863,7 +5893,7 @@ func awsRestjson1_deserializeDocumentSamplingRule(v **types.SamplingRule, value if !ok { return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) } - sv.ServiceName = &jtv + sv.ServiceName = ptr.String(jtv) } case "ServiceType": @@ -5872,7 +5902,7 @@ func awsRestjson1_deserializeDocumentSamplingRule(v **types.SamplingRule, value if !ok { return fmt.Errorf("expected ServiceType to be of type string, got %T instead", value) } - sv.ServiceType = &jtv + sv.ServiceType = ptr.String(jtv) } case "URLPath": @@ -5881,7 +5911,7 @@ func awsRestjson1_deserializeDocumentSamplingRule(v **types.SamplingRule, value if !ok { return fmt.Errorf("expected URLPath to be of type string, got %T instead", value) } - sv.URLPath = &jtv + sv.URLPath = ptr.String(jtv) } case "Version": @@ -5894,7 +5924,7 @@ func awsRestjson1_deserializeDocumentSamplingRule(v **types.SamplingRule, value if err != nil { return err } - sv.Version = ptr.Int32(int32(i64)) + sv.Version = int32(i64) } default: @@ -5968,7 +5998,7 @@ func awsRestjson1_deserializeDocumentSamplingRuleRecord(v **types.SamplingRuleRe return nil } -func awsRestjson1_deserializeDocumentSamplingRuleRecordList(v *[]*types.SamplingRuleRecord, value interface{}) error { +func awsRestjson1_deserializeDocumentSamplingRuleRecordList(v *[]types.SamplingRuleRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5981,18 +6011,20 @@ func awsRestjson1_deserializeDocumentSamplingRuleRecordList(v *[]*types.Sampling return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SamplingRuleRecord + var cv []types.SamplingRuleRecord if *v == nil { - cv = []*types.SamplingRuleRecord{} + cv = []types.SamplingRuleRecord{} } else { cv = *v } for _, value := range shape { - var col *types.SamplingRuleRecord - if err := awsRestjson1_deserializeDocumentSamplingRuleRecord(&col, value); err != nil { + var col types.SamplingRuleRecord + destAddr := &col + if err := awsRestjson1_deserializeDocumentSamplingRuleRecord(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6032,7 +6064,7 @@ func awsRestjson1_deserializeDocumentSamplingStatisticSummary(v **types.Sampling if err != nil { return err } - sv.BorrowCount = ptr.Int32(int32(i64)) + sv.BorrowCount = int32(i64) } case "RequestCount": @@ -6045,7 +6077,7 @@ func awsRestjson1_deserializeDocumentSamplingStatisticSummary(v **types.Sampling if err != nil { return err } - sv.RequestCount = ptr.Int32(int32(i64)) + sv.RequestCount = int32(i64) } case "RuleName": @@ -6054,7 +6086,7 @@ func awsRestjson1_deserializeDocumentSamplingStatisticSummary(v **types.Sampling if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RuleName = &jtv + sv.RuleName = ptr.String(jtv) } case "SampledCount": @@ -6067,7 +6099,7 @@ func awsRestjson1_deserializeDocumentSamplingStatisticSummary(v **types.Sampling if err != nil { return err } - sv.SampledCount = ptr.Int32(int32(i64)) + sv.SampledCount = int32(i64) } case "Timestamp": @@ -6092,7 +6124,7 @@ func awsRestjson1_deserializeDocumentSamplingStatisticSummary(v **types.Sampling return nil } -func awsRestjson1_deserializeDocumentSamplingStatisticSummaryList(v *[]*types.SamplingStatisticSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentSamplingStatisticSummaryList(v *[]types.SamplingStatisticSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6105,18 +6137,20 @@ func awsRestjson1_deserializeDocumentSamplingStatisticSummaryList(v *[]*types.Sa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SamplingStatisticSummary + var cv []types.SamplingStatisticSummary if *v == nil { - cv = []*types.SamplingStatisticSummary{} + cv = []types.SamplingStatisticSummary{} } else { cv = *v } for _, value := range shape { - var col *types.SamplingStatisticSummary - if err := awsRestjson1_deserializeDocumentSamplingStatisticSummary(&col, value); err != nil { + var col types.SamplingStatisticSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentSamplingStatisticSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6156,7 +6190,7 @@ func awsRestjson1_deserializeDocumentSamplingTargetDocument(v **types.SamplingTa if err != nil { return err } - sv.FixedRate = &f64 + sv.FixedRate = f64 } case "Interval": @@ -6204,7 +6238,7 @@ func awsRestjson1_deserializeDocumentSamplingTargetDocument(v **types.SamplingTa if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RuleName = &jtv + sv.RuleName = ptr.String(jtv) } default: @@ -6216,7 +6250,7 @@ func awsRestjson1_deserializeDocumentSamplingTargetDocument(v **types.SamplingTa return nil } -func awsRestjson1_deserializeDocumentSamplingTargetDocumentList(v *[]*types.SamplingTargetDocument, value interface{}) error { +func awsRestjson1_deserializeDocumentSamplingTargetDocumentList(v *[]types.SamplingTargetDocument, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6229,18 +6263,20 @@ func awsRestjson1_deserializeDocumentSamplingTargetDocumentList(v *[]*types.Samp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.SamplingTargetDocument + var cv []types.SamplingTargetDocument if *v == nil { - cv = []*types.SamplingTargetDocument{} + cv = []types.SamplingTargetDocument{} } else { cv = *v } for _, value := range shape { - var col *types.SamplingTargetDocument - if err := awsRestjson1_deserializeDocumentSamplingTargetDocument(&col, value); err != nil { + var col types.SamplingTargetDocument + destAddr := &col + if err := awsRestjson1_deserializeDocumentSamplingTargetDocument(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6276,7 +6312,7 @@ func awsRestjson1_deserializeDocumentSegment(v **types.Segment, value interface{ if !ok { return fmt.Errorf("expected SegmentDocument to be of type string, got %T instead", value) } - sv.Document = &jtv + sv.Document = ptr.String(jtv) } case "Id": @@ -6285,7 +6321,7 @@ func awsRestjson1_deserializeDocumentSegment(v **types.Segment, value interface{ if !ok { return fmt.Errorf("expected SegmentId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } default: @@ -6297,7 +6333,7 @@ func awsRestjson1_deserializeDocumentSegment(v **types.Segment, value interface{ return nil } -func awsRestjson1_deserializeDocumentSegmentList(v *[]*types.Segment, value interface{}) error { +func awsRestjson1_deserializeDocumentSegmentList(v *[]types.Segment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6310,18 +6346,20 @@ func awsRestjson1_deserializeDocumentSegmentList(v *[]*types.Segment, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Segment + var cv []types.Segment if *v == nil { - cv = []*types.Segment{} + cv = []types.Segment{} } else { cv = *v } for _, value := range shape { - var col *types.Segment - if err := awsRestjson1_deserializeDocumentSegment(&col, value); err != nil { + var col types.Segment + destAddr := &col + if err := awsRestjson1_deserializeDocumentSegment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6357,7 +6395,7 @@ func awsRestjson1_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "DurationHistogram": @@ -6389,7 +6427,7 @@ func awsRestjson1_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Names": @@ -6421,7 +6459,7 @@ func awsRestjson1_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.Root = &jtv + sv.Root = ptr.Bool(jtv) } case "StartTime": @@ -6443,7 +6481,7 @@ func awsRestjson1_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.State = &jtv + sv.State = ptr.String(jtv) } case "SummaryStatistics": @@ -6457,7 +6495,7 @@ func awsRestjson1_deserializeDocumentService(v **types.Service, value interface{ if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -6497,7 +6535,7 @@ func awsRestjson1_deserializeDocumentServiceId(v **types.ServiceId, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AccountId = &jtv + sv.AccountId = ptr.String(jtv) } case "Name": @@ -6506,7 +6544,7 @@ func awsRestjson1_deserializeDocumentServiceId(v **types.ServiceId, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = &jtv + sv.Name = ptr.String(jtv) } case "Names": @@ -6520,7 +6558,7 @@ func awsRestjson1_deserializeDocumentServiceId(v **types.ServiceId, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = &jtv + sv.Type = ptr.String(jtv) } default: @@ -6532,7 +6570,7 @@ func awsRestjson1_deserializeDocumentServiceId(v **types.ServiceId, value interf return nil } -func awsRestjson1_deserializeDocumentServiceIds(v *[]*types.ServiceId, value interface{}) error { +func awsRestjson1_deserializeDocumentServiceIds(v *[]types.ServiceId, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6545,18 +6583,20 @@ func awsRestjson1_deserializeDocumentServiceIds(v *[]*types.ServiceId, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ServiceId + var cv []types.ServiceId if *v == nil { - cv = []*types.ServiceId{} + cv = []types.ServiceId{} } else { cv = *v } for _, value := range shape { - var col *types.ServiceId - if err := awsRestjson1_deserializeDocumentServiceId(&col, value); err != nil { + var col types.ServiceId + destAddr := &col + if err := awsRestjson1_deserializeDocumentServiceId(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6564,7 +6604,7 @@ func awsRestjson1_deserializeDocumentServiceIds(v *[]*types.ServiceId, value int return nil } -func awsRestjson1_deserializeDocumentServiceList(v *[]*types.Service, value interface{}) error { +func awsRestjson1_deserializeDocumentServiceList(v *[]types.Service, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6577,18 +6617,20 @@ func awsRestjson1_deserializeDocumentServiceList(v *[]*types.Service, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Service + var cv []types.Service if *v == nil { - cv = []*types.Service{} + cv = []types.Service{} } else { cv = *v } for _, value := range shape { - var col *types.Service - if err := awsRestjson1_deserializeDocumentService(&col, value); err != nil { + var col types.Service + destAddr := &col + if err := awsRestjson1_deserializeDocumentService(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6596,7 +6638,7 @@ func awsRestjson1_deserializeDocumentServiceList(v *[]*types.Service, value inte return nil } -func awsRestjson1_deserializeDocumentServiceNames(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentServiceNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6609,21 +6651,21 @@ func awsRestjson1_deserializeDocumentServiceNames(v *[]*string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + 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 = jtv } cv = append(cv, col) @@ -6674,7 +6716,7 @@ func awsRestjson1_deserializeDocumentServiceStatistics(v **types.ServiceStatisti if err != nil { return err } - sv.OkCount = &i64 + sv.OkCount = ptr.Int64(i64) } case "TotalCount": @@ -6687,7 +6729,7 @@ func awsRestjson1_deserializeDocumentServiceStatistics(v **types.ServiceStatisti if err != nil { return err } - sv.TotalCount = &i64 + sv.TotalCount = ptr.Int64(i64) } case "TotalResponseTime": @@ -6700,7 +6742,7 @@ func awsRestjson1_deserializeDocumentServiceStatistics(v **types.ServiceStatisti if err != nil { return err } - sv.TotalResponseTime = &f64 + sv.TotalResponseTime = ptr.Float64(f64) } default: @@ -6740,7 +6782,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.Key = &jtv + sv.Key = ptr.String(jtv) } case "Value": @@ -6749,7 +6791,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error if !ok { return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Value = &jtv + sv.Value = ptr.String(jtv) } default: @@ -6761,7 +6803,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6774,18 +6816,20 @@ func awsRestjson1_deserializeDocumentTagList(v *[]*types.Tag, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Tag + var cv []types.Tag if *v == nil { - cv = []*types.Tag{} + cv = []types.Tag{} } else { cv = *v } for _, value := range shape { - var col *types.Tag - if err := awsRestjson1_deserializeDocumentTag(&col, value); err != nil { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6821,7 +6865,7 @@ func awsRestjson1_deserializeDocumentThrottledException(v **types.ThrottledExcep if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -6892,7 +6936,7 @@ func awsRestjson1_deserializeDocumentTimeSeriesServiceStatistics(v **types.TimeS return nil } -func awsRestjson1_deserializeDocumentTimeSeriesServiceStatisticsList(v *[]*types.TimeSeriesServiceStatistics, value interface{}) error { +func awsRestjson1_deserializeDocumentTimeSeriesServiceStatisticsList(v *[]types.TimeSeriesServiceStatistics, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6905,18 +6949,20 @@ func awsRestjson1_deserializeDocumentTimeSeriesServiceStatisticsList(v *[]*types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TimeSeriesServiceStatistics + var cv []types.TimeSeriesServiceStatistics if *v == nil { - cv = []*types.TimeSeriesServiceStatistics{} + cv = []types.TimeSeriesServiceStatistics{} } else { cv = *v } for _, value := range shape { - var col *types.TimeSeriesServiceStatistics - if err := awsRestjson1_deserializeDocumentTimeSeriesServiceStatistics(&col, value); err != nil { + var col types.TimeSeriesServiceStatistics + destAddr := &col + if err := awsRestjson1_deserializeDocumentTimeSeriesServiceStatistics(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -6952,7 +6998,7 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "ResourceName": @@ -6961,7 +7007,7 @@ func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsE if !ok { return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) } - sv.ResourceName = &jtv + sv.ResourceName = ptr.String(jtv) } default: @@ -7005,7 +7051,7 @@ func awsRestjson1_deserializeDocumentTrace(v **types.Trace, value interface{}) e if err != nil { return err } - sv.Duration = &f64 + sv.Duration = ptr.Float64(f64) } case "Id": @@ -7014,7 +7060,7 @@ func awsRestjson1_deserializeDocumentTrace(v **types.Trace, value interface{}) e if !ok { return fmt.Errorf("expected TraceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "LimitExceeded": @@ -7023,7 +7069,7 @@ func awsRestjson1_deserializeDocumentTrace(v **types.Trace, value interface{}) e if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.LimitExceeded = &jtv + sv.LimitExceeded = ptr.Bool(jtv) } case "Segments": @@ -7040,7 +7086,7 @@ func awsRestjson1_deserializeDocumentTrace(v **types.Trace, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentTraceAvailabilityZones(v *[]*types.AvailabilityZoneDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentTraceAvailabilityZones(v *[]types.AvailabilityZoneDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7053,18 +7099,20 @@ func awsRestjson1_deserializeDocumentTraceAvailabilityZones(v *[]*types.Availabi return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.AvailabilityZoneDetail + var cv []types.AvailabilityZoneDetail if *v == nil { - cv = []*types.AvailabilityZoneDetail{} + cv = []types.AvailabilityZoneDetail{} } else { cv = *v } for _, value := range shape { - var col *types.AvailabilityZoneDetail - if err := awsRestjson1_deserializeDocumentAvailabilityZoneDetail(&col, value); err != nil { + var col types.AvailabilityZoneDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentAvailabilityZoneDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7072,7 +7120,7 @@ func awsRestjson1_deserializeDocumentTraceAvailabilityZones(v *[]*types.Availabi return nil } -func awsRestjson1_deserializeDocumentTraceInstanceIds(v *[]*types.InstanceIdDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentTraceInstanceIds(v *[]types.InstanceIdDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7085,18 +7133,20 @@ func awsRestjson1_deserializeDocumentTraceInstanceIds(v *[]*types.InstanceIdDeta return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.InstanceIdDetail + var cv []types.InstanceIdDetail if *v == nil { - cv = []*types.InstanceIdDetail{} + cv = []types.InstanceIdDetail{} } else { cv = *v } for _, value := range shape { - var col *types.InstanceIdDetail - if err := awsRestjson1_deserializeDocumentInstanceIdDetail(&col, value); err != nil { + var col types.InstanceIdDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentInstanceIdDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7104,7 +7154,7 @@ func awsRestjson1_deserializeDocumentTraceInstanceIds(v *[]*types.InstanceIdDeta return nil } -func awsRestjson1_deserializeDocumentTraceList(v *[]*types.Trace, value interface{}) error { +func awsRestjson1_deserializeDocumentTraceList(v *[]types.Trace, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7117,18 +7167,20 @@ func awsRestjson1_deserializeDocumentTraceList(v *[]*types.Trace, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.Trace + var cv []types.Trace if *v == nil { - cv = []*types.Trace{} + cv = []types.Trace{} } else { cv = *v } for _, value := range shape { - var col *types.Trace - if err := awsRestjson1_deserializeDocumentTrace(&col, value); err != nil { + var col types.Trace + destAddr := &col + if err := awsRestjson1_deserializeDocumentTrace(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7136,7 +7188,7 @@ func awsRestjson1_deserializeDocumentTraceList(v *[]*types.Trace, value interfac return nil } -func awsRestjson1_deserializeDocumentTraceResourceARNs(v *[]*types.ResourceARNDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentTraceResourceARNs(v *[]types.ResourceARNDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7149,18 +7201,20 @@ func awsRestjson1_deserializeDocumentTraceResourceARNs(v *[]*types.ResourceARNDe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ResourceARNDetail + var cv []types.ResourceARNDetail if *v == nil { - cv = []*types.ResourceARNDetail{} + cv = []types.ResourceARNDetail{} } else { cv = *v } for _, value := range shape { - var col *types.ResourceARNDetail - if err := awsRestjson1_deserializeDocumentResourceARNDetail(&col, value); err != nil { + var col types.ResourceARNDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceARNDetail(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7210,7 +7264,7 @@ func awsRestjson1_deserializeDocumentTraceSummary(v **types.TraceSummary, value if err != nil { return err } - sv.Duration = &f64 + sv.Duration = ptr.Float64(f64) } case "EntryPoint": @@ -7234,7 +7288,7 @@ func awsRestjson1_deserializeDocumentTraceSummary(v **types.TraceSummary, value if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.HasError = &jtv + sv.HasError = ptr.Bool(jtv) } case "HasFault": @@ -7243,7 +7297,7 @@ func awsRestjson1_deserializeDocumentTraceSummary(v **types.TraceSummary, value if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.HasFault = &jtv + sv.HasFault = ptr.Bool(jtv) } case "HasThrottle": @@ -7252,7 +7306,7 @@ func awsRestjson1_deserializeDocumentTraceSummary(v **types.TraceSummary, value if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.HasThrottle = &jtv + sv.HasThrottle = ptr.Bool(jtv) } case "Http": @@ -7266,7 +7320,7 @@ func awsRestjson1_deserializeDocumentTraceSummary(v **types.TraceSummary, value if !ok { return fmt.Errorf("expected TraceId to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "InstanceIds": @@ -7280,7 +7334,7 @@ func awsRestjson1_deserializeDocumentTraceSummary(v **types.TraceSummary, value if !ok { return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.IsPartial = &jtv + sv.IsPartial = ptr.Bool(jtv) } case "MatchedEventTime": @@ -7311,7 +7365,7 @@ func awsRestjson1_deserializeDocumentTraceSummary(v **types.TraceSummary, value if err != nil { return err } - sv.ResponseTime = &f64 + sv.ResponseTime = ptr.Float64(f64) } case "ResponseTimeRootCauses": @@ -7329,7 +7383,7 @@ func awsRestjson1_deserializeDocumentTraceSummary(v **types.TraceSummary, value if err != nil { return err } - sv.Revision = ptr.Int32(int32(i64)) + sv.Revision = int32(i64) } case "ServiceIds": @@ -7351,7 +7405,7 @@ func awsRestjson1_deserializeDocumentTraceSummary(v **types.TraceSummary, value return nil } -func awsRestjson1_deserializeDocumentTraceSummaryList(v *[]*types.TraceSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentTraceSummaryList(v *[]types.TraceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7364,18 +7418,20 @@ func awsRestjson1_deserializeDocumentTraceSummaryList(v *[]*types.TraceSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TraceSummary + var cv []types.TraceSummary if *v == nil { - cv = []*types.TraceSummary{} + cv = []types.TraceSummary{} } else { cv = *v } for _, value := range shape { - var col *types.TraceSummary - if err := awsRestjson1_deserializeDocumentTraceSummary(&col, value); err != nil { + var col types.TraceSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentTraceSummary(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7416,7 +7472,7 @@ func awsRestjson1_deserializeDocumentTraceUser(v **types.TraceUser, value interf if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserName = &jtv + sv.UserName = ptr.String(jtv) } default: @@ -7428,7 +7484,7 @@ func awsRestjson1_deserializeDocumentTraceUser(v **types.TraceUser, value interf return nil } -func awsRestjson1_deserializeDocumentTraceUsers(v *[]*types.TraceUser, value interface{}) error { +func awsRestjson1_deserializeDocumentTraceUsers(v *[]types.TraceUser, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7441,18 +7497,20 @@ func awsRestjson1_deserializeDocumentTraceUsers(v *[]*types.TraceUser, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.TraceUser + var cv []types.TraceUser if *v == nil { - cv = []*types.TraceUser{} + cv = []types.TraceUser{} } else { cv = *v } for _, value := range shape { - var col *types.TraceUser - if err := awsRestjson1_deserializeDocumentTraceUser(&col, value); err != nil { + var col types.TraceUser + destAddr := &col + if err := awsRestjson1_deserializeDocumentTraceUser(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7488,7 +7546,7 @@ func awsRestjson1_deserializeDocumentUnprocessedStatistics(v **types.Unprocessed if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "Message": @@ -7497,7 +7555,7 @@ func awsRestjson1_deserializeDocumentUnprocessedStatistics(v **types.Unprocessed if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } case "RuleName": @@ -7506,7 +7564,7 @@ func awsRestjson1_deserializeDocumentUnprocessedStatistics(v **types.Unprocessed if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RuleName = &jtv + sv.RuleName = ptr.String(jtv) } default: @@ -7518,7 +7576,7 @@ func awsRestjson1_deserializeDocumentUnprocessedStatistics(v **types.Unprocessed return nil } -func awsRestjson1_deserializeDocumentUnprocessedStatisticsList(v *[]*types.UnprocessedStatistics, value interface{}) error { +func awsRestjson1_deserializeDocumentUnprocessedStatisticsList(v *[]types.UnprocessedStatistics, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7531,18 +7589,20 @@ func awsRestjson1_deserializeDocumentUnprocessedStatisticsList(v *[]*types.Unpro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UnprocessedStatistics + var cv []types.UnprocessedStatistics if *v == nil { - cv = []*types.UnprocessedStatistics{} + cv = []types.UnprocessedStatistics{} } else { cv = *v } for _, value := range shape { - var col *types.UnprocessedStatistics - if err := awsRestjson1_deserializeDocumentUnprocessedStatistics(&col, value); err != nil { + var col types.UnprocessedStatistics + destAddr := &col + if err := awsRestjson1_deserializeDocumentUnprocessedStatistics(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7550,7 +7610,7 @@ func awsRestjson1_deserializeDocumentUnprocessedStatisticsList(v *[]*types.Unpro return nil } -func awsRestjson1_deserializeDocumentUnprocessedTraceIdList(v *[]*string, value interface{}) error { +func awsRestjson1_deserializeDocumentUnprocessedTraceIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7563,21 +7623,21 @@ func awsRestjson1_deserializeDocumentUnprocessedTraceIdList(v *[]*string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*string + var cv []string if *v == nil { - cv = []*string{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col *string + var col string if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected TraceId to be of type string, got %T instead", value) } - col = &jtv + col = jtv } cv = append(cv, col) @@ -7614,7 +7674,7 @@ func awsRestjson1_deserializeDocumentUnprocessedTraceSegment(v **types.Unprocess if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ErrorCode = &jtv + sv.ErrorCode = ptr.String(jtv) } case "Id": @@ -7623,7 +7683,7 @@ func awsRestjson1_deserializeDocumentUnprocessedTraceSegment(v **types.Unprocess if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Id = &jtv + sv.Id = ptr.String(jtv) } case "Message": @@ -7632,7 +7692,7 @@ func awsRestjson1_deserializeDocumentUnprocessedTraceSegment(v **types.Unprocess if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = &jtv + sv.Message = ptr.String(jtv) } default: @@ -7644,7 +7704,7 @@ func awsRestjson1_deserializeDocumentUnprocessedTraceSegment(v **types.Unprocess return nil } -func awsRestjson1_deserializeDocumentUnprocessedTraceSegmentList(v *[]*types.UnprocessedTraceSegment, value interface{}) error { +func awsRestjson1_deserializeDocumentUnprocessedTraceSegmentList(v *[]types.UnprocessedTraceSegment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7657,18 +7717,20 @@ func awsRestjson1_deserializeDocumentUnprocessedTraceSegmentList(v *[]*types.Unp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.UnprocessedTraceSegment + var cv []types.UnprocessedTraceSegment if *v == nil { - cv = []*types.UnprocessedTraceSegment{} + cv = []types.UnprocessedTraceSegment{} } else { cv = *v } for _, value := range shape { - var col *types.UnprocessedTraceSegment - if err := awsRestjson1_deserializeDocumentUnprocessedTraceSegment(&col, value); err != nil { + var col types.UnprocessedTraceSegment + destAddr := &col + if err := awsRestjson1_deserializeDocumentUnprocessedTraceSegment(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -7676,7 +7738,7 @@ func awsRestjson1_deserializeDocumentUnprocessedTraceSegmentList(v *[]*types.Unp return nil } -func awsRestjson1_deserializeDocumentValuesWithServiceIds(v *[]*types.ValueWithServiceIds, value interface{}) error { +func awsRestjson1_deserializeDocumentValuesWithServiceIds(v *[]types.ValueWithServiceIds, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7689,18 +7751,20 @@ func awsRestjson1_deserializeDocumentValuesWithServiceIds(v *[]*types.ValueWithS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []*types.ValueWithServiceIds + var cv []types.ValueWithServiceIds if *v == nil { - cv = []*types.ValueWithServiceIds{} + cv = []types.ValueWithServiceIds{} } else { cv = *v } for _, value := range shape { - var col *types.ValueWithServiceIds - if err := awsRestjson1_deserializeDocumentValueWithServiceIds(&col, value); err != nil { + var col types.ValueWithServiceIds + destAddr := &col + if err := awsRestjson1_deserializeDocumentValueWithServiceIds(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } diff --git a/service/xray/go.mod b/service/xray/go.mod index 4d3bebdbde4..414257f5fbd 100644 --- a/service/xray/go.mod +++ b/service/xray/go.mod @@ -3,7 +3,7 @@ module github.com/aws/aws-sdk-go-v2/service/xray go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201112231636-9ae467d8157d + github.com/aws/aws-sdk-go-v2 v0.29.1-0.20201113222241-726e4a15683d github.com/awslabs/smithy-go v0.3.1-0.20201108010311-62c2a93810b4 ) diff --git a/service/xray/serializers.go b/service/xray/serializers.go index 35f091beee3..800dadea84a 100644 --- a/service/xray/serializers.go +++ b/service/xray/serializers.go @@ -1874,17 +1874,13 @@ func awsRestjson1_serializeOpDocumentUpdateSamplingRuleInput(v *UpdateSamplingRu return nil } -func awsRestjson1_serializeDocumentAttributeMap(v map[string]*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAttributeMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) - if vv := v[key]; vv == nil { - om.Null() - continue - } - om.String(*v[key]) + om.String(v[key]) } return nil } @@ -1954,9 +1950,9 @@ func awsRestjson1_serializeDocumentSamplingRule(v *types.SamplingRule, value smi } } - if v.FixedRate != nil { + if v.FixedRate != 0 { ok := object.Key("FixedRate") - ok.Double(*v.FixedRate) + ok.Double(v.FixedRate) } if v.Host != nil { @@ -1969,14 +1965,14 @@ func awsRestjson1_serializeDocumentSamplingRule(v *types.SamplingRule, value smi ok.String(*v.HTTPMethod) } - if v.Priority != nil { + if v.Priority != 0 { ok := object.Key("Priority") - ok.Integer(*v.Priority) + ok.Integer(v.Priority) } - if v.ReservoirSize != nil { + if v.ReservoirSize != 0 { ok := object.Key("ReservoirSize") - ok.Integer(*v.ReservoirSize) + ok.Integer(v.ReservoirSize) } if v.ResourceARN != nil { @@ -2009,9 +2005,9 @@ func awsRestjson1_serializeDocumentSamplingRule(v *types.SamplingRule, value smi ok.String(*v.URLPath) } - if v.Version != nil { + if v.Version != 0 { ok := object.Key("Version") - ok.Integer(*v.Version) + ok.Integer(v.Version) } return nil @@ -2090,9 +2086,9 @@ func awsRestjson1_serializeDocumentSamplingStatisticsDocument(v *types.SamplingS object := value.Object() defer object.Close() - if v.BorrowCount != nil { + if v.BorrowCount != 0 { ok := object.Key("BorrowCount") - ok.Integer(*v.BorrowCount) + ok.Integer(v.BorrowCount) } if v.ClientID != nil { @@ -2100,9 +2096,9 @@ func awsRestjson1_serializeDocumentSamplingStatisticsDocument(v *types.SamplingS ok.String(*v.ClientID) } - if v.RequestCount != nil { + if v.RequestCount != 0 { ok := object.Key("RequestCount") - ok.Integer(*v.RequestCount) + ok.Integer(v.RequestCount) } if v.RuleName != nil { @@ -2110,9 +2106,9 @@ func awsRestjson1_serializeDocumentSamplingStatisticsDocument(v *types.SamplingS ok.String(*v.RuleName) } - if v.SampledCount != nil { + if v.SampledCount != 0 { ok := object.Key("SampledCount") - ok.Integer(*v.SampledCount) + ok.Integer(v.SampledCount) } if v.Timestamp != nil { @@ -2123,17 +2119,13 @@ func awsRestjson1_serializeDocumentSamplingStatisticsDocument(v *types.SamplingS return nil } -func awsRestjson1_serializeDocumentSamplingStatisticsDocumentList(v []*types.SamplingStatisticsDocument, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSamplingStatisticsDocumentList(v []types.SamplingStatisticsDocument, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentSamplingStatisticsDocument(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentSamplingStatisticsDocument(&v[i], av); err != nil { return err } } @@ -2174,32 +2166,24 @@ func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) err return nil } -func awsRestjson1_serializeDocumentTagKeyList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTagList(v []*types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTag(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { return err } } @@ -2245,49 +2229,37 @@ func awsRestjson1_serializeDocumentTelemetryRecord(v *types.TelemetryRecord, val return nil } -func awsRestjson1_serializeDocumentTelemetryRecordList(v []*types.TelemetryRecord, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTelemetryRecordList(v []types.TelemetryRecord, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - if err := awsRestjson1_serializeDocumentTelemetryRecord(v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTelemetryRecord(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTraceIdList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTraceIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentTraceSegmentDocumentList(v []*string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTraceSegmentDocumentList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if vv := v[i]; vv == nil { - av.Null() - continue - } - av.String(*v[i]) + av.String(v[i]) } return nil } diff --git a/service/xray/types/types.go b/service/xray/types/types.go index 5d921ae8cfb..9d3fd4ebf58 100644 --- a/service/xray/types/types.go +++ b/service/xray/types/types.go @@ -13,7 +13,7 @@ type Alias struct { Name *string // A list of names for the alias, including the canonical name. - Names []*string + Names []string // The type of the alias. Type *string @@ -66,7 +66,7 @@ type BackendConnectionErrors struct { type Edge struct { // Aliases for the edge. - Aliases []*Alias + Aliases []Alias // The end time of the last segment on the edge. EndTime *time.Time @@ -75,7 +75,7 @@ type Edge struct { ReferenceId *int32 // A histogram that maps the spread of client response times on an edge. - ResponseTimeHistogram []*HistogramEntry + ResponseTimeHistogram []HistogramEntry // The start time of the first segment on the edge. StartTime *time.Time @@ -126,7 +126,7 @@ type ErrorRootCause struct { // A list of services corresponding to an error. A service identifies a segment and // it contains a name, account ID, type, and inferred flag. - Services []*ErrorRootCauseService + Services []ErrorRootCauseService } // A collection of segments and corresponding subsegments associated to a trace @@ -134,7 +134,7 @@ type ErrorRootCause struct { type ErrorRootCauseEntity struct { // The types and messages of the exceptions. - Exceptions []*RootCauseException + Exceptions []RootCauseException // The name of the entity. Name *string @@ -150,7 +150,7 @@ type ErrorRootCauseService struct { AccountId *string // The path of root cause entities found on the service. - EntityPath []*ErrorRootCauseEntity + EntityPath []ErrorRootCauseEntity // A Boolean value indicating if the service is inferred from the trace. Inferred *bool @@ -159,7 +159,7 @@ type ErrorRootCauseService struct { Name *string // A collection of associated service names. - Names []*string + Names []string // The type associated to the service. Type *string @@ -186,7 +186,7 @@ type FaultRootCause struct { // A list of corresponding services. A service identifies a segment and it contains // a name, account ID, type, and inferred flag. - Services []*FaultRootCauseService + Services []FaultRootCauseService } // A collection of segments and corresponding subsegments associated to a trace @@ -194,7 +194,7 @@ type FaultRootCause struct { type FaultRootCauseEntity struct { // The types and messages of the exceptions. - Exceptions []*RootCauseException + Exceptions []RootCauseException // The name of the entity. Name *string @@ -210,7 +210,7 @@ type FaultRootCauseService struct { AccountId *string // The path of root cause entities found on the service. - EntityPath []*FaultRootCauseEntity + EntityPath []FaultRootCauseEntity // A Boolean value indicating if the service is inferred from the trace. Inferred *bool @@ -219,7 +219,7 @@ type FaultRootCauseService struct { Name *string // A collection of associated service names. - Names []*string + Names []string // The type associated to the service. Type *string @@ -288,10 +288,10 @@ type GroupSummary struct { type HistogramEntry struct { // The prevalence of the entry. - Count *int32 + Count int32 // The value of the entry. - Value *float64 + Value float64 } // Information about an HTTP request. @@ -347,7 +347,7 @@ type ResponseTimeRootCause struct { // A list of corresponding services. A service identifies a segment and contains a // name, account ID, type, and inferred flag. - Services []*ResponseTimeRootCauseService + Services []ResponseTimeRootCauseService } // A collection of segments and corresponding subsegments associated to a response @@ -371,7 +371,7 @@ type ResponseTimeRootCauseService struct { AccountId *string // The path of root cause entities found on the service. - EntityPath []*ResponseTimeRootCauseEntity + EntityPath []ResponseTimeRootCauseEntity // A Boolean value indicating if the service is inferred from the trace. Inferred *bool @@ -380,7 +380,7 @@ type ResponseTimeRootCauseService struct { Name *string // A collection of associated service names. - Names []*string + Names []string // The type associated to the service. Type *string @@ -405,7 +405,7 @@ type SamplingRule struct { // exhausted. // // This member is required. - FixedRate *float64 + FixedRate float64 // Matches the HTTP method of a request. // @@ -420,14 +420,14 @@ type SamplingRule struct { // The priority of the sampling rule. // // This member is required. - Priority *int32 + Priority int32 // A fixed number of matching requests to instrument per second, prior to applying // the fixed rate. The reservoir is not used directly by services, but applies to // all services using the rule collectively. // // This member is required. - ReservoirSize *int32 + ReservoirSize int32 // Matches the ARN of the AWS resource on which the service runs. // @@ -452,10 +452,10 @@ type SamplingRule struct { // The version of the sampling rule format (1). // // This member is required. - Version *int32 + Version int32 // Matches attributes derived from the request. - Attributes map[string]*string + Attributes map[string]string // The ARN of the sampling rule. Specify a rule by either name or ARN, but not // both. @@ -483,7 +483,7 @@ type SamplingRuleRecord struct { type SamplingRuleUpdate struct { // Matches attributes derived from the request. - Attributes map[string]*string + Attributes map[string]string // The percentage of matching requests to instrument, after the reservoir is // exhausted. @@ -537,7 +537,7 @@ type SamplingStatisticsDocument struct { // The number of requests that matched the rule. // // This member is required. - RequestCount *int32 + RequestCount int32 // The name of the sampling rule. // @@ -547,7 +547,7 @@ type SamplingStatisticsDocument struct { // The number of requests recorded. // // This member is required. - SampledCount *int32 + SampledCount int32 // The current time. // @@ -555,7 +555,7 @@ type SamplingStatisticsDocument struct { Timestamp *time.Time // The number of requests recorded with borrowed reservoir quota. - BorrowCount *int32 + BorrowCount int32 } // Aggregated request sampling data for a sampling rule across all services for a @@ -563,16 +563,16 @@ type SamplingStatisticsDocument struct { type SamplingStatisticSummary struct { // The number of requests recorded with borrowed reservoir quota. - BorrowCount *int32 + BorrowCount int32 // The number of requests that matched the rule. - RequestCount *int32 + RequestCount int32 // The name of the sampling rule. RuleName *string // The number of requests recorded. - SampledCount *int32 + SampledCount int32 // The start time of the reporting window. Timestamp *time.Time @@ -595,7 +595,7 @@ type SamplingTargetDocument struct { // The percentage of matching requests to instrument, after the reservoir is // exhausted. - FixedRate *float64 + FixedRate float64 // The number of seconds for the service to wait before getting sampling targets // again. @@ -636,10 +636,10 @@ type Service struct { AccountId *string // A histogram that maps the spread of service durations. - DurationHistogram []*HistogramEntry + DurationHistogram []HistogramEntry // Connections to downstream services. - Edges []*Edge + Edges []Edge // The end time of the last segment that the service generated. EndTime *time.Time @@ -648,13 +648,13 @@ type Service struct { Name *string // A list of names for the service, including the canonical name. - Names []*string + Names []string // Identifier for the service. Unique within the service map. ReferenceId *int32 // A histogram that maps the spread of service response times. - ResponseTimeHistogram []*HistogramEntry + ResponseTimeHistogram []HistogramEntry // Indicates that the service was the first service to process a request. Root *bool @@ -696,7 +696,7 @@ type ServiceId struct { Name *string // - Names []*string + Names []string // Type *string @@ -782,7 +782,7 @@ type TimeSeriesServiceStatistics struct { EdgeSummaryStatistics *EdgeStatistics // The response time histogram for the selected entities. - ResponseTimeHistogram []*HistogramEntry + ResponseTimeHistogram []HistogramEntry // Response statistics for a service. ServiceSummaryStatistics *ServiceStatistics @@ -808,17 +808,17 @@ type Trace struct { LimitExceeded *bool // Segment documents for the segments and subsegments that comprise the trace. - Segments []*Segment + Segments []Segment } // Metadata generated from the segment documents in a trace. type TraceSummary struct { // Annotations from the trace's segment documents. - Annotations map[string][]*ValueWithServiceIds + Annotations map[string][]ValueWithServiceIds // A list of Availability Zones for any zone corresponding to the trace segments. - AvailabilityZones []*AvailabilityZoneDetail + AvailabilityZones []AvailabilityZoneDetail // The length of time in seconds between the start time of the root segment and the // end time of the last segment that completed. @@ -828,10 +828,10 @@ type TraceSummary struct { EntryPoint *ServiceId // A collection of ErrorRootCause structures corresponding to the trace segments. - ErrorRootCauses []*ErrorRootCause + ErrorRootCauses []ErrorRootCause // A collection of FaultRootCause structures corresponding to the trace segments. - FaultRootCauses []*FaultRootCause + FaultRootCauses []FaultRootCause // The root segment document has a 400 series error. HasError *bool @@ -850,7 +850,7 @@ type TraceSummary struct { Id *string // A list of EC2 instance IDs for any instance corresponding to the trace segments. - InstanceIds []*InstanceIdDetail + InstanceIds []InstanceIdDetail // One or more of the segment documents is in progress. IsPartial *bool @@ -859,7 +859,7 @@ type TraceSummary struct { MatchedEventTime *time.Time // A list of resource ARNs for any resource corresponding to the trace segments. - ResourceARNs []*ResourceARNDetail + ResourceARNs []ResourceARNDetail // The length of time in seconds between the start and end times of the root // segment. If the service performs work asynchronously, the response time measures @@ -869,23 +869,23 @@ type TraceSummary struct { // A collection of ResponseTimeRootCause structures corresponding to the trace // segments. - ResponseTimeRootCauses []*ResponseTimeRootCause + ResponseTimeRootCauses []ResponseTimeRootCause // The revision number of a trace. - Revision *int32 + Revision int32 // Service IDs from the trace's segment documents. - ServiceIds []*ServiceId + ServiceIds []ServiceId // Users from the trace's segment documents. - Users []*TraceUser + Users []TraceUser } // Information about a user recorded in segment documents. type TraceUser struct { // Services that the user's request hit. - ServiceIds []*ServiceId + ServiceIds []ServiceId // The user's name. UserName *string @@ -925,5 +925,5 @@ type ValueWithServiceIds struct { AnnotationValue *AnnotationValue // Services to which the annotation applies. - ServiceIds []*ServiceId + ServiceIds []ServiceId } diff --git a/service/xray/validators.go b/service/xray/validators.go index 395717b6104..a25ff1fb29e 100644 --- a/service/xray/validators.go +++ b/service/xray/validators.go @@ -375,9 +375,6 @@ func validateSamplingRule(v *types.SamplingRule) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "SamplingRule"} - if v.Priority == nil { - invalidParams.Add(smithy.NewErrParamRequired("Priority")) - } if v.URLPath == nil { invalidParams.Add(smithy.NewErrParamRequired("URLPath")) } @@ -387,18 +384,9 @@ func validateSamplingRule(v *types.SamplingRule) error { if v.ServiceName == nil { invalidParams.Add(smithy.NewErrParamRequired("ServiceName")) } - if v.FixedRate == nil { - invalidParams.Add(smithy.NewErrParamRequired("FixedRate")) - } if v.ResourceARN == nil { invalidParams.Add(smithy.NewErrParamRequired("ResourceARN")) } - if v.Version == nil { - invalidParams.Add(smithy.NewErrParamRequired("Version")) - } - if v.ReservoirSize == nil { - invalidParams.Add(smithy.NewErrParamRequired("ReservoirSize")) - } if v.ServiceType == nil { invalidParams.Add(smithy.NewErrParamRequired("ServiceType")) } @@ -417,15 +405,9 @@ func validateSamplingStatisticsDocument(v *types.SamplingStatisticsDocument) err return nil } invalidParams := smithy.InvalidParamsError{Context: "SamplingStatisticsDocument"} - if v.RequestCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("RequestCount")) - } if v.ClientID == nil { invalidParams.Add(smithy.NewErrParamRequired("ClientID")) } - if v.SampledCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("SampledCount")) - } if v.Timestamp == nil { invalidParams.Add(smithy.NewErrParamRequired("Timestamp")) } @@ -439,13 +421,13 @@ func validateSamplingStatisticsDocument(v *types.SamplingStatisticsDocument) err } } -func validateSamplingStatisticsDocumentList(v []*types.SamplingStatisticsDocument) error { +func validateSamplingStatisticsDocumentList(v []types.SamplingStatisticsDocument) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "SamplingStatisticsDocumentList"} for i := range v { - if err := validateSamplingStatisticsDocument(v[i]); err != nil { + if err := validateSamplingStatisticsDocument(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -474,13 +456,13 @@ func validateTag(v *types.Tag) error { } } -func validateTagList(v []*types.Tag) error { +func validateTagList(v []types.Tag) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagList"} for i := range v { - if err := validateTag(v[i]); err != nil { + if err := validateTag(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -506,13 +488,13 @@ func validateTelemetryRecord(v *types.TelemetryRecord) error { } } -func validateTelemetryRecordList(v []*types.TelemetryRecord) error { +func validateTelemetryRecordList(v []types.TelemetryRecord) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TelemetryRecordList"} for i := range v { - if err := validateTelemetryRecord(v[i]); err != nil { + if err := validateTelemetryRecord(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } }